From b33b9c44a83b0cb4817bda3e4f26a73bf41681a8 Mon Sep 17 00:00:00 2001 From: mckelvin Date: Mon, 22 Aug 2016 11:02:48 +0800 Subject: [PATCH 01/13] Squashed 'vendor/ta-lib/' content from commit 2ee32d0 git-subtree-dir: vendor/ta-lib git-subtree-split: 2ee32d04e2b7686dc0931e17c6a420682c46f3a3 --- Makefile.am | 3 + autogen.sh | 11 + bin/.cvsignore | 7 + bin/HOLDER | 2 + configure.in | 47 + ide/msvc/lib_proj/gen_code/gen_code.dsp | 284 + ide/msvc/lib_proj/lib_proj.dsw | 113 + ide/msvc/lib_proj/ta_abstract/ta_abstract.dsp | 371 + ide/msvc/lib_proj/ta_common/ta_common.dsp | 278 + ide/msvc/lib_proj/ta_func/ta_func.dsp | 875 ++ ide/msvc/lib_proj/ta_libc/ta_libc.dsp | 253 + ide/msvc/lib_proj/ta_regtest/ta_regtest.dsp | 305 + ide/vs2005/lib_proj/gen_code/gen_code.vcproj | 2168 ++++ .../lib_proj/ta_abstract/ta_abstract.vcproj | 2136 ++++ .../lib_proj/ta_common/ta_common.vcproj | 555 + ide/vs2005/lib_proj/ta_func/ta_func.vcproj | 1011 ++ ide/vs2005/lib_proj/ta_lib.sln | 105 + ide/vs2005/lib_proj/ta_libc/ta_libc.vcproj | 145 + .../lib_proj/ta_regtest/ta_regtest.vcproj | 1937 ++++ ide/xcode/TALib/.DS_Store | Bin 0 -> 6148 bytes .../TALib/English.lproj/InfoPlist.strings | Bin 0 -> 364 bytes ide/xcode/TALib/Info.plist | 24 + ide/xcode/TALib/README_XCODE.TXT | 37 + .../TALib/TALib.xcodeproj/project.pbxproj | 1452 +++ ide/xcode/TALib/TALib_Prefix.pch | 5 + ide/xcode/TALib/main.c | 3 + ide/xcode/TALib/version.plist | 16 + include/Makefile.am | 11 + include/ta_abstract.h | 559 + include/ta_common.h | 149 + include/ta_defs.h | 319 + include/ta_func.h | 5240 ++++++++++ include/ta_libc.h | 51 + lib/HOLDER | 2 + make/README.TXT | 25 + make/cdd/win32/msvc/Makefile | 97 + make/cdd/win32/msvc/gen_code/Makefile | 263 + make/cdd/win32/msvc/ta_abstract/Makefile | 273 + make/cdd/win32/msvc/ta_common/Makefile | 105 + make/cdd/win32/msvc/ta_func/Makefile | 1041 ++ make/cdd/win32/msvc/ta_libc/Makefile | 1240 +++ make/cdd/win32/msvc/ta_regtest/Makefile | 239 + make/cdr/win32/msvc/Makefile | 97 + make/cdr/win32/msvc/gen_code/Makefile | 260 + make/cdr/win32/msvc/ta_abstract/Makefile | 270 + make/cdr/win32/msvc/ta_common/Makefile | 102 + make/cdr/win32/msvc/ta_func/Makefile | 1038 ++ make/cdr/win32/msvc/ta_libc/Makefile | 1237 +++ make/cdr/win32/msvc/ta_regtest/Makefile | 236 + make/cmd/cygwin/g++/Makefile | 36 + make/cmd/cygwin/g++/gen_code/Makefile | 231 + make/cmd/cygwin/g++/ta_abstract/Makefile | 243 + make/cmd/cygwin/g++/ta_common/Makefile | 103 + make/cmd/cygwin/g++/ta_func/Makefile | 883 ++ make/cmd/cygwin/g++/ta_libc/Makefile | 1053 ++ make/cmd/cygwin/g++/ta_regtest/Makefile | 211 + make/cmd/freebsd/g++/Makefile | 36 + make/cmd/freebsd/g++/gen_code/Makefile | 225 + make/cmd/freebsd/g++/ta_abstract/Makefile | 243 + make/cmd/freebsd/g++/ta_common/Makefile | 103 + make/cmd/freebsd/g++/ta_func/Makefile | 883 ++ make/cmd/freebsd/g++/ta_libc/Makefile | 1053 ++ make/cmd/freebsd/g++/ta_regtest/Makefile | 205 + make/cmd/linux/g++/Makefile | 36 + make/cmd/linux/g++/gen_code/Makefile | 231 + make/cmd/linux/g++/ta_abstract/Makefile | 243 + make/cmd/linux/g++/ta_common/Makefile | 103 + make/cmd/linux/g++/ta_func/Makefile | 883 ++ make/cmd/linux/g++/ta_libc/Makefile | 1053 ++ make/cmd/linux/g++/ta_regtest/Makefile | 211 + make/cmd/win32/borland/Makefile | 96 + make/cmd/win32/borland/gen_code/Makefile | 267 + make/cmd/win32/borland/ta_abstract/Makefile | 309 + make/cmd/win32/borland/ta_common/Makefile | 113 + make/cmd/win32/borland/ta_func/Makefile | 1205 +++ make/cmd/win32/borland/ta_libc/Makefile | 1438 +++ make/cmd/win32/borland/ta_regtest/Makefile | 243 + make/cmd/win32/msvc/Makefile | 97 + make/cmd/win32/msvc/gen_code/Makefile | 263 + make/cmd/win32/msvc/ta_abstract/Makefile | 273 + make/cmd/win32/msvc/ta_common/Makefile | 105 + make/cmd/win32/msvc/ta_func/Makefile | 1041 ++ make/cmd/win32/msvc/ta_libc/Makefile | 1240 +++ make/cmd/win32/msvc/ta_regtest/Makefile | 239 + make/cmd/win32/symantec/Makefile | 97 + make/cmd/win32/symantec/gen_code/Makefile | 253 + make/cmd/win32/symantec/ta_abstract/Makefile | 295 + make/cmd/win32/symantec/ta_common/Makefile | 99 + make/cmd/win32/symantec/ta_func/Makefile | 1191 +++ make/cmd/win32/symantec/ta_libc/Makefile | 1424 +++ make/cmd/win32/symantec/ta_regtest/Makefile | 229 + make/cmd/win32/watcom/Makefile | 97 + make/cmd/win32/watcom/gen_code/Makefile | 243 + make/cmd/win32/watcom/ta_abstract/Makefile | 251 + make/cmd/win32/watcom/ta_common/Makefile | 83 + make/cmd/win32/watcom/ta_func/Makefile | 1019 ++ make/cmd/win32/watcom/ta_libc/Makefile | 1219 +++ make/cmd/win32/watcom/ta_regtest/Makefile | 219 + make/cmp/cygwin/g++/Makefile | 36 + make/cmp/cygwin/g++/gen_code/Makefile | 231 + make/cmp/cygwin/g++/ta_abstract/Makefile | 243 + make/cmp/cygwin/g++/ta_common/Makefile | 103 + make/cmp/cygwin/g++/ta_func/Makefile | 883 ++ make/cmp/cygwin/g++/ta_libc/Makefile | 1053 ++ make/cmp/cygwin/g++/ta_regtest/Makefile | 211 + make/cmp/freebsd/g++/Makefile | 36 + make/cmp/freebsd/g++/gen_code/Makefile | 225 + make/cmp/freebsd/g++/ta_abstract/Makefile | 243 + make/cmp/freebsd/g++/ta_common/Makefile | 103 + make/cmp/freebsd/g++/ta_func/Makefile | 883 ++ make/cmp/freebsd/g++/ta_libc/Makefile | 1053 ++ make/cmp/freebsd/g++/ta_regtest/Makefile | 205 + make/cmp/linux/g++/Makefile | 36 + make/cmp/linux/g++/gen_code/Makefile | 231 + make/cmp/linux/g++/ta_abstract/Makefile | 243 + make/cmp/linux/g++/ta_common/Makefile | 103 + make/cmp/linux/g++/ta_func/Makefile | 883 ++ make/cmp/linux/g++/ta_libc/Makefile | 1053 ++ make/cmp/linux/g++/ta_regtest/Makefile | 211 + make/cmr/cygwin/g++/Makefile | 36 + make/cmr/cygwin/g++/gen_code/Makefile | 231 + make/cmr/cygwin/g++/ta_abstract/Makefile | 243 + make/cmr/cygwin/g++/ta_common/Makefile | 103 + make/cmr/cygwin/g++/ta_func/Makefile | 883 ++ make/cmr/cygwin/g++/ta_libc/Makefile | 1053 ++ make/cmr/cygwin/g++/ta_regtest/Makefile | 211 + make/cmr/freebsd/g++/Makefile | 36 + make/cmr/freebsd/g++/gen_code/Makefile | 225 + make/cmr/freebsd/g++/ta_abstract/Makefile | 243 + make/cmr/freebsd/g++/ta_common/Makefile | 103 + make/cmr/freebsd/g++/ta_func/Makefile | 883 ++ make/cmr/freebsd/g++/ta_libc/Makefile | 1053 ++ make/cmr/freebsd/g++/ta_regtest/Makefile | 205 + make/cmr/linux/g++/Makefile | 36 + make/cmr/linux/g++/gen_code/Makefile | 231 + make/cmr/linux/g++/ta_abstract/Makefile | 243 + make/cmr/linux/g++/ta_common/Makefile | 103 + make/cmr/linux/g++/ta_func/Makefile | 883 ++ make/cmr/linux/g++/ta_libc/Makefile | 1053 ++ make/cmr/linux/g++/ta_regtest/Makefile | 211 + make/cmr/win32/borland/Makefile | 96 + make/cmr/win32/borland/gen_code/Makefile | 267 + make/cmr/win32/borland/ta_abstract/Makefile | 309 + make/cmr/win32/borland/ta_common/Makefile | 113 + make/cmr/win32/borland/ta_func/Makefile | 1205 +++ make/cmr/win32/borland/ta_libc/Makefile | 1438 +++ make/cmr/win32/borland/ta_regtest/Makefile | 243 + make/cmr/win32/msvc/Makefile | 97 + make/cmr/win32/msvc/gen_code/Makefile | 260 + make/cmr/win32/msvc/ta_abstract/Makefile | 270 + make/cmr/win32/msvc/ta_common/Makefile | 102 + make/cmr/win32/msvc/ta_func/Makefile | 1038 ++ make/cmr/win32/msvc/ta_libc/Makefile | 1237 +++ make/cmr/win32/msvc/ta_regtest/Makefile | 236 + make/cmr/win32/symantec/Makefile | 97 + make/cmr/win32/symantec/gen_code/Makefile | 253 + make/cmr/win32/symantec/ta_abstract/Makefile | 295 + make/cmr/win32/symantec/ta_common/Makefile | 99 + make/cmr/win32/symantec/ta_func/Makefile | 1191 +++ make/cmr/win32/symantec/ta_libc/Makefile | 1424 +++ make/cmr/win32/symantec/ta_regtest/Makefile | 229 + make/cmr/win32/watcom/Makefile | 97 + make/cmr/win32/watcom/gen_code/Makefile | 243 + make/cmr/win32/watcom/ta_abstract/Makefile | 251 + make/cmr/win32/watcom/ta_common/Makefile | 83 + make/cmr/win32/watcom/ta_func/Makefile | 1019 ++ make/cmr/win32/watcom/ta_libc/Makefile | 1219 +++ make/cmr/win32/watcom/ta_regtest/Makefile | 219 + make/csd/cygwin/g++/Makefile | 36 + make/csd/cygwin/g++/gen_code/Makefile | 231 + make/csd/cygwin/g++/ta_abstract/Makefile | 243 + make/csd/cygwin/g++/ta_common/Makefile | 103 + make/csd/cygwin/g++/ta_func/Makefile | 883 ++ make/csd/cygwin/g++/ta_libc/Makefile | 1053 ++ make/csd/cygwin/g++/ta_regtest/Makefile | 211 + make/csd/freebsd/g++/Makefile | 36 + make/csd/freebsd/g++/gen_code/Makefile | 225 + make/csd/freebsd/g++/ta_abstract/Makefile | 243 + make/csd/freebsd/g++/ta_common/Makefile | 103 + make/csd/freebsd/g++/ta_func/Makefile | 883 ++ make/csd/freebsd/g++/ta_libc/Makefile | 1053 ++ make/csd/freebsd/g++/ta_regtest/Makefile | 205 + make/csd/linux/g++/Makefile | 36 + make/csd/linux/g++/gen_code/Makefile | 231 + make/csd/linux/g++/ta_abstract/Makefile | 243 + make/csd/linux/g++/ta_common/Makefile | 103 + make/csd/linux/g++/ta_func/Makefile | 883 ++ make/csd/linux/g++/ta_libc/Makefile | 1053 ++ make/csd/linux/g++/ta_regtest/Makefile | 211 + make/csd/win32/borland/Makefile | 96 + make/csd/win32/borland/gen_code/Makefile | 267 + make/csd/win32/borland/ta_abstract/Makefile | 309 + make/csd/win32/borland/ta_common/Makefile | 113 + make/csd/win32/borland/ta_func/Makefile | 1205 +++ make/csd/win32/borland/ta_libc/Makefile | 1438 +++ make/csd/win32/borland/ta_regtest/Makefile | 243 + make/csd/win32/msvc/Makefile | 97 + make/csd/win32/msvc/gen_code/Makefile | 263 + make/csd/win32/msvc/ta_abstract/Makefile | 273 + make/csd/win32/msvc/ta_common/Makefile | 105 + make/csd/win32/msvc/ta_func/Makefile | 1041 ++ make/csd/win32/msvc/ta_libc/Makefile | 1240 +++ make/csd/win32/msvc/ta_regtest/Makefile | 239 + make/csd/win32/symantec/Makefile | 97 + make/csd/win32/symantec/gen_code/Makefile | 253 + make/csd/win32/symantec/ta_abstract/Makefile | 295 + make/csd/win32/symantec/ta_common/Makefile | 99 + make/csd/win32/symantec/ta_func/Makefile | 1191 +++ make/csd/win32/symantec/ta_libc/Makefile | 1424 +++ make/csd/win32/symantec/ta_regtest/Makefile | 229 + make/csd/win32/watcom/Makefile | 97 + make/csd/win32/watcom/gen_code/Makefile | 243 + make/csd/win32/watcom/ta_abstract/Makefile | 251 + make/csd/win32/watcom/ta_common/Makefile | 83 + make/csd/win32/watcom/ta_func/Makefile | 1019 ++ make/csd/win32/watcom/ta_libc/Makefile | 1219 +++ make/csd/win32/watcom/ta_regtest/Makefile | 219 + make/csp/cygwin/g++/Makefile | 36 + make/csp/cygwin/g++/gen_code/Makefile | 231 + make/csp/cygwin/g++/ta_abstract/Makefile | 243 + make/csp/cygwin/g++/ta_common/Makefile | 103 + make/csp/cygwin/g++/ta_func/Makefile | 883 ++ make/csp/cygwin/g++/ta_libc/Makefile | 1053 ++ make/csp/cygwin/g++/ta_regtest/Makefile | 211 + make/csp/freebsd/g++/Makefile | 36 + make/csp/freebsd/g++/gen_code/Makefile | 225 + make/csp/freebsd/g++/ta_abstract/Makefile | 243 + make/csp/freebsd/g++/ta_common/Makefile | 103 + make/csp/freebsd/g++/ta_func/Makefile | 883 ++ make/csp/freebsd/g++/ta_libc/Makefile | 1053 ++ make/csp/freebsd/g++/ta_regtest/Makefile | 205 + make/csp/linux/g++/Makefile | 36 + make/csp/linux/g++/gen_code/Makefile | 231 + make/csp/linux/g++/ta_abstract/Makefile | 243 + make/csp/linux/g++/ta_common/Makefile | 103 + make/csp/linux/g++/ta_func/Makefile | 883 ++ make/csp/linux/g++/ta_libc/Makefile | 1053 ++ make/csp/linux/g++/ta_regtest/Makefile | 211 + make/csr/cygwin/g++/Makefile | 36 + make/csr/cygwin/g++/gen_code/Makefile | 231 + make/csr/cygwin/g++/ta_abstract/Makefile | 243 + make/csr/cygwin/g++/ta_common/Makefile | 103 + make/csr/cygwin/g++/ta_func/Makefile | 883 ++ make/csr/cygwin/g++/ta_libc/Makefile | 1053 ++ make/csr/cygwin/g++/ta_regtest/Makefile | 211 + make/csr/freebsd/g++/Makefile | 36 + make/csr/freebsd/g++/gen_code/Makefile | 225 + make/csr/freebsd/g++/ta_abstract/Makefile | 243 + make/csr/freebsd/g++/ta_common/Makefile | 103 + make/csr/freebsd/g++/ta_func/Makefile | 883 ++ make/csr/freebsd/g++/ta_libc/Makefile | 1053 ++ make/csr/freebsd/g++/ta_regtest/Makefile | 205 + make/csr/linux/g++/Makefile | 36 + make/csr/linux/g++/gen_code/Makefile | 231 + make/csr/linux/g++/ta_abstract/Makefile | 243 + make/csr/linux/g++/ta_common/Makefile | 103 + make/csr/linux/g++/ta_func/Makefile | 883 ++ make/csr/linux/g++/ta_libc/Makefile | 1053 ++ make/csr/linux/g++/ta_regtest/Makefile | 211 + make/csr/win32/borland/Makefile | 96 + make/csr/win32/borland/gen_code/Makefile | 267 + make/csr/win32/borland/ta_abstract/Makefile | 309 + make/csr/win32/borland/ta_common/Makefile | 113 + make/csr/win32/borland/ta_func/Makefile | 1205 +++ make/csr/win32/borland/ta_libc/Makefile | 1438 +++ make/csr/win32/borland/ta_regtest/Makefile | 243 + make/csr/win32/msvc/Makefile | 97 + make/csr/win32/msvc/gen_code/Makefile | 260 + make/csr/win32/msvc/ta_abstract/Makefile | 270 + make/csr/win32/msvc/ta_common/Makefile | 102 + make/csr/win32/msvc/ta_func/Makefile | 1038 ++ make/csr/win32/msvc/ta_libc/Makefile | 1237 +++ make/csr/win32/msvc/ta_regtest/Makefile | 236 + make/csr/win32/symantec/Makefile | 97 + make/csr/win32/symantec/gen_code/Makefile | 253 + make/csr/win32/symantec/ta_abstract/Makefile | 295 + make/csr/win32/symantec/ta_common/Makefile | 99 + make/csr/win32/symantec/ta_func/Makefile | 1191 +++ make/csr/win32/symantec/ta_libc/Makefile | 1424 +++ make/csr/win32/symantec/ta_regtest/Makefile | 229 + make/csr/win32/watcom/Makefile | 97 + make/csr/win32/watcom/gen_code/Makefile | 243 + make/csr/win32/watcom/ta_abstract/Makefile | 251 + make/csr/win32/watcom/ta_common/Makefile | 83 + make/csr/win32/watcom/ta_func/Makefile | 1019 ++ make/csr/win32/watcom/ta_libc/Makefile | 1219 +++ make/csr/win32/watcom/ta_regtest/Makefile | 219 + make/gen_make/README.TXT | 40 + make/gen_make/gen_code/gen_code.pro | 151 + make/gen_make/gen_make.pl | 43 + make/gen_make/make_make.pl | 269 + make/gen_make/rootmake.pro | 7 + make/gen_make/ta_abstract/make_pro.pl | 141 + make/gen_make/ta_abstract/ta_abstract.pro | 128 + make/gen_make/ta_common/ta_common.pro | 96 + make/gen_make/ta_func/make_pro.pl | 123 + make/gen_make/ta_func/ta_func.pro | 254 + make/gen_make/ta_libc/make_pro.pl | 177 + make/gen_make/ta_libc/ta_libc.pro | 245 + make/gen_make/ta_regtest/ta_regtest.pro | 142 + make/gen_make/template/cygwin-g++/app.t | 2 + make/gen_make/template/cygwin-g++/lib.t | 2 + make/gen_make/template/cygwin-g++/subdirs.t | 2 + make/gen_make/template/cygwin-g++/tmake.conf | 65 + make/gen_make/template/freebsd-g++/app.t | 6 + make/gen_make/template/freebsd-g++/generic.t | 395 + make/gen_make/template/freebsd-g++/lib.t | 2 + make/gen_make/template/freebsd-g++/subdirs.t | 2 + make/gen_make/template/freebsd-g++/tmake.conf | 65 + make/gen_make/template/linux-g++/app.t | 2 + make/gen_make/template/linux-g++/lib.t | 2 + make/gen_make/template/linux-g++/subdirs.t | 2 + make/gen_make/template/linux-g++/tmake.conf | 65 + make/gen_make/template/unix/app.t | 6 + make/gen_make/template/unix/generic.t | 401 + make/gen_make/template/unix/lib.t | 6 + make/gen_make/template/unix/subdirs.t | 40 + make/gen_make/template/win32-borland/app.t | 6 + .../gen_make/template/win32-borland/generic.t | 270 + make/gen_make/template/win32-borland/lib.t | 6 + .../gen_make/template/win32-borland/subdirs.t | 3 + .../template/win32-borland/tmake.conf | 69 + make/gen_make/template/win32-msvc/app.t | 6 + make/gen_make/template/win32-msvc/generic.t | 261 + make/gen_make/template/win32-msvc/lib.t | 6 + make/gen_make/template/win32-msvc/subdirs.t | 54 + make/gen_make/template/win32-msvc/tmake.conf | 67 + make/gen_make/template/win32-msvc/vcapp.t | 12 + make/gen_make/template/win32-msvc/vcgeneric.t | 268 + make/gen_make/template/win32-msvc/vclib.t | 14 + .../gen_make/template/win32-msvc/win32app.dsp | 109 + .../gen_make/template/win32-msvc/win32dll.dsp | 112 + .../gen_make/template/win32-msvc/win32lib.dsp | 105 + make/gen_make/template/win32-symantec/app.t | 6 + .../template/win32-symantec/generic.t | 227 + make/gen_make/template/win32-symantec/lib.t | 6 + .../template/win32-symantec/subdirs.t | 2 + .../template/win32-symantec/tmake.conf | 56 + make/gen_make/template/win32-watcom/app.t | 6 + make/gen_make/template/win32-watcom/generic.t | 218 + make/gen_make/template/win32-watcom/lib.t | 6 + make/gen_make/template/win32-watcom/subdirs.t | 2 + .../gen_make/template/win32-watcom/tmake.conf | 54 + make/gen_make/template/win32/subdirs.t | 54 + src/Makefile.am | 14 + src/ta_abstract/Makefile.am | 49 + src/ta_abstract/excel_glue.c | 202 + src/ta_abstract/frames/ta_frame.c | 3407 +++++++ src/ta_abstract/frames/ta_frame.h | 1481 +++ src/ta_abstract/ta_abstract.c | 1313 +++ src/ta_abstract/ta_def_ui.c | 554 + src/ta_abstract/ta_def_ui.h | 291 + src/ta_abstract/ta_frame_priv.h | 128 + src/ta_abstract/ta_func_api.c | 8962 +++++++++++++++++ src/ta_abstract/ta_group_idx.c | 447 + src/ta_abstract/ta_java_defs.h | 360 + src/ta_abstract/tables/table_a.c | 373 + src/ta_abstract/tables/table_b.c | 196 + src/ta_abstract/tables/table_c.c | 1885 ++++ src/ta_abstract/tables/table_d.c | 129 + src/ta_abstract/tables/table_e.c | 102 + src/ta_abstract/tables/table_f.c | 76 + src/ta_abstract/tables/table_g.c | 72 + src/ta_abstract/tables/table_h.c | 246 + src/ta_abstract/tables/table_i.c | 72 + src/ta_abstract/tables/table_j.c | 72 + src/ta_abstract/tables/table_k.c | 98 + src/ta_abstract/tables/table_l.c | 188 + src/ta_abstract/tables/table_m.c | 739 ++ src/ta_abstract/tables/table_n.c | 127 + src/ta_abstract/tables/table_o.c | 96 + src/ta_abstract/tables/table_p.c | 186 + src/ta_abstract/tables/table_q.c | 72 + src/ta_abstract/tables/table_r.c | 206 + src/ta_abstract/tables/table_s.c | 630 ++ src/ta_abstract/tables/table_t.c | 277 + src/ta_abstract/tables/table_u.c | 142 + src/ta_abstract/tables/table_v.c | 98 + src/ta_abstract/tables/table_w.c | 149 + src/ta_abstract/tables/table_x.c | 72 + src/ta_abstract/tables/table_y.c | 72 + src/ta_abstract/tables/table_z.c | 72 + .../templates/CoreAnnotated.java.template | 69 + .../templates/Makefile.am.template | 13 + .../templates/excel_glue.c.template | 45 + src/ta_abstract/templates/ta_frame.c.template | 63 + src/ta_abstract/templates/ta_frame.h.template | 60 + src/ta_abstract/templates/ta_func.h.template | 66 + .../templates/ta_func.swg.template | 45 + .../templates/ta_func_api.c.template | 55 + .../templates/ta_group_idx.c.template | 56 + .../templates/ta_java_defs.h.template | 45 + .../templates/ta_retcode.c.template | 92 + src/ta_abstract/templates/ta_x.c.template | 84 + src/ta_common/Makefile.am | 15 + src/ta_common/ta_global.c | 178 + src/ta_common/ta_global.h | 119 + src/ta_common/ta_magic_nb.h | 31 + src/ta_common/ta_memory.h | 341 + src/ta_common/ta_pragma.h | 87 + src/ta_common/ta_retcode.c | 109 + src/ta_common/ta_retcode.csv | 18 + src/ta_common/ta_version.c | 77 + src/ta_func/Makefile.am | 170 + src/ta_func/ta_ACOS.c | 241 + src/ta_func/ta_AD.c | 314 + src/ta_func/ta_ADD.c | 250 + src/ta_func/ta_ADOSC.c | 480 + src/ta_func/ta_ADX.c | 785 ++ src/ta_func/ta_ADXR.c | 374 + src/ta_func/ta_APO.c | 597 ++ src/ta_func/ta_AROON.c | 450 + src/ta_func/ta_AROONOSC.c | 456 + src/ta_func/ta_ASIN.c | 241 + src/ta_func/ta_ATAN.c | 241 + src/ta_func/ta_ATR.c | 453 + src/ta_func/ta_AVGPRICE.c | 278 + src/ta_func/ta_BBANDS.c | 643 ++ src/ta_func/ta_BETA.c | 484 + src/ta_func/ta_BOP.c | 279 + src/ta_func/ta_CCI.c | 416 + src/ta_func/ta_CDL2CROWS.c | 356 + src/ta_func/ta_CDL3BLACKCROWS.c | 384 + src/ta_func/ta_CDL3INSIDE.c | 375 + src/ta_func/ta_CDL3LINESTRIKE.c | 396 + src/ta_func/ta_CDL3OUTSIDE.c | 334 + src/ta_func/ta_CDL3STARSINSOUTH.c | 452 + src/ta_func/ta_CDL3WHITESOLDIERS.c | 476 + src/ta_func/ta_CDLABANDONEDBABY.c | 450 + src/ta_func/ta_CDLADVANCEBLOCK.c | 548 + src/ta_func/ta_CDLBELTHOLD.c | 376 + src/ta_func/ta_CDLBREAKAWAY.c | 383 + src/ta_func/ta_CDLCLOSINGMARUBOZU.c | 376 + src/ta_func/ta_CDLCONCEALBABYSWALL.c | 384 + src/ta_func/ta_CDLCOUNTERATTACK.c | 378 + src/ta_func/ta_CDLDARKCLOUDCOVER.c | 384 + src/ta_func/ta_CDLDOJI.c | 337 + src/ta_func/ta_CDLDOJISTAR.c | 368 + src/ta_func/ta_CDLDRAGONFLYDOJI.c | 365 + src/ta_func/ta_CDLENGULFING.c | 329 + src/ta_func/ta_CDLEVENINGDOJISTAR.c | 426 + src/ta_func/ta_CDLEVENINGSTAR.c | 412 + src/ta_func/ta_CDLGAPSIDESIDEWHITE.c | 385 + src/ta_func/ta_CDLGRAVESTONEDOJI.c | 365 + src/ta_func/ta_CDLHAMMER.c | 414 + src/ta_func/ta_CDLHANGINGMAN.c | 414 + src/ta_func/ta_CDLHARAMI.c | 366 + src/ta_func/ta_CDLHARAMICROSS.c | 366 + src/ta_func/ta_CDLHIGHWAVE.c | 359 + src/ta_func/ta_CDLHIKKAKE.c | 399 + src/ta_func/ta_CDLHIKKAKEMOD.c | 457 + src/ta_func/ta_CDLHOMINGPIGEON.c | 370 + src/ta_func/ta_CDLIDENTICAL3CROWS.c | 419 + src/ta_func/ta_CDLINNECK.c | 373 + src/ta_func/ta_CDLINVERTEDHAMMER.c | 389 + src/ta_func/ta_CDLKICKING.c | 406 + src/ta_func/ta_CDLKICKINGBYLENGTH.c | 407 + src/ta_func/ta_CDLLADDERBOTTOM.c | 361 + src/ta_func/ta_CDLLONGLEGGEDDOJI.c | 365 + src/ta_func/ta_CDLLONGLINE.c | 358 + src/ta_func/ta_CDLMARUBOZU.c | 360 + src/ta_func/ta_CDLMATCHINGLOW.c | 346 + src/ta_func/ta_CDLMATHOLD.c | 455 + src/ta_func/ta_CDLMORNINGDOJISTAR.c | 425 + src/ta_func/ta_CDLMORNINGSTAR.c | 411 + src/ta_func/ta_CDLONNECK.c | 373 + src/ta_func/ta_CDLPIERCING.c | 363 + src/ta_func/ta_CDLRICKSHAWMAN.c | 396 + src/ta_func/ta_CDLRISEFALL3METHODS.c | 422 + src/ta_func/ta_CDLSEPARATINGLINES.c | 406 + src/ta_func/ta_CDLSHOOTINGSTAR.c | 389 + src/ta_func/ta_CDLSHORTLINE.c | 359 + src/ta_func/ta_CDLSPINNINGTOP.c | 343 + src/ta_func/ta_CDLSTALLEDPATTERN.c | 456 + src/ta_func/ta_CDLSTICKSANDWICH.c | 353 + src/ta_func/ta_CDLTAKURI.c | 387 + src/ta_func/ta_CDLTASUKIGAP.c | 385 + src/ta_func/ta_CDLTHRUSTING.c | 375 + src/ta_func/ta_CDLTRISTAR.c | 366 + src/ta_func/ta_CDLUNIQUE3RIVER.c | 375 + src/ta_func/ta_CDLUPSIDEGAP2CROWS.c | 377 + src/ta_func/ta_CDLXSIDEGAP3METHODS.c | 350 + src/ta_func/ta_CEIL.c | 241 + src/ta_func/ta_CMO.c | 595 ++ src/ta_func/ta_CORREL.c | 404 + src/ta_func/ta_COS.c | 241 + src/ta_func/ta_COSH.c | 241 + src/ta_func/ta_DEMA.c | 487 + src/ta_func/ta_DIV.c | 250 + src/ta_func/ta_DX.c | 692 ++ src/ta_func/ta_EMA.c | 493 + src/ta_func/ta_EXP.c | 241 + src/ta_func/ta_FLOOR.c | 241 + src/ta_func/ta_HT_DCPERIOD.c | 561 ++ src/ta_func/ta_HT_DCPHASE.c | 679 ++ src/ta_func/ta_HT_PHASOR.c | 581 ++ src/ta_func/ta_HT_SINE.c | 695 ++ src/ta_func/ta_HT_TRENDLINE.c | 641 ++ src/ta_func/ta_HT_TRENDMODE.c | 794 ++ src/ta_func/ta_KAMA.c | 497 + src/ta_func/ta_LINEARREG.c | 354 + src/ta_func/ta_LINEARREG_ANGLE.c | 354 + src/ta_func/ta_LINEARREG_INTERCEPT.c | 352 + src/ta_func/ta_LINEARREG_SLOPE.c | 348 + src/ta_func/ta_LN.c | 241 + src/ta_func/ta_LOG10.c | 241 + src/ta_func/ta_MA.c | 476 + src/ta_func/ta_MACD.c | 783 ++ src/ta_func/ta_MACDEXT.c | 703 ++ src/ta_func/ta_MACDFIX.c | 301 + src/ta_func/ta_MAMA.c | 714 ++ src/ta_func/ta_MAVP.c | 492 + src/ta_func/ta_MAX.c | 373 + src/ta_func/ta_MAXINDEX.c | 368 + src/ta_func/ta_MEDPRICE.c | 264 + src/ta_func/ta_MFI.c | 572 ++ src/ta_func/ta_MIDPOINT.c | 345 + src/ta_func/ta_MIDPRICE.c | 357 + src/ta_func/ta_MIN.c | 373 + src/ta_func/ta_MININDEX.c | 368 + src/ta_func/ta_MINMAX.c | 429 + src/ta_func/ta_MINMAXINDEX.c | 429 + src/ta_func/ta_MINUS_DI.c | 703 ++ src/ta_func/ta_MINUS_DM.c | 579 ++ src/ta_func/ta_MOM.c | 335 + src/ta_func/ta_MULT.c | 250 + src/ta_func/ta_NATR.c | 486 + src/ta_func/ta_NVI.c | 197 + src/ta_func/ta_OBV.c | 280 + src/ta_func/ta_PLUS_DI.c | 703 ++ src/ta_func/ta_PLUS_DM.c | 580 ++ src/ta_func/ta_PPO.c | 354 + src/ta_func/ta_PVI.c | 197 + src/ta_func/ta_ROC.c | 346 + src/ta_func/ta_ROCP.c | 347 + src/ta_func/ta_ROCR.c | 348 + src/ta_func/ta_ROCR100.c | 347 + src/ta_func/ta_RSI.c | 599 ++ src/ta_func/ta_SAR.c | 711 ++ src/ta_func/ta_SAREXT.c | 985 ++ src/ta_func/ta_SIN.c | 252 + src/ta_func/ta_SINH.c | 241 + src/ta_func/ta_SMA.c | 411 + src/ta_func/ta_SQRT.c | 241 + src/ta_func/ta_STDDEV.c | 497 + src/ta_func/ta_STOCH.c | 802 ++ src/ta_func/ta_STOCHF.c | 722 ++ src/ta_func/ta_STOCHRSI.c | 507 + src/ta_func/ta_SUB.c | 250 + src/ta_func/ta_SUM.c | 333 + src/ta_func/ta_T3.c | 524 + src/ta_func/ta_TAN.c | 241 + src/ta_func/ta_TANH.c | 241 + src/ta_func/ta_TEMA.c | 481 + src/ta_func/ta_TRANGE.c | 328 + src/ta_func/ta_TRIMA.c | 648 ++ src/ta_func/ta_TRIX.c | 449 + src/ta_func/ta_TSF.c | 354 + src/ta_func/ta_TYPPRICE.c | 271 + src/ta_func/ta_ULTOSC.c | 579 ++ src/ta_func/ta_VAR.c | 477 + src/ta_func/ta_WCLPRICE.c | 270 + src/ta_func/ta_WILLR.c | 453 + src/ta_func/ta_WMA.c | 418 + src/ta_func/ta_utility.c | 134 + src/ta_func/ta_utility.h | 365 + src/tools/Makefile.am | 2 + src/tools/gen_code/Makefile.am | 14 + src/tools/gen_code/gen_code.c | 4648 +++++++++ src/tools/gen_code/java/Main.java | 89 + src/tools/gen_code/java/PrettyCode.java | 224 + src/tools/gen_code/mcpp.exe | Bin 0 -> 135168 bytes src/tools/ta_regtest/Makefile.am | 38 + src/tools/ta_regtest/ReadMe.txt | 12 + src/tools/ta_regtest/ta_error_number.h | 297 + src/tools/ta_regtest/ta_gDataClose.c | 723 ++ src/tools/ta_regtest/ta_gDataHigh.c | 723 ++ src/tools/ta_regtest/ta_gDataLow.c | 719 ++ src/tools/ta_regtest/ta_gDataOpen.c | 667 ++ src/tools/ta_regtest/ta_regtest.c | 296 + src/tools/ta_regtest/ta_test_func.h | 27 + .../ta_regtest/ta_test_func/test_1in_1out.c | 507 + .../ta_regtest/ta_test_func/test_1in_2out.c | 469 + src/tools/ta_regtest/ta_test_func/test_adx.c | 682 ++ .../ta_regtest/ta_test_func/test_bbands.c | 533 + .../ta_test_func/test_candlestick.c | 744 ++ src/tools/ta_regtest/ta_test_func/test_ma.c | 816 ++ src/tools/ta_regtest/ta_test_func/test_macd.c | 603 ++ .../ta_regtest/ta_test_func/test_minmax.c | 833 ++ src/tools/ta_regtest/ta_test_func/test_mom.c | 553 + .../ta_regtest/ta_test_func/test_per_ema.c | 306 + .../ta_regtest/ta_test_func/test_per_hl.c | 640 ++ .../ta_regtest/ta_test_func/test_per_hlc.c | 542 + .../ta_regtest/ta_test_func/test_per_hlcv.c | 710 ++ .../ta_regtest/ta_test_func/test_per_ohlc.c | 527 + src/tools/ta_regtest/ta_test_func/test_po.c | 440 + src/tools/ta_regtest/ta_test_func/test_rsi.c | 507 + src/tools/ta_regtest/ta_test_func/test_sar.c | 301 + .../ta_regtest/ta_test_func/test_stddev.c | 265 + .../ta_regtest/ta_test_func/test_stoch.c | 794 ++ .../ta_regtest/ta_test_func/test_trange.c | 349 + src/tools/ta_regtest/ta_test_priv.h | 210 + src/tools/ta_regtest/test_abstract.c | 762 ++ src/tools/ta_regtest/test_data.c | 145 + src/tools/ta_regtest/test_internals.c | 274 + src/tools/ta_regtest/test_util.c | 1338 +++ ta-lib-config.in | 28 + ta-lib.dpkg.in | 16 + ta-lib.spec.in | 25 + temp/cdd/gen_code/HOLDER | 2 + temp/cdd/ta_abstract/HOLDER | 2 + temp/cdd/ta_common/HOLDER | 2 + temp/cdd/ta_func/HOLDER | 2 + temp/cdd/ta_libc/HOLDER | 2 + temp/cdd/ta_regtest/HOLDER | 2 + temp/cdr/gen_code/HOLDER | 2 + temp/cdr/ta_abstract/HOLDER | 2 + temp/cdr/ta_common/HOLDER | 2 + temp/cdr/ta_func/HOLDER | 2 + temp/cdr/ta_libc/HOLDER | 2 + temp/cdr/ta_regtest/HOLDER | 2 + temp/cmd/gen_code/HOLDER | 2 + temp/cmd/ta_abstract/HOLDER | 2 + temp/cmd/ta_common/HOLDER | 2 + temp/cmd/ta_func/HOLDER | 2 + temp/cmd/ta_libc/HOLDER | 2 + temp/cmd/ta_regtest/HOLDER | 2 + temp/cmp/gen_code/HOLDER | 2 + temp/cmp/ta_abstract/HOLDER | 2 + temp/cmp/ta_common/HOLDER | 2 + temp/cmp/ta_func/HOLDER | 2 + temp/cmp/ta_libc/HOLDER | 2 + temp/cmp/ta_regtest/HOLDER | 2 + temp/cmr/gen_code/HOLDER | 2 + temp/cmr/ta_abstract/HOLDER | 2 + temp/cmr/ta_common/HOLDER | 2 + temp/cmr/ta_func/HOLDER | 2 + temp/cmr/ta_libc/HOLDER | 2 + temp/cmr/ta_regtest/HOLDER | 2 + temp/csd/gen_code/HOLDER | 2 + temp/csd/ta_abstract/HOLDER | 2 + temp/csd/ta_common/HOLDER | 2 + temp/csd/ta_func/HOLDER | 2 + temp/csd/ta_libc/HOLDER | 2 + temp/csd/ta_regtest/HOLDER | 2 + temp/csp/gen_code/HOLDER | 2 + temp/csp/ta_abstract/HOLDER | 2 + temp/csp/ta_common/HOLDER | 2 + temp/csp/ta_func/HOLDER | 2 + temp/csp/ta_libc/HOLDER | 2 + temp/csp/ta_regtest/HOLDER | 2 + temp/csr/gen_code/HOLDER | 2 + temp/csr/ta_abstract/HOLDER | 2 + temp/csr/ta_common/HOLDER | 2 + temp/csr/ta_func/HOLDER | 2 + temp/csr/ta_libc/HOLDER | 2 + temp/csr/ta_regtest/HOLDER | 2 + 657 files changed, 249397 insertions(+) create mode 100644 Makefile.am create mode 100644 autogen.sh create mode 100644 bin/.cvsignore create mode 100644 bin/HOLDER create mode 100644 configure.in create mode 100644 ide/msvc/lib_proj/gen_code/gen_code.dsp create mode 100644 ide/msvc/lib_proj/lib_proj.dsw create mode 100644 ide/msvc/lib_proj/ta_abstract/ta_abstract.dsp create mode 100644 ide/msvc/lib_proj/ta_common/ta_common.dsp create mode 100644 ide/msvc/lib_proj/ta_func/ta_func.dsp create mode 100644 ide/msvc/lib_proj/ta_libc/ta_libc.dsp create mode 100644 ide/msvc/lib_proj/ta_regtest/ta_regtest.dsp create mode 100644 ide/vs2005/lib_proj/gen_code/gen_code.vcproj create mode 100644 ide/vs2005/lib_proj/ta_abstract/ta_abstract.vcproj create mode 100644 ide/vs2005/lib_proj/ta_common/ta_common.vcproj create mode 100644 ide/vs2005/lib_proj/ta_func/ta_func.vcproj create mode 100644 ide/vs2005/lib_proj/ta_lib.sln create mode 100644 ide/vs2005/lib_proj/ta_libc/ta_libc.vcproj create mode 100644 ide/vs2005/lib_proj/ta_regtest/ta_regtest.vcproj create mode 100644 ide/xcode/TALib/.DS_Store create mode 100644 ide/xcode/TALib/English.lproj/InfoPlist.strings create mode 100644 ide/xcode/TALib/Info.plist create mode 100644 ide/xcode/TALib/README_XCODE.TXT create mode 100644 ide/xcode/TALib/TALib.xcodeproj/project.pbxproj create mode 100644 ide/xcode/TALib/TALib_Prefix.pch create mode 100644 ide/xcode/TALib/main.c create mode 100644 ide/xcode/TALib/version.plist create mode 100644 include/Makefile.am create mode 100644 include/ta_abstract.h create mode 100644 include/ta_common.h create mode 100644 include/ta_defs.h create mode 100644 include/ta_func.h create mode 100644 include/ta_libc.h create mode 100644 lib/HOLDER create mode 100644 make/README.TXT create mode 100644 make/cdd/win32/msvc/Makefile create mode 100644 make/cdd/win32/msvc/gen_code/Makefile create mode 100644 make/cdd/win32/msvc/ta_abstract/Makefile create mode 100644 make/cdd/win32/msvc/ta_common/Makefile create mode 100644 make/cdd/win32/msvc/ta_func/Makefile create mode 100644 make/cdd/win32/msvc/ta_libc/Makefile create mode 100644 make/cdd/win32/msvc/ta_regtest/Makefile create mode 100644 make/cdr/win32/msvc/Makefile create mode 100644 make/cdr/win32/msvc/gen_code/Makefile create mode 100644 make/cdr/win32/msvc/ta_abstract/Makefile create mode 100644 make/cdr/win32/msvc/ta_common/Makefile create mode 100644 make/cdr/win32/msvc/ta_func/Makefile create mode 100644 make/cdr/win32/msvc/ta_libc/Makefile create mode 100644 make/cdr/win32/msvc/ta_regtest/Makefile create mode 100644 make/cmd/cygwin/g++/Makefile create mode 100644 make/cmd/cygwin/g++/gen_code/Makefile create mode 100644 make/cmd/cygwin/g++/ta_abstract/Makefile create mode 100644 make/cmd/cygwin/g++/ta_common/Makefile create mode 100644 make/cmd/cygwin/g++/ta_func/Makefile create mode 100644 make/cmd/cygwin/g++/ta_libc/Makefile create mode 100644 make/cmd/cygwin/g++/ta_regtest/Makefile create mode 100644 make/cmd/freebsd/g++/Makefile create mode 100644 make/cmd/freebsd/g++/gen_code/Makefile create mode 100644 make/cmd/freebsd/g++/ta_abstract/Makefile create mode 100644 make/cmd/freebsd/g++/ta_common/Makefile create mode 100644 make/cmd/freebsd/g++/ta_func/Makefile create mode 100644 make/cmd/freebsd/g++/ta_libc/Makefile create mode 100644 make/cmd/freebsd/g++/ta_regtest/Makefile create mode 100644 make/cmd/linux/g++/Makefile create mode 100644 make/cmd/linux/g++/gen_code/Makefile create mode 100644 make/cmd/linux/g++/ta_abstract/Makefile create mode 100644 make/cmd/linux/g++/ta_common/Makefile create mode 100644 make/cmd/linux/g++/ta_func/Makefile create mode 100644 make/cmd/linux/g++/ta_libc/Makefile create mode 100644 make/cmd/linux/g++/ta_regtest/Makefile create mode 100644 make/cmd/win32/borland/Makefile create mode 100644 make/cmd/win32/borland/gen_code/Makefile create mode 100644 make/cmd/win32/borland/ta_abstract/Makefile create mode 100644 make/cmd/win32/borland/ta_common/Makefile create mode 100644 make/cmd/win32/borland/ta_func/Makefile create mode 100644 make/cmd/win32/borland/ta_libc/Makefile create mode 100644 make/cmd/win32/borland/ta_regtest/Makefile create mode 100644 make/cmd/win32/msvc/Makefile create mode 100644 make/cmd/win32/msvc/gen_code/Makefile create mode 100644 make/cmd/win32/msvc/ta_abstract/Makefile create mode 100644 make/cmd/win32/msvc/ta_common/Makefile create mode 100644 make/cmd/win32/msvc/ta_func/Makefile create mode 100644 make/cmd/win32/msvc/ta_libc/Makefile create mode 100644 make/cmd/win32/msvc/ta_regtest/Makefile create mode 100644 make/cmd/win32/symantec/Makefile create mode 100644 make/cmd/win32/symantec/gen_code/Makefile create mode 100644 make/cmd/win32/symantec/ta_abstract/Makefile create mode 100644 make/cmd/win32/symantec/ta_common/Makefile create mode 100644 make/cmd/win32/symantec/ta_func/Makefile create mode 100644 make/cmd/win32/symantec/ta_libc/Makefile create mode 100644 make/cmd/win32/symantec/ta_regtest/Makefile create mode 100644 make/cmd/win32/watcom/Makefile create mode 100644 make/cmd/win32/watcom/gen_code/Makefile create mode 100644 make/cmd/win32/watcom/ta_abstract/Makefile create mode 100644 make/cmd/win32/watcom/ta_common/Makefile create mode 100644 make/cmd/win32/watcom/ta_func/Makefile create mode 100644 make/cmd/win32/watcom/ta_libc/Makefile create mode 100644 make/cmd/win32/watcom/ta_regtest/Makefile create mode 100644 make/cmp/cygwin/g++/Makefile create mode 100644 make/cmp/cygwin/g++/gen_code/Makefile create mode 100644 make/cmp/cygwin/g++/ta_abstract/Makefile create mode 100644 make/cmp/cygwin/g++/ta_common/Makefile create mode 100644 make/cmp/cygwin/g++/ta_func/Makefile create mode 100644 make/cmp/cygwin/g++/ta_libc/Makefile create mode 100644 make/cmp/cygwin/g++/ta_regtest/Makefile create mode 100644 make/cmp/freebsd/g++/Makefile create mode 100644 make/cmp/freebsd/g++/gen_code/Makefile create mode 100644 make/cmp/freebsd/g++/ta_abstract/Makefile create mode 100644 make/cmp/freebsd/g++/ta_common/Makefile create mode 100644 make/cmp/freebsd/g++/ta_func/Makefile create mode 100644 make/cmp/freebsd/g++/ta_libc/Makefile create mode 100644 make/cmp/freebsd/g++/ta_regtest/Makefile create mode 100644 make/cmp/linux/g++/Makefile create mode 100644 make/cmp/linux/g++/gen_code/Makefile create mode 100644 make/cmp/linux/g++/ta_abstract/Makefile create mode 100644 make/cmp/linux/g++/ta_common/Makefile create mode 100644 make/cmp/linux/g++/ta_func/Makefile create mode 100644 make/cmp/linux/g++/ta_libc/Makefile create mode 100644 make/cmp/linux/g++/ta_regtest/Makefile create mode 100644 make/cmr/cygwin/g++/Makefile create mode 100644 make/cmr/cygwin/g++/gen_code/Makefile create mode 100644 make/cmr/cygwin/g++/ta_abstract/Makefile create mode 100644 make/cmr/cygwin/g++/ta_common/Makefile create mode 100644 make/cmr/cygwin/g++/ta_func/Makefile create mode 100644 make/cmr/cygwin/g++/ta_libc/Makefile create mode 100644 make/cmr/cygwin/g++/ta_regtest/Makefile create mode 100644 make/cmr/freebsd/g++/Makefile create mode 100644 make/cmr/freebsd/g++/gen_code/Makefile create mode 100644 make/cmr/freebsd/g++/ta_abstract/Makefile create mode 100644 make/cmr/freebsd/g++/ta_common/Makefile create mode 100644 make/cmr/freebsd/g++/ta_func/Makefile create mode 100644 make/cmr/freebsd/g++/ta_libc/Makefile create mode 100644 make/cmr/freebsd/g++/ta_regtest/Makefile create mode 100644 make/cmr/linux/g++/Makefile create mode 100644 make/cmr/linux/g++/gen_code/Makefile create mode 100644 make/cmr/linux/g++/ta_abstract/Makefile create mode 100644 make/cmr/linux/g++/ta_common/Makefile create mode 100644 make/cmr/linux/g++/ta_func/Makefile create mode 100644 make/cmr/linux/g++/ta_libc/Makefile create mode 100644 make/cmr/linux/g++/ta_regtest/Makefile create mode 100644 make/cmr/win32/borland/Makefile create mode 100644 make/cmr/win32/borland/gen_code/Makefile create mode 100644 make/cmr/win32/borland/ta_abstract/Makefile create mode 100644 make/cmr/win32/borland/ta_common/Makefile create mode 100644 make/cmr/win32/borland/ta_func/Makefile create mode 100644 make/cmr/win32/borland/ta_libc/Makefile create mode 100644 make/cmr/win32/borland/ta_regtest/Makefile create mode 100644 make/cmr/win32/msvc/Makefile create mode 100644 make/cmr/win32/msvc/gen_code/Makefile create mode 100644 make/cmr/win32/msvc/ta_abstract/Makefile create mode 100644 make/cmr/win32/msvc/ta_common/Makefile create mode 100644 make/cmr/win32/msvc/ta_func/Makefile create mode 100644 make/cmr/win32/msvc/ta_libc/Makefile create mode 100644 make/cmr/win32/msvc/ta_regtest/Makefile create mode 100644 make/cmr/win32/symantec/Makefile create mode 100644 make/cmr/win32/symantec/gen_code/Makefile create mode 100644 make/cmr/win32/symantec/ta_abstract/Makefile create mode 100644 make/cmr/win32/symantec/ta_common/Makefile create mode 100644 make/cmr/win32/symantec/ta_func/Makefile create mode 100644 make/cmr/win32/symantec/ta_libc/Makefile create mode 100644 make/cmr/win32/symantec/ta_regtest/Makefile create mode 100644 make/cmr/win32/watcom/Makefile create mode 100644 make/cmr/win32/watcom/gen_code/Makefile create mode 100644 make/cmr/win32/watcom/ta_abstract/Makefile create mode 100644 make/cmr/win32/watcom/ta_common/Makefile create mode 100644 make/cmr/win32/watcom/ta_func/Makefile create mode 100644 make/cmr/win32/watcom/ta_libc/Makefile create mode 100644 make/cmr/win32/watcom/ta_regtest/Makefile create mode 100644 make/csd/cygwin/g++/Makefile create mode 100644 make/csd/cygwin/g++/gen_code/Makefile create mode 100644 make/csd/cygwin/g++/ta_abstract/Makefile create mode 100644 make/csd/cygwin/g++/ta_common/Makefile create mode 100644 make/csd/cygwin/g++/ta_func/Makefile create mode 100644 make/csd/cygwin/g++/ta_libc/Makefile create mode 100644 make/csd/cygwin/g++/ta_regtest/Makefile create mode 100644 make/csd/freebsd/g++/Makefile create mode 100644 make/csd/freebsd/g++/gen_code/Makefile create mode 100644 make/csd/freebsd/g++/ta_abstract/Makefile create mode 100644 make/csd/freebsd/g++/ta_common/Makefile create mode 100644 make/csd/freebsd/g++/ta_func/Makefile create mode 100644 make/csd/freebsd/g++/ta_libc/Makefile create mode 100644 make/csd/freebsd/g++/ta_regtest/Makefile create mode 100644 make/csd/linux/g++/Makefile create mode 100644 make/csd/linux/g++/gen_code/Makefile create mode 100644 make/csd/linux/g++/ta_abstract/Makefile create mode 100644 make/csd/linux/g++/ta_common/Makefile create mode 100644 make/csd/linux/g++/ta_func/Makefile create mode 100644 make/csd/linux/g++/ta_libc/Makefile create mode 100644 make/csd/linux/g++/ta_regtest/Makefile create mode 100644 make/csd/win32/borland/Makefile create mode 100644 make/csd/win32/borland/gen_code/Makefile create mode 100644 make/csd/win32/borland/ta_abstract/Makefile create mode 100644 make/csd/win32/borland/ta_common/Makefile create mode 100644 make/csd/win32/borland/ta_func/Makefile create mode 100644 make/csd/win32/borland/ta_libc/Makefile create mode 100644 make/csd/win32/borland/ta_regtest/Makefile create mode 100644 make/csd/win32/msvc/Makefile create mode 100644 make/csd/win32/msvc/gen_code/Makefile create mode 100644 make/csd/win32/msvc/ta_abstract/Makefile create mode 100644 make/csd/win32/msvc/ta_common/Makefile create mode 100644 make/csd/win32/msvc/ta_func/Makefile create mode 100644 make/csd/win32/msvc/ta_libc/Makefile create mode 100644 make/csd/win32/msvc/ta_regtest/Makefile create mode 100644 make/csd/win32/symantec/Makefile create mode 100644 make/csd/win32/symantec/gen_code/Makefile create mode 100644 make/csd/win32/symantec/ta_abstract/Makefile create mode 100644 make/csd/win32/symantec/ta_common/Makefile create mode 100644 make/csd/win32/symantec/ta_func/Makefile create mode 100644 make/csd/win32/symantec/ta_libc/Makefile create mode 100644 make/csd/win32/symantec/ta_regtest/Makefile create mode 100644 make/csd/win32/watcom/Makefile create mode 100644 make/csd/win32/watcom/gen_code/Makefile create mode 100644 make/csd/win32/watcom/ta_abstract/Makefile create mode 100644 make/csd/win32/watcom/ta_common/Makefile create mode 100644 make/csd/win32/watcom/ta_func/Makefile create mode 100644 make/csd/win32/watcom/ta_libc/Makefile create mode 100644 make/csd/win32/watcom/ta_regtest/Makefile create mode 100644 make/csp/cygwin/g++/Makefile create mode 100644 make/csp/cygwin/g++/gen_code/Makefile create mode 100644 make/csp/cygwin/g++/ta_abstract/Makefile create mode 100644 make/csp/cygwin/g++/ta_common/Makefile create mode 100644 make/csp/cygwin/g++/ta_func/Makefile create mode 100644 make/csp/cygwin/g++/ta_libc/Makefile create mode 100644 make/csp/cygwin/g++/ta_regtest/Makefile create mode 100644 make/csp/freebsd/g++/Makefile create mode 100644 make/csp/freebsd/g++/gen_code/Makefile create mode 100644 make/csp/freebsd/g++/ta_abstract/Makefile create mode 100644 make/csp/freebsd/g++/ta_common/Makefile create mode 100644 make/csp/freebsd/g++/ta_func/Makefile create mode 100644 make/csp/freebsd/g++/ta_libc/Makefile create mode 100644 make/csp/freebsd/g++/ta_regtest/Makefile create mode 100644 make/csp/linux/g++/Makefile create mode 100644 make/csp/linux/g++/gen_code/Makefile create mode 100644 make/csp/linux/g++/ta_abstract/Makefile create mode 100644 make/csp/linux/g++/ta_common/Makefile create mode 100644 make/csp/linux/g++/ta_func/Makefile create mode 100644 make/csp/linux/g++/ta_libc/Makefile create mode 100644 make/csp/linux/g++/ta_regtest/Makefile create mode 100644 make/csr/cygwin/g++/Makefile create mode 100644 make/csr/cygwin/g++/gen_code/Makefile create mode 100644 make/csr/cygwin/g++/ta_abstract/Makefile create mode 100644 make/csr/cygwin/g++/ta_common/Makefile create mode 100644 make/csr/cygwin/g++/ta_func/Makefile create mode 100644 make/csr/cygwin/g++/ta_libc/Makefile create mode 100644 make/csr/cygwin/g++/ta_regtest/Makefile create mode 100644 make/csr/freebsd/g++/Makefile create mode 100644 make/csr/freebsd/g++/gen_code/Makefile create mode 100644 make/csr/freebsd/g++/ta_abstract/Makefile create mode 100644 make/csr/freebsd/g++/ta_common/Makefile create mode 100644 make/csr/freebsd/g++/ta_func/Makefile create mode 100644 make/csr/freebsd/g++/ta_libc/Makefile create mode 100644 make/csr/freebsd/g++/ta_regtest/Makefile create mode 100644 make/csr/linux/g++/Makefile create mode 100644 make/csr/linux/g++/gen_code/Makefile create mode 100644 make/csr/linux/g++/ta_abstract/Makefile create mode 100644 make/csr/linux/g++/ta_common/Makefile create mode 100644 make/csr/linux/g++/ta_func/Makefile create mode 100644 make/csr/linux/g++/ta_libc/Makefile create mode 100644 make/csr/linux/g++/ta_regtest/Makefile create mode 100644 make/csr/win32/borland/Makefile create mode 100644 make/csr/win32/borland/gen_code/Makefile create mode 100644 make/csr/win32/borland/ta_abstract/Makefile create mode 100644 make/csr/win32/borland/ta_common/Makefile create mode 100644 make/csr/win32/borland/ta_func/Makefile create mode 100644 make/csr/win32/borland/ta_libc/Makefile create mode 100644 make/csr/win32/borland/ta_regtest/Makefile create mode 100644 make/csr/win32/msvc/Makefile create mode 100644 make/csr/win32/msvc/gen_code/Makefile create mode 100644 make/csr/win32/msvc/ta_abstract/Makefile create mode 100644 make/csr/win32/msvc/ta_common/Makefile create mode 100644 make/csr/win32/msvc/ta_func/Makefile create mode 100644 make/csr/win32/msvc/ta_libc/Makefile create mode 100644 make/csr/win32/msvc/ta_regtest/Makefile create mode 100644 make/csr/win32/symantec/Makefile create mode 100644 make/csr/win32/symantec/gen_code/Makefile create mode 100644 make/csr/win32/symantec/ta_abstract/Makefile create mode 100644 make/csr/win32/symantec/ta_common/Makefile create mode 100644 make/csr/win32/symantec/ta_func/Makefile create mode 100644 make/csr/win32/symantec/ta_libc/Makefile create mode 100644 make/csr/win32/symantec/ta_regtest/Makefile create mode 100644 make/csr/win32/watcom/Makefile create mode 100644 make/csr/win32/watcom/gen_code/Makefile create mode 100644 make/csr/win32/watcom/ta_abstract/Makefile create mode 100644 make/csr/win32/watcom/ta_common/Makefile create mode 100644 make/csr/win32/watcom/ta_func/Makefile create mode 100644 make/csr/win32/watcom/ta_libc/Makefile create mode 100644 make/csr/win32/watcom/ta_regtest/Makefile create mode 100644 make/gen_make/README.TXT create mode 100644 make/gen_make/gen_code/gen_code.pro create mode 100644 make/gen_make/gen_make.pl create mode 100644 make/gen_make/make_make.pl create mode 100644 make/gen_make/rootmake.pro create mode 100644 make/gen_make/ta_abstract/make_pro.pl create mode 100644 make/gen_make/ta_abstract/ta_abstract.pro create mode 100644 make/gen_make/ta_common/ta_common.pro create mode 100644 make/gen_make/ta_func/make_pro.pl create mode 100644 make/gen_make/ta_func/ta_func.pro create mode 100644 make/gen_make/ta_libc/make_pro.pl create mode 100644 make/gen_make/ta_libc/ta_libc.pro create mode 100644 make/gen_make/ta_regtest/ta_regtest.pro create mode 100644 make/gen_make/template/cygwin-g++/app.t create mode 100644 make/gen_make/template/cygwin-g++/lib.t create mode 100644 make/gen_make/template/cygwin-g++/subdirs.t create mode 100644 make/gen_make/template/cygwin-g++/tmake.conf create mode 100644 make/gen_make/template/freebsd-g++/app.t create mode 100644 make/gen_make/template/freebsd-g++/generic.t create mode 100644 make/gen_make/template/freebsd-g++/lib.t create mode 100644 make/gen_make/template/freebsd-g++/subdirs.t create mode 100644 make/gen_make/template/freebsd-g++/tmake.conf create mode 100644 make/gen_make/template/linux-g++/app.t create mode 100644 make/gen_make/template/linux-g++/lib.t create mode 100644 make/gen_make/template/linux-g++/subdirs.t create mode 100644 make/gen_make/template/linux-g++/tmake.conf create mode 100644 make/gen_make/template/unix/app.t create mode 100644 make/gen_make/template/unix/generic.t create mode 100644 make/gen_make/template/unix/lib.t create mode 100644 make/gen_make/template/unix/subdirs.t create mode 100644 make/gen_make/template/win32-borland/app.t create mode 100644 make/gen_make/template/win32-borland/generic.t create mode 100644 make/gen_make/template/win32-borland/lib.t create mode 100644 make/gen_make/template/win32-borland/subdirs.t create mode 100644 make/gen_make/template/win32-borland/tmake.conf create mode 100644 make/gen_make/template/win32-msvc/app.t create mode 100644 make/gen_make/template/win32-msvc/generic.t create mode 100644 make/gen_make/template/win32-msvc/lib.t create mode 100644 make/gen_make/template/win32-msvc/subdirs.t create mode 100644 make/gen_make/template/win32-msvc/tmake.conf create mode 100644 make/gen_make/template/win32-msvc/vcapp.t create mode 100644 make/gen_make/template/win32-msvc/vcgeneric.t create mode 100644 make/gen_make/template/win32-msvc/vclib.t create mode 100644 make/gen_make/template/win32-msvc/win32app.dsp create mode 100644 make/gen_make/template/win32-msvc/win32dll.dsp create mode 100644 make/gen_make/template/win32-msvc/win32lib.dsp create mode 100644 make/gen_make/template/win32-symantec/app.t create mode 100644 make/gen_make/template/win32-symantec/generic.t create mode 100644 make/gen_make/template/win32-symantec/lib.t create mode 100644 make/gen_make/template/win32-symantec/subdirs.t create mode 100644 make/gen_make/template/win32-symantec/tmake.conf create mode 100644 make/gen_make/template/win32-watcom/app.t create mode 100644 make/gen_make/template/win32-watcom/generic.t create mode 100644 make/gen_make/template/win32-watcom/lib.t create mode 100644 make/gen_make/template/win32-watcom/subdirs.t create mode 100644 make/gen_make/template/win32-watcom/tmake.conf create mode 100644 make/gen_make/template/win32/subdirs.t create mode 100644 src/Makefile.am create mode 100644 src/ta_abstract/Makefile.am create mode 100644 src/ta_abstract/excel_glue.c create mode 100644 src/ta_abstract/frames/ta_frame.c create mode 100644 src/ta_abstract/frames/ta_frame.h create mode 100644 src/ta_abstract/ta_abstract.c create mode 100644 src/ta_abstract/ta_def_ui.c create mode 100644 src/ta_abstract/ta_def_ui.h create mode 100644 src/ta_abstract/ta_frame_priv.h create mode 100644 src/ta_abstract/ta_func_api.c create mode 100644 src/ta_abstract/ta_group_idx.c create mode 100644 src/ta_abstract/ta_java_defs.h create mode 100644 src/ta_abstract/tables/table_a.c create mode 100644 src/ta_abstract/tables/table_b.c create mode 100644 src/ta_abstract/tables/table_c.c create mode 100644 src/ta_abstract/tables/table_d.c create mode 100644 src/ta_abstract/tables/table_e.c create mode 100644 src/ta_abstract/tables/table_f.c create mode 100644 src/ta_abstract/tables/table_g.c create mode 100644 src/ta_abstract/tables/table_h.c create mode 100644 src/ta_abstract/tables/table_i.c create mode 100644 src/ta_abstract/tables/table_j.c create mode 100644 src/ta_abstract/tables/table_k.c create mode 100644 src/ta_abstract/tables/table_l.c create mode 100644 src/ta_abstract/tables/table_m.c create mode 100644 src/ta_abstract/tables/table_n.c create mode 100644 src/ta_abstract/tables/table_o.c create mode 100644 src/ta_abstract/tables/table_p.c create mode 100644 src/ta_abstract/tables/table_q.c create mode 100644 src/ta_abstract/tables/table_r.c create mode 100644 src/ta_abstract/tables/table_s.c create mode 100644 src/ta_abstract/tables/table_t.c create mode 100644 src/ta_abstract/tables/table_u.c create mode 100644 src/ta_abstract/tables/table_v.c create mode 100644 src/ta_abstract/tables/table_w.c create mode 100644 src/ta_abstract/tables/table_x.c create mode 100644 src/ta_abstract/tables/table_y.c create mode 100644 src/ta_abstract/tables/table_z.c create mode 100644 src/ta_abstract/templates/CoreAnnotated.java.template create mode 100644 src/ta_abstract/templates/Makefile.am.template create mode 100644 src/ta_abstract/templates/excel_glue.c.template create mode 100644 src/ta_abstract/templates/ta_frame.c.template create mode 100644 src/ta_abstract/templates/ta_frame.h.template create mode 100644 src/ta_abstract/templates/ta_func.h.template create mode 100644 src/ta_abstract/templates/ta_func.swg.template create mode 100644 src/ta_abstract/templates/ta_func_api.c.template create mode 100644 src/ta_abstract/templates/ta_group_idx.c.template create mode 100644 src/ta_abstract/templates/ta_java_defs.h.template create mode 100644 src/ta_abstract/templates/ta_retcode.c.template create mode 100644 src/ta_abstract/templates/ta_x.c.template create mode 100644 src/ta_common/Makefile.am create mode 100644 src/ta_common/ta_global.c create mode 100644 src/ta_common/ta_global.h create mode 100644 src/ta_common/ta_magic_nb.h create mode 100644 src/ta_common/ta_memory.h create mode 100644 src/ta_common/ta_pragma.h create mode 100644 src/ta_common/ta_retcode.c create mode 100644 src/ta_common/ta_retcode.csv create mode 100644 src/ta_common/ta_version.c create mode 100644 src/ta_func/Makefile.am create mode 100644 src/ta_func/ta_ACOS.c create mode 100644 src/ta_func/ta_AD.c create mode 100644 src/ta_func/ta_ADD.c create mode 100644 src/ta_func/ta_ADOSC.c create mode 100644 src/ta_func/ta_ADX.c create mode 100644 src/ta_func/ta_ADXR.c create mode 100644 src/ta_func/ta_APO.c create mode 100644 src/ta_func/ta_AROON.c create mode 100644 src/ta_func/ta_AROONOSC.c create mode 100644 src/ta_func/ta_ASIN.c create mode 100644 src/ta_func/ta_ATAN.c create mode 100644 src/ta_func/ta_ATR.c create mode 100644 src/ta_func/ta_AVGPRICE.c create mode 100644 src/ta_func/ta_BBANDS.c create mode 100644 src/ta_func/ta_BETA.c create mode 100644 src/ta_func/ta_BOP.c create mode 100644 src/ta_func/ta_CCI.c create mode 100644 src/ta_func/ta_CDL2CROWS.c create mode 100644 src/ta_func/ta_CDL3BLACKCROWS.c create mode 100644 src/ta_func/ta_CDL3INSIDE.c create mode 100644 src/ta_func/ta_CDL3LINESTRIKE.c create mode 100644 src/ta_func/ta_CDL3OUTSIDE.c create mode 100644 src/ta_func/ta_CDL3STARSINSOUTH.c create mode 100644 src/ta_func/ta_CDL3WHITESOLDIERS.c create mode 100644 src/ta_func/ta_CDLABANDONEDBABY.c create mode 100644 src/ta_func/ta_CDLADVANCEBLOCK.c create mode 100644 src/ta_func/ta_CDLBELTHOLD.c create mode 100644 src/ta_func/ta_CDLBREAKAWAY.c create mode 100644 src/ta_func/ta_CDLCLOSINGMARUBOZU.c create mode 100644 src/ta_func/ta_CDLCONCEALBABYSWALL.c create mode 100644 src/ta_func/ta_CDLCOUNTERATTACK.c create mode 100644 src/ta_func/ta_CDLDARKCLOUDCOVER.c create mode 100644 src/ta_func/ta_CDLDOJI.c create mode 100644 src/ta_func/ta_CDLDOJISTAR.c create mode 100644 src/ta_func/ta_CDLDRAGONFLYDOJI.c create mode 100644 src/ta_func/ta_CDLENGULFING.c create mode 100644 src/ta_func/ta_CDLEVENINGDOJISTAR.c create mode 100644 src/ta_func/ta_CDLEVENINGSTAR.c create mode 100644 src/ta_func/ta_CDLGAPSIDESIDEWHITE.c create mode 100644 src/ta_func/ta_CDLGRAVESTONEDOJI.c create mode 100644 src/ta_func/ta_CDLHAMMER.c create mode 100644 src/ta_func/ta_CDLHANGINGMAN.c create mode 100644 src/ta_func/ta_CDLHARAMI.c create mode 100644 src/ta_func/ta_CDLHARAMICROSS.c create mode 100644 src/ta_func/ta_CDLHIGHWAVE.c create mode 100644 src/ta_func/ta_CDLHIKKAKE.c create mode 100644 src/ta_func/ta_CDLHIKKAKEMOD.c create mode 100644 src/ta_func/ta_CDLHOMINGPIGEON.c create mode 100644 src/ta_func/ta_CDLIDENTICAL3CROWS.c create mode 100644 src/ta_func/ta_CDLINNECK.c create mode 100644 src/ta_func/ta_CDLINVERTEDHAMMER.c create mode 100644 src/ta_func/ta_CDLKICKING.c create mode 100644 src/ta_func/ta_CDLKICKINGBYLENGTH.c create mode 100644 src/ta_func/ta_CDLLADDERBOTTOM.c create mode 100644 src/ta_func/ta_CDLLONGLEGGEDDOJI.c create mode 100644 src/ta_func/ta_CDLLONGLINE.c create mode 100644 src/ta_func/ta_CDLMARUBOZU.c create mode 100644 src/ta_func/ta_CDLMATCHINGLOW.c create mode 100644 src/ta_func/ta_CDLMATHOLD.c create mode 100644 src/ta_func/ta_CDLMORNINGDOJISTAR.c create mode 100644 src/ta_func/ta_CDLMORNINGSTAR.c create mode 100644 src/ta_func/ta_CDLONNECK.c create mode 100644 src/ta_func/ta_CDLPIERCING.c create mode 100644 src/ta_func/ta_CDLRICKSHAWMAN.c create mode 100644 src/ta_func/ta_CDLRISEFALL3METHODS.c create mode 100644 src/ta_func/ta_CDLSEPARATINGLINES.c create mode 100644 src/ta_func/ta_CDLSHOOTINGSTAR.c create mode 100644 src/ta_func/ta_CDLSHORTLINE.c create mode 100644 src/ta_func/ta_CDLSPINNINGTOP.c create mode 100644 src/ta_func/ta_CDLSTALLEDPATTERN.c create mode 100644 src/ta_func/ta_CDLSTICKSANDWICH.c create mode 100644 src/ta_func/ta_CDLTAKURI.c create mode 100644 src/ta_func/ta_CDLTASUKIGAP.c create mode 100644 src/ta_func/ta_CDLTHRUSTING.c create mode 100644 src/ta_func/ta_CDLTRISTAR.c create mode 100644 src/ta_func/ta_CDLUNIQUE3RIVER.c create mode 100644 src/ta_func/ta_CDLUPSIDEGAP2CROWS.c create mode 100644 src/ta_func/ta_CDLXSIDEGAP3METHODS.c create mode 100644 src/ta_func/ta_CEIL.c create mode 100644 src/ta_func/ta_CMO.c create mode 100644 src/ta_func/ta_CORREL.c create mode 100644 src/ta_func/ta_COS.c create mode 100644 src/ta_func/ta_COSH.c create mode 100644 src/ta_func/ta_DEMA.c create mode 100644 src/ta_func/ta_DIV.c create mode 100644 src/ta_func/ta_DX.c create mode 100644 src/ta_func/ta_EMA.c create mode 100644 src/ta_func/ta_EXP.c create mode 100644 src/ta_func/ta_FLOOR.c create mode 100644 src/ta_func/ta_HT_DCPERIOD.c create mode 100644 src/ta_func/ta_HT_DCPHASE.c create mode 100644 src/ta_func/ta_HT_PHASOR.c create mode 100644 src/ta_func/ta_HT_SINE.c create mode 100644 src/ta_func/ta_HT_TRENDLINE.c create mode 100644 src/ta_func/ta_HT_TRENDMODE.c create mode 100644 src/ta_func/ta_KAMA.c create mode 100644 src/ta_func/ta_LINEARREG.c create mode 100644 src/ta_func/ta_LINEARREG_ANGLE.c create mode 100644 src/ta_func/ta_LINEARREG_INTERCEPT.c create mode 100644 src/ta_func/ta_LINEARREG_SLOPE.c create mode 100644 src/ta_func/ta_LN.c create mode 100644 src/ta_func/ta_LOG10.c create mode 100644 src/ta_func/ta_MA.c create mode 100644 src/ta_func/ta_MACD.c create mode 100644 src/ta_func/ta_MACDEXT.c create mode 100644 src/ta_func/ta_MACDFIX.c create mode 100644 src/ta_func/ta_MAMA.c create mode 100644 src/ta_func/ta_MAVP.c create mode 100644 src/ta_func/ta_MAX.c create mode 100644 src/ta_func/ta_MAXINDEX.c create mode 100644 src/ta_func/ta_MEDPRICE.c create mode 100644 src/ta_func/ta_MFI.c create mode 100644 src/ta_func/ta_MIDPOINT.c create mode 100644 src/ta_func/ta_MIDPRICE.c create mode 100644 src/ta_func/ta_MIN.c create mode 100644 src/ta_func/ta_MININDEX.c create mode 100644 src/ta_func/ta_MINMAX.c create mode 100644 src/ta_func/ta_MINMAXINDEX.c create mode 100644 src/ta_func/ta_MINUS_DI.c create mode 100644 src/ta_func/ta_MINUS_DM.c create mode 100644 src/ta_func/ta_MOM.c create mode 100644 src/ta_func/ta_MULT.c create mode 100644 src/ta_func/ta_NATR.c create mode 100644 src/ta_func/ta_NVI.c create mode 100644 src/ta_func/ta_OBV.c create mode 100644 src/ta_func/ta_PLUS_DI.c create mode 100644 src/ta_func/ta_PLUS_DM.c create mode 100644 src/ta_func/ta_PPO.c create mode 100644 src/ta_func/ta_PVI.c create mode 100644 src/ta_func/ta_ROC.c create mode 100644 src/ta_func/ta_ROCP.c create mode 100644 src/ta_func/ta_ROCR.c create mode 100644 src/ta_func/ta_ROCR100.c create mode 100644 src/ta_func/ta_RSI.c create mode 100644 src/ta_func/ta_SAR.c create mode 100644 src/ta_func/ta_SAREXT.c create mode 100644 src/ta_func/ta_SIN.c create mode 100644 src/ta_func/ta_SINH.c create mode 100644 src/ta_func/ta_SMA.c create mode 100644 src/ta_func/ta_SQRT.c create mode 100644 src/ta_func/ta_STDDEV.c create mode 100644 src/ta_func/ta_STOCH.c create mode 100644 src/ta_func/ta_STOCHF.c create mode 100644 src/ta_func/ta_STOCHRSI.c create mode 100644 src/ta_func/ta_SUB.c create mode 100644 src/ta_func/ta_SUM.c create mode 100644 src/ta_func/ta_T3.c create mode 100644 src/ta_func/ta_TAN.c create mode 100644 src/ta_func/ta_TANH.c create mode 100644 src/ta_func/ta_TEMA.c create mode 100644 src/ta_func/ta_TRANGE.c create mode 100644 src/ta_func/ta_TRIMA.c create mode 100644 src/ta_func/ta_TRIX.c create mode 100644 src/ta_func/ta_TSF.c create mode 100644 src/ta_func/ta_TYPPRICE.c create mode 100644 src/ta_func/ta_ULTOSC.c create mode 100644 src/ta_func/ta_VAR.c create mode 100644 src/ta_func/ta_WCLPRICE.c create mode 100644 src/ta_func/ta_WILLR.c create mode 100644 src/ta_func/ta_WMA.c create mode 100644 src/ta_func/ta_utility.c create mode 100644 src/ta_func/ta_utility.h create mode 100644 src/tools/Makefile.am create mode 100644 src/tools/gen_code/Makefile.am create mode 100644 src/tools/gen_code/gen_code.c create mode 100644 src/tools/gen_code/java/Main.java create mode 100644 src/tools/gen_code/java/PrettyCode.java create mode 100644 src/tools/gen_code/mcpp.exe create mode 100644 src/tools/ta_regtest/Makefile.am create mode 100644 src/tools/ta_regtest/ReadMe.txt create mode 100644 src/tools/ta_regtest/ta_error_number.h create mode 100644 src/tools/ta_regtest/ta_gDataClose.c create mode 100644 src/tools/ta_regtest/ta_gDataHigh.c create mode 100644 src/tools/ta_regtest/ta_gDataLow.c create mode 100644 src/tools/ta_regtest/ta_gDataOpen.c create mode 100644 src/tools/ta_regtest/ta_regtest.c create mode 100644 src/tools/ta_regtest/ta_test_func.h create mode 100644 src/tools/ta_regtest/ta_test_func/test_1in_1out.c create mode 100644 src/tools/ta_regtest/ta_test_func/test_1in_2out.c create mode 100644 src/tools/ta_regtest/ta_test_func/test_adx.c create mode 100644 src/tools/ta_regtest/ta_test_func/test_bbands.c create mode 100644 src/tools/ta_regtest/ta_test_func/test_candlestick.c create mode 100644 src/tools/ta_regtest/ta_test_func/test_ma.c create mode 100644 src/tools/ta_regtest/ta_test_func/test_macd.c create mode 100644 src/tools/ta_regtest/ta_test_func/test_minmax.c create mode 100644 src/tools/ta_regtest/ta_test_func/test_mom.c create mode 100644 src/tools/ta_regtest/ta_test_func/test_per_ema.c create mode 100644 src/tools/ta_regtest/ta_test_func/test_per_hl.c create mode 100644 src/tools/ta_regtest/ta_test_func/test_per_hlc.c create mode 100644 src/tools/ta_regtest/ta_test_func/test_per_hlcv.c create mode 100644 src/tools/ta_regtest/ta_test_func/test_per_ohlc.c create mode 100644 src/tools/ta_regtest/ta_test_func/test_po.c create mode 100644 src/tools/ta_regtest/ta_test_func/test_rsi.c create mode 100644 src/tools/ta_regtest/ta_test_func/test_sar.c create mode 100644 src/tools/ta_regtest/ta_test_func/test_stddev.c create mode 100644 src/tools/ta_regtest/ta_test_func/test_stoch.c create mode 100644 src/tools/ta_regtest/ta_test_func/test_trange.c create mode 100644 src/tools/ta_regtest/ta_test_priv.h create mode 100644 src/tools/ta_regtest/test_abstract.c create mode 100644 src/tools/ta_regtest/test_data.c create mode 100644 src/tools/ta_regtest/test_internals.c create mode 100644 src/tools/ta_regtest/test_util.c create mode 100644 ta-lib-config.in create mode 100644 ta-lib.dpkg.in create mode 100644 ta-lib.spec.in create mode 100644 temp/cdd/gen_code/HOLDER create mode 100644 temp/cdd/ta_abstract/HOLDER create mode 100644 temp/cdd/ta_common/HOLDER create mode 100644 temp/cdd/ta_func/HOLDER create mode 100644 temp/cdd/ta_libc/HOLDER create mode 100644 temp/cdd/ta_regtest/HOLDER create mode 100644 temp/cdr/gen_code/HOLDER create mode 100644 temp/cdr/ta_abstract/HOLDER create mode 100644 temp/cdr/ta_common/HOLDER create mode 100644 temp/cdr/ta_func/HOLDER create mode 100644 temp/cdr/ta_libc/HOLDER create mode 100644 temp/cdr/ta_regtest/HOLDER create mode 100644 temp/cmd/gen_code/HOLDER create mode 100644 temp/cmd/ta_abstract/HOLDER create mode 100644 temp/cmd/ta_common/HOLDER create mode 100644 temp/cmd/ta_func/HOLDER create mode 100644 temp/cmd/ta_libc/HOLDER create mode 100644 temp/cmd/ta_regtest/HOLDER create mode 100644 temp/cmp/gen_code/HOLDER create mode 100644 temp/cmp/ta_abstract/HOLDER create mode 100644 temp/cmp/ta_common/HOLDER create mode 100644 temp/cmp/ta_func/HOLDER create mode 100644 temp/cmp/ta_libc/HOLDER create mode 100644 temp/cmp/ta_regtest/HOLDER create mode 100644 temp/cmr/gen_code/HOLDER create mode 100644 temp/cmr/ta_abstract/HOLDER create mode 100644 temp/cmr/ta_common/HOLDER create mode 100644 temp/cmr/ta_func/HOLDER create mode 100644 temp/cmr/ta_libc/HOLDER create mode 100644 temp/cmr/ta_regtest/HOLDER create mode 100644 temp/csd/gen_code/HOLDER create mode 100644 temp/csd/ta_abstract/HOLDER create mode 100644 temp/csd/ta_common/HOLDER create mode 100644 temp/csd/ta_func/HOLDER create mode 100644 temp/csd/ta_libc/HOLDER create mode 100644 temp/csd/ta_regtest/HOLDER create mode 100644 temp/csp/gen_code/HOLDER create mode 100644 temp/csp/ta_abstract/HOLDER create mode 100644 temp/csp/ta_common/HOLDER create mode 100644 temp/csp/ta_func/HOLDER create mode 100644 temp/csp/ta_libc/HOLDER create mode 100644 temp/csp/ta_regtest/HOLDER create mode 100644 temp/csr/gen_code/HOLDER create mode 100644 temp/csr/ta_abstract/HOLDER create mode 100644 temp/csr/ta_common/HOLDER create mode 100644 temp/csr/ta_func/HOLDER create mode 100644 temp/csr/ta_libc/HOLDER create mode 100644 temp/csr/ta_regtest/HOLDER diff --git a/Makefile.am b/Makefile.am new file mode 100644 index 000000000..269267110 --- /dev/null +++ b/Makefile.am @@ -0,0 +1,3 @@ +AUTOMAKE_OPTIONS = foreign 1.4 +SUBDIRS = src src/tools +bin_SCRIPTS = ta-lib-config diff --git a/autogen.sh b/autogen.sh new file mode 100644 index 000000000..180eccfdb --- /dev/null +++ b/autogen.sh @@ -0,0 +1,11 @@ +#!/bin/sh +echo aclocal +aclocal || exit +echo autoheader +autoheader || exit +echo libtoolize --copy --force +libtoolize --copy --force || exit +echo automake -a -c +automake -a -c || exit +echo autoconf +autoconf || exit diff --git a/bin/.cvsignore b/bin/.cvsignore new file mode 100644 index 000000000..1176d23e0 --- /dev/null +++ b/bin/.cvsignore @@ -0,0 +1,7 @@ +gen_code +gen_data +gen_rdata +ta_regtest +ta_sql +ta_yahoo +webfetch diff --git a/bin/HOLDER b/bin/HOLDER new file mode 100644 index 000000000..549a58e9f --- /dev/null +++ b/bin/HOLDER @@ -0,0 +1,2 @@ +Do not erase this file. +Some maintenance tools ignore empty directory. This file prevents this directory to be empty. diff --git a/configure.in b/configure.in new file mode 100644 index 000000000..15f69f4d4 --- /dev/null +++ b/configure.in @@ -0,0 +1,47 @@ +# -*- Autoconf -*- +# Process this file with autoconf to produce a configure script. + +AC_PREREQ(2.59) +AC_COPYRIGHT([(c) TicTacTec 2005, 2006]) +AC_INIT([ta-lib], [SVN], [http://sourceforge.net/tracker/?group_id=8903&atid=108903]) +AC_CONFIG_SRCDIR([src/ta_func/ta_AD.c]) +AC_CONFIG_HEADER([include/ta_config.h]) +AM_INIT_AUTOMAKE([ta-lib], [SVN]) + +# Checks for programs. +AC_PROG_CC +AC_PROG_LIBTOOL + +# Checks for libraries. +AC_CHECK_LIB([dl], [dlopen]) +AC_CHECK_LIB([pthread], [pthread_create]) + +# Checks for header files. +AC_HEADER_STDC +AC_CHECK_HEADERS([float.h inttypes.h limits.h locale.h stddef.h stdint.h stdlib.h string.h unistd.h wchar.h wctype.h]) + +# Checks for typedefs, structures, and compiler characteristics. +AC_C_CONST +AC_TYPE_SIZE_T +AC_STRUCT_TM +AC_C_VOLATILE +AC_CHECK_TYPES([ptrdiff_t]) + +# Checks for library functions. +AC_TYPE_SIGNAL +AC_FUNC_STRCOLL +AC_FUNC_STRFTIME +AC_FUNC_STRTOD +AC_FUNC_VPRINTF +AC_CHECK_FUNCS([floor isascii localeconv mblen memmove memset modf pow sqrt strcasecmp strchr strerror strncasecmp strrchr strstr strtol strtoul]) + +# Versioning: +# Only change this if library is no longer +# ABI compatible with previous version +# (e.g. function declaration changed) +TALIB_LIBRARY_VERSION=0:0:0 + +AC_SUBST(TALIB_LIBRARY_VERSION) + +AC_CONFIG_FILES([Makefile src/Makefile src/ta_abstract/Makefile src/ta_common/Makefile src/ta_func/Makefile src/tools/Makefile src/tools/gen_code/Makefile src/tools/ta_regtest/Makefile ta-lib-config ta-lib.spec ta-lib.dpkg]) +AC_OUTPUT diff --git a/ide/msvc/lib_proj/gen_code/gen_code.dsp b/ide/msvc/lib_proj/gen_code/gen_code.dsp new file mode 100644 index 000000000..120eb0339 --- /dev/null +++ b/ide/msvc/lib_proj/gen_code/gen_code.dsp @@ -0,0 +1,284 @@ +# Microsoft Developer Studio Project File - Name="gen_code" - Package Owner=<4> +# Microsoft Developer Studio Generated Build File, Format Version 6.00 +# ** DO NOT EDIT ** + +# TARGTYPE "Win32 (x86) Console Application" 0x0103 + +CFG=gen_code - Win32 CSD Single Thread Debug +!MESSAGE This is not a valid makefile. To build this project using NMAKE, +!MESSAGE use the Export Makefile command and run +!MESSAGE +!MESSAGE NMAKE /f "gen_code.mak". +!MESSAGE +!MESSAGE You can specify a configuration when running NMAKE +!MESSAGE by defining the macro CFG on the command line. For example: +!MESSAGE +!MESSAGE NMAKE /f "gen_code.mak" CFG="gen_code - Win32 CSD Single Thread Debug" +!MESSAGE +!MESSAGE Possible choices for configuration are: +!MESSAGE +!MESSAGE "gen_code - Win32 CMD Multithread Debug" (based on "Win32 (x86) Console Application") +!MESSAGE "gen_code - Win32 CSD Single Thread Debug" (based on "Win32 (x86) Console Application") +!MESSAGE "gen_code - Win32 CSR Single Thread Release" (based on "Win32 (x86) Console Application") +!MESSAGE "gen_code - Win32 CMR Multithread Release" (based on "Win32 (x86) Console Application") +!MESSAGE + +# Begin Project +# PROP AllowPerConfigDependencies 1 +# PROP Scc_ProjName "" +# PROP Scc_LocalPath "" +CPP=cl.exe +RSC=rc.exe + +!IF "$(CFG)" == "gen_code - Win32 CMD Multithread Debug" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 1 +# PROP BASE Output_Dir "gen_code___Win32_CMD_Multithread_Debug" +# PROP BASE Intermediate_Dir "gen_code___Win32_CMD_Multithread_Debug" +# PROP BASE Ignore_Export_Lib 0 +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 1 +# PROP Output_Dir "..\..\..\..\bin" +# PROP Intermediate_Dir "..\..\..\..\temp\cmd\gen_code" +# PROP Ignore_Export_Lib 0 +# PROP Target_Dir "" +# ADD BASE CPP /nologo /MDd /W3 /Gm /Zi /Od /I "..\..\..\..\include" /I "..\..\..\..\src\ta_common" /I "..\..\..\..\src\ta_abstract" /I "..\..\..\..\src\ta_abstract\tables" /I "..\..\..\..\src\ta_abstract\frames" /I "..\..\..\..\src\ta_common\imatix\sfl" /D "_CONSOLE" /D "TA_DEBUG" /D "TA_GEN_CODE" /D "WIN32" /D "_DEBUG" /D "_MBCS" /YX /FD /GZ /c +# SUBTRACT BASE CPP /Fr +# ADD CPP /nologo /MTd /W3 /WX /Gm /Zi /Od /I "..\..\..\..\include" /I "..\..\..\..\src\ta_common" /I "..\..\..\..\src\ta_abstract" /I "..\..\..\..\src\ta_abstract\tables" /I "..\..\..\..\src\ta_abstract\frames" /I "..\..\..\..\src\ta_common\imatix\sfl" /D "_CONSOLE" /D "TA_GEN_CODE" /D "TA_DEBUG" /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "TA_FUNC_NO_RANGE_CHECK" /Fr /YX /FD /GZ /c +# ADD BASE RSC /l 0x409 /d "_DEBUG" +# ADD RSC /l 0x409 /d "_DEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LINK32=link.exe +# ADD BASE LINK32 ta_common_cmd.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /incremental:no /debug /debugtype:both /machine:I386 /libpath:"..\..\..\..\lib" +# SUBTRACT BASE LINK32 /map /nodefaultlib +# ADD LINK32 ta_common_cmd.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib /nologo /subsystem:console /incremental:no /debug /debugtype:both /machine:I386 /libpath:"..\..\..\..\lib" +# SUBTRACT LINK32 /map /nodefaultlib + +!ELSEIF "$(CFG)" == "gen_code - Win32 CSD Single Thread Debug" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 1 +# PROP BASE Output_Dir "gen_code___Win32_CSD_Single_Thread_Debug" +# PROP BASE Intermediate_Dir "gen_code___Win32_CSD_Single_Thread_Debug" +# PROP BASE Ignore_Export_Lib 0 +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 1 +# PROP Output_Dir "..\..\..\..\bin" +# PROP Intermediate_Dir "..\..\..\..\temp\csd\gen_code" +# PROP Ignore_Export_Lib 0 +# PROP Target_Dir "" +# ADD BASE CPP /nologo /W3 /Gm /Zi /Od /I "..\..\..\..\include" /I "..\..\..\..\src\ta_common" /I "..\..\..\..\src\ta_abstract" /I "..\..\..\..\src\ta_abstract\tables" /I "..\..\..\..\src\ta_abstract\frames" /I "..\..\..\..\src\ta_common\imatix\sfl" /D "_CONSOLE" /D "TA_DEBUG" /D "TA_GEN_CODE" /D "TA_SINGLE_THREAD" /D "WIN32" /D "_DEBUG" /D "_MBCS" /YX /FD /GZ /c +# SUBTRACT BASE CPP /Fr +# ADD CPP /nologo /W3 /WX /Gm /Zi /Od /I "..\..\..\..\include" /I "..\..\..\..\src\ta_common" /I "..\..\..\..\src\ta_abstract" /I "..\..\..\..\src\ta_abstract\tables" /I "..\..\..\..\src\ta_abstract\frames" /I "..\..\..\..\src\ta_common\imatix\sfl" /D "_CONSOLE" /D "TA_DEBUG" /D "TA_GEN_CODE" /D "TA_SINGLE_THREAD" /D "WIN32" /D "_DEBUG" /D "_MBCS" /Fr /YX /FD /GZ /c +# ADD BASE RSC /l 0x409 /d "_DEBUG" +# ADD RSC /l 0x409 /d "_DEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LINK32=link.exe +# ADD BASE LINK32 ta_common_csd.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /incremental:no /debug /debugtype:both /machine:I386 /libpath:"..\..\..\..\lib" +# SUBTRACT BASE LINK32 /map /nodefaultlib +# ADD LINK32 ta_common_csd.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib /nologo /subsystem:console /incremental:no /debug /debugtype:both /machine:I386 /libpath:"..\..\..\..\lib" +# SUBTRACT LINK32 /map /nodefaultlib + +!ELSEIF "$(CFG)" == "gen_code - Win32 CSR Single Thread Release" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir "gen_code___Win32_CSR_Single_Thread_Release" +# PROP BASE Intermediate_Dir "gen_code___Win32_CSR_Single_Thread_Release" +# PROP BASE Ignore_Export_Lib 0 +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir "..\..\..\..\bin" +# PROP Intermediate_Dir "..\..\..\..\temp\csr\gen_code" +# PROP Ignore_Export_Lib 0 +# PROP Target_Dir "" +# ADD BASE CPP /nologo /W3 /O2 /I "..\..\..\..\include" /I "..\..\..\..\src\ta_common" /I "..\..\..\..\src\ta_abstract" /I "..\..\..\..\src\ta_abstract\tables" /I "..\..\..\..\src\ta_abstract\frames" /I "..\..\..\..\src\ta_common\imatix\sfl" /D "_CONSOLE" /D "TA_GEN_CODE" /D "TA_SINGLE_THREAD" /D "WIN32" /D "NDEBUG" /D "_MBCS" /YX /FD /c +# SUBTRACT BASE CPP /Fr +# ADD CPP /nologo /W3 /WX /O2 /I "..\..\..\..\include" /I "..\..\..\..\src\ta_common" /I "..\..\..\..\src\ta_abstract" /I "..\..\..\..\src\ta_abstract\tables" /I "..\..\..\..\src\ta_abstract\frames" /I "..\..\..\..\src\ta_common\imatix\sfl" /D "_CONSOLE" /D "TA_GEN_CODE" /D "TA_SINGLE_THREAD" /D "WIN32" /D "NDEBUG" /D "_MBCS" /YX /FD /c +# SUBTRACT CPP /Fr +# ADD BASE RSC /l 0x409 /d "NDEBUG" +# ADD RSC /l 0x409 /d "NDEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LINK32=link.exe +# ADD BASE LINK32 ta_common_csr.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386 /libpath:"..\..\..\..\lib" +# ADD LINK32 ta_common_csr.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib /nologo /subsystem:console /machine:I386 /libpath:"..\..\..\..\lib" + +!ELSEIF "$(CFG)" == "gen_code - Win32 CMR Multithread Release" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir "gen_code___Win32_CMR_Multithread_Release0" +# PROP BASE Intermediate_Dir "gen_code___Win32_CMR_Multithread_Release0" +# PROP BASE Ignore_Export_Lib 0 +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir "..\..\..\..\bin" +# PROP Intermediate_Dir "..\..\..\..\temp\cmr\gen_code" +# PROP Ignore_Export_Lib 0 +# PROP Target_Dir "" +# ADD BASE CPP /nologo /MD /W3 /O1 /I "..\..\..\..\include" /I "..\..\..\..\src\ta_common" /I "..\..\..\..\src\ta_abstract" /I "..\..\..\..\src\ta_abstract\tables" /I "..\..\..\..\src\ta_abstract\frames" /I "..\..\..\..\src\ta_common\imatix\sfl" /D "_CONSOLE" /D "TA_GEN_CODE" /D "WIN32" /D "NDEBUG" /D "_MBCS" /YX /FD /c +# SUBTRACT BASE CPP /Fr +# ADD CPP /nologo /MT /W3 /WX /O2 /I "..\..\..\..\include" /I "..\..\..\..\src\ta_common" /I "..\..\..\..\src\ta_abstract" /I "..\..\..\..\src\ta_abstract\tables" /I "..\..\..\..\src\ta_abstract\frames" /I "..\..\..\..\src\ta_common\imatix\sfl" /D "_CONSOLE" /D "TA_GEN_CODE" /D "WIN32" /D "NDEBUG" /D "_MBCS" /YX /FD /c +# SUBTRACT CPP /Fr +# ADD BASE RSC /l 0x409 /d "NDEBUG" +# ADD RSC /l 0x409 /d "NDEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LINK32=link.exe +# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /machine:I386 /libpath:"..\..\..\..\lib" +# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib /nologo /subsystem:console /machine:I386 /libpath:"..\..\..\..\lib" + +!ENDIF + +# Begin Target + +# Name "gen_code - Win32 CMD Multithread Debug" +# Name "gen_code - Win32 CSD Single Thread Debug" +# Name "gen_code - Win32 CSR Single Thread Release" +# Name "gen_code - Win32 CMR Multithread Release" +# Begin Group "Source Files" + +# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat" +# Begin Source File + +SOURCE=..\..\..\..\src\tools\gen_code\gen_code.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_abstract\ta_abstract.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_abstract\ta_def_ui.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_abstract\tables\table_a.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_abstract\tables\table_b.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_abstract\tables\table_c.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_abstract\tables\table_d.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_abstract\tables\table_e.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_abstract\tables\table_f.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_abstract\tables\table_g.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_abstract\tables\table_h.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_abstract\tables\table_i.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_abstract\tables\table_j.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_abstract\tables\table_k.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_abstract\tables\table_l.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_abstract\tables\table_m.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_abstract\tables\table_n.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_abstract\tables\table_o.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_abstract\tables\table_p.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_abstract\tables\table_q.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_abstract\tables\table_r.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_abstract\tables\table_s.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_abstract\tables\table_t.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_abstract\tables\table_u.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_abstract\tables\table_v.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_abstract\tables\table_w.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_abstract\tables\table_x.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_abstract\tables\table_y.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_abstract\tables\table_z.c +# End Source File +# End Group +# Begin Group "Header Files" + +# PROP Default_Filter "h;hpp;hxx;hm;inl" +# Begin Source File + +SOURCE=..\..\..\..\src\ta_abstract\ta_def_ui.h +# End Source File +# End Group +# Begin Source File + +SOURCE=..\..\..\..\include\func_list.txt +# End Source File +# End Target +# End Project diff --git a/ide/msvc/lib_proj/lib_proj.dsw b/ide/msvc/lib_proj/lib_proj.dsw new file mode 100644 index 000000000..7fa958042 --- /dev/null +++ b/ide/msvc/lib_proj/lib_proj.dsw @@ -0,0 +1,113 @@ +Microsoft Developer Studio Workspace File, Format Version 6.00 +# WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! + +############################################################################### + +Project: "gen_code"=".\gen_code\gen_code.dsp" - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name ta_common + End Project Dependency +}}} + +############################################################################### + +Project: "ta_abstract"=".\ta_abstract\ta_abstract.dsp" - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ +}}} + +############################################################################### + +Project: "ta_common"=".\ta_common\ta_common.dsp" - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ +}}} + +############################################################################### + +Project: "ta_func"=".\ta_func\ta_func.dsp" - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ +}}} + +############################################################################### + +Project: "ta_libc"=".\ta_libc\ta_libc.dsp" - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name ta_abstract + End Project Dependency + Begin Project Dependency + Project_Dep_Name ta_common + End Project Dependency + Begin Project Dependency + Project_Dep_Name ta_func + End Project Dependency +}}} + +############################################################################### + +Project: "ta_regtest"=".\ta_regtest\ta_regtest.dsp" - Package Owner=<4> + +Package=<5> +{{{ +}}} + +Package=<4> +{{{ + Begin Project Dependency + Project_Dep_Name ta_libc + End Project Dependency + Begin Project Dependency + Project_Dep_Name ta_abstract + End Project Dependency + Begin Project Dependency + Project_Dep_Name ta_common + End Project Dependency + Begin Project Dependency + Project_Dep_Name ta_func + End Project Dependency +}}} + +############################################################################### + +Global: + +Package=<5> +{{{ +}}} + +Package=<3> +{{{ +}}} + +############################################################################### + diff --git a/ide/msvc/lib_proj/ta_abstract/ta_abstract.dsp b/ide/msvc/lib_proj/ta_abstract/ta_abstract.dsp new file mode 100644 index 000000000..ff3bb0cb7 --- /dev/null +++ b/ide/msvc/lib_proj/ta_abstract/ta_abstract.dsp @@ -0,0 +1,371 @@ +# Microsoft Developer Studio Project File - Name="ta_abstract" - Package Owner=<4> +# Microsoft Developer Studio Generated Build File, Format Version 6.00 +# ** DO NOT EDIT ** + +# TARGTYPE "Win32 (x86) Static Library" 0x0104 + +CFG=ta_abstract - Win32 CDD Multithread DLL Debug +!MESSAGE This is not a valid makefile. To build this project using NMAKE, +!MESSAGE use the Export Makefile command and run +!MESSAGE +!MESSAGE NMAKE /f "ta_abstract.mak". +!MESSAGE +!MESSAGE You can specify a configuration when running NMAKE +!MESSAGE by defining the macro CFG on the command line. For example: +!MESSAGE +!MESSAGE NMAKE /f "ta_abstract.mak" CFG="ta_abstract - Win32 CDD Multithread DLL Debug" +!MESSAGE +!MESSAGE Possible choices for configuration are: +!MESSAGE +!MESSAGE "ta_abstract - Win32 CDR Multithread DLL Release" (based on "Win32 (x86) Static Library") +!MESSAGE "ta_abstract - Win32 CMD Multithread Debug" (based on "Win32 (x86) Static Library") +!MESSAGE "ta_abstract - Win32 CSD Single Thread Debug" (based on "Win32 (x86) Static Library") +!MESSAGE "ta_abstract - Win32 CSR Single Thread Release" (based on "Win32 (x86) Static Library") +!MESSAGE "ta_abstract - Win32 CMR Multithread Release" (based on "Win32 (x86) Static Library") +!MESSAGE "ta_abstract - Win32 Profiling" (based on "Win32 (x86) Static Library") +!MESSAGE "ta_abstract - Win32 CDD Multithread DLL Debug" (based on "Win32 (x86) Static Library") +!MESSAGE + +# Begin Project +# PROP AllowPerConfigDependencies 0 +# PROP Scc_ProjName "" +# PROP Scc_LocalPath "" +CPP=cl.exe +RSC=rc.exe + +!IF "$(CFG)" == "ta_abstract - Win32 CDR Multithread DLL Release" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir "ta_abstract___Win32_CDR_Multithread_DLL_Release" +# PROP BASE Intermediate_Dir "ta_abstract___Win32_CDR_Multithread_DLL_Release" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir "..\..\..\..\lib" +# PROP Intermediate_Dir "..\..\..\..\temp\cdr\ta_abstract" +# PROP Target_Dir "" +F90=df.exe +# ADD BASE CPP /nologo /MD /W3 /O1 /I "..\..\..\..\include" /I "..\..\..\..\src\ta_common" /I "..\..\..\..\src\ta_abstract\frames" /I "..\..\..\..\src\ta_abstract" /D "_LIB" /D "WIN32" /D "NDEBUG" /D "_MBCS" /YX /FD /c +# SUBTRACT BASE CPP /Fr +# ADD CPP /nologo /MD /W3 /WX /O2 /I "..\..\..\..\include" /I "..\..\..\..\src\ta_common" /I "..\..\..\..\src\ta_abstract\frames" /I "..\..\..\..\src\ta_abstract" /D "_LIB" /D "WIN32" /D "NDEBUG" /D "_MBCS" /YX /FD /c +# SUBTRACT CPP /Fr +# ADD BASE RSC /l 0x409 /d "NDEBUG" +# ADD RSC /l 0x409 /d "NDEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LIB32=link.exe -lib +# ADD BASE LIB32 /nologo /out:"..\..\..\..\lib\ta_abstract_cmr.lib" +# ADD LIB32 /nologo /out:"..\..\..\..\lib\ta_abstract_cdr.lib" + +!ELSEIF "$(CFG)" == "ta_abstract - Win32 CMD Multithread Debug" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 1 +# PROP BASE Output_Dir "ta_abstract___Win32_CMD_Multithread_Debug" +# PROP BASE Intermediate_Dir "ta_abstract___Win32_CMD_Multithread_Debug" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 1 +# PROP Output_Dir "..\..\..\..\lib" +# PROP Intermediate_Dir "..\..\..\..\temp\cmd\ta_abstract" +# PROP Target_Dir "" +F90=df.exe +# ADD BASE CPP /nologo /MDd /W3 /Gm /Zi /Od /I "..\..\..\..\include" /I "..\..\..\..\src\ta_common" /I "..\..\..\..\src\ta_abstract\frames" /I "..\..\..\..\src\ta_abstract" /D "_LIB" /D "TA_DEBUG" /D "WIN32" /D "_DEBUG" /D "_MBCS" /YX /FD /GZ /c +# SUBTRACT BASE CPP /Fr +# ADD CPP /nologo /MTd /W3 /WX /Gm /Zi /Od /I "..\..\..\..\include" /I "..\..\..\..\src\ta_common" /I "..\..\..\..\src\ta_abstract\frames" /I "..\..\..\..\src\ta_abstract" /D "_LIB" /D "TA_DEBUG" /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "TA_FUNC_NO_RANGE_CHECK" /Fr /YX /FD /GZ /c +# ADD BASE RSC /l 0x409 /d "_DEBUG" +# ADD RSC /l 0x409 /d "_DEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LIB32=link.exe -lib +# ADD BASE LIB32 /nologo /out:"..\..\..\..\lib\ta_abstract_cmd.lib" +# ADD LIB32 /nologo /out:"..\..\..\..\lib\ta_abstract_cmd.lib" + +!ELSEIF "$(CFG)" == "ta_abstract - Win32 CSD Single Thread Debug" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 1 +# PROP BASE Output_Dir "ta_abstract___Win32_CSD_Single_Thread_Debug" +# PROP BASE Intermediate_Dir "ta_abstract___Win32_CSD_Single_Thread_Debug" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 1 +# PROP Output_Dir "..\..\..\..\lib" +# PROP Intermediate_Dir "..\..\..\..\temp\csd\ta_abstract" +# PROP Target_Dir "" +F90=df.exe +# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /I "..\..\..\..\include" /I "..\..\..\..\src\ta_common" /I "..\..\..\..\src\ta_abstract\frames" /I "..\..\..\..\src\ta_abstract" /D "_LIB" /D "TA_DEBUG" /D "TA_SINGLE_THREAD" /D "WIN32" /D "_DEBUG" /D "_MBCS" /YX /FD /GZ /c +# SUBTRACT BASE CPP /Fr +# ADD CPP /nologo /W3 /WX /Gm /GX /Zi /Od /I "..\..\..\..\include" /I "..\..\..\..\src\ta_common" /I "..\..\..\..\src\ta_abstract\frames" /I "..\..\..\..\src\ta_abstract" /D "_LIB" /D "TA_DEBUG" /D "TA_SINGLE_THREAD" /D "WIN32" /D "_DEBUG" /D "_MBCS" /Fr /YX /FD /GZ /c +# ADD BASE RSC /l 0x409 /d "_DEBUG" +# ADD RSC /l 0x409 /d "_DEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LIB32=link.exe -lib +# ADD BASE LIB32 /nologo /out:"..\..\..\..\lib\ta_abstract_csd.lib" +# ADD LIB32 /nologo /out:"..\..\..\..\lib\ta_abstract_csd.lib" + +!ELSEIF "$(CFG)" == "ta_abstract - Win32 CSR Single Thread Release" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir "ta_abstract___Win32_CSR_Single_Thread_Release" +# PROP BASE Intermediate_Dir "ta_abstract___Win32_CSR_Single_Thread_Release" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir "..\..\..\..\lib" +# PROP Intermediate_Dir "..\..\..\..\temp\csr\ta_abstract" +# PROP Target_Dir "" +F90=df.exe +# ADD BASE CPP /nologo /W3 /O2 /I "..\..\..\..\include" /I "..\..\..\..\src\ta_common" /I "..\..\..\..\src\ta_abstract\frames" /I "..\..\..\..\src\ta_abstract" /D "_LIB" /D "TA_SINGLE_THREAD" /D "WIN32" /D "NDEBUG" /D "_MBCS" /YX /FD /c +# SUBTRACT BASE CPP /Fr +# ADD CPP /nologo /W3 /WX /O2 /I "..\..\..\..\include" /I "..\..\..\..\src\ta_common" /I "..\..\..\..\src\ta_abstract\frames" /I "..\..\..\..\src\ta_abstract" /D "_LIB" /D "TA_SINGLE_THREAD" /D "WIN32" /D "NDEBUG" /D "_MBCS" /YX /FD /c +# SUBTRACT CPP /Fr +# ADD BASE RSC /l 0x409 /d "NDEBUG" +# ADD RSC /l 0x409 /d "NDEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LIB32=link.exe -lib +# ADD BASE LIB32 /nologo /out:"..\..\..\..\lib\ta_abstract_csr.lib" +# ADD LIB32 /nologo /out:"..\..\..\..\lib\ta_abstract_csr.lib" + +!ELSEIF "$(CFG)" == "ta_abstract - Win32 CMR Multithread Release" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir "ta_abstract___Win32_CMR_Multithread_Release0" +# PROP BASE Intermediate_Dir "ta_abstract___Win32_CMR_Multithread_Release0" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir "..\..\..\..\lib" +# PROP Intermediate_Dir "..\..\..\..\temp\cmr\ta_abstract" +# PROP Target_Dir "" +F90=df.exe +# ADD BASE CPP /nologo /MD /W3 /O1 /I "..\..\..\..\include" /I "..\..\..\..\src\ta_common" /I "..\..\..\..\src\ta_abstract\frames" /I "..\..\..\..\src\ta_abstract" /D "_LIB" /D "WIN32" /D "NDEBUG" /D "_MBCS" /YX /FD /c +# SUBTRACT BASE CPP /Fr +# ADD CPP /nologo /MT /W3 /WX /O2 /I "..\..\..\..\include" /I "..\..\..\..\src\ta_common" /I "..\..\..\..\src\ta_abstract\frames" /I "..\..\..\..\src\ta_abstract" /D "_LIB" /D "WIN32" /D "NDEBUG" /D "_MBCS" /YX /FD /c +# SUBTRACT CPP /Fr +# ADD BASE RSC /l 0x409 /d "NDEBUG" +# ADD RSC /l 0x409 /d "NDEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LIB32=link.exe -lib +# ADD BASE LIB32 /nologo /out:"..\..\..\..\lib\ta_abstract_cmr.lib" +# ADD LIB32 /nologo /out:"..\..\..\..\lib\ta_abstract_cmr.lib" + +!ELSEIF "$(CFG)" == "ta_abstract - Win32 Profiling" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir "ta_abstract___Win32_Profiling" +# PROP BASE Intermediate_Dir "ta_abstract___Win32_Profiling" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir "ta_abstract___Win32_Profiling" +# PROP Intermediate_Dir "ta_abstract___Win32_Profiling" +# PROP Target_Dir "" +F90=df.exe +# ADD BASE CPP /nologo /W3 /O2 /I "..\..\..\..\include" /I "..\..\..\..\src\ta_common" /I "..\..\..\..\src\ta_abstract\frames" /I "..\..\..\..\src\ta_abstract" /D "_LIB" /D "TA_SINGLE_THREAD" /D "WIN32" /D "NDEBUG" /D "_MBCS" /YX /FD /c +# SUBTRACT BASE CPP /Fr +# ADD CPP /nologo /W3 /WX /O2 /I "..\..\..\..\include" /I "..\..\..\..\src\ta_common" /I "..\..\..\..\src\ta_abstract\frames" /I "..\..\..\..\src\ta_abstract" /D "_LIB" /D "TA_SINGLE_THREAD" /D "WIN32" /D "NDEBUG" /D "_MBCS" /YX /FD /c +# SUBTRACT CPP /Fr +# ADD BASE RSC /l 0x409 /d "NDEBUG" +# ADD RSC /l 0x409 /d "NDEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LIB32=link.exe -lib +# ADD BASE LIB32 /nologo /out:"..\..\..\..\lib\ta_abstract_csr.lib" +# ADD LIB32 /nologo /out:"..\..\..\..\lib\ta_abstract_csr.lib" + +!ELSEIF "$(CFG)" == "ta_abstract - Win32 CDD Multithread DLL Debug" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir "ta_abstract___Win32_CDD_Multithread_DLL_Debug" +# PROP BASE Intermediate_Dir "ta_abstract___Win32_CDD_Multithread_DLL_Debug" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir "..\..\..\..\lib" +# PROP Intermediate_Dir "..\..\..\..\temp\cdd\ta_libc" +# PROP Target_Dir "" +F90=df.exe +# ADD BASE CPP /nologo /MD /W3 /WX /O1 /I "..\..\..\..\include" /I "..\..\..\..\src\ta_common" /I "..\..\..\..\src\ta_abstract\frames" /I "..\..\..\..\src\ta_abstract" /D "_LIB" /D "WIN32" /D "NDEBUG" /D "_MBCS" /YX /FD /c +# SUBTRACT BASE CPP /Fr +# ADD CPP /nologo /MDd /W3 /WX /Zi /Od /I "..\..\..\..\include" /I "..\..\..\..\src\ta_common" /I "..\..\..\..\src\ta_abstract\frames" /I "..\..\..\..\src\ta_abstract" /D "_LIB" /D "WIN32" /D "NDEBUG" /D "_MBCS" /Fr /YX /FD /c +# ADD BASE RSC /l 0x409 /d "NDEBUG" +# ADD RSC /l 0x409 /d "NDEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LIB32=link.exe -lib +# ADD BASE LIB32 /nologo /out:"..\..\..\..\lib\ta_abstract_cdr.lib" +# ADD LIB32 /nologo /out:"..\..\..\..\lib\ta_abstract_cdd.lib" + +!ENDIF + +# Begin Target + +# Name "ta_abstract - Win32 CDR Multithread DLL Release" +# Name "ta_abstract - Win32 CMD Multithread Debug" +# Name "ta_abstract - Win32 CSD Single Thread Debug" +# Name "ta_abstract - Win32 CSR Single Thread Release" +# Name "ta_abstract - Win32 CMR Multithread Release" +# Name "ta_abstract - Win32 Profiling" +# Name "ta_abstract - Win32 CDD Multithread DLL Debug" +# Begin Group "Source Files" + +# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat" +# Begin Source File + +SOURCE=..\..\..\..\src\ta_abstract\ta_abstract.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_abstract\ta_def_ui.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_abstract\frames\ta_frame.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_abstract\ta_func_api.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_abstract\ta_group_idx.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_abstract\tables\table_a.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_abstract\tables\table_b.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_abstract\tables\table_c.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_abstract\tables\table_d.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_abstract\tables\table_e.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_abstract\tables\table_f.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_abstract\tables\table_g.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_abstract\tables\table_h.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_abstract\tables\table_i.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_abstract\tables\table_j.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_abstract\tables\table_k.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_abstract\tables\table_l.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_abstract\tables\table_m.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_abstract\tables\table_n.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_abstract\tables\table_o.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_abstract\tables\table_p.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_abstract\tables\table_q.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_abstract\tables\table_r.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_abstract\tables\table_s.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_abstract\tables\table_t.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_abstract\tables\table_u.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_abstract\tables\table_v.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_abstract\tables\table_w.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_abstract\tables\table_x.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_abstract\tables\table_y.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_abstract\tables\table_z.c +# End Source File +# End Group +# Begin Group "Header Files" + +# PROP Default_Filter "h;hpp;hxx;hm;inl" +# Begin Source File + +SOURCE=..\..\..\..\src\ta_abstract\ta_def_ui.h +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_abstract\frames\ta_frame.h +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_abstract\ta_frame_priv.h +# End Source File +# End Group +# End Target +# End Project diff --git a/ide/msvc/lib_proj/ta_common/ta_common.dsp b/ide/msvc/lib_proj/ta_common/ta_common.dsp new file mode 100644 index 000000000..60f040d58 --- /dev/null +++ b/ide/msvc/lib_proj/ta_common/ta_common.dsp @@ -0,0 +1,278 @@ +# Microsoft Developer Studio Project File - Name="ta_common" - Package Owner=<4> +# Microsoft Developer Studio Generated Build File, Format Version 6.00 +# ** DO NOT EDIT ** + +# TARGTYPE "Win32 (x86) Static Library" 0x0104 + +CFG=ta_common - Win32 CDD Multithread DLL Debug +!MESSAGE This is not a valid makefile. To build this project using NMAKE, +!MESSAGE use the Export Makefile command and run +!MESSAGE +!MESSAGE NMAKE /f "ta_common.mak". +!MESSAGE +!MESSAGE You can specify a configuration when running NMAKE +!MESSAGE by defining the macro CFG on the command line. For example: +!MESSAGE +!MESSAGE NMAKE /f "ta_common.mak" CFG="ta_common - Win32 CDD Multithread DLL Debug" +!MESSAGE +!MESSAGE Possible choices for configuration are: +!MESSAGE +!MESSAGE "ta_common - Win32 CDR Multithread DLL Release" (based on "Win32 (x86) Static Library") +!MESSAGE "ta_common - Win32 CMD Multithread Debug" (based on "Win32 (x86) Static Library") +!MESSAGE "ta_common - Win32 CSD Single Thread Debug" (based on "Win32 (x86) Static Library") +!MESSAGE "ta_common - Win32 CSR Single Thread Release" (based on "Win32 (x86) Static Library") +!MESSAGE "ta_common - Win32 CMR Multithread Release" (based on "Win32 (x86) Static Library") +!MESSAGE "ta_common - Win32 Profiling" (based on "Win32 (x86) Static Library") +!MESSAGE "ta_common - Win32 CDD Multithread DLL Debug" (based on "Win32 (x86) Static Library") +!MESSAGE + +# Begin Project +# PROP AllowPerConfigDependencies 0 +# PROP Scc_ProjName "" +# PROP Scc_LocalPath "" +CPP=cl.exe +RSC=rc.exe + +!IF "$(CFG)" == "ta_common - Win32 CDR Multithread DLL Release" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir "ta_common___Win32_CDR_Multithread_DLL_Release" +# PROP BASE Intermediate_Dir "ta_common___Win32_CDR_Multithread_DLL_Release" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir "..\..\..\..\lib" +# PROP Intermediate_Dir "..\..\..\..\temp\cdr\ta_common" +# PROP Target_Dir "" +F90=df.exe +# ADD BASE CPP /nologo /MD /W3 /O1 /I "..\..\..\..\include" /I "..\..\..\..\src\ta_common\imatix\sfl" /I "..\..\..\..\src\ta_common" /D "_LIB" /D "WIN32" /D "NDEBUG" /D "_MBCS" /YX /FD /c +# SUBTRACT BASE CPP /Fr +# ADD CPP /nologo /MD /W3 /WX /O2 /I "..\..\..\..\include" /I "..\..\..\..\src\ta_common\imatix\sfl" /I "..\..\..\..\src\ta_common" /I "..\..\..\..\src\ta_common\mt" /D "_LIB" /D "WIN32" /D "NDEBUG" /D "_MBCS" /YX /FD /c +# SUBTRACT CPP /Fr +# ADD BASE RSC /l 0x409 /d "NDEBUG" +# ADD RSC /l 0x409 /d "NDEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LIB32=link.exe -lib +# ADD BASE LIB32 /nologo /out:"..\..\..\..\lib\ta_common_cmr.lib" +# ADD LIB32 /nologo /out:"..\..\..\..\lib\ta_common_cdr.lib" + +!ELSEIF "$(CFG)" == "ta_common - Win32 CMD Multithread Debug" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 1 +# PROP BASE Output_Dir "ta_common___Win32_CMD_Multithread_Debug" +# PROP BASE Intermediate_Dir "ta_common___Win32_CMD_Multithread_Debug" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 1 +# PROP Output_Dir "..\..\..\..\lib" +# PROP Intermediate_Dir "..\..\..\..\temp\cmd\ta_common" +# PROP Target_Dir "" +F90=df.exe +# ADD BASE CPP /nologo /MDd /W3 /Gm /Zi /Od /I "..\..\..\..\include" /I "..\..\..\..\src\ta_common\imatix\sfl" /I "..\..\..\..\src\ta_common" /D "_LIB" /D "TA_DEBUG" /D "WIN32" /D "_DEBUG" /D "_MBCS" /YX /FD /GZ /c +# SUBTRACT BASE CPP /Fr +# ADD CPP /nologo /MTd /W3 /WX /Gm /Zi /Od /I "..\..\..\..\include" /I "..\..\..\..\src\ta_common\imatix\sfl" /I "..\..\..\..\src\ta_common" /I "..\..\..\..\src\ta_common\mt" /D "_LIB" /D "TA_DEBUG" /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "TA_FUNC_NO_RANGE_CHECK" /Fr /YX /FD /GZ /c +# ADD BASE RSC /l 0x409 /d "_DEBUG" +# ADD RSC /l 0x409 /d "_DEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LIB32=link.exe -lib +# ADD BASE LIB32 /nologo /out:"..\..\..\..\lib\ta_common_cmd.lib" +# ADD LIB32 /nologo /out:"..\..\..\..\lib\ta_common_cmd.lib" + +!ELSEIF "$(CFG)" == "ta_common - Win32 CSD Single Thread Debug" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 1 +# PROP BASE Output_Dir "ta_common___Win32_CSD_Single_Thread_Debug" +# PROP BASE Intermediate_Dir "ta_common___Win32_CSD_Single_Thread_Debug" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 1 +# PROP Output_Dir "..\..\..\..\lib" +# PROP Intermediate_Dir "..\..\..\..\temp\csd\ta_common" +# PROP Target_Dir "" +F90=df.exe +# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /I "..\..\..\..\src\ta_common" /I "..\..\..\..\include" /I "..\..\..\..\src\ta_common\imatix\sfl" /D "_LIB" /D "TA_DEBUG" /D "TA_SINGLE_THREAD" /D "WIN32" /D "_DEBUG" /D "_MBCS" /YX /FD /GZ /c +# SUBTRACT BASE CPP /Fr +# ADD CPP /nologo /W3 /WX /Gm /GX /Zi /Od /I "..\..\..\..\include" /I "..\..\..\..\src\ta_common\imatix\sfl" /I "..\..\..\..\src\ta_common" /I "..\..\..\..\src\ta_common\mt" /D "_LIB" /D "TA_DEBUG" /D "TA_SINGLE_THREAD" /D "WIN32" /D "_DEBUG" /D "_MBCS" /Fr /YX /FD /GZ /c +# ADD BASE RSC /l 0x409 /d "_DEBUG" +# ADD RSC /l 0x409 /d "_DEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LIB32=link.exe -lib +# ADD BASE LIB32 /nologo /out:"..\..\..\..\lib\ta_common_csd.lib" +# ADD LIB32 /nologo /out:"..\..\..\..\lib\ta_common_csd.lib" + +!ELSEIF "$(CFG)" == "ta_common - Win32 CSR Single Thread Release" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir "ta_common___Win32_CSR_Single_Thread_Release" +# PROP BASE Intermediate_Dir "ta_common___Win32_CSR_Single_Thread_Release" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir "..\..\..\..\lib" +# PROP Intermediate_Dir "..\..\..\..\temp\csr\ta_common" +# PROP Target_Dir "" +F90=df.exe +# ADD BASE CPP /nologo /W3 /O2 /I "..\..\..\..\include" /I "..\..\..\..\src\ta_common\imatix\sfl" /I "..\..\..\..\src\ta_common" /D "_LIB" /D "TA_SINGLE_THREAD" /D "WIN32" /D "NDEBUG" /D "_MBCS" /YX /FD /c +# SUBTRACT BASE CPP /Fr +# ADD CPP /nologo /W3 /WX /O2 /I "..\..\..\..\include" /I "..\..\..\..\src\ta_common\imatix\sfl" /I "..\..\..\..\src\ta_common" /I "..\..\..\..\src\ta_common\mt" /D "_LIB" /D "TA_SINGLE_THREAD" /D "WIN32" /D "NDEBUG" /D "_MBCS" /YX /FD /c +# SUBTRACT CPP /Fr +# ADD BASE RSC /l 0x409 /d "NDEBUG" +# ADD RSC /l 0x409 /d "NDEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LIB32=link.exe -lib +# ADD BASE LIB32 /nologo /out:"..\..\..\..\lib\ta_common_csr.lib" +# ADD LIB32 /nologo /out:"..\..\..\..\lib\ta_common_csr.lib" + +!ELSEIF "$(CFG)" == "ta_common - Win32 CMR Multithread Release" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir "ta_common___Win32_CMR_Multithread_Release0" +# PROP BASE Intermediate_Dir "ta_common___Win32_CMR_Multithread_Release0" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir "..\..\..\..\lib" +# PROP Intermediate_Dir "..\..\..\..\temp\cmr\ta_common" +# PROP Target_Dir "" +F90=df.exe +# ADD BASE CPP /nologo /MD /W3 /O1 /I "..\..\..\..\include" /I "..\..\..\..\src\ta_common\imatix\sfl" /I "..\..\..\..\src\ta_common" /D "_LIB" /D "WIN32" /D "NDEBUG" /D "_MBCS" /YX /FD /c +# SUBTRACT BASE CPP /Fr +# ADD CPP /nologo /MT /W3 /WX /O2 /I "..\..\..\..\include" /I "..\..\..\..\src\ta_common\imatix\sfl" /I "..\..\..\..\src\ta_common" /I "..\..\..\..\src\ta_common\mt" /D "_LIB" /D "WIN32" /D "NDEBUG" /D "_MBCS" /YX /FD /c +# SUBTRACT CPP /Fr +# ADD BASE RSC /l 0x409 /d "NDEBUG" +# ADD RSC /l 0x409 /d "NDEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LIB32=link.exe -lib +# ADD BASE LIB32 /nologo /out:"..\..\..\..\lib\ta_common_cmr.lib" +# ADD LIB32 /nologo /out:"..\..\..\..\lib\ta_common_cmr.lib" + +!ELSEIF "$(CFG)" == "ta_common - Win32 Profiling" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir "ta_common___Win32_Profiling" +# PROP BASE Intermediate_Dir "ta_common___Win32_Profiling" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir "ta_common___Win32_Profiling" +# PROP Intermediate_Dir "ta_common___Win32_Profiling" +# PROP Target_Dir "" +F90=df.exe +# ADD BASE CPP /nologo /W3 /O2 /I "..\..\..\..\include" /I "..\..\..\..\src\ta_common\imatix\sfl" /I "..\..\..\..\src\ta_common" /D "_LIB" /D "TA_SINGLE_THREAD" /D "WIN32" /D "NDEBUG" /D "_MBCS" /YX /FD /c +# SUBTRACT BASE CPP /Fr +# ADD CPP /nologo /W3 /WX /O2 /I "..\..\..\..\include" /I "..\..\..\..\src\ta_common\imatix\sfl" /I "..\..\..\..\src\ta_common" /I "..\..\..\..\src\ta_common\mt" /D "_LIB" /D "TA_SINGLE_THREAD" /D "WIN32" /D "NDEBUG" /D "_MBCS" /YX /FD /c +# SUBTRACT CPP /Fr +# ADD BASE RSC /l 0x409 /d "NDEBUG" +# ADD RSC /l 0x409 /d "NDEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LIB32=link.exe -lib +# ADD BASE LIB32 /nologo /out:"..\..\..\..\lib\ta_common_csr.lib" +# ADD LIB32 /nologo /out:"..\..\..\..\lib\ta_common_csr.lib" + +!ELSEIF "$(CFG)" == "ta_common - Win32 CDD Multithread DLL Debug" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir "ta_common___Win32_CDD_Multithread_DLL_Debug" +# PROP BASE Intermediate_Dir "ta_common___Win32_CDD_Multithread_DLL_Debug" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir "..\..\..\..\lib" +# PROP Intermediate_Dir "..\..\..\..\temp\cdd\ta_libc" +# PROP Target_Dir "" +F90=df.exe +# ADD BASE CPP /nologo /MD /W3 /WX /O1 /I "..\..\..\..\include" /I "..\..\..\..\src\ta_common\imatix\sfl" /I "..\..\..\..\src\ta_common" /D "_LIB" /D "WIN32" /D "NDEBUG" /D "_MBCS" /YX /FD /c +# SUBTRACT BASE CPP /Fr +# ADD CPP /nologo /MDd /W3 /WX /Zi /Od /I "..\..\..\..\include" /I "..\..\..\..\src\ta_common\imatix\sfl" /I "..\..\..\..\src\ta_common" /I "..\..\..\..\src\ta_common\mt" /D "_LIB" /D "WIN32" /D "NDEBUG" /D "_MBCS" /Fr /YX /FD /c +# ADD BASE RSC /l 0x409 /d "NDEBUG" +# ADD RSC /l 0x409 /d "NDEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LIB32=link.exe -lib +# ADD BASE LIB32 /nologo /out:"..\..\..\..\lib\ta_common_cdr.lib" +# ADD LIB32 /nologo /out:"..\..\..\..\lib\ta_common_cdd.lib" + +!ENDIF + +# Begin Target + +# Name "ta_common - Win32 CDR Multithread DLL Release" +# Name "ta_common - Win32 CMD Multithread Debug" +# Name "ta_common - Win32 CSD Single Thread Debug" +# Name "ta_common - Win32 CSR Single Thread Release" +# Name "ta_common - Win32 CMR Multithread Release" +# Name "ta_common - Win32 Profiling" +# Name "ta_common - Win32 CDD Multithread DLL Debug" +# Begin Group "Source Files" + +# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat" +# Begin Source File + +SOURCE=..\..\..\..\src\ta_common\ta_global.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_common\ta_retcode.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_common\ta_version.c + +!IF "$(CFG)" == "ta_common - Win32 CDR Multithread DLL Release" + +!ELSEIF "$(CFG)" == "ta_common - Win32 CMD Multithread Debug" + +# SUBTRACT CPP /YX + +!ELSEIF "$(CFG)" == "ta_common - Win32 CSD Single Thread Debug" + +!ELSEIF "$(CFG)" == "ta_common - Win32 CSR Single Thread Release" + +!ELSEIF "$(CFG)" == "ta_common - Win32 CMR Multithread Release" + +!ELSEIF "$(CFG)" == "ta_common - Win32 Profiling" + +!ELSEIF "$(CFG)" == "ta_common - Win32 CDD Multithread DLL Debug" + +!ENDIF + +# End Source File +# End Group +# Begin Group "Header Files" + +# PROP Default_Filter "h;hpp;hxx;hm;inl" +# Begin Source File + +SOURCE=..\..\..\..\src\ta_common\ta_global.h +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_common\ta_magic_nb.h +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_common\ta_memory.h +# End Source File +# End Group +# End Target +# End Project diff --git a/ide/msvc/lib_proj/ta_func/ta_func.dsp b/ide/msvc/lib_proj/ta_func/ta_func.dsp new file mode 100644 index 000000000..960837175 --- /dev/null +++ b/ide/msvc/lib_proj/ta_func/ta_func.dsp @@ -0,0 +1,875 @@ +# Microsoft Developer Studio Project File - Name="ta_func" - Package Owner=<4> +# Microsoft Developer Studio Generated Build File, Format Version 6.00 +# ** DO NOT EDIT ** + +# TARGTYPE "Win32 (x86) Static Library" 0x0104 + +CFG=ta_func - Win32 CDD Multithread DLL Debug +!MESSAGE This is not a valid makefile. To build this project using NMAKE, +!MESSAGE use the Export Makefile command and run +!MESSAGE +!MESSAGE NMAKE /f "ta_func.mak". +!MESSAGE +!MESSAGE You can specify a configuration when running NMAKE +!MESSAGE by defining the macro CFG on the command line. For example: +!MESSAGE +!MESSAGE NMAKE /f "ta_func.mak" CFG="ta_func - Win32 CDD Multithread DLL Debug" +!MESSAGE +!MESSAGE Possible choices for configuration are: +!MESSAGE +!MESSAGE "ta_func - Win32 CDR Multithread DLL Release" (based on "Win32 (x86) Static Library") +!MESSAGE "ta_func - Win32 CMD Multithread Debug" (based on "Win32 (x86) Static Library") +!MESSAGE "ta_func - Win32 CSD Single Thread Debug" (based on "Win32 (x86) Static Library") +!MESSAGE "ta_func - Win32 CSR Single Thread Release" (based on "Win32 (x86) Static Library") +!MESSAGE "ta_func - Win32 CMR Multithread Release" (based on "Win32 (x86) Static Library") +!MESSAGE "ta_func - Win32 Profiling" (based on "Win32 (x86) Static Library") +!MESSAGE "ta_func - Win32 CDD Multithread DLL Debug" (based on "Win32 (x86) Static Library") +!MESSAGE + +# Begin Project +# PROP AllowPerConfigDependencies 0 +# PROP Scc_ProjName "" +# PROP Scc_LocalPath "" +CPP=cl.exe +RSC=rc.exe + +!IF "$(CFG)" == "ta_func - Win32 CDR Multithread DLL Release" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir "ta_func___Win32_CDR_Multithread_DLL_Release" +# PROP BASE Intermediate_Dir "ta_func___Win32_CDR_Multithread_DLL_Release" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir "..\..\..\..\lib" +# PROP Intermediate_Dir "..\..\..\..\temp\cdr\ta_func" +# PROP Target_Dir "" +F90=df.exe +# ADD BASE CPP /nologo /MD /W3 /O1 /I "..\..\..\..\include" /I "..\..\..\..\src\ta_common" /D "_LIB" /D "WIN32" /D "NDEBUG" /D "_MBCS" /YX /FD /c +# SUBTRACT BASE CPP /Fr +# ADD CPP /nologo /MD /W3 /WX /O2 /I "..\..\..\..\include" /I "..\..\..\..\src\ta_common" /D "_LIB" /D "WIN32" /D "NDEBUG" /D "_MBCS" /YX /FD /c +# SUBTRACT CPP /Fr +# ADD BASE RSC /l 0x409 /d "NDEBUG" +# ADD RSC /l 0x409 /d "NDEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LIB32=link.exe -lib +# ADD BASE LIB32 /nologo /out:"..\..\..\..\lib\ta_func_cmr.lib" +# ADD LIB32 /nologo /out:"..\..\..\..\lib\ta_func_cdr.lib" + +!ELSEIF "$(CFG)" == "ta_func - Win32 CMD Multithread Debug" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 1 +# PROP BASE Output_Dir "ta_func___Win32_CMD_Multithread_Debug" +# PROP BASE Intermediate_Dir "ta_func___Win32_CMD_Multithread_Debug" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 1 +# PROP Output_Dir "..\..\..\..\lib" +# PROP Intermediate_Dir "..\..\..\..\temp\cmd\ta_func" +# PROP Target_Dir "" +F90=df.exe +# ADD BASE CPP /nologo /MDd /W3 /Gm /Zi /Od /I "..\..\..\..\include" /I "..\..\..\..\src\ta_common" /D "_LIB" /D "TA_DEBUG" /D "WIN32" /D "_DEBUG" /D "_MBCS" /YX /FD /GZ /c +# SUBTRACT BASE CPP /Fr +# ADD CPP /nologo /MTd /W3 /WX /Gm /Zi /Od /I "..\..\..\..\include" /I "..\..\..\..\src\ta_common" /D "_LIB" /D "TA_DEBUG" /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "TA_FUNC_NO_RANGE_CHECK" /Fr /YX /FD /GZ /c +# ADD BASE RSC /l 0x409 /d "_DEBUG" +# ADD RSC /l 0x409 /d "_DEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LIB32=link.exe -lib +# ADD BASE LIB32 /nologo /out:"..\..\..\..\lib\ta_func_cmd.lib" +# ADD LIB32 /nologo /out:"..\..\..\..\lib\ta_func_cmd.lib" + +!ELSEIF "$(CFG)" == "ta_func - Win32 CSD Single Thread Debug" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 1 +# PROP BASE Output_Dir "ta_func___Win32_CSD_Single_Thread_Debug" +# PROP BASE Intermediate_Dir "ta_func___Win32_CSD_Single_Thread_Debug" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 1 +# PROP Output_Dir "..\..\..\..\lib" +# PROP Intermediate_Dir "..\..\..\..\temp\csd\ta_func" +# PROP Target_Dir "" +F90=df.exe +# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /I "..\..\..\..\include" /I "..\..\..\..\src\ta_common" /D "_LIB" /D "TA_DEBUG" /D "TA_SINGLE_THREAD" /D "WIN32" /D "_DEBUG" /D "_MBCS" /YX /FD /GZ /c +# SUBTRACT BASE CPP /Fr +# ADD CPP /nologo /W3 /WX /Gm /GX /Zi /Od /I "..\..\..\..\include" /I "..\..\..\..\src\ta_common" /D "_LIB" /D "TA_DEBUG" /D "TA_SINGLE_THREAD" /D "WIN32" /D "_DEBUG" /D "_MBCS" /Fr /YX /FD /GZ /c +# ADD BASE RSC /l 0x409 /d "_DEBUG" +# ADD RSC /l 0x409 /d "_DEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LIB32=link.exe -lib +# ADD BASE LIB32 /nologo /out:"..\..\..\..\lib\ta_func_csd.lib" +# ADD LIB32 /nologo /out:"..\..\..\..\lib\ta_func_csd.lib" + +!ELSEIF "$(CFG)" == "ta_func - Win32 CSR Single Thread Release" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir "ta_func___Win32_CSR_Single_Thread_Release" +# PROP BASE Intermediate_Dir "ta_func___Win32_CSR_Single_Thread_Release" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir "..\..\..\..\lib" +# PROP Intermediate_Dir "..\..\..\..\temp\csr\ta_func" +# PROP Target_Dir "" +F90=df.exe +# ADD BASE CPP /nologo /W3 /O2 /I "..\..\..\..\include" /I "..\..\..\..\src\ta_common" /D "_LIB" /D "TA_SINGLE_THREAD" /D "WIN32" /D "NDEBUG" /D "_MBCS" /YX /FD /c +# SUBTRACT BASE CPP /Fr +# ADD CPP /nologo /W3 /WX /O2 /I "..\..\..\..\include" /I "..\..\..\..\src\ta_common" /D "_LIB" /D "TA_SINGLE_THREAD" /D "WIN32" /D "NDEBUG" /D "_MBCS" /YX /FD /c +# SUBTRACT CPP /Fr +# ADD BASE RSC /l 0x409 /d "NDEBUG" +# ADD RSC /l 0x409 /d "NDEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LIB32=link.exe -lib +# ADD BASE LIB32 /nologo /out:"..\..\..\..\lib\ta_func_csr.lib" +# ADD LIB32 /nologo /out:"..\..\..\..\lib\ta_func_csr.lib" + +!ELSEIF "$(CFG)" == "ta_func - Win32 CMR Multithread Release" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir "ta_func___Win32_CMR_Multithread_Release0" +# PROP BASE Intermediate_Dir "ta_func___Win32_CMR_Multithread_Release0" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir "..\..\..\..\lib" +# PROP Intermediate_Dir "..\..\..\..\temp\cmr\ta_func" +# PROP Target_Dir "" +F90=df.exe +# ADD BASE CPP /nologo /MD /W3 /O1 /I "..\..\..\..\include" /I "..\..\..\..\src\ta_common" /D "_LIB" /D "WIN32" /D "NDEBUG" /D "_MBCS" /YX /FD /c +# SUBTRACT BASE CPP /Fr +# ADD CPP /nologo /MT /W3 /WX /O2 /I "..\..\..\..\include" /I "..\..\..\..\src\ta_common" /D "_LIB" /D "WIN32" /D "NDEBUG" /D "_MBCS" /YX /FD /c +# SUBTRACT CPP /Fr +# ADD BASE RSC /l 0x409 /d "NDEBUG" +# ADD RSC /l 0x409 /d "NDEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LIB32=link.exe -lib +# ADD BASE LIB32 /nologo /out:"..\..\..\..\lib\ta_func_cmr.lib" +# ADD LIB32 /nologo /out:"..\..\..\..\lib\ta_func_cmr.lib" + +!ELSEIF "$(CFG)" == "ta_func - Win32 Profiling" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir "ta_func___Win32_Profiling" +# PROP BASE Intermediate_Dir "ta_func___Win32_Profiling" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir "ta_func___Win32_Profiling" +# PROP Intermediate_Dir "ta_func___Win32_Profiling" +# PROP Target_Dir "" +F90=df.exe +# ADD BASE CPP /nologo /W3 /O2 /I "..\..\..\..\include" /I "..\..\..\..\src\ta_common" /D "_LIB" /D "TA_SINGLE_THREAD" /D "WIN32" /D "NDEBUG" /D "_MBCS" /YX /FD /c +# SUBTRACT BASE CPP /Fr +# ADD CPP /nologo /W3 /WX /O2 /I "..\..\..\..\include" /I "..\..\..\..\src\ta_common" /D "_LIB" /D "TA_SINGLE_THREAD" /D "WIN32" /D "NDEBUG" /D "_MBCS" /YX /FD /c +# SUBTRACT CPP /Fr +# ADD BASE RSC /l 0x409 /d "NDEBUG" +# ADD RSC /l 0x409 /d "NDEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LIB32=link.exe -lib +# ADD BASE LIB32 /nologo /out:"..\..\..\..\lib\ta_func_csr.lib" +# ADD LIB32 /nologo /out:"..\..\..\..\lib\ta_func_csr.lib" + +!ELSEIF "$(CFG)" == "ta_func - Win32 CDD Multithread DLL Debug" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir "ta_func___Win32_CDD_Multithread_DLL_Debug" +# PROP BASE Intermediate_Dir "ta_func___Win32_CDD_Multithread_DLL_Debug" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir "..\..\..\..\lib" +# PROP Intermediate_Dir "..\..\..\..\temp\cdd\ta_libc" +# PROP Target_Dir "" +F90=df.exe +# ADD BASE CPP /nologo /MD /W3 /WX /O1 /I "..\..\..\..\include" /I "..\..\..\..\src\ta_common" /D "_LIB" /D "WIN32" /D "NDEBUG" /D "_MBCS" /YX /FD /c +# SUBTRACT BASE CPP /Fr +# ADD CPP /nologo /MDd /W3 /WX /Zi /Od /I "..\..\..\..\include" /I "..\..\..\..\src\ta_common" /D "_LIB" /D "WIN32" /D "NDEBUG" /D "_MBCS" /Fr /YX /FD /c +# ADD BASE RSC /l 0x409 /d "NDEBUG" +# ADD RSC /l 0x409 /d "NDEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LIB32=link.exe -lib +# ADD BASE LIB32 /nologo /out:"..\..\..\..\lib\ta_func_cdr.lib" +# ADD LIB32 /nologo /out:"..\..\..\..\lib\ta_func_cdd.lib" + +!ENDIF + +# Begin Target + +# Name "ta_func - Win32 CDR Multithread DLL Release" +# Name "ta_func - Win32 CMD Multithread Debug" +# Name "ta_func - Win32 CSD Single Thread Debug" +# Name "ta_func - Win32 CSR Single Thread Release" +# Name "ta_func - Win32 CMR Multithread Release" +# Name "ta_func - Win32 Profiling" +# Name "ta_func - Win32 CDD Multithread DLL Debug" +# Begin Group "Source Files" + +# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat" +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_ACOS.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_AD.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_ADD.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_ADOSC.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_ADX.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_ADXR.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_APO.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_AROON.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_AROONOSC.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_ASIN.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_ATAN.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_ATR.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_AVGPRICE.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_BBANDS.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_BETA.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_BOP.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_CCI.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_CDL2CROWS.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_CDL3BLACKCROWS.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_CDL3INSIDE.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_CDL3LINESTRIKE.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_CDL3OUTSIDE.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_CDL3STARSINSOUTH.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_CDL3WHITESOLDIERS.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_CDLABANDONEDBABY.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_CDLADVANCEBLOCK.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_CDLBELTHOLD.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_CDLBREAKAWAY.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_CDLCLOSINGMARUBOZU.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_CDLCONCEALBABYSWALL.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_CDLCOUNTERATTACK.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_CDLDARKCLOUDCOVER.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_CDLDOJI.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_CDLDOJISTAR.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_CDLDRAGONFLYDOJI.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_CDLENGULFING.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_CDLEVENINGDOJISTAR.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_CDLEVENINGSTAR.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_CDLGAPSIDESIDEWHITE.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_CDLGRAVESTONEDOJI.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_CDLHAMMER.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_CDLHANGINGMAN.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_CDLHARAMI.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_CDLHARAMICROSS.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_CDLHIGHWAVE.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_CDLHIKKAKE.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_CDLHIKKAKEMOD.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_CDLHOMINGPIGEON.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_CDLIDENTICAL3CROWS.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_CDLINNECK.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_CDLINVERTEDHAMMER.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_CDLKICKING.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_CDLKICKINGBYLENGTH.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_CDLLADDERBOTTOM.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_CDLLONGLEGGEDDOJI.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_CDLLONGLINE.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_CDLMARUBOZU.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_CDLMATCHINGLOW.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_CDLMATHOLD.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_CDLMORNINGDOJISTAR.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_CDLMORNINGSTAR.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_CDLONNECK.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_CDLPIERCING.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_CDLRICKSHAWMAN.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_CDLRISEFALL3METHODS.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_CDLSEPARATINGLINES.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_CDLSHOOTINGSTAR.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_CDLSHORTLINE.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_CDLSPINNINGTOP.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_CDLSTALLEDPATTERN.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_CDLSTICKSANDWICH.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_CDLTAKURI.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_CDLTASUKIGAP.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_CDLTHRUSTING.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_CDLTRISTAR.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_CDLUNIQUE3RIVER.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_CDLUPSIDEGAP2CROWS.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_CDLXSIDEGAP3METHODS.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_CEIL.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_CMO.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_CORREL.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_COS.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_COSH.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_DEMA.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_DIV.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_DX.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_EMA.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_EXP.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_FLOOR.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_HT_DCPERIOD.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_HT_DCPHASE.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_HT_PHASOR.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_HT_SINE.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_HT_TRENDLINE.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_HT_TRENDMODE.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_KAMA.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_LINEARREG.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_LINEARREG_ANGLE.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_LINEARREG_INTERCEPT.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_LINEARREG_SLOPE.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_LN.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_LOG10.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_MA.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_MACD.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_MACDEXT.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_MACDFIX.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_MAMA.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_MAVP.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_MAX.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_MAXINDEX.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_MEDPRICE.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_MFI.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_MIDPOINT.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_MIDPRICE.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_MIN.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_MININDEX.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_MINMAX.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_MINMAXINDEX.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_MINUS_DI.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_MINUS_DM.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_MOM.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_MULT.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_NATR.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_OBV.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_PLUS_DI.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_PLUS_DM.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_PPO.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_ROC.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_ROCP.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_ROCR.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_ROCR100.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_RSI.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_SAR.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_SAREXT.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_SIN.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_SINH.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_SMA.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_SQRT.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_STDDEV.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_STOCH.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_STOCHF.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_STOCHRSI.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_SUB.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_SUM.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_T3.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_TAN.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_TANH.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_TEMA.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_TRANGE.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_TRIMA.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_TRIX.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_TSF.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_TYPPRICE.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_ULTOSC.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_VAR.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_WCLPRICE.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_WILLR.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_WMA.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_utility.c +# End Source File +# End Group +# Begin Group "Header Files" + +# PROP Default_Filter "h;hpp;hxx;hm;inl" +# Begin Source File + +SOURCE=..\..\..\..\src\ta_func\ta_utility.h +# End Source File +# End Group +# End Target +# End Project diff --git a/ide/msvc/lib_proj/ta_libc/ta_libc.dsp b/ide/msvc/lib_proj/ta_libc/ta_libc.dsp new file mode 100644 index 000000000..df69e9f85 --- /dev/null +++ b/ide/msvc/lib_proj/ta_libc/ta_libc.dsp @@ -0,0 +1,253 @@ +# Microsoft Developer Studio Project File - Name="ta_libc" - Package Owner=<4> +# Microsoft Developer Studio Generated Build File, Format Version 6.00 +# ** DO NOT EDIT ** + +# TARGTYPE "Win32 (x86) Static Library" 0x0104 + +CFG=ta_libc - Win32 CDR Multithread DLL Release +!MESSAGE This is not a valid makefile. To build this project using NMAKE, +!MESSAGE use the Export Makefile command and run +!MESSAGE +!MESSAGE NMAKE /f "ta_libc.mak". +!MESSAGE +!MESSAGE You can specify a configuration when running NMAKE +!MESSAGE by defining the macro CFG on the command line. For example: +!MESSAGE +!MESSAGE NMAKE /f "ta_libc.mak" CFG="ta_libc - Win32 CDR Multithread DLL Release" +!MESSAGE +!MESSAGE Possible choices for configuration are: +!MESSAGE +!MESSAGE "ta_libc - Win32 CDR Multithread DLL Release" (based on "Win32 (x86) Static Library") +!MESSAGE "ta_libc - Win32 CMD Multithread Debug" (based on "Win32 (x86) Static Library") +!MESSAGE "ta_libc - Win32 CSD Single Thread Debug" (based on "Win32 (x86) Static Library") +!MESSAGE "ta_libc - Win32 CSR Single Thread Release" (based on "Win32 (x86) Static Library") +!MESSAGE "ta_libc - Win32 CMR Multithread Release" (based on "Win32 (x86) Static Library") +!MESSAGE "ta_libc - Win32 Profiling" (based on "Win32 (x86) Static Library") +!MESSAGE "ta_libc - Win32 CDD Multithread DLL Debug" (based on "Win32 (x86) Static Library") +!MESSAGE + +# Begin Project +# PROP AllowPerConfigDependencies 0 +# PROP Scc_ProjName "" +# PROP Scc_LocalPath "" +CPP=cl.exe +RSC=rc.exe + +!IF "$(CFG)" == "ta_libc - Win32 CDR Multithread DLL Release" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir "ta_libc___Win32_CDR_Multithread_DLL_Release" +# PROP BASE Intermediate_Dir "ta_libc___Win32_CDR_Multithread_DLL_Release" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir "..\..\..\..\lib" +# PROP Intermediate_Dir "..\..\..\..\temp\cdr\ta_libc" +# PROP Target_Dir "" +F90=df.exe +# ADD BASE CPP /nologo /MD /W3 /O1 /D "_LIB" /D "WIN32" /D "NDEBUG" /D "_MBCS" /YX /FD /c +# ADD CPP /nologo /MD /W3 /WX /O2 /D "_LIB" /D "WIN32" /D "NDEBUG" /D "_MBCS" /YX /FD /c +# ADD BASE RSC /l 0x409 /d "NDEBUG" +# ADD RSC /l 0x409 /d "NDEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LIB32=link.exe -lib +# ADD BASE LIB32 /nologo /out:"..\..\..\..\lib\ta_libc_cmr.lib" +# ADD LIB32 /nologo /out:"..\..\..\..\lib\ta_libc_cdr.lib" + +!ELSEIF "$(CFG)" == "ta_libc - Win32 CMD Multithread Debug" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 1 +# PROP BASE Output_Dir "ta_libc___Win32_CMD_Multithread_Debug" +# PROP BASE Intermediate_Dir "ta_libc___Win32_CMD_Multithread_Debug" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 1 +# PROP Output_Dir "..\..\..\..\lib" +# PROP Intermediate_Dir "..\..\..\..\temp\cmd\ta_libc" +# PROP Target_Dir "" +F90=df.exe +# ADD BASE CPP /nologo /MDd /W3 /Gm /Zi /Od /D "_LIB" /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "TA_DEBUG" /YX /FD /GZ /c +# ADD CPP /nologo /MTd /W3 /WX /Gm /Zi /Od /D "_LIB" /D "TA_DEBUG" /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "TA_FUNC_NO_RANGE_CHECK" /Fr /YX /FD /GZ /c +# ADD BASE RSC /l 0x409 /d "_DEBUG" +# ADD RSC /l 0x409 /d "_DEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LIB32=link.exe -lib +# ADD BASE LIB32 /nologo /out:"..\..\..\..\lib\ta_libc_cmd.lib" +# ADD LIB32 /nologo /out:"..\..\..\..\lib\ta_libc_cmd.lib" + +!ELSEIF "$(CFG)" == "ta_libc - Win32 CSD Single Thread Debug" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 1 +# PROP BASE Output_Dir "ta_libc___Win32_CSD_Single_Thread_Debug" +# PROP BASE Intermediate_Dir "ta_libc___Win32_CSD_Single_Thread_Debug" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 1 +# PROP Output_Dir "..\..\..\..\lib" +# PROP Intermediate_Dir "..\..\..\..\temp\csd\ta_libc" +# PROP Target_Dir "" +F90=df.exe +# ADD BASE CPP /nologo /W3 /Gm /GX /Zi /Od /D "_LIB" /D "TA_SINGLE_THREAD" /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "TA_DEBUG" /YX /FD /GZ /c +# ADD CPP /nologo /W3 /WX /Gm /Zi /Od /D "_LIB" /D "TA_SINGLE_THREAD" /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "TA_DEBUG" /FR /YX /FD /GZ /c +# ADD BASE RSC /l 0x409 /d "_DEBUG" +# ADD RSC /l 0x409 /d "_DEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LIB32=link.exe -lib +# ADD BASE LIB32 /nologo /out:"..\..\..\..\lib\ta_libc_csd.lib" +# ADD LIB32 /nologo /out:"..\..\..\..\lib\ta_libc_csd.lib" + +!ELSEIF "$(CFG)" == "ta_libc - Win32 CSR Single Thread Release" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir "ta_libc___Win32_CSR_Single_Thread_Release" +# PROP BASE Intermediate_Dir "ta_libc___Win32_CSR_Single_Thread_Release" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir "..\..\..\..\lib" +# PROP Intermediate_Dir "..\..\..\..\temp\csr\ta_libc" +# PROP Target_Dir "" +F90=df.exe +# ADD BASE CPP /nologo /W3 /O2 /D "_LIB" /D "TA_SINGLE_THREAD" /D "WIN32" /D "NDEBUG" /D "_MBCS" /YX /FD /c +# ADD CPP /nologo /W3 /WX /O2 /D "_LIB" /D "TA_SINGLE_THREAD" /D "WIN32" /D "NDEBUG" /D "_MBCS" /YX /FD /c +# ADD BASE RSC /l 0x409 /d "NDEBUG" +# ADD RSC /l 0x409 /d "NDEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LIB32=link.exe -lib +# ADD BASE LIB32 /nologo /out:"..\..\..\..\lib\ta_libc_csr.lib" +# ADD LIB32 /nologo /out:"..\..\..\..\lib\ta_libc_csr.lib" + +!ELSEIF "$(CFG)" == "ta_libc - Win32 CMR Multithread Release" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir "ta_libc___Win32_CMR_Multithread_Release" +# PROP BASE Intermediate_Dir "ta_libc___Win32_CMR_Multithread_Release" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir "..\..\..\..\lib" +# PROP Intermediate_Dir "..\..\..\..\temp\cmr\ta_libc" +# PROP Target_Dir "" +F90=df.exe +# ADD BASE CPP /nologo /MD /W3 /O1 /D "_LIB" /D "WIN32" /D "NDEBUG" /D "_MBCS" /YX /FD /c +# ADD CPP /nologo /MT /W3 /WX /O2 /D "_LIB" /D "WIN32" /D "NDEBUG" /D "_MBCS" /YX /FD /c +# SUBTRACT CPP /Fr +# ADD BASE RSC /l 0x409 /d "NDEBUG" +# ADD RSC /l 0x409 /d "NDEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LIB32=link.exe -lib +# ADD BASE LIB32 /nologo /out:"..\..\..\..\lib\ta_libc_cmr.lib" +# ADD LIB32 /nologo /out:"..\..\..\..\lib\ta_libc_cmr.lib" + +!ELSEIF "$(CFG)" == "ta_libc - Win32 Profiling" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir "ta_libc___Win32_Profiling" +# PROP BASE Intermediate_Dir "ta_libc___Win32_Profiling" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir "ta_libc___Win32_Profiling" +# PROP Intermediate_Dir "ta_libc___Win32_Profiling" +# PROP Target_Dir "" +F90=df.exe +# ADD BASE CPP /nologo /W3 /O2 /D "_LIB" /D "TA_SINGLE_THREAD" /D "WIN32" /D "NDEBUG" /D "_MBCS" /YX /FD /c +# ADD CPP /nologo /W3 /WX /O2 /D "_LIB" /D "TA_SINGLE_THREAD" /D "WIN32" /D "NDEBUG" /D "_MBCS" /YX /FD /c +# ADD BASE RSC /l 0x409 /d "NDEBUG" +# ADD RSC /l 0x409 /d "NDEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LIB32=link.exe -lib +# ADD BASE LIB32 /nologo /out:"..\..\..\..\lib\ta_libc_csr.lib" +# ADD LIB32 /nologo /out:"..\..\..\..\lib\ta_libc_csr.lib" + +!ELSEIF "$(CFG)" == "ta_libc - Win32 CDD Multithread DLL Debug" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir "ta_libc___Win32_CDD_Multithread_DLL_Debug" +# PROP BASE Intermediate_Dir "ta_libc___Win32_CDD_Multithread_DLL_Debug" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir "..\..\..\..\lib" +# PROP Intermediate_Dir "..\..\..\..\temp\cdd\ta_libc" +# PROP Target_Dir "" +F90=df.exe +# ADD BASE CPP /nologo /MD /W3 /WX /O1 /D "_LIB" /D "WIN32" /D "NDEBUG" /D "_MBCS" /YX /FD /c +# ADD CPP /nologo /MDd /W3 /WX /Zi /Od /D "_LIB" /D "WIN32" /D "NDEBUG" /D "_MBCS" /FR /YX /FD /c +# ADD BASE RSC /l 0x409 /d "NDEBUG" +# ADD RSC /l 0x409 /d "NDEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LIB32=link.exe -lib +# ADD BASE LIB32 /nologo /out:"..\..\..\..\lib\ta_libc_cdr.lib" +# ADD LIB32 /nologo /out:"..\..\..\..\lib\ta_libc_cdd.lib" + +!ENDIF + +# Begin Target + +# Name "ta_libc - Win32 CDR Multithread DLL Release" +# Name "ta_libc - Win32 CMD Multithread Debug" +# Name "ta_libc - Win32 CSD Single Thread Debug" +# Name "ta_libc - Win32 CSR Single Thread Release" +# Name "ta_libc - Win32 CMR Multithread Release" +# Name "ta_libc - Win32 Profiling" +# Name "ta_libc - Win32 CDD Multithread DLL Debug" +# Begin Group "Source Files" + +# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat" +# End Group +# Begin Group "Header Files" + +# PROP Default_Filter "h;hpp;hxx;hm;inl" +# Begin Source File + +SOURCE=..\..\..\..\include\ta_abstract.h +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\include\ta_common.h +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\include\ta_defs.h +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\include\ta_func.h +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\include\ta_libc.h +# End Source File +# End Group +# Begin Source File + +SOURCE=..\..\..\..\..\CHANGELOG.TXT +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\..\HISTORY.TXT +# End Source File +# End Target +# End Project diff --git a/ide/msvc/lib_proj/ta_regtest/ta_regtest.dsp b/ide/msvc/lib_proj/ta_regtest/ta_regtest.dsp new file mode 100644 index 000000000..3ecdede6e --- /dev/null +++ b/ide/msvc/lib_proj/ta_regtest/ta_regtest.dsp @@ -0,0 +1,305 @@ +# Microsoft Developer Studio Project File - Name="ta_regtest" - Package Owner=<4> +# Microsoft Developer Studio Generated Build File, Format Version 6.00 +# ** DO NOT EDIT ** + +# TARGTYPE "Win32 (x86) Console Application" 0x0103 + +CFG=TA_REGTEST - WIN32 CMD MULTITHREAD DEBUG +!MESSAGE This is not a valid makefile. To build this project using NMAKE, +!MESSAGE use the Export Makefile command and run +!MESSAGE +!MESSAGE NMAKE /f "ta_regtest.mak". +!MESSAGE +!MESSAGE You can specify a configuration when running NMAKE +!MESSAGE by defining the macro CFG on the command line. For example: +!MESSAGE +!MESSAGE NMAKE /f "ta_regtest.mak" CFG="TA_REGTEST - WIN32 CMD MULTITHREAD DEBUG" +!MESSAGE +!MESSAGE Possible choices for configuration are: +!MESSAGE +!MESSAGE "ta_regtest - Win32 CMD Multithread Debug" (based on "Win32 (x86) Console Application") +!MESSAGE "ta_regtest - Win32 CSD Single Thread Debug" (based on "Win32 (x86) Console Application") +!MESSAGE "ta_regtest - Win32 CSR Single Thread Release" (based on "Win32 (x86) Console Application") +!MESSAGE "ta_regtest - Win32 CMR Multithread Release" (based on "Win32 (x86) Console Application") +!MESSAGE "ta_regtest - Win32 Profiling" (based on "Win32 (x86) Console Application") +!MESSAGE + +# Begin Project +# PROP AllowPerConfigDependencies 0 +# PROP Scc_ProjName "" +# PROP Scc_LocalPath "" +CPP=cl.exe +RSC=rc.exe + +!IF "$(CFG)" == "ta_regtest - Win32 CMD Multithread Debug" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 1 +# PROP BASE Output_Dir "ta_regtest___Win32_CMD_Multithread_Debug" +# PROP BASE Intermediate_Dir "ta_regtest___Win32_CMD_Multithread_Debug" +# PROP BASE Ignore_Export_Lib 0 +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 1 +# PROP Output_Dir "..\..\..\..\bin" +# PROP Intermediate_Dir "..\..\..\..\temp\cmd\ta_regtest" +# PROP Ignore_Export_Lib 0 +# PROP Target_Dir "" +# ADD BASE CPP /nologo /MDd /W3 /Gm /Zi /Od /I "..\..\..\..\src\ta_common" /I "..\..\..\..\include" /I "..\..\..\..\src\ta_common\trio" /I "..\..\..\..\src\tools\ta_regtest" /I "..\..\..\..\src\ta_common\imatix\sfl" /I "..\..\..\..\src\ta_func" /I "..\..\..\..\src\ta_data\ta_source\ta_readop" /D "_CONSOLE" /D "TA_DEBUG" /D "WIN32" /D "_DEBUG" /D "_MBCS" /FD /GZ /c +# SUBTRACT BASE CPP /Fr /YX +# ADD CPP /nologo /MTd /W3 /WX /Gm /Zi /Od /I "..\..\..\..\src\ta_common" /I "..\..\..\..\include" /I "..\..\..\..\src\ta_common\trio" /I "..\..\..\..\src\tools\ta_regtest" /I "..\..\..\..\src\ta_common\imatix\sfl" /I "..\..\..\..\src\ta_func" /I "..\..\..\..\src\ta_data\ta_source\ta_readop" /I "..\..\..\..\src\ta_common\mt" /D "_CONSOLE" /D "TA_DEBUG" /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "TA_FUNC_NO_RANGE_CHECK" /Fr /FD /GZ /c +# SUBTRACT CPP /YX +# ADD BASE RSC /l 0x409 /d "_DEBUG" +# ADD RSC /l 0x409 /d "_DEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LINK32=link.exe +# ADD BASE LINK32 ta_libc_cmd.lib wininet.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /incremental:no /debug /debugtype:both /machine:I386 /libpath:"..\..\..\..\lib" +# SUBTRACT BASE LINK32 /profile +# ADD LINK32 ta_libc_cmd.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib /nologo /subsystem:console /incremental:no /debug /debugtype:both /machine:I386 /libpath:"..\..\..\..\lib" +# SUBTRACT LINK32 /profile + +!ELSEIF "$(CFG)" == "ta_regtest - Win32 CSD Single Thread Debug" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 1 +# PROP BASE Output_Dir "ta_regtest___Win32_CSD_Single_Thread_Debug" +# PROP BASE Intermediate_Dir "ta_regtest___Win32_CSD_Single_Thread_Debug" +# PROP BASE Ignore_Export_Lib 0 +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 1 +# PROP Output_Dir "..\..\..\..\bin" +# PROP Intermediate_Dir "..\..\..\..\temp\csd\ta_regtest" +# PROP Ignore_Export_Lib 0 +# PROP Target_Dir "" +# ADD BASE CPP /nologo /W3 /Gm /Zi /Od /I "..\..\..\..\src\ta_common" /I "..\..\..\..\include" /I "..\..\..\..\src\ta_common\trio" /I "..\..\..\..\src\tools\ta_regtest" /I "..\..\..\..\src\ta_common\imatix\sfl" /I "..\..\..\..\src\ta_func" /I "..\..\..\..\src\ta_data\ta_source\ta_readop" /D "_CONSOLE" /D "TA_DEBUG" /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "TA_SINGLE_THREAD" /FD /GZ /c +# SUBTRACT BASE CPP /Fr /YX +# ADD CPP /nologo /W3 /WX /Gm /Zi /Od /I "..\..\..\..\src\ta_common" /I "..\..\..\..\include" /I "..\..\..\..\src\ta_common\trio" /I "..\..\..\..\src\tools\ta_regtest" /I "..\..\..\..\src\ta_common\imatix\sfl" /I "..\..\..\..\src\ta_func" /I "..\..\..\..\src\ta_data\ta_source\ta_readop" /I "..\..\..\..\src\ta_common\mt" /D "_CONSOLE" /D "TA_DEBUG" /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "TA_SINGLE_THREAD" /Fr /FD /GZ /c +# SUBTRACT CPP /YX +# ADD BASE RSC /l 0x409 /d "_DEBUG" +# ADD RSC /l 0x409 /d "_DEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LINK32=link.exe +# ADD BASE LINK32 ta_libc_csd.lib wininet.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:console /profile /debug /debugtype:both /machine:I386 /libpath:"..\..\..\..\lib" +# ADD LINK32 ta_libc_csd.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib /nologo /subsystem:console /profile /debug /debugtype:both /machine:I386 /libpath:"..\..\..\..\lib" + +!ELSEIF "$(CFG)" == "ta_regtest - Win32 CSR Single Thread Release" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir "ta_regtest___Win32_CSR_Single_Thread_Release" +# PROP BASE Intermediate_Dir "ta_regtest___Win32_CSR_Single_Thread_Release" +# PROP BASE Ignore_Export_Lib 0 +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir "..\..\..\..\bin" +# PROP Intermediate_Dir "..\..\..\..\temp\csr\ta_regtest" +# PROP Ignore_Export_Lib 0 +# PROP Target_Dir "" +# ADD BASE CPP /nologo /W3 /O2 /I "..\..\..\..\src\ta_common" /I "..\..\..\..\include" /I "..\..\..\..\src\ta_common\trio" /I "..\..\..\..\src\tools\ta_regtest" /I "..\..\..\..\src\ta_common\imatix\sfl" /I "..\..\..\..\src\ta_func" /I "..\..\..\..\src\ta_data\ta_source\ta_readop" /D "_CONSOLE" /D "TA_SINGLE_THREAD" /D "WIN32" /D "NDEBUG" /D "_MBCS" /FD /c +# SUBTRACT BASE CPP /Fr /YX +# ADD CPP /nologo /W3 /WX /O2 /I "..\..\..\..\src\ta_common" /I "..\..\..\..\include" /I "..\..\..\..\src\ta_common\trio" /I "..\..\..\..\src\tools\ta_regtest" /I "..\..\..\..\src\ta_common\imatix\sfl" /I "..\..\..\..\src\ta_func" /I "..\..\..\..\src\ta_data\ta_source\ta_readop" /I "..\..\..\..\src\ta_common\mt" /D "_CONSOLE" /D "TA_SINGLE_THREAD" /D "WIN32" /D "NDEBUG" /D "_MBCS" /FD /c +# SUBTRACT CPP /Fr /YX +# ADD BASE RSC /l 0x409 /d "NDEBUG" +# ADD RSC /l 0x409 /d "NDEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LINK32=link.exe +# ADD BASE LINK32 ta_libc_csr.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wininet.lib /nologo /subsystem:console /machine:I386 /libpath:"..\..\..\..\lib" +# ADD LINK32 ta_libc_csr.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib /nologo /subsystem:console /machine:I386 /libpath:"..\..\..\..\lib" + +!ELSEIF "$(CFG)" == "ta_regtest - Win32 CMR Multithread Release" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir "ta_regtest___Win32_CMR_Multithread_Release0" +# PROP BASE Intermediate_Dir "ta_regtest___Win32_CMR_Multithread_Release0" +# PROP BASE Ignore_Export_Lib 0 +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir "..\..\..\..\bin" +# PROP Intermediate_Dir "..\..\..\..\temp\cmr\ta_regtest" +# PROP Ignore_Export_Lib 0 +# PROP Target_Dir "" +# ADD BASE CPP /nologo /MD /W3 /O1 /I "..\..\..\..\src\ta_common" /I "..\..\..\..\include" /I "..\..\..\..\src\ta_common\trio" /I "..\..\..\..\src\tools\ta_regtest" /I "..\..\..\..\src\ta_common\imatix\sfl" /I "..\..\..\..\src\ta_func" /I "..\..\..\..\src\ta_data\ta_source\ta_readop" /D "_CONSOLE" /D "WIN32" /D "NDEBUG" /D "_MBCS" /FD /c +# SUBTRACT BASE CPP /Fr /YX +# ADD CPP /nologo /MT /W3 /WX /O2 /I "..\..\..\..\src\ta_common" /I "..\..\..\..\include" /I "..\..\..\..\src\ta_common\trio" /I "..\..\..\..\src\tools\ta_regtest" /I "..\..\..\..\src\ta_common\imatix\sfl" /I "..\..\..\..\src\ta_func" /I "..\..\..\..\src\ta_data\ta_source\ta_readop" /I "..\..\..\..\src\ta_common\mt" /D "_CONSOLE" /D "WIN32" /D "NDEBUG" /D "_MBCS" /FD /c +# SUBTRACT CPP /Fr /YX +# ADD BASE RSC /l 0x409 /d "NDEBUG" +# ADD RSC /l 0x409 /d "NDEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LINK32=link.exe +# ADD BASE LINK32 ta_libc_cmr.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wininet.lib /nologo /subsystem:console /machine:I386 /libpath:"..\..\..\..\lib" +# ADD LINK32 ta_libc_cmr.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib /nologo /subsystem:console /machine:I386 /libpath:"..\..\..\..\lib" + +!ELSEIF "$(CFG)" == "ta_regtest - Win32 Profiling" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir "ta_regtest___Win32_Profiling" +# PROP BASE Intermediate_Dir "ta_regtest___Win32_Profiling" +# PROP BASE Ignore_Export_Lib 0 +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir "ta_regtest___Win32_Profiling" +# PROP Intermediate_Dir "ta_regtest___Win32_Profiling" +# PROP Ignore_Export_Lib 0 +# PROP Target_Dir "" +# ADD BASE CPP /nologo /W3 /O2 /I "..\..\..\..\src\ta_common" /I "..\..\..\..\include" /I "..\..\..\..\src\ta_common\trio" /I "..\..\..\..\src\tools\ta_regtest" /I "..\..\..\..\src\ta_common\imatix\sfl" /I "..\..\..\..\src\ta_func" /I "..\..\..\..\src\ta_data\ta_source\ta_readop" /D "_CONSOLE" /D "TA_SINGLE_THREAD" /D "WIN32" /D "NDEBUG" /D "_MBCS" /FD /c +# SUBTRACT BASE CPP /Fr /YX +# ADD CPP /nologo /W3 /WX /O2 /I "..\..\..\..\src\ta_common" /I "..\..\..\..\include" /I "..\..\..\..\src\ta_common\trio" /I "..\..\..\..\src\tools\ta_regtest" /I "..\..\..\..\src\ta_common\imatix\sfl" /I "..\..\..\..\src\ta_func" /I "..\..\..\..\src\ta_data\ta_source\ta_readop" /I "..\..\..\..\src\ta_common\mt" /D "_CONSOLE" /D "TA_SINGLE_THREAD" /D "WIN32" /D "NDEBUG" /D "_MBCS" /FD /c +# SUBTRACT CPP /Fr /YX +# ADD BASE RSC /l 0x409 /d "NDEBUG" +# ADD RSC /l 0x409 /d "NDEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LINK32=link.exe +# ADD BASE LINK32 ta_libc_csr.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib wininet.lib /nologo /subsystem:console /machine:I386 /libpath:"..\..\..\..\lib" +# ADD LINK32 ta_libc_csr.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib /nologo /subsystem:console /profile /machine:I386 /libpath:"..\..\..\..\lib" + +!ENDIF + +# Begin Target + +# Name "ta_regtest - Win32 CMD Multithread Debug" +# Name "ta_regtest - Win32 CSD Single Thread Debug" +# Name "ta_regtest - Win32 CSR Single Thread Release" +# Name "ta_regtest - Win32 CMR Multithread Release" +# Name "ta_regtest - Win32 Profiling" +# Begin Group "Source Files" + +# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat" +# Begin Source File + +SOURCE=..\..\..\..\src\tools\ta_regtest\ta_regtest.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\tools\ta_regtest\ta_test_func\test_1in_1out.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\tools\ta_regtest\ta_test_func\test_1in_2out.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\tools\ta_regtest\test_abstract.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\tools\ta_regtest\ta_test_func\test_adx.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\tools\ta_regtest\ta_test_func\test_bbands.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\tools\ta_regtest\ta_test_func\test_candlestick.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\tools\ta_regtest\test_data.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\tools\ta_regtest\test_internals.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\tools\ta_regtest\ta_test_func\test_ma.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\tools\ta_regtest\ta_test_func\test_macd.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\tools\ta_regtest\ta_test_func\test_minmax.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\tools\ta_regtest\ta_test_func\test_mom.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_ema.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hl.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hlc.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hlcv.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_ohlc.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\tools\ta_regtest\ta_test_func\test_po.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\tools\ta_regtest\ta_test_func\test_rsi.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\tools\ta_regtest\ta_test_func\test_sar.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\tools\ta_regtest\ta_test_func\test_stddev.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\tools\ta_regtest\ta_test_func\test_stoch.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\tools\ta_regtest\ta_test_func\test_trange.c +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\tools\ta_regtest\test_util.c +# End Source File +# End Group +# Begin Group "Header Files" + +# PROP Default_Filter "h;hpp;hxx;hm;inl" +# Begin Source File + +SOURCE=..\..\..\..\src\tools\ta_regtest\ta_error_number.h +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\tools\ta_regtest\ta_test_func.h +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\tools\ta_regtest\ta_test_priv.h +# End Source File +# Begin Source File + +SOURCE=..\..\..\..\src\tools\ta_regtest\test_period.h +# End Source File +# End Group +# End Target +# End Project diff --git a/ide/vs2005/lib_proj/gen_code/gen_code.vcproj b/ide/vs2005/lib_proj/gen_code/gen_code.vcproj new file mode 100644 index 000000000..5054226d2 --- /dev/null +++ b/ide/vs2005/lib_proj/gen_code/gen_code.vcproj @@ -0,0 +1,2168 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ide/vs2005/lib_proj/ta_abstract/ta_abstract.vcproj b/ide/vs2005/lib_proj/ta_abstract/ta_abstract.vcproj new file mode 100644 index 000000000..a62a63884 --- /dev/null +++ b/ide/vs2005/lib_proj/ta_abstract/ta_abstract.vcproj @@ -0,0 +1,2136 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ide/vs2005/lib_proj/ta_common/ta_common.vcproj b/ide/vs2005/lib_proj/ta_common/ta_common.vcproj new file mode 100644 index 000000000..dfd97ede3 --- /dev/null +++ b/ide/vs2005/lib_proj/ta_common/ta_common.vcproj @@ -0,0 +1,555 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ide/vs2005/lib_proj/ta_func/ta_func.vcproj b/ide/vs2005/lib_proj/ta_func/ta_func.vcproj new file mode 100644 index 000000000..33d9e1a23 --- /dev/null +++ b/ide/vs2005/lib_proj/ta_func/ta_func.vcproj @@ -0,0 +1,1011 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ide/vs2005/lib_proj/ta_lib.sln b/ide/vs2005/lib_proj/ta_lib.sln new file mode 100644 index 000000000..e54f0b9cc --- /dev/null +++ b/ide/vs2005/lib_proj/ta_lib.sln @@ -0,0 +1,105 @@ + +Microsoft Visual Studio Solution File, Format Version 9.00 +# Visual Studio 2005 +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ta_common", "ta_common\ta_common.vcproj", "{E3AB3A1B-0D33-4A51-A4F7-69EE5C079115}" +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ta_func", "ta_func\ta_func.vcproj", "{B9DBB4A6-C675-4486-B916-0B0DCC049BB2}" + ProjectSection(ProjectDependencies) = postProject + {E3AB3A1B-0D33-4A51-A4F7-69EE5C079115} = {E3AB3A1B-0D33-4A51-A4F7-69EE5C079115} + EndProjectSection +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ta_abstract", "ta_abstract\ta_abstract.vcproj", "{FDE2592B-DF64-4308-B644-92E79E071986}" + ProjectSection(ProjectDependencies) = postProject + {E3AB3A1B-0D33-4A51-A4F7-69EE5C079115} = {E3AB3A1B-0D33-4A51-A4F7-69EE5C079115} + EndProjectSection +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ta_libc", "ta_libc\ta_libc.vcproj", "{B7BA9CEF-8430-4BCB-8EEE-5C351800A021}" + ProjectSection(ProjectDependencies) = postProject + {B9DBB4A6-C675-4486-B916-0B0DCC049BB2} = {B9DBB4A6-C675-4486-B916-0B0DCC049BB2} + {FDE2592B-DF64-4308-B644-92E79E071986} = {FDE2592B-DF64-4308-B644-92E79E071986} + {E3AB3A1B-0D33-4A51-A4F7-69EE5C079115} = {E3AB3A1B-0D33-4A51-A4F7-69EE5C079115} + EndProjectSection +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "gen_code", "gen_code\gen_code.vcproj", "{79D18ABF-C93A-441A-A22B-D58813BB2701}" + ProjectSection(ProjectDependencies) = postProject + {E3AB3A1B-0D33-4A51-A4F7-69EE5C079115} = {E3AB3A1B-0D33-4A51-A4F7-69EE5C079115} + EndProjectSection +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ta_regtest", "ta_regtest\ta_regtest.vcproj", "{271698C6-3436-4D9B-87DB-F865325B00C5}" + ProjectSection(ProjectDependencies) = postProject + {B7BA9CEF-8430-4BCB-8EEE-5C351800A021} = {B7BA9CEF-8430-4BCB-8EEE-5C351800A021} + {79D18ABF-C93A-441A-A22B-D58813BB2701} = {79D18ABF-C93A-441A-A22B-D58813BB2701} + {B9DBB4A6-C675-4486-B916-0B0DCC049BB2} = {B9DBB4A6-C675-4486-B916-0B0DCC049BB2} + {FDE2592B-DF64-4308-B644-92E79E071986} = {FDE2592B-DF64-4308-B644-92E79E071986} + {E3AB3A1B-0D33-4A51-A4F7-69EE5C079115} = {E3AB3A1B-0D33-4A51-A4F7-69EE5C079115} + EndProjectSection +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "documents", "documents", "{5122530F-6A6C-4236-99D0-3E46644C2E49}" + ProjectSection(SolutionItems) = preProject + ..\..\..\..\CHANGELOG.TXT = ..\..\..\..\CHANGELOG.TXT + ..\..\..\..\HISTORY.TXT = ..\..\..\..\HISTORY.TXT + ..\..\..\..\LICENSE.TXT = ..\..\..\..\LICENSE.TXT + ..\..\..\..\README.TXT = ..\..\..\..\README.TXT + EndProjectSection +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + cdd|Win32 = cdd|Win32 + cdr|Win32 = cdr|Win32 + cmd|Win32 = cmd|Win32 + cmr|Win32 = cmr|Win32 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {E3AB3A1B-0D33-4A51-A4F7-69EE5C079115}.cdd|Win32.ActiveCfg = cdd|Win32 + {E3AB3A1B-0D33-4A51-A4F7-69EE5C079115}.cdd|Win32.Build.0 = cdd|Win32 + {E3AB3A1B-0D33-4A51-A4F7-69EE5C079115}.cdr|Win32.ActiveCfg = cdr|Win32 + {E3AB3A1B-0D33-4A51-A4F7-69EE5C079115}.cdr|Win32.Build.0 = cdr|Win32 + {E3AB3A1B-0D33-4A51-A4F7-69EE5C079115}.cmd|Win32.ActiveCfg = cmd|Win32 + {E3AB3A1B-0D33-4A51-A4F7-69EE5C079115}.cmd|Win32.Build.0 = cmd|Win32 + {E3AB3A1B-0D33-4A51-A4F7-69EE5C079115}.cmr|Win32.ActiveCfg = cmr|Win32 + {E3AB3A1B-0D33-4A51-A4F7-69EE5C079115}.cmr|Win32.Build.0 = cmr|Win32 + {B9DBB4A6-C675-4486-B916-0B0DCC049BB2}.cdd|Win32.ActiveCfg = cdd|Win32 + {B9DBB4A6-C675-4486-B916-0B0DCC049BB2}.cdd|Win32.Build.0 = cdd|Win32 + {B9DBB4A6-C675-4486-B916-0B0DCC049BB2}.cdr|Win32.ActiveCfg = cdr|Win32 + {B9DBB4A6-C675-4486-B916-0B0DCC049BB2}.cdr|Win32.Build.0 = cdr|Win32 + {B9DBB4A6-C675-4486-B916-0B0DCC049BB2}.cmd|Win32.ActiveCfg = cmd|Win32 + {B9DBB4A6-C675-4486-B916-0B0DCC049BB2}.cmd|Win32.Build.0 = cmd|Win32 + {B9DBB4A6-C675-4486-B916-0B0DCC049BB2}.cmr|Win32.ActiveCfg = cmr|Win32 + {B9DBB4A6-C675-4486-B916-0B0DCC049BB2}.cmr|Win32.Build.0 = cmr|Win32 + {FDE2592B-DF64-4308-B644-92E79E071986}.cdd|Win32.ActiveCfg = cdd|Win32 + {FDE2592B-DF64-4308-B644-92E79E071986}.cdd|Win32.Build.0 = cdd|Win32 + {FDE2592B-DF64-4308-B644-92E79E071986}.cdr|Win32.ActiveCfg = cdr|Win32 + {FDE2592B-DF64-4308-B644-92E79E071986}.cdr|Win32.Build.0 = cdr|Win32 + {FDE2592B-DF64-4308-B644-92E79E071986}.cmd|Win32.ActiveCfg = cmd|Win32 + {FDE2592B-DF64-4308-B644-92E79E071986}.cmd|Win32.Build.0 = cmd|Win32 + {FDE2592B-DF64-4308-B644-92E79E071986}.cmr|Win32.ActiveCfg = cmr|Win32 + {FDE2592B-DF64-4308-B644-92E79E071986}.cmr|Win32.Build.0 = cmr|Win32 + {B7BA9CEF-8430-4BCB-8EEE-5C351800A021}.cdd|Win32.ActiveCfg = cdd|Win32 + {B7BA9CEF-8430-4BCB-8EEE-5C351800A021}.cdd|Win32.Build.0 = cdd|Win32 + {B7BA9CEF-8430-4BCB-8EEE-5C351800A021}.cdr|Win32.ActiveCfg = cdr|Win32 + {B7BA9CEF-8430-4BCB-8EEE-5C351800A021}.cdr|Win32.Build.0 = cdr|Win32 + {B7BA9CEF-8430-4BCB-8EEE-5C351800A021}.cmd|Win32.ActiveCfg = cmd|Win32 + {B7BA9CEF-8430-4BCB-8EEE-5C351800A021}.cmd|Win32.Build.0 = cmd|Win32 + {B7BA9CEF-8430-4BCB-8EEE-5C351800A021}.cmr|Win32.ActiveCfg = cmr|Win32 + {B7BA9CEF-8430-4BCB-8EEE-5C351800A021}.cmr|Win32.Build.0 = cmr|Win32 + {79D18ABF-C93A-441A-A22B-D58813BB2701}.cdd|Win32.ActiveCfg = cdd|Win32 + {79D18ABF-C93A-441A-A22B-D58813BB2701}.cdd|Win32.Build.0 = cdd|Win32 + {79D18ABF-C93A-441A-A22B-D58813BB2701}.cdr|Win32.ActiveCfg = cdr|Win32 + {79D18ABF-C93A-441A-A22B-D58813BB2701}.cdr|Win32.Build.0 = cdr|Win32 + {79D18ABF-C93A-441A-A22B-D58813BB2701}.cmd|Win32.ActiveCfg = cmd|Win32 + {79D18ABF-C93A-441A-A22B-D58813BB2701}.cmd|Win32.Build.0 = cmd|Win32 + {79D18ABF-C93A-441A-A22B-D58813BB2701}.cmr|Win32.ActiveCfg = cmr|Win32 + {79D18ABF-C93A-441A-A22B-D58813BB2701}.cmr|Win32.Build.0 = cmr|Win32 + {271698C6-3436-4D9B-87DB-F865325B00C5}.cdd|Win32.ActiveCfg = cdd|Win32 + {271698C6-3436-4D9B-87DB-F865325B00C5}.cdd|Win32.Build.0 = cdd|Win32 + {271698C6-3436-4D9B-87DB-F865325B00C5}.cdr|Win32.ActiveCfg = cdr|Win32 + {271698C6-3436-4D9B-87DB-F865325B00C5}.cdr|Win32.Build.0 = cdr|Win32 + {271698C6-3436-4D9B-87DB-F865325B00C5}.cmd|Win32.ActiveCfg = cmd|Win32 + {271698C6-3436-4D9B-87DB-F865325B00C5}.cmd|Win32.Build.0 = cmd|Win32 + {271698C6-3436-4D9B-87DB-F865325B00C5}.cmr|Win32.ActiveCfg = cmr|Win32 + {271698C6-3436-4D9B-87DB-F865325B00C5}.cmr|Win32.Build.0 = cmr|Win32 + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/ide/vs2005/lib_proj/ta_libc/ta_libc.vcproj b/ide/vs2005/lib_proj/ta_libc/ta_libc.vcproj new file mode 100644 index 000000000..2ad5e64d4 --- /dev/null +++ b/ide/vs2005/lib_proj/ta_libc/ta_libc.vcproj @@ -0,0 +1,145 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ide/vs2005/lib_proj/ta_regtest/ta_regtest.vcproj b/ide/vs2005/lib_proj/ta_regtest/ta_regtest.vcproj new file mode 100644 index 000000000..6aefe67d9 --- /dev/null +++ b/ide/vs2005/lib_proj/ta_regtest/ta_regtest.vcproj @@ -0,0 +1,1937 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ide/xcode/TALib/.DS_Store b/ide/xcode/TALib/.DS_Store new file mode 100644 index 0000000000000000000000000000000000000000..6564db4d38e8bb4d2df81467d443248b32fd82fe GIT binary patch literal 6148 zcmeHK!A=4(5Pd~7s3CIH+kOFwf3P4NNHh|~#2dnbum)L!Vm$8e@OK`);hVOSU66|h zW6Vr4eQkGM+j%9l1z_s)!6{GyP@)SK_E~&m@?Ctx3cg1^8au`yjz&p;lJqxXwc~Fp zAbYoqKIVuqL3aPXw!FxQGMboT#E2Nr7^BMC6J|*8(3&KX-*Nd7E$JsqYpekWXpwo( z$SN6*|B~mJ#TsW1kLYoxDLGL-7B`ITWyY`IifgN(feT_6w>ZNkTTOC1Y<1T7ZSp@d z{3AxyaL(EKWV|8bN(UHj$?koPUCFS!Xj73PbB#HUWE)|epWSAfU40p^WXz~(%y}i> zEgIRp7nyZ)A!@3CDxeDdSOK2dVx>ceTB-u7fGV(3K>i;Bx?t!rb!h)OSlA~3Q7(zr zSeI*{Z~~8^$J8Oe(2S!J9o6_JhH-TE2R<(Jm^yTH82|V%erDsZtH#dG@dFzU6FSsV z6;K883hcOMMb7``_V<6Dq%BoI75G;Qm}29)QD;j2Y~4ss&f0)}M;DX0)ZvQ4iam-M fD@XA$-5UD?sSrbtsYCYA^dewo&_WgXRRul)yD)sP literal 0 HcmV?d00001 diff --git a/ide/xcode/TALib/English.lproj/InfoPlist.strings b/ide/xcode/TALib/English.lproj/InfoPlist.strings new file mode 100644 index 0000000000000000000000000000000000000000..a18c7c02ed4256df307aabe5718248f8305f040b GIT binary patch literal 364 zcmZvYOAo2^O`k8d zRFk8rjJ8_qs8|n$3h3R)iBdX7XRZUGMpDLq!Kz+BW8lEL$EKeg{Q3vQk z&GA2x9St~TEj46rtPOR)K)=wQDGBbYKavHVgm-7{eqJs#ZF`EnCOBk2@*; + + + + CFBundleDevelopmentRegion + English + CFBundleExecutable + TALib + CFBundleIconFile + + CFBundleIdentifier + org.ta-lib.ta-lib + CFBundleInfoDictionaryVersion + 6.0 + CFBundlePackageType + FMWK + CFBundleSignature + ???? + CFBundleVersion + 1.0 + CSResourcesFileMapped + + + diff --git a/ide/xcode/TALib/README_XCODE.TXT b/ide/xcode/TALib/README_XCODE.TXT new file mode 100644 index 000000000..ac115d10f --- /dev/null +++ b/ide/xcode/TALib/README_XCODE.TXT @@ -0,0 +1,37 @@ +* Information for Xcode Developers on Mac OS X * +* by Drew McCormack * + +What does this Xcode project build? +=================================== +This Xcode project builds a Mac OS X framework of the TA-LIB functions. +The native Xcode build system is used, rather than the make utility used +on other UNIX systems. The framework build is single-threaded. + +Where does the framework get built? +=================================== +Upon completion of a successful build, the framework TALib.framework +should appear in the 'build' directory inside the TALib.xcode project +directory, or in your default Xcode build directory. + +Where should the framework be installed for use in an application? +================================================================== +The Xcode project is setup such that the TALib.framework file should be +installed in the 'Frameworks' directory inside your application bundle. (You +can copy the TALib.framework to that directory by adding a 'Copy Phase' +to your application's target. See Xcode documentation for details.) + +If you wish to change the install path of the framework, to /Library/Frameworks +for example, you can simply double click on the TALib target in Xcode, +select the 'Build' tab, and change the 'Installation Directory' setting +appropriately. + +What frameworks/libraries does the TALib framework use? +======================================================= +The TALib framework requires libbz2 and libcurl. Both of these +libraries are preinstalled in Mac OS X 10.3 and 10.4. You can either use the +versions installed with Mac OS X, or include your own versions. + +Is the TALib framework for Cocoa or Carbon applications? +======================================================== +TALib is a C library, so it can be called from Cocoa or Carbon. There are +no restrictions in this regard. diff --git a/ide/xcode/TALib/TALib.xcodeproj/project.pbxproj b/ide/xcode/TALib/TALib.xcodeproj/project.pbxproj new file mode 100644 index 000000000..42613b7ed --- /dev/null +++ b/ide/xcode/TALib/TALib.xcodeproj/project.pbxproj @@ -0,0 +1,1452 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 42; + objects = { + +/* Begin PBXBuildFile section */ + 3A1B2BC609E909F2000A8E98 /* ta_SUM.c in Sources */ = {isa = PBXBuildFile; fileRef = 3A1B2BC509E909F2000A8E98 /* ta_SUM.c */; }; + 3A2E9574082A714D00778A6E /* libcurl.3.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 3A2E9573082A714D00778A6E /* libcurl.3.dylib */; }; + 3A3370FE097E1DDC00082D6C /* ta_BOP.c in Sources */ = {isa = PBXBuildFile; fileRef = 3A3370F9097E1DDC00082D6C /* ta_BOP.c */; }; + 3A3370FF097E1DDC00082D6C /* ta_CDLHIKKAKE.c in Sources */ = {isa = PBXBuildFile; fileRef = 3A3370FA097E1DDC00082D6C /* ta_CDLHIKKAKE.c */; }; + 3A337100097E1DDC00082D6C /* ta_CDLHIKKAKEMOD.c in Sources */ = {isa = PBXBuildFile; fileRef = 3A3370FB097E1DDC00082D6C /* ta_CDLHIKKAKEMOD.c */; }; + 3A337101097E1DDC00082D6C /* ta_CMO.c in Sources */ = {isa = PBXBuildFile; fileRef = 3A3370FC097E1DDC00082D6C /* ta_CMO.c */; }; + 3A337102097E1DDC00082D6C /* ta_ULTOSC.c in Sources */ = {isa = PBXBuildFile; fileRef = 3A3370FD097E1DDC00082D6C /* ta_ULTOSC.c */; }; + 3A35CD900735FAC1001993D0 /* ta_CDLDOJISTAR.c in Sources */ = {isa = PBXBuildFile; fileRef = 3A35CD8A0735FAC1001993D0 /* ta_CDLDOJISTAR.c */; }; + 3A35CD910735FAC1001993D0 /* ta_CDLEVENINGDOJISTAR.c in Sources */ = {isa = PBXBuildFile; fileRef = 3A35CD8B0735FAC1001993D0 /* ta_CDLEVENINGDOJISTAR.c */; }; + 3A35CD920735FAC1001993D0 /* ta_CDLEVENINGSTAR.c in Sources */ = {isa = PBXBuildFile; fileRef = 3A35CD8C0735FAC1001993D0 /* ta_CDLEVENINGSTAR.c */; }; + 3A35CD930735FAC1001993D0 /* ta_CDLMORNINGDOJISTAR.c in Sources */ = {isa = PBXBuildFile; fileRef = 3A35CD8D0735FAC1001993D0 /* ta_CDLMORNINGDOJISTAR.c */; }; + 3A35CD940735FAC1001993D0 /* ta_CDLMORNINGSTAR.c in Sources */ = {isa = PBXBuildFile; fileRef = 3A35CD8E0735FAC1001993D0 /* ta_CDLMORNINGSTAR.c */; }; + 3A35CD950735FAC1001993D0 /* ta_CDLTRISTAR.c in Sources */ = {isa = PBXBuildFile; fileRef = 3A35CD8F0735FAC1001993D0 /* ta_CDLTRISTAR.c */; }; + 3A48BC5605E25FE500B42EE0 /* ta_abstract.h in Headers */ = {isa = PBXBuildFile; fileRef = 3A48B5E005E25FDC00B42EE0 /* ta_abstract.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 3A48BC5705E25FE500B42EE0 /* ta_common.h in Headers */ = {isa = PBXBuildFile; fileRef = 3A48B5E105E25FDC00B42EE0 /* ta_common.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 3A48BC5905E25FE500B42EE0 /* ta_defs.h in Headers */ = {isa = PBXBuildFile; fileRef = 3A48B5E305E25FDC00B42EE0 /* ta_defs.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 3A48BC5A05E25FE500B42EE0 /* ta_func.h in Headers */ = {isa = PBXBuildFile; fileRef = 3A48B5E405E25FDC00B42EE0 /* ta_func.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 3A48BC5B05E25FE500B42EE0 /* ta_libc.h in Headers */ = {isa = PBXBuildFile; fileRef = 3A48B5E505E25FDC00B42EE0 /* ta_libc.h */; settings = {ATTRIBUTES = (Public, ); }; }; + 3A48BF2005E25FE600B42EE0 /* ta_global.c in Sources */ = {isa = PBXBuildFile; fileRef = 3A48BA7A05E25FE200B42EE0 /* ta_global.c */; }; + 3A48BF2105E25FE600B42EE0 /* ta_global.h in Headers */ = {isa = PBXBuildFile; fileRef = 3A48BA7B05E25FE200B42EE0 /* ta_global.h */; }; + 3A48BF2405E25FE600B42EE0 /* ta_magic_nb.h in Headers */ = {isa = PBXBuildFile; fileRef = 3A48BA7E05E25FE200B42EE0 /* ta_magic_nb.h */; }; + 3A48BF2605E25FE600B42EE0 /* ta_memory.h in Headers */ = {isa = PBXBuildFile; fileRef = 3A48BA8005E25FE200B42EE0 /* ta_memory.h */; }; + 3A48BF2905E25FE600B42EE0 /* ta_retcode.c in Sources */ = {isa = PBXBuildFile; fileRef = 3A48BA8305E25FE200B42EE0 /* ta_retcode.c */; }; + 3A48BF2A05E25FE600B42EE0 /* ta_retcode.csv in Resources */ = {isa = PBXBuildFile; fileRef = 3A48BA8405E25FE200B42EE0 /* ta_retcode.csv */; }; + 3A48BF3405E25FE600B42EE0 /* ta_version.c in Sources */ = {isa = PBXBuildFile; fileRef = 3A48BA8E05E25FE200B42EE0 /* ta_version.c */; }; + 3A48BF8105E25FE600B42EE0 /* ta_AD.c in Sources */ = {isa = PBXBuildFile; fileRef = 3A48BAE805E25FE300B42EE0 /* ta_AD.c */; }; + 3A48BF8205E25FE600B42EE0 /* ta_ADOSC.c in Sources */ = {isa = PBXBuildFile; fileRef = 3A48BAE905E25FE300B42EE0 /* ta_ADOSC.c */; }; + 3A48BF8305E25FE600B42EE0 /* ta_ADX.c in Sources */ = {isa = PBXBuildFile; fileRef = 3A48BAEA05E25FE300B42EE0 /* ta_ADX.c */; }; + 3A48BF8405E25FE600B42EE0 /* ta_ADXR.c in Sources */ = {isa = PBXBuildFile; fileRef = 3A48BAEB05E25FE300B42EE0 /* ta_ADXR.c */; }; + 3A48BF8505E25FE600B42EE0 /* ta_APO.c in Sources */ = {isa = PBXBuildFile; fileRef = 3A48BAEC05E25FE300B42EE0 /* ta_APO.c */; }; + 3A48BF8605E25FE600B42EE0 /* ta_AROON.c in Sources */ = {isa = PBXBuildFile; fileRef = 3A48BAED05E25FE300B42EE0 /* ta_AROON.c */; }; + 3A48BF8705E25FE600B42EE0 /* ta_AROONOSC.c in Sources */ = {isa = PBXBuildFile; fileRef = 3A48BAEE05E25FE300B42EE0 /* ta_AROONOSC.c */; }; + 3A48BF8805E25FE600B42EE0 /* ta_ATR.c in Sources */ = {isa = PBXBuildFile; fileRef = 3A48BAEF05E25FE300B42EE0 /* ta_ATR.c */; }; + 3A48BF8905E25FE600B42EE0 /* ta_AVGPRICE.c in Sources */ = {isa = PBXBuildFile; fileRef = 3A48BAF005E25FE300B42EE0 /* ta_AVGPRICE.c */; }; + 3A48BF8A05E25FE600B42EE0 /* ta_BBANDS.c in Sources */ = {isa = PBXBuildFile; fileRef = 3A48BAF105E25FE300B42EE0 /* ta_BBANDS.c */; }; + 3A48BF8B05E25FE600B42EE0 /* ta_CCI.c in Sources */ = {isa = PBXBuildFile; fileRef = 3A48BAF205E25FE300B42EE0 /* ta_CCI.c */; }; + 3A48BF8C05E25FE600B42EE0 /* ta_CORREL.c in Sources */ = {isa = PBXBuildFile; fileRef = 3A48BAF305E25FE300B42EE0 /* ta_CORREL.c */; }; + 3A48BF8D05E25FE600B42EE0 /* ta_DEMA.c in Sources */ = {isa = PBXBuildFile; fileRef = 3A48BAF405E25FE300B42EE0 /* ta_DEMA.c */; }; + 3A48BF8E05E25FE600B42EE0 /* ta_DX.c in Sources */ = {isa = PBXBuildFile; fileRef = 3A48BAF505E25FE300B42EE0 /* ta_DX.c */; }; + 3A48BF8F05E25FE600B42EE0 /* ta_EMA.c in Sources */ = {isa = PBXBuildFile; fileRef = 3A48BAF605E25FE300B42EE0 /* ta_EMA.c */; }; + 3A48BF9005E25FE600B42EE0 /* ta_HT_DCPERIOD.c in Sources */ = {isa = PBXBuildFile; fileRef = 3A48BAF705E25FE300B42EE0 /* ta_HT_DCPERIOD.c */; }; + 3A48BF9105E25FE600B42EE0 /* ta_HT_DCPHASE.c in Sources */ = {isa = PBXBuildFile; fileRef = 3A48BAF805E25FE300B42EE0 /* ta_HT_DCPHASE.c */; }; + 3A48BF9205E25FE600B42EE0 /* ta_HT_PHASOR.c in Sources */ = {isa = PBXBuildFile; fileRef = 3A48BAF905E25FE300B42EE0 /* ta_HT_PHASOR.c */; }; + 3A48BF9305E25FE600B42EE0 /* ta_HT_SINE.c in Sources */ = {isa = PBXBuildFile; fileRef = 3A48BAFA05E25FE300B42EE0 /* ta_HT_SINE.c */; }; + 3A48BF9405E25FE600B42EE0 /* ta_HT_TRENDLINE.c in Sources */ = {isa = PBXBuildFile; fileRef = 3A48BAFB05E25FE300B42EE0 /* ta_HT_TRENDLINE.c */; }; + 3A48BF9505E25FE600B42EE0 /* ta_HT_TRENDMODE.c in Sources */ = {isa = PBXBuildFile; fileRef = 3A48BAFC05E25FE300B42EE0 /* ta_HT_TRENDMODE.c */; }; + 3A48BF9605E25FE600B42EE0 /* ta_KAMA.c in Sources */ = {isa = PBXBuildFile; fileRef = 3A48BAFD05E25FE300B42EE0 /* ta_KAMA.c */; }; + 3A48BF9705E25FE600B42EE0 /* ta_LINEARREG.c in Sources */ = {isa = PBXBuildFile; fileRef = 3A48BAFE05E25FE300B42EE0 /* ta_LINEARREG.c */; }; + 3A48BF9805E25FE600B42EE0 /* ta_LINEARREG_ANGLE.c in Sources */ = {isa = PBXBuildFile; fileRef = 3A48BAFF05E25FE300B42EE0 /* ta_LINEARREG_ANGLE.c */; }; + 3A48BF9905E25FE600B42EE0 /* ta_LINEARREG_INTERCEPT.c in Sources */ = {isa = PBXBuildFile; fileRef = 3A48BB0005E25FE300B42EE0 /* ta_LINEARREG_INTERCEPT.c */; }; + 3A48BF9A05E25FE600B42EE0 /* ta_LINEARREG_SLOPE.c in Sources */ = {isa = PBXBuildFile; fileRef = 3A48BB0105E25FE300B42EE0 /* ta_LINEARREG_SLOPE.c */; }; + 3A48BF9B05E25FE600B42EE0 /* ta_MA.c in Sources */ = {isa = PBXBuildFile; fileRef = 3A48BB0205E25FE300B42EE0 /* ta_MA.c */; }; + 3A48BF9C05E25FE600B42EE0 /* ta_MACD.c in Sources */ = {isa = PBXBuildFile; fileRef = 3A48BB0305E25FE300B42EE0 /* ta_MACD.c */; }; + 3A48BF9D05E25FE600B42EE0 /* ta_MACDEXT.c in Sources */ = {isa = PBXBuildFile; fileRef = 3A48BB0405E25FE300B42EE0 /* ta_MACDEXT.c */; }; + 3A48BF9E05E25FE600B42EE0 /* ta_MACDFIX.c in Sources */ = {isa = PBXBuildFile; fileRef = 3A48BB0505E25FE300B42EE0 /* ta_MACDFIX.c */; }; + 3A48BF9F05E25FE600B42EE0 /* ta_MAMA.c in Sources */ = {isa = PBXBuildFile; fileRef = 3A48BB0605E25FE300B42EE0 /* ta_MAMA.c */; }; + 3A48BFA005E25FE600B42EE0 /* ta_MAX.c in Sources */ = {isa = PBXBuildFile; fileRef = 3A48BB0705E25FE300B42EE0 /* ta_MAX.c */; }; + 3A48BFA105E25FE600B42EE0 /* ta_MEDPRICE.c in Sources */ = {isa = PBXBuildFile; fileRef = 3A48BB0805E25FE300B42EE0 /* ta_MEDPRICE.c */; }; + 3A48BFA205E25FE600B42EE0 /* ta_MFI.c in Sources */ = {isa = PBXBuildFile; fileRef = 3A48BB0905E25FE300B42EE0 /* ta_MFI.c */; }; + 3A48BFA305E25FE600B42EE0 /* ta_MIDPOINT.c in Sources */ = {isa = PBXBuildFile; fileRef = 3A48BB0A05E25FE300B42EE0 /* ta_MIDPOINT.c */; }; + 3A48BFA405E25FE600B42EE0 /* ta_MIDPRICE.c in Sources */ = {isa = PBXBuildFile; fileRef = 3A48BB0B05E25FE300B42EE0 /* ta_MIDPRICE.c */; }; + 3A48BFA505E25FE600B42EE0 /* ta_MIN.c in Sources */ = {isa = PBXBuildFile; fileRef = 3A48BB0C05E25FE300B42EE0 /* ta_MIN.c */; }; + 3A48BFA605E25FE600B42EE0 /* ta_MINUS_DI.c in Sources */ = {isa = PBXBuildFile; fileRef = 3A48BB0D05E25FE300B42EE0 /* ta_MINUS_DI.c */; }; + 3A48BFA705E25FE600B42EE0 /* ta_MINUS_DM.c in Sources */ = {isa = PBXBuildFile; fileRef = 3A48BB0E05E25FE300B42EE0 /* ta_MINUS_DM.c */; }; + 3A48BFA805E25FE600B42EE0 /* ta_MOM.c in Sources */ = {isa = PBXBuildFile; fileRef = 3A48BB0F05E25FE300B42EE0 /* ta_MOM.c */; }; + 3A48BFA905E25FE600B42EE0 /* ta_NVI.c in Sources */ = {isa = PBXBuildFile; fileRef = 3A48BB1005E25FE300B42EE0 /* ta_NVI.c */; }; + 3A48BFAA05E25FE600B42EE0 /* ta_OBV.c in Sources */ = {isa = PBXBuildFile; fileRef = 3A48BB1105E25FE300B42EE0 /* ta_OBV.c */; }; + 3A48BFAB05E25FE600B42EE0 /* ta_PLUS_DI.c in Sources */ = {isa = PBXBuildFile; fileRef = 3A48BB1205E25FE300B42EE0 /* ta_PLUS_DI.c */; }; + 3A48BFAC05E25FE600B42EE0 /* ta_PLUS_DM.c in Sources */ = {isa = PBXBuildFile; fileRef = 3A48BB1305E25FE300B42EE0 /* ta_PLUS_DM.c */; }; + 3A48BFAD05E25FE600B42EE0 /* ta_PPO.c in Sources */ = {isa = PBXBuildFile; fileRef = 3A48BB1405E25FE300B42EE0 /* ta_PPO.c */; }; + 3A48BFAE05E25FE600B42EE0 /* ta_PVI.c in Sources */ = {isa = PBXBuildFile; fileRef = 3A48BB1505E25FE300B42EE0 /* ta_PVI.c */; }; + 3A48BFAF05E25FE600B42EE0 /* ta_ROC.c in Sources */ = {isa = PBXBuildFile; fileRef = 3A48BB1605E25FE300B42EE0 /* ta_ROC.c */; }; + 3A48BFB005E25FE600B42EE0 /* ta_ROCP.c in Sources */ = {isa = PBXBuildFile; fileRef = 3A48BB1705E25FE300B42EE0 /* ta_ROCP.c */; }; + 3A48BFB105E25FE600B42EE0 /* ta_ROCR.c in Sources */ = {isa = PBXBuildFile; fileRef = 3A48BB1805E25FE300B42EE0 /* ta_ROCR.c */; }; + 3A48BFB205E25FE600B42EE0 /* ta_ROCR100.c in Sources */ = {isa = PBXBuildFile; fileRef = 3A48BB1905E25FE300B42EE0 /* ta_ROCR100.c */; }; + 3A48BFB305E25FE600B42EE0 /* ta_RSI.c in Sources */ = {isa = PBXBuildFile; fileRef = 3A48BB1A05E25FE300B42EE0 /* ta_RSI.c */; }; + 3A48BFB405E25FE600B42EE0 /* ta_SAR.c in Sources */ = {isa = PBXBuildFile; fileRef = 3A48BB1B05E25FE300B42EE0 /* ta_SAR.c */; }; + 3A48BFB505E25FE600B42EE0 /* ta_SAREXT.c in Sources */ = {isa = PBXBuildFile; fileRef = 3A48BB1C05E25FE300B42EE0 /* ta_SAREXT.c */; }; + 3A48BFB605E25FE600B42EE0 /* ta_SMA.c in Sources */ = {isa = PBXBuildFile; fileRef = 3A48BB1D05E25FE300B42EE0 /* ta_SMA.c */; }; + 3A48BFB705E25FE600B42EE0 /* ta_STDDEV.c in Sources */ = {isa = PBXBuildFile; fileRef = 3A48BB1E05E25FE300B42EE0 /* ta_STDDEV.c */; }; + 3A48BFB805E25FE600B42EE0 /* ta_STOCH.c in Sources */ = {isa = PBXBuildFile; fileRef = 3A48BB1F05E25FE300B42EE0 /* ta_STOCH.c */; }; + 3A48BFB905E25FE600B42EE0 /* ta_STOCHF.c in Sources */ = {isa = PBXBuildFile; fileRef = 3A48BB2005E25FE300B42EE0 /* ta_STOCHF.c */; }; + 3A48BFBA05E25FE600B42EE0 /* ta_STOCHRSI.c in Sources */ = {isa = PBXBuildFile; fileRef = 3A48BB2105E25FE300B42EE0 /* ta_STOCHRSI.c */; }; + 3A48BFBB05E25FE600B42EE0 /* ta_T3.c in Sources */ = {isa = PBXBuildFile; fileRef = 3A48BB2205E25FE300B42EE0 /* ta_T3.c */; }; + 3A48BFBC05E25FE600B42EE0 /* ta_TEMA.c in Sources */ = {isa = PBXBuildFile; fileRef = 3A48BB2305E25FE300B42EE0 /* ta_TEMA.c */; }; + 3A48BFBD05E25FE600B42EE0 /* ta_TRANGE.c in Sources */ = {isa = PBXBuildFile; fileRef = 3A48BB2405E25FE300B42EE0 /* ta_TRANGE.c */; }; + 3A48BFBE05E25FE600B42EE0 /* ta_TRIMA.c in Sources */ = {isa = PBXBuildFile; fileRef = 3A48BB2505E25FE300B42EE0 /* ta_TRIMA.c */; }; + 3A48BFBF05E25FE600B42EE0 /* ta_TRIX.c in Sources */ = {isa = PBXBuildFile; fileRef = 3A48BB2605E25FE300B42EE0 /* ta_TRIX.c */; }; + 3A48BFC005E25FE600B42EE0 /* ta_TSF.c in Sources */ = {isa = PBXBuildFile; fileRef = 3A48BB2705E25FE300B42EE0 /* ta_TSF.c */; }; + 3A48BFC105E25FE600B42EE0 /* ta_TYPPRICE.c in Sources */ = {isa = PBXBuildFile; fileRef = 3A48BB2805E25FE300B42EE0 /* ta_TYPPRICE.c */; }; + 3A48BFC205E25FE600B42EE0 /* ta_utility.c in Sources */ = {isa = PBXBuildFile; fileRef = 3A48BB2905E25FE300B42EE0 /* ta_utility.c */; }; + 3A48BFC305E25FE600B42EE0 /* ta_utility.h in Headers */ = {isa = PBXBuildFile; fileRef = 3A48BB2A05E25FE300B42EE0 /* ta_utility.h */; }; + 3A48BFC405E25FE600B42EE0 /* ta_VAR.c in Sources */ = {isa = PBXBuildFile; fileRef = 3A48BB2B05E25FE300B42EE0 /* ta_VAR.c */; }; + 3A48BFC505E25FE600B42EE0 /* ta_WCLPRICE.c in Sources */ = {isa = PBXBuildFile; fileRef = 3A48BB2C05E25FE300B42EE0 /* ta_WCLPRICE.c */; }; + 3A48BFC605E25FE600B42EE0 /* ta_WILLR.c in Sources */ = {isa = PBXBuildFile; fileRef = 3A48BB2D05E25FE300B42EE0 /* ta_WILLR.c */; }; + 3A48BFC705E25FE600B42EE0 /* ta_WMA.c in Sources */ = {isa = PBXBuildFile; fileRef = 3A48BB2E05E25FE300B42EE0 /* ta_WMA.c */; }; + 3A59A19C05F09E97005A4582 /* ta_frame.c in Sources */ = {isa = PBXBuildFile; fileRef = 3A59A17105F09E96005A4582 /* ta_frame.c */; }; + 3A59A19D05F09E97005A4582 /* ta_frame.h in Headers */ = {isa = PBXBuildFile; fileRef = 3A59A17205F09E96005A4582 /* ta_frame.h */; }; + 3A59A19E05F09E97005A4582 /* ta_abstract.c in Sources */ = {isa = PBXBuildFile; fileRef = 3A59A17305F09E96005A4582 /* ta_abstract.c */; }; + 3A59A19F05F09E97005A4582 /* ta_def_ui.c in Sources */ = {isa = PBXBuildFile; fileRef = 3A59A17405F09E96005A4582 /* ta_def_ui.c */; }; + 3A59A1A005F09E97005A4582 /* ta_def_ui.h in Headers */ = {isa = PBXBuildFile; fileRef = 3A59A17505F09E96005A4582 /* ta_def_ui.h */; }; + 3A59A1A105F09E97005A4582 /* ta_frame_priv.h in Headers */ = {isa = PBXBuildFile; fileRef = 3A59A17605F09E96005A4582 /* ta_frame_priv.h */; }; + 3A59A1A205F09E97005A4582 /* ta_group_idx.c in Sources */ = {isa = PBXBuildFile; fileRef = 3A59A17705F09E96005A4582 /* ta_group_idx.c */; }; + 3A59A1A305F09E97005A4582 /* table_a.c in Sources */ = {isa = PBXBuildFile; fileRef = 3A59A17905F09E96005A4582 /* table_a.c */; }; + 3A59A1A405F09E97005A4582 /* table_b.c in Sources */ = {isa = PBXBuildFile; fileRef = 3A59A17A05F09E96005A4582 /* table_b.c */; }; + 3A59A1A505F09E97005A4582 /* table_c.c in Sources */ = {isa = PBXBuildFile; fileRef = 3A59A17B05F09E96005A4582 /* table_c.c */; }; + 3A59A1A605F09E97005A4582 /* table_d.c in Sources */ = {isa = PBXBuildFile; fileRef = 3A59A17C05F09E96005A4582 /* table_d.c */; }; + 3A59A1A705F09E97005A4582 /* table_e.c in Sources */ = {isa = PBXBuildFile; fileRef = 3A59A17D05F09E96005A4582 /* table_e.c */; }; + 3A59A1A805F09E97005A4582 /* table_f.c in Sources */ = {isa = PBXBuildFile; fileRef = 3A59A17E05F09E96005A4582 /* table_f.c */; }; + 3A59A1A905F09E97005A4582 /* table_g.c in Sources */ = {isa = PBXBuildFile; fileRef = 3A59A17F05F09E96005A4582 /* table_g.c */; }; + 3A59A1AA05F09E97005A4582 /* table_h.c in Sources */ = {isa = PBXBuildFile; fileRef = 3A59A18005F09E96005A4582 /* table_h.c */; }; + 3A59A1AB05F09E97005A4582 /* table_i.c in Sources */ = {isa = PBXBuildFile; fileRef = 3A59A18105F09E96005A4582 /* table_i.c */; }; + 3A59A1AC05F09E97005A4582 /* table_j.c in Sources */ = {isa = PBXBuildFile; fileRef = 3A59A18205F09E96005A4582 /* table_j.c */; }; + 3A59A1AD05F09E97005A4582 /* table_k.c in Sources */ = {isa = PBXBuildFile; fileRef = 3A59A18305F09E96005A4582 /* table_k.c */; }; + 3A59A1AE05F09E97005A4582 /* table_l.c in Sources */ = {isa = PBXBuildFile; fileRef = 3A59A18405F09E96005A4582 /* table_l.c */; }; + 3A59A1AF05F09E97005A4582 /* table_m.c in Sources */ = {isa = PBXBuildFile; fileRef = 3A59A18505F09E97005A4582 /* table_m.c */; }; + 3A59A1B005F09E97005A4582 /* table_n.c in Sources */ = {isa = PBXBuildFile; fileRef = 3A59A18605F09E97005A4582 /* table_n.c */; }; + 3A59A1B105F09E97005A4582 /* table_o.c in Sources */ = {isa = PBXBuildFile; fileRef = 3A59A18705F09E97005A4582 /* table_o.c */; }; + 3A59A1B205F09E97005A4582 /* table_p.c in Sources */ = {isa = PBXBuildFile; fileRef = 3A59A18805F09E97005A4582 /* table_p.c */; }; + 3A59A1B305F09E97005A4582 /* table_q.c in Sources */ = {isa = PBXBuildFile; fileRef = 3A59A18905F09E97005A4582 /* table_q.c */; }; + 3A59A1B405F09E97005A4582 /* table_r.c in Sources */ = {isa = PBXBuildFile; fileRef = 3A59A18A05F09E97005A4582 /* table_r.c */; }; + 3A59A1B505F09E97005A4582 /* table_s.c in Sources */ = {isa = PBXBuildFile; fileRef = 3A59A18B05F09E97005A4582 /* table_s.c */; }; + 3A59A1B605F09E97005A4582 /* table_t.c in Sources */ = {isa = PBXBuildFile; fileRef = 3A59A18C05F09E97005A4582 /* table_t.c */; }; + 3A59A1B705F09E97005A4582 /* table_u.c in Sources */ = {isa = PBXBuildFile; fileRef = 3A59A18D05F09E97005A4582 /* table_u.c */; }; + 3A59A1B805F09E97005A4582 /* table_v.c in Sources */ = {isa = PBXBuildFile; fileRef = 3A59A18E05F09E97005A4582 /* table_v.c */; }; + 3A59A1B905F09E97005A4582 /* table_w.c in Sources */ = {isa = PBXBuildFile; fileRef = 3A59A18F05F09E97005A4582 /* table_w.c */; }; + 3A59A1BA05F09E97005A4582 /* table_x.c in Sources */ = {isa = PBXBuildFile; fileRef = 3A59A19005F09E97005A4582 /* table_x.c */; }; + 3A59A1BB05F09E97005A4582 /* table_y.c in Sources */ = {isa = PBXBuildFile; fileRef = 3A59A19105F09E97005A4582 /* table_y.c */; }; + 3A59A1BC05F09E97005A4582 /* table_z.c in Sources */ = {isa = PBXBuildFile; fileRef = 3A59A19205F09E97005A4582 /* table_z.c */; }; + 3A5D775309A5106100AFB481 /* libbz2.1.0.2.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 3A2E9575082A716B00778A6E /* libbz2.1.0.2.dylib */; }; + 3A742ECB06E8458C004F675D /* ta_CDLHIGHWAVE.c in Sources */ = {isa = PBXBuildFile; fileRef = 3A742EC706E8458B004F675D /* ta_CDLHIGHWAVE.c */; }; + 3A742ECC06E8458C004F675D /* ta_CDLLONGLINE.c in Sources */ = {isa = PBXBuildFile; fileRef = 3A742EC806E8458B004F675D /* ta_CDLLONGLINE.c */; }; + 3A742ECD06E8458C004F675D /* ta_CDLSHORTLINE.c in Sources */ = {isa = PBXBuildFile; fileRef = 3A742EC906E8458B004F675D /* ta_CDLSHORTLINE.c */; }; + 3A742ECE06E8458C004F675D /* ta_CDLSPINNINGTOP.c in Sources */ = {isa = PBXBuildFile; fileRef = 3A742ECA06E8458B004F675D /* ta_CDLSPINNINGTOP.c */; }; + 3A9C4D8B0BA735E500B6D766 /* Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = 8D07F2C70486CC7A007CD1D0 /* Info.plist */; }; + 3A9C4D930BA7361A00B6D766 /* ta_BETA.c in Sources */ = {isa = PBXBuildFile; fileRef = 3A9C4D8C0BA7361A00B6D766 /* ta_BETA.c */; }; + 3A9C4D940BA7361A00B6D766 /* ta_MAVP.c in Sources */ = {isa = PBXBuildFile; fileRef = 3A9C4D8D0BA7361A00B6D766 /* ta_MAVP.c */; }; + 3A9C4D950BA7361A00B6D766 /* ta_MAXINDEX.c in Sources */ = {isa = PBXBuildFile; fileRef = 3A9C4D8E0BA7361A00B6D766 /* ta_MAXINDEX.c */; }; + 3A9C4D960BA7361A00B6D766 /* ta_MININDEX.c in Sources */ = {isa = PBXBuildFile; fileRef = 3A9C4D8F0BA7361A00B6D766 /* ta_MININDEX.c */; }; + 3A9C4D970BA7361A00B6D766 /* ta_MINMAX.c in Sources */ = {isa = PBXBuildFile; fileRef = 3A9C4D900BA7361A00B6D766 /* ta_MINMAX.c */; }; + 3A9C4D980BA7361A00B6D766 /* ta_MINMAXINDEX.c in Sources */ = {isa = PBXBuildFile; fileRef = 3A9C4D910BA7361A00B6D766 /* ta_MINMAXINDEX.c */; }; + 3A9C4D990BA7361A00B6D766 /* ta_NATR.c in Sources */ = {isa = PBXBuildFile; fileRef = 3A9C4D920BA7361A00B6D766 /* ta_NATR.c */; }; + 3AA0ADE00C95AB080072E088 /* ta_CEIL.c in Sources */ = {isa = PBXBuildFile; fileRef = 3AA0ADD10C95AB080072E088 /* ta_CEIL.c */; }; + 3AA0ADE10C95AB080072E088 /* ta_COS.c in Sources */ = {isa = PBXBuildFile; fileRef = 3AA0ADD20C95AB080072E088 /* ta_COS.c */; }; + 3AA0ADE20C95AB080072E088 /* ta_COSH.c in Sources */ = {isa = PBXBuildFile; fileRef = 3AA0ADD30C95AB080072E088 /* ta_COSH.c */; }; + 3AA0ADE30C95AB080072E088 /* ta_DIV.c in Sources */ = {isa = PBXBuildFile; fileRef = 3AA0ADD40C95AB080072E088 /* ta_DIV.c */; }; + 3AA0ADE40C95AB080072E088 /* ta_EXP.c in Sources */ = {isa = PBXBuildFile; fileRef = 3AA0ADD50C95AB080072E088 /* ta_EXP.c */; }; + 3AA0ADE50C95AB080072E088 /* ta_FLOOR.c in Sources */ = {isa = PBXBuildFile; fileRef = 3AA0ADD60C95AB080072E088 /* ta_FLOOR.c */; }; + 3AA0ADE60C95AB080072E088 /* ta_LN.c in Sources */ = {isa = PBXBuildFile; fileRef = 3AA0ADD70C95AB080072E088 /* ta_LN.c */; }; + 3AA0ADE70C95AB080072E088 /* ta_LOG10.c in Sources */ = {isa = PBXBuildFile; fileRef = 3AA0ADD80C95AB080072E088 /* ta_LOG10.c */; }; + 3AA0ADE80C95AB080072E088 /* ta_MULT.c in Sources */ = {isa = PBXBuildFile; fileRef = 3AA0ADD90C95AB080072E088 /* ta_MULT.c */; }; + 3AA0ADE90C95AB080072E088 /* ta_SIN.c in Sources */ = {isa = PBXBuildFile; fileRef = 3AA0ADDA0C95AB080072E088 /* ta_SIN.c */; }; + 3AA0ADEA0C95AB080072E088 /* ta_SINH.c in Sources */ = {isa = PBXBuildFile; fileRef = 3AA0ADDB0C95AB080072E088 /* ta_SINH.c */; }; + 3AA0ADEB0C95AB080072E088 /* ta_SQRT.c in Sources */ = {isa = PBXBuildFile; fileRef = 3AA0ADDC0C95AB080072E088 /* ta_SQRT.c */; }; + 3AA0ADEC0C95AB080072E088 /* ta_SUB.c in Sources */ = {isa = PBXBuildFile; fileRef = 3AA0ADDD0C95AB080072E088 /* ta_SUB.c */; }; + 3AA0ADED0C95AB080072E088 /* ta_TAN.c in Sources */ = {isa = PBXBuildFile; fileRef = 3AA0ADDE0C95AB080072E088 /* ta_TAN.c */; }; + 3AA0ADEE0C95AB080072E088 /* ta_TANH.c in Sources */ = {isa = PBXBuildFile; fileRef = 3AA0ADDF0C95AB080072E088 /* ta_TANH.c */; }; + 3AA0ADFB0C95AC010072E088 /* ta_ACOS.c in Sources */ = {isa = PBXBuildFile; fileRef = 3AA0ADF70C95AC010072E088 /* ta_ACOS.c */; }; + 3AA0ADFC0C95AC010072E088 /* ta_ADD.c in Sources */ = {isa = PBXBuildFile; fileRef = 3AA0ADF80C95AC010072E088 /* ta_ADD.c */; }; + 3AA0ADFD0C95AC010072E088 /* ta_ASIN.c in Sources */ = {isa = PBXBuildFile; fileRef = 3AA0ADF90C95AC010072E088 /* ta_ASIN.c */; }; + 3AA0ADFE0C95AC010072E088 /* ta_ATAN.c in Sources */ = {isa = PBXBuildFile; fileRef = 3AA0ADFA0C95AC010072E088 /* ta_ATAN.c */; }; + 3AC7C3F3080C313900D11B6F /* ta_CDL2CROWS.c in Sources */ = {isa = PBXBuildFile; fileRef = 3AC7C3CD080C313900D11B6F /* ta_CDL2CROWS.c */; }; + 3AC7C3F4080C313900D11B6F /* ta_CDL3INSIDE.c in Sources */ = {isa = PBXBuildFile; fileRef = 3AC7C3CE080C313900D11B6F /* ta_CDL3INSIDE.c */; }; + 3AC7C3F5080C313900D11B6F /* ta_CDL3LINESTRIKE.c in Sources */ = {isa = PBXBuildFile; fileRef = 3AC7C3CF080C313900D11B6F /* ta_CDL3LINESTRIKE.c */; }; + 3AC7C3F6080C313900D11B6F /* ta_CDL3OUTSIDE.c in Sources */ = {isa = PBXBuildFile; fileRef = 3AC7C3D0080C313900D11B6F /* ta_CDL3OUTSIDE.c */; }; + 3AC7C3F7080C313900D11B6F /* ta_CDL3STARSINSOUTH.c in Sources */ = {isa = PBXBuildFile; fileRef = 3AC7C3D1080C313900D11B6F /* ta_CDL3STARSINSOUTH.c */; }; + 3AC7C3F8080C313900D11B6F /* ta_CDL3WHITESOLDIERS.c in Sources */ = {isa = PBXBuildFile; fileRef = 3AC7C3D2080C313900D11B6F /* ta_CDL3WHITESOLDIERS.c */; }; + 3AC7C3F9080C313900D11B6F /* ta_CDLADVANCEBLOCK.c in Sources */ = {isa = PBXBuildFile; fileRef = 3AC7C3D3080C313900D11B6F /* ta_CDLADVANCEBLOCK.c */; }; + 3AC7C3FA080C313900D11B6F /* ta_CDLBELTHOLD.c in Sources */ = {isa = PBXBuildFile; fileRef = 3AC7C3D4080C313900D11B6F /* ta_CDLBELTHOLD.c */; }; + 3AC7C3FB080C313900D11B6F /* ta_CDLBREAKAWAY.c in Sources */ = {isa = PBXBuildFile; fileRef = 3AC7C3D5080C313900D11B6F /* ta_CDLBREAKAWAY.c */; }; + 3AC7C3FC080C313900D11B6F /* ta_CDLCLOSINGMARUBOZU.c in Sources */ = {isa = PBXBuildFile; fileRef = 3AC7C3D6080C313900D11B6F /* ta_CDLCLOSINGMARUBOZU.c */; }; + 3AC7C3FD080C313900D11B6F /* ta_CDLCONCEALBABYSWALL.c in Sources */ = {isa = PBXBuildFile; fileRef = 3AC7C3D7080C313900D11B6F /* ta_CDLCONCEALBABYSWALL.c */; }; + 3AC7C3FE080C313900D11B6F /* ta_CDLCOUNTERATTACK.c in Sources */ = {isa = PBXBuildFile; fileRef = 3AC7C3D8080C313900D11B6F /* ta_CDLCOUNTERATTACK.c */; }; + 3AC7C3FF080C313900D11B6F /* ta_CDLDARKCLOUDCOVER.c in Sources */ = {isa = PBXBuildFile; fileRef = 3AC7C3D9080C313900D11B6F /* ta_CDLDARKCLOUDCOVER.c */; }; + 3AC7C400080C313900D11B6F /* ta_CDLDOJI.c in Sources */ = {isa = PBXBuildFile; fileRef = 3AC7C3DA080C313900D11B6F /* ta_CDLDOJI.c */; }; + 3AC7C401080C313900D11B6F /* ta_CDLDRAGONFLYDOJI.c in Sources */ = {isa = PBXBuildFile; fileRef = 3AC7C3DB080C313900D11B6F /* ta_CDLDRAGONFLYDOJI.c */; }; + 3AC7C402080C313900D11B6F /* ta_CDLGAPSIDESIDEWHITE.c in Sources */ = {isa = PBXBuildFile; fileRef = 3AC7C3DC080C313900D11B6F /* ta_CDLGAPSIDESIDEWHITE.c */; }; + 3AC7C403080C313900D11B6F /* ta_CDLGRAVESTONEDOJI.c in Sources */ = {isa = PBXBuildFile; fileRef = 3AC7C3DD080C313900D11B6F /* ta_CDLGRAVESTONEDOJI.c */; }; + 3AC7C404080C313900D11B6F /* ta_CDLHOMINGPIGEON.c in Sources */ = {isa = PBXBuildFile; fileRef = 3AC7C3DE080C313900D11B6F /* ta_CDLHOMINGPIGEON.c */; }; + 3AC7C405080C313900D11B6F /* ta_CDLINNECK.c in Sources */ = {isa = PBXBuildFile; fileRef = 3AC7C3DF080C313900D11B6F /* ta_CDLINNECK.c */; }; + 3AC7C406080C313900D11B6F /* ta_CDLKICKING.c in Sources */ = {isa = PBXBuildFile; fileRef = 3AC7C3E0080C313900D11B6F /* ta_CDLKICKING.c */; }; + 3AC7C407080C313900D11B6F /* ta_CDLKICKINGBYLENGTH.c in Sources */ = {isa = PBXBuildFile; fileRef = 3AC7C3E1080C313900D11B6F /* ta_CDLKICKINGBYLENGTH.c */; }; + 3AC7C408080C313900D11B6F /* ta_CDLLADDERBOTTOM.c in Sources */ = {isa = PBXBuildFile; fileRef = 3AC7C3E2080C313900D11B6F /* ta_CDLLADDERBOTTOM.c */; }; + 3AC7C409080C313900D11B6F /* ta_CDLLONGLEGGEDDOJI.c in Sources */ = {isa = PBXBuildFile; fileRef = 3AC7C3E3080C313900D11B6F /* ta_CDLLONGLEGGEDDOJI.c */; }; + 3AC7C40A080C313900D11B6F /* ta_CDLMARUBOZU.c in Sources */ = {isa = PBXBuildFile; fileRef = 3AC7C3E4080C313900D11B6F /* ta_CDLMARUBOZU.c */; }; + 3AC7C40B080C313900D11B6F /* ta_CDLMATCHINGLOW.c in Sources */ = {isa = PBXBuildFile; fileRef = 3AC7C3E5080C313900D11B6F /* ta_CDLMATCHINGLOW.c */; }; + 3AC7C40C080C313900D11B6F /* ta_CDLMATHOLD.c in Sources */ = {isa = PBXBuildFile; fileRef = 3AC7C3E6080C313900D11B6F /* ta_CDLMATHOLD.c */; }; + 3AC7C40D080C313900D11B6F /* ta_CDLONNECK.c in Sources */ = {isa = PBXBuildFile; fileRef = 3AC7C3E7080C313900D11B6F /* ta_CDLONNECK.c */; }; + 3AC7C40E080C313900D11B6F /* ta_CDLPIERCING.c in Sources */ = {isa = PBXBuildFile; fileRef = 3AC7C3E8080C313900D11B6F /* ta_CDLPIERCING.c */; }; + 3AC7C40F080C313900D11B6F /* ta_CDLRICKSHAWMAN.c in Sources */ = {isa = PBXBuildFile; fileRef = 3AC7C3E9080C313900D11B6F /* ta_CDLRICKSHAWMAN.c */; }; + 3AC7C410080C313900D11B6F /* ta_CDLRISEFALL3METHODS.c in Sources */ = {isa = PBXBuildFile; fileRef = 3AC7C3EA080C313900D11B6F /* ta_CDLRISEFALL3METHODS.c */; }; + 3AC7C411080C313900D11B6F /* ta_CDLSEPARATINGLINES.c in Sources */ = {isa = PBXBuildFile; fileRef = 3AC7C3EB080C313900D11B6F /* ta_CDLSEPARATINGLINES.c */; }; + 3AC7C412080C313900D11B6F /* ta_CDLSTALLEDPATTERN.c in Sources */ = {isa = PBXBuildFile; fileRef = 3AC7C3EC080C313900D11B6F /* ta_CDLSTALLEDPATTERN.c */; }; + 3AC7C413080C313900D11B6F /* ta_CDLSTICKSANDWICH.c in Sources */ = {isa = PBXBuildFile; fileRef = 3AC7C3ED080C313900D11B6F /* ta_CDLSTICKSANDWICH.c */; }; + 3AC7C414080C313900D11B6F /* ta_CDLTAKURI.c in Sources */ = {isa = PBXBuildFile; fileRef = 3AC7C3EE080C313900D11B6F /* ta_CDLTAKURI.c */; }; + 3AC7C415080C313900D11B6F /* ta_CDLTASUKIGAP.c in Sources */ = {isa = PBXBuildFile; fileRef = 3AC7C3EF080C313900D11B6F /* ta_CDLTASUKIGAP.c */; }; + 3AC7C416080C313900D11B6F /* ta_CDLTHRUSTING.c in Sources */ = {isa = PBXBuildFile; fileRef = 3AC7C3F0080C313900D11B6F /* ta_CDLTHRUSTING.c */; }; + 3AC7C417080C313900D11B6F /* ta_CDLUNIQUE3RIVER.c in Sources */ = {isa = PBXBuildFile; fileRef = 3AC7C3F1080C313900D11B6F /* ta_CDLUNIQUE3RIVER.c */; }; + 3AC7C418080C313900D11B6F /* ta_CDLXSIDEGAP3METHODS.c in Sources */ = {isa = PBXBuildFile; fileRef = 3AC7C3F2080C313900D11B6F /* ta_CDLXSIDEGAP3METHODS.c */; }; + 3ADCEA9A075875960004A780 /* ta_CDL3BLACKCROWS.c in Sources */ = {isa = PBXBuildFile; fileRef = 3ADCEA8F075875960004A780 /* ta_CDL3BLACKCROWS.c */; }; + 3ADCEA9B075875960004A780 /* ta_CDLABANDONEDBABY.c in Sources */ = {isa = PBXBuildFile; fileRef = 3ADCEA90075875960004A780 /* ta_CDLABANDONEDBABY.c */; }; + 3ADCEA9C075875960004A780 /* ta_CDLENGULFING.c in Sources */ = {isa = PBXBuildFile; fileRef = 3ADCEA91075875960004A780 /* ta_CDLENGULFING.c */; }; + 3ADCEA9D075875960004A780 /* ta_CDLHAMMER.c in Sources */ = {isa = PBXBuildFile; fileRef = 3ADCEA92075875960004A780 /* ta_CDLHAMMER.c */; }; + 3ADCEA9E075875960004A780 /* ta_CDLHANGINGMAN.c in Sources */ = {isa = PBXBuildFile; fileRef = 3ADCEA93075875960004A780 /* ta_CDLHANGINGMAN.c */; }; + 3ADCEA9F075875960004A780 /* ta_CDLHARAMI.c in Sources */ = {isa = PBXBuildFile; fileRef = 3ADCEA94075875960004A780 /* ta_CDLHARAMI.c */; }; + 3ADCEAA0075875960004A780 /* ta_CDLHARAMICROSS.c in Sources */ = {isa = PBXBuildFile; fileRef = 3ADCEA95075875960004A780 /* ta_CDLHARAMICROSS.c */; }; + 3ADCEAA1075875960004A780 /* ta_CDLIDENTICAL3CROWS.c in Sources */ = {isa = PBXBuildFile; fileRef = 3ADCEA96075875960004A780 /* ta_CDLIDENTICAL3CROWS.c */; }; + 3ADCEAA2075875960004A780 /* ta_CDLINVERTEDHAMMER.c in Sources */ = {isa = PBXBuildFile; fileRef = 3ADCEA97075875960004A780 /* ta_CDLINVERTEDHAMMER.c */; }; + 3ADCEAA3075875960004A780 /* ta_CDLSHOOTINGSTAR.c in Sources */ = {isa = PBXBuildFile; fileRef = 3ADCEA98075875960004A780 /* ta_CDLSHOOTINGSTAR.c */; }; + 3ADCEAA4075875960004A780 /* ta_CDLUPSIDEGAP2CROWS.c in Sources */ = {isa = PBXBuildFile; fileRef = 3ADCEA99075875960004A780 /* ta_CDLUPSIDEGAP2CROWS.c */; }; + 8D07F2C00486CC7A007CD1D0 /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 089C1666FE841158C02AAC07 /* InfoPlist.strings */; }; + CCF3217F0BA789CC0014ABA6 /* ta_regtest.c in Sources */ = {isa = PBXBuildFile; fileRef = CCF321630BA789CC0014ABA6 /* ta_regtest.c */; }; + CCF321800BA789CC0014ABA6 /* test_1in_1out.c in Sources */ = {isa = PBXBuildFile; fileRef = CCF321650BA789CC0014ABA6 /* test_1in_1out.c */; }; + CCF321810BA789CC0014ABA6 /* test_1in_2out.c in Sources */ = {isa = PBXBuildFile; fileRef = CCF321660BA789CC0014ABA6 /* test_1in_2out.c */; }; + CCF321820BA789CC0014ABA6 /* test_adx.c in Sources */ = {isa = PBXBuildFile; fileRef = CCF321670BA789CC0014ABA6 /* test_adx.c */; }; + CCF321830BA789CC0014ABA6 /* test_bbands.c in Sources */ = {isa = PBXBuildFile; fileRef = CCF321680BA789CC0014ABA6 /* test_bbands.c */; }; + CCF321840BA789CC0014ABA6 /* test_candlestick.c in Sources */ = {isa = PBXBuildFile; fileRef = CCF321690BA789CC0014ABA6 /* test_candlestick.c */; }; + CCF321850BA789CC0014ABA6 /* test_ma.c in Sources */ = {isa = PBXBuildFile; fileRef = CCF3216A0BA789CC0014ABA6 /* test_ma.c */; }; + CCF321860BA789CC0014ABA6 /* test_macd.c in Sources */ = {isa = PBXBuildFile; fileRef = CCF3216B0BA789CC0014ABA6 /* test_macd.c */; }; + CCF321870BA789CC0014ABA6 /* test_minmax.c in Sources */ = {isa = PBXBuildFile; fileRef = CCF3216C0BA789CC0014ABA6 /* test_minmax.c */; }; + CCF321880BA789CC0014ABA6 /* test_mom.c in Sources */ = {isa = PBXBuildFile; fileRef = CCF3216D0BA789CC0014ABA6 /* test_mom.c */; }; + CCF321890BA789CC0014ABA6 /* test_per_ema.c in Sources */ = {isa = PBXBuildFile; fileRef = CCF3216E0BA789CC0014ABA6 /* test_per_ema.c */; }; + CCF3218A0BA789CC0014ABA6 /* test_per_hl.c in Sources */ = {isa = PBXBuildFile; fileRef = CCF3216F0BA789CC0014ABA6 /* test_per_hl.c */; }; + CCF3218B0BA789CC0014ABA6 /* test_per_hlc.c in Sources */ = {isa = PBXBuildFile; fileRef = CCF321700BA789CC0014ABA6 /* test_per_hlc.c */; }; + CCF3218C0BA789CC0014ABA6 /* test_per_hlcv.c in Sources */ = {isa = PBXBuildFile; fileRef = CCF321710BA789CC0014ABA6 /* test_per_hlcv.c */; }; + CCF3218D0BA789CC0014ABA6 /* test_per_ohlc.c in Sources */ = {isa = PBXBuildFile; fileRef = CCF321720BA789CC0014ABA6 /* test_per_ohlc.c */; }; + CCF3218E0BA789CC0014ABA6 /* test_po.c in Sources */ = {isa = PBXBuildFile; fileRef = CCF321730BA789CC0014ABA6 /* test_po.c */; }; + CCF3218F0BA789CC0014ABA6 /* test_rsi.c in Sources */ = {isa = PBXBuildFile; fileRef = CCF321740BA789CC0014ABA6 /* test_rsi.c */; }; + CCF321900BA789CC0014ABA6 /* test_sar.c in Sources */ = {isa = PBXBuildFile; fileRef = CCF321750BA789CC0014ABA6 /* test_sar.c */; }; + CCF321910BA789CC0014ABA6 /* test_stddev.c in Sources */ = {isa = PBXBuildFile; fileRef = CCF321760BA789CC0014ABA6 /* test_stddev.c */; }; + CCF321920BA789CC0014ABA6 /* test_stoch.c in Sources */ = {isa = PBXBuildFile; fileRef = CCF321770BA789CC0014ABA6 /* test_stoch.c */; }; + CCF321930BA789CC0014ABA6 /* test_trange.c in Sources */ = {isa = PBXBuildFile; fileRef = CCF321780BA789CC0014ABA6 /* test_trange.c */; }; + CCF321940BA789CC0014ABA6 /* test_abstract.c in Sources */ = {isa = PBXBuildFile; fileRef = CCF3217B0BA789CC0014ABA6 /* test_abstract.c */; }; + CCF321950BA789CC0014ABA6 /* test_data.c in Sources */ = {isa = PBXBuildFile; fileRef = CCF3217C0BA789CC0014ABA6 /* test_data.c */; }; + CCF321960BA789CC0014ABA6 /* test_internals.c in Sources */ = {isa = PBXBuildFile; fileRef = CCF3217D0BA789CC0014ABA6 /* test_internals.c */; }; + CCF321970BA789CC0014ABA6 /* test_util.c in Sources */ = {isa = PBXBuildFile; fileRef = CCF3217E0BA789CC0014ABA6 /* test_util.c */; }; + CCF3219E0BA78A290014ABA6 /* TALib.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8D07F2C80486CC7A007CD1D0 /* TALib.framework */; }; + CCF321D20BA792540014ABA6 /* ta_func_api.c in Sources */ = {isa = PBXBuildFile; fileRef = CCF321D10BA792540014ABA6 /* ta_func_api.c */; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + CCF321500BA788D40014ABA6 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 0867D690FE84028FC02AAC07 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 8D07F2BC0486CC7A007CD1D0; + remoteInfo = TALib; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXFileReference section */ + 089C1667FE841158C02AAC07 /* English */ = {isa = PBXFileReference; fileEncoding = 10; lastKnownFileType = text.plist.strings; name = English; path = English.lproj/InfoPlist.strings; sourceTree = ""; }; + 3A1B2BC509E909F2000A8E98 /* ta_SUM.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = ta_SUM.c; path = ../../../src/ta_func/ta_SUM.c; sourceTree = SOURCE_ROOT; }; + 3A1FA1C905F220F100605309 /* README_XCODE.TXT */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = README_XCODE.TXT; sourceTree = SOURCE_ROOT; }; + 3A2E9573082A714D00778A6E /* libcurl.3.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libcurl.3.dylib; path = /usr/lib/libcurl.3.dylib; sourceTree = ""; }; + 3A2E9575082A716B00778A6E /* libbz2.1.0.2.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libbz2.1.0.2.dylib; path = /usr/lib/libbz2.1.0.2.dylib; sourceTree = ""; }; + 3A3370F9097E1DDC00082D6C /* ta_BOP.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = ta_BOP.c; path = ../../../src/ta_func/ta_BOP.c; sourceTree = SOURCE_ROOT; }; + 3A3370FA097E1DDC00082D6C /* ta_CDLHIKKAKE.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = ta_CDLHIKKAKE.c; path = ../../../src/ta_func/ta_CDLHIKKAKE.c; sourceTree = SOURCE_ROOT; }; + 3A3370FB097E1DDC00082D6C /* ta_CDLHIKKAKEMOD.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = ta_CDLHIKKAKEMOD.c; path = ../../../src/ta_func/ta_CDLHIKKAKEMOD.c; sourceTree = SOURCE_ROOT; }; + 3A3370FC097E1DDC00082D6C /* ta_CMO.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = ta_CMO.c; path = ../../../src/ta_func/ta_CMO.c; sourceTree = SOURCE_ROOT; }; + 3A3370FD097E1DDC00082D6C /* ta_ULTOSC.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = ta_ULTOSC.c; path = ../../../src/ta_func/ta_ULTOSC.c; sourceTree = SOURCE_ROOT; }; + 3A35CD8A0735FAC1001993D0 /* ta_CDLDOJISTAR.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = ta_CDLDOJISTAR.c; path = ../../../src/ta_func/ta_CDLDOJISTAR.c; sourceTree = SOURCE_ROOT; }; + 3A35CD8B0735FAC1001993D0 /* ta_CDLEVENINGDOJISTAR.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = ta_CDLEVENINGDOJISTAR.c; path = ../../../src/ta_func/ta_CDLEVENINGDOJISTAR.c; sourceTree = SOURCE_ROOT; }; + 3A35CD8C0735FAC1001993D0 /* ta_CDLEVENINGSTAR.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = ta_CDLEVENINGSTAR.c; path = ../../../src/ta_func/ta_CDLEVENINGSTAR.c; sourceTree = SOURCE_ROOT; }; + 3A35CD8D0735FAC1001993D0 /* ta_CDLMORNINGDOJISTAR.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = ta_CDLMORNINGDOJISTAR.c; path = ../../../src/ta_func/ta_CDLMORNINGDOJISTAR.c; sourceTree = SOURCE_ROOT; }; + 3A35CD8E0735FAC1001993D0 /* ta_CDLMORNINGSTAR.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = ta_CDLMORNINGSTAR.c; path = ../../../src/ta_func/ta_CDLMORNINGSTAR.c; sourceTree = SOURCE_ROOT; }; + 3A35CD8F0735FAC1001993D0 /* ta_CDLTRISTAR.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = ta_CDLTRISTAR.c; path = ../../../src/ta_func/ta_CDLTRISTAR.c; sourceTree = SOURCE_ROOT; }; + 3A48B5E005E25FDC00B42EE0 /* ta_abstract.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = ta_abstract.h; sourceTree = ""; }; + 3A48B5E105E25FDC00B42EE0 /* ta_common.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = ta_common.h; sourceTree = ""; }; + 3A48B5E305E25FDC00B42EE0 /* ta_defs.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = ta_defs.h; sourceTree = ""; }; + 3A48B5E405E25FDC00B42EE0 /* ta_func.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = ta_func.h; sourceTree = ""; }; + 3A48B5E505E25FDC00B42EE0 /* ta_libc.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = ta_libc.h; sourceTree = ""; }; + 3A48BA7A05E25FE200B42EE0 /* ta_global.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = ta_global.c; sourceTree = ""; }; + 3A48BA7B05E25FE200B42EE0 /* ta_global.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = ta_global.h; sourceTree = ""; }; + 3A48BA7E05E25FE200B42EE0 /* ta_magic_nb.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = ta_magic_nb.h; sourceTree = ""; }; + 3A48BA8005E25FE200B42EE0 /* ta_memory.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = ta_memory.h; sourceTree = ""; }; + 3A48BA8305E25FE200B42EE0 /* ta_retcode.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = ta_retcode.c; sourceTree = ""; }; + 3A48BA8405E25FE200B42EE0 /* ta_retcode.csv */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = text; path = ta_retcode.csv; sourceTree = ""; }; + 3A48BA8E05E25FE200B42EE0 /* ta_version.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = ta_version.c; sourceTree = ""; }; + 3A48BAE805E25FE300B42EE0 /* ta_AD.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = ta_AD.c; sourceTree = ""; }; + 3A48BAE905E25FE300B42EE0 /* ta_ADOSC.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = ta_ADOSC.c; sourceTree = ""; }; + 3A48BAEA05E25FE300B42EE0 /* ta_ADX.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = ta_ADX.c; sourceTree = ""; }; + 3A48BAEB05E25FE300B42EE0 /* ta_ADXR.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = ta_ADXR.c; sourceTree = ""; }; + 3A48BAEC05E25FE300B42EE0 /* ta_APO.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = ta_APO.c; sourceTree = ""; }; + 3A48BAED05E25FE300B42EE0 /* ta_AROON.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = ta_AROON.c; sourceTree = ""; }; + 3A48BAEE05E25FE300B42EE0 /* ta_AROONOSC.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = ta_AROONOSC.c; sourceTree = ""; }; + 3A48BAEF05E25FE300B42EE0 /* ta_ATR.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = ta_ATR.c; sourceTree = ""; }; + 3A48BAF005E25FE300B42EE0 /* ta_AVGPRICE.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = ta_AVGPRICE.c; sourceTree = ""; }; + 3A48BAF105E25FE300B42EE0 /* ta_BBANDS.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = ta_BBANDS.c; sourceTree = ""; }; + 3A48BAF205E25FE300B42EE0 /* ta_CCI.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = ta_CCI.c; sourceTree = ""; }; + 3A48BAF305E25FE300B42EE0 /* ta_CORREL.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = ta_CORREL.c; sourceTree = ""; }; + 3A48BAF405E25FE300B42EE0 /* ta_DEMA.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = ta_DEMA.c; sourceTree = ""; }; + 3A48BAF505E25FE300B42EE0 /* ta_DX.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = ta_DX.c; sourceTree = ""; }; + 3A48BAF605E25FE300B42EE0 /* ta_EMA.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = ta_EMA.c; sourceTree = ""; }; + 3A48BAF705E25FE300B42EE0 /* ta_HT_DCPERIOD.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = ta_HT_DCPERIOD.c; sourceTree = ""; }; + 3A48BAF805E25FE300B42EE0 /* ta_HT_DCPHASE.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = ta_HT_DCPHASE.c; sourceTree = ""; }; + 3A48BAF905E25FE300B42EE0 /* ta_HT_PHASOR.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = ta_HT_PHASOR.c; sourceTree = ""; }; + 3A48BAFA05E25FE300B42EE0 /* ta_HT_SINE.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = ta_HT_SINE.c; sourceTree = ""; }; + 3A48BAFB05E25FE300B42EE0 /* ta_HT_TRENDLINE.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = ta_HT_TRENDLINE.c; sourceTree = ""; }; + 3A48BAFC05E25FE300B42EE0 /* ta_HT_TRENDMODE.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = ta_HT_TRENDMODE.c; sourceTree = ""; }; + 3A48BAFD05E25FE300B42EE0 /* ta_KAMA.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = ta_KAMA.c; sourceTree = ""; }; + 3A48BAFE05E25FE300B42EE0 /* ta_LINEARREG.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = ta_LINEARREG.c; sourceTree = ""; }; + 3A48BAFF05E25FE300B42EE0 /* ta_LINEARREG_ANGLE.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = ta_LINEARREG_ANGLE.c; sourceTree = ""; }; + 3A48BB0005E25FE300B42EE0 /* ta_LINEARREG_INTERCEPT.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = ta_LINEARREG_INTERCEPT.c; sourceTree = ""; }; + 3A48BB0105E25FE300B42EE0 /* ta_LINEARREG_SLOPE.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = ta_LINEARREG_SLOPE.c; sourceTree = ""; }; + 3A48BB0205E25FE300B42EE0 /* ta_MA.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = ta_MA.c; sourceTree = ""; }; + 3A48BB0305E25FE300B42EE0 /* ta_MACD.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = ta_MACD.c; sourceTree = ""; }; + 3A48BB0405E25FE300B42EE0 /* ta_MACDEXT.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = ta_MACDEXT.c; sourceTree = ""; }; + 3A48BB0505E25FE300B42EE0 /* ta_MACDFIX.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = ta_MACDFIX.c; sourceTree = ""; }; + 3A48BB0605E25FE300B42EE0 /* ta_MAMA.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = ta_MAMA.c; sourceTree = ""; }; + 3A48BB0705E25FE300B42EE0 /* ta_MAX.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = ta_MAX.c; sourceTree = ""; }; + 3A48BB0805E25FE300B42EE0 /* ta_MEDPRICE.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = ta_MEDPRICE.c; sourceTree = ""; }; + 3A48BB0905E25FE300B42EE0 /* ta_MFI.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = ta_MFI.c; sourceTree = ""; }; + 3A48BB0A05E25FE300B42EE0 /* ta_MIDPOINT.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = ta_MIDPOINT.c; sourceTree = ""; }; + 3A48BB0B05E25FE300B42EE0 /* ta_MIDPRICE.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = ta_MIDPRICE.c; sourceTree = ""; }; + 3A48BB0C05E25FE300B42EE0 /* ta_MIN.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = ta_MIN.c; sourceTree = ""; }; + 3A48BB0D05E25FE300B42EE0 /* ta_MINUS_DI.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = ta_MINUS_DI.c; sourceTree = ""; }; + 3A48BB0E05E25FE300B42EE0 /* ta_MINUS_DM.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = ta_MINUS_DM.c; sourceTree = ""; }; + 3A48BB0F05E25FE300B42EE0 /* ta_MOM.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = ta_MOM.c; sourceTree = ""; }; + 3A48BB1005E25FE300B42EE0 /* ta_NVI.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = ta_NVI.c; sourceTree = ""; }; + 3A48BB1105E25FE300B42EE0 /* ta_OBV.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = ta_OBV.c; sourceTree = ""; }; + 3A48BB1205E25FE300B42EE0 /* ta_PLUS_DI.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = ta_PLUS_DI.c; sourceTree = ""; }; + 3A48BB1305E25FE300B42EE0 /* ta_PLUS_DM.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = ta_PLUS_DM.c; sourceTree = ""; }; + 3A48BB1405E25FE300B42EE0 /* ta_PPO.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = ta_PPO.c; sourceTree = ""; }; + 3A48BB1505E25FE300B42EE0 /* ta_PVI.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = ta_PVI.c; sourceTree = ""; }; + 3A48BB1605E25FE300B42EE0 /* ta_ROC.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = ta_ROC.c; sourceTree = ""; }; + 3A48BB1705E25FE300B42EE0 /* ta_ROCP.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = ta_ROCP.c; sourceTree = ""; }; + 3A48BB1805E25FE300B42EE0 /* ta_ROCR.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = ta_ROCR.c; sourceTree = ""; }; + 3A48BB1905E25FE300B42EE0 /* ta_ROCR100.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = ta_ROCR100.c; sourceTree = ""; }; + 3A48BB1A05E25FE300B42EE0 /* ta_RSI.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = ta_RSI.c; sourceTree = ""; }; + 3A48BB1B05E25FE300B42EE0 /* ta_SAR.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = ta_SAR.c; sourceTree = ""; }; + 3A48BB1C05E25FE300B42EE0 /* ta_SAREXT.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = ta_SAREXT.c; sourceTree = ""; }; + 3A48BB1D05E25FE300B42EE0 /* ta_SMA.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = ta_SMA.c; sourceTree = ""; }; + 3A48BB1E05E25FE300B42EE0 /* ta_STDDEV.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = ta_STDDEV.c; sourceTree = ""; }; + 3A48BB1F05E25FE300B42EE0 /* ta_STOCH.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = ta_STOCH.c; sourceTree = ""; }; + 3A48BB2005E25FE300B42EE0 /* ta_STOCHF.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = ta_STOCHF.c; sourceTree = ""; }; + 3A48BB2105E25FE300B42EE0 /* ta_STOCHRSI.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = ta_STOCHRSI.c; sourceTree = ""; }; + 3A48BB2205E25FE300B42EE0 /* ta_T3.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = ta_T3.c; sourceTree = ""; }; + 3A48BB2305E25FE300B42EE0 /* ta_TEMA.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = ta_TEMA.c; sourceTree = ""; }; + 3A48BB2405E25FE300B42EE0 /* ta_TRANGE.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = ta_TRANGE.c; sourceTree = ""; }; + 3A48BB2505E25FE300B42EE0 /* ta_TRIMA.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = ta_TRIMA.c; sourceTree = ""; }; + 3A48BB2605E25FE300B42EE0 /* ta_TRIX.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = ta_TRIX.c; sourceTree = ""; }; + 3A48BB2705E25FE300B42EE0 /* ta_TSF.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = ta_TSF.c; sourceTree = ""; }; + 3A48BB2805E25FE300B42EE0 /* ta_TYPPRICE.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = ta_TYPPRICE.c; sourceTree = ""; }; + 3A48BB2905E25FE300B42EE0 /* ta_utility.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = ta_utility.c; sourceTree = ""; }; + 3A48BB2A05E25FE300B42EE0 /* ta_utility.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = ta_utility.h; sourceTree = ""; }; + 3A48BB2B05E25FE300B42EE0 /* ta_VAR.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = ta_VAR.c; sourceTree = ""; }; + 3A48BB2C05E25FE300B42EE0 /* ta_WCLPRICE.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = ta_WCLPRICE.c; sourceTree = ""; }; + 3A48BB2D05E25FE300B42EE0 /* ta_WILLR.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = ta_WILLR.c; sourceTree = ""; }; + 3A48BB2E05E25FE300B42EE0 /* ta_WMA.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = ta_WMA.c; sourceTree = ""; }; + 3A48BC3B05E25FE400B42EE0 /* CHANGELOG.TXT */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = text; name = CHANGELOG.TXT; path = ../../../../CHANGELOG.TXT; sourceTree = SOURCE_ROOT; }; + 3A48BC3C05E25FE400B42EE0 /* HISTORY.TXT */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = text; name = HISTORY.TXT; path = ../../../../HISTORY.TXT; sourceTree = SOURCE_ROOT; }; + 3A48BC3D05E25FE400B42EE0 /* LICENSE.TXT */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = text; name = LICENSE.TXT; path = ../../../../LICENSE.TXT; sourceTree = SOURCE_ROOT; }; + 3A48BC3E05E25FE400B42EE0 /* README.TXT */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = text; name = README.TXT; path = ../../../../README.TXT; sourceTree = SOURCE_ROOT; }; + 3A59A17105F09E96005A4582 /* ta_frame.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = ta_frame.c; sourceTree = ""; }; + 3A59A17205F09E96005A4582 /* ta_frame.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = ta_frame.h; sourceTree = ""; }; + 3A59A17305F09E96005A4582 /* ta_abstract.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = ta_abstract.c; sourceTree = ""; }; + 3A59A17405F09E96005A4582 /* ta_def_ui.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = ta_def_ui.c; sourceTree = ""; }; + 3A59A17505F09E96005A4582 /* ta_def_ui.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = ta_def_ui.h; sourceTree = ""; }; + 3A59A17605F09E96005A4582 /* ta_frame_priv.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = ta_frame_priv.h; sourceTree = ""; }; + 3A59A17705F09E96005A4582 /* ta_group_idx.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = ta_group_idx.c; sourceTree = ""; }; + 3A59A17905F09E96005A4582 /* table_a.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = table_a.c; sourceTree = ""; }; + 3A59A17A05F09E96005A4582 /* table_b.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = table_b.c; sourceTree = ""; }; + 3A59A17B05F09E96005A4582 /* table_c.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = table_c.c; sourceTree = ""; }; + 3A59A17C05F09E96005A4582 /* table_d.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = table_d.c; sourceTree = ""; }; + 3A59A17D05F09E96005A4582 /* table_e.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = table_e.c; sourceTree = ""; }; + 3A59A17E05F09E96005A4582 /* table_f.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = table_f.c; sourceTree = ""; }; + 3A59A17F05F09E96005A4582 /* table_g.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = table_g.c; sourceTree = ""; }; + 3A59A18005F09E96005A4582 /* table_h.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = table_h.c; sourceTree = ""; }; + 3A59A18105F09E96005A4582 /* table_i.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = table_i.c; sourceTree = ""; }; + 3A59A18205F09E96005A4582 /* table_j.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = table_j.c; sourceTree = ""; }; + 3A59A18305F09E96005A4582 /* table_k.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = table_k.c; sourceTree = ""; }; + 3A59A18405F09E96005A4582 /* table_l.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = table_l.c; sourceTree = ""; }; + 3A59A18505F09E97005A4582 /* table_m.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = table_m.c; sourceTree = ""; }; + 3A59A18605F09E97005A4582 /* table_n.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = table_n.c; sourceTree = ""; }; + 3A59A18705F09E97005A4582 /* table_o.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = table_o.c; sourceTree = ""; }; + 3A59A18805F09E97005A4582 /* table_p.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = table_p.c; sourceTree = ""; }; + 3A59A18905F09E97005A4582 /* table_q.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = table_q.c; sourceTree = ""; }; + 3A59A18A05F09E97005A4582 /* table_r.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = table_r.c; sourceTree = ""; }; + 3A59A18B05F09E97005A4582 /* table_s.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = table_s.c; sourceTree = ""; }; + 3A59A18C05F09E97005A4582 /* table_t.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = table_t.c; sourceTree = ""; }; + 3A59A18D05F09E97005A4582 /* table_u.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = table_u.c; sourceTree = ""; }; + 3A59A18E05F09E97005A4582 /* table_v.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = table_v.c; sourceTree = ""; }; + 3A59A18F05F09E97005A4582 /* table_w.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = table_w.c; sourceTree = ""; }; + 3A59A19005F09E97005A4582 /* table_x.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = table_x.c; sourceTree = ""; }; + 3A59A19105F09E97005A4582 /* table_y.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = table_y.c; sourceTree = ""; }; + 3A59A19205F09E97005A4582 /* table_z.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = table_z.c; sourceTree = ""; }; + 3A742EC706E8458B004F675D /* ta_CDLHIGHWAVE.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = ta_CDLHIGHWAVE.c; path = ../../../src/ta_func/ta_CDLHIGHWAVE.c; sourceTree = SOURCE_ROOT; }; + 3A742EC806E8458B004F675D /* ta_CDLLONGLINE.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = ta_CDLLONGLINE.c; path = ../../../src/ta_func/ta_CDLLONGLINE.c; sourceTree = SOURCE_ROOT; }; + 3A742EC906E8458B004F675D /* ta_CDLSHORTLINE.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = ta_CDLSHORTLINE.c; path = ../../../src/ta_func/ta_CDLSHORTLINE.c; sourceTree = SOURCE_ROOT; }; + 3A742ECA06E8458B004F675D /* ta_CDLSPINNINGTOP.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = ta_CDLSPINNINGTOP.c; path = ../../../src/ta_func/ta_CDLSPINNINGTOP.c; sourceTree = SOURCE_ROOT; }; + 3A9C4D8C0BA7361A00B6D766 /* ta_BETA.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = ta_BETA.c; sourceTree = ""; }; + 3A9C4D8D0BA7361A00B6D766 /* ta_MAVP.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = ta_MAVP.c; sourceTree = ""; }; + 3A9C4D8E0BA7361A00B6D766 /* ta_MAXINDEX.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = ta_MAXINDEX.c; sourceTree = ""; }; + 3A9C4D8F0BA7361A00B6D766 /* ta_MININDEX.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = ta_MININDEX.c; sourceTree = ""; }; + 3A9C4D900BA7361A00B6D766 /* ta_MINMAX.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = ta_MINMAX.c; sourceTree = ""; }; + 3A9C4D910BA7361A00B6D766 /* ta_MINMAXINDEX.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = ta_MINMAXINDEX.c; sourceTree = ""; }; + 3A9C4D920BA7361A00B6D766 /* ta_NATR.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = ta_NATR.c; sourceTree = ""; }; + 3AA0ADD10C95AB080072E088 /* ta_CEIL.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = ta_CEIL.c; sourceTree = ""; }; + 3AA0ADD20C95AB080072E088 /* ta_COS.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = ta_COS.c; sourceTree = ""; }; + 3AA0ADD30C95AB080072E088 /* ta_COSH.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = ta_COSH.c; sourceTree = ""; }; + 3AA0ADD40C95AB080072E088 /* ta_DIV.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = ta_DIV.c; sourceTree = ""; }; + 3AA0ADD50C95AB080072E088 /* ta_EXP.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = ta_EXP.c; sourceTree = ""; }; + 3AA0ADD60C95AB080072E088 /* ta_FLOOR.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = ta_FLOOR.c; sourceTree = ""; }; + 3AA0ADD70C95AB080072E088 /* ta_LN.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = ta_LN.c; sourceTree = ""; }; + 3AA0ADD80C95AB080072E088 /* ta_LOG10.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = ta_LOG10.c; sourceTree = ""; }; + 3AA0ADD90C95AB080072E088 /* ta_MULT.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = ta_MULT.c; sourceTree = ""; }; + 3AA0ADDA0C95AB080072E088 /* ta_SIN.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = ta_SIN.c; sourceTree = ""; }; + 3AA0ADDB0C95AB080072E088 /* ta_SINH.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = ta_SINH.c; sourceTree = ""; }; + 3AA0ADDC0C95AB080072E088 /* ta_SQRT.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = ta_SQRT.c; sourceTree = ""; }; + 3AA0ADDD0C95AB080072E088 /* ta_SUB.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = ta_SUB.c; sourceTree = ""; }; + 3AA0ADDE0C95AB080072E088 /* ta_TAN.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = ta_TAN.c; sourceTree = ""; }; + 3AA0ADDF0C95AB080072E088 /* ta_TANH.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = ta_TANH.c; sourceTree = ""; }; + 3AA0ADF70C95AC010072E088 /* ta_ACOS.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = ta_ACOS.c; sourceTree = ""; }; + 3AA0ADF80C95AC010072E088 /* ta_ADD.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = ta_ADD.c; sourceTree = ""; }; + 3AA0ADF90C95AC010072E088 /* ta_ASIN.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = ta_ASIN.c; sourceTree = ""; }; + 3AA0ADFA0C95AC010072E088 /* ta_ATAN.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = ta_ATAN.c; sourceTree = ""; }; + 3AC7C3CD080C313900D11B6F /* ta_CDL2CROWS.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = ta_CDL2CROWS.c; path = ../../../src/ta_func/ta_CDL2CROWS.c; sourceTree = SOURCE_ROOT; }; + 3AC7C3CE080C313900D11B6F /* ta_CDL3INSIDE.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = ta_CDL3INSIDE.c; path = ../../../src/ta_func/ta_CDL3INSIDE.c; sourceTree = SOURCE_ROOT; }; + 3AC7C3CF080C313900D11B6F /* ta_CDL3LINESTRIKE.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = ta_CDL3LINESTRIKE.c; path = ../../../src/ta_func/ta_CDL3LINESTRIKE.c; sourceTree = SOURCE_ROOT; }; + 3AC7C3D0080C313900D11B6F /* ta_CDL3OUTSIDE.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = ta_CDL3OUTSIDE.c; path = ../../../src/ta_func/ta_CDL3OUTSIDE.c; sourceTree = SOURCE_ROOT; }; + 3AC7C3D1080C313900D11B6F /* ta_CDL3STARSINSOUTH.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = ta_CDL3STARSINSOUTH.c; path = ../../../src/ta_func/ta_CDL3STARSINSOUTH.c; sourceTree = SOURCE_ROOT; }; + 3AC7C3D2080C313900D11B6F /* ta_CDL3WHITESOLDIERS.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = ta_CDL3WHITESOLDIERS.c; path = ../../../src/ta_func/ta_CDL3WHITESOLDIERS.c; sourceTree = SOURCE_ROOT; }; + 3AC7C3D3080C313900D11B6F /* ta_CDLADVANCEBLOCK.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = ta_CDLADVANCEBLOCK.c; path = ../../../src/ta_func/ta_CDLADVANCEBLOCK.c; sourceTree = SOURCE_ROOT; }; + 3AC7C3D4080C313900D11B6F /* ta_CDLBELTHOLD.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = ta_CDLBELTHOLD.c; path = ../../../src/ta_func/ta_CDLBELTHOLD.c; sourceTree = SOURCE_ROOT; }; + 3AC7C3D5080C313900D11B6F /* ta_CDLBREAKAWAY.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = ta_CDLBREAKAWAY.c; path = ../../../src/ta_func/ta_CDLBREAKAWAY.c; sourceTree = SOURCE_ROOT; }; + 3AC7C3D6080C313900D11B6F /* ta_CDLCLOSINGMARUBOZU.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = ta_CDLCLOSINGMARUBOZU.c; path = ../../../src/ta_func/ta_CDLCLOSINGMARUBOZU.c; sourceTree = SOURCE_ROOT; }; + 3AC7C3D7080C313900D11B6F /* ta_CDLCONCEALBABYSWALL.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = ta_CDLCONCEALBABYSWALL.c; path = ../../../src/ta_func/ta_CDLCONCEALBABYSWALL.c; sourceTree = SOURCE_ROOT; }; + 3AC7C3D8080C313900D11B6F /* ta_CDLCOUNTERATTACK.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = ta_CDLCOUNTERATTACK.c; path = ../../../src/ta_func/ta_CDLCOUNTERATTACK.c; sourceTree = SOURCE_ROOT; }; + 3AC7C3D9080C313900D11B6F /* ta_CDLDARKCLOUDCOVER.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = ta_CDLDARKCLOUDCOVER.c; path = ../../../src/ta_func/ta_CDLDARKCLOUDCOVER.c; sourceTree = SOURCE_ROOT; }; + 3AC7C3DA080C313900D11B6F /* ta_CDLDOJI.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = ta_CDLDOJI.c; path = ../../../src/ta_func/ta_CDLDOJI.c; sourceTree = SOURCE_ROOT; }; + 3AC7C3DB080C313900D11B6F /* ta_CDLDRAGONFLYDOJI.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = ta_CDLDRAGONFLYDOJI.c; path = ../../../src/ta_func/ta_CDLDRAGONFLYDOJI.c; sourceTree = SOURCE_ROOT; }; + 3AC7C3DC080C313900D11B6F /* ta_CDLGAPSIDESIDEWHITE.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = ta_CDLGAPSIDESIDEWHITE.c; path = ../../../src/ta_func/ta_CDLGAPSIDESIDEWHITE.c; sourceTree = SOURCE_ROOT; }; + 3AC7C3DD080C313900D11B6F /* ta_CDLGRAVESTONEDOJI.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = ta_CDLGRAVESTONEDOJI.c; path = ../../../src/ta_func/ta_CDLGRAVESTONEDOJI.c; sourceTree = SOURCE_ROOT; }; + 3AC7C3DE080C313900D11B6F /* ta_CDLHOMINGPIGEON.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = ta_CDLHOMINGPIGEON.c; path = ../../../src/ta_func/ta_CDLHOMINGPIGEON.c; sourceTree = SOURCE_ROOT; }; + 3AC7C3DF080C313900D11B6F /* ta_CDLINNECK.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = ta_CDLINNECK.c; path = ../../../src/ta_func/ta_CDLINNECK.c; sourceTree = SOURCE_ROOT; }; + 3AC7C3E0080C313900D11B6F /* ta_CDLKICKING.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = ta_CDLKICKING.c; path = ../../../src/ta_func/ta_CDLKICKING.c; sourceTree = SOURCE_ROOT; }; + 3AC7C3E1080C313900D11B6F /* ta_CDLKICKINGBYLENGTH.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = ta_CDLKICKINGBYLENGTH.c; path = ../../../src/ta_func/ta_CDLKICKINGBYLENGTH.c; sourceTree = SOURCE_ROOT; }; + 3AC7C3E2080C313900D11B6F /* ta_CDLLADDERBOTTOM.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = ta_CDLLADDERBOTTOM.c; path = ../../../src/ta_func/ta_CDLLADDERBOTTOM.c; sourceTree = SOURCE_ROOT; }; + 3AC7C3E3080C313900D11B6F /* ta_CDLLONGLEGGEDDOJI.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = ta_CDLLONGLEGGEDDOJI.c; path = ../../../src/ta_func/ta_CDLLONGLEGGEDDOJI.c; sourceTree = SOURCE_ROOT; }; + 3AC7C3E4080C313900D11B6F /* ta_CDLMARUBOZU.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = ta_CDLMARUBOZU.c; path = ../../../src/ta_func/ta_CDLMARUBOZU.c; sourceTree = SOURCE_ROOT; }; + 3AC7C3E5080C313900D11B6F /* ta_CDLMATCHINGLOW.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = ta_CDLMATCHINGLOW.c; path = ../../../src/ta_func/ta_CDLMATCHINGLOW.c; sourceTree = SOURCE_ROOT; }; + 3AC7C3E6080C313900D11B6F /* ta_CDLMATHOLD.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = ta_CDLMATHOLD.c; path = ../../../src/ta_func/ta_CDLMATHOLD.c; sourceTree = SOURCE_ROOT; }; + 3AC7C3E7080C313900D11B6F /* ta_CDLONNECK.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = ta_CDLONNECK.c; path = ../../../src/ta_func/ta_CDLONNECK.c; sourceTree = SOURCE_ROOT; }; + 3AC7C3E8080C313900D11B6F /* ta_CDLPIERCING.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = ta_CDLPIERCING.c; path = ../../../src/ta_func/ta_CDLPIERCING.c; sourceTree = SOURCE_ROOT; }; + 3AC7C3E9080C313900D11B6F /* ta_CDLRICKSHAWMAN.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = ta_CDLRICKSHAWMAN.c; path = ../../../src/ta_func/ta_CDLRICKSHAWMAN.c; sourceTree = SOURCE_ROOT; }; + 3AC7C3EA080C313900D11B6F /* ta_CDLRISEFALL3METHODS.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = ta_CDLRISEFALL3METHODS.c; path = ../../../src/ta_func/ta_CDLRISEFALL3METHODS.c; sourceTree = SOURCE_ROOT; }; + 3AC7C3EB080C313900D11B6F /* ta_CDLSEPARATINGLINES.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = ta_CDLSEPARATINGLINES.c; path = ../../../src/ta_func/ta_CDLSEPARATINGLINES.c; sourceTree = SOURCE_ROOT; }; + 3AC7C3EC080C313900D11B6F /* ta_CDLSTALLEDPATTERN.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = ta_CDLSTALLEDPATTERN.c; path = ../../../src/ta_func/ta_CDLSTALLEDPATTERN.c; sourceTree = SOURCE_ROOT; }; + 3AC7C3ED080C313900D11B6F /* ta_CDLSTICKSANDWICH.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = ta_CDLSTICKSANDWICH.c; path = ../../../src/ta_func/ta_CDLSTICKSANDWICH.c; sourceTree = SOURCE_ROOT; }; + 3AC7C3EE080C313900D11B6F /* ta_CDLTAKURI.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = ta_CDLTAKURI.c; path = ../../../src/ta_func/ta_CDLTAKURI.c; sourceTree = SOURCE_ROOT; }; + 3AC7C3EF080C313900D11B6F /* ta_CDLTASUKIGAP.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = ta_CDLTASUKIGAP.c; path = ../../../src/ta_func/ta_CDLTASUKIGAP.c; sourceTree = SOURCE_ROOT; }; + 3AC7C3F0080C313900D11B6F /* ta_CDLTHRUSTING.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = ta_CDLTHRUSTING.c; path = ../../../src/ta_func/ta_CDLTHRUSTING.c; sourceTree = SOURCE_ROOT; }; + 3AC7C3F1080C313900D11B6F /* ta_CDLUNIQUE3RIVER.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = ta_CDLUNIQUE3RIVER.c; path = ../../../src/ta_func/ta_CDLUNIQUE3RIVER.c; sourceTree = SOURCE_ROOT; }; + 3AC7C3F2080C313900D11B6F /* ta_CDLXSIDEGAP3METHODS.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = ta_CDLXSIDEGAP3METHODS.c; path = ../../../src/ta_func/ta_CDLXSIDEGAP3METHODS.c; sourceTree = SOURCE_ROOT; }; + 3ADCEA8F075875960004A780 /* ta_CDL3BLACKCROWS.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = ta_CDL3BLACKCROWS.c; path = ../../../src/ta_func/ta_CDL3BLACKCROWS.c; sourceTree = SOURCE_ROOT; }; + 3ADCEA90075875960004A780 /* ta_CDLABANDONEDBABY.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = ta_CDLABANDONEDBABY.c; path = ../../../src/ta_func/ta_CDLABANDONEDBABY.c; sourceTree = SOURCE_ROOT; }; + 3ADCEA91075875960004A780 /* ta_CDLENGULFING.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = ta_CDLENGULFING.c; path = ../../../src/ta_func/ta_CDLENGULFING.c; sourceTree = SOURCE_ROOT; }; + 3ADCEA92075875960004A780 /* ta_CDLHAMMER.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = ta_CDLHAMMER.c; path = ../../../src/ta_func/ta_CDLHAMMER.c; sourceTree = SOURCE_ROOT; }; + 3ADCEA93075875960004A780 /* ta_CDLHANGINGMAN.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = ta_CDLHANGINGMAN.c; path = ../../../src/ta_func/ta_CDLHANGINGMAN.c; sourceTree = SOURCE_ROOT; }; + 3ADCEA94075875960004A780 /* ta_CDLHARAMI.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = ta_CDLHARAMI.c; path = ../../../src/ta_func/ta_CDLHARAMI.c; sourceTree = SOURCE_ROOT; }; + 3ADCEA95075875960004A780 /* ta_CDLHARAMICROSS.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = ta_CDLHARAMICROSS.c; path = ../../../src/ta_func/ta_CDLHARAMICROSS.c; sourceTree = SOURCE_ROOT; }; + 3ADCEA96075875960004A780 /* ta_CDLIDENTICAL3CROWS.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = ta_CDLIDENTICAL3CROWS.c; path = ../../../src/ta_func/ta_CDLIDENTICAL3CROWS.c; sourceTree = SOURCE_ROOT; }; + 3ADCEA97075875960004A780 /* ta_CDLINVERTEDHAMMER.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = ta_CDLINVERTEDHAMMER.c; path = ../../../src/ta_func/ta_CDLINVERTEDHAMMER.c; sourceTree = SOURCE_ROOT; }; + 3ADCEA98075875960004A780 /* ta_CDLSHOOTINGSTAR.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = ta_CDLSHOOTINGSTAR.c; path = ../../../src/ta_func/ta_CDLSHOOTINGSTAR.c; sourceTree = SOURCE_ROOT; }; + 3ADCEA99075875960004A780 /* ta_CDLUPSIDEGAP2CROWS.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = ta_CDLUPSIDEGAP2CROWS.c; path = ../../../src/ta_func/ta_CDLUPSIDEGAP2CROWS.c; sourceTree = SOURCE_ROOT; }; + 8D07F2C70486CC7A007CD1D0 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist; path = Info.plist; sourceTree = ""; }; + 8D07F2C80486CC7A007CD1D0 /* TALib.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = TALib.framework; sourceTree = BUILT_PRODUCTS_DIR; }; + CCF3214B0BA7887D0014ABA6 /* Regression Tests */ = {isa = PBXFileReference; includeInIndex = 0; lastKnownFileType = "compiled.mach-o.executable"; path = "Regression Tests"; sourceTree = BUILT_PRODUCTS_DIR; }; + CCF321610BA789CC0014ABA6 /* ReadMe.txt */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = text; name = ReadMe.txt; path = ../../../src/tools/ta_regtest/ReadMe.txt; sourceTree = SOURCE_ROOT; }; + CCF321620BA789CC0014ABA6 /* ta_error_number.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = ta_error_number.h; path = ../../../src/tools/ta_regtest/ta_error_number.h; sourceTree = SOURCE_ROOT; }; + CCF321630BA789CC0014ABA6 /* ta_regtest.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = ta_regtest.c; path = ../../../src/tools/ta_regtest/ta_regtest.c; sourceTree = SOURCE_ROOT; }; + CCF321650BA789CC0014ABA6 /* test_1in_1out.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = test_1in_1out.c; sourceTree = ""; }; + CCF321660BA789CC0014ABA6 /* test_1in_2out.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = test_1in_2out.c; sourceTree = ""; }; + CCF321670BA789CC0014ABA6 /* test_adx.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = test_adx.c; sourceTree = ""; }; + CCF321680BA789CC0014ABA6 /* test_bbands.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = test_bbands.c; sourceTree = ""; }; + CCF321690BA789CC0014ABA6 /* test_candlestick.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = test_candlestick.c; sourceTree = ""; }; + CCF3216A0BA789CC0014ABA6 /* test_ma.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = test_ma.c; sourceTree = ""; }; + CCF3216B0BA789CC0014ABA6 /* test_macd.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = test_macd.c; sourceTree = ""; }; + CCF3216C0BA789CC0014ABA6 /* test_minmax.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = test_minmax.c; sourceTree = ""; }; + CCF3216D0BA789CC0014ABA6 /* test_mom.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = test_mom.c; sourceTree = ""; }; + CCF3216E0BA789CC0014ABA6 /* test_per_ema.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = test_per_ema.c; sourceTree = ""; }; + CCF3216F0BA789CC0014ABA6 /* test_per_hl.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = test_per_hl.c; sourceTree = ""; }; + CCF321700BA789CC0014ABA6 /* test_per_hlc.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = test_per_hlc.c; sourceTree = ""; }; + CCF321710BA789CC0014ABA6 /* test_per_hlcv.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = test_per_hlcv.c; sourceTree = ""; }; + CCF321720BA789CC0014ABA6 /* test_per_ohlc.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = test_per_ohlc.c; sourceTree = ""; }; + CCF321730BA789CC0014ABA6 /* test_po.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = test_po.c; sourceTree = ""; }; + CCF321740BA789CC0014ABA6 /* test_rsi.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = test_rsi.c; sourceTree = ""; }; + CCF321750BA789CC0014ABA6 /* test_sar.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = test_sar.c; sourceTree = ""; }; + CCF321760BA789CC0014ABA6 /* test_stddev.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = test_stddev.c; sourceTree = ""; }; + CCF321770BA789CC0014ABA6 /* test_stoch.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = test_stoch.c; sourceTree = ""; }; + CCF321780BA789CC0014ABA6 /* test_trange.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = test_trange.c; sourceTree = ""; }; + CCF321790BA789CC0014ABA6 /* ta_test_func.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = ta_test_func.h; path = ../../../src/tools/ta_regtest/ta_test_func.h; sourceTree = SOURCE_ROOT; }; + CCF3217A0BA789CC0014ABA6 /* ta_test_priv.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = ta_test_priv.h; path = ../../../src/tools/ta_regtest/ta_test_priv.h; sourceTree = SOURCE_ROOT; }; + CCF3217B0BA789CC0014ABA6 /* test_abstract.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = test_abstract.c; path = ../../../src/tools/ta_regtest/test_abstract.c; sourceTree = SOURCE_ROOT; }; + CCF3217C0BA789CC0014ABA6 /* test_data.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = test_data.c; path = ../../../src/tools/ta_regtest/test_data.c; sourceTree = SOURCE_ROOT; }; + CCF3217D0BA789CC0014ABA6 /* test_internals.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = test_internals.c; path = ../../../src/tools/ta_regtest/test_internals.c; sourceTree = SOURCE_ROOT; }; + CCF3217E0BA789CC0014ABA6 /* test_util.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; name = test_util.c; path = ../../../src/tools/ta_regtest/test_util.c; sourceTree = SOURCE_ROOT; }; + CCF321D10BA792540014ABA6 /* ta_func_api.c */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.c; path = ta_func_api.c; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 8D07F2C30486CC7A007CD1D0 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 3A2E9574082A714D00778A6E /* libcurl.3.dylib in Frameworks */, + 3A5D775309A5106100AFB481 /* libbz2.1.0.2.dylib in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + CCF321490BA7887D0014ABA6 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + CCF3219E0BA78A290014ABA6 /* TALib.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 034768DDFF38A45A11DB9C8B /* Products */ = { + isa = PBXGroup; + children = ( + 8D07F2C80486CC7A007CD1D0 /* TALib.framework */, + CCF3214B0BA7887D0014ABA6 /* Regression Tests */, + ); + name = Products; + sourceTree = ""; + }; + 0867D691FE84028FC02AAC07 /* TALib */ = { + isa = PBXGroup; + children = ( + 08FB77ACFE841707C02AAC07 /* Source */, + 089C1665FE841158C02AAC07 /* Resources */, + 0867D69AFE84028FC02AAC07 /* External Frameworks and Libraries */, + 034768DDFF38A45A11DB9C8B /* Products */, + CCF321600BA789470014ABA6 /* Regression Tests */, + ); + name = TALib; + sourceTree = ""; + }; + 0867D69AFE84028FC02AAC07 /* External Frameworks and Libraries */ = { + isa = PBXGroup; + children = ( + 3A2E9575082A716B00778A6E /* libbz2.1.0.2.dylib */, + 3A2E9573082A714D00778A6E /* libcurl.3.dylib */, + ); + name = "External Frameworks and Libraries"; + sourceTree = ""; + }; + 089C1665FE841158C02AAC07 /* Resources */ = { + isa = PBXGroup; + children = ( + 3A1FA1C905F220F100605309 /* README_XCODE.TXT */, + 3A48BC3E05E25FE400B42EE0 /* README.TXT */, + 3A48BC3B05E25FE400B42EE0 /* CHANGELOG.TXT */, + 3A48BC3C05E25FE400B42EE0 /* HISTORY.TXT */, + 3A48BC3D05E25FE400B42EE0 /* LICENSE.TXT */, + 8D07F2C70486CC7A007CD1D0 /* Info.plist */, + 089C1666FE841158C02AAC07 /* InfoPlist.strings */, + ); + name = Resources; + sourceTree = ""; + }; + 08FB77ACFE841707C02AAC07 /* Source */ = { + isa = PBXGroup; + children = ( + 3A48B5AF05E25FDC00B42EE0 /* c */, + ); + name = Source; + sourceTree = ""; + }; + 3A48B5AF05E25FDC00B42EE0 /* c */ = { + isa = PBXGroup; + children = ( + 3A48B5DE05E25FDC00B42EE0 /* include */, + 3A48B97705E25FE100B42EE0 /* src */, + ); + name = c; + path = ../../..; + sourceTree = SOURCE_ROOT; + }; + 3A48B5DE05E25FDC00B42EE0 /* include */ = { + isa = PBXGroup; + children = ( + 3A48B5E005E25FDC00B42EE0 /* ta_abstract.h */, + 3A48B5E105E25FDC00B42EE0 /* ta_common.h */, + 3A48B5E305E25FDC00B42EE0 /* ta_defs.h */, + 3A48B5E405E25FDC00B42EE0 /* ta_func.h */, + 3A48B5E505E25FDC00B42EE0 /* ta_libc.h */, + ); + path = include; + sourceTree = ""; + }; + 3A48B97705E25FE100B42EE0 /* src */ = { + isa = PBXGroup; + children = ( + 3A59A16E05F09E96005A4582 /* ta_abstract */, + 3A48B9B105E25FE100B42EE0 /* ta_common */, + 3A48BAE705E25FE300B42EE0 /* ta_func */, + ); + path = src; + sourceTree = ""; + }; + 3A48B9B105E25FE100B42EE0 /* ta_common */ = { + isa = PBXGroup; + children = ( + 3A48BA7A05E25FE200B42EE0 /* ta_global.c */, + 3A48BA7B05E25FE200B42EE0 /* ta_global.h */, + 3A48BA7E05E25FE200B42EE0 /* ta_magic_nb.h */, + 3A48BA8005E25FE200B42EE0 /* ta_memory.h */, + 3A48BA8305E25FE200B42EE0 /* ta_retcode.c */, + 3A48BA8405E25FE200B42EE0 /* ta_retcode.csv */, + 3A48BA8E05E25FE200B42EE0 /* ta_version.c */, + ); + path = ta_common; + sourceTree = ""; + }; + 3A48BAE705E25FE300B42EE0 /* ta_func */ = { + isa = PBXGroup; + children = ( + 3AA0ADF70C95AC010072E088 /* ta_ACOS.c */, + 3AA0ADF80C95AC010072E088 /* ta_ADD.c */, + 3AA0ADF90C95AC010072E088 /* ta_ASIN.c */, + 3AA0ADFA0C95AC010072E088 /* ta_ATAN.c */, + 3AA0ADD10C95AB080072E088 /* ta_CEIL.c */, + 3AA0ADD20C95AB080072E088 /* ta_COS.c */, + 3AA0ADD30C95AB080072E088 /* ta_COSH.c */, + 3AA0ADD40C95AB080072E088 /* ta_DIV.c */, + 3AA0ADD50C95AB080072E088 /* ta_EXP.c */, + 3AA0ADD60C95AB080072E088 /* ta_FLOOR.c */, + 3AA0ADD70C95AB080072E088 /* ta_LN.c */, + 3AA0ADD80C95AB080072E088 /* ta_LOG10.c */, + 3AA0ADD90C95AB080072E088 /* ta_MULT.c */, + 3AA0ADDA0C95AB080072E088 /* ta_SIN.c */, + 3AA0ADDB0C95AB080072E088 /* ta_SINH.c */, + 3AA0ADDC0C95AB080072E088 /* ta_SQRT.c */, + 3AA0ADDD0C95AB080072E088 /* ta_SUB.c */, + 3AA0ADDE0C95AB080072E088 /* ta_TAN.c */, + 3AA0ADDF0C95AB080072E088 /* ta_TANH.c */, + 3A9C4D8C0BA7361A00B6D766 /* ta_BETA.c */, + 3A9C4D8D0BA7361A00B6D766 /* ta_MAVP.c */, + 3A9C4D8E0BA7361A00B6D766 /* ta_MAXINDEX.c */, + 3A9C4D8F0BA7361A00B6D766 /* ta_MININDEX.c */, + 3A9C4D900BA7361A00B6D766 /* ta_MINMAX.c */, + 3A9C4D910BA7361A00B6D766 /* ta_MINMAXINDEX.c */, + 3A9C4D920BA7361A00B6D766 /* ta_NATR.c */, + 3A1B2BC509E909F2000A8E98 /* ta_SUM.c */, + 3A3370F9097E1DDC00082D6C /* ta_BOP.c */, + 3A3370FA097E1DDC00082D6C /* ta_CDLHIKKAKE.c */, + 3A3370FB097E1DDC00082D6C /* ta_CDLHIKKAKEMOD.c */, + 3A3370FC097E1DDC00082D6C /* ta_CMO.c */, + 3AC7C3CD080C313900D11B6F /* ta_CDL2CROWS.c */, + 3AC7C3CE080C313900D11B6F /* ta_CDL3INSIDE.c */, + 3AC7C3CF080C313900D11B6F /* ta_CDL3LINESTRIKE.c */, + 3AC7C3D0080C313900D11B6F /* ta_CDL3OUTSIDE.c */, + 3AC7C3D1080C313900D11B6F /* ta_CDL3STARSINSOUTH.c */, + 3AC7C3D2080C313900D11B6F /* ta_CDL3WHITESOLDIERS.c */, + 3AC7C3D3080C313900D11B6F /* ta_CDLADVANCEBLOCK.c */, + 3AC7C3D4080C313900D11B6F /* ta_CDLBELTHOLD.c */, + 3AC7C3D5080C313900D11B6F /* ta_CDLBREAKAWAY.c */, + 3AC7C3D6080C313900D11B6F /* ta_CDLCLOSINGMARUBOZU.c */, + 3AC7C3D7080C313900D11B6F /* ta_CDLCONCEALBABYSWALL.c */, + 3AC7C3D8080C313900D11B6F /* ta_CDLCOUNTERATTACK.c */, + 3AC7C3D9080C313900D11B6F /* ta_CDLDARKCLOUDCOVER.c */, + 3AC7C3DA080C313900D11B6F /* ta_CDLDOJI.c */, + 3AC7C3DB080C313900D11B6F /* ta_CDLDRAGONFLYDOJI.c */, + 3AC7C3DC080C313900D11B6F /* ta_CDLGAPSIDESIDEWHITE.c */, + 3AC7C3DD080C313900D11B6F /* ta_CDLGRAVESTONEDOJI.c */, + 3AC7C3DE080C313900D11B6F /* ta_CDLHOMINGPIGEON.c */, + 3AC7C3DF080C313900D11B6F /* ta_CDLINNECK.c */, + 3AC7C3E0080C313900D11B6F /* ta_CDLKICKING.c */, + 3AC7C3E1080C313900D11B6F /* ta_CDLKICKINGBYLENGTH.c */, + 3AC7C3E2080C313900D11B6F /* ta_CDLLADDERBOTTOM.c */, + 3AC7C3E3080C313900D11B6F /* ta_CDLLONGLEGGEDDOJI.c */, + 3AC7C3E4080C313900D11B6F /* ta_CDLMARUBOZU.c */, + 3AC7C3E5080C313900D11B6F /* ta_CDLMATCHINGLOW.c */, + 3AC7C3E6080C313900D11B6F /* ta_CDLMATHOLD.c */, + 3AC7C3E7080C313900D11B6F /* ta_CDLONNECK.c */, + 3AC7C3E8080C313900D11B6F /* ta_CDLPIERCING.c */, + 3AC7C3E9080C313900D11B6F /* ta_CDLRICKSHAWMAN.c */, + 3AC7C3EA080C313900D11B6F /* ta_CDLRISEFALL3METHODS.c */, + 3AC7C3EB080C313900D11B6F /* ta_CDLSEPARATINGLINES.c */, + 3AC7C3EC080C313900D11B6F /* ta_CDLSTALLEDPATTERN.c */, + 3AC7C3ED080C313900D11B6F /* ta_CDLSTICKSANDWICH.c */, + 3AC7C3EE080C313900D11B6F /* ta_CDLTAKURI.c */, + 3AC7C3EF080C313900D11B6F /* ta_CDLTASUKIGAP.c */, + 3AC7C3F0080C313900D11B6F /* ta_CDLTHRUSTING.c */, + 3AC7C3F1080C313900D11B6F /* ta_CDLUNIQUE3RIVER.c */, + 3AC7C3F2080C313900D11B6F /* ta_CDLXSIDEGAP3METHODS.c */, + 3ADCEA8F075875960004A780 /* ta_CDL3BLACKCROWS.c */, + 3ADCEA90075875960004A780 /* ta_CDLABANDONEDBABY.c */, + 3ADCEA91075875960004A780 /* ta_CDLENGULFING.c */, + 3ADCEA92075875960004A780 /* ta_CDLHAMMER.c */, + 3ADCEA93075875960004A780 /* ta_CDLHANGINGMAN.c */, + 3ADCEA94075875960004A780 /* ta_CDLHARAMI.c */, + 3ADCEA95075875960004A780 /* ta_CDLHARAMICROSS.c */, + 3ADCEA96075875960004A780 /* ta_CDLIDENTICAL3CROWS.c */, + 3ADCEA97075875960004A780 /* ta_CDLINVERTEDHAMMER.c */, + 3ADCEA98075875960004A780 /* ta_CDLSHOOTINGSTAR.c */, + 3ADCEA99075875960004A780 /* ta_CDLUPSIDEGAP2CROWS.c */, + 3A35CD8A0735FAC1001993D0 /* ta_CDLDOJISTAR.c */, + 3A35CD8B0735FAC1001993D0 /* ta_CDLEVENINGDOJISTAR.c */, + 3A35CD8C0735FAC1001993D0 /* ta_CDLEVENINGSTAR.c */, + 3A35CD8D0735FAC1001993D0 /* ta_CDLMORNINGDOJISTAR.c */, + 3A35CD8E0735FAC1001993D0 /* ta_CDLMORNINGSTAR.c */, + 3A35CD8F0735FAC1001993D0 /* ta_CDLTRISTAR.c */, + 3A742EC706E8458B004F675D /* ta_CDLHIGHWAVE.c */, + 3A742EC806E8458B004F675D /* ta_CDLLONGLINE.c */, + 3A742EC906E8458B004F675D /* ta_CDLSHORTLINE.c */, + 3A742ECA06E8458B004F675D /* ta_CDLSPINNINGTOP.c */, + 3A48BAE805E25FE300B42EE0 /* ta_AD.c */, + 3A48BAE905E25FE300B42EE0 /* ta_ADOSC.c */, + 3A48BAEA05E25FE300B42EE0 /* ta_ADX.c */, + 3A48BAEB05E25FE300B42EE0 /* ta_ADXR.c */, + 3A48BAEC05E25FE300B42EE0 /* ta_APO.c */, + 3A48BAED05E25FE300B42EE0 /* ta_AROON.c */, + 3A48BAEE05E25FE300B42EE0 /* ta_AROONOSC.c */, + 3A48BAEF05E25FE300B42EE0 /* ta_ATR.c */, + 3A48BAF005E25FE300B42EE0 /* ta_AVGPRICE.c */, + 3A48BAF105E25FE300B42EE0 /* ta_BBANDS.c */, + 3A48BAF205E25FE300B42EE0 /* ta_CCI.c */, + 3A48BAF305E25FE300B42EE0 /* ta_CORREL.c */, + 3A48BAF405E25FE300B42EE0 /* ta_DEMA.c */, + 3A48BAF505E25FE300B42EE0 /* ta_DX.c */, + 3A48BAF605E25FE300B42EE0 /* ta_EMA.c */, + 3A48BAF705E25FE300B42EE0 /* ta_HT_DCPERIOD.c */, + 3A48BAF805E25FE300B42EE0 /* ta_HT_DCPHASE.c */, + 3A48BAF905E25FE300B42EE0 /* ta_HT_PHASOR.c */, + 3A48BAFA05E25FE300B42EE0 /* ta_HT_SINE.c */, + 3A48BAFB05E25FE300B42EE0 /* ta_HT_TRENDLINE.c */, + 3A48BAFC05E25FE300B42EE0 /* ta_HT_TRENDMODE.c */, + 3A48BAFD05E25FE300B42EE0 /* ta_KAMA.c */, + 3A48BAFE05E25FE300B42EE0 /* ta_LINEARREG.c */, + 3A48BAFF05E25FE300B42EE0 /* ta_LINEARREG_ANGLE.c */, + 3A48BB0005E25FE300B42EE0 /* ta_LINEARREG_INTERCEPT.c */, + 3A48BB0105E25FE300B42EE0 /* ta_LINEARREG_SLOPE.c */, + 3A48BB0205E25FE300B42EE0 /* ta_MA.c */, + 3A48BB0305E25FE300B42EE0 /* ta_MACD.c */, + 3A48BB0405E25FE300B42EE0 /* ta_MACDEXT.c */, + 3A48BB0505E25FE300B42EE0 /* ta_MACDFIX.c */, + 3A48BB0605E25FE300B42EE0 /* ta_MAMA.c */, + 3A48BB0705E25FE300B42EE0 /* ta_MAX.c */, + 3A48BB0805E25FE300B42EE0 /* ta_MEDPRICE.c */, + 3A48BB0905E25FE300B42EE0 /* ta_MFI.c */, + 3A48BB0A05E25FE300B42EE0 /* ta_MIDPOINT.c */, + 3A48BB0B05E25FE300B42EE0 /* ta_MIDPRICE.c */, + 3A48BB0C05E25FE300B42EE0 /* ta_MIN.c */, + 3A48BB0D05E25FE300B42EE0 /* ta_MINUS_DI.c */, + 3A48BB0E05E25FE300B42EE0 /* ta_MINUS_DM.c */, + 3A48BB0F05E25FE300B42EE0 /* ta_MOM.c */, + 3A48BB1005E25FE300B42EE0 /* ta_NVI.c */, + 3A48BB1105E25FE300B42EE0 /* ta_OBV.c */, + 3A48BB1205E25FE300B42EE0 /* ta_PLUS_DI.c */, + 3A48BB1305E25FE300B42EE0 /* ta_PLUS_DM.c */, + 3A48BB1405E25FE300B42EE0 /* ta_PPO.c */, + 3A48BB1505E25FE300B42EE0 /* ta_PVI.c */, + 3A48BB1605E25FE300B42EE0 /* ta_ROC.c */, + 3A48BB1705E25FE300B42EE0 /* ta_ROCP.c */, + 3A48BB1805E25FE300B42EE0 /* ta_ROCR.c */, + 3A48BB1905E25FE300B42EE0 /* ta_ROCR100.c */, + 3A48BB1A05E25FE300B42EE0 /* ta_RSI.c */, + 3A48BB1B05E25FE300B42EE0 /* ta_SAR.c */, + 3A48BB1C05E25FE300B42EE0 /* ta_SAREXT.c */, + 3A48BB1D05E25FE300B42EE0 /* ta_SMA.c */, + 3A48BB1E05E25FE300B42EE0 /* ta_STDDEV.c */, + 3A48BB1F05E25FE300B42EE0 /* ta_STOCH.c */, + 3A48BB2005E25FE300B42EE0 /* ta_STOCHF.c */, + 3A48BB2105E25FE300B42EE0 /* ta_STOCHRSI.c */, + 3A48BB2205E25FE300B42EE0 /* ta_T3.c */, + 3A48BB2305E25FE300B42EE0 /* ta_TEMA.c */, + 3A48BB2405E25FE300B42EE0 /* ta_TRANGE.c */, + 3A48BB2505E25FE300B42EE0 /* ta_TRIMA.c */, + 3A48BB2605E25FE300B42EE0 /* ta_TRIX.c */, + 3A48BB2705E25FE300B42EE0 /* ta_TSF.c */, + 3A48BB2805E25FE300B42EE0 /* ta_TYPPRICE.c */, + 3A48BB2905E25FE300B42EE0 /* ta_utility.c */, + 3A48BB2A05E25FE300B42EE0 /* ta_utility.h */, + 3A3370FD097E1DDC00082D6C /* ta_ULTOSC.c */, + 3A48BB2B05E25FE300B42EE0 /* ta_VAR.c */, + 3A48BB2C05E25FE300B42EE0 /* ta_WCLPRICE.c */, + 3A48BB2D05E25FE300B42EE0 /* ta_WILLR.c */, + 3A48BB2E05E25FE300B42EE0 /* ta_WMA.c */, + ); + path = ta_func; + sourceTree = ""; + }; + 3A59A16E05F09E96005A4582 /* ta_abstract */ = { + isa = PBXGroup; + children = ( + 3A59A17005F09E96005A4582 /* frames */, + 3A59A17305F09E96005A4582 /* ta_abstract.c */, + 3A59A17405F09E96005A4582 /* ta_def_ui.c */, + 3A59A17505F09E96005A4582 /* ta_def_ui.h */, + 3A59A17605F09E96005A4582 /* ta_frame_priv.h */, + CCF321D10BA792540014ABA6 /* ta_func_api.c */, + 3A59A17705F09E96005A4582 /* ta_group_idx.c */, + 3A59A17805F09E96005A4582 /* tables */, + ); + name = ta_abstract; + path = ../../../src/ta_abstract; + sourceTree = SOURCE_ROOT; + }; + 3A59A17005F09E96005A4582 /* frames */ = { + isa = PBXGroup; + children = ( + 3A59A17105F09E96005A4582 /* ta_frame.c */, + 3A59A17205F09E96005A4582 /* ta_frame.h */, + ); + path = frames; + sourceTree = ""; + }; + 3A59A17805F09E96005A4582 /* tables */ = { + isa = PBXGroup; + children = ( + 3A59A17905F09E96005A4582 /* table_a.c */, + 3A59A17A05F09E96005A4582 /* table_b.c */, + 3A59A17B05F09E96005A4582 /* table_c.c */, + 3A59A17C05F09E96005A4582 /* table_d.c */, + 3A59A17D05F09E96005A4582 /* table_e.c */, + 3A59A17E05F09E96005A4582 /* table_f.c */, + 3A59A17F05F09E96005A4582 /* table_g.c */, + 3A59A18005F09E96005A4582 /* table_h.c */, + 3A59A18105F09E96005A4582 /* table_i.c */, + 3A59A18205F09E96005A4582 /* table_j.c */, + 3A59A18305F09E96005A4582 /* table_k.c */, + 3A59A18405F09E96005A4582 /* table_l.c */, + 3A59A18505F09E97005A4582 /* table_m.c */, + 3A59A18605F09E97005A4582 /* table_n.c */, + 3A59A18705F09E97005A4582 /* table_o.c */, + 3A59A18805F09E97005A4582 /* table_p.c */, + 3A59A18905F09E97005A4582 /* table_q.c */, + 3A59A18A05F09E97005A4582 /* table_r.c */, + 3A59A18B05F09E97005A4582 /* table_s.c */, + 3A59A18C05F09E97005A4582 /* table_t.c */, + 3A59A18D05F09E97005A4582 /* table_u.c */, + 3A59A18E05F09E97005A4582 /* table_v.c */, + 3A59A18F05F09E97005A4582 /* table_w.c */, + 3A59A19005F09E97005A4582 /* table_x.c */, + 3A59A19105F09E97005A4582 /* table_y.c */, + 3A59A19205F09E97005A4582 /* table_z.c */, + ); + path = tables; + sourceTree = ""; + }; + CCF321600BA789470014ABA6 /* Regression Tests */ = { + isa = PBXGroup; + children = ( + CCF321610BA789CC0014ABA6 /* ReadMe.txt */, + CCF321620BA789CC0014ABA6 /* ta_error_number.h */, + CCF321630BA789CC0014ABA6 /* ta_regtest.c */, + CCF321640BA789CC0014ABA6 /* ta_test_func */, + CCF321790BA789CC0014ABA6 /* ta_test_func.h */, + CCF3217A0BA789CC0014ABA6 /* ta_test_priv.h */, + CCF3217B0BA789CC0014ABA6 /* test_abstract.c */, + CCF3217C0BA789CC0014ABA6 /* test_data.c */, + CCF3217D0BA789CC0014ABA6 /* test_internals.c */, + CCF3217E0BA789CC0014ABA6 /* test_util.c */, + ); + name = "Regression Tests"; + sourceTree = ""; + }; + CCF321640BA789CC0014ABA6 /* ta_test_func */ = { + isa = PBXGroup; + children = ( + CCF321650BA789CC0014ABA6 /* test_1in_1out.c */, + CCF321660BA789CC0014ABA6 /* test_1in_2out.c */, + CCF321670BA789CC0014ABA6 /* test_adx.c */, + CCF321680BA789CC0014ABA6 /* test_bbands.c */, + CCF321690BA789CC0014ABA6 /* test_candlestick.c */, + CCF3216A0BA789CC0014ABA6 /* test_ma.c */, + CCF3216B0BA789CC0014ABA6 /* test_macd.c */, + CCF3216C0BA789CC0014ABA6 /* test_minmax.c */, + CCF3216D0BA789CC0014ABA6 /* test_mom.c */, + CCF3216E0BA789CC0014ABA6 /* test_per_ema.c */, + CCF3216F0BA789CC0014ABA6 /* test_per_hl.c */, + CCF321700BA789CC0014ABA6 /* test_per_hlc.c */, + CCF321710BA789CC0014ABA6 /* test_per_hlcv.c */, + CCF321720BA789CC0014ABA6 /* test_per_ohlc.c */, + CCF321730BA789CC0014ABA6 /* test_po.c */, + CCF321740BA789CC0014ABA6 /* test_rsi.c */, + CCF321750BA789CC0014ABA6 /* test_sar.c */, + CCF321760BA789CC0014ABA6 /* test_stddev.c */, + CCF321770BA789CC0014ABA6 /* test_stoch.c */, + CCF321780BA789CC0014ABA6 /* test_trange.c */, + ); + name = ta_test_func; + path = ../../../src/tools/ta_regtest/ta_test_func; + sourceTree = SOURCE_ROOT; + }; +/* End PBXGroup section */ + +/* Begin PBXHeadersBuildPhase section */ + 8D07F2BD0486CC7A007CD1D0 /* Headers */ = { + isa = PBXHeadersBuildPhase; + buildActionMask = 2147483647; + files = ( + 3A48BC5605E25FE500B42EE0 /* ta_abstract.h in Headers */, + 3A48BC5705E25FE500B42EE0 /* ta_common.h in Headers */, + 3A48BC5905E25FE500B42EE0 /* ta_defs.h in Headers */, + 3A48BC5A05E25FE500B42EE0 /* ta_func.h in Headers */, + 3A48BC5B05E25FE500B42EE0 /* ta_libc.h in Headers */, + 3A48BF2105E25FE600B42EE0 /* ta_global.h in Headers */, + 3A48BF2405E25FE600B42EE0 /* ta_magic_nb.h in Headers */, + 3A48BF2605E25FE600B42EE0 /* ta_memory.h in Headers */, + 3A48BFC305E25FE600B42EE0 /* ta_utility.h in Headers */, + 3A59A19D05F09E97005A4582 /* ta_frame.h in Headers */, + 3A59A1A005F09E97005A4582 /* ta_def_ui.h in Headers */, + 3A59A1A105F09E97005A4582 /* ta_frame_priv.h in Headers */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXHeadersBuildPhase section */ + +/* Begin PBXNativeTarget section */ + 8D07F2BC0486CC7A007CD1D0 /* TALib */ = { + isa = PBXNativeTarget; + buildConfigurationList = 3A17093C089D33AE00A96AC2 /* Build configuration list for PBXNativeTarget "TALib" */; + buildPhases = ( + 8D07F2BD0486CC7A007CD1D0 /* Headers */, + 8D07F2BF0486CC7A007CD1D0 /* Resources */, + 8D07F2C10486CC7A007CD1D0 /* Sources */, + 8D07F2C30486CC7A007CD1D0 /* Frameworks */, + 8D07F2C50486CC7A007CD1D0 /* Rez */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = TALib; + productInstallPath = "$(HOME)/Library/Frameworks"; + productName = TALib; + productReference = 8D07F2C80486CC7A007CD1D0 /* TALib.framework */; + productType = "com.apple.product-type.framework"; + }; + CCF3214A0BA7887D0014ABA6 /* Regression Tests */ = { + isa = PBXNativeTarget; + buildConfigurationList = CCF3214D0BA788B10014ABA6 /* Build configuration list for PBXNativeTarget "Regression Tests" */; + buildPhases = ( + CCF321480BA7887D0014ABA6 /* Sources */, + CCF321490BA7887D0014ABA6 /* Frameworks */, + ); + buildRules = ( + ); + dependencies = ( + CCF321510BA788D40014ABA6 /* PBXTargetDependency */, + ); + name = "Regression Tests"; + productName = "Regression Tests"; + productReference = CCF3214B0BA7887D0014ABA6 /* Regression Tests */; + productType = "com.apple.product-type.tool"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 0867D690FE84028FC02AAC07 /* Project object */ = { + isa = PBXProject; + buildConfigurationList = 3A170940089D33AE00A96AC2 /* Build configuration list for PBXProject "TALib" */; + hasScannedForEncodings = 1; + mainGroup = 0867D691FE84028FC02AAC07 /* TALib */; + productRefGroup = 034768DDFF38A45A11DB9C8B /* Products */; + projectDirPath = ""; + targets = ( + 8D07F2BC0486CC7A007CD1D0 /* TALib */, + CCF3214A0BA7887D0014ABA6 /* Regression Tests */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 8D07F2BF0486CC7A007CD1D0 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 8D07F2C00486CC7A007CD1D0 /* InfoPlist.strings in Resources */, + 3A48BF2A05E25FE600B42EE0 /* ta_retcode.csv in Resources */, + 3A9C4D8B0BA735E500B6D766 /* Info.plist in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXRezBuildPhase section */ + 8D07F2C50486CC7A007CD1D0 /* Rez */ = { + isa = PBXRezBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXRezBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 8D07F2C10486CC7A007CD1D0 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 3A48BF2005E25FE600B42EE0 /* ta_global.c in Sources */, + 3A48BF2905E25FE600B42EE0 /* ta_retcode.c in Sources */, + 3A48BF3405E25FE600B42EE0 /* ta_version.c in Sources */, + 3A48BF8105E25FE600B42EE0 /* ta_AD.c in Sources */, + 3A48BF8205E25FE600B42EE0 /* ta_ADOSC.c in Sources */, + 3A48BF8305E25FE600B42EE0 /* ta_ADX.c in Sources */, + 3A48BF8405E25FE600B42EE0 /* ta_ADXR.c in Sources */, + 3A48BF8505E25FE600B42EE0 /* ta_APO.c in Sources */, + 3A48BF8605E25FE600B42EE0 /* ta_AROON.c in Sources */, + 3A48BF8705E25FE600B42EE0 /* ta_AROONOSC.c in Sources */, + 3A48BF8805E25FE600B42EE0 /* ta_ATR.c in Sources */, + 3A48BF8905E25FE600B42EE0 /* ta_AVGPRICE.c in Sources */, + 3A48BF8A05E25FE600B42EE0 /* ta_BBANDS.c in Sources */, + 3A48BF8B05E25FE600B42EE0 /* ta_CCI.c in Sources */, + 3A48BF8C05E25FE600B42EE0 /* ta_CORREL.c in Sources */, + 3A48BF8D05E25FE600B42EE0 /* ta_DEMA.c in Sources */, + 3A48BF8E05E25FE600B42EE0 /* ta_DX.c in Sources */, + 3A48BF8F05E25FE600B42EE0 /* ta_EMA.c in Sources */, + 3A48BF9005E25FE600B42EE0 /* ta_HT_DCPERIOD.c in Sources */, + 3A48BF9105E25FE600B42EE0 /* ta_HT_DCPHASE.c in Sources */, + 3A48BF9205E25FE600B42EE0 /* ta_HT_PHASOR.c in Sources */, + 3A48BF9305E25FE600B42EE0 /* ta_HT_SINE.c in Sources */, + 3A48BF9405E25FE600B42EE0 /* ta_HT_TRENDLINE.c in Sources */, + 3A48BF9505E25FE600B42EE0 /* ta_HT_TRENDMODE.c in Sources */, + 3A48BF9605E25FE600B42EE0 /* ta_KAMA.c in Sources */, + 3A48BF9705E25FE600B42EE0 /* ta_LINEARREG.c in Sources */, + 3A48BF9805E25FE600B42EE0 /* ta_LINEARREG_ANGLE.c in Sources */, + 3A48BF9905E25FE600B42EE0 /* ta_LINEARREG_INTERCEPT.c in Sources */, + 3A48BF9A05E25FE600B42EE0 /* ta_LINEARREG_SLOPE.c in Sources */, + 3A48BF9B05E25FE600B42EE0 /* ta_MA.c in Sources */, + 3A48BF9C05E25FE600B42EE0 /* ta_MACD.c in Sources */, + 3A48BF9D05E25FE600B42EE0 /* ta_MACDEXT.c in Sources */, + 3A48BF9E05E25FE600B42EE0 /* ta_MACDFIX.c in Sources */, + 3A48BF9F05E25FE600B42EE0 /* ta_MAMA.c in Sources */, + 3A48BFA005E25FE600B42EE0 /* ta_MAX.c in Sources */, + 3A48BFA105E25FE600B42EE0 /* ta_MEDPRICE.c in Sources */, + 3A48BFA205E25FE600B42EE0 /* ta_MFI.c in Sources */, + 3A48BFA305E25FE600B42EE0 /* ta_MIDPOINT.c in Sources */, + 3A48BFA405E25FE600B42EE0 /* ta_MIDPRICE.c in Sources */, + 3A48BFA505E25FE600B42EE0 /* ta_MIN.c in Sources */, + 3A48BFA605E25FE600B42EE0 /* ta_MINUS_DI.c in Sources */, + 3A48BFA705E25FE600B42EE0 /* ta_MINUS_DM.c in Sources */, + 3A48BFA805E25FE600B42EE0 /* ta_MOM.c in Sources */, + 3A48BFA905E25FE600B42EE0 /* ta_NVI.c in Sources */, + 3A48BFAA05E25FE600B42EE0 /* ta_OBV.c in Sources */, + 3A48BFAB05E25FE600B42EE0 /* ta_PLUS_DI.c in Sources */, + 3A48BFAC05E25FE600B42EE0 /* ta_PLUS_DM.c in Sources */, + 3A48BFAD05E25FE600B42EE0 /* ta_PPO.c in Sources */, + 3A48BFAE05E25FE600B42EE0 /* ta_PVI.c in Sources */, + 3A48BFAF05E25FE600B42EE0 /* ta_ROC.c in Sources */, + 3A48BFB005E25FE600B42EE0 /* ta_ROCP.c in Sources */, + 3A48BFB105E25FE600B42EE0 /* ta_ROCR.c in Sources */, + 3A48BFB205E25FE600B42EE0 /* ta_ROCR100.c in Sources */, + 3A48BFB305E25FE600B42EE0 /* ta_RSI.c in Sources */, + 3A48BFB405E25FE600B42EE0 /* ta_SAR.c in Sources */, + 3A48BFB505E25FE600B42EE0 /* ta_SAREXT.c in Sources */, + 3A48BFB605E25FE600B42EE0 /* ta_SMA.c in Sources */, + 3A48BFB705E25FE600B42EE0 /* ta_STDDEV.c in Sources */, + 3A48BFB805E25FE600B42EE0 /* ta_STOCH.c in Sources */, + 3A48BFB905E25FE600B42EE0 /* ta_STOCHF.c in Sources */, + 3A48BFBA05E25FE600B42EE0 /* ta_STOCHRSI.c in Sources */, + 3A48BFBB05E25FE600B42EE0 /* ta_T3.c in Sources */, + 3A48BFBC05E25FE600B42EE0 /* ta_TEMA.c in Sources */, + 3A48BFBD05E25FE600B42EE0 /* ta_TRANGE.c in Sources */, + 3A48BFBE05E25FE600B42EE0 /* ta_TRIMA.c in Sources */, + 3A48BFBF05E25FE600B42EE0 /* ta_TRIX.c in Sources */, + 3A48BFC005E25FE600B42EE0 /* ta_TSF.c in Sources */, + 3A48BFC105E25FE600B42EE0 /* ta_TYPPRICE.c in Sources */, + 3A48BFC205E25FE600B42EE0 /* ta_utility.c in Sources */, + 3A48BFC405E25FE600B42EE0 /* ta_VAR.c in Sources */, + 3A48BFC505E25FE600B42EE0 /* ta_WCLPRICE.c in Sources */, + 3A48BFC605E25FE600B42EE0 /* ta_WILLR.c in Sources */, + 3A48BFC705E25FE600B42EE0 /* ta_WMA.c in Sources */, + 3A59A19C05F09E97005A4582 /* ta_frame.c in Sources */, + 3A59A19E05F09E97005A4582 /* ta_abstract.c in Sources */, + 3A59A19F05F09E97005A4582 /* ta_def_ui.c in Sources */, + 3A59A1A205F09E97005A4582 /* ta_group_idx.c in Sources */, + 3A59A1A305F09E97005A4582 /* table_a.c in Sources */, + 3A59A1A405F09E97005A4582 /* table_b.c in Sources */, + 3A59A1A505F09E97005A4582 /* table_c.c in Sources */, + 3A59A1A605F09E97005A4582 /* table_d.c in Sources */, + 3A59A1A705F09E97005A4582 /* table_e.c in Sources */, + 3A59A1A805F09E97005A4582 /* table_f.c in Sources */, + 3A59A1A905F09E97005A4582 /* table_g.c in Sources */, + 3A59A1AA05F09E97005A4582 /* table_h.c in Sources */, + 3A59A1AB05F09E97005A4582 /* table_i.c in Sources */, + 3A59A1AC05F09E97005A4582 /* table_j.c in Sources */, + 3A59A1AD05F09E97005A4582 /* table_k.c in Sources */, + 3A59A1AE05F09E97005A4582 /* table_l.c in Sources */, + 3A59A1AF05F09E97005A4582 /* table_m.c in Sources */, + 3A59A1B005F09E97005A4582 /* table_n.c in Sources */, + 3A59A1B105F09E97005A4582 /* table_o.c in Sources */, + 3A59A1B205F09E97005A4582 /* table_p.c in Sources */, + 3A59A1B305F09E97005A4582 /* table_q.c in Sources */, + 3A59A1B405F09E97005A4582 /* table_r.c in Sources */, + 3A59A1B505F09E97005A4582 /* table_s.c in Sources */, + 3A59A1B605F09E97005A4582 /* table_t.c in Sources */, + 3A59A1B705F09E97005A4582 /* table_u.c in Sources */, + 3A59A1B805F09E97005A4582 /* table_v.c in Sources */, + 3A59A1B905F09E97005A4582 /* table_w.c in Sources */, + 3A59A1BA05F09E97005A4582 /* table_x.c in Sources */, + 3A59A1BB05F09E97005A4582 /* table_y.c in Sources */, + 3A59A1BC05F09E97005A4582 /* table_z.c in Sources */, + 3A742ECB06E8458C004F675D /* ta_CDLHIGHWAVE.c in Sources */, + 3A742ECC06E8458C004F675D /* ta_CDLLONGLINE.c in Sources */, + 3A742ECD06E8458C004F675D /* ta_CDLSHORTLINE.c in Sources */, + 3A742ECE06E8458C004F675D /* ta_CDLSPINNINGTOP.c in Sources */, + 3A35CD900735FAC1001993D0 /* ta_CDLDOJISTAR.c in Sources */, + 3A35CD910735FAC1001993D0 /* ta_CDLEVENINGDOJISTAR.c in Sources */, + 3A35CD920735FAC1001993D0 /* ta_CDLEVENINGSTAR.c in Sources */, + 3A35CD930735FAC1001993D0 /* ta_CDLMORNINGDOJISTAR.c in Sources */, + 3A35CD940735FAC1001993D0 /* ta_CDLMORNINGSTAR.c in Sources */, + 3A35CD950735FAC1001993D0 /* ta_CDLTRISTAR.c in Sources */, + 3ADCEA9A075875960004A780 /* ta_CDL3BLACKCROWS.c in Sources */, + 3ADCEA9B075875960004A780 /* ta_CDLABANDONEDBABY.c in Sources */, + 3ADCEA9C075875960004A780 /* ta_CDLENGULFING.c in Sources */, + 3ADCEA9D075875960004A780 /* ta_CDLHAMMER.c in Sources */, + 3ADCEA9E075875960004A780 /* ta_CDLHANGINGMAN.c in Sources */, + 3ADCEA9F075875960004A780 /* ta_CDLHARAMI.c in Sources */, + 3ADCEAA0075875960004A780 /* ta_CDLHARAMICROSS.c in Sources */, + 3ADCEAA1075875960004A780 /* ta_CDLIDENTICAL3CROWS.c in Sources */, + 3ADCEAA2075875960004A780 /* ta_CDLINVERTEDHAMMER.c in Sources */, + 3ADCEAA3075875960004A780 /* ta_CDLSHOOTINGSTAR.c in Sources */, + 3ADCEAA4075875960004A780 /* ta_CDLUPSIDEGAP2CROWS.c in Sources */, + 3AC7C3F3080C313900D11B6F /* ta_CDL2CROWS.c in Sources */, + 3AC7C3F4080C313900D11B6F /* ta_CDL3INSIDE.c in Sources */, + 3AC7C3F5080C313900D11B6F /* ta_CDL3LINESTRIKE.c in Sources */, + 3AC7C3F6080C313900D11B6F /* ta_CDL3OUTSIDE.c in Sources */, + 3AC7C3F7080C313900D11B6F /* ta_CDL3STARSINSOUTH.c in Sources */, + 3AC7C3F8080C313900D11B6F /* ta_CDL3WHITESOLDIERS.c in Sources */, + 3AC7C3F9080C313900D11B6F /* ta_CDLADVANCEBLOCK.c in Sources */, + 3AC7C3FA080C313900D11B6F /* ta_CDLBELTHOLD.c in Sources */, + 3AC7C3FB080C313900D11B6F /* ta_CDLBREAKAWAY.c in Sources */, + 3AC7C3FC080C313900D11B6F /* ta_CDLCLOSINGMARUBOZU.c in Sources */, + 3AC7C3FD080C313900D11B6F /* ta_CDLCONCEALBABYSWALL.c in Sources */, + 3AC7C3FE080C313900D11B6F /* ta_CDLCOUNTERATTACK.c in Sources */, + 3AC7C3FF080C313900D11B6F /* ta_CDLDARKCLOUDCOVER.c in Sources */, + 3AC7C400080C313900D11B6F /* ta_CDLDOJI.c in Sources */, + 3AC7C401080C313900D11B6F /* ta_CDLDRAGONFLYDOJI.c in Sources */, + 3AC7C402080C313900D11B6F /* ta_CDLGAPSIDESIDEWHITE.c in Sources */, + 3AC7C403080C313900D11B6F /* ta_CDLGRAVESTONEDOJI.c in Sources */, + 3AC7C404080C313900D11B6F /* ta_CDLHOMINGPIGEON.c in Sources */, + 3AC7C405080C313900D11B6F /* ta_CDLINNECK.c in Sources */, + 3AC7C406080C313900D11B6F /* ta_CDLKICKING.c in Sources */, + 3AC7C407080C313900D11B6F /* ta_CDLKICKINGBYLENGTH.c in Sources */, + 3AC7C408080C313900D11B6F /* ta_CDLLADDERBOTTOM.c in Sources */, + 3AC7C409080C313900D11B6F /* ta_CDLLONGLEGGEDDOJI.c in Sources */, + 3AC7C40A080C313900D11B6F /* ta_CDLMARUBOZU.c in Sources */, + 3AC7C40B080C313900D11B6F /* ta_CDLMATCHINGLOW.c in Sources */, + 3AC7C40C080C313900D11B6F /* ta_CDLMATHOLD.c in Sources */, + 3AC7C40D080C313900D11B6F /* ta_CDLONNECK.c in Sources */, + 3AC7C40E080C313900D11B6F /* ta_CDLPIERCING.c in Sources */, + 3AC7C40F080C313900D11B6F /* ta_CDLRICKSHAWMAN.c in Sources */, + 3AC7C410080C313900D11B6F /* ta_CDLRISEFALL3METHODS.c in Sources */, + 3AC7C411080C313900D11B6F /* ta_CDLSEPARATINGLINES.c in Sources */, + 3AC7C412080C313900D11B6F /* ta_CDLSTALLEDPATTERN.c in Sources */, + 3AC7C413080C313900D11B6F /* ta_CDLSTICKSANDWICH.c in Sources */, + 3AC7C414080C313900D11B6F /* ta_CDLTAKURI.c in Sources */, + 3AC7C415080C313900D11B6F /* ta_CDLTASUKIGAP.c in Sources */, + 3AC7C416080C313900D11B6F /* ta_CDLTHRUSTING.c in Sources */, + 3AC7C417080C313900D11B6F /* ta_CDLUNIQUE3RIVER.c in Sources */, + 3AC7C418080C313900D11B6F /* ta_CDLXSIDEGAP3METHODS.c in Sources */, + 3A3370FE097E1DDC00082D6C /* ta_BOP.c in Sources */, + 3A3370FF097E1DDC00082D6C /* ta_CDLHIKKAKE.c in Sources */, + 3A337100097E1DDC00082D6C /* ta_CDLHIKKAKEMOD.c in Sources */, + 3A337101097E1DDC00082D6C /* ta_CMO.c in Sources */, + 3A337102097E1DDC00082D6C /* ta_ULTOSC.c in Sources */, + 3A1B2BC609E909F2000A8E98 /* ta_SUM.c in Sources */, + 3A9C4D930BA7361A00B6D766 /* ta_BETA.c in Sources */, + 3A9C4D940BA7361A00B6D766 /* ta_MAVP.c in Sources */, + 3A9C4D950BA7361A00B6D766 /* ta_MAXINDEX.c in Sources */, + 3A9C4D960BA7361A00B6D766 /* ta_MININDEX.c in Sources */, + 3A9C4D970BA7361A00B6D766 /* ta_MINMAX.c in Sources */, + 3A9C4D980BA7361A00B6D766 /* ta_MINMAXINDEX.c in Sources */, + 3A9C4D990BA7361A00B6D766 /* ta_NATR.c in Sources */, + CCF321D20BA792540014ABA6 /* ta_func_api.c in Sources */, + 3AA0ADE00C95AB080072E088 /* ta_CEIL.c in Sources */, + 3AA0ADE10C95AB080072E088 /* ta_COS.c in Sources */, + 3AA0ADE20C95AB080072E088 /* ta_COSH.c in Sources */, + 3AA0ADE30C95AB080072E088 /* ta_DIV.c in Sources */, + 3AA0ADE40C95AB080072E088 /* ta_EXP.c in Sources */, + 3AA0ADE50C95AB080072E088 /* ta_FLOOR.c in Sources */, + 3AA0ADE60C95AB080072E088 /* ta_LN.c in Sources */, + 3AA0ADE70C95AB080072E088 /* ta_LOG10.c in Sources */, + 3AA0ADE80C95AB080072E088 /* ta_MULT.c in Sources */, + 3AA0ADE90C95AB080072E088 /* ta_SIN.c in Sources */, + 3AA0ADEA0C95AB080072E088 /* ta_SINH.c in Sources */, + 3AA0ADEB0C95AB080072E088 /* ta_SQRT.c in Sources */, + 3AA0ADEC0C95AB080072E088 /* ta_SUB.c in Sources */, + 3AA0ADED0C95AB080072E088 /* ta_TAN.c in Sources */, + 3AA0ADEE0C95AB080072E088 /* ta_TANH.c in Sources */, + 3AA0ADFB0C95AC010072E088 /* ta_ACOS.c in Sources */, + 3AA0ADFC0C95AC010072E088 /* ta_ADD.c in Sources */, + 3AA0ADFD0C95AC010072E088 /* ta_ASIN.c in Sources */, + 3AA0ADFE0C95AC010072E088 /* ta_ATAN.c in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + CCF321480BA7887D0014ABA6 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + CCF3217F0BA789CC0014ABA6 /* ta_regtest.c in Sources */, + CCF321800BA789CC0014ABA6 /* test_1in_1out.c in Sources */, + CCF321810BA789CC0014ABA6 /* test_1in_2out.c in Sources */, + CCF321820BA789CC0014ABA6 /* test_adx.c in Sources */, + CCF321830BA789CC0014ABA6 /* test_bbands.c in Sources */, + CCF321840BA789CC0014ABA6 /* test_candlestick.c in Sources */, + CCF321850BA789CC0014ABA6 /* test_ma.c in Sources */, + CCF321860BA789CC0014ABA6 /* test_macd.c in Sources */, + CCF321870BA789CC0014ABA6 /* test_minmax.c in Sources */, + CCF321880BA789CC0014ABA6 /* test_mom.c in Sources */, + CCF321890BA789CC0014ABA6 /* test_per_ema.c in Sources */, + CCF3218A0BA789CC0014ABA6 /* test_per_hl.c in Sources */, + CCF3218B0BA789CC0014ABA6 /* test_per_hlc.c in Sources */, + CCF3218C0BA789CC0014ABA6 /* test_per_hlcv.c in Sources */, + CCF3218D0BA789CC0014ABA6 /* test_per_ohlc.c in Sources */, + CCF3218E0BA789CC0014ABA6 /* test_po.c in Sources */, + CCF3218F0BA789CC0014ABA6 /* test_rsi.c in Sources */, + CCF321900BA789CC0014ABA6 /* test_sar.c in Sources */, + CCF321910BA789CC0014ABA6 /* test_stddev.c in Sources */, + CCF321920BA789CC0014ABA6 /* test_stoch.c in Sources */, + CCF321930BA789CC0014ABA6 /* test_trange.c in Sources */, + CCF321940BA789CC0014ABA6 /* test_abstract.c in Sources */, + CCF321950BA789CC0014ABA6 /* test_data.c in Sources */, + CCF321960BA789CC0014ABA6 /* test_internals.c in Sources */, + CCF321970BA789CC0014ABA6 /* test_util.c in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + CCF321510BA788D40014ABA6 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 8D07F2BC0486CC7A007CD1D0 /* TALib */; + targetProxy = CCF321500BA788D40014ABA6 /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin PBXVariantGroup section */ + 089C1666FE841158C02AAC07 /* InfoPlist.strings */ = { + isa = PBXVariantGroup; + children = ( + 089C1667FE841158C02AAC07 /* English */, + ); + name = InfoPlist.strings; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + +/* Begin XCBuildConfiguration section */ + 3A17093D089D33AE00A96AC2 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + COPY_PHASE_STRIP = NO; + DEBUGGING_SYMBOLS = YES; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 0.1.5; + FRAMEWORK_SEARCH_PATHS = ""; + FRAMEWORK_VERSION = A; + GCC_ENABLE_TRIGRAPHS = NO; + GCC_GENERATE_DEBUGGING_SYMBOLS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PRECOMPILE_PREFIX_HEADER = NO; + GCC_PREFIX_HEADER = ""; + GCC_PREPROCESSOR_DEFINITIONS = ( + __UNIX__, + __unix__, + NO_DEBUG, + USE_NAMED_SEMAPHORES, + _REENTRANT, + QT_THREAD_SUPPORT, + ); + GCC_WARN_ABOUT_MISSING_PROTOTYPES = NO; + GCC_WARN_FOUR_CHARACTER_CONSTANTS = NO; + GCC_WARN_UNKNOWN_PRAGMAS = NO; + HEADER_SEARCH_PATHS = ( + /usr/include/malloc, + /usr/include, + ); + INFOPLIST_FILE = Info.plist; + INSTALL_PATH = "@executable_path/../Frameworks"; + LIBRARY_SEARCH_PATHS = /usr/lib; + LIBRARY_STYLE = DYNAMIC; + MACH_O_TYPE = mh_dylib; + OTHER_CFLAGS = "-fno-strict-aliasing"; + OTHER_LDFLAGS = ( + "-seg1addr", + 0x4f000000, + ); + PREBINDING = YES; + PRODUCT_NAME = TALib; + SECTORDER_FLAGS = ""; + WARNING_CFLAGS = ( + "-Wmost", + "-Wno-four-char-constants", + "-Wno-unknown-pragmas", + ); + WRAPPER_EXTENSION = framework; + }; + name = Debug; + }; + 3A17093E089D33AE00A96AC2 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + COPY_PHASE_STRIP = YES; + DYLIB_COMPATIBILITY_VERSION = 1; + DYLIB_CURRENT_VERSION = 0.1.5; + FRAMEWORK_SEARCH_PATHS = ""; + FRAMEWORK_VERSION = A; + GCC_ENABLE_TRIGRAPHS = NO; + GCC_GENERATE_DEBUGGING_SYMBOLS = NO; + GCC_PRECOMPILE_PREFIX_HEADER = NO; + GCC_PREFIX_HEADER = ""; + GCC_PREPROCESSOR_DEFINITIONS = ( + __UNIX__, + __unix__, + NO_DEBUG, + USE_NAMED_SEMAPHORES, + _REENTRANT, + QT_THREAD_SUPPORT, + ); + GCC_WARN_ABOUT_MISSING_PROTOTYPES = NO; + GCC_WARN_FOUR_CHARACTER_CONSTANTS = NO; + GCC_WARN_UNKNOWN_PRAGMAS = NO; + HEADER_SEARCH_PATHS = ( + /usr/include/malloc, + /usr/include, + ); + INFOPLIST_FILE = Info.plist; + INSTALL_PATH = "@executable_path/../Frameworks"; + LIBRARY_SEARCH_PATHS = /usr/lib; + LIBRARY_STYLE = DYNAMIC; + MACH_O_TYPE = mh_dylib; + OTHER_CFLAGS = "-fno-strict-aliasing"; + OTHER_LDFLAGS = ( + "-seg1addr", + 0x4f000000, + ); + PREBINDING = YES; + PRODUCT_NAME = TALib; + SECTORDER_FLAGS = ""; + WARNING_CFLAGS = ( + "-Wmost", + "-Wno-four-char-constants", + "-Wno-unknown-pragmas", + ); + WRAPPER_EXTENSION = framework; + }; + name = Release; + }; + 3A170941089D33AE00A96AC2 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ARCHS = ( + ppc, + i386, + ); + }; + name = Debug; + }; + 3A170942089D33AE00A96AC2 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ARCHS = ( + ppc, + i386, + ); + }; + name = Release; + }; + CCF3214E0BA788B10014ABA6 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ARCHS = ( + ppc, + i386, + ); + COPY_PHASE_STRIP = NO; + GCC_DYNAMIC_NO_PIC = NO; + GCC_ENABLE_FIX_AND_CONTINUE = YES; + GCC_GENERATE_DEBUGGING_SYMBOLS = YES; + GCC_MODEL_TUNING = G5; + GCC_OPTIMIZATION_LEVEL = 0; + INSTALL_PATH = "$(HOME)/bin"; + PREBINDING = NO; + PRODUCT_NAME = "Regression Tests"; + ZERO_LINK = NO; + }; + name = Debug; + }; + CCF3214F0BA788B10014ABA6 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ARCHS = ( + ppc, + i386, + ); + COPY_PHASE_STRIP = YES; + GCC_ENABLE_FIX_AND_CONTINUE = NO; + GCC_GENERATE_DEBUGGING_SYMBOLS = NO; + GCC_MODEL_TUNING = G5; + INSTALL_PATH = "$(HOME)/bin"; + PREBINDING = NO; + PRODUCT_NAME = "Regression Tests"; + ZERO_LINK = NO; + }; + name = Release; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 3A17093C089D33AE00A96AC2 /* Build configuration list for PBXNativeTarget "TALib" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 3A17093D089D33AE00A96AC2 /* Debug */, + 3A17093E089D33AE00A96AC2 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Debug; + }; + 3A170940089D33AE00A96AC2 /* Build configuration list for PBXProject "TALib" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 3A170941089D33AE00A96AC2 /* Debug */, + 3A170942089D33AE00A96AC2 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Debug; + }; + CCF3214D0BA788B10014ABA6 /* Build configuration list for PBXNativeTarget "Regression Tests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + CCF3214E0BA788B10014ABA6 /* Debug */, + CCF3214F0BA788B10014ABA6 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Debug; + }; +/* End XCConfigurationList section */ + }; + rootObject = 0867D690FE84028FC02AAC07 /* Project object */; +} diff --git a/ide/xcode/TALib/TALib_Prefix.pch b/ide/xcode/TALib/TALib_Prefix.pch new file mode 100644 index 000000000..7ea5cbfa2 --- /dev/null +++ b/ide/xcode/TALib/TALib_Prefix.pch @@ -0,0 +1,5 @@ +// +// Prefix header for all source files of the 'TALib' target in the 'TALib' project. +// + +#include diff --git a/ide/xcode/TALib/main.c b/ide/xcode/TALib/main.c new file mode 100644 index 000000000..416b14dc5 --- /dev/null +++ b/ide/xcode/TALib/main.c @@ -0,0 +1,3 @@ +/* This is the default source file for new frameworks. */ + +/* You can either fill in code here or remove this and create or add new files. */ diff --git a/ide/xcode/TALib/version.plist b/ide/xcode/TALib/version.plist new file mode 100644 index 000000000..169b5fae8 --- /dev/null +++ b/ide/xcode/TALib/version.plist @@ -0,0 +1,16 @@ + + + + + BuildVersion + 38 + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1.0 + ProjectName + CarbonProjectTemplates + SourceVersion + 140000 + + diff --git a/include/Makefile.am b/include/Makefile.am new file mode 100644 index 000000000..b99b6f178 --- /dev/null +++ b/include/Makefile.am @@ -0,0 +1,11 @@ + +bin_PRORAMS = libta_include + +libta_includedir=$(includedir)/ta-lib/ + +libta_include_HEADERS = ta_abstract.h + ta_defs.h \ + ta_libc.h \ + ta_common.h \ + ta_func.h \ + func_list.txt diff --git a/include/ta_abstract.h b/include/ta_abstract.h new file mode 100644 index 000000000..808b5ae43 --- /dev/null +++ b/include/ta_abstract.h @@ -0,0 +1,559 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +#ifndef TA_ABSTRACT_H +#define TA_ABSTRACT_H + +#ifndef TA_COMMON_H + #include "ta_common.h" +#endif + +#ifdef __cplusplus +extern "C" { +#endif + +/* This file defines the interface for calling all the TA functions without + * knowing at priori the parameters. + * + * This capability is particularly useful for an application who needs + * to support the complete list of TA functions without having to + * re-write new code each time a new function is added to TA-Lib. + * + * Example 1: + * Lets say you are doing a charting software. When the user select + * a price bar, a side list offers blindly all the TA functions + * that could be applied to a price bar. The user selects one of + * these, then a dialog open for allowing to adjust some parameter + * (TA-LIB will tell your software which parameter are needed and the + * valid range for each). Once all the parameter are set, you can + * call blindly the corresponding TA function. The returned + * information can then also blindly be drawn on the chart (some + * output flags allows to get some hint about how the data shall be + * displayed). + * The same "abstract" logic apply to all the TA functions. + * Some TA Functions works only on volume, or can work indiferently + * with any time serie data (the open, close, another indicator...). + * All the applicable functions to the currently selected/available + * data can be determined through this "virtual" interface. + * + * Example 2: + * Let's say you do not like the direct interface for + * calling the TA Functions, you can write a code that + * re-generate a different interface. This is already + * done even for the 'C' interface (ta_func.h is generated). + * + * Example 3: + * With the abstract interface you can easily generate + * glue code. Like generating an interface that integrates + * well within Perl... see the project SWIG if you are + * interested by such things. + * + * The abstract interface is used within TA-Lib to perform at least + * the following: + * - used by gen_code to generate all the glue code. + * - used by the Excel interface to call all the TA functions. + * - used to generate a XML representation of the TA functions. + */ + +/* The following functions are used to obtain the name of all the + * TA function groups ("Market Strength", "Trend Indicator" etc...). + * + * On success, it becomes the responsibility of the caller to + * call TA_GroupTableFree once the 'table' is no longuer needed. + * + * Example: + * This code snippet will print out the name of all the supported + * function group available: + * + * TA_StringTable *table; + * TA_RetCode retCode; + * int i; + * + * retCode = TA_GroupTableAlloc( &table ); + * + * if( retCode == TA_SUCCESS ) + * { + * for( i=0; i < table->size; i++ ) + * printf( "%s\n", table->string[i] ); + * + * TA_GroupTableFree( table ); + * } + */ +TA_RetCode TA_GroupTableAlloc( TA_StringTable **table ); +TA_RetCode TA_GroupTableFree ( TA_StringTable *table ); + +/* The following functions are used to obtain the name of all the + * function provided in a certain group. + * + * On success, it becomes the responsibility of the caller to + * call TA_FuncTableFree once the 'table' is no longuer needed. + * + * Passing NULL as the group string will return ALL the TA functions. + * (Note: All TA_Functions have a unique string identifier even when in + * seperate group). + * + * Example: + * This code snippet will print out the name of all the supported + * function in the "market strength" category: + * + * TA_StringTable *table; + * TA_RetCode retCode; + * int i; + * + * retCode = TA_FuncTableAlloc( "Market Strength", &table ); + * + * if( retCode == TA_SUCCESS ) + * { + * for( i=0; i < table->size; i++ ) + * printf( "%s\n", table->string[i] ); + * + * TA_FuncTableFree( table ); + * } + */ +TA_RetCode TA_FuncTableAlloc( const char *group, TA_StringTable **table ); +TA_RetCode TA_FuncTableFree ( TA_StringTable *table ); + +/* Using the name, you can obtain an handle unique to this function. + * This handle is further used for obtaining information on the + * parameters needed and also for potentially calling this TA function. + * + * For convenience, this handle can also be found in + * the TA_FuncInfo structure (see below). + */ +typedef unsigned int TA_FuncHandle; +TA_RetCode TA_GetFuncHandle( const char *name, + const TA_FuncHandle **handle ); + +/* Get some basic information about a function. + * + * A const pointer will be set on the corresponding TA_FuncInfo structure. + * The whole structure are hard coded constants and it can be assumed they + * will not change at runtime. + * + * Example: + * Print the number of inputs used by the MA (moving average) function. + * + * TA_RetCode retCode; + * TA_FuncHandle *handle; + * const TA_FuncInfo *theInfo; + * + * retCode = TA_GetFuncHandle( "MA", &handle ); + * + * if( retCode == TA_SUCCESS ) + * { + * retCode = TA_GetFuncInfo( handle, &theInfo ); + * if( retCode == TA_SUCCESS ) + * printf( "Nb Input = %d\n", theInfo->nbInput ); + * } + * + */ +typedef int TA_FuncFlags; +#define TA_FUNC_FLG_OVERLAP 0x01000000 /* Output scale same as input data. */ +#define TA_FUNC_FLG_VOLUME 0x04000000 /* Output shall be over the volume data. */ +#define TA_FUNC_FLG_UNST_PER 0x08000000 /* Indicate if this function have an unstable + * initial period. Some additional code exist + * for these functions for allowing to set that + * unstable period. See Documentation. + */ +#define TA_FUNC_FLG_CANDLESTICK 0x10000000 /* Output shall be a candlestick */ + +typedef struct TA_FuncInfo +{ + /* Constant information about the function. The + * information found in this structure is guarantee + * to not change at runtime. + */ + const char * name; + const char * group; + + const char * hint; + const char * camelCaseName; + TA_FuncFlags flags; + + unsigned int nbInput; + unsigned int nbOptInput; + unsigned int nbOutput; + + const TA_FuncHandle *handle; +} TA_FuncInfo; + +TA_RetCode TA_GetFuncInfo( const TA_FuncHandle *handle, + const TA_FuncInfo **funcInfo ); + + +/* An alternate way to access all the functions is through the + * use of the TA_ForEachFunc(). You can setup a function to be + * call back for each TA function in the TA-Lib. + * + * Example: + * This code will print the group and name of all available functions. + * + * void printFuncInfo( const TA_FuncInfo *funcInfo, void *opaqueData ) + * { + * printf( "Group=%s Name=%s\n", funcInfo->group, funcInfo->name ); + * } + * + * void displayListOfTAFunctions( void ) + * { + * TA_ForEachFunc( printFuncInfo, NULL ); + * } + */ +typedef void (*TA_CallForEachFunc)(const TA_FuncInfo *funcInfo, void *opaqueData ); + +TA_RetCode TA_ForEachFunc( TA_CallForEachFunc functionToCall, void *opaqueData ); + +/* The next section includes the data structures and function allowing to + * proceed with the call of a Tech. Analysis function. + * + * At first, it may seems a little bit complicated, but it is worth to take the + * effort to learn about it. Once you succeed to interface with TA-Abstract you get + * access to the complete library of TA functions at once without further effort. + */ + +/* Structures representing extended information on a parameter. */ + +typedef struct TA_RealRange +{ + TA_Real min; + TA_Real max; + TA_Integer precision; /* nb of digit after the '.' */ + + /* The following suggested value are used by Tech. Analysis software + * doing parameter "optimization". Can be ignored by most user. + */ + TA_Real suggested_start; + TA_Real suggested_end; + TA_Real suggested_increment; +} TA_RealRange; + +typedef struct TA_IntegerRange +{ + TA_Integer min; + TA_Integer max; + + /* The following suggested value are used by Tech. Analysis software + * doing parameter "optimization". Can be ignored by most user. + */ + TA_Integer suggested_start; + TA_Integer suggested_end; + TA_Integer suggested_increment; +} TA_IntegerRange; + +typedef struct TA_RealDataPair +{ + /* A TA_Real value and the corresponding string. */ + TA_Real value; + const char *string; +} TA_RealDataPair; + +typedef struct TA_IntegerDataPair +{ + /* A TA_Integer value and the corresponding string. */ + TA_Integer value; + const char *string; +} TA_IntegerDataPair; + +typedef struct TA_RealList +{ + const TA_RealDataPair *data; + unsigned int nbElement; +} TA_RealList; + +typedef struct TA_IntegerList +{ + const TA_IntegerDataPair *data; + unsigned int nbElement; +} TA_IntegerList; + +typedef enum +{ + TA_Input_Price, + TA_Input_Real, + TA_Input_Integer +} TA_InputParameterType; + +typedef enum +{ + TA_OptInput_RealRange, + TA_OptInput_RealList, + TA_OptInput_IntegerRange, + TA_OptInput_IntegerList +} TA_OptInputParameterType; + +typedef enum +{ + TA_Output_Real, + TA_Output_Integer +} TA_OutputParameterType; + +/* When the input is a TA_Input_Price, the following + * TA_InputFlags indicates the required components. + * These can be combined for functions requiring more + * than one component. + * + * Example: + * (TA_IN_PRICE_OPEN|TA_IN_PRICE_HIGH) + * Indicates that the functions requires two inputs + * that must be specifically the open and the high. + */ +typedef int TA_InputFlags; +#define TA_IN_PRICE_OPEN 0x00000001 +#define TA_IN_PRICE_HIGH 0x00000002 +#define TA_IN_PRICE_LOW 0x00000004 +#define TA_IN_PRICE_CLOSE 0x00000008 +#define TA_IN_PRICE_VOLUME 0x00000010 +#define TA_IN_PRICE_OPENINTEREST 0x00000020 +#define TA_IN_PRICE_TIMESTAMP 0x00000040 + +/* The following are flags for optional inputs. + * + * TA_OPTIN_IS_PERCENT: Input is a percentage. + * + * TA_OPTIN_IS_DEGREE: Input is a degree (0-360). + * + * TA_OPTIN_IS_CURRENCY: Input is a currency. + * + * TA_OPTIN_ADVANCED: + * Used for parameters who are rarely changed. + * Most application can hide these advanced optional inputs to their + * end-user (or make it harder to change). + */ +typedef int TA_OptInputFlags; +#define TA_OPTIN_IS_PERCENT 0x00100000 /* Input is a percentage. */ +#define TA_OPTIN_IS_DEGREE 0x00200000 /* Input is a degree (0-360). */ +#define TA_OPTIN_IS_CURRENCY 0x00400000 /* Input is a currency. */ +#define TA_OPTIN_ADVANCED 0x01000000 + + +/* The following are flags giving hint on what + * could be done with the output. + */ +typedef int TA_OutputFlags; +#define TA_OUT_LINE 0x00000001 /* Suggest to display as a connected line. */ +#define TA_OUT_DOT_LINE 0x00000002 /* Suggest to display as a 'dotted' line. */ +#define TA_OUT_DASH_LINE 0x00000004 /* Suggest to display as a 'dashed' line. */ +#define TA_OUT_DOT 0x00000008 /* Suggest to display with dots only. */ +#define TA_OUT_HISTO 0x00000010 /* Suggest to display as an histogram. */ +#define TA_OUT_PATTERN_BOOL 0x00000020 /* Indicates if pattern exists (!=0) or not (0) */ +#define TA_OUT_PATTERN_BULL_BEAR 0x00000040 /* =0 no pattern, > 0 bullish, < 0 bearish */ +#define TA_OUT_PATTERN_STRENGTH 0x00000080 /* =0 neutral, ]0..100] getting bullish, ]100..200] bullish, [-100..0[ getting bearish, [-200..100[ bearish */ +#define TA_OUT_POSITIVE 0x00000100 /* Output can be positive */ +#define TA_OUT_NEGATIVE 0x00000200 /* Output can be negative */ +#define TA_OUT_ZERO 0x00000400 /* Output can be zero */ +#define TA_OUT_UPPER_LIMIT 0x00000800 /* Indicates that the values represent an upper limit. */ +#define TA_OUT_LOWER_LIMIT 0x00001000 /* Indicates that the values represent a lower limit. */ + + +/* The following 3 structures will exist for each input, optional + * input and output. + * + * These structures tells you everything you need to know for identifying + * the parameters applicable to the function. + */ +typedef struct TA_InputParameterInfo +{ + TA_InputParameterType type; + const char *paramName; + TA_InputFlags flags; + +} TA_InputParameterInfo; + +typedef struct TA_OptInputParameterInfo +{ + TA_OptInputParameterType type; + const char *paramName; + TA_OptInputFlags flags; + + const char *displayName; + const void *dataSet; + TA_Real defaultValue; + const char *hint; + const char *helpFile; + +} TA_OptInputParameterInfo; + +typedef struct TA_OutputParameterInfo +{ + TA_OutputParameterType type; + const char *paramName; + TA_OutputFlags flags; + +} TA_OutputParameterInfo; + +/* Functions to get a const ptr on the "TA_XXXXXXParameterInfo". + * Max value for the 'paramIndex' can be found in the TA_FuncInfo structure. + * The 'handle' can be obtained from TA_GetFuncHandle or from a TA_FuncInfo. + * + * Short example: + * + * void displayInputType( const TA_FuncInfo *funcInfo ) + * { + * unsigned int i; + * const TA_InputParameterInfo *paramInfo; + * + * for( i=0; i < funcInfo->nbInput; i++ ) + * { + * TA_GetInputParameterInfo( funcInfo->handle, i, ¶mInfo ); + * switch( paramInfo->type ) + * { + * case TA_Input_Price: + * printf( "This function needs price bars as input\n" ); + * break; + * case TA_Input_Real: + * printf( "This function needs an array of floats as input\n" ); + * break; + * (... etc. ...) + * } + * } + * } + */ +TA_RetCode TA_GetInputParameterInfo( const TA_FuncHandle *handle, + unsigned int paramIndex, + const TA_InputParameterInfo **info ); + +TA_RetCode TA_GetOptInputParameterInfo( const TA_FuncHandle *handle, + unsigned int paramIndex, + const TA_OptInputParameterInfo **info ); + +TA_RetCode TA_GetOutputParameterInfo( const TA_FuncHandle *handle, + unsigned int paramIndex, + const TA_OutputParameterInfo **info ); + +/* Alloc a structure allowing to build the list of parameters + * for doing a call. + * + * All input and output parameters must be setup. If not, TA_BAD_PARAM + * will be returned when TA_CallFunc is called. + * + * The optional input are not required to be setup. A default value + * will always be used in that case. + * + * If there is an attempts to set a parameter with the wrong function + * (and thus the wrong type), TA_BAD_PARAM will be immediatly returned. + * + * Although this mechanism looks complicated, it is written for being fairly solid. + * If you provide a wrong parameter value, or wrong type, or wrong pointer etc. the + * library shall return TA_BAD_PARAM or TA_BAD_OBJECT and not hang. + */ +typedef struct TA_ParamHolder +{ + /* Implementation is hidden. */ + void *hiddenData; +} TA_ParamHolder; + +TA_RetCode TA_ParamHolderAlloc( const TA_FuncHandle *handle, + TA_ParamHolder **allocatedParams ); + +TA_RetCode TA_ParamHolderFree( TA_ParamHolder *params ); + +/* Setup the values of the data input parameters. + * + * paramIndex is zero for the first input. + */ +TA_RetCode TA_SetInputParamIntegerPtr( TA_ParamHolder *params, + unsigned int paramIndex, + const TA_Integer *value ); + +TA_RetCode TA_SetInputParamRealPtr( TA_ParamHolder *params, + unsigned int paramIndex, + const TA_Real *value ); + +TA_RetCode TA_SetInputParamPricePtr( TA_ParamHolder *params, + unsigned int paramIndex, + const TA_Real *open, + const TA_Real *high, + const TA_Real *low, + const TA_Real *close, + const TA_Real *volume, + const TA_Real *openInterest ); + +/* Setup the values of the optional input parameters. + * If an optional input is not set, a default value will be used. + * + * paramIndex is zero for the first optional input. + */ +TA_RetCode TA_SetOptInputParamInteger( TA_ParamHolder *params, + unsigned int paramIndex, + TA_Integer optInValue ); + +TA_RetCode TA_SetOptInputParamReal( TA_ParamHolder *params, + unsigned int paramIndex, + TA_Real optInValue ); + +/* Setup the parameters indicating where to store the output. + * + * The caller is responsible to allocate sufficient memory. A safe bet is to + * always do: nb of output elements == (endIdx-startIdx+1) + * + * paramIndex is zero for the first output. + * + */ +TA_RetCode TA_SetOutputParamIntegerPtr( TA_ParamHolder *params, + unsigned int paramIndex, + TA_Integer *out ); + +TA_RetCode TA_SetOutputParamRealPtr( TA_ParamHolder *params, + unsigned int paramIndex, + TA_Real *out ); + +/* Once the optional parameter are set, it is possible to + * get the lookback for this call. This information can be + * used to calculate the optimal size for the output buffers. + * (See the documentation for method to calculate the output size). + */ +TA_RetCode TA_GetLookback( const TA_ParamHolder *params, + TA_Integer *lookback ); + +/* Finally, call the TA function with the parameters. + * + * The TA function who is going to be called was specified + * when the TA_ParamHolderAlloc was done. + */ +TA_RetCode TA_CallFunc( const TA_ParamHolder *params, + TA_Integer startIdx, + TA_Integer endIdx, + TA_Integer *outBegIdx, + TA_Integer *outNbElement ); + + +/* Return XML representation of all the TA functions. + * The returned array is the same as the ta_func_api.xml file. + */ +const char *TA_FunctionDescriptionXML( void ); + +#ifdef __cplusplus +} +#endif + +#endif + diff --git a/include/ta_common.h b/include/ta_common.h new file mode 100644 index 000000000..5d7c2449e --- /dev/null +++ b/include/ta_common.h @@ -0,0 +1,149 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ +#ifndef TA_COMMON_H +#define TA_COMMON_H + +/* The following macros are used to return internal errors. + * The Id can be from 1 to 999 and translate to the user + * as the return code 5000 to 5999. + * + * Everytime you wish to add a new fatal error code, + * use the "NEXT AVAILABLE NUMBER" and increment the + * number in this file. + * + * NEXT AVAILABLE NUMBER: 181 + */ +#define TA_INTERNAL_ERROR(Id) ((TA_RetCode)(TA_INTERNAL_ERROR+Id)) + +#ifdef __cplusplus +extern "C" { +#endif + +#include +#include +#include + +#ifndef TA_DEFS_H + #include "ta_defs.h" +#endif + +/* Some functions to get the version of TA-Lib. + * + * Format is "Major.Minor.Patch (Month Day Year Hour:Min:Sec)" + * + * Example: "1.2.0 (Jan 17 2004 23:59:59)" + * + * Major increments indicates an "Highly Recommended" update. + * + * Minor increments indicates arbitrary milestones in the + * development of the next major version. + * + * Patch are fixes to a "Major.Minor" release. + */ +const char *TA_GetVersionString( void ); + +/* Get individual component of the Version string */ +const char *TA_GetVersionMajor ( void ); +const char *TA_GetVersionMinor ( void ); +const char *TA_GetVersionBuild ( void ); +const char *TA_GetVersionDate ( void ); +const char *TA_GetVersionTime ( void ); + +/* Misc. declaration used throughout the library code. */ +typedef double TA_Real; +typedef int TA_Integer; + +/* General purpose structure containing an array of string. + * + * Example of usage: + * void printStringTable( TA_StringTable *table ) + * { + * int i; + * for( i=0; i < table->size; i++ ) + * cout << table->string[i] << endl; + * } + * + */ +typedef struct TA_StringTable +{ + unsigned int size; /* Number of string. */ + const char **string; /* Pointer to the strings. */ + + /* Hidden data for internal use by TA-Lib. Do not modify. */ + void *hiddenData; +} TA_StringTable; +/* End-user can get additional information related to a TA_RetCode. + * + * Example: + * TA_RetCodeInfo info; + * + * retCode = TA_Initialize( ... ); + * + * if( retCode != TA_SUCCESS ) + * { + * TA_SetRetCodeInfo( retCode, &info ); + * printf( "Error %d(%s): %s\n", + * retCode, + * info.enumStr, + * info.infoStr ); + * } + * + * Would display: + * "Error 1(TA_LIB_NOT_INITIALIZE): TA_Initialize was not sucessfully called" + */ +typedef struct TA_RetCodeInfo +{ + const char *enumStr; /* Like "TA_IP_SOCKETERROR" */ + const char *infoStr; /* Like "Error creating socket" */ +} TA_RetCodeInfo; + +/* Info is always returned, even when 'theRetCode' is invalid. */ +void TA_SetRetCodeInfo( TA_RetCode theRetCode, TA_RetCodeInfo *retCodeInfo ); + +/* TA_Initialize() initialize the ressources used by TA-Lib. This + * function must be called once prior to any other functions declared in + * this file. + * + * TA_Shutdown() allows to free all ressources used by TA-Lib. Following + * a shutdown, TA_Initialize() must be called again for re-using TA-Lib. + * + * TA_Shutdown() should be called prior to exiting the application code. + */ +TA_RetCode TA_Initialize( void ); +TA_RetCode TA_Shutdown( void ); + +#ifdef __cplusplus +} +#endif + +#endif diff --git a/include/ta_defs.h b/include/ta_defs.h new file mode 100644 index 000000000..2c36143b1 --- /dev/null +++ b/include/ta_defs.h @@ -0,0 +1,319 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ +#ifndef TA_DEFS_H +#define TA_DEFS_H + +/*** The following block of code is to define: + *** + *** UInt32 : 32 bits unsigned integer. + *** Int32 : 32 bits signed integer. + *** UInt64 : 64 bits unsigned integer. + *** Int64 : 64 bits signed integer. + *** + *** INT_MIN : The minimal value for Int32 + *** INT_MAX : The maximal value for Int32 + ***/ +#ifndef FD_DEFS_H + #if defined( _MANAGED ) + /* Int32, UInt32, Int64 and UInt64 are built-in for .NET */ + #define INT_MIN (Int32::MinValue) + #define INT_MAX (Int32::MaxValue) + #elif defined( _JAVA ) + #define INT_MIN Integer.MIN_VALUE + #define INT_MAX Integer.MAX_VALUE + #else + #include + + /* Identify if 64 bits platform with __64BIT__. + * Can also be done from compiler command line. + */ + #if defined(_WIN64) + #define __64BIT__ 1 + #endif + + #if defined( __LP64__ ) || defined( _LP64 ) + #define __64BIT__ 1 + #endif + + /* Check also for some known GCC def for 64 bits platform. */ + #if defined(__alpha__)\ + ||defined(__ia64__)\ + ||defined(__ppc64__)\ + ||defined(__s390x__)\ + ||defined(__x86_64__) + #define __64BIT__ 1 + #endif + + #if !defined(__MACTYPES__) + typedef signed int Int32; + typedef unsigned int UInt32; + + #if defined(_WIN32) || defined(_WIN64) + /* See "Windows Data Types". Platform SDK. MSDN documentation. */ + typedef signed __int64 Int64; + typedef unsigned __int64 UInt64; + #else + #if defined(__64BIT__) + /* Standard LP64 model for 64 bits Unix platform. */ + typedef signed long Int64; + typedef unsigned long UInt64; + #else + /* Standard ILP32 model for 32 bits Unix platform. */ + typedef signed long long Int64; + typedef unsigned long long UInt64; + #endif + #endif + #endif + #endif +#endif + +/* Enumeration and macros to abstract syntax differences + * between C, C++, managed C++ and Java. + */ +#if defined( _MANAGED ) + + /* CMJ is the "CManagedJava" macro. It allows to write variant + * for the 3 different languages. + */ + #define CMJ(c,managed,java) managed + + /* Enumeration abstraction */ + #define ENUM_BEGIN(w) enum class w { + #define ENUM_DEFINE(x,y) y + #define ENUM_VALUE(w,x,y) (w::y) + #define ENUM_CASE(w,x,y) (w::y) + #define ENUM_DECLARATION(w) w + #define ENUM_END(w) }; + + /* Structure abstraction */ + #define STRUCT_BEGIN(x) struct x { + #define STRUCT_END(x) }; + + /* Pointer/reference abstraction */ + #define VALUE_HANDLE_INT(name) int name + #define VALUE_HANDLE_DEREF(name) name + #define VALUE_HANDLE_DEREF_TO_ZERO(name) name = 0 + #define VALUE_HANDLE_OUT(name) name + + #define VALUE_HANDLE_GET(name) name + #define VALUE_HANDLE_SET(name,x) name = x + + /* Misc. */ + #define CONSTANT_DOUBLE(x) const double x + #define NAMESPACE(x) x:: + #define UNUSED_VARIABLE(x) (void)x + +#elif defined( _JAVA ) + #define CMJ(c,managed,java) java + + #define ENUM_BEGIN(w) public enum w { + #define ENUM_DEFINE(x,y) y + #define ENUM_VALUE(w,x,y) w.y + #define ENUM_CASE(w,x,y) y + #define ENUM_DECLARATION(w) w + #define ENUM_END(w) }; + + #define STRUCT_BEGIN(x) public class x { + #define STRUCT_END(x) }; + + #define VALUE_HANDLE_INT(name) MInteger name = new MInteger() + #define VALUE_HANDLE_DEREF(name) name.value + #define VALUE_HANDLE_DEREF_TO_ZERO(name) name.value = 0 + #define VALUE_HANDLE_OUT(name) name + + #define VALUE_HANDLE_GET(name) name.value + #define VALUE_HANDLE_SET(name,x) name.value = x + + #define CONSTANT_DOUBLE(x) final double x + #define NAMESPACE(x) x. + #define UNUSED_VARIABLE(x) + +#else + + #define CMJ(c,managed,java) c + + #define ENUM_BEGIN(w) typedef enum { + #define ENUM_DEFINE(x,y) x + #define ENUM_VALUE(w,x,y) x + #define ENUM_CASE(w,x,y) x + #define ENUM_DECLARATION(w) TA_##w + #define ENUM_END(w) } TA_##w; + + #define STRUCT_BEGIN(x) typedef struct { + #define STRUCT_END(x) } x; + + #define VALUE_HANDLE_INT(name) int name + #define VALUE_HANDLE_DEREF(name) (*name) + #define VALUE_HANDLE_DEREF_TO_ZERO(name) (*name) = 0 + #define VALUE_HANDLE_OUT(name) &name + + #define VALUE_HANDLE_GET(name) name + #define VALUE_HANDLE_SET(name,x) name = x + + #define CONSTANT_DOUBLE(x) const double x + #define NAMESPACE(x) + #define UNUSED_VARIABLE(x) (void)x +#endif + +/* Abstraction of function calls within the library. + * Needed because Java/.NET allows overloading, while for C the + * TA_PREFIX allows to select variant of the same function. + */ +#define FUNCTION_CALL(x) TA_PREFIX(x) +#define FUNCTION_CALL_DOUBLE(x) TA_##x +#define LOOKBACK_CALL(x) TA_##x##_Lookback + +/* min/max value for a TA_Integer */ +#define TA_INTEGER_MIN (INT_MIN+1) +#define TA_INTEGER_MAX (INT_MAX) + +/* min/max value for a TA_Real + * + * Use fix value making sense in the + * context of TA-Lib (avoid to use DBL_MIN + * and DBL_MAX standard macro because they + * are troublesome with some compiler). + */ +#define TA_REAL_MIN (-3e+37) +#define TA_REAL_MAX (3e+37) + +/* A value outside of the min/max range + * indicates an undefined or default value. + */ +#define TA_INTEGER_DEFAULT (INT_MIN) +#define TA_REAL_DEFAULT (-4e+37) + +/* Part of this file is generated by gen_code */ + +ENUM_BEGIN( RetCode ) + /* 0 */ ENUM_DEFINE( TA_SUCCESS, Success ), /* No error */ + /* 1 */ ENUM_DEFINE( TA_LIB_NOT_INITIALIZE, LibNotInitialize ), /* TA_Initialize was not sucessfully called */ + /* 2 */ ENUM_DEFINE( TA_BAD_PARAM, BadParam ), /* A parameter is out of range */ + /* 3 */ ENUM_DEFINE( TA_ALLOC_ERR, AllocErr ), /* Possibly out-of-memory */ + /* 4 */ ENUM_DEFINE( TA_GROUP_NOT_FOUND, GroupNotFound ), + /* 5 */ ENUM_DEFINE( TA_FUNC_NOT_FOUND, FuncNotFound ), + /* 6 */ ENUM_DEFINE( TA_INVALID_HANDLE, InvalidHandle ), + /* 7 */ ENUM_DEFINE( TA_INVALID_PARAM_HOLDER, InvalidParamHolder ), + /* 8 */ ENUM_DEFINE( TA_INVALID_PARAM_HOLDER_TYPE, InvalidParamHolderType ), + /* 9 */ ENUM_DEFINE( TA_INVALID_PARAM_FUNCTION, InvalidParamFunction ), + /* 10 */ ENUM_DEFINE( TA_INPUT_NOT_ALL_INITIALIZE, InputNotAllInitialize ), + /* 11 */ ENUM_DEFINE( TA_OUTPUT_NOT_ALL_INITIALIZE, OutputNotAllInitialize ), + /* 12 */ ENUM_DEFINE( TA_OUT_OF_RANGE_START_INDEX, OutOfRangeStartIndex ), + /* 13 */ ENUM_DEFINE( TA_OUT_OF_RANGE_END_INDEX, OutOfRangeEndIndex ), + /* 14 */ ENUM_DEFINE( TA_INVALID_LIST_TYPE, InvalidListType ), + /* 15 */ ENUM_DEFINE( TA_BAD_OBJECT, BadObject ), + /* 16 */ ENUM_DEFINE( TA_NOT_SUPPORTED, NotSupported ), + /* 5000 */ ENUM_DEFINE( TA_INTERNAL_ERROR, InternalError ) = 5000, + /* 0xFFFF */ ENUM_DEFINE( TA_UNKNOWN_ERR, UnknownErr ) = 0xFFFF +ENUM_END( RetCode ) + +ENUM_BEGIN( Compatibility ) + ENUM_DEFINE( TA_COMPATIBILITY_DEFAULT, Default ), + ENUM_DEFINE( TA_COMPATIBILITY_METASTOCK, Metastock ) +ENUM_END( Compatibility ) + +ENUM_BEGIN( MAType ) + ENUM_DEFINE( TA_MAType_SMA, Sma ) =0, + ENUM_DEFINE( TA_MAType_EMA, Ema ) =1, + ENUM_DEFINE( TA_MAType_WMA, Wma ) =2, + ENUM_DEFINE( TA_MAType_DEMA, Dema ) =3, + ENUM_DEFINE( TA_MAType_TEMA, Tema ) =4, + ENUM_DEFINE( TA_MAType_TRIMA, Trima ) =5, + ENUM_DEFINE( TA_MAType_KAMA, Kama ) =6, + ENUM_DEFINE( TA_MAType_MAMA, Mama ) =7, + ENUM_DEFINE( TA_MAType_T3, T3 ) =8 +ENUM_END( MAType ) + + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ ENUM_BEGIN( FuncUnstId ) +/* Generated */ /* 000 */ ENUM_DEFINE( TA_FUNC_UNST_ADX, Adx), +/* Generated */ /* 001 */ ENUM_DEFINE( TA_FUNC_UNST_ADXR, Adxr), +/* Generated */ /* 002 */ ENUM_DEFINE( TA_FUNC_UNST_ATR, Atr), +/* Generated */ /* 003 */ ENUM_DEFINE( TA_FUNC_UNST_CMO, Cmo), +/* Generated */ /* 004 */ ENUM_DEFINE( TA_FUNC_UNST_DX, Dx), +/* Generated */ /* 005 */ ENUM_DEFINE( TA_FUNC_UNST_EMA, Ema), +/* Generated */ /* 006 */ ENUM_DEFINE( TA_FUNC_UNST_HT_DCPERIOD, HtDcPeriod), +/* Generated */ /* 007 */ ENUM_DEFINE( TA_FUNC_UNST_HT_DCPHASE, HtDcPhase), +/* Generated */ /* 008 */ ENUM_DEFINE( TA_FUNC_UNST_HT_PHASOR, HtPhasor), +/* Generated */ /* 009 */ ENUM_DEFINE( TA_FUNC_UNST_HT_SINE, HtSine), +/* Generated */ /* 010 */ ENUM_DEFINE( TA_FUNC_UNST_HT_TRENDLINE, HtTrendline), +/* Generated */ /* 011 */ ENUM_DEFINE( TA_FUNC_UNST_HT_TRENDMODE, HtTrendMode), +/* Generated */ /* 012 */ ENUM_DEFINE( TA_FUNC_UNST_KAMA, Kama), +/* Generated */ /* 013 */ ENUM_DEFINE( TA_FUNC_UNST_MAMA, Mama), +/* Generated */ /* 014 */ ENUM_DEFINE( TA_FUNC_UNST_MFI, Mfi), +/* Generated */ /* 015 */ ENUM_DEFINE( TA_FUNC_UNST_MINUS_DI, MinusDI), +/* Generated */ /* 016 */ ENUM_DEFINE( TA_FUNC_UNST_MINUS_DM, MinusDM), +/* Generated */ /* 017 */ ENUM_DEFINE( TA_FUNC_UNST_NATR, Natr), +/* Generated */ /* 018 */ ENUM_DEFINE( TA_FUNC_UNST_PLUS_DI, PlusDI), +/* Generated */ /* 019 */ ENUM_DEFINE( TA_FUNC_UNST_PLUS_DM, PlusDM), +/* Generated */ /* 020 */ ENUM_DEFINE( TA_FUNC_UNST_RSI, Rsi), +/* Generated */ /* 021 */ ENUM_DEFINE( TA_FUNC_UNST_STOCHRSI, StochRsi), +/* Generated */ /* 022 */ ENUM_DEFINE( TA_FUNC_UNST_T3, T3), +/* Generated */ ENUM_DEFINE( TA_FUNC_UNST_ALL, FuncUnstAll), +/* Generated */ ENUM_DEFINE( TA_FUNC_UNST_NONE, FuncUnstNone) = -1 +/* Generated */ ENUM_END( FuncUnstId ) +/* Generated */ +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ + +/* The TA_RangeType enum specifies the types of range that can be considered + * when to compare a part of a candle to other candles + */ + +ENUM_BEGIN( RangeType ) + ENUM_DEFINE( TA_RangeType_RealBody, RealBody ), + ENUM_DEFINE( TA_RangeType_HighLow, HighLow ), + ENUM_DEFINE( TA_RangeType_Shadows, Shadows ) +ENUM_END( RangeType ) + +/* The TA_CandleSettingType enum specifies which kind of setting to consider; + * the settings are based on the parts of the candle and the common words + * indicating the length (short, long, very long) + */ +ENUM_BEGIN( CandleSettingType ) + ENUM_DEFINE( TA_BodyLong, BodyLong ), + ENUM_DEFINE( TA_BodyVeryLong, BodyVeryLong ), + ENUM_DEFINE( TA_BodyShort, BodyShort ), + ENUM_DEFINE( TA_BodyDoji, BodyDoji ), + ENUM_DEFINE( TA_ShadowLong, ShadowLong ), + ENUM_DEFINE( TA_ShadowVeryLong, ShadowVeryLong ), + ENUM_DEFINE( TA_ShadowShort, ShadowShort ), + ENUM_DEFINE( TA_ShadowVeryShort, ShadowVeryShort ), + ENUM_DEFINE( TA_Near, Near ), + ENUM_DEFINE( TA_Far, Far ), + ENUM_DEFINE( TA_Equal, Equal ), + ENUM_DEFINE( TA_AllCandleSettings, AllCandleSettings ) +ENUM_END( CandleSettingType ) + +#endif diff --git a/include/ta_func.h b/include/ta_func.h new file mode 100644 index 000000000..918b4dc88 --- /dev/null +++ b/include/ta_func.h @@ -0,0 +1,5240 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ +#ifndef TA_FUNC_H +#define TA_FUNC_H + +#ifndef TA_COMMON_H + #include "ta_common.h" +#endif + +/* This header contains the prototype of all the Technical Analysis + * function provided by TA-LIB. + */ + +/* TA-LIB Developer Note: Do not modify this file, it is automaticaly + * generated by gen_code. + */ +#ifdef __cplusplus +extern "C" { +#endif + +#ifndef TA_DEFS_H + #include "ta_defs.h" +#endif + + +/* + * TA_ACOS - Vector Trigonometric ACos + * + * Input = double + * Output = double + * + */ +TA_RetCode TA_ACOS( int startIdx, + int endIdx, + const double inReal[], + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +TA_RetCode TA_S_ACOS( int startIdx, + int endIdx, + const float inReal[], + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +int TA_ACOS_Lookback( void ); + + +/* + * TA_AD - Chaikin A/D Line + * + * Input = High, Low, Close, Volume + * Output = double + * + */ +TA_RetCode TA_AD( int startIdx, + int endIdx, + const double inHigh[], + const double inLow[], + const double inClose[], + const double inVolume[], + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +TA_RetCode TA_S_AD( int startIdx, + int endIdx, + const float inHigh[], + const float inLow[], + const float inClose[], + const float inVolume[], + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +int TA_AD_Lookback( void ); + + +/* + * TA_ADD - Vector Arithmetic Add + * + * Input = double, double + * Output = double + * + */ +TA_RetCode TA_ADD( int startIdx, + int endIdx, + const double inReal0[], + const double inReal1[], + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +TA_RetCode TA_S_ADD( int startIdx, + int endIdx, + const float inReal0[], + const float inReal1[], + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +int TA_ADD_Lookback( void ); + + +/* + * TA_ADOSC - Chaikin A/D Oscillator + * + * Input = High, Low, Close, Volume + * Output = double + * + * Optional Parameters + * ------------------- + * optInFastPeriod:(From 2 to 100000) + * Number of period for the fast MA + * + * optInSlowPeriod:(From 2 to 100000) + * Number of period for the slow MA + * + * + */ +TA_RetCode TA_ADOSC( int startIdx, + int endIdx, + const double inHigh[], + const double inLow[], + const double inClose[], + const double inVolume[], + int optInFastPeriod, /* From 2 to 100000 */ + int optInSlowPeriod, /* From 2 to 100000 */ + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +TA_RetCode TA_S_ADOSC( int startIdx, + int endIdx, + const float inHigh[], + const float inLow[], + const float inClose[], + const float inVolume[], + int optInFastPeriod, /* From 2 to 100000 */ + int optInSlowPeriod, /* From 2 to 100000 */ + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +int TA_ADOSC_Lookback( int optInFastPeriod, /* From 2 to 100000 */ + int optInSlowPeriod ); /* From 2 to 100000 */ + + +/* + * TA_ADX - Average Directional Movement Index + * + * Input = High, Low, Close + * Output = double + * + * Optional Parameters + * ------------------- + * optInTimePeriod:(From 2 to 100000) + * Number of period + * + * + */ +TA_RetCode TA_ADX( int startIdx, + int endIdx, + const double inHigh[], + const double inLow[], + const double inClose[], + int optInTimePeriod, /* From 2 to 100000 */ + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +TA_RetCode TA_S_ADX( int startIdx, + int endIdx, + const float inHigh[], + const float inLow[], + const float inClose[], + int optInTimePeriod, /* From 2 to 100000 */ + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +int TA_ADX_Lookback( int optInTimePeriod ); /* From 2 to 100000 */ + + +/* + * TA_ADXR - Average Directional Movement Index Rating + * + * Input = High, Low, Close + * Output = double + * + * Optional Parameters + * ------------------- + * optInTimePeriod:(From 2 to 100000) + * Number of period + * + * + */ +TA_RetCode TA_ADXR( int startIdx, + int endIdx, + const double inHigh[], + const double inLow[], + const double inClose[], + int optInTimePeriod, /* From 2 to 100000 */ + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +TA_RetCode TA_S_ADXR( int startIdx, + int endIdx, + const float inHigh[], + const float inLow[], + const float inClose[], + int optInTimePeriod, /* From 2 to 100000 */ + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +int TA_ADXR_Lookback( int optInTimePeriod ); /* From 2 to 100000 */ + + +/* + * TA_APO - Absolute Price Oscillator + * + * Input = double + * Output = double + * + * Optional Parameters + * ------------------- + * optInFastPeriod:(From 2 to 100000) + * Number of period for the fast MA + * + * optInSlowPeriod:(From 2 to 100000) + * Number of period for the slow MA + * + * optInMAType: + * Type of Moving Average + * + * + */ +TA_RetCode TA_APO( int startIdx, + int endIdx, + const double inReal[], + int optInFastPeriod, /* From 2 to 100000 */ + int optInSlowPeriod, /* From 2 to 100000 */ + TA_MAType optInMAType, + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +TA_RetCode TA_S_APO( int startIdx, + int endIdx, + const float inReal[], + int optInFastPeriod, /* From 2 to 100000 */ + int optInSlowPeriod, /* From 2 to 100000 */ + TA_MAType optInMAType, + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +int TA_APO_Lookback( int optInFastPeriod, /* From 2 to 100000 */ + int optInSlowPeriod, /* From 2 to 100000 */ + TA_MAType optInMAType ); + +/* + * TA_AROON - Aroon + * + * Input = High, Low + * Output = double, double + * + * Optional Parameters + * ------------------- + * optInTimePeriod:(From 2 to 100000) + * Number of period + * + * + */ +TA_RetCode TA_AROON( int startIdx, + int endIdx, + const double inHigh[], + const double inLow[], + int optInTimePeriod, /* From 2 to 100000 */ + int *outBegIdx, + int *outNBElement, + double outAroonDown[], + double outAroonUp[] ); + +TA_RetCode TA_S_AROON( int startIdx, + int endIdx, + const float inHigh[], + const float inLow[], + int optInTimePeriod, /* From 2 to 100000 */ + int *outBegIdx, + int *outNBElement, + double outAroonDown[], + double outAroonUp[] ); + +int TA_AROON_Lookback( int optInTimePeriod ); /* From 2 to 100000 */ + + +/* + * TA_AROONOSC - Aroon Oscillator + * + * Input = High, Low + * Output = double + * + * Optional Parameters + * ------------------- + * optInTimePeriod:(From 2 to 100000) + * Number of period + * + * + */ +TA_RetCode TA_AROONOSC( int startIdx, + int endIdx, + const double inHigh[], + const double inLow[], + int optInTimePeriod, /* From 2 to 100000 */ + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +TA_RetCode TA_S_AROONOSC( int startIdx, + int endIdx, + const float inHigh[], + const float inLow[], + int optInTimePeriod, /* From 2 to 100000 */ + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +int TA_AROONOSC_Lookback( int optInTimePeriod ); /* From 2 to 100000 */ + + +/* + * TA_ASIN - Vector Trigonometric ASin + * + * Input = double + * Output = double + * + */ +TA_RetCode TA_ASIN( int startIdx, + int endIdx, + const double inReal[], + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +TA_RetCode TA_S_ASIN( int startIdx, + int endIdx, + const float inReal[], + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +int TA_ASIN_Lookback( void ); + + +/* + * TA_ATAN - Vector Trigonometric ATan + * + * Input = double + * Output = double + * + */ +TA_RetCode TA_ATAN( int startIdx, + int endIdx, + const double inReal[], + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +TA_RetCode TA_S_ATAN( int startIdx, + int endIdx, + const float inReal[], + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +int TA_ATAN_Lookback( void ); + + +/* + * TA_ATR - Average True Range + * + * Input = High, Low, Close + * Output = double + * + * Optional Parameters + * ------------------- + * optInTimePeriod:(From 1 to 100000) + * Number of period + * + * + */ +TA_RetCode TA_ATR( int startIdx, + int endIdx, + const double inHigh[], + const double inLow[], + const double inClose[], + int optInTimePeriod, /* From 1 to 100000 */ + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +TA_RetCode TA_S_ATR( int startIdx, + int endIdx, + const float inHigh[], + const float inLow[], + const float inClose[], + int optInTimePeriod, /* From 1 to 100000 */ + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +int TA_ATR_Lookback( int optInTimePeriod ); /* From 1 to 100000 */ + + +/* + * TA_AVGPRICE - Average Price + * + * Input = Open, High, Low, Close + * Output = double + * + */ +TA_RetCode TA_AVGPRICE( int startIdx, + int endIdx, + const double inOpen[], + const double inHigh[], + const double inLow[], + const double inClose[], + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +TA_RetCode TA_S_AVGPRICE( int startIdx, + int endIdx, + const float inOpen[], + const float inHigh[], + const float inLow[], + const float inClose[], + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +int TA_AVGPRICE_Lookback( void ); + + +/* + * TA_BBANDS - Bollinger Bands + * + * Input = double + * Output = double, double, double + * + * Optional Parameters + * ------------------- + * optInTimePeriod:(From 2 to 100000) + * Number of period + * + * optInNbDevUp:(From TA_REAL_MIN to TA_REAL_MAX) + * Deviation multiplier for upper band + * + * optInNbDevDn:(From TA_REAL_MIN to TA_REAL_MAX) + * Deviation multiplier for lower band + * + * optInMAType: + * Type of Moving Average + * + * + */ +TA_RetCode TA_BBANDS( int startIdx, + int endIdx, + const double inReal[], + int optInTimePeriod, /* From 2 to 100000 */ + double optInNbDevUp, /* From TA_REAL_MIN to TA_REAL_MAX */ + double optInNbDevDn, /* From TA_REAL_MIN to TA_REAL_MAX */ + TA_MAType optInMAType, + int *outBegIdx, + int *outNBElement, + double outRealUpperBand[], + double outRealMiddleBand[], + double outRealLowerBand[] ); + +TA_RetCode TA_S_BBANDS( int startIdx, + int endIdx, + const float inReal[], + int optInTimePeriod, /* From 2 to 100000 */ + double optInNbDevUp, /* From TA_REAL_MIN to TA_REAL_MAX */ + double optInNbDevDn, /* From TA_REAL_MIN to TA_REAL_MAX */ + TA_MAType optInMAType, + int *outBegIdx, + int *outNBElement, + double outRealUpperBand[], + double outRealMiddleBand[], + double outRealLowerBand[] ); + +int TA_BBANDS_Lookback( int optInTimePeriod, /* From 2 to 100000 */ + double optInNbDevUp, /* From TA_REAL_MIN to TA_REAL_MAX */ + double optInNbDevDn, /* From TA_REAL_MIN to TA_REAL_MAX */ + TA_MAType optInMAType ); + +/* + * TA_BETA - Beta + * + * Input = double, double + * Output = double + * + * Optional Parameters + * ------------------- + * optInTimePeriod:(From 1 to 100000) + * Number of period + * + * + */ +TA_RetCode TA_BETA( int startIdx, + int endIdx, + const double inReal0[], + const double inReal1[], + int optInTimePeriod, /* From 1 to 100000 */ + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +TA_RetCode TA_S_BETA( int startIdx, + int endIdx, + const float inReal0[], + const float inReal1[], + int optInTimePeriod, /* From 1 to 100000 */ + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +int TA_BETA_Lookback( int optInTimePeriod ); /* From 1 to 100000 */ + + +/* + * TA_BOP - Balance Of Power + * + * Input = Open, High, Low, Close + * Output = double + * + */ +TA_RetCode TA_BOP( int startIdx, + int endIdx, + const double inOpen[], + const double inHigh[], + const double inLow[], + const double inClose[], + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +TA_RetCode TA_S_BOP( int startIdx, + int endIdx, + const float inOpen[], + const float inHigh[], + const float inLow[], + const float inClose[], + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +int TA_BOP_Lookback( void ); + + +/* + * TA_CCI - Commodity Channel Index + * + * Input = High, Low, Close + * Output = double + * + * Optional Parameters + * ------------------- + * optInTimePeriod:(From 2 to 100000) + * Number of period + * + * + */ +TA_RetCode TA_CCI( int startIdx, + int endIdx, + const double inHigh[], + const double inLow[], + const double inClose[], + int optInTimePeriod, /* From 2 to 100000 */ + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +TA_RetCode TA_S_CCI( int startIdx, + int endIdx, + const float inHigh[], + const float inLow[], + const float inClose[], + int optInTimePeriod, /* From 2 to 100000 */ + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +int TA_CCI_Lookback( int optInTimePeriod ); /* From 2 to 100000 */ + + +/* + * TA_CDL2CROWS - Two Crows + * + * Input = Open, High, Low, Close + * Output = int + * + */ +TA_RetCode TA_CDL2CROWS( int startIdx, + int endIdx, + const double inOpen[], + const double inHigh[], + const double inLow[], + const double inClose[], + int *outBegIdx, + int *outNBElement, + int outInteger[] ); + +TA_RetCode TA_S_CDL2CROWS( int startIdx, + int endIdx, + const float inOpen[], + const float inHigh[], + const float inLow[], + const float inClose[], + int *outBegIdx, + int *outNBElement, + int outInteger[] ); + +int TA_CDL2CROWS_Lookback( void ); + + +/* + * TA_CDL3BLACKCROWS - Three Black Crows + * + * Input = Open, High, Low, Close + * Output = int + * + */ +TA_RetCode TA_CDL3BLACKCROWS( int startIdx, + int endIdx, + const double inOpen[], + const double inHigh[], + const double inLow[], + const double inClose[], + int *outBegIdx, + int *outNBElement, + int outInteger[] ); + +TA_RetCode TA_S_CDL3BLACKCROWS( int startIdx, + int endIdx, + const float inOpen[], + const float inHigh[], + const float inLow[], + const float inClose[], + int *outBegIdx, + int *outNBElement, + int outInteger[] ); + +int TA_CDL3BLACKCROWS_Lookback( void ); + + +/* + * TA_CDL3INSIDE - Three Inside Up/Down + * + * Input = Open, High, Low, Close + * Output = int + * + */ +TA_RetCode TA_CDL3INSIDE( int startIdx, + int endIdx, + const double inOpen[], + const double inHigh[], + const double inLow[], + const double inClose[], + int *outBegIdx, + int *outNBElement, + int outInteger[] ); + +TA_RetCode TA_S_CDL3INSIDE( int startIdx, + int endIdx, + const float inOpen[], + const float inHigh[], + const float inLow[], + const float inClose[], + int *outBegIdx, + int *outNBElement, + int outInteger[] ); + +int TA_CDL3INSIDE_Lookback( void ); + + +/* + * TA_CDL3LINESTRIKE - Three-Line Strike + * + * Input = Open, High, Low, Close + * Output = int + * + */ +TA_RetCode TA_CDL3LINESTRIKE( int startIdx, + int endIdx, + const double inOpen[], + const double inHigh[], + const double inLow[], + const double inClose[], + int *outBegIdx, + int *outNBElement, + int outInteger[] ); + +TA_RetCode TA_S_CDL3LINESTRIKE( int startIdx, + int endIdx, + const float inOpen[], + const float inHigh[], + const float inLow[], + const float inClose[], + int *outBegIdx, + int *outNBElement, + int outInteger[] ); + +int TA_CDL3LINESTRIKE_Lookback( void ); + + +/* + * TA_CDL3OUTSIDE - Three Outside Up/Down + * + * Input = Open, High, Low, Close + * Output = int + * + */ +TA_RetCode TA_CDL3OUTSIDE( int startIdx, + int endIdx, + const double inOpen[], + const double inHigh[], + const double inLow[], + const double inClose[], + int *outBegIdx, + int *outNBElement, + int outInteger[] ); + +TA_RetCode TA_S_CDL3OUTSIDE( int startIdx, + int endIdx, + const float inOpen[], + const float inHigh[], + const float inLow[], + const float inClose[], + int *outBegIdx, + int *outNBElement, + int outInteger[] ); + +int TA_CDL3OUTSIDE_Lookback( void ); + + +/* + * TA_CDL3STARSINSOUTH - Three Stars In The South + * + * Input = Open, High, Low, Close + * Output = int + * + */ +TA_RetCode TA_CDL3STARSINSOUTH( int startIdx, + int endIdx, + const double inOpen[], + const double inHigh[], + const double inLow[], + const double inClose[], + int *outBegIdx, + int *outNBElement, + int outInteger[] ); + +TA_RetCode TA_S_CDL3STARSINSOUTH( int startIdx, + int endIdx, + const float inOpen[], + const float inHigh[], + const float inLow[], + const float inClose[], + int *outBegIdx, + int *outNBElement, + int outInteger[] ); + +int TA_CDL3STARSINSOUTH_Lookback( void ); + + +/* + * TA_CDL3WHITESOLDIERS - Three Advancing White Soldiers + * + * Input = Open, High, Low, Close + * Output = int + * + */ +TA_RetCode TA_CDL3WHITESOLDIERS( int startIdx, + int endIdx, + const double inOpen[], + const double inHigh[], + const double inLow[], + const double inClose[], + int *outBegIdx, + int *outNBElement, + int outInteger[] ); + +TA_RetCode TA_S_CDL3WHITESOLDIERS( int startIdx, + int endIdx, + const float inOpen[], + const float inHigh[], + const float inLow[], + const float inClose[], + int *outBegIdx, + int *outNBElement, + int outInteger[] ); + +int TA_CDL3WHITESOLDIERS_Lookback( void ); + + +/* + * TA_CDLABANDONEDBABY - Abandoned Baby + * + * Input = Open, High, Low, Close + * Output = int + * + * Optional Parameters + * ------------------- + * optInPenetration:(From 0 to TA_REAL_MAX) + * Percentage of penetration of a candle within another candle + * + * + */ +TA_RetCode TA_CDLABANDONEDBABY( int startIdx, + int endIdx, + const double inOpen[], + const double inHigh[], + const double inLow[], + const double inClose[], + double optInPenetration, /* From 0 to TA_REAL_MAX */ + int *outBegIdx, + int *outNBElement, + int outInteger[] ); + +TA_RetCode TA_S_CDLABANDONEDBABY( int startIdx, + int endIdx, + const float inOpen[], + const float inHigh[], + const float inLow[], + const float inClose[], + double optInPenetration, /* From 0 to TA_REAL_MAX */ + int *outBegIdx, + int *outNBElement, + int outInteger[] ); + +int TA_CDLABANDONEDBABY_Lookback( double optInPenetration ); /* From 0 to TA_REAL_MAX */ + + +/* + * TA_CDLADVANCEBLOCK - Advance Block + * + * Input = Open, High, Low, Close + * Output = int + * + */ +TA_RetCode TA_CDLADVANCEBLOCK( int startIdx, + int endIdx, + const double inOpen[], + const double inHigh[], + const double inLow[], + const double inClose[], + int *outBegIdx, + int *outNBElement, + int outInteger[] ); + +TA_RetCode TA_S_CDLADVANCEBLOCK( int startIdx, + int endIdx, + const float inOpen[], + const float inHigh[], + const float inLow[], + const float inClose[], + int *outBegIdx, + int *outNBElement, + int outInteger[] ); + +int TA_CDLADVANCEBLOCK_Lookback( void ); + + +/* + * TA_CDLBELTHOLD - Belt-hold + * + * Input = Open, High, Low, Close + * Output = int + * + */ +TA_RetCode TA_CDLBELTHOLD( int startIdx, + int endIdx, + const double inOpen[], + const double inHigh[], + const double inLow[], + const double inClose[], + int *outBegIdx, + int *outNBElement, + int outInteger[] ); + +TA_RetCode TA_S_CDLBELTHOLD( int startIdx, + int endIdx, + const float inOpen[], + const float inHigh[], + const float inLow[], + const float inClose[], + int *outBegIdx, + int *outNBElement, + int outInteger[] ); + +int TA_CDLBELTHOLD_Lookback( void ); + + +/* + * TA_CDLBREAKAWAY - Breakaway + * + * Input = Open, High, Low, Close + * Output = int + * + */ +TA_RetCode TA_CDLBREAKAWAY( int startIdx, + int endIdx, + const double inOpen[], + const double inHigh[], + const double inLow[], + const double inClose[], + int *outBegIdx, + int *outNBElement, + int outInteger[] ); + +TA_RetCode TA_S_CDLBREAKAWAY( int startIdx, + int endIdx, + const float inOpen[], + const float inHigh[], + const float inLow[], + const float inClose[], + int *outBegIdx, + int *outNBElement, + int outInteger[] ); + +int TA_CDLBREAKAWAY_Lookback( void ); + + +/* + * TA_CDLCLOSINGMARUBOZU - Closing Marubozu + * + * Input = Open, High, Low, Close + * Output = int + * + */ +TA_RetCode TA_CDLCLOSINGMARUBOZU( int startIdx, + int endIdx, + const double inOpen[], + const double inHigh[], + const double inLow[], + const double inClose[], + int *outBegIdx, + int *outNBElement, + int outInteger[] ); + +TA_RetCode TA_S_CDLCLOSINGMARUBOZU( int startIdx, + int endIdx, + const float inOpen[], + const float inHigh[], + const float inLow[], + const float inClose[], + int *outBegIdx, + int *outNBElement, + int outInteger[] ); + +int TA_CDLCLOSINGMARUBOZU_Lookback( void ); + + +/* + * TA_CDLCONCEALBABYSWALL - Concealing Baby Swallow + * + * Input = Open, High, Low, Close + * Output = int + * + */ +TA_RetCode TA_CDLCONCEALBABYSWALL( int startIdx, + int endIdx, + const double inOpen[], + const double inHigh[], + const double inLow[], + const double inClose[], + int *outBegIdx, + int *outNBElement, + int outInteger[] ); + +TA_RetCode TA_S_CDLCONCEALBABYSWALL( int startIdx, + int endIdx, + const float inOpen[], + const float inHigh[], + const float inLow[], + const float inClose[], + int *outBegIdx, + int *outNBElement, + int outInteger[] ); + +int TA_CDLCONCEALBABYSWALL_Lookback( void ); + + +/* + * TA_CDLCOUNTERATTACK - Counterattack + * + * Input = Open, High, Low, Close + * Output = int + * + */ +TA_RetCode TA_CDLCOUNTERATTACK( int startIdx, + int endIdx, + const double inOpen[], + const double inHigh[], + const double inLow[], + const double inClose[], + int *outBegIdx, + int *outNBElement, + int outInteger[] ); + +TA_RetCode TA_S_CDLCOUNTERATTACK( int startIdx, + int endIdx, + const float inOpen[], + const float inHigh[], + const float inLow[], + const float inClose[], + int *outBegIdx, + int *outNBElement, + int outInteger[] ); + +int TA_CDLCOUNTERATTACK_Lookback( void ); + + +/* + * TA_CDLDARKCLOUDCOVER - Dark Cloud Cover + * + * Input = Open, High, Low, Close + * Output = int + * + * Optional Parameters + * ------------------- + * optInPenetration:(From 0 to TA_REAL_MAX) + * Percentage of penetration of a candle within another candle + * + * + */ +TA_RetCode TA_CDLDARKCLOUDCOVER( int startIdx, + int endIdx, + const double inOpen[], + const double inHigh[], + const double inLow[], + const double inClose[], + double optInPenetration, /* From 0 to TA_REAL_MAX */ + int *outBegIdx, + int *outNBElement, + int outInteger[] ); + +TA_RetCode TA_S_CDLDARKCLOUDCOVER( int startIdx, + int endIdx, + const float inOpen[], + const float inHigh[], + const float inLow[], + const float inClose[], + double optInPenetration, /* From 0 to TA_REAL_MAX */ + int *outBegIdx, + int *outNBElement, + int outInteger[] ); + +int TA_CDLDARKCLOUDCOVER_Lookback( double optInPenetration ); /* From 0 to TA_REAL_MAX */ + + +/* + * TA_CDLDOJI - Doji + * + * Input = Open, High, Low, Close + * Output = int + * + */ +TA_RetCode TA_CDLDOJI( int startIdx, + int endIdx, + const double inOpen[], + const double inHigh[], + const double inLow[], + const double inClose[], + int *outBegIdx, + int *outNBElement, + int outInteger[] ); + +TA_RetCode TA_S_CDLDOJI( int startIdx, + int endIdx, + const float inOpen[], + const float inHigh[], + const float inLow[], + const float inClose[], + int *outBegIdx, + int *outNBElement, + int outInteger[] ); + +int TA_CDLDOJI_Lookback( void ); + + +/* + * TA_CDLDOJISTAR - Doji Star + * + * Input = Open, High, Low, Close + * Output = int + * + */ +TA_RetCode TA_CDLDOJISTAR( int startIdx, + int endIdx, + const double inOpen[], + const double inHigh[], + const double inLow[], + const double inClose[], + int *outBegIdx, + int *outNBElement, + int outInteger[] ); + +TA_RetCode TA_S_CDLDOJISTAR( int startIdx, + int endIdx, + const float inOpen[], + const float inHigh[], + const float inLow[], + const float inClose[], + int *outBegIdx, + int *outNBElement, + int outInteger[] ); + +int TA_CDLDOJISTAR_Lookback( void ); + + +/* + * TA_CDLDRAGONFLYDOJI - Dragonfly Doji + * + * Input = Open, High, Low, Close + * Output = int + * + */ +TA_RetCode TA_CDLDRAGONFLYDOJI( int startIdx, + int endIdx, + const double inOpen[], + const double inHigh[], + const double inLow[], + const double inClose[], + int *outBegIdx, + int *outNBElement, + int outInteger[] ); + +TA_RetCode TA_S_CDLDRAGONFLYDOJI( int startIdx, + int endIdx, + const float inOpen[], + const float inHigh[], + const float inLow[], + const float inClose[], + int *outBegIdx, + int *outNBElement, + int outInteger[] ); + +int TA_CDLDRAGONFLYDOJI_Lookback( void ); + + +/* + * TA_CDLENGULFING - Engulfing Pattern + * + * Input = Open, High, Low, Close + * Output = int + * + */ +TA_RetCode TA_CDLENGULFING( int startIdx, + int endIdx, + const double inOpen[], + const double inHigh[], + const double inLow[], + const double inClose[], + int *outBegIdx, + int *outNBElement, + int outInteger[] ); + +TA_RetCode TA_S_CDLENGULFING( int startIdx, + int endIdx, + const float inOpen[], + const float inHigh[], + const float inLow[], + const float inClose[], + int *outBegIdx, + int *outNBElement, + int outInteger[] ); + +int TA_CDLENGULFING_Lookback( void ); + + +/* + * TA_CDLEVENINGDOJISTAR - Evening Doji Star + * + * Input = Open, High, Low, Close + * Output = int + * + * Optional Parameters + * ------------------- + * optInPenetration:(From 0 to TA_REAL_MAX) + * Percentage of penetration of a candle within another candle + * + * + */ +TA_RetCode TA_CDLEVENINGDOJISTAR( int startIdx, + int endIdx, + const double inOpen[], + const double inHigh[], + const double inLow[], + const double inClose[], + double optInPenetration, /* From 0 to TA_REAL_MAX */ + int *outBegIdx, + int *outNBElement, + int outInteger[] ); + +TA_RetCode TA_S_CDLEVENINGDOJISTAR( int startIdx, + int endIdx, + const float inOpen[], + const float inHigh[], + const float inLow[], + const float inClose[], + double optInPenetration, /* From 0 to TA_REAL_MAX */ + int *outBegIdx, + int *outNBElement, + int outInteger[] ); + +int TA_CDLEVENINGDOJISTAR_Lookback( double optInPenetration ); /* From 0 to TA_REAL_MAX */ + + +/* + * TA_CDLEVENINGSTAR - Evening Star + * + * Input = Open, High, Low, Close + * Output = int + * + * Optional Parameters + * ------------------- + * optInPenetration:(From 0 to TA_REAL_MAX) + * Percentage of penetration of a candle within another candle + * + * + */ +TA_RetCode TA_CDLEVENINGSTAR( int startIdx, + int endIdx, + const double inOpen[], + const double inHigh[], + const double inLow[], + const double inClose[], + double optInPenetration, /* From 0 to TA_REAL_MAX */ + int *outBegIdx, + int *outNBElement, + int outInteger[] ); + +TA_RetCode TA_S_CDLEVENINGSTAR( int startIdx, + int endIdx, + const float inOpen[], + const float inHigh[], + const float inLow[], + const float inClose[], + double optInPenetration, /* From 0 to TA_REAL_MAX */ + int *outBegIdx, + int *outNBElement, + int outInteger[] ); + +int TA_CDLEVENINGSTAR_Lookback( double optInPenetration ); /* From 0 to TA_REAL_MAX */ + + +/* + * TA_CDLGAPSIDESIDEWHITE - Up/Down-gap side-by-side white lines + * + * Input = Open, High, Low, Close + * Output = int + * + */ +TA_RetCode TA_CDLGAPSIDESIDEWHITE( int startIdx, + int endIdx, + const double inOpen[], + const double inHigh[], + const double inLow[], + const double inClose[], + int *outBegIdx, + int *outNBElement, + int outInteger[] ); + +TA_RetCode TA_S_CDLGAPSIDESIDEWHITE( int startIdx, + int endIdx, + const float inOpen[], + const float inHigh[], + const float inLow[], + const float inClose[], + int *outBegIdx, + int *outNBElement, + int outInteger[] ); + +int TA_CDLGAPSIDESIDEWHITE_Lookback( void ); + + +/* + * TA_CDLGRAVESTONEDOJI - Gravestone Doji + * + * Input = Open, High, Low, Close + * Output = int + * + */ +TA_RetCode TA_CDLGRAVESTONEDOJI( int startIdx, + int endIdx, + const double inOpen[], + const double inHigh[], + const double inLow[], + const double inClose[], + int *outBegIdx, + int *outNBElement, + int outInteger[] ); + +TA_RetCode TA_S_CDLGRAVESTONEDOJI( int startIdx, + int endIdx, + const float inOpen[], + const float inHigh[], + const float inLow[], + const float inClose[], + int *outBegIdx, + int *outNBElement, + int outInteger[] ); + +int TA_CDLGRAVESTONEDOJI_Lookback( void ); + + +/* + * TA_CDLHAMMER - Hammer + * + * Input = Open, High, Low, Close + * Output = int + * + */ +TA_RetCode TA_CDLHAMMER( int startIdx, + int endIdx, + const double inOpen[], + const double inHigh[], + const double inLow[], + const double inClose[], + int *outBegIdx, + int *outNBElement, + int outInteger[] ); + +TA_RetCode TA_S_CDLHAMMER( int startIdx, + int endIdx, + const float inOpen[], + const float inHigh[], + const float inLow[], + const float inClose[], + int *outBegIdx, + int *outNBElement, + int outInteger[] ); + +int TA_CDLHAMMER_Lookback( void ); + + +/* + * TA_CDLHANGINGMAN - Hanging Man + * + * Input = Open, High, Low, Close + * Output = int + * + */ +TA_RetCode TA_CDLHANGINGMAN( int startIdx, + int endIdx, + const double inOpen[], + const double inHigh[], + const double inLow[], + const double inClose[], + int *outBegIdx, + int *outNBElement, + int outInteger[] ); + +TA_RetCode TA_S_CDLHANGINGMAN( int startIdx, + int endIdx, + const float inOpen[], + const float inHigh[], + const float inLow[], + const float inClose[], + int *outBegIdx, + int *outNBElement, + int outInteger[] ); + +int TA_CDLHANGINGMAN_Lookback( void ); + + +/* + * TA_CDLHARAMI - Harami Pattern + * + * Input = Open, High, Low, Close + * Output = int + * + */ +TA_RetCode TA_CDLHARAMI( int startIdx, + int endIdx, + const double inOpen[], + const double inHigh[], + const double inLow[], + const double inClose[], + int *outBegIdx, + int *outNBElement, + int outInteger[] ); + +TA_RetCode TA_S_CDLHARAMI( int startIdx, + int endIdx, + const float inOpen[], + const float inHigh[], + const float inLow[], + const float inClose[], + int *outBegIdx, + int *outNBElement, + int outInteger[] ); + +int TA_CDLHARAMI_Lookback( void ); + + +/* + * TA_CDLHARAMICROSS - Harami Cross Pattern + * + * Input = Open, High, Low, Close + * Output = int + * + */ +TA_RetCode TA_CDLHARAMICROSS( int startIdx, + int endIdx, + const double inOpen[], + const double inHigh[], + const double inLow[], + const double inClose[], + int *outBegIdx, + int *outNBElement, + int outInteger[] ); + +TA_RetCode TA_S_CDLHARAMICROSS( int startIdx, + int endIdx, + const float inOpen[], + const float inHigh[], + const float inLow[], + const float inClose[], + int *outBegIdx, + int *outNBElement, + int outInteger[] ); + +int TA_CDLHARAMICROSS_Lookback( void ); + + +/* + * TA_CDLHIGHWAVE - High-Wave Candle + * + * Input = Open, High, Low, Close + * Output = int + * + */ +TA_RetCode TA_CDLHIGHWAVE( int startIdx, + int endIdx, + const double inOpen[], + const double inHigh[], + const double inLow[], + const double inClose[], + int *outBegIdx, + int *outNBElement, + int outInteger[] ); + +TA_RetCode TA_S_CDLHIGHWAVE( int startIdx, + int endIdx, + const float inOpen[], + const float inHigh[], + const float inLow[], + const float inClose[], + int *outBegIdx, + int *outNBElement, + int outInteger[] ); + +int TA_CDLHIGHWAVE_Lookback( void ); + + +/* + * TA_CDLHIKKAKE - Hikkake Pattern + * + * Input = Open, High, Low, Close + * Output = int + * + */ +TA_RetCode TA_CDLHIKKAKE( int startIdx, + int endIdx, + const double inOpen[], + const double inHigh[], + const double inLow[], + const double inClose[], + int *outBegIdx, + int *outNBElement, + int outInteger[] ); + +TA_RetCode TA_S_CDLHIKKAKE( int startIdx, + int endIdx, + const float inOpen[], + const float inHigh[], + const float inLow[], + const float inClose[], + int *outBegIdx, + int *outNBElement, + int outInteger[] ); + +int TA_CDLHIKKAKE_Lookback( void ); + + +/* + * TA_CDLHIKKAKEMOD - Modified Hikkake Pattern + * + * Input = Open, High, Low, Close + * Output = int + * + */ +TA_RetCode TA_CDLHIKKAKEMOD( int startIdx, + int endIdx, + const double inOpen[], + const double inHigh[], + const double inLow[], + const double inClose[], + int *outBegIdx, + int *outNBElement, + int outInteger[] ); + +TA_RetCode TA_S_CDLHIKKAKEMOD( int startIdx, + int endIdx, + const float inOpen[], + const float inHigh[], + const float inLow[], + const float inClose[], + int *outBegIdx, + int *outNBElement, + int outInteger[] ); + +int TA_CDLHIKKAKEMOD_Lookback( void ); + + +/* + * TA_CDLHOMINGPIGEON - Homing Pigeon + * + * Input = Open, High, Low, Close + * Output = int + * + */ +TA_RetCode TA_CDLHOMINGPIGEON( int startIdx, + int endIdx, + const double inOpen[], + const double inHigh[], + const double inLow[], + const double inClose[], + int *outBegIdx, + int *outNBElement, + int outInteger[] ); + +TA_RetCode TA_S_CDLHOMINGPIGEON( int startIdx, + int endIdx, + const float inOpen[], + const float inHigh[], + const float inLow[], + const float inClose[], + int *outBegIdx, + int *outNBElement, + int outInteger[] ); + +int TA_CDLHOMINGPIGEON_Lookback( void ); + + +/* + * TA_CDLIDENTICAL3CROWS - Identical Three Crows + * + * Input = Open, High, Low, Close + * Output = int + * + */ +TA_RetCode TA_CDLIDENTICAL3CROWS( int startIdx, + int endIdx, + const double inOpen[], + const double inHigh[], + const double inLow[], + const double inClose[], + int *outBegIdx, + int *outNBElement, + int outInteger[] ); + +TA_RetCode TA_S_CDLIDENTICAL3CROWS( int startIdx, + int endIdx, + const float inOpen[], + const float inHigh[], + const float inLow[], + const float inClose[], + int *outBegIdx, + int *outNBElement, + int outInteger[] ); + +int TA_CDLIDENTICAL3CROWS_Lookback( void ); + + +/* + * TA_CDLINNECK - In-Neck Pattern + * + * Input = Open, High, Low, Close + * Output = int + * + */ +TA_RetCode TA_CDLINNECK( int startIdx, + int endIdx, + const double inOpen[], + const double inHigh[], + const double inLow[], + const double inClose[], + int *outBegIdx, + int *outNBElement, + int outInteger[] ); + +TA_RetCode TA_S_CDLINNECK( int startIdx, + int endIdx, + const float inOpen[], + const float inHigh[], + const float inLow[], + const float inClose[], + int *outBegIdx, + int *outNBElement, + int outInteger[] ); + +int TA_CDLINNECK_Lookback( void ); + + +/* + * TA_CDLINVERTEDHAMMER - Inverted Hammer + * + * Input = Open, High, Low, Close + * Output = int + * + */ +TA_RetCode TA_CDLINVERTEDHAMMER( int startIdx, + int endIdx, + const double inOpen[], + const double inHigh[], + const double inLow[], + const double inClose[], + int *outBegIdx, + int *outNBElement, + int outInteger[] ); + +TA_RetCode TA_S_CDLINVERTEDHAMMER( int startIdx, + int endIdx, + const float inOpen[], + const float inHigh[], + const float inLow[], + const float inClose[], + int *outBegIdx, + int *outNBElement, + int outInteger[] ); + +int TA_CDLINVERTEDHAMMER_Lookback( void ); + + +/* + * TA_CDLKICKING - Kicking + * + * Input = Open, High, Low, Close + * Output = int + * + */ +TA_RetCode TA_CDLKICKING( int startIdx, + int endIdx, + const double inOpen[], + const double inHigh[], + const double inLow[], + const double inClose[], + int *outBegIdx, + int *outNBElement, + int outInteger[] ); + +TA_RetCode TA_S_CDLKICKING( int startIdx, + int endIdx, + const float inOpen[], + const float inHigh[], + const float inLow[], + const float inClose[], + int *outBegIdx, + int *outNBElement, + int outInteger[] ); + +int TA_CDLKICKING_Lookback( void ); + + +/* + * TA_CDLKICKINGBYLENGTH - Kicking - bull/bear determined by the longer marubozu + * + * Input = Open, High, Low, Close + * Output = int + * + */ +TA_RetCode TA_CDLKICKINGBYLENGTH( int startIdx, + int endIdx, + const double inOpen[], + const double inHigh[], + const double inLow[], + const double inClose[], + int *outBegIdx, + int *outNBElement, + int outInteger[] ); + +TA_RetCode TA_S_CDLKICKINGBYLENGTH( int startIdx, + int endIdx, + const float inOpen[], + const float inHigh[], + const float inLow[], + const float inClose[], + int *outBegIdx, + int *outNBElement, + int outInteger[] ); + +int TA_CDLKICKINGBYLENGTH_Lookback( void ); + + +/* + * TA_CDLLADDERBOTTOM - Ladder Bottom + * + * Input = Open, High, Low, Close + * Output = int + * + */ +TA_RetCode TA_CDLLADDERBOTTOM( int startIdx, + int endIdx, + const double inOpen[], + const double inHigh[], + const double inLow[], + const double inClose[], + int *outBegIdx, + int *outNBElement, + int outInteger[] ); + +TA_RetCode TA_S_CDLLADDERBOTTOM( int startIdx, + int endIdx, + const float inOpen[], + const float inHigh[], + const float inLow[], + const float inClose[], + int *outBegIdx, + int *outNBElement, + int outInteger[] ); + +int TA_CDLLADDERBOTTOM_Lookback( void ); + + +/* + * TA_CDLLONGLEGGEDDOJI - Long Legged Doji + * + * Input = Open, High, Low, Close + * Output = int + * + */ +TA_RetCode TA_CDLLONGLEGGEDDOJI( int startIdx, + int endIdx, + const double inOpen[], + const double inHigh[], + const double inLow[], + const double inClose[], + int *outBegIdx, + int *outNBElement, + int outInteger[] ); + +TA_RetCode TA_S_CDLLONGLEGGEDDOJI( int startIdx, + int endIdx, + const float inOpen[], + const float inHigh[], + const float inLow[], + const float inClose[], + int *outBegIdx, + int *outNBElement, + int outInteger[] ); + +int TA_CDLLONGLEGGEDDOJI_Lookback( void ); + + +/* + * TA_CDLLONGLINE - Long Line Candle + * + * Input = Open, High, Low, Close + * Output = int + * + */ +TA_RetCode TA_CDLLONGLINE( int startIdx, + int endIdx, + const double inOpen[], + const double inHigh[], + const double inLow[], + const double inClose[], + int *outBegIdx, + int *outNBElement, + int outInteger[] ); + +TA_RetCode TA_S_CDLLONGLINE( int startIdx, + int endIdx, + const float inOpen[], + const float inHigh[], + const float inLow[], + const float inClose[], + int *outBegIdx, + int *outNBElement, + int outInteger[] ); + +int TA_CDLLONGLINE_Lookback( void ); + + +/* + * TA_CDLMARUBOZU - Marubozu + * + * Input = Open, High, Low, Close + * Output = int + * + */ +TA_RetCode TA_CDLMARUBOZU( int startIdx, + int endIdx, + const double inOpen[], + const double inHigh[], + const double inLow[], + const double inClose[], + int *outBegIdx, + int *outNBElement, + int outInteger[] ); + +TA_RetCode TA_S_CDLMARUBOZU( int startIdx, + int endIdx, + const float inOpen[], + const float inHigh[], + const float inLow[], + const float inClose[], + int *outBegIdx, + int *outNBElement, + int outInteger[] ); + +int TA_CDLMARUBOZU_Lookback( void ); + + +/* + * TA_CDLMATCHINGLOW - Matching Low + * + * Input = Open, High, Low, Close + * Output = int + * + */ +TA_RetCode TA_CDLMATCHINGLOW( int startIdx, + int endIdx, + const double inOpen[], + const double inHigh[], + const double inLow[], + const double inClose[], + int *outBegIdx, + int *outNBElement, + int outInteger[] ); + +TA_RetCode TA_S_CDLMATCHINGLOW( int startIdx, + int endIdx, + const float inOpen[], + const float inHigh[], + const float inLow[], + const float inClose[], + int *outBegIdx, + int *outNBElement, + int outInteger[] ); + +int TA_CDLMATCHINGLOW_Lookback( void ); + + +/* + * TA_CDLMATHOLD - Mat Hold + * + * Input = Open, High, Low, Close + * Output = int + * + * Optional Parameters + * ------------------- + * optInPenetration:(From 0 to TA_REAL_MAX) + * Percentage of penetration of a candle within another candle + * + * + */ +TA_RetCode TA_CDLMATHOLD( int startIdx, + int endIdx, + const double inOpen[], + const double inHigh[], + const double inLow[], + const double inClose[], + double optInPenetration, /* From 0 to TA_REAL_MAX */ + int *outBegIdx, + int *outNBElement, + int outInteger[] ); + +TA_RetCode TA_S_CDLMATHOLD( int startIdx, + int endIdx, + const float inOpen[], + const float inHigh[], + const float inLow[], + const float inClose[], + double optInPenetration, /* From 0 to TA_REAL_MAX */ + int *outBegIdx, + int *outNBElement, + int outInteger[] ); + +int TA_CDLMATHOLD_Lookback( double optInPenetration ); /* From 0 to TA_REAL_MAX */ + + +/* + * TA_CDLMORNINGDOJISTAR - Morning Doji Star + * + * Input = Open, High, Low, Close + * Output = int + * + * Optional Parameters + * ------------------- + * optInPenetration:(From 0 to TA_REAL_MAX) + * Percentage of penetration of a candle within another candle + * + * + */ +TA_RetCode TA_CDLMORNINGDOJISTAR( int startIdx, + int endIdx, + const double inOpen[], + const double inHigh[], + const double inLow[], + const double inClose[], + double optInPenetration, /* From 0 to TA_REAL_MAX */ + int *outBegIdx, + int *outNBElement, + int outInteger[] ); + +TA_RetCode TA_S_CDLMORNINGDOJISTAR( int startIdx, + int endIdx, + const float inOpen[], + const float inHigh[], + const float inLow[], + const float inClose[], + double optInPenetration, /* From 0 to TA_REAL_MAX */ + int *outBegIdx, + int *outNBElement, + int outInteger[] ); + +int TA_CDLMORNINGDOJISTAR_Lookback( double optInPenetration ); /* From 0 to TA_REAL_MAX */ + + +/* + * TA_CDLMORNINGSTAR - Morning Star + * + * Input = Open, High, Low, Close + * Output = int + * + * Optional Parameters + * ------------------- + * optInPenetration:(From 0 to TA_REAL_MAX) + * Percentage of penetration of a candle within another candle + * + * + */ +TA_RetCode TA_CDLMORNINGSTAR( int startIdx, + int endIdx, + const double inOpen[], + const double inHigh[], + const double inLow[], + const double inClose[], + double optInPenetration, /* From 0 to TA_REAL_MAX */ + int *outBegIdx, + int *outNBElement, + int outInteger[] ); + +TA_RetCode TA_S_CDLMORNINGSTAR( int startIdx, + int endIdx, + const float inOpen[], + const float inHigh[], + const float inLow[], + const float inClose[], + double optInPenetration, /* From 0 to TA_REAL_MAX */ + int *outBegIdx, + int *outNBElement, + int outInteger[] ); + +int TA_CDLMORNINGSTAR_Lookback( double optInPenetration ); /* From 0 to TA_REAL_MAX */ + + +/* + * TA_CDLONNECK - On-Neck Pattern + * + * Input = Open, High, Low, Close + * Output = int + * + */ +TA_RetCode TA_CDLONNECK( int startIdx, + int endIdx, + const double inOpen[], + const double inHigh[], + const double inLow[], + const double inClose[], + int *outBegIdx, + int *outNBElement, + int outInteger[] ); + +TA_RetCode TA_S_CDLONNECK( int startIdx, + int endIdx, + const float inOpen[], + const float inHigh[], + const float inLow[], + const float inClose[], + int *outBegIdx, + int *outNBElement, + int outInteger[] ); + +int TA_CDLONNECK_Lookback( void ); + + +/* + * TA_CDLPIERCING - Piercing Pattern + * + * Input = Open, High, Low, Close + * Output = int + * + */ +TA_RetCode TA_CDLPIERCING( int startIdx, + int endIdx, + const double inOpen[], + const double inHigh[], + const double inLow[], + const double inClose[], + int *outBegIdx, + int *outNBElement, + int outInteger[] ); + +TA_RetCode TA_S_CDLPIERCING( int startIdx, + int endIdx, + const float inOpen[], + const float inHigh[], + const float inLow[], + const float inClose[], + int *outBegIdx, + int *outNBElement, + int outInteger[] ); + +int TA_CDLPIERCING_Lookback( void ); + + +/* + * TA_CDLRICKSHAWMAN - Rickshaw Man + * + * Input = Open, High, Low, Close + * Output = int + * + */ +TA_RetCode TA_CDLRICKSHAWMAN( int startIdx, + int endIdx, + const double inOpen[], + const double inHigh[], + const double inLow[], + const double inClose[], + int *outBegIdx, + int *outNBElement, + int outInteger[] ); + +TA_RetCode TA_S_CDLRICKSHAWMAN( int startIdx, + int endIdx, + const float inOpen[], + const float inHigh[], + const float inLow[], + const float inClose[], + int *outBegIdx, + int *outNBElement, + int outInteger[] ); + +int TA_CDLRICKSHAWMAN_Lookback( void ); + + +/* + * TA_CDLRISEFALL3METHODS - Rising/Falling Three Methods + * + * Input = Open, High, Low, Close + * Output = int + * + */ +TA_RetCode TA_CDLRISEFALL3METHODS( int startIdx, + int endIdx, + const double inOpen[], + const double inHigh[], + const double inLow[], + const double inClose[], + int *outBegIdx, + int *outNBElement, + int outInteger[] ); + +TA_RetCode TA_S_CDLRISEFALL3METHODS( int startIdx, + int endIdx, + const float inOpen[], + const float inHigh[], + const float inLow[], + const float inClose[], + int *outBegIdx, + int *outNBElement, + int outInteger[] ); + +int TA_CDLRISEFALL3METHODS_Lookback( void ); + + +/* + * TA_CDLSEPARATINGLINES - Separating Lines + * + * Input = Open, High, Low, Close + * Output = int + * + */ +TA_RetCode TA_CDLSEPARATINGLINES( int startIdx, + int endIdx, + const double inOpen[], + const double inHigh[], + const double inLow[], + const double inClose[], + int *outBegIdx, + int *outNBElement, + int outInteger[] ); + +TA_RetCode TA_S_CDLSEPARATINGLINES( int startIdx, + int endIdx, + const float inOpen[], + const float inHigh[], + const float inLow[], + const float inClose[], + int *outBegIdx, + int *outNBElement, + int outInteger[] ); + +int TA_CDLSEPARATINGLINES_Lookback( void ); + + +/* + * TA_CDLSHOOTINGSTAR - Shooting Star + * + * Input = Open, High, Low, Close + * Output = int + * + */ +TA_RetCode TA_CDLSHOOTINGSTAR( int startIdx, + int endIdx, + const double inOpen[], + const double inHigh[], + const double inLow[], + const double inClose[], + int *outBegIdx, + int *outNBElement, + int outInteger[] ); + +TA_RetCode TA_S_CDLSHOOTINGSTAR( int startIdx, + int endIdx, + const float inOpen[], + const float inHigh[], + const float inLow[], + const float inClose[], + int *outBegIdx, + int *outNBElement, + int outInteger[] ); + +int TA_CDLSHOOTINGSTAR_Lookback( void ); + + +/* + * TA_CDLSHORTLINE - Short Line Candle + * + * Input = Open, High, Low, Close + * Output = int + * + */ +TA_RetCode TA_CDLSHORTLINE( int startIdx, + int endIdx, + const double inOpen[], + const double inHigh[], + const double inLow[], + const double inClose[], + int *outBegIdx, + int *outNBElement, + int outInteger[] ); + +TA_RetCode TA_S_CDLSHORTLINE( int startIdx, + int endIdx, + const float inOpen[], + const float inHigh[], + const float inLow[], + const float inClose[], + int *outBegIdx, + int *outNBElement, + int outInteger[] ); + +int TA_CDLSHORTLINE_Lookback( void ); + + +/* + * TA_CDLSPINNINGTOP - Spinning Top + * + * Input = Open, High, Low, Close + * Output = int + * + */ +TA_RetCode TA_CDLSPINNINGTOP( int startIdx, + int endIdx, + const double inOpen[], + const double inHigh[], + const double inLow[], + const double inClose[], + int *outBegIdx, + int *outNBElement, + int outInteger[] ); + +TA_RetCode TA_S_CDLSPINNINGTOP( int startIdx, + int endIdx, + const float inOpen[], + const float inHigh[], + const float inLow[], + const float inClose[], + int *outBegIdx, + int *outNBElement, + int outInteger[] ); + +int TA_CDLSPINNINGTOP_Lookback( void ); + + +/* + * TA_CDLSTALLEDPATTERN - Stalled Pattern + * + * Input = Open, High, Low, Close + * Output = int + * + */ +TA_RetCode TA_CDLSTALLEDPATTERN( int startIdx, + int endIdx, + const double inOpen[], + const double inHigh[], + const double inLow[], + const double inClose[], + int *outBegIdx, + int *outNBElement, + int outInteger[] ); + +TA_RetCode TA_S_CDLSTALLEDPATTERN( int startIdx, + int endIdx, + const float inOpen[], + const float inHigh[], + const float inLow[], + const float inClose[], + int *outBegIdx, + int *outNBElement, + int outInteger[] ); + +int TA_CDLSTALLEDPATTERN_Lookback( void ); + + +/* + * TA_CDLSTICKSANDWICH - Stick Sandwich + * + * Input = Open, High, Low, Close + * Output = int + * + */ +TA_RetCode TA_CDLSTICKSANDWICH( int startIdx, + int endIdx, + const double inOpen[], + const double inHigh[], + const double inLow[], + const double inClose[], + int *outBegIdx, + int *outNBElement, + int outInteger[] ); + +TA_RetCode TA_S_CDLSTICKSANDWICH( int startIdx, + int endIdx, + const float inOpen[], + const float inHigh[], + const float inLow[], + const float inClose[], + int *outBegIdx, + int *outNBElement, + int outInteger[] ); + +int TA_CDLSTICKSANDWICH_Lookback( void ); + + +/* + * TA_CDLTAKURI - Takuri (Dragonfly Doji with very long lower shadow) + * + * Input = Open, High, Low, Close + * Output = int + * + */ +TA_RetCode TA_CDLTAKURI( int startIdx, + int endIdx, + const double inOpen[], + const double inHigh[], + const double inLow[], + const double inClose[], + int *outBegIdx, + int *outNBElement, + int outInteger[] ); + +TA_RetCode TA_S_CDLTAKURI( int startIdx, + int endIdx, + const float inOpen[], + const float inHigh[], + const float inLow[], + const float inClose[], + int *outBegIdx, + int *outNBElement, + int outInteger[] ); + +int TA_CDLTAKURI_Lookback( void ); + + +/* + * TA_CDLTASUKIGAP - Tasuki Gap + * + * Input = Open, High, Low, Close + * Output = int + * + */ +TA_RetCode TA_CDLTASUKIGAP( int startIdx, + int endIdx, + const double inOpen[], + const double inHigh[], + const double inLow[], + const double inClose[], + int *outBegIdx, + int *outNBElement, + int outInteger[] ); + +TA_RetCode TA_S_CDLTASUKIGAP( int startIdx, + int endIdx, + const float inOpen[], + const float inHigh[], + const float inLow[], + const float inClose[], + int *outBegIdx, + int *outNBElement, + int outInteger[] ); + +int TA_CDLTASUKIGAP_Lookback( void ); + + +/* + * TA_CDLTHRUSTING - Thrusting Pattern + * + * Input = Open, High, Low, Close + * Output = int + * + */ +TA_RetCode TA_CDLTHRUSTING( int startIdx, + int endIdx, + const double inOpen[], + const double inHigh[], + const double inLow[], + const double inClose[], + int *outBegIdx, + int *outNBElement, + int outInteger[] ); + +TA_RetCode TA_S_CDLTHRUSTING( int startIdx, + int endIdx, + const float inOpen[], + const float inHigh[], + const float inLow[], + const float inClose[], + int *outBegIdx, + int *outNBElement, + int outInteger[] ); + +int TA_CDLTHRUSTING_Lookback( void ); + + +/* + * TA_CDLTRISTAR - Tristar Pattern + * + * Input = Open, High, Low, Close + * Output = int + * + */ +TA_RetCode TA_CDLTRISTAR( int startIdx, + int endIdx, + const double inOpen[], + const double inHigh[], + const double inLow[], + const double inClose[], + int *outBegIdx, + int *outNBElement, + int outInteger[] ); + +TA_RetCode TA_S_CDLTRISTAR( int startIdx, + int endIdx, + const float inOpen[], + const float inHigh[], + const float inLow[], + const float inClose[], + int *outBegIdx, + int *outNBElement, + int outInteger[] ); + +int TA_CDLTRISTAR_Lookback( void ); + + +/* + * TA_CDLUNIQUE3RIVER - Unique 3 River + * + * Input = Open, High, Low, Close + * Output = int + * + */ +TA_RetCode TA_CDLUNIQUE3RIVER( int startIdx, + int endIdx, + const double inOpen[], + const double inHigh[], + const double inLow[], + const double inClose[], + int *outBegIdx, + int *outNBElement, + int outInteger[] ); + +TA_RetCode TA_S_CDLUNIQUE3RIVER( int startIdx, + int endIdx, + const float inOpen[], + const float inHigh[], + const float inLow[], + const float inClose[], + int *outBegIdx, + int *outNBElement, + int outInteger[] ); + +int TA_CDLUNIQUE3RIVER_Lookback( void ); + + +/* + * TA_CDLUPSIDEGAP2CROWS - Upside Gap Two Crows + * + * Input = Open, High, Low, Close + * Output = int + * + */ +TA_RetCode TA_CDLUPSIDEGAP2CROWS( int startIdx, + int endIdx, + const double inOpen[], + const double inHigh[], + const double inLow[], + const double inClose[], + int *outBegIdx, + int *outNBElement, + int outInteger[] ); + +TA_RetCode TA_S_CDLUPSIDEGAP2CROWS( int startIdx, + int endIdx, + const float inOpen[], + const float inHigh[], + const float inLow[], + const float inClose[], + int *outBegIdx, + int *outNBElement, + int outInteger[] ); + +int TA_CDLUPSIDEGAP2CROWS_Lookback( void ); + + +/* + * TA_CDLXSIDEGAP3METHODS - Upside/Downside Gap Three Methods + * + * Input = Open, High, Low, Close + * Output = int + * + */ +TA_RetCode TA_CDLXSIDEGAP3METHODS( int startIdx, + int endIdx, + const double inOpen[], + const double inHigh[], + const double inLow[], + const double inClose[], + int *outBegIdx, + int *outNBElement, + int outInteger[] ); + +TA_RetCode TA_S_CDLXSIDEGAP3METHODS( int startIdx, + int endIdx, + const float inOpen[], + const float inHigh[], + const float inLow[], + const float inClose[], + int *outBegIdx, + int *outNBElement, + int outInteger[] ); + +int TA_CDLXSIDEGAP3METHODS_Lookback( void ); + + +/* + * TA_CEIL - Vector Ceil + * + * Input = double + * Output = double + * + */ +TA_RetCode TA_CEIL( int startIdx, + int endIdx, + const double inReal[], + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +TA_RetCode TA_S_CEIL( int startIdx, + int endIdx, + const float inReal[], + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +int TA_CEIL_Lookback( void ); + + +/* + * TA_CMO - Chande Momentum Oscillator + * + * Input = double + * Output = double + * + * Optional Parameters + * ------------------- + * optInTimePeriod:(From 2 to 100000) + * Number of period + * + * + */ +TA_RetCode TA_CMO( int startIdx, + int endIdx, + const double inReal[], + int optInTimePeriod, /* From 2 to 100000 */ + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +TA_RetCode TA_S_CMO( int startIdx, + int endIdx, + const float inReal[], + int optInTimePeriod, /* From 2 to 100000 */ + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +int TA_CMO_Lookback( int optInTimePeriod ); /* From 2 to 100000 */ + + +/* + * TA_CORREL - Pearson's Correlation Coefficient (r) + * + * Input = double, double + * Output = double + * + * Optional Parameters + * ------------------- + * optInTimePeriod:(From 1 to 100000) + * Number of period + * + * + */ +TA_RetCode TA_CORREL( int startIdx, + int endIdx, + const double inReal0[], + const double inReal1[], + int optInTimePeriod, /* From 1 to 100000 */ + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +TA_RetCode TA_S_CORREL( int startIdx, + int endIdx, + const float inReal0[], + const float inReal1[], + int optInTimePeriod, /* From 1 to 100000 */ + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +int TA_CORREL_Lookback( int optInTimePeriod ); /* From 1 to 100000 */ + + +/* + * TA_COS - Vector Trigonometric Cos + * + * Input = double + * Output = double + * + */ +TA_RetCode TA_COS( int startIdx, + int endIdx, + const double inReal[], + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +TA_RetCode TA_S_COS( int startIdx, + int endIdx, + const float inReal[], + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +int TA_COS_Lookback( void ); + + +/* + * TA_COSH - Vector Trigonometric Cosh + * + * Input = double + * Output = double + * + */ +TA_RetCode TA_COSH( int startIdx, + int endIdx, + const double inReal[], + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +TA_RetCode TA_S_COSH( int startIdx, + int endIdx, + const float inReal[], + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +int TA_COSH_Lookback( void ); + + +/* + * TA_DEMA - Double Exponential Moving Average + * + * Input = double + * Output = double + * + * Optional Parameters + * ------------------- + * optInTimePeriod:(From 2 to 100000) + * Number of period + * + * + */ +TA_RetCode TA_DEMA( int startIdx, + int endIdx, + const double inReal[], + int optInTimePeriod, /* From 2 to 100000 */ + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +TA_RetCode TA_S_DEMA( int startIdx, + int endIdx, + const float inReal[], + int optInTimePeriod, /* From 2 to 100000 */ + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +int TA_DEMA_Lookback( int optInTimePeriod ); /* From 2 to 100000 */ + + +/* + * TA_DIV - Vector Arithmetic Div + * + * Input = double, double + * Output = double + * + */ +TA_RetCode TA_DIV( int startIdx, + int endIdx, + const double inReal0[], + const double inReal1[], + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +TA_RetCode TA_S_DIV( int startIdx, + int endIdx, + const float inReal0[], + const float inReal1[], + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +int TA_DIV_Lookback( void ); + + +/* + * TA_DX - Directional Movement Index + * + * Input = High, Low, Close + * Output = double + * + * Optional Parameters + * ------------------- + * optInTimePeriod:(From 2 to 100000) + * Number of period + * + * + */ +TA_RetCode TA_DX( int startIdx, + int endIdx, + const double inHigh[], + const double inLow[], + const double inClose[], + int optInTimePeriod, /* From 2 to 100000 */ + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +TA_RetCode TA_S_DX( int startIdx, + int endIdx, + const float inHigh[], + const float inLow[], + const float inClose[], + int optInTimePeriod, /* From 2 to 100000 */ + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +int TA_DX_Lookback( int optInTimePeriod ); /* From 2 to 100000 */ + + +/* + * TA_EMA - Exponential Moving Average + * + * Input = double + * Output = double + * + * Optional Parameters + * ------------------- + * optInTimePeriod:(From 2 to 100000) + * Number of period + * + * + */ +TA_RetCode TA_EMA( int startIdx, + int endIdx, + const double inReal[], + int optInTimePeriod, /* From 2 to 100000 */ + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +TA_RetCode TA_S_EMA( int startIdx, + int endIdx, + const float inReal[], + int optInTimePeriod, /* From 2 to 100000 */ + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +int TA_EMA_Lookback( int optInTimePeriod ); /* From 2 to 100000 */ + + +/* + * TA_EXP - Vector Arithmetic Exp + * + * Input = double + * Output = double + * + */ +TA_RetCode TA_EXP( int startIdx, + int endIdx, + const double inReal[], + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +TA_RetCode TA_S_EXP( int startIdx, + int endIdx, + const float inReal[], + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +int TA_EXP_Lookback( void ); + + +/* + * TA_FLOOR - Vector Floor + * + * Input = double + * Output = double + * + */ +TA_RetCode TA_FLOOR( int startIdx, + int endIdx, + const double inReal[], + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +TA_RetCode TA_S_FLOOR( int startIdx, + int endIdx, + const float inReal[], + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +int TA_FLOOR_Lookback( void ); + + +/* + * TA_HT_DCPERIOD - Hilbert Transform - Dominant Cycle Period + * + * Input = double + * Output = double + * + */ +TA_RetCode TA_HT_DCPERIOD( int startIdx, + int endIdx, + const double inReal[], + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +TA_RetCode TA_S_HT_DCPERIOD( int startIdx, + int endIdx, + const float inReal[], + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +int TA_HT_DCPERIOD_Lookback( void ); + + +/* + * TA_HT_DCPHASE - Hilbert Transform - Dominant Cycle Phase + * + * Input = double + * Output = double + * + */ +TA_RetCode TA_HT_DCPHASE( int startIdx, + int endIdx, + const double inReal[], + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +TA_RetCode TA_S_HT_DCPHASE( int startIdx, + int endIdx, + const float inReal[], + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +int TA_HT_DCPHASE_Lookback( void ); + + +/* + * TA_HT_PHASOR - Hilbert Transform - Phasor Components + * + * Input = double + * Output = double, double + * + */ +TA_RetCode TA_HT_PHASOR( int startIdx, + int endIdx, + const double inReal[], + int *outBegIdx, + int *outNBElement, + double outInPhase[], + double outQuadrature[] ); + +TA_RetCode TA_S_HT_PHASOR( int startIdx, + int endIdx, + const float inReal[], + int *outBegIdx, + int *outNBElement, + double outInPhase[], + double outQuadrature[] ); + +int TA_HT_PHASOR_Lookback( void ); + + +/* + * TA_HT_SINE - Hilbert Transform - SineWave + * + * Input = double + * Output = double, double + * + */ +TA_RetCode TA_HT_SINE( int startIdx, + int endIdx, + const double inReal[], + int *outBegIdx, + int *outNBElement, + double outSine[], + double outLeadSine[] ); + +TA_RetCode TA_S_HT_SINE( int startIdx, + int endIdx, + const float inReal[], + int *outBegIdx, + int *outNBElement, + double outSine[], + double outLeadSine[] ); + +int TA_HT_SINE_Lookback( void ); + + +/* + * TA_HT_TRENDLINE - Hilbert Transform - Instantaneous Trendline + * + * Input = double + * Output = double + * + */ +TA_RetCode TA_HT_TRENDLINE( int startIdx, + int endIdx, + const double inReal[], + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +TA_RetCode TA_S_HT_TRENDLINE( int startIdx, + int endIdx, + const float inReal[], + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +int TA_HT_TRENDLINE_Lookback( void ); + + +/* + * TA_HT_TRENDMODE - Hilbert Transform - Trend vs Cycle Mode + * + * Input = double + * Output = int + * + */ +TA_RetCode TA_HT_TRENDMODE( int startIdx, + int endIdx, + const double inReal[], + int *outBegIdx, + int *outNBElement, + int outInteger[] ); + +TA_RetCode TA_S_HT_TRENDMODE( int startIdx, + int endIdx, + const float inReal[], + int *outBegIdx, + int *outNBElement, + int outInteger[] ); + +int TA_HT_TRENDMODE_Lookback( void ); + + +/* + * TA_KAMA - Kaufman Adaptive Moving Average + * + * Input = double + * Output = double + * + * Optional Parameters + * ------------------- + * optInTimePeriod:(From 2 to 100000) + * Number of period + * + * + */ +TA_RetCode TA_KAMA( int startIdx, + int endIdx, + const double inReal[], + int optInTimePeriod, /* From 2 to 100000 */ + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +TA_RetCode TA_S_KAMA( int startIdx, + int endIdx, + const float inReal[], + int optInTimePeriod, /* From 2 to 100000 */ + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +int TA_KAMA_Lookback( int optInTimePeriod ); /* From 2 to 100000 */ + + +/* + * TA_LINEARREG - Linear Regression + * + * Input = double + * Output = double + * + * Optional Parameters + * ------------------- + * optInTimePeriod:(From 2 to 100000) + * Number of period + * + * + */ +TA_RetCode TA_LINEARREG( int startIdx, + int endIdx, + const double inReal[], + int optInTimePeriod, /* From 2 to 100000 */ + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +TA_RetCode TA_S_LINEARREG( int startIdx, + int endIdx, + const float inReal[], + int optInTimePeriod, /* From 2 to 100000 */ + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +int TA_LINEARREG_Lookback( int optInTimePeriod ); /* From 2 to 100000 */ + + +/* + * TA_LINEARREG_ANGLE - Linear Regression Angle + * + * Input = double + * Output = double + * + * Optional Parameters + * ------------------- + * optInTimePeriod:(From 2 to 100000) + * Number of period + * + * + */ +TA_RetCode TA_LINEARREG_ANGLE( int startIdx, + int endIdx, + const double inReal[], + int optInTimePeriod, /* From 2 to 100000 */ + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +TA_RetCode TA_S_LINEARREG_ANGLE( int startIdx, + int endIdx, + const float inReal[], + int optInTimePeriod, /* From 2 to 100000 */ + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +int TA_LINEARREG_ANGLE_Lookback( int optInTimePeriod ); /* From 2 to 100000 */ + + +/* + * TA_LINEARREG_INTERCEPT - Linear Regression Intercept + * + * Input = double + * Output = double + * + * Optional Parameters + * ------------------- + * optInTimePeriod:(From 2 to 100000) + * Number of period + * + * + */ +TA_RetCode TA_LINEARREG_INTERCEPT( int startIdx, + int endIdx, + const double inReal[], + int optInTimePeriod, /* From 2 to 100000 */ + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +TA_RetCode TA_S_LINEARREG_INTERCEPT( int startIdx, + int endIdx, + const float inReal[], + int optInTimePeriod, /* From 2 to 100000 */ + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +int TA_LINEARREG_INTERCEPT_Lookback( int optInTimePeriod ); /* From 2 to 100000 */ + + +/* + * TA_LINEARREG_SLOPE - Linear Regression Slope + * + * Input = double + * Output = double + * + * Optional Parameters + * ------------------- + * optInTimePeriod:(From 2 to 100000) + * Number of period + * + * + */ +TA_RetCode TA_LINEARREG_SLOPE( int startIdx, + int endIdx, + const double inReal[], + int optInTimePeriod, /* From 2 to 100000 */ + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +TA_RetCode TA_S_LINEARREG_SLOPE( int startIdx, + int endIdx, + const float inReal[], + int optInTimePeriod, /* From 2 to 100000 */ + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +int TA_LINEARREG_SLOPE_Lookback( int optInTimePeriod ); /* From 2 to 100000 */ + + +/* + * TA_LN - Vector Log Natural + * + * Input = double + * Output = double + * + */ +TA_RetCode TA_LN( int startIdx, + int endIdx, + const double inReal[], + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +TA_RetCode TA_S_LN( int startIdx, + int endIdx, + const float inReal[], + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +int TA_LN_Lookback( void ); + + +/* + * TA_LOG10 - Vector Log10 + * + * Input = double + * Output = double + * + */ +TA_RetCode TA_LOG10( int startIdx, + int endIdx, + const double inReal[], + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +TA_RetCode TA_S_LOG10( int startIdx, + int endIdx, + const float inReal[], + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +int TA_LOG10_Lookback( void ); + + +/* + * TA_MA - Moving average + * + * Input = double + * Output = double + * + * Optional Parameters + * ------------------- + * optInTimePeriod:(From 1 to 100000) + * Number of period + * + * optInMAType: + * Type of Moving Average + * + * + */ +TA_RetCode TA_MA( int startIdx, + int endIdx, + const double inReal[], + int optInTimePeriod, /* From 1 to 100000 */ + TA_MAType optInMAType, + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +TA_RetCode TA_S_MA( int startIdx, + int endIdx, + const float inReal[], + int optInTimePeriod, /* From 1 to 100000 */ + TA_MAType optInMAType, + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +int TA_MA_Lookback( int optInTimePeriod, /* From 1 to 100000 */ + TA_MAType optInMAType ); + +/* + * TA_MACD - Moving Average Convergence/Divergence + * + * Input = double + * Output = double, double, double + * + * Optional Parameters + * ------------------- + * optInFastPeriod:(From 2 to 100000) + * Number of period for the fast MA + * + * optInSlowPeriod:(From 2 to 100000) + * Number of period for the slow MA + * + * optInSignalPeriod:(From 1 to 100000) + * Smoothing for the signal line (nb of period) + * + * + */ +TA_RetCode TA_MACD( int startIdx, + int endIdx, + const double inReal[], + int optInFastPeriod, /* From 2 to 100000 */ + int optInSlowPeriod, /* From 2 to 100000 */ + int optInSignalPeriod, /* From 1 to 100000 */ + int *outBegIdx, + int *outNBElement, + double outMACD[], + double outMACDSignal[], + double outMACDHist[] ); + +TA_RetCode TA_S_MACD( int startIdx, + int endIdx, + const float inReal[], + int optInFastPeriod, /* From 2 to 100000 */ + int optInSlowPeriod, /* From 2 to 100000 */ + int optInSignalPeriod, /* From 1 to 100000 */ + int *outBegIdx, + int *outNBElement, + double outMACD[], + double outMACDSignal[], + double outMACDHist[] ); + +int TA_MACD_Lookback( int optInFastPeriod, /* From 2 to 100000 */ + int optInSlowPeriod, /* From 2 to 100000 */ + int optInSignalPeriod ); /* From 1 to 100000 */ + + +/* + * TA_MACDEXT - MACD with controllable MA type + * + * Input = double + * Output = double, double, double + * + * Optional Parameters + * ------------------- + * optInFastPeriod:(From 2 to 100000) + * Number of period for the fast MA + * + * optInFastMAType: + * Type of Moving Average for fast MA + * + * optInSlowPeriod:(From 2 to 100000) + * Number of period for the slow MA + * + * optInSlowMAType: + * Type of Moving Average for slow MA + * + * optInSignalPeriod:(From 1 to 100000) + * Smoothing for the signal line (nb of period) + * + * optInSignalMAType: + * Type of Moving Average for signal line + * + * + */ +TA_RetCode TA_MACDEXT( int startIdx, + int endIdx, + const double inReal[], + int optInFastPeriod, /* From 2 to 100000 */ + TA_MAType optInFastMAType, + int optInSlowPeriod, /* From 2 to 100000 */ + TA_MAType optInSlowMAType, + int optInSignalPeriod, /* From 1 to 100000 */ + TA_MAType optInSignalMAType, + int *outBegIdx, + int *outNBElement, + double outMACD[], + double outMACDSignal[], + double outMACDHist[] ); + +TA_RetCode TA_S_MACDEXT( int startIdx, + int endIdx, + const float inReal[], + int optInFastPeriod, /* From 2 to 100000 */ + TA_MAType optInFastMAType, + int optInSlowPeriod, /* From 2 to 100000 */ + TA_MAType optInSlowMAType, + int optInSignalPeriod, /* From 1 to 100000 */ + TA_MAType optInSignalMAType, + int *outBegIdx, + int *outNBElement, + double outMACD[], + double outMACDSignal[], + double outMACDHist[] ); + +int TA_MACDEXT_Lookback( int optInFastPeriod, /* From 2 to 100000 */ + TA_MAType optInFastMAType, + int optInSlowPeriod, /* From 2 to 100000 */ + TA_MAType optInSlowMAType, + int optInSignalPeriod, /* From 1 to 100000 */ + TA_MAType optInSignalMAType ); + +/* + * TA_MACDFIX - Moving Average Convergence/Divergence Fix 12/26 + * + * Input = double + * Output = double, double, double + * + * Optional Parameters + * ------------------- + * optInSignalPeriod:(From 1 to 100000) + * Smoothing for the signal line (nb of period) + * + * + */ +TA_RetCode TA_MACDFIX( int startIdx, + int endIdx, + const double inReal[], + int optInSignalPeriod, /* From 1 to 100000 */ + int *outBegIdx, + int *outNBElement, + double outMACD[], + double outMACDSignal[], + double outMACDHist[] ); + +TA_RetCode TA_S_MACDFIX( int startIdx, + int endIdx, + const float inReal[], + int optInSignalPeriod, /* From 1 to 100000 */ + int *outBegIdx, + int *outNBElement, + double outMACD[], + double outMACDSignal[], + double outMACDHist[] ); + +int TA_MACDFIX_Lookback( int optInSignalPeriod ); /* From 1 to 100000 */ + + +/* + * TA_MAMA - MESA Adaptive Moving Average + * + * Input = double + * Output = double, double + * + * Optional Parameters + * ------------------- + * optInFastLimit:(From 0.01 to 0.99) + * Upper limit use in the adaptive algorithm + * + * optInSlowLimit:(From 0.01 to 0.99) + * Lower limit use in the adaptive algorithm + * + * + */ +TA_RetCode TA_MAMA( int startIdx, + int endIdx, + const double inReal[], + double optInFastLimit, /* From 0.01 to 0.99 */ + double optInSlowLimit, /* From 0.01 to 0.99 */ + int *outBegIdx, + int *outNBElement, + double outMAMA[], + double outFAMA[] ); + +TA_RetCode TA_S_MAMA( int startIdx, + int endIdx, + const float inReal[], + double optInFastLimit, /* From 0.01 to 0.99 */ + double optInSlowLimit, /* From 0.01 to 0.99 */ + int *outBegIdx, + int *outNBElement, + double outMAMA[], + double outFAMA[] ); + +int TA_MAMA_Lookback( double optInFastLimit, /* From 0.01 to 0.99 */ + double optInSlowLimit ); /* From 0.01 to 0.99 */ + + +/* + * TA_MAVP - Moving average with variable period + * + * Input = double, double + * Output = double + * + * Optional Parameters + * ------------------- + * optInMinPeriod:(From 2 to 100000) + * Value less than minimum will be changed to Minimum period + * + * optInMaxPeriod:(From 2 to 100000) + * Value higher than maximum will be changed to Maximum period + * + * optInMAType: + * Type of Moving Average + * + * + */ +TA_RetCode TA_MAVP( int startIdx, + int endIdx, + const double inReal[], + const double inPeriods[], + int optInMinPeriod, /* From 2 to 100000 */ + int optInMaxPeriod, /* From 2 to 100000 */ + TA_MAType optInMAType, + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +TA_RetCode TA_S_MAVP( int startIdx, + int endIdx, + const float inReal[], + const float inPeriods[], + int optInMinPeriod, /* From 2 to 100000 */ + int optInMaxPeriod, /* From 2 to 100000 */ + TA_MAType optInMAType, + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +int TA_MAVP_Lookback( int optInMinPeriod, /* From 2 to 100000 */ + int optInMaxPeriod, /* From 2 to 100000 */ + TA_MAType optInMAType ); + +/* + * TA_MAX - Highest value over a specified period + * + * Input = double + * Output = double + * + * Optional Parameters + * ------------------- + * optInTimePeriod:(From 2 to 100000) + * Number of period + * + * + */ +TA_RetCode TA_MAX( int startIdx, + int endIdx, + const double inReal[], + int optInTimePeriod, /* From 2 to 100000 */ + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +TA_RetCode TA_S_MAX( int startIdx, + int endIdx, + const float inReal[], + int optInTimePeriod, /* From 2 to 100000 */ + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +int TA_MAX_Lookback( int optInTimePeriod ); /* From 2 to 100000 */ + + +/* + * TA_MAXINDEX - Index of highest value over a specified period + * + * Input = double + * Output = int + * + * Optional Parameters + * ------------------- + * optInTimePeriod:(From 2 to 100000) + * Number of period + * + * + */ +TA_RetCode TA_MAXINDEX( int startIdx, + int endIdx, + const double inReal[], + int optInTimePeriod, /* From 2 to 100000 */ + int *outBegIdx, + int *outNBElement, + int outInteger[] ); + +TA_RetCode TA_S_MAXINDEX( int startIdx, + int endIdx, + const float inReal[], + int optInTimePeriod, /* From 2 to 100000 */ + int *outBegIdx, + int *outNBElement, + int outInteger[] ); + +int TA_MAXINDEX_Lookback( int optInTimePeriod ); /* From 2 to 100000 */ + + +/* + * TA_MEDPRICE - Median Price + * + * Input = High, Low + * Output = double + * + */ +TA_RetCode TA_MEDPRICE( int startIdx, + int endIdx, + const double inHigh[], + const double inLow[], + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +TA_RetCode TA_S_MEDPRICE( int startIdx, + int endIdx, + const float inHigh[], + const float inLow[], + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +int TA_MEDPRICE_Lookback( void ); + + +/* + * TA_MFI - Money Flow Index + * + * Input = High, Low, Close, Volume + * Output = double + * + * Optional Parameters + * ------------------- + * optInTimePeriod:(From 2 to 100000) + * Number of period + * + * + */ +TA_RetCode TA_MFI( int startIdx, + int endIdx, + const double inHigh[], + const double inLow[], + const double inClose[], + const double inVolume[], + int optInTimePeriod, /* From 2 to 100000 */ + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +TA_RetCode TA_S_MFI( int startIdx, + int endIdx, + const float inHigh[], + const float inLow[], + const float inClose[], + const float inVolume[], + int optInTimePeriod, /* From 2 to 100000 */ + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +int TA_MFI_Lookback( int optInTimePeriod ); /* From 2 to 100000 */ + + +/* + * TA_MIDPOINT - MidPoint over period + * + * Input = double + * Output = double + * + * Optional Parameters + * ------------------- + * optInTimePeriod:(From 2 to 100000) + * Number of period + * + * + */ +TA_RetCode TA_MIDPOINT( int startIdx, + int endIdx, + const double inReal[], + int optInTimePeriod, /* From 2 to 100000 */ + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +TA_RetCode TA_S_MIDPOINT( int startIdx, + int endIdx, + const float inReal[], + int optInTimePeriod, /* From 2 to 100000 */ + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +int TA_MIDPOINT_Lookback( int optInTimePeriod ); /* From 2 to 100000 */ + + +/* + * TA_MIDPRICE - Midpoint Price over period + * + * Input = High, Low + * Output = double + * + * Optional Parameters + * ------------------- + * optInTimePeriod:(From 2 to 100000) + * Number of period + * + * + */ +TA_RetCode TA_MIDPRICE( int startIdx, + int endIdx, + const double inHigh[], + const double inLow[], + int optInTimePeriod, /* From 2 to 100000 */ + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +TA_RetCode TA_S_MIDPRICE( int startIdx, + int endIdx, + const float inHigh[], + const float inLow[], + int optInTimePeriod, /* From 2 to 100000 */ + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +int TA_MIDPRICE_Lookback( int optInTimePeriod ); /* From 2 to 100000 */ + + +/* + * TA_MIN - Lowest value over a specified period + * + * Input = double + * Output = double + * + * Optional Parameters + * ------------------- + * optInTimePeriod:(From 2 to 100000) + * Number of period + * + * + */ +TA_RetCode TA_MIN( int startIdx, + int endIdx, + const double inReal[], + int optInTimePeriod, /* From 2 to 100000 */ + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +TA_RetCode TA_S_MIN( int startIdx, + int endIdx, + const float inReal[], + int optInTimePeriod, /* From 2 to 100000 */ + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +int TA_MIN_Lookback( int optInTimePeriod ); /* From 2 to 100000 */ + + +/* + * TA_MININDEX - Index of lowest value over a specified period + * + * Input = double + * Output = int + * + * Optional Parameters + * ------------------- + * optInTimePeriod:(From 2 to 100000) + * Number of period + * + * + */ +TA_RetCode TA_MININDEX( int startIdx, + int endIdx, + const double inReal[], + int optInTimePeriod, /* From 2 to 100000 */ + int *outBegIdx, + int *outNBElement, + int outInteger[] ); + +TA_RetCode TA_S_MININDEX( int startIdx, + int endIdx, + const float inReal[], + int optInTimePeriod, /* From 2 to 100000 */ + int *outBegIdx, + int *outNBElement, + int outInteger[] ); + +int TA_MININDEX_Lookback( int optInTimePeriod ); /* From 2 to 100000 */ + + +/* + * TA_MINMAX - Lowest and highest values over a specified period + * + * Input = double + * Output = double, double + * + * Optional Parameters + * ------------------- + * optInTimePeriod:(From 2 to 100000) + * Number of period + * + * + */ +TA_RetCode TA_MINMAX( int startIdx, + int endIdx, + const double inReal[], + int optInTimePeriod, /* From 2 to 100000 */ + int *outBegIdx, + int *outNBElement, + double outMin[], + double outMax[] ); + +TA_RetCode TA_S_MINMAX( int startIdx, + int endIdx, + const float inReal[], + int optInTimePeriod, /* From 2 to 100000 */ + int *outBegIdx, + int *outNBElement, + double outMin[], + double outMax[] ); + +int TA_MINMAX_Lookback( int optInTimePeriod ); /* From 2 to 100000 */ + + +/* + * TA_MINMAXINDEX - Indexes of lowest and highest values over a specified period + * + * Input = double + * Output = int, int + * + * Optional Parameters + * ------------------- + * optInTimePeriod:(From 2 to 100000) + * Number of period + * + * + */ +TA_RetCode TA_MINMAXINDEX( int startIdx, + int endIdx, + const double inReal[], + int optInTimePeriod, /* From 2 to 100000 */ + int *outBegIdx, + int *outNBElement, + int outMinIdx[], + int outMaxIdx[] ); + +TA_RetCode TA_S_MINMAXINDEX( int startIdx, + int endIdx, + const float inReal[], + int optInTimePeriod, /* From 2 to 100000 */ + int *outBegIdx, + int *outNBElement, + int outMinIdx[], + int outMaxIdx[] ); + +int TA_MINMAXINDEX_Lookback( int optInTimePeriod ); /* From 2 to 100000 */ + + +/* + * TA_MINUS_DI - Minus Directional Indicator + * + * Input = High, Low, Close + * Output = double + * + * Optional Parameters + * ------------------- + * optInTimePeriod:(From 1 to 100000) + * Number of period + * + * + */ +TA_RetCode TA_MINUS_DI( int startIdx, + int endIdx, + const double inHigh[], + const double inLow[], + const double inClose[], + int optInTimePeriod, /* From 1 to 100000 */ + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +TA_RetCode TA_S_MINUS_DI( int startIdx, + int endIdx, + const float inHigh[], + const float inLow[], + const float inClose[], + int optInTimePeriod, /* From 1 to 100000 */ + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +int TA_MINUS_DI_Lookback( int optInTimePeriod ); /* From 1 to 100000 */ + + +/* + * TA_MINUS_DM - Minus Directional Movement + * + * Input = High, Low + * Output = double + * + * Optional Parameters + * ------------------- + * optInTimePeriod:(From 1 to 100000) + * Number of period + * + * + */ +TA_RetCode TA_MINUS_DM( int startIdx, + int endIdx, + const double inHigh[], + const double inLow[], + int optInTimePeriod, /* From 1 to 100000 */ + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +TA_RetCode TA_S_MINUS_DM( int startIdx, + int endIdx, + const float inHigh[], + const float inLow[], + int optInTimePeriod, /* From 1 to 100000 */ + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +int TA_MINUS_DM_Lookback( int optInTimePeriod ); /* From 1 to 100000 */ + + +/* + * TA_MOM - Momentum + * + * Input = double + * Output = double + * + * Optional Parameters + * ------------------- + * optInTimePeriod:(From 1 to 100000) + * Number of period + * + * + */ +TA_RetCode TA_MOM( int startIdx, + int endIdx, + const double inReal[], + int optInTimePeriod, /* From 1 to 100000 */ + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +TA_RetCode TA_S_MOM( int startIdx, + int endIdx, + const float inReal[], + int optInTimePeriod, /* From 1 to 100000 */ + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +int TA_MOM_Lookback( int optInTimePeriod ); /* From 1 to 100000 */ + + +/* + * TA_MULT - Vector Arithmetic Mult + * + * Input = double, double + * Output = double + * + */ +TA_RetCode TA_MULT( int startIdx, + int endIdx, + const double inReal0[], + const double inReal1[], + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +TA_RetCode TA_S_MULT( int startIdx, + int endIdx, + const float inReal0[], + const float inReal1[], + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +int TA_MULT_Lookback( void ); + + +/* + * TA_NATR - Normalized Average True Range + * + * Input = High, Low, Close + * Output = double + * + * Optional Parameters + * ------------------- + * optInTimePeriod:(From 1 to 100000) + * Number of period + * + * + */ +TA_RetCode TA_NATR( int startIdx, + int endIdx, + const double inHigh[], + const double inLow[], + const double inClose[], + int optInTimePeriod, /* From 1 to 100000 */ + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +TA_RetCode TA_S_NATR( int startIdx, + int endIdx, + const float inHigh[], + const float inLow[], + const float inClose[], + int optInTimePeriod, /* From 1 to 100000 */ + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +int TA_NATR_Lookback( int optInTimePeriod ); /* From 1 to 100000 */ + + +/* + * TA_OBV - On Balance Volume + * + * Input = double, Volume + * Output = double + * + */ +TA_RetCode TA_OBV( int startIdx, + int endIdx, + const double inReal[], + const double inVolume[], + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +TA_RetCode TA_S_OBV( int startIdx, + int endIdx, + const float inReal[], + const float inVolume[], + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +int TA_OBV_Lookback( void ); + + +/* + * TA_PLUS_DI - Plus Directional Indicator + * + * Input = High, Low, Close + * Output = double + * + * Optional Parameters + * ------------------- + * optInTimePeriod:(From 1 to 100000) + * Number of period + * + * + */ +TA_RetCode TA_PLUS_DI( int startIdx, + int endIdx, + const double inHigh[], + const double inLow[], + const double inClose[], + int optInTimePeriod, /* From 1 to 100000 */ + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +TA_RetCode TA_S_PLUS_DI( int startIdx, + int endIdx, + const float inHigh[], + const float inLow[], + const float inClose[], + int optInTimePeriod, /* From 1 to 100000 */ + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +int TA_PLUS_DI_Lookback( int optInTimePeriod ); /* From 1 to 100000 */ + + +/* + * TA_PLUS_DM - Plus Directional Movement + * + * Input = High, Low + * Output = double + * + * Optional Parameters + * ------------------- + * optInTimePeriod:(From 1 to 100000) + * Number of period + * + * + */ +TA_RetCode TA_PLUS_DM( int startIdx, + int endIdx, + const double inHigh[], + const double inLow[], + int optInTimePeriod, /* From 1 to 100000 */ + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +TA_RetCode TA_S_PLUS_DM( int startIdx, + int endIdx, + const float inHigh[], + const float inLow[], + int optInTimePeriod, /* From 1 to 100000 */ + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +int TA_PLUS_DM_Lookback( int optInTimePeriod ); /* From 1 to 100000 */ + + +/* + * TA_PPO - Percentage Price Oscillator + * + * Input = double + * Output = double + * + * Optional Parameters + * ------------------- + * optInFastPeriod:(From 2 to 100000) + * Number of period for the fast MA + * + * optInSlowPeriod:(From 2 to 100000) + * Number of period for the slow MA + * + * optInMAType: + * Type of Moving Average + * + * + */ +TA_RetCode TA_PPO( int startIdx, + int endIdx, + const double inReal[], + int optInFastPeriod, /* From 2 to 100000 */ + int optInSlowPeriod, /* From 2 to 100000 */ + TA_MAType optInMAType, + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +TA_RetCode TA_S_PPO( int startIdx, + int endIdx, + const float inReal[], + int optInFastPeriod, /* From 2 to 100000 */ + int optInSlowPeriod, /* From 2 to 100000 */ + TA_MAType optInMAType, + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +int TA_PPO_Lookback( int optInFastPeriod, /* From 2 to 100000 */ + int optInSlowPeriod, /* From 2 to 100000 */ + TA_MAType optInMAType ); + +/* + * TA_ROC - Rate of change : ((price/prevPrice)-1)*100 + * + * Input = double + * Output = double + * + * Optional Parameters + * ------------------- + * optInTimePeriod:(From 1 to 100000) + * Number of period + * + * + */ +TA_RetCode TA_ROC( int startIdx, + int endIdx, + const double inReal[], + int optInTimePeriod, /* From 1 to 100000 */ + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +TA_RetCode TA_S_ROC( int startIdx, + int endIdx, + const float inReal[], + int optInTimePeriod, /* From 1 to 100000 */ + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +int TA_ROC_Lookback( int optInTimePeriod ); /* From 1 to 100000 */ + + +/* + * TA_ROCP - Rate of change Percentage: (price-prevPrice)/prevPrice + * + * Input = double + * Output = double + * + * Optional Parameters + * ------------------- + * optInTimePeriod:(From 1 to 100000) + * Number of period + * + * + */ +TA_RetCode TA_ROCP( int startIdx, + int endIdx, + const double inReal[], + int optInTimePeriod, /* From 1 to 100000 */ + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +TA_RetCode TA_S_ROCP( int startIdx, + int endIdx, + const float inReal[], + int optInTimePeriod, /* From 1 to 100000 */ + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +int TA_ROCP_Lookback( int optInTimePeriod ); /* From 1 to 100000 */ + + +/* + * TA_ROCR - Rate of change ratio: (price/prevPrice) + * + * Input = double + * Output = double + * + * Optional Parameters + * ------------------- + * optInTimePeriod:(From 1 to 100000) + * Number of period + * + * + */ +TA_RetCode TA_ROCR( int startIdx, + int endIdx, + const double inReal[], + int optInTimePeriod, /* From 1 to 100000 */ + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +TA_RetCode TA_S_ROCR( int startIdx, + int endIdx, + const float inReal[], + int optInTimePeriod, /* From 1 to 100000 */ + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +int TA_ROCR_Lookback( int optInTimePeriod ); /* From 1 to 100000 */ + + +/* + * TA_ROCR100 - Rate of change ratio 100 scale: (price/prevPrice)*100 + * + * Input = double + * Output = double + * + * Optional Parameters + * ------------------- + * optInTimePeriod:(From 1 to 100000) + * Number of period + * + * + */ +TA_RetCode TA_ROCR100( int startIdx, + int endIdx, + const double inReal[], + int optInTimePeriod, /* From 1 to 100000 */ + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +TA_RetCode TA_S_ROCR100( int startIdx, + int endIdx, + const float inReal[], + int optInTimePeriod, /* From 1 to 100000 */ + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +int TA_ROCR100_Lookback( int optInTimePeriod ); /* From 1 to 100000 */ + + +/* + * TA_RSI - Relative Strength Index + * + * Input = double + * Output = double + * + * Optional Parameters + * ------------------- + * optInTimePeriod:(From 2 to 100000) + * Number of period + * + * + */ +TA_RetCode TA_RSI( int startIdx, + int endIdx, + const double inReal[], + int optInTimePeriod, /* From 2 to 100000 */ + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +TA_RetCode TA_S_RSI( int startIdx, + int endIdx, + const float inReal[], + int optInTimePeriod, /* From 2 to 100000 */ + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +int TA_RSI_Lookback( int optInTimePeriod ); /* From 2 to 100000 */ + + +/* + * TA_SAR - Parabolic SAR + * + * Input = High, Low + * Output = double + * + * Optional Parameters + * ------------------- + * optInAcceleration:(From 0 to TA_REAL_MAX) + * Acceleration Factor used up to the Maximum value + * + * optInMaximum:(From 0 to TA_REAL_MAX) + * Acceleration Factor Maximum value + * + * + */ +TA_RetCode TA_SAR( int startIdx, + int endIdx, + const double inHigh[], + const double inLow[], + double optInAcceleration, /* From 0 to TA_REAL_MAX */ + double optInMaximum, /* From 0 to TA_REAL_MAX */ + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +TA_RetCode TA_S_SAR( int startIdx, + int endIdx, + const float inHigh[], + const float inLow[], + double optInAcceleration, /* From 0 to TA_REAL_MAX */ + double optInMaximum, /* From 0 to TA_REAL_MAX */ + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +int TA_SAR_Lookback( double optInAcceleration, /* From 0 to TA_REAL_MAX */ + double optInMaximum ); /* From 0 to TA_REAL_MAX */ + + +/* + * TA_SAREXT - Parabolic SAR - Extended + * + * Input = High, Low + * Output = double + * + * Optional Parameters + * ------------------- + * optInStartValue:(From TA_REAL_MIN to TA_REAL_MAX) + * Start value and direction. 0 for Auto, >0 for Long, <0 for Short + * + * optInOffsetOnReverse:(From 0 to TA_REAL_MAX) + * Percent offset added/removed to initial stop on short/long reversal + * + * optInAccelerationInitLong:(From 0 to TA_REAL_MAX) + * Acceleration Factor initial value for the Long direction + * + * optInAccelerationLong:(From 0 to TA_REAL_MAX) + * Acceleration Factor for the Long direction + * + * optInAccelerationMaxLong:(From 0 to TA_REAL_MAX) + * Acceleration Factor maximum value for the Long direction + * + * optInAccelerationInitShort:(From 0 to TA_REAL_MAX) + * Acceleration Factor initial value for the Short direction + * + * optInAccelerationShort:(From 0 to TA_REAL_MAX) + * Acceleration Factor for the Short direction + * + * optInAccelerationMaxShort:(From 0 to TA_REAL_MAX) + * Acceleration Factor maximum value for the Short direction + * + * + */ +TA_RetCode TA_SAREXT( int startIdx, + int endIdx, + const double inHigh[], + const double inLow[], + double optInStartValue, /* From TA_REAL_MIN to TA_REAL_MAX */ + double optInOffsetOnReverse, /* From 0 to TA_REAL_MAX */ + double optInAccelerationInitLong, /* From 0 to TA_REAL_MAX */ + double optInAccelerationLong, /* From 0 to TA_REAL_MAX */ + double optInAccelerationMaxLong, /* From 0 to TA_REAL_MAX */ + double optInAccelerationInitShort, /* From 0 to TA_REAL_MAX */ + double optInAccelerationShort, /* From 0 to TA_REAL_MAX */ + double optInAccelerationMaxShort, /* From 0 to TA_REAL_MAX */ + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +TA_RetCode TA_S_SAREXT( int startIdx, + int endIdx, + const float inHigh[], + const float inLow[], + double optInStartValue, /* From TA_REAL_MIN to TA_REAL_MAX */ + double optInOffsetOnReverse, /* From 0 to TA_REAL_MAX */ + double optInAccelerationInitLong, /* From 0 to TA_REAL_MAX */ + double optInAccelerationLong, /* From 0 to TA_REAL_MAX */ + double optInAccelerationMaxLong, /* From 0 to TA_REAL_MAX */ + double optInAccelerationInitShort, /* From 0 to TA_REAL_MAX */ + double optInAccelerationShort, /* From 0 to TA_REAL_MAX */ + double optInAccelerationMaxShort, /* From 0 to TA_REAL_MAX */ + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +int TA_SAREXT_Lookback( double optInStartValue, /* From TA_REAL_MIN to TA_REAL_MAX */ + double optInOffsetOnReverse, /* From 0 to TA_REAL_MAX */ + double optInAccelerationInitLong, /* From 0 to TA_REAL_MAX */ + double optInAccelerationLong, /* From 0 to TA_REAL_MAX */ + double optInAccelerationMaxLong, /* From 0 to TA_REAL_MAX */ + double optInAccelerationInitShort, /* From 0 to TA_REAL_MAX */ + double optInAccelerationShort, /* From 0 to TA_REAL_MAX */ + double optInAccelerationMaxShort ); /* From 0 to TA_REAL_MAX */ + + +/* + * TA_SIN - Vector Trigonometric Sin + * + * Input = double + * Output = double + * + */ +TA_RetCode TA_SIN( int startIdx, + int endIdx, + const double inReal[], + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +TA_RetCode TA_S_SIN( int startIdx, + int endIdx, + const float inReal[], + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +int TA_SIN_Lookback( void ); + + +/* + * TA_SINH - Vector Trigonometric Sinh + * + * Input = double + * Output = double + * + */ +TA_RetCode TA_SINH( int startIdx, + int endIdx, + const double inReal[], + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +TA_RetCode TA_S_SINH( int startIdx, + int endIdx, + const float inReal[], + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +int TA_SINH_Lookback( void ); + + +/* + * TA_SMA - Simple Moving Average + * + * Input = double + * Output = double + * + * Optional Parameters + * ------------------- + * optInTimePeriod:(From 2 to 100000) + * Number of period + * + * + */ +TA_RetCode TA_SMA( int startIdx, + int endIdx, + const double inReal[], + int optInTimePeriod, /* From 2 to 100000 */ + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +TA_RetCode TA_S_SMA( int startIdx, + int endIdx, + const float inReal[], + int optInTimePeriod, /* From 2 to 100000 */ + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +int TA_SMA_Lookback( int optInTimePeriod ); /* From 2 to 100000 */ + + +/* + * TA_SQRT - Vector Square Root + * + * Input = double + * Output = double + * + */ +TA_RetCode TA_SQRT( int startIdx, + int endIdx, + const double inReal[], + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +TA_RetCode TA_S_SQRT( int startIdx, + int endIdx, + const float inReal[], + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +int TA_SQRT_Lookback( void ); + + +/* + * TA_STDDEV - Standard Deviation + * + * Input = double + * Output = double + * + * Optional Parameters + * ------------------- + * optInTimePeriod:(From 2 to 100000) + * Number of period + * + * optInNbDev:(From TA_REAL_MIN to TA_REAL_MAX) + * Nb of deviations + * + * + */ +TA_RetCode TA_STDDEV( int startIdx, + int endIdx, + const double inReal[], + int optInTimePeriod, /* From 2 to 100000 */ + double optInNbDev, /* From TA_REAL_MIN to TA_REAL_MAX */ + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +TA_RetCode TA_S_STDDEV( int startIdx, + int endIdx, + const float inReal[], + int optInTimePeriod, /* From 2 to 100000 */ + double optInNbDev, /* From TA_REAL_MIN to TA_REAL_MAX */ + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +int TA_STDDEV_Lookback( int optInTimePeriod, /* From 2 to 100000 */ + double optInNbDev ); /* From TA_REAL_MIN to TA_REAL_MAX */ + + +/* + * TA_STOCH - Stochastic + * + * Input = High, Low, Close + * Output = double, double + * + * Optional Parameters + * ------------------- + * optInFastK_Period:(From 1 to 100000) + * Time period for building the Fast-K line + * + * optInSlowK_Period:(From 1 to 100000) + * Smoothing for making the Slow-K line. Usually set to 3 + * + * optInSlowK_MAType: + * Type of Moving Average for Slow-K + * + * optInSlowD_Period:(From 1 to 100000) + * Smoothing for making the Slow-D line + * + * optInSlowD_MAType: + * Type of Moving Average for Slow-D + * + * + */ +TA_RetCode TA_STOCH( int startIdx, + int endIdx, + const double inHigh[], + const double inLow[], + const double inClose[], + int optInFastK_Period, /* From 1 to 100000 */ + int optInSlowK_Period, /* From 1 to 100000 */ + TA_MAType optInSlowK_MAType, + int optInSlowD_Period, /* From 1 to 100000 */ + TA_MAType optInSlowD_MAType, + int *outBegIdx, + int *outNBElement, + double outSlowK[], + double outSlowD[] ); + +TA_RetCode TA_S_STOCH( int startIdx, + int endIdx, + const float inHigh[], + const float inLow[], + const float inClose[], + int optInFastK_Period, /* From 1 to 100000 */ + int optInSlowK_Period, /* From 1 to 100000 */ + TA_MAType optInSlowK_MAType, + int optInSlowD_Period, /* From 1 to 100000 */ + TA_MAType optInSlowD_MAType, + int *outBegIdx, + int *outNBElement, + double outSlowK[], + double outSlowD[] ); + +int TA_STOCH_Lookback( int optInFastK_Period, /* From 1 to 100000 */ + int optInSlowK_Period, /* From 1 to 100000 */ + TA_MAType optInSlowK_MAType, + int optInSlowD_Period, /* From 1 to 100000 */ + TA_MAType optInSlowD_MAType ); + +/* + * TA_STOCHF - Stochastic Fast + * + * Input = High, Low, Close + * Output = double, double + * + * Optional Parameters + * ------------------- + * optInFastK_Period:(From 1 to 100000) + * Time period for building the Fast-K line + * + * optInFastD_Period:(From 1 to 100000) + * Smoothing for making the Fast-D line. Usually set to 3 + * + * optInFastD_MAType: + * Type of Moving Average for Fast-D + * + * + */ +TA_RetCode TA_STOCHF( int startIdx, + int endIdx, + const double inHigh[], + const double inLow[], + const double inClose[], + int optInFastK_Period, /* From 1 to 100000 */ + int optInFastD_Period, /* From 1 to 100000 */ + TA_MAType optInFastD_MAType, + int *outBegIdx, + int *outNBElement, + double outFastK[], + double outFastD[] ); + +TA_RetCode TA_S_STOCHF( int startIdx, + int endIdx, + const float inHigh[], + const float inLow[], + const float inClose[], + int optInFastK_Period, /* From 1 to 100000 */ + int optInFastD_Period, /* From 1 to 100000 */ + TA_MAType optInFastD_MAType, + int *outBegIdx, + int *outNBElement, + double outFastK[], + double outFastD[] ); + +int TA_STOCHF_Lookback( int optInFastK_Period, /* From 1 to 100000 */ + int optInFastD_Period, /* From 1 to 100000 */ + TA_MAType optInFastD_MAType ); + +/* + * TA_STOCHRSI - Stochastic Relative Strength Index + * + * Input = double + * Output = double, double + * + * Optional Parameters + * ------------------- + * optInTimePeriod:(From 2 to 100000) + * Number of period + * + * optInFastK_Period:(From 1 to 100000) + * Time period for building the Fast-K line + * + * optInFastD_Period:(From 1 to 100000) + * Smoothing for making the Fast-D line. Usually set to 3 + * + * optInFastD_MAType: + * Type of Moving Average for Fast-D + * + * + */ +TA_RetCode TA_STOCHRSI( int startIdx, + int endIdx, + const double inReal[], + int optInTimePeriod, /* From 2 to 100000 */ + int optInFastK_Period, /* From 1 to 100000 */ + int optInFastD_Period, /* From 1 to 100000 */ + TA_MAType optInFastD_MAType, + int *outBegIdx, + int *outNBElement, + double outFastK[], + double outFastD[] ); + +TA_RetCode TA_S_STOCHRSI( int startIdx, + int endIdx, + const float inReal[], + int optInTimePeriod, /* From 2 to 100000 */ + int optInFastK_Period, /* From 1 to 100000 */ + int optInFastD_Period, /* From 1 to 100000 */ + TA_MAType optInFastD_MAType, + int *outBegIdx, + int *outNBElement, + double outFastK[], + double outFastD[] ); + +int TA_STOCHRSI_Lookback( int optInTimePeriod, /* From 2 to 100000 */ + int optInFastK_Period, /* From 1 to 100000 */ + int optInFastD_Period, /* From 1 to 100000 */ + TA_MAType optInFastD_MAType ); + +/* + * TA_SUB - Vector Arithmetic Substraction + * + * Input = double, double + * Output = double + * + */ +TA_RetCode TA_SUB( int startIdx, + int endIdx, + const double inReal0[], + const double inReal1[], + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +TA_RetCode TA_S_SUB( int startIdx, + int endIdx, + const float inReal0[], + const float inReal1[], + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +int TA_SUB_Lookback( void ); + + +/* + * TA_SUM - Summation + * + * Input = double + * Output = double + * + * Optional Parameters + * ------------------- + * optInTimePeriod:(From 2 to 100000) + * Number of period + * + * + */ +TA_RetCode TA_SUM( int startIdx, + int endIdx, + const double inReal[], + int optInTimePeriod, /* From 2 to 100000 */ + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +TA_RetCode TA_S_SUM( int startIdx, + int endIdx, + const float inReal[], + int optInTimePeriod, /* From 2 to 100000 */ + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +int TA_SUM_Lookback( int optInTimePeriod ); /* From 2 to 100000 */ + + +/* + * TA_T3 - Triple Exponential Moving Average (T3) + * + * Input = double + * Output = double + * + * Optional Parameters + * ------------------- + * optInTimePeriod:(From 2 to 100000) + * Number of period + * + * optInVFactor:(From 0 to 1) + * Volume Factor + * + * + */ +TA_RetCode TA_T3( int startIdx, + int endIdx, + const double inReal[], + int optInTimePeriod, /* From 2 to 100000 */ + double optInVFactor, /* From 0 to 1 */ + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +TA_RetCode TA_S_T3( int startIdx, + int endIdx, + const float inReal[], + int optInTimePeriod, /* From 2 to 100000 */ + double optInVFactor, /* From 0 to 1 */ + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +int TA_T3_Lookback( int optInTimePeriod, /* From 2 to 100000 */ + double optInVFactor ); /* From 0 to 1 */ + + +/* + * TA_TAN - Vector Trigonometric Tan + * + * Input = double + * Output = double + * + */ +TA_RetCode TA_TAN( int startIdx, + int endIdx, + const double inReal[], + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +TA_RetCode TA_S_TAN( int startIdx, + int endIdx, + const float inReal[], + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +int TA_TAN_Lookback( void ); + + +/* + * TA_TANH - Vector Trigonometric Tanh + * + * Input = double + * Output = double + * + */ +TA_RetCode TA_TANH( int startIdx, + int endIdx, + const double inReal[], + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +TA_RetCode TA_S_TANH( int startIdx, + int endIdx, + const float inReal[], + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +int TA_TANH_Lookback( void ); + + +/* + * TA_TEMA - Triple Exponential Moving Average + * + * Input = double + * Output = double + * + * Optional Parameters + * ------------------- + * optInTimePeriod:(From 2 to 100000) + * Number of period + * + * + */ +TA_RetCode TA_TEMA( int startIdx, + int endIdx, + const double inReal[], + int optInTimePeriod, /* From 2 to 100000 */ + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +TA_RetCode TA_S_TEMA( int startIdx, + int endIdx, + const float inReal[], + int optInTimePeriod, /* From 2 to 100000 */ + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +int TA_TEMA_Lookback( int optInTimePeriod ); /* From 2 to 100000 */ + + +/* + * TA_TRANGE - True Range + * + * Input = High, Low, Close + * Output = double + * + */ +TA_RetCode TA_TRANGE( int startIdx, + int endIdx, + const double inHigh[], + const double inLow[], + const double inClose[], + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +TA_RetCode TA_S_TRANGE( int startIdx, + int endIdx, + const float inHigh[], + const float inLow[], + const float inClose[], + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +int TA_TRANGE_Lookback( void ); + + +/* + * TA_TRIMA - Triangular Moving Average + * + * Input = double + * Output = double + * + * Optional Parameters + * ------------------- + * optInTimePeriod:(From 2 to 100000) + * Number of period + * + * + */ +TA_RetCode TA_TRIMA( int startIdx, + int endIdx, + const double inReal[], + int optInTimePeriod, /* From 2 to 100000 */ + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +TA_RetCode TA_S_TRIMA( int startIdx, + int endIdx, + const float inReal[], + int optInTimePeriod, /* From 2 to 100000 */ + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +int TA_TRIMA_Lookback( int optInTimePeriod ); /* From 2 to 100000 */ + + +/* + * TA_TRIX - 1-day Rate-Of-Change (ROC) of a Triple Smooth EMA + * + * Input = double + * Output = double + * + * Optional Parameters + * ------------------- + * optInTimePeriod:(From 1 to 100000) + * Number of period + * + * + */ +TA_RetCode TA_TRIX( int startIdx, + int endIdx, + const double inReal[], + int optInTimePeriod, /* From 1 to 100000 */ + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +TA_RetCode TA_S_TRIX( int startIdx, + int endIdx, + const float inReal[], + int optInTimePeriod, /* From 1 to 100000 */ + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +int TA_TRIX_Lookback( int optInTimePeriod ); /* From 1 to 100000 */ + + +/* + * TA_TSF - Time Series Forecast + * + * Input = double + * Output = double + * + * Optional Parameters + * ------------------- + * optInTimePeriod:(From 2 to 100000) + * Number of period + * + * + */ +TA_RetCode TA_TSF( int startIdx, + int endIdx, + const double inReal[], + int optInTimePeriod, /* From 2 to 100000 */ + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +TA_RetCode TA_S_TSF( int startIdx, + int endIdx, + const float inReal[], + int optInTimePeriod, /* From 2 to 100000 */ + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +int TA_TSF_Lookback( int optInTimePeriod ); /* From 2 to 100000 */ + + +/* + * TA_TYPPRICE - Typical Price + * + * Input = High, Low, Close + * Output = double + * + */ +TA_RetCode TA_TYPPRICE( int startIdx, + int endIdx, + const double inHigh[], + const double inLow[], + const double inClose[], + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +TA_RetCode TA_S_TYPPRICE( int startIdx, + int endIdx, + const float inHigh[], + const float inLow[], + const float inClose[], + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +int TA_TYPPRICE_Lookback( void ); + + +/* + * TA_ULTOSC - Ultimate Oscillator + * + * Input = High, Low, Close + * Output = double + * + * Optional Parameters + * ------------------- + * optInTimePeriod1:(From 1 to 100000) + * Number of bars for 1st period. + * + * optInTimePeriod2:(From 1 to 100000) + * Number of bars fro 2nd period + * + * optInTimePeriod3:(From 1 to 100000) + * Number of bars for 3rd period + * + * + */ +TA_RetCode TA_ULTOSC( int startIdx, + int endIdx, + const double inHigh[], + const double inLow[], + const double inClose[], + int optInTimePeriod1, /* From 1 to 100000 */ + int optInTimePeriod2, /* From 1 to 100000 */ + int optInTimePeriod3, /* From 1 to 100000 */ + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +TA_RetCode TA_S_ULTOSC( int startIdx, + int endIdx, + const float inHigh[], + const float inLow[], + const float inClose[], + int optInTimePeriod1, /* From 1 to 100000 */ + int optInTimePeriod2, /* From 1 to 100000 */ + int optInTimePeriod3, /* From 1 to 100000 */ + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +int TA_ULTOSC_Lookback( int optInTimePeriod1, /* From 1 to 100000 */ + int optInTimePeriod2, /* From 1 to 100000 */ + int optInTimePeriod3 ); /* From 1 to 100000 */ + + +/* + * TA_VAR - Variance + * + * Input = double + * Output = double + * + * Optional Parameters + * ------------------- + * optInTimePeriod:(From 1 to 100000) + * Number of period + * + * optInNbDev:(From TA_REAL_MIN to TA_REAL_MAX) + * Nb of deviations + * + * + */ +TA_RetCode TA_VAR( int startIdx, + int endIdx, + const double inReal[], + int optInTimePeriod, /* From 1 to 100000 */ + double optInNbDev, /* From TA_REAL_MIN to TA_REAL_MAX */ + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +TA_RetCode TA_S_VAR( int startIdx, + int endIdx, + const float inReal[], + int optInTimePeriod, /* From 1 to 100000 */ + double optInNbDev, /* From TA_REAL_MIN to TA_REAL_MAX */ + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +int TA_VAR_Lookback( int optInTimePeriod, /* From 1 to 100000 */ + double optInNbDev ); /* From TA_REAL_MIN to TA_REAL_MAX */ + + +/* + * TA_WCLPRICE - Weighted Close Price + * + * Input = High, Low, Close + * Output = double + * + */ +TA_RetCode TA_WCLPRICE( int startIdx, + int endIdx, + const double inHigh[], + const double inLow[], + const double inClose[], + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +TA_RetCode TA_S_WCLPRICE( int startIdx, + int endIdx, + const float inHigh[], + const float inLow[], + const float inClose[], + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +int TA_WCLPRICE_Lookback( void ); + + +/* + * TA_WILLR - Williams' %R + * + * Input = High, Low, Close + * Output = double + * + * Optional Parameters + * ------------------- + * optInTimePeriod:(From 2 to 100000) + * Number of period + * + * + */ +TA_RetCode TA_WILLR( int startIdx, + int endIdx, + const double inHigh[], + const double inLow[], + const double inClose[], + int optInTimePeriod, /* From 2 to 100000 */ + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +TA_RetCode TA_S_WILLR( int startIdx, + int endIdx, + const float inHigh[], + const float inLow[], + const float inClose[], + int optInTimePeriod, /* From 2 to 100000 */ + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +int TA_WILLR_Lookback( int optInTimePeriod ); /* From 2 to 100000 */ + + +/* + * TA_WMA - Weighted Moving Average + * + * Input = double + * Output = double + * + * Optional Parameters + * ------------------- + * optInTimePeriod:(From 2 to 100000) + * Number of period + * + * + */ +TA_RetCode TA_WMA( int startIdx, + int endIdx, + const double inReal[], + int optInTimePeriod, /* From 2 to 100000 */ + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +TA_RetCode TA_S_WMA( int startIdx, + int endIdx, + const float inReal[], + int optInTimePeriod, /* From 2 to 100000 */ + int *outBegIdx, + int *outNBElement, + double outReal[] ); + +int TA_WMA_Lookback( int optInTimePeriod ); /* From 2 to 100000 */ + + +/* Some TA functions takes a certain amount of input data + * before stabilizing and outputing meaningful data. This is + * a behavior pertaining to the algo of some TA functions and + * is not particular to the TA-Lib implementation. + * TA-Lib allows you to automatically strip off these unstabl + * data from your output and from any internal processing. + * (See documentation for more info) + * + * Examples: + * TA_SetUnstablePeriod( TA_FUNC_UNST_EMA, 30 ); + * Always strip off 30 price bar for the TA_EMA function. + * + * TA_SetUnstablePeriod( TA_FUNC_UNST_ALL, 30 ); + * Always strip off 30 price bar from ALL functions + * having an unstable period. + * + * See ta_defs.h for the enumeration TA_FuncUnstId + */ + +TA_RetCode TA_SetUnstablePeriod( TA_FuncUnstId id, + unsigned int unstablePeriod ); + +unsigned int TA_GetUnstablePeriod( TA_FuncUnstId id ); + +/* You can change slightly the behavior of the TA functions + * by requesting compatibiliy with some existing software. + * + * By default, the behavior is as close as the original + * author of the TA functions intend it to be. + * + * See ta_defs.h for the enumeration TA_Compatibility. + */ +TA_RetCode TA_SetCompatibility( TA_Compatibility value ); +TA_Compatibility TA_GetCompatibility( void ); + +/* Candlesticks struct and functions + * Because candlestick patterns are subjective, it is necessary + * to allow the user to specify what should be the meaning of + * 'long body', 'short shadows', etc. + */ + +/* Call TA_SetCandleSettings to set that when comparing a candle + * basing on settingType it must be compared with the average + * of the last avgPeriod candles' rangeType multiplied by factor. + * This setting is valid until TA_RestoreCandleDefaultSettings is called + */ +TA_RetCode TA_SetCandleSettings( TA_CandleSettingType settingType, + TA_RangeType rangeType, + int avgPeriod, + double factor ); + +/* Call TA_RestoreCandleDefaultSettings after using custom settings + * to restore the default settings for the specified settingType + */ +TA_RetCode TA_RestoreCandleDefaultSettings( TA_CandleSettingType settingType ); + +#ifdef __cplusplus +} +#endif + +#endif + +/***************/ +/* End of File */ +/***************/ + diff --git a/include/ta_libc.h b/include/ta_libc.h new file mode 100644 index 000000000..a2d95598f --- /dev/null +++ b/include/ta_libc.h @@ -0,0 +1,51 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ +#ifndef TA_LIBC_H +#define TA_LIBC_H + +/* Includes all headers needed for using the ta-lib 'C' library. */ + +#ifndef TA_COMMON_H + #include "ta_common.h" +#endif + +#ifndef TA_FUNC_H + #include "ta_func.h" +#endif + +#ifndef TA_ABSTRACT_H + #include "ta_abstract.h" +#endif + +#endif + diff --git a/lib/HOLDER b/lib/HOLDER new file mode 100644 index 000000000..549a58e9f --- /dev/null +++ b/lib/HOLDER @@ -0,0 +1,2 @@ +Do not erase this file. +Some maintenance tools ignore empty directory. This file prevents this directory to be empty. diff --git a/make/README.TXT b/make/README.TXT new file mode 100644 index 000000000..b003ca549 --- /dev/null +++ b/make/README.TXT @@ -0,0 +1,25 @@ +These directories contains the Makefiles +for building TA-Lib. + +The first level of directory allows to identify +the kind of application environment in which the +static library is going to be used: + + CSR - Single thread + CMR - Multi thread + CSD - Single thread with debug options + CMD - Multi thread with debug options + CSP - Single thread with profiling options + CMP - Multi thread with profiling options + CDR - DLL Release (Win32 only) + CDD - DLL Debug (Win32 only) + +Choose the most appropriate directory depending of +your platform/compiler and run "make" or "nmake" +from there. + +See the API Documentation for more information +on how to build and link with TA-Lib. + +The directory gen_make contains the perl scripts +automating the generation of all the makefiles. diff --git a/make/cdd/win32/msvc/Makefile b/make/cdd/win32/msvc/Makefile new file mode 100644 index 000000000..317a98ad5 --- /dev/null +++ b/make/cdd/win32/msvc/Makefile @@ -0,0 +1,97 @@ +############################################################################# +# Makefile for building targets in sub directories. +# Generated by tmake; +# Project: rootmake +# Template: subdirs +############################################################################# + +MAKEFILE= Makefile +TMAKE = tmake + +SUBDIRS = ta_common \ + ta_func \ + ta_abstract \ + ta_libc \ + gen_code \ + ta_regtest + +all: $(SUBDIRS) + +ta_common: FORCE + cd ta_common + $(MAKE) /nologo + @cd .. + +ta_func: FORCE + cd ta_func + $(MAKE) /nologo + @cd .. + +ta_abstract: FORCE + cd ta_abstract + $(MAKE) /nologo + @cd .. + +ta_libc: FORCE + cd ta_libc + $(MAKE) /nologo + @cd .. + +gen_code: FORCE + cd gen_code + $(MAKE) /nologo + @cd .. + +ta_regtest: FORCE + cd ta_regtest + $(MAKE) /nologo + @cd .. + + +tmake: ../cdd/win32/msvc/Makefile + +../cdd/win32/msvc/Makefile: rootmake.pro + tmake rootmake.pro -o ../cdd/win32/msvc/Makefile + +tmake_all: + cd ta_common + $(TMAKE) ta_common.pro -o $(MAKEFILE) + @cd .. + cd ta_func + $(TMAKE) ta_func.pro -o $(MAKEFILE) + @cd .. + cd ta_abstract + $(TMAKE) ta_abstract.pro -o $(MAKEFILE) + @cd .. + cd ta_libc + $(TMAKE) ta_libc.pro -o $(MAKEFILE) + @cd .. + cd gen_code + $(TMAKE) gen_code.pro -o $(MAKEFILE) + @cd .. + cd ta_regtest + $(TMAKE) ta_regtest.pro -o $(MAKEFILE) + @cd .. + + +clean: + cd ta_common + $(MAKE) clean + @cd .. + cd ta_func + $(MAKE) clean + @cd .. + cd ta_abstract + $(MAKE) clean + @cd .. + cd ta_libc + $(MAKE) clean + @cd .. + cd gen_code + $(MAKE) clean + @cd .. + cd ta_regtest + $(MAKE) clean + @cd .. + +FORCE: diff --git a/make/cdd/win32/msvc/gen_code/Makefile b/make/cdd/win32/msvc/gen_code/Makefile new file mode 100644 index 000000000..568442282 --- /dev/null +++ b/make/cdd/win32/msvc/gen_code/Makefile @@ -0,0 +1,263 @@ +############################################################################# +# Makefile for building gen_code +# Generated by tmake; +# Project: gen_code/gen_code +# Template: app +############################################################################# + +####### Compiler, tools and options + +CC = cl +CXX = cl +CFLAGS = -nologo -W3 -MDd -Zi -DTA_GEN_CODE -DTA_DEBUG -D_DEBUG -DWIN32 -D_MBCS -D_LIB -DQT_THREAD_SUPPORT +CXXFLAGS= -nologo -W3 -MDd -Zi -DTA_GEN_CODE -DTA_DEBUG -D_DEBUG -DWIN32 -D_MBCS -D_LIB -DQT_THREAD_SUPPORT +INCPATH = -I"..\..\..\..\..\include" -I"..\..\..\..\..\src\ta_common" -I"..\..\..\..\..\src\ta_abstract" -I"..\..\..\..\..\src\ta_abstract\tables" -I"..\..\..\..\..\src\ta_abstract\frames" +LINK = link +LFLAGS = /NOLOGO /DEBUG /SUBSYSTEM:console +LIBS = ..\..\..\..\..\lib\ta_common_cdd.lib +MOC = moc +UIC = uic + +ZIP = zip -r -9 + +####### Files + +HEADERS = +SOURCES = ..\..\..\..\..\src\tools\gen_code\gen_code.c \ + ..\..\..\..\..\src\ta_abstract\ta_abstract.c \ + ..\..\..\..\..\src\ta_abstract\ta_def_ui.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_a.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_b.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_c.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_d.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_e.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_f.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_g.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_h.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_i.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_j.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_k.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_l.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_m.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_n.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_o.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_p.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_q.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_r.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_s.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_t.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_u.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_v.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_w.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_x.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_y.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_z.c +OBJECTS = ..\..\..\..\..\temp\cdd\gen_code\gen_code.obj \ + ..\..\..\..\..\temp\cdd\gen_code\ta_abstract.obj \ + ..\..\..\..\..\temp\cdd\gen_code\ta_def_ui.obj \ + ..\..\..\..\..\temp\cdd\gen_code\table_a.obj \ + ..\..\..\..\..\temp\cdd\gen_code\table_b.obj \ + ..\..\..\..\..\temp\cdd\gen_code\table_c.obj \ + ..\..\..\..\..\temp\cdd\gen_code\table_d.obj \ + ..\..\..\..\..\temp\cdd\gen_code\table_e.obj \ + ..\..\..\..\..\temp\cdd\gen_code\table_f.obj \ + ..\..\..\..\..\temp\cdd\gen_code\table_g.obj \ + ..\..\..\..\..\temp\cdd\gen_code\table_h.obj \ + ..\..\..\..\..\temp\cdd\gen_code\table_i.obj \ + ..\..\..\..\..\temp\cdd\gen_code\table_j.obj \ + ..\..\..\..\..\temp\cdd\gen_code\table_k.obj \ + ..\..\..\..\..\temp\cdd\gen_code\table_l.obj \ + ..\..\..\..\..\temp\cdd\gen_code\table_m.obj \ + ..\..\..\..\..\temp\cdd\gen_code\table_n.obj \ + ..\..\..\..\..\temp\cdd\gen_code\table_o.obj \ + ..\..\..\..\..\temp\cdd\gen_code\table_p.obj \ + ..\..\..\..\..\temp\cdd\gen_code\table_q.obj \ + ..\..\..\..\..\temp\cdd\gen_code\table_r.obj \ + ..\..\..\..\..\temp\cdd\gen_code\table_s.obj \ + ..\..\..\..\..\temp\cdd\gen_code\table_t.obj \ + ..\..\..\..\..\temp\cdd\gen_code\table_u.obj \ + ..\..\..\..\..\temp\cdd\gen_code\table_v.obj \ + ..\..\..\..\..\temp\cdd\gen_code\table_w.obj \ + ..\..\..\..\..\temp\cdd\gen_code\table_x.obj \ + ..\..\..\..\..\temp\cdd\gen_code\table_y.obj \ + ..\..\..\..\..\temp\cdd\gen_code\table_z.obj +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ..\..\..\..\..\bin\gen_code.exe +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .c + +.cpp.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $< + +.cxx.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $< + +.cc.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $< + +.c.obj: + $(CC) -c $(CFLAGS) $(INCPATH) -Fo$@ $< + +####### Build rules + +all: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + $(LINK) $(LFLAGS) /OUT:$(TARGET) @<< + $(OBJECTS) $(OBJMOC) $(LIBS) +<< + +moc: $(SRCMOC) + +tmake: ../cdd/win32/msvc/gen_code/Makefile + +../cdd/win32/msvc/gen_code/Makefile: gen_code/gen_code.pro + tmake gen_code/gen_code.pro -o ../cdd/win32/msvc/gen_code/Makefile + +dist: + $(ZIP) gen_code/gen_code.zip gen_code/gen_code.pro $(SOURCES) $(HEADERS) $(DIST) $(INTERFACES) + +clean: + -del ..\..\..\..\..\temp\cdd\gen_code\gen_code.obj + -del ..\..\..\..\..\temp\cdd\gen_code\ta_abstract.obj + -del ..\..\..\..\..\temp\cdd\gen_code\ta_def_ui.obj + -del ..\..\..\..\..\temp\cdd\gen_code\table_a.obj + -del ..\..\..\..\..\temp\cdd\gen_code\table_b.obj + -del ..\..\..\..\..\temp\cdd\gen_code\table_c.obj + -del ..\..\..\..\..\temp\cdd\gen_code\table_d.obj + -del ..\..\..\..\..\temp\cdd\gen_code\table_e.obj + -del ..\..\..\..\..\temp\cdd\gen_code\table_f.obj + -del ..\..\..\..\..\temp\cdd\gen_code\table_g.obj + -del ..\..\..\..\..\temp\cdd\gen_code\table_h.obj + -del ..\..\..\..\..\temp\cdd\gen_code\table_i.obj + -del ..\..\..\..\..\temp\cdd\gen_code\table_j.obj + -del ..\..\..\..\..\temp\cdd\gen_code\table_k.obj + -del ..\..\..\..\..\temp\cdd\gen_code\table_l.obj + -del ..\..\..\..\..\temp\cdd\gen_code\table_m.obj + -del ..\..\..\..\..\temp\cdd\gen_code\table_n.obj + -del ..\..\..\..\..\temp\cdd\gen_code\table_o.obj + -del ..\..\..\..\..\temp\cdd\gen_code\table_p.obj + -del ..\..\..\..\..\temp\cdd\gen_code\table_q.obj + -del ..\..\..\..\..\temp\cdd\gen_code\table_r.obj + -del ..\..\..\..\..\temp\cdd\gen_code\table_s.obj + -del ..\..\..\..\..\temp\cdd\gen_code\table_t.obj + -del ..\..\..\..\..\temp\cdd\gen_code\table_u.obj + -del ..\..\..\..\..\temp\cdd\gen_code\table_v.obj + -del ..\..\..\..\..\temp\cdd\gen_code\table_w.obj + -del ..\..\..\..\..\temp\cdd\gen_code\table_x.obj + -del ..\..\..\..\..\temp\cdd\gen_code\table_y.obj + -del ..\..\..\..\..\temp\cdd\gen_code\table_z.obj + -del $(TARGET) + -del ../../../../../bin/*.map + -del ../../../../../bin/*._xe + -del ../../../../../bin/*.tds + -del ../../../../../bin/*.pdb + -del ../../../../../bin/*.pbo + -del ../../../../../bin/*.pbi + -del ../../../../../bin/*.pbt + -del ../../../../../temp/cdd/*.pch + -del ../../../../../temp/cdd/*.idb + -del ../../../../../temp/cdd/gen_code/*.pch + -del ../../../../../temp/cdd/gen_code/*.idb + -del ../../../../../temp/cdd/gen_code/*.obj + -del gen_code.pdb + -del vc*.pdb + -del gen_code.ilk + +####### Compile + +..\..\..\..\..\temp\cdd\gen_code\gen_code.obj: ..\..\..\..\..\src\tools\gen_code\gen_code.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\gen_code\gen_code.obj ..\..\..\..\..\src\tools\gen_code\gen_code.c + +..\..\..\..\..\temp\cdd\gen_code\ta_abstract.obj: ..\..\..\..\..\src\ta_abstract\ta_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\gen_code\ta_abstract.obj ..\..\..\..\..\src\ta_abstract\ta_abstract.c + +..\..\..\..\..\temp\cdd\gen_code\ta_def_ui.obj: ..\..\..\..\..\src\ta_abstract\ta_def_ui.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\gen_code\ta_def_ui.obj ..\..\..\..\..\src\ta_abstract\ta_def_ui.c + +..\..\..\..\..\temp\cdd\gen_code\table_a.obj: ..\..\..\..\..\src\ta_abstract\tables\table_a.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\gen_code\table_a.obj ..\..\..\..\..\src\ta_abstract\tables\table_a.c + +..\..\..\..\..\temp\cdd\gen_code\table_b.obj: ..\..\..\..\..\src\ta_abstract\tables\table_b.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\gen_code\table_b.obj ..\..\..\..\..\src\ta_abstract\tables\table_b.c + +..\..\..\..\..\temp\cdd\gen_code\table_c.obj: ..\..\..\..\..\src\ta_abstract\tables\table_c.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\gen_code\table_c.obj ..\..\..\..\..\src\ta_abstract\tables\table_c.c + +..\..\..\..\..\temp\cdd\gen_code\table_d.obj: ..\..\..\..\..\src\ta_abstract\tables\table_d.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\gen_code\table_d.obj ..\..\..\..\..\src\ta_abstract\tables\table_d.c + +..\..\..\..\..\temp\cdd\gen_code\table_e.obj: ..\..\..\..\..\src\ta_abstract\tables\table_e.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\gen_code\table_e.obj ..\..\..\..\..\src\ta_abstract\tables\table_e.c + +..\..\..\..\..\temp\cdd\gen_code\table_f.obj: ..\..\..\..\..\src\ta_abstract\tables\table_f.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\gen_code\table_f.obj ..\..\..\..\..\src\ta_abstract\tables\table_f.c + +..\..\..\..\..\temp\cdd\gen_code\table_g.obj: ..\..\..\..\..\src\ta_abstract\tables\table_g.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\gen_code\table_g.obj ..\..\..\..\..\src\ta_abstract\tables\table_g.c + +..\..\..\..\..\temp\cdd\gen_code\table_h.obj: ..\..\..\..\..\src\ta_abstract\tables\table_h.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\gen_code\table_h.obj ..\..\..\..\..\src\ta_abstract\tables\table_h.c + +..\..\..\..\..\temp\cdd\gen_code\table_i.obj: ..\..\..\..\..\src\ta_abstract\tables\table_i.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\gen_code\table_i.obj ..\..\..\..\..\src\ta_abstract\tables\table_i.c + +..\..\..\..\..\temp\cdd\gen_code\table_j.obj: ..\..\..\..\..\src\ta_abstract\tables\table_j.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\gen_code\table_j.obj ..\..\..\..\..\src\ta_abstract\tables\table_j.c + +..\..\..\..\..\temp\cdd\gen_code\table_k.obj: ..\..\..\..\..\src\ta_abstract\tables\table_k.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\gen_code\table_k.obj ..\..\..\..\..\src\ta_abstract\tables\table_k.c + +..\..\..\..\..\temp\cdd\gen_code\table_l.obj: ..\..\..\..\..\src\ta_abstract\tables\table_l.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\gen_code\table_l.obj ..\..\..\..\..\src\ta_abstract\tables\table_l.c + +..\..\..\..\..\temp\cdd\gen_code\table_m.obj: ..\..\..\..\..\src\ta_abstract\tables\table_m.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\gen_code\table_m.obj ..\..\..\..\..\src\ta_abstract\tables\table_m.c + +..\..\..\..\..\temp\cdd\gen_code\table_n.obj: ..\..\..\..\..\src\ta_abstract\tables\table_n.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\gen_code\table_n.obj ..\..\..\..\..\src\ta_abstract\tables\table_n.c + +..\..\..\..\..\temp\cdd\gen_code\table_o.obj: ..\..\..\..\..\src\ta_abstract\tables\table_o.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\gen_code\table_o.obj ..\..\..\..\..\src\ta_abstract\tables\table_o.c + +..\..\..\..\..\temp\cdd\gen_code\table_p.obj: ..\..\..\..\..\src\ta_abstract\tables\table_p.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\gen_code\table_p.obj ..\..\..\..\..\src\ta_abstract\tables\table_p.c + +..\..\..\..\..\temp\cdd\gen_code\table_q.obj: ..\..\..\..\..\src\ta_abstract\tables\table_q.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\gen_code\table_q.obj ..\..\..\..\..\src\ta_abstract\tables\table_q.c + +..\..\..\..\..\temp\cdd\gen_code\table_r.obj: ..\..\..\..\..\src\ta_abstract\tables\table_r.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\gen_code\table_r.obj ..\..\..\..\..\src\ta_abstract\tables\table_r.c + +..\..\..\..\..\temp\cdd\gen_code\table_s.obj: ..\..\..\..\..\src\ta_abstract\tables\table_s.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\gen_code\table_s.obj ..\..\..\..\..\src\ta_abstract\tables\table_s.c + +..\..\..\..\..\temp\cdd\gen_code\table_t.obj: ..\..\..\..\..\src\ta_abstract\tables\table_t.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\gen_code\table_t.obj ..\..\..\..\..\src\ta_abstract\tables\table_t.c + +..\..\..\..\..\temp\cdd\gen_code\table_u.obj: ..\..\..\..\..\src\ta_abstract\tables\table_u.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\gen_code\table_u.obj ..\..\..\..\..\src\ta_abstract\tables\table_u.c + +..\..\..\..\..\temp\cdd\gen_code\table_v.obj: ..\..\..\..\..\src\ta_abstract\tables\table_v.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\gen_code\table_v.obj ..\..\..\..\..\src\ta_abstract\tables\table_v.c + +..\..\..\..\..\temp\cdd\gen_code\table_w.obj: ..\..\..\..\..\src\ta_abstract\tables\table_w.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\gen_code\table_w.obj ..\..\..\..\..\src\ta_abstract\tables\table_w.c + +..\..\..\..\..\temp\cdd\gen_code\table_x.obj: ..\..\..\..\..\src\ta_abstract\tables\table_x.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\gen_code\table_x.obj ..\..\..\..\..\src\ta_abstract\tables\table_x.c + +..\..\..\..\..\temp\cdd\gen_code\table_y.obj: ..\..\..\..\..\src\ta_abstract\tables\table_y.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\gen_code\table_y.obj ..\..\..\..\..\src\ta_abstract\tables\table_y.c + +..\..\..\..\..\temp\cdd\gen_code\table_z.obj: ..\..\..\..\..\src\ta_abstract\tables\table_z.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\gen_code\table_z.obj ..\..\..\..\..\src\ta_abstract\tables\table_z.c + diff --git a/make/cdd/win32/msvc/ta_abstract/Makefile b/make/cdd/win32/msvc/ta_abstract/Makefile new file mode 100644 index 000000000..ad9da7094 --- /dev/null +++ b/make/cdd/win32/msvc/ta_abstract/Makefile @@ -0,0 +1,273 @@ +############################################################################# +# Makefile for building ta_abstract_cdd +# Generated by tmake; +# Project: ta_abstract/ta_abstract +# Template: lib +############################################################################# + +####### Compiler, tools and options + +CC = cl +CXX = cl +CFLAGS = -nologo -W3 -MDd -Zi -DTA_DEBUG -D_DEBUG -DWIN32 -D_MBCS -D_LIB -DQT_THREAD_SUPPORT +CXXFLAGS= -nologo -W3 -MDd -Zi -DTA_DEBUG -D_DEBUG -DWIN32 -D_MBCS -D_LIB -DQT_THREAD_SUPPORT +INCPATH = -I"..\..\..\..\..\src\ta_common" -I"..\..\..\..\..\src\ta_abstract" -I"..\..\..\..\..\src\ta_abstract\tables" -I"..\..\..\..\..\src\ta_abstract\frames" -I"..\..\..\..\..\include" +LIB = lib /NOLOGO +MOC = moc +UIC = uic + +ZIP = zip -r -9 + +####### Files + +HEADERS = +SOURCES = ..\..\..\..\..\src\ta_abstract\ta_abstract.c \ + ..\..\..\..\..\src\ta_abstract\ta_def_ui.c \ + ..\..\..\..\..\src\ta_abstract\ta_func_api.c \ + ..\..\..\..\..\src\ta_abstract\ta_group_idx.c \ + ..\..\..\..\..\src\ta_abstract\frames\ta_frame.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_a.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_b.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_c.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_d.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_e.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_f.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_g.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_h.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_i.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_j.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_k.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_l.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_m.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_n.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_o.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_p.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_q.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_r.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_s.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_t.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_u.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_v.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_w.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_x.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_y.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_z.c +OBJECTS = ..\..\..\..\..\temp\cdd\ta_abstract.obj \ + ..\..\..\..\..\temp\cdd\ta_def_ui.obj \ + ..\..\..\..\..\temp\cdd\ta_func_api.obj \ + ..\..\..\..\..\temp\cdd\ta_group_idx.obj \ + ..\..\..\..\..\temp\cdd\ta_frame.obj \ + ..\..\..\..\..\temp\cdd\table_a.obj \ + ..\..\..\..\..\temp\cdd\table_b.obj \ + ..\..\..\..\..\temp\cdd\table_c.obj \ + ..\..\..\..\..\temp\cdd\table_d.obj \ + ..\..\..\..\..\temp\cdd\table_e.obj \ + ..\..\..\..\..\temp\cdd\table_f.obj \ + ..\..\..\..\..\temp\cdd\table_g.obj \ + ..\..\..\..\..\temp\cdd\table_h.obj \ + ..\..\..\..\..\temp\cdd\table_i.obj \ + ..\..\..\..\..\temp\cdd\table_j.obj \ + ..\..\..\..\..\temp\cdd\table_k.obj \ + ..\..\..\..\..\temp\cdd\table_l.obj \ + ..\..\..\..\..\temp\cdd\table_m.obj \ + ..\..\..\..\..\temp\cdd\table_n.obj \ + ..\..\..\..\..\temp\cdd\table_o.obj \ + ..\..\..\..\..\temp\cdd\table_p.obj \ + ..\..\..\..\..\temp\cdd\table_q.obj \ + ..\..\..\..\..\temp\cdd\table_r.obj \ + ..\..\..\..\..\temp\cdd\table_s.obj \ + ..\..\..\..\..\temp\cdd\table_t.obj \ + ..\..\..\..\..\temp\cdd\table_u.obj \ + ..\..\..\..\..\temp\cdd\table_v.obj \ + ..\..\..\..\..\temp\cdd\table_w.obj \ + ..\..\..\..\..\temp\cdd\table_x.obj \ + ..\..\..\..\..\temp\cdd\table_y.obj \ + ..\..\..\..\..\temp\cdd\table_z.obj +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ..\..\..\..\..\lib\ta_abstract_cdd.lib +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .c + +.cpp.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $< + +.cxx.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $< + +.cc.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $< + +.c.obj: + $(CC) -c $(CFLAGS) $(INCPATH) -Fo$@ $< + +####### Build rules + +all: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + $(LIB) /OUT:$(TARGET) @<< + $(OBJECTS) $(OBJMOC) +<< + +moc: $(SRCMOC) + +tmake: ../cdd/win32/msvc/ta_abstract/Makefile + +../cdd/win32/msvc/ta_abstract/Makefile: ta_abstract/ta_abstract.pro + tmake ta_abstract/ta_abstract.pro -o ../cdd/win32/msvc/ta_abstract/Makefile + +dist: + $(ZIP) ta_abstract/ta_abstract.zip ta_abstract/ta_abstract.pro $(SOURCES) $(HEADERS) $(DIST) $(INTERFACES) + +clean: + -del ..\..\..\..\..\temp\cdd\ta_abstract.obj + -del ..\..\..\..\..\temp\cdd\ta_def_ui.obj + -del ..\..\..\..\..\temp\cdd\ta_func_api.obj + -del ..\..\..\..\..\temp\cdd\ta_group_idx.obj + -del ..\..\..\..\..\temp\cdd\ta_frame.obj + -del ..\..\..\..\..\temp\cdd\table_a.obj + -del ..\..\..\..\..\temp\cdd\table_b.obj + -del ..\..\..\..\..\temp\cdd\table_c.obj + -del ..\..\..\..\..\temp\cdd\table_d.obj + -del ..\..\..\..\..\temp\cdd\table_e.obj + -del ..\..\..\..\..\temp\cdd\table_f.obj + -del ..\..\..\..\..\temp\cdd\table_g.obj + -del ..\..\..\..\..\temp\cdd\table_h.obj + -del ..\..\..\..\..\temp\cdd\table_i.obj + -del ..\..\..\..\..\temp\cdd\table_j.obj + -del ..\..\..\..\..\temp\cdd\table_k.obj + -del ..\..\..\..\..\temp\cdd\table_l.obj + -del ..\..\..\..\..\temp\cdd\table_m.obj + -del ..\..\..\..\..\temp\cdd\table_n.obj + -del ..\..\..\..\..\temp\cdd\table_o.obj + -del ..\..\..\..\..\temp\cdd\table_p.obj + -del ..\..\..\..\..\temp\cdd\table_q.obj + -del ..\..\..\..\..\temp\cdd\table_r.obj + -del ..\..\..\..\..\temp\cdd\table_s.obj + -del ..\..\..\..\..\temp\cdd\table_t.obj + -del ..\..\..\..\..\temp\cdd\table_u.obj + -del ..\..\..\..\..\temp\cdd\table_v.obj + -del ..\..\..\..\..\temp\cdd\table_w.obj + -del ..\..\..\..\..\temp\cdd\table_x.obj + -del ..\..\..\..\..\temp\cdd\table_y.obj + -del ..\..\..\..\..\temp\cdd\table_z.obj + -del $(TARGET) + -del ../../../../../bin/*.map + -del ../../../../../bin/*._xe + -del ../../../../../bin/*.tds + -del ../../../../../bin/*.pdb + -del ../../../../../bin/*.pbo + -del ../../../../../bin/*.pbi + -del ../../../../../bin/*.pbt + -del ../../../../../temp/cdd/*.pch + -del ../../../../../temp/cdd/*.idb + -del ../../../../../temp/cdd/ta_abstract/*.pch + -del ../../../../../temp/cdd/ta_abstract/*.idb + -del ../../../../../temp/cdd/ta_abstract/*.obj + -del ta_abstract_cdd.pdb + -del vc*.pdb + -del ta_abstract_cdd.ilk + +####### Compile + +..\..\..\..\..\temp\cdd\ta_abstract.obj: ..\..\..\..\..\src\ta_abstract\ta_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_abstract.obj ..\..\..\..\..\src\ta_abstract\ta_abstract.c + +..\..\..\..\..\temp\cdd\ta_def_ui.obj: ..\..\..\..\..\src\ta_abstract\ta_def_ui.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_def_ui.obj ..\..\..\..\..\src\ta_abstract\ta_def_ui.c + +..\..\..\..\..\temp\cdd\ta_func_api.obj: ..\..\..\..\..\src\ta_abstract\ta_func_api.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_func_api.obj ..\..\..\..\..\src\ta_abstract\ta_func_api.c + +..\..\..\..\..\temp\cdd\ta_group_idx.obj: ..\..\..\..\..\src\ta_abstract\ta_group_idx.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_group_idx.obj ..\..\..\..\..\src\ta_abstract\ta_group_idx.c + +..\..\..\..\..\temp\cdd\ta_frame.obj: ..\..\..\..\..\src\ta_abstract\frames\ta_frame.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_frame.obj ..\..\..\..\..\src\ta_abstract\frames\ta_frame.c + +..\..\..\..\..\temp\cdd\table_a.obj: ..\..\..\..\..\src\ta_abstract\tables\table_a.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\table_a.obj ..\..\..\..\..\src\ta_abstract\tables\table_a.c + +..\..\..\..\..\temp\cdd\table_b.obj: ..\..\..\..\..\src\ta_abstract\tables\table_b.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\table_b.obj ..\..\..\..\..\src\ta_abstract\tables\table_b.c + +..\..\..\..\..\temp\cdd\table_c.obj: ..\..\..\..\..\src\ta_abstract\tables\table_c.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\table_c.obj ..\..\..\..\..\src\ta_abstract\tables\table_c.c + +..\..\..\..\..\temp\cdd\table_d.obj: ..\..\..\..\..\src\ta_abstract\tables\table_d.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\table_d.obj ..\..\..\..\..\src\ta_abstract\tables\table_d.c + +..\..\..\..\..\temp\cdd\table_e.obj: ..\..\..\..\..\src\ta_abstract\tables\table_e.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\table_e.obj ..\..\..\..\..\src\ta_abstract\tables\table_e.c + +..\..\..\..\..\temp\cdd\table_f.obj: ..\..\..\..\..\src\ta_abstract\tables\table_f.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\table_f.obj ..\..\..\..\..\src\ta_abstract\tables\table_f.c + +..\..\..\..\..\temp\cdd\table_g.obj: ..\..\..\..\..\src\ta_abstract\tables\table_g.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\table_g.obj ..\..\..\..\..\src\ta_abstract\tables\table_g.c + +..\..\..\..\..\temp\cdd\table_h.obj: ..\..\..\..\..\src\ta_abstract\tables\table_h.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\table_h.obj ..\..\..\..\..\src\ta_abstract\tables\table_h.c + +..\..\..\..\..\temp\cdd\table_i.obj: ..\..\..\..\..\src\ta_abstract\tables\table_i.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\table_i.obj ..\..\..\..\..\src\ta_abstract\tables\table_i.c + +..\..\..\..\..\temp\cdd\table_j.obj: ..\..\..\..\..\src\ta_abstract\tables\table_j.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\table_j.obj ..\..\..\..\..\src\ta_abstract\tables\table_j.c + +..\..\..\..\..\temp\cdd\table_k.obj: ..\..\..\..\..\src\ta_abstract\tables\table_k.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\table_k.obj ..\..\..\..\..\src\ta_abstract\tables\table_k.c + +..\..\..\..\..\temp\cdd\table_l.obj: ..\..\..\..\..\src\ta_abstract\tables\table_l.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\table_l.obj ..\..\..\..\..\src\ta_abstract\tables\table_l.c + +..\..\..\..\..\temp\cdd\table_m.obj: ..\..\..\..\..\src\ta_abstract\tables\table_m.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\table_m.obj ..\..\..\..\..\src\ta_abstract\tables\table_m.c + +..\..\..\..\..\temp\cdd\table_n.obj: ..\..\..\..\..\src\ta_abstract\tables\table_n.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\table_n.obj ..\..\..\..\..\src\ta_abstract\tables\table_n.c + +..\..\..\..\..\temp\cdd\table_o.obj: ..\..\..\..\..\src\ta_abstract\tables\table_o.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\table_o.obj ..\..\..\..\..\src\ta_abstract\tables\table_o.c + +..\..\..\..\..\temp\cdd\table_p.obj: ..\..\..\..\..\src\ta_abstract\tables\table_p.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\table_p.obj ..\..\..\..\..\src\ta_abstract\tables\table_p.c + +..\..\..\..\..\temp\cdd\table_q.obj: ..\..\..\..\..\src\ta_abstract\tables\table_q.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\table_q.obj ..\..\..\..\..\src\ta_abstract\tables\table_q.c + +..\..\..\..\..\temp\cdd\table_r.obj: ..\..\..\..\..\src\ta_abstract\tables\table_r.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\table_r.obj ..\..\..\..\..\src\ta_abstract\tables\table_r.c + +..\..\..\..\..\temp\cdd\table_s.obj: ..\..\..\..\..\src\ta_abstract\tables\table_s.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\table_s.obj ..\..\..\..\..\src\ta_abstract\tables\table_s.c + +..\..\..\..\..\temp\cdd\table_t.obj: ..\..\..\..\..\src\ta_abstract\tables\table_t.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\table_t.obj ..\..\..\..\..\src\ta_abstract\tables\table_t.c + +..\..\..\..\..\temp\cdd\table_u.obj: ..\..\..\..\..\src\ta_abstract\tables\table_u.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\table_u.obj ..\..\..\..\..\src\ta_abstract\tables\table_u.c + +..\..\..\..\..\temp\cdd\table_v.obj: ..\..\..\..\..\src\ta_abstract\tables\table_v.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\table_v.obj ..\..\..\..\..\src\ta_abstract\tables\table_v.c + +..\..\..\..\..\temp\cdd\table_w.obj: ..\..\..\..\..\src\ta_abstract\tables\table_w.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\table_w.obj ..\..\..\..\..\src\ta_abstract\tables\table_w.c + +..\..\..\..\..\temp\cdd\table_x.obj: ..\..\..\..\..\src\ta_abstract\tables\table_x.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\table_x.obj ..\..\..\..\..\src\ta_abstract\tables\table_x.c + +..\..\..\..\..\temp\cdd\table_y.obj: ..\..\..\..\..\src\ta_abstract\tables\table_y.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\table_y.obj ..\..\..\..\..\src\ta_abstract\tables\table_y.c + +..\..\..\..\..\temp\cdd\table_z.obj: ..\..\..\..\..\src\ta_abstract\tables\table_z.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\table_z.obj ..\..\..\..\..\src\ta_abstract\tables\table_z.c + diff --git a/make/cdd/win32/msvc/ta_common/Makefile b/make/cdd/win32/msvc/ta_common/Makefile new file mode 100644 index 000000000..aec82909c --- /dev/null +++ b/make/cdd/win32/msvc/ta_common/Makefile @@ -0,0 +1,105 @@ +############################################################################# +# Makefile for building ta_common_cdd +# Generated by tmake; +# Project: ta_common/ta_common +# Template: lib +############################################################################# + +####### Compiler, tools and options + +CC = cl +CXX = cl +CFLAGS = -nologo -W3 -MDd -Zi -DTA_DEBUG -D_DEBUG -DWIN32 -D_MBCS -D_LIB -DQT_THREAD_SUPPORT +CXXFLAGS= -nologo -W3 -MDd -Zi -DTA_DEBUG -D_DEBUG -DWIN32 -D_MBCS -D_LIB -DQT_THREAD_SUPPORT +INCPATH = -I"..\..\..\..\..\src\ta_common" -I"..\..\..\..\..\include" +LIB = lib /NOLOGO +MOC = moc +UIC = uic + +ZIP = zip -r -9 + +####### Files + +HEADERS = +SOURCES = ..\..\..\..\..\src\ta_common\ta_global.c \ + ..\..\..\..\..\src\ta_common\ta_retcode.c \ + ..\..\..\..\..\src\ta_common\ta_version.c +OBJECTS = ..\..\..\..\..\temp\cdd\ta_global.obj \ + ..\..\..\..\..\temp\cdd\ta_retcode.obj \ + ..\..\..\..\..\temp\cdd\ta_version.obj +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ..\..\..\..\..\lib\ta_common_cdd.lib +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .c + +.cpp.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $< + +.cxx.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $< + +.cc.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $< + +.c.obj: + $(CC) -c $(CFLAGS) $(INCPATH) -Fo$@ $< + +####### Build rules + +all: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + $(LIB) /OUT:$(TARGET) @<< + $(OBJECTS) $(OBJMOC) +<< + +moc: $(SRCMOC) + +tmake: ../cdd/win32/msvc/ta_common/Makefile + +../cdd/win32/msvc/ta_common/Makefile: ta_common/ta_common.pro + tmake ta_common/ta_common.pro -o ../cdd/win32/msvc/ta_common/Makefile + +dist: + $(ZIP) ta_common/ta_common.zip ta_common/ta_common.pro $(SOURCES) $(HEADERS) $(DIST) $(INTERFACES) + +clean: + -del ..\..\..\..\..\temp\cdd\ta_global.obj + -del ..\..\..\..\..\temp\cdd\ta_retcode.obj + -del ..\..\..\..\..\temp\cdd\ta_version.obj + -del $(TARGET) + -del ../../../../../bin/*.map + -del ../../../../../bin/*._xe + -del ../../../../../bin/*.tds + -del ../../../../../bin/*.pdb + -del ../../../../../bin/*.pbo + -del ../../../../../bin/*.pbi + -del ../../../../../bin/*.pbt + -del ../../../../../temp/cdd/*.pch + -del ../../../../../temp/cdd/*.idb + -del ../../../../../temp/cdd/ta_common_cdd/*.pch + -del ../../../../../temp/cdd/ta_common_cdd/*.idb + -del ../../../../../temp/cdd/ta_common_cdd/*.obj + -del ta_common_cdd.pdb + -del vc*.pdb + -del ta_common_cdd.ilk + +####### Compile + +..\..\..\..\..\temp\cdd\ta_global.obj: ..\..\..\..\..\src\ta_common\ta_global.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_global.obj ..\..\..\..\..\src\ta_common\ta_global.c + +..\..\..\..\..\temp\cdd\ta_retcode.obj: ..\..\..\..\..\src\ta_common\ta_retcode.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_retcode.obj ..\..\..\..\..\src\ta_common\ta_retcode.c + +..\..\..\..\..\temp\cdd\ta_version.obj: ..\..\..\..\..\src\ta_common\ta_version.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_version.obj ..\..\..\..\..\src\ta_common\ta_version.c + diff --git a/make/cdd/win32/msvc/ta_func/Makefile b/make/cdd/win32/msvc/ta_func/Makefile new file mode 100644 index 000000000..d00843585 --- /dev/null +++ b/make/cdd/win32/msvc/ta_func/Makefile @@ -0,0 +1,1041 @@ +############################################################################# +# Makefile for building ta_func_cdd +# Generated by tmake; +# Project: ta_func/ta_func +# Template: lib +############################################################################# + +####### Compiler, tools and options + +CC = cl +CXX = cl +CFLAGS = -nologo -W3 -MDd -Zi -DTA_DEBUG -D_DEBUG -DWIN32 -D_MBCS -D_LIB -DQT_THREAD_SUPPORT +CXXFLAGS= -nologo -W3 -MDd -Zi -DTA_DEBUG -D_DEBUG -DWIN32 -D_MBCS -D_LIB -DQT_THREAD_SUPPORT +INCPATH = -I"..\..\..\..\..\src\ta_common" -I"\n" -I"..\..\..\..\..\include" +LIB = lib /NOLOGO +MOC = moc +UIC = uic + +ZIP = zip -r -9 + +####### Files + +HEADERS = +SOURCES = ..\..\..\..\..\src\ta_func\ta_utility.c \ + ..\..\..\..\..\src\ta_func\ta_ACOS.c \ + ..\..\..\..\..\src\ta_func\ta_AD.c \ + ..\..\..\..\..\src\ta_func\ta_ADD.c \ + ..\..\..\..\..\src\ta_func\ta_ADOSC.c \ + ..\..\..\..\..\src\ta_func\ta_ADX.c \ + ..\..\..\..\..\src\ta_func\ta_ADXR.c \ + ..\..\..\..\..\src\ta_func\ta_APO.c \ + ..\..\..\..\..\src\ta_func\ta_AROON.c \ + ..\..\..\..\..\src\ta_func\ta_AROONOSC.c \ + ..\..\..\..\..\src\ta_func\ta_ASIN.c \ + ..\..\..\..\..\src\ta_func\ta_ATAN.c \ + ..\..\..\..\..\src\ta_func\ta_ATR.c \ + ..\..\..\..\..\src\ta_func\ta_AVGPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_BBANDS.c \ + ..\..\..\..\..\src\ta_func\ta_BETA.c \ + ..\..\..\..\..\src\ta_func\ta_BOP.c \ + ..\..\..\..\..\src\ta_func\ta_CCI.c \ + ..\..\..\..\..\src\ta_func\ta_CDL2CROWS.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3BLACKCROWS.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3INSIDE.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3LINESTRIKE.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3OUTSIDE.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3STARSINSOUTH.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3WHITESOLDIERS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLABANDONEDBABY.c \ + ..\..\..\..\..\src\ta_func\ta_CDLADVANCEBLOCK.c \ + ..\..\..\..\..\src\ta_func\ta_CDLBELTHOLD.c \ + ..\..\..\..\..\src\ta_func\ta_CDLBREAKAWAY.c \ + ..\..\..\..\..\src\ta_func\ta_CDLCLOSINGMARUBOZU.c \ + ..\..\..\..\..\src\ta_func\ta_CDLCONCEALBABYSWALL.c \ + ..\..\..\..\..\src\ta_func\ta_CDLCOUNTERATTACK.c \ + ..\..\..\..\..\src\ta_func\ta_CDLDARKCLOUDCOVER.c \ + ..\..\..\..\..\src\ta_func\ta_CDLDOJI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLDOJISTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLDRAGONFLYDOJI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLENGULFING.c \ + ..\..\..\..\..\src\ta_func\ta_CDLEVENINGDOJISTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLEVENINGSTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLGAPSIDESIDEWHITE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLGRAVESTONEDOJI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHAMMER.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHANGINGMAN.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHARAMI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHARAMICROSS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHIGHWAVE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKEMOD.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHOMINGPIGEON.c \ + ..\..\..\..\..\src\ta_func\ta_CDLIDENTICAL3CROWS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLINNECK.c \ + ..\..\..\..\..\src\ta_func\ta_CDLINVERTEDHAMMER.c \ + ..\..\..\..\..\src\ta_func\ta_CDLKICKING.c \ + ..\..\..\..\..\src\ta_func\ta_CDLKICKINGBYLENGTH.c \ + ..\..\..\..\..\src\ta_func\ta_CDLLADDERBOTTOM.c \ + ..\..\..\..\..\src\ta_func\ta_CDLLONGLEGGEDDOJI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLLONGLINE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMARUBOZU.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMATCHINGLOW.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMATHOLD.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMORNINGDOJISTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMORNINGSTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLONNECK.c \ + ..\..\..\..\..\src\ta_func\ta_CDLPIERCING.c \ + ..\..\..\..\..\src\ta_func\ta_CDLRICKSHAWMAN.c \ + ..\..\..\..\..\src\ta_func\ta_CDLRISEFALL3METHODS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSEPARATINGLINES.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSHOOTINGSTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSHORTLINE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSPINNINGTOP.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSTALLEDPATTERN.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSTICKSANDWICH.c \ + ..\..\..\..\..\src\ta_func\ta_CDLTAKURI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLTASUKIGAP.c \ + ..\..\..\..\..\src\ta_func\ta_CDLTHRUSTING.c \ + ..\..\..\..\..\src\ta_func\ta_CDLTRISTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLUNIQUE3RIVER.c \ + ..\..\..\..\..\src\ta_func\ta_CDLUPSIDEGAP2CROWS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLXSIDEGAP3METHODS.c \ + ..\..\..\..\..\src\ta_func\ta_CEIL.c \ + ..\..\..\..\..\src\ta_func\ta_CMO.c \ + ..\..\..\..\..\src\ta_func\ta_CORREL.c \ + ..\..\..\..\..\src\ta_func\ta_COS.c \ + ..\..\..\..\..\src\ta_func\ta_COSH.c \ + ..\..\..\..\..\src\ta_func\ta_DEMA.c \ + ..\..\..\..\..\src\ta_func\ta_DIV.c \ + ..\..\..\..\..\src\ta_func\ta_DX.c \ + ..\..\..\..\..\src\ta_func\ta_EMA.c \ + ..\..\..\..\..\src\ta_func\ta_EXP.c \ + ..\..\..\..\..\src\ta_func\ta_FLOOR.c \ + ..\..\..\..\..\src\ta_func\ta_HT_DCPERIOD.c \ + ..\..\..\..\..\src\ta_func\ta_HT_DCPHASE.c \ + ..\..\..\..\..\src\ta_func\ta_HT_PHASOR.c \ + ..\..\..\..\..\src\ta_func\ta_HT_SINE.c \ + ..\..\..\..\..\src\ta_func\ta_HT_TRENDLINE.c \ + ..\..\..\..\..\src\ta_func\ta_HT_TRENDMODE.c \ + ..\..\..\..\..\src\ta_func\ta_KAMA.c \ + ..\..\..\..\..\src\ta_func\ta_LINEARREG.c \ + ..\..\..\..\..\src\ta_func\ta_LINEARREG_ANGLE.c \ + ..\..\..\..\..\src\ta_func\ta_LINEARREG_INTERCEPT.c \ + ..\..\..\..\..\src\ta_func\ta_LINEARREG_SLOPE.c \ + ..\..\..\..\..\src\ta_func\ta_LN.c \ + ..\..\..\..\..\src\ta_func\ta_LOG10.c \ + ..\..\..\..\..\src\ta_func\ta_MA.c \ + ..\..\..\..\..\src\ta_func\ta_MACD.c \ + ..\..\..\..\..\src\ta_func\ta_MACDEXT.c \ + ..\..\..\..\..\src\ta_func\ta_MACDFIX.c \ + ..\..\..\..\..\src\ta_func\ta_MAMA.c \ + ..\..\..\..\..\src\ta_func\ta_MAVP.c \ + ..\..\..\..\..\src\ta_func\ta_MAX.c \ + ..\..\..\..\..\src\ta_func\ta_MAXINDEX.c \ + ..\..\..\..\..\src\ta_func\ta_MEDPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_MFI.c \ + ..\..\..\..\..\src\ta_func\ta_MIDPOINT.c \ + ..\..\..\..\..\src\ta_func\ta_MIDPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_MIN.c \ + ..\..\..\..\..\src\ta_func\ta_MININDEX.c \ + ..\..\..\..\..\src\ta_func\ta_MINMAX.c \ + ..\..\..\..\..\src\ta_func\ta_MINMAXINDEX.c \ + ..\..\..\..\..\src\ta_func\ta_MINUS_DI.c \ + ..\..\..\..\..\src\ta_func\ta_MINUS_DM.c \ + ..\..\..\..\..\src\ta_func\ta_MOM.c \ + ..\..\..\..\..\src\ta_func\ta_MULT.c \ + ..\..\..\..\..\src\ta_func\ta_NATR.c \ + ..\..\..\..\..\src\ta_func\ta_OBV.c \ + ..\..\..\..\..\src\ta_func\ta_PLUS_DI.c \ + ..\..\..\..\..\src\ta_func\ta_PLUS_DM.c \ + ..\..\..\..\..\src\ta_func\ta_PPO.c \ + ..\..\..\..\..\src\ta_func\ta_ROC.c \ + ..\..\..\..\..\src\ta_func\ta_ROCP.c \ + ..\..\..\..\..\src\ta_func\ta_ROCR.c \ + ..\..\..\..\..\src\ta_func\ta_ROCR100.c \ + ..\..\..\..\..\src\ta_func\ta_RSI.c \ + ..\..\..\..\..\src\ta_func\ta_SAR.c \ + ..\..\..\..\..\src\ta_func\ta_SAREXT.c \ + ..\..\..\..\..\src\ta_func\ta_SIN.c \ + ..\..\..\..\..\src\ta_func\ta_SINH.c \ + ..\..\..\..\..\src\ta_func\ta_SMA.c \ + ..\..\..\..\..\src\ta_func\ta_SQRT.c \ + ..\..\..\..\..\src\ta_func\ta_STDDEV.c \ + ..\..\..\..\..\src\ta_func\ta_STOCH.c \ + ..\..\..\..\..\src\ta_func\ta_STOCHF.c \ + ..\..\..\..\..\src\ta_func\ta_STOCHRSI.c \ + ..\..\..\..\..\src\ta_func\ta_SUB.c \ + ..\..\..\..\..\src\ta_func\ta_SUM.c \ + ..\..\..\..\..\src\ta_func\ta_T3.c \ + ..\..\..\..\..\src\ta_func\ta_TAN.c \ + ..\..\..\..\..\src\ta_func\ta_TANH.c \ + ..\..\..\..\..\src\ta_func\ta_TEMA.c \ + ..\..\..\..\..\src\ta_func\ta_TRANGE.c \ + ..\..\..\..\..\src\ta_func\ta_TRIMA.c \ + ..\..\..\..\..\src\ta_func\ta_TRIX.c \ + ..\..\..\..\..\src\ta_func\ta_TSF.c \ + ..\..\..\..\..\src\ta_func\ta_TYPPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_ULTOSC.c \ + ..\..\..\..\..\src\ta_func\ta_VAR.c \ + ..\..\..\..\..\src\ta_func\ta_WCLPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_WILLR.c \ + ..\..\..\..\..\src\ta_func\ta_WMA.c +OBJECTS = ..\..\..\..\..\temp\cdd\ta_utility.obj \ + ..\..\..\..\..\temp\cdd\ta_ACOS.obj \ + ..\..\..\..\..\temp\cdd\ta_AD.obj \ + ..\..\..\..\..\temp\cdd\ta_ADD.obj \ + ..\..\..\..\..\temp\cdd\ta_ADOSC.obj \ + ..\..\..\..\..\temp\cdd\ta_ADX.obj \ + ..\..\..\..\..\temp\cdd\ta_ADXR.obj \ + ..\..\..\..\..\temp\cdd\ta_APO.obj \ + ..\..\..\..\..\temp\cdd\ta_AROON.obj \ + ..\..\..\..\..\temp\cdd\ta_AROONOSC.obj \ + ..\..\..\..\..\temp\cdd\ta_ASIN.obj \ + ..\..\..\..\..\temp\cdd\ta_ATAN.obj \ + ..\..\..\..\..\temp\cdd\ta_ATR.obj \ + ..\..\..\..\..\temp\cdd\ta_AVGPRICE.obj \ + ..\..\..\..\..\temp\cdd\ta_BBANDS.obj \ + ..\..\..\..\..\temp\cdd\ta_BETA.obj \ + ..\..\..\..\..\temp\cdd\ta_BOP.obj \ + ..\..\..\..\..\temp\cdd\ta_CCI.obj \ + ..\..\..\..\..\temp\cdd\ta_CDL2CROWS.obj \ + ..\..\..\..\..\temp\cdd\ta_CDL3BLACKCROWS.obj \ + ..\..\..\..\..\temp\cdd\ta_CDL3INSIDE.obj \ + ..\..\..\..\..\temp\cdd\ta_CDL3LINESTRIKE.obj \ + ..\..\..\..\..\temp\cdd\ta_CDL3OUTSIDE.obj \ + ..\..\..\..\..\temp\cdd\ta_CDL3STARSINSOUTH.obj \ + ..\..\..\..\..\temp\cdd\ta_CDL3WHITESOLDIERS.obj \ + ..\..\..\..\..\temp\cdd\ta_CDLABANDONEDBABY.obj \ + ..\..\..\..\..\temp\cdd\ta_CDLADVANCEBLOCK.obj \ + ..\..\..\..\..\temp\cdd\ta_CDLBELTHOLD.obj \ + ..\..\..\..\..\temp\cdd\ta_CDLBREAKAWAY.obj \ + ..\..\..\..\..\temp\cdd\ta_CDLCLOSINGMARUBOZU.obj \ + ..\..\..\..\..\temp\cdd\ta_CDLCONCEALBABYSWALL.obj \ + ..\..\..\..\..\temp\cdd\ta_CDLCOUNTERATTACK.obj \ + ..\..\..\..\..\temp\cdd\ta_CDLDARKCLOUDCOVER.obj \ + ..\..\..\..\..\temp\cdd\ta_CDLDOJI.obj \ + ..\..\..\..\..\temp\cdd\ta_CDLDOJISTAR.obj \ + ..\..\..\..\..\temp\cdd\ta_CDLDRAGONFLYDOJI.obj \ + ..\..\..\..\..\temp\cdd\ta_CDLENGULFING.obj \ + ..\..\..\..\..\temp\cdd\ta_CDLEVENINGDOJISTAR.obj \ + ..\..\..\..\..\temp\cdd\ta_CDLEVENINGSTAR.obj \ + ..\..\..\..\..\temp\cdd\ta_CDLGAPSIDESIDEWHITE.obj \ + ..\..\..\..\..\temp\cdd\ta_CDLGRAVESTONEDOJI.obj \ + ..\..\..\..\..\temp\cdd\ta_CDLHAMMER.obj \ + ..\..\..\..\..\temp\cdd\ta_CDLHANGINGMAN.obj \ + ..\..\..\..\..\temp\cdd\ta_CDLHARAMI.obj \ + ..\..\..\..\..\temp\cdd\ta_CDLHARAMICROSS.obj \ + ..\..\..\..\..\temp\cdd\ta_CDLHIGHWAVE.obj \ + ..\..\..\..\..\temp\cdd\ta_CDLHIKKAKE.obj \ + ..\..\..\..\..\temp\cdd\ta_CDLHIKKAKEMOD.obj \ + ..\..\..\..\..\temp\cdd\ta_CDLHOMINGPIGEON.obj \ + ..\..\..\..\..\temp\cdd\ta_CDLIDENTICAL3CROWS.obj \ + ..\..\..\..\..\temp\cdd\ta_CDLINNECK.obj \ + ..\..\..\..\..\temp\cdd\ta_CDLINVERTEDHAMMER.obj \ + ..\..\..\..\..\temp\cdd\ta_CDLKICKING.obj \ + ..\..\..\..\..\temp\cdd\ta_CDLKICKINGBYLENGTH.obj \ + ..\..\..\..\..\temp\cdd\ta_CDLLADDERBOTTOM.obj \ + ..\..\..\..\..\temp\cdd\ta_CDLLONGLEGGEDDOJI.obj \ + ..\..\..\..\..\temp\cdd\ta_CDLLONGLINE.obj \ + ..\..\..\..\..\temp\cdd\ta_CDLMARUBOZU.obj \ + ..\..\..\..\..\temp\cdd\ta_CDLMATCHINGLOW.obj \ + ..\..\..\..\..\temp\cdd\ta_CDLMATHOLD.obj \ + ..\..\..\..\..\temp\cdd\ta_CDLMORNINGDOJISTAR.obj \ + ..\..\..\..\..\temp\cdd\ta_CDLMORNINGSTAR.obj \ + ..\..\..\..\..\temp\cdd\ta_CDLONNECK.obj \ + ..\..\..\..\..\temp\cdd\ta_CDLPIERCING.obj \ + ..\..\..\..\..\temp\cdd\ta_CDLRICKSHAWMAN.obj \ + ..\..\..\..\..\temp\cdd\ta_CDLRISEFALL3METHODS.obj \ + ..\..\..\..\..\temp\cdd\ta_CDLSEPARATINGLINES.obj \ + ..\..\..\..\..\temp\cdd\ta_CDLSHOOTINGSTAR.obj \ + ..\..\..\..\..\temp\cdd\ta_CDLSHORTLINE.obj \ + ..\..\..\..\..\temp\cdd\ta_CDLSPINNINGTOP.obj \ + ..\..\..\..\..\temp\cdd\ta_CDLSTALLEDPATTERN.obj \ + ..\..\..\..\..\temp\cdd\ta_CDLSTICKSANDWICH.obj \ + ..\..\..\..\..\temp\cdd\ta_CDLTAKURI.obj \ + ..\..\..\..\..\temp\cdd\ta_CDLTASUKIGAP.obj \ + ..\..\..\..\..\temp\cdd\ta_CDLTHRUSTING.obj \ + ..\..\..\..\..\temp\cdd\ta_CDLTRISTAR.obj \ + ..\..\..\..\..\temp\cdd\ta_CDLUNIQUE3RIVER.obj \ + ..\..\..\..\..\temp\cdd\ta_CDLUPSIDEGAP2CROWS.obj \ + ..\..\..\..\..\temp\cdd\ta_CDLXSIDEGAP3METHODS.obj \ + ..\..\..\..\..\temp\cdd\ta_CEIL.obj \ + ..\..\..\..\..\temp\cdd\ta_CMO.obj \ + ..\..\..\..\..\temp\cdd\ta_CORREL.obj \ + ..\..\..\..\..\temp\cdd\ta_COS.obj \ + ..\..\..\..\..\temp\cdd\ta_COSH.obj \ + ..\..\..\..\..\temp\cdd\ta_DEMA.obj \ + ..\..\..\..\..\temp\cdd\ta_DIV.obj \ + ..\..\..\..\..\temp\cdd\ta_DX.obj \ + ..\..\..\..\..\temp\cdd\ta_EMA.obj \ + ..\..\..\..\..\temp\cdd\ta_EXP.obj \ + ..\..\..\..\..\temp\cdd\ta_FLOOR.obj \ + ..\..\..\..\..\temp\cdd\ta_HT_DCPERIOD.obj \ + ..\..\..\..\..\temp\cdd\ta_HT_DCPHASE.obj \ + ..\..\..\..\..\temp\cdd\ta_HT_PHASOR.obj \ + ..\..\..\..\..\temp\cdd\ta_HT_SINE.obj \ + ..\..\..\..\..\temp\cdd\ta_HT_TRENDLINE.obj \ + ..\..\..\..\..\temp\cdd\ta_HT_TRENDMODE.obj \ + ..\..\..\..\..\temp\cdd\ta_KAMA.obj \ + ..\..\..\..\..\temp\cdd\ta_LINEARREG.obj \ + ..\..\..\..\..\temp\cdd\ta_LINEARREG_ANGLE.obj \ + ..\..\..\..\..\temp\cdd\ta_LINEARREG_INTERCEPT.obj \ + ..\..\..\..\..\temp\cdd\ta_LINEARREG_SLOPE.obj \ + ..\..\..\..\..\temp\cdd\ta_LN.obj \ + ..\..\..\..\..\temp\cdd\ta_LOG10.obj \ + ..\..\..\..\..\temp\cdd\ta_MA.obj \ + ..\..\..\..\..\temp\cdd\ta_MACD.obj \ + ..\..\..\..\..\temp\cdd\ta_MACDEXT.obj \ + ..\..\..\..\..\temp\cdd\ta_MACDFIX.obj \ + ..\..\..\..\..\temp\cdd\ta_MAMA.obj \ + ..\..\..\..\..\temp\cdd\ta_MAVP.obj \ + ..\..\..\..\..\temp\cdd\ta_MAX.obj \ + ..\..\..\..\..\temp\cdd\ta_MAXINDEX.obj \ + ..\..\..\..\..\temp\cdd\ta_MEDPRICE.obj \ + ..\..\..\..\..\temp\cdd\ta_MFI.obj \ + ..\..\..\..\..\temp\cdd\ta_MIDPOINT.obj \ + ..\..\..\..\..\temp\cdd\ta_MIDPRICE.obj \ + ..\..\..\..\..\temp\cdd\ta_MIN.obj \ + ..\..\..\..\..\temp\cdd\ta_MININDEX.obj \ + ..\..\..\..\..\temp\cdd\ta_MINMAX.obj \ + ..\..\..\..\..\temp\cdd\ta_MINMAXINDEX.obj \ + ..\..\..\..\..\temp\cdd\ta_MINUS_DI.obj \ + ..\..\..\..\..\temp\cdd\ta_MINUS_DM.obj \ + ..\..\..\..\..\temp\cdd\ta_MOM.obj \ + ..\..\..\..\..\temp\cdd\ta_MULT.obj \ + ..\..\..\..\..\temp\cdd\ta_NATR.obj \ + ..\..\..\..\..\temp\cdd\ta_OBV.obj \ + ..\..\..\..\..\temp\cdd\ta_PLUS_DI.obj \ + ..\..\..\..\..\temp\cdd\ta_PLUS_DM.obj \ + ..\..\..\..\..\temp\cdd\ta_PPO.obj \ + ..\..\..\..\..\temp\cdd\ta_ROC.obj \ + ..\..\..\..\..\temp\cdd\ta_ROCP.obj \ + ..\..\..\..\..\temp\cdd\ta_ROCR.obj \ + ..\..\..\..\..\temp\cdd\ta_ROCR100.obj \ + ..\..\..\..\..\temp\cdd\ta_RSI.obj \ + ..\..\..\..\..\temp\cdd\ta_SAR.obj \ + ..\..\..\..\..\temp\cdd\ta_SAREXT.obj \ + ..\..\..\..\..\temp\cdd\ta_SIN.obj \ + ..\..\..\..\..\temp\cdd\ta_SINH.obj \ + ..\..\..\..\..\temp\cdd\ta_SMA.obj \ + ..\..\..\..\..\temp\cdd\ta_SQRT.obj \ + ..\..\..\..\..\temp\cdd\ta_STDDEV.obj \ + ..\..\..\..\..\temp\cdd\ta_STOCH.obj \ + ..\..\..\..\..\temp\cdd\ta_STOCHF.obj \ + ..\..\..\..\..\temp\cdd\ta_STOCHRSI.obj \ + ..\..\..\..\..\temp\cdd\ta_SUB.obj \ + ..\..\..\..\..\temp\cdd\ta_SUM.obj \ + ..\..\..\..\..\temp\cdd\ta_T3.obj \ + ..\..\..\..\..\temp\cdd\ta_TAN.obj \ + ..\..\..\..\..\temp\cdd\ta_TANH.obj \ + ..\..\..\..\..\temp\cdd\ta_TEMA.obj \ + ..\..\..\..\..\temp\cdd\ta_TRANGE.obj \ + ..\..\..\..\..\temp\cdd\ta_TRIMA.obj \ + ..\..\..\..\..\temp\cdd\ta_TRIX.obj \ + ..\..\..\..\..\temp\cdd\ta_TSF.obj \ + ..\..\..\..\..\temp\cdd\ta_TYPPRICE.obj \ + ..\..\..\..\..\temp\cdd\ta_ULTOSC.obj \ + ..\..\..\..\..\temp\cdd\ta_VAR.obj \ + ..\..\..\..\..\temp\cdd\ta_WCLPRICE.obj \ + ..\..\..\..\..\temp\cdd\ta_WILLR.obj \ + ..\..\..\..\..\temp\cdd\ta_WMA.obj +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ..\..\..\..\..\lib\ta_func_cdd.lib +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .c + +.cpp.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $< + +.cxx.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $< + +.cc.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $< + +.c.obj: + $(CC) -c $(CFLAGS) $(INCPATH) -Fo$@ $< + +####### Build rules + +all: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + $(LIB) /OUT:$(TARGET) @<< + $(OBJECTS) $(OBJMOC) +<< + +moc: $(SRCMOC) + +tmake: ../cdd/win32/msvc/ta_func/Makefile + +../cdd/win32/msvc/ta_func/Makefile: ta_func/ta_func.pro + tmake ta_func/ta_func.pro -o ../cdd/win32/msvc/ta_func/Makefile + +dist: + $(ZIP) ta_func/ta_func.zip ta_func/ta_func.pro $(SOURCES) $(HEADERS) $(DIST) $(INTERFACES) + +clean: + -del ..\..\..\..\..\temp\cdd\ta_utility.obj + -del ..\..\..\..\..\temp\cdd\ta_ACOS.obj + -del ..\..\..\..\..\temp\cdd\ta_AD.obj + -del ..\..\..\..\..\temp\cdd\ta_ADD.obj + -del ..\..\..\..\..\temp\cdd\ta_ADOSC.obj + -del ..\..\..\..\..\temp\cdd\ta_ADX.obj + -del ..\..\..\..\..\temp\cdd\ta_ADXR.obj + -del ..\..\..\..\..\temp\cdd\ta_APO.obj + -del ..\..\..\..\..\temp\cdd\ta_AROON.obj + -del ..\..\..\..\..\temp\cdd\ta_AROONOSC.obj + -del ..\..\..\..\..\temp\cdd\ta_ASIN.obj + -del ..\..\..\..\..\temp\cdd\ta_ATAN.obj + -del ..\..\..\..\..\temp\cdd\ta_ATR.obj + -del ..\..\..\..\..\temp\cdd\ta_AVGPRICE.obj + -del ..\..\..\..\..\temp\cdd\ta_BBANDS.obj + -del ..\..\..\..\..\temp\cdd\ta_BETA.obj + -del ..\..\..\..\..\temp\cdd\ta_BOP.obj + -del ..\..\..\..\..\temp\cdd\ta_CCI.obj + -del ..\..\..\..\..\temp\cdd\ta_CDL2CROWS.obj + -del ..\..\..\..\..\temp\cdd\ta_CDL3BLACKCROWS.obj + -del ..\..\..\..\..\temp\cdd\ta_CDL3INSIDE.obj + -del ..\..\..\..\..\temp\cdd\ta_CDL3LINESTRIKE.obj + -del ..\..\..\..\..\temp\cdd\ta_CDL3OUTSIDE.obj + -del ..\..\..\..\..\temp\cdd\ta_CDL3STARSINSOUTH.obj + -del ..\..\..\..\..\temp\cdd\ta_CDL3WHITESOLDIERS.obj + -del ..\..\..\..\..\temp\cdd\ta_CDLABANDONEDBABY.obj + -del ..\..\..\..\..\temp\cdd\ta_CDLADVANCEBLOCK.obj + -del ..\..\..\..\..\temp\cdd\ta_CDLBELTHOLD.obj + -del ..\..\..\..\..\temp\cdd\ta_CDLBREAKAWAY.obj + -del ..\..\..\..\..\temp\cdd\ta_CDLCLOSINGMARUBOZU.obj + -del ..\..\..\..\..\temp\cdd\ta_CDLCONCEALBABYSWALL.obj + -del ..\..\..\..\..\temp\cdd\ta_CDLCOUNTERATTACK.obj + -del ..\..\..\..\..\temp\cdd\ta_CDLDARKCLOUDCOVER.obj + -del ..\..\..\..\..\temp\cdd\ta_CDLDOJI.obj + -del ..\..\..\..\..\temp\cdd\ta_CDLDOJISTAR.obj + -del ..\..\..\..\..\temp\cdd\ta_CDLDRAGONFLYDOJI.obj + -del ..\..\..\..\..\temp\cdd\ta_CDLENGULFING.obj + -del ..\..\..\..\..\temp\cdd\ta_CDLEVENINGDOJISTAR.obj + -del ..\..\..\..\..\temp\cdd\ta_CDLEVENINGSTAR.obj + -del ..\..\..\..\..\temp\cdd\ta_CDLGAPSIDESIDEWHITE.obj + -del ..\..\..\..\..\temp\cdd\ta_CDLGRAVESTONEDOJI.obj + -del ..\..\..\..\..\temp\cdd\ta_CDLHAMMER.obj + -del ..\..\..\..\..\temp\cdd\ta_CDLHANGINGMAN.obj + -del ..\..\..\..\..\temp\cdd\ta_CDLHARAMI.obj + -del ..\..\..\..\..\temp\cdd\ta_CDLHARAMICROSS.obj + -del ..\..\..\..\..\temp\cdd\ta_CDLHIGHWAVE.obj + -del ..\..\..\..\..\temp\cdd\ta_CDLHIKKAKE.obj + -del ..\..\..\..\..\temp\cdd\ta_CDLHIKKAKEMOD.obj + -del ..\..\..\..\..\temp\cdd\ta_CDLHOMINGPIGEON.obj + -del ..\..\..\..\..\temp\cdd\ta_CDLIDENTICAL3CROWS.obj + -del ..\..\..\..\..\temp\cdd\ta_CDLINNECK.obj + -del ..\..\..\..\..\temp\cdd\ta_CDLINVERTEDHAMMER.obj + -del ..\..\..\..\..\temp\cdd\ta_CDLKICKING.obj + -del ..\..\..\..\..\temp\cdd\ta_CDLKICKINGBYLENGTH.obj + -del ..\..\..\..\..\temp\cdd\ta_CDLLADDERBOTTOM.obj + -del ..\..\..\..\..\temp\cdd\ta_CDLLONGLEGGEDDOJI.obj + -del ..\..\..\..\..\temp\cdd\ta_CDLLONGLINE.obj + -del ..\..\..\..\..\temp\cdd\ta_CDLMARUBOZU.obj + -del ..\..\..\..\..\temp\cdd\ta_CDLMATCHINGLOW.obj + -del ..\..\..\..\..\temp\cdd\ta_CDLMATHOLD.obj + -del ..\..\..\..\..\temp\cdd\ta_CDLMORNINGDOJISTAR.obj + -del ..\..\..\..\..\temp\cdd\ta_CDLMORNINGSTAR.obj + -del ..\..\..\..\..\temp\cdd\ta_CDLONNECK.obj + -del ..\..\..\..\..\temp\cdd\ta_CDLPIERCING.obj + -del ..\..\..\..\..\temp\cdd\ta_CDLRICKSHAWMAN.obj + -del ..\..\..\..\..\temp\cdd\ta_CDLRISEFALL3METHODS.obj + -del ..\..\..\..\..\temp\cdd\ta_CDLSEPARATINGLINES.obj + -del ..\..\..\..\..\temp\cdd\ta_CDLSHOOTINGSTAR.obj + -del ..\..\..\..\..\temp\cdd\ta_CDLSHORTLINE.obj + -del ..\..\..\..\..\temp\cdd\ta_CDLSPINNINGTOP.obj + -del ..\..\..\..\..\temp\cdd\ta_CDLSTALLEDPATTERN.obj + -del ..\..\..\..\..\temp\cdd\ta_CDLSTICKSANDWICH.obj + -del ..\..\..\..\..\temp\cdd\ta_CDLTAKURI.obj + -del ..\..\..\..\..\temp\cdd\ta_CDLTASUKIGAP.obj + -del ..\..\..\..\..\temp\cdd\ta_CDLTHRUSTING.obj + -del ..\..\..\..\..\temp\cdd\ta_CDLTRISTAR.obj + -del ..\..\..\..\..\temp\cdd\ta_CDLUNIQUE3RIVER.obj + -del ..\..\..\..\..\temp\cdd\ta_CDLUPSIDEGAP2CROWS.obj + -del ..\..\..\..\..\temp\cdd\ta_CDLXSIDEGAP3METHODS.obj + -del ..\..\..\..\..\temp\cdd\ta_CEIL.obj + -del ..\..\..\..\..\temp\cdd\ta_CMO.obj + -del ..\..\..\..\..\temp\cdd\ta_CORREL.obj + -del ..\..\..\..\..\temp\cdd\ta_COS.obj + -del ..\..\..\..\..\temp\cdd\ta_COSH.obj + -del ..\..\..\..\..\temp\cdd\ta_DEMA.obj + -del ..\..\..\..\..\temp\cdd\ta_DIV.obj + -del ..\..\..\..\..\temp\cdd\ta_DX.obj + -del ..\..\..\..\..\temp\cdd\ta_EMA.obj + -del ..\..\..\..\..\temp\cdd\ta_EXP.obj + -del ..\..\..\..\..\temp\cdd\ta_FLOOR.obj + -del ..\..\..\..\..\temp\cdd\ta_HT_DCPERIOD.obj + -del ..\..\..\..\..\temp\cdd\ta_HT_DCPHASE.obj + -del ..\..\..\..\..\temp\cdd\ta_HT_PHASOR.obj + -del ..\..\..\..\..\temp\cdd\ta_HT_SINE.obj + -del ..\..\..\..\..\temp\cdd\ta_HT_TRENDLINE.obj + -del ..\..\..\..\..\temp\cdd\ta_HT_TRENDMODE.obj + -del ..\..\..\..\..\temp\cdd\ta_KAMA.obj + -del ..\..\..\..\..\temp\cdd\ta_LINEARREG.obj + -del ..\..\..\..\..\temp\cdd\ta_LINEARREG_ANGLE.obj + -del ..\..\..\..\..\temp\cdd\ta_LINEARREG_INTERCEPT.obj + -del ..\..\..\..\..\temp\cdd\ta_LINEARREG_SLOPE.obj + -del ..\..\..\..\..\temp\cdd\ta_LN.obj + -del ..\..\..\..\..\temp\cdd\ta_LOG10.obj + -del ..\..\..\..\..\temp\cdd\ta_MA.obj + -del ..\..\..\..\..\temp\cdd\ta_MACD.obj + -del ..\..\..\..\..\temp\cdd\ta_MACDEXT.obj + -del ..\..\..\..\..\temp\cdd\ta_MACDFIX.obj + -del ..\..\..\..\..\temp\cdd\ta_MAMA.obj + -del ..\..\..\..\..\temp\cdd\ta_MAVP.obj + -del ..\..\..\..\..\temp\cdd\ta_MAX.obj + -del ..\..\..\..\..\temp\cdd\ta_MAXINDEX.obj + -del ..\..\..\..\..\temp\cdd\ta_MEDPRICE.obj + -del ..\..\..\..\..\temp\cdd\ta_MFI.obj + -del ..\..\..\..\..\temp\cdd\ta_MIDPOINT.obj + -del ..\..\..\..\..\temp\cdd\ta_MIDPRICE.obj + -del ..\..\..\..\..\temp\cdd\ta_MIN.obj + -del ..\..\..\..\..\temp\cdd\ta_MININDEX.obj + -del ..\..\..\..\..\temp\cdd\ta_MINMAX.obj + -del ..\..\..\..\..\temp\cdd\ta_MINMAXINDEX.obj + -del ..\..\..\..\..\temp\cdd\ta_MINUS_DI.obj + -del ..\..\..\..\..\temp\cdd\ta_MINUS_DM.obj + -del ..\..\..\..\..\temp\cdd\ta_MOM.obj + -del ..\..\..\..\..\temp\cdd\ta_MULT.obj + -del ..\..\..\..\..\temp\cdd\ta_NATR.obj + -del ..\..\..\..\..\temp\cdd\ta_OBV.obj + -del ..\..\..\..\..\temp\cdd\ta_PLUS_DI.obj + -del ..\..\..\..\..\temp\cdd\ta_PLUS_DM.obj + -del ..\..\..\..\..\temp\cdd\ta_PPO.obj + -del ..\..\..\..\..\temp\cdd\ta_ROC.obj + -del ..\..\..\..\..\temp\cdd\ta_ROCP.obj + -del ..\..\..\..\..\temp\cdd\ta_ROCR.obj + -del ..\..\..\..\..\temp\cdd\ta_ROCR100.obj + -del ..\..\..\..\..\temp\cdd\ta_RSI.obj + -del ..\..\..\..\..\temp\cdd\ta_SAR.obj + -del ..\..\..\..\..\temp\cdd\ta_SAREXT.obj + -del ..\..\..\..\..\temp\cdd\ta_SIN.obj + -del ..\..\..\..\..\temp\cdd\ta_SINH.obj + -del ..\..\..\..\..\temp\cdd\ta_SMA.obj + -del ..\..\..\..\..\temp\cdd\ta_SQRT.obj + -del ..\..\..\..\..\temp\cdd\ta_STDDEV.obj + -del ..\..\..\..\..\temp\cdd\ta_STOCH.obj + -del ..\..\..\..\..\temp\cdd\ta_STOCHF.obj + -del ..\..\..\..\..\temp\cdd\ta_STOCHRSI.obj + -del ..\..\..\..\..\temp\cdd\ta_SUB.obj + -del ..\..\..\..\..\temp\cdd\ta_SUM.obj + -del ..\..\..\..\..\temp\cdd\ta_T3.obj + -del ..\..\..\..\..\temp\cdd\ta_TAN.obj + -del ..\..\..\..\..\temp\cdd\ta_TANH.obj + -del ..\..\..\..\..\temp\cdd\ta_TEMA.obj + -del ..\..\..\..\..\temp\cdd\ta_TRANGE.obj + -del ..\..\..\..\..\temp\cdd\ta_TRIMA.obj + -del ..\..\..\..\..\temp\cdd\ta_TRIX.obj + -del ..\..\..\..\..\temp\cdd\ta_TSF.obj + -del ..\..\..\..\..\temp\cdd\ta_TYPPRICE.obj + -del ..\..\..\..\..\temp\cdd\ta_ULTOSC.obj + -del ..\..\..\..\..\temp\cdd\ta_VAR.obj + -del ..\..\..\..\..\temp\cdd\ta_WCLPRICE.obj + -del ..\..\..\..\..\temp\cdd\ta_WILLR.obj + -del ..\..\..\..\..\temp\cdd\ta_WMA.obj + -del $(TARGET) + -del ../../../../../bin/*.map + -del ../../../../../bin/*._xe + -del ../../../../../bin/*.tds + -del ../../../../../bin/*.pdb + -del ../../../../../bin/*.pbo + -del ../../../../../bin/*.pbi + -del ../../../../../bin/*.pbt + -del ../../../../../temp/cdd/*.pch + -del ../../../../../temp/cdd/*.idb + -del ../../../../../temp/cdd/ta_func/*.pch + -del ../../../../../temp/cdd/ta_func/*.idb + -del ../../../../../temp/cdd/ta_func/*.obj + -del ta_func_cdd.pdb + -del vc*.pdb + -del ta_func_cdd.ilk + +####### Compile + +..\..\..\..\..\temp\cdd\ta_utility.obj: ..\..\..\..\..\src\ta_func\ta_utility.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_utility.obj ..\..\..\..\..\src\ta_func\ta_utility.c + +..\..\..\..\..\temp\cdd\ta_ACOS.obj: ..\..\..\..\..\src\ta_func\ta_ACOS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_ACOS.obj ..\..\..\..\..\src\ta_func\ta_ACOS.c + +..\..\..\..\..\temp\cdd\ta_AD.obj: ..\..\..\..\..\src\ta_func\ta_AD.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_AD.obj ..\..\..\..\..\src\ta_func\ta_AD.c + +..\..\..\..\..\temp\cdd\ta_ADD.obj: ..\..\..\..\..\src\ta_func\ta_ADD.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_ADD.obj ..\..\..\..\..\src\ta_func\ta_ADD.c + +..\..\..\..\..\temp\cdd\ta_ADOSC.obj: ..\..\..\..\..\src\ta_func\ta_ADOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_ADOSC.obj ..\..\..\..\..\src\ta_func\ta_ADOSC.c + +..\..\..\..\..\temp\cdd\ta_ADX.obj: ..\..\..\..\..\src\ta_func\ta_ADX.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_ADX.obj ..\..\..\..\..\src\ta_func\ta_ADX.c + +..\..\..\..\..\temp\cdd\ta_ADXR.obj: ..\..\..\..\..\src\ta_func\ta_ADXR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_ADXR.obj ..\..\..\..\..\src\ta_func\ta_ADXR.c + +..\..\..\..\..\temp\cdd\ta_APO.obj: ..\..\..\..\..\src\ta_func\ta_APO.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_APO.obj ..\..\..\..\..\src\ta_func\ta_APO.c + +..\..\..\..\..\temp\cdd\ta_AROON.obj: ..\..\..\..\..\src\ta_func\ta_AROON.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_AROON.obj ..\..\..\..\..\src\ta_func\ta_AROON.c + +..\..\..\..\..\temp\cdd\ta_AROONOSC.obj: ..\..\..\..\..\src\ta_func\ta_AROONOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_AROONOSC.obj ..\..\..\..\..\src\ta_func\ta_AROONOSC.c + +..\..\..\..\..\temp\cdd\ta_ASIN.obj: ..\..\..\..\..\src\ta_func\ta_ASIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_ASIN.obj ..\..\..\..\..\src\ta_func\ta_ASIN.c + +..\..\..\..\..\temp\cdd\ta_ATAN.obj: ..\..\..\..\..\src\ta_func\ta_ATAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_ATAN.obj ..\..\..\..\..\src\ta_func\ta_ATAN.c + +..\..\..\..\..\temp\cdd\ta_ATR.obj: ..\..\..\..\..\src\ta_func\ta_ATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_ATR.obj ..\..\..\..\..\src\ta_func\ta_ATR.c + +..\..\..\..\..\temp\cdd\ta_AVGPRICE.obj: ..\..\..\..\..\src\ta_func\ta_AVGPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_AVGPRICE.obj ..\..\..\..\..\src\ta_func\ta_AVGPRICE.c + +..\..\..\..\..\temp\cdd\ta_BBANDS.obj: ..\..\..\..\..\src\ta_func\ta_BBANDS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_BBANDS.obj ..\..\..\..\..\src\ta_func\ta_BBANDS.c + +..\..\..\..\..\temp\cdd\ta_BETA.obj: ..\..\..\..\..\src\ta_func\ta_BETA.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_BETA.obj ..\..\..\..\..\src\ta_func\ta_BETA.c + +..\..\..\..\..\temp\cdd\ta_BOP.obj: ..\..\..\..\..\src\ta_func\ta_BOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_BOP.obj ..\..\..\..\..\src\ta_func\ta_BOP.c + +..\..\..\..\..\temp\cdd\ta_CCI.obj: ..\..\..\..\..\src\ta_func\ta_CCI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CCI.obj ..\..\..\..\..\src\ta_func\ta_CCI.c + +..\..\..\..\..\temp\cdd\ta_CDL2CROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDL2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CDL2CROWS.obj ..\..\..\..\..\src\ta_func\ta_CDL2CROWS.c + +..\..\..\..\..\temp\cdd\ta_CDL3BLACKCROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDL3BLACKCROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CDL3BLACKCROWS.obj ..\..\..\..\..\src\ta_func\ta_CDL3BLACKCROWS.c + +..\..\..\..\..\temp\cdd\ta_CDL3INSIDE.obj: ..\..\..\..\..\src\ta_func\ta_CDL3INSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CDL3INSIDE.obj ..\..\..\..\..\src\ta_func\ta_CDL3INSIDE.c + +..\..\..\..\..\temp\cdd\ta_CDL3LINESTRIKE.obj: ..\..\..\..\..\src\ta_func\ta_CDL3LINESTRIKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CDL3LINESTRIKE.obj ..\..\..\..\..\src\ta_func\ta_CDL3LINESTRIKE.c + +..\..\..\..\..\temp\cdd\ta_CDL3OUTSIDE.obj: ..\..\..\..\..\src\ta_func\ta_CDL3OUTSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CDL3OUTSIDE.obj ..\..\..\..\..\src\ta_func\ta_CDL3OUTSIDE.c + +..\..\..\..\..\temp\cdd\ta_CDL3STARSINSOUTH.obj: ..\..\..\..\..\src\ta_func\ta_CDL3STARSINSOUTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CDL3STARSINSOUTH.obj ..\..\..\..\..\src\ta_func\ta_CDL3STARSINSOUTH.c + +..\..\..\..\..\temp\cdd\ta_CDL3WHITESOLDIERS.obj: ..\..\..\..\..\src\ta_func\ta_CDL3WHITESOLDIERS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CDL3WHITESOLDIERS.obj ..\..\..\..\..\src\ta_func\ta_CDL3WHITESOLDIERS.c + +..\..\..\..\..\temp\cdd\ta_CDLABANDONEDBABY.obj: ..\..\..\..\..\src\ta_func\ta_CDLABANDONEDBABY.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CDLABANDONEDBABY.obj ..\..\..\..\..\src\ta_func\ta_CDLABANDONEDBABY.c + +..\..\..\..\..\temp\cdd\ta_CDLADVANCEBLOCK.obj: ..\..\..\..\..\src\ta_func\ta_CDLADVANCEBLOCK.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CDLADVANCEBLOCK.obj ..\..\..\..\..\src\ta_func\ta_CDLADVANCEBLOCK.c + +..\..\..\..\..\temp\cdd\ta_CDLBELTHOLD.obj: ..\..\..\..\..\src\ta_func\ta_CDLBELTHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CDLBELTHOLD.obj ..\..\..\..\..\src\ta_func\ta_CDLBELTHOLD.c + +..\..\..\..\..\temp\cdd\ta_CDLBREAKAWAY.obj: ..\..\..\..\..\src\ta_func\ta_CDLBREAKAWAY.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CDLBREAKAWAY.obj ..\..\..\..\..\src\ta_func\ta_CDLBREAKAWAY.c + +..\..\..\..\..\temp\cdd\ta_CDLCLOSINGMARUBOZU.obj: ..\..\..\..\..\src\ta_func\ta_CDLCLOSINGMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CDLCLOSINGMARUBOZU.obj ..\..\..\..\..\src\ta_func\ta_CDLCLOSINGMARUBOZU.c + +..\..\..\..\..\temp\cdd\ta_CDLCONCEALBABYSWALL.obj: ..\..\..\..\..\src\ta_func\ta_CDLCONCEALBABYSWALL.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CDLCONCEALBABYSWALL.obj ..\..\..\..\..\src\ta_func\ta_CDLCONCEALBABYSWALL.c + +..\..\..\..\..\temp\cdd\ta_CDLCOUNTERATTACK.obj: ..\..\..\..\..\src\ta_func\ta_CDLCOUNTERATTACK.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CDLCOUNTERATTACK.obj ..\..\..\..\..\src\ta_func\ta_CDLCOUNTERATTACK.c + +..\..\..\..\..\temp\cdd\ta_CDLDARKCLOUDCOVER.obj: ..\..\..\..\..\src\ta_func\ta_CDLDARKCLOUDCOVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CDLDARKCLOUDCOVER.obj ..\..\..\..\..\src\ta_func\ta_CDLDARKCLOUDCOVER.c + +..\..\..\..\..\temp\cdd\ta_CDLDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CDLDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLDOJI.c + +..\..\..\..\..\temp\cdd\ta_CDLDOJISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CDLDOJISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLDOJISTAR.c + +..\..\..\..\..\temp\cdd\ta_CDLDRAGONFLYDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLDRAGONFLYDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CDLDRAGONFLYDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLDRAGONFLYDOJI.c + +..\..\..\..\..\temp\cdd\ta_CDLENGULFING.obj: ..\..\..\..\..\src\ta_func\ta_CDLENGULFING.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CDLENGULFING.obj ..\..\..\..\..\src\ta_func\ta_CDLENGULFING.c + +..\..\..\..\..\temp\cdd\ta_CDLEVENINGDOJISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLEVENINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CDLEVENINGDOJISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLEVENINGDOJISTAR.c + +..\..\..\..\..\temp\cdd\ta_CDLEVENINGSTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLEVENINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CDLEVENINGSTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLEVENINGSTAR.c + +..\..\..\..\..\temp\cdd\ta_CDLGAPSIDESIDEWHITE.obj: ..\..\..\..\..\src\ta_func\ta_CDLGAPSIDESIDEWHITE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CDLGAPSIDESIDEWHITE.obj ..\..\..\..\..\src\ta_func\ta_CDLGAPSIDESIDEWHITE.c + +..\..\..\..\..\temp\cdd\ta_CDLGRAVESTONEDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLGRAVESTONEDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CDLGRAVESTONEDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLGRAVESTONEDOJI.c + +..\..\..\..\..\temp\cdd\ta_CDLHAMMER.obj: ..\..\..\..\..\src\ta_func\ta_CDLHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CDLHAMMER.obj ..\..\..\..\..\src\ta_func\ta_CDLHAMMER.c + +..\..\..\..\..\temp\cdd\ta_CDLHANGINGMAN.obj: ..\..\..\..\..\src\ta_func\ta_CDLHANGINGMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CDLHANGINGMAN.obj ..\..\..\..\..\src\ta_func\ta_CDLHANGINGMAN.c + +..\..\..\..\..\temp\cdd\ta_CDLHARAMI.obj: ..\..\..\..\..\src\ta_func\ta_CDLHARAMI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CDLHARAMI.obj ..\..\..\..\..\src\ta_func\ta_CDLHARAMI.c + +..\..\..\..\..\temp\cdd\ta_CDLHARAMICROSS.obj: ..\..\..\..\..\src\ta_func\ta_CDLHARAMICROSS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CDLHARAMICROSS.obj ..\..\..\..\..\src\ta_func\ta_CDLHARAMICROSS.c + +..\..\..\..\..\temp\cdd\ta_CDLHIGHWAVE.obj: ..\..\..\..\..\src\ta_func\ta_CDLHIGHWAVE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CDLHIGHWAVE.obj ..\..\..\..\..\src\ta_func\ta_CDLHIGHWAVE.c + +..\..\..\..\..\temp\cdd\ta_CDLHIKKAKE.obj: ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CDLHIKKAKE.obj ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKE.c + +..\..\..\..\..\temp\cdd\ta_CDLHIKKAKEMOD.obj: ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKEMOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CDLHIKKAKEMOD.obj ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKEMOD.c + +..\..\..\..\..\temp\cdd\ta_CDLHOMINGPIGEON.obj: ..\..\..\..\..\src\ta_func\ta_CDLHOMINGPIGEON.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CDLHOMINGPIGEON.obj ..\..\..\..\..\src\ta_func\ta_CDLHOMINGPIGEON.c + +..\..\..\..\..\temp\cdd\ta_CDLIDENTICAL3CROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDLIDENTICAL3CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CDLIDENTICAL3CROWS.obj ..\..\..\..\..\src\ta_func\ta_CDLIDENTICAL3CROWS.c + +..\..\..\..\..\temp\cdd\ta_CDLINNECK.obj: ..\..\..\..\..\src\ta_func\ta_CDLINNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CDLINNECK.obj ..\..\..\..\..\src\ta_func\ta_CDLINNECK.c + +..\..\..\..\..\temp\cdd\ta_CDLINVERTEDHAMMER.obj: ..\..\..\..\..\src\ta_func\ta_CDLINVERTEDHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CDLINVERTEDHAMMER.obj ..\..\..\..\..\src\ta_func\ta_CDLINVERTEDHAMMER.c + +..\..\..\..\..\temp\cdd\ta_CDLKICKING.obj: ..\..\..\..\..\src\ta_func\ta_CDLKICKING.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CDLKICKING.obj ..\..\..\..\..\src\ta_func\ta_CDLKICKING.c + +..\..\..\..\..\temp\cdd\ta_CDLKICKINGBYLENGTH.obj: ..\..\..\..\..\src\ta_func\ta_CDLKICKINGBYLENGTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CDLKICKINGBYLENGTH.obj ..\..\..\..\..\src\ta_func\ta_CDLKICKINGBYLENGTH.c + +..\..\..\..\..\temp\cdd\ta_CDLLADDERBOTTOM.obj: ..\..\..\..\..\src\ta_func\ta_CDLLADDERBOTTOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CDLLADDERBOTTOM.obj ..\..\..\..\..\src\ta_func\ta_CDLLADDERBOTTOM.c + +..\..\..\..\..\temp\cdd\ta_CDLLONGLEGGEDDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLLONGLEGGEDDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CDLLONGLEGGEDDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLLONGLEGGEDDOJI.c + +..\..\..\..\..\temp\cdd\ta_CDLLONGLINE.obj: ..\..\..\..\..\src\ta_func\ta_CDLLONGLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CDLLONGLINE.obj ..\..\..\..\..\src\ta_func\ta_CDLLONGLINE.c + +..\..\..\..\..\temp\cdd\ta_CDLMARUBOZU.obj: ..\..\..\..\..\src\ta_func\ta_CDLMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CDLMARUBOZU.obj ..\..\..\..\..\src\ta_func\ta_CDLMARUBOZU.c + +..\..\..\..\..\temp\cdd\ta_CDLMATCHINGLOW.obj: ..\..\..\..\..\src\ta_func\ta_CDLMATCHINGLOW.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CDLMATCHINGLOW.obj ..\..\..\..\..\src\ta_func\ta_CDLMATCHINGLOW.c + +..\..\..\..\..\temp\cdd\ta_CDLMATHOLD.obj: ..\..\..\..\..\src\ta_func\ta_CDLMATHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CDLMATHOLD.obj ..\..\..\..\..\src\ta_func\ta_CDLMATHOLD.c + +..\..\..\..\..\temp\cdd\ta_CDLMORNINGDOJISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLMORNINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CDLMORNINGDOJISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLMORNINGDOJISTAR.c + +..\..\..\..\..\temp\cdd\ta_CDLMORNINGSTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLMORNINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CDLMORNINGSTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLMORNINGSTAR.c + +..\..\..\..\..\temp\cdd\ta_CDLONNECK.obj: ..\..\..\..\..\src\ta_func\ta_CDLONNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CDLONNECK.obj ..\..\..\..\..\src\ta_func\ta_CDLONNECK.c + +..\..\..\..\..\temp\cdd\ta_CDLPIERCING.obj: ..\..\..\..\..\src\ta_func\ta_CDLPIERCING.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CDLPIERCING.obj ..\..\..\..\..\src\ta_func\ta_CDLPIERCING.c + +..\..\..\..\..\temp\cdd\ta_CDLRICKSHAWMAN.obj: ..\..\..\..\..\src\ta_func\ta_CDLRICKSHAWMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CDLRICKSHAWMAN.obj ..\..\..\..\..\src\ta_func\ta_CDLRICKSHAWMAN.c + +..\..\..\..\..\temp\cdd\ta_CDLRISEFALL3METHODS.obj: ..\..\..\..\..\src\ta_func\ta_CDLRISEFALL3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CDLRISEFALL3METHODS.obj ..\..\..\..\..\src\ta_func\ta_CDLRISEFALL3METHODS.c + +..\..\..\..\..\temp\cdd\ta_CDLSEPARATINGLINES.obj: ..\..\..\..\..\src\ta_func\ta_CDLSEPARATINGLINES.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CDLSEPARATINGLINES.obj ..\..\..\..\..\src\ta_func\ta_CDLSEPARATINGLINES.c + +..\..\..\..\..\temp\cdd\ta_CDLSHOOTINGSTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLSHOOTINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CDLSHOOTINGSTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLSHOOTINGSTAR.c + +..\..\..\..\..\temp\cdd\ta_CDLSHORTLINE.obj: ..\..\..\..\..\src\ta_func\ta_CDLSHORTLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CDLSHORTLINE.obj ..\..\..\..\..\src\ta_func\ta_CDLSHORTLINE.c + +..\..\..\..\..\temp\cdd\ta_CDLSPINNINGTOP.obj: ..\..\..\..\..\src\ta_func\ta_CDLSPINNINGTOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CDLSPINNINGTOP.obj ..\..\..\..\..\src\ta_func\ta_CDLSPINNINGTOP.c + +..\..\..\..\..\temp\cdd\ta_CDLSTALLEDPATTERN.obj: ..\..\..\..\..\src\ta_func\ta_CDLSTALLEDPATTERN.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CDLSTALLEDPATTERN.obj ..\..\..\..\..\src\ta_func\ta_CDLSTALLEDPATTERN.c + +..\..\..\..\..\temp\cdd\ta_CDLSTICKSANDWICH.obj: ..\..\..\..\..\src\ta_func\ta_CDLSTICKSANDWICH.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CDLSTICKSANDWICH.obj ..\..\..\..\..\src\ta_func\ta_CDLSTICKSANDWICH.c + +..\..\..\..\..\temp\cdd\ta_CDLTAKURI.obj: ..\..\..\..\..\src\ta_func\ta_CDLTAKURI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CDLTAKURI.obj ..\..\..\..\..\src\ta_func\ta_CDLTAKURI.c + +..\..\..\..\..\temp\cdd\ta_CDLTASUKIGAP.obj: ..\..\..\..\..\src\ta_func\ta_CDLTASUKIGAP.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CDLTASUKIGAP.obj ..\..\..\..\..\src\ta_func\ta_CDLTASUKIGAP.c + +..\..\..\..\..\temp\cdd\ta_CDLTHRUSTING.obj: ..\..\..\..\..\src\ta_func\ta_CDLTHRUSTING.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CDLTHRUSTING.obj ..\..\..\..\..\src\ta_func\ta_CDLTHRUSTING.c + +..\..\..\..\..\temp\cdd\ta_CDLTRISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLTRISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CDLTRISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLTRISTAR.c + +..\..\..\..\..\temp\cdd\ta_CDLUNIQUE3RIVER.obj: ..\..\..\..\..\src\ta_func\ta_CDLUNIQUE3RIVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CDLUNIQUE3RIVER.obj ..\..\..\..\..\src\ta_func\ta_CDLUNIQUE3RIVER.c + +..\..\..\..\..\temp\cdd\ta_CDLUPSIDEGAP2CROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDLUPSIDEGAP2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CDLUPSIDEGAP2CROWS.obj ..\..\..\..\..\src\ta_func\ta_CDLUPSIDEGAP2CROWS.c + +..\..\..\..\..\temp\cdd\ta_CDLXSIDEGAP3METHODS.obj: ..\..\..\..\..\src\ta_func\ta_CDLXSIDEGAP3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CDLXSIDEGAP3METHODS.obj ..\..\..\..\..\src\ta_func\ta_CDLXSIDEGAP3METHODS.c + +..\..\..\..\..\temp\cdd\ta_CEIL.obj: ..\..\..\..\..\src\ta_func\ta_CEIL.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CEIL.obj ..\..\..\..\..\src\ta_func\ta_CEIL.c + +..\..\..\..\..\temp\cdd\ta_CMO.obj: ..\..\..\..\..\src\ta_func\ta_CMO.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CMO.obj ..\..\..\..\..\src\ta_func\ta_CMO.c + +..\..\..\..\..\temp\cdd\ta_CORREL.obj: ..\..\..\..\..\src\ta_func\ta_CORREL.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CORREL.obj ..\..\..\..\..\src\ta_func\ta_CORREL.c + +..\..\..\..\..\temp\cdd\ta_COS.obj: ..\..\..\..\..\src\ta_func\ta_COS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_COS.obj ..\..\..\..\..\src\ta_func\ta_COS.c + +..\..\..\..\..\temp\cdd\ta_COSH.obj: ..\..\..\..\..\src\ta_func\ta_COSH.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_COSH.obj ..\..\..\..\..\src\ta_func\ta_COSH.c + +..\..\..\..\..\temp\cdd\ta_DEMA.obj: ..\..\..\..\..\src\ta_func\ta_DEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_DEMA.obj ..\..\..\..\..\src\ta_func\ta_DEMA.c + +..\..\..\..\..\temp\cdd\ta_DIV.obj: ..\..\..\..\..\src\ta_func\ta_DIV.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_DIV.obj ..\..\..\..\..\src\ta_func\ta_DIV.c + +..\..\..\..\..\temp\cdd\ta_DX.obj: ..\..\..\..\..\src\ta_func\ta_DX.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_DX.obj ..\..\..\..\..\src\ta_func\ta_DX.c + +..\..\..\..\..\temp\cdd\ta_EMA.obj: ..\..\..\..\..\src\ta_func\ta_EMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_EMA.obj ..\..\..\..\..\src\ta_func\ta_EMA.c + +..\..\..\..\..\temp\cdd\ta_EXP.obj: ..\..\..\..\..\src\ta_func\ta_EXP.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_EXP.obj ..\..\..\..\..\src\ta_func\ta_EXP.c + +..\..\..\..\..\temp\cdd\ta_FLOOR.obj: ..\..\..\..\..\src\ta_func\ta_FLOOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_FLOOR.obj ..\..\..\..\..\src\ta_func\ta_FLOOR.c + +..\..\..\..\..\temp\cdd\ta_HT_DCPERIOD.obj: ..\..\..\..\..\src\ta_func\ta_HT_DCPERIOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_HT_DCPERIOD.obj ..\..\..\..\..\src\ta_func\ta_HT_DCPERIOD.c + +..\..\..\..\..\temp\cdd\ta_HT_DCPHASE.obj: ..\..\..\..\..\src\ta_func\ta_HT_DCPHASE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_HT_DCPHASE.obj ..\..\..\..\..\src\ta_func\ta_HT_DCPHASE.c + +..\..\..\..\..\temp\cdd\ta_HT_PHASOR.obj: ..\..\..\..\..\src\ta_func\ta_HT_PHASOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_HT_PHASOR.obj ..\..\..\..\..\src\ta_func\ta_HT_PHASOR.c + +..\..\..\..\..\temp\cdd\ta_HT_SINE.obj: ..\..\..\..\..\src\ta_func\ta_HT_SINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_HT_SINE.obj ..\..\..\..\..\src\ta_func\ta_HT_SINE.c + +..\..\..\..\..\temp\cdd\ta_HT_TRENDLINE.obj: ..\..\..\..\..\src\ta_func\ta_HT_TRENDLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_HT_TRENDLINE.obj ..\..\..\..\..\src\ta_func\ta_HT_TRENDLINE.c + +..\..\..\..\..\temp\cdd\ta_HT_TRENDMODE.obj: ..\..\..\..\..\src\ta_func\ta_HT_TRENDMODE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_HT_TRENDMODE.obj ..\..\..\..\..\src\ta_func\ta_HT_TRENDMODE.c + +..\..\..\..\..\temp\cdd\ta_KAMA.obj: ..\..\..\..\..\src\ta_func\ta_KAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_KAMA.obj ..\..\..\..\..\src\ta_func\ta_KAMA.c + +..\..\..\..\..\temp\cdd\ta_LINEARREG.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_LINEARREG.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG.c + +..\..\..\..\..\temp\cdd\ta_LINEARREG_ANGLE.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG_ANGLE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_LINEARREG_ANGLE.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG_ANGLE.c + +..\..\..\..\..\temp\cdd\ta_LINEARREG_INTERCEPT.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG_INTERCEPT.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_LINEARREG_INTERCEPT.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG_INTERCEPT.c + +..\..\..\..\..\temp\cdd\ta_LINEARREG_SLOPE.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG_SLOPE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_LINEARREG_SLOPE.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG_SLOPE.c + +..\..\..\..\..\temp\cdd\ta_LN.obj: ..\..\..\..\..\src\ta_func\ta_LN.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_LN.obj ..\..\..\..\..\src\ta_func\ta_LN.c + +..\..\..\..\..\temp\cdd\ta_LOG10.obj: ..\..\..\..\..\src\ta_func\ta_LOG10.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_LOG10.obj ..\..\..\..\..\src\ta_func\ta_LOG10.c + +..\..\..\..\..\temp\cdd\ta_MA.obj: ..\..\..\..\..\src\ta_func\ta_MA.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_MA.obj ..\..\..\..\..\src\ta_func\ta_MA.c + +..\..\..\..\..\temp\cdd\ta_MACD.obj: ..\..\..\..\..\src\ta_func\ta_MACD.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_MACD.obj ..\..\..\..\..\src\ta_func\ta_MACD.c + +..\..\..\..\..\temp\cdd\ta_MACDEXT.obj: ..\..\..\..\..\src\ta_func\ta_MACDEXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_MACDEXT.obj ..\..\..\..\..\src\ta_func\ta_MACDEXT.c + +..\..\..\..\..\temp\cdd\ta_MACDFIX.obj: ..\..\..\..\..\src\ta_func\ta_MACDFIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_MACDFIX.obj ..\..\..\..\..\src\ta_func\ta_MACDFIX.c + +..\..\..\..\..\temp\cdd\ta_MAMA.obj: ..\..\..\..\..\src\ta_func\ta_MAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_MAMA.obj ..\..\..\..\..\src\ta_func\ta_MAMA.c + +..\..\..\..\..\temp\cdd\ta_MAVP.obj: ..\..\..\..\..\src\ta_func\ta_MAVP.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_MAVP.obj ..\..\..\..\..\src\ta_func\ta_MAVP.c + +..\..\..\..\..\temp\cdd\ta_MAX.obj: ..\..\..\..\..\src\ta_func\ta_MAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_MAX.obj ..\..\..\..\..\src\ta_func\ta_MAX.c + +..\..\..\..\..\temp\cdd\ta_MAXINDEX.obj: ..\..\..\..\..\src\ta_func\ta_MAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_MAXINDEX.obj ..\..\..\..\..\src\ta_func\ta_MAXINDEX.c + +..\..\..\..\..\temp\cdd\ta_MEDPRICE.obj: ..\..\..\..\..\src\ta_func\ta_MEDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_MEDPRICE.obj ..\..\..\..\..\src\ta_func\ta_MEDPRICE.c + +..\..\..\..\..\temp\cdd\ta_MFI.obj: ..\..\..\..\..\src\ta_func\ta_MFI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_MFI.obj ..\..\..\..\..\src\ta_func\ta_MFI.c + +..\..\..\..\..\temp\cdd\ta_MIDPOINT.obj: ..\..\..\..\..\src\ta_func\ta_MIDPOINT.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_MIDPOINT.obj ..\..\..\..\..\src\ta_func\ta_MIDPOINT.c + +..\..\..\..\..\temp\cdd\ta_MIDPRICE.obj: ..\..\..\..\..\src\ta_func\ta_MIDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_MIDPRICE.obj ..\..\..\..\..\src\ta_func\ta_MIDPRICE.c + +..\..\..\..\..\temp\cdd\ta_MIN.obj: ..\..\..\..\..\src\ta_func\ta_MIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_MIN.obj ..\..\..\..\..\src\ta_func\ta_MIN.c + +..\..\..\..\..\temp\cdd\ta_MININDEX.obj: ..\..\..\..\..\src\ta_func\ta_MININDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_MININDEX.obj ..\..\..\..\..\src\ta_func\ta_MININDEX.c + +..\..\..\..\..\temp\cdd\ta_MINMAX.obj: ..\..\..\..\..\src\ta_func\ta_MINMAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_MINMAX.obj ..\..\..\..\..\src\ta_func\ta_MINMAX.c + +..\..\..\..\..\temp\cdd\ta_MINMAXINDEX.obj: ..\..\..\..\..\src\ta_func\ta_MINMAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_MINMAXINDEX.obj ..\..\..\..\..\src\ta_func\ta_MINMAXINDEX.c + +..\..\..\..\..\temp\cdd\ta_MINUS_DI.obj: ..\..\..\..\..\src\ta_func\ta_MINUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_MINUS_DI.obj ..\..\..\..\..\src\ta_func\ta_MINUS_DI.c + +..\..\..\..\..\temp\cdd\ta_MINUS_DM.obj: ..\..\..\..\..\src\ta_func\ta_MINUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_MINUS_DM.obj ..\..\..\..\..\src\ta_func\ta_MINUS_DM.c + +..\..\..\..\..\temp\cdd\ta_MOM.obj: ..\..\..\..\..\src\ta_func\ta_MOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_MOM.obj ..\..\..\..\..\src\ta_func\ta_MOM.c + +..\..\..\..\..\temp\cdd\ta_MULT.obj: ..\..\..\..\..\src\ta_func\ta_MULT.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_MULT.obj ..\..\..\..\..\src\ta_func\ta_MULT.c + +..\..\..\..\..\temp\cdd\ta_NATR.obj: ..\..\..\..\..\src\ta_func\ta_NATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_NATR.obj ..\..\..\..\..\src\ta_func\ta_NATR.c + +..\..\..\..\..\temp\cdd\ta_OBV.obj: ..\..\..\..\..\src\ta_func\ta_OBV.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_OBV.obj ..\..\..\..\..\src\ta_func\ta_OBV.c + +..\..\..\..\..\temp\cdd\ta_PLUS_DI.obj: ..\..\..\..\..\src\ta_func\ta_PLUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_PLUS_DI.obj ..\..\..\..\..\src\ta_func\ta_PLUS_DI.c + +..\..\..\..\..\temp\cdd\ta_PLUS_DM.obj: ..\..\..\..\..\src\ta_func\ta_PLUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_PLUS_DM.obj ..\..\..\..\..\src\ta_func\ta_PLUS_DM.c + +..\..\..\..\..\temp\cdd\ta_PPO.obj: ..\..\..\..\..\src\ta_func\ta_PPO.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_PPO.obj ..\..\..\..\..\src\ta_func\ta_PPO.c + +..\..\..\..\..\temp\cdd\ta_ROC.obj: ..\..\..\..\..\src\ta_func\ta_ROC.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_ROC.obj ..\..\..\..\..\src\ta_func\ta_ROC.c + +..\..\..\..\..\temp\cdd\ta_ROCP.obj: ..\..\..\..\..\src\ta_func\ta_ROCP.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_ROCP.obj ..\..\..\..\..\src\ta_func\ta_ROCP.c + +..\..\..\..\..\temp\cdd\ta_ROCR.obj: ..\..\..\..\..\src\ta_func\ta_ROCR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_ROCR.obj ..\..\..\..\..\src\ta_func\ta_ROCR.c + +..\..\..\..\..\temp\cdd\ta_ROCR100.obj: ..\..\..\..\..\src\ta_func\ta_ROCR100.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_ROCR100.obj ..\..\..\..\..\src\ta_func\ta_ROCR100.c + +..\..\..\..\..\temp\cdd\ta_RSI.obj: ..\..\..\..\..\src\ta_func\ta_RSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_RSI.obj ..\..\..\..\..\src\ta_func\ta_RSI.c + +..\..\..\..\..\temp\cdd\ta_SAR.obj: ..\..\..\..\..\src\ta_func\ta_SAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_SAR.obj ..\..\..\..\..\src\ta_func\ta_SAR.c + +..\..\..\..\..\temp\cdd\ta_SAREXT.obj: ..\..\..\..\..\src\ta_func\ta_SAREXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_SAREXT.obj ..\..\..\..\..\src\ta_func\ta_SAREXT.c + +..\..\..\..\..\temp\cdd\ta_SIN.obj: ..\..\..\..\..\src\ta_func\ta_SIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_SIN.obj ..\..\..\..\..\src\ta_func\ta_SIN.c + +..\..\..\..\..\temp\cdd\ta_SINH.obj: ..\..\..\..\..\src\ta_func\ta_SINH.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_SINH.obj ..\..\..\..\..\src\ta_func\ta_SINH.c + +..\..\..\..\..\temp\cdd\ta_SMA.obj: ..\..\..\..\..\src\ta_func\ta_SMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_SMA.obj ..\..\..\..\..\src\ta_func\ta_SMA.c + +..\..\..\..\..\temp\cdd\ta_SQRT.obj: ..\..\..\..\..\src\ta_func\ta_SQRT.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_SQRT.obj ..\..\..\..\..\src\ta_func\ta_SQRT.c + +..\..\..\..\..\temp\cdd\ta_STDDEV.obj: ..\..\..\..\..\src\ta_func\ta_STDDEV.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_STDDEV.obj ..\..\..\..\..\src\ta_func\ta_STDDEV.c + +..\..\..\..\..\temp\cdd\ta_STOCH.obj: ..\..\..\..\..\src\ta_func\ta_STOCH.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_STOCH.obj ..\..\..\..\..\src\ta_func\ta_STOCH.c + +..\..\..\..\..\temp\cdd\ta_STOCHF.obj: ..\..\..\..\..\src\ta_func\ta_STOCHF.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_STOCHF.obj ..\..\..\..\..\src\ta_func\ta_STOCHF.c + +..\..\..\..\..\temp\cdd\ta_STOCHRSI.obj: ..\..\..\..\..\src\ta_func\ta_STOCHRSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_STOCHRSI.obj ..\..\..\..\..\src\ta_func\ta_STOCHRSI.c + +..\..\..\..\..\temp\cdd\ta_SUB.obj: ..\..\..\..\..\src\ta_func\ta_SUB.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_SUB.obj ..\..\..\..\..\src\ta_func\ta_SUB.c + +..\..\..\..\..\temp\cdd\ta_SUM.obj: ..\..\..\..\..\src\ta_func\ta_SUM.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_SUM.obj ..\..\..\..\..\src\ta_func\ta_SUM.c + +..\..\..\..\..\temp\cdd\ta_T3.obj: ..\..\..\..\..\src\ta_func\ta_T3.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_T3.obj ..\..\..\..\..\src\ta_func\ta_T3.c + +..\..\..\..\..\temp\cdd\ta_TAN.obj: ..\..\..\..\..\src\ta_func\ta_TAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_TAN.obj ..\..\..\..\..\src\ta_func\ta_TAN.c + +..\..\..\..\..\temp\cdd\ta_TANH.obj: ..\..\..\..\..\src\ta_func\ta_TANH.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_TANH.obj ..\..\..\..\..\src\ta_func\ta_TANH.c + +..\..\..\..\..\temp\cdd\ta_TEMA.obj: ..\..\..\..\..\src\ta_func\ta_TEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_TEMA.obj ..\..\..\..\..\src\ta_func\ta_TEMA.c + +..\..\..\..\..\temp\cdd\ta_TRANGE.obj: ..\..\..\..\..\src\ta_func\ta_TRANGE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_TRANGE.obj ..\..\..\..\..\src\ta_func\ta_TRANGE.c + +..\..\..\..\..\temp\cdd\ta_TRIMA.obj: ..\..\..\..\..\src\ta_func\ta_TRIMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_TRIMA.obj ..\..\..\..\..\src\ta_func\ta_TRIMA.c + +..\..\..\..\..\temp\cdd\ta_TRIX.obj: ..\..\..\..\..\src\ta_func\ta_TRIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_TRIX.obj ..\..\..\..\..\src\ta_func\ta_TRIX.c + +..\..\..\..\..\temp\cdd\ta_TSF.obj: ..\..\..\..\..\src\ta_func\ta_TSF.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_TSF.obj ..\..\..\..\..\src\ta_func\ta_TSF.c + +..\..\..\..\..\temp\cdd\ta_TYPPRICE.obj: ..\..\..\..\..\src\ta_func\ta_TYPPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_TYPPRICE.obj ..\..\..\..\..\src\ta_func\ta_TYPPRICE.c + +..\..\..\..\..\temp\cdd\ta_ULTOSC.obj: ..\..\..\..\..\src\ta_func\ta_ULTOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_ULTOSC.obj ..\..\..\..\..\src\ta_func\ta_ULTOSC.c + +..\..\..\..\..\temp\cdd\ta_VAR.obj: ..\..\..\..\..\src\ta_func\ta_VAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_VAR.obj ..\..\..\..\..\src\ta_func\ta_VAR.c + +..\..\..\..\..\temp\cdd\ta_WCLPRICE.obj: ..\..\..\..\..\src\ta_func\ta_WCLPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_WCLPRICE.obj ..\..\..\..\..\src\ta_func\ta_WCLPRICE.c + +..\..\..\..\..\temp\cdd\ta_WILLR.obj: ..\..\..\..\..\src\ta_func\ta_WILLR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_WILLR.obj ..\..\..\..\..\src\ta_func\ta_WILLR.c + +..\..\..\..\..\temp\cdd\ta_WMA.obj: ..\..\..\..\..\src\ta_func\ta_WMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_WMA.obj ..\..\..\..\..\src\ta_func\ta_WMA.c + diff --git a/make/cdd/win32/msvc/ta_libc/Makefile b/make/cdd/win32/msvc/ta_libc/Makefile new file mode 100644 index 000000000..606be2dcd --- /dev/null +++ b/make/cdd/win32/msvc/ta_libc/Makefile @@ -0,0 +1,1240 @@ +############################################################################# +# Makefile for building ta_libc_cdd +# Generated by tmake; +# Project: ta_libc/ta_libc +# Template: lib +############################################################################# + +####### Compiler, tools and options + +CC = cl +CXX = cl +CFLAGS = -nologo -W3 -MDd -Zi -DTA_DEBUG -D_DEBUG -DWIN32 -D_MBCS -D_LIB -DQT_THREAD_SUPPORT +CXXFLAGS= -nologo -W3 -MDd -Zi -DTA_DEBUG -D_DEBUG -DWIN32 -D_MBCS -D_LIB -DQT_THREAD_SUPPORT +INCPATH = -I"..\..\..\..\..\src\ta_common" -I"..\..\..\..\..\include" -I"..\..\..\..\..\src\ta_abstract" -I"..\..\..\..\..\src\ta_abstract\tables" -I"..\..\..\..\..\src\ta_abstract\frames" -I"$(QTDIR)\include" +LIB = lib /NOLOGO +MOC = moc +UIC = uic + +ZIP = zip -r -9 + +####### Files + +HEADERS = +SOURCES = ..\..\..\..\..\src\ta_common\ta_global.c \ + ..\..\..\..\..\src\ta_common\ta_retcode.c \ + ..\..\..\..\..\src\ta_common\ta_version.c \ + ..\..\..\..\..\src\ta_abstract\ta_abstract.c \ + ..\..\..\..\..\src\ta_abstract\ta_def_ui.c \ + ..\..\..\..\..\src\ta_abstract\ta_func_api.c \ + ..\..\..\..\..\src\ta_abstract\ta_group_idx.c \ + ..\..\..\..\..\src\ta_abstract\frames\ta_frame.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_a.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_b.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_c.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_d.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_e.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_f.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_g.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_h.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_i.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_j.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_k.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_l.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_m.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_n.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_o.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_p.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_q.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_r.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_s.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_t.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_u.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_v.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_w.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_x.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_y.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_z.c \ + ..\..\..\..\..\src\ta_func\ta_utility.c \ + ..\..\..\..\..\src\ta_func\ta_ACOS.c \ + ..\..\..\..\..\src\ta_func\ta_AD.c \ + ..\..\..\..\..\src\ta_func\ta_ADD.c \ + ..\..\..\..\..\src\ta_func\ta_ADOSC.c \ + ..\..\..\..\..\src\ta_func\ta_ADX.c \ + ..\..\..\..\..\src\ta_func\ta_ADXR.c \ + ..\..\..\..\..\src\ta_func\ta_APO.c \ + ..\..\..\..\..\src\ta_func\ta_AROON.c \ + ..\..\..\..\..\src\ta_func\ta_AROONOSC.c \ + ..\..\..\..\..\src\ta_func\ta_ASIN.c \ + ..\..\..\..\..\src\ta_func\ta_ATAN.c \ + ..\..\..\..\..\src\ta_func\ta_ATR.c \ + ..\..\..\..\..\src\ta_func\ta_AVGPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_BBANDS.c \ + ..\..\..\..\..\src\ta_func\ta_BETA.c \ + ..\..\..\..\..\src\ta_func\ta_BOP.c \ + ..\..\..\..\..\src\ta_func\ta_CCI.c \ + ..\..\..\..\..\src\ta_func\ta_CDL2CROWS.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3BLACKCROWS.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3INSIDE.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3LINESTRIKE.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3OUTSIDE.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3STARSINSOUTH.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3WHITESOLDIERS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLABANDONEDBABY.c \ + ..\..\..\..\..\src\ta_func\ta_CDLADVANCEBLOCK.c \ + ..\..\..\..\..\src\ta_func\ta_CDLBELTHOLD.c \ + ..\..\..\..\..\src\ta_func\ta_CDLBREAKAWAY.c \ + ..\..\..\..\..\src\ta_func\ta_CDLCLOSINGMARUBOZU.c \ + ..\..\..\..\..\src\ta_func\ta_CDLCONCEALBABYSWALL.c \ + ..\..\..\..\..\src\ta_func\ta_CDLCOUNTERATTACK.c \ + ..\..\..\..\..\src\ta_func\ta_CDLDARKCLOUDCOVER.c \ + ..\..\..\..\..\src\ta_func\ta_CDLDOJI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLDOJISTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLDRAGONFLYDOJI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLENGULFING.c \ + ..\..\..\..\..\src\ta_func\ta_CDLEVENINGDOJISTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLEVENINGSTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLGAPSIDESIDEWHITE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLGRAVESTONEDOJI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHAMMER.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHANGINGMAN.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHARAMI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHARAMICROSS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHIGHWAVE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKEMOD.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHOMINGPIGEON.c \ + ..\..\..\..\..\src\ta_func\ta_CDLIDENTICAL3CROWS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLINNECK.c \ + ..\..\..\..\..\src\ta_func\ta_CDLINVERTEDHAMMER.c \ + ..\..\..\..\..\src\ta_func\ta_CDLKICKING.c \ + ..\..\..\..\..\src\ta_func\ta_CDLKICKINGBYLENGTH.c \ + ..\..\..\..\..\src\ta_func\ta_CDLLADDERBOTTOM.c \ + ..\..\..\..\..\src\ta_func\ta_CDLLONGLEGGEDDOJI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLLONGLINE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMARUBOZU.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMATCHINGLOW.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMATHOLD.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMORNINGDOJISTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMORNINGSTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLONNECK.c \ + ..\..\..\..\..\src\ta_func\ta_CDLPIERCING.c \ + ..\..\..\..\..\src\ta_func\ta_CDLRICKSHAWMAN.c \ + ..\..\..\..\..\src\ta_func\ta_CDLRISEFALL3METHODS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSEPARATINGLINES.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSHOOTINGSTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSHORTLINE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSPINNINGTOP.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSTALLEDPATTERN.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSTICKSANDWICH.c \ + ..\..\..\..\..\src\ta_func\ta_CDLTAKURI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLTASUKIGAP.c \ + ..\..\..\..\..\src\ta_func\ta_CDLTHRUSTING.c \ + ..\..\..\..\..\src\ta_func\ta_CDLTRISTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLUNIQUE3RIVER.c \ + ..\..\..\..\..\src\ta_func\ta_CDLUPSIDEGAP2CROWS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLXSIDEGAP3METHODS.c \ + ..\..\..\..\..\src\ta_func\ta_CEIL.c \ + ..\..\..\..\..\src\ta_func\ta_CMO.c \ + ..\..\..\..\..\src\ta_func\ta_CORREL.c \ + ..\..\..\..\..\src\ta_func\ta_COS.c \ + ..\..\..\..\..\src\ta_func\ta_COSH.c \ + ..\..\..\..\..\src\ta_func\ta_DEMA.c \ + ..\..\..\..\..\src\ta_func\ta_DIV.c \ + ..\..\..\..\..\src\ta_func\ta_DX.c \ + ..\..\..\..\..\src\ta_func\ta_EMA.c \ + ..\..\..\..\..\src\ta_func\ta_EXP.c \ + ..\..\..\..\..\src\ta_func\ta_FLOOR.c \ + ..\..\..\..\..\src\ta_func\ta_HT_DCPERIOD.c \ + ..\..\..\..\..\src\ta_func\ta_HT_DCPHASE.c \ + ..\..\..\..\..\src\ta_func\ta_HT_PHASOR.c \ + ..\..\..\..\..\src\ta_func\ta_HT_SINE.c \ + ..\..\..\..\..\src\ta_func\ta_HT_TRENDLINE.c \ + ..\..\..\..\..\src\ta_func\ta_HT_TRENDMODE.c \ + ..\..\..\..\..\src\ta_func\ta_KAMA.c \ + ..\..\..\..\..\src\ta_func\ta_LINEARREG.c \ + ..\..\..\..\..\src\ta_func\ta_LINEARREG_ANGLE.c \ + ..\..\..\..\..\src\ta_func\ta_LINEARREG_INTERCEPT.c \ + ..\..\..\..\..\src\ta_func\ta_LINEARREG_SLOPE.c \ + ..\..\..\..\..\src\ta_func\ta_LN.c \ + ..\..\..\..\..\src\ta_func\ta_LOG10.c \ + ..\..\..\..\..\src\ta_func\ta_MA.c \ + ..\..\..\..\..\src\ta_func\ta_MACD.c \ + ..\..\..\..\..\src\ta_func\ta_MACDEXT.c \ + ..\..\..\..\..\src\ta_func\ta_MACDFIX.c \ + ..\..\..\..\..\src\ta_func\ta_MAMA.c \ + ..\..\..\..\..\src\ta_func\ta_MAVP.c \ + ..\..\..\..\..\src\ta_func\ta_MAX.c \ + ..\..\..\..\..\src\ta_func\ta_MAXINDEX.c \ + ..\..\..\..\..\src\ta_func\ta_MEDPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_MFI.c \ + ..\..\..\..\..\src\ta_func\ta_MIDPOINT.c \ + ..\..\..\..\..\src\ta_func\ta_MIDPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_MIN.c \ + ..\..\..\..\..\src\ta_func\ta_MININDEX.c \ + ..\..\..\..\..\src\ta_func\ta_MINMAX.c \ + ..\..\..\..\..\src\ta_func\ta_MINMAXINDEX.c \ + ..\..\..\..\..\src\ta_func\ta_MINUS_DI.c \ + ..\..\..\..\..\src\ta_func\ta_MINUS_DM.c \ + ..\..\..\..\..\src\ta_func\ta_MOM.c \ + ..\..\..\..\..\src\ta_func\ta_MULT.c \ + ..\..\..\..\..\src\ta_func\ta_NATR.c \ + ..\..\..\..\..\src\ta_func\ta_OBV.c \ + ..\..\..\..\..\src\ta_func\ta_PLUS_DI.c \ + ..\..\..\..\..\src\ta_func\ta_PLUS_DM.c \ + ..\..\..\..\..\src\ta_func\ta_PPO.c \ + ..\..\..\..\..\src\ta_func\ta_ROC.c \ + ..\..\..\..\..\src\ta_func\ta_ROCP.c \ + ..\..\..\..\..\src\ta_func\ta_ROCR.c \ + ..\..\..\..\..\src\ta_func\ta_ROCR100.c \ + ..\..\..\..\..\src\ta_func\ta_RSI.c \ + ..\..\..\..\..\src\ta_func\ta_SAR.c \ + ..\..\..\..\..\src\ta_func\ta_SAREXT.c \ + ..\..\..\..\..\src\ta_func\ta_SIN.c \ + ..\..\..\..\..\src\ta_func\ta_SINH.c \ + ..\..\..\..\..\src\ta_func\ta_SMA.c \ + ..\..\..\..\..\src\ta_func\ta_SQRT.c \ + ..\..\..\..\..\src\ta_func\ta_STDDEV.c \ + ..\..\..\..\..\src\ta_func\ta_STOCH.c \ + ..\..\..\..\..\src\ta_func\ta_STOCHF.c \ + ..\..\..\..\..\src\ta_func\ta_STOCHRSI.c \ + ..\..\..\..\..\src\ta_func\ta_SUB.c \ + ..\..\..\..\..\src\ta_func\ta_SUM.c \ + ..\..\..\..\..\src\ta_func\ta_T3.c \ + ..\..\..\..\..\src\ta_func\ta_TAN.c \ + ..\..\..\..\..\src\ta_func\ta_TANH.c \ + ..\..\..\..\..\src\ta_func\ta_TEMA.c \ + ..\..\..\..\..\src\ta_func\ta_TRANGE.c \ + ..\..\..\..\..\src\ta_func\ta_TRIMA.c \ + ..\..\..\..\..\src\ta_func\ta_TRIX.c \ + ..\..\..\..\..\src\ta_func\ta_TSF.c \ + ..\..\..\..\..\src\ta_func\ta_TYPPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_ULTOSC.c \ + ..\..\..\..\..\src\ta_func\ta_VAR.c \ + ..\..\..\..\..\src\ta_func\ta_WCLPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_WILLR.c \ + ..\..\..\..\..\src\ta_func\ta_WMA.c +OBJECTS = ..\..\..\..\..\temp\cdd\ta_global.obj \ + ..\..\..\..\..\temp\cdd\ta_retcode.obj \ + ..\..\..\..\..\temp\cdd\ta_version.obj \ + ..\..\..\..\..\temp\cdd\ta_abstract.obj \ + ..\..\..\..\..\temp\cdd\ta_def_ui.obj \ + ..\..\..\..\..\temp\cdd\ta_func_api.obj \ + ..\..\..\..\..\temp\cdd\ta_group_idx.obj \ + ..\..\..\..\..\temp\cdd\ta_frame.obj \ + ..\..\..\..\..\temp\cdd\table_a.obj \ + ..\..\..\..\..\temp\cdd\table_b.obj \ + ..\..\..\..\..\temp\cdd\table_c.obj \ + ..\..\..\..\..\temp\cdd\table_d.obj \ + ..\..\..\..\..\temp\cdd\table_e.obj \ + ..\..\..\..\..\temp\cdd\table_f.obj \ + ..\..\..\..\..\temp\cdd\table_g.obj \ + ..\..\..\..\..\temp\cdd\table_h.obj \ + ..\..\..\..\..\temp\cdd\table_i.obj \ + ..\..\..\..\..\temp\cdd\table_j.obj \ + ..\..\..\..\..\temp\cdd\table_k.obj \ + ..\..\..\..\..\temp\cdd\table_l.obj \ + ..\..\..\..\..\temp\cdd\table_m.obj \ + ..\..\..\..\..\temp\cdd\table_n.obj \ + ..\..\..\..\..\temp\cdd\table_o.obj \ + ..\..\..\..\..\temp\cdd\table_p.obj \ + ..\..\..\..\..\temp\cdd\table_q.obj \ + ..\..\..\..\..\temp\cdd\table_r.obj \ + ..\..\..\..\..\temp\cdd\table_s.obj \ + ..\..\..\..\..\temp\cdd\table_t.obj \ + ..\..\..\..\..\temp\cdd\table_u.obj \ + ..\..\..\..\..\temp\cdd\table_v.obj \ + ..\..\..\..\..\temp\cdd\table_w.obj \ + ..\..\..\..\..\temp\cdd\table_x.obj \ + ..\..\..\..\..\temp\cdd\table_y.obj \ + ..\..\..\..\..\temp\cdd\table_z.obj \ + ..\..\..\..\..\temp\cdd\ta_utility.obj \ + ..\..\..\..\..\temp\cdd\ta_ACOS.obj \ + ..\..\..\..\..\temp\cdd\ta_AD.obj \ + ..\..\..\..\..\temp\cdd\ta_ADD.obj \ + ..\..\..\..\..\temp\cdd\ta_ADOSC.obj \ + ..\..\..\..\..\temp\cdd\ta_ADX.obj \ + ..\..\..\..\..\temp\cdd\ta_ADXR.obj \ + ..\..\..\..\..\temp\cdd\ta_APO.obj \ + ..\..\..\..\..\temp\cdd\ta_AROON.obj \ + ..\..\..\..\..\temp\cdd\ta_AROONOSC.obj \ + ..\..\..\..\..\temp\cdd\ta_ASIN.obj \ + ..\..\..\..\..\temp\cdd\ta_ATAN.obj \ + ..\..\..\..\..\temp\cdd\ta_ATR.obj \ + ..\..\..\..\..\temp\cdd\ta_AVGPRICE.obj \ + ..\..\..\..\..\temp\cdd\ta_BBANDS.obj \ + ..\..\..\..\..\temp\cdd\ta_BETA.obj \ + ..\..\..\..\..\temp\cdd\ta_BOP.obj \ + ..\..\..\..\..\temp\cdd\ta_CCI.obj \ + ..\..\..\..\..\temp\cdd\ta_CDL2CROWS.obj \ + ..\..\..\..\..\temp\cdd\ta_CDL3BLACKCROWS.obj \ + ..\..\..\..\..\temp\cdd\ta_CDL3INSIDE.obj \ + ..\..\..\..\..\temp\cdd\ta_CDL3LINESTRIKE.obj \ + ..\..\..\..\..\temp\cdd\ta_CDL3OUTSIDE.obj \ + ..\..\..\..\..\temp\cdd\ta_CDL3STARSINSOUTH.obj \ + ..\..\..\..\..\temp\cdd\ta_CDL3WHITESOLDIERS.obj \ + ..\..\..\..\..\temp\cdd\ta_CDLABANDONEDBABY.obj \ + ..\..\..\..\..\temp\cdd\ta_CDLADVANCEBLOCK.obj \ + ..\..\..\..\..\temp\cdd\ta_CDLBELTHOLD.obj \ + ..\..\..\..\..\temp\cdd\ta_CDLBREAKAWAY.obj \ + ..\..\..\..\..\temp\cdd\ta_CDLCLOSINGMARUBOZU.obj \ + ..\..\..\..\..\temp\cdd\ta_CDLCONCEALBABYSWALL.obj \ + ..\..\..\..\..\temp\cdd\ta_CDLCOUNTERATTACK.obj \ + ..\..\..\..\..\temp\cdd\ta_CDLDARKCLOUDCOVER.obj \ + ..\..\..\..\..\temp\cdd\ta_CDLDOJI.obj \ + ..\..\..\..\..\temp\cdd\ta_CDLDOJISTAR.obj \ + ..\..\..\..\..\temp\cdd\ta_CDLDRAGONFLYDOJI.obj \ + ..\..\..\..\..\temp\cdd\ta_CDLENGULFING.obj \ + ..\..\..\..\..\temp\cdd\ta_CDLEVENINGDOJISTAR.obj \ + ..\..\..\..\..\temp\cdd\ta_CDLEVENINGSTAR.obj \ + ..\..\..\..\..\temp\cdd\ta_CDLGAPSIDESIDEWHITE.obj \ + ..\..\..\..\..\temp\cdd\ta_CDLGRAVESTONEDOJI.obj \ + ..\..\..\..\..\temp\cdd\ta_CDLHAMMER.obj \ + ..\..\..\..\..\temp\cdd\ta_CDLHANGINGMAN.obj \ + ..\..\..\..\..\temp\cdd\ta_CDLHARAMI.obj \ + ..\..\..\..\..\temp\cdd\ta_CDLHARAMICROSS.obj \ + ..\..\..\..\..\temp\cdd\ta_CDLHIGHWAVE.obj \ + ..\..\..\..\..\temp\cdd\ta_CDLHIKKAKE.obj \ + ..\..\..\..\..\temp\cdd\ta_CDLHIKKAKEMOD.obj \ + ..\..\..\..\..\temp\cdd\ta_CDLHOMINGPIGEON.obj \ + ..\..\..\..\..\temp\cdd\ta_CDLIDENTICAL3CROWS.obj \ + ..\..\..\..\..\temp\cdd\ta_CDLINNECK.obj \ + ..\..\..\..\..\temp\cdd\ta_CDLINVERTEDHAMMER.obj \ + ..\..\..\..\..\temp\cdd\ta_CDLKICKING.obj \ + ..\..\..\..\..\temp\cdd\ta_CDLKICKINGBYLENGTH.obj \ + ..\..\..\..\..\temp\cdd\ta_CDLLADDERBOTTOM.obj \ + ..\..\..\..\..\temp\cdd\ta_CDLLONGLEGGEDDOJI.obj \ + ..\..\..\..\..\temp\cdd\ta_CDLLONGLINE.obj \ + ..\..\..\..\..\temp\cdd\ta_CDLMARUBOZU.obj \ + ..\..\..\..\..\temp\cdd\ta_CDLMATCHINGLOW.obj \ + ..\..\..\..\..\temp\cdd\ta_CDLMATHOLD.obj \ + ..\..\..\..\..\temp\cdd\ta_CDLMORNINGDOJISTAR.obj \ + ..\..\..\..\..\temp\cdd\ta_CDLMORNINGSTAR.obj \ + ..\..\..\..\..\temp\cdd\ta_CDLONNECK.obj \ + ..\..\..\..\..\temp\cdd\ta_CDLPIERCING.obj \ + ..\..\..\..\..\temp\cdd\ta_CDLRICKSHAWMAN.obj \ + ..\..\..\..\..\temp\cdd\ta_CDLRISEFALL3METHODS.obj \ + ..\..\..\..\..\temp\cdd\ta_CDLSEPARATINGLINES.obj \ + ..\..\..\..\..\temp\cdd\ta_CDLSHOOTINGSTAR.obj \ + ..\..\..\..\..\temp\cdd\ta_CDLSHORTLINE.obj \ + ..\..\..\..\..\temp\cdd\ta_CDLSPINNINGTOP.obj \ + ..\..\..\..\..\temp\cdd\ta_CDLSTALLEDPATTERN.obj \ + ..\..\..\..\..\temp\cdd\ta_CDLSTICKSANDWICH.obj \ + ..\..\..\..\..\temp\cdd\ta_CDLTAKURI.obj \ + ..\..\..\..\..\temp\cdd\ta_CDLTASUKIGAP.obj \ + ..\..\..\..\..\temp\cdd\ta_CDLTHRUSTING.obj \ + ..\..\..\..\..\temp\cdd\ta_CDLTRISTAR.obj \ + ..\..\..\..\..\temp\cdd\ta_CDLUNIQUE3RIVER.obj \ + ..\..\..\..\..\temp\cdd\ta_CDLUPSIDEGAP2CROWS.obj \ + ..\..\..\..\..\temp\cdd\ta_CDLXSIDEGAP3METHODS.obj \ + ..\..\..\..\..\temp\cdd\ta_CEIL.obj \ + ..\..\..\..\..\temp\cdd\ta_CMO.obj \ + ..\..\..\..\..\temp\cdd\ta_CORREL.obj \ + ..\..\..\..\..\temp\cdd\ta_COS.obj \ + ..\..\..\..\..\temp\cdd\ta_COSH.obj \ + ..\..\..\..\..\temp\cdd\ta_DEMA.obj \ + ..\..\..\..\..\temp\cdd\ta_DIV.obj \ + ..\..\..\..\..\temp\cdd\ta_DX.obj \ + ..\..\..\..\..\temp\cdd\ta_EMA.obj \ + ..\..\..\..\..\temp\cdd\ta_EXP.obj \ + ..\..\..\..\..\temp\cdd\ta_FLOOR.obj \ + ..\..\..\..\..\temp\cdd\ta_HT_DCPERIOD.obj \ + ..\..\..\..\..\temp\cdd\ta_HT_DCPHASE.obj \ + ..\..\..\..\..\temp\cdd\ta_HT_PHASOR.obj \ + ..\..\..\..\..\temp\cdd\ta_HT_SINE.obj \ + ..\..\..\..\..\temp\cdd\ta_HT_TRENDLINE.obj \ + ..\..\..\..\..\temp\cdd\ta_HT_TRENDMODE.obj \ + ..\..\..\..\..\temp\cdd\ta_KAMA.obj \ + ..\..\..\..\..\temp\cdd\ta_LINEARREG.obj \ + ..\..\..\..\..\temp\cdd\ta_LINEARREG_ANGLE.obj \ + ..\..\..\..\..\temp\cdd\ta_LINEARREG_INTERCEPT.obj \ + ..\..\..\..\..\temp\cdd\ta_LINEARREG_SLOPE.obj \ + ..\..\..\..\..\temp\cdd\ta_LN.obj \ + ..\..\..\..\..\temp\cdd\ta_LOG10.obj \ + ..\..\..\..\..\temp\cdd\ta_MA.obj \ + ..\..\..\..\..\temp\cdd\ta_MACD.obj \ + ..\..\..\..\..\temp\cdd\ta_MACDEXT.obj \ + ..\..\..\..\..\temp\cdd\ta_MACDFIX.obj \ + ..\..\..\..\..\temp\cdd\ta_MAMA.obj \ + ..\..\..\..\..\temp\cdd\ta_MAVP.obj \ + ..\..\..\..\..\temp\cdd\ta_MAX.obj \ + ..\..\..\..\..\temp\cdd\ta_MAXINDEX.obj \ + ..\..\..\..\..\temp\cdd\ta_MEDPRICE.obj \ + ..\..\..\..\..\temp\cdd\ta_MFI.obj \ + ..\..\..\..\..\temp\cdd\ta_MIDPOINT.obj \ + ..\..\..\..\..\temp\cdd\ta_MIDPRICE.obj \ + ..\..\..\..\..\temp\cdd\ta_MIN.obj \ + ..\..\..\..\..\temp\cdd\ta_MININDEX.obj \ + ..\..\..\..\..\temp\cdd\ta_MINMAX.obj \ + ..\..\..\..\..\temp\cdd\ta_MINMAXINDEX.obj \ + ..\..\..\..\..\temp\cdd\ta_MINUS_DI.obj \ + ..\..\..\..\..\temp\cdd\ta_MINUS_DM.obj \ + ..\..\..\..\..\temp\cdd\ta_MOM.obj \ + ..\..\..\..\..\temp\cdd\ta_MULT.obj \ + ..\..\..\..\..\temp\cdd\ta_NATR.obj \ + ..\..\..\..\..\temp\cdd\ta_OBV.obj \ + ..\..\..\..\..\temp\cdd\ta_PLUS_DI.obj \ + ..\..\..\..\..\temp\cdd\ta_PLUS_DM.obj \ + ..\..\..\..\..\temp\cdd\ta_PPO.obj \ + ..\..\..\..\..\temp\cdd\ta_ROC.obj \ + ..\..\..\..\..\temp\cdd\ta_ROCP.obj \ + ..\..\..\..\..\temp\cdd\ta_ROCR.obj \ + ..\..\..\..\..\temp\cdd\ta_ROCR100.obj \ + ..\..\..\..\..\temp\cdd\ta_RSI.obj \ + ..\..\..\..\..\temp\cdd\ta_SAR.obj \ + ..\..\..\..\..\temp\cdd\ta_SAREXT.obj \ + ..\..\..\..\..\temp\cdd\ta_SIN.obj \ + ..\..\..\..\..\temp\cdd\ta_SINH.obj \ + ..\..\..\..\..\temp\cdd\ta_SMA.obj \ + ..\..\..\..\..\temp\cdd\ta_SQRT.obj \ + ..\..\..\..\..\temp\cdd\ta_STDDEV.obj \ + ..\..\..\..\..\temp\cdd\ta_STOCH.obj \ + ..\..\..\..\..\temp\cdd\ta_STOCHF.obj \ + ..\..\..\..\..\temp\cdd\ta_STOCHRSI.obj \ + ..\..\..\..\..\temp\cdd\ta_SUB.obj \ + ..\..\..\..\..\temp\cdd\ta_SUM.obj \ + ..\..\..\..\..\temp\cdd\ta_T3.obj \ + ..\..\..\..\..\temp\cdd\ta_TAN.obj \ + ..\..\..\..\..\temp\cdd\ta_TANH.obj \ + ..\..\..\..\..\temp\cdd\ta_TEMA.obj \ + ..\..\..\..\..\temp\cdd\ta_TRANGE.obj \ + ..\..\..\..\..\temp\cdd\ta_TRIMA.obj \ + ..\..\..\..\..\temp\cdd\ta_TRIX.obj \ + ..\..\..\..\..\temp\cdd\ta_TSF.obj \ + ..\..\..\..\..\temp\cdd\ta_TYPPRICE.obj \ + ..\..\..\..\..\temp\cdd\ta_ULTOSC.obj \ + ..\..\..\..\..\temp\cdd\ta_VAR.obj \ + ..\..\..\..\..\temp\cdd\ta_WCLPRICE.obj \ + ..\..\..\..\..\temp\cdd\ta_WILLR.obj \ + ..\..\..\..\..\temp\cdd\ta_WMA.obj +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ..\..\..\..\..\lib\ta_libc_cdd.lib +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .c + +.cpp.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $< + +.cxx.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $< + +.cc.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $< + +.c.obj: + $(CC) -c $(CFLAGS) $(INCPATH) -Fo$@ $< + +####### Build rules + +all: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + $(LIB) /OUT:$(TARGET) @<< + $(OBJECTS) $(OBJMOC) +<< + +moc: $(SRCMOC) + +tmake: ../cdd/win32/msvc/ta_libc/Makefile + +../cdd/win32/msvc/ta_libc/Makefile: ta_libc/ta_libc.pro + tmake ta_libc/ta_libc.pro -o ../cdd/win32/msvc/ta_libc/Makefile + +dist: + $(ZIP) ta_libc/ta_libc.zip ta_libc/ta_libc.pro $(SOURCES) $(HEADERS) $(DIST) $(INTERFACES) + +clean: + -del ..\..\..\..\..\temp\cdd\ta_global.obj + -del ..\..\..\..\..\temp\cdd\ta_retcode.obj + -del ..\..\..\..\..\temp\cdd\ta_version.obj + -del ..\..\..\..\..\temp\cdd\ta_abstract.obj + -del ..\..\..\..\..\temp\cdd\ta_def_ui.obj + -del ..\..\..\..\..\temp\cdd\ta_func_api.obj + -del ..\..\..\..\..\temp\cdd\ta_group_idx.obj + -del ..\..\..\..\..\temp\cdd\ta_frame.obj + -del ..\..\..\..\..\temp\cdd\table_a.obj + -del ..\..\..\..\..\temp\cdd\table_b.obj + -del ..\..\..\..\..\temp\cdd\table_c.obj + -del ..\..\..\..\..\temp\cdd\table_d.obj + -del ..\..\..\..\..\temp\cdd\table_e.obj + -del ..\..\..\..\..\temp\cdd\table_f.obj + -del ..\..\..\..\..\temp\cdd\table_g.obj + -del ..\..\..\..\..\temp\cdd\table_h.obj + -del ..\..\..\..\..\temp\cdd\table_i.obj + -del ..\..\..\..\..\temp\cdd\table_j.obj + -del ..\..\..\..\..\temp\cdd\table_k.obj + -del ..\..\..\..\..\temp\cdd\table_l.obj + -del ..\..\..\..\..\temp\cdd\table_m.obj + -del ..\..\..\..\..\temp\cdd\table_n.obj + -del ..\..\..\..\..\temp\cdd\table_o.obj + -del ..\..\..\..\..\temp\cdd\table_p.obj + -del ..\..\..\..\..\temp\cdd\table_q.obj + -del ..\..\..\..\..\temp\cdd\table_r.obj + -del ..\..\..\..\..\temp\cdd\table_s.obj + -del ..\..\..\..\..\temp\cdd\table_t.obj + -del ..\..\..\..\..\temp\cdd\table_u.obj + -del ..\..\..\..\..\temp\cdd\table_v.obj + -del ..\..\..\..\..\temp\cdd\table_w.obj + -del ..\..\..\..\..\temp\cdd\table_x.obj + -del ..\..\..\..\..\temp\cdd\table_y.obj + -del ..\..\..\..\..\temp\cdd\table_z.obj + -del ..\..\..\..\..\temp\cdd\ta_utility.obj + -del ..\..\..\..\..\temp\cdd\ta_ACOS.obj + -del ..\..\..\..\..\temp\cdd\ta_AD.obj + -del ..\..\..\..\..\temp\cdd\ta_ADD.obj + -del ..\..\..\..\..\temp\cdd\ta_ADOSC.obj + -del ..\..\..\..\..\temp\cdd\ta_ADX.obj + -del ..\..\..\..\..\temp\cdd\ta_ADXR.obj + -del ..\..\..\..\..\temp\cdd\ta_APO.obj + -del ..\..\..\..\..\temp\cdd\ta_AROON.obj + -del ..\..\..\..\..\temp\cdd\ta_AROONOSC.obj + -del ..\..\..\..\..\temp\cdd\ta_ASIN.obj + -del ..\..\..\..\..\temp\cdd\ta_ATAN.obj + -del ..\..\..\..\..\temp\cdd\ta_ATR.obj + -del ..\..\..\..\..\temp\cdd\ta_AVGPRICE.obj + -del ..\..\..\..\..\temp\cdd\ta_BBANDS.obj + -del ..\..\..\..\..\temp\cdd\ta_BETA.obj + -del ..\..\..\..\..\temp\cdd\ta_BOP.obj + -del ..\..\..\..\..\temp\cdd\ta_CCI.obj + -del ..\..\..\..\..\temp\cdd\ta_CDL2CROWS.obj + -del ..\..\..\..\..\temp\cdd\ta_CDL3BLACKCROWS.obj + -del ..\..\..\..\..\temp\cdd\ta_CDL3INSIDE.obj + -del ..\..\..\..\..\temp\cdd\ta_CDL3LINESTRIKE.obj + -del ..\..\..\..\..\temp\cdd\ta_CDL3OUTSIDE.obj + -del ..\..\..\..\..\temp\cdd\ta_CDL3STARSINSOUTH.obj + -del ..\..\..\..\..\temp\cdd\ta_CDL3WHITESOLDIERS.obj + -del ..\..\..\..\..\temp\cdd\ta_CDLABANDONEDBABY.obj + -del ..\..\..\..\..\temp\cdd\ta_CDLADVANCEBLOCK.obj + -del ..\..\..\..\..\temp\cdd\ta_CDLBELTHOLD.obj + -del ..\..\..\..\..\temp\cdd\ta_CDLBREAKAWAY.obj + -del ..\..\..\..\..\temp\cdd\ta_CDLCLOSINGMARUBOZU.obj + -del ..\..\..\..\..\temp\cdd\ta_CDLCONCEALBABYSWALL.obj + -del ..\..\..\..\..\temp\cdd\ta_CDLCOUNTERATTACK.obj + -del ..\..\..\..\..\temp\cdd\ta_CDLDARKCLOUDCOVER.obj + -del ..\..\..\..\..\temp\cdd\ta_CDLDOJI.obj + -del ..\..\..\..\..\temp\cdd\ta_CDLDOJISTAR.obj + -del ..\..\..\..\..\temp\cdd\ta_CDLDRAGONFLYDOJI.obj + -del ..\..\..\..\..\temp\cdd\ta_CDLENGULFING.obj + -del ..\..\..\..\..\temp\cdd\ta_CDLEVENINGDOJISTAR.obj + -del ..\..\..\..\..\temp\cdd\ta_CDLEVENINGSTAR.obj + -del ..\..\..\..\..\temp\cdd\ta_CDLGAPSIDESIDEWHITE.obj + -del ..\..\..\..\..\temp\cdd\ta_CDLGRAVESTONEDOJI.obj + -del ..\..\..\..\..\temp\cdd\ta_CDLHAMMER.obj + -del ..\..\..\..\..\temp\cdd\ta_CDLHANGINGMAN.obj + -del ..\..\..\..\..\temp\cdd\ta_CDLHARAMI.obj + -del ..\..\..\..\..\temp\cdd\ta_CDLHARAMICROSS.obj + -del ..\..\..\..\..\temp\cdd\ta_CDLHIGHWAVE.obj + -del ..\..\..\..\..\temp\cdd\ta_CDLHIKKAKE.obj + -del ..\..\..\..\..\temp\cdd\ta_CDLHIKKAKEMOD.obj + -del ..\..\..\..\..\temp\cdd\ta_CDLHOMINGPIGEON.obj + -del ..\..\..\..\..\temp\cdd\ta_CDLIDENTICAL3CROWS.obj + -del ..\..\..\..\..\temp\cdd\ta_CDLINNECK.obj + -del ..\..\..\..\..\temp\cdd\ta_CDLINVERTEDHAMMER.obj + -del ..\..\..\..\..\temp\cdd\ta_CDLKICKING.obj + -del ..\..\..\..\..\temp\cdd\ta_CDLKICKINGBYLENGTH.obj + -del ..\..\..\..\..\temp\cdd\ta_CDLLADDERBOTTOM.obj + -del ..\..\..\..\..\temp\cdd\ta_CDLLONGLEGGEDDOJI.obj + -del ..\..\..\..\..\temp\cdd\ta_CDLLONGLINE.obj + -del ..\..\..\..\..\temp\cdd\ta_CDLMARUBOZU.obj + -del ..\..\..\..\..\temp\cdd\ta_CDLMATCHINGLOW.obj + -del ..\..\..\..\..\temp\cdd\ta_CDLMATHOLD.obj + -del ..\..\..\..\..\temp\cdd\ta_CDLMORNINGDOJISTAR.obj + -del ..\..\..\..\..\temp\cdd\ta_CDLMORNINGSTAR.obj + -del ..\..\..\..\..\temp\cdd\ta_CDLONNECK.obj + -del ..\..\..\..\..\temp\cdd\ta_CDLPIERCING.obj + -del ..\..\..\..\..\temp\cdd\ta_CDLRICKSHAWMAN.obj + -del ..\..\..\..\..\temp\cdd\ta_CDLRISEFALL3METHODS.obj + -del ..\..\..\..\..\temp\cdd\ta_CDLSEPARATINGLINES.obj + -del ..\..\..\..\..\temp\cdd\ta_CDLSHOOTINGSTAR.obj + -del ..\..\..\..\..\temp\cdd\ta_CDLSHORTLINE.obj + -del ..\..\..\..\..\temp\cdd\ta_CDLSPINNINGTOP.obj + -del ..\..\..\..\..\temp\cdd\ta_CDLSTALLEDPATTERN.obj + -del ..\..\..\..\..\temp\cdd\ta_CDLSTICKSANDWICH.obj + -del ..\..\..\..\..\temp\cdd\ta_CDLTAKURI.obj + -del ..\..\..\..\..\temp\cdd\ta_CDLTASUKIGAP.obj + -del ..\..\..\..\..\temp\cdd\ta_CDLTHRUSTING.obj + -del ..\..\..\..\..\temp\cdd\ta_CDLTRISTAR.obj + -del ..\..\..\..\..\temp\cdd\ta_CDLUNIQUE3RIVER.obj + -del ..\..\..\..\..\temp\cdd\ta_CDLUPSIDEGAP2CROWS.obj + -del ..\..\..\..\..\temp\cdd\ta_CDLXSIDEGAP3METHODS.obj + -del ..\..\..\..\..\temp\cdd\ta_CEIL.obj + -del ..\..\..\..\..\temp\cdd\ta_CMO.obj + -del ..\..\..\..\..\temp\cdd\ta_CORREL.obj + -del ..\..\..\..\..\temp\cdd\ta_COS.obj + -del ..\..\..\..\..\temp\cdd\ta_COSH.obj + -del ..\..\..\..\..\temp\cdd\ta_DEMA.obj + -del ..\..\..\..\..\temp\cdd\ta_DIV.obj + -del ..\..\..\..\..\temp\cdd\ta_DX.obj + -del ..\..\..\..\..\temp\cdd\ta_EMA.obj + -del ..\..\..\..\..\temp\cdd\ta_EXP.obj + -del ..\..\..\..\..\temp\cdd\ta_FLOOR.obj + -del ..\..\..\..\..\temp\cdd\ta_HT_DCPERIOD.obj + -del ..\..\..\..\..\temp\cdd\ta_HT_DCPHASE.obj + -del ..\..\..\..\..\temp\cdd\ta_HT_PHASOR.obj + -del ..\..\..\..\..\temp\cdd\ta_HT_SINE.obj + -del ..\..\..\..\..\temp\cdd\ta_HT_TRENDLINE.obj + -del ..\..\..\..\..\temp\cdd\ta_HT_TRENDMODE.obj + -del ..\..\..\..\..\temp\cdd\ta_KAMA.obj + -del ..\..\..\..\..\temp\cdd\ta_LINEARREG.obj + -del ..\..\..\..\..\temp\cdd\ta_LINEARREG_ANGLE.obj + -del ..\..\..\..\..\temp\cdd\ta_LINEARREG_INTERCEPT.obj + -del ..\..\..\..\..\temp\cdd\ta_LINEARREG_SLOPE.obj + -del ..\..\..\..\..\temp\cdd\ta_LN.obj + -del ..\..\..\..\..\temp\cdd\ta_LOG10.obj + -del ..\..\..\..\..\temp\cdd\ta_MA.obj + -del ..\..\..\..\..\temp\cdd\ta_MACD.obj + -del ..\..\..\..\..\temp\cdd\ta_MACDEXT.obj + -del ..\..\..\..\..\temp\cdd\ta_MACDFIX.obj + -del ..\..\..\..\..\temp\cdd\ta_MAMA.obj + -del ..\..\..\..\..\temp\cdd\ta_MAVP.obj + -del ..\..\..\..\..\temp\cdd\ta_MAX.obj + -del ..\..\..\..\..\temp\cdd\ta_MAXINDEX.obj + -del ..\..\..\..\..\temp\cdd\ta_MEDPRICE.obj + -del ..\..\..\..\..\temp\cdd\ta_MFI.obj + -del ..\..\..\..\..\temp\cdd\ta_MIDPOINT.obj + -del ..\..\..\..\..\temp\cdd\ta_MIDPRICE.obj + -del ..\..\..\..\..\temp\cdd\ta_MIN.obj + -del ..\..\..\..\..\temp\cdd\ta_MININDEX.obj + -del ..\..\..\..\..\temp\cdd\ta_MINMAX.obj + -del ..\..\..\..\..\temp\cdd\ta_MINMAXINDEX.obj + -del ..\..\..\..\..\temp\cdd\ta_MINUS_DI.obj + -del ..\..\..\..\..\temp\cdd\ta_MINUS_DM.obj + -del ..\..\..\..\..\temp\cdd\ta_MOM.obj + -del ..\..\..\..\..\temp\cdd\ta_MULT.obj + -del ..\..\..\..\..\temp\cdd\ta_NATR.obj + -del ..\..\..\..\..\temp\cdd\ta_OBV.obj + -del ..\..\..\..\..\temp\cdd\ta_PLUS_DI.obj + -del ..\..\..\..\..\temp\cdd\ta_PLUS_DM.obj + -del ..\..\..\..\..\temp\cdd\ta_PPO.obj + -del ..\..\..\..\..\temp\cdd\ta_ROC.obj + -del ..\..\..\..\..\temp\cdd\ta_ROCP.obj + -del ..\..\..\..\..\temp\cdd\ta_ROCR.obj + -del ..\..\..\..\..\temp\cdd\ta_ROCR100.obj + -del ..\..\..\..\..\temp\cdd\ta_RSI.obj + -del ..\..\..\..\..\temp\cdd\ta_SAR.obj + -del ..\..\..\..\..\temp\cdd\ta_SAREXT.obj + -del ..\..\..\..\..\temp\cdd\ta_SIN.obj + -del ..\..\..\..\..\temp\cdd\ta_SINH.obj + -del ..\..\..\..\..\temp\cdd\ta_SMA.obj + -del ..\..\..\..\..\temp\cdd\ta_SQRT.obj + -del ..\..\..\..\..\temp\cdd\ta_STDDEV.obj + -del ..\..\..\..\..\temp\cdd\ta_STOCH.obj + -del ..\..\..\..\..\temp\cdd\ta_STOCHF.obj + -del ..\..\..\..\..\temp\cdd\ta_STOCHRSI.obj + -del ..\..\..\..\..\temp\cdd\ta_SUB.obj + -del ..\..\..\..\..\temp\cdd\ta_SUM.obj + -del ..\..\..\..\..\temp\cdd\ta_T3.obj + -del ..\..\..\..\..\temp\cdd\ta_TAN.obj + -del ..\..\..\..\..\temp\cdd\ta_TANH.obj + -del ..\..\..\..\..\temp\cdd\ta_TEMA.obj + -del ..\..\..\..\..\temp\cdd\ta_TRANGE.obj + -del ..\..\..\..\..\temp\cdd\ta_TRIMA.obj + -del ..\..\..\..\..\temp\cdd\ta_TRIX.obj + -del ..\..\..\..\..\temp\cdd\ta_TSF.obj + -del ..\..\..\..\..\temp\cdd\ta_TYPPRICE.obj + -del ..\..\..\..\..\temp\cdd\ta_ULTOSC.obj + -del ..\..\..\..\..\temp\cdd\ta_VAR.obj + -del ..\..\..\..\..\temp\cdd\ta_WCLPRICE.obj + -del ..\..\..\..\..\temp\cdd\ta_WILLR.obj + -del ..\..\..\..\..\temp\cdd\ta_WMA.obj + -del $(TARGET) + -del ../../../../../bin/*.map + -del ../../../../../bin/*._xe + -del ../../../../../bin/*.tds + -del ../../../../../bin/*.pdb + -del ../../../../../bin/*.pbo + -del ../../../../../bin/*.pbi + -del ../../../../../bin/*.pbt + -del ta_libc_cdd.pdb + -del vc*.pdb + -del ta_libc_cdd.ilk + +####### Compile + +..\..\..\..\..\temp\cdd\ta_global.obj: ..\..\..\..\..\src\ta_common\ta_global.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_global.obj ..\..\..\..\..\src\ta_common\ta_global.c + +..\..\..\..\..\temp\cdd\ta_retcode.obj: ..\..\..\..\..\src\ta_common\ta_retcode.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_retcode.obj ..\..\..\..\..\src\ta_common\ta_retcode.c + +..\..\..\..\..\temp\cdd\ta_version.obj: ..\..\..\..\..\src\ta_common\ta_version.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_version.obj ..\..\..\..\..\src\ta_common\ta_version.c + +..\..\..\..\..\temp\cdd\ta_abstract.obj: ..\..\..\..\..\src\ta_abstract\ta_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_abstract.obj ..\..\..\..\..\src\ta_abstract\ta_abstract.c + +..\..\..\..\..\temp\cdd\ta_def_ui.obj: ..\..\..\..\..\src\ta_abstract\ta_def_ui.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_def_ui.obj ..\..\..\..\..\src\ta_abstract\ta_def_ui.c + +..\..\..\..\..\temp\cdd\ta_func_api.obj: ..\..\..\..\..\src\ta_abstract\ta_func_api.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_func_api.obj ..\..\..\..\..\src\ta_abstract\ta_func_api.c + +..\..\..\..\..\temp\cdd\ta_group_idx.obj: ..\..\..\..\..\src\ta_abstract\ta_group_idx.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_group_idx.obj ..\..\..\..\..\src\ta_abstract\ta_group_idx.c + +..\..\..\..\..\temp\cdd\ta_frame.obj: ..\..\..\..\..\src\ta_abstract\frames\ta_frame.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_frame.obj ..\..\..\..\..\src\ta_abstract\frames\ta_frame.c + +..\..\..\..\..\temp\cdd\table_a.obj: ..\..\..\..\..\src\ta_abstract\tables\table_a.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\table_a.obj ..\..\..\..\..\src\ta_abstract\tables\table_a.c + +..\..\..\..\..\temp\cdd\table_b.obj: ..\..\..\..\..\src\ta_abstract\tables\table_b.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\table_b.obj ..\..\..\..\..\src\ta_abstract\tables\table_b.c + +..\..\..\..\..\temp\cdd\table_c.obj: ..\..\..\..\..\src\ta_abstract\tables\table_c.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\table_c.obj ..\..\..\..\..\src\ta_abstract\tables\table_c.c + +..\..\..\..\..\temp\cdd\table_d.obj: ..\..\..\..\..\src\ta_abstract\tables\table_d.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\table_d.obj ..\..\..\..\..\src\ta_abstract\tables\table_d.c + +..\..\..\..\..\temp\cdd\table_e.obj: ..\..\..\..\..\src\ta_abstract\tables\table_e.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\table_e.obj ..\..\..\..\..\src\ta_abstract\tables\table_e.c + +..\..\..\..\..\temp\cdd\table_f.obj: ..\..\..\..\..\src\ta_abstract\tables\table_f.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\table_f.obj ..\..\..\..\..\src\ta_abstract\tables\table_f.c + +..\..\..\..\..\temp\cdd\table_g.obj: ..\..\..\..\..\src\ta_abstract\tables\table_g.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\table_g.obj ..\..\..\..\..\src\ta_abstract\tables\table_g.c + +..\..\..\..\..\temp\cdd\table_h.obj: ..\..\..\..\..\src\ta_abstract\tables\table_h.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\table_h.obj ..\..\..\..\..\src\ta_abstract\tables\table_h.c + +..\..\..\..\..\temp\cdd\table_i.obj: ..\..\..\..\..\src\ta_abstract\tables\table_i.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\table_i.obj ..\..\..\..\..\src\ta_abstract\tables\table_i.c + +..\..\..\..\..\temp\cdd\table_j.obj: ..\..\..\..\..\src\ta_abstract\tables\table_j.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\table_j.obj ..\..\..\..\..\src\ta_abstract\tables\table_j.c + +..\..\..\..\..\temp\cdd\table_k.obj: ..\..\..\..\..\src\ta_abstract\tables\table_k.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\table_k.obj ..\..\..\..\..\src\ta_abstract\tables\table_k.c + +..\..\..\..\..\temp\cdd\table_l.obj: ..\..\..\..\..\src\ta_abstract\tables\table_l.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\table_l.obj ..\..\..\..\..\src\ta_abstract\tables\table_l.c + +..\..\..\..\..\temp\cdd\table_m.obj: ..\..\..\..\..\src\ta_abstract\tables\table_m.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\table_m.obj ..\..\..\..\..\src\ta_abstract\tables\table_m.c + +..\..\..\..\..\temp\cdd\table_n.obj: ..\..\..\..\..\src\ta_abstract\tables\table_n.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\table_n.obj ..\..\..\..\..\src\ta_abstract\tables\table_n.c + +..\..\..\..\..\temp\cdd\table_o.obj: ..\..\..\..\..\src\ta_abstract\tables\table_o.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\table_o.obj ..\..\..\..\..\src\ta_abstract\tables\table_o.c + +..\..\..\..\..\temp\cdd\table_p.obj: ..\..\..\..\..\src\ta_abstract\tables\table_p.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\table_p.obj ..\..\..\..\..\src\ta_abstract\tables\table_p.c + +..\..\..\..\..\temp\cdd\table_q.obj: ..\..\..\..\..\src\ta_abstract\tables\table_q.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\table_q.obj ..\..\..\..\..\src\ta_abstract\tables\table_q.c + +..\..\..\..\..\temp\cdd\table_r.obj: ..\..\..\..\..\src\ta_abstract\tables\table_r.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\table_r.obj ..\..\..\..\..\src\ta_abstract\tables\table_r.c + +..\..\..\..\..\temp\cdd\table_s.obj: ..\..\..\..\..\src\ta_abstract\tables\table_s.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\table_s.obj ..\..\..\..\..\src\ta_abstract\tables\table_s.c + +..\..\..\..\..\temp\cdd\table_t.obj: ..\..\..\..\..\src\ta_abstract\tables\table_t.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\table_t.obj ..\..\..\..\..\src\ta_abstract\tables\table_t.c + +..\..\..\..\..\temp\cdd\table_u.obj: ..\..\..\..\..\src\ta_abstract\tables\table_u.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\table_u.obj ..\..\..\..\..\src\ta_abstract\tables\table_u.c + +..\..\..\..\..\temp\cdd\table_v.obj: ..\..\..\..\..\src\ta_abstract\tables\table_v.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\table_v.obj ..\..\..\..\..\src\ta_abstract\tables\table_v.c + +..\..\..\..\..\temp\cdd\table_w.obj: ..\..\..\..\..\src\ta_abstract\tables\table_w.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\table_w.obj ..\..\..\..\..\src\ta_abstract\tables\table_w.c + +..\..\..\..\..\temp\cdd\table_x.obj: ..\..\..\..\..\src\ta_abstract\tables\table_x.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\table_x.obj ..\..\..\..\..\src\ta_abstract\tables\table_x.c + +..\..\..\..\..\temp\cdd\table_y.obj: ..\..\..\..\..\src\ta_abstract\tables\table_y.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\table_y.obj ..\..\..\..\..\src\ta_abstract\tables\table_y.c + +..\..\..\..\..\temp\cdd\table_z.obj: ..\..\..\..\..\src\ta_abstract\tables\table_z.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\table_z.obj ..\..\..\..\..\src\ta_abstract\tables\table_z.c + +..\..\..\..\..\temp\cdd\ta_utility.obj: ..\..\..\..\..\src\ta_func\ta_utility.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_utility.obj ..\..\..\..\..\src\ta_func\ta_utility.c + +..\..\..\..\..\temp\cdd\ta_ACOS.obj: ..\..\..\..\..\src\ta_func\ta_ACOS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_ACOS.obj ..\..\..\..\..\src\ta_func\ta_ACOS.c + +..\..\..\..\..\temp\cdd\ta_AD.obj: ..\..\..\..\..\src\ta_func\ta_AD.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_AD.obj ..\..\..\..\..\src\ta_func\ta_AD.c + +..\..\..\..\..\temp\cdd\ta_ADD.obj: ..\..\..\..\..\src\ta_func\ta_ADD.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_ADD.obj ..\..\..\..\..\src\ta_func\ta_ADD.c + +..\..\..\..\..\temp\cdd\ta_ADOSC.obj: ..\..\..\..\..\src\ta_func\ta_ADOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_ADOSC.obj ..\..\..\..\..\src\ta_func\ta_ADOSC.c + +..\..\..\..\..\temp\cdd\ta_ADX.obj: ..\..\..\..\..\src\ta_func\ta_ADX.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_ADX.obj ..\..\..\..\..\src\ta_func\ta_ADX.c + +..\..\..\..\..\temp\cdd\ta_ADXR.obj: ..\..\..\..\..\src\ta_func\ta_ADXR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_ADXR.obj ..\..\..\..\..\src\ta_func\ta_ADXR.c + +..\..\..\..\..\temp\cdd\ta_APO.obj: ..\..\..\..\..\src\ta_func\ta_APO.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_APO.obj ..\..\..\..\..\src\ta_func\ta_APO.c + +..\..\..\..\..\temp\cdd\ta_AROON.obj: ..\..\..\..\..\src\ta_func\ta_AROON.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_AROON.obj ..\..\..\..\..\src\ta_func\ta_AROON.c + +..\..\..\..\..\temp\cdd\ta_AROONOSC.obj: ..\..\..\..\..\src\ta_func\ta_AROONOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_AROONOSC.obj ..\..\..\..\..\src\ta_func\ta_AROONOSC.c + +..\..\..\..\..\temp\cdd\ta_ASIN.obj: ..\..\..\..\..\src\ta_func\ta_ASIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_ASIN.obj ..\..\..\..\..\src\ta_func\ta_ASIN.c + +..\..\..\..\..\temp\cdd\ta_ATAN.obj: ..\..\..\..\..\src\ta_func\ta_ATAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_ATAN.obj ..\..\..\..\..\src\ta_func\ta_ATAN.c + +..\..\..\..\..\temp\cdd\ta_ATR.obj: ..\..\..\..\..\src\ta_func\ta_ATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_ATR.obj ..\..\..\..\..\src\ta_func\ta_ATR.c + +..\..\..\..\..\temp\cdd\ta_AVGPRICE.obj: ..\..\..\..\..\src\ta_func\ta_AVGPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_AVGPRICE.obj ..\..\..\..\..\src\ta_func\ta_AVGPRICE.c + +..\..\..\..\..\temp\cdd\ta_BBANDS.obj: ..\..\..\..\..\src\ta_func\ta_BBANDS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_BBANDS.obj ..\..\..\..\..\src\ta_func\ta_BBANDS.c + +..\..\..\..\..\temp\cdd\ta_BETA.obj: ..\..\..\..\..\src\ta_func\ta_BETA.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_BETA.obj ..\..\..\..\..\src\ta_func\ta_BETA.c + +..\..\..\..\..\temp\cdd\ta_BOP.obj: ..\..\..\..\..\src\ta_func\ta_BOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_BOP.obj ..\..\..\..\..\src\ta_func\ta_BOP.c + +..\..\..\..\..\temp\cdd\ta_CCI.obj: ..\..\..\..\..\src\ta_func\ta_CCI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CCI.obj ..\..\..\..\..\src\ta_func\ta_CCI.c + +..\..\..\..\..\temp\cdd\ta_CDL2CROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDL2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CDL2CROWS.obj ..\..\..\..\..\src\ta_func\ta_CDL2CROWS.c + +..\..\..\..\..\temp\cdd\ta_CDL3BLACKCROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDL3BLACKCROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CDL3BLACKCROWS.obj ..\..\..\..\..\src\ta_func\ta_CDL3BLACKCROWS.c + +..\..\..\..\..\temp\cdd\ta_CDL3INSIDE.obj: ..\..\..\..\..\src\ta_func\ta_CDL3INSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CDL3INSIDE.obj ..\..\..\..\..\src\ta_func\ta_CDL3INSIDE.c + +..\..\..\..\..\temp\cdd\ta_CDL3LINESTRIKE.obj: ..\..\..\..\..\src\ta_func\ta_CDL3LINESTRIKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CDL3LINESTRIKE.obj ..\..\..\..\..\src\ta_func\ta_CDL3LINESTRIKE.c + +..\..\..\..\..\temp\cdd\ta_CDL3OUTSIDE.obj: ..\..\..\..\..\src\ta_func\ta_CDL3OUTSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CDL3OUTSIDE.obj ..\..\..\..\..\src\ta_func\ta_CDL3OUTSIDE.c + +..\..\..\..\..\temp\cdd\ta_CDL3STARSINSOUTH.obj: ..\..\..\..\..\src\ta_func\ta_CDL3STARSINSOUTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CDL3STARSINSOUTH.obj ..\..\..\..\..\src\ta_func\ta_CDL3STARSINSOUTH.c + +..\..\..\..\..\temp\cdd\ta_CDL3WHITESOLDIERS.obj: ..\..\..\..\..\src\ta_func\ta_CDL3WHITESOLDIERS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CDL3WHITESOLDIERS.obj ..\..\..\..\..\src\ta_func\ta_CDL3WHITESOLDIERS.c + +..\..\..\..\..\temp\cdd\ta_CDLABANDONEDBABY.obj: ..\..\..\..\..\src\ta_func\ta_CDLABANDONEDBABY.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CDLABANDONEDBABY.obj ..\..\..\..\..\src\ta_func\ta_CDLABANDONEDBABY.c + +..\..\..\..\..\temp\cdd\ta_CDLADVANCEBLOCK.obj: ..\..\..\..\..\src\ta_func\ta_CDLADVANCEBLOCK.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CDLADVANCEBLOCK.obj ..\..\..\..\..\src\ta_func\ta_CDLADVANCEBLOCK.c + +..\..\..\..\..\temp\cdd\ta_CDLBELTHOLD.obj: ..\..\..\..\..\src\ta_func\ta_CDLBELTHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CDLBELTHOLD.obj ..\..\..\..\..\src\ta_func\ta_CDLBELTHOLD.c + +..\..\..\..\..\temp\cdd\ta_CDLBREAKAWAY.obj: ..\..\..\..\..\src\ta_func\ta_CDLBREAKAWAY.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CDLBREAKAWAY.obj ..\..\..\..\..\src\ta_func\ta_CDLBREAKAWAY.c + +..\..\..\..\..\temp\cdd\ta_CDLCLOSINGMARUBOZU.obj: ..\..\..\..\..\src\ta_func\ta_CDLCLOSINGMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CDLCLOSINGMARUBOZU.obj ..\..\..\..\..\src\ta_func\ta_CDLCLOSINGMARUBOZU.c + +..\..\..\..\..\temp\cdd\ta_CDLCONCEALBABYSWALL.obj: ..\..\..\..\..\src\ta_func\ta_CDLCONCEALBABYSWALL.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CDLCONCEALBABYSWALL.obj ..\..\..\..\..\src\ta_func\ta_CDLCONCEALBABYSWALL.c + +..\..\..\..\..\temp\cdd\ta_CDLCOUNTERATTACK.obj: ..\..\..\..\..\src\ta_func\ta_CDLCOUNTERATTACK.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CDLCOUNTERATTACK.obj ..\..\..\..\..\src\ta_func\ta_CDLCOUNTERATTACK.c + +..\..\..\..\..\temp\cdd\ta_CDLDARKCLOUDCOVER.obj: ..\..\..\..\..\src\ta_func\ta_CDLDARKCLOUDCOVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CDLDARKCLOUDCOVER.obj ..\..\..\..\..\src\ta_func\ta_CDLDARKCLOUDCOVER.c + +..\..\..\..\..\temp\cdd\ta_CDLDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CDLDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLDOJI.c + +..\..\..\..\..\temp\cdd\ta_CDLDOJISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CDLDOJISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLDOJISTAR.c + +..\..\..\..\..\temp\cdd\ta_CDLDRAGONFLYDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLDRAGONFLYDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CDLDRAGONFLYDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLDRAGONFLYDOJI.c + +..\..\..\..\..\temp\cdd\ta_CDLENGULFING.obj: ..\..\..\..\..\src\ta_func\ta_CDLENGULFING.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CDLENGULFING.obj ..\..\..\..\..\src\ta_func\ta_CDLENGULFING.c + +..\..\..\..\..\temp\cdd\ta_CDLEVENINGDOJISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLEVENINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CDLEVENINGDOJISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLEVENINGDOJISTAR.c + +..\..\..\..\..\temp\cdd\ta_CDLEVENINGSTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLEVENINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CDLEVENINGSTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLEVENINGSTAR.c + +..\..\..\..\..\temp\cdd\ta_CDLGAPSIDESIDEWHITE.obj: ..\..\..\..\..\src\ta_func\ta_CDLGAPSIDESIDEWHITE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CDLGAPSIDESIDEWHITE.obj ..\..\..\..\..\src\ta_func\ta_CDLGAPSIDESIDEWHITE.c + +..\..\..\..\..\temp\cdd\ta_CDLGRAVESTONEDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLGRAVESTONEDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CDLGRAVESTONEDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLGRAVESTONEDOJI.c + +..\..\..\..\..\temp\cdd\ta_CDLHAMMER.obj: ..\..\..\..\..\src\ta_func\ta_CDLHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CDLHAMMER.obj ..\..\..\..\..\src\ta_func\ta_CDLHAMMER.c + +..\..\..\..\..\temp\cdd\ta_CDLHANGINGMAN.obj: ..\..\..\..\..\src\ta_func\ta_CDLHANGINGMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CDLHANGINGMAN.obj ..\..\..\..\..\src\ta_func\ta_CDLHANGINGMAN.c + +..\..\..\..\..\temp\cdd\ta_CDLHARAMI.obj: ..\..\..\..\..\src\ta_func\ta_CDLHARAMI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CDLHARAMI.obj ..\..\..\..\..\src\ta_func\ta_CDLHARAMI.c + +..\..\..\..\..\temp\cdd\ta_CDLHARAMICROSS.obj: ..\..\..\..\..\src\ta_func\ta_CDLHARAMICROSS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CDLHARAMICROSS.obj ..\..\..\..\..\src\ta_func\ta_CDLHARAMICROSS.c + +..\..\..\..\..\temp\cdd\ta_CDLHIGHWAVE.obj: ..\..\..\..\..\src\ta_func\ta_CDLHIGHWAVE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CDLHIGHWAVE.obj ..\..\..\..\..\src\ta_func\ta_CDLHIGHWAVE.c + +..\..\..\..\..\temp\cdd\ta_CDLHIKKAKE.obj: ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CDLHIKKAKE.obj ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKE.c + +..\..\..\..\..\temp\cdd\ta_CDLHIKKAKEMOD.obj: ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKEMOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CDLHIKKAKEMOD.obj ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKEMOD.c + +..\..\..\..\..\temp\cdd\ta_CDLHOMINGPIGEON.obj: ..\..\..\..\..\src\ta_func\ta_CDLHOMINGPIGEON.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CDLHOMINGPIGEON.obj ..\..\..\..\..\src\ta_func\ta_CDLHOMINGPIGEON.c + +..\..\..\..\..\temp\cdd\ta_CDLIDENTICAL3CROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDLIDENTICAL3CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CDLIDENTICAL3CROWS.obj ..\..\..\..\..\src\ta_func\ta_CDLIDENTICAL3CROWS.c + +..\..\..\..\..\temp\cdd\ta_CDLINNECK.obj: ..\..\..\..\..\src\ta_func\ta_CDLINNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CDLINNECK.obj ..\..\..\..\..\src\ta_func\ta_CDLINNECK.c + +..\..\..\..\..\temp\cdd\ta_CDLINVERTEDHAMMER.obj: ..\..\..\..\..\src\ta_func\ta_CDLINVERTEDHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CDLINVERTEDHAMMER.obj ..\..\..\..\..\src\ta_func\ta_CDLINVERTEDHAMMER.c + +..\..\..\..\..\temp\cdd\ta_CDLKICKING.obj: ..\..\..\..\..\src\ta_func\ta_CDLKICKING.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CDLKICKING.obj ..\..\..\..\..\src\ta_func\ta_CDLKICKING.c + +..\..\..\..\..\temp\cdd\ta_CDLKICKINGBYLENGTH.obj: ..\..\..\..\..\src\ta_func\ta_CDLKICKINGBYLENGTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CDLKICKINGBYLENGTH.obj ..\..\..\..\..\src\ta_func\ta_CDLKICKINGBYLENGTH.c + +..\..\..\..\..\temp\cdd\ta_CDLLADDERBOTTOM.obj: ..\..\..\..\..\src\ta_func\ta_CDLLADDERBOTTOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CDLLADDERBOTTOM.obj ..\..\..\..\..\src\ta_func\ta_CDLLADDERBOTTOM.c + +..\..\..\..\..\temp\cdd\ta_CDLLONGLEGGEDDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLLONGLEGGEDDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CDLLONGLEGGEDDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLLONGLEGGEDDOJI.c + +..\..\..\..\..\temp\cdd\ta_CDLLONGLINE.obj: ..\..\..\..\..\src\ta_func\ta_CDLLONGLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CDLLONGLINE.obj ..\..\..\..\..\src\ta_func\ta_CDLLONGLINE.c + +..\..\..\..\..\temp\cdd\ta_CDLMARUBOZU.obj: ..\..\..\..\..\src\ta_func\ta_CDLMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CDLMARUBOZU.obj ..\..\..\..\..\src\ta_func\ta_CDLMARUBOZU.c + +..\..\..\..\..\temp\cdd\ta_CDLMATCHINGLOW.obj: ..\..\..\..\..\src\ta_func\ta_CDLMATCHINGLOW.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CDLMATCHINGLOW.obj ..\..\..\..\..\src\ta_func\ta_CDLMATCHINGLOW.c + +..\..\..\..\..\temp\cdd\ta_CDLMATHOLD.obj: ..\..\..\..\..\src\ta_func\ta_CDLMATHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CDLMATHOLD.obj ..\..\..\..\..\src\ta_func\ta_CDLMATHOLD.c + +..\..\..\..\..\temp\cdd\ta_CDLMORNINGDOJISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLMORNINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CDLMORNINGDOJISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLMORNINGDOJISTAR.c + +..\..\..\..\..\temp\cdd\ta_CDLMORNINGSTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLMORNINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CDLMORNINGSTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLMORNINGSTAR.c + +..\..\..\..\..\temp\cdd\ta_CDLONNECK.obj: ..\..\..\..\..\src\ta_func\ta_CDLONNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CDLONNECK.obj ..\..\..\..\..\src\ta_func\ta_CDLONNECK.c + +..\..\..\..\..\temp\cdd\ta_CDLPIERCING.obj: ..\..\..\..\..\src\ta_func\ta_CDLPIERCING.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CDLPIERCING.obj ..\..\..\..\..\src\ta_func\ta_CDLPIERCING.c + +..\..\..\..\..\temp\cdd\ta_CDLRICKSHAWMAN.obj: ..\..\..\..\..\src\ta_func\ta_CDLRICKSHAWMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CDLRICKSHAWMAN.obj ..\..\..\..\..\src\ta_func\ta_CDLRICKSHAWMAN.c + +..\..\..\..\..\temp\cdd\ta_CDLRISEFALL3METHODS.obj: ..\..\..\..\..\src\ta_func\ta_CDLRISEFALL3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CDLRISEFALL3METHODS.obj ..\..\..\..\..\src\ta_func\ta_CDLRISEFALL3METHODS.c + +..\..\..\..\..\temp\cdd\ta_CDLSEPARATINGLINES.obj: ..\..\..\..\..\src\ta_func\ta_CDLSEPARATINGLINES.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CDLSEPARATINGLINES.obj ..\..\..\..\..\src\ta_func\ta_CDLSEPARATINGLINES.c + +..\..\..\..\..\temp\cdd\ta_CDLSHOOTINGSTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLSHOOTINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CDLSHOOTINGSTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLSHOOTINGSTAR.c + +..\..\..\..\..\temp\cdd\ta_CDLSHORTLINE.obj: ..\..\..\..\..\src\ta_func\ta_CDLSHORTLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CDLSHORTLINE.obj ..\..\..\..\..\src\ta_func\ta_CDLSHORTLINE.c + +..\..\..\..\..\temp\cdd\ta_CDLSPINNINGTOP.obj: ..\..\..\..\..\src\ta_func\ta_CDLSPINNINGTOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CDLSPINNINGTOP.obj ..\..\..\..\..\src\ta_func\ta_CDLSPINNINGTOP.c + +..\..\..\..\..\temp\cdd\ta_CDLSTALLEDPATTERN.obj: ..\..\..\..\..\src\ta_func\ta_CDLSTALLEDPATTERN.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CDLSTALLEDPATTERN.obj ..\..\..\..\..\src\ta_func\ta_CDLSTALLEDPATTERN.c + +..\..\..\..\..\temp\cdd\ta_CDLSTICKSANDWICH.obj: ..\..\..\..\..\src\ta_func\ta_CDLSTICKSANDWICH.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CDLSTICKSANDWICH.obj ..\..\..\..\..\src\ta_func\ta_CDLSTICKSANDWICH.c + +..\..\..\..\..\temp\cdd\ta_CDLTAKURI.obj: ..\..\..\..\..\src\ta_func\ta_CDLTAKURI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CDLTAKURI.obj ..\..\..\..\..\src\ta_func\ta_CDLTAKURI.c + +..\..\..\..\..\temp\cdd\ta_CDLTASUKIGAP.obj: ..\..\..\..\..\src\ta_func\ta_CDLTASUKIGAP.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CDLTASUKIGAP.obj ..\..\..\..\..\src\ta_func\ta_CDLTASUKIGAP.c + +..\..\..\..\..\temp\cdd\ta_CDLTHRUSTING.obj: ..\..\..\..\..\src\ta_func\ta_CDLTHRUSTING.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CDLTHRUSTING.obj ..\..\..\..\..\src\ta_func\ta_CDLTHRUSTING.c + +..\..\..\..\..\temp\cdd\ta_CDLTRISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLTRISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CDLTRISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLTRISTAR.c + +..\..\..\..\..\temp\cdd\ta_CDLUNIQUE3RIVER.obj: ..\..\..\..\..\src\ta_func\ta_CDLUNIQUE3RIVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CDLUNIQUE3RIVER.obj ..\..\..\..\..\src\ta_func\ta_CDLUNIQUE3RIVER.c + +..\..\..\..\..\temp\cdd\ta_CDLUPSIDEGAP2CROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDLUPSIDEGAP2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CDLUPSIDEGAP2CROWS.obj ..\..\..\..\..\src\ta_func\ta_CDLUPSIDEGAP2CROWS.c + +..\..\..\..\..\temp\cdd\ta_CDLXSIDEGAP3METHODS.obj: ..\..\..\..\..\src\ta_func\ta_CDLXSIDEGAP3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CDLXSIDEGAP3METHODS.obj ..\..\..\..\..\src\ta_func\ta_CDLXSIDEGAP3METHODS.c + +..\..\..\..\..\temp\cdd\ta_CEIL.obj: ..\..\..\..\..\src\ta_func\ta_CEIL.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CEIL.obj ..\..\..\..\..\src\ta_func\ta_CEIL.c + +..\..\..\..\..\temp\cdd\ta_CMO.obj: ..\..\..\..\..\src\ta_func\ta_CMO.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CMO.obj ..\..\..\..\..\src\ta_func\ta_CMO.c + +..\..\..\..\..\temp\cdd\ta_CORREL.obj: ..\..\..\..\..\src\ta_func\ta_CORREL.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_CORREL.obj ..\..\..\..\..\src\ta_func\ta_CORREL.c + +..\..\..\..\..\temp\cdd\ta_COS.obj: ..\..\..\..\..\src\ta_func\ta_COS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_COS.obj ..\..\..\..\..\src\ta_func\ta_COS.c + +..\..\..\..\..\temp\cdd\ta_COSH.obj: ..\..\..\..\..\src\ta_func\ta_COSH.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_COSH.obj ..\..\..\..\..\src\ta_func\ta_COSH.c + +..\..\..\..\..\temp\cdd\ta_DEMA.obj: ..\..\..\..\..\src\ta_func\ta_DEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_DEMA.obj ..\..\..\..\..\src\ta_func\ta_DEMA.c + +..\..\..\..\..\temp\cdd\ta_DIV.obj: ..\..\..\..\..\src\ta_func\ta_DIV.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_DIV.obj ..\..\..\..\..\src\ta_func\ta_DIV.c + +..\..\..\..\..\temp\cdd\ta_DX.obj: ..\..\..\..\..\src\ta_func\ta_DX.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_DX.obj ..\..\..\..\..\src\ta_func\ta_DX.c + +..\..\..\..\..\temp\cdd\ta_EMA.obj: ..\..\..\..\..\src\ta_func\ta_EMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_EMA.obj ..\..\..\..\..\src\ta_func\ta_EMA.c + +..\..\..\..\..\temp\cdd\ta_EXP.obj: ..\..\..\..\..\src\ta_func\ta_EXP.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_EXP.obj ..\..\..\..\..\src\ta_func\ta_EXP.c + +..\..\..\..\..\temp\cdd\ta_FLOOR.obj: ..\..\..\..\..\src\ta_func\ta_FLOOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_FLOOR.obj ..\..\..\..\..\src\ta_func\ta_FLOOR.c + +..\..\..\..\..\temp\cdd\ta_HT_DCPERIOD.obj: ..\..\..\..\..\src\ta_func\ta_HT_DCPERIOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_HT_DCPERIOD.obj ..\..\..\..\..\src\ta_func\ta_HT_DCPERIOD.c + +..\..\..\..\..\temp\cdd\ta_HT_DCPHASE.obj: ..\..\..\..\..\src\ta_func\ta_HT_DCPHASE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_HT_DCPHASE.obj ..\..\..\..\..\src\ta_func\ta_HT_DCPHASE.c + +..\..\..\..\..\temp\cdd\ta_HT_PHASOR.obj: ..\..\..\..\..\src\ta_func\ta_HT_PHASOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_HT_PHASOR.obj ..\..\..\..\..\src\ta_func\ta_HT_PHASOR.c + +..\..\..\..\..\temp\cdd\ta_HT_SINE.obj: ..\..\..\..\..\src\ta_func\ta_HT_SINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_HT_SINE.obj ..\..\..\..\..\src\ta_func\ta_HT_SINE.c + +..\..\..\..\..\temp\cdd\ta_HT_TRENDLINE.obj: ..\..\..\..\..\src\ta_func\ta_HT_TRENDLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_HT_TRENDLINE.obj ..\..\..\..\..\src\ta_func\ta_HT_TRENDLINE.c + +..\..\..\..\..\temp\cdd\ta_HT_TRENDMODE.obj: ..\..\..\..\..\src\ta_func\ta_HT_TRENDMODE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_HT_TRENDMODE.obj ..\..\..\..\..\src\ta_func\ta_HT_TRENDMODE.c + +..\..\..\..\..\temp\cdd\ta_KAMA.obj: ..\..\..\..\..\src\ta_func\ta_KAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_KAMA.obj ..\..\..\..\..\src\ta_func\ta_KAMA.c + +..\..\..\..\..\temp\cdd\ta_LINEARREG.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_LINEARREG.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG.c + +..\..\..\..\..\temp\cdd\ta_LINEARREG_ANGLE.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG_ANGLE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_LINEARREG_ANGLE.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG_ANGLE.c + +..\..\..\..\..\temp\cdd\ta_LINEARREG_INTERCEPT.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG_INTERCEPT.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_LINEARREG_INTERCEPT.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG_INTERCEPT.c + +..\..\..\..\..\temp\cdd\ta_LINEARREG_SLOPE.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG_SLOPE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_LINEARREG_SLOPE.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG_SLOPE.c + +..\..\..\..\..\temp\cdd\ta_LN.obj: ..\..\..\..\..\src\ta_func\ta_LN.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_LN.obj ..\..\..\..\..\src\ta_func\ta_LN.c + +..\..\..\..\..\temp\cdd\ta_LOG10.obj: ..\..\..\..\..\src\ta_func\ta_LOG10.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_LOG10.obj ..\..\..\..\..\src\ta_func\ta_LOG10.c + +..\..\..\..\..\temp\cdd\ta_MA.obj: ..\..\..\..\..\src\ta_func\ta_MA.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_MA.obj ..\..\..\..\..\src\ta_func\ta_MA.c + +..\..\..\..\..\temp\cdd\ta_MACD.obj: ..\..\..\..\..\src\ta_func\ta_MACD.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_MACD.obj ..\..\..\..\..\src\ta_func\ta_MACD.c + +..\..\..\..\..\temp\cdd\ta_MACDEXT.obj: ..\..\..\..\..\src\ta_func\ta_MACDEXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_MACDEXT.obj ..\..\..\..\..\src\ta_func\ta_MACDEXT.c + +..\..\..\..\..\temp\cdd\ta_MACDFIX.obj: ..\..\..\..\..\src\ta_func\ta_MACDFIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_MACDFIX.obj ..\..\..\..\..\src\ta_func\ta_MACDFIX.c + +..\..\..\..\..\temp\cdd\ta_MAMA.obj: ..\..\..\..\..\src\ta_func\ta_MAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_MAMA.obj ..\..\..\..\..\src\ta_func\ta_MAMA.c + +..\..\..\..\..\temp\cdd\ta_MAVP.obj: ..\..\..\..\..\src\ta_func\ta_MAVP.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_MAVP.obj ..\..\..\..\..\src\ta_func\ta_MAVP.c + +..\..\..\..\..\temp\cdd\ta_MAX.obj: ..\..\..\..\..\src\ta_func\ta_MAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_MAX.obj ..\..\..\..\..\src\ta_func\ta_MAX.c + +..\..\..\..\..\temp\cdd\ta_MAXINDEX.obj: ..\..\..\..\..\src\ta_func\ta_MAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_MAXINDEX.obj ..\..\..\..\..\src\ta_func\ta_MAXINDEX.c + +..\..\..\..\..\temp\cdd\ta_MEDPRICE.obj: ..\..\..\..\..\src\ta_func\ta_MEDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_MEDPRICE.obj ..\..\..\..\..\src\ta_func\ta_MEDPRICE.c + +..\..\..\..\..\temp\cdd\ta_MFI.obj: ..\..\..\..\..\src\ta_func\ta_MFI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_MFI.obj ..\..\..\..\..\src\ta_func\ta_MFI.c + +..\..\..\..\..\temp\cdd\ta_MIDPOINT.obj: ..\..\..\..\..\src\ta_func\ta_MIDPOINT.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_MIDPOINT.obj ..\..\..\..\..\src\ta_func\ta_MIDPOINT.c + +..\..\..\..\..\temp\cdd\ta_MIDPRICE.obj: ..\..\..\..\..\src\ta_func\ta_MIDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_MIDPRICE.obj ..\..\..\..\..\src\ta_func\ta_MIDPRICE.c + +..\..\..\..\..\temp\cdd\ta_MIN.obj: ..\..\..\..\..\src\ta_func\ta_MIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_MIN.obj ..\..\..\..\..\src\ta_func\ta_MIN.c + +..\..\..\..\..\temp\cdd\ta_MININDEX.obj: ..\..\..\..\..\src\ta_func\ta_MININDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_MININDEX.obj ..\..\..\..\..\src\ta_func\ta_MININDEX.c + +..\..\..\..\..\temp\cdd\ta_MINMAX.obj: ..\..\..\..\..\src\ta_func\ta_MINMAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_MINMAX.obj ..\..\..\..\..\src\ta_func\ta_MINMAX.c + +..\..\..\..\..\temp\cdd\ta_MINMAXINDEX.obj: ..\..\..\..\..\src\ta_func\ta_MINMAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_MINMAXINDEX.obj ..\..\..\..\..\src\ta_func\ta_MINMAXINDEX.c + +..\..\..\..\..\temp\cdd\ta_MINUS_DI.obj: ..\..\..\..\..\src\ta_func\ta_MINUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_MINUS_DI.obj ..\..\..\..\..\src\ta_func\ta_MINUS_DI.c + +..\..\..\..\..\temp\cdd\ta_MINUS_DM.obj: ..\..\..\..\..\src\ta_func\ta_MINUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_MINUS_DM.obj ..\..\..\..\..\src\ta_func\ta_MINUS_DM.c + +..\..\..\..\..\temp\cdd\ta_MOM.obj: ..\..\..\..\..\src\ta_func\ta_MOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_MOM.obj ..\..\..\..\..\src\ta_func\ta_MOM.c + +..\..\..\..\..\temp\cdd\ta_MULT.obj: ..\..\..\..\..\src\ta_func\ta_MULT.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_MULT.obj ..\..\..\..\..\src\ta_func\ta_MULT.c + +..\..\..\..\..\temp\cdd\ta_NATR.obj: ..\..\..\..\..\src\ta_func\ta_NATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_NATR.obj ..\..\..\..\..\src\ta_func\ta_NATR.c + +..\..\..\..\..\temp\cdd\ta_OBV.obj: ..\..\..\..\..\src\ta_func\ta_OBV.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_OBV.obj ..\..\..\..\..\src\ta_func\ta_OBV.c + +..\..\..\..\..\temp\cdd\ta_PLUS_DI.obj: ..\..\..\..\..\src\ta_func\ta_PLUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_PLUS_DI.obj ..\..\..\..\..\src\ta_func\ta_PLUS_DI.c + +..\..\..\..\..\temp\cdd\ta_PLUS_DM.obj: ..\..\..\..\..\src\ta_func\ta_PLUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_PLUS_DM.obj ..\..\..\..\..\src\ta_func\ta_PLUS_DM.c + +..\..\..\..\..\temp\cdd\ta_PPO.obj: ..\..\..\..\..\src\ta_func\ta_PPO.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_PPO.obj ..\..\..\..\..\src\ta_func\ta_PPO.c + +..\..\..\..\..\temp\cdd\ta_ROC.obj: ..\..\..\..\..\src\ta_func\ta_ROC.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_ROC.obj ..\..\..\..\..\src\ta_func\ta_ROC.c + +..\..\..\..\..\temp\cdd\ta_ROCP.obj: ..\..\..\..\..\src\ta_func\ta_ROCP.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_ROCP.obj ..\..\..\..\..\src\ta_func\ta_ROCP.c + +..\..\..\..\..\temp\cdd\ta_ROCR.obj: ..\..\..\..\..\src\ta_func\ta_ROCR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_ROCR.obj ..\..\..\..\..\src\ta_func\ta_ROCR.c + +..\..\..\..\..\temp\cdd\ta_ROCR100.obj: ..\..\..\..\..\src\ta_func\ta_ROCR100.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_ROCR100.obj ..\..\..\..\..\src\ta_func\ta_ROCR100.c + +..\..\..\..\..\temp\cdd\ta_RSI.obj: ..\..\..\..\..\src\ta_func\ta_RSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_RSI.obj ..\..\..\..\..\src\ta_func\ta_RSI.c + +..\..\..\..\..\temp\cdd\ta_SAR.obj: ..\..\..\..\..\src\ta_func\ta_SAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_SAR.obj ..\..\..\..\..\src\ta_func\ta_SAR.c + +..\..\..\..\..\temp\cdd\ta_SAREXT.obj: ..\..\..\..\..\src\ta_func\ta_SAREXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_SAREXT.obj ..\..\..\..\..\src\ta_func\ta_SAREXT.c + +..\..\..\..\..\temp\cdd\ta_SIN.obj: ..\..\..\..\..\src\ta_func\ta_SIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_SIN.obj ..\..\..\..\..\src\ta_func\ta_SIN.c + +..\..\..\..\..\temp\cdd\ta_SINH.obj: ..\..\..\..\..\src\ta_func\ta_SINH.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_SINH.obj ..\..\..\..\..\src\ta_func\ta_SINH.c + +..\..\..\..\..\temp\cdd\ta_SMA.obj: ..\..\..\..\..\src\ta_func\ta_SMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_SMA.obj ..\..\..\..\..\src\ta_func\ta_SMA.c + +..\..\..\..\..\temp\cdd\ta_SQRT.obj: ..\..\..\..\..\src\ta_func\ta_SQRT.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_SQRT.obj ..\..\..\..\..\src\ta_func\ta_SQRT.c + +..\..\..\..\..\temp\cdd\ta_STDDEV.obj: ..\..\..\..\..\src\ta_func\ta_STDDEV.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_STDDEV.obj ..\..\..\..\..\src\ta_func\ta_STDDEV.c + +..\..\..\..\..\temp\cdd\ta_STOCH.obj: ..\..\..\..\..\src\ta_func\ta_STOCH.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_STOCH.obj ..\..\..\..\..\src\ta_func\ta_STOCH.c + +..\..\..\..\..\temp\cdd\ta_STOCHF.obj: ..\..\..\..\..\src\ta_func\ta_STOCHF.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_STOCHF.obj ..\..\..\..\..\src\ta_func\ta_STOCHF.c + +..\..\..\..\..\temp\cdd\ta_STOCHRSI.obj: ..\..\..\..\..\src\ta_func\ta_STOCHRSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_STOCHRSI.obj ..\..\..\..\..\src\ta_func\ta_STOCHRSI.c + +..\..\..\..\..\temp\cdd\ta_SUB.obj: ..\..\..\..\..\src\ta_func\ta_SUB.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_SUB.obj ..\..\..\..\..\src\ta_func\ta_SUB.c + +..\..\..\..\..\temp\cdd\ta_SUM.obj: ..\..\..\..\..\src\ta_func\ta_SUM.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_SUM.obj ..\..\..\..\..\src\ta_func\ta_SUM.c + +..\..\..\..\..\temp\cdd\ta_T3.obj: ..\..\..\..\..\src\ta_func\ta_T3.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_T3.obj ..\..\..\..\..\src\ta_func\ta_T3.c + +..\..\..\..\..\temp\cdd\ta_TAN.obj: ..\..\..\..\..\src\ta_func\ta_TAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_TAN.obj ..\..\..\..\..\src\ta_func\ta_TAN.c + +..\..\..\..\..\temp\cdd\ta_TANH.obj: ..\..\..\..\..\src\ta_func\ta_TANH.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_TANH.obj ..\..\..\..\..\src\ta_func\ta_TANH.c + +..\..\..\..\..\temp\cdd\ta_TEMA.obj: ..\..\..\..\..\src\ta_func\ta_TEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_TEMA.obj ..\..\..\..\..\src\ta_func\ta_TEMA.c + +..\..\..\..\..\temp\cdd\ta_TRANGE.obj: ..\..\..\..\..\src\ta_func\ta_TRANGE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_TRANGE.obj ..\..\..\..\..\src\ta_func\ta_TRANGE.c + +..\..\..\..\..\temp\cdd\ta_TRIMA.obj: ..\..\..\..\..\src\ta_func\ta_TRIMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_TRIMA.obj ..\..\..\..\..\src\ta_func\ta_TRIMA.c + +..\..\..\..\..\temp\cdd\ta_TRIX.obj: ..\..\..\..\..\src\ta_func\ta_TRIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_TRIX.obj ..\..\..\..\..\src\ta_func\ta_TRIX.c + +..\..\..\..\..\temp\cdd\ta_TSF.obj: ..\..\..\..\..\src\ta_func\ta_TSF.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_TSF.obj ..\..\..\..\..\src\ta_func\ta_TSF.c + +..\..\..\..\..\temp\cdd\ta_TYPPRICE.obj: ..\..\..\..\..\src\ta_func\ta_TYPPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_TYPPRICE.obj ..\..\..\..\..\src\ta_func\ta_TYPPRICE.c + +..\..\..\..\..\temp\cdd\ta_ULTOSC.obj: ..\..\..\..\..\src\ta_func\ta_ULTOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_ULTOSC.obj ..\..\..\..\..\src\ta_func\ta_ULTOSC.c + +..\..\..\..\..\temp\cdd\ta_VAR.obj: ..\..\..\..\..\src\ta_func\ta_VAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_VAR.obj ..\..\..\..\..\src\ta_func\ta_VAR.c + +..\..\..\..\..\temp\cdd\ta_WCLPRICE.obj: ..\..\..\..\..\src\ta_func\ta_WCLPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_WCLPRICE.obj ..\..\..\..\..\src\ta_func\ta_WCLPRICE.c + +..\..\..\..\..\temp\cdd\ta_WILLR.obj: ..\..\..\..\..\src\ta_func\ta_WILLR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_WILLR.obj ..\..\..\..\..\src\ta_func\ta_WILLR.c + +..\..\..\..\..\temp\cdd\ta_WMA.obj: ..\..\..\..\..\src\ta_func\ta_WMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_WMA.obj ..\..\..\..\..\src\ta_func\ta_WMA.c + diff --git a/make/cdd/win32/msvc/ta_regtest/Makefile b/make/cdd/win32/msvc/ta_regtest/Makefile new file mode 100644 index 000000000..e8a2445c5 --- /dev/null +++ b/make/cdd/win32/msvc/ta_regtest/Makefile @@ -0,0 +1,239 @@ +############################################################################# +# Makefile for building ta_regtest +# Generated by tmake; +# Project: ta_regtest/ta_regtest +# Template: app +############################################################################# + +####### Compiler, tools and options + +CC = cl +CXX = cl +CFLAGS = -nologo -W3 -MDd -Zi -DTA_DEBUG -D_DEBUG -DWIN32 -D_MBCS -D_LIB -DQT_THREAD_SUPPORT +CXXFLAGS= -nologo -W3 -MDd -Zi -DTA_DEBUG -D_DEBUG -DWIN32 -D_MBCS -D_LIB -DQT_THREAD_SUPPORT +INCPATH = -I"..\..\..\..\..\src\ta_common" -I"..\..\..\..\..\src\tools\ta_regtest" -I"..\..\..\..\..\src\ta_func" -I"..\..\..\..\..\include" +LINK = link +LFLAGS = /NOLOGO /DEBUG /SUBSYSTEM:console +LIBS = ..\..\..\..\..\lib\ta_libc_cdd.lib +MOC = moc +UIC = uic + +ZIP = zip -r -9 + +####### Files + +HEADERS = +SOURCES = ..\..\..\..\..\src\tools\ta_regtest\ta_regtest.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_candlestick.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_1in_1out.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_1in_2out.c \ + ..\..\..\..\..\src\tools\ta_regtest\test_internals.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_adx.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_bbands.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_ma.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_macd.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_minmax.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_mom.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_ema.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hl.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hlc.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hlcv.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_ohlc.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_po.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_rsi.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_sar.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_stddev.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_stoch.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_trange.c \ + ..\..\..\..\..\src\tools\ta_regtest\test_util.c \ + ..\..\..\..\..\src\tools\ta_regtest\test_data.c \ + ..\..\..\..\..\src\tools\ta_regtest\test_abstract.c +OBJECTS = ..\..\..\..\..\temp\cdd\ta_regtest.obj \ + ..\..\..\..\..\temp\cdd\test_candlestick.obj \ + ..\..\..\..\..\temp\cdd\test_1in_1out.obj \ + ..\..\..\..\..\temp\cdd\test_1in_2out.obj \ + ..\..\..\..\..\temp\cdd\test_internals.obj \ + ..\..\..\..\..\temp\cdd\test_adx.obj \ + ..\..\..\..\..\temp\cdd\test_bbands.obj \ + ..\..\..\..\..\temp\cdd\test_ma.obj \ + ..\..\..\..\..\temp\cdd\test_macd.obj \ + ..\..\..\..\..\temp\cdd\test_minmax.obj \ + ..\..\..\..\..\temp\cdd\test_mom.obj \ + ..\..\..\..\..\temp\cdd\test_per_ema.obj \ + ..\..\..\..\..\temp\cdd\test_per_hl.obj \ + ..\..\..\..\..\temp\cdd\test_per_hlc.obj \ + ..\..\..\..\..\temp\cdd\test_per_hlcv.obj \ + ..\..\..\..\..\temp\cdd\test_per_ohlc.obj \ + ..\..\..\..\..\temp\cdd\test_po.obj \ + ..\..\..\..\..\temp\cdd\test_rsi.obj \ + ..\..\..\..\..\temp\cdd\test_sar.obj \ + ..\..\..\..\..\temp\cdd\test_stddev.obj \ + ..\..\..\..\..\temp\cdd\test_stoch.obj \ + ..\..\..\..\..\temp\cdd\test_trange.obj \ + ..\..\..\..\..\temp\cdd\test_util.obj \ + ..\..\..\..\..\temp\cdd\test_data.obj \ + ..\..\..\..\..\temp\cdd\test_abstract.obj +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ..\..\..\..\..\bin\ta_regtest.exe +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .c + +.cpp.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $< + +.cxx.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $< + +.cc.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $< + +.c.obj: + $(CC) -c $(CFLAGS) $(INCPATH) -Fo$@ $< + +####### Build rules + +all: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + $(LINK) $(LFLAGS) /OUT:$(TARGET) @<< + $(OBJECTS) $(OBJMOC) $(LIBS) +<< + +moc: $(SRCMOC) + +tmake: ../cdd/win32/msvc/ta_regtest/Makefile + +../cdd/win32/msvc/ta_regtest/Makefile: ta_regtest/ta_regtest.pro + tmake ta_regtest/ta_regtest.pro -o ../cdd/win32/msvc/ta_regtest/Makefile + +dist: + $(ZIP) ta_regtest/ta_regtest.zip ta_regtest/ta_regtest.pro $(SOURCES) $(HEADERS) $(DIST) $(INTERFACES) + +clean: + -del ..\..\..\..\..\temp\cdd\ta_regtest.obj + -del ..\..\..\..\..\temp\cdd\test_candlestick.obj + -del ..\..\..\..\..\temp\cdd\test_1in_1out.obj + -del ..\..\..\..\..\temp\cdd\test_1in_2out.obj + -del ..\..\..\..\..\temp\cdd\test_internals.obj + -del ..\..\..\..\..\temp\cdd\test_adx.obj + -del ..\..\..\..\..\temp\cdd\test_bbands.obj + -del ..\..\..\..\..\temp\cdd\test_ma.obj + -del ..\..\..\..\..\temp\cdd\test_macd.obj + -del ..\..\..\..\..\temp\cdd\test_minmax.obj + -del ..\..\..\..\..\temp\cdd\test_mom.obj + -del ..\..\..\..\..\temp\cdd\test_per_ema.obj + -del ..\..\..\..\..\temp\cdd\test_per_hl.obj + -del ..\..\..\..\..\temp\cdd\test_per_hlc.obj + -del ..\..\..\..\..\temp\cdd\test_per_hlcv.obj + -del ..\..\..\..\..\temp\cdd\test_per_ohlc.obj + -del ..\..\..\..\..\temp\cdd\test_po.obj + -del ..\..\..\..\..\temp\cdd\test_rsi.obj + -del ..\..\..\..\..\temp\cdd\test_sar.obj + -del ..\..\..\..\..\temp\cdd\test_stddev.obj + -del ..\..\..\..\..\temp\cdd\test_stoch.obj + -del ..\..\..\..\..\temp\cdd\test_trange.obj + -del ..\..\..\..\..\temp\cdd\test_util.obj + -del ..\..\..\..\..\temp\cdd\test_data.obj + -del ..\..\..\..\..\temp\cdd\test_abstract.obj + -del $(TARGET) + -del ../../../../../bin/*.map + -del ../../../../../bin/*._xe + -del ../../../../../bin/*.tds + -del ../../../../../bin/*.pdb + -del ../../../../../bin/*.pbo + -del ../../../../../bin/*.pbi + -del ../../../../../bin/*.pbt + -del ../../../../../temp/cdd/*.pch + -del ../../../../../temp/cdd/*.idb + -del ../../../../../temp/cdd/ta_regtest/*.pch + -del ../../../../../temp/cdd/ta_regtest/*.idb + -del ../../../../../temp/cdd/ta_regtest/*.obj + -del ta_regtest.pdb + -del vc*.pdb + -del ta_regtest.ilk + +####### Compile + +..\..\..\..\..\temp\cdd\ta_regtest.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_regtest.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\ta_regtest.obj ..\..\..\..\..\src\tools\ta_regtest\ta_regtest.c + +..\..\..\..\..\temp\cdd\test_candlestick.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_candlestick.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\test_candlestick.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_candlestick.c + +..\..\..\..\..\temp\cdd\test_1in_1out.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_1in_1out.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\test_1in_1out.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_1in_1out.c + +..\..\..\..\..\temp\cdd\test_1in_2out.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_1in_2out.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\test_1in_2out.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_1in_2out.c + +..\..\..\..\..\temp\cdd\test_internals.obj: ..\..\..\..\..\src\tools\ta_regtest\test_internals.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\test_internals.obj ..\..\..\..\..\src\tools\ta_regtest\test_internals.c + +..\..\..\..\..\temp\cdd\test_adx.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_adx.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\test_adx.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_adx.c + +..\..\..\..\..\temp\cdd\test_bbands.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_bbands.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\test_bbands.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_bbands.c + +..\..\..\..\..\temp\cdd\test_ma.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_ma.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\test_ma.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_ma.c + +..\..\..\..\..\temp\cdd\test_macd.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_macd.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\test_macd.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_macd.c + +..\..\..\..\..\temp\cdd\test_minmax.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_minmax.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\test_minmax.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_minmax.c + +..\..\..\..\..\temp\cdd\test_mom.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_mom.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\test_mom.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_mom.c + +..\..\..\..\..\temp\cdd\test_per_ema.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_ema.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\test_per_ema.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_ema.c + +..\..\..\..\..\temp\cdd\test_per_hl.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hl.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\test_per_hl.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hl.c + +..\..\..\..\..\temp\cdd\test_per_hlc.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hlc.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\test_per_hlc.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hlc.c + +..\..\..\..\..\temp\cdd\test_per_hlcv.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hlcv.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\test_per_hlcv.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hlcv.c + +..\..\..\..\..\temp\cdd\test_per_ohlc.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_ohlc.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\test_per_ohlc.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_ohlc.c + +..\..\..\..\..\temp\cdd\test_po.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_po.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\test_po.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_po.c + +..\..\..\..\..\temp\cdd\test_rsi.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_rsi.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\test_rsi.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_rsi.c + +..\..\..\..\..\temp\cdd\test_sar.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_sar.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\test_sar.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_sar.c + +..\..\..\..\..\temp\cdd\test_stddev.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_stddev.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\test_stddev.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_stddev.c + +..\..\..\..\..\temp\cdd\test_stoch.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_stoch.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\test_stoch.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_stoch.c + +..\..\..\..\..\temp\cdd\test_trange.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_trange.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\test_trange.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_trange.c + +..\..\..\..\..\temp\cdd\test_util.obj: ..\..\..\..\..\src\tools\ta_regtest\test_util.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\test_util.obj ..\..\..\..\..\src\tools\ta_regtest\test_util.c + +..\..\..\..\..\temp\cdd\test_data.obj: ..\..\..\..\..\src\tools\ta_regtest\test_data.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\test_data.obj ..\..\..\..\..\src\tools\ta_regtest\test_data.c + +..\..\..\..\..\temp\cdd\test_abstract.obj: ..\..\..\..\..\src\tools\ta_regtest\test_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdd\test_abstract.obj ..\..\..\..\..\src\tools\ta_regtest\test_abstract.c + diff --git a/make/cdr/win32/msvc/Makefile b/make/cdr/win32/msvc/Makefile new file mode 100644 index 000000000..5cd9cfeaf --- /dev/null +++ b/make/cdr/win32/msvc/Makefile @@ -0,0 +1,97 @@ +############################################################################# +# Makefile for building targets in sub directories. +# Generated by tmake; +# Project: rootmake +# Template: subdirs +############################################################################# + +MAKEFILE= Makefile +TMAKE = tmake + +SUBDIRS = ta_common \ + ta_func \ + ta_abstract \ + ta_libc \ + gen_code \ + ta_regtest + +all: $(SUBDIRS) + +ta_common: FORCE + cd ta_common + $(MAKE) /nologo + @cd .. + +ta_func: FORCE + cd ta_func + $(MAKE) /nologo + @cd .. + +ta_abstract: FORCE + cd ta_abstract + $(MAKE) /nologo + @cd .. + +ta_libc: FORCE + cd ta_libc + $(MAKE) /nologo + @cd .. + +gen_code: FORCE + cd gen_code + $(MAKE) /nologo + @cd .. + +ta_regtest: FORCE + cd ta_regtest + $(MAKE) /nologo + @cd .. + + +tmake: ../cdr/win32/msvc/Makefile + +../cdr/win32/msvc/Makefile: rootmake.pro + tmake rootmake.pro -o ../cdr/win32/msvc/Makefile + +tmake_all: + cd ta_common + $(TMAKE) ta_common.pro -o $(MAKEFILE) + @cd .. + cd ta_func + $(TMAKE) ta_func.pro -o $(MAKEFILE) + @cd .. + cd ta_abstract + $(TMAKE) ta_abstract.pro -o $(MAKEFILE) + @cd .. + cd ta_libc + $(TMAKE) ta_libc.pro -o $(MAKEFILE) + @cd .. + cd gen_code + $(TMAKE) gen_code.pro -o $(MAKEFILE) + @cd .. + cd ta_regtest + $(TMAKE) ta_regtest.pro -o $(MAKEFILE) + @cd .. + + +clean: + cd ta_common + $(MAKE) clean + @cd .. + cd ta_func + $(MAKE) clean + @cd .. + cd ta_abstract + $(MAKE) clean + @cd .. + cd ta_libc + $(MAKE) clean + @cd .. + cd gen_code + $(MAKE) clean + @cd .. + cd ta_regtest + $(MAKE) clean + @cd .. + +FORCE: diff --git a/make/cdr/win32/msvc/gen_code/Makefile b/make/cdr/win32/msvc/gen_code/Makefile new file mode 100644 index 000000000..df6d6399e --- /dev/null +++ b/make/cdr/win32/msvc/gen_code/Makefile @@ -0,0 +1,260 @@ +############################################################################# +# Makefile for building gen_code +# Generated by tmake; +# Project: gen_code/gen_code +# Template: app +############################################################################# + +####### Compiler, tools and options + +CC = cl +CXX = cl +CFLAGS = -nologo -W3 -MD -O2 -DTA_GEN_CODE -DWIN32 -D_MBCS -D_LIB -DQT_THREAD_SUPPORT +CXXFLAGS= -nologo -W3 -MD -O2 -DTA_GEN_CODE -DWIN32 -D_MBCS -D_LIB -DQT_THREAD_SUPPORT +INCPATH = -I"..\..\..\..\..\include" -I"..\..\..\..\..\src\ta_common" -I"..\..\..\..\..\src\ta_abstract" -I"..\..\..\..\..\src\ta_abstract\tables" -I"..\..\..\..\..\src\ta_abstract\frames" +LINK = link +LFLAGS = /NOLOGO /SUBSYSTEM:console +LIBS = ..\..\..\..\..\lib\ta_common_cdr.lib +MOC = moc +UIC = uic + +ZIP = zip -r -9 + +####### Files + +HEADERS = +SOURCES = ..\..\..\..\..\src\tools\gen_code\gen_code.c \ + ..\..\..\..\..\src\ta_abstract\ta_abstract.c \ + ..\..\..\..\..\src\ta_abstract\ta_def_ui.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_a.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_b.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_c.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_d.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_e.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_f.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_g.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_h.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_i.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_j.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_k.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_l.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_m.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_n.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_o.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_p.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_q.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_r.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_s.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_t.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_u.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_v.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_w.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_x.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_y.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_z.c +OBJECTS = ..\..\..\..\..\temp\cdr\gen_code\gen_code.obj \ + ..\..\..\..\..\temp\cdr\gen_code\ta_abstract.obj \ + ..\..\..\..\..\temp\cdr\gen_code\ta_def_ui.obj \ + ..\..\..\..\..\temp\cdr\gen_code\table_a.obj \ + ..\..\..\..\..\temp\cdr\gen_code\table_b.obj \ + ..\..\..\..\..\temp\cdr\gen_code\table_c.obj \ + ..\..\..\..\..\temp\cdr\gen_code\table_d.obj \ + ..\..\..\..\..\temp\cdr\gen_code\table_e.obj \ + ..\..\..\..\..\temp\cdr\gen_code\table_f.obj \ + ..\..\..\..\..\temp\cdr\gen_code\table_g.obj \ + ..\..\..\..\..\temp\cdr\gen_code\table_h.obj \ + ..\..\..\..\..\temp\cdr\gen_code\table_i.obj \ + ..\..\..\..\..\temp\cdr\gen_code\table_j.obj \ + ..\..\..\..\..\temp\cdr\gen_code\table_k.obj \ + ..\..\..\..\..\temp\cdr\gen_code\table_l.obj \ + ..\..\..\..\..\temp\cdr\gen_code\table_m.obj \ + ..\..\..\..\..\temp\cdr\gen_code\table_n.obj \ + ..\..\..\..\..\temp\cdr\gen_code\table_o.obj \ + ..\..\..\..\..\temp\cdr\gen_code\table_p.obj \ + ..\..\..\..\..\temp\cdr\gen_code\table_q.obj \ + ..\..\..\..\..\temp\cdr\gen_code\table_r.obj \ + ..\..\..\..\..\temp\cdr\gen_code\table_s.obj \ + ..\..\..\..\..\temp\cdr\gen_code\table_t.obj \ + ..\..\..\..\..\temp\cdr\gen_code\table_u.obj \ + ..\..\..\..\..\temp\cdr\gen_code\table_v.obj \ + ..\..\..\..\..\temp\cdr\gen_code\table_w.obj \ + ..\..\..\..\..\temp\cdr\gen_code\table_x.obj \ + ..\..\..\..\..\temp\cdr\gen_code\table_y.obj \ + ..\..\..\..\..\temp\cdr\gen_code\table_z.obj +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ..\..\..\..\..\bin\gen_code.exe +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .c + +.cpp.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $< + +.cxx.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $< + +.cc.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $< + +.c.obj: + $(CC) -c $(CFLAGS) $(INCPATH) -Fo$@ $< + +####### Build rules + +all: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + $(LINK) $(LFLAGS) /OUT:$(TARGET) @<< + $(OBJECTS) $(OBJMOC) $(LIBS) +<< + +moc: $(SRCMOC) + +tmake: ../cdr/win32/msvc/gen_code/Makefile + +../cdr/win32/msvc/gen_code/Makefile: gen_code/gen_code.pro + tmake gen_code/gen_code.pro -o ../cdr/win32/msvc/gen_code/Makefile + +dist: + $(ZIP) gen_code/gen_code.zip gen_code/gen_code.pro $(SOURCES) $(HEADERS) $(DIST) $(INTERFACES) + +clean: + -del ..\..\..\..\..\temp\cdr\gen_code\gen_code.obj + -del ..\..\..\..\..\temp\cdr\gen_code\ta_abstract.obj + -del ..\..\..\..\..\temp\cdr\gen_code\ta_def_ui.obj + -del ..\..\..\..\..\temp\cdr\gen_code\table_a.obj + -del ..\..\..\..\..\temp\cdr\gen_code\table_b.obj + -del ..\..\..\..\..\temp\cdr\gen_code\table_c.obj + -del ..\..\..\..\..\temp\cdr\gen_code\table_d.obj + -del ..\..\..\..\..\temp\cdr\gen_code\table_e.obj + -del ..\..\..\..\..\temp\cdr\gen_code\table_f.obj + -del ..\..\..\..\..\temp\cdr\gen_code\table_g.obj + -del ..\..\..\..\..\temp\cdr\gen_code\table_h.obj + -del ..\..\..\..\..\temp\cdr\gen_code\table_i.obj + -del ..\..\..\..\..\temp\cdr\gen_code\table_j.obj + -del ..\..\..\..\..\temp\cdr\gen_code\table_k.obj + -del ..\..\..\..\..\temp\cdr\gen_code\table_l.obj + -del ..\..\..\..\..\temp\cdr\gen_code\table_m.obj + -del ..\..\..\..\..\temp\cdr\gen_code\table_n.obj + -del ..\..\..\..\..\temp\cdr\gen_code\table_o.obj + -del ..\..\..\..\..\temp\cdr\gen_code\table_p.obj + -del ..\..\..\..\..\temp\cdr\gen_code\table_q.obj + -del ..\..\..\..\..\temp\cdr\gen_code\table_r.obj + -del ..\..\..\..\..\temp\cdr\gen_code\table_s.obj + -del ..\..\..\..\..\temp\cdr\gen_code\table_t.obj + -del ..\..\..\..\..\temp\cdr\gen_code\table_u.obj + -del ..\..\..\..\..\temp\cdr\gen_code\table_v.obj + -del ..\..\..\..\..\temp\cdr\gen_code\table_w.obj + -del ..\..\..\..\..\temp\cdr\gen_code\table_x.obj + -del ..\..\..\..\..\temp\cdr\gen_code\table_y.obj + -del ..\..\..\..\..\temp\cdr\gen_code\table_z.obj + -del $(TARGET) + -del ../../../../../bin/*.map + -del ../../../../../bin/*._xe + -del ../../../../../bin/*.tds + -del ../../../../../bin/*.pdb + -del ../../../../../bin/*.pbo + -del ../../../../../bin/*.pbi + -del ../../../../../bin/*.pbt + -del ../../../../../temp/cdr/*.pch + -del ../../../../../temp/cdr/*.idb + -del ../../../../../temp/cdr/gen_code/*.pch + -del ../../../../../temp/cdr/gen_code/*.idb + -del ../../../../../temp/cdr/gen_code/*.obj + +####### Compile + +..\..\..\..\..\temp\cdr\gen_code\gen_code.obj: ..\..\..\..\..\src\tools\gen_code\gen_code.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\gen_code\gen_code.obj ..\..\..\..\..\src\tools\gen_code\gen_code.c + +..\..\..\..\..\temp\cdr\gen_code\ta_abstract.obj: ..\..\..\..\..\src\ta_abstract\ta_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\gen_code\ta_abstract.obj ..\..\..\..\..\src\ta_abstract\ta_abstract.c + +..\..\..\..\..\temp\cdr\gen_code\ta_def_ui.obj: ..\..\..\..\..\src\ta_abstract\ta_def_ui.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\gen_code\ta_def_ui.obj ..\..\..\..\..\src\ta_abstract\ta_def_ui.c + +..\..\..\..\..\temp\cdr\gen_code\table_a.obj: ..\..\..\..\..\src\ta_abstract\tables\table_a.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\gen_code\table_a.obj ..\..\..\..\..\src\ta_abstract\tables\table_a.c + +..\..\..\..\..\temp\cdr\gen_code\table_b.obj: ..\..\..\..\..\src\ta_abstract\tables\table_b.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\gen_code\table_b.obj ..\..\..\..\..\src\ta_abstract\tables\table_b.c + +..\..\..\..\..\temp\cdr\gen_code\table_c.obj: ..\..\..\..\..\src\ta_abstract\tables\table_c.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\gen_code\table_c.obj ..\..\..\..\..\src\ta_abstract\tables\table_c.c + +..\..\..\..\..\temp\cdr\gen_code\table_d.obj: ..\..\..\..\..\src\ta_abstract\tables\table_d.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\gen_code\table_d.obj ..\..\..\..\..\src\ta_abstract\tables\table_d.c + +..\..\..\..\..\temp\cdr\gen_code\table_e.obj: ..\..\..\..\..\src\ta_abstract\tables\table_e.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\gen_code\table_e.obj ..\..\..\..\..\src\ta_abstract\tables\table_e.c + +..\..\..\..\..\temp\cdr\gen_code\table_f.obj: ..\..\..\..\..\src\ta_abstract\tables\table_f.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\gen_code\table_f.obj ..\..\..\..\..\src\ta_abstract\tables\table_f.c + +..\..\..\..\..\temp\cdr\gen_code\table_g.obj: ..\..\..\..\..\src\ta_abstract\tables\table_g.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\gen_code\table_g.obj ..\..\..\..\..\src\ta_abstract\tables\table_g.c + +..\..\..\..\..\temp\cdr\gen_code\table_h.obj: ..\..\..\..\..\src\ta_abstract\tables\table_h.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\gen_code\table_h.obj ..\..\..\..\..\src\ta_abstract\tables\table_h.c + +..\..\..\..\..\temp\cdr\gen_code\table_i.obj: ..\..\..\..\..\src\ta_abstract\tables\table_i.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\gen_code\table_i.obj ..\..\..\..\..\src\ta_abstract\tables\table_i.c + +..\..\..\..\..\temp\cdr\gen_code\table_j.obj: ..\..\..\..\..\src\ta_abstract\tables\table_j.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\gen_code\table_j.obj ..\..\..\..\..\src\ta_abstract\tables\table_j.c + +..\..\..\..\..\temp\cdr\gen_code\table_k.obj: ..\..\..\..\..\src\ta_abstract\tables\table_k.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\gen_code\table_k.obj ..\..\..\..\..\src\ta_abstract\tables\table_k.c + +..\..\..\..\..\temp\cdr\gen_code\table_l.obj: ..\..\..\..\..\src\ta_abstract\tables\table_l.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\gen_code\table_l.obj ..\..\..\..\..\src\ta_abstract\tables\table_l.c + +..\..\..\..\..\temp\cdr\gen_code\table_m.obj: ..\..\..\..\..\src\ta_abstract\tables\table_m.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\gen_code\table_m.obj ..\..\..\..\..\src\ta_abstract\tables\table_m.c + +..\..\..\..\..\temp\cdr\gen_code\table_n.obj: ..\..\..\..\..\src\ta_abstract\tables\table_n.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\gen_code\table_n.obj ..\..\..\..\..\src\ta_abstract\tables\table_n.c + +..\..\..\..\..\temp\cdr\gen_code\table_o.obj: ..\..\..\..\..\src\ta_abstract\tables\table_o.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\gen_code\table_o.obj ..\..\..\..\..\src\ta_abstract\tables\table_o.c + +..\..\..\..\..\temp\cdr\gen_code\table_p.obj: ..\..\..\..\..\src\ta_abstract\tables\table_p.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\gen_code\table_p.obj ..\..\..\..\..\src\ta_abstract\tables\table_p.c + +..\..\..\..\..\temp\cdr\gen_code\table_q.obj: ..\..\..\..\..\src\ta_abstract\tables\table_q.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\gen_code\table_q.obj ..\..\..\..\..\src\ta_abstract\tables\table_q.c + +..\..\..\..\..\temp\cdr\gen_code\table_r.obj: ..\..\..\..\..\src\ta_abstract\tables\table_r.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\gen_code\table_r.obj ..\..\..\..\..\src\ta_abstract\tables\table_r.c + +..\..\..\..\..\temp\cdr\gen_code\table_s.obj: ..\..\..\..\..\src\ta_abstract\tables\table_s.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\gen_code\table_s.obj ..\..\..\..\..\src\ta_abstract\tables\table_s.c + +..\..\..\..\..\temp\cdr\gen_code\table_t.obj: ..\..\..\..\..\src\ta_abstract\tables\table_t.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\gen_code\table_t.obj ..\..\..\..\..\src\ta_abstract\tables\table_t.c + +..\..\..\..\..\temp\cdr\gen_code\table_u.obj: ..\..\..\..\..\src\ta_abstract\tables\table_u.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\gen_code\table_u.obj ..\..\..\..\..\src\ta_abstract\tables\table_u.c + +..\..\..\..\..\temp\cdr\gen_code\table_v.obj: ..\..\..\..\..\src\ta_abstract\tables\table_v.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\gen_code\table_v.obj ..\..\..\..\..\src\ta_abstract\tables\table_v.c + +..\..\..\..\..\temp\cdr\gen_code\table_w.obj: ..\..\..\..\..\src\ta_abstract\tables\table_w.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\gen_code\table_w.obj ..\..\..\..\..\src\ta_abstract\tables\table_w.c + +..\..\..\..\..\temp\cdr\gen_code\table_x.obj: ..\..\..\..\..\src\ta_abstract\tables\table_x.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\gen_code\table_x.obj ..\..\..\..\..\src\ta_abstract\tables\table_x.c + +..\..\..\..\..\temp\cdr\gen_code\table_y.obj: ..\..\..\..\..\src\ta_abstract\tables\table_y.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\gen_code\table_y.obj ..\..\..\..\..\src\ta_abstract\tables\table_y.c + +..\..\..\..\..\temp\cdr\gen_code\table_z.obj: ..\..\..\..\..\src\ta_abstract\tables\table_z.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\gen_code\table_z.obj ..\..\..\..\..\src\ta_abstract\tables\table_z.c + diff --git a/make/cdr/win32/msvc/ta_abstract/Makefile b/make/cdr/win32/msvc/ta_abstract/Makefile new file mode 100644 index 000000000..d301a0168 --- /dev/null +++ b/make/cdr/win32/msvc/ta_abstract/Makefile @@ -0,0 +1,270 @@ +############################################################################# +# Makefile for building ta_abstract_cdr +# Generated by tmake; +# Project: ta_abstract/ta_abstract +# Template: lib +############################################################################# + +####### Compiler, tools and options + +CC = cl +CXX = cl +CFLAGS = -nologo -W3 -MD -O2 -DWIN32 -D_MBCS -D_LIB -DQT_THREAD_SUPPORT +CXXFLAGS= -nologo -W3 -MD -O2 -DWIN32 -D_MBCS -D_LIB -DQT_THREAD_SUPPORT +INCPATH = -I"..\..\..\..\..\src\ta_common" -I"..\..\..\..\..\src\ta_abstract" -I"..\..\..\..\..\src\ta_abstract\tables" -I"..\..\..\..\..\src\ta_abstract\frames" -I"..\..\..\..\..\include" +LIB = lib /NOLOGO +MOC = moc +UIC = uic + +ZIP = zip -r -9 + +####### Files + +HEADERS = +SOURCES = ..\..\..\..\..\src\ta_abstract\ta_abstract.c \ + ..\..\..\..\..\src\ta_abstract\ta_def_ui.c \ + ..\..\..\..\..\src\ta_abstract\ta_func_api.c \ + ..\..\..\..\..\src\ta_abstract\ta_group_idx.c \ + ..\..\..\..\..\src\ta_abstract\frames\ta_frame.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_a.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_b.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_c.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_d.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_e.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_f.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_g.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_h.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_i.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_j.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_k.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_l.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_m.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_n.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_o.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_p.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_q.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_r.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_s.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_t.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_u.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_v.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_w.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_x.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_y.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_z.c +OBJECTS = ..\..\..\..\..\temp\cdr\ta_abstract.obj \ + ..\..\..\..\..\temp\cdr\ta_def_ui.obj \ + ..\..\..\..\..\temp\cdr\ta_func_api.obj \ + ..\..\..\..\..\temp\cdr\ta_group_idx.obj \ + ..\..\..\..\..\temp\cdr\ta_frame.obj \ + ..\..\..\..\..\temp\cdr\table_a.obj \ + ..\..\..\..\..\temp\cdr\table_b.obj \ + ..\..\..\..\..\temp\cdr\table_c.obj \ + ..\..\..\..\..\temp\cdr\table_d.obj \ + ..\..\..\..\..\temp\cdr\table_e.obj \ + ..\..\..\..\..\temp\cdr\table_f.obj \ + ..\..\..\..\..\temp\cdr\table_g.obj \ + ..\..\..\..\..\temp\cdr\table_h.obj \ + ..\..\..\..\..\temp\cdr\table_i.obj \ + ..\..\..\..\..\temp\cdr\table_j.obj \ + ..\..\..\..\..\temp\cdr\table_k.obj \ + ..\..\..\..\..\temp\cdr\table_l.obj \ + ..\..\..\..\..\temp\cdr\table_m.obj \ + ..\..\..\..\..\temp\cdr\table_n.obj \ + ..\..\..\..\..\temp\cdr\table_o.obj \ + ..\..\..\..\..\temp\cdr\table_p.obj \ + ..\..\..\..\..\temp\cdr\table_q.obj \ + ..\..\..\..\..\temp\cdr\table_r.obj \ + ..\..\..\..\..\temp\cdr\table_s.obj \ + ..\..\..\..\..\temp\cdr\table_t.obj \ + ..\..\..\..\..\temp\cdr\table_u.obj \ + ..\..\..\..\..\temp\cdr\table_v.obj \ + ..\..\..\..\..\temp\cdr\table_w.obj \ + ..\..\..\..\..\temp\cdr\table_x.obj \ + ..\..\..\..\..\temp\cdr\table_y.obj \ + ..\..\..\..\..\temp\cdr\table_z.obj +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ..\..\..\..\..\lib\ta_abstract_cdr.lib +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .c + +.cpp.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $< + +.cxx.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $< + +.cc.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $< + +.c.obj: + $(CC) -c $(CFLAGS) $(INCPATH) -Fo$@ $< + +####### Build rules + +all: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + $(LIB) /OUT:$(TARGET) @<< + $(OBJECTS) $(OBJMOC) +<< + +moc: $(SRCMOC) + +tmake: ../cdr/win32/msvc/ta_abstract/Makefile + +../cdr/win32/msvc/ta_abstract/Makefile: ta_abstract/ta_abstract.pro + tmake ta_abstract/ta_abstract.pro -o ../cdr/win32/msvc/ta_abstract/Makefile + +dist: + $(ZIP) ta_abstract/ta_abstract.zip ta_abstract/ta_abstract.pro $(SOURCES) $(HEADERS) $(DIST) $(INTERFACES) + +clean: + -del ..\..\..\..\..\temp\cdr\ta_abstract.obj + -del ..\..\..\..\..\temp\cdr\ta_def_ui.obj + -del ..\..\..\..\..\temp\cdr\ta_func_api.obj + -del ..\..\..\..\..\temp\cdr\ta_group_idx.obj + -del ..\..\..\..\..\temp\cdr\ta_frame.obj + -del ..\..\..\..\..\temp\cdr\table_a.obj + -del ..\..\..\..\..\temp\cdr\table_b.obj + -del ..\..\..\..\..\temp\cdr\table_c.obj + -del ..\..\..\..\..\temp\cdr\table_d.obj + -del ..\..\..\..\..\temp\cdr\table_e.obj + -del ..\..\..\..\..\temp\cdr\table_f.obj + -del ..\..\..\..\..\temp\cdr\table_g.obj + -del ..\..\..\..\..\temp\cdr\table_h.obj + -del ..\..\..\..\..\temp\cdr\table_i.obj + -del ..\..\..\..\..\temp\cdr\table_j.obj + -del ..\..\..\..\..\temp\cdr\table_k.obj + -del ..\..\..\..\..\temp\cdr\table_l.obj + -del ..\..\..\..\..\temp\cdr\table_m.obj + -del ..\..\..\..\..\temp\cdr\table_n.obj + -del ..\..\..\..\..\temp\cdr\table_o.obj + -del ..\..\..\..\..\temp\cdr\table_p.obj + -del ..\..\..\..\..\temp\cdr\table_q.obj + -del ..\..\..\..\..\temp\cdr\table_r.obj + -del ..\..\..\..\..\temp\cdr\table_s.obj + -del ..\..\..\..\..\temp\cdr\table_t.obj + -del ..\..\..\..\..\temp\cdr\table_u.obj + -del ..\..\..\..\..\temp\cdr\table_v.obj + -del ..\..\..\..\..\temp\cdr\table_w.obj + -del ..\..\..\..\..\temp\cdr\table_x.obj + -del ..\..\..\..\..\temp\cdr\table_y.obj + -del ..\..\..\..\..\temp\cdr\table_z.obj + -del $(TARGET) + -del ../../../../../bin/*.map + -del ../../../../../bin/*._xe + -del ../../../../../bin/*.tds + -del ../../../../../bin/*.pdb + -del ../../../../../bin/*.pbo + -del ../../../../../bin/*.pbi + -del ../../../../../bin/*.pbt + -del ../../../../../temp/cdr/*.pch + -del ../../../../../temp/cdr/*.idb + -del ../../../../../temp/cdr/ta_abstract/*.pch + -del ../../../../../temp/cdr/ta_abstract/*.idb + -del ../../../../../temp/cdr/ta_abstract/*.obj + +####### Compile + +..\..\..\..\..\temp\cdr\ta_abstract.obj: ..\..\..\..\..\src\ta_abstract\ta_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_abstract.obj ..\..\..\..\..\src\ta_abstract\ta_abstract.c + +..\..\..\..\..\temp\cdr\ta_def_ui.obj: ..\..\..\..\..\src\ta_abstract\ta_def_ui.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_def_ui.obj ..\..\..\..\..\src\ta_abstract\ta_def_ui.c + +..\..\..\..\..\temp\cdr\ta_func_api.obj: ..\..\..\..\..\src\ta_abstract\ta_func_api.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_func_api.obj ..\..\..\..\..\src\ta_abstract\ta_func_api.c + +..\..\..\..\..\temp\cdr\ta_group_idx.obj: ..\..\..\..\..\src\ta_abstract\ta_group_idx.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_group_idx.obj ..\..\..\..\..\src\ta_abstract\ta_group_idx.c + +..\..\..\..\..\temp\cdr\ta_frame.obj: ..\..\..\..\..\src\ta_abstract\frames\ta_frame.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_frame.obj ..\..\..\..\..\src\ta_abstract\frames\ta_frame.c + +..\..\..\..\..\temp\cdr\table_a.obj: ..\..\..\..\..\src\ta_abstract\tables\table_a.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\table_a.obj ..\..\..\..\..\src\ta_abstract\tables\table_a.c + +..\..\..\..\..\temp\cdr\table_b.obj: ..\..\..\..\..\src\ta_abstract\tables\table_b.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\table_b.obj ..\..\..\..\..\src\ta_abstract\tables\table_b.c + +..\..\..\..\..\temp\cdr\table_c.obj: ..\..\..\..\..\src\ta_abstract\tables\table_c.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\table_c.obj ..\..\..\..\..\src\ta_abstract\tables\table_c.c + +..\..\..\..\..\temp\cdr\table_d.obj: ..\..\..\..\..\src\ta_abstract\tables\table_d.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\table_d.obj ..\..\..\..\..\src\ta_abstract\tables\table_d.c + +..\..\..\..\..\temp\cdr\table_e.obj: ..\..\..\..\..\src\ta_abstract\tables\table_e.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\table_e.obj ..\..\..\..\..\src\ta_abstract\tables\table_e.c + +..\..\..\..\..\temp\cdr\table_f.obj: ..\..\..\..\..\src\ta_abstract\tables\table_f.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\table_f.obj ..\..\..\..\..\src\ta_abstract\tables\table_f.c + +..\..\..\..\..\temp\cdr\table_g.obj: ..\..\..\..\..\src\ta_abstract\tables\table_g.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\table_g.obj ..\..\..\..\..\src\ta_abstract\tables\table_g.c + +..\..\..\..\..\temp\cdr\table_h.obj: ..\..\..\..\..\src\ta_abstract\tables\table_h.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\table_h.obj ..\..\..\..\..\src\ta_abstract\tables\table_h.c + +..\..\..\..\..\temp\cdr\table_i.obj: ..\..\..\..\..\src\ta_abstract\tables\table_i.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\table_i.obj ..\..\..\..\..\src\ta_abstract\tables\table_i.c + +..\..\..\..\..\temp\cdr\table_j.obj: ..\..\..\..\..\src\ta_abstract\tables\table_j.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\table_j.obj ..\..\..\..\..\src\ta_abstract\tables\table_j.c + +..\..\..\..\..\temp\cdr\table_k.obj: ..\..\..\..\..\src\ta_abstract\tables\table_k.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\table_k.obj ..\..\..\..\..\src\ta_abstract\tables\table_k.c + +..\..\..\..\..\temp\cdr\table_l.obj: ..\..\..\..\..\src\ta_abstract\tables\table_l.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\table_l.obj ..\..\..\..\..\src\ta_abstract\tables\table_l.c + +..\..\..\..\..\temp\cdr\table_m.obj: ..\..\..\..\..\src\ta_abstract\tables\table_m.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\table_m.obj ..\..\..\..\..\src\ta_abstract\tables\table_m.c + +..\..\..\..\..\temp\cdr\table_n.obj: ..\..\..\..\..\src\ta_abstract\tables\table_n.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\table_n.obj ..\..\..\..\..\src\ta_abstract\tables\table_n.c + +..\..\..\..\..\temp\cdr\table_o.obj: ..\..\..\..\..\src\ta_abstract\tables\table_o.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\table_o.obj ..\..\..\..\..\src\ta_abstract\tables\table_o.c + +..\..\..\..\..\temp\cdr\table_p.obj: ..\..\..\..\..\src\ta_abstract\tables\table_p.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\table_p.obj ..\..\..\..\..\src\ta_abstract\tables\table_p.c + +..\..\..\..\..\temp\cdr\table_q.obj: ..\..\..\..\..\src\ta_abstract\tables\table_q.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\table_q.obj ..\..\..\..\..\src\ta_abstract\tables\table_q.c + +..\..\..\..\..\temp\cdr\table_r.obj: ..\..\..\..\..\src\ta_abstract\tables\table_r.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\table_r.obj ..\..\..\..\..\src\ta_abstract\tables\table_r.c + +..\..\..\..\..\temp\cdr\table_s.obj: ..\..\..\..\..\src\ta_abstract\tables\table_s.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\table_s.obj ..\..\..\..\..\src\ta_abstract\tables\table_s.c + +..\..\..\..\..\temp\cdr\table_t.obj: ..\..\..\..\..\src\ta_abstract\tables\table_t.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\table_t.obj ..\..\..\..\..\src\ta_abstract\tables\table_t.c + +..\..\..\..\..\temp\cdr\table_u.obj: ..\..\..\..\..\src\ta_abstract\tables\table_u.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\table_u.obj ..\..\..\..\..\src\ta_abstract\tables\table_u.c + +..\..\..\..\..\temp\cdr\table_v.obj: ..\..\..\..\..\src\ta_abstract\tables\table_v.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\table_v.obj ..\..\..\..\..\src\ta_abstract\tables\table_v.c + +..\..\..\..\..\temp\cdr\table_w.obj: ..\..\..\..\..\src\ta_abstract\tables\table_w.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\table_w.obj ..\..\..\..\..\src\ta_abstract\tables\table_w.c + +..\..\..\..\..\temp\cdr\table_x.obj: ..\..\..\..\..\src\ta_abstract\tables\table_x.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\table_x.obj ..\..\..\..\..\src\ta_abstract\tables\table_x.c + +..\..\..\..\..\temp\cdr\table_y.obj: ..\..\..\..\..\src\ta_abstract\tables\table_y.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\table_y.obj ..\..\..\..\..\src\ta_abstract\tables\table_y.c + +..\..\..\..\..\temp\cdr\table_z.obj: ..\..\..\..\..\src\ta_abstract\tables\table_z.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\table_z.obj ..\..\..\..\..\src\ta_abstract\tables\table_z.c + diff --git a/make/cdr/win32/msvc/ta_common/Makefile b/make/cdr/win32/msvc/ta_common/Makefile new file mode 100644 index 000000000..0d7ca6ed7 --- /dev/null +++ b/make/cdr/win32/msvc/ta_common/Makefile @@ -0,0 +1,102 @@ +############################################################################# +# Makefile for building ta_common_cdr +# Generated by tmake; +# Project: ta_common/ta_common +# Template: lib +############################################################################# + +####### Compiler, tools and options + +CC = cl +CXX = cl +CFLAGS = -nologo -W3 -MD -O2 -DWIN32 -D_MBCS -D_LIB -DQT_THREAD_SUPPORT +CXXFLAGS= -nologo -W3 -MD -O2 -DWIN32 -D_MBCS -D_LIB -DQT_THREAD_SUPPORT +INCPATH = -I"..\..\..\..\..\src\ta_common" -I"..\..\..\..\..\include" +LIB = lib /NOLOGO +MOC = moc +UIC = uic + +ZIP = zip -r -9 + +####### Files + +HEADERS = +SOURCES = ..\..\..\..\..\src\ta_common\ta_global.c \ + ..\..\..\..\..\src\ta_common\ta_retcode.c \ + ..\..\..\..\..\src\ta_common\ta_version.c +OBJECTS = ..\..\..\..\..\temp\cdr\ta_global.obj \ + ..\..\..\..\..\temp\cdr\ta_retcode.obj \ + ..\..\..\..\..\temp\cdr\ta_version.obj +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ..\..\..\..\..\lib\ta_common_cdr.lib +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .c + +.cpp.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $< + +.cxx.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $< + +.cc.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $< + +.c.obj: + $(CC) -c $(CFLAGS) $(INCPATH) -Fo$@ $< + +####### Build rules + +all: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + $(LIB) /OUT:$(TARGET) @<< + $(OBJECTS) $(OBJMOC) +<< + +moc: $(SRCMOC) + +tmake: ../cdr/win32/msvc/ta_common/Makefile + +../cdr/win32/msvc/ta_common/Makefile: ta_common/ta_common.pro + tmake ta_common/ta_common.pro -o ../cdr/win32/msvc/ta_common/Makefile + +dist: + $(ZIP) ta_common/ta_common.zip ta_common/ta_common.pro $(SOURCES) $(HEADERS) $(DIST) $(INTERFACES) + +clean: + -del ..\..\..\..\..\temp\cdr\ta_global.obj + -del ..\..\..\..\..\temp\cdr\ta_retcode.obj + -del ..\..\..\..\..\temp\cdr\ta_version.obj + -del $(TARGET) + -del ../../../../../bin/*.map + -del ../../../../../bin/*._xe + -del ../../../../../bin/*.tds + -del ../../../../../bin/*.pdb + -del ../../../../../bin/*.pbo + -del ../../../../../bin/*.pbi + -del ../../../../../bin/*.pbt + -del ../../../../../temp/cdr/*.pch + -del ../../../../../temp/cdr/*.idb + -del ../../../../../temp/cdr/ta_common_cdr/*.pch + -del ../../../../../temp/cdr/ta_common_cdr/*.idb + -del ../../../../../temp/cdr/ta_common_cdr/*.obj + +####### Compile + +..\..\..\..\..\temp\cdr\ta_global.obj: ..\..\..\..\..\src\ta_common\ta_global.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_global.obj ..\..\..\..\..\src\ta_common\ta_global.c + +..\..\..\..\..\temp\cdr\ta_retcode.obj: ..\..\..\..\..\src\ta_common\ta_retcode.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_retcode.obj ..\..\..\..\..\src\ta_common\ta_retcode.c + +..\..\..\..\..\temp\cdr\ta_version.obj: ..\..\..\..\..\src\ta_common\ta_version.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_version.obj ..\..\..\..\..\src\ta_common\ta_version.c + diff --git a/make/cdr/win32/msvc/ta_func/Makefile b/make/cdr/win32/msvc/ta_func/Makefile new file mode 100644 index 000000000..d22e9b139 --- /dev/null +++ b/make/cdr/win32/msvc/ta_func/Makefile @@ -0,0 +1,1038 @@ +############################################################################# +# Makefile for building ta_func_cdr +# Generated by tmake; +# Project: ta_func/ta_func +# Template: lib +############################################################################# + +####### Compiler, tools and options + +CC = cl +CXX = cl +CFLAGS = -nologo -W3 -MD -O2 -DWIN32 -D_MBCS -D_LIB -DQT_THREAD_SUPPORT +CXXFLAGS= -nologo -W3 -MD -O2 -DWIN32 -D_MBCS -D_LIB -DQT_THREAD_SUPPORT +INCPATH = -I"..\..\..\..\..\src\ta_common" -I"\n" -I"..\..\..\..\..\include" +LIB = lib /NOLOGO +MOC = moc +UIC = uic + +ZIP = zip -r -9 + +####### Files + +HEADERS = +SOURCES = ..\..\..\..\..\src\ta_func\ta_utility.c \ + ..\..\..\..\..\src\ta_func\ta_ACOS.c \ + ..\..\..\..\..\src\ta_func\ta_AD.c \ + ..\..\..\..\..\src\ta_func\ta_ADD.c \ + ..\..\..\..\..\src\ta_func\ta_ADOSC.c \ + ..\..\..\..\..\src\ta_func\ta_ADX.c \ + ..\..\..\..\..\src\ta_func\ta_ADXR.c \ + ..\..\..\..\..\src\ta_func\ta_APO.c \ + ..\..\..\..\..\src\ta_func\ta_AROON.c \ + ..\..\..\..\..\src\ta_func\ta_AROONOSC.c \ + ..\..\..\..\..\src\ta_func\ta_ASIN.c \ + ..\..\..\..\..\src\ta_func\ta_ATAN.c \ + ..\..\..\..\..\src\ta_func\ta_ATR.c \ + ..\..\..\..\..\src\ta_func\ta_AVGPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_BBANDS.c \ + ..\..\..\..\..\src\ta_func\ta_BETA.c \ + ..\..\..\..\..\src\ta_func\ta_BOP.c \ + ..\..\..\..\..\src\ta_func\ta_CCI.c \ + ..\..\..\..\..\src\ta_func\ta_CDL2CROWS.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3BLACKCROWS.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3INSIDE.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3LINESTRIKE.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3OUTSIDE.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3STARSINSOUTH.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3WHITESOLDIERS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLABANDONEDBABY.c \ + ..\..\..\..\..\src\ta_func\ta_CDLADVANCEBLOCK.c \ + ..\..\..\..\..\src\ta_func\ta_CDLBELTHOLD.c \ + ..\..\..\..\..\src\ta_func\ta_CDLBREAKAWAY.c \ + ..\..\..\..\..\src\ta_func\ta_CDLCLOSINGMARUBOZU.c \ + ..\..\..\..\..\src\ta_func\ta_CDLCONCEALBABYSWALL.c \ + ..\..\..\..\..\src\ta_func\ta_CDLCOUNTERATTACK.c \ + ..\..\..\..\..\src\ta_func\ta_CDLDARKCLOUDCOVER.c \ + ..\..\..\..\..\src\ta_func\ta_CDLDOJI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLDOJISTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLDRAGONFLYDOJI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLENGULFING.c \ + ..\..\..\..\..\src\ta_func\ta_CDLEVENINGDOJISTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLEVENINGSTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLGAPSIDESIDEWHITE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLGRAVESTONEDOJI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHAMMER.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHANGINGMAN.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHARAMI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHARAMICROSS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHIGHWAVE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKEMOD.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHOMINGPIGEON.c \ + ..\..\..\..\..\src\ta_func\ta_CDLIDENTICAL3CROWS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLINNECK.c \ + ..\..\..\..\..\src\ta_func\ta_CDLINVERTEDHAMMER.c \ + ..\..\..\..\..\src\ta_func\ta_CDLKICKING.c \ + ..\..\..\..\..\src\ta_func\ta_CDLKICKINGBYLENGTH.c \ + ..\..\..\..\..\src\ta_func\ta_CDLLADDERBOTTOM.c \ + ..\..\..\..\..\src\ta_func\ta_CDLLONGLEGGEDDOJI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLLONGLINE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMARUBOZU.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMATCHINGLOW.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMATHOLD.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMORNINGDOJISTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMORNINGSTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLONNECK.c \ + ..\..\..\..\..\src\ta_func\ta_CDLPIERCING.c \ + ..\..\..\..\..\src\ta_func\ta_CDLRICKSHAWMAN.c \ + ..\..\..\..\..\src\ta_func\ta_CDLRISEFALL3METHODS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSEPARATINGLINES.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSHOOTINGSTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSHORTLINE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSPINNINGTOP.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSTALLEDPATTERN.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSTICKSANDWICH.c \ + ..\..\..\..\..\src\ta_func\ta_CDLTAKURI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLTASUKIGAP.c \ + ..\..\..\..\..\src\ta_func\ta_CDLTHRUSTING.c \ + ..\..\..\..\..\src\ta_func\ta_CDLTRISTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLUNIQUE3RIVER.c \ + ..\..\..\..\..\src\ta_func\ta_CDLUPSIDEGAP2CROWS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLXSIDEGAP3METHODS.c \ + ..\..\..\..\..\src\ta_func\ta_CEIL.c \ + ..\..\..\..\..\src\ta_func\ta_CMO.c \ + ..\..\..\..\..\src\ta_func\ta_CORREL.c \ + ..\..\..\..\..\src\ta_func\ta_COS.c \ + ..\..\..\..\..\src\ta_func\ta_COSH.c \ + ..\..\..\..\..\src\ta_func\ta_DEMA.c \ + ..\..\..\..\..\src\ta_func\ta_DIV.c \ + ..\..\..\..\..\src\ta_func\ta_DX.c \ + ..\..\..\..\..\src\ta_func\ta_EMA.c \ + ..\..\..\..\..\src\ta_func\ta_EXP.c \ + ..\..\..\..\..\src\ta_func\ta_FLOOR.c \ + ..\..\..\..\..\src\ta_func\ta_HT_DCPERIOD.c \ + ..\..\..\..\..\src\ta_func\ta_HT_DCPHASE.c \ + ..\..\..\..\..\src\ta_func\ta_HT_PHASOR.c \ + ..\..\..\..\..\src\ta_func\ta_HT_SINE.c \ + ..\..\..\..\..\src\ta_func\ta_HT_TRENDLINE.c \ + ..\..\..\..\..\src\ta_func\ta_HT_TRENDMODE.c \ + ..\..\..\..\..\src\ta_func\ta_KAMA.c \ + ..\..\..\..\..\src\ta_func\ta_LINEARREG.c \ + ..\..\..\..\..\src\ta_func\ta_LINEARREG_ANGLE.c \ + ..\..\..\..\..\src\ta_func\ta_LINEARREG_INTERCEPT.c \ + ..\..\..\..\..\src\ta_func\ta_LINEARREG_SLOPE.c \ + ..\..\..\..\..\src\ta_func\ta_LN.c \ + ..\..\..\..\..\src\ta_func\ta_LOG10.c \ + ..\..\..\..\..\src\ta_func\ta_MA.c \ + ..\..\..\..\..\src\ta_func\ta_MACD.c \ + ..\..\..\..\..\src\ta_func\ta_MACDEXT.c \ + ..\..\..\..\..\src\ta_func\ta_MACDFIX.c \ + ..\..\..\..\..\src\ta_func\ta_MAMA.c \ + ..\..\..\..\..\src\ta_func\ta_MAVP.c \ + ..\..\..\..\..\src\ta_func\ta_MAX.c \ + ..\..\..\..\..\src\ta_func\ta_MAXINDEX.c \ + ..\..\..\..\..\src\ta_func\ta_MEDPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_MFI.c \ + ..\..\..\..\..\src\ta_func\ta_MIDPOINT.c \ + ..\..\..\..\..\src\ta_func\ta_MIDPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_MIN.c \ + ..\..\..\..\..\src\ta_func\ta_MININDEX.c \ + ..\..\..\..\..\src\ta_func\ta_MINMAX.c \ + ..\..\..\..\..\src\ta_func\ta_MINMAXINDEX.c \ + ..\..\..\..\..\src\ta_func\ta_MINUS_DI.c \ + ..\..\..\..\..\src\ta_func\ta_MINUS_DM.c \ + ..\..\..\..\..\src\ta_func\ta_MOM.c \ + ..\..\..\..\..\src\ta_func\ta_MULT.c \ + ..\..\..\..\..\src\ta_func\ta_NATR.c \ + ..\..\..\..\..\src\ta_func\ta_OBV.c \ + ..\..\..\..\..\src\ta_func\ta_PLUS_DI.c \ + ..\..\..\..\..\src\ta_func\ta_PLUS_DM.c \ + ..\..\..\..\..\src\ta_func\ta_PPO.c \ + ..\..\..\..\..\src\ta_func\ta_ROC.c \ + ..\..\..\..\..\src\ta_func\ta_ROCP.c \ + ..\..\..\..\..\src\ta_func\ta_ROCR.c \ + ..\..\..\..\..\src\ta_func\ta_ROCR100.c \ + ..\..\..\..\..\src\ta_func\ta_RSI.c \ + ..\..\..\..\..\src\ta_func\ta_SAR.c \ + ..\..\..\..\..\src\ta_func\ta_SAREXT.c \ + ..\..\..\..\..\src\ta_func\ta_SIN.c \ + ..\..\..\..\..\src\ta_func\ta_SINH.c \ + ..\..\..\..\..\src\ta_func\ta_SMA.c \ + ..\..\..\..\..\src\ta_func\ta_SQRT.c \ + ..\..\..\..\..\src\ta_func\ta_STDDEV.c \ + ..\..\..\..\..\src\ta_func\ta_STOCH.c \ + ..\..\..\..\..\src\ta_func\ta_STOCHF.c \ + ..\..\..\..\..\src\ta_func\ta_STOCHRSI.c \ + ..\..\..\..\..\src\ta_func\ta_SUB.c \ + ..\..\..\..\..\src\ta_func\ta_SUM.c \ + ..\..\..\..\..\src\ta_func\ta_T3.c \ + ..\..\..\..\..\src\ta_func\ta_TAN.c \ + ..\..\..\..\..\src\ta_func\ta_TANH.c \ + ..\..\..\..\..\src\ta_func\ta_TEMA.c \ + ..\..\..\..\..\src\ta_func\ta_TRANGE.c \ + ..\..\..\..\..\src\ta_func\ta_TRIMA.c \ + ..\..\..\..\..\src\ta_func\ta_TRIX.c \ + ..\..\..\..\..\src\ta_func\ta_TSF.c \ + ..\..\..\..\..\src\ta_func\ta_TYPPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_ULTOSC.c \ + ..\..\..\..\..\src\ta_func\ta_VAR.c \ + ..\..\..\..\..\src\ta_func\ta_WCLPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_WILLR.c \ + ..\..\..\..\..\src\ta_func\ta_WMA.c +OBJECTS = ..\..\..\..\..\temp\cdr\ta_utility.obj \ + ..\..\..\..\..\temp\cdr\ta_ACOS.obj \ + ..\..\..\..\..\temp\cdr\ta_AD.obj \ + ..\..\..\..\..\temp\cdr\ta_ADD.obj \ + ..\..\..\..\..\temp\cdr\ta_ADOSC.obj \ + ..\..\..\..\..\temp\cdr\ta_ADX.obj \ + ..\..\..\..\..\temp\cdr\ta_ADXR.obj \ + ..\..\..\..\..\temp\cdr\ta_APO.obj \ + ..\..\..\..\..\temp\cdr\ta_AROON.obj \ + ..\..\..\..\..\temp\cdr\ta_AROONOSC.obj \ + ..\..\..\..\..\temp\cdr\ta_ASIN.obj \ + ..\..\..\..\..\temp\cdr\ta_ATAN.obj \ + ..\..\..\..\..\temp\cdr\ta_ATR.obj \ + ..\..\..\..\..\temp\cdr\ta_AVGPRICE.obj \ + ..\..\..\..\..\temp\cdr\ta_BBANDS.obj \ + ..\..\..\..\..\temp\cdr\ta_BETA.obj \ + ..\..\..\..\..\temp\cdr\ta_BOP.obj \ + ..\..\..\..\..\temp\cdr\ta_CCI.obj \ + ..\..\..\..\..\temp\cdr\ta_CDL2CROWS.obj \ + ..\..\..\..\..\temp\cdr\ta_CDL3BLACKCROWS.obj \ + ..\..\..\..\..\temp\cdr\ta_CDL3INSIDE.obj \ + ..\..\..\..\..\temp\cdr\ta_CDL3LINESTRIKE.obj \ + ..\..\..\..\..\temp\cdr\ta_CDL3OUTSIDE.obj \ + ..\..\..\..\..\temp\cdr\ta_CDL3STARSINSOUTH.obj \ + ..\..\..\..\..\temp\cdr\ta_CDL3WHITESOLDIERS.obj \ + ..\..\..\..\..\temp\cdr\ta_CDLABANDONEDBABY.obj \ + ..\..\..\..\..\temp\cdr\ta_CDLADVANCEBLOCK.obj \ + ..\..\..\..\..\temp\cdr\ta_CDLBELTHOLD.obj \ + ..\..\..\..\..\temp\cdr\ta_CDLBREAKAWAY.obj \ + ..\..\..\..\..\temp\cdr\ta_CDLCLOSINGMARUBOZU.obj \ + ..\..\..\..\..\temp\cdr\ta_CDLCONCEALBABYSWALL.obj \ + ..\..\..\..\..\temp\cdr\ta_CDLCOUNTERATTACK.obj \ + ..\..\..\..\..\temp\cdr\ta_CDLDARKCLOUDCOVER.obj \ + ..\..\..\..\..\temp\cdr\ta_CDLDOJI.obj \ + ..\..\..\..\..\temp\cdr\ta_CDLDOJISTAR.obj \ + ..\..\..\..\..\temp\cdr\ta_CDLDRAGONFLYDOJI.obj \ + ..\..\..\..\..\temp\cdr\ta_CDLENGULFING.obj \ + ..\..\..\..\..\temp\cdr\ta_CDLEVENINGDOJISTAR.obj \ + ..\..\..\..\..\temp\cdr\ta_CDLEVENINGSTAR.obj \ + ..\..\..\..\..\temp\cdr\ta_CDLGAPSIDESIDEWHITE.obj \ + ..\..\..\..\..\temp\cdr\ta_CDLGRAVESTONEDOJI.obj \ + ..\..\..\..\..\temp\cdr\ta_CDLHAMMER.obj \ + ..\..\..\..\..\temp\cdr\ta_CDLHANGINGMAN.obj \ + ..\..\..\..\..\temp\cdr\ta_CDLHARAMI.obj \ + ..\..\..\..\..\temp\cdr\ta_CDLHARAMICROSS.obj \ + ..\..\..\..\..\temp\cdr\ta_CDLHIGHWAVE.obj \ + ..\..\..\..\..\temp\cdr\ta_CDLHIKKAKE.obj \ + ..\..\..\..\..\temp\cdr\ta_CDLHIKKAKEMOD.obj \ + ..\..\..\..\..\temp\cdr\ta_CDLHOMINGPIGEON.obj \ + ..\..\..\..\..\temp\cdr\ta_CDLIDENTICAL3CROWS.obj \ + ..\..\..\..\..\temp\cdr\ta_CDLINNECK.obj \ + ..\..\..\..\..\temp\cdr\ta_CDLINVERTEDHAMMER.obj \ + ..\..\..\..\..\temp\cdr\ta_CDLKICKING.obj \ + ..\..\..\..\..\temp\cdr\ta_CDLKICKINGBYLENGTH.obj \ + ..\..\..\..\..\temp\cdr\ta_CDLLADDERBOTTOM.obj \ + ..\..\..\..\..\temp\cdr\ta_CDLLONGLEGGEDDOJI.obj \ + ..\..\..\..\..\temp\cdr\ta_CDLLONGLINE.obj \ + ..\..\..\..\..\temp\cdr\ta_CDLMARUBOZU.obj \ + ..\..\..\..\..\temp\cdr\ta_CDLMATCHINGLOW.obj \ + ..\..\..\..\..\temp\cdr\ta_CDLMATHOLD.obj \ + ..\..\..\..\..\temp\cdr\ta_CDLMORNINGDOJISTAR.obj \ + ..\..\..\..\..\temp\cdr\ta_CDLMORNINGSTAR.obj \ + ..\..\..\..\..\temp\cdr\ta_CDLONNECK.obj \ + ..\..\..\..\..\temp\cdr\ta_CDLPIERCING.obj \ + ..\..\..\..\..\temp\cdr\ta_CDLRICKSHAWMAN.obj \ + ..\..\..\..\..\temp\cdr\ta_CDLRISEFALL3METHODS.obj \ + ..\..\..\..\..\temp\cdr\ta_CDLSEPARATINGLINES.obj \ + ..\..\..\..\..\temp\cdr\ta_CDLSHOOTINGSTAR.obj \ + ..\..\..\..\..\temp\cdr\ta_CDLSHORTLINE.obj \ + ..\..\..\..\..\temp\cdr\ta_CDLSPINNINGTOP.obj \ + ..\..\..\..\..\temp\cdr\ta_CDLSTALLEDPATTERN.obj \ + ..\..\..\..\..\temp\cdr\ta_CDLSTICKSANDWICH.obj \ + ..\..\..\..\..\temp\cdr\ta_CDLTAKURI.obj \ + ..\..\..\..\..\temp\cdr\ta_CDLTASUKIGAP.obj \ + ..\..\..\..\..\temp\cdr\ta_CDLTHRUSTING.obj \ + ..\..\..\..\..\temp\cdr\ta_CDLTRISTAR.obj \ + ..\..\..\..\..\temp\cdr\ta_CDLUNIQUE3RIVER.obj \ + ..\..\..\..\..\temp\cdr\ta_CDLUPSIDEGAP2CROWS.obj \ + ..\..\..\..\..\temp\cdr\ta_CDLXSIDEGAP3METHODS.obj \ + ..\..\..\..\..\temp\cdr\ta_CEIL.obj \ + ..\..\..\..\..\temp\cdr\ta_CMO.obj \ + ..\..\..\..\..\temp\cdr\ta_CORREL.obj \ + ..\..\..\..\..\temp\cdr\ta_COS.obj \ + ..\..\..\..\..\temp\cdr\ta_COSH.obj \ + ..\..\..\..\..\temp\cdr\ta_DEMA.obj \ + ..\..\..\..\..\temp\cdr\ta_DIV.obj \ + ..\..\..\..\..\temp\cdr\ta_DX.obj \ + ..\..\..\..\..\temp\cdr\ta_EMA.obj \ + ..\..\..\..\..\temp\cdr\ta_EXP.obj \ + ..\..\..\..\..\temp\cdr\ta_FLOOR.obj \ + ..\..\..\..\..\temp\cdr\ta_HT_DCPERIOD.obj \ + ..\..\..\..\..\temp\cdr\ta_HT_DCPHASE.obj \ + ..\..\..\..\..\temp\cdr\ta_HT_PHASOR.obj \ + ..\..\..\..\..\temp\cdr\ta_HT_SINE.obj \ + ..\..\..\..\..\temp\cdr\ta_HT_TRENDLINE.obj \ + ..\..\..\..\..\temp\cdr\ta_HT_TRENDMODE.obj \ + ..\..\..\..\..\temp\cdr\ta_KAMA.obj \ + ..\..\..\..\..\temp\cdr\ta_LINEARREG.obj \ + ..\..\..\..\..\temp\cdr\ta_LINEARREG_ANGLE.obj \ + ..\..\..\..\..\temp\cdr\ta_LINEARREG_INTERCEPT.obj \ + ..\..\..\..\..\temp\cdr\ta_LINEARREG_SLOPE.obj \ + ..\..\..\..\..\temp\cdr\ta_LN.obj \ + ..\..\..\..\..\temp\cdr\ta_LOG10.obj \ + ..\..\..\..\..\temp\cdr\ta_MA.obj \ + ..\..\..\..\..\temp\cdr\ta_MACD.obj \ + ..\..\..\..\..\temp\cdr\ta_MACDEXT.obj \ + ..\..\..\..\..\temp\cdr\ta_MACDFIX.obj \ + ..\..\..\..\..\temp\cdr\ta_MAMA.obj \ + ..\..\..\..\..\temp\cdr\ta_MAVP.obj \ + ..\..\..\..\..\temp\cdr\ta_MAX.obj \ + ..\..\..\..\..\temp\cdr\ta_MAXINDEX.obj \ + ..\..\..\..\..\temp\cdr\ta_MEDPRICE.obj \ + ..\..\..\..\..\temp\cdr\ta_MFI.obj \ + ..\..\..\..\..\temp\cdr\ta_MIDPOINT.obj \ + ..\..\..\..\..\temp\cdr\ta_MIDPRICE.obj \ + ..\..\..\..\..\temp\cdr\ta_MIN.obj \ + ..\..\..\..\..\temp\cdr\ta_MININDEX.obj \ + ..\..\..\..\..\temp\cdr\ta_MINMAX.obj \ + ..\..\..\..\..\temp\cdr\ta_MINMAXINDEX.obj \ + ..\..\..\..\..\temp\cdr\ta_MINUS_DI.obj \ + ..\..\..\..\..\temp\cdr\ta_MINUS_DM.obj \ + ..\..\..\..\..\temp\cdr\ta_MOM.obj \ + ..\..\..\..\..\temp\cdr\ta_MULT.obj \ + ..\..\..\..\..\temp\cdr\ta_NATR.obj \ + ..\..\..\..\..\temp\cdr\ta_OBV.obj \ + ..\..\..\..\..\temp\cdr\ta_PLUS_DI.obj \ + ..\..\..\..\..\temp\cdr\ta_PLUS_DM.obj \ + ..\..\..\..\..\temp\cdr\ta_PPO.obj \ + ..\..\..\..\..\temp\cdr\ta_ROC.obj \ + ..\..\..\..\..\temp\cdr\ta_ROCP.obj \ + ..\..\..\..\..\temp\cdr\ta_ROCR.obj \ + ..\..\..\..\..\temp\cdr\ta_ROCR100.obj \ + ..\..\..\..\..\temp\cdr\ta_RSI.obj \ + ..\..\..\..\..\temp\cdr\ta_SAR.obj \ + ..\..\..\..\..\temp\cdr\ta_SAREXT.obj \ + ..\..\..\..\..\temp\cdr\ta_SIN.obj \ + ..\..\..\..\..\temp\cdr\ta_SINH.obj \ + ..\..\..\..\..\temp\cdr\ta_SMA.obj \ + ..\..\..\..\..\temp\cdr\ta_SQRT.obj \ + ..\..\..\..\..\temp\cdr\ta_STDDEV.obj \ + ..\..\..\..\..\temp\cdr\ta_STOCH.obj \ + ..\..\..\..\..\temp\cdr\ta_STOCHF.obj \ + ..\..\..\..\..\temp\cdr\ta_STOCHRSI.obj \ + ..\..\..\..\..\temp\cdr\ta_SUB.obj \ + ..\..\..\..\..\temp\cdr\ta_SUM.obj \ + ..\..\..\..\..\temp\cdr\ta_T3.obj \ + ..\..\..\..\..\temp\cdr\ta_TAN.obj \ + ..\..\..\..\..\temp\cdr\ta_TANH.obj \ + ..\..\..\..\..\temp\cdr\ta_TEMA.obj \ + ..\..\..\..\..\temp\cdr\ta_TRANGE.obj \ + ..\..\..\..\..\temp\cdr\ta_TRIMA.obj \ + ..\..\..\..\..\temp\cdr\ta_TRIX.obj \ + ..\..\..\..\..\temp\cdr\ta_TSF.obj \ + ..\..\..\..\..\temp\cdr\ta_TYPPRICE.obj \ + ..\..\..\..\..\temp\cdr\ta_ULTOSC.obj \ + ..\..\..\..\..\temp\cdr\ta_VAR.obj \ + ..\..\..\..\..\temp\cdr\ta_WCLPRICE.obj \ + ..\..\..\..\..\temp\cdr\ta_WILLR.obj \ + ..\..\..\..\..\temp\cdr\ta_WMA.obj +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ..\..\..\..\..\lib\ta_func_cdr.lib +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .c + +.cpp.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $< + +.cxx.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $< + +.cc.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $< + +.c.obj: + $(CC) -c $(CFLAGS) $(INCPATH) -Fo$@ $< + +####### Build rules + +all: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + $(LIB) /OUT:$(TARGET) @<< + $(OBJECTS) $(OBJMOC) +<< + +moc: $(SRCMOC) + +tmake: ../cdr/win32/msvc/ta_func/Makefile + +../cdr/win32/msvc/ta_func/Makefile: ta_func/ta_func.pro + tmake ta_func/ta_func.pro -o ../cdr/win32/msvc/ta_func/Makefile + +dist: + $(ZIP) ta_func/ta_func.zip ta_func/ta_func.pro $(SOURCES) $(HEADERS) $(DIST) $(INTERFACES) + +clean: + -del ..\..\..\..\..\temp\cdr\ta_utility.obj + -del ..\..\..\..\..\temp\cdr\ta_ACOS.obj + -del ..\..\..\..\..\temp\cdr\ta_AD.obj + -del ..\..\..\..\..\temp\cdr\ta_ADD.obj + -del ..\..\..\..\..\temp\cdr\ta_ADOSC.obj + -del ..\..\..\..\..\temp\cdr\ta_ADX.obj + -del ..\..\..\..\..\temp\cdr\ta_ADXR.obj + -del ..\..\..\..\..\temp\cdr\ta_APO.obj + -del ..\..\..\..\..\temp\cdr\ta_AROON.obj + -del ..\..\..\..\..\temp\cdr\ta_AROONOSC.obj + -del ..\..\..\..\..\temp\cdr\ta_ASIN.obj + -del ..\..\..\..\..\temp\cdr\ta_ATAN.obj + -del ..\..\..\..\..\temp\cdr\ta_ATR.obj + -del ..\..\..\..\..\temp\cdr\ta_AVGPRICE.obj + -del ..\..\..\..\..\temp\cdr\ta_BBANDS.obj + -del ..\..\..\..\..\temp\cdr\ta_BETA.obj + -del ..\..\..\..\..\temp\cdr\ta_BOP.obj + -del ..\..\..\..\..\temp\cdr\ta_CCI.obj + -del ..\..\..\..\..\temp\cdr\ta_CDL2CROWS.obj + -del ..\..\..\..\..\temp\cdr\ta_CDL3BLACKCROWS.obj + -del ..\..\..\..\..\temp\cdr\ta_CDL3INSIDE.obj + -del ..\..\..\..\..\temp\cdr\ta_CDL3LINESTRIKE.obj + -del ..\..\..\..\..\temp\cdr\ta_CDL3OUTSIDE.obj + -del ..\..\..\..\..\temp\cdr\ta_CDL3STARSINSOUTH.obj + -del ..\..\..\..\..\temp\cdr\ta_CDL3WHITESOLDIERS.obj + -del ..\..\..\..\..\temp\cdr\ta_CDLABANDONEDBABY.obj + -del ..\..\..\..\..\temp\cdr\ta_CDLADVANCEBLOCK.obj + -del ..\..\..\..\..\temp\cdr\ta_CDLBELTHOLD.obj + -del ..\..\..\..\..\temp\cdr\ta_CDLBREAKAWAY.obj + -del ..\..\..\..\..\temp\cdr\ta_CDLCLOSINGMARUBOZU.obj + -del ..\..\..\..\..\temp\cdr\ta_CDLCONCEALBABYSWALL.obj + -del ..\..\..\..\..\temp\cdr\ta_CDLCOUNTERATTACK.obj + -del ..\..\..\..\..\temp\cdr\ta_CDLDARKCLOUDCOVER.obj + -del ..\..\..\..\..\temp\cdr\ta_CDLDOJI.obj + -del ..\..\..\..\..\temp\cdr\ta_CDLDOJISTAR.obj + -del ..\..\..\..\..\temp\cdr\ta_CDLDRAGONFLYDOJI.obj + -del ..\..\..\..\..\temp\cdr\ta_CDLENGULFING.obj + -del ..\..\..\..\..\temp\cdr\ta_CDLEVENINGDOJISTAR.obj + -del ..\..\..\..\..\temp\cdr\ta_CDLEVENINGSTAR.obj + -del ..\..\..\..\..\temp\cdr\ta_CDLGAPSIDESIDEWHITE.obj + -del ..\..\..\..\..\temp\cdr\ta_CDLGRAVESTONEDOJI.obj + -del ..\..\..\..\..\temp\cdr\ta_CDLHAMMER.obj + -del ..\..\..\..\..\temp\cdr\ta_CDLHANGINGMAN.obj + -del ..\..\..\..\..\temp\cdr\ta_CDLHARAMI.obj + -del ..\..\..\..\..\temp\cdr\ta_CDLHARAMICROSS.obj + -del ..\..\..\..\..\temp\cdr\ta_CDLHIGHWAVE.obj + -del ..\..\..\..\..\temp\cdr\ta_CDLHIKKAKE.obj + -del ..\..\..\..\..\temp\cdr\ta_CDLHIKKAKEMOD.obj + -del ..\..\..\..\..\temp\cdr\ta_CDLHOMINGPIGEON.obj + -del ..\..\..\..\..\temp\cdr\ta_CDLIDENTICAL3CROWS.obj + -del ..\..\..\..\..\temp\cdr\ta_CDLINNECK.obj + -del ..\..\..\..\..\temp\cdr\ta_CDLINVERTEDHAMMER.obj + -del ..\..\..\..\..\temp\cdr\ta_CDLKICKING.obj + -del ..\..\..\..\..\temp\cdr\ta_CDLKICKINGBYLENGTH.obj + -del ..\..\..\..\..\temp\cdr\ta_CDLLADDERBOTTOM.obj + -del ..\..\..\..\..\temp\cdr\ta_CDLLONGLEGGEDDOJI.obj + -del ..\..\..\..\..\temp\cdr\ta_CDLLONGLINE.obj + -del ..\..\..\..\..\temp\cdr\ta_CDLMARUBOZU.obj + -del ..\..\..\..\..\temp\cdr\ta_CDLMATCHINGLOW.obj + -del ..\..\..\..\..\temp\cdr\ta_CDLMATHOLD.obj + -del ..\..\..\..\..\temp\cdr\ta_CDLMORNINGDOJISTAR.obj + -del ..\..\..\..\..\temp\cdr\ta_CDLMORNINGSTAR.obj + -del ..\..\..\..\..\temp\cdr\ta_CDLONNECK.obj + -del ..\..\..\..\..\temp\cdr\ta_CDLPIERCING.obj + -del ..\..\..\..\..\temp\cdr\ta_CDLRICKSHAWMAN.obj + -del ..\..\..\..\..\temp\cdr\ta_CDLRISEFALL3METHODS.obj + -del ..\..\..\..\..\temp\cdr\ta_CDLSEPARATINGLINES.obj + -del ..\..\..\..\..\temp\cdr\ta_CDLSHOOTINGSTAR.obj + -del ..\..\..\..\..\temp\cdr\ta_CDLSHORTLINE.obj + -del ..\..\..\..\..\temp\cdr\ta_CDLSPINNINGTOP.obj + -del ..\..\..\..\..\temp\cdr\ta_CDLSTALLEDPATTERN.obj + -del ..\..\..\..\..\temp\cdr\ta_CDLSTICKSANDWICH.obj + -del ..\..\..\..\..\temp\cdr\ta_CDLTAKURI.obj + -del ..\..\..\..\..\temp\cdr\ta_CDLTASUKIGAP.obj + -del ..\..\..\..\..\temp\cdr\ta_CDLTHRUSTING.obj + -del ..\..\..\..\..\temp\cdr\ta_CDLTRISTAR.obj + -del ..\..\..\..\..\temp\cdr\ta_CDLUNIQUE3RIVER.obj + -del ..\..\..\..\..\temp\cdr\ta_CDLUPSIDEGAP2CROWS.obj + -del ..\..\..\..\..\temp\cdr\ta_CDLXSIDEGAP3METHODS.obj + -del ..\..\..\..\..\temp\cdr\ta_CEIL.obj + -del ..\..\..\..\..\temp\cdr\ta_CMO.obj + -del ..\..\..\..\..\temp\cdr\ta_CORREL.obj + -del ..\..\..\..\..\temp\cdr\ta_COS.obj + -del ..\..\..\..\..\temp\cdr\ta_COSH.obj + -del ..\..\..\..\..\temp\cdr\ta_DEMA.obj + -del ..\..\..\..\..\temp\cdr\ta_DIV.obj + -del ..\..\..\..\..\temp\cdr\ta_DX.obj + -del ..\..\..\..\..\temp\cdr\ta_EMA.obj + -del ..\..\..\..\..\temp\cdr\ta_EXP.obj + -del ..\..\..\..\..\temp\cdr\ta_FLOOR.obj + -del ..\..\..\..\..\temp\cdr\ta_HT_DCPERIOD.obj + -del ..\..\..\..\..\temp\cdr\ta_HT_DCPHASE.obj + -del ..\..\..\..\..\temp\cdr\ta_HT_PHASOR.obj + -del ..\..\..\..\..\temp\cdr\ta_HT_SINE.obj + -del ..\..\..\..\..\temp\cdr\ta_HT_TRENDLINE.obj + -del ..\..\..\..\..\temp\cdr\ta_HT_TRENDMODE.obj + -del ..\..\..\..\..\temp\cdr\ta_KAMA.obj + -del ..\..\..\..\..\temp\cdr\ta_LINEARREG.obj + -del ..\..\..\..\..\temp\cdr\ta_LINEARREG_ANGLE.obj + -del ..\..\..\..\..\temp\cdr\ta_LINEARREG_INTERCEPT.obj + -del ..\..\..\..\..\temp\cdr\ta_LINEARREG_SLOPE.obj + -del ..\..\..\..\..\temp\cdr\ta_LN.obj + -del ..\..\..\..\..\temp\cdr\ta_LOG10.obj + -del ..\..\..\..\..\temp\cdr\ta_MA.obj + -del ..\..\..\..\..\temp\cdr\ta_MACD.obj + -del ..\..\..\..\..\temp\cdr\ta_MACDEXT.obj + -del ..\..\..\..\..\temp\cdr\ta_MACDFIX.obj + -del ..\..\..\..\..\temp\cdr\ta_MAMA.obj + -del ..\..\..\..\..\temp\cdr\ta_MAVP.obj + -del ..\..\..\..\..\temp\cdr\ta_MAX.obj + -del ..\..\..\..\..\temp\cdr\ta_MAXINDEX.obj + -del ..\..\..\..\..\temp\cdr\ta_MEDPRICE.obj + -del ..\..\..\..\..\temp\cdr\ta_MFI.obj + -del ..\..\..\..\..\temp\cdr\ta_MIDPOINT.obj + -del ..\..\..\..\..\temp\cdr\ta_MIDPRICE.obj + -del ..\..\..\..\..\temp\cdr\ta_MIN.obj + -del ..\..\..\..\..\temp\cdr\ta_MININDEX.obj + -del ..\..\..\..\..\temp\cdr\ta_MINMAX.obj + -del ..\..\..\..\..\temp\cdr\ta_MINMAXINDEX.obj + -del ..\..\..\..\..\temp\cdr\ta_MINUS_DI.obj + -del ..\..\..\..\..\temp\cdr\ta_MINUS_DM.obj + -del ..\..\..\..\..\temp\cdr\ta_MOM.obj + -del ..\..\..\..\..\temp\cdr\ta_MULT.obj + -del ..\..\..\..\..\temp\cdr\ta_NATR.obj + -del ..\..\..\..\..\temp\cdr\ta_OBV.obj + -del ..\..\..\..\..\temp\cdr\ta_PLUS_DI.obj + -del ..\..\..\..\..\temp\cdr\ta_PLUS_DM.obj + -del ..\..\..\..\..\temp\cdr\ta_PPO.obj + -del ..\..\..\..\..\temp\cdr\ta_ROC.obj + -del ..\..\..\..\..\temp\cdr\ta_ROCP.obj + -del ..\..\..\..\..\temp\cdr\ta_ROCR.obj + -del ..\..\..\..\..\temp\cdr\ta_ROCR100.obj + -del ..\..\..\..\..\temp\cdr\ta_RSI.obj + -del ..\..\..\..\..\temp\cdr\ta_SAR.obj + -del ..\..\..\..\..\temp\cdr\ta_SAREXT.obj + -del ..\..\..\..\..\temp\cdr\ta_SIN.obj + -del ..\..\..\..\..\temp\cdr\ta_SINH.obj + -del ..\..\..\..\..\temp\cdr\ta_SMA.obj + -del ..\..\..\..\..\temp\cdr\ta_SQRT.obj + -del ..\..\..\..\..\temp\cdr\ta_STDDEV.obj + -del ..\..\..\..\..\temp\cdr\ta_STOCH.obj + -del ..\..\..\..\..\temp\cdr\ta_STOCHF.obj + -del ..\..\..\..\..\temp\cdr\ta_STOCHRSI.obj + -del ..\..\..\..\..\temp\cdr\ta_SUB.obj + -del ..\..\..\..\..\temp\cdr\ta_SUM.obj + -del ..\..\..\..\..\temp\cdr\ta_T3.obj + -del ..\..\..\..\..\temp\cdr\ta_TAN.obj + -del ..\..\..\..\..\temp\cdr\ta_TANH.obj + -del ..\..\..\..\..\temp\cdr\ta_TEMA.obj + -del ..\..\..\..\..\temp\cdr\ta_TRANGE.obj + -del ..\..\..\..\..\temp\cdr\ta_TRIMA.obj + -del ..\..\..\..\..\temp\cdr\ta_TRIX.obj + -del ..\..\..\..\..\temp\cdr\ta_TSF.obj + -del ..\..\..\..\..\temp\cdr\ta_TYPPRICE.obj + -del ..\..\..\..\..\temp\cdr\ta_ULTOSC.obj + -del ..\..\..\..\..\temp\cdr\ta_VAR.obj + -del ..\..\..\..\..\temp\cdr\ta_WCLPRICE.obj + -del ..\..\..\..\..\temp\cdr\ta_WILLR.obj + -del ..\..\..\..\..\temp\cdr\ta_WMA.obj + -del $(TARGET) + -del ../../../../../bin/*.map + -del ../../../../../bin/*._xe + -del ../../../../../bin/*.tds + -del ../../../../../bin/*.pdb + -del ../../../../../bin/*.pbo + -del ../../../../../bin/*.pbi + -del ../../../../../bin/*.pbt + -del ../../../../../temp/cdr/*.pch + -del ../../../../../temp/cdr/*.idb + -del ../../../../../temp/cdr/ta_func/*.pch + -del ../../../../../temp/cdr/ta_func/*.idb + -del ../../../../../temp/cdr/ta_func/*.obj + +####### Compile + +..\..\..\..\..\temp\cdr\ta_utility.obj: ..\..\..\..\..\src\ta_func\ta_utility.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_utility.obj ..\..\..\..\..\src\ta_func\ta_utility.c + +..\..\..\..\..\temp\cdr\ta_ACOS.obj: ..\..\..\..\..\src\ta_func\ta_ACOS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_ACOS.obj ..\..\..\..\..\src\ta_func\ta_ACOS.c + +..\..\..\..\..\temp\cdr\ta_AD.obj: ..\..\..\..\..\src\ta_func\ta_AD.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_AD.obj ..\..\..\..\..\src\ta_func\ta_AD.c + +..\..\..\..\..\temp\cdr\ta_ADD.obj: ..\..\..\..\..\src\ta_func\ta_ADD.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_ADD.obj ..\..\..\..\..\src\ta_func\ta_ADD.c + +..\..\..\..\..\temp\cdr\ta_ADOSC.obj: ..\..\..\..\..\src\ta_func\ta_ADOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_ADOSC.obj ..\..\..\..\..\src\ta_func\ta_ADOSC.c + +..\..\..\..\..\temp\cdr\ta_ADX.obj: ..\..\..\..\..\src\ta_func\ta_ADX.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_ADX.obj ..\..\..\..\..\src\ta_func\ta_ADX.c + +..\..\..\..\..\temp\cdr\ta_ADXR.obj: ..\..\..\..\..\src\ta_func\ta_ADXR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_ADXR.obj ..\..\..\..\..\src\ta_func\ta_ADXR.c + +..\..\..\..\..\temp\cdr\ta_APO.obj: ..\..\..\..\..\src\ta_func\ta_APO.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_APO.obj ..\..\..\..\..\src\ta_func\ta_APO.c + +..\..\..\..\..\temp\cdr\ta_AROON.obj: ..\..\..\..\..\src\ta_func\ta_AROON.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_AROON.obj ..\..\..\..\..\src\ta_func\ta_AROON.c + +..\..\..\..\..\temp\cdr\ta_AROONOSC.obj: ..\..\..\..\..\src\ta_func\ta_AROONOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_AROONOSC.obj ..\..\..\..\..\src\ta_func\ta_AROONOSC.c + +..\..\..\..\..\temp\cdr\ta_ASIN.obj: ..\..\..\..\..\src\ta_func\ta_ASIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_ASIN.obj ..\..\..\..\..\src\ta_func\ta_ASIN.c + +..\..\..\..\..\temp\cdr\ta_ATAN.obj: ..\..\..\..\..\src\ta_func\ta_ATAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_ATAN.obj ..\..\..\..\..\src\ta_func\ta_ATAN.c + +..\..\..\..\..\temp\cdr\ta_ATR.obj: ..\..\..\..\..\src\ta_func\ta_ATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_ATR.obj ..\..\..\..\..\src\ta_func\ta_ATR.c + +..\..\..\..\..\temp\cdr\ta_AVGPRICE.obj: ..\..\..\..\..\src\ta_func\ta_AVGPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_AVGPRICE.obj ..\..\..\..\..\src\ta_func\ta_AVGPRICE.c + +..\..\..\..\..\temp\cdr\ta_BBANDS.obj: ..\..\..\..\..\src\ta_func\ta_BBANDS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_BBANDS.obj ..\..\..\..\..\src\ta_func\ta_BBANDS.c + +..\..\..\..\..\temp\cdr\ta_BETA.obj: ..\..\..\..\..\src\ta_func\ta_BETA.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_BETA.obj ..\..\..\..\..\src\ta_func\ta_BETA.c + +..\..\..\..\..\temp\cdr\ta_BOP.obj: ..\..\..\..\..\src\ta_func\ta_BOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_BOP.obj ..\..\..\..\..\src\ta_func\ta_BOP.c + +..\..\..\..\..\temp\cdr\ta_CCI.obj: ..\..\..\..\..\src\ta_func\ta_CCI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CCI.obj ..\..\..\..\..\src\ta_func\ta_CCI.c + +..\..\..\..\..\temp\cdr\ta_CDL2CROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDL2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CDL2CROWS.obj ..\..\..\..\..\src\ta_func\ta_CDL2CROWS.c + +..\..\..\..\..\temp\cdr\ta_CDL3BLACKCROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDL3BLACKCROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CDL3BLACKCROWS.obj ..\..\..\..\..\src\ta_func\ta_CDL3BLACKCROWS.c + +..\..\..\..\..\temp\cdr\ta_CDL3INSIDE.obj: ..\..\..\..\..\src\ta_func\ta_CDL3INSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CDL3INSIDE.obj ..\..\..\..\..\src\ta_func\ta_CDL3INSIDE.c + +..\..\..\..\..\temp\cdr\ta_CDL3LINESTRIKE.obj: ..\..\..\..\..\src\ta_func\ta_CDL3LINESTRIKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CDL3LINESTRIKE.obj ..\..\..\..\..\src\ta_func\ta_CDL3LINESTRIKE.c + +..\..\..\..\..\temp\cdr\ta_CDL3OUTSIDE.obj: ..\..\..\..\..\src\ta_func\ta_CDL3OUTSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CDL3OUTSIDE.obj ..\..\..\..\..\src\ta_func\ta_CDL3OUTSIDE.c + +..\..\..\..\..\temp\cdr\ta_CDL3STARSINSOUTH.obj: ..\..\..\..\..\src\ta_func\ta_CDL3STARSINSOUTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CDL3STARSINSOUTH.obj ..\..\..\..\..\src\ta_func\ta_CDL3STARSINSOUTH.c + +..\..\..\..\..\temp\cdr\ta_CDL3WHITESOLDIERS.obj: ..\..\..\..\..\src\ta_func\ta_CDL3WHITESOLDIERS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CDL3WHITESOLDIERS.obj ..\..\..\..\..\src\ta_func\ta_CDL3WHITESOLDIERS.c + +..\..\..\..\..\temp\cdr\ta_CDLABANDONEDBABY.obj: ..\..\..\..\..\src\ta_func\ta_CDLABANDONEDBABY.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CDLABANDONEDBABY.obj ..\..\..\..\..\src\ta_func\ta_CDLABANDONEDBABY.c + +..\..\..\..\..\temp\cdr\ta_CDLADVANCEBLOCK.obj: ..\..\..\..\..\src\ta_func\ta_CDLADVANCEBLOCK.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CDLADVANCEBLOCK.obj ..\..\..\..\..\src\ta_func\ta_CDLADVANCEBLOCK.c + +..\..\..\..\..\temp\cdr\ta_CDLBELTHOLD.obj: ..\..\..\..\..\src\ta_func\ta_CDLBELTHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CDLBELTHOLD.obj ..\..\..\..\..\src\ta_func\ta_CDLBELTHOLD.c + +..\..\..\..\..\temp\cdr\ta_CDLBREAKAWAY.obj: ..\..\..\..\..\src\ta_func\ta_CDLBREAKAWAY.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CDLBREAKAWAY.obj ..\..\..\..\..\src\ta_func\ta_CDLBREAKAWAY.c + +..\..\..\..\..\temp\cdr\ta_CDLCLOSINGMARUBOZU.obj: ..\..\..\..\..\src\ta_func\ta_CDLCLOSINGMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CDLCLOSINGMARUBOZU.obj ..\..\..\..\..\src\ta_func\ta_CDLCLOSINGMARUBOZU.c + +..\..\..\..\..\temp\cdr\ta_CDLCONCEALBABYSWALL.obj: ..\..\..\..\..\src\ta_func\ta_CDLCONCEALBABYSWALL.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CDLCONCEALBABYSWALL.obj ..\..\..\..\..\src\ta_func\ta_CDLCONCEALBABYSWALL.c + +..\..\..\..\..\temp\cdr\ta_CDLCOUNTERATTACK.obj: ..\..\..\..\..\src\ta_func\ta_CDLCOUNTERATTACK.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CDLCOUNTERATTACK.obj ..\..\..\..\..\src\ta_func\ta_CDLCOUNTERATTACK.c + +..\..\..\..\..\temp\cdr\ta_CDLDARKCLOUDCOVER.obj: ..\..\..\..\..\src\ta_func\ta_CDLDARKCLOUDCOVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CDLDARKCLOUDCOVER.obj ..\..\..\..\..\src\ta_func\ta_CDLDARKCLOUDCOVER.c + +..\..\..\..\..\temp\cdr\ta_CDLDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CDLDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLDOJI.c + +..\..\..\..\..\temp\cdr\ta_CDLDOJISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CDLDOJISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLDOJISTAR.c + +..\..\..\..\..\temp\cdr\ta_CDLDRAGONFLYDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLDRAGONFLYDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CDLDRAGONFLYDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLDRAGONFLYDOJI.c + +..\..\..\..\..\temp\cdr\ta_CDLENGULFING.obj: ..\..\..\..\..\src\ta_func\ta_CDLENGULFING.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CDLENGULFING.obj ..\..\..\..\..\src\ta_func\ta_CDLENGULFING.c + +..\..\..\..\..\temp\cdr\ta_CDLEVENINGDOJISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLEVENINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CDLEVENINGDOJISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLEVENINGDOJISTAR.c + +..\..\..\..\..\temp\cdr\ta_CDLEVENINGSTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLEVENINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CDLEVENINGSTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLEVENINGSTAR.c + +..\..\..\..\..\temp\cdr\ta_CDLGAPSIDESIDEWHITE.obj: ..\..\..\..\..\src\ta_func\ta_CDLGAPSIDESIDEWHITE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CDLGAPSIDESIDEWHITE.obj ..\..\..\..\..\src\ta_func\ta_CDLGAPSIDESIDEWHITE.c + +..\..\..\..\..\temp\cdr\ta_CDLGRAVESTONEDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLGRAVESTONEDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CDLGRAVESTONEDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLGRAVESTONEDOJI.c + +..\..\..\..\..\temp\cdr\ta_CDLHAMMER.obj: ..\..\..\..\..\src\ta_func\ta_CDLHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CDLHAMMER.obj ..\..\..\..\..\src\ta_func\ta_CDLHAMMER.c + +..\..\..\..\..\temp\cdr\ta_CDLHANGINGMAN.obj: ..\..\..\..\..\src\ta_func\ta_CDLHANGINGMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CDLHANGINGMAN.obj ..\..\..\..\..\src\ta_func\ta_CDLHANGINGMAN.c + +..\..\..\..\..\temp\cdr\ta_CDLHARAMI.obj: ..\..\..\..\..\src\ta_func\ta_CDLHARAMI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CDLHARAMI.obj ..\..\..\..\..\src\ta_func\ta_CDLHARAMI.c + +..\..\..\..\..\temp\cdr\ta_CDLHARAMICROSS.obj: ..\..\..\..\..\src\ta_func\ta_CDLHARAMICROSS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CDLHARAMICROSS.obj ..\..\..\..\..\src\ta_func\ta_CDLHARAMICROSS.c + +..\..\..\..\..\temp\cdr\ta_CDLHIGHWAVE.obj: ..\..\..\..\..\src\ta_func\ta_CDLHIGHWAVE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CDLHIGHWAVE.obj ..\..\..\..\..\src\ta_func\ta_CDLHIGHWAVE.c + +..\..\..\..\..\temp\cdr\ta_CDLHIKKAKE.obj: ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CDLHIKKAKE.obj ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKE.c + +..\..\..\..\..\temp\cdr\ta_CDLHIKKAKEMOD.obj: ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKEMOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CDLHIKKAKEMOD.obj ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKEMOD.c + +..\..\..\..\..\temp\cdr\ta_CDLHOMINGPIGEON.obj: ..\..\..\..\..\src\ta_func\ta_CDLHOMINGPIGEON.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CDLHOMINGPIGEON.obj ..\..\..\..\..\src\ta_func\ta_CDLHOMINGPIGEON.c + +..\..\..\..\..\temp\cdr\ta_CDLIDENTICAL3CROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDLIDENTICAL3CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CDLIDENTICAL3CROWS.obj ..\..\..\..\..\src\ta_func\ta_CDLIDENTICAL3CROWS.c + +..\..\..\..\..\temp\cdr\ta_CDLINNECK.obj: ..\..\..\..\..\src\ta_func\ta_CDLINNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CDLINNECK.obj ..\..\..\..\..\src\ta_func\ta_CDLINNECK.c + +..\..\..\..\..\temp\cdr\ta_CDLINVERTEDHAMMER.obj: ..\..\..\..\..\src\ta_func\ta_CDLINVERTEDHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CDLINVERTEDHAMMER.obj ..\..\..\..\..\src\ta_func\ta_CDLINVERTEDHAMMER.c + +..\..\..\..\..\temp\cdr\ta_CDLKICKING.obj: ..\..\..\..\..\src\ta_func\ta_CDLKICKING.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CDLKICKING.obj ..\..\..\..\..\src\ta_func\ta_CDLKICKING.c + +..\..\..\..\..\temp\cdr\ta_CDLKICKINGBYLENGTH.obj: ..\..\..\..\..\src\ta_func\ta_CDLKICKINGBYLENGTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CDLKICKINGBYLENGTH.obj ..\..\..\..\..\src\ta_func\ta_CDLKICKINGBYLENGTH.c + +..\..\..\..\..\temp\cdr\ta_CDLLADDERBOTTOM.obj: ..\..\..\..\..\src\ta_func\ta_CDLLADDERBOTTOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CDLLADDERBOTTOM.obj ..\..\..\..\..\src\ta_func\ta_CDLLADDERBOTTOM.c + +..\..\..\..\..\temp\cdr\ta_CDLLONGLEGGEDDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLLONGLEGGEDDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CDLLONGLEGGEDDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLLONGLEGGEDDOJI.c + +..\..\..\..\..\temp\cdr\ta_CDLLONGLINE.obj: ..\..\..\..\..\src\ta_func\ta_CDLLONGLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CDLLONGLINE.obj ..\..\..\..\..\src\ta_func\ta_CDLLONGLINE.c + +..\..\..\..\..\temp\cdr\ta_CDLMARUBOZU.obj: ..\..\..\..\..\src\ta_func\ta_CDLMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CDLMARUBOZU.obj ..\..\..\..\..\src\ta_func\ta_CDLMARUBOZU.c + +..\..\..\..\..\temp\cdr\ta_CDLMATCHINGLOW.obj: ..\..\..\..\..\src\ta_func\ta_CDLMATCHINGLOW.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CDLMATCHINGLOW.obj ..\..\..\..\..\src\ta_func\ta_CDLMATCHINGLOW.c + +..\..\..\..\..\temp\cdr\ta_CDLMATHOLD.obj: ..\..\..\..\..\src\ta_func\ta_CDLMATHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CDLMATHOLD.obj ..\..\..\..\..\src\ta_func\ta_CDLMATHOLD.c + +..\..\..\..\..\temp\cdr\ta_CDLMORNINGDOJISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLMORNINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CDLMORNINGDOJISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLMORNINGDOJISTAR.c + +..\..\..\..\..\temp\cdr\ta_CDLMORNINGSTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLMORNINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CDLMORNINGSTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLMORNINGSTAR.c + +..\..\..\..\..\temp\cdr\ta_CDLONNECK.obj: ..\..\..\..\..\src\ta_func\ta_CDLONNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CDLONNECK.obj ..\..\..\..\..\src\ta_func\ta_CDLONNECK.c + +..\..\..\..\..\temp\cdr\ta_CDLPIERCING.obj: ..\..\..\..\..\src\ta_func\ta_CDLPIERCING.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CDLPIERCING.obj ..\..\..\..\..\src\ta_func\ta_CDLPIERCING.c + +..\..\..\..\..\temp\cdr\ta_CDLRICKSHAWMAN.obj: ..\..\..\..\..\src\ta_func\ta_CDLRICKSHAWMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CDLRICKSHAWMAN.obj ..\..\..\..\..\src\ta_func\ta_CDLRICKSHAWMAN.c + +..\..\..\..\..\temp\cdr\ta_CDLRISEFALL3METHODS.obj: ..\..\..\..\..\src\ta_func\ta_CDLRISEFALL3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CDLRISEFALL3METHODS.obj ..\..\..\..\..\src\ta_func\ta_CDLRISEFALL3METHODS.c + +..\..\..\..\..\temp\cdr\ta_CDLSEPARATINGLINES.obj: ..\..\..\..\..\src\ta_func\ta_CDLSEPARATINGLINES.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CDLSEPARATINGLINES.obj ..\..\..\..\..\src\ta_func\ta_CDLSEPARATINGLINES.c + +..\..\..\..\..\temp\cdr\ta_CDLSHOOTINGSTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLSHOOTINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CDLSHOOTINGSTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLSHOOTINGSTAR.c + +..\..\..\..\..\temp\cdr\ta_CDLSHORTLINE.obj: ..\..\..\..\..\src\ta_func\ta_CDLSHORTLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CDLSHORTLINE.obj ..\..\..\..\..\src\ta_func\ta_CDLSHORTLINE.c + +..\..\..\..\..\temp\cdr\ta_CDLSPINNINGTOP.obj: ..\..\..\..\..\src\ta_func\ta_CDLSPINNINGTOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CDLSPINNINGTOP.obj ..\..\..\..\..\src\ta_func\ta_CDLSPINNINGTOP.c + +..\..\..\..\..\temp\cdr\ta_CDLSTALLEDPATTERN.obj: ..\..\..\..\..\src\ta_func\ta_CDLSTALLEDPATTERN.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CDLSTALLEDPATTERN.obj ..\..\..\..\..\src\ta_func\ta_CDLSTALLEDPATTERN.c + +..\..\..\..\..\temp\cdr\ta_CDLSTICKSANDWICH.obj: ..\..\..\..\..\src\ta_func\ta_CDLSTICKSANDWICH.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CDLSTICKSANDWICH.obj ..\..\..\..\..\src\ta_func\ta_CDLSTICKSANDWICH.c + +..\..\..\..\..\temp\cdr\ta_CDLTAKURI.obj: ..\..\..\..\..\src\ta_func\ta_CDLTAKURI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CDLTAKURI.obj ..\..\..\..\..\src\ta_func\ta_CDLTAKURI.c + +..\..\..\..\..\temp\cdr\ta_CDLTASUKIGAP.obj: ..\..\..\..\..\src\ta_func\ta_CDLTASUKIGAP.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CDLTASUKIGAP.obj ..\..\..\..\..\src\ta_func\ta_CDLTASUKIGAP.c + +..\..\..\..\..\temp\cdr\ta_CDLTHRUSTING.obj: ..\..\..\..\..\src\ta_func\ta_CDLTHRUSTING.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CDLTHRUSTING.obj ..\..\..\..\..\src\ta_func\ta_CDLTHRUSTING.c + +..\..\..\..\..\temp\cdr\ta_CDLTRISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLTRISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CDLTRISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLTRISTAR.c + +..\..\..\..\..\temp\cdr\ta_CDLUNIQUE3RIVER.obj: ..\..\..\..\..\src\ta_func\ta_CDLUNIQUE3RIVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CDLUNIQUE3RIVER.obj ..\..\..\..\..\src\ta_func\ta_CDLUNIQUE3RIVER.c + +..\..\..\..\..\temp\cdr\ta_CDLUPSIDEGAP2CROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDLUPSIDEGAP2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CDLUPSIDEGAP2CROWS.obj ..\..\..\..\..\src\ta_func\ta_CDLUPSIDEGAP2CROWS.c + +..\..\..\..\..\temp\cdr\ta_CDLXSIDEGAP3METHODS.obj: ..\..\..\..\..\src\ta_func\ta_CDLXSIDEGAP3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CDLXSIDEGAP3METHODS.obj ..\..\..\..\..\src\ta_func\ta_CDLXSIDEGAP3METHODS.c + +..\..\..\..\..\temp\cdr\ta_CEIL.obj: ..\..\..\..\..\src\ta_func\ta_CEIL.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CEIL.obj ..\..\..\..\..\src\ta_func\ta_CEIL.c + +..\..\..\..\..\temp\cdr\ta_CMO.obj: ..\..\..\..\..\src\ta_func\ta_CMO.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CMO.obj ..\..\..\..\..\src\ta_func\ta_CMO.c + +..\..\..\..\..\temp\cdr\ta_CORREL.obj: ..\..\..\..\..\src\ta_func\ta_CORREL.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CORREL.obj ..\..\..\..\..\src\ta_func\ta_CORREL.c + +..\..\..\..\..\temp\cdr\ta_COS.obj: ..\..\..\..\..\src\ta_func\ta_COS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_COS.obj ..\..\..\..\..\src\ta_func\ta_COS.c + +..\..\..\..\..\temp\cdr\ta_COSH.obj: ..\..\..\..\..\src\ta_func\ta_COSH.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_COSH.obj ..\..\..\..\..\src\ta_func\ta_COSH.c + +..\..\..\..\..\temp\cdr\ta_DEMA.obj: ..\..\..\..\..\src\ta_func\ta_DEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_DEMA.obj ..\..\..\..\..\src\ta_func\ta_DEMA.c + +..\..\..\..\..\temp\cdr\ta_DIV.obj: ..\..\..\..\..\src\ta_func\ta_DIV.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_DIV.obj ..\..\..\..\..\src\ta_func\ta_DIV.c + +..\..\..\..\..\temp\cdr\ta_DX.obj: ..\..\..\..\..\src\ta_func\ta_DX.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_DX.obj ..\..\..\..\..\src\ta_func\ta_DX.c + +..\..\..\..\..\temp\cdr\ta_EMA.obj: ..\..\..\..\..\src\ta_func\ta_EMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_EMA.obj ..\..\..\..\..\src\ta_func\ta_EMA.c + +..\..\..\..\..\temp\cdr\ta_EXP.obj: ..\..\..\..\..\src\ta_func\ta_EXP.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_EXP.obj ..\..\..\..\..\src\ta_func\ta_EXP.c + +..\..\..\..\..\temp\cdr\ta_FLOOR.obj: ..\..\..\..\..\src\ta_func\ta_FLOOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_FLOOR.obj ..\..\..\..\..\src\ta_func\ta_FLOOR.c + +..\..\..\..\..\temp\cdr\ta_HT_DCPERIOD.obj: ..\..\..\..\..\src\ta_func\ta_HT_DCPERIOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_HT_DCPERIOD.obj ..\..\..\..\..\src\ta_func\ta_HT_DCPERIOD.c + +..\..\..\..\..\temp\cdr\ta_HT_DCPHASE.obj: ..\..\..\..\..\src\ta_func\ta_HT_DCPHASE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_HT_DCPHASE.obj ..\..\..\..\..\src\ta_func\ta_HT_DCPHASE.c + +..\..\..\..\..\temp\cdr\ta_HT_PHASOR.obj: ..\..\..\..\..\src\ta_func\ta_HT_PHASOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_HT_PHASOR.obj ..\..\..\..\..\src\ta_func\ta_HT_PHASOR.c + +..\..\..\..\..\temp\cdr\ta_HT_SINE.obj: ..\..\..\..\..\src\ta_func\ta_HT_SINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_HT_SINE.obj ..\..\..\..\..\src\ta_func\ta_HT_SINE.c + +..\..\..\..\..\temp\cdr\ta_HT_TRENDLINE.obj: ..\..\..\..\..\src\ta_func\ta_HT_TRENDLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_HT_TRENDLINE.obj ..\..\..\..\..\src\ta_func\ta_HT_TRENDLINE.c + +..\..\..\..\..\temp\cdr\ta_HT_TRENDMODE.obj: ..\..\..\..\..\src\ta_func\ta_HT_TRENDMODE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_HT_TRENDMODE.obj ..\..\..\..\..\src\ta_func\ta_HT_TRENDMODE.c + +..\..\..\..\..\temp\cdr\ta_KAMA.obj: ..\..\..\..\..\src\ta_func\ta_KAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_KAMA.obj ..\..\..\..\..\src\ta_func\ta_KAMA.c + +..\..\..\..\..\temp\cdr\ta_LINEARREG.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_LINEARREG.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG.c + +..\..\..\..\..\temp\cdr\ta_LINEARREG_ANGLE.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG_ANGLE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_LINEARREG_ANGLE.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG_ANGLE.c + +..\..\..\..\..\temp\cdr\ta_LINEARREG_INTERCEPT.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG_INTERCEPT.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_LINEARREG_INTERCEPT.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG_INTERCEPT.c + +..\..\..\..\..\temp\cdr\ta_LINEARREG_SLOPE.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG_SLOPE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_LINEARREG_SLOPE.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG_SLOPE.c + +..\..\..\..\..\temp\cdr\ta_LN.obj: ..\..\..\..\..\src\ta_func\ta_LN.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_LN.obj ..\..\..\..\..\src\ta_func\ta_LN.c + +..\..\..\..\..\temp\cdr\ta_LOG10.obj: ..\..\..\..\..\src\ta_func\ta_LOG10.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_LOG10.obj ..\..\..\..\..\src\ta_func\ta_LOG10.c + +..\..\..\..\..\temp\cdr\ta_MA.obj: ..\..\..\..\..\src\ta_func\ta_MA.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_MA.obj ..\..\..\..\..\src\ta_func\ta_MA.c + +..\..\..\..\..\temp\cdr\ta_MACD.obj: ..\..\..\..\..\src\ta_func\ta_MACD.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_MACD.obj ..\..\..\..\..\src\ta_func\ta_MACD.c + +..\..\..\..\..\temp\cdr\ta_MACDEXT.obj: ..\..\..\..\..\src\ta_func\ta_MACDEXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_MACDEXT.obj ..\..\..\..\..\src\ta_func\ta_MACDEXT.c + +..\..\..\..\..\temp\cdr\ta_MACDFIX.obj: ..\..\..\..\..\src\ta_func\ta_MACDFIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_MACDFIX.obj ..\..\..\..\..\src\ta_func\ta_MACDFIX.c + +..\..\..\..\..\temp\cdr\ta_MAMA.obj: ..\..\..\..\..\src\ta_func\ta_MAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_MAMA.obj ..\..\..\..\..\src\ta_func\ta_MAMA.c + +..\..\..\..\..\temp\cdr\ta_MAVP.obj: ..\..\..\..\..\src\ta_func\ta_MAVP.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_MAVP.obj ..\..\..\..\..\src\ta_func\ta_MAVP.c + +..\..\..\..\..\temp\cdr\ta_MAX.obj: ..\..\..\..\..\src\ta_func\ta_MAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_MAX.obj ..\..\..\..\..\src\ta_func\ta_MAX.c + +..\..\..\..\..\temp\cdr\ta_MAXINDEX.obj: ..\..\..\..\..\src\ta_func\ta_MAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_MAXINDEX.obj ..\..\..\..\..\src\ta_func\ta_MAXINDEX.c + +..\..\..\..\..\temp\cdr\ta_MEDPRICE.obj: ..\..\..\..\..\src\ta_func\ta_MEDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_MEDPRICE.obj ..\..\..\..\..\src\ta_func\ta_MEDPRICE.c + +..\..\..\..\..\temp\cdr\ta_MFI.obj: ..\..\..\..\..\src\ta_func\ta_MFI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_MFI.obj ..\..\..\..\..\src\ta_func\ta_MFI.c + +..\..\..\..\..\temp\cdr\ta_MIDPOINT.obj: ..\..\..\..\..\src\ta_func\ta_MIDPOINT.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_MIDPOINT.obj ..\..\..\..\..\src\ta_func\ta_MIDPOINT.c + +..\..\..\..\..\temp\cdr\ta_MIDPRICE.obj: ..\..\..\..\..\src\ta_func\ta_MIDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_MIDPRICE.obj ..\..\..\..\..\src\ta_func\ta_MIDPRICE.c + +..\..\..\..\..\temp\cdr\ta_MIN.obj: ..\..\..\..\..\src\ta_func\ta_MIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_MIN.obj ..\..\..\..\..\src\ta_func\ta_MIN.c + +..\..\..\..\..\temp\cdr\ta_MININDEX.obj: ..\..\..\..\..\src\ta_func\ta_MININDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_MININDEX.obj ..\..\..\..\..\src\ta_func\ta_MININDEX.c + +..\..\..\..\..\temp\cdr\ta_MINMAX.obj: ..\..\..\..\..\src\ta_func\ta_MINMAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_MINMAX.obj ..\..\..\..\..\src\ta_func\ta_MINMAX.c + +..\..\..\..\..\temp\cdr\ta_MINMAXINDEX.obj: ..\..\..\..\..\src\ta_func\ta_MINMAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_MINMAXINDEX.obj ..\..\..\..\..\src\ta_func\ta_MINMAXINDEX.c + +..\..\..\..\..\temp\cdr\ta_MINUS_DI.obj: ..\..\..\..\..\src\ta_func\ta_MINUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_MINUS_DI.obj ..\..\..\..\..\src\ta_func\ta_MINUS_DI.c + +..\..\..\..\..\temp\cdr\ta_MINUS_DM.obj: ..\..\..\..\..\src\ta_func\ta_MINUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_MINUS_DM.obj ..\..\..\..\..\src\ta_func\ta_MINUS_DM.c + +..\..\..\..\..\temp\cdr\ta_MOM.obj: ..\..\..\..\..\src\ta_func\ta_MOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_MOM.obj ..\..\..\..\..\src\ta_func\ta_MOM.c + +..\..\..\..\..\temp\cdr\ta_MULT.obj: ..\..\..\..\..\src\ta_func\ta_MULT.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_MULT.obj ..\..\..\..\..\src\ta_func\ta_MULT.c + +..\..\..\..\..\temp\cdr\ta_NATR.obj: ..\..\..\..\..\src\ta_func\ta_NATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_NATR.obj ..\..\..\..\..\src\ta_func\ta_NATR.c + +..\..\..\..\..\temp\cdr\ta_OBV.obj: ..\..\..\..\..\src\ta_func\ta_OBV.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_OBV.obj ..\..\..\..\..\src\ta_func\ta_OBV.c + +..\..\..\..\..\temp\cdr\ta_PLUS_DI.obj: ..\..\..\..\..\src\ta_func\ta_PLUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_PLUS_DI.obj ..\..\..\..\..\src\ta_func\ta_PLUS_DI.c + +..\..\..\..\..\temp\cdr\ta_PLUS_DM.obj: ..\..\..\..\..\src\ta_func\ta_PLUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_PLUS_DM.obj ..\..\..\..\..\src\ta_func\ta_PLUS_DM.c + +..\..\..\..\..\temp\cdr\ta_PPO.obj: ..\..\..\..\..\src\ta_func\ta_PPO.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_PPO.obj ..\..\..\..\..\src\ta_func\ta_PPO.c + +..\..\..\..\..\temp\cdr\ta_ROC.obj: ..\..\..\..\..\src\ta_func\ta_ROC.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_ROC.obj ..\..\..\..\..\src\ta_func\ta_ROC.c + +..\..\..\..\..\temp\cdr\ta_ROCP.obj: ..\..\..\..\..\src\ta_func\ta_ROCP.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_ROCP.obj ..\..\..\..\..\src\ta_func\ta_ROCP.c + +..\..\..\..\..\temp\cdr\ta_ROCR.obj: ..\..\..\..\..\src\ta_func\ta_ROCR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_ROCR.obj ..\..\..\..\..\src\ta_func\ta_ROCR.c + +..\..\..\..\..\temp\cdr\ta_ROCR100.obj: ..\..\..\..\..\src\ta_func\ta_ROCR100.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_ROCR100.obj ..\..\..\..\..\src\ta_func\ta_ROCR100.c + +..\..\..\..\..\temp\cdr\ta_RSI.obj: ..\..\..\..\..\src\ta_func\ta_RSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_RSI.obj ..\..\..\..\..\src\ta_func\ta_RSI.c + +..\..\..\..\..\temp\cdr\ta_SAR.obj: ..\..\..\..\..\src\ta_func\ta_SAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_SAR.obj ..\..\..\..\..\src\ta_func\ta_SAR.c + +..\..\..\..\..\temp\cdr\ta_SAREXT.obj: ..\..\..\..\..\src\ta_func\ta_SAREXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_SAREXT.obj ..\..\..\..\..\src\ta_func\ta_SAREXT.c + +..\..\..\..\..\temp\cdr\ta_SIN.obj: ..\..\..\..\..\src\ta_func\ta_SIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_SIN.obj ..\..\..\..\..\src\ta_func\ta_SIN.c + +..\..\..\..\..\temp\cdr\ta_SINH.obj: ..\..\..\..\..\src\ta_func\ta_SINH.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_SINH.obj ..\..\..\..\..\src\ta_func\ta_SINH.c + +..\..\..\..\..\temp\cdr\ta_SMA.obj: ..\..\..\..\..\src\ta_func\ta_SMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_SMA.obj ..\..\..\..\..\src\ta_func\ta_SMA.c + +..\..\..\..\..\temp\cdr\ta_SQRT.obj: ..\..\..\..\..\src\ta_func\ta_SQRT.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_SQRT.obj ..\..\..\..\..\src\ta_func\ta_SQRT.c + +..\..\..\..\..\temp\cdr\ta_STDDEV.obj: ..\..\..\..\..\src\ta_func\ta_STDDEV.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_STDDEV.obj ..\..\..\..\..\src\ta_func\ta_STDDEV.c + +..\..\..\..\..\temp\cdr\ta_STOCH.obj: ..\..\..\..\..\src\ta_func\ta_STOCH.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_STOCH.obj ..\..\..\..\..\src\ta_func\ta_STOCH.c + +..\..\..\..\..\temp\cdr\ta_STOCHF.obj: ..\..\..\..\..\src\ta_func\ta_STOCHF.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_STOCHF.obj ..\..\..\..\..\src\ta_func\ta_STOCHF.c + +..\..\..\..\..\temp\cdr\ta_STOCHRSI.obj: ..\..\..\..\..\src\ta_func\ta_STOCHRSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_STOCHRSI.obj ..\..\..\..\..\src\ta_func\ta_STOCHRSI.c + +..\..\..\..\..\temp\cdr\ta_SUB.obj: ..\..\..\..\..\src\ta_func\ta_SUB.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_SUB.obj ..\..\..\..\..\src\ta_func\ta_SUB.c + +..\..\..\..\..\temp\cdr\ta_SUM.obj: ..\..\..\..\..\src\ta_func\ta_SUM.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_SUM.obj ..\..\..\..\..\src\ta_func\ta_SUM.c + +..\..\..\..\..\temp\cdr\ta_T3.obj: ..\..\..\..\..\src\ta_func\ta_T3.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_T3.obj ..\..\..\..\..\src\ta_func\ta_T3.c + +..\..\..\..\..\temp\cdr\ta_TAN.obj: ..\..\..\..\..\src\ta_func\ta_TAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_TAN.obj ..\..\..\..\..\src\ta_func\ta_TAN.c + +..\..\..\..\..\temp\cdr\ta_TANH.obj: ..\..\..\..\..\src\ta_func\ta_TANH.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_TANH.obj ..\..\..\..\..\src\ta_func\ta_TANH.c + +..\..\..\..\..\temp\cdr\ta_TEMA.obj: ..\..\..\..\..\src\ta_func\ta_TEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_TEMA.obj ..\..\..\..\..\src\ta_func\ta_TEMA.c + +..\..\..\..\..\temp\cdr\ta_TRANGE.obj: ..\..\..\..\..\src\ta_func\ta_TRANGE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_TRANGE.obj ..\..\..\..\..\src\ta_func\ta_TRANGE.c + +..\..\..\..\..\temp\cdr\ta_TRIMA.obj: ..\..\..\..\..\src\ta_func\ta_TRIMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_TRIMA.obj ..\..\..\..\..\src\ta_func\ta_TRIMA.c + +..\..\..\..\..\temp\cdr\ta_TRIX.obj: ..\..\..\..\..\src\ta_func\ta_TRIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_TRIX.obj ..\..\..\..\..\src\ta_func\ta_TRIX.c + +..\..\..\..\..\temp\cdr\ta_TSF.obj: ..\..\..\..\..\src\ta_func\ta_TSF.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_TSF.obj ..\..\..\..\..\src\ta_func\ta_TSF.c + +..\..\..\..\..\temp\cdr\ta_TYPPRICE.obj: ..\..\..\..\..\src\ta_func\ta_TYPPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_TYPPRICE.obj ..\..\..\..\..\src\ta_func\ta_TYPPRICE.c + +..\..\..\..\..\temp\cdr\ta_ULTOSC.obj: ..\..\..\..\..\src\ta_func\ta_ULTOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_ULTOSC.obj ..\..\..\..\..\src\ta_func\ta_ULTOSC.c + +..\..\..\..\..\temp\cdr\ta_VAR.obj: ..\..\..\..\..\src\ta_func\ta_VAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_VAR.obj ..\..\..\..\..\src\ta_func\ta_VAR.c + +..\..\..\..\..\temp\cdr\ta_WCLPRICE.obj: ..\..\..\..\..\src\ta_func\ta_WCLPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_WCLPRICE.obj ..\..\..\..\..\src\ta_func\ta_WCLPRICE.c + +..\..\..\..\..\temp\cdr\ta_WILLR.obj: ..\..\..\..\..\src\ta_func\ta_WILLR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_WILLR.obj ..\..\..\..\..\src\ta_func\ta_WILLR.c + +..\..\..\..\..\temp\cdr\ta_WMA.obj: ..\..\..\..\..\src\ta_func\ta_WMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_WMA.obj ..\..\..\..\..\src\ta_func\ta_WMA.c + diff --git a/make/cdr/win32/msvc/ta_libc/Makefile b/make/cdr/win32/msvc/ta_libc/Makefile new file mode 100644 index 000000000..bbf9dd0fd --- /dev/null +++ b/make/cdr/win32/msvc/ta_libc/Makefile @@ -0,0 +1,1237 @@ +############################################################################# +# Makefile for building ta_libc_cdr +# Generated by tmake; +# Project: ta_libc/ta_libc +# Template: lib +############################################################################# + +####### Compiler, tools and options + +CC = cl +CXX = cl +CFLAGS = -nologo -W3 -MD -O2 -DWIN32 -D_MBCS -D_LIB -DQT_THREAD_SUPPORT -DNO_DEBUG +CXXFLAGS= -nologo -W3 -MD -O2 -DWIN32 -D_MBCS -D_LIB -DQT_THREAD_SUPPORT -DNO_DEBUG +INCPATH = -I"..\..\..\..\..\src\ta_common" -I"..\..\..\..\..\include" -I"..\..\..\..\..\src\ta_abstract" -I"..\..\..\..\..\src\ta_abstract\tables" -I"..\..\..\..\..\src\ta_abstract\frames" -I"$(QTDIR)\include" +LIB = lib /NOLOGO +MOC = moc +UIC = uic + +ZIP = zip -r -9 + +####### Files + +HEADERS = +SOURCES = ..\..\..\..\..\src\ta_common\ta_global.c \ + ..\..\..\..\..\src\ta_common\ta_retcode.c \ + ..\..\..\..\..\src\ta_common\ta_version.c \ + ..\..\..\..\..\src\ta_abstract\ta_abstract.c \ + ..\..\..\..\..\src\ta_abstract\ta_def_ui.c \ + ..\..\..\..\..\src\ta_abstract\ta_func_api.c \ + ..\..\..\..\..\src\ta_abstract\ta_group_idx.c \ + ..\..\..\..\..\src\ta_abstract\frames\ta_frame.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_a.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_b.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_c.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_d.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_e.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_f.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_g.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_h.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_i.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_j.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_k.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_l.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_m.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_n.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_o.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_p.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_q.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_r.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_s.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_t.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_u.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_v.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_w.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_x.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_y.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_z.c \ + ..\..\..\..\..\src\ta_func\ta_utility.c \ + ..\..\..\..\..\src\ta_func\ta_ACOS.c \ + ..\..\..\..\..\src\ta_func\ta_AD.c \ + ..\..\..\..\..\src\ta_func\ta_ADD.c \ + ..\..\..\..\..\src\ta_func\ta_ADOSC.c \ + ..\..\..\..\..\src\ta_func\ta_ADX.c \ + ..\..\..\..\..\src\ta_func\ta_ADXR.c \ + ..\..\..\..\..\src\ta_func\ta_APO.c \ + ..\..\..\..\..\src\ta_func\ta_AROON.c \ + ..\..\..\..\..\src\ta_func\ta_AROONOSC.c \ + ..\..\..\..\..\src\ta_func\ta_ASIN.c \ + ..\..\..\..\..\src\ta_func\ta_ATAN.c \ + ..\..\..\..\..\src\ta_func\ta_ATR.c \ + ..\..\..\..\..\src\ta_func\ta_AVGPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_BBANDS.c \ + ..\..\..\..\..\src\ta_func\ta_BETA.c \ + ..\..\..\..\..\src\ta_func\ta_BOP.c \ + ..\..\..\..\..\src\ta_func\ta_CCI.c \ + ..\..\..\..\..\src\ta_func\ta_CDL2CROWS.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3BLACKCROWS.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3INSIDE.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3LINESTRIKE.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3OUTSIDE.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3STARSINSOUTH.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3WHITESOLDIERS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLABANDONEDBABY.c \ + ..\..\..\..\..\src\ta_func\ta_CDLADVANCEBLOCK.c \ + ..\..\..\..\..\src\ta_func\ta_CDLBELTHOLD.c \ + ..\..\..\..\..\src\ta_func\ta_CDLBREAKAWAY.c \ + ..\..\..\..\..\src\ta_func\ta_CDLCLOSINGMARUBOZU.c \ + ..\..\..\..\..\src\ta_func\ta_CDLCONCEALBABYSWALL.c \ + ..\..\..\..\..\src\ta_func\ta_CDLCOUNTERATTACK.c \ + ..\..\..\..\..\src\ta_func\ta_CDLDARKCLOUDCOVER.c \ + ..\..\..\..\..\src\ta_func\ta_CDLDOJI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLDOJISTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLDRAGONFLYDOJI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLENGULFING.c \ + ..\..\..\..\..\src\ta_func\ta_CDLEVENINGDOJISTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLEVENINGSTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLGAPSIDESIDEWHITE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLGRAVESTONEDOJI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHAMMER.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHANGINGMAN.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHARAMI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHARAMICROSS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHIGHWAVE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKEMOD.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHOMINGPIGEON.c \ + ..\..\..\..\..\src\ta_func\ta_CDLIDENTICAL3CROWS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLINNECK.c \ + ..\..\..\..\..\src\ta_func\ta_CDLINVERTEDHAMMER.c \ + ..\..\..\..\..\src\ta_func\ta_CDLKICKING.c \ + ..\..\..\..\..\src\ta_func\ta_CDLKICKINGBYLENGTH.c \ + ..\..\..\..\..\src\ta_func\ta_CDLLADDERBOTTOM.c \ + ..\..\..\..\..\src\ta_func\ta_CDLLONGLEGGEDDOJI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLLONGLINE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMARUBOZU.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMATCHINGLOW.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMATHOLD.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMORNINGDOJISTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMORNINGSTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLONNECK.c \ + ..\..\..\..\..\src\ta_func\ta_CDLPIERCING.c \ + ..\..\..\..\..\src\ta_func\ta_CDLRICKSHAWMAN.c \ + ..\..\..\..\..\src\ta_func\ta_CDLRISEFALL3METHODS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSEPARATINGLINES.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSHOOTINGSTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSHORTLINE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSPINNINGTOP.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSTALLEDPATTERN.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSTICKSANDWICH.c \ + ..\..\..\..\..\src\ta_func\ta_CDLTAKURI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLTASUKIGAP.c \ + ..\..\..\..\..\src\ta_func\ta_CDLTHRUSTING.c \ + ..\..\..\..\..\src\ta_func\ta_CDLTRISTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLUNIQUE3RIVER.c \ + ..\..\..\..\..\src\ta_func\ta_CDLUPSIDEGAP2CROWS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLXSIDEGAP3METHODS.c \ + ..\..\..\..\..\src\ta_func\ta_CEIL.c \ + ..\..\..\..\..\src\ta_func\ta_CMO.c \ + ..\..\..\..\..\src\ta_func\ta_CORREL.c \ + ..\..\..\..\..\src\ta_func\ta_COS.c \ + ..\..\..\..\..\src\ta_func\ta_COSH.c \ + ..\..\..\..\..\src\ta_func\ta_DEMA.c \ + ..\..\..\..\..\src\ta_func\ta_DIV.c \ + ..\..\..\..\..\src\ta_func\ta_DX.c \ + ..\..\..\..\..\src\ta_func\ta_EMA.c \ + ..\..\..\..\..\src\ta_func\ta_EXP.c \ + ..\..\..\..\..\src\ta_func\ta_FLOOR.c \ + ..\..\..\..\..\src\ta_func\ta_HT_DCPERIOD.c \ + ..\..\..\..\..\src\ta_func\ta_HT_DCPHASE.c \ + ..\..\..\..\..\src\ta_func\ta_HT_PHASOR.c \ + ..\..\..\..\..\src\ta_func\ta_HT_SINE.c \ + ..\..\..\..\..\src\ta_func\ta_HT_TRENDLINE.c \ + ..\..\..\..\..\src\ta_func\ta_HT_TRENDMODE.c \ + ..\..\..\..\..\src\ta_func\ta_KAMA.c \ + ..\..\..\..\..\src\ta_func\ta_LINEARREG.c \ + ..\..\..\..\..\src\ta_func\ta_LINEARREG_ANGLE.c \ + ..\..\..\..\..\src\ta_func\ta_LINEARREG_INTERCEPT.c \ + ..\..\..\..\..\src\ta_func\ta_LINEARREG_SLOPE.c \ + ..\..\..\..\..\src\ta_func\ta_LN.c \ + ..\..\..\..\..\src\ta_func\ta_LOG10.c \ + ..\..\..\..\..\src\ta_func\ta_MA.c \ + ..\..\..\..\..\src\ta_func\ta_MACD.c \ + ..\..\..\..\..\src\ta_func\ta_MACDEXT.c \ + ..\..\..\..\..\src\ta_func\ta_MACDFIX.c \ + ..\..\..\..\..\src\ta_func\ta_MAMA.c \ + ..\..\..\..\..\src\ta_func\ta_MAVP.c \ + ..\..\..\..\..\src\ta_func\ta_MAX.c \ + ..\..\..\..\..\src\ta_func\ta_MAXINDEX.c \ + ..\..\..\..\..\src\ta_func\ta_MEDPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_MFI.c \ + ..\..\..\..\..\src\ta_func\ta_MIDPOINT.c \ + ..\..\..\..\..\src\ta_func\ta_MIDPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_MIN.c \ + ..\..\..\..\..\src\ta_func\ta_MININDEX.c \ + ..\..\..\..\..\src\ta_func\ta_MINMAX.c \ + ..\..\..\..\..\src\ta_func\ta_MINMAXINDEX.c \ + ..\..\..\..\..\src\ta_func\ta_MINUS_DI.c \ + ..\..\..\..\..\src\ta_func\ta_MINUS_DM.c \ + ..\..\..\..\..\src\ta_func\ta_MOM.c \ + ..\..\..\..\..\src\ta_func\ta_MULT.c \ + ..\..\..\..\..\src\ta_func\ta_NATR.c \ + ..\..\..\..\..\src\ta_func\ta_OBV.c \ + ..\..\..\..\..\src\ta_func\ta_PLUS_DI.c \ + ..\..\..\..\..\src\ta_func\ta_PLUS_DM.c \ + ..\..\..\..\..\src\ta_func\ta_PPO.c \ + ..\..\..\..\..\src\ta_func\ta_ROC.c \ + ..\..\..\..\..\src\ta_func\ta_ROCP.c \ + ..\..\..\..\..\src\ta_func\ta_ROCR.c \ + ..\..\..\..\..\src\ta_func\ta_ROCR100.c \ + ..\..\..\..\..\src\ta_func\ta_RSI.c \ + ..\..\..\..\..\src\ta_func\ta_SAR.c \ + ..\..\..\..\..\src\ta_func\ta_SAREXT.c \ + ..\..\..\..\..\src\ta_func\ta_SIN.c \ + ..\..\..\..\..\src\ta_func\ta_SINH.c \ + ..\..\..\..\..\src\ta_func\ta_SMA.c \ + ..\..\..\..\..\src\ta_func\ta_SQRT.c \ + ..\..\..\..\..\src\ta_func\ta_STDDEV.c \ + ..\..\..\..\..\src\ta_func\ta_STOCH.c \ + ..\..\..\..\..\src\ta_func\ta_STOCHF.c \ + ..\..\..\..\..\src\ta_func\ta_STOCHRSI.c \ + ..\..\..\..\..\src\ta_func\ta_SUB.c \ + ..\..\..\..\..\src\ta_func\ta_SUM.c \ + ..\..\..\..\..\src\ta_func\ta_T3.c \ + ..\..\..\..\..\src\ta_func\ta_TAN.c \ + ..\..\..\..\..\src\ta_func\ta_TANH.c \ + ..\..\..\..\..\src\ta_func\ta_TEMA.c \ + ..\..\..\..\..\src\ta_func\ta_TRANGE.c \ + ..\..\..\..\..\src\ta_func\ta_TRIMA.c \ + ..\..\..\..\..\src\ta_func\ta_TRIX.c \ + ..\..\..\..\..\src\ta_func\ta_TSF.c \ + ..\..\..\..\..\src\ta_func\ta_TYPPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_ULTOSC.c \ + ..\..\..\..\..\src\ta_func\ta_VAR.c \ + ..\..\..\..\..\src\ta_func\ta_WCLPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_WILLR.c \ + ..\..\..\..\..\src\ta_func\ta_WMA.c +OBJECTS = ..\..\..\..\..\temp\cdr\ta_global.obj \ + ..\..\..\..\..\temp\cdr\ta_retcode.obj \ + ..\..\..\..\..\temp\cdr\ta_version.obj \ + ..\..\..\..\..\temp\cdr\ta_abstract.obj \ + ..\..\..\..\..\temp\cdr\ta_def_ui.obj \ + ..\..\..\..\..\temp\cdr\ta_func_api.obj \ + ..\..\..\..\..\temp\cdr\ta_group_idx.obj \ + ..\..\..\..\..\temp\cdr\ta_frame.obj \ + ..\..\..\..\..\temp\cdr\table_a.obj \ + ..\..\..\..\..\temp\cdr\table_b.obj \ + ..\..\..\..\..\temp\cdr\table_c.obj \ + ..\..\..\..\..\temp\cdr\table_d.obj \ + ..\..\..\..\..\temp\cdr\table_e.obj \ + ..\..\..\..\..\temp\cdr\table_f.obj \ + ..\..\..\..\..\temp\cdr\table_g.obj \ + ..\..\..\..\..\temp\cdr\table_h.obj \ + ..\..\..\..\..\temp\cdr\table_i.obj \ + ..\..\..\..\..\temp\cdr\table_j.obj \ + ..\..\..\..\..\temp\cdr\table_k.obj \ + ..\..\..\..\..\temp\cdr\table_l.obj \ + ..\..\..\..\..\temp\cdr\table_m.obj \ + ..\..\..\..\..\temp\cdr\table_n.obj \ + ..\..\..\..\..\temp\cdr\table_o.obj \ + ..\..\..\..\..\temp\cdr\table_p.obj \ + ..\..\..\..\..\temp\cdr\table_q.obj \ + ..\..\..\..\..\temp\cdr\table_r.obj \ + ..\..\..\..\..\temp\cdr\table_s.obj \ + ..\..\..\..\..\temp\cdr\table_t.obj \ + ..\..\..\..\..\temp\cdr\table_u.obj \ + ..\..\..\..\..\temp\cdr\table_v.obj \ + ..\..\..\..\..\temp\cdr\table_w.obj \ + ..\..\..\..\..\temp\cdr\table_x.obj \ + ..\..\..\..\..\temp\cdr\table_y.obj \ + ..\..\..\..\..\temp\cdr\table_z.obj \ + ..\..\..\..\..\temp\cdr\ta_utility.obj \ + ..\..\..\..\..\temp\cdr\ta_ACOS.obj \ + ..\..\..\..\..\temp\cdr\ta_AD.obj \ + ..\..\..\..\..\temp\cdr\ta_ADD.obj \ + ..\..\..\..\..\temp\cdr\ta_ADOSC.obj \ + ..\..\..\..\..\temp\cdr\ta_ADX.obj \ + ..\..\..\..\..\temp\cdr\ta_ADXR.obj \ + ..\..\..\..\..\temp\cdr\ta_APO.obj \ + ..\..\..\..\..\temp\cdr\ta_AROON.obj \ + ..\..\..\..\..\temp\cdr\ta_AROONOSC.obj \ + ..\..\..\..\..\temp\cdr\ta_ASIN.obj \ + ..\..\..\..\..\temp\cdr\ta_ATAN.obj \ + ..\..\..\..\..\temp\cdr\ta_ATR.obj \ + ..\..\..\..\..\temp\cdr\ta_AVGPRICE.obj \ + ..\..\..\..\..\temp\cdr\ta_BBANDS.obj \ + ..\..\..\..\..\temp\cdr\ta_BETA.obj \ + ..\..\..\..\..\temp\cdr\ta_BOP.obj \ + ..\..\..\..\..\temp\cdr\ta_CCI.obj \ + ..\..\..\..\..\temp\cdr\ta_CDL2CROWS.obj \ + ..\..\..\..\..\temp\cdr\ta_CDL3BLACKCROWS.obj \ + ..\..\..\..\..\temp\cdr\ta_CDL3INSIDE.obj \ + ..\..\..\..\..\temp\cdr\ta_CDL3LINESTRIKE.obj \ + ..\..\..\..\..\temp\cdr\ta_CDL3OUTSIDE.obj \ + ..\..\..\..\..\temp\cdr\ta_CDL3STARSINSOUTH.obj \ + ..\..\..\..\..\temp\cdr\ta_CDL3WHITESOLDIERS.obj \ + ..\..\..\..\..\temp\cdr\ta_CDLABANDONEDBABY.obj \ + ..\..\..\..\..\temp\cdr\ta_CDLADVANCEBLOCK.obj \ + ..\..\..\..\..\temp\cdr\ta_CDLBELTHOLD.obj \ + ..\..\..\..\..\temp\cdr\ta_CDLBREAKAWAY.obj \ + ..\..\..\..\..\temp\cdr\ta_CDLCLOSINGMARUBOZU.obj \ + ..\..\..\..\..\temp\cdr\ta_CDLCONCEALBABYSWALL.obj \ + ..\..\..\..\..\temp\cdr\ta_CDLCOUNTERATTACK.obj \ + ..\..\..\..\..\temp\cdr\ta_CDLDARKCLOUDCOVER.obj \ + ..\..\..\..\..\temp\cdr\ta_CDLDOJI.obj \ + ..\..\..\..\..\temp\cdr\ta_CDLDOJISTAR.obj \ + ..\..\..\..\..\temp\cdr\ta_CDLDRAGONFLYDOJI.obj \ + ..\..\..\..\..\temp\cdr\ta_CDLENGULFING.obj \ + ..\..\..\..\..\temp\cdr\ta_CDLEVENINGDOJISTAR.obj \ + ..\..\..\..\..\temp\cdr\ta_CDLEVENINGSTAR.obj \ + ..\..\..\..\..\temp\cdr\ta_CDLGAPSIDESIDEWHITE.obj \ + ..\..\..\..\..\temp\cdr\ta_CDLGRAVESTONEDOJI.obj \ + ..\..\..\..\..\temp\cdr\ta_CDLHAMMER.obj \ + ..\..\..\..\..\temp\cdr\ta_CDLHANGINGMAN.obj \ + ..\..\..\..\..\temp\cdr\ta_CDLHARAMI.obj \ + ..\..\..\..\..\temp\cdr\ta_CDLHARAMICROSS.obj \ + ..\..\..\..\..\temp\cdr\ta_CDLHIGHWAVE.obj \ + ..\..\..\..\..\temp\cdr\ta_CDLHIKKAKE.obj \ + ..\..\..\..\..\temp\cdr\ta_CDLHIKKAKEMOD.obj \ + ..\..\..\..\..\temp\cdr\ta_CDLHOMINGPIGEON.obj \ + ..\..\..\..\..\temp\cdr\ta_CDLIDENTICAL3CROWS.obj \ + ..\..\..\..\..\temp\cdr\ta_CDLINNECK.obj \ + ..\..\..\..\..\temp\cdr\ta_CDLINVERTEDHAMMER.obj \ + ..\..\..\..\..\temp\cdr\ta_CDLKICKING.obj \ + ..\..\..\..\..\temp\cdr\ta_CDLKICKINGBYLENGTH.obj \ + ..\..\..\..\..\temp\cdr\ta_CDLLADDERBOTTOM.obj \ + ..\..\..\..\..\temp\cdr\ta_CDLLONGLEGGEDDOJI.obj \ + ..\..\..\..\..\temp\cdr\ta_CDLLONGLINE.obj \ + ..\..\..\..\..\temp\cdr\ta_CDLMARUBOZU.obj \ + ..\..\..\..\..\temp\cdr\ta_CDLMATCHINGLOW.obj \ + ..\..\..\..\..\temp\cdr\ta_CDLMATHOLD.obj \ + ..\..\..\..\..\temp\cdr\ta_CDLMORNINGDOJISTAR.obj \ + ..\..\..\..\..\temp\cdr\ta_CDLMORNINGSTAR.obj \ + ..\..\..\..\..\temp\cdr\ta_CDLONNECK.obj \ + ..\..\..\..\..\temp\cdr\ta_CDLPIERCING.obj \ + ..\..\..\..\..\temp\cdr\ta_CDLRICKSHAWMAN.obj \ + ..\..\..\..\..\temp\cdr\ta_CDLRISEFALL3METHODS.obj \ + ..\..\..\..\..\temp\cdr\ta_CDLSEPARATINGLINES.obj \ + ..\..\..\..\..\temp\cdr\ta_CDLSHOOTINGSTAR.obj \ + ..\..\..\..\..\temp\cdr\ta_CDLSHORTLINE.obj \ + ..\..\..\..\..\temp\cdr\ta_CDLSPINNINGTOP.obj \ + ..\..\..\..\..\temp\cdr\ta_CDLSTALLEDPATTERN.obj \ + ..\..\..\..\..\temp\cdr\ta_CDLSTICKSANDWICH.obj \ + ..\..\..\..\..\temp\cdr\ta_CDLTAKURI.obj \ + ..\..\..\..\..\temp\cdr\ta_CDLTASUKIGAP.obj \ + ..\..\..\..\..\temp\cdr\ta_CDLTHRUSTING.obj \ + ..\..\..\..\..\temp\cdr\ta_CDLTRISTAR.obj \ + ..\..\..\..\..\temp\cdr\ta_CDLUNIQUE3RIVER.obj \ + ..\..\..\..\..\temp\cdr\ta_CDLUPSIDEGAP2CROWS.obj \ + ..\..\..\..\..\temp\cdr\ta_CDLXSIDEGAP3METHODS.obj \ + ..\..\..\..\..\temp\cdr\ta_CEIL.obj \ + ..\..\..\..\..\temp\cdr\ta_CMO.obj \ + ..\..\..\..\..\temp\cdr\ta_CORREL.obj \ + ..\..\..\..\..\temp\cdr\ta_COS.obj \ + ..\..\..\..\..\temp\cdr\ta_COSH.obj \ + ..\..\..\..\..\temp\cdr\ta_DEMA.obj \ + ..\..\..\..\..\temp\cdr\ta_DIV.obj \ + ..\..\..\..\..\temp\cdr\ta_DX.obj \ + ..\..\..\..\..\temp\cdr\ta_EMA.obj \ + ..\..\..\..\..\temp\cdr\ta_EXP.obj \ + ..\..\..\..\..\temp\cdr\ta_FLOOR.obj \ + ..\..\..\..\..\temp\cdr\ta_HT_DCPERIOD.obj \ + ..\..\..\..\..\temp\cdr\ta_HT_DCPHASE.obj \ + ..\..\..\..\..\temp\cdr\ta_HT_PHASOR.obj \ + ..\..\..\..\..\temp\cdr\ta_HT_SINE.obj \ + ..\..\..\..\..\temp\cdr\ta_HT_TRENDLINE.obj \ + ..\..\..\..\..\temp\cdr\ta_HT_TRENDMODE.obj \ + ..\..\..\..\..\temp\cdr\ta_KAMA.obj \ + ..\..\..\..\..\temp\cdr\ta_LINEARREG.obj \ + ..\..\..\..\..\temp\cdr\ta_LINEARREG_ANGLE.obj \ + ..\..\..\..\..\temp\cdr\ta_LINEARREG_INTERCEPT.obj \ + ..\..\..\..\..\temp\cdr\ta_LINEARREG_SLOPE.obj \ + ..\..\..\..\..\temp\cdr\ta_LN.obj \ + ..\..\..\..\..\temp\cdr\ta_LOG10.obj \ + ..\..\..\..\..\temp\cdr\ta_MA.obj \ + ..\..\..\..\..\temp\cdr\ta_MACD.obj \ + ..\..\..\..\..\temp\cdr\ta_MACDEXT.obj \ + ..\..\..\..\..\temp\cdr\ta_MACDFIX.obj \ + ..\..\..\..\..\temp\cdr\ta_MAMA.obj \ + ..\..\..\..\..\temp\cdr\ta_MAVP.obj \ + ..\..\..\..\..\temp\cdr\ta_MAX.obj \ + ..\..\..\..\..\temp\cdr\ta_MAXINDEX.obj \ + ..\..\..\..\..\temp\cdr\ta_MEDPRICE.obj \ + ..\..\..\..\..\temp\cdr\ta_MFI.obj \ + ..\..\..\..\..\temp\cdr\ta_MIDPOINT.obj \ + ..\..\..\..\..\temp\cdr\ta_MIDPRICE.obj \ + ..\..\..\..\..\temp\cdr\ta_MIN.obj \ + ..\..\..\..\..\temp\cdr\ta_MININDEX.obj \ + ..\..\..\..\..\temp\cdr\ta_MINMAX.obj \ + ..\..\..\..\..\temp\cdr\ta_MINMAXINDEX.obj \ + ..\..\..\..\..\temp\cdr\ta_MINUS_DI.obj \ + ..\..\..\..\..\temp\cdr\ta_MINUS_DM.obj \ + ..\..\..\..\..\temp\cdr\ta_MOM.obj \ + ..\..\..\..\..\temp\cdr\ta_MULT.obj \ + ..\..\..\..\..\temp\cdr\ta_NATR.obj \ + ..\..\..\..\..\temp\cdr\ta_OBV.obj \ + ..\..\..\..\..\temp\cdr\ta_PLUS_DI.obj \ + ..\..\..\..\..\temp\cdr\ta_PLUS_DM.obj \ + ..\..\..\..\..\temp\cdr\ta_PPO.obj \ + ..\..\..\..\..\temp\cdr\ta_ROC.obj \ + ..\..\..\..\..\temp\cdr\ta_ROCP.obj \ + ..\..\..\..\..\temp\cdr\ta_ROCR.obj \ + ..\..\..\..\..\temp\cdr\ta_ROCR100.obj \ + ..\..\..\..\..\temp\cdr\ta_RSI.obj \ + ..\..\..\..\..\temp\cdr\ta_SAR.obj \ + ..\..\..\..\..\temp\cdr\ta_SAREXT.obj \ + ..\..\..\..\..\temp\cdr\ta_SIN.obj \ + ..\..\..\..\..\temp\cdr\ta_SINH.obj \ + ..\..\..\..\..\temp\cdr\ta_SMA.obj \ + ..\..\..\..\..\temp\cdr\ta_SQRT.obj \ + ..\..\..\..\..\temp\cdr\ta_STDDEV.obj \ + ..\..\..\..\..\temp\cdr\ta_STOCH.obj \ + ..\..\..\..\..\temp\cdr\ta_STOCHF.obj \ + ..\..\..\..\..\temp\cdr\ta_STOCHRSI.obj \ + ..\..\..\..\..\temp\cdr\ta_SUB.obj \ + ..\..\..\..\..\temp\cdr\ta_SUM.obj \ + ..\..\..\..\..\temp\cdr\ta_T3.obj \ + ..\..\..\..\..\temp\cdr\ta_TAN.obj \ + ..\..\..\..\..\temp\cdr\ta_TANH.obj \ + ..\..\..\..\..\temp\cdr\ta_TEMA.obj \ + ..\..\..\..\..\temp\cdr\ta_TRANGE.obj \ + ..\..\..\..\..\temp\cdr\ta_TRIMA.obj \ + ..\..\..\..\..\temp\cdr\ta_TRIX.obj \ + ..\..\..\..\..\temp\cdr\ta_TSF.obj \ + ..\..\..\..\..\temp\cdr\ta_TYPPRICE.obj \ + ..\..\..\..\..\temp\cdr\ta_ULTOSC.obj \ + ..\..\..\..\..\temp\cdr\ta_VAR.obj \ + ..\..\..\..\..\temp\cdr\ta_WCLPRICE.obj \ + ..\..\..\..\..\temp\cdr\ta_WILLR.obj \ + ..\..\..\..\..\temp\cdr\ta_WMA.obj +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ..\..\..\..\..\lib\ta_libc_cdr.lib +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .c + +.cpp.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $< + +.cxx.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $< + +.cc.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $< + +.c.obj: + $(CC) -c $(CFLAGS) $(INCPATH) -Fo$@ $< + +####### Build rules + +all: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + $(LIB) /OUT:$(TARGET) @<< + $(OBJECTS) $(OBJMOC) +<< + +moc: $(SRCMOC) + +tmake: ../cdr/win32/msvc/ta_libc/Makefile + +../cdr/win32/msvc/ta_libc/Makefile: ta_libc/ta_libc.pro + tmake ta_libc/ta_libc.pro -o ../cdr/win32/msvc/ta_libc/Makefile + +dist: + $(ZIP) ta_libc/ta_libc.zip ta_libc/ta_libc.pro $(SOURCES) $(HEADERS) $(DIST) $(INTERFACES) + +clean: + -del ..\..\..\..\..\temp\cdr\ta_global.obj + -del ..\..\..\..\..\temp\cdr\ta_retcode.obj + -del ..\..\..\..\..\temp\cdr\ta_version.obj + -del ..\..\..\..\..\temp\cdr\ta_abstract.obj + -del ..\..\..\..\..\temp\cdr\ta_def_ui.obj + -del ..\..\..\..\..\temp\cdr\ta_func_api.obj + -del ..\..\..\..\..\temp\cdr\ta_group_idx.obj + -del ..\..\..\..\..\temp\cdr\ta_frame.obj + -del ..\..\..\..\..\temp\cdr\table_a.obj + -del ..\..\..\..\..\temp\cdr\table_b.obj + -del ..\..\..\..\..\temp\cdr\table_c.obj + -del ..\..\..\..\..\temp\cdr\table_d.obj + -del ..\..\..\..\..\temp\cdr\table_e.obj + -del ..\..\..\..\..\temp\cdr\table_f.obj + -del ..\..\..\..\..\temp\cdr\table_g.obj + -del ..\..\..\..\..\temp\cdr\table_h.obj + -del ..\..\..\..\..\temp\cdr\table_i.obj + -del ..\..\..\..\..\temp\cdr\table_j.obj + -del ..\..\..\..\..\temp\cdr\table_k.obj + -del ..\..\..\..\..\temp\cdr\table_l.obj + -del ..\..\..\..\..\temp\cdr\table_m.obj + -del ..\..\..\..\..\temp\cdr\table_n.obj + -del ..\..\..\..\..\temp\cdr\table_o.obj + -del ..\..\..\..\..\temp\cdr\table_p.obj + -del ..\..\..\..\..\temp\cdr\table_q.obj + -del ..\..\..\..\..\temp\cdr\table_r.obj + -del ..\..\..\..\..\temp\cdr\table_s.obj + -del ..\..\..\..\..\temp\cdr\table_t.obj + -del ..\..\..\..\..\temp\cdr\table_u.obj + -del ..\..\..\..\..\temp\cdr\table_v.obj + -del ..\..\..\..\..\temp\cdr\table_w.obj + -del ..\..\..\..\..\temp\cdr\table_x.obj + -del ..\..\..\..\..\temp\cdr\table_y.obj + -del ..\..\..\..\..\temp\cdr\table_z.obj + -del ..\..\..\..\..\temp\cdr\ta_utility.obj + -del ..\..\..\..\..\temp\cdr\ta_ACOS.obj + -del ..\..\..\..\..\temp\cdr\ta_AD.obj + -del ..\..\..\..\..\temp\cdr\ta_ADD.obj + -del ..\..\..\..\..\temp\cdr\ta_ADOSC.obj + -del ..\..\..\..\..\temp\cdr\ta_ADX.obj + -del ..\..\..\..\..\temp\cdr\ta_ADXR.obj + -del ..\..\..\..\..\temp\cdr\ta_APO.obj + -del ..\..\..\..\..\temp\cdr\ta_AROON.obj + -del ..\..\..\..\..\temp\cdr\ta_AROONOSC.obj + -del ..\..\..\..\..\temp\cdr\ta_ASIN.obj + -del ..\..\..\..\..\temp\cdr\ta_ATAN.obj + -del ..\..\..\..\..\temp\cdr\ta_ATR.obj + -del ..\..\..\..\..\temp\cdr\ta_AVGPRICE.obj + -del ..\..\..\..\..\temp\cdr\ta_BBANDS.obj + -del ..\..\..\..\..\temp\cdr\ta_BETA.obj + -del ..\..\..\..\..\temp\cdr\ta_BOP.obj + -del ..\..\..\..\..\temp\cdr\ta_CCI.obj + -del ..\..\..\..\..\temp\cdr\ta_CDL2CROWS.obj + -del ..\..\..\..\..\temp\cdr\ta_CDL3BLACKCROWS.obj + -del ..\..\..\..\..\temp\cdr\ta_CDL3INSIDE.obj + -del ..\..\..\..\..\temp\cdr\ta_CDL3LINESTRIKE.obj + -del ..\..\..\..\..\temp\cdr\ta_CDL3OUTSIDE.obj + -del ..\..\..\..\..\temp\cdr\ta_CDL3STARSINSOUTH.obj + -del ..\..\..\..\..\temp\cdr\ta_CDL3WHITESOLDIERS.obj + -del ..\..\..\..\..\temp\cdr\ta_CDLABANDONEDBABY.obj + -del ..\..\..\..\..\temp\cdr\ta_CDLADVANCEBLOCK.obj + -del ..\..\..\..\..\temp\cdr\ta_CDLBELTHOLD.obj + -del ..\..\..\..\..\temp\cdr\ta_CDLBREAKAWAY.obj + -del ..\..\..\..\..\temp\cdr\ta_CDLCLOSINGMARUBOZU.obj + -del ..\..\..\..\..\temp\cdr\ta_CDLCONCEALBABYSWALL.obj + -del ..\..\..\..\..\temp\cdr\ta_CDLCOUNTERATTACK.obj + -del ..\..\..\..\..\temp\cdr\ta_CDLDARKCLOUDCOVER.obj + -del ..\..\..\..\..\temp\cdr\ta_CDLDOJI.obj + -del ..\..\..\..\..\temp\cdr\ta_CDLDOJISTAR.obj + -del ..\..\..\..\..\temp\cdr\ta_CDLDRAGONFLYDOJI.obj + -del ..\..\..\..\..\temp\cdr\ta_CDLENGULFING.obj + -del ..\..\..\..\..\temp\cdr\ta_CDLEVENINGDOJISTAR.obj + -del ..\..\..\..\..\temp\cdr\ta_CDLEVENINGSTAR.obj + -del ..\..\..\..\..\temp\cdr\ta_CDLGAPSIDESIDEWHITE.obj + -del ..\..\..\..\..\temp\cdr\ta_CDLGRAVESTONEDOJI.obj + -del ..\..\..\..\..\temp\cdr\ta_CDLHAMMER.obj + -del ..\..\..\..\..\temp\cdr\ta_CDLHANGINGMAN.obj + -del ..\..\..\..\..\temp\cdr\ta_CDLHARAMI.obj + -del ..\..\..\..\..\temp\cdr\ta_CDLHARAMICROSS.obj + -del ..\..\..\..\..\temp\cdr\ta_CDLHIGHWAVE.obj + -del ..\..\..\..\..\temp\cdr\ta_CDLHIKKAKE.obj + -del ..\..\..\..\..\temp\cdr\ta_CDLHIKKAKEMOD.obj + -del ..\..\..\..\..\temp\cdr\ta_CDLHOMINGPIGEON.obj + -del ..\..\..\..\..\temp\cdr\ta_CDLIDENTICAL3CROWS.obj + -del ..\..\..\..\..\temp\cdr\ta_CDLINNECK.obj + -del ..\..\..\..\..\temp\cdr\ta_CDLINVERTEDHAMMER.obj + -del ..\..\..\..\..\temp\cdr\ta_CDLKICKING.obj + -del ..\..\..\..\..\temp\cdr\ta_CDLKICKINGBYLENGTH.obj + -del ..\..\..\..\..\temp\cdr\ta_CDLLADDERBOTTOM.obj + -del ..\..\..\..\..\temp\cdr\ta_CDLLONGLEGGEDDOJI.obj + -del ..\..\..\..\..\temp\cdr\ta_CDLLONGLINE.obj + -del ..\..\..\..\..\temp\cdr\ta_CDLMARUBOZU.obj + -del ..\..\..\..\..\temp\cdr\ta_CDLMATCHINGLOW.obj + -del ..\..\..\..\..\temp\cdr\ta_CDLMATHOLD.obj + -del ..\..\..\..\..\temp\cdr\ta_CDLMORNINGDOJISTAR.obj + -del ..\..\..\..\..\temp\cdr\ta_CDLMORNINGSTAR.obj + -del ..\..\..\..\..\temp\cdr\ta_CDLONNECK.obj + -del ..\..\..\..\..\temp\cdr\ta_CDLPIERCING.obj + -del ..\..\..\..\..\temp\cdr\ta_CDLRICKSHAWMAN.obj + -del ..\..\..\..\..\temp\cdr\ta_CDLRISEFALL3METHODS.obj + -del ..\..\..\..\..\temp\cdr\ta_CDLSEPARATINGLINES.obj + -del ..\..\..\..\..\temp\cdr\ta_CDLSHOOTINGSTAR.obj + -del ..\..\..\..\..\temp\cdr\ta_CDLSHORTLINE.obj + -del ..\..\..\..\..\temp\cdr\ta_CDLSPINNINGTOP.obj + -del ..\..\..\..\..\temp\cdr\ta_CDLSTALLEDPATTERN.obj + -del ..\..\..\..\..\temp\cdr\ta_CDLSTICKSANDWICH.obj + -del ..\..\..\..\..\temp\cdr\ta_CDLTAKURI.obj + -del ..\..\..\..\..\temp\cdr\ta_CDLTASUKIGAP.obj + -del ..\..\..\..\..\temp\cdr\ta_CDLTHRUSTING.obj + -del ..\..\..\..\..\temp\cdr\ta_CDLTRISTAR.obj + -del ..\..\..\..\..\temp\cdr\ta_CDLUNIQUE3RIVER.obj + -del ..\..\..\..\..\temp\cdr\ta_CDLUPSIDEGAP2CROWS.obj + -del ..\..\..\..\..\temp\cdr\ta_CDLXSIDEGAP3METHODS.obj + -del ..\..\..\..\..\temp\cdr\ta_CEIL.obj + -del ..\..\..\..\..\temp\cdr\ta_CMO.obj + -del ..\..\..\..\..\temp\cdr\ta_CORREL.obj + -del ..\..\..\..\..\temp\cdr\ta_COS.obj + -del ..\..\..\..\..\temp\cdr\ta_COSH.obj + -del ..\..\..\..\..\temp\cdr\ta_DEMA.obj + -del ..\..\..\..\..\temp\cdr\ta_DIV.obj + -del ..\..\..\..\..\temp\cdr\ta_DX.obj + -del ..\..\..\..\..\temp\cdr\ta_EMA.obj + -del ..\..\..\..\..\temp\cdr\ta_EXP.obj + -del ..\..\..\..\..\temp\cdr\ta_FLOOR.obj + -del ..\..\..\..\..\temp\cdr\ta_HT_DCPERIOD.obj + -del ..\..\..\..\..\temp\cdr\ta_HT_DCPHASE.obj + -del ..\..\..\..\..\temp\cdr\ta_HT_PHASOR.obj + -del ..\..\..\..\..\temp\cdr\ta_HT_SINE.obj + -del ..\..\..\..\..\temp\cdr\ta_HT_TRENDLINE.obj + -del ..\..\..\..\..\temp\cdr\ta_HT_TRENDMODE.obj + -del ..\..\..\..\..\temp\cdr\ta_KAMA.obj + -del ..\..\..\..\..\temp\cdr\ta_LINEARREG.obj + -del ..\..\..\..\..\temp\cdr\ta_LINEARREG_ANGLE.obj + -del ..\..\..\..\..\temp\cdr\ta_LINEARREG_INTERCEPT.obj + -del ..\..\..\..\..\temp\cdr\ta_LINEARREG_SLOPE.obj + -del ..\..\..\..\..\temp\cdr\ta_LN.obj + -del ..\..\..\..\..\temp\cdr\ta_LOG10.obj + -del ..\..\..\..\..\temp\cdr\ta_MA.obj + -del ..\..\..\..\..\temp\cdr\ta_MACD.obj + -del ..\..\..\..\..\temp\cdr\ta_MACDEXT.obj + -del ..\..\..\..\..\temp\cdr\ta_MACDFIX.obj + -del ..\..\..\..\..\temp\cdr\ta_MAMA.obj + -del ..\..\..\..\..\temp\cdr\ta_MAVP.obj + -del ..\..\..\..\..\temp\cdr\ta_MAX.obj + -del ..\..\..\..\..\temp\cdr\ta_MAXINDEX.obj + -del ..\..\..\..\..\temp\cdr\ta_MEDPRICE.obj + -del ..\..\..\..\..\temp\cdr\ta_MFI.obj + -del ..\..\..\..\..\temp\cdr\ta_MIDPOINT.obj + -del ..\..\..\..\..\temp\cdr\ta_MIDPRICE.obj + -del ..\..\..\..\..\temp\cdr\ta_MIN.obj + -del ..\..\..\..\..\temp\cdr\ta_MININDEX.obj + -del ..\..\..\..\..\temp\cdr\ta_MINMAX.obj + -del ..\..\..\..\..\temp\cdr\ta_MINMAXINDEX.obj + -del ..\..\..\..\..\temp\cdr\ta_MINUS_DI.obj + -del ..\..\..\..\..\temp\cdr\ta_MINUS_DM.obj + -del ..\..\..\..\..\temp\cdr\ta_MOM.obj + -del ..\..\..\..\..\temp\cdr\ta_MULT.obj + -del ..\..\..\..\..\temp\cdr\ta_NATR.obj + -del ..\..\..\..\..\temp\cdr\ta_OBV.obj + -del ..\..\..\..\..\temp\cdr\ta_PLUS_DI.obj + -del ..\..\..\..\..\temp\cdr\ta_PLUS_DM.obj + -del ..\..\..\..\..\temp\cdr\ta_PPO.obj + -del ..\..\..\..\..\temp\cdr\ta_ROC.obj + -del ..\..\..\..\..\temp\cdr\ta_ROCP.obj + -del ..\..\..\..\..\temp\cdr\ta_ROCR.obj + -del ..\..\..\..\..\temp\cdr\ta_ROCR100.obj + -del ..\..\..\..\..\temp\cdr\ta_RSI.obj + -del ..\..\..\..\..\temp\cdr\ta_SAR.obj + -del ..\..\..\..\..\temp\cdr\ta_SAREXT.obj + -del ..\..\..\..\..\temp\cdr\ta_SIN.obj + -del ..\..\..\..\..\temp\cdr\ta_SINH.obj + -del ..\..\..\..\..\temp\cdr\ta_SMA.obj + -del ..\..\..\..\..\temp\cdr\ta_SQRT.obj + -del ..\..\..\..\..\temp\cdr\ta_STDDEV.obj + -del ..\..\..\..\..\temp\cdr\ta_STOCH.obj + -del ..\..\..\..\..\temp\cdr\ta_STOCHF.obj + -del ..\..\..\..\..\temp\cdr\ta_STOCHRSI.obj + -del ..\..\..\..\..\temp\cdr\ta_SUB.obj + -del ..\..\..\..\..\temp\cdr\ta_SUM.obj + -del ..\..\..\..\..\temp\cdr\ta_T3.obj + -del ..\..\..\..\..\temp\cdr\ta_TAN.obj + -del ..\..\..\..\..\temp\cdr\ta_TANH.obj + -del ..\..\..\..\..\temp\cdr\ta_TEMA.obj + -del ..\..\..\..\..\temp\cdr\ta_TRANGE.obj + -del ..\..\..\..\..\temp\cdr\ta_TRIMA.obj + -del ..\..\..\..\..\temp\cdr\ta_TRIX.obj + -del ..\..\..\..\..\temp\cdr\ta_TSF.obj + -del ..\..\..\..\..\temp\cdr\ta_TYPPRICE.obj + -del ..\..\..\..\..\temp\cdr\ta_ULTOSC.obj + -del ..\..\..\..\..\temp\cdr\ta_VAR.obj + -del ..\..\..\..\..\temp\cdr\ta_WCLPRICE.obj + -del ..\..\..\..\..\temp\cdr\ta_WILLR.obj + -del ..\..\..\..\..\temp\cdr\ta_WMA.obj + -del $(TARGET) + -del ../../../../../bin/*.map + -del ../../../../../bin/*._xe + -del ../../../../../bin/*.tds + -del ../../../../../bin/*.pdb + -del ../../../../../bin/*.pbo + -del ../../../../../bin/*.pbi + -del ../../../../../bin/*.pbt + +####### Compile + +..\..\..\..\..\temp\cdr\ta_global.obj: ..\..\..\..\..\src\ta_common\ta_global.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_global.obj ..\..\..\..\..\src\ta_common\ta_global.c + +..\..\..\..\..\temp\cdr\ta_retcode.obj: ..\..\..\..\..\src\ta_common\ta_retcode.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_retcode.obj ..\..\..\..\..\src\ta_common\ta_retcode.c + +..\..\..\..\..\temp\cdr\ta_version.obj: ..\..\..\..\..\src\ta_common\ta_version.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_version.obj ..\..\..\..\..\src\ta_common\ta_version.c + +..\..\..\..\..\temp\cdr\ta_abstract.obj: ..\..\..\..\..\src\ta_abstract\ta_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_abstract.obj ..\..\..\..\..\src\ta_abstract\ta_abstract.c + +..\..\..\..\..\temp\cdr\ta_def_ui.obj: ..\..\..\..\..\src\ta_abstract\ta_def_ui.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_def_ui.obj ..\..\..\..\..\src\ta_abstract\ta_def_ui.c + +..\..\..\..\..\temp\cdr\ta_func_api.obj: ..\..\..\..\..\src\ta_abstract\ta_func_api.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_func_api.obj ..\..\..\..\..\src\ta_abstract\ta_func_api.c + +..\..\..\..\..\temp\cdr\ta_group_idx.obj: ..\..\..\..\..\src\ta_abstract\ta_group_idx.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_group_idx.obj ..\..\..\..\..\src\ta_abstract\ta_group_idx.c + +..\..\..\..\..\temp\cdr\ta_frame.obj: ..\..\..\..\..\src\ta_abstract\frames\ta_frame.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_frame.obj ..\..\..\..\..\src\ta_abstract\frames\ta_frame.c + +..\..\..\..\..\temp\cdr\table_a.obj: ..\..\..\..\..\src\ta_abstract\tables\table_a.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\table_a.obj ..\..\..\..\..\src\ta_abstract\tables\table_a.c + +..\..\..\..\..\temp\cdr\table_b.obj: ..\..\..\..\..\src\ta_abstract\tables\table_b.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\table_b.obj ..\..\..\..\..\src\ta_abstract\tables\table_b.c + +..\..\..\..\..\temp\cdr\table_c.obj: ..\..\..\..\..\src\ta_abstract\tables\table_c.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\table_c.obj ..\..\..\..\..\src\ta_abstract\tables\table_c.c + +..\..\..\..\..\temp\cdr\table_d.obj: ..\..\..\..\..\src\ta_abstract\tables\table_d.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\table_d.obj ..\..\..\..\..\src\ta_abstract\tables\table_d.c + +..\..\..\..\..\temp\cdr\table_e.obj: ..\..\..\..\..\src\ta_abstract\tables\table_e.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\table_e.obj ..\..\..\..\..\src\ta_abstract\tables\table_e.c + +..\..\..\..\..\temp\cdr\table_f.obj: ..\..\..\..\..\src\ta_abstract\tables\table_f.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\table_f.obj ..\..\..\..\..\src\ta_abstract\tables\table_f.c + +..\..\..\..\..\temp\cdr\table_g.obj: ..\..\..\..\..\src\ta_abstract\tables\table_g.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\table_g.obj ..\..\..\..\..\src\ta_abstract\tables\table_g.c + +..\..\..\..\..\temp\cdr\table_h.obj: ..\..\..\..\..\src\ta_abstract\tables\table_h.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\table_h.obj ..\..\..\..\..\src\ta_abstract\tables\table_h.c + +..\..\..\..\..\temp\cdr\table_i.obj: ..\..\..\..\..\src\ta_abstract\tables\table_i.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\table_i.obj ..\..\..\..\..\src\ta_abstract\tables\table_i.c + +..\..\..\..\..\temp\cdr\table_j.obj: ..\..\..\..\..\src\ta_abstract\tables\table_j.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\table_j.obj ..\..\..\..\..\src\ta_abstract\tables\table_j.c + +..\..\..\..\..\temp\cdr\table_k.obj: ..\..\..\..\..\src\ta_abstract\tables\table_k.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\table_k.obj ..\..\..\..\..\src\ta_abstract\tables\table_k.c + +..\..\..\..\..\temp\cdr\table_l.obj: ..\..\..\..\..\src\ta_abstract\tables\table_l.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\table_l.obj ..\..\..\..\..\src\ta_abstract\tables\table_l.c + +..\..\..\..\..\temp\cdr\table_m.obj: ..\..\..\..\..\src\ta_abstract\tables\table_m.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\table_m.obj ..\..\..\..\..\src\ta_abstract\tables\table_m.c + +..\..\..\..\..\temp\cdr\table_n.obj: ..\..\..\..\..\src\ta_abstract\tables\table_n.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\table_n.obj ..\..\..\..\..\src\ta_abstract\tables\table_n.c + +..\..\..\..\..\temp\cdr\table_o.obj: ..\..\..\..\..\src\ta_abstract\tables\table_o.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\table_o.obj ..\..\..\..\..\src\ta_abstract\tables\table_o.c + +..\..\..\..\..\temp\cdr\table_p.obj: ..\..\..\..\..\src\ta_abstract\tables\table_p.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\table_p.obj ..\..\..\..\..\src\ta_abstract\tables\table_p.c + +..\..\..\..\..\temp\cdr\table_q.obj: ..\..\..\..\..\src\ta_abstract\tables\table_q.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\table_q.obj ..\..\..\..\..\src\ta_abstract\tables\table_q.c + +..\..\..\..\..\temp\cdr\table_r.obj: ..\..\..\..\..\src\ta_abstract\tables\table_r.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\table_r.obj ..\..\..\..\..\src\ta_abstract\tables\table_r.c + +..\..\..\..\..\temp\cdr\table_s.obj: ..\..\..\..\..\src\ta_abstract\tables\table_s.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\table_s.obj ..\..\..\..\..\src\ta_abstract\tables\table_s.c + +..\..\..\..\..\temp\cdr\table_t.obj: ..\..\..\..\..\src\ta_abstract\tables\table_t.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\table_t.obj ..\..\..\..\..\src\ta_abstract\tables\table_t.c + +..\..\..\..\..\temp\cdr\table_u.obj: ..\..\..\..\..\src\ta_abstract\tables\table_u.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\table_u.obj ..\..\..\..\..\src\ta_abstract\tables\table_u.c + +..\..\..\..\..\temp\cdr\table_v.obj: ..\..\..\..\..\src\ta_abstract\tables\table_v.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\table_v.obj ..\..\..\..\..\src\ta_abstract\tables\table_v.c + +..\..\..\..\..\temp\cdr\table_w.obj: ..\..\..\..\..\src\ta_abstract\tables\table_w.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\table_w.obj ..\..\..\..\..\src\ta_abstract\tables\table_w.c + +..\..\..\..\..\temp\cdr\table_x.obj: ..\..\..\..\..\src\ta_abstract\tables\table_x.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\table_x.obj ..\..\..\..\..\src\ta_abstract\tables\table_x.c + +..\..\..\..\..\temp\cdr\table_y.obj: ..\..\..\..\..\src\ta_abstract\tables\table_y.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\table_y.obj ..\..\..\..\..\src\ta_abstract\tables\table_y.c + +..\..\..\..\..\temp\cdr\table_z.obj: ..\..\..\..\..\src\ta_abstract\tables\table_z.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\table_z.obj ..\..\..\..\..\src\ta_abstract\tables\table_z.c + +..\..\..\..\..\temp\cdr\ta_utility.obj: ..\..\..\..\..\src\ta_func\ta_utility.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_utility.obj ..\..\..\..\..\src\ta_func\ta_utility.c + +..\..\..\..\..\temp\cdr\ta_ACOS.obj: ..\..\..\..\..\src\ta_func\ta_ACOS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_ACOS.obj ..\..\..\..\..\src\ta_func\ta_ACOS.c + +..\..\..\..\..\temp\cdr\ta_AD.obj: ..\..\..\..\..\src\ta_func\ta_AD.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_AD.obj ..\..\..\..\..\src\ta_func\ta_AD.c + +..\..\..\..\..\temp\cdr\ta_ADD.obj: ..\..\..\..\..\src\ta_func\ta_ADD.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_ADD.obj ..\..\..\..\..\src\ta_func\ta_ADD.c + +..\..\..\..\..\temp\cdr\ta_ADOSC.obj: ..\..\..\..\..\src\ta_func\ta_ADOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_ADOSC.obj ..\..\..\..\..\src\ta_func\ta_ADOSC.c + +..\..\..\..\..\temp\cdr\ta_ADX.obj: ..\..\..\..\..\src\ta_func\ta_ADX.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_ADX.obj ..\..\..\..\..\src\ta_func\ta_ADX.c + +..\..\..\..\..\temp\cdr\ta_ADXR.obj: ..\..\..\..\..\src\ta_func\ta_ADXR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_ADXR.obj ..\..\..\..\..\src\ta_func\ta_ADXR.c + +..\..\..\..\..\temp\cdr\ta_APO.obj: ..\..\..\..\..\src\ta_func\ta_APO.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_APO.obj ..\..\..\..\..\src\ta_func\ta_APO.c + +..\..\..\..\..\temp\cdr\ta_AROON.obj: ..\..\..\..\..\src\ta_func\ta_AROON.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_AROON.obj ..\..\..\..\..\src\ta_func\ta_AROON.c + +..\..\..\..\..\temp\cdr\ta_AROONOSC.obj: ..\..\..\..\..\src\ta_func\ta_AROONOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_AROONOSC.obj ..\..\..\..\..\src\ta_func\ta_AROONOSC.c + +..\..\..\..\..\temp\cdr\ta_ASIN.obj: ..\..\..\..\..\src\ta_func\ta_ASIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_ASIN.obj ..\..\..\..\..\src\ta_func\ta_ASIN.c + +..\..\..\..\..\temp\cdr\ta_ATAN.obj: ..\..\..\..\..\src\ta_func\ta_ATAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_ATAN.obj ..\..\..\..\..\src\ta_func\ta_ATAN.c + +..\..\..\..\..\temp\cdr\ta_ATR.obj: ..\..\..\..\..\src\ta_func\ta_ATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_ATR.obj ..\..\..\..\..\src\ta_func\ta_ATR.c + +..\..\..\..\..\temp\cdr\ta_AVGPRICE.obj: ..\..\..\..\..\src\ta_func\ta_AVGPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_AVGPRICE.obj ..\..\..\..\..\src\ta_func\ta_AVGPRICE.c + +..\..\..\..\..\temp\cdr\ta_BBANDS.obj: ..\..\..\..\..\src\ta_func\ta_BBANDS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_BBANDS.obj ..\..\..\..\..\src\ta_func\ta_BBANDS.c + +..\..\..\..\..\temp\cdr\ta_BETA.obj: ..\..\..\..\..\src\ta_func\ta_BETA.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_BETA.obj ..\..\..\..\..\src\ta_func\ta_BETA.c + +..\..\..\..\..\temp\cdr\ta_BOP.obj: ..\..\..\..\..\src\ta_func\ta_BOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_BOP.obj ..\..\..\..\..\src\ta_func\ta_BOP.c + +..\..\..\..\..\temp\cdr\ta_CCI.obj: ..\..\..\..\..\src\ta_func\ta_CCI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CCI.obj ..\..\..\..\..\src\ta_func\ta_CCI.c + +..\..\..\..\..\temp\cdr\ta_CDL2CROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDL2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CDL2CROWS.obj ..\..\..\..\..\src\ta_func\ta_CDL2CROWS.c + +..\..\..\..\..\temp\cdr\ta_CDL3BLACKCROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDL3BLACKCROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CDL3BLACKCROWS.obj ..\..\..\..\..\src\ta_func\ta_CDL3BLACKCROWS.c + +..\..\..\..\..\temp\cdr\ta_CDL3INSIDE.obj: ..\..\..\..\..\src\ta_func\ta_CDL3INSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CDL3INSIDE.obj ..\..\..\..\..\src\ta_func\ta_CDL3INSIDE.c + +..\..\..\..\..\temp\cdr\ta_CDL3LINESTRIKE.obj: ..\..\..\..\..\src\ta_func\ta_CDL3LINESTRIKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CDL3LINESTRIKE.obj ..\..\..\..\..\src\ta_func\ta_CDL3LINESTRIKE.c + +..\..\..\..\..\temp\cdr\ta_CDL3OUTSIDE.obj: ..\..\..\..\..\src\ta_func\ta_CDL3OUTSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CDL3OUTSIDE.obj ..\..\..\..\..\src\ta_func\ta_CDL3OUTSIDE.c + +..\..\..\..\..\temp\cdr\ta_CDL3STARSINSOUTH.obj: ..\..\..\..\..\src\ta_func\ta_CDL3STARSINSOUTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CDL3STARSINSOUTH.obj ..\..\..\..\..\src\ta_func\ta_CDL3STARSINSOUTH.c + +..\..\..\..\..\temp\cdr\ta_CDL3WHITESOLDIERS.obj: ..\..\..\..\..\src\ta_func\ta_CDL3WHITESOLDIERS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CDL3WHITESOLDIERS.obj ..\..\..\..\..\src\ta_func\ta_CDL3WHITESOLDIERS.c + +..\..\..\..\..\temp\cdr\ta_CDLABANDONEDBABY.obj: ..\..\..\..\..\src\ta_func\ta_CDLABANDONEDBABY.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CDLABANDONEDBABY.obj ..\..\..\..\..\src\ta_func\ta_CDLABANDONEDBABY.c + +..\..\..\..\..\temp\cdr\ta_CDLADVANCEBLOCK.obj: ..\..\..\..\..\src\ta_func\ta_CDLADVANCEBLOCK.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CDLADVANCEBLOCK.obj ..\..\..\..\..\src\ta_func\ta_CDLADVANCEBLOCK.c + +..\..\..\..\..\temp\cdr\ta_CDLBELTHOLD.obj: ..\..\..\..\..\src\ta_func\ta_CDLBELTHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CDLBELTHOLD.obj ..\..\..\..\..\src\ta_func\ta_CDLBELTHOLD.c + +..\..\..\..\..\temp\cdr\ta_CDLBREAKAWAY.obj: ..\..\..\..\..\src\ta_func\ta_CDLBREAKAWAY.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CDLBREAKAWAY.obj ..\..\..\..\..\src\ta_func\ta_CDLBREAKAWAY.c + +..\..\..\..\..\temp\cdr\ta_CDLCLOSINGMARUBOZU.obj: ..\..\..\..\..\src\ta_func\ta_CDLCLOSINGMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CDLCLOSINGMARUBOZU.obj ..\..\..\..\..\src\ta_func\ta_CDLCLOSINGMARUBOZU.c + +..\..\..\..\..\temp\cdr\ta_CDLCONCEALBABYSWALL.obj: ..\..\..\..\..\src\ta_func\ta_CDLCONCEALBABYSWALL.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CDLCONCEALBABYSWALL.obj ..\..\..\..\..\src\ta_func\ta_CDLCONCEALBABYSWALL.c + +..\..\..\..\..\temp\cdr\ta_CDLCOUNTERATTACK.obj: ..\..\..\..\..\src\ta_func\ta_CDLCOUNTERATTACK.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CDLCOUNTERATTACK.obj ..\..\..\..\..\src\ta_func\ta_CDLCOUNTERATTACK.c + +..\..\..\..\..\temp\cdr\ta_CDLDARKCLOUDCOVER.obj: ..\..\..\..\..\src\ta_func\ta_CDLDARKCLOUDCOVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CDLDARKCLOUDCOVER.obj ..\..\..\..\..\src\ta_func\ta_CDLDARKCLOUDCOVER.c + +..\..\..\..\..\temp\cdr\ta_CDLDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CDLDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLDOJI.c + +..\..\..\..\..\temp\cdr\ta_CDLDOJISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CDLDOJISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLDOJISTAR.c + +..\..\..\..\..\temp\cdr\ta_CDLDRAGONFLYDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLDRAGONFLYDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CDLDRAGONFLYDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLDRAGONFLYDOJI.c + +..\..\..\..\..\temp\cdr\ta_CDLENGULFING.obj: ..\..\..\..\..\src\ta_func\ta_CDLENGULFING.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CDLENGULFING.obj ..\..\..\..\..\src\ta_func\ta_CDLENGULFING.c + +..\..\..\..\..\temp\cdr\ta_CDLEVENINGDOJISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLEVENINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CDLEVENINGDOJISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLEVENINGDOJISTAR.c + +..\..\..\..\..\temp\cdr\ta_CDLEVENINGSTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLEVENINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CDLEVENINGSTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLEVENINGSTAR.c + +..\..\..\..\..\temp\cdr\ta_CDLGAPSIDESIDEWHITE.obj: ..\..\..\..\..\src\ta_func\ta_CDLGAPSIDESIDEWHITE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CDLGAPSIDESIDEWHITE.obj ..\..\..\..\..\src\ta_func\ta_CDLGAPSIDESIDEWHITE.c + +..\..\..\..\..\temp\cdr\ta_CDLGRAVESTONEDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLGRAVESTONEDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CDLGRAVESTONEDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLGRAVESTONEDOJI.c + +..\..\..\..\..\temp\cdr\ta_CDLHAMMER.obj: ..\..\..\..\..\src\ta_func\ta_CDLHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CDLHAMMER.obj ..\..\..\..\..\src\ta_func\ta_CDLHAMMER.c + +..\..\..\..\..\temp\cdr\ta_CDLHANGINGMAN.obj: ..\..\..\..\..\src\ta_func\ta_CDLHANGINGMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CDLHANGINGMAN.obj ..\..\..\..\..\src\ta_func\ta_CDLHANGINGMAN.c + +..\..\..\..\..\temp\cdr\ta_CDLHARAMI.obj: ..\..\..\..\..\src\ta_func\ta_CDLHARAMI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CDLHARAMI.obj ..\..\..\..\..\src\ta_func\ta_CDLHARAMI.c + +..\..\..\..\..\temp\cdr\ta_CDLHARAMICROSS.obj: ..\..\..\..\..\src\ta_func\ta_CDLHARAMICROSS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CDLHARAMICROSS.obj ..\..\..\..\..\src\ta_func\ta_CDLHARAMICROSS.c + +..\..\..\..\..\temp\cdr\ta_CDLHIGHWAVE.obj: ..\..\..\..\..\src\ta_func\ta_CDLHIGHWAVE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CDLHIGHWAVE.obj ..\..\..\..\..\src\ta_func\ta_CDLHIGHWAVE.c + +..\..\..\..\..\temp\cdr\ta_CDLHIKKAKE.obj: ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CDLHIKKAKE.obj ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKE.c + +..\..\..\..\..\temp\cdr\ta_CDLHIKKAKEMOD.obj: ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKEMOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CDLHIKKAKEMOD.obj ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKEMOD.c + +..\..\..\..\..\temp\cdr\ta_CDLHOMINGPIGEON.obj: ..\..\..\..\..\src\ta_func\ta_CDLHOMINGPIGEON.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CDLHOMINGPIGEON.obj ..\..\..\..\..\src\ta_func\ta_CDLHOMINGPIGEON.c + +..\..\..\..\..\temp\cdr\ta_CDLIDENTICAL3CROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDLIDENTICAL3CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CDLIDENTICAL3CROWS.obj ..\..\..\..\..\src\ta_func\ta_CDLIDENTICAL3CROWS.c + +..\..\..\..\..\temp\cdr\ta_CDLINNECK.obj: ..\..\..\..\..\src\ta_func\ta_CDLINNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CDLINNECK.obj ..\..\..\..\..\src\ta_func\ta_CDLINNECK.c + +..\..\..\..\..\temp\cdr\ta_CDLINVERTEDHAMMER.obj: ..\..\..\..\..\src\ta_func\ta_CDLINVERTEDHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CDLINVERTEDHAMMER.obj ..\..\..\..\..\src\ta_func\ta_CDLINVERTEDHAMMER.c + +..\..\..\..\..\temp\cdr\ta_CDLKICKING.obj: ..\..\..\..\..\src\ta_func\ta_CDLKICKING.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CDLKICKING.obj ..\..\..\..\..\src\ta_func\ta_CDLKICKING.c + +..\..\..\..\..\temp\cdr\ta_CDLKICKINGBYLENGTH.obj: ..\..\..\..\..\src\ta_func\ta_CDLKICKINGBYLENGTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CDLKICKINGBYLENGTH.obj ..\..\..\..\..\src\ta_func\ta_CDLKICKINGBYLENGTH.c + +..\..\..\..\..\temp\cdr\ta_CDLLADDERBOTTOM.obj: ..\..\..\..\..\src\ta_func\ta_CDLLADDERBOTTOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CDLLADDERBOTTOM.obj ..\..\..\..\..\src\ta_func\ta_CDLLADDERBOTTOM.c + +..\..\..\..\..\temp\cdr\ta_CDLLONGLEGGEDDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLLONGLEGGEDDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CDLLONGLEGGEDDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLLONGLEGGEDDOJI.c + +..\..\..\..\..\temp\cdr\ta_CDLLONGLINE.obj: ..\..\..\..\..\src\ta_func\ta_CDLLONGLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CDLLONGLINE.obj ..\..\..\..\..\src\ta_func\ta_CDLLONGLINE.c + +..\..\..\..\..\temp\cdr\ta_CDLMARUBOZU.obj: ..\..\..\..\..\src\ta_func\ta_CDLMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CDLMARUBOZU.obj ..\..\..\..\..\src\ta_func\ta_CDLMARUBOZU.c + +..\..\..\..\..\temp\cdr\ta_CDLMATCHINGLOW.obj: ..\..\..\..\..\src\ta_func\ta_CDLMATCHINGLOW.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CDLMATCHINGLOW.obj ..\..\..\..\..\src\ta_func\ta_CDLMATCHINGLOW.c + +..\..\..\..\..\temp\cdr\ta_CDLMATHOLD.obj: ..\..\..\..\..\src\ta_func\ta_CDLMATHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CDLMATHOLD.obj ..\..\..\..\..\src\ta_func\ta_CDLMATHOLD.c + +..\..\..\..\..\temp\cdr\ta_CDLMORNINGDOJISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLMORNINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CDLMORNINGDOJISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLMORNINGDOJISTAR.c + +..\..\..\..\..\temp\cdr\ta_CDLMORNINGSTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLMORNINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CDLMORNINGSTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLMORNINGSTAR.c + +..\..\..\..\..\temp\cdr\ta_CDLONNECK.obj: ..\..\..\..\..\src\ta_func\ta_CDLONNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CDLONNECK.obj ..\..\..\..\..\src\ta_func\ta_CDLONNECK.c + +..\..\..\..\..\temp\cdr\ta_CDLPIERCING.obj: ..\..\..\..\..\src\ta_func\ta_CDLPIERCING.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CDLPIERCING.obj ..\..\..\..\..\src\ta_func\ta_CDLPIERCING.c + +..\..\..\..\..\temp\cdr\ta_CDLRICKSHAWMAN.obj: ..\..\..\..\..\src\ta_func\ta_CDLRICKSHAWMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CDLRICKSHAWMAN.obj ..\..\..\..\..\src\ta_func\ta_CDLRICKSHAWMAN.c + +..\..\..\..\..\temp\cdr\ta_CDLRISEFALL3METHODS.obj: ..\..\..\..\..\src\ta_func\ta_CDLRISEFALL3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CDLRISEFALL3METHODS.obj ..\..\..\..\..\src\ta_func\ta_CDLRISEFALL3METHODS.c + +..\..\..\..\..\temp\cdr\ta_CDLSEPARATINGLINES.obj: ..\..\..\..\..\src\ta_func\ta_CDLSEPARATINGLINES.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CDLSEPARATINGLINES.obj ..\..\..\..\..\src\ta_func\ta_CDLSEPARATINGLINES.c + +..\..\..\..\..\temp\cdr\ta_CDLSHOOTINGSTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLSHOOTINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CDLSHOOTINGSTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLSHOOTINGSTAR.c + +..\..\..\..\..\temp\cdr\ta_CDLSHORTLINE.obj: ..\..\..\..\..\src\ta_func\ta_CDLSHORTLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CDLSHORTLINE.obj ..\..\..\..\..\src\ta_func\ta_CDLSHORTLINE.c + +..\..\..\..\..\temp\cdr\ta_CDLSPINNINGTOP.obj: ..\..\..\..\..\src\ta_func\ta_CDLSPINNINGTOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CDLSPINNINGTOP.obj ..\..\..\..\..\src\ta_func\ta_CDLSPINNINGTOP.c + +..\..\..\..\..\temp\cdr\ta_CDLSTALLEDPATTERN.obj: ..\..\..\..\..\src\ta_func\ta_CDLSTALLEDPATTERN.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CDLSTALLEDPATTERN.obj ..\..\..\..\..\src\ta_func\ta_CDLSTALLEDPATTERN.c + +..\..\..\..\..\temp\cdr\ta_CDLSTICKSANDWICH.obj: ..\..\..\..\..\src\ta_func\ta_CDLSTICKSANDWICH.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CDLSTICKSANDWICH.obj ..\..\..\..\..\src\ta_func\ta_CDLSTICKSANDWICH.c + +..\..\..\..\..\temp\cdr\ta_CDLTAKURI.obj: ..\..\..\..\..\src\ta_func\ta_CDLTAKURI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CDLTAKURI.obj ..\..\..\..\..\src\ta_func\ta_CDLTAKURI.c + +..\..\..\..\..\temp\cdr\ta_CDLTASUKIGAP.obj: ..\..\..\..\..\src\ta_func\ta_CDLTASUKIGAP.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CDLTASUKIGAP.obj ..\..\..\..\..\src\ta_func\ta_CDLTASUKIGAP.c + +..\..\..\..\..\temp\cdr\ta_CDLTHRUSTING.obj: ..\..\..\..\..\src\ta_func\ta_CDLTHRUSTING.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CDLTHRUSTING.obj ..\..\..\..\..\src\ta_func\ta_CDLTHRUSTING.c + +..\..\..\..\..\temp\cdr\ta_CDLTRISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLTRISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CDLTRISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLTRISTAR.c + +..\..\..\..\..\temp\cdr\ta_CDLUNIQUE3RIVER.obj: ..\..\..\..\..\src\ta_func\ta_CDLUNIQUE3RIVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CDLUNIQUE3RIVER.obj ..\..\..\..\..\src\ta_func\ta_CDLUNIQUE3RIVER.c + +..\..\..\..\..\temp\cdr\ta_CDLUPSIDEGAP2CROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDLUPSIDEGAP2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CDLUPSIDEGAP2CROWS.obj ..\..\..\..\..\src\ta_func\ta_CDLUPSIDEGAP2CROWS.c + +..\..\..\..\..\temp\cdr\ta_CDLXSIDEGAP3METHODS.obj: ..\..\..\..\..\src\ta_func\ta_CDLXSIDEGAP3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CDLXSIDEGAP3METHODS.obj ..\..\..\..\..\src\ta_func\ta_CDLXSIDEGAP3METHODS.c + +..\..\..\..\..\temp\cdr\ta_CEIL.obj: ..\..\..\..\..\src\ta_func\ta_CEIL.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CEIL.obj ..\..\..\..\..\src\ta_func\ta_CEIL.c + +..\..\..\..\..\temp\cdr\ta_CMO.obj: ..\..\..\..\..\src\ta_func\ta_CMO.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CMO.obj ..\..\..\..\..\src\ta_func\ta_CMO.c + +..\..\..\..\..\temp\cdr\ta_CORREL.obj: ..\..\..\..\..\src\ta_func\ta_CORREL.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_CORREL.obj ..\..\..\..\..\src\ta_func\ta_CORREL.c + +..\..\..\..\..\temp\cdr\ta_COS.obj: ..\..\..\..\..\src\ta_func\ta_COS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_COS.obj ..\..\..\..\..\src\ta_func\ta_COS.c + +..\..\..\..\..\temp\cdr\ta_COSH.obj: ..\..\..\..\..\src\ta_func\ta_COSH.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_COSH.obj ..\..\..\..\..\src\ta_func\ta_COSH.c + +..\..\..\..\..\temp\cdr\ta_DEMA.obj: ..\..\..\..\..\src\ta_func\ta_DEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_DEMA.obj ..\..\..\..\..\src\ta_func\ta_DEMA.c + +..\..\..\..\..\temp\cdr\ta_DIV.obj: ..\..\..\..\..\src\ta_func\ta_DIV.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_DIV.obj ..\..\..\..\..\src\ta_func\ta_DIV.c + +..\..\..\..\..\temp\cdr\ta_DX.obj: ..\..\..\..\..\src\ta_func\ta_DX.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_DX.obj ..\..\..\..\..\src\ta_func\ta_DX.c + +..\..\..\..\..\temp\cdr\ta_EMA.obj: ..\..\..\..\..\src\ta_func\ta_EMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_EMA.obj ..\..\..\..\..\src\ta_func\ta_EMA.c + +..\..\..\..\..\temp\cdr\ta_EXP.obj: ..\..\..\..\..\src\ta_func\ta_EXP.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_EXP.obj ..\..\..\..\..\src\ta_func\ta_EXP.c + +..\..\..\..\..\temp\cdr\ta_FLOOR.obj: ..\..\..\..\..\src\ta_func\ta_FLOOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_FLOOR.obj ..\..\..\..\..\src\ta_func\ta_FLOOR.c + +..\..\..\..\..\temp\cdr\ta_HT_DCPERIOD.obj: ..\..\..\..\..\src\ta_func\ta_HT_DCPERIOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_HT_DCPERIOD.obj ..\..\..\..\..\src\ta_func\ta_HT_DCPERIOD.c + +..\..\..\..\..\temp\cdr\ta_HT_DCPHASE.obj: ..\..\..\..\..\src\ta_func\ta_HT_DCPHASE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_HT_DCPHASE.obj ..\..\..\..\..\src\ta_func\ta_HT_DCPHASE.c + +..\..\..\..\..\temp\cdr\ta_HT_PHASOR.obj: ..\..\..\..\..\src\ta_func\ta_HT_PHASOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_HT_PHASOR.obj ..\..\..\..\..\src\ta_func\ta_HT_PHASOR.c + +..\..\..\..\..\temp\cdr\ta_HT_SINE.obj: ..\..\..\..\..\src\ta_func\ta_HT_SINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_HT_SINE.obj ..\..\..\..\..\src\ta_func\ta_HT_SINE.c + +..\..\..\..\..\temp\cdr\ta_HT_TRENDLINE.obj: ..\..\..\..\..\src\ta_func\ta_HT_TRENDLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_HT_TRENDLINE.obj ..\..\..\..\..\src\ta_func\ta_HT_TRENDLINE.c + +..\..\..\..\..\temp\cdr\ta_HT_TRENDMODE.obj: ..\..\..\..\..\src\ta_func\ta_HT_TRENDMODE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_HT_TRENDMODE.obj ..\..\..\..\..\src\ta_func\ta_HT_TRENDMODE.c + +..\..\..\..\..\temp\cdr\ta_KAMA.obj: ..\..\..\..\..\src\ta_func\ta_KAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_KAMA.obj ..\..\..\..\..\src\ta_func\ta_KAMA.c + +..\..\..\..\..\temp\cdr\ta_LINEARREG.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_LINEARREG.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG.c + +..\..\..\..\..\temp\cdr\ta_LINEARREG_ANGLE.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG_ANGLE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_LINEARREG_ANGLE.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG_ANGLE.c + +..\..\..\..\..\temp\cdr\ta_LINEARREG_INTERCEPT.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG_INTERCEPT.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_LINEARREG_INTERCEPT.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG_INTERCEPT.c + +..\..\..\..\..\temp\cdr\ta_LINEARREG_SLOPE.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG_SLOPE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_LINEARREG_SLOPE.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG_SLOPE.c + +..\..\..\..\..\temp\cdr\ta_LN.obj: ..\..\..\..\..\src\ta_func\ta_LN.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_LN.obj ..\..\..\..\..\src\ta_func\ta_LN.c + +..\..\..\..\..\temp\cdr\ta_LOG10.obj: ..\..\..\..\..\src\ta_func\ta_LOG10.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_LOG10.obj ..\..\..\..\..\src\ta_func\ta_LOG10.c + +..\..\..\..\..\temp\cdr\ta_MA.obj: ..\..\..\..\..\src\ta_func\ta_MA.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_MA.obj ..\..\..\..\..\src\ta_func\ta_MA.c + +..\..\..\..\..\temp\cdr\ta_MACD.obj: ..\..\..\..\..\src\ta_func\ta_MACD.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_MACD.obj ..\..\..\..\..\src\ta_func\ta_MACD.c + +..\..\..\..\..\temp\cdr\ta_MACDEXT.obj: ..\..\..\..\..\src\ta_func\ta_MACDEXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_MACDEXT.obj ..\..\..\..\..\src\ta_func\ta_MACDEXT.c + +..\..\..\..\..\temp\cdr\ta_MACDFIX.obj: ..\..\..\..\..\src\ta_func\ta_MACDFIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_MACDFIX.obj ..\..\..\..\..\src\ta_func\ta_MACDFIX.c + +..\..\..\..\..\temp\cdr\ta_MAMA.obj: ..\..\..\..\..\src\ta_func\ta_MAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_MAMA.obj ..\..\..\..\..\src\ta_func\ta_MAMA.c + +..\..\..\..\..\temp\cdr\ta_MAVP.obj: ..\..\..\..\..\src\ta_func\ta_MAVP.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_MAVP.obj ..\..\..\..\..\src\ta_func\ta_MAVP.c + +..\..\..\..\..\temp\cdr\ta_MAX.obj: ..\..\..\..\..\src\ta_func\ta_MAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_MAX.obj ..\..\..\..\..\src\ta_func\ta_MAX.c + +..\..\..\..\..\temp\cdr\ta_MAXINDEX.obj: ..\..\..\..\..\src\ta_func\ta_MAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_MAXINDEX.obj ..\..\..\..\..\src\ta_func\ta_MAXINDEX.c + +..\..\..\..\..\temp\cdr\ta_MEDPRICE.obj: ..\..\..\..\..\src\ta_func\ta_MEDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_MEDPRICE.obj ..\..\..\..\..\src\ta_func\ta_MEDPRICE.c + +..\..\..\..\..\temp\cdr\ta_MFI.obj: ..\..\..\..\..\src\ta_func\ta_MFI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_MFI.obj ..\..\..\..\..\src\ta_func\ta_MFI.c + +..\..\..\..\..\temp\cdr\ta_MIDPOINT.obj: ..\..\..\..\..\src\ta_func\ta_MIDPOINT.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_MIDPOINT.obj ..\..\..\..\..\src\ta_func\ta_MIDPOINT.c + +..\..\..\..\..\temp\cdr\ta_MIDPRICE.obj: ..\..\..\..\..\src\ta_func\ta_MIDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_MIDPRICE.obj ..\..\..\..\..\src\ta_func\ta_MIDPRICE.c + +..\..\..\..\..\temp\cdr\ta_MIN.obj: ..\..\..\..\..\src\ta_func\ta_MIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_MIN.obj ..\..\..\..\..\src\ta_func\ta_MIN.c + +..\..\..\..\..\temp\cdr\ta_MININDEX.obj: ..\..\..\..\..\src\ta_func\ta_MININDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_MININDEX.obj ..\..\..\..\..\src\ta_func\ta_MININDEX.c + +..\..\..\..\..\temp\cdr\ta_MINMAX.obj: ..\..\..\..\..\src\ta_func\ta_MINMAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_MINMAX.obj ..\..\..\..\..\src\ta_func\ta_MINMAX.c + +..\..\..\..\..\temp\cdr\ta_MINMAXINDEX.obj: ..\..\..\..\..\src\ta_func\ta_MINMAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_MINMAXINDEX.obj ..\..\..\..\..\src\ta_func\ta_MINMAXINDEX.c + +..\..\..\..\..\temp\cdr\ta_MINUS_DI.obj: ..\..\..\..\..\src\ta_func\ta_MINUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_MINUS_DI.obj ..\..\..\..\..\src\ta_func\ta_MINUS_DI.c + +..\..\..\..\..\temp\cdr\ta_MINUS_DM.obj: ..\..\..\..\..\src\ta_func\ta_MINUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_MINUS_DM.obj ..\..\..\..\..\src\ta_func\ta_MINUS_DM.c + +..\..\..\..\..\temp\cdr\ta_MOM.obj: ..\..\..\..\..\src\ta_func\ta_MOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_MOM.obj ..\..\..\..\..\src\ta_func\ta_MOM.c + +..\..\..\..\..\temp\cdr\ta_MULT.obj: ..\..\..\..\..\src\ta_func\ta_MULT.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_MULT.obj ..\..\..\..\..\src\ta_func\ta_MULT.c + +..\..\..\..\..\temp\cdr\ta_NATR.obj: ..\..\..\..\..\src\ta_func\ta_NATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_NATR.obj ..\..\..\..\..\src\ta_func\ta_NATR.c + +..\..\..\..\..\temp\cdr\ta_OBV.obj: ..\..\..\..\..\src\ta_func\ta_OBV.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_OBV.obj ..\..\..\..\..\src\ta_func\ta_OBV.c + +..\..\..\..\..\temp\cdr\ta_PLUS_DI.obj: ..\..\..\..\..\src\ta_func\ta_PLUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_PLUS_DI.obj ..\..\..\..\..\src\ta_func\ta_PLUS_DI.c + +..\..\..\..\..\temp\cdr\ta_PLUS_DM.obj: ..\..\..\..\..\src\ta_func\ta_PLUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_PLUS_DM.obj ..\..\..\..\..\src\ta_func\ta_PLUS_DM.c + +..\..\..\..\..\temp\cdr\ta_PPO.obj: ..\..\..\..\..\src\ta_func\ta_PPO.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_PPO.obj ..\..\..\..\..\src\ta_func\ta_PPO.c + +..\..\..\..\..\temp\cdr\ta_ROC.obj: ..\..\..\..\..\src\ta_func\ta_ROC.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_ROC.obj ..\..\..\..\..\src\ta_func\ta_ROC.c + +..\..\..\..\..\temp\cdr\ta_ROCP.obj: ..\..\..\..\..\src\ta_func\ta_ROCP.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_ROCP.obj ..\..\..\..\..\src\ta_func\ta_ROCP.c + +..\..\..\..\..\temp\cdr\ta_ROCR.obj: ..\..\..\..\..\src\ta_func\ta_ROCR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_ROCR.obj ..\..\..\..\..\src\ta_func\ta_ROCR.c + +..\..\..\..\..\temp\cdr\ta_ROCR100.obj: ..\..\..\..\..\src\ta_func\ta_ROCR100.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_ROCR100.obj ..\..\..\..\..\src\ta_func\ta_ROCR100.c + +..\..\..\..\..\temp\cdr\ta_RSI.obj: ..\..\..\..\..\src\ta_func\ta_RSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_RSI.obj ..\..\..\..\..\src\ta_func\ta_RSI.c + +..\..\..\..\..\temp\cdr\ta_SAR.obj: ..\..\..\..\..\src\ta_func\ta_SAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_SAR.obj ..\..\..\..\..\src\ta_func\ta_SAR.c + +..\..\..\..\..\temp\cdr\ta_SAREXT.obj: ..\..\..\..\..\src\ta_func\ta_SAREXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_SAREXT.obj ..\..\..\..\..\src\ta_func\ta_SAREXT.c + +..\..\..\..\..\temp\cdr\ta_SIN.obj: ..\..\..\..\..\src\ta_func\ta_SIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_SIN.obj ..\..\..\..\..\src\ta_func\ta_SIN.c + +..\..\..\..\..\temp\cdr\ta_SINH.obj: ..\..\..\..\..\src\ta_func\ta_SINH.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_SINH.obj ..\..\..\..\..\src\ta_func\ta_SINH.c + +..\..\..\..\..\temp\cdr\ta_SMA.obj: ..\..\..\..\..\src\ta_func\ta_SMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_SMA.obj ..\..\..\..\..\src\ta_func\ta_SMA.c + +..\..\..\..\..\temp\cdr\ta_SQRT.obj: ..\..\..\..\..\src\ta_func\ta_SQRT.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_SQRT.obj ..\..\..\..\..\src\ta_func\ta_SQRT.c + +..\..\..\..\..\temp\cdr\ta_STDDEV.obj: ..\..\..\..\..\src\ta_func\ta_STDDEV.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_STDDEV.obj ..\..\..\..\..\src\ta_func\ta_STDDEV.c + +..\..\..\..\..\temp\cdr\ta_STOCH.obj: ..\..\..\..\..\src\ta_func\ta_STOCH.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_STOCH.obj ..\..\..\..\..\src\ta_func\ta_STOCH.c + +..\..\..\..\..\temp\cdr\ta_STOCHF.obj: ..\..\..\..\..\src\ta_func\ta_STOCHF.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_STOCHF.obj ..\..\..\..\..\src\ta_func\ta_STOCHF.c + +..\..\..\..\..\temp\cdr\ta_STOCHRSI.obj: ..\..\..\..\..\src\ta_func\ta_STOCHRSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_STOCHRSI.obj ..\..\..\..\..\src\ta_func\ta_STOCHRSI.c + +..\..\..\..\..\temp\cdr\ta_SUB.obj: ..\..\..\..\..\src\ta_func\ta_SUB.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_SUB.obj ..\..\..\..\..\src\ta_func\ta_SUB.c + +..\..\..\..\..\temp\cdr\ta_SUM.obj: ..\..\..\..\..\src\ta_func\ta_SUM.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_SUM.obj ..\..\..\..\..\src\ta_func\ta_SUM.c + +..\..\..\..\..\temp\cdr\ta_T3.obj: ..\..\..\..\..\src\ta_func\ta_T3.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_T3.obj ..\..\..\..\..\src\ta_func\ta_T3.c + +..\..\..\..\..\temp\cdr\ta_TAN.obj: ..\..\..\..\..\src\ta_func\ta_TAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_TAN.obj ..\..\..\..\..\src\ta_func\ta_TAN.c + +..\..\..\..\..\temp\cdr\ta_TANH.obj: ..\..\..\..\..\src\ta_func\ta_TANH.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_TANH.obj ..\..\..\..\..\src\ta_func\ta_TANH.c + +..\..\..\..\..\temp\cdr\ta_TEMA.obj: ..\..\..\..\..\src\ta_func\ta_TEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_TEMA.obj ..\..\..\..\..\src\ta_func\ta_TEMA.c + +..\..\..\..\..\temp\cdr\ta_TRANGE.obj: ..\..\..\..\..\src\ta_func\ta_TRANGE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_TRANGE.obj ..\..\..\..\..\src\ta_func\ta_TRANGE.c + +..\..\..\..\..\temp\cdr\ta_TRIMA.obj: ..\..\..\..\..\src\ta_func\ta_TRIMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_TRIMA.obj ..\..\..\..\..\src\ta_func\ta_TRIMA.c + +..\..\..\..\..\temp\cdr\ta_TRIX.obj: ..\..\..\..\..\src\ta_func\ta_TRIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_TRIX.obj ..\..\..\..\..\src\ta_func\ta_TRIX.c + +..\..\..\..\..\temp\cdr\ta_TSF.obj: ..\..\..\..\..\src\ta_func\ta_TSF.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_TSF.obj ..\..\..\..\..\src\ta_func\ta_TSF.c + +..\..\..\..\..\temp\cdr\ta_TYPPRICE.obj: ..\..\..\..\..\src\ta_func\ta_TYPPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_TYPPRICE.obj ..\..\..\..\..\src\ta_func\ta_TYPPRICE.c + +..\..\..\..\..\temp\cdr\ta_ULTOSC.obj: ..\..\..\..\..\src\ta_func\ta_ULTOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_ULTOSC.obj ..\..\..\..\..\src\ta_func\ta_ULTOSC.c + +..\..\..\..\..\temp\cdr\ta_VAR.obj: ..\..\..\..\..\src\ta_func\ta_VAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_VAR.obj ..\..\..\..\..\src\ta_func\ta_VAR.c + +..\..\..\..\..\temp\cdr\ta_WCLPRICE.obj: ..\..\..\..\..\src\ta_func\ta_WCLPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_WCLPRICE.obj ..\..\..\..\..\src\ta_func\ta_WCLPRICE.c + +..\..\..\..\..\temp\cdr\ta_WILLR.obj: ..\..\..\..\..\src\ta_func\ta_WILLR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_WILLR.obj ..\..\..\..\..\src\ta_func\ta_WILLR.c + +..\..\..\..\..\temp\cdr\ta_WMA.obj: ..\..\..\..\..\src\ta_func\ta_WMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_WMA.obj ..\..\..\..\..\src\ta_func\ta_WMA.c + diff --git a/make/cdr/win32/msvc/ta_regtest/Makefile b/make/cdr/win32/msvc/ta_regtest/Makefile new file mode 100644 index 000000000..b78cae88a --- /dev/null +++ b/make/cdr/win32/msvc/ta_regtest/Makefile @@ -0,0 +1,236 @@ +############################################################################# +# Makefile for building ta_regtest +# Generated by tmake; +# Project: ta_regtest/ta_regtest +# Template: app +############################################################################# + +####### Compiler, tools and options + +CC = cl +CXX = cl +CFLAGS = -nologo -W3 -MD -O2 -DWIN32 -D_MBCS -D_LIB -DQT_THREAD_SUPPORT +CXXFLAGS= -nologo -W3 -MD -O2 -DWIN32 -D_MBCS -D_LIB -DQT_THREAD_SUPPORT +INCPATH = -I"..\..\..\..\..\src\ta_common" -I"..\..\..\..\..\src\tools\ta_regtest" -I"..\..\..\..\..\src\ta_func" -I"..\..\..\..\..\include" +LINK = link +LFLAGS = /NOLOGO /SUBSYSTEM:console +LIBS = ..\..\..\..\..\lib\ta_libc_cdr.lib +MOC = moc +UIC = uic + +ZIP = zip -r -9 + +####### Files + +HEADERS = +SOURCES = ..\..\..\..\..\src\tools\ta_regtest\ta_regtest.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_candlestick.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_1in_1out.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_1in_2out.c \ + ..\..\..\..\..\src\tools\ta_regtest\test_internals.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_adx.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_bbands.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_ma.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_macd.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_minmax.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_mom.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_ema.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hl.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hlc.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hlcv.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_ohlc.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_po.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_rsi.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_sar.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_stddev.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_stoch.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_trange.c \ + ..\..\..\..\..\src\tools\ta_regtest\test_util.c \ + ..\..\..\..\..\src\tools\ta_regtest\test_data.c \ + ..\..\..\..\..\src\tools\ta_regtest\test_abstract.c +OBJECTS = ..\..\..\..\..\temp\cdr\ta_regtest.obj \ + ..\..\..\..\..\temp\cdr\test_candlestick.obj \ + ..\..\..\..\..\temp\cdr\test_1in_1out.obj \ + ..\..\..\..\..\temp\cdr\test_1in_2out.obj \ + ..\..\..\..\..\temp\cdr\test_internals.obj \ + ..\..\..\..\..\temp\cdr\test_adx.obj \ + ..\..\..\..\..\temp\cdr\test_bbands.obj \ + ..\..\..\..\..\temp\cdr\test_ma.obj \ + ..\..\..\..\..\temp\cdr\test_macd.obj \ + ..\..\..\..\..\temp\cdr\test_minmax.obj \ + ..\..\..\..\..\temp\cdr\test_mom.obj \ + ..\..\..\..\..\temp\cdr\test_per_ema.obj \ + ..\..\..\..\..\temp\cdr\test_per_hl.obj \ + ..\..\..\..\..\temp\cdr\test_per_hlc.obj \ + ..\..\..\..\..\temp\cdr\test_per_hlcv.obj \ + ..\..\..\..\..\temp\cdr\test_per_ohlc.obj \ + ..\..\..\..\..\temp\cdr\test_po.obj \ + ..\..\..\..\..\temp\cdr\test_rsi.obj \ + ..\..\..\..\..\temp\cdr\test_sar.obj \ + ..\..\..\..\..\temp\cdr\test_stddev.obj \ + ..\..\..\..\..\temp\cdr\test_stoch.obj \ + ..\..\..\..\..\temp\cdr\test_trange.obj \ + ..\..\..\..\..\temp\cdr\test_util.obj \ + ..\..\..\..\..\temp\cdr\test_data.obj \ + ..\..\..\..\..\temp\cdr\test_abstract.obj +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ..\..\..\..\..\bin\ta_regtest.exe +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .c + +.cpp.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $< + +.cxx.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $< + +.cc.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $< + +.c.obj: + $(CC) -c $(CFLAGS) $(INCPATH) -Fo$@ $< + +####### Build rules + +all: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + $(LINK) $(LFLAGS) /OUT:$(TARGET) @<< + $(OBJECTS) $(OBJMOC) $(LIBS) +<< + +moc: $(SRCMOC) + +tmake: ../cdr/win32/msvc/ta_regtest/Makefile + +../cdr/win32/msvc/ta_regtest/Makefile: ta_regtest/ta_regtest.pro + tmake ta_regtest/ta_regtest.pro -o ../cdr/win32/msvc/ta_regtest/Makefile + +dist: + $(ZIP) ta_regtest/ta_regtest.zip ta_regtest/ta_regtest.pro $(SOURCES) $(HEADERS) $(DIST) $(INTERFACES) + +clean: + -del ..\..\..\..\..\temp\cdr\ta_regtest.obj + -del ..\..\..\..\..\temp\cdr\test_candlestick.obj + -del ..\..\..\..\..\temp\cdr\test_1in_1out.obj + -del ..\..\..\..\..\temp\cdr\test_1in_2out.obj + -del ..\..\..\..\..\temp\cdr\test_internals.obj + -del ..\..\..\..\..\temp\cdr\test_adx.obj + -del ..\..\..\..\..\temp\cdr\test_bbands.obj + -del ..\..\..\..\..\temp\cdr\test_ma.obj + -del ..\..\..\..\..\temp\cdr\test_macd.obj + -del ..\..\..\..\..\temp\cdr\test_minmax.obj + -del ..\..\..\..\..\temp\cdr\test_mom.obj + -del ..\..\..\..\..\temp\cdr\test_per_ema.obj + -del ..\..\..\..\..\temp\cdr\test_per_hl.obj + -del ..\..\..\..\..\temp\cdr\test_per_hlc.obj + -del ..\..\..\..\..\temp\cdr\test_per_hlcv.obj + -del ..\..\..\..\..\temp\cdr\test_per_ohlc.obj + -del ..\..\..\..\..\temp\cdr\test_po.obj + -del ..\..\..\..\..\temp\cdr\test_rsi.obj + -del ..\..\..\..\..\temp\cdr\test_sar.obj + -del ..\..\..\..\..\temp\cdr\test_stddev.obj + -del ..\..\..\..\..\temp\cdr\test_stoch.obj + -del ..\..\..\..\..\temp\cdr\test_trange.obj + -del ..\..\..\..\..\temp\cdr\test_util.obj + -del ..\..\..\..\..\temp\cdr\test_data.obj + -del ..\..\..\..\..\temp\cdr\test_abstract.obj + -del $(TARGET) + -del ../../../../../bin/*.map + -del ../../../../../bin/*._xe + -del ../../../../../bin/*.tds + -del ../../../../../bin/*.pdb + -del ../../../../../bin/*.pbo + -del ../../../../../bin/*.pbi + -del ../../../../../bin/*.pbt + -del ../../../../../temp/cdr/*.pch + -del ../../../../../temp/cdr/*.idb + -del ../../../../../temp/cdr/ta_regtest/*.pch + -del ../../../../../temp/cdr/ta_regtest/*.idb + -del ../../../../../temp/cdr/ta_regtest/*.obj + +####### Compile + +..\..\..\..\..\temp\cdr\ta_regtest.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_regtest.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\ta_regtest.obj ..\..\..\..\..\src\tools\ta_regtest\ta_regtest.c + +..\..\..\..\..\temp\cdr\test_candlestick.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_candlestick.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\test_candlestick.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_candlestick.c + +..\..\..\..\..\temp\cdr\test_1in_1out.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_1in_1out.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\test_1in_1out.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_1in_1out.c + +..\..\..\..\..\temp\cdr\test_1in_2out.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_1in_2out.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\test_1in_2out.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_1in_2out.c + +..\..\..\..\..\temp\cdr\test_internals.obj: ..\..\..\..\..\src\tools\ta_regtest\test_internals.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\test_internals.obj ..\..\..\..\..\src\tools\ta_regtest\test_internals.c + +..\..\..\..\..\temp\cdr\test_adx.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_adx.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\test_adx.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_adx.c + +..\..\..\..\..\temp\cdr\test_bbands.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_bbands.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\test_bbands.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_bbands.c + +..\..\..\..\..\temp\cdr\test_ma.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_ma.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\test_ma.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_ma.c + +..\..\..\..\..\temp\cdr\test_macd.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_macd.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\test_macd.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_macd.c + +..\..\..\..\..\temp\cdr\test_minmax.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_minmax.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\test_minmax.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_minmax.c + +..\..\..\..\..\temp\cdr\test_mom.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_mom.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\test_mom.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_mom.c + +..\..\..\..\..\temp\cdr\test_per_ema.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_ema.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\test_per_ema.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_ema.c + +..\..\..\..\..\temp\cdr\test_per_hl.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hl.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\test_per_hl.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hl.c + +..\..\..\..\..\temp\cdr\test_per_hlc.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hlc.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\test_per_hlc.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hlc.c + +..\..\..\..\..\temp\cdr\test_per_hlcv.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hlcv.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\test_per_hlcv.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hlcv.c + +..\..\..\..\..\temp\cdr\test_per_ohlc.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_ohlc.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\test_per_ohlc.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_ohlc.c + +..\..\..\..\..\temp\cdr\test_po.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_po.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\test_po.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_po.c + +..\..\..\..\..\temp\cdr\test_rsi.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_rsi.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\test_rsi.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_rsi.c + +..\..\..\..\..\temp\cdr\test_sar.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_sar.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\test_sar.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_sar.c + +..\..\..\..\..\temp\cdr\test_stddev.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_stddev.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\test_stddev.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_stddev.c + +..\..\..\..\..\temp\cdr\test_stoch.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_stoch.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\test_stoch.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_stoch.c + +..\..\..\..\..\temp\cdr\test_trange.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_trange.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\test_trange.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_trange.c + +..\..\..\..\..\temp\cdr\test_util.obj: ..\..\..\..\..\src\tools\ta_regtest\test_util.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\test_util.obj ..\..\..\..\..\src\tools\ta_regtest\test_util.c + +..\..\..\..\..\temp\cdr\test_data.obj: ..\..\..\..\..\src\tools\ta_regtest\test_data.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\test_data.obj ..\..\..\..\..\src\tools\ta_regtest\test_data.c + +..\..\..\..\..\temp\cdr\test_abstract.obj: ..\..\..\..\..\src\tools\ta_regtest\test_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cdr\test_abstract.obj ..\..\..\..\..\src\tools\ta_regtest\test_abstract.c + diff --git a/make/cmd/cygwin/g++/Makefile b/make/cmd/cygwin/g++/Makefile new file mode 100644 index 000000000..0257e4662 --- /dev/null +++ b/make/cmd/cygwin/g++/Makefile @@ -0,0 +1,36 @@ +############################################################################# +# Makefile for building targets in sub directories. +# Generated by tmake; +# Project: rootmake +# Template: subdirs +############################################################################# + +MAKEFILE= Makefile +TMAKE = tmake + +SUBDIRS = ta_common \ + ta_func \ + ta_abstract \ + ta_libc \ + gen_code \ + ta_regtest + +all: $(SUBDIRS) + +$(SUBDIRS): FORCE + cd $@; $(MAKE) + +tmake: ../cmd/cygwin/g++/Makefile + +../cmd/cygwin/g++/Makefile: rootmake.pro + tmake rootmake.pro -o ../cmd/cygwin/g++/Makefile + +tmake_all: + for i in $(SUBDIRS); do ( if [ -d $$i ]; then cd $$i ; $(MAKE) -f $(MAKEFILE) tmake_all || true; fi; ) ; done + +#### $text = "\t" . 'for i in $(SUBDIRS); do ( if [ -d $$i ]; then cd $$i ; pro=`basename $$i`.pro ; $(TMAKE) $$pro -o $(MAKEFILE); grep "TEMPLATE.*subdirs" $$pro 2>/dev/null >/dev/null && $(MAKE) -f $(MAKEFILE) tmake_all || true; fi; ) ; done'; + +clean release debug: + for i in $(SUBDIRS); do ( if [ -d $$i ]; then cd $$i ; $(MAKE) $@; fi; ) ; done + +FORCE: diff --git a/make/cmd/cygwin/g++/gen_code/Makefile b/make/cmd/cygwin/g++/gen_code/Makefile new file mode 100644 index 000000000..3f0002872 --- /dev/null +++ b/make/cmd/cygwin/g++/gen_code/Makefile @@ -0,0 +1,231 @@ +############################################################################# +# Makefile for building ../../../../../bin/gen_code +# Generated by tmake; +# Project: gen_code/gen_code +# Template: app +############################################################################# + +####### Compiler, tools and options + +CC = gcc +CXX = g++ +CFLAGS = -pipe -Wall -W -g -D_REENTRANT -DTA_GEN_CODE -DTA_DEBUG -D_DEBUG -DQT_THREAD_SUPPORT +CXXFLAGS= -pipe -Wall -W -g -D_REENTRANT -DTA_GEN_CODE -DTA_DEBUG -D_DEBUG -DQT_THREAD_SUPPORT +INCPATH = -I../../../../../include -I../../../../../src/ta_common -I../../../../../src/ta_abstract -I../../../../../src/ta_abstract/tables -I../../../../../src/ta_abstract/frames +LINK = g++ +LFLAGS = +LIBS = $(SUBLIBS) ../../../../../lib/libta_common_cmd.a -lpthread +MOC = $(QTDIR)/bin/moc +UIC = $(QTDIR)/bin/uic + +TAR = tar -cf +GZIP = gzip -9f + +####### Support for 64-bit systems +ifeq ($(shell uname -m), x86_64) + CFLAGS += -march=x86-64 -m64 -D__64BIT__ + CXXFLAGS += -march=x86-64 -m64 -D__64BIT__ +endif + +####### Apply additional overruling user flags, if any +CFLAGS += $(CUSERFLAGS) +CXXFLAGS += $(CUSERFLAGS) + +####### Files + +HEADERS = +SOURCES = ../../../../../src/tools/gen_code/gen_code.c \ + ../../../../../src/ta_abstract/ta_abstract.c \ + ../../../../../src/ta_abstract/ta_def_ui.c \ + ../../../../../src/ta_abstract/tables/table_a.c \ + ../../../../../src/ta_abstract/tables/table_b.c \ + ../../../../../src/ta_abstract/tables/table_c.c \ + ../../../../../src/ta_abstract/tables/table_d.c \ + ../../../../../src/ta_abstract/tables/table_e.c \ + ../../../../../src/ta_abstract/tables/table_f.c \ + ../../../../../src/ta_abstract/tables/table_g.c \ + ../../../../../src/ta_abstract/tables/table_h.c \ + ../../../../../src/ta_abstract/tables/table_i.c \ + ../../../../../src/ta_abstract/tables/table_j.c \ + ../../../../../src/ta_abstract/tables/table_k.c \ + ../../../../../src/ta_abstract/tables/table_l.c \ + ../../../../../src/ta_abstract/tables/table_m.c \ + ../../../../../src/ta_abstract/tables/table_n.c \ + ../../../../../src/ta_abstract/tables/table_o.c \ + ../../../../../src/ta_abstract/tables/table_p.c \ + ../../../../../src/ta_abstract/tables/table_q.c \ + ../../../../../src/ta_abstract/tables/table_r.c \ + ../../../../../src/ta_abstract/tables/table_s.c \ + ../../../../../src/ta_abstract/tables/table_t.c \ + ../../../../../src/ta_abstract/tables/table_u.c \ + ../../../../../src/ta_abstract/tables/table_v.c \ + ../../../../../src/ta_abstract/tables/table_w.c \ + ../../../../../src/ta_abstract/tables/table_x.c \ + ../../../../../src/ta_abstract/tables/table_y.c \ + ../../../../../src/ta_abstract/tables/table_z.c +OBJECTS = ../../../../../temp/cmd/gen_code/gen_code.o \ + ../../../../../temp/cmd/gen_code/ta_abstract.o \ + ../../../../../temp/cmd/gen_code/ta_def_ui.o \ + ../../../../../temp/cmd/gen_code/table_a.o \ + ../../../../../temp/cmd/gen_code/table_b.o \ + ../../../../../temp/cmd/gen_code/table_c.o \ + ../../../../../temp/cmd/gen_code/table_d.o \ + ../../../../../temp/cmd/gen_code/table_e.o \ + ../../../../../temp/cmd/gen_code/table_f.o \ + ../../../../../temp/cmd/gen_code/table_g.o \ + ../../../../../temp/cmd/gen_code/table_h.o \ + ../../../../../temp/cmd/gen_code/table_i.o \ + ../../../../../temp/cmd/gen_code/table_j.o \ + ../../../../../temp/cmd/gen_code/table_k.o \ + ../../../../../temp/cmd/gen_code/table_l.o \ + ../../../../../temp/cmd/gen_code/table_m.o \ + ../../../../../temp/cmd/gen_code/table_n.o \ + ../../../../../temp/cmd/gen_code/table_o.o \ + ../../../../../temp/cmd/gen_code/table_p.o \ + ../../../../../temp/cmd/gen_code/table_q.o \ + ../../../../../temp/cmd/gen_code/table_r.o \ + ../../../../../temp/cmd/gen_code/table_s.o \ + ../../../../../temp/cmd/gen_code/table_t.o \ + ../../../../../temp/cmd/gen_code/table_u.o \ + ../../../../../temp/cmd/gen_code/table_v.o \ + ../../../../../temp/cmd/gen_code/table_w.o \ + ../../../../../temp/cmd/gen_code/table_x.o \ + ../../../../../temp/cmd/gen_code/table_y.o \ + ../../../../../temp/cmd/gen_code/table_z.o +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ../../../../../bin/gen_code +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .C .c + +.cpp.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cxx.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cc.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.C.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.c.o: + $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $< + +####### Build rules + + +all: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS) + +moc: $(SRCMOC) + +clean: + -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) + -rm -f *~ core + +####### Sub-libraries + + +###### Combined headers + + +####### Compile + +../../../../../temp/cmd/gen_code/gen_code.o: ../../../../../src/tools/gen_code/gen_code.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/gen_code/gen_code.o ../../../../../src/tools/gen_code/gen_code.c + +../../../../../temp/cmd/gen_code/ta_abstract.o: ../../../../../src/ta_abstract/ta_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/gen_code/ta_abstract.o ../../../../../src/ta_abstract/ta_abstract.c + +../../../../../temp/cmd/gen_code/ta_def_ui.o: ../../../../../src/ta_abstract/ta_def_ui.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/gen_code/ta_def_ui.o ../../../../../src/ta_abstract/ta_def_ui.c + +../../../../../temp/cmd/gen_code/table_a.o: ../../../../../src/ta_abstract/tables/table_a.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/gen_code/table_a.o ../../../../../src/ta_abstract/tables/table_a.c + +../../../../../temp/cmd/gen_code/table_b.o: ../../../../../src/ta_abstract/tables/table_b.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/gen_code/table_b.o ../../../../../src/ta_abstract/tables/table_b.c + +../../../../../temp/cmd/gen_code/table_c.o: ../../../../../src/ta_abstract/tables/table_c.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/gen_code/table_c.o ../../../../../src/ta_abstract/tables/table_c.c + +../../../../../temp/cmd/gen_code/table_d.o: ../../../../../src/ta_abstract/tables/table_d.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/gen_code/table_d.o ../../../../../src/ta_abstract/tables/table_d.c + +../../../../../temp/cmd/gen_code/table_e.o: ../../../../../src/ta_abstract/tables/table_e.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/gen_code/table_e.o ../../../../../src/ta_abstract/tables/table_e.c + +../../../../../temp/cmd/gen_code/table_f.o: ../../../../../src/ta_abstract/tables/table_f.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/gen_code/table_f.o ../../../../../src/ta_abstract/tables/table_f.c + +../../../../../temp/cmd/gen_code/table_g.o: ../../../../../src/ta_abstract/tables/table_g.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/gen_code/table_g.o ../../../../../src/ta_abstract/tables/table_g.c + +../../../../../temp/cmd/gen_code/table_h.o: ../../../../../src/ta_abstract/tables/table_h.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/gen_code/table_h.o ../../../../../src/ta_abstract/tables/table_h.c + +../../../../../temp/cmd/gen_code/table_i.o: ../../../../../src/ta_abstract/tables/table_i.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/gen_code/table_i.o ../../../../../src/ta_abstract/tables/table_i.c + +../../../../../temp/cmd/gen_code/table_j.o: ../../../../../src/ta_abstract/tables/table_j.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/gen_code/table_j.o ../../../../../src/ta_abstract/tables/table_j.c + +../../../../../temp/cmd/gen_code/table_k.o: ../../../../../src/ta_abstract/tables/table_k.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/gen_code/table_k.o ../../../../../src/ta_abstract/tables/table_k.c + +../../../../../temp/cmd/gen_code/table_l.o: ../../../../../src/ta_abstract/tables/table_l.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/gen_code/table_l.o ../../../../../src/ta_abstract/tables/table_l.c + +../../../../../temp/cmd/gen_code/table_m.o: ../../../../../src/ta_abstract/tables/table_m.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/gen_code/table_m.o ../../../../../src/ta_abstract/tables/table_m.c + +../../../../../temp/cmd/gen_code/table_n.o: ../../../../../src/ta_abstract/tables/table_n.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/gen_code/table_n.o ../../../../../src/ta_abstract/tables/table_n.c + +../../../../../temp/cmd/gen_code/table_o.o: ../../../../../src/ta_abstract/tables/table_o.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/gen_code/table_o.o ../../../../../src/ta_abstract/tables/table_o.c + +../../../../../temp/cmd/gen_code/table_p.o: ../../../../../src/ta_abstract/tables/table_p.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/gen_code/table_p.o ../../../../../src/ta_abstract/tables/table_p.c + +../../../../../temp/cmd/gen_code/table_q.o: ../../../../../src/ta_abstract/tables/table_q.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/gen_code/table_q.o ../../../../../src/ta_abstract/tables/table_q.c + +../../../../../temp/cmd/gen_code/table_r.o: ../../../../../src/ta_abstract/tables/table_r.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/gen_code/table_r.o ../../../../../src/ta_abstract/tables/table_r.c + +../../../../../temp/cmd/gen_code/table_s.o: ../../../../../src/ta_abstract/tables/table_s.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/gen_code/table_s.o ../../../../../src/ta_abstract/tables/table_s.c + +../../../../../temp/cmd/gen_code/table_t.o: ../../../../../src/ta_abstract/tables/table_t.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/gen_code/table_t.o ../../../../../src/ta_abstract/tables/table_t.c + +../../../../../temp/cmd/gen_code/table_u.o: ../../../../../src/ta_abstract/tables/table_u.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/gen_code/table_u.o ../../../../../src/ta_abstract/tables/table_u.c + +../../../../../temp/cmd/gen_code/table_v.o: ../../../../../src/ta_abstract/tables/table_v.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/gen_code/table_v.o ../../../../../src/ta_abstract/tables/table_v.c + +../../../../../temp/cmd/gen_code/table_w.o: ../../../../../src/ta_abstract/tables/table_w.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/gen_code/table_w.o ../../../../../src/ta_abstract/tables/table_w.c + +../../../../../temp/cmd/gen_code/table_x.o: ../../../../../src/ta_abstract/tables/table_x.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/gen_code/table_x.o ../../../../../src/ta_abstract/tables/table_x.c + +../../../../../temp/cmd/gen_code/table_y.o: ../../../../../src/ta_abstract/tables/table_y.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/gen_code/table_y.o ../../../../../src/ta_abstract/tables/table_y.c + +../../../../../temp/cmd/gen_code/table_z.o: ../../../../../src/ta_abstract/tables/table_z.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/gen_code/table_z.o ../../../../../src/ta_abstract/tables/table_z.c + diff --git a/make/cmd/cygwin/g++/ta_abstract/Makefile b/make/cmd/cygwin/g++/ta_abstract/Makefile new file mode 100644 index 000000000..587997748 --- /dev/null +++ b/make/cmd/cygwin/g++/ta_abstract/Makefile @@ -0,0 +1,243 @@ +############################################################################# +# Makefile for building ../../../../../lib/libta_abstract_cmd.a +# Generated by tmake; +# Project: ta_abstract/ta_abstract +# Template: lib +############################################################################# + +####### Compiler, tools and options + +CC = gcc +CXX = g++ +CFLAGS = -pipe -Wall -W -g -D_REENTRANT -DTA_DEBUG -D_DEBUG -DQT_THREAD_SUPPORT +CXXFLAGS= -pipe -Wall -W -g -D_REENTRANT -DTA_DEBUG -D_DEBUG -DQT_THREAD_SUPPORT +INCPATH = -I../../../../../src/ta_common -I../../../../../src/ta_abstract -I../../../../../src/ta_abstract/tables -I../../../../../src/ta_abstract/frames -I../../../../../include +AR = ar cqs +RANLIB = +MOC = $(QTDIR)/bin/moc +UIC = $(QTDIR)/bin/uic + +TAR = tar -cf +GZIP = gzip -9f + +####### Support for 64-bit systems +ifeq ($(shell uname -m), x86_64) + CFLAGS += -march=x86-64 -m64 -D__64BIT__ + CXXFLAGS += -march=x86-64 -m64 -D__64BIT__ +endif + +####### Apply additional overruling user flags, if any +CFLAGS += $(CUSERFLAGS) +CXXFLAGS += $(CUSERFLAGS) + +####### Files + +HEADERS = +SOURCES = ../../../../../src/ta_abstract/ta_abstract.c \ + ../../../../../src/ta_abstract/ta_def_ui.c \ + ../../../../../src/ta_abstract/ta_func_api.c \ + ../../../../../src/ta_abstract/ta_group_idx.c \ + ../../../../../src/ta_abstract/frames/ta_frame.c \ + ../../../../../src/ta_abstract/tables/table_a.c \ + ../../../../../src/ta_abstract/tables/table_b.c \ + ../../../../../src/ta_abstract/tables/table_c.c \ + ../../../../../src/ta_abstract/tables/table_d.c \ + ../../../../../src/ta_abstract/tables/table_e.c \ + ../../../../../src/ta_abstract/tables/table_f.c \ + ../../../../../src/ta_abstract/tables/table_g.c \ + ../../../../../src/ta_abstract/tables/table_h.c \ + ../../../../../src/ta_abstract/tables/table_i.c \ + ../../../../../src/ta_abstract/tables/table_j.c \ + ../../../../../src/ta_abstract/tables/table_k.c \ + ../../../../../src/ta_abstract/tables/table_l.c \ + ../../../../../src/ta_abstract/tables/table_m.c \ + ../../../../../src/ta_abstract/tables/table_n.c \ + ../../../../../src/ta_abstract/tables/table_o.c \ + ../../../../../src/ta_abstract/tables/table_p.c \ + ../../../../../src/ta_abstract/tables/table_q.c \ + ../../../../../src/ta_abstract/tables/table_r.c \ + ../../../../../src/ta_abstract/tables/table_s.c \ + ../../../../../src/ta_abstract/tables/table_t.c \ + ../../../../../src/ta_abstract/tables/table_u.c \ + ../../../../../src/ta_abstract/tables/table_v.c \ + ../../../../../src/ta_abstract/tables/table_w.c \ + ../../../../../src/ta_abstract/tables/table_x.c \ + ../../../../../src/ta_abstract/tables/table_y.c \ + ../../../../../src/ta_abstract/tables/table_z.c +OBJECTS = ../../../../../temp/cmd/ta_abstract.o \ + ../../../../../temp/cmd/ta_def_ui.o \ + ../../../../../temp/cmd/ta_func_api.o \ + ../../../../../temp/cmd/ta_group_idx.o \ + ../../../../../temp/cmd/ta_frame.o \ + ../../../../../temp/cmd/table_a.o \ + ../../../../../temp/cmd/table_b.o \ + ../../../../../temp/cmd/table_c.o \ + ../../../../../temp/cmd/table_d.o \ + ../../../../../temp/cmd/table_e.o \ + ../../../../../temp/cmd/table_f.o \ + ../../../../../temp/cmd/table_g.o \ + ../../../../../temp/cmd/table_h.o \ + ../../../../../temp/cmd/table_i.o \ + ../../../../../temp/cmd/table_j.o \ + ../../../../../temp/cmd/table_k.o \ + ../../../../../temp/cmd/table_l.o \ + ../../../../../temp/cmd/table_m.o \ + ../../../../../temp/cmd/table_n.o \ + ../../../../../temp/cmd/table_o.o \ + ../../../../../temp/cmd/table_p.o \ + ../../../../../temp/cmd/table_q.o \ + ../../../../../temp/cmd/table_r.o \ + ../../../../../temp/cmd/table_s.o \ + ../../../../../temp/cmd/table_t.o \ + ../../../../../temp/cmd/table_u.o \ + ../../../../../temp/cmd/table_v.o \ + ../../../../../temp/cmd/table_w.o \ + ../../../../../temp/cmd/table_x.o \ + ../../../../../temp/cmd/table_y.o \ + ../../../../../temp/cmd/table_z.o +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ../../../../../lib/libta_abstract_cmd.a +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .C .c + +.cpp.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cxx.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cc.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.C.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.c.o: + $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $< + +####### Build rules + + +all: $(TARGET) + +staticlib: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + -rm -f $(TARGET) + $(AR) $(TARGET) $(OBJECTS) $(OBJMOC) + +moc: $(SRCMOC) + +clean: + -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) + -rm -f *~ core + +####### Sub-libraries + + +###### Combined headers + + +####### Compile + +../../../../../temp/cmd/ta_abstract.o: ../../../../../src/ta_abstract/ta_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_abstract.o ../../../../../src/ta_abstract/ta_abstract.c + +../../../../../temp/cmd/ta_def_ui.o: ../../../../../src/ta_abstract/ta_def_ui.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_def_ui.o ../../../../../src/ta_abstract/ta_def_ui.c + +../../../../../temp/cmd/ta_func_api.o: ../../../../../src/ta_abstract/ta_func_api.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_func_api.o ../../../../../src/ta_abstract/ta_func_api.c + +../../../../../temp/cmd/ta_group_idx.o: ../../../../../src/ta_abstract/ta_group_idx.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_group_idx.o ../../../../../src/ta_abstract/ta_group_idx.c + +../../../../../temp/cmd/ta_frame.o: ../../../../../src/ta_abstract/frames/ta_frame.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_frame.o ../../../../../src/ta_abstract/frames/ta_frame.c + +../../../../../temp/cmd/table_a.o: ../../../../../src/ta_abstract/tables/table_a.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_a.o ../../../../../src/ta_abstract/tables/table_a.c + +../../../../../temp/cmd/table_b.o: ../../../../../src/ta_abstract/tables/table_b.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_b.o ../../../../../src/ta_abstract/tables/table_b.c + +../../../../../temp/cmd/table_c.o: ../../../../../src/ta_abstract/tables/table_c.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_c.o ../../../../../src/ta_abstract/tables/table_c.c + +../../../../../temp/cmd/table_d.o: ../../../../../src/ta_abstract/tables/table_d.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_d.o ../../../../../src/ta_abstract/tables/table_d.c + +../../../../../temp/cmd/table_e.o: ../../../../../src/ta_abstract/tables/table_e.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_e.o ../../../../../src/ta_abstract/tables/table_e.c + +../../../../../temp/cmd/table_f.o: ../../../../../src/ta_abstract/tables/table_f.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_f.o ../../../../../src/ta_abstract/tables/table_f.c + +../../../../../temp/cmd/table_g.o: ../../../../../src/ta_abstract/tables/table_g.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_g.o ../../../../../src/ta_abstract/tables/table_g.c + +../../../../../temp/cmd/table_h.o: ../../../../../src/ta_abstract/tables/table_h.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_h.o ../../../../../src/ta_abstract/tables/table_h.c + +../../../../../temp/cmd/table_i.o: ../../../../../src/ta_abstract/tables/table_i.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_i.o ../../../../../src/ta_abstract/tables/table_i.c + +../../../../../temp/cmd/table_j.o: ../../../../../src/ta_abstract/tables/table_j.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_j.o ../../../../../src/ta_abstract/tables/table_j.c + +../../../../../temp/cmd/table_k.o: ../../../../../src/ta_abstract/tables/table_k.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_k.o ../../../../../src/ta_abstract/tables/table_k.c + +../../../../../temp/cmd/table_l.o: ../../../../../src/ta_abstract/tables/table_l.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_l.o ../../../../../src/ta_abstract/tables/table_l.c + +../../../../../temp/cmd/table_m.o: ../../../../../src/ta_abstract/tables/table_m.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_m.o ../../../../../src/ta_abstract/tables/table_m.c + +../../../../../temp/cmd/table_n.o: ../../../../../src/ta_abstract/tables/table_n.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_n.o ../../../../../src/ta_abstract/tables/table_n.c + +../../../../../temp/cmd/table_o.o: ../../../../../src/ta_abstract/tables/table_o.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_o.o ../../../../../src/ta_abstract/tables/table_o.c + +../../../../../temp/cmd/table_p.o: ../../../../../src/ta_abstract/tables/table_p.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_p.o ../../../../../src/ta_abstract/tables/table_p.c + +../../../../../temp/cmd/table_q.o: ../../../../../src/ta_abstract/tables/table_q.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_q.o ../../../../../src/ta_abstract/tables/table_q.c + +../../../../../temp/cmd/table_r.o: ../../../../../src/ta_abstract/tables/table_r.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_r.o ../../../../../src/ta_abstract/tables/table_r.c + +../../../../../temp/cmd/table_s.o: ../../../../../src/ta_abstract/tables/table_s.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_s.o ../../../../../src/ta_abstract/tables/table_s.c + +../../../../../temp/cmd/table_t.o: ../../../../../src/ta_abstract/tables/table_t.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_t.o ../../../../../src/ta_abstract/tables/table_t.c + +../../../../../temp/cmd/table_u.o: ../../../../../src/ta_abstract/tables/table_u.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_u.o ../../../../../src/ta_abstract/tables/table_u.c + +../../../../../temp/cmd/table_v.o: ../../../../../src/ta_abstract/tables/table_v.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_v.o ../../../../../src/ta_abstract/tables/table_v.c + +../../../../../temp/cmd/table_w.o: ../../../../../src/ta_abstract/tables/table_w.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_w.o ../../../../../src/ta_abstract/tables/table_w.c + +../../../../../temp/cmd/table_x.o: ../../../../../src/ta_abstract/tables/table_x.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_x.o ../../../../../src/ta_abstract/tables/table_x.c + +../../../../../temp/cmd/table_y.o: ../../../../../src/ta_abstract/tables/table_y.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_y.o ../../../../../src/ta_abstract/tables/table_y.c + +../../../../../temp/cmd/table_z.o: ../../../../../src/ta_abstract/tables/table_z.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_z.o ../../../../../src/ta_abstract/tables/table_z.c + diff --git a/make/cmd/cygwin/g++/ta_common/Makefile b/make/cmd/cygwin/g++/ta_common/Makefile new file mode 100644 index 000000000..21e06dee8 --- /dev/null +++ b/make/cmd/cygwin/g++/ta_common/Makefile @@ -0,0 +1,103 @@ +############################################################################# +# Makefile for building ../../../../../lib/libta_common_cmd.a +# Generated by tmake; +# Project: ta_common/ta_common +# Template: lib +############################################################################# + +####### Compiler, tools and options + +CC = gcc +CXX = g++ +CFLAGS = -pipe -Wall -W -g -D_REENTRANT -DTA_DEBUG -D_DEBUG -DQT_THREAD_SUPPORT +CXXFLAGS= -pipe -Wall -W -g -D_REENTRANT -DTA_DEBUG -D_DEBUG -DQT_THREAD_SUPPORT +INCPATH = -I../../../../../src/ta_common -I../../../../../include +AR = ar cqs +RANLIB = +MOC = $(QTDIR)/bin/moc +UIC = $(QTDIR)/bin/uic + +TAR = tar -cf +GZIP = gzip -9f + +####### Support for 64-bit systems +ifeq ($(shell uname -m), x86_64) + CFLAGS += -march=x86-64 -m64 -D__64BIT__ + CXXFLAGS += -march=x86-64 -m64 -D__64BIT__ +endif + +####### Apply additional overruling user flags, if any +CFLAGS += $(CUSERFLAGS) +CXXFLAGS += $(CUSERFLAGS) + +####### Files + +HEADERS = +SOURCES = ../../../../../src/ta_common/ta_global.c \ + ../../../../../src/ta_common/ta_retcode.c \ + ../../../../../src/ta_common/ta_version.c +OBJECTS = ../../../../../temp/cmd/ta_global.o \ + ../../../../../temp/cmd/ta_retcode.o \ + ../../../../../temp/cmd/ta_version.o +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ../../../../../lib/libta_common_cmd.a +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .C .c + +.cpp.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cxx.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cc.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.C.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.c.o: + $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $< + +####### Build rules + + +all: $(TARGET) + +staticlib: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + -rm -f $(TARGET) + $(AR) $(TARGET) $(OBJECTS) $(OBJMOC) + +moc: $(SRCMOC) + +clean: + -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) + -rm -f *~ core + +####### Sub-libraries + + +###### Combined headers + + +####### Compile + +../../../../../temp/cmd/ta_global.o: ../../../../../src/ta_common/ta_global.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_global.o ../../../../../src/ta_common/ta_global.c + +../../../../../temp/cmd/ta_retcode.o: ../../../../../src/ta_common/ta_retcode.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_retcode.o ../../../../../src/ta_common/ta_retcode.c + +../../../../../temp/cmd/ta_version.o: ../../../../../src/ta_common/ta_version.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_version.o ../../../../../src/ta_common/ta_version.c + diff --git a/make/cmd/cygwin/g++/ta_func/Makefile b/make/cmd/cygwin/g++/ta_func/Makefile new file mode 100644 index 000000000..cca98825f --- /dev/null +++ b/make/cmd/cygwin/g++/ta_func/Makefile @@ -0,0 +1,883 @@ +############################################################################# +# Makefile for building ../../../../../lib/libta_func_cmd.a +# Generated by tmake; +# Project: ta_func/ta_func +# Template: lib +############################################################################# + +####### Compiler, tools and options + +CC = gcc +CXX = g++ +CFLAGS = -pipe -Wall -W -g -D_REENTRANT -DTA_DEBUG -D_DEBUG -DQT_THREAD_SUPPORT +CXXFLAGS= -pipe -Wall -W -g -D_REENTRANT -DTA_DEBUG -D_DEBUG -DQT_THREAD_SUPPORT +INCPATH = -I../../../../../src/ta_common -I/n -I../../../../../include +AR = ar cqs +RANLIB = +MOC = $(QTDIR)/bin/moc +UIC = $(QTDIR)/bin/uic + +TAR = tar -cf +GZIP = gzip -9f + +####### Support for 64-bit systems +ifeq ($(shell uname -m), x86_64) + CFLAGS += -march=x86-64 -m64 -D__64BIT__ + CXXFLAGS += -march=x86-64 -m64 -D__64BIT__ +endif + +####### Apply additional overruling user flags, if any +CFLAGS += $(CUSERFLAGS) +CXXFLAGS += $(CUSERFLAGS) + +####### Files + +HEADERS = +SOURCES = ../../../../../src/ta_func/ta_utility.c \ + ../../../../../src/ta_func/ta_ACOS.c \ + ../../../../../src/ta_func/ta_AD.c \ + ../../../../../src/ta_func/ta_ADD.c \ + ../../../../../src/ta_func/ta_ADOSC.c \ + ../../../../../src/ta_func/ta_ADX.c \ + ../../../../../src/ta_func/ta_ADXR.c \ + ../../../../../src/ta_func/ta_APO.c \ + ../../../../../src/ta_func/ta_AROON.c \ + ../../../../../src/ta_func/ta_AROONOSC.c \ + ../../../../../src/ta_func/ta_ASIN.c \ + ../../../../../src/ta_func/ta_ATAN.c \ + ../../../../../src/ta_func/ta_ATR.c \ + ../../../../../src/ta_func/ta_AVGPRICE.c \ + ../../../../../src/ta_func/ta_BBANDS.c \ + ../../../../../src/ta_func/ta_BETA.c \ + ../../../../../src/ta_func/ta_BOP.c \ + ../../../../../src/ta_func/ta_CCI.c \ + ../../../../../src/ta_func/ta_CDL2CROWS.c \ + ../../../../../src/ta_func/ta_CDL3BLACKCROWS.c \ + ../../../../../src/ta_func/ta_CDL3INSIDE.c \ + ../../../../../src/ta_func/ta_CDL3LINESTRIKE.c \ + ../../../../../src/ta_func/ta_CDL3OUTSIDE.c \ + ../../../../../src/ta_func/ta_CDL3STARSINSOUTH.c \ + ../../../../../src/ta_func/ta_CDL3WHITESOLDIERS.c \ + ../../../../../src/ta_func/ta_CDLABANDONEDBABY.c \ + ../../../../../src/ta_func/ta_CDLADVANCEBLOCK.c \ + ../../../../../src/ta_func/ta_CDLBELTHOLD.c \ + ../../../../../src/ta_func/ta_CDLBREAKAWAY.c \ + ../../../../../src/ta_func/ta_CDLCLOSINGMARUBOZU.c \ + ../../../../../src/ta_func/ta_CDLCONCEALBABYSWALL.c \ + ../../../../../src/ta_func/ta_CDLCOUNTERATTACK.c \ + ../../../../../src/ta_func/ta_CDLDARKCLOUDCOVER.c \ + ../../../../../src/ta_func/ta_CDLDOJI.c \ + ../../../../../src/ta_func/ta_CDLDOJISTAR.c \ + ../../../../../src/ta_func/ta_CDLDRAGONFLYDOJI.c \ + ../../../../../src/ta_func/ta_CDLENGULFING.c \ + ../../../../../src/ta_func/ta_CDLEVENINGDOJISTAR.c \ + ../../../../../src/ta_func/ta_CDLEVENINGSTAR.c \ + ../../../../../src/ta_func/ta_CDLGAPSIDESIDEWHITE.c \ + ../../../../../src/ta_func/ta_CDLGRAVESTONEDOJI.c \ + ../../../../../src/ta_func/ta_CDLHAMMER.c \ + ../../../../../src/ta_func/ta_CDLHANGINGMAN.c \ + ../../../../../src/ta_func/ta_CDLHARAMI.c \ + ../../../../../src/ta_func/ta_CDLHARAMICROSS.c \ + ../../../../../src/ta_func/ta_CDLHIGHWAVE.c \ + ../../../../../src/ta_func/ta_CDLHIKKAKE.c \ + ../../../../../src/ta_func/ta_CDLHIKKAKEMOD.c \ + ../../../../../src/ta_func/ta_CDLHOMINGPIGEON.c \ + ../../../../../src/ta_func/ta_CDLIDENTICAL3CROWS.c \ + ../../../../../src/ta_func/ta_CDLINNECK.c \ + ../../../../../src/ta_func/ta_CDLINVERTEDHAMMER.c \ + ../../../../../src/ta_func/ta_CDLKICKING.c \ + ../../../../../src/ta_func/ta_CDLKICKINGBYLENGTH.c \ + ../../../../../src/ta_func/ta_CDLLADDERBOTTOM.c \ + ../../../../../src/ta_func/ta_CDLLONGLEGGEDDOJI.c \ + ../../../../../src/ta_func/ta_CDLLONGLINE.c \ + ../../../../../src/ta_func/ta_CDLMARUBOZU.c \ + ../../../../../src/ta_func/ta_CDLMATCHINGLOW.c \ + ../../../../../src/ta_func/ta_CDLMATHOLD.c \ + ../../../../../src/ta_func/ta_CDLMORNINGDOJISTAR.c \ + ../../../../../src/ta_func/ta_CDLMORNINGSTAR.c \ + ../../../../../src/ta_func/ta_CDLONNECK.c \ + ../../../../../src/ta_func/ta_CDLPIERCING.c \ + ../../../../../src/ta_func/ta_CDLRICKSHAWMAN.c \ + ../../../../../src/ta_func/ta_CDLRISEFALL3METHODS.c \ + ../../../../../src/ta_func/ta_CDLSEPARATINGLINES.c \ + ../../../../../src/ta_func/ta_CDLSHOOTINGSTAR.c \ + ../../../../../src/ta_func/ta_CDLSHORTLINE.c \ + ../../../../../src/ta_func/ta_CDLSPINNINGTOP.c \ + ../../../../../src/ta_func/ta_CDLSTALLEDPATTERN.c \ + ../../../../../src/ta_func/ta_CDLSTICKSANDWICH.c \ + ../../../../../src/ta_func/ta_CDLTAKURI.c \ + ../../../../../src/ta_func/ta_CDLTASUKIGAP.c \ + ../../../../../src/ta_func/ta_CDLTHRUSTING.c \ + ../../../../../src/ta_func/ta_CDLTRISTAR.c \ + ../../../../../src/ta_func/ta_CDLUNIQUE3RIVER.c \ + ../../../../../src/ta_func/ta_CDLUPSIDEGAP2CROWS.c \ + ../../../../../src/ta_func/ta_CDLXSIDEGAP3METHODS.c \ + ../../../../../src/ta_func/ta_CEIL.c \ + ../../../../../src/ta_func/ta_CMO.c \ + ../../../../../src/ta_func/ta_CORREL.c \ + ../../../../../src/ta_func/ta_COS.c \ + ../../../../../src/ta_func/ta_COSH.c \ + ../../../../../src/ta_func/ta_DEMA.c \ + ../../../../../src/ta_func/ta_DIV.c \ + ../../../../../src/ta_func/ta_DX.c \ + ../../../../../src/ta_func/ta_EMA.c \ + ../../../../../src/ta_func/ta_EXP.c \ + ../../../../../src/ta_func/ta_FLOOR.c \ + ../../../../../src/ta_func/ta_HT_DCPERIOD.c \ + ../../../../../src/ta_func/ta_HT_DCPHASE.c \ + ../../../../../src/ta_func/ta_HT_PHASOR.c \ + ../../../../../src/ta_func/ta_HT_SINE.c \ + ../../../../../src/ta_func/ta_HT_TRENDLINE.c \ + ../../../../../src/ta_func/ta_HT_TRENDMODE.c \ + ../../../../../src/ta_func/ta_KAMA.c \ + ../../../../../src/ta_func/ta_LINEARREG.c \ + ../../../../../src/ta_func/ta_LINEARREG_ANGLE.c \ + ../../../../../src/ta_func/ta_LINEARREG_INTERCEPT.c \ + ../../../../../src/ta_func/ta_LINEARREG_SLOPE.c \ + ../../../../../src/ta_func/ta_LN.c \ + ../../../../../src/ta_func/ta_LOG10.c \ + ../../../../../src/ta_func/ta_MA.c \ + ../../../../../src/ta_func/ta_MACD.c \ + ../../../../../src/ta_func/ta_MACDEXT.c \ + ../../../../../src/ta_func/ta_MACDFIX.c \ + ../../../../../src/ta_func/ta_MAMA.c \ + ../../../../../src/ta_func/ta_MAVP.c \ + ../../../../../src/ta_func/ta_MAX.c \ + ../../../../../src/ta_func/ta_MAXINDEX.c \ + ../../../../../src/ta_func/ta_MEDPRICE.c \ + ../../../../../src/ta_func/ta_MFI.c \ + ../../../../../src/ta_func/ta_MIDPOINT.c \ + ../../../../../src/ta_func/ta_MIDPRICE.c \ + ../../../../../src/ta_func/ta_MIN.c \ + ../../../../../src/ta_func/ta_MININDEX.c \ + ../../../../../src/ta_func/ta_MINMAX.c \ + ../../../../../src/ta_func/ta_MINMAXINDEX.c \ + ../../../../../src/ta_func/ta_MINUS_DI.c \ + ../../../../../src/ta_func/ta_MINUS_DM.c \ + ../../../../../src/ta_func/ta_MOM.c \ + ../../../../../src/ta_func/ta_MULT.c \ + ../../../../../src/ta_func/ta_NATR.c \ + ../../../../../src/ta_func/ta_OBV.c \ + ../../../../../src/ta_func/ta_PLUS_DI.c \ + ../../../../../src/ta_func/ta_PLUS_DM.c \ + ../../../../../src/ta_func/ta_PPO.c \ + ../../../../../src/ta_func/ta_ROC.c \ + ../../../../../src/ta_func/ta_ROCP.c \ + ../../../../../src/ta_func/ta_ROCR.c \ + ../../../../../src/ta_func/ta_ROCR100.c \ + ../../../../../src/ta_func/ta_RSI.c \ + ../../../../../src/ta_func/ta_SAR.c \ + ../../../../../src/ta_func/ta_SAREXT.c \ + ../../../../../src/ta_func/ta_SIN.c \ + ../../../../../src/ta_func/ta_SINH.c \ + ../../../../../src/ta_func/ta_SMA.c \ + ../../../../../src/ta_func/ta_SQRT.c \ + ../../../../../src/ta_func/ta_STDDEV.c \ + ../../../../../src/ta_func/ta_STOCH.c \ + ../../../../../src/ta_func/ta_STOCHF.c \ + ../../../../../src/ta_func/ta_STOCHRSI.c \ + ../../../../../src/ta_func/ta_SUB.c \ + ../../../../../src/ta_func/ta_SUM.c \ + ../../../../../src/ta_func/ta_T3.c \ + ../../../../../src/ta_func/ta_TAN.c \ + ../../../../../src/ta_func/ta_TANH.c \ + ../../../../../src/ta_func/ta_TEMA.c \ + ../../../../../src/ta_func/ta_TRANGE.c \ + ../../../../../src/ta_func/ta_TRIMA.c \ + ../../../../../src/ta_func/ta_TRIX.c \ + ../../../../../src/ta_func/ta_TSF.c \ + ../../../../../src/ta_func/ta_TYPPRICE.c \ + ../../../../../src/ta_func/ta_ULTOSC.c \ + ../../../../../src/ta_func/ta_VAR.c \ + ../../../../../src/ta_func/ta_WCLPRICE.c \ + ../../../../../src/ta_func/ta_WILLR.c \ + ../../../../../src/ta_func/ta_WMA.c +OBJECTS = ../../../../../temp/cmd/ta_utility.o \ + ../../../../../temp/cmd/ta_ACOS.o \ + ../../../../../temp/cmd/ta_AD.o \ + ../../../../../temp/cmd/ta_ADD.o \ + ../../../../../temp/cmd/ta_ADOSC.o \ + ../../../../../temp/cmd/ta_ADX.o \ + ../../../../../temp/cmd/ta_ADXR.o \ + ../../../../../temp/cmd/ta_APO.o \ + ../../../../../temp/cmd/ta_AROON.o \ + ../../../../../temp/cmd/ta_AROONOSC.o \ + ../../../../../temp/cmd/ta_ASIN.o \ + ../../../../../temp/cmd/ta_ATAN.o \ + ../../../../../temp/cmd/ta_ATR.o \ + ../../../../../temp/cmd/ta_AVGPRICE.o \ + ../../../../../temp/cmd/ta_BBANDS.o \ + ../../../../../temp/cmd/ta_BETA.o \ + ../../../../../temp/cmd/ta_BOP.o \ + ../../../../../temp/cmd/ta_CCI.o \ + ../../../../../temp/cmd/ta_CDL2CROWS.o \ + ../../../../../temp/cmd/ta_CDL3BLACKCROWS.o \ + ../../../../../temp/cmd/ta_CDL3INSIDE.o \ + ../../../../../temp/cmd/ta_CDL3LINESTRIKE.o \ + ../../../../../temp/cmd/ta_CDL3OUTSIDE.o \ + ../../../../../temp/cmd/ta_CDL3STARSINSOUTH.o \ + ../../../../../temp/cmd/ta_CDL3WHITESOLDIERS.o \ + ../../../../../temp/cmd/ta_CDLABANDONEDBABY.o \ + ../../../../../temp/cmd/ta_CDLADVANCEBLOCK.o \ + ../../../../../temp/cmd/ta_CDLBELTHOLD.o \ + ../../../../../temp/cmd/ta_CDLBREAKAWAY.o \ + ../../../../../temp/cmd/ta_CDLCLOSINGMARUBOZU.o \ + ../../../../../temp/cmd/ta_CDLCONCEALBABYSWALL.o \ + ../../../../../temp/cmd/ta_CDLCOUNTERATTACK.o \ + ../../../../../temp/cmd/ta_CDLDARKCLOUDCOVER.o \ + ../../../../../temp/cmd/ta_CDLDOJI.o \ + ../../../../../temp/cmd/ta_CDLDOJISTAR.o \ + ../../../../../temp/cmd/ta_CDLDRAGONFLYDOJI.o \ + ../../../../../temp/cmd/ta_CDLENGULFING.o \ + ../../../../../temp/cmd/ta_CDLEVENINGDOJISTAR.o \ + ../../../../../temp/cmd/ta_CDLEVENINGSTAR.o \ + ../../../../../temp/cmd/ta_CDLGAPSIDESIDEWHITE.o \ + ../../../../../temp/cmd/ta_CDLGRAVESTONEDOJI.o \ + ../../../../../temp/cmd/ta_CDLHAMMER.o \ + ../../../../../temp/cmd/ta_CDLHANGINGMAN.o \ + ../../../../../temp/cmd/ta_CDLHARAMI.o \ + ../../../../../temp/cmd/ta_CDLHARAMICROSS.o \ + ../../../../../temp/cmd/ta_CDLHIGHWAVE.o \ + ../../../../../temp/cmd/ta_CDLHIKKAKE.o \ + ../../../../../temp/cmd/ta_CDLHIKKAKEMOD.o \ + ../../../../../temp/cmd/ta_CDLHOMINGPIGEON.o \ + ../../../../../temp/cmd/ta_CDLIDENTICAL3CROWS.o \ + ../../../../../temp/cmd/ta_CDLINNECK.o \ + ../../../../../temp/cmd/ta_CDLINVERTEDHAMMER.o \ + ../../../../../temp/cmd/ta_CDLKICKING.o \ + ../../../../../temp/cmd/ta_CDLKICKINGBYLENGTH.o \ + ../../../../../temp/cmd/ta_CDLLADDERBOTTOM.o \ + ../../../../../temp/cmd/ta_CDLLONGLEGGEDDOJI.o \ + ../../../../../temp/cmd/ta_CDLLONGLINE.o \ + ../../../../../temp/cmd/ta_CDLMARUBOZU.o \ + ../../../../../temp/cmd/ta_CDLMATCHINGLOW.o \ + ../../../../../temp/cmd/ta_CDLMATHOLD.o \ + ../../../../../temp/cmd/ta_CDLMORNINGDOJISTAR.o \ + ../../../../../temp/cmd/ta_CDLMORNINGSTAR.o \ + ../../../../../temp/cmd/ta_CDLONNECK.o \ + ../../../../../temp/cmd/ta_CDLPIERCING.o \ + ../../../../../temp/cmd/ta_CDLRICKSHAWMAN.o \ + ../../../../../temp/cmd/ta_CDLRISEFALL3METHODS.o \ + ../../../../../temp/cmd/ta_CDLSEPARATINGLINES.o \ + ../../../../../temp/cmd/ta_CDLSHOOTINGSTAR.o \ + ../../../../../temp/cmd/ta_CDLSHORTLINE.o \ + ../../../../../temp/cmd/ta_CDLSPINNINGTOP.o \ + ../../../../../temp/cmd/ta_CDLSTALLEDPATTERN.o \ + ../../../../../temp/cmd/ta_CDLSTICKSANDWICH.o \ + ../../../../../temp/cmd/ta_CDLTAKURI.o \ + ../../../../../temp/cmd/ta_CDLTASUKIGAP.o \ + ../../../../../temp/cmd/ta_CDLTHRUSTING.o \ + ../../../../../temp/cmd/ta_CDLTRISTAR.o \ + ../../../../../temp/cmd/ta_CDLUNIQUE3RIVER.o \ + ../../../../../temp/cmd/ta_CDLUPSIDEGAP2CROWS.o \ + ../../../../../temp/cmd/ta_CDLXSIDEGAP3METHODS.o \ + ../../../../../temp/cmd/ta_CEIL.o \ + ../../../../../temp/cmd/ta_CMO.o \ + ../../../../../temp/cmd/ta_CORREL.o \ + ../../../../../temp/cmd/ta_COS.o \ + ../../../../../temp/cmd/ta_COSH.o \ + ../../../../../temp/cmd/ta_DEMA.o \ + ../../../../../temp/cmd/ta_DIV.o \ + ../../../../../temp/cmd/ta_DX.o \ + ../../../../../temp/cmd/ta_EMA.o \ + ../../../../../temp/cmd/ta_EXP.o \ + ../../../../../temp/cmd/ta_FLOOR.o \ + ../../../../../temp/cmd/ta_HT_DCPERIOD.o \ + ../../../../../temp/cmd/ta_HT_DCPHASE.o \ + ../../../../../temp/cmd/ta_HT_PHASOR.o \ + ../../../../../temp/cmd/ta_HT_SINE.o \ + ../../../../../temp/cmd/ta_HT_TRENDLINE.o \ + ../../../../../temp/cmd/ta_HT_TRENDMODE.o \ + ../../../../../temp/cmd/ta_KAMA.o \ + ../../../../../temp/cmd/ta_LINEARREG.o \ + ../../../../../temp/cmd/ta_LINEARREG_ANGLE.o \ + ../../../../../temp/cmd/ta_LINEARREG_INTERCEPT.o \ + ../../../../../temp/cmd/ta_LINEARREG_SLOPE.o \ + ../../../../../temp/cmd/ta_LN.o \ + ../../../../../temp/cmd/ta_LOG10.o \ + ../../../../../temp/cmd/ta_MA.o \ + ../../../../../temp/cmd/ta_MACD.o \ + ../../../../../temp/cmd/ta_MACDEXT.o \ + ../../../../../temp/cmd/ta_MACDFIX.o \ + ../../../../../temp/cmd/ta_MAMA.o \ + ../../../../../temp/cmd/ta_MAVP.o \ + ../../../../../temp/cmd/ta_MAX.o \ + ../../../../../temp/cmd/ta_MAXINDEX.o \ + ../../../../../temp/cmd/ta_MEDPRICE.o \ + ../../../../../temp/cmd/ta_MFI.o \ + ../../../../../temp/cmd/ta_MIDPOINT.o \ + ../../../../../temp/cmd/ta_MIDPRICE.o \ + ../../../../../temp/cmd/ta_MIN.o \ + ../../../../../temp/cmd/ta_MININDEX.o \ + ../../../../../temp/cmd/ta_MINMAX.o \ + ../../../../../temp/cmd/ta_MINMAXINDEX.o \ + ../../../../../temp/cmd/ta_MINUS_DI.o \ + ../../../../../temp/cmd/ta_MINUS_DM.o \ + ../../../../../temp/cmd/ta_MOM.o \ + ../../../../../temp/cmd/ta_MULT.o \ + ../../../../../temp/cmd/ta_NATR.o \ + ../../../../../temp/cmd/ta_OBV.o \ + ../../../../../temp/cmd/ta_PLUS_DI.o \ + ../../../../../temp/cmd/ta_PLUS_DM.o \ + ../../../../../temp/cmd/ta_PPO.o \ + ../../../../../temp/cmd/ta_ROC.o \ + ../../../../../temp/cmd/ta_ROCP.o \ + ../../../../../temp/cmd/ta_ROCR.o \ + ../../../../../temp/cmd/ta_ROCR100.o \ + ../../../../../temp/cmd/ta_RSI.o \ + ../../../../../temp/cmd/ta_SAR.o \ + ../../../../../temp/cmd/ta_SAREXT.o \ + ../../../../../temp/cmd/ta_SIN.o \ + ../../../../../temp/cmd/ta_SINH.o \ + ../../../../../temp/cmd/ta_SMA.o \ + ../../../../../temp/cmd/ta_SQRT.o \ + ../../../../../temp/cmd/ta_STDDEV.o \ + ../../../../../temp/cmd/ta_STOCH.o \ + ../../../../../temp/cmd/ta_STOCHF.o \ + ../../../../../temp/cmd/ta_STOCHRSI.o \ + ../../../../../temp/cmd/ta_SUB.o \ + ../../../../../temp/cmd/ta_SUM.o \ + ../../../../../temp/cmd/ta_T3.o \ + ../../../../../temp/cmd/ta_TAN.o \ + ../../../../../temp/cmd/ta_TANH.o \ + ../../../../../temp/cmd/ta_TEMA.o \ + ../../../../../temp/cmd/ta_TRANGE.o \ + ../../../../../temp/cmd/ta_TRIMA.o \ + ../../../../../temp/cmd/ta_TRIX.o \ + ../../../../../temp/cmd/ta_TSF.o \ + ../../../../../temp/cmd/ta_TYPPRICE.o \ + ../../../../../temp/cmd/ta_ULTOSC.o \ + ../../../../../temp/cmd/ta_VAR.o \ + ../../../../../temp/cmd/ta_WCLPRICE.o \ + ../../../../../temp/cmd/ta_WILLR.o \ + ../../../../../temp/cmd/ta_WMA.o +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ../../../../../lib/libta_func_cmd.a +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .C .c + +.cpp.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cxx.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cc.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.C.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.c.o: + $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $< + +####### Build rules + + +all: $(TARGET) + +staticlib: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + -rm -f $(TARGET) + $(AR) $(TARGET) $(OBJECTS) $(OBJMOC) + +moc: $(SRCMOC) + +clean: + -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) + -rm -f *~ core + +####### Sub-libraries + + +###### Combined headers + + +####### Compile + +../../../../../temp/cmd/ta_utility.o: ../../../../../src/ta_func/ta_utility.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_utility.o ../../../../../src/ta_func/ta_utility.c + +../../../../../temp/cmd/ta_ACOS.o: ../../../../../src/ta_func/ta_ACOS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_ACOS.o ../../../../../src/ta_func/ta_ACOS.c + +../../../../../temp/cmd/ta_AD.o: ../../../../../src/ta_func/ta_AD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_AD.o ../../../../../src/ta_func/ta_AD.c + +../../../../../temp/cmd/ta_ADD.o: ../../../../../src/ta_func/ta_ADD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_ADD.o ../../../../../src/ta_func/ta_ADD.c + +../../../../../temp/cmd/ta_ADOSC.o: ../../../../../src/ta_func/ta_ADOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_ADOSC.o ../../../../../src/ta_func/ta_ADOSC.c + +../../../../../temp/cmd/ta_ADX.o: ../../../../../src/ta_func/ta_ADX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_ADX.o ../../../../../src/ta_func/ta_ADX.c + +../../../../../temp/cmd/ta_ADXR.o: ../../../../../src/ta_func/ta_ADXR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_ADXR.o ../../../../../src/ta_func/ta_ADXR.c + +../../../../../temp/cmd/ta_APO.o: ../../../../../src/ta_func/ta_APO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_APO.o ../../../../../src/ta_func/ta_APO.c + +../../../../../temp/cmd/ta_AROON.o: ../../../../../src/ta_func/ta_AROON.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_AROON.o ../../../../../src/ta_func/ta_AROON.c + +../../../../../temp/cmd/ta_AROONOSC.o: ../../../../../src/ta_func/ta_AROONOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_AROONOSC.o ../../../../../src/ta_func/ta_AROONOSC.c + +../../../../../temp/cmd/ta_ASIN.o: ../../../../../src/ta_func/ta_ASIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_ASIN.o ../../../../../src/ta_func/ta_ASIN.c + +../../../../../temp/cmd/ta_ATAN.o: ../../../../../src/ta_func/ta_ATAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_ATAN.o ../../../../../src/ta_func/ta_ATAN.c + +../../../../../temp/cmd/ta_ATR.o: ../../../../../src/ta_func/ta_ATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_ATR.o ../../../../../src/ta_func/ta_ATR.c + +../../../../../temp/cmd/ta_AVGPRICE.o: ../../../../../src/ta_func/ta_AVGPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_AVGPRICE.o ../../../../../src/ta_func/ta_AVGPRICE.c + +../../../../../temp/cmd/ta_BBANDS.o: ../../../../../src/ta_func/ta_BBANDS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_BBANDS.o ../../../../../src/ta_func/ta_BBANDS.c + +../../../../../temp/cmd/ta_BETA.o: ../../../../../src/ta_func/ta_BETA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_BETA.o ../../../../../src/ta_func/ta_BETA.c + +../../../../../temp/cmd/ta_BOP.o: ../../../../../src/ta_func/ta_BOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_BOP.o ../../../../../src/ta_func/ta_BOP.c + +../../../../../temp/cmd/ta_CCI.o: ../../../../../src/ta_func/ta_CCI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CCI.o ../../../../../src/ta_func/ta_CCI.c + +../../../../../temp/cmd/ta_CDL2CROWS.o: ../../../../../src/ta_func/ta_CDL2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDL2CROWS.o ../../../../../src/ta_func/ta_CDL2CROWS.c + +../../../../../temp/cmd/ta_CDL3BLACKCROWS.o: ../../../../../src/ta_func/ta_CDL3BLACKCROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDL3BLACKCROWS.o ../../../../../src/ta_func/ta_CDL3BLACKCROWS.c + +../../../../../temp/cmd/ta_CDL3INSIDE.o: ../../../../../src/ta_func/ta_CDL3INSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDL3INSIDE.o ../../../../../src/ta_func/ta_CDL3INSIDE.c + +../../../../../temp/cmd/ta_CDL3LINESTRIKE.o: ../../../../../src/ta_func/ta_CDL3LINESTRIKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDL3LINESTRIKE.o ../../../../../src/ta_func/ta_CDL3LINESTRIKE.c + +../../../../../temp/cmd/ta_CDL3OUTSIDE.o: ../../../../../src/ta_func/ta_CDL3OUTSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDL3OUTSIDE.o ../../../../../src/ta_func/ta_CDL3OUTSIDE.c + +../../../../../temp/cmd/ta_CDL3STARSINSOUTH.o: ../../../../../src/ta_func/ta_CDL3STARSINSOUTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDL3STARSINSOUTH.o ../../../../../src/ta_func/ta_CDL3STARSINSOUTH.c + +../../../../../temp/cmd/ta_CDL3WHITESOLDIERS.o: ../../../../../src/ta_func/ta_CDL3WHITESOLDIERS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDL3WHITESOLDIERS.o ../../../../../src/ta_func/ta_CDL3WHITESOLDIERS.c + +../../../../../temp/cmd/ta_CDLABANDONEDBABY.o: ../../../../../src/ta_func/ta_CDLABANDONEDBABY.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLABANDONEDBABY.o ../../../../../src/ta_func/ta_CDLABANDONEDBABY.c + +../../../../../temp/cmd/ta_CDLADVANCEBLOCK.o: ../../../../../src/ta_func/ta_CDLADVANCEBLOCK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLADVANCEBLOCK.o ../../../../../src/ta_func/ta_CDLADVANCEBLOCK.c + +../../../../../temp/cmd/ta_CDLBELTHOLD.o: ../../../../../src/ta_func/ta_CDLBELTHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLBELTHOLD.o ../../../../../src/ta_func/ta_CDLBELTHOLD.c + +../../../../../temp/cmd/ta_CDLBREAKAWAY.o: ../../../../../src/ta_func/ta_CDLBREAKAWAY.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLBREAKAWAY.o ../../../../../src/ta_func/ta_CDLBREAKAWAY.c + +../../../../../temp/cmd/ta_CDLCLOSINGMARUBOZU.o: ../../../../../src/ta_func/ta_CDLCLOSINGMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLCLOSINGMARUBOZU.o ../../../../../src/ta_func/ta_CDLCLOSINGMARUBOZU.c + +../../../../../temp/cmd/ta_CDLCONCEALBABYSWALL.o: ../../../../../src/ta_func/ta_CDLCONCEALBABYSWALL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLCONCEALBABYSWALL.o ../../../../../src/ta_func/ta_CDLCONCEALBABYSWALL.c + +../../../../../temp/cmd/ta_CDLCOUNTERATTACK.o: ../../../../../src/ta_func/ta_CDLCOUNTERATTACK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLCOUNTERATTACK.o ../../../../../src/ta_func/ta_CDLCOUNTERATTACK.c + +../../../../../temp/cmd/ta_CDLDARKCLOUDCOVER.o: ../../../../../src/ta_func/ta_CDLDARKCLOUDCOVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLDARKCLOUDCOVER.o ../../../../../src/ta_func/ta_CDLDARKCLOUDCOVER.c + +../../../../../temp/cmd/ta_CDLDOJI.o: ../../../../../src/ta_func/ta_CDLDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLDOJI.o ../../../../../src/ta_func/ta_CDLDOJI.c + +../../../../../temp/cmd/ta_CDLDOJISTAR.o: ../../../../../src/ta_func/ta_CDLDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLDOJISTAR.o ../../../../../src/ta_func/ta_CDLDOJISTAR.c + +../../../../../temp/cmd/ta_CDLDRAGONFLYDOJI.o: ../../../../../src/ta_func/ta_CDLDRAGONFLYDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLDRAGONFLYDOJI.o ../../../../../src/ta_func/ta_CDLDRAGONFLYDOJI.c + +../../../../../temp/cmd/ta_CDLENGULFING.o: ../../../../../src/ta_func/ta_CDLENGULFING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLENGULFING.o ../../../../../src/ta_func/ta_CDLENGULFING.c + +../../../../../temp/cmd/ta_CDLEVENINGDOJISTAR.o: ../../../../../src/ta_func/ta_CDLEVENINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLEVENINGDOJISTAR.o ../../../../../src/ta_func/ta_CDLEVENINGDOJISTAR.c + +../../../../../temp/cmd/ta_CDLEVENINGSTAR.o: ../../../../../src/ta_func/ta_CDLEVENINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLEVENINGSTAR.o ../../../../../src/ta_func/ta_CDLEVENINGSTAR.c + +../../../../../temp/cmd/ta_CDLGAPSIDESIDEWHITE.o: ../../../../../src/ta_func/ta_CDLGAPSIDESIDEWHITE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLGAPSIDESIDEWHITE.o ../../../../../src/ta_func/ta_CDLGAPSIDESIDEWHITE.c + +../../../../../temp/cmd/ta_CDLGRAVESTONEDOJI.o: ../../../../../src/ta_func/ta_CDLGRAVESTONEDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLGRAVESTONEDOJI.o ../../../../../src/ta_func/ta_CDLGRAVESTONEDOJI.c + +../../../../../temp/cmd/ta_CDLHAMMER.o: ../../../../../src/ta_func/ta_CDLHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLHAMMER.o ../../../../../src/ta_func/ta_CDLHAMMER.c + +../../../../../temp/cmd/ta_CDLHANGINGMAN.o: ../../../../../src/ta_func/ta_CDLHANGINGMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLHANGINGMAN.o ../../../../../src/ta_func/ta_CDLHANGINGMAN.c + +../../../../../temp/cmd/ta_CDLHARAMI.o: ../../../../../src/ta_func/ta_CDLHARAMI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLHARAMI.o ../../../../../src/ta_func/ta_CDLHARAMI.c + +../../../../../temp/cmd/ta_CDLHARAMICROSS.o: ../../../../../src/ta_func/ta_CDLHARAMICROSS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLHARAMICROSS.o ../../../../../src/ta_func/ta_CDLHARAMICROSS.c + +../../../../../temp/cmd/ta_CDLHIGHWAVE.o: ../../../../../src/ta_func/ta_CDLHIGHWAVE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLHIGHWAVE.o ../../../../../src/ta_func/ta_CDLHIGHWAVE.c + +../../../../../temp/cmd/ta_CDLHIKKAKE.o: ../../../../../src/ta_func/ta_CDLHIKKAKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLHIKKAKE.o ../../../../../src/ta_func/ta_CDLHIKKAKE.c + +../../../../../temp/cmd/ta_CDLHIKKAKEMOD.o: ../../../../../src/ta_func/ta_CDLHIKKAKEMOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLHIKKAKEMOD.o ../../../../../src/ta_func/ta_CDLHIKKAKEMOD.c + +../../../../../temp/cmd/ta_CDLHOMINGPIGEON.o: ../../../../../src/ta_func/ta_CDLHOMINGPIGEON.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLHOMINGPIGEON.o ../../../../../src/ta_func/ta_CDLHOMINGPIGEON.c + +../../../../../temp/cmd/ta_CDLIDENTICAL3CROWS.o: ../../../../../src/ta_func/ta_CDLIDENTICAL3CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLIDENTICAL3CROWS.o ../../../../../src/ta_func/ta_CDLIDENTICAL3CROWS.c + +../../../../../temp/cmd/ta_CDLINNECK.o: ../../../../../src/ta_func/ta_CDLINNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLINNECK.o ../../../../../src/ta_func/ta_CDLINNECK.c + +../../../../../temp/cmd/ta_CDLINVERTEDHAMMER.o: ../../../../../src/ta_func/ta_CDLINVERTEDHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLINVERTEDHAMMER.o ../../../../../src/ta_func/ta_CDLINVERTEDHAMMER.c + +../../../../../temp/cmd/ta_CDLKICKING.o: ../../../../../src/ta_func/ta_CDLKICKING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLKICKING.o ../../../../../src/ta_func/ta_CDLKICKING.c + +../../../../../temp/cmd/ta_CDLKICKINGBYLENGTH.o: ../../../../../src/ta_func/ta_CDLKICKINGBYLENGTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLKICKINGBYLENGTH.o ../../../../../src/ta_func/ta_CDLKICKINGBYLENGTH.c + +../../../../../temp/cmd/ta_CDLLADDERBOTTOM.o: ../../../../../src/ta_func/ta_CDLLADDERBOTTOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLLADDERBOTTOM.o ../../../../../src/ta_func/ta_CDLLADDERBOTTOM.c + +../../../../../temp/cmd/ta_CDLLONGLEGGEDDOJI.o: ../../../../../src/ta_func/ta_CDLLONGLEGGEDDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLLONGLEGGEDDOJI.o ../../../../../src/ta_func/ta_CDLLONGLEGGEDDOJI.c + +../../../../../temp/cmd/ta_CDLLONGLINE.o: ../../../../../src/ta_func/ta_CDLLONGLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLLONGLINE.o ../../../../../src/ta_func/ta_CDLLONGLINE.c + +../../../../../temp/cmd/ta_CDLMARUBOZU.o: ../../../../../src/ta_func/ta_CDLMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLMARUBOZU.o ../../../../../src/ta_func/ta_CDLMARUBOZU.c + +../../../../../temp/cmd/ta_CDLMATCHINGLOW.o: ../../../../../src/ta_func/ta_CDLMATCHINGLOW.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLMATCHINGLOW.o ../../../../../src/ta_func/ta_CDLMATCHINGLOW.c + +../../../../../temp/cmd/ta_CDLMATHOLD.o: ../../../../../src/ta_func/ta_CDLMATHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLMATHOLD.o ../../../../../src/ta_func/ta_CDLMATHOLD.c + +../../../../../temp/cmd/ta_CDLMORNINGDOJISTAR.o: ../../../../../src/ta_func/ta_CDLMORNINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLMORNINGDOJISTAR.o ../../../../../src/ta_func/ta_CDLMORNINGDOJISTAR.c + +../../../../../temp/cmd/ta_CDLMORNINGSTAR.o: ../../../../../src/ta_func/ta_CDLMORNINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLMORNINGSTAR.o ../../../../../src/ta_func/ta_CDLMORNINGSTAR.c + +../../../../../temp/cmd/ta_CDLONNECK.o: ../../../../../src/ta_func/ta_CDLONNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLONNECK.o ../../../../../src/ta_func/ta_CDLONNECK.c + +../../../../../temp/cmd/ta_CDLPIERCING.o: ../../../../../src/ta_func/ta_CDLPIERCING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLPIERCING.o ../../../../../src/ta_func/ta_CDLPIERCING.c + +../../../../../temp/cmd/ta_CDLRICKSHAWMAN.o: ../../../../../src/ta_func/ta_CDLRICKSHAWMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLRICKSHAWMAN.o ../../../../../src/ta_func/ta_CDLRICKSHAWMAN.c + +../../../../../temp/cmd/ta_CDLRISEFALL3METHODS.o: ../../../../../src/ta_func/ta_CDLRISEFALL3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLRISEFALL3METHODS.o ../../../../../src/ta_func/ta_CDLRISEFALL3METHODS.c + +../../../../../temp/cmd/ta_CDLSEPARATINGLINES.o: ../../../../../src/ta_func/ta_CDLSEPARATINGLINES.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLSEPARATINGLINES.o ../../../../../src/ta_func/ta_CDLSEPARATINGLINES.c + +../../../../../temp/cmd/ta_CDLSHOOTINGSTAR.o: ../../../../../src/ta_func/ta_CDLSHOOTINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLSHOOTINGSTAR.o ../../../../../src/ta_func/ta_CDLSHOOTINGSTAR.c + +../../../../../temp/cmd/ta_CDLSHORTLINE.o: ../../../../../src/ta_func/ta_CDLSHORTLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLSHORTLINE.o ../../../../../src/ta_func/ta_CDLSHORTLINE.c + +../../../../../temp/cmd/ta_CDLSPINNINGTOP.o: ../../../../../src/ta_func/ta_CDLSPINNINGTOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLSPINNINGTOP.o ../../../../../src/ta_func/ta_CDLSPINNINGTOP.c + +../../../../../temp/cmd/ta_CDLSTALLEDPATTERN.o: ../../../../../src/ta_func/ta_CDLSTALLEDPATTERN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLSTALLEDPATTERN.o ../../../../../src/ta_func/ta_CDLSTALLEDPATTERN.c + +../../../../../temp/cmd/ta_CDLSTICKSANDWICH.o: ../../../../../src/ta_func/ta_CDLSTICKSANDWICH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLSTICKSANDWICH.o ../../../../../src/ta_func/ta_CDLSTICKSANDWICH.c + +../../../../../temp/cmd/ta_CDLTAKURI.o: ../../../../../src/ta_func/ta_CDLTAKURI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLTAKURI.o ../../../../../src/ta_func/ta_CDLTAKURI.c + +../../../../../temp/cmd/ta_CDLTASUKIGAP.o: ../../../../../src/ta_func/ta_CDLTASUKIGAP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLTASUKIGAP.o ../../../../../src/ta_func/ta_CDLTASUKIGAP.c + +../../../../../temp/cmd/ta_CDLTHRUSTING.o: ../../../../../src/ta_func/ta_CDLTHRUSTING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLTHRUSTING.o ../../../../../src/ta_func/ta_CDLTHRUSTING.c + +../../../../../temp/cmd/ta_CDLTRISTAR.o: ../../../../../src/ta_func/ta_CDLTRISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLTRISTAR.o ../../../../../src/ta_func/ta_CDLTRISTAR.c + +../../../../../temp/cmd/ta_CDLUNIQUE3RIVER.o: ../../../../../src/ta_func/ta_CDLUNIQUE3RIVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLUNIQUE3RIVER.o ../../../../../src/ta_func/ta_CDLUNIQUE3RIVER.c + +../../../../../temp/cmd/ta_CDLUPSIDEGAP2CROWS.o: ../../../../../src/ta_func/ta_CDLUPSIDEGAP2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLUPSIDEGAP2CROWS.o ../../../../../src/ta_func/ta_CDLUPSIDEGAP2CROWS.c + +../../../../../temp/cmd/ta_CDLXSIDEGAP3METHODS.o: ../../../../../src/ta_func/ta_CDLXSIDEGAP3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLXSIDEGAP3METHODS.o ../../../../../src/ta_func/ta_CDLXSIDEGAP3METHODS.c + +../../../../../temp/cmd/ta_CEIL.o: ../../../../../src/ta_func/ta_CEIL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CEIL.o ../../../../../src/ta_func/ta_CEIL.c + +../../../../../temp/cmd/ta_CMO.o: ../../../../../src/ta_func/ta_CMO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CMO.o ../../../../../src/ta_func/ta_CMO.c + +../../../../../temp/cmd/ta_CORREL.o: ../../../../../src/ta_func/ta_CORREL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CORREL.o ../../../../../src/ta_func/ta_CORREL.c + +../../../../../temp/cmd/ta_COS.o: ../../../../../src/ta_func/ta_COS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_COS.o ../../../../../src/ta_func/ta_COS.c + +../../../../../temp/cmd/ta_COSH.o: ../../../../../src/ta_func/ta_COSH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_COSH.o ../../../../../src/ta_func/ta_COSH.c + +../../../../../temp/cmd/ta_DEMA.o: ../../../../../src/ta_func/ta_DEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_DEMA.o ../../../../../src/ta_func/ta_DEMA.c + +../../../../../temp/cmd/ta_DIV.o: ../../../../../src/ta_func/ta_DIV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_DIV.o ../../../../../src/ta_func/ta_DIV.c + +../../../../../temp/cmd/ta_DX.o: ../../../../../src/ta_func/ta_DX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_DX.o ../../../../../src/ta_func/ta_DX.c + +../../../../../temp/cmd/ta_EMA.o: ../../../../../src/ta_func/ta_EMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_EMA.o ../../../../../src/ta_func/ta_EMA.c + +../../../../../temp/cmd/ta_EXP.o: ../../../../../src/ta_func/ta_EXP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_EXP.o ../../../../../src/ta_func/ta_EXP.c + +../../../../../temp/cmd/ta_FLOOR.o: ../../../../../src/ta_func/ta_FLOOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_FLOOR.o ../../../../../src/ta_func/ta_FLOOR.c + +../../../../../temp/cmd/ta_HT_DCPERIOD.o: ../../../../../src/ta_func/ta_HT_DCPERIOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_HT_DCPERIOD.o ../../../../../src/ta_func/ta_HT_DCPERIOD.c + +../../../../../temp/cmd/ta_HT_DCPHASE.o: ../../../../../src/ta_func/ta_HT_DCPHASE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_HT_DCPHASE.o ../../../../../src/ta_func/ta_HT_DCPHASE.c + +../../../../../temp/cmd/ta_HT_PHASOR.o: ../../../../../src/ta_func/ta_HT_PHASOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_HT_PHASOR.o ../../../../../src/ta_func/ta_HT_PHASOR.c + +../../../../../temp/cmd/ta_HT_SINE.o: ../../../../../src/ta_func/ta_HT_SINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_HT_SINE.o ../../../../../src/ta_func/ta_HT_SINE.c + +../../../../../temp/cmd/ta_HT_TRENDLINE.o: ../../../../../src/ta_func/ta_HT_TRENDLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_HT_TRENDLINE.o ../../../../../src/ta_func/ta_HT_TRENDLINE.c + +../../../../../temp/cmd/ta_HT_TRENDMODE.o: ../../../../../src/ta_func/ta_HT_TRENDMODE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_HT_TRENDMODE.o ../../../../../src/ta_func/ta_HT_TRENDMODE.c + +../../../../../temp/cmd/ta_KAMA.o: ../../../../../src/ta_func/ta_KAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_KAMA.o ../../../../../src/ta_func/ta_KAMA.c + +../../../../../temp/cmd/ta_LINEARREG.o: ../../../../../src/ta_func/ta_LINEARREG.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_LINEARREG.o ../../../../../src/ta_func/ta_LINEARREG.c + +../../../../../temp/cmd/ta_LINEARREG_ANGLE.o: ../../../../../src/ta_func/ta_LINEARREG_ANGLE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_LINEARREG_ANGLE.o ../../../../../src/ta_func/ta_LINEARREG_ANGLE.c + +../../../../../temp/cmd/ta_LINEARREG_INTERCEPT.o: ../../../../../src/ta_func/ta_LINEARREG_INTERCEPT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_LINEARREG_INTERCEPT.o ../../../../../src/ta_func/ta_LINEARREG_INTERCEPT.c + +../../../../../temp/cmd/ta_LINEARREG_SLOPE.o: ../../../../../src/ta_func/ta_LINEARREG_SLOPE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_LINEARREG_SLOPE.o ../../../../../src/ta_func/ta_LINEARREG_SLOPE.c + +../../../../../temp/cmd/ta_LN.o: ../../../../../src/ta_func/ta_LN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_LN.o ../../../../../src/ta_func/ta_LN.c + +../../../../../temp/cmd/ta_LOG10.o: ../../../../../src/ta_func/ta_LOG10.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_LOG10.o ../../../../../src/ta_func/ta_LOG10.c + +../../../../../temp/cmd/ta_MA.o: ../../../../../src/ta_func/ta_MA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_MA.o ../../../../../src/ta_func/ta_MA.c + +../../../../../temp/cmd/ta_MACD.o: ../../../../../src/ta_func/ta_MACD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_MACD.o ../../../../../src/ta_func/ta_MACD.c + +../../../../../temp/cmd/ta_MACDEXT.o: ../../../../../src/ta_func/ta_MACDEXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_MACDEXT.o ../../../../../src/ta_func/ta_MACDEXT.c + +../../../../../temp/cmd/ta_MACDFIX.o: ../../../../../src/ta_func/ta_MACDFIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_MACDFIX.o ../../../../../src/ta_func/ta_MACDFIX.c + +../../../../../temp/cmd/ta_MAMA.o: ../../../../../src/ta_func/ta_MAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_MAMA.o ../../../../../src/ta_func/ta_MAMA.c + +../../../../../temp/cmd/ta_MAVP.o: ../../../../../src/ta_func/ta_MAVP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_MAVP.o ../../../../../src/ta_func/ta_MAVP.c + +../../../../../temp/cmd/ta_MAX.o: ../../../../../src/ta_func/ta_MAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_MAX.o ../../../../../src/ta_func/ta_MAX.c + +../../../../../temp/cmd/ta_MAXINDEX.o: ../../../../../src/ta_func/ta_MAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_MAXINDEX.o ../../../../../src/ta_func/ta_MAXINDEX.c + +../../../../../temp/cmd/ta_MEDPRICE.o: ../../../../../src/ta_func/ta_MEDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_MEDPRICE.o ../../../../../src/ta_func/ta_MEDPRICE.c + +../../../../../temp/cmd/ta_MFI.o: ../../../../../src/ta_func/ta_MFI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_MFI.o ../../../../../src/ta_func/ta_MFI.c + +../../../../../temp/cmd/ta_MIDPOINT.o: ../../../../../src/ta_func/ta_MIDPOINT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_MIDPOINT.o ../../../../../src/ta_func/ta_MIDPOINT.c + +../../../../../temp/cmd/ta_MIDPRICE.o: ../../../../../src/ta_func/ta_MIDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_MIDPRICE.o ../../../../../src/ta_func/ta_MIDPRICE.c + +../../../../../temp/cmd/ta_MIN.o: ../../../../../src/ta_func/ta_MIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_MIN.o ../../../../../src/ta_func/ta_MIN.c + +../../../../../temp/cmd/ta_MININDEX.o: ../../../../../src/ta_func/ta_MININDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_MININDEX.o ../../../../../src/ta_func/ta_MININDEX.c + +../../../../../temp/cmd/ta_MINMAX.o: ../../../../../src/ta_func/ta_MINMAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_MINMAX.o ../../../../../src/ta_func/ta_MINMAX.c + +../../../../../temp/cmd/ta_MINMAXINDEX.o: ../../../../../src/ta_func/ta_MINMAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_MINMAXINDEX.o ../../../../../src/ta_func/ta_MINMAXINDEX.c + +../../../../../temp/cmd/ta_MINUS_DI.o: ../../../../../src/ta_func/ta_MINUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_MINUS_DI.o ../../../../../src/ta_func/ta_MINUS_DI.c + +../../../../../temp/cmd/ta_MINUS_DM.o: ../../../../../src/ta_func/ta_MINUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_MINUS_DM.o ../../../../../src/ta_func/ta_MINUS_DM.c + +../../../../../temp/cmd/ta_MOM.o: ../../../../../src/ta_func/ta_MOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_MOM.o ../../../../../src/ta_func/ta_MOM.c + +../../../../../temp/cmd/ta_MULT.o: ../../../../../src/ta_func/ta_MULT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_MULT.o ../../../../../src/ta_func/ta_MULT.c + +../../../../../temp/cmd/ta_NATR.o: ../../../../../src/ta_func/ta_NATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_NATR.o ../../../../../src/ta_func/ta_NATR.c + +../../../../../temp/cmd/ta_OBV.o: ../../../../../src/ta_func/ta_OBV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_OBV.o ../../../../../src/ta_func/ta_OBV.c + +../../../../../temp/cmd/ta_PLUS_DI.o: ../../../../../src/ta_func/ta_PLUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_PLUS_DI.o ../../../../../src/ta_func/ta_PLUS_DI.c + +../../../../../temp/cmd/ta_PLUS_DM.o: ../../../../../src/ta_func/ta_PLUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_PLUS_DM.o ../../../../../src/ta_func/ta_PLUS_DM.c + +../../../../../temp/cmd/ta_PPO.o: ../../../../../src/ta_func/ta_PPO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_PPO.o ../../../../../src/ta_func/ta_PPO.c + +../../../../../temp/cmd/ta_ROC.o: ../../../../../src/ta_func/ta_ROC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_ROC.o ../../../../../src/ta_func/ta_ROC.c + +../../../../../temp/cmd/ta_ROCP.o: ../../../../../src/ta_func/ta_ROCP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_ROCP.o ../../../../../src/ta_func/ta_ROCP.c + +../../../../../temp/cmd/ta_ROCR.o: ../../../../../src/ta_func/ta_ROCR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_ROCR.o ../../../../../src/ta_func/ta_ROCR.c + +../../../../../temp/cmd/ta_ROCR100.o: ../../../../../src/ta_func/ta_ROCR100.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_ROCR100.o ../../../../../src/ta_func/ta_ROCR100.c + +../../../../../temp/cmd/ta_RSI.o: ../../../../../src/ta_func/ta_RSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_RSI.o ../../../../../src/ta_func/ta_RSI.c + +../../../../../temp/cmd/ta_SAR.o: ../../../../../src/ta_func/ta_SAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_SAR.o ../../../../../src/ta_func/ta_SAR.c + +../../../../../temp/cmd/ta_SAREXT.o: ../../../../../src/ta_func/ta_SAREXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_SAREXT.o ../../../../../src/ta_func/ta_SAREXT.c + +../../../../../temp/cmd/ta_SIN.o: ../../../../../src/ta_func/ta_SIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_SIN.o ../../../../../src/ta_func/ta_SIN.c + +../../../../../temp/cmd/ta_SINH.o: ../../../../../src/ta_func/ta_SINH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_SINH.o ../../../../../src/ta_func/ta_SINH.c + +../../../../../temp/cmd/ta_SMA.o: ../../../../../src/ta_func/ta_SMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_SMA.o ../../../../../src/ta_func/ta_SMA.c + +../../../../../temp/cmd/ta_SQRT.o: ../../../../../src/ta_func/ta_SQRT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_SQRT.o ../../../../../src/ta_func/ta_SQRT.c + +../../../../../temp/cmd/ta_STDDEV.o: ../../../../../src/ta_func/ta_STDDEV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_STDDEV.o ../../../../../src/ta_func/ta_STDDEV.c + +../../../../../temp/cmd/ta_STOCH.o: ../../../../../src/ta_func/ta_STOCH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_STOCH.o ../../../../../src/ta_func/ta_STOCH.c + +../../../../../temp/cmd/ta_STOCHF.o: ../../../../../src/ta_func/ta_STOCHF.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_STOCHF.o ../../../../../src/ta_func/ta_STOCHF.c + +../../../../../temp/cmd/ta_STOCHRSI.o: ../../../../../src/ta_func/ta_STOCHRSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_STOCHRSI.o ../../../../../src/ta_func/ta_STOCHRSI.c + +../../../../../temp/cmd/ta_SUB.o: ../../../../../src/ta_func/ta_SUB.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_SUB.o ../../../../../src/ta_func/ta_SUB.c + +../../../../../temp/cmd/ta_SUM.o: ../../../../../src/ta_func/ta_SUM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_SUM.o ../../../../../src/ta_func/ta_SUM.c + +../../../../../temp/cmd/ta_T3.o: ../../../../../src/ta_func/ta_T3.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_T3.o ../../../../../src/ta_func/ta_T3.c + +../../../../../temp/cmd/ta_TAN.o: ../../../../../src/ta_func/ta_TAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_TAN.o ../../../../../src/ta_func/ta_TAN.c + +../../../../../temp/cmd/ta_TANH.o: ../../../../../src/ta_func/ta_TANH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_TANH.o ../../../../../src/ta_func/ta_TANH.c + +../../../../../temp/cmd/ta_TEMA.o: ../../../../../src/ta_func/ta_TEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_TEMA.o ../../../../../src/ta_func/ta_TEMA.c + +../../../../../temp/cmd/ta_TRANGE.o: ../../../../../src/ta_func/ta_TRANGE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_TRANGE.o ../../../../../src/ta_func/ta_TRANGE.c + +../../../../../temp/cmd/ta_TRIMA.o: ../../../../../src/ta_func/ta_TRIMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_TRIMA.o ../../../../../src/ta_func/ta_TRIMA.c + +../../../../../temp/cmd/ta_TRIX.o: ../../../../../src/ta_func/ta_TRIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_TRIX.o ../../../../../src/ta_func/ta_TRIX.c + +../../../../../temp/cmd/ta_TSF.o: ../../../../../src/ta_func/ta_TSF.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_TSF.o ../../../../../src/ta_func/ta_TSF.c + +../../../../../temp/cmd/ta_TYPPRICE.o: ../../../../../src/ta_func/ta_TYPPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_TYPPRICE.o ../../../../../src/ta_func/ta_TYPPRICE.c + +../../../../../temp/cmd/ta_ULTOSC.o: ../../../../../src/ta_func/ta_ULTOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_ULTOSC.o ../../../../../src/ta_func/ta_ULTOSC.c + +../../../../../temp/cmd/ta_VAR.o: ../../../../../src/ta_func/ta_VAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_VAR.o ../../../../../src/ta_func/ta_VAR.c + +../../../../../temp/cmd/ta_WCLPRICE.o: ../../../../../src/ta_func/ta_WCLPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_WCLPRICE.o ../../../../../src/ta_func/ta_WCLPRICE.c + +../../../../../temp/cmd/ta_WILLR.o: ../../../../../src/ta_func/ta_WILLR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_WILLR.o ../../../../../src/ta_func/ta_WILLR.c + +../../../../../temp/cmd/ta_WMA.o: ../../../../../src/ta_func/ta_WMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_WMA.o ../../../../../src/ta_func/ta_WMA.c + diff --git a/make/cmd/cygwin/g++/ta_libc/Makefile b/make/cmd/cygwin/g++/ta_libc/Makefile new file mode 100644 index 000000000..6f651789a --- /dev/null +++ b/make/cmd/cygwin/g++/ta_libc/Makefile @@ -0,0 +1,1053 @@ +############################################################################# +# Makefile for building ../../../../../lib/libta_libc_cmd.a +# Generated by tmake; +# Project: ta_libc/ta_libc +# Template: lib +############################################################################# + +####### Compiler, tools and options + +CC = gcc +CXX = g++ +CFLAGS = -pipe -Wall -W -g -D_REENTRANT -DTA_DEBUG -D_DEBUG -DQT_THREAD_SUPPORT +CXXFLAGS= -pipe -Wall -W -g -D_REENTRANT -DTA_DEBUG -D_DEBUG -DQT_THREAD_SUPPORT +INCPATH = -I../../../../../src/ta_common -I../../../../../include -I../../../../../src/ta_abstract -I../../../../../src/ta_abstract/tables -I../../../../../src/ta_abstract/frames -I$(QTDIR)/include +AR = ar cqs +RANLIB = +MOC = $(QTDIR)/bin/moc +UIC = $(QTDIR)/bin/uic + +TAR = tar -cf +GZIP = gzip -9f + +####### Support for 64-bit systems +ifeq ($(shell uname -m), x86_64) + CFLAGS += -march=x86-64 -m64 -D__64BIT__ + CXXFLAGS += -march=x86-64 -m64 -D__64BIT__ +endif + +####### Apply additional overruling user flags, if any +CFLAGS += $(CUSERFLAGS) +CXXFLAGS += $(CUSERFLAGS) + +####### Files + +HEADERS = +SOURCES = ../../../../../src/ta_common/ta_global.c \ + ../../../../../src/ta_common/ta_retcode.c \ + ../../../../../src/ta_common/ta_version.c \ + ../../../../../src/ta_abstract/ta_abstract.c \ + ../../../../../src/ta_abstract/ta_def_ui.c \ + ../../../../../src/ta_abstract/ta_func_api.c \ + ../../../../../src/ta_abstract/ta_group_idx.c \ + ../../../../../src/ta_abstract/frames/ta_frame.c \ + ../../../../../src/ta_abstract/tables/table_a.c \ + ../../../../../src/ta_abstract/tables/table_b.c \ + ../../../../../src/ta_abstract/tables/table_c.c \ + ../../../../../src/ta_abstract/tables/table_d.c \ + ../../../../../src/ta_abstract/tables/table_e.c \ + ../../../../../src/ta_abstract/tables/table_f.c \ + ../../../../../src/ta_abstract/tables/table_g.c \ + ../../../../../src/ta_abstract/tables/table_h.c \ + ../../../../../src/ta_abstract/tables/table_i.c \ + ../../../../../src/ta_abstract/tables/table_j.c \ + ../../../../../src/ta_abstract/tables/table_k.c \ + ../../../../../src/ta_abstract/tables/table_l.c \ + ../../../../../src/ta_abstract/tables/table_m.c \ + ../../../../../src/ta_abstract/tables/table_n.c \ + ../../../../../src/ta_abstract/tables/table_o.c \ + ../../../../../src/ta_abstract/tables/table_p.c \ + ../../../../../src/ta_abstract/tables/table_q.c \ + ../../../../../src/ta_abstract/tables/table_r.c \ + ../../../../../src/ta_abstract/tables/table_s.c \ + ../../../../../src/ta_abstract/tables/table_t.c \ + ../../../../../src/ta_abstract/tables/table_u.c \ + ../../../../../src/ta_abstract/tables/table_v.c \ + ../../../../../src/ta_abstract/tables/table_w.c \ + ../../../../../src/ta_abstract/tables/table_x.c \ + ../../../../../src/ta_abstract/tables/table_y.c \ + ../../../../../src/ta_abstract/tables/table_z.c \ + ../../../../../src/ta_func/ta_utility.c \ + ../../../../../src/ta_func/ta_ACOS.c \ + ../../../../../src/ta_func/ta_AD.c \ + ../../../../../src/ta_func/ta_ADD.c \ + ../../../../../src/ta_func/ta_ADOSC.c \ + ../../../../../src/ta_func/ta_ADX.c \ + ../../../../../src/ta_func/ta_ADXR.c \ + ../../../../../src/ta_func/ta_APO.c \ + ../../../../../src/ta_func/ta_AROON.c \ + ../../../../../src/ta_func/ta_AROONOSC.c \ + ../../../../../src/ta_func/ta_ASIN.c \ + ../../../../../src/ta_func/ta_ATAN.c \ + ../../../../../src/ta_func/ta_ATR.c \ + ../../../../../src/ta_func/ta_AVGPRICE.c \ + ../../../../../src/ta_func/ta_BBANDS.c \ + ../../../../../src/ta_func/ta_BETA.c \ + ../../../../../src/ta_func/ta_BOP.c \ + ../../../../../src/ta_func/ta_CCI.c \ + ../../../../../src/ta_func/ta_CDL2CROWS.c \ + ../../../../../src/ta_func/ta_CDL3BLACKCROWS.c \ + ../../../../../src/ta_func/ta_CDL3INSIDE.c \ + ../../../../../src/ta_func/ta_CDL3LINESTRIKE.c \ + ../../../../../src/ta_func/ta_CDL3OUTSIDE.c \ + ../../../../../src/ta_func/ta_CDL3STARSINSOUTH.c \ + ../../../../../src/ta_func/ta_CDL3WHITESOLDIERS.c \ + ../../../../../src/ta_func/ta_CDLABANDONEDBABY.c \ + ../../../../../src/ta_func/ta_CDLADVANCEBLOCK.c \ + ../../../../../src/ta_func/ta_CDLBELTHOLD.c \ + ../../../../../src/ta_func/ta_CDLBREAKAWAY.c \ + ../../../../../src/ta_func/ta_CDLCLOSINGMARUBOZU.c \ + ../../../../../src/ta_func/ta_CDLCONCEALBABYSWALL.c \ + ../../../../../src/ta_func/ta_CDLCOUNTERATTACK.c \ + ../../../../../src/ta_func/ta_CDLDARKCLOUDCOVER.c \ + ../../../../../src/ta_func/ta_CDLDOJI.c \ + ../../../../../src/ta_func/ta_CDLDOJISTAR.c \ + ../../../../../src/ta_func/ta_CDLDRAGONFLYDOJI.c \ + ../../../../../src/ta_func/ta_CDLENGULFING.c \ + ../../../../../src/ta_func/ta_CDLEVENINGDOJISTAR.c \ + ../../../../../src/ta_func/ta_CDLEVENINGSTAR.c \ + ../../../../../src/ta_func/ta_CDLGAPSIDESIDEWHITE.c \ + ../../../../../src/ta_func/ta_CDLGRAVESTONEDOJI.c \ + ../../../../../src/ta_func/ta_CDLHAMMER.c \ + ../../../../../src/ta_func/ta_CDLHANGINGMAN.c \ + ../../../../../src/ta_func/ta_CDLHARAMI.c \ + ../../../../../src/ta_func/ta_CDLHARAMICROSS.c \ + ../../../../../src/ta_func/ta_CDLHIGHWAVE.c \ + ../../../../../src/ta_func/ta_CDLHIKKAKE.c \ + ../../../../../src/ta_func/ta_CDLHIKKAKEMOD.c \ + ../../../../../src/ta_func/ta_CDLHOMINGPIGEON.c \ + ../../../../../src/ta_func/ta_CDLIDENTICAL3CROWS.c \ + ../../../../../src/ta_func/ta_CDLINNECK.c \ + ../../../../../src/ta_func/ta_CDLINVERTEDHAMMER.c \ + ../../../../../src/ta_func/ta_CDLKICKING.c \ + ../../../../../src/ta_func/ta_CDLKICKINGBYLENGTH.c \ + ../../../../../src/ta_func/ta_CDLLADDERBOTTOM.c \ + ../../../../../src/ta_func/ta_CDLLONGLEGGEDDOJI.c \ + ../../../../../src/ta_func/ta_CDLLONGLINE.c \ + ../../../../../src/ta_func/ta_CDLMARUBOZU.c \ + ../../../../../src/ta_func/ta_CDLMATCHINGLOW.c \ + ../../../../../src/ta_func/ta_CDLMATHOLD.c \ + ../../../../../src/ta_func/ta_CDLMORNINGDOJISTAR.c \ + ../../../../../src/ta_func/ta_CDLMORNINGSTAR.c \ + ../../../../../src/ta_func/ta_CDLONNECK.c \ + ../../../../../src/ta_func/ta_CDLPIERCING.c \ + ../../../../../src/ta_func/ta_CDLRICKSHAWMAN.c \ + ../../../../../src/ta_func/ta_CDLRISEFALL3METHODS.c \ + ../../../../../src/ta_func/ta_CDLSEPARATINGLINES.c \ + ../../../../../src/ta_func/ta_CDLSHOOTINGSTAR.c \ + ../../../../../src/ta_func/ta_CDLSHORTLINE.c \ + ../../../../../src/ta_func/ta_CDLSPINNINGTOP.c \ + ../../../../../src/ta_func/ta_CDLSTALLEDPATTERN.c \ + ../../../../../src/ta_func/ta_CDLSTICKSANDWICH.c \ + ../../../../../src/ta_func/ta_CDLTAKURI.c \ + ../../../../../src/ta_func/ta_CDLTASUKIGAP.c \ + ../../../../../src/ta_func/ta_CDLTHRUSTING.c \ + ../../../../../src/ta_func/ta_CDLTRISTAR.c \ + ../../../../../src/ta_func/ta_CDLUNIQUE3RIVER.c \ + ../../../../../src/ta_func/ta_CDLUPSIDEGAP2CROWS.c \ + ../../../../../src/ta_func/ta_CDLXSIDEGAP3METHODS.c \ + ../../../../../src/ta_func/ta_CEIL.c \ + ../../../../../src/ta_func/ta_CMO.c \ + ../../../../../src/ta_func/ta_CORREL.c \ + ../../../../../src/ta_func/ta_COS.c \ + ../../../../../src/ta_func/ta_COSH.c \ + ../../../../../src/ta_func/ta_DEMA.c \ + ../../../../../src/ta_func/ta_DIV.c \ + ../../../../../src/ta_func/ta_DX.c \ + ../../../../../src/ta_func/ta_EMA.c \ + ../../../../../src/ta_func/ta_EXP.c \ + ../../../../../src/ta_func/ta_FLOOR.c \ + ../../../../../src/ta_func/ta_HT_DCPERIOD.c \ + ../../../../../src/ta_func/ta_HT_DCPHASE.c \ + ../../../../../src/ta_func/ta_HT_PHASOR.c \ + ../../../../../src/ta_func/ta_HT_SINE.c \ + ../../../../../src/ta_func/ta_HT_TRENDLINE.c \ + ../../../../../src/ta_func/ta_HT_TRENDMODE.c \ + ../../../../../src/ta_func/ta_KAMA.c \ + ../../../../../src/ta_func/ta_LINEARREG.c \ + ../../../../../src/ta_func/ta_LINEARREG_ANGLE.c \ + ../../../../../src/ta_func/ta_LINEARREG_INTERCEPT.c \ + ../../../../../src/ta_func/ta_LINEARREG_SLOPE.c \ + ../../../../../src/ta_func/ta_LN.c \ + ../../../../../src/ta_func/ta_LOG10.c \ + ../../../../../src/ta_func/ta_MA.c \ + ../../../../../src/ta_func/ta_MACD.c \ + ../../../../../src/ta_func/ta_MACDEXT.c \ + ../../../../../src/ta_func/ta_MACDFIX.c \ + ../../../../../src/ta_func/ta_MAMA.c \ + ../../../../../src/ta_func/ta_MAVP.c \ + ../../../../../src/ta_func/ta_MAX.c \ + ../../../../../src/ta_func/ta_MAXINDEX.c \ + ../../../../../src/ta_func/ta_MEDPRICE.c \ + ../../../../../src/ta_func/ta_MFI.c \ + ../../../../../src/ta_func/ta_MIDPOINT.c \ + ../../../../../src/ta_func/ta_MIDPRICE.c \ + ../../../../../src/ta_func/ta_MIN.c \ + ../../../../../src/ta_func/ta_MININDEX.c \ + ../../../../../src/ta_func/ta_MINMAX.c \ + ../../../../../src/ta_func/ta_MINMAXINDEX.c \ + ../../../../../src/ta_func/ta_MINUS_DI.c \ + ../../../../../src/ta_func/ta_MINUS_DM.c \ + ../../../../../src/ta_func/ta_MOM.c \ + ../../../../../src/ta_func/ta_MULT.c \ + ../../../../../src/ta_func/ta_NATR.c \ + ../../../../../src/ta_func/ta_OBV.c \ + ../../../../../src/ta_func/ta_PLUS_DI.c \ + ../../../../../src/ta_func/ta_PLUS_DM.c \ + ../../../../../src/ta_func/ta_PPO.c \ + ../../../../../src/ta_func/ta_ROC.c \ + ../../../../../src/ta_func/ta_ROCP.c \ + ../../../../../src/ta_func/ta_ROCR.c \ + ../../../../../src/ta_func/ta_ROCR100.c \ + ../../../../../src/ta_func/ta_RSI.c \ + ../../../../../src/ta_func/ta_SAR.c \ + ../../../../../src/ta_func/ta_SAREXT.c \ + ../../../../../src/ta_func/ta_SIN.c \ + ../../../../../src/ta_func/ta_SINH.c \ + ../../../../../src/ta_func/ta_SMA.c \ + ../../../../../src/ta_func/ta_SQRT.c \ + ../../../../../src/ta_func/ta_STDDEV.c \ + ../../../../../src/ta_func/ta_STOCH.c \ + ../../../../../src/ta_func/ta_STOCHF.c \ + ../../../../../src/ta_func/ta_STOCHRSI.c \ + ../../../../../src/ta_func/ta_SUB.c \ + ../../../../../src/ta_func/ta_SUM.c \ + ../../../../../src/ta_func/ta_T3.c \ + ../../../../../src/ta_func/ta_TAN.c \ + ../../../../../src/ta_func/ta_TANH.c \ + ../../../../../src/ta_func/ta_TEMA.c \ + ../../../../../src/ta_func/ta_TRANGE.c \ + ../../../../../src/ta_func/ta_TRIMA.c \ + ../../../../../src/ta_func/ta_TRIX.c \ + ../../../../../src/ta_func/ta_TSF.c \ + ../../../../../src/ta_func/ta_TYPPRICE.c \ + ../../../../../src/ta_func/ta_ULTOSC.c \ + ../../../../../src/ta_func/ta_VAR.c \ + ../../../../../src/ta_func/ta_WCLPRICE.c \ + ../../../../../src/ta_func/ta_WILLR.c \ + ../../../../../src/ta_func/ta_WMA.c +OBJECTS = ../../../../../temp/cmd/ta_global.o \ + ../../../../../temp/cmd/ta_retcode.o \ + ../../../../../temp/cmd/ta_version.o \ + ../../../../../temp/cmd/ta_abstract.o \ + ../../../../../temp/cmd/ta_def_ui.o \ + ../../../../../temp/cmd/ta_func_api.o \ + ../../../../../temp/cmd/ta_group_idx.o \ + ../../../../../temp/cmd/ta_frame.o \ + ../../../../../temp/cmd/table_a.o \ + ../../../../../temp/cmd/table_b.o \ + ../../../../../temp/cmd/table_c.o \ + ../../../../../temp/cmd/table_d.o \ + ../../../../../temp/cmd/table_e.o \ + ../../../../../temp/cmd/table_f.o \ + ../../../../../temp/cmd/table_g.o \ + ../../../../../temp/cmd/table_h.o \ + ../../../../../temp/cmd/table_i.o \ + ../../../../../temp/cmd/table_j.o \ + ../../../../../temp/cmd/table_k.o \ + ../../../../../temp/cmd/table_l.o \ + ../../../../../temp/cmd/table_m.o \ + ../../../../../temp/cmd/table_n.o \ + ../../../../../temp/cmd/table_o.o \ + ../../../../../temp/cmd/table_p.o \ + ../../../../../temp/cmd/table_q.o \ + ../../../../../temp/cmd/table_r.o \ + ../../../../../temp/cmd/table_s.o \ + ../../../../../temp/cmd/table_t.o \ + ../../../../../temp/cmd/table_u.o \ + ../../../../../temp/cmd/table_v.o \ + ../../../../../temp/cmd/table_w.o \ + ../../../../../temp/cmd/table_x.o \ + ../../../../../temp/cmd/table_y.o \ + ../../../../../temp/cmd/table_z.o \ + ../../../../../temp/cmd/ta_utility.o \ + ../../../../../temp/cmd/ta_ACOS.o \ + ../../../../../temp/cmd/ta_AD.o \ + ../../../../../temp/cmd/ta_ADD.o \ + ../../../../../temp/cmd/ta_ADOSC.o \ + ../../../../../temp/cmd/ta_ADX.o \ + ../../../../../temp/cmd/ta_ADXR.o \ + ../../../../../temp/cmd/ta_APO.o \ + ../../../../../temp/cmd/ta_AROON.o \ + ../../../../../temp/cmd/ta_AROONOSC.o \ + ../../../../../temp/cmd/ta_ASIN.o \ + ../../../../../temp/cmd/ta_ATAN.o \ + ../../../../../temp/cmd/ta_ATR.o \ + ../../../../../temp/cmd/ta_AVGPRICE.o \ + ../../../../../temp/cmd/ta_BBANDS.o \ + ../../../../../temp/cmd/ta_BETA.o \ + ../../../../../temp/cmd/ta_BOP.o \ + ../../../../../temp/cmd/ta_CCI.o \ + ../../../../../temp/cmd/ta_CDL2CROWS.o \ + ../../../../../temp/cmd/ta_CDL3BLACKCROWS.o \ + ../../../../../temp/cmd/ta_CDL3INSIDE.o \ + ../../../../../temp/cmd/ta_CDL3LINESTRIKE.o \ + ../../../../../temp/cmd/ta_CDL3OUTSIDE.o \ + ../../../../../temp/cmd/ta_CDL3STARSINSOUTH.o \ + ../../../../../temp/cmd/ta_CDL3WHITESOLDIERS.o \ + ../../../../../temp/cmd/ta_CDLABANDONEDBABY.o \ + ../../../../../temp/cmd/ta_CDLADVANCEBLOCK.o \ + ../../../../../temp/cmd/ta_CDLBELTHOLD.o \ + ../../../../../temp/cmd/ta_CDLBREAKAWAY.o \ + ../../../../../temp/cmd/ta_CDLCLOSINGMARUBOZU.o \ + ../../../../../temp/cmd/ta_CDLCONCEALBABYSWALL.o \ + ../../../../../temp/cmd/ta_CDLCOUNTERATTACK.o \ + ../../../../../temp/cmd/ta_CDLDARKCLOUDCOVER.o \ + ../../../../../temp/cmd/ta_CDLDOJI.o \ + ../../../../../temp/cmd/ta_CDLDOJISTAR.o \ + ../../../../../temp/cmd/ta_CDLDRAGONFLYDOJI.o \ + ../../../../../temp/cmd/ta_CDLENGULFING.o \ + ../../../../../temp/cmd/ta_CDLEVENINGDOJISTAR.o \ + ../../../../../temp/cmd/ta_CDLEVENINGSTAR.o \ + ../../../../../temp/cmd/ta_CDLGAPSIDESIDEWHITE.o \ + ../../../../../temp/cmd/ta_CDLGRAVESTONEDOJI.o \ + ../../../../../temp/cmd/ta_CDLHAMMER.o \ + ../../../../../temp/cmd/ta_CDLHANGINGMAN.o \ + ../../../../../temp/cmd/ta_CDLHARAMI.o \ + ../../../../../temp/cmd/ta_CDLHARAMICROSS.o \ + ../../../../../temp/cmd/ta_CDLHIGHWAVE.o \ + ../../../../../temp/cmd/ta_CDLHIKKAKE.o \ + ../../../../../temp/cmd/ta_CDLHIKKAKEMOD.o \ + ../../../../../temp/cmd/ta_CDLHOMINGPIGEON.o \ + ../../../../../temp/cmd/ta_CDLIDENTICAL3CROWS.o \ + ../../../../../temp/cmd/ta_CDLINNECK.o \ + ../../../../../temp/cmd/ta_CDLINVERTEDHAMMER.o \ + ../../../../../temp/cmd/ta_CDLKICKING.o \ + ../../../../../temp/cmd/ta_CDLKICKINGBYLENGTH.o \ + ../../../../../temp/cmd/ta_CDLLADDERBOTTOM.o \ + ../../../../../temp/cmd/ta_CDLLONGLEGGEDDOJI.o \ + ../../../../../temp/cmd/ta_CDLLONGLINE.o \ + ../../../../../temp/cmd/ta_CDLMARUBOZU.o \ + ../../../../../temp/cmd/ta_CDLMATCHINGLOW.o \ + ../../../../../temp/cmd/ta_CDLMATHOLD.o \ + ../../../../../temp/cmd/ta_CDLMORNINGDOJISTAR.o \ + ../../../../../temp/cmd/ta_CDLMORNINGSTAR.o \ + ../../../../../temp/cmd/ta_CDLONNECK.o \ + ../../../../../temp/cmd/ta_CDLPIERCING.o \ + ../../../../../temp/cmd/ta_CDLRICKSHAWMAN.o \ + ../../../../../temp/cmd/ta_CDLRISEFALL3METHODS.o \ + ../../../../../temp/cmd/ta_CDLSEPARATINGLINES.o \ + ../../../../../temp/cmd/ta_CDLSHOOTINGSTAR.o \ + ../../../../../temp/cmd/ta_CDLSHORTLINE.o \ + ../../../../../temp/cmd/ta_CDLSPINNINGTOP.o \ + ../../../../../temp/cmd/ta_CDLSTALLEDPATTERN.o \ + ../../../../../temp/cmd/ta_CDLSTICKSANDWICH.o \ + ../../../../../temp/cmd/ta_CDLTAKURI.o \ + ../../../../../temp/cmd/ta_CDLTASUKIGAP.o \ + ../../../../../temp/cmd/ta_CDLTHRUSTING.o \ + ../../../../../temp/cmd/ta_CDLTRISTAR.o \ + ../../../../../temp/cmd/ta_CDLUNIQUE3RIVER.o \ + ../../../../../temp/cmd/ta_CDLUPSIDEGAP2CROWS.o \ + ../../../../../temp/cmd/ta_CDLXSIDEGAP3METHODS.o \ + ../../../../../temp/cmd/ta_CEIL.o \ + ../../../../../temp/cmd/ta_CMO.o \ + ../../../../../temp/cmd/ta_CORREL.o \ + ../../../../../temp/cmd/ta_COS.o \ + ../../../../../temp/cmd/ta_COSH.o \ + ../../../../../temp/cmd/ta_DEMA.o \ + ../../../../../temp/cmd/ta_DIV.o \ + ../../../../../temp/cmd/ta_DX.o \ + ../../../../../temp/cmd/ta_EMA.o \ + ../../../../../temp/cmd/ta_EXP.o \ + ../../../../../temp/cmd/ta_FLOOR.o \ + ../../../../../temp/cmd/ta_HT_DCPERIOD.o \ + ../../../../../temp/cmd/ta_HT_DCPHASE.o \ + ../../../../../temp/cmd/ta_HT_PHASOR.o \ + ../../../../../temp/cmd/ta_HT_SINE.o \ + ../../../../../temp/cmd/ta_HT_TRENDLINE.o \ + ../../../../../temp/cmd/ta_HT_TRENDMODE.o \ + ../../../../../temp/cmd/ta_KAMA.o \ + ../../../../../temp/cmd/ta_LINEARREG.o \ + ../../../../../temp/cmd/ta_LINEARREG_ANGLE.o \ + ../../../../../temp/cmd/ta_LINEARREG_INTERCEPT.o \ + ../../../../../temp/cmd/ta_LINEARREG_SLOPE.o \ + ../../../../../temp/cmd/ta_LN.o \ + ../../../../../temp/cmd/ta_LOG10.o \ + ../../../../../temp/cmd/ta_MA.o \ + ../../../../../temp/cmd/ta_MACD.o \ + ../../../../../temp/cmd/ta_MACDEXT.o \ + ../../../../../temp/cmd/ta_MACDFIX.o \ + ../../../../../temp/cmd/ta_MAMA.o \ + ../../../../../temp/cmd/ta_MAVP.o \ + ../../../../../temp/cmd/ta_MAX.o \ + ../../../../../temp/cmd/ta_MAXINDEX.o \ + ../../../../../temp/cmd/ta_MEDPRICE.o \ + ../../../../../temp/cmd/ta_MFI.o \ + ../../../../../temp/cmd/ta_MIDPOINT.o \ + ../../../../../temp/cmd/ta_MIDPRICE.o \ + ../../../../../temp/cmd/ta_MIN.o \ + ../../../../../temp/cmd/ta_MININDEX.o \ + ../../../../../temp/cmd/ta_MINMAX.o \ + ../../../../../temp/cmd/ta_MINMAXINDEX.o \ + ../../../../../temp/cmd/ta_MINUS_DI.o \ + ../../../../../temp/cmd/ta_MINUS_DM.o \ + ../../../../../temp/cmd/ta_MOM.o \ + ../../../../../temp/cmd/ta_MULT.o \ + ../../../../../temp/cmd/ta_NATR.o \ + ../../../../../temp/cmd/ta_OBV.o \ + ../../../../../temp/cmd/ta_PLUS_DI.o \ + ../../../../../temp/cmd/ta_PLUS_DM.o \ + ../../../../../temp/cmd/ta_PPO.o \ + ../../../../../temp/cmd/ta_ROC.o \ + ../../../../../temp/cmd/ta_ROCP.o \ + ../../../../../temp/cmd/ta_ROCR.o \ + ../../../../../temp/cmd/ta_ROCR100.o \ + ../../../../../temp/cmd/ta_RSI.o \ + ../../../../../temp/cmd/ta_SAR.o \ + ../../../../../temp/cmd/ta_SAREXT.o \ + ../../../../../temp/cmd/ta_SIN.o \ + ../../../../../temp/cmd/ta_SINH.o \ + ../../../../../temp/cmd/ta_SMA.o \ + ../../../../../temp/cmd/ta_SQRT.o \ + ../../../../../temp/cmd/ta_STDDEV.o \ + ../../../../../temp/cmd/ta_STOCH.o \ + ../../../../../temp/cmd/ta_STOCHF.o \ + ../../../../../temp/cmd/ta_STOCHRSI.o \ + ../../../../../temp/cmd/ta_SUB.o \ + ../../../../../temp/cmd/ta_SUM.o \ + ../../../../../temp/cmd/ta_T3.o \ + ../../../../../temp/cmd/ta_TAN.o \ + ../../../../../temp/cmd/ta_TANH.o \ + ../../../../../temp/cmd/ta_TEMA.o \ + ../../../../../temp/cmd/ta_TRANGE.o \ + ../../../../../temp/cmd/ta_TRIMA.o \ + ../../../../../temp/cmd/ta_TRIX.o \ + ../../../../../temp/cmd/ta_TSF.o \ + ../../../../../temp/cmd/ta_TYPPRICE.o \ + ../../../../../temp/cmd/ta_ULTOSC.o \ + ../../../../../temp/cmd/ta_VAR.o \ + ../../../../../temp/cmd/ta_WCLPRICE.o \ + ../../../../../temp/cmd/ta_WILLR.o \ + ../../../../../temp/cmd/ta_WMA.o +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ../../../../../lib/libta_libc_cmd.a +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .C .c + +.cpp.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cxx.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cc.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.C.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.c.o: + $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $< + +####### Build rules + + +all: $(TARGET) + +staticlib: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + -rm -f $(TARGET) + $(AR) $(TARGET) $(OBJECTS) $(OBJMOC) + +moc: $(SRCMOC) + +clean: + -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) + -rm -f *~ core + +####### Sub-libraries + + +###### Combined headers + + +####### Compile + +../../../../../temp/cmd/ta_global.o: ../../../../../src/ta_common/ta_global.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_global.o ../../../../../src/ta_common/ta_global.c + +../../../../../temp/cmd/ta_retcode.o: ../../../../../src/ta_common/ta_retcode.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_retcode.o ../../../../../src/ta_common/ta_retcode.c + +../../../../../temp/cmd/ta_version.o: ../../../../../src/ta_common/ta_version.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_version.o ../../../../../src/ta_common/ta_version.c + +../../../../../temp/cmd/ta_abstract.o: ../../../../../src/ta_abstract/ta_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_abstract.o ../../../../../src/ta_abstract/ta_abstract.c + +../../../../../temp/cmd/ta_def_ui.o: ../../../../../src/ta_abstract/ta_def_ui.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_def_ui.o ../../../../../src/ta_abstract/ta_def_ui.c + +../../../../../temp/cmd/ta_func_api.o: ../../../../../src/ta_abstract/ta_func_api.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_func_api.o ../../../../../src/ta_abstract/ta_func_api.c + +../../../../../temp/cmd/ta_group_idx.o: ../../../../../src/ta_abstract/ta_group_idx.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_group_idx.o ../../../../../src/ta_abstract/ta_group_idx.c + +../../../../../temp/cmd/ta_frame.o: ../../../../../src/ta_abstract/frames/ta_frame.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_frame.o ../../../../../src/ta_abstract/frames/ta_frame.c + +../../../../../temp/cmd/table_a.o: ../../../../../src/ta_abstract/tables/table_a.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_a.o ../../../../../src/ta_abstract/tables/table_a.c + +../../../../../temp/cmd/table_b.o: ../../../../../src/ta_abstract/tables/table_b.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_b.o ../../../../../src/ta_abstract/tables/table_b.c + +../../../../../temp/cmd/table_c.o: ../../../../../src/ta_abstract/tables/table_c.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_c.o ../../../../../src/ta_abstract/tables/table_c.c + +../../../../../temp/cmd/table_d.o: ../../../../../src/ta_abstract/tables/table_d.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_d.o ../../../../../src/ta_abstract/tables/table_d.c + +../../../../../temp/cmd/table_e.o: ../../../../../src/ta_abstract/tables/table_e.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_e.o ../../../../../src/ta_abstract/tables/table_e.c + +../../../../../temp/cmd/table_f.o: ../../../../../src/ta_abstract/tables/table_f.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_f.o ../../../../../src/ta_abstract/tables/table_f.c + +../../../../../temp/cmd/table_g.o: ../../../../../src/ta_abstract/tables/table_g.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_g.o ../../../../../src/ta_abstract/tables/table_g.c + +../../../../../temp/cmd/table_h.o: ../../../../../src/ta_abstract/tables/table_h.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_h.o ../../../../../src/ta_abstract/tables/table_h.c + +../../../../../temp/cmd/table_i.o: ../../../../../src/ta_abstract/tables/table_i.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_i.o ../../../../../src/ta_abstract/tables/table_i.c + +../../../../../temp/cmd/table_j.o: ../../../../../src/ta_abstract/tables/table_j.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_j.o ../../../../../src/ta_abstract/tables/table_j.c + +../../../../../temp/cmd/table_k.o: ../../../../../src/ta_abstract/tables/table_k.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_k.o ../../../../../src/ta_abstract/tables/table_k.c + +../../../../../temp/cmd/table_l.o: ../../../../../src/ta_abstract/tables/table_l.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_l.o ../../../../../src/ta_abstract/tables/table_l.c + +../../../../../temp/cmd/table_m.o: ../../../../../src/ta_abstract/tables/table_m.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_m.o ../../../../../src/ta_abstract/tables/table_m.c + +../../../../../temp/cmd/table_n.o: ../../../../../src/ta_abstract/tables/table_n.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_n.o ../../../../../src/ta_abstract/tables/table_n.c + +../../../../../temp/cmd/table_o.o: ../../../../../src/ta_abstract/tables/table_o.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_o.o ../../../../../src/ta_abstract/tables/table_o.c + +../../../../../temp/cmd/table_p.o: ../../../../../src/ta_abstract/tables/table_p.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_p.o ../../../../../src/ta_abstract/tables/table_p.c + +../../../../../temp/cmd/table_q.o: ../../../../../src/ta_abstract/tables/table_q.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_q.o ../../../../../src/ta_abstract/tables/table_q.c + +../../../../../temp/cmd/table_r.o: ../../../../../src/ta_abstract/tables/table_r.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_r.o ../../../../../src/ta_abstract/tables/table_r.c + +../../../../../temp/cmd/table_s.o: ../../../../../src/ta_abstract/tables/table_s.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_s.o ../../../../../src/ta_abstract/tables/table_s.c + +../../../../../temp/cmd/table_t.o: ../../../../../src/ta_abstract/tables/table_t.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_t.o ../../../../../src/ta_abstract/tables/table_t.c + +../../../../../temp/cmd/table_u.o: ../../../../../src/ta_abstract/tables/table_u.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_u.o ../../../../../src/ta_abstract/tables/table_u.c + +../../../../../temp/cmd/table_v.o: ../../../../../src/ta_abstract/tables/table_v.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_v.o ../../../../../src/ta_abstract/tables/table_v.c + +../../../../../temp/cmd/table_w.o: ../../../../../src/ta_abstract/tables/table_w.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_w.o ../../../../../src/ta_abstract/tables/table_w.c + +../../../../../temp/cmd/table_x.o: ../../../../../src/ta_abstract/tables/table_x.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_x.o ../../../../../src/ta_abstract/tables/table_x.c + +../../../../../temp/cmd/table_y.o: ../../../../../src/ta_abstract/tables/table_y.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_y.o ../../../../../src/ta_abstract/tables/table_y.c + +../../../../../temp/cmd/table_z.o: ../../../../../src/ta_abstract/tables/table_z.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_z.o ../../../../../src/ta_abstract/tables/table_z.c + +../../../../../temp/cmd/ta_utility.o: ../../../../../src/ta_func/ta_utility.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_utility.o ../../../../../src/ta_func/ta_utility.c + +../../../../../temp/cmd/ta_ACOS.o: ../../../../../src/ta_func/ta_ACOS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_ACOS.o ../../../../../src/ta_func/ta_ACOS.c + +../../../../../temp/cmd/ta_AD.o: ../../../../../src/ta_func/ta_AD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_AD.o ../../../../../src/ta_func/ta_AD.c + +../../../../../temp/cmd/ta_ADD.o: ../../../../../src/ta_func/ta_ADD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_ADD.o ../../../../../src/ta_func/ta_ADD.c + +../../../../../temp/cmd/ta_ADOSC.o: ../../../../../src/ta_func/ta_ADOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_ADOSC.o ../../../../../src/ta_func/ta_ADOSC.c + +../../../../../temp/cmd/ta_ADX.o: ../../../../../src/ta_func/ta_ADX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_ADX.o ../../../../../src/ta_func/ta_ADX.c + +../../../../../temp/cmd/ta_ADXR.o: ../../../../../src/ta_func/ta_ADXR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_ADXR.o ../../../../../src/ta_func/ta_ADXR.c + +../../../../../temp/cmd/ta_APO.o: ../../../../../src/ta_func/ta_APO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_APO.o ../../../../../src/ta_func/ta_APO.c + +../../../../../temp/cmd/ta_AROON.o: ../../../../../src/ta_func/ta_AROON.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_AROON.o ../../../../../src/ta_func/ta_AROON.c + +../../../../../temp/cmd/ta_AROONOSC.o: ../../../../../src/ta_func/ta_AROONOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_AROONOSC.o ../../../../../src/ta_func/ta_AROONOSC.c + +../../../../../temp/cmd/ta_ASIN.o: ../../../../../src/ta_func/ta_ASIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_ASIN.o ../../../../../src/ta_func/ta_ASIN.c + +../../../../../temp/cmd/ta_ATAN.o: ../../../../../src/ta_func/ta_ATAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_ATAN.o ../../../../../src/ta_func/ta_ATAN.c + +../../../../../temp/cmd/ta_ATR.o: ../../../../../src/ta_func/ta_ATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_ATR.o ../../../../../src/ta_func/ta_ATR.c + +../../../../../temp/cmd/ta_AVGPRICE.o: ../../../../../src/ta_func/ta_AVGPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_AVGPRICE.o ../../../../../src/ta_func/ta_AVGPRICE.c + +../../../../../temp/cmd/ta_BBANDS.o: ../../../../../src/ta_func/ta_BBANDS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_BBANDS.o ../../../../../src/ta_func/ta_BBANDS.c + +../../../../../temp/cmd/ta_BETA.o: ../../../../../src/ta_func/ta_BETA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_BETA.o ../../../../../src/ta_func/ta_BETA.c + +../../../../../temp/cmd/ta_BOP.o: ../../../../../src/ta_func/ta_BOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_BOP.o ../../../../../src/ta_func/ta_BOP.c + +../../../../../temp/cmd/ta_CCI.o: ../../../../../src/ta_func/ta_CCI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CCI.o ../../../../../src/ta_func/ta_CCI.c + +../../../../../temp/cmd/ta_CDL2CROWS.o: ../../../../../src/ta_func/ta_CDL2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDL2CROWS.o ../../../../../src/ta_func/ta_CDL2CROWS.c + +../../../../../temp/cmd/ta_CDL3BLACKCROWS.o: ../../../../../src/ta_func/ta_CDL3BLACKCROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDL3BLACKCROWS.o ../../../../../src/ta_func/ta_CDL3BLACKCROWS.c + +../../../../../temp/cmd/ta_CDL3INSIDE.o: ../../../../../src/ta_func/ta_CDL3INSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDL3INSIDE.o ../../../../../src/ta_func/ta_CDL3INSIDE.c + +../../../../../temp/cmd/ta_CDL3LINESTRIKE.o: ../../../../../src/ta_func/ta_CDL3LINESTRIKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDL3LINESTRIKE.o ../../../../../src/ta_func/ta_CDL3LINESTRIKE.c + +../../../../../temp/cmd/ta_CDL3OUTSIDE.o: ../../../../../src/ta_func/ta_CDL3OUTSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDL3OUTSIDE.o ../../../../../src/ta_func/ta_CDL3OUTSIDE.c + +../../../../../temp/cmd/ta_CDL3STARSINSOUTH.o: ../../../../../src/ta_func/ta_CDL3STARSINSOUTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDL3STARSINSOUTH.o ../../../../../src/ta_func/ta_CDL3STARSINSOUTH.c + +../../../../../temp/cmd/ta_CDL3WHITESOLDIERS.o: ../../../../../src/ta_func/ta_CDL3WHITESOLDIERS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDL3WHITESOLDIERS.o ../../../../../src/ta_func/ta_CDL3WHITESOLDIERS.c + +../../../../../temp/cmd/ta_CDLABANDONEDBABY.o: ../../../../../src/ta_func/ta_CDLABANDONEDBABY.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLABANDONEDBABY.o ../../../../../src/ta_func/ta_CDLABANDONEDBABY.c + +../../../../../temp/cmd/ta_CDLADVANCEBLOCK.o: ../../../../../src/ta_func/ta_CDLADVANCEBLOCK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLADVANCEBLOCK.o ../../../../../src/ta_func/ta_CDLADVANCEBLOCK.c + +../../../../../temp/cmd/ta_CDLBELTHOLD.o: ../../../../../src/ta_func/ta_CDLBELTHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLBELTHOLD.o ../../../../../src/ta_func/ta_CDLBELTHOLD.c + +../../../../../temp/cmd/ta_CDLBREAKAWAY.o: ../../../../../src/ta_func/ta_CDLBREAKAWAY.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLBREAKAWAY.o ../../../../../src/ta_func/ta_CDLBREAKAWAY.c + +../../../../../temp/cmd/ta_CDLCLOSINGMARUBOZU.o: ../../../../../src/ta_func/ta_CDLCLOSINGMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLCLOSINGMARUBOZU.o ../../../../../src/ta_func/ta_CDLCLOSINGMARUBOZU.c + +../../../../../temp/cmd/ta_CDLCONCEALBABYSWALL.o: ../../../../../src/ta_func/ta_CDLCONCEALBABYSWALL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLCONCEALBABYSWALL.o ../../../../../src/ta_func/ta_CDLCONCEALBABYSWALL.c + +../../../../../temp/cmd/ta_CDLCOUNTERATTACK.o: ../../../../../src/ta_func/ta_CDLCOUNTERATTACK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLCOUNTERATTACK.o ../../../../../src/ta_func/ta_CDLCOUNTERATTACK.c + +../../../../../temp/cmd/ta_CDLDARKCLOUDCOVER.o: ../../../../../src/ta_func/ta_CDLDARKCLOUDCOVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLDARKCLOUDCOVER.o ../../../../../src/ta_func/ta_CDLDARKCLOUDCOVER.c + +../../../../../temp/cmd/ta_CDLDOJI.o: ../../../../../src/ta_func/ta_CDLDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLDOJI.o ../../../../../src/ta_func/ta_CDLDOJI.c + +../../../../../temp/cmd/ta_CDLDOJISTAR.o: ../../../../../src/ta_func/ta_CDLDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLDOJISTAR.o ../../../../../src/ta_func/ta_CDLDOJISTAR.c + +../../../../../temp/cmd/ta_CDLDRAGONFLYDOJI.o: ../../../../../src/ta_func/ta_CDLDRAGONFLYDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLDRAGONFLYDOJI.o ../../../../../src/ta_func/ta_CDLDRAGONFLYDOJI.c + +../../../../../temp/cmd/ta_CDLENGULFING.o: ../../../../../src/ta_func/ta_CDLENGULFING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLENGULFING.o ../../../../../src/ta_func/ta_CDLENGULFING.c + +../../../../../temp/cmd/ta_CDLEVENINGDOJISTAR.o: ../../../../../src/ta_func/ta_CDLEVENINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLEVENINGDOJISTAR.o ../../../../../src/ta_func/ta_CDLEVENINGDOJISTAR.c + +../../../../../temp/cmd/ta_CDLEVENINGSTAR.o: ../../../../../src/ta_func/ta_CDLEVENINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLEVENINGSTAR.o ../../../../../src/ta_func/ta_CDLEVENINGSTAR.c + +../../../../../temp/cmd/ta_CDLGAPSIDESIDEWHITE.o: ../../../../../src/ta_func/ta_CDLGAPSIDESIDEWHITE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLGAPSIDESIDEWHITE.o ../../../../../src/ta_func/ta_CDLGAPSIDESIDEWHITE.c + +../../../../../temp/cmd/ta_CDLGRAVESTONEDOJI.o: ../../../../../src/ta_func/ta_CDLGRAVESTONEDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLGRAVESTONEDOJI.o ../../../../../src/ta_func/ta_CDLGRAVESTONEDOJI.c + +../../../../../temp/cmd/ta_CDLHAMMER.o: ../../../../../src/ta_func/ta_CDLHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLHAMMER.o ../../../../../src/ta_func/ta_CDLHAMMER.c + +../../../../../temp/cmd/ta_CDLHANGINGMAN.o: ../../../../../src/ta_func/ta_CDLHANGINGMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLHANGINGMAN.o ../../../../../src/ta_func/ta_CDLHANGINGMAN.c + +../../../../../temp/cmd/ta_CDLHARAMI.o: ../../../../../src/ta_func/ta_CDLHARAMI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLHARAMI.o ../../../../../src/ta_func/ta_CDLHARAMI.c + +../../../../../temp/cmd/ta_CDLHARAMICROSS.o: ../../../../../src/ta_func/ta_CDLHARAMICROSS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLHARAMICROSS.o ../../../../../src/ta_func/ta_CDLHARAMICROSS.c + +../../../../../temp/cmd/ta_CDLHIGHWAVE.o: ../../../../../src/ta_func/ta_CDLHIGHWAVE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLHIGHWAVE.o ../../../../../src/ta_func/ta_CDLHIGHWAVE.c + +../../../../../temp/cmd/ta_CDLHIKKAKE.o: ../../../../../src/ta_func/ta_CDLHIKKAKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLHIKKAKE.o ../../../../../src/ta_func/ta_CDLHIKKAKE.c + +../../../../../temp/cmd/ta_CDLHIKKAKEMOD.o: ../../../../../src/ta_func/ta_CDLHIKKAKEMOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLHIKKAKEMOD.o ../../../../../src/ta_func/ta_CDLHIKKAKEMOD.c + +../../../../../temp/cmd/ta_CDLHOMINGPIGEON.o: ../../../../../src/ta_func/ta_CDLHOMINGPIGEON.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLHOMINGPIGEON.o ../../../../../src/ta_func/ta_CDLHOMINGPIGEON.c + +../../../../../temp/cmd/ta_CDLIDENTICAL3CROWS.o: ../../../../../src/ta_func/ta_CDLIDENTICAL3CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLIDENTICAL3CROWS.o ../../../../../src/ta_func/ta_CDLIDENTICAL3CROWS.c + +../../../../../temp/cmd/ta_CDLINNECK.o: ../../../../../src/ta_func/ta_CDLINNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLINNECK.o ../../../../../src/ta_func/ta_CDLINNECK.c + +../../../../../temp/cmd/ta_CDLINVERTEDHAMMER.o: ../../../../../src/ta_func/ta_CDLINVERTEDHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLINVERTEDHAMMER.o ../../../../../src/ta_func/ta_CDLINVERTEDHAMMER.c + +../../../../../temp/cmd/ta_CDLKICKING.o: ../../../../../src/ta_func/ta_CDLKICKING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLKICKING.o ../../../../../src/ta_func/ta_CDLKICKING.c + +../../../../../temp/cmd/ta_CDLKICKINGBYLENGTH.o: ../../../../../src/ta_func/ta_CDLKICKINGBYLENGTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLKICKINGBYLENGTH.o ../../../../../src/ta_func/ta_CDLKICKINGBYLENGTH.c + +../../../../../temp/cmd/ta_CDLLADDERBOTTOM.o: ../../../../../src/ta_func/ta_CDLLADDERBOTTOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLLADDERBOTTOM.o ../../../../../src/ta_func/ta_CDLLADDERBOTTOM.c + +../../../../../temp/cmd/ta_CDLLONGLEGGEDDOJI.o: ../../../../../src/ta_func/ta_CDLLONGLEGGEDDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLLONGLEGGEDDOJI.o ../../../../../src/ta_func/ta_CDLLONGLEGGEDDOJI.c + +../../../../../temp/cmd/ta_CDLLONGLINE.o: ../../../../../src/ta_func/ta_CDLLONGLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLLONGLINE.o ../../../../../src/ta_func/ta_CDLLONGLINE.c + +../../../../../temp/cmd/ta_CDLMARUBOZU.o: ../../../../../src/ta_func/ta_CDLMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLMARUBOZU.o ../../../../../src/ta_func/ta_CDLMARUBOZU.c + +../../../../../temp/cmd/ta_CDLMATCHINGLOW.o: ../../../../../src/ta_func/ta_CDLMATCHINGLOW.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLMATCHINGLOW.o ../../../../../src/ta_func/ta_CDLMATCHINGLOW.c + +../../../../../temp/cmd/ta_CDLMATHOLD.o: ../../../../../src/ta_func/ta_CDLMATHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLMATHOLD.o ../../../../../src/ta_func/ta_CDLMATHOLD.c + +../../../../../temp/cmd/ta_CDLMORNINGDOJISTAR.o: ../../../../../src/ta_func/ta_CDLMORNINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLMORNINGDOJISTAR.o ../../../../../src/ta_func/ta_CDLMORNINGDOJISTAR.c + +../../../../../temp/cmd/ta_CDLMORNINGSTAR.o: ../../../../../src/ta_func/ta_CDLMORNINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLMORNINGSTAR.o ../../../../../src/ta_func/ta_CDLMORNINGSTAR.c + +../../../../../temp/cmd/ta_CDLONNECK.o: ../../../../../src/ta_func/ta_CDLONNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLONNECK.o ../../../../../src/ta_func/ta_CDLONNECK.c + +../../../../../temp/cmd/ta_CDLPIERCING.o: ../../../../../src/ta_func/ta_CDLPIERCING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLPIERCING.o ../../../../../src/ta_func/ta_CDLPIERCING.c + +../../../../../temp/cmd/ta_CDLRICKSHAWMAN.o: ../../../../../src/ta_func/ta_CDLRICKSHAWMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLRICKSHAWMAN.o ../../../../../src/ta_func/ta_CDLRICKSHAWMAN.c + +../../../../../temp/cmd/ta_CDLRISEFALL3METHODS.o: ../../../../../src/ta_func/ta_CDLRISEFALL3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLRISEFALL3METHODS.o ../../../../../src/ta_func/ta_CDLRISEFALL3METHODS.c + +../../../../../temp/cmd/ta_CDLSEPARATINGLINES.o: ../../../../../src/ta_func/ta_CDLSEPARATINGLINES.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLSEPARATINGLINES.o ../../../../../src/ta_func/ta_CDLSEPARATINGLINES.c + +../../../../../temp/cmd/ta_CDLSHOOTINGSTAR.o: ../../../../../src/ta_func/ta_CDLSHOOTINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLSHOOTINGSTAR.o ../../../../../src/ta_func/ta_CDLSHOOTINGSTAR.c + +../../../../../temp/cmd/ta_CDLSHORTLINE.o: ../../../../../src/ta_func/ta_CDLSHORTLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLSHORTLINE.o ../../../../../src/ta_func/ta_CDLSHORTLINE.c + +../../../../../temp/cmd/ta_CDLSPINNINGTOP.o: ../../../../../src/ta_func/ta_CDLSPINNINGTOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLSPINNINGTOP.o ../../../../../src/ta_func/ta_CDLSPINNINGTOP.c + +../../../../../temp/cmd/ta_CDLSTALLEDPATTERN.o: ../../../../../src/ta_func/ta_CDLSTALLEDPATTERN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLSTALLEDPATTERN.o ../../../../../src/ta_func/ta_CDLSTALLEDPATTERN.c + +../../../../../temp/cmd/ta_CDLSTICKSANDWICH.o: ../../../../../src/ta_func/ta_CDLSTICKSANDWICH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLSTICKSANDWICH.o ../../../../../src/ta_func/ta_CDLSTICKSANDWICH.c + +../../../../../temp/cmd/ta_CDLTAKURI.o: ../../../../../src/ta_func/ta_CDLTAKURI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLTAKURI.o ../../../../../src/ta_func/ta_CDLTAKURI.c + +../../../../../temp/cmd/ta_CDLTASUKIGAP.o: ../../../../../src/ta_func/ta_CDLTASUKIGAP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLTASUKIGAP.o ../../../../../src/ta_func/ta_CDLTASUKIGAP.c + +../../../../../temp/cmd/ta_CDLTHRUSTING.o: ../../../../../src/ta_func/ta_CDLTHRUSTING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLTHRUSTING.o ../../../../../src/ta_func/ta_CDLTHRUSTING.c + +../../../../../temp/cmd/ta_CDLTRISTAR.o: ../../../../../src/ta_func/ta_CDLTRISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLTRISTAR.o ../../../../../src/ta_func/ta_CDLTRISTAR.c + +../../../../../temp/cmd/ta_CDLUNIQUE3RIVER.o: ../../../../../src/ta_func/ta_CDLUNIQUE3RIVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLUNIQUE3RIVER.o ../../../../../src/ta_func/ta_CDLUNIQUE3RIVER.c + +../../../../../temp/cmd/ta_CDLUPSIDEGAP2CROWS.o: ../../../../../src/ta_func/ta_CDLUPSIDEGAP2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLUPSIDEGAP2CROWS.o ../../../../../src/ta_func/ta_CDLUPSIDEGAP2CROWS.c + +../../../../../temp/cmd/ta_CDLXSIDEGAP3METHODS.o: ../../../../../src/ta_func/ta_CDLXSIDEGAP3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLXSIDEGAP3METHODS.o ../../../../../src/ta_func/ta_CDLXSIDEGAP3METHODS.c + +../../../../../temp/cmd/ta_CEIL.o: ../../../../../src/ta_func/ta_CEIL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CEIL.o ../../../../../src/ta_func/ta_CEIL.c + +../../../../../temp/cmd/ta_CMO.o: ../../../../../src/ta_func/ta_CMO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CMO.o ../../../../../src/ta_func/ta_CMO.c + +../../../../../temp/cmd/ta_CORREL.o: ../../../../../src/ta_func/ta_CORREL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CORREL.o ../../../../../src/ta_func/ta_CORREL.c + +../../../../../temp/cmd/ta_COS.o: ../../../../../src/ta_func/ta_COS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_COS.o ../../../../../src/ta_func/ta_COS.c + +../../../../../temp/cmd/ta_COSH.o: ../../../../../src/ta_func/ta_COSH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_COSH.o ../../../../../src/ta_func/ta_COSH.c + +../../../../../temp/cmd/ta_DEMA.o: ../../../../../src/ta_func/ta_DEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_DEMA.o ../../../../../src/ta_func/ta_DEMA.c + +../../../../../temp/cmd/ta_DIV.o: ../../../../../src/ta_func/ta_DIV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_DIV.o ../../../../../src/ta_func/ta_DIV.c + +../../../../../temp/cmd/ta_DX.o: ../../../../../src/ta_func/ta_DX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_DX.o ../../../../../src/ta_func/ta_DX.c + +../../../../../temp/cmd/ta_EMA.o: ../../../../../src/ta_func/ta_EMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_EMA.o ../../../../../src/ta_func/ta_EMA.c + +../../../../../temp/cmd/ta_EXP.o: ../../../../../src/ta_func/ta_EXP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_EXP.o ../../../../../src/ta_func/ta_EXP.c + +../../../../../temp/cmd/ta_FLOOR.o: ../../../../../src/ta_func/ta_FLOOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_FLOOR.o ../../../../../src/ta_func/ta_FLOOR.c + +../../../../../temp/cmd/ta_HT_DCPERIOD.o: ../../../../../src/ta_func/ta_HT_DCPERIOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_HT_DCPERIOD.o ../../../../../src/ta_func/ta_HT_DCPERIOD.c + +../../../../../temp/cmd/ta_HT_DCPHASE.o: ../../../../../src/ta_func/ta_HT_DCPHASE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_HT_DCPHASE.o ../../../../../src/ta_func/ta_HT_DCPHASE.c + +../../../../../temp/cmd/ta_HT_PHASOR.o: ../../../../../src/ta_func/ta_HT_PHASOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_HT_PHASOR.o ../../../../../src/ta_func/ta_HT_PHASOR.c + +../../../../../temp/cmd/ta_HT_SINE.o: ../../../../../src/ta_func/ta_HT_SINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_HT_SINE.o ../../../../../src/ta_func/ta_HT_SINE.c + +../../../../../temp/cmd/ta_HT_TRENDLINE.o: ../../../../../src/ta_func/ta_HT_TRENDLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_HT_TRENDLINE.o ../../../../../src/ta_func/ta_HT_TRENDLINE.c + +../../../../../temp/cmd/ta_HT_TRENDMODE.o: ../../../../../src/ta_func/ta_HT_TRENDMODE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_HT_TRENDMODE.o ../../../../../src/ta_func/ta_HT_TRENDMODE.c + +../../../../../temp/cmd/ta_KAMA.o: ../../../../../src/ta_func/ta_KAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_KAMA.o ../../../../../src/ta_func/ta_KAMA.c + +../../../../../temp/cmd/ta_LINEARREG.o: ../../../../../src/ta_func/ta_LINEARREG.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_LINEARREG.o ../../../../../src/ta_func/ta_LINEARREG.c + +../../../../../temp/cmd/ta_LINEARREG_ANGLE.o: ../../../../../src/ta_func/ta_LINEARREG_ANGLE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_LINEARREG_ANGLE.o ../../../../../src/ta_func/ta_LINEARREG_ANGLE.c + +../../../../../temp/cmd/ta_LINEARREG_INTERCEPT.o: ../../../../../src/ta_func/ta_LINEARREG_INTERCEPT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_LINEARREG_INTERCEPT.o ../../../../../src/ta_func/ta_LINEARREG_INTERCEPT.c + +../../../../../temp/cmd/ta_LINEARREG_SLOPE.o: ../../../../../src/ta_func/ta_LINEARREG_SLOPE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_LINEARREG_SLOPE.o ../../../../../src/ta_func/ta_LINEARREG_SLOPE.c + +../../../../../temp/cmd/ta_LN.o: ../../../../../src/ta_func/ta_LN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_LN.o ../../../../../src/ta_func/ta_LN.c + +../../../../../temp/cmd/ta_LOG10.o: ../../../../../src/ta_func/ta_LOG10.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_LOG10.o ../../../../../src/ta_func/ta_LOG10.c + +../../../../../temp/cmd/ta_MA.o: ../../../../../src/ta_func/ta_MA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_MA.o ../../../../../src/ta_func/ta_MA.c + +../../../../../temp/cmd/ta_MACD.o: ../../../../../src/ta_func/ta_MACD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_MACD.o ../../../../../src/ta_func/ta_MACD.c + +../../../../../temp/cmd/ta_MACDEXT.o: ../../../../../src/ta_func/ta_MACDEXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_MACDEXT.o ../../../../../src/ta_func/ta_MACDEXT.c + +../../../../../temp/cmd/ta_MACDFIX.o: ../../../../../src/ta_func/ta_MACDFIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_MACDFIX.o ../../../../../src/ta_func/ta_MACDFIX.c + +../../../../../temp/cmd/ta_MAMA.o: ../../../../../src/ta_func/ta_MAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_MAMA.o ../../../../../src/ta_func/ta_MAMA.c + +../../../../../temp/cmd/ta_MAVP.o: ../../../../../src/ta_func/ta_MAVP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_MAVP.o ../../../../../src/ta_func/ta_MAVP.c + +../../../../../temp/cmd/ta_MAX.o: ../../../../../src/ta_func/ta_MAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_MAX.o ../../../../../src/ta_func/ta_MAX.c + +../../../../../temp/cmd/ta_MAXINDEX.o: ../../../../../src/ta_func/ta_MAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_MAXINDEX.o ../../../../../src/ta_func/ta_MAXINDEX.c + +../../../../../temp/cmd/ta_MEDPRICE.o: ../../../../../src/ta_func/ta_MEDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_MEDPRICE.o ../../../../../src/ta_func/ta_MEDPRICE.c + +../../../../../temp/cmd/ta_MFI.o: ../../../../../src/ta_func/ta_MFI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_MFI.o ../../../../../src/ta_func/ta_MFI.c + +../../../../../temp/cmd/ta_MIDPOINT.o: ../../../../../src/ta_func/ta_MIDPOINT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_MIDPOINT.o ../../../../../src/ta_func/ta_MIDPOINT.c + +../../../../../temp/cmd/ta_MIDPRICE.o: ../../../../../src/ta_func/ta_MIDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_MIDPRICE.o ../../../../../src/ta_func/ta_MIDPRICE.c + +../../../../../temp/cmd/ta_MIN.o: ../../../../../src/ta_func/ta_MIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_MIN.o ../../../../../src/ta_func/ta_MIN.c + +../../../../../temp/cmd/ta_MININDEX.o: ../../../../../src/ta_func/ta_MININDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_MININDEX.o ../../../../../src/ta_func/ta_MININDEX.c + +../../../../../temp/cmd/ta_MINMAX.o: ../../../../../src/ta_func/ta_MINMAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_MINMAX.o ../../../../../src/ta_func/ta_MINMAX.c + +../../../../../temp/cmd/ta_MINMAXINDEX.o: ../../../../../src/ta_func/ta_MINMAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_MINMAXINDEX.o ../../../../../src/ta_func/ta_MINMAXINDEX.c + +../../../../../temp/cmd/ta_MINUS_DI.o: ../../../../../src/ta_func/ta_MINUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_MINUS_DI.o ../../../../../src/ta_func/ta_MINUS_DI.c + +../../../../../temp/cmd/ta_MINUS_DM.o: ../../../../../src/ta_func/ta_MINUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_MINUS_DM.o ../../../../../src/ta_func/ta_MINUS_DM.c + +../../../../../temp/cmd/ta_MOM.o: ../../../../../src/ta_func/ta_MOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_MOM.o ../../../../../src/ta_func/ta_MOM.c + +../../../../../temp/cmd/ta_MULT.o: ../../../../../src/ta_func/ta_MULT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_MULT.o ../../../../../src/ta_func/ta_MULT.c + +../../../../../temp/cmd/ta_NATR.o: ../../../../../src/ta_func/ta_NATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_NATR.o ../../../../../src/ta_func/ta_NATR.c + +../../../../../temp/cmd/ta_OBV.o: ../../../../../src/ta_func/ta_OBV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_OBV.o ../../../../../src/ta_func/ta_OBV.c + +../../../../../temp/cmd/ta_PLUS_DI.o: ../../../../../src/ta_func/ta_PLUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_PLUS_DI.o ../../../../../src/ta_func/ta_PLUS_DI.c + +../../../../../temp/cmd/ta_PLUS_DM.o: ../../../../../src/ta_func/ta_PLUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_PLUS_DM.o ../../../../../src/ta_func/ta_PLUS_DM.c + +../../../../../temp/cmd/ta_PPO.o: ../../../../../src/ta_func/ta_PPO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_PPO.o ../../../../../src/ta_func/ta_PPO.c + +../../../../../temp/cmd/ta_ROC.o: ../../../../../src/ta_func/ta_ROC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_ROC.o ../../../../../src/ta_func/ta_ROC.c + +../../../../../temp/cmd/ta_ROCP.o: ../../../../../src/ta_func/ta_ROCP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_ROCP.o ../../../../../src/ta_func/ta_ROCP.c + +../../../../../temp/cmd/ta_ROCR.o: ../../../../../src/ta_func/ta_ROCR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_ROCR.o ../../../../../src/ta_func/ta_ROCR.c + +../../../../../temp/cmd/ta_ROCR100.o: ../../../../../src/ta_func/ta_ROCR100.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_ROCR100.o ../../../../../src/ta_func/ta_ROCR100.c + +../../../../../temp/cmd/ta_RSI.o: ../../../../../src/ta_func/ta_RSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_RSI.o ../../../../../src/ta_func/ta_RSI.c + +../../../../../temp/cmd/ta_SAR.o: ../../../../../src/ta_func/ta_SAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_SAR.o ../../../../../src/ta_func/ta_SAR.c + +../../../../../temp/cmd/ta_SAREXT.o: ../../../../../src/ta_func/ta_SAREXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_SAREXT.o ../../../../../src/ta_func/ta_SAREXT.c + +../../../../../temp/cmd/ta_SIN.o: ../../../../../src/ta_func/ta_SIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_SIN.o ../../../../../src/ta_func/ta_SIN.c + +../../../../../temp/cmd/ta_SINH.o: ../../../../../src/ta_func/ta_SINH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_SINH.o ../../../../../src/ta_func/ta_SINH.c + +../../../../../temp/cmd/ta_SMA.o: ../../../../../src/ta_func/ta_SMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_SMA.o ../../../../../src/ta_func/ta_SMA.c + +../../../../../temp/cmd/ta_SQRT.o: ../../../../../src/ta_func/ta_SQRT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_SQRT.o ../../../../../src/ta_func/ta_SQRT.c + +../../../../../temp/cmd/ta_STDDEV.o: ../../../../../src/ta_func/ta_STDDEV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_STDDEV.o ../../../../../src/ta_func/ta_STDDEV.c + +../../../../../temp/cmd/ta_STOCH.o: ../../../../../src/ta_func/ta_STOCH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_STOCH.o ../../../../../src/ta_func/ta_STOCH.c + +../../../../../temp/cmd/ta_STOCHF.o: ../../../../../src/ta_func/ta_STOCHF.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_STOCHF.o ../../../../../src/ta_func/ta_STOCHF.c + +../../../../../temp/cmd/ta_STOCHRSI.o: ../../../../../src/ta_func/ta_STOCHRSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_STOCHRSI.o ../../../../../src/ta_func/ta_STOCHRSI.c + +../../../../../temp/cmd/ta_SUB.o: ../../../../../src/ta_func/ta_SUB.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_SUB.o ../../../../../src/ta_func/ta_SUB.c + +../../../../../temp/cmd/ta_SUM.o: ../../../../../src/ta_func/ta_SUM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_SUM.o ../../../../../src/ta_func/ta_SUM.c + +../../../../../temp/cmd/ta_T3.o: ../../../../../src/ta_func/ta_T3.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_T3.o ../../../../../src/ta_func/ta_T3.c + +../../../../../temp/cmd/ta_TAN.o: ../../../../../src/ta_func/ta_TAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_TAN.o ../../../../../src/ta_func/ta_TAN.c + +../../../../../temp/cmd/ta_TANH.o: ../../../../../src/ta_func/ta_TANH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_TANH.o ../../../../../src/ta_func/ta_TANH.c + +../../../../../temp/cmd/ta_TEMA.o: ../../../../../src/ta_func/ta_TEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_TEMA.o ../../../../../src/ta_func/ta_TEMA.c + +../../../../../temp/cmd/ta_TRANGE.o: ../../../../../src/ta_func/ta_TRANGE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_TRANGE.o ../../../../../src/ta_func/ta_TRANGE.c + +../../../../../temp/cmd/ta_TRIMA.o: ../../../../../src/ta_func/ta_TRIMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_TRIMA.o ../../../../../src/ta_func/ta_TRIMA.c + +../../../../../temp/cmd/ta_TRIX.o: ../../../../../src/ta_func/ta_TRIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_TRIX.o ../../../../../src/ta_func/ta_TRIX.c + +../../../../../temp/cmd/ta_TSF.o: ../../../../../src/ta_func/ta_TSF.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_TSF.o ../../../../../src/ta_func/ta_TSF.c + +../../../../../temp/cmd/ta_TYPPRICE.o: ../../../../../src/ta_func/ta_TYPPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_TYPPRICE.o ../../../../../src/ta_func/ta_TYPPRICE.c + +../../../../../temp/cmd/ta_ULTOSC.o: ../../../../../src/ta_func/ta_ULTOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_ULTOSC.o ../../../../../src/ta_func/ta_ULTOSC.c + +../../../../../temp/cmd/ta_VAR.o: ../../../../../src/ta_func/ta_VAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_VAR.o ../../../../../src/ta_func/ta_VAR.c + +../../../../../temp/cmd/ta_WCLPRICE.o: ../../../../../src/ta_func/ta_WCLPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_WCLPRICE.o ../../../../../src/ta_func/ta_WCLPRICE.c + +../../../../../temp/cmd/ta_WILLR.o: ../../../../../src/ta_func/ta_WILLR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_WILLR.o ../../../../../src/ta_func/ta_WILLR.c + +../../../../../temp/cmd/ta_WMA.o: ../../../../../src/ta_func/ta_WMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_WMA.o ../../../../../src/ta_func/ta_WMA.c + diff --git a/make/cmd/cygwin/g++/ta_regtest/Makefile b/make/cmd/cygwin/g++/ta_regtest/Makefile new file mode 100644 index 000000000..0c66eea9d --- /dev/null +++ b/make/cmd/cygwin/g++/ta_regtest/Makefile @@ -0,0 +1,211 @@ +############################################################################# +# Makefile for building ../../../../../bin/ta_regtest +# Generated by tmake; +# Project: ta_regtest/ta_regtest +# Template: app +############################################################################# + +####### Compiler, tools and options + +CC = gcc +CXX = g++ +CFLAGS = -pipe -Wall -W -g -D_REENTRANT -DTA_DEBUG -D_DEBUG -DQT_THREAD_SUPPORT +CXXFLAGS= -pipe -Wall -W -g -D_REENTRANT -DTA_DEBUG -D_DEBUG -DQT_THREAD_SUPPORT +INCPATH = -I../../../../../src/ta_common -I../../../../../src/tools/ta_regtest -I../../../../../src/ta_func -I../../../../../include +LINK = g++ +LFLAGS = +LIBS = $(SUBLIBS) ../../../../../lib/libta_libc_cmd.a -lpthread +MOC = $(QTDIR)/bin/moc +UIC = $(QTDIR)/bin/uic + +TAR = tar -cf +GZIP = gzip -9f + +####### Support for 64-bit systems +ifeq ($(shell uname -m), x86_64) + CFLAGS += -march=x86-64 -m64 -D__64BIT__ + CXXFLAGS += -march=x86-64 -m64 -D__64BIT__ +endif + +####### Apply additional overruling user flags, if any +CFLAGS += $(CUSERFLAGS) +CXXFLAGS += $(CUSERFLAGS) + +####### Files + +HEADERS = +SOURCES = ../../../../../src/tools/ta_regtest/ta_regtest.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_candlestick.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_1in_1out.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_1in_2out.c \ + ../../../../../src/tools/ta_regtest/test_internals.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_adx.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_bbands.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_ma.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_macd.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_minmax.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_mom.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_per_ema.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hl.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hlc.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hlcv.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_per_ohlc.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_po.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_rsi.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_sar.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_stddev.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_stoch.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_trange.c \ + ../../../../../src/tools/ta_regtest/test_util.c \ + ../../../../../src/tools/ta_regtest/test_data.c \ + ../../../../../src/tools/ta_regtest/test_abstract.c +OBJECTS = ../../../../../temp/cmd/ta_regtest.o \ + ../../../../../temp/cmd/test_candlestick.o \ + ../../../../../temp/cmd/test_1in_1out.o \ + ../../../../../temp/cmd/test_1in_2out.o \ + ../../../../../temp/cmd/test_internals.o \ + ../../../../../temp/cmd/test_adx.o \ + ../../../../../temp/cmd/test_bbands.o \ + ../../../../../temp/cmd/test_ma.o \ + ../../../../../temp/cmd/test_macd.o \ + ../../../../../temp/cmd/test_minmax.o \ + ../../../../../temp/cmd/test_mom.o \ + ../../../../../temp/cmd/test_per_ema.o \ + ../../../../../temp/cmd/test_per_hl.o \ + ../../../../../temp/cmd/test_per_hlc.o \ + ../../../../../temp/cmd/test_per_hlcv.o \ + ../../../../../temp/cmd/test_per_ohlc.o \ + ../../../../../temp/cmd/test_po.o \ + ../../../../../temp/cmd/test_rsi.o \ + ../../../../../temp/cmd/test_sar.o \ + ../../../../../temp/cmd/test_stddev.o \ + ../../../../../temp/cmd/test_stoch.o \ + ../../../../../temp/cmd/test_trange.o \ + ../../../../../temp/cmd/test_util.o \ + ../../../../../temp/cmd/test_data.o \ + ../../../../../temp/cmd/test_abstract.o +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ../../../../../bin/ta_regtest +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .C .c + +.cpp.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cxx.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cc.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.C.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.c.o: + $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $< + +####### Build rules + + +all: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS) + +moc: $(SRCMOC) + +clean: + -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) + -rm -f *~ core + +####### Sub-libraries + + +###### Combined headers + + +####### Compile + +../../../../../temp/cmd/ta_regtest.o: ../../../../../src/tools/ta_regtest/ta_regtest.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_regtest.o ../../../../../src/tools/ta_regtest/ta_regtest.c + +../../../../../temp/cmd/test_candlestick.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_candlestick.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/test_candlestick.o ../../../../../src/tools/ta_regtest/ta_test_func/test_candlestick.c + +../../../../../temp/cmd/test_1in_1out.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_1in_1out.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/test_1in_1out.o ../../../../../src/tools/ta_regtest/ta_test_func/test_1in_1out.c + +../../../../../temp/cmd/test_1in_2out.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_1in_2out.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/test_1in_2out.o ../../../../../src/tools/ta_regtest/ta_test_func/test_1in_2out.c + +../../../../../temp/cmd/test_internals.o: ../../../../../src/tools/ta_regtest/test_internals.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/test_internals.o ../../../../../src/tools/ta_regtest/test_internals.c + +../../../../../temp/cmd/test_adx.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_adx.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/test_adx.o ../../../../../src/tools/ta_regtest/ta_test_func/test_adx.c + +../../../../../temp/cmd/test_bbands.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_bbands.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/test_bbands.o ../../../../../src/tools/ta_regtest/ta_test_func/test_bbands.c + +../../../../../temp/cmd/test_ma.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_ma.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/test_ma.o ../../../../../src/tools/ta_regtest/ta_test_func/test_ma.c + +../../../../../temp/cmd/test_macd.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_macd.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/test_macd.o ../../../../../src/tools/ta_regtest/ta_test_func/test_macd.c + +../../../../../temp/cmd/test_minmax.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_minmax.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/test_minmax.o ../../../../../src/tools/ta_regtest/ta_test_func/test_minmax.c + +../../../../../temp/cmd/test_mom.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_mom.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/test_mom.o ../../../../../src/tools/ta_regtest/ta_test_func/test_mom.c + +../../../../../temp/cmd/test_per_ema.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_per_ema.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/test_per_ema.o ../../../../../src/tools/ta_regtest/ta_test_func/test_per_ema.c + +../../../../../temp/cmd/test_per_hl.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hl.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/test_per_hl.o ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hl.c + +../../../../../temp/cmd/test_per_hlc.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hlc.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/test_per_hlc.o ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hlc.c + +../../../../../temp/cmd/test_per_hlcv.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hlcv.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/test_per_hlcv.o ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hlcv.c + +../../../../../temp/cmd/test_per_ohlc.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_per_ohlc.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/test_per_ohlc.o ../../../../../src/tools/ta_regtest/ta_test_func/test_per_ohlc.c + +../../../../../temp/cmd/test_po.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_po.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/test_po.o ../../../../../src/tools/ta_regtest/ta_test_func/test_po.c + +../../../../../temp/cmd/test_rsi.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_rsi.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/test_rsi.o ../../../../../src/tools/ta_regtest/ta_test_func/test_rsi.c + +../../../../../temp/cmd/test_sar.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_sar.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/test_sar.o ../../../../../src/tools/ta_regtest/ta_test_func/test_sar.c + +../../../../../temp/cmd/test_stddev.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_stddev.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/test_stddev.o ../../../../../src/tools/ta_regtest/ta_test_func/test_stddev.c + +../../../../../temp/cmd/test_stoch.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_stoch.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/test_stoch.o ../../../../../src/tools/ta_regtest/ta_test_func/test_stoch.c + +../../../../../temp/cmd/test_trange.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_trange.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/test_trange.o ../../../../../src/tools/ta_regtest/ta_test_func/test_trange.c + +../../../../../temp/cmd/test_util.o: ../../../../../src/tools/ta_regtest/test_util.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/test_util.o ../../../../../src/tools/ta_regtest/test_util.c + +../../../../../temp/cmd/test_data.o: ../../../../../src/tools/ta_regtest/test_data.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/test_data.o ../../../../../src/tools/ta_regtest/test_data.c + +../../../../../temp/cmd/test_abstract.o: ../../../../../src/tools/ta_regtest/test_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/test_abstract.o ../../../../../src/tools/ta_regtest/test_abstract.c + diff --git a/make/cmd/freebsd/g++/Makefile b/make/cmd/freebsd/g++/Makefile new file mode 100644 index 000000000..b92855283 --- /dev/null +++ b/make/cmd/freebsd/g++/Makefile @@ -0,0 +1,36 @@ +############################################################################# +# Makefile for building targets in sub directories. +# Generated by tmake; +# Project: rootmake +# Template: subdirs +############################################################################# + +MAKEFILE= Makefile +TMAKE = tmake + +SUBDIRS = ta_common \ + ta_func \ + ta_abstract \ + ta_libc \ + gen_code \ + ta_regtest + +all: $(SUBDIRS) + +$(SUBDIRS): FORCE + cd $@; $(MAKE) + +tmake: ../cmd/freebsd/g++/Makefile + +../cmd/freebsd/g++/Makefile: rootmake.pro + tmake rootmake.pro -o ../cmd/freebsd/g++/Makefile + +tmake_all: + for i in $(SUBDIRS); do ( if [ -d $$i ]; then cd $$i ; $(MAKE) -f $(MAKEFILE) tmake_all || true; fi; ) ; done + +#### $text = "\t" . 'for i in $(SUBDIRS); do ( if [ -d $$i ]; then cd $$i ; pro=`basename $$i`.pro ; $(TMAKE) $$pro -o $(MAKEFILE); grep "TEMPLATE.*subdirs" $$pro 2>/dev/null >/dev/null && $(MAKE) -f $(MAKEFILE) tmake_all || true; fi; ) ; done'; + +clean release debug: + for i in $(SUBDIRS); do ( if [ -d $$i ]; then cd $$i ; $(MAKE) $@; fi; ) ; done + +FORCE: diff --git a/make/cmd/freebsd/g++/gen_code/Makefile b/make/cmd/freebsd/g++/gen_code/Makefile new file mode 100644 index 000000000..f2b328b41 --- /dev/null +++ b/make/cmd/freebsd/g++/gen_code/Makefile @@ -0,0 +1,225 @@ +############################################################################# +# Makefile for building ../../../../../bin/gen_code +# Generated by tmake; +# Project: gen_code/gen_code +# Template: app +############################################################################# + +####### Compiler, tools and options + +CC = gcc +CXX = g++ +CFLAGS = -pipe -Wall -W -g -D_REENTRANT -DTA_GEN_CODE -DTA_DEBUG -D_DEBUG -DQT_THREAD_SUPPORT +CXXFLAGS= -pipe -Wall -W -g -D_REENTRANT -DTA_GEN_CODE -DTA_DEBUG -D_DEBUG -DQT_THREAD_SUPPORT +INCPATH = -I../../../../../include -I../../../../../src/ta_common -I../../../../../src/ta_abstract -I../../../../../src/ta_abstract/tables -I../../../../../src/ta_abstract/frames -I/usr/local/include +LINK = g++ +LFLAGS = -L/usr/local/lib +LIBS = $(SUBLIBS) ../../../../../lib/libta_common_cmd.a -pthread +MOC = $(QTDIR)/bin/moc +UIC = $(QTDIR)/bin/uic + +TAR = tar -cf +GZIP = gzip -9f + +####### Apply additional overruling user flags, if any +CFLAGS += $(CUSERFLAGS) +CXXFLAGS += $(CUSERFLAGS) + +####### Files + +HEADERS = +SOURCES = ../../../../../src/tools/gen_code/gen_code.c \ + ../../../../../src/ta_abstract/ta_abstract.c \ + ../../../../../src/ta_abstract/ta_def_ui.c \ + ../../../../../src/ta_abstract/tables/table_a.c \ + ../../../../../src/ta_abstract/tables/table_b.c \ + ../../../../../src/ta_abstract/tables/table_c.c \ + ../../../../../src/ta_abstract/tables/table_d.c \ + ../../../../../src/ta_abstract/tables/table_e.c \ + ../../../../../src/ta_abstract/tables/table_f.c \ + ../../../../../src/ta_abstract/tables/table_g.c \ + ../../../../../src/ta_abstract/tables/table_h.c \ + ../../../../../src/ta_abstract/tables/table_i.c \ + ../../../../../src/ta_abstract/tables/table_j.c \ + ../../../../../src/ta_abstract/tables/table_k.c \ + ../../../../../src/ta_abstract/tables/table_l.c \ + ../../../../../src/ta_abstract/tables/table_m.c \ + ../../../../../src/ta_abstract/tables/table_n.c \ + ../../../../../src/ta_abstract/tables/table_o.c \ + ../../../../../src/ta_abstract/tables/table_p.c \ + ../../../../../src/ta_abstract/tables/table_q.c \ + ../../../../../src/ta_abstract/tables/table_r.c \ + ../../../../../src/ta_abstract/tables/table_s.c \ + ../../../../../src/ta_abstract/tables/table_t.c \ + ../../../../../src/ta_abstract/tables/table_u.c \ + ../../../../../src/ta_abstract/tables/table_v.c \ + ../../../../../src/ta_abstract/tables/table_w.c \ + ../../../../../src/ta_abstract/tables/table_x.c \ + ../../../../../src/ta_abstract/tables/table_y.c \ + ../../../../../src/ta_abstract/tables/table_z.c +OBJECTS = ../../../../../temp/cmd/gen_code/gen_code.o \ + ../../../../../temp/cmd/gen_code/ta_abstract.o \ + ../../../../../temp/cmd/gen_code/ta_def_ui.o \ + ../../../../../temp/cmd/gen_code/table_a.o \ + ../../../../../temp/cmd/gen_code/table_b.o \ + ../../../../../temp/cmd/gen_code/table_c.o \ + ../../../../../temp/cmd/gen_code/table_d.o \ + ../../../../../temp/cmd/gen_code/table_e.o \ + ../../../../../temp/cmd/gen_code/table_f.o \ + ../../../../../temp/cmd/gen_code/table_g.o \ + ../../../../../temp/cmd/gen_code/table_h.o \ + ../../../../../temp/cmd/gen_code/table_i.o \ + ../../../../../temp/cmd/gen_code/table_j.o \ + ../../../../../temp/cmd/gen_code/table_k.o \ + ../../../../../temp/cmd/gen_code/table_l.o \ + ../../../../../temp/cmd/gen_code/table_m.o \ + ../../../../../temp/cmd/gen_code/table_n.o \ + ../../../../../temp/cmd/gen_code/table_o.o \ + ../../../../../temp/cmd/gen_code/table_p.o \ + ../../../../../temp/cmd/gen_code/table_q.o \ + ../../../../../temp/cmd/gen_code/table_r.o \ + ../../../../../temp/cmd/gen_code/table_s.o \ + ../../../../../temp/cmd/gen_code/table_t.o \ + ../../../../../temp/cmd/gen_code/table_u.o \ + ../../../../../temp/cmd/gen_code/table_v.o \ + ../../../../../temp/cmd/gen_code/table_w.o \ + ../../../../../temp/cmd/gen_code/table_x.o \ + ../../../../../temp/cmd/gen_code/table_y.o \ + ../../../../../temp/cmd/gen_code/table_z.o +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ../../../../../bin/gen_code +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .C .c + +.cpp.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cxx.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cc.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.C.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.c.o: + $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $< + +####### Build rules + + +all: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS) + +moc: $(SRCMOC) + +clean: + -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) + -rm -f *~ core + +####### Sub-libraries + + +###### Combined headers + + +####### Compile + +../../../../../temp/cmd/gen_code/gen_code.o: ../../../../../src/tools/gen_code/gen_code.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/gen_code/gen_code.o ../../../../../src/tools/gen_code/gen_code.c + +../../../../../temp/cmd/gen_code/ta_abstract.o: ../../../../../src/ta_abstract/ta_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/gen_code/ta_abstract.o ../../../../../src/ta_abstract/ta_abstract.c + +../../../../../temp/cmd/gen_code/ta_def_ui.o: ../../../../../src/ta_abstract/ta_def_ui.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/gen_code/ta_def_ui.o ../../../../../src/ta_abstract/ta_def_ui.c + +../../../../../temp/cmd/gen_code/table_a.o: ../../../../../src/ta_abstract/tables/table_a.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/gen_code/table_a.o ../../../../../src/ta_abstract/tables/table_a.c + +../../../../../temp/cmd/gen_code/table_b.o: ../../../../../src/ta_abstract/tables/table_b.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/gen_code/table_b.o ../../../../../src/ta_abstract/tables/table_b.c + +../../../../../temp/cmd/gen_code/table_c.o: ../../../../../src/ta_abstract/tables/table_c.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/gen_code/table_c.o ../../../../../src/ta_abstract/tables/table_c.c + +../../../../../temp/cmd/gen_code/table_d.o: ../../../../../src/ta_abstract/tables/table_d.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/gen_code/table_d.o ../../../../../src/ta_abstract/tables/table_d.c + +../../../../../temp/cmd/gen_code/table_e.o: ../../../../../src/ta_abstract/tables/table_e.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/gen_code/table_e.o ../../../../../src/ta_abstract/tables/table_e.c + +../../../../../temp/cmd/gen_code/table_f.o: ../../../../../src/ta_abstract/tables/table_f.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/gen_code/table_f.o ../../../../../src/ta_abstract/tables/table_f.c + +../../../../../temp/cmd/gen_code/table_g.o: ../../../../../src/ta_abstract/tables/table_g.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/gen_code/table_g.o ../../../../../src/ta_abstract/tables/table_g.c + +../../../../../temp/cmd/gen_code/table_h.o: ../../../../../src/ta_abstract/tables/table_h.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/gen_code/table_h.o ../../../../../src/ta_abstract/tables/table_h.c + +../../../../../temp/cmd/gen_code/table_i.o: ../../../../../src/ta_abstract/tables/table_i.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/gen_code/table_i.o ../../../../../src/ta_abstract/tables/table_i.c + +../../../../../temp/cmd/gen_code/table_j.o: ../../../../../src/ta_abstract/tables/table_j.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/gen_code/table_j.o ../../../../../src/ta_abstract/tables/table_j.c + +../../../../../temp/cmd/gen_code/table_k.o: ../../../../../src/ta_abstract/tables/table_k.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/gen_code/table_k.o ../../../../../src/ta_abstract/tables/table_k.c + +../../../../../temp/cmd/gen_code/table_l.o: ../../../../../src/ta_abstract/tables/table_l.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/gen_code/table_l.o ../../../../../src/ta_abstract/tables/table_l.c + +../../../../../temp/cmd/gen_code/table_m.o: ../../../../../src/ta_abstract/tables/table_m.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/gen_code/table_m.o ../../../../../src/ta_abstract/tables/table_m.c + +../../../../../temp/cmd/gen_code/table_n.o: ../../../../../src/ta_abstract/tables/table_n.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/gen_code/table_n.o ../../../../../src/ta_abstract/tables/table_n.c + +../../../../../temp/cmd/gen_code/table_o.o: ../../../../../src/ta_abstract/tables/table_o.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/gen_code/table_o.o ../../../../../src/ta_abstract/tables/table_o.c + +../../../../../temp/cmd/gen_code/table_p.o: ../../../../../src/ta_abstract/tables/table_p.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/gen_code/table_p.o ../../../../../src/ta_abstract/tables/table_p.c + +../../../../../temp/cmd/gen_code/table_q.o: ../../../../../src/ta_abstract/tables/table_q.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/gen_code/table_q.o ../../../../../src/ta_abstract/tables/table_q.c + +../../../../../temp/cmd/gen_code/table_r.o: ../../../../../src/ta_abstract/tables/table_r.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/gen_code/table_r.o ../../../../../src/ta_abstract/tables/table_r.c + +../../../../../temp/cmd/gen_code/table_s.o: ../../../../../src/ta_abstract/tables/table_s.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/gen_code/table_s.o ../../../../../src/ta_abstract/tables/table_s.c + +../../../../../temp/cmd/gen_code/table_t.o: ../../../../../src/ta_abstract/tables/table_t.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/gen_code/table_t.o ../../../../../src/ta_abstract/tables/table_t.c + +../../../../../temp/cmd/gen_code/table_u.o: ../../../../../src/ta_abstract/tables/table_u.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/gen_code/table_u.o ../../../../../src/ta_abstract/tables/table_u.c + +../../../../../temp/cmd/gen_code/table_v.o: ../../../../../src/ta_abstract/tables/table_v.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/gen_code/table_v.o ../../../../../src/ta_abstract/tables/table_v.c + +../../../../../temp/cmd/gen_code/table_w.o: ../../../../../src/ta_abstract/tables/table_w.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/gen_code/table_w.o ../../../../../src/ta_abstract/tables/table_w.c + +../../../../../temp/cmd/gen_code/table_x.o: ../../../../../src/ta_abstract/tables/table_x.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/gen_code/table_x.o ../../../../../src/ta_abstract/tables/table_x.c + +../../../../../temp/cmd/gen_code/table_y.o: ../../../../../src/ta_abstract/tables/table_y.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/gen_code/table_y.o ../../../../../src/ta_abstract/tables/table_y.c + +../../../../../temp/cmd/gen_code/table_z.o: ../../../../../src/ta_abstract/tables/table_z.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/gen_code/table_z.o ../../../../../src/ta_abstract/tables/table_z.c + diff --git a/make/cmd/freebsd/g++/ta_abstract/Makefile b/make/cmd/freebsd/g++/ta_abstract/Makefile new file mode 100644 index 000000000..68e034d6b --- /dev/null +++ b/make/cmd/freebsd/g++/ta_abstract/Makefile @@ -0,0 +1,243 @@ +############################################################################# +# Makefile for building ../../../../../lib/libta_abstract_cmd.a +# Generated by tmake; +# Project: ta_abstract/ta_abstract +# Template: lib +############################################################################# + +####### Compiler, tools and options + +CC = gcc +CXX = g++ +CFLAGS = -pipe -Wall -W -g -D_REENTRANT -DTA_DEBUG -D_DEBUG -DQT_THREAD_SUPPORT +CXXFLAGS= -pipe -Wall -W -g -D_REENTRANT -DTA_DEBUG -D_DEBUG -DQT_THREAD_SUPPORT +INCPATH = -I../../../../../src/ta_common -I../../../../../src/ta_abstract -I../../../../../src/ta_abstract/tables -I../../../../../src/ta_abstract/frames -I../../../../../include -I/usr/local/include +AR = ar cqs +RANLIB = +MOC = $(QTDIR)/bin/moc +UIC = $(QTDIR)/bin/uic + +TAR = tar -cf +GZIP = gzip -9f + +####### Support for 64-bit systems +ifeq ($(shell uname -m), x86_64) + CFLAGS += -march=x86-64 -m64 -D__64BIT__ + CXXFLAGS += -march=x86-64 -m64 -D__64BIT__ +endif + +####### Apply additional overruling user flags, if any +CFLAGS += $(CUSERFLAGS) +CXXFLAGS += $(CUSERFLAGS) + +####### Files + +HEADERS = +SOURCES = ../../../../../src/ta_abstract/ta_abstract.c \ + ../../../../../src/ta_abstract/ta_def_ui.c \ + ../../../../../src/ta_abstract/ta_func_api.c \ + ../../../../../src/ta_abstract/ta_group_idx.c \ + ../../../../../src/ta_abstract/frames/ta_frame.c \ + ../../../../../src/ta_abstract/tables/table_a.c \ + ../../../../../src/ta_abstract/tables/table_b.c \ + ../../../../../src/ta_abstract/tables/table_c.c \ + ../../../../../src/ta_abstract/tables/table_d.c \ + ../../../../../src/ta_abstract/tables/table_e.c \ + ../../../../../src/ta_abstract/tables/table_f.c \ + ../../../../../src/ta_abstract/tables/table_g.c \ + ../../../../../src/ta_abstract/tables/table_h.c \ + ../../../../../src/ta_abstract/tables/table_i.c \ + ../../../../../src/ta_abstract/tables/table_j.c \ + ../../../../../src/ta_abstract/tables/table_k.c \ + ../../../../../src/ta_abstract/tables/table_l.c \ + ../../../../../src/ta_abstract/tables/table_m.c \ + ../../../../../src/ta_abstract/tables/table_n.c \ + ../../../../../src/ta_abstract/tables/table_o.c \ + ../../../../../src/ta_abstract/tables/table_p.c \ + ../../../../../src/ta_abstract/tables/table_q.c \ + ../../../../../src/ta_abstract/tables/table_r.c \ + ../../../../../src/ta_abstract/tables/table_s.c \ + ../../../../../src/ta_abstract/tables/table_t.c \ + ../../../../../src/ta_abstract/tables/table_u.c \ + ../../../../../src/ta_abstract/tables/table_v.c \ + ../../../../../src/ta_abstract/tables/table_w.c \ + ../../../../../src/ta_abstract/tables/table_x.c \ + ../../../../../src/ta_abstract/tables/table_y.c \ + ../../../../../src/ta_abstract/tables/table_z.c +OBJECTS = ../../../../../temp/cmd/ta_abstract.o \ + ../../../../../temp/cmd/ta_def_ui.o \ + ../../../../../temp/cmd/ta_func_api.o \ + ../../../../../temp/cmd/ta_group_idx.o \ + ../../../../../temp/cmd/ta_frame.o \ + ../../../../../temp/cmd/table_a.o \ + ../../../../../temp/cmd/table_b.o \ + ../../../../../temp/cmd/table_c.o \ + ../../../../../temp/cmd/table_d.o \ + ../../../../../temp/cmd/table_e.o \ + ../../../../../temp/cmd/table_f.o \ + ../../../../../temp/cmd/table_g.o \ + ../../../../../temp/cmd/table_h.o \ + ../../../../../temp/cmd/table_i.o \ + ../../../../../temp/cmd/table_j.o \ + ../../../../../temp/cmd/table_k.o \ + ../../../../../temp/cmd/table_l.o \ + ../../../../../temp/cmd/table_m.o \ + ../../../../../temp/cmd/table_n.o \ + ../../../../../temp/cmd/table_o.o \ + ../../../../../temp/cmd/table_p.o \ + ../../../../../temp/cmd/table_q.o \ + ../../../../../temp/cmd/table_r.o \ + ../../../../../temp/cmd/table_s.o \ + ../../../../../temp/cmd/table_t.o \ + ../../../../../temp/cmd/table_u.o \ + ../../../../../temp/cmd/table_v.o \ + ../../../../../temp/cmd/table_w.o \ + ../../../../../temp/cmd/table_x.o \ + ../../../../../temp/cmd/table_y.o \ + ../../../../../temp/cmd/table_z.o +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ../../../../../lib/libta_abstract_cmd.a +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .C .c + +.cpp.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cxx.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cc.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.C.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.c.o: + $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $< + +####### Build rules + + +all: $(TARGET) + +staticlib: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + -rm -f $(TARGET) + $(AR) $(TARGET) $(OBJECTS) $(OBJMOC) + +moc: $(SRCMOC) + +clean: + -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) + -rm -f *~ core + +####### Sub-libraries + + +###### Combined headers + + +####### Compile + +../../../../../temp/cmd/ta_abstract.o: ../../../../../src/ta_abstract/ta_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_abstract.o ../../../../../src/ta_abstract/ta_abstract.c + +../../../../../temp/cmd/ta_def_ui.o: ../../../../../src/ta_abstract/ta_def_ui.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_def_ui.o ../../../../../src/ta_abstract/ta_def_ui.c + +../../../../../temp/cmd/ta_func_api.o: ../../../../../src/ta_abstract/ta_func_api.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_func_api.o ../../../../../src/ta_abstract/ta_func_api.c + +../../../../../temp/cmd/ta_group_idx.o: ../../../../../src/ta_abstract/ta_group_idx.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_group_idx.o ../../../../../src/ta_abstract/ta_group_idx.c + +../../../../../temp/cmd/ta_frame.o: ../../../../../src/ta_abstract/frames/ta_frame.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_frame.o ../../../../../src/ta_abstract/frames/ta_frame.c + +../../../../../temp/cmd/table_a.o: ../../../../../src/ta_abstract/tables/table_a.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_a.o ../../../../../src/ta_abstract/tables/table_a.c + +../../../../../temp/cmd/table_b.o: ../../../../../src/ta_abstract/tables/table_b.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_b.o ../../../../../src/ta_abstract/tables/table_b.c + +../../../../../temp/cmd/table_c.o: ../../../../../src/ta_abstract/tables/table_c.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_c.o ../../../../../src/ta_abstract/tables/table_c.c + +../../../../../temp/cmd/table_d.o: ../../../../../src/ta_abstract/tables/table_d.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_d.o ../../../../../src/ta_abstract/tables/table_d.c + +../../../../../temp/cmd/table_e.o: ../../../../../src/ta_abstract/tables/table_e.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_e.o ../../../../../src/ta_abstract/tables/table_e.c + +../../../../../temp/cmd/table_f.o: ../../../../../src/ta_abstract/tables/table_f.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_f.o ../../../../../src/ta_abstract/tables/table_f.c + +../../../../../temp/cmd/table_g.o: ../../../../../src/ta_abstract/tables/table_g.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_g.o ../../../../../src/ta_abstract/tables/table_g.c + +../../../../../temp/cmd/table_h.o: ../../../../../src/ta_abstract/tables/table_h.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_h.o ../../../../../src/ta_abstract/tables/table_h.c + +../../../../../temp/cmd/table_i.o: ../../../../../src/ta_abstract/tables/table_i.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_i.o ../../../../../src/ta_abstract/tables/table_i.c + +../../../../../temp/cmd/table_j.o: ../../../../../src/ta_abstract/tables/table_j.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_j.o ../../../../../src/ta_abstract/tables/table_j.c + +../../../../../temp/cmd/table_k.o: ../../../../../src/ta_abstract/tables/table_k.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_k.o ../../../../../src/ta_abstract/tables/table_k.c + +../../../../../temp/cmd/table_l.o: ../../../../../src/ta_abstract/tables/table_l.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_l.o ../../../../../src/ta_abstract/tables/table_l.c + +../../../../../temp/cmd/table_m.o: ../../../../../src/ta_abstract/tables/table_m.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_m.o ../../../../../src/ta_abstract/tables/table_m.c + +../../../../../temp/cmd/table_n.o: ../../../../../src/ta_abstract/tables/table_n.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_n.o ../../../../../src/ta_abstract/tables/table_n.c + +../../../../../temp/cmd/table_o.o: ../../../../../src/ta_abstract/tables/table_o.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_o.o ../../../../../src/ta_abstract/tables/table_o.c + +../../../../../temp/cmd/table_p.o: ../../../../../src/ta_abstract/tables/table_p.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_p.o ../../../../../src/ta_abstract/tables/table_p.c + +../../../../../temp/cmd/table_q.o: ../../../../../src/ta_abstract/tables/table_q.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_q.o ../../../../../src/ta_abstract/tables/table_q.c + +../../../../../temp/cmd/table_r.o: ../../../../../src/ta_abstract/tables/table_r.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_r.o ../../../../../src/ta_abstract/tables/table_r.c + +../../../../../temp/cmd/table_s.o: ../../../../../src/ta_abstract/tables/table_s.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_s.o ../../../../../src/ta_abstract/tables/table_s.c + +../../../../../temp/cmd/table_t.o: ../../../../../src/ta_abstract/tables/table_t.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_t.o ../../../../../src/ta_abstract/tables/table_t.c + +../../../../../temp/cmd/table_u.o: ../../../../../src/ta_abstract/tables/table_u.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_u.o ../../../../../src/ta_abstract/tables/table_u.c + +../../../../../temp/cmd/table_v.o: ../../../../../src/ta_abstract/tables/table_v.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_v.o ../../../../../src/ta_abstract/tables/table_v.c + +../../../../../temp/cmd/table_w.o: ../../../../../src/ta_abstract/tables/table_w.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_w.o ../../../../../src/ta_abstract/tables/table_w.c + +../../../../../temp/cmd/table_x.o: ../../../../../src/ta_abstract/tables/table_x.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_x.o ../../../../../src/ta_abstract/tables/table_x.c + +../../../../../temp/cmd/table_y.o: ../../../../../src/ta_abstract/tables/table_y.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_y.o ../../../../../src/ta_abstract/tables/table_y.c + +../../../../../temp/cmd/table_z.o: ../../../../../src/ta_abstract/tables/table_z.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_z.o ../../../../../src/ta_abstract/tables/table_z.c + diff --git a/make/cmd/freebsd/g++/ta_common/Makefile b/make/cmd/freebsd/g++/ta_common/Makefile new file mode 100644 index 000000000..848449b6d --- /dev/null +++ b/make/cmd/freebsd/g++/ta_common/Makefile @@ -0,0 +1,103 @@ +############################################################################# +# Makefile for building ../../../../../lib/libta_common_cmd.a +# Generated by tmake; +# Project: ta_common/ta_common +# Template: lib +############################################################################# + +####### Compiler, tools and options + +CC = gcc +CXX = g++ +CFLAGS = -pipe -Wall -W -g -D_REENTRANT -DTA_DEBUG -D_DEBUG -DQT_THREAD_SUPPORT +CXXFLAGS= -pipe -Wall -W -g -D_REENTRANT -DTA_DEBUG -D_DEBUG -DQT_THREAD_SUPPORT +INCPATH = -I../../../../../src/ta_common -I../../../../../include -I/usr/local/include +AR = ar cqs +RANLIB = +MOC = $(QTDIR)/bin/moc +UIC = $(QTDIR)/bin/uic + +TAR = tar -cf +GZIP = gzip -9f + +####### Support for 64-bit systems +ifeq ($(shell uname -m), x86_64) + CFLAGS += -march=x86-64 -m64 -D__64BIT__ + CXXFLAGS += -march=x86-64 -m64 -D__64BIT__ +endif + +####### Apply additional overruling user flags, if any +CFLAGS += $(CUSERFLAGS) +CXXFLAGS += $(CUSERFLAGS) + +####### Files + +HEADERS = +SOURCES = ../../../../../src/ta_common/ta_global.c \ + ../../../../../src/ta_common/ta_retcode.c \ + ../../../../../src/ta_common/ta_version.c +OBJECTS = ../../../../../temp/cmd/ta_global.o \ + ../../../../../temp/cmd/ta_retcode.o \ + ../../../../../temp/cmd/ta_version.o +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ../../../../../lib/libta_common_cmd.a +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .C .c + +.cpp.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cxx.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cc.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.C.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.c.o: + $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $< + +####### Build rules + + +all: $(TARGET) + +staticlib: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + -rm -f $(TARGET) + $(AR) $(TARGET) $(OBJECTS) $(OBJMOC) + +moc: $(SRCMOC) + +clean: + -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) + -rm -f *~ core + +####### Sub-libraries + + +###### Combined headers + + +####### Compile + +../../../../../temp/cmd/ta_global.o: ../../../../../src/ta_common/ta_global.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_global.o ../../../../../src/ta_common/ta_global.c + +../../../../../temp/cmd/ta_retcode.o: ../../../../../src/ta_common/ta_retcode.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_retcode.o ../../../../../src/ta_common/ta_retcode.c + +../../../../../temp/cmd/ta_version.o: ../../../../../src/ta_common/ta_version.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_version.o ../../../../../src/ta_common/ta_version.c + diff --git a/make/cmd/freebsd/g++/ta_func/Makefile b/make/cmd/freebsd/g++/ta_func/Makefile new file mode 100644 index 000000000..20f85d506 --- /dev/null +++ b/make/cmd/freebsd/g++/ta_func/Makefile @@ -0,0 +1,883 @@ +############################################################################# +# Makefile for building ../../../../../lib/libta_func_cmd.a +# Generated by tmake; +# Project: ta_func/ta_func +# Template: lib +############################################################################# + +####### Compiler, tools and options + +CC = gcc +CXX = g++ +CFLAGS = -pipe -Wall -W -g -D_REENTRANT -DTA_DEBUG -D_DEBUG -DQT_THREAD_SUPPORT +CXXFLAGS= -pipe -Wall -W -g -D_REENTRANT -DTA_DEBUG -D_DEBUG -DQT_THREAD_SUPPORT +INCPATH = -I../../../../../src/ta_common -I/n -I../../../../../include -I/usr/local/include +AR = ar cqs +RANLIB = +MOC = $(QTDIR)/bin/moc +UIC = $(QTDIR)/bin/uic + +TAR = tar -cf +GZIP = gzip -9f + +####### Support for 64-bit systems +ifeq ($(shell uname -m), x86_64) + CFLAGS += -march=x86-64 -m64 -D__64BIT__ + CXXFLAGS += -march=x86-64 -m64 -D__64BIT__ +endif + +####### Apply additional overruling user flags, if any +CFLAGS += $(CUSERFLAGS) +CXXFLAGS += $(CUSERFLAGS) + +####### Files + +HEADERS = +SOURCES = ../../../../../src/ta_func/ta_utility.c \ + ../../../../../src/ta_func/ta_ACOS.c \ + ../../../../../src/ta_func/ta_AD.c \ + ../../../../../src/ta_func/ta_ADD.c \ + ../../../../../src/ta_func/ta_ADOSC.c \ + ../../../../../src/ta_func/ta_ADX.c \ + ../../../../../src/ta_func/ta_ADXR.c \ + ../../../../../src/ta_func/ta_APO.c \ + ../../../../../src/ta_func/ta_AROON.c \ + ../../../../../src/ta_func/ta_AROONOSC.c \ + ../../../../../src/ta_func/ta_ASIN.c \ + ../../../../../src/ta_func/ta_ATAN.c \ + ../../../../../src/ta_func/ta_ATR.c \ + ../../../../../src/ta_func/ta_AVGPRICE.c \ + ../../../../../src/ta_func/ta_BBANDS.c \ + ../../../../../src/ta_func/ta_BETA.c \ + ../../../../../src/ta_func/ta_BOP.c \ + ../../../../../src/ta_func/ta_CCI.c \ + ../../../../../src/ta_func/ta_CDL2CROWS.c \ + ../../../../../src/ta_func/ta_CDL3BLACKCROWS.c \ + ../../../../../src/ta_func/ta_CDL3INSIDE.c \ + ../../../../../src/ta_func/ta_CDL3LINESTRIKE.c \ + ../../../../../src/ta_func/ta_CDL3OUTSIDE.c \ + ../../../../../src/ta_func/ta_CDL3STARSINSOUTH.c \ + ../../../../../src/ta_func/ta_CDL3WHITESOLDIERS.c \ + ../../../../../src/ta_func/ta_CDLABANDONEDBABY.c \ + ../../../../../src/ta_func/ta_CDLADVANCEBLOCK.c \ + ../../../../../src/ta_func/ta_CDLBELTHOLD.c \ + ../../../../../src/ta_func/ta_CDLBREAKAWAY.c \ + ../../../../../src/ta_func/ta_CDLCLOSINGMARUBOZU.c \ + ../../../../../src/ta_func/ta_CDLCONCEALBABYSWALL.c \ + ../../../../../src/ta_func/ta_CDLCOUNTERATTACK.c \ + ../../../../../src/ta_func/ta_CDLDARKCLOUDCOVER.c \ + ../../../../../src/ta_func/ta_CDLDOJI.c \ + ../../../../../src/ta_func/ta_CDLDOJISTAR.c \ + ../../../../../src/ta_func/ta_CDLDRAGONFLYDOJI.c \ + ../../../../../src/ta_func/ta_CDLENGULFING.c \ + ../../../../../src/ta_func/ta_CDLEVENINGDOJISTAR.c \ + ../../../../../src/ta_func/ta_CDLEVENINGSTAR.c \ + ../../../../../src/ta_func/ta_CDLGAPSIDESIDEWHITE.c \ + ../../../../../src/ta_func/ta_CDLGRAVESTONEDOJI.c \ + ../../../../../src/ta_func/ta_CDLHAMMER.c \ + ../../../../../src/ta_func/ta_CDLHANGINGMAN.c \ + ../../../../../src/ta_func/ta_CDLHARAMI.c \ + ../../../../../src/ta_func/ta_CDLHARAMICROSS.c \ + ../../../../../src/ta_func/ta_CDLHIGHWAVE.c \ + ../../../../../src/ta_func/ta_CDLHIKKAKE.c \ + ../../../../../src/ta_func/ta_CDLHIKKAKEMOD.c \ + ../../../../../src/ta_func/ta_CDLHOMINGPIGEON.c \ + ../../../../../src/ta_func/ta_CDLIDENTICAL3CROWS.c \ + ../../../../../src/ta_func/ta_CDLINNECK.c \ + ../../../../../src/ta_func/ta_CDLINVERTEDHAMMER.c \ + ../../../../../src/ta_func/ta_CDLKICKING.c \ + ../../../../../src/ta_func/ta_CDLKICKINGBYLENGTH.c \ + ../../../../../src/ta_func/ta_CDLLADDERBOTTOM.c \ + ../../../../../src/ta_func/ta_CDLLONGLEGGEDDOJI.c \ + ../../../../../src/ta_func/ta_CDLLONGLINE.c \ + ../../../../../src/ta_func/ta_CDLMARUBOZU.c \ + ../../../../../src/ta_func/ta_CDLMATCHINGLOW.c \ + ../../../../../src/ta_func/ta_CDLMATHOLD.c \ + ../../../../../src/ta_func/ta_CDLMORNINGDOJISTAR.c \ + ../../../../../src/ta_func/ta_CDLMORNINGSTAR.c \ + ../../../../../src/ta_func/ta_CDLONNECK.c \ + ../../../../../src/ta_func/ta_CDLPIERCING.c \ + ../../../../../src/ta_func/ta_CDLRICKSHAWMAN.c \ + ../../../../../src/ta_func/ta_CDLRISEFALL3METHODS.c \ + ../../../../../src/ta_func/ta_CDLSEPARATINGLINES.c \ + ../../../../../src/ta_func/ta_CDLSHOOTINGSTAR.c \ + ../../../../../src/ta_func/ta_CDLSHORTLINE.c \ + ../../../../../src/ta_func/ta_CDLSPINNINGTOP.c \ + ../../../../../src/ta_func/ta_CDLSTALLEDPATTERN.c \ + ../../../../../src/ta_func/ta_CDLSTICKSANDWICH.c \ + ../../../../../src/ta_func/ta_CDLTAKURI.c \ + ../../../../../src/ta_func/ta_CDLTASUKIGAP.c \ + ../../../../../src/ta_func/ta_CDLTHRUSTING.c \ + ../../../../../src/ta_func/ta_CDLTRISTAR.c \ + ../../../../../src/ta_func/ta_CDLUNIQUE3RIVER.c \ + ../../../../../src/ta_func/ta_CDLUPSIDEGAP2CROWS.c \ + ../../../../../src/ta_func/ta_CDLXSIDEGAP3METHODS.c \ + ../../../../../src/ta_func/ta_CEIL.c \ + ../../../../../src/ta_func/ta_CMO.c \ + ../../../../../src/ta_func/ta_CORREL.c \ + ../../../../../src/ta_func/ta_COS.c \ + ../../../../../src/ta_func/ta_COSH.c \ + ../../../../../src/ta_func/ta_DEMA.c \ + ../../../../../src/ta_func/ta_DIV.c \ + ../../../../../src/ta_func/ta_DX.c \ + ../../../../../src/ta_func/ta_EMA.c \ + ../../../../../src/ta_func/ta_EXP.c \ + ../../../../../src/ta_func/ta_FLOOR.c \ + ../../../../../src/ta_func/ta_HT_DCPERIOD.c \ + ../../../../../src/ta_func/ta_HT_DCPHASE.c \ + ../../../../../src/ta_func/ta_HT_PHASOR.c \ + ../../../../../src/ta_func/ta_HT_SINE.c \ + ../../../../../src/ta_func/ta_HT_TRENDLINE.c \ + ../../../../../src/ta_func/ta_HT_TRENDMODE.c \ + ../../../../../src/ta_func/ta_KAMA.c \ + ../../../../../src/ta_func/ta_LINEARREG.c \ + ../../../../../src/ta_func/ta_LINEARREG_ANGLE.c \ + ../../../../../src/ta_func/ta_LINEARREG_INTERCEPT.c \ + ../../../../../src/ta_func/ta_LINEARREG_SLOPE.c \ + ../../../../../src/ta_func/ta_LN.c \ + ../../../../../src/ta_func/ta_LOG10.c \ + ../../../../../src/ta_func/ta_MA.c \ + ../../../../../src/ta_func/ta_MACD.c \ + ../../../../../src/ta_func/ta_MACDEXT.c \ + ../../../../../src/ta_func/ta_MACDFIX.c \ + ../../../../../src/ta_func/ta_MAMA.c \ + ../../../../../src/ta_func/ta_MAVP.c \ + ../../../../../src/ta_func/ta_MAX.c \ + ../../../../../src/ta_func/ta_MAXINDEX.c \ + ../../../../../src/ta_func/ta_MEDPRICE.c \ + ../../../../../src/ta_func/ta_MFI.c \ + ../../../../../src/ta_func/ta_MIDPOINT.c \ + ../../../../../src/ta_func/ta_MIDPRICE.c \ + ../../../../../src/ta_func/ta_MIN.c \ + ../../../../../src/ta_func/ta_MININDEX.c \ + ../../../../../src/ta_func/ta_MINMAX.c \ + ../../../../../src/ta_func/ta_MINMAXINDEX.c \ + ../../../../../src/ta_func/ta_MINUS_DI.c \ + ../../../../../src/ta_func/ta_MINUS_DM.c \ + ../../../../../src/ta_func/ta_MOM.c \ + ../../../../../src/ta_func/ta_MULT.c \ + ../../../../../src/ta_func/ta_NATR.c \ + ../../../../../src/ta_func/ta_OBV.c \ + ../../../../../src/ta_func/ta_PLUS_DI.c \ + ../../../../../src/ta_func/ta_PLUS_DM.c \ + ../../../../../src/ta_func/ta_PPO.c \ + ../../../../../src/ta_func/ta_ROC.c \ + ../../../../../src/ta_func/ta_ROCP.c \ + ../../../../../src/ta_func/ta_ROCR.c \ + ../../../../../src/ta_func/ta_ROCR100.c \ + ../../../../../src/ta_func/ta_RSI.c \ + ../../../../../src/ta_func/ta_SAR.c \ + ../../../../../src/ta_func/ta_SAREXT.c \ + ../../../../../src/ta_func/ta_SIN.c \ + ../../../../../src/ta_func/ta_SINH.c \ + ../../../../../src/ta_func/ta_SMA.c \ + ../../../../../src/ta_func/ta_SQRT.c \ + ../../../../../src/ta_func/ta_STDDEV.c \ + ../../../../../src/ta_func/ta_STOCH.c \ + ../../../../../src/ta_func/ta_STOCHF.c \ + ../../../../../src/ta_func/ta_STOCHRSI.c \ + ../../../../../src/ta_func/ta_SUB.c \ + ../../../../../src/ta_func/ta_SUM.c \ + ../../../../../src/ta_func/ta_T3.c \ + ../../../../../src/ta_func/ta_TAN.c \ + ../../../../../src/ta_func/ta_TANH.c \ + ../../../../../src/ta_func/ta_TEMA.c \ + ../../../../../src/ta_func/ta_TRANGE.c \ + ../../../../../src/ta_func/ta_TRIMA.c \ + ../../../../../src/ta_func/ta_TRIX.c \ + ../../../../../src/ta_func/ta_TSF.c \ + ../../../../../src/ta_func/ta_TYPPRICE.c \ + ../../../../../src/ta_func/ta_ULTOSC.c \ + ../../../../../src/ta_func/ta_VAR.c \ + ../../../../../src/ta_func/ta_WCLPRICE.c \ + ../../../../../src/ta_func/ta_WILLR.c \ + ../../../../../src/ta_func/ta_WMA.c +OBJECTS = ../../../../../temp/cmd/ta_utility.o \ + ../../../../../temp/cmd/ta_ACOS.o \ + ../../../../../temp/cmd/ta_AD.o \ + ../../../../../temp/cmd/ta_ADD.o \ + ../../../../../temp/cmd/ta_ADOSC.o \ + ../../../../../temp/cmd/ta_ADX.o \ + ../../../../../temp/cmd/ta_ADXR.o \ + ../../../../../temp/cmd/ta_APO.o \ + ../../../../../temp/cmd/ta_AROON.o \ + ../../../../../temp/cmd/ta_AROONOSC.o \ + ../../../../../temp/cmd/ta_ASIN.o \ + ../../../../../temp/cmd/ta_ATAN.o \ + ../../../../../temp/cmd/ta_ATR.o \ + ../../../../../temp/cmd/ta_AVGPRICE.o \ + ../../../../../temp/cmd/ta_BBANDS.o \ + ../../../../../temp/cmd/ta_BETA.o \ + ../../../../../temp/cmd/ta_BOP.o \ + ../../../../../temp/cmd/ta_CCI.o \ + ../../../../../temp/cmd/ta_CDL2CROWS.o \ + ../../../../../temp/cmd/ta_CDL3BLACKCROWS.o \ + ../../../../../temp/cmd/ta_CDL3INSIDE.o \ + ../../../../../temp/cmd/ta_CDL3LINESTRIKE.o \ + ../../../../../temp/cmd/ta_CDL3OUTSIDE.o \ + ../../../../../temp/cmd/ta_CDL3STARSINSOUTH.o \ + ../../../../../temp/cmd/ta_CDL3WHITESOLDIERS.o \ + ../../../../../temp/cmd/ta_CDLABANDONEDBABY.o \ + ../../../../../temp/cmd/ta_CDLADVANCEBLOCK.o \ + ../../../../../temp/cmd/ta_CDLBELTHOLD.o \ + ../../../../../temp/cmd/ta_CDLBREAKAWAY.o \ + ../../../../../temp/cmd/ta_CDLCLOSINGMARUBOZU.o \ + ../../../../../temp/cmd/ta_CDLCONCEALBABYSWALL.o \ + ../../../../../temp/cmd/ta_CDLCOUNTERATTACK.o \ + ../../../../../temp/cmd/ta_CDLDARKCLOUDCOVER.o \ + ../../../../../temp/cmd/ta_CDLDOJI.o \ + ../../../../../temp/cmd/ta_CDLDOJISTAR.o \ + ../../../../../temp/cmd/ta_CDLDRAGONFLYDOJI.o \ + ../../../../../temp/cmd/ta_CDLENGULFING.o \ + ../../../../../temp/cmd/ta_CDLEVENINGDOJISTAR.o \ + ../../../../../temp/cmd/ta_CDLEVENINGSTAR.o \ + ../../../../../temp/cmd/ta_CDLGAPSIDESIDEWHITE.o \ + ../../../../../temp/cmd/ta_CDLGRAVESTONEDOJI.o \ + ../../../../../temp/cmd/ta_CDLHAMMER.o \ + ../../../../../temp/cmd/ta_CDLHANGINGMAN.o \ + ../../../../../temp/cmd/ta_CDLHARAMI.o \ + ../../../../../temp/cmd/ta_CDLHARAMICROSS.o \ + ../../../../../temp/cmd/ta_CDLHIGHWAVE.o \ + ../../../../../temp/cmd/ta_CDLHIKKAKE.o \ + ../../../../../temp/cmd/ta_CDLHIKKAKEMOD.o \ + ../../../../../temp/cmd/ta_CDLHOMINGPIGEON.o \ + ../../../../../temp/cmd/ta_CDLIDENTICAL3CROWS.o \ + ../../../../../temp/cmd/ta_CDLINNECK.o \ + ../../../../../temp/cmd/ta_CDLINVERTEDHAMMER.o \ + ../../../../../temp/cmd/ta_CDLKICKING.o \ + ../../../../../temp/cmd/ta_CDLKICKINGBYLENGTH.o \ + ../../../../../temp/cmd/ta_CDLLADDERBOTTOM.o \ + ../../../../../temp/cmd/ta_CDLLONGLEGGEDDOJI.o \ + ../../../../../temp/cmd/ta_CDLLONGLINE.o \ + ../../../../../temp/cmd/ta_CDLMARUBOZU.o \ + ../../../../../temp/cmd/ta_CDLMATCHINGLOW.o \ + ../../../../../temp/cmd/ta_CDLMATHOLD.o \ + ../../../../../temp/cmd/ta_CDLMORNINGDOJISTAR.o \ + ../../../../../temp/cmd/ta_CDLMORNINGSTAR.o \ + ../../../../../temp/cmd/ta_CDLONNECK.o \ + ../../../../../temp/cmd/ta_CDLPIERCING.o \ + ../../../../../temp/cmd/ta_CDLRICKSHAWMAN.o \ + ../../../../../temp/cmd/ta_CDLRISEFALL3METHODS.o \ + ../../../../../temp/cmd/ta_CDLSEPARATINGLINES.o \ + ../../../../../temp/cmd/ta_CDLSHOOTINGSTAR.o \ + ../../../../../temp/cmd/ta_CDLSHORTLINE.o \ + ../../../../../temp/cmd/ta_CDLSPINNINGTOP.o \ + ../../../../../temp/cmd/ta_CDLSTALLEDPATTERN.o \ + ../../../../../temp/cmd/ta_CDLSTICKSANDWICH.o \ + ../../../../../temp/cmd/ta_CDLTAKURI.o \ + ../../../../../temp/cmd/ta_CDLTASUKIGAP.o \ + ../../../../../temp/cmd/ta_CDLTHRUSTING.o \ + ../../../../../temp/cmd/ta_CDLTRISTAR.o \ + ../../../../../temp/cmd/ta_CDLUNIQUE3RIVER.o \ + ../../../../../temp/cmd/ta_CDLUPSIDEGAP2CROWS.o \ + ../../../../../temp/cmd/ta_CDLXSIDEGAP3METHODS.o \ + ../../../../../temp/cmd/ta_CEIL.o \ + ../../../../../temp/cmd/ta_CMO.o \ + ../../../../../temp/cmd/ta_CORREL.o \ + ../../../../../temp/cmd/ta_COS.o \ + ../../../../../temp/cmd/ta_COSH.o \ + ../../../../../temp/cmd/ta_DEMA.o \ + ../../../../../temp/cmd/ta_DIV.o \ + ../../../../../temp/cmd/ta_DX.o \ + ../../../../../temp/cmd/ta_EMA.o \ + ../../../../../temp/cmd/ta_EXP.o \ + ../../../../../temp/cmd/ta_FLOOR.o \ + ../../../../../temp/cmd/ta_HT_DCPERIOD.o \ + ../../../../../temp/cmd/ta_HT_DCPHASE.o \ + ../../../../../temp/cmd/ta_HT_PHASOR.o \ + ../../../../../temp/cmd/ta_HT_SINE.o \ + ../../../../../temp/cmd/ta_HT_TRENDLINE.o \ + ../../../../../temp/cmd/ta_HT_TRENDMODE.o \ + ../../../../../temp/cmd/ta_KAMA.o \ + ../../../../../temp/cmd/ta_LINEARREG.o \ + ../../../../../temp/cmd/ta_LINEARREG_ANGLE.o \ + ../../../../../temp/cmd/ta_LINEARREG_INTERCEPT.o \ + ../../../../../temp/cmd/ta_LINEARREG_SLOPE.o \ + ../../../../../temp/cmd/ta_LN.o \ + ../../../../../temp/cmd/ta_LOG10.o \ + ../../../../../temp/cmd/ta_MA.o \ + ../../../../../temp/cmd/ta_MACD.o \ + ../../../../../temp/cmd/ta_MACDEXT.o \ + ../../../../../temp/cmd/ta_MACDFIX.o \ + ../../../../../temp/cmd/ta_MAMA.o \ + ../../../../../temp/cmd/ta_MAVP.o \ + ../../../../../temp/cmd/ta_MAX.o \ + ../../../../../temp/cmd/ta_MAXINDEX.o \ + ../../../../../temp/cmd/ta_MEDPRICE.o \ + ../../../../../temp/cmd/ta_MFI.o \ + ../../../../../temp/cmd/ta_MIDPOINT.o \ + ../../../../../temp/cmd/ta_MIDPRICE.o \ + ../../../../../temp/cmd/ta_MIN.o \ + ../../../../../temp/cmd/ta_MININDEX.o \ + ../../../../../temp/cmd/ta_MINMAX.o \ + ../../../../../temp/cmd/ta_MINMAXINDEX.o \ + ../../../../../temp/cmd/ta_MINUS_DI.o \ + ../../../../../temp/cmd/ta_MINUS_DM.o \ + ../../../../../temp/cmd/ta_MOM.o \ + ../../../../../temp/cmd/ta_MULT.o \ + ../../../../../temp/cmd/ta_NATR.o \ + ../../../../../temp/cmd/ta_OBV.o \ + ../../../../../temp/cmd/ta_PLUS_DI.o \ + ../../../../../temp/cmd/ta_PLUS_DM.o \ + ../../../../../temp/cmd/ta_PPO.o \ + ../../../../../temp/cmd/ta_ROC.o \ + ../../../../../temp/cmd/ta_ROCP.o \ + ../../../../../temp/cmd/ta_ROCR.o \ + ../../../../../temp/cmd/ta_ROCR100.o \ + ../../../../../temp/cmd/ta_RSI.o \ + ../../../../../temp/cmd/ta_SAR.o \ + ../../../../../temp/cmd/ta_SAREXT.o \ + ../../../../../temp/cmd/ta_SIN.o \ + ../../../../../temp/cmd/ta_SINH.o \ + ../../../../../temp/cmd/ta_SMA.o \ + ../../../../../temp/cmd/ta_SQRT.o \ + ../../../../../temp/cmd/ta_STDDEV.o \ + ../../../../../temp/cmd/ta_STOCH.o \ + ../../../../../temp/cmd/ta_STOCHF.o \ + ../../../../../temp/cmd/ta_STOCHRSI.o \ + ../../../../../temp/cmd/ta_SUB.o \ + ../../../../../temp/cmd/ta_SUM.o \ + ../../../../../temp/cmd/ta_T3.o \ + ../../../../../temp/cmd/ta_TAN.o \ + ../../../../../temp/cmd/ta_TANH.o \ + ../../../../../temp/cmd/ta_TEMA.o \ + ../../../../../temp/cmd/ta_TRANGE.o \ + ../../../../../temp/cmd/ta_TRIMA.o \ + ../../../../../temp/cmd/ta_TRIX.o \ + ../../../../../temp/cmd/ta_TSF.o \ + ../../../../../temp/cmd/ta_TYPPRICE.o \ + ../../../../../temp/cmd/ta_ULTOSC.o \ + ../../../../../temp/cmd/ta_VAR.o \ + ../../../../../temp/cmd/ta_WCLPRICE.o \ + ../../../../../temp/cmd/ta_WILLR.o \ + ../../../../../temp/cmd/ta_WMA.o +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ../../../../../lib/libta_func_cmd.a +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .C .c + +.cpp.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cxx.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cc.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.C.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.c.o: + $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $< + +####### Build rules + + +all: $(TARGET) + +staticlib: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + -rm -f $(TARGET) + $(AR) $(TARGET) $(OBJECTS) $(OBJMOC) + +moc: $(SRCMOC) + +clean: + -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) + -rm -f *~ core + +####### Sub-libraries + + +###### Combined headers + + +####### Compile + +../../../../../temp/cmd/ta_utility.o: ../../../../../src/ta_func/ta_utility.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_utility.o ../../../../../src/ta_func/ta_utility.c + +../../../../../temp/cmd/ta_ACOS.o: ../../../../../src/ta_func/ta_ACOS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_ACOS.o ../../../../../src/ta_func/ta_ACOS.c + +../../../../../temp/cmd/ta_AD.o: ../../../../../src/ta_func/ta_AD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_AD.o ../../../../../src/ta_func/ta_AD.c + +../../../../../temp/cmd/ta_ADD.o: ../../../../../src/ta_func/ta_ADD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_ADD.o ../../../../../src/ta_func/ta_ADD.c + +../../../../../temp/cmd/ta_ADOSC.o: ../../../../../src/ta_func/ta_ADOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_ADOSC.o ../../../../../src/ta_func/ta_ADOSC.c + +../../../../../temp/cmd/ta_ADX.o: ../../../../../src/ta_func/ta_ADX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_ADX.o ../../../../../src/ta_func/ta_ADX.c + +../../../../../temp/cmd/ta_ADXR.o: ../../../../../src/ta_func/ta_ADXR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_ADXR.o ../../../../../src/ta_func/ta_ADXR.c + +../../../../../temp/cmd/ta_APO.o: ../../../../../src/ta_func/ta_APO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_APO.o ../../../../../src/ta_func/ta_APO.c + +../../../../../temp/cmd/ta_AROON.o: ../../../../../src/ta_func/ta_AROON.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_AROON.o ../../../../../src/ta_func/ta_AROON.c + +../../../../../temp/cmd/ta_AROONOSC.o: ../../../../../src/ta_func/ta_AROONOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_AROONOSC.o ../../../../../src/ta_func/ta_AROONOSC.c + +../../../../../temp/cmd/ta_ASIN.o: ../../../../../src/ta_func/ta_ASIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_ASIN.o ../../../../../src/ta_func/ta_ASIN.c + +../../../../../temp/cmd/ta_ATAN.o: ../../../../../src/ta_func/ta_ATAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_ATAN.o ../../../../../src/ta_func/ta_ATAN.c + +../../../../../temp/cmd/ta_ATR.o: ../../../../../src/ta_func/ta_ATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_ATR.o ../../../../../src/ta_func/ta_ATR.c + +../../../../../temp/cmd/ta_AVGPRICE.o: ../../../../../src/ta_func/ta_AVGPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_AVGPRICE.o ../../../../../src/ta_func/ta_AVGPRICE.c + +../../../../../temp/cmd/ta_BBANDS.o: ../../../../../src/ta_func/ta_BBANDS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_BBANDS.o ../../../../../src/ta_func/ta_BBANDS.c + +../../../../../temp/cmd/ta_BETA.o: ../../../../../src/ta_func/ta_BETA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_BETA.o ../../../../../src/ta_func/ta_BETA.c + +../../../../../temp/cmd/ta_BOP.o: ../../../../../src/ta_func/ta_BOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_BOP.o ../../../../../src/ta_func/ta_BOP.c + +../../../../../temp/cmd/ta_CCI.o: ../../../../../src/ta_func/ta_CCI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CCI.o ../../../../../src/ta_func/ta_CCI.c + +../../../../../temp/cmd/ta_CDL2CROWS.o: ../../../../../src/ta_func/ta_CDL2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDL2CROWS.o ../../../../../src/ta_func/ta_CDL2CROWS.c + +../../../../../temp/cmd/ta_CDL3BLACKCROWS.o: ../../../../../src/ta_func/ta_CDL3BLACKCROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDL3BLACKCROWS.o ../../../../../src/ta_func/ta_CDL3BLACKCROWS.c + +../../../../../temp/cmd/ta_CDL3INSIDE.o: ../../../../../src/ta_func/ta_CDL3INSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDL3INSIDE.o ../../../../../src/ta_func/ta_CDL3INSIDE.c + +../../../../../temp/cmd/ta_CDL3LINESTRIKE.o: ../../../../../src/ta_func/ta_CDL3LINESTRIKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDL3LINESTRIKE.o ../../../../../src/ta_func/ta_CDL3LINESTRIKE.c + +../../../../../temp/cmd/ta_CDL3OUTSIDE.o: ../../../../../src/ta_func/ta_CDL3OUTSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDL3OUTSIDE.o ../../../../../src/ta_func/ta_CDL3OUTSIDE.c + +../../../../../temp/cmd/ta_CDL3STARSINSOUTH.o: ../../../../../src/ta_func/ta_CDL3STARSINSOUTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDL3STARSINSOUTH.o ../../../../../src/ta_func/ta_CDL3STARSINSOUTH.c + +../../../../../temp/cmd/ta_CDL3WHITESOLDIERS.o: ../../../../../src/ta_func/ta_CDL3WHITESOLDIERS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDL3WHITESOLDIERS.o ../../../../../src/ta_func/ta_CDL3WHITESOLDIERS.c + +../../../../../temp/cmd/ta_CDLABANDONEDBABY.o: ../../../../../src/ta_func/ta_CDLABANDONEDBABY.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLABANDONEDBABY.o ../../../../../src/ta_func/ta_CDLABANDONEDBABY.c + +../../../../../temp/cmd/ta_CDLADVANCEBLOCK.o: ../../../../../src/ta_func/ta_CDLADVANCEBLOCK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLADVANCEBLOCK.o ../../../../../src/ta_func/ta_CDLADVANCEBLOCK.c + +../../../../../temp/cmd/ta_CDLBELTHOLD.o: ../../../../../src/ta_func/ta_CDLBELTHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLBELTHOLD.o ../../../../../src/ta_func/ta_CDLBELTHOLD.c + +../../../../../temp/cmd/ta_CDLBREAKAWAY.o: ../../../../../src/ta_func/ta_CDLBREAKAWAY.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLBREAKAWAY.o ../../../../../src/ta_func/ta_CDLBREAKAWAY.c + +../../../../../temp/cmd/ta_CDLCLOSINGMARUBOZU.o: ../../../../../src/ta_func/ta_CDLCLOSINGMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLCLOSINGMARUBOZU.o ../../../../../src/ta_func/ta_CDLCLOSINGMARUBOZU.c + +../../../../../temp/cmd/ta_CDLCONCEALBABYSWALL.o: ../../../../../src/ta_func/ta_CDLCONCEALBABYSWALL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLCONCEALBABYSWALL.o ../../../../../src/ta_func/ta_CDLCONCEALBABYSWALL.c + +../../../../../temp/cmd/ta_CDLCOUNTERATTACK.o: ../../../../../src/ta_func/ta_CDLCOUNTERATTACK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLCOUNTERATTACK.o ../../../../../src/ta_func/ta_CDLCOUNTERATTACK.c + +../../../../../temp/cmd/ta_CDLDARKCLOUDCOVER.o: ../../../../../src/ta_func/ta_CDLDARKCLOUDCOVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLDARKCLOUDCOVER.o ../../../../../src/ta_func/ta_CDLDARKCLOUDCOVER.c + +../../../../../temp/cmd/ta_CDLDOJI.o: ../../../../../src/ta_func/ta_CDLDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLDOJI.o ../../../../../src/ta_func/ta_CDLDOJI.c + +../../../../../temp/cmd/ta_CDLDOJISTAR.o: ../../../../../src/ta_func/ta_CDLDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLDOJISTAR.o ../../../../../src/ta_func/ta_CDLDOJISTAR.c + +../../../../../temp/cmd/ta_CDLDRAGONFLYDOJI.o: ../../../../../src/ta_func/ta_CDLDRAGONFLYDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLDRAGONFLYDOJI.o ../../../../../src/ta_func/ta_CDLDRAGONFLYDOJI.c + +../../../../../temp/cmd/ta_CDLENGULFING.o: ../../../../../src/ta_func/ta_CDLENGULFING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLENGULFING.o ../../../../../src/ta_func/ta_CDLENGULFING.c + +../../../../../temp/cmd/ta_CDLEVENINGDOJISTAR.o: ../../../../../src/ta_func/ta_CDLEVENINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLEVENINGDOJISTAR.o ../../../../../src/ta_func/ta_CDLEVENINGDOJISTAR.c + +../../../../../temp/cmd/ta_CDLEVENINGSTAR.o: ../../../../../src/ta_func/ta_CDLEVENINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLEVENINGSTAR.o ../../../../../src/ta_func/ta_CDLEVENINGSTAR.c + +../../../../../temp/cmd/ta_CDLGAPSIDESIDEWHITE.o: ../../../../../src/ta_func/ta_CDLGAPSIDESIDEWHITE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLGAPSIDESIDEWHITE.o ../../../../../src/ta_func/ta_CDLGAPSIDESIDEWHITE.c + +../../../../../temp/cmd/ta_CDLGRAVESTONEDOJI.o: ../../../../../src/ta_func/ta_CDLGRAVESTONEDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLGRAVESTONEDOJI.o ../../../../../src/ta_func/ta_CDLGRAVESTONEDOJI.c + +../../../../../temp/cmd/ta_CDLHAMMER.o: ../../../../../src/ta_func/ta_CDLHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLHAMMER.o ../../../../../src/ta_func/ta_CDLHAMMER.c + +../../../../../temp/cmd/ta_CDLHANGINGMAN.o: ../../../../../src/ta_func/ta_CDLHANGINGMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLHANGINGMAN.o ../../../../../src/ta_func/ta_CDLHANGINGMAN.c + +../../../../../temp/cmd/ta_CDLHARAMI.o: ../../../../../src/ta_func/ta_CDLHARAMI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLHARAMI.o ../../../../../src/ta_func/ta_CDLHARAMI.c + +../../../../../temp/cmd/ta_CDLHARAMICROSS.o: ../../../../../src/ta_func/ta_CDLHARAMICROSS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLHARAMICROSS.o ../../../../../src/ta_func/ta_CDLHARAMICROSS.c + +../../../../../temp/cmd/ta_CDLHIGHWAVE.o: ../../../../../src/ta_func/ta_CDLHIGHWAVE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLHIGHWAVE.o ../../../../../src/ta_func/ta_CDLHIGHWAVE.c + +../../../../../temp/cmd/ta_CDLHIKKAKE.o: ../../../../../src/ta_func/ta_CDLHIKKAKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLHIKKAKE.o ../../../../../src/ta_func/ta_CDLHIKKAKE.c + +../../../../../temp/cmd/ta_CDLHIKKAKEMOD.o: ../../../../../src/ta_func/ta_CDLHIKKAKEMOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLHIKKAKEMOD.o ../../../../../src/ta_func/ta_CDLHIKKAKEMOD.c + +../../../../../temp/cmd/ta_CDLHOMINGPIGEON.o: ../../../../../src/ta_func/ta_CDLHOMINGPIGEON.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLHOMINGPIGEON.o ../../../../../src/ta_func/ta_CDLHOMINGPIGEON.c + +../../../../../temp/cmd/ta_CDLIDENTICAL3CROWS.o: ../../../../../src/ta_func/ta_CDLIDENTICAL3CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLIDENTICAL3CROWS.o ../../../../../src/ta_func/ta_CDLIDENTICAL3CROWS.c + +../../../../../temp/cmd/ta_CDLINNECK.o: ../../../../../src/ta_func/ta_CDLINNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLINNECK.o ../../../../../src/ta_func/ta_CDLINNECK.c + +../../../../../temp/cmd/ta_CDLINVERTEDHAMMER.o: ../../../../../src/ta_func/ta_CDLINVERTEDHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLINVERTEDHAMMER.o ../../../../../src/ta_func/ta_CDLINVERTEDHAMMER.c + +../../../../../temp/cmd/ta_CDLKICKING.o: ../../../../../src/ta_func/ta_CDLKICKING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLKICKING.o ../../../../../src/ta_func/ta_CDLKICKING.c + +../../../../../temp/cmd/ta_CDLKICKINGBYLENGTH.o: ../../../../../src/ta_func/ta_CDLKICKINGBYLENGTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLKICKINGBYLENGTH.o ../../../../../src/ta_func/ta_CDLKICKINGBYLENGTH.c + +../../../../../temp/cmd/ta_CDLLADDERBOTTOM.o: ../../../../../src/ta_func/ta_CDLLADDERBOTTOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLLADDERBOTTOM.o ../../../../../src/ta_func/ta_CDLLADDERBOTTOM.c + +../../../../../temp/cmd/ta_CDLLONGLEGGEDDOJI.o: ../../../../../src/ta_func/ta_CDLLONGLEGGEDDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLLONGLEGGEDDOJI.o ../../../../../src/ta_func/ta_CDLLONGLEGGEDDOJI.c + +../../../../../temp/cmd/ta_CDLLONGLINE.o: ../../../../../src/ta_func/ta_CDLLONGLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLLONGLINE.o ../../../../../src/ta_func/ta_CDLLONGLINE.c + +../../../../../temp/cmd/ta_CDLMARUBOZU.o: ../../../../../src/ta_func/ta_CDLMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLMARUBOZU.o ../../../../../src/ta_func/ta_CDLMARUBOZU.c + +../../../../../temp/cmd/ta_CDLMATCHINGLOW.o: ../../../../../src/ta_func/ta_CDLMATCHINGLOW.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLMATCHINGLOW.o ../../../../../src/ta_func/ta_CDLMATCHINGLOW.c + +../../../../../temp/cmd/ta_CDLMATHOLD.o: ../../../../../src/ta_func/ta_CDLMATHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLMATHOLD.o ../../../../../src/ta_func/ta_CDLMATHOLD.c + +../../../../../temp/cmd/ta_CDLMORNINGDOJISTAR.o: ../../../../../src/ta_func/ta_CDLMORNINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLMORNINGDOJISTAR.o ../../../../../src/ta_func/ta_CDLMORNINGDOJISTAR.c + +../../../../../temp/cmd/ta_CDLMORNINGSTAR.o: ../../../../../src/ta_func/ta_CDLMORNINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLMORNINGSTAR.o ../../../../../src/ta_func/ta_CDLMORNINGSTAR.c + +../../../../../temp/cmd/ta_CDLONNECK.o: ../../../../../src/ta_func/ta_CDLONNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLONNECK.o ../../../../../src/ta_func/ta_CDLONNECK.c + +../../../../../temp/cmd/ta_CDLPIERCING.o: ../../../../../src/ta_func/ta_CDLPIERCING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLPIERCING.o ../../../../../src/ta_func/ta_CDLPIERCING.c + +../../../../../temp/cmd/ta_CDLRICKSHAWMAN.o: ../../../../../src/ta_func/ta_CDLRICKSHAWMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLRICKSHAWMAN.o ../../../../../src/ta_func/ta_CDLRICKSHAWMAN.c + +../../../../../temp/cmd/ta_CDLRISEFALL3METHODS.o: ../../../../../src/ta_func/ta_CDLRISEFALL3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLRISEFALL3METHODS.o ../../../../../src/ta_func/ta_CDLRISEFALL3METHODS.c + +../../../../../temp/cmd/ta_CDLSEPARATINGLINES.o: ../../../../../src/ta_func/ta_CDLSEPARATINGLINES.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLSEPARATINGLINES.o ../../../../../src/ta_func/ta_CDLSEPARATINGLINES.c + +../../../../../temp/cmd/ta_CDLSHOOTINGSTAR.o: ../../../../../src/ta_func/ta_CDLSHOOTINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLSHOOTINGSTAR.o ../../../../../src/ta_func/ta_CDLSHOOTINGSTAR.c + +../../../../../temp/cmd/ta_CDLSHORTLINE.o: ../../../../../src/ta_func/ta_CDLSHORTLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLSHORTLINE.o ../../../../../src/ta_func/ta_CDLSHORTLINE.c + +../../../../../temp/cmd/ta_CDLSPINNINGTOP.o: ../../../../../src/ta_func/ta_CDLSPINNINGTOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLSPINNINGTOP.o ../../../../../src/ta_func/ta_CDLSPINNINGTOP.c + +../../../../../temp/cmd/ta_CDLSTALLEDPATTERN.o: ../../../../../src/ta_func/ta_CDLSTALLEDPATTERN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLSTALLEDPATTERN.o ../../../../../src/ta_func/ta_CDLSTALLEDPATTERN.c + +../../../../../temp/cmd/ta_CDLSTICKSANDWICH.o: ../../../../../src/ta_func/ta_CDLSTICKSANDWICH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLSTICKSANDWICH.o ../../../../../src/ta_func/ta_CDLSTICKSANDWICH.c + +../../../../../temp/cmd/ta_CDLTAKURI.o: ../../../../../src/ta_func/ta_CDLTAKURI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLTAKURI.o ../../../../../src/ta_func/ta_CDLTAKURI.c + +../../../../../temp/cmd/ta_CDLTASUKIGAP.o: ../../../../../src/ta_func/ta_CDLTASUKIGAP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLTASUKIGAP.o ../../../../../src/ta_func/ta_CDLTASUKIGAP.c + +../../../../../temp/cmd/ta_CDLTHRUSTING.o: ../../../../../src/ta_func/ta_CDLTHRUSTING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLTHRUSTING.o ../../../../../src/ta_func/ta_CDLTHRUSTING.c + +../../../../../temp/cmd/ta_CDLTRISTAR.o: ../../../../../src/ta_func/ta_CDLTRISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLTRISTAR.o ../../../../../src/ta_func/ta_CDLTRISTAR.c + +../../../../../temp/cmd/ta_CDLUNIQUE3RIVER.o: ../../../../../src/ta_func/ta_CDLUNIQUE3RIVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLUNIQUE3RIVER.o ../../../../../src/ta_func/ta_CDLUNIQUE3RIVER.c + +../../../../../temp/cmd/ta_CDLUPSIDEGAP2CROWS.o: ../../../../../src/ta_func/ta_CDLUPSIDEGAP2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLUPSIDEGAP2CROWS.o ../../../../../src/ta_func/ta_CDLUPSIDEGAP2CROWS.c + +../../../../../temp/cmd/ta_CDLXSIDEGAP3METHODS.o: ../../../../../src/ta_func/ta_CDLXSIDEGAP3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLXSIDEGAP3METHODS.o ../../../../../src/ta_func/ta_CDLXSIDEGAP3METHODS.c + +../../../../../temp/cmd/ta_CEIL.o: ../../../../../src/ta_func/ta_CEIL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CEIL.o ../../../../../src/ta_func/ta_CEIL.c + +../../../../../temp/cmd/ta_CMO.o: ../../../../../src/ta_func/ta_CMO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CMO.o ../../../../../src/ta_func/ta_CMO.c + +../../../../../temp/cmd/ta_CORREL.o: ../../../../../src/ta_func/ta_CORREL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CORREL.o ../../../../../src/ta_func/ta_CORREL.c + +../../../../../temp/cmd/ta_COS.o: ../../../../../src/ta_func/ta_COS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_COS.o ../../../../../src/ta_func/ta_COS.c + +../../../../../temp/cmd/ta_COSH.o: ../../../../../src/ta_func/ta_COSH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_COSH.o ../../../../../src/ta_func/ta_COSH.c + +../../../../../temp/cmd/ta_DEMA.o: ../../../../../src/ta_func/ta_DEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_DEMA.o ../../../../../src/ta_func/ta_DEMA.c + +../../../../../temp/cmd/ta_DIV.o: ../../../../../src/ta_func/ta_DIV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_DIV.o ../../../../../src/ta_func/ta_DIV.c + +../../../../../temp/cmd/ta_DX.o: ../../../../../src/ta_func/ta_DX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_DX.o ../../../../../src/ta_func/ta_DX.c + +../../../../../temp/cmd/ta_EMA.o: ../../../../../src/ta_func/ta_EMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_EMA.o ../../../../../src/ta_func/ta_EMA.c + +../../../../../temp/cmd/ta_EXP.o: ../../../../../src/ta_func/ta_EXP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_EXP.o ../../../../../src/ta_func/ta_EXP.c + +../../../../../temp/cmd/ta_FLOOR.o: ../../../../../src/ta_func/ta_FLOOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_FLOOR.o ../../../../../src/ta_func/ta_FLOOR.c + +../../../../../temp/cmd/ta_HT_DCPERIOD.o: ../../../../../src/ta_func/ta_HT_DCPERIOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_HT_DCPERIOD.o ../../../../../src/ta_func/ta_HT_DCPERIOD.c + +../../../../../temp/cmd/ta_HT_DCPHASE.o: ../../../../../src/ta_func/ta_HT_DCPHASE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_HT_DCPHASE.o ../../../../../src/ta_func/ta_HT_DCPHASE.c + +../../../../../temp/cmd/ta_HT_PHASOR.o: ../../../../../src/ta_func/ta_HT_PHASOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_HT_PHASOR.o ../../../../../src/ta_func/ta_HT_PHASOR.c + +../../../../../temp/cmd/ta_HT_SINE.o: ../../../../../src/ta_func/ta_HT_SINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_HT_SINE.o ../../../../../src/ta_func/ta_HT_SINE.c + +../../../../../temp/cmd/ta_HT_TRENDLINE.o: ../../../../../src/ta_func/ta_HT_TRENDLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_HT_TRENDLINE.o ../../../../../src/ta_func/ta_HT_TRENDLINE.c + +../../../../../temp/cmd/ta_HT_TRENDMODE.o: ../../../../../src/ta_func/ta_HT_TRENDMODE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_HT_TRENDMODE.o ../../../../../src/ta_func/ta_HT_TRENDMODE.c + +../../../../../temp/cmd/ta_KAMA.o: ../../../../../src/ta_func/ta_KAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_KAMA.o ../../../../../src/ta_func/ta_KAMA.c + +../../../../../temp/cmd/ta_LINEARREG.o: ../../../../../src/ta_func/ta_LINEARREG.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_LINEARREG.o ../../../../../src/ta_func/ta_LINEARREG.c + +../../../../../temp/cmd/ta_LINEARREG_ANGLE.o: ../../../../../src/ta_func/ta_LINEARREG_ANGLE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_LINEARREG_ANGLE.o ../../../../../src/ta_func/ta_LINEARREG_ANGLE.c + +../../../../../temp/cmd/ta_LINEARREG_INTERCEPT.o: ../../../../../src/ta_func/ta_LINEARREG_INTERCEPT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_LINEARREG_INTERCEPT.o ../../../../../src/ta_func/ta_LINEARREG_INTERCEPT.c + +../../../../../temp/cmd/ta_LINEARREG_SLOPE.o: ../../../../../src/ta_func/ta_LINEARREG_SLOPE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_LINEARREG_SLOPE.o ../../../../../src/ta_func/ta_LINEARREG_SLOPE.c + +../../../../../temp/cmd/ta_LN.o: ../../../../../src/ta_func/ta_LN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_LN.o ../../../../../src/ta_func/ta_LN.c + +../../../../../temp/cmd/ta_LOG10.o: ../../../../../src/ta_func/ta_LOG10.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_LOG10.o ../../../../../src/ta_func/ta_LOG10.c + +../../../../../temp/cmd/ta_MA.o: ../../../../../src/ta_func/ta_MA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_MA.o ../../../../../src/ta_func/ta_MA.c + +../../../../../temp/cmd/ta_MACD.o: ../../../../../src/ta_func/ta_MACD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_MACD.o ../../../../../src/ta_func/ta_MACD.c + +../../../../../temp/cmd/ta_MACDEXT.o: ../../../../../src/ta_func/ta_MACDEXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_MACDEXT.o ../../../../../src/ta_func/ta_MACDEXT.c + +../../../../../temp/cmd/ta_MACDFIX.o: ../../../../../src/ta_func/ta_MACDFIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_MACDFIX.o ../../../../../src/ta_func/ta_MACDFIX.c + +../../../../../temp/cmd/ta_MAMA.o: ../../../../../src/ta_func/ta_MAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_MAMA.o ../../../../../src/ta_func/ta_MAMA.c + +../../../../../temp/cmd/ta_MAVP.o: ../../../../../src/ta_func/ta_MAVP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_MAVP.o ../../../../../src/ta_func/ta_MAVP.c + +../../../../../temp/cmd/ta_MAX.o: ../../../../../src/ta_func/ta_MAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_MAX.o ../../../../../src/ta_func/ta_MAX.c + +../../../../../temp/cmd/ta_MAXINDEX.o: ../../../../../src/ta_func/ta_MAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_MAXINDEX.o ../../../../../src/ta_func/ta_MAXINDEX.c + +../../../../../temp/cmd/ta_MEDPRICE.o: ../../../../../src/ta_func/ta_MEDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_MEDPRICE.o ../../../../../src/ta_func/ta_MEDPRICE.c + +../../../../../temp/cmd/ta_MFI.o: ../../../../../src/ta_func/ta_MFI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_MFI.o ../../../../../src/ta_func/ta_MFI.c + +../../../../../temp/cmd/ta_MIDPOINT.o: ../../../../../src/ta_func/ta_MIDPOINT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_MIDPOINT.o ../../../../../src/ta_func/ta_MIDPOINT.c + +../../../../../temp/cmd/ta_MIDPRICE.o: ../../../../../src/ta_func/ta_MIDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_MIDPRICE.o ../../../../../src/ta_func/ta_MIDPRICE.c + +../../../../../temp/cmd/ta_MIN.o: ../../../../../src/ta_func/ta_MIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_MIN.o ../../../../../src/ta_func/ta_MIN.c + +../../../../../temp/cmd/ta_MININDEX.o: ../../../../../src/ta_func/ta_MININDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_MININDEX.o ../../../../../src/ta_func/ta_MININDEX.c + +../../../../../temp/cmd/ta_MINMAX.o: ../../../../../src/ta_func/ta_MINMAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_MINMAX.o ../../../../../src/ta_func/ta_MINMAX.c + +../../../../../temp/cmd/ta_MINMAXINDEX.o: ../../../../../src/ta_func/ta_MINMAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_MINMAXINDEX.o ../../../../../src/ta_func/ta_MINMAXINDEX.c + +../../../../../temp/cmd/ta_MINUS_DI.o: ../../../../../src/ta_func/ta_MINUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_MINUS_DI.o ../../../../../src/ta_func/ta_MINUS_DI.c + +../../../../../temp/cmd/ta_MINUS_DM.o: ../../../../../src/ta_func/ta_MINUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_MINUS_DM.o ../../../../../src/ta_func/ta_MINUS_DM.c + +../../../../../temp/cmd/ta_MOM.o: ../../../../../src/ta_func/ta_MOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_MOM.o ../../../../../src/ta_func/ta_MOM.c + +../../../../../temp/cmd/ta_MULT.o: ../../../../../src/ta_func/ta_MULT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_MULT.o ../../../../../src/ta_func/ta_MULT.c + +../../../../../temp/cmd/ta_NATR.o: ../../../../../src/ta_func/ta_NATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_NATR.o ../../../../../src/ta_func/ta_NATR.c + +../../../../../temp/cmd/ta_OBV.o: ../../../../../src/ta_func/ta_OBV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_OBV.o ../../../../../src/ta_func/ta_OBV.c + +../../../../../temp/cmd/ta_PLUS_DI.o: ../../../../../src/ta_func/ta_PLUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_PLUS_DI.o ../../../../../src/ta_func/ta_PLUS_DI.c + +../../../../../temp/cmd/ta_PLUS_DM.o: ../../../../../src/ta_func/ta_PLUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_PLUS_DM.o ../../../../../src/ta_func/ta_PLUS_DM.c + +../../../../../temp/cmd/ta_PPO.o: ../../../../../src/ta_func/ta_PPO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_PPO.o ../../../../../src/ta_func/ta_PPO.c + +../../../../../temp/cmd/ta_ROC.o: ../../../../../src/ta_func/ta_ROC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_ROC.o ../../../../../src/ta_func/ta_ROC.c + +../../../../../temp/cmd/ta_ROCP.o: ../../../../../src/ta_func/ta_ROCP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_ROCP.o ../../../../../src/ta_func/ta_ROCP.c + +../../../../../temp/cmd/ta_ROCR.o: ../../../../../src/ta_func/ta_ROCR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_ROCR.o ../../../../../src/ta_func/ta_ROCR.c + +../../../../../temp/cmd/ta_ROCR100.o: ../../../../../src/ta_func/ta_ROCR100.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_ROCR100.o ../../../../../src/ta_func/ta_ROCR100.c + +../../../../../temp/cmd/ta_RSI.o: ../../../../../src/ta_func/ta_RSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_RSI.o ../../../../../src/ta_func/ta_RSI.c + +../../../../../temp/cmd/ta_SAR.o: ../../../../../src/ta_func/ta_SAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_SAR.o ../../../../../src/ta_func/ta_SAR.c + +../../../../../temp/cmd/ta_SAREXT.o: ../../../../../src/ta_func/ta_SAREXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_SAREXT.o ../../../../../src/ta_func/ta_SAREXT.c + +../../../../../temp/cmd/ta_SIN.o: ../../../../../src/ta_func/ta_SIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_SIN.o ../../../../../src/ta_func/ta_SIN.c + +../../../../../temp/cmd/ta_SINH.o: ../../../../../src/ta_func/ta_SINH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_SINH.o ../../../../../src/ta_func/ta_SINH.c + +../../../../../temp/cmd/ta_SMA.o: ../../../../../src/ta_func/ta_SMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_SMA.o ../../../../../src/ta_func/ta_SMA.c + +../../../../../temp/cmd/ta_SQRT.o: ../../../../../src/ta_func/ta_SQRT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_SQRT.o ../../../../../src/ta_func/ta_SQRT.c + +../../../../../temp/cmd/ta_STDDEV.o: ../../../../../src/ta_func/ta_STDDEV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_STDDEV.o ../../../../../src/ta_func/ta_STDDEV.c + +../../../../../temp/cmd/ta_STOCH.o: ../../../../../src/ta_func/ta_STOCH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_STOCH.o ../../../../../src/ta_func/ta_STOCH.c + +../../../../../temp/cmd/ta_STOCHF.o: ../../../../../src/ta_func/ta_STOCHF.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_STOCHF.o ../../../../../src/ta_func/ta_STOCHF.c + +../../../../../temp/cmd/ta_STOCHRSI.o: ../../../../../src/ta_func/ta_STOCHRSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_STOCHRSI.o ../../../../../src/ta_func/ta_STOCHRSI.c + +../../../../../temp/cmd/ta_SUB.o: ../../../../../src/ta_func/ta_SUB.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_SUB.o ../../../../../src/ta_func/ta_SUB.c + +../../../../../temp/cmd/ta_SUM.o: ../../../../../src/ta_func/ta_SUM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_SUM.o ../../../../../src/ta_func/ta_SUM.c + +../../../../../temp/cmd/ta_T3.o: ../../../../../src/ta_func/ta_T3.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_T3.o ../../../../../src/ta_func/ta_T3.c + +../../../../../temp/cmd/ta_TAN.o: ../../../../../src/ta_func/ta_TAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_TAN.o ../../../../../src/ta_func/ta_TAN.c + +../../../../../temp/cmd/ta_TANH.o: ../../../../../src/ta_func/ta_TANH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_TANH.o ../../../../../src/ta_func/ta_TANH.c + +../../../../../temp/cmd/ta_TEMA.o: ../../../../../src/ta_func/ta_TEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_TEMA.o ../../../../../src/ta_func/ta_TEMA.c + +../../../../../temp/cmd/ta_TRANGE.o: ../../../../../src/ta_func/ta_TRANGE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_TRANGE.o ../../../../../src/ta_func/ta_TRANGE.c + +../../../../../temp/cmd/ta_TRIMA.o: ../../../../../src/ta_func/ta_TRIMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_TRIMA.o ../../../../../src/ta_func/ta_TRIMA.c + +../../../../../temp/cmd/ta_TRIX.o: ../../../../../src/ta_func/ta_TRIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_TRIX.o ../../../../../src/ta_func/ta_TRIX.c + +../../../../../temp/cmd/ta_TSF.o: ../../../../../src/ta_func/ta_TSF.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_TSF.o ../../../../../src/ta_func/ta_TSF.c + +../../../../../temp/cmd/ta_TYPPRICE.o: ../../../../../src/ta_func/ta_TYPPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_TYPPRICE.o ../../../../../src/ta_func/ta_TYPPRICE.c + +../../../../../temp/cmd/ta_ULTOSC.o: ../../../../../src/ta_func/ta_ULTOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_ULTOSC.o ../../../../../src/ta_func/ta_ULTOSC.c + +../../../../../temp/cmd/ta_VAR.o: ../../../../../src/ta_func/ta_VAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_VAR.o ../../../../../src/ta_func/ta_VAR.c + +../../../../../temp/cmd/ta_WCLPRICE.o: ../../../../../src/ta_func/ta_WCLPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_WCLPRICE.o ../../../../../src/ta_func/ta_WCLPRICE.c + +../../../../../temp/cmd/ta_WILLR.o: ../../../../../src/ta_func/ta_WILLR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_WILLR.o ../../../../../src/ta_func/ta_WILLR.c + +../../../../../temp/cmd/ta_WMA.o: ../../../../../src/ta_func/ta_WMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_WMA.o ../../../../../src/ta_func/ta_WMA.c + diff --git a/make/cmd/freebsd/g++/ta_libc/Makefile b/make/cmd/freebsd/g++/ta_libc/Makefile new file mode 100644 index 000000000..2611f693c --- /dev/null +++ b/make/cmd/freebsd/g++/ta_libc/Makefile @@ -0,0 +1,1053 @@ +############################################################################# +# Makefile for building ../../../../../lib/libta_libc_cmd.a +# Generated by tmake; +# Project: ta_libc/ta_libc +# Template: lib +############################################################################# + +####### Compiler, tools and options + +CC = gcc +CXX = g++ +CFLAGS = -pipe -Wall -W -g -D_REENTRANT -DTA_DEBUG -D_DEBUG -DQT_THREAD_SUPPORT +CXXFLAGS= -pipe -Wall -W -g -D_REENTRANT -DTA_DEBUG -D_DEBUG -DQT_THREAD_SUPPORT +INCPATH = -I../../../../../src/ta_common -I../../../../../include -I../../../../../src/ta_abstract -I../../../../../src/ta_abstract/tables -I../../../../../src/ta_abstract/frames -I/usr/local/include -I$(QTDIR)/include +AR = ar cqs +RANLIB = +MOC = $(QTDIR)/bin/moc +UIC = $(QTDIR)/bin/uic + +TAR = tar -cf +GZIP = gzip -9f + +####### Support for 64-bit systems +ifeq ($(shell uname -m), x86_64) + CFLAGS += -march=x86-64 -m64 -D__64BIT__ + CXXFLAGS += -march=x86-64 -m64 -D__64BIT__ +endif + +####### Apply additional overruling user flags, if any +CFLAGS += $(CUSERFLAGS) +CXXFLAGS += $(CUSERFLAGS) + +####### Files + +HEADERS = +SOURCES = ../../../../../src/ta_common/ta_global.c \ + ../../../../../src/ta_common/ta_retcode.c \ + ../../../../../src/ta_common/ta_version.c \ + ../../../../../src/ta_abstract/ta_abstract.c \ + ../../../../../src/ta_abstract/ta_def_ui.c \ + ../../../../../src/ta_abstract/ta_func_api.c \ + ../../../../../src/ta_abstract/ta_group_idx.c \ + ../../../../../src/ta_abstract/frames/ta_frame.c \ + ../../../../../src/ta_abstract/tables/table_a.c \ + ../../../../../src/ta_abstract/tables/table_b.c \ + ../../../../../src/ta_abstract/tables/table_c.c \ + ../../../../../src/ta_abstract/tables/table_d.c \ + ../../../../../src/ta_abstract/tables/table_e.c \ + ../../../../../src/ta_abstract/tables/table_f.c \ + ../../../../../src/ta_abstract/tables/table_g.c \ + ../../../../../src/ta_abstract/tables/table_h.c \ + ../../../../../src/ta_abstract/tables/table_i.c \ + ../../../../../src/ta_abstract/tables/table_j.c \ + ../../../../../src/ta_abstract/tables/table_k.c \ + ../../../../../src/ta_abstract/tables/table_l.c \ + ../../../../../src/ta_abstract/tables/table_m.c \ + ../../../../../src/ta_abstract/tables/table_n.c \ + ../../../../../src/ta_abstract/tables/table_o.c \ + ../../../../../src/ta_abstract/tables/table_p.c \ + ../../../../../src/ta_abstract/tables/table_q.c \ + ../../../../../src/ta_abstract/tables/table_r.c \ + ../../../../../src/ta_abstract/tables/table_s.c \ + ../../../../../src/ta_abstract/tables/table_t.c \ + ../../../../../src/ta_abstract/tables/table_u.c \ + ../../../../../src/ta_abstract/tables/table_v.c \ + ../../../../../src/ta_abstract/tables/table_w.c \ + ../../../../../src/ta_abstract/tables/table_x.c \ + ../../../../../src/ta_abstract/tables/table_y.c \ + ../../../../../src/ta_abstract/tables/table_z.c \ + ../../../../../src/ta_func/ta_utility.c \ + ../../../../../src/ta_func/ta_ACOS.c \ + ../../../../../src/ta_func/ta_AD.c \ + ../../../../../src/ta_func/ta_ADD.c \ + ../../../../../src/ta_func/ta_ADOSC.c \ + ../../../../../src/ta_func/ta_ADX.c \ + ../../../../../src/ta_func/ta_ADXR.c \ + ../../../../../src/ta_func/ta_APO.c \ + ../../../../../src/ta_func/ta_AROON.c \ + ../../../../../src/ta_func/ta_AROONOSC.c \ + ../../../../../src/ta_func/ta_ASIN.c \ + ../../../../../src/ta_func/ta_ATAN.c \ + ../../../../../src/ta_func/ta_ATR.c \ + ../../../../../src/ta_func/ta_AVGPRICE.c \ + ../../../../../src/ta_func/ta_BBANDS.c \ + ../../../../../src/ta_func/ta_BETA.c \ + ../../../../../src/ta_func/ta_BOP.c \ + ../../../../../src/ta_func/ta_CCI.c \ + ../../../../../src/ta_func/ta_CDL2CROWS.c \ + ../../../../../src/ta_func/ta_CDL3BLACKCROWS.c \ + ../../../../../src/ta_func/ta_CDL3INSIDE.c \ + ../../../../../src/ta_func/ta_CDL3LINESTRIKE.c \ + ../../../../../src/ta_func/ta_CDL3OUTSIDE.c \ + ../../../../../src/ta_func/ta_CDL3STARSINSOUTH.c \ + ../../../../../src/ta_func/ta_CDL3WHITESOLDIERS.c \ + ../../../../../src/ta_func/ta_CDLABANDONEDBABY.c \ + ../../../../../src/ta_func/ta_CDLADVANCEBLOCK.c \ + ../../../../../src/ta_func/ta_CDLBELTHOLD.c \ + ../../../../../src/ta_func/ta_CDLBREAKAWAY.c \ + ../../../../../src/ta_func/ta_CDLCLOSINGMARUBOZU.c \ + ../../../../../src/ta_func/ta_CDLCONCEALBABYSWALL.c \ + ../../../../../src/ta_func/ta_CDLCOUNTERATTACK.c \ + ../../../../../src/ta_func/ta_CDLDARKCLOUDCOVER.c \ + ../../../../../src/ta_func/ta_CDLDOJI.c \ + ../../../../../src/ta_func/ta_CDLDOJISTAR.c \ + ../../../../../src/ta_func/ta_CDLDRAGONFLYDOJI.c \ + ../../../../../src/ta_func/ta_CDLENGULFING.c \ + ../../../../../src/ta_func/ta_CDLEVENINGDOJISTAR.c \ + ../../../../../src/ta_func/ta_CDLEVENINGSTAR.c \ + ../../../../../src/ta_func/ta_CDLGAPSIDESIDEWHITE.c \ + ../../../../../src/ta_func/ta_CDLGRAVESTONEDOJI.c \ + ../../../../../src/ta_func/ta_CDLHAMMER.c \ + ../../../../../src/ta_func/ta_CDLHANGINGMAN.c \ + ../../../../../src/ta_func/ta_CDLHARAMI.c \ + ../../../../../src/ta_func/ta_CDLHARAMICROSS.c \ + ../../../../../src/ta_func/ta_CDLHIGHWAVE.c \ + ../../../../../src/ta_func/ta_CDLHIKKAKE.c \ + ../../../../../src/ta_func/ta_CDLHIKKAKEMOD.c \ + ../../../../../src/ta_func/ta_CDLHOMINGPIGEON.c \ + ../../../../../src/ta_func/ta_CDLIDENTICAL3CROWS.c \ + ../../../../../src/ta_func/ta_CDLINNECK.c \ + ../../../../../src/ta_func/ta_CDLINVERTEDHAMMER.c \ + ../../../../../src/ta_func/ta_CDLKICKING.c \ + ../../../../../src/ta_func/ta_CDLKICKINGBYLENGTH.c \ + ../../../../../src/ta_func/ta_CDLLADDERBOTTOM.c \ + ../../../../../src/ta_func/ta_CDLLONGLEGGEDDOJI.c \ + ../../../../../src/ta_func/ta_CDLLONGLINE.c \ + ../../../../../src/ta_func/ta_CDLMARUBOZU.c \ + ../../../../../src/ta_func/ta_CDLMATCHINGLOW.c \ + ../../../../../src/ta_func/ta_CDLMATHOLD.c \ + ../../../../../src/ta_func/ta_CDLMORNINGDOJISTAR.c \ + ../../../../../src/ta_func/ta_CDLMORNINGSTAR.c \ + ../../../../../src/ta_func/ta_CDLONNECK.c \ + ../../../../../src/ta_func/ta_CDLPIERCING.c \ + ../../../../../src/ta_func/ta_CDLRICKSHAWMAN.c \ + ../../../../../src/ta_func/ta_CDLRISEFALL3METHODS.c \ + ../../../../../src/ta_func/ta_CDLSEPARATINGLINES.c \ + ../../../../../src/ta_func/ta_CDLSHOOTINGSTAR.c \ + ../../../../../src/ta_func/ta_CDLSHORTLINE.c \ + ../../../../../src/ta_func/ta_CDLSPINNINGTOP.c \ + ../../../../../src/ta_func/ta_CDLSTALLEDPATTERN.c \ + ../../../../../src/ta_func/ta_CDLSTICKSANDWICH.c \ + ../../../../../src/ta_func/ta_CDLTAKURI.c \ + ../../../../../src/ta_func/ta_CDLTASUKIGAP.c \ + ../../../../../src/ta_func/ta_CDLTHRUSTING.c \ + ../../../../../src/ta_func/ta_CDLTRISTAR.c \ + ../../../../../src/ta_func/ta_CDLUNIQUE3RIVER.c \ + ../../../../../src/ta_func/ta_CDLUPSIDEGAP2CROWS.c \ + ../../../../../src/ta_func/ta_CDLXSIDEGAP3METHODS.c \ + ../../../../../src/ta_func/ta_CEIL.c \ + ../../../../../src/ta_func/ta_CMO.c \ + ../../../../../src/ta_func/ta_CORREL.c \ + ../../../../../src/ta_func/ta_COS.c \ + ../../../../../src/ta_func/ta_COSH.c \ + ../../../../../src/ta_func/ta_DEMA.c \ + ../../../../../src/ta_func/ta_DIV.c \ + ../../../../../src/ta_func/ta_DX.c \ + ../../../../../src/ta_func/ta_EMA.c \ + ../../../../../src/ta_func/ta_EXP.c \ + ../../../../../src/ta_func/ta_FLOOR.c \ + ../../../../../src/ta_func/ta_HT_DCPERIOD.c \ + ../../../../../src/ta_func/ta_HT_DCPHASE.c \ + ../../../../../src/ta_func/ta_HT_PHASOR.c \ + ../../../../../src/ta_func/ta_HT_SINE.c \ + ../../../../../src/ta_func/ta_HT_TRENDLINE.c \ + ../../../../../src/ta_func/ta_HT_TRENDMODE.c \ + ../../../../../src/ta_func/ta_KAMA.c \ + ../../../../../src/ta_func/ta_LINEARREG.c \ + ../../../../../src/ta_func/ta_LINEARREG_ANGLE.c \ + ../../../../../src/ta_func/ta_LINEARREG_INTERCEPT.c \ + ../../../../../src/ta_func/ta_LINEARREG_SLOPE.c \ + ../../../../../src/ta_func/ta_LN.c \ + ../../../../../src/ta_func/ta_LOG10.c \ + ../../../../../src/ta_func/ta_MA.c \ + ../../../../../src/ta_func/ta_MACD.c \ + ../../../../../src/ta_func/ta_MACDEXT.c \ + ../../../../../src/ta_func/ta_MACDFIX.c \ + ../../../../../src/ta_func/ta_MAMA.c \ + ../../../../../src/ta_func/ta_MAVP.c \ + ../../../../../src/ta_func/ta_MAX.c \ + ../../../../../src/ta_func/ta_MAXINDEX.c \ + ../../../../../src/ta_func/ta_MEDPRICE.c \ + ../../../../../src/ta_func/ta_MFI.c \ + ../../../../../src/ta_func/ta_MIDPOINT.c \ + ../../../../../src/ta_func/ta_MIDPRICE.c \ + ../../../../../src/ta_func/ta_MIN.c \ + ../../../../../src/ta_func/ta_MININDEX.c \ + ../../../../../src/ta_func/ta_MINMAX.c \ + ../../../../../src/ta_func/ta_MINMAXINDEX.c \ + ../../../../../src/ta_func/ta_MINUS_DI.c \ + ../../../../../src/ta_func/ta_MINUS_DM.c \ + ../../../../../src/ta_func/ta_MOM.c \ + ../../../../../src/ta_func/ta_MULT.c \ + ../../../../../src/ta_func/ta_NATR.c \ + ../../../../../src/ta_func/ta_OBV.c \ + ../../../../../src/ta_func/ta_PLUS_DI.c \ + ../../../../../src/ta_func/ta_PLUS_DM.c \ + ../../../../../src/ta_func/ta_PPO.c \ + ../../../../../src/ta_func/ta_ROC.c \ + ../../../../../src/ta_func/ta_ROCP.c \ + ../../../../../src/ta_func/ta_ROCR.c \ + ../../../../../src/ta_func/ta_ROCR100.c \ + ../../../../../src/ta_func/ta_RSI.c \ + ../../../../../src/ta_func/ta_SAR.c \ + ../../../../../src/ta_func/ta_SAREXT.c \ + ../../../../../src/ta_func/ta_SIN.c \ + ../../../../../src/ta_func/ta_SINH.c \ + ../../../../../src/ta_func/ta_SMA.c \ + ../../../../../src/ta_func/ta_SQRT.c \ + ../../../../../src/ta_func/ta_STDDEV.c \ + ../../../../../src/ta_func/ta_STOCH.c \ + ../../../../../src/ta_func/ta_STOCHF.c \ + ../../../../../src/ta_func/ta_STOCHRSI.c \ + ../../../../../src/ta_func/ta_SUB.c \ + ../../../../../src/ta_func/ta_SUM.c \ + ../../../../../src/ta_func/ta_T3.c \ + ../../../../../src/ta_func/ta_TAN.c \ + ../../../../../src/ta_func/ta_TANH.c \ + ../../../../../src/ta_func/ta_TEMA.c \ + ../../../../../src/ta_func/ta_TRANGE.c \ + ../../../../../src/ta_func/ta_TRIMA.c \ + ../../../../../src/ta_func/ta_TRIX.c \ + ../../../../../src/ta_func/ta_TSF.c \ + ../../../../../src/ta_func/ta_TYPPRICE.c \ + ../../../../../src/ta_func/ta_ULTOSC.c \ + ../../../../../src/ta_func/ta_VAR.c \ + ../../../../../src/ta_func/ta_WCLPRICE.c \ + ../../../../../src/ta_func/ta_WILLR.c \ + ../../../../../src/ta_func/ta_WMA.c +OBJECTS = ../../../../../temp/cmd/ta_global.o \ + ../../../../../temp/cmd/ta_retcode.o \ + ../../../../../temp/cmd/ta_version.o \ + ../../../../../temp/cmd/ta_abstract.o \ + ../../../../../temp/cmd/ta_def_ui.o \ + ../../../../../temp/cmd/ta_func_api.o \ + ../../../../../temp/cmd/ta_group_idx.o \ + ../../../../../temp/cmd/ta_frame.o \ + ../../../../../temp/cmd/table_a.o \ + ../../../../../temp/cmd/table_b.o \ + ../../../../../temp/cmd/table_c.o \ + ../../../../../temp/cmd/table_d.o \ + ../../../../../temp/cmd/table_e.o \ + ../../../../../temp/cmd/table_f.o \ + ../../../../../temp/cmd/table_g.o \ + ../../../../../temp/cmd/table_h.o \ + ../../../../../temp/cmd/table_i.o \ + ../../../../../temp/cmd/table_j.o \ + ../../../../../temp/cmd/table_k.o \ + ../../../../../temp/cmd/table_l.o \ + ../../../../../temp/cmd/table_m.o \ + ../../../../../temp/cmd/table_n.o \ + ../../../../../temp/cmd/table_o.o \ + ../../../../../temp/cmd/table_p.o \ + ../../../../../temp/cmd/table_q.o \ + ../../../../../temp/cmd/table_r.o \ + ../../../../../temp/cmd/table_s.o \ + ../../../../../temp/cmd/table_t.o \ + ../../../../../temp/cmd/table_u.o \ + ../../../../../temp/cmd/table_v.o \ + ../../../../../temp/cmd/table_w.o \ + ../../../../../temp/cmd/table_x.o \ + ../../../../../temp/cmd/table_y.o \ + ../../../../../temp/cmd/table_z.o \ + ../../../../../temp/cmd/ta_utility.o \ + ../../../../../temp/cmd/ta_ACOS.o \ + ../../../../../temp/cmd/ta_AD.o \ + ../../../../../temp/cmd/ta_ADD.o \ + ../../../../../temp/cmd/ta_ADOSC.o \ + ../../../../../temp/cmd/ta_ADX.o \ + ../../../../../temp/cmd/ta_ADXR.o \ + ../../../../../temp/cmd/ta_APO.o \ + ../../../../../temp/cmd/ta_AROON.o \ + ../../../../../temp/cmd/ta_AROONOSC.o \ + ../../../../../temp/cmd/ta_ASIN.o \ + ../../../../../temp/cmd/ta_ATAN.o \ + ../../../../../temp/cmd/ta_ATR.o \ + ../../../../../temp/cmd/ta_AVGPRICE.o \ + ../../../../../temp/cmd/ta_BBANDS.o \ + ../../../../../temp/cmd/ta_BETA.o \ + ../../../../../temp/cmd/ta_BOP.o \ + ../../../../../temp/cmd/ta_CCI.o \ + ../../../../../temp/cmd/ta_CDL2CROWS.o \ + ../../../../../temp/cmd/ta_CDL3BLACKCROWS.o \ + ../../../../../temp/cmd/ta_CDL3INSIDE.o \ + ../../../../../temp/cmd/ta_CDL3LINESTRIKE.o \ + ../../../../../temp/cmd/ta_CDL3OUTSIDE.o \ + ../../../../../temp/cmd/ta_CDL3STARSINSOUTH.o \ + ../../../../../temp/cmd/ta_CDL3WHITESOLDIERS.o \ + ../../../../../temp/cmd/ta_CDLABANDONEDBABY.o \ + ../../../../../temp/cmd/ta_CDLADVANCEBLOCK.o \ + ../../../../../temp/cmd/ta_CDLBELTHOLD.o \ + ../../../../../temp/cmd/ta_CDLBREAKAWAY.o \ + ../../../../../temp/cmd/ta_CDLCLOSINGMARUBOZU.o \ + ../../../../../temp/cmd/ta_CDLCONCEALBABYSWALL.o \ + ../../../../../temp/cmd/ta_CDLCOUNTERATTACK.o \ + ../../../../../temp/cmd/ta_CDLDARKCLOUDCOVER.o \ + ../../../../../temp/cmd/ta_CDLDOJI.o \ + ../../../../../temp/cmd/ta_CDLDOJISTAR.o \ + ../../../../../temp/cmd/ta_CDLDRAGONFLYDOJI.o \ + ../../../../../temp/cmd/ta_CDLENGULFING.o \ + ../../../../../temp/cmd/ta_CDLEVENINGDOJISTAR.o \ + ../../../../../temp/cmd/ta_CDLEVENINGSTAR.o \ + ../../../../../temp/cmd/ta_CDLGAPSIDESIDEWHITE.o \ + ../../../../../temp/cmd/ta_CDLGRAVESTONEDOJI.o \ + ../../../../../temp/cmd/ta_CDLHAMMER.o \ + ../../../../../temp/cmd/ta_CDLHANGINGMAN.o \ + ../../../../../temp/cmd/ta_CDLHARAMI.o \ + ../../../../../temp/cmd/ta_CDLHARAMICROSS.o \ + ../../../../../temp/cmd/ta_CDLHIGHWAVE.o \ + ../../../../../temp/cmd/ta_CDLHIKKAKE.o \ + ../../../../../temp/cmd/ta_CDLHIKKAKEMOD.o \ + ../../../../../temp/cmd/ta_CDLHOMINGPIGEON.o \ + ../../../../../temp/cmd/ta_CDLIDENTICAL3CROWS.o \ + ../../../../../temp/cmd/ta_CDLINNECK.o \ + ../../../../../temp/cmd/ta_CDLINVERTEDHAMMER.o \ + ../../../../../temp/cmd/ta_CDLKICKING.o \ + ../../../../../temp/cmd/ta_CDLKICKINGBYLENGTH.o \ + ../../../../../temp/cmd/ta_CDLLADDERBOTTOM.o \ + ../../../../../temp/cmd/ta_CDLLONGLEGGEDDOJI.o \ + ../../../../../temp/cmd/ta_CDLLONGLINE.o \ + ../../../../../temp/cmd/ta_CDLMARUBOZU.o \ + ../../../../../temp/cmd/ta_CDLMATCHINGLOW.o \ + ../../../../../temp/cmd/ta_CDLMATHOLD.o \ + ../../../../../temp/cmd/ta_CDLMORNINGDOJISTAR.o \ + ../../../../../temp/cmd/ta_CDLMORNINGSTAR.o \ + ../../../../../temp/cmd/ta_CDLONNECK.o \ + ../../../../../temp/cmd/ta_CDLPIERCING.o \ + ../../../../../temp/cmd/ta_CDLRICKSHAWMAN.o \ + ../../../../../temp/cmd/ta_CDLRISEFALL3METHODS.o \ + ../../../../../temp/cmd/ta_CDLSEPARATINGLINES.o \ + ../../../../../temp/cmd/ta_CDLSHOOTINGSTAR.o \ + ../../../../../temp/cmd/ta_CDLSHORTLINE.o \ + ../../../../../temp/cmd/ta_CDLSPINNINGTOP.o \ + ../../../../../temp/cmd/ta_CDLSTALLEDPATTERN.o \ + ../../../../../temp/cmd/ta_CDLSTICKSANDWICH.o \ + ../../../../../temp/cmd/ta_CDLTAKURI.o \ + ../../../../../temp/cmd/ta_CDLTASUKIGAP.o \ + ../../../../../temp/cmd/ta_CDLTHRUSTING.o \ + ../../../../../temp/cmd/ta_CDLTRISTAR.o \ + ../../../../../temp/cmd/ta_CDLUNIQUE3RIVER.o \ + ../../../../../temp/cmd/ta_CDLUPSIDEGAP2CROWS.o \ + ../../../../../temp/cmd/ta_CDLXSIDEGAP3METHODS.o \ + ../../../../../temp/cmd/ta_CEIL.o \ + ../../../../../temp/cmd/ta_CMO.o \ + ../../../../../temp/cmd/ta_CORREL.o \ + ../../../../../temp/cmd/ta_COS.o \ + ../../../../../temp/cmd/ta_COSH.o \ + ../../../../../temp/cmd/ta_DEMA.o \ + ../../../../../temp/cmd/ta_DIV.o \ + ../../../../../temp/cmd/ta_DX.o \ + ../../../../../temp/cmd/ta_EMA.o \ + ../../../../../temp/cmd/ta_EXP.o \ + ../../../../../temp/cmd/ta_FLOOR.o \ + ../../../../../temp/cmd/ta_HT_DCPERIOD.o \ + ../../../../../temp/cmd/ta_HT_DCPHASE.o \ + ../../../../../temp/cmd/ta_HT_PHASOR.o \ + ../../../../../temp/cmd/ta_HT_SINE.o \ + ../../../../../temp/cmd/ta_HT_TRENDLINE.o \ + ../../../../../temp/cmd/ta_HT_TRENDMODE.o \ + ../../../../../temp/cmd/ta_KAMA.o \ + ../../../../../temp/cmd/ta_LINEARREG.o \ + ../../../../../temp/cmd/ta_LINEARREG_ANGLE.o \ + ../../../../../temp/cmd/ta_LINEARREG_INTERCEPT.o \ + ../../../../../temp/cmd/ta_LINEARREG_SLOPE.o \ + ../../../../../temp/cmd/ta_LN.o \ + ../../../../../temp/cmd/ta_LOG10.o \ + ../../../../../temp/cmd/ta_MA.o \ + ../../../../../temp/cmd/ta_MACD.o \ + ../../../../../temp/cmd/ta_MACDEXT.o \ + ../../../../../temp/cmd/ta_MACDFIX.o \ + ../../../../../temp/cmd/ta_MAMA.o \ + ../../../../../temp/cmd/ta_MAVP.o \ + ../../../../../temp/cmd/ta_MAX.o \ + ../../../../../temp/cmd/ta_MAXINDEX.o \ + ../../../../../temp/cmd/ta_MEDPRICE.o \ + ../../../../../temp/cmd/ta_MFI.o \ + ../../../../../temp/cmd/ta_MIDPOINT.o \ + ../../../../../temp/cmd/ta_MIDPRICE.o \ + ../../../../../temp/cmd/ta_MIN.o \ + ../../../../../temp/cmd/ta_MININDEX.o \ + ../../../../../temp/cmd/ta_MINMAX.o \ + ../../../../../temp/cmd/ta_MINMAXINDEX.o \ + ../../../../../temp/cmd/ta_MINUS_DI.o \ + ../../../../../temp/cmd/ta_MINUS_DM.o \ + ../../../../../temp/cmd/ta_MOM.o \ + ../../../../../temp/cmd/ta_MULT.o \ + ../../../../../temp/cmd/ta_NATR.o \ + ../../../../../temp/cmd/ta_OBV.o \ + ../../../../../temp/cmd/ta_PLUS_DI.o \ + ../../../../../temp/cmd/ta_PLUS_DM.o \ + ../../../../../temp/cmd/ta_PPO.o \ + ../../../../../temp/cmd/ta_ROC.o \ + ../../../../../temp/cmd/ta_ROCP.o \ + ../../../../../temp/cmd/ta_ROCR.o \ + ../../../../../temp/cmd/ta_ROCR100.o \ + ../../../../../temp/cmd/ta_RSI.o \ + ../../../../../temp/cmd/ta_SAR.o \ + ../../../../../temp/cmd/ta_SAREXT.o \ + ../../../../../temp/cmd/ta_SIN.o \ + ../../../../../temp/cmd/ta_SINH.o \ + ../../../../../temp/cmd/ta_SMA.o \ + ../../../../../temp/cmd/ta_SQRT.o \ + ../../../../../temp/cmd/ta_STDDEV.o \ + ../../../../../temp/cmd/ta_STOCH.o \ + ../../../../../temp/cmd/ta_STOCHF.o \ + ../../../../../temp/cmd/ta_STOCHRSI.o \ + ../../../../../temp/cmd/ta_SUB.o \ + ../../../../../temp/cmd/ta_SUM.o \ + ../../../../../temp/cmd/ta_T3.o \ + ../../../../../temp/cmd/ta_TAN.o \ + ../../../../../temp/cmd/ta_TANH.o \ + ../../../../../temp/cmd/ta_TEMA.o \ + ../../../../../temp/cmd/ta_TRANGE.o \ + ../../../../../temp/cmd/ta_TRIMA.o \ + ../../../../../temp/cmd/ta_TRIX.o \ + ../../../../../temp/cmd/ta_TSF.o \ + ../../../../../temp/cmd/ta_TYPPRICE.o \ + ../../../../../temp/cmd/ta_ULTOSC.o \ + ../../../../../temp/cmd/ta_VAR.o \ + ../../../../../temp/cmd/ta_WCLPRICE.o \ + ../../../../../temp/cmd/ta_WILLR.o \ + ../../../../../temp/cmd/ta_WMA.o +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ../../../../../lib/libta_libc_cmd.a +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .C .c + +.cpp.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cxx.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cc.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.C.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.c.o: + $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $< + +####### Build rules + + +all: $(TARGET) + +staticlib: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + -rm -f $(TARGET) + $(AR) $(TARGET) $(OBJECTS) $(OBJMOC) + +moc: $(SRCMOC) + +clean: + -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) + -rm -f *~ core + +####### Sub-libraries + + +###### Combined headers + + +####### Compile + +../../../../../temp/cmd/ta_global.o: ../../../../../src/ta_common/ta_global.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_global.o ../../../../../src/ta_common/ta_global.c + +../../../../../temp/cmd/ta_retcode.o: ../../../../../src/ta_common/ta_retcode.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_retcode.o ../../../../../src/ta_common/ta_retcode.c + +../../../../../temp/cmd/ta_version.o: ../../../../../src/ta_common/ta_version.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_version.o ../../../../../src/ta_common/ta_version.c + +../../../../../temp/cmd/ta_abstract.o: ../../../../../src/ta_abstract/ta_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_abstract.o ../../../../../src/ta_abstract/ta_abstract.c + +../../../../../temp/cmd/ta_def_ui.o: ../../../../../src/ta_abstract/ta_def_ui.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_def_ui.o ../../../../../src/ta_abstract/ta_def_ui.c + +../../../../../temp/cmd/ta_func_api.o: ../../../../../src/ta_abstract/ta_func_api.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_func_api.o ../../../../../src/ta_abstract/ta_func_api.c + +../../../../../temp/cmd/ta_group_idx.o: ../../../../../src/ta_abstract/ta_group_idx.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_group_idx.o ../../../../../src/ta_abstract/ta_group_idx.c + +../../../../../temp/cmd/ta_frame.o: ../../../../../src/ta_abstract/frames/ta_frame.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_frame.o ../../../../../src/ta_abstract/frames/ta_frame.c + +../../../../../temp/cmd/table_a.o: ../../../../../src/ta_abstract/tables/table_a.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_a.o ../../../../../src/ta_abstract/tables/table_a.c + +../../../../../temp/cmd/table_b.o: ../../../../../src/ta_abstract/tables/table_b.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_b.o ../../../../../src/ta_abstract/tables/table_b.c + +../../../../../temp/cmd/table_c.o: ../../../../../src/ta_abstract/tables/table_c.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_c.o ../../../../../src/ta_abstract/tables/table_c.c + +../../../../../temp/cmd/table_d.o: ../../../../../src/ta_abstract/tables/table_d.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_d.o ../../../../../src/ta_abstract/tables/table_d.c + +../../../../../temp/cmd/table_e.o: ../../../../../src/ta_abstract/tables/table_e.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_e.o ../../../../../src/ta_abstract/tables/table_e.c + +../../../../../temp/cmd/table_f.o: ../../../../../src/ta_abstract/tables/table_f.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_f.o ../../../../../src/ta_abstract/tables/table_f.c + +../../../../../temp/cmd/table_g.o: ../../../../../src/ta_abstract/tables/table_g.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_g.o ../../../../../src/ta_abstract/tables/table_g.c + +../../../../../temp/cmd/table_h.o: ../../../../../src/ta_abstract/tables/table_h.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_h.o ../../../../../src/ta_abstract/tables/table_h.c + +../../../../../temp/cmd/table_i.o: ../../../../../src/ta_abstract/tables/table_i.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_i.o ../../../../../src/ta_abstract/tables/table_i.c + +../../../../../temp/cmd/table_j.o: ../../../../../src/ta_abstract/tables/table_j.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_j.o ../../../../../src/ta_abstract/tables/table_j.c + +../../../../../temp/cmd/table_k.o: ../../../../../src/ta_abstract/tables/table_k.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_k.o ../../../../../src/ta_abstract/tables/table_k.c + +../../../../../temp/cmd/table_l.o: ../../../../../src/ta_abstract/tables/table_l.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_l.o ../../../../../src/ta_abstract/tables/table_l.c + +../../../../../temp/cmd/table_m.o: ../../../../../src/ta_abstract/tables/table_m.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_m.o ../../../../../src/ta_abstract/tables/table_m.c + +../../../../../temp/cmd/table_n.o: ../../../../../src/ta_abstract/tables/table_n.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_n.o ../../../../../src/ta_abstract/tables/table_n.c + +../../../../../temp/cmd/table_o.o: ../../../../../src/ta_abstract/tables/table_o.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_o.o ../../../../../src/ta_abstract/tables/table_o.c + +../../../../../temp/cmd/table_p.o: ../../../../../src/ta_abstract/tables/table_p.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_p.o ../../../../../src/ta_abstract/tables/table_p.c + +../../../../../temp/cmd/table_q.o: ../../../../../src/ta_abstract/tables/table_q.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_q.o ../../../../../src/ta_abstract/tables/table_q.c + +../../../../../temp/cmd/table_r.o: ../../../../../src/ta_abstract/tables/table_r.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_r.o ../../../../../src/ta_abstract/tables/table_r.c + +../../../../../temp/cmd/table_s.o: ../../../../../src/ta_abstract/tables/table_s.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_s.o ../../../../../src/ta_abstract/tables/table_s.c + +../../../../../temp/cmd/table_t.o: ../../../../../src/ta_abstract/tables/table_t.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_t.o ../../../../../src/ta_abstract/tables/table_t.c + +../../../../../temp/cmd/table_u.o: ../../../../../src/ta_abstract/tables/table_u.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_u.o ../../../../../src/ta_abstract/tables/table_u.c + +../../../../../temp/cmd/table_v.o: ../../../../../src/ta_abstract/tables/table_v.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_v.o ../../../../../src/ta_abstract/tables/table_v.c + +../../../../../temp/cmd/table_w.o: ../../../../../src/ta_abstract/tables/table_w.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_w.o ../../../../../src/ta_abstract/tables/table_w.c + +../../../../../temp/cmd/table_x.o: ../../../../../src/ta_abstract/tables/table_x.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_x.o ../../../../../src/ta_abstract/tables/table_x.c + +../../../../../temp/cmd/table_y.o: ../../../../../src/ta_abstract/tables/table_y.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_y.o ../../../../../src/ta_abstract/tables/table_y.c + +../../../../../temp/cmd/table_z.o: ../../../../../src/ta_abstract/tables/table_z.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_z.o ../../../../../src/ta_abstract/tables/table_z.c + +../../../../../temp/cmd/ta_utility.o: ../../../../../src/ta_func/ta_utility.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_utility.o ../../../../../src/ta_func/ta_utility.c + +../../../../../temp/cmd/ta_ACOS.o: ../../../../../src/ta_func/ta_ACOS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_ACOS.o ../../../../../src/ta_func/ta_ACOS.c + +../../../../../temp/cmd/ta_AD.o: ../../../../../src/ta_func/ta_AD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_AD.o ../../../../../src/ta_func/ta_AD.c + +../../../../../temp/cmd/ta_ADD.o: ../../../../../src/ta_func/ta_ADD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_ADD.o ../../../../../src/ta_func/ta_ADD.c + +../../../../../temp/cmd/ta_ADOSC.o: ../../../../../src/ta_func/ta_ADOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_ADOSC.o ../../../../../src/ta_func/ta_ADOSC.c + +../../../../../temp/cmd/ta_ADX.o: ../../../../../src/ta_func/ta_ADX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_ADX.o ../../../../../src/ta_func/ta_ADX.c + +../../../../../temp/cmd/ta_ADXR.o: ../../../../../src/ta_func/ta_ADXR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_ADXR.o ../../../../../src/ta_func/ta_ADXR.c + +../../../../../temp/cmd/ta_APO.o: ../../../../../src/ta_func/ta_APO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_APO.o ../../../../../src/ta_func/ta_APO.c + +../../../../../temp/cmd/ta_AROON.o: ../../../../../src/ta_func/ta_AROON.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_AROON.o ../../../../../src/ta_func/ta_AROON.c + +../../../../../temp/cmd/ta_AROONOSC.o: ../../../../../src/ta_func/ta_AROONOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_AROONOSC.o ../../../../../src/ta_func/ta_AROONOSC.c + +../../../../../temp/cmd/ta_ASIN.o: ../../../../../src/ta_func/ta_ASIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_ASIN.o ../../../../../src/ta_func/ta_ASIN.c + +../../../../../temp/cmd/ta_ATAN.o: ../../../../../src/ta_func/ta_ATAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_ATAN.o ../../../../../src/ta_func/ta_ATAN.c + +../../../../../temp/cmd/ta_ATR.o: ../../../../../src/ta_func/ta_ATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_ATR.o ../../../../../src/ta_func/ta_ATR.c + +../../../../../temp/cmd/ta_AVGPRICE.o: ../../../../../src/ta_func/ta_AVGPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_AVGPRICE.o ../../../../../src/ta_func/ta_AVGPRICE.c + +../../../../../temp/cmd/ta_BBANDS.o: ../../../../../src/ta_func/ta_BBANDS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_BBANDS.o ../../../../../src/ta_func/ta_BBANDS.c + +../../../../../temp/cmd/ta_BETA.o: ../../../../../src/ta_func/ta_BETA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_BETA.o ../../../../../src/ta_func/ta_BETA.c + +../../../../../temp/cmd/ta_BOP.o: ../../../../../src/ta_func/ta_BOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_BOP.o ../../../../../src/ta_func/ta_BOP.c + +../../../../../temp/cmd/ta_CCI.o: ../../../../../src/ta_func/ta_CCI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CCI.o ../../../../../src/ta_func/ta_CCI.c + +../../../../../temp/cmd/ta_CDL2CROWS.o: ../../../../../src/ta_func/ta_CDL2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDL2CROWS.o ../../../../../src/ta_func/ta_CDL2CROWS.c + +../../../../../temp/cmd/ta_CDL3BLACKCROWS.o: ../../../../../src/ta_func/ta_CDL3BLACKCROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDL3BLACKCROWS.o ../../../../../src/ta_func/ta_CDL3BLACKCROWS.c + +../../../../../temp/cmd/ta_CDL3INSIDE.o: ../../../../../src/ta_func/ta_CDL3INSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDL3INSIDE.o ../../../../../src/ta_func/ta_CDL3INSIDE.c + +../../../../../temp/cmd/ta_CDL3LINESTRIKE.o: ../../../../../src/ta_func/ta_CDL3LINESTRIKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDL3LINESTRIKE.o ../../../../../src/ta_func/ta_CDL3LINESTRIKE.c + +../../../../../temp/cmd/ta_CDL3OUTSIDE.o: ../../../../../src/ta_func/ta_CDL3OUTSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDL3OUTSIDE.o ../../../../../src/ta_func/ta_CDL3OUTSIDE.c + +../../../../../temp/cmd/ta_CDL3STARSINSOUTH.o: ../../../../../src/ta_func/ta_CDL3STARSINSOUTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDL3STARSINSOUTH.o ../../../../../src/ta_func/ta_CDL3STARSINSOUTH.c + +../../../../../temp/cmd/ta_CDL3WHITESOLDIERS.o: ../../../../../src/ta_func/ta_CDL3WHITESOLDIERS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDL3WHITESOLDIERS.o ../../../../../src/ta_func/ta_CDL3WHITESOLDIERS.c + +../../../../../temp/cmd/ta_CDLABANDONEDBABY.o: ../../../../../src/ta_func/ta_CDLABANDONEDBABY.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLABANDONEDBABY.o ../../../../../src/ta_func/ta_CDLABANDONEDBABY.c + +../../../../../temp/cmd/ta_CDLADVANCEBLOCK.o: ../../../../../src/ta_func/ta_CDLADVANCEBLOCK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLADVANCEBLOCK.o ../../../../../src/ta_func/ta_CDLADVANCEBLOCK.c + +../../../../../temp/cmd/ta_CDLBELTHOLD.o: ../../../../../src/ta_func/ta_CDLBELTHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLBELTHOLD.o ../../../../../src/ta_func/ta_CDLBELTHOLD.c + +../../../../../temp/cmd/ta_CDLBREAKAWAY.o: ../../../../../src/ta_func/ta_CDLBREAKAWAY.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLBREAKAWAY.o ../../../../../src/ta_func/ta_CDLBREAKAWAY.c + +../../../../../temp/cmd/ta_CDLCLOSINGMARUBOZU.o: ../../../../../src/ta_func/ta_CDLCLOSINGMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLCLOSINGMARUBOZU.o ../../../../../src/ta_func/ta_CDLCLOSINGMARUBOZU.c + +../../../../../temp/cmd/ta_CDLCONCEALBABYSWALL.o: ../../../../../src/ta_func/ta_CDLCONCEALBABYSWALL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLCONCEALBABYSWALL.o ../../../../../src/ta_func/ta_CDLCONCEALBABYSWALL.c + +../../../../../temp/cmd/ta_CDLCOUNTERATTACK.o: ../../../../../src/ta_func/ta_CDLCOUNTERATTACK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLCOUNTERATTACK.o ../../../../../src/ta_func/ta_CDLCOUNTERATTACK.c + +../../../../../temp/cmd/ta_CDLDARKCLOUDCOVER.o: ../../../../../src/ta_func/ta_CDLDARKCLOUDCOVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLDARKCLOUDCOVER.o ../../../../../src/ta_func/ta_CDLDARKCLOUDCOVER.c + +../../../../../temp/cmd/ta_CDLDOJI.o: ../../../../../src/ta_func/ta_CDLDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLDOJI.o ../../../../../src/ta_func/ta_CDLDOJI.c + +../../../../../temp/cmd/ta_CDLDOJISTAR.o: ../../../../../src/ta_func/ta_CDLDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLDOJISTAR.o ../../../../../src/ta_func/ta_CDLDOJISTAR.c + +../../../../../temp/cmd/ta_CDLDRAGONFLYDOJI.o: ../../../../../src/ta_func/ta_CDLDRAGONFLYDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLDRAGONFLYDOJI.o ../../../../../src/ta_func/ta_CDLDRAGONFLYDOJI.c + +../../../../../temp/cmd/ta_CDLENGULFING.o: ../../../../../src/ta_func/ta_CDLENGULFING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLENGULFING.o ../../../../../src/ta_func/ta_CDLENGULFING.c + +../../../../../temp/cmd/ta_CDLEVENINGDOJISTAR.o: ../../../../../src/ta_func/ta_CDLEVENINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLEVENINGDOJISTAR.o ../../../../../src/ta_func/ta_CDLEVENINGDOJISTAR.c + +../../../../../temp/cmd/ta_CDLEVENINGSTAR.o: ../../../../../src/ta_func/ta_CDLEVENINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLEVENINGSTAR.o ../../../../../src/ta_func/ta_CDLEVENINGSTAR.c + +../../../../../temp/cmd/ta_CDLGAPSIDESIDEWHITE.o: ../../../../../src/ta_func/ta_CDLGAPSIDESIDEWHITE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLGAPSIDESIDEWHITE.o ../../../../../src/ta_func/ta_CDLGAPSIDESIDEWHITE.c + +../../../../../temp/cmd/ta_CDLGRAVESTONEDOJI.o: ../../../../../src/ta_func/ta_CDLGRAVESTONEDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLGRAVESTONEDOJI.o ../../../../../src/ta_func/ta_CDLGRAVESTONEDOJI.c + +../../../../../temp/cmd/ta_CDLHAMMER.o: ../../../../../src/ta_func/ta_CDLHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLHAMMER.o ../../../../../src/ta_func/ta_CDLHAMMER.c + +../../../../../temp/cmd/ta_CDLHANGINGMAN.o: ../../../../../src/ta_func/ta_CDLHANGINGMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLHANGINGMAN.o ../../../../../src/ta_func/ta_CDLHANGINGMAN.c + +../../../../../temp/cmd/ta_CDLHARAMI.o: ../../../../../src/ta_func/ta_CDLHARAMI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLHARAMI.o ../../../../../src/ta_func/ta_CDLHARAMI.c + +../../../../../temp/cmd/ta_CDLHARAMICROSS.o: ../../../../../src/ta_func/ta_CDLHARAMICROSS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLHARAMICROSS.o ../../../../../src/ta_func/ta_CDLHARAMICROSS.c + +../../../../../temp/cmd/ta_CDLHIGHWAVE.o: ../../../../../src/ta_func/ta_CDLHIGHWAVE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLHIGHWAVE.o ../../../../../src/ta_func/ta_CDLHIGHWAVE.c + +../../../../../temp/cmd/ta_CDLHIKKAKE.o: ../../../../../src/ta_func/ta_CDLHIKKAKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLHIKKAKE.o ../../../../../src/ta_func/ta_CDLHIKKAKE.c + +../../../../../temp/cmd/ta_CDLHIKKAKEMOD.o: ../../../../../src/ta_func/ta_CDLHIKKAKEMOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLHIKKAKEMOD.o ../../../../../src/ta_func/ta_CDLHIKKAKEMOD.c + +../../../../../temp/cmd/ta_CDLHOMINGPIGEON.o: ../../../../../src/ta_func/ta_CDLHOMINGPIGEON.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLHOMINGPIGEON.o ../../../../../src/ta_func/ta_CDLHOMINGPIGEON.c + +../../../../../temp/cmd/ta_CDLIDENTICAL3CROWS.o: ../../../../../src/ta_func/ta_CDLIDENTICAL3CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLIDENTICAL3CROWS.o ../../../../../src/ta_func/ta_CDLIDENTICAL3CROWS.c + +../../../../../temp/cmd/ta_CDLINNECK.o: ../../../../../src/ta_func/ta_CDLINNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLINNECK.o ../../../../../src/ta_func/ta_CDLINNECK.c + +../../../../../temp/cmd/ta_CDLINVERTEDHAMMER.o: ../../../../../src/ta_func/ta_CDLINVERTEDHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLINVERTEDHAMMER.o ../../../../../src/ta_func/ta_CDLINVERTEDHAMMER.c + +../../../../../temp/cmd/ta_CDLKICKING.o: ../../../../../src/ta_func/ta_CDLKICKING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLKICKING.o ../../../../../src/ta_func/ta_CDLKICKING.c + +../../../../../temp/cmd/ta_CDLKICKINGBYLENGTH.o: ../../../../../src/ta_func/ta_CDLKICKINGBYLENGTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLKICKINGBYLENGTH.o ../../../../../src/ta_func/ta_CDLKICKINGBYLENGTH.c + +../../../../../temp/cmd/ta_CDLLADDERBOTTOM.o: ../../../../../src/ta_func/ta_CDLLADDERBOTTOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLLADDERBOTTOM.o ../../../../../src/ta_func/ta_CDLLADDERBOTTOM.c + +../../../../../temp/cmd/ta_CDLLONGLEGGEDDOJI.o: ../../../../../src/ta_func/ta_CDLLONGLEGGEDDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLLONGLEGGEDDOJI.o ../../../../../src/ta_func/ta_CDLLONGLEGGEDDOJI.c + +../../../../../temp/cmd/ta_CDLLONGLINE.o: ../../../../../src/ta_func/ta_CDLLONGLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLLONGLINE.o ../../../../../src/ta_func/ta_CDLLONGLINE.c + +../../../../../temp/cmd/ta_CDLMARUBOZU.o: ../../../../../src/ta_func/ta_CDLMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLMARUBOZU.o ../../../../../src/ta_func/ta_CDLMARUBOZU.c + +../../../../../temp/cmd/ta_CDLMATCHINGLOW.o: ../../../../../src/ta_func/ta_CDLMATCHINGLOW.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLMATCHINGLOW.o ../../../../../src/ta_func/ta_CDLMATCHINGLOW.c + +../../../../../temp/cmd/ta_CDLMATHOLD.o: ../../../../../src/ta_func/ta_CDLMATHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLMATHOLD.o ../../../../../src/ta_func/ta_CDLMATHOLD.c + +../../../../../temp/cmd/ta_CDLMORNINGDOJISTAR.o: ../../../../../src/ta_func/ta_CDLMORNINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLMORNINGDOJISTAR.o ../../../../../src/ta_func/ta_CDLMORNINGDOJISTAR.c + +../../../../../temp/cmd/ta_CDLMORNINGSTAR.o: ../../../../../src/ta_func/ta_CDLMORNINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLMORNINGSTAR.o ../../../../../src/ta_func/ta_CDLMORNINGSTAR.c + +../../../../../temp/cmd/ta_CDLONNECK.o: ../../../../../src/ta_func/ta_CDLONNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLONNECK.o ../../../../../src/ta_func/ta_CDLONNECK.c + +../../../../../temp/cmd/ta_CDLPIERCING.o: ../../../../../src/ta_func/ta_CDLPIERCING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLPIERCING.o ../../../../../src/ta_func/ta_CDLPIERCING.c + +../../../../../temp/cmd/ta_CDLRICKSHAWMAN.o: ../../../../../src/ta_func/ta_CDLRICKSHAWMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLRICKSHAWMAN.o ../../../../../src/ta_func/ta_CDLRICKSHAWMAN.c + +../../../../../temp/cmd/ta_CDLRISEFALL3METHODS.o: ../../../../../src/ta_func/ta_CDLRISEFALL3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLRISEFALL3METHODS.o ../../../../../src/ta_func/ta_CDLRISEFALL3METHODS.c + +../../../../../temp/cmd/ta_CDLSEPARATINGLINES.o: ../../../../../src/ta_func/ta_CDLSEPARATINGLINES.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLSEPARATINGLINES.o ../../../../../src/ta_func/ta_CDLSEPARATINGLINES.c + +../../../../../temp/cmd/ta_CDLSHOOTINGSTAR.o: ../../../../../src/ta_func/ta_CDLSHOOTINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLSHOOTINGSTAR.o ../../../../../src/ta_func/ta_CDLSHOOTINGSTAR.c + +../../../../../temp/cmd/ta_CDLSHORTLINE.o: ../../../../../src/ta_func/ta_CDLSHORTLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLSHORTLINE.o ../../../../../src/ta_func/ta_CDLSHORTLINE.c + +../../../../../temp/cmd/ta_CDLSPINNINGTOP.o: ../../../../../src/ta_func/ta_CDLSPINNINGTOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLSPINNINGTOP.o ../../../../../src/ta_func/ta_CDLSPINNINGTOP.c + +../../../../../temp/cmd/ta_CDLSTALLEDPATTERN.o: ../../../../../src/ta_func/ta_CDLSTALLEDPATTERN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLSTALLEDPATTERN.o ../../../../../src/ta_func/ta_CDLSTALLEDPATTERN.c + +../../../../../temp/cmd/ta_CDLSTICKSANDWICH.o: ../../../../../src/ta_func/ta_CDLSTICKSANDWICH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLSTICKSANDWICH.o ../../../../../src/ta_func/ta_CDLSTICKSANDWICH.c + +../../../../../temp/cmd/ta_CDLTAKURI.o: ../../../../../src/ta_func/ta_CDLTAKURI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLTAKURI.o ../../../../../src/ta_func/ta_CDLTAKURI.c + +../../../../../temp/cmd/ta_CDLTASUKIGAP.o: ../../../../../src/ta_func/ta_CDLTASUKIGAP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLTASUKIGAP.o ../../../../../src/ta_func/ta_CDLTASUKIGAP.c + +../../../../../temp/cmd/ta_CDLTHRUSTING.o: ../../../../../src/ta_func/ta_CDLTHRUSTING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLTHRUSTING.o ../../../../../src/ta_func/ta_CDLTHRUSTING.c + +../../../../../temp/cmd/ta_CDLTRISTAR.o: ../../../../../src/ta_func/ta_CDLTRISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLTRISTAR.o ../../../../../src/ta_func/ta_CDLTRISTAR.c + +../../../../../temp/cmd/ta_CDLUNIQUE3RIVER.o: ../../../../../src/ta_func/ta_CDLUNIQUE3RIVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLUNIQUE3RIVER.o ../../../../../src/ta_func/ta_CDLUNIQUE3RIVER.c + +../../../../../temp/cmd/ta_CDLUPSIDEGAP2CROWS.o: ../../../../../src/ta_func/ta_CDLUPSIDEGAP2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLUPSIDEGAP2CROWS.o ../../../../../src/ta_func/ta_CDLUPSIDEGAP2CROWS.c + +../../../../../temp/cmd/ta_CDLXSIDEGAP3METHODS.o: ../../../../../src/ta_func/ta_CDLXSIDEGAP3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLXSIDEGAP3METHODS.o ../../../../../src/ta_func/ta_CDLXSIDEGAP3METHODS.c + +../../../../../temp/cmd/ta_CEIL.o: ../../../../../src/ta_func/ta_CEIL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CEIL.o ../../../../../src/ta_func/ta_CEIL.c + +../../../../../temp/cmd/ta_CMO.o: ../../../../../src/ta_func/ta_CMO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CMO.o ../../../../../src/ta_func/ta_CMO.c + +../../../../../temp/cmd/ta_CORREL.o: ../../../../../src/ta_func/ta_CORREL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CORREL.o ../../../../../src/ta_func/ta_CORREL.c + +../../../../../temp/cmd/ta_COS.o: ../../../../../src/ta_func/ta_COS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_COS.o ../../../../../src/ta_func/ta_COS.c + +../../../../../temp/cmd/ta_COSH.o: ../../../../../src/ta_func/ta_COSH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_COSH.o ../../../../../src/ta_func/ta_COSH.c + +../../../../../temp/cmd/ta_DEMA.o: ../../../../../src/ta_func/ta_DEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_DEMA.o ../../../../../src/ta_func/ta_DEMA.c + +../../../../../temp/cmd/ta_DIV.o: ../../../../../src/ta_func/ta_DIV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_DIV.o ../../../../../src/ta_func/ta_DIV.c + +../../../../../temp/cmd/ta_DX.o: ../../../../../src/ta_func/ta_DX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_DX.o ../../../../../src/ta_func/ta_DX.c + +../../../../../temp/cmd/ta_EMA.o: ../../../../../src/ta_func/ta_EMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_EMA.o ../../../../../src/ta_func/ta_EMA.c + +../../../../../temp/cmd/ta_EXP.o: ../../../../../src/ta_func/ta_EXP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_EXP.o ../../../../../src/ta_func/ta_EXP.c + +../../../../../temp/cmd/ta_FLOOR.o: ../../../../../src/ta_func/ta_FLOOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_FLOOR.o ../../../../../src/ta_func/ta_FLOOR.c + +../../../../../temp/cmd/ta_HT_DCPERIOD.o: ../../../../../src/ta_func/ta_HT_DCPERIOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_HT_DCPERIOD.o ../../../../../src/ta_func/ta_HT_DCPERIOD.c + +../../../../../temp/cmd/ta_HT_DCPHASE.o: ../../../../../src/ta_func/ta_HT_DCPHASE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_HT_DCPHASE.o ../../../../../src/ta_func/ta_HT_DCPHASE.c + +../../../../../temp/cmd/ta_HT_PHASOR.o: ../../../../../src/ta_func/ta_HT_PHASOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_HT_PHASOR.o ../../../../../src/ta_func/ta_HT_PHASOR.c + +../../../../../temp/cmd/ta_HT_SINE.o: ../../../../../src/ta_func/ta_HT_SINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_HT_SINE.o ../../../../../src/ta_func/ta_HT_SINE.c + +../../../../../temp/cmd/ta_HT_TRENDLINE.o: ../../../../../src/ta_func/ta_HT_TRENDLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_HT_TRENDLINE.o ../../../../../src/ta_func/ta_HT_TRENDLINE.c + +../../../../../temp/cmd/ta_HT_TRENDMODE.o: ../../../../../src/ta_func/ta_HT_TRENDMODE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_HT_TRENDMODE.o ../../../../../src/ta_func/ta_HT_TRENDMODE.c + +../../../../../temp/cmd/ta_KAMA.o: ../../../../../src/ta_func/ta_KAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_KAMA.o ../../../../../src/ta_func/ta_KAMA.c + +../../../../../temp/cmd/ta_LINEARREG.o: ../../../../../src/ta_func/ta_LINEARREG.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_LINEARREG.o ../../../../../src/ta_func/ta_LINEARREG.c + +../../../../../temp/cmd/ta_LINEARREG_ANGLE.o: ../../../../../src/ta_func/ta_LINEARREG_ANGLE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_LINEARREG_ANGLE.o ../../../../../src/ta_func/ta_LINEARREG_ANGLE.c + +../../../../../temp/cmd/ta_LINEARREG_INTERCEPT.o: ../../../../../src/ta_func/ta_LINEARREG_INTERCEPT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_LINEARREG_INTERCEPT.o ../../../../../src/ta_func/ta_LINEARREG_INTERCEPT.c + +../../../../../temp/cmd/ta_LINEARREG_SLOPE.o: ../../../../../src/ta_func/ta_LINEARREG_SLOPE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_LINEARREG_SLOPE.o ../../../../../src/ta_func/ta_LINEARREG_SLOPE.c + +../../../../../temp/cmd/ta_LN.o: ../../../../../src/ta_func/ta_LN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_LN.o ../../../../../src/ta_func/ta_LN.c + +../../../../../temp/cmd/ta_LOG10.o: ../../../../../src/ta_func/ta_LOG10.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_LOG10.o ../../../../../src/ta_func/ta_LOG10.c + +../../../../../temp/cmd/ta_MA.o: ../../../../../src/ta_func/ta_MA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_MA.o ../../../../../src/ta_func/ta_MA.c + +../../../../../temp/cmd/ta_MACD.o: ../../../../../src/ta_func/ta_MACD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_MACD.o ../../../../../src/ta_func/ta_MACD.c + +../../../../../temp/cmd/ta_MACDEXT.o: ../../../../../src/ta_func/ta_MACDEXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_MACDEXT.o ../../../../../src/ta_func/ta_MACDEXT.c + +../../../../../temp/cmd/ta_MACDFIX.o: ../../../../../src/ta_func/ta_MACDFIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_MACDFIX.o ../../../../../src/ta_func/ta_MACDFIX.c + +../../../../../temp/cmd/ta_MAMA.o: ../../../../../src/ta_func/ta_MAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_MAMA.o ../../../../../src/ta_func/ta_MAMA.c + +../../../../../temp/cmd/ta_MAVP.o: ../../../../../src/ta_func/ta_MAVP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_MAVP.o ../../../../../src/ta_func/ta_MAVP.c + +../../../../../temp/cmd/ta_MAX.o: ../../../../../src/ta_func/ta_MAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_MAX.o ../../../../../src/ta_func/ta_MAX.c + +../../../../../temp/cmd/ta_MAXINDEX.o: ../../../../../src/ta_func/ta_MAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_MAXINDEX.o ../../../../../src/ta_func/ta_MAXINDEX.c + +../../../../../temp/cmd/ta_MEDPRICE.o: ../../../../../src/ta_func/ta_MEDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_MEDPRICE.o ../../../../../src/ta_func/ta_MEDPRICE.c + +../../../../../temp/cmd/ta_MFI.o: ../../../../../src/ta_func/ta_MFI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_MFI.o ../../../../../src/ta_func/ta_MFI.c + +../../../../../temp/cmd/ta_MIDPOINT.o: ../../../../../src/ta_func/ta_MIDPOINT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_MIDPOINT.o ../../../../../src/ta_func/ta_MIDPOINT.c + +../../../../../temp/cmd/ta_MIDPRICE.o: ../../../../../src/ta_func/ta_MIDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_MIDPRICE.o ../../../../../src/ta_func/ta_MIDPRICE.c + +../../../../../temp/cmd/ta_MIN.o: ../../../../../src/ta_func/ta_MIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_MIN.o ../../../../../src/ta_func/ta_MIN.c + +../../../../../temp/cmd/ta_MININDEX.o: ../../../../../src/ta_func/ta_MININDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_MININDEX.o ../../../../../src/ta_func/ta_MININDEX.c + +../../../../../temp/cmd/ta_MINMAX.o: ../../../../../src/ta_func/ta_MINMAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_MINMAX.o ../../../../../src/ta_func/ta_MINMAX.c + +../../../../../temp/cmd/ta_MINMAXINDEX.o: ../../../../../src/ta_func/ta_MINMAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_MINMAXINDEX.o ../../../../../src/ta_func/ta_MINMAXINDEX.c + +../../../../../temp/cmd/ta_MINUS_DI.o: ../../../../../src/ta_func/ta_MINUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_MINUS_DI.o ../../../../../src/ta_func/ta_MINUS_DI.c + +../../../../../temp/cmd/ta_MINUS_DM.o: ../../../../../src/ta_func/ta_MINUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_MINUS_DM.o ../../../../../src/ta_func/ta_MINUS_DM.c + +../../../../../temp/cmd/ta_MOM.o: ../../../../../src/ta_func/ta_MOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_MOM.o ../../../../../src/ta_func/ta_MOM.c + +../../../../../temp/cmd/ta_MULT.o: ../../../../../src/ta_func/ta_MULT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_MULT.o ../../../../../src/ta_func/ta_MULT.c + +../../../../../temp/cmd/ta_NATR.o: ../../../../../src/ta_func/ta_NATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_NATR.o ../../../../../src/ta_func/ta_NATR.c + +../../../../../temp/cmd/ta_OBV.o: ../../../../../src/ta_func/ta_OBV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_OBV.o ../../../../../src/ta_func/ta_OBV.c + +../../../../../temp/cmd/ta_PLUS_DI.o: ../../../../../src/ta_func/ta_PLUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_PLUS_DI.o ../../../../../src/ta_func/ta_PLUS_DI.c + +../../../../../temp/cmd/ta_PLUS_DM.o: ../../../../../src/ta_func/ta_PLUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_PLUS_DM.o ../../../../../src/ta_func/ta_PLUS_DM.c + +../../../../../temp/cmd/ta_PPO.o: ../../../../../src/ta_func/ta_PPO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_PPO.o ../../../../../src/ta_func/ta_PPO.c + +../../../../../temp/cmd/ta_ROC.o: ../../../../../src/ta_func/ta_ROC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_ROC.o ../../../../../src/ta_func/ta_ROC.c + +../../../../../temp/cmd/ta_ROCP.o: ../../../../../src/ta_func/ta_ROCP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_ROCP.o ../../../../../src/ta_func/ta_ROCP.c + +../../../../../temp/cmd/ta_ROCR.o: ../../../../../src/ta_func/ta_ROCR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_ROCR.o ../../../../../src/ta_func/ta_ROCR.c + +../../../../../temp/cmd/ta_ROCR100.o: ../../../../../src/ta_func/ta_ROCR100.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_ROCR100.o ../../../../../src/ta_func/ta_ROCR100.c + +../../../../../temp/cmd/ta_RSI.o: ../../../../../src/ta_func/ta_RSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_RSI.o ../../../../../src/ta_func/ta_RSI.c + +../../../../../temp/cmd/ta_SAR.o: ../../../../../src/ta_func/ta_SAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_SAR.o ../../../../../src/ta_func/ta_SAR.c + +../../../../../temp/cmd/ta_SAREXT.o: ../../../../../src/ta_func/ta_SAREXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_SAREXT.o ../../../../../src/ta_func/ta_SAREXT.c + +../../../../../temp/cmd/ta_SIN.o: ../../../../../src/ta_func/ta_SIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_SIN.o ../../../../../src/ta_func/ta_SIN.c + +../../../../../temp/cmd/ta_SINH.o: ../../../../../src/ta_func/ta_SINH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_SINH.o ../../../../../src/ta_func/ta_SINH.c + +../../../../../temp/cmd/ta_SMA.o: ../../../../../src/ta_func/ta_SMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_SMA.o ../../../../../src/ta_func/ta_SMA.c + +../../../../../temp/cmd/ta_SQRT.o: ../../../../../src/ta_func/ta_SQRT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_SQRT.o ../../../../../src/ta_func/ta_SQRT.c + +../../../../../temp/cmd/ta_STDDEV.o: ../../../../../src/ta_func/ta_STDDEV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_STDDEV.o ../../../../../src/ta_func/ta_STDDEV.c + +../../../../../temp/cmd/ta_STOCH.o: ../../../../../src/ta_func/ta_STOCH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_STOCH.o ../../../../../src/ta_func/ta_STOCH.c + +../../../../../temp/cmd/ta_STOCHF.o: ../../../../../src/ta_func/ta_STOCHF.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_STOCHF.o ../../../../../src/ta_func/ta_STOCHF.c + +../../../../../temp/cmd/ta_STOCHRSI.o: ../../../../../src/ta_func/ta_STOCHRSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_STOCHRSI.o ../../../../../src/ta_func/ta_STOCHRSI.c + +../../../../../temp/cmd/ta_SUB.o: ../../../../../src/ta_func/ta_SUB.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_SUB.o ../../../../../src/ta_func/ta_SUB.c + +../../../../../temp/cmd/ta_SUM.o: ../../../../../src/ta_func/ta_SUM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_SUM.o ../../../../../src/ta_func/ta_SUM.c + +../../../../../temp/cmd/ta_T3.o: ../../../../../src/ta_func/ta_T3.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_T3.o ../../../../../src/ta_func/ta_T3.c + +../../../../../temp/cmd/ta_TAN.o: ../../../../../src/ta_func/ta_TAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_TAN.o ../../../../../src/ta_func/ta_TAN.c + +../../../../../temp/cmd/ta_TANH.o: ../../../../../src/ta_func/ta_TANH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_TANH.o ../../../../../src/ta_func/ta_TANH.c + +../../../../../temp/cmd/ta_TEMA.o: ../../../../../src/ta_func/ta_TEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_TEMA.o ../../../../../src/ta_func/ta_TEMA.c + +../../../../../temp/cmd/ta_TRANGE.o: ../../../../../src/ta_func/ta_TRANGE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_TRANGE.o ../../../../../src/ta_func/ta_TRANGE.c + +../../../../../temp/cmd/ta_TRIMA.o: ../../../../../src/ta_func/ta_TRIMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_TRIMA.o ../../../../../src/ta_func/ta_TRIMA.c + +../../../../../temp/cmd/ta_TRIX.o: ../../../../../src/ta_func/ta_TRIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_TRIX.o ../../../../../src/ta_func/ta_TRIX.c + +../../../../../temp/cmd/ta_TSF.o: ../../../../../src/ta_func/ta_TSF.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_TSF.o ../../../../../src/ta_func/ta_TSF.c + +../../../../../temp/cmd/ta_TYPPRICE.o: ../../../../../src/ta_func/ta_TYPPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_TYPPRICE.o ../../../../../src/ta_func/ta_TYPPRICE.c + +../../../../../temp/cmd/ta_ULTOSC.o: ../../../../../src/ta_func/ta_ULTOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_ULTOSC.o ../../../../../src/ta_func/ta_ULTOSC.c + +../../../../../temp/cmd/ta_VAR.o: ../../../../../src/ta_func/ta_VAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_VAR.o ../../../../../src/ta_func/ta_VAR.c + +../../../../../temp/cmd/ta_WCLPRICE.o: ../../../../../src/ta_func/ta_WCLPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_WCLPRICE.o ../../../../../src/ta_func/ta_WCLPRICE.c + +../../../../../temp/cmd/ta_WILLR.o: ../../../../../src/ta_func/ta_WILLR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_WILLR.o ../../../../../src/ta_func/ta_WILLR.c + +../../../../../temp/cmd/ta_WMA.o: ../../../../../src/ta_func/ta_WMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_WMA.o ../../../../../src/ta_func/ta_WMA.c + diff --git a/make/cmd/freebsd/g++/ta_regtest/Makefile b/make/cmd/freebsd/g++/ta_regtest/Makefile new file mode 100644 index 000000000..167b52f1f --- /dev/null +++ b/make/cmd/freebsd/g++/ta_regtest/Makefile @@ -0,0 +1,205 @@ +############################################################################# +# Makefile for building ../../../../../bin/ta_regtest +# Generated by tmake; +# Project: ta_regtest/ta_regtest +# Template: app +############################################################################# + +####### Compiler, tools and options + +CC = gcc +CXX = g++ +CFLAGS = -pipe -Wall -W -g -D_REENTRANT -DTA_DEBUG -D_DEBUG -DQT_THREAD_SUPPORT +CXXFLAGS= -pipe -Wall -W -g -D_REENTRANT -DTA_DEBUG -D_DEBUG -DQT_THREAD_SUPPORT +INCPATH = -I../../../../../src/ta_common -I../../../../../src/tools/ta_regtest -I../../../../../src/ta_func -I../../../../../include -I/usr/local/include +LINK = g++ +LFLAGS = -L/usr/local/lib +LIBS = $(SUBLIBS) ../../../../../lib/libta_libc_cmd.a -pthread +MOC = $(QTDIR)/bin/moc +UIC = $(QTDIR)/bin/uic + +TAR = tar -cf +GZIP = gzip -9f + +####### Apply additional overruling user flags, if any +CFLAGS += $(CUSERFLAGS) +CXXFLAGS += $(CUSERFLAGS) + +####### Files + +HEADERS = +SOURCES = ../../../../../src/tools/ta_regtest/ta_regtest.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_candlestick.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_1in_1out.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_1in_2out.c \ + ../../../../../src/tools/ta_regtest/test_internals.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_adx.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_bbands.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_ma.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_macd.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_minmax.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_mom.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_per_ema.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hl.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hlc.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hlcv.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_per_ohlc.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_po.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_rsi.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_sar.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_stddev.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_stoch.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_trange.c \ + ../../../../../src/tools/ta_regtest/test_util.c \ + ../../../../../src/tools/ta_regtest/test_data.c \ + ../../../../../src/tools/ta_regtest/test_abstract.c +OBJECTS = ../../../../../temp/cmd/ta_regtest.o \ + ../../../../../temp/cmd/test_candlestick.o \ + ../../../../../temp/cmd/test_1in_1out.o \ + ../../../../../temp/cmd/test_1in_2out.o \ + ../../../../../temp/cmd/test_internals.o \ + ../../../../../temp/cmd/test_adx.o \ + ../../../../../temp/cmd/test_bbands.o \ + ../../../../../temp/cmd/test_ma.o \ + ../../../../../temp/cmd/test_macd.o \ + ../../../../../temp/cmd/test_minmax.o \ + ../../../../../temp/cmd/test_mom.o \ + ../../../../../temp/cmd/test_per_ema.o \ + ../../../../../temp/cmd/test_per_hl.o \ + ../../../../../temp/cmd/test_per_hlc.o \ + ../../../../../temp/cmd/test_per_hlcv.o \ + ../../../../../temp/cmd/test_per_ohlc.o \ + ../../../../../temp/cmd/test_po.o \ + ../../../../../temp/cmd/test_rsi.o \ + ../../../../../temp/cmd/test_sar.o \ + ../../../../../temp/cmd/test_stddev.o \ + ../../../../../temp/cmd/test_stoch.o \ + ../../../../../temp/cmd/test_trange.o \ + ../../../../../temp/cmd/test_util.o \ + ../../../../../temp/cmd/test_data.o \ + ../../../../../temp/cmd/test_abstract.o +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ../../../../../bin/ta_regtest +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .C .c + +.cpp.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cxx.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cc.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.C.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.c.o: + $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $< + +####### Build rules + + +all: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS) + +moc: $(SRCMOC) + +clean: + -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) + -rm -f *~ core + +####### Sub-libraries + + +###### Combined headers + + +####### Compile + +../../../../../temp/cmd/ta_regtest.o: ../../../../../src/tools/ta_regtest/ta_regtest.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_regtest.o ../../../../../src/tools/ta_regtest/ta_regtest.c + +../../../../../temp/cmd/test_candlestick.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_candlestick.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/test_candlestick.o ../../../../../src/tools/ta_regtest/ta_test_func/test_candlestick.c + +../../../../../temp/cmd/test_1in_1out.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_1in_1out.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/test_1in_1out.o ../../../../../src/tools/ta_regtest/ta_test_func/test_1in_1out.c + +../../../../../temp/cmd/test_1in_2out.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_1in_2out.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/test_1in_2out.o ../../../../../src/tools/ta_regtest/ta_test_func/test_1in_2out.c + +../../../../../temp/cmd/test_internals.o: ../../../../../src/tools/ta_regtest/test_internals.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/test_internals.o ../../../../../src/tools/ta_regtest/test_internals.c + +../../../../../temp/cmd/test_adx.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_adx.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/test_adx.o ../../../../../src/tools/ta_regtest/ta_test_func/test_adx.c + +../../../../../temp/cmd/test_bbands.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_bbands.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/test_bbands.o ../../../../../src/tools/ta_regtest/ta_test_func/test_bbands.c + +../../../../../temp/cmd/test_ma.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_ma.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/test_ma.o ../../../../../src/tools/ta_regtest/ta_test_func/test_ma.c + +../../../../../temp/cmd/test_macd.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_macd.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/test_macd.o ../../../../../src/tools/ta_regtest/ta_test_func/test_macd.c + +../../../../../temp/cmd/test_minmax.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_minmax.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/test_minmax.o ../../../../../src/tools/ta_regtest/ta_test_func/test_minmax.c + +../../../../../temp/cmd/test_mom.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_mom.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/test_mom.o ../../../../../src/tools/ta_regtest/ta_test_func/test_mom.c + +../../../../../temp/cmd/test_per_ema.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_per_ema.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/test_per_ema.o ../../../../../src/tools/ta_regtest/ta_test_func/test_per_ema.c + +../../../../../temp/cmd/test_per_hl.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hl.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/test_per_hl.o ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hl.c + +../../../../../temp/cmd/test_per_hlc.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hlc.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/test_per_hlc.o ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hlc.c + +../../../../../temp/cmd/test_per_hlcv.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hlcv.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/test_per_hlcv.o ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hlcv.c + +../../../../../temp/cmd/test_per_ohlc.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_per_ohlc.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/test_per_ohlc.o ../../../../../src/tools/ta_regtest/ta_test_func/test_per_ohlc.c + +../../../../../temp/cmd/test_po.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_po.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/test_po.o ../../../../../src/tools/ta_regtest/ta_test_func/test_po.c + +../../../../../temp/cmd/test_rsi.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_rsi.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/test_rsi.o ../../../../../src/tools/ta_regtest/ta_test_func/test_rsi.c + +../../../../../temp/cmd/test_sar.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_sar.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/test_sar.o ../../../../../src/tools/ta_regtest/ta_test_func/test_sar.c + +../../../../../temp/cmd/test_stddev.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_stddev.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/test_stddev.o ../../../../../src/tools/ta_regtest/ta_test_func/test_stddev.c + +../../../../../temp/cmd/test_stoch.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_stoch.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/test_stoch.o ../../../../../src/tools/ta_regtest/ta_test_func/test_stoch.c + +../../../../../temp/cmd/test_trange.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_trange.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/test_trange.o ../../../../../src/tools/ta_regtest/ta_test_func/test_trange.c + +../../../../../temp/cmd/test_util.o: ../../../../../src/tools/ta_regtest/test_util.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/test_util.o ../../../../../src/tools/ta_regtest/test_util.c + +../../../../../temp/cmd/test_data.o: ../../../../../src/tools/ta_regtest/test_data.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/test_data.o ../../../../../src/tools/ta_regtest/test_data.c + +../../../../../temp/cmd/test_abstract.o: ../../../../../src/tools/ta_regtest/test_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/test_abstract.o ../../../../../src/tools/ta_regtest/test_abstract.c + diff --git a/make/cmd/linux/g++/Makefile b/make/cmd/linux/g++/Makefile new file mode 100644 index 000000000..60f7bb666 --- /dev/null +++ b/make/cmd/linux/g++/Makefile @@ -0,0 +1,36 @@ +############################################################################# +# Makefile for building targets in sub directories. +# Generated by tmake; +# Project: rootmake +# Template: subdirs +############################################################################# + +MAKEFILE= Makefile +TMAKE = tmake + +SUBDIRS = ta_common \ + ta_func \ + ta_abstract \ + ta_libc \ + gen_code \ + ta_regtest + +all: $(SUBDIRS) + +$(SUBDIRS): FORCE + cd $@; $(MAKE) + +tmake: ../cmd/linux/g++/Makefile + +../cmd/linux/g++/Makefile: rootmake.pro + tmake rootmake.pro -o ../cmd/linux/g++/Makefile + +tmake_all: + for i in $(SUBDIRS); do ( if [ -d $$i ]; then cd $$i ; $(MAKE) -f $(MAKEFILE) tmake_all || true; fi; ) ; done + +#### $text = "\t" . 'for i in $(SUBDIRS); do ( if [ -d $$i ]; then cd $$i ; pro=`basename $$i`.pro ; $(TMAKE) $$pro -o $(MAKEFILE); grep "TEMPLATE.*subdirs" $$pro 2>/dev/null >/dev/null && $(MAKE) -f $(MAKEFILE) tmake_all || true; fi; ) ; done'; + +clean release debug: + for i in $(SUBDIRS); do ( if [ -d $$i ]; then cd $$i ; $(MAKE) $@; fi; ) ; done + +FORCE: diff --git a/make/cmd/linux/g++/gen_code/Makefile b/make/cmd/linux/g++/gen_code/Makefile new file mode 100644 index 000000000..665737f1d --- /dev/null +++ b/make/cmd/linux/g++/gen_code/Makefile @@ -0,0 +1,231 @@ +############################################################################# +# Makefile for building ../../../../../bin/gen_code +# Generated by tmake; +# Project: gen_code/gen_code +# Template: app +############################################################################# + +####### Compiler, tools and options + +CC = gcc +CXX = g++ +CFLAGS = -pipe -fPIC -Wall -W -g -D_REENTRANT -DTA_GEN_CODE -DTA_DEBUG -D_DEBUG -DQT_THREAD_SUPPORT +CXXFLAGS= -pipe -fPIC -Wall -W -g -D_REENTRANT -DTA_GEN_CODE -DTA_DEBUG -D_DEBUG -DQT_THREAD_SUPPORT +INCPATH = -I../../../../../include -I../../../../../src/ta_common -I../../../../../src/ta_abstract -I../../../../../src/ta_abstract/tables -I../../../../../src/ta_abstract/frames +LINK = g++ +LFLAGS = +LIBS = $(SUBLIBS) ../../../../../lib/libta_common_cmd.a -ldl -lpthread +MOC = $(QTDIR)/bin/moc +UIC = $(QTDIR)/bin/uic + +TAR = tar -cf +GZIP = gzip -9f + +####### Support for 64-bit systems +ifeq ($(shell uname -m), x86_64) + CFLAGS += -march=x86-64 -m64 -D__64BIT__ + CXXFLAGS += -march=x86-64 -m64 -D__64BIT__ +endif + +####### Apply additional overruling user flags, if any +CFLAGS += $(CUSERFLAGS) +CXXFLAGS += $(CUSERFLAGS) + +####### Files + +HEADERS = +SOURCES = ../../../../../src/tools/gen_code/gen_code.c \ + ../../../../../src/ta_abstract/ta_abstract.c \ + ../../../../../src/ta_abstract/ta_def_ui.c \ + ../../../../../src/ta_abstract/tables/table_a.c \ + ../../../../../src/ta_abstract/tables/table_b.c \ + ../../../../../src/ta_abstract/tables/table_c.c \ + ../../../../../src/ta_abstract/tables/table_d.c \ + ../../../../../src/ta_abstract/tables/table_e.c \ + ../../../../../src/ta_abstract/tables/table_f.c \ + ../../../../../src/ta_abstract/tables/table_g.c \ + ../../../../../src/ta_abstract/tables/table_h.c \ + ../../../../../src/ta_abstract/tables/table_i.c \ + ../../../../../src/ta_abstract/tables/table_j.c \ + ../../../../../src/ta_abstract/tables/table_k.c \ + ../../../../../src/ta_abstract/tables/table_l.c \ + ../../../../../src/ta_abstract/tables/table_m.c \ + ../../../../../src/ta_abstract/tables/table_n.c \ + ../../../../../src/ta_abstract/tables/table_o.c \ + ../../../../../src/ta_abstract/tables/table_p.c \ + ../../../../../src/ta_abstract/tables/table_q.c \ + ../../../../../src/ta_abstract/tables/table_r.c \ + ../../../../../src/ta_abstract/tables/table_s.c \ + ../../../../../src/ta_abstract/tables/table_t.c \ + ../../../../../src/ta_abstract/tables/table_u.c \ + ../../../../../src/ta_abstract/tables/table_v.c \ + ../../../../../src/ta_abstract/tables/table_w.c \ + ../../../../../src/ta_abstract/tables/table_x.c \ + ../../../../../src/ta_abstract/tables/table_y.c \ + ../../../../../src/ta_abstract/tables/table_z.c +OBJECTS = ../../../../../temp/cmd/gen_code/gen_code.o \ + ../../../../../temp/cmd/gen_code/ta_abstract.o \ + ../../../../../temp/cmd/gen_code/ta_def_ui.o \ + ../../../../../temp/cmd/gen_code/table_a.o \ + ../../../../../temp/cmd/gen_code/table_b.o \ + ../../../../../temp/cmd/gen_code/table_c.o \ + ../../../../../temp/cmd/gen_code/table_d.o \ + ../../../../../temp/cmd/gen_code/table_e.o \ + ../../../../../temp/cmd/gen_code/table_f.o \ + ../../../../../temp/cmd/gen_code/table_g.o \ + ../../../../../temp/cmd/gen_code/table_h.o \ + ../../../../../temp/cmd/gen_code/table_i.o \ + ../../../../../temp/cmd/gen_code/table_j.o \ + ../../../../../temp/cmd/gen_code/table_k.o \ + ../../../../../temp/cmd/gen_code/table_l.o \ + ../../../../../temp/cmd/gen_code/table_m.o \ + ../../../../../temp/cmd/gen_code/table_n.o \ + ../../../../../temp/cmd/gen_code/table_o.o \ + ../../../../../temp/cmd/gen_code/table_p.o \ + ../../../../../temp/cmd/gen_code/table_q.o \ + ../../../../../temp/cmd/gen_code/table_r.o \ + ../../../../../temp/cmd/gen_code/table_s.o \ + ../../../../../temp/cmd/gen_code/table_t.o \ + ../../../../../temp/cmd/gen_code/table_u.o \ + ../../../../../temp/cmd/gen_code/table_v.o \ + ../../../../../temp/cmd/gen_code/table_w.o \ + ../../../../../temp/cmd/gen_code/table_x.o \ + ../../../../../temp/cmd/gen_code/table_y.o \ + ../../../../../temp/cmd/gen_code/table_z.o +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ../../../../../bin/gen_code +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .C .c + +.cpp.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cxx.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cc.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.C.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.c.o: + $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $< + +####### Build rules + + +all: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS) + +moc: $(SRCMOC) + +clean: + -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) + -rm -f *~ core + +####### Sub-libraries + + +###### Combined headers + + +####### Compile + +../../../../../temp/cmd/gen_code/gen_code.o: ../../../../../src/tools/gen_code/gen_code.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/gen_code/gen_code.o ../../../../../src/tools/gen_code/gen_code.c + +../../../../../temp/cmd/gen_code/ta_abstract.o: ../../../../../src/ta_abstract/ta_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/gen_code/ta_abstract.o ../../../../../src/ta_abstract/ta_abstract.c + +../../../../../temp/cmd/gen_code/ta_def_ui.o: ../../../../../src/ta_abstract/ta_def_ui.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/gen_code/ta_def_ui.o ../../../../../src/ta_abstract/ta_def_ui.c + +../../../../../temp/cmd/gen_code/table_a.o: ../../../../../src/ta_abstract/tables/table_a.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/gen_code/table_a.o ../../../../../src/ta_abstract/tables/table_a.c + +../../../../../temp/cmd/gen_code/table_b.o: ../../../../../src/ta_abstract/tables/table_b.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/gen_code/table_b.o ../../../../../src/ta_abstract/tables/table_b.c + +../../../../../temp/cmd/gen_code/table_c.o: ../../../../../src/ta_abstract/tables/table_c.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/gen_code/table_c.o ../../../../../src/ta_abstract/tables/table_c.c + +../../../../../temp/cmd/gen_code/table_d.o: ../../../../../src/ta_abstract/tables/table_d.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/gen_code/table_d.o ../../../../../src/ta_abstract/tables/table_d.c + +../../../../../temp/cmd/gen_code/table_e.o: ../../../../../src/ta_abstract/tables/table_e.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/gen_code/table_e.o ../../../../../src/ta_abstract/tables/table_e.c + +../../../../../temp/cmd/gen_code/table_f.o: ../../../../../src/ta_abstract/tables/table_f.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/gen_code/table_f.o ../../../../../src/ta_abstract/tables/table_f.c + +../../../../../temp/cmd/gen_code/table_g.o: ../../../../../src/ta_abstract/tables/table_g.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/gen_code/table_g.o ../../../../../src/ta_abstract/tables/table_g.c + +../../../../../temp/cmd/gen_code/table_h.o: ../../../../../src/ta_abstract/tables/table_h.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/gen_code/table_h.o ../../../../../src/ta_abstract/tables/table_h.c + +../../../../../temp/cmd/gen_code/table_i.o: ../../../../../src/ta_abstract/tables/table_i.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/gen_code/table_i.o ../../../../../src/ta_abstract/tables/table_i.c + +../../../../../temp/cmd/gen_code/table_j.o: ../../../../../src/ta_abstract/tables/table_j.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/gen_code/table_j.o ../../../../../src/ta_abstract/tables/table_j.c + +../../../../../temp/cmd/gen_code/table_k.o: ../../../../../src/ta_abstract/tables/table_k.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/gen_code/table_k.o ../../../../../src/ta_abstract/tables/table_k.c + +../../../../../temp/cmd/gen_code/table_l.o: ../../../../../src/ta_abstract/tables/table_l.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/gen_code/table_l.o ../../../../../src/ta_abstract/tables/table_l.c + +../../../../../temp/cmd/gen_code/table_m.o: ../../../../../src/ta_abstract/tables/table_m.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/gen_code/table_m.o ../../../../../src/ta_abstract/tables/table_m.c + +../../../../../temp/cmd/gen_code/table_n.o: ../../../../../src/ta_abstract/tables/table_n.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/gen_code/table_n.o ../../../../../src/ta_abstract/tables/table_n.c + +../../../../../temp/cmd/gen_code/table_o.o: ../../../../../src/ta_abstract/tables/table_o.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/gen_code/table_o.o ../../../../../src/ta_abstract/tables/table_o.c + +../../../../../temp/cmd/gen_code/table_p.o: ../../../../../src/ta_abstract/tables/table_p.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/gen_code/table_p.o ../../../../../src/ta_abstract/tables/table_p.c + +../../../../../temp/cmd/gen_code/table_q.o: ../../../../../src/ta_abstract/tables/table_q.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/gen_code/table_q.o ../../../../../src/ta_abstract/tables/table_q.c + +../../../../../temp/cmd/gen_code/table_r.o: ../../../../../src/ta_abstract/tables/table_r.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/gen_code/table_r.o ../../../../../src/ta_abstract/tables/table_r.c + +../../../../../temp/cmd/gen_code/table_s.o: ../../../../../src/ta_abstract/tables/table_s.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/gen_code/table_s.o ../../../../../src/ta_abstract/tables/table_s.c + +../../../../../temp/cmd/gen_code/table_t.o: ../../../../../src/ta_abstract/tables/table_t.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/gen_code/table_t.o ../../../../../src/ta_abstract/tables/table_t.c + +../../../../../temp/cmd/gen_code/table_u.o: ../../../../../src/ta_abstract/tables/table_u.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/gen_code/table_u.o ../../../../../src/ta_abstract/tables/table_u.c + +../../../../../temp/cmd/gen_code/table_v.o: ../../../../../src/ta_abstract/tables/table_v.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/gen_code/table_v.o ../../../../../src/ta_abstract/tables/table_v.c + +../../../../../temp/cmd/gen_code/table_w.o: ../../../../../src/ta_abstract/tables/table_w.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/gen_code/table_w.o ../../../../../src/ta_abstract/tables/table_w.c + +../../../../../temp/cmd/gen_code/table_x.o: ../../../../../src/ta_abstract/tables/table_x.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/gen_code/table_x.o ../../../../../src/ta_abstract/tables/table_x.c + +../../../../../temp/cmd/gen_code/table_y.o: ../../../../../src/ta_abstract/tables/table_y.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/gen_code/table_y.o ../../../../../src/ta_abstract/tables/table_y.c + +../../../../../temp/cmd/gen_code/table_z.o: ../../../../../src/ta_abstract/tables/table_z.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/gen_code/table_z.o ../../../../../src/ta_abstract/tables/table_z.c + diff --git a/make/cmd/linux/g++/ta_abstract/Makefile b/make/cmd/linux/g++/ta_abstract/Makefile new file mode 100644 index 000000000..1b83b60f9 --- /dev/null +++ b/make/cmd/linux/g++/ta_abstract/Makefile @@ -0,0 +1,243 @@ +############################################################################# +# Makefile for building ../../../../../lib/libta_abstract_cmd.a +# Generated by tmake; +# Project: ta_abstract/ta_abstract +# Template: lib +############################################################################# + +####### Compiler, tools and options + +CC = gcc +CXX = g++ +CFLAGS = -pipe -fPIC -Wall -W -g -D_REENTRANT -DTA_DEBUG -D_DEBUG -DQT_THREAD_SUPPORT +CXXFLAGS= -pipe -fPIC -Wall -W -g -D_REENTRANT -DTA_DEBUG -D_DEBUG -DQT_THREAD_SUPPORT +INCPATH = -I../../../../../src/ta_common -I../../../../../src/ta_abstract -I../../../../../src/ta_abstract/tables -I../../../../../src/ta_abstract/frames -I../../../../../include +AR = ar cqs +RANLIB = +MOC = $(QTDIR)/bin/moc +UIC = $(QTDIR)/bin/uic + +TAR = tar -cf +GZIP = gzip -9f + +####### Support for 64-bit systems +ifeq ($(shell uname -m), x86_64) + CFLAGS += -march=x86-64 -m64 -D__64BIT__ + CXXFLAGS += -march=x86-64 -m64 -D__64BIT__ +endif + +####### Apply additional overruling user flags, if any +CFLAGS += $(CUSERFLAGS) +CXXFLAGS += $(CUSERFLAGS) + +####### Files + +HEADERS = +SOURCES = ../../../../../src/ta_abstract/ta_abstract.c \ + ../../../../../src/ta_abstract/ta_def_ui.c \ + ../../../../../src/ta_abstract/ta_func_api.c \ + ../../../../../src/ta_abstract/ta_group_idx.c \ + ../../../../../src/ta_abstract/frames/ta_frame.c \ + ../../../../../src/ta_abstract/tables/table_a.c \ + ../../../../../src/ta_abstract/tables/table_b.c \ + ../../../../../src/ta_abstract/tables/table_c.c \ + ../../../../../src/ta_abstract/tables/table_d.c \ + ../../../../../src/ta_abstract/tables/table_e.c \ + ../../../../../src/ta_abstract/tables/table_f.c \ + ../../../../../src/ta_abstract/tables/table_g.c \ + ../../../../../src/ta_abstract/tables/table_h.c \ + ../../../../../src/ta_abstract/tables/table_i.c \ + ../../../../../src/ta_abstract/tables/table_j.c \ + ../../../../../src/ta_abstract/tables/table_k.c \ + ../../../../../src/ta_abstract/tables/table_l.c \ + ../../../../../src/ta_abstract/tables/table_m.c \ + ../../../../../src/ta_abstract/tables/table_n.c \ + ../../../../../src/ta_abstract/tables/table_o.c \ + ../../../../../src/ta_abstract/tables/table_p.c \ + ../../../../../src/ta_abstract/tables/table_q.c \ + ../../../../../src/ta_abstract/tables/table_r.c \ + ../../../../../src/ta_abstract/tables/table_s.c \ + ../../../../../src/ta_abstract/tables/table_t.c \ + ../../../../../src/ta_abstract/tables/table_u.c \ + ../../../../../src/ta_abstract/tables/table_v.c \ + ../../../../../src/ta_abstract/tables/table_w.c \ + ../../../../../src/ta_abstract/tables/table_x.c \ + ../../../../../src/ta_abstract/tables/table_y.c \ + ../../../../../src/ta_abstract/tables/table_z.c +OBJECTS = ../../../../../temp/cmd/ta_abstract.o \ + ../../../../../temp/cmd/ta_def_ui.o \ + ../../../../../temp/cmd/ta_func_api.o \ + ../../../../../temp/cmd/ta_group_idx.o \ + ../../../../../temp/cmd/ta_frame.o \ + ../../../../../temp/cmd/table_a.o \ + ../../../../../temp/cmd/table_b.o \ + ../../../../../temp/cmd/table_c.o \ + ../../../../../temp/cmd/table_d.o \ + ../../../../../temp/cmd/table_e.o \ + ../../../../../temp/cmd/table_f.o \ + ../../../../../temp/cmd/table_g.o \ + ../../../../../temp/cmd/table_h.o \ + ../../../../../temp/cmd/table_i.o \ + ../../../../../temp/cmd/table_j.o \ + ../../../../../temp/cmd/table_k.o \ + ../../../../../temp/cmd/table_l.o \ + ../../../../../temp/cmd/table_m.o \ + ../../../../../temp/cmd/table_n.o \ + ../../../../../temp/cmd/table_o.o \ + ../../../../../temp/cmd/table_p.o \ + ../../../../../temp/cmd/table_q.o \ + ../../../../../temp/cmd/table_r.o \ + ../../../../../temp/cmd/table_s.o \ + ../../../../../temp/cmd/table_t.o \ + ../../../../../temp/cmd/table_u.o \ + ../../../../../temp/cmd/table_v.o \ + ../../../../../temp/cmd/table_w.o \ + ../../../../../temp/cmd/table_x.o \ + ../../../../../temp/cmd/table_y.o \ + ../../../../../temp/cmd/table_z.o +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ../../../../../lib/libta_abstract_cmd.a +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .C .c + +.cpp.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cxx.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cc.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.C.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.c.o: + $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $< + +####### Build rules + + +all: $(TARGET) + +staticlib: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + -rm -f $(TARGET) + $(AR) $(TARGET) $(OBJECTS) $(OBJMOC) + +moc: $(SRCMOC) + +clean: + -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) + -rm -f *~ core + +####### Sub-libraries + + +###### Combined headers + + +####### Compile + +../../../../../temp/cmd/ta_abstract.o: ../../../../../src/ta_abstract/ta_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_abstract.o ../../../../../src/ta_abstract/ta_abstract.c + +../../../../../temp/cmd/ta_def_ui.o: ../../../../../src/ta_abstract/ta_def_ui.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_def_ui.o ../../../../../src/ta_abstract/ta_def_ui.c + +../../../../../temp/cmd/ta_func_api.o: ../../../../../src/ta_abstract/ta_func_api.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_func_api.o ../../../../../src/ta_abstract/ta_func_api.c + +../../../../../temp/cmd/ta_group_idx.o: ../../../../../src/ta_abstract/ta_group_idx.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_group_idx.o ../../../../../src/ta_abstract/ta_group_idx.c + +../../../../../temp/cmd/ta_frame.o: ../../../../../src/ta_abstract/frames/ta_frame.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_frame.o ../../../../../src/ta_abstract/frames/ta_frame.c + +../../../../../temp/cmd/table_a.o: ../../../../../src/ta_abstract/tables/table_a.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_a.o ../../../../../src/ta_abstract/tables/table_a.c + +../../../../../temp/cmd/table_b.o: ../../../../../src/ta_abstract/tables/table_b.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_b.o ../../../../../src/ta_abstract/tables/table_b.c + +../../../../../temp/cmd/table_c.o: ../../../../../src/ta_abstract/tables/table_c.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_c.o ../../../../../src/ta_abstract/tables/table_c.c + +../../../../../temp/cmd/table_d.o: ../../../../../src/ta_abstract/tables/table_d.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_d.o ../../../../../src/ta_abstract/tables/table_d.c + +../../../../../temp/cmd/table_e.o: ../../../../../src/ta_abstract/tables/table_e.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_e.o ../../../../../src/ta_abstract/tables/table_e.c + +../../../../../temp/cmd/table_f.o: ../../../../../src/ta_abstract/tables/table_f.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_f.o ../../../../../src/ta_abstract/tables/table_f.c + +../../../../../temp/cmd/table_g.o: ../../../../../src/ta_abstract/tables/table_g.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_g.o ../../../../../src/ta_abstract/tables/table_g.c + +../../../../../temp/cmd/table_h.o: ../../../../../src/ta_abstract/tables/table_h.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_h.o ../../../../../src/ta_abstract/tables/table_h.c + +../../../../../temp/cmd/table_i.o: ../../../../../src/ta_abstract/tables/table_i.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_i.o ../../../../../src/ta_abstract/tables/table_i.c + +../../../../../temp/cmd/table_j.o: ../../../../../src/ta_abstract/tables/table_j.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_j.o ../../../../../src/ta_abstract/tables/table_j.c + +../../../../../temp/cmd/table_k.o: ../../../../../src/ta_abstract/tables/table_k.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_k.o ../../../../../src/ta_abstract/tables/table_k.c + +../../../../../temp/cmd/table_l.o: ../../../../../src/ta_abstract/tables/table_l.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_l.o ../../../../../src/ta_abstract/tables/table_l.c + +../../../../../temp/cmd/table_m.o: ../../../../../src/ta_abstract/tables/table_m.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_m.o ../../../../../src/ta_abstract/tables/table_m.c + +../../../../../temp/cmd/table_n.o: ../../../../../src/ta_abstract/tables/table_n.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_n.o ../../../../../src/ta_abstract/tables/table_n.c + +../../../../../temp/cmd/table_o.o: ../../../../../src/ta_abstract/tables/table_o.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_o.o ../../../../../src/ta_abstract/tables/table_o.c + +../../../../../temp/cmd/table_p.o: ../../../../../src/ta_abstract/tables/table_p.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_p.o ../../../../../src/ta_abstract/tables/table_p.c + +../../../../../temp/cmd/table_q.o: ../../../../../src/ta_abstract/tables/table_q.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_q.o ../../../../../src/ta_abstract/tables/table_q.c + +../../../../../temp/cmd/table_r.o: ../../../../../src/ta_abstract/tables/table_r.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_r.o ../../../../../src/ta_abstract/tables/table_r.c + +../../../../../temp/cmd/table_s.o: ../../../../../src/ta_abstract/tables/table_s.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_s.o ../../../../../src/ta_abstract/tables/table_s.c + +../../../../../temp/cmd/table_t.o: ../../../../../src/ta_abstract/tables/table_t.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_t.o ../../../../../src/ta_abstract/tables/table_t.c + +../../../../../temp/cmd/table_u.o: ../../../../../src/ta_abstract/tables/table_u.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_u.o ../../../../../src/ta_abstract/tables/table_u.c + +../../../../../temp/cmd/table_v.o: ../../../../../src/ta_abstract/tables/table_v.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_v.o ../../../../../src/ta_abstract/tables/table_v.c + +../../../../../temp/cmd/table_w.o: ../../../../../src/ta_abstract/tables/table_w.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_w.o ../../../../../src/ta_abstract/tables/table_w.c + +../../../../../temp/cmd/table_x.o: ../../../../../src/ta_abstract/tables/table_x.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_x.o ../../../../../src/ta_abstract/tables/table_x.c + +../../../../../temp/cmd/table_y.o: ../../../../../src/ta_abstract/tables/table_y.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_y.o ../../../../../src/ta_abstract/tables/table_y.c + +../../../../../temp/cmd/table_z.o: ../../../../../src/ta_abstract/tables/table_z.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_z.o ../../../../../src/ta_abstract/tables/table_z.c + diff --git a/make/cmd/linux/g++/ta_common/Makefile b/make/cmd/linux/g++/ta_common/Makefile new file mode 100644 index 000000000..2b06e94ce --- /dev/null +++ b/make/cmd/linux/g++/ta_common/Makefile @@ -0,0 +1,103 @@ +############################################################################# +# Makefile for building ../../../../../lib/libta_common_cmd.a +# Generated by tmake; +# Project: ta_common/ta_common +# Template: lib +############################################################################# + +####### Compiler, tools and options + +CC = gcc +CXX = g++ +CFLAGS = -pipe -fPIC -Wall -W -g -D_REENTRANT -DTA_DEBUG -D_DEBUG -DQT_THREAD_SUPPORT +CXXFLAGS= -pipe -fPIC -Wall -W -g -D_REENTRANT -DTA_DEBUG -D_DEBUG -DQT_THREAD_SUPPORT +INCPATH = -I../../../../../src/ta_common -I../../../../../include +AR = ar cqs +RANLIB = +MOC = $(QTDIR)/bin/moc +UIC = $(QTDIR)/bin/uic + +TAR = tar -cf +GZIP = gzip -9f + +####### Support for 64-bit systems +ifeq ($(shell uname -m), x86_64) + CFLAGS += -march=x86-64 -m64 -D__64BIT__ + CXXFLAGS += -march=x86-64 -m64 -D__64BIT__ +endif + +####### Apply additional overruling user flags, if any +CFLAGS += $(CUSERFLAGS) +CXXFLAGS += $(CUSERFLAGS) + +####### Files + +HEADERS = +SOURCES = ../../../../../src/ta_common/ta_global.c \ + ../../../../../src/ta_common/ta_retcode.c \ + ../../../../../src/ta_common/ta_version.c +OBJECTS = ../../../../../temp/cmd/ta_global.o \ + ../../../../../temp/cmd/ta_retcode.o \ + ../../../../../temp/cmd/ta_version.o +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ../../../../../lib/libta_common_cmd.a +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .C .c + +.cpp.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cxx.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cc.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.C.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.c.o: + $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $< + +####### Build rules + + +all: $(TARGET) + +staticlib: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + -rm -f $(TARGET) + $(AR) $(TARGET) $(OBJECTS) $(OBJMOC) + +moc: $(SRCMOC) + +clean: + -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) + -rm -f *~ core + +####### Sub-libraries + + +###### Combined headers + + +####### Compile + +../../../../../temp/cmd/ta_global.o: ../../../../../src/ta_common/ta_global.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_global.o ../../../../../src/ta_common/ta_global.c + +../../../../../temp/cmd/ta_retcode.o: ../../../../../src/ta_common/ta_retcode.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_retcode.o ../../../../../src/ta_common/ta_retcode.c + +../../../../../temp/cmd/ta_version.o: ../../../../../src/ta_common/ta_version.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_version.o ../../../../../src/ta_common/ta_version.c + diff --git a/make/cmd/linux/g++/ta_func/Makefile b/make/cmd/linux/g++/ta_func/Makefile new file mode 100644 index 000000000..229342539 --- /dev/null +++ b/make/cmd/linux/g++/ta_func/Makefile @@ -0,0 +1,883 @@ +############################################################################# +# Makefile for building ../../../../../lib/libta_func_cmd.a +# Generated by tmake; +# Project: ta_func/ta_func +# Template: lib +############################################################################# + +####### Compiler, tools and options + +CC = gcc +CXX = g++ +CFLAGS = -pipe -fPIC -Wall -W -g -D_REENTRANT -DTA_DEBUG -D_DEBUG -DQT_THREAD_SUPPORT +CXXFLAGS= -pipe -fPIC -Wall -W -g -D_REENTRANT -DTA_DEBUG -D_DEBUG -DQT_THREAD_SUPPORT +INCPATH = -I../../../../../src/ta_common -I/n -I../../../../../include +AR = ar cqs +RANLIB = +MOC = $(QTDIR)/bin/moc +UIC = $(QTDIR)/bin/uic + +TAR = tar -cf +GZIP = gzip -9f + +####### Support for 64-bit systems +ifeq ($(shell uname -m), x86_64) + CFLAGS += -march=x86-64 -m64 -D__64BIT__ + CXXFLAGS += -march=x86-64 -m64 -D__64BIT__ +endif + +####### Apply additional overruling user flags, if any +CFLAGS += $(CUSERFLAGS) +CXXFLAGS += $(CUSERFLAGS) + +####### Files + +HEADERS = +SOURCES = ../../../../../src/ta_func/ta_utility.c \ + ../../../../../src/ta_func/ta_ACOS.c \ + ../../../../../src/ta_func/ta_AD.c \ + ../../../../../src/ta_func/ta_ADD.c \ + ../../../../../src/ta_func/ta_ADOSC.c \ + ../../../../../src/ta_func/ta_ADX.c \ + ../../../../../src/ta_func/ta_ADXR.c \ + ../../../../../src/ta_func/ta_APO.c \ + ../../../../../src/ta_func/ta_AROON.c \ + ../../../../../src/ta_func/ta_AROONOSC.c \ + ../../../../../src/ta_func/ta_ASIN.c \ + ../../../../../src/ta_func/ta_ATAN.c \ + ../../../../../src/ta_func/ta_ATR.c \ + ../../../../../src/ta_func/ta_AVGPRICE.c \ + ../../../../../src/ta_func/ta_BBANDS.c \ + ../../../../../src/ta_func/ta_BETA.c \ + ../../../../../src/ta_func/ta_BOP.c \ + ../../../../../src/ta_func/ta_CCI.c \ + ../../../../../src/ta_func/ta_CDL2CROWS.c \ + ../../../../../src/ta_func/ta_CDL3BLACKCROWS.c \ + ../../../../../src/ta_func/ta_CDL3INSIDE.c \ + ../../../../../src/ta_func/ta_CDL3LINESTRIKE.c \ + ../../../../../src/ta_func/ta_CDL3OUTSIDE.c \ + ../../../../../src/ta_func/ta_CDL3STARSINSOUTH.c \ + ../../../../../src/ta_func/ta_CDL3WHITESOLDIERS.c \ + ../../../../../src/ta_func/ta_CDLABANDONEDBABY.c \ + ../../../../../src/ta_func/ta_CDLADVANCEBLOCK.c \ + ../../../../../src/ta_func/ta_CDLBELTHOLD.c \ + ../../../../../src/ta_func/ta_CDLBREAKAWAY.c \ + ../../../../../src/ta_func/ta_CDLCLOSINGMARUBOZU.c \ + ../../../../../src/ta_func/ta_CDLCONCEALBABYSWALL.c \ + ../../../../../src/ta_func/ta_CDLCOUNTERATTACK.c \ + ../../../../../src/ta_func/ta_CDLDARKCLOUDCOVER.c \ + ../../../../../src/ta_func/ta_CDLDOJI.c \ + ../../../../../src/ta_func/ta_CDLDOJISTAR.c \ + ../../../../../src/ta_func/ta_CDLDRAGONFLYDOJI.c \ + ../../../../../src/ta_func/ta_CDLENGULFING.c \ + ../../../../../src/ta_func/ta_CDLEVENINGDOJISTAR.c \ + ../../../../../src/ta_func/ta_CDLEVENINGSTAR.c \ + ../../../../../src/ta_func/ta_CDLGAPSIDESIDEWHITE.c \ + ../../../../../src/ta_func/ta_CDLGRAVESTONEDOJI.c \ + ../../../../../src/ta_func/ta_CDLHAMMER.c \ + ../../../../../src/ta_func/ta_CDLHANGINGMAN.c \ + ../../../../../src/ta_func/ta_CDLHARAMI.c \ + ../../../../../src/ta_func/ta_CDLHARAMICROSS.c \ + ../../../../../src/ta_func/ta_CDLHIGHWAVE.c \ + ../../../../../src/ta_func/ta_CDLHIKKAKE.c \ + ../../../../../src/ta_func/ta_CDLHIKKAKEMOD.c \ + ../../../../../src/ta_func/ta_CDLHOMINGPIGEON.c \ + ../../../../../src/ta_func/ta_CDLIDENTICAL3CROWS.c \ + ../../../../../src/ta_func/ta_CDLINNECK.c \ + ../../../../../src/ta_func/ta_CDLINVERTEDHAMMER.c \ + ../../../../../src/ta_func/ta_CDLKICKING.c \ + ../../../../../src/ta_func/ta_CDLKICKINGBYLENGTH.c \ + ../../../../../src/ta_func/ta_CDLLADDERBOTTOM.c \ + ../../../../../src/ta_func/ta_CDLLONGLEGGEDDOJI.c \ + ../../../../../src/ta_func/ta_CDLLONGLINE.c \ + ../../../../../src/ta_func/ta_CDLMARUBOZU.c \ + ../../../../../src/ta_func/ta_CDLMATCHINGLOW.c \ + ../../../../../src/ta_func/ta_CDLMATHOLD.c \ + ../../../../../src/ta_func/ta_CDLMORNINGDOJISTAR.c \ + ../../../../../src/ta_func/ta_CDLMORNINGSTAR.c \ + ../../../../../src/ta_func/ta_CDLONNECK.c \ + ../../../../../src/ta_func/ta_CDLPIERCING.c \ + ../../../../../src/ta_func/ta_CDLRICKSHAWMAN.c \ + ../../../../../src/ta_func/ta_CDLRISEFALL3METHODS.c \ + ../../../../../src/ta_func/ta_CDLSEPARATINGLINES.c \ + ../../../../../src/ta_func/ta_CDLSHOOTINGSTAR.c \ + ../../../../../src/ta_func/ta_CDLSHORTLINE.c \ + ../../../../../src/ta_func/ta_CDLSPINNINGTOP.c \ + ../../../../../src/ta_func/ta_CDLSTALLEDPATTERN.c \ + ../../../../../src/ta_func/ta_CDLSTICKSANDWICH.c \ + ../../../../../src/ta_func/ta_CDLTAKURI.c \ + ../../../../../src/ta_func/ta_CDLTASUKIGAP.c \ + ../../../../../src/ta_func/ta_CDLTHRUSTING.c \ + ../../../../../src/ta_func/ta_CDLTRISTAR.c \ + ../../../../../src/ta_func/ta_CDLUNIQUE3RIVER.c \ + ../../../../../src/ta_func/ta_CDLUPSIDEGAP2CROWS.c \ + ../../../../../src/ta_func/ta_CDLXSIDEGAP3METHODS.c \ + ../../../../../src/ta_func/ta_CEIL.c \ + ../../../../../src/ta_func/ta_CMO.c \ + ../../../../../src/ta_func/ta_CORREL.c \ + ../../../../../src/ta_func/ta_COS.c \ + ../../../../../src/ta_func/ta_COSH.c \ + ../../../../../src/ta_func/ta_DEMA.c \ + ../../../../../src/ta_func/ta_DIV.c \ + ../../../../../src/ta_func/ta_DX.c \ + ../../../../../src/ta_func/ta_EMA.c \ + ../../../../../src/ta_func/ta_EXP.c \ + ../../../../../src/ta_func/ta_FLOOR.c \ + ../../../../../src/ta_func/ta_HT_DCPERIOD.c \ + ../../../../../src/ta_func/ta_HT_DCPHASE.c \ + ../../../../../src/ta_func/ta_HT_PHASOR.c \ + ../../../../../src/ta_func/ta_HT_SINE.c \ + ../../../../../src/ta_func/ta_HT_TRENDLINE.c \ + ../../../../../src/ta_func/ta_HT_TRENDMODE.c \ + ../../../../../src/ta_func/ta_KAMA.c \ + ../../../../../src/ta_func/ta_LINEARREG.c \ + ../../../../../src/ta_func/ta_LINEARREG_ANGLE.c \ + ../../../../../src/ta_func/ta_LINEARREG_INTERCEPT.c \ + ../../../../../src/ta_func/ta_LINEARREG_SLOPE.c \ + ../../../../../src/ta_func/ta_LN.c \ + ../../../../../src/ta_func/ta_LOG10.c \ + ../../../../../src/ta_func/ta_MA.c \ + ../../../../../src/ta_func/ta_MACD.c \ + ../../../../../src/ta_func/ta_MACDEXT.c \ + ../../../../../src/ta_func/ta_MACDFIX.c \ + ../../../../../src/ta_func/ta_MAMA.c \ + ../../../../../src/ta_func/ta_MAVP.c \ + ../../../../../src/ta_func/ta_MAX.c \ + ../../../../../src/ta_func/ta_MAXINDEX.c \ + ../../../../../src/ta_func/ta_MEDPRICE.c \ + ../../../../../src/ta_func/ta_MFI.c \ + ../../../../../src/ta_func/ta_MIDPOINT.c \ + ../../../../../src/ta_func/ta_MIDPRICE.c \ + ../../../../../src/ta_func/ta_MIN.c \ + ../../../../../src/ta_func/ta_MININDEX.c \ + ../../../../../src/ta_func/ta_MINMAX.c \ + ../../../../../src/ta_func/ta_MINMAXINDEX.c \ + ../../../../../src/ta_func/ta_MINUS_DI.c \ + ../../../../../src/ta_func/ta_MINUS_DM.c \ + ../../../../../src/ta_func/ta_MOM.c \ + ../../../../../src/ta_func/ta_MULT.c \ + ../../../../../src/ta_func/ta_NATR.c \ + ../../../../../src/ta_func/ta_OBV.c \ + ../../../../../src/ta_func/ta_PLUS_DI.c \ + ../../../../../src/ta_func/ta_PLUS_DM.c \ + ../../../../../src/ta_func/ta_PPO.c \ + ../../../../../src/ta_func/ta_ROC.c \ + ../../../../../src/ta_func/ta_ROCP.c \ + ../../../../../src/ta_func/ta_ROCR.c \ + ../../../../../src/ta_func/ta_ROCR100.c \ + ../../../../../src/ta_func/ta_RSI.c \ + ../../../../../src/ta_func/ta_SAR.c \ + ../../../../../src/ta_func/ta_SAREXT.c \ + ../../../../../src/ta_func/ta_SIN.c \ + ../../../../../src/ta_func/ta_SINH.c \ + ../../../../../src/ta_func/ta_SMA.c \ + ../../../../../src/ta_func/ta_SQRT.c \ + ../../../../../src/ta_func/ta_STDDEV.c \ + ../../../../../src/ta_func/ta_STOCH.c \ + ../../../../../src/ta_func/ta_STOCHF.c \ + ../../../../../src/ta_func/ta_STOCHRSI.c \ + ../../../../../src/ta_func/ta_SUB.c \ + ../../../../../src/ta_func/ta_SUM.c \ + ../../../../../src/ta_func/ta_T3.c \ + ../../../../../src/ta_func/ta_TAN.c \ + ../../../../../src/ta_func/ta_TANH.c \ + ../../../../../src/ta_func/ta_TEMA.c \ + ../../../../../src/ta_func/ta_TRANGE.c \ + ../../../../../src/ta_func/ta_TRIMA.c \ + ../../../../../src/ta_func/ta_TRIX.c \ + ../../../../../src/ta_func/ta_TSF.c \ + ../../../../../src/ta_func/ta_TYPPRICE.c \ + ../../../../../src/ta_func/ta_ULTOSC.c \ + ../../../../../src/ta_func/ta_VAR.c \ + ../../../../../src/ta_func/ta_WCLPRICE.c \ + ../../../../../src/ta_func/ta_WILLR.c \ + ../../../../../src/ta_func/ta_WMA.c +OBJECTS = ../../../../../temp/cmd/ta_utility.o \ + ../../../../../temp/cmd/ta_ACOS.o \ + ../../../../../temp/cmd/ta_AD.o \ + ../../../../../temp/cmd/ta_ADD.o \ + ../../../../../temp/cmd/ta_ADOSC.o \ + ../../../../../temp/cmd/ta_ADX.o \ + ../../../../../temp/cmd/ta_ADXR.o \ + ../../../../../temp/cmd/ta_APO.o \ + ../../../../../temp/cmd/ta_AROON.o \ + ../../../../../temp/cmd/ta_AROONOSC.o \ + ../../../../../temp/cmd/ta_ASIN.o \ + ../../../../../temp/cmd/ta_ATAN.o \ + ../../../../../temp/cmd/ta_ATR.o \ + ../../../../../temp/cmd/ta_AVGPRICE.o \ + ../../../../../temp/cmd/ta_BBANDS.o \ + ../../../../../temp/cmd/ta_BETA.o \ + ../../../../../temp/cmd/ta_BOP.o \ + ../../../../../temp/cmd/ta_CCI.o \ + ../../../../../temp/cmd/ta_CDL2CROWS.o \ + ../../../../../temp/cmd/ta_CDL3BLACKCROWS.o \ + ../../../../../temp/cmd/ta_CDL3INSIDE.o \ + ../../../../../temp/cmd/ta_CDL3LINESTRIKE.o \ + ../../../../../temp/cmd/ta_CDL3OUTSIDE.o \ + ../../../../../temp/cmd/ta_CDL3STARSINSOUTH.o \ + ../../../../../temp/cmd/ta_CDL3WHITESOLDIERS.o \ + ../../../../../temp/cmd/ta_CDLABANDONEDBABY.o \ + ../../../../../temp/cmd/ta_CDLADVANCEBLOCK.o \ + ../../../../../temp/cmd/ta_CDLBELTHOLD.o \ + ../../../../../temp/cmd/ta_CDLBREAKAWAY.o \ + ../../../../../temp/cmd/ta_CDLCLOSINGMARUBOZU.o \ + ../../../../../temp/cmd/ta_CDLCONCEALBABYSWALL.o \ + ../../../../../temp/cmd/ta_CDLCOUNTERATTACK.o \ + ../../../../../temp/cmd/ta_CDLDARKCLOUDCOVER.o \ + ../../../../../temp/cmd/ta_CDLDOJI.o \ + ../../../../../temp/cmd/ta_CDLDOJISTAR.o \ + ../../../../../temp/cmd/ta_CDLDRAGONFLYDOJI.o \ + ../../../../../temp/cmd/ta_CDLENGULFING.o \ + ../../../../../temp/cmd/ta_CDLEVENINGDOJISTAR.o \ + ../../../../../temp/cmd/ta_CDLEVENINGSTAR.o \ + ../../../../../temp/cmd/ta_CDLGAPSIDESIDEWHITE.o \ + ../../../../../temp/cmd/ta_CDLGRAVESTONEDOJI.o \ + ../../../../../temp/cmd/ta_CDLHAMMER.o \ + ../../../../../temp/cmd/ta_CDLHANGINGMAN.o \ + ../../../../../temp/cmd/ta_CDLHARAMI.o \ + ../../../../../temp/cmd/ta_CDLHARAMICROSS.o \ + ../../../../../temp/cmd/ta_CDLHIGHWAVE.o \ + ../../../../../temp/cmd/ta_CDLHIKKAKE.o \ + ../../../../../temp/cmd/ta_CDLHIKKAKEMOD.o \ + ../../../../../temp/cmd/ta_CDLHOMINGPIGEON.o \ + ../../../../../temp/cmd/ta_CDLIDENTICAL3CROWS.o \ + ../../../../../temp/cmd/ta_CDLINNECK.o \ + ../../../../../temp/cmd/ta_CDLINVERTEDHAMMER.o \ + ../../../../../temp/cmd/ta_CDLKICKING.o \ + ../../../../../temp/cmd/ta_CDLKICKINGBYLENGTH.o \ + ../../../../../temp/cmd/ta_CDLLADDERBOTTOM.o \ + ../../../../../temp/cmd/ta_CDLLONGLEGGEDDOJI.o \ + ../../../../../temp/cmd/ta_CDLLONGLINE.o \ + ../../../../../temp/cmd/ta_CDLMARUBOZU.o \ + ../../../../../temp/cmd/ta_CDLMATCHINGLOW.o \ + ../../../../../temp/cmd/ta_CDLMATHOLD.o \ + ../../../../../temp/cmd/ta_CDLMORNINGDOJISTAR.o \ + ../../../../../temp/cmd/ta_CDLMORNINGSTAR.o \ + ../../../../../temp/cmd/ta_CDLONNECK.o \ + ../../../../../temp/cmd/ta_CDLPIERCING.o \ + ../../../../../temp/cmd/ta_CDLRICKSHAWMAN.o \ + ../../../../../temp/cmd/ta_CDLRISEFALL3METHODS.o \ + ../../../../../temp/cmd/ta_CDLSEPARATINGLINES.o \ + ../../../../../temp/cmd/ta_CDLSHOOTINGSTAR.o \ + ../../../../../temp/cmd/ta_CDLSHORTLINE.o \ + ../../../../../temp/cmd/ta_CDLSPINNINGTOP.o \ + ../../../../../temp/cmd/ta_CDLSTALLEDPATTERN.o \ + ../../../../../temp/cmd/ta_CDLSTICKSANDWICH.o \ + ../../../../../temp/cmd/ta_CDLTAKURI.o \ + ../../../../../temp/cmd/ta_CDLTASUKIGAP.o \ + ../../../../../temp/cmd/ta_CDLTHRUSTING.o \ + ../../../../../temp/cmd/ta_CDLTRISTAR.o \ + ../../../../../temp/cmd/ta_CDLUNIQUE3RIVER.o \ + ../../../../../temp/cmd/ta_CDLUPSIDEGAP2CROWS.o \ + ../../../../../temp/cmd/ta_CDLXSIDEGAP3METHODS.o \ + ../../../../../temp/cmd/ta_CEIL.o \ + ../../../../../temp/cmd/ta_CMO.o \ + ../../../../../temp/cmd/ta_CORREL.o \ + ../../../../../temp/cmd/ta_COS.o \ + ../../../../../temp/cmd/ta_COSH.o \ + ../../../../../temp/cmd/ta_DEMA.o \ + ../../../../../temp/cmd/ta_DIV.o \ + ../../../../../temp/cmd/ta_DX.o \ + ../../../../../temp/cmd/ta_EMA.o \ + ../../../../../temp/cmd/ta_EXP.o \ + ../../../../../temp/cmd/ta_FLOOR.o \ + ../../../../../temp/cmd/ta_HT_DCPERIOD.o \ + ../../../../../temp/cmd/ta_HT_DCPHASE.o \ + ../../../../../temp/cmd/ta_HT_PHASOR.o \ + ../../../../../temp/cmd/ta_HT_SINE.o \ + ../../../../../temp/cmd/ta_HT_TRENDLINE.o \ + ../../../../../temp/cmd/ta_HT_TRENDMODE.o \ + ../../../../../temp/cmd/ta_KAMA.o \ + ../../../../../temp/cmd/ta_LINEARREG.o \ + ../../../../../temp/cmd/ta_LINEARREG_ANGLE.o \ + ../../../../../temp/cmd/ta_LINEARREG_INTERCEPT.o \ + ../../../../../temp/cmd/ta_LINEARREG_SLOPE.o \ + ../../../../../temp/cmd/ta_LN.o \ + ../../../../../temp/cmd/ta_LOG10.o \ + ../../../../../temp/cmd/ta_MA.o \ + ../../../../../temp/cmd/ta_MACD.o \ + ../../../../../temp/cmd/ta_MACDEXT.o \ + ../../../../../temp/cmd/ta_MACDFIX.o \ + ../../../../../temp/cmd/ta_MAMA.o \ + ../../../../../temp/cmd/ta_MAVP.o \ + ../../../../../temp/cmd/ta_MAX.o \ + ../../../../../temp/cmd/ta_MAXINDEX.o \ + ../../../../../temp/cmd/ta_MEDPRICE.o \ + ../../../../../temp/cmd/ta_MFI.o \ + ../../../../../temp/cmd/ta_MIDPOINT.o \ + ../../../../../temp/cmd/ta_MIDPRICE.o \ + ../../../../../temp/cmd/ta_MIN.o \ + ../../../../../temp/cmd/ta_MININDEX.o \ + ../../../../../temp/cmd/ta_MINMAX.o \ + ../../../../../temp/cmd/ta_MINMAXINDEX.o \ + ../../../../../temp/cmd/ta_MINUS_DI.o \ + ../../../../../temp/cmd/ta_MINUS_DM.o \ + ../../../../../temp/cmd/ta_MOM.o \ + ../../../../../temp/cmd/ta_MULT.o \ + ../../../../../temp/cmd/ta_NATR.o \ + ../../../../../temp/cmd/ta_OBV.o \ + ../../../../../temp/cmd/ta_PLUS_DI.o \ + ../../../../../temp/cmd/ta_PLUS_DM.o \ + ../../../../../temp/cmd/ta_PPO.o \ + ../../../../../temp/cmd/ta_ROC.o \ + ../../../../../temp/cmd/ta_ROCP.o \ + ../../../../../temp/cmd/ta_ROCR.o \ + ../../../../../temp/cmd/ta_ROCR100.o \ + ../../../../../temp/cmd/ta_RSI.o \ + ../../../../../temp/cmd/ta_SAR.o \ + ../../../../../temp/cmd/ta_SAREXT.o \ + ../../../../../temp/cmd/ta_SIN.o \ + ../../../../../temp/cmd/ta_SINH.o \ + ../../../../../temp/cmd/ta_SMA.o \ + ../../../../../temp/cmd/ta_SQRT.o \ + ../../../../../temp/cmd/ta_STDDEV.o \ + ../../../../../temp/cmd/ta_STOCH.o \ + ../../../../../temp/cmd/ta_STOCHF.o \ + ../../../../../temp/cmd/ta_STOCHRSI.o \ + ../../../../../temp/cmd/ta_SUB.o \ + ../../../../../temp/cmd/ta_SUM.o \ + ../../../../../temp/cmd/ta_T3.o \ + ../../../../../temp/cmd/ta_TAN.o \ + ../../../../../temp/cmd/ta_TANH.o \ + ../../../../../temp/cmd/ta_TEMA.o \ + ../../../../../temp/cmd/ta_TRANGE.o \ + ../../../../../temp/cmd/ta_TRIMA.o \ + ../../../../../temp/cmd/ta_TRIX.o \ + ../../../../../temp/cmd/ta_TSF.o \ + ../../../../../temp/cmd/ta_TYPPRICE.o \ + ../../../../../temp/cmd/ta_ULTOSC.o \ + ../../../../../temp/cmd/ta_VAR.o \ + ../../../../../temp/cmd/ta_WCLPRICE.o \ + ../../../../../temp/cmd/ta_WILLR.o \ + ../../../../../temp/cmd/ta_WMA.o +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ../../../../../lib/libta_func_cmd.a +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .C .c + +.cpp.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cxx.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cc.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.C.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.c.o: + $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $< + +####### Build rules + + +all: $(TARGET) + +staticlib: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + -rm -f $(TARGET) + $(AR) $(TARGET) $(OBJECTS) $(OBJMOC) + +moc: $(SRCMOC) + +clean: + -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) + -rm -f *~ core + +####### Sub-libraries + + +###### Combined headers + + +####### Compile + +../../../../../temp/cmd/ta_utility.o: ../../../../../src/ta_func/ta_utility.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_utility.o ../../../../../src/ta_func/ta_utility.c + +../../../../../temp/cmd/ta_ACOS.o: ../../../../../src/ta_func/ta_ACOS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_ACOS.o ../../../../../src/ta_func/ta_ACOS.c + +../../../../../temp/cmd/ta_AD.o: ../../../../../src/ta_func/ta_AD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_AD.o ../../../../../src/ta_func/ta_AD.c + +../../../../../temp/cmd/ta_ADD.o: ../../../../../src/ta_func/ta_ADD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_ADD.o ../../../../../src/ta_func/ta_ADD.c + +../../../../../temp/cmd/ta_ADOSC.o: ../../../../../src/ta_func/ta_ADOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_ADOSC.o ../../../../../src/ta_func/ta_ADOSC.c + +../../../../../temp/cmd/ta_ADX.o: ../../../../../src/ta_func/ta_ADX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_ADX.o ../../../../../src/ta_func/ta_ADX.c + +../../../../../temp/cmd/ta_ADXR.o: ../../../../../src/ta_func/ta_ADXR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_ADXR.o ../../../../../src/ta_func/ta_ADXR.c + +../../../../../temp/cmd/ta_APO.o: ../../../../../src/ta_func/ta_APO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_APO.o ../../../../../src/ta_func/ta_APO.c + +../../../../../temp/cmd/ta_AROON.o: ../../../../../src/ta_func/ta_AROON.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_AROON.o ../../../../../src/ta_func/ta_AROON.c + +../../../../../temp/cmd/ta_AROONOSC.o: ../../../../../src/ta_func/ta_AROONOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_AROONOSC.o ../../../../../src/ta_func/ta_AROONOSC.c + +../../../../../temp/cmd/ta_ASIN.o: ../../../../../src/ta_func/ta_ASIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_ASIN.o ../../../../../src/ta_func/ta_ASIN.c + +../../../../../temp/cmd/ta_ATAN.o: ../../../../../src/ta_func/ta_ATAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_ATAN.o ../../../../../src/ta_func/ta_ATAN.c + +../../../../../temp/cmd/ta_ATR.o: ../../../../../src/ta_func/ta_ATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_ATR.o ../../../../../src/ta_func/ta_ATR.c + +../../../../../temp/cmd/ta_AVGPRICE.o: ../../../../../src/ta_func/ta_AVGPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_AVGPRICE.o ../../../../../src/ta_func/ta_AVGPRICE.c + +../../../../../temp/cmd/ta_BBANDS.o: ../../../../../src/ta_func/ta_BBANDS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_BBANDS.o ../../../../../src/ta_func/ta_BBANDS.c + +../../../../../temp/cmd/ta_BETA.o: ../../../../../src/ta_func/ta_BETA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_BETA.o ../../../../../src/ta_func/ta_BETA.c + +../../../../../temp/cmd/ta_BOP.o: ../../../../../src/ta_func/ta_BOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_BOP.o ../../../../../src/ta_func/ta_BOP.c + +../../../../../temp/cmd/ta_CCI.o: ../../../../../src/ta_func/ta_CCI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CCI.o ../../../../../src/ta_func/ta_CCI.c + +../../../../../temp/cmd/ta_CDL2CROWS.o: ../../../../../src/ta_func/ta_CDL2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDL2CROWS.o ../../../../../src/ta_func/ta_CDL2CROWS.c + +../../../../../temp/cmd/ta_CDL3BLACKCROWS.o: ../../../../../src/ta_func/ta_CDL3BLACKCROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDL3BLACKCROWS.o ../../../../../src/ta_func/ta_CDL3BLACKCROWS.c + +../../../../../temp/cmd/ta_CDL3INSIDE.o: ../../../../../src/ta_func/ta_CDL3INSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDL3INSIDE.o ../../../../../src/ta_func/ta_CDL3INSIDE.c + +../../../../../temp/cmd/ta_CDL3LINESTRIKE.o: ../../../../../src/ta_func/ta_CDL3LINESTRIKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDL3LINESTRIKE.o ../../../../../src/ta_func/ta_CDL3LINESTRIKE.c + +../../../../../temp/cmd/ta_CDL3OUTSIDE.o: ../../../../../src/ta_func/ta_CDL3OUTSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDL3OUTSIDE.o ../../../../../src/ta_func/ta_CDL3OUTSIDE.c + +../../../../../temp/cmd/ta_CDL3STARSINSOUTH.o: ../../../../../src/ta_func/ta_CDL3STARSINSOUTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDL3STARSINSOUTH.o ../../../../../src/ta_func/ta_CDL3STARSINSOUTH.c + +../../../../../temp/cmd/ta_CDL3WHITESOLDIERS.o: ../../../../../src/ta_func/ta_CDL3WHITESOLDIERS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDL3WHITESOLDIERS.o ../../../../../src/ta_func/ta_CDL3WHITESOLDIERS.c + +../../../../../temp/cmd/ta_CDLABANDONEDBABY.o: ../../../../../src/ta_func/ta_CDLABANDONEDBABY.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLABANDONEDBABY.o ../../../../../src/ta_func/ta_CDLABANDONEDBABY.c + +../../../../../temp/cmd/ta_CDLADVANCEBLOCK.o: ../../../../../src/ta_func/ta_CDLADVANCEBLOCK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLADVANCEBLOCK.o ../../../../../src/ta_func/ta_CDLADVANCEBLOCK.c + +../../../../../temp/cmd/ta_CDLBELTHOLD.o: ../../../../../src/ta_func/ta_CDLBELTHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLBELTHOLD.o ../../../../../src/ta_func/ta_CDLBELTHOLD.c + +../../../../../temp/cmd/ta_CDLBREAKAWAY.o: ../../../../../src/ta_func/ta_CDLBREAKAWAY.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLBREAKAWAY.o ../../../../../src/ta_func/ta_CDLBREAKAWAY.c + +../../../../../temp/cmd/ta_CDLCLOSINGMARUBOZU.o: ../../../../../src/ta_func/ta_CDLCLOSINGMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLCLOSINGMARUBOZU.o ../../../../../src/ta_func/ta_CDLCLOSINGMARUBOZU.c + +../../../../../temp/cmd/ta_CDLCONCEALBABYSWALL.o: ../../../../../src/ta_func/ta_CDLCONCEALBABYSWALL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLCONCEALBABYSWALL.o ../../../../../src/ta_func/ta_CDLCONCEALBABYSWALL.c + +../../../../../temp/cmd/ta_CDLCOUNTERATTACK.o: ../../../../../src/ta_func/ta_CDLCOUNTERATTACK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLCOUNTERATTACK.o ../../../../../src/ta_func/ta_CDLCOUNTERATTACK.c + +../../../../../temp/cmd/ta_CDLDARKCLOUDCOVER.o: ../../../../../src/ta_func/ta_CDLDARKCLOUDCOVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLDARKCLOUDCOVER.o ../../../../../src/ta_func/ta_CDLDARKCLOUDCOVER.c + +../../../../../temp/cmd/ta_CDLDOJI.o: ../../../../../src/ta_func/ta_CDLDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLDOJI.o ../../../../../src/ta_func/ta_CDLDOJI.c + +../../../../../temp/cmd/ta_CDLDOJISTAR.o: ../../../../../src/ta_func/ta_CDLDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLDOJISTAR.o ../../../../../src/ta_func/ta_CDLDOJISTAR.c + +../../../../../temp/cmd/ta_CDLDRAGONFLYDOJI.o: ../../../../../src/ta_func/ta_CDLDRAGONFLYDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLDRAGONFLYDOJI.o ../../../../../src/ta_func/ta_CDLDRAGONFLYDOJI.c + +../../../../../temp/cmd/ta_CDLENGULFING.o: ../../../../../src/ta_func/ta_CDLENGULFING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLENGULFING.o ../../../../../src/ta_func/ta_CDLENGULFING.c + +../../../../../temp/cmd/ta_CDLEVENINGDOJISTAR.o: ../../../../../src/ta_func/ta_CDLEVENINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLEVENINGDOJISTAR.o ../../../../../src/ta_func/ta_CDLEVENINGDOJISTAR.c + +../../../../../temp/cmd/ta_CDLEVENINGSTAR.o: ../../../../../src/ta_func/ta_CDLEVENINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLEVENINGSTAR.o ../../../../../src/ta_func/ta_CDLEVENINGSTAR.c + +../../../../../temp/cmd/ta_CDLGAPSIDESIDEWHITE.o: ../../../../../src/ta_func/ta_CDLGAPSIDESIDEWHITE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLGAPSIDESIDEWHITE.o ../../../../../src/ta_func/ta_CDLGAPSIDESIDEWHITE.c + +../../../../../temp/cmd/ta_CDLGRAVESTONEDOJI.o: ../../../../../src/ta_func/ta_CDLGRAVESTONEDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLGRAVESTONEDOJI.o ../../../../../src/ta_func/ta_CDLGRAVESTONEDOJI.c + +../../../../../temp/cmd/ta_CDLHAMMER.o: ../../../../../src/ta_func/ta_CDLHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLHAMMER.o ../../../../../src/ta_func/ta_CDLHAMMER.c + +../../../../../temp/cmd/ta_CDLHANGINGMAN.o: ../../../../../src/ta_func/ta_CDLHANGINGMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLHANGINGMAN.o ../../../../../src/ta_func/ta_CDLHANGINGMAN.c + +../../../../../temp/cmd/ta_CDLHARAMI.o: ../../../../../src/ta_func/ta_CDLHARAMI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLHARAMI.o ../../../../../src/ta_func/ta_CDLHARAMI.c + +../../../../../temp/cmd/ta_CDLHARAMICROSS.o: ../../../../../src/ta_func/ta_CDLHARAMICROSS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLHARAMICROSS.o ../../../../../src/ta_func/ta_CDLHARAMICROSS.c + +../../../../../temp/cmd/ta_CDLHIGHWAVE.o: ../../../../../src/ta_func/ta_CDLHIGHWAVE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLHIGHWAVE.o ../../../../../src/ta_func/ta_CDLHIGHWAVE.c + +../../../../../temp/cmd/ta_CDLHIKKAKE.o: ../../../../../src/ta_func/ta_CDLHIKKAKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLHIKKAKE.o ../../../../../src/ta_func/ta_CDLHIKKAKE.c + +../../../../../temp/cmd/ta_CDLHIKKAKEMOD.o: ../../../../../src/ta_func/ta_CDLHIKKAKEMOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLHIKKAKEMOD.o ../../../../../src/ta_func/ta_CDLHIKKAKEMOD.c + +../../../../../temp/cmd/ta_CDLHOMINGPIGEON.o: ../../../../../src/ta_func/ta_CDLHOMINGPIGEON.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLHOMINGPIGEON.o ../../../../../src/ta_func/ta_CDLHOMINGPIGEON.c + +../../../../../temp/cmd/ta_CDLIDENTICAL3CROWS.o: ../../../../../src/ta_func/ta_CDLIDENTICAL3CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLIDENTICAL3CROWS.o ../../../../../src/ta_func/ta_CDLIDENTICAL3CROWS.c + +../../../../../temp/cmd/ta_CDLINNECK.o: ../../../../../src/ta_func/ta_CDLINNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLINNECK.o ../../../../../src/ta_func/ta_CDLINNECK.c + +../../../../../temp/cmd/ta_CDLINVERTEDHAMMER.o: ../../../../../src/ta_func/ta_CDLINVERTEDHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLINVERTEDHAMMER.o ../../../../../src/ta_func/ta_CDLINVERTEDHAMMER.c + +../../../../../temp/cmd/ta_CDLKICKING.o: ../../../../../src/ta_func/ta_CDLKICKING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLKICKING.o ../../../../../src/ta_func/ta_CDLKICKING.c + +../../../../../temp/cmd/ta_CDLKICKINGBYLENGTH.o: ../../../../../src/ta_func/ta_CDLKICKINGBYLENGTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLKICKINGBYLENGTH.o ../../../../../src/ta_func/ta_CDLKICKINGBYLENGTH.c + +../../../../../temp/cmd/ta_CDLLADDERBOTTOM.o: ../../../../../src/ta_func/ta_CDLLADDERBOTTOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLLADDERBOTTOM.o ../../../../../src/ta_func/ta_CDLLADDERBOTTOM.c + +../../../../../temp/cmd/ta_CDLLONGLEGGEDDOJI.o: ../../../../../src/ta_func/ta_CDLLONGLEGGEDDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLLONGLEGGEDDOJI.o ../../../../../src/ta_func/ta_CDLLONGLEGGEDDOJI.c + +../../../../../temp/cmd/ta_CDLLONGLINE.o: ../../../../../src/ta_func/ta_CDLLONGLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLLONGLINE.o ../../../../../src/ta_func/ta_CDLLONGLINE.c + +../../../../../temp/cmd/ta_CDLMARUBOZU.o: ../../../../../src/ta_func/ta_CDLMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLMARUBOZU.o ../../../../../src/ta_func/ta_CDLMARUBOZU.c + +../../../../../temp/cmd/ta_CDLMATCHINGLOW.o: ../../../../../src/ta_func/ta_CDLMATCHINGLOW.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLMATCHINGLOW.o ../../../../../src/ta_func/ta_CDLMATCHINGLOW.c + +../../../../../temp/cmd/ta_CDLMATHOLD.o: ../../../../../src/ta_func/ta_CDLMATHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLMATHOLD.o ../../../../../src/ta_func/ta_CDLMATHOLD.c + +../../../../../temp/cmd/ta_CDLMORNINGDOJISTAR.o: ../../../../../src/ta_func/ta_CDLMORNINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLMORNINGDOJISTAR.o ../../../../../src/ta_func/ta_CDLMORNINGDOJISTAR.c + +../../../../../temp/cmd/ta_CDLMORNINGSTAR.o: ../../../../../src/ta_func/ta_CDLMORNINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLMORNINGSTAR.o ../../../../../src/ta_func/ta_CDLMORNINGSTAR.c + +../../../../../temp/cmd/ta_CDLONNECK.o: ../../../../../src/ta_func/ta_CDLONNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLONNECK.o ../../../../../src/ta_func/ta_CDLONNECK.c + +../../../../../temp/cmd/ta_CDLPIERCING.o: ../../../../../src/ta_func/ta_CDLPIERCING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLPIERCING.o ../../../../../src/ta_func/ta_CDLPIERCING.c + +../../../../../temp/cmd/ta_CDLRICKSHAWMAN.o: ../../../../../src/ta_func/ta_CDLRICKSHAWMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLRICKSHAWMAN.o ../../../../../src/ta_func/ta_CDLRICKSHAWMAN.c + +../../../../../temp/cmd/ta_CDLRISEFALL3METHODS.o: ../../../../../src/ta_func/ta_CDLRISEFALL3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLRISEFALL3METHODS.o ../../../../../src/ta_func/ta_CDLRISEFALL3METHODS.c + +../../../../../temp/cmd/ta_CDLSEPARATINGLINES.o: ../../../../../src/ta_func/ta_CDLSEPARATINGLINES.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLSEPARATINGLINES.o ../../../../../src/ta_func/ta_CDLSEPARATINGLINES.c + +../../../../../temp/cmd/ta_CDLSHOOTINGSTAR.o: ../../../../../src/ta_func/ta_CDLSHOOTINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLSHOOTINGSTAR.o ../../../../../src/ta_func/ta_CDLSHOOTINGSTAR.c + +../../../../../temp/cmd/ta_CDLSHORTLINE.o: ../../../../../src/ta_func/ta_CDLSHORTLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLSHORTLINE.o ../../../../../src/ta_func/ta_CDLSHORTLINE.c + +../../../../../temp/cmd/ta_CDLSPINNINGTOP.o: ../../../../../src/ta_func/ta_CDLSPINNINGTOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLSPINNINGTOP.o ../../../../../src/ta_func/ta_CDLSPINNINGTOP.c + +../../../../../temp/cmd/ta_CDLSTALLEDPATTERN.o: ../../../../../src/ta_func/ta_CDLSTALLEDPATTERN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLSTALLEDPATTERN.o ../../../../../src/ta_func/ta_CDLSTALLEDPATTERN.c + +../../../../../temp/cmd/ta_CDLSTICKSANDWICH.o: ../../../../../src/ta_func/ta_CDLSTICKSANDWICH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLSTICKSANDWICH.o ../../../../../src/ta_func/ta_CDLSTICKSANDWICH.c + +../../../../../temp/cmd/ta_CDLTAKURI.o: ../../../../../src/ta_func/ta_CDLTAKURI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLTAKURI.o ../../../../../src/ta_func/ta_CDLTAKURI.c + +../../../../../temp/cmd/ta_CDLTASUKIGAP.o: ../../../../../src/ta_func/ta_CDLTASUKIGAP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLTASUKIGAP.o ../../../../../src/ta_func/ta_CDLTASUKIGAP.c + +../../../../../temp/cmd/ta_CDLTHRUSTING.o: ../../../../../src/ta_func/ta_CDLTHRUSTING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLTHRUSTING.o ../../../../../src/ta_func/ta_CDLTHRUSTING.c + +../../../../../temp/cmd/ta_CDLTRISTAR.o: ../../../../../src/ta_func/ta_CDLTRISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLTRISTAR.o ../../../../../src/ta_func/ta_CDLTRISTAR.c + +../../../../../temp/cmd/ta_CDLUNIQUE3RIVER.o: ../../../../../src/ta_func/ta_CDLUNIQUE3RIVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLUNIQUE3RIVER.o ../../../../../src/ta_func/ta_CDLUNIQUE3RIVER.c + +../../../../../temp/cmd/ta_CDLUPSIDEGAP2CROWS.o: ../../../../../src/ta_func/ta_CDLUPSIDEGAP2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLUPSIDEGAP2CROWS.o ../../../../../src/ta_func/ta_CDLUPSIDEGAP2CROWS.c + +../../../../../temp/cmd/ta_CDLXSIDEGAP3METHODS.o: ../../../../../src/ta_func/ta_CDLXSIDEGAP3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLXSIDEGAP3METHODS.o ../../../../../src/ta_func/ta_CDLXSIDEGAP3METHODS.c + +../../../../../temp/cmd/ta_CEIL.o: ../../../../../src/ta_func/ta_CEIL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CEIL.o ../../../../../src/ta_func/ta_CEIL.c + +../../../../../temp/cmd/ta_CMO.o: ../../../../../src/ta_func/ta_CMO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CMO.o ../../../../../src/ta_func/ta_CMO.c + +../../../../../temp/cmd/ta_CORREL.o: ../../../../../src/ta_func/ta_CORREL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CORREL.o ../../../../../src/ta_func/ta_CORREL.c + +../../../../../temp/cmd/ta_COS.o: ../../../../../src/ta_func/ta_COS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_COS.o ../../../../../src/ta_func/ta_COS.c + +../../../../../temp/cmd/ta_COSH.o: ../../../../../src/ta_func/ta_COSH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_COSH.o ../../../../../src/ta_func/ta_COSH.c + +../../../../../temp/cmd/ta_DEMA.o: ../../../../../src/ta_func/ta_DEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_DEMA.o ../../../../../src/ta_func/ta_DEMA.c + +../../../../../temp/cmd/ta_DIV.o: ../../../../../src/ta_func/ta_DIV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_DIV.o ../../../../../src/ta_func/ta_DIV.c + +../../../../../temp/cmd/ta_DX.o: ../../../../../src/ta_func/ta_DX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_DX.o ../../../../../src/ta_func/ta_DX.c + +../../../../../temp/cmd/ta_EMA.o: ../../../../../src/ta_func/ta_EMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_EMA.o ../../../../../src/ta_func/ta_EMA.c + +../../../../../temp/cmd/ta_EXP.o: ../../../../../src/ta_func/ta_EXP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_EXP.o ../../../../../src/ta_func/ta_EXP.c + +../../../../../temp/cmd/ta_FLOOR.o: ../../../../../src/ta_func/ta_FLOOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_FLOOR.o ../../../../../src/ta_func/ta_FLOOR.c + +../../../../../temp/cmd/ta_HT_DCPERIOD.o: ../../../../../src/ta_func/ta_HT_DCPERIOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_HT_DCPERIOD.o ../../../../../src/ta_func/ta_HT_DCPERIOD.c + +../../../../../temp/cmd/ta_HT_DCPHASE.o: ../../../../../src/ta_func/ta_HT_DCPHASE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_HT_DCPHASE.o ../../../../../src/ta_func/ta_HT_DCPHASE.c + +../../../../../temp/cmd/ta_HT_PHASOR.o: ../../../../../src/ta_func/ta_HT_PHASOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_HT_PHASOR.o ../../../../../src/ta_func/ta_HT_PHASOR.c + +../../../../../temp/cmd/ta_HT_SINE.o: ../../../../../src/ta_func/ta_HT_SINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_HT_SINE.o ../../../../../src/ta_func/ta_HT_SINE.c + +../../../../../temp/cmd/ta_HT_TRENDLINE.o: ../../../../../src/ta_func/ta_HT_TRENDLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_HT_TRENDLINE.o ../../../../../src/ta_func/ta_HT_TRENDLINE.c + +../../../../../temp/cmd/ta_HT_TRENDMODE.o: ../../../../../src/ta_func/ta_HT_TRENDMODE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_HT_TRENDMODE.o ../../../../../src/ta_func/ta_HT_TRENDMODE.c + +../../../../../temp/cmd/ta_KAMA.o: ../../../../../src/ta_func/ta_KAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_KAMA.o ../../../../../src/ta_func/ta_KAMA.c + +../../../../../temp/cmd/ta_LINEARREG.o: ../../../../../src/ta_func/ta_LINEARREG.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_LINEARREG.o ../../../../../src/ta_func/ta_LINEARREG.c + +../../../../../temp/cmd/ta_LINEARREG_ANGLE.o: ../../../../../src/ta_func/ta_LINEARREG_ANGLE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_LINEARREG_ANGLE.o ../../../../../src/ta_func/ta_LINEARREG_ANGLE.c + +../../../../../temp/cmd/ta_LINEARREG_INTERCEPT.o: ../../../../../src/ta_func/ta_LINEARREG_INTERCEPT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_LINEARREG_INTERCEPT.o ../../../../../src/ta_func/ta_LINEARREG_INTERCEPT.c + +../../../../../temp/cmd/ta_LINEARREG_SLOPE.o: ../../../../../src/ta_func/ta_LINEARREG_SLOPE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_LINEARREG_SLOPE.o ../../../../../src/ta_func/ta_LINEARREG_SLOPE.c + +../../../../../temp/cmd/ta_LN.o: ../../../../../src/ta_func/ta_LN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_LN.o ../../../../../src/ta_func/ta_LN.c + +../../../../../temp/cmd/ta_LOG10.o: ../../../../../src/ta_func/ta_LOG10.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_LOG10.o ../../../../../src/ta_func/ta_LOG10.c + +../../../../../temp/cmd/ta_MA.o: ../../../../../src/ta_func/ta_MA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_MA.o ../../../../../src/ta_func/ta_MA.c + +../../../../../temp/cmd/ta_MACD.o: ../../../../../src/ta_func/ta_MACD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_MACD.o ../../../../../src/ta_func/ta_MACD.c + +../../../../../temp/cmd/ta_MACDEXT.o: ../../../../../src/ta_func/ta_MACDEXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_MACDEXT.o ../../../../../src/ta_func/ta_MACDEXT.c + +../../../../../temp/cmd/ta_MACDFIX.o: ../../../../../src/ta_func/ta_MACDFIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_MACDFIX.o ../../../../../src/ta_func/ta_MACDFIX.c + +../../../../../temp/cmd/ta_MAMA.o: ../../../../../src/ta_func/ta_MAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_MAMA.o ../../../../../src/ta_func/ta_MAMA.c + +../../../../../temp/cmd/ta_MAVP.o: ../../../../../src/ta_func/ta_MAVP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_MAVP.o ../../../../../src/ta_func/ta_MAVP.c + +../../../../../temp/cmd/ta_MAX.o: ../../../../../src/ta_func/ta_MAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_MAX.o ../../../../../src/ta_func/ta_MAX.c + +../../../../../temp/cmd/ta_MAXINDEX.o: ../../../../../src/ta_func/ta_MAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_MAXINDEX.o ../../../../../src/ta_func/ta_MAXINDEX.c + +../../../../../temp/cmd/ta_MEDPRICE.o: ../../../../../src/ta_func/ta_MEDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_MEDPRICE.o ../../../../../src/ta_func/ta_MEDPRICE.c + +../../../../../temp/cmd/ta_MFI.o: ../../../../../src/ta_func/ta_MFI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_MFI.o ../../../../../src/ta_func/ta_MFI.c + +../../../../../temp/cmd/ta_MIDPOINT.o: ../../../../../src/ta_func/ta_MIDPOINT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_MIDPOINT.o ../../../../../src/ta_func/ta_MIDPOINT.c + +../../../../../temp/cmd/ta_MIDPRICE.o: ../../../../../src/ta_func/ta_MIDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_MIDPRICE.o ../../../../../src/ta_func/ta_MIDPRICE.c + +../../../../../temp/cmd/ta_MIN.o: ../../../../../src/ta_func/ta_MIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_MIN.o ../../../../../src/ta_func/ta_MIN.c + +../../../../../temp/cmd/ta_MININDEX.o: ../../../../../src/ta_func/ta_MININDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_MININDEX.o ../../../../../src/ta_func/ta_MININDEX.c + +../../../../../temp/cmd/ta_MINMAX.o: ../../../../../src/ta_func/ta_MINMAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_MINMAX.o ../../../../../src/ta_func/ta_MINMAX.c + +../../../../../temp/cmd/ta_MINMAXINDEX.o: ../../../../../src/ta_func/ta_MINMAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_MINMAXINDEX.o ../../../../../src/ta_func/ta_MINMAXINDEX.c + +../../../../../temp/cmd/ta_MINUS_DI.o: ../../../../../src/ta_func/ta_MINUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_MINUS_DI.o ../../../../../src/ta_func/ta_MINUS_DI.c + +../../../../../temp/cmd/ta_MINUS_DM.o: ../../../../../src/ta_func/ta_MINUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_MINUS_DM.o ../../../../../src/ta_func/ta_MINUS_DM.c + +../../../../../temp/cmd/ta_MOM.o: ../../../../../src/ta_func/ta_MOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_MOM.o ../../../../../src/ta_func/ta_MOM.c + +../../../../../temp/cmd/ta_MULT.o: ../../../../../src/ta_func/ta_MULT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_MULT.o ../../../../../src/ta_func/ta_MULT.c + +../../../../../temp/cmd/ta_NATR.o: ../../../../../src/ta_func/ta_NATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_NATR.o ../../../../../src/ta_func/ta_NATR.c + +../../../../../temp/cmd/ta_OBV.o: ../../../../../src/ta_func/ta_OBV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_OBV.o ../../../../../src/ta_func/ta_OBV.c + +../../../../../temp/cmd/ta_PLUS_DI.o: ../../../../../src/ta_func/ta_PLUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_PLUS_DI.o ../../../../../src/ta_func/ta_PLUS_DI.c + +../../../../../temp/cmd/ta_PLUS_DM.o: ../../../../../src/ta_func/ta_PLUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_PLUS_DM.o ../../../../../src/ta_func/ta_PLUS_DM.c + +../../../../../temp/cmd/ta_PPO.o: ../../../../../src/ta_func/ta_PPO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_PPO.o ../../../../../src/ta_func/ta_PPO.c + +../../../../../temp/cmd/ta_ROC.o: ../../../../../src/ta_func/ta_ROC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_ROC.o ../../../../../src/ta_func/ta_ROC.c + +../../../../../temp/cmd/ta_ROCP.o: ../../../../../src/ta_func/ta_ROCP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_ROCP.o ../../../../../src/ta_func/ta_ROCP.c + +../../../../../temp/cmd/ta_ROCR.o: ../../../../../src/ta_func/ta_ROCR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_ROCR.o ../../../../../src/ta_func/ta_ROCR.c + +../../../../../temp/cmd/ta_ROCR100.o: ../../../../../src/ta_func/ta_ROCR100.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_ROCR100.o ../../../../../src/ta_func/ta_ROCR100.c + +../../../../../temp/cmd/ta_RSI.o: ../../../../../src/ta_func/ta_RSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_RSI.o ../../../../../src/ta_func/ta_RSI.c + +../../../../../temp/cmd/ta_SAR.o: ../../../../../src/ta_func/ta_SAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_SAR.o ../../../../../src/ta_func/ta_SAR.c + +../../../../../temp/cmd/ta_SAREXT.o: ../../../../../src/ta_func/ta_SAREXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_SAREXT.o ../../../../../src/ta_func/ta_SAREXT.c + +../../../../../temp/cmd/ta_SIN.o: ../../../../../src/ta_func/ta_SIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_SIN.o ../../../../../src/ta_func/ta_SIN.c + +../../../../../temp/cmd/ta_SINH.o: ../../../../../src/ta_func/ta_SINH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_SINH.o ../../../../../src/ta_func/ta_SINH.c + +../../../../../temp/cmd/ta_SMA.o: ../../../../../src/ta_func/ta_SMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_SMA.o ../../../../../src/ta_func/ta_SMA.c + +../../../../../temp/cmd/ta_SQRT.o: ../../../../../src/ta_func/ta_SQRT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_SQRT.o ../../../../../src/ta_func/ta_SQRT.c + +../../../../../temp/cmd/ta_STDDEV.o: ../../../../../src/ta_func/ta_STDDEV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_STDDEV.o ../../../../../src/ta_func/ta_STDDEV.c + +../../../../../temp/cmd/ta_STOCH.o: ../../../../../src/ta_func/ta_STOCH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_STOCH.o ../../../../../src/ta_func/ta_STOCH.c + +../../../../../temp/cmd/ta_STOCHF.o: ../../../../../src/ta_func/ta_STOCHF.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_STOCHF.o ../../../../../src/ta_func/ta_STOCHF.c + +../../../../../temp/cmd/ta_STOCHRSI.o: ../../../../../src/ta_func/ta_STOCHRSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_STOCHRSI.o ../../../../../src/ta_func/ta_STOCHRSI.c + +../../../../../temp/cmd/ta_SUB.o: ../../../../../src/ta_func/ta_SUB.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_SUB.o ../../../../../src/ta_func/ta_SUB.c + +../../../../../temp/cmd/ta_SUM.o: ../../../../../src/ta_func/ta_SUM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_SUM.o ../../../../../src/ta_func/ta_SUM.c + +../../../../../temp/cmd/ta_T3.o: ../../../../../src/ta_func/ta_T3.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_T3.o ../../../../../src/ta_func/ta_T3.c + +../../../../../temp/cmd/ta_TAN.o: ../../../../../src/ta_func/ta_TAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_TAN.o ../../../../../src/ta_func/ta_TAN.c + +../../../../../temp/cmd/ta_TANH.o: ../../../../../src/ta_func/ta_TANH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_TANH.o ../../../../../src/ta_func/ta_TANH.c + +../../../../../temp/cmd/ta_TEMA.o: ../../../../../src/ta_func/ta_TEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_TEMA.o ../../../../../src/ta_func/ta_TEMA.c + +../../../../../temp/cmd/ta_TRANGE.o: ../../../../../src/ta_func/ta_TRANGE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_TRANGE.o ../../../../../src/ta_func/ta_TRANGE.c + +../../../../../temp/cmd/ta_TRIMA.o: ../../../../../src/ta_func/ta_TRIMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_TRIMA.o ../../../../../src/ta_func/ta_TRIMA.c + +../../../../../temp/cmd/ta_TRIX.o: ../../../../../src/ta_func/ta_TRIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_TRIX.o ../../../../../src/ta_func/ta_TRIX.c + +../../../../../temp/cmd/ta_TSF.o: ../../../../../src/ta_func/ta_TSF.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_TSF.o ../../../../../src/ta_func/ta_TSF.c + +../../../../../temp/cmd/ta_TYPPRICE.o: ../../../../../src/ta_func/ta_TYPPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_TYPPRICE.o ../../../../../src/ta_func/ta_TYPPRICE.c + +../../../../../temp/cmd/ta_ULTOSC.o: ../../../../../src/ta_func/ta_ULTOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_ULTOSC.o ../../../../../src/ta_func/ta_ULTOSC.c + +../../../../../temp/cmd/ta_VAR.o: ../../../../../src/ta_func/ta_VAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_VAR.o ../../../../../src/ta_func/ta_VAR.c + +../../../../../temp/cmd/ta_WCLPRICE.o: ../../../../../src/ta_func/ta_WCLPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_WCLPRICE.o ../../../../../src/ta_func/ta_WCLPRICE.c + +../../../../../temp/cmd/ta_WILLR.o: ../../../../../src/ta_func/ta_WILLR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_WILLR.o ../../../../../src/ta_func/ta_WILLR.c + +../../../../../temp/cmd/ta_WMA.o: ../../../../../src/ta_func/ta_WMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_WMA.o ../../../../../src/ta_func/ta_WMA.c + diff --git a/make/cmd/linux/g++/ta_libc/Makefile b/make/cmd/linux/g++/ta_libc/Makefile new file mode 100644 index 000000000..ce808a882 --- /dev/null +++ b/make/cmd/linux/g++/ta_libc/Makefile @@ -0,0 +1,1053 @@ +############################################################################# +# Makefile for building ../../../../../lib/libta_libc_cmd.a +# Generated by tmake; +# Project: ta_libc/ta_libc +# Template: lib +############################################################################# + +####### Compiler, tools and options + +CC = gcc +CXX = g++ +CFLAGS = -pipe -fPIC -Wall -W -g -D_REENTRANT -DTA_DEBUG -D_DEBUG -DQT_THREAD_SUPPORT +CXXFLAGS= -pipe -fPIC -Wall -W -g -D_REENTRANT -DTA_DEBUG -D_DEBUG -DQT_THREAD_SUPPORT +INCPATH = -I../../../../../src/ta_common -I../../../../../include -I../../../../../src/ta_abstract -I../../../../../src/ta_abstract/tables -I../../../../../src/ta_abstract/frames -I$(QTDIR)/include +AR = ar cqs +RANLIB = +MOC = $(QTDIR)/bin/moc +UIC = $(QTDIR)/bin/uic + +TAR = tar -cf +GZIP = gzip -9f + +####### Support for 64-bit systems +ifeq ($(shell uname -m), x86_64) + CFLAGS += -march=x86-64 -m64 -D__64BIT__ + CXXFLAGS += -march=x86-64 -m64 -D__64BIT__ +endif + +####### Apply additional overruling user flags, if any +CFLAGS += $(CUSERFLAGS) +CXXFLAGS += $(CUSERFLAGS) + +####### Files + +HEADERS = +SOURCES = ../../../../../src/ta_common/ta_global.c \ + ../../../../../src/ta_common/ta_retcode.c \ + ../../../../../src/ta_common/ta_version.c \ + ../../../../../src/ta_abstract/ta_abstract.c \ + ../../../../../src/ta_abstract/ta_def_ui.c \ + ../../../../../src/ta_abstract/ta_func_api.c \ + ../../../../../src/ta_abstract/ta_group_idx.c \ + ../../../../../src/ta_abstract/frames/ta_frame.c \ + ../../../../../src/ta_abstract/tables/table_a.c \ + ../../../../../src/ta_abstract/tables/table_b.c \ + ../../../../../src/ta_abstract/tables/table_c.c \ + ../../../../../src/ta_abstract/tables/table_d.c \ + ../../../../../src/ta_abstract/tables/table_e.c \ + ../../../../../src/ta_abstract/tables/table_f.c \ + ../../../../../src/ta_abstract/tables/table_g.c \ + ../../../../../src/ta_abstract/tables/table_h.c \ + ../../../../../src/ta_abstract/tables/table_i.c \ + ../../../../../src/ta_abstract/tables/table_j.c \ + ../../../../../src/ta_abstract/tables/table_k.c \ + ../../../../../src/ta_abstract/tables/table_l.c \ + ../../../../../src/ta_abstract/tables/table_m.c \ + ../../../../../src/ta_abstract/tables/table_n.c \ + ../../../../../src/ta_abstract/tables/table_o.c \ + ../../../../../src/ta_abstract/tables/table_p.c \ + ../../../../../src/ta_abstract/tables/table_q.c \ + ../../../../../src/ta_abstract/tables/table_r.c \ + ../../../../../src/ta_abstract/tables/table_s.c \ + ../../../../../src/ta_abstract/tables/table_t.c \ + ../../../../../src/ta_abstract/tables/table_u.c \ + ../../../../../src/ta_abstract/tables/table_v.c \ + ../../../../../src/ta_abstract/tables/table_w.c \ + ../../../../../src/ta_abstract/tables/table_x.c \ + ../../../../../src/ta_abstract/tables/table_y.c \ + ../../../../../src/ta_abstract/tables/table_z.c \ + ../../../../../src/ta_func/ta_utility.c \ + ../../../../../src/ta_func/ta_ACOS.c \ + ../../../../../src/ta_func/ta_AD.c \ + ../../../../../src/ta_func/ta_ADD.c \ + ../../../../../src/ta_func/ta_ADOSC.c \ + ../../../../../src/ta_func/ta_ADX.c \ + ../../../../../src/ta_func/ta_ADXR.c \ + ../../../../../src/ta_func/ta_APO.c \ + ../../../../../src/ta_func/ta_AROON.c \ + ../../../../../src/ta_func/ta_AROONOSC.c \ + ../../../../../src/ta_func/ta_ASIN.c \ + ../../../../../src/ta_func/ta_ATAN.c \ + ../../../../../src/ta_func/ta_ATR.c \ + ../../../../../src/ta_func/ta_AVGPRICE.c \ + ../../../../../src/ta_func/ta_BBANDS.c \ + ../../../../../src/ta_func/ta_BETA.c \ + ../../../../../src/ta_func/ta_BOP.c \ + ../../../../../src/ta_func/ta_CCI.c \ + ../../../../../src/ta_func/ta_CDL2CROWS.c \ + ../../../../../src/ta_func/ta_CDL3BLACKCROWS.c \ + ../../../../../src/ta_func/ta_CDL3INSIDE.c \ + ../../../../../src/ta_func/ta_CDL3LINESTRIKE.c \ + ../../../../../src/ta_func/ta_CDL3OUTSIDE.c \ + ../../../../../src/ta_func/ta_CDL3STARSINSOUTH.c \ + ../../../../../src/ta_func/ta_CDL3WHITESOLDIERS.c \ + ../../../../../src/ta_func/ta_CDLABANDONEDBABY.c \ + ../../../../../src/ta_func/ta_CDLADVANCEBLOCK.c \ + ../../../../../src/ta_func/ta_CDLBELTHOLD.c \ + ../../../../../src/ta_func/ta_CDLBREAKAWAY.c \ + ../../../../../src/ta_func/ta_CDLCLOSINGMARUBOZU.c \ + ../../../../../src/ta_func/ta_CDLCONCEALBABYSWALL.c \ + ../../../../../src/ta_func/ta_CDLCOUNTERATTACK.c \ + ../../../../../src/ta_func/ta_CDLDARKCLOUDCOVER.c \ + ../../../../../src/ta_func/ta_CDLDOJI.c \ + ../../../../../src/ta_func/ta_CDLDOJISTAR.c \ + ../../../../../src/ta_func/ta_CDLDRAGONFLYDOJI.c \ + ../../../../../src/ta_func/ta_CDLENGULFING.c \ + ../../../../../src/ta_func/ta_CDLEVENINGDOJISTAR.c \ + ../../../../../src/ta_func/ta_CDLEVENINGSTAR.c \ + ../../../../../src/ta_func/ta_CDLGAPSIDESIDEWHITE.c \ + ../../../../../src/ta_func/ta_CDLGRAVESTONEDOJI.c \ + ../../../../../src/ta_func/ta_CDLHAMMER.c \ + ../../../../../src/ta_func/ta_CDLHANGINGMAN.c \ + ../../../../../src/ta_func/ta_CDLHARAMI.c \ + ../../../../../src/ta_func/ta_CDLHARAMICROSS.c \ + ../../../../../src/ta_func/ta_CDLHIGHWAVE.c \ + ../../../../../src/ta_func/ta_CDLHIKKAKE.c \ + ../../../../../src/ta_func/ta_CDLHIKKAKEMOD.c \ + ../../../../../src/ta_func/ta_CDLHOMINGPIGEON.c \ + ../../../../../src/ta_func/ta_CDLIDENTICAL3CROWS.c \ + ../../../../../src/ta_func/ta_CDLINNECK.c \ + ../../../../../src/ta_func/ta_CDLINVERTEDHAMMER.c \ + ../../../../../src/ta_func/ta_CDLKICKING.c \ + ../../../../../src/ta_func/ta_CDLKICKINGBYLENGTH.c \ + ../../../../../src/ta_func/ta_CDLLADDERBOTTOM.c \ + ../../../../../src/ta_func/ta_CDLLONGLEGGEDDOJI.c \ + ../../../../../src/ta_func/ta_CDLLONGLINE.c \ + ../../../../../src/ta_func/ta_CDLMARUBOZU.c \ + ../../../../../src/ta_func/ta_CDLMATCHINGLOW.c \ + ../../../../../src/ta_func/ta_CDLMATHOLD.c \ + ../../../../../src/ta_func/ta_CDLMORNINGDOJISTAR.c \ + ../../../../../src/ta_func/ta_CDLMORNINGSTAR.c \ + ../../../../../src/ta_func/ta_CDLONNECK.c \ + ../../../../../src/ta_func/ta_CDLPIERCING.c \ + ../../../../../src/ta_func/ta_CDLRICKSHAWMAN.c \ + ../../../../../src/ta_func/ta_CDLRISEFALL3METHODS.c \ + ../../../../../src/ta_func/ta_CDLSEPARATINGLINES.c \ + ../../../../../src/ta_func/ta_CDLSHOOTINGSTAR.c \ + ../../../../../src/ta_func/ta_CDLSHORTLINE.c \ + ../../../../../src/ta_func/ta_CDLSPINNINGTOP.c \ + ../../../../../src/ta_func/ta_CDLSTALLEDPATTERN.c \ + ../../../../../src/ta_func/ta_CDLSTICKSANDWICH.c \ + ../../../../../src/ta_func/ta_CDLTAKURI.c \ + ../../../../../src/ta_func/ta_CDLTASUKIGAP.c \ + ../../../../../src/ta_func/ta_CDLTHRUSTING.c \ + ../../../../../src/ta_func/ta_CDLTRISTAR.c \ + ../../../../../src/ta_func/ta_CDLUNIQUE3RIVER.c \ + ../../../../../src/ta_func/ta_CDLUPSIDEGAP2CROWS.c \ + ../../../../../src/ta_func/ta_CDLXSIDEGAP3METHODS.c \ + ../../../../../src/ta_func/ta_CEIL.c \ + ../../../../../src/ta_func/ta_CMO.c \ + ../../../../../src/ta_func/ta_CORREL.c \ + ../../../../../src/ta_func/ta_COS.c \ + ../../../../../src/ta_func/ta_COSH.c \ + ../../../../../src/ta_func/ta_DEMA.c \ + ../../../../../src/ta_func/ta_DIV.c \ + ../../../../../src/ta_func/ta_DX.c \ + ../../../../../src/ta_func/ta_EMA.c \ + ../../../../../src/ta_func/ta_EXP.c \ + ../../../../../src/ta_func/ta_FLOOR.c \ + ../../../../../src/ta_func/ta_HT_DCPERIOD.c \ + ../../../../../src/ta_func/ta_HT_DCPHASE.c \ + ../../../../../src/ta_func/ta_HT_PHASOR.c \ + ../../../../../src/ta_func/ta_HT_SINE.c \ + ../../../../../src/ta_func/ta_HT_TRENDLINE.c \ + ../../../../../src/ta_func/ta_HT_TRENDMODE.c \ + ../../../../../src/ta_func/ta_KAMA.c \ + ../../../../../src/ta_func/ta_LINEARREG.c \ + ../../../../../src/ta_func/ta_LINEARREG_ANGLE.c \ + ../../../../../src/ta_func/ta_LINEARREG_INTERCEPT.c \ + ../../../../../src/ta_func/ta_LINEARREG_SLOPE.c \ + ../../../../../src/ta_func/ta_LN.c \ + ../../../../../src/ta_func/ta_LOG10.c \ + ../../../../../src/ta_func/ta_MA.c \ + ../../../../../src/ta_func/ta_MACD.c \ + ../../../../../src/ta_func/ta_MACDEXT.c \ + ../../../../../src/ta_func/ta_MACDFIX.c \ + ../../../../../src/ta_func/ta_MAMA.c \ + ../../../../../src/ta_func/ta_MAVP.c \ + ../../../../../src/ta_func/ta_MAX.c \ + ../../../../../src/ta_func/ta_MAXINDEX.c \ + ../../../../../src/ta_func/ta_MEDPRICE.c \ + ../../../../../src/ta_func/ta_MFI.c \ + ../../../../../src/ta_func/ta_MIDPOINT.c \ + ../../../../../src/ta_func/ta_MIDPRICE.c \ + ../../../../../src/ta_func/ta_MIN.c \ + ../../../../../src/ta_func/ta_MININDEX.c \ + ../../../../../src/ta_func/ta_MINMAX.c \ + ../../../../../src/ta_func/ta_MINMAXINDEX.c \ + ../../../../../src/ta_func/ta_MINUS_DI.c \ + ../../../../../src/ta_func/ta_MINUS_DM.c \ + ../../../../../src/ta_func/ta_MOM.c \ + ../../../../../src/ta_func/ta_MULT.c \ + ../../../../../src/ta_func/ta_NATR.c \ + ../../../../../src/ta_func/ta_OBV.c \ + ../../../../../src/ta_func/ta_PLUS_DI.c \ + ../../../../../src/ta_func/ta_PLUS_DM.c \ + ../../../../../src/ta_func/ta_PPO.c \ + ../../../../../src/ta_func/ta_ROC.c \ + ../../../../../src/ta_func/ta_ROCP.c \ + ../../../../../src/ta_func/ta_ROCR.c \ + ../../../../../src/ta_func/ta_ROCR100.c \ + ../../../../../src/ta_func/ta_RSI.c \ + ../../../../../src/ta_func/ta_SAR.c \ + ../../../../../src/ta_func/ta_SAREXT.c \ + ../../../../../src/ta_func/ta_SIN.c \ + ../../../../../src/ta_func/ta_SINH.c \ + ../../../../../src/ta_func/ta_SMA.c \ + ../../../../../src/ta_func/ta_SQRT.c \ + ../../../../../src/ta_func/ta_STDDEV.c \ + ../../../../../src/ta_func/ta_STOCH.c \ + ../../../../../src/ta_func/ta_STOCHF.c \ + ../../../../../src/ta_func/ta_STOCHRSI.c \ + ../../../../../src/ta_func/ta_SUB.c \ + ../../../../../src/ta_func/ta_SUM.c \ + ../../../../../src/ta_func/ta_T3.c \ + ../../../../../src/ta_func/ta_TAN.c \ + ../../../../../src/ta_func/ta_TANH.c \ + ../../../../../src/ta_func/ta_TEMA.c \ + ../../../../../src/ta_func/ta_TRANGE.c \ + ../../../../../src/ta_func/ta_TRIMA.c \ + ../../../../../src/ta_func/ta_TRIX.c \ + ../../../../../src/ta_func/ta_TSF.c \ + ../../../../../src/ta_func/ta_TYPPRICE.c \ + ../../../../../src/ta_func/ta_ULTOSC.c \ + ../../../../../src/ta_func/ta_VAR.c \ + ../../../../../src/ta_func/ta_WCLPRICE.c \ + ../../../../../src/ta_func/ta_WILLR.c \ + ../../../../../src/ta_func/ta_WMA.c +OBJECTS = ../../../../../temp/cmd/ta_global.o \ + ../../../../../temp/cmd/ta_retcode.o \ + ../../../../../temp/cmd/ta_version.o \ + ../../../../../temp/cmd/ta_abstract.o \ + ../../../../../temp/cmd/ta_def_ui.o \ + ../../../../../temp/cmd/ta_func_api.o \ + ../../../../../temp/cmd/ta_group_idx.o \ + ../../../../../temp/cmd/ta_frame.o \ + ../../../../../temp/cmd/table_a.o \ + ../../../../../temp/cmd/table_b.o \ + ../../../../../temp/cmd/table_c.o \ + ../../../../../temp/cmd/table_d.o \ + ../../../../../temp/cmd/table_e.o \ + ../../../../../temp/cmd/table_f.o \ + ../../../../../temp/cmd/table_g.o \ + ../../../../../temp/cmd/table_h.o \ + ../../../../../temp/cmd/table_i.o \ + ../../../../../temp/cmd/table_j.o \ + ../../../../../temp/cmd/table_k.o \ + ../../../../../temp/cmd/table_l.o \ + ../../../../../temp/cmd/table_m.o \ + ../../../../../temp/cmd/table_n.o \ + ../../../../../temp/cmd/table_o.o \ + ../../../../../temp/cmd/table_p.o \ + ../../../../../temp/cmd/table_q.o \ + ../../../../../temp/cmd/table_r.o \ + ../../../../../temp/cmd/table_s.o \ + ../../../../../temp/cmd/table_t.o \ + ../../../../../temp/cmd/table_u.o \ + ../../../../../temp/cmd/table_v.o \ + ../../../../../temp/cmd/table_w.o \ + ../../../../../temp/cmd/table_x.o \ + ../../../../../temp/cmd/table_y.o \ + ../../../../../temp/cmd/table_z.o \ + ../../../../../temp/cmd/ta_utility.o \ + ../../../../../temp/cmd/ta_ACOS.o \ + ../../../../../temp/cmd/ta_AD.o \ + ../../../../../temp/cmd/ta_ADD.o \ + ../../../../../temp/cmd/ta_ADOSC.o \ + ../../../../../temp/cmd/ta_ADX.o \ + ../../../../../temp/cmd/ta_ADXR.o \ + ../../../../../temp/cmd/ta_APO.o \ + ../../../../../temp/cmd/ta_AROON.o \ + ../../../../../temp/cmd/ta_AROONOSC.o \ + ../../../../../temp/cmd/ta_ASIN.o \ + ../../../../../temp/cmd/ta_ATAN.o \ + ../../../../../temp/cmd/ta_ATR.o \ + ../../../../../temp/cmd/ta_AVGPRICE.o \ + ../../../../../temp/cmd/ta_BBANDS.o \ + ../../../../../temp/cmd/ta_BETA.o \ + ../../../../../temp/cmd/ta_BOP.o \ + ../../../../../temp/cmd/ta_CCI.o \ + ../../../../../temp/cmd/ta_CDL2CROWS.o \ + ../../../../../temp/cmd/ta_CDL3BLACKCROWS.o \ + ../../../../../temp/cmd/ta_CDL3INSIDE.o \ + ../../../../../temp/cmd/ta_CDL3LINESTRIKE.o \ + ../../../../../temp/cmd/ta_CDL3OUTSIDE.o \ + ../../../../../temp/cmd/ta_CDL3STARSINSOUTH.o \ + ../../../../../temp/cmd/ta_CDL3WHITESOLDIERS.o \ + ../../../../../temp/cmd/ta_CDLABANDONEDBABY.o \ + ../../../../../temp/cmd/ta_CDLADVANCEBLOCK.o \ + ../../../../../temp/cmd/ta_CDLBELTHOLD.o \ + ../../../../../temp/cmd/ta_CDLBREAKAWAY.o \ + ../../../../../temp/cmd/ta_CDLCLOSINGMARUBOZU.o \ + ../../../../../temp/cmd/ta_CDLCONCEALBABYSWALL.o \ + ../../../../../temp/cmd/ta_CDLCOUNTERATTACK.o \ + ../../../../../temp/cmd/ta_CDLDARKCLOUDCOVER.o \ + ../../../../../temp/cmd/ta_CDLDOJI.o \ + ../../../../../temp/cmd/ta_CDLDOJISTAR.o \ + ../../../../../temp/cmd/ta_CDLDRAGONFLYDOJI.o \ + ../../../../../temp/cmd/ta_CDLENGULFING.o \ + ../../../../../temp/cmd/ta_CDLEVENINGDOJISTAR.o \ + ../../../../../temp/cmd/ta_CDLEVENINGSTAR.o \ + ../../../../../temp/cmd/ta_CDLGAPSIDESIDEWHITE.o \ + ../../../../../temp/cmd/ta_CDLGRAVESTONEDOJI.o \ + ../../../../../temp/cmd/ta_CDLHAMMER.o \ + ../../../../../temp/cmd/ta_CDLHANGINGMAN.o \ + ../../../../../temp/cmd/ta_CDLHARAMI.o \ + ../../../../../temp/cmd/ta_CDLHARAMICROSS.o \ + ../../../../../temp/cmd/ta_CDLHIGHWAVE.o \ + ../../../../../temp/cmd/ta_CDLHIKKAKE.o \ + ../../../../../temp/cmd/ta_CDLHIKKAKEMOD.o \ + ../../../../../temp/cmd/ta_CDLHOMINGPIGEON.o \ + ../../../../../temp/cmd/ta_CDLIDENTICAL3CROWS.o \ + ../../../../../temp/cmd/ta_CDLINNECK.o \ + ../../../../../temp/cmd/ta_CDLINVERTEDHAMMER.o \ + ../../../../../temp/cmd/ta_CDLKICKING.o \ + ../../../../../temp/cmd/ta_CDLKICKINGBYLENGTH.o \ + ../../../../../temp/cmd/ta_CDLLADDERBOTTOM.o \ + ../../../../../temp/cmd/ta_CDLLONGLEGGEDDOJI.o \ + ../../../../../temp/cmd/ta_CDLLONGLINE.o \ + ../../../../../temp/cmd/ta_CDLMARUBOZU.o \ + ../../../../../temp/cmd/ta_CDLMATCHINGLOW.o \ + ../../../../../temp/cmd/ta_CDLMATHOLD.o \ + ../../../../../temp/cmd/ta_CDLMORNINGDOJISTAR.o \ + ../../../../../temp/cmd/ta_CDLMORNINGSTAR.o \ + ../../../../../temp/cmd/ta_CDLONNECK.o \ + ../../../../../temp/cmd/ta_CDLPIERCING.o \ + ../../../../../temp/cmd/ta_CDLRICKSHAWMAN.o \ + ../../../../../temp/cmd/ta_CDLRISEFALL3METHODS.o \ + ../../../../../temp/cmd/ta_CDLSEPARATINGLINES.o \ + ../../../../../temp/cmd/ta_CDLSHOOTINGSTAR.o \ + ../../../../../temp/cmd/ta_CDLSHORTLINE.o \ + ../../../../../temp/cmd/ta_CDLSPINNINGTOP.o \ + ../../../../../temp/cmd/ta_CDLSTALLEDPATTERN.o \ + ../../../../../temp/cmd/ta_CDLSTICKSANDWICH.o \ + ../../../../../temp/cmd/ta_CDLTAKURI.o \ + ../../../../../temp/cmd/ta_CDLTASUKIGAP.o \ + ../../../../../temp/cmd/ta_CDLTHRUSTING.o \ + ../../../../../temp/cmd/ta_CDLTRISTAR.o \ + ../../../../../temp/cmd/ta_CDLUNIQUE3RIVER.o \ + ../../../../../temp/cmd/ta_CDLUPSIDEGAP2CROWS.o \ + ../../../../../temp/cmd/ta_CDLXSIDEGAP3METHODS.o \ + ../../../../../temp/cmd/ta_CEIL.o \ + ../../../../../temp/cmd/ta_CMO.o \ + ../../../../../temp/cmd/ta_CORREL.o \ + ../../../../../temp/cmd/ta_COS.o \ + ../../../../../temp/cmd/ta_COSH.o \ + ../../../../../temp/cmd/ta_DEMA.o \ + ../../../../../temp/cmd/ta_DIV.o \ + ../../../../../temp/cmd/ta_DX.o \ + ../../../../../temp/cmd/ta_EMA.o \ + ../../../../../temp/cmd/ta_EXP.o \ + ../../../../../temp/cmd/ta_FLOOR.o \ + ../../../../../temp/cmd/ta_HT_DCPERIOD.o \ + ../../../../../temp/cmd/ta_HT_DCPHASE.o \ + ../../../../../temp/cmd/ta_HT_PHASOR.o \ + ../../../../../temp/cmd/ta_HT_SINE.o \ + ../../../../../temp/cmd/ta_HT_TRENDLINE.o \ + ../../../../../temp/cmd/ta_HT_TRENDMODE.o \ + ../../../../../temp/cmd/ta_KAMA.o \ + ../../../../../temp/cmd/ta_LINEARREG.o \ + ../../../../../temp/cmd/ta_LINEARREG_ANGLE.o \ + ../../../../../temp/cmd/ta_LINEARREG_INTERCEPT.o \ + ../../../../../temp/cmd/ta_LINEARREG_SLOPE.o \ + ../../../../../temp/cmd/ta_LN.o \ + ../../../../../temp/cmd/ta_LOG10.o \ + ../../../../../temp/cmd/ta_MA.o \ + ../../../../../temp/cmd/ta_MACD.o \ + ../../../../../temp/cmd/ta_MACDEXT.o \ + ../../../../../temp/cmd/ta_MACDFIX.o \ + ../../../../../temp/cmd/ta_MAMA.o \ + ../../../../../temp/cmd/ta_MAVP.o \ + ../../../../../temp/cmd/ta_MAX.o \ + ../../../../../temp/cmd/ta_MAXINDEX.o \ + ../../../../../temp/cmd/ta_MEDPRICE.o \ + ../../../../../temp/cmd/ta_MFI.o \ + ../../../../../temp/cmd/ta_MIDPOINT.o \ + ../../../../../temp/cmd/ta_MIDPRICE.o \ + ../../../../../temp/cmd/ta_MIN.o \ + ../../../../../temp/cmd/ta_MININDEX.o \ + ../../../../../temp/cmd/ta_MINMAX.o \ + ../../../../../temp/cmd/ta_MINMAXINDEX.o \ + ../../../../../temp/cmd/ta_MINUS_DI.o \ + ../../../../../temp/cmd/ta_MINUS_DM.o \ + ../../../../../temp/cmd/ta_MOM.o \ + ../../../../../temp/cmd/ta_MULT.o \ + ../../../../../temp/cmd/ta_NATR.o \ + ../../../../../temp/cmd/ta_OBV.o \ + ../../../../../temp/cmd/ta_PLUS_DI.o \ + ../../../../../temp/cmd/ta_PLUS_DM.o \ + ../../../../../temp/cmd/ta_PPO.o \ + ../../../../../temp/cmd/ta_ROC.o \ + ../../../../../temp/cmd/ta_ROCP.o \ + ../../../../../temp/cmd/ta_ROCR.o \ + ../../../../../temp/cmd/ta_ROCR100.o \ + ../../../../../temp/cmd/ta_RSI.o \ + ../../../../../temp/cmd/ta_SAR.o \ + ../../../../../temp/cmd/ta_SAREXT.o \ + ../../../../../temp/cmd/ta_SIN.o \ + ../../../../../temp/cmd/ta_SINH.o \ + ../../../../../temp/cmd/ta_SMA.o \ + ../../../../../temp/cmd/ta_SQRT.o \ + ../../../../../temp/cmd/ta_STDDEV.o \ + ../../../../../temp/cmd/ta_STOCH.o \ + ../../../../../temp/cmd/ta_STOCHF.o \ + ../../../../../temp/cmd/ta_STOCHRSI.o \ + ../../../../../temp/cmd/ta_SUB.o \ + ../../../../../temp/cmd/ta_SUM.o \ + ../../../../../temp/cmd/ta_T3.o \ + ../../../../../temp/cmd/ta_TAN.o \ + ../../../../../temp/cmd/ta_TANH.o \ + ../../../../../temp/cmd/ta_TEMA.o \ + ../../../../../temp/cmd/ta_TRANGE.o \ + ../../../../../temp/cmd/ta_TRIMA.o \ + ../../../../../temp/cmd/ta_TRIX.o \ + ../../../../../temp/cmd/ta_TSF.o \ + ../../../../../temp/cmd/ta_TYPPRICE.o \ + ../../../../../temp/cmd/ta_ULTOSC.o \ + ../../../../../temp/cmd/ta_VAR.o \ + ../../../../../temp/cmd/ta_WCLPRICE.o \ + ../../../../../temp/cmd/ta_WILLR.o \ + ../../../../../temp/cmd/ta_WMA.o +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ../../../../../lib/libta_libc_cmd.a +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .C .c + +.cpp.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cxx.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cc.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.C.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.c.o: + $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $< + +####### Build rules + + +all: $(TARGET) + +staticlib: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + -rm -f $(TARGET) + $(AR) $(TARGET) $(OBJECTS) $(OBJMOC) + +moc: $(SRCMOC) + +clean: + -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) + -rm -f *~ core + +####### Sub-libraries + + +###### Combined headers + + +####### Compile + +../../../../../temp/cmd/ta_global.o: ../../../../../src/ta_common/ta_global.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_global.o ../../../../../src/ta_common/ta_global.c + +../../../../../temp/cmd/ta_retcode.o: ../../../../../src/ta_common/ta_retcode.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_retcode.o ../../../../../src/ta_common/ta_retcode.c + +../../../../../temp/cmd/ta_version.o: ../../../../../src/ta_common/ta_version.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_version.o ../../../../../src/ta_common/ta_version.c + +../../../../../temp/cmd/ta_abstract.o: ../../../../../src/ta_abstract/ta_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_abstract.o ../../../../../src/ta_abstract/ta_abstract.c + +../../../../../temp/cmd/ta_def_ui.o: ../../../../../src/ta_abstract/ta_def_ui.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_def_ui.o ../../../../../src/ta_abstract/ta_def_ui.c + +../../../../../temp/cmd/ta_func_api.o: ../../../../../src/ta_abstract/ta_func_api.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_func_api.o ../../../../../src/ta_abstract/ta_func_api.c + +../../../../../temp/cmd/ta_group_idx.o: ../../../../../src/ta_abstract/ta_group_idx.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_group_idx.o ../../../../../src/ta_abstract/ta_group_idx.c + +../../../../../temp/cmd/ta_frame.o: ../../../../../src/ta_abstract/frames/ta_frame.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_frame.o ../../../../../src/ta_abstract/frames/ta_frame.c + +../../../../../temp/cmd/table_a.o: ../../../../../src/ta_abstract/tables/table_a.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_a.o ../../../../../src/ta_abstract/tables/table_a.c + +../../../../../temp/cmd/table_b.o: ../../../../../src/ta_abstract/tables/table_b.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_b.o ../../../../../src/ta_abstract/tables/table_b.c + +../../../../../temp/cmd/table_c.o: ../../../../../src/ta_abstract/tables/table_c.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_c.o ../../../../../src/ta_abstract/tables/table_c.c + +../../../../../temp/cmd/table_d.o: ../../../../../src/ta_abstract/tables/table_d.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_d.o ../../../../../src/ta_abstract/tables/table_d.c + +../../../../../temp/cmd/table_e.o: ../../../../../src/ta_abstract/tables/table_e.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_e.o ../../../../../src/ta_abstract/tables/table_e.c + +../../../../../temp/cmd/table_f.o: ../../../../../src/ta_abstract/tables/table_f.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_f.o ../../../../../src/ta_abstract/tables/table_f.c + +../../../../../temp/cmd/table_g.o: ../../../../../src/ta_abstract/tables/table_g.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_g.o ../../../../../src/ta_abstract/tables/table_g.c + +../../../../../temp/cmd/table_h.o: ../../../../../src/ta_abstract/tables/table_h.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_h.o ../../../../../src/ta_abstract/tables/table_h.c + +../../../../../temp/cmd/table_i.o: ../../../../../src/ta_abstract/tables/table_i.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_i.o ../../../../../src/ta_abstract/tables/table_i.c + +../../../../../temp/cmd/table_j.o: ../../../../../src/ta_abstract/tables/table_j.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_j.o ../../../../../src/ta_abstract/tables/table_j.c + +../../../../../temp/cmd/table_k.o: ../../../../../src/ta_abstract/tables/table_k.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_k.o ../../../../../src/ta_abstract/tables/table_k.c + +../../../../../temp/cmd/table_l.o: ../../../../../src/ta_abstract/tables/table_l.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_l.o ../../../../../src/ta_abstract/tables/table_l.c + +../../../../../temp/cmd/table_m.o: ../../../../../src/ta_abstract/tables/table_m.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_m.o ../../../../../src/ta_abstract/tables/table_m.c + +../../../../../temp/cmd/table_n.o: ../../../../../src/ta_abstract/tables/table_n.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_n.o ../../../../../src/ta_abstract/tables/table_n.c + +../../../../../temp/cmd/table_o.o: ../../../../../src/ta_abstract/tables/table_o.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_o.o ../../../../../src/ta_abstract/tables/table_o.c + +../../../../../temp/cmd/table_p.o: ../../../../../src/ta_abstract/tables/table_p.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_p.o ../../../../../src/ta_abstract/tables/table_p.c + +../../../../../temp/cmd/table_q.o: ../../../../../src/ta_abstract/tables/table_q.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_q.o ../../../../../src/ta_abstract/tables/table_q.c + +../../../../../temp/cmd/table_r.o: ../../../../../src/ta_abstract/tables/table_r.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_r.o ../../../../../src/ta_abstract/tables/table_r.c + +../../../../../temp/cmd/table_s.o: ../../../../../src/ta_abstract/tables/table_s.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_s.o ../../../../../src/ta_abstract/tables/table_s.c + +../../../../../temp/cmd/table_t.o: ../../../../../src/ta_abstract/tables/table_t.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_t.o ../../../../../src/ta_abstract/tables/table_t.c + +../../../../../temp/cmd/table_u.o: ../../../../../src/ta_abstract/tables/table_u.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_u.o ../../../../../src/ta_abstract/tables/table_u.c + +../../../../../temp/cmd/table_v.o: ../../../../../src/ta_abstract/tables/table_v.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_v.o ../../../../../src/ta_abstract/tables/table_v.c + +../../../../../temp/cmd/table_w.o: ../../../../../src/ta_abstract/tables/table_w.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_w.o ../../../../../src/ta_abstract/tables/table_w.c + +../../../../../temp/cmd/table_x.o: ../../../../../src/ta_abstract/tables/table_x.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_x.o ../../../../../src/ta_abstract/tables/table_x.c + +../../../../../temp/cmd/table_y.o: ../../../../../src/ta_abstract/tables/table_y.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_y.o ../../../../../src/ta_abstract/tables/table_y.c + +../../../../../temp/cmd/table_z.o: ../../../../../src/ta_abstract/tables/table_z.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/table_z.o ../../../../../src/ta_abstract/tables/table_z.c + +../../../../../temp/cmd/ta_utility.o: ../../../../../src/ta_func/ta_utility.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_utility.o ../../../../../src/ta_func/ta_utility.c + +../../../../../temp/cmd/ta_ACOS.o: ../../../../../src/ta_func/ta_ACOS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_ACOS.o ../../../../../src/ta_func/ta_ACOS.c + +../../../../../temp/cmd/ta_AD.o: ../../../../../src/ta_func/ta_AD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_AD.o ../../../../../src/ta_func/ta_AD.c + +../../../../../temp/cmd/ta_ADD.o: ../../../../../src/ta_func/ta_ADD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_ADD.o ../../../../../src/ta_func/ta_ADD.c + +../../../../../temp/cmd/ta_ADOSC.o: ../../../../../src/ta_func/ta_ADOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_ADOSC.o ../../../../../src/ta_func/ta_ADOSC.c + +../../../../../temp/cmd/ta_ADX.o: ../../../../../src/ta_func/ta_ADX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_ADX.o ../../../../../src/ta_func/ta_ADX.c + +../../../../../temp/cmd/ta_ADXR.o: ../../../../../src/ta_func/ta_ADXR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_ADXR.o ../../../../../src/ta_func/ta_ADXR.c + +../../../../../temp/cmd/ta_APO.o: ../../../../../src/ta_func/ta_APO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_APO.o ../../../../../src/ta_func/ta_APO.c + +../../../../../temp/cmd/ta_AROON.o: ../../../../../src/ta_func/ta_AROON.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_AROON.o ../../../../../src/ta_func/ta_AROON.c + +../../../../../temp/cmd/ta_AROONOSC.o: ../../../../../src/ta_func/ta_AROONOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_AROONOSC.o ../../../../../src/ta_func/ta_AROONOSC.c + +../../../../../temp/cmd/ta_ASIN.o: ../../../../../src/ta_func/ta_ASIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_ASIN.o ../../../../../src/ta_func/ta_ASIN.c + +../../../../../temp/cmd/ta_ATAN.o: ../../../../../src/ta_func/ta_ATAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_ATAN.o ../../../../../src/ta_func/ta_ATAN.c + +../../../../../temp/cmd/ta_ATR.o: ../../../../../src/ta_func/ta_ATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_ATR.o ../../../../../src/ta_func/ta_ATR.c + +../../../../../temp/cmd/ta_AVGPRICE.o: ../../../../../src/ta_func/ta_AVGPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_AVGPRICE.o ../../../../../src/ta_func/ta_AVGPRICE.c + +../../../../../temp/cmd/ta_BBANDS.o: ../../../../../src/ta_func/ta_BBANDS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_BBANDS.o ../../../../../src/ta_func/ta_BBANDS.c + +../../../../../temp/cmd/ta_BETA.o: ../../../../../src/ta_func/ta_BETA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_BETA.o ../../../../../src/ta_func/ta_BETA.c + +../../../../../temp/cmd/ta_BOP.o: ../../../../../src/ta_func/ta_BOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_BOP.o ../../../../../src/ta_func/ta_BOP.c + +../../../../../temp/cmd/ta_CCI.o: ../../../../../src/ta_func/ta_CCI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CCI.o ../../../../../src/ta_func/ta_CCI.c + +../../../../../temp/cmd/ta_CDL2CROWS.o: ../../../../../src/ta_func/ta_CDL2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDL2CROWS.o ../../../../../src/ta_func/ta_CDL2CROWS.c + +../../../../../temp/cmd/ta_CDL3BLACKCROWS.o: ../../../../../src/ta_func/ta_CDL3BLACKCROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDL3BLACKCROWS.o ../../../../../src/ta_func/ta_CDL3BLACKCROWS.c + +../../../../../temp/cmd/ta_CDL3INSIDE.o: ../../../../../src/ta_func/ta_CDL3INSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDL3INSIDE.o ../../../../../src/ta_func/ta_CDL3INSIDE.c + +../../../../../temp/cmd/ta_CDL3LINESTRIKE.o: ../../../../../src/ta_func/ta_CDL3LINESTRIKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDL3LINESTRIKE.o ../../../../../src/ta_func/ta_CDL3LINESTRIKE.c + +../../../../../temp/cmd/ta_CDL3OUTSIDE.o: ../../../../../src/ta_func/ta_CDL3OUTSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDL3OUTSIDE.o ../../../../../src/ta_func/ta_CDL3OUTSIDE.c + +../../../../../temp/cmd/ta_CDL3STARSINSOUTH.o: ../../../../../src/ta_func/ta_CDL3STARSINSOUTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDL3STARSINSOUTH.o ../../../../../src/ta_func/ta_CDL3STARSINSOUTH.c + +../../../../../temp/cmd/ta_CDL3WHITESOLDIERS.o: ../../../../../src/ta_func/ta_CDL3WHITESOLDIERS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDL3WHITESOLDIERS.o ../../../../../src/ta_func/ta_CDL3WHITESOLDIERS.c + +../../../../../temp/cmd/ta_CDLABANDONEDBABY.o: ../../../../../src/ta_func/ta_CDLABANDONEDBABY.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLABANDONEDBABY.o ../../../../../src/ta_func/ta_CDLABANDONEDBABY.c + +../../../../../temp/cmd/ta_CDLADVANCEBLOCK.o: ../../../../../src/ta_func/ta_CDLADVANCEBLOCK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLADVANCEBLOCK.o ../../../../../src/ta_func/ta_CDLADVANCEBLOCK.c + +../../../../../temp/cmd/ta_CDLBELTHOLD.o: ../../../../../src/ta_func/ta_CDLBELTHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLBELTHOLD.o ../../../../../src/ta_func/ta_CDLBELTHOLD.c + +../../../../../temp/cmd/ta_CDLBREAKAWAY.o: ../../../../../src/ta_func/ta_CDLBREAKAWAY.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLBREAKAWAY.o ../../../../../src/ta_func/ta_CDLBREAKAWAY.c + +../../../../../temp/cmd/ta_CDLCLOSINGMARUBOZU.o: ../../../../../src/ta_func/ta_CDLCLOSINGMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLCLOSINGMARUBOZU.o ../../../../../src/ta_func/ta_CDLCLOSINGMARUBOZU.c + +../../../../../temp/cmd/ta_CDLCONCEALBABYSWALL.o: ../../../../../src/ta_func/ta_CDLCONCEALBABYSWALL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLCONCEALBABYSWALL.o ../../../../../src/ta_func/ta_CDLCONCEALBABYSWALL.c + +../../../../../temp/cmd/ta_CDLCOUNTERATTACK.o: ../../../../../src/ta_func/ta_CDLCOUNTERATTACK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLCOUNTERATTACK.o ../../../../../src/ta_func/ta_CDLCOUNTERATTACK.c + +../../../../../temp/cmd/ta_CDLDARKCLOUDCOVER.o: ../../../../../src/ta_func/ta_CDLDARKCLOUDCOVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLDARKCLOUDCOVER.o ../../../../../src/ta_func/ta_CDLDARKCLOUDCOVER.c + +../../../../../temp/cmd/ta_CDLDOJI.o: ../../../../../src/ta_func/ta_CDLDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLDOJI.o ../../../../../src/ta_func/ta_CDLDOJI.c + +../../../../../temp/cmd/ta_CDLDOJISTAR.o: ../../../../../src/ta_func/ta_CDLDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLDOJISTAR.o ../../../../../src/ta_func/ta_CDLDOJISTAR.c + +../../../../../temp/cmd/ta_CDLDRAGONFLYDOJI.o: ../../../../../src/ta_func/ta_CDLDRAGONFLYDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLDRAGONFLYDOJI.o ../../../../../src/ta_func/ta_CDLDRAGONFLYDOJI.c + +../../../../../temp/cmd/ta_CDLENGULFING.o: ../../../../../src/ta_func/ta_CDLENGULFING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLENGULFING.o ../../../../../src/ta_func/ta_CDLENGULFING.c + +../../../../../temp/cmd/ta_CDLEVENINGDOJISTAR.o: ../../../../../src/ta_func/ta_CDLEVENINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLEVENINGDOJISTAR.o ../../../../../src/ta_func/ta_CDLEVENINGDOJISTAR.c + +../../../../../temp/cmd/ta_CDLEVENINGSTAR.o: ../../../../../src/ta_func/ta_CDLEVENINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLEVENINGSTAR.o ../../../../../src/ta_func/ta_CDLEVENINGSTAR.c + +../../../../../temp/cmd/ta_CDLGAPSIDESIDEWHITE.o: ../../../../../src/ta_func/ta_CDLGAPSIDESIDEWHITE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLGAPSIDESIDEWHITE.o ../../../../../src/ta_func/ta_CDLGAPSIDESIDEWHITE.c + +../../../../../temp/cmd/ta_CDLGRAVESTONEDOJI.o: ../../../../../src/ta_func/ta_CDLGRAVESTONEDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLGRAVESTONEDOJI.o ../../../../../src/ta_func/ta_CDLGRAVESTONEDOJI.c + +../../../../../temp/cmd/ta_CDLHAMMER.o: ../../../../../src/ta_func/ta_CDLHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLHAMMER.o ../../../../../src/ta_func/ta_CDLHAMMER.c + +../../../../../temp/cmd/ta_CDLHANGINGMAN.o: ../../../../../src/ta_func/ta_CDLHANGINGMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLHANGINGMAN.o ../../../../../src/ta_func/ta_CDLHANGINGMAN.c + +../../../../../temp/cmd/ta_CDLHARAMI.o: ../../../../../src/ta_func/ta_CDLHARAMI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLHARAMI.o ../../../../../src/ta_func/ta_CDLHARAMI.c + +../../../../../temp/cmd/ta_CDLHARAMICROSS.o: ../../../../../src/ta_func/ta_CDLHARAMICROSS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLHARAMICROSS.o ../../../../../src/ta_func/ta_CDLHARAMICROSS.c + +../../../../../temp/cmd/ta_CDLHIGHWAVE.o: ../../../../../src/ta_func/ta_CDLHIGHWAVE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLHIGHWAVE.o ../../../../../src/ta_func/ta_CDLHIGHWAVE.c + +../../../../../temp/cmd/ta_CDLHIKKAKE.o: ../../../../../src/ta_func/ta_CDLHIKKAKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLHIKKAKE.o ../../../../../src/ta_func/ta_CDLHIKKAKE.c + +../../../../../temp/cmd/ta_CDLHIKKAKEMOD.o: ../../../../../src/ta_func/ta_CDLHIKKAKEMOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLHIKKAKEMOD.o ../../../../../src/ta_func/ta_CDLHIKKAKEMOD.c + +../../../../../temp/cmd/ta_CDLHOMINGPIGEON.o: ../../../../../src/ta_func/ta_CDLHOMINGPIGEON.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLHOMINGPIGEON.o ../../../../../src/ta_func/ta_CDLHOMINGPIGEON.c + +../../../../../temp/cmd/ta_CDLIDENTICAL3CROWS.o: ../../../../../src/ta_func/ta_CDLIDENTICAL3CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLIDENTICAL3CROWS.o ../../../../../src/ta_func/ta_CDLIDENTICAL3CROWS.c + +../../../../../temp/cmd/ta_CDLINNECK.o: ../../../../../src/ta_func/ta_CDLINNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLINNECK.o ../../../../../src/ta_func/ta_CDLINNECK.c + +../../../../../temp/cmd/ta_CDLINVERTEDHAMMER.o: ../../../../../src/ta_func/ta_CDLINVERTEDHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLINVERTEDHAMMER.o ../../../../../src/ta_func/ta_CDLINVERTEDHAMMER.c + +../../../../../temp/cmd/ta_CDLKICKING.o: ../../../../../src/ta_func/ta_CDLKICKING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLKICKING.o ../../../../../src/ta_func/ta_CDLKICKING.c + +../../../../../temp/cmd/ta_CDLKICKINGBYLENGTH.o: ../../../../../src/ta_func/ta_CDLKICKINGBYLENGTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLKICKINGBYLENGTH.o ../../../../../src/ta_func/ta_CDLKICKINGBYLENGTH.c + +../../../../../temp/cmd/ta_CDLLADDERBOTTOM.o: ../../../../../src/ta_func/ta_CDLLADDERBOTTOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLLADDERBOTTOM.o ../../../../../src/ta_func/ta_CDLLADDERBOTTOM.c + +../../../../../temp/cmd/ta_CDLLONGLEGGEDDOJI.o: ../../../../../src/ta_func/ta_CDLLONGLEGGEDDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLLONGLEGGEDDOJI.o ../../../../../src/ta_func/ta_CDLLONGLEGGEDDOJI.c + +../../../../../temp/cmd/ta_CDLLONGLINE.o: ../../../../../src/ta_func/ta_CDLLONGLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLLONGLINE.o ../../../../../src/ta_func/ta_CDLLONGLINE.c + +../../../../../temp/cmd/ta_CDLMARUBOZU.o: ../../../../../src/ta_func/ta_CDLMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLMARUBOZU.o ../../../../../src/ta_func/ta_CDLMARUBOZU.c + +../../../../../temp/cmd/ta_CDLMATCHINGLOW.o: ../../../../../src/ta_func/ta_CDLMATCHINGLOW.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLMATCHINGLOW.o ../../../../../src/ta_func/ta_CDLMATCHINGLOW.c + +../../../../../temp/cmd/ta_CDLMATHOLD.o: ../../../../../src/ta_func/ta_CDLMATHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLMATHOLD.o ../../../../../src/ta_func/ta_CDLMATHOLD.c + +../../../../../temp/cmd/ta_CDLMORNINGDOJISTAR.o: ../../../../../src/ta_func/ta_CDLMORNINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLMORNINGDOJISTAR.o ../../../../../src/ta_func/ta_CDLMORNINGDOJISTAR.c + +../../../../../temp/cmd/ta_CDLMORNINGSTAR.o: ../../../../../src/ta_func/ta_CDLMORNINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLMORNINGSTAR.o ../../../../../src/ta_func/ta_CDLMORNINGSTAR.c + +../../../../../temp/cmd/ta_CDLONNECK.o: ../../../../../src/ta_func/ta_CDLONNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLONNECK.o ../../../../../src/ta_func/ta_CDLONNECK.c + +../../../../../temp/cmd/ta_CDLPIERCING.o: ../../../../../src/ta_func/ta_CDLPIERCING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLPIERCING.o ../../../../../src/ta_func/ta_CDLPIERCING.c + +../../../../../temp/cmd/ta_CDLRICKSHAWMAN.o: ../../../../../src/ta_func/ta_CDLRICKSHAWMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLRICKSHAWMAN.o ../../../../../src/ta_func/ta_CDLRICKSHAWMAN.c + +../../../../../temp/cmd/ta_CDLRISEFALL3METHODS.o: ../../../../../src/ta_func/ta_CDLRISEFALL3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLRISEFALL3METHODS.o ../../../../../src/ta_func/ta_CDLRISEFALL3METHODS.c + +../../../../../temp/cmd/ta_CDLSEPARATINGLINES.o: ../../../../../src/ta_func/ta_CDLSEPARATINGLINES.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLSEPARATINGLINES.o ../../../../../src/ta_func/ta_CDLSEPARATINGLINES.c + +../../../../../temp/cmd/ta_CDLSHOOTINGSTAR.o: ../../../../../src/ta_func/ta_CDLSHOOTINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLSHOOTINGSTAR.o ../../../../../src/ta_func/ta_CDLSHOOTINGSTAR.c + +../../../../../temp/cmd/ta_CDLSHORTLINE.o: ../../../../../src/ta_func/ta_CDLSHORTLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLSHORTLINE.o ../../../../../src/ta_func/ta_CDLSHORTLINE.c + +../../../../../temp/cmd/ta_CDLSPINNINGTOP.o: ../../../../../src/ta_func/ta_CDLSPINNINGTOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLSPINNINGTOP.o ../../../../../src/ta_func/ta_CDLSPINNINGTOP.c + +../../../../../temp/cmd/ta_CDLSTALLEDPATTERN.o: ../../../../../src/ta_func/ta_CDLSTALLEDPATTERN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLSTALLEDPATTERN.o ../../../../../src/ta_func/ta_CDLSTALLEDPATTERN.c + +../../../../../temp/cmd/ta_CDLSTICKSANDWICH.o: ../../../../../src/ta_func/ta_CDLSTICKSANDWICH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLSTICKSANDWICH.o ../../../../../src/ta_func/ta_CDLSTICKSANDWICH.c + +../../../../../temp/cmd/ta_CDLTAKURI.o: ../../../../../src/ta_func/ta_CDLTAKURI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLTAKURI.o ../../../../../src/ta_func/ta_CDLTAKURI.c + +../../../../../temp/cmd/ta_CDLTASUKIGAP.o: ../../../../../src/ta_func/ta_CDLTASUKIGAP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLTASUKIGAP.o ../../../../../src/ta_func/ta_CDLTASUKIGAP.c + +../../../../../temp/cmd/ta_CDLTHRUSTING.o: ../../../../../src/ta_func/ta_CDLTHRUSTING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLTHRUSTING.o ../../../../../src/ta_func/ta_CDLTHRUSTING.c + +../../../../../temp/cmd/ta_CDLTRISTAR.o: ../../../../../src/ta_func/ta_CDLTRISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLTRISTAR.o ../../../../../src/ta_func/ta_CDLTRISTAR.c + +../../../../../temp/cmd/ta_CDLUNIQUE3RIVER.o: ../../../../../src/ta_func/ta_CDLUNIQUE3RIVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLUNIQUE3RIVER.o ../../../../../src/ta_func/ta_CDLUNIQUE3RIVER.c + +../../../../../temp/cmd/ta_CDLUPSIDEGAP2CROWS.o: ../../../../../src/ta_func/ta_CDLUPSIDEGAP2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLUPSIDEGAP2CROWS.o ../../../../../src/ta_func/ta_CDLUPSIDEGAP2CROWS.c + +../../../../../temp/cmd/ta_CDLXSIDEGAP3METHODS.o: ../../../../../src/ta_func/ta_CDLXSIDEGAP3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CDLXSIDEGAP3METHODS.o ../../../../../src/ta_func/ta_CDLXSIDEGAP3METHODS.c + +../../../../../temp/cmd/ta_CEIL.o: ../../../../../src/ta_func/ta_CEIL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CEIL.o ../../../../../src/ta_func/ta_CEIL.c + +../../../../../temp/cmd/ta_CMO.o: ../../../../../src/ta_func/ta_CMO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CMO.o ../../../../../src/ta_func/ta_CMO.c + +../../../../../temp/cmd/ta_CORREL.o: ../../../../../src/ta_func/ta_CORREL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_CORREL.o ../../../../../src/ta_func/ta_CORREL.c + +../../../../../temp/cmd/ta_COS.o: ../../../../../src/ta_func/ta_COS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_COS.o ../../../../../src/ta_func/ta_COS.c + +../../../../../temp/cmd/ta_COSH.o: ../../../../../src/ta_func/ta_COSH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_COSH.o ../../../../../src/ta_func/ta_COSH.c + +../../../../../temp/cmd/ta_DEMA.o: ../../../../../src/ta_func/ta_DEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_DEMA.o ../../../../../src/ta_func/ta_DEMA.c + +../../../../../temp/cmd/ta_DIV.o: ../../../../../src/ta_func/ta_DIV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_DIV.o ../../../../../src/ta_func/ta_DIV.c + +../../../../../temp/cmd/ta_DX.o: ../../../../../src/ta_func/ta_DX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_DX.o ../../../../../src/ta_func/ta_DX.c + +../../../../../temp/cmd/ta_EMA.o: ../../../../../src/ta_func/ta_EMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_EMA.o ../../../../../src/ta_func/ta_EMA.c + +../../../../../temp/cmd/ta_EXP.o: ../../../../../src/ta_func/ta_EXP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_EXP.o ../../../../../src/ta_func/ta_EXP.c + +../../../../../temp/cmd/ta_FLOOR.o: ../../../../../src/ta_func/ta_FLOOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_FLOOR.o ../../../../../src/ta_func/ta_FLOOR.c + +../../../../../temp/cmd/ta_HT_DCPERIOD.o: ../../../../../src/ta_func/ta_HT_DCPERIOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_HT_DCPERIOD.o ../../../../../src/ta_func/ta_HT_DCPERIOD.c + +../../../../../temp/cmd/ta_HT_DCPHASE.o: ../../../../../src/ta_func/ta_HT_DCPHASE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_HT_DCPHASE.o ../../../../../src/ta_func/ta_HT_DCPHASE.c + +../../../../../temp/cmd/ta_HT_PHASOR.o: ../../../../../src/ta_func/ta_HT_PHASOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_HT_PHASOR.o ../../../../../src/ta_func/ta_HT_PHASOR.c + +../../../../../temp/cmd/ta_HT_SINE.o: ../../../../../src/ta_func/ta_HT_SINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_HT_SINE.o ../../../../../src/ta_func/ta_HT_SINE.c + +../../../../../temp/cmd/ta_HT_TRENDLINE.o: ../../../../../src/ta_func/ta_HT_TRENDLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_HT_TRENDLINE.o ../../../../../src/ta_func/ta_HT_TRENDLINE.c + +../../../../../temp/cmd/ta_HT_TRENDMODE.o: ../../../../../src/ta_func/ta_HT_TRENDMODE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_HT_TRENDMODE.o ../../../../../src/ta_func/ta_HT_TRENDMODE.c + +../../../../../temp/cmd/ta_KAMA.o: ../../../../../src/ta_func/ta_KAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_KAMA.o ../../../../../src/ta_func/ta_KAMA.c + +../../../../../temp/cmd/ta_LINEARREG.o: ../../../../../src/ta_func/ta_LINEARREG.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_LINEARREG.o ../../../../../src/ta_func/ta_LINEARREG.c + +../../../../../temp/cmd/ta_LINEARREG_ANGLE.o: ../../../../../src/ta_func/ta_LINEARREG_ANGLE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_LINEARREG_ANGLE.o ../../../../../src/ta_func/ta_LINEARREG_ANGLE.c + +../../../../../temp/cmd/ta_LINEARREG_INTERCEPT.o: ../../../../../src/ta_func/ta_LINEARREG_INTERCEPT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_LINEARREG_INTERCEPT.o ../../../../../src/ta_func/ta_LINEARREG_INTERCEPT.c + +../../../../../temp/cmd/ta_LINEARREG_SLOPE.o: ../../../../../src/ta_func/ta_LINEARREG_SLOPE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_LINEARREG_SLOPE.o ../../../../../src/ta_func/ta_LINEARREG_SLOPE.c + +../../../../../temp/cmd/ta_LN.o: ../../../../../src/ta_func/ta_LN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_LN.o ../../../../../src/ta_func/ta_LN.c + +../../../../../temp/cmd/ta_LOG10.o: ../../../../../src/ta_func/ta_LOG10.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_LOG10.o ../../../../../src/ta_func/ta_LOG10.c + +../../../../../temp/cmd/ta_MA.o: ../../../../../src/ta_func/ta_MA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_MA.o ../../../../../src/ta_func/ta_MA.c + +../../../../../temp/cmd/ta_MACD.o: ../../../../../src/ta_func/ta_MACD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_MACD.o ../../../../../src/ta_func/ta_MACD.c + +../../../../../temp/cmd/ta_MACDEXT.o: ../../../../../src/ta_func/ta_MACDEXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_MACDEXT.o ../../../../../src/ta_func/ta_MACDEXT.c + +../../../../../temp/cmd/ta_MACDFIX.o: ../../../../../src/ta_func/ta_MACDFIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_MACDFIX.o ../../../../../src/ta_func/ta_MACDFIX.c + +../../../../../temp/cmd/ta_MAMA.o: ../../../../../src/ta_func/ta_MAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_MAMA.o ../../../../../src/ta_func/ta_MAMA.c + +../../../../../temp/cmd/ta_MAVP.o: ../../../../../src/ta_func/ta_MAVP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_MAVP.o ../../../../../src/ta_func/ta_MAVP.c + +../../../../../temp/cmd/ta_MAX.o: ../../../../../src/ta_func/ta_MAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_MAX.o ../../../../../src/ta_func/ta_MAX.c + +../../../../../temp/cmd/ta_MAXINDEX.o: ../../../../../src/ta_func/ta_MAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_MAXINDEX.o ../../../../../src/ta_func/ta_MAXINDEX.c + +../../../../../temp/cmd/ta_MEDPRICE.o: ../../../../../src/ta_func/ta_MEDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_MEDPRICE.o ../../../../../src/ta_func/ta_MEDPRICE.c + +../../../../../temp/cmd/ta_MFI.o: ../../../../../src/ta_func/ta_MFI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_MFI.o ../../../../../src/ta_func/ta_MFI.c + +../../../../../temp/cmd/ta_MIDPOINT.o: ../../../../../src/ta_func/ta_MIDPOINT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_MIDPOINT.o ../../../../../src/ta_func/ta_MIDPOINT.c + +../../../../../temp/cmd/ta_MIDPRICE.o: ../../../../../src/ta_func/ta_MIDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_MIDPRICE.o ../../../../../src/ta_func/ta_MIDPRICE.c + +../../../../../temp/cmd/ta_MIN.o: ../../../../../src/ta_func/ta_MIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_MIN.o ../../../../../src/ta_func/ta_MIN.c + +../../../../../temp/cmd/ta_MININDEX.o: ../../../../../src/ta_func/ta_MININDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_MININDEX.o ../../../../../src/ta_func/ta_MININDEX.c + +../../../../../temp/cmd/ta_MINMAX.o: ../../../../../src/ta_func/ta_MINMAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_MINMAX.o ../../../../../src/ta_func/ta_MINMAX.c + +../../../../../temp/cmd/ta_MINMAXINDEX.o: ../../../../../src/ta_func/ta_MINMAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_MINMAXINDEX.o ../../../../../src/ta_func/ta_MINMAXINDEX.c + +../../../../../temp/cmd/ta_MINUS_DI.o: ../../../../../src/ta_func/ta_MINUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_MINUS_DI.o ../../../../../src/ta_func/ta_MINUS_DI.c + +../../../../../temp/cmd/ta_MINUS_DM.o: ../../../../../src/ta_func/ta_MINUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_MINUS_DM.o ../../../../../src/ta_func/ta_MINUS_DM.c + +../../../../../temp/cmd/ta_MOM.o: ../../../../../src/ta_func/ta_MOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_MOM.o ../../../../../src/ta_func/ta_MOM.c + +../../../../../temp/cmd/ta_MULT.o: ../../../../../src/ta_func/ta_MULT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_MULT.o ../../../../../src/ta_func/ta_MULT.c + +../../../../../temp/cmd/ta_NATR.o: ../../../../../src/ta_func/ta_NATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_NATR.o ../../../../../src/ta_func/ta_NATR.c + +../../../../../temp/cmd/ta_OBV.o: ../../../../../src/ta_func/ta_OBV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_OBV.o ../../../../../src/ta_func/ta_OBV.c + +../../../../../temp/cmd/ta_PLUS_DI.o: ../../../../../src/ta_func/ta_PLUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_PLUS_DI.o ../../../../../src/ta_func/ta_PLUS_DI.c + +../../../../../temp/cmd/ta_PLUS_DM.o: ../../../../../src/ta_func/ta_PLUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_PLUS_DM.o ../../../../../src/ta_func/ta_PLUS_DM.c + +../../../../../temp/cmd/ta_PPO.o: ../../../../../src/ta_func/ta_PPO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_PPO.o ../../../../../src/ta_func/ta_PPO.c + +../../../../../temp/cmd/ta_ROC.o: ../../../../../src/ta_func/ta_ROC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_ROC.o ../../../../../src/ta_func/ta_ROC.c + +../../../../../temp/cmd/ta_ROCP.o: ../../../../../src/ta_func/ta_ROCP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_ROCP.o ../../../../../src/ta_func/ta_ROCP.c + +../../../../../temp/cmd/ta_ROCR.o: ../../../../../src/ta_func/ta_ROCR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_ROCR.o ../../../../../src/ta_func/ta_ROCR.c + +../../../../../temp/cmd/ta_ROCR100.o: ../../../../../src/ta_func/ta_ROCR100.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_ROCR100.o ../../../../../src/ta_func/ta_ROCR100.c + +../../../../../temp/cmd/ta_RSI.o: ../../../../../src/ta_func/ta_RSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_RSI.o ../../../../../src/ta_func/ta_RSI.c + +../../../../../temp/cmd/ta_SAR.o: ../../../../../src/ta_func/ta_SAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_SAR.o ../../../../../src/ta_func/ta_SAR.c + +../../../../../temp/cmd/ta_SAREXT.o: ../../../../../src/ta_func/ta_SAREXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_SAREXT.o ../../../../../src/ta_func/ta_SAREXT.c + +../../../../../temp/cmd/ta_SIN.o: ../../../../../src/ta_func/ta_SIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_SIN.o ../../../../../src/ta_func/ta_SIN.c + +../../../../../temp/cmd/ta_SINH.o: ../../../../../src/ta_func/ta_SINH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_SINH.o ../../../../../src/ta_func/ta_SINH.c + +../../../../../temp/cmd/ta_SMA.o: ../../../../../src/ta_func/ta_SMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_SMA.o ../../../../../src/ta_func/ta_SMA.c + +../../../../../temp/cmd/ta_SQRT.o: ../../../../../src/ta_func/ta_SQRT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_SQRT.o ../../../../../src/ta_func/ta_SQRT.c + +../../../../../temp/cmd/ta_STDDEV.o: ../../../../../src/ta_func/ta_STDDEV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_STDDEV.o ../../../../../src/ta_func/ta_STDDEV.c + +../../../../../temp/cmd/ta_STOCH.o: ../../../../../src/ta_func/ta_STOCH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_STOCH.o ../../../../../src/ta_func/ta_STOCH.c + +../../../../../temp/cmd/ta_STOCHF.o: ../../../../../src/ta_func/ta_STOCHF.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_STOCHF.o ../../../../../src/ta_func/ta_STOCHF.c + +../../../../../temp/cmd/ta_STOCHRSI.o: ../../../../../src/ta_func/ta_STOCHRSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_STOCHRSI.o ../../../../../src/ta_func/ta_STOCHRSI.c + +../../../../../temp/cmd/ta_SUB.o: ../../../../../src/ta_func/ta_SUB.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_SUB.o ../../../../../src/ta_func/ta_SUB.c + +../../../../../temp/cmd/ta_SUM.o: ../../../../../src/ta_func/ta_SUM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_SUM.o ../../../../../src/ta_func/ta_SUM.c + +../../../../../temp/cmd/ta_T3.o: ../../../../../src/ta_func/ta_T3.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_T3.o ../../../../../src/ta_func/ta_T3.c + +../../../../../temp/cmd/ta_TAN.o: ../../../../../src/ta_func/ta_TAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_TAN.o ../../../../../src/ta_func/ta_TAN.c + +../../../../../temp/cmd/ta_TANH.o: ../../../../../src/ta_func/ta_TANH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_TANH.o ../../../../../src/ta_func/ta_TANH.c + +../../../../../temp/cmd/ta_TEMA.o: ../../../../../src/ta_func/ta_TEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_TEMA.o ../../../../../src/ta_func/ta_TEMA.c + +../../../../../temp/cmd/ta_TRANGE.o: ../../../../../src/ta_func/ta_TRANGE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_TRANGE.o ../../../../../src/ta_func/ta_TRANGE.c + +../../../../../temp/cmd/ta_TRIMA.o: ../../../../../src/ta_func/ta_TRIMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_TRIMA.o ../../../../../src/ta_func/ta_TRIMA.c + +../../../../../temp/cmd/ta_TRIX.o: ../../../../../src/ta_func/ta_TRIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_TRIX.o ../../../../../src/ta_func/ta_TRIX.c + +../../../../../temp/cmd/ta_TSF.o: ../../../../../src/ta_func/ta_TSF.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_TSF.o ../../../../../src/ta_func/ta_TSF.c + +../../../../../temp/cmd/ta_TYPPRICE.o: ../../../../../src/ta_func/ta_TYPPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_TYPPRICE.o ../../../../../src/ta_func/ta_TYPPRICE.c + +../../../../../temp/cmd/ta_ULTOSC.o: ../../../../../src/ta_func/ta_ULTOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_ULTOSC.o ../../../../../src/ta_func/ta_ULTOSC.c + +../../../../../temp/cmd/ta_VAR.o: ../../../../../src/ta_func/ta_VAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_VAR.o ../../../../../src/ta_func/ta_VAR.c + +../../../../../temp/cmd/ta_WCLPRICE.o: ../../../../../src/ta_func/ta_WCLPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_WCLPRICE.o ../../../../../src/ta_func/ta_WCLPRICE.c + +../../../../../temp/cmd/ta_WILLR.o: ../../../../../src/ta_func/ta_WILLR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_WILLR.o ../../../../../src/ta_func/ta_WILLR.c + +../../../../../temp/cmd/ta_WMA.o: ../../../../../src/ta_func/ta_WMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_WMA.o ../../../../../src/ta_func/ta_WMA.c + diff --git a/make/cmd/linux/g++/ta_regtest/Makefile b/make/cmd/linux/g++/ta_regtest/Makefile new file mode 100644 index 000000000..163ebd5c6 --- /dev/null +++ b/make/cmd/linux/g++/ta_regtest/Makefile @@ -0,0 +1,211 @@ +############################################################################# +# Makefile for building ../../../../../bin/ta_regtest +# Generated by tmake; +# Project: ta_regtest/ta_regtest +# Template: app +############################################################################# + +####### Compiler, tools and options + +CC = gcc +CXX = g++ +CFLAGS = -pipe -fPIC -Wall -W -g -D_REENTRANT -DTA_DEBUG -D_DEBUG -DQT_THREAD_SUPPORT +CXXFLAGS= -pipe -fPIC -Wall -W -g -D_REENTRANT -DTA_DEBUG -D_DEBUG -DQT_THREAD_SUPPORT +INCPATH = -I../../../../../src/ta_common -I../../../../../src/tools/ta_regtest -I../../../../../src/ta_func -I../../../../../include +LINK = g++ +LFLAGS = +LIBS = $(SUBLIBS) ../../../../../lib/libta_libc_cmd.a -ldl -lpthread +MOC = $(QTDIR)/bin/moc +UIC = $(QTDIR)/bin/uic + +TAR = tar -cf +GZIP = gzip -9f + +####### Support for 64-bit systems +ifeq ($(shell uname -m), x86_64) + CFLAGS += -march=x86-64 -m64 -D__64BIT__ + CXXFLAGS += -march=x86-64 -m64 -D__64BIT__ +endif + +####### Apply additional overruling user flags, if any +CFLAGS += $(CUSERFLAGS) +CXXFLAGS += $(CUSERFLAGS) + +####### Files + +HEADERS = +SOURCES = ../../../../../src/tools/ta_regtest/ta_regtest.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_candlestick.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_1in_1out.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_1in_2out.c \ + ../../../../../src/tools/ta_regtest/test_internals.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_adx.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_bbands.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_ma.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_macd.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_minmax.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_mom.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_per_ema.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hl.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hlc.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hlcv.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_per_ohlc.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_po.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_rsi.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_sar.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_stddev.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_stoch.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_trange.c \ + ../../../../../src/tools/ta_regtest/test_util.c \ + ../../../../../src/tools/ta_regtest/test_data.c \ + ../../../../../src/tools/ta_regtest/test_abstract.c +OBJECTS = ../../../../../temp/cmd/ta_regtest.o \ + ../../../../../temp/cmd/test_candlestick.o \ + ../../../../../temp/cmd/test_1in_1out.o \ + ../../../../../temp/cmd/test_1in_2out.o \ + ../../../../../temp/cmd/test_internals.o \ + ../../../../../temp/cmd/test_adx.o \ + ../../../../../temp/cmd/test_bbands.o \ + ../../../../../temp/cmd/test_ma.o \ + ../../../../../temp/cmd/test_macd.o \ + ../../../../../temp/cmd/test_minmax.o \ + ../../../../../temp/cmd/test_mom.o \ + ../../../../../temp/cmd/test_per_ema.o \ + ../../../../../temp/cmd/test_per_hl.o \ + ../../../../../temp/cmd/test_per_hlc.o \ + ../../../../../temp/cmd/test_per_hlcv.o \ + ../../../../../temp/cmd/test_per_ohlc.o \ + ../../../../../temp/cmd/test_po.o \ + ../../../../../temp/cmd/test_rsi.o \ + ../../../../../temp/cmd/test_sar.o \ + ../../../../../temp/cmd/test_stddev.o \ + ../../../../../temp/cmd/test_stoch.o \ + ../../../../../temp/cmd/test_trange.o \ + ../../../../../temp/cmd/test_util.o \ + ../../../../../temp/cmd/test_data.o \ + ../../../../../temp/cmd/test_abstract.o +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ../../../../../bin/ta_regtest +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .C .c + +.cpp.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cxx.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cc.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.C.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.c.o: + $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $< + +####### Build rules + + +all: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS) + +moc: $(SRCMOC) + +clean: + -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) + -rm -f *~ core + +####### Sub-libraries + + +###### Combined headers + + +####### Compile + +../../../../../temp/cmd/ta_regtest.o: ../../../../../src/tools/ta_regtest/ta_regtest.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/ta_regtest.o ../../../../../src/tools/ta_regtest/ta_regtest.c + +../../../../../temp/cmd/test_candlestick.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_candlestick.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/test_candlestick.o ../../../../../src/tools/ta_regtest/ta_test_func/test_candlestick.c + +../../../../../temp/cmd/test_1in_1out.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_1in_1out.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/test_1in_1out.o ../../../../../src/tools/ta_regtest/ta_test_func/test_1in_1out.c + +../../../../../temp/cmd/test_1in_2out.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_1in_2out.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/test_1in_2out.o ../../../../../src/tools/ta_regtest/ta_test_func/test_1in_2out.c + +../../../../../temp/cmd/test_internals.o: ../../../../../src/tools/ta_regtest/test_internals.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/test_internals.o ../../../../../src/tools/ta_regtest/test_internals.c + +../../../../../temp/cmd/test_adx.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_adx.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/test_adx.o ../../../../../src/tools/ta_regtest/ta_test_func/test_adx.c + +../../../../../temp/cmd/test_bbands.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_bbands.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/test_bbands.o ../../../../../src/tools/ta_regtest/ta_test_func/test_bbands.c + +../../../../../temp/cmd/test_ma.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_ma.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/test_ma.o ../../../../../src/tools/ta_regtest/ta_test_func/test_ma.c + +../../../../../temp/cmd/test_macd.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_macd.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/test_macd.o ../../../../../src/tools/ta_regtest/ta_test_func/test_macd.c + +../../../../../temp/cmd/test_minmax.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_minmax.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/test_minmax.o ../../../../../src/tools/ta_regtest/ta_test_func/test_minmax.c + +../../../../../temp/cmd/test_mom.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_mom.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/test_mom.o ../../../../../src/tools/ta_regtest/ta_test_func/test_mom.c + +../../../../../temp/cmd/test_per_ema.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_per_ema.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/test_per_ema.o ../../../../../src/tools/ta_regtest/ta_test_func/test_per_ema.c + +../../../../../temp/cmd/test_per_hl.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hl.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/test_per_hl.o ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hl.c + +../../../../../temp/cmd/test_per_hlc.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hlc.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/test_per_hlc.o ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hlc.c + +../../../../../temp/cmd/test_per_hlcv.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hlcv.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/test_per_hlcv.o ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hlcv.c + +../../../../../temp/cmd/test_per_ohlc.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_per_ohlc.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/test_per_ohlc.o ../../../../../src/tools/ta_regtest/ta_test_func/test_per_ohlc.c + +../../../../../temp/cmd/test_po.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_po.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/test_po.o ../../../../../src/tools/ta_regtest/ta_test_func/test_po.c + +../../../../../temp/cmd/test_rsi.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_rsi.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/test_rsi.o ../../../../../src/tools/ta_regtest/ta_test_func/test_rsi.c + +../../../../../temp/cmd/test_sar.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_sar.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/test_sar.o ../../../../../src/tools/ta_regtest/ta_test_func/test_sar.c + +../../../../../temp/cmd/test_stddev.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_stddev.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/test_stddev.o ../../../../../src/tools/ta_regtest/ta_test_func/test_stddev.c + +../../../../../temp/cmd/test_stoch.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_stoch.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/test_stoch.o ../../../../../src/tools/ta_regtest/ta_test_func/test_stoch.c + +../../../../../temp/cmd/test_trange.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_trange.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/test_trange.o ../../../../../src/tools/ta_regtest/ta_test_func/test_trange.c + +../../../../../temp/cmd/test_util.o: ../../../../../src/tools/ta_regtest/test_util.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/test_util.o ../../../../../src/tools/ta_regtest/test_util.c + +../../../../../temp/cmd/test_data.o: ../../../../../src/tools/ta_regtest/test_data.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/test_data.o ../../../../../src/tools/ta_regtest/test_data.c + +../../../../../temp/cmd/test_abstract.o: ../../../../../src/tools/ta_regtest/test_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmd/test_abstract.o ../../../../../src/tools/ta_regtest/test_abstract.c + diff --git a/make/cmd/win32/borland/Makefile b/make/cmd/win32/borland/Makefile new file mode 100644 index 000000000..4e18860b0 --- /dev/null +++ b/make/cmd/win32/borland/Makefile @@ -0,0 +1,96 @@ +############################################################################# +# Makefile for building targets in sub directories. +# Generated by tmake; +# Project: rootmake +# Template: subdirs +############################################################################# + +MAKEFILE= Makefile +TMAKE = tmake + +SUBDIRS = ta_common \ + ta_func \ + ta_abstract \ + ta_libc \ + gen_code \ + ta_regtest + +all: $(SUBDIRS) + +ta_common: + cd ta_common + $(MAKE) + @cd .. + +ta_func: + cd ta_func + $(MAKE) + @cd .. + +ta_abstract: + cd ta_abstract + $(MAKE) + @cd .. + +ta_libc: + cd ta_libc + $(MAKE) + @cd .. + +gen_code: + cd gen_code + $(MAKE) + @cd .. + +ta_regtest: + cd ta_regtest + $(MAKE) + @cd .. + + +tmake: ../cmd/win32/borland/Makefile + +../cmd/win32/borland/Makefile: rootmake.pro + tmake rootmake.pro -o ../cmd/win32/borland/Makefile + +tmake_all: + cd ta_common + $(TMAKE) ta_common.pro -o $(MAKEFILE) + @cd .. + cd ta_func + $(TMAKE) ta_func.pro -o $(MAKEFILE) + @cd .. + cd ta_abstract + $(TMAKE) ta_abstract.pro -o $(MAKEFILE) + @cd .. + cd ta_libc + $(TMAKE) ta_libc.pro -o $(MAKEFILE) + @cd .. + cd gen_code + $(TMAKE) gen_code.pro -o $(MAKEFILE) + @cd .. + cd ta_regtest + $(TMAKE) ta_regtest.pro -o $(MAKEFILE) + @cd .. + + +clean: + cd ta_common + $(MAKE) clean + @cd .. + cd ta_func + $(MAKE) clean + @cd .. + cd ta_abstract + $(MAKE) clean + @cd .. + cd ta_libc + $(MAKE) clean + @cd .. + cd gen_code + $(MAKE) clean + @cd .. + cd ta_regtest + $(MAKE) clean + @cd .. + diff --git a/make/cmd/win32/borland/gen_code/Makefile b/make/cmd/win32/borland/gen_code/Makefile new file mode 100644 index 000000000..6a7a2576f --- /dev/null +++ b/make/cmd/win32/borland/gen_code/Makefile @@ -0,0 +1,267 @@ +############################################################################# +# Makefile for building gen_code +# Generated by tmake; +# Project: gen_code/gen_code +# Template: app +############################################################################# + +!if !$d(BCB) +BCB = $(MAKEDIR)\.. +!endif + +####### Compiler, tools and options + +CC = bcc32 +CXX = bcc32 +CFLAGS = -x- -RT- -tWR -w -w-8004 -w-8071 -w-8057 -w-8080 -tWM -DTA_GEN_CODE -DTA_DEBUG -D_DEBUG -DWIN32 -DQT_THREAD_SUPPORT +CXXFLAGS= -x- -RT- -tWR -w -w-8004 -w-8071 -w-8057 -w-8080 -tWM -DTA_GEN_CODE -DTA_DEBUG -D_DEBUG -DWIN32 -DQT_THREAD_SUPPORT +INCPATH = -I"..\..\..\..\..\include" -I"..\..\..\..\..\src\ta_common" -I"..\..\..\..\..\src\ta_abstract" -I"..\..\..\..\..\src\ta_abstract\tables" -I"..\..\..\..\..\src\ta_abstract\frames" +LINK = ilink32 +LFLAGS = -L$(BCB)\lib -L$(BCB)\lib\PSDK -c -x -Gn -v -ap -Tpe c0x32.obj +LIBS = import32.lib cw32mti.lib ..\..\..\..\..\lib\ta_common_cmd.lib +MOC = moc +UIC = uic + +ZIP = zip -r -9 +DEF_FILE = +RES_FILE = + +####### Files + +HEADERS = +SOURCES = ..\..\..\..\..\src\tools\gen_code\gen_code.c \ + ..\..\..\..\..\src\ta_abstract\ta_abstract.c \ + ..\..\..\..\..\src\ta_abstract\ta_def_ui.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_a.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_b.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_c.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_d.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_e.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_f.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_g.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_h.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_i.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_j.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_k.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_l.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_m.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_n.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_o.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_p.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_q.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_r.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_s.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_t.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_u.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_v.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_w.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_x.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_y.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_z.c +OBJECTS = ..\..\..\..\..\temp\cmd\gen_code\gen_code.obj \ + ..\..\..\..\..\temp\cmd\gen_code\ta_abstract.obj \ + ..\..\..\..\..\temp\cmd\gen_code\ta_def_ui.obj \ + ..\..\..\..\..\temp\cmd\gen_code\table_a.obj \ + ..\..\..\..\..\temp\cmd\gen_code\table_b.obj \ + ..\..\..\..\..\temp\cmd\gen_code\table_c.obj \ + ..\..\..\..\..\temp\cmd\gen_code\table_d.obj \ + ..\..\..\..\..\temp\cmd\gen_code\table_e.obj \ + ..\..\..\..\..\temp\cmd\gen_code\table_f.obj \ + ..\..\..\..\..\temp\cmd\gen_code\table_g.obj \ + ..\..\..\..\..\temp\cmd\gen_code\table_h.obj \ + ..\..\..\..\..\temp\cmd\gen_code\table_i.obj \ + ..\..\..\..\..\temp\cmd\gen_code\table_j.obj \ + ..\..\..\..\..\temp\cmd\gen_code\table_k.obj \ + ..\..\..\..\..\temp\cmd\gen_code\table_l.obj \ + ..\..\..\..\..\temp\cmd\gen_code\table_m.obj \ + ..\..\..\..\..\temp\cmd\gen_code\table_n.obj \ + ..\..\..\..\..\temp\cmd\gen_code\table_o.obj \ + ..\..\..\..\..\temp\cmd\gen_code\table_p.obj \ + ..\..\..\..\..\temp\cmd\gen_code\table_q.obj \ + ..\..\..\..\..\temp\cmd\gen_code\table_r.obj \ + ..\..\..\..\..\temp\cmd\gen_code\table_s.obj \ + ..\..\..\..\..\temp\cmd\gen_code\table_t.obj \ + ..\..\..\..\..\temp\cmd\gen_code\table_u.obj \ + ..\..\..\..\..\temp\cmd\gen_code\table_v.obj \ + ..\..\..\..\..\temp\cmd\gen_code\table_w.obj \ + ..\..\..\..\..\temp\cmd\gen_code\table_x.obj \ + ..\..\..\..\..\temp\cmd\gen_code\table_y.obj \ + ..\..\..\..\..\temp\cmd\gen_code\table_z.obj +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ..\..\..\..\..\bin\gen_code.exe +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .c + +.cpp.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.cxx.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.cc.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.c.obj: + $(CC) -c $(CFLAGS) $(INCPATH) -o$@ $< + +####### Build rules + +all: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + $(LINK) @&&| + $(LFLAGS) $(OBJECTS) $(OBJMOC),$(TARGET),,$(LIBS),$(DEF_FILE),$(RES_FILE) +| + +moc: $(SRCMOC) + +tmake: ../cmd/win32/borland/gen_code/Makefile + +../cmd/win32/borland/gen_code/Makefile: gen_code/gen_code.pro + tmake gen_code/gen_code.pro -o ../cmd/win32/borland/gen_code/Makefile + +dist: + $(ZIP) gen_code/gen_code.zip gen_code/gen_code.pro $(SOURCES) $(HEADERS) $(DIST) + +clean: + -del ..\..\..\..\..\temp\cmd\gen_code\gen_code.obj + -del ..\..\..\..\..\temp\cmd\gen_code\ta_abstract.obj + -del ..\..\..\..\..\temp\cmd\gen_code\ta_def_ui.obj + -del ..\..\..\..\..\temp\cmd\gen_code\table_a.obj + -del ..\..\..\..\..\temp\cmd\gen_code\table_b.obj + -del ..\..\..\..\..\temp\cmd\gen_code\table_c.obj + -del ..\..\..\..\..\temp\cmd\gen_code\table_d.obj + -del ..\..\..\..\..\temp\cmd\gen_code\table_e.obj + -del ..\..\..\..\..\temp\cmd\gen_code\table_f.obj + -del ..\..\..\..\..\temp\cmd\gen_code\table_g.obj + -del ..\..\..\..\..\temp\cmd\gen_code\table_h.obj + -del ..\..\..\..\..\temp\cmd\gen_code\table_i.obj + -del ..\..\..\..\..\temp\cmd\gen_code\table_j.obj + -del ..\..\..\..\..\temp\cmd\gen_code\table_k.obj + -del ..\..\..\..\..\temp\cmd\gen_code\table_l.obj + -del ..\..\..\..\..\temp\cmd\gen_code\table_m.obj + -del ..\..\..\..\..\temp\cmd\gen_code\table_n.obj + -del ..\..\..\..\..\temp\cmd\gen_code\table_o.obj + -del ..\..\..\..\..\temp\cmd\gen_code\table_p.obj + -del ..\..\..\..\..\temp\cmd\gen_code\table_q.obj + -del ..\..\..\..\..\temp\cmd\gen_code\table_r.obj + -del ..\..\..\..\..\temp\cmd\gen_code\table_s.obj + -del ..\..\..\..\..\temp\cmd\gen_code\table_t.obj + -del ..\..\..\..\..\temp\cmd\gen_code\table_u.obj + -del ..\..\..\..\..\temp\cmd\gen_code\table_v.obj + -del ..\..\..\..\..\temp\cmd\gen_code\table_w.obj + -del ..\..\..\..\..\temp\cmd\gen_code\table_x.obj + -del ..\..\..\..\..\temp\cmd\gen_code\table_y.obj + -del ..\..\..\..\..\temp\cmd\gen_code\table_z.obj + -del $(TARGET) + -del gen_code.tds + -del ../../../../../bin/*.map + -del ../../../../../bin/*._xe + -del ../../../../../bin/*.tds + -del ../../../../../bin/*.pdb + -del ../../../../../bin/*.pbo + -del ../../../../../bin/*.pbi + -del ../../../../../bin/*.pbt + -del ../../../../../temp/cmd/*.pch + -del ../../../../../temp/cmd/*.idb + -del ../../../../../temp/cmd/gen_code/*.pch + -del ../../../../../temp/cmd/gen_code/*.idb + -del ../../../../../temp/cmd/gen_code/*.obj + +####### Compile + +..\..\..\..\..\temp\cmd\gen_code\gen_code.obj: ..\..\..\..\..\src\tools\gen_code\gen_code.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\gen_code\gen_code.obj ..\..\..\..\..\src\tools\gen_code\gen_code.c + +..\..\..\..\..\temp\cmd\gen_code\ta_abstract.obj: ..\..\..\..\..\src\ta_abstract\ta_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\gen_code\ta_abstract.obj ..\..\..\..\..\src\ta_abstract\ta_abstract.c + +..\..\..\..\..\temp\cmd\gen_code\ta_def_ui.obj: ..\..\..\..\..\src\ta_abstract\ta_def_ui.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\gen_code\ta_def_ui.obj ..\..\..\..\..\src\ta_abstract\ta_def_ui.c + +..\..\..\..\..\temp\cmd\gen_code\table_a.obj: ..\..\..\..\..\src\ta_abstract\tables\table_a.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\gen_code\table_a.obj ..\..\..\..\..\src\ta_abstract\tables\table_a.c + +..\..\..\..\..\temp\cmd\gen_code\table_b.obj: ..\..\..\..\..\src\ta_abstract\tables\table_b.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\gen_code\table_b.obj ..\..\..\..\..\src\ta_abstract\tables\table_b.c + +..\..\..\..\..\temp\cmd\gen_code\table_c.obj: ..\..\..\..\..\src\ta_abstract\tables\table_c.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\gen_code\table_c.obj ..\..\..\..\..\src\ta_abstract\tables\table_c.c + +..\..\..\..\..\temp\cmd\gen_code\table_d.obj: ..\..\..\..\..\src\ta_abstract\tables\table_d.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\gen_code\table_d.obj ..\..\..\..\..\src\ta_abstract\tables\table_d.c + +..\..\..\..\..\temp\cmd\gen_code\table_e.obj: ..\..\..\..\..\src\ta_abstract\tables\table_e.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\gen_code\table_e.obj ..\..\..\..\..\src\ta_abstract\tables\table_e.c + +..\..\..\..\..\temp\cmd\gen_code\table_f.obj: ..\..\..\..\..\src\ta_abstract\tables\table_f.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\gen_code\table_f.obj ..\..\..\..\..\src\ta_abstract\tables\table_f.c + +..\..\..\..\..\temp\cmd\gen_code\table_g.obj: ..\..\..\..\..\src\ta_abstract\tables\table_g.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\gen_code\table_g.obj ..\..\..\..\..\src\ta_abstract\tables\table_g.c + +..\..\..\..\..\temp\cmd\gen_code\table_h.obj: ..\..\..\..\..\src\ta_abstract\tables\table_h.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\gen_code\table_h.obj ..\..\..\..\..\src\ta_abstract\tables\table_h.c + +..\..\..\..\..\temp\cmd\gen_code\table_i.obj: ..\..\..\..\..\src\ta_abstract\tables\table_i.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\gen_code\table_i.obj ..\..\..\..\..\src\ta_abstract\tables\table_i.c + +..\..\..\..\..\temp\cmd\gen_code\table_j.obj: ..\..\..\..\..\src\ta_abstract\tables\table_j.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\gen_code\table_j.obj ..\..\..\..\..\src\ta_abstract\tables\table_j.c + +..\..\..\..\..\temp\cmd\gen_code\table_k.obj: ..\..\..\..\..\src\ta_abstract\tables\table_k.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\gen_code\table_k.obj ..\..\..\..\..\src\ta_abstract\tables\table_k.c + +..\..\..\..\..\temp\cmd\gen_code\table_l.obj: ..\..\..\..\..\src\ta_abstract\tables\table_l.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\gen_code\table_l.obj ..\..\..\..\..\src\ta_abstract\tables\table_l.c + +..\..\..\..\..\temp\cmd\gen_code\table_m.obj: ..\..\..\..\..\src\ta_abstract\tables\table_m.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\gen_code\table_m.obj ..\..\..\..\..\src\ta_abstract\tables\table_m.c + +..\..\..\..\..\temp\cmd\gen_code\table_n.obj: ..\..\..\..\..\src\ta_abstract\tables\table_n.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\gen_code\table_n.obj ..\..\..\..\..\src\ta_abstract\tables\table_n.c + +..\..\..\..\..\temp\cmd\gen_code\table_o.obj: ..\..\..\..\..\src\ta_abstract\tables\table_o.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\gen_code\table_o.obj ..\..\..\..\..\src\ta_abstract\tables\table_o.c + +..\..\..\..\..\temp\cmd\gen_code\table_p.obj: ..\..\..\..\..\src\ta_abstract\tables\table_p.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\gen_code\table_p.obj ..\..\..\..\..\src\ta_abstract\tables\table_p.c + +..\..\..\..\..\temp\cmd\gen_code\table_q.obj: ..\..\..\..\..\src\ta_abstract\tables\table_q.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\gen_code\table_q.obj ..\..\..\..\..\src\ta_abstract\tables\table_q.c + +..\..\..\..\..\temp\cmd\gen_code\table_r.obj: ..\..\..\..\..\src\ta_abstract\tables\table_r.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\gen_code\table_r.obj ..\..\..\..\..\src\ta_abstract\tables\table_r.c + +..\..\..\..\..\temp\cmd\gen_code\table_s.obj: ..\..\..\..\..\src\ta_abstract\tables\table_s.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\gen_code\table_s.obj ..\..\..\..\..\src\ta_abstract\tables\table_s.c + +..\..\..\..\..\temp\cmd\gen_code\table_t.obj: ..\..\..\..\..\src\ta_abstract\tables\table_t.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\gen_code\table_t.obj ..\..\..\..\..\src\ta_abstract\tables\table_t.c + +..\..\..\..\..\temp\cmd\gen_code\table_u.obj: ..\..\..\..\..\src\ta_abstract\tables\table_u.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\gen_code\table_u.obj ..\..\..\..\..\src\ta_abstract\tables\table_u.c + +..\..\..\..\..\temp\cmd\gen_code\table_v.obj: ..\..\..\..\..\src\ta_abstract\tables\table_v.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\gen_code\table_v.obj ..\..\..\..\..\src\ta_abstract\tables\table_v.c + +..\..\..\..\..\temp\cmd\gen_code\table_w.obj: ..\..\..\..\..\src\ta_abstract\tables\table_w.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\gen_code\table_w.obj ..\..\..\..\..\src\ta_abstract\tables\table_w.c + +..\..\..\..\..\temp\cmd\gen_code\table_x.obj: ..\..\..\..\..\src\ta_abstract\tables\table_x.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\gen_code\table_x.obj ..\..\..\..\..\src\ta_abstract\tables\table_x.c + +..\..\..\..\..\temp\cmd\gen_code\table_y.obj: ..\..\..\..\..\src\ta_abstract\tables\table_y.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\gen_code\table_y.obj ..\..\..\..\..\src\ta_abstract\tables\table_y.c + +..\..\..\..\..\temp\cmd\gen_code\table_z.obj: ..\..\..\..\..\src\ta_abstract\tables\table_z.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\gen_code\table_z.obj ..\..\..\..\..\src\ta_abstract\tables\table_z.c + diff --git a/make/cmd/win32/borland/ta_abstract/Makefile b/make/cmd/win32/borland/ta_abstract/Makefile new file mode 100644 index 000000000..82d47caa5 --- /dev/null +++ b/make/cmd/win32/borland/ta_abstract/Makefile @@ -0,0 +1,309 @@ +############################################################################# +# Makefile for building ta_abstract_cmd +# Generated by tmake; +# Project: ta_abstract/ta_abstract +# Template: lib +############################################################################# + +!if !$d(BCB) +BCB = $(MAKEDIR)\.. +!endif + +####### Compiler, tools and options + +CC = bcc32 +CXX = bcc32 +CFLAGS = -x- -RT- -tWR -w -w-8004 -w-8071 -w-8057 -w-8080 -tWM -DTA_DEBUG -D_DEBUG -DWIN32 -DQT_THREAD_SUPPORT +CXXFLAGS= -x- -RT- -tWR -w -w-8004 -w-8071 -w-8057 -w-8080 -tWM -DTA_DEBUG -D_DEBUG -DWIN32 -DQT_THREAD_SUPPORT +INCPATH = -I"..\..\..\..\..\src\ta_common" -I"..\..\..\..\..\src\ta_abstract" -I"..\..\..\..\..\src\ta_abstract\tables" -I"..\..\..\..\..\src\ta_abstract\frames" -I"..\..\..\..\..\include" +LIB = tlib /C /P256 +MOC = moc +UIC = uic + +ZIP = zip -r -9 +DEF_FILE = +RES_FILE = + +####### Files + +HEADERS = +SOURCES = ..\..\..\..\..\src\ta_abstract\ta_abstract.c \ + ..\..\..\..\..\src\ta_abstract\ta_def_ui.c \ + ..\..\..\..\..\src\ta_abstract\ta_func_api.c \ + ..\..\..\..\..\src\ta_abstract\ta_group_idx.c \ + ..\..\..\..\..\src\ta_abstract\frames\ta_frame.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_a.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_b.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_c.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_d.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_e.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_f.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_g.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_h.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_i.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_j.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_k.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_l.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_m.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_n.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_o.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_p.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_q.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_r.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_s.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_t.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_u.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_v.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_w.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_x.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_y.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_z.c +OBJECTS = ..\..\..\..\..\temp\cmd\ta_abstract.obj \ + ..\..\..\..\..\temp\cmd\ta_def_ui.obj \ + ..\..\..\..\..\temp\cmd\ta_func_api.obj \ + ..\..\..\..\..\temp\cmd\ta_group_idx.obj \ + ..\..\..\..\..\temp\cmd\ta_frame.obj \ + ..\..\..\..\..\temp\cmd\table_a.obj \ + ..\..\..\..\..\temp\cmd\table_b.obj \ + ..\..\..\..\..\temp\cmd\table_c.obj \ + ..\..\..\..\..\temp\cmd\table_d.obj \ + ..\..\..\..\..\temp\cmd\table_e.obj \ + ..\..\..\..\..\temp\cmd\table_f.obj \ + ..\..\..\..\..\temp\cmd\table_g.obj \ + ..\..\..\..\..\temp\cmd\table_h.obj \ + ..\..\..\..\..\temp\cmd\table_i.obj \ + ..\..\..\..\..\temp\cmd\table_j.obj \ + ..\..\..\..\..\temp\cmd\table_k.obj \ + ..\..\..\..\..\temp\cmd\table_l.obj \ + ..\..\..\..\..\temp\cmd\table_m.obj \ + ..\..\..\..\..\temp\cmd\table_n.obj \ + ..\..\..\..\..\temp\cmd\table_o.obj \ + ..\..\..\..\..\temp\cmd\table_p.obj \ + ..\..\..\..\..\temp\cmd\table_q.obj \ + ..\..\..\..\..\temp\cmd\table_r.obj \ + ..\..\..\..\..\temp\cmd\table_s.obj \ + ..\..\..\..\..\temp\cmd\table_t.obj \ + ..\..\..\..\..\temp\cmd\table_u.obj \ + ..\..\..\..\..\temp\cmd\table_v.obj \ + ..\..\..\..\..\temp\cmd\table_w.obj \ + ..\..\..\..\..\temp\cmd\table_x.obj \ + ..\..\..\..\..\temp\cmd\table_y.obj \ + ..\..\..\..\..\temp\cmd\table_z.obj +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ..\..\..\..\..\lib\ta_abstract_cmd.lib +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .c + +.cpp.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.cxx.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.cc.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.c.obj: + $(CC) -c $(CFLAGS) $(INCPATH) -o$@ $< + +####### Build rules + +all: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + -del $(TARGET) + $(LIB) $(TARGET) @&&| ++..\..\..\..\..\temp\cmd\ta_abstract.obj \ ++..\..\..\..\..\temp\cmd\ta_def_ui.obj \ ++..\..\..\..\..\temp\cmd\ta_func_api.obj \ ++..\..\..\..\..\temp\cmd\ta_group_idx.obj \ ++..\..\..\..\..\temp\cmd\ta_frame.obj \ ++..\..\..\..\..\temp\cmd\table_a.obj \ ++..\..\..\..\..\temp\cmd\table_b.obj \ ++..\..\..\..\..\temp\cmd\table_c.obj \ ++..\..\..\..\..\temp\cmd\table_d.obj \ ++..\..\..\..\..\temp\cmd\table_e.obj \ ++..\..\..\..\..\temp\cmd\table_f.obj \ ++..\..\..\..\..\temp\cmd\table_g.obj \ ++..\..\..\..\..\temp\cmd\table_h.obj \ ++..\..\..\..\..\temp\cmd\table_i.obj \ ++..\..\..\..\..\temp\cmd\table_j.obj \ ++..\..\..\..\..\temp\cmd\table_k.obj \ ++..\..\..\..\..\temp\cmd\table_l.obj \ ++..\..\..\..\..\temp\cmd\table_m.obj \ ++..\..\..\..\..\temp\cmd\table_n.obj \ ++..\..\..\..\..\temp\cmd\table_o.obj \ ++..\..\..\..\..\temp\cmd\table_p.obj \ ++..\..\..\..\..\temp\cmd\table_q.obj \ ++..\..\..\..\..\temp\cmd\table_r.obj \ ++..\..\..\..\..\temp\cmd\table_s.obj \ ++..\..\..\..\..\temp\cmd\table_t.obj \ ++..\..\..\..\..\temp\cmd\table_u.obj \ ++..\..\..\..\..\temp\cmd\table_v.obj \ ++..\..\..\..\..\temp\cmd\table_w.obj \ ++..\..\..\..\..\temp\cmd\table_x.obj \ ++..\..\..\..\..\temp\cmd\table_y.obj \ ++..\..\..\..\..\temp\cmd\table_z.obj \ ++ +| + +moc: $(SRCMOC) + +tmake: ../cmd/win32/borland/ta_abstract/Makefile + +../cmd/win32/borland/ta_abstract/Makefile: ta_abstract/ta_abstract.pro + tmake ta_abstract/ta_abstract.pro -o ../cmd/win32/borland/ta_abstract/Makefile + +dist: + $(ZIP) ta_abstract/ta_abstract.zip ta_abstract/ta_abstract.pro $(SOURCES) $(HEADERS) $(DIST) + +clean: + -del ..\..\..\..\..\temp\cmd\ta_abstract.obj + -del ..\..\..\..\..\temp\cmd\ta_def_ui.obj + -del ..\..\..\..\..\temp\cmd\ta_func_api.obj + -del ..\..\..\..\..\temp\cmd\ta_group_idx.obj + -del ..\..\..\..\..\temp\cmd\ta_frame.obj + -del ..\..\..\..\..\temp\cmd\table_a.obj + -del ..\..\..\..\..\temp\cmd\table_b.obj + -del ..\..\..\..\..\temp\cmd\table_c.obj + -del ..\..\..\..\..\temp\cmd\table_d.obj + -del ..\..\..\..\..\temp\cmd\table_e.obj + -del ..\..\..\..\..\temp\cmd\table_f.obj + -del ..\..\..\..\..\temp\cmd\table_g.obj + -del ..\..\..\..\..\temp\cmd\table_h.obj + -del ..\..\..\..\..\temp\cmd\table_i.obj + -del ..\..\..\..\..\temp\cmd\table_j.obj + -del ..\..\..\..\..\temp\cmd\table_k.obj + -del ..\..\..\..\..\temp\cmd\table_l.obj + -del ..\..\..\..\..\temp\cmd\table_m.obj + -del ..\..\..\..\..\temp\cmd\table_n.obj + -del ..\..\..\..\..\temp\cmd\table_o.obj + -del ..\..\..\..\..\temp\cmd\table_p.obj + -del ..\..\..\..\..\temp\cmd\table_q.obj + -del ..\..\..\..\..\temp\cmd\table_r.obj + -del ..\..\..\..\..\temp\cmd\table_s.obj + -del ..\..\..\..\..\temp\cmd\table_t.obj + -del ..\..\..\..\..\temp\cmd\table_u.obj + -del ..\..\..\..\..\temp\cmd\table_v.obj + -del ..\..\..\..\..\temp\cmd\table_w.obj + -del ..\..\..\..\..\temp\cmd\table_x.obj + -del ..\..\..\..\..\temp\cmd\table_y.obj + -del ..\..\..\..\..\temp\cmd\table_z.obj + -del $(TARGET) + -del ta_abstract_cmd.tds + -del ../../../../../bin/*.map + -del ../../../../../bin/*._xe + -del ../../../../../bin/*.tds + -del ../../../../../bin/*.pdb + -del ../../../../../bin/*.pbo + -del ../../../../../bin/*.pbi + -del ../../../../../bin/*.pbt + -del ../../../../../temp/cmd/*.pch + -del ../../../../../temp/cmd/*.idb + -del ../../../../../temp/cmd/ta_abstract/*.pch + -del ../../../../../temp/cmd/ta_abstract/*.idb + -del ../../../../../temp/cmd/ta_abstract/*.obj + +####### Compile + +..\..\..\..\..\temp\cmd\ta_abstract.obj: ..\..\..\..\..\src\ta_abstract\ta_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_abstract.obj ..\..\..\..\..\src\ta_abstract\ta_abstract.c + +..\..\..\..\..\temp\cmd\ta_def_ui.obj: ..\..\..\..\..\src\ta_abstract\ta_def_ui.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_def_ui.obj ..\..\..\..\..\src\ta_abstract\ta_def_ui.c + +..\..\..\..\..\temp\cmd\ta_func_api.obj: ..\..\..\..\..\src\ta_abstract\ta_func_api.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_func_api.obj ..\..\..\..\..\src\ta_abstract\ta_func_api.c + +..\..\..\..\..\temp\cmd\ta_group_idx.obj: ..\..\..\..\..\src\ta_abstract\ta_group_idx.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_group_idx.obj ..\..\..\..\..\src\ta_abstract\ta_group_idx.c + +..\..\..\..\..\temp\cmd\ta_frame.obj: ..\..\..\..\..\src\ta_abstract\frames\ta_frame.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_frame.obj ..\..\..\..\..\src\ta_abstract\frames\ta_frame.c + +..\..\..\..\..\temp\cmd\table_a.obj: ..\..\..\..\..\src\ta_abstract\tables\table_a.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\table_a.obj ..\..\..\..\..\src\ta_abstract\tables\table_a.c + +..\..\..\..\..\temp\cmd\table_b.obj: ..\..\..\..\..\src\ta_abstract\tables\table_b.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\table_b.obj ..\..\..\..\..\src\ta_abstract\tables\table_b.c + +..\..\..\..\..\temp\cmd\table_c.obj: ..\..\..\..\..\src\ta_abstract\tables\table_c.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\table_c.obj ..\..\..\..\..\src\ta_abstract\tables\table_c.c + +..\..\..\..\..\temp\cmd\table_d.obj: ..\..\..\..\..\src\ta_abstract\tables\table_d.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\table_d.obj ..\..\..\..\..\src\ta_abstract\tables\table_d.c + +..\..\..\..\..\temp\cmd\table_e.obj: ..\..\..\..\..\src\ta_abstract\tables\table_e.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\table_e.obj ..\..\..\..\..\src\ta_abstract\tables\table_e.c + +..\..\..\..\..\temp\cmd\table_f.obj: ..\..\..\..\..\src\ta_abstract\tables\table_f.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\table_f.obj ..\..\..\..\..\src\ta_abstract\tables\table_f.c + +..\..\..\..\..\temp\cmd\table_g.obj: ..\..\..\..\..\src\ta_abstract\tables\table_g.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\table_g.obj ..\..\..\..\..\src\ta_abstract\tables\table_g.c + +..\..\..\..\..\temp\cmd\table_h.obj: ..\..\..\..\..\src\ta_abstract\tables\table_h.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\table_h.obj ..\..\..\..\..\src\ta_abstract\tables\table_h.c + +..\..\..\..\..\temp\cmd\table_i.obj: ..\..\..\..\..\src\ta_abstract\tables\table_i.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\table_i.obj ..\..\..\..\..\src\ta_abstract\tables\table_i.c + +..\..\..\..\..\temp\cmd\table_j.obj: ..\..\..\..\..\src\ta_abstract\tables\table_j.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\table_j.obj ..\..\..\..\..\src\ta_abstract\tables\table_j.c + +..\..\..\..\..\temp\cmd\table_k.obj: ..\..\..\..\..\src\ta_abstract\tables\table_k.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\table_k.obj ..\..\..\..\..\src\ta_abstract\tables\table_k.c + +..\..\..\..\..\temp\cmd\table_l.obj: ..\..\..\..\..\src\ta_abstract\tables\table_l.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\table_l.obj ..\..\..\..\..\src\ta_abstract\tables\table_l.c + +..\..\..\..\..\temp\cmd\table_m.obj: ..\..\..\..\..\src\ta_abstract\tables\table_m.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\table_m.obj ..\..\..\..\..\src\ta_abstract\tables\table_m.c + +..\..\..\..\..\temp\cmd\table_n.obj: ..\..\..\..\..\src\ta_abstract\tables\table_n.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\table_n.obj ..\..\..\..\..\src\ta_abstract\tables\table_n.c + +..\..\..\..\..\temp\cmd\table_o.obj: ..\..\..\..\..\src\ta_abstract\tables\table_o.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\table_o.obj ..\..\..\..\..\src\ta_abstract\tables\table_o.c + +..\..\..\..\..\temp\cmd\table_p.obj: ..\..\..\..\..\src\ta_abstract\tables\table_p.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\table_p.obj ..\..\..\..\..\src\ta_abstract\tables\table_p.c + +..\..\..\..\..\temp\cmd\table_q.obj: ..\..\..\..\..\src\ta_abstract\tables\table_q.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\table_q.obj ..\..\..\..\..\src\ta_abstract\tables\table_q.c + +..\..\..\..\..\temp\cmd\table_r.obj: ..\..\..\..\..\src\ta_abstract\tables\table_r.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\table_r.obj ..\..\..\..\..\src\ta_abstract\tables\table_r.c + +..\..\..\..\..\temp\cmd\table_s.obj: ..\..\..\..\..\src\ta_abstract\tables\table_s.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\table_s.obj ..\..\..\..\..\src\ta_abstract\tables\table_s.c + +..\..\..\..\..\temp\cmd\table_t.obj: ..\..\..\..\..\src\ta_abstract\tables\table_t.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\table_t.obj ..\..\..\..\..\src\ta_abstract\tables\table_t.c + +..\..\..\..\..\temp\cmd\table_u.obj: ..\..\..\..\..\src\ta_abstract\tables\table_u.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\table_u.obj ..\..\..\..\..\src\ta_abstract\tables\table_u.c + +..\..\..\..\..\temp\cmd\table_v.obj: ..\..\..\..\..\src\ta_abstract\tables\table_v.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\table_v.obj ..\..\..\..\..\src\ta_abstract\tables\table_v.c + +..\..\..\..\..\temp\cmd\table_w.obj: ..\..\..\..\..\src\ta_abstract\tables\table_w.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\table_w.obj ..\..\..\..\..\src\ta_abstract\tables\table_w.c + +..\..\..\..\..\temp\cmd\table_x.obj: ..\..\..\..\..\src\ta_abstract\tables\table_x.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\table_x.obj ..\..\..\..\..\src\ta_abstract\tables\table_x.c + +..\..\..\..\..\temp\cmd\table_y.obj: ..\..\..\..\..\src\ta_abstract\tables\table_y.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\table_y.obj ..\..\..\..\..\src\ta_abstract\tables\table_y.c + +..\..\..\..\..\temp\cmd\table_z.obj: ..\..\..\..\..\src\ta_abstract\tables\table_z.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\table_z.obj ..\..\..\..\..\src\ta_abstract\tables\table_z.c + diff --git a/make/cmd/win32/borland/ta_common/Makefile b/make/cmd/win32/borland/ta_common/Makefile new file mode 100644 index 000000000..90d5b075b --- /dev/null +++ b/make/cmd/win32/borland/ta_common/Makefile @@ -0,0 +1,113 @@ +############################################################################# +# Makefile for building ta_common_cmd +# Generated by tmake; +# Project: ta_common/ta_common +# Template: lib +############################################################################# + +!if !$d(BCB) +BCB = $(MAKEDIR)\.. +!endif + +####### Compiler, tools and options + +CC = bcc32 +CXX = bcc32 +CFLAGS = -x- -RT- -tWR -w -w-8004 -w-8071 -w-8057 -w-8080 -tWM -DTA_DEBUG -D_DEBUG -DWIN32 -DQT_THREAD_SUPPORT +CXXFLAGS= -x- -RT- -tWR -w -w-8004 -w-8071 -w-8057 -w-8080 -tWM -DTA_DEBUG -D_DEBUG -DWIN32 -DQT_THREAD_SUPPORT +INCPATH = -I"..\..\..\..\..\src\ta_common" -I"..\..\..\..\..\include" +LIB = tlib /C /P256 +MOC = moc +UIC = uic + +ZIP = zip -r -9 +DEF_FILE = +RES_FILE = + +####### Files + +HEADERS = +SOURCES = ..\..\..\..\..\src\ta_common\ta_global.c \ + ..\..\..\..\..\src\ta_common\ta_retcode.c \ + ..\..\..\..\..\src\ta_common\ta_version.c +OBJECTS = ..\..\..\..\..\temp\cmd\ta_global.obj \ + ..\..\..\..\..\temp\cmd\ta_retcode.obj \ + ..\..\..\..\..\temp\cmd\ta_version.obj +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ..\..\..\..\..\lib\ta_common_cmd.lib +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .c + +.cpp.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.cxx.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.cc.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.c.obj: + $(CC) -c $(CFLAGS) $(INCPATH) -o$@ $< + +####### Build rules + +all: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + -del $(TARGET) + $(LIB) $(TARGET) @&&| ++..\..\..\..\..\temp\cmd\ta_global.obj \ ++..\..\..\..\..\temp\cmd\ta_retcode.obj \ ++..\..\..\..\..\temp\cmd\ta_version.obj \ ++ +| + +moc: $(SRCMOC) + +tmake: ../cmd/win32/borland/ta_common/Makefile + +../cmd/win32/borland/ta_common/Makefile: ta_common/ta_common.pro + tmake ta_common/ta_common.pro -o ../cmd/win32/borland/ta_common/Makefile + +dist: + $(ZIP) ta_common/ta_common.zip ta_common/ta_common.pro $(SOURCES) $(HEADERS) $(DIST) + +clean: + -del ..\..\..\..\..\temp\cmd\ta_global.obj + -del ..\..\..\..\..\temp\cmd\ta_retcode.obj + -del ..\..\..\..\..\temp\cmd\ta_version.obj + -del $(TARGET) + -del ta_common_cmd.tds + -del ../../../../../bin/*.map + -del ../../../../../bin/*._xe + -del ../../../../../bin/*.tds + -del ../../../../../bin/*.pdb + -del ../../../../../bin/*.pbo + -del ../../../../../bin/*.pbi + -del ../../../../../bin/*.pbt + -del ../../../../../temp/cmd/*.pch + -del ../../../../../temp/cmd/*.idb + -del ../../../../../temp/cmd/ta_common_cmd/*.pch + -del ../../../../../temp/cmd/ta_common_cmd/*.idb + -del ../../../../../temp/cmd/ta_common_cmd/*.obj + +####### Compile + +..\..\..\..\..\temp\cmd\ta_global.obj: ..\..\..\..\..\src\ta_common\ta_global.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_global.obj ..\..\..\..\..\src\ta_common\ta_global.c + +..\..\..\..\..\temp\cmd\ta_retcode.obj: ..\..\..\..\..\src\ta_common\ta_retcode.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_retcode.obj ..\..\..\..\..\src\ta_common\ta_retcode.c + +..\..\..\..\..\temp\cmd\ta_version.obj: ..\..\..\..\..\src\ta_common\ta_version.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_version.obj ..\..\..\..\..\src\ta_common\ta_version.c + diff --git a/make/cmd/win32/borland/ta_func/Makefile b/make/cmd/win32/borland/ta_func/Makefile new file mode 100644 index 000000000..1aed95833 --- /dev/null +++ b/make/cmd/win32/borland/ta_func/Makefile @@ -0,0 +1,1205 @@ +############################################################################# +# Makefile for building ta_func_cmd +# Generated by tmake; +# Project: ta_func/ta_func +# Template: lib +############################################################################# + +!if !$d(BCB) +BCB = $(MAKEDIR)\.. +!endif + +####### Compiler, tools and options + +CC = bcc32 +CXX = bcc32 +CFLAGS = -x- -RT- -tWR -w -w-8004 -w-8071 -w-8057 -w-8080 -tWM -DTA_DEBUG -D_DEBUG -DWIN32 -DQT_THREAD_SUPPORT +CXXFLAGS= -x- -RT- -tWR -w -w-8004 -w-8071 -w-8057 -w-8080 -tWM -DTA_DEBUG -D_DEBUG -DWIN32 -DQT_THREAD_SUPPORT +INCPATH = -I"..\..\..\..\..\src\ta_common" -I"\n" -I"..\..\..\..\..\include" +LIB = tlib /C /P256 +MOC = moc +UIC = uic + +ZIP = zip -r -9 +DEF_FILE = +RES_FILE = + +####### Files + +HEADERS = +SOURCES = ..\..\..\..\..\src\ta_func\ta_utility.c \ + ..\..\..\..\..\src\ta_func\ta_ACOS.c \ + ..\..\..\..\..\src\ta_func\ta_AD.c \ + ..\..\..\..\..\src\ta_func\ta_ADD.c \ + ..\..\..\..\..\src\ta_func\ta_ADOSC.c \ + ..\..\..\..\..\src\ta_func\ta_ADX.c \ + ..\..\..\..\..\src\ta_func\ta_ADXR.c \ + ..\..\..\..\..\src\ta_func\ta_APO.c \ + ..\..\..\..\..\src\ta_func\ta_AROON.c \ + ..\..\..\..\..\src\ta_func\ta_AROONOSC.c \ + ..\..\..\..\..\src\ta_func\ta_ASIN.c \ + ..\..\..\..\..\src\ta_func\ta_ATAN.c \ + ..\..\..\..\..\src\ta_func\ta_ATR.c \ + ..\..\..\..\..\src\ta_func\ta_AVGPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_BBANDS.c \ + ..\..\..\..\..\src\ta_func\ta_BETA.c \ + ..\..\..\..\..\src\ta_func\ta_BOP.c \ + ..\..\..\..\..\src\ta_func\ta_CCI.c \ + ..\..\..\..\..\src\ta_func\ta_CDL2CROWS.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3BLACKCROWS.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3INSIDE.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3LINESTRIKE.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3OUTSIDE.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3STARSINSOUTH.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3WHITESOLDIERS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLABANDONEDBABY.c \ + ..\..\..\..\..\src\ta_func\ta_CDLADVANCEBLOCK.c \ + ..\..\..\..\..\src\ta_func\ta_CDLBELTHOLD.c \ + ..\..\..\..\..\src\ta_func\ta_CDLBREAKAWAY.c \ + ..\..\..\..\..\src\ta_func\ta_CDLCLOSINGMARUBOZU.c \ + ..\..\..\..\..\src\ta_func\ta_CDLCONCEALBABYSWALL.c \ + ..\..\..\..\..\src\ta_func\ta_CDLCOUNTERATTACK.c \ + ..\..\..\..\..\src\ta_func\ta_CDLDARKCLOUDCOVER.c \ + ..\..\..\..\..\src\ta_func\ta_CDLDOJI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLDOJISTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLDRAGONFLYDOJI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLENGULFING.c \ + ..\..\..\..\..\src\ta_func\ta_CDLEVENINGDOJISTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLEVENINGSTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLGAPSIDESIDEWHITE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLGRAVESTONEDOJI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHAMMER.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHANGINGMAN.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHARAMI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHARAMICROSS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHIGHWAVE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKEMOD.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHOMINGPIGEON.c \ + ..\..\..\..\..\src\ta_func\ta_CDLIDENTICAL3CROWS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLINNECK.c \ + ..\..\..\..\..\src\ta_func\ta_CDLINVERTEDHAMMER.c \ + ..\..\..\..\..\src\ta_func\ta_CDLKICKING.c \ + ..\..\..\..\..\src\ta_func\ta_CDLKICKINGBYLENGTH.c \ + ..\..\..\..\..\src\ta_func\ta_CDLLADDERBOTTOM.c \ + ..\..\..\..\..\src\ta_func\ta_CDLLONGLEGGEDDOJI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLLONGLINE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMARUBOZU.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMATCHINGLOW.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMATHOLD.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMORNINGDOJISTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMORNINGSTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLONNECK.c \ + ..\..\..\..\..\src\ta_func\ta_CDLPIERCING.c \ + ..\..\..\..\..\src\ta_func\ta_CDLRICKSHAWMAN.c \ + ..\..\..\..\..\src\ta_func\ta_CDLRISEFALL3METHODS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSEPARATINGLINES.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSHOOTINGSTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSHORTLINE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSPINNINGTOP.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSTALLEDPATTERN.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSTICKSANDWICH.c \ + ..\..\..\..\..\src\ta_func\ta_CDLTAKURI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLTASUKIGAP.c \ + ..\..\..\..\..\src\ta_func\ta_CDLTHRUSTING.c \ + ..\..\..\..\..\src\ta_func\ta_CDLTRISTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLUNIQUE3RIVER.c \ + ..\..\..\..\..\src\ta_func\ta_CDLUPSIDEGAP2CROWS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLXSIDEGAP3METHODS.c \ + ..\..\..\..\..\src\ta_func\ta_CEIL.c \ + ..\..\..\..\..\src\ta_func\ta_CMO.c \ + ..\..\..\..\..\src\ta_func\ta_CORREL.c \ + ..\..\..\..\..\src\ta_func\ta_COS.c \ + ..\..\..\..\..\src\ta_func\ta_COSH.c \ + ..\..\..\..\..\src\ta_func\ta_DEMA.c \ + ..\..\..\..\..\src\ta_func\ta_DIV.c \ + ..\..\..\..\..\src\ta_func\ta_DX.c \ + ..\..\..\..\..\src\ta_func\ta_EMA.c \ + ..\..\..\..\..\src\ta_func\ta_EXP.c \ + ..\..\..\..\..\src\ta_func\ta_FLOOR.c \ + ..\..\..\..\..\src\ta_func\ta_HT_DCPERIOD.c \ + ..\..\..\..\..\src\ta_func\ta_HT_DCPHASE.c \ + ..\..\..\..\..\src\ta_func\ta_HT_PHASOR.c \ + ..\..\..\..\..\src\ta_func\ta_HT_SINE.c \ + ..\..\..\..\..\src\ta_func\ta_HT_TRENDLINE.c \ + ..\..\..\..\..\src\ta_func\ta_HT_TRENDMODE.c \ + ..\..\..\..\..\src\ta_func\ta_KAMA.c \ + ..\..\..\..\..\src\ta_func\ta_LINEARREG.c \ + ..\..\..\..\..\src\ta_func\ta_LINEARREG_ANGLE.c \ + ..\..\..\..\..\src\ta_func\ta_LINEARREG_INTERCEPT.c \ + ..\..\..\..\..\src\ta_func\ta_LINEARREG_SLOPE.c \ + ..\..\..\..\..\src\ta_func\ta_LN.c \ + ..\..\..\..\..\src\ta_func\ta_LOG10.c \ + ..\..\..\..\..\src\ta_func\ta_MA.c \ + ..\..\..\..\..\src\ta_func\ta_MACD.c \ + ..\..\..\..\..\src\ta_func\ta_MACDEXT.c \ + ..\..\..\..\..\src\ta_func\ta_MACDFIX.c \ + ..\..\..\..\..\src\ta_func\ta_MAMA.c \ + ..\..\..\..\..\src\ta_func\ta_MAVP.c \ + ..\..\..\..\..\src\ta_func\ta_MAX.c \ + ..\..\..\..\..\src\ta_func\ta_MAXINDEX.c \ + ..\..\..\..\..\src\ta_func\ta_MEDPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_MFI.c \ + ..\..\..\..\..\src\ta_func\ta_MIDPOINT.c \ + ..\..\..\..\..\src\ta_func\ta_MIDPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_MIN.c \ + ..\..\..\..\..\src\ta_func\ta_MININDEX.c \ + ..\..\..\..\..\src\ta_func\ta_MINMAX.c \ + ..\..\..\..\..\src\ta_func\ta_MINMAXINDEX.c \ + ..\..\..\..\..\src\ta_func\ta_MINUS_DI.c \ + ..\..\..\..\..\src\ta_func\ta_MINUS_DM.c \ + ..\..\..\..\..\src\ta_func\ta_MOM.c \ + ..\..\..\..\..\src\ta_func\ta_MULT.c \ + ..\..\..\..\..\src\ta_func\ta_NATR.c \ + ..\..\..\..\..\src\ta_func\ta_OBV.c \ + ..\..\..\..\..\src\ta_func\ta_PLUS_DI.c \ + ..\..\..\..\..\src\ta_func\ta_PLUS_DM.c \ + ..\..\..\..\..\src\ta_func\ta_PPO.c \ + ..\..\..\..\..\src\ta_func\ta_ROC.c \ + ..\..\..\..\..\src\ta_func\ta_ROCP.c \ + ..\..\..\..\..\src\ta_func\ta_ROCR.c \ + ..\..\..\..\..\src\ta_func\ta_ROCR100.c \ + ..\..\..\..\..\src\ta_func\ta_RSI.c \ + ..\..\..\..\..\src\ta_func\ta_SAR.c \ + ..\..\..\..\..\src\ta_func\ta_SAREXT.c \ + ..\..\..\..\..\src\ta_func\ta_SIN.c \ + ..\..\..\..\..\src\ta_func\ta_SINH.c \ + ..\..\..\..\..\src\ta_func\ta_SMA.c \ + ..\..\..\..\..\src\ta_func\ta_SQRT.c \ + ..\..\..\..\..\src\ta_func\ta_STDDEV.c \ + ..\..\..\..\..\src\ta_func\ta_STOCH.c \ + ..\..\..\..\..\src\ta_func\ta_STOCHF.c \ + ..\..\..\..\..\src\ta_func\ta_STOCHRSI.c \ + ..\..\..\..\..\src\ta_func\ta_SUB.c \ + ..\..\..\..\..\src\ta_func\ta_SUM.c \ + ..\..\..\..\..\src\ta_func\ta_T3.c \ + ..\..\..\..\..\src\ta_func\ta_TAN.c \ + ..\..\..\..\..\src\ta_func\ta_TANH.c \ + ..\..\..\..\..\src\ta_func\ta_TEMA.c \ + ..\..\..\..\..\src\ta_func\ta_TRANGE.c \ + ..\..\..\..\..\src\ta_func\ta_TRIMA.c \ + ..\..\..\..\..\src\ta_func\ta_TRIX.c \ + ..\..\..\..\..\src\ta_func\ta_TSF.c \ + ..\..\..\..\..\src\ta_func\ta_TYPPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_ULTOSC.c \ + ..\..\..\..\..\src\ta_func\ta_VAR.c \ + ..\..\..\..\..\src\ta_func\ta_WCLPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_WILLR.c \ + ..\..\..\..\..\src\ta_func\ta_WMA.c +OBJECTS = ..\..\..\..\..\temp\cmd\ta_utility.obj \ + ..\..\..\..\..\temp\cmd\ta_ACOS.obj \ + ..\..\..\..\..\temp\cmd\ta_AD.obj \ + ..\..\..\..\..\temp\cmd\ta_ADD.obj \ + ..\..\..\..\..\temp\cmd\ta_ADOSC.obj \ + ..\..\..\..\..\temp\cmd\ta_ADX.obj \ + ..\..\..\..\..\temp\cmd\ta_ADXR.obj \ + ..\..\..\..\..\temp\cmd\ta_APO.obj \ + ..\..\..\..\..\temp\cmd\ta_AROON.obj \ + ..\..\..\..\..\temp\cmd\ta_AROONOSC.obj \ + ..\..\..\..\..\temp\cmd\ta_ASIN.obj \ + ..\..\..\..\..\temp\cmd\ta_ATAN.obj \ + ..\..\..\..\..\temp\cmd\ta_ATR.obj \ + ..\..\..\..\..\temp\cmd\ta_AVGPRICE.obj \ + ..\..\..\..\..\temp\cmd\ta_BBANDS.obj \ + ..\..\..\..\..\temp\cmd\ta_BETA.obj \ + ..\..\..\..\..\temp\cmd\ta_BOP.obj \ + ..\..\..\..\..\temp\cmd\ta_CCI.obj \ + ..\..\..\..\..\temp\cmd\ta_CDL2CROWS.obj \ + ..\..\..\..\..\temp\cmd\ta_CDL3BLACKCROWS.obj \ + ..\..\..\..\..\temp\cmd\ta_CDL3INSIDE.obj \ + ..\..\..\..\..\temp\cmd\ta_CDL3LINESTRIKE.obj \ + ..\..\..\..\..\temp\cmd\ta_CDL3OUTSIDE.obj \ + ..\..\..\..\..\temp\cmd\ta_CDL3STARSINSOUTH.obj \ + ..\..\..\..\..\temp\cmd\ta_CDL3WHITESOLDIERS.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLABANDONEDBABY.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLADVANCEBLOCK.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLBELTHOLD.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLBREAKAWAY.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLCLOSINGMARUBOZU.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLCONCEALBABYSWALL.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLCOUNTERATTACK.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLDARKCLOUDCOVER.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLDOJI.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLDOJISTAR.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLDRAGONFLYDOJI.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLENGULFING.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLEVENINGDOJISTAR.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLEVENINGSTAR.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLGAPSIDESIDEWHITE.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLGRAVESTONEDOJI.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLHAMMER.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLHANGINGMAN.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLHARAMI.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLHARAMICROSS.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLHIGHWAVE.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLHIKKAKE.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLHIKKAKEMOD.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLHOMINGPIGEON.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLIDENTICAL3CROWS.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLINNECK.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLINVERTEDHAMMER.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLKICKING.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLKICKINGBYLENGTH.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLLADDERBOTTOM.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLLONGLEGGEDDOJI.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLLONGLINE.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLMARUBOZU.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLMATCHINGLOW.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLMATHOLD.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLMORNINGDOJISTAR.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLMORNINGSTAR.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLONNECK.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLPIERCING.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLRICKSHAWMAN.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLRISEFALL3METHODS.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLSEPARATINGLINES.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLSHOOTINGSTAR.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLSHORTLINE.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLSPINNINGTOP.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLSTALLEDPATTERN.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLSTICKSANDWICH.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLTAKURI.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLTASUKIGAP.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLTHRUSTING.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLTRISTAR.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLUNIQUE3RIVER.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLUPSIDEGAP2CROWS.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLXSIDEGAP3METHODS.obj \ + ..\..\..\..\..\temp\cmd\ta_CEIL.obj \ + ..\..\..\..\..\temp\cmd\ta_CMO.obj \ + ..\..\..\..\..\temp\cmd\ta_CORREL.obj \ + ..\..\..\..\..\temp\cmd\ta_COS.obj \ + ..\..\..\..\..\temp\cmd\ta_COSH.obj \ + ..\..\..\..\..\temp\cmd\ta_DEMA.obj \ + ..\..\..\..\..\temp\cmd\ta_DIV.obj \ + ..\..\..\..\..\temp\cmd\ta_DX.obj \ + ..\..\..\..\..\temp\cmd\ta_EMA.obj \ + ..\..\..\..\..\temp\cmd\ta_EXP.obj \ + ..\..\..\..\..\temp\cmd\ta_FLOOR.obj \ + ..\..\..\..\..\temp\cmd\ta_HT_DCPERIOD.obj \ + ..\..\..\..\..\temp\cmd\ta_HT_DCPHASE.obj \ + ..\..\..\..\..\temp\cmd\ta_HT_PHASOR.obj \ + ..\..\..\..\..\temp\cmd\ta_HT_SINE.obj \ + ..\..\..\..\..\temp\cmd\ta_HT_TRENDLINE.obj \ + ..\..\..\..\..\temp\cmd\ta_HT_TRENDMODE.obj \ + ..\..\..\..\..\temp\cmd\ta_KAMA.obj \ + ..\..\..\..\..\temp\cmd\ta_LINEARREG.obj \ + ..\..\..\..\..\temp\cmd\ta_LINEARREG_ANGLE.obj \ + ..\..\..\..\..\temp\cmd\ta_LINEARREG_INTERCEPT.obj \ + ..\..\..\..\..\temp\cmd\ta_LINEARREG_SLOPE.obj \ + ..\..\..\..\..\temp\cmd\ta_LN.obj \ + ..\..\..\..\..\temp\cmd\ta_LOG10.obj \ + ..\..\..\..\..\temp\cmd\ta_MA.obj \ + ..\..\..\..\..\temp\cmd\ta_MACD.obj \ + ..\..\..\..\..\temp\cmd\ta_MACDEXT.obj \ + ..\..\..\..\..\temp\cmd\ta_MACDFIX.obj \ + ..\..\..\..\..\temp\cmd\ta_MAMA.obj \ + ..\..\..\..\..\temp\cmd\ta_MAVP.obj \ + ..\..\..\..\..\temp\cmd\ta_MAX.obj \ + ..\..\..\..\..\temp\cmd\ta_MAXINDEX.obj \ + ..\..\..\..\..\temp\cmd\ta_MEDPRICE.obj \ + ..\..\..\..\..\temp\cmd\ta_MFI.obj \ + ..\..\..\..\..\temp\cmd\ta_MIDPOINT.obj \ + ..\..\..\..\..\temp\cmd\ta_MIDPRICE.obj \ + ..\..\..\..\..\temp\cmd\ta_MIN.obj \ + ..\..\..\..\..\temp\cmd\ta_MININDEX.obj \ + ..\..\..\..\..\temp\cmd\ta_MINMAX.obj \ + ..\..\..\..\..\temp\cmd\ta_MINMAXINDEX.obj \ + ..\..\..\..\..\temp\cmd\ta_MINUS_DI.obj \ + ..\..\..\..\..\temp\cmd\ta_MINUS_DM.obj \ + ..\..\..\..\..\temp\cmd\ta_MOM.obj \ + ..\..\..\..\..\temp\cmd\ta_MULT.obj \ + ..\..\..\..\..\temp\cmd\ta_NATR.obj \ + ..\..\..\..\..\temp\cmd\ta_OBV.obj \ + ..\..\..\..\..\temp\cmd\ta_PLUS_DI.obj \ + ..\..\..\..\..\temp\cmd\ta_PLUS_DM.obj \ + ..\..\..\..\..\temp\cmd\ta_PPO.obj \ + ..\..\..\..\..\temp\cmd\ta_ROC.obj \ + ..\..\..\..\..\temp\cmd\ta_ROCP.obj \ + ..\..\..\..\..\temp\cmd\ta_ROCR.obj \ + ..\..\..\..\..\temp\cmd\ta_ROCR100.obj \ + ..\..\..\..\..\temp\cmd\ta_RSI.obj \ + ..\..\..\..\..\temp\cmd\ta_SAR.obj \ + ..\..\..\..\..\temp\cmd\ta_SAREXT.obj \ + ..\..\..\..\..\temp\cmd\ta_SIN.obj \ + ..\..\..\..\..\temp\cmd\ta_SINH.obj \ + ..\..\..\..\..\temp\cmd\ta_SMA.obj \ + ..\..\..\..\..\temp\cmd\ta_SQRT.obj \ + ..\..\..\..\..\temp\cmd\ta_STDDEV.obj \ + ..\..\..\..\..\temp\cmd\ta_STOCH.obj \ + ..\..\..\..\..\temp\cmd\ta_STOCHF.obj \ + ..\..\..\..\..\temp\cmd\ta_STOCHRSI.obj \ + ..\..\..\..\..\temp\cmd\ta_SUB.obj \ + ..\..\..\..\..\temp\cmd\ta_SUM.obj \ + ..\..\..\..\..\temp\cmd\ta_T3.obj \ + ..\..\..\..\..\temp\cmd\ta_TAN.obj \ + ..\..\..\..\..\temp\cmd\ta_TANH.obj \ + ..\..\..\..\..\temp\cmd\ta_TEMA.obj \ + ..\..\..\..\..\temp\cmd\ta_TRANGE.obj \ + ..\..\..\..\..\temp\cmd\ta_TRIMA.obj \ + ..\..\..\..\..\temp\cmd\ta_TRIX.obj \ + ..\..\..\..\..\temp\cmd\ta_TSF.obj \ + ..\..\..\..\..\temp\cmd\ta_TYPPRICE.obj \ + ..\..\..\..\..\temp\cmd\ta_ULTOSC.obj \ + ..\..\..\..\..\temp\cmd\ta_VAR.obj \ + ..\..\..\..\..\temp\cmd\ta_WCLPRICE.obj \ + ..\..\..\..\..\temp\cmd\ta_WILLR.obj \ + ..\..\..\..\..\temp\cmd\ta_WMA.obj +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ..\..\..\..\..\lib\ta_func_cmd.lib +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .c + +.cpp.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.cxx.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.cc.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.c.obj: + $(CC) -c $(CFLAGS) $(INCPATH) -o$@ $< + +####### Build rules + +all: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + -del $(TARGET) + $(LIB) $(TARGET) @&&| ++..\..\..\..\..\temp\cmd\ta_utility.obj \ ++..\..\..\..\..\temp\cmd\ta_ACOS.obj \ ++..\..\..\..\..\temp\cmd\ta_AD.obj \ ++..\..\..\..\..\temp\cmd\ta_ADD.obj \ ++..\..\..\..\..\temp\cmd\ta_ADOSC.obj \ ++..\..\..\..\..\temp\cmd\ta_ADX.obj \ ++..\..\..\..\..\temp\cmd\ta_ADXR.obj \ ++..\..\..\..\..\temp\cmd\ta_APO.obj \ ++..\..\..\..\..\temp\cmd\ta_AROON.obj \ ++..\..\..\..\..\temp\cmd\ta_AROONOSC.obj \ ++..\..\..\..\..\temp\cmd\ta_ASIN.obj \ ++..\..\..\..\..\temp\cmd\ta_ATAN.obj \ ++..\..\..\..\..\temp\cmd\ta_ATR.obj \ ++..\..\..\..\..\temp\cmd\ta_AVGPRICE.obj \ ++..\..\..\..\..\temp\cmd\ta_BBANDS.obj \ ++..\..\..\..\..\temp\cmd\ta_BETA.obj \ ++..\..\..\..\..\temp\cmd\ta_BOP.obj \ ++..\..\..\..\..\temp\cmd\ta_CCI.obj \ ++..\..\..\..\..\temp\cmd\ta_CDL2CROWS.obj \ ++..\..\..\..\..\temp\cmd\ta_CDL3BLACKCROWS.obj \ ++..\..\..\..\..\temp\cmd\ta_CDL3INSIDE.obj \ ++..\..\..\..\..\temp\cmd\ta_CDL3LINESTRIKE.obj \ ++..\..\..\..\..\temp\cmd\ta_CDL3OUTSIDE.obj \ ++..\..\..\..\..\temp\cmd\ta_CDL3STARSINSOUTH.obj \ ++..\..\..\..\..\temp\cmd\ta_CDL3WHITESOLDIERS.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLABANDONEDBABY.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLADVANCEBLOCK.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLBELTHOLD.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLBREAKAWAY.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLCLOSINGMARUBOZU.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLCONCEALBABYSWALL.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLCOUNTERATTACK.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLDARKCLOUDCOVER.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLDOJI.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLDOJISTAR.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLDRAGONFLYDOJI.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLENGULFING.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLEVENINGDOJISTAR.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLEVENINGSTAR.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLGAPSIDESIDEWHITE.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLGRAVESTONEDOJI.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLHAMMER.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLHANGINGMAN.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLHARAMI.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLHARAMICROSS.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLHIGHWAVE.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLHIKKAKE.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLHIKKAKEMOD.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLHOMINGPIGEON.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLIDENTICAL3CROWS.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLINNECK.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLINVERTEDHAMMER.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLKICKING.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLKICKINGBYLENGTH.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLLADDERBOTTOM.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLLONGLEGGEDDOJI.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLLONGLINE.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLMARUBOZU.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLMATCHINGLOW.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLMATHOLD.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLMORNINGDOJISTAR.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLMORNINGSTAR.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLONNECK.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLPIERCING.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLRICKSHAWMAN.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLRISEFALL3METHODS.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLSEPARATINGLINES.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLSHOOTINGSTAR.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLSHORTLINE.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLSPINNINGTOP.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLSTALLEDPATTERN.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLSTICKSANDWICH.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLTAKURI.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLTASUKIGAP.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLTHRUSTING.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLTRISTAR.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLUNIQUE3RIVER.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLUPSIDEGAP2CROWS.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLXSIDEGAP3METHODS.obj \ ++..\..\..\..\..\temp\cmd\ta_CEIL.obj \ ++..\..\..\..\..\temp\cmd\ta_CMO.obj \ ++..\..\..\..\..\temp\cmd\ta_CORREL.obj \ ++..\..\..\..\..\temp\cmd\ta_COS.obj \ ++..\..\..\..\..\temp\cmd\ta_COSH.obj \ ++..\..\..\..\..\temp\cmd\ta_DEMA.obj \ ++..\..\..\..\..\temp\cmd\ta_DIV.obj \ ++..\..\..\..\..\temp\cmd\ta_DX.obj \ ++..\..\..\..\..\temp\cmd\ta_EMA.obj \ ++..\..\..\..\..\temp\cmd\ta_EXP.obj \ ++..\..\..\..\..\temp\cmd\ta_FLOOR.obj \ ++..\..\..\..\..\temp\cmd\ta_HT_DCPERIOD.obj \ ++..\..\..\..\..\temp\cmd\ta_HT_DCPHASE.obj \ ++..\..\..\..\..\temp\cmd\ta_HT_PHASOR.obj \ ++..\..\..\..\..\temp\cmd\ta_HT_SINE.obj \ ++..\..\..\..\..\temp\cmd\ta_HT_TRENDLINE.obj \ ++..\..\..\..\..\temp\cmd\ta_HT_TRENDMODE.obj \ ++..\..\..\..\..\temp\cmd\ta_KAMA.obj \ ++..\..\..\..\..\temp\cmd\ta_LINEARREG.obj \ ++..\..\..\..\..\temp\cmd\ta_LINEARREG_ANGLE.obj \ ++..\..\..\..\..\temp\cmd\ta_LINEARREG_INTERCEPT.obj \ ++..\..\..\..\..\temp\cmd\ta_LINEARREG_SLOPE.obj \ ++..\..\..\..\..\temp\cmd\ta_LN.obj \ ++..\..\..\..\..\temp\cmd\ta_LOG10.obj \ ++..\..\..\..\..\temp\cmd\ta_MA.obj \ ++..\..\..\..\..\temp\cmd\ta_MACD.obj \ ++..\..\..\..\..\temp\cmd\ta_MACDEXT.obj \ ++..\..\..\..\..\temp\cmd\ta_MACDFIX.obj \ ++..\..\..\..\..\temp\cmd\ta_MAMA.obj \ ++..\..\..\..\..\temp\cmd\ta_MAVP.obj \ ++..\..\..\..\..\temp\cmd\ta_MAX.obj \ ++..\..\..\..\..\temp\cmd\ta_MAXINDEX.obj \ ++..\..\..\..\..\temp\cmd\ta_MEDPRICE.obj \ ++..\..\..\..\..\temp\cmd\ta_MFI.obj \ ++..\..\..\..\..\temp\cmd\ta_MIDPOINT.obj \ ++..\..\..\..\..\temp\cmd\ta_MIDPRICE.obj \ ++..\..\..\..\..\temp\cmd\ta_MIN.obj \ ++..\..\..\..\..\temp\cmd\ta_MININDEX.obj \ ++..\..\..\..\..\temp\cmd\ta_MINMAX.obj \ ++..\..\..\..\..\temp\cmd\ta_MINMAXINDEX.obj \ ++..\..\..\..\..\temp\cmd\ta_MINUS_DI.obj \ ++..\..\..\..\..\temp\cmd\ta_MINUS_DM.obj \ ++..\..\..\..\..\temp\cmd\ta_MOM.obj \ ++..\..\..\..\..\temp\cmd\ta_MULT.obj \ ++..\..\..\..\..\temp\cmd\ta_NATR.obj \ ++..\..\..\..\..\temp\cmd\ta_OBV.obj \ ++..\..\..\..\..\temp\cmd\ta_PLUS_DI.obj \ ++..\..\..\..\..\temp\cmd\ta_PLUS_DM.obj \ ++..\..\..\..\..\temp\cmd\ta_PPO.obj \ ++..\..\..\..\..\temp\cmd\ta_ROC.obj \ ++..\..\..\..\..\temp\cmd\ta_ROCP.obj \ ++..\..\..\..\..\temp\cmd\ta_ROCR.obj \ ++..\..\..\..\..\temp\cmd\ta_ROCR100.obj \ ++..\..\..\..\..\temp\cmd\ta_RSI.obj \ ++..\..\..\..\..\temp\cmd\ta_SAR.obj \ ++..\..\..\..\..\temp\cmd\ta_SAREXT.obj \ ++..\..\..\..\..\temp\cmd\ta_SIN.obj \ ++..\..\..\..\..\temp\cmd\ta_SINH.obj \ ++..\..\..\..\..\temp\cmd\ta_SMA.obj \ ++..\..\..\..\..\temp\cmd\ta_SQRT.obj \ ++..\..\..\..\..\temp\cmd\ta_STDDEV.obj \ ++..\..\..\..\..\temp\cmd\ta_STOCH.obj \ ++..\..\..\..\..\temp\cmd\ta_STOCHF.obj \ ++..\..\..\..\..\temp\cmd\ta_STOCHRSI.obj \ ++..\..\..\..\..\temp\cmd\ta_SUB.obj \ ++..\..\..\..\..\temp\cmd\ta_SUM.obj \ ++..\..\..\..\..\temp\cmd\ta_T3.obj \ ++..\..\..\..\..\temp\cmd\ta_TAN.obj \ ++..\..\..\..\..\temp\cmd\ta_TANH.obj \ ++..\..\..\..\..\temp\cmd\ta_TEMA.obj \ ++..\..\..\..\..\temp\cmd\ta_TRANGE.obj \ ++..\..\..\..\..\temp\cmd\ta_TRIMA.obj \ ++..\..\..\..\..\temp\cmd\ta_TRIX.obj \ ++..\..\..\..\..\temp\cmd\ta_TSF.obj \ ++..\..\..\..\..\temp\cmd\ta_TYPPRICE.obj \ ++..\..\..\..\..\temp\cmd\ta_ULTOSC.obj \ ++..\..\..\..\..\temp\cmd\ta_VAR.obj \ ++..\..\..\..\..\temp\cmd\ta_WCLPRICE.obj \ ++..\..\..\..\..\temp\cmd\ta_WILLR.obj \ ++..\..\..\..\..\temp\cmd\ta_WMA.obj \ ++ +| + +moc: $(SRCMOC) + +tmake: ../cmd/win32/borland/ta_func/Makefile + +../cmd/win32/borland/ta_func/Makefile: ta_func/ta_func.pro + tmake ta_func/ta_func.pro -o ../cmd/win32/borland/ta_func/Makefile + +dist: + $(ZIP) ta_func/ta_func.zip ta_func/ta_func.pro $(SOURCES) $(HEADERS) $(DIST) + +clean: + -del ..\..\..\..\..\temp\cmd\ta_utility.obj + -del ..\..\..\..\..\temp\cmd\ta_ACOS.obj + -del ..\..\..\..\..\temp\cmd\ta_AD.obj + -del ..\..\..\..\..\temp\cmd\ta_ADD.obj + -del ..\..\..\..\..\temp\cmd\ta_ADOSC.obj + -del ..\..\..\..\..\temp\cmd\ta_ADX.obj + -del ..\..\..\..\..\temp\cmd\ta_ADXR.obj + -del ..\..\..\..\..\temp\cmd\ta_APO.obj + -del ..\..\..\..\..\temp\cmd\ta_AROON.obj + -del ..\..\..\..\..\temp\cmd\ta_AROONOSC.obj + -del ..\..\..\..\..\temp\cmd\ta_ASIN.obj + -del ..\..\..\..\..\temp\cmd\ta_ATAN.obj + -del ..\..\..\..\..\temp\cmd\ta_ATR.obj + -del ..\..\..\..\..\temp\cmd\ta_AVGPRICE.obj + -del ..\..\..\..\..\temp\cmd\ta_BBANDS.obj + -del ..\..\..\..\..\temp\cmd\ta_BETA.obj + -del ..\..\..\..\..\temp\cmd\ta_BOP.obj + -del ..\..\..\..\..\temp\cmd\ta_CCI.obj + -del ..\..\..\..\..\temp\cmd\ta_CDL2CROWS.obj + -del ..\..\..\..\..\temp\cmd\ta_CDL3BLACKCROWS.obj + -del ..\..\..\..\..\temp\cmd\ta_CDL3INSIDE.obj + -del ..\..\..\..\..\temp\cmd\ta_CDL3LINESTRIKE.obj + -del ..\..\..\..\..\temp\cmd\ta_CDL3OUTSIDE.obj + -del ..\..\..\..\..\temp\cmd\ta_CDL3STARSINSOUTH.obj + -del ..\..\..\..\..\temp\cmd\ta_CDL3WHITESOLDIERS.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLABANDONEDBABY.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLADVANCEBLOCK.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLBELTHOLD.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLBREAKAWAY.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLCLOSINGMARUBOZU.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLCONCEALBABYSWALL.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLCOUNTERATTACK.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLDARKCLOUDCOVER.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLDOJI.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLDOJISTAR.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLDRAGONFLYDOJI.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLENGULFING.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLEVENINGDOJISTAR.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLEVENINGSTAR.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLGAPSIDESIDEWHITE.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLGRAVESTONEDOJI.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLHAMMER.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLHANGINGMAN.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLHARAMI.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLHARAMICROSS.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLHIGHWAVE.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLHIKKAKE.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLHIKKAKEMOD.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLHOMINGPIGEON.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLIDENTICAL3CROWS.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLINNECK.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLINVERTEDHAMMER.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLKICKING.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLKICKINGBYLENGTH.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLLADDERBOTTOM.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLLONGLEGGEDDOJI.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLLONGLINE.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLMARUBOZU.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLMATCHINGLOW.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLMATHOLD.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLMORNINGDOJISTAR.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLMORNINGSTAR.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLONNECK.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLPIERCING.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLRICKSHAWMAN.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLRISEFALL3METHODS.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLSEPARATINGLINES.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLSHOOTINGSTAR.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLSHORTLINE.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLSPINNINGTOP.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLSTALLEDPATTERN.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLSTICKSANDWICH.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLTAKURI.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLTASUKIGAP.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLTHRUSTING.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLTRISTAR.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLUNIQUE3RIVER.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLUPSIDEGAP2CROWS.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLXSIDEGAP3METHODS.obj + -del ..\..\..\..\..\temp\cmd\ta_CEIL.obj + -del ..\..\..\..\..\temp\cmd\ta_CMO.obj + -del ..\..\..\..\..\temp\cmd\ta_CORREL.obj + -del ..\..\..\..\..\temp\cmd\ta_COS.obj + -del ..\..\..\..\..\temp\cmd\ta_COSH.obj + -del ..\..\..\..\..\temp\cmd\ta_DEMA.obj + -del ..\..\..\..\..\temp\cmd\ta_DIV.obj + -del ..\..\..\..\..\temp\cmd\ta_DX.obj + -del ..\..\..\..\..\temp\cmd\ta_EMA.obj + -del ..\..\..\..\..\temp\cmd\ta_EXP.obj + -del ..\..\..\..\..\temp\cmd\ta_FLOOR.obj + -del ..\..\..\..\..\temp\cmd\ta_HT_DCPERIOD.obj + -del ..\..\..\..\..\temp\cmd\ta_HT_DCPHASE.obj + -del ..\..\..\..\..\temp\cmd\ta_HT_PHASOR.obj + -del ..\..\..\..\..\temp\cmd\ta_HT_SINE.obj + -del ..\..\..\..\..\temp\cmd\ta_HT_TRENDLINE.obj + -del ..\..\..\..\..\temp\cmd\ta_HT_TRENDMODE.obj + -del ..\..\..\..\..\temp\cmd\ta_KAMA.obj + -del ..\..\..\..\..\temp\cmd\ta_LINEARREG.obj + -del ..\..\..\..\..\temp\cmd\ta_LINEARREG_ANGLE.obj + -del ..\..\..\..\..\temp\cmd\ta_LINEARREG_INTERCEPT.obj + -del ..\..\..\..\..\temp\cmd\ta_LINEARREG_SLOPE.obj + -del ..\..\..\..\..\temp\cmd\ta_LN.obj + -del ..\..\..\..\..\temp\cmd\ta_LOG10.obj + -del ..\..\..\..\..\temp\cmd\ta_MA.obj + -del ..\..\..\..\..\temp\cmd\ta_MACD.obj + -del ..\..\..\..\..\temp\cmd\ta_MACDEXT.obj + -del ..\..\..\..\..\temp\cmd\ta_MACDFIX.obj + -del ..\..\..\..\..\temp\cmd\ta_MAMA.obj + -del ..\..\..\..\..\temp\cmd\ta_MAVP.obj + -del ..\..\..\..\..\temp\cmd\ta_MAX.obj + -del ..\..\..\..\..\temp\cmd\ta_MAXINDEX.obj + -del ..\..\..\..\..\temp\cmd\ta_MEDPRICE.obj + -del ..\..\..\..\..\temp\cmd\ta_MFI.obj + -del ..\..\..\..\..\temp\cmd\ta_MIDPOINT.obj + -del ..\..\..\..\..\temp\cmd\ta_MIDPRICE.obj + -del ..\..\..\..\..\temp\cmd\ta_MIN.obj + -del ..\..\..\..\..\temp\cmd\ta_MININDEX.obj + -del ..\..\..\..\..\temp\cmd\ta_MINMAX.obj + -del ..\..\..\..\..\temp\cmd\ta_MINMAXINDEX.obj + -del ..\..\..\..\..\temp\cmd\ta_MINUS_DI.obj + -del ..\..\..\..\..\temp\cmd\ta_MINUS_DM.obj + -del ..\..\..\..\..\temp\cmd\ta_MOM.obj + -del ..\..\..\..\..\temp\cmd\ta_MULT.obj + -del ..\..\..\..\..\temp\cmd\ta_NATR.obj + -del ..\..\..\..\..\temp\cmd\ta_OBV.obj + -del ..\..\..\..\..\temp\cmd\ta_PLUS_DI.obj + -del ..\..\..\..\..\temp\cmd\ta_PLUS_DM.obj + -del ..\..\..\..\..\temp\cmd\ta_PPO.obj + -del ..\..\..\..\..\temp\cmd\ta_ROC.obj + -del ..\..\..\..\..\temp\cmd\ta_ROCP.obj + -del ..\..\..\..\..\temp\cmd\ta_ROCR.obj + -del ..\..\..\..\..\temp\cmd\ta_ROCR100.obj + -del ..\..\..\..\..\temp\cmd\ta_RSI.obj + -del ..\..\..\..\..\temp\cmd\ta_SAR.obj + -del ..\..\..\..\..\temp\cmd\ta_SAREXT.obj + -del ..\..\..\..\..\temp\cmd\ta_SIN.obj + -del ..\..\..\..\..\temp\cmd\ta_SINH.obj + -del ..\..\..\..\..\temp\cmd\ta_SMA.obj + -del ..\..\..\..\..\temp\cmd\ta_SQRT.obj + -del ..\..\..\..\..\temp\cmd\ta_STDDEV.obj + -del ..\..\..\..\..\temp\cmd\ta_STOCH.obj + -del ..\..\..\..\..\temp\cmd\ta_STOCHF.obj + -del ..\..\..\..\..\temp\cmd\ta_STOCHRSI.obj + -del ..\..\..\..\..\temp\cmd\ta_SUB.obj + -del ..\..\..\..\..\temp\cmd\ta_SUM.obj + -del ..\..\..\..\..\temp\cmd\ta_T3.obj + -del ..\..\..\..\..\temp\cmd\ta_TAN.obj + -del ..\..\..\..\..\temp\cmd\ta_TANH.obj + -del ..\..\..\..\..\temp\cmd\ta_TEMA.obj + -del ..\..\..\..\..\temp\cmd\ta_TRANGE.obj + -del ..\..\..\..\..\temp\cmd\ta_TRIMA.obj + -del ..\..\..\..\..\temp\cmd\ta_TRIX.obj + -del ..\..\..\..\..\temp\cmd\ta_TSF.obj + -del ..\..\..\..\..\temp\cmd\ta_TYPPRICE.obj + -del ..\..\..\..\..\temp\cmd\ta_ULTOSC.obj + -del ..\..\..\..\..\temp\cmd\ta_VAR.obj + -del ..\..\..\..\..\temp\cmd\ta_WCLPRICE.obj + -del ..\..\..\..\..\temp\cmd\ta_WILLR.obj + -del ..\..\..\..\..\temp\cmd\ta_WMA.obj + -del $(TARGET) + -del ta_func_cmd.tds + -del ../../../../../bin/*.map + -del ../../../../../bin/*._xe + -del ../../../../../bin/*.tds + -del ../../../../../bin/*.pdb + -del ../../../../../bin/*.pbo + -del ../../../../../bin/*.pbi + -del ../../../../../bin/*.pbt + -del ../../../../../temp/cmd/*.pch + -del ../../../../../temp/cmd/*.idb + -del ../../../../../temp/cmd/ta_func/*.pch + -del ../../../../../temp/cmd/ta_func/*.idb + -del ../../../../../temp/cmd/ta_func/*.obj + +####### Compile + +..\..\..\..\..\temp\cmd\ta_utility.obj: ..\..\..\..\..\src\ta_func\ta_utility.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_utility.obj ..\..\..\..\..\src\ta_func\ta_utility.c + +..\..\..\..\..\temp\cmd\ta_ACOS.obj: ..\..\..\..\..\src\ta_func\ta_ACOS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_ACOS.obj ..\..\..\..\..\src\ta_func\ta_ACOS.c + +..\..\..\..\..\temp\cmd\ta_AD.obj: ..\..\..\..\..\src\ta_func\ta_AD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_AD.obj ..\..\..\..\..\src\ta_func\ta_AD.c + +..\..\..\..\..\temp\cmd\ta_ADD.obj: ..\..\..\..\..\src\ta_func\ta_ADD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_ADD.obj ..\..\..\..\..\src\ta_func\ta_ADD.c + +..\..\..\..\..\temp\cmd\ta_ADOSC.obj: ..\..\..\..\..\src\ta_func\ta_ADOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_ADOSC.obj ..\..\..\..\..\src\ta_func\ta_ADOSC.c + +..\..\..\..\..\temp\cmd\ta_ADX.obj: ..\..\..\..\..\src\ta_func\ta_ADX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_ADX.obj ..\..\..\..\..\src\ta_func\ta_ADX.c + +..\..\..\..\..\temp\cmd\ta_ADXR.obj: ..\..\..\..\..\src\ta_func\ta_ADXR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_ADXR.obj ..\..\..\..\..\src\ta_func\ta_ADXR.c + +..\..\..\..\..\temp\cmd\ta_APO.obj: ..\..\..\..\..\src\ta_func\ta_APO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_APO.obj ..\..\..\..\..\src\ta_func\ta_APO.c + +..\..\..\..\..\temp\cmd\ta_AROON.obj: ..\..\..\..\..\src\ta_func\ta_AROON.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_AROON.obj ..\..\..\..\..\src\ta_func\ta_AROON.c + +..\..\..\..\..\temp\cmd\ta_AROONOSC.obj: ..\..\..\..\..\src\ta_func\ta_AROONOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_AROONOSC.obj ..\..\..\..\..\src\ta_func\ta_AROONOSC.c + +..\..\..\..\..\temp\cmd\ta_ASIN.obj: ..\..\..\..\..\src\ta_func\ta_ASIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_ASIN.obj ..\..\..\..\..\src\ta_func\ta_ASIN.c + +..\..\..\..\..\temp\cmd\ta_ATAN.obj: ..\..\..\..\..\src\ta_func\ta_ATAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_ATAN.obj ..\..\..\..\..\src\ta_func\ta_ATAN.c + +..\..\..\..\..\temp\cmd\ta_ATR.obj: ..\..\..\..\..\src\ta_func\ta_ATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_ATR.obj ..\..\..\..\..\src\ta_func\ta_ATR.c + +..\..\..\..\..\temp\cmd\ta_AVGPRICE.obj: ..\..\..\..\..\src\ta_func\ta_AVGPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_AVGPRICE.obj ..\..\..\..\..\src\ta_func\ta_AVGPRICE.c + +..\..\..\..\..\temp\cmd\ta_BBANDS.obj: ..\..\..\..\..\src\ta_func\ta_BBANDS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_BBANDS.obj ..\..\..\..\..\src\ta_func\ta_BBANDS.c + +..\..\..\..\..\temp\cmd\ta_BETA.obj: ..\..\..\..\..\src\ta_func\ta_BETA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_BETA.obj ..\..\..\..\..\src\ta_func\ta_BETA.c + +..\..\..\..\..\temp\cmd\ta_BOP.obj: ..\..\..\..\..\src\ta_func\ta_BOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_BOP.obj ..\..\..\..\..\src\ta_func\ta_BOP.c + +..\..\..\..\..\temp\cmd\ta_CCI.obj: ..\..\..\..\..\src\ta_func\ta_CCI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CCI.obj ..\..\..\..\..\src\ta_func\ta_CCI.c + +..\..\..\..\..\temp\cmd\ta_CDL2CROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDL2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDL2CROWS.obj ..\..\..\..\..\src\ta_func\ta_CDL2CROWS.c + +..\..\..\..\..\temp\cmd\ta_CDL3BLACKCROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDL3BLACKCROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDL3BLACKCROWS.obj ..\..\..\..\..\src\ta_func\ta_CDL3BLACKCROWS.c + +..\..\..\..\..\temp\cmd\ta_CDL3INSIDE.obj: ..\..\..\..\..\src\ta_func\ta_CDL3INSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDL3INSIDE.obj ..\..\..\..\..\src\ta_func\ta_CDL3INSIDE.c + +..\..\..\..\..\temp\cmd\ta_CDL3LINESTRIKE.obj: ..\..\..\..\..\src\ta_func\ta_CDL3LINESTRIKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDL3LINESTRIKE.obj ..\..\..\..\..\src\ta_func\ta_CDL3LINESTRIKE.c + +..\..\..\..\..\temp\cmd\ta_CDL3OUTSIDE.obj: ..\..\..\..\..\src\ta_func\ta_CDL3OUTSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDL3OUTSIDE.obj ..\..\..\..\..\src\ta_func\ta_CDL3OUTSIDE.c + +..\..\..\..\..\temp\cmd\ta_CDL3STARSINSOUTH.obj: ..\..\..\..\..\src\ta_func\ta_CDL3STARSINSOUTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDL3STARSINSOUTH.obj ..\..\..\..\..\src\ta_func\ta_CDL3STARSINSOUTH.c + +..\..\..\..\..\temp\cmd\ta_CDL3WHITESOLDIERS.obj: ..\..\..\..\..\src\ta_func\ta_CDL3WHITESOLDIERS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDL3WHITESOLDIERS.obj ..\..\..\..\..\src\ta_func\ta_CDL3WHITESOLDIERS.c + +..\..\..\..\..\temp\cmd\ta_CDLABANDONEDBABY.obj: ..\..\..\..\..\src\ta_func\ta_CDLABANDONEDBABY.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLABANDONEDBABY.obj ..\..\..\..\..\src\ta_func\ta_CDLABANDONEDBABY.c + +..\..\..\..\..\temp\cmd\ta_CDLADVANCEBLOCK.obj: ..\..\..\..\..\src\ta_func\ta_CDLADVANCEBLOCK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLADVANCEBLOCK.obj ..\..\..\..\..\src\ta_func\ta_CDLADVANCEBLOCK.c + +..\..\..\..\..\temp\cmd\ta_CDLBELTHOLD.obj: ..\..\..\..\..\src\ta_func\ta_CDLBELTHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLBELTHOLD.obj ..\..\..\..\..\src\ta_func\ta_CDLBELTHOLD.c + +..\..\..\..\..\temp\cmd\ta_CDLBREAKAWAY.obj: ..\..\..\..\..\src\ta_func\ta_CDLBREAKAWAY.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLBREAKAWAY.obj ..\..\..\..\..\src\ta_func\ta_CDLBREAKAWAY.c + +..\..\..\..\..\temp\cmd\ta_CDLCLOSINGMARUBOZU.obj: ..\..\..\..\..\src\ta_func\ta_CDLCLOSINGMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLCLOSINGMARUBOZU.obj ..\..\..\..\..\src\ta_func\ta_CDLCLOSINGMARUBOZU.c + +..\..\..\..\..\temp\cmd\ta_CDLCONCEALBABYSWALL.obj: ..\..\..\..\..\src\ta_func\ta_CDLCONCEALBABYSWALL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLCONCEALBABYSWALL.obj ..\..\..\..\..\src\ta_func\ta_CDLCONCEALBABYSWALL.c + +..\..\..\..\..\temp\cmd\ta_CDLCOUNTERATTACK.obj: ..\..\..\..\..\src\ta_func\ta_CDLCOUNTERATTACK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLCOUNTERATTACK.obj ..\..\..\..\..\src\ta_func\ta_CDLCOUNTERATTACK.c + +..\..\..\..\..\temp\cmd\ta_CDLDARKCLOUDCOVER.obj: ..\..\..\..\..\src\ta_func\ta_CDLDARKCLOUDCOVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLDARKCLOUDCOVER.obj ..\..\..\..\..\src\ta_func\ta_CDLDARKCLOUDCOVER.c + +..\..\..\..\..\temp\cmd\ta_CDLDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLDOJI.c + +..\..\..\..\..\temp\cmd\ta_CDLDOJISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLDOJISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLDOJISTAR.c + +..\..\..\..\..\temp\cmd\ta_CDLDRAGONFLYDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLDRAGONFLYDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLDRAGONFLYDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLDRAGONFLYDOJI.c + +..\..\..\..\..\temp\cmd\ta_CDLENGULFING.obj: ..\..\..\..\..\src\ta_func\ta_CDLENGULFING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLENGULFING.obj ..\..\..\..\..\src\ta_func\ta_CDLENGULFING.c + +..\..\..\..\..\temp\cmd\ta_CDLEVENINGDOJISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLEVENINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLEVENINGDOJISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLEVENINGDOJISTAR.c + +..\..\..\..\..\temp\cmd\ta_CDLEVENINGSTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLEVENINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLEVENINGSTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLEVENINGSTAR.c + +..\..\..\..\..\temp\cmd\ta_CDLGAPSIDESIDEWHITE.obj: ..\..\..\..\..\src\ta_func\ta_CDLGAPSIDESIDEWHITE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLGAPSIDESIDEWHITE.obj ..\..\..\..\..\src\ta_func\ta_CDLGAPSIDESIDEWHITE.c + +..\..\..\..\..\temp\cmd\ta_CDLGRAVESTONEDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLGRAVESTONEDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLGRAVESTONEDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLGRAVESTONEDOJI.c + +..\..\..\..\..\temp\cmd\ta_CDLHAMMER.obj: ..\..\..\..\..\src\ta_func\ta_CDLHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLHAMMER.obj ..\..\..\..\..\src\ta_func\ta_CDLHAMMER.c + +..\..\..\..\..\temp\cmd\ta_CDLHANGINGMAN.obj: ..\..\..\..\..\src\ta_func\ta_CDLHANGINGMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLHANGINGMAN.obj ..\..\..\..\..\src\ta_func\ta_CDLHANGINGMAN.c + +..\..\..\..\..\temp\cmd\ta_CDLHARAMI.obj: ..\..\..\..\..\src\ta_func\ta_CDLHARAMI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLHARAMI.obj ..\..\..\..\..\src\ta_func\ta_CDLHARAMI.c + +..\..\..\..\..\temp\cmd\ta_CDLHARAMICROSS.obj: ..\..\..\..\..\src\ta_func\ta_CDLHARAMICROSS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLHARAMICROSS.obj ..\..\..\..\..\src\ta_func\ta_CDLHARAMICROSS.c + +..\..\..\..\..\temp\cmd\ta_CDLHIGHWAVE.obj: ..\..\..\..\..\src\ta_func\ta_CDLHIGHWAVE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLHIGHWAVE.obj ..\..\..\..\..\src\ta_func\ta_CDLHIGHWAVE.c + +..\..\..\..\..\temp\cmd\ta_CDLHIKKAKE.obj: ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLHIKKAKE.obj ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKE.c + +..\..\..\..\..\temp\cmd\ta_CDLHIKKAKEMOD.obj: ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKEMOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLHIKKAKEMOD.obj ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKEMOD.c + +..\..\..\..\..\temp\cmd\ta_CDLHOMINGPIGEON.obj: ..\..\..\..\..\src\ta_func\ta_CDLHOMINGPIGEON.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLHOMINGPIGEON.obj ..\..\..\..\..\src\ta_func\ta_CDLHOMINGPIGEON.c + +..\..\..\..\..\temp\cmd\ta_CDLIDENTICAL3CROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDLIDENTICAL3CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLIDENTICAL3CROWS.obj ..\..\..\..\..\src\ta_func\ta_CDLIDENTICAL3CROWS.c + +..\..\..\..\..\temp\cmd\ta_CDLINNECK.obj: ..\..\..\..\..\src\ta_func\ta_CDLINNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLINNECK.obj ..\..\..\..\..\src\ta_func\ta_CDLINNECK.c + +..\..\..\..\..\temp\cmd\ta_CDLINVERTEDHAMMER.obj: ..\..\..\..\..\src\ta_func\ta_CDLINVERTEDHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLINVERTEDHAMMER.obj ..\..\..\..\..\src\ta_func\ta_CDLINVERTEDHAMMER.c + +..\..\..\..\..\temp\cmd\ta_CDLKICKING.obj: ..\..\..\..\..\src\ta_func\ta_CDLKICKING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLKICKING.obj ..\..\..\..\..\src\ta_func\ta_CDLKICKING.c + +..\..\..\..\..\temp\cmd\ta_CDLKICKINGBYLENGTH.obj: ..\..\..\..\..\src\ta_func\ta_CDLKICKINGBYLENGTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLKICKINGBYLENGTH.obj ..\..\..\..\..\src\ta_func\ta_CDLKICKINGBYLENGTH.c + +..\..\..\..\..\temp\cmd\ta_CDLLADDERBOTTOM.obj: ..\..\..\..\..\src\ta_func\ta_CDLLADDERBOTTOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLLADDERBOTTOM.obj ..\..\..\..\..\src\ta_func\ta_CDLLADDERBOTTOM.c + +..\..\..\..\..\temp\cmd\ta_CDLLONGLEGGEDDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLLONGLEGGEDDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLLONGLEGGEDDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLLONGLEGGEDDOJI.c + +..\..\..\..\..\temp\cmd\ta_CDLLONGLINE.obj: ..\..\..\..\..\src\ta_func\ta_CDLLONGLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLLONGLINE.obj ..\..\..\..\..\src\ta_func\ta_CDLLONGLINE.c + +..\..\..\..\..\temp\cmd\ta_CDLMARUBOZU.obj: ..\..\..\..\..\src\ta_func\ta_CDLMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLMARUBOZU.obj ..\..\..\..\..\src\ta_func\ta_CDLMARUBOZU.c + +..\..\..\..\..\temp\cmd\ta_CDLMATCHINGLOW.obj: ..\..\..\..\..\src\ta_func\ta_CDLMATCHINGLOW.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLMATCHINGLOW.obj ..\..\..\..\..\src\ta_func\ta_CDLMATCHINGLOW.c + +..\..\..\..\..\temp\cmd\ta_CDLMATHOLD.obj: ..\..\..\..\..\src\ta_func\ta_CDLMATHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLMATHOLD.obj ..\..\..\..\..\src\ta_func\ta_CDLMATHOLD.c + +..\..\..\..\..\temp\cmd\ta_CDLMORNINGDOJISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLMORNINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLMORNINGDOJISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLMORNINGDOJISTAR.c + +..\..\..\..\..\temp\cmd\ta_CDLMORNINGSTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLMORNINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLMORNINGSTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLMORNINGSTAR.c + +..\..\..\..\..\temp\cmd\ta_CDLONNECK.obj: ..\..\..\..\..\src\ta_func\ta_CDLONNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLONNECK.obj ..\..\..\..\..\src\ta_func\ta_CDLONNECK.c + +..\..\..\..\..\temp\cmd\ta_CDLPIERCING.obj: ..\..\..\..\..\src\ta_func\ta_CDLPIERCING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLPIERCING.obj ..\..\..\..\..\src\ta_func\ta_CDLPIERCING.c + +..\..\..\..\..\temp\cmd\ta_CDLRICKSHAWMAN.obj: ..\..\..\..\..\src\ta_func\ta_CDLRICKSHAWMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLRICKSHAWMAN.obj ..\..\..\..\..\src\ta_func\ta_CDLRICKSHAWMAN.c + +..\..\..\..\..\temp\cmd\ta_CDLRISEFALL3METHODS.obj: ..\..\..\..\..\src\ta_func\ta_CDLRISEFALL3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLRISEFALL3METHODS.obj ..\..\..\..\..\src\ta_func\ta_CDLRISEFALL3METHODS.c + +..\..\..\..\..\temp\cmd\ta_CDLSEPARATINGLINES.obj: ..\..\..\..\..\src\ta_func\ta_CDLSEPARATINGLINES.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLSEPARATINGLINES.obj ..\..\..\..\..\src\ta_func\ta_CDLSEPARATINGLINES.c + +..\..\..\..\..\temp\cmd\ta_CDLSHOOTINGSTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLSHOOTINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLSHOOTINGSTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLSHOOTINGSTAR.c + +..\..\..\..\..\temp\cmd\ta_CDLSHORTLINE.obj: ..\..\..\..\..\src\ta_func\ta_CDLSHORTLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLSHORTLINE.obj ..\..\..\..\..\src\ta_func\ta_CDLSHORTLINE.c + +..\..\..\..\..\temp\cmd\ta_CDLSPINNINGTOP.obj: ..\..\..\..\..\src\ta_func\ta_CDLSPINNINGTOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLSPINNINGTOP.obj ..\..\..\..\..\src\ta_func\ta_CDLSPINNINGTOP.c + +..\..\..\..\..\temp\cmd\ta_CDLSTALLEDPATTERN.obj: ..\..\..\..\..\src\ta_func\ta_CDLSTALLEDPATTERN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLSTALLEDPATTERN.obj ..\..\..\..\..\src\ta_func\ta_CDLSTALLEDPATTERN.c + +..\..\..\..\..\temp\cmd\ta_CDLSTICKSANDWICH.obj: ..\..\..\..\..\src\ta_func\ta_CDLSTICKSANDWICH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLSTICKSANDWICH.obj ..\..\..\..\..\src\ta_func\ta_CDLSTICKSANDWICH.c + +..\..\..\..\..\temp\cmd\ta_CDLTAKURI.obj: ..\..\..\..\..\src\ta_func\ta_CDLTAKURI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLTAKURI.obj ..\..\..\..\..\src\ta_func\ta_CDLTAKURI.c + +..\..\..\..\..\temp\cmd\ta_CDLTASUKIGAP.obj: ..\..\..\..\..\src\ta_func\ta_CDLTASUKIGAP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLTASUKIGAP.obj ..\..\..\..\..\src\ta_func\ta_CDLTASUKIGAP.c + +..\..\..\..\..\temp\cmd\ta_CDLTHRUSTING.obj: ..\..\..\..\..\src\ta_func\ta_CDLTHRUSTING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLTHRUSTING.obj ..\..\..\..\..\src\ta_func\ta_CDLTHRUSTING.c + +..\..\..\..\..\temp\cmd\ta_CDLTRISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLTRISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLTRISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLTRISTAR.c + +..\..\..\..\..\temp\cmd\ta_CDLUNIQUE3RIVER.obj: ..\..\..\..\..\src\ta_func\ta_CDLUNIQUE3RIVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLUNIQUE3RIVER.obj ..\..\..\..\..\src\ta_func\ta_CDLUNIQUE3RIVER.c + +..\..\..\..\..\temp\cmd\ta_CDLUPSIDEGAP2CROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDLUPSIDEGAP2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLUPSIDEGAP2CROWS.obj ..\..\..\..\..\src\ta_func\ta_CDLUPSIDEGAP2CROWS.c + +..\..\..\..\..\temp\cmd\ta_CDLXSIDEGAP3METHODS.obj: ..\..\..\..\..\src\ta_func\ta_CDLXSIDEGAP3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLXSIDEGAP3METHODS.obj ..\..\..\..\..\src\ta_func\ta_CDLXSIDEGAP3METHODS.c + +..\..\..\..\..\temp\cmd\ta_CEIL.obj: ..\..\..\..\..\src\ta_func\ta_CEIL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CEIL.obj ..\..\..\..\..\src\ta_func\ta_CEIL.c + +..\..\..\..\..\temp\cmd\ta_CMO.obj: ..\..\..\..\..\src\ta_func\ta_CMO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CMO.obj ..\..\..\..\..\src\ta_func\ta_CMO.c + +..\..\..\..\..\temp\cmd\ta_CORREL.obj: ..\..\..\..\..\src\ta_func\ta_CORREL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CORREL.obj ..\..\..\..\..\src\ta_func\ta_CORREL.c + +..\..\..\..\..\temp\cmd\ta_COS.obj: ..\..\..\..\..\src\ta_func\ta_COS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_COS.obj ..\..\..\..\..\src\ta_func\ta_COS.c + +..\..\..\..\..\temp\cmd\ta_COSH.obj: ..\..\..\..\..\src\ta_func\ta_COSH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_COSH.obj ..\..\..\..\..\src\ta_func\ta_COSH.c + +..\..\..\..\..\temp\cmd\ta_DEMA.obj: ..\..\..\..\..\src\ta_func\ta_DEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_DEMA.obj ..\..\..\..\..\src\ta_func\ta_DEMA.c + +..\..\..\..\..\temp\cmd\ta_DIV.obj: ..\..\..\..\..\src\ta_func\ta_DIV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_DIV.obj ..\..\..\..\..\src\ta_func\ta_DIV.c + +..\..\..\..\..\temp\cmd\ta_DX.obj: ..\..\..\..\..\src\ta_func\ta_DX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_DX.obj ..\..\..\..\..\src\ta_func\ta_DX.c + +..\..\..\..\..\temp\cmd\ta_EMA.obj: ..\..\..\..\..\src\ta_func\ta_EMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_EMA.obj ..\..\..\..\..\src\ta_func\ta_EMA.c + +..\..\..\..\..\temp\cmd\ta_EXP.obj: ..\..\..\..\..\src\ta_func\ta_EXP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_EXP.obj ..\..\..\..\..\src\ta_func\ta_EXP.c + +..\..\..\..\..\temp\cmd\ta_FLOOR.obj: ..\..\..\..\..\src\ta_func\ta_FLOOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_FLOOR.obj ..\..\..\..\..\src\ta_func\ta_FLOOR.c + +..\..\..\..\..\temp\cmd\ta_HT_DCPERIOD.obj: ..\..\..\..\..\src\ta_func\ta_HT_DCPERIOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_HT_DCPERIOD.obj ..\..\..\..\..\src\ta_func\ta_HT_DCPERIOD.c + +..\..\..\..\..\temp\cmd\ta_HT_DCPHASE.obj: ..\..\..\..\..\src\ta_func\ta_HT_DCPHASE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_HT_DCPHASE.obj ..\..\..\..\..\src\ta_func\ta_HT_DCPHASE.c + +..\..\..\..\..\temp\cmd\ta_HT_PHASOR.obj: ..\..\..\..\..\src\ta_func\ta_HT_PHASOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_HT_PHASOR.obj ..\..\..\..\..\src\ta_func\ta_HT_PHASOR.c + +..\..\..\..\..\temp\cmd\ta_HT_SINE.obj: ..\..\..\..\..\src\ta_func\ta_HT_SINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_HT_SINE.obj ..\..\..\..\..\src\ta_func\ta_HT_SINE.c + +..\..\..\..\..\temp\cmd\ta_HT_TRENDLINE.obj: ..\..\..\..\..\src\ta_func\ta_HT_TRENDLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_HT_TRENDLINE.obj ..\..\..\..\..\src\ta_func\ta_HT_TRENDLINE.c + +..\..\..\..\..\temp\cmd\ta_HT_TRENDMODE.obj: ..\..\..\..\..\src\ta_func\ta_HT_TRENDMODE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_HT_TRENDMODE.obj ..\..\..\..\..\src\ta_func\ta_HT_TRENDMODE.c + +..\..\..\..\..\temp\cmd\ta_KAMA.obj: ..\..\..\..\..\src\ta_func\ta_KAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_KAMA.obj ..\..\..\..\..\src\ta_func\ta_KAMA.c + +..\..\..\..\..\temp\cmd\ta_LINEARREG.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_LINEARREG.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG.c + +..\..\..\..\..\temp\cmd\ta_LINEARREG_ANGLE.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG_ANGLE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_LINEARREG_ANGLE.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG_ANGLE.c + +..\..\..\..\..\temp\cmd\ta_LINEARREG_INTERCEPT.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG_INTERCEPT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_LINEARREG_INTERCEPT.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG_INTERCEPT.c + +..\..\..\..\..\temp\cmd\ta_LINEARREG_SLOPE.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG_SLOPE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_LINEARREG_SLOPE.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG_SLOPE.c + +..\..\..\..\..\temp\cmd\ta_LN.obj: ..\..\..\..\..\src\ta_func\ta_LN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_LN.obj ..\..\..\..\..\src\ta_func\ta_LN.c + +..\..\..\..\..\temp\cmd\ta_LOG10.obj: ..\..\..\..\..\src\ta_func\ta_LOG10.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_LOG10.obj ..\..\..\..\..\src\ta_func\ta_LOG10.c + +..\..\..\..\..\temp\cmd\ta_MA.obj: ..\..\..\..\..\src\ta_func\ta_MA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_MA.obj ..\..\..\..\..\src\ta_func\ta_MA.c + +..\..\..\..\..\temp\cmd\ta_MACD.obj: ..\..\..\..\..\src\ta_func\ta_MACD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_MACD.obj ..\..\..\..\..\src\ta_func\ta_MACD.c + +..\..\..\..\..\temp\cmd\ta_MACDEXT.obj: ..\..\..\..\..\src\ta_func\ta_MACDEXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_MACDEXT.obj ..\..\..\..\..\src\ta_func\ta_MACDEXT.c + +..\..\..\..\..\temp\cmd\ta_MACDFIX.obj: ..\..\..\..\..\src\ta_func\ta_MACDFIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_MACDFIX.obj ..\..\..\..\..\src\ta_func\ta_MACDFIX.c + +..\..\..\..\..\temp\cmd\ta_MAMA.obj: ..\..\..\..\..\src\ta_func\ta_MAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_MAMA.obj ..\..\..\..\..\src\ta_func\ta_MAMA.c + +..\..\..\..\..\temp\cmd\ta_MAVP.obj: ..\..\..\..\..\src\ta_func\ta_MAVP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_MAVP.obj ..\..\..\..\..\src\ta_func\ta_MAVP.c + +..\..\..\..\..\temp\cmd\ta_MAX.obj: ..\..\..\..\..\src\ta_func\ta_MAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_MAX.obj ..\..\..\..\..\src\ta_func\ta_MAX.c + +..\..\..\..\..\temp\cmd\ta_MAXINDEX.obj: ..\..\..\..\..\src\ta_func\ta_MAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_MAXINDEX.obj ..\..\..\..\..\src\ta_func\ta_MAXINDEX.c + +..\..\..\..\..\temp\cmd\ta_MEDPRICE.obj: ..\..\..\..\..\src\ta_func\ta_MEDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_MEDPRICE.obj ..\..\..\..\..\src\ta_func\ta_MEDPRICE.c + +..\..\..\..\..\temp\cmd\ta_MFI.obj: ..\..\..\..\..\src\ta_func\ta_MFI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_MFI.obj ..\..\..\..\..\src\ta_func\ta_MFI.c + +..\..\..\..\..\temp\cmd\ta_MIDPOINT.obj: ..\..\..\..\..\src\ta_func\ta_MIDPOINT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_MIDPOINT.obj ..\..\..\..\..\src\ta_func\ta_MIDPOINT.c + +..\..\..\..\..\temp\cmd\ta_MIDPRICE.obj: ..\..\..\..\..\src\ta_func\ta_MIDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_MIDPRICE.obj ..\..\..\..\..\src\ta_func\ta_MIDPRICE.c + +..\..\..\..\..\temp\cmd\ta_MIN.obj: ..\..\..\..\..\src\ta_func\ta_MIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_MIN.obj ..\..\..\..\..\src\ta_func\ta_MIN.c + +..\..\..\..\..\temp\cmd\ta_MININDEX.obj: ..\..\..\..\..\src\ta_func\ta_MININDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_MININDEX.obj ..\..\..\..\..\src\ta_func\ta_MININDEX.c + +..\..\..\..\..\temp\cmd\ta_MINMAX.obj: ..\..\..\..\..\src\ta_func\ta_MINMAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_MINMAX.obj ..\..\..\..\..\src\ta_func\ta_MINMAX.c + +..\..\..\..\..\temp\cmd\ta_MINMAXINDEX.obj: ..\..\..\..\..\src\ta_func\ta_MINMAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_MINMAXINDEX.obj ..\..\..\..\..\src\ta_func\ta_MINMAXINDEX.c + +..\..\..\..\..\temp\cmd\ta_MINUS_DI.obj: ..\..\..\..\..\src\ta_func\ta_MINUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_MINUS_DI.obj ..\..\..\..\..\src\ta_func\ta_MINUS_DI.c + +..\..\..\..\..\temp\cmd\ta_MINUS_DM.obj: ..\..\..\..\..\src\ta_func\ta_MINUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_MINUS_DM.obj ..\..\..\..\..\src\ta_func\ta_MINUS_DM.c + +..\..\..\..\..\temp\cmd\ta_MOM.obj: ..\..\..\..\..\src\ta_func\ta_MOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_MOM.obj ..\..\..\..\..\src\ta_func\ta_MOM.c + +..\..\..\..\..\temp\cmd\ta_MULT.obj: ..\..\..\..\..\src\ta_func\ta_MULT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_MULT.obj ..\..\..\..\..\src\ta_func\ta_MULT.c + +..\..\..\..\..\temp\cmd\ta_NATR.obj: ..\..\..\..\..\src\ta_func\ta_NATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_NATR.obj ..\..\..\..\..\src\ta_func\ta_NATR.c + +..\..\..\..\..\temp\cmd\ta_OBV.obj: ..\..\..\..\..\src\ta_func\ta_OBV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_OBV.obj ..\..\..\..\..\src\ta_func\ta_OBV.c + +..\..\..\..\..\temp\cmd\ta_PLUS_DI.obj: ..\..\..\..\..\src\ta_func\ta_PLUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_PLUS_DI.obj ..\..\..\..\..\src\ta_func\ta_PLUS_DI.c + +..\..\..\..\..\temp\cmd\ta_PLUS_DM.obj: ..\..\..\..\..\src\ta_func\ta_PLUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_PLUS_DM.obj ..\..\..\..\..\src\ta_func\ta_PLUS_DM.c + +..\..\..\..\..\temp\cmd\ta_PPO.obj: ..\..\..\..\..\src\ta_func\ta_PPO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_PPO.obj ..\..\..\..\..\src\ta_func\ta_PPO.c + +..\..\..\..\..\temp\cmd\ta_ROC.obj: ..\..\..\..\..\src\ta_func\ta_ROC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_ROC.obj ..\..\..\..\..\src\ta_func\ta_ROC.c + +..\..\..\..\..\temp\cmd\ta_ROCP.obj: ..\..\..\..\..\src\ta_func\ta_ROCP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_ROCP.obj ..\..\..\..\..\src\ta_func\ta_ROCP.c + +..\..\..\..\..\temp\cmd\ta_ROCR.obj: ..\..\..\..\..\src\ta_func\ta_ROCR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_ROCR.obj ..\..\..\..\..\src\ta_func\ta_ROCR.c + +..\..\..\..\..\temp\cmd\ta_ROCR100.obj: ..\..\..\..\..\src\ta_func\ta_ROCR100.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_ROCR100.obj ..\..\..\..\..\src\ta_func\ta_ROCR100.c + +..\..\..\..\..\temp\cmd\ta_RSI.obj: ..\..\..\..\..\src\ta_func\ta_RSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_RSI.obj ..\..\..\..\..\src\ta_func\ta_RSI.c + +..\..\..\..\..\temp\cmd\ta_SAR.obj: ..\..\..\..\..\src\ta_func\ta_SAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_SAR.obj ..\..\..\..\..\src\ta_func\ta_SAR.c + +..\..\..\..\..\temp\cmd\ta_SAREXT.obj: ..\..\..\..\..\src\ta_func\ta_SAREXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_SAREXT.obj ..\..\..\..\..\src\ta_func\ta_SAREXT.c + +..\..\..\..\..\temp\cmd\ta_SIN.obj: ..\..\..\..\..\src\ta_func\ta_SIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_SIN.obj ..\..\..\..\..\src\ta_func\ta_SIN.c + +..\..\..\..\..\temp\cmd\ta_SINH.obj: ..\..\..\..\..\src\ta_func\ta_SINH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_SINH.obj ..\..\..\..\..\src\ta_func\ta_SINH.c + +..\..\..\..\..\temp\cmd\ta_SMA.obj: ..\..\..\..\..\src\ta_func\ta_SMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_SMA.obj ..\..\..\..\..\src\ta_func\ta_SMA.c + +..\..\..\..\..\temp\cmd\ta_SQRT.obj: ..\..\..\..\..\src\ta_func\ta_SQRT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_SQRT.obj ..\..\..\..\..\src\ta_func\ta_SQRT.c + +..\..\..\..\..\temp\cmd\ta_STDDEV.obj: ..\..\..\..\..\src\ta_func\ta_STDDEV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_STDDEV.obj ..\..\..\..\..\src\ta_func\ta_STDDEV.c + +..\..\..\..\..\temp\cmd\ta_STOCH.obj: ..\..\..\..\..\src\ta_func\ta_STOCH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_STOCH.obj ..\..\..\..\..\src\ta_func\ta_STOCH.c + +..\..\..\..\..\temp\cmd\ta_STOCHF.obj: ..\..\..\..\..\src\ta_func\ta_STOCHF.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_STOCHF.obj ..\..\..\..\..\src\ta_func\ta_STOCHF.c + +..\..\..\..\..\temp\cmd\ta_STOCHRSI.obj: ..\..\..\..\..\src\ta_func\ta_STOCHRSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_STOCHRSI.obj ..\..\..\..\..\src\ta_func\ta_STOCHRSI.c + +..\..\..\..\..\temp\cmd\ta_SUB.obj: ..\..\..\..\..\src\ta_func\ta_SUB.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_SUB.obj ..\..\..\..\..\src\ta_func\ta_SUB.c + +..\..\..\..\..\temp\cmd\ta_SUM.obj: ..\..\..\..\..\src\ta_func\ta_SUM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_SUM.obj ..\..\..\..\..\src\ta_func\ta_SUM.c + +..\..\..\..\..\temp\cmd\ta_T3.obj: ..\..\..\..\..\src\ta_func\ta_T3.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_T3.obj ..\..\..\..\..\src\ta_func\ta_T3.c + +..\..\..\..\..\temp\cmd\ta_TAN.obj: ..\..\..\..\..\src\ta_func\ta_TAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_TAN.obj ..\..\..\..\..\src\ta_func\ta_TAN.c + +..\..\..\..\..\temp\cmd\ta_TANH.obj: ..\..\..\..\..\src\ta_func\ta_TANH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_TANH.obj ..\..\..\..\..\src\ta_func\ta_TANH.c + +..\..\..\..\..\temp\cmd\ta_TEMA.obj: ..\..\..\..\..\src\ta_func\ta_TEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_TEMA.obj ..\..\..\..\..\src\ta_func\ta_TEMA.c + +..\..\..\..\..\temp\cmd\ta_TRANGE.obj: ..\..\..\..\..\src\ta_func\ta_TRANGE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_TRANGE.obj ..\..\..\..\..\src\ta_func\ta_TRANGE.c + +..\..\..\..\..\temp\cmd\ta_TRIMA.obj: ..\..\..\..\..\src\ta_func\ta_TRIMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_TRIMA.obj ..\..\..\..\..\src\ta_func\ta_TRIMA.c + +..\..\..\..\..\temp\cmd\ta_TRIX.obj: ..\..\..\..\..\src\ta_func\ta_TRIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_TRIX.obj ..\..\..\..\..\src\ta_func\ta_TRIX.c + +..\..\..\..\..\temp\cmd\ta_TSF.obj: ..\..\..\..\..\src\ta_func\ta_TSF.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_TSF.obj ..\..\..\..\..\src\ta_func\ta_TSF.c + +..\..\..\..\..\temp\cmd\ta_TYPPRICE.obj: ..\..\..\..\..\src\ta_func\ta_TYPPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_TYPPRICE.obj ..\..\..\..\..\src\ta_func\ta_TYPPRICE.c + +..\..\..\..\..\temp\cmd\ta_ULTOSC.obj: ..\..\..\..\..\src\ta_func\ta_ULTOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_ULTOSC.obj ..\..\..\..\..\src\ta_func\ta_ULTOSC.c + +..\..\..\..\..\temp\cmd\ta_VAR.obj: ..\..\..\..\..\src\ta_func\ta_VAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_VAR.obj ..\..\..\..\..\src\ta_func\ta_VAR.c + +..\..\..\..\..\temp\cmd\ta_WCLPRICE.obj: ..\..\..\..\..\src\ta_func\ta_WCLPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_WCLPRICE.obj ..\..\..\..\..\src\ta_func\ta_WCLPRICE.c + +..\..\..\..\..\temp\cmd\ta_WILLR.obj: ..\..\..\..\..\src\ta_func\ta_WILLR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_WILLR.obj ..\..\..\..\..\src\ta_func\ta_WILLR.c + +..\..\..\..\..\temp\cmd\ta_WMA.obj: ..\..\..\..\..\src\ta_func\ta_WMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_WMA.obj ..\..\..\..\..\src\ta_func\ta_WMA.c + diff --git a/make/cmd/win32/borland/ta_libc/Makefile b/make/cmd/win32/borland/ta_libc/Makefile new file mode 100644 index 000000000..c673ccbb9 --- /dev/null +++ b/make/cmd/win32/borland/ta_libc/Makefile @@ -0,0 +1,1438 @@ +############################################################################# +# Makefile for building ta_libc_cmd +# Generated by tmake; +# Project: ta_libc/ta_libc +# Template: lib +############################################################################# + +!if !$d(BCB) +BCB = $(MAKEDIR)\.. +!endif + +####### Compiler, tools and options + +CC = bcc32 +CXX = bcc32 +CFLAGS = -x- -RT- -tWR -w -w-8004 -w-8071 -w-8057 -w-8080 -tWM -DTA_DEBUG -D_DEBUG -DWIN32 -DQT_THREAD_SUPPORT +CXXFLAGS= -x- -RT- -tWR -w -w-8004 -w-8071 -w-8057 -w-8080 -tWM -DTA_DEBUG -D_DEBUG -DWIN32 -DQT_THREAD_SUPPORT +INCPATH = -I"..\..\..\..\..\src\ta_common" -I"..\..\..\..\..\include" -I"..\..\..\..\..\src\ta_abstract" -I"..\..\..\..\..\src\ta_abstract\tables" -I"..\..\..\..\..\src\ta_abstract\frames" -I"$(QTDIR)\include" +LIB = tlib /C /P256 +MOC = moc +UIC = uic + +ZIP = zip -r -9 +DEF_FILE = +RES_FILE = + +####### Files + +HEADERS = +SOURCES = ..\..\..\..\..\src\ta_common\ta_global.c \ + ..\..\..\..\..\src\ta_common\ta_retcode.c \ + ..\..\..\..\..\src\ta_common\ta_version.c \ + ..\..\..\..\..\src\ta_abstract\ta_abstract.c \ + ..\..\..\..\..\src\ta_abstract\ta_def_ui.c \ + ..\..\..\..\..\src\ta_abstract\ta_func_api.c \ + ..\..\..\..\..\src\ta_abstract\ta_group_idx.c \ + ..\..\..\..\..\src\ta_abstract\frames\ta_frame.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_a.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_b.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_c.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_d.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_e.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_f.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_g.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_h.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_i.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_j.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_k.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_l.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_m.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_n.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_o.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_p.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_q.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_r.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_s.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_t.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_u.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_v.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_w.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_x.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_y.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_z.c \ + ..\..\..\..\..\src\ta_func\ta_utility.c \ + ..\..\..\..\..\src\ta_func\ta_ACOS.c \ + ..\..\..\..\..\src\ta_func\ta_AD.c \ + ..\..\..\..\..\src\ta_func\ta_ADD.c \ + ..\..\..\..\..\src\ta_func\ta_ADOSC.c \ + ..\..\..\..\..\src\ta_func\ta_ADX.c \ + ..\..\..\..\..\src\ta_func\ta_ADXR.c \ + ..\..\..\..\..\src\ta_func\ta_APO.c \ + ..\..\..\..\..\src\ta_func\ta_AROON.c \ + ..\..\..\..\..\src\ta_func\ta_AROONOSC.c \ + ..\..\..\..\..\src\ta_func\ta_ASIN.c \ + ..\..\..\..\..\src\ta_func\ta_ATAN.c \ + ..\..\..\..\..\src\ta_func\ta_ATR.c \ + ..\..\..\..\..\src\ta_func\ta_AVGPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_BBANDS.c \ + ..\..\..\..\..\src\ta_func\ta_BETA.c \ + ..\..\..\..\..\src\ta_func\ta_BOP.c \ + ..\..\..\..\..\src\ta_func\ta_CCI.c \ + ..\..\..\..\..\src\ta_func\ta_CDL2CROWS.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3BLACKCROWS.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3INSIDE.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3LINESTRIKE.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3OUTSIDE.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3STARSINSOUTH.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3WHITESOLDIERS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLABANDONEDBABY.c \ + ..\..\..\..\..\src\ta_func\ta_CDLADVANCEBLOCK.c \ + ..\..\..\..\..\src\ta_func\ta_CDLBELTHOLD.c \ + ..\..\..\..\..\src\ta_func\ta_CDLBREAKAWAY.c \ + ..\..\..\..\..\src\ta_func\ta_CDLCLOSINGMARUBOZU.c \ + ..\..\..\..\..\src\ta_func\ta_CDLCONCEALBABYSWALL.c \ + ..\..\..\..\..\src\ta_func\ta_CDLCOUNTERATTACK.c \ + ..\..\..\..\..\src\ta_func\ta_CDLDARKCLOUDCOVER.c \ + ..\..\..\..\..\src\ta_func\ta_CDLDOJI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLDOJISTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLDRAGONFLYDOJI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLENGULFING.c \ + ..\..\..\..\..\src\ta_func\ta_CDLEVENINGDOJISTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLEVENINGSTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLGAPSIDESIDEWHITE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLGRAVESTONEDOJI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHAMMER.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHANGINGMAN.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHARAMI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHARAMICROSS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHIGHWAVE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKEMOD.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHOMINGPIGEON.c \ + ..\..\..\..\..\src\ta_func\ta_CDLIDENTICAL3CROWS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLINNECK.c \ + ..\..\..\..\..\src\ta_func\ta_CDLINVERTEDHAMMER.c \ + ..\..\..\..\..\src\ta_func\ta_CDLKICKING.c \ + ..\..\..\..\..\src\ta_func\ta_CDLKICKINGBYLENGTH.c \ + ..\..\..\..\..\src\ta_func\ta_CDLLADDERBOTTOM.c \ + ..\..\..\..\..\src\ta_func\ta_CDLLONGLEGGEDDOJI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLLONGLINE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMARUBOZU.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMATCHINGLOW.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMATHOLD.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMORNINGDOJISTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMORNINGSTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLONNECK.c \ + ..\..\..\..\..\src\ta_func\ta_CDLPIERCING.c \ + ..\..\..\..\..\src\ta_func\ta_CDLRICKSHAWMAN.c \ + ..\..\..\..\..\src\ta_func\ta_CDLRISEFALL3METHODS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSEPARATINGLINES.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSHOOTINGSTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSHORTLINE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSPINNINGTOP.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSTALLEDPATTERN.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSTICKSANDWICH.c \ + ..\..\..\..\..\src\ta_func\ta_CDLTAKURI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLTASUKIGAP.c \ + ..\..\..\..\..\src\ta_func\ta_CDLTHRUSTING.c \ + ..\..\..\..\..\src\ta_func\ta_CDLTRISTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLUNIQUE3RIVER.c \ + ..\..\..\..\..\src\ta_func\ta_CDLUPSIDEGAP2CROWS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLXSIDEGAP3METHODS.c \ + ..\..\..\..\..\src\ta_func\ta_CEIL.c \ + ..\..\..\..\..\src\ta_func\ta_CMO.c \ + ..\..\..\..\..\src\ta_func\ta_CORREL.c \ + ..\..\..\..\..\src\ta_func\ta_COS.c \ + ..\..\..\..\..\src\ta_func\ta_COSH.c \ + ..\..\..\..\..\src\ta_func\ta_DEMA.c \ + ..\..\..\..\..\src\ta_func\ta_DIV.c \ + ..\..\..\..\..\src\ta_func\ta_DX.c \ + ..\..\..\..\..\src\ta_func\ta_EMA.c \ + ..\..\..\..\..\src\ta_func\ta_EXP.c \ + ..\..\..\..\..\src\ta_func\ta_FLOOR.c \ + ..\..\..\..\..\src\ta_func\ta_HT_DCPERIOD.c \ + ..\..\..\..\..\src\ta_func\ta_HT_DCPHASE.c \ + ..\..\..\..\..\src\ta_func\ta_HT_PHASOR.c \ + ..\..\..\..\..\src\ta_func\ta_HT_SINE.c \ + ..\..\..\..\..\src\ta_func\ta_HT_TRENDLINE.c \ + ..\..\..\..\..\src\ta_func\ta_HT_TRENDMODE.c \ + ..\..\..\..\..\src\ta_func\ta_KAMA.c \ + ..\..\..\..\..\src\ta_func\ta_LINEARREG.c \ + ..\..\..\..\..\src\ta_func\ta_LINEARREG_ANGLE.c \ + ..\..\..\..\..\src\ta_func\ta_LINEARREG_INTERCEPT.c \ + ..\..\..\..\..\src\ta_func\ta_LINEARREG_SLOPE.c \ + ..\..\..\..\..\src\ta_func\ta_LN.c \ + ..\..\..\..\..\src\ta_func\ta_LOG10.c \ + ..\..\..\..\..\src\ta_func\ta_MA.c \ + ..\..\..\..\..\src\ta_func\ta_MACD.c \ + ..\..\..\..\..\src\ta_func\ta_MACDEXT.c \ + ..\..\..\..\..\src\ta_func\ta_MACDFIX.c \ + ..\..\..\..\..\src\ta_func\ta_MAMA.c \ + ..\..\..\..\..\src\ta_func\ta_MAVP.c \ + ..\..\..\..\..\src\ta_func\ta_MAX.c \ + ..\..\..\..\..\src\ta_func\ta_MAXINDEX.c \ + ..\..\..\..\..\src\ta_func\ta_MEDPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_MFI.c \ + ..\..\..\..\..\src\ta_func\ta_MIDPOINT.c \ + ..\..\..\..\..\src\ta_func\ta_MIDPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_MIN.c \ + ..\..\..\..\..\src\ta_func\ta_MININDEX.c \ + ..\..\..\..\..\src\ta_func\ta_MINMAX.c \ + ..\..\..\..\..\src\ta_func\ta_MINMAXINDEX.c \ + ..\..\..\..\..\src\ta_func\ta_MINUS_DI.c \ + ..\..\..\..\..\src\ta_func\ta_MINUS_DM.c \ + ..\..\..\..\..\src\ta_func\ta_MOM.c \ + ..\..\..\..\..\src\ta_func\ta_MULT.c \ + ..\..\..\..\..\src\ta_func\ta_NATR.c \ + ..\..\..\..\..\src\ta_func\ta_OBV.c \ + ..\..\..\..\..\src\ta_func\ta_PLUS_DI.c \ + ..\..\..\..\..\src\ta_func\ta_PLUS_DM.c \ + ..\..\..\..\..\src\ta_func\ta_PPO.c \ + ..\..\..\..\..\src\ta_func\ta_ROC.c \ + ..\..\..\..\..\src\ta_func\ta_ROCP.c \ + ..\..\..\..\..\src\ta_func\ta_ROCR.c \ + ..\..\..\..\..\src\ta_func\ta_ROCR100.c \ + ..\..\..\..\..\src\ta_func\ta_RSI.c \ + ..\..\..\..\..\src\ta_func\ta_SAR.c \ + ..\..\..\..\..\src\ta_func\ta_SAREXT.c \ + ..\..\..\..\..\src\ta_func\ta_SIN.c \ + ..\..\..\..\..\src\ta_func\ta_SINH.c \ + ..\..\..\..\..\src\ta_func\ta_SMA.c \ + ..\..\..\..\..\src\ta_func\ta_SQRT.c \ + ..\..\..\..\..\src\ta_func\ta_STDDEV.c \ + ..\..\..\..\..\src\ta_func\ta_STOCH.c \ + ..\..\..\..\..\src\ta_func\ta_STOCHF.c \ + ..\..\..\..\..\src\ta_func\ta_STOCHRSI.c \ + ..\..\..\..\..\src\ta_func\ta_SUB.c \ + ..\..\..\..\..\src\ta_func\ta_SUM.c \ + ..\..\..\..\..\src\ta_func\ta_T3.c \ + ..\..\..\..\..\src\ta_func\ta_TAN.c \ + ..\..\..\..\..\src\ta_func\ta_TANH.c \ + ..\..\..\..\..\src\ta_func\ta_TEMA.c \ + ..\..\..\..\..\src\ta_func\ta_TRANGE.c \ + ..\..\..\..\..\src\ta_func\ta_TRIMA.c \ + ..\..\..\..\..\src\ta_func\ta_TRIX.c \ + ..\..\..\..\..\src\ta_func\ta_TSF.c \ + ..\..\..\..\..\src\ta_func\ta_TYPPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_ULTOSC.c \ + ..\..\..\..\..\src\ta_func\ta_VAR.c \ + ..\..\..\..\..\src\ta_func\ta_WCLPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_WILLR.c \ + ..\..\..\..\..\src\ta_func\ta_WMA.c +OBJECTS = ..\..\..\..\..\temp\cmd\ta_global.obj \ + ..\..\..\..\..\temp\cmd\ta_retcode.obj \ + ..\..\..\..\..\temp\cmd\ta_version.obj \ + ..\..\..\..\..\temp\cmd\ta_abstract.obj \ + ..\..\..\..\..\temp\cmd\ta_def_ui.obj \ + ..\..\..\..\..\temp\cmd\ta_func_api.obj \ + ..\..\..\..\..\temp\cmd\ta_group_idx.obj \ + ..\..\..\..\..\temp\cmd\ta_frame.obj \ + ..\..\..\..\..\temp\cmd\table_a.obj \ + ..\..\..\..\..\temp\cmd\table_b.obj \ + ..\..\..\..\..\temp\cmd\table_c.obj \ + ..\..\..\..\..\temp\cmd\table_d.obj \ + ..\..\..\..\..\temp\cmd\table_e.obj \ + ..\..\..\..\..\temp\cmd\table_f.obj \ + ..\..\..\..\..\temp\cmd\table_g.obj \ + ..\..\..\..\..\temp\cmd\table_h.obj \ + ..\..\..\..\..\temp\cmd\table_i.obj \ + ..\..\..\..\..\temp\cmd\table_j.obj \ + ..\..\..\..\..\temp\cmd\table_k.obj \ + ..\..\..\..\..\temp\cmd\table_l.obj \ + ..\..\..\..\..\temp\cmd\table_m.obj \ + ..\..\..\..\..\temp\cmd\table_n.obj \ + ..\..\..\..\..\temp\cmd\table_o.obj \ + ..\..\..\..\..\temp\cmd\table_p.obj \ + ..\..\..\..\..\temp\cmd\table_q.obj \ + ..\..\..\..\..\temp\cmd\table_r.obj \ + ..\..\..\..\..\temp\cmd\table_s.obj \ + ..\..\..\..\..\temp\cmd\table_t.obj \ + ..\..\..\..\..\temp\cmd\table_u.obj \ + ..\..\..\..\..\temp\cmd\table_v.obj \ + ..\..\..\..\..\temp\cmd\table_w.obj \ + ..\..\..\..\..\temp\cmd\table_x.obj \ + ..\..\..\..\..\temp\cmd\table_y.obj \ + ..\..\..\..\..\temp\cmd\table_z.obj \ + ..\..\..\..\..\temp\cmd\ta_utility.obj \ + ..\..\..\..\..\temp\cmd\ta_ACOS.obj \ + ..\..\..\..\..\temp\cmd\ta_AD.obj \ + ..\..\..\..\..\temp\cmd\ta_ADD.obj \ + ..\..\..\..\..\temp\cmd\ta_ADOSC.obj \ + ..\..\..\..\..\temp\cmd\ta_ADX.obj \ + ..\..\..\..\..\temp\cmd\ta_ADXR.obj \ + ..\..\..\..\..\temp\cmd\ta_APO.obj \ + ..\..\..\..\..\temp\cmd\ta_AROON.obj \ + ..\..\..\..\..\temp\cmd\ta_AROONOSC.obj \ + ..\..\..\..\..\temp\cmd\ta_ASIN.obj \ + ..\..\..\..\..\temp\cmd\ta_ATAN.obj \ + ..\..\..\..\..\temp\cmd\ta_ATR.obj \ + ..\..\..\..\..\temp\cmd\ta_AVGPRICE.obj \ + ..\..\..\..\..\temp\cmd\ta_BBANDS.obj \ + ..\..\..\..\..\temp\cmd\ta_BETA.obj \ + ..\..\..\..\..\temp\cmd\ta_BOP.obj \ + ..\..\..\..\..\temp\cmd\ta_CCI.obj \ + ..\..\..\..\..\temp\cmd\ta_CDL2CROWS.obj \ + ..\..\..\..\..\temp\cmd\ta_CDL3BLACKCROWS.obj \ + ..\..\..\..\..\temp\cmd\ta_CDL3INSIDE.obj \ + ..\..\..\..\..\temp\cmd\ta_CDL3LINESTRIKE.obj \ + ..\..\..\..\..\temp\cmd\ta_CDL3OUTSIDE.obj \ + ..\..\..\..\..\temp\cmd\ta_CDL3STARSINSOUTH.obj \ + ..\..\..\..\..\temp\cmd\ta_CDL3WHITESOLDIERS.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLABANDONEDBABY.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLADVANCEBLOCK.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLBELTHOLD.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLBREAKAWAY.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLCLOSINGMARUBOZU.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLCONCEALBABYSWALL.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLCOUNTERATTACK.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLDARKCLOUDCOVER.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLDOJI.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLDOJISTAR.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLDRAGONFLYDOJI.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLENGULFING.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLEVENINGDOJISTAR.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLEVENINGSTAR.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLGAPSIDESIDEWHITE.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLGRAVESTONEDOJI.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLHAMMER.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLHANGINGMAN.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLHARAMI.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLHARAMICROSS.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLHIGHWAVE.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLHIKKAKE.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLHIKKAKEMOD.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLHOMINGPIGEON.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLIDENTICAL3CROWS.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLINNECK.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLINVERTEDHAMMER.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLKICKING.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLKICKINGBYLENGTH.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLLADDERBOTTOM.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLLONGLEGGEDDOJI.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLLONGLINE.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLMARUBOZU.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLMATCHINGLOW.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLMATHOLD.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLMORNINGDOJISTAR.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLMORNINGSTAR.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLONNECK.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLPIERCING.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLRICKSHAWMAN.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLRISEFALL3METHODS.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLSEPARATINGLINES.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLSHOOTINGSTAR.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLSHORTLINE.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLSPINNINGTOP.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLSTALLEDPATTERN.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLSTICKSANDWICH.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLTAKURI.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLTASUKIGAP.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLTHRUSTING.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLTRISTAR.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLUNIQUE3RIVER.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLUPSIDEGAP2CROWS.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLXSIDEGAP3METHODS.obj \ + ..\..\..\..\..\temp\cmd\ta_CEIL.obj \ + ..\..\..\..\..\temp\cmd\ta_CMO.obj \ + ..\..\..\..\..\temp\cmd\ta_CORREL.obj \ + ..\..\..\..\..\temp\cmd\ta_COS.obj \ + ..\..\..\..\..\temp\cmd\ta_COSH.obj \ + ..\..\..\..\..\temp\cmd\ta_DEMA.obj \ + ..\..\..\..\..\temp\cmd\ta_DIV.obj \ + ..\..\..\..\..\temp\cmd\ta_DX.obj \ + ..\..\..\..\..\temp\cmd\ta_EMA.obj \ + ..\..\..\..\..\temp\cmd\ta_EXP.obj \ + ..\..\..\..\..\temp\cmd\ta_FLOOR.obj \ + ..\..\..\..\..\temp\cmd\ta_HT_DCPERIOD.obj \ + ..\..\..\..\..\temp\cmd\ta_HT_DCPHASE.obj \ + ..\..\..\..\..\temp\cmd\ta_HT_PHASOR.obj \ + ..\..\..\..\..\temp\cmd\ta_HT_SINE.obj \ + ..\..\..\..\..\temp\cmd\ta_HT_TRENDLINE.obj \ + ..\..\..\..\..\temp\cmd\ta_HT_TRENDMODE.obj \ + ..\..\..\..\..\temp\cmd\ta_KAMA.obj \ + ..\..\..\..\..\temp\cmd\ta_LINEARREG.obj \ + ..\..\..\..\..\temp\cmd\ta_LINEARREG_ANGLE.obj \ + ..\..\..\..\..\temp\cmd\ta_LINEARREG_INTERCEPT.obj \ + ..\..\..\..\..\temp\cmd\ta_LINEARREG_SLOPE.obj \ + ..\..\..\..\..\temp\cmd\ta_LN.obj \ + ..\..\..\..\..\temp\cmd\ta_LOG10.obj \ + ..\..\..\..\..\temp\cmd\ta_MA.obj \ + ..\..\..\..\..\temp\cmd\ta_MACD.obj \ + ..\..\..\..\..\temp\cmd\ta_MACDEXT.obj \ + ..\..\..\..\..\temp\cmd\ta_MACDFIX.obj \ + ..\..\..\..\..\temp\cmd\ta_MAMA.obj \ + ..\..\..\..\..\temp\cmd\ta_MAVP.obj \ + ..\..\..\..\..\temp\cmd\ta_MAX.obj \ + ..\..\..\..\..\temp\cmd\ta_MAXINDEX.obj \ + ..\..\..\..\..\temp\cmd\ta_MEDPRICE.obj \ + ..\..\..\..\..\temp\cmd\ta_MFI.obj \ + ..\..\..\..\..\temp\cmd\ta_MIDPOINT.obj \ + ..\..\..\..\..\temp\cmd\ta_MIDPRICE.obj \ + ..\..\..\..\..\temp\cmd\ta_MIN.obj \ + ..\..\..\..\..\temp\cmd\ta_MININDEX.obj \ + ..\..\..\..\..\temp\cmd\ta_MINMAX.obj \ + ..\..\..\..\..\temp\cmd\ta_MINMAXINDEX.obj \ + ..\..\..\..\..\temp\cmd\ta_MINUS_DI.obj \ + ..\..\..\..\..\temp\cmd\ta_MINUS_DM.obj \ + ..\..\..\..\..\temp\cmd\ta_MOM.obj \ + ..\..\..\..\..\temp\cmd\ta_MULT.obj \ + ..\..\..\..\..\temp\cmd\ta_NATR.obj \ + ..\..\..\..\..\temp\cmd\ta_OBV.obj \ + ..\..\..\..\..\temp\cmd\ta_PLUS_DI.obj \ + ..\..\..\..\..\temp\cmd\ta_PLUS_DM.obj \ + ..\..\..\..\..\temp\cmd\ta_PPO.obj \ + ..\..\..\..\..\temp\cmd\ta_ROC.obj \ + ..\..\..\..\..\temp\cmd\ta_ROCP.obj \ + ..\..\..\..\..\temp\cmd\ta_ROCR.obj \ + ..\..\..\..\..\temp\cmd\ta_ROCR100.obj \ + ..\..\..\..\..\temp\cmd\ta_RSI.obj \ + ..\..\..\..\..\temp\cmd\ta_SAR.obj \ + ..\..\..\..\..\temp\cmd\ta_SAREXT.obj \ + ..\..\..\..\..\temp\cmd\ta_SIN.obj \ + ..\..\..\..\..\temp\cmd\ta_SINH.obj \ + ..\..\..\..\..\temp\cmd\ta_SMA.obj \ + ..\..\..\..\..\temp\cmd\ta_SQRT.obj \ + ..\..\..\..\..\temp\cmd\ta_STDDEV.obj \ + ..\..\..\..\..\temp\cmd\ta_STOCH.obj \ + ..\..\..\..\..\temp\cmd\ta_STOCHF.obj \ + ..\..\..\..\..\temp\cmd\ta_STOCHRSI.obj \ + ..\..\..\..\..\temp\cmd\ta_SUB.obj \ + ..\..\..\..\..\temp\cmd\ta_SUM.obj \ + ..\..\..\..\..\temp\cmd\ta_T3.obj \ + ..\..\..\..\..\temp\cmd\ta_TAN.obj \ + ..\..\..\..\..\temp\cmd\ta_TANH.obj \ + ..\..\..\..\..\temp\cmd\ta_TEMA.obj \ + ..\..\..\..\..\temp\cmd\ta_TRANGE.obj \ + ..\..\..\..\..\temp\cmd\ta_TRIMA.obj \ + ..\..\..\..\..\temp\cmd\ta_TRIX.obj \ + ..\..\..\..\..\temp\cmd\ta_TSF.obj \ + ..\..\..\..\..\temp\cmd\ta_TYPPRICE.obj \ + ..\..\..\..\..\temp\cmd\ta_ULTOSC.obj \ + ..\..\..\..\..\temp\cmd\ta_VAR.obj \ + ..\..\..\..\..\temp\cmd\ta_WCLPRICE.obj \ + ..\..\..\..\..\temp\cmd\ta_WILLR.obj \ + ..\..\..\..\..\temp\cmd\ta_WMA.obj +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ..\..\..\..\..\lib\ta_libc_cmd.lib +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .c + +.cpp.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.cxx.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.cc.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.c.obj: + $(CC) -c $(CFLAGS) $(INCPATH) -o$@ $< + +####### Build rules + +all: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + -del $(TARGET) + $(LIB) $(TARGET) @&&| ++..\..\..\..\..\temp\cmd\ta_global.obj \ ++..\..\..\..\..\temp\cmd\ta_retcode.obj \ ++..\..\..\..\..\temp\cmd\ta_version.obj \ ++..\..\..\..\..\temp\cmd\ta_abstract.obj \ ++..\..\..\..\..\temp\cmd\ta_def_ui.obj \ ++..\..\..\..\..\temp\cmd\ta_func_api.obj \ ++..\..\..\..\..\temp\cmd\ta_group_idx.obj \ ++..\..\..\..\..\temp\cmd\ta_frame.obj \ ++..\..\..\..\..\temp\cmd\table_a.obj \ ++..\..\..\..\..\temp\cmd\table_b.obj \ ++..\..\..\..\..\temp\cmd\table_c.obj \ ++..\..\..\..\..\temp\cmd\table_d.obj \ ++..\..\..\..\..\temp\cmd\table_e.obj \ ++..\..\..\..\..\temp\cmd\table_f.obj \ ++..\..\..\..\..\temp\cmd\table_g.obj \ ++..\..\..\..\..\temp\cmd\table_h.obj \ ++..\..\..\..\..\temp\cmd\table_i.obj \ ++..\..\..\..\..\temp\cmd\table_j.obj \ ++..\..\..\..\..\temp\cmd\table_k.obj \ ++..\..\..\..\..\temp\cmd\table_l.obj \ ++..\..\..\..\..\temp\cmd\table_m.obj \ ++..\..\..\..\..\temp\cmd\table_n.obj \ ++..\..\..\..\..\temp\cmd\table_o.obj \ ++..\..\..\..\..\temp\cmd\table_p.obj \ ++..\..\..\..\..\temp\cmd\table_q.obj \ ++..\..\..\..\..\temp\cmd\table_r.obj \ ++..\..\..\..\..\temp\cmd\table_s.obj \ ++..\..\..\..\..\temp\cmd\table_t.obj \ ++..\..\..\..\..\temp\cmd\table_u.obj \ ++..\..\..\..\..\temp\cmd\table_v.obj \ ++..\..\..\..\..\temp\cmd\table_w.obj \ ++..\..\..\..\..\temp\cmd\table_x.obj \ ++..\..\..\..\..\temp\cmd\table_y.obj \ ++..\..\..\..\..\temp\cmd\table_z.obj \ ++..\..\..\..\..\temp\cmd\ta_utility.obj \ ++..\..\..\..\..\temp\cmd\ta_ACOS.obj \ ++..\..\..\..\..\temp\cmd\ta_AD.obj \ ++..\..\..\..\..\temp\cmd\ta_ADD.obj \ ++..\..\..\..\..\temp\cmd\ta_ADOSC.obj \ ++..\..\..\..\..\temp\cmd\ta_ADX.obj \ ++..\..\..\..\..\temp\cmd\ta_ADXR.obj \ ++..\..\..\..\..\temp\cmd\ta_APO.obj \ ++..\..\..\..\..\temp\cmd\ta_AROON.obj \ ++..\..\..\..\..\temp\cmd\ta_AROONOSC.obj \ ++..\..\..\..\..\temp\cmd\ta_ASIN.obj \ ++..\..\..\..\..\temp\cmd\ta_ATAN.obj \ ++..\..\..\..\..\temp\cmd\ta_ATR.obj \ ++..\..\..\..\..\temp\cmd\ta_AVGPRICE.obj \ ++..\..\..\..\..\temp\cmd\ta_BBANDS.obj \ ++..\..\..\..\..\temp\cmd\ta_BETA.obj \ ++..\..\..\..\..\temp\cmd\ta_BOP.obj \ ++..\..\..\..\..\temp\cmd\ta_CCI.obj \ ++..\..\..\..\..\temp\cmd\ta_CDL2CROWS.obj \ ++..\..\..\..\..\temp\cmd\ta_CDL3BLACKCROWS.obj \ ++..\..\..\..\..\temp\cmd\ta_CDL3INSIDE.obj \ ++..\..\..\..\..\temp\cmd\ta_CDL3LINESTRIKE.obj \ ++..\..\..\..\..\temp\cmd\ta_CDL3OUTSIDE.obj \ ++..\..\..\..\..\temp\cmd\ta_CDL3STARSINSOUTH.obj \ ++..\..\..\..\..\temp\cmd\ta_CDL3WHITESOLDIERS.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLABANDONEDBABY.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLADVANCEBLOCK.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLBELTHOLD.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLBREAKAWAY.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLCLOSINGMARUBOZU.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLCONCEALBABYSWALL.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLCOUNTERATTACK.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLDARKCLOUDCOVER.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLDOJI.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLDOJISTAR.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLDRAGONFLYDOJI.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLENGULFING.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLEVENINGDOJISTAR.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLEVENINGSTAR.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLGAPSIDESIDEWHITE.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLGRAVESTONEDOJI.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLHAMMER.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLHANGINGMAN.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLHARAMI.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLHARAMICROSS.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLHIGHWAVE.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLHIKKAKE.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLHIKKAKEMOD.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLHOMINGPIGEON.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLIDENTICAL3CROWS.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLINNECK.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLINVERTEDHAMMER.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLKICKING.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLKICKINGBYLENGTH.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLLADDERBOTTOM.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLLONGLEGGEDDOJI.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLLONGLINE.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLMARUBOZU.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLMATCHINGLOW.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLMATHOLD.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLMORNINGDOJISTAR.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLMORNINGSTAR.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLONNECK.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLPIERCING.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLRICKSHAWMAN.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLRISEFALL3METHODS.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLSEPARATINGLINES.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLSHOOTINGSTAR.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLSHORTLINE.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLSPINNINGTOP.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLSTALLEDPATTERN.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLSTICKSANDWICH.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLTAKURI.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLTASUKIGAP.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLTHRUSTING.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLTRISTAR.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLUNIQUE3RIVER.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLUPSIDEGAP2CROWS.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLXSIDEGAP3METHODS.obj \ ++..\..\..\..\..\temp\cmd\ta_CEIL.obj \ ++..\..\..\..\..\temp\cmd\ta_CMO.obj \ ++..\..\..\..\..\temp\cmd\ta_CORREL.obj \ ++..\..\..\..\..\temp\cmd\ta_COS.obj \ ++..\..\..\..\..\temp\cmd\ta_COSH.obj \ ++..\..\..\..\..\temp\cmd\ta_DEMA.obj \ ++..\..\..\..\..\temp\cmd\ta_DIV.obj \ ++..\..\..\..\..\temp\cmd\ta_DX.obj \ ++..\..\..\..\..\temp\cmd\ta_EMA.obj \ ++..\..\..\..\..\temp\cmd\ta_EXP.obj \ ++..\..\..\..\..\temp\cmd\ta_FLOOR.obj \ ++..\..\..\..\..\temp\cmd\ta_HT_DCPERIOD.obj \ ++..\..\..\..\..\temp\cmd\ta_HT_DCPHASE.obj \ ++..\..\..\..\..\temp\cmd\ta_HT_PHASOR.obj \ ++..\..\..\..\..\temp\cmd\ta_HT_SINE.obj \ ++..\..\..\..\..\temp\cmd\ta_HT_TRENDLINE.obj \ ++..\..\..\..\..\temp\cmd\ta_HT_TRENDMODE.obj \ ++..\..\..\..\..\temp\cmd\ta_KAMA.obj \ ++..\..\..\..\..\temp\cmd\ta_LINEARREG.obj \ ++..\..\..\..\..\temp\cmd\ta_LINEARREG_ANGLE.obj \ ++..\..\..\..\..\temp\cmd\ta_LINEARREG_INTERCEPT.obj \ ++..\..\..\..\..\temp\cmd\ta_LINEARREG_SLOPE.obj \ ++..\..\..\..\..\temp\cmd\ta_LN.obj \ ++..\..\..\..\..\temp\cmd\ta_LOG10.obj \ ++..\..\..\..\..\temp\cmd\ta_MA.obj \ ++..\..\..\..\..\temp\cmd\ta_MACD.obj \ ++..\..\..\..\..\temp\cmd\ta_MACDEXT.obj \ ++..\..\..\..\..\temp\cmd\ta_MACDFIX.obj \ ++..\..\..\..\..\temp\cmd\ta_MAMA.obj \ ++..\..\..\..\..\temp\cmd\ta_MAVP.obj \ ++..\..\..\..\..\temp\cmd\ta_MAX.obj \ ++..\..\..\..\..\temp\cmd\ta_MAXINDEX.obj \ ++..\..\..\..\..\temp\cmd\ta_MEDPRICE.obj \ ++..\..\..\..\..\temp\cmd\ta_MFI.obj \ ++..\..\..\..\..\temp\cmd\ta_MIDPOINT.obj \ ++..\..\..\..\..\temp\cmd\ta_MIDPRICE.obj \ ++..\..\..\..\..\temp\cmd\ta_MIN.obj \ ++..\..\..\..\..\temp\cmd\ta_MININDEX.obj \ ++..\..\..\..\..\temp\cmd\ta_MINMAX.obj \ ++..\..\..\..\..\temp\cmd\ta_MINMAXINDEX.obj \ ++..\..\..\..\..\temp\cmd\ta_MINUS_DI.obj \ ++..\..\..\..\..\temp\cmd\ta_MINUS_DM.obj \ ++..\..\..\..\..\temp\cmd\ta_MOM.obj \ ++..\..\..\..\..\temp\cmd\ta_MULT.obj \ ++..\..\..\..\..\temp\cmd\ta_NATR.obj \ ++..\..\..\..\..\temp\cmd\ta_OBV.obj \ ++..\..\..\..\..\temp\cmd\ta_PLUS_DI.obj \ ++..\..\..\..\..\temp\cmd\ta_PLUS_DM.obj \ ++..\..\..\..\..\temp\cmd\ta_PPO.obj \ ++..\..\..\..\..\temp\cmd\ta_ROC.obj \ ++..\..\..\..\..\temp\cmd\ta_ROCP.obj \ ++..\..\..\..\..\temp\cmd\ta_ROCR.obj \ ++..\..\..\..\..\temp\cmd\ta_ROCR100.obj \ ++..\..\..\..\..\temp\cmd\ta_RSI.obj \ ++..\..\..\..\..\temp\cmd\ta_SAR.obj \ ++..\..\..\..\..\temp\cmd\ta_SAREXT.obj \ ++..\..\..\..\..\temp\cmd\ta_SIN.obj \ ++..\..\..\..\..\temp\cmd\ta_SINH.obj \ ++..\..\..\..\..\temp\cmd\ta_SMA.obj \ ++..\..\..\..\..\temp\cmd\ta_SQRT.obj \ ++..\..\..\..\..\temp\cmd\ta_STDDEV.obj \ ++..\..\..\..\..\temp\cmd\ta_STOCH.obj \ ++..\..\..\..\..\temp\cmd\ta_STOCHF.obj \ ++..\..\..\..\..\temp\cmd\ta_STOCHRSI.obj \ ++..\..\..\..\..\temp\cmd\ta_SUB.obj \ ++..\..\..\..\..\temp\cmd\ta_SUM.obj \ ++..\..\..\..\..\temp\cmd\ta_T3.obj \ ++..\..\..\..\..\temp\cmd\ta_TAN.obj \ ++..\..\..\..\..\temp\cmd\ta_TANH.obj \ ++..\..\..\..\..\temp\cmd\ta_TEMA.obj \ ++..\..\..\..\..\temp\cmd\ta_TRANGE.obj \ ++..\..\..\..\..\temp\cmd\ta_TRIMA.obj \ ++..\..\..\..\..\temp\cmd\ta_TRIX.obj \ ++..\..\..\..\..\temp\cmd\ta_TSF.obj \ ++..\..\..\..\..\temp\cmd\ta_TYPPRICE.obj \ ++..\..\..\..\..\temp\cmd\ta_ULTOSC.obj \ ++..\..\..\..\..\temp\cmd\ta_VAR.obj \ ++..\..\..\..\..\temp\cmd\ta_WCLPRICE.obj \ ++..\..\..\..\..\temp\cmd\ta_WILLR.obj \ ++..\..\..\..\..\temp\cmd\ta_WMA.obj \ ++ +| + +moc: $(SRCMOC) + +tmake: ../cmd/win32/borland/ta_libc/Makefile + +../cmd/win32/borland/ta_libc/Makefile: ta_libc/ta_libc.pro + tmake ta_libc/ta_libc.pro -o ../cmd/win32/borland/ta_libc/Makefile + +dist: + $(ZIP) ta_libc/ta_libc.zip ta_libc/ta_libc.pro $(SOURCES) $(HEADERS) $(DIST) + +clean: + -del ..\..\..\..\..\temp\cmd\ta_global.obj + -del ..\..\..\..\..\temp\cmd\ta_retcode.obj + -del ..\..\..\..\..\temp\cmd\ta_version.obj + -del ..\..\..\..\..\temp\cmd\ta_abstract.obj + -del ..\..\..\..\..\temp\cmd\ta_def_ui.obj + -del ..\..\..\..\..\temp\cmd\ta_func_api.obj + -del ..\..\..\..\..\temp\cmd\ta_group_idx.obj + -del ..\..\..\..\..\temp\cmd\ta_frame.obj + -del ..\..\..\..\..\temp\cmd\table_a.obj + -del ..\..\..\..\..\temp\cmd\table_b.obj + -del ..\..\..\..\..\temp\cmd\table_c.obj + -del ..\..\..\..\..\temp\cmd\table_d.obj + -del ..\..\..\..\..\temp\cmd\table_e.obj + -del ..\..\..\..\..\temp\cmd\table_f.obj + -del ..\..\..\..\..\temp\cmd\table_g.obj + -del ..\..\..\..\..\temp\cmd\table_h.obj + -del ..\..\..\..\..\temp\cmd\table_i.obj + -del ..\..\..\..\..\temp\cmd\table_j.obj + -del ..\..\..\..\..\temp\cmd\table_k.obj + -del ..\..\..\..\..\temp\cmd\table_l.obj + -del ..\..\..\..\..\temp\cmd\table_m.obj + -del ..\..\..\..\..\temp\cmd\table_n.obj + -del ..\..\..\..\..\temp\cmd\table_o.obj + -del ..\..\..\..\..\temp\cmd\table_p.obj + -del ..\..\..\..\..\temp\cmd\table_q.obj + -del ..\..\..\..\..\temp\cmd\table_r.obj + -del ..\..\..\..\..\temp\cmd\table_s.obj + -del ..\..\..\..\..\temp\cmd\table_t.obj + -del ..\..\..\..\..\temp\cmd\table_u.obj + -del ..\..\..\..\..\temp\cmd\table_v.obj + -del ..\..\..\..\..\temp\cmd\table_w.obj + -del ..\..\..\..\..\temp\cmd\table_x.obj + -del ..\..\..\..\..\temp\cmd\table_y.obj + -del ..\..\..\..\..\temp\cmd\table_z.obj + -del ..\..\..\..\..\temp\cmd\ta_utility.obj + -del ..\..\..\..\..\temp\cmd\ta_ACOS.obj + -del ..\..\..\..\..\temp\cmd\ta_AD.obj + -del ..\..\..\..\..\temp\cmd\ta_ADD.obj + -del ..\..\..\..\..\temp\cmd\ta_ADOSC.obj + -del ..\..\..\..\..\temp\cmd\ta_ADX.obj + -del ..\..\..\..\..\temp\cmd\ta_ADXR.obj + -del ..\..\..\..\..\temp\cmd\ta_APO.obj + -del ..\..\..\..\..\temp\cmd\ta_AROON.obj + -del ..\..\..\..\..\temp\cmd\ta_AROONOSC.obj + -del ..\..\..\..\..\temp\cmd\ta_ASIN.obj + -del ..\..\..\..\..\temp\cmd\ta_ATAN.obj + -del ..\..\..\..\..\temp\cmd\ta_ATR.obj + -del ..\..\..\..\..\temp\cmd\ta_AVGPRICE.obj + -del ..\..\..\..\..\temp\cmd\ta_BBANDS.obj + -del ..\..\..\..\..\temp\cmd\ta_BETA.obj + -del ..\..\..\..\..\temp\cmd\ta_BOP.obj + -del ..\..\..\..\..\temp\cmd\ta_CCI.obj + -del ..\..\..\..\..\temp\cmd\ta_CDL2CROWS.obj + -del ..\..\..\..\..\temp\cmd\ta_CDL3BLACKCROWS.obj + -del ..\..\..\..\..\temp\cmd\ta_CDL3INSIDE.obj + -del ..\..\..\..\..\temp\cmd\ta_CDL3LINESTRIKE.obj + -del ..\..\..\..\..\temp\cmd\ta_CDL3OUTSIDE.obj + -del ..\..\..\..\..\temp\cmd\ta_CDL3STARSINSOUTH.obj + -del ..\..\..\..\..\temp\cmd\ta_CDL3WHITESOLDIERS.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLABANDONEDBABY.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLADVANCEBLOCK.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLBELTHOLD.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLBREAKAWAY.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLCLOSINGMARUBOZU.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLCONCEALBABYSWALL.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLCOUNTERATTACK.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLDARKCLOUDCOVER.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLDOJI.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLDOJISTAR.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLDRAGONFLYDOJI.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLENGULFING.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLEVENINGDOJISTAR.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLEVENINGSTAR.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLGAPSIDESIDEWHITE.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLGRAVESTONEDOJI.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLHAMMER.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLHANGINGMAN.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLHARAMI.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLHARAMICROSS.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLHIGHWAVE.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLHIKKAKE.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLHIKKAKEMOD.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLHOMINGPIGEON.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLIDENTICAL3CROWS.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLINNECK.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLINVERTEDHAMMER.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLKICKING.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLKICKINGBYLENGTH.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLLADDERBOTTOM.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLLONGLEGGEDDOJI.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLLONGLINE.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLMARUBOZU.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLMATCHINGLOW.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLMATHOLD.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLMORNINGDOJISTAR.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLMORNINGSTAR.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLONNECK.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLPIERCING.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLRICKSHAWMAN.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLRISEFALL3METHODS.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLSEPARATINGLINES.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLSHOOTINGSTAR.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLSHORTLINE.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLSPINNINGTOP.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLSTALLEDPATTERN.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLSTICKSANDWICH.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLTAKURI.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLTASUKIGAP.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLTHRUSTING.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLTRISTAR.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLUNIQUE3RIVER.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLUPSIDEGAP2CROWS.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLXSIDEGAP3METHODS.obj + -del ..\..\..\..\..\temp\cmd\ta_CEIL.obj + -del ..\..\..\..\..\temp\cmd\ta_CMO.obj + -del ..\..\..\..\..\temp\cmd\ta_CORREL.obj + -del ..\..\..\..\..\temp\cmd\ta_COS.obj + -del ..\..\..\..\..\temp\cmd\ta_COSH.obj + -del ..\..\..\..\..\temp\cmd\ta_DEMA.obj + -del ..\..\..\..\..\temp\cmd\ta_DIV.obj + -del ..\..\..\..\..\temp\cmd\ta_DX.obj + -del ..\..\..\..\..\temp\cmd\ta_EMA.obj + -del ..\..\..\..\..\temp\cmd\ta_EXP.obj + -del ..\..\..\..\..\temp\cmd\ta_FLOOR.obj + -del ..\..\..\..\..\temp\cmd\ta_HT_DCPERIOD.obj + -del ..\..\..\..\..\temp\cmd\ta_HT_DCPHASE.obj + -del ..\..\..\..\..\temp\cmd\ta_HT_PHASOR.obj + -del ..\..\..\..\..\temp\cmd\ta_HT_SINE.obj + -del ..\..\..\..\..\temp\cmd\ta_HT_TRENDLINE.obj + -del ..\..\..\..\..\temp\cmd\ta_HT_TRENDMODE.obj + -del ..\..\..\..\..\temp\cmd\ta_KAMA.obj + -del ..\..\..\..\..\temp\cmd\ta_LINEARREG.obj + -del ..\..\..\..\..\temp\cmd\ta_LINEARREG_ANGLE.obj + -del ..\..\..\..\..\temp\cmd\ta_LINEARREG_INTERCEPT.obj + -del ..\..\..\..\..\temp\cmd\ta_LINEARREG_SLOPE.obj + -del ..\..\..\..\..\temp\cmd\ta_LN.obj + -del ..\..\..\..\..\temp\cmd\ta_LOG10.obj + -del ..\..\..\..\..\temp\cmd\ta_MA.obj + -del ..\..\..\..\..\temp\cmd\ta_MACD.obj + -del ..\..\..\..\..\temp\cmd\ta_MACDEXT.obj + -del ..\..\..\..\..\temp\cmd\ta_MACDFIX.obj + -del ..\..\..\..\..\temp\cmd\ta_MAMA.obj + -del ..\..\..\..\..\temp\cmd\ta_MAVP.obj + -del ..\..\..\..\..\temp\cmd\ta_MAX.obj + -del ..\..\..\..\..\temp\cmd\ta_MAXINDEX.obj + -del ..\..\..\..\..\temp\cmd\ta_MEDPRICE.obj + -del ..\..\..\..\..\temp\cmd\ta_MFI.obj + -del ..\..\..\..\..\temp\cmd\ta_MIDPOINT.obj + -del ..\..\..\..\..\temp\cmd\ta_MIDPRICE.obj + -del ..\..\..\..\..\temp\cmd\ta_MIN.obj + -del ..\..\..\..\..\temp\cmd\ta_MININDEX.obj + -del ..\..\..\..\..\temp\cmd\ta_MINMAX.obj + -del ..\..\..\..\..\temp\cmd\ta_MINMAXINDEX.obj + -del ..\..\..\..\..\temp\cmd\ta_MINUS_DI.obj + -del ..\..\..\..\..\temp\cmd\ta_MINUS_DM.obj + -del ..\..\..\..\..\temp\cmd\ta_MOM.obj + -del ..\..\..\..\..\temp\cmd\ta_MULT.obj + -del ..\..\..\..\..\temp\cmd\ta_NATR.obj + -del ..\..\..\..\..\temp\cmd\ta_OBV.obj + -del ..\..\..\..\..\temp\cmd\ta_PLUS_DI.obj + -del ..\..\..\..\..\temp\cmd\ta_PLUS_DM.obj + -del ..\..\..\..\..\temp\cmd\ta_PPO.obj + -del ..\..\..\..\..\temp\cmd\ta_ROC.obj + -del ..\..\..\..\..\temp\cmd\ta_ROCP.obj + -del ..\..\..\..\..\temp\cmd\ta_ROCR.obj + -del ..\..\..\..\..\temp\cmd\ta_ROCR100.obj + -del ..\..\..\..\..\temp\cmd\ta_RSI.obj + -del ..\..\..\..\..\temp\cmd\ta_SAR.obj + -del ..\..\..\..\..\temp\cmd\ta_SAREXT.obj + -del ..\..\..\..\..\temp\cmd\ta_SIN.obj + -del ..\..\..\..\..\temp\cmd\ta_SINH.obj + -del ..\..\..\..\..\temp\cmd\ta_SMA.obj + -del ..\..\..\..\..\temp\cmd\ta_SQRT.obj + -del ..\..\..\..\..\temp\cmd\ta_STDDEV.obj + -del ..\..\..\..\..\temp\cmd\ta_STOCH.obj + -del ..\..\..\..\..\temp\cmd\ta_STOCHF.obj + -del ..\..\..\..\..\temp\cmd\ta_STOCHRSI.obj + -del ..\..\..\..\..\temp\cmd\ta_SUB.obj + -del ..\..\..\..\..\temp\cmd\ta_SUM.obj + -del ..\..\..\..\..\temp\cmd\ta_T3.obj + -del ..\..\..\..\..\temp\cmd\ta_TAN.obj + -del ..\..\..\..\..\temp\cmd\ta_TANH.obj + -del ..\..\..\..\..\temp\cmd\ta_TEMA.obj + -del ..\..\..\..\..\temp\cmd\ta_TRANGE.obj + -del ..\..\..\..\..\temp\cmd\ta_TRIMA.obj + -del ..\..\..\..\..\temp\cmd\ta_TRIX.obj + -del ..\..\..\..\..\temp\cmd\ta_TSF.obj + -del ..\..\..\..\..\temp\cmd\ta_TYPPRICE.obj + -del ..\..\..\..\..\temp\cmd\ta_ULTOSC.obj + -del ..\..\..\..\..\temp\cmd\ta_VAR.obj + -del ..\..\..\..\..\temp\cmd\ta_WCLPRICE.obj + -del ..\..\..\..\..\temp\cmd\ta_WILLR.obj + -del ..\..\..\..\..\temp\cmd\ta_WMA.obj + -del $(TARGET) + -del ta_libc_cmd.tds + -del ../../../../../bin/*.map + -del ../../../../../bin/*._xe + -del ../../../../../bin/*.tds + -del ../../../../../bin/*.pdb + -del ../../../../../bin/*.pbo + -del ../../../../../bin/*.pbi + -del ../../../../../bin/*.pbt + +####### Compile + +..\..\..\..\..\temp\cmd\ta_global.obj: ..\..\..\..\..\src\ta_common\ta_global.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_global.obj ..\..\..\..\..\src\ta_common\ta_global.c + +..\..\..\..\..\temp\cmd\ta_retcode.obj: ..\..\..\..\..\src\ta_common\ta_retcode.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_retcode.obj ..\..\..\..\..\src\ta_common\ta_retcode.c + +..\..\..\..\..\temp\cmd\ta_version.obj: ..\..\..\..\..\src\ta_common\ta_version.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_version.obj ..\..\..\..\..\src\ta_common\ta_version.c + +..\..\..\..\..\temp\cmd\ta_abstract.obj: ..\..\..\..\..\src\ta_abstract\ta_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_abstract.obj ..\..\..\..\..\src\ta_abstract\ta_abstract.c + +..\..\..\..\..\temp\cmd\ta_def_ui.obj: ..\..\..\..\..\src\ta_abstract\ta_def_ui.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_def_ui.obj ..\..\..\..\..\src\ta_abstract\ta_def_ui.c + +..\..\..\..\..\temp\cmd\ta_func_api.obj: ..\..\..\..\..\src\ta_abstract\ta_func_api.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_func_api.obj ..\..\..\..\..\src\ta_abstract\ta_func_api.c + +..\..\..\..\..\temp\cmd\ta_group_idx.obj: ..\..\..\..\..\src\ta_abstract\ta_group_idx.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_group_idx.obj ..\..\..\..\..\src\ta_abstract\ta_group_idx.c + +..\..\..\..\..\temp\cmd\ta_frame.obj: ..\..\..\..\..\src\ta_abstract\frames\ta_frame.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_frame.obj ..\..\..\..\..\src\ta_abstract\frames\ta_frame.c + +..\..\..\..\..\temp\cmd\table_a.obj: ..\..\..\..\..\src\ta_abstract\tables\table_a.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\table_a.obj ..\..\..\..\..\src\ta_abstract\tables\table_a.c + +..\..\..\..\..\temp\cmd\table_b.obj: ..\..\..\..\..\src\ta_abstract\tables\table_b.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\table_b.obj ..\..\..\..\..\src\ta_abstract\tables\table_b.c + +..\..\..\..\..\temp\cmd\table_c.obj: ..\..\..\..\..\src\ta_abstract\tables\table_c.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\table_c.obj ..\..\..\..\..\src\ta_abstract\tables\table_c.c + +..\..\..\..\..\temp\cmd\table_d.obj: ..\..\..\..\..\src\ta_abstract\tables\table_d.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\table_d.obj ..\..\..\..\..\src\ta_abstract\tables\table_d.c + +..\..\..\..\..\temp\cmd\table_e.obj: ..\..\..\..\..\src\ta_abstract\tables\table_e.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\table_e.obj ..\..\..\..\..\src\ta_abstract\tables\table_e.c + +..\..\..\..\..\temp\cmd\table_f.obj: ..\..\..\..\..\src\ta_abstract\tables\table_f.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\table_f.obj ..\..\..\..\..\src\ta_abstract\tables\table_f.c + +..\..\..\..\..\temp\cmd\table_g.obj: ..\..\..\..\..\src\ta_abstract\tables\table_g.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\table_g.obj ..\..\..\..\..\src\ta_abstract\tables\table_g.c + +..\..\..\..\..\temp\cmd\table_h.obj: ..\..\..\..\..\src\ta_abstract\tables\table_h.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\table_h.obj ..\..\..\..\..\src\ta_abstract\tables\table_h.c + +..\..\..\..\..\temp\cmd\table_i.obj: ..\..\..\..\..\src\ta_abstract\tables\table_i.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\table_i.obj ..\..\..\..\..\src\ta_abstract\tables\table_i.c + +..\..\..\..\..\temp\cmd\table_j.obj: ..\..\..\..\..\src\ta_abstract\tables\table_j.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\table_j.obj ..\..\..\..\..\src\ta_abstract\tables\table_j.c + +..\..\..\..\..\temp\cmd\table_k.obj: ..\..\..\..\..\src\ta_abstract\tables\table_k.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\table_k.obj ..\..\..\..\..\src\ta_abstract\tables\table_k.c + +..\..\..\..\..\temp\cmd\table_l.obj: ..\..\..\..\..\src\ta_abstract\tables\table_l.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\table_l.obj ..\..\..\..\..\src\ta_abstract\tables\table_l.c + +..\..\..\..\..\temp\cmd\table_m.obj: ..\..\..\..\..\src\ta_abstract\tables\table_m.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\table_m.obj ..\..\..\..\..\src\ta_abstract\tables\table_m.c + +..\..\..\..\..\temp\cmd\table_n.obj: ..\..\..\..\..\src\ta_abstract\tables\table_n.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\table_n.obj ..\..\..\..\..\src\ta_abstract\tables\table_n.c + +..\..\..\..\..\temp\cmd\table_o.obj: ..\..\..\..\..\src\ta_abstract\tables\table_o.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\table_o.obj ..\..\..\..\..\src\ta_abstract\tables\table_o.c + +..\..\..\..\..\temp\cmd\table_p.obj: ..\..\..\..\..\src\ta_abstract\tables\table_p.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\table_p.obj ..\..\..\..\..\src\ta_abstract\tables\table_p.c + +..\..\..\..\..\temp\cmd\table_q.obj: ..\..\..\..\..\src\ta_abstract\tables\table_q.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\table_q.obj ..\..\..\..\..\src\ta_abstract\tables\table_q.c + +..\..\..\..\..\temp\cmd\table_r.obj: ..\..\..\..\..\src\ta_abstract\tables\table_r.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\table_r.obj ..\..\..\..\..\src\ta_abstract\tables\table_r.c + +..\..\..\..\..\temp\cmd\table_s.obj: ..\..\..\..\..\src\ta_abstract\tables\table_s.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\table_s.obj ..\..\..\..\..\src\ta_abstract\tables\table_s.c + +..\..\..\..\..\temp\cmd\table_t.obj: ..\..\..\..\..\src\ta_abstract\tables\table_t.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\table_t.obj ..\..\..\..\..\src\ta_abstract\tables\table_t.c + +..\..\..\..\..\temp\cmd\table_u.obj: ..\..\..\..\..\src\ta_abstract\tables\table_u.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\table_u.obj ..\..\..\..\..\src\ta_abstract\tables\table_u.c + +..\..\..\..\..\temp\cmd\table_v.obj: ..\..\..\..\..\src\ta_abstract\tables\table_v.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\table_v.obj ..\..\..\..\..\src\ta_abstract\tables\table_v.c + +..\..\..\..\..\temp\cmd\table_w.obj: ..\..\..\..\..\src\ta_abstract\tables\table_w.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\table_w.obj ..\..\..\..\..\src\ta_abstract\tables\table_w.c + +..\..\..\..\..\temp\cmd\table_x.obj: ..\..\..\..\..\src\ta_abstract\tables\table_x.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\table_x.obj ..\..\..\..\..\src\ta_abstract\tables\table_x.c + +..\..\..\..\..\temp\cmd\table_y.obj: ..\..\..\..\..\src\ta_abstract\tables\table_y.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\table_y.obj ..\..\..\..\..\src\ta_abstract\tables\table_y.c + +..\..\..\..\..\temp\cmd\table_z.obj: ..\..\..\..\..\src\ta_abstract\tables\table_z.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\table_z.obj ..\..\..\..\..\src\ta_abstract\tables\table_z.c + +..\..\..\..\..\temp\cmd\ta_utility.obj: ..\..\..\..\..\src\ta_func\ta_utility.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_utility.obj ..\..\..\..\..\src\ta_func\ta_utility.c + +..\..\..\..\..\temp\cmd\ta_ACOS.obj: ..\..\..\..\..\src\ta_func\ta_ACOS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_ACOS.obj ..\..\..\..\..\src\ta_func\ta_ACOS.c + +..\..\..\..\..\temp\cmd\ta_AD.obj: ..\..\..\..\..\src\ta_func\ta_AD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_AD.obj ..\..\..\..\..\src\ta_func\ta_AD.c + +..\..\..\..\..\temp\cmd\ta_ADD.obj: ..\..\..\..\..\src\ta_func\ta_ADD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_ADD.obj ..\..\..\..\..\src\ta_func\ta_ADD.c + +..\..\..\..\..\temp\cmd\ta_ADOSC.obj: ..\..\..\..\..\src\ta_func\ta_ADOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_ADOSC.obj ..\..\..\..\..\src\ta_func\ta_ADOSC.c + +..\..\..\..\..\temp\cmd\ta_ADX.obj: ..\..\..\..\..\src\ta_func\ta_ADX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_ADX.obj ..\..\..\..\..\src\ta_func\ta_ADX.c + +..\..\..\..\..\temp\cmd\ta_ADXR.obj: ..\..\..\..\..\src\ta_func\ta_ADXR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_ADXR.obj ..\..\..\..\..\src\ta_func\ta_ADXR.c + +..\..\..\..\..\temp\cmd\ta_APO.obj: ..\..\..\..\..\src\ta_func\ta_APO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_APO.obj ..\..\..\..\..\src\ta_func\ta_APO.c + +..\..\..\..\..\temp\cmd\ta_AROON.obj: ..\..\..\..\..\src\ta_func\ta_AROON.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_AROON.obj ..\..\..\..\..\src\ta_func\ta_AROON.c + +..\..\..\..\..\temp\cmd\ta_AROONOSC.obj: ..\..\..\..\..\src\ta_func\ta_AROONOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_AROONOSC.obj ..\..\..\..\..\src\ta_func\ta_AROONOSC.c + +..\..\..\..\..\temp\cmd\ta_ASIN.obj: ..\..\..\..\..\src\ta_func\ta_ASIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_ASIN.obj ..\..\..\..\..\src\ta_func\ta_ASIN.c + +..\..\..\..\..\temp\cmd\ta_ATAN.obj: ..\..\..\..\..\src\ta_func\ta_ATAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_ATAN.obj ..\..\..\..\..\src\ta_func\ta_ATAN.c + +..\..\..\..\..\temp\cmd\ta_ATR.obj: ..\..\..\..\..\src\ta_func\ta_ATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_ATR.obj ..\..\..\..\..\src\ta_func\ta_ATR.c + +..\..\..\..\..\temp\cmd\ta_AVGPRICE.obj: ..\..\..\..\..\src\ta_func\ta_AVGPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_AVGPRICE.obj ..\..\..\..\..\src\ta_func\ta_AVGPRICE.c + +..\..\..\..\..\temp\cmd\ta_BBANDS.obj: ..\..\..\..\..\src\ta_func\ta_BBANDS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_BBANDS.obj ..\..\..\..\..\src\ta_func\ta_BBANDS.c + +..\..\..\..\..\temp\cmd\ta_BETA.obj: ..\..\..\..\..\src\ta_func\ta_BETA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_BETA.obj ..\..\..\..\..\src\ta_func\ta_BETA.c + +..\..\..\..\..\temp\cmd\ta_BOP.obj: ..\..\..\..\..\src\ta_func\ta_BOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_BOP.obj ..\..\..\..\..\src\ta_func\ta_BOP.c + +..\..\..\..\..\temp\cmd\ta_CCI.obj: ..\..\..\..\..\src\ta_func\ta_CCI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CCI.obj ..\..\..\..\..\src\ta_func\ta_CCI.c + +..\..\..\..\..\temp\cmd\ta_CDL2CROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDL2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDL2CROWS.obj ..\..\..\..\..\src\ta_func\ta_CDL2CROWS.c + +..\..\..\..\..\temp\cmd\ta_CDL3BLACKCROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDL3BLACKCROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDL3BLACKCROWS.obj ..\..\..\..\..\src\ta_func\ta_CDL3BLACKCROWS.c + +..\..\..\..\..\temp\cmd\ta_CDL3INSIDE.obj: ..\..\..\..\..\src\ta_func\ta_CDL3INSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDL3INSIDE.obj ..\..\..\..\..\src\ta_func\ta_CDL3INSIDE.c + +..\..\..\..\..\temp\cmd\ta_CDL3LINESTRIKE.obj: ..\..\..\..\..\src\ta_func\ta_CDL3LINESTRIKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDL3LINESTRIKE.obj ..\..\..\..\..\src\ta_func\ta_CDL3LINESTRIKE.c + +..\..\..\..\..\temp\cmd\ta_CDL3OUTSIDE.obj: ..\..\..\..\..\src\ta_func\ta_CDL3OUTSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDL3OUTSIDE.obj ..\..\..\..\..\src\ta_func\ta_CDL3OUTSIDE.c + +..\..\..\..\..\temp\cmd\ta_CDL3STARSINSOUTH.obj: ..\..\..\..\..\src\ta_func\ta_CDL3STARSINSOUTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDL3STARSINSOUTH.obj ..\..\..\..\..\src\ta_func\ta_CDL3STARSINSOUTH.c + +..\..\..\..\..\temp\cmd\ta_CDL3WHITESOLDIERS.obj: ..\..\..\..\..\src\ta_func\ta_CDL3WHITESOLDIERS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDL3WHITESOLDIERS.obj ..\..\..\..\..\src\ta_func\ta_CDL3WHITESOLDIERS.c + +..\..\..\..\..\temp\cmd\ta_CDLABANDONEDBABY.obj: ..\..\..\..\..\src\ta_func\ta_CDLABANDONEDBABY.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLABANDONEDBABY.obj ..\..\..\..\..\src\ta_func\ta_CDLABANDONEDBABY.c + +..\..\..\..\..\temp\cmd\ta_CDLADVANCEBLOCK.obj: ..\..\..\..\..\src\ta_func\ta_CDLADVANCEBLOCK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLADVANCEBLOCK.obj ..\..\..\..\..\src\ta_func\ta_CDLADVANCEBLOCK.c + +..\..\..\..\..\temp\cmd\ta_CDLBELTHOLD.obj: ..\..\..\..\..\src\ta_func\ta_CDLBELTHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLBELTHOLD.obj ..\..\..\..\..\src\ta_func\ta_CDLBELTHOLD.c + +..\..\..\..\..\temp\cmd\ta_CDLBREAKAWAY.obj: ..\..\..\..\..\src\ta_func\ta_CDLBREAKAWAY.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLBREAKAWAY.obj ..\..\..\..\..\src\ta_func\ta_CDLBREAKAWAY.c + +..\..\..\..\..\temp\cmd\ta_CDLCLOSINGMARUBOZU.obj: ..\..\..\..\..\src\ta_func\ta_CDLCLOSINGMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLCLOSINGMARUBOZU.obj ..\..\..\..\..\src\ta_func\ta_CDLCLOSINGMARUBOZU.c + +..\..\..\..\..\temp\cmd\ta_CDLCONCEALBABYSWALL.obj: ..\..\..\..\..\src\ta_func\ta_CDLCONCEALBABYSWALL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLCONCEALBABYSWALL.obj ..\..\..\..\..\src\ta_func\ta_CDLCONCEALBABYSWALL.c + +..\..\..\..\..\temp\cmd\ta_CDLCOUNTERATTACK.obj: ..\..\..\..\..\src\ta_func\ta_CDLCOUNTERATTACK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLCOUNTERATTACK.obj ..\..\..\..\..\src\ta_func\ta_CDLCOUNTERATTACK.c + +..\..\..\..\..\temp\cmd\ta_CDLDARKCLOUDCOVER.obj: ..\..\..\..\..\src\ta_func\ta_CDLDARKCLOUDCOVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLDARKCLOUDCOVER.obj ..\..\..\..\..\src\ta_func\ta_CDLDARKCLOUDCOVER.c + +..\..\..\..\..\temp\cmd\ta_CDLDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLDOJI.c + +..\..\..\..\..\temp\cmd\ta_CDLDOJISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLDOJISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLDOJISTAR.c + +..\..\..\..\..\temp\cmd\ta_CDLDRAGONFLYDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLDRAGONFLYDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLDRAGONFLYDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLDRAGONFLYDOJI.c + +..\..\..\..\..\temp\cmd\ta_CDLENGULFING.obj: ..\..\..\..\..\src\ta_func\ta_CDLENGULFING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLENGULFING.obj ..\..\..\..\..\src\ta_func\ta_CDLENGULFING.c + +..\..\..\..\..\temp\cmd\ta_CDLEVENINGDOJISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLEVENINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLEVENINGDOJISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLEVENINGDOJISTAR.c + +..\..\..\..\..\temp\cmd\ta_CDLEVENINGSTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLEVENINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLEVENINGSTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLEVENINGSTAR.c + +..\..\..\..\..\temp\cmd\ta_CDLGAPSIDESIDEWHITE.obj: ..\..\..\..\..\src\ta_func\ta_CDLGAPSIDESIDEWHITE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLGAPSIDESIDEWHITE.obj ..\..\..\..\..\src\ta_func\ta_CDLGAPSIDESIDEWHITE.c + +..\..\..\..\..\temp\cmd\ta_CDLGRAVESTONEDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLGRAVESTONEDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLGRAVESTONEDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLGRAVESTONEDOJI.c + +..\..\..\..\..\temp\cmd\ta_CDLHAMMER.obj: ..\..\..\..\..\src\ta_func\ta_CDLHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLHAMMER.obj ..\..\..\..\..\src\ta_func\ta_CDLHAMMER.c + +..\..\..\..\..\temp\cmd\ta_CDLHANGINGMAN.obj: ..\..\..\..\..\src\ta_func\ta_CDLHANGINGMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLHANGINGMAN.obj ..\..\..\..\..\src\ta_func\ta_CDLHANGINGMAN.c + +..\..\..\..\..\temp\cmd\ta_CDLHARAMI.obj: ..\..\..\..\..\src\ta_func\ta_CDLHARAMI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLHARAMI.obj ..\..\..\..\..\src\ta_func\ta_CDLHARAMI.c + +..\..\..\..\..\temp\cmd\ta_CDLHARAMICROSS.obj: ..\..\..\..\..\src\ta_func\ta_CDLHARAMICROSS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLHARAMICROSS.obj ..\..\..\..\..\src\ta_func\ta_CDLHARAMICROSS.c + +..\..\..\..\..\temp\cmd\ta_CDLHIGHWAVE.obj: ..\..\..\..\..\src\ta_func\ta_CDLHIGHWAVE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLHIGHWAVE.obj ..\..\..\..\..\src\ta_func\ta_CDLHIGHWAVE.c + +..\..\..\..\..\temp\cmd\ta_CDLHIKKAKE.obj: ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLHIKKAKE.obj ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKE.c + +..\..\..\..\..\temp\cmd\ta_CDLHIKKAKEMOD.obj: ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKEMOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLHIKKAKEMOD.obj ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKEMOD.c + +..\..\..\..\..\temp\cmd\ta_CDLHOMINGPIGEON.obj: ..\..\..\..\..\src\ta_func\ta_CDLHOMINGPIGEON.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLHOMINGPIGEON.obj ..\..\..\..\..\src\ta_func\ta_CDLHOMINGPIGEON.c + +..\..\..\..\..\temp\cmd\ta_CDLIDENTICAL3CROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDLIDENTICAL3CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLIDENTICAL3CROWS.obj ..\..\..\..\..\src\ta_func\ta_CDLIDENTICAL3CROWS.c + +..\..\..\..\..\temp\cmd\ta_CDLINNECK.obj: ..\..\..\..\..\src\ta_func\ta_CDLINNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLINNECK.obj ..\..\..\..\..\src\ta_func\ta_CDLINNECK.c + +..\..\..\..\..\temp\cmd\ta_CDLINVERTEDHAMMER.obj: ..\..\..\..\..\src\ta_func\ta_CDLINVERTEDHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLINVERTEDHAMMER.obj ..\..\..\..\..\src\ta_func\ta_CDLINVERTEDHAMMER.c + +..\..\..\..\..\temp\cmd\ta_CDLKICKING.obj: ..\..\..\..\..\src\ta_func\ta_CDLKICKING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLKICKING.obj ..\..\..\..\..\src\ta_func\ta_CDLKICKING.c + +..\..\..\..\..\temp\cmd\ta_CDLKICKINGBYLENGTH.obj: ..\..\..\..\..\src\ta_func\ta_CDLKICKINGBYLENGTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLKICKINGBYLENGTH.obj ..\..\..\..\..\src\ta_func\ta_CDLKICKINGBYLENGTH.c + +..\..\..\..\..\temp\cmd\ta_CDLLADDERBOTTOM.obj: ..\..\..\..\..\src\ta_func\ta_CDLLADDERBOTTOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLLADDERBOTTOM.obj ..\..\..\..\..\src\ta_func\ta_CDLLADDERBOTTOM.c + +..\..\..\..\..\temp\cmd\ta_CDLLONGLEGGEDDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLLONGLEGGEDDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLLONGLEGGEDDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLLONGLEGGEDDOJI.c + +..\..\..\..\..\temp\cmd\ta_CDLLONGLINE.obj: ..\..\..\..\..\src\ta_func\ta_CDLLONGLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLLONGLINE.obj ..\..\..\..\..\src\ta_func\ta_CDLLONGLINE.c + +..\..\..\..\..\temp\cmd\ta_CDLMARUBOZU.obj: ..\..\..\..\..\src\ta_func\ta_CDLMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLMARUBOZU.obj ..\..\..\..\..\src\ta_func\ta_CDLMARUBOZU.c + +..\..\..\..\..\temp\cmd\ta_CDLMATCHINGLOW.obj: ..\..\..\..\..\src\ta_func\ta_CDLMATCHINGLOW.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLMATCHINGLOW.obj ..\..\..\..\..\src\ta_func\ta_CDLMATCHINGLOW.c + +..\..\..\..\..\temp\cmd\ta_CDLMATHOLD.obj: ..\..\..\..\..\src\ta_func\ta_CDLMATHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLMATHOLD.obj ..\..\..\..\..\src\ta_func\ta_CDLMATHOLD.c + +..\..\..\..\..\temp\cmd\ta_CDLMORNINGDOJISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLMORNINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLMORNINGDOJISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLMORNINGDOJISTAR.c + +..\..\..\..\..\temp\cmd\ta_CDLMORNINGSTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLMORNINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLMORNINGSTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLMORNINGSTAR.c + +..\..\..\..\..\temp\cmd\ta_CDLONNECK.obj: ..\..\..\..\..\src\ta_func\ta_CDLONNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLONNECK.obj ..\..\..\..\..\src\ta_func\ta_CDLONNECK.c + +..\..\..\..\..\temp\cmd\ta_CDLPIERCING.obj: ..\..\..\..\..\src\ta_func\ta_CDLPIERCING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLPIERCING.obj ..\..\..\..\..\src\ta_func\ta_CDLPIERCING.c + +..\..\..\..\..\temp\cmd\ta_CDLRICKSHAWMAN.obj: ..\..\..\..\..\src\ta_func\ta_CDLRICKSHAWMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLRICKSHAWMAN.obj ..\..\..\..\..\src\ta_func\ta_CDLRICKSHAWMAN.c + +..\..\..\..\..\temp\cmd\ta_CDLRISEFALL3METHODS.obj: ..\..\..\..\..\src\ta_func\ta_CDLRISEFALL3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLRISEFALL3METHODS.obj ..\..\..\..\..\src\ta_func\ta_CDLRISEFALL3METHODS.c + +..\..\..\..\..\temp\cmd\ta_CDLSEPARATINGLINES.obj: ..\..\..\..\..\src\ta_func\ta_CDLSEPARATINGLINES.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLSEPARATINGLINES.obj ..\..\..\..\..\src\ta_func\ta_CDLSEPARATINGLINES.c + +..\..\..\..\..\temp\cmd\ta_CDLSHOOTINGSTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLSHOOTINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLSHOOTINGSTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLSHOOTINGSTAR.c + +..\..\..\..\..\temp\cmd\ta_CDLSHORTLINE.obj: ..\..\..\..\..\src\ta_func\ta_CDLSHORTLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLSHORTLINE.obj ..\..\..\..\..\src\ta_func\ta_CDLSHORTLINE.c + +..\..\..\..\..\temp\cmd\ta_CDLSPINNINGTOP.obj: ..\..\..\..\..\src\ta_func\ta_CDLSPINNINGTOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLSPINNINGTOP.obj ..\..\..\..\..\src\ta_func\ta_CDLSPINNINGTOP.c + +..\..\..\..\..\temp\cmd\ta_CDLSTALLEDPATTERN.obj: ..\..\..\..\..\src\ta_func\ta_CDLSTALLEDPATTERN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLSTALLEDPATTERN.obj ..\..\..\..\..\src\ta_func\ta_CDLSTALLEDPATTERN.c + +..\..\..\..\..\temp\cmd\ta_CDLSTICKSANDWICH.obj: ..\..\..\..\..\src\ta_func\ta_CDLSTICKSANDWICH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLSTICKSANDWICH.obj ..\..\..\..\..\src\ta_func\ta_CDLSTICKSANDWICH.c + +..\..\..\..\..\temp\cmd\ta_CDLTAKURI.obj: ..\..\..\..\..\src\ta_func\ta_CDLTAKURI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLTAKURI.obj ..\..\..\..\..\src\ta_func\ta_CDLTAKURI.c + +..\..\..\..\..\temp\cmd\ta_CDLTASUKIGAP.obj: ..\..\..\..\..\src\ta_func\ta_CDLTASUKIGAP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLTASUKIGAP.obj ..\..\..\..\..\src\ta_func\ta_CDLTASUKIGAP.c + +..\..\..\..\..\temp\cmd\ta_CDLTHRUSTING.obj: ..\..\..\..\..\src\ta_func\ta_CDLTHRUSTING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLTHRUSTING.obj ..\..\..\..\..\src\ta_func\ta_CDLTHRUSTING.c + +..\..\..\..\..\temp\cmd\ta_CDLTRISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLTRISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLTRISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLTRISTAR.c + +..\..\..\..\..\temp\cmd\ta_CDLUNIQUE3RIVER.obj: ..\..\..\..\..\src\ta_func\ta_CDLUNIQUE3RIVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLUNIQUE3RIVER.obj ..\..\..\..\..\src\ta_func\ta_CDLUNIQUE3RIVER.c + +..\..\..\..\..\temp\cmd\ta_CDLUPSIDEGAP2CROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDLUPSIDEGAP2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLUPSIDEGAP2CROWS.obj ..\..\..\..\..\src\ta_func\ta_CDLUPSIDEGAP2CROWS.c + +..\..\..\..\..\temp\cmd\ta_CDLXSIDEGAP3METHODS.obj: ..\..\..\..\..\src\ta_func\ta_CDLXSIDEGAP3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLXSIDEGAP3METHODS.obj ..\..\..\..\..\src\ta_func\ta_CDLXSIDEGAP3METHODS.c + +..\..\..\..\..\temp\cmd\ta_CEIL.obj: ..\..\..\..\..\src\ta_func\ta_CEIL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CEIL.obj ..\..\..\..\..\src\ta_func\ta_CEIL.c + +..\..\..\..\..\temp\cmd\ta_CMO.obj: ..\..\..\..\..\src\ta_func\ta_CMO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CMO.obj ..\..\..\..\..\src\ta_func\ta_CMO.c + +..\..\..\..\..\temp\cmd\ta_CORREL.obj: ..\..\..\..\..\src\ta_func\ta_CORREL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CORREL.obj ..\..\..\..\..\src\ta_func\ta_CORREL.c + +..\..\..\..\..\temp\cmd\ta_COS.obj: ..\..\..\..\..\src\ta_func\ta_COS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_COS.obj ..\..\..\..\..\src\ta_func\ta_COS.c + +..\..\..\..\..\temp\cmd\ta_COSH.obj: ..\..\..\..\..\src\ta_func\ta_COSH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_COSH.obj ..\..\..\..\..\src\ta_func\ta_COSH.c + +..\..\..\..\..\temp\cmd\ta_DEMA.obj: ..\..\..\..\..\src\ta_func\ta_DEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_DEMA.obj ..\..\..\..\..\src\ta_func\ta_DEMA.c + +..\..\..\..\..\temp\cmd\ta_DIV.obj: ..\..\..\..\..\src\ta_func\ta_DIV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_DIV.obj ..\..\..\..\..\src\ta_func\ta_DIV.c + +..\..\..\..\..\temp\cmd\ta_DX.obj: ..\..\..\..\..\src\ta_func\ta_DX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_DX.obj ..\..\..\..\..\src\ta_func\ta_DX.c + +..\..\..\..\..\temp\cmd\ta_EMA.obj: ..\..\..\..\..\src\ta_func\ta_EMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_EMA.obj ..\..\..\..\..\src\ta_func\ta_EMA.c + +..\..\..\..\..\temp\cmd\ta_EXP.obj: ..\..\..\..\..\src\ta_func\ta_EXP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_EXP.obj ..\..\..\..\..\src\ta_func\ta_EXP.c + +..\..\..\..\..\temp\cmd\ta_FLOOR.obj: ..\..\..\..\..\src\ta_func\ta_FLOOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_FLOOR.obj ..\..\..\..\..\src\ta_func\ta_FLOOR.c + +..\..\..\..\..\temp\cmd\ta_HT_DCPERIOD.obj: ..\..\..\..\..\src\ta_func\ta_HT_DCPERIOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_HT_DCPERIOD.obj ..\..\..\..\..\src\ta_func\ta_HT_DCPERIOD.c + +..\..\..\..\..\temp\cmd\ta_HT_DCPHASE.obj: ..\..\..\..\..\src\ta_func\ta_HT_DCPHASE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_HT_DCPHASE.obj ..\..\..\..\..\src\ta_func\ta_HT_DCPHASE.c + +..\..\..\..\..\temp\cmd\ta_HT_PHASOR.obj: ..\..\..\..\..\src\ta_func\ta_HT_PHASOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_HT_PHASOR.obj ..\..\..\..\..\src\ta_func\ta_HT_PHASOR.c + +..\..\..\..\..\temp\cmd\ta_HT_SINE.obj: ..\..\..\..\..\src\ta_func\ta_HT_SINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_HT_SINE.obj ..\..\..\..\..\src\ta_func\ta_HT_SINE.c + +..\..\..\..\..\temp\cmd\ta_HT_TRENDLINE.obj: ..\..\..\..\..\src\ta_func\ta_HT_TRENDLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_HT_TRENDLINE.obj ..\..\..\..\..\src\ta_func\ta_HT_TRENDLINE.c + +..\..\..\..\..\temp\cmd\ta_HT_TRENDMODE.obj: ..\..\..\..\..\src\ta_func\ta_HT_TRENDMODE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_HT_TRENDMODE.obj ..\..\..\..\..\src\ta_func\ta_HT_TRENDMODE.c + +..\..\..\..\..\temp\cmd\ta_KAMA.obj: ..\..\..\..\..\src\ta_func\ta_KAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_KAMA.obj ..\..\..\..\..\src\ta_func\ta_KAMA.c + +..\..\..\..\..\temp\cmd\ta_LINEARREG.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_LINEARREG.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG.c + +..\..\..\..\..\temp\cmd\ta_LINEARREG_ANGLE.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG_ANGLE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_LINEARREG_ANGLE.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG_ANGLE.c + +..\..\..\..\..\temp\cmd\ta_LINEARREG_INTERCEPT.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG_INTERCEPT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_LINEARREG_INTERCEPT.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG_INTERCEPT.c + +..\..\..\..\..\temp\cmd\ta_LINEARREG_SLOPE.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG_SLOPE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_LINEARREG_SLOPE.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG_SLOPE.c + +..\..\..\..\..\temp\cmd\ta_LN.obj: ..\..\..\..\..\src\ta_func\ta_LN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_LN.obj ..\..\..\..\..\src\ta_func\ta_LN.c + +..\..\..\..\..\temp\cmd\ta_LOG10.obj: ..\..\..\..\..\src\ta_func\ta_LOG10.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_LOG10.obj ..\..\..\..\..\src\ta_func\ta_LOG10.c + +..\..\..\..\..\temp\cmd\ta_MA.obj: ..\..\..\..\..\src\ta_func\ta_MA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_MA.obj ..\..\..\..\..\src\ta_func\ta_MA.c + +..\..\..\..\..\temp\cmd\ta_MACD.obj: ..\..\..\..\..\src\ta_func\ta_MACD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_MACD.obj ..\..\..\..\..\src\ta_func\ta_MACD.c + +..\..\..\..\..\temp\cmd\ta_MACDEXT.obj: ..\..\..\..\..\src\ta_func\ta_MACDEXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_MACDEXT.obj ..\..\..\..\..\src\ta_func\ta_MACDEXT.c + +..\..\..\..\..\temp\cmd\ta_MACDFIX.obj: ..\..\..\..\..\src\ta_func\ta_MACDFIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_MACDFIX.obj ..\..\..\..\..\src\ta_func\ta_MACDFIX.c + +..\..\..\..\..\temp\cmd\ta_MAMA.obj: ..\..\..\..\..\src\ta_func\ta_MAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_MAMA.obj ..\..\..\..\..\src\ta_func\ta_MAMA.c + +..\..\..\..\..\temp\cmd\ta_MAVP.obj: ..\..\..\..\..\src\ta_func\ta_MAVP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_MAVP.obj ..\..\..\..\..\src\ta_func\ta_MAVP.c + +..\..\..\..\..\temp\cmd\ta_MAX.obj: ..\..\..\..\..\src\ta_func\ta_MAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_MAX.obj ..\..\..\..\..\src\ta_func\ta_MAX.c + +..\..\..\..\..\temp\cmd\ta_MAXINDEX.obj: ..\..\..\..\..\src\ta_func\ta_MAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_MAXINDEX.obj ..\..\..\..\..\src\ta_func\ta_MAXINDEX.c + +..\..\..\..\..\temp\cmd\ta_MEDPRICE.obj: ..\..\..\..\..\src\ta_func\ta_MEDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_MEDPRICE.obj ..\..\..\..\..\src\ta_func\ta_MEDPRICE.c + +..\..\..\..\..\temp\cmd\ta_MFI.obj: ..\..\..\..\..\src\ta_func\ta_MFI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_MFI.obj ..\..\..\..\..\src\ta_func\ta_MFI.c + +..\..\..\..\..\temp\cmd\ta_MIDPOINT.obj: ..\..\..\..\..\src\ta_func\ta_MIDPOINT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_MIDPOINT.obj ..\..\..\..\..\src\ta_func\ta_MIDPOINT.c + +..\..\..\..\..\temp\cmd\ta_MIDPRICE.obj: ..\..\..\..\..\src\ta_func\ta_MIDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_MIDPRICE.obj ..\..\..\..\..\src\ta_func\ta_MIDPRICE.c + +..\..\..\..\..\temp\cmd\ta_MIN.obj: ..\..\..\..\..\src\ta_func\ta_MIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_MIN.obj ..\..\..\..\..\src\ta_func\ta_MIN.c + +..\..\..\..\..\temp\cmd\ta_MININDEX.obj: ..\..\..\..\..\src\ta_func\ta_MININDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_MININDEX.obj ..\..\..\..\..\src\ta_func\ta_MININDEX.c + +..\..\..\..\..\temp\cmd\ta_MINMAX.obj: ..\..\..\..\..\src\ta_func\ta_MINMAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_MINMAX.obj ..\..\..\..\..\src\ta_func\ta_MINMAX.c + +..\..\..\..\..\temp\cmd\ta_MINMAXINDEX.obj: ..\..\..\..\..\src\ta_func\ta_MINMAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_MINMAXINDEX.obj ..\..\..\..\..\src\ta_func\ta_MINMAXINDEX.c + +..\..\..\..\..\temp\cmd\ta_MINUS_DI.obj: ..\..\..\..\..\src\ta_func\ta_MINUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_MINUS_DI.obj ..\..\..\..\..\src\ta_func\ta_MINUS_DI.c + +..\..\..\..\..\temp\cmd\ta_MINUS_DM.obj: ..\..\..\..\..\src\ta_func\ta_MINUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_MINUS_DM.obj ..\..\..\..\..\src\ta_func\ta_MINUS_DM.c + +..\..\..\..\..\temp\cmd\ta_MOM.obj: ..\..\..\..\..\src\ta_func\ta_MOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_MOM.obj ..\..\..\..\..\src\ta_func\ta_MOM.c + +..\..\..\..\..\temp\cmd\ta_MULT.obj: ..\..\..\..\..\src\ta_func\ta_MULT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_MULT.obj ..\..\..\..\..\src\ta_func\ta_MULT.c + +..\..\..\..\..\temp\cmd\ta_NATR.obj: ..\..\..\..\..\src\ta_func\ta_NATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_NATR.obj ..\..\..\..\..\src\ta_func\ta_NATR.c + +..\..\..\..\..\temp\cmd\ta_OBV.obj: ..\..\..\..\..\src\ta_func\ta_OBV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_OBV.obj ..\..\..\..\..\src\ta_func\ta_OBV.c + +..\..\..\..\..\temp\cmd\ta_PLUS_DI.obj: ..\..\..\..\..\src\ta_func\ta_PLUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_PLUS_DI.obj ..\..\..\..\..\src\ta_func\ta_PLUS_DI.c + +..\..\..\..\..\temp\cmd\ta_PLUS_DM.obj: ..\..\..\..\..\src\ta_func\ta_PLUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_PLUS_DM.obj ..\..\..\..\..\src\ta_func\ta_PLUS_DM.c + +..\..\..\..\..\temp\cmd\ta_PPO.obj: ..\..\..\..\..\src\ta_func\ta_PPO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_PPO.obj ..\..\..\..\..\src\ta_func\ta_PPO.c + +..\..\..\..\..\temp\cmd\ta_ROC.obj: ..\..\..\..\..\src\ta_func\ta_ROC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_ROC.obj ..\..\..\..\..\src\ta_func\ta_ROC.c + +..\..\..\..\..\temp\cmd\ta_ROCP.obj: ..\..\..\..\..\src\ta_func\ta_ROCP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_ROCP.obj ..\..\..\..\..\src\ta_func\ta_ROCP.c + +..\..\..\..\..\temp\cmd\ta_ROCR.obj: ..\..\..\..\..\src\ta_func\ta_ROCR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_ROCR.obj ..\..\..\..\..\src\ta_func\ta_ROCR.c + +..\..\..\..\..\temp\cmd\ta_ROCR100.obj: ..\..\..\..\..\src\ta_func\ta_ROCR100.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_ROCR100.obj ..\..\..\..\..\src\ta_func\ta_ROCR100.c + +..\..\..\..\..\temp\cmd\ta_RSI.obj: ..\..\..\..\..\src\ta_func\ta_RSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_RSI.obj ..\..\..\..\..\src\ta_func\ta_RSI.c + +..\..\..\..\..\temp\cmd\ta_SAR.obj: ..\..\..\..\..\src\ta_func\ta_SAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_SAR.obj ..\..\..\..\..\src\ta_func\ta_SAR.c + +..\..\..\..\..\temp\cmd\ta_SAREXT.obj: ..\..\..\..\..\src\ta_func\ta_SAREXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_SAREXT.obj ..\..\..\..\..\src\ta_func\ta_SAREXT.c + +..\..\..\..\..\temp\cmd\ta_SIN.obj: ..\..\..\..\..\src\ta_func\ta_SIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_SIN.obj ..\..\..\..\..\src\ta_func\ta_SIN.c + +..\..\..\..\..\temp\cmd\ta_SINH.obj: ..\..\..\..\..\src\ta_func\ta_SINH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_SINH.obj ..\..\..\..\..\src\ta_func\ta_SINH.c + +..\..\..\..\..\temp\cmd\ta_SMA.obj: ..\..\..\..\..\src\ta_func\ta_SMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_SMA.obj ..\..\..\..\..\src\ta_func\ta_SMA.c + +..\..\..\..\..\temp\cmd\ta_SQRT.obj: ..\..\..\..\..\src\ta_func\ta_SQRT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_SQRT.obj ..\..\..\..\..\src\ta_func\ta_SQRT.c + +..\..\..\..\..\temp\cmd\ta_STDDEV.obj: ..\..\..\..\..\src\ta_func\ta_STDDEV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_STDDEV.obj ..\..\..\..\..\src\ta_func\ta_STDDEV.c + +..\..\..\..\..\temp\cmd\ta_STOCH.obj: ..\..\..\..\..\src\ta_func\ta_STOCH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_STOCH.obj ..\..\..\..\..\src\ta_func\ta_STOCH.c + +..\..\..\..\..\temp\cmd\ta_STOCHF.obj: ..\..\..\..\..\src\ta_func\ta_STOCHF.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_STOCHF.obj ..\..\..\..\..\src\ta_func\ta_STOCHF.c + +..\..\..\..\..\temp\cmd\ta_STOCHRSI.obj: ..\..\..\..\..\src\ta_func\ta_STOCHRSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_STOCHRSI.obj ..\..\..\..\..\src\ta_func\ta_STOCHRSI.c + +..\..\..\..\..\temp\cmd\ta_SUB.obj: ..\..\..\..\..\src\ta_func\ta_SUB.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_SUB.obj ..\..\..\..\..\src\ta_func\ta_SUB.c + +..\..\..\..\..\temp\cmd\ta_SUM.obj: ..\..\..\..\..\src\ta_func\ta_SUM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_SUM.obj ..\..\..\..\..\src\ta_func\ta_SUM.c + +..\..\..\..\..\temp\cmd\ta_T3.obj: ..\..\..\..\..\src\ta_func\ta_T3.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_T3.obj ..\..\..\..\..\src\ta_func\ta_T3.c + +..\..\..\..\..\temp\cmd\ta_TAN.obj: ..\..\..\..\..\src\ta_func\ta_TAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_TAN.obj ..\..\..\..\..\src\ta_func\ta_TAN.c + +..\..\..\..\..\temp\cmd\ta_TANH.obj: ..\..\..\..\..\src\ta_func\ta_TANH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_TANH.obj ..\..\..\..\..\src\ta_func\ta_TANH.c + +..\..\..\..\..\temp\cmd\ta_TEMA.obj: ..\..\..\..\..\src\ta_func\ta_TEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_TEMA.obj ..\..\..\..\..\src\ta_func\ta_TEMA.c + +..\..\..\..\..\temp\cmd\ta_TRANGE.obj: ..\..\..\..\..\src\ta_func\ta_TRANGE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_TRANGE.obj ..\..\..\..\..\src\ta_func\ta_TRANGE.c + +..\..\..\..\..\temp\cmd\ta_TRIMA.obj: ..\..\..\..\..\src\ta_func\ta_TRIMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_TRIMA.obj ..\..\..\..\..\src\ta_func\ta_TRIMA.c + +..\..\..\..\..\temp\cmd\ta_TRIX.obj: ..\..\..\..\..\src\ta_func\ta_TRIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_TRIX.obj ..\..\..\..\..\src\ta_func\ta_TRIX.c + +..\..\..\..\..\temp\cmd\ta_TSF.obj: ..\..\..\..\..\src\ta_func\ta_TSF.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_TSF.obj ..\..\..\..\..\src\ta_func\ta_TSF.c + +..\..\..\..\..\temp\cmd\ta_TYPPRICE.obj: ..\..\..\..\..\src\ta_func\ta_TYPPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_TYPPRICE.obj ..\..\..\..\..\src\ta_func\ta_TYPPRICE.c + +..\..\..\..\..\temp\cmd\ta_ULTOSC.obj: ..\..\..\..\..\src\ta_func\ta_ULTOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_ULTOSC.obj ..\..\..\..\..\src\ta_func\ta_ULTOSC.c + +..\..\..\..\..\temp\cmd\ta_VAR.obj: ..\..\..\..\..\src\ta_func\ta_VAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_VAR.obj ..\..\..\..\..\src\ta_func\ta_VAR.c + +..\..\..\..\..\temp\cmd\ta_WCLPRICE.obj: ..\..\..\..\..\src\ta_func\ta_WCLPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_WCLPRICE.obj ..\..\..\..\..\src\ta_func\ta_WCLPRICE.c + +..\..\..\..\..\temp\cmd\ta_WILLR.obj: ..\..\..\..\..\src\ta_func\ta_WILLR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_WILLR.obj ..\..\..\..\..\src\ta_func\ta_WILLR.c + +..\..\..\..\..\temp\cmd\ta_WMA.obj: ..\..\..\..\..\src\ta_func\ta_WMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_WMA.obj ..\..\..\..\..\src\ta_func\ta_WMA.c + diff --git a/make/cmd/win32/borland/ta_regtest/Makefile b/make/cmd/win32/borland/ta_regtest/Makefile new file mode 100644 index 000000000..778524675 --- /dev/null +++ b/make/cmd/win32/borland/ta_regtest/Makefile @@ -0,0 +1,243 @@ +############################################################################# +# Makefile for building ta_regtest +# Generated by tmake; +# Project: ta_regtest/ta_regtest +# Template: app +############################################################################# + +!if !$d(BCB) +BCB = $(MAKEDIR)\.. +!endif + +####### Compiler, tools and options + +CC = bcc32 +CXX = bcc32 +CFLAGS = -x- -RT- -tWR -w -w-8004 -w-8071 -w-8057 -w-8080 -tWM -DTA_DEBUG -D_DEBUG -DWIN32 -DQT_THREAD_SUPPORT +CXXFLAGS= -x- -RT- -tWR -w -w-8004 -w-8071 -w-8057 -w-8080 -tWM -DTA_DEBUG -D_DEBUG -DWIN32 -DQT_THREAD_SUPPORT +INCPATH = -I"..\..\..\..\..\src\ta_common" -I"..\..\..\..\..\src\tools\ta_regtest" -I"..\..\..\..\..\src\ta_func" -I"..\..\..\..\..\include" +LINK = ilink32 +LFLAGS = -L$(BCB)\lib -L$(BCB)\lib\PSDK -c -x -Gn -v -ap -Tpe c0x32.obj +LIBS = import32.lib cw32mti.lib ..\..\..\..\..\lib\ta_libc_cmd.lib +MOC = moc +UIC = uic + +ZIP = zip -r -9 +DEF_FILE = +RES_FILE = + +####### Files + +HEADERS = +SOURCES = ..\..\..\..\..\src\tools\ta_regtest\ta_regtest.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_candlestick.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_1in_1out.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_1in_2out.c \ + ..\..\..\..\..\src\tools\ta_regtest\test_internals.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_adx.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_bbands.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_ma.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_macd.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_minmax.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_mom.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_ema.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hl.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hlc.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hlcv.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_ohlc.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_po.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_rsi.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_sar.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_stddev.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_stoch.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_trange.c \ + ..\..\..\..\..\src\tools\ta_regtest\test_util.c \ + ..\..\..\..\..\src\tools\ta_regtest\test_data.c \ + ..\..\..\..\..\src\tools\ta_regtest\test_abstract.c +OBJECTS = ..\..\..\..\..\temp\cmd\ta_regtest.obj \ + ..\..\..\..\..\temp\cmd\test_candlestick.obj \ + ..\..\..\..\..\temp\cmd\test_1in_1out.obj \ + ..\..\..\..\..\temp\cmd\test_1in_2out.obj \ + ..\..\..\..\..\temp\cmd\test_internals.obj \ + ..\..\..\..\..\temp\cmd\test_adx.obj \ + ..\..\..\..\..\temp\cmd\test_bbands.obj \ + ..\..\..\..\..\temp\cmd\test_ma.obj \ + ..\..\..\..\..\temp\cmd\test_macd.obj \ + ..\..\..\..\..\temp\cmd\test_minmax.obj \ + ..\..\..\..\..\temp\cmd\test_mom.obj \ + ..\..\..\..\..\temp\cmd\test_per_ema.obj \ + ..\..\..\..\..\temp\cmd\test_per_hl.obj \ + ..\..\..\..\..\temp\cmd\test_per_hlc.obj \ + ..\..\..\..\..\temp\cmd\test_per_hlcv.obj \ + ..\..\..\..\..\temp\cmd\test_per_ohlc.obj \ + ..\..\..\..\..\temp\cmd\test_po.obj \ + ..\..\..\..\..\temp\cmd\test_rsi.obj \ + ..\..\..\..\..\temp\cmd\test_sar.obj \ + ..\..\..\..\..\temp\cmd\test_stddev.obj \ + ..\..\..\..\..\temp\cmd\test_stoch.obj \ + ..\..\..\..\..\temp\cmd\test_trange.obj \ + ..\..\..\..\..\temp\cmd\test_util.obj \ + ..\..\..\..\..\temp\cmd\test_data.obj \ + ..\..\..\..\..\temp\cmd\test_abstract.obj +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ..\..\..\..\..\bin\ta_regtest.exe +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .c + +.cpp.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.cxx.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.cc.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.c.obj: + $(CC) -c $(CFLAGS) $(INCPATH) -o$@ $< + +####### Build rules + +all: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + $(LINK) @&&| + $(LFLAGS) $(OBJECTS) $(OBJMOC),$(TARGET),,$(LIBS),$(DEF_FILE),$(RES_FILE) +| + +moc: $(SRCMOC) + +tmake: ../cmd/win32/borland/ta_regtest/Makefile + +../cmd/win32/borland/ta_regtest/Makefile: ta_regtest/ta_regtest.pro + tmake ta_regtest/ta_regtest.pro -o ../cmd/win32/borland/ta_regtest/Makefile + +dist: + $(ZIP) ta_regtest/ta_regtest.zip ta_regtest/ta_regtest.pro $(SOURCES) $(HEADERS) $(DIST) + +clean: + -del ..\..\..\..\..\temp\cmd\ta_regtest.obj + -del ..\..\..\..\..\temp\cmd\test_candlestick.obj + -del ..\..\..\..\..\temp\cmd\test_1in_1out.obj + -del ..\..\..\..\..\temp\cmd\test_1in_2out.obj + -del ..\..\..\..\..\temp\cmd\test_internals.obj + -del ..\..\..\..\..\temp\cmd\test_adx.obj + -del ..\..\..\..\..\temp\cmd\test_bbands.obj + -del ..\..\..\..\..\temp\cmd\test_ma.obj + -del ..\..\..\..\..\temp\cmd\test_macd.obj + -del ..\..\..\..\..\temp\cmd\test_minmax.obj + -del ..\..\..\..\..\temp\cmd\test_mom.obj + -del ..\..\..\..\..\temp\cmd\test_per_ema.obj + -del ..\..\..\..\..\temp\cmd\test_per_hl.obj + -del ..\..\..\..\..\temp\cmd\test_per_hlc.obj + -del ..\..\..\..\..\temp\cmd\test_per_hlcv.obj + -del ..\..\..\..\..\temp\cmd\test_per_ohlc.obj + -del ..\..\..\..\..\temp\cmd\test_po.obj + -del ..\..\..\..\..\temp\cmd\test_rsi.obj + -del ..\..\..\..\..\temp\cmd\test_sar.obj + -del ..\..\..\..\..\temp\cmd\test_stddev.obj + -del ..\..\..\..\..\temp\cmd\test_stoch.obj + -del ..\..\..\..\..\temp\cmd\test_trange.obj + -del ..\..\..\..\..\temp\cmd\test_util.obj + -del ..\..\..\..\..\temp\cmd\test_data.obj + -del ..\..\..\..\..\temp\cmd\test_abstract.obj + -del $(TARGET) + -del ta_regtest.tds + -del ../../../../../bin/*.map + -del ../../../../../bin/*._xe + -del ../../../../../bin/*.tds + -del ../../../../../bin/*.pdb + -del ../../../../../bin/*.pbo + -del ../../../../../bin/*.pbi + -del ../../../../../bin/*.pbt + -del ../../../../../temp/cmd/*.pch + -del ../../../../../temp/cmd/*.idb + -del ../../../../../temp/cmd/ta_regtest/*.pch + -del ../../../../../temp/cmd/ta_regtest/*.idb + -del ../../../../../temp/cmd/ta_regtest/*.obj + +####### Compile + +..\..\..\..\..\temp\cmd\ta_regtest.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_regtest.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_regtest.obj ..\..\..\..\..\src\tools\ta_regtest\ta_regtest.c + +..\..\..\..\..\temp\cmd\test_candlestick.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_candlestick.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\test_candlestick.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_candlestick.c + +..\..\..\..\..\temp\cmd\test_1in_1out.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_1in_1out.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\test_1in_1out.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_1in_1out.c + +..\..\..\..\..\temp\cmd\test_1in_2out.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_1in_2out.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\test_1in_2out.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_1in_2out.c + +..\..\..\..\..\temp\cmd\test_internals.obj: ..\..\..\..\..\src\tools\ta_regtest\test_internals.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\test_internals.obj ..\..\..\..\..\src\tools\ta_regtest\test_internals.c + +..\..\..\..\..\temp\cmd\test_adx.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_adx.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\test_adx.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_adx.c + +..\..\..\..\..\temp\cmd\test_bbands.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_bbands.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\test_bbands.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_bbands.c + +..\..\..\..\..\temp\cmd\test_ma.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_ma.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\test_ma.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_ma.c + +..\..\..\..\..\temp\cmd\test_macd.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_macd.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\test_macd.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_macd.c + +..\..\..\..\..\temp\cmd\test_minmax.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_minmax.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\test_minmax.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_minmax.c + +..\..\..\..\..\temp\cmd\test_mom.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_mom.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\test_mom.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_mom.c + +..\..\..\..\..\temp\cmd\test_per_ema.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_ema.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\test_per_ema.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_ema.c + +..\..\..\..\..\temp\cmd\test_per_hl.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hl.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\test_per_hl.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hl.c + +..\..\..\..\..\temp\cmd\test_per_hlc.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hlc.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\test_per_hlc.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hlc.c + +..\..\..\..\..\temp\cmd\test_per_hlcv.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hlcv.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\test_per_hlcv.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hlcv.c + +..\..\..\..\..\temp\cmd\test_per_ohlc.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_ohlc.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\test_per_ohlc.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_ohlc.c + +..\..\..\..\..\temp\cmd\test_po.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_po.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\test_po.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_po.c + +..\..\..\..\..\temp\cmd\test_rsi.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_rsi.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\test_rsi.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_rsi.c + +..\..\..\..\..\temp\cmd\test_sar.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_sar.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\test_sar.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_sar.c + +..\..\..\..\..\temp\cmd\test_stddev.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_stddev.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\test_stddev.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_stddev.c + +..\..\..\..\..\temp\cmd\test_stoch.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_stoch.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\test_stoch.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_stoch.c + +..\..\..\..\..\temp\cmd\test_trange.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_trange.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\test_trange.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_trange.c + +..\..\..\..\..\temp\cmd\test_util.obj: ..\..\..\..\..\src\tools\ta_regtest\test_util.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\test_util.obj ..\..\..\..\..\src\tools\ta_regtest\test_util.c + +..\..\..\..\..\temp\cmd\test_data.obj: ..\..\..\..\..\src\tools\ta_regtest\test_data.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\test_data.obj ..\..\..\..\..\src\tools\ta_regtest\test_data.c + +..\..\..\..\..\temp\cmd\test_abstract.obj: ..\..\..\..\..\src\tools\ta_regtest\test_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\test_abstract.obj ..\..\..\..\..\src\tools\ta_regtest\test_abstract.c + diff --git a/make/cmd/win32/msvc/Makefile b/make/cmd/win32/msvc/Makefile new file mode 100644 index 000000000..031344b18 --- /dev/null +++ b/make/cmd/win32/msvc/Makefile @@ -0,0 +1,97 @@ +############################################################################# +# Makefile for building targets in sub directories. +# Generated by tmake; +# Project: rootmake +# Template: subdirs +############################################################################# + +MAKEFILE= Makefile +TMAKE = tmake + +SUBDIRS = ta_common \ + ta_func \ + ta_abstract \ + ta_libc \ + gen_code \ + ta_regtest + +all: $(SUBDIRS) + +ta_common: FORCE + cd ta_common + $(MAKE) /nologo + @cd .. + +ta_func: FORCE + cd ta_func + $(MAKE) /nologo + @cd .. + +ta_abstract: FORCE + cd ta_abstract + $(MAKE) /nologo + @cd .. + +ta_libc: FORCE + cd ta_libc + $(MAKE) /nologo + @cd .. + +gen_code: FORCE + cd gen_code + $(MAKE) /nologo + @cd .. + +ta_regtest: FORCE + cd ta_regtest + $(MAKE) /nologo + @cd .. + + +tmake: ../cmd/win32/msvc/Makefile + +../cmd/win32/msvc/Makefile: rootmake.pro + tmake rootmake.pro -o ../cmd/win32/msvc/Makefile + +tmake_all: + cd ta_common + $(TMAKE) ta_common.pro -o $(MAKEFILE) + @cd .. + cd ta_func + $(TMAKE) ta_func.pro -o $(MAKEFILE) + @cd .. + cd ta_abstract + $(TMAKE) ta_abstract.pro -o $(MAKEFILE) + @cd .. + cd ta_libc + $(TMAKE) ta_libc.pro -o $(MAKEFILE) + @cd .. + cd gen_code + $(TMAKE) gen_code.pro -o $(MAKEFILE) + @cd .. + cd ta_regtest + $(TMAKE) ta_regtest.pro -o $(MAKEFILE) + @cd .. + + +clean: + cd ta_common + $(MAKE) clean + @cd .. + cd ta_func + $(MAKE) clean + @cd .. + cd ta_abstract + $(MAKE) clean + @cd .. + cd ta_libc + $(MAKE) clean + @cd .. + cd gen_code + $(MAKE) clean + @cd .. + cd ta_regtest + $(MAKE) clean + @cd .. + +FORCE: diff --git a/make/cmd/win32/msvc/gen_code/Makefile b/make/cmd/win32/msvc/gen_code/Makefile new file mode 100644 index 000000000..fd6857787 --- /dev/null +++ b/make/cmd/win32/msvc/gen_code/Makefile @@ -0,0 +1,263 @@ +############################################################################# +# Makefile for building gen_code +# Generated by tmake; +# Project: gen_code/gen_code +# Template: app +############################################################################# + +####### Compiler, tools and options + +CC = cl +CXX = cl +CFLAGS = -nologo -W3 -MTd -Zi -DTA_GEN_CODE -DTA_DEBUG -D_DEBUG -DWIN32 -D_MBCS -D_LIB -DQT_THREAD_SUPPORT +CXXFLAGS= -nologo -W3 -MTd -Zi -DTA_GEN_CODE -DTA_DEBUG -D_DEBUG -DWIN32 -D_MBCS -D_LIB -DQT_THREAD_SUPPORT +INCPATH = -I"..\..\..\..\..\include" -I"..\..\..\..\..\src\ta_common" -I"..\..\..\..\..\src\ta_abstract" -I"..\..\..\..\..\src\ta_abstract\tables" -I"..\..\..\..\..\src\ta_abstract\frames" +LINK = link +LFLAGS = /NOLOGO /DEBUG /SUBSYSTEM:console +LIBS = ..\..\..\..\..\lib\ta_common_cmd.lib +MOC = moc +UIC = uic + +ZIP = zip -r -9 + +####### Files + +HEADERS = +SOURCES = ..\..\..\..\..\src\tools\gen_code\gen_code.c \ + ..\..\..\..\..\src\ta_abstract\ta_abstract.c \ + ..\..\..\..\..\src\ta_abstract\ta_def_ui.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_a.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_b.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_c.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_d.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_e.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_f.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_g.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_h.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_i.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_j.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_k.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_l.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_m.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_n.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_o.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_p.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_q.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_r.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_s.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_t.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_u.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_v.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_w.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_x.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_y.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_z.c +OBJECTS = ..\..\..\..\..\temp\cmd\gen_code\gen_code.obj \ + ..\..\..\..\..\temp\cmd\gen_code\ta_abstract.obj \ + ..\..\..\..\..\temp\cmd\gen_code\ta_def_ui.obj \ + ..\..\..\..\..\temp\cmd\gen_code\table_a.obj \ + ..\..\..\..\..\temp\cmd\gen_code\table_b.obj \ + ..\..\..\..\..\temp\cmd\gen_code\table_c.obj \ + ..\..\..\..\..\temp\cmd\gen_code\table_d.obj \ + ..\..\..\..\..\temp\cmd\gen_code\table_e.obj \ + ..\..\..\..\..\temp\cmd\gen_code\table_f.obj \ + ..\..\..\..\..\temp\cmd\gen_code\table_g.obj \ + ..\..\..\..\..\temp\cmd\gen_code\table_h.obj \ + ..\..\..\..\..\temp\cmd\gen_code\table_i.obj \ + ..\..\..\..\..\temp\cmd\gen_code\table_j.obj \ + ..\..\..\..\..\temp\cmd\gen_code\table_k.obj \ + ..\..\..\..\..\temp\cmd\gen_code\table_l.obj \ + ..\..\..\..\..\temp\cmd\gen_code\table_m.obj \ + ..\..\..\..\..\temp\cmd\gen_code\table_n.obj \ + ..\..\..\..\..\temp\cmd\gen_code\table_o.obj \ + ..\..\..\..\..\temp\cmd\gen_code\table_p.obj \ + ..\..\..\..\..\temp\cmd\gen_code\table_q.obj \ + ..\..\..\..\..\temp\cmd\gen_code\table_r.obj \ + ..\..\..\..\..\temp\cmd\gen_code\table_s.obj \ + ..\..\..\..\..\temp\cmd\gen_code\table_t.obj \ + ..\..\..\..\..\temp\cmd\gen_code\table_u.obj \ + ..\..\..\..\..\temp\cmd\gen_code\table_v.obj \ + ..\..\..\..\..\temp\cmd\gen_code\table_w.obj \ + ..\..\..\..\..\temp\cmd\gen_code\table_x.obj \ + ..\..\..\..\..\temp\cmd\gen_code\table_y.obj \ + ..\..\..\..\..\temp\cmd\gen_code\table_z.obj +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ..\..\..\..\..\bin\gen_code.exe +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .c + +.cpp.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $< + +.cxx.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $< + +.cc.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $< + +.c.obj: + $(CC) -c $(CFLAGS) $(INCPATH) -Fo$@ $< + +####### Build rules + +all: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + $(LINK) $(LFLAGS) /OUT:$(TARGET) @<< + $(OBJECTS) $(OBJMOC) $(LIBS) +<< + +moc: $(SRCMOC) + +tmake: ../cmd/win32/msvc/gen_code/Makefile + +../cmd/win32/msvc/gen_code/Makefile: gen_code/gen_code.pro + tmake gen_code/gen_code.pro -o ../cmd/win32/msvc/gen_code/Makefile + +dist: + $(ZIP) gen_code/gen_code.zip gen_code/gen_code.pro $(SOURCES) $(HEADERS) $(DIST) $(INTERFACES) + +clean: + -del ..\..\..\..\..\temp\cmd\gen_code\gen_code.obj + -del ..\..\..\..\..\temp\cmd\gen_code\ta_abstract.obj + -del ..\..\..\..\..\temp\cmd\gen_code\ta_def_ui.obj + -del ..\..\..\..\..\temp\cmd\gen_code\table_a.obj + -del ..\..\..\..\..\temp\cmd\gen_code\table_b.obj + -del ..\..\..\..\..\temp\cmd\gen_code\table_c.obj + -del ..\..\..\..\..\temp\cmd\gen_code\table_d.obj + -del ..\..\..\..\..\temp\cmd\gen_code\table_e.obj + -del ..\..\..\..\..\temp\cmd\gen_code\table_f.obj + -del ..\..\..\..\..\temp\cmd\gen_code\table_g.obj + -del ..\..\..\..\..\temp\cmd\gen_code\table_h.obj + -del ..\..\..\..\..\temp\cmd\gen_code\table_i.obj + -del ..\..\..\..\..\temp\cmd\gen_code\table_j.obj + -del ..\..\..\..\..\temp\cmd\gen_code\table_k.obj + -del ..\..\..\..\..\temp\cmd\gen_code\table_l.obj + -del ..\..\..\..\..\temp\cmd\gen_code\table_m.obj + -del ..\..\..\..\..\temp\cmd\gen_code\table_n.obj + -del ..\..\..\..\..\temp\cmd\gen_code\table_o.obj + -del ..\..\..\..\..\temp\cmd\gen_code\table_p.obj + -del ..\..\..\..\..\temp\cmd\gen_code\table_q.obj + -del ..\..\..\..\..\temp\cmd\gen_code\table_r.obj + -del ..\..\..\..\..\temp\cmd\gen_code\table_s.obj + -del ..\..\..\..\..\temp\cmd\gen_code\table_t.obj + -del ..\..\..\..\..\temp\cmd\gen_code\table_u.obj + -del ..\..\..\..\..\temp\cmd\gen_code\table_v.obj + -del ..\..\..\..\..\temp\cmd\gen_code\table_w.obj + -del ..\..\..\..\..\temp\cmd\gen_code\table_x.obj + -del ..\..\..\..\..\temp\cmd\gen_code\table_y.obj + -del ..\..\..\..\..\temp\cmd\gen_code\table_z.obj + -del $(TARGET) + -del ../../../../../bin/*.map + -del ../../../../../bin/*._xe + -del ../../../../../bin/*.tds + -del ../../../../../bin/*.pdb + -del ../../../../../bin/*.pbo + -del ../../../../../bin/*.pbi + -del ../../../../../bin/*.pbt + -del ../../../../../temp/cmd/*.pch + -del ../../../../../temp/cmd/*.idb + -del ../../../../../temp/cmd/gen_code/*.pch + -del ../../../../../temp/cmd/gen_code/*.idb + -del ../../../../../temp/cmd/gen_code/*.obj + -del gen_code.pdb + -del vc*.pdb + -del gen_code.ilk + +####### Compile + +..\..\..\..\..\temp\cmd\gen_code\gen_code.obj: ..\..\..\..\..\src\tools\gen_code\gen_code.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\gen_code\gen_code.obj ..\..\..\..\..\src\tools\gen_code\gen_code.c + +..\..\..\..\..\temp\cmd\gen_code\ta_abstract.obj: ..\..\..\..\..\src\ta_abstract\ta_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\gen_code\ta_abstract.obj ..\..\..\..\..\src\ta_abstract\ta_abstract.c + +..\..\..\..\..\temp\cmd\gen_code\ta_def_ui.obj: ..\..\..\..\..\src\ta_abstract\ta_def_ui.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\gen_code\ta_def_ui.obj ..\..\..\..\..\src\ta_abstract\ta_def_ui.c + +..\..\..\..\..\temp\cmd\gen_code\table_a.obj: ..\..\..\..\..\src\ta_abstract\tables\table_a.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\gen_code\table_a.obj ..\..\..\..\..\src\ta_abstract\tables\table_a.c + +..\..\..\..\..\temp\cmd\gen_code\table_b.obj: ..\..\..\..\..\src\ta_abstract\tables\table_b.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\gen_code\table_b.obj ..\..\..\..\..\src\ta_abstract\tables\table_b.c + +..\..\..\..\..\temp\cmd\gen_code\table_c.obj: ..\..\..\..\..\src\ta_abstract\tables\table_c.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\gen_code\table_c.obj ..\..\..\..\..\src\ta_abstract\tables\table_c.c + +..\..\..\..\..\temp\cmd\gen_code\table_d.obj: ..\..\..\..\..\src\ta_abstract\tables\table_d.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\gen_code\table_d.obj ..\..\..\..\..\src\ta_abstract\tables\table_d.c + +..\..\..\..\..\temp\cmd\gen_code\table_e.obj: ..\..\..\..\..\src\ta_abstract\tables\table_e.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\gen_code\table_e.obj ..\..\..\..\..\src\ta_abstract\tables\table_e.c + +..\..\..\..\..\temp\cmd\gen_code\table_f.obj: ..\..\..\..\..\src\ta_abstract\tables\table_f.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\gen_code\table_f.obj ..\..\..\..\..\src\ta_abstract\tables\table_f.c + +..\..\..\..\..\temp\cmd\gen_code\table_g.obj: ..\..\..\..\..\src\ta_abstract\tables\table_g.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\gen_code\table_g.obj ..\..\..\..\..\src\ta_abstract\tables\table_g.c + +..\..\..\..\..\temp\cmd\gen_code\table_h.obj: ..\..\..\..\..\src\ta_abstract\tables\table_h.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\gen_code\table_h.obj ..\..\..\..\..\src\ta_abstract\tables\table_h.c + +..\..\..\..\..\temp\cmd\gen_code\table_i.obj: ..\..\..\..\..\src\ta_abstract\tables\table_i.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\gen_code\table_i.obj ..\..\..\..\..\src\ta_abstract\tables\table_i.c + +..\..\..\..\..\temp\cmd\gen_code\table_j.obj: ..\..\..\..\..\src\ta_abstract\tables\table_j.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\gen_code\table_j.obj ..\..\..\..\..\src\ta_abstract\tables\table_j.c + +..\..\..\..\..\temp\cmd\gen_code\table_k.obj: ..\..\..\..\..\src\ta_abstract\tables\table_k.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\gen_code\table_k.obj ..\..\..\..\..\src\ta_abstract\tables\table_k.c + +..\..\..\..\..\temp\cmd\gen_code\table_l.obj: ..\..\..\..\..\src\ta_abstract\tables\table_l.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\gen_code\table_l.obj ..\..\..\..\..\src\ta_abstract\tables\table_l.c + +..\..\..\..\..\temp\cmd\gen_code\table_m.obj: ..\..\..\..\..\src\ta_abstract\tables\table_m.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\gen_code\table_m.obj ..\..\..\..\..\src\ta_abstract\tables\table_m.c + +..\..\..\..\..\temp\cmd\gen_code\table_n.obj: ..\..\..\..\..\src\ta_abstract\tables\table_n.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\gen_code\table_n.obj ..\..\..\..\..\src\ta_abstract\tables\table_n.c + +..\..\..\..\..\temp\cmd\gen_code\table_o.obj: ..\..\..\..\..\src\ta_abstract\tables\table_o.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\gen_code\table_o.obj ..\..\..\..\..\src\ta_abstract\tables\table_o.c + +..\..\..\..\..\temp\cmd\gen_code\table_p.obj: ..\..\..\..\..\src\ta_abstract\tables\table_p.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\gen_code\table_p.obj ..\..\..\..\..\src\ta_abstract\tables\table_p.c + +..\..\..\..\..\temp\cmd\gen_code\table_q.obj: ..\..\..\..\..\src\ta_abstract\tables\table_q.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\gen_code\table_q.obj ..\..\..\..\..\src\ta_abstract\tables\table_q.c + +..\..\..\..\..\temp\cmd\gen_code\table_r.obj: ..\..\..\..\..\src\ta_abstract\tables\table_r.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\gen_code\table_r.obj ..\..\..\..\..\src\ta_abstract\tables\table_r.c + +..\..\..\..\..\temp\cmd\gen_code\table_s.obj: ..\..\..\..\..\src\ta_abstract\tables\table_s.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\gen_code\table_s.obj ..\..\..\..\..\src\ta_abstract\tables\table_s.c + +..\..\..\..\..\temp\cmd\gen_code\table_t.obj: ..\..\..\..\..\src\ta_abstract\tables\table_t.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\gen_code\table_t.obj ..\..\..\..\..\src\ta_abstract\tables\table_t.c + +..\..\..\..\..\temp\cmd\gen_code\table_u.obj: ..\..\..\..\..\src\ta_abstract\tables\table_u.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\gen_code\table_u.obj ..\..\..\..\..\src\ta_abstract\tables\table_u.c + +..\..\..\..\..\temp\cmd\gen_code\table_v.obj: ..\..\..\..\..\src\ta_abstract\tables\table_v.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\gen_code\table_v.obj ..\..\..\..\..\src\ta_abstract\tables\table_v.c + +..\..\..\..\..\temp\cmd\gen_code\table_w.obj: ..\..\..\..\..\src\ta_abstract\tables\table_w.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\gen_code\table_w.obj ..\..\..\..\..\src\ta_abstract\tables\table_w.c + +..\..\..\..\..\temp\cmd\gen_code\table_x.obj: ..\..\..\..\..\src\ta_abstract\tables\table_x.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\gen_code\table_x.obj ..\..\..\..\..\src\ta_abstract\tables\table_x.c + +..\..\..\..\..\temp\cmd\gen_code\table_y.obj: ..\..\..\..\..\src\ta_abstract\tables\table_y.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\gen_code\table_y.obj ..\..\..\..\..\src\ta_abstract\tables\table_y.c + +..\..\..\..\..\temp\cmd\gen_code\table_z.obj: ..\..\..\..\..\src\ta_abstract\tables\table_z.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\gen_code\table_z.obj ..\..\..\..\..\src\ta_abstract\tables\table_z.c + diff --git a/make/cmd/win32/msvc/ta_abstract/Makefile b/make/cmd/win32/msvc/ta_abstract/Makefile new file mode 100644 index 000000000..eea6e61a7 --- /dev/null +++ b/make/cmd/win32/msvc/ta_abstract/Makefile @@ -0,0 +1,273 @@ +############################################################################# +# Makefile for building ta_abstract_cmd +# Generated by tmake; +# Project: ta_abstract/ta_abstract +# Template: lib +############################################################################# + +####### Compiler, tools and options + +CC = cl +CXX = cl +CFLAGS = -nologo -W3 -MTd -Zi -DTA_DEBUG -D_DEBUG -DWIN32 -D_MBCS -D_LIB -DQT_THREAD_SUPPORT +CXXFLAGS= -nologo -W3 -MTd -Zi -DTA_DEBUG -D_DEBUG -DWIN32 -D_MBCS -D_LIB -DQT_THREAD_SUPPORT +INCPATH = -I"..\..\..\..\..\src\ta_common" -I"..\..\..\..\..\src\ta_abstract" -I"..\..\..\..\..\src\ta_abstract\tables" -I"..\..\..\..\..\src\ta_abstract\frames" -I"..\..\..\..\..\include" +LIB = lib /NOLOGO +MOC = moc +UIC = uic + +ZIP = zip -r -9 + +####### Files + +HEADERS = +SOURCES = ..\..\..\..\..\src\ta_abstract\ta_abstract.c \ + ..\..\..\..\..\src\ta_abstract\ta_def_ui.c \ + ..\..\..\..\..\src\ta_abstract\ta_func_api.c \ + ..\..\..\..\..\src\ta_abstract\ta_group_idx.c \ + ..\..\..\..\..\src\ta_abstract\frames\ta_frame.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_a.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_b.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_c.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_d.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_e.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_f.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_g.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_h.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_i.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_j.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_k.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_l.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_m.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_n.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_o.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_p.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_q.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_r.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_s.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_t.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_u.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_v.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_w.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_x.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_y.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_z.c +OBJECTS = ..\..\..\..\..\temp\cmd\ta_abstract.obj \ + ..\..\..\..\..\temp\cmd\ta_def_ui.obj \ + ..\..\..\..\..\temp\cmd\ta_func_api.obj \ + ..\..\..\..\..\temp\cmd\ta_group_idx.obj \ + ..\..\..\..\..\temp\cmd\ta_frame.obj \ + ..\..\..\..\..\temp\cmd\table_a.obj \ + ..\..\..\..\..\temp\cmd\table_b.obj \ + ..\..\..\..\..\temp\cmd\table_c.obj \ + ..\..\..\..\..\temp\cmd\table_d.obj \ + ..\..\..\..\..\temp\cmd\table_e.obj \ + ..\..\..\..\..\temp\cmd\table_f.obj \ + ..\..\..\..\..\temp\cmd\table_g.obj \ + ..\..\..\..\..\temp\cmd\table_h.obj \ + ..\..\..\..\..\temp\cmd\table_i.obj \ + ..\..\..\..\..\temp\cmd\table_j.obj \ + ..\..\..\..\..\temp\cmd\table_k.obj \ + ..\..\..\..\..\temp\cmd\table_l.obj \ + ..\..\..\..\..\temp\cmd\table_m.obj \ + ..\..\..\..\..\temp\cmd\table_n.obj \ + ..\..\..\..\..\temp\cmd\table_o.obj \ + ..\..\..\..\..\temp\cmd\table_p.obj \ + ..\..\..\..\..\temp\cmd\table_q.obj \ + ..\..\..\..\..\temp\cmd\table_r.obj \ + ..\..\..\..\..\temp\cmd\table_s.obj \ + ..\..\..\..\..\temp\cmd\table_t.obj \ + ..\..\..\..\..\temp\cmd\table_u.obj \ + ..\..\..\..\..\temp\cmd\table_v.obj \ + ..\..\..\..\..\temp\cmd\table_w.obj \ + ..\..\..\..\..\temp\cmd\table_x.obj \ + ..\..\..\..\..\temp\cmd\table_y.obj \ + ..\..\..\..\..\temp\cmd\table_z.obj +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ..\..\..\..\..\lib\ta_abstract_cmd.lib +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .c + +.cpp.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $< + +.cxx.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $< + +.cc.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $< + +.c.obj: + $(CC) -c $(CFLAGS) $(INCPATH) -Fo$@ $< + +####### Build rules + +all: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + $(LIB) /OUT:$(TARGET) @<< + $(OBJECTS) $(OBJMOC) +<< + +moc: $(SRCMOC) + +tmake: ../cmd/win32/msvc/ta_abstract/Makefile + +../cmd/win32/msvc/ta_abstract/Makefile: ta_abstract/ta_abstract.pro + tmake ta_abstract/ta_abstract.pro -o ../cmd/win32/msvc/ta_abstract/Makefile + +dist: + $(ZIP) ta_abstract/ta_abstract.zip ta_abstract/ta_abstract.pro $(SOURCES) $(HEADERS) $(DIST) $(INTERFACES) + +clean: + -del ..\..\..\..\..\temp\cmd\ta_abstract.obj + -del ..\..\..\..\..\temp\cmd\ta_def_ui.obj + -del ..\..\..\..\..\temp\cmd\ta_func_api.obj + -del ..\..\..\..\..\temp\cmd\ta_group_idx.obj + -del ..\..\..\..\..\temp\cmd\ta_frame.obj + -del ..\..\..\..\..\temp\cmd\table_a.obj + -del ..\..\..\..\..\temp\cmd\table_b.obj + -del ..\..\..\..\..\temp\cmd\table_c.obj + -del ..\..\..\..\..\temp\cmd\table_d.obj + -del ..\..\..\..\..\temp\cmd\table_e.obj + -del ..\..\..\..\..\temp\cmd\table_f.obj + -del ..\..\..\..\..\temp\cmd\table_g.obj + -del ..\..\..\..\..\temp\cmd\table_h.obj + -del ..\..\..\..\..\temp\cmd\table_i.obj + -del ..\..\..\..\..\temp\cmd\table_j.obj + -del ..\..\..\..\..\temp\cmd\table_k.obj + -del ..\..\..\..\..\temp\cmd\table_l.obj + -del ..\..\..\..\..\temp\cmd\table_m.obj + -del ..\..\..\..\..\temp\cmd\table_n.obj + -del ..\..\..\..\..\temp\cmd\table_o.obj + -del ..\..\..\..\..\temp\cmd\table_p.obj + -del ..\..\..\..\..\temp\cmd\table_q.obj + -del ..\..\..\..\..\temp\cmd\table_r.obj + -del ..\..\..\..\..\temp\cmd\table_s.obj + -del ..\..\..\..\..\temp\cmd\table_t.obj + -del ..\..\..\..\..\temp\cmd\table_u.obj + -del ..\..\..\..\..\temp\cmd\table_v.obj + -del ..\..\..\..\..\temp\cmd\table_w.obj + -del ..\..\..\..\..\temp\cmd\table_x.obj + -del ..\..\..\..\..\temp\cmd\table_y.obj + -del ..\..\..\..\..\temp\cmd\table_z.obj + -del $(TARGET) + -del ../../../../../bin/*.map + -del ../../../../../bin/*._xe + -del ../../../../../bin/*.tds + -del ../../../../../bin/*.pdb + -del ../../../../../bin/*.pbo + -del ../../../../../bin/*.pbi + -del ../../../../../bin/*.pbt + -del ../../../../../temp/cmd/*.pch + -del ../../../../../temp/cmd/*.idb + -del ../../../../../temp/cmd/ta_abstract/*.pch + -del ../../../../../temp/cmd/ta_abstract/*.idb + -del ../../../../../temp/cmd/ta_abstract/*.obj + -del ta_abstract_cmd.pdb + -del vc*.pdb + -del ta_abstract_cmd.ilk + +####### Compile + +..\..\..\..\..\temp\cmd\ta_abstract.obj: ..\..\..\..\..\src\ta_abstract\ta_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_abstract.obj ..\..\..\..\..\src\ta_abstract\ta_abstract.c + +..\..\..\..\..\temp\cmd\ta_def_ui.obj: ..\..\..\..\..\src\ta_abstract\ta_def_ui.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_def_ui.obj ..\..\..\..\..\src\ta_abstract\ta_def_ui.c + +..\..\..\..\..\temp\cmd\ta_func_api.obj: ..\..\..\..\..\src\ta_abstract\ta_func_api.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_func_api.obj ..\..\..\..\..\src\ta_abstract\ta_func_api.c + +..\..\..\..\..\temp\cmd\ta_group_idx.obj: ..\..\..\..\..\src\ta_abstract\ta_group_idx.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_group_idx.obj ..\..\..\..\..\src\ta_abstract\ta_group_idx.c + +..\..\..\..\..\temp\cmd\ta_frame.obj: ..\..\..\..\..\src\ta_abstract\frames\ta_frame.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_frame.obj ..\..\..\..\..\src\ta_abstract\frames\ta_frame.c + +..\..\..\..\..\temp\cmd\table_a.obj: ..\..\..\..\..\src\ta_abstract\tables\table_a.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\table_a.obj ..\..\..\..\..\src\ta_abstract\tables\table_a.c + +..\..\..\..\..\temp\cmd\table_b.obj: ..\..\..\..\..\src\ta_abstract\tables\table_b.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\table_b.obj ..\..\..\..\..\src\ta_abstract\tables\table_b.c + +..\..\..\..\..\temp\cmd\table_c.obj: ..\..\..\..\..\src\ta_abstract\tables\table_c.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\table_c.obj ..\..\..\..\..\src\ta_abstract\tables\table_c.c + +..\..\..\..\..\temp\cmd\table_d.obj: ..\..\..\..\..\src\ta_abstract\tables\table_d.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\table_d.obj ..\..\..\..\..\src\ta_abstract\tables\table_d.c + +..\..\..\..\..\temp\cmd\table_e.obj: ..\..\..\..\..\src\ta_abstract\tables\table_e.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\table_e.obj ..\..\..\..\..\src\ta_abstract\tables\table_e.c + +..\..\..\..\..\temp\cmd\table_f.obj: ..\..\..\..\..\src\ta_abstract\tables\table_f.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\table_f.obj ..\..\..\..\..\src\ta_abstract\tables\table_f.c + +..\..\..\..\..\temp\cmd\table_g.obj: ..\..\..\..\..\src\ta_abstract\tables\table_g.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\table_g.obj ..\..\..\..\..\src\ta_abstract\tables\table_g.c + +..\..\..\..\..\temp\cmd\table_h.obj: ..\..\..\..\..\src\ta_abstract\tables\table_h.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\table_h.obj ..\..\..\..\..\src\ta_abstract\tables\table_h.c + +..\..\..\..\..\temp\cmd\table_i.obj: ..\..\..\..\..\src\ta_abstract\tables\table_i.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\table_i.obj ..\..\..\..\..\src\ta_abstract\tables\table_i.c + +..\..\..\..\..\temp\cmd\table_j.obj: ..\..\..\..\..\src\ta_abstract\tables\table_j.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\table_j.obj ..\..\..\..\..\src\ta_abstract\tables\table_j.c + +..\..\..\..\..\temp\cmd\table_k.obj: ..\..\..\..\..\src\ta_abstract\tables\table_k.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\table_k.obj ..\..\..\..\..\src\ta_abstract\tables\table_k.c + +..\..\..\..\..\temp\cmd\table_l.obj: ..\..\..\..\..\src\ta_abstract\tables\table_l.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\table_l.obj ..\..\..\..\..\src\ta_abstract\tables\table_l.c + +..\..\..\..\..\temp\cmd\table_m.obj: ..\..\..\..\..\src\ta_abstract\tables\table_m.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\table_m.obj ..\..\..\..\..\src\ta_abstract\tables\table_m.c + +..\..\..\..\..\temp\cmd\table_n.obj: ..\..\..\..\..\src\ta_abstract\tables\table_n.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\table_n.obj ..\..\..\..\..\src\ta_abstract\tables\table_n.c + +..\..\..\..\..\temp\cmd\table_o.obj: ..\..\..\..\..\src\ta_abstract\tables\table_o.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\table_o.obj ..\..\..\..\..\src\ta_abstract\tables\table_o.c + +..\..\..\..\..\temp\cmd\table_p.obj: ..\..\..\..\..\src\ta_abstract\tables\table_p.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\table_p.obj ..\..\..\..\..\src\ta_abstract\tables\table_p.c + +..\..\..\..\..\temp\cmd\table_q.obj: ..\..\..\..\..\src\ta_abstract\tables\table_q.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\table_q.obj ..\..\..\..\..\src\ta_abstract\tables\table_q.c + +..\..\..\..\..\temp\cmd\table_r.obj: ..\..\..\..\..\src\ta_abstract\tables\table_r.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\table_r.obj ..\..\..\..\..\src\ta_abstract\tables\table_r.c + +..\..\..\..\..\temp\cmd\table_s.obj: ..\..\..\..\..\src\ta_abstract\tables\table_s.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\table_s.obj ..\..\..\..\..\src\ta_abstract\tables\table_s.c + +..\..\..\..\..\temp\cmd\table_t.obj: ..\..\..\..\..\src\ta_abstract\tables\table_t.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\table_t.obj ..\..\..\..\..\src\ta_abstract\tables\table_t.c + +..\..\..\..\..\temp\cmd\table_u.obj: ..\..\..\..\..\src\ta_abstract\tables\table_u.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\table_u.obj ..\..\..\..\..\src\ta_abstract\tables\table_u.c + +..\..\..\..\..\temp\cmd\table_v.obj: ..\..\..\..\..\src\ta_abstract\tables\table_v.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\table_v.obj ..\..\..\..\..\src\ta_abstract\tables\table_v.c + +..\..\..\..\..\temp\cmd\table_w.obj: ..\..\..\..\..\src\ta_abstract\tables\table_w.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\table_w.obj ..\..\..\..\..\src\ta_abstract\tables\table_w.c + +..\..\..\..\..\temp\cmd\table_x.obj: ..\..\..\..\..\src\ta_abstract\tables\table_x.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\table_x.obj ..\..\..\..\..\src\ta_abstract\tables\table_x.c + +..\..\..\..\..\temp\cmd\table_y.obj: ..\..\..\..\..\src\ta_abstract\tables\table_y.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\table_y.obj ..\..\..\..\..\src\ta_abstract\tables\table_y.c + +..\..\..\..\..\temp\cmd\table_z.obj: ..\..\..\..\..\src\ta_abstract\tables\table_z.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\table_z.obj ..\..\..\..\..\src\ta_abstract\tables\table_z.c + diff --git a/make/cmd/win32/msvc/ta_common/Makefile b/make/cmd/win32/msvc/ta_common/Makefile new file mode 100644 index 000000000..3b7d015e6 --- /dev/null +++ b/make/cmd/win32/msvc/ta_common/Makefile @@ -0,0 +1,105 @@ +############################################################################# +# Makefile for building ta_common_cmd +# Generated by tmake; +# Project: ta_common/ta_common +# Template: lib +############################################################################# + +####### Compiler, tools and options + +CC = cl +CXX = cl +CFLAGS = -nologo -W3 -MTd -Zi -DTA_DEBUG -D_DEBUG -DWIN32 -D_MBCS -D_LIB -DQT_THREAD_SUPPORT +CXXFLAGS= -nologo -W3 -MTd -Zi -DTA_DEBUG -D_DEBUG -DWIN32 -D_MBCS -D_LIB -DQT_THREAD_SUPPORT +INCPATH = -I"..\..\..\..\..\src\ta_common" -I"..\..\..\..\..\include" +LIB = lib /NOLOGO +MOC = moc +UIC = uic + +ZIP = zip -r -9 + +####### Files + +HEADERS = +SOURCES = ..\..\..\..\..\src\ta_common\ta_global.c \ + ..\..\..\..\..\src\ta_common\ta_retcode.c \ + ..\..\..\..\..\src\ta_common\ta_version.c +OBJECTS = ..\..\..\..\..\temp\cmd\ta_global.obj \ + ..\..\..\..\..\temp\cmd\ta_retcode.obj \ + ..\..\..\..\..\temp\cmd\ta_version.obj +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ..\..\..\..\..\lib\ta_common_cmd.lib +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .c + +.cpp.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $< + +.cxx.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $< + +.cc.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $< + +.c.obj: + $(CC) -c $(CFLAGS) $(INCPATH) -Fo$@ $< + +####### Build rules + +all: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + $(LIB) /OUT:$(TARGET) @<< + $(OBJECTS) $(OBJMOC) +<< + +moc: $(SRCMOC) + +tmake: ../cmd/win32/msvc/ta_common/Makefile + +../cmd/win32/msvc/ta_common/Makefile: ta_common/ta_common.pro + tmake ta_common/ta_common.pro -o ../cmd/win32/msvc/ta_common/Makefile + +dist: + $(ZIP) ta_common/ta_common.zip ta_common/ta_common.pro $(SOURCES) $(HEADERS) $(DIST) $(INTERFACES) + +clean: + -del ..\..\..\..\..\temp\cmd\ta_global.obj + -del ..\..\..\..\..\temp\cmd\ta_retcode.obj + -del ..\..\..\..\..\temp\cmd\ta_version.obj + -del $(TARGET) + -del ../../../../../bin/*.map + -del ../../../../../bin/*._xe + -del ../../../../../bin/*.tds + -del ../../../../../bin/*.pdb + -del ../../../../../bin/*.pbo + -del ../../../../../bin/*.pbi + -del ../../../../../bin/*.pbt + -del ../../../../../temp/cmd/*.pch + -del ../../../../../temp/cmd/*.idb + -del ../../../../../temp/cmd/ta_common_cmd/*.pch + -del ../../../../../temp/cmd/ta_common_cmd/*.idb + -del ../../../../../temp/cmd/ta_common_cmd/*.obj + -del ta_common_cmd.pdb + -del vc*.pdb + -del ta_common_cmd.ilk + +####### Compile + +..\..\..\..\..\temp\cmd\ta_global.obj: ..\..\..\..\..\src\ta_common\ta_global.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_global.obj ..\..\..\..\..\src\ta_common\ta_global.c + +..\..\..\..\..\temp\cmd\ta_retcode.obj: ..\..\..\..\..\src\ta_common\ta_retcode.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_retcode.obj ..\..\..\..\..\src\ta_common\ta_retcode.c + +..\..\..\..\..\temp\cmd\ta_version.obj: ..\..\..\..\..\src\ta_common\ta_version.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_version.obj ..\..\..\..\..\src\ta_common\ta_version.c + diff --git a/make/cmd/win32/msvc/ta_func/Makefile b/make/cmd/win32/msvc/ta_func/Makefile new file mode 100644 index 000000000..421569ac2 --- /dev/null +++ b/make/cmd/win32/msvc/ta_func/Makefile @@ -0,0 +1,1041 @@ +############################################################################# +# Makefile for building ta_func_cmd +# Generated by tmake; +# Project: ta_func/ta_func +# Template: lib +############################################################################# + +####### Compiler, tools and options + +CC = cl +CXX = cl +CFLAGS = -nologo -W3 -MTd -Zi -DTA_DEBUG -D_DEBUG -DWIN32 -D_MBCS -D_LIB -DQT_THREAD_SUPPORT +CXXFLAGS= -nologo -W3 -MTd -Zi -DTA_DEBUG -D_DEBUG -DWIN32 -D_MBCS -D_LIB -DQT_THREAD_SUPPORT +INCPATH = -I"..\..\..\..\..\src\ta_common" -I"\n" -I"..\..\..\..\..\include" +LIB = lib /NOLOGO +MOC = moc +UIC = uic + +ZIP = zip -r -9 + +####### Files + +HEADERS = +SOURCES = ..\..\..\..\..\src\ta_func\ta_utility.c \ + ..\..\..\..\..\src\ta_func\ta_ACOS.c \ + ..\..\..\..\..\src\ta_func\ta_AD.c \ + ..\..\..\..\..\src\ta_func\ta_ADD.c \ + ..\..\..\..\..\src\ta_func\ta_ADOSC.c \ + ..\..\..\..\..\src\ta_func\ta_ADX.c \ + ..\..\..\..\..\src\ta_func\ta_ADXR.c \ + ..\..\..\..\..\src\ta_func\ta_APO.c \ + ..\..\..\..\..\src\ta_func\ta_AROON.c \ + ..\..\..\..\..\src\ta_func\ta_AROONOSC.c \ + ..\..\..\..\..\src\ta_func\ta_ASIN.c \ + ..\..\..\..\..\src\ta_func\ta_ATAN.c \ + ..\..\..\..\..\src\ta_func\ta_ATR.c \ + ..\..\..\..\..\src\ta_func\ta_AVGPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_BBANDS.c \ + ..\..\..\..\..\src\ta_func\ta_BETA.c \ + ..\..\..\..\..\src\ta_func\ta_BOP.c \ + ..\..\..\..\..\src\ta_func\ta_CCI.c \ + ..\..\..\..\..\src\ta_func\ta_CDL2CROWS.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3BLACKCROWS.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3INSIDE.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3LINESTRIKE.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3OUTSIDE.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3STARSINSOUTH.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3WHITESOLDIERS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLABANDONEDBABY.c \ + ..\..\..\..\..\src\ta_func\ta_CDLADVANCEBLOCK.c \ + ..\..\..\..\..\src\ta_func\ta_CDLBELTHOLD.c \ + ..\..\..\..\..\src\ta_func\ta_CDLBREAKAWAY.c \ + ..\..\..\..\..\src\ta_func\ta_CDLCLOSINGMARUBOZU.c \ + ..\..\..\..\..\src\ta_func\ta_CDLCONCEALBABYSWALL.c \ + ..\..\..\..\..\src\ta_func\ta_CDLCOUNTERATTACK.c \ + ..\..\..\..\..\src\ta_func\ta_CDLDARKCLOUDCOVER.c \ + ..\..\..\..\..\src\ta_func\ta_CDLDOJI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLDOJISTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLDRAGONFLYDOJI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLENGULFING.c \ + ..\..\..\..\..\src\ta_func\ta_CDLEVENINGDOJISTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLEVENINGSTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLGAPSIDESIDEWHITE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLGRAVESTONEDOJI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHAMMER.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHANGINGMAN.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHARAMI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHARAMICROSS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHIGHWAVE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKEMOD.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHOMINGPIGEON.c \ + ..\..\..\..\..\src\ta_func\ta_CDLIDENTICAL3CROWS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLINNECK.c \ + ..\..\..\..\..\src\ta_func\ta_CDLINVERTEDHAMMER.c \ + ..\..\..\..\..\src\ta_func\ta_CDLKICKING.c \ + ..\..\..\..\..\src\ta_func\ta_CDLKICKINGBYLENGTH.c \ + ..\..\..\..\..\src\ta_func\ta_CDLLADDERBOTTOM.c \ + ..\..\..\..\..\src\ta_func\ta_CDLLONGLEGGEDDOJI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLLONGLINE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMARUBOZU.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMATCHINGLOW.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMATHOLD.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMORNINGDOJISTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMORNINGSTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLONNECK.c \ + ..\..\..\..\..\src\ta_func\ta_CDLPIERCING.c \ + ..\..\..\..\..\src\ta_func\ta_CDLRICKSHAWMAN.c \ + ..\..\..\..\..\src\ta_func\ta_CDLRISEFALL3METHODS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSEPARATINGLINES.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSHOOTINGSTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSHORTLINE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSPINNINGTOP.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSTALLEDPATTERN.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSTICKSANDWICH.c \ + ..\..\..\..\..\src\ta_func\ta_CDLTAKURI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLTASUKIGAP.c \ + ..\..\..\..\..\src\ta_func\ta_CDLTHRUSTING.c \ + ..\..\..\..\..\src\ta_func\ta_CDLTRISTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLUNIQUE3RIVER.c \ + ..\..\..\..\..\src\ta_func\ta_CDLUPSIDEGAP2CROWS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLXSIDEGAP3METHODS.c \ + ..\..\..\..\..\src\ta_func\ta_CEIL.c \ + ..\..\..\..\..\src\ta_func\ta_CMO.c \ + ..\..\..\..\..\src\ta_func\ta_CORREL.c \ + ..\..\..\..\..\src\ta_func\ta_COS.c \ + ..\..\..\..\..\src\ta_func\ta_COSH.c \ + ..\..\..\..\..\src\ta_func\ta_DEMA.c \ + ..\..\..\..\..\src\ta_func\ta_DIV.c \ + ..\..\..\..\..\src\ta_func\ta_DX.c \ + ..\..\..\..\..\src\ta_func\ta_EMA.c \ + ..\..\..\..\..\src\ta_func\ta_EXP.c \ + ..\..\..\..\..\src\ta_func\ta_FLOOR.c \ + ..\..\..\..\..\src\ta_func\ta_HT_DCPERIOD.c \ + ..\..\..\..\..\src\ta_func\ta_HT_DCPHASE.c \ + ..\..\..\..\..\src\ta_func\ta_HT_PHASOR.c \ + ..\..\..\..\..\src\ta_func\ta_HT_SINE.c \ + ..\..\..\..\..\src\ta_func\ta_HT_TRENDLINE.c \ + ..\..\..\..\..\src\ta_func\ta_HT_TRENDMODE.c \ + ..\..\..\..\..\src\ta_func\ta_KAMA.c \ + ..\..\..\..\..\src\ta_func\ta_LINEARREG.c \ + ..\..\..\..\..\src\ta_func\ta_LINEARREG_ANGLE.c \ + ..\..\..\..\..\src\ta_func\ta_LINEARREG_INTERCEPT.c \ + ..\..\..\..\..\src\ta_func\ta_LINEARREG_SLOPE.c \ + ..\..\..\..\..\src\ta_func\ta_LN.c \ + ..\..\..\..\..\src\ta_func\ta_LOG10.c \ + ..\..\..\..\..\src\ta_func\ta_MA.c \ + ..\..\..\..\..\src\ta_func\ta_MACD.c \ + ..\..\..\..\..\src\ta_func\ta_MACDEXT.c \ + ..\..\..\..\..\src\ta_func\ta_MACDFIX.c \ + ..\..\..\..\..\src\ta_func\ta_MAMA.c \ + ..\..\..\..\..\src\ta_func\ta_MAVP.c \ + ..\..\..\..\..\src\ta_func\ta_MAX.c \ + ..\..\..\..\..\src\ta_func\ta_MAXINDEX.c \ + ..\..\..\..\..\src\ta_func\ta_MEDPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_MFI.c \ + ..\..\..\..\..\src\ta_func\ta_MIDPOINT.c \ + ..\..\..\..\..\src\ta_func\ta_MIDPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_MIN.c \ + ..\..\..\..\..\src\ta_func\ta_MININDEX.c \ + ..\..\..\..\..\src\ta_func\ta_MINMAX.c \ + ..\..\..\..\..\src\ta_func\ta_MINMAXINDEX.c \ + ..\..\..\..\..\src\ta_func\ta_MINUS_DI.c \ + ..\..\..\..\..\src\ta_func\ta_MINUS_DM.c \ + ..\..\..\..\..\src\ta_func\ta_MOM.c \ + ..\..\..\..\..\src\ta_func\ta_MULT.c \ + ..\..\..\..\..\src\ta_func\ta_NATR.c \ + ..\..\..\..\..\src\ta_func\ta_OBV.c \ + ..\..\..\..\..\src\ta_func\ta_PLUS_DI.c \ + ..\..\..\..\..\src\ta_func\ta_PLUS_DM.c \ + ..\..\..\..\..\src\ta_func\ta_PPO.c \ + ..\..\..\..\..\src\ta_func\ta_ROC.c \ + ..\..\..\..\..\src\ta_func\ta_ROCP.c \ + ..\..\..\..\..\src\ta_func\ta_ROCR.c \ + ..\..\..\..\..\src\ta_func\ta_ROCR100.c \ + ..\..\..\..\..\src\ta_func\ta_RSI.c \ + ..\..\..\..\..\src\ta_func\ta_SAR.c \ + ..\..\..\..\..\src\ta_func\ta_SAREXT.c \ + ..\..\..\..\..\src\ta_func\ta_SIN.c \ + ..\..\..\..\..\src\ta_func\ta_SINH.c \ + ..\..\..\..\..\src\ta_func\ta_SMA.c \ + ..\..\..\..\..\src\ta_func\ta_SQRT.c \ + ..\..\..\..\..\src\ta_func\ta_STDDEV.c \ + ..\..\..\..\..\src\ta_func\ta_STOCH.c \ + ..\..\..\..\..\src\ta_func\ta_STOCHF.c \ + ..\..\..\..\..\src\ta_func\ta_STOCHRSI.c \ + ..\..\..\..\..\src\ta_func\ta_SUB.c \ + ..\..\..\..\..\src\ta_func\ta_SUM.c \ + ..\..\..\..\..\src\ta_func\ta_T3.c \ + ..\..\..\..\..\src\ta_func\ta_TAN.c \ + ..\..\..\..\..\src\ta_func\ta_TANH.c \ + ..\..\..\..\..\src\ta_func\ta_TEMA.c \ + ..\..\..\..\..\src\ta_func\ta_TRANGE.c \ + ..\..\..\..\..\src\ta_func\ta_TRIMA.c \ + ..\..\..\..\..\src\ta_func\ta_TRIX.c \ + ..\..\..\..\..\src\ta_func\ta_TSF.c \ + ..\..\..\..\..\src\ta_func\ta_TYPPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_ULTOSC.c \ + ..\..\..\..\..\src\ta_func\ta_VAR.c \ + ..\..\..\..\..\src\ta_func\ta_WCLPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_WILLR.c \ + ..\..\..\..\..\src\ta_func\ta_WMA.c +OBJECTS = ..\..\..\..\..\temp\cmd\ta_utility.obj \ + ..\..\..\..\..\temp\cmd\ta_ACOS.obj \ + ..\..\..\..\..\temp\cmd\ta_AD.obj \ + ..\..\..\..\..\temp\cmd\ta_ADD.obj \ + ..\..\..\..\..\temp\cmd\ta_ADOSC.obj \ + ..\..\..\..\..\temp\cmd\ta_ADX.obj \ + ..\..\..\..\..\temp\cmd\ta_ADXR.obj \ + ..\..\..\..\..\temp\cmd\ta_APO.obj \ + ..\..\..\..\..\temp\cmd\ta_AROON.obj \ + ..\..\..\..\..\temp\cmd\ta_AROONOSC.obj \ + ..\..\..\..\..\temp\cmd\ta_ASIN.obj \ + ..\..\..\..\..\temp\cmd\ta_ATAN.obj \ + ..\..\..\..\..\temp\cmd\ta_ATR.obj \ + ..\..\..\..\..\temp\cmd\ta_AVGPRICE.obj \ + ..\..\..\..\..\temp\cmd\ta_BBANDS.obj \ + ..\..\..\..\..\temp\cmd\ta_BETA.obj \ + ..\..\..\..\..\temp\cmd\ta_BOP.obj \ + ..\..\..\..\..\temp\cmd\ta_CCI.obj \ + ..\..\..\..\..\temp\cmd\ta_CDL2CROWS.obj \ + ..\..\..\..\..\temp\cmd\ta_CDL3BLACKCROWS.obj \ + ..\..\..\..\..\temp\cmd\ta_CDL3INSIDE.obj \ + ..\..\..\..\..\temp\cmd\ta_CDL3LINESTRIKE.obj \ + ..\..\..\..\..\temp\cmd\ta_CDL3OUTSIDE.obj \ + ..\..\..\..\..\temp\cmd\ta_CDL3STARSINSOUTH.obj \ + ..\..\..\..\..\temp\cmd\ta_CDL3WHITESOLDIERS.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLABANDONEDBABY.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLADVANCEBLOCK.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLBELTHOLD.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLBREAKAWAY.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLCLOSINGMARUBOZU.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLCONCEALBABYSWALL.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLCOUNTERATTACK.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLDARKCLOUDCOVER.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLDOJI.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLDOJISTAR.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLDRAGONFLYDOJI.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLENGULFING.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLEVENINGDOJISTAR.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLEVENINGSTAR.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLGAPSIDESIDEWHITE.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLGRAVESTONEDOJI.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLHAMMER.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLHANGINGMAN.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLHARAMI.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLHARAMICROSS.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLHIGHWAVE.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLHIKKAKE.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLHIKKAKEMOD.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLHOMINGPIGEON.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLIDENTICAL3CROWS.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLINNECK.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLINVERTEDHAMMER.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLKICKING.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLKICKINGBYLENGTH.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLLADDERBOTTOM.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLLONGLEGGEDDOJI.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLLONGLINE.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLMARUBOZU.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLMATCHINGLOW.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLMATHOLD.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLMORNINGDOJISTAR.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLMORNINGSTAR.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLONNECK.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLPIERCING.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLRICKSHAWMAN.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLRISEFALL3METHODS.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLSEPARATINGLINES.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLSHOOTINGSTAR.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLSHORTLINE.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLSPINNINGTOP.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLSTALLEDPATTERN.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLSTICKSANDWICH.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLTAKURI.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLTASUKIGAP.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLTHRUSTING.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLTRISTAR.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLUNIQUE3RIVER.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLUPSIDEGAP2CROWS.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLXSIDEGAP3METHODS.obj \ + ..\..\..\..\..\temp\cmd\ta_CEIL.obj \ + ..\..\..\..\..\temp\cmd\ta_CMO.obj \ + ..\..\..\..\..\temp\cmd\ta_CORREL.obj \ + ..\..\..\..\..\temp\cmd\ta_COS.obj \ + ..\..\..\..\..\temp\cmd\ta_COSH.obj \ + ..\..\..\..\..\temp\cmd\ta_DEMA.obj \ + ..\..\..\..\..\temp\cmd\ta_DIV.obj \ + ..\..\..\..\..\temp\cmd\ta_DX.obj \ + ..\..\..\..\..\temp\cmd\ta_EMA.obj \ + ..\..\..\..\..\temp\cmd\ta_EXP.obj \ + ..\..\..\..\..\temp\cmd\ta_FLOOR.obj \ + ..\..\..\..\..\temp\cmd\ta_HT_DCPERIOD.obj \ + ..\..\..\..\..\temp\cmd\ta_HT_DCPHASE.obj \ + ..\..\..\..\..\temp\cmd\ta_HT_PHASOR.obj \ + ..\..\..\..\..\temp\cmd\ta_HT_SINE.obj \ + ..\..\..\..\..\temp\cmd\ta_HT_TRENDLINE.obj \ + ..\..\..\..\..\temp\cmd\ta_HT_TRENDMODE.obj \ + ..\..\..\..\..\temp\cmd\ta_KAMA.obj \ + ..\..\..\..\..\temp\cmd\ta_LINEARREG.obj \ + ..\..\..\..\..\temp\cmd\ta_LINEARREG_ANGLE.obj \ + ..\..\..\..\..\temp\cmd\ta_LINEARREG_INTERCEPT.obj \ + ..\..\..\..\..\temp\cmd\ta_LINEARREG_SLOPE.obj \ + ..\..\..\..\..\temp\cmd\ta_LN.obj \ + ..\..\..\..\..\temp\cmd\ta_LOG10.obj \ + ..\..\..\..\..\temp\cmd\ta_MA.obj \ + ..\..\..\..\..\temp\cmd\ta_MACD.obj \ + ..\..\..\..\..\temp\cmd\ta_MACDEXT.obj \ + ..\..\..\..\..\temp\cmd\ta_MACDFIX.obj \ + ..\..\..\..\..\temp\cmd\ta_MAMA.obj \ + ..\..\..\..\..\temp\cmd\ta_MAVP.obj \ + ..\..\..\..\..\temp\cmd\ta_MAX.obj \ + ..\..\..\..\..\temp\cmd\ta_MAXINDEX.obj \ + ..\..\..\..\..\temp\cmd\ta_MEDPRICE.obj \ + ..\..\..\..\..\temp\cmd\ta_MFI.obj \ + ..\..\..\..\..\temp\cmd\ta_MIDPOINT.obj \ + ..\..\..\..\..\temp\cmd\ta_MIDPRICE.obj \ + ..\..\..\..\..\temp\cmd\ta_MIN.obj \ + ..\..\..\..\..\temp\cmd\ta_MININDEX.obj \ + ..\..\..\..\..\temp\cmd\ta_MINMAX.obj \ + ..\..\..\..\..\temp\cmd\ta_MINMAXINDEX.obj \ + ..\..\..\..\..\temp\cmd\ta_MINUS_DI.obj \ + ..\..\..\..\..\temp\cmd\ta_MINUS_DM.obj \ + ..\..\..\..\..\temp\cmd\ta_MOM.obj \ + ..\..\..\..\..\temp\cmd\ta_MULT.obj \ + ..\..\..\..\..\temp\cmd\ta_NATR.obj \ + ..\..\..\..\..\temp\cmd\ta_OBV.obj \ + ..\..\..\..\..\temp\cmd\ta_PLUS_DI.obj \ + ..\..\..\..\..\temp\cmd\ta_PLUS_DM.obj \ + ..\..\..\..\..\temp\cmd\ta_PPO.obj \ + ..\..\..\..\..\temp\cmd\ta_ROC.obj \ + ..\..\..\..\..\temp\cmd\ta_ROCP.obj \ + ..\..\..\..\..\temp\cmd\ta_ROCR.obj \ + ..\..\..\..\..\temp\cmd\ta_ROCR100.obj \ + ..\..\..\..\..\temp\cmd\ta_RSI.obj \ + ..\..\..\..\..\temp\cmd\ta_SAR.obj \ + ..\..\..\..\..\temp\cmd\ta_SAREXT.obj \ + ..\..\..\..\..\temp\cmd\ta_SIN.obj \ + ..\..\..\..\..\temp\cmd\ta_SINH.obj \ + ..\..\..\..\..\temp\cmd\ta_SMA.obj \ + ..\..\..\..\..\temp\cmd\ta_SQRT.obj \ + ..\..\..\..\..\temp\cmd\ta_STDDEV.obj \ + ..\..\..\..\..\temp\cmd\ta_STOCH.obj \ + ..\..\..\..\..\temp\cmd\ta_STOCHF.obj \ + ..\..\..\..\..\temp\cmd\ta_STOCHRSI.obj \ + ..\..\..\..\..\temp\cmd\ta_SUB.obj \ + ..\..\..\..\..\temp\cmd\ta_SUM.obj \ + ..\..\..\..\..\temp\cmd\ta_T3.obj \ + ..\..\..\..\..\temp\cmd\ta_TAN.obj \ + ..\..\..\..\..\temp\cmd\ta_TANH.obj \ + ..\..\..\..\..\temp\cmd\ta_TEMA.obj \ + ..\..\..\..\..\temp\cmd\ta_TRANGE.obj \ + ..\..\..\..\..\temp\cmd\ta_TRIMA.obj \ + ..\..\..\..\..\temp\cmd\ta_TRIX.obj \ + ..\..\..\..\..\temp\cmd\ta_TSF.obj \ + ..\..\..\..\..\temp\cmd\ta_TYPPRICE.obj \ + ..\..\..\..\..\temp\cmd\ta_ULTOSC.obj \ + ..\..\..\..\..\temp\cmd\ta_VAR.obj \ + ..\..\..\..\..\temp\cmd\ta_WCLPRICE.obj \ + ..\..\..\..\..\temp\cmd\ta_WILLR.obj \ + ..\..\..\..\..\temp\cmd\ta_WMA.obj +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ..\..\..\..\..\lib\ta_func_cmd.lib +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .c + +.cpp.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $< + +.cxx.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $< + +.cc.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $< + +.c.obj: + $(CC) -c $(CFLAGS) $(INCPATH) -Fo$@ $< + +####### Build rules + +all: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + $(LIB) /OUT:$(TARGET) @<< + $(OBJECTS) $(OBJMOC) +<< + +moc: $(SRCMOC) + +tmake: ../cmd/win32/msvc/ta_func/Makefile + +../cmd/win32/msvc/ta_func/Makefile: ta_func/ta_func.pro + tmake ta_func/ta_func.pro -o ../cmd/win32/msvc/ta_func/Makefile + +dist: + $(ZIP) ta_func/ta_func.zip ta_func/ta_func.pro $(SOURCES) $(HEADERS) $(DIST) $(INTERFACES) + +clean: + -del ..\..\..\..\..\temp\cmd\ta_utility.obj + -del ..\..\..\..\..\temp\cmd\ta_ACOS.obj + -del ..\..\..\..\..\temp\cmd\ta_AD.obj + -del ..\..\..\..\..\temp\cmd\ta_ADD.obj + -del ..\..\..\..\..\temp\cmd\ta_ADOSC.obj + -del ..\..\..\..\..\temp\cmd\ta_ADX.obj + -del ..\..\..\..\..\temp\cmd\ta_ADXR.obj + -del ..\..\..\..\..\temp\cmd\ta_APO.obj + -del ..\..\..\..\..\temp\cmd\ta_AROON.obj + -del ..\..\..\..\..\temp\cmd\ta_AROONOSC.obj + -del ..\..\..\..\..\temp\cmd\ta_ASIN.obj + -del ..\..\..\..\..\temp\cmd\ta_ATAN.obj + -del ..\..\..\..\..\temp\cmd\ta_ATR.obj + -del ..\..\..\..\..\temp\cmd\ta_AVGPRICE.obj + -del ..\..\..\..\..\temp\cmd\ta_BBANDS.obj + -del ..\..\..\..\..\temp\cmd\ta_BETA.obj + -del ..\..\..\..\..\temp\cmd\ta_BOP.obj + -del ..\..\..\..\..\temp\cmd\ta_CCI.obj + -del ..\..\..\..\..\temp\cmd\ta_CDL2CROWS.obj + -del ..\..\..\..\..\temp\cmd\ta_CDL3BLACKCROWS.obj + -del ..\..\..\..\..\temp\cmd\ta_CDL3INSIDE.obj + -del ..\..\..\..\..\temp\cmd\ta_CDL3LINESTRIKE.obj + -del ..\..\..\..\..\temp\cmd\ta_CDL3OUTSIDE.obj + -del ..\..\..\..\..\temp\cmd\ta_CDL3STARSINSOUTH.obj + -del ..\..\..\..\..\temp\cmd\ta_CDL3WHITESOLDIERS.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLABANDONEDBABY.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLADVANCEBLOCK.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLBELTHOLD.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLBREAKAWAY.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLCLOSINGMARUBOZU.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLCONCEALBABYSWALL.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLCOUNTERATTACK.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLDARKCLOUDCOVER.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLDOJI.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLDOJISTAR.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLDRAGONFLYDOJI.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLENGULFING.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLEVENINGDOJISTAR.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLEVENINGSTAR.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLGAPSIDESIDEWHITE.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLGRAVESTONEDOJI.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLHAMMER.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLHANGINGMAN.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLHARAMI.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLHARAMICROSS.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLHIGHWAVE.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLHIKKAKE.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLHIKKAKEMOD.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLHOMINGPIGEON.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLIDENTICAL3CROWS.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLINNECK.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLINVERTEDHAMMER.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLKICKING.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLKICKINGBYLENGTH.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLLADDERBOTTOM.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLLONGLEGGEDDOJI.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLLONGLINE.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLMARUBOZU.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLMATCHINGLOW.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLMATHOLD.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLMORNINGDOJISTAR.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLMORNINGSTAR.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLONNECK.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLPIERCING.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLRICKSHAWMAN.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLRISEFALL3METHODS.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLSEPARATINGLINES.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLSHOOTINGSTAR.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLSHORTLINE.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLSPINNINGTOP.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLSTALLEDPATTERN.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLSTICKSANDWICH.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLTAKURI.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLTASUKIGAP.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLTHRUSTING.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLTRISTAR.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLUNIQUE3RIVER.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLUPSIDEGAP2CROWS.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLXSIDEGAP3METHODS.obj + -del ..\..\..\..\..\temp\cmd\ta_CEIL.obj + -del ..\..\..\..\..\temp\cmd\ta_CMO.obj + -del ..\..\..\..\..\temp\cmd\ta_CORREL.obj + -del ..\..\..\..\..\temp\cmd\ta_COS.obj + -del ..\..\..\..\..\temp\cmd\ta_COSH.obj + -del ..\..\..\..\..\temp\cmd\ta_DEMA.obj + -del ..\..\..\..\..\temp\cmd\ta_DIV.obj + -del ..\..\..\..\..\temp\cmd\ta_DX.obj + -del ..\..\..\..\..\temp\cmd\ta_EMA.obj + -del ..\..\..\..\..\temp\cmd\ta_EXP.obj + -del ..\..\..\..\..\temp\cmd\ta_FLOOR.obj + -del ..\..\..\..\..\temp\cmd\ta_HT_DCPERIOD.obj + -del ..\..\..\..\..\temp\cmd\ta_HT_DCPHASE.obj + -del ..\..\..\..\..\temp\cmd\ta_HT_PHASOR.obj + -del ..\..\..\..\..\temp\cmd\ta_HT_SINE.obj + -del ..\..\..\..\..\temp\cmd\ta_HT_TRENDLINE.obj + -del ..\..\..\..\..\temp\cmd\ta_HT_TRENDMODE.obj + -del ..\..\..\..\..\temp\cmd\ta_KAMA.obj + -del ..\..\..\..\..\temp\cmd\ta_LINEARREG.obj + -del ..\..\..\..\..\temp\cmd\ta_LINEARREG_ANGLE.obj + -del ..\..\..\..\..\temp\cmd\ta_LINEARREG_INTERCEPT.obj + -del ..\..\..\..\..\temp\cmd\ta_LINEARREG_SLOPE.obj + -del ..\..\..\..\..\temp\cmd\ta_LN.obj + -del ..\..\..\..\..\temp\cmd\ta_LOG10.obj + -del ..\..\..\..\..\temp\cmd\ta_MA.obj + -del ..\..\..\..\..\temp\cmd\ta_MACD.obj + -del ..\..\..\..\..\temp\cmd\ta_MACDEXT.obj + -del ..\..\..\..\..\temp\cmd\ta_MACDFIX.obj + -del ..\..\..\..\..\temp\cmd\ta_MAMA.obj + -del ..\..\..\..\..\temp\cmd\ta_MAVP.obj + -del ..\..\..\..\..\temp\cmd\ta_MAX.obj + -del ..\..\..\..\..\temp\cmd\ta_MAXINDEX.obj + -del ..\..\..\..\..\temp\cmd\ta_MEDPRICE.obj + -del ..\..\..\..\..\temp\cmd\ta_MFI.obj + -del ..\..\..\..\..\temp\cmd\ta_MIDPOINT.obj + -del ..\..\..\..\..\temp\cmd\ta_MIDPRICE.obj + -del ..\..\..\..\..\temp\cmd\ta_MIN.obj + -del ..\..\..\..\..\temp\cmd\ta_MININDEX.obj + -del ..\..\..\..\..\temp\cmd\ta_MINMAX.obj + -del ..\..\..\..\..\temp\cmd\ta_MINMAXINDEX.obj + -del ..\..\..\..\..\temp\cmd\ta_MINUS_DI.obj + -del ..\..\..\..\..\temp\cmd\ta_MINUS_DM.obj + -del ..\..\..\..\..\temp\cmd\ta_MOM.obj + -del ..\..\..\..\..\temp\cmd\ta_MULT.obj + -del ..\..\..\..\..\temp\cmd\ta_NATR.obj + -del ..\..\..\..\..\temp\cmd\ta_OBV.obj + -del ..\..\..\..\..\temp\cmd\ta_PLUS_DI.obj + -del ..\..\..\..\..\temp\cmd\ta_PLUS_DM.obj + -del ..\..\..\..\..\temp\cmd\ta_PPO.obj + -del ..\..\..\..\..\temp\cmd\ta_ROC.obj + -del ..\..\..\..\..\temp\cmd\ta_ROCP.obj + -del ..\..\..\..\..\temp\cmd\ta_ROCR.obj + -del ..\..\..\..\..\temp\cmd\ta_ROCR100.obj + -del ..\..\..\..\..\temp\cmd\ta_RSI.obj + -del ..\..\..\..\..\temp\cmd\ta_SAR.obj + -del ..\..\..\..\..\temp\cmd\ta_SAREXT.obj + -del ..\..\..\..\..\temp\cmd\ta_SIN.obj + -del ..\..\..\..\..\temp\cmd\ta_SINH.obj + -del ..\..\..\..\..\temp\cmd\ta_SMA.obj + -del ..\..\..\..\..\temp\cmd\ta_SQRT.obj + -del ..\..\..\..\..\temp\cmd\ta_STDDEV.obj + -del ..\..\..\..\..\temp\cmd\ta_STOCH.obj + -del ..\..\..\..\..\temp\cmd\ta_STOCHF.obj + -del ..\..\..\..\..\temp\cmd\ta_STOCHRSI.obj + -del ..\..\..\..\..\temp\cmd\ta_SUB.obj + -del ..\..\..\..\..\temp\cmd\ta_SUM.obj + -del ..\..\..\..\..\temp\cmd\ta_T3.obj + -del ..\..\..\..\..\temp\cmd\ta_TAN.obj + -del ..\..\..\..\..\temp\cmd\ta_TANH.obj + -del ..\..\..\..\..\temp\cmd\ta_TEMA.obj + -del ..\..\..\..\..\temp\cmd\ta_TRANGE.obj + -del ..\..\..\..\..\temp\cmd\ta_TRIMA.obj + -del ..\..\..\..\..\temp\cmd\ta_TRIX.obj + -del ..\..\..\..\..\temp\cmd\ta_TSF.obj + -del ..\..\..\..\..\temp\cmd\ta_TYPPRICE.obj + -del ..\..\..\..\..\temp\cmd\ta_ULTOSC.obj + -del ..\..\..\..\..\temp\cmd\ta_VAR.obj + -del ..\..\..\..\..\temp\cmd\ta_WCLPRICE.obj + -del ..\..\..\..\..\temp\cmd\ta_WILLR.obj + -del ..\..\..\..\..\temp\cmd\ta_WMA.obj + -del $(TARGET) + -del ../../../../../bin/*.map + -del ../../../../../bin/*._xe + -del ../../../../../bin/*.tds + -del ../../../../../bin/*.pdb + -del ../../../../../bin/*.pbo + -del ../../../../../bin/*.pbi + -del ../../../../../bin/*.pbt + -del ../../../../../temp/cmd/*.pch + -del ../../../../../temp/cmd/*.idb + -del ../../../../../temp/cmd/ta_func/*.pch + -del ../../../../../temp/cmd/ta_func/*.idb + -del ../../../../../temp/cmd/ta_func/*.obj + -del ta_func_cmd.pdb + -del vc*.pdb + -del ta_func_cmd.ilk + +####### Compile + +..\..\..\..\..\temp\cmd\ta_utility.obj: ..\..\..\..\..\src\ta_func\ta_utility.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_utility.obj ..\..\..\..\..\src\ta_func\ta_utility.c + +..\..\..\..\..\temp\cmd\ta_ACOS.obj: ..\..\..\..\..\src\ta_func\ta_ACOS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_ACOS.obj ..\..\..\..\..\src\ta_func\ta_ACOS.c + +..\..\..\..\..\temp\cmd\ta_AD.obj: ..\..\..\..\..\src\ta_func\ta_AD.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_AD.obj ..\..\..\..\..\src\ta_func\ta_AD.c + +..\..\..\..\..\temp\cmd\ta_ADD.obj: ..\..\..\..\..\src\ta_func\ta_ADD.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_ADD.obj ..\..\..\..\..\src\ta_func\ta_ADD.c + +..\..\..\..\..\temp\cmd\ta_ADOSC.obj: ..\..\..\..\..\src\ta_func\ta_ADOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_ADOSC.obj ..\..\..\..\..\src\ta_func\ta_ADOSC.c + +..\..\..\..\..\temp\cmd\ta_ADX.obj: ..\..\..\..\..\src\ta_func\ta_ADX.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_ADX.obj ..\..\..\..\..\src\ta_func\ta_ADX.c + +..\..\..\..\..\temp\cmd\ta_ADXR.obj: ..\..\..\..\..\src\ta_func\ta_ADXR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_ADXR.obj ..\..\..\..\..\src\ta_func\ta_ADXR.c + +..\..\..\..\..\temp\cmd\ta_APO.obj: ..\..\..\..\..\src\ta_func\ta_APO.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_APO.obj ..\..\..\..\..\src\ta_func\ta_APO.c + +..\..\..\..\..\temp\cmd\ta_AROON.obj: ..\..\..\..\..\src\ta_func\ta_AROON.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_AROON.obj ..\..\..\..\..\src\ta_func\ta_AROON.c + +..\..\..\..\..\temp\cmd\ta_AROONOSC.obj: ..\..\..\..\..\src\ta_func\ta_AROONOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_AROONOSC.obj ..\..\..\..\..\src\ta_func\ta_AROONOSC.c + +..\..\..\..\..\temp\cmd\ta_ASIN.obj: ..\..\..\..\..\src\ta_func\ta_ASIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_ASIN.obj ..\..\..\..\..\src\ta_func\ta_ASIN.c + +..\..\..\..\..\temp\cmd\ta_ATAN.obj: ..\..\..\..\..\src\ta_func\ta_ATAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_ATAN.obj ..\..\..\..\..\src\ta_func\ta_ATAN.c + +..\..\..\..\..\temp\cmd\ta_ATR.obj: ..\..\..\..\..\src\ta_func\ta_ATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_ATR.obj ..\..\..\..\..\src\ta_func\ta_ATR.c + +..\..\..\..\..\temp\cmd\ta_AVGPRICE.obj: ..\..\..\..\..\src\ta_func\ta_AVGPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_AVGPRICE.obj ..\..\..\..\..\src\ta_func\ta_AVGPRICE.c + +..\..\..\..\..\temp\cmd\ta_BBANDS.obj: ..\..\..\..\..\src\ta_func\ta_BBANDS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_BBANDS.obj ..\..\..\..\..\src\ta_func\ta_BBANDS.c + +..\..\..\..\..\temp\cmd\ta_BETA.obj: ..\..\..\..\..\src\ta_func\ta_BETA.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_BETA.obj ..\..\..\..\..\src\ta_func\ta_BETA.c + +..\..\..\..\..\temp\cmd\ta_BOP.obj: ..\..\..\..\..\src\ta_func\ta_BOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_BOP.obj ..\..\..\..\..\src\ta_func\ta_BOP.c + +..\..\..\..\..\temp\cmd\ta_CCI.obj: ..\..\..\..\..\src\ta_func\ta_CCI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CCI.obj ..\..\..\..\..\src\ta_func\ta_CCI.c + +..\..\..\..\..\temp\cmd\ta_CDL2CROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDL2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CDL2CROWS.obj ..\..\..\..\..\src\ta_func\ta_CDL2CROWS.c + +..\..\..\..\..\temp\cmd\ta_CDL3BLACKCROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDL3BLACKCROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CDL3BLACKCROWS.obj ..\..\..\..\..\src\ta_func\ta_CDL3BLACKCROWS.c + +..\..\..\..\..\temp\cmd\ta_CDL3INSIDE.obj: ..\..\..\..\..\src\ta_func\ta_CDL3INSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CDL3INSIDE.obj ..\..\..\..\..\src\ta_func\ta_CDL3INSIDE.c + +..\..\..\..\..\temp\cmd\ta_CDL3LINESTRIKE.obj: ..\..\..\..\..\src\ta_func\ta_CDL3LINESTRIKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CDL3LINESTRIKE.obj ..\..\..\..\..\src\ta_func\ta_CDL3LINESTRIKE.c + +..\..\..\..\..\temp\cmd\ta_CDL3OUTSIDE.obj: ..\..\..\..\..\src\ta_func\ta_CDL3OUTSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CDL3OUTSIDE.obj ..\..\..\..\..\src\ta_func\ta_CDL3OUTSIDE.c + +..\..\..\..\..\temp\cmd\ta_CDL3STARSINSOUTH.obj: ..\..\..\..\..\src\ta_func\ta_CDL3STARSINSOUTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CDL3STARSINSOUTH.obj ..\..\..\..\..\src\ta_func\ta_CDL3STARSINSOUTH.c + +..\..\..\..\..\temp\cmd\ta_CDL3WHITESOLDIERS.obj: ..\..\..\..\..\src\ta_func\ta_CDL3WHITESOLDIERS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CDL3WHITESOLDIERS.obj ..\..\..\..\..\src\ta_func\ta_CDL3WHITESOLDIERS.c + +..\..\..\..\..\temp\cmd\ta_CDLABANDONEDBABY.obj: ..\..\..\..\..\src\ta_func\ta_CDLABANDONEDBABY.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CDLABANDONEDBABY.obj ..\..\..\..\..\src\ta_func\ta_CDLABANDONEDBABY.c + +..\..\..\..\..\temp\cmd\ta_CDLADVANCEBLOCK.obj: ..\..\..\..\..\src\ta_func\ta_CDLADVANCEBLOCK.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CDLADVANCEBLOCK.obj ..\..\..\..\..\src\ta_func\ta_CDLADVANCEBLOCK.c + +..\..\..\..\..\temp\cmd\ta_CDLBELTHOLD.obj: ..\..\..\..\..\src\ta_func\ta_CDLBELTHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CDLBELTHOLD.obj ..\..\..\..\..\src\ta_func\ta_CDLBELTHOLD.c + +..\..\..\..\..\temp\cmd\ta_CDLBREAKAWAY.obj: ..\..\..\..\..\src\ta_func\ta_CDLBREAKAWAY.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CDLBREAKAWAY.obj ..\..\..\..\..\src\ta_func\ta_CDLBREAKAWAY.c + +..\..\..\..\..\temp\cmd\ta_CDLCLOSINGMARUBOZU.obj: ..\..\..\..\..\src\ta_func\ta_CDLCLOSINGMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CDLCLOSINGMARUBOZU.obj ..\..\..\..\..\src\ta_func\ta_CDLCLOSINGMARUBOZU.c + +..\..\..\..\..\temp\cmd\ta_CDLCONCEALBABYSWALL.obj: ..\..\..\..\..\src\ta_func\ta_CDLCONCEALBABYSWALL.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CDLCONCEALBABYSWALL.obj ..\..\..\..\..\src\ta_func\ta_CDLCONCEALBABYSWALL.c + +..\..\..\..\..\temp\cmd\ta_CDLCOUNTERATTACK.obj: ..\..\..\..\..\src\ta_func\ta_CDLCOUNTERATTACK.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CDLCOUNTERATTACK.obj ..\..\..\..\..\src\ta_func\ta_CDLCOUNTERATTACK.c + +..\..\..\..\..\temp\cmd\ta_CDLDARKCLOUDCOVER.obj: ..\..\..\..\..\src\ta_func\ta_CDLDARKCLOUDCOVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CDLDARKCLOUDCOVER.obj ..\..\..\..\..\src\ta_func\ta_CDLDARKCLOUDCOVER.c + +..\..\..\..\..\temp\cmd\ta_CDLDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CDLDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLDOJI.c + +..\..\..\..\..\temp\cmd\ta_CDLDOJISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CDLDOJISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLDOJISTAR.c + +..\..\..\..\..\temp\cmd\ta_CDLDRAGONFLYDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLDRAGONFLYDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CDLDRAGONFLYDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLDRAGONFLYDOJI.c + +..\..\..\..\..\temp\cmd\ta_CDLENGULFING.obj: ..\..\..\..\..\src\ta_func\ta_CDLENGULFING.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CDLENGULFING.obj ..\..\..\..\..\src\ta_func\ta_CDLENGULFING.c + +..\..\..\..\..\temp\cmd\ta_CDLEVENINGDOJISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLEVENINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CDLEVENINGDOJISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLEVENINGDOJISTAR.c + +..\..\..\..\..\temp\cmd\ta_CDLEVENINGSTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLEVENINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CDLEVENINGSTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLEVENINGSTAR.c + +..\..\..\..\..\temp\cmd\ta_CDLGAPSIDESIDEWHITE.obj: ..\..\..\..\..\src\ta_func\ta_CDLGAPSIDESIDEWHITE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CDLGAPSIDESIDEWHITE.obj ..\..\..\..\..\src\ta_func\ta_CDLGAPSIDESIDEWHITE.c + +..\..\..\..\..\temp\cmd\ta_CDLGRAVESTONEDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLGRAVESTONEDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CDLGRAVESTONEDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLGRAVESTONEDOJI.c + +..\..\..\..\..\temp\cmd\ta_CDLHAMMER.obj: ..\..\..\..\..\src\ta_func\ta_CDLHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CDLHAMMER.obj ..\..\..\..\..\src\ta_func\ta_CDLHAMMER.c + +..\..\..\..\..\temp\cmd\ta_CDLHANGINGMAN.obj: ..\..\..\..\..\src\ta_func\ta_CDLHANGINGMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CDLHANGINGMAN.obj ..\..\..\..\..\src\ta_func\ta_CDLHANGINGMAN.c + +..\..\..\..\..\temp\cmd\ta_CDLHARAMI.obj: ..\..\..\..\..\src\ta_func\ta_CDLHARAMI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CDLHARAMI.obj ..\..\..\..\..\src\ta_func\ta_CDLHARAMI.c + +..\..\..\..\..\temp\cmd\ta_CDLHARAMICROSS.obj: ..\..\..\..\..\src\ta_func\ta_CDLHARAMICROSS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CDLHARAMICROSS.obj ..\..\..\..\..\src\ta_func\ta_CDLHARAMICROSS.c + +..\..\..\..\..\temp\cmd\ta_CDLHIGHWAVE.obj: ..\..\..\..\..\src\ta_func\ta_CDLHIGHWAVE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CDLHIGHWAVE.obj ..\..\..\..\..\src\ta_func\ta_CDLHIGHWAVE.c + +..\..\..\..\..\temp\cmd\ta_CDLHIKKAKE.obj: ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CDLHIKKAKE.obj ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKE.c + +..\..\..\..\..\temp\cmd\ta_CDLHIKKAKEMOD.obj: ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKEMOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CDLHIKKAKEMOD.obj ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKEMOD.c + +..\..\..\..\..\temp\cmd\ta_CDLHOMINGPIGEON.obj: ..\..\..\..\..\src\ta_func\ta_CDLHOMINGPIGEON.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CDLHOMINGPIGEON.obj ..\..\..\..\..\src\ta_func\ta_CDLHOMINGPIGEON.c + +..\..\..\..\..\temp\cmd\ta_CDLIDENTICAL3CROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDLIDENTICAL3CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CDLIDENTICAL3CROWS.obj ..\..\..\..\..\src\ta_func\ta_CDLIDENTICAL3CROWS.c + +..\..\..\..\..\temp\cmd\ta_CDLINNECK.obj: ..\..\..\..\..\src\ta_func\ta_CDLINNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CDLINNECK.obj ..\..\..\..\..\src\ta_func\ta_CDLINNECK.c + +..\..\..\..\..\temp\cmd\ta_CDLINVERTEDHAMMER.obj: ..\..\..\..\..\src\ta_func\ta_CDLINVERTEDHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CDLINVERTEDHAMMER.obj ..\..\..\..\..\src\ta_func\ta_CDLINVERTEDHAMMER.c + +..\..\..\..\..\temp\cmd\ta_CDLKICKING.obj: ..\..\..\..\..\src\ta_func\ta_CDLKICKING.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CDLKICKING.obj ..\..\..\..\..\src\ta_func\ta_CDLKICKING.c + +..\..\..\..\..\temp\cmd\ta_CDLKICKINGBYLENGTH.obj: ..\..\..\..\..\src\ta_func\ta_CDLKICKINGBYLENGTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CDLKICKINGBYLENGTH.obj ..\..\..\..\..\src\ta_func\ta_CDLKICKINGBYLENGTH.c + +..\..\..\..\..\temp\cmd\ta_CDLLADDERBOTTOM.obj: ..\..\..\..\..\src\ta_func\ta_CDLLADDERBOTTOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CDLLADDERBOTTOM.obj ..\..\..\..\..\src\ta_func\ta_CDLLADDERBOTTOM.c + +..\..\..\..\..\temp\cmd\ta_CDLLONGLEGGEDDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLLONGLEGGEDDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CDLLONGLEGGEDDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLLONGLEGGEDDOJI.c + +..\..\..\..\..\temp\cmd\ta_CDLLONGLINE.obj: ..\..\..\..\..\src\ta_func\ta_CDLLONGLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CDLLONGLINE.obj ..\..\..\..\..\src\ta_func\ta_CDLLONGLINE.c + +..\..\..\..\..\temp\cmd\ta_CDLMARUBOZU.obj: ..\..\..\..\..\src\ta_func\ta_CDLMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CDLMARUBOZU.obj ..\..\..\..\..\src\ta_func\ta_CDLMARUBOZU.c + +..\..\..\..\..\temp\cmd\ta_CDLMATCHINGLOW.obj: ..\..\..\..\..\src\ta_func\ta_CDLMATCHINGLOW.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CDLMATCHINGLOW.obj ..\..\..\..\..\src\ta_func\ta_CDLMATCHINGLOW.c + +..\..\..\..\..\temp\cmd\ta_CDLMATHOLD.obj: ..\..\..\..\..\src\ta_func\ta_CDLMATHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CDLMATHOLD.obj ..\..\..\..\..\src\ta_func\ta_CDLMATHOLD.c + +..\..\..\..\..\temp\cmd\ta_CDLMORNINGDOJISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLMORNINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CDLMORNINGDOJISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLMORNINGDOJISTAR.c + +..\..\..\..\..\temp\cmd\ta_CDLMORNINGSTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLMORNINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CDLMORNINGSTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLMORNINGSTAR.c + +..\..\..\..\..\temp\cmd\ta_CDLONNECK.obj: ..\..\..\..\..\src\ta_func\ta_CDLONNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CDLONNECK.obj ..\..\..\..\..\src\ta_func\ta_CDLONNECK.c + +..\..\..\..\..\temp\cmd\ta_CDLPIERCING.obj: ..\..\..\..\..\src\ta_func\ta_CDLPIERCING.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CDLPIERCING.obj ..\..\..\..\..\src\ta_func\ta_CDLPIERCING.c + +..\..\..\..\..\temp\cmd\ta_CDLRICKSHAWMAN.obj: ..\..\..\..\..\src\ta_func\ta_CDLRICKSHAWMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CDLRICKSHAWMAN.obj ..\..\..\..\..\src\ta_func\ta_CDLRICKSHAWMAN.c + +..\..\..\..\..\temp\cmd\ta_CDLRISEFALL3METHODS.obj: ..\..\..\..\..\src\ta_func\ta_CDLRISEFALL3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CDLRISEFALL3METHODS.obj ..\..\..\..\..\src\ta_func\ta_CDLRISEFALL3METHODS.c + +..\..\..\..\..\temp\cmd\ta_CDLSEPARATINGLINES.obj: ..\..\..\..\..\src\ta_func\ta_CDLSEPARATINGLINES.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CDLSEPARATINGLINES.obj ..\..\..\..\..\src\ta_func\ta_CDLSEPARATINGLINES.c + +..\..\..\..\..\temp\cmd\ta_CDLSHOOTINGSTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLSHOOTINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CDLSHOOTINGSTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLSHOOTINGSTAR.c + +..\..\..\..\..\temp\cmd\ta_CDLSHORTLINE.obj: ..\..\..\..\..\src\ta_func\ta_CDLSHORTLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CDLSHORTLINE.obj ..\..\..\..\..\src\ta_func\ta_CDLSHORTLINE.c + +..\..\..\..\..\temp\cmd\ta_CDLSPINNINGTOP.obj: ..\..\..\..\..\src\ta_func\ta_CDLSPINNINGTOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CDLSPINNINGTOP.obj ..\..\..\..\..\src\ta_func\ta_CDLSPINNINGTOP.c + +..\..\..\..\..\temp\cmd\ta_CDLSTALLEDPATTERN.obj: ..\..\..\..\..\src\ta_func\ta_CDLSTALLEDPATTERN.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CDLSTALLEDPATTERN.obj ..\..\..\..\..\src\ta_func\ta_CDLSTALLEDPATTERN.c + +..\..\..\..\..\temp\cmd\ta_CDLSTICKSANDWICH.obj: ..\..\..\..\..\src\ta_func\ta_CDLSTICKSANDWICH.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CDLSTICKSANDWICH.obj ..\..\..\..\..\src\ta_func\ta_CDLSTICKSANDWICH.c + +..\..\..\..\..\temp\cmd\ta_CDLTAKURI.obj: ..\..\..\..\..\src\ta_func\ta_CDLTAKURI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CDLTAKURI.obj ..\..\..\..\..\src\ta_func\ta_CDLTAKURI.c + +..\..\..\..\..\temp\cmd\ta_CDLTASUKIGAP.obj: ..\..\..\..\..\src\ta_func\ta_CDLTASUKIGAP.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CDLTASUKIGAP.obj ..\..\..\..\..\src\ta_func\ta_CDLTASUKIGAP.c + +..\..\..\..\..\temp\cmd\ta_CDLTHRUSTING.obj: ..\..\..\..\..\src\ta_func\ta_CDLTHRUSTING.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CDLTHRUSTING.obj ..\..\..\..\..\src\ta_func\ta_CDLTHRUSTING.c + +..\..\..\..\..\temp\cmd\ta_CDLTRISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLTRISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CDLTRISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLTRISTAR.c + +..\..\..\..\..\temp\cmd\ta_CDLUNIQUE3RIVER.obj: ..\..\..\..\..\src\ta_func\ta_CDLUNIQUE3RIVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CDLUNIQUE3RIVER.obj ..\..\..\..\..\src\ta_func\ta_CDLUNIQUE3RIVER.c + +..\..\..\..\..\temp\cmd\ta_CDLUPSIDEGAP2CROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDLUPSIDEGAP2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CDLUPSIDEGAP2CROWS.obj ..\..\..\..\..\src\ta_func\ta_CDLUPSIDEGAP2CROWS.c + +..\..\..\..\..\temp\cmd\ta_CDLXSIDEGAP3METHODS.obj: ..\..\..\..\..\src\ta_func\ta_CDLXSIDEGAP3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CDLXSIDEGAP3METHODS.obj ..\..\..\..\..\src\ta_func\ta_CDLXSIDEGAP3METHODS.c + +..\..\..\..\..\temp\cmd\ta_CEIL.obj: ..\..\..\..\..\src\ta_func\ta_CEIL.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CEIL.obj ..\..\..\..\..\src\ta_func\ta_CEIL.c + +..\..\..\..\..\temp\cmd\ta_CMO.obj: ..\..\..\..\..\src\ta_func\ta_CMO.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CMO.obj ..\..\..\..\..\src\ta_func\ta_CMO.c + +..\..\..\..\..\temp\cmd\ta_CORREL.obj: ..\..\..\..\..\src\ta_func\ta_CORREL.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CORREL.obj ..\..\..\..\..\src\ta_func\ta_CORREL.c + +..\..\..\..\..\temp\cmd\ta_COS.obj: ..\..\..\..\..\src\ta_func\ta_COS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_COS.obj ..\..\..\..\..\src\ta_func\ta_COS.c + +..\..\..\..\..\temp\cmd\ta_COSH.obj: ..\..\..\..\..\src\ta_func\ta_COSH.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_COSH.obj ..\..\..\..\..\src\ta_func\ta_COSH.c + +..\..\..\..\..\temp\cmd\ta_DEMA.obj: ..\..\..\..\..\src\ta_func\ta_DEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_DEMA.obj ..\..\..\..\..\src\ta_func\ta_DEMA.c + +..\..\..\..\..\temp\cmd\ta_DIV.obj: ..\..\..\..\..\src\ta_func\ta_DIV.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_DIV.obj ..\..\..\..\..\src\ta_func\ta_DIV.c + +..\..\..\..\..\temp\cmd\ta_DX.obj: ..\..\..\..\..\src\ta_func\ta_DX.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_DX.obj ..\..\..\..\..\src\ta_func\ta_DX.c + +..\..\..\..\..\temp\cmd\ta_EMA.obj: ..\..\..\..\..\src\ta_func\ta_EMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_EMA.obj ..\..\..\..\..\src\ta_func\ta_EMA.c + +..\..\..\..\..\temp\cmd\ta_EXP.obj: ..\..\..\..\..\src\ta_func\ta_EXP.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_EXP.obj ..\..\..\..\..\src\ta_func\ta_EXP.c + +..\..\..\..\..\temp\cmd\ta_FLOOR.obj: ..\..\..\..\..\src\ta_func\ta_FLOOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_FLOOR.obj ..\..\..\..\..\src\ta_func\ta_FLOOR.c + +..\..\..\..\..\temp\cmd\ta_HT_DCPERIOD.obj: ..\..\..\..\..\src\ta_func\ta_HT_DCPERIOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_HT_DCPERIOD.obj ..\..\..\..\..\src\ta_func\ta_HT_DCPERIOD.c + +..\..\..\..\..\temp\cmd\ta_HT_DCPHASE.obj: ..\..\..\..\..\src\ta_func\ta_HT_DCPHASE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_HT_DCPHASE.obj ..\..\..\..\..\src\ta_func\ta_HT_DCPHASE.c + +..\..\..\..\..\temp\cmd\ta_HT_PHASOR.obj: ..\..\..\..\..\src\ta_func\ta_HT_PHASOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_HT_PHASOR.obj ..\..\..\..\..\src\ta_func\ta_HT_PHASOR.c + +..\..\..\..\..\temp\cmd\ta_HT_SINE.obj: ..\..\..\..\..\src\ta_func\ta_HT_SINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_HT_SINE.obj ..\..\..\..\..\src\ta_func\ta_HT_SINE.c + +..\..\..\..\..\temp\cmd\ta_HT_TRENDLINE.obj: ..\..\..\..\..\src\ta_func\ta_HT_TRENDLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_HT_TRENDLINE.obj ..\..\..\..\..\src\ta_func\ta_HT_TRENDLINE.c + +..\..\..\..\..\temp\cmd\ta_HT_TRENDMODE.obj: ..\..\..\..\..\src\ta_func\ta_HT_TRENDMODE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_HT_TRENDMODE.obj ..\..\..\..\..\src\ta_func\ta_HT_TRENDMODE.c + +..\..\..\..\..\temp\cmd\ta_KAMA.obj: ..\..\..\..\..\src\ta_func\ta_KAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_KAMA.obj ..\..\..\..\..\src\ta_func\ta_KAMA.c + +..\..\..\..\..\temp\cmd\ta_LINEARREG.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_LINEARREG.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG.c + +..\..\..\..\..\temp\cmd\ta_LINEARREG_ANGLE.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG_ANGLE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_LINEARREG_ANGLE.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG_ANGLE.c + +..\..\..\..\..\temp\cmd\ta_LINEARREG_INTERCEPT.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG_INTERCEPT.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_LINEARREG_INTERCEPT.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG_INTERCEPT.c + +..\..\..\..\..\temp\cmd\ta_LINEARREG_SLOPE.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG_SLOPE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_LINEARREG_SLOPE.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG_SLOPE.c + +..\..\..\..\..\temp\cmd\ta_LN.obj: ..\..\..\..\..\src\ta_func\ta_LN.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_LN.obj ..\..\..\..\..\src\ta_func\ta_LN.c + +..\..\..\..\..\temp\cmd\ta_LOG10.obj: ..\..\..\..\..\src\ta_func\ta_LOG10.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_LOG10.obj ..\..\..\..\..\src\ta_func\ta_LOG10.c + +..\..\..\..\..\temp\cmd\ta_MA.obj: ..\..\..\..\..\src\ta_func\ta_MA.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_MA.obj ..\..\..\..\..\src\ta_func\ta_MA.c + +..\..\..\..\..\temp\cmd\ta_MACD.obj: ..\..\..\..\..\src\ta_func\ta_MACD.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_MACD.obj ..\..\..\..\..\src\ta_func\ta_MACD.c + +..\..\..\..\..\temp\cmd\ta_MACDEXT.obj: ..\..\..\..\..\src\ta_func\ta_MACDEXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_MACDEXT.obj ..\..\..\..\..\src\ta_func\ta_MACDEXT.c + +..\..\..\..\..\temp\cmd\ta_MACDFIX.obj: ..\..\..\..\..\src\ta_func\ta_MACDFIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_MACDFIX.obj ..\..\..\..\..\src\ta_func\ta_MACDFIX.c + +..\..\..\..\..\temp\cmd\ta_MAMA.obj: ..\..\..\..\..\src\ta_func\ta_MAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_MAMA.obj ..\..\..\..\..\src\ta_func\ta_MAMA.c + +..\..\..\..\..\temp\cmd\ta_MAVP.obj: ..\..\..\..\..\src\ta_func\ta_MAVP.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_MAVP.obj ..\..\..\..\..\src\ta_func\ta_MAVP.c + +..\..\..\..\..\temp\cmd\ta_MAX.obj: ..\..\..\..\..\src\ta_func\ta_MAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_MAX.obj ..\..\..\..\..\src\ta_func\ta_MAX.c + +..\..\..\..\..\temp\cmd\ta_MAXINDEX.obj: ..\..\..\..\..\src\ta_func\ta_MAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_MAXINDEX.obj ..\..\..\..\..\src\ta_func\ta_MAXINDEX.c + +..\..\..\..\..\temp\cmd\ta_MEDPRICE.obj: ..\..\..\..\..\src\ta_func\ta_MEDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_MEDPRICE.obj ..\..\..\..\..\src\ta_func\ta_MEDPRICE.c + +..\..\..\..\..\temp\cmd\ta_MFI.obj: ..\..\..\..\..\src\ta_func\ta_MFI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_MFI.obj ..\..\..\..\..\src\ta_func\ta_MFI.c + +..\..\..\..\..\temp\cmd\ta_MIDPOINT.obj: ..\..\..\..\..\src\ta_func\ta_MIDPOINT.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_MIDPOINT.obj ..\..\..\..\..\src\ta_func\ta_MIDPOINT.c + +..\..\..\..\..\temp\cmd\ta_MIDPRICE.obj: ..\..\..\..\..\src\ta_func\ta_MIDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_MIDPRICE.obj ..\..\..\..\..\src\ta_func\ta_MIDPRICE.c + +..\..\..\..\..\temp\cmd\ta_MIN.obj: ..\..\..\..\..\src\ta_func\ta_MIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_MIN.obj ..\..\..\..\..\src\ta_func\ta_MIN.c + +..\..\..\..\..\temp\cmd\ta_MININDEX.obj: ..\..\..\..\..\src\ta_func\ta_MININDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_MININDEX.obj ..\..\..\..\..\src\ta_func\ta_MININDEX.c + +..\..\..\..\..\temp\cmd\ta_MINMAX.obj: ..\..\..\..\..\src\ta_func\ta_MINMAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_MINMAX.obj ..\..\..\..\..\src\ta_func\ta_MINMAX.c + +..\..\..\..\..\temp\cmd\ta_MINMAXINDEX.obj: ..\..\..\..\..\src\ta_func\ta_MINMAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_MINMAXINDEX.obj ..\..\..\..\..\src\ta_func\ta_MINMAXINDEX.c + +..\..\..\..\..\temp\cmd\ta_MINUS_DI.obj: ..\..\..\..\..\src\ta_func\ta_MINUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_MINUS_DI.obj ..\..\..\..\..\src\ta_func\ta_MINUS_DI.c + +..\..\..\..\..\temp\cmd\ta_MINUS_DM.obj: ..\..\..\..\..\src\ta_func\ta_MINUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_MINUS_DM.obj ..\..\..\..\..\src\ta_func\ta_MINUS_DM.c + +..\..\..\..\..\temp\cmd\ta_MOM.obj: ..\..\..\..\..\src\ta_func\ta_MOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_MOM.obj ..\..\..\..\..\src\ta_func\ta_MOM.c + +..\..\..\..\..\temp\cmd\ta_MULT.obj: ..\..\..\..\..\src\ta_func\ta_MULT.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_MULT.obj ..\..\..\..\..\src\ta_func\ta_MULT.c + +..\..\..\..\..\temp\cmd\ta_NATR.obj: ..\..\..\..\..\src\ta_func\ta_NATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_NATR.obj ..\..\..\..\..\src\ta_func\ta_NATR.c + +..\..\..\..\..\temp\cmd\ta_OBV.obj: ..\..\..\..\..\src\ta_func\ta_OBV.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_OBV.obj ..\..\..\..\..\src\ta_func\ta_OBV.c + +..\..\..\..\..\temp\cmd\ta_PLUS_DI.obj: ..\..\..\..\..\src\ta_func\ta_PLUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_PLUS_DI.obj ..\..\..\..\..\src\ta_func\ta_PLUS_DI.c + +..\..\..\..\..\temp\cmd\ta_PLUS_DM.obj: ..\..\..\..\..\src\ta_func\ta_PLUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_PLUS_DM.obj ..\..\..\..\..\src\ta_func\ta_PLUS_DM.c + +..\..\..\..\..\temp\cmd\ta_PPO.obj: ..\..\..\..\..\src\ta_func\ta_PPO.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_PPO.obj ..\..\..\..\..\src\ta_func\ta_PPO.c + +..\..\..\..\..\temp\cmd\ta_ROC.obj: ..\..\..\..\..\src\ta_func\ta_ROC.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_ROC.obj ..\..\..\..\..\src\ta_func\ta_ROC.c + +..\..\..\..\..\temp\cmd\ta_ROCP.obj: ..\..\..\..\..\src\ta_func\ta_ROCP.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_ROCP.obj ..\..\..\..\..\src\ta_func\ta_ROCP.c + +..\..\..\..\..\temp\cmd\ta_ROCR.obj: ..\..\..\..\..\src\ta_func\ta_ROCR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_ROCR.obj ..\..\..\..\..\src\ta_func\ta_ROCR.c + +..\..\..\..\..\temp\cmd\ta_ROCR100.obj: ..\..\..\..\..\src\ta_func\ta_ROCR100.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_ROCR100.obj ..\..\..\..\..\src\ta_func\ta_ROCR100.c + +..\..\..\..\..\temp\cmd\ta_RSI.obj: ..\..\..\..\..\src\ta_func\ta_RSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_RSI.obj ..\..\..\..\..\src\ta_func\ta_RSI.c + +..\..\..\..\..\temp\cmd\ta_SAR.obj: ..\..\..\..\..\src\ta_func\ta_SAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_SAR.obj ..\..\..\..\..\src\ta_func\ta_SAR.c + +..\..\..\..\..\temp\cmd\ta_SAREXT.obj: ..\..\..\..\..\src\ta_func\ta_SAREXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_SAREXT.obj ..\..\..\..\..\src\ta_func\ta_SAREXT.c + +..\..\..\..\..\temp\cmd\ta_SIN.obj: ..\..\..\..\..\src\ta_func\ta_SIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_SIN.obj ..\..\..\..\..\src\ta_func\ta_SIN.c + +..\..\..\..\..\temp\cmd\ta_SINH.obj: ..\..\..\..\..\src\ta_func\ta_SINH.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_SINH.obj ..\..\..\..\..\src\ta_func\ta_SINH.c + +..\..\..\..\..\temp\cmd\ta_SMA.obj: ..\..\..\..\..\src\ta_func\ta_SMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_SMA.obj ..\..\..\..\..\src\ta_func\ta_SMA.c + +..\..\..\..\..\temp\cmd\ta_SQRT.obj: ..\..\..\..\..\src\ta_func\ta_SQRT.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_SQRT.obj ..\..\..\..\..\src\ta_func\ta_SQRT.c + +..\..\..\..\..\temp\cmd\ta_STDDEV.obj: ..\..\..\..\..\src\ta_func\ta_STDDEV.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_STDDEV.obj ..\..\..\..\..\src\ta_func\ta_STDDEV.c + +..\..\..\..\..\temp\cmd\ta_STOCH.obj: ..\..\..\..\..\src\ta_func\ta_STOCH.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_STOCH.obj ..\..\..\..\..\src\ta_func\ta_STOCH.c + +..\..\..\..\..\temp\cmd\ta_STOCHF.obj: ..\..\..\..\..\src\ta_func\ta_STOCHF.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_STOCHF.obj ..\..\..\..\..\src\ta_func\ta_STOCHF.c + +..\..\..\..\..\temp\cmd\ta_STOCHRSI.obj: ..\..\..\..\..\src\ta_func\ta_STOCHRSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_STOCHRSI.obj ..\..\..\..\..\src\ta_func\ta_STOCHRSI.c + +..\..\..\..\..\temp\cmd\ta_SUB.obj: ..\..\..\..\..\src\ta_func\ta_SUB.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_SUB.obj ..\..\..\..\..\src\ta_func\ta_SUB.c + +..\..\..\..\..\temp\cmd\ta_SUM.obj: ..\..\..\..\..\src\ta_func\ta_SUM.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_SUM.obj ..\..\..\..\..\src\ta_func\ta_SUM.c + +..\..\..\..\..\temp\cmd\ta_T3.obj: ..\..\..\..\..\src\ta_func\ta_T3.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_T3.obj ..\..\..\..\..\src\ta_func\ta_T3.c + +..\..\..\..\..\temp\cmd\ta_TAN.obj: ..\..\..\..\..\src\ta_func\ta_TAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_TAN.obj ..\..\..\..\..\src\ta_func\ta_TAN.c + +..\..\..\..\..\temp\cmd\ta_TANH.obj: ..\..\..\..\..\src\ta_func\ta_TANH.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_TANH.obj ..\..\..\..\..\src\ta_func\ta_TANH.c + +..\..\..\..\..\temp\cmd\ta_TEMA.obj: ..\..\..\..\..\src\ta_func\ta_TEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_TEMA.obj ..\..\..\..\..\src\ta_func\ta_TEMA.c + +..\..\..\..\..\temp\cmd\ta_TRANGE.obj: ..\..\..\..\..\src\ta_func\ta_TRANGE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_TRANGE.obj ..\..\..\..\..\src\ta_func\ta_TRANGE.c + +..\..\..\..\..\temp\cmd\ta_TRIMA.obj: ..\..\..\..\..\src\ta_func\ta_TRIMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_TRIMA.obj ..\..\..\..\..\src\ta_func\ta_TRIMA.c + +..\..\..\..\..\temp\cmd\ta_TRIX.obj: ..\..\..\..\..\src\ta_func\ta_TRIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_TRIX.obj ..\..\..\..\..\src\ta_func\ta_TRIX.c + +..\..\..\..\..\temp\cmd\ta_TSF.obj: ..\..\..\..\..\src\ta_func\ta_TSF.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_TSF.obj ..\..\..\..\..\src\ta_func\ta_TSF.c + +..\..\..\..\..\temp\cmd\ta_TYPPRICE.obj: ..\..\..\..\..\src\ta_func\ta_TYPPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_TYPPRICE.obj ..\..\..\..\..\src\ta_func\ta_TYPPRICE.c + +..\..\..\..\..\temp\cmd\ta_ULTOSC.obj: ..\..\..\..\..\src\ta_func\ta_ULTOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_ULTOSC.obj ..\..\..\..\..\src\ta_func\ta_ULTOSC.c + +..\..\..\..\..\temp\cmd\ta_VAR.obj: ..\..\..\..\..\src\ta_func\ta_VAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_VAR.obj ..\..\..\..\..\src\ta_func\ta_VAR.c + +..\..\..\..\..\temp\cmd\ta_WCLPRICE.obj: ..\..\..\..\..\src\ta_func\ta_WCLPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_WCLPRICE.obj ..\..\..\..\..\src\ta_func\ta_WCLPRICE.c + +..\..\..\..\..\temp\cmd\ta_WILLR.obj: ..\..\..\..\..\src\ta_func\ta_WILLR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_WILLR.obj ..\..\..\..\..\src\ta_func\ta_WILLR.c + +..\..\..\..\..\temp\cmd\ta_WMA.obj: ..\..\..\..\..\src\ta_func\ta_WMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_WMA.obj ..\..\..\..\..\src\ta_func\ta_WMA.c + diff --git a/make/cmd/win32/msvc/ta_libc/Makefile b/make/cmd/win32/msvc/ta_libc/Makefile new file mode 100644 index 000000000..62a9b4141 --- /dev/null +++ b/make/cmd/win32/msvc/ta_libc/Makefile @@ -0,0 +1,1240 @@ +############################################################################# +# Makefile for building ta_libc_cmd +# Generated by tmake; +# Project: ta_libc/ta_libc +# Template: lib +############################################################################# + +####### Compiler, tools and options + +CC = cl +CXX = cl +CFLAGS = -nologo -W3 -MTd -Zi -DTA_DEBUG -D_DEBUG -DWIN32 -D_MBCS -D_LIB -DQT_THREAD_SUPPORT +CXXFLAGS= -nologo -W3 -MTd -Zi -DTA_DEBUG -D_DEBUG -DWIN32 -D_MBCS -D_LIB -DQT_THREAD_SUPPORT +INCPATH = -I"..\..\..\..\..\src\ta_common" -I"..\..\..\..\..\include" -I"..\..\..\..\..\src\ta_abstract" -I"..\..\..\..\..\src\ta_abstract\tables" -I"..\..\..\..\..\src\ta_abstract\frames" -I"$(QTDIR)\include" +LIB = lib /NOLOGO +MOC = moc +UIC = uic + +ZIP = zip -r -9 + +####### Files + +HEADERS = +SOURCES = ..\..\..\..\..\src\ta_common\ta_global.c \ + ..\..\..\..\..\src\ta_common\ta_retcode.c \ + ..\..\..\..\..\src\ta_common\ta_version.c \ + ..\..\..\..\..\src\ta_abstract\ta_abstract.c \ + ..\..\..\..\..\src\ta_abstract\ta_def_ui.c \ + ..\..\..\..\..\src\ta_abstract\ta_func_api.c \ + ..\..\..\..\..\src\ta_abstract\ta_group_idx.c \ + ..\..\..\..\..\src\ta_abstract\frames\ta_frame.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_a.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_b.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_c.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_d.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_e.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_f.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_g.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_h.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_i.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_j.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_k.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_l.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_m.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_n.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_o.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_p.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_q.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_r.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_s.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_t.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_u.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_v.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_w.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_x.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_y.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_z.c \ + ..\..\..\..\..\src\ta_func\ta_utility.c \ + ..\..\..\..\..\src\ta_func\ta_ACOS.c \ + ..\..\..\..\..\src\ta_func\ta_AD.c \ + ..\..\..\..\..\src\ta_func\ta_ADD.c \ + ..\..\..\..\..\src\ta_func\ta_ADOSC.c \ + ..\..\..\..\..\src\ta_func\ta_ADX.c \ + ..\..\..\..\..\src\ta_func\ta_ADXR.c \ + ..\..\..\..\..\src\ta_func\ta_APO.c \ + ..\..\..\..\..\src\ta_func\ta_AROON.c \ + ..\..\..\..\..\src\ta_func\ta_AROONOSC.c \ + ..\..\..\..\..\src\ta_func\ta_ASIN.c \ + ..\..\..\..\..\src\ta_func\ta_ATAN.c \ + ..\..\..\..\..\src\ta_func\ta_ATR.c \ + ..\..\..\..\..\src\ta_func\ta_AVGPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_BBANDS.c \ + ..\..\..\..\..\src\ta_func\ta_BETA.c \ + ..\..\..\..\..\src\ta_func\ta_BOP.c \ + ..\..\..\..\..\src\ta_func\ta_CCI.c \ + ..\..\..\..\..\src\ta_func\ta_CDL2CROWS.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3BLACKCROWS.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3INSIDE.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3LINESTRIKE.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3OUTSIDE.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3STARSINSOUTH.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3WHITESOLDIERS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLABANDONEDBABY.c \ + ..\..\..\..\..\src\ta_func\ta_CDLADVANCEBLOCK.c \ + ..\..\..\..\..\src\ta_func\ta_CDLBELTHOLD.c \ + ..\..\..\..\..\src\ta_func\ta_CDLBREAKAWAY.c \ + ..\..\..\..\..\src\ta_func\ta_CDLCLOSINGMARUBOZU.c \ + ..\..\..\..\..\src\ta_func\ta_CDLCONCEALBABYSWALL.c \ + ..\..\..\..\..\src\ta_func\ta_CDLCOUNTERATTACK.c \ + ..\..\..\..\..\src\ta_func\ta_CDLDARKCLOUDCOVER.c \ + ..\..\..\..\..\src\ta_func\ta_CDLDOJI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLDOJISTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLDRAGONFLYDOJI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLENGULFING.c \ + ..\..\..\..\..\src\ta_func\ta_CDLEVENINGDOJISTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLEVENINGSTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLGAPSIDESIDEWHITE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLGRAVESTONEDOJI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHAMMER.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHANGINGMAN.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHARAMI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHARAMICROSS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHIGHWAVE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKEMOD.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHOMINGPIGEON.c \ + ..\..\..\..\..\src\ta_func\ta_CDLIDENTICAL3CROWS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLINNECK.c \ + ..\..\..\..\..\src\ta_func\ta_CDLINVERTEDHAMMER.c \ + ..\..\..\..\..\src\ta_func\ta_CDLKICKING.c \ + ..\..\..\..\..\src\ta_func\ta_CDLKICKINGBYLENGTH.c \ + ..\..\..\..\..\src\ta_func\ta_CDLLADDERBOTTOM.c \ + ..\..\..\..\..\src\ta_func\ta_CDLLONGLEGGEDDOJI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLLONGLINE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMARUBOZU.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMATCHINGLOW.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMATHOLD.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMORNINGDOJISTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMORNINGSTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLONNECK.c \ + ..\..\..\..\..\src\ta_func\ta_CDLPIERCING.c \ + ..\..\..\..\..\src\ta_func\ta_CDLRICKSHAWMAN.c \ + ..\..\..\..\..\src\ta_func\ta_CDLRISEFALL3METHODS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSEPARATINGLINES.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSHOOTINGSTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSHORTLINE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSPINNINGTOP.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSTALLEDPATTERN.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSTICKSANDWICH.c \ + ..\..\..\..\..\src\ta_func\ta_CDLTAKURI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLTASUKIGAP.c \ + ..\..\..\..\..\src\ta_func\ta_CDLTHRUSTING.c \ + ..\..\..\..\..\src\ta_func\ta_CDLTRISTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLUNIQUE3RIVER.c \ + ..\..\..\..\..\src\ta_func\ta_CDLUPSIDEGAP2CROWS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLXSIDEGAP3METHODS.c \ + ..\..\..\..\..\src\ta_func\ta_CEIL.c \ + ..\..\..\..\..\src\ta_func\ta_CMO.c \ + ..\..\..\..\..\src\ta_func\ta_CORREL.c \ + ..\..\..\..\..\src\ta_func\ta_COS.c \ + ..\..\..\..\..\src\ta_func\ta_COSH.c \ + ..\..\..\..\..\src\ta_func\ta_DEMA.c \ + ..\..\..\..\..\src\ta_func\ta_DIV.c \ + ..\..\..\..\..\src\ta_func\ta_DX.c \ + ..\..\..\..\..\src\ta_func\ta_EMA.c \ + ..\..\..\..\..\src\ta_func\ta_EXP.c \ + ..\..\..\..\..\src\ta_func\ta_FLOOR.c \ + ..\..\..\..\..\src\ta_func\ta_HT_DCPERIOD.c \ + ..\..\..\..\..\src\ta_func\ta_HT_DCPHASE.c \ + ..\..\..\..\..\src\ta_func\ta_HT_PHASOR.c \ + ..\..\..\..\..\src\ta_func\ta_HT_SINE.c \ + ..\..\..\..\..\src\ta_func\ta_HT_TRENDLINE.c \ + ..\..\..\..\..\src\ta_func\ta_HT_TRENDMODE.c \ + ..\..\..\..\..\src\ta_func\ta_KAMA.c \ + ..\..\..\..\..\src\ta_func\ta_LINEARREG.c \ + ..\..\..\..\..\src\ta_func\ta_LINEARREG_ANGLE.c \ + ..\..\..\..\..\src\ta_func\ta_LINEARREG_INTERCEPT.c \ + ..\..\..\..\..\src\ta_func\ta_LINEARREG_SLOPE.c \ + ..\..\..\..\..\src\ta_func\ta_LN.c \ + ..\..\..\..\..\src\ta_func\ta_LOG10.c \ + ..\..\..\..\..\src\ta_func\ta_MA.c \ + ..\..\..\..\..\src\ta_func\ta_MACD.c \ + ..\..\..\..\..\src\ta_func\ta_MACDEXT.c \ + ..\..\..\..\..\src\ta_func\ta_MACDFIX.c \ + ..\..\..\..\..\src\ta_func\ta_MAMA.c \ + ..\..\..\..\..\src\ta_func\ta_MAVP.c \ + ..\..\..\..\..\src\ta_func\ta_MAX.c \ + ..\..\..\..\..\src\ta_func\ta_MAXINDEX.c \ + ..\..\..\..\..\src\ta_func\ta_MEDPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_MFI.c \ + ..\..\..\..\..\src\ta_func\ta_MIDPOINT.c \ + ..\..\..\..\..\src\ta_func\ta_MIDPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_MIN.c \ + ..\..\..\..\..\src\ta_func\ta_MININDEX.c \ + ..\..\..\..\..\src\ta_func\ta_MINMAX.c \ + ..\..\..\..\..\src\ta_func\ta_MINMAXINDEX.c \ + ..\..\..\..\..\src\ta_func\ta_MINUS_DI.c \ + ..\..\..\..\..\src\ta_func\ta_MINUS_DM.c \ + ..\..\..\..\..\src\ta_func\ta_MOM.c \ + ..\..\..\..\..\src\ta_func\ta_MULT.c \ + ..\..\..\..\..\src\ta_func\ta_NATR.c \ + ..\..\..\..\..\src\ta_func\ta_OBV.c \ + ..\..\..\..\..\src\ta_func\ta_PLUS_DI.c \ + ..\..\..\..\..\src\ta_func\ta_PLUS_DM.c \ + ..\..\..\..\..\src\ta_func\ta_PPO.c \ + ..\..\..\..\..\src\ta_func\ta_ROC.c \ + ..\..\..\..\..\src\ta_func\ta_ROCP.c \ + ..\..\..\..\..\src\ta_func\ta_ROCR.c \ + ..\..\..\..\..\src\ta_func\ta_ROCR100.c \ + ..\..\..\..\..\src\ta_func\ta_RSI.c \ + ..\..\..\..\..\src\ta_func\ta_SAR.c \ + ..\..\..\..\..\src\ta_func\ta_SAREXT.c \ + ..\..\..\..\..\src\ta_func\ta_SIN.c \ + ..\..\..\..\..\src\ta_func\ta_SINH.c \ + ..\..\..\..\..\src\ta_func\ta_SMA.c \ + ..\..\..\..\..\src\ta_func\ta_SQRT.c \ + ..\..\..\..\..\src\ta_func\ta_STDDEV.c \ + ..\..\..\..\..\src\ta_func\ta_STOCH.c \ + ..\..\..\..\..\src\ta_func\ta_STOCHF.c \ + ..\..\..\..\..\src\ta_func\ta_STOCHRSI.c \ + ..\..\..\..\..\src\ta_func\ta_SUB.c \ + ..\..\..\..\..\src\ta_func\ta_SUM.c \ + ..\..\..\..\..\src\ta_func\ta_T3.c \ + ..\..\..\..\..\src\ta_func\ta_TAN.c \ + ..\..\..\..\..\src\ta_func\ta_TANH.c \ + ..\..\..\..\..\src\ta_func\ta_TEMA.c \ + ..\..\..\..\..\src\ta_func\ta_TRANGE.c \ + ..\..\..\..\..\src\ta_func\ta_TRIMA.c \ + ..\..\..\..\..\src\ta_func\ta_TRIX.c \ + ..\..\..\..\..\src\ta_func\ta_TSF.c \ + ..\..\..\..\..\src\ta_func\ta_TYPPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_ULTOSC.c \ + ..\..\..\..\..\src\ta_func\ta_VAR.c \ + ..\..\..\..\..\src\ta_func\ta_WCLPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_WILLR.c \ + ..\..\..\..\..\src\ta_func\ta_WMA.c +OBJECTS = ..\..\..\..\..\temp\cmd\ta_global.obj \ + ..\..\..\..\..\temp\cmd\ta_retcode.obj \ + ..\..\..\..\..\temp\cmd\ta_version.obj \ + ..\..\..\..\..\temp\cmd\ta_abstract.obj \ + ..\..\..\..\..\temp\cmd\ta_def_ui.obj \ + ..\..\..\..\..\temp\cmd\ta_func_api.obj \ + ..\..\..\..\..\temp\cmd\ta_group_idx.obj \ + ..\..\..\..\..\temp\cmd\ta_frame.obj \ + ..\..\..\..\..\temp\cmd\table_a.obj \ + ..\..\..\..\..\temp\cmd\table_b.obj \ + ..\..\..\..\..\temp\cmd\table_c.obj \ + ..\..\..\..\..\temp\cmd\table_d.obj \ + ..\..\..\..\..\temp\cmd\table_e.obj \ + ..\..\..\..\..\temp\cmd\table_f.obj \ + ..\..\..\..\..\temp\cmd\table_g.obj \ + ..\..\..\..\..\temp\cmd\table_h.obj \ + ..\..\..\..\..\temp\cmd\table_i.obj \ + ..\..\..\..\..\temp\cmd\table_j.obj \ + ..\..\..\..\..\temp\cmd\table_k.obj \ + ..\..\..\..\..\temp\cmd\table_l.obj \ + ..\..\..\..\..\temp\cmd\table_m.obj \ + ..\..\..\..\..\temp\cmd\table_n.obj \ + ..\..\..\..\..\temp\cmd\table_o.obj \ + ..\..\..\..\..\temp\cmd\table_p.obj \ + ..\..\..\..\..\temp\cmd\table_q.obj \ + ..\..\..\..\..\temp\cmd\table_r.obj \ + ..\..\..\..\..\temp\cmd\table_s.obj \ + ..\..\..\..\..\temp\cmd\table_t.obj \ + ..\..\..\..\..\temp\cmd\table_u.obj \ + ..\..\..\..\..\temp\cmd\table_v.obj \ + ..\..\..\..\..\temp\cmd\table_w.obj \ + ..\..\..\..\..\temp\cmd\table_x.obj \ + ..\..\..\..\..\temp\cmd\table_y.obj \ + ..\..\..\..\..\temp\cmd\table_z.obj \ + ..\..\..\..\..\temp\cmd\ta_utility.obj \ + ..\..\..\..\..\temp\cmd\ta_ACOS.obj \ + ..\..\..\..\..\temp\cmd\ta_AD.obj \ + ..\..\..\..\..\temp\cmd\ta_ADD.obj \ + ..\..\..\..\..\temp\cmd\ta_ADOSC.obj \ + ..\..\..\..\..\temp\cmd\ta_ADX.obj \ + ..\..\..\..\..\temp\cmd\ta_ADXR.obj \ + ..\..\..\..\..\temp\cmd\ta_APO.obj \ + ..\..\..\..\..\temp\cmd\ta_AROON.obj \ + ..\..\..\..\..\temp\cmd\ta_AROONOSC.obj \ + ..\..\..\..\..\temp\cmd\ta_ASIN.obj \ + ..\..\..\..\..\temp\cmd\ta_ATAN.obj \ + ..\..\..\..\..\temp\cmd\ta_ATR.obj \ + ..\..\..\..\..\temp\cmd\ta_AVGPRICE.obj \ + ..\..\..\..\..\temp\cmd\ta_BBANDS.obj \ + ..\..\..\..\..\temp\cmd\ta_BETA.obj \ + ..\..\..\..\..\temp\cmd\ta_BOP.obj \ + ..\..\..\..\..\temp\cmd\ta_CCI.obj \ + ..\..\..\..\..\temp\cmd\ta_CDL2CROWS.obj \ + ..\..\..\..\..\temp\cmd\ta_CDL3BLACKCROWS.obj \ + ..\..\..\..\..\temp\cmd\ta_CDL3INSIDE.obj \ + ..\..\..\..\..\temp\cmd\ta_CDL3LINESTRIKE.obj \ + ..\..\..\..\..\temp\cmd\ta_CDL3OUTSIDE.obj \ + ..\..\..\..\..\temp\cmd\ta_CDL3STARSINSOUTH.obj \ + ..\..\..\..\..\temp\cmd\ta_CDL3WHITESOLDIERS.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLABANDONEDBABY.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLADVANCEBLOCK.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLBELTHOLD.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLBREAKAWAY.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLCLOSINGMARUBOZU.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLCONCEALBABYSWALL.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLCOUNTERATTACK.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLDARKCLOUDCOVER.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLDOJI.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLDOJISTAR.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLDRAGONFLYDOJI.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLENGULFING.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLEVENINGDOJISTAR.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLEVENINGSTAR.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLGAPSIDESIDEWHITE.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLGRAVESTONEDOJI.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLHAMMER.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLHANGINGMAN.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLHARAMI.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLHARAMICROSS.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLHIGHWAVE.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLHIKKAKE.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLHIKKAKEMOD.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLHOMINGPIGEON.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLIDENTICAL3CROWS.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLINNECK.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLINVERTEDHAMMER.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLKICKING.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLKICKINGBYLENGTH.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLLADDERBOTTOM.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLLONGLEGGEDDOJI.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLLONGLINE.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLMARUBOZU.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLMATCHINGLOW.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLMATHOLD.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLMORNINGDOJISTAR.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLMORNINGSTAR.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLONNECK.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLPIERCING.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLRICKSHAWMAN.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLRISEFALL3METHODS.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLSEPARATINGLINES.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLSHOOTINGSTAR.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLSHORTLINE.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLSPINNINGTOP.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLSTALLEDPATTERN.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLSTICKSANDWICH.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLTAKURI.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLTASUKIGAP.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLTHRUSTING.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLTRISTAR.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLUNIQUE3RIVER.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLUPSIDEGAP2CROWS.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLXSIDEGAP3METHODS.obj \ + ..\..\..\..\..\temp\cmd\ta_CEIL.obj \ + ..\..\..\..\..\temp\cmd\ta_CMO.obj \ + ..\..\..\..\..\temp\cmd\ta_CORREL.obj \ + ..\..\..\..\..\temp\cmd\ta_COS.obj \ + ..\..\..\..\..\temp\cmd\ta_COSH.obj \ + ..\..\..\..\..\temp\cmd\ta_DEMA.obj \ + ..\..\..\..\..\temp\cmd\ta_DIV.obj \ + ..\..\..\..\..\temp\cmd\ta_DX.obj \ + ..\..\..\..\..\temp\cmd\ta_EMA.obj \ + ..\..\..\..\..\temp\cmd\ta_EXP.obj \ + ..\..\..\..\..\temp\cmd\ta_FLOOR.obj \ + ..\..\..\..\..\temp\cmd\ta_HT_DCPERIOD.obj \ + ..\..\..\..\..\temp\cmd\ta_HT_DCPHASE.obj \ + ..\..\..\..\..\temp\cmd\ta_HT_PHASOR.obj \ + ..\..\..\..\..\temp\cmd\ta_HT_SINE.obj \ + ..\..\..\..\..\temp\cmd\ta_HT_TRENDLINE.obj \ + ..\..\..\..\..\temp\cmd\ta_HT_TRENDMODE.obj \ + ..\..\..\..\..\temp\cmd\ta_KAMA.obj \ + ..\..\..\..\..\temp\cmd\ta_LINEARREG.obj \ + ..\..\..\..\..\temp\cmd\ta_LINEARREG_ANGLE.obj \ + ..\..\..\..\..\temp\cmd\ta_LINEARREG_INTERCEPT.obj \ + ..\..\..\..\..\temp\cmd\ta_LINEARREG_SLOPE.obj \ + ..\..\..\..\..\temp\cmd\ta_LN.obj \ + ..\..\..\..\..\temp\cmd\ta_LOG10.obj \ + ..\..\..\..\..\temp\cmd\ta_MA.obj \ + ..\..\..\..\..\temp\cmd\ta_MACD.obj \ + ..\..\..\..\..\temp\cmd\ta_MACDEXT.obj \ + ..\..\..\..\..\temp\cmd\ta_MACDFIX.obj \ + ..\..\..\..\..\temp\cmd\ta_MAMA.obj \ + ..\..\..\..\..\temp\cmd\ta_MAVP.obj \ + ..\..\..\..\..\temp\cmd\ta_MAX.obj \ + ..\..\..\..\..\temp\cmd\ta_MAXINDEX.obj \ + ..\..\..\..\..\temp\cmd\ta_MEDPRICE.obj \ + ..\..\..\..\..\temp\cmd\ta_MFI.obj \ + ..\..\..\..\..\temp\cmd\ta_MIDPOINT.obj \ + ..\..\..\..\..\temp\cmd\ta_MIDPRICE.obj \ + ..\..\..\..\..\temp\cmd\ta_MIN.obj \ + ..\..\..\..\..\temp\cmd\ta_MININDEX.obj \ + ..\..\..\..\..\temp\cmd\ta_MINMAX.obj \ + ..\..\..\..\..\temp\cmd\ta_MINMAXINDEX.obj \ + ..\..\..\..\..\temp\cmd\ta_MINUS_DI.obj \ + ..\..\..\..\..\temp\cmd\ta_MINUS_DM.obj \ + ..\..\..\..\..\temp\cmd\ta_MOM.obj \ + ..\..\..\..\..\temp\cmd\ta_MULT.obj \ + ..\..\..\..\..\temp\cmd\ta_NATR.obj \ + ..\..\..\..\..\temp\cmd\ta_OBV.obj \ + ..\..\..\..\..\temp\cmd\ta_PLUS_DI.obj \ + ..\..\..\..\..\temp\cmd\ta_PLUS_DM.obj \ + ..\..\..\..\..\temp\cmd\ta_PPO.obj \ + ..\..\..\..\..\temp\cmd\ta_ROC.obj \ + ..\..\..\..\..\temp\cmd\ta_ROCP.obj \ + ..\..\..\..\..\temp\cmd\ta_ROCR.obj \ + ..\..\..\..\..\temp\cmd\ta_ROCR100.obj \ + ..\..\..\..\..\temp\cmd\ta_RSI.obj \ + ..\..\..\..\..\temp\cmd\ta_SAR.obj \ + ..\..\..\..\..\temp\cmd\ta_SAREXT.obj \ + ..\..\..\..\..\temp\cmd\ta_SIN.obj \ + ..\..\..\..\..\temp\cmd\ta_SINH.obj \ + ..\..\..\..\..\temp\cmd\ta_SMA.obj \ + ..\..\..\..\..\temp\cmd\ta_SQRT.obj \ + ..\..\..\..\..\temp\cmd\ta_STDDEV.obj \ + ..\..\..\..\..\temp\cmd\ta_STOCH.obj \ + ..\..\..\..\..\temp\cmd\ta_STOCHF.obj \ + ..\..\..\..\..\temp\cmd\ta_STOCHRSI.obj \ + ..\..\..\..\..\temp\cmd\ta_SUB.obj \ + ..\..\..\..\..\temp\cmd\ta_SUM.obj \ + ..\..\..\..\..\temp\cmd\ta_T3.obj \ + ..\..\..\..\..\temp\cmd\ta_TAN.obj \ + ..\..\..\..\..\temp\cmd\ta_TANH.obj \ + ..\..\..\..\..\temp\cmd\ta_TEMA.obj \ + ..\..\..\..\..\temp\cmd\ta_TRANGE.obj \ + ..\..\..\..\..\temp\cmd\ta_TRIMA.obj \ + ..\..\..\..\..\temp\cmd\ta_TRIX.obj \ + ..\..\..\..\..\temp\cmd\ta_TSF.obj \ + ..\..\..\..\..\temp\cmd\ta_TYPPRICE.obj \ + ..\..\..\..\..\temp\cmd\ta_ULTOSC.obj \ + ..\..\..\..\..\temp\cmd\ta_VAR.obj \ + ..\..\..\..\..\temp\cmd\ta_WCLPRICE.obj \ + ..\..\..\..\..\temp\cmd\ta_WILLR.obj \ + ..\..\..\..\..\temp\cmd\ta_WMA.obj +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ..\..\..\..\..\lib\ta_libc_cmd.lib +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .c + +.cpp.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $< + +.cxx.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $< + +.cc.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $< + +.c.obj: + $(CC) -c $(CFLAGS) $(INCPATH) -Fo$@ $< + +####### Build rules + +all: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + $(LIB) /OUT:$(TARGET) @<< + $(OBJECTS) $(OBJMOC) +<< + +moc: $(SRCMOC) + +tmake: ../cmd/win32/msvc/ta_libc/Makefile + +../cmd/win32/msvc/ta_libc/Makefile: ta_libc/ta_libc.pro + tmake ta_libc/ta_libc.pro -o ../cmd/win32/msvc/ta_libc/Makefile + +dist: + $(ZIP) ta_libc/ta_libc.zip ta_libc/ta_libc.pro $(SOURCES) $(HEADERS) $(DIST) $(INTERFACES) + +clean: + -del ..\..\..\..\..\temp\cmd\ta_global.obj + -del ..\..\..\..\..\temp\cmd\ta_retcode.obj + -del ..\..\..\..\..\temp\cmd\ta_version.obj + -del ..\..\..\..\..\temp\cmd\ta_abstract.obj + -del ..\..\..\..\..\temp\cmd\ta_def_ui.obj + -del ..\..\..\..\..\temp\cmd\ta_func_api.obj + -del ..\..\..\..\..\temp\cmd\ta_group_idx.obj + -del ..\..\..\..\..\temp\cmd\ta_frame.obj + -del ..\..\..\..\..\temp\cmd\table_a.obj + -del ..\..\..\..\..\temp\cmd\table_b.obj + -del ..\..\..\..\..\temp\cmd\table_c.obj + -del ..\..\..\..\..\temp\cmd\table_d.obj + -del ..\..\..\..\..\temp\cmd\table_e.obj + -del ..\..\..\..\..\temp\cmd\table_f.obj + -del ..\..\..\..\..\temp\cmd\table_g.obj + -del ..\..\..\..\..\temp\cmd\table_h.obj + -del ..\..\..\..\..\temp\cmd\table_i.obj + -del ..\..\..\..\..\temp\cmd\table_j.obj + -del ..\..\..\..\..\temp\cmd\table_k.obj + -del ..\..\..\..\..\temp\cmd\table_l.obj + -del ..\..\..\..\..\temp\cmd\table_m.obj + -del ..\..\..\..\..\temp\cmd\table_n.obj + -del ..\..\..\..\..\temp\cmd\table_o.obj + -del ..\..\..\..\..\temp\cmd\table_p.obj + -del ..\..\..\..\..\temp\cmd\table_q.obj + -del ..\..\..\..\..\temp\cmd\table_r.obj + -del ..\..\..\..\..\temp\cmd\table_s.obj + -del ..\..\..\..\..\temp\cmd\table_t.obj + -del ..\..\..\..\..\temp\cmd\table_u.obj + -del ..\..\..\..\..\temp\cmd\table_v.obj + -del ..\..\..\..\..\temp\cmd\table_w.obj + -del ..\..\..\..\..\temp\cmd\table_x.obj + -del ..\..\..\..\..\temp\cmd\table_y.obj + -del ..\..\..\..\..\temp\cmd\table_z.obj + -del ..\..\..\..\..\temp\cmd\ta_utility.obj + -del ..\..\..\..\..\temp\cmd\ta_ACOS.obj + -del ..\..\..\..\..\temp\cmd\ta_AD.obj + -del ..\..\..\..\..\temp\cmd\ta_ADD.obj + -del ..\..\..\..\..\temp\cmd\ta_ADOSC.obj + -del ..\..\..\..\..\temp\cmd\ta_ADX.obj + -del ..\..\..\..\..\temp\cmd\ta_ADXR.obj + -del ..\..\..\..\..\temp\cmd\ta_APO.obj + -del ..\..\..\..\..\temp\cmd\ta_AROON.obj + -del ..\..\..\..\..\temp\cmd\ta_AROONOSC.obj + -del ..\..\..\..\..\temp\cmd\ta_ASIN.obj + -del ..\..\..\..\..\temp\cmd\ta_ATAN.obj + -del ..\..\..\..\..\temp\cmd\ta_ATR.obj + -del ..\..\..\..\..\temp\cmd\ta_AVGPRICE.obj + -del ..\..\..\..\..\temp\cmd\ta_BBANDS.obj + -del ..\..\..\..\..\temp\cmd\ta_BETA.obj + -del ..\..\..\..\..\temp\cmd\ta_BOP.obj + -del ..\..\..\..\..\temp\cmd\ta_CCI.obj + -del ..\..\..\..\..\temp\cmd\ta_CDL2CROWS.obj + -del ..\..\..\..\..\temp\cmd\ta_CDL3BLACKCROWS.obj + -del ..\..\..\..\..\temp\cmd\ta_CDL3INSIDE.obj + -del ..\..\..\..\..\temp\cmd\ta_CDL3LINESTRIKE.obj + -del ..\..\..\..\..\temp\cmd\ta_CDL3OUTSIDE.obj + -del ..\..\..\..\..\temp\cmd\ta_CDL3STARSINSOUTH.obj + -del ..\..\..\..\..\temp\cmd\ta_CDL3WHITESOLDIERS.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLABANDONEDBABY.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLADVANCEBLOCK.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLBELTHOLD.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLBREAKAWAY.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLCLOSINGMARUBOZU.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLCONCEALBABYSWALL.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLCOUNTERATTACK.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLDARKCLOUDCOVER.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLDOJI.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLDOJISTAR.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLDRAGONFLYDOJI.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLENGULFING.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLEVENINGDOJISTAR.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLEVENINGSTAR.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLGAPSIDESIDEWHITE.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLGRAVESTONEDOJI.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLHAMMER.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLHANGINGMAN.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLHARAMI.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLHARAMICROSS.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLHIGHWAVE.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLHIKKAKE.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLHIKKAKEMOD.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLHOMINGPIGEON.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLIDENTICAL3CROWS.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLINNECK.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLINVERTEDHAMMER.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLKICKING.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLKICKINGBYLENGTH.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLLADDERBOTTOM.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLLONGLEGGEDDOJI.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLLONGLINE.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLMARUBOZU.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLMATCHINGLOW.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLMATHOLD.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLMORNINGDOJISTAR.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLMORNINGSTAR.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLONNECK.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLPIERCING.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLRICKSHAWMAN.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLRISEFALL3METHODS.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLSEPARATINGLINES.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLSHOOTINGSTAR.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLSHORTLINE.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLSPINNINGTOP.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLSTALLEDPATTERN.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLSTICKSANDWICH.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLTAKURI.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLTASUKIGAP.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLTHRUSTING.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLTRISTAR.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLUNIQUE3RIVER.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLUPSIDEGAP2CROWS.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLXSIDEGAP3METHODS.obj + -del ..\..\..\..\..\temp\cmd\ta_CEIL.obj + -del ..\..\..\..\..\temp\cmd\ta_CMO.obj + -del ..\..\..\..\..\temp\cmd\ta_CORREL.obj + -del ..\..\..\..\..\temp\cmd\ta_COS.obj + -del ..\..\..\..\..\temp\cmd\ta_COSH.obj + -del ..\..\..\..\..\temp\cmd\ta_DEMA.obj + -del ..\..\..\..\..\temp\cmd\ta_DIV.obj + -del ..\..\..\..\..\temp\cmd\ta_DX.obj + -del ..\..\..\..\..\temp\cmd\ta_EMA.obj + -del ..\..\..\..\..\temp\cmd\ta_EXP.obj + -del ..\..\..\..\..\temp\cmd\ta_FLOOR.obj + -del ..\..\..\..\..\temp\cmd\ta_HT_DCPERIOD.obj + -del ..\..\..\..\..\temp\cmd\ta_HT_DCPHASE.obj + -del ..\..\..\..\..\temp\cmd\ta_HT_PHASOR.obj + -del ..\..\..\..\..\temp\cmd\ta_HT_SINE.obj + -del ..\..\..\..\..\temp\cmd\ta_HT_TRENDLINE.obj + -del ..\..\..\..\..\temp\cmd\ta_HT_TRENDMODE.obj + -del ..\..\..\..\..\temp\cmd\ta_KAMA.obj + -del ..\..\..\..\..\temp\cmd\ta_LINEARREG.obj + -del ..\..\..\..\..\temp\cmd\ta_LINEARREG_ANGLE.obj + -del ..\..\..\..\..\temp\cmd\ta_LINEARREG_INTERCEPT.obj + -del ..\..\..\..\..\temp\cmd\ta_LINEARREG_SLOPE.obj + -del ..\..\..\..\..\temp\cmd\ta_LN.obj + -del ..\..\..\..\..\temp\cmd\ta_LOG10.obj + -del ..\..\..\..\..\temp\cmd\ta_MA.obj + -del ..\..\..\..\..\temp\cmd\ta_MACD.obj + -del ..\..\..\..\..\temp\cmd\ta_MACDEXT.obj + -del ..\..\..\..\..\temp\cmd\ta_MACDFIX.obj + -del ..\..\..\..\..\temp\cmd\ta_MAMA.obj + -del ..\..\..\..\..\temp\cmd\ta_MAVP.obj + -del ..\..\..\..\..\temp\cmd\ta_MAX.obj + -del ..\..\..\..\..\temp\cmd\ta_MAXINDEX.obj + -del ..\..\..\..\..\temp\cmd\ta_MEDPRICE.obj + -del ..\..\..\..\..\temp\cmd\ta_MFI.obj + -del ..\..\..\..\..\temp\cmd\ta_MIDPOINT.obj + -del ..\..\..\..\..\temp\cmd\ta_MIDPRICE.obj + -del ..\..\..\..\..\temp\cmd\ta_MIN.obj + -del ..\..\..\..\..\temp\cmd\ta_MININDEX.obj + -del ..\..\..\..\..\temp\cmd\ta_MINMAX.obj + -del ..\..\..\..\..\temp\cmd\ta_MINMAXINDEX.obj + -del ..\..\..\..\..\temp\cmd\ta_MINUS_DI.obj + -del ..\..\..\..\..\temp\cmd\ta_MINUS_DM.obj + -del ..\..\..\..\..\temp\cmd\ta_MOM.obj + -del ..\..\..\..\..\temp\cmd\ta_MULT.obj + -del ..\..\..\..\..\temp\cmd\ta_NATR.obj + -del ..\..\..\..\..\temp\cmd\ta_OBV.obj + -del ..\..\..\..\..\temp\cmd\ta_PLUS_DI.obj + -del ..\..\..\..\..\temp\cmd\ta_PLUS_DM.obj + -del ..\..\..\..\..\temp\cmd\ta_PPO.obj + -del ..\..\..\..\..\temp\cmd\ta_ROC.obj + -del ..\..\..\..\..\temp\cmd\ta_ROCP.obj + -del ..\..\..\..\..\temp\cmd\ta_ROCR.obj + -del ..\..\..\..\..\temp\cmd\ta_ROCR100.obj + -del ..\..\..\..\..\temp\cmd\ta_RSI.obj + -del ..\..\..\..\..\temp\cmd\ta_SAR.obj + -del ..\..\..\..\..\temp\cmd\ta_SAREXT.obj + -del ..\..\..\..\..\temp\cmd\ta_SIN.obj + -del ..\..\..\..\..\temp\cmd\ta_SINH.obj + -del ..\..\..\..\..\temp\cmd\ta_SMA.obj + -del ..\..\..\..\..\temp\cmd\ta_SQRT.obj + -del ..\..\..\..\..\temp\cmd\ta_STDDEV.obj + -del ..\..\..\..\..\temp\cmd\ta_STOCH.obj + -del ..\..\..\..\..\temp\cmd\ta_STOCHF.obj + -del ..\..\..\..\..\temp\cmd\ta_STOCHRSI.obj + -del ..\..\..\..\..\temp\cmd\ta_SUB.obj + -del ..\..\..\..\..\temp\cmd\ta_SUM.obj + -del ..\..\..\..\..\temp\cmd\ta_T3.obj + -del ..\..\..\..\..\temp\cmd\ta_TAN.obj + -del ..\..\..\..\..\temp\cmd\ta_TANH.obj + -del ..\..\..\..\..\temp\cmd\ta_TEMA.obj + -del ..\..\..\..\..\temp\cmd\ta_TRANGE.obj + -del ..\..\..\..\..\temp\cmd\ta_TRIMA.obj + -del ..\..\..\..\..\temp\cmd\ta_TRIX.obj + -del ..\..\..\..\..\temp\cmd\ta_TSF.obj + -del ..\..\..\..\..\temp\cmd\ta_TYPPRICE.obj + -del ..\..\..\..\..\temp\cmd\ta_ULTOSC.obj + -del ..\..\..\..\..\temp\cmd\ta_VAR.obj + -del ..\..\..\..\..\temp\cmd\ta_WCLPRICE.obj + -del ..\..\..\..\..\temp\cmd\ta_WILLR.obj + -del ..\..\..\..\..\temp\cmd\ta_WMA.obj + -del $(TARGET) + -del ../../../../../bin/*.map + -del ../../../../../bin/*._xe + -del ../../../../../bin/*.tds + -del ../../../../../bin/*.pdb + -del ../../../../../bin/*.pbo + -del ../../../../../bin/*.pbi + -del ../../../../../bin/*.pbt + -del ta_libc_cmd.pdb + -del vc*.pdb + -del ta_libc_cmd.ilk + +####### Compile + +..\..\..\..\..\temp\cmd\ta_global.obj: ..\..\..\..\..\src\ta_common\ta_global.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_global.obj ..\..\..\..\..\src\ta_common\ta_global.c + +..\..\..\..\..\temp\cmd\ta_retcode.obj: ..\..\..\..\..\src\ta_common\ta_retcode.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_retcode.obj ..\..\..\..\..\src\ta_common\ta_retcode.c + +..\..\..\..\..\temp\cmd\ta_version.obj: ..\..\..\..\..\src\ta_common\ta_version.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_version.obj ..\..\..\..\..\src\ta_common\ta_version.c + +..\..\..\..\..\temp\cmd\ta_abstract.obj: ..\..\..\..\..\src\ta_abstract\ta_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_abstract.obj ..\..\..\..\..\src\ta_abstract\ta_abstract.c + +..\..\..\..\..\temp\cmd\ta_def_ui.obj: ..\..\..\..\..\src\ta_abstract\ta_def_ui.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_def_ui.obj ..\..\..\..\..\src\ta_abstract\ta_def_ui.c + +..\..\..\..\..\temp\cmd\ta_func_api.obj: ..\..\..\..\..\src\ta_abstract\ta_func_api.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_func_api.obj ..\..\..\..\..\src\ta_abstract\ta_func_api.c + +..\..\..\..\..\temp\cmd\ta_group_idx.obj: ..\..\..\..\..\src\ta_abstract\ta_group_idx.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_group_idx.obj ..\..\..\..\..\src\ta_abstract\ta_group_idx.c + +..\..\..\..\..\temp\cmd\ta_frame.obj: ..\..\..\..\..\src\ta_abstract\frames\ta_frame.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_frame.obj ..\..\..\..\..\src\ta_abstract\frames\ta_frame.c + +..\..\..\..\..\temp\cmd\table_a.obj: ..\..\..\..\..\src\ta_abstract\tables\table_a.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\table_a.obj ..\..\..\..\..\src\ta_abstract\tables\table_a.c + +..\..\..\..\..\temp\cmd\table_b.obj: ..\..\..\..\..\src\ta_abstract\tables\table_b.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\table_b.obj ..\..\..\..\..\src\ta_abstract\tables\table_b.c + +..\..\..\..\..\temp\cmd\table_c.obj: ..\..\..\..\..\src\ta_abstract\tables\table_c.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\table_c.obj ..\..\..\..\..\src\ta_abstract\tables\table_c.c + +..\..\..\..\..\temp\cmd\table_d.obj: ..\..\..\..\..\src\ta_abstract\tables\table_d.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\table_d.obj ..\..\..\..\..\src\ta_abstract\tables\table_d.c + +..\..\..\..\..\temp\cmd\table_e.obj: ..\..\..\..\..\src\ta_abstract\tables\table_e.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\table_e.obj ..\..\..\..\..\src\ta_abstract\tables\table_e.c + +..\..\..\..\..\temp\cmd\table_f.obj: ..\..\..\..\..\src\ta_abstract\tables\table_f.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\table_f.obj ..\..\..\..\..\src\ta_abstract\tables\table_f.c + +..\..\..\..\..\temp\cmd\table_g.obj: ..\..\..\..\..\src\ta_abstract\tables\table_g.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\table_g.obj ..\..\..\..\..\src\ta_abstract\tables\table_g.c + +..\..\..\..\..\temp\cmd\table_h.obj: ..\..\..\..\..\src\ta_abstract\tables\table_h.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\table_h.obj ..\..\..\..\..\src\ta_abstract\tables\table_h.c + +..\..\..\..\..\temp\cmd\table_i.obj: ..\..\..\..\..\src\ta_abstract\tables\table_i.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\table_i.obj ..\..\..\..\..\src\ta_abstract\tables\table_i.c + +..\..\..\..\..\temp\cmd\table_j.obj: ..\..\..\..\..\src\ta_abstract\tables\table_j.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\table_j.obj ..\..\..\..\..\src\ta_abstract\tables\table_j.c + +..\..\..\..\..\temp\cmd\table_k.obj: ..\..\..\..\..\src\ta_abstract\tables\table_k.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\table_k.obj ..\..\..\..\..\src\ta_abstract\tables\table_k.c + +..\..\..\..\..\temp\cmd\table_l.obj: ..\..\..\..\..\src\ta_abstract\tables\table_l.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\table_l.obj ..\..\..\..\..\src\ta_abstract\tables\table_l.c + +..\..\..\..\..\temp\cmd\table_m.obj: ..\..\..\..\..\src\ta_abstract\tables\table_m.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\table_m.obj ..\..\..\..\..\src\ta_abstract\tables\table_m.c + +..\..\..\..\..\temp\cmd\table_n.obj: ..\..\..\..\..\src\ta_abstract\tables\table_n.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\table_n.obj ..\..\..\..\..\src\ta_abstract\tables\table_n.c + +..\..\..\..\..\temp\cmd\table_o.obj: ..\..\..\..\..\src\ta_abstract\tables\table_o.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\table_o.obj ..\..\..\..\..\src\ta_abstract\tables\table_o.c + +..\..\..\..\..\temp\cmd\table_p.obj: ..\..\..\..\..\src\ta_abstract\tables\table_p.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\table_p.obj ..\..\..\..\..\src\ta_abstract\tables\table_p.c + +..\..\..\..\..\temp\cmd\table_q.obj: ..\..\..\..\..\src\ta_abstract\tables\table_q.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\table_q.obj ..\..\..\..\..\src\ta_abstract\tables\table_q.c + +..\..\..\..\..\temp\cmd\table_r.obj: ..\..\..\..\..\src\ta_abstract\tables\table_r.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\table_r.obj ..\..\..\..\..\src\ta_abstract\tables\table_r.c + +..\..\..\..\..\temp\cmd\table_s.obj: ..\..\..\..\..\src\ta_abstract\tables\table_s.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\table_s.obj ..\..\..\..\..\src\ta_abstract\tables\table_s.c + +..\..\..\..\..\temp\cmd\table_t.obj: ..\..\..\..\..\src\ta_abstract\tables\table_t.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\table_t.obj ..\..\..\..\..\src\ta_abstract\tables\table_t.c + +..\..\..\..\..\temp\cmd\table_u.obj: ..\..\..\..\..\src\ta_abstract\tables\table_u.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\table_u.obj ..\..\..\..\..\src\ta_abstract\tables\table_u.c + +..\..\..\..\..\temp\cmd\table_v.obj: ..\..\..\..\..\src\ta_abstract\tables\table_v.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\table_v.obj ..\..\..\..\..\src\ta_abstract\tables\table_v.c + +..\..\..\..\..\temp\cmd\table_w.obj: ..\..\..\..\..\src\ta_abstract\tables\table_w.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\table_w.obj ..\..\..\..\..\src\ta_abstract\tables\table_w.c + +..\..\..\..\..\temp\cmd\table_x.obj: ..\..\..\..\..\src\ta_abstract\tables\table_x.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\table_x.obj ..\..\..\..\..\src\ta_abstract\tables\table_x.c + +..\..\..\..\..\temp\cmd\table_y.obj: ..\..\..\..\..\src\ta_abstract\tables\table_y.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\table_y.obj ..\..\..\..\..\src\ta_abstract\tables\table_y.c + +..\..\..\..\..\temp\cmd\table_z.obj: ..\..\..\..\..\src\ta_abstract\tables\table_z.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\table_z.obj ..\..\..\..\..\src\ta_abstract\tables\table_z.c + +..\..\..\..\..\temp\cmd\ta_utility.obj: ..\..\..\..\..\src\ta_func\ta_utility.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_utility.obj ..\..\..\..\..\src\ta_func\ta_utility.c + +..\..\..\..\..\temp\cmd\ta_ACOS.obj: ..\..\..\..\..\src\ta_func\ta_ACOS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_ACOS.obj ..\..\..\..\..\src\ta_func\ta_ACOS.c + +..\..\..\..\..\temp\cmd\ta_AD.obj: ..\..\..\..\..\src\ta_func\ta_AD.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_AD.obj ..\..\..\..\..\src\ta_func\ta_AD.c + +..\..\..\..\..\temp\cmd\ta_ADD.obj: ..\..\..\..\..\src\ta_func\ta_ADD.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_ADD.obj ..\..\..\..\..\src\ta_func\ta_ADD.c + +..\..\..\..\..\temp\cmd\ta_ADOSC.obj: ..\..\..\..\..\src\ta_func\ta_ADOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_ADOSC.obj ..\..\..\..\..\src\ta_func\ta_ADOSC.c + +..\..\..\..\..\temp\cmd\ta_ADX.obj: ..\..\..\..\..\src\ta_func\ta_ADX.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_ADX.obj ..\..\..\..\..\src\ta_func\ta_ADX.c + +..\..\..\..\..\temp\cmd\ta_ADXR.obj: ..\..\..\..\..\src\ta_func\ta_ADXR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_ADXR.obj ..\..\..\..\..\src\ta_func\ta_ADXR.c + +..\..\..\..\..\temp\cmd\ta_APO.obj: ..\..\..\..\..\src\ta_func\ta_APO.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_APO.obj ..\..\..\..\..\src\ta_func\ta_APO.c + +..\..\..\..\..\temp\cmd\ta_AROON.obj: ..\..\..\..\..\src\ta_func\ta_AROON.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_AROON.obj ..\..\..\..\..\src\ta_func\ta_AROON.c + +..\..\..\..\..\temp\cmd\ta_AROONOSC.obj: ..\..\..\..\..\src\ta_func\ta_AROONOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_AROONOSC.obj ..\..\..\..\..\src\ta_func\ta_AROONOSC.c + +..\..\..\..\..\temp\cmd\ta_ASIN.obj: ..\..\..\..\..\src\ta_func\ta_ASIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_ASIN.obj ..\..\..\..\..\src\ta_func\ta_ASIN.c + +..\..\..\..\..\temp\cmd\ta_ATAN.obj: ..\..\..\..\..\src\ta_func\ta_ATAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_ATAN.obj ..\..\..\..\..\src\ta_func\ta_ATAN.c + +..\..\..\..\..\temp\cmd\ta_ATR.obj: ..\..\..\..\..\src\ta_func\ta_ATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_ATR.obj ..\..\..\..\..\src\ta_func\ta_ATR.c + +..\..\..\..\..\temp\cmd\ta_AVGPRICE.obj: ..\..\..\..\..\src\ta_func\ta_AVGPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_AVGPRICE.obj ..\..\..\..\..\src\ta_func\ta_AVGPRICE.c + +..\..\..\..\..\temp\cmd\ta_BBANDS.obj: ..\..\..\..\..\src\ta_func\ta_BBANDS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_BBANDS.obj ..\..\..\..\..\src\ta_func\ta_BBANDS.c + +..\..\..\..\..\temp\cmd\ta_BETA.obj: ..\..\..\..\..\src\ta_func\ta_BETA.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_BETA.obj ..\..\..\..\..\src\ta_func\ta_BETA.c + +..\..\..\..\..\temp\cmd\ta_BOP.obj: ..\..\..\..\..\src\ta_func\ta_BOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_BOP.obj ..\..\..\..\..\src\ta_func\ta_BOP.c + +..\..\..\..\..\temp\cmd\ta_CCI.obj: ..\..\..\..\..\src\ta_func\ta_CCI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CCI.obj ..\..\..\..\..\src\ta_func\ta_CCI.c + +..\..\..\..\..\temp\cmd\ta_CDL2CROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDL2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CDL2CROWS.obj ..\..\..\..\..\src\ta_func\ta_CDL2CROWS.c + +..\..\..\..\..\temp\cmd\ta_CDL3BLACKCROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDL3BLACKCROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CDL3BLACKCROWS.obj ..\..\..\..\..\src\ta_func\ta_CDL3BLACKCROWS.c + +..\..\..\..\..\temp\cmd\ta_CDL3INSIDE.obj: ..\..\..\..\..\src\ta_func\ta_CDL3INSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CDL3INSIDE.obj ..\..\..\..\..\src\ta_func\ta_CDL3INSIDE.c + +..\..\..\..\..\temp\cmd\ta_CDL3LINESTRIKE.obj: ..\..\..\..\..\src\ta_func\ta_CDL3LINESTRIKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CDL3LINESTRIKE.obj ..\..\..\..\..\src\ta_func\ta_CDL3LINESTRIKE.c + +..\..\..\..\..\temp\cmd\ta_CDL3OUTSIDE.obj: ..\..\..\..\..\src\ta_func\ta_CDL3OUTSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CDL3OUTSIDE.obj ..\..\..\..\..\src\ta_func\ta_CDL3OUTSIDE.c + +..\..\..\..\..\temp\cmd\ta_CDL3STARSINSOUTH.obj: ..\..\..\..\..\src\ta_func\ta_CDL3STARSINSOUTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CDL3STARSINSOUTH.obj ..\..\..\..\..\src\ta_func\ta_CDL3STARSINSOUTH.c + +..\..\..\..\..\temp\cmd\ta_CDL3WHITESOLDIERS.obj: ..\..\..\..\..\src\ta_func\ta_CDL3WHITESOLDIERS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CDL3WHITESOLDIERS.obj ..\..\..\..\..\src\ta_func\ta_CDL3WHITESOLDIERS.c + +..\..\..\..\..\temp\cmd\ta_CDLABANDONEDBABY.obj: ..\..\..\..\..\src\ta_func\ta_CDLABANDONEDBABY.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CDLABANDONEDBABY.obj ..\..\..\..\..\src\ta_func\ta_CDLABANDONEDBABY.c + +..\..\..\..\..\temp\cmd\ta_CDLADVANCEBLOCK.obj: ..\..\..\..\..\src\ta_func\ta_CDLADVANCEBLOCK.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CDLADVANCEBLOCK.obj ..\..\..\..\..\src\ta_func\ta_CDLADVANCEBLOCK.c + +..\..\..\..\..\temp\cmd\ta_CDLBELTHOLD.obj: ..\..\..\..\..\src\ta_func\ta_CDLBELTHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CDLBELTHOLD.obj ..\..\..\..\..\src\ta_func\ta_CDLBELTHOLD.c + +..\..\..\..\..\temp\cmd\ta_CDLBREAKAWAY.obj: ..\..\..\..\..\src\ta_func\ta_CDLBREAKAWAY.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CDLBREAKAWAY.obj ..\..\..\..\..\src\ta_func\ta_CDLBREAKAWAY.c + +..\..\..\..\..\temp\cmd\ta_CDLCLOSINGMARUBOZU.obj: ..\..\..\..\..\src\ta_func\ta_CDLCLOSINGMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CDLCLOSINGMARUBOZU.obj ..\..\..\..\..\src\ta_func\ta_CDLCLOSINGMARUBOZU.c + +..\..\..\..\..\temp\cmd\ta_CDLCONCEALBABYSWALL.obj: ..\..\..\..\..\src\ta_func\ta_CDLCONCEALBABYSWALL.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CDLCONCEALBABYSWALL.obj ..\..\..\..\..\src\ta_func\ta_CDLCONCEALBABYSWALL.c + +..\..\..\..\..\temp\cmd\ta_CDLCOUNTERATTACK.obj: ..\..\..\..\..\src\ta_func\ta_CDLCOUNTERATTACK.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CDLCOUNTERATTACK.obj ..\..\..\..\..\src\ta_func\ta_CDLCOUNTERATTACK.c + +..\..\..\..\..\temp\cmd\ta_CDLDARKCLOUDCOVER.obj: ..\..\..\..\..\src\ta_func\ta_CDLDARKCLOUDCOVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CDLDARKCLOUDCOVER.obj ..\..\..\..\..\src\ta_func\ta_CDLDARKCLOUDCOVER.c + +..\..\..\..\..\temp\cmd\ta_CDLDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CDLDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLDOJI.c + +..\..\..\..\..\temp\cmd\ta_CDLDOJISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CDLDOJISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLDOJISTAR.c + +..\..\..\..\..\temp\cmd\ta_CDLDRAGONFLYDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLDRAGONFLYDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CDLDRAGONFLYDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLDRAGONFLYDOJI.c + +..\..\..\..\..\temp\cmd\ta_CDLENGULFING.obj: ..\..\..\..\..\src\ta_func\ta_CDLENGULFING.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CDLENGULFING.obj ..\..\..\..\..\src\ta_func\ta_CDLENGULFING.c + +..\..\..\..\..\temp\cmd\ta_CDLEVENINGDOJISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLEVENINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CDLEVENINGDOJISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLEVENINGDOJISTAR.c + +..\..\..\..\..\temp\cmd\ta_CDLEVENINGSTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLEVENINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CDLEVENINGSTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLEVENINGSTAR.c + +..\..\..\..\..\temp\cmd\ta_CDLGAPSIDESIDEWHITE.obj: ..\..\..\..\..\src\ta_func\ta_CDLGAPSIDESIDEWHITE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CDLGAPSIDESIDEWHITE.obj ..\..\..\..\..\src\ta_func\ta_CDLGAPSIDESIDEWHITE.c + +..\..\..\..\..\temp\cmd\ta_CDLGRAVESTONEDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLGRAVESTONEDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CDLGRAVESTONEDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLGRAVESTONEDOJI.c + +..\..\..\..\..\temp\cmd\ta_CDLHAMMER.obj: ..\..\..\..\..\src\ta_func\ta_CDLHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CDLHAMMER.obj ..\..\..\..\..\src\ta_func\ta_CDLHAMMER.c + +..\..\..\..\..\temp\cmd\ta_CDLHANGINGMAN.obj: ..\..\..\..\..\src\ta_func\ta_CDLHANGINGMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CDLHANGINGMAN.obj ..\..\..\..\..\src\ta_func\ta_CDLHANGINGMAN.c + +..\..\..\..\..\temp\cmd\ta_CDLHARAMI.obj: ..\..\..\..\..\src\ta_func\ta_CDLHARAMI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CDLHARAMI.obj ..\..\..\..\..\src\ta_func\ta_CDLHARAMI.c + +..\..\..\..\..\temp\cmd\ta_CDLHARAMICROSS.obj: ..\..\..\..\..\src\ta_func\ta_CDLHARAMICROSS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CDLHARAMICROSS.obj ..\..\..\..\..\src\ta_func\ta_CDLHARAMICROSS.c + +..\..\..\..\..\temp\cmd\ta_CDLHIGHWAVE.obj: ..\..\..\..\..\src\ta_func\ta_CDLHIGHWAVE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CDLHIGHWAVE.obj ..\..\..\..\..\src\ta_func\ta_CDLHIGHWAVE.c + +..\..\..\..\..\temp\cmd\ta_CDLHIKKAKE.obj: ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CDLHIKKAKE.obj ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKE.c + +..\..\..\..\..\temp\cmd\ta_CDLHIKKAKEMOD.obj: ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKEMOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CDLHIKKAKEMOD.obj ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKEMOD.c + +..\..\..\..\..\temp\cmd\ta_CDLHOMINGPIGEON.obj: ..\..\..\..\..\src\ta_func\ta_CDLHOMINGPIGEON.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CDLHOMINGPIGEON.obj ..\..\..\..\..\src\ta_func\ta_CDLHOMINGPIGEON.c + +..\..\..\..\..\temp\cmd\ta_CDLIDENTICAL3CROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDLIDENTICAL3CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CDLIDENTICAL3CROWS.obj ..\..\..\..\..\src\ta_func\ta_CDLIDENTICAL3CROWS.c + +..\..\..\..\..\temp\cmd\ta_CDLINNECK.obj: ..\..\..\..\..\src\ta_func\ta_CDLINNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CDLINNECK.obj ..\..\..\..\..\src\ta_func\ta_CDLINNECK.c + +..\..\..\..\..\temp\cmd\ta_CDLINVERTEDHAMMER.obj: ..\..\..\..\..\src\ta_func\ta_CDLINVERTEDHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CDLINVERTEDHAMMER.obj ..\..\..\..\..\src\ta_func\ta_CDLINVERTEDHAMMER.c + +..\..\..\..\..\temp\cmd\ta_CDLKICKING.obj: ..\..\..\..\..\src\ta_func\ta_CDLKICKING.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CDLKICKING.obj ..\..\..\..\..\src\ta_func\ta_CDLKICKING.c + +..\..\..\..\..\temp\cmd\ta_CDLKICKINGBYLENGTH.obj: ..\..\..\..\..\src\ta_func\ta_CDLKICKINGBYLENGTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CDLKICKINGBYLENGTH.obj ..\..\..\..\..\src\ta_func\ta_CDLKICKINGBYLENGTH.c + +..\..\..\..\..\temp\cmd\ta_CDLLADDERBOTTOM.obj: ..\..\..\..\..\src\ta_func\ta_CDLLADDERBOTTOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CDLLADDERBOTTOM.obj ..\..\..\..\..\src\ta_func\ta_CDLLADDERBOTTOM.c + +..\..\..\..\..\temp\cmd\ta_CDLLONGLEGGEDDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLLONGLEGGEDDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CDLLONGLEGGEDDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLLONGLEGGEDDOJI.c + +..\..\..\..\..\temp\cmd\ta_CDLLONGLINE.obj: ..\..\..\..\..\src\ta_func\ta_CDLLONGLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CDLLONGLINE.obj ..\..\..\..\..\src\ta_func\ta_CDLLONGLINE.c + +..\..\..\..\..\temp\cmd\ta_CDLMARUBOZU.obj: ..\..\..\..\..\src\ta_func\ta_CDLMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CDLMARUBOZU.obj ..\..\..\..\..\src\ta_func\ta_CDLMARUBOZU.c + +..\..\..\..\..\temp\cmd\ta_CDLMATCHINGLOW.obj: ..\..\..\..\..\src\ta_func\ta_CDLMATCHINGLOW.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CDLMATCHINGLOW.obj ..\..\..\..\..\src\ta_func\ta_CDLMATCHINGLOW.c + +..\..\..\..\..\temp\cmd\ta_CDLMATHOLD.obj: ..\..\..\..\..\src\ta_func\ta_CDLMATHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CDLMATHOLD.obj ..\..\..\..\..\src\ta_func\ta_CDLMATHOLD.c + +..\..\..\..\..\temp\cmd\ta_CDLMORNINGDOJISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLMORNINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CDLMORNINGDOJISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLMORNINGDOJISTAR.c + +..\..\..\..\..\temp\cmd\ta_CDLMORNINGSTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLMORNINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CDLMORNINGSTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLMORNINGSTAR.c + +..\..\..\..\..\temp\cmd\ta_CDLONNECK.obj: ..\..\..\..\..\src\ta_func\ta_CDLONNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CDLONNECK.obj ..\..\..\..\..\src\ta_func\ta_CDLONNECK.c + +..\..\..\..\..\temp\cmd\ta_CDLPIERCING.obj: ..\..\..\..\..\src\ta_func\ta_CDLPIERCING.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CDLPIERCING.obj ..\..\..\..\..\src\ta_func\ta_CDLPIERCING.c + +..\..\..\..\..\temp\cmd\ta_CDLRICKSHAWMAN.obj: ..\..\..\..\..\src\ta_func\ta_CDLRICKSHAWMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CDLRICKSHAWMAN.obj ..\..\..\..\..\src\ta_func\ta_CDLRICKSHAWMAN.c + +..\..\..\..\..\temp\cmd\ta_CDLRISEFALL3METHODS.obj: ..\..\..\..\..\src\ta_func\ta_CDLRISEFALL3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CDLRISEFALL3METHODS.obj ..\..\..\..\..\src\ta_func\ta_CDLRISEFALL3METHODS.c + +..\..\..\..\..\temp\cmd\ta_CDLSEPARATINGLINES.obj: ..\..\..\..\..\src\ta_func\ta_CDLSEPARATINGLINES.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CDLSEPARATINGLINES.obj ..\..\..\..\..\src\ta_func\ta_CDLSEPARATINGLINES.c + +..\..\..\..\..\temp\cmd\ta_CDLSHOOTINGSTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLSHOOTINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CDLSHOOTINGSTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLSHOOTINGSTAR.c + +..\..\..\..\..\temp\cmd\ta_CDLSHORTLINE.obj: ..\..\..\..\..\src\ta_func\ta_CDLSHORTLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CDLSHORTLINE.obj ..\..\..\..\..\src\ta_func\ta_CDLSHORTLINE.c + +..\..\..\..\..\temp\cmd\ta_CDLSPINNINGTOP.obj: ..\..\..\..\..\src\ta_func\ta_CDLSPINNINGTOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CDLSPINNINGTOP.obj ..\..\..\..\..\src\ta_func\ta_CDLSPINNINGTOP.c + +..\..\..\..\..\temp\cmd\ta_CDLSTALLEDPATTERN.obj: ..\..\..\..\..\src\ta_func\ta_CDLSTALLEDPATTERN.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CDLSTALLEDPATTERN.obj ..\..\..\..\..\src\ta_func\ta_CDLSTALLEDPATTERN.c + +..\..\..\..\..\temp\cmd\ta_CDLSTICKSANDWICH.obj: ..\..\..\..\..\src\ta_func\ta_CDLSTICKSANDWICH.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CDLSTICKSANDWICH.obj ..\..\..\..\..\src\ta_func\ta_CDLSTICKSANDWICH.c + +..\..\..\..\..\temp\cmd\ta_CDLTAKURI.obj: ..\..\..\..\..\src\ta_func\ta_CDLTAKURI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CDLTAKURI.obj ..\..\..\..\..\src\ta_func\ta_CDLTAKURI.c + +..\..\..\..\..\temp\cmd\ta_CDLTASUKIGAP.obj: ..\..\..\..\..\src\ta_func\ta_CDLTASUKIGAP.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CDLTASUKIGAP.obj ..\..\..\..\..\src\ta_func\ta_CDLTASUKIGAP.c + +..\..\..\..\..\temp\cmd\ta_CDLTHRUSTING.obj: ..\..\..\..\..\src\ta_func\ta_CDLTHRUSTING.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CDLTHRUSTING.obj ..\..\..\..\..\src\ta_func\ta_CDLTHRUSTING.c + +..\..\..\..\..\temp\cmd\ta_CDLTRISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLTRISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CDLTRISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLTRISTAR.c + +..\..\..\..\..\temp\cmd\ta_CDLUNIQUE3RIVER.obj: ..\..\..\..\..\src\ta_func\ta_CDLUNIQUE3RIVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CDLUNIQUE3RIVER.obj ..\..\..\..\..\src\ta_func\ta_CDLUNIQUE3RIVER.c + +..\..\..\..\..\temp\cmd\ta_CDLUPSIDEGAP2CROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDLUPSIDEGAP2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CDLUPSIDEGAP2CROWS.obj ..\..\..\..\..\src\ta_func\ta_CDLUPSIDEGAP2CROWS.c + +..\..\..\..\..\temp\cmd\ta_CDLXSIDEGAP3METHODS.obj: ..\..\..\..\..\src\ta_func\ta_CDLXSIDEGAP3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CDLXSIDEGAP3METHODS.obj ..\..\..\..\..\src\ta_func\ta_CDLXSIDEGAP3METHODS.c + +..\..\..\..\..\temp\cmd\ta_CEIL.obj: ..\..\..\..\..\src\ta_func\ta_CEIL.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CEIL.obj ..\..\..\..\..\src\ta_func\ta_CEIL.c + +..\..\..\..\..\temp\cmd\ta_CMO.obj: ..\..\..\..\..\src\ta_func\ta_CMO.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CMO.obj ..\..\..\..\..\src\ta_func\ta_CMO.c + +..\..\..\..\..\temp\cmd\ta_CORREL.obj: ..\..\..\..\..\src\ta_func\ta_CORREL.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_CORREL.obj ..\..\..\..\..\src\ta_func\ta_CORREL.c + +..\..\..\..\..\temp\cmd\ta_COS.obj: ..\..\..\..\..\src\ta_func\ta_COS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_COS.obj ..\..\..\..\..\src\ta_func\ta_COS.c + +..\..\..\..\..\temp\cmd\ta_COSH.obj: ..\..\..\..\..\src\ta_func\ta_COSH.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_COSH.obj ..\..\..\..\..\src\ta_func\ta_COSH.c + +..\..\..\..\..\temp\cmd\ta_DEMA.obj: ..\..\..\..\..\src\ta_func\ta_DEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_DEMA.obj ..\..\..\..\..\src\ta_func\ta_DEMA.c + +..\..\..\..\..\temp\cmd\ta_DIV.obj: ..\..\..\..\..\src\ta_func\ta_DIV.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_DIV.obj ..\..\..\..\..\src\ta_func\ta_DIV.c + +..\..\..\..\..\temp\cmd\ta_DX.obj: ..\..\..\..\..\src\ta_func\ta_DX.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_DX.obj ..\..\..\..\..\src\ta_func\ta_DX.c + +..\..\..\..\..\temp\cmd\ta_EMA.obj: ..\..\..\..\..\src\ta_func\ta_EMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_EMA.obj ..\..\..\..\..\src\ta_func\ta_EMA.c + +..\..\..\..\..\temp\cmd\ta_EXP.obj: ..\..\..\..\..\src\ta_func\ta_EXP.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_EXP.obj ..\..\..\..\..\src\ta_func\ta_EXP.c + +..\..\..\..\..\temp\cmd\ta_FLOOR.obj: ..\..\..\..\..\src\ta_func\ta_FLOOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_FLOOR.obj ..\..\..\..\..\src\ta_func\ta_FLOOR.c + +..\..\..\..\..\temp\cmd\ta_HT_DCPERIOD.obj: ..\..\..\..\..\src\ta_func\ta_HT_DCPERIOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_HT_DCPERIOD.obj ..\..\..\..\..\src\ta_func\ta_HT_DCPERIOD.c + +..\..\..\..\..\temp\cmd\ta_HT_DCPHASE.obj: ..\..\..\..\..\src\ta_func\ta_HT_DCPHASE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_HT_DCPHASE.obj ..\..\..\..\..\src\ta_func\ta_HT_DCPHASE.c + +..\..\..\..\..\temp\cmd\ta_HT_PHASOR.obj: ..\..\..\..\..\src\ta_func\ta_HT_PHASOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_HT_PHASOR.obj ..\..\..\..\..\src\ta_func\ta_HT_PHASOR.c + +..\..\..\..\..\temp\cmd\ta_HT_SINE.obj: ..\..\..\..\..\src\ta_func\ta_HT_SINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_HT_SINE.obj ..\..\..\..\..\src\ta_func\ta_HT_SINE.c + +..\..\..\..\..\temp\cmd\ta_HT_TRENDLINE.obj: ..\..\..\..\..\src\ta_func\ta_HT_TRENDLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_HT_TRENDLINE.obj ..\..\..\..\..\src\ta_func\ta_HT_TRENDLINE.c + +..\..\..\..\..\temp\cmd\ta_HT_TRENDMODE.obj: ..\..\..\..\..\src\ta_func\ta_HT_TRENDMODE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_HT_TRENDMODE.obj ..\..\..\..\..\src\ta_func\ta_HT_TRENDMODE.c + +..\..\..\..\..\temp\cmd\ta_KAMA.obj: ..\..\..\..\..\src\ta_func\ta_KAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_KAMA.obj ..\..\..\..\..\src\ta_func\ta_KAMA.c + +..\..\..\..\..\temp\cmd\ta_LINEARREG.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_LINEARREG.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG.c + +..\..\..\..\..\temp\cmd\ta_LINEARREG_ANGLE.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG_ANGLE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_LINEARREG_ANGLE.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG_ANGLE.c + +..\..\..\..\..\temp\cmd\ta_LINEARREG_INTERCEPT.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG_INTERCEPT.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_LINEARREG_INTERCEPT.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG_INTERCEPT.c + +..\..\..\..\..\temp\cmd\ta_LINEARREG_SLOPE.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG_SLOPE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_LINEARREG_SLOPE.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG_SLOPE.c + +..\..\..\..\..\temp\cmd\ta_LN.obj: ..\..\..\..\..\src\ta_func\ta_LN.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_LN.obj ..\..\..\..\..\src\ta_func\ta_LN.c + +..\..\..\..\..\temp\cmd\ta_LOG10.obj: ..\..\..\..\..\src\ta_func\ta_LOG10.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_LOG10.obj ..\..\..\..\..\src\ta_func\ta_LOG10.c + +..\..\..\..\..\temp\cmd\ta_MA.obj: ..\..\..\..\..\src\ta_func\ta_MA.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_MA.obj ..\..\..\..\..\src\ta_func\ta_MA.c + +..\..\..\..\..\temp\cmd\ta_MACD.obj: ..\..\..\..\..\src\ta_func\ta_MACD.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_MACD.obj ..\..\..\..\..\src\ta_func\ta_MACD.c + +..\..\..\..\..\temp\cmd\ta_MACDEXT.obj: ..\..\..\..\..\src\ta_func\ta_MACDEXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_MACDEXT.obj ..\..\..\..\..\src\ta_func\ta_MACDEXT.c + +..\..\..\..\..\temp\cmd\ta_MACDFIX.obj: ..\..\..\..\..\src\ta_func\ta_MACDFIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_MACDFIX.obj ..\..\..\..\..\src\ta_func\ta_MACDFIX.c + +..\..\..\..\..\temp\cmd\ta_MAMA.obj: ..\..\..\..\..\src\ta_func\ta_MAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_MAMA.obj ..\..\..\..\..\src\ta_func\ta_MAMA.c + +..\..\..\..\..\temp\cmd\ta_MAVP.obj: ..\..\..\..\..\src\ta_func\ta_MAVP.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_MAVP.obj ..\..\..\..\..\src\ta_func\ta_MAVP.c + +..\..\..\..\..\temp\cmd\ta_MAX.obj: ..\..\..\..\..\src\ta_func\ta_MAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_MAX.obj ..\..\..\..\..\src\ta_func\ta_MAX.c + +..\..\..\..\..\temp\cmd\ta_MAXINDEX.obj: ..\..\..\..\..\src\ta_func\ta_MAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_MAXINDEX.obj ..\..\..\..\..\src\ta_func\ta_MAXINDEX.c + +..\..\..\..\..\temp\cmd\ta_MEDPRICE.obj: ..\..\..\..\..\src\ta_func\ta_MEDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_MEDPRICE.obj ..\..\..\..\..\src\ta_func\ta_MEDPRICE.c + +..\..\..\..\..\temp\cmd\ta_MFI.obj: ..\..\..\..\..\src\ta_func\ta_MFI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_MFI.obj ..\..\..\..\..\src\ta_func\ta_MFI.c + +..\..\..\..\..\temp\cmd\ta_MIDPOINT.obj: ..\..\..\..\..\src\ta_func\ta_MIDPOINT.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_MIDPOINT.obj ..\..\..\..\..\src\ta_func\ta_MIDPOINT.c + +..\..\..\..\..\temp\cmd\ta_MIDPRICE.obj: ..\..\..\..\..\src\ta_func\ta_MIDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_MIDPRICE.obj ..\..\..\..\..\src\ta_func\ta_MIDPRICE.c + +..\..\..\..\..\temp\cmd\ta_MIN.obj: ..\..\..\..\..\src\ta_func\ta_MIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_MIN.obj ..\..\..\..\..\src\ta_func\ta_MIN.c + +..\..\..\..\..\temp\cmd\ta_MININDEX.obj: ..\..\..\..\..\src\ta_func\ta_MININDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_MININDEX.obj ..\..\..\..\..\src\ta_func\ta_MININDEX.c + +..\..\..\..\..\temp\cmd\ta_MINMAX.obj: ..\..\..\..\..\src\ta_func\ta_MINMAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_MINMAX.obj ..\..\..\..\..\src\ta_func\ta_MINMAX.c + +..\..\..\..\..\temp\cmd\ta_MINMAXINDEX.obj: ..\..\..\..\..\src\ta_func\ta_MINMAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_MINMAXINDEX.obj ..\..\..\..\..\src\ta_func\ta_MINMAXINDEX.c + +..\..\..\..\..\temp\cmd\ta_MINUS_DI.obj: ..\..\..\..\..\src\ta_func\ta_MINUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_MINUS_DI.obj ..\..\..\..\..\src\ta_func\ta_MINUS_DI.c + +..\..\..\..\..\temp\cmd\ta_MINUS_DM.obj: ..\..\..\..\..\src\ta_func\ta_MINUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_MINUS_DM.obj ..\..\..\..\..\src\ta_func\ta_MINUS_DM.c + +..\..\..\..\..\temp\cmd\ta_MOM.obj: ..\..\..\..\..\src\ta_func\ta_MOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_MOM.obj ..\..\..\..\..\src\ta_func\ta_MOM.c + +..\..\..\..\..\temp\cmd\ta_MULT.obj: ..\..\..\..\..\src\ta_func\ta_MULT.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_MULT.obj ..\..\..\..\..\src\ta_func\ta_MULT.c + +..\..\..\..\..\temp\cmd\ta_NATR.obj: ..\..\..\..\..\src\ta_func\ta_NATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_NATR.obj ..\..\..\..\..\src\ta_func\ta_NATR.c + +..\..\..\..\..\temp\cmd\ta_OBV.obj: ..\..\..\..\..\src\ta_func\ta_OBV.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_OBV.obj ..\..\..\..\..\src\ta_func\ta_OBV.c + +..\..\..\..\..\temp\cmd\ta_PLUS_DI.obj: ..\..\..\..\..\src\ta_func\ta_PLUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_PLUS_DI.obj ..\..\..\..\..\src\ta_func\ta_PLUS_DI.c + +..\..\..\..\..\temp\cmd\ta_PLUS_DM.obj: ..\..\..\..\..\src\ta_func\ta_PLUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_PLUS_DM.obj ..\..\..\..\..\src\ta_func\ta_PLUS_DM.c + +..\..\..\..\..\temp\cmd\ta_PPO.obj: ..\..\..\..\..\src\ta_func\ta_PPO.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_PPO.obj ..\..\..\..\..\src\ta_func\ta_PPO.c + +..\..\..\..\..\temp\cmd\ta_ROC.obj: ..\..\..\..\..\src\ta_func\ta_ROC.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_ROC.obj ..\..\..\..\..\src\ta_func\ta_ROC.c + +..\..\..\..\..\temp\cmd\ta_ROCP.obj: ..\..\..\..\..\src\ta_func\ta_ROCP.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_ROCP.obj ..\..\..\..\..\src\ta_func\ta_ROCP.c + +..\..\..\..\..\temp\cmd\ta_ROCR.obj: ..\..\..\..\..\src\ta_func\ta_ROCR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_ROCR.obj ..\..\..\..\..\src\ta_func\ta_ROCR.c + +..\..\..\..\..\temp\cmd\ta_ROCR100.obj: ..\..\..\..\..\src\ta_func\ta_ROCR100.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_ROCR100.obj ..\..\..\..\..\src\ta_func\ta_ROCR100.c + +..\..\..\..\..\temp\cmd\ta_RSI.obj: ..\..\..\..\..\src\ta_func\ta_RSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_RSI.obj ..\..\..\..\..\src\ta_func\ta_RSI.c + +..\..\..\..\..\temp\cmd\ta_SAR.obj: ..\..\..\..\..\src\ta_func\ta_SAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_SAR.obj ..\..\..\..\..\src\ta_func\ta_SAR.c + +..\..\..\..\..\temp\cmd\ta_SAREXT.obj: ..\..\..\..\..\src\ta_func\ta_SAREXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_SAREXT.obj ..\..\..\..\..\src\ta_func\ta_SAREXT.c + +..\..\..\..\..\temp\cmd\ta_SIN.obj: ..\..\..\..\..\src\ta_func\ta_SIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_SIN.obj ..\..\..\..\..\src\ta_func\ta_SIN.c + +..\..\..\..\..\temp\cmd\ta_SINH.obj: ..\..\..\..\..\src\ta_func\ta_SINH.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_SINH.obj ..\..\..\..\..\src\ta_func\ta_SINH.c + +..\..\..\..\..\temp\cmd\ta_SMA.obj: ..\..\..\..\..\src\ta_func\ta_SMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_SMA.obj ..\..\..\..\..\src\ta_func\ta_SMA.c + +..\..\..\..\..\temp\cmd\ta_SQRT.obj: ..\..\..\..\..\src\ta_func\ta_SQRT.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_SQRT.obj ..\..\..\..\..\src\ta_func\ta_SQRT.c + +..\..\..\..\..\temp\cmd\ta_STDDEV.obj: ..\..\..\..\..\src\ta_func\ta_STDDEV.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_STDDEV.obj ..\..\..\..\..\src\ta_func\ta_STDDEV.c + +..\..\..\..\..\temp\cmd\ta_STOCH.obj: ..\..\..\..\..\src\ta_func\ta_STOCH.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_STOCH.obj ..\..\..\..\..\src\ta_func\ta_STOCH.c + +..\..\..\..\..\temp\cmd\ta_STOCHF.obj: ..\..\..\..\..\src\ta_func\ta_STOCHF.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_STOCHF.obj ..\..\..\..\..\src\ta_func\ta_STOCHF.c + +..\..\..\..\..\temp\cmd\ta_STOCHRSI.obj: ..\..\..\..\..\src\ta_func\ta_STOCHRSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_STOCHRSI.obj ..\..\..\..\..\src\ta_func\ta_STOCHRSI.c + +..\..\..\..\..\temp\cmd\ta_SUB.obj: ..\..\..\..\..\src\ta_func\ta_SUB.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_SUB.obj ..\..\..\..\..\src\ta_func\ta_SUB.c + +..\..\..\..\..\temp\cmd\ta_SUM.obj: ..\..\..\..\..\src\ta_func\ta_SUM.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_SUM.obj ..\..\..\..\..\src\ta_func\ta_SUM.c + +..\..\..\..\..\temp\cmd\ta_T3.obj: ..\..\..\..\..\src\ta_func\ta_T3.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_T3.obj ..\..\..\..\..\src\ta_func\ta_T3.c + +..\..\..\..\..\temp\cmd\ta_TAN.obj: ..\..\..\..\..\src\ta_func\ta_TAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_TAN.obj ..\..\..\..\..\src\ta_func\ta_TAN.c + +..\..\..\..\..\temp\cmd\ta_TANH.obj: ..\..\..\..\..\src\ta_func\ta_TANH.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_TANH.obj ..\..\..\..\..\src\ta_func\ta_TANH.c + +..\..\..\..\..\temp\cmd\ta_TEMA.obj: ..\..\..\..\..\src\ta_func\ta_TEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_TEMA.obj ..\..\..\..\..\src\ta_func\ta_TEMA.c + +..\..\..\..\..\temp\cmd\ta_TRANGE.obj: ..\..\..\..\..\src\ta_func\ta_TRANGE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_TRANGE.obj ..\..\..\..\..\src\ta_func\ta_TRANGE.c + +..\..\..\..\..\temp\cmd\ta_TRIMA.obj: ..\..\..\..\..\src\ta_func\ta_TRIMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_TRIMA.obj ..\..\..\..\..\src\ta_func\ta_TRIMA.c + +..\..\..\..\..\temp\cmd\ta_TRIX.obj: ..\..\..\..\..\src\ta_func\ta_TRIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_TRIX.obj ..\..\..\..\..\src\ta_func\ta_TRIX.c + +..\..\..\..\..\temp\cmd\ta_TSF.obj: ..\..\..\..\..\src\ta_func\ta_TSF.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_TSF.obj ..\..\..\..\..\src\ta_func\ta_TSF.c + +..\..\..\..\..\temp\cmd\ta_TYPPRICE.obj: ..\..\..\..\..\src\ta_func\ta_TYPPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_TYPPRICE.obj ..\..\..\..\..\src\ta_func\ta_TYPPRICE.c + +..\..\..\..\..\temp\cmd\ta_ULTOSC.obj: ..\..\..\..\..\src\ta_func\ta_ULTOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_ULTOSC.obj ..\..\..\..\..\src\ta_func\ta_ULTOSC.c + +..\..\..\..\..\temp\cmd\ta_VAR.obj: ..\..\..\..\..\src\ta_func\ta_VAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_VAR.obj ..\..\..\..\..\src\ta_func\ta_VAR.c + +..\..\..\..\..\temp\cmd\ta_WCLPRICE.obj: ..\..\..\..\..\src\ta_func\ta_WCLPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_WCLPRICE.obj ..\..\..\..\..\src\ta_func\ta_WCLPRICE.c + +..\..\..\..\..\temp\cmd\ta_WILLR.obj: ..\..\..\..\..\src\ta_func\ta_WILLR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_WILLR.obj ..\..\..\..\..\src\ta_func\ta_WILLR.c + +..\..\..\..\..\temp\cmd\ta_WMA.obj: ..\..\..\..\..\src\ta_func\ta_WMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_WMA.obj ..\..\..\..\..\src\ta_func\ta_WMA.c + diff --git a/make/cmd/win32/msvc/ta_regtest/Makefile b/make/cmd/win32/msvc/ta_regtest/Makefile new file mode 100644 index 000000000..bfbca4922 --- /dev/null +++ b/make/cmd/win32/msvc/ta_regtest/Makefile @@ -0,0 +1,239 @@ +############################################################################# +# Makefile for building ta_regtest +# Generated by tmake; +# Project: ta_regtest/ta_regtest +# Template: app +############################################################################# + +####### Compiler, tools and options + +CC = cl +CXX = cl +CFLAGS = -nologo -W3 -MTd -Zi -DTA_DEBUG -D_DEBUG -DWIN32 -D_MBCS -D_LIB -DQT_THREAD_SUPPORT +CXXFLAGS= -nologo -W3 -MTd -Zi -DTA_DEBUG -D_DEBUG -DWIN32 -D_MBCS -D_LIB -DQT_THREAD_SUPPORT +INCPATH = -I"..\..\..\..\..\src\ta_common" -I"..\..\..\..\..\src\tools\ta_regtest" -I"..\..\..\..\..\src\ta_func" -I"..\..\..\..\..\include" +LINK = link +LFLAGS = /NOLOGO /DEBUG /SUBSYSTEM:console +LIBS = ..\..\..\..\..\lib\ta_libc_cmd.lib +MOC = moc +UIC = uic + +ZIP = zip -r -9 + +####### Files + +HEADERS = +SOURCES = ..\..\..\..\..\src\tools\ta_regtest\ta_regtest.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_candlestick.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_1in_1out.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_1in_2out.c \ + ..\..\..\..\..\src\tools\ta_regtest\test_internals.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_adx.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_bbands.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_ma.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_macd.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_minmax.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_mom.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_ema.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hl.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hlc.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hlcv.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_ohlc.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_po.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_rsi.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_sar.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_stddev.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_stoch.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_trange.c \ + ..\..\..\..\..\src\tools\ta_regtest\test_util.c \ + ..\..\..\..\..\src\tools\ta_regtest\test_data.c \ + ..\..\..\..\..\src\tools\ta_regtest\test_abstract.c +OBJECTS = ..\..\..\..\..\temp\cmd\ta_regtest.obj \ + ..\..\..\..\..\temp\cmd\test_candlestick.obj \ + ..\..\..\..\..\temp\cmd\test_1in_1out.obj \ + ..\..\..\..\..\temp\cmd\test_1in_2out.obj \ + ..\..\..\..\..\temp\cmd\test_internals.obj \ + ..\..\..\..\..\temp\cmd\test_adx.obj \ + ..\..\..\..\..\temp\cmd\test_bbands.obj \ + ..\..\..\..\..\temp\cmd\test_ma.obj \ + ..\..\..\..\..\temp\cmd\test_macd.obj \ + ..\..\..\..\..\temp\cmd\test_minmax.obj \ + ..\..\..\..\..\temp\cmd\test_mom.obj \ + ..\..\..\..\..\temp\cmd\test_per_ema.obj \ + ..\..\..\..\..\temp\cmd\test_per_hl.obj \ + ..\..\..\..\..\temp\cmd\test_per_hlc.obj \ + ..\..\..\..\..\temp\cmd\test_per_hlcv.obj \ + ..\..\..\..\..\temp\cmd\test_per_ohlc.obj \ + ..\..\..\..\..\temp\cmd\test_po.obj \ + ..\..\..\..\..\temp\cmd\test_rsi.obj \ + ..\..\..\..\..\temp\cmd\test_sar.obj \ + ..\..\..\..\..\temp\cmd\test_stddev.obj \ + ..\..\..\..\..\temp\cmd\test_stoch.obj \ + ..\..\..\..\..\temp\cmd\test_trange.obj \ + ..\..\..\..\..\temp\cmd\test_util.obj \ + ..\..\..\..\..\temp\cmd\test_data.obj \ + ..\..\..\..\..\temp\cmd\test_abstract.obj +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ..\..\..\..\..\bin\ta_regtest.exe +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .c + +.cpp.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $< + +.cxx.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $< + +.cc.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $< + +.c.obj: + $(CC) -c $(CFLAGS) $(INCPATH) -Fo$@ $< + +####### Build rules + +all: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + $(LINK) $(LFLAGS) /OUT:$(TARGET) @<< + $(OBJECTS) $(OBJMOC) $(LIBS) +<< + +moc: $(SRCMOC) + +tmake: ../cmd/win32/msvc/ta_regtest/Makefile + +../cmd/win32/msvc/ta_regtest/Makefile: ta_regtest/ta_regtest.pro + tmake ta_regtest/ta_regtest.pro -o ../cmd/win32/msvc/ta_regtest/Makefile + +dist: + $(ZIP) ta_regtest/ta_regtest.zip ta_regtest/ta_regtest.pro $(SOURCES) $(HEADERS) $(DIST) $(INTERFACES) + +clean: + -del ..\..\..\..\..\temp\cmd\ta_regtest.obj + -del ..\..\..\..\..\temp\cmd\test_candlestick.obj + -del ..\..\..\..\..\temp\cmd\test_1in_1out.obj + -del ..\..\..\..\..\temp\cmd\test_1in_2out.obj + -del ..\..\..\..\..\temp\cmd\test_internals.obj + -del ..\..\..\..\..\temp\cmd\test_adx.obj + -del ..\..\..\..\..\temp\cmd\test_bbands.obj + -del ..\..\..\..\..\temp\cmd\test_ma.obj + -del ..\..\..\..\..\temp\cmd\test_macd.obj + -del ..\..\..\..\..\temp\cmd\test_minmax.obj + -del ..\..\..\..\..\temp\cmd\test_mom.obj + -del ..\..\..\..\..\temp\cmd\test_per_ema.obj + -del ..\..\..\..\..\temp\cmd\test_per_hl.obj + -del ..\..\..\..\..\temp\cmd\test_per_hlc.obj + -del ..\..\..\..\..\temp\cmd\test_per_hlcv.obj + -del ..\..\..\..\..\temp\cmd\test_per_ohlc.obj + -del ..\..\..\..\..\temp\cmd\test_po.obj + -del ..\..\..\..\..\temp\cmd\test_rsi.obj + -del ..\..\..\..\..\temp\cmd\test_sar.obj + -del ..\..\..\..\..\temp\cmd\test_stddev.obj + -del ..\..\..\..\..\temp\cmd\test_stoch.obj + -del ..\..\..\..\..\temp\cmd\test_trange.obj + -del ..\..\..\..\..\temp\cmd\test_util.obj + -del ..\..\..\..\..\temp\cmd\test_data.obj + -del ..\..\..\..\..\temp\cmd\test_abstract.obj + -del $(TARGET) + -del ../../../../../bin/*.map + -del ../../../../../bin/*._xe + -del ../../../../../bin/*.tds + -del ../../../../../bin/*.pdb + -del ../../../../../bin/*.pbo + -del ../../../../../bin/*.pbi + -del ../../../../../bin/*.pbt + -del ../../../../../temp/cmd/*.pch + -del ../../../../../temp/cmd/*.idb + -del ../../../../../temp/cmd/ta_regtest/*.pch + -del ../../../../../temp/cmd/ta_regtest/*.idb + -del ../../../../../temp/cmd/ta_regtest/*.obj + -del ta_regtest.pdb + -del vc*.pdb + -del ta_regtest.ilk + +####### Compile + +..\..\..\..\..\temp\cmd\ta_regtest.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_regtest.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\ta_regtest.obj ..\..\..\..\..\src\tools\ta_regtest\ta_regtest.c + +..\..\..\..\..\temp\cmd\test_candlestick.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_candlestick.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\test_candlestick.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_candlestick.c + +..\..\..\..\..\temp\cmd\test_1in_1out.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_1in_1out.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\test_1in_1out.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_1in_1out.c + +..\..\..\..\..\temp\cmd\test_1in_2out.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_1in_2out.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\test_1in_2out.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_1in_2out.c + +..\..\..\..\..\temp\cmd\test_internals.obj: ..\..\..\..\..\src\tools\ta_regtest\test_internals.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\test_internals.obj ..\..\..\..\..\src\tools\ta_regtest\test_internals.c + +..\..\..\..\..\temp\cmd\test_adx.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_adx.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\test_adx.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_adx.c + +..\..\..\..\..\temp\cmd\test_bbands.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_bbands.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\test_bbands.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_bbands.c + +..\..\..\..\..\temp\cmd\test_ma.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_ma.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\test_ma.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_ma.c + +..\..\..\..\..\temp\cmd\test_macd.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_macd.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\test_macd.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_macd.c + +..\..\..\..\..\temp\cmd\test_minmax.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_minmax.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\test_minmax.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_minmax.c + +..\..\..\..\..\temp\cmd\test_mom.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_mom.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\test_mom.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_mom.c + +..\..\..\..\..\temp\cmd\test_per_ema.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_ema.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\test_per_ema.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_ema.c + +..\..\..\..\..\temp\cmd\test_per_hl.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hl.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\test_per_hl.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hl.c + +..\..\..\..\..\temp\cmd\test_per_hlc.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hlc.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\test_per_hlc.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hlc.c + +..\..\..\..\..\temp\cmd\test_per_hlcv.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hlcv.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\test_per_hlcv.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hlcv.c + +..\..\..\..\..\temp\cmd\test_per_ohlc.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_ohlc.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\test_per_ohlc.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_ohlc.c + +..\..\..\..\..\temp\cmd\test_po.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_po.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\test_po.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_po.c + +..\..\..\..\..\temp\cmd\test_rsi.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_rsi.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\test_rsi.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_rsi.c + +..\..\..\..\..\temp\cmd\test_sar.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_sar.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\test_sar.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_sar.c + +..\..\..\..\..\temp\cmd\test_stddev.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_stddev.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\test_stddev.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_stddev.c + +..\..\..\..\..\temp\cmd\test_stoch.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_stoch.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\test_stoch.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_stoch.c + +..\..\..\..\..\temp\cmd\test_trange.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_trange.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\test_trange.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_trange.c + +..\..\..\..\..\temp\cmd\test_util.obj: ..\..\..\..\..\src\tools\ta_regtest\test_util.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\test_util.obj ..\..\..\..\..\src\tools\ta_regtest\test_util.c + +..\..\..\..\..\temp\cmd\test_data.obj: ..\..\..\..\..\src\tools\ta_regtest\test_data.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\test_data.obj ..\..\..\..\..\src\tools\ta_regtest\test_data.c + +..\..\..\..\..\temp\cmd\test_abstract.obj: ..\..\..\..\..\src\tools\ta_regtest\test_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmd\test_abstract.obj ..\..\..\..\..\src\tools\ta_regtest\test_abstract.c + diff --git a/make/cmd/win32/symantec/Makefile b/make/cmd/win32/symantec/Makefile new file mode 100644 index 000000000..7e9fd9364 --- /dev/null +++ b/make/cmd/win32/symantec/Makefile @@ -0,0 +1,97 @@ +############################################################################# +# Makefile for building targets in sub directories. +# Generated by tmake; +# Project: rootmake +# Template: subdirs +############################################################################# + +MAKEFILE= Makefile +TMAKE = tmake + +SUBDIRS = ta_common \ + ta_func \ + ta_abstract \ + ta_libc \ + gen_code \ + ta_regtest + +all: $(SUBDIRS) + +ta_common: FORCE + cd ta_common + $(MAKE) + @cd .. + +ta_func: FORCE + cd ta_func + $(MAKE) + @cd .. + +ta_abstract: FORCE + cd ta_abstract + $(MAKE) + @cd .. + +ta_libc: FORCE + cd ta_libc + $(MAKE) + @cd .. + +gen_code: FORCE + cd gen_code + $(MAKE) + @cd .. + +ta_regtest: FORCE + cd ta_regtest + $(MAKE) + @cd .. + + +tmake: ../cmd/win32/symantec/Makefile + +../cmd/win32/symantec/Makefile: rootmake.pro + tmake rootmake.pro -o ../cmd/win32/symantec/Makefile + +tmake_all: + cd ta_common + $(TMAKE) ta_common.pro -o $(MAKEFILE) + @cd .. + cd ta_func + $(TMAKE) ta_func.pro -o $(MAKEFILE) + @cd .. + cd ta_abstract + $(TMAKE) ta_abstract.pro -o $(MAKEFILE) + @cd .. + cd ta_libc + $(TMAKE) ta_libc.pro -o $(MAKEFILE) + @cd .. + cd gen_code + $(TMAKE) gen_code.pro -o $(MAKEFILE) + @cd .. + cd ta_regtest + $(TMAKE) ta_regtest.pro -o $(MAKEFILE) + @cd .. + + +clean: + cd ta_common + $(MAKE) clean + @cd .. + cd ta_func + $(MAKE) clean + @cd .. + cd ta_abstract + $(MAKE) clean + @cd .. + cd ta_libc + $(MAKE) clean + @cd .. + cd gen_code + $(MAKE) clean + @cd .. + cd ta_regtest + $(MAKE) clean + @cd .. + +FORCE: diff --git a/make/cmd/win32/symantec/gen_code/Makefile b/make/cmd/win32/symantec/gen_code/Makefile new file mode 100644 index 000000000..5d5685174 --- /dev/null +++ b/make/cmd/win32/symantec/gen_code/Makefile @@ -0,0 +1,253 @@ +############################################################################# +# Makefile for building gen_code +# Generated by tmake; +# Project: gen_code/gen_code +# Template: app +############################################################################# + +####### Compiler, tools and options + +CC = sc +CXX = sc +CFLAGS = -mn -w2 -g -DTA_GEN_CODE -DTA_DEBUG -D_DEBUG -DWIN32 +CXXFLAGS= -mn -w2 -g -DTA_GEN_CODE -DTA_DEBUG -D_DEBUG -DWIN32 +INCPATH = -I"..\..\..\..\..\include" -I"..\..\..\..\..\src\ta_common" -I"..\..\..\..\..\src\ta_abstract" -I"..\..\..\..\..\src\ta_abstract\tables" -I"..\..\..\..\..\src\ta_abstract\frames" +LINK = link +LFLAGS = /NOLOGO /NOI /DEBUG /SUBSYSTEM:console +LIBS = ..\..\..\..\..\lib\ta_common_cmd.lib +MOC = moc + +ZIP = zip -r -9 + +####### Files + +HEADERS = +SOURCES = ..\..\..\..\..\src\tools\gen_code\gen_code.c \ + ..\..\..\..\..\src\ta_abstract\ta_abstract.c \ + ..\..\..\..\..\src\ta_abstract\ta_def_ui.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_a.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_b.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_c.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_d.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_e.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_f.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_g.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_h.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_i.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_j.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_k.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_l.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_m.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_n.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_o.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_p.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_q.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_r.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_s.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_t.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_u.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_v.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_w.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_x.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_y.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_z.c +OBJECTS = ..\..\..\..\..\temp\cmd\gen_code\gen_code.obj \ + ..\..\..\..\..\temp\cmd\gen_code\ta_abstract.obj \ + ..\..\..\..\..\temp\cmd\gen_code\ta_def_ui.obj \ + ..\..\..\..\..\temp\cmd\gen_code\table_a.obj \ + ..\..\..\..\..\temp\cmd\gen_code\table_b.obj \ + ..\..\..\..\..\temp\cmd\gen_code\table_c.obj \ + ..\..\..\..\..\temp\cmd\gen_code\table_d.obj \ + ..\..\..\..\..\temp\cmd\gen_code\table_e.obj \ + ..\..\..\..\..\temp\cmd\gen_code\table_f.obj \ + ..\..\..\..\..\temp\cmd\gen_code\table_g.obj \ + ..\..\..\..\..\temp\cmd\gen_code\table_h.obj \ + ..\..\..\..\..\temp\cmd\gen_code\table_i.obj \ + ..\..\..\..\..\temp\cmd\gen_code\table_j.obj \ + ..\..\..\..\..\temp\cmd\gen_code\table_k.obj \ + ..\..\..\..\..\temp\cmd\gen_code\table_l.obj \ + ..\..\..\..\..\temp\cmd\gen_code\table_m.obj \ + ..\..\..\..\..\temp\cmd\gen_code\table_n.obj \ + ..\..\..\..\..\temp\cmd\gen_code\table_o.obj \ + ..\..\..\..\..\temp\cmd\gen_code\table_p.obj \ + ..\..\..\..\..\temp\cmd\gen_code\table_q.obj \ + ..\..\..\..\..\temp\cmd\gen_code\table_r.obj \ + ..\..\..\..\..\temp\cmd\gen_code\table_s.obj \ + ..\..\..\..\..\temp\cmd\gen_code\table_t.obj \ + ..\..\..\..\..\temp\cmd\gen_code\table_u.obj \ + ..\..\..\..\..\temp\cmd\gen_code\table_v.obj \ + ..\..\..\..\..\temp\cmd\gen_code\table_w.obj \ + ..\..\..\..\..\temp\cmd\gen_code\table_x.obj \ + ..\..\..\..\..\temp\cmd\gen_code\table_y.obj \ + ..\..\..\..\..\temp\cmd\gen_code\table_z.obj +SRCMOC = +OBJMOC = +DIST = +TARGET = ..\..\..\..\..\bin\gen_code.exe + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .c + +.cpp.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.cxx.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.cc.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.c.obj: + $(CC) -c $(CFLAGS) $(INCPATH) -o$@ $< + +####### Build rules + +all: $(TARGET) + +$(TARGET): $(OBJECTS) $(OBJMOC) + $(LINK) $(LFLAGS) $(OBJECTS) $(OBJMOC), $(TARGET),, $(LIBS) + +moc: $(SRCMOC) + +tmake: ../cmd/win32/symantec/gen_code/Makefile + +../cmd/win32/symantec/gen_code/Makefile: gen_code/gen_code.pro + tmake gen_code/gen_code.pro -o ../cmd/win32/symantec/gen_code/Makefile + +dist: + $(ZIP) gen_code/gen_code.zip gen_code/gen_code.pro $(SOURCES) $(HEADERS) $(DIST) + +clean: + -del ..\..\..\..\..\temp\cmd\gen_code\gen_code.obj + -del ..\..\..\..\..\temp\cmd\gen_code\ta_abstract.obj + -del ..\..\..\..\..\temp\cmd\gen_code\ta_def_ui.obj + -del ..\..\..\..\..\temp\cmd\gen_code\table_a.obj + -del ..\..\..\..\..\temp\cmd\gen_code\table_b.obj + -del ..\..\..\..\..\temp\cmd\gen_code\table_c.obj + -del ..\..\..\..\..\temp\cmd\gen_code\table_d.obj + -del ..\..\..\..\..\temp\cmd\gen_code\table_e.obj + -del ..\..\..\..\..\temp\cmd\gen_code\table_f.obj + -del ..\..\..\..\..\temp\cmd\gen_code\table_g.obj + -del ..\..\..\..\..\temp\cmd\gen_code\table_h.obj + -del ..\..\..\..\..\temp\cmd\gen_code\table_i.obj + -del ..\..\..\..\..\temp\cmd\gen_code\table_j.obj + -del ..\..\..\..\..\temp\cmd\gen_code\table_k.obj + -del ..\..\..\..\..\temp\cmd\gen_code\table_l.obj + -del ..\..\..\..\..\temp\cmd\gen_code\table_m.obj + -del ..\..\..\..\..\temp\cmd\gen_code\table_n.obj + -del ..\..\..\..\..\temp\cmd\gen_code\table_o.obj + -del ..\..\..\..\..\temp\cmd\gen_code\table_p.obj + -del ..\..\..\..\..\temp\cmd\gen_code\table_q.obj + -del ..\..\..\..\..\temp\cmd\gen_code\table_r.obj + -del ..\..\..\..\..\temp\cmd\gen_code\table_s.obj + -del ..\..\..\..\..\temp\cmd\gen_code\table_t.obj + -del ..\..\..\..\..\temp\cmd\gen_code\table_u.obj + -del ..\..\..\..\..\temp\cmd\gen_code\table_v.obj + -del ..\..\..\..\..\temp\cmd\gen_code\table_w.obj + -del ..\..\..\..\..\temp\cmd\gen_code\table_x.obj + -del ..\..\..\..\..\temp\cmd\gen_code\table_y.obj + -del ..\..\..\..\..\temp\cmd\gen_code\table_z.obj + -del $(TARGET) + -del ../../../../../bin/*.map + -del ../../../../../bin/*._xe + -del ../../../../../bin/*.tds + -del ../../../../../bin/*.pdb + -del ../../../../../bin/*.pbo + -del ../../../../../bin/*.pbi + -del ../../../../../bin/*.pbt + -del ../../../../../temp/cmd/*.pch + -del ../../../../../temp/cmd/*.idb + -del ../../../../../temp/cmd/gen_code/*.pch + -del ../../../../../temp/cmd/gen_code/*.idb + -del ../../../../../temp/cmd/gen_code/*.obj + +####### Compile + +..\..\..\..\..\temp\cmd\gen_code\gen_code.obj: ..\..\..\..\..\src\tools\gen_code\gen_code.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\gen_code\gen_code.obj ..\..\..\..\..\src\tools\gen_code\gen_code.c + +..\..\..\..\..\temp\cmd\gen_code\ta_abstract.obj: ..\..\..\..\..\src\ta_abstract\ta_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\gen_code\ta_abstract.obj ..\..\..\..\..\src\ta_abstract\ta_abstract.c + +..\..\..\..\..\temp\cmd\gen_code\ta_def_ui.obj: ..\..\..\..\..\src\ta_abstract\ta_def_ui.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\gen_code\ta_def_ui.obj ..\..\..\..\..\src\ta_abstract\ta_def_ui.c + +..\..\..\..\..\temp\cmd\gen_code\table_a.obj: ..\..\..\..\..\src\ta_abstract\tables\table_a.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\gen_code\table_a.obj ..\..\..\..\..\src\ta_abstract\tables\table_a.c + +..\..\..\..\..\temp\cmd\gen_code\table_b.obj: ..\..\..\..\..\src\ta_abstract\tables\table_b.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\gen_code\table_b.obj ..\..\..\..\..\src\ta_abstract\tables\table_b.c + +..\..\..\..\..\temp\cmd\gen_code\table_c.obj: ..\..\..\..\..\src\ta_abstract\tables\table_c.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\gen_code\table_c.obj ..\..\..\..\..\src\ta_abstract\tables\table_c.c + +..\..\..\..\..\temp\cmd\gen_code\table_d.obj: ..\..\..\..\..\src\ta_abstract\tables\table_d.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\gen_code\table_d.obj ..\..\..\..\..\src\ta_abstract\tables\table_d.c + +..\..\..\..\..\temp\cmd\gen_code\table_e.obj: ..\..\..\..\..\src\ta_abstract\tables\table_e.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\gen_code\table_e.obj ..\..\..\..\..\src\ta_abstract\tables\table_e.c + +..\..\..\..\..\temp\cmd\gen_code\table_f.obj: ..\..\..\..\..\src\ta_abstract\tables\table_f.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\gen_code\table_f.obj ..\..\..\..\..\src\ta_abstract\tables\table_f.c + +..\..\..\..\..\temp\cmd\gen_code\table_g.obj: ..\..\..\..\..\src\ta_abstract\tables\table_g.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\gen_code\table_g.obj ..\..\..\..\..\src\ta_abstract\tables\table_g.c + +..\..\..\..\..\temp\cmd\gen_code\table_h.obj: ..\..\..\..\..\src\ta_abstract\tables\table_h.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\gen_code\table_h.obj ..\..\..\..\..\src\ta_abstract\tables\table_h.c + +..\..\..\..\..\temp\cmd\gen_code\table_i.obj: ..\..\..\..\..\src\ta_abstract\tables\table_i.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\gen_code\table_i.obj ..\..\..\..\..\src\ta_abstract\tables\table_i.c + +..\..\..\..\..\temp\cmd\gen_code\table_j.obj: ..\..\..\..\..\src\ta_abstract\tables\table_j.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\gen_code\table_j.obj ..\..\..\..\..\src\ta_abstract\tables\table_j.c + +..\..\..\..\..\temp\cmd\gen_code\table_k.obj: ..\..\..\..\..\src\ta_abstract\tables\table_k.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\gen_code\table_k.obj ..\..\..\..\..\src\ta_abstract\tables\table_k.c + +..\..\..\..\..\temp\cmd\gen_code\table_l.obj: ..\..\..\..\..\src\ta_abstract\tables\table_l.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\gen_code\table_l.obj ..\..\..\..\..\src\ta_abstract\tables\table_l.c + +..\..\..\..\..\temp\cmd\gen_code\table_m.obj: ..\..\..\..\..\src\ta_abstract\tables\table_m.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\gen_code\table_m.obj ..\..\..\..\..\src\ta_abstract\tables\table_m.c + +..\..\..\..\..\temp\cmd\gen_code\table_n.obj: ..\..\..\..\..\src\ta_abstract\tables\table_n.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\gen_code\table_n.obj ..\..\..\..\..\src\ta_abstract\tables\table_n.c + +..\..\..\..\..\temp\cmd\gen_code\table_o.obj: ..\..\..\..\..\src\ta_abstract\tables\table_o.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\gen_code\table_o.obj ..\..\..\..\..\src\ta_abstract\tables\table_o.c + +..\..\..\..\..\temp\cmd\gen_code\table_p.obj: ..\..\..\..\..\src\ta_abstract\tables\table_p.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\gen_code\table_p.obj ..\..\..\..\..\src\ta_abstract\tables\table_p.c + +..\..\..\..\..\temp\cmd\gen_code\table_q.obj: ..\..\..\..\..\src\ta_abstract\tables\table_q.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\gen_code\table_q.obj ..\..\..\..\..\src\ta_abstract\tables\table_q.c + +..\..\..\..\..\temp\cmd\gen_code\table_r.obj: ..\..\..\..\..\src\ta_abstract\tables\table_r.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\gen_code\table_r.obj ..\..\..\..\..\src\ta_abstract\tables\table_r.c + +..\..\..\..\..\temp\cmd\gen_code\table_s.obj: ..\..\..\..\..\src\ta_abstract\tables\table_s.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\gen_code\table_s.obj ..\..\..\..\..\src\ta_abstract\tables\table_s.c + +..\..\..\..\..\temp\cmd\gen_code\table_t.obj: ..\..\..\..\..\src\ta_abstract\tables\table_t.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\gen_code\table_t.obj ..\..\..\..\..\src\ta_abstract\tables\table_t.c + +..\..\..\..\..\temp\cmd\gen_code\table_u.obj: ..\..\..\..\..\src\ta_abstract\tables\table_u.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\gen_code\table_u.obj ..\..\..\..\..\src\ta_abstract\tables\table_u.c + +..\..\..\..\..\temp\cmd\gen_code\table_v.obj: ..\..\..\..\..\src\ta_abstract\tables\table_v.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\gen_code\table_v.obj ..\..\..\..\..\src\ta_abstract\tables\table_v.c + +..\..\..\..\..\temp\cmd\gen_code\table_w.obj: ..\..\..\..\..\src\ta_abstract\tables\table_w.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\gen_code\table_w.obj ..\..\..\..\..\src\ta_abstract\tables\table_w.c + +..\..\..\..\..\temp\cmd\gen_code\table_x.obj: ..\..\..\..\..\src\ta_abstract\tables\table_x.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\gen_code\table_x.obj ..\..\..\..\..\src\ta_abstract\tables\table_x.c + +..\..\..\..\..\temp\cmd\gen_code\table_y.obj: ..\..\..\..\..\src\ta_abstract\tables\table_y.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\gen_code\table_y.obj ..\..\..\..\..\src\ta_abstract\tables\table_y.c + +..\..\..\..\..\temp\cmd\gen_code\table_z.obj: ..\..\..\..\..\src\ta_abstract\tables\table_z.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\gen_code\table_z.obj ..\..\..\..\..\src\ta_abstract\tables\table_z.c + diff --git a/make/cmd/win32/symantec/ta_abstract/Makefile b/make/cmd/win32/symantec/ta_abstract/Makefile new file mode 100644 index 000000000..b5f79aff9 --- /dev/null +++ b/make/cmd/win32/symantec/ta_abstract/Makefile @@ -0,0 +1,295 @@ +############################################################################# +# Makefile for building ta_abstract_cmd +# Generated by tmake; +# Project: ta_abstract/ta_abstract +# Template: lib +############################################################################# + +####### Compiler, tools and options + +CC = sc +CXX = sc +CFLAGS = -mn -w2 -g -DTA_DEBUG -D_DEBUG -DWIN32 +CXXFLAGS= -mn -w2 -g -DTA_DEBUG -D_DEBUG -DWIN32 +INCPATH = -I"..\..\..\..\..\src\ta_common" -I"..\..\..\..\..\src\ta_abstract" -I"..\..\..\..\..\src\ta_abstract\tables" -I"..\..\..\..\..\src\ta_abstract\frames" -I"..\..\..\..\..\include" +LIB = lib /C /N /NOI /P:32 +MOC = moc + +ZIP = zip -r -9 + +####### Files + +HEADERS = +SOURCES = ..\..\..\..\..\src\ta_abstract\ta_abstract.c \ + ..\..\..\..\..\src\ta_abstract\ta_def_ui.c \ + ..\..\..\..\..\src\ta_abstract\ta_func_api.c \ + ..\..\..\..\..\src\ta_abstract\ta_group_idx.c \ + ..\..\..\..\..\src\ta_abstract\frames\ta_frame.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_a.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_b.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_c.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_d.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_e.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_f.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_g.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_h.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_i.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_j.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_k.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_l.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_m.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_n.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_o.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_p.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_q.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_r.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_s.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_t.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_u.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_v.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_w.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_x.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_y.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_z.c +OBJECTS = ..\..\..\..\..\temp\cmd\ta_abstract.obj \ + ..\..\..\..\..\temp\cmd\ta_def_ui.obj \ + ..\..\..\..\..\temp\cmd\ta_func_api.obj \ + ..\..\..\..\..\temp\cmd\ta_group_idx.obj \ + ..\..\..\..\..\temp\cmd\ta_frame.obj \ + ..\..\..\..\..\temp\cmd\table_a.obj \ + ..\..\..\..\..\temp\cmd\table_b.obj \ + ..\..\..\..\..\temp\cmd\table_c.obj \ + ..\..\..\..\..\temp\cmd\table_d.obj \ + ..\..\..\..\..\temp\cmd\table_e.obj \ + ..\..\..\..\..\temp\cmd\table_f.obj \ + ..\..\..\..\..\temp\cmd\table_g.obj \ + ..\..\..\..\..\temp\cmd\table_h.obj \ + ..\..\..\..\..\temp\cmd\table_i.obj \ + ..\..\..\..\..\temp\cmd\table_j.obj \ + ..\..\..\..\..\temp\cmd\table_k.obj \ + ..\..\..\..\..\temp\cmd\table_l.obj \ + ..\..\..\..\..\temp\cmd\table_m.obj \ + ..\..\..\..\..\temp\cmd\table_n.obj \ + ..\..\..\..\..\temp\cmd\table_o.obj \ + ..\..\..\..\..\temp\cmd\table_p.obj \ + ..\..\..\..\..\temp\cmd\table_q.obj \ + ..\..\..\..\..\temp\cmd\table_r.obj \ + ..\..\..\..\..\temp\cmd\table_s.obj \ + ..\..\..\..\..\temp\cmd\table_t.obj \ + ..\..\..\..\..\temp\cmd\table_u.obj \ + ..\..\..\..\..\temp\cmd\table_v.obj \ + ..\..\..\..\..\temp\cmd\table_w.obj \ + ..\..\..\..\..\temp\cmd\table_x.obj \ + ..\..\..\..\..\temp\cmd\table_y.obj \ + ..\..\..\..\..\temp\cmd\table_z.obj +SRCMOC = +OBJMOC = +DIST = +TARGET = ..\..\..\..\..\lib\ta_abstract_cmd.lib + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .c + +.cpp.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.cxx.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.cc.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.c.obj: + $(CC) -c $(CFLAGS) $(INCPATH) -o$@ $< + +####### Build rules + +all: $(TARGET) + +$(TARGET): $(OBJECTS) $(OBJMOC) + -del $(TARGET) + $(LIB) $(TARGET) ..\..\..\..\..\temp\cmd\ta_abstract.obj \ ++..\..\..\..\..\temp\cmd\ta_def_ui.obj \ ++..\..\..\..\..\temp\cmd\ta_func_api.obj \ ++..\..\..\..\..\temp\cmd\ta_group_idx.obj \ ++..\..\..\..\..\temp\cmd\ta_frame.obj \ ++..\..\..\..\..\temp\cmd\table_a.obj \ ++..\..\..\..\..\temp\cmd\table_b.obj \ ++..\..\..\..\..\temp\cmd\table_c.obj \ ++..\..\..\..\..\temp\cmd\table_d.obj \ ++..\..\..\..\..\temp\cmd\table_e.obj \ ++..\..\..\..\..\temp\cmd\table_f.obj \ ++..\..\..\..\..\temp\cmd\table_g.obj \ ++..\..\..\..\..\temp\cmd\table_h.obj \ ++..\..\..\..\..\temp\cmd\table_i.obj \ ++..\..\..\..\..\temp\cmd\table_j.obj \ ++..\..\..\..\..\temp\cmd\table_k.obj \ ++..\..\..\..\..\temp\cmd\table_l.obj \ ++..\..\..\..\..\temp\cmd\table_m.obj \ ++..\..\..\..\..\temp\cmd\table_n.obj \ ++..\..\..\..\..\temp\cmd\table_o.obj \ ++..\..\..\..\..\temp\cmd\table_p.obj \ ++..\..\..\..\..\temp\cmd\table_q.obj \ ++..\..\..\..\..\temp\cmd\table_r.obj \ ++..\..\..\..\..\temp\cmd\table_s.obj \ ++..\..\..\..\..\temp\cmd\table_t.obj \ ++..\..\..\..\..\temp\cmd\table_u.obj \ ++..\..\..\..\..\temp\cmd\table_v.obj \ ++..\..\..\..\..\temp\cmd\table_w.obj \ ++..\..\..\..\..\temp\cmd\table_x.obj \ ++..\..\..\..\..\temp\cmd\table_y.obj \ ++..\..\..\..\..\temp\cmd\table_z.obj \ ++,; + +moc: $(SRCMOC) + +tmake: ../cmd/win32/symantec/ta_abstract/Makefile + +../cmd/win32/symantec/ta_abstract/Makefile: ta_abstract/ta_abstract.pro + tmake ta_abstract/ta_abstract.pro -o ../cmd/win32/symantec/ta_abstract/Makefile + +dist: + $(ZIP) ta_abstract/ta_abstract.zip ta_abstract/ta_abstract.pro $(SOURCES) $(HEADERS) $(DIST) + +clean: + -del ..\..\..\..\..\temp\cmd\ta_abstract.obj + -del ..\..\..\..\..\temp\cmd\ta_def_ui.obj + -del ..\..\..\..\..\temp\cmd\ta_func_api.obj + -del ..\..\..\..\..\temp\cmd\ta_group_idx.obj + -del ..\..\..\..\..\temp\cmd\ta_frame.obj + -del ..\..\..\..\..\temp\cmd\table_a.obj + -del ..\..\..\..\..\temp\cmd\table_b.obj + -del ..\..\..\..\..\temp\cmd\table_c.obj + -del ..\..\..\..\..\temp\cmd\table_d.obj + -del ..\..\..\..\..\temp\cmd\table_e.obj + -del ..\..\..\..\..\temp\cmd\table_f.obj + -del ..\..\..\..\..\temp\cmd\table_g.obj + -del ..\..\..\..\..\temp\cmd\table_h.obj + -del ..\..\..\..\..\temp\cmd\table_i.obj + -del ..\..\..\..\..\temp\cmd\table_j.obj + -del ..\..\..\..\..\temp\cmd\table_k.obj + -del ..\..\..\..\..\temp\cmd\table_l.obj + -del ..\..\..\..\..\temp\cmd\table_m.obj + -del ..\..\..\..\..\temp\cmd\table_n.obj + -del ..\..\..\..\..\temp\cmd\table_o.obj + -del ..\..\..\..\..\temp\cmd\table_p.obj + -del ..\..\..\..\..\temp\cmd\table_q.obj + -del ..\..\..\..\..\temp\cmd\table_r.obj + -del ..\..\..\..\..\temp\cmd\table_s.obj + -del ..\..\..\..\..\temp\cmd\table_t.obj + -del ..\..\..\..\..\temp\cmd\table_u.obj + -del ..\..\..\..\..\temp\cmd\table_v.obj + -del ..\..\..\..\..\temp\cmd\table_w.obj + -del ..\..\..\..\..\temp\cmd\table_x.obj + -del ..\..\..\..\..\temp\cmd\table_y.obj + -del ..\..\..\..\..\temp\cmd\table_z.obj + -del $(TARGET) + -del ../../../../../bin/*.map + -del ../../../../../bin/*._xe + -del ../../../../../bin/*.tds + -del ../../../../../bin/*.pdb + -del ../../../../../bin/*.pbo + -del ../../../../../bin/*.pbi + -del ../../../../../bin/*.pbt + -del ../../../../../temp/cmd/*.pch + -del ../../../../../temp/cmd/*.idb + -del ../../../../../temp/cmd/ta_abstract/*.pch + -del ../../../../../temp/cmd/ta_abstract/*.idb + -del ../../../../../temp/cmd/ta_abstract/*.obj + +####### Compile + +..\..\..\..\..\temp\cmd\ta_abstract.obj: ..\..\..\..\..\src\ta_abstract\ta_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_abstract.obj ..\..\..\..\..\src\ta_abstract\ta_abstract.c + +..\..\..\..\..\temp\cmd\ta_def_ui.obj: ..\..\..\..\..\src\ta_abstract\ta_def_ui.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_def_ui.obj ..\..\..\..\..\src\ta_abstract\ta_def_ui.c + +..\..\..\..\..\temp\cmd\ta_func_api.obj: ..\..\..\..\..\src\ta_abstract\ta_func_api.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_func_api.obj ..\..\..\..\..\src\ta_abstract\ta_func_api.c + +..\..\..\..\..\temp\cmd\ta_group_idx.obj: ..\..\..\..\..\src\ta_abstract\ta_group_idx.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_group_idx.obj ..\..\..\..\..\src\ta_abstract\ta_group_idx.c + +..\..\..\..\..\temp\cmd\ta_frame.obj: ..\..\..\..\..\src\ta_abstract\frames\ta_frame.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_frame.obj ..\..\..\..\..\src\ta_abstract\frames\ta_frame.c + +..\..\..\..\..\temp\cmd\table_a.obj: ..\..\..\..\..\src\ta_abstract\tables\table_a.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\table_a.obj ..\..\..\..\..\src\ta_abstract\tables\table_a.c + +..\..\..\..\..\temp\cmd\table_b.obj: ..\..\..\..\..\src\ta_abstract\tables\table_b.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\table_b.obj ..\..\..\..\..\src\ta_abstract\tables\table_b.c + +..\..\..\..\..\temp\cmd\table_c.obj: ..\..\..\..\..\src\ta_abstract\tables\table_c.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\table_c.obj ..\..\..\..\..\src\ta_abstract\tables\table_c.c + +..\..\..\..\..\temp\cmd\table_d.obj: ..\..\..\..\..\src\ta_abstract\tables\table_d.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\table_d.obj ..\..\..\..\..\src\ta_abstract\tables\table_d.c + +..\..\..\..\..\temp\cmd\table_e.obj: ..\..\..\..\..\src\ta_abstract\tables\table_e.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\table_e.obj ..\..\..\..\..\src\ta_abstract\tables\table_e.c + +..\..\..\..\..\temp\cmd\table_f.obj: ..\..\..\..\..\src\ta_abstract\tables\table_f.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\table_f.obj ..\..\..\..\..\src\ta_abstract\tables\table_f.c + +..\..\..\..\..\temp\cmd\table_g.obj: ..\..\..\..\..\src\ta_abstract\tables\table_g.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\table_g.obj ..\..\..\..\..\src\ta_abstract\tables\table_g.c + +..\..\..\..\..\temp\cmd\table_h.obj: ..\..\..\..\..\src\ta_abstract\tables\table_h.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\table_h.obj ..\..\..\..\..\src\ta_abstract\tables\table_h.c + +..\..\..\..\..\temp\cmd\table_i.obj: ..\..\..\..\..\src\ta_abstract\tables\table_i.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\table_i.obj ..\..\..\..\..\src\ta_abstract\tables\table_i.c + +..\..\..\..\..\temp\cmd\table_j.obj: ..\..\..\..\..\src\ta_abstract\tables\table_j.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\table_j.obj ..\..\..\..\..\src\ta_abstract\tables\table_j.c + +..\..\..\..\..\temp\cmd\table_k.obj: ..\..\..\..\..\src\ta_abstract\tables\table_k.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\table_k.obj ..\..\..\..\..\src\ta_abstract\tables\table_k.c + +..\..\..\..\..\temp\cmd\table_l.obj: ..\..\..\..\..\src\ta_abstract\tables\table_l.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\table_l.obj ..\..\..\..\..\src\ta_abstract\tables\table_l.c + +..\..\..\..\..\temp\cmd\table_m.obj: ..\..\..\..\..\src\ta_abstract\tables\table_m.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\table_m.obj ..\..\..\..\..\src\ta_abstract\tables\table_m.c + +..\..\..\..\..\temp\cmd\table_n.obj: ..\..\..\..\..\src\ta_abstract\tables\table_n.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\table_n.obj ..\..\..\..\..\src\ta_abstract\tables\table_n.c + +..\..\..\..\..\temp\cmd\table_o.obj: ..\..\..\..\..\src\ta_abstract\tables\table_o.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\table_o.obj ..\..\..\..\..\src\ta_abstract\tables\table_o.c + +..\..\..\..\..\temp\cmd\table_p.obj: ..\..\..\..\..\src\ta_abstract\tables\table_p.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\table_p.obj ..\..\..\..\..\src\ta_abstract\tables\table_p.c + +..\..\..\..\..\temp\cmd\table_q.obj: ..\..\..\..\..\src\ta_abstract\tables\table_q.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\table_q.obj ..\..\..\..\..\src\ta_abstract\tables\table_q.c + +..\..\..\..\..\temp\cmd\table_r.obj: ..\..\..\..\..\src\ta_abstract\tables\table_r.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\table_r.obj ..\..\..\..\..\src\ta_abstract\tables\table_r.c + +..\..\..\..\..\temp\cmd\table_s.obj: ..\..\..\..\..\src\ta_abstract\tables\table_s.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\table_s.obj ..\..\..\..\..\src\ta_abstract\tables\table_s.c + +..\..\..\..\..\temp\cmd\table_t.obj: ..\..\..\..\..\src\ta_abstract\tables\table_t.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\table_t.obj ..\..\..\..\..\src\ta_abstract\tables\table_t.c + +..\..\..\..\..\temp\cmd\table_u.obj: ..\..\..\..\..\src\ta_abstract\tables\table_u.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\table_u.obj ..\..\..\..\..\src\ta_abstract\tables\table_u.c + +..\..\..\..\..\temp\cmd\table_v.obj: ..\..\..\..\..\src\ta_abstract\tables\table_v.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\table_v.obj ..\..\..\..\..\src\ta_abstract\tables\table_v.c + +..\..\..\..\..\temp\cmd\table_w.obj: ..\..\..\..\..\src\ta_abstract\tables\table_w.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\table_w.obj ..\..\..\..\..\src\ta_abstract\tables\table_w.c + +..\..\..\..\..\temp\cmd\table_x.obj: ..\..\..\..\..\src\ta_abstract\tables\table_x.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\table_x.obj ..\..\..\..\..\src\ta_abstract\tables\table_x.c + +..\..\..\..\..\temp\cmd\table_y.obj: ..\..\..\..\..\src\ta_abstract\tables\table_y.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\table_y.obj ..\..\..\..\..\src\ta_abstract\tables\table_y.c + +..\..\..\..\..\temp\cmd\table_z.obj: ..\..\..\..\..\src\ta_abstract\tables\table_z.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\table_z.obj ..\..\..\..\..\src\ta_abstract\tables\table_z.c + diff --git a/make/cmd/win32/symantec/ta_common/Makefile b/make/cmd/win32/symantec/ta_common/Makefile new file mode 100644 index 000000000..93bdf6f5f --- /dev/null +++ b/make/cmd/win32/symantec/ta_common/Makefile @@ -0,0 +1,99 @@ +############################################################################# +# Makefile for building ta_common_cmd +# Generated by tmake; +# Project: ta_common/ta_common +# Template: lib +############################################################################# + +####### Compiler, tools and options + +CC = sc +CXX = sc +CFLAGS = -mn -w2 -g -DTA_DEBUG -D_DEBUG -DWIN32 +CXXFLAGS= -mn -w2 -g -DTA_DEBUG -D_DEBUG -DWIN32 +INCPATH = -I"..\..\..\..\..\src\ta_common" -I"..\..\..\..\..\include" +LIB = lib /C /N /NOI /P:32 +MOC = moc + +ZIP = zip -r -9 + +####### Files + +HEADERS = +SOURCES = ..\..\..\..\..\src\ta_common\ta_global.c \ + ..\..\..\..\..\src\ta_common\ta_retcode.c \ + ..\..\..\..\..\src\ta_common\ta_version.c +OBJECTS = ..\..\..\..\..\temp\cmd\ta_global.obj \ + ..\..\..\..\..\temp\cmd\ta_retcode.obj \ + ..\..\..\..\..\temp\cmd\ta_version.obj +SRCMOC = +OBJMOC = +DIST = +TARGET = ..\..\..\..\..\lib\ta_common_cmd.lib + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .c + +.cpp.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.cxx.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.cc.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.c.obj: + $(CC) -c $(CFLAGS) $(INCPATH) -o$@ $< + +####### Build rules + +all: $(TARGET) + +$(TARGET): $(OBJECTS) $(OBJMOC) + -del $(TARGET) + $(LIB) $(TARGET) ..\..\..\..\..\temp\cmd\ta_global.obj \ ++..\..\..\..\..\temp\cmd\ta_retcode.obj \ ++..\..\..\..\..\temp\cmd\ta_version.obj \ ++,; + +moc: $(SRCMOC) + +tmake: ../cmd/win32/symantec/ta_common/Makefile + +../cmd/win32/symantec/ta_common/Makefile: ta_common/ta_common.pro + tmake ta_common/ta_common.pro -o ../cmd/win32/symantec/ta_common/Makefile + +dist: + $(ZIP) ta_common/ta_common.zip ta_common/ta_common.pro $(SOURCES) $(HEADERS) $(DIST) + +clean: + -del ..\..\..\..\..\temp\cmd\ta_global.obj + -del ..\..\..\..\..\temp\cmd\ta_retcode.obj + -del ..\..\..\..\..\temp\cmd\ta_version.obj + -del $(TARGET) + -del ../../../../../bin/*.map + -del ../../../../../bin/*._xe + -del ../../../../../bin/*.tds + -del ../../../../../bin/*.pdb + -del ../../../../../bin/*.pbo + -del ../../../../../bin/*.pbi + -del ../../../../../bin/*.pbt + -del ../../../../../temp/cmd/*.pch + -del ../../../../../temp/cmd/*.idb + -del ../../../../../temp/cmd/ta_common_cmd/*.pch + -del ../../../../../temp/cmd/ta_common_cmd/*.idb + -del ../../../../../temp/cmd/ta_common_cmd/*.obj + +####### Compile + +..\..\..\..\..\temp\cmd\ta_global.obj: ..\..\..\..\..\src\ta_common\ta_global.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_global.obj ..\..\..\..\..\src\ta_common\ta_global.c + +..\..\..\..\..\temp\cmd\ta_retcode.obj: ..\..\..\..\..\src\ta_common\ta_retcode.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_retcode.obj ..\..\..\..\..\src\ta_common\ta_retcode.c + +..\..\..\..\..\temp\cmd\ta_version.obj: ..\..\..\..\..\src\ta_common\ta_version.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_version.obj ..\..\..\..\..\src\ta_common\ta_version.c + diff --git a/make/cmd/win32/symantec/ta_func/Makefile b/make/cmd/win32/symantec/ta_func/Makefile new file mode 100644 index 000000000..914fcf13b --- /dev/null +++ b/make/cmd/win32/symantec/ta_func/Makefile @@ -0,0 +1,1191 @@ +############################################################################# +# Makefile for building ta_func_cmd +# Generated by tmake; +# Project: ta_func/ta_func +# Template: lib +############################################################################# + +####### Compiler, tools and options + +CC = sc +CXX = sc +CFLAGS = -mn -w2 -g -DTA_DEBUG -D_DEBUG -DWIN32 +CXXFLAGS= -mn -w2 -g -DTA_DEBUG -D_DEBUG -DWIN32 +INCPATH = -I"..\..\..\..\..\src\ta_common" -I"\n" -I"..\..\..\..\..\include" +LIB = lib /C /N /NOI /P:32 +MOC = moc + +ZIP = zip -r -9 + +####### Files + +HEADERS = +SOURCES = ..\..\..\..\..\src\ta_func\ta_utility.c \ + ..\..\..\..\..\src\ta_func\ta_ACOS.c \ + ..\..\..\..\..\src\ta_func\ta_AD.c \ + ..\..\..\..\..\src\ta_func\ta_ADD.c \ + ..\..\..\..\..\src\ta_func\ta_ADOSC.c \ + ..\..\..\..\..\src\ta_func\ta_ADX.c \ + ..\..\..\..\..\src\ta_func\ta_ADXR.c \ + ..\..\..\..\..\src\ta_func\ta_APO.c \ + ..\..\..\..\..\src\ta_func\ta_AROON.c \ + ..\..\..\..\..\src\ta_func\ta_AROONOSC.c \ + ..\..\..\..\..\src\ta_func\ta_ASIN.c \ + ..\..\..\..\..\src\ta_func\ta_ATAN.c \ + ..\..\..\..\..\src\ta_func\ta_ATR.c \ + ..\..\..\..\..\src\ta_func\ta_AVGPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_BBANDS.c \ + ..\..\..\..\..\src\ta_func\ta_BETA.c \ + ..\..\..\..\..\src\ta_func\ta_BOP.c \ + ..\..\..\..\..\src\ta_func\ta_CCI.c \ + ..\..\..\..\..\src\ta_func\ta_CDL2CROWS.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3BLACKCROWS.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3INSIDE.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3LINESTRIKE.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3OUTSIDE.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3STARSINSOUTH.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3WHITESOLDIERS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLABANDONEDBABY.c \ + ..\..\..\..\..\src\ta_func\ta_CDLADVANCEBLOCK.c \ + ..\..\..\..\..\src\ta_func\ta_CDLBELTHOLD.c \ + ..\..\..\..\..\src\ta_func\ta_CDLBREAKAWAY.c \ + ..\..\..\..\..\src\ta_func\ta_CDLCLOSINGMARUBOZU.c \ + ..\..\..\..\..\src\ta_func\ta_CDLCONCEALBABYSWALL.c \ + ..\..\..\..\..\src\ta_func\ta_CDLCOUNTERATTACK.c \ + ..\..\..\..\..\src\ta_func\ta_CDLDARKCLOUDCOVER.c \ + ..\..\..\..\..\src\ta_func\ta_CDLDOJI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLDOJISTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLDRAGONFLYDOJI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLENGULFING.c \ + ..\..\..\..\..\src\ta_func\ta_CDLEVENINGDOJISTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLEVENINGSTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLGAPSIDESIDEWHITE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLGRAVESTONEDOJI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHAMMER.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHANGINGMAN.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHARAMI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHARAMICROSS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHIGHWAVE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKEMOD.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHOMINGPIGEON.c \ + ..\..\..\..\..\src\ta_func\ta_CDLIDENTICAL3CROWS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLINNECK.c \ + ..\..\..\..\..\src\ta_func\ta_CDLINVERTEDHAMMER.c \ + ..\..\..\..\..\src\ta_func\ta_CDLKICKING.c \ + ..\..\..\..\..\src\ta_func\ta_CDLKICKINGBYLENGTH.c \ + ..\..\..\..\..\src\ta_func\ta_CDLLADDERBOTTOM.c \ + ..\..\..\..\..\src\ta_func\ta_CDLLONGLEGGEDDOJI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLLONGLINE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMARUBOZU.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMATCHINGLOW.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMATHOLD.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMORNINGDOJISTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMORNINGSTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLONNECK.c \ + ..\..\..\..\..\src\ta_func\ta_CDLPIERCING.c \ + ..\..\..\..\..\src\ta_func\ta_CDLRICKSHAWMAN.c \ + ..\..\..\..\..\src\ta_func\ta_CDLRISEFALL3METHODS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSEPARATINGLINES.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSHOOTINGSTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSHORTLINE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSPINNINGTOP.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSTALLEDPATTERN.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSTICKSANDWICH.c \ + ..\..\..\..\..\src\ta_func\ta_CDLTAKURI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLTASUKIGAP.c \ + ..\..\..\..\..\src\ta_func\ta_CDLTHRUSTING.c \ + ..\..\..\..\..\src\ta_func\ta_CDLTRISTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLUNIQUE3RIVER.c \ + ..\..\..\..\..\src\ta_func\ta_CDLUPSIDEGAP2CROWS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLXSIDEGAP3METHODS.c \ + ..\..\..\..\..\src\ta_func\ta_CEIL.c \ + ..\..\..\..\..\src\ta_func\ta_CMO.c \ + ..\..\..\..\..\src\ta_func\ta_CORREL.c \ + ..\..\..\..\..\src\ta_func\ta_COS.c \ + ..\..\..\..\..\src\ta_func\ta_COSH.c \ + ..\..\..\..\..\src\ta_func\ta_DEMA.c \ + ..\..\..\..\..\src\ta_func\ta_DIV.c \ + ..\..\..\..\..\src\ta_func\ta_DX.c \ + ..\..\..\..\..\src\ta_func\ta_EMA.c \ + ..\..\..\..\..\src\ta_func\ta_EXP.c \ + ..\..\..\..\..\src\ta_func\ta_FLOOR.c \ + ..\..\..\..\..\src\ta_func\ta_HT_DCPERIOD.c \ + ..\..\..\..\..\src\ta_func\ta_HT_DCPHASE.c \ + ..\..\..\..\..\src\ta_func\ta_HT_PHASOR.c \ + ..\..\..\..\..\src\ta_func\ta_HT_SINE.c \ + ..\..\..\..\..\src\ta_func\ta_HT_TRENDLINE.c \ + ..\..\..\..\..\src\ta_func\ta_HT_TRENDMODE.c \ + ..\..\..\..\..\src\ta_func\ta_KAMA.c \ + ..\..\..\..\..\src\ta_func\ta_LINEARREG.c \ + ..\..\..\..\..\src\ta_func\ta_LINEARREG_ANGLE.c \ + ..\..\..\..\..\src\ta_func\ta_LINEARREG_INTERCEPT.c \ + ..\..\..\..\..\src\ta_func\ta_LINEARREG_SLOPE.c \ + ..\..\..\..\..\src\ta_func\ta_LN.c \ + ..\..\..\..\..\src\ta_func\ta_LOG10.c \ + ..\..\..\..\..\src\ta_func\ta_MA.c \ + ..\..\..\..\..\src\ta_func\ta_MACD.c \ + ..\..\..\..\..\src\ta_func\ta_MACDEXT.c \ + ..\..\..\..\..\src\ta_func\ta_MACDFIX.c \ + ..\..\..\..\..\src\ta_func\ta_MAMA.c \ + ..\..\..\..\..\src\ta_func\ta_MAVP.c \ + ..\..\..\..\..\src\ta_func\ta_MAX.c \ + ..\..\..\..\..\src\ta_func\ta_MAXINDEX.c \ + ..\..\..\..\..\src\ta_func\ta_MEDPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_MFI.c \ + ..\..\..\..\..\src\ta_func\ta_MIDPOINT.c \ + ..\..\..\..\..\src\ta_func\ta_MIDPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_MIN.c \ + ..\..\..\..\..\src\ta_func\ta_MININDEX.c \ + ..\..\..\..\..\src\ta_func\ta_MINMAX.c \ + ..\..\..\..\..\src\ta_func\ta_MINMAXINDEX.c \ + ..\..\..\..\..\src\ta_func\ta_MINUS_DI.c \ + ..\..\..\..\..\src\ta_func\ta_MINUS_DM.c \ + ..\..\..\..\..\src\ta_func\ta_MOM.c \ + ..\..\..\..\..\src\ta_func\ta_MULT.c \ + ..\..\..\..\..\src\ta_func\ta_NATR.c \ + ..\..\..\..\..\src\ta_func\ta_OBV.c \ + ..\..\..\..\..\src\ta_func\ta_PLUS_DI.c \ + ..\..\..\..\..\src\ta_func\ta_PLUS_DM.c \ + ..\..\..\..\..\src\ta_func\ta_PPO.c \ + ..\..\..\..\..\src\ta_func\ta_ROC.c \ + ..\..\..\..\..\src\ta_func\ta_ROCP.c \ + ..\..\..\..\..\src\ta_func\ta_ROCR.c \ + ..\..\..\..\..\src\ta_func\ta_ROCR100.c \ + ..\..\..\..\..\src\ta_func\ta_RSI.c \ + ..\..\..\..\..\src\ta_func\ta_SAR.c \ + ..\..\..\..\..\src\ta_func\ta_SAREXT.c \ + ..\..\..\..\..\src\ta_func\ta_SIN.c \ + ..\..\..\..\..\src\ta_func\ta_SINH.c \ + ..\..\..\..\..\src\ta_func\ta_SMA.c \ + ..\..\..\..\..\src\ta_func\ta_SQRT.c \ + ..\..\..\..\..\src\ta_func\ta_STDDEV.c \ + ..\..\..\..\..\src\ta_func\ta_STOCH.c \ + ..\..\..\..\..\src\ta_func\ta_STOCHF.c \ + ..\..\..\..\..\src\ta_func\ta_STOCHRSI.c \ + ..\..\..\..\..\src\ta_func\ta_SUB.c \ + ..\..\..\..\..\src\ta_func\ta_SUM.c \ + ..\..\..\..\..\src\ta_func\ta_T3.c \ + ..\..\..\..\..\src\ta_func\ta_TAN.c \ + ..\..\..\..\..\src\ta_func\ta_TANH.c \ + ..\..\..\..\..\src\ta_func\ta_TEMA.c \ + ..\..\..\..\..\src\ta_func\ta_TRANGE.c \ + ..\..\..\..\..\src\ta_func\ta_TRIMA.c \ + ..\..\..\..\..\src\ta_func\ta_TRIX.c \ + ..\..\..\..\..\src\ta_func\ta_TSF.c \ + ..\..\..\..\..\src\ta_func\ta_TYPPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_ULTOSC.c \ + ..\..\..\..\..\src\ta_func\ta_VAR.c \ + ..\..\..\..\..\src\ta_func\ta_WCLPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_WILLR.c \ + ..\..\..\..\..\src\ta_func\ta_WMA.c +OBJECTS = ..\..\..\..\..\temp\cmd\ta_utility.obj \ + ..\..\..\..\..\temp\cmd\ta_ACOS.obj \ + ..\..\..\..\..\temp\cmd\ta_AD.obj \ + ..\..\..\..\..\temp\cmd\ta_ADD.obj \ + ..\..\..\..\..\temp\cmd\ta_ADOSC.obj \ + ..\..\..\..\..\temp\cmd\ta_ADX.obj \ + ..\..\..\..\..\temp\cmd\ta_ADXR.obj \ + ..\..\..\..\..\temp\cmd\ta_APO.obj \ + ..\..\..\..\..\temp\cmd\ta_AROON.obj \ + ..\..\..\..\..\temp\cmd\ta_AROONOSC.obj \ + ..\..\..\..\..\temp\cmd\ta_ASIN.obj \ + ..\..\..\..\..\temp\cmd\ta_ATAN.obj \ + ..\..\..\..\..\temp\cmd\ta_ATR.obj \ + ..\..\..\..\..\temp\cmd\ta_AVGPRICE.obj \ + ..\..\..\..\..\temp\cmd\ta_BBANDS.obj \ + ..\..\..\..\..\temp\cmd\ta_BETA.obj \ + ..\..\..\..\..\temp\cmd\ta_BOP.obj \ + ..\..\..\..\..\temp\cmd\ta_CCI.obj \ + ..\..\..\..\..\temp\cmd\ta_CDL2CROWS.obj \ + ..\..\..\..\..\temp\cmd\ta_CDL3BLACKCROWS.obj \ + ..\..\..\..\..\temp\cmd\ta_CDL3INSIDE.obj \ + ..\..\..\..\..\temp\cmd\ta_CDL3LINESTRIKE.obj \ + ..\..\..\..\..\temp\cmd\ta_CDL3OUTSIDE.obj \ + ..\..\..\..\..\temp\cmd\ta_CDL3STARSINSOUTH.obj \ + ..\..\..\..\..\temp\cmd\ta_CDL3WHITESOLDIERS.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLABANDONEDBABY.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLADVANCEBLOCK.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLBELTHOLD.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLBREAKAWAY.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLCLOSINGMARUBOZU.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLCONCEALBABYSWALL.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLCOUNTERATTACK.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLDARKCLOUDCOVER.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLDOJI.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLDOJISTAR.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLDRAGONFLYDOJI.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLENGULFING.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLEVENINGDOJISTAR.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLEVENINGSTAR.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLGAPSIDESIDEWHITE.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLGRAVESTONEDOJI.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLHAMMER.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLHANGINGMAN.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLHARAMI.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLHARAMICROSS.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLHIGHWAVE.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLHIKKAKE.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLHIKKAKEMOD.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLHOMINGPIGEON.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLIDENTICAL3CROWS.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLINNECK.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLINVERTEDHAMMER.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLKICKING.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLKICKINGBYLENGTH.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLLADDERBOTTOM.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLLONGLEGGEDDOJI.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLLONGLINE.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLMARUBOZU.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLMATCHINGLOW.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLMATHOLD.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLMORNINGDOJISTAR.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLMORNINGSTAR.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLONNECK.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLPIERCING.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLRICKSHAWMAN.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLRISEFALL3METHODS.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLSEPARATINGLINES.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLSHOOTINGSTAR.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLSHORTLINE.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLSPINNINGTOP.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLSTALLEDPATTERN.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLSTICKSANDWICH.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLTAKURI.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLTASUKIGAP.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLTHRUSTING.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLTRISTAR.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLUNIQUE3RIVER.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLUPSIDEGAP2CROWS.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLXSIDEGAP3METHODS.obj \ + ..\..\..\..\..\temp\cmd\ta_CEIL.obj \ + ..\..\..\..\..\temp\cmd\ta_CMO.obj \ + ..\..\..\..\..\temp\cmd\ta_CORREL.obj \ + ..\..\..\..\..\temp\cmd\ta_COS.obj \ + ..\..\..\..\..\temp\cmd\ta_COSH.obj \ + ..\..\..\..\..\temp\cmd\ta_DEMA.obj \ + ..\..\..\..\..\temp\cmd\ta_DIV.obj \ + ..\..\..\..\..\temp\cmd\ta_DX.obj \ + ..\..\..\..\..\temp\cmd\ta_EMA.obj \ + ..\..\..\..\..\temp\cmd\ta_EXP.obj \ + ..\..\..\..\..\temp\cmd\ta_FLOOR.obj \ + ..\..\..\..\..\temp\cmd\ta_HT_DCPERIOD.obj \ + ..\..\..\..\..\temp\cmd\ta_HT_DCPHASE.obj \ + ..\..\..\..\..\temp\cmd\ta_HT_PHASOR.obj \ + ..\..\..\..\..\temp\cmd\ta_HT_SINE.obj \ + ..\..\..\..\..\temp\cmd\ta_HT_TRENDLINE.obj \ + ..\..\..\..\..\temp\cmd\ta_HT_TRENDMODE.obj \ + ..\..\..\..\..\temp\cmd\ta_KAMA.obj \ + ..\..\..\..\..\temp\cmd\ta_LINEARREG.obj \ + ..\..\..\..\..\temp\cmd\ta_LINEARREG_ANGLE.obj \ + ..\..\..\..\..\temp\cmd\ta_LINEARREG_INTERCEPT.obj \ + ..\..\..\..\..\temp\cmd\ta_LINEARREG_SLOPE.obj \ + ..\..\..\..\..\temp\cmd\ta_LN.obj \ + ..\..\..\..\..\temp\cmd\ta_LOG10.obj \ + ..\..\..\..\..\temp\cmd\ta_MA.obj \ + ..\..\..\..\..\temp\cmd\ta_MACD.obj \ + ..\..\..\..\..\temp\cmd\ta_MACDEXT.obj \ + ..\..\..\..\..\temp\cmd\ta_MACDFIX.obj \ + ..\..\..\..\..\temp\cmd\ta_MAMA.obj \ + ..\..\..\..\..\temp\cmd\ta_MAVP.obj \ + ..\..\..\..\..\temp\cmd\ta_MAX.obj \ + ..\..\..\..\..\temp\cmd\ta_MAXINDEX.obj \ + ..\..\..\..\..\temp\cmd\ta_MEDPRICE.obj \ + ..\..\..\..\..\temp\cmd\ta_MFI.obj \ + ..\..\..\..\..\temp\cmd\ta_MIDPOINT.obj \ + ..\..\..\..\..\temp\cmd\ta_MIDPRICE.obj \ + ..\..\..\..\..\temp\cmd\ta_MIN.obj \ + ..\..\..\..\..\temp\cmd\ta_MININDEX.obj \ + ..\..\..\..\..\temp\cmd\ta_MINMAX.obj \ + ..\..\..\..\..\temp\cmd\ta_MINMAXINDEX.obj \ + ..\..\..\..\..\temp\cmd\ta_MINUS_DI.obj \ + ..\..\..\..\..\temp\cmd\ta_MINUS_DM.obj \ + ..\..\..\..\..\temp\cmd\ta_MOM.obj \ + ..\..\..\..\..\temp\cmd\ta_MULT.obj \ + ..\..\..\..\..\temp\cmd\ta_NATR.obj \ + ..\..\..\..\..\temp\cmd\ta_OBV.obj \ + ..\..\..\..\..\temp\cmd\ta_PLUS_DI.obj \ + ..\..\..\..\..\temp\cmd\ta_PLUS_DM.obj \ + ..\..\..\..\..\temp\cmd\ta_PPO.obj \ + ..\..\..\..\..\temp\cmd\ta_ROC.obj \ + ..\..\..\..\..\temp\cmd\ta_ROCP.obj \ + ..\..\..\..\..\temp\cmd\ta_ROCR.obj \ + ..\..\..\..\..\temp\cmd\ta_ROCR100.obj \ + ..\..\..\..\..\temp\cmd\ta_RSI.obj \ + ..\..\..\..\..\temp\cmd\ta_SAR.obj \ + ..\..\..\..\..\temp\cmd\ta_SAREXT.obj \ + ..\..\..\..\..\temp\cmd\ta_SIN.obj \ + ..\..\..\..\..\temp\cmd\ta_SINH.obj \ + ..\..\..\..\..\temp\cmd\ta_SMA.obj \ + ..\..\..\..\..\temp\cmd\ta_SQRT.obj \ + ..\..\..\..\..\temp\cmd\ta_STDDEV.obj \ + ..\..\..\..\..\temp\cmd\ta_STOCH.obj \ + ..\..\..\..\..\temp\cmd\ta_STOCHF.obj \ + ..\..\..\..\..\temp\cmd\ta_STOCHRSI.obj \ + ..\..\..\..\..\temp\cmd\ta_SUB.obj \ + ..\..\..\..\..\temp\cmd\ta_SUM.obj \ + ..\..\..\..\..\temp\cmd\ta_T3.obj \ + ..\..\..\..\..\temp\cmd\ta_TAN.obj \ + ..\..\..\..\..\temp\cmd\ta_TANH.obj \ + ..\..\..\..\..\temp\cmd\ta_TEMA.obj \ + ..\..\..\..\..\temp\cmd\ta_TRANGE.obj \ + ..\..\..\..\..\temp\cmd\ta_TRIMA.obj \ + ..\..\..\..\..\temp\cmd\ta_TRIX.obj \ + ..\..\..\..\..\temp\cmd\ta_TSF.obj \ + ..\..\..\..\..\temp\cmd\ta_TYPPRICE.obj \ + ..\..\..\..\..\temp\cmd\ta_ULTOSC.obj \ + ..\..\..\..\..\temp\cmd\ta_VAR.obj \ + ..\..\..\..\..\temp\cmd\ta_WCLPRICE.obj \ + ..\..\..\..\..\temp\cmd\ta_WILLR.obj \ + ..\..\..\..\..\temp\cmd\ta_WMA.obj +SRCMOC = +OBJMOC = +DIST = +TARGET = ..\..\..\..\..\lib\ta_func_cmd.lib + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .c + +.cpp.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.cxx.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.cc.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.c.obj: + $(CC) -c $(CFLAGS) $(INCPATH) -o$@ $< + +####### Build rules + +all: $(TARGET) + +$(TARGET): $(OBJECTS) $(OBJMOC) + -del $(TARGET) + $(LIB) $(TARGET) ..\..\..\..\..\temp\cmd\ta_utility.obj \ ++..\..\..\..\..\temp\cmd\ta_ACOS.obj \ ++..\..\..\..\..\temp\cmd\ta_AD.obj \ ++..\..\..\..\..\temp\cmd\ta_ADD.obj \ ++..\..\..\..\..\temp\cmd\ta_ADOSC.obj \ ++..\..\..\..\..\temp\cmd\ta_ADX.obj \ ++..\..\..\..\..\temp\cmd\ta_ADXR.obj \ ++..\..\..\..\..\temp\cmd\ta_APO.obj \ ++..\..\..\..\..\temp\cmd\ta_AROON.obj \ ++..\..\..\..\..\temp\cmd\ta_AROONOSC.obj \ ++..\..\..\..\..\temp\cmd\ta_ASIN.obj \ ++..\..\..\..\..\temp\cmd\ta_ATAN.obj \ ++..\..\..\..\..\temp\cmd\ta_ATR.obj \ ++..\..\..\..\..\temp\cmd\ta_AVGPRICE.obj \ ++..\..\..\..\..\temp\cmd\ta_BBANDS.obj \ ++..\..\..\..\..\temp\cmd\ta_BETA.obj \ ++..\..\..\..\..\temp\cmd\ta_BOP.obj \ ++..\..\..\..\..\temp\cmd\ta_CCI.obj \ ++..\..\..\..\..\temp\cmd\ta_CDL2CROWS.obj \ ++..\..\..\..\..\temp\cmd\ta_CDL3BLACKCROWS.obj \ ++..\..\..\..\..\temp\cmd\ta_CDL3INSIDE.obj \ ++..\..\..\..\..\temp\cmd\ta_CDL3LINESTRIKE.obj \ ++..\..\..\..\..\temp\cmd\ta_CDL3OUTSIDE.obj \ ++..\..\..\..\..\temp\cmd\ta_CDL3STARSINSOUTH.obj \ ++..\..\..\..\..\temp\cmd\ta_CDL3WHITESOLDIERS.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLABANDONEDBABY.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLADVANCEBLOCK.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLBELTHOLD.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLBREAKAWAY.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLCLOSINGMARUBOZU.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLCONCEALBABYSWALL.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLCOUNTERATTACK.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLDARKCLOUDCOVER.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLDOJI.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLDOJISTAR.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLDRAGONFLYDOJI.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLENGULFING.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLEVENINGDOJISTAR.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLEVENINGSTAR.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLGAPSIDESIDEWHITE.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLGRAVESTONEDOJI.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLHAMMER.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLHANGINGMAN.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLHARAMI.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLHARAMICROSS.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLHIGHWAVE.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLHIKKAKE.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLHIKKAKEMOD.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLHOMINGPIGEON.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLIDENTICAL3CROWS.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLINNECK.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLINVERTEDHAMMER.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLKICKING.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLKICKINGBYLENGTH.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLLADDERBOTTOM.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLLONGLEGGEDDOJI.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLLONGLINE.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLMARUBOZU.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLMATCHINGLOW.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLMATHOLD.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLMORNINGDOJISTAR.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLMORNINGSTAR.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLONNECK.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLPIERCING.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLRICKSHAWMAN.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLRISEFALL3METHODS.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLSEPARATINGLINES.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLSHOOTINGSTAR.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLSHORTLINE.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLSPINNINGTOP.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLSTALLEDPATTERN.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLSTICKSANDWICH.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLTAKURI.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLTASUKIGAP.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLTHRUSTING.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLTRISTAR.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLUNIQUE3RIVER.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLUPSIDEGAP2CROWS.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLXSIDEGAP3METHODS.obj \ ++..\..\..\..\..\temp\cmd\ta_CEIL.obj \ ++..\..\..\..\..\temp\cmd\ta_CMO.obj \ ++..\..\..\..\..\temp\cmd\ta_CORREL.obj \ ++..\..\..\..\..\temp\cmd\ta_COS.obj \ ++..\..\..\..\..\temp\cmd\ta_COSH.obj \ ++..\..\..\..\..\temp\cmd\ta_DEMA.obj \ ++..\..\..\..\..\temp\cmd\ta_DIV.obj \ ++..\..\..\..\..\temp\cmd\ta_DX.obj \ ++..\..\..\..\..\temp\cmd\ta_EMA.obj \ ++..\..\..\..\..\temp\cmd\ta_EXP.obj \ ++..\..\..\..\..\temp\cmd\ta_FLOOR.obj \ ++..\..\..\..\..\temp\cmd\ta_HT_DCPERIOD.obj \ ++..\..\..\..\..\temp\cmd\ta_HT_DCPHASE.obj \ ++..\..\..\..\..\temp\cmd\ta_HT_PHASOR.obj \ ++..\..\..\..\..\temp\cmd\ta_HT_SINE.obj \ ++..\..\..\..\..\temp\cmd\ta_HT_TRENDLINE.obj \ ++..\..\..\..\..\temp\cmd\ta_HT_TRENDMODE.obj \ ++..\..\..\..\..\temp\cmd\ta_KAMA.obj \ ++..\..\..\..\..\temp\cmd\ta_LINEARREG.obj \ ++..\..\..\..\..\temp\cmd\ta_LINEARREG_ANGLE.obj \ ++..\..\..\..\..\temp\cmd\ta_LINEARREG_INTERCEPT.obj \ ++..\..\..\..\..\temp\cmd\ta_LINEARREG_SLOPE.obj \ ++..\..\..\..\..\temp\cmd\ta_LN.obj \ ++..\..\..\..\..\temp\cmd\ta_LOG10.obj \ ++..\..\..\..\..\temp\cmd\ta_MA.obj \ ++..\..\..\..\..\temp\cmd\ta_MACD.obj \ ++..\..\..\..\..\temp\cmd\ta_MACDEXT.obj \ ++..\..\..\..\..\temp\cmd\ta_MACDFIX.obj \ ++..\..\..\..\..\temp\cmd\ta_MAMA.obj \ ++..\..\..\..\..\temp\cmd\ta_MAVP.obj \ ++..\..\..\..\..\temp\cmd\ta_MAX.obj \ ++..\..\..\..\..\temp\cmd\ta_MAXINDEX.obj \ ++..\..\..\..\..\temp\cmd\ta_MEDPRICE.obj \ ++..\..\..\..\..\temp\cmd\ta_MFI.obj \ ++..\..\..\..\..\temp\cmd\ta_MIDPOINT.obj \ ++..\..\..\..\..\temp\cmd\ta_MIDPRICE.obj \ ++..\..\..\..\..\temp\cmd\ta_MIN.obj \ ++..\..\..\..\..\temp\cmd\ta_MININDEX.obj \ ++..\..\..\..\..\temp\cmd\ta_MINMAX.obj \ ++..\..\..\..\..\temp\cmd\ta_MINMAXINDEX.obj \ ++..\..\..\..\..\temp\cmd\ta_MINUS_DI.obj \ ++..\..\..\..\..\temp\cmd\ta_MINUS_DM.obj \ ++..\..\..\..\..\temp\cmd\ta_MOM.obj \ ++..\..\..\..\..\temp\cmd\ta_MULT.obj \ ++..\..\..\..\..\temp\cmd\ta_NATR.obj \ ++..\..\..\..\..\temp\cmd\ta_OBV.obj \ ++..\..\..\..\..\temp\cmd\ta_PLUS_DI.obj \ ++..\..\..\..\..\temp\cmd\ta_PLUS_DM.obj \ ++..\..\..\..\..\temp\cmd\ta_PPO.obj \ ++..\..\..\..\..\temp\cmd\ta_ROC.obj \ ++..\..\..\..\..\temp\cmd\ta_ROCP.obj \ ++..\..\..\..\..\temp\cmd\ta_ROCR.obj \ ++..\..\..\..\..\temp\cmd\ta_ROCR100.obj \ ++..\..\..\..\..\temp\cmd\ta_RSI.obj \ ++..\..\..\..\..\temp\cmd\ta_SAR.obj \ ++..\..\..\..\..\temp\cmd\ta_SAREXT.obj \ ++..\..\..\..\..\temp\cmd\ta_SIN.obj \ ++..\..\..\..\..\temp\cmd\ta_SINH.obj \ ++..\..\..\..\..\temp\cmd\ta_SMA.obj \ ++..\..\..\..\..\temp\cmd\ta_SQRT.obj \ ++..\..\..\..\..\temp\cmd\ta_STDDEV.obj \ ++..\..\..\..\..\temp\cmd\ta_STOCH.obj \ ++..\..\..\..\..\temp\cmd\ta_STOCHF.obj \ ++..\..\..\..\..\temp\cmd\ta_STOCHRSI.obj \ ++..\..\..\..\..\temp\cmd\ta_SUB.obj \ ++..\..\..\..\..\temp\cmd\ta_SUM.obj \ ++..\..\..\..\..\temp\cmd\ta_T3.obj \ ++..\..\..\..\..\temp\cmd\ta_TAN.obj \ ++..\..\..\..\..\temp\cmd\ta_TANH.obj \ ++..\..\..\..\..\temp\cmd\ta_TEMA.obj \ ++..\..\..\..\..\temp\cmd\ta_TRANGE.obj \ ++..\..\..\..\..\temp\cmd\ta_TRIMA.obj \ ++..\..\..\..\..\temp\cmd\ta_TRIX.obj \ ++..\..\..\..\..\temp\cmd\ta_TSF.obj \ ++..\..\..\..\..\temp\cmd\ta_TYPPRICE.obj \ ++..\..\..\..\..\temp\cmd\ta_ULTOSC.obj \ ++..\..\..\..\..\temp\cmd\ta_VAR.obj \ ++..\..\..\..\..\temp\cmd\ta_WCLPRICE.obj \ ++..\..\..\..\..\temp\cmd\ta_WILLR.obj \ ++..\..\..\..\..\temp\cmd\ta_WMA.obj \ ++,; + +moc: $(SRCMOC) + +tmake: ../cmd/win32/symantec/ta_func/Makefile + +../cmd/win32/symantec/ta_func/Makefile: ta_func/ta_func.pro + tmake ta_func/ta_func.pro -o ../cmd/win32/symantec/ta_func/Makefile + +dist: + $(ZIP) ta_func/ta_func.zip ta_func/ta_func.pro $(SOURCES) $(HEADERS) $(DIST) + +clean: + -del ..\..\..\..\..\temp\cmd\ta_utility.obj + -del ..\..\..\..\..\temp\cmd\ta_ACOS.obj + -del ..\..\..\..\..\temp\cmd\ta_AD.obj + -del ..\..\..\..\..\temp\cmd\ta_ADD.obj + -del ..\..\..\..\..\temp\cmd\ta_ADOSC.obj + -del ..\..\..\..\..\temp\cmd\ta_ADX.obj + -del ..\..\..\..\..\temp\cmd\ta_ADXR.obj + -del ..\..\..\..\..\temp\cmd\ta_APO.obj + -del ..\..\..\..\..\temp\cmd\ta_AROON.obj + -del ..\..\..\..\..\temp\cmd\ta_AROONOSC.obj + -del ..\..\..\..\..\temp\cmd\ta_ASIN.obj + -del ..\..\..\..\..\temp\cmd\ta_ATAN.obj + -del ..\..\..\..\..\temp\cmd\ta_ATR.obj + -del ..\..\..\..\..\temp\cmd\ta_AVGPRICE.obj + -del ..\..\..\..\..\temp\cmd\ta_BBANDS.obj + -del ..\..\..\..\..\temp\cmd\ta_BETA.obj + -del ..\..\..\..\..\temp\cmd\ta_BOP.obj + -del ..\..\..\..\..\temp\cmd\ta_CCI.obj + -del ..\..\..\..\..\temp\cmd\ta_CDL2CROWS.obj + -del ..\..\..\..\..\temp\cmd\ta_CDL3BLACKCROWS.obj + -del ..\..\..\..\..\temp\cmd\ta_CDL3INSIDE.obj + -del ..\..\..\..\..\temp\cmd\ta_CDL3LINESTRIKE.obj + -del ..\..\..\..\..\temp\cmd\ta_CDL3OUTSIDE.obj + -del ..\..\..\..\..\temp\cmd\ta_CDL3STARSINSOUTH.obj + -del ..\..\..\..\..\temp\cmd\ta_CDL3WHITESOLDIERS.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLABANDONEDBABY.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLADVANCEBLOCK.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLBELTHOLD.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLBREAKAWAY.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLCLOSINGMARUBOZU.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLCONCEALBABYSWALL.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLCOUNTERATTACK.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLDARKCLOUDCOVER.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLDOJI.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLDOJISTAR.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLDRAGONFLYDOJI.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLENGULFING.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLEVENINGDOJISTAR.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLEVENINGSTAR.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLGAPSIDESIDEWHITE.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLGRAVESTONEDOJI.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLHAMMER.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLHANGINGMAN.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLHARAMI.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLHARAMICROSS.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLHIGHWAVE.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLHIKKAKE.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLHIKKAKEMOD.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLHOMINGPIGEON.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLIDENTICAL3CROWS.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLINNECK.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLINVERTEDHAMMER.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLKICKING.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLKICKINGBYLENGTH.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLLADDERBOTTOM.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLLONGLEGGEDDOJI.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLLONGLINE.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLMARUBOZU.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLMATCHINGLOW.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLMATHOLD.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLMORNINGDOJISTAR.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLMORNINGSTAR.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLONNECK.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLPIERCING.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLRICKSHAWMAN.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLRISEFALL3METHODS.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLSEPARATINGLINES.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLSHOOTINGSTAR.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLSHORTLINE.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLSPINNINGTOP.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLSTALLEDPATTERN.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLSTICKSANDWICH.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLTAKURI.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLTASUKIGAP.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLTHRUSTING.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLTRISTAR.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLUNIQUE3RIVER.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLUPSIDEGAP2CROWS.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLXSIDEGAP3METHODS.obj + -del ..\..\..\..\..\temp\cmd\ta_CEIL.obj + -del ..\..\..\..\..\temp\cmd\ta_CMO.obj + -del ..\..\..\..\..\temp\cmd\ta_CORREL.obj + -del ..\..\..\..\..\temp\cmd\ta_COS.obj + -del ..\..\..\..\..\temp\cmd\ta_COSH.obj + -del ..\..\..\..\..\temp\cmd\ta_DEMA.obj + -del ..\..\..\..\..\temp\cmd\ta_DIV.obj + -del ..\..\..\..\..\temp\cmd\ta_DX.obj + -del ..\..\..\..\..\temp\cmd\ta_EMA.obj + -del ..\..\..\..\..\temp\cmd\ta_EXP.obj + -del ..\..\..\..\..\temp\cmd\ta_FLOOR.obj + -del ..\..\..\..\..\temp\cmd\ta_HT_DCPERIOD.obj + -del ..\..\..\..\..\temp\cmd\ta_HT_DCPHASE.obj + -del ..\..\..\..\..\temp\cmd\ta_HT_PHASOR.obj + -del ..\..\..\..\..\temp\cmd\ta_HT_SINE.obj + -del ..\..\..\..\..\temp\cmd\ta_HT_TRENDLINE.obj + -del ..\..\..\..\..\temp\cmd\ta_HT_TRENDMODE.obj + -del ..\..\..\..\..\temp\cmd\ta_KAMA.obj + -del ..\..\..\..\..\temp\cmd\ta_LINEARREG.obj + -del ..\..\..\..\..\temp\cmd\ta_LINEARREG_ANGLE.obj + -del ..\..\..\..\..\temp\cmd\ta_LINEARREG_INTERCEPT.obj + -del ..\..\..\..\..\temp\cmd\ta_LINEARREG_SLOPE.obj + -del ..\..\..\..\..\temp\cmd\ta_LN.obj + -del ..\..\..\..\..\temp\cmd\ta_LOG10.obj + -del ..\..\..\..\..\temp\cmd\ta_MA.obj + -del ..\..\..\..\..\temp\cmd\ta_MACD.obj + -del ..\..\..\..\..\temp\cmd\ta_MACDEXT.obj + -del ..\..\..\..\..\temp\cmd\ta_MACDFIX.obj + -del ..\..\..\..\..\temp\cmd\ta_MAMA.obj + -del ..\..\..\..\..\temp\cmd\ta_MAVP.obj + -del ..\..\..\..\..\temp\cmd\ta_MAX.obj + -del ..\..\..\..\..\temp\cmd\ta_MAXINDEX.obj + -del ..\..\..\..\..\temp\cmd\ta_MEDPRICE.obj + -del ..\..\..\..\..\temp\cmd\ta_MFI.obj + -del ..\..\..\..\..\temp\cmd\ta_MIDPOINT.obj + -del ..\..\..\..\..\temp\cmd\ta_MIDPRICE.obj + -del ..\..\..\..\..\temp\cmd\ta_MIN.obj + -del ..\..\..\..\..\temp\cmd\ta_MININDEX.obj + -del ..\..\..\..\..\temp\cmd\ta_MINMAX.obj + -del ..\..\..\..\..\temp\cmd\ta_MINMAXINDEX.obj + -del ..\..\..\..\..\temp\cmd\ta_MINUS_DI.obj + -del ..\..\..\..\..\temp\cmd\ta_MINUS_DM.obj + -del ..\..\..\..\..\temp\cmd\ta_MOM.obj + -del ..\..\..\..\..\temp\cmd\ta_MULT.obj + -del ..\..\..\..\..\temp\cmd\ta_NATR.obj + -del ..\..\..\..\..\temp\cmd\ta_OBV.obj + -del ..\..\..\..\..\temp\cmd\ta_PLUS_DI.obj + -del ..\..\..\..\..\temp\cmd\ta_PLUS_DM.obj + -del ..\..\..\..\..\temp\cmd\ta_PPO.obj + -del ..\..\..\..\..\temp\cmd\ta_ROC.obj + -del ..\..\..\..\..\temp\cmd\ta_ROCP.obj + -del ..\..\..\..\..\temp\cmd\ta_ROCR.obj + -del ..\..\..\..\..\temp\cmd\ta_ROCR100.obj + -del ..\..\..\..\..\temp\cmd\ta_RSI.obj + -del ..\..\..\..\..\temp\cmd\ta_SAR.obj + -del ..\..\..\..\..\temp\cmd\ta_SAREXT.obj + -del ..\..\..\..\..\temp\cmd\ta_SIN.obj + -del ..\..\..\..\..\temp\cmd\ta_SINH.obj + -del ..\..\..\..\..\temp\cmd\ta_SMA.obj + -del ..\..\..\..\..\temp\cmd\ta_SQRT.obj + -del ..\..\..\..\..\temp\cmd\ta_STDDEV.obj + -del ..\..\..\..\..\temp\cmd\ta_STOCH.obj + -del ..\..\..\..\..\temp\cmd\ta_STOCHF.obj + -del ..\..\..\..\..\temp\cmd\ta_STOCHRSI.obj + -del ..\..\..\..\..\temp\cmd\ta_SUB.obj + -del ..\..\..\..\..\temp\cmd\ta_SUM.obj + -del ..\..\..\..\..\temp\cmd\ta_T3.obj + -del ..\..\..\..\..\temp\cmd\ta_TAN.obj + -del ..\..\..\..\..\temp\cmd\ta_TANH.obj + -del ..\..\..\..\..\temp\cmd\ta_TEMA.obj + -del ..\..\..\..\..\temp\cmd\ta_TRANGE.obj + -del ..\..\..\..\..\temp\cmd\ta_TRIMA.obj + -del ..\..\..\..\..\temp\cmd\ta_TRIX.obj + -del ..\..\..\..\..\temp\cmd\ta_TSF.obj + -del ..\..\..\..\..\temp\cmd\ta_TYPPRICE.obj + -del ..\..\..\..\..\temp\cmd\ta_ULTOSC.obj + -del ..\..\..\..\..\temp\cmd\ta_VAR.obj + -del ..\..\..\..\..\temp\cmd\ta_WCLPRICE.obj + -del ..\..\..\..\..\temp\cmd\ta_WILLR.obj + -del ..\..\..\..\..\temp\cmd\ta_WMA.obj + -del $(TARGET) + -del ../../../../../bin/*.map + -del ../../../../../bin/*._xe + -del ../../../../../bin/*.tds + -del ../../../../../bin/*.pdb + -del ../../../../../bin/*.pbo + -del ../../../../../bin/*.pbi + -del ../../../../../bin/*.pbt + -del ../../../../../temp/cmd/*.pch + -del ../../../../../temp/cmd/*.idb + -del ../../../../../temp/cmd/ta_func/*.pch + -del ../../../../../temp/cmd/ta_func/*.idb + -del ../../../../../temp/cmd/ta_func/*.obj + +####### Compile + +..\..\..\..\..\temp\cmd\ta_utility.obj: ..\..\..\..\..\src\ta_func\ta_utility.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_utility.obj ..\..\..\..\..\src\ta_func\ta_utility.c + +..\..\..\..\..\temp\cmd\ta_ACOS.obj: ..\..\..\..\..\src\ta_func\ta_ACOS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_ACOS.obj ..\..\..\..\..\src\ta_func\ta_ACOS.c + +..\..\..\..\..\temp\cmd\ta_AD.obj: ..\..\..\..\..\src\ta_func\ta_AD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_AD.obj ..\..\..\..\..\src\ta_func\ta_AD.c + +..\..\..\..\..\temp\cmd\ta_ADD.obj: ..\..\..\..\..\src\ta_func\ta_ADD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_ADD.obj ..\..\..\..\..\src\ta_func\ta_ADD.c + +..\..\..\..\..\temp\cmd\ta_ADOSC.obj: ..\..\..\..\..\src\ta_func\ta_ADOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_ADOSC.obj ..\..\..\..\..\src\ta_func\ta_ADOSC.c + +..\..\..\..\..\temp\cmd\ta_ADX.obj: ..\..\..\..\..\src\ta_func\ta_ADX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_ADX.obj ..\..\..\..\..\src\ta_func\ta_ADX.c + +..\..\..\..\..\temp\cmd\ta_ADXR.obj: ..\..\..\..\..\src\ta_func\ta_ADXR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_ADXR.obj ..\..\..\..\..\src\ta_func\ta_ADXR.c + +..\..\..\..\..\temp\cmd\ta_APO.obj: ..\..\..\..\..\src\ta_func\ta_APO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_APO.obj ..\..\..\..\..\src\ta_func\ta_APO.c + +..\..\..\..\..\temp\cmd\ta_AROON.obj: ..\..\..\..\..\src\ta_func\ta_AROON.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_AROON.obj ..\..\..\..\..\src\ta_func\ta_AROON.c + +..\..\..\..\..\temp\cmd\ta_AROONOSC.obj: ..\..\..\..\..\src\ta_func\ta_AROONOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_AROONOSC.obj ..\..\..\..\..\src\ta_func\ta_AROONOSC.c + +..\..\..\..\..\temp\cmd\ta_ASIN.obj: ..\..\..\..\..\src\ta_func\ta_ASIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_ASIN.obj ..\..\..\..\..\src\ta_func\ta_ASIN.c + +..\..\..\..\..\temp\cmd\ta_ATAN.obj: ..\..\..\..\..\src\ta_func\ta_ATAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_ATAN.obj ..\..\..\..\..\src\ta_func\ta_ATAN.c + +..\..\..\..\..\temp\cmd\ta_ATR.obj: ..\..\..\..\..\src\ta_func\ta_ATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_ATR.obj ..\..\..\..\..\src\ta_func\ta_ATR.c + +..\..\..\..\..\temp\cmd\ta_AVGPRICE.obj: ..\..\..\..\..\src\ta_func\ta_AVGPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_AVGPRICE.obj ..\..\..\..\..\src\ta_func\ta_AVGPRICE.c + +..\..\..\..\..\temp\cmd\ta_BBANDS.obj: ..\..\..\..\..\src\ta_func\ta_BBANDS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_BBANDS.obj ..\..\..\..\..\src\ta_func\ta_BBANDS.c + +..\..\..\..\..\temp\cmd\ta_BETA.obj: ..\..\..\..\..\src\ta_func\ta_BETA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_BETA.obj ..\..\..\..\..\src\ta_func\ta_BETA.c + +..\..\..\..\..\temp\cmd\ta_BOP.obj: ..\..\..\..\..\src\ta_func\ta_BOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_BOP.obj ..\..\..\..\..\src\ta_func\ta_BOP.c + +..\..\..\..\..\temp\cmd\ta_CCI.obj: ..\..\..\..\..\src\ta_func\ta_CCI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CCI.obj ..\..\..\..\..\src\ta_func\ta_CCI.c + +..\..\..\..\..\temp\cmd\ta_CDL2CROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDL2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDL2CROWS.obj ..\..\..\..\..\src\ta_func\ta_CDL2CROWS.c + +..\..\..\..\..\temp\cmd\ta_CDL3BLACKCROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDL3BLACKCROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDL3BLACKCROWS.obj ..\..\..\..\..\src\ta_func\ta_CDL3BLACKCROWS.c + +..\..\..\..\..\temp\cmd\ta_CDL3INSIDE.obj: ..\..\..\..\..\src\ta_func\ta_CDL3INSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDL3INSIDE.obj ..\..\..\..\..\src\ta_func\ta_CDL3INSIDE.c + +..\..\..\..\..\temp\cmd\ta_CDL3LINESTRIKE.obj: ..\..\..\..\..\src\ta_func\ta_CDL3LINESTRIKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDL3LINESTRIKE.obj ..\..\..\..\..\src\ta_func\ta_CDL3LINESTRIKE.c + +..\..\..\..\..\temp\cmd\ta_CDL3OUTSIDE.obj: ..\..\..\..\..\src\ta_func\ta_CDL3OUTSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDL3OUTSIDE.obj ..\..\..\..\..\src\ta_func\ta_CDL3OUTSIDE.c + +..\..\..\..\..\temp\cmd\ta_CDL3STARSINSOUTH.obj: ..\..\..\..\..\src\ta_func\ta_CDL3STARSINSOUTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDL3STARSINSOUTH.obj ..\..\..\..\..\src\ta_func\ta_CDL3STARSINSOUTH.c + +..\..\..\..\..\temp\cmd\ta_CDL3WHITESOLDIERS.obj: ..\..\..\..\..\src\ta_func\ta_CDL3WHITESOLDIERS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDL3WHITESOLDIERS.obj ..\..\..\..\..\src\ta_func\ta_CDL3WHITESOLDIERS.c + +..\..\..\..\..\temp\cmd\ta_CDLABANDONEDBABY.obj: ..\..\..\..\..\src\ta_func\ta_CDLABANDONEDBABY.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLABANDONEDBABY.obj ..\..\..\..\..\src\ta_func\ta_CDLABANDONEDBABY.c + +..\..\..\..\..\temp\cmd\ta_CDLADVANCEBLOCK.obj: ..\..\..\..\..\src\ta_func\ta_CDLADVANCEBLOCK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLADVANCEBLOCK.obj ..\..\..\..\..\src\ta_func\ta_CDLADVANCEBLOCK.c + +..\..\..\..\..\temp\cmd\ta_CDLBELTHOLD.obj: ..\..\..\..\..\src\ta_func\ta_CDLBELTHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLBELTHOLD.obj ..\..\..\..\..\src\ta_func\ta_CDLBELTHOLD.c + +..\..\..\..\..\temp\cmd\ta_CDLBREAKAWAY.obj: ..\..\..\..\..\src\ta_func\ta_CDLBREAKAWAY.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLBREAKAWAY.obj ..\..\..\..\..\src\ta_func\ta_CDLBREAKAWAY.c + +..\..\..\..\..\temp\cmd\ta_CDLCLOSINGMARUBOZU.obj: ..\..\..\..\..\src\ta_func\ta_CDLCLOSINGMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLCLOSINGMARUBOZU.obj ..\..\..\..\..\src\ta_func\ta_CDLCLOSINGMARUBOZU.c + +..\..\..\..\..\temp\cmd\ta_CDLCONCEALBABYSWALL.obj: ..\..\..\..\..\src\ta_func\ta_CDLCONCEALBABYSWALL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLCONCEALBABYSWALL.obj ..\..\..\..\..\src\ta_func\ta_CDLCONCEALBABYSWALL.c + +..\..\..\..\..\temp\cmd\ta_CDLCOUNTERATTACK.obj: ..\..\..\..\..\src\ta_func\ta_CDLCOUNTERATTACK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLCOUNTERATTACK.obj ..\..\..\..\..\src\ta_func\ta_CDLCOUNTERATTACK.c + +..\..\..\..\..\temp\cmd\ta_CDLDARKCLOUDCOVER.obj: ..\..\..\..\..\src\ta_func\ta_CDLDARKCLOUDCOVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLDARKCLOUDCOVER.obj ..\..\..\..\..\src\ta_func\ta_CDLDARKCLOUDCOVER.c + +..\..\..\..\..\temp\cmd\ta_CDLDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLDOJI.c + +..\..\..\..\..\temp\cmd\ta_CDLDOJISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLDOJISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLDOJISTAR.c + +..\..\..\..\..\temp\cmd\ta_CDLDRAGONFLYDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLDRAGONFLYDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLDRAGONFLYDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLDRAGONFLYDOJI.c + +..\..\..\..\..\temp\cmd\ta_CDLENGULFING.obj: ..\..\..\..\..\src\ta_func\ta_CDLENGULFING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLENGULFING.obj ..\..\..\..\..\src\ta_func\ta_CDLENGULFING.c + +..\..\..\..\..\temp\cmd\ta_CDLEVENINGDOJISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLEVENINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLEVENINGDOJISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLEVENINGDOJISTAR.c + +..\..\..\..\..\temp\cmd\ta_CDLEVENINGSTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLEVENINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLEVENINGSTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLEVENINGSTAR.c + +..\..\..\..\..\temp\cmd\ta_CDLGAPSIDESIDEWHITE.obj: ..\..\..\..\..\src\ta_func\ta_CDLGAPSIDESIDEWHITE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLGAPSIDESIDEWHITE.obj ..\..\..\..\..\src\ta_func\ta_CDLGAPSIDESIDEWHITE.c + +..\..\..\..\..\temp\cmd\ta_CDLGRAVESTONEDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLGRAVESTONEDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLGRAVESTONEDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLGRAVESTONEDOJI.c + +..\..\..\..\..\temp\cmd\ta_CDLHAMMER.obj: ..\..\..\..\..\src\ta_func\ta_CDLHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLHAMMER.obj ..\..\..\..\..\src\ta_func\ta_CDLHAMMER.c + +..\..\..\..\..\temp\cmd\ta_CDLHANGINGMAN.obj: ..\..\..\..\..\src\ta_func\ta_CDLHANGINGMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLHANGINGMAN.obj ..\..\..\..\..\src\ta_func\ta_CDLHANGINGMAN.c + +..\..\..\..\..\temp\cmd\ta_CDLHARAMI.obj: ..\..\..\..\..\src\ta_func\ta_CDLHARAMI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLHARAMI.obj ..\..\..\..\..\src\ta_func\ta_CDLHARAMI.c + +..\..\..\..\..\temp\cmd\ta_CDLHARAMICROSS.obj: ..\..\..\..\..\src\ta_func\ta_CDLHARAMICROSS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLHARAMICROSS.obj ..\..\..\..\..\src\ta_func\ta_CDLHARAMICROSS.c + +..\..\..\..\..\temp\cmd\ta_CDLHIGHWAVE.obj: ..\..\..\..\..\src\ta_func\ta_CDLHIGHWAVE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLHIGHWAVE.obj ..\..\..\..\..\src\ta_func\ta_CDLHIGHWAVE.c + +..\..\..\..\..\temp\cmd\ta_CDLHIKKAKE.obj: ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLHIKKAKE.obj ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKE.c + +..\..\..\..\..\temp\cmd\ta_CDLHIKKAKEMOD.obj: ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKEMOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLHIKKAKEMOD.obj ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKEMOD.c + +..\..\..\..\..\temp\cmd\ta_CDLHOMINGPIGEON.obj: ..\..\..\..\..\src\ta_func\ta_CDLHOMINGPIGEON.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLHOMINGPIGEON.obj ..\..\..\..\..\src\ta_func\ta_CDLHOMINGPIGEON.c + +..\..\..\..\..\temp\cmd\ta_CDLIDENTICAL3CROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDLIDENTICAL3CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLIDENTICAL3CROWS.obj ..\..\..\..\..\src\ta_func\ta_CDLIDENTICAL3CROWS.c + +..\..\..\..\..\temp\cmd\ta_CDLINNECK.obj: ..\..\..\..\..\src\ta_func\ta_CDLINNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLINNECK.obj ..\..\..\..\..\src\ta_func\ta_CDLINNECK.c + +..\..\..\..\..\temp\cmd\ta_CDLINVERTEDHAMMER.obj: ..\..\..\..\..\src\ta_func\ta_CDLINVERTEDHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLINVERTEDHAMMER.obj ..\..\..\..\..\src\ta_func\ta_CDLINVERTEDHAMMER.c + +..\..\..\..\..\temp\cmd\ta_CDLKICKING.obj: ..\..\..\..\..\src\ta_func\ta_CDLKICKING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLKICKING.obj ..\..\..\..\..\src\ta_func\ta_CDLKICKING.c + +..\..\..\..\..\temp\cmd\ta_CDLKICKINGBYLENGTH.obj: ..\..\..\..\..\src\ta_func\ta_CDLKICKINGBYLENGTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLKICKINGBYLENGTH.obj ..\..\..\..\..\src\ta_func\ta_CDLKICKINGBYLENGTH.c + +..\..\..\..\..\temp\cmd\ta_CDLLADDERBOTTOM.obj: ..\..\..\..\..\src\ta_func\ta_CDLLADDERBOTTOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLLADDERBOTTOM.obj ..\..\..\..\..\src\ta_func\ta_CDLLADDERBOTTOM.c + +..\..\..\..\..\temp\cmd\ta_CDLLONGLEGGEDDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLLONGLEGGEDDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLLONGLEGGEDDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLLONGLEGGEDDOJI.c + +..\..\..\..\..\temp\cmd\ta_CDLLONGLINE.obj: ..\..\..\..\..\src\ta_func\ta_CDLLONGLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLLONGLINE.obj ..\..\..\..\..\src\ta_func\ta_CDLLONGLINE.c + +..\..\..\..\..\temp\cmd\ta_CDLMARUBOZU.obj: ..\..\..\..\..\src\ta_func\ta_CDLMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLMARUBOZU.obj ..\..\..\..\..\src\ta_func\ta_CDLMARUBOZU.c + +..\..\..\..\..\temp\cmd\ta_CDLMATCHINGLOW.obj: ..\..\..\..\..\src\ta_func\ta_CDLMATCHINGLOW.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLMATCHINGLOW.obj ..\..\..\..\..\src\ta_func\ta_CDLMATCHINGLOW.c + +..\..\..\..\..\temp\cmd\ta_CDLMATHOLD.obj: ..\..\..\..\..\src\ta_func\ta_CDLMATHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLMATHOLD.obj ..\..\..\..\..\src\ta_func\ta_CDLMATHOLD.c + +..\..\..\..\..\temp\cmd\ta_CDLMORNINGDOJISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLMORNINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLMORNINGDOJISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLMORNINGDOJISTAR.c + +..\..\..\..\..\temp\cmd\ta_CDLMORNINGSTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLMORNINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLMORNINGSTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLMORNINGSTAR.c + +..\..\..\..\..\temp\cmd\ta_CDLONNECK.obj: ..\..\..\..\..\src\ta_func\ta_CDLONNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLONNECK.obj ..\..\..\..\..\src\ta_func\ta_CDLONNECK.c + +..\..\..\..\..\temp\cmd\ta_CDLPIERCING.obj: ..\..\..\..\..\src\ta_func\ta_CDLPIERCING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLPIERCING.obj ..\..\..\..\..\src\ta_func\ta_CDLPIERCING.c + +..\..\..\..\..\temp\cmd\ta_CDLRICKSHAWMAN.obj: ..\..\..\..\..\src\ta_func\ta_CDLRICKSHAWMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLRICKSHAWMAN.obj ..\..\..\..\..\src\ta_func\ta_CDLRICKSHAWMAN.c + +..\..\..\..\..\temp\cmd\ta_CDLRISEFALL3METHODS.obj: ..\..\..\..\..\src\ta_func\ta_CDLRISEFALL3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLRISEFALL3METHODS.obj ..\..\..\..\..\src\ta_func\ta_CDLRISEFALL3METHODS.c + +..\..\..\..\..\temp\cmd\ta_CDLSEPARATINGLINES.obj: ..\..\..\..\..\src\ta_func\ta_CDLSEPARATINGLINES.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLSEPARATINGLINES.obj ..\..\..\..\..\src\ta_func\ta_CDLSEPARATINGLINES.c + +..\..\..\..\..\temp\cmd\ta_CDLSHOOTINGSTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLSHOOTINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLSHOOTINGSTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLSHOOTINGSTAR.c + +..\..\..\..\..\temp\cmd\ta_CDLSHORTLINE.obj: ..\..\..\..\..\src\ta_func\ta_CDLSHORTLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLSHORTLINE.obj ..\..\..\..\..\src\ta_func\ta_CDLSHORTLINE.c + +..\..\..\..\..\temp\cmd\ta_CDLSPINNINGTOP.obj: ..\..\..\..\..\src\ta_func\ta_CDLSPINNINGTOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLSPINNINGTOP.obj ..\..\..\..\..\src\ta_func\ta_CDLSPINNINGTOP.c + +..\..\..\..\..\temp\cmd\ta_CDLSTALLEDPATTERN.obj: ..\..\..\..\..\src\ta_func\ta_CDLSTALLEDPATTERN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLSTALLEDPATTERN.obj ..\..\..\..\..\src\ta_func\ta_CDLSTALLEDPATTERN.c + +..\..\..\..\..\temp\cmd\ta_CDLSTICKSANDWICH.obj: ..\..\..\..\..\src\ta_func\ta_CDLSTICKSANDWICH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLSTICKSANDWICH.obj ..\..\..\..\..\src\ta_func\ta_CDLSTICKSANDWICH.c + +..\..\..\..\..\temp\cmd\ta_CDLTAKURI.obj: ..\..\..\..\..\src\ta_func\ta_CDLTAKURI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLTAKURI.obj ..\..\..\..\..\src\ta_func\ta_CDLTAKURI.c + +..\..\..\..\..\temp\cmd\ta_CDLTASUKIGAP.obj: ..\..\..\..\..\src\ta_func\ta_CDLTASUKIGAP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLTASUKIGAP.obj ..\..\..\..\..\src\ta_func\ta_CDLTASUKIGAP.c + +..\..\..\..\..\temp\cmd\ta_CDLTHRUSTING.obj: ..\..\..\..\..\src\ta_func\ta_CDLTHRUSTING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLTHRUSTING.obj ..\..\..\..\..\src\ta_func\ta_CDLTHRUSTING.c + +..\..\..\..\..\temp\cmd\ta_CDLTRISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLTRISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLTRISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLTRISTAR.c + +..\..\..\..\..\temp\cmd\ta_CDLUNIQUE3RIVER.obj: ..\..\..\..\..\src\ta_func\ta_CDLUNIQUE3RIVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLUNIQUE3RIVER.obj ..\..\..\..\..\src\ta_func\ta_CDLUNIQUE3RIVER.c + +..\..\..\..\..\temp\cmd\ta_CDLUPSIDEGAP2CROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDLUPSIDEGAP2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLUPSIDEGAP2CROWS.obj ..\..\..\..\..\src\ta_func\ta_CDLUPSIDEGAP2CROWS.c + +..\..\..\..\..\temp\cmd\ta_CDLXSIDEGAP3METHODS.obj: ..\..\..\..\..\src\ta_func\ta_CDLXSIDEGAP3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLXSIDEGAP3METHODS.obj ..\..\..\..\..\src\ta_func\ta_CDLXSIDEGAP3METHODS.c + +..\..\..\..\..\temp\cmd\ta_CEIL.obj: ..\..\..\..\..\src\ta_func\ta_CEIL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CEIL.obj ..\..\..\..\..\src\ta_func\ta_CEIL.c + +..\..\..\..\..\temp\cmd\ta_CMO.obj: ..\..\..\..\..\src\ta_func\ta_CMO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CMO.obj ..\..\..\..\..\src\ta_func\ta_CMO.c + +..\..\..\..\..\temp\cmd\ta_CORREL.obj: ..\..\..\..\..\src\ta_func\ta_CORREL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CORREL.obj ..\..\..\..\..\src\ta_func\ta_CORREL.c + +..\..\..\..\..\temp\cmd\ta_COS.obj: ..\..\..\..\..\src\ta_func\ta_COS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_COS.obj ..\..\..\..\..\src\ta_func\ta_COS.c + +..\..\..\..\..\temp\cmd\ta_COSH.obj: ..\..\..\..\..\src\ta_func\ta_COSH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_COSH.obj ..\..\..\..\..\src\ta_func\ta_COSH.c + +..\..\..\..\..\temp\cmd\ta_DEMA.obj: ..\..\..\..\..\src\ta_func\ta_DEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_DEMA.obj ..\..\..\..\..\src\ta_func\ta_DEMA.c + +..\..\..\..\..\temp\cmd\ta_DIV.obj: ..\..\..\..\..\src\ta_func\ta_DIV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_DIV.obj ..\..\..\..\..\src\ta_func\ta_DIV.c + +..\..\..\..\..\temp\cmd\ta_DX.obj: ..\..\..\..\..\src\ta_func\ta_DX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_DX.obj ..\..\..\..\..\src\ta_func\ta_DX.c + +..\..\..\..\..\temp\cmd\ta_EMA.obj: ..\..\..\..\..\src\ta_func\ta_EMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_EMA.obj ..\..\..\..\..\src\ta_func\ta_EMA.c + +..\..\..\..\..\temp\cmd\ta_EXP.obj: ..\..\..\..\..\src\ta_func\ta_EXP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_EXP.obj ..\..\..\..\..\src\ta_func\ta_EXP.c + +..\..\..\..\..\temp\cmd\ta_FLOOR.obj: ..\..\..\..\..\src\ta_func\ta_FLOOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_FLOOR.obj ..\..\..\..\..\src\ta_func\ta_FLOOR.c + +..\..\..\..\..\temp\cmd\ta_HT_DCPERIOD.obj: ..\..\..\..\..\src\ta_func\ta_HT_DCPERIOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_HT_DCPERIOD.obj ..\..\..\..\..\src\ta_func\ta_HT_DCPERIOD.c + +..\..\..\..\..\temp\cmd\ta_HT_DCPHASE.obj: ..\..\..\..\..\src\ta_func\ta_HT_DCPHASE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_HT_DCPHASE.obj ..\..\..\..\..\src\ta_func\ta_HT_DCPHASE.c + +..\..\..\..\..\temp\cmd\ta_HT_PHASOR.obj: ..\..\..\..\..\src\ta_func\ta_HT_PHASOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_HT_PHASOR.obj ..\..\..\..\..\src\ta_func\ta_HT_PHASOR.c + +..\..\..\..\..\temp\cmd\ta_HT_SINE.obj: ..\..\..\..\..\src\ta_func\ta_HT_SINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_HT_SINE.obj ..\..\..\..\..\src\ta_func\ta_HT_SINE.c + +..\..\..\..\..\temp\cmd\ta_HT_TRENDLINE.obj: ..\..\..\..\..\src\ta_func\ta_HT_TRENDLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_HT_TRENDLINE.obj ..\..\..\..\..\src\ta_func\ta_HT_TRENDLINE.c + +..\..\..\..\..\temp\cmd\ta_HT_TRENDMODE.obj: ..\..\..\..\..\src\ta_func\ta_HT_TRENDMODE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_HT_TRENDMODE.obj ..\..\..\..\..\src\ta_func\ta_HT_TRENDMODE.c + +..\..\..\..\..\temp\cmd\ta_KAMA.obj: ..\..\..\..\..\src\ta_func\ta_KAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_KAMA.obj ..\..\..\..\..\src\ta_func\ta_KAMA.c + +..\..\..\..\..\temp\cmd\ta_LINEARREG.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_LINEARREG.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG.c + +..\..\..\..\..\temp\cmd\ta_LINEARREG_ANGLE.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG_ANGLE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_LINEARREG_ANGLE.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG_ANGLE.c + +..\..\..\..\..\temp\cmd\ta_LINEARREG_INTERCEPT.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG_INTERCEPT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_LINEARREG_INTERCEPT.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG_INTERCEPT.c + +..\..\..\..\..\temp\cmd\ta_LINEARREG_SLOPE.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG_SLOPE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_LINEARREG_SLOPE.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG_SLOPE.c + +..\..\..\..\..\temp\cmd\ta_LN.obj: ..\..\..\..\..\src\ta_func\ta_LN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_LN.obj ..\..\..\..\..\src\ta_func\ta_LN.c + +..\..\..\..\..\temp\cmd\ta_LOG10.obj: ..\..\..\..\..\src\ta_func\ta_LOG10.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_LOG10.obj ..\..\..\..\..\src\ta_func\ta_LOG10.c + +..\..\..\..\..\temp\cmd\ta_MA.obj: ..\..\..\..\..\src\ta_func\ta_MA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_MA.obj ..\..\..\..\..\src\ta_func\ta_MA.c + +..\..\..\..\..\temp\cmd\ta_MACD.obj: ..\..\..\..\..\src\ta_func\ta_MACD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_MACD.obj ..\..\..\..\..\src\ta_func\ta_MACD.c + +..\..\..\..\..\temp\cmd\ta_MACDEXT.obj: ..\..\..\..\..\src\ta_func\ta_MACDEXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_MACDEXT.obj ..\..\..\..\..\src\ta_func\ta_MACDEXT.c + +..\..\..\..\..\temp\cmd\ta_MACDFIX.obj: ..\..\..\..\..\src\ta_func\ta_MACDFIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_MACDFIX.obj ..\..\..\..\..\src\ta_func\ta_MACDFIX.c + +..\..\..\..\..\temp\cmd\ta_MAMA.obj: ..\..\..\..\..\src\ta_func\ta_MAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_MAMA.obj ..\..\..\..\..\src\ta_func\ta_MAMA.c + +..\..\..\..\..\temp\cmd\ta_MAVP.obj: ..\..\..\..\..\src\ta_func\ta_MAVP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_MAVP.obj ..\..\..\..\..\src\ta_func\ta_MAVP.c + +..\..\..\..\..\temp\cmd\ta_MAX.obj: ..\..\..\..\..\src\ta_func\ta_MAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_MAX.obj ..\..\..\..\..\src\ta_func\ta_MAX.c + +..\..\..\..\..\temp\cmd\ta_MAXINDEX.obj: ..\..\..\..\..\src\ta_func\ta_MAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_MAXINDEX.obj ..\..\..\..\..\src\ta_func\ta_MAXINDEX.c + +..\..\..\..\..\temp\cmd\ta_MEDPRICE.obj: ..\..\..\..\..\src\ta_func\ta_MEDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_MEDPRICE.obj ..\..\..\..\..\src\ta_func\ta_MEDPRICE.c + +..\..\..\..\..\temp\cmd\ta_MFI.obj: ..\..\..\..\..\src\ta_func\ta_MFI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_MFI.obj ..\..\..\..\..\src\ta_func\ta_MFI.c + +..\..\..\..\..\temp\cmd\ta_MIDPOINT.obj: ..\..\..\..\..\src\ta_func\ta_MIDPOINT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_MIDPOINT.obj ..\..\..\..\..\src\ta_func\ta_MIDPOINT.c + +..\..\..\..\..\temp\cmd\ta_MIDPRICE.obj: ..\..\..\..\..\src\ta_func\ta_MIDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_MIDPRICE.obj ..\..\..\..\..\src\ta_func\ta_MIDPRICE.c + +..\..\..\..\..\temp\cmd\ta_MIN.obj: ..\..\..\..\..\src\ta_func\ta_MIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_MIN.obj ..\..\..\..\..\src\ta_func\ta_MIN.c + +..\..\..\..\..\temp\cmd\ta_MININDEX.obj: ..\..\..\..\..\src\ta_func\ta_MININDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_MININDEX.obj ..\..\..\..\..\src\ta_func\ta_MININDEX.c + +..\..\..\..\..\temp\cmd\ta_MINMAX.obj: ..\..\..\..\..\src\ta_func\ta_MINMAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_MINMAX.obj ..\..\..\..\..\src\ta_func\ta_MINMAX.c + +..\..\..\..\..\temp\cmd\ta_MINMAXINDEX.obj: ..\..\..\..\..\src\ta_func\ta_MINMAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_MINMAXINDEX.obj ..\..\..\..\..\src\ta_func\ta_MINMAXINDEX.c + +..\..\..\..\..\temp\cmd\ta_MINUS_DI.obj: ..\..\..\..\..\src\ta_func\ta_MINUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_MINUS_DI.obj ..\..\..\..\..\src\ta_func\ta_MINUS_DI.c + +..\..\..\..\..\temp\cmd\ta_MINUS_DM.obj: ..\..\..\..\..\src\ta_func\ta_MINUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_MINUS_DM.obj ..\..\..\..\..\src\ta_func\ta_MINUS_DM.c + +..\..\..\..\..\temp\cmd\ta_MOM.obj: ..\..\..\..\..\src\ta_func\ta_MOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_MOM.obj ..\..\..\..\..\src\ta_func\ta_MOM.c + +..\..\..\..\..\temp\cmd\ta_MULT.obj: ..\..\..\..\..\src\ta_func\ta_MULT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_MULT.obj ..\..\..\..\..\src\ta_func\ta_MULT.c + +..\..\..\..\..\temp\cmd\ta_NATR.obj: ..\..\..\..\..\src\ta_func\ta_NATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_NATR.obj ..\..\..\..\..\src\ta_func\ta_NATR.c + +..\..\..\..\..\temp\cmd\ta_OBV.obj: ..\..\..\..\..\src\ta_func\ta_OBV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_OBV.obj ..\..\..\..\..\src\ta_func\ta_OBV.c + +..\..\..\..\..\temp\cmd\ta_PLUS_DI.obj: ..\..\..\..\..\src\ta_func\ta_PLUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_PLUS_DI.obj ..\..\..\..\..\src\ta_func\ta_PLUS_DI.c + +..\..\..\..\..\temp\cmd\ta_PLUS_DM.obj: ..\..\..\..\..\src\ta_func\ta_PLUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_PLUS_DM.obj ..\..\..\..\..\src\ta_func\ta_PLUS_DM.c + +..\..\..\..\..\temp\cmd\ta_PPO.obj: ..\..\..\..\..\src\ta_func\ta_PPO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_PPO.obj ..\..\..\..\..\src\ta_func\ta_PPO.c + +..\..\..\..\..\temp\cmd\ta_ROC.obj: ..\..\..\..\..\src\ta_func\ta_ROC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_ROC.obj ..\..\..\..\..\src\ta_func\ta_ROC.c + +..\..\..\..\..\temp\cmd\ta_ROCP.obj: ..\..\..\..\..\src\ta_func\ta_ROCP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_ROCP.obj ..\..\..\..\..\src\ta_func\ta_ROCP.c + +..\..\..\..\..\temp\cmd\ta_ROCR.obj: ..\..\..\..\..\src\ta_func\ta_ROCR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_ROCR.obj ..\..\..\..\..\src\ta_func\ta_ROCR.c + +..\..\..\..\..\temp\cmd\ta_ROCR100.obj: ..\..\..\..\..\src\ta_func\ta_ROCR100.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_ROCR100.obj ..\..\..\..\..\src\ta_func\ta_ROCR100.c + +..\..\..\..\..\temp\cmd\ta_RSI.obj: ..\..\..\..\..\src\ta_func\ta_RSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_RSI.obj ..\..\..\..\..\src\ta_func\ta_RSI.c + +..\..\..\..\..\temp\cmd\ta_SAR.obj: ..\..\..\..\..\src\ta_func\ta_SAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_SAR.obj ..\..\..\..\..\src\ta_func\ta_SAR.c + +..\..\..\..\..\temp\cmd\ta_SAREXT.obj: ..\..\..\..\..\src\ta_func\ta_SAREXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_SAREXT.obj ..\..\..\..\..\src\ta_func\ta_SAREXT.c + +..\..\..\..\..\temp\cmd\ta_SIN.obj: ..\..\..\..\..\src\ta_func\ta_SIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_SIN.obj ..\..\..\..\..\src\ta_func\ta_SIN.c + +..\..\..\..\..\temp\cmd\ta_SINH.obj: ..\..\..\..\..\src\ta_func\ta_SINH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_SINH.obj ..\..\..\..\..\src\ta_func\ta_SINH.c + +..\..\..\..\..\temp\cmd\ta_SMA.obj: ..\..\..\..\..\src\ta_func\ta_SMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_SMA.obj ..\..\..\..\..\src\ta_func\ta_SMA.c + +..\..\..\..\..\temp\cmd\ta_SQRT.obj: ..\..\..\..\..\src\ta_func\ta_SQRT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_SQRT.obj ..\..\..\..\..\src\ta_func\ta_SQRT.c + +..\..\..\..\..\temp\cmd\ta_STDDEV.obj: ..\..\..\..\..\src\ta_func\ta_STDDEV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_STDDEV.obj ..\..\..\..\..\src\ta_func\ta_STDDEV.c + +..\..\..\..\..\temp\cmd\ta_STOCH.obj: ..\..\..\..\..\src\ta_func\ta_STOCH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_STOCH.obj ..\..\..\..\..\src\ta_func\ta_STOCH.c + +..\..\..\..\..\temp\cmd\ta_STOCHF.obj: ..\..\..\..\..\src\ta_func\ta_STOCHF.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_STOCHF.obj ..\..\..\..\..\src\ta_func\ta_STOCHF.c + +..\..\..\..\..\temp\cmd\ta_STOCHRSI.obj: ..\..\..\..\..\src\ta_func\ta_STOCHRSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_STOCHRSI.obj ..\..\..\..\..\src\ta_func\ta_STOCHRSI.c + +..\..\..\..\..\temp\cmd\ta_SUB.obj: ..\..\..\..\..\src\ta_func\ta_SUB.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_SUB.obj ..\..\..\..\..\src\ta_func\ta_SUB.c + +..\..\..\..\..\temp\cmd\ta_SUM.obj: ..\..\..\..\..\src\ta_func\ta_SUM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_SUM.obj ..\..\..\..\..\src\ta_func\ta_SUM.c + +..\..\..\..\..\temp\cmd\ta_T3.obj: ..\..\..\..\..\src\ta_func\ta_T3.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_T3.obj ..\..\..\..\..\src\ta_func\ta_T3.c + +..\..\..\..\..\temp\cmd\ta_TAN.obj: ..\..\..\..\..\src\ta_func\ta_TAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_TAN.obj ..\..\..\..\..\src\ta_func\ta_TAN.c + +..\..\..\..\..\temp\cmd\ta_TANH.obj: ..\..\..\..\..\src\ta_func\ta_TANH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_TANH.obj ..\..\..\..\..\src\ta_func\ta_TANH.c + +..\..\..\..\..\temp\cmd\ta_TEMA.obj: ..\..\..\..\..\src\ta_func\ta_TEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_TEMA.obj ..\..\..\..\..\src\ta_func\ta_TEMA.c + +..\..\..\..\..\temp\cmd\ta_TRANGE.obj: ..\..\..\..\..\src\ta_func\ta_TRANGE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_TRANGE.obj ..\..\..\..\..\src\ta_func\ta_TRANGE.c + +..\..\..\..\..\temp\cmd\ta_TRIMA.obj: ..\..\..\..\..\src\ta_func\ta_TRIMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_TRIMA.obj ..\..\..\..\..\src\ta_func\ta_TRIMA.c + +..\..\..\..\..\temp\cmd\ta_TRIX.obj: ..\..\..\..\..\src\ta_func\ta_TRIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_TRIX.obj ..\..\..\..\..\src\ta_func\ta_TRIX.c + +..\..\..\..\..\temp\cmd\ta_TSF.obj: ..\..\..\..\..\src\ta_func\ta_TSF.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_TSF.obj ..\..\..\..\..\src\ta_func\ta_TSF.c + +..\..\..\..\..\temp\cmd\ta_TYPPRICE.obj: ..\..\..\..\..\src\ta_func\ta_TYPPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_TYPPRICE.obj ..\..\..\..\..\src\ta_func\ta_TYPPRICE.c + +..\..\..\..\..\temp\cmd\ta_ULTOSC.obj: ..\..\..\..\..\src\ta_func\ta_ULTOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_ULTOSC.obj ..\..\..\..\..\src\ta_func\ta_ULTOSC.c + +..\..\..\..\..\temp\cmd\ta_VAR.obj: ..\..\..\..\..\src\ta_func\ta_VAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_VAR.obj ..\..\..\..\..\src\ta_func\ta_VAR.c + +..\..\..\..\..\temp\cmd\ta_WCLPRICE.obj: ..\..\..\..\..\src\ta_func\ta_WCLPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_WCLPRICE.obj ..\..\..\..\..\src\ta_func\ta_WCLPRICE.c + +..\..\..\..\..\temp\cmd\ta_WILLR.obj: ..\..\..\..\..\src\ta_func\ta_WILLR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_WILLR.obj ..\..\..\..\..\src\ta_func\ta_WILLR.c + +..\..\..\..\..\temp\cmd\ta_WMA.obj: ..\..\..\..\..\src\ta_func\ta_WMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_WMA.obj ..\..\..\..\..\src\ta_func\ta_WMA.c + diff --git a/make/cmd/win32/symantec/ta_libc/Makefile b/make/cmd/win32/symantec/ta_libc/Makefile new file mode 100644 index 000000000..2b7d5ed8a --- /dev/null +++ b/make/cmd/win32/symantec/ta_libc/Makefile @@ -0,0 +1,1424 @@ +############################################################################# +# Makefile for building ta_libc_cmd +# Generated by tmake; +# Project: ta_libc/ta_libc +# Template: lib +############################################################################# + +####### Compiler, tools and options + +CC = sc +CXX = sc +CFLAGS = -mn -w2 -g -DTA_DEBUG -D_DEBUG -DWIN32 +CXXFLAGS= -mn -w2 -g -DTA_DEBUG -D_DEBUG -DWIN32 +INCPATH = -I"..\..\..\..\..\src\ta_common" -I"..\..\..\..\..\include" -I"..\..\..\..\..\src\ta_abstract" -I"..\..\..\..\..\src\ta_abstract\tables" -I"..\..\..\..\..\src\ta_abstract\frames" -I"$(QTDIR)\include" +LIB = lib /C /N /NOI /P:32 +MOC = moc + +ZIP = zip -r -9 + +####### Files + +HEADERS = +SOURCES = ..\..\..\..\..\src\ta_common\ta_global.c \ + ..\..\..\..\..\src\ta_common\ta_retcode.c \ + ..\..\..\..\..\src\ta_common\ta_version.c \ + ..\..\..\..\..\src\ta_abstract\ta_abstract.c \ + ..\..\..\..\..\src\ta_abstract\ta_def_ui.c \ + ..\..\..\..\..\src\ta_abstract\ta_func_api.c \ + ..\..\..\..\..\src\ta_abstract\ta_group_idx.c \ + ..\..\..\..\..\src\ta_abstract\frames\ta_frame.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_a.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_b.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_c.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_d.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_e.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_f.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_g.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_h.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_i.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_j.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_k.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_l.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_m.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_n.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_o.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_p.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_q.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_r.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_s.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_t.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_u.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_v.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_w.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_x.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_y.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_z.c \ + ..\..\..\..\..\src\ta_func\ta_utility.c \ + ..\..\..\..\..\src\ta_func\ta_ACOS.c \ + ..\..\..\..\..\src\ta_func\ta_AD.c \ + ..\..\..\..\..\src\ta_func\ta_ADD.c \ + ..\..\..\..\..\src\ta_func\ta_ADOSC.c \ + ..\..\..\..\..\src\ta_func\ta_ADX.c \ + ..\..\..\..\..\src\ta_func\ta_ADXR.c \ + ..\..\..\..\..\src\ta_func\ta_APO.c \ + ..\..\..\..\..\src\ta_func\ta_AROON.c \ + ..\..\..\..\..\src\ta_func\ta_AROONOSC.c \ + ..\..\..\..\..\src\ta_func\ta_ASIN.c \ + ..\..\..\..\..\src\ta_func\ta_ATAN.c \ + ..\..\..\..\..\src\ta_func\ta_ATR.c \ + ..\..\..\..\..\src\ta_func\ta_AVGPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_BBANDS.c \ + ..\..\..\..\..\src\ta_func\ta_BETA.c \ + ..\..\..\..\..\src\ta_func\ta_BOP.c \ + ..\..\..\..\..\src\ta_func\ta_CCI.c \ + ..\..\..\..\..\src\ta_func\ta_CDL2CROWS.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3BLACKCROWS.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3INSIDE.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3LINESTRIKE.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3OUTSIDE.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3STARSINSOUTH.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3WHITESOLDIERS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLABANDONEDBABY.c \ + ..\..\..\..\..\src\ta_func\ta_CDLADVANCEBLOCK.c \ + ..\..\..\..\..\src\ta_func\ta_CDLBELTHOLD.c \ + ..\..\..\..\..\src\ta_func\ta_CDLBREAKAWAY.c \ + ..\..\..\..\..\src\ta_func\ta_CDLCLOSINGMARUBOZU.c \ + ..\..\..\..\..\src\ta_func\ta_CDLCONCEALBABYSWALL.c \ + ..\..\..\..\..\src\ta_func\ta_CDLCOUNTERATTACK.c \ + ..\..\..\..\..\src\ta_func\ta_CDLDARKCLOUDCOVER.c \ + ..\..\..\..\..\src\ta_func\ta_CDLDOJI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLDOJISTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLDRAGONFLYDOJI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLENGULFING.c \ + ..\..\..\..\..\src\ta_func\ta_CDLEVENINGDOJISTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLEVENINGSTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLGAPSIDESIDEWHITE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLGRAVESTONEDOJI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHAMMER.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHANGINGMAN.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHARAMI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHARAMICROSS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHIGHWAVE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKEMOD.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHOMINGPIGEON.c \ + ..\..\..\..\..\src\ta_func\ta_CDLIDENTICAL3CROWS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLINNECK.c \ + ..\..\..\..\..\src\ta_func\ta_CDLINVERTEDHAMMER.c \ + ..\..\..\..\..\src\ta_func\ta_CDLKICKING.c \ + ..\..\..\..\..\src\ta_func\ta_CDLKICKINGBYLENGTH.c \ + ..\..\..\..\..\src\ta_func\ta_CDLLADDERBOTTOM.c \ + ..\..\..\..\..\src\ta_func\ta_CDLLONGLEGGEDDOJI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLLONGLINE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMARUBOZU.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMATCHINGLOW.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMATHOLD.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMORNINGDOJISTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMORNINGSTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLONNECK.c \ + ..\..\..\..\..\src\ta_func\ta_CDLPIERCING.c \ + ..\..\..\..\..\src\ta_func\ta_CDLRICKSHAWMAN.c \ + ..\..\..\..\..\src\ta_func\ta_CDLRISEFALL3METHODS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSEPARATINGLINES.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSHOOTINGSTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSHORTLINE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSPINNINGTOP.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSTALLEDPATTERN.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSTICKSANDWICH.c \ + ..\..\..\..\..\src\ta_func\ta_CDLTAKURI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLTASUKIGAP.c \ + ..\..\..\..\..\src\ta_func\ta_CDLTHRUSTING.c \ + ..\..\..\..\..\src\ta_func\ta_CDLTRISTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLUNIQUE3RIVER.c \ + ..\..\..\..\..\src\ta_func\ta_CDLUPSIDEGAP2CROWS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLXSIDEGAP3METHODS.c \ + ..\..\..\..\..\src\ta_func\ta_CEIL.c \ + ..\..\..\..\..\src\ta_func\ta_CMO.c \ + ..\..\..\..\..\src\ta_func\ta_CORREL.c \ + ..\..\..\..\..\src\ta_func\ta_COS.c \ + ..\..\..\..\..\src\ta_func\ta_COSH.c \ + ..\..\..\..\..\src\ta_func\ta_DEMA.c \ + ..\..\..\..\..\src\ta_func\ta_DIV.c \ + ..\..\..\..\..\src\ta_func\ta_DX.c \ + ..\..\..\..\..\src\ta_func\ta_EMA.c \ + ..\..\..\..\..\src\ta_func\ta_EXP.c \ + ..\..\..\..\..\src\ta_func\ta_FLOOR.c \ + ..\..\..\..\..\src\ta_func\ta_HT_DCPERIOD.c \ + ..\..\..\..\..\src\ta_func\ta_HT_DCPHASE.c \ + ..\..\..\..\..\src\ta_func\ta_HT_PHASOR.c \ + ..\..\..\..\..\src\ta_func\ta_HT_SINE.c \ + ..\..\..\..\..\src\ta_func\ta_HT_TRENDLINE.c \ + ..\..\..\..\..\src\ta_func\ta_HT_TRENDMODE.c \ + ..\..\..\..\..\src\ta_func\ta_KAMA.c \ + ..\..\..\..\..\src\ta_func\ta_LINEARREG.c \ + ..\..\..\..\..\src\ta_func\ta_LINEARREG_ANGLE.c \ + ..\..\..\..\..\src\ta_func\ta_LINEARREG_INTERCEPT.c \ + ..\..\..\..\..\src\ta_func\ta_LINEARREG_SLOPE.c \ + ..\..\..\..\..\src\ta_func\ta_LN.c \ + ..\..\..\..\..\src\ta_func\ta_LOG10.c \ + ..\..\..\..\..\src\ta_func\ta_MA.c \ + ..\..\..\..\..\src\ta_func\ta_MACD.c \ + ..\..\..\..\..\src\ta_func\ta_MACDEXT.c \ + ..\..\..\..\..\src\ta_func\ta_MACDFIX.c \ + ..\..\..\..\..\src\ta_func\ta_MAMA.c \ + ..\..\..\..\..\src\ta_func\ta_MAVP.c \ + ..\..\..\..\..\src\ta_func\ta_MAX.c \ + ..\..\..\..\..\src\ta_func\ta_MAXINDEX.c \ + ..\..\..\..\..\src\ta_func\ta_MEDPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_MFI.c \ + ..\..\..\..\..\src\ta_func\ta_MIDPOINT.c \ + ..\..\..\..\..\src\ta_func\ta_MIDPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_MIN.c \ + ..\..\..\..\..\src\ta_func\ta_MININDEX.c \ + ..\..\..\..\..\src\ta_func\ta_MINMAX.c \ + ..\..\..\..\..\src\ta_func\ta_MINMAXINDEX.c \ + ..\..\..\..\..\src\ta_func\ta_MINUS_DI.c \ + ..\..\..\..\..\src\ta_func\ta_MINUS_DM.c \ + ..\..\..\..\..\src\ta_func\ta_MOM.c \ + ..\..\..\..\..\src\ta_func\ta_MULT.c \ + ..\..\..\..\..\src\ta_func\ta_NATR.c \ + ..\..\..\..\..\src\ta_func\ta_OBV.c \ + ..\..\..\..\..\src\ta_func\ta_PLUS_DI.c \ + ..\..\..\..\..\src\ta_func\ta_PLUS_DM.c \ + ..\..\..\..\..\src\ta_func\ta_PPO.c \ + ..\..\..\..\..\src\ta_func\ta_ROC.c \ + ..\..\..\..\..\src\ta_func\ta_ROCP.c \ + ..\..\..\..\..\src\ta_func\ta_ROCR.c \ + ..\..\..\..\..\src\ta_func\ta_ROCR100.c \ + ..\..\..\..\..\src\ta_func\ta_RSI.c \ + ..\..\..\..\..\src\ta_func\ta_SAR.c \ + ..\..\..\..\..\src\ta_func\ta_SAREXT.c \ + ..\..\..\..\..\src\ta_func\ta_SIN.c \ + ..\..\..\..\..\src\ta_func\ta_SINH.c \ + ..\..\..\..\..\src\ta_func\ta_SMA.c \ + ..\..\..\..\..\src\ta_func\ta_SQRT.c \ + ..\..\..\..\..\src\ta_func\ta_STDDEV.c \ + ..\..\..\..\..\src\ta_func\ta_STOCH.c \ + ..\..\..\..\..\src\ta_func\ta_STOCHF.c \ + ..\..\..\..\..\src\ta_func\ta_STOCHRSI.c \ + ..\..\..\..\..\src\ta_func\ta_SUB.c \ + ..\..\..\..\..\src\ta_func\ta_SUM.c \ + ..\..\..\..\..\src\ta_func\ta_T3.c \ + ..\..\..\..\..\src\ta_func\ta_TAN.c \ + ..\..\..\..\..\src\ta_func\ta_TANH.c \ + ..\..\..\..\..\src\ta_func\ta_TEMA.c \ + ..\..\..\..\..\src\ta_func\ta_TRANGE.c \ + ..\..\..\..\..\src\ta_func\ta_TRIMA.c \ + ..\..\..\..\..\src\ta_func\ta_TRIX.c \ + ..\..\..\..\..\src\ta_func\ta_TSF.c \ + ..\..\..\..\..\src\ta_func\ta_TYPPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_ULTOSC.c \ + ..\..\..\..\..\src\ta_func\ta_VAR.c \ + ..\..\..\..\..\src\ta_func\ta_WCLPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_WILLR.c \ + ..\..\..\..\..\src\ta_func\ta_WMA.c +OBJECTS = ..\..\..\..\..\temp\cmd\ta_global.obj \ + ..\..\..\..\..\temp\cmd\ta_retcode.obj \ + ..\..\..\..\..\temp\cmd\ta_version.obj \ + ..\..\..\..\..\temp\cmd\ta_abstract.obj \ + ..\..\..\..\..\temp\cmd\ta_def_ui.obj \ + ..\..\..\..\..\temp\cmd\ta_func_api.obj \ + ..\..\..\..\..\temp\cmd\ta_group_idx.obj \ + ..\..\..\..\..\temp\cmd\ta_frame.obj \ + ..\..\..\..\..\temp\cmd\table_a.obj \ + ..\..\..\..\..\temp\cmd\table_b.obj \ + ..\..\..\..\..\temp\cmd\table_c.obj \ + ..\..\..\..\..\temp\cmd\table_d.obj \ + ..\..\..\..\..\temp\cmd\table_e.obj \ + ..\..\..\..\..\temp\cmd\table_f.obj \ + ..\..\..\..\..\temp\cmd\table_g.obj \ + ..\..\..\..\..\temp\cmd\table_h.obj \ + ..\..\..\..\..\temp\cmd\table_i.obj \ + ..\..\..\..\..\temp\cmd\table_j.obj \ + ..\..\..\..\..\temp\cmd\table_k.obj \ + ..\..\..\..\..\temp\cmd\table_l.obj \ + ..\..\..\..\..\temp\cmd\table_m.obj \ + ..\..\..\..\..\temp\cmd\table_n.obj \ + ..\..\..\..\..\temp\cmd\table_o.obj \ + ..\..\..\..\..\temp\cmd\table_p.obj \ + ..\..\..\..\..\temp\cmd\table_q.obj \ + ..\..\..\..\..\temp\cmd\table_r.obj \ + ..\..\..\..\..\temp\cmd\table_s.obj \ + ..\..\..\..\..\temp\cmd\table_t.obj \ + ..\..\..\..\..\temp\cmd\table_u.obj \ + ..\..\..\..\..\temp\cmd\table_v.obj \ + ..\..\..\..\..\temp\cmd\table_w.obj \ + ..\..\..\..\..\temp\cmd\table_x.obj \ + ..\..\..\..\..\temp\cmd\table_y.obj \ + ..\..\..\..\..\temp\cmd\table_z.obj \ + ..\..\..\..\..\temp\cmd\ta_utility.obj \ + ..\..\..\..\..\temp\cmd\ta_ACOS.obj \ + ..\..\..\..\..\temp\cmd\ta_AD.obj \ + ..\..\..\..\..\temp\cmd\ta_ADD.obj \ + ..\..\..\..\..\temp\cmd\ta_ADOSC.obj \ + ..\..\..\..\..\temp\cmd\ta_ADX.obj \ + ..\..\..\..\..\temp\cmd\ta_ADXR.obj \ + ..\..\..\..\..\temp\cmd\ta_APO.obj \ + ..\..\..\..\..\temp\cmd\ta_AROON.obj \ + ..\..\..\..\..\temp\cmd\ta_AROONOSC.obj \ + ..\..\..\..\..\temp\cmd\ta_ASIN.obj \ + ..\..\..\..\..\temp\cmd\ta_ATAN.obj \ + ..\..\..\..\..\temp\cmd\ta_ATR.obj \ + ..\..\..\..\..\temp\cmd\ta_AVGPRICE.obj \ + ..\..\..\..\..\temp\cmd\ta_BBANDS.obj \ + ..\..\..\..\..\temp\cmd\ta_BETA.obj \ + ..\..\..\..\..\temp\cmd\ta_BOP.obj \ + ..\..\..\..\..\temp\cmd\ta_CCI.obj \ + ..\..\..\..\..\temp\cmd\ta_CDL2CROWS.obj \ + ..\..\..\..\..\temp\cmd\ta_CDL3BLACKCROWS.obj \ + ..\..\..\..\..\temp\cmd\ta_CDL3INSIDE.obj \ + ..\..\..\..\..\temp\cmd\ta_CDL3LINESTRIKE.obj \ + ..\..\..\..\..\temp\cmd\ta_CDL3OUTSIDE.obj \ + ..\..\..\..\..\temp\cmd\ta_CDL3STARSINSOUTH.obj \ + ..\..\..\..\..\temp\cmd\ta_CDL3WHITESOLDIERS.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLABANDONEDBABY.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLADVANCEBLOCK.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLBELTHOLD.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLBREAKAWAY.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLCLOSINGMARUBOZU.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLCONCEALBABYSWALL.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLCOUNTERATTACK.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLDARKCLOUDCOVER.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLDOJI.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLDOJISTAR.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLDRAGONFLYDOJI.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLENGULFING.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLEVENINGDOJISTAR.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLEVENINGSTAR.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLGAPSIDESIDEWHITE.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLGRAVESTONEDOJI.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLHAMMER.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLHANGINGMAN.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLHARAMI.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLHARAMICROSS.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLHIGHWAVE.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLHIKKAKE.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLHIKKAKEMOD.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLHOMINGPIGEON.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLIDENTICAL3CROWS.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLINNECK.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLINVERTEDHAMMER.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLKICKING.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLKICKINGBYLENGTH.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLLADDERBOTTOM.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLLONGLEGGEDDOJI.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLLONGLINE.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLMARUBOZU.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLMATCHINGLOW.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLMATHOLD.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLMORNINGDOJISTAR.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLMORNINGSTAR.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLONNECK.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLPIERCING.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLRICKSHAWMAN.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLRISEFALL3METHODS.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLSEPARATINGLINES.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLSHOOTINGSTAR.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLSHORTLINE.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLSPINNINGTOP.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLSTALLEDPATTERN.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLSTICKSANDWICH.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLTAKURI.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLTASUKIGAP.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLTHRUSTING.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLTRISTAR.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLUNIQUE3RIVER.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLUPSIDEGAP2CROWS.obj \ + ..\..\..\..\..\temp\cmd\ta_CDLXSIDEGAP3METHODS.obj \ + ..\..\..\..\..\temp\cmd\ta_CEIL.obj \ + ..\..\..\..\..\temp\cmd\ta_CMO.obj \ + ..\..\..\..\..\temp\cmd\ta_CORREL.obj \ + ..\..\..\..\..\temp\cmd\ta_COS.obj \ + ..\..\..\..\..\temp\cmd\ta_COSH.obj \ + ..\..\..\..\..\temp\cmd\ta_DEMA.obj \ + ..\..\..\..\..\temp\cmd\ta_DIV.obj \ + ..\..\..\..\..\temp\cmd\ta_DX.obj \ + ..\..\..\..\..\temp\cmd\ta_EMA.obj \ + ..\..\..\..\..\temp\cmd\ta_EXP.obj \ + ..\..\..\..\..\temp\cmd\ta_FLOOR.obj \ + ..\..\..\..\..\temp\cmd\ta_HT_DCPERIOD.obj \ + ..\..\..\..\..\temp\cmd\ta_HT_DCPHASE.obj \ + ..\..\..\..\..\temp\cmd\ta_HT_PHASOR.obj \ + ..\..\..\..\..\temp\cmd\ta_HT_SINE.obj \ + ..\..\..\..\..\temp\cmd\ta_HT_TRENDLINE.obj \ + ..\..\..\..\..\temp\cmd\ta_HT_TRENDMODE.obj \ + ..\..\..\..\..\temp\cmd\ta_KAMA.obj \ + ..\..\..\..\..\temp\cmd\ta_LINEARREG.obj \ + ..\..\..\..\..\temp\cmd\ta_LINEARREG_ANGLE.obj \ + ..\..\..\..\..\temp\cmd\ta_LINEARREG_INTERCEPT.obj \ + ..\..\..\..\..\temp\cmd\ta_LINEARREG_SLOPE.obj \ + ..\..\..\..\..\temp\cmd\ta_LN.obj \ + ..\..\..\..\..\temp\cmd\ta_LOG10.obj \ + ..\..\..\..\..\temp\cmd\ta_MA.obj \ + ..\..\..\..\..\temp\cmd\ta_MACD.obj \ + ..\..\..\..\..\temp\cmd\ta_MACDEXT.obj \ + ..\..\..\..\..\temp\cmd\ta_MACDFIX.obj \ + ..\..\..\..\..\temp\cmd\ta_MAMA.obj \ + ..\..\..\..\..\temp\cmd\ta_MAVP.obj \ + ..\..\..\..\..\temp\cmd\ta_MAX.obj \ + ..\..\..\..\..\temp\cmd\ta_MAXINDEX.obj \ + ..\..\..\..\..\temp\cmd\ta_MEDPRICE.obj \ + ..\..\..\..\..\temp\cmd\ta_MFI.obj \ + ..\..\..\..\..\temp\cmd\ta_MIDPOINT.obj \ + ..\..\..\..\..\temp\cmd\ta_MIDPRICE.obj \ + ..\..\..\..\..\temp\cmd\ta_MIN.obj \ + ..\..\..\..\..\temp\cmd\ta_MININDEX.obj \ + ..\..\..\..\..\temp\cmd\ta_MINMAX.obj \ + ..\..\..\..\..\temp\cmd\ta_MINMAXINDEX.obj \ + ..\..\..\..\..\temp\cmd\ta_MINUS_DI.obj \ + ..\..\..\..\..\temp\cmd\ta_MINUS_DM.obj \ + ..\..\..\..\..\temp\cmd\ta_MOM.obj \ + ..\..\..\..\..\temp\cmd\ta_MULT.obj \ + ..\..\..\..\..\temp\cmd\ta_NATR.obj \ + ..\..\..\..\..\temp\cmd\ta_OBV.obj \ + ..\..\..\..\..\temp\cmd\ta_PLUS_DI.obj \ + ..\..\..\..\..\temp\cmd\ta_PLUS_DM.obj \ + ..\..\..\..\..\temp\cmd\ta_PPO.obj \ + ..\..\..\..\..\temp\cmd\ta_ROC.obj \ + ..\..\..\..\..\temp\cmd\ta_ROCP.obj \ + ..\..\..\..\..\temp\cmd\ta_ROCR.obj \ + ..\..\..\..\..\temp\cmd\ta_ROCR100.obj \ + ..\..\..\..\..\temp\cmd\ta_RSI.obj \ + ..\..\..\..\..\temp\cmd\ta_SAR.obj \ + ..\..\..\..\..\temp\cmd\ta_SAREXT.obj \ + ..\..\..\..\..\temp\cmd\ta_SIN.obj \ + ..\..\..\..\..\temp\cmd\ta_SINH.obj \ + ..\..\..\..\..\temp\cmd\ta_SMA.obj \ + ..\..\..\..\..\temp\cmd\ta_SQRT.obj \ + ..\..\..\..\..\temp\cmd\ta_STDDEV.obj \ + ..\..\..\..\..\temp\cmd\ta_STOCH.obj \ + ..\..\..\..\..\temp\cmd\ta_STOCHF.obj \ + ..\..\..\..\..\temp\cmd\ta_STOCHRSI.obj \ + ..\..\..\..\..\temp\cmd\ta_SUB.obj \ + ..\..\..\..\..\temp\cmd\ta_SUM.obj \ + ..\..\..\..\..\temp\cmd\ta_T3.obj \ + ..\..\..\..\..\temp\cmd\ta_TAN.obj \ + ..\..\..\..\..\temp\cmd\ta_TANH.obj \ + ..\..\..\..\..\temp\cmd\ta_TEMA.obj \ + ..\..\..\..\..\temp\cmd\ta_TRANGE.obj \ + ..\..\..\..\..\temp\cmd\ta_TRIMA.obj \ + ..\..\..\..\..\temp\cmd\ta_TRIX.obj \ + ..\..\..\..\..\temp\cmd\ta_TSF.obj \ + ..\..\..\..\..\temp\cmd\ta_TYPPRICE.obj \ + ..\..\..\..\..\temp\cmd\ta_ULTOSC.obj \ + ..\..\..\..\..\temp\cmd\ta_VAR.obj \ + ..\..\..\..\..\temp\cmd\ta_WCLPRICE.obj \ + ..\..\..\..\..\temp\cmd\ta_WILLR.obj \ + ..\..\..\..\..\temp\cmd\ta_WMA.obj +SRCMOC = +OBJMOC = +DIST = +TARGET = ..\..\..\..\..\lib\ta_libc_cmd.lib + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .c + +.cpp.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.cxx.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.cc.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.c.obj: + $(CC) -c $(CFLAGS) $(INCPATH) -o$@ $< + +####### Build rules + +all: $(TARGET) + +$(TARGET): $(OBJECTS) $(OBJMOC) + -del $(TARGET) + $(LIB) $(TARGET) ..\..\..\..\..\temp\cmd\ta_global.obj \ ++..\..\..\..\..\temp\cmd\ta_retcode.obj \ ++..\..\..\..\..\temp\cmd\ta_version.obj \ ++..\..\..\..\..\temp\cmd\ta_abstract.obj \ ++..\..\..\..\..\temp\cmd\ta_def_ui.obj \ ++..\..\..\..\..\temp\cmd\ta_func_api.obj \ ++..\..\..\..\..\temp\cmd\ta_group_idx.obj \ ++..\..\..\..\..\temp\cmd\ta_frame.obj \ ++..\..\..\..\..\temp\cmd\table_a.obj \ ++..\..\..\..\..\temp\cmd\table_b.obj \ ++..\..\..\..\..\temp\cmd\table_c.obj \ ++..\..\..\..\..\temp\cmd\table_d.obj \ ++..\..\..\..\..\temp\cmd\table_e.obj \ ++..\..\..\..\..\temp\cmd\table_f.obj \ ++..\..\..\..\..\temp\cmd\table_g.obj \ ++..\..\..\..\..\temp\cmd\table_h.obj \ ++..\..\..\..\..\temp\cmd\table_i.obj \ ++..\..\..\..\..\temp\cmd\table_j.obj \ ++..\..\..\..\..\temp\cmd\table_k.obj \ ++..\..\..\..\..\temp\cmd\table_l.obj \ ++..\..\..\..\..\temp\cmd\table_m.obj \ ++..\..\..\..\..\temp\cmd\table_n.obj \ ++..\..\..\..\..\temp\cmd\table_o.obj \ ++..\..\..\..\..\temp\cmd\table_p.obj \ ++..\..\..\..\..\temp\cmd\table_q.obj \ ++..\..\..\..\..\temp\cmd\table_r.obj \ ++..\..\..\..\..\temp\cmd\table_s.obj \ ++..\..\..\..\..\temp\cmd\table_t.obj \ ++..\..\..\..\..\temp\cmd\table_u.obj \ ++..\..\..\..\..\temp\cmd\table_v.obj \ ++..\..\..\..\..\temp\cmd\table_w.obj \ ++..\..\..\..\..\temp\cmd\table_x.obj \ ++..\..\..\..\..\temp\cmd\table_y.obj \ ++..\..\..\..\..\temp\cmd\table_z.obj \ ++..\..\..\..\..\temp\cmd\ta_utility.obj \ ++..\..\..\..\..\temp\cmd\ta_ACOS.obj \ ++..\..\..\..\..\temp\cmd\ta_AD.obj \ ++..\..\..\..\..\temp\cmd\ta_ADD.obj \ ++..\..\..\..\..\temp\cmd\ta_ADOSC.obj \ ++..\..\..\..\..\temp\cmd\ta_ADX.obj \ ++..\..\..\..\..\temp\cmd\ta_ADXR.obj \ ++..\..\..\..\..\temp\cmd\ta_APO.obj \ ++..\..\..\..\..\temp\cmd\ta_AROON.obj \ ++..\..\..\..\..\temp\cmd\ta_AROONOSC.obj \ ++..\..\..\..\..\temp\cmd\ta_ASIN.obj \ ++..\..\..\..\..\temp\cmd\ta_ATAN.obj \ ++..\..\..\..\..\temp\cmd\ta_ATR.obj \ ++..\..\..\..\..\temp\cmd\ta_AVGPRICE.obj \ ++..\..\..\..\..\temp\cmd\ta_BBANDS.obj \ ++..\..\..\..\..\temp\cmd\ta_BETA.obj \ ++..\..\..\..\..\temp\cmd\ta_BOP.obj \ ++..\..\..\..\..\temp\cmd\ta_CCI.obj \ ++..\..\..\..\..\temp\cmd\ta_CDL2CROWS.obj \ ++..\..\..\..\..\temp\cmd\ta_CDL3BLACKCROWS.obj \ ++..\..\..\..\..\temp\cmd\ta_CDL3INSIDE.obj \ ++..\..\..\..\..\temp\cmd\ta_CDL3LINESTRIKE.obj \ ++..\..\..\..\..\temp\cmd\ta_CDL3OUTSIDE.obj \ ++..\..\..\..\..\temp\cmd\ta_CDL3STARSINSOUTH.obj \ ++..\..\..\..\..\temp\cmd\ta_CDL3WHITESOLDIERS.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLABANDONEDBABY.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLADVANCEBLOCK.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLBELTHOLD.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLBREAKAWAY.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLCLOSINGMARUBOZU.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLCONCEALBABYSWALL.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLCOUNTERATTACK.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLDARKCLOUDCOVER.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLDOJI.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLDOJISTAR.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLDRAGONFLYDOJI.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLENGULFING.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLEVENINGDOJISTAR.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLEVENINGSTAR.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLGAPSIDESIDEWHITE.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLGRAVESTONEDOJI.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLHAMMER.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLHANGINGMAN.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLHARAMI.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLHARAMICROSS.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLHIGHWAVE.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLHIKKAKE.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLHIKKAKEMOD.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLHOMINGPIGEON.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLIDENTICAL3CROWS.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLINNECK.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLINVERTEDHAMMER.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLKICKING.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLKICKINGBYLENGTH.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLLADDERBOTTOM.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLLONGLEGGEDDOJI.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLLONGLINE.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLMARUBOZU.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLMATCHINGLOW.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLMATHOLD.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLMORNINGDOJISTAR.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLMORNINGSTAR.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLONNECK.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLPIERCING.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLRICKSHAWMAN.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLRISEFALL3METHODS.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLSEPARATINGLINES.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLSHOOTINGSTAR.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLSHORTLINE.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLSPINNINGTOP.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLSTALLEDPATTERN.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLSTICKSANDWICH.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLTAKURI.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLTASUKIGAP.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLTHRUSTING.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLTRISTAR.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLUNIQUE3RIVER.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLUPSIDEGAP2CROWS.obj \ ++..\..\..\..\..\temp\cmd\ta_CDLXSIDEGAP3METHODS.obj \ ++..\..\..\..\..\temp\cmd\ta_CEIL.obj \ ++..\..\..\..\..\temp\cmd\ta_CMO.obj \ ++..\..\..\..\..\temp\cmd\ta_CORREL.obj \ ++..\..\..\..\..\temp\cmd\ta_COS.obj \ ++..\..\..\..\..\temp\cmd\ta_COSH.obj \ ++..\..\..\..\..\temp\cmd\ta_DEMA.obj \ ++..\..\..\..\..\temp\cmd\ta_DIV.obj \ ++..\..\..\..\..\temp\cmd\ta_DX.obj \ ++..\..\..\..\..\temp\cmd\ta_EMA.obj \ ++..\..\..\..\..\temp\cmd\ta_EXP.obj \ ++..\..\..\..\..\temp\cmd\ta_FLOOR.obj \ ++..\..\..\..\..\temp\cmd\ta_HT_DCPERIOD.obj \ ++..\..\..\..\..\temp\cmd\ta_HT_DCPHASE.obj \ ++..\..\..\..\..\temp\cmd\ta_HT_PHASOR.obj \ ++..\..\..\..\..\temp\cmd\ta_HT_SINE.obj \ ++..\..\..\..\..\temp\cmd\ta_HT_TRENDLINE.obj \ ++..\..\..\..\..\temp\cmd\ta_HT_TRENDMODE.obj \ ++..\..\..\..\..\temp\cmd\ta_KAMA.obj \ ++..\..\..\..\..\temp\cmd\ta_LINEARREG.obj \ ++..\..\..\..\..\temp\cmd\ta_LINEARREG_ANGLE.obj \ ++..\..\..\..\..\temp\cmd\ta_LINEARREG_INTERCEPT.obj \ ++..\..\..\..\..\temp\cmd\ta_LINEARREG_SLOPE.obj \ ++..\..\..\..\..\temp\cmd\ta_LN.obj \ ++..\..\..\..\..\temp\cmd\ta_LOG10.obj \ ++..\..\..\..\..\temp\cmd\ta_MA.obj \ ++..\..\..\..\..\temp\cmd\ta_MACD.obj \ ++..\..\..\..\..\temp\cmd\ta_MACDEXT.obj \ ++..\..\..\..\..\temp\cmd\ta_MACDFIX.obj \ ++..\..\..\..\..\temp\cmd\ta_MAMA.obj \ ++..\..\..\..\..\temp\cmd\ta_MAVP.obj \ ++..\..\..\..\..\temp\cmd\ta_MAX.obj \ ++..\..\..\..\..\temp\cmd\ta_MAXINDEX.obj \ ++..\..\..\..\..\temp\cmd\ta_MEDPRICE.obj \ ++..\..\..\..\..\temp\cmd\ta_MFI.obj \ ++..\..\..\..\..\temp\cmd\ta_MIDPOINT.obj \ ++..\..\..\..\..\temp\cmd\ta_MIDPRICE.obj \ ++..\..\..\..\..\temp\cmd\ta_MIN.obj \ ++..\..\..\..\..\temp\cmd\ta_MININDEX.obj \ ++..\..\..\..\..\temp\cmd\ta_MINMAX.obj \ ++..\..\..\..\..\temp\cmd\ta_MINMAXINDEX.obj \ ++..\..\..\..\..\temp\cmd\ta_MINUS_DI.obj \ ++..\..\..\..\..\temp\cmd\ta_MINUS_DM.obj \ ++..\..\..\..\..\temp\cmd\ta_MOM.obj \ ++..\..\..\..\..\temp\cmd\ta_MULT.obj \ ++..\..\..\..\..\temp\cmd\ta_NATR.obj \ ++..\..\..\..\..\temp\cmd\ta_OBV.obj \ ++..\..\..\..\..\temp\cmd\ta_PLUS_DI.obj \ ++..\..\..\..\..\temp\cmd\ta_PLUS_DM.obj \ ++..\..\..\..\..\temp\cmd\ta_PPO.obj \ ++..\..\..\..\..\temp\cmd\ta_ROC.obj \ ++..\..\..\..\..\temp\cmd\ta_ROCP.obj \ ++..\..\..\..\..\temp\cmd\ta_ROCR.obj \ ++..\..\..\..\..\temp\cmd\ta_ROCR100.obj \ ++..\..\..\..\..\temp\cmd\ta_RSI.obj \ ++..\..\..\..\..\temp\cmd\ta_SAR.obj \ ++..\..\..\..\..\temp\cmd\ta_SAREXT.obj \ ++..\..\..\..\..\temp\cmd\ta_SIN.obj \ ++..\..\..\..\..\temp\cmd\ta_SINH.obj \ ++..\..\..\..\..\temp\cmd\ta_SMA.obj \ ++..\..\..\..\..\temp\cmd\ta_SQRT.obj \ ++..\..\..\..\..\temp\cmd\ta_STDDEV.obj \ ++..\..\..\..\..\temp\cmd\ta_STOCH.obj \ ++..\..\..\..\..\temp\cmd\ta_STOCHF.obj \ ++..\..\..\..\..\temp\cmd\ta_STOCHRSI.obj \ ++..\..\..\..\..\temp\cmd\ta_SUB.obj \ ++..\..\..\..\..\temp\cmd\ta_SUM.obj \ ++..\..\..\..\..\temp\cmd\ta_T3.obj \ ++..\..\..\..\..\temp\cmd\ta_TAN.obj \ ++..\..\..\..\..\temp\cmd\ta_TANH.obj \ ++..\..\..\..\..\temp\cmd\ta_TEMA.obj \ ++..\..\..\..\..\temp\cmd\ta_TRANGE.obj \ ++..\..\..\..\..\temp\cmd\ta_TRIMA.obj \ ++..\..\..\..\..\temp\cmd\ta_TRIX.obj \ ++..\..\..\..\..\temp\cmd\ta_TSF.obj \ ++..\..\..\..\..\temp\cmd\ta_TYPPRICE.obj \ ++..\..\..\..\..\temp\cmd\ta_ULTOSC.obj \ ++..\..\..\..\..\temp\cmd\ta_VAR.obj \ ++..\..\..\..\..\temp\cmd\ta_WCLPRICE.obj \ ++..\..\..\..\..\temp\cmd\ta_WILLR.obj \ ++..\..\..\..\..\temp\cmd\ta_WMA.obj \ ++,; + +moc: $(SRCMOC) + +tmake: ../cmd/win32/symantec/ta_libc/Makefile + +../cmd/win32/symantec/ta_libc/Makefile: ta_libc/ta_libc.pro + tmake ta_libc/ta_libc.pro -o ../cmd/win32/symantec/ta_libc/Makefile + +dist: + $(ZIP) ta_libc/ta_libc.zip ta_libc/ta_libc.pro $(SOURCES) $(HEADERS) $(DIST) + +clean: + -del ..\..\..\..\..\temp\cmd\ta_global.obj + -del ..\..\..\..\..\temp\cmd\ta_retcode.obj + -del ..\..\..\..\..\temp\cmd\ta_version.obj + -del ..\..\..\..\..\temp\cmd\ta_abstract.obj + -del ..\..\..\..\..\temp\cmd\ta_def_ui.obj + -del ..\..\..\..\..\temp\cmd\ta_func_api.obj + -del ..\..\..\..\..\temp\cmd\ta_group_idx.obj + -del ..\..\..\..\..\temp\cmd\ta_frame.obj + -del ..\..\..\..\..\temp\cmd\table_a.obj + -del ..\..\..\..\..\temp\cmd\table_b.obj + -del ..\..\..\..\..\temp\cmd\table_c.obj + -del ..\..\..\..\..\temp\cmd\table_d.obj + -del ..\..\..\..\..\temp\cmd\table_e.obj + -del ..\..\..\..\..\temp\cmd\table_f.obj + -del ..\..\..\..\..\temp\cmd\table_g.obj + -del ..\..\..\..\..\temp\cmd\table_h.obj + -del ..\..\..\..\..\temp\cmd\table_i.obj + -del ..\..\..\..\..\temp\cmd\table_j.obj + -del ..\..\..\..\..\temp\cmd\table_k.obj + -del ..\..\..\..\..\temp\cmd\table_l.obj + -del ..\..\..\..\..\temp\cmd\table_m.obj + -del ..\..\..\..\..\temp\cmd\table_n.obj + -del ..\..\..\..\..\temp\cmd\table_o.obj + -del ..\..\..\..\..\temp\cmd\table_p.obj + -del ..\..\..\..\..\temp\cmd\table_q.obj + -del ..\..\..\..\..\temp\cmd\table_r.obj + -del ..\..\..\..\..\temp\cmd\table_s.obj + -del ..\..\..\..\..\temp\cmd\table_t.obj + -del ..\..\..\..\..\temp\cmd\table_u.obj + -del ..\..\..\..\..\temp\cmd\table_v.obj + -del ..\..\..\..\..\temp\cmd\table_w.obj + -del ..\..\..\..\..\temp\cmd\table_x.obj + -del ..\..\..\..\..\temp\cmd\table_y.obj + -del ..\..\..\..\..\temp\cmd\table_z.obj + -del ..\..\..\..\..\temp\cmd\ta_utility.obj + -del ..\..\..\..\..\temp\cmd\ta_ACOS.obj + -del ..\..\..\..\..\temp\cmd\ta_AD.obj + -del ..\..\..\..\..\temp\cmd\ta_ADD.obj + -del ..\..\..\..\..\temp\cmd\ta_ADOSC.obj + -del ..\..\..\..\..\temp\cmd\ta_ADX.obj + -del ..\..\..\..\..\temp\cmd\ta_ADXR.obj + -del ..\..\..\..\..\temp\cmd\ta_APO.obj + -del ..\..\..\..\..\temp\cmd\ta_AROON.obj + -del ..\..\..\..\..\temp\cmd\ta_AROONOSC.obj + -del ..\..\..\..\..\temp\cmd\ta_ASIN.obj + -del ..\..\..\..\..\temp\cmd\ta_ATAN.obj + -del ..\..\..\..\..\temp\cmd\ta_ATR.obj + -del ..\..\..\..\..\temp\cmd\ta_AVGPRICE.obj + -del ..\..\..\..\..\temp\cmd\ta_BBANDS.obj + -del ..\..\..\..\..\temp\cmd\ta_BETA.obj + -del ..\..\..\..\..\temp\cmd\ta_BOP.obj + -del ..\..\..\..\..\temp\cmd\ta_CCI.obj + -del ..\..\..\..\..\temp\cmd\ta_CDL2CROWS.obj + -del ..\..\..\..\..\temp\cmd\ta_CDL3BLACKCROWS.obj + -del ..\..\..\..\..\temp\cmd\ta_CDL3INSIDE.obj + -del ..\..\..\..\..\temp\cmd\ta_CDL3LINESTRIKE.obj + -del ..\..\..\..\..\temp\cmd\ta_CDL3OUTSIDE.obj + -del ..\..\..\..\..\temp\cmd\ta_CDL3STARSINSOUTH.obj + -del ..\..\..\..\..\temp\cmd\ta_CDL3WHITESOLDIERS.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLABANDONEDBABY.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLADVANCEBLOCK.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLBELTHOLD.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLBREAKAWAY.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLCLOSINGMARUBOZU.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLCONCEALBABYSWALL.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLCOUNTERATTACK.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLDARKCLOUDCOVER.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLDOJI.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLDOJISTAR.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLDRAGONFLYDOJI.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLENGULFING.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLEVENINGDOJISTAR.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLEVENINGSTAR.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLGAPSIDESIDEWHITE.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLGRAVESTONEDOJI.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLHAMMER.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLHANGINGMAN.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLHARAMI.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLHARAMICROSS.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLHIGHWAVE.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLHIKKAKE.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLHIKKAKEMOD.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLHOMINGPIGEON.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLIDENTICAL3CROWS.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLINNECK.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLINVERTEDHAMMER.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLKICKING.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLKICKINGBYLENGTH.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLLADDERBOTTOM.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLLONGLEGGEDDOJI.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLLONGLINE.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLMARUBOZU.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLMATCHINGLOW.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLMATHOLD.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLMORNINGDOJISTAR.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLMORNINGSTAR.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLONNECK.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLPIERCING.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLRICKSHAWMAN.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLRISEFALL3METHODS.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLSEPARATINGLINES.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLSHOOTINGSTAR.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLSHORTLINE.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLSPINNINGTOP.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLSTALLEDPATTERN.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLSTICKSANDWICH.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLTAKURI.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLTASUKIGAP.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLTHRUSTING.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLTRISTAR.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLUNIQUE3RIVER.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLUPSIDEGAP2CROWS.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLXSIDEGAP3METHODS.obj + -del ..\..\..\..\..\temp\cmd\ta_CEIL.obj + -del ..\..\..\..\..\temp\cmd\ta_CMO.obj + -del ..\..\..\..\..\temp\cmd\ta_CORREL.obj + -del ..\..\..\..\..\temp\cmd\ta_COS.obj + -del ..\..\..\..\..\temp\cmd\ta_COSH.obj + -del ..\..\..\..\..\temp\cmd\ta_DEMA.obj + -del ..\..\..\..\..\temp\cmd\ta_DIV.obj + -del ..\..\..\..\..\temp\cmd\ta_DX.obj + -del ..\..\..\..\..\temp\cmd\ta_EMA.obj + -del ..\..\..\..\..\temp\cmd\ta_EXP.obj + -del ..\..\..\..\..\temp\cmd\ta_FLOOR.obj + -del ..\..\..\..\..\temp\cmd\ta_HT_DCPERIOD.obj + -del ..\..\..\..\..\temp\cmd\ta_HT_DCPHASE.obj + -del ..\..\..\..\..\temp\cmd\ta_HT_PHASOR.obj + -del ..\..\..\..\..\temp\cmd\ta_HT_SINE.obj + -del ..\..\..\..\..\temp\cmd\ta_HT_TRENDLINE.obj + -del ..\..\..\..\..\temp\cmd\ta_HT_TRENDMODE.obj + -del ..\..\..\..\..\temp\cmd\ta_KAMA.obj + -del ..\..\..\..\..\temp\cmd\ta_LINEARREG.obj + -del ..\..\..\..\..\temp\cmd\ta_LINEARREG_ANGLE.obj + -del ..\..\..\..\..\temp\cmd\ta_LINEARREG_INTERCEPT.obj + -del ..\..\..\..\..\temp\cmd\ta_LINEARREG_SLOPE.obj + -del ..\..\..\..\..\temp\cmd\ta_LN.obj + -del ..\..\..\..\..\temp\cmd\ta_LOG10.obj + -del ..\..\..\..\..\temp\cmd\ta_MA.obj + -del ..\..\..\..\..\temp\cmd\ta_MACD.obj + -del ..\..\..\..\..\temp\cmd\ta_MACDEXT.obj + -del ..\..\..\..\..\temp\cmd\ta_MACDFIX.obj + -del ..\..\..\..\..\temp\cmd\ta_MAMA.obj + -del ..\..\..\..\..\temp\cmd\ta_MAVP.obj + -del ..\..\..\..\..\temp\cmd\ta_MAX.obj + -del ..\..\..\..\..\temp\cmd\ta_MAXINDEX.obj + -del ..\..\..\..\..\temp\cmd\ta_MEDPRICE.obj + -del ..\..\..\..\..\temp\cmd\ta_MFI.obj + -del ..\..\..\..\..\temp\cmd\ta_MIDPOINT.obj + -del ..\..\..\..\..\temp\cmd\ta_MIDPRICE.obj + -del ..\..\..\..\..\temp\cmd\ta_MIN.obj + -del ..\..\..\..\..\temp\cmd\ta_MININDEX.obj + -del ..\..\..\..\..\temp\cmd\ta_MINMAX.obj + -del ..\..\..\..\..\temp\cmd\ta_MINMAXINDEX.obj + -del ..\..\..\..\..\temp\cmd\ta_MINUS_DI.obj + -del ..\..\..\..\..\temp\cmd\ta_MINUS_DM.obj + -del ..\..\..\..\..\temp\cmd\ta_MOM.obj + -del ..\..\..\..\..\temp\cmd\ta_MULT.obj + -del ..\..\..\..\..\temp\cmd\ta_NATR.obj + -del ..\..\..\..\..\temp\cmd\ta_OBV.obj + -del ..\..\..\..\..\temp\cmd\ta_PLUS_DI.obj + -del ..\..\..\..\..\temp\cmd\ta_PLUS_DM.obj + -del ..\..\..\..\..\temp\cmd\ta_PPO.obj + -del ..\..\..\..\..\temp\cmd\ta_ROC.obj + -del ..\..\..\..\..\temp\cmd\ta_ROCP.obj + -del ..\..\..\..\..\temp\cmd\ta_ROCR.obj + -del ..\..\..\..\..\temp\cmd\ta_ROCR100.obj + -del ..\..\..\..\..\temp\cmd\ta_RSI.obj + -del ..\..\..\..\..\temp\cmd\ta_SAR.obj + -del ..\..\..\..\..\temp\cmd\ta_SAREXT.obj + -del ..\..\..\..\..\temp\cmd\ta_SIN.obj + -del ..\..\..\..\..\temp\cmd\ta_SINH.obj + -del ..\..\..\..\..\temp\cmd\ta_SMA.obj + -del ..\..\..\..\..\temp\cmd\ta_SQRT.obj + -del ..\..\..\..\..\temp\cmd\ta_STDDEV.obj + -del ..\..\..\..\..\temp\cmd\ta_STOCH.obj + -del ..\..\..\..\..\temp\cmd\ta_STOCHF.obj + -del ..\..\..\..\..\temp\cmd\ta_STOCHRSI.obj + -del ..\..\..\..\..\temp\cmd\ta_SUB.obj + -del ..\..\..\..\..\temp\cmd\ta_SUM.obj + -del ..\..\..\..\..\temp\cmd\ta_T3.obj + -del ..\..\..\..\..\temp\cmd\ta_TAN.obj + -del ..\..\..\..\..\temp\cmd\ta_TANH.obj + -del ..\..\..\..\..\temp\cmd\ta_TEMA.obj + -del ..\..\..\..\..\temp\cmd\ta_TRANGE.obj + -del ..\..\..\..\..\temp\cmd\ta_TRIMA.obj + -del ..\..\..\..\..\temp\cmd\ta_TRIX.obj + -del ..\..\..\..\..\temp\cmd\ta_TSF.obj + -del ..\..\..\..\..\temp\cmd\ta_TYPPRICE.obj + -del ..\..\..\..\..\temp\cmd\ta_ULTOSC.obj + -del ..\..\..\..\..\temp\cmd\ta_VAR.obj + -del ..\..\..\..\..\temp\cmd\ta_WCLPRICE.obj + -del ..\..\..\..\..\temp\cmd\ta_WILLR.obj + -del ..\..\..\..\..\temp\cmd\ta_WMA.obj + -del $(TARGET) + -del ../../../../../bin/*.map + -del ../../../../../bin/*._xe + -del ../../../../../bin/*.tds + -del ../../../../../bin/*.pdb + -del ../../../../../bin/*.pbo + -del ../../../../../bin/*.pbi + -del ../../../../../bin/*.pbt + +####### Compile + +..\..\..\..\..\temp\cmd\ta_global.obj: ..\..\..\..\..\src\ta_common\ta_global.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_global.obj ..\..\..\..\..\src\ta_common\ta_global.c + +..\..\..\..\..\temp\cmd\ta_retcode.obj: ..\..\..\..\..\src\ta_common\ta_retcode.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_retcode.obj ..\..\..\..\..\src\ta_common\ta_retcode.c + +..\..\..\..\..\temp\cmd\ta_version.obj: ..\..\..\..\..\src\ta_common\ta_version.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_version.obj ..\..\..\..\..\src\ta_common\ta_version.c + +..\..\..\..\..\temp\cmd\ta_abstract.obj: ..\..\..\..\..\src\ta_abstract\ta_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_abstract.obj ..\..\..\..\..\src\ta_abstract\ta_abstract.c + +..\..\..\..\..\temp\cmd\ta_def_ui.obj: ..\..\..\..\..\src\ta_abstract\ta_def_ui.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_def_ui.obj ..\..\..\..\..\src\ta_abstract\ta_def_ui.c + +..\..\..\..\..\temp\cmd\ta_func_api.obj: ..\..\..\..\..\src\ta_abstract\ta_func_api.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_func_api.obj ..\..\..\..\..\src\ta_abstract\ta_func_api.c + +..\..\..\..\..\temp\cmd\ta_group_idx.obj: ..\..\..\..\..\src\ta_abstract\ta_group_idx.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_group_idx.obj ..\..\..\..\..\src\ta_abstract\ta_group_idx.c + +..\..\..\..\..\temp\cmd\ta_frame.obj: ..\..\..\..\..\src\ta_abstract\frames\ta_frame.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_frame.obj ..\..\..\..\..\src\ta_abstract\frames\ta_frame.c + +..\..\..\..\..\temp\cmd\table_a.obj: ..\..\..\..\..\src\ta_abstract\tables\table_a.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\table_a.obj ..\..\..\..\..\src\ta_abstract\tables\table_a.c + +..\..\..\..\..\temp\cmd\table_b.obj: ..\..\..\..\..\src\ta_abstract\tables\table_b.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\table_b.obj ..\..\..\..\..\src\ta_abstract\tables\table_b.c + +..\..\..\..\..\temp\cmd\table_c.obj: ..\..\..\..\..\src\ta_abstract\tables\table_c.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\table_c.obj ..\..\..\..\..\src\ta_abstract\tables\table_c.c + +..\..\..\..\..\temp\cmd\table_d.obj: ..\..\..\..\..\src\ta_abstract\tables\table_d.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\table_d.obj ..\..\..\..\..\src\ta_abstract\tables\table_d.c + +..\..\..\..\..\temp\cmd\table_e.obj: ..\..\..\..\..\src\ta_abstract\tables\table_e.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\table_e.obj ..\..\..\..\..\src\ta_abstract\tables\table_e.c + +..\..\..\..\..\temp\cmd\table_f.obj: ..\..\..\..\..\src\ta_abstract\tables\table_f.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\table_f.obj ..\..\..\..\..\src\ta_abstract\tables\table_f.c + +..\..\..\..\..\temp\cmd\table_g.obj: ..\..\..\..\..\src\ta_abstract\tables\table_g.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\table_g.obj ..\..\..\..\..\src\ta_abstract\tables\table_g.c + +..\..\..\..\..\temp\cmd\table_h.obj: ..\..\..\..\..\src\ta_abstract\tables\table_h.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\table_h.obj ..\..\..\..\..\src\ta_abstract\tables\table_h.c + +..\..\..\..\..\temp\cmd\table_i.obj: ..\..\..\..\..\src\ta_abstract\tables\table_i.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\table_i.obj ..\..\..\..\..\src\ta_abstract\tables\table_i.c + +..\..\..\..\..\temp\cmd\table_j.obj: ..\..\..\..\..\src\ta_abstract\tables\table_j.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\table_j.obj ..\..\..\..\..\src\ta_abstract\tables\table_j.c + +..\..\..\..\..\temp\cmd\table_k.obj: ..\..\..\..\..\src\ta_abstract\tables\table_k.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\table_k.obj ..\..\..\..\..\src\ta_abstract\tables\table_k.c + +..\..\..\..\..\temp\cmd\table_l.obj: ..\..\..\..\..\src\ta_abstract\tables\table_l.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\table_l.obj ..\..\..\..\..\src\ta_abstract\tables\table_l.c + +..\..\..\..\..\temp\cmd\table_m.obj: ..\..\..\..\..\src\ta_abstract\tables\table_m.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\table_m.obj ..\..\..\..\..\src\ta_abstract\tables\table_m.c + +..\..\..\..\..\temp\cmd\table_n.obj: ..\..\..\..\..\src\ta_abstract\tables\table_n.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\table_n.obj ..\..\..\..\..\src\ta_abstract\tables\table_n.c + +..\..\..\..\..\temp\cmd\table_o.obj: ..\..\..\..\..\src\ta_abstract\tables\table_o.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\table_o.obj ..\..\..\..\..\src\ta_abstract\tables\table_o.c + +..\..\..\..\..\temp\cmd\table_p.obj: ..\..\..\..\..\src\ta_abstract\tables\table_p.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\table_p.obj ..\..\..\..\..\src\ta_abstract\tables\table_p.c + +..\..\..\..\..\temp\cmd\table_q.obj: ..\..\..\..\..\src\ta_abstract\tables\table_q.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\table_q.obj ..\..\..\..\..\src\ta_abstract\tables\table_q.c + +..\..\..\..\..\temp\cmd\table_r.obj: ..\..\..\..\..\src\ta_abstract\tables\table_r.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\table_r.obj ..\..\..\..\..\src\ta_abstract\tables\table_r.c + +..\..\..\..\..\temp\cmd\table_s.obj: ..\..\..\..\..\src\ta_abstract\tables\table_s.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\table_s.obj ..\..\..\..\..\src\ta_abstract\tables\table_s.c + +..\..\..\..\..\temp\cmd\table_t.obj: ..\..\..\..\..\src\ta_abstract\tables\table_t.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\table_t.obj ..\..\..\..\..\src\ta_abstract\tables\table_t.c + +..\..\..\..\..\temp\cmd\table_u.obj: ..\..\..\..\..\src\ta_abstract\tables\table_u.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\table_u.obj ..\..\..\..\..\src\ta_abstract\tables\table_u.c + +..\..\..\..\..\temp\cmd\table_v.obj: ..\..\..\..\..\src\ta_abstract\tables\table_v.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\table_v.obj ..\..\..\..\..\src\ta_abstract\tables\table_v.c + +..\..\..\..\..\temp\cmd\table_w.obj: ..\..\..\..\..\src\ta_abstract\tables\table_w.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\table_w.obj ..\..\..\..\..\src\ta_abstract\tables\table_w.c + +..\..\..\..\..\temp\cmd\table_x.obj: ..\..\..\..\..\src\ta_abstract\tables\table_x.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\table_x.obj ..\..\..\..\..\src\ta_abstract\tables\table_x.c + +..\..\..\..\..\temp\cmd\table_y.obj: ..\..\..\..\..\src\ta_abstract\tables\table_y.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\table_y.obj ..\..\..\..\..\src\ta_abstract\tables\table_y.c + +..\..\..\..\..\temp\cmd\table_z.obj: ..\..\..\..\..\src\ta_abstract\tables\table_z.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\table_z.obj ..\..\..\..\..\src\ta_abstract\tables\table_z.c + +..\..\..\..\..\temp\cmd\ta_utility.obj: ..\..\..\..\..\src\ta_func\ta_utility.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_utility.obj ..\..\..\..\..\src\ta_func\ta_utility.c + +..\..\..\..\..\temp\cmd\ta_ACOS.obj: ..\..\..\..\..\src\ta_func\ta_ACOS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_ACOS.obj ..\..\..\..\..\src\ta_func\ta_ACOS.c + +..\..\..\..\..\temp\cmd\ta_AD.obj: ..\..\..\..\..\src\ta_func\ta_AD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_AD.obj ..\..\..\..\..\src\ta_func\ta_AD.c + +..\..\..\..\..\temp\cmd\ta_ADD.obj: ..\..\..\..\..\src\ta_func\ta_ADD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_ADD.obj ..\..\..\..\..\src\ta_func\ta_ADD.c + +..\..\..\..\..\temp\cmd\ta_ADOSC.obj: ..\..\..\..\..\src\ta_func\ta_ADOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_ADOSC.obj ..\..\..\..\..\src\ta_func\ta_ADOSC.c + +..\..\..\..\..\temp\cmd\ta_ADX.obj: ..\..\..\..\..\src\ta_func\ta_ADX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_ADX.obj ..\..\..\..\..\src\ta_func\ta_ADX.c + +..\..\..\..\..\temp\cmd\ta_ADXR.obj: ..\..\..\..\..\src\ta_func\ta_ADXR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_ADXR.obj ..\..\..\..\..\src\ta_func\ta_ADXR.c + +..\..\..\..\..\temp\cmd\ta_APO.obj: ..\..\..\..\..\src\ta_func\ta_APO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_APO.obj ..\..\..\..\..\src\ta_func\ta_APO.c + +..\..\..\..\..\temp\cmd\ta_AROON.obj: ..\..\..\..\..\src\ta_func\ta_AROON.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_AROON.obj ..\..\..\..\..\src\ta_func\ta_AROON.c + +..\..\..\..\..\temp\cmd\ta_AROONOSC.obj: ..\..\..\..\..\src\ta_func\ta_AROONOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_AROONOSC.obj ..\..\..\..\..\src\ta_func\ta_AROONOSC.c + +..\..\..\..\..\temp\cmd\ta_ASIN.obj: ..\..\..\..\..\src\ta_func\ta_ASIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_ASIN.obj ..\..\..\..\..\src\ta_func\ta_ASIN.c + +..\..\..\..\..\temp\cmd\ta_ATAN.obj: ..\..\..\..\..\src\ta_func\ta_ATAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_ATAN.obj ..\..\..\..\..\src\ta_func\ta_ATAN.c + +..\..\..\..\..\temp\cmd\ta_ATR.obj: ..\..\..\..\..\src\ta_func\ta_ATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_ATR.obj ..\..\..\..\..\src\ta_func\ta_ATR.c + +..\..\..\..\..\temp\cmd\ta_AVGPRICE.obj: ..\..\..\..\..\src\ta_func\ta_AVGPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_AVGPRICE.obj ..\..\..\..\..\src\ta_func\ta_AVGPRICE.c + +..\..\..\..\..\temp\cmd\ta_BBANDS.obj: ..\..\..\..\..\src\ta_func\ta_BBANDS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_BBANDS.obj ..\..\..\..\..\src\ta_func\ta_BBANDS.c + +..\..\..\..\..\temp\cmd\ta_BETA.obj: ..\..\..\..\..\src\ta_func\ta_BETA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_BETA.obj ..\..\..\..\..\src\ta_func\ta_BETA.c + +..\..\..\..\..\temp\cmd\ta_BOP.obj: ..\..\..\..\..\src\ta_func\ta_BOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_BOP.obj ..\..\..\..\..\src\ta_func\ta_BOP.c + +..\..\..\..\..\temp\cmd\ta_CCI.obj: ..\..\..\..\..\src\ta_func\ta_CCI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CCI.obj ..\..\..\..\..\src\ta_func\ta_CCI.c + +..\..\..\..\..\temp\cmd\ta_CDL2CROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDL2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDL2CROWS.obj ..\..\..\..\..\src\ta_func\ta_CDL2CROWS.c + +..\..\..\..\..\temp\cmd\ta_CDL3BLACKCROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDL3BLACKCROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDL3BLACKCROWS.obj ..\..\..\..\..\src\ta_func\ta_CDL3BLACKCROWS.c + +..\..\..\..\..\temp\cmd\ta_CDL3INSIDE.obj: ..\..\..\..\..\src\ta_func\ta_CDL3INSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDL3INSIDE.obj ..\..\..\..\..\src\ta_func\ta_CDL3INSIDE.c + +..\..\..\..\..\temp\cmd\ta_CDL3LINESTRIKE.obj: ..\..\..\..\..\src\ta_func\ta_CDL3LINESTRIKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDL3LINESTRIKE.obj ..\..\..\..\..\src\ta_func\ta_CDL3LINESTRIKE.c + +..\..\..\..\..\temp\cmd\ta_CDL3OUTSIDE.obj: ..\..\..\..\..\src\ta_func\ta_CDL3OUTSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDL3OUTSIDE.obj ..\..\..\..\..\src\ta_func\ta_CDL3OUTSIDE.c + +..\..\..\..\..\temp\cmd\ta_CDL3STARSINSOUTH.obj: ..\..\..\..\..\src\ta_func\ta_CDL3STARSINSOUTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDL3STARSINSOUTH.obj ..\..\..\..\..\src\ta_func\ta_CDL3STARSINSOUTH.c + +..\..\..\..\..\temp\cmd\ta_CDL3WHITESOLDIERS.obj: ..\..\..\..\..\src\ta_func\ta_CDL3WHITESOLDIERS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDL3WHITESOLDIERS.obj ..\..\..\..\..\src\ta_func\ta_CDL3WHITESOLDIERS.c + +..\..\..\..\..\temp\cmd\ta_CDLABANDONEDBABY.obj: ..\..\..\..\..\src\ta_func\ta_CDLABANDONEDBABY.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLABANDONEDBABY.obj ..\..\..\..\..\src\ta_func\ta_CDLABANDONEDBABY.c + +..\..\..\..\..\temp\cmd\ta_CDLADVANCEBLOCK.obj: ..\..\..\..\..\src\ta_func\ta_CDLADVANCEBLOCK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLADVANCEBLOCK.obj ..\..\..\..\..\src\ta_func\ta_CDLADVANCEBLOCK.c + +..\..\..\..\..\temp\cmd\ta_CDLBELTHOLD.obj: ..\..\..\..\..\src\ta_func\ta_CDLBELTHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLBELTHOLD.obj ..\..\..\..\..\src\ta_func\ta_CDLBELTHOLD.c + +..\..\..\..\..\temp\cmd\ta_CDLBREAKAWAY.obj: ..\..\..\..\..\src\ta_func\ta_CDLBREAKAWAY.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLBREAKAWAY.obj ..\..\..\..\..\src\ta_func\ta_CDLBREAKAWAY.c + +..\..\..\..\..\temp\cmd\ta_CDLCLOSINGMARUBOZU.obj: ..\..\..\..\..\src\ta_func\ta_CDLCLOSINGMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLCLOSINGMARUBOZU.obj ..\..\..\..\..\src\ta_func\ta_CDLCLOSINGMARUBOZU.c + +..\..\..\..\..\temp\cmd\ta_CDLCONCEALBABYSWALL.obj: ..\..\..\..\..\src\ta_func\ta_CDLCONCEALBABYSWALL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLCONCEALBABYSWALL.obj ..\..\..\..\..\src\ta_func\ta_CDLCONCEALBABYSWALL.c + +..\..\..\..\..\temp\cmd\ta_CDLCOUNTERATTACK.obj: ..\..\..\..\..\src\ta_func\ta_CDLCOUNTERATTACK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLCOUNTERATTACK.obj ..\..\..\..\..\src\ta_func\ta_CDLCOUNTERATTACK.c + +..\..\..\..\..\temp\cmd\ta_CDLDARKCLOUDCOVER.obj: ..\..\..\..\..\src\ta_func\ta_CDLDARKCLOUDCOVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLDARKCLOUDCOVER.obj ..\..\..\..\..\src\ta_func\ta_CDLDARKCLOUDCOVER.c + +..\..\..\..\..\temp\cmd\ta_CDLDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLDOJI.c + +..\..\..\..\..\temp\cmd\ta_CDLDOJISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLDOJISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLDOJISTAR.c + +..\..\..\..\..\temp\cmd\ta_CDLDRAGONFLYDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLDRAGONFLYDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLDRAGONFLYDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLDRAGONFLYDOJI.c + +..\..\..\..\..\temp\cmd\ta_CDLENGULFING.obj: ..\..\..\..\..\src\ta_func\ta_CDLENGULFING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLENGULFING.obj ..\..\..\..\..\src\ta_func\ta_CDLENGULFING.c + +..\..\..\..\..\temp\cmd\ta_CDLEVENINGDOJISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLEVENINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLEVENINGDOJISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLEVENINGDOJISTAR.c + +..\..\..\..\..\temp\cmd\ta_CDLEVENINGSTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLEVENINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLEVENINGSTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLEVENINGSTAR.c + +..\..\..\..\..\temp\cmd\ta_CDLGAPSIDESIDEWHITE.obj: ..\..\..\..\..\src\ta_func\ta_CDLGAPSIDESIDEWHITE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLGAPSIDESIDEWHITE.obj ..\..\..\..\..\src\ta_func\ta_CDLGAPSIDESIDEWHITE.c + +..\..\..\..\..\temp\cmd\ta_CDLGRAVESTONEDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLGRAVESTONEDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLGRAVESTONEDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLGRAVESTONEDOJI.c + +..\..\..\..\..\temp\cmd\ta_CDLHAMMER.obj: ..\..\..\..\..\src\ta_func\ta_CDLHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLHAMMER.obj ..\..\..\..\..\src\ta_func\ta_CDLHAMMER.c + +..\..\..\..\..\temp\cmd\ta_CDLHANGINGMAN.obj: ..\..\..\..\..\src\ta_func\ta_CDLHANGINGMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLHANGINGMAN.obj ..\..\..\..\..\src\ta_func\ta_CDLHANGINGMAN.c + +..\..\..\..\..\temp\cmd\ta_CDLHARAMI.obj: ..\..\..\..\..\src\ta_func\ta_CDLHARAMI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLHARAMI.obj ..\..\..\..\..\src\ta_func\ta_CDLHARAMI.c + +..\..\..\..\..\temp\cmd\ta_CDLHARAMICROSS.obj: ..\..\..\..\..\src\ta_func\ta_CDLHARAMICROSS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLHARAMICROSS.obj ..\..\..\..\..\src\ta_func\ta_CDLHARAMICROSS.c + +..\..\..\..\..\temp\cmd\ta_CDLHIGHWAVE.obj: ..\..\..\..\..\src\ta_func\ta_CDLHIGHWAVE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLHIGHWAVE.obj ..\..\..\..\..\src\ta_func\ta_CDLHIGHWAVE.c + +..\..\..\..\..\temp\cmd\ta_CDLHIKKAKE.obj: ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLHIKKAKE.obj ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKE.c + +..\..\..\..\..\temp\cmd\ta_CDLHIKKAKEMOD.obj: ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKEMOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLHIKKAKEMOD.obj ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKEMOD.c + +..\..\..\..\..\temp\cmd\ta_CDLHOMINGPIGEON.obj: ..\..\..\..\..\src\ta_func\ta_CDLHOMINGPIGEON.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLHOMINGPIGEON.obj ..\..\..\..\..\src\ta_func\ta_CDLHOMINGPIGEON.c + +..\..\..\..\..\temp\cmd\ta_CDLIDENTICAL3CROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDLIDENTICAL3CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLIDENTICAL3CROWS.obj ..\..\..\..\..\src\ta_func\ta_CDLIDENTICAL3CROWS.c + +..\..\..\..\..\temp\cmd\ta_CDLINNECK.obj: ..\..\..\..\..\src\ta_func\ta_CDLINNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLINNECK.obj ..\..\..\..\..\src\ta_func\ta_CDLINNECK.c + +..\..\..\..\..\temp\cmd\ta_CDLINVERTEDHAMMER.obj: ..\..\..\..\..\src\ta_func\ta_CDLINVERTEDHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLINVERTEDHAMMER.obj ..\..\..\..\..\src\ta_func\ta_CDLINVERTEDHAMMER.c + +..\..\..\..\..\temp\cmd\ta_CDLKICKING.obj: ..\..\..\..\..\src\ta_func\ta_CDLKICKING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLKICKING.obj ..\..\..\..\..\src\ta_func\ta_CDLKICKING.c + +..\..\..\..\..\temp\cmd\ta_CDLKICKINGBYLENGTH.obj: ..\..\..\..\..\src\ta_func\ta_CDLKICKINGBYLENGTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLKICKINGBYLENGTH.obj ..\..\..\..\..\src\ta_func\ta_CDLKICKINGBYLENGTH.c + +..\..\..\..\..\temp\cmd\ta_CDLLADDERBOTTOM.obj: ..\..\..\..\..\src\ta_func\ta_CDLLADDERBOTTOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLLADDERBOTTOM.obj ..\..\..\..\..\src\ta_func\ta_CDLLADDERBOTTOM.c + +..\..\..\..\..\temp\cmd\ta_CDLLONGLEGGEDDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLLONGLEGGEDDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLLONGLEGGEDDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLLONGLEGGEDDOJI.c + +..\..\..\..\..\temp\cmd\ta_CDLLONGLINE.obj: ..\..\..\..\..\src\ta_func\ta_CDLLONGLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLLONGLINE.obj ..\..\..\..\..\src\ta_func\ta_CDLLONGLINE.c + +..\..\..\..\..\temp\cmd\ta_CDLMARUBOZU.obj: ..\..\..\..\..\src\ta_func\ta_CDLMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLMARUBOZU.obj ..\..\..\..\..\src\ta_func\ta_CDLMARUBOZU.c + +..\..\..\..\..\temp\cmd\ta_CDLMATCHINGLOW.obj: ..\..\..\..\..\src\ta_func\ta_CDLMATCHINGLOW.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLMATCHINGLOW.obj ..\..\..\..\..\src\ta_func\ta_CDLMATCHINGLOW.c + +..\..\..\..\..\temp\cmd\ta_CDLMATHOLD.obj: ..\..\..\..\..\src\ta_func\ta_CDLMATHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLMATHOLD.obj ..\..\..\..\..\src\ta_func\ta_CDLMATHOLD.c + +..\..\..\..\..\temp\cmd\ta_CDLMORNINGDOJISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLMORNINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLMORNINGDOJISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLMORNINGDOJISTAR.c + +..\..\..\..\..\temp\cmd\ta_CDLMORNINGSTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLMORNINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLMORNINGSTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLMORNINGSTAR.c + +..\..\..\..\..\temp\cmd\ta_CDLONNECK.obj: ..\..\..\..\..\src\ta_func\ta_CDLONNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLONNECK.obj ..\..\..\..\..\src\ta_func\ta_CDLONNECK.c + +..\..\..\..\..\temp\cmd\ta_CDLPIERCING.obj: ..\..\..\..\..\src\ta_func\ta_CDLPIERCING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLPIERCING.obj ..\..\..\..\..\src\ta_func\ta_CDLPIERCING.c + +..\..\..\..\..\temp\cmd\ta_CDLRICKSHAWMAN.obj: ..\..\..\..\..\src\ta_func\ta_CDLRICKSHAWMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLRICKSHAWMAN.obj ..\..\..\..\..\src\ta_func\ta_CDLRICKSHAWMAN.c + +..\..\..\..\..\temp\cmd\ta_CDLRISEFALL3METHODS.obj: ..\..\..\..\..\src\ta_func\ta_CDLRISEFALL3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLRISEFALL3METHODS.obj ..\..\..\..\..\src\ta_func\ta_CDLRISEFALL3METHODS.c + +..\..\..\..\..\temp\cmd\ta_CDLSEPARATINGLINES.obj: ..\..\..\..\..\src\ta_func\ta_CDLSEPARATINGLINES.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLSEPARATINGLINES.obj ..\..\..\..\..\src\ta_func\ta_CDLSEPARATINGLINES.c + +..\..\..\..\..\temp\cmd\ta_CDLSHOOTINGSTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLSHOOTINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLSHOOTINGSTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLSHOOTINGSTAR.c + +..\..\..\..\..\temp\cmd\ta_CDLSHORTLINE.obj: ..\..\..\..\..\src\ta_func\ta_CDLSHORTLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLSHORTLINE.obj ..\..\..\..\..\src\ta_func\ta_CDLSHORTLINE.c + +..\..\..\..\..\temp\cmd\ta_CDLSPINNINGTOP.obj: ..\..\..\..\..\src\ta_func\ta_CDLSPINNINGTOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLSPINNINGTOP.obj ..\..\..\..\..\src\ta_func\ta_CDLSPINNINGTOP.c + +..\..\..\..\..\temp\cmd\ta_CDLSTALLEDPATTERN.obj: ..\..\..\..\..\src\ta_func\ta_CDLSTALLEDPATTERN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLSTALLEDPATTERN.obj ..\..\..\..\..\src\ta_func\ta_CDLSTALLEDPATTERN.c + +..\..\..\..\..\temp\cmd\ta_CDLSTICKSANDWICH.obj: ..\..\..\..\..\src\ta_func\ta_CDLSTICKSANDWICH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLSTICKSANDWICH.obj ..\..\..\..\..\src\ta_func\ta_CDLSTICKSANDWICH.c + +..\..\..\..\..\temp\cmd\ta_CDLTAKURI.obj: ..\..\..\..\..\src\ta_func\ta_CDLTAKURI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLTAKURI.obj ..\..\..\..\..\src\ta_func\ta_CDLTAKURI.c + +..\..\..\..\..\temp\cmd\ta_CDLTASUKIGAP.obj: ..\..\..\..\..\src\ta_func\ta_CDLTASUKIGAP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLTASUKIGAP.obj ..\..\..\..\..\src\ta_func\ta_CDLTASUKIGAP.c + +..\..\..\..\..\temp\cmd\ta_CDLTHRUSTING.obj: ..\..\..\..\..\src\ta_func\ta_CDLTHRUSTING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLTHRUSTING.obj ..\..\..\..\..\src\ta_func\ta_CDLTHRUSTING.c + +..\..\..\..\..\temp\cmd\ta_CDLTRISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLTRISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLTRISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLTRISTAR.c + +..\..\..\..\..\temp\cmd\ta_CDLUNIQUE3RIVER.obj: ..\..\..\..\..\src\ta_func\ta_CDLUNIQUE3RIVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLUNIQUE3RIVER.obj ..\..\..\..\..\src\ta_func\ta_CDLUNIQUE3RIVER.c + +..\..\..\..\..\temp\cmd\ta_CDLUPSIDEGAP2CROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDLUPSIDEGAP2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLUPSIDEGAP2CROWS.obj ..\..\..\..\..\src\ta_func\ta_CDLUPSIDEGAP2CROWS.c + +..\..\..\..\..\temp\cmd\ta_CDLXSIDEGAP3METHODS.obj: ..\..\..\..\..\src\ta_func\ta_CDLXSIDEGAP3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CDLXSIDEGAP3METHODS.obj ..\..\..\..\..\src\ta_func\ta_CDLXSIDEGAP3METHODS.c + +..\..\..\..\..\temp\cmd\ta_CEIL.obj: ..\..\..\..\..\src\ta_func\ta_CEIL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CEIL.obj ..\..\..\..\..\src\ta_func\ta_CEIL.c + +..\..\..\..\..\temp\cmd\ta_CMO.obj: ..\..\..\..\..\src\ta_func\ta_CMO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CMO.obj ..\..\..\..\..\src\ta_func\ta_CMO.c + +..\..\..\..\..\temp\cmd\ta_CORREL.obj: ..\..\..\..\..\src\ta_func\ta_CORREL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_CORREL.obj ..\..\..\..\..\src\ta_func\ta_CORREL.c + +..\..\..\..\..\temp\cmd\ta_COS.obj: ..\..\..\..\..\src\ta_func\ta_COS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_COS.obj ..\..\..\..\..\src\ta_func\ta_COS.c + +..\..\..\..\..\temp\cmd\ta_COSH.obj: ..\..\..\..\..\src\ta_func\ta_COSH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_COSH.obj ..\..\..\..\..\src\ta_func\ta_COSH.c + +..\..\..\..\..\temp\cmd\ta_DEMA.obj: ..\..\..\..\..\src\ta_func\ta_DEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_DEMA.obj ..\..\..\..\..\src\ta_func\ta_DEMA.c + +..\..\..\..\..\temp\cmd\ta_DIV.obj: ..\..\..\..\..\src\ta_func\ta_DIV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_DIV.obj ..\..\..\..\..\src\ta_func\ta_DIV.c + +..\..\..\..\..\temp\cmd\ta_DX.obj: ..\..\..\..\..\src\ta_func\ta_DX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_DX.obj ..\..\..\..\..\src\ta_func\ta_DX.c + +..\..\..\..\..\temp\cmd\ta_EMA.obj: ..\..\..\..\..\src\ta_func\ta_EMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_EMA.obj ..\..\..\..\..\src\ta_func\ta_EMA.c + +..\..\..\..\..\temp\cmd\ta_EXP.obj: ..\..\..\..\..\src\ta_func\ta_EXP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_EXP.obj ..\..\..\..\..\src\ta_func\ta_EXP.c + +..\..\..\..\..\temp\cmd\ta_FLOOR.obj: ..\..\..\..\..\src\ta_func\ta_FLOOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_FLOOR.obj ..\..\..\..\..\src\ta_func\ta_FLOOR.c + +..\..\..\..\..\temp\cmd\ta_HT_DCPERIOD.obj: ..\..\..\..\..\src\ta_func\ta_HT_DCPERIOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_HT_DCPERIOD.obj ..\..\..\..\..\src\ta_func\ta_HT_DCPERIOD.c + +..\..\..\..\..\temp\cmd\ta_HT_DCPHASE.obj: ..\..\..\..\..\src\ta_func\ta_HT_DCPHASE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_HT_DCPHASE.obj ..\..\..\..\..\src\ta_func\ta_HT_DCPHASE.c + +..\..\..\..\..\temp\cmd\ta_HT_PHASOR.obj: ..\..\..\..\..\src\ta_func\ta_HT_PHASOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_HT_PHASOR.obj ..\..\..\..\..\src\ta_func\ta_HT_PHASOR.c + +..\..\..\..\..\temp\cmd\ta_HT_SINE.obj: ..\..\..\..\..\src\ta_func\ta_HT_SINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_HT_SINE.obj ..\..\..\..\..\src\ta_func\ta_HT_SINE.c + +..\..\..\..\..\temp\cmd\ta_HT_TRENDLINE.obj: ..\..\..\..\..\src\ta_func\ta_HT_TRENDLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_HT_TRENDLINE.obj ..\..\..\..\..\src\ta_func\ta_HT_TRENDLINE.c + +..\..\..\..\..\temp\cmd\ta_HT_TRENDMODE.obj: ..\..\..\..\..\src\ta_func\ta_HT_TRENDMODE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_HT_TRENDMODE.obj ..\..\..\..\..\src\ta_func\ta_HT_TRENDMODE.c + +..\..\..\..\..\temp\cmd\ta_KAMA.obj: ..\..\..\..\..\src\ta_func\ta_KAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_KAMA.obj ..\..\..\..\..\src\ta_func\ta_KAMA.c + +..\..\..\..\..\temp\cmd\ta_LINEARREG.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_LINEARREG.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG.c + +..\..\..\..\..\temp\cmd\ta_LINEARREG_ANGLE.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG_ANGLE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_LINEARREG_ANGLE.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG_ANGLE.c + +..\..\..\..\..\temp\cmd\ta_LINEARREG_INTERCEPT.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG_INTERCEPT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_LINEARREG_INTERCEPT.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG_INTERCEPT.c + +..\..\..\..\..\temp\cmd\ta_LINEARREG_SLOPE.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG_SLOPE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_LINEARREG_SLOPE.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG_SLOPE.c + +..\..\..\..\..\temp\cmd\ta_LN.obj: ..\..\..\..\..\src\ta_func\ta_LN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_LN.obj ..\..\..\..\..\src\ta_func\ta_LN.c + +..\..\..\..\..\temp\cmd\ta_LOG10.obj: ..\..\..\..\..\src\ta_func\ta_LOG10.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_LOG10.obj ..\..\..\..\..\src\ta_func\ta_LOG10.c + +..\..\..\..\..\temp\cmd\ta_MA.obj: ..\..\..\..\..\src\ta_func\ta_MA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_MA.obj ..\..\..\..\..\src\ta_func\ta_MA.c + +..\..\..\..\..\temp\cmd\ta_MACD.obj: ..\..\..\..\..\src\ta_func\ta_MACD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_MACD.obj ..\..\..\..\..\src\ta_func\ta_MACD.c + +..\..\..\..\..\temp\cmd\ta_MACDEXT.obj: ..\..\..\..\..\src\ta_func\ta_MACDEXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_MACDEXT.obj ..\..\..\..\..\src\ta_func\ta_MACDEXT.c + +..\..\..\..\..\temp\cmd\ta_MACDFIX.obj: ..\..\..\..\..\src\ta_func\ta_MACDFIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_MACDFIX.obj ..\..\..\..\..\src\ta_func\ta_MACDFIX.c + +..\..\..\..\..\temp\cmd\ta_MAMA.obj: ..\..\..\..\..\src\ta_func\ta_MAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_MAMA.obj ..\..\..\..\..\src\ta_func\ta_MAMA.c + +..\..\..\..\..\temp\cmd\ta_MAVP.obj: ..\..\..\..\..\src\ta_func\ta_MAVP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_MAVP.obj ..\..\..\..\..\src\ta_func\ta_MAVP.c + +..\..\..\..\..\temp\cmd\ta_MAX.obj: ..\..\..\..\..\src\ta_func\ta_MAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_MAX.obj ..\..\..\..\..\src\ta_func\ta_MAX.c + +..\..\..\..\..\temp\cmd\ta_MAXINDEX.obj: ..\..\..\..\..\src\ta_func\ta_MAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_MAXINDEX.obj ..\..\..\..\..\src\ta_func\ta_MAXINDEX.c + +..\..\..\..\..\temp\cmd\ta_MEDPRICE.obj: ..\..\..\..\..\src\ta_func\ta_MEDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_MEDPRICE.obj ..\..\..\..\..\src\ta_func\ta_MEDPRICE.c + +..\..\..\..\..\temp\cmd\ta_MFI.obj: ..\..\..\..\..\src\ta_func\ta_MFI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_MFI.obj ..\..\..\..\..\src\ta_func\ta_MFI.c + +..\..\..\..\..\temp\cmd\ta_MIDPOINT.obj: ..\..\..\..\..\src\ta_func\ta_MIDPOINT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_MIDPOINT.obj ..\..\..\..\..\src\ta_func\ta_MIDPOINT.c + +..\..\..\..\..\temp\cmd\ta_MIDPRICE.obj: ..\..\..\..\..\src\ta_func\ta_MIDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_MIDPRICE.obj ..\..\..\..\..\src\ta_func\ta_MIDPRICE.c + +..\..\..\..\..\temp\cmd\ta_MIN.obj: ..\..\..\..\..\src\ta_func\ta_MIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_MIN.obj ..\..\..\..\..\src\ta_func\ta_MIN.c + +..\..\..\..\..\temp\cmd\ta_MININDEX.obj: ..\..\..\..\..\src\ta_func\ta_MININDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_MININDEX.obj ..\..\..\..\..\src\ta_func\ta_MININDEX.c + +..\..\..\..\..\temp\cmd\ta_MINMAX.obj: ..\..\..\..\..\src\ta_func\ta_MINMAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_MINMAX.obj ..\..\..\..\..\src\ta_func\ta_MINMAX.c + +..\..\..\..\..\temp\cmd\ta_MINMAXINDEX.obj: ..\..\..\..\..\src\ta_func\ta_MINMAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_MINMAXINDEX.obj ..\..\..\..\..\src\ta_func\ta_MINMAXINDEX.c + +..\..\..\..\..\temp\cmd\ta_MINUS_DI.obj: ..\..\..\..\..\src\ta_func\ta_MINUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_MINUS_DI.obj ..\..\..\..\..\src\ta_func\ta_MINUS_DI.c + +..\..\..\..\..\temp\cmd\ta_MINUS_DM.obj: ..\..\..\..\..\src\ta_func\ta_MINUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_MINUS_DM.obj ..\..\..\..\..\src\ta_func\ta_MINUS_DM.c + +..\..\..\..\..\temp\cmd\ta_MOM.obj: ..\..\..\..\..\src\ta_func\ta_MOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_MOM.obj ..\..\..\..\..\src\ta_func\ta_MOM.c + +..\..\..\..\..\temp\cmd\ta_MULT.obj: ..\..\..\..\..\src\ta_func\ta_MULT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_MULT.obj ..\..\..\..\..\src\ta_func\ta_MULT.c + +..\..\..\..\..\temp\cmd\ta_NATR.obj: ..\..\..\..\..\src\ta_func\ta_NATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_NATR.obj ..\..\..\..\..\src\ta_func\ta_NATR.c + +..\..\..\..\..\temp\cmd\ta_OBV.obj: ..\..\..\..\..\src\ta_func\ta_OBV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_OBV.obj ..\..\..\..\..\src\ta_func\ta_OBV.c + +..\..\..\..\..\temp\cmd\ta_PLUS_DI.obj: ..\..\..\..\..\src\ta_func\ta_PLUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_PLUS_DI.obj ..\..\..\..\..\src\ta_func\ta_PLUS_DI.c + +..\..\..\..\..\temp\cmd\ta_PLUS_DM.obj: ..\..\..\..\..\src\ta_func\ta_PLUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_PLUS_DM.obj ..\..\..\..\..\src\ta_func\ta_PLUS_DM.c + +..\..\..\..\..\temp\cmd\ta_PPO.obj: ..\..\..\..\..\src\ta_func\ta_PPO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_PPO.obj ..\..\..\..\..\src\ta_func\ta_PPO.c + +..\..\..\..\..\temp\cmd\ta_ROC.obj: ..\..\..\..\..\src\ta_func\ta_ROC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_ROC.obj ..\..\..\..\..\src\ta_func\ta_ROC.c + +..\..\..\..\..\temp\cmd\ta_ROCP.obj: ..\..\..\..\..\src\ta_func\ta_ROCP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_ROCP.obj ..\..\..\..\..\src\ta_func\ta_ROCP.c + +..\..\..\..\..\temp\cmd\ta_ROCR.obj: ..\..\..\..\..\src\ta_func\ta_ROCR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_ROCR.obj ..\..\..\..\..\src\ta_func\ta_ROCR.c + +..\..\..\..\..\temp\cmd\ta_ROCR100.obj: ..\..\..\..\..\src\ta_func\ta_ROCR100.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_ROCR100.obj ..\..\..\..\..\src\ta_func\ta_ROCR100.c + +..\..\..\..\..\temp\cmd\ta_RSI.obj: ..\..\..\..\..\src\ta_func\ta_RSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_RSI.obj ..\..\..\..\..\src\ta_func\ta_RSI.c + +..\..\..\..\..\temp\cmd\ta_SAR.obj: ..\..\..\..\..\src\ta_func\ta_SAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_SAR.obj ..\..\..\..\..\src\ta_func\ta_SAR.c + +..\..\..\..\..\temp\cmd\ta_SAREXT.obj: ..\..\..\..\..\src\ta_func\ta_SAREXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_SAREXT.obj ..\..\..\..\..\src\ta_func\ta_SAREXT.c + +..\..\..\..\..\temp\cmd\ta_SIN.obj: ..\..\..\..\..\src\ta_func\ta_SIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_SIN.obj ..\..\..\..\..\src\ta_func\ta_SIN.c + +..\..\..\..\..\temp\cmd\ta_SINH.obj: ..\..\..\..\..\src\ta_func\ta_SINH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_SINH.obj ..\..\..\..\..\src\ta_func\ta_SINH.c + +..\..\..\..\..\temp\cmd\ta_SMA.obj: ..\..\..\..\..\src\ta_func\ta_SMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_SMA.obj ..\..\..\..\..\src\ta_func\ta_SMA.c + +..\..\..\..\..\temp\cmd\ta_SQRT.obj: ..\..\..\..\..\src\ta_func\ta_SQRT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_SQRT.obj ..\..\..\..\..\src\ta_func\ta_SQRT.c + +..\..\..\..\..\temp\cmd\ta_STDDEV.obj: ..\..\..\..\..\src\ta_func\ta_STDDEV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_STDDEV.obj ..\..\..\..\..\src\ta_func\ta_STDDEV.c + +..\..\..\..\..\temp\cmd\ta_STOCH.obj: ..\..\..\..\..\src\ta_func\ta_STOCH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_STOCH.obj ..\..\..\..\..\src\ta_func\ta_STOCH.c + +..\..\..\..\..\temp\cmd\ta_STOCHF.obj: ..\..\..\..\..\src\ta_func\ta_STOCHF.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_STOCHF.obj ..\..\..\..\..\src\ta_func\ta_STOCHF.c + +..\..\..\..\..\temp\cmd\ta_STOCHRSI.obj: ..\..\..\..\..\src\ta_func\ta_STOCHRSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_STOCHRSI.obj ..\..\..\..\..\src\ta_func\ta_STOCHRSI.c + +..\..\..\..\..\temp\cmd\ta_SUB.obj: ..\..\..\..\..\src\ta_func\ta_SUB.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_SUB.obj ..\..\..\..\..\src\ta_func\ta_SUB.c + +..\..\..\..\..\temp\cmd\ta_SUM.obj: ..\..\..\..\..\src\ta_func\ta_SUM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_SUM.obj ..\..\..\..\..\src\ta_func\ta_SUM.c + +..\..\..\..\..\temp\cmd\ta_T3.obj: ..\..\..\..\..\src\ta_func\ta_T3.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_T3.obj ..\..\..\..\..\src\ta_func\ta_T3.c + +..\..\..\..\..\temp\cmd\ta_TAN.obj: ..\..\..\..\..\src\ta_func\ta_TAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_TAN.obj ..\..\..\..\..\src\ta_func\ta_TAN.c + +..\..\..\..\..\temp\cmd\ta_TANH.obj: ..\..\..\..\..\src\ta_func\ta_TANH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_TANH.obj ..\..\..\..\..\src\ta_func\ta_TANH.c + +..\..\..\..\..\temp\cmd\ta_TEMA.obj: ..\..\..\..\..\src\ta_func\ta_TEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_TEMA.obj ..\..\..\..\..\src\ta_func\ta_TEMA.c + +..\..\..\..\..\temp\cmd\ta_TRANGE.obj: ..\..\..\..\..\src\ta_func\ta_TRANGE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_TRANGE.obj ..\..\..\..\..\src\ta_func\ta_TRANGE.c + +..\..\..\..\..\temp\cmd\ta_TRIMA.obj: ..\..\..\..\..\src\ta_func\ta_TRIMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_TRIMA.obj ..\..\..\..\..\src\ta_func\ta_TRIMA.c + +..\..\..\..\..\temp\cmd\ta_TRIX.obj: ..\..\..\..\..\src\ta_func\ta_TRIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_TRIX.obj ..\..\..\..\..\src\ta_func\ta_TRIX.c + +..\..\..\..\..\temp\cmd\ta_TSF.obj: ..\..\..\..\..\src\ta_func\ta_TSF.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_TSF.obj ..\..\..\..\..\src\ta_func\ta_TSF.c + +..\..\..\..\..\temp\cmd\ta_TYPPRICE.obj: ..\..\..\..\..\src\ta_func\ta_TYPPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_TYPPRICE.obj ..\..\..\..\..\src\ta_func\ta_TYPPRICE.c + +..\..\..\..\..\temp\cmd\ta_ULTOSC.obj: ..\..\..\..\..\src\ta_func\ta_ULTOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_ULTOSC.obj ..\..\..\..\..\src\ta_func\ta_ULTOSC.c + +..\..\..\..\..\temp\cmd\ta_VAR.obj: ..\..\..\..\..\src\ta_func\ta_VAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_VAR.obj ..\..\..\..\..\src\ta_func\ta_VAR.c + +..\..\..\..\..\temp\cmd\ta_WCLPRICE.obj: ..\..\..\..\..\src\ta_func\ta_WCLPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_WCLPRICE.obj ..\..\..\..\..\src\ta_func\ta_WCLPRICE.c + +..\..\..\..\..\temp\cmd\ta_WILLR.obj: ..\..\..\..\..\src\ta_func\ta_WILLR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_WILLR.obj ..\..\..\..\..\src\ta_func\ta_WILLR.c + +..\..\..\..\..\temp\cmd\ta_WMA.obj: ..\..\..\..\..\src\ta_func\ta_WMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_WMA.obj ..\..\..\..\..\src\ta_func\ta_WMA.c + diff --git a/make/cmd/win32/symantec/ta_regtest/Makefile b/make/cmd/win32/symantec/ta_regtest/Makefile new file mode 100644 index 000000000..7afc32119 --- /dev/null +++ b/make/cmd/win32/symantec/ta_regtest/Makefile @@ -0,0 +1,229 @@ +############################################################################# +# Makefile for building ta_regtest +# Generated by tmake; +# Project: ta_regtest/ta_regtest +# Template: app +############################################################################# + +####### Compiler, tools and options + +CC = sc +CXX = sc +CFLAGS = -mn -w2 -g -DTA_DEBUG -D_DEBUG -DWIN32 +CXXFLAGS= -mn -w2 -g -DTA_DEBUG -D_DEBUG -DWIN32 +INCPATH = -I"..\..\..\..\..\src\ta_common" -I"..\..\..\..\..\src\tools\ta_regtest" -I"..\..\..\..\..\src\ta_func" -I"..\..\..\..\..\include" +LINK = link +LFLAGS = /NOLOGO /NOI /DEBUG /SUBSYSTEM:console +LIBS = ..\..\..\..\..\lib\ta_libc_cmd.lib +MOC = moc + +ZIP = zip -r -9 + +####### Files + +HEADERS = +SOURCES = ..\..\..\..\..\src\tools\ta_regtest\ta_regtest.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_candlestick.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_1in_1out.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_1in_2out.c \ + ..\..\..\..\..\src\tools\ta_regtest\test_internals.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_adx.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_bbands.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_ma.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_macd.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_minmax.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_mom.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_ema.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hl.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hlc.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hlcv.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_ohlc.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_po.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_rsi.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_sar.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_stddev.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_stoch.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_trange.c \ + ..\..\..\..\..\src\tools\ta_regtest\test_util.c \ + ..\..\..\..\..\src\tools\ta_regtest\test_data.c \ + ..\..\..\..\..\src\tools\ta_regtest\test_abstract.c +OBJECTS = ..\..\..\..\..\temp\cmd\ta_regtest.obj \ + ..\..\..\..\..\temp\cmd\test_candlestick.obj \ + ..\..\..\..\..\temp\cmd\test_1in_1out.obj \ + ..\..\..\..\..\temp\cmd\test_1in_2out.obj \ + ..\..\..\..\..\temp\cmd\test_internals.obj \ + ..\..\..\..\..\temp\cmd\test_adx.obj \ + ..\..\..\..\..\temp\cmd\test_bbands.obj \ + ..\..\..\..\..\temp\cmd\test_ma.obj \ + ..\..\..\..\..\temp\cmd\test_macd.obj \ + ..\..\..\..\..\temp\cmd\test_minmax.obj \ + ..\..\..\..\..\temp\cmd\test_mom.obj \ + ..\..\..\..\..\temp\cmd\test_per_ema.obj \ + ..\..\..\..\..\temp\cmd\test_per_hl.obj \ + ..\..\..\..\..\temp\cmd\test_per_hlc.obj \ + ..\..\..\..\..\temp\cmd\test_per_hlcv.obj \ + ..\..\..\..\..\temp\cmd\test_per_ohlc.obj \ + ..\..\..\..\..\temp\cmd\test_po.obj \ + ..\..\..\..\..\temp\cmd\test_rsi.obj \ + ..\..\..\..\..\temp\cmd\test_sar.obj \ + ..\..\..\..\..\temp\cmd\test_stddev.obj \ + ..\..\..\..\..\temp\cmd\test_stoch.obj \ + ..\..\..\..\..\temp\cmd\test_trange.obj \ + ..\..\..\..\..\temp\cmd\test_util.obj \ + ..\..\..\..\..\temp\cmd\test_data.obj \ + ..\..\..\..\..\temp\cmd\test_abstract.obj +SRCMOC = +OBJMOC = +DIST = +TARGET = ..\..\..\..\..\bin\ta_regtest.exe + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .c + +.cpp.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.cxx.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.cc.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.c.obj: + $(CC) -c $(CFLAGS) $(INCPATH) -o$@ $< + +####### Build rules + +all: $(TARGET) + +$(TARGET): $(OBJECTS) $(OBJMOC) + $(LINK) $(LFLAGS) $(OBJECTS) $(OBJMOC), $(TARGET),, $(LIBS) + +moc: $(SRCMOC) + +tmake: ../cmd/win32/symantec/ta_regtest/Makefile + +../cmd/win32/symantec/ta_regtest/Makefile: ta_regtest/ta_regtest.pro + tmake ta_regtest/ta_regtest.pro -o ../cmd/win32/symantec/ta_regtest/Makefile + +dist: + $(ZIP) ta_regtest/ta_regtest.zip ta_regtest/ta_regtest.pro $(SOURCES) $(HEADERS) $(DIST) + +clean: + -del ..\..\..\..\..\temp\cmd\ta_regtest.obj + -del ..\..\..\..\..\temp\cmd\test_candlestick.obj + -del ..\..\..\..\..\temp\cmd\test_1in_1out.obj + -del ..\..\..\..\..\temp\cmd\test_1in_2out.obj + -del ..\..\..\..\..\temp\cmd\test_internals.obj + -del ..\..\..\..\..\temp\cmd\test_adx.obj + -del ..\..\..\..\..\temp\cmd\test_bbands.obj + -del ..\..\..\..\..\temp\cmd\test_ma.obj + -del ..\..\..\..\..\temp\cmd\test_macd.obj + -del ..\..\..\..\..\temp\cmd\test_minmax.obj + -del ..\..\..\..\..\temp\cmd\test_mom.obj + -del ..\..\..\..\..\temp\cmd\test_per_ema.obj + -del ..\..\..\..\..\temp\cmd\test_per_hl.obj + -del ..\..\..\..\..\temp\cmd\test_per_hlc.obj + -del ..\..\..\..\..\temp\cmd\test_per_hlcv.obj + -del ..\..\..\..\..\temp\cmd\test_per_ohlc.obj + -del ..\..\..\..\..\temp\cmd\test_po.obj + -del ..\..\..\..\..\temp\cmd\test_rsi.obj + -del ..\..\..\..\..\temp\cmd\test_sar.obj + -del ..\..\..\..\..\temp\cmd\test_stddev.obj + -del ..\..\..\..\..\temp\cmd\test_stoch.obj + -del ..\..\..\..\..\temp\cmd\test_trange.obj + -del ..\..\..\..\..\temp\cmd\test_util.obj + -del ..\..\..\..\..\temp\cmd\test_data.obj + -del ..\..\..\..\..\temp\cmd\test_abstract.obj + -del $(TARGET) + -del ../../../../../bin/*.map + -del ../../../../../bin/*._xe + -del ../../../../../bin/*.tds + -del ../../../../../bin/*.pdb + -del ../../../../../bin/*.pbo + -del ../../../../../bin/*.pbi + -del ../../../../../bin/*.pbt + -del ../../../../../temp/cmd/*.pch + -del ../../../../../temp/cmd/*.idb + -del ../../../../../temp/cmd/ta_regtest/*.pch + -del ../../../../../temp/cmd/ta_regtest/*.idb + -del ../../../../../temp/cmd/ta_regtest/*.obj + +####### Compile + +..\..\..\..\..\temp\cmd\ta_regtest.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_regtest.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\ta_regtest.obj ..\..\..\..\..\src\tools\ta_regtest\ta_regtest.c + +..\..\..\..\..\temp\cmd\test_candlestick.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_candlestick.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\test_candlestick.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_candlestick.c + +..\..\..\..\..\temp\cmd\test_1in_1out.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_1in_1out.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\test_1in_1out.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_1in_1out.c + +..\..\..\..\..\temp\cmd\test_1in_2out.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_1in_2out.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\test_1in_2out.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_1in_2out.c + +..\..\..\..\..\temp\cmd\test_internals.obj: ..\..\..\..\..\src\tools\ta_regtest\test_internals.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\test_internals.obj ..\..\..\..\..\src\tools\ta_regtest\test_internals.c + +..\..\..\..\..\temp\cmd\test_adx.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_adx.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\test_adx.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_adx.c + +..\..\..\..\..\temp\cmd\test_bbands.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_bbands.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\test_bbands.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_bbands.c + +..\..\..\..\..\temp\cmd\test_ma.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_ma.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\test_ma.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_ma.c + +..\..\..\..\..\temp\cmd\test_macd.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_macd.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\test_macd.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_macd.c + +..\..\..\..\..\temp\cmd\test_minmax.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_minmax.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\test_minmax.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_minmax.c + +..\..\..\..\..\temp\cmd\test_mom.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_mom.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\test_mom.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_mom.c + +..\..\..\..\..\temp\cmd\test_per_ema.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_ema.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\test_per_ema.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_ema.c + +..\..\..\..\..\temp\cmd\test_per_hl.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hl.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\test_per_hl.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hl.c + +..\..\..\..\..\temp\cmd\test_per_hlc.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hlc.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\test_per_hlc.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hlc.c + +..\..\..\..\..\temp\cmd\test_per_hlcv.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hlcv.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\test_per_hlcv.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hlcv.c + +..\..\..\..\..\temp\cmd\test_per_ohlc.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_ohlc.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\test_per_ohlc.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_ohlc.c + +..\..\..\..\..\temp\cmd\test_po.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_po.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\test_po.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_po.c + +..\..\..\..\..\temp\cmd\test_rsi.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_rsi.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\test_rsi.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_rsi.c + +..\..\..\..\..\temp\cmd\test_sar.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_sar.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\test_sar.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_sar.c + +..\..\..\..\..\temp\cmd\test_stddev.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_stddev.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\test_stddev.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_stddev.c + +..\..\..\..\..\temp\cmd\test_stoch.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_stoch.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\test_stoch.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_stoch.c + +..\..\..\..\..\temp\cmd\test_trange.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_trange.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\test_trange.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_trange.c + +..\..\..\..\..\temp\cmd\test_util.obj: ..\..\..\..\..\src\tools\ta_regtest\test_util.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\test_util.obj ..\..\..\..\..\src\tools\ta_regtest\test_util.c + +..\..\..\..\..\temp\cmd\test_data.obj: ..\..\..\..\..\src\tools\ta_regtest\test_data.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\test_data.obj ..\..\..\..\..\src\tools\ta_regtest\test_data.c + +..\..\..\..\..\temp\cmd\test_abstract.obj: ..\..\..\..\..\src\tools\ta_regtest\test_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmd\test_abstract.obj ..\..\..\..\..\src\tools\ta_regtest\test_abstract.c + diff --git a/make/cmd/win32/watcom/Makefile b/make/cmd/win32/watcom/Makefile new file mode 100644 index 000000000..db16ae002 --- /dev/null +++ b/make/cmd/win32/watcom/Makefile @@ -0,0 +1,97 @@ +############################################################################# +# Makefile for building targets in sub directories. +# Generated by tmake; +# Project: rootmake +# Template: subdirs +############################################################################# + +MAKEFILE= Makefile +TMAKE = tmake + +SUBDIRS = ta_common \ + ta_func \ + ta_abstract \ + ta_libc \ + gen_code \ + ta_regtest + +all: $(SUBDIRS) + +ta_common: FORCE + cd ta_common + $(MAKE) + @cd .. + +ta_func: FORCE + cd ta_func + $(MAKE) + @cd .. + +ta_abstract: FORCE + cd ta_abstract + $(MAKE) + @cd .. + +ta_libc: FORCE + cd ta_libc + $(MAKE) + @cd .. + +gen_code: FORCE + cd gen_code + $(MAKE) + @cd .. + +ta_regtest: FORCE + cd ta_regtest + $(MAKE) + @cd .. + + +tmake: ../cmd/win32/watcom/Makefile + +../cmd/win32/watcom/Makefile: rootmake.pro + tmake rootmake.pro -o ../cmd/win32/watcom/Makefile + +tmake_all: + cd ta_common + $(TMAKE) ta_common.pro -o $(MAKEFILE) + @cd .. + cd ta_func + $(TMAKE) ta_func.pro -o $(MAKEFILE) + @cd .. + cd ta_abstract + $(TMAKE) ta_abstract.pro -o $(MAKEFILE) + @cd .. + cd ta_libc + $(TMAKE) ta_libc.pro -o $(MAKEFILE) + @cd .. + cd gen_code + $(TMAKE) gen_code.pro -o $(MAKEFILE) + @cd .. + cd ta_regtest + $(TMAKE) ta_regtest.pro -o $(MAKEFILE) + @cd .. + + +clean: + cd ta_common + $(MAKE) clean + @cd .. + cd ta_func + $(MAKE) clean + @cd .. + cd ta_abstract + $(MAKE) clean + @cd .. + cd ta_libc + $(MAKE) clean + @cd .. + cd gen_code + $(MAKE) clean + @cd .. + cd ta_regtest + $(MAKE) clean + @cd .. + +FORCE: diff --git a/make/cmd/win32/watcom/gen_code/Makefile b/make/cmd/win32/watcom/gen_code/Makefile new file mode 100644 index 000000000..ef93d9037 --- /dev/null +++ b/make/cmd/win32/watcom/gen_code/Makefile @@ -0,0 +1,243 @@ +############################################################################# +# Makefile for building gen_code +# Generated by tmake; +# Project: gen_code/gen_code +# Template: app +############################################################################# + +####### Compiler, tools and options + +CC = wcl386 +CXX = wcl386 +CFLAGS = -zq -w2 -d2 -d=TA_GEN_CODE -d=TA_DEBUG -d=_DEBUG -d=WIN32 +CXXFLAGS= -zq -w2 -d2 -d=TA_GEN_CODE -d=TA_DEBUG -d=_DEBUG -d=WIN32 +INCPATH = -i="..\..\..\..\..\include" -i="..\..\..\..\..\src\ta_common" -i="..\..\..\..\..\src\ta_abstract" -i="..\..\..\..\..\src\ta_abstract\tables" -i="..\..\..\..\..\src\ta_abstract\frames" +LINK = wlink +LFLAGS = op quiet op c d all sys nt +LIBS = ..\..\..\..\..\lib\ta_common_cmd.lib +MOC = moc + +ZIP = zip -r -9 + +####### Files + +HEADERS = +SOURCES = ..\..\..\..\..\src\tools\gen_code\gen_code.c & + ..\..\..\..\..\src\ta_abstract\ta_abstract.c & + ..\..\..\..\..\src\ta_abstract\ta_def_ui.c & + ..\..\..\..\..\src\ta_abstract\tables\table_a.c & + ..\..\..\..\..\src\ta_abstract\tables\table_b.c & + ..\..\..\..\..\src\ta_abstract\tables\table_c.c & + ..\..\..\..\..\src\ta_abstract\tables\table_d.c & + ..\..\..\..\..\src\ta_abstract\tables\table_e.c & + ..\..\..\..\..\src\ta_abstract\tables\table_f.c & + ..\..\..\..\..\src\ta_abstract\tables\table_g.c & + ..\..\..\..\..\src\ta_abstract\tables\table_h.c & + ..\..\..\..\..\src\ta_abstract\tables\table_i.c & + ..\..\..\..\..\src\ta_abstract\tables\table_j.c & + ..\..\..\..\..\src\ta_abstract\tables\table_k.c & + ..\..\..\..\..\src\ta_abstract\tables\table_l.c & + ..\..\..\..\..\src\ta_abstract\tables\table_m.c & + ..\..\..\..\..\src\ta_abstract\tables\table_n.c & + ..\..\..\..\..\src\ta_abstract\tables\table_o.c & + ..\..\..\..\..\src\ta_abstract\tables\table_p.c & + ..\..\..\..\..\src\ta_abstract\tables\table_q.c & + ..\..\..\..\..\src\ta_abstract\tables\table_r.c & + ..\..\..\..\..\src\ta_abstract\tables\table_s.c & + ..\..\..\..\..\src\ta_abstract\tables\table_t.c & + ..\..\..\..\..\src\ta_abstract\tables\table_u.c & + ..\..\..\..\..\src\ta_abstract\tables\table_v.c & + ..\..\..\..\..\src\ta_abstract\tables\table_w.c & + ..\..\..\..\..\src\ta_abstract\tables\table_x.c & + ..\..\..\..\..\src\ta_abstract\tables\table_y.c & + ..\..\..\..\..\src\ta_abstract\tables\table_z.c +OBJECTS = ..\..\..\..\..\temp\cmd\gen_code\gen_code.obj & + ..\..\..\..\..\temp\cmd\gen_code\ta_abstract.obj & + ..\..\..\..\..\temp\cmd\gen_code\ta_def_ui.obj & + ..\..\..\..\..\temp\cmd\gen_code\table_a.obj & + ..\..\..\..\..\temp\cmd\gen_code\table_b.obj & + ..\..\..\..\..\temp\cmd\gen_code\table_c.obj & + ..\..\..\..\..\temp\cmd\gen_code\table_d.obj & + ..\..\..\..\..\temp\cmd\gen_code\table_e.obj & + ..\..\..\..\..\temp\cmd\gen_code\table_f.obj & + ..\..\..\..\..\temp\cmd\gen_code\table_g.obj & + ..\..\..\..\..\temp\cmd\gen_code\table_h.obj & + ..\..\..\..\..\temp\cmd\gen_code\table_i.obj & + ..\..\..\..\..\temp\cmd\gen_code\table_j.obj & + ..\..\..\..\..\temp\cmd\gen_code\table_k.obj & + ..\..\..\..\..\temp\cmd\gen_code\table_l.obj & + ..\..\..\..\..\temp\cmd\gen_code\table_m.obj & + ..\..\..\..\..\temp\cmd\gen_code\table_n.obj & + ..\..\..\..\..\temp\cmd\gen_code\table_o.obj & + ..\..\..\..\..\temp\cmd\gen_code\table_p.obj & + ..\..\..\..\..\temp\cmd\gen_code\table_q.obj & + ..\..\..\..\..\temp\cmd\gen_code\table_r.obj & + ..\..\..\..\..\temp\cmd\gen_code\table_s.obj & + ..\..\..\..\..\temp\cmd\gen_code\table_t.obj & + ..\..\..\..\..\temp\cmd\gen_code\table_u.obj & + ..\..\..\..\..\temp\cmd\gen_code\table_v.obj & + ..\..\..\..\..\temp\cmd\gen_code\table_w.obj & + ..\..\..\..\..\temp\cmd\gen_code\table_x.obj & + ..\..\..\..\..\temp\cmd\gen_code\table_y.obj & + ..\..\..\..\..\temp\cmd\gen_code\table_z.obj +SRCMOC = +OBJMOC = +DIST = +TARGET = ..\..\..\..\..\bin\gen_code.exe +TMPLIST = gen_code.lst + +####### Build rules + +all: $(TARGET) + +$(TARGET): $(OBJECTS) $(OBJMOC) + @%create $(TMPLIST) + @%append $(TMPLIST) NAME gen_code + @%append $(TMPLIST) FIL ..\..\..\..\..\temp\cmd\gen_code\gen_code.obj,..\..\..\..\..\temp\cmd\gen_code\ta_abstract.obj,..\..\..\..\..\temp\cmd\gen_code\ta_def_ui.obj,..\..\..\..\..\temp\cmd\gen_code\table_a.obj,..\..\..\..\..\temp\cmd\gen_code\table_b.obj,..\..\..\..\..\temp\cmd\gen_code\table_c.obj,..\..\..\..\..\temp\cmd\gen_code\table_d.obj,..\..\..\..\..\temp\cmd\gen_code\table_e.obj,..\..\..\..\..\temp\cmd\gen_code\table_f.obj,..\..\..\..\..\temp\cmd\gen_code\table_g.obj,..\..\..\..\..\temp\cmd\gen_code\table_h.obj,..\..\..\..\..\temp\cmd\gen_code\table_i.obj,..\..\..\..\..\temp\cmd\gen_code\table_j.obj,..\..\..\..\..\temp\cmd\gen_code\table_k.obj,..\..\..\..\..\temp\cmd\gen_code\table_l.obj,..\..\..\..\..\temp\cmd\gen_code\table_m.obj,..\..\..\..\..\temp\cmd\gen_code\table_n.obj,..\..\..\..\..\temp\cmd\gen_code\table_o.obj,..\..\..\..\..\temp\cmd\gen_code\table_p.obj,..\..\..\..\..\temp\cmd\gen_code\table_q.obj,..\..\..\..\..\temp\cmd\gen_code\table_r.obj,..\..\..\..\..\temp\cmd\gen_code\table_s.obj,..\..\..\..\..\temp\cmd\gen_code\table_t.obj,..\..\..\..\..\temp\cmd\gen_code\table_u.obj,..\..\..\..\..\temp\cmd\gen_code\table_v.obj,..\..\..\..\..\temp\cmd\gen_code\table_w.obj,..\..\..\..\..\temp\cmd\gen_code\table_x.obj,..\..\..\..\..\temp\cmd\gen_code\table_y.obj,..\..\..\..\..\temp\cmd\gen_code\table_z.obj + @%append $(TMPLIST) LIBR ..\..\..\..\..\lib\ta_common_cmd.lib + $(LINK) $(LFLAGS) @$(TMPLIST) + del $(TMPLIST) + +moc: $(SRCMOC) + +tmake: ../cmd/win32/watcom/gen_code/Makefile + +../cmd/win32/watcom/gen_code/Makefile: gen_code/gen_code.pro + tmake gen_code/gen_code.pro -o ../cmd/win32/watcom/gen_code/Makefile + +dist: + $(ZIP) gen_code/gen_code.zip gen_code/gen_code.pro $(SOURCES) $(HEADERS) $(DIST) + +clean: + -del ..\..\..\..\..\temp\cmd\gen_code\gen_code.obj + -del ..\..\..\..\..\temp\cmd\gen_code\ta_abstract.obj + -del ..\..\..\..\..\temp\cmd\gen_code\ta_def_ui.obj + -del ..\..\..\..\..\temp\cmd\gen_code\table_a.obj + -del ..\..\..\..\..\temp\cmd\gen_code\table_b.obj + -del ..\..\..\..\..\temp\cmd\gen_code\table_c.obj + -del ..\..\..\..\..\temp\cmd\gen_code\table_d.obj + -del ..\..\..\..\..\temp\cmd\gen_code\table_e.obj + -del ..\..\..\..\..\temp\cmd\gen_code\table_f.obj + -del ..\..\..\..\..\temp\cmd\gen_code\table_g.obj + -del ..\..\..\..\..\temp\cmd\gen_code\table_h.obj + -del ..\..\..\..\..\temp\cmd\gen_code\table_i.obj + -del ..\..\..\..\..\temp\cmd\gen_code\table_j.obj + -del ..\..\..\..\..\temp\cmd\gen_code\table_k.obj + -del ..\..\..\..\..\temp\cmd\gen_code\table_l.obj + -del ..\..\..\..\..\temp\cmd\gen_code\table_m.obj + -del ..\..\..\..\..\temp\cmd\gen_code\table_n.obj + -del ..\..\..\..\..\temp\cmd\gen_code\table_o.obj + -del ..\..\..\..\..\temp\cmd\gen_code\table_p.obj + -del ..\..\..\..\..\temp\cmd\gen_code\table_q.obj + -del ..\..\..\..\..\temp\cmd\gen_code\table_r.obj + -del ..\..\..\..\..\temp\cmd\gen_code\table_s.obj + -del ..\..\..\..\..\temp\cmd\gen_code\table_t.obj + -del ..\..\..\..\..\temp\cmd\gen_code\table_u.obj + -del ..\..\..\..\..\temp\cmd\gen_code\table_v.obj + -del ..\..\..\..\..\temp\cmd\gen_code\table_w.obj + -del ..\..\..\..\..\temp\cmd\gen_code\table_x.obj + -del ..\..\..\..\..\temp\cmd\gen_code\table_y.obj + -del ..\..\..\..\..\temp\cmd\gen_code\table_z.obj + -del $(TARGET) + -del ../../../../../bin/*.map + -del ../../../../../bin/*._xe + -del ../../../../../bin/*.tds + -del ../../../../../bin/*.pdb + -del ../../../../../bin/*.pbo + -del ../../../../../bin/*.pbi + -del ../../../../../bin/*.pbt + -del ../../../../../temp/cmd/*.pch + -del ../../../../../temp/cmd/*.idb + -del ../../../../../temp/cmd/gen_code/*.pch + -del ../../../../../temp/cmd/gen_code/*.idb + -del ../../../../../temp/cmd/gen_code/*.obj + +####### Compile + +..\..\..\..\..\temp\cmd\gen_code\gen_code.obj: ..\..\..\..\..\src\tools\gen_code\gen_code.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\gen_code\gen_code.obj ..\..\..\..\..\src\tools\gen_code\gen_code.c + +..\..\..\..\..\temp\cmd\gen_code\ta_abstract.obj: ..\..\..\..\..\src\ta_abstract\ta_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\gen_code\ta_abstract.obj ..\..\..\..\..\src\ta_abstract\ta_abstract.c + +..\..\..\..\..\temp\cmd\gen_code\ta_def_ui.obj: ..\..\..\..\..\src\ta_abstract\ta_def_ui.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\gen_code\ta_def_ui.obj ..\..\..\..\..\src\ta_abstract\ta_def_ui.c + +..\..\..\..\..\temp\cmd\gen_code\table_a.obj: ..\..\..\..\..\src\ta_abstract\tables\table_a.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\gen_code\table_a.obj ..\..\..\..\..\src\ta_abstract\tables\table_a.c + +..\..\..\..\..\temp\cmd\gen_code\table_b.obj: ..\..\..\..\..\src\ta_abstract\tables\table_b.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\gen_code\table_b.obj ..\..\..\..\..\src\ta_abstract\tables\table_b.c + +..\..\..\..\..\temp\cmd\gen_code\table_c.obj: ..\..\..\..\..\src\ta_abstract\tables\table_c.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\gen_code\table_c.obj ..\..\..\..\..\src\ta_abstract\tables\table_c.c + +..\..\..\..\..\temp\cmd\gen_code\table_d.obj: ..\..\..\..\..\src\ta_abstract\tables\table_d.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\gen_code\table_d.obj ..\..\..\..\..\src\ta_abstract\tables\table_d.c + +..\..\..\..\..\temp\cmd\gen_code\table_e.obj: ..\..\..\..\..\src\ta_abstract\tables\table_e.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\gen_code\table_e.obj ..\..\..\..\..\src\ta_abstract\tables\table_e.c + +..\..\..\..\..\temp\cmd\gen_code\table_f.obj: ..\..\..\..\..\src\ta_abstract\tables\table_f.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\gen_code\table_f.obj ..\..\..\..\..\src\ta_abstract\tables\table_f.c + +..\..\..\..\..\temp\cmd\gen_code\table_g.obj: ..\..\..\..\..\src\ta_abstract\tables\table_g.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\gen_code\table_g.obj ..\..\..\..\..\src\ta_abstract\tables\table_g.c + +..\..\..\..\..\temp\cmd\gen_code\table_h.obj: ..\..\..\..\..\src\ta_abstract\tables\table_h.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\gen_code\table_h.obj ..\..\..\..\..\src\ta_abstract\tables\table_h.c + +..\..\..\..\..\temp\cmd\gen_code\table_i.obj: ..\..\..\..\..\src\ta_abstract\tables\table_i.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\gen_code\table_i.obj ..\..\..\..\..\src\ta_abstract\tables\table_i.c + +..\..\..\..\..\temp\cmd\gen_code\table_j.obj: ..\..\..\..\..\src\ta_abstract\tables\table_j.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\gen_code\table_j.obj ..\..\..\..\..\src\ta_abstract\tables\table_j.c + +..\..\..\..\..\temp\cmd\gen_code\table_k.obj: ..\..\..\..\..\src\ta_abstract\tables\table_k.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\gen_code\table_k.obj ..\..\..\..\..\src\ta_abstract\tables\table_k.c + +..\..\..\..\..\temp\cmd\gen_code\table_l.obj: ..\..\..\..\..\src\ta_abstract\tables\table_l.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\gen_code\table_l.obj ..\..\..\..\..\src\ta_abstract\tables\table_l.c + +..\..\..\..\..\temp\cmd\gen_code\table_m.obj: ..\..\..\..\..\src\ta_abstract\tables\table_m.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\gen_code\table_m.obj ..\..\..\..\..\src\ta_abstract\tables\table_m.c + +..\..\..\..\..\temp\cmd\gen_code\table_n.obj: ..\..\..\..\..\src\ta_abstract\tables\table_n.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\gen_code\table_n.obj ..\..\..\..\..\src\ta_abstract\tables\table_n.c + +..\..\..\..\..\temp\cmd\gen_code\table_o.obj: ..\..\..\..\..\src\ta_abstract\tables\table_o.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\gen_code\table_o.obj ..\..\..\..\..\src\ta_abstract\tables\table_o.c + +..\..\..\..\..\temp\cmd\gen_code\table_p.obj: ..\..\..\..\..\src\ta_abstract\tables\table_p.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\gen_code\table_p.obj ..\..\..\..\..\src\ta_abstract\tables\table_p.c + +..\..\..\..\..\temp\cmd\gen_code\table_q.obj: ..\..\..\..\..\src\ta_abstract\tables\table_q.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\gen_code\table_q.obj ..\..\..\..\..\src\ta_abstract\tables\table_q.c + +..\..\..\..\..\temp\cmd\gen_code\table_r.obj: ..\..\..\..\..\src\ta_abstract\tables\table_r.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\gen_code\table_r.obj ..\..\..\..\..\src\ta_abstract\tables\table_r.c + +..\..\..\..\..\temp\cmd\gen_code\table_s.obj: ..\..\..\..\..\src\ta_abstract\tables\table_s.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\gen_code\table_s.obj ..\..\..\..\..\src\ta_abstract\tables\table_s.c + +..\..\..\..\..\temp\cmd\gen_code\table_t.obj: ..\..\..\..\..\src\ta_abstract\tables\table_t.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\gen_code\table_t.obj ..\..\..\..\..\src\ta_abstract\tables\table_t.c + +..\..\..\..\..\temp\cmd\gen_code\table_u.obj: ..\..\..\..\..\src\ta_abstract\tables\table_u.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\gen_code\table_u.obj ..\..\..\..\..\src\ta_abstract\tables\table_u.c + +..\..\..\..\..\temp\cmd\gen_code\table_v.obj: ..\..\..\..\..\src\ta_abstract\tables\table_v.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\gen_code\table_v.obj ..\..\..\..\..\src\ta_abstract\tables\table_v.c + +..\..\..\..\..\temp\cmd\gen_code\table_w.obj: ..\..\..\..\..\src\ta_abstract\tables\table_w.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\gen_code\table_w.obj ..\..\..\..\..\src\ta_abstract\tables\table_w.c + +..\..\..\..\..\temp\cmd\gen_code\table_x.obj: ..\..\..\..\..\src\ta_abstract\tables\table_x.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\gen_code\table_x.obj ..\..\..\..\..\src\ta_abstract\tables\table_x.c + +..\..\..\..\..\temp\cmd\gen_code\table_y.obj: ..\..\..\..\..\src\ta_abstract\tables\table_y.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\gen_code\table_y.obj ..\..\..\..\..\src\ta_abstract\tables\table_y.c + +..\..\..\..\..\temp\cmd\gen_code\table_z.obj: ..\..\..\..\..\src\ta_abstract\tables\table_z.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\gen_code\table_z.obj ..\..\..\..\..\src\ta_abstract\tables\table_z.c + diff --git a/make/cmd/win32/watcom/ta_abstract/Makefile b/make/cmd/win32/watcom/ta_abstract/Makefile new file mode 100644 index 000000000..1afdaf65b --- /dev/null +++ b/make/cmd/win32/watcom/ta_abstract/Makefile @@ -0,0 +1,251 @@ +############################################################################# +# Makefile for building ta_abstract_cmd +# Generated by tmake; +# Project: ta_abstract/ta_abstract +# Template: lib +############################################################################# + +####### Compiler, tools and options + +CC = wcl386 +CXX = wcl386 +CFLAGS = -zq -w2 -d2 -d=TA_DEBUG -d=_DEBUG -d=WIN32 +CXXFLAGS= -zq -w2 -d2 -d=TA_DEBUG -d=_DEBUG -d=WIN32 +INCPATH = -i="..\..\..\..\..\src\ta_common" -i="..\..\..\..\..\src\ta_abstract" -i="..\..\..\..\..\src\ta_abstract\tables" -i="..\..\..\..\..\src\ta_abstract\frames" -i="..\..\..\..\..\include" +LIB = wlib -b -c -n -q -p=512 +MOC = moc + +ZIP = zip -r -9 + +####### Files + +HEADERS = +SOURCES = ..\..\..\..\..\src\ta_abstract\ta_abstract.c & + ..\..\..\..\..\src\ta_abstract\ta_def_ui.c & + ..\..\..\..\..\src\ta_abstract\ta_func_api.c & + ..\..\..\..\..\src\ta_abstract\ta_group_idx.c & + ..\..\..\..\..\src\ta_abstract\frames\ta_frame.c & + ..\..\..\..\..\src\ta_abstract\tables\table_a.c & + ..\..\..\..\..\src\ta_abstract\tables\table_b.c & + ..\..\..\..\..\src\ta_abstract\tables\table_c.c & + ..\..\..\..\..\src\ta_abstract\tables\table_d.c & + ..\..\..\..\..\src\ta_abstract\tables\table_e.c & + ..\..\..\..\..\src\ta_abstract\tables\table_f.c & + ..\..\..\..\..\src\ta_abstract\tables\table_g.c & + ..\..\..\..\..\src\ta_abstract\tables\table_h.c & + ..\..\..\..\..\src\ta_abstract\tables\table_i.c & + ..\..\..\..\..\src\ta_abstract\tables\table_j.c & + ..\..\..\..\..\src\ta_abstract\tables\table_k.c & + ..\..\..\..\..\src\ta_abstract\tables\table_l.c & + ..\..\..\..\..\src\ta_abstract\tables\table_m.c & + ..\..\..\..\..\src\ta_abstract\tables\table_n.c & + ..\..\..\..\..\src\ta_abstract\tables\table_o.c & + ..\..\..\..\..\src\ta_abstract\tables\table_p.c & + ..\..\..\..\..\src\ta_abstract\tables\table_q.c & + ..\..\..\..\..\src\ta_abstract\tables\table_r.c & + ..\..\..\..\..\src\ta_abstract\tables\table_s.c & + ..\..\..\..\..\src\ta_abstract\tables\table_t.c & + ..\..\..\..\..\src\ta_abstract\tables\table_u.c & + ..\..\..\..\..\src\ta_abstract\tables\table_v.c & + ..\..\..\..\..\src\ta_abstract\tables\table_w.c & + ..\..\..\..\..\src\ta_abstract\tables\table_x.c & + ..\..\..\..\..\src\ta_abstract\tables\table_y.c & + ..\..\..\..\..\src\ta_abstract\tables\table_z.c +OBJECTS = ..\..\..\..\..\temp\cmd\ta_abstract.obj & + ..\..\..\..\..\temp\cmd\ta_def_ui.obj & + ..\..\..\..\..\temp\cmd\ta_func_api.obj & + ..\..\..\..\..\temp\cmd\ta_group_idx.obj & + ..\..\..\..\..\temp\cmd\ta_frame.obj & + ..\..\..\..\..\temp\cmd\table_a.obj & + ..\..\..\..\..\temp\cmd\table_b.obj & + ..\..\..\..\..\temp\cmd\table_c.obj & + ..\..\..\..\..\temp\cmd\table_d.obj & + ..\..\..\..\..\temp\cmd\table_e.obj & + ..\..\..\..\..\temp\cmd\table_f.obj & + ..\..\..\..\..\temp\cmd\table_g.obj & + ..\..\..\..\..\temp\cmd\table_h.obj & + ..\..\..\..\..\temp\cmd\table_i.obj & + ..\..\..\..\..\temp\cmd\table_j.obj & + ..\..\..\..\..\temp\cmd\table_k.obj & + ..\..\..\..\..\temp\cmd\table_l.obj & + ..\..\..\..\..\temp\cmd\table_m.obj & + ..\..\..\..\..\temp\cmd\table_n.obj & + ..\..\..\..\..\temp\cmd\table_o.obj & + ..\..\..\..\..\temp\cmd\table_p.obj & + ..\..\..\..\..\temp\cmd\table_q.obj & + ..\..\..\..\..\temp\cmd\table_r.obj & + ..\..\..\..\..\temp\cmd\table_s.obj & + ..\..\..\..\..\temp\cmd\table_t.obj & + ..\..\..\..\..\temp\cmd\table_u.obj & + ..\..\..\..\..\temp\cmd\table_v.obj & + ..\..\..\..\..\temp\cmd\table_w.obj & + ..\..\..\..\..\temp\cmd\table_x.obj & + ..\..\..\..\..\temp\cmd\table_y.obj & + ..\..\..\..\..\temp\cmd\table_z.obj +SRCMOC = +OBJMOC = +DIST = +TARGET = ..\..\..\..\..\lib\ta_abstract_cmd.lib +TMPLIST = ta_abstract_cmd.lst + +####### Build rules + +all: $(TARGET) + +$(TARGET): $(OBJECTS) $(OBJMOC) + @%create $(TMPLIST) + @for %i in ( $(OBJECTS) $(OBJMOC) ) do @%append $(TMPLIST) +'%i' + $(LIB) $(TARGET) @$(TMPLIST) + del $(TMPLIST) + +moc: $(SRCMOC) + +tmake: ../cmd/win32/watcom/ta_abstract/Makefile + +../cmd/win32/watcom/ta_abstract/Makefile: ta_abstract/ta_abstract.pro + tmake ta_abstract/ta_abstract.pro -o ../cmd/win32/watcom/ta_abstract/Makefile + +dist: + $(ZIP) ta_abstract/ta_abstract.zip ta_abstract/ta_abstract.pro $(SOURCES) $(HEADERS) $(DIST) + +clean: + -del ..\..\..\..\..\temp\cmd\ta_abstract.obj + -del ..\..\..\..\..\temp\cmd\ta_def_ui.obj + -del ..\..\..\..\..\temp\cmd\ta_func_api.obj + -del ..\..\..\..\..\temp\cmd\ta_group_idx.obj + -del ..\..\..\..\..\temp\cmd\ta_frame.obj + -del ..\..\..\..\..\temp\cmd\table_a.obj + -del ..\..\..\..\..\temp\cmd\table_b.obj + -del ..\..\..\..\..\temp\cmd\table_c.obj + -del ..\..\..\..\..\temp\cmd\table_d.obj + -del ..\..\..\..\..\temp\cmd\table_e.obj + -del ..\..\..\..\..\temp\cmd\table_f.obj + -del ..\..\..\..\..\temp\cmd\table_g.obj + -del ..\..\..\..\..\temp\cmd\table_h.obj + -del ..\..\..\..\..\temp\cmd\table_i.obj + -del ..\..\..\..\..\temp\cmd\table_j.obj + -del ..\..\..\..\..\temp\cmd\table_k.obj + -del ..\..\..\..\..\temp\cmd\table_l.obj + -del ..\..\..\..\..\temp\cmd\table_m.obj + -del ..\..\..\..\..\temp\cmd\table_n.obj + -del ..\..\..\..\..\temp\cmd\table_o.obj + -del ..\..\..\..\..\temp\cmd\table_p.obj + -del ..\..\..\..\..\temp\cmd\table_q.obj + -del ..\..\..\..\..\temp\cmd\table_r.obj + -del ..\..\..\..\..\temp\cmd\table_s.obj + -del ..\..\..\..\..\temp\cmd\table_t.obj + -del ..\..\..\..\..\temp\cmd\table_u.obj + -del ..\..\..\..\..\temp\cmd\table_v.obj + -del ..\..\..\..\..\temp\cmd\table_w.obj + -del ..\..\..\..\..\temp\cmd\table_x.obj + -del ..\..\..\..\..\temp\cmd\table_y.obj + -del ..\..\..\..\..\temp\cmd\table_z.obj + -del $(TARGET) + -del ../../../../../bin/*.map + -del ../../../../../bin/*._xe + -del ../../../../../bin/*.tds + -del ../../../../../bin/*.pdb + -del ../../../../../bin/*.pbo + -del ../../../../../bin/*.pbi + -del ../../../../../bin/*.pbt + -del ../../../../../temp/cmd/*.pch + -del ../../../../../temp/cmd/*.idb + -del ../../../../../temp/cmd/ta_abstract/*.pch + -del ../../../../../temp/cmd/ta_abstract/*.idb + -del ../../../../../temp/cmd/ta_abstract/*.obj + +####### Compile + +..\..\..\..\..\temp\cmd\ta_abstract.obj: ..\..\..\..\..\src\ta_abstract\ta_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_abstract.obj ..\..\..\..\..\src\ta_abstract\ta_abstract.c + +..\..\..\..\..\temp\cmd\ta_def_ui.obj: ..\..\..\..\..\src\ta_abstract\ta_def_ui.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_def_ui.obj ..\..\..\..\..\src\ta_abstract\ta_def_ui.c + +..\..\..\..\..\temp\cmd\ta_func_api.obj: ..\..\..\..\..\src\ta_abstract\ta_func_api.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_func_api.obj ..\..\..\..\..\src\ta_abstract\ta_func_api.c + +..\..\..\..\..\temp\cmd\ta_group_idx.obj: ..\..\..\..\..\src\ta_abstract\ta_group_idx.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_group_idx.obj ..\..\..\..\..\src\ta_abstract\ta_group_idx.c + +..\..\..\..\..\temp\cmd\ta_frame.obj: ..\..\..\..\..\src\ta_abstract\frames\ta_frame.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_frame.obj ..\..\..\..\..\src\ta_abstract\frames\ta_frame.c + +..\..\..\..\..\temp\cmd\table_a.obj: ..\..\..\..\..\src\ta_abstract\tables\table_a.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\table_a.obj ..\..\..\..\..\src\ta_abstract\tables\table_a.c + +..\..\..\..\..\temp\cmd\table_b.obj: ..\..\..\..\..\src\ta_abstract\tables\table_b.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\table_b.obj ..\..\..\..\..\src\ta_abstract\tables\table_b.c + +..\..\..\..\..\temp\cmd\table_c.obj: ..\..\..\..\..\src\ta_abstract\tables\table_c.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\table_c.obj ..\..\..\..\..\src\ta_abstract\tables\table_c.c + +..\..\..\..\..\temp\cmd\table_d.obj: ..\..\..\..\..\src\ta_abstract\tables\table_d.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\table_d.obj ..\..\..\..\..\src\ta_abstract\tables\table_d.c + +..\..\..\..\..\temp\cmd\table_e.obj: ..\..\..\..\..\src\ta_abstract\tables\table_e.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\table_e.obj ..\..\..\..\..\src\ta_abstract\tables\table_e.c + +..\..\..\..\..\temp\cmd\table_f.obj: ..\..\..\..\..\src\ta_abstract\tables\table_f.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\table_f.obj ..\..\..\..\..\src\ta_abstract\tables\table_f.c + +..\..\..\..\..\temp\cmd\table_g.obj: ..\..\..\..\..\src\ta_abstract\tables\table_g.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\table_g.obj ..\..\..\..\..\src\ta_abstract\tables\table_g.c + +..\..\..\..\..\temp\cmd\table_h.obj: ..\..\..\..\..\src\ta_abstract\tables\table_h.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\table_h.obj ..\..\..\..\..\src\ta_abstract\tables\table_h.c + +..\..\..\..\..\temp\cmd\table_i.obj: ..\..\..\..\..\src\ta_abstract\tables\table_i.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\table_i.obj ..\..\..\..\..\src\ta_abstract\tables\table_i.c + +..\..\..\..\..\temp\cmd\table_j.obj: ..\..\..\..\..\src\ta_abstract\tables\table_j.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\table_j.obj ..\..\..\..\..\src\ta_abstract\tables\table_j.c + +..\..\..\..\..\temp\cmd\table_k.obj: ..\..\..\..\..\src\ta_abstract\tables\table_k.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\table_k.obj ..\..\..\..\..\src\ta_abstract\tables\table_k.c + +..\..\..\..\..\temp\cmd\table_l.obj: ..\..\..\..\..\src\ta_abstract\tables\table_l.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\table_l.obj ..\..\..\..\..\src\ta_abstract\tables\table_l.c + +..\..\..\..\..\temp\cmd\table_m.obj: ..\..\..\..\..\src\ta_abstract\tables\table_m.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\table_m.obj ..\..\..\..\..\src\ta_abstract\tables\table_m.c + +..\..\..\..\..\temp\cmd\table_n.obj: ..\..\..\..\..\src\ta_abstract\tables\table_n.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\table_n.obj ..\..\..\..\..\src\ta_abstract\tables\table_n.c + +..\..\..\..\..\temp\cmd\table_o.obj: ..\..\..\..\..\src\ta_abstract\tables\table_o.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\table_o.obj ..\..\..\..\..\src\ta_abstract\tables\table_o.c + +..\..\..\..\..\temp\cmd\table_p.obj: ..\..\..\..\..\src\ta_abstract\tables\table_p.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\table_p.obj ..\..\..\..\..\src\ta_abstract\tables\table_p.c + +..\..\..\..\..\temp\cmd\table_q.obj: ..\..\..\..\..\src\ta_abstract\tables\table_q.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\table_q.obj ..\..\..\..\..\src\ta_abstract\tables\table_q.c + +..\..\..\..\..\temp\cmd\table_r.obj: ..\..\..\..\..\src\ta_abstract\tables\table_r.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\table_r.obj ..\..\..\..\..\src\ta_abstract\tables\table_r.c + +..\..\..\..\..\temp\cmd\table_s.obj: ..\..\..\..\..\src\ta_abstract\tables\table_s.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\table_s.obj ..\..\..\..\..\src\ta_abstract\tables\table_s.c + +..\..\..\..\..\temp\cmd\table_t.obj: ..\..\..\..\..\src\ta_abstract\tables\table_t.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\table_t.obj ..\..\..\..\..\src\ta_abstract\tables\table_t.c + +..\..\..\..\..\temp\cmd\table_u.obj: ..\..\..\..\..\src\ta_abstract\tables\table_u.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\table_u.obj ..\..\..\..\..\src\ta_abstract\tables\table_u.c + +..\..\..\..\..\temp\cmd\table_v.obj: ..\..\..\..\..\src\ta_abstract\tables\table_v.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\table_v.obj ..\..\..\..\..\src\ta_abstract\tables\table_v.c + +..\..\..\..\..\temp\cmd\table_w.obj: ..\..\..\..\..\src\ta_abstract\tables\table_w.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\table_w.obj ..\..\..\..\..\src\ta_abstract\tables\table_w.c + +..\..\..\..\..\temp\cmd\table_x.obj: ..\..\..\..\..\src\ta_abstract\tables\table_x.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\table_x.obj ..\..\..\..\..\src\ta_abstract\tables\table_x.c + +..\..\..\..\..\temp\cmd\table_y.obj: ..\..\..\..\..\src\ta_abstract\tables\table_y.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\table_y.obj ..\..\..\..\..\src\ta_abstract\tables\table_y.c + +..\..\..\..\..\temp\cmd\table_z.obj: ..\..\..\..\..\src\ta_abstract\tables\table_z.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\table_z.obj ..\..\..\..\..\src\ta_abstract\tables\table_z.c + diff --git a/make/cmd/win32/watcom/ta_common/Makefile b/make/cmd/win32/watcom/ta_common/Makefile new file mode 100644 index 000000000..4912e74d0 --- /dev/null +++ b/make/cmd/win32/watcom/ta_common/Makefile @@ -0,0 +1,83 @@ +############################################################################# +# Makefile for building ta_common_cmd +# Generated by tmake; +# Project: ta_common/ta_common +# Template: lib +############################################################################# + +####### Compiler, tools and options + +CC = wcl386 +CXX = wcl386 +CFLAGS = -zq -w2 -d2 -d=TA_DEBUG -d=_DEBUG -d=WIN32 +CXXFLAGS= -zq -w2 -d2 -d=TA_DEBUG -d=_DEBUG -d=WIN32 +INCPATH = -i="..\..\..\..\..\src\ta_common" -i="..\..\..\..\..\include" +LIB = wlib -b -c -n -q -p=512 +MOC = moc + +ZIP = zip -r -9 + +####### Files + +HEADERS = +SOURCES = ..\..\..\..\..\src\ta_common\ta_global.c & + ..\..\..\..\..\src\ta_common\ta_retcode.c & + ..\..\..\..\..\src\ta_common\ta_version.c +OBJECTS = ..\..\..\..\..\temp\cmd\ta_global.obj & + ..\..\..\..\..\temp\cmd\ta_retcode.obj & + ..\..\..\..\..\temp\cmd\ta_version.obj +SRCMOC = +OBJMOC = +DIST = +TARGET = ..\..\..\..\..\lib\ta_common_cmd.lib +TMPLIST = ta_common_cmd.lst + +####### Build rules + +all: $(TARGET) + +$(TARGET): $(OBJECTS) $(OBJMOC) + @%create $(TMPLIST) + @for %i in ( $(OBJECTS) $(OBJMOC) ) do @%append $(TMPLIST) +'%i' + $(LIB) $(TARGET) @$(TMPLIST) + del $(TMPLIST) + +moc: $(SRCMOC) + +tmake: ../cmd/win32/watcom/ta_common/Makefile + +../cmd/win32/watcom/ta_common/Makefile: ta_common/ta_common.pro + tmake ta_common/ta_common.pro -o ../cmd/win32/watcom/ta_common/Makefile + +dist: + $(ZIP) ta_common/ta_common.zip ta_common/ta_common.pro $(SOURCES) $(HEADERS) $(DIST) + +clean: + -del ..\..\..\..\..\temp\cmd\ta_global.obj + -del ..\..\..\..\..\temp\cmd\ta_retcode.obj + -del ..\..\..\..\..\temp\cmd\ta_version.obj + -del $(TARGET) + -del ../../../../../bin/*.map + -del ../../../../../bin/*._xe + -del ../../../../../bin/*.tds + -del ../../../../../bin/*.pdb + -del ../../../../../bin/*.pbo + -del ../../../../../bin/*.pbi + -del ../../../../../bin/*.pbt + -del ../../../../../temp/cmd/*.pch + -del ../../../../../temp/cmd/*.idb + -del ../../../../../temp/cmd/ta_common_cmd/*.pch + -del ../../../../../temp/cmd/ta_common_cmd/*.idb + -del ../../../../../temp/cmd/ta_common_cmd/*.obj + +####### Compile + +..\..\..\..\..\temp\cmd\ta_global.obj: ..\..\..\..\..\src\ta_common\ta_global.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_global.obj ..\..\..\..\..\src\ta_common\ta_global.c + +..\..\..\..\..\temp\cmd\ta_retcode.obj: ..\..\..\..\..\src\ta_common\ta_retcode.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_retcode.obj ..\..\..\..\..\src\ta_common\ta_retcode.c + +..\..\..\..\..\temp\cmd\ta_version.obj: ..\..\..\..\..\src\ta_common\ta_version.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_version.obj ..\..\..\..\..\src\ta_common\ta_version.c + diff --git a/make/cmd/win32/watcom/ta_func/Makefile b/make/cmd/win32/watcom/ta_func/Makefile new file mode 100644 index 000000000..a0b7c1cd1 --- /dev/null +++ b/make/cmd/win32/watcom/ta_func/Makefile @@ -0,0 +1,1019 @@ +############################################################################# +# Makefile for building ta_func_cmd +# Generated by tmake; +# Project: ta_func/ta_func +# Template: lib +############################################################################# + +####### Compiler, tools and options + +CC = wcl386 +CXX = wcl386 +CFLAGS = -zq -w2 -d2 -d=TA_DEBUG -d=_DEBUG -d=WIN32 +CXXFLAGS= -zq -w2 -d2 -d=TA_DEBUG -d=_DEBUG -d=WIN32 +INCPATH = -i="..\..\..\..\..\src\ta_common" -i="\n" -i="..\..\..\..\..\include" +LIB = wlib -b -c -n -q -p=512 +MOC = moc + +ZIP = zip -r -9 + +####### Files + +HEADERS = +SOURCES = ..\..\..\..\..\src\ta_func\ta_utility.c & + ..\..\..\..\..\src\ta_func\ta_ACOS.c & + ..\..\..\..\..\src\ta_func\ta_AD.c & + ..\..\..\..\..\src\ta_func\ta_ADD.c & + ..\..\..\..\..\src\ta_func\ta_ADOSC.c & + ..\..\..\..\..\src\ta_func\ta_ADX.c & + ..\..\..\..\..\src\ta_func\ta_ADXR.c & + ..\..\..\..\..\src\ta_func\ta_APO.c & + ..\..\..\..\..\src\ta_func\ta_AROON.c & + ..\..\..\..\..\src\ta_func\ta_AROONOSC.c & + ..\..\..\..\..\src\ta_func\ta_ASIN.c & + ..\..\..\..\..\src\ta_func\ta_ATAN.c & + ..\..\..\..\..\src\ta_func\ta_ATR.c & + ..\..\..\..\..\src\ta_func\ta_AVGPRICE.c & + ..\..\..\..\..\src\ta_func\ta_BBANDS.c & + ..\..\..\..\..\src\ta_func\ta_BETA.c & + ..\..\..\..\..\src\ta_func\ta_BOP.c & + ..\..\..\..\..\src\ta_func\ta_CCI.c & + ..\..\..\..\..\src\ta_func\ta_CDL2CROWS.c & + ..\..\..\..\..\src\ta_func\ta_CDL3BLACKCROWS.c & + ..\..\..\..\..\src\ta_func\ta_CDL3INSIDE.c & + ..\..\..\..\..\src\ta_func\ta_CDL3LINESTRIKE.c & + ..\..\..\..\..\src\ta_func\ta_CDL3OUTSIDE.c & + ..\..\..\..\..\src\ta_func\ta_CDL3STARSINSOUTH.c & + ..\..\..\..\..\src\ta_func\ta_CDL3WHITESOLDIERS.c & + ..\..\..\..\..\src\ta_func\ta_CDLABANDONEDBABY.c & + ..\..\..\..\..\src\ta_func\ta_CDLADVANCEBLOCK.c & + ..\..\..\..\..\src\ta_func\ta_CDLBELTHOLD.c & + ..\..\..\..\..\src\ta_func\ta_CDLBREAKAWAY.c & + ..\..\..\..\..\src\ta_func\ta_CDLCLOSINGMARUBOZU.c & + ..\..\..\..\..\src\ta_func\ta_CDLCONCEALBABYSWALL.c & + ..\..\..\..\..\src\ta_func\ta_CDLCOUNTERATTACK.c & + ..\..\..\..\..\src\ta_func\ta_CDLDARKCLOUDCOVER.c & + ..\..\..\..\..\src\ta_func\ta_CDLDOJI.c & + ..\..\..\..\..\src\ta_func\ta_CDLDOJISTAR.c & + ..\..\..\..\..\src\ta_func\ta_CDLDRAGONFLYDOJI.c & + ..\..\..\..\..\src\ta_func\ta_CDLENGULFING.c & + ..\..\..\..\..\src\ta_func\ta_CDLEVENINGDOJISTAR.c & + ..\..\..\..\..\src\ta_func\ta_CDLEVENINGSTAR.c & + ..\..\..\..\..\src\ta_func\ta_CDLGAPSIDESIDEWHITE.c & + ..\..\..\..\..\src\ta_func\ta_CDLGRAVESTONEDOJI.c & + ..\..\..\..\..\src\ta_func\ta_CDLHAMMER.c & + ..\..\..\..\..\src\ta_func\ta_CDLHANGINGMAN.c & + ..\..\..\..\..\src\ta_func\ta_CDLHARAMI.c & + ..\..\..\..\..\src\ta_func\ta_CDLHARAMICROSS.c & + ..\..\..\..\..\src\ta_func\ta_CDLHIGHWAVE.c & + ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKE.c & + ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKEMOD.c & + ..\..\..\..\..\src\ta_func\ta_CDLHOMINGPIGEON.c & + ..\..\..\..\..\src\ta_func\ta_CDLIDENTICAL3CROWS.c & + ..\..\..\..\..\src\ta_func\ta_CDLINNECK.c & + ..\..\..\..\..\src\ta_func\ta_CDLINVERTEDHAMMER.c & + ..\..\..\..\..\src\ta_func\ta_CDLKICKING.c & + ..\..\..\..\..\src\ta_func\ta_CDLKICKINGBYLENGTH.c & + ..\..\..\..\..\src\ta_func\ta_CDLLADDERBOTTOM.c & + ..\..\..\..\..\src\ta_func\ta_CDLLONGLEGGEDDOJI.c & + ..\..\..\..\..\src\ta_func\ta_CDLLONGLINE.c & + ..\..\..\..\..\src\ta_func\ta_CDLMARUBOZU.c & + ..\..\..\..\..\src\ta_func\ta_CDLMATCHINGLOW.c & + ..\..\..\..\..\src\ta_func\ta_CDLMATHOLD.c & + ..\..\..\..\..\src\ta_func\ta_CDLMORNINGDOJISTAR.c & + ..\..\..\..\..\src\ta_func\ta_CDLMORNINGSTAR.c & + ..\..\..\..\..\src\ta_func\ta_CDLONNECK.c & + ..\..\..\..\..\src\ta_func\ta_CDLPIERCING.c & + ..\..\..\..\..\src\ta_func\ta_CDLRICKSHAWMAN.c & + ..\..\..\..\..\src\ta_func\ta_CDLRISEFALL3METHODS.c & + ..\..\..\..\..\src\ta_func\ta_CDLSEPARATINGLINES.c & + ..\..\..\..\..\src\ta_func\ta_CDLSHOOTINGSTAR.c & + ..\..\..\..\..\src\ta_func\ta_CDLSHORTLINE.c & + ..\..\..\..\..\src\ta_func\ta_CDLSPINNINGTOP.c & + ..\..\..\..\..\src\ta_func\ta_CDLSTALLEDPATTERN.c & + ..\..\..\..\..\src\ta_func\ta_CDLSTICKSANDWICH.c & + ..\..\..\..\..\src\ta_func\ta_CDLTAKURI.c & + ..\..\..\..\..\src\ta_func\ta_CDLTASUKIGAP.c & + ..\..\..\..\..\src\ta_func\ta_CDLTHRUSTING.c & + ..\..\..\..\..\src\ta_func\ta_CDLTRISTAR.c & + ..\..\..\..\..\src\ta_func\ta_CDLUNIQUE3RIVER.c & + ..\..\..\..\..\src\ta_func\ta_CDLUPSIDEGAP2CROWS.c & + ..\..\..\..\..\src\ta_func\ta_CDLXSIDEGAP3METHODS.c & + ..\..\..\..\..\src\ta_func\ta_CEIL.c & + ..\..\..\..\..\src\ta_func\ta_CMO.c & + ..\..\..\..\..\src\ta_func\ta_CORREL.c & + ..\..\..\..\..\src\ta_func\ta_COS.c & + ..\..\..\..\..\src\ta_func\ta_COSH.c & + ..\..\..\..\..\src\ta_func\ta_DEMA.c & + ..\..\..\..\..\src\ta_func\ta_DIV.c & + ..\..\..\..\..\src\ta_func\ta_DX.c & + ..\..\..\..\..\src\ta_func\ta_EMA.c & + ..\..\..\..\..\src\ta_func\ta_EXP.c & + ..\..\..\..\..\src\ta_func\ta_FLOOR.c & + ..\..\..\..\..\src\ta_func\ta_HT_DCPERIOD.c & + ..\..\..\..\..\src\ta_func\ta_HT_DCPHASE.c & + ..\..\..\..\..\src\ta_func\ta_HT_PHASOR.c & + ..\..\..\..\..\src\ta_func\ta_HT_SINE.c & + ..\..\..\..\..\src\ta_func\ta_HT_TRENDLINE.c & + ..\..\..\..\..\src\ta_func\ta_HT_TRENDMODE.c & + ..\..\..\..\..\src\ta_func\ta_KAMA.c & + ..\..\..\..\..\src\ta_func\ta_LINEARREG.c & + ..\..\..\..\..\src\ta_func\ta_LINEARREG_ANGLE.c & + ..\..\..\..\..\src\ta_func\ta_LINEARREG_INTERCEPT.c & + ..\..\..\..\..\src\ta_func\ta_LINEARREG_SLOPE.c & + ..\..\..\..\..\src\ta_func\ta_LN.c & + ..\..\..\..\..\src\ta_func\ta_LOG10.c & + ..\..\..\..\..\src\ta_func\ta_MA.c & + ..\..\..\..\..\src\ta_func\ta_MACD.c & + ..\..\..\..\..\src\ta_func\ta_MACDEXT.c & + ..\..\..\..\..\src\ta_func\ta_MACDFIX.c & + ..\..\..\..\..\src\ta_func\ta_MAMA.c & + ..\..\..\..\..\src\ta_func\ta_MAVP.c & + ..\..\..\..\..\src\ta_func\ta_MAX.c & + ..\..\..\..\..\src\ta_func\ta_MAXINDEX.c & + ..\..\..\..\..\src\ta_func\ta_MEDPRICE.c & + ..\..\..\..\..\src\ta_func\ta_MFI.c & + ..\..\..\..\..\src\ta_func\ta_MIDPOINT.c & + ..\..\..\..\..\src\ta_func\ta_MIDPRICE.c & + ..\..\..\..\..\src\ta_func\ta_MIN.c & + ..\..\..\..\..\src\ta_func\ta_MININDEX.c & + ..\..\..\..\..\src\ta_func\ta_MINMAX.c & + ..\..\..\..\..\src\ta_func\ta_MINMAXINDEX.c & + ..\..\..\..\..\src\ta_func\ta_MINUS_DI.c & + ..\..\..\..\..\src\ta_func\ta_MINUS_DM.c & + ..\..\..\..\..\src\ta_func\ta_MOM.c & + ..\..\..\..\..\src\ta_func\ta_MULT.c & + ..\..\..\..\..\src\ta_func\ta_NATR.c & + ..\..\..\..\..\src\ta_func\ta_OBV.c & + ..\..\..\..\..\src\ta_func\ta_PLUS_DI.c & + ..\..\..\..\..\src\ta_func\ta_PLUS_DM.c & + ..\..\..\..\..\src\ta_func\ta_PPO.c & + ..\..\..\..\..\src\ta_func\ta_ROC.c & + ..\..\..\..\..\src\ta_func\ta_ROCP.c & + ..\..\..\..\..\src\ta_func\ta_ROCR.c & + ..\..\..\..\..\src\ta_func\ta_ROCR100.c & + ..\..\..\..\..\src\ta_func\ta_RSI.c & + ..\..\..\..\..\src\ta_func\ta_SAR.c & + ..\..\..\..\..\src\ta_func\ta_SAREXT.c & + ..\..\..\..\..\src\ta_func\ta_SIN.c & + ..\..\..\..\..\src\ta_func\ta_SINH.c & + ..\..\..\..\..\src\ta_func\ta_SMA.c & + ..\..\..\..\..\src\ta_func\ta_SQRT.c & + ..\..\..\..\..\src\ta_func\ta_STDDEV.c & + ..\..\..\..\..\src\ta_func\ta_STOCH.c & + ..\..\..\..\..\src\ta_func\ta_STOCHF.c & + ..\..\..\..\..\src\ta_func\ta_STOCHRSI.c & + ..\..\..\..\..\src\ta_func\ta_SUB.c & + ..\..\..\..\..\src\ta_func\ta_SUM.c & + ..\..\..\..\..\src\ta_func\ta_T3.c & + ..\..\..\..\..\src\ta_func\ta_TAN.c & + ..\..\..\..\..\src\ta_func\ta_TANH.c & + ..\..\..\..\..\src\ta_func\ta_TEMA.c & + ..\..\..\..\..\src\ta_func\ta_TRANGE.c & + ..\..\..\..\..\src\ta_func\ta_TRIMA.c & + ..\..\..\..\..\src\ta_func\ta_TRIX.c & + ..\..\..\..\..\src\ta_func\ta_TSF.c & + ..\..\..\..\..\src\ta_func\ta_TYPPRICE.c & + ..\..\..\..\..\src\ta_func\ta_ULTOSC.c & + ..\..\..\..\..\src\ta_func\ta_VAR.c & + ..\..\..\..\..\src\ta_func\ta_WCLPRICE.c & + ..\..\..\..\..\src\ta_func\ta_WILLR.c & + ..\..\..\..\..\src\ta_func\ta_WMA.c +OBJECTS = ..\..\..\..\..\temp\cmd\ta_utility.obj & + ..\..\..\..\..\temp\cmd\ta_ACOS.obj & + ..\..\..\..\..\temp\cmd\ta_AD.obj & + ..\..\..\..\..\temp\cmd\ta_ADD.obj & + ..\..\..\..\..\temp\cmd\ta_ADOSC.obj & + ..\..\..\..\..\temp\cmd\ta_ADX.obj & + ..\..\..\..\..\temp\cmd\ta_ADXR.obj & + ..\..\..\..\..\temp\cmd\ta_APO.obj & + ..\..\..\..\..\temp\cmd\ta_AROON.obj & + ..\..\..\..\..\temp\cmd\ta_AROONOSC.obj & + ..\..\..\..\..\temp\cmd\ta_ASIN.obj & + ..\..\..\..\..\temp\cmd\ta_ATAN.obj & + ..\..\..\..\..\temp\cmd\ta_ATR.obj & + ..\..\..\..\..\temp\cmd\ta_AVGPRICE.obj & + ..\..\..\..\..\temp\cmd\ta_BBANDS.obj & + ..\..\..\..\..\temp\cmd\ta_BETA.obj & + ..\..\..\..\..\temp\cmd\ta_BOP.obj & + ..\..\..\..\..\temp\cmd\ta_CCI.obj & + ..\..\..\..\..\temp\cmd\ta_CDL2CROWS.obj & + ..\..\..\..\..\temp\cmd\ta_CDL3BLACKCROWS.obj & + ..\..\..\..\..\temp\cmd\ta_CDL3INSIDE.obj & + ..\..\..\..\..\temp\cmd\ta_CDL3LINESTRIKE.obj & + ..\..\..\..\..\temp\cmd\ta_CDL3OUTSIDE.obj & + ..\..\..\..\..\temp\cmd\ta_CDL3STARSINSOUTH.obj & + ..\..\..\..\..\temp\cmd\ta_CDL3WHITESOLDIERS.obj & + ..\..\..\..\..\temp\cmd\ta_CDLABANDONEDBABY.obj & + ..\..\..\..\..\temp\cmd\ta_CDLADVANCEBLOCK.obj & + ..\..\..\..\..\temp\cmd\ta_CDLBELTHOLD.obj & + ..\..\..\..\..\temp\cmd\ta_CDLBREAKAWAY.obj & + ..\..\..\..\..\temp\cmd\ta_CDLCLOSINGMARUBOZU.obj & + ..\..\..\..\..\temp\cmd\ta_CDLCONCEALBABYSWALL.obj & + ..\..\..\..\..\temp\cmd\ta_CDLCOUNTERATTACK.obj & + ..\..\..\..\..\temp\cmd\ta_CDLDARKCLOUDCOVER.obj & + ..\..\..\..\..\temp\cmd\ta_CDLDOJI.obj & + ..\..\..\..\..\temp\cmd\ta_CDLDOJISTAR.obj & + ..\..\..\..\..\temp\cmd\ta_CDLDRAGONFLYDOJI.obj & + ..\..\..\..\..\temp\cmd\ta_CDLENGULFING.obj & + ..\..\..\..\..\temp\cmd\ta_CDLEVENINGDOJISTAR.obj & + ..\..\..\..\..\temp\cmd\ta_CDLEVENINGSTAR.obj & + ..\..\..\..\..\temp\cmd\ta_CDLGAPSIDESIDEWHITE.obj & + ..\..\..\..\..\temp\cmd\ta_CDLGRAVESTONEDOJI.obj & + ..\..\..\..\..\temp\cmd\ta_CDLHAMMER.obj & + ..\..\..\..\..\temp\cmd\ta_CDLHANGINGMAN.obj & + ..\..\..\..\..\temp\cmd\ta_CDLHARAMI.obj & + ..\..\..\..\..\temp\cmd\ta_CDLHARAMICROSS.obj & + ..\..\..\..\..\temp\cmd\ta_CDLHIGHWAVE.obj & + ..\..\..\..\..\temp\cmd\ta_CDLHIKKAKE.obj & + ..\..\..\..\..\temp\cmd\ta_CDLHIKKAKEMOD.obj & + ..\..\..\..\..\temp\cmd\ta_CDLHOMINGPIGEON.obj & + ..\..\..\..\..\temp\cmd\ta_CDLIDENTICAL3CROWS.obj & + ..\..\..\..\..\temp\cmd\ta_CDLINNECK.obj & + ..\..\..\..\..\temp\cmd\ta_CDLINVERTEDHAMMER.obj & + ..\..\..\..\..\temp\cmd\ta_CDLKICKING.obj & + ..\..\..\..\..\temp\cmd\ta_CDLKICKINGBYLENGTH.obj & + ..\..\..\..\..\temp\cmd\ta_CDLLADDERBOTTOM.obj & + ..\..\..\..\..\temp\cmd\ta_CDLLONGLEGGEDDOJI.obj & + ..\..\..\..\..\temp\cmd\ta_CDLLONGLINE.obj & + ..\..\..\..\..\temp\cmd\ta_CDLMARUBOZU.obj & + ..\..\..\..\..\temp\cmd\ta_CDLMATCHINGLOW.obj & + ..\..\..\..\..\temp\cmd\ta_CDLMATHOLD.obj & + ..\..\..\..\..\temp\cmd\ta_CDLMORNINGDOJISTAR.obj & + ..\..\..\..\..\temp\cmd\ta_CDLMORNINGSTAR.obj & + ..\..\..\..\..\temp\cmd\ta_CDLONNECK.obj & + ..\..\..\..\..\temp\cmd\ta_CDLPIERCING.obj & + ..\..\..\..\..\temp\cmd\ta_CDLRICKSHAWMAN.obj & + ..\..\..\..\..\temp\cmd\ta_CDLRISEFALL3METHODS.obj & + ..\..\..\..\..\temp\cmd\ta_CDLSEPARATINGLINES.obj & + ..\..\..\..\..\temp\cmd\ta_CDLSHOOTINGSTAR.obj & + ..\..\..\..\..\temp\cmd\ta_CDLSHORTLINE.obj & + ..\..\..\..\..\temp\cmd\ta_CDLSPINNINGTOP.obj & + ..\..\..\..\..\temp\cmd\ta_CDLSTALLEDPATTERN.obj & + ..\..\..\..\..\temp\cmd\ta_CDLSTICKSANDWICH.obj & + ..\..\..\..\..\temp\cmd\ta_CDLTAKURI.obj & + ..\..\..\..\..\temp\cmd\ta_CDLTASUKIGAP.obj & + ..\..\..\..\..\temp\cmd\ta_CDLTHRUSTING.obj & + ..\..\..\..\..\temp\cmd\ta_CDLTRISTAR.obj & + ..\..\..\..\..\temp\cmd\ta_CDLUNIQUE3RIVER.obj & + ..\..\..\..\..\temp\cmd\ta_CDLUPSIDEGAP2CROWS.obj & + ..\..\..\..\..\temp\cmd\ta_CDLXSIDEGAP3METHODS.obj & + ..\..\..\..\..\temp\cmd\ta_CEIL.obj & + ..\..\..\..\..\temp\cmd\ta_CMO.obj & + ..\..\..\..\..\temp\cmd\ta_CORREL.obj & + ..\..\..\..\..\temp\cmd\ta_COS.obj & + ..\..\..\..\..\temp\cmd\ta_COSH.obj & + ..\..\..\..\..\temp\cmd\ta_DEMA.obj & + ..\..\..\..\..\temp\cmd\ta_DIV.obj & + ..\..\..\..\..\temp\cmd\ta_DX.obj & + ..\..\..\..\..\temp\cmd\ta_EMA.obj & + ..\..\..\..\..\temp\cmd\ta_EXP.obj & + ..\..\..\..\..\temp\cmd\ta_FLOOR.obj & + ..\..\..\..\..\temp\cmd\ta_HT_DCPERIOD.obj & + ..\..\..\..\..\temp\cmd\ta_HT_DCPHASE.obj & + ..\..\..\..\..\temp\cmd\ta_HT_PHASOR.obj & + ..\..\..\..\..\temp\cmd\ta_HT_SINE.obj & + ..\..\..\..\..\temp\cmd\ta_HT_TRENDLINE.obj & + ..\..\..\..\..\temp\cmd\ta_HT_TRENDMODE.obj & + ..\..\..\..\..\temp\cmd\ta_KAMA.obj & + ..\..\..\..\..\temp\cmd\ta_LINEARREG.obj & + ..\..\..\..\..\temp\cmd\ta_LINEARREG_ANGLE.obj & + ..\..\..\..\..\temp\cmd\ta_LINEARREG_INTERCEPT.obj & + ..\..\..\..\..\temp\cmd\ta_LINEARREG_SLOPE.obj & + ..\..\..\..\..\temp\cmd\ta_LN.obj & + ..\..\..\..\..\temp\cmd\ta_LOG10.obj & + ..\..\..\..\..\temp\cmd\ta_MA.obj & + ..\..\..\..\..\temp\cmd\ta_MACD.obj & + ..\..\..\..\..\temp\cmd\ta_MACDEXT.obj & + ..\..\..\..\..\temp\cmd\ta_MACDFIX.obj & + ..\..\..\..\..\temp\cmd\ta_MAMA.obj & + ..\..\..\..\..\temp\cmd\ta_MAVP.obj & + ..\..\..\..\..\temp\cmd\ta_MAX.obj & + ..\..\..\..\..\temp\cmd\ta_MAXINDEX.obj & + ..\..\..\..\..\temp\cmd\ta_MEDPRICE.obj & + ..\..\..\..\..\temp\cmd\ta_MFI.obj & + ..\..\..\..\..\temp\cmd\ta_MIDPOINT.obj & + ..\..\..\..\..\temp\cmd\ta_MIDPRICE.obj & + ..\..\..\..\..\temp\cmd\ta_MIN.obj & + ..\..\..\..\..\temp\cmd\ta_MININDEX.obj & + ..\..\..\..\..\temp\cmd\ta_MINMAX.obj & + ..\..\..\..\..\temp\cmd\ta_MINMAXINDEX.obj & + ..\..\..\..\..\temp\cmd\ta_MINUS_DI.obj & + ..\..\..\..\..\temp\cmd\ta_MINUS_DM.obj & + ..\..\..\..\..\temp\cmd\ta_MOM.obj & + ..\..\..\..\..\temp\cmd\ta_MULT.obj & + ..\..\..\..\..\temp\cmd\ta_NATR.obj & + ..\..\..\..\..\temp\cmd\ta_OBV.obj & + ..\..\..\..\..\temp\cmd\ta_PLUS_DI.obj & + ..\..\..\..\..\temp\cmd\ta_PLUS_DM.obj & + ..\..\..\..\..\temp\cmd\ta_PPO.obj & + ..\..\..\..\..\temp\cmd\ta_ROC.obj & + ..\..\..\..\..\temp\cmd\ta_ROCP.obj & + ..\..\..\..\..\temp\cmd\ta_ROCR.obj & + ..\..\..\..\..\temp\cmd\ta_ROCR100.obj & + ..\..\..\..\..\temp\cmd\ta_RSI.obj & + ..\..\..\..\..\temp\cmd\ta_SAR.obj & + ..\..\..\..\..\temp\cmd\ta_SAREXT.obj & + ..\..\..\..\..\temp\cmd\ta_SIN.obj & + ..\..\..\..\..\temp\cmd\ta_SINH.obj & + ..\..\..\..\..\temp\cmd\ta_SMA.obj & + ..\..\..\..\..\temp\cmd\ta_SQRT.obj & + ..\..\..\..\..\temp\cmd\ta_STDDEV.obj & + ..\..\..\..\..\temp\cmd\ta_STOCH.obj & + ..\..\..\..\..\temp\cmd\ta_STOCHF.obj & + ..\..\..\..\..\temp\cmd\ta_STOCHRSI.obj & + ..\..\..\..\..\temp\cmd\ta_SUB.obj & + ..\..\..\..\..\temp\cmd\ta_SUM.obj & + ..\..\..\..\..\temp\cmd\ta_T3.obj & + ..\..\..\..\..\temp\cmd\ta_TAN.obj & + ..\..\..\..\..\temp\cmd\ta_TANH.obj & + ..\..\..\..\..\temp\cmd\ta_TEMA.obj & + ..\..\..\..\..\temp\cmd\ta_TRANGE.obj & + ..\..\..\..\..\temp\cmd\ta_TRIMA.obj & + ..\..\..\..\..\temp\cmd\ta_TRIX.obj & + ..\..\..\..\..\temp\cmd\ta_TSF.obj & + ..\..\..\..\..\temp\cmd\ta_TYPPRICE.obj & + ..\..\..\..\..\temp\cmd\ta_ULTOSC.obj & + ..\..\..\..\..\temp\cmd\ta_VAR.obj & + ..\..\..\..\..\temp\cmd\ta_WCLPRICE.obj & + ..\..\..\..\..\temp\cmd\ta_WILLR.obj & + ..\..\..\..\..\temp\cmd\ta_WMA.obj +SRCMOC = +OBJMOC = +DIST = +TARGET = ..\..\..\..\..\lib\ta_func_cmd.lib +TMPLIST = ta_func_cmd.lst + +####### Build rules + +all: $(TARGET) + +$(TARGET): $(OBJECTS) $(OBJMOC) + @%create $(TMPLIST) + @for %i in ( $(OBJECTS) $(OBJMOC) ) do @%append $(TMPLIST) +'%i' + $(LIB) $(TARGET) @$(TMPLIST) + del $(TMPLIST) + +moc: $(SRCMOC) + +tmake: ../cmd/win32/watcom/ta_func/Makefile + +../cmd/win32/watcom/ta_func/Makefile: ta_func/ta_func.pro + tmake ta_func/ta_func.pro -o ../cmd/win32/watcom/ta_func/Makefile + +dist: + $(ZIP) ta_func/ta_func.zip ta_func/ta_func.pro $(SOURCES) $(HEADERS) $(DIST) + +clean: + -del ..\..\..\..\..\temp\cmd\ta_utility.obj + -del ..\..\..\..\..\temp\cmd\ta_ACOS.obj + -del ..\..\..\..\..\temp\cmd\ta_AD.obj + -del ..\..\..\..\..\temp\cmd\ta_ADD.obj + -del ..\..\..\..\..\temp\cmd\ta_ADOSC.obj + -del ..\..\..\..\..\temp\cmd\ta_ADX.obj + -del ..\..\..\..\..\temp\cmd\ta_ADXR.obj + -del ..\..\..\..\..\temp\cmd\ta_APO.obj + -del ..\..\..\..\..\temp\cmd\ta_AROON.obj + -del ..\..\..\..\..\temp\cmd\ta_AROONOSC.obj + -del ..\..\..\..\..\temp\cmd\ta_ASIN.obj + -del ..\..\..\..\..\temp\cmd\ta_ATAN.obj + -del ..\..\..\..\..\temp\cmd\ta_ATR.obj + -del ..\..\..\..\..\temp\cmd\ta_AVGPRICE.obj + -del ..\..\..\..\..\temp\cmd\ta_BBANDS.obj + -del ..\..\..\..\..\temp\cmd\ta_BETA.obj + -del ..\..\..\..\..\temp\cmd\ta_BOP.obj + -del ..\..\..\..\..\temp\cmd\ta_CCI.obj + -del ..\..\..\..\..\temp\cmd\ta_CDL2CROWS.obj + -del ..\..\..\..\..\temp\cmd\ta_CDL3BLACKCROWS.obj + -del ..\..\..\..\..\temp\cmd\ta_CDL3INSIDE.obj + -del ..\..\..\..\..\temp\cmd\ta_CDL3LINESTRIKE.obj + -del ..\..\..\..\..\temp\cmd\ta_CDL3OUTSIDE.obj + -del ..\..\..\..\..\temp\cmd\ta_CDL3STARSINSOUTH.obj + -del ..\..\..\..\..\temp\cmd\ta_CDL3WHITESOLDIERS.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLABANDONEDBABY.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLADVANCEBLOCK.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLBELTHOLD.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLBREAKAWAY.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLCLOSINGMARUBOZU.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLCONCEALBABYSWALL.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLCOUNTERATTACK.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLDARKCLOUDCOVER.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLDOJI.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLDOJISTAR.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLDRAGONFLYDOJI.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLENGULFING.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLEVENINGDOJISTAR.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLEVENINGSTAR.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLGAPSIDESIDEWHITE.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLGRAVESTONEDOJI.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLHAMMER.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLHANGINGMAN.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLHARAMI.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLHARAMICROSS.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLHIGHWAVE.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLHIKKAKE.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLHIKKAKEMOD.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLHOMINGPIGEON.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLIDENTICAL3CROWS.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLINNECK.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLINVERTEDHAMMER.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLKICKING.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLKICKINGBYLENGTH.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLLADDERBOTTOM.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLLONGLEGGEDDOJI.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLLONGLINE.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLMARUBOZU.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLMATCHINGLOW.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLMATHOLD.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLMORNINGDOJISTAR.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLMORNINGSTAR.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLONNECK.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLPIERCING.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLRICKSHAWMAN.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLRISEFALL3METHODS.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLSEPARATINGLINES.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLSHOOTINGSTAR.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLSHORTLINE.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLSPINNINGTOP.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLSTALLEDPATTERN.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLSTICKSANDWICH.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLTAKURI.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLTASUKIGAP.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLTHRUSTING.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLTRISTAR.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLUNIQUE3RIVER.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLUPSIDEGAP2CROWS.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLXSIDEGAP3METHODS.obj + -del ..\..\..\..\..\temp\cmd\ta_CEIL.obj + -del ..\..\..\..\..\temp\cmd\ta_CMO.obj + -del ..\..\..\..\..\temp\cmd\ta_CORREL.obj + -del ..\..\..\..\..\temp\cmd\ta_COS.obj + -del ..\..\..\..\..\temp\cmd\ta_COSH.obj + -del ..\..\..\..\..\temp\cmd\ta_DEMA.obj + -del ..\..\..\..\..\temp\cmd\ta_DIV.obj + -del ..\..\..\..\..\temp\cmd\ta_DX.obj + -del ..\..\..\..\..\temp\cmd\ta_EMA.obj + -del ..\..\..\..\..\temp\cmd\ta_EXP.obj + -del ..\..\..\..\..\temp\cmd\ta_FLOOR.obj + -del ..\..\..\..\..\temp\cmd\ta_HT_DCPERIOD.obj + -del ..\..\..\..\..\temp\cmd\ta_HT_DCPHASE.obj + -del ..\..\..\..\..\temp\cmd\ta_HT_PHASOR.obj + -del ..\..\..\..\..\temp\cmd\ta_HT_SINE.obj + -del ..\..\..\..\..\temp\cmd\ta_HT_TRENDLINE.obj + -del ..\..\..\..\..\temp\cmd\ta_HT_TRENDMODE.obj + -del ..\..\..\..\..\temp\cmd\ta_KAMA.obj + -del ..\..\..\..\..\temp\cmd\ta_LINEARREG.obj + -del ..\..\..\..\..\temp\cmd\ta_LINEARREG_ANGLE.obj + -del ..\..\..\..\..\temp\cmd\ta_LINEARREG_INTERCEPT.obj + -del ..\..\..\..\..\temp\cmd\ta_LINEARREG_SLOPE.obj + -del ..\..\..\..\..\temp\cmd\ta_LN.obj + -del ..\..\..\..\..\temp\cmd\ta_LOG10.obj + -del ..\..\..\..\..\temp\cmd\ta_MA.obj + -del ..\..\..\..\..\temp\cmd\ta_MACD.obj + -del ..\..\..\..\..\temp\cmd\ta_MACDEXT.obj + -del ..\..\..\..\..\temp\cmd\ta_MACDFIX.obj + -del ..\..\..\..\..\temp\cmd\ta_MAMA.obj + -del ..\..\..\..\..\temp\cmd\ta_MAVP.obj + -del ..\..\..\..\..\temp\cmd\ta_MAX.obj + -del ..\..\..\..\..\temp\cmd\ta_MAXINDEX.obj + -del ..\..\..\..\..\temp\cmd\ta_MEDPRICE.obj + -del ..\..\..\..\..\temp\cmd\ta_MFI.obj + -del ..\..\..\..\..\temp\cmd\ta_MIDPOINT.obj + -del ..\..\..\..\..\temp\cmd\ta_MIDPRICE.obj + -del ..\..\..\..\..\temp\cmd\ta_MIN.obj + -del ..\..\..\..\..\temp\cmd\ta_MININDEX.obj + -del ..\..\..\..\..\temp\cmd\ta_MINMAX.obj + -del ..\..\..\..\..\temp\cmd\ta_MINMAXINDEX.obj + -del ..\..\..\..\..\temp\cmd\ta_MINUS_DI.obj + -del ..\..\..\..\..\temp\cmd\ta_MINUS_DM.obj + -del ..\..\..\..\..\temp\cmd\ta_MOM.obj + -del ..\..\..\..\..\temp\cmd\ta_MULT.obj + -del ..\..\..\..\..\temp\cmd\ta_NATR.obj + -del ..\..\..\..\..\temp\cmd\ta_OBV.obj + -del ..\..\..\..\..\temp\cmd\ta_PLUS_DI.obj + -del ..\..\..\..\..\temp\cmd\ta_PLUS_DM.obj + -del ..\..\..\..\..\temp\cmd\ta_PPO.obj + -del ..\..\..\..\..\temp\cmd\ta_ROC.obj + -del ..\..\..\..\..\temp\cmd\ta_ROCP.obj + -del ..\..\..\..\..\temp\cmd\ta_ROCR.obj + -del ..\..\..\..\..\temp\cmd\ta_ROCR100.obj + -del ..\..\..\..\..\temp\cmd\ta_RSI.obj + -del ..\..\..\..\..\temp\cmd\ta_SAR.obj + -del ..\..\..\..\..\temp\cmd\ta_SAREXT.obj + -del ..\..\..\..\..\temp\cmd\ta_SIN.obj + -del ..\..\..\..\..\temp\cmd\ta_SINH.obj + -del ..\..\..\..\..\temp\cmd\ta_SMA.obj + -del ..\..\..\..\..\temp\cmd\ta_SQRT.obj + -del ..\..\..\..\..\temp\cmd\ta_STDDEV.obj + -del ..\..\..\..\..\temp\cmd\ta_STOCH.obj + -del ..\..\..\..\..\temp\cmd\ta_STOCHF.obj + -del ..\..\..\..\..\temp\cmd\ta_STOCHRSI.obj + -del ..\..\..\..\..\temp\cmd\ta_SUB.obj + -del ..\..\..\..\..\temp\cmd\ta_SUM.obj + -del ..\..\..\..\..\temp\cmd\ta_T3.obj + -del ..\..\..\..\..\temp\cmd\ta_TAN.obj + -del ..\..\..\..\..\temp\cmd\ta_TANH.obj + -del ..\..\..\..\..\temp\cmd\ta_TEMA.obj + -del ..\..\..\..\..\temp\cmd\ta_TRANGE.obj + -del ..\..\..\..\..\temp\cmd\ta_TRIMA.obj + -del ..\..\..\..\..\temp\cmd\ta_TRIX.obj + -del ..\..\..\..\..\temp\cmd\ta_TSF.obj + -del ..\..\..\..\..\temp\cmd\ta_TYPPRICE.obj + -del ..\..\..\..\..\temp\cmd\ta_ULTOSC.obj + -del ..\..\..\..\..\temp\cmd\ta_VAR.obj + -del ..\..\..\..\..\temp\cmd\ta_WCLPRICE.obj + -del ..\..\..\..\..\temp\cmd\ta_WILLR.obj + -del ..\..\..\..\..\temp\cmd\ta_WMA.obj + -del $(TARGET) + -del ../../../../../bin/*.map + -del ../../../../../bin/*._xe + -del ../../../../../bin/*.tds + -del ../../../../../bin/*.pdb + -del ../../../../../bin/*.pbo + -del ../../../../../bin/*.pbi + -del ../../../../../bin/*.pbt + -del ../../../../../temp/cmd/*.pch + -del ../../../../../temp/cmd/*.idb + -del ../../../../../temp/cmd/ta_func/*.pch + -del ../../../../../temp/cmd/ta_func/*.idb + -del ../../../../../temp/cmd/ta_func/*.obj + +####### Compile + +..\..\..\..\..\temp\cmd\ta_utility.obj: ..\..\..\..\..\src\ta_func\ta_utility.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_utility.obj ..\..\..\..\..\src\ta_func\ta_utility.c + +..\..\..\..\..\temp\cmd\ta_ACOS.obj: ..\..\..\..\..\src\ta_func\ta_ACOS.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_ACOS.obj ..\..\..\..\..\src\ta_func\ta_ACOS.c + +..\..\..\..\..\temp\cmd\ta_AD.obj: ..\..\..\..\..\src\ta_func\ta_AD.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_AD.obj ..\..\..\..\..\src\ta_func\ta_AD.c + +..\..\..\..\..\temp\cmd\ta_ADD.obj: ..\..\..\..\..\src\ta_func\ta_ADD.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_ADD.obj ..\..\..\..\..\src\ta_func\ta_ADD.c + +..\..\..\..\..\temp\cmd\ta_ADOSC.obj: ..\..\..\..\..\src\ta_func\ta_ADOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_ADOSC.obj ..\..\..\..\..\src\ta_func\ta_ADOSC.c + +..\..\..\..\..\temp\cmd\ta_ADX.obj: ..\..\..\..\..\src\ta_func\ta_ADX.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_ADX.obj ..\..\..\..\..\src\ta_func\ta_ADX.c + +..\..\..\..\..\temp\cmd\ta_ADXR.obj: ..\..\..\..\..\src\ta_func\ta_ADXR.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_ADXR.obj ..\..\..\..\..\src\ta_func\ta_ADXR.c + +..\..\..\..\..\temp\cmd\ta_APO.obj: ..\..\..\..\..\src\ta_func\ta_APO.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_APO.obj ..\..\..\..\..\src\ta_func\ta_APO.c + +..\..\..\..\..\temp\cmd\ta_AROON.obj: ..\..\..\..\..\src\ta_func\ta_AROON.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_AROON.obj ..\..\..\..\..\src\ta_func\ta_AROON.c + +..\..\..\..\..\temp\cmd\ta_AROONOSC.obj: ..\..\..\..\..\src\ta_func\ta_AROONOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_AROONOSC.obj ..\..\..\..\..\src\ta_func\ta_AROONOSC.c + +..\..\..\..\..\temp\cmd\ta_ASIN.obj: ..\..\..\..\..\src\ta_func\ta_ASIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_ASIN.obj ..\..\..\..\..\src\ta_func\ta_ASIN.c + +..\..\..\..\..\temp\cmd\ta_ATAN.obj: ..\..\..\..\..\src\ta_func\ta_ATAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_ATAN.obj ..\..\..\..\..\src\ta_func\ta_ATAN.c + +..\..\..\..\..\temp\cmd\ta_ATR.obj: ..\..\..\..\..\src\ta_func\ta_ATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_ATR.obj ..\..\..\..\..\src\ta_func\ta_ATR.c + +..\..\..\..\..\temp\cmd\ta_AVGPRICE.obj: ..\..\..\..\..\src\ta_func\ta_AVGPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_AVGPRICE.obj ..\..\..\..\..\src\ta_func\ta_AVGPRICE.c + +..\..\..\..\..\temp\cmd\ta_BBANDS.obj: ..\..\..\..\..\src\ta_func\ta_BBANDS.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_BBANDS.obj ..\..\..\..\..\src\ta_func\ta_BBANDS.c + +..\..\..\..\..\temp\cmd\ta_BETA.obj: ..\..\..\..\..\src\ta_func\ta_BETA.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_BETA.obj ..\..\..\..\..\src\ta_func\ta_BETA.c + +..\..\..\..\..\temp\cmd\ta_BOP.obj: ..\..\..\..\..\src\ta_func\ta_BOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_BOP.obj ..\..\..\..\..\src\ta_func\ta_BOP.c + +..\..\..\..\..\temp\cmd\ta_CCI.obj: ..\..\..\..\..\src\ta_func\ta_CCI.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CCI.obj ..\..\..\..\..\src\ta_func\ta_CCI.c + +..\..\..\..\..\temp\cmd\ta_CDL2CROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDL2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CDL2CROWS.obj ..\..\..\..\..\src\ta_func\ta_CDL2CROWS.c + +..\..\..\..\..\temp\cmd\ta_CDL3BLACKCROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDL3BLACKCROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CDL3BLACKCROWS.obj ..\..\..\..\..\src\ta_func\ta_CDL3BLACKCROWS.c + +..\..\..\..\..\temp\cmd\ta_CDL3INSIDE.obj: ..\..\..\..\..\src\ta_func\ta_CDL3INSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CDL3INSIDE.obj ..\..\..\..\..\src\ta_func\ta_CDL3INSIDE.c + +..\..\..\..\..\temp\cmd\ta_CDL3LINESTRIKE.obj: ..\..\..\..\..\src\ta_func\ta_CDL3LINESTRIKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CDL3LINESTRIKE.obj ..\..\..\..\..\src\ta_func\ta_CDL3LINESTRIKE.c + +..\..\..\..\..\temp\cmd\ta_CDL3OUTSIDE.obj: ..\..\..\..\..\src\ta_func\ta_CDL3OUTSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CDL3OUTSIDE.obj ..\..\..\..\..\src\ta_func\ta_CDL3OUTSIDE.c + +..\..\..\..\..\temp\cmd\ta_CDL3STARSINSOUTH.obj: ..\..\..\..\..\src\ta_func\ta_CDL3STARSINSOUTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CDL3STARSINSOUTH.obj ..\..\..\..\..\src\ta_func\ta_CDL3STARSINSOUTH.c + +..\..\..\..\..\temp\cmd\ta_CDL3WHITESOLDIERS.obj: ..\..\..\..\..\src\ta_func\ta_CDL3WHITESOLDIERS.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CDL3WHITESOLDIERS.obj ..\..\..\..\..\src\ta_func\ta_CDL3WHITESOLDIERS.c + +..\..\..\..\..\temp\cmd\ta_CDLABANDONEDBABY.obj: ..\..\..\..\..\src\ta_func\ta_CDLABANDONEDBABY.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CDLABANDONEDBABY.obj ..\..\..\..\..\src\ta_func\ta_CDLABANDONEDBABY.c + +..\..\..\..\..\temp\cmd\ta_CDLADVANCEBLOCK.obj: ..\..\..\..\..\src\ta_func\ta_CDLADVANCEBLOCK.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CDLADVANCEBLOCK.obj ..\..\..\..\..\src\ta_func\ta_CDLADVANCEBLOCK.c + +..\..\..\..\..\temp\cmd\ta_CDLBELTHOLD.obj: ..\..\..\..\..\src\ta_func\ta_CDLBELTHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CDLBELTHOLD.obj ..\..\..\..\..\src\ta_func\ta_CDLBELTHOLD.c + +..\..\..\..\..\temp\cmd\ta_CDLBREAKAWAY.obj: ..\..\..\..\..\src\ta_func\ta_CDLBREAKAWAY.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CDLBREAKAWAY.obj ..\..\..\..\..\src\ta_func\ta_CDLBREAKAWAY.c + +..\..\..\..\..\temp\cmd\ta_CDLCLOSINGMARUBOZU.obj: ..\..\..\..\..\src\ta_func\ta_CDLCLOSINGMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CDLCLOSINGMARUBOZU.obj ..\..\..\..\..\src\ta_func\ta_CDLCLOSINGMARUBOZU.c + +..\..\..\..\..\temp\cmd\ta_CDLCONCEALBABYSWALL.obj: ..\..\..\..\..\src\ta_func\ta_CDLCONCEALBABYSWALL.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CDLCONCEALBABYSWALL.obj ..\..\..\..\..\src\ta_func\ta_CDLCONCEALBABYSWALL.c + +..\..\..\..\..\temp\cmd\ta_CDLCOUNTERATTACK.obj: ..\..\..\..\..\src\ta_func\ta_CDLCOUNTERATTACK.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CDLCOUNTERATTACK.obj ..\..\..\..\..\src\ta_func\ta_CDLCOUNTERATTACK.c + +..\..\..\..\..\temp\cmd\ta_CDLDARKCLOUDCOVER.obj: ..\..\..\..\..\src\ta_func\ta_CDLDARKCLOUDCOVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CDLDARKCLOUDCOVER.obj ..\..\..\..\..\src\ta_func\ta_CDLDARKCLOUDCOVER.c + +..\..\..\..\..\temp\cmd\ta_CDLDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CDLDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLDOJI.c + +..\..\..\..\..\temp\cmd\ta_CDLDOJISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CDLDOJISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLDOJISTAR.c + +..\..\..\..\..\temp\cmd\ta_CDLDRAGONFLYDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLDRAGONFLYDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CDLDRAGONFLYDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLDRAGONFLYDOJI.c + +..\..\..\..\..\temp\cmd\ta_CDLENGULFING.obj: ..\..\..\..\..\src\ta_func\ta_CDLENGULFING.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CDLENGULFING.obj ..\..\..\..\..\src\ta_func\ta_CDLENGULFING.c + +..\..\..\..\..\temp\cmd\ta_CDLEVENINGDOJISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLEVENINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CDLEVENINGDOJISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLEVENINGDOJISTAR.c + +..\..\..\..\..\temp\cmd\ta_CDLEVENINGSTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLEVENINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CDLEVENINGSTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLEVENINGSTAR.c + +..\..\..\..\..\temp\cmd\ta_CDLGAPSIDESIDEWHITE.obj: ..\..\..\..\..\src\ta_func\ta_CDLGAPSIDESIDEWHITE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CDLGAPSIDESIDEWHITE.obj ..\..\..\..\..\src\ta_func\ta_CDLGAPSIDESIDEWHITE.c + +..\..\..\..\..\temp\cmd\ta_CDLGRAVESTONEDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLGRAVESTONEDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CDLGRAVESTONEDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLGRAVESTONEDOJI.c + +..\..\..\..\..\temp\cmd\ta_CDLHAMMER.obj: ..\..\..\..\..\src\ta_func\ta_CDLHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CDLHAMMER.obj ..\..\..\..\..\src\ta_func\ta_CDLHAMMER.c + +..\..\..\..\..\temp\cmd\ta_CDLHANGINGMAN.obj: ..\..\..\..\..\src\ta_func\ta_CDLHANGINGMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CDLHANGINGMAN.obj ..\..\..\..\..\src\ta_func\ta_CDLHANGINGMAN.c + +..\..\..\..\..\temp\cmd\ta_CDLHARAMI.obj: ..\..\..\..\..\src\ta_func\ta_CDLHARAMI.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CDLHARAMI.obj ..\..\..\..\..\src\ta_func\ta_CDLHARAMI.c + +..\..\..\..\..\temp\cmd\ta_CDLHARAMICROSS.obj: ..\..\..\..\..\src\ta_func\ta_CDLHARAMICROSS.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CDLHARAMICROSS.obj ..\..\..\..\..\src\ta_func\ta_CDLHARAMICROSS.c + +..\..\..\..\..\temp\cmd\ta_CDLHIGHWAVE.obj: ..\..\..\..\..\src\ta_func\ta_CDLHIGHWAVE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CDLHIGHWAVE.obj ..\..\..\..\..\src\ta_func\ta_CDLHIGHWAVE.c + +..\..\..\..\..\temp\cmd\ta_CDLHIKKAKE.obj: ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CDLHIKKAKE.obj ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKE.c + +..\..\..\..\..\temp\cmd\ta_CDLHIKKAKEMOD.obj: ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKEMOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CDLHIKKAKEMOD.obj ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKEMOD.c + +..\..\..\..\..\temp\cmd\ta_CDLHOMINGPIGEON.obj: ..\..\..\..\..\src\ta_func\ta_CDLHOMINGPIGEON.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CDLHOMINGPIGEON.obj ..\..\..\..\..\src\ta_func\ta_CDLHOMINGPIGEON.c + +..\..\..\..\..\temp\cmd\ta_CDLIDENTICAL3CROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDLIDENTICAL3CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CDLIDENTICAL3CROWS.obj ..\..\..\..\..\src\ta_func\ta_CDLIDENTICAL3CROWS.c + +..\..\..\..\..\temp\cmd\ta_CDLINNECK.obj: ..\..\..\..\..\src\ta_func\ta_CDLINNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CDLINNECK.obj ..\..\..\..\..\src\ta_func\ta_CDLINNECK.c + +..\..\..\..\..\temp\cmd\ta_CDLINVERTEDHAMMER.obj: ..\..\..\..\..\src\ta_func\ta_CDLINVERTEDHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CDLINVERTEDHAMMER.obj ..\..\..\..\..\src\ta_func\ta_CDLINVERTEDHAMMER.c + +..\..\..\..\..\temp\cmd\ta_CDLKICKING.obj: ..\..\..\..\..\src\ta_func\ta_CDLKICKING.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CDLKICKING.obj ..\..\..\..\..\src\ta_func\ta_CDLKICKING.c + +..\..\..\..\..\temp\cmd\ta_CDLKICKINGBYLENGTH.obj: ..\..\..\..\..\src\ta_func\ta_CDLKICKINGBYLENGTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CDLKICKINGBYLENGTH.obj ..\..\..\..\..\src\ta_func\ta_CDLKICKINGBYLENGTH.c + +..\..\..\..\..\temp\cmd\ta_CDLLADDERBOTTOM.obj: ..\..\..\..\..\src\ta_func\ta_CDLLADDERBOTTOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CDLLADDERBOTTOM.obj ..\..\..\..\..\src\ta_func\ta_CDLLADDERBOTTOM.c + +..\..\..\..\..\temp\cmd\ta_CDLLONGLEGGEDDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLLONGLEGGEDDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CDLLONGLEGGEDDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLLONGLEGGEDDOJI.c + +..\..\..\..\..\temp\cmd\ta_CDLLONGLINE.obj: ..\..\..\..\..\src\ta_func\ta_CDLLONGLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CDLLONGLINE.obj ..\..\..\..\..\src\ta_func\ta_CDLLONGLINE.c + +..\..\..\..\..\temp\cmd\ta_CDLMARUBOZU.obj: ..\..\..\..\..\src\ta_func\ta_CDLMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CDLMARUBOZU.obj ..\..\..\..\..\src\ta_func\ta_CDLMARUBOZU.c + +..\..\..\..\..\temp\cmd\ta_CDLMATCHINGLOW.obj: ..\..\..\..\..\src\ta_func\ta_CDLMATCHINGLOW.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CDLMATCHINGLOW.obj ..\..\..\..\..\src\ta_func\ta_CDLMATCHINGLOW.c + +..\..\..\..\..\temp\cmd\ta_CDLMATHOLD.obj: ..\..\..\..\..\src\ta_func\ta_CDLMATHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CDLMATHOLD.obj ..\..\..\..\..\src\ta_func\ta_CDLMATHOLD.c + +..\..\..\..\..\temp\cmd\ta_CDLMORNINGDOJISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLMORNINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CDLMORNINGDOJISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLMORNINGDOJISTAR.c + +..\..\..\..\..\temp\cmd\ta_CDLMORNINGSTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLMORNINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CDLMORNINGSTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLMORNINGSTAR.c + +..\..\..\..\..\temp\cmd\ta_CDLONNECK.obj: ..\..\..\..\..\src\ta_func\ta_CDLONNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CDLONNECK.obj ..\..\..\..\..\src\ta_func\ta_CDLONNECK.c + +..\..\..\..\..\temp\cmd\ta_CDLPIERCING.obj: ..\..\..\..\..\src\ta_func\ta_CDLPIERCING.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CDLPIERCING.obj ..\..\..\..\..\src\ta_func\ta_CDLPIERCING.c + +..\..\..\..\..\temp\cmd\ta_CDLRICKSHAWMAN.obj: ..\..\..\..\..\src\ta_func\ta_CDLRICKSHAWMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CDLRICKSHAWMAN.obj ..\..\..\..\..\src\ta_func\ta_CDLRICKSHAWMAN.c + +..\..\..\..\..\temp\cmd\ta_CDLRISEFALL3METHODS.obj: ..\..\..\..\..\src\ta_func\ta_CDLRISEFALL3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CDLRISEFALL3METHODS.obj ..\..\..\..\..\src\ta_func\ta_CDLRISEFALL3METHODS.c + +..\..\..\..\..\temp\cmd\ta_CDLSEPARATINGLINES.obj: ..\..\..\..\..\src\ta_func\ta_CDLSEPARATINGLINES.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CDLSEPARATINGLINES.obj ..\..\..\..\..\src\ta_func\ta_CDLSEPARATINGLINES.c + +..\..\..\..\..\temp\cmd\ta_CDLSHOOTINGSTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLSHOOTINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CDLSHOOTINGSTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLSHOOTINGSTAR.c + +..\..\..\..\..\temp\cmd\ta_CDLSHORTLINE.obj: ..\..\..\..\..\src\ta_func\ta_CDLSHORTLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CDLSHORTLINE.obj ..\..\..\..\..\src\ta_func\ta_CDLSHORTLINE.c + +..\..\..\..\..\temp\cmd\ta_CDLSPINNINGTOP.obj: ..\..\..\..\..\src\ta_func\ta_CDLSPINNINGTOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CDLSPINNINGTOP.obj ..\..\..\..\..\src\ta_func\ta_CDLSPINNINGTOP.c + +..\..\..\..\..\temp\cmd\ta_CDLSTALLEDPATTERN.obj: ..\..\..\..\..\src\ta_func\ta_CDLSTALLEDPATTERN.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CDLSTALLEDPATTERN.obj ..\..\..\..\..\src\ta_func\ta_CDLSTALLEDPATTERN.c + +..\..\..\..\..\temp\cmd\ta_CDLSTICKSANDWICH.obj: ..\..\..\..\..\src\ta_func\ta_CDLSTICKSANDWICH.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CDLSTICKSANDWICH.obj ..\..\..\..\..\src\ta_func\ta_CDLSTICKSANDWICH.c + +..\..\..\..\..\temp\cmd\ta_CDLTAKURI.obj: ..\..\..\..\..\src\ta_func\ta_CDLTAKURI.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CDLTAKURI.obj ..\..\..\..\..\src\ta_func\ta_CDLTAKURI.c + +..\..\..\..\..\temp\cmd\ta_CDLTASUKIGAP.obj: ..\..\..\..\..\src\ta_func\ta_CDLTASUKIGAP.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CDLTASUKIGAP.obj ..\..\..\..\..\src\ta_func\ta_CDLTASUKIGAP.c + +..\..\..\..\..\temp\cmd\ta_CDLTHRUSTING.obj: ..\..\..\..\..\src\ta_func\ta_CDLTHRUSTING.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CDLTHRUSTING.obj ..\..\..\..\..\src\ta_func\ta_CDLTHRUSTING.c + +..\..\..\..\..\temp\cmd\ta_CDLTRISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLTRISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CDLTRISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLTRISTAR.c + +..\..\..\..\..\temp\cmd\ta_CDLUNIQUE3RIVER.obj: ..\..\..\..\..\src\ta_func\ta_CDLUNIQUE3RIVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CDLUNIQUE3RIVER.obj ..\..\..\..\..\src\ta_func\ta_CDLUNIQUE3RIVER.c + +..\..\..\..\..\temp\cmd\ta_CDLUPSIDEGAP2CROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDLUPSIDEGAP2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CDLUPSIDEGAP2CROWS.obj ..\..\..\..\..\src\ta_func\ta_CDLUPSIDEGAP2CROWS.c + +..\..\..\..\..\temp\cmd\ta_CDLXSIDEGAP3METHODS.obj: ..\..\..\..\..\src\ta_func\ta_CDLXSIDEGAP3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CDLXSIDEGAP3METHODS.obj ..\..\..\..\..\src\ta_func\ta_CDLXSIDEGAP3METHODS.c + +..\..\..\..\..\temp\cmd\ta_CEIL.obj: ..\..\..\..\..\src\ta_func\ta_CEIL.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CEIL.obj ..\..\..\..\..\src\ta_func\ta_CEIL.c + +..\..\..\..\..\temp\cmd\ta_CMO.obj: ..\..\..\..\..\src\ta_func\ta_CMO.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CMO.obj ..\..\..\..\..\src\ta_func\ta_CMO.c + +..\..\..\..\..\temp\cmd\ta_CORREL.obj: ..\..\..\..\..\src\ta_func\ta_CORREL.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CORREL.obj ..\..\..\..\..\src\ta_func\ta_CORREL.c + +..\..\..\..\..\temp\cmd\ta_COS.obj: ..\..\..\..\..\src\ta_func\ta_COS.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_COS.obj ..\..\..\..\..\src\ta_func\ta_COS.c + +..\..\..\..\..\temp\cmd\ta_COSH.obj: ..\..\..\..\..\src\ta_func\ta_COSH.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_COSH.obj ..\..\..\..\..\src\ta_func\ta_COSH.c + +..\..\..\..\..\temp\cmd\ta_DEMA.obj: ..\..\..\..\..\src\ta_func\ta_DEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_DEMA.obj ..\..\..\..\..\src\ta_func\ta_DEMA.c + +..\..\..\..\..\temp\cmd\ta_DIV.obj: ..\..\..\..\..\src\ta_func\ta_DIV.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_DIV.obj ..\..\..\..\..\src\ta_func\ta_DIV.c + +..\..\..\..\..\temp\cmd\ta_DX.obj: ..\..\..\..\..\src\ta_func\ta_DX.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_DX.obj ..\..\..\..\..\src\ta_func\ta_DX.c + +..\..\..\..\..\temp\cmd\ta_EMA.obj: ..\..\..\..\..\src\ta_func\ta_EMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_EMA.obj ..\..\..\..\..\src\ta_func\ta_EMA.c + +..\..\..\..\..\temp\cmd\ta_EXP.obj: ..\..\..\..\..\src\ta_func\ta_EXP.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_EXP.obj ..\..\..\..\..\src\ta_func\ta_EXP.c + +..\..\..\..\..\temp\cmd\ta_FLOOR.obj: ..\..\..\..\..\src\ta_func\ta_FLOOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_FLOOR.obj ..\..\..\..\..\src\ta_func\ta_FLOOR.c + +..\..\..\..\..\temp\cmd\ta_HT_DCPERIOD.obj: ..\..\..\..\..\src\ta_func\ta_HT_DCPERIOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_HT_DCPERIOD.obj ..\..\..\..\..\src\ta_func\ta_HT_DCPERIOD.c + +..\..\..\..\..\temp\cmd\ta_HT_DCPHASE.obj: ..\..\..\..\..\src\ta_func\ta_HT_DCPHASE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_HT_DCPHASE.obj ..\..\..\..\..\src\ta_func\ta_HT_DCPHASE.c + +..\..\..\..\..\temp\cmd\ta_HT_PHASOR.obj: ..\..\..\..\..\src\ta_func\ta_HT_PHASOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_HT_PHASOR.obj ..\..\..\..\..\src\ta_func\ta_HT_PHASOR.c + +..\..\..\..\..\temp\cmd\ta_HT_SINE.obj: ..\..\..\..\..\src\ta_func\ta_HT_SINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_HT_SINE.obj ..\..\..\..\..\src\ta_func\ta_HT_SINE.c + +..\..\..\..\..\temp\cmd\ta_HT_TRENDLINE.obj: ..\..\..\..\..\src\ta_func\ta_HT_TRENDLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_HT_TRENDLINE.obj ..\..\..\..\..\src\ta_func\ta_HT_TRENDLINE.c + +..\..\..\..\..\temp\cmd\ta_HT_TRENDMODE.obj: ..\..\..\..\..\src\ta_func\ta_HT_TRENDMODE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_HT_TRENDMODE.obj ..\..\..\..\..\src\ta_func\ta_HT_TRENDMODE.c + +..\..\..\..\..\temp\cmd\ta_KAMA.obj: ..\..\..\..\..\src\ta_func\ta_KAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_KAMA.obj ..\..\..\..\..\src\ta_func\ta_KAMA.c + +..\..\..\..\..\temp\cmd\ta_LINEARREG.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_LINEARREG.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG.c + +..\..\..\..\..\temp\cmd\ta_LINEARREG_ANGLE.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG_ANGLE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_LINEARREG_ANGLE.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG_ANGLE.c + +..\..\..\..\..\temp\cmd\ta_LINEARREG_INTERCEPT.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG_INTERCEPT.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_LINEARREG_INTERCEPT.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG_INTERCEPT.c + +..\..\..\..\..\temp\cmd\ta_LINEARREG_SLOPE.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG_SLOPE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_LINEARREG_SLOPE.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG_SLOPE.c + +..\..\..\..\..\temp\cmd\ta_LN.obj: ..\..\..\..\..\src\ta_func\ta_LN.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_LN.obj ..\..\..\..\..\src\ta_func\ta_LN.c + +..\..\..\..\..\temp\cmd\ta_LOG10.obj: ..\..\..\..\..\src\ta_func\ta_LOG10.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_LOG10.obj ..\..\..\..\..\src\ta_func\ta_LOG10.c + +..\..\..\..\..\temp\cmd\ta_MA.obj: ..\..\..\..\..\src\ta_func\ta_MA.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_MA.obj ..\..\..\..\..\src\ta_func\ta_MA.c + +..\..\..\..\..\temp\cmd\ta_MACD.obj: ..\..\..\..\..\src\ta_func\ta_MACD.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_MACD.obj ..\..\..\..\..\src\ta_func\ta_MACD.c + +..\..\..\..\..\temp\cmd\ta_MACDEXT.obj: ..\..\..\..\..\src\ta_func\ta_MACDEXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_MACDEXT.obj ..\..\..\..\..\src\ta_func\ta_MACDEXT.c + +..\..\..\..\..\temp\cmd\ta_MACDFIX.obj: ..\..\..\..\..\src\ta_func\ta_MACDFIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_MACDFIX.obj ..\..\..\..\..\src\ta_func\ta_MACDFIX.c + +..\..\..\..\..\temp\cmd\ta_MAMA.obj: ..\..\..\..\..\src\ta_func\ta_MAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_MAMA.obj ..\..\..\..\..\src\ta_func\ta_MAMA.c + +..\..\..\..\..\temp\cmd\ta_MAVP.obj: ..\..\..\..\..\src\ta_func\ta_MAVP.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_MAVP.obj ..\..\..\..\..\src\ta_func\ta_MAVP.c + +..\..\..\..\..\temp\cmd\ta_MAX.obj: ..\..\..\..\..\src\ta_func\ta_MAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_MAX.obj ..\..\..\..\..\src\ta_func\ta_MAX.c + +..\..\..\..\..\temp\cmd\ta_MAXINDEX.obj: ..\..\..\..\..\src\ta_func\ta_MAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_MAXINDEX.obj ..\..\..\..\..\src\ta_func\ta_MAXINDEX.c + +..\..\..\..\..\temp\cmd\ta_MEDPRICE.obj: ..\..\..\..\..\src\ta_func\ta_MEDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_MEDPRICE.obj ..\..\..\..\..\src\ta_func\ta_MEDPRICE.c + +..\..\..\..\..\temp\cmd\ta_MFI.obj: ..\..\..\..\..\src\ta_func\ta_MFI.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_MFI.obj ..\..\..\..\..\src\ta_func\ta_MFI.c + +..\..\..\..\..\temp\cmd\ta_MIDPOINT.obj: ..\..\..\..\..\src\ta_func\ta_MIDPOINT.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_MIDPOINT.obj ..\..\..\..\..\src\ta_func\ta_MIDPOINT.c + +..\..\..\..\..\temp\cmd\ta_MIDPRICE.obj: ..\..\..\..\..\src\ta_func\ta_MIDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_MIDPRICE.obj ..\..\..\..\..\src\ta_func\ta_MIDPRICE.c + +..\..\..\..\..\temp\cmd\ta_MIN.obj: ..\..\..\..\..\src\ta_func\ta_MIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_MIN.obj ..\..\..\..\..\src\ta_func\ta_MIN.c + +..\..\..\..\..\temp\cmd\ta_MININDEX.obj: ..\..\..\..\..\src\ta_func\ta_MININDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_MININDEX.obj ..\..\..\..\..\src\ta_func\ta_MININDEX.c + +..\..\..\..\..\temp\cmd\ta_MINMAX.obj: ..\..\..\..\..\src\ta_func\ta_MINMAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_MINMAX.obj ..\..\..\..\..\src\ta_func\ta_MINMAX.c + +..\..\..\..\..\temp\cmd\ta_MINMAXINDEX.obj: ..\..\..\..\..\src\ta_func\ta_MINMAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_MINMAXINDEX.obj ..\..\..\..\..\src\ta_func\ta_MINMAXINDEX.c + +..\..\..\..\..\temp\cmd\ta_MINUS_DI.obj: ..\..\..\..\..\src\ta_func\ta_MINUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_MINUS_DI.obj ..\..\..\..\..\src\ta_func\ta_MINUS_DI.c + +..\..\..\..\..\temp\cmd\ta_MINUS_DM.obj: ..\..\..\..\..\src\ta_func\ta_MINUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_MINUS_DM.obj ..\..\..\..\..\src\ta_func\ta_MINUS_DM.c + +..\..\..\..\..\temp\cmd\ta_MOM.obj: ..\..\..\..\..\src\ta_func\ta_MOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_MOM.obj ..\..\..\..\..\src\ta_func\ta_MOM.c + +..\..\..\..\..\temp\cmd\ta_MULT.obj: ..\..\..\..\..\src\ta_func\ta_MULT.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_MULT.obj ..\..\..\..\..\src\ta_func\ta_MULT.c + +..\..\..\..\..\temp\cmd\ta_NATR.obj: ..\..\..\..\..\src\ta_func\ta_NATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_NATR.obj ..\..\..\..\..\src\ta_func\ta_NATR.c + +..\..\..\..\..\temp\cmd\ta_OBV.obj: ..\..\..\..\..\src\ta_func\ta_OBV.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_OBV.obj ..\..\..\..\..\src\ta_func\ta_OBV.c + +..\..\..\..\..\temp\cmd\ta_PLUS_DI.obj: ..\..\..\..\..\src\ta_func\ta_PLUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_PLUS_DI.obj ..\..\..\..\..\src\ta_func\ta_PLUS_DI.c + +..\..\..\..\..\temp\cmd\ta_PLUS_DM.obj: ..\..\..\..\..\src\ta_func\ta_PLUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_PLUS_DM.obj ..\..\..\..\..\src\ta_func\ta_PLUS_DM.c + +..\..\..\..\..\temp\cmd\ta_PPO.obj: ..\..\..\..\..\src\ta_func\ta_PPO.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_PPO.obj ..\..\..\..\..\src\ta_func\ta_PPO.c + +..\..\..\..\..\temp\cmd\ta_ROC.obj: ..\..\..\..\..\src\ta_func\ta_ROC.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_ROC.obj ..\..\..\..\..\src\ta_func\ta_ROC.c + +..\..\..\..\..\temp\cmd\ta_ROCP.obj: ..\..\..\..\..\src\ta_func\ta_ROCP.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_ROCP.obj ..\..\..\..\..\src\ta_func\ta_ROCP.c + +..\..\..\..\..\temp\cmd\ta_ROCR.obj: ..\..\..\..\..\src\ta_func\ta_ROCR.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_ROCR.obj ..\..\..\..\..\src\ta_func\ta_ROCR.c + +..\..\..\..\..\temp\cmd\ta_ROCR100.obj: ..\..\..\..\..\src\ta_func\ta_ROCR100.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_ROCR100.obj ..\..\..\..\..\src\ta_func\ta_ROCR100.c + +..\..\..\..\..\temp\cmd\ta_RSI.obj: ..\..\..\..\..\src\ta_func\ta_RSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_RSI.obj ..\..\..\..\..\src\ta_func\ta_RSI.c + +..\..\..\..\..\temp\cmd\ta_SAR.obj: ..\..\..\..\..\src\ta_func\ta_SAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_SAR.obj ..\..\..\..\..\src\ta_func\ta_SAR.c + +..\..\..\..\..\temp\cmd\ta_SAREXT.obj: ..\..\..\..\..\src\ta_func\ta_SAREXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_SAREXT.obj ..\..\..\..\..\src\ta_func\ta_SAREXT.c + +..\..\..\..\..\temp\cmd\ta_SIN.obj: ..\..\..\..\..\src\ta_func\ta_SIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_SIN.obj ..\..\..\..\..\src\ta_func\ta_SIN.c + +..\..\..\..\..\temp\cmd\ta_SINH.obj: ..\..\..\..\..\src\ta_func\ta_SINH.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_SINH.obj ..\..\..\..\..\src\ta_func\ta_SINH.c + +..\..\..\..\..\temp\cmd\ta_SMA.obj: ..\..\..\..\..\src\ta_func\ta_SMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_SMA.obj ..\..\..\..\..\src\ta_func\ta_SMA.c + +..\..\..\..\..\temp\cmd\ta_SQRT.obj: ..\..\..\..\..\src\ta_func\ta_SQRT.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_SQRT.obj ..\..\..\..\..\src\ta_func\ta_SQRT.c + +..\..\..\..\..\temp\cmd\ta_STDDEV.obj: ..\..\..\..\..\src\ta_func\ta_STDDEV.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_STDDEV.obj ..\..\..\..\..\src\ta_func\ta_STDDEV.c + +..\..\..\..\..\temp\cmd\ta_STOCH.obj: ..\..\..\..\..\src\ta_func\ta_STOCH.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_STOCH.obj ..\..\..\..\..\src\ta_func\ta_STOCH.c + +..\..\..\..\..\temp\cmd\ta_STOCHF.obj: ..\..\..\..\..\src\ta_func\ta_STOCHF.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_STOCHF.obj ..\..\..\..\..\src\ta_func\ta_STOCHF.c + +..\..\..\..\..\temp\cmd\ta_STOCHRSI.obj: ..\..\..\..\..\src\ta_func\ta_STOCHRSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_STOCHRSI.obj ..\..\..\..\..\src\ta_func\ta_STOCHRSI.c + +..\..\..\..\..\temp\cmd\ta_SUB.obj: ..\..\..\..\..\src\ta_func\ta_SUB.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_SUB.obj ..\..\..\..\..\src\ta_func\ta_SUB.c + +..\..\..\..\..\temp\cmd\ta_SUM.obj: ..\..\..\..\..\src\ta_func\ta_SUM.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_SUM.obj ..\..\..\..\..\src\ta_func\ta_SUM.c + +..\..\..\..\..\temp\cmd\ta_T3.obj: ..\..\..\..\..\src\ta_func\ta_T3.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_T3.obj ..\..\..\..\..\src\ta_func\ta_T3.c + +..\..\..\..\..\temp\cmd\ta_TAN.obj: ..\..\..\..\..\src\ta_func\ta_TAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_TAN.obj ..\..\..\..\..\src\ta_func\ta_TAN.c + +..\..\..\..\..\temp\cmd\ta_TANH.obj: ..\..\..\..\..\src\ta_func\ta_TANH.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_TANH.obj ..\..\..\..\..\src\ta_func\ta_TANH.c + +..\..\..\..\..\temp\cmd\ta_TEMA.obj: ..\..\..\..\..\src\ta_func\ta_TEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_TEMA.obj ..\..\..\..\..\src\ta_func\ta_TEMA.c + +..\..\..\..\..\temp\cmd\ta_TRANGE.obj: ..\..\..\..\..\src\ta_func\ta_TRANGE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_TRANGE.obj ..\..\..\..\..\src\ta_func\ta_TRANGE.c + +..\..\..\..\..\temp\cmd\ta_TRIMA.obj: ..\..\..\..\..\src\ta_func\ta_TRIMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_TRIMA.obj ..\..\..\..\..\src\ta_func\ta_TRIMA.c + +..\..\..\..\..\temp\cmd\ta_TRIX.obj: ..\..\..\..\..\src\ta_func\ta_TRIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_TRIX.obj ..\..\..\..\..\src\ta_func\ta_TRIX.c + +..\..\..\..\..\temp\cmd\ta_TSF.obj: ..\..\..\..\..\src\ta_func\ta_TSF.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_TSF.obj ..\..\..\..\..\src\ta_func\ta_TSF.c + +..\..\..\..\..\temp\cmd\ta_TYPPRICE.obj: ..\..\..\..\..\src\ta_func\ta_TYPPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_TYPPRICE.obj ..\..\..\..\..\src\ta_func\ta_TYPPRICE.c + +..\..\..\..\..\temp\cmd\ta_ULTOSC.obj: ..\..\..\..\..\src\ta_func\ta_ULTOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_ULTOSC.obj ..\..\..\..\..\src\ta_func\ta_ULTOSC.c + +..\..\..\..\..\temp\cmd\ta_VAR.obj: ..\..\..\..\..\src\ta_func\ta_VAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_VAR.obj ..\..\..\..\..\src\ta_func\ta_VAR.c + +..\..\..\..\..\temp\cmd\ta_WCLPRICE.obj: ..\..\..\..\..\src\ta_func\ta_WCLPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_WCLPRICE.obj ..\..\..\..\..\src\ta_func\ta_WCLPRICE.c + +..\..\..\..\..\temp\cmd\ta_WILLR.obj: ..\..\..\..\..\src\ta_func\ta_WILLR.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_WILLR.obj ..\..\..\..\..\src\ta_func\ta_WILLR.c + +..\..\..\..\..\temp\cmd\ta_WMA.obj: ..\..\..\..\..\src\ta_func\ta_WMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_WMA.obj ..\..\..\..\..\src\ta_func\ta_WMA.c + diff --git a/make/cmd/win32/watcom/ta_libc/Makefile b/make/cmd/win32/watcom/ta_libc/Makefile new file mode 100644 index 000000000..ad2622ff2 --- /dev/null +++ b/make/cmd/win32/watcom/ta_libc/Makefile @@ -0,0 +1,1219 @@ +############################################################################# +# Makefile for building ta_libc_cmd +# Generated by tmake; +# Project: ta_libc/ta_libc +# Template: lib +############################################################################# + +####### Compiler, tools and options + +QTDIR = +CC = wcl386 +CXX = wcl386 +CFLAGS = -zq -w2 -d2 -d=TA_DEBUG -d=_DEBUG -d=WIN32 +CXXFLAGS= -zq -w2 -d2 -d=TA_DEBUG -d=_DEBUG -d=WIN32 +INCPATH = -i="..\..\..\..\..\src\ta_common" -i="..\..\..\..\..\include" -i="..\..\..\..\..\src\ta_abstract" -i="..\..\..\..\..\src\ta_abstract\tables" -i="..\..\..\..\..\src\ta_abstract\frames" -i="$(QTDIR)\include" +LIB = wlib -b -c -n -q -p=512 +MOC = moc + +ZIP = zip -r -9 + +####### Files + +HEADERS = +SOURCES = ..\..\..\..\..\src\ta_common\ta_global.c & + ..\..\..\..\..\src\ta_common\ta_retcode.c & + ..\..\..\..\..\src\ta_common\ta_version.c & + ..\..\..\..\..\src\ta_abstract\ta_abstract.c & + ..\..\..\..\..\src\ta_abstract\ta_def_ui.c & + ..\..\..\..\..\src\ta_abstract\ta_func_api.c & + ..\..\..\..\..\src\ta_abstract\ta_group_idx.c & + ..\..\..\..\..\src\ta_abstract\frames\ta_frame.c & + ..\..\..\..\..\src\ta_abstract\tables\table_a.c & + ..\..\..\..\..\src\ta_abstract\tables\table_b.c & + ..\..\..\..\..\src\ta_abstract\tables\table_c.c & + ..\..\..\..\..\src\ta_abstract\tables\table_d.c & + ..\..\..\..\..\src\ta_abstract\tables\table_e.c & + ..\..\..\..\..\src\ta_abstract\tables\table_f.c & + ..\..\..\..\..\src\ta_abstract\tables\table_g.c & + ..\..\..\..\..\src\ta_abstract\tables\table_h.c & + ..\..\..\..\..\src\ta_abstract\tables\table_i.c & + ..\..\..\..\..\src\ta_abstract\tables\table_j.c & + ..\..\..\..\..\src\ta_abstract\tables\table_k.c & + ..\..\..\..\..\src\ta_abstract\tables\table_l.c & + ..\..\..\..\..\src\ta_abstract\tables\table_m.c & + ..\..\..\..\..\src\ta_abstract\tables\table_n.c & + ..\..\..\..\..\src\ta_abstract\tables\table_o.c & + ..\..\..\..\..\src\ta_abstract\tables\table_p.c & + ..\..\..\..\..\src\ta_abstract\tables\table_q.c & + ..\..\..\..\..\src\ta_abstract\tables\table_r.c & + ..\..\..\..\..\src\ta_abstract\tables\table_s.c & + ..\..\..\..\..\src\ta_abstract\tables\table_t.c & + ..\..\..\..\..\src\ta_abstract\tables\table_u.c & + ..\..\..\..\..\src\ta_abstract\tables\table_v.c & + ..\..\..\..\..\src\ta_abstract\tables\table_w.c & + ..\..\..\..\..\src\ta_abstract\tables\table_x.c & + ..\..\..\..\..\src\ta_abstract\tables\table_y.c & + ..\..\..\..\..\src\ta_abstract\tables\table_z.c & + ..\..\..\..\..\src\ta_func\ta_utility.c & + ..\..\..\..\..\src\ta_func\ta_ACOS.c & + ..\..\..\..\..\src\ta_func\ta_AD.c & + ..\..\..\..\..\src\ta_func\ta_ADD.c & + ..\..\..\..\..\src\ta_func\ta_ADOSC.c & + ..\..\..\..\..\src\ta_func\ta_ADX.c & + ..\..\..\..\..\src\ta_func\ta_ADXR.c & + ..\..\..\..\..\src\ta_func\ta_APO.c & + ..\..\..\..\..\src\ta_func\ta_AROON.c & + ..\..\..\..\..\src\ta_func\ta_AROONOSC.c & + ..\..\..\..\..\src\ta_func\ta_ASIN.c & + ..\..\..\..\..\src\ta_func\ta_ATAN.c & + ..\..\..\..\..\src\ta_func\ta_ATR.c & + ..\..\..\..\..\src\ta_func\ta_AVGPRICE.c & + ..\..\..\..\..\src\ta_func\ta_BBANDS.c & + ..\..\..\..\..\src\ta_func\ta_BETA.c & + ..\..\..\..\..\src\ta_func\ta_BOP.c & + ..\..\..\..\..\src\ta_func\ta_CCI.c & + ..\..\..\..\..\src\ta_func\ta_CDL2CROWS.c & + ..\..\..\..\..\src\ta_func\ta_CDL3BLACKCROWS.c & + ..\..\..\..\..\src\ta_func\ta_CDL3INSIDE.c & + ..\..\..\..\..\src\ta_func\ta_CDL3LINESTRIKE.c & + ..\..\..\..\..\src\ta_func\ta_CDL3OUTSIDE.c & + ..\..\..\..\..\src\ta_func\ta_CDL3STARSINSOUTH.c & + ..\..\..\..\..\src\ta_func\ta_CDL3WHITESOLDIERS.c & + ..\..\..\..\..\src\ta_func\ta_CDLABANDONEDBABY.c & + ..\..\..\..\..\src\ta_func\ta_CDLADVANCEBLOCK.c & + ..\..\..\..\..\src\ta_func\ta_CDLBELTHOLD.c & + ..\..\..\..\..\src\ta_func\ta_CDLBREAKAWAY.c & + ..\..\..\..\..\src\ta_func\ta_CDLCLOSINGMARUBOZU.c & + ..\..\..\..\..\src\ta_func\ta_CDLCONCEALBABYSWALL.c & + ..\..\..\..\..\src\ta_func\ta_CDLCOUNTERATTACK.c & + ..\..\..\..\..\src\ta_func\ta_CDLDARKCLOUDCOVER.c & + ..\..\..\..\..\src\ta_func\ta_CDLDOJI.c & + ..\..\..\..\..\src\ta_func\ta_CDLDOJISTAR.c & + ..\..\..\..\..\src\ta_func\ta_CDLDRAGONFLYDOJI.c & + ..\..\..\..\..\src\ta_func\ta_CDLENGULFING.c & + ..\..\..\..\..\src\ta_func\ta_CDLEVENINGDOJISTAR.c & + ..\..\..\..\..\src\ta_func\ta_CDLEVENINGSTAR.c & + ..\..\..\..\..\src\ta_func\ta_CDLGAPSIDESIDEWHITE.c & + ..\..\..\..\..\src\ta_func\ta_CDLGRAVESTONEDOJI.c & + ..\..\..\..\..\src\ta_func\ta_CDLHAMMER.c & + ..\..\..\..\..\src\ta_func\ta_CDLHANGINGMAN.c & + ..\..\..\..\..\src\ta_func\ta_CDLHARAMI.c & + ..\..\..\..\..\src\ta_func\ta_CDLHARAMICROSS.c & + ..\..\..\..\..\src\ta_func\ta_CDLHIGHWAVE.c & + ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKE.c & + ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKEMOD.c & + ..\..\..\..\..\src\ta_func\ta_CDLHOMINGPIGEON.c & + ..\..\..\..\..\src\ta_func\ta_CDLIDENTICAL3CROWS.c & + ..\..\..\..\..\src\ta_func\ta_CDLINNECK.c & + ..\..\..\..\..\src\ta_func\ta_CDLINVERTEDHAMMER.c & + ..\..\..\..\..\src\ta_func\ta_CDLKICKING.c & + ..\..\..\..\..\src\ta_func\ta_CDLKICKINGBYLENGTH.c & + ..\..\..\..\..\src\ta_func\ta_CDLLADDERBOTTOM.c & + ..\..\..\..\..\src\ta_func\ta_CDLLONGLEGGEDDOJI.c & + ..\..\..\..\..\src\ta_func\ta_CDLLONGLINE.c & + ..\..\..\..\..\src\ta_func\ta_CDLMARUBOZU.c & + ..\..\..\..\..\src\ta_func\ta_CDLMATCHINGLOW.c & + ..\..\..\..\..\src\ta_func\ta_CDLMATHOLD.c & + ..\..\..\..\..\src\ta_func\ta_CDLMORNINGDOJISTAR.c & + ..\..\..\..\..\src\ta_func\ta_CDLMORNINGSTAR.c & + ..\..\..\..\..\src\ta_func\ta_CDLONNECK.c & + ..\..\..\..\..\src\ta_func\ta_CDLPIERCING.c & + ..\..\..\..\..\src\ta_func\ta_CDLRICKSHAWMAN.c & + ..\..\..\..\..\src\ta_func\ta_CDLRISEFALL3METHODS.c & + ..\..\..\..\..\src\ta_func\ta_CDLSEPARATINGLINES.c & + ..\..\..\..\..\src\ta_func\ta_CDLSHOOTINGSTAR.c & + ..\..\..\..\..\src\ta_func\ta_CDLSHORTLINE.c & + ..\..\..\..\..\src\ta_func\ta_CDLSPINNINGTOP.c & + ..\..\..\..\..\src\ta_func\ta_CDLSTALLEDPATTERN.c & + ..\..\..\..\..\src\ta_func\ta_CDLSTICKSANDWICH.c & + ..\..\..\..\..\src\ta_func\ta_CDLTAKURI.c & + ..\..\..\..\..\src\ta_func\ta_CDLTASUKIGAP.c & + ..\..\..\..\..\src\ta_func\ta_CDLTHRUSTING.c & + ..\..\..\..\..\src\ta_func\ta_CDLTRISTAR.c & + ..\..\..\..\..\src\ta_func\ta_CDLUNIQUE3RIVER.c & + ..\..\..\..\..\src\ta_func\ta_CDLUPSIDEGAP2CROWS.c & + ..\..\..\..\..\src\ta_func\ta_CDLXSIDEGAP3METHODS.c & + ..\..\..\..\..\src\ta_func\ta_CEIL.c & + ..\..\..\..\..\src\ta_func\ta_CMO.c & + ..\..\..\..\..\src\ta_func\ta_CORREL.c & + ..\..\..\..\..\src\ta_func\ta_COS.c & + ..\..\..\..\..\src\ta_func\ta_COSH.c & + ..\..\..\..\..\src\ta_func\ta_DEMA.c & + ..\..\..\..\..\src\ta_func\ta_DIV.c & + ..\..\..\..\..\src\ta_func\ta_DX.c & + ..\..\..\..\..\src\ta_func\ta_EMA.c & + ..\..\..\..\..\src\ta_func\ta_EXP.c & + ..\..\..\..\..\src\ta_func\ta_FLOOR.c & + ..\..\..\..\..\src\ta_func\ta_HT_DCPERIOD.c & + ..\..\..\..\..\src\ta_func\ta_HT_DCPHASE.c & + ..\..\..\..\..\src\ta_func\ta_HT_PHASOR.c & + ..\..\..\..\..\src\ta_func\ta_HT_SINE.c & + ..\..\..\..\..\src\ta_func\ta_HT_TRENDLINE.c & + ..\..\..\..\..\src\ta_func\ta_HT_TRENDMODE.c & + ..\..\..\..\..\src\ta_func\ta_KAMA.c & + ..\..\..\..\..\src\ta_func\ta_LINEARREG.c & + ..\..\..\..\..\src\ta_func\ta_LINEARREG_ANGLE.c & + ..\..\..\..\..\src\ta_func\ta_LINEARREG_INTERCEPT.c & + ..\..\..\..\..\src\ta_func\ta_LINEARREG_SLOPE.c & + ..\..\..\..\..\src\ta_func\ta_LN.c & + ..\..\..\..\..\src\ta_func\ta_LOG10.c & + ..\..\..\..\..\src\ta_func\ta_MA.c & + ..\..\..\..\..\src\ta_func\ta_MACD.c & + ..\..\..\..\..\src\ta_func\ta_MACDEXT.c & + ..\..\..\..\..\src\ta_func\ta_MACDFIX.c & + ..\..\..\..\..\src\ta_func\ta_MAMA.c & + ..\..\..\..\..\src\ta_func\ta_MAVP.c & + ..\..\..\..\..\src\ta_func\ta_MAX.c & + ..\..\..\..\..\src\ta_func\ta_MAXINDEX.c & + ..\..\..\..\..\src\ta_func\ta_MEDPRICE.c & + ..\..\..\..\..\src\ta_func\ta_MFI.c & + ..\..\..\..\..\src\ta_func\ta_MIDPOINT.c & + ..\..\..\..\..\src\ta_func\ta_MIDPRICE.c & + ..\..\..\..\..\src\ta_func\ta_MIN.c & + ..\..\..\..\..\src\ta_func\ta_MININDEX.c & + ..\..\..\..\..\src\ta_func\ta_MINMAX.c & + ..\..\..\..\..\src\ta_func\ta_MINMAXINDEX.c & + ..\..\..\..\..\src\ta_func\ta_MINUS_DI.c & + ..\..\..\..\..\src\ta_func\ta_MINUS_DM.c & + ..\..\..\..\..\src\ta_func\ta_MOM.c & + ..\..\..\..\..\src\ta_func\ta_MULT.c & + ..\..\..\..\..\src\ta_func\ta_NATR.c & + ..\..\..\..\..\src\ta_func\ta_OBV.c & + ..\..\..\..\..\src\ta_func\ta_PLUS_DI.c & + ..\..\..\..\..\src\ta_func\ta_PLUS_DM.c & + ..\..\..\..\..\src\ta_func\ta_PPO.c & + ..\..\..\..\..\src\ta_func\ta_ROC.c & + ..\..\..\..\..\src\ta_func\ta_ROCP.c & + ..\..\..\..\..\src\ta_func\ta_ROCR.c & + ..\..\..\..\..\src\ta_func\ta_ROCR100.c & + ..\..\..\..\..\src\ta_func\ta_RSI.c & + ..\..\..\..\..\src\ta_func\ta_SAR.c & + ..\..\..\..\..\src\ta_func\ta_SAREXT.c & + ..\..\..\..\..\src\ta_func\ta_SIN.c & + ..\..\..\..\..\src\ta_func\ta_SINH.c & + ..\..\..\..\..\src\ta_func\ta_SMA.c & + ..\..\..\..\..\src\ta_func\ta_SQRT.c & + ..\..\..\..\..\src\ta_func\ta_STDDEV.c & + ..\..\..\..\..\src\ta_func\ta_STOCH.c & + ..\..\..\..\..\src\ta_func\ta_STOCHF.c & + ..\..\..\..\..\src\ta_func\ta_STOCHRSI.c & + ..\..\..\..\..\src\ta_func\ta_SUB.c & + ..\..\..\..\..\src\ta_func\ta_SUM.c & + ..\..\..\..\..\src\ta_func\ta_T3.c & + ..\..\..\..\..\src\ta_func\ta_TAN.c & + ..\..\..\..\..\src\ta_func\ta_TANH.c & + ..\..\..\..\..\src\ta_func\ta_TEMA.c & + ..\..\..\..\..\src\ta_func\ta_TRANGE.c & + ..\..\..\..\..\src\ta_func\ta_TRIMA.c & + ..\..\..\..\..\src\ta_func\ta_TRIX.c & + ..\..\..\..\..\src\ta_func\ta_TSF.c & + ..\..\..\..\..\src\ta_func\ta_TYPPRICE.c & + ..\..\..\..\..\src\ta_func\ta_ULTOSC.c & + ..\..\..\..\..\src\ta_func\ta_VAR.c & + ..\..\..\..\..\src\ta_func\ta_WCLPRICE.c & + ..\..\..\..\..\src\ta_func\ta_WILLR.c & + ..\..\..\..\..\src\ta_func\ta_WMA.c +OBJECTS = ..\..\..\..\..\temp\cmd\ta_global.obj & + ..\..\..\..\..\temp\cmd\ta_retcode.obj & + ..\..\..\..\..\temp\cmd\ta_version.obj & + ..\..\..\..\..\temp\cmd\ta_abstract.obj & + ..\..\..\..\..\temp\cmd\ta_def_ui.obj & + ..\..\..\..\..\temp\cmd\ta_func_api.obj & + ..\..\..\..\..\temp\cmd\ta_group_idx.obj & + ..\..\..\..\..\temp\cmd\ta_frame.obj & + ..\..\..\..\..\temp\cmd\table_a.obj & + ..\..\..\..\..\temp\cmd\table_b.obj & + ..\..\..\..\..\temp\cmd\table_c.obj & + ..\..\..\..\..\temp\cmd\table_d.obj & + ..\..\..\..\..\temp\cmd\table_e.obj & + ..\..\..\..\..\temp\cmd\table_f.obj & + ..\..\..\..\..\temp\cmd\table_g.obj & + ..\..\..\..\..\temp\cmd\table_h.obj & + ..\..\..\..\..\temp\cmd\table_i.obj & + ..\..\..\..\..\temp\cmd\table_j.obj & + ..\..\..\..\..\temp\cmd\table_k.obj & + ..\..\..\..\..\temp\cmd\table_l.obj & + ..\..\..\..\..\temp\cmd\table_m.obj & + ..\..\..\..\..\temp\cmd\table_n.obj & + ..\..\..\..\..\temp\cmd\table_o.obj & + ..\..\..\..\..\temp\cmd\table_p.obj & + ..\..\..\..\..\temp\cmd\table_q.obj & + ..\..\..\..\..\temp\cmd\table_r.obj & + ..\..\..\..\..\temp\cmd\table_s.obj & + ..\..\..\..\..\temp\cmd\table_t.obj & + ..\..\..\..\..\temp\cmd\table_u.obj & + ..\..\..\..\..\temp\cmd\table_v.obj & + ..\..\..\..\..\temp\cmd\table_w.obj & + ..\..\..\..\..\temp\cmd\table_x.obj & + ..\..\..\..\..\temp\cmd\table_y.obj & + ..\..\..\..\..\temp\cmd\table_z.obj & + ..\..\..\..\..\temp\cmd\ta_utility.obj & + ..\..\..\..\..\temp\cmd\ta_ACOS.obj & + ..\..\..\..\..\temp\cmd\ta_AD.obj & + ..\..\..\..\..\temp\cmd\ta_ADD.obj & + ..\..\..\..\..\temp\cmd\ta_ADOSC.obj & + ..\..\..\..\..\temp\cmd\ta_ADX.obj & + ..\..\..\..\..\temp\cmd\ta_ADXR.obj & + ..\..\..\..\..\temp\cmd\ta_APO.obj & + ..\..\..\..\..\temp\cmd\ta_AROON.obj & + ..\..\..\..\..\temp\cmd\ta_AROONOSC.obj & + ..\..\..\..\..\temp\cmd\ta_ASIN.obj & + ..\..\..\..\..\temp\cmd\ta_ATAN.obj & + ..\..\..\..\..\temp\cmd\ta_ATR.obj & + ..\..\..\..\..\temp\cmd\ta_AVGPRICE.obj & + ..\..\..\..\..\temp\cmd\ta_BBANDS.obj & + ..\..\..\..\..\temp\cmd\ta_BETA.obj & + ..\..\..\..\..\temp\cmd\ta_BOP.obj & + ..\..\..\..\..\temp\cmd\ta_CCI.obj & + ..\..\..\..\..\temp\cmd\ta_CDL2CROWS.obj & + ..\..\..\..\..\temp\cmd\ta_CDL3BLACKCROWS.obj & + ..\..\..\..\..\temp\cmd\ta_CDL3INSIDE.obj & + ..\..\..\..\..\temp\cmd\ta_CDL3LINESTRIKE.obj & + ..\..\..\..\..\temp\cmd\ta_CDL3OUTSIDE.obj & + ..\..\..\..\..\temp\cmd\ta_CDL3STARSINSOUTH.obj & + ..\..\..\..\..\temp\cmd\ta_CDL3WHITESOLDIERS.obj & + ..\..\..\..\..\temp\cmd\ta_CDLABANDONEDBABY.obj & + ..\..\..\..\..\temp\cmd\ta_CDLADVANCEBLOCK.obj & + ..\..\..\..\..\temp\cmd\ta_CDLBELTHOLD.obj & + ..\..\..\..\..\temp\cmd\ta_CDLBREAKAWAY.obj & + ..\..\..\..\..\temp\cmd\ta_CDLCLOSINGMARUBOZU.obj & + ..\..\..\..\..\temp\cmd\ta_CDLCONCEALBABYSWALL.obj & + ..\..\..\..\..\temp\cmd\ta_CDLCOUNTERATTACK.obj & + ..\..\..\..\..\temp\cmd\ta_CDLDARKCLOUDCOVER.obj & + ..\..\..\..\..\temp\cmd\ta_CDLDOJI.obj & + ..\..\..\..\..\temp\cmd\ta_CDLDOJISTAR.obj & + ..\..\..\..\..\temp\cmd\ta_CDLDRAGONFLYDOJI.obj & + ..\..\..\..\..\temp\cmd\ta_CDLENGULFING.obj & + ..\..\..\..\..\temp\cmd\ta_CDLEVENINGDOJISTAR.obj & + ..\..\..\..\..\temp\cmd\ta_CDLEVENINGSTAR.obj & + ..\..\..\..\..\temp\cmd\ta_CDLGAPSIDESIDEWHITE.obj & + ..\..\..\..\..\temp\cmd\ta_CDLGRAVESTONEDOJI.obj & + ..\..\..\..\..\temp\cmd\ta_CDLHAMMER.obj & + ..\..\..\..\..\temp\cmd\ta_CDLHANGINGMAN.obj & + ..\..\..\..\..\temp\cmd\ta_CDLHARAMI.obj & + ..\..\..\..\..\temp\cmd\ta_CDLHARAMICROSS.obj & + ..\..\..\..\..\temp\cmd\ta_CDLHIGHWAVE.obj & + ..\..\..\..\..\temp\cmd\ta_CDLHIKKAKE.obj & + ..\..\..\..\..\temp\cmd\ta_CDLHIKKAKEMOD.obj & + ..\..\..\..\..\temp\cmd\ta_CDLHOMINGPIGEON.obj & + ..\..\..\..\..\temp\cmd\ta_CDLIDENTICAL3CROWS.obj & + ..\..\..\..\..\temp\cmd\ta_CDLINNECK.obj & + ..\..\..\..\..\temp\cmd\ta_CDLINVERTEDHAMMER.obj & + ..\..\..\..\..\temp\cmd\ta_CDLKICKING.obj & + ..\..\..\..\..\temp\cmd\ta_CDLKICKINGBYLENGTH.obj & + ..\..\..\..\..\temp\cmd\ta_CDLLADDERBOTTOM.obj & + ..\..\..\..\..\temp\cmd\ta_CDLLONGLEGGEDDOJI.obj & + ..\..\..\..\..\temp\cmd\ta_CDLLONGLINE.obj & + ..\..\..\..\..\temp\cmd\ta_CDLMARUBOZU.obj & + ..\..\..\..\..\temp\cmd\ta_CDLMATCHINGLOW.obj & + ..\..\..\..\..\temp\cmd\ta_CDLMATHOLD.obj & + ..\..\..\..\..\temp\cmd\ta_CDLMORNINGDOJISTAR.obj & + ..\..\..\..\..\temp\cmd\ta_CDLMORNINGSTAR.obj & + ..\..\..\..\..\temp\cmd\ta_CDLONNECK.obj & + ..\..\..\..\..\temp\cmd\ta_CDLPIERCING.obj & + ..\..\..\..\..\temp\cmd\ta_CDLRICKSHAWMAN.obj & + ..\..\..\..\..\temp\cmd\ta_CDLRISEFALL3METHODS.obj & + ..\..\..\..\..\temp\cmd\ta_CDLSEPARATINGLINES.obj & + ..\..\..\..\..\temp\cmd\ta_CDLSHOOTINGSTAR.obj & + ..\..\..\..\..\temp\cmd\ta_CDLSHORTLINE.obj & + ..\..\..\..\..\temp\cmd\ta_CDLSPINNINGTOP.obj & + ..\..\..\..\..\temp\cmd\ta_CDLSTALLEDPATTERN.obj & + ..\..\..\..\..\temp\cmd\ta_CDLSTICKSANDWICH.obj & + ..\..\..\..\..\temp\cmd\ta_CDLTAKURI.obj & + ..\..\..\..\..\temp\cmd\ta_CDLTASUKIGAP.obj & + ..\..\..\..\..\temp\cmd\ta_CDLTHRUSTING.obj & + ..\..\..\..\..\temp\cmd\ta_CDLTRISTAR.obj & + ..\..\..\..\..\temp\cmd\ta_CDLUNIQUE3RIVER.obj & + ..\..\..\..\..\temp\cmd\ta_CDLUPSIDEGAP2CROWS.obj & + ..\..\..\..\..\temp\cmd\ta_CDLXSIDEGAP3METHODS.obj & + ..\..\..\..\..\temp\cmd\ta_CEIL.obj & + ..\..\..\..\..\temp\cmd\ta_CMO.obj & + ..\..\..\..\..\temp\cmd\ta_CORREL.obj & + ..\..\..\..\..\temp\cmd\ta_COS.obj & + ..\..\..\..\..\temp\cmd\ta_COSH.obj & + ..\..\..\..\..\temp\cmd\ta_DEMA.obj & + ..\..\..\..\..\temp\cmd\ta_DIV.obj & + ..\..\..\..\..\temp\cmd\ta_DX.obj & + ..\..\..\..\..\temp\cmd\ta_EMA.obj & + ..\..\..\..\..\temp\cmd\ta_EXP.obj & + ..\..\..\..\..\temp\cmd\ta_FLOOR.obj & + ..\..\..\..\..\temp\cmd\ta_HT_DCPERIOD.obj & + ..\..\..\..\..\temp\cmd\ta_HT_DCPHASE.obj & + ..\..\..\..\..\temp\cmd\ta_HT_PHASOR.obj & + ..\..\..\..\..\temp\cmd\ta_HT_SINE.obj & + ..\..\..\..\..\temp\cmd\ta_HT_TRENDLINE.obj & + ..\..\..\..\..\temp\cmd\ta_HT_TRENDMODE.obj & + ..\..\..\..\..\temp\cmd\ta_KAMA.obj & + ..\..\..\..\..\temp\cmd\ta_LINEARREG.obj & + ..\..\..\..\..\temp\cmd\ta_LINEARREG_ANGLE.obj & + ..\..\..\..\..\temp\cmd\ta_LINEARREG_INTERCEPT.obj & + ..\..\..\..\..\temp\cmd\ta_LINEARREG_SLOPE.obj & + ..\..\..\..\..\temp\cmd\ta_LN.obj & + ..\..\..\..\..\temp\cmd\ta_LOG10.obj & + ..\..\..\..\..\temp\cmd\ta_MA.obj & + ..\..\..\..\..\temp\cmd\ta_MACD.obj & + ..\..\..\..\..\temp\cmd\ta_MACDEXT.obj & + ..\..\..\..\..\temp\cmd\ta_MACDFIX.obj & + ..\..\..\..\..\temp\cmd\ta_MAMA.obj & + ..\..\..\..\..\temp\cmd\ta_MAVP.obj & + ..\..\..\..\..\temp\cmd\ta_MAX.obj & + ..\..\..\..\..\temp\cmd\ta_MAXINDEX.obj & + ..\..\..\..\..\temp\cmd\ta_MEDPRICE.obj & + ..\..\..\..\..\temp\cmd\ta_MFI.obj & + ..\..\..\..\..\temp\cmd\ta_MIDPOINT.obj & + ..\..\..\..\..\temp\cmd\ta_MIDPRICE.obj & + ..\..\..\..\..\temp\cmd\ta_MIN.obj & + ..\..\..\..\..\temp\cmd\ta_MININDEX.obj & + ..\..\..\..\..\temp\cmd\ta_MINMAX.obj & + ..\..\..\..\..\temp\cmd\ta_MINMAXINDEX.obj & + ..\..\..\..\..\temp\cmd\ta_MINUS_DI.obj & + ..\..\..\..\..\temp\cmd\ta_MINUS_DM.obj & + ..\..\..\..\..\temp\cmd\ta_MOM.obj & + ..\..\..\..\..\temp\cmd\ta_MULT.obj & + ..\..\..\..\..\temp\cmd\ta_NATR.obj & + ..\..\..\..\..\temp\cmd\ta_OBV.obj & + ..\..\..\..\..\temp\cmd\ta_PLUS_DI.obj & + ..\..\..\..\..\temp\cmd\ta_PLUS_DM.obj & + ..\..\..\..\..\temp\cmd\ta_PPO.obj & + ..\..\..\..\..\temp\cmd\ta_ROC.obj & + ..\..\..\..\..\temp\cmd\ta_ROCP.obj & + ..\..\..\..\..\temp\cmd\ta_ROCR.obj & + ..\..\..\..\..\temp\cmd\ta_ROCR100.obj & + ..\..\..\..\..\temp\cmd\ta_RSI.obj & + ..\..\..\..\..\temp\cmd\ta_SAR.obj & + ..\..\..\..\..\temp\cmd\ta_SAREXT.obj & + ..\..\..\..\..\temp\cmd\ta_SIN.obj & + ..\..\..\..\..\temp\cmd\ta_SINH.obj & + ..\..\..\..\..\temp\cmd\ta_SMA.obj & + ..\..\..\..\..\temp\cmd\ta_SQRT.obj & + ..\..\..\..\..\temp\cmd\ta_STDDEV.obj & + ..\..\..\..\..\temp\cmd\ta_STOCH.obj & + ..\..\..\..\..\temp\cmd\ta_STOCHF.obj & + ..\..\..\..\..\temp\cmd\ta_STOCHRSI.obj & + ..\..\..\..\..\temp\cmd\ta_SUB.obj & + ..\..\..\..\..\temp\cmd\ta_SUM.obj & + ..\..\..\..\..\temp\cmd\ta_T3.obj & + ..\..\..\..\..\temp\cmd\ta_TAN.obj & + ..\..\..\..\..\temp\cmd\ta_TANH.obj & + ..\..\..\..\..\temp\cmd\ta_TEMA.obj & + ..\..\..\..\..\temp\cmd\ta_TRANGE.obj & + ..\..\..\..\..\temp\cmd\ta_TRIMA.obj & + ..\..\..\..\..\temp\cmd\ta_TRIX.obj & + ..\..\..\..\..\temp\cmd\ta_TSF.obj & + ..\..\..\..\..\temp\cmd\ta_TYPPRICE.obj & + ..\..\..\..\..\temp\cmd\ta_ULTOSC.obj & + ..\..\..\..\..\temp\cmd\ta_VAR.obj & + ..\..\..\..\..\temp\cmd\ta_WCLPRICE.obj & + ..\..\..\..\..\temp\cmd\ta_WILLR.obj & + ..\..\..\..\..\temp\cmd\ta_WMA.obj +SRCMOC = +OBJMOC = +DIST = +TARGET = ..\..\..\..\..\lib\ta_libc_cmd.lib +TMPLIST = ta_libc_cmd.lst + +####### Build rules + +all: $(TARGET) + +$(TARGET): $(OBJECTS) $(OBJMOC) + @%create $(TMPLIST) + @for %i in ( $(OBJECTS) $(OBJMOC) ) do @%append $(TMPLIST) +'%i' + $(LIB) $(TARGET) @$(TMPLIST) + del $(TMPLIST) + +moc: $(SRCMOC) + +tmake: ../cmd/win32/watcom/ta_libc/Makefile + +../cmd/win32/watcom/ta_libc/Makefile: ta_libc/ta_libc.pro + tmake ta_libc/ta_libc.pro -o ../cmd/win32/watcom/ta_libc/Makefile + +dist: + $(ZIP) ta_libc/ta_libc.zip ta_libc/ta_libc.pro $(SOURCES) $(HEADERS) $(DIST) + +clean: + -del ..\..\..\..\..\temp\cmd\ta_global.obj + -del ..\..\..\..\..\temp\cmd\ta_retcode.obj + -del ..\..\..\..\..\temp\cmd\ta_version.obj + -del ..\..\..\..\..\temp\cmd\ta_abstract.obj + -del ..\..\..\..\..\temp\cmd\ta_def_ui.obj + -del ..\..\..\..\..\temp\cmd\ta_func_api.obj + -del ..\..\..\..\..\temp\cmd\ta_group_idx.obj + -del ..\..\..\..\..\temp\cmd\ta_frame.obj + -del ..\..\..\..\..\temp\cmd\table_a.obj + -del ..\..\..\..\..\temp\cmd\table_b.obj + -del ..\..\..\..\..\temp\cmd\table_c.obj + -del ..\..\..\..\..\temp\cmd\table_d.obj + -del ..\..\..\..\..\temp\cmd\table_e.obj + -del ..\..\..\..\..\temp\cmd\table_f.obj + -del ..\..\..\..\..\temp\cmd\table_g.obj + -del ..\..\..\..\..\temp\cmd\table_h.obj + -del ..\..\..\..\..\temp\cmd\table_i.obj + -del ..\..\..\..\..\temp\cmd\table_j.obj + -del ..\..\..\..\..\temp\cmd\table_k.obj + -del ..\..\..\..\..\temp\cmd\table_l.obj + -del ..\..\..\..\..\temp\cmd\table_m.obj + -del ..\..\..\..\..\temp\cmd\table_n.obj + -del ..\..\..\..\..\temp\cmd\table_o.obj + -del ..\..\..\..\..\temp\cmd\table_p.obj + -del ..\..\..\..\..\temp\cmd\table_q.obj + -del ..\..\..\..\..\temp\cmd\table_r.obj + -del ..\..\..\..\..\temp\cmd\table_s.obj + -del ..\..\..\..\..\temp\cmd\table_t.obj + -del ..\..\..\..\..\temp\cmd\table_u.obj + -del ..\..\..\..\..\temp\cmd\table_v.obj + -del ..\..\..\..\..\temp\cmd\table_w.obj + -del ..\..\..\..\..\temp\cmd\table_x.obj + -del ..\..\..\..\..\temp\cmd\table_y.obj + -del ..\..\..\..\..\temp\cmd\table_z.obj + -del ..\..\..\..\..\temp\cmd\ta_utility.obj + -del ..\..\..\..\..\temp\cmd\ta_ACOS.obj + -del ..\..\..\..\..\temp\cmd\ta_AD.obj + -del ..\..\..\..\..\temp\cmd\ta_ADD.obj + -del ..\..\..\..\..\temp\cmd\ta_ADOSC.obj + -del ..\..\..\..\..\temp\cmd\ta_ADX.obj + -del ..\..\..\..\..\temp\cmd\ta_ADXR.obj + -del ..\..\..\..\..\temp\cmd\ta_APO.obj + -del ..\..\..\..\..\temp\cmd\ta_AROON.obj + -del ..\..\..\..\..\temp\cmd\ta_AROONOSC.obj + -del ..\..\..\..\..\temp\cmd\ta_ASIN.obj + -del ..\..\..\..\..\temp\cmd\ta_ATAN.obj + -del ..\..\..\..\..\temp\cmd\ta_ATR.obj + -del ..\..\..\..\..\temp\cmd\ta_AVGPRICE.obj + -del ..\..\..\..\..\temp\cmd\ta_BBANDS.obj + -del ..\..\..\..\..\temp\cmd\ta_BETA.obj + -del ..\..\..\..\..\temp\cmd\ta_BOP.obj + -del ..\..\..\..\..\temp\cmd\ta_CCI.obj + -del ..\..\..\..\..\temp\cmd\ta_CDL2CROWS.obj + -del ..\..\..\..\..\temp\cmd\ta_CDL3BLACKCROWS.obj + -del ..\..\..\..\..\temp\cmd\ta_CDL3INSIDE.obj + -del ..\..\..\..\..\temp\cmd\ta_CDL3LINESTRIKE.obj + -del ..\..\..\..\..\temp\cmd\ta_CDL3OUTSIDE.obj + -del ..\..\..\..\..\temp\cmd\ta_CDL3STARSINSOUTH.obj + -del ..\..\..\..\..\temp\cmd\ta_CDL3WHITESOLDIERS.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLABANDONEDBABY.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLADVANCEBLOCK.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLBELTHOLD.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLBREAKAWAY.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLCLOSINGMARUBOZU.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLCONCEALBABYSWALL.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLCOUNTERATTACK.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLDARKCLOUDCOVER.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLDOJI.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLDOJISTAR.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLDRAGONFLYDOJI.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLENGULFING.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLEVENINGDOJISTAR.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLEVENINGSTAR.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLGAPSIDESIDEWHITE.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLGRAVESTONEDOJI.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLHAMMER.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLHANGINGMAN.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLHARAMI.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLHARAMICROSS.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLHIGHWAVE.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLHIKKAKE.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLHIKKAKEMOD.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLHOMINGPIGEON.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLIDENTICAL3CROWS.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLINNECK.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLINVERTEDHAMMER.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLKICKING.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLKICKINGBYLENGTH.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLLADDERBOTTOM.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLLONGLEGGEDDOJI.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLLONGLINE.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLMARUBOZU.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLMATCHINGLOW.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLMATHOLD.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLMORNINGDOJISTAR.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLMORNINGSTAR.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLONNECK.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLPIERCING.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLRICKSHAWMAN.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLRISEFALL3METHODS.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLSEPARATINGLINES.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLSHOOTINGSTAR.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLSHORTLINE.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLSPINNINGTOP.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLSTALLEDPATTERN.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLSTICKSANDWICH.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLTAKURI.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLTASUKIGAP.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLTHRUSTING.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLTRISTAR.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLUNIQUE3RIVER.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLUPSIDEGAP2CROWS.obj + -del ..\..\..\..\..\temp\cmd\ta_CDLXSIDEGAP3METHODS.obj + -del ..\..\..\..\..\temp\cmd\ta_CEIL.obj + -del ..\..\..\..\..\temp\cmd\ta_CMO.obj + -del ..\..\..\..\..\temp\cmd\ta_CORREL.obj + -del ..\..\..\..\..\temp\cmd\ta_COS.obj + -del ..\..\..\..\..\temp\cmd\ta_COSH.obj + -del ..\..\..\..\..\temp\cmd\ta_DEMA.obj + -del ..\..\..\..\..\temp\cmd\ta_DIV.obj + -del ..\..\..\..\..\temp\cmd\ta_DX.obj + -del ..\..\..\..\..\temp\cmd\ta_EMA.obj + -del ..\..\..\..\..\temp\cmd\ta_EXP.obj + -del ..\..\..\..\..\temp\cmd\ta_FLOOR.obj + -del ..\..\..\..\..\temp\cmd\ta_HT_DCPERIOD.obj + -del ..\..\..\..\..\temp\cmd\ta_HT_DCPHASE.obj + -del ..\..\..\..\..\temp\cmd\ta_HT_PHASOR.obj + -del ..\..\..\..\..\temp\cmd\ta_HT_SINE.obj + -del ..\..\..\..\..\temp\cmd\ta_HT_TRENDLINE.obj + -del ..\..\..\..\..\temp\cmd\ta_HT_TRENDMODE.obj + -del ..\..\..\..\..\temp\cmd\ta_KAMA.obj + -del ..\..\..\..\..\temp\cmd\ta_LINEARREG.obj + -del ..\..\..\..\..\temp\cmd\ta_LINEARREG_ANGLE.obj + -del ..\..\..\..\..\temp\cmd\ta_LINEARREG_INTERCEPT.obj + -del ..\..\..\..\..\temp\cmd\ta_LINEARREG_SLOPE.obj + -del ..\..\..\..\..\temp\cmd\ta_LN.obj + -del ..\..\..\..\..\temp\cmd\ta_LOG10.obj + -del ..\..\..\..\..\temp\cmd\ta_MA.obj + -del ..\..\..\..\..\temp\cmd\ta_MACD.obj + -del ..\..\..\..\..\temp\cmd\ta_MACDEXT.obj + -del ..\..\..\..\..\temp\cmd\ta_MACDFIX.obj + -del ..\..\..\..\..\temp\cmd\ta_MAMA.obj + -del ..\..\..\..\..\temp\cmd\ta_MAVP.obj + -del ..\..\..\..\..\temp\cmd\ta_MAX.obj + -del ..\..\..\..\..\temp\cmd\ta_MAXINDEX.obj + -del ..\..\..\..\..\temp\cmd\ta_MEDPRICE.obj + -del ..\..\..\..\..\temp\cmd\ta_MFI.obj + -del ..\..\..\..\..\temp\cmd\ta_MIDPOINT.obj + -del ..\..\..\..\..\temp\cmd\ta_MIDPRICE.obj + -del ..\..\..\..\..\temp\cmd\ta_MIN.obj + -del ..\..\..\..\..\temp\cmd\ta_MININDEX.obj + -del ..\..\..\..\..\temp\cmd\ta_MINMAX.obj + -del ..\..\..\..\..\temp\cmd\ta_MINMAXINDEX.obj + -del ..\..\..\..\..\temp\cmd\ta_MINUS_DI.obj + -del ..\..\..\..\..\temp\cmd\ta_MINUS_DM.obj + -del ..\..\..\..\..\temp\cmd\ta_MOM.obj + -del ..\..\..\..\..\temp\cmd\ta_MULT.obj + -del ..\..\..\..\..\temp\cmd\ta_NATR.obj + -del ..\..\..\..\..\temp\cmd\ta_OBV.obj + -del ..\..\..\..\..\temp\cmd\ta_PLUS_DI.obj + -del ..\..\..\..\..\temp\cmd\ta_PLUS_DM.obj + -del ..\..\..\..\..\temp\cmd\ta_PPO.obj + -del ..\..\..\..\..\temp\cmd\ta_ROC.obj + -del ..\..\..\..\..\temp\cmd\ta_ROCP.obj + -del ..\..\..\..\..\temp\cmd\ta_ROCR.obj + -del ..\..\..\..\..\temp\cmd\ta_ROCR100.obj + -del ..\..\..\..\..\temp\cmd\ta_RSI.obj + -del ..\..\..\..\..\temp\cmd\ta_SAR.obj + -del ..\..\..\..\..\temp\cmd\ta_SAREXT.obj + -del ..\..\..\..\..\temp\cmd\ta_SIN.obj + -del ..\..\..\..\..\temp\cmd\ta_SINH.obj + -del ..\..\..\..\..\temp\cmd\ta_SMA.obj + -del ..\..\..\..\..\temp\cmd\ta_SQRT.obj + -del ..\..\..\..\..\temp\cmd\ta_STDDEV.obj + -del ..\..\..\..\..\temp\cmd\ta_STOCH.obj + -del ..\..\..\..\..\temp\cmd\ta_STOCHF.obj + -del ..\..\..\..\..\temp\cmd\ta_STOCHRSI.obj + -del ..\..\..\..\..\temp\cmd\ta_SUB.obj + -del ..\..\..\..\..\temp\cmd\ta_SUM.obj + -del ..\..\..\..\..\temp\cmd\ta_T3.obj + -del ..\..\..\..\..\temp\cmd\ta_TAN.obj + -del ..\..\..\..\..\temp\cmd\ta_TANH.obj + -del ..\..\..\..\..\temp\cmd\ta_TEMA.obj + -del ..\..\..\..\..\temp\cmd\ta_TRANGE.obj + -del ..\..\..\..\..\temp\cmd\ta_TRIMA.obj + -del ..\..\..\..\..\temp\cmd\ta_TRIX.obj + -del ..\..\..\..\..\temp\cmd\ta_TSF.obj + -del ..\..\..\..\..\temp\cmd\ta_TYPPRICE.obj + -del ..\..\..\..\..\temp\cmd\ta_ULTOSC.obj + -del ..\..\..\..\..\temp\cmd\ta_VAR.obj + -del ..\..\..\..\..\temp\cmd\ta_WCLPRICE.obj + -del ..\..\..\..\..\temp\cmd\ta_WILLR.obj + -del ..\..\..\..\..\temp\cmd\ta_WMA.obj + -del $(TARGET) + -del ../../../../../bin/*.map + -del ../../../../../bin/*._xe + -del ../../../../../bin/*.tds + -del ../../../../../bin/*.pdb + -del ../../../../../bin/*.pbo + -del ../../../../../bin/*.pbi + -del ../../../../../bin/*.pbt + +####### Compile + +..\..\..\..\..\temp\cmd\ta_global.obj: ..\..\..\..\..\src\ta_common\ta_global.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_global.obj ..\..\..\..\..\src\ta_common\ta_global.c + +..\..\..\..\..\temp\cmd\ta_retcode.obj: ..\..\..\..\..\src\ta_common\ta_retcode.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_retcode.obj ..\..\..\..\..\src\ta_common\ta_retcode.c + +..\..\..\..\..\temp\cmd\ta_version.obj: ..\..\..\..\..\src\ta_common\ta_version.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_version.obj ..\..\..\..\..\src\ta_common\ta_version.c + +..\..\..\..\..\temp\cmd\ta_abstract.obj: ..\..\..\..\..\src\ta_abstract\ta_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_abstract.obj ..\..\..\..\..\src\ta_abstract\ta_abstract.c + +..\..\..\..\..\temp\cmd\ta_def_ui.obj: ..\..\..\..\..\src\ta_abstract\ta_def_ui.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_def_ui.obj ..\..\..\..\..\src\ta_abstract\ta_def_ui.c + +..\..\..\..\..\temp\cmd\ta_func_api.obj: ..\..\..\..\..\src\ta_abstract\ta_func_api.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_func_api.obj ..\..\..\..\..\src\ta_abstract\ta_func_api.c + +..\..\..\..\..\temp\cmd\ta_group_idx.obj: ..\..\..\..\..\src\ta_abstract\ta_group_idx.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_group_idx.obj ..\..\..\..\..\src\ta_abstract\ta_group_idx.c + +..\..\..\..\..\temp\cmd\ta_frame.obj: ..\..\..\..\..\src\ta_abstract\frames\ta_frame.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_frame.obj ..\..\..\..\..\src\ta_abstract\frames\ta_frame.c + +..\..\..\..\..\temp\cmd\table_a.obj: ..\..\..\..\..\src\ta_abstract\tables\table_a.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\table_a.obj ..\..\..\..\..\src\ta_abstract\tables\table_a.c + +..\..\..\..\..\temp\cmd\table_b.obj: ..\..\..\..\..\src\ta_abstract\tables\table_b.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\table_b.obj ..\..\..\..\..\src\ta_abstract\tables\table_b.c + +..\..\..\..\..\temp\cmd\table_c.obj: ..\..\..\..\..\src\ta_abstract\tables\table_c.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\table_c.obj ..\..\..\..\..\src\ta_abstract\tables\table_c.c + +..\..\..\..\..\temp\cmd\table_d.obj: ..\..\..\..\..\src\ta_abstract\tables\table_d.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\table_d.obj ..\..\..\..\..\src\ta_abstract\tables\table_d.c + +..\..\..\..\..\temp\cmd\table_e.obj: ..\..\..\..\..\src\ta_abstract\tables\table_e.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\table_e.obj ..\..\..\..\..\src\ta_abstract\tables\table_e.c + +..\..\..\..\..\temp\cmd\table_f.obj: ..\..\..\..\..\src\ta_abstract\tables\table_f.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\table_f.obj ..\..\..\..\..\src\ta_abstract\tables\table_f.c + +..\..\..\..\..\temp\cmd\table_g.obj: ..\..\..\..\..\src\ta_abstract\tables\table_g.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\table_g.obj ..\..\..\..\..\src\ta_abstract\tables\table_g.c + +..\..\..\..\..\temp\cmd\table_h.obj: ..\..\..\..\..\src\ta_abstract\tables\table_h.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\table_h.obj ..\..\..\..\..\src\ta_abstract\tables\table_h.c + +..\..\..\..\..\temp\cmd\table_i.obj: ..\..\..\..\..\src\ta_abstract\tables\table_i.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\table_i.obj ..\..\..\..\..\src\ta_abstract\tables\table_i.c + +..\..\..\..\..\temp\cmd\table_j.obj: ..\..\..\..\..\src\ta_abstract\tables\table_j.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\table_j.obj ..\..\..\..\..\src\ta_abstract\tables\table_j.c + +..\..\..\..\..\temp\cmd\table_k.obj: ..\..\..\..\..\src\ta_abstract\tables\table_k.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\table_k.obj ..\..\..\..\..\src\ta_abstract\tables\table_k.c + +..\..\..\..\..\temp\cmd\table_l.obj: ..\..\..\..\..\src\ta_abstract\tables\table_l.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\table_l.obj ..\..\..\..\..\src\ta_abstract\tables\table_l.c + +..\..\..\..\..\temp\cmd\table_m.obj: ..\..\..\..\..\src\ta_abstract\tables\table_m.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\table_m.obj ..\..\..\..\..\src\ta_abstract\tables\table_m.c + +..\..\..\..\..\temp\cmd\table_n.obj: ..\..\..\..\..\src\ta_abstract\tables\table_n.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\table_n.obj ..\..\..\..\..\src\ta_abstract\tables\table_n.c + +..\..\..\..\..\temp\cmd\table_o.obj: ..\..\..\..\..\src\ta_abstract\tables\table_o.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\table_o.obj ..\..\..\..\..\src\ta_abstract\tables\table_o.c + +..\..\..\..\..\temp\cmd\table_p.obj: ..\..\..\..\..\src\ta_abstract\tables\table_p.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\table_p.obj ..\..\..\..\..\src\ta_abstract\tables\table_p.c + +..\..\..\..\..\temp\cmd\table_q.obj: ..\..\..\..\..\src\ta_abstract\tables\table_q.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\table_q.obj ..\..\..\..\..\src\ta_abstract\tables\table_q.c + +..\..\..\..\..\temp\cmd\table_r.obj: ..\..\..\..\..\src\ta_abstract\tables\table_r.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\table_r.obj ..\..\..\..\..\src\ta_abstract\tables\table_r.c + +..\..\..\..\..\temp\cmd\table_s.obj: ..\..\..\..\..\src\ta_abstract\tables\table_s.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\table_s.obj ..\..\..\..\..\src\ta_abstract\tables\table_s.c + +..\..\..\..\..\temp\cmd\table_t.obj: ..\..\..\..\..\src\ta_abstract\tables\table_t.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\table_t.obj ..\..\..\..\..\src\ta_abstract\tables\table_t.c + +..\..\..\..\..\temp\cmd\table_u.obj: ..\..\..\..\..\src\ta_abstract\tables\table_u.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\table_u.obj ..\..\..\..\..\src\ta_abstract\tables\table_u.c + +..\..\..\..\..\temp\cmd\table_v.obj: ..\..\..\..\..\src\ta_abstract\tables\table_v.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\table_v.obj ..\..\..\..\..\src\ta_abstract\tables\table_v.c + +..\..\..\..\..\temp\cmd\table_w.obj: ..\..\..\..\..\src\ta_abstract\tables\table_w.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\table_w.obj ..\..\..\..\..\src\ta_abstract\tables\table_w.c + +..\..\..\..\..\temp\cmd\table_x.obj: ..\..\..\..\..\src\ta_abstract\tables\table_x.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\table_x.obj ..\..\..\..\..\src\ta_abstract\tables\table_x.c + +..\..\..\..\..\temp\cmd\table_y.obj: ..\..\..\..\..\src\ta_abstract\tables\table_y.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\table_y.obj ..\..\..\..\..\src\ta_abstract\tables\table_y.c + +..\..\..\..\..\temp\cmd\table_z.obj: ..\..\..\..\..\src\ta_abstract\tables\table_z.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\table_z.obj ..\..\..\..\..\src\ta_abstract\tables\table_z.c + +..\..\..\..\..\temp\cmd\ta_utility.obj: ..\..\..\..\..\src\ta_func\ta_utility.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_utility.obj ..\..\..\..\..\src\ta_func\ta_utility.c + +..\..\..\..\..\temp\cmd\ta_ACOS.obj: ..\..\..\..\..\src\ta_func\ta_ACOS.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_ACOS.obj ..\..\..\..\..\src\ta_func\ta_ACOS.c + +..\..\..\..\..\temp\cmd\ta_AD.obj: ..\..\..\..\..\src\ta_func\ta_AD.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_AD.obj ..\..\..\..\..\src\ta_func\ta_AD.c + +..\..\..\..\..\temp\cmd\ta_ADD.obj: ..\..\..\..\..\src\ta_func\ta_ADD.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_ADD.obj ..\..\..\..\..\src\ta_func\ta_ADD.c + +..\..\..\..\..\temp\cmd\ta_ADOSC.obj: ..\..\..\..\..\src\ta_func\ta_ADOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_ADOSC.obj ..\..\..\..\..\src\ta_func\ta_ADOSC.c + +..\..\..\..\..\temp\cmd\ta_ADX.obj: ..\..\..\..\..\src\ta_func\ta_ADX.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_ADX.obj ..\..\..\..\..\src\ta_func\ta_ADX.c + +..\..\..\..\..\temp\cmd\ta_ADXR.obj: ..\..\..\..\..\src\ta_func\ta_ADXR.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_ADXR.obj ..\..\..\..\..\src\ta_func\ta_ADXR.c + +..\..\..\..\..\temp\cmd\ta_APO.obj: ..\..\..\..\..\src\ta_func\ta_APO.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_APO.obj ..\..\..\..\..\src\ta_func\ta_APO.c + +..\..\..\..\..\temp\cmd\ta_AROON.obj: ..\..\..\..\..\src\ta_func\ta_AROON.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_AROON.obj ..\..\..\..\..\src\ta_func\ta_AROON.c + +..\..\..\..\..\temp\cmd\ta_AROONOSC.obj: ..\..\..\..\..\src\ta_func\ta_AROONOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_AROONOSC.obj ..\..\..\..\..\src\ta_func\ta_AROONOSC.c + +..\..\..\..\..\temp\cmd\ta_ASIN.obj: ..\..\..\..\..\src\ta_func\ta_ASIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_ASIN.obj ..\..\..\..\..\src\ta_func\ta_ASIN.c + +..\..\..\..\..\temp\cmd\ta_ATAN.obj: ..\..\..\..\..\src\ta_func\ta_ATAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_ATAN.obj ..\..\..\..\..\src\ta_func\ta_ATAN.c + +..\..\..\..\..\temp\cmd\ta_ATR.obj: ..\..\..\..\..\src\ta_func\ta_ATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_ATR.obj ..\..\..\..\..\src\ta_func\ta_ATR.c + +..\..\..\..\..\temp\cmd\ta_AVGPRICE.obj: ..\..\..\..\..\src\ta_func\ta_AVGPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_AVGPRICE.obj ..\..\..\..\..\src\ta_func\ta_AVGPRICE.c + +..\..\..\..\..\temp\cmd\ta_BBANDS.obj: ..\..\..\..\..\src\ta_func\ta_BBANDS.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_BBANDS.obj ..\..\..\..\..\src\ta_func\ta_BBANDS.c + +..\..\..\..\..\temp\cmd\ta_BETA.obj: ..\..\..\..\..\src\ta_func\ta_BETA.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_BETA.obj ..\..\..\..\..\src\ta_func\ta_BETA.c + +..\..\..\..\..\temp\cmd\ta_BOP.obj: ..\..\..\..\..\src\ta_func\ta_BOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_BOP.obj ..\..\..\..\..\src\ta_func\ta_BOP.c + +..\..\..\..\..\temp\cmd\ta_CCI.obj: ..\..\..\..\..\src\ta_func\ta_CCI.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CCI.obj ..\..\..\..\..\src\ta_func\ta_CCI.c + +..\..\..\..\..\temp\cmd\ta_CDL2CROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDL2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CDL2CROWS.obj ..\..\..\..\..\src\ta_func\ta_CDL2CROWS.c + +..\..\..\..\..\temp\cmd\ta_CDL3BLACKCROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDL3BLACKCROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CDL3BLACKCROWS.obj ..\..\..\..\..\src\ta_func\ta_CDL3BLACKCROWS.c + +..\..\..\..\..\temp\cmd\ta_CDL3INSIDE.obj: ..\..\..\..\..\src\ta_func\ta_CDL3INSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CDL3INSIDE.obj ..\..\..\..\..\src\ta_func\ta_CDL3INSIDE.c + +..\..\..\..\..\temp\cmd\ta_CDL3LINESTRIKE.obj: ..\..\..\..\..\src\ta_func\ta_CDL3LINESTRIKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CDL3LINESTRIKE.obj ..\..\..\..\..\src\ta_func\ta_CDL3LINESTRIKE.c + +..\..\..\..\..\temp\cmd\ta_CDL3OUTSIDE.obj: ..\..\..\..\..\src\ta_func\ta_CDL3OUTSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CDL3OUTSIDE.obj ..\..\..\..\..\src\ta_func\ta_CDL3OUTSIDE.c + +..\..\..\..\..\temp\cmd\ta_CDL3STARSINSOUTH.obj: ..\..\..\..\..\src\ta_func\ta_CDL3STARSINSOUTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CDL3STARSINSOUTH.obj ..\..\..\..\..\src\ta_func\ta_CDL3STARSINSOUTH.c + +..\..\..\..\..\temp\cmd\ta_CDL3WHITESOLDIERS.obj: ..\..\..\..\..\src\ta_func\ta_CDL3WHITESOLDIERS.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CDL3WHITESOLDIERS.obj ..\..\..\..\..\src\ta_func\ta_CDL3WHITESOLDIERS.c + +..\..\..\..\..\temp\cmd\ta_CDLABANDONEDBABY.obj: ..\..\..\..\..\src\ta_func\ta_CDLABANDONEDBABY.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CDLABANDONEDBABY.obj ..\..\..\..\..\src\ta_func\ta_CDLABANDONEDBABY.c + +..\..\..\..\..\temp\cmd\ta_CDLADVANCEBLOCK.obj: ..\..\..\..\..\src\ta_func\ta_CDLADVANCEBLOCK.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CDLADVANCEBLOCK.obj ..\..\..\..\..\src\ta_func\ta_CDLADVANCEBLOCK.c + +..\..\..\..\..\temp\cmd\ta_CDLBELTHOLD.obj: ..\..\..\..\..\src\ta_func\ta_CDLBELTHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CDLBELTHOLD.obj ..\..\..\..\..\src\ta_func\ta_CDLBELTHOLD.c + +..\..\..\..\..\temp\cmd\ta_CDLBREAKAWAY.obj: ..\..\..\..\..\src\ta_func\ta_CDLBREAKAWAY.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CDLBREAKAWAY.obj ..\..\..\..\..\src\ta_func\ta_CDLBREAKAWAY.c + +..\..\..\..\..\temp\cmd\ta_CDLCLOSINGMARUBOZU.obj: ..\..\..\..\..\src\ta_func\ta_CDLCLOSINGMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CDLCLOSINGMARUBOZU.obj ..\..\..\..\..\src\ta_func\ta_CDLCLOSINGMARUBOZU.c + +..\..\..\..\..\temp\cmd\ta_CDLCONCEALBABYSWALL.obj: ..\..\..\..\..\src\ta_func\ta_CDLCONCEALBABYSWALL.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CDLCONCEALBABYSWALL.obj ..\..\..\..\..\src\ta_func\ta_CDLCONCEALBABYSWALL.c + +..\..\..\..\..\temp\cmd\ta_CDLCOUNTERATTACK.obj: ..\..\..\..\..\src\ta_func\ta_CDLCOUNTERATTACK.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CDLCOUNTERATTACK.obj ..\..\..\..\..\src\ta_func\ta_CDLCOUNTERATTACK.c + +..\..\..\..\..\temp\cmd\ta_CDLDARKCLOUDCOVER.obj: ..\..\..\..\..\src\ta_func\ta_CDLDARKCLOUDCOVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CDLDARKCLOUDCOVER.obj ..\..\..\..\..\src\ta_func\ta_CDLDARKCLOUDCOVER.c + +..\..\..\..\..\temp\cmd\ta_CDLDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CDLDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLDOJI.c + +..\..\..\..\..\temp\cmd\ta_CDLDOJISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CDLDOJISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLDOJISTAR.c + +..\..\..\..\..\temp\cmd\ta_CDLDRAGONFLYDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLDRAGONFLYDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CDLDRAGONFLYDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLDRAGONFLYDOJI.c + +..\..\..\..\..\temp\cmd\ta_CDLENGULFING.obj: ..\..\..\..\..\src\ta_func\ta_CDLENGULFING.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CDLENGULFING.obj ..\..\..\..\..\src\ta_func\ta_CDLENGULFING.c + +..\..\..\..\..\temp\cmd\ta_CDLEVENINGDOJISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLEVENINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CDLEVENINGDOJISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLEVENINGDOJISTAR.c + +..\..\..\..\..\temp\cmd\ta_CDLEVENINGSTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLEVENINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CDLEVENINGSTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLEVENINGSTAR.c + +..\..\..\..\..\temp\cmd\ta_CDLGAPSIDESIDEWHITE.obj: ..\..\..\..\..\src\ta_func\ta_CDLGAPSIDESIDEWHITE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CDLGAPSIDESIDEWHITE.obj ..\..\..\..\..\src\ta_func\ta_CDLGAPSIDESIDEWHITE.c + +..\..\..\..\..\temp\cmd\ta_CDLGRAVESTONEDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLGRAVESTONEDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CDLGRAVESTONEDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLGRAVESTONEDOJI.c + +..\..\..\..\..\temp\cmd\ta_CDLHAMMER.obj: ..\..\..\..\..\src\ta_func\ta_CDLHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CDLHAMMER.obj ..\..\..\..\..\src\ta_func\ta_CDLHAMMER.c + +..\..\..\..\..\temp\cmd\ta_CDLHANGINGMAN.obj: ..\..\..\..\..\src\ta_func\ta_CDLHANGINGMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CDLHANGINGMAN.obj ..\..\..\..\..\src\ta_func\ta_CDLHANGINGMAN.c + +..\..\..\..\..\temp\cmd\ta_CDLHARAMI.obj: ..\..\..\..\..\src\ta_func\ta_CDLHARAMI.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CDLHARAMI.obj ..\..\..\..\..\src\ta_func\ta_CDLHARAMI.c + +..\..\..\..\..\temp\cmd\ta_CDLHARAMICROSS.obj: ..\..\..\..\..\src\ta_func\ta_CDLHARAMICROSS.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CDLHARAMICROSS.obj ..\..\..\..\..\src\ta_func\ta_CDLHARAMICROSS.c + +..\..\..\..\..\temp\cmd\ta_CDLHIGHWAVE.obj: ..\..\..\..\..\src\ta_func\ta_CDLHIGHWAVE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CDLHIGHWAVE.obj ..\..\..\..\..\src\ta_func\ta_CDLHIGHWAVE.c + +..\..\..\..\..\temp\cmd\ta_CDLHIKKAKE.obj: ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CDLHIKKAKE.obj ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKE.c + +..\..\..\..\..\temp\cmd\ta_CDLHIKKAKEMOD.obj: ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKEMOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CDLHIKKAKEMOD.obj ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKEMOD.c + +..\..\..\..\..\temp\cmd\ta_CDLHOMINGPIGEON.obj: ..\..\..\..\..\src\ta_func\ta_CDLHOMINGPIGEON.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CDLHOMINGPIGEON.obj ..\..\..\..\..\src\ta_func\ta_CDLHOMINGPIGEON.c + +..\..\..\..\..\temp\cmd\ta_CDLIDENTICAL3CROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDLIDENTICAL3CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CDLIDENTICAL3CROWS.obj ..\..\..\..\..\src\ta_func\ta_CDLIDENTICAL3CROWS.c + +..\..\..\..\..\temp\cmd\ta_CDLINNECK.obj: ..\..\..\..\..\src\ta_func\ta_CDLINNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CDLINNECK.obj ..\..\..\..\..\src\ta_func\ta_CDLINNECK.c + +..\..\..\..\..\temp\cmd\ta_CDLINVERTEDHAMMER.obj: ..\..\..\..\..\src\ta_func\ta_CDLINVERTEDHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CDLINVERTEDHAMMER.obj ..\..\..\..\..\src\ta_func\ta_CDLINVERTEDHAMMER.c + +..\..\..\..\..\temp\cmd\ta_CDLKICKING.obj: ..\..\..\..\..\src\ta_func\ta_CDLKICKING.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CDLKICKING.obj ..\..\..\..\..\src\ta_func\ta_CDLKICKING.c + +..\..\..\..\..\temp\cmd\ta_CDLKICKINGBYLENGTH.obj: ..\..\..\..\..\src\ta_func\ta_CDLKICKINGBYLENGTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CDLKICKINGBYLENGTH.obj ..\..\..\..\..\src\ta_func\ta_CDLKICKINGBYLENGTH.c + +..\..\..\..\..\temp\cmd\ta_CDLLADDERBOTTOM.obj: ..\..\..\..\..\src\ta_func\ta_CDLLADDERBOTTOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CDLLADDERBOTTOM.obj ..\..\..\..\..\src\ta_func\ta_CDLLADDERBOTTOM.c + +..\..\..\..\..\temp\cmd\ta_CDLLONGLEGGEDDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLLONGLEGGEDDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CDLLONGLEGGEDDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLLONGLEGGEDDOJI.c + +..\..\..\..\..\temp\cmd\ta_CDLLONGLINE.obj: ..\..\..\..\..\src\ta_func\ta_CDLLONGLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CDLLONGLINE.obj ..\..\..\..\..\src\ta_func\ta_CDLLONGLINE.c + +..\..\..\..\..\temp\cmd\ta_CDLMARUBOZU.obj: ..\..\..\..\..\src\ta_func\ta_CDLMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CDLMARUBOZU.obj ..\..\..\..\..\src\ta_func\ta_CDLMARUBOZU.c + +..\..\..\..\..\temp\cmd\ta_CDLMATCHINGLOW.obj: ..\..\..\..\..\src\ta_func\ta_CDLMATCHINGLOW.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CDLMATCHINGLOW.obj ..\..\..\..\..\src\ta_func\ta_CDLMATCHINGLOW.c + +..\..\..\..\..\temp\cmd\ta_CDLMATHOLD.obj: ..\..\..\..\..\src\ta_func\ta_CDLMATHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CDLMATHOLD.obj ..\..\..\..\..\src\ta_func\ta_CDLMATHOLD.c + +..\..\..\..\..\temp\cmd\ta_CDLMORNINGDOJISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLMORNINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CDLMORNINGDOJISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLMORNINGDOJISTAR.c + +..\..\..\..\..\temp\cmd\ta_CDLMORNINGSTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLMORNINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CDLMORNINGSTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLMORNINGSTAR.c + +..\..\..\..\..\temp\cmd\ta_CDLONNECK.obj: ..\..\..\..\..\src\ta_func\ta_CDLONNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CDLONNECK.obj ..\..\..\..\..\src\ta_func\ta_CDLONNECK.c + +..\..\..\..\..\temp\cmd\ta_CDLPIERCING.obj: ..\..\..\..\..\src\ta_func\ta_CDLPIERCING.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CDLPIERCING.obj ..\..\..\..\..\src\ta_func\ta_CDLPIERCING.c + +..\..\..\..\..\temp\cmd\ta_CDLRICKSHAWMAN.obj: ..\..\..\..\..\src\ta_func\ta_CDLRICKSHAWMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CDLRICKSHAWMAN.obj ..\..\..\..\..\src\ta_func\ta_CDLRICKSHAWMAN.c + +..\..\..\..\..\temp\cmd\ta_CDLRISEFALL3METHODS.obj: ..\..\..\..\..\src\ta_func\ta_CDLRISEFALL3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CDLRISEFALL3METHODS.obj ..\..\..\..\..\src\ta_func\ta_CDLRISEFALL3METHODS.c + +..\..\..\..\..\temp\cmd\ta_CDLSEPARATINGLINES.obj: ..\..\..\..\..\src\ta_func\ta_CDLSEPARATINGLINES.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CDLSEPARATINGLINES.obj ..\..\..\..\..\src\ta_func\ta_CDLSEPARATINGLINES.c + +..\..\..\..\..\temp\cmd\ta_CDLSHOOTINGSTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLSHOOTINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CDLSHOOTINGSTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLSHOOTINGSTAR.c + +..\..\..\..\..\temp\cmd\ta_CDLSHORTLINE.obj: ..\..\..\..\..\src\ta_func\ta_CDLSHORTLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CDLSHORTLINE.obj ..\..\..\..\..\src\ta_func\ta_CDLSHORTLINE.c + +..\..\..\..\..\temp\cmd\ta_CDLSPINNINGTOP.obj: ..\..\..\..\..\src\ta_func\ta_CDLSPINNINGTOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CDLSPINNINGTOP.obj ..\..\..\..\..\src\ta_func\ta_CDLSPINNINGTOP.c + +..\..\..\..\..\temp\cmd\ta_CDLSTALLEDPATTERN.obj: ..\..\..\..\..\src\ta_func\ta_CDLSTALLEDPATTERN.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CDLSTALLEDPATTERN.obj ..\..\..\..\..\src\ta_func\ta_CDLSTALLEDPATTERN.c + +..\..\..\..\..\temp\cmd\ta_CDLSTICKSANDWICH.obj: ..\..\..\..\..\src\ta_func\ta_CDLSTICKSANDWICH.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CDLSTICKSANDWICH.obj ..\..\..\..\..\src\ta_func\ta_CDLSTICKSANDWICH.c + +..\..\..\..\..\temp\cmd\ta_CDLTAKURI.obj: ..\..\..\..\..\src\ta_func\ta_CDLTAKURI.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CDLTAKURI.obj ..\..\..\..\..\src\ta_func\ta_CDLTAKURI.c + +..\..\..\..\..\temp\cmd\ta_CDLTASUKIGAP.obj: ..\..\..\..\..\src\ta_func\ta_CDLTASUKIGAP.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CDLTASUKIGAP.obj ..\..\..\..\..\src\ta_func\ta_CDLTASUKIGAP.c + +..\..\..\..\..\temp\cmd\ta_CDLTHRUSTING.obj: ..\..\..\..\..\src\ta_func\ta_CDLTHRUSTING.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CDLTHRUSTING.obj ..\..\..\..\..\src\ta_func\ta_CDLTHRUSTING.c + +..\..\..\..\..\temp\cmd\ta_CDLTRISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLTRISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CDLTRISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLTRISTAR.c + +..\..\..\..\..\temp\cmd\ta_CDLUNIQUE3RIVER.obj: ..\..\..\..\..\src\ta_func\ta_CDLUNIQUE3RIVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CDLUNIQUE3RIVER.obj ..\..\..\..\..\src\ta_func\ta_CDLUNIQUE3RIVER.c + +..\..\..\..\..\temp\cmd\ta_CDLUPSIDEGAP2CROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDLUPSIDEGAP2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CDLUPSIDEGAP2CROWS.obj ..\..\..\..\..\src\ta_func\ta_CDLUPSIDEGAP2CROWS.c + +..\..\..\..\..\temp\cmd\ta_CDLXSIDEGAP3METHODS.obj: ..\..\..\..\..\src\ta_func\ta_CDLXSIDEGAP3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CDLXSIDEGAP3METHODS.obj ..\..\..\..\..\src\ta_func\ta_CDLXSIDEGAP3METHODS.c + +..\..\..\..\..\temp\cmd\ta_CEIL.obj: ..\..\..\..\..\src\ta_func\ta_CEIL.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CEIL.obj ..\..\..\..\..\src\ta_func\ta_CEIL.c + +..\..\..\..\..\temp\cmd\ta_CMO.obj: ..\..\..\..\..\src\ta_func\ta_CMO.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CMO.obj ..\..\..\..\..\src\ta_func\ta_CMO.c + +..\..\..\..\..\temp\cmd\ta_CORREL.obj: ..\..\..\..\..\src\ta_func\ta_CORREL.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_CORREL.obj ..\..\..\..\..\src\ta_func\ta_CORREL.c + +..\..\..\..\..\temp\cmd\ta_COS.obj: ..\..\..\..\..\src\ta_func\ta_COS.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_COS.obj ..\..\..\..\..\src\ta_func\ta_COS.c + +..\..\..\..\..\temp\cmd\ta_COSH.obj: ..\..\..\..\..\src\ta_func\ta_COSH.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_COSH.obj ..\..\..\..\..\src\ta_func\ta_COSH.c + +..\..\..\..\..\temp\cmd\ta_DEMA.obj: ..\..\..\..\..\src\ta_func\ta_DEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_DEMA.obj ..\..\..\..\..\src\ta_func\ta_DEMA.c + +..\..\..\..\..\temp\cmd\ta_DIV.obj: ..\..\..\..\..\src\ta_func\ta_DIV.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_DIV.obj ..\..\..\..\..\src\ta_func\ta_DIV.c + +..\..\..\..\..\temp\cmd\ta_DX.obj: ..\..\..\..\..\src\ta_func\ta_DX.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_DX.obj ..\..\..\..\..\src\ta_func\ta_DX.c + +..\..\..\..\..\temp\cmd\ta_EMA.obj: ..\..\..\..\..\src\ta_func\ta_EMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_EMA.obj ..\..\..\..\..\src\ta_func\ta_EMA.c + +..\..\..\..\..\temp\cmd\ta_EXP.obj: ..\..\..\..\..\src\ta_func\ta_EXP.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_EXP.obj ..\..\..\..\..\src\ta_func\ta_EXP.c + +..\..\..\..\..\temp\cmd\ta_FLOOR.obj: ..\..\..\..\..\src\ta_func\ta_FLOOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_FLOOR.obj ..\..\..\..\..\src\ta_func\ta_FLOOR.c + +..\..\..\..\..\temp\cmd\ta_HT_DCPERIOD.obj: ..\..\..\..\..\src\ta_func\ta_HT_DCPERIOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_HT_DCPERIOD.obj ..\..\..\..\..\src\ta_func\ta_HT_DCPERIOD.c + +..\..\..\..\..\temp\cmd\ta_HT_DCPHASE.obj: ..\..\..\..\..\src\ta_func\ta_HT_DCPHASE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_HT_DCPHASE.obj ..\..\..\..\..\src\ta_func\ta_HT_DCPHASE.c + +..\..\..\..\..\temp\cmd\ta_HT_PHASOR.obj: ..\..\..\..\..\src\ta_func\ta_HT_PHASOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_HT_PHASOR.obj ..\..\..\..\..\src\ta_func\ta_HT_PHASOR.c + +..\..\..\..\..\temp\cmd\ta_HT_SINE.obj: ..\..\..\..\..\src\ta_func\ta_HT_SINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_HT_SINE.obj ..\..\..\..\..\src\ta_func\ta_HT_SINE.c + +..\..\..\..\..\temp\cmd\ta_HT_TRENDLINE.obj: ..\..\..\..\..\src\ta_func\ta_HT_TRENDLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_HT_TRENDLINE.obj ..\..\..\..\..\src\ta_func\ta_HT_TRENDLINE.c + +..\..\..\..\..\temp\cmd\ta_HT_TRENDMODE.obj: ..\..\..\..\..\src\ta_func\ta_HT_TRENDMODE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_HT_TRENDMODE.obj ..\..\..\..\..\src\ta_func\ta_HT_TRENDMODE.c + +..\..\..\..\..\temp\cmd\ta_KAMA.obj: ..\..\..\..\..\src\ta_func\ta_KAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_KAMA.obj ..\..\..\..\..\src\ta_func\ta_KAMA.c + +..\..\..\..\..\temp\cmd\ta_LINEARREG.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_LINEARREG.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG.c + +..\..\..\..\..\temp\cmd\ta_LINEARREG_ANGLE.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG_ANGLE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_LINEARREG_ANGLE.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG_ANGLE.c + +..\..\..\..\..\temp\cmd\ta_LINEARREG_INTERCEPT.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG_INTERCEPT.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_LINEARREG_INTERCEPT.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG_INTERCEPT.c + +..\..\..\..\..\temp\cmd\ta_LINEARREG_SLOPE.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG_SLOPE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_LINEARREG_SLOPE.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG_SLOPE.c + +..\..\..\..\..\temp\cmd\ta_LN.obj: ..\..\..\..\..\src\ta_func\ta_LN.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_LN.obj ..\..\..\..\..\src\ta_func\ta_LN.c + +..\..\..\..\..\temp\cmd\ta_LOG10.obj: ..\..\..\..\..\src\ta_func\ta_LOG10.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_LOG10.obj ..\..\..\..\..\src\ta_func\ta_LOG10.c + +..\..\..\..\..\temp\cmd\ta_MA.obj: ..\..\..\..\..\src\ta_func\ta_MA.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_MA.obj ..\..\..\..\..\src\ta_func\ta_MA.c + +..\..\..\..\..\temp\cmd\ta_MACD.obj: ..\..\..\..\..\src\ta_func\ta_MACD.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_MACD.obj ..\..\..\..\..\src\ta_func\ta_MACD.c + +..\..\..\..\..\temp\cmd\ta_MACDEXT.obj: ..\..\..\..\..\src\ta_func\ta_MACDEXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_MACDEXT.obj ..\..\..\..\..\src\ta_func\ta_MACDEXT.c + +..\..\..\..\..\temp\cmd\ta_MACDFIX.obj: ..\..\..\..\..\src\ta_func\ta_MACDFIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_MACDFIX.obj ..\..\..\..\..\src\ta_func\ta_MACDFIX.c + +..\..\..\..\..\temp\cmd\ta_MAMA.obj: ..\..\..\..\..\src\ta_func\ta_MAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_MAMA.obj ..\..\..\..\..\src\ta_func\ta_MAMA.c + +..\..\..\..\..\temp\cmd\ta_MAVP.obj: ..\..\..\..\..\src\ta_func\ta_MAVP.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_MAVP.obj ..\..\..\..\..\src\ta_func\ta_MAVP.c + +..\..\..\..\..\temp\cmd\ta_MAX.obj: ..\..\..\..\..\src\ta_func\ta_MAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_MAX.obj ..\..\..\..\..\src\ta_func\ta_MAX.c + +..\..\..\..\..\temp\cmd\ta_MAXINDEX.obj: ..\..\..\..\..\src\ta_func\ta_MAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_MAXINDEX.obj ..\..\..\..\..\src\ta_func\ta_MAXINDEX.c + +..\..\..\..\..\temp\cmd\ta_MEDPRICE.obj: ..\..\..\..\..\src\ta_func\ta_MEDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_MEDPRICE.obj ..\..\..\..\..\src\ta_func\ta_MEDPRICE.c + +..\..\..\..\..\temp\cmd\ta_MFI.obj: ..\..\..\..\..\src\ta_func\ta_MFI.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_MFI.obj ..\..\..\..\..\src\ta_func\ta_MFI.c + +..\..\..\..\..\temp\cmd\ta_MIDPOINT.obj: ..\..\..\..\..\src\ta_func\ta_MIDPOINT.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_MIDPOINT.obj ..\..\..\..\..\src\ta_func\ta_MIDPOINT.c + +..\..\..\..\..\temp\cmd\ta_MIDPRICE.obj: ..\..\..\..\..\src\ta_func\ta_MIDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_MIDPRICE.obj ..\..\..\..\..\src\ta_func\ta_MIDPRICE.c + +..\..\..\..\..\temp\cmd\ta_MIN.obj: ..\..\..\..\..\src\ta_func\ta_MIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_MIN.obj ..\..\..\..\..\src\ta_func\ta_MIN.c + +..\..\..\..\..\temp\cmd\ta_MININDEX.obj: ..\..\..\..\..\src\ta_func\ta_MININDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_MININDEX.obj ..\..\..\..\..\src\ta_func\ta_MININDEX.c + +..\..\..\..\..\temp\cmd\ta_MINMAX.obj: ..\..\..\..\..\src\ta_func\ta_MINMAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_MINMAX.obj ..\..\..\..\..\src\ta_func\ta_MINMAX.c + +..\..\..\..\..\temp\cmd\ta_MINMAXINDEX.obj: ..\..\..\..\..\src\ta_func\ta_MINMAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_MINMAXINDEX.obj ..\..\..\..\..\src\ta_func\ta_MINMAXINDEX.c + +..\..\..\..\..\temp\cmd\ta_MINUS_DI.obj: ..\..\..\..\..\src\ta_func\ta_MINUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_MINUS_DI.obj ..\..\..\..\..\src\ta_func\ta_MINUS_DI.c + +..\..\..\..\..\temp\cmd\ta_MINUS_DM.obj: ..\..\..\..\..\src\ta_func\ta_MINUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_MINUS_DM.obj ..\..\..\..\..\src\ta_func\ta_MINUS_DM.c + +..\..\..\..\..\temp\cmd\ta_MOM.obj: ..\..\..\..\..\src\ta_func\ta_MOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_MOM.obj ..\..\..\..\..\src\ta_func\ta_MOM.c + +..\..\..\..\..\temp\cmd\ta_MULT.obj: ..\..\..\..\..\src\ta_func\ta_MULT.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_MULT.obj ..\..\..\..\..\src\ta_func\ta_MULT.c + +..\..\..\..\..\temp\cmd\ta_NATR.obj: ..\..\..\..\..\src\ta_func\ta_NATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_NATR.obj ..\..\..\..\..\src\ta_func\ta_NATR.c + +..\..\..\..\..\temp\cmd\ta_OBV.obj: ..\..\..\..\..\src\ta_func\ta_OBV.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_OBV.obj ..\..\..\..\..\src\ta_func\ta_OBV.c + +..\..\..\..\..\temp\cmd\ta_PLUS_DI.obj: ..\..\..\..\..\src\ta_func\ta_PLUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_PLUS_DI.obj ..\..\..\..\..\src\ta_func\ta_PLUS_DI.c + +..\..\..\..\..\temp\cmd\ta_PLUS_DM.obj: ..\..\..\..\..\src\ta_func\ta_PLUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_PLUS_DM.obj ..\..\..\..\..\src\ta_func\ta_PLUS_DM.c + +..\..\..\..\..\temp\cmd\ta_PPO.obj: ..\..\..\..\..\src\ta_func\ta_PPO.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_PPO.obj ..\..\..\..\..\src\ta_func\ta_PPO.c + +..\..\..\..\..\temp\cmd\ta_ROC.obj: ..\..\..\..\..\src\ta_func\ta_ROC.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_ROC.obj ..\..\..\..\..\src\ta_func\ta_ROC.c + +..\..\..\..\..\temp\cmd\ta_ROCP.obj: ..\..\..\..\..\src\ta_func\ta_ROCP.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_ROCP.obj ..\..\..\..\..\src\ta_func\ta_ROCP.c + +..\..\..\..\..\temp\cmd\ta_ROCR.obj: ..\..\..\..\..\src\ta_func\ta_ROCR.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_ROCR.obj ..\..\..\..\..\src\ta_func\ta_ROCR.c + +..\..\..\..\..\temp\cmd\ta_ROCR100.obj: ..\..\..\..\..\src\ta_func\ta_ROCR100.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_ROCR100.obj ..\..\..\..\..\src\ta_func\ta_ROCR100.c + +..\..\..\..\..\temp\cmd\ta_RSI.obj: ..\..\..\..\..\src\ta_func\ta_RSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_RSI.obj ..\..\..\..\..\src\ta_func\ta_RSI.c + +..\..\..\..\..\temp\cmd\ta_SAR.obj: ..\..\..\..\..\src\ta_func\ta_SAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_SAR.obj ..\..\..\..\..\src\ta_func\ta_SAR.c + +..\..\..\..\..\temp\cmd\ta_SAREXT.obj: ..\..\..\..\..\src\ta_func\ta_SAREXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_SAREXT.obj ..\..\..\..\..\src\ta_func\ta_SAREXT.c + +..\..\..\..\..\temp\cmd\ta_SIN.obj: ..\..\..\..\..\src\ta_func\ta_SIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_SIN.obj ..\..\..\..\..\src\ta_func\ta_SIN.c + +..\..\..\..\..\temp\cmd\ta_SINH.obj: ..\..\..\..\..\src\ta_func\ta_SINH.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_SINH.obj ..\..\..\..\..\src\ta_func\ta_SINH.c + +..\..\..\..\..\temp\cmd\ta_SMA.obj: ..\..\..\..\..\src\ta_func\ta_SMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_SMA.obj ..\..\..\..\..\src\ta_func\ta_SMA.c + +..\..\..\..\..\temp\cmd\ta_SQRT.obj: ..\..\..\..\..\src\ta_func\ta_SQRT.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_SQRT.obj ..\..\..\..\..\src\ta_func\ta_SQRT.c + +..\..\..\..\..\temp\cmd\ta_STDDEV.obj: ..\..\..\..\..\src\ta_func\ta_STDDEV.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_STDDEV.obj ..\..\..\..\..\src\ta_func\ta_STDDEV.c + +..\..\..\..\..\temp\cmd\ta_STOCH.obj: ..\..\..\..\..\src\ta_func\ta_STOCH.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_STOCH.obj ..\..\..\..\..\src\ta_func\ta_STOCH.c + +..\..\..\..\..\temp\cmd\ta_STOCHF.obj: ..\..\..\..\..\src\ta_func\ta_STOCHF.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_STOCHF.obj ..\..\..\..\..\src\ta_func\ta_STOCHF.c + +..\..\..\..\..\temp\cmd\ta_STOCHRSI.obj: ..\..\..\..\..\src\ta_func\ta_STOCHRSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_STOCHRSI.obj ..\..\..\..\..\src\ta_func\ta_STOCHRSI.c + +..\..\..\..\..\temp\cmd\ta_SUB.obj: ..\..\..\..\..\src\ta_func\ta_SUB.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_SUB.obj ..\..\..\..\..\src\ta_func\ta_SUB.c + +..\..\..\..\..\temp\cmd\ta_SUM.obj: ..\..\..\..\..\src\ta_func\ta_SUM.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_SUM.obj ..\..\..\..\..\src\ta_func\ta_SUM.c + +..\..\..\..\..\temp\cmd\ta_T3.obj: ..\..\..\..\..\src\ta_func\ta_T3.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_T3.obj ..\..\..\..\..\src\ta_func\ta_T3.c + +..\..\..\..\..\temp\cmd\ta_TAN.obj: ..\..\..\..\..\src\ta_func\ta_TAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_TAN.obj ..\..\..\..\..\src\ta_func\ta_TAN.c + +..\..\..\..\..\temp\cmd\ta_TANH.obj: ..\..\..\..\..\src\ta_func\ta_TANH.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_TANH.obj ..\..\..\..\..\src\ta_func\ta_TANH.c + +..\..\..\..\..\temp\cmd\ta_TEMA.obj: ..\..\..\..\..\src\ta_func\ta_TEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_TEMA.obj ..\..\..\..\..\src\ta_func\ta_TEMA.c + +..\..\..\..\..\temp\cmd\ta_TRANGE.obj: ..\..\..\..\..\src\ta_func\ta_TRANGE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_TRANGE.obj ..\..\..\..\..\src\ta_func\ta_TRANGE.c + +..\..\..\..\..\temp\cmd\ta_TRIMA.obj: ..\..\..\..\..\src\ta_func\ta_TRIMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_TRIMA.obj ..\..\..\..\..\src\ta_func\ta_TRIMA.c + +..\..\..\..\..\temp\cmd\ta_TRIX.obj: ..\..\..\..\..\src\ta_func\ta_TRIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_TRIX.obj ..\..\..\..\..\src\ta_func\ta_TRIX.c + +..\..\..\..\..\temp\cmd\ta_TSF.obj: ..\..\..\..\..\src\ta_func\ta_TSF.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_TSF.obj ..\..\..\..\..\src\ta_func\ta_TSF.c + +..\..\..\..\..\temp\cmd\ta_TYPPRICE.obj: ..\..\..\..\..\src\ta_func\ta_TYPPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_TYPPRICE.obj ..\..\..\..\..\src\ta_func\ta_TYPPRICE.c + +..\..\..\..\..\temp\cmd\ta_ULTOSC.obj: ..\..\..\..\..\src\ta_func\ta_ULTOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_ULTOSC.obj ..\..\..\..\..\src\ta_func\ta_ULTOSC.c + +..\..\..\..\..\temp\cmd\ta_VAR.obj: ..\..\..\..\..\src\ta_func\ta_VAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_VAR.obj ..\..\..\..\..\src\ta_func\ta_VAR.c + +..\..\..\..\..\temp\cmd\ta_WCLPRICE.obj: ..\..\..\..\..\src\ta_func\ta_WCLPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_WCLPRICE.obj ..\..\..\..\..\src\ta_func\ta_WCLPRICE.c + +..\..\..\..\..\temp\cmd\ta_WILLR.obj: ..\..\..\..\..\src\ta_func\ta_WILLR.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_WILLR.obj ..\..\..\..\..\src\ta_func\ta_WILLR.c + +..\..\..\..\..\temp\cmd\ta_WMA.obj: ..\..\..\..\..\src\ta_func\ta_WMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_WMA.obj ..\..\..\..\..\src\ta_func\ta_WMA.c + diff --git a/make/cmd/win32/watcom/ta_regtest/Makefile b/make/cmd/win32/watcom/ta_regtest/Makefile new file mode 100644 index 000000000..5e6a711b3 --- /dev/null +++ b/make/cmd/win32/watcom/ta_regtest/Makefile @@ -0,0 +1,219 @@ +############################################################################# +# Makefile for building ta_regtest +# Generated by tmake; +# Project: ta_regtest/ta_regtest +# Template: app +############################################################################# + +####### Compiler, tools and options + +CC = wcl386 +CXX = wcl386 +CFLAGS = -zq -w2 -d2 -d=TA_DEBUG -d=_DEBUG -d=WIN32 +CXXFLAGS= -zq -w2 -d2 -d=TA_DEBUG -d=_DEBUG -d=WIN32 +INCPATH = -i="..\..\..\..\..\src\ta_common" -i="..\..\..\..\..\src\tools\ta_regtest" -i="..\..\..\..\..\src\ta_func" -i="..\..\..\..\..\include" +LINK = wlink +LFLAGS = op quiet op c d all sys nt +LIBS = ..\..\..\..\..\lib\ta_libc_cmd.lib +MOC = moc + +ZIP = zip -r -9 + +####### Files + +HEADERS = +SOURCES = ..\..\..\..\..\src\tools\ta_regtest\ta_regtest.c & + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_candlestick.c & + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_1in_1out.c & + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_1in_2out.c & + ..\..\..\..\..\src\tools\ta_regtest\test_internals.c & + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_adx.c & + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_bbands.c & + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_ma.c & + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_macd.c & + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_minmax.c & + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_mom.c & + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_ema.c & + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hl.c & + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hlc.c & + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hlcv.c & + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_ohlc.c & + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_po.c & + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_rsi.c & + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_sar.c & + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_stddev.c & + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_stoch.c & + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_trange.c & + ..\..\..\..\..\src\tools\ta_regtest\test_util.c & + ..\..\..\..\..\src\tools\ta_regtest\test_data.c & + ..\..\..\..\..\src\tools\ta_regtest\test_abstract.c +OBJECTS = ..\..\..\..\..\temp\cmd\ta_regtest.obj & + ..\..\..\..\..\temp\cmd\test_candlestick.obj & + ..\..\..\..\..\temp\cmd\test_1in_1out.obj & + ..\..\..\..\..\temp\cmd\test_1in_2out.obj & + ..\..\..\..\..\temp\cmd\test_internals.obj & + ..\..\..\..\..\temp\cmd\test_adx.obj & + ..\..\..\..\..\temp\cmd\test_bbands.obj & + ..\..\..\..\..\temp\cmd\test_ma.obj & + ..\..\..\..\..\temp\cmd\test_macd.obj & + ..\..\..\..\..\temp\cmd\test_minmax.obj & + ..\..\..\..\..\temp\cmd\test_mom.obj & + ..\..\..\..\..\temp\cmd\test_per_ema.obj & + ..\..\..\..\..\temp\cmd\test_per_hl.obj & + ..\..\..\..\..\temp\cmd\test_per_hlc.obj & + ..\..\..\..\..\temp\cmd\test_per_hlcv.obj & + ..\..\..\..\..\temp\cmd\test_per_ohlc.obj & + ..\..\..\..\..\temp\cmd\test_po.obj & + ..\..\..\..\..\temp\cmd\test_rsi.obj & + ..\..\..\..\..\temp\cmd\test_sar.obj & + ..\..\..\..\..\temp\cmd\test_stddev.obj & + ..\..\..\..\..\temp\cmd\test_stoch.obj & + ..\..\..\..\..\temp\cmd\test_trange.obj & + ..\..\..\..\..\temp\cmd\test_util.obj & + ..\..\..\..\..\temp\cmd\test_data.obj & + ..\..\..\..\..\temp\cmd\test_abstract.obj +SRCMOC = +OBJMOC = +DIST = +TARGET = ..\..\..\..\..\bin\ta_regtest.exe +TMPLIST = ta_regtest.lst + +####### Build rules + +all: $(TARGET) + +$(TARGET): $(OBJECTS) $(OBJMOC) + @%create $(TMPLIST) + @%append $(TMPLIST) NAME ta_regtest + @%append $(TMPLIST) FIL ..\..\..\..\..\temp\cmd\ta_regtest.obj,..\..\..\..\..\temp\cmd\test_candlestick.obj,..\..\..\..\..\temp\cmd\test_1in_1out.obj,..\..\..\..\..\temp\cmd\test_1in_2out.obj,..\..\..\..\..\temp\cmd\test_internals.obj,..\..\..\..\..\temp\cmd\test_adx.obj,..\..\..\..\..\temp\cmd\test_bbands.obj,..\..\..\..\..\temp\cmd\test_ma.obj,..\..\..\..\..\temp\cmd\test_macd.obj,..\..\..\..\..\temp\cmd\test_minmax.obj,..\..\..\..\..\temp\cmd\test_mom.obj,..\..\..\..\..\temp\cmd\test_per_ema.obj,..\..\..\..\..\temp\cmd\test_per_hl.obj,..\..\..\..\..\temp\cmd\test_per_hlc.obj,..\..\..\..\..\temp\cmd\test_per_hlcv.obj,..\..\..\..\..\temp\cmd\test_per_ohlc.obj,..\..\..\..\..\temp\cmd\test_po.obj,..\..\..\..\..\temp\cmd\test_rsi.obj,..\..\..\..\..\temp\cmd\test_sar.obj,..\..\..\..\..\temp\cmd\test_stddev.obj,..\..\..\..\..\temp\cmd\test_stoch.obj,..\..\..\..\..\temp\cmd\test_trange.obj,..\..\..\..\..\temp\cmd\test_util.obj,..\..\..\..\..\temp\cmd\test_data.obj,..\..\..\..\..\temp\cmd\test_abstract.obj + @%append $(TMPLIST) LIBR ..\..\..\..\..\lib\ta_libc_cmd.lib + $(LINK) $(LFLAGS) @$(TMPLIST) + del $(TMPLIST) + +moc: $(SRCMOC) + +tmake: ../cmd/win32/watcom/ta_regtest/Makefile + +../cmd/win32/watcom/ta_regtest/Makefile: ta_regtest/ta_regtest.pro + tmake ta_regtest/ta_regtest.pro -o ../cmd/win32/watcom/ta_regtest/Makefile + +dist: + $(ZIP) ta_regtest/ta_regtest.zip ta_regtest/ta_regtest.pro $(SOURCES) $(HEADERS) $(DIST) + +clean: + -del ..\..\..\..\..\temp\cmd\ta_regtest.obj + -del ..\..\..\..\..\temp\cmd\test_candlestick.obj + -del ..\..\..\..\..\temp\cmd\test_1in_1out.obj + -del ..\..\..\..\..\temp\cmd\test_1in_2out.obj + -del ..\..\..\..\..\temp\cmd\test_internals.obj + -del ..\..\..\..\..\temp\cmd\test_adx.obj + -del ..\..\..\..\..\temp\cmd\test_bbands.obj + -del ..\..\..\..\..\temp\cmd\test_ma.obj + -del ..\..\..\..\..\temp\cmd\test_macd.obj + -del ..\..\..\..\..\temp\cmd\test_minmax.obj + -del ..\..\..\..\..\temp\cmd\test_mom.obj + -del ..\..\..\..\..\temp\cmd\test_per_ema.obj + -del ..\..\..\..\..\temp\cmd\test_per_hl.obj + -del ..\..\..\..\..\temp\cmd\test_per_hlc.obj + -del ..\..\..\..\..\temp\cmd\test_per_hlcv.obj + -del ..\..\..\..\..\temp\cmd\test_per_ohlc.obj + -del ..\..\..\..\..\temp\cmd\test_po.obj + -del ..\..\..\..\..\temp\cmd\test_rsi.obj + -del ..\..\..\..\..\temp\cmd\test_sar.obj + -del ..\..\..\..\..\temp\cmd\test_stddev.obj + -del ..\..\..\..\..\temp\cmd\test_stoch.obj + -del ..\..\..\..\..\temp\cmd\test_trange.obj + -del ..\..\..\..\..\temp\cmd\test_util.obj + -del ..\..\..\..\..\temp\cmd\test_data.obj + -del ..\..\..\..\..\temp\cmd\test_abstract.obj + -del $(TARGET) + -del ../../../../../bin/*.map + -del ../../../../../bin/*._xe + -del ../../../../../bin/*.tds + -del ../../../../../bin/*.pdb + -del ../../../../../bin/*.pbo + -del ../../../../../bin/*.pbi + -del ../../../../../bin/*.pbt + -del ../../../../../temp/cmd/*.pch + -del ../../../../../temp/cmd/*.idb + -del ../../../../../temp/cmd/ta_regtest/*.pch + -del ../../../../../temp/cmd/ta_regtest/*.idb + -del ../../../../../temp/cmd/ta_regtest/*.obj + +####### Compile + +..\..\..\..\..\temp\cmd\ta_regtest.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_regtest.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\ta_regtest.obj ..\..\..\..\..\src\tools\ta_regtest\ta_regtest.c + +..\..\..\..\..\temp\cmd\test_candlestick.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_candlestick.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\test_candlestick.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_candlestick.c + +..\..\..\..\..\temp\cmd\test_1in_1out.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_1in_1out.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\test_1in_1out.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_1in_1out.c + +..\..\..\..\..\temp\cmd\test_1in_2out.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_1in_2out.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\test_1in_2out.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_1in_2out.c + +..\..\..\..\..\temp\cmd\test_internals.obj: ..\..\..\..\..\src\tools\ta_regtest\test_internals.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\test_internals.obj ..\..\..\..\..\src\tools\ta_regtest\test_internals.c + +..\..\..\..\..\temp\cmd\test_adx.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_adx.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\test_adx.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_adx.c + +..\..\..\..\..\temp\cmd\test_bbands.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_bbands.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\test_bbands.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_bbands.c + +..\..\..\..\..\temp\cmd\test_ma.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_ma.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\test_ma.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_ma.c + +..\..\..\..\..\temp\cmd\test_macd.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_macd.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\test_macd.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_macd.c + +..\..\..\..\..\temp\cmd\test_minmax.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_minmax.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\test_minmax.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_minmax.c + +..\..\..\..\..\temp\cmd\test_mom.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_mom.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\test_mom.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_mom.c + +..\..\..\..\..\temp\cmd\test_per_ema.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_ema.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\test_per_ema.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_ema.c + +..\..\..\..\..\temp\cmd\test_per_hl.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hl.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\test_per_hl.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hl.c + +..\..\..\..\..\temp\cmd\test_per_hlc.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hlc.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\test_per_hlc.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hlc.c + +..\..\..\..\..\temp\cmd\test_per_hlcv.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hlcv.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\test_per_hlcv.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hlcv.c + +..\..\..\..\..\temp\cmd\test_per_ohlc.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_ohlc.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\test_per_ohlc.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_ohlc.c + +..\..\..\..\..\temp\cmd\test_po.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_po.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\test_po.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_po.c + +..\..\..\..\..\temp\cmd\test_rsi.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_rsi.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\test_rsi.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_rsi.c + +..\..\..\..\..\temp\cmd\test_sar.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_sar.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\test_sar.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_sar.c + +..\..\..\..\..\temp\cmd\test_stddev.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_stddev.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\test_stddev.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_stddev.c + +..\..\..\..\..\temp\cmd\test_stoch.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_stoch.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\test_stoch.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_stoch.c + +..\..\..\..\..\temp\cmd\test_trange.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_trange.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\test_trange.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_trange.c + +..\..\..\..\..\temp\cmd\test_util.obj: ..\..\..\..\..\src\tools\ta_regtest\test_util.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\test_util.obj ..\..\..\..\..\src\tools\ta_regtest\test_util.c + +..\..\..\..\..\temp\cmd\test_data.obj: ..\..\..\..\..\src\tools\ta_regtest\test_data.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\test_data.obj ..\..\..\..\..\src\tools\ta_regtest\test_data.c + +..\..\..\..\..\temp\cmd\test_abstract.obj: ..\..\..\..\..\src\tools\ta_regtest\test_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmd\test_abstract.obj ..\..\..\..\..\src\tools\ta_regtest\test_abstract.c + diff --git a/make/cmp/cygwin/g++/Makefile b/make/cmp/cygwin/g++/Makefile new file mode 100644 index 000000000..9558d601a --- /dev/null +++ b/make/cmp/cygwin/g++/Makefile @@ -0,0 +1,36 @@ +############################################################################# +# Makefile for building targets in sub directories. +# Generated by tmake; +# Project: rootmake +# Template: subdirs +############################################################################# + +MAKEFILE= Makefile +TMAKE = tmake + +SUBDIRS = ta_common \ + ta_func \ + ta_abstract \ + ta_libc \ + gen_code \ + ta_regtest + +all: $(SUBDIRS) + +$(SUBDIRS): FORCE + cd $@; $(MAKE) + +tmake: ../cmp/cygwin/g++/Makefile + +../cmp/cygwin/g++/Makefile: rootmake.pro + tmake rootmake.pro -o ../cmp/cygwin/g++/Makefile + +tmake_all: + for i in $(SUBDIRS); do ( if [ -d $$i ]; then cd $$i ; $(MAKE) -f $(MAKEFILE) tmake_all || true; fi; ) ; done + +#### $text = "\t" . 'for i in $(SUBDIRS); do ( if [ -d $$i ]; then cd $$i ; pro=`basename $$i`.pro ; $(TMAKE) $$pro -o $(MAKEFILE); grep "TEMPLATE.*subdirs" $$pro 2>/dev/null >/dev/null && $(MAKE) -f $(MAKEFILE) tmake_all || true; fi; ) ; done'; + +clean release debug: + for i in $(SUBDIRS); do ( if [ -d $$i ]; then cd $$i ; $(MAKE) $@; fi; ) ; done + +FORCE: diff --git a/make/cmp/cygwin/g++/gen_code/Makefile b/make/cmp/cygwin/g++/gen_code/Makefile new file mode 100644 index 000000000..df00266a8 --- /dev/null +++ b/make/cmp/cygwin/g++/gen_code/Makefile @@ -0,0 +1,231 @@ +############################################################################# +# Makefile for building ../../../../../bin/gen_code +# Generated by tmake; +# Project: gen_code/gen_code +# Template: app +############################################################################# + +####### Compiler, tools and options + +CC = gcc +CXX = g++ +CFLAGS = -pipe -Wall -W -g -O -pg -D_REENTRANT -DTA_GEN_CODE -DTA_DEBUG -D_DEBUG -DQT_THREAD_SUPPORT +CXXFLAGS= -pipe -Wall -W -g -D_REENTRANT -DTA_GEN_CODE -DTA_DEBUG -D_DEBUG -DQT_THREAD_SUPPORT +INCPATH = -I../../../../../include -I../../../../../src/ta_common -I../../../../../src/ta_abstract -I../../../../../src/ta_abstract/tables -I../../../../../src/ta_abstract/frames +LINK = g++ +LFLAGS = -pg +LIBS = $(SUBLIBS) ../../../../../lib/libta_common_cmp.a -lpthread +MOC = $(QTDIR)/bin/moc +UIC = $(QTDIR)/bin/uic + +TAR = tar -cf +GZIP = gzip -9f + +####### Support for 64-bit systems +ifeq ($(shell uname -m), x86_64) + CFLAGS += -march=x86-64 -m64 -D__64BIT__ + CXXFLAGS += -march=x86-64 -m64 -D__64BIT__ +endif + +####### Apply additional overruling user flags, if any +CFLAGS += $(CUSERFLAGS) +CXXFLAGS += $(CUSERFLAGS) + +####### Files + +HEADERS = +SOURCES = ../../../../../src/tools/gen_code/gen_code.c \ + ../../../../../src/ta_abstract/ta_abstract.c \ + ../../../../../src/ta_abstract/ta_def_ui.c \ + ../../../../../src/ta_abstract/tables/table_a.c \ + ../../../../../src/ta_abstract/tables/table_b.c \ + ../../../../../src/ta_abstract/tables/table_c.c \ + ../../../../../src/ta_abstract/tables/table_d.c \ + ../../../../../src/ta_abstract/tables/table_e.c \ + ../../../../../src/ta_abstract/tables/table_f.c \ + ../../../../../src/ta_abstract/tables/table_g.c \ + ../../../../../src/ta_abstract/tables/table_h.c \ + ../../../../../src/ta_abstract/tables/table_i.c \ + ../../../../../src/ta_abstract/tables/table_j.c \ + ../../../../../src/ta_abstract/tables/table_k.c \ + ../../../../../src/ta_abstract/tables/table_l.c \ + ../../../../../src/ta_abstract/tables/table_m.c \ + ../../../../../src/ta_abstract/tables/table_n.c \ + ../../../../../src/ta_abstract/tables/table_o.c \ + ../../../../../src/ta_abstract/tables/table_p.c \ + ../../../../../src/ta_abstract/tables/table_q.c \ + ../../../../../src/ta_abstract/tables/table_r.c \ + ../../../../../src/ta_abstract/tables/table_s.c \ + ../../../../../src/ta_abstract/tables/table_t.c \ + ../../../../../src/ta_abstract/tables/table_u.c \ + ../../../../../src/ta_abstract/tables/table_v.c \ + ../../../../../src/ta_abstract/tables/table_w.c \ + ../../../../../src/ta_abstract/tables/table_x.c \ + ../../../../../src/ta_abstract/tables/table_y.c \ + ../../../../../src/ta_abstract/tables/table_z.c +OBJECTS = ../../../../../temp/cmp/gen_code/gen_code.o \ + ../../../../../temp/cmp/gen_code/ta_abstract.o \ + ../../../../../temp/cmp/gen_code/ta_def_ui.o \ + ../../../../../temp/cmp/gen_code/table_a.o \ + ../../../../../temp/cmp/gen_code/table_b.o \ + ../../../../../temp/cmp/gen_code/table_c.o \ + ../../../../../temp/cmp/gen_code/table_d.o \ + ../../../../../temp/cmp/gen_code/table_e.o \ + ../../../../../temp/cmp/gen_code/table_f.o \ + ../../../../../temp/cmp/gen_code/table_g.o \ + ../../../../../temp/cmp/gen_code/table_h.o \ + ../../../../../temp/cmp/gen_code/table_i.o \ + ../../../../../temp/cmp/gen_code/table_j.o \ + ../../../../../temp/cmp/gen_code/table_k.o \ + ../../../../../temp/cmp/gen_code/table_l.o \ + ../../../../../temp/cmp/gen_code/table_m.o \ + ../../../../../temp/cmp/gen_code/table_n.o \ + ../../../../../temp/cmp/gen_code/table_o.o \ + ../../../../../temp/cmp/gen_code/table_p.o \ + ../../../../../temp/cmp/gen_code/table_q.o \ + ../../../../../temp/cmp/gen_code/table_r.o \ + ../../../../../temp/cmp/gen_code/table_s.o \ + ../../../../../temp/cmp/gen_code/table_t.o \ + ../../../../../temp/cmp/gen_code/table_u.o \ + ../../../../../temp/cmp/gen_code/table_v.o \ + ../../../../../temp/cmp/gen_code/table_w.o \ + ../../../../../temp/cmp/gen_code/table_x.o \ + ../../../../../temp/cmp/gen_code/table_y.o \ + ../../../../../temp/cmp/gen_code/table_z.o +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ../../../../../bin/gen_code +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .C .c + +.cpp.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cxx.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cc.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.C.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.c.o: + $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $< + +####### Build rules + + +all: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS) + +moc: $(SRCMOC) + +clean: + -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) + -rm -f *~ core + +####### Sub-libraries + + +###### Combined headers + + +####### Compile + +../../../../../temp/cmp/gen_code/gen_code.o: ../../../../../src/tools/gen_code/gen_code.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/gen_code/gen_code.o ../../../../../src/tools/gen_code/gen_code.c + +../../../../../temp/cmp/gen_code/ta_abstract.o: ../../../../../src/ta_abstract/ta_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/gen_code/ta_abstract.o ../../../../../src/ta_abstract/ta_abstract.c + +../../../../../temp/cmp/gen_code/ta_def_ui.o: ../../../../../src/ta_abstract/ta_def_ui.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/gen_code/ta_def_ui.o ../../../../../src/ta_abstract/ta_def_ui.c + +../../../../../temp/cmp/gen_code/table_a.o: ../../../../../src/ta_abstract/tables/table_a.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/gen_code/table_a.o ../../../../../src/ta_abstract/tables/table_a.c + +../../../../../temp/cmp/gen_code/table_b.o: ../../../../../src/ta_abstract/tables/table_b.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/gen_code/table_b.o ../../../../../src/ta_abstract/tables/table_b.c + +../../../../../temp/cmp/gen_code/table_c.o: ../../../../../src/ta_abstract/tables/table_c.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/gen_code/table_c.o ../../../../../src/ta_abstract/tables/table_c.c + +../../../../../temp/cmp/gen_code/table_d.o: ../../../../../src/ta_abstract/tables/table_d.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/gen_code/table_d.o ../../../../../src/ta_abstract/tables/table_d.c + +../../../../../temp/cmp/gen_code/table_e.o: ../../../../../src/ta_abstract/tables/table_e.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/gen_code/table_e.o ../../../../../src/ta_abstract/tables/table_e.c + +../../../../../temp/cmp/gen_code/table_f.o: ../../../../../src/ta_abstract/tables/table_f.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/gen_code/table_f.o ../../../../../src/ta_abstract/tables/table_f.c + +../../../../../temp/cmp/gen_code/table_g.o: ../../../../../src/ta_abstract/tables/table_g.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/gen_code/table_g.o ../../../../../src/ta_abstract/tables/table_g.c + +../../../../../temp/cmp/gen_code/table_h.o: ../../../../../src/ta_abstract/tables/table_h.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/gen_code/table_h.o ../../../../../src/ta_abstract/tables/table_h.c + +../../../../../temp/cmp/gen_code/table_i.o: ../../../../../src/ta_abstract/tables/table_i.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/gen_code/table_i.o ../../../../../src/ta_abstract/tables/table_i.c + +../../../../../temp/cmp/gen_code/table_j.o: ../../../../../src/ta_abstract/tables/table_j.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/gen_code/table_j.o ../../../../../src/ta_abstract/tables/table_j.c + +../../../../../temp/cmp/gen_code/table_k.o: ../../../../../src/ta_abstract/tables/table_k.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/gen_code/table_k.o ../../../../../src/ta_abstract/tables/table_k.c + +../../../../../temp/cmp/gen_code/table_l.o: ../../../../../src/ta_abstract/tables/table_l.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/gen_code/table_l.o ../../../../../src/ta_abstract/tables/table_l.c + +../../../../../temp/cmp/gen_code/table_m.o: ../../../../../src/ta_abstract/tables/table_m.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/gen_code/table_m.o ../../../../../src/ta_abstract/tables/table_m.c + +../../../../../temp/cmp/gen_code/table_n.o: ../../../../../src/ta_abstract/tables/table_n.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/gen_code/table_n.o ../../../../../src/ta_abstract/tables/table_n.c + +../../../../../temp/cmp/gen_code/table_o.o: ../../../../../src/ta_abstract/tables/table_o.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/gen_code/table_o.o ../../../../../src/ta_abstract/tables/table_o.c + +../../../../../temp/cmp/gen_code/table_p.o: ../../../../../src/ta_abstract/tables/table_p.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/gen_code/table_p.o ../../../../../src/ta_abstract/tables/table_p.c + +../../../../../temp/cmp/gen_code/table_q.o: ../../../../../src/ta_abstract/tables/table_q.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/gen_code/table_q.o ../../../../../src/ta_abstract/tables/table_q.c + +../../../../../temp/cmp/gen_code/table_r.o: ../../../../../src/ta_abstract/tables/table_r.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/gen_code/table_r.o ../../../../../src/ta_abstract/tables/table_r.c + +../../../../../temp/cmp/gen_code/table_s.o: ../../../../../src/ta_abstract/tables/table_s.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/gen_code/table_s.o ../../../../../src/ta_abstract/tables/table_s.c + +../../../../../temp/cmp/gen_code/table_t.o: ../../../../../src/ta_abstract/tables/table_t.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/gen_code/table_t.o ../../../../../src/ta_abstract/tables/table_t.c + +../../../../../temp/cmp/gen_code/table_u.o: ../../../../../src/ta_abstract/tables/table_u.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/gen_code/table_u.o ../../../../../src/ta_abstract/tables/table_u.c + +../../../../../temp/cmp/gen_code/table_v.o: ../../../../../src/ta_abstract/tables/table_v.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/gen_code/table_v.o ../../../../../src/ta_abstract/tables/table_v.c + +../../../../../temp/cmp/gen_code/table_w.o: ../../../../../src/ta_abstract/tables/table_w.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/gen_code/table_w.o ../../../../../src/ta_abstract/tables/table_w.c + +../../../../../temp/cmp/gen_code/table_x.o: ../../../../../src/ta_abstract/tables/table_x.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/gen_code/table_x.o ../../../../../src/ta_abstract/tables/table_x.c + +../../../../../temp/cmp/gen_code/table_y.o: ../../../../../src/ta_abstract/tables/table_y.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/gen_code/table_y.o ../../../../../src/ta_abstract/tables/table_y.c + +../../../../../temp/cmp/gen_code/table_z.o: ../../../../../src/ta_abstract/tables/table_z.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/gen_code/table_z.o ../../../../../src/ta_abstract/tables/table_z.c + diff --git a/make/cmp/cygwin/g++/ta_abstract/Makefile b/make/cmp/cygwin/g++/ta_abstract/Makefile new file mode 100644 index 000000000..356d78c42 --- /dev/null +++ b/make/cmp/cygwin/g++/ta_abstract/Makefile @@ -0,0 +1,243 @@ +############################################################################# +# Makefile for building ../../../../../lib/libta_abstract_cmp.a +# Generated by tmake; +# Project: ta_abstract/ta_abstract +# Template: lib +############################################################################# + +####### Compiler, tools and options + +CC = gcc +CXX = g++ +CFLAGS = -pipe -Wall -W -g -O -pg -D_REENTRANT -DTA_DEBUG -D_DEBUG -DQT_THREAD_SUPPORT +CXXFLAGS= -pipe -Wall -W -g -D_REENTRANT -DTA_DEBUG -D_DEBUG -DQT_THREAD_SUPPORT +INCPATH = -I../../../../../src/ta_common -I../../../../../src/ta_abstract -I../../../../../src/ta_abstract/tables -I../../../../../src/ta_abstract/frames -I../../../../../include +AR = ar cqs +RANLIB = +MOC = $(QTDIR)/bin/moc +UIC = $(QTDIR)/bin/uic + +TAR = tar -cf +GZIP = gzip -9f + +####### Support for 64-bit systems +ifeq ($(shell uname -m), x86_64) + CFLAGS += -march=x86-64 -m64 -D__64BIT__ + CXXFLAGS += -march=x86-64 -m64 -D__64BIT__ +endif + +####### Apply additional overruling user flags, if any +CFLAGS += $(CUSERFLAGS) +CXXFLAGS += $(CUSERFLAGS) + +####### Files + +HEADERS = +SOURCES = ../../../../../src/ta_abstract/ta_abstract.c \ + ../../../../../src/ta_abstract/ta_def_ui.c \ + ../../../../../src/ta_abstract/ta_func_api.c \ + ../../../../../src/ta_abstract/ta_group_idx.c \ + ../../../../../src/ta_abstract/frames/ta_frame.c \ + ../../../../../src/ta_abstract/tables/table_a.c \ + ../../../../../src/ta_abstract/tables/table_b.c \ + ../../../../../src/ta_abstract/tables/table_c.c \ + ../../../../../src/ta_abstract/tables/table_d.c \ + ../../../../../src/ta_abstract/tables/table_e.c \ + ../../../../../src/ta_abstract/tables/table_f.c \ + ../../../../../src/ta_abstract/tables/table_g.c \ + ../../../../../src/ta_abstract/tables/table_h.c \ + ../../../../../src/ta_abstract/tables/table_i.c \ + ../../../../../src/ta_abstract/tables/table_j.c \ + ../../../../../src/ta_abstract/tables/table_k.c \ + ../../../../../src/ta_abstract/tables/table_l.c \ + ../../../../../src/ta_abstract/tables/table_m.c \ + ../../../../../src/ta_abstract/tables/table_n.c \ + ../../../../../src/ta_abstract/tables/table_o.c \ + ../../../../../src/ta_abstract/tables/table_p.c \ + ../../../../../src/ta_abstract/tables/table_q.c \ + ../../../../../src/ta_abstract/tables/table_r.c \ + ../../../../../src/ta_abstract/tables/table_s.c \ + ../../../../../src/ta_abstract/tables/table_t.c \ + ../../../../../src/ta_abstract/tables/table_u.c \ + ../../../../../src/ta_abstract/tables/table_v.c \ + ../../../../../src/ta_abstract/tables/table_w.c \ + ../../../../../src/ta_abstract/tables/table_x.c \ + ../../../../../src/ta_abstract/tables/table_y.c \ + ../../../../../src/ta_abstract/tables/table_z.c +OBJECTS = ../../../../../temp/cmp/ta_abstract.o \ + ../../../../../temp/cmp/ta_def_ui.o \ + ../../../../../temp/cmp/ta_func_api.o \ + ../../../../../temp/cmp/ta_group_idx.o \ + ../../../../../temp/cmp/ta_frame.o \ + ../../../../../temp/cmp/table_a.o \ + ../../../../../temp/cmp/table_b.o \ + ../../../../../temp/cmp/table_c.o \ + ../../../../../temp/cmp/table_d.o \ + ../../../../../temp/cmp/table_e.o \ + ../../../../../temp/cmp/table_f.o \ + ../../../../../temp/cmp/table_g.o \ + ../../../../../temp/cmp/table_h.o \ + ../../../../../temp/cmp/table_i.o \ + ../../../../../temp/cmp/table_j.o \ + ../../../../../temp/cmp/table_k.o \ + ../../../../../temp/cmp/table_l.o \ + ../../../../../temp/cmp/table_m.o \ + ../../../../../temp/cmp/table_n.o \ + ../../../../../temp/cmp/table_o.o \ + ../../../../../temp/cmp/table_p.o \ + ../../../../../temp/cmp/table_q.o \ + ../../../../../temp/cmp/table_r.o \ + ../../../../../temp/cmp/table_s.o \ + ../../../../../temp/cmp/table_t.o \ + ../../../../../temp/cmp/table_u.o \ + ../../../../../temp/cmp/table_v.o \ + ../../../../../temp/cmp/table_w.o \ + ../../../../../temp/cmp/table_x.o \ + ../../../../../temp/cmp/table_y.o \ + ../../../../../temp/cmp/table_z.o +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ../../../../../lib/libta_abstract_cmp.a +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .C .c + +.cpp.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cxx.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cc.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.C.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.c.o: + $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $< + +####### Build rules + + +all: $(TARGET) + +staticlib: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + -rm -f $(TARGET) + $(AR) $(TARGET) $(OBJECTS) $(OBJMOC) + +moc: $(SRCMOC) + +clean: + -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) + -rm -f *~ core + +####### Sub-libraries + + +###### Combined headers + + +####### Compile + +../../../../../temp/cmp/ta_abstract.o: ../../../../../src/ta_abstract/ta_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_abstract.o ../../../../../src/ta_abstract/ta_abstract.c + +../../../../../temp/cmp/ta_def_ui.o: ../../../../../src/ta_abstract/ta_def_ui.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_def_ui.o ../../../../../src/ta_abstract/ta_def_ui.c + +../../../../../temp/cmp/ta_func_api.o: ../../../../../src/ta_abstract/ta_func_api.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_func_api.o ../../../../../src/ta_abstract/ta_func_api.c + +../../../../../temp/cmp/ta_group_idx.o: ../../../../../src/ta_abstract/ta_group_idx.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_group_idx.o ../../../../../src/ta_abstract/ta_group_idx.c + +../../../../../temp/cmp/ta_frame.o: ../../../../../src/ta_abstract/frames/ta_frame.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_frame.o ../../../../../src/ta_abstract/frames/ta_frame.c + +../../../../../temp/cmp/table_a.o: ../../../../../src/ta_abstract/tables/table_a.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_a.o ../../../../../src/ta_abstract/tables/table_a.c + +../../../../../temp/cmp/table_b.o: ../../../../../src/ta_abstract/tables/table_b.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_b.o ../../../../../src/ta_abstract/tables/table_b.c + +../../../../../temp/cmp/table_c.o: ../../../../../src/ta_abstract/tables/table_c.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_c.o ../../../../../src/ta_abstract/tables/table_c.c + +../../../../../temp/cmp/table_d.o: ../../../../../src/ta_abstract/tables/table_d.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_d.o ../../../../../src/ta_abstract/tables/table_d.c + +../../../../../temp/cmp/table_e.o: ../../../../../src/ta_abstract/tables/table_e.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_e.o ../../../../../src/ta_abstract/tables/table_e.c + +../../../../../temp/cmp/table_f.o: ../../../../../src/ta_abstract/tables/table_f.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_f.o ../../../../../src/ta_abstract/tables/table_f.c + +../../../../../temp/cmp/table_g.o: ../../../../../src/ta_abstract/tables/table_g.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_g.o ../../../../../src/ta_abstract/tables/table_g.c + +../../../../../temp/cmp/table_h.o: ../../../../../src/ta_abstract/tables/table_h.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_h.o ../../../../../src/ta_abstract/tables/table_h.c + +../../../../../temp/cmp/table_i.o: ../../../../../src/ta_abstract/tables/table_i.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_i.o ../../../../../src/ta_abstract/tables/table_i.c + +../../../../../temp/cmp/table_j.o: ../../../../../src/ta_abstract/tables/table_j.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_j.o ../../../../../src/ta_abstract/tables/table_j.c + +../../../../../temp/cmp/table_k.o: ../../../../../src/ta_abstract/tables/table_k.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_k.o ../../../../../src/ta_abstract/tables/table_k.c + +../../../../../temp/cmp/table_l.o: ../../../../../src/ta_abstract/tables/table_l.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_l.o ../../../../../src/ta_abstract/tables/table_l.c + +../../../../../temp/cmp/table_m.o: ../../../../../src/ta_abstract/tables/table_m.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_m.o ../../../../../src/ta_abstract/tables/table_m.c + +../../../../../temp/cmp/table_n.o: ../../../../../src/ta_abstract/tables/table_n.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_n.o ../../../../../src/ta_abstract/tables/table_n.c + +../../../../../temp/cmp/table_o.o: ../../../../../src/ta_abstract/tables/table_o.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_o.o ../../../../../src/ta_abstract/tables/table_o.c + +../../../../../temp/cmp/table_p.o: ../../../../../src/ta_abstract/tables/table_p.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_p.o ../../../../../src/ta_abstract/tables/table_p.c + +../../../../../temp/cmp/table_q.o: ../../../../../src/ta_abstract/tables/table_q.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_q.o ../../../../../src/ta_abstract/tables/table_q.c + +../../../../../temp/cmp/table_r.o: ../../../../../src/ta_abstract/tables/table_r.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_r.o ../../../../../src/ta_abstract/tables/table_r.c + +../../../../../temp/cmp/table_s.o: ../../../../../src/ta_abstract/tables/table_s.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_s.o ../../../../../src/ta_abstract/tables/table_s.c + +../../../../../temp/cmp/table_t.o: ../../../../../src/ta_abstract/tables/table_t.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_t.o ../../../../../src/ta_abstract/tables/table_t.c + +../../../../../temp/cmp/table_u.o: ../../../../../src/ta_abstract/tables/table_u.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_u.o ../../../../../src/ta_abstract/tables/table_u.c + +../../../../../temp/cmp/table_v.o: ../../../../../src/ta_abstract/tables/table_v.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_v.o ../../../../../src/ta_abstract/tables/table_v.c + +../../../../../temp/cmp/table_w.o: ../../../../../src/ta_abstract/tables/table_w.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_w.o ../../../../../src/ta_abstract/tables/table_w.c + +../../../../../temp/cmp/table_x.o: ../../../../../src/ta_abstract/tables/table_x.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_x.o ../../../../../src/ta_abstract/tables/table_x.c + +../../../../../temp/cmp/table_y.o: ../../../../../src/ta_abstract/tables/table_y.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_y.o ../../../../../src/ta_abstract/tables/table_y.c + +../../../../../temp/cmp/table_z.o: ../../../../../src/ta_abstract/tables/table_z.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_z.o ../../../../../src/ta_abstract/tables/table_z.c + diff --git a/make/cmp/cygwin/g++/ta_common/Makefile b/make/cmp/cygwin/g++/ta_common/Makefile new file mode 100644 index 000000000..88cb61731 --- /dev/null +++ b/make/cmp/cygwin/g++/ta_common/Makefile @@ -0,0 +1,103 @@ +############################################################################# +# Makefile for building ../../../../../lib/libta_common_cmp.a +# Generated by tmake; +# Project: ta_common/ta_common +# Template: lib +############################################################################# + +####### Compiler, tools and options + +CC = gcc +CXX = g++ +CFLAGS = -pipe -Wall -W -g -O -pg -D_REENTRANT -DTA_DEBUG -D_DEBUG -DQT_THREAD_SUPPORT +CXXFLAGS= -pipe -Wall -W -g -D_REENTRANT -DTA_DEBUG -D_DEBUG -DQT_THREAD_SUPPORT +INCPATH = -I../../../../../src/ta_common -I../../../../../include +AR = ar cqs +RANLIB = +MOC = $(QTDIR)/bin/moc +UIC = $(QTDIR)/bin/uic + +TAR = tar -cf +GZIP = gzip -9f + +####### Support for 64-bit systems +ifeq ($(shell uname -m), x86_64) + CFLAGS += -march=x86-64 -m64 -D__64BIT__ + CXXFLAGS += -march=x86-64 -m64 -D__64BIT__ +endif + +####### Apply additional overruling user flags, if any +CFLAGS += $(CUSERFLAGS) +CXXFLAGS += $(CUSERFLAGS) + +####### Files + +HEADERS = +SOURCES = ../../../../../src/ta_common/ta_global.c \ + ../../../../../src/ta_common/ta_retcode.c \ + ../../../../../src/ta_common/ta_version.c +OBJECTS = ../../../../../temp/cmp/ta_global.o \ + ../../../../../temp/cmp/ta_retcode.o \ + ../../../../../temp/cmp/ta_version.o +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ../../../../../lib/libta_common_cmp.a +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .C .c + +.cpp.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cxx.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cc.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.C.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.c.o: + $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $< + +####### Build rules + + +all: $(TARGET) + +staticlib: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + -rm -f $(TARGET) + $(AR) $(TARGET) $(OBJECTS) $(OBJMOC) + +moc: $(SRCMOC) + +clean: + -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) + -rm -f *~ core + +####### Sub-libraries + + +###### Combined headers + + +####### Compile + +../../../../../temp/cmp/ta_global.o: ../../../../../src/ta_common/ta_global.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_global.o ../../../../../src/ta_common/ta_global.c + +../../../../../temp/cmp/ta_retcode.o: ../../../../../src/ta_common/ta_retcode.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_retcode.o ../../../../../src/ta_common/ta_retcode.c + +../../../../../temp/cmp/ta_version.o: ../../../../../src/ta_common/ta_version.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_version.o ../../../../../src/ta_common/ta_version.c + diff --git a/make/cmp/cygwin/g++/ta_func/Makefile b/make/cmp/cygwin/g++/ta_func/Makefile new file mode 100644 index 000000000..ab8bb19b7 --- /dev/null +++ b/make/cmp/cygwin/g++/ta_func/Makefile @@ -0,0 +1,883 @@ +############################################################################# +# Makefile for building ../../../../../lib/libta_func_cmp.a +# Generated by tmake; +# Project: ta_func/ta_func +# Template: lib +############################################################################# + +####### Compiler, tools and options + +CC = gcc +CXX = g++ +CFLAGS = -pipe -Wall -W -g -O -pg -D_REENTRANT -DTA_DEBUG -D_DEBUG -DQT_THREAD_SUPPORT +CXXFLAGS= -pipe -Wall -W -g -D_REENTRANT -DTA_DEBUG -D_DEBUG -DQT_THREAD_SUPPORT +INCPATH = -I../../../../../src/ta_common -I/n -I../../../../../include +AR = ar cqs +RANLIB = +MOC = $(QTDIR)/bin/moc +UIC = $(QTDIR)/bin/uic + +TAR = tar -cf +GZIP = gzip -9f + +####### Support for 64-bit systems +ifeq ($(shell uname -m), x86_64) + CFLAGS += -march=x86-64 -m64 -D__64BIT__ + CXXFLAGS += -march=x86-64 -m64 -D__64BIT__ +endif + +####### Apply additional overruling user flags, if any +CFLAGS += $(CUSERFLAGS) +CXXFLAGS += $(CUSERFLAGS) + +####### Files + +HEADERS = +SOURCES = ../../../../../src/ta_func/ta_utility.c \ + ../../../../../src/ta_func/ta_ACOS.c \ + ../../../../../src/ta_func/ta_AD.c \ + ../../../../../src/ta_func/ta_ADD.c \ + ../../../../../src/ta_func/ta_ADOSC.c \ + ../../../../../src/ta_func/ta_ADX.c \ + ../../../../../src/ta_func/ta_ADXR.c \ + ../../../../../src/ta_func/ta_APO.c \ + ../../../../../src/ta_func/ta_AROON.c \ + ../../../../../src/ta_func/ta_AROONOSC.c \ + ../../../../../src/ta_func/ta_ASIN.c \ + ../../../../../src/ta_func/ta_ATAN.c \ + ../../../../../src/ta_func/ta_ATR.c \ + ../../../../../src/ta_func/ta_AVGPRICE.c \ + ../../../../../src/ta_func/ta_BBANDS.c \ + ../../../../../src/ta_func/ta_BETA.c \ + ../../../../../src/ta_func/ta_BOP.c \ + ../../../../../src/ta_func/ta_CCI.c \ + ../../../../../src/ta_func/ta_CDL2CROWS.c \ + ../../../../../src/ta_func/ta_CDL3BLACKCROWS.c \ + ../../../../../src/ta_func/ta_CDL3INSIDE.c \ + ../../../../../src/ta_func/ta_CDL3LINESTRIKE.c \ + ../../../../../src/ta_func/ta_CDL3OUTSIDE.c \ + ../../../../../src/ta_func/ta_CDL3STARSINSOUTH.c \ + ../../../../../src/ta_func/ta_CDL3WHITESOLDIERS.c \ + ../../../../../src/ta_func/ta_CDLABANDONEDBABY.c \ + ../../../../../src/ta_func/ta_CDLADVANCEBLOCK.c \ + ../../../../../src/ta_func/ta_CDLBELTHOLD.c \ + ../../../../../src/ta_func/ta_CDLBREAKAWAY.c \ + ../../../../../src/ta_func/ta_CDLCLOSINGMARUBOZU.c \ + ../../../../../src/ta_func/ta_CDLCONCEALBABYSWALL.c \ + ../../../../../src/ta_func/ta_CDLCOUNTERATTACK.c \ + ../../../../../src/ta_func/ta_CDLDARKCLOUDCOVER.c \ + ../../../../../src/ta_func/ta_CDLDOJI.c \ + ../../../../../src/ta_func/ta_CDLDOJISTAR.c \ + ../../../../../src/ta_func/ta_CDLDRAGONFLYDOJI.c \ + ../../../../../src/ta_func/ta_CDLENGULFING.c \ + ../../../../../src/ta_func/ta_CDLEVENINGDOJISTAR.c \ + ../../../../../src/ta_func/ta_CDLEVENINGSTAR.c \ + ../../../../../src/ta_func/ta_CDLGAPSIDESIDEWHITE.c \ + ../../../../../src/ta_func/ta_CDLGRAVESTONEDOJI.c \ + ../../../../../src/ta_func/ta_CDLHAMMER.c \ + ../../../../../src/ta_func/ta_CDLHANGINGMAN.c \ + ../../../../../src/ta_func/ta_CDLHARAMI.c \ + ../../../../../src/ta_func/ta_CDLHARAMICROSS.c \ + ../../../../../src/ta_func/ta_CDLHIGHWAVE.c \ + ../../../../../src/ta_func/ta_CDLHIKKAKE.c \ + ../../../../../src/ta_func/ta_CDLHIKKAKEMOD.c \ + ../../../../../src/ta_func/ta_CDLHOMINGPIGEON.c \ + ../../../../../src/ta_func/ta_CDLIDENTICAL3CROWS.c \ + ../../../../../src/ta_func/ta_CDLINNECK.c \ + ../../../../../src/ta_func/ta_CDLINVERTEDHAMMER.c \ + ../../../../../src/ta_func/ta_CDLKICKING.c \ + ../../../../../src/ta_func/ta_CDLKICKINGBYLENGTH.c \ + ../../../../../src/ta_func/ta_CDLLADDERBOTTOM.c \ + ../../../../../src/ta_func/ta_CDLLONGLEGGEDDOJI.c \ + ../../../../../src/ta_func/ta_CDLLONGLINE.c \ + ../../../../../src/ta_func/ta_CDLMARUBOZU.c \ + ../../../../../src/ta_func/ta_CDLMATCHINGLOW.c \ + ../../../../../src/ta_func/ta_CDLMATHOLD.c \ + ../../../../../src/ta_func/ta_CDLMORNINGDOJISTAR.c \ + ../../../../../src/ta_func/ta_CDLMORNINGSTAR.c \ + ../../../../../src/ta_func/ta_CDLONNECK.c \ + ../../../../../src/ta_func/ta_CDLPIERCING.c \ + ../../../../../src/ta_func/ta_CDLRICKSHAWMAN.c \ + ../../../../../src/ta_func/ta_CDLRISEFALL3METHODS.c \ + ../../../../../src/ta_func/ta_CDLSEPARATINGLINES.c \ + ../../../../../src/ta_func/ta_CDLSHOOTINGSTAR.c \ + ../../../../../src/ta_func/ta_CDLSHORTLINE.c \ + ../../../../../src/ta_func/ta_CDLSPINNINGTOP.c \ + ../../../../../src/ta_func/ta_CDLSTALLEDPATTERN.c \ + ../../../../../src/ta_func/ta_CDLSTICKSANDWICH.c \ + ../../../../../src/ta_func/ta_CDLTAKURI.c \ + ../../../../../src/ta_func/ta_CDLTASUKIGAP.c \ + ../../../../../src/ta_func/ta_CDLTHRUSTING.c \ + ../../../../../src/ta_func/ta_CDLTRISTAR.c \ + ../../../../../src/ta_func/ta_CDLUNIQUE3RIVER.c \ + ../../../../../src/ta_func/ta_CDLUPSIDEGAP2CROWS.c \ + ../../../../../src/ta_func/ta_CDLXSIDEGAP3METHODS.c \ + ../../../../../src/ta_func/ta_CEIL.c \ + ../../../../../src/ta_func/ta_CMO.c \ + ../../../../../src/ta_func/ta_CORREL.c \ + ../../../../../src/ta_func/ta_COS.c \ + ../../../../../src/ta_func/ta_COSH.c \ + ../../../../../src/ta_func/ta_DEMA.c \ + ../../../../../src/ta_func/ta_DIV.c \ + ../../../../../src/ta_func/ta_DX.c \ + ../../../../../src/ta_func/ta_EMA.c \ + ../../../../../src/ta_func/ta_EXP.c \ + ../../../../../src/ta_func/ta_FLOOR.c \ + ../../../../../src/ta_func/ta_HT_DCPERIOD.c \ + ../../../../../src/ta_func/ta_HT_DCPHASE.c \ + ../../../../../src/ta_func/ta_HT_PHASOR.c \ + ../../../../../src/ta_func/ta_HT_SINE.c \ + ../../../../../src/ta_func/ta_HT_TRENDLINE.c \ + ../../../../../src/ta_func/ta_HT_TRENDMODE.c \ + ../../../../../src/ta_func/ta_KAMA.c \ + ../../../../../src/ta_func/ta_LINEARREG.c \ + ../../../../../src/ta_func/ta_LINEARREG_ANGLE.c \ + ../../../../../src/ta_func/ta_LINEARREG_INTERCEPT.c \ + ../../../../../src/ta_func/ta_LINEARREG_SLOPE.c \ + ../../../../../src/ta_func/ta_LN.c \ + ../../../../../src/ta_func/ta_LOG10.c \ + ../../../../../src/ta_func/ta_MA.c \ + ../../../../../src/ta_func/ta_MACD.c \ + ../../../../../src/ta_func/ta_MACDEXT.c \ + ../../../../../src/ta_func/ta_MACDFIX.c \ + ../../../../../src/ta_func/ta_MAMA.c \ + ../../../../../src/ta_func/ta_MAVP.c \ + ../../../../../src/ta_func/ta_MAX.c \ + ../../../../../src/ta_func/ta_MAXINDEX.c \ + ../../../../../src/ta_func/ta_MEDPRICE.c \ + ../../../../../src/ta_func/ta_MFI.c \ + ../../../../../src/ta_func/ta_MIDPOINT.c \ + ../../../../../src/ta_func/ta_MIDPRICE.c \ + ../../../../../src/ta_func/ta_MIN.c \ + ../../../../../src/ta_func/ta_MININDEX.c \ + ../../../../../src/ta_func/ta_MINMAX.c \ + ../../../../../src/ta_func/ta_MINMAXINDEX.c \ + ../../../../../src/ta_func/ta_MINUS_DI.c \ + ../../../../../src/ta_func/ta_MINUS_DM.c \ + ../../../../../src/ta_func/ta_MOM.c \ + ../../../../../src/ta_func/ta_MULT.c \ + ../../../../../src/ta_func/ta_NATR.c \ + ../../../../../src/ta_func/ta_OBV.c \ + ../../../../../src/ta_func/ta_PLUS_DI.c \ + ../../../../../src/ta_func/ta_PLUS_DM.c \ + ../../../../../src/ta_func/ta_PPO.c \ + ../../../../../src/ta_func/ta_ROC.c \ + ../../../../../src/ta_func/ta_ROCP.c \ + ../../../../../src/ta_func/ta_ROCR.c \ + ../../../../../src/ta_func/ta_ROCR100.c \ + ../../../../../src/ta_func/ta_RSI.c \ + ../../../../../src/ta_func/ta_SAR.c \ + ../../../../../src/ta_func/ta_SAREXT.c \ + ../../../../../src/ta_func/ta_SIN.c \ + ../../../../../src/ta_func/ta_SINH.c \ + ../../../../../src/ta_func/ta_SMA.c \ + ../../../../../src/ta_func/ta_SQRT.c \ + ../../../../../src/ta_func/ta_STDDEV.c \ + ../../../../../src/ta_func/ta_STOCH.c \ + ../../../../../src/ta_func/ta_STOCHF.c \ + ../../../../../src/ta_func/ta_STOCHRSI.c \ + ../../../../../src/ta_func/ta_SUB.c \ + ../../../../../src/ta_func/ta_SUM.c \ + ../../../../../src/ta_func/ta_T3.c \ + ../../../../../src/ta_func/ta_TAN.c \ + ../../../../../src/ta_func/ta_TANH.c \ + ../../../../../src/ta_func/ta_TEMA.c \ + ../../../../../src/ta_func/ta_TRANGE.c \ + ../../../../../src/ta_func/ta_TRIMA.c \ + ../../../../../src/ta_func/ta_TRIX.c \ + ../../../../../src/ta_func/ta_TSF.c \ + ../../../../../src/ta_func/ta_TYPPRICE.c \ + ../../../../../src/ta_func/ta_ULTOSC.c \ + ../../../../../src/ta_func/ta_VAR.c \ + ../../../../../src/ta_func/ta_WCLPRICE.c \ + ../../../../../src/ta_func/ta_WILLR.c \ + ../../../../../src/ta_func/ta_WMA.c +OBJECTS = ../../../../../temp/cmp/ta_utility.o \ + ../../../../../temp/cmp/ta_ACOS.o \ + ../../../../../temp/cmp/ta_AD.o \ + ../../../../../temp/cmp/ta_ADD.o \ + ../../../../../temp/cmp/ta_ADOSC.o \ + ../../../../../temp/cmp/ta_ADX.o \ + ../../../../../temp/cmp/ta_ADXR.o \ + ../../../../../temp/cmp/ta_APO.o \ + ../../../../../temp/cmp/ta_AROON.o \ + ../../../../../temp/cmp/ta_AROONOSC.o \ + ../../../../../temp/cmp/ta_ASIN.o \ + ../../../../../temp/cmp/ta_ATAN.o \ + ../../../../../temp/cmp/ta_ATR.o \ + ../../../../../temp/cmp/ta_AVGPRICE.o \ + ../../../../../temp/cmp/ta_BBANDS.o \ + ../../../../../temp/cmp/ta_BETA.o \ + ../../../../../temp/cmp/ta_BOP.o \ + ../../../../../temp/cmp/ta_CCI.o \ + ../../../../../temp/cmp/ta_CDL2CROWS.o \ + ../../../../../temp/cmp/ta_CDL3BLACKCROWS.o \ + ../../../../../temp/cmp/ta_CDL3INSIDE.o \ + ../../../../../temp/cmp/ta_CDL3LINESTRIKE.o \ + ../../../../../temp/cmp/ta_CDL3OUTSIDE.o \ + ../../../../../temp/cmp/ta_CDL3STARSINSOUTH.o \ + ../../../../../temp/cmp/ta_CDL3WHITESOLDIERS.o \ + ../../../../../temp/cmp/ta_CDLABANDONEDBABY.o \ + ../../../../../temp/cmp/ta_CDLADVANCEBLOCK.o \ + ../../../../../temp/cmp/ta_CDLBELTHOLD.o \ + ../../../../../temp/cmp/ta_CDLBREAKAWAY.o \ + ../../../../../temp/cmp/ta_CDLCLOSINGMARUBOZU.o \ + ../../../../../temp/cmp/ta_CDLCONCEALBABYSWALL.o \ + ../../../../../temp/cmp/ta_CDLCOUNTERATTACK.o \ + ../../../../../temp/cmp/ta_CDLDARKCLOUDCOVER.o \ + ../../../../../temp/cmp/ta_CDLDOJI.o \ + ../../../../../temp/cmp/ta_CDLDOJISTAR.o \ + ../../../../../temp/cmp/ta_CDLDRAGONFLYDOJI.o \ + ../../../../../temp/cmp/ta_CDLENGULFING.o \ + ../../../../../temp/cmp/ta_CDLEVENINGDOJISTAR.o \ + ../../../../../temp/cmp/ta_CDLEVENINGSTAR.o \ + ../../../../../temp/cmp/ta_CDLGAPSIDESIDEWHITE.o \ + ../../../../../temp/cmp/ta_CDLGRAVESTONEDOJI.o \ + ../../../../../temp/cmp/ta_CDLHAMMER.o \ + ../../../../../temp/cmp/ta_CDLHANGINGMAN.o \ + ../../../../../temp/cmp/ta_CDLHARAMI.o \ + ../../../../../temp/cmp/ta_CDLHARAMICROSS.o \ + ../../../../../temp/cmp/ta_CDLHIGHWAVE.o \ + ../../../../../temp/cmp/ta_CDLHIKKAKE.o \ + ../../../../../temp/cmp/ta_CDLHIKKAKEMOD.o \ + ../../../../../temp/cmp/ta_CDLHOMINGPIGEON.o \ + ../../../../../temp/cmp/ta_CDLIDENTICAL3CROWS.o \ + ../../../../../temp/cmp/ta_CDLINNECK.o \ + ../../../../../temp/cmp/ta_CDLINVERTEDHAMMER.o \ + ../../../../../temp/cmp/ta_CDLKICKING.o \ + ../../../../../temp/cmp/ta_CDLKICKINGBYLENGTH.o \ + ../../../../../temp/cmp/ta_CDLLADDERBOTTOM.o \ + ../../../../../temp/cmp/ta_CDLLONGLEGGEDDOJI.o \ + ../../../../../temp/cmp/ta_CDLLONGLINE.o \ + ../../../../../temp/cmp/ta_CDLMARUBOZU.o \ + ../../../../../temp/cmp/ta_CDLMATCHINGLOW.o \ + ../../../../../temp/cmp/ta_CDLMATHOLD.o \ + ../../../../../temp/cmp/ta_CDLMORNINGDOJISTAR.o \ + ../../../../../temp/cmp/ta_CDLMORNINGSTAR.o \ + ../../../../../temp/cmp/ta_CDLONNECK.o \ + ../../../../../temp/cmp/ta_CDLPIERCING.o \ + ../../../../../temp/cmp/ta_CDLRICKSHAWMAN.o \ + ../../../../../temp/cmp/ta_CDLRISEFALL3METHODS.o \ + ../../../../../temp/cmp/ta_CDLSEPARATINGLINES.o \ + ../../../../../temp/cmp/ta_CDLSHOOTINGSTAR.o \ + ../../../../../temp/cmp/ta_CDLSHORTLINE.o \ + ../../../../../temp/cmp/ta_CDLSPINNINGTOP.o \ + ../../../../../temp/cmp/ta_CDLSTALLEDPATTERN.o \ + ../../../../../temp/cmp/ta_CDLSTICKSANDWICH.o \ + ../../../../../temp/cmp/ta_CDLTAKURI.o \ + ../../../../../temp/cmp/ta_CDLTASUKIGAP.o \ + ../../../../../temp/cmp/ta_CDLTHRUSTING.o \ + ../../../../../temp/cmp/ta_CDLTRISTAR.o \ + ../../../../../temp/cmp/ta_CDLUNIQUE3RIVER.o \ + ../../../../../temp/cmp/ta_CDLUPSIDEGAP2CROWS.o \ + ../../../../../temp/cmp/ta_CDLXSIDEGAP3METHODS.o \ + ../../../../../temp/cmp/ta_CEIL.o \ + ../../../../../temp/cmp/ta_CMO.o \ + ../../../../../temp/cmp/ta_CORREL.o \ + ../../../../../temp/cmp/ta_COS.o \ + ../../../../../temp/cmp/ta_COSH.o \ + ../../../../../temp/cmp/ta_DEMA.o \ + ../../../../../temp/cmp/ta_DIV.o \ + ../../../../../temp/cmp/ta_DX.o \ + ../../../../../temp/cmp/ta_EMA.o \ + ../../../../../temp/cmp/ta_EXP.o \ + ../../../../../temp/cmp/ta_FLOOR.o \ + ../../../../../temp/cmp/ta_HT_DCPERIOD.o \ + ../../../../../temp/cmp/ta_HT_DCPHASE.o \ + ../../../../../temp/cmp/ta_HT_PHASOR.o \ + ../../../../../temp/cmp/ta_HT_SINE.o \ + ../../../../../temp/cmp/ta_HT_TRENDLINE.o \ + ../../../../../temp/cmp/ta_HT_TRENDMODE.o \ + ../../../../../temp/cmp/ta_KAMA.o \ + ../../../../../temp/cmp/ta_LINEARREG.o \ + ../../../../../temp/cmp/ta_LINEARREG_ANGLE.o \ + ../../../../../temp/cmp/ta_LINEARREG_INTERCEPT.o \ + ../../../../../temp/cmp/ta_LINEARREG_SLOPE.o \ + ../../../../../temp/cmp/ta_LN.o \ + ../../../../../temp/cmp/ta_LOG10.o \ + ../../../../../temp/cmp/ta_MA.o \ + ../../../../../temp/cmp/ta_MACD.o \ + ../../../../../temp/cmp/ta_MACDEXT.o \ + ../../../../../temp/cmp/ta_MACDFIX.o \ + ../../../../../temp/cmp/ta_MAMA.o \ + ../../../../../temp/cmp/ta_MAVP.o \ + ../../../../../temp/cmp/ta_MAX.o \ + ../../../../../temp/cmp/ta_MAXINDEX.o \ + ../../../../../temp/cmp/ta_MEDPRICE.o \ + ../../../../../temp/cmp/ta_MFI.o \ + ../../../../../temp/cmp/ta_MIDPOINT.o \ + ../../../../../temp/cmp/ta_MIDPRICE.o \ + ../../../../../temp/cmp/ta_MIN.o \ + ../../../../../temp/cmp/ta_MININDEX.o \ + ../../../../../temp/cmp/ta_MINMAX.o \ + ../../../../../temp/cmp/ta_MINMAXINDEX.o \ + ../../../../../temp/cmp/ta_MINUS_DI.o \ + ../../../../../temp/cmp/ta_MINUS_DM.o \ + ../../../../../temp/cmp/ta_MOM.o \ + ../../../../../temp/cmp/ta_MULT.o \ + ../../../../../temp/cmp/ta_NATR.o \ + ../../../../../temp/cmp/ta_OBV.o \ + ../../../../../temp/cmp/ta_PLUS_DI.o \ + ../../../../../temp/cmp/ta_PLUS_DM.o \ + ../../../../../temp/cmp/ta_PPO.o \ + ../../../../../temp/cmp/ta_ROC.o \ + ../../../../../temp/cmp/ta_ROCP.o \ + ../../../../../temp/cmp/ta_ROCR.o \ + ../../../../../temp/cmp/ta_ROCR100.o \ + ../../../../../temp/cmp/ta_RSI.o \ + ../../../../../temp/cmp/ta_SAR.o \ + ../../../../../temp/cmp/ta_SAREXT.o \ + ../../../../../temp/cmp/ta_SIN.o \ + ../../../../../temp/cmp/ta_SINH.o \ + ../../../../../temp/cmp/ta_SMA.o \ + ../../../../../temp/cmp/ta_SQRT.o \ + ../../../../../temp/cmp/ta_STDDEV.o \ + ../../../../../temp/cmp/ta_STOCH.o \ + ../../../../../temp/cmp/ta_STOCHF.o \ + ../../../../../temp/cmp/ta_STOCHRSI.o \ + ../../../../../temp/cmp/ta_SUB.o \ + ../../../../../temp/cmp/ta_SUM.o \ + ../../../../../temp/cmp/ta_T3.o \ + ../../../../../temp/cmp/ta_TAN.o \ + ../../../../../temp/cmp/ta_TANH.o \ + ../../../../../temp/cmp/ta_TEMA.o \ + ../../../../../temp/cmp/ta_TRANGE.o \ + ../../../../../temp/cmp/ta_TRIMA.o \ + ../../../../../temp/cmp/ta_TRIX.o \ + ../../../../../temp/cmp/ta_TSF.o \ + ../../../../../temp/cmp/ta_TYPPRICE.o \ + ../../../../../temp/cmp/ta_ULTOSC.o \ + ../../../../../temp/cmp/ta_VAR.o \ + ../../../../../temp/cmp/ta_WCLPRICE.o \ + ../../../../../temp/cmp/ta_WILLR.o \ + ../../../../../temp/cmp/ta_WMA.o +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ../../../../../lib/libta_func_cmp.a +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .C .c + +.cpp.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cxx.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cc.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.C.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.c.o: + $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $< + +####### Build rules + + +all: $(TARGET) + +staticlib: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + -rm -f $(TARGET) + $(AR) $(TARGET) $(OBJECTS) $(OBJMOC) + +moc: $(SRCMOC) + +clean: + -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) + -rm -f *~ core + +####### Sub-libraries + + +###### Combined headers + + +####### Compile + +../../../../../temp/cmp/ta_utility.o: ../../../../../src/ta_func/ta_utility.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_utility.o ../../../../../src/ta_func/ta_utility.c + +../../../../../temp/cmp/ta_ACOS.o: ../../../../../src/ta_func/ta_ACOS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_ACOS.o ../../../../../src/ta_func/ta_ACOS.c + +../../../../../temp/cmp/ta_AD.o: ../../../../../src/ta_func/ta_AD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_AD.o ../../../../../src/ta_func/ta_AD.c + +../../../../../temp/cmp/ta_ADD.o: ../../../../../src/ta_func/ta_ADD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_ADD.o ../../../../../src/ta_func/ta_ADD.c + +../../../../../temp/cmp/ta_ADOSC.o: ../../../../../src/ta_func/ta_ADOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_ADOSC.o ../../../../../src/ta_func/ta_ADOSC.c + +../../../../../temp/cmp/ta_ADX.o: ../../../../../src/ta_func/ta_ADX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_ADX.o ../../../../../src/ta_func/ta_ADX.c + +../../../../../temp/cmp/ta_ADXR.o: ../../../../../src/ta_func/ta_ADXR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_ADXR.o ../../../../../src/ta_func/ta_ADXR.c + +../../../../../temp/cmp/ta_APO.o: ../../../../../src/ta_func/ta_APO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_APO.o ../../../../../src/ta_func/ta_APO.c + +../../../../../temp/cmp/ta_AROON.o: ../../../../../src/ta_func/ta_AROON.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_AROON.o ../../../../../src/ta_func/ta_AROON.c + +../../../../../temp/cmp/ta_AROONOSC.o: ../../../../../src/ta_func/ta_AROONOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_AROONOSC.o ../../../../../src/ta_func/ta_AROONOSC.c + +../../../../../temp/cmp/ta_ASIN.o: ../../../../../src/ta_func/ta_ASIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_ASIN.o ../../../../../src/ta_func/ta_ASIN.c + +../../../../../temp/cmp/ta_ATAN.o: ../../../../../src/ta_func/ta_ATAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_ATAN.o ../../../../../src/ta_func/ta_ATAN.c + +../../../../../temp/cmp/ta_ATR.o: ../../../../../src/ta_func/ta_ATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_ATR.o ../../../../../src/ta_func/ta_ATR.c + +../../../../../temp/cmp/ta_AVGPRICE.o: ../../../../../src/ta_func/ta_AVGPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_AVGPRICE.o ../../../../../src/ta_func/ta_AVGPRICE.c + +../../../../../temp/cmp/ta_BBANDS.o: ../../../../../src/ta_func/ta_BBANDS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_BBANDS.o ../../../../../src/ta_func/ta_BBANDS.c + +../../../../../temp/cmp/ta_BETA.o: ../../../../../src/ta_func/ta_BETA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_BETA.o ../../../../../src/ta_func/ta_BETA.c + +../../../../../temp/cmp/ta_BOP.o: ../../../../../src/ta_func/ta_BOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_BOP.o ../../../../../src/ta_func/ta_BOP.c + +../../../../../temp/cmp/ta_CCI.o: ../../../../../src/ta_func/ta_CCI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CCI.o ../../../../../src/ta_func/ta_CCI.c + +../../../../../temp/cmp/ta_CDL2CROWS.o: ../../../../../src/ta_func/ta_CDL2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDL2CROWS.o ../../../../../src/ta_func/ta_CDL2CROWS.c + +../../../../../temp/cmp/ta_CDL3BLACKCROWS.o: ../../../../../src/ta_func/ta_CDL3BLACKCROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDL3BLACKCROWS.o ../../../../../src/ta_func/ta_CDL3BLACKCROWS.c + +../../../../../temp/cmp/ta_CDL3INSIDE.o: ../../../../../src/ta_func/ta_CDL3INSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDL3INSIDE.o ../../../../../src/ta_func/ta_CDL3INSIDE.c + +../../../../../temp/cmp/ta_CDL3LINESTRIKE.o: ../../../../../src/ta_func/ta_CDL3LINESTRIKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDL3LINESTRIKE.o ../../../../../src/ta_func/ta_CDL3LINESTRIKE.c + +../../../../../temp/cmp/ta_CDL3OUTSIDE.o: ../../../../../src/ta_func/ta_CDL3OUTSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDL3OUTSIDE.o ../../../../../src/ta_func/ta_CDL3OUTSIDE.c + +../../../../../temp/cmp/ta_CDL3STARSINSOUTH.o: ../../../../../src/ta_func/ta_CDL3STARSINSOUTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDL3STARSINSOUTH.o ../../../../../src/ta_func/ta_CDL3STARSINSOUTH.c + +../../../../../temp/cmp/ta_CDL3WHITESOLDIERS.o: ../../../../../src/ta_func/ta_CDL3WHITESOLDIERS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDL3WHITESOLDIERS.o ../../../../../src/ta_func/ta_CDL3WHITESOLDIERS.c + +../../../../../temp/cmp/ta_CDLABANDONEDBABY.o: ../../../../../src/ta_func/ta_CDLABANDONEDBABY.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLABANDONEDBABY.o ../../../../../src/ta_func/ta_CDLABANDONEDBABY.c + +../../../../../temp/cmp/ta_CDLADVANCEBLOCK.o: ../../../../../src/ta_func/ta_CDLADVANCEBLOCK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLADVANCEBLOCK.o ../../../../../src/ta_func/ta_CDLADVANCEBLOCK.c + +../../../../../temp/cmp/ta_CDLBELTHOLD.o: ../../../../../src/ta_func/ta_CDLBELTHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLBELTHOLD.o ../../../../../src/ta_func/ta_CDLBELTHOLD.c + +../../../../../temp/cmp/ta_CDLBREAKAWAY.o: ../../../../../src/ta_func/ta_CDLBREAKAWAY.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLBREAKAWAY.o ../../../../../src/ta_func/ta_CDLBREAKAWAY.c + +../../../../../temp/cmp/ta_CDLCLOSINGMARUBOZU.o: ../../../../../src/ta_func/ta_CDLCLOSINGMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLCLOSINGMARUBOZU.o ../../../../../src/ta_func/ta_CDLCLOSINGMARUBOZU.c + +../../../../../temp/cmp/ta_CDLCONCEALBABYSWALL.o: ../../../../../src/ta_func/ta_CDLCONCEALBABYSWALL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLCONCEALBABYSWALL.o ../../../../../src/ta_func/ta_CDLCONCEALBABYSWALL.c + +../../../../../temp/cmp/ta_CDLCOUNTERATTACK.o: ../../../../../src/ta_func/ta_CDLCOUNTERATTACK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLCOUNTERATTACK.o ../../../../../src/ta_func/ta_CDLCOUNTERATTACK.c + +../../../../../temp/cmp/ta_CDLDARKCLOUDCOVER.o: ../../../../../src/ta_func/ta_CDLDARKCLOUDCOVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLDARKCLOUDCOVER.o ../../../../../src/ta_func/ta_CDLDARKCLOUDCOVER.c + +../../../../../temp/cmp/ta_CDLDOJI.o: ../../../../../src/ta_func/ta_CDLDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLDOJI.o ../../../../../src/ta_func/ta_CDLDOJI.c + +../../../../../temp/cmp/ta_CDLDOJISTAR.o: ../../../../../src/ta_func/ta_CDLDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLDOJISTAR.o ../../../../../src/ta_func/ta_CDLDOJISTAR.c + +../../../../../temp/cmp/ta_CDLDRAGONFLYDOJI.o: ../../../../../src/ta_func/ta_CDLDRAGONFLYDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLDRAGONFLYDOJI.o ../../../../../src/ta_func/ta_CDLDRAGONFLYDOJI.c + +../../../../../temp/cmp/ta_CDLENGULFING.o: ../../../../../src/ta_func/ta_CDLENGULFING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLENGULFING.o ../../../../../src/ta_func/ta_CDLENGULFING.c + +../../../../../temp/cmp/ta_CDLEVENINGDOJISTAR.o: ../../../../../src/ta_func/ta_CDLEVENINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLEVENINGDOJISTAR.o ../../../../../src/ta_func/ta_CDLEVENINGDOJISTAR.c + +../../../../../temp/cmp/ta_CDLEVENINGSTAR.o: ../../../../../src/ta_func/ta_CDLEVENINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLEVENINGSTAR.o ../../../../../src/ta_func/ta_CDLEVENINGSTAR.c + +../../../../../temp/cmp/ta_CDLGAPSIDESIDEWHITE.o: ../../../../../src/ta_func/ta_CDLGAPSIDESIDEWHITE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLGAPSIDESIDEWHITE.o ../../../../../src/ta_func/ta_CDLGAPSIDESIDEWHITE.c + +../../../../../temp/cmp/ta_CDLGRAVESTONEDOJI.o: ../../../../../src/ta_func/ta_CDLGRAVESTONEDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLGRAVESTONEDOJI.o ../../../../../src/ta_func/ta_CDLGRAVESTONEDOJI.c + +../../../../../temp/cmp/ta_CDLHAMMER.o: ../../../../../src/ta_func/ta_CDLHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLHAMMER.o ../../../../../src/ta_func/ta_CDLHAMMER.c + +../../../../../temp/cmp/ta_CDLHANGINGMAN.o: ../../../../../src/ta_func/ta_CDLHANGINGMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLHANGINGMAN.o ../../../../../src/ta_func/ta_CDLHANGINGMAN.c + +../../../../../temp/cmp/ta_CDLHARAMI.o: ../../../../../src/ta_func/ta_CDLHARAMI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLHARAMI.o ../../../../../src/ta_func/ta_CDLHARAMI.c + +../../../../../temp/cmp/ta_CDLHARAMICROSS.o: ../../../../../src/ta_func/ta_CDLHARAMICROSS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLHARAMICROSS.o ../../../../../src/ta_func/ta_CDLHARAMICROSS.c + +../../../../../temp/cmp/ta_CDLHIGHWAVE.o: ../../../../../src/ta_func/ta_CDLHIGHWAVE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLHIGHWAVE.o ../../../../../src/ta_func/ta_CDLHIGHWAVE.c + +../../../../../temp/cmp/ta_CDLHIKKAKE.o: ../../../../../src/ta_func/ta_CDLHIKKAKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLHIKKAKE.o ../../../../../src/ta_func/ta_CDLHIKKAKE.c + +../../../../../temp/cmp/ta_CDLHIKKAKEMOD.o: ../../../../../src/ta_func/ta_CDLHIKKAKEMOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLHIKKAKEMOD.o ../../../../../src/ta_func/ta_CDLHIKKAKEMOD.c + +../../../../../temp/cmp/ta_CDLHOMINGPIGEON.o: ../../../../../src/ta_func/ta_CDLHOMINGPIGEON.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLHOMINGPIGEON.o ../../../../../src/ta_func/ta_CDLHOMINGPIGEON.c + +../../../../../temp/cmp/ta_CDLIDENTICAL3CROWS.o: ../../../../../src/ta_func/ta_CDLIDENTICAL3CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLIDENTICAL3CROWS.o ../../../../../src/ta_func/ta_CDLIDENTICAL3CROWS.c + +../../../../../temp/cmp/ta_CDLINNECK.o: ../../../../../src/ta_func/ta_CDLINNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLINNECK.o ../../../../../src/ta_func/ta_CDLINNECK.c + +../../../../../temp/cmp/ta_CDLINVERTEDHAMMER.o: ../../../../../src/ta_func/ta_CDLINVERTEDHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLINVERTEDHAMMER.o ../../../../../src/ta_func/ta_CDLINVERTEDHAMMER.c + +../../../../../temp/cmp/ta_CDLKICKING.o: ../../../../../src/ta_func/ta_CDLKICKING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLKICKING.o ../../../../../src/ta_func/ta_CDLKICKING.c + +../../../../../temp/cmp/ta_CDLKICKINGBYLENGTH.o: ../../../../../src/ta_func/ta_CDLKICKINGBYLENGTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLKICKINGBYLENGTH.o ../../../../../src/ta_func/ta_CDLKICKINGBYLENGTH.c + +../../../../../temp/cmp/ta_CDLLADDERBOTTOM.o: ../../../../../src/ta_func/ta_CDLLADDERBOTTOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLLADDERBOTTOM.o ../../../../../src/ta_func/ta_CDLLADDERBOTTOM.c + +../../../../../temp/cmp/ta_CDLLONGLEGGEDDOJI.o: ../../../../../src/ta_func/ta_CDLLONGLEGGEDDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLLONGLEGGEDDOJI.o ../../../../../src/ta_func/ta_CDLLONGLEGGEDDOJI.c + +../../../../../temp/cmp/ta_CDLLONGLINE.o: ../../../../../src/ta_func/ta_CDLLONGLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLLONGLINE.o ../../../../../src/ta_func/ta_CDLLONGLINE.c + +../../../../../temp/cmp/ta_CDLMARUBOZU.o: ../../../../../src/ta_func/ta_CDLMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLMARUBOZU.o ../../../../../src/ta_func/ta_CDLMARUBOZU.c + +../../../../../temp/cmp/ta_CDLMATCHINGLOW.o: ../../../../../src/ta_func/ta_CDLMATCHINGLOW.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLMATCHINGLOW.o ../../../../../src/ta_func/ta_CDLMATCHINGLOW.c + +../../../../../temp/cmp/ta_CDLMATHOLD.o: ../../../../../src/ta_func/ta_CDLMATHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLMATHOLD.o ../../../../../src/ta_func/ta_CDLMATHOLD.c + +../../../../../temp/cmp/ta_CDLMORNINGDOJISTAR.o: ../../../../../src/ta_func/ta_CDLMORNINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLMORNINGDOJISTAR.o ../../../../../src/ta_func/ta_CDLMORNINGDOJISTAR.c + +../../../../../temp/cmp/ta_CDLMORNINGSTAR.o: ../../../../../src/ta_func/ta_CDLMORNINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLMORNINGSTAR.o ../../../../../src/ta_func/ta_CDLMORNINGSTAR.c + +../../../../../temp/cmp/ta_CDLONNECK.o: ../../../../../src/ta_func/ta_CDLONNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLONNECK.o ../../../../../src/ta_func/ta_CDLONNECK.c + +../../../../../temp/cmp/ta_CDLPIERCING.o: ../../../../../src/ta_func/ta_CDLPIERCING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLPIERCING.o ../../../../../src/ta_func/ta_CDLPIERCING.c + +../../../../../temp/cmp/ta_CDLRICKSHAWMAN.o: ../../../../../src/ta_func/ta_CDLRICKSHAWMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLRICKSHAWMAN.o ../../../../../src/ta_func/ta_CDLRICKSHAWMAN.c + +../../../../../temp/cmp/ta_CDLRISEFALL3METHODS.o: ../../../../../src/ta_func/ta_CDLRISEFALL3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLRISEFALL3METHODS.o ../../../../../src/ta_func/ta_CDLRISEFALL3METHODS.c + +../../../../../temp/cmp/ta_CDLSEPARATINGLINES.o: ../../../../../src/ta_func/ta_CDLSEPARATINGLINES.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLSEPARATINGLINES.o ../../../../../src/ta_func/ta_CDLSEPARATINGLINES.c + +../../../../../temp/cmp/ta_CDLSHOOTINGSTAR.o: ../../../../../src/ta_func/ta_CDLSHOOTINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLSHOOTINGSTAR.o ../../../../../src/ta_func/ta_CDLSHOOTINGSTAR.c + +../../../../../temp/cmp/ta_CDLSHORTLINE.o: ../../../../../src/ta_func/ta_CDLSHORTLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLSHORTLINE.o ../../../../../src/ta_func/ta_CDLSHORTLINE.c + +../../../../../temp/cmp/ta_CDLSPINNINGTOP.o: ../../../../../src/ta_func/ta_CDLSPINNINGTOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLSPINNINGTOP.o ../../../../../src/ta_func/ta_CDLSPINNINGTOP.c + +../../../../../temp/cmp/ta_CDLSTALLEDPATTERN.o: ../../../../../src/ta_func/ta_CDLSTALLEDPATTERN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLSTALLEDPATTERN.o ../../../../../src/ta_func/ta_CDLSTALLEDPATTERN.c + +../../../../../temp/cmp/ta_CDLSTICKSANDWICH.o: ../../../../../src/ta_func/ta_CDLSTICKSANDWICH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLSTICKSANDWICH.o ../../../../../src/ta_func/ta_CDLSTICKSANDWICH.c + +../../../../../temp/cmp/ta_CDLTAKURI.o: ../../../../../src/ta_func/ta_CDLTAKURI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLTAKURI.o ../../../../../src/ta_func/ta_CDLTAKURI.c + +../../../../../temp/cmp/ta_CDLTASUKIGAP.o: ../../../../../src/ta_func/ta_CDLTASUKIGAP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLTASUKIGAP.o ../../../../../src/ta_func/ta_CDLTASUKIGAP.c + +../../../../../temp/cmp/ta_CDLTHRUSTING.o: ../../../../../src/ta_func/ta_CDLTHRUSTING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLTHRUSTING.o ../../../../../src/ta_func/ta_CDLTHRUSTING.c + +../../../../../temp/cmp/ta_CDLTRISTAR.o: ../../../../../src/ta_func/ta_CDLTRISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLTRISTAR.o ../../../../../src/ta_func/ta_CDLTRISTAR.c + +../../../../../temp/cmp/ta_CDLUNIQUE3RIVER.o: ../../../../../src/ta_func/ta_CDLUNIQUE3RIVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLUNIQUE3RIVER.o ../../../../../src/ta_func/ta_CDLUNIQUE3RIVER.c + +../../../../../temp/cmp/ta_CDLUPSIDEGAP2CROWS.o: ../../../../../src/ta_func/ta_CDLUPSIDEGAP2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLUPSIDEGAP2CROWS.o ../../../../../src/ta_func/ta_CDLUPSIDEGAP2CROWS.c + +../../../../../temp/cmp/ta_CDLXSIDEGAP3METHODS.o: ../../../../../src/ta_func/ta_CDLXSIDEGAP3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLXSIDEGAP3METHODS.o ../../../../../src/ta_func/ta_CDLXSIDEGAP3METHODS.c + +../../../../../temp/cmp/ta_CEIL.o: ../../../../../src/ta_func/ta_CEIL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CEIL.o ../../../../../src/ta_func/ta_CEIL.c + +../../../../../temp/cmp/ta_CMO.o: ../../../../../src/ta_func/ta_CMO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CMO.o ../../../../../src/ta_func/ta_CMO.c + +../../../../../temp/cmp/ta_CORREL.o: ../../../../../src/ta_func/ta_CORREL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CORREL.o ../../../../../src/ta_func/ta_CORREL.c + +../../../../../temp/cmp/ta_COS.o: ../../../../../src/ta_func/ta_COS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_COS.o ../../../../../src/ta_func/ta_COS.c + +../../../../../temp/cmp/ta_COSH.o: ../../../../../src/ta_func/ta_COSH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_COSH.o ../../../../../src/ta_func/ta_COSH.c + +../../../../../temp/cmp/ta_DEMA.o: ../../../../../src/ta_func/ta_DEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_DEMA.o ../../../../../src/ta_func/ta_DEMA.c + +../../../../../temp/cmp/ta_DIV.o: ../../../../../src/ta_func/ta_DIV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_DIV.o ../../../../../src/ta_func/ta_DIV.c + +../../../../../temp/cmp/ta_DX.o: ../../../../../src/ta_func/ta_DX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_DX.o ../../../../../src/ta_func/ta_DX.c + +../../../../../temp/cmp/ta_EMA.o: ../../../../../src/ta_func/ta_EMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_EMA.o ../../../../../src/ta_func/ta_EMA.c + +../../../../../temp/cmp/ta_EXP.o: ../../../../../src/ta_func/ta_EXP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_EXP.o ../../../../../src/ta_func/ta_EXP.c + +../../../../../temp/cmp/ta_FLOOR.o: ../../../../../src/ta_func/ta_FLOOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_FLOOR.o ../../../../../src/ta_func/ta_FLOOR.c + +../../../../../temp/cmp/ta_HT_DCPERIOD.o: ../../../../../src/ta_func/ta_HT_DCPERIOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_HT_DCPERIOD.o ../../../../../src/ta_func/ta_HT_DCPERIOD.c + +../../../../../temp/cmp/ta_HT_DCPHASE.o: ../../../../../src/ta_func/ta_HT_DCPHASE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_HT_DCPHASE.o ../../../../../src/ta_func/ta_HT_DCPHASE.c + +../../../../../temp/cmp/ta_HT_PHASOR.o: ../../../../../src/ta_func/ta_HT_PHASOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_HT_PHASOR.o ../../../../../src/ta_func/ta_HT_PHASOR.c + +../../../../../temp/cmp/ta_HT_SINE.o: ../../../../../src/ta_func/ta_HT_SINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_HT_SINE.o ../../../../../src/ta_func/ta_HT_SINE.c + +../../../../../temp/cmp/ta_HT_TRENDLINE.o: ../../../../../src/ta_func/ta_HT_TRENDLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_HT_TRENDLINE.o ../../../../../src/ta_func/ta_HT_TRENDLINE.c + +../../../../../temp/cmp/ta_HT_TRENDMODE.o: ../../../../../src/ta_func/ta_HT_TRENDMODE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_HT_TRENDMODE.o ../../../../../src/ta_func/ta_HT_TRENDMODE.c + +../../../../../temp/cmp/ta_KAMA.o: ../../../../../src/ta_func/ta_KAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_KAMA.o ../../../../../src/ta_func/ta_KAMA.c + +../../../../../temp/cmp/ta_LINEARREG.o: ../../../../../src/ta_func/ta_LINEARREG.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_LINEARREG.o ../../../../../src/ta_func/ta_LINEARREG.c + +../../../../../temp/cmp/ta_LINEARREG_ANGLE.o: ../../../../../src/ta_func/ta_LINEARREG_ANGLE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_LINEARREG_ANGLE.o ../../../../../src/ta_func/ta_LINEARREG_ANGLE.c + +../../../../../temp/cmp/ta_LINEARREG_INTERCEPT.o: ../../../../../src/ta_func/ta_LINEARREG_INTERCEPT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_LINEARREG_INTERCEPT.o ../../../../../src/ta_func/ta_LINEARREG_INTERCEPT.c + +../../../../../temp/cmp/ta_LINEARREG_SLOPE.o: ../../../../../src/ta_func/ta_LINEARREG_SLOPE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_LINEARREG_SLOPE.o ../../../../../src/ta_func/ta_LINEARREG_SLOPE.c + +../../../../../temp/cmp/ta_LN.o: ../../../../../src/ta_func/ta_LN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_LN.o ../../../../../src/ta_func/ta_LN.c + +../../../../../temp/cmp/ta_LOG10.o: ../../../../../src/ta_func/ta_LOG10.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_LOG10.o ../../../../../src/ta_func/ta_LOG10.c + +../../../../../temp/cmp/ta_MA.o: ../../../../../src/ta_func/ta_MA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_MA.o ../../../../../src/ta_func/ta_MA.c + +../../../../../temp/cmp/ta_MACD.o: ../../../../../src/ta_func/ta_MACD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_MACD.o ../../../../../src/ta_func/ta_MACD.c + +../../../../../temp/cmp/ta_MACDEXT.o: ../../../../../src/ta_func/ta_MACDEXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_MACDEXT.o ../../../../../src/ta_func/ta_MACDEXT.c + +../../../../../temp/cmp/ta_MACDFIX.o: ../../../../../src/ta_func/ta_MACDFIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_MACDFIX.o ../../../../../src/ta_func/ta_MACDFIX.c + +../../../../../temp/cmp/ta_MAMA.o: ../../../../../src/ta_func/ta_MAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_MAMA.o ../../../../../src/ta_func/ta_MAMA.c + +../../../../../temp/cmp/ta_MAVP.o: ../../../../../src/ta_func/ta_MAVP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_MAVP.o ../../../../../src/ta_func/ta_MAVP.c + +../../../../../temp/cmp/ta_MAX.o: ../../../../../src/ta_func/ta_MAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_MAX.o ../../../../../src/ta_func/ta_MAX.c + +../../../../../temp/cmp/ta_MAXINDEX.o: ../../../../../src/ta_func/ta_MAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_MAXINDEX.o ../../../../../src/ta_func/ta_MAXINDEX.c + +../../../../../temp/cmp/ta_MEDPRICE.o: ../../../../../src/ta_func/ta_MEDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_MEDPRICE.o ../../../../../src/ta_func/ta_MEDPRICE.c + +../../../../../temp/cmp/ta_MFI.o: ../../../../../src/ta_func/ta_MFI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_MFI.o ../../../../../src/ta_func/ta_MFI.c + +../../../../../temp/cmp/ta_MIDPOINT.o: ../../../../../src/ta_func/ta_MIDPOINT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_MIDPOINT.o ../../../../../src/ta_func/ta_MIDPOINT.c + +../../../../../temp/cmp/ta_MIDPRICE.o: ../../../../../src/ta_func/ta_MIDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_MIDPRICE.o ../../../../../src/ta_func/ta_MIDPRICE.c + +../../../../../temp/cmp/ta_MIN.o: ../../../../../src/ta_func/ta_MIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_MIN.o ../../../../../src/ta_func/ta_MIN.c + +../../../../../temp/cmp/ta_MININDEX.o: ../../../../../src/ta_func/ta_MININDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_MININDEX.o ../../../../../src/ta_func/ta_MININDEX.c + +../../../../../temp/cmp/ta_MINMAX.o: ../../../../../src/ta_func/ta_MINMAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_MINMAX.o ../../../../../src/ta_func/ta_MINMAX.c + +../../../../../temp/cmp/ta_MINMAXINDEX.o: ../../../../../src/ta_func/ta_MINMAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_MINMAXINDEX.o ../../../../../src/ta_func/ta_MINMAXINDEX.c + +../../../../../temp/cmp/ta_MINUS_DI.o: ../../../../../src/ta_func/ta_MINUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_MINUS_DI.o ../../../../../src/ta_func/ta_MINUS_DI.c + +../../../../../temp/cmp/ta_MINUS_DM.o: ../../../../../src/ta_func/ta_MINUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_MINUS_DM.o ../../../../../src/ta_func/ta_MINUS_DM.c + +../../../../../temp/cmp/ta_MOM.o: ../../../../../src/ta_func/ta_MOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_MOM.o ../../../../../src/ta_func/ta_MOM.c + +../../../../../temp/cmp/ta_MULT.o: ../../../../../src/ta_func/ta_MULT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_MULT.o ../../../../../src/ta_func/ta_MULT.c + +../../../../../temp/cmp/ta_NATR.o: ../../../../../src/ta_func/ta_NATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_NATR.o ../../../../../src/ta_func/ta_NATR.c + +../../../../../temp/cmp/ta_OBV.o: ../../../../../src/ta_func/ta_OBV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_OBV.o ../../../../../src/ta_func/ta_OBV.c + +../../../../../temp/cmp/ta_PLUS_DI.o: ../../../../../src/ta_func/ta_PLUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_PLUS_DI.o ../../../../../src/ta_func/ta_PLUS_DI.c + +../../../../../temp/cmp/ta_PLUS_DM.o: ../../../../../src/ta_func/ta_PLUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_PLUS_DM.o ../../../../../src/ta_func/ta_PLUS_DM.c + +../../../../../temp/cmp/ta_PPO.o: ../../../../../src/ta_func/ta_PPO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_PPO.o ../../../../../src/ta_func/ta_PPO.c + +../../../../../temp/cmp/ta_ROC.o: ../../../../../src/ta_func/ta_ROC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_ROC.o ../../../../../src/ta_func/ta_ROC.c + +../../../../../temp/cmp/ta_ROCP.o: ../../../../../src/ta_func/ta_ROCP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_ROCP.o ../../../../../src/ta_func/ta_ROCP.c + +../../../../../temp/cmp/ta_ROCR.o: ../../../../../src/ta_func/ta_ROCR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_ROCR.o ../../../../../src/ta_func/ta_ROCR.c + +../../../../../temp/cmp/ta_ROCR100.o: ../../../../../src/ta_func/ta_ROCR100.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_ROCR100.o ../../../../../src/ta_func/ta_ROCR100.c + +../../../../../temp/cmp/ta_RSI.o: ../../../../../src/ta_func/ta_RSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_RSI.o ../../../../../src/ta_func/ta_RSI.c + +../../../../../temp/cmp/ta_SAR.o: ../../../../../src/ta_func/ta_SAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_SAR.o ../../../../../src/ta_func/ta_SAR.c + +../../../../../temp/cmp/ta_SAREXT.o: ../../../../../src/ta_func/ta_SAREXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_SAREXT.o ../../../../../src/ta_func/ta_SAREXT.c + +../../../../../temp/cmp/ta_SIN.o: ../../../../../src/ta_func/ta_SIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_SIN.o ../../../../../src/ta_func/ta_SIN.c + +../../../../../temp/cmp/ta_SINH.o: ../../../../../src/ta_func/ta_SINH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_SINH.o ../../../../../src/ta_func/ta_SINH.c + +../../../../../temp/cmp/ta_SMA.o: ../../../../../src/ta_func/ta_SMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_SMA.o ../../../../../src/ta_func/ta_SMA.c + +../../../../../temp/cmp/ta_SQRT.o: ../../../../../src/ta_func/ta_SQRT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_SQRT.o ../../../../../src/ta_func/ta_SQRT.c + +../../../../../temp/cmp/ta_STDDEV.o: ../../../../../src/ta_func/ta_STDDEV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_STDDEV.o ../../../../../src/ta_func/ta_STDDEV.c + +../../../../../temp/cmp/ta_STOCH.o: ../../../../../src/ta_func/ta_STOCH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_STOCH.o ../../../../../src/ta_func/ta_STOCH.c + +../../../../../temp/cmp/ta_STOCHF.o: ../../../../../src/ta_func/ta_STOCHF.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_STOCHF.o ../../../../../src/ta_func/ta_STOCHF.c + +../../../../../temp/cmp/ta_STOCHRSI.o: ../../../../../src/ta_func/ta_STOCHRSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_STOCHRSI.o ../../../../../src/ta_func/ta_STOCHRSI.c + +../../../../../temp/cmp/ta_SUB.o: ../../../../../src/ta_func/ta_SUB.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_SUB.o ../../../../../src/ta_func/ta_SUB.c + +../../../../../temp/cmp/ta_SUM.o: ../../../../../src/ta_func/ta_SUM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_SUM.o ../../../../../src/ta_func/ta_SUM.c + +../../../../../temp/cmp/ta_T3.o: ../../../../../src/ta_func/ta_T3.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_T3.o ../../../../../src/ta_func/ta_T3.c + +../../../../../temp/cmp/ta_TAN.o: ../../../../../src/ta_func/ta_TAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_TAN.o ../../../../../src/ta_func/ta_TAN.c + +../../../../../temp/cmp/ta_TANH.o: ../../../../../src/ta_func/ta_TANH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_TANH.o ../../../../../src/ta_func/ta_TANH.c + +../../../../../temp/cmp/ta_TEMA.o: ../../../../../src/ta_func/ta_TEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_TEMA.o ../../../../../src/ta_func/ta_TEMA.c + +../../../../../temp/cmp/ta_TRANGE.o: ../../../../../src/ta_func/ta_TRANGE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_TRANGE.o ../../../../../src/ta_func/ta_TRANGE.c + +../../../../../temp/cmp/ta_TRIMA.o: ../../../../../src/ta_func/ta_TRIMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_TRIMA.o ../../../../../src/ta_func/ta_TRIMA.c + +../../../../../temp/cmp/ta_TRIX.o: ../../../../../src/ta_func/ta_TRIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_TRIX.o ../../../../../src/ta_func/ta_TRIX.c + +../../../../../temp/cmp/ta_TSF.o: ../../../../../src/ta_func/ta_TSF.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_TSF.o ../../../../../src/ta_func/ta_TSF.c + +../../../../../temp/cmp/ta_TYPPRICE.o: ../../../../../src/ta_func/ta_TYPPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_TYPPRICE.o ../../../../../src/ta_func/ta_TYPPRICE.c + +../../../../../temp/cmp/ta_ULTOSC.o: ../../../../../src/ta_func/ta_ULTOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_ULTOSC.o ../../../../../src/ta_func/ta_ULTOSC.c + +../../../../../temp/cmp/ta_VAR.o: ../../../../../src/ta_func/ta_VAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_VAR.o ../../../../../src/ta_func/ta_VAR.c + +../../../../../temp/cmp/ta_WCLPRICE.o: ../../../../../src/ta_func/ta_WCLPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_WCLPRICE.o ../../../../../src/ta_func/ta_WCLPRICE.c + +../../../../../temp/cmp/ta_WILLR.o: ../../../../../src/ta_func/ta_WILLR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_WILLR.o ../../../../../src/ta_func/ta_WILLR.c + +../../../../../temp/cmp/ta_WMA.o: ../../../../../src/ta_func/ta_WMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_WMA.o ../../../../../src/ta_func/ta_WMA.c + diff --git a/make/cmp/cygwin/g++/ta_libc/Makefile b/make/cmp/cygwin/g++/ta_libc/Makefile new file mode 100644 index 000000000..602479d12 --- /dev/null +++ b/make/cmp/cygwin/g++/ta_libc/Makefile @@ -0,0 +1,1053 @@ +############################################################################# +# Makefile for building ../../../../../lib/libta_libc_cmp.a +# Generated by tmake; +# Project: ta_libc/ta_libc +# Template: lib +############################################################################# + +####### Compiler, tools and options + +CC = gcc +CXX = g++ +CFLAGS = -pipe -Wall -W -g -O -pg -D_REENTRANT -DTA_DEBUG -D_DEBUG -DQT_THREAD_SUPPORT +CXXFLAGS= -pipe -Wall -W -g -D_REENTRANT -DTA_DEBUG -D_DEBUG -DQT_THREAD_SUPPORT +INCPATH = -I../../../../../src/ta_common -I../../../../../include -I../../../../../src/ta_abstract -I../../../../../src/ta_abstract/tables -I../../../../../src/ta_abstract/frames -I$(QTDIR)/include +AR = ar cqs +RANLIB = +MOC = $(QTDIR)/bin/moc +UIC = $(QTDIR)/bin/uic + +TAR = tar -cf +GZIP = gzip -9f + +####### Support for 64-bit systems +ifeq ($(shell uname -m), x86_64) + CFLAGS += -march=x86-64 -m64 -D__64BIT__ + CXXFLAGS += -march=x86-64 -m64 -D__64BIT__ +endif + +####### Apply additional overruling user flags, if any +CFLAGS += $(CUSERFLAGS) +CXXFLAGS += $(CUSERFLAGS) + +####### Files + +HEADERS = +SOURCES = ../../../../../src/ta_common/ta_global.c \ + ../../../../../src/ta_common/ta_retcode.c \ + ../../../../../src/ta_common/ta_version.c \ + ../../../../../src/ta_abstract/ta_abstract.c \ + ../../../../../src/ta_abstract/ta_def_ui.c \ + ../../../../../src/ta_abstract/ta_func_api.c \ + ../../../../../src/ta_abstract/ta_group_idx.c \ + ../../../../../src/ta_abstract/frames/ta_frame.c \ + ../../../../../src/ta_abstract/tables/table_a.c \ + ../../../../../src/ta_abstract/tables/table_b.c \ + ../../../../../src/ta_abstract/tables/table_c.c \ + ../../../../../src/ta_abstract/tables/table_d.c \ + ../../../../../src/ta_abstract/tables/table_e.c \ + ../../../../../src/ta_abstract/tables/table_f.c \ + ../../../../../src/ta_abstract/tables/table_g.c \ + ../../../../../src/ta_abstract/tables/table_h.c \ + ../../../../../src/ta_abstract/tables/table_i.c \ + ../../../../../src/ta_abstract/tables/table_j.c \ + ../../../../../src/ta_abstract/tables/table_k.c \ + ../../../../../src/ta_abstract/tables/table_l.c \ + ../../../../../src/ta_abstract/tables/table_m.c \ + ../../../../../src/ta_abstract/tables/table_n.c \ + ../../../../../src/ta_abstract/tables/table_o.c \ + ../../../../../src/ta_abstract/tables/table_p.c \ + ../../../../../src/ta_abstract/tables/table_q.c \ + ../../../../../src/ta_abstract/tables/table_r.c \ + ../../../../../src/ta_abstract/tables/table_s.c \ + ../../../../../src/ta_abstract/tables/table_t.c \ + ../../../../../src/ta_abstract/tables/table_u.c \ + ../../../../../src/ta_abstract/tables/table_v.c \ + ../../../../../src/ta_abstract/tables/table_w.c \ + ../../../../../src/ta_abstract/tables/table_x.c \ + ../../../../../src/ta_abstract/tables/table_y.c \ + ../../../../../src/ta_abstract/tables/table_z.c \ + ../../../../../src/ta_func/ta_utility.c \ + ../../../../../src/ta_func/ta_ACOS.c \ + ../../../../../src/ta_func/ta_AD.c \ + ../../../../../src/ta_func/ta_ADD.c \ + ../../../../../src/ta_func/ta_ADOSC.c \ + ../../../../../src/ta_func/ta_ADX.c \ + ../../../../../src/ta_func/ta_ADXR.c \ + ../../../../../src/ta_func/ta_APO.c \ + ../../../../../src/ta_func/ta_AROON.c \ + ../../../../../src/ta_func/ta_AROONOSC.c \ + ../../../../../src/ta_func/ta_ASIN.c \ + ../../../../../src/ta_func/ta_ATAN.c \ + ../../../../../src/ta_func/ta_ATR.c \ + ../../../../../src/ta_func/ta_AVGPRICE.c \ + ../../../../../src/ta_func/ta_BBANDS.c \ + ../../../../../src/ta_func/ta_BETA.c \ + ../../../../../src/ta_func/ta_BOP.c \ + ../../../../../src/ta_func/ta_CCI.c \ + ../../../../../src/ta_func/ta_CDL2CROWS.c \ + ../../../../../src/ta_func/ta_CDL3BLACKCROWS.c \ + ../../../../../src/ta_func/ta_CDL3INSIDE.c \ + ../../../../../src/ta_func/ta_CDL3LINESTRIKE.c \ + ../../../../../src/ta_func/ta_CDL3OUTSIDE.c \ + ../../../../../src/ta_func/ta_CDL3STARSINSOUTH.c \ + ../../../../../src/ta_func/ta_CDL3WHITESOLDIERS.c \ + ../../../../../src/ta_func/ta_CDLABANDONEDBABY.c \ + ../../../../../src/ta_func/ta_CDLADVANCEBLOCK.c \ + ../../../../../src/ta_func/ta_CDLBELTHOLD.c \ + ../../../../../src/ta_func/ta_CDLBREAKAWAY.c \ + ../../../../../src/ta_func/ta_CDLCLOSINGMARUBOZU.c \ + ../../../../../src/ta_func/ta_CDLCONCEALBABYSWALL.c \ + ../../../../../src/ta_func/ta_CDLCOUNTERATTACK.c \ + ../../../../../src/ta_func/ta_CDLDARKCLOUDCOVER.c \ + ../../../../../src/ta_func/ta_CDLDOJI.c \ + ../../../../../src/ta_func/ta_CDLDOJISTAR.c \ + ../../../../../src/ta_func/ta_CDLDRAGONFLYDOJI.c \ + ../../../../../src/ta_func/ta_CDLENGULFING.c \ + ../../../../../src/ta_func/ta_CDLEVENINGDOJISTAR.c \ + ../../../../../src/ta_func/ta_CDLEVENINGSTAR.c \ + ../../../../../src/ta_func/ta_CDLGAPSIDESIDEWHITE.c \ + ../../../../../src/ta_func/ta_CDLGRAVESTONEDOJI.c \ + ../../../../../src/ta_func/ta_CDLHAMMER.c \ + ../../../../../src/ta_func/ta_CDLHANGINGMAN.c \ + ../../../../../src/ta_func/ta_CDLHARAMI.c \ + ../../../../../src/ta_func/ta_CDLHARAMICROSS.c \ + ../../../../../src/ta_func/ta_CDLHIGHWAVE.c \ + ../../../../../src/ta_func/ta_CDLHIKKAKE.c \ + ../../../../../src/ta_func/ta_CDLHIKKAKEMOD.c \ + ../../../../../src/ta_func/ta_CDLHOMINGPIGEON.c \ + ../../../../../src/ta_func/ta_CDLIDENTICAL3CROWS.c \ + ../../../../../src/ta_func/ta_CDLINNECK.c \ + ../../../../../src/ta_func/ta_CDLINVERTEDHAMMER.c \ + ../../../../../src/ta_func/ta_CDLKICKING.c \ + ../../../../../src/ta_func/ta_CDLKICKINGBYLENGTH.c \ + ../../../../../src/ta_func/ta_CDLLADDERBOTTOM.c \ + ../../../../../src/ta_func/ta_CDLLONGLEGGEDDOJI.c \ + ../../../../../src/ta_func/ta_CDLLONGLINE.c \ + ../../../../../src/ta_func/ta_CDLMARUBOZU.c \ + ../../../../../src/ta_func/ta_CDLMATCHINGLOW.c \ + ../../../../../src/ta_func/ta_CDLMATHOLD.c \ + ../../../../../src/ta_func/ta_CDLMORNINGDOJISTAR.c \ + ../../../../../src/ta_func/ta_CDLMORNINGSTAR.c \ + ../../../../../src/ta_func/ta_CDLONNECK.c \ + ../../../../../src/ta_func/ta_CDLPIERCING.c \ + ../../../../../src/ta_func/ta_CDLRICKSHAWMAN.c \ + ../../../../../src/ta_func/ta_CDLRISEFALL3METHODS.c \ + ../../../../../src/ta_func/ta_CDLSEPARATINGLINES.c \ + ../../../../../src/ta_func/ta_CDLSHOOTINGSTAR.c \ + ../../../../../src/ta_func/ta_CDLSHORTLINE.c \ + ../../../../../src/ta_func/ta_CDLSPINNINGTOP.c \ + ../../../../../src/ta_func/ta_CDLSTALLEDPATTERN.c \ + ../../../../../src/ta_func/ta_CDLSTICKSANDWICH.c \ + ../../../../../src/ta_func/ta_CDLTAKURI.c \ + ../../../../../src/ta_func/ta_CDLTASUKIGAP.c \ + ../../../../../src/ta_func/ta_CDLTHRUSTING.c \ + ../../../../../src/ta_func/ta_CDLTRISTAR.c \ + ../../../../../src/ta_func/ta_CDLUNIQUE3RIVER.c \ + ../../../../../src/ta_func/ta_CDLUPSIDEGAP2CROWS.c \ + ../../../../../src/ta_func/ta_CDLXSIDEGAP3METHODS.c \ + ../../../../../src/ta_func/ta_CEIL.c \ + ../../../../../src/ta_func/ta_CMO.c \ + ../../../../../src/ta_func/ta_CORREL.c \ + ../../../../../src/ta_func/ta_COS.c \ + ../../../../../src/ta_func/ta_COSH.c \ + ../../../../../src/ta_func/ta_DEMA.c \ + ../../../../../src/ta_func/ta_DIV.c \ + ../../../../../src/ta_func/ta_DX.c \ + ../../../../../src/ta_func/ta_EMA.c \ + ../../../../../src/ta_func/ta_EXP.c \ + ../../../../../src/ta_func/ta_FLOOR.c \ + ../../../../../src/ta_func/ta_HT_DCPERIOD.c \ + ../../../../../src/ta_func/ta_HT_DCPHASE.c \ + ../../../../../src/ta_func/ta_HT_PHASOR.c \ + ../../../../../src/ta_func/ta_HT_SINE.c \ + ../../../../../src/ta_func/ta_HT_TRENDLINE.c \ + ../../../../../src/ta_func/ta_HT_TRENDMODE.c \ + ../../../../../src/ta_func/ta_KAMA.c \ + ../../../../../src/ta_func/ta_LINEARREG.c \ + ../../../../../src/ta_func/ta_LINEARREG_ANGLE.c \ + ../../../../../src/ta_func/ta_LINEARREG_INTERCEPT.c \ + ../../../../../src/ta_func/ta_LINEARREG_SLOPE.c \ + ../../../../../src/ta_func/ta_LN.c \ + ../../../../../src/ta_func/ta_LOG10.c \ + ../../../../../src/ta_func/ta_MA.c \ + ../../../../../src/ta_func/ta_MACD.c \ + ../../../../../src/ta_func/ta_MACDEXT.c \ + ../../../../../src/ta_func/ta_MACDFIX.c \ + ../../../../../src/ta_func/ta_MAMA.c \ + ../../../../../src/ta_func/ta_MAVP.c \ + ../../../../../src/ta_func/ta_MAX.c \ + ../../../../../src/ta_func/ta_MAXINDEX.c \ + ../../../../../src/ta_func/ta_MEDPRICE.c \ + ../../../../../src/ta_func/ta_MFI.c \ + ../../../../../src/ta_func/ta_MIDPOINT.c \ + ../../../../../src/ta_func/ta_MIDPRICE.c \ + ../../../../../src/ta_func/ta_MIN.c \ + ../../../../../src/ta_func/ta_MININDEX.c \ + ../../../../../src/ta_func/ta_MINMAX.c \ + ../../../../../src/ta_func/ta_MINMAXINDEX.c \ + ../../../../../src/ta_func/ta_MINUS_DI.c \ + ../../../../../src/ta_func/ta_MINUS_DM.c \ + ../../../../../src/ta_func/ta_MOM.c \ + ../../../../../src/ta_func/ta_MULT.c \ + ../../../../../src/ta_func/ta_NATR.c \ + ../../../../../src/ta_func/ta_OBV.c \ + ../../../../../src/ta_func/ta_PLUS_DI.c \ + ../../../../../src/ta_func/ta_PLUS_DM.c \ + ../../../../../src/ta_func/ta_PPO.c \ + ../../../../../src/ta_func/ta_ROC.c \ + ../../../../../src/ta_func/ta_ROCP.c \ + ../../../../../src/ta_func/ta_ROCR.c \ + ../../../../../src/ta_func/ta_ROCR100.c \ + ../../../../../src/ta_func/ta_RSI.c \ + ../../../../../src/ta_func/ta_SAR.c \ + ../../../../../src/ta_func/ta_SAREXT.c \ + ../../../../../src/ta_func/ta_SIN.c \ + ../../../../../src/ta_func/ta_SINH.c \ + ../../../../../src/ta_func/ta_SMA.c \ + ../../../../../src/ta_func/ta_SQRT.c \ + ../../../../../src/ta_func/ta_STDDEV.c \ + ../../../../../src/ta_func/ta_STOCH.c \ + ../../../../../src/ta_func/ta_STOCHF.c \ + ../../../../../src/ta_func/ta_STOCHRSI.c \ + ../../../../../src/ta_func/ta_SUB.c \ + ../../../../../src/ta_func/ta_SUM.c \ + ../../../../../src/ta_func/ta_T3.c \ + ../../../../../src/ta_func/ta_TAN.c \ + ../../../../../src/ta_func/ta_TANH.c \ + ../../../../../src/ta_func/ta_TEMA.c \ + ../../../../../src/ta_func/ta_TRANGE.c \ + ../../../../../src/ta_func/ta_TRIMA.c \ + ../../../../../src/ta_func/ta_TRIX.c \ + ../../../../../src/ta_func/ta_TSF.c \ + ../../../../../src/ta_func/ta_TYPPRICE.c \ + ../../../../../src/ta_func/ta_ULTOSC.c \ + ../../../../../src/ta_func/ta_VAR.c \ + ../../../../../src/ta_func/ta_WCLPRICE.c \ + ../../../../../src/ta_func/ta_WILLR.c \ + ../../../../../src/ta_func/ta_WMA.c +OBJECTS = ../../../../../temp/cmp/ta_global.o \ + ../../../../../temp/cmp/ta_retcode.o \ + ../../../../../temp/cmp/ta_version.o \ + ../../../../../temp/cmp/ta_abstract.o \ + ../../../../../temp/cmp/ta_def_ui.o \ + ../../../../../temp/cmp/ta_func_api.o \ + ../../../../../temp/cmp/ta_group_idx.o \ + ../../../../../temp/cmp/ta_frame.o \ + ../../../../../temp/cmp/table_a.o \ + ../../../../../temp/cmp/table_b.o \ + ../../../../../temp/cmp/table_c.o \ + ../../../../../temp/cmp/table_d.o \ + ../../../../../temp/cmp/table_e.o \ + ../../../../../temp/cmp/table_f.o \ + ../../../../../temp/cmp/table_g.o \ + ../../../../../temp/cmp/table_h.o \ + ../../../../../temp/cmp/table_i.o \ + ../../../../../temp/cmp/table_j.o \ + ../../../../../temp/cmp/table_k.o \ + ../../../../../temp/cmp/table_l.o \ + ../../../../../temp/cmp/table_m.o \ + ../../../../../temp/cmp/table_n.o \ + ../../../../../temp/cmp/table_o.o \ + ../../../../../temp/cmp/table_p.o \ + ../../../../../temp/cmp/table_q.o \ + ../../../../../temp/cmp/table_r.o \ + ../../../../../temp/cmp/table_s.o \ + ../../../../../temp/cmp/table_t.o \ + ../../../../../temp/cmp/table_u.o \ + ../../../../../temp/cmp/table_v.o \ + ../../../../../temp/cmp/table_w.o \ + ../../../../../temp/cmp/table_x.o \ + ../../../../../temp/cmp/table_y.o \ + ../../../../../temp/cmp/table_z.o \ + ../../../../../temp/cmp/ta_utility.o \ + ../../../../../temp/cmp/ta_ACOS.o \ + ../../../../../temp/cmp/ta_AD.o \ + ../../../../../temp/cmp/ta_ADD.o \ + ../../../../../temp/cmp/ta_ADOSC.o \ + ../../../../../temp/cmp/ta_ADX.o \ + ../../../../../temp/cmp/ta_ADXR.o \ + ../../../../../temp/cmp/ta_APO.o \ + ../../../../../temp/cmp/ta_AROON.o \ + ../../../../../temp/cmp/ta_AROONOSC.o \ + ../../../../../temp/cmp/ta_ASIN.o \ + ../../../../../temp/cmp/ta_ATAN.o \ + ../../../../../temp/cmp/ta_ATR.o \ + ../../../../../temp/cmp/ta_AVGPRICE.o \ + ../../../../../temp/cmp/ta_BBANDS.o \ + ../../../../../temp/cmp/ta_BETA.o \ + ../../../../../temp/cmp/ta_BOP.o \ + ../../../../../temp/cmp/ta_CCI.o \ + ../../../../../temp/cmp/ta_CDL2CROWS.o \ + ../../../../../temp/cmp/ta_CDL3BLACKCROWS.o \ + ../../../../../temp/cmp/ta_CDL3INSIDE.o \ + ../../../../../temp/cmp/ta_CDL3LINESTRIKE.o \ + ../../../../../temp/cmp/ta_CDL3OUTSIDE.o \ + ../../../../../temp/cmp/ta_CDL3STARSINSOUTH.o \ + ../../../../../temp/cmp/ta_CDL3WHITESOLDIERS.o \ + ../../../../../temp/cmp/ta_CDLABANDONEDBABY.o \ + ../../../../../temp/cmp/ta_CDLADVANCEBLOCK.o \ + ../../../../../temp/cmp/ta_CDLBELTHOLD.o \ + ../../../../../temp/cmp/ta_CDLBREAKAWAY.o \ + ../../../../../temp/cmp/ta_CDLCLOSINGMARUBOZU.o \ + ../../../../../temp/cmp/ta_CDLCONCEALBABYSWALL.o \ + ../../../../../temp/cmp/ta_CDLCOUNTERATTACK.o \ + ../../../../../temp/cmp/ta_CDLDARKCLOUDCOVER.o \ + ../../../../../temp/cmp/ta_CDLDOJI.o \ + ../../../../../temp/cmp/ta_CDLDOJISTAR.o \ + ../../../../../temp/cmp/ta_CDLDRAGONFLYDOJI.o \ + ../../../../../temp/cmp/ta_CDLENGULFING.o \ + ../../../../../temp/cmp/ta_CDLEVENINGDOJISTAR.o \ + ../../../../../temp/cmp/ta_CDLEVENINGSTAR.o \ + ../../../../../temp/cmp/ta_CDLGAPSIDESIDEWHITE.o \ + ../../../../../temp/cmp/ta_CDLGRAVESTONEDOJI.o \ + ../../../../../temp/cmp/ta_CDLHAMMER.o \ + ../../../../../temp/cmp/ta_CDLHANGINGMAN.o \ + ../../../../../temp/cmp/ta_CDLHARAMI.o \ + ../../../../../temp/cmp/ta_CDLHARAMICROSS.o \ + ../../../../../temp/cmp/ta_CDLHIGHWAVE.o \ + ../../../../../temp/cmp/ta_CDLHIKKAKE.o \ + ../../../../../temp/cmp/ta_CDLHIKKAKEMOD.o \ + ../../../../../temp/cmp/ta_CDLHOMINGPIGEON.o \ + ../../../../../temp/cmp/ta_CDLIDENTICAL3CROWS.o \ + ../../../../../temp/cmp/ta_CDLINNECK.o \ + ../../../../../temp/cmp/ta_CDLINVERTEDHAMMER.o \ + ../../../../../temp/cmp/ta_CDLKICKING.o \ + ../../../../../temp/cmp/ta_CDLKICKINGBYLENGTH.o \ + ../../../../../temp/cmp/ta_CDLLADDERBOTTOM.o \ + ../../../../../temp/cmp/ta_CDLLONGLEGGEDDOJI.o \ + ../../../../../temp/cmp/ta_CDLLONGLINE.o \ + ../../../../../temp/cmp/ta_CDLMARUBOZU.o \ + ../../../../../temp/cmp/ta_CDLMATCHINGLOW.o \ + ../../../../../temp/cmp/ta_CDLMATHOLD.o \ + ../../../../../temp/cmp/ta_CDLMORNINGDOJISTAR.o \ + ../../../../../temp/cmp/ta_CDLMORNINGSTAR.o \ + ../../../../../temp/cmp/ta_CDLONNECK.o \ + ../../../../../temp/cmp/ta_CDLPIERCING.o \ + ../../../../../temp/cmp/ta_CDLRICKSHAWMAN.o \ + ../../../../../temp/cmp/ta_CDLRISEFALL3METHODS.o \ + ../../../../../temp/cmp/ta_CDLSEPARATINGLINES.o \ + ../../../../../temp/cmp/ta_CDLSHOOTINGSTAR.o \ + ../../../../../temp/cmp/ta_CDLSHORTLINE.o \ + ../../../../../temp/cmp/ta_CDLSPINNINGTOP.o \ + ../../../../../temp/cmp/ta_CDLSTALLEDPATTERN.o \ + ../../../../../temp/cmp/ta_CDLSTICKSANDWICH.o \ + ../../../../../temp/cmp/ta_CDLTAKURI.o \ + ../../../../../temp/cmp/ta_CDLTASUKIGAP.o \ + ../../../../../temp/cmp/ta_CDLTHRUSTING.o \ + ../../../../../temp/cmp/ta_CDLTRISTAR.o \ + ../../../../../temp/cmp/ta_CDLUNIQUE3RIVER.o \ + ../../../../../temp/cmp/ta_CDLUPSIDEGAP2CROWS.o \ + ../../../../../temp/cmp/ta_CDLXSIDEGAP3METHODS.o \ + ../../../../../temp/cmp/ta_CEIL.o \ + ../../../../../temp/cmp/ta_CMO.o \ + ../../../../../temp/cmp/ta_CORREL.o \ + ../../../../../temp/cmp/ta_COS.o \ + ../../../../../temp/cmp/ta_COSH.o \ + ../../../../../temp/cmp/ta_DEMA.o \ + ../../../../../temp/cmp/ta_DIV.o \ + ../../../../../temp/cmp/ta_DX.o \ + ../../../../../temp/cmp/ta_EMA.o \ + ../../../../../temp/cmp/ta_EXP.o \ + ../../../../../temp/cmp/ta_FLOOR.o \ + ../../../../../temp/cmp/ta_HT_DCPERIOD.o \ + ../../../../../temp/cmp/ta_HT_DCPHASE.o \ + ../../../../../temp/cmp/ta_HT_PHASOR.o \ + ../../../../../temp/cmp/ta_HT_SINE.o \ + ../../../../../temp/cmp/ta_HT_TRENDLINE.o \ + ../../../../../temp/cmp/ta_HT_TRENDMODE.o \ + ../../../../../temp/cmp/ta_KAMA.o \ + ../../../../../temp/cmp/ta_LINEARREG.o \ + ../../../../../temp/cmp/ta_LINEARREG_ANGLE.o \ + ../../../../../temp/cmp/ta_LINEARREG_INTERCEPT.o \ + ../../../../../temp/cmp/ta_LINEARREG_SLOPE.o \ + ../../../../../temp/cmp/ta_LN.o \ + ../../../../../temp/cmp/ta_LOG10.o \ + ../../../../../temp/cmp/ta_MA.o \ + ../../../../../temp/cmp/ta_MACD.o \ + ../../../../../temp/cmp/ta_MACDEXT.o \ + ../../../../../temp/cmp/ta_MACDFIX.o \ + ../../../../../temp/cmp/ta_MAMA.o \ + ../../../../../temp/cmp/ta_MAVP.o \ + ../../../../../temp/cmp/ta_MAX.o \ + ../../../../../temp/cmp/ta_MAXINDEX.o \ + ../../../../../temp/cmp/ta_MEDPRICE.o \ + ../../../../../temp/cmp/ta_MFI.o \ + ../../../../../temp/cmp/ta_MIDPOINT.o \ + ../../../../../temp/cmp/ta_MIDPRICE.o \ + ../../../../../temp/cmp/ta_MIN.o \ + ../../../../../temp/cmp/ta_MININDEX.o \ + ../../../../../temp/cmp/ta_MINMAX.o \ + ../../../../../temp/cmp/ta_MINMAXINDEX.o \ + ../../../../../temp/cmp/ta_MINUS_DI.o \ + ../../../../../temp/cmp/ta_MINUS_DM.o \ + ../../../../../temp/cmp/ta_MOM.o \ + ../../../../../temp/cmp/ta_MULT.o \ + ../../../../../temp/cmp/ta_NATR.o \ + ../../../../../temp/cmp/ta_OBV.o \ + ../../../../../temp/cmp/ta_PLUS_DI.o \ + ../../../../../temp/cmp/ta_PLUS_DM.o \ + ../../../../../temp/cmp/ta_PPO.o \ + ../../../../../temp/cmp/ta_ROC.o \ + ../../../../../temp/cmp/ta_ROCP.o \ + ../../../../../temp/cmp/ta_ROCR.o \ + ../../../../../temp/cmp/ta_ROCR100.o \ + ../../../../../temp/cmp/ta_RSI.o \ + ../../../../../temp/cmp/ta_SAR.o \ + ../../../../../temp/cmp/ta_SAREXT.o \ + ../../../../../temp/cmp/ta_SIN.o \ + ../../../../../temp/cmp/ta_SINH.o \ + ../../../../../temp/cmp/ta_SMA.o \ + ../../../../../temp/cmp/ta_SQRT.o \ + ../../../../../temp/cmp/ta_STDDEV.o \ + ../../../../../temp/cmp/ta_STOCH.o \ + ../../../../../temp/cmp/ta_STOCHF.o \ + ../../../../../temp/cmp/ta_STOCHRSI.o \ + ../../../../../temp/cmp/ta_SUB.o \ + ../../../../../temp/cmp/ta_SUM.o \ + ../../../../../temp/cmp/ta_T3.o \ + ../../../../../temp/cmp/ta_TAN.o \ + ../../../../../temp/cmp/ta_TANH.o \ + ../../../../../temp/cmp/ta_TEMA.o \ + ../../../../../temp/cmp/ta_TRANGE.o \ + ../../../../../temp/cmp/ta_TRIMA.o \ + ../../../../../temp/cmp/ta_TRIX.o \ + ../../../../../temp/cmp/ta_TSF.o \ + ../../../../../temp/cmp/ta_TYPPRICE.o \ + ../../../../../temp/cmp/ta_ULTOSC.o \ + ../../../../../temp/cmp/ta_VAR.o \ + ../../../../../temp/cmp/ta_WCLPRICE.o \ + ../../../../../temp/cmp/ta_WILLR.o \ + ../../../../../temp/cmp/ta_WMA.o +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ../../../../../lib/libta_libc_cmp.a +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .C .c + +.cpp.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cxx.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cc.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.C.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.c.o: + $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $< + +####### Build rules + + +all: $(TARGET) + +staticlib: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + -rm -f $(TARGET) + $(AR) $(TARGET) $(OBJECTS) $(OBJMOC) + +moc: $(SRCMOC) + +clean: + -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) + -rm -f *~ core + +####### Sub-libraries + + +###### Combined headers + + +####### Compile + +../../../../../temp/cmp/ta_global.o: ../../../../../src/ta_common/ta_global.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_global.o ../../../../../src/ta_common/ta_global.c + +../../../../../temp/cmp/ta_retcode.o: ../../../../../src/ta_common/ta_retcode.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_retcode.o ../../../../../src/ta_common/ta_retcode.c + +../../../../../temp/cmp/ta_version.o: ../../../../../src/ta_common/ta_version.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_version.o ../../../../../src/ta_common/ta_version.c + +../../../../../temp/cmp/ta_abstract.o: ../../../../../src/ta_abstract/ta_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_abstract.o ../../../../../src/ta_abstract/ta_abstract.c + +../../../../../temp/cmp/ta_def_ui.o: ../../../../../src/ta_abstract/ta_def_ui.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_def_ui.o ../../../../../src/ta_abstract/ta_def_ui.c + +../../../../../temp/cmp/ta_func_api.o: ../../../../../src/ta_abstract/ta_func_api.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_func_api.o ../../../../../src/ta_abstract/ta_func_api.c + +../../../../../temp/cmp/ta_group_idx.o: ../../../../../src/ta_abstract/ta_group_idx.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_group_idx.o ../../../../../src/ta_abstract/ta_group_idx.c + +../../../../../temp/cmp/ta_frame.o: ../../../../../src/ta_abstract/frames/ta_frame.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_frame.o ../../../../../src/ta_abstract/frames/ta_frame.c + +../../../../../temp/cmp/table_a.o: ../../../../../src/ta_abstract/tables/table_a.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_a.o ../../../../../src/ta_abstract/tables/table_a.c + +../../../../../temp/cmp/table_b.o: ../../../../../src/ta_abstract/tables/table_b.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_b.o ../../../../../src/ta_abstract/tables/table_b.c + +../../../../../temp/cmp/table_c.o: ../../../../../src/ta_abstract/tables/table_c.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_c.o ../../../../../src/ta_abstract/tables/table_c.c + +../../../../../temp/cmp/table_d.o: ../../../../../src/ta_abstract/tables/table_d.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_d.o ../../../../../src/ta_abstract/tables/table_d.c + +../../../../../temp/cmp/table_e.o: ../../../../../src/ta_abstract/tables/table_e.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_e.o ../../../../../src/ta_abstract/tables/table_e.c + +../../../../../temp/cmp/table_f.o: ../../../../../src/ta_abstract/tables/table_f.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_f.o ../../../../../src/ta_abstract/tables/table_f.c + +../../../../../temp/cmp/table_g.o: ../../../../../src/ta_abstract/tables/table_g.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_g.o ../../../../../src/ta_abstract/tables/table_g.c + +../../../../../temp/cmp/table_h.o: ../../../../../src/ta_abstract/tables/table_h.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_h.o ../../../../../src/ta_abstract/tables/table_h.c + +../../../../../temp/cmp/table_i.o: ../../../../../src/ta_abstract/tables/table_i.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_i.o ../../../../../src/ta_abstract/tables/table_i.c + +../../../../../temp/cmp/table_j.o: ../../../../../src/ta_abstract/tables/table_j.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_j.o ../../../../../src/ta_abstract/tables/table_j.c + +../../../../../temp/cmp/table_k.o: ../../../../../src/ta_abstract/tables/table_k.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_k.o ../../../../../src/ta_abstract/tables/table_k.c + +../../../../../temp/cmp/table_l.o: ../../../../../src/ta_abstract/tables/table_l.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_l.o ../../../../../src/ta_abstract/tables/table_l.c + +../../../../../temp/cmp/table_m.o: ../../../../../src/ta_abstract/tables/table_m.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_m.o ../../../../../src/ta_abstract/tables/table_m.c + +../../../../../temp/cmp/table_n.o: ../../../../../src/ta_abstract/tables/table_n.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_n.o ../../../../../src/ta_abstract/tables/table_n.c + +../../../../../temp/cmp/table_o.o: ../../../../../src/ta_abstract/tables/table_o.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_o.o ../../../../../src/ta_abstract/tables/table_o.c + +../../../../../temp/cmp/table_p.o: ../../../../../src/ta_abstract/tables/table_p.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_p.o ../../../../../src/ta_abstract/tables/table_p.c + +../../../../../temp/cmp/table_q.o: ../../../../../src/ta_abstract/tables/table_q.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_q.o ../../../../../src/ta_abstract/tables/table_q.c + +../../../../../temp/cmp/table_r.o: ../../../../../src/ta_abstract/tables/table_r.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_r.o ../../../../../src/ta_abstract/tables/table_r.c + +../../../../../temp/cmp/table_s.o: ../../../../../src/ta_abstract/tables/table_s.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_s.o ../../../../../src/ta_abstract/tables/table_s.c + +../../../../../temp/cmp/table_t.o: ../../../../../src/ta_abstract/tables/table_t.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_t.o ../../../../../src/ta_abstract/tables/table_t.c + +../../../../../temp/cmp/table_u.o: ../../../../../src/ta_abstract/tables/table_u.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_u.o ../../../../../src/ta_abstract/tables/table_u.c + +../../../../../temp/cmp/table_v.o: ../../../../../src/ta_abstract/tables/table_v.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_v.o ../../../../../src/ta_abstract/tables/table_v.c + +../../../../../temp/cmp/table_w.o: ../../../../../src/ta_abstract/tables/table_w.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_w.o ../../../../../src/ta_abstract/tables/table_w.c + +../../../../../temp/cmp/table_x.o: ../../../../../src/ta_abstract/tables/table_x.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_x.o ../../../../../src/ta_abstract/tables/table_x.c + +../../../../../temp/cmp/table_y.o: ../../../../../src/ta_abstract/tables/table_y.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_y.o ../../../../../src/ta_abstract/tables/table_y.c + +../../../../../temp/cmp/table_z.o: ../../../../../src/ta_abstract/tables/table_z.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_z.o ../../../../../src/ta_abstract/tables/table_z.c + +../../../../../temp/cmp/ta_utility.o: ../../../../../src/ta_func/ta_utility.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_utility.o ../../../../../src/ta_func/ta_utility.c + +../../../../../temp/cmp/ta_ACOS.o: ../../../../../src/ta_func/ta_ACOS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_ACOS.o ../../../../../src/ta_func/ta_ACOS.c + +../../../../../temp/cmp/ta_AD.o: ../../../../../src/ta_func/ta_AD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_AD.o ../../../../../src/ta_func/ta_AD.c + +../../../../../temp/cmp/ta_ADD.o: ../../../../../src/ta_func/ta_ADD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_ADD.o ../../../../../src/ta_func/ta_ADD.c + +../../../../../temp/cmp/ta_ADOSC.o: ../../../../../src/ta_func/ta_ADOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_ADOSC.o ../../../../../src/ta_func/ta_ADOSC.c + +../../../../../temp/cmp/ta_ADX.o: ../../../../../src/ta_func/ta_ADX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_ADX.o ../../../../../src/ta_func/ta_ADX.c + +../../../../../temp/cmp/ta_ADXR.o: ../../../../../src/ta_func/ta_ADXR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_ADXR.o ../../../../../src/ta_func/ta_ADXR.c + +../../../../../temp/cmp/ta_APO.o: ../../../../../src/ta_func/ta_APO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_APO.o ../../../../../src/ta_func/ta_APO.c + +../../../../../temp/cmp/ta_AROON.o: ../../../../../src/ta_func/ta_AROON.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_AROON.o ../../../../../src/ta_func/ta_AROON.c + +../../../../../temp/cmp/ta_AROONOSC.o: ../../../../../src/ta_func/ta_AROONOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_AROONOSC.o ../../../../../src/ta_func/ta_AROONOSC.c + +../../../../../temp/cmp/ta_ASIN.o: ../../../../../src/ta_func/ta_ASIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_ASIN.o ../../../../../src/ta_func/ta_ASIN.c + +../../../../../temp/cmp/ta_ATAN.o: ../../../../../src/ta_func/ta_ATAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_ATAN.o ../../../../../src/ta_func/ta_ATAN.c + +../../../../../temp/cmp/ta_ATR.o: ../../../../../src/ta_func/ta_ATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_ATR.o ../../../../../src/ta_func/ta_ATR.c + +../../../../../temp/cmp/ta_AVGPRICE.o: ../../../../../src/ta_func/ta_AVGPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_AVGPRICE.o ../../../../../src/ta_func/ta_AVGPRICE.c + +../../../../../temp/cmp/ta_BBANDS.o: ../../../../../src/ta_func/ta_BBANDS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_BBANDS.o ../../../../../src/ta_func/ta_BBANDS.c + +../../../../../temp/cmp/ta_BETA.o: ../../../../../src/ta_func/ta_BETA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_BETA.o ../../../../../src/ta_func/ta_BETA.c + +../../../../../temp/cmp/ta_BOP.o: ../../../../../src/ta_func/ta_BOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_BOP.o ../../../../../src/ta_func/ta_BOP.c + +../../../../../temp/cmp/ta_CCI.o: ../../../../../src/ta_func/ta_CCI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CCI.o ../../../../../src/ta_func/ta_CCI.c + +../../../../../temp/cmp/ta_CDL2CROWS.o: ../../../../../src/ta_func/ta_CDL2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDL2CROWS.o ../../../../../src/ta_func/ta_CDL2CROWS.c + +../../../../../temp/cmp/ta_CDL3BLACKCROWS.o: ../../../../../src/ta_func/ta_CDL3BLACKCROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDL3BLACKCROWS.o ../../../../../src/ta_func/ta_CDL3BLACKCROWS.c + +../../../../../temp/cmp/ta_CDL3INSIDE.o: ../../../../../src/ta_func/ta_CDL3INSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDL3INSIDE.o ../../../../../src/ta_func/ta_CDL3INSIDE.c + +../../../../../temp/cmp/ta_CDL3LINESTRIKE.o: ../../../../../src/ta_func/ta_CDL3LINESTRIKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDL3LINESTRIKE.o ../../../../../src/ta_func/ta_CDL3LINESTRIKE.c + +../../../../../temp/cmp/ta_CDL3OUTSIDE.o: ../../../../../src/ta_func/ta_CDL3OUTSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDL3OUTSIDE.o ../../../../../src/ta_func/ta_CDL3OUTSIDE.c + +../../../../../temp/cmp/ta_CDL3STARSINSOUTH.o: ../../../../../src/ta_func/ta_CDL3STARSINSOUTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDL3STARSINSOUTH.o ../../../../../src/ta_func/ta_CDL3STARSINSOUTH.c + +../../../../../temp/cmp/ta_CDL3WHITESOLDIERS.o: ../../../../../src/ta_func/ta_CDL3WHITESOLDIERS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDL3WHITESOLDIERS.o ../../../../../src/ta_func/ta_CDL3WHITESOLDIERS.c + +../../../../../temp/cmp/ta_CDLABANDONEDBABY.o: ../../../../../src/ta_func/ta_CDLABANDONEDBABY.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLABANDONEDBABY.o ../../../../../src/ta_func/ta_CDLABANDONEDBABY.c + +../../../../../temp/cmp/ta_CDLADVANCEBLOCK.o: ../../../../../src/ta_func/ta_CDLADVANCEBLOCK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLADVANCEBLOCK.o ../../../../../src/ta_func/ta_CDLADVANCEBLOCK.c + +../../../../../temp/cmp/ta_CDLBELTHOLD.o: ../../../../../src/ta_func/ta_CDLBELTHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLBELTHOLD.o ../../../../../src/ta_func/ta_CDLBELTHOLD.c + +../../../../../temp/cmp/ta_CDLBREAKAWAY.o: ../../../../../src/ta_func/ta_CDLBREAKAWAY.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLBREAKAWAY.o ../../../../../src/ta_func/ta_CDLBREAKAWAY.c + +../../../../../temp/cmp/ta_CDLCLOSINGMARUBOZU.o: ../../../../../src/ta_func/ta_CDLCLOSINGMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLCLOSINGMARUBOZU.o ../../../../../src/ta_func/ta_CDLCLOSINGMARUBOZU.c + +../../../../../temp/cmp/ta_CDLCONCEALBABYSWALL.o: ../../../../../src/ta_func/ta_CDLCONCEALBABYSWALL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLCONCEALBABYSWALL.o ../../../../../src/ta_func/ta_CDLCONCEALBABYSWALL.c + +../../../../../temp/cmp/ta_CDLCOUNTERATTACK.o: ../../../../../src/ta_func/ta_CDLCOUNTERATTACK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLCOUNTERATTACK.o ../../../../../src/ta_func/ta_CDLCOUNTERATTACK.c + +../../../../../temp/cmp/ta_CDLDARKCLOUDCOVER.o: ../../../../../src/ta_func/ta_CDLDARKCLOUDCOVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLDARKCLOUDCOVER.o ../../../../../src/ta_func/ta_CDLDARKCLOUDCOVER.c + +../../../../../temp/cmp/ta_CDLDOJI.o: ../../../../../src/ta_func/ta_CDLDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLDOJI.o ../../../../../src/ta_func/ta_CDLDOJI.c + +../../../../../temp/cmp/ta_CDLDOJISTAR.o: ../../../../../src/ta_func/ta_CDLDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLDOJISTAR.o ../../../../../src/ta_func/ta_CDLDOJISTAR.c + +../../../../../temp/cmp/ta_CDLDRAGONFLYDOJI.o: ../../../../../src/ta_func/ta_CDLDRAGONFLYDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLDRAGONFLYDOJI.o ../../../../../src/ta_func/ta_CDLDRAGONFLYDOJI.c + +../../../../../temp/cmp/ta_CDLENGULFING.o: ../../../../../src/ta_func/ta_CDLENGULFING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLENGULFING.o ../../../../../src/ta_func/ta_CDLENGULFING.c + +../../../../../temp/cmp/ta_CDLEVENINGDOJISTAR.o: ../../../../../src/ta_func/ta_CDLEVENINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLEVENINGDOJISTAR.o ../../../../../src/ta_func/ta_CDLEVENINGDOJISTAR.c + +../../../../../temp/cmp/ta_CDLEVENINGSTAR.o: ../../../../../src/ta_func/ta_CDLEVENINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLEVENINGSTAR.o ../../../../../src/ta_func/ta_CDLEVENINGSTAR.c + +../../../../../temp/cmp/ta_CDLGAPSIDESIDEWHITE.o: ../../../../../src/ta_func/ta_CDLGAPSIDESIDEWHITE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLGAPSIDESIDEWHITE.o ../../../../../src/ta_func/ta_CDLGAPSIDESIDEWHITE.c + +../../../../../temp/cmp/ta_CDLGRAVESTONEDOJI.o: ../../../../../src/ta_func/ta_CDLGRAVESTONEDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLGRAVESTONEDOJI.o ../../../../../src/ta_func/ta_CDLGRAVESTONEDOJI.c + +../../../../../temp/cmp/ta_CDLHAMMER.o: ../../../../../src/ta_func/ta_CDLHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLHAMMER.o ../../../../../src/ta_func/ta_CDLHAMMER.c + +../../../../../temp/cmp/ta_CDLHANGINGMAN.o: ../../../../../src/ta_func/ta_CDLHANGINGMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLHANGINGMAN.o ../../../../../src/ta_func/ta_CDLHANGINGMAN.c + +../../../../../temp/cmp/ta_CDLHARAMI.o: ../../../../../src/ta_func/ta_CDLHARAMI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLHARAMI.o ../../../../../src/ta_func/ta_CDLHARAMI.c + +../../../../../temp/cmp/ta_CDLHARAMICROSS.o: ../../../../../src/ta_func/ta_CDLHARAMICROSS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLHARAMICROSS.o ../../../../../src/ta_func/ta_CDLHARAMICROSS.c + +../../../../../temp/cmp/ta_CDLHIGHWAVE.o: ../../../../../src/ta_func/ta_CDLHIGHWAVE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLHIGHWAVE.o ../../../../../src/ta_func/ta_CDLHIGHWAVE.c + +../../../../../temp/cmp/ta_CDLHIKKAKE.o: ../../../../../src/ta_func/ta_CDLHIKKAKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLHIKKAKE.o ../../../../../src/ta_func/ta_CDLHIKKAKE.c + +../../../../../temp/cmp/ta_CDLHIKKAKEMOD.o: ../../../../../src/ta_func/ta_CDLHIKKAKEMOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLHIKKAKEMOD.o ../../../../../src/ta_func/ta_CDLHIKKAKEMOD.c + +../../../../../temp/cmp/ta_CDLHOMINGPIGEON.o: ../../../../../src/ta_func/ta_CDLHOMINGPIGEON.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLHOMINGPIGEON.o ../../../../../src/ta_func/ta_CDLHOMINGPIGEON.c + +../../../../../temp/cmp/ta_CDLIDENTICAL3CROWS.o: ../../../../../src/ta_func/ta_CDLIDENTICAL3CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLIDENTICAL3CROWS.o ../../../../../src/ta_func/ta_CDLIDENTICAL3CROWS.c + +../../../../../temp/cmp/ta_CDLINNECK.o: ../../../../../src/ta_func/ta_CDLINNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLINNECK.o ../../../../../src/ta_func/ta_CDLINNECK.c + +../../../../../temp/cmp/ta_CDLINVERTEDHAMMER.o: ../../../../../src/ta_func/ta_CDLINVERTEDHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLINVERTEDHAMMER.o ../../../../../src/ta_func/ta_CDLINVERTEDHAMMER.c + +../../../../../temp/cmp/ta_CDLKICKING.o: ../../../../../src/ta_func/ta_CDLKICKING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLKICKING.o ../../../../../src/ta_func/ta_CDLKICKING.c + +../../../../../temp/cmp/ta_CDLKICKINGBYLENGTH.o: ../../../../../src/ta_func/ta_CDLKICKINGBYLENGTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLKICKINGBYLENGTH.o ../../../../../src/ta_func/ta_CDLKICKINGBYLENGTH.c + +../../../../../temp/cmp/ta_CDLLADDERBOTTOM.o: ../../../../../src/ta_func/ta_CDLLADDERBOTTOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLLADDERBOTTOM.o ../../../../../src/ta_func/ta_CDLLADDERBOTTOM.c + +../../../../../temp/cmp/ta_CDLLONGLEGGEDDOJI.o: ../../../../../src/ta_func/ta_CDLLONGLEGGEDDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLLONGLEGGEDDOJI.o ../../../../../src/ta_func/ta_CDLLONGLEGGEDDOJI.c + +../../../../../temp/cmp/ta_CDLLONGLINE.o: ../../../../../src/ta_func/ta_CDLLONGLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLLONGLINE.o ../../../../../src/ta_func/ta_CDLLONGLINE.c + +../../../../../temp/cmp/ta_CDLMARUBOZU.o: ../../../../../src/ta_func/ta_CDLMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLMARUBOZU.o ../../../../../src/ta_func/ta_CDLMARUBOZU.c + +../../../../../temp/cmp/ta_CDLMATCHINGLOW.o: ../../../../../src/ta_func/ta_CDLMATCHINGLOW.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLMATCHINGLOW.o ../../../../../src/ta_func/ta_CDLMATCHINGLOW.c + +../../../../../temp/cmp/ta_CDLMATHOLD.o: ../../../../../src/ta_func/ta_CDLMATHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLMATHOLD.o ../../../../../src/ta_func/ta_CDLMATHOLD.c + +../../../../../temp/cmp/ta_CDLMORNINGDOJISTAR.o: ../../../../../src/ta_func/ta_CDLMORNINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLMORNINGDOJISTAR.o ../../../../../src/ta_func/ta_CDLMORNINGDOJISTAR.c + +../../../../../temp/cmp/ta_CDLMORNINGSTAR.o: ../../../../../src/ta_func/ta_CDLMORNINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLMORNINGSTAR.o ../../../../../src/ta_func/ta_CDLMORNINGSTAR.c + +../../../../../temp/cmp/ta_CDLONNECK.o: ../../../../../src/ta_func/ta_CDLONNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLONNECK.o ../../../../../src/ta_func/ta_CDLONNECK.c + +../../../../../temp/cmp/ta_CDLPIERCING.o: ../../../../../src/ta_func/ta_CDLPIERCING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLPIERCING.o ../../../../../src/ta_func/ta_CDLPIERCING.c + +../../../../../temp/cmp/ta_CDLRICKSHAWMAN.o: ../../../../../src/ta_func/ta_CDLRICKSHAWMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLRICKSHAWMAN.o ../../../../../src/ta_func/ta_CDLRICKSHAWMAN.c + +../../../../../temp/cmp/ta_CDLRISEFALL3METHODS.o: ../../../../../src/ta_func/ta_CDLRISEFALL3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLRISEFALL3METHODS.o ../../../../../src/ta_func/ta_CDLRISEFALL3METHODS.c + +../../../../../temp/cmp/ta_CDLSEPARATINGLINES.o: ../../../../../src/ta_func/ta_CDLSEPARATINGLINES.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLSEPARATINGLINES.o ../../../../../src/ta_func/ta_CDLSEPARATINGLINES.c + +../../../../../temp/cmp/ta_CDLSHOOTINGSTAR.o: ../../../../../src/ta_func/ta_CDLSHOOTINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLSHOOTINGSTAR.o ../../../../../src/ta_func/ta_CDLSHOOTINGSTAR.c + +../../../../../temp/cmp/ta_CDLSHORTLINE.o: ../../../../../src/ta_func/ta_CDLSHORTLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLSHORTLINE.o ../../../../../src/ta_func/ta_CDLSHORTLINE.c + +../../../../../temp/cmp/ta_CDLSPINNINGTOP.o: ../../../../../src/ta_func/ta_CDLSPINNINGTOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLSPINNINGTOP.o ../../../../../src/ta_func/ta_CDLSPINNINGTOP.c + +../../../../../temp/cmp/ta_CDLSTALLEDPATTERN.o: ../../../../../src/ta_func/ta_CDLSTALLEDPATTERN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLSTALLEDPATTERN.o ../../../../../src/ta_func/ta_CDLSTALLEDPATTERN.c + +../../../../../temp/cmp/ta_CDLSTICKSANDWICH.o: ../../../../../src/ta_func/ta_CDLSTICKSANDWICH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLSTICKSANDWICH.o ../../../../../src/ta_func/ta_CDLSTICKSANDWICH.c + +../../../../../temp/cmp/ta_CDLTAKURI.o: ../../../../../src/ta_func/ta_CDLTAKURI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLTAKURI.o ../../../../../src/ta_func/ta_CDLTAKURI.c + +../../../../../temp/cmp/ta_CDLTASUKIGAP.o: ../../../../../src/ta_func/ta_CDLTASUKIGAP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLTASUKIGAP.o ../../../../../src/ta_func/ta_CDLTASUKIGAP.c + +../../../../../temp/cmp/ta_CDLTHRUSTING.o: ../../../../../src/ta_func/ta_CDLTHRUSTING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLTHRUSTING.o ../../../../../src/ta_func/ta_CDLTHRUSTING.c + +../../../../../temp/cmp/ta_CDLTRISTAR.o: ../../../../../src/ta_func/ta_CDLTRISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLTRISTAR.o ../../../../../src/ta_func/ta_CDLTRISTAR.c + +../../../../../temp/cmp/ta_CDLUNIQUE3RIVER.o: ../../../../../src/ta_func/ta_CDLUNIQUE3RIVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLUNIQUE3RIVER.o ../../../../../src/ta_func/ta_CDLUNIQUE3RIVER.c + +../../../../../temp/cmp/ta_CDLUPSIDEGAP2CROWS.o: ../../../../../src/ta_func/ta_CDLUPSIDEGAP2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLUPSIDEGAP2CROWS.o ../../../../../src/ta_func/ta_CDLUPSIDEGAP2CROWS.c + +../../../../../temp/cmp/ta_CDLXSIDEGAP3METHODS.o: ../../../../../src/ta_func/ta_CDLXSIDEGAP3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLXSIDEGAP3METHODS.o ../../../../../src/ta_func/ta_CDLXSIDEGAP3METHODS.c + +../../../../../temp/cmp/ta_CEIL.o: ../../../../../src/ta_func/ta_CEIL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CEIL.o ../../../../../src/ta_func/ta_CEIL.c + +../../../../../temp/cmp/ta_CMO.o: ../../../../../src/ta_func/ta_CMO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CMO.o ../../../../../src/ta_func/ta_CMO.c + +../../../../../temp/cmp/ta_CORREL.o: ../../../../../src/ta_func/ta_CORREL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CORREL.o ../../../../../src/ta_func/ta_CORREL.c + +../../../../../temp/cmp/ta_COS.o: ../../../../../src/ta_func/ta_COS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_COS.o ../../../../../src/ta_func/ta_COS.c + +../../../../../temp/cmp/ta_COSH.o: ../../../../../src/ta_func/ta_COSH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_COSH.o ../../../../../src/ta_func/ta_COSH.c + +../../../../../temp/cmp/ta_DEMA.o: ../../../../../src/ta_func/ta_DEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_DEMA.o ../../../../../src/ta_func/ta_DEMA.c + +../../../../../temp/cmp/ta_DIV.o: ../../../../../src/ta_func/ta_DIV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_DIV.o ../../../../../src/ta_func/ta_DIV.c + +../../../../../temp/cmp/ta_DX.o: ../../../../../src/ta_func/ta_DX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_DX.o ../../../../../src/ta_func/ta_DX.c + +../../../../../temp/cmp/ta_EMA.o: ../../../../../src/ta_func/ta_EMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_EMA.o ../../../../../src/ta_func/ta_EMA.c + +../../../../../temp/cmp/ta_EXP.o: ../../../../../src/ta_func/ta_EXP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_EXP.o ../../../../../src/ta_func/ta_EXP.c + +../../../../../temp/cmp/ta_FLOOR.o: ../../../../../src/ta_func/ta_FLOOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_FLOOR.o ../../../../../src/ta_func/ta_FLOOR.c + +../../../../../temp/cmp/ta_HT_DCPERIOD.o: ../../../../../src/ta_func/ta_HT_DCPERIOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_HT_DCPERIOD.o ../../../../../src/ta_func/ta_HT_DCPERIOD.c + +../../../../../temp/cmp/ta_HT_DCPHASE.o: ../../../../../src/ta_func/ta_HT_DCPHASE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_HT_DCPHASE.o ../../../../../src/ta_func/ta_HT_DCPHASE.c + +../../../../../temp/cmp/ta_HT_PHASOR.o: ../../../../../src/ta_func/ta_HT_PHASOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_HT_PHASOR.o ../../../../../src/ta_func/ta_HT_PHASOR.c + +../../../../../temp/cmp/ta_HT_SINE.o: ../../../../../src/ta_func/ta_HT_SINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_HT_SINE.o ../../../../../src/ta_func/ta_HT_SINE.c + +../../../../../temp/cmp/ta_HT_TRENDLINE.o: ../../../../../src/ta_func/ta_HT_TRENDLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_HT_TRENDLINE.o ../../../../../src/ta_func/ta_HT_TRENDLINE.c + +../../../../../temp/cmp/ta_HT_TRENDMODE.o: ../../../../../src/ta_func/ta_HT_TRENDMODE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_HT_TRENDMODE.o ../../../../../src/ta_func/ta_HT_TRENDMODE.c + +../../../../../temp/cmp/ta_KAMA.o: ../../../../../src/ta_func/ta_KAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_KAMA.o ../../../../../src/ta_func/ta_KAMA.c + +../../../../../temp/cmp/ta_LINEARREG.o: ../../../../../src/ta_func/ta_LINEARREG.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_LINEARREG.o ../../../../../src/ta_func/ta_LINEARREG.c + +../../../../../temp/cmp/ta_LINEARREG_ANGLE.o: ../../../../../src/ta_func/ta_LINEARREG_ANGLE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_LINEARREG_ANGLE.o ../../../../../src/ta_func/ta_LINEARREG_ANGLE.c + +../../../../../temp/cmp/ta_LINEARREG_INTERCEPT.o: ../../../../../src/ta_func/ta_LINEARREG_INTERCEPT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_LINEARREG_INTERCEPT.o ../../../../../src/ta_func/ta_LINEARREG_INTERCEPT.c + +../../../../../temp/cmp/ta_LINEARREG_SLOPE.o: ../../../../../src/ta_func/ta_LINEARREG_SLOPE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_LINEARREG_SLOPE.o ../../../../../src/ta_func/ta_LINEARREG_SLOPE.c + +../../../../../temp/cmp/ta_LN.o: ../../../../../src/ta_func/ta_LN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_LN.o ../../../../../src/ta_func/ta_LN.c + +../../../../../temp/cmp/ta_LOG10.o: ../../../../../src/ta_func/ta_LOG10.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_LOG10.o ../../../../../src/ta_func/ta_LOG10.c + +../../../../../temp/cmp/ta_MA.o: ../../../../../src/ta_func/ta_MA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_MA.o ../../../../../src/ta_func/ta_MA.c + +../../../../../temp/cmp/ta_MACD.o: ../../../../../src/ta_func/ta_MACD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_MACD.o ../../../../../src/ta_func/ta_MACD.c + +../../../../../temp/cmp/ta_MACDEXT.o: ../../../../../src/ta_func/ta_MACDEXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_MACDEXT.o ../../../../../src/ta_func/ta_MACDEXT.c + +../../../../../temp/cmp/ta_MACDFIX.o: ../../../../../src/ta_func/ta_MACDFIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_MACDFIX.o ../../../../../src/ta_func/ta_MACDFIX.c + +../../../../../temp/cmp/ta_MAMA.o: ../../../../../src/ta_func/ta_MAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_MAMA.o ../../../../../src/ta_func/ta_MAMA.c + +../../../../../temp/cmp/ta_MAVP.o: ../../../../../src/ta_func/ta_MAVP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_MAVP.o ../../../../../src/ta_func/ta_MAVP.c + +../../../../../temp/cmp/ta_MAX.o: ../../../../../src/ta_func/ta_MAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_MAX.o ../../../../../src/ta_func/ta_MAX.c + +../../../../../temp/cmp/ta_MAXINDEX.o: ../../../../../src/ta_func/ta_MAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_MAXINDEX.o ../../../../../src/ta_func/ta_MAXINDEX.c + +../../../../../temp/cmp/ta_MEDPRICE.o: ../../../../../src/ta_func/ta_MEDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_MEDPRICE.o ../../../../../src/ta_func/ta_MEDPRICE.c + +../../../../../temp/cmp/ta_MFI.o: ../../../../../src/ta_func/ta_MFI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_MFI.o ../../../../../src/ta_func/ta_MFI.c + +../../../../../temp/cmp/ta_MIDPOINT.o: ../../../../../src/ta_func/ta_MIDPOINT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_MIDPOINT.o ../../../../../src/ta_func/ta_MIDPOINT.c + +../../../../../temp/cmp/ta_MIDPRICE.o: ../../../../../src/ta_func/ta_MIDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_MIDPRICE.o ../../../../../src/ta_func/ta_MIDPRICE.c + +../../../../../temp/cmp/ta_MIN.o: ../../../../../src/ta_func/ta_MIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_MIN.o ../../../../../src/ta_func/ta_MIN.c + +../../../../../temp/cmp/ta_MININDEX.o: ../../../../../src/ta_func/ta_MININDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_MININDEX.o ../../../../../src/ta_func/ta_MININDEX.c + +../../../../../temp/cmp/ta_MINMAX.o: ../../../../../src/ta_func/ta_MINMAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_MINMAX.o ../../../../../src/ta_func/ta_MINMAX.c + +../../../../../temp/cmp/ta_MINMAXINDEX.o: ../../../../../src/ta_func/ta_MINMAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_MINMAXINDEX.o ../../../../../src/ta_func/ta_MINMAXINDEX.c + +../../../../../temp/cmp/ta_MINUS_DI.o: ../../../../../src/ta_func/ta_MINUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_MINUS_DI.o ../../../../../src/ta_func/ta_MINUS_DI.c + +../../../../../temp/cmp/ta_MINUS_DM.o: ../../../../../src/ta_func/ta_MINUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_MINUS_DM.o ../../../../../src/ta_func/ta_MINUS_DM.c + +../../../../../temp/cmp/ta_MOM.o: ../../../../../src/ta_func/ta_MOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_MOM.o ../../../../../src/ta_func/ta_MOM.c + +../../../../../temp/cmp/ta_MULT.o: ../../../../../src/ta_func/ta_MULT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_MULT.o ../../../../../src/ta_func/ta_MULT.c + +../../../../../temp/cmp/ta_NATR.o: ../../../../../src/ta_func/ta_NATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_NATR.o ../../../../../src/ta_func/ta_NATR.c + +../../../../../temp/cmp/ta_OBV.o: ../../../../../src/ta_func/ta_OBV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_OBV.o ../../../../../src/ta_func/ta_OBV.c + +../../../../../temp/cmp/ta_PLUS_DI.o: ../../../../../src/ta_func/ta_PLUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_PLUS_DI.o ../../../../../src/ta_func/ta_PLUS_DI.c + +../../../../../temp/cmp/ta_PLUS_DM.o: ../../../../../src/ta_func/ta_PLUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_PLUS_DM.o ../../../../../src/ta_func/ta_PLUS_DM.c + +../../../../../temp/cmp/ta_PPO.o: ../../../../../src/ta_func/ta_PPO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_PPO.o ../../../../../src/ta_func/ta_PPO.c + +../../../../../temp/cmp/ta_ROC.o: ../../../../../src/ta_func/ta_ROC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_ROC.o ../../../../../src/ta_func/ta_ROC.c + +../../../../../temp/cmp/ta_ROCP.o: ../../../../../src/ta_func/ta_ROCP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_ROCP.o ../../../../../src/ta_func/ta_ROCP.c + +../../../../../temp/cmp/ta_ROCR.o: ../../../../../src/ta_func/ta_ROCR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_ROCR.o ../../../../../src/ta_func/ta_ROCR.c + +../../../../../temp/cmp/ta_ROCR100.o: ../../../../../src/ta_func/ta_ROCR100.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_ROCR100.o ../../../../../src/ta_func/ta_ROCR100.c + +../../../../../temp/cmp/ta_RSI.o: ../../../../../src/ta_func/ta_RSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_RSI.o ../../../../../src/ta_func/ta_RSI.c + +../../../../../temp/cmp/ta_SAR.o: ../../../../../src/ta_func/ta_SAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_SAR.o ../../../../../src/ta_func/ta_SAR.c + +../../../../../temp/cmp/ta_SAREXT.o: ../../../../../src/ta_func/ta_SAREXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_SAREXT.o ../../../../../src/ta_func/ta_SAREXT.c + +../../../../../temp/cmp/ta_SIN.o: ../../../../../src/ta_func/ta_SIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_SIN.o ../../../../../src/ta_func/ta_SIN.c + +../../../../../temp/cmp/ta_SINH.o: ../../../../../src/ta_func/ta_SINH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_SINH.o ../../../../../src/ta_func/ta_SINH.c + +../../../../../temp/cmp/ta_SMA.o: ../../../../../src/ta_func/ta_SMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_SMA.o ../../../../../src/ta_func/ta_SMA.c + +../../../../../temp/cmp/ta_SQRT.o: ../../../../../src/ta_func/ta_SQRT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_SQRT.o ../../../../../src/ta_func/ta_SQRT.c + +../../../../../temp/cmp/ta_STDDEV.o: ../../../../../src/ta_func/ta_STDDEV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_STDDEV.o ../../../../../src/ta_func/ta_STDDEV.c + +../../../../../temp/cmp/ta_STOCH.o: ../../../../../src/ta_func/ta_STOCH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_STOCH.o ../../../../../src/ta_func/ta_STOCH.c + +../../../../../temp/cmp/ta_STOCHF.o: ../../../../../src/ta_func/ta_STOCHF.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_STOCHF.o ../../../../../src/ta_func/ta_STOCHF.c + +../../../../../temp/cmp/ta_STOCHRSI.o: ../../../../../src/ta_func/ta_STOCHRSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_STOCHRSI.o ../../../../../src/ta_func/ta_STOCHRSI.c + +../../../../../temp/cmp/ta_SUB.o: ../../../../../src/ta_func/ta_SUB.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_SUB.o ../../../../../src/ta_func/ta_SUB.c + +../../../../../temp/cmp/ta_SUM.o: ../../../../../src/ta_func/ta_SUM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_SUM.o ../../../../../src/ta_func/ta_SUM.c + +../../../../../temp/cmp/ta_T3.o: ../../../../../src/ta_func/ta_T3.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_T3.o ../../../../../src/ta_func/ta_T3.c + +../../../../../temp/cmp/ta_TAN.o: ../../../../../src/ta_func/ta_TAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_TAN.o ../../../../../src/ta_func/ta_TAN.c + +../../../../../temp/cmp/ta_TANH.o: ../../../../../src/ta_func/ta_TANH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_TANH.o ../../../../../src/ta_func/ta_TANH.c + +../../../../../temp/cmp/ta_TEMA.o: ../../../../../src/ta_func/ta_TEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_TEMA.o ../../../../../src/ta_func/ta_TEMA.c + +../../../../../temp/cmp/ta_TRANGE.o: ../../../../../src/ta_func/ta_TRANGE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_TRANGE.o ../../../../../src/ta_func/ta_TRANGE.c + +../../../../../temp/cmp/ta_TRIMA.o: ../../../../../src/ta_func/ta_TRIMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_TRIMA.o ../../../../../src/ta_func/ta_TRIMA.c + +../../../../../temp/cmp/ta_TRIX.o: ../../../../../src/ta_func/ta_TRIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_TRIX.o ../../../../../src/ta_func/ta_TRIX.c + +../../../../../temp/cmp/ta_TSF.o: ../../../../../src/ta_func/ta_TSF.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_TSF.o ../../../../../src/ta_func/ta_TSF.c + +../../../../../temp/cmp/ta_TYPPRICE.o: ../../../../../src/ta_func/ta_TYPPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_TYPPRICE.o ../../../../../src/ta_func/ta_TYPPRICE.c + +../../../../../temp/cmp/ta_ULTOSC.o: ../../../../../src/ta_func/ta_ULTOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_ULTOSC.o ../../../../../src/ta_func/ta_ULTOSC.c + +../../../../../temp/cmp/ta_VAR.o: ../../../../../src/ta_func/ta_VAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_VAR.o ../../../../../src/ta_func/ta_VAR.c + +../../../../../temp/cmp/ta_WCLPRICE.o: ../../../../../src/ta_func/ta_WCLPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_WCLPRICE.o ../../../../../src/ta_func/ta_WCLPRICE.c + +../../../../../temp/cmp/ta_WILLR.o: ../../../../../src/ta_func/ta_WILLR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_WILLR.o ../../../../../src/ta_func/ta_WILLR.c + +../../../../../temp/cmp/ta_WMA.o: ../../../../../src/ta_func/ta_WMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_WMA.o ../../../../../src/ta_func/ta_WMA.c + diff --git a/make/cmp/cygwin/g++/ta_regtest/Makefile b/make/cmp/cygwin/g++/ta_regtest/Makefile new file mode 100644 index 000000000..af06290aa --- /dev/null +++ b/make/cmp/cygwin/g++/ta_regtest/Makefile @@ -0,0 +1,211 @@ +############################################################################# +# Makefile for building ../../../../../bin/ta_regtest +# Generated by tmake; +# Project: ta_regtest/ta_regtest +# Template: app +############################################################################# + +####### Compiler, tools and options + +CC = gcc +CXX = g++ +CFLAGS = -pipe -Wall -W -g -O -pg -D_REENTRANT -DTA_DEBUG -D_DEBUG -DQT_THREAD_SUPPORT +CXXFLAGS= -pipe -Wall -W -g -D_REENTRANT -DTA_DEBUG -D_DEBUG -DQT_THREAD_SUPPORT +INCPATH = -I../../../../../src/ta_common -I../../../../../src/tools/ta_regtest -I../../../../../src/ta_func -I../../../../../include +LINK = g++ +LFLAGS = -pg +LIBS = $(SUBLIBS) ../../../../../lib/libta_libc_cmp.a -lpthread +MOC = $(QTDIR)/bin/moc +UIC = $(QTDIR)/bin/uic + +TAR = tar -cf +GZIP = gzip -9f + +####### Support for 64-bit systems +ifeq ($(shell uname -m), x86_64) + CFLAGS += -march=x86-64 -m64 -D__64BIT__ + CXXFLAGS += -march=x86-64 -m64 -D__64BIT__ +endif + +####### Apply additional overruling user flags, if any +CFLAGS += $(CUSERFLAGS) +CXXFLAGS += $(CUSERFLAGS) + +####### Files + +HEADERS = +SOURCES = ../../../../../src/tools/ta_regtest/ta_regtest.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_candlestick.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_1in_1out.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_1in_2out.c \ + ../../../../../src/tools/ta_regtest/test_internals.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_adx.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_bbands.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_ma.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_macd.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_minmax.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_mom.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_per_ema.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hl.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hlc.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hlcv.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_per_ohlc.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_po.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_rsi.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_sar.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_stddev.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_stoch.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_trange.c \ + ../../../../../src/tools/ta_regtest/test_util.c \ + ../../../../../src/tools/ta_regtest/test_data.c \ + ../../../../../src/tools/ta_regtest/test_abstract.c +OBJECTS = ../../../../../temp/cmp/ta_regtest.o \ + ../../../../../temp/cmp/test_candlestick.o \ + ../../../../../temp/cmp/test_1in_1out.o \ + ../../../../../temp/cmp/test_1in_2out.o \ + ../../../../../temp/cmp/test_internals.o \ + ../../../../../temp/cmp/test_adx.o \ + ../../../../../temp/cmp/test_bbands.o \ + ../../../../../temp/cmp/test_ma.o \ + ../../../../../temp/cmp/test_macd.o \ + ../../../../../temp/cmp/test_minmax.o \ + ../../../../../temp/cmp/test_mom.o \ + ../../../../../temp/cmp/test_per_ema.o \ + ../../../../../temp/cmp/test_per_hl.o \ + ../../../../../temp/cmp/test_per_hlc.o \ + ../../../../../temp/cmp/test_per_hlcv.o \ + ../../../../../temp/cmp/test_per_ohlc.o \ + ../../../../../temp/cmp/test_po.o \ + ../../../../../temp/cmp/test_rsi.o \ + ../../../../../temp/cmp/test_sar.o \ + ../../../../../temp/cmp/test_stddev.o \ + ../../../../../temp/cmp/test_stoch.o \ + ../../../../../temp/cmp/test_trange.o \ + ../../../../../temp/cmp/test_util.o \ + ../../../../../temp/cmp/test_data.o \ + ../../../../../temp/cmp/test_abstract.o +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ../../../../../bin/ta_regtest +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .C .c + +.cpp.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cxx.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cc.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.C.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.c.o: + $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $< + +####### Build rules + + +all: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS) + +moc: $(SRCMOC) + +clean: + -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) + -rm -f *~ core + +####### Sub-libraries + + +###### Combined headers + + +####### Compile + +../../../../../temp/cmp/ta_regtest.o: ../../../../../src/tools/ta_regtest/ta_regtest.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_regtest.o ../../../../../src/tools/ta_regtest/ta_regtest.c + +../../../../../temp/cmp/test_candlestick.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_candlestick.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/test_candlestick.o ../../../../../src/tools/ta_regtest/ta_test_func/test_candlestick.c + +../../../../../temp/cmp/test_1in_1out.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_1in_1out.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/test_1in_1out.o ../../../../../src/tools/ta_regtest/ta_test_func/test_1in_1out.c + +../../../../../temp/cmp/test_1in_2out.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_1in_2out.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/test_1in_2out.o ../../../../../src/tools/ta_regtest/ta_test_func/test_1in_2out.c + +../../../../../temp/cmp/test_internals.o: ../../../../../src/tools/ta_regtest/test_internals.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/test_internals.o ../../../../../src/tools/ta_regtest/test_internals.c + +../../../../../temp/cmp/test_adx.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_adx.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/test_adx.o ../../../../../src/tools/ta_regtest/ta_test_func/test_adx.c + +../../../../../temp/cmp/test_bbands.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_bbands.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/test_bbands.o ../../../../../src/tools/ta_regtest/ta_test_func/test_bbands.c + +../../../../../temp/cmp/test_ma.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_ma.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/test_ma.o ../../../../../src/tools/ta_regtest/ta_test_func/test_ma.c + +../../../../../temp/cmp/test_macd.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_macd.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/test_macd.o ../../../../../src/tools/ta_regtest/ta_test_func/test_macd.c + +../../../../../temp/cmp/test_minmax.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_minmax.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/test_minmax.o ../../../../../src/tools/ta_regtest/ta_test_func/test_minmax.c + +../../../../../temp/cmp/test_mom.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_mom.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/test_mom.o ../../../../../src/tools/ta_regtest/ta_test_func/test_mom.c + +../../../../../temp/cmp/test_per_ema.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_per_ema.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/test_per_ema.o ../../../../../src/tools/ta_regtest/ta_test_func/test_per_ema.c + +../../../../../temp/cmp/test_per_hl.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hl.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/test_per_hl.o ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hl.c + +../../../../../temp/cmp/test_per_hlc.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hlc.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/test_per_hlc.o ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hlc.c + +../../../../../temp/cmp/test_per_hlcv.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hlcv.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/test_per_hlcv.o ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hlcv.c + +../../../../../temp/cmp/test_per_ohlc.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_per_ohlc.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/test_per_ohlc.o ../../../../../src/tools/ta_regtest/ta_test_func/test_per_ohlc.c + +../../../../../temp/cmp/test_po.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_po.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/test_po.o ../../../../../src/tools/ta_regtest/ta_test_func/test_po.c + +../../../../../temp/cmp/test_rsi.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_rsi.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/test_rsi.o ../../../../../src/tools/ta_regtest/ta_test_func/test_rsi.c + +../../../../../temp/cmp/test_sar.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_sar.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/test_sar.o ../../../../../src/tools/ta_regtest/ta_test_func/test_sar.c + +../../../../../temp/cmp/test_stddev.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_stddev.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/test_stddev.o ../../../../../src/tools/ta_regtest/ta_test_func/test_stddev.c + +../../../../../temp/cmp/test_stoch.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_stoch.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/test_stoch.o ../../../../../src/tools/ta_regtest/ta_test_func/test_stoch.c + +../../../../../temp/cmp/test_trange.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_trange.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/test_trange.o ../../../../../src/tools/ta_regtest/ta_test_func/test_trange.c + +../../../../../temp/cmp/test_util.o: ../../../../../src/tools/ta_regtest/test_util.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/test_util.o ../../../../../src/tools/ta_regtest/test_util.c + +../../../../../temp/cmp/test_data.o: ../../../../../src/tools/ta_regtest/test_data.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/test_data.o ../../../../../src/tools/ta_regtest/test_data.c + +../../../../../temp/cmp/test_abstract.o: ../../../../../src/tools/ta_regtest/test_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/test_abstract.o ../../../../../src/tools/ta_regtest/test_abstract.c + diff --git a/make/cmp/freebsd/g++/Makefile b/make/cmp/freebsd/g++/Makefile new file mode 100644 index 000000000..6864460b4 --- /dev/null +++ b/make/cmp/freebsd/g++/Makefile @@ -0,0 +1,36 @@ +############################################################################# +# Makefile for building targets in sub directories. +# Generated by tmake; +# Project: rootmake +# Template: subdirs +############################################################################# + +MAKEFILE= Makefile +TMAKE = tmake + +SUBDIRS = ta_common \ + ta_func \ + ta_abstract \ + ta_libc \ + gen_code \ + ta_regtest + +all: $(SUBDIRS) + +$(SUBDIRS): FORCE + cd $@; $(MAKE) + +tmake: ../cmp/freebsd/g++/Makefile + +../cmp/freebsd/g++/Makefile: rootmake.pro + tmake rootmake.pro -o ../cmp/freebsd/g++/Makefile + +tmake_all: + for i in $(SUBDIRS); do ( if [ -d $$i ]; then cd $$i ; $(MAKE) -f $(MAKEFILE) tmake_all || true; fi; ) ; done + +#### $text = "\t" . 'for i in $(SUBDIRS); do ( if [ -d $$i ]; then cd $$i ; pro=`basename $$i`.pro ; $(TMAKE) $$pro -o $(MAKEFILE); grep "TEMPLATE.*subdirs" $$pro 2>/dev/null >/dev/null && $(MAKE) -f $(MAKEFILE) tmake_all || true; fi; ) ; done'; + +clean release debug: + for i in $(SUBDIRS); do ( if [ -d $$i ]; then cd $$i ; $(MAKE) $@; fi; ) ; done + +FORCE: diff --git a/make/cmp/freebsd/g++/gen_code/Makefile b/make/cmp/freebsd/g++/gen_code/Makefile new file mode 100644 index 000000000..91ec0d272 --- /dev/null +++ b/make/cmp/freebsd/g++/gen_code/Makefile @@ -0,0 +1,225 @@ +############################################################################# +# Makefile for building ../../../../../bin/gen_code +# Generated by tmake; +# Project: gen_code/gen_code +# Template: app +############################################################################# + +####### Compiler, tools and options + +CC = gcc +CXX = g++ +CFLAGS = -pipe -Wall -W -g -O -pg -D_REENTRANT -DTA_GEN_CODE -DTA_DEBUG -D_DEBUG -DQT_THREAD_SUPPORT +CXXFLAGS= -pipe -Wall -W -g -D_REENTRANT -DTA_GEN_CODE -DTA_DEBUG -D_DEBUG -DQT_THREAD_SUPPORT +INCPATH = -I../../../../../include -I../../../../../src/ta_common -I../../../../../src/ta_abstract -I../../../../../src/ta_abstract/tables -I../../../../../src/ta_abstract/frames -I/usr/local/include +LINK = g++ +LFLAGS = -L/usr/local/lib -pg +LIBS = $(SUBLIBS) ../../../../../lib/libta_common_cmp.a -pthread +MOC = $(QTDIR)/bin/moc +UIC = $(QTDIR)/bin/uic + +TAR = tar -cf +GZIP = gzip -9f + +####### Apply additional overruling user flags, if any +CFLAGS += $(CUSERFLAGS) +CXXFLAGS += $(CUSERFLAGS) + +####### Files + +HEADERS = +SOURCES = ../../../../../src/tools/gen_code/gen_code.c \ + ../../../../../src/ta_abstract/ta_abstract.c \ + ../../../../../src/ta_abstract/ta_def_ui.c \ + ../../../../../src/ta_abstract/tables/table_a.c \ + ../../../../../src/ta_abstract/tables/table_b.c \ + ../../../../../src/ta_abstract/tables/table_c.c \ + ../../../../../src/ta_abstract/tables/table_d.c \ + ../../../../../src/ta_abstract/tables/table_e.c \ + ../../../../../src/ta_abstract/tables/table_f.c \ + ../../../../../src/ta_abstract/tables/table_g.c \ + ../../../../../src/ta_abstract/tables/table_h.c \ + ../../../../../src/ta_abstract/tables/table_i.c \ + ../../../../../src/ta_abstract/tables/table_j.c \ + ../../../../../src/ta_abstract/tables/table_k.c \ + ../../../../../src/ta_abstract/tables/table_l.c \ + ../../../../../src/ta_abstract/tables/table_m.c \ + ../../../../../src/ta_abstract/tables/table_n.c \ + ../../../../../src/ta_abstract/tables/table_o.c \ + ../../../../../src/ta_abstract/tables/table_p.c \ + ../../../../../src/ta_abstract/tables/table_q.c \ + ../../../../../src/ta_abstract/tables/table_r.c \ + ../../../../../src/ta_abstract/tables/table_s.c \ + ../../../../../src/ta_abstract/tables/table_t.c \ + ../../../../../src/ta_abstract/tables/table_u.c \ + ../../../../../src/ta_abstract/tables/table_v.c \ + ../../../../../src/ta_abstract/tables/table_w.c \ + ../../../../../src/ta_abstract/tables/table_x.c \ + ../../../../../src/ta_abstract/tables/table_y.c \ + ../../../../../src/ta_abstract/tables/table_z.c +OBJECTS = ../../../../../temp/cmp/gen_code/gen_code.o \ + ../../../../../temp/cmp/gen_code/ta_abstract.o \ + ../../../../../temp/cmp/gen_code/ta_def_ui.o \ + ../../../../../temp/cmp/gen_code/table_a.o \ + ../../../../../temp/cmp/gen_code/table_b.o \ + ../../../../../temp/cmp/gen_code/table_c.o \ + ../../../../../temp/cmp/gen_code/table_d.o \ + ../../../../../temp/cmp/gen_code/table_e.o \ + ../../../../../temp/cmp/gen_code/table_f.o \ + ../../../../../temp/cmp/gen_code/table_g.o \ + ../../../../../temp/cmp/gen_code/table_h.o \ + ../../../../../temp/cmp/gen_code/table_i.o \ + ../../../../../temp/cmp/gen_code/table_j.o \ + ../../../../../temp/cmp/gen_code/table_k.o \ + ../../../../../temp/cmp/gen_code/table_l.o \ + ../../../../../temp/cmp/gen_code/table_m.o \ + ../../../../../temp/cmp/gen_code/table_n.o \ + ../../../../../temp/cmp/gen_code/table_o.o \ + ../../../../../temp/cmp/gen_code/table_p.o \ + ../../../../../temp/cmp/gen_code/table_q.o \ + ../../../../../temp/cmp/gen_code/table_r.o \ + ../../../../../temp/cmp/gen_code/table_s.o \ + ../../../../../temp/cmp/gen_code/table_t.o \ + ../../../../../temp/cmp/gen_code/table_u.o \ + ../../../../../temp/cmp/gen_code/table_v.o \ + ../../../../../temp/cmp/gen_code/table_w.o \ + ../../../../../temp/cmp/gen_code/table_x.o \ + ../../../../../temp/cmp/gen_code/table_y.o \ + ../../../../../temp/cmp/gen_code/table_z.o +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ../../../../../bin/gen_code +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .C .c + +.cpp.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cxx.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cc.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.C.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.c.o: + $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $< + +####### Build rules + + +all: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS) + +moc: $(SRCMOC) + +clean: + -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) + -rm -f *~ core + +####### Sub-libraries + + +###### Combined headers + + +####### Compile + +../../../../../temp/cmp/gen_code/gen_code.o: ../../../../../src/tools/gen_code/gen_code.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/gen_code/gen_code.o ../../../../../src/tools/gen_code/gen_code.c + +../../../../../temp/cmp/gen_code/ta_abstract.o: ../../../../../src/ta_abstract/ta_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/gen_code/ta_abstract.o ../../../../../src/ta_abstract/ta_abstract.c + +../../../../../temp/cmp/gen_code/ta_def_ui.o: ../../../../../src/ta_abstract/ta_def_ui.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/gen_code/ta_def_ui.o ../../../../../src/ta_abstract/ta_def_ui.c + +../../../../../temp/cmp/gen_code/table_a.o: ../../../../../src/ta_abstract/tables/table_a.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/gen_code/table_a.o ../../../../../src/ta_abstract/tables/table_a.c + +../../../../../temp/cmp/gen_code/table_b.o: ../../../../../src/ta_abstract/tables/table_b.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/gen_code/table_b.o ../../../../../src/ta_abstract/tables/table_b.c + +../../../../../temp/cmp/gen_code/table_c.o: ../../../../../src/ta_abstract/tables/table_c.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/gen_code/table_c.o ../../../../../src/ta_abstract/tables/table_c.c + +../../../../../temp/cmp/gen_code/table_d.o: ../../../../../src/ta_abstract/tables/table_d.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/gen_code/table_d.o ../../../../../src/ta_abstract/tables/table_d.c + +../../../../../temp/cmp/gen_code/table_e.o: ../../../../../src/ta_abstract/tables/table_e.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/gen_code/table_e.o ../../../../../src/ta_abstract/tables/table_e.c + +../../../../../temp/cmp/gen_code/table_f.o: ../../../../../src/ta_abstract/tables/table_f.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/gen_code/table_f.o ../../../../../src/ta_abstract/tables/table_f.c + +../../../../../temp/cmp/gen_code/table_g.o: ../../../../../src/ta_abstract/tables/table_g.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/gen_code/table_g.o ../../../../../src/ta_abstract/tables/table_g.c + +../../../../../temp/cmp/gen_code/table_h.o: ../../../../../src/ta_abstract/tables/table_h.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/gen_code/table_h.o ../../../../../src/ta_abstract/tables/table_h.c + +../../../../../temp/cmp/gen_code/table_i.o: ../../../../../src/ta_abstract/tables/table_i.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/gen_code/table_i.o ../../../../../src/ta_abstract/tables/table_i.c + +../../../../../temp/cmp/gen_code/table_j.o: ../../../../../src/ta_abstract/tables/table_j.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/gen_code/table_j.o ../../../../../src/ta_abstract/tables/table_j.c + +../../../../../temp/cmp/gen_code/table_k.o: ../../../../../src/ta_abstract/tables/table_k.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/gen_code/table_k.o ../../../../../src/ta_abstract/tables/table_k.c + +../../../../../temp/cmp/gen_code/table_l.o: ../../../../../src/ta_abstract/tables/table_l.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/gen_code/table_l.o ../../../../../src/ta_abstract/tables/table_l.c + +../../../../../temp/cmp/gen_code/table_m.o: ../../../../../src/ta_abstract/tables/table_m.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/gen_code/table_m.o ../../../../../src/ta_abstract/tables/table_m.c + +../../../../../temp/cmp/gen_code/table_n.o: ../../../../../src/ta_abstract/tables/table_n.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/gen_code/table_n.o ../../../../../src/ta_abstract/tables/table_n.c + +../../../../../temp/cmp/gen_code/table_o.o: ../../../../../src/ta_abstract/tables/table_o.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/gen_code/table_o.o ../../../../../src/ta_abstract/tables/table_o.c + +../../../../../temp/cmp/gen_code/table_p.o: ../../../../../src/ta_abstract/tables/table_p.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/gen_code/table_p.o ../../../../../src/ta_abstract/tables/table_p.c + +../../../../../temp/cmp/gen_code/table_q.o: ../../../../../src/ta_abstract/tables/table_q.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/gen_code/table_q.o ../../../../../src/ta_abstract/tables/table_q.c + +../../../../../temp/cmp/gen_code/table_r.o: ../../../../../src/ta_abstract/tables/table_r.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/gen_code/table_r.o ../../../../../src/ta_abstract/tables/table_r.c + +../../../../../temp/cmp/gen_code/table_s.o: ../../../../../src/ta_abstract/tables/table_s.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/gen_code/table_s.o ../../../../../src/ta_abstract/tables/table_s.c + +../../../../../temp/cmp/gen_code/table_t.o: ../../../../../src/ta_abstract/tables/table_t.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/gen_code/table_t.o ../../../../../src/ta_abstract/tables/table_t.c + +../../../../../temp/cmp/gen_code/table_u.o: ../../../../../src/ta_abstract/tables/table_u.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/gen_code/table_u.o ../../../../../src/ta_abstract/tables/table_u.c + +../../../../../temp/cmp/gen_code/table_v.o: ../../../../../src/ta_abstract/tables/table_v.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/gen_code/table_v.o ../../../../../src/ta_abstract/tables/table_v.c + +../../../../../temp/cmp/gen_code/table_w.o: ../../../../../src/ta_abstract/tables/table_w.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/gen_code/table_w.o ../../../../../src/ta_abstract/tables/table_w.c + +../../../../../temp/cmp/gen_code/table_x.o: ../../../../../src/ta_abstract/tables/table_x.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/gen_code/table_x.o ../../../../../src/ta_abstract/tables/table_x.c + +../../../../../temp/cmp/gen_code/table_y.o: ../../../../../src/ta_abstract/tables/table_y.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/gen_code/table_y.o ../../../../../src/ta_abstract/tables/table_y.c + +../../../../../temp/cmp/gen_code/table_z.o: ../../../../../src/ta_abstract/tables/table_z.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/gen_code/table_z.o ../../../../../src/ta_abstract/tables/table_z.c + diff --git a/make/cmp/freebsd/g++/ta_abstract/Makefile b/make/cmp/freebsd/g++/ta_abstract/Makefile new file mode 100644 index 000000000..b87951a55 --- /dev/null +++ b/make/cmp/freebsd/g++/ta_abstract/Makefile @@ -0,0 +1,243 @@ +############################################################################# +# Makefile for building ../../../../../lib/libta_abstract_cmp.a +# Generated by tmake; +# Project: ta_abstract/ta_abstract +# Template: lib +############################################################################# + +####### Compiler, tools and options + +CC = gcc +CXX = g++ +CFLAGS = -pipe -Wall -W -g -O -pg -D_REENTRANT -DTA_DEBUG -D_DEBUG -DQT_THREAD_SUPPORT +CXXFLAGS= -pipe -Wall -W -g -D_REENTRANT -DTA_DEBUG -D_DEBUG -DQT_THREAD_SUPPORT +INCPATH = -I../../../../../src/ta_common -I../../../../../src/ta_abstract -I../../../../../src/ta_abstract/tables -I../../../../../src/ta_abstract/frames -I../../../../../include -I/usr/local/include +AR = ar cqs +RANLIB = +MOC = $(QTDIR)/bin/moc +UIC = $(QTDIR)/bin/uic + +TAR = tar -cf +GZIP = gzip -9f + +####### Support for 64-bit systems +ifeq ($(shell uname -m), x86_64) + CFLAGS += -march=x86-64 -m64 -D__64BIT__ + CXXFLAGS += -march=x86-64 -m64 -D__64BIT__ +endif + +####### Apply additional overruling user flags, if any +CFLAGS += $(CUSERFLAGS) +CXXFLAGS += $(CUSERFLAGS) + +####### Files + +HEADERS = +SOURCES = ../../../../../src/ta_abstract/ta_abstract.c \ + ../../../../../src/ta_abstract/ta_def_ui.c \ + ../../../../../src/ta_abstract/ta_func_api.c \ + ../../../../../src/ta_abstract/ta_group_idx.c \ + ../../../../../src/ta_abstract/frames/ta_frame.c \ + ../../../../../src/ta_abstract/tables/table_a.c \ + ../../../../../src/ta_abstract/tables/table_b.c \ + ../../../../../src/ta_abstract/tables/table_c.c \ + ../../../../../src/ta_abstract/tables/table_d.c \ + ../../../../../src/ta_abstract/tables/table_e.c \ + ../../../../../src/ta_abstract/tables/table_f.c \ + ../../../../../src/ta_abstract/tables/table_g.c \ + ../../../../../src/ta_abstract/tables/table_h.c \ + ../../../../../src/ta_abstract/tables/table_i.c \ + ../../../../../src/ta_abstract/tables/table_j.c \ + ../../../../../src/ta_abstract/tables/table_k.c \ + ../../../../../src/ta_abstract/tables/table_l.c \ + ../../../../../src/ta_abstract/tables/table_m.c \ + ../../../../../src/ta_abstract/tables/table_n.c \ + ../../../../../src/ta_abstract/tables/table_o.c \ + ../../../../../src/ta_abstract/tables/table_p.c \ + ../../../../../src/ta_abstract/tables/table_q.c \ + ../../../../../src/ta_abstract/tables/table_r.c \ + ../../../../../src/ta_abstract/tables/table_s.c \ + ../../../../../src/ta_abstract/tables/table_t.c \ + ../../../../../src/ta_abstract/tables/table_u.c \ + ../../../../../src/ta_abstract/tables/table_v.c \ + ../../../../../src/ta_abstract/tables/table_w.c \ + ../../../../../src/ta_abstract/tables/table_x.c \ + ../../../../../src/ta_abstract/tables/table_y.c \ + ../../../../../src/ta_abstract/tables/table_z.c +OBJECTS = ../../../../../temp/cmp/ta_abstract.o \ + ../../../../../temp/cmp/ta_def_ui.o \ + ../../../../../temp/cmp/ta_func_api.o \ + ../../../../../temp/cmp/ta_group_idx.o \ + ../../../../../temp/cmp/ta_frame.o \ + ../../../../../temp/cmp/table_a.o \ + ../../../../../temp/cmp/table_b.o \ + ../../../../../temp/cmp/table_c.o \ + ../../../../../temp/cmp/table_d.o \ + ../../../../../temp/cmp/table_e.o \ + ../../../../../temp/cmp/table_f.o \ + ../../../../../temp/cmp/table_g.o \ + ../../../../../temp/cmp/table_h.o \ + ../../../../../temp/cmp/table_i.o \ + ../../../../../temp/cmp/table_j.o \ + ../../../../../temp/cmp/table_k.o \ + ../../../../../temp/cmp/table_l.o \ + ../../../../../temp/cmp/table_m.o \ + ../../../../../temp/cmp/table_n.o \ + ../../../../../temp/cmp/table_o.o \ + ../../../../../temp/cmp/table_p.o \ + ../../../../../temp/cmp/table_q.o \ + ../../../../../temp/cmp/table_r.o \ + ../../../../../temp/cmp/table_s.o \ + ../../../../../temp/cmp/table_t.o \ + ../../../../../temp/cmp/table_u.o \ + ../../../../../temp/cmp/table_v.o \ + ../../../../../temp/cmp/table_w.o \ + ../../../../../temp/cmp/table_x.o \ + ../../../../../temp/cmp/table_y.o \ + ../../../../../temp/cmp/table_z.o +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ../../../../../lib/libta_abstract_cmp.a +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .C .c + +.cpp.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cxx.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cc.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.C.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.c.o: + $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $< + +####### Build rules + + +all: $(TARGET) + +staticlib: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + -rm -f $(TARGET) + $(AR) $(TARGET) $(OBJECTS) $(OBJMOC) + +moc: $(SRCMOC) + +clean: + -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) + -rm -f *~ core + +####### Sub-libraries + + +###### Combined headers + + +####### Compile + +../../../../../temp/cmp/ta_abstract.o: ../../../../../src/ta_abstract/ta_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_abstract.o ../../../../../src/ta_abstract/ta_abstract.c + +../../../../../temp/cmp/ta_def_ui.o: ../../../../../src/ta_abstract/ta_def_ui.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_def_ui.o ../../../../../src/ta_abstract/ta_def_ui.c + +../../../../../temp/cmp/ta_func_api.o: ../../../../../src/ta_abstract/ta_func_api.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_func_api.o ../../../../../src/ta_abstract/ta_func_api.c + +../../../../../temp/cmp/ta_group_idx.o: ../../../../../src/ta_abstract/ta_group_idx.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_group_idx.o ../../../../../src/ta_abstract/ta_group_idx.c + +../../../../../temp/cmp/ta_frame.o: ../../../../../src/ta_abstract/frames/ta_frame.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_frame.o ../../../../../src/ta_abstract/frames/ta_frame.c + +../../../../../temp/cmp/table_a.o: ../../../../../src/ta_abstract/tables/table_a.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_a.o ../../../../../src/ta_abstract/tables/table_a.c + +../../../../../temp/cmp/table_b.o: ../../../../../src/ta_abstract/tables/table_b.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_b.o ../../../../../src/ta_abstract/tables/table_b.c + +../../../../../temp/cmp/table_c.o: ../../../../../src/ta_abstract/tables/table_c.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_c.o ../../../../../src/ta_abstract/tables/table_c.c + +../../../../../temp/cmp/table_d.o: ../../../../../src/ta_abstract/tables/table_d.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_d.o ../../../../../src/ta_abstract/tables/table_d.c + +../../../../../temp/cmp/table_e.o: ../../../../../src/ta_abstract/tables/table_e.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_e.o ../../../../../src/ta_abstract/tables/table_e.c + +../../../../../temp/cmp/table_f.o: ../../../../../src/ta_abstract/tables/table_f.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_f.o ../../../../../src/ta_abstract/tables/table_f.c + +../../../../../temp/cmp/table_g.o: ../../../../../src/ta_abstract/tables/table_g.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_g.o ../../../../../src/ta_abstract/tables/table_g.c + +../../../../../temp/cmp/table_h.o: ../../../../../src/ta_abstract/tables/table_h.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_h.o ../../../../../src/ta_abstract/tables/table_h.c + +../../../../../temp/cmp/table_i.o: ../../../../../src/ta_abstract/tables/table_i.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_i.o ../../../../../src/ta_abstract/tables/table_i.c + +../../../../../temp/cmp/table_j.o: ../../../../../src/ta_abstract/tables/table_j.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_j.o ../../../../../src/ta_abstract/tables/table_j.c + +../../../../../temp/cmp/table_k.o: ../../../../../src/ta_abstract/tables/table_k.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_k.o ../../../../../src/ta_abstract/tables/table_k.c + +../../../../../temp/cmp/table_l.o: ../../../../../src/ta_abstract/tables/table_l.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_l.o ../../../../../src/ta_abstract/tables/table_l.c + +../../../../../temp/cmp/table_m.o: ../../../../../src/ta_abstract/tables/table_m.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_m.o ../../../../../src/ta_abstract/tables/table_m.c + +../../../../../temp/cmp/table_n.o: ../../../../../src/ta_abstract/tables/table_n.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_n.o ../../../../../src/ta_abstract/tables/table_n.c + +../../../../../temp/cmp/table_o.o: ../../../../../src/ta_abstract/tables/table_o.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_o.o ../../../../../src/ta_abstract/tables/table_o.c + +../../../../../temp/cmp/table_p.o: ../../../../../src/ta_abstract/tables/table_p.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_p.o ../../../../../src/ta_abstract/tables/table_p.c + +../../../../../temp/cmp/table_q.o: ../../../../../src/ta_abstract/tables/table_q.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_q.o ../../../../../src/ta_abstract/tables/table_q.c + +../../../../../temp/cmp/table_r.o: ../../../../../src/ta_abstract/tables/table_r.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_r.o ../../../../../src/ta_abstract/tables/table_r.c + +../../../../../temp/cmp/table_s.o: ../../../../../src/ta_abstract/tables/table_s.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_s.o ../../../../../src/ta_abstract/tables/table_s.c + +../../../../../temp/cmp/table_t.o: ../../../../../src/ta_abstract/tables/table_t.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_t.o ../../../../../src/ta_abstract/tables/table_t.c + +../../../../../temp/cmp/table_u.o: ../../../../../src/ta_abstract/tables/table_u.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_u.o ../../../../../src/ta_abstract/tables/table_u.c + +../../../../../temp/cmp/table_v.o: ../../../../../src/ta_abstract/tables/table_v.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_v.o ../../../../../src/ta_abstract/tables/table_v.c + +../../../../../temp/cmp/table_w.o: ../../../../../src/ta_abstract/tables/table_w.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_w.o ../../../../../src/ta_abstract/tables/table_w.c + +../../../../../temp/cmp/table_x.o: ../../../../../src/ta_abstract/tables/table_x.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_x.o ../../../../../src/ta_abstract/tables/table_x.c + +../../../../../temp/cmp/table_y.o: ../../../../../src/ta_abstract/tables/table_y.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_y.o ../../../../../src/ta_abstract/tables/table_y.c + +../../../../../temp/cmp/table_z.o: ../../../../../src/ta_abstract/tables/table_z.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_z.o ../../../../../src/ta_abstract/tables/table_z.c + diff --git a/make/cmp/freebsd/g++/ta_common/Makefile b/make/cmp/freebsd/g++/ta_common/Makefile new file mode 100644 index 000000000..bfdc7f655 --- /dev/null +++ b/make/cmp/freebsd/g++/ta_common/Makefile @@ -0,0 +1,103 @@ +############################################################################# +# Makefile for building ../../../../../lib/libta_common_cmp.a +# Generated by tmake; +# Project: ta_common/ta_common +# Template: lib +############################################################################# + +####### Compiler, tools and options + +CC = gcc +CXX = g++ +CFLAGS = -pipe -Wall -W -g -O -pg -D_REENTRANT -DTA_DEBUG -D_DEBUG -DQT_THREAD_SUPPORT +CXXFLAGS= -pipe -Wall -W -g -D_REENTRANT -DTA_DEBUG -D_DEBUG -DQT_THREAD_SUPPORT +INCPATH = -I../../../../../src/ta_common -I../../../../../include -I/usr/local/include +AR = ar cqs +RANLIB = +MOC = $(QTDIR)/bin/moc +UIC = $(QTDIR)/bin/uic + +TAR = tar -cf +GZIP = gzip -9f + +####### Support for 64-bit systems +ifeq ($(shell uname -m), x86_64) + CFLAGS += -march=x86-64 -m64 -D__64BIT__ + CXXFLAGS += -march=x86-64 -m64 -D__64BIT__ +endif + +####### Apply additional overruling user flags, if any +CFLAGS += $(CUSERFLAGS) +CXXFLAGS += $(CUSERFLAGS) + +####### Files + +HEADERS = +SOURCES = ../../../../../src/ta_common/ta_global.c \ + ../../../../../src/ta_common/ta_retcode.c \ + ../../../../../src/ta_common/ta_version.c +OBJECTS = ../../../../../temp/cmp/ta_global.o \ + ../../../../../temp/cmp/ta_retcode.o \ + ../../../../../temp/cmp/ta_version.o +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ../../../../../lib/libta_common_cmp.a +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .C .c + +.cpp.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cxx.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cc.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.C.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.c.o: + $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $< + +####### Build rules + + +all: $(TARGET) + +staticlib: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + -rm -f $(TARGET) + $(AR) $(TARGET) $(OBJECTS) $(OBJMOC) + +moc: $(SRCMOC) + +clean: + -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) + -rm -f *~ core + +####### Sub-libraries + + +###### Combined headers + + +####### Compile + +../../../../../temp/cmp/ta_global.o: ../../../../../src/ta_common/ta_global.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_global.o ../../../../../src/ta_common/ta_global.c + +../../../../../temp/cmp/ta_retcode.o: ../../../../../src/ta_common/ta_retcode.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_retcode.o ../../../../../src/ta_common/ta_retcode.c + +../../../../../temp/cmp/ta_version.o: ../../../../../src/ta_common/ta_version.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_version.o ../../../../../src/ta_common/ta_version.c + diff --git a/make/cmp/freebsd/g++/ta_func/Makefile b/make/cmp/freebsd/g++/ta_func/Makefile new file mode 100644 index 000000000..1d5a860c5 --- /dev/null +++ b/make/cmp/freebsd/g++/ta_func/Makefile @@ -0,0 +1,883 @@ +############################################################################# +# Makefile for building ../../../../../lib/libta_func_cmp.a +# Generated by tmake; +# Project: ta_func/ta_func +# Template: lib +############################################################################# + +####### Compiler, tools and options + +CC = gcc +CXX = g++ +CFLAGS = -pipe -Wall -W -g -O -pg -D_REENTRANT -DTA_DEBUG -D_DEBUG -DQT_THREAD_SUPPORT +CXXFLAGS= -pipe -Wall -W -g -D_REENTRANT -DTA_DEBUG -D_DEBUG -DQT_THREAD_SUPPORT +INCPATH = -I../../../../../src/ta_common -I/n -I../../../../../include -I/usr/local/include +AR = ar cqs +RANLIB = +MOC = $(QTDIR)/bin/moc +UIC = $(QTDIR)/bin/uic + +TAR = tar -cf +GZIP = gzip -9f + +####### Support for 64-bit systems +ifeq ($(shell uname -m), x86_64) + CFLAGS += -march=x86-64 -m64 -D__64BIT__ + CXXFLAGS += -march=x86-64 -m64 -D__64BIT__ +endif + +####### Apply additional overruling user flags, if any +CFLAGS += $(CUSERFLAGS) +CXXFLAGS += $(CUSERFLAGS) + +####### Files + +HEADERS = +SOURCES = ../../../../../src/ta_func/ta_utility.c \ + ../../../../../src/ta_func/ta_ACOS.c \ + ../../../../../src/ta_func/ta_AD.c \ + ../../../../../src/ta_func/ta_ADD.c \ + ../../../../../src/ta_func/ta_ADOSC.c \ + ../../../../../src/ta_func/ta_ADX.c \ + ../../../../../src/ta_func/ta_ADXR.c \ + ../../../../../src/ta_func/ta_APO.c \ + ../../../../../src/ta_func/ta_AROON.c \ + ../../../../../src/ta_func/ta_AROONOSC.c \ + ../../../../../src/ta_func/ta_ASIN.c \ + ../../../../../src/ta_func/ta_ATAN.c \ + ../../../../../src/ta_func/ta_ATR.c \ + ../../../../../src/ta_func/ta_AVGPRICE.c \ + ../../../../../src/ta_func/ta_BBANDS.c \ + ../../../../../src/ta_func/ta_BETA.c \ + ../../../../../src/ta_func/ta_BOP.c \ + ../../../../../src/ta_func/ta_CCI.c \ + ../../../../../src/ta_func/ta_CDL2CROWS.c \ + ../../../../../src/ta_func/ta_CDL3BLACKCROWS.c \ + ../../../../../src/ta_func/ta_CDL3INSIDE.c \ + ../../../../../src/ta_func/ta_CDL3LINESTRIKE.c \ + ../../../../../src/ta_func/ta_CDL3OUTSIDE.c \ + ../../../../../src/ta_func/ta_CDL3STARSINSOUTH.c \ + ../../../../../src/ta_func/ta_CDL3WHITESOLDIERS.c \ + ../../../../../src/ta_func/ta_CDLABANDONEDBABY.c \ + ../../../../../src/ta_func/ta_CDLADVANCEBLOCK.c \ + ../../../../../src/ta_func/ta_CDLBELTHOLD.c \ + ../../../../../src/ta_func/ta_CDLBREAKAWAY.c \ + ../../../../../src/ta_func/ta_CDLCLOSINGMARUBOZU.c \ + ../../../../../src/ta_func/ta_CDLCONCEALBABYSWALL.c \ + ../../../../../src/ta_func/ta_CDLCOUNTERATTACK.c \ + ../../../../../src/ta_func/ta_CDLDARKCLOUDCOVER.c \ + ../../../../../src/ta_func/ta_CDLDOJI.c \ + ../../../../../src/ta_func/ta_CDLDOJISTAR.c \ + ../../../../../src/ta_func/ta_CDLDRAGONFLYDOJI.c \ + ../../../../../src/ta_func/ta_CDLENGULFING.c \ + ../../../../../src/ta_func/ta_CDLEVENINGDOJISTAR.c \ + ../../../../../src/ta_func/ta_CDLEVENINGSTAR.c \ + ../../../../../src/ta_func/ta_CDLGAPSIDESIDEWHITE.c \ + ../../../../../src/ta_func/ta_CDLGRAVESTONEDOJI.c \ + ../../../../../src/ta_func/ta_CDLHAMMER.c \ + ../../../../../src/ta_func/ta_CDLHANGINGMAN.c \ + ../../../../../src/ta_func/ta_CDLHARAMI.c \ + ../../../../../src/ta_func/ta_CDLHARAMICROSS.c \ + ../../../../../src/ta_func/ta_CDLHIGHWAVE.c \ + ../../../../../src/ta_func/ta_CDLHIKKAKE.c \ + ../../../../../src/ta_func/ta_CDLHIKKAKEMOD.c \ + ../../../../../src/ta_func/ta_CDLHOMINGPIGEON.c \ + ../../../../../src/ta_func/ta_CDLIDENTICAL3CROWS.c \ + ../../../../../src/ta_func/ta_CDLINNECK.c \ + ../../../../../src/ta_func/ta_CDLINVERTEDHAMMER.c \ + ../../../../../src/ta_func/ta_CDLKICKING.c \ + ../../../../../src/ta_func/ta_CDLKICKINGBYLENGTH.c \ + ../../../../../src/ta_func/ta_CDLLADDERBOTTOM.c \ + ../../../../../src/ta_func/ta_CDLLONGLEGGEDDOJI.c \ + ../../../../../src/ta_func/ta_CDLLONGLINE.c \ + ../../../../../src/ta_func/ta_CDLMARUBOZU.c \ + ../../../../../src/ta_func/ta_CDLMATCHINGLOW.c \ + ../../../../../src/ta_func/ta_CDLMATHOLD.c \ + ../../../../../src/ta_func/ta_CDLMORNINGDOJISTAR.c \ + ../../../../../src/ta_func/ta_CDLMORNINGSTAR.c \ + ../../../../../src/ta_func/ta_CDLONNECK.c \ + ../../../../../src/ta_func/ta_CDLPIERCING.c \ + ../../../../../src/ta_func/ta_CDLRICKSHAWMAN.c \ + ../../../../../src/ta_func/ta_CDLRISEFALL3METHODS.c \ + ../../../../../src/ta_func/ta_CDLSEPARATINGLINES.c \ + ../../../../../src/ta_func/ta_CDLSHOOTINGSTAR.c \ + ../../../../../src/ta_func/ta_CDLSHORTLINE.c \ + ../../../../../src/ta_func/ta_CDLSPINNINGTOP.c \ + ../../../../../src/ta_func/ta_CDLSTALLEDPATTERN.c \ + ../../../../../src/ta_func/ta_CDLSTICKSANDWICH.c \ + ../../../../../src/ta_func/ta_CDLTAKURI.c \ + ../../../../../src/ta_func/ta_CDLTASUKIGAP.c \ + ../../../../../src/ta_func/ta_CDLTHRUSTING.c \ + ../../../../../src/ta_func/ta_CDLTRISTAR.c \ + ../../../../../src/ta_func/ta_CDLUNIQUE3RIVER.c \ + ../../../../../src/ta_func/ta_CDLUPSIDEGAP2CROWS.c \ + ../../../../../src/ta_func/ta_CDLXSIDEGAP3METHODS.c \ + ../../../../../src/ta_func/ta_CEIL.c \ + ../../../../../src/ta_func/ta_CMO.c \ + ../../../../../src/ta_func/ta_CORREL.c \ + ../../../../../src/ta_func/ta_COS.c \ + ../../../../../src/ta_func/ta_COSH.c \ + ../../../../../src/ta_func/ta_DEMA.c \ + ../../../../../src/ta_func/ta_DIV.c \ + ../../../../../src/ta_func/ta_DX.c \ + ../../../../../src/ta_func/ta_EMA.c \ + ../../../../../src/ta_func/ta_EXP.c \ + ../../../../../src/ta_func/ta_FLOOR.c \ + ../../../../../src/ta_func/ta_HT_DCPERIOD.c \ + ../../../../../src/ta_func/ta_HT_DCPHASE.c \ + ../../../../../src/ta_func/ta_HT_PHASOR.c \ + ../../../../../src/ta_func/ta_HT_SINE.c \ + ../../../../../src/ta_func/ta_HT_TRENDLINE.c \ + ../../../../../src/ta_func/ta_HT_TRENDMODE.c \ + ../../../../../src/ta_func/ta_KAMA.c \ + ../../../../../src/ta_func/ta_LINEARREG.c \ + ../../../../../src/ta_func/ta_LINEARREG_ANGLE.c \ + ../../../../../src/ta_func/ta_LINEARREG_INTERCEPT.c \ + ../../../../../src/ta_func/ta_LINEARREG_SLOPE.c \ + ../../../../../src/ta_func/ta_LN.c \ + ../../../../../src/ta_func/ta_LOG10.c \ + ../../../../../src/ta_func/ta_MA.c \ + ../../../../../src/ta_func/ta_MACD.c \ + ../../../../../src/ta_func/ta_MACDEXT.c \ + ../../../../../src/ta_func/ta_MACDFIX.c \ + ../../../../../src/ta_func/ta_MAMA.c \ + ../../../../../src/ta_func/ta_MAVP.c \ + ../../../../../src/ta_func/ta_MAX.c \ + ../../../../../src/ta_func/ta_MAXINDEX.c \ + ../../../../../src/ta_func/ta_MEDPRICE.c \ + ../../../../../src/ta_func/ta_MFI.c \ + ../../../../../src/ta_func/ta_MIDPOINT.c \ + ../../../../../src/ta_func/ta_MIDPRICE.c \ + ../../../../../src/ta_func/ta_MIN.c \ + ../../../../../src/ta_func/ta_MININDEX.c \ + ../../../../../src/ta_func/ta_MINMAX.c \ + ../../../../../src/ta_func/ta_MINMAXINDEX.c \ + ../../../../../src/ta_func/ta_MINUS_DI.c \ + ../../../../../src/ta_func/ta_MINUS_DM.c \ + ../../../../../src/ta_func/ta_MOM.c \ + ../../../../../src/ta_func/ta_MULT.c \ + ../../../../../src/ta_func/ta_NATR.c \ + ../../../../../src/ta_func/ta_OBV.c \ + ../../../../../src/ta_func/ta_PLUS_DI.c \ + ../../../../../src/ta_func/ta_PLUS_DM.c \ + ../../../../../src/ta_func/ta_PPO.c \ + ../../../../../src/ta_func/ta_ROC.c \ + ../../../../../src/ta_func/ta_ROCP.c \ + ../../../../../src/ta_func/ta_ROCR.c \ + ../../../../../src/ta_func/ta_ROCR100.c \ + ../../../../../src/ta_func/ta_RSI.c \ + ../../../../../src/ta_func/ta_SAR.c \ + ../../../../../src/ta_func/ta_SAREXT.c \ + ../../../../../src/ta_func/ta_SIN.c \ + ../../../../../src/ta_func/ta_SINH.c \ + ../../../../../src/ta_func/ta_SMA.c \ + ../../../../../src/ta_func/ta_SQRT.c \ + ../../../../../src/ta_func/ta_STDDEV.c \ + ../../../../../src/ta_func/ta_STOCH.c \ + ../../../../../src/ta_func/ta_STOCHF.c \ + ../../../../../src/ta_func/ta_STOCHRSI.c \ + ../../../../../src/ta_func/ta_SUB.c \ + ../../../../../src/ta_func/ta_SUM.c \ + ../../../../../src/ta_func/ta_T3.c \ + ../../../../../src/ta_func/ta_TAN.c \ + ../../../../../src/ta_func/ta_TANH.c \ + ../../../../../src/ta_func/ta_TEMA.c \ + ../../../../../src/ta_func/ta_TRANGE.c \ + ../../../../../src/ta_func/ta_TRIMA.c \ + ../../../../../src/ta_func/ta_TRIX.c \ + ../../../../../src/ta_func/ta_TSF.c \ + ../../../../../src/ta_func/ta_TYPPRICE.c \ + ../../../../../src/ta_func/ta_ULTOSC.c \ + ../../../../../src/ta_func/ta_VAR.c \ + ../../../../../src/ta_func/ta_WCLPRICE.c \ + ../../../../../src/ta_func/ta_WILLR.c \ + ../../../../../src/ta_func/ta_WMA.c +OBJECTS = ../../../../../temp/cmp/ta_utility.o \ + ../../../../../temp/cmp/ta_ACOS.o \ + ../../../../../temp/cmp/ta_AD.o \ + ../../../../../temp/cmp/ta_ADD.o \ + ../../../../../temp/cmp/ta_ADOSC.o \ + ../../../../../temp/cmp/ta_ADX.o \ + ../../../../../temp/cmp/ta_ADXR.o \ + ../../../../../temp/cmp/ta_APO.o \ + ../../../../../temp/cmp/ta_AROON.o \ + ../../../../../temp/cmp/ta_AROONOSC.o \ + ../../../../../temp/cmp/ta_ASIN.o \ + ../../../../../temp/cmp/ta_ATAN.o \ + ../../../../../temp/cmp/ta_ATR.o \ + ../../../../../temp/cmp/ta_AVGPRICE.o \ + ../../../../../temp/cmp/ta_BBANDS.o \ + ../../../../../temp/cmp/ta_BETA.o \ + ../../../../../temp/cmp/ta_BOP.o \ + ../../../../../temp/cmp/ta_CCI.o \ + ../../../../../temp/cmp/ta_CDL2CROWS.o \ + ../../../../../temp/cmp/ta_CDL3BLACKCROWS.o \ + ../../../../../temp/cmp/ta_CDL3INSIDE.o \ + ../../../../../temp/cmp/ta_CDL3LINESTRIKE.o \ + ../../../../../temp/cmp/ta_CDL3OUTSIDE.o \ + ../../../../../temp/cmp/ta_CDL3STARSINSOUTH.o \ + ../../../../../temp/cmp/ta_CDL3WHITESOLDIERS.o \ + ../../../../../temp/cmp/ta_CDLABANDONEDBABY.o \ + ../../../../../temp/cmp/ta_CDLADVANCEBLOCK.o \ + ../../../../../temp/cmp/ta_CDLBELTHOLD.o \ + ../../../../../temp/cmp/ta_CDLBREAKAWAY.o \ + ../../../../../temp/cmp/ta_CDLCLOSINGMARUBOZU.o \ + ../../../../../temp/cmp/ta_CDLCONCEALBABYSWALL.o \ + ../../../../../temp/cmp/ta_CDLCOUNTERATTACK.o \ + ../../../../../temp/cmp/ta_CDLDARKCLOUDCOVER.o \ + ../../../../../temp/cmp/ta_CDLDOJI.o \ + ../../../../../temp/cmp/ta_CDLDOJISTAR.o \ + ../../../../../temp/cmp/ta_CDLDRAGONFLYDOJI.o \ + ../../../../../temp/cmp/ta_CDLENGULFING.o \ + ../../../../../temp/cmp/ta_CDLEVENINGDOJISTAR.o \ + ../../../../../temp/cmp/ta_CDLEVENINGSTAR.o \ + ../../../../../temp/cmp/ta_CDLGAPSIDESIDEWHITE.o \ + ../../../../../temp/cmp/ta_CDLGRAVESTONEDOJI.o \ + ../../../../../temp/cmp/ta_CDLHAMMER.o \ + ../../../../../temp/cmp/ta_CDLHANGINGMAN.o \ + ../../../../../temp/cmp/ta_CDLHARAMI.o \ + ../../../../../temp/cmp/ta_CDLHARAMICROSS.o \ + ../../../../../temp/cmp/ta_CDLHIGHWAVE.o \ + ../../../../../temp/cmp/ta_CDLHIKKAKE.o \ + ../../../../../temp/cmp/ta_CDLHIKKAKEMOD.o \ + ../../../../../temp/cmp/ta_CDLHOMINGPIGEON.o \ + ../../../../../temp/cmp/ta_CDLIDENTICAL3CROWS.o \ + ../../../../../temp/cmp/ta_CDLINNECK.o \ + ../../../../../temp/cmp/ta_CDLINVERTEDHAMMER.o \ + ../../../../../temp/cmp/ta_CDLKICKING.o \ + ../../../../../temp/cmp/ta_CDLKICKINGBYLENGTH.o \ + ../../../../../temp/cmp/ta_CDLLADDERBOTTOM.o \ + ../../../../../temp/cmp/ta_CDLLONGLEGGEDDOJI.o \ + ../../../../../temp/cmp/ta_CDLLONGLINE.o \ + ../../../../../temp/cmp/ta_CDLMARUBOZU.o \ + ../../../../../temp/cmp/ta_CDLMATCHINGLOW.o \ + ../../../../../temp/cmp/ta_CDLMATHOLD.o \ + ../../../../../temp/cmp/ta_CDLMORNINGDOJISTAR.o \ + ../../../../../temp/cmp/ta_CDLMORNINGSTAR.o \ + ../../../../../temp/cmp/ta_CDLONNECK.o \ + ../../../../../temp/cmp/ta_CDLPIERCING.o \ + ../../../../../temp/cmp/ta_CDLRICKSHAWMAN.o \ + ../../../../../temp/cmp/ta_CDLRISEFALL3METHODS.o \ + ../../../../../temp/cmp/ta_CDLSEPARATINGLINES.o \ + ../../../../../temp/cmp/ta_CDLSHOOTINGSTAR.o \ + ../../../../../temp/cmp/ta_CDLSHORTLINE.o \ + ../../../../../temp/cmp/ta_CDLSPINNINGTOP.o \ + ../../../../../temp/cmp/ta_CDLSTALLEDPATTERN.o \ + ../../../../../temp/cmp/ta_CDLSTICKSANDWICH.o \ + ../../../../../temp/cmp/ta_CDLTAKURI.o \ + ../../../../../temp/cmp/ta_CDLTASUKIGAP.o \ + ../../../../../temp/cmp/ta_CDLTHRUSTING.o \ + ../../../../../temp/cmp/ta_CDLTRISTAR.o \ + ../../../../../temp/cmp/ta_CDLUNIQUE3RIVER.o \ + ../../../../../temp/cmp/ta_CDLUPSIDEGAP2CROWS.o \ + ../../../../../temp/cmp/ta_CDLXSIDEGAP3METHODS.o \ + ../../../../../temp/cmp/ta_CEIL.o \ + ../../../../../temp/cmp/ta_CMO.o \ + ../../../../../temp/cmp/ta_CORREL.o \ + ../../../../../temp/cmp/ta_COS.o \ + ../../../../../temp/cmp/ta_COSH.o \ + ../../../../../temp/cmp/ta_DEMA.o \ + ../../../../../temp/cmp/ta_DIV.o \ + ../../../../../temp/cmp/ta_DX.o \ + ../../../../../temp/cmp/ta_EMA.o \ + ../../../../../temp/cmp/ta_EXP.o \ + ../../../../../temp/cmp/ta_FLOOR.o \ + ../../../../../temp/cmp/ta_HT_DCPERIOD.o \ + ../../../../../temp/cmp/ta_HT_DCPHASE.o \ + ../../../../../temp/cmp/ta_HT_PHASOR.o \ + ../../../../../temp/cmp/ta_HT_SINE.o \ + ../../../../../temp/cmp/ta_HT_TRENDLINE.o \ + ../../../../../temp/cmp/ta_HT_TRENDMODE.o \ + ../../../../../temp/cmp/ta_KAMA.o \ + ../../../../../temp/cmp/ta_LINEARREG.o \ + ../../../../../temp/cmp/ta_LINEARREG_ANGLE.o \ + ../../../../../temp/cmp/ta_LINEARREG_INTERCEPT.o \ + ../../../../../temp/cmp/ta_LINEARREG_SLOPE.o \ + ../../../../../temp/cmp/ta_LN.o \ + ../../../../../temp/cmp/ta_LOG10.o \ + ../../../../../temp/cmp/ta_MA.o \ + ../../../../../temp/cmp/ta_MACD.o \ + ../../../../../temp/cmp/ta_MACDEXT.o \ + ../../../../../temp/cmp/ta_MACDFIX.o \ + ../../../../../temp/cmp/ta_MAMA.o \ + ../../../../../temp/cmp/ta_MAVP.o \ + ../../../../../temp/cmp/ta_MAX.o \ + ../../../../../temp/cmp/ta_MAXINDEX.o \ + ../../../../../temp/cmp/ta_MEDPRICE.o \ + ../../../../../temp/cmp/ta_MFI.o \ + ../../../../../temp/cmp/ta_MIDPOINT.o \ + ../../../../../temp/cmp/ta_MIDPRICE.o \ + ../../../../../temp/cmp/ta_MIN.o \ + ../../../../../temp/cmp/ta_MININDEX.o \ + ../../../../../temp/cmp/ta_MINMAX.o \ + ../../../../../temp/cmp/ta_MINMAXINDEX.o \ + ../../../../../temp/cmp/ta_MINUS_DI.o \ + ../../../../../temp/cmp/ta_MINUS_DM.o \ + ../../../../../temp/cmp/ta_MOM.o \ + ../../../../../temp/cmp/ta_MULT.o \ + ../../../../../temp/cmp/ta_NATR.o \ + ../../../../../temp/cmp/ta_OBV.o \ + ../../../../../temp/cmp/ta_PLUS_DI.o \ + ../../../../../temp/cmp/ta_PLUS_DM.o \ + ../../../../../temp/cmp/ta_PPO.o \ + ../../../../../temp/cmp/ta_ROC.o \ + ../../../../../temp/cmp/ta_ROCP.o \ + ../../../../../temp/cmp/ta_ROCR.o \ + ../../../../../temp/cmp/ta_ROCR100.o \ + ../../../../../temp/cmp/ta_RSI.o \ + ../../../../../temp/cmp/ta_SAR.o \ + ../../../../../temp/cmp/ta_SAREXT.o \ + ../../../../../temp/cmp/ta_SIN.o \ + ../../../../../temp/cmp/ta_SINH.o \ + ../../../../../temp/cmp/ta_SMA.o \ + ../../../../../temp/cmp/ta_SQRT.o \ + ../../../../../temp/cmp/ta_STDDEV.o \ + ../../../../../temp/cmp/ta_STOCH.o \ + ../../../../../temp/cmp/ta_STOCHF.o \ + ../../../../../temp/cmp/ta_STOCHRSI.o \ + ../../../../../temp/cmp/ta_SUB.o \ + ../../../../../temp/cmp/ta_SUM.o \ + ../../../../../temp/cmp/ta_T3.o \ + ../../../../../temp/cmp/ta_TAN.o \ + ../../../../../temp/cmp/ta_TANH.o \ + ../../../../../temp/cmp/ta_TEMA.o \ + ../../../../../temp/cmp/ta_TRANGE.o \ + ../../../../../temp/cmp/ta_TRIMA.o \ + ../../../../../temp/cmp/ta_TRIX.o \ + ../../../../../temp/cmp/ta_TSF.o \ + ../../../../../temp/cmp/ta_TYPPRICE.o \ + ../../../../../temp/cmp/ta_ULTOSC.o \ + ../../../../../temp/cmp/ta_VAR.o \ + ../../../../../temp/cmp/ta_WCLPRICE.o \ + ../../../../../temp/cmp/ta_WILLR.o \ + ../../../../../temp/cmp/ta_WMA.o +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ../../../../../lib/libta_func_cmp.a +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .C .c + +.cpp.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cxx.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cc.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.C.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.c.o: + $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $< + +####### Build rules + + +all: $(TARGET) + +staticlib: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + -rm -f $(TARGET) + $(AR) $(TARGET) $(OBJECTS) $(OBJMOC) + +moc: $(SRCMOC) + +clean: + -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) + -rm -f *~ core + +####### Sub-libraries + + +###### Combined headers + + +####### Compile + +../../../../../temp/cmp/ta_utility.o: ../../../../../src/ta_func/ta_utility.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_utility.o ../../../../../src/ta_func/ta_utility.c + +../../../../../temp/cmp/ta_ACOS.o: ../../../../../src/ta_func/ta_ACOS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_ACOS.o ../../../../../src/ta_func/ta_ACOS.c + +../../../../../temp/cmp/ta_AD.o: ../../../../../src/ta_func/ta_AD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_AD.o ../../../../../src/ta_func/ta_AD.c + +../../../../../temp/cmp/ta_ADD.o: ../../../../../src/ta_func/ta_ADD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_ADD.o ../../../../../src/ta_func/ta_ADD.c + +../../../../../temp/cmp/ta_ADOSC.o: ../../../../../src/ta_func/ta_ADOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_ADOSC.o ../../../../../src/ta_func/ta_ADOSC.c + +../../../../../temp/cmp/ta_ADX.o: ../../../../../src/ta_func/ta_ADX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_ADX.o ../../../../../src/ta_func/ta_ADX.c + +../../../../../temp/cmp/ta_ADXR.o: ../../../../../src/ta_func/ta_ADXR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_ADXR.o ../../../../../src/ta_func/ta_ADXR.c + +../../../../../temp/cmp/ta_APO.o: ../../../../../src/ta_func/ta_APO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_APO.o ../../../../../src/ta_func/ta_APO.c + +../../../../../temp/cmp/ta_AROON.o: ../../../../../src/ta_func/ta_AROON.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_AROON.o ../../../../../src/ta_func/ta_AROON.c + +../../../../../temp/cmp/ta_AROONOSC.o: ../../../../../src/ta_func/ta_AROONOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_AROONOSC.o ../../../../../src/ta_func/ta_AROONOSC.c + +../../../../../temp/cmp/ta_ASIN.o: ../../../../../src/ta_func/ta_ASIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_ASIN.o ../../../../../src/ta_func/ta_ASIN.c + +../../../../../temp/cmp/ta_ATAN.o: ../../../../../src/ta_func/ta_ATAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_ATAN.o ../../../../../src/ta_func/ta_ATAN.c + +../../../../../temp/cmp/ta_ATR.o: ../../../../../src/ta_func/ta_ATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_ATR.o ../../../../../src/ta_func/ta_ATR.c + +../../../../../temp/cmp/ta_AVGPRICE.o: ../../../../../src/ta_func/ta_AVGPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_AVGPRICE.o ../../../../../src/ta_func/ta_AVGPRICE.c + +../../../../../temp/cmp/ta_BBANDS.o: ../../../../../src/ta_func/ta_BBANDS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_BBANDS.o ../../../../../src/ta_func/ta_BBANDS.c + +../../../../../temp/cmp/ta_BETA.o: ../../../../../src/ta_func/ta_BETA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_BETA.o ../../../../../src/ta_func/ta_BETA.c + +../../../../../temp/cmp/ta_BOP.o: ../../../../../src/ta_func/ta_BOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_BOP.o ../../../../../src/ta_func/ta_BOP.c + +../../../../../temp/cmp/ta_CCI.o: ../../../../../src/ta_func/ta_CCI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CCI.o ../../../../../src/ta_func/ta_CCI.c + +../../../../../temp/cmp/ta_CDL2CROWS.o: ../../../../../src/ta_func/ta_CDL2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDL2CROWS.o ../../../../../src/ta_func/ta_CDL2CROWS.c + +../../../../../temp/cmp/ta_CDL3BLACKCROWS.o: ../../../../../src/ta_func/ta_CDL3BLACKCROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDL3BLACKCROWS.o ../../../../../src/ta_func/ta_CDL3BLACKCROWS.c + +../../../../../temp/cmp/ta_CDL3INSIDE.o: ../../../../../src/ta_func/ta_CDL3INSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDL3INSIDE.o ../../../../../src/ta_func/ta_CDL3INSIDE.c + +../../../../../temp/cmp/ta_CDL3LINESTRIKE.o: ../../../../../src/ta_func/ta_CDL3LINESTRIKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDL3LINESTRIKE.o ../../../../../src/ta_func/ta_CDL3LINESTRIKE.c + +../../../../../temp/cmp/ta_CDL3OUTSIDE.o: ../../../../../src/ta_func/ta_CDL3OUTSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDL3OUTSIDE.o ../../../../../src/ta_func/ta_CDL3OUTSIDE.c + +../../../../../temp/cmp/ta_CDL3STARSINSOUTH.o: ../../../../../src/ta_func/ta_CDL3STARSINSOUTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDL3STARSINSOUTH.o ../../../../../src/ta_func/ta_CDL3STARSINSOUTH.c + +../../../../../temp/cmp/ta_CDL3WHITESOLDIERS.o: ../../../../../src/ta_func/ta_CDL3WHITESOLDIERS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDL3WHITESOLDIERS.o ../../../../../src/ta_func/ta_CDL3WHITESOLDIERS.c + +../../../../../temp/cmp/ta_CDLABANDONEDBABY.o: ../../../../../src/ta_func/ta_CDLABANDONEDBABY.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLABANDONEDBABY.o ../../../../../src/ta_func/ta_CDLABANDONEDBABY.c + +../../../../../temp/cmp/ta_CDLADVANCEBLOCK.o: ../../../../../src/ta_func/ta_CDLADVANCEBLOCK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLADVANCEBLOCK.o ../../../../../src/ta_func/ta_CDLADVANCEBLOCK.c + +../../../../../temp/cmp/ta_CDLBELTHOLD.o: ../../../../../src/ta_func/ta_CDLBELTHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLBELTHOLD.o ../../../../../src/ta_func/ta_CDLBELTHOLD.c + +../../../../../temp/cmp/ta_CDLBREAKAWAY.o: ../../../../../src/ta_func/ta_CDLBREAKAWAY.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLBREAKAWAY.o ../../../../../src/ta_func/ta_CDLBREAKAWAY.c + +../../../../../temp/cmp/ta_CDLCLOSINGMARUBOZU.o: ../../../../../src/ta_func/ta_CDLCLOSINGMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLCLOSINGMARUBOZU.o ../../../../../src/ta_func/ta_CDLCLOSINGMARUBOZU.c + +../../../../../temp/cmp/ta_CDLCONCEALBABYSWALL.o: ../../../../../src/ta_func/ta_CDLCONCEALBABYSWALL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLCONCEALBABYSWALL.o ../../../../../src/ta_func/ta_CDLCONCEALBABYSWALL.c + +../../../../../temp/cmp/ta_CDLCOUNTERATTACK.o: ../../../../../src/ta_func/ta_CDLCOUNTERATTACK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLCOUNTERATTACK.o ../../../../../src/ta_func/ta_CDLCOUNTERATTACK.c + +../../../../../temp/cmp/ta_CDLDARKCLOUDCOVER.o: ../../../../../src/ta_func/ta_CDLDARKCLOUDCOVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLDARKCLOUDCOVER.o ../../../../../src/ta_func/ta_CDLDARKCLOUDCOVER.c + +../../../../../temp/cmp/ta_CDLDOJI.o: ../../../../../src/ta_func/ta_CDLDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLDOJI.o ../../../../../src/ta_func/ta_CDLDOJI.c + +../../../../../temp/cmp/ta_CDLDOJISTAR.o: ../../../../../src/ta_func/ta_CDLDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLDOJISTAR.o ../../../../../src/ta_func/ta_CDLDOJISTAR.c + +../../../../../temp/cmp/ta_CDLDRAGONFLYDOJI.o: ../../../../../src/ta_func/ta_CDLDRAGONFLYDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLDRAGONFLYDOJI.o ../../../../../src/ta_func/ta_CDLDRAGONFLYDOJI.c + +../../../../../temp/cmp/ta_CDLENGULFING.o: ../../../../../src/ta_func/ta_CDLENGULFING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLENGULFING.o ../../../../../src/ta_func/ta_CDLENGULFING.c + +../../../../../temp/cmp/ta_CDLEVENINGDOJISTAR.o: ../../../../../src/ta_func/ta_CDLEVENINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLEVENINGDOJISTAR.o ../../../../../src/ta_func/ta_CDLEVENINGDOJISTAR.c + +../../../../../temp/cmp/ta_CDLEVENINGSTAR.o: ../../../../../src/ta_func/ta_CDLEVENINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLEVENINGSTAR.o ../../../../../src/ta_func/ta_CDLEVENINGSTAR.c + +../../../../../temp/cmp/ta_CDLGAPSIDESIDEWHITE.o: ../../../../../src/ta_func/ta_CDLGAPSIDESIDEWHITE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLGAPSIDESIDEWHITE.o ../../../../../src/ta_func/ta_CDLGAPSIDESIDEWHITE.c + +../../../../../temp/cmp/ta_CDLGRAVESTONEDOJI.o: ../../../../../src/ta_func/ta_CDLGRAVESTONEDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLGRAVESTONEDOJI.o ../../../../../src/ta_func/ta_CDLGRAVESTONEDOJI.c + +../../../../../temp/cmp/ta_CDLHAMMER.o: ../../../../../src/ta_func/ta_CDLHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLHAMMER.o ../../../../../src/ta_func/ta_CDLHAMMER.c + +../../../../../temp/cmp/ta_CDLHANGINGMAN.o: ../../../../../src/ta_func/ta_CDLHANGINGMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLHANGINGMAN.o ../../../../../src/ta_func/ta_CDLHANGINGMAN.c + +../../../../../temp/cmp/ta_CDLHARAMI.o: ../../../../../src/ta_func/ta_CDLHARAMI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLHARAMI.o ../../../../../src/ta_func/ta_CDLHARAMI.c + +../../../../../temp/cmp/ta_CDLHARAMICROSS.o: ../../../../../src/ta_func/ta_CDLHARAMICROSS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLHARAMICROSS.o ../../../../../src/ta_func/ta_CDLHARAMICROSS.c + +../../../../../temp/cmp/ta_CDLHIGHWAVE.o: ../../../../../src/ta_func/ta_CDLHIGHWAVE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLHIGHWAVE.o ../../../../../src/ta_func/ta_CDLHIGHWAVE.c + +../../../../../temp/cmp/ta_CDLHIKKAKE.o: ../../../../../src/ta_func/ta_CDLHIKKAKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLHIKKAKE.o ../../../../../src/ta_func/ta_CDLHIKKAKE.c + +../../../../../temp/cmp/ta_CDLHIKKAKEMOD.o: ../../../../../src/ta_func/ta_CDLHIKKAKEMOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLHIKKAKEMOD.o ../../../../../src/ta_func/ta_CDLHIKKAKEMOD.c + +../../../../../temp/cmp/ta_CDLHOMINGPIGEON.o: ../../../../../src/ta_func/ta_CDLHOMINGPIGEON.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLHOMINGPIGEON.o ../../../../../src/ta_func/ta_CDLHOMINGPIGEON.c + +../../../../../temp/cmp/ta_CDLIDENTICAL3CROWS.o: ../../../../../src/ta_func/ta_CDLIDENTICAL3CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLIDENTICAL3CROWS.o ../../../../../src/ta_func/ta_CDLIDENTICAL3CROWS.c + +../../../../../temp/cmp/ta_CDLINNECK.o: ../../../../../src/ta_func/ta_CDLINNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLINNECK.o ../../../../../src/ta_func/ta_CDLINNECK.c + +../../../../../temp/cmp/ta_CDLINVERTEDHAMMER.o: ../../../../../src/ta_func/ta_CDLINVERTEDHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLINVERTEDHAMMER.o ../../../../../src/ta_func/ta_CDLINVERTEDHAMMER.c + +../../../../../temp/cmp/ta_CDLKICKING.o: ../../../../../src/ta_func/ta_CDLKICKING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLKICKING.o ../../../../../src/ta_func/ta_CDLKICKING.c + +../../../../../temp/cmp/ta_CDLKICKINGBYLENGTH.o: ../../../../../src/ta_func/ta_CDLKICKINGBYLENGTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLKICKINGBYLENGTH.o ../../../../../src/ta_func/ta_CDLKICKINGBYLENGTH.c + +../../../../../temp/cmp/ta_CDLLADDERBOTTOM.o: ../../../../../src/ta_func/ta_CDLLADDERBOTTOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLLADDERBOTTOM.o ../../../../../src/ta_func/ta_CDLLADDERBOTTOM.c + +../../../../../temp/cmp/ta_CDLLONGLEGGEDDOJI.o: ../../../../../src/ta_func/ta_CDLLONGLEGGEDDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLLONGLEGGEDDOJI.o ../../../../../src/ta_func/ta_CDLLONGLEGGEDDOJI.c + +../../../../../temp/cmp/ta_CDLLONGLINE.o: ../../../../../src/ta_func/ta_CDLLONGLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLLONGLINE.o ../../../../../src/ta_func/ta_CDLLONGLINE.c + +../../../../../temp/cmp/ta_CDLMARUBOZU.o: ../../../../../src/ta_func/ta_CDLMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLMARUBOZU.o ../../../../../src/ta_func/ta_CDLMARUBOZU.c + +../../../../../temp/cmp/ta_CDLMATCHINGLOW.o: ../../../../../src/ta_func/ta_CDLMATCHINGLOW.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLMATCHINGLOW.o ../../../../../src/ta_func/ta_CDLMATCHINGLOW.c + +../../../../../temp/cmp/ta_CDLMATHOLD.o: ../../../../../src/ta_func/ta_CDLMATHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLMATHOLD.o ../../../../../src/ta_func/ta_CDLMATHOLD.c + +../../../../../temp/cmp/ta_CDLMORNINGDOJISTAR.o: ../../../../../src/ta_func/ta_CDLMORNINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLMORNINGDOJISTAR.o ../../../../../src/ta_func/ta_CDLMORNINGDOJISTAR.c + +../../../../../temp/cmp/ta_CDLMORNINGSTAR.o: ../../../../../src/ta_func/ta_CDLMORNINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLMORNINGSTAR.o ../../../../../src/ta_func/ta_CDLMORNINGSTAR.c + +../../../../../temp/cmp/ta_CDLONNECK.o: ../../../../../src/ta_func/ta_CDLONNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLONNECK.o ../../../../../src/ta_func/ta_CDLONNECK.c + +../../../../../temp/cmp/ta_CDLPIERCING.o: ../../../../../src/ta_func/ta_CDLPIERCING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLPIERCING.o ../../../../../src/ta_func/ta_CDLPIERCING.c + +../../../../../temp/cmp/ta_CDLRICKSHAWMAN.o: ../../../../../src/ta_func/ta_CDLRICKSHAWMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLRICKSHAWMAN.o ../../../../../src/ta_func/ta_CDLRICKSHAWMAN.c + +../../../../../temp/cmp/ta_CDLRISEFALL3METHODS.o: ../../../../../src/ta_func/ta_CDLRISEFALL3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLRISEFALL3METHODS.o ../../../../../src/ta_func/ta_CDLRISEFALL3METHODS.c + +../../../../../temp/cmp/ta_CDLSEPARATINGLINES.o: ../../../../../src/ta_func/ta_CDLSEPARATINGLINES.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLSEPARATINGLINES.o ../../../../../src/ta_func/ta_CDLSEPARATINGLINES.c + +../../../../../temp/cmp/ta_CDLSHOOTINGSTAR.o: ../../../../../src/ta_func/ta_CDLSHOOTINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLSHOOTINGSTAR.o ../../../../../src/ta_func/ta_CDLSHOOTINGSTAR.c + +../../../../../temp/cmp/ta_CDLSHORTLINE.o: ../../../../../src/ta_func/ta_CDLSHORTLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLSHORTLINE.o ../../../../../src/ta_func/ta_CDLSHORTLINE.c + +../../../../../temp/cmp/ta_CDLSPINNINGTOP.o: ../../../../../src/ta_func/ta_CDLSPINNINGTOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLSPINNINGTOP.o ../../../../../src/ta_func/ta_CDLSPINNINGTOP.c + +../../../../../temp/cmp/ta_CDLSTALLEDPATTERN.o: ../../../../../src/ta_func/ta_CDLSTALLEDPATTERN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLSTALLEDPATTERN.o ../../../../../src/ta_func/ta_CDLSTALLEDPATTERN.c + +../../../../../temp/cmp/ta_CDLSTICKSANDWICH.o: ../../../../../src/ta_func/ta_CDLSTICKSANDWICH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLSTICKSANDWICH.o ../../../../../src/ta_func/ta_CDLSTICKSANDWICH.c + +../../../../../temp/cmp/ta_CDLTAKURI.o: ../../../../../src/ta_func/ta_CDLTAKURI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLTAKURI.o ../../../../../src/ta_func/ta_CDLTAKURI.c + +../../../../../temp/cmp/ta_CDLTASUKIGAP.o: ../../../../../src/ta_func/ta_CDLTASUKIGAP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLTASUKIGAP.o ../../../../../src/ta_func/ta_CDLTASUKIGAP.c + +../../../../../temp/cmp/ta_CDLTHRUSTING.o: ../../../../../src/ta_func/ta_CDLTHRUSTING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLTHRUSTING.o ../../../../../src/ta_func/ta_CDLTHRUSTING.c + +../../../../../temp/cmp/ta_CDLTRISTAR.o: ../../../../../src/ta_func/ta_CDLTRISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLTRISTAR.o ../../../../../src/ta_func/ta_CDLTRISTAR.c + +../../../../../temp/cmp/ta_CDLUNIQUE3RIVER.o: ../../../../../src/ta_func/ta_CDLUNIQUE3RIVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLUNIQUE3RIVER.o ../../../../../src/ta_func/ta_CDLUNIQUE3RIVER.c + +../../../../../temp/cmp/ta_CDLUPSIDEGAP2CROWS.o: ../../../../../src/ta_func/ta_CDLUPSIDEGAP2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLUPSIDEGAP2CROWS.o ../../../../../src/ta_func/ta_CDLUPSIDEGAP2CROWS.c + +../../../../../temp/cmp/ta_CDLXSIDEGAP3METHODS.o: ../../../../../src/ta_func/ta_CDLXSIDEGAP3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLXSIDEGAP3METHODS.o ../../../../../src/ta_func/ta_CDLXSIDEGAP3METHODS.c + +../../../../../temp/cmp/ta_CEIL.o: ../../../../../src/ta_func/ta_CEIL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CEIL.o ../../../../../src/ta_func/ta_CEIL.c + +../../../../../temp/cmp/ta_CMO.o: ../../../../../src/ta_func/ta_CMO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CMO.o ../../../../../src/ta_func/ta_CMO.c + +../../../../../temp/cmp/ta_CORREL.o: ../../../../../src/ta_func/ta_CORREL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CORREL.o ../../../../../src/ta_func/ta_CORREL.c + +../../../../../temp/cmp/ta_COS.o: ../../../../../src/ta_func/ta_COS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_COS.o ../../../../../src/ta_func/ta_COS.c + +../../../../../temp/cmp/ta_COSH.o: ../../../../../src/ta_func/ta_COSH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_COSH.o ../../../../../src/ta_func/ta_COSH.c + +../../../../../temp/cmp/ta_DEMA.o: ../../../../../src/ta_func/ta_DEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_DEMA.o ../../../../../src/ta_func/ta_DEMA.c + +../../../../../temp/cmp/ta_DIV.o: ../../../../../src/ta_func/ta_DIV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_DIV.o ../../../../../src/ta_func/ta_DIV.c + +../../../../../temp/cmp/ta_DX.o: ../../../../../src/ta_func/ta_DX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_DX.o ../../../../../src/ta_func/ta_DX.c + +../../../../../temp/cmp/ta_EMA.o: ../../../../../src/ta_func/ta_EMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_EMA.o ../../../../../src/ta_func/ta_EMA.c + +../../../../../temp/cmp/ta_EXP.o: ../../../../../src/ta_func/ta_EXP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_EXP.o ../../../../../src/ta_func/ta_EXP.c + +../../../../../temp/cmp/ta_FLOOR.o: ../../../../../src/ta_func/ta_FLOOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_FLOOR.o ../../../../../src/ta_func/ta_FLOOR.c + +../../../../../temp/cmp/ta_HT_DCPERIOD.o: ../../../../../src/ta_func/ta_HT_DCPERIOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_HT_DCPERIOD.o ../../../../../src/ta_func/ta_HT_DCPERIOD.c + +../../../../../temp/cmp/ta_HT_DCPHASE.o: ../../../../../src/ta_func/ta_HT_DCPHASE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_HT_DCPHASE.o ../../../../../src/ta_func/ta_HT_DCPHASE.c + +../../../../../temp/cmp/ta_HT_PHASOR.o: ../../../../../src/ta_func/ta_HT_PHASOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_HT_PHASOR.o ../../../../../src/ta_func/ta_HT_PHASOR.c + +../../../../../temp/cmp/ta_HT_SINE.o: ../../../../../src/ta_func/ta_HT_SINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_HT_SINE.o ../../../../../src/ta_func/ta_HT_SINE.c + +../../../../../temp/cmp/ta_HT_TRENDLINE.o: ../../../../../src/ta_func/ta_HT_TRENDLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_HT_TRENDLINE.o ../../../../../src/ta_func/ta_HT_TRENDLINE.c + +../../../../../temp/cmp/ta_HT_TRENDMODE.o: ../../../../../src/ta_func/ta_HT_TRENDMODE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_HT_TRENDMODE.o ../../../../../src/ta_func/ta_HT_TRENDMODE.c + +../../../../../temp/cmp/ta_KAMA.o: ../../../../../src/ta_func/ta_KAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_KAMA.o ../../../../../src/ta_func/ta_KAMA.c + +../../../../../temp/cmp/ta_LINEARREG.o: ../../../../../src/ta_func/ta_LINEARREG.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_LINEARREG.o ../../../../../src/ta_func/ta_LINEARREG.c + +../../../../../temp/cmp/ta_LINEARREG_ANGLE.o: ../../../../../src/ta_func/ta_LINEARREG_ANGLE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_LINEARREG_ANGLE.o ../../../../../src/ta_func/ta_LINEARREG_ANGLE.c + +../../../../../temp/cmp/ta_LINEARREG_INTERCEPT.o: ../../../../../src/ta_func/ta_LINEARREG_INTERCEPT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_LINEARREG_INTERCEPT.o ../../../../../src/ta_func/ta_LINEARREG_INTERCEPT.c + +../../../../../temp/cmp/ta_LINEARREG_SLOPE.o: ../../../../../src/ta_func/ta_LINEARREG_SLOPE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_LINEARREG_SLOPE.o ../../../../../src/ta_func/ta_LINEARREG_SLOPE.c + +../../../../../temp/cmp/ta_LN.o: ../../../../../src/ta_func/ta_LN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_LN.o ../../../../../src/ta_func/ta_LN.c + +../../../../../temp/cmp/ta_LOG10.o: ../../../../../src/ta_func/ta_LOG10.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_LOG10.o ../../../../../src/ta_func/ta_LOG10.c + +../../../../../temp/cmp/ta_MA.o: ../../../../../src/ta_func/ta_MA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_MA.o ../../../../../src/ta_func/ta_MA.c + +../../../../../temp/cmp/ta_MACD.o: ../../../../../src/ta_func/ta_MACD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_MACD.o ../../../../../src/ta_func/ta_MACD.c + +../../../../../temp/cmp/ta_MACDEXT.o: ../../../../../src/ta_func/ta_MACDEXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_MACDEXT.o ../../../../../src/ta_func/ta_MACDEXT.c + +../../../../../temp/cmp/ta_MACDFIX.o: ../../../../../src/ta_func/ta_MACDFIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_MACDFIX.o ../../../../../src/ta_func/ta_MACDFIX.c + +../../../../../temp/cmp/ta_MAMA.o: ../../../../../src/ta_func/ta_MAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_MAMA.o ../../../../../src/ta_func/ta_MAMA.c + +../../../../../temp/cmp/ta_MAVP.o: ../../../../../src/ta_func/ta_MAVP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_MAVP.o ../../../../../src/ta_func/ta_MAVP.c + +../../../../../temp/cmp/ta_MAX.o: ../../../../../src/ta_func/ta_MAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_MAX.o ../../../../../src/ta_func/ta_MAX.c + +../../../../../temp/cmp/ta_MAXINDEX.o: ../../../../../src/ta_func/ta_MAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_MAXINDEX.o ../../../../../src/ta_func/ta_MAXINDEX.c + +../../../../../temp/cmp/ta_MEDPRICE.o: ../../../../../src/ta_func/ta_MEDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_MEDPRICE.o ../../../../../src/ta_func/ta_MEDPRICE.c + +../../../../../temp/cmp/ta_MFI.o: ../../../../../src/ta_func/ta_MFI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_MFI.o ../../../../../src/ta_func/ta_MFI.c + +../../../../../temp/cmp/ta_MIDPOINT.o: ../../../../../src/ta_func/ta_MIDPOINT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_MIDPOINT.o ../../../../../src/ta_func/ta_MIDPOINT.c + +../../../../../temp/cmp/ta_MIDPRICE.o: ../../../../../src/ta_func/ta_MIDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_MIDPRICE.o ../../../../../src/ta_func/ta_MIDPRICE.c + +../../../../../temp/cmp/ta_MIN.o: ../../../../../src/ta_func/ta_MIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_MIN.o ../../../../../src/ta_func/ta_MIN.c + +../../../../../temp/cmp/ta_MININDEX.o: ../../../../../src/ta_func/ta_MININDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_MININDEX.o ../../../../../src/ta_func/ta_MININDEX.c + +../../../../../temp/cmp/ta_MINMAX.o: ../../../../../src/ta_func/ta_MINMAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_MINMAX.o ../../../../../src/ta_func/ta_MINMAX.c + +../../../../../temp/cmp/ta_MINMAXINDEX.o: ../../../../../src/ta_func/ta_MINMAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_MINMAXINDEX.o ../../../../../src/ta_func/ta_MINMAXINDEX.c + +../../../../../temp/cmp/ta_MINUS_DI.o: ../../../../../src/ta_func/ta_MINUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_MINUS_DI.o ../../../../../src/ta_func/ta_MINUS_DI.c + +../../../../../temp/cmp/ta_MINUS_DM.o: ../../../../../src/ta_func/ta_MINUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_MINUS_DM.o ../../../../../src/ta_func/ta_MINUS_DM.c + +../../../../../temp/cmp/ta_MOM.o: ../../../../../src/ta_func/ta_MOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_MOM.o ../../../../../src/ta_func/ta_MOM.c + +../../../../../temp/cmp/ta_MULT.o: ../../../../../src/ta_func/ta_MULT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_MULT.o ../../../../../src/ta_func/ta_MULT.c + +../../../../../temp/cmp/ta_NATR.o: ../../../../../src/ta_func/ta_NATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_NATR.o ../../../../../src/ta_func/ta_NATR.c + +../../../../../temp/cmp/ta_OBV.o: ../../../../../src/ta_func/ta_OBV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_OBV.o ../../../../../src/ta_func/ta_OBV.c + +../../../../../temp/cmp/ta_PLUS_DI.o: ../../../../../src/ta_func/ta_PLUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_PLUS_DI.o ../../../../../src/ta_func/ta_PLUS_DI.c + +../../../../../temp/cmp/ta_PLUS_DM.o: ../../../../../src/ta_func/ta_PLUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_PLUS_DM.o ../../../../../src/ta_func/ta_PLUS_DM.c + +../../../../../temp/cmp/ta_PPO.o: ../../../../../src/ta_func/ta_PPO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_PPO.o ../../../../../src/ta_func/ta_PPO.c + +../../../../../temp/cmp/ta_ROC.o: ../../../../../src/ta_func/ta_ROC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_ROC.o ../../../../../src/ta_func/ta_ROC.c + +../../../../../temp/cmp/ta_ROCP.o: ../../../../../src/ta_func/ta_ROCP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_ROCP.o ../../../../../src/ta_func/ta_ROCP.c + +../../../../../temp/cmp/ta_ROCR.o: ../../../../../src/ta_func/ta_ROCR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_ROCR.o ../../../../../src/ta_func/ta_ROCR.c + +../../../../../temp/cmp/ta_ROCR100.o: ../../../../../src/ta_func/ta_ROCR100.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_ROCR100.o ../../../../../src/ta_func/ta_ROCR100.c + +../../../../../temp/cmp/ta_RSI.o: ../../../../../src/ta_func/ta_RSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_RSI.o ../../../../../src/ta_func/ta_RSI.c + +../../../../../temp/cmp/ta_SAR.o: ../../../../../src/ta_func/ta_SAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_SAR.o ../../../../../src/ta_func/ta_SAR.c + +../../../../../temp/cmp/ta_SAREXT.o: ../../../../../src/ta_func/ta_SAREXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_SAREXT.o ../../../../../src/ta_func/ta_SAREXT.c + +../../../../../temp/cmp/ta_SIN.o: ../../../../../src/ta_func/ta_SIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_SIN.o ../../../../../src/ta_func/ta_SIN.c + +../../../../../temp/cmp/ta_SINH.o: ../../../../../src/ta_func/ta_SINH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_SINH.o ../../../../../src/ta_func/ta_SINH.c + +../../../../../temp/cmp/ta_SMA.o: ../../../../../src/ta_func/ta_SMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_SMA.o ../../../../../src/ta_func/ta_SMA.c + +../../../../../temp/cmp/ta_SQRT.o: ../../../../../src/ta_func/ta_SQRT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_SQRT.o ../../../../../src/ta_func/ta_SQRT.c + +../../../../../temp/cmp/ta_STDDEV.o: ../../../../../src/ta_func/ta_STDDEV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_STDDEV.o ../../../../../src/ta_func/ta_STDDEV.c + +../../../../../temp/cmp/ta_STOCH.o: ../../../../../src/ta_func/ta_STOCH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_STOCH.o ../../../../../src/ta_func/ta_STOCH.c + +../../../../../temp/cmp/ta_STOCHF.o: ../../../../../src/ta_func/ta_STOCHF.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_STOCHF.o ../../../../../src/ta_func/ta_STOCHF.c + +../../../../../temp/cmp/ta_STOCHRSI.o: ../../../../../src/ta_func/ta_STOCHRSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_STOCHRSI.o ../../../../../src/ta_func/ta_STOCHRSI.c + +../../../../../temp/cmp/ta_SUB.o: ../../../../../src/ta_func/ta_SUB.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_SUB.o ../../../../../src/ta_func/ta_SUB.c + +../../../../../temp/cmp/ta_SUM.o: ../../../../../src/ta_func/ta_SUM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_SUM.o ../../../../../src/ta_func/ta_SUM.c + +../../../../../temp/cmp/ta_T3.o: ../../../../../src/ta_func/ta_T3.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_T3.o ../../../../../src/ta_func/ta_T3.c + +../../../../../temp/cmp/ta_TAN.o: ../../../../../src/ta_func/ta_TAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_TAN.o ../../../../../src/ta_func/ta_TAN.c + +../../../../../temp/cmp/ta_TANH.o: ../../../../../src/ta_func/ta_TANH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_TANH.o ../../../../../src/ta_func/ta_TANH.c + +../../../../../temp/cmp/ta_TEMA.o: ../../../../../src/ta_func/ta_TEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_TEMA.o ../../../../../src/ta_func/ta_TEMA.c + +../../../../../temp/cmp/ta_TRANGE.o: ../../../../../src/ta_func/ta_TRANGE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_TRANGE.o ../../../../../src/ta_func/ta_TRANGE.c + +../../../../../temp/cmp/ta_TRIMA.o: ../../../../../src/ta_func/ta_TRIMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_TRIMA.o ../../../../../src/ta_func/ta_TRIMA.c + +../../../../../temp/cmp/ta_TRIX.o: ../../../../../src/ta_func/ta_TRIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_TRIX.o ../../../../../src/ta_func/ta_TRIX.c + +../../../../../temp/cmp/ta_TSF.o: ../../../../../src/ta_func/ta_TSF.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_TSF.o ../../../../../src/ta_func/ta_TSF.c + +../../../../../temp/cmp/ta_TYPPRICE.o: ../../../../../src/ta_func/ta_TYPPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_TYPPRICE.o ../../../../../src/ta_func/ta_TYPPRICE.c + +../../../../../temp/cmp/ta_ULTOSC.o: ../../../../../src/ta_func/ta_ULTOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_ULTOSC.o ../../../../../src/ta_func/ta_ULTOSC.c + +../../../../../temp/cmp/ta_VAR.o: ../../../../../src/ta_func/ta_VAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_VAR.o ../../../../../src/ta_func/ta_VAR.c + +../../../../../temp/cmp/ta_WCLPRICE.o: ../../../../../src/ta_func/ta_WCLPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_WCLPRICE.o ../../../../../src/ta_func/ta_WCLPRICE.c + +../../../../../temp/cmp/ta_WILLR.o: ../../../../../src/ta_func/ta_WILLR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_WILLR.o ../../../../../src/ta_func/ta_WILLR.c + +../../../../../temp/cmp/ta_WMA.o: ../../../../../src/ta_func/ta_WMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_WMA.o ../../../../../src/ta_func/ta_WMA.c + diff --git a/make/cmp/freebsd/g++/ta_libc/Makefile b/make/cmp/freebsd/g++/ta_libc/Makefile new file mode 100644 index 000000000..30b85bd0b --- /dev/null +++ b/make/cmp/freebsd/g++/ta_libc/Makefile @@ -0,0 +1,1053 @@ +############################################################################# +# Makefile for building ../../../../../lib/libta_libc_cmp.a +# Generated by tmake; +# Project: ta_libc/ta_libc +# Template: lib +############################################################################# + +####### Compiler, tools and options + +CC = gcc +CXX = g++ +CFLAGS = -pipe -Wall -W -g -O -pg -D_REENTRANT -DTA_DEBUG -D_DEBUG -DQT_THREAD_SUPPORT +CXXFLAGS= -pipe -Wall -W -g -D_REENTRANT -DTA_DEBUG -D_DEBUG -DQT_THREAD_SUPPORT +INCPATH = -I../../../../../src/ta_common -I../../../../../include -I../../../../../src/ta_abstract -I../../../../../src/ta_abstract/tables -I../../../../../src/ta_abstract/frames -I/usr/local/include -I$(QTDIR)/include +AR = ar cqs +RANLIB = +MOC = $(QTDIR)/bin/moc +UIC = $(QTDIR)/bin/uic + +TAR = tar -cf +GZIP = gzip -9f + +####### Support for 64-bit systems +ifeq ($(shell uname -m), x86_64) + CFLAGS += -march=x86-64 -m64 -D__64BIT__ + CXXFLAGS += -march=x86-64 -m64 -D__64BIT__ +endif + +####### Apply additional overruling user flags, if any +CFLAGS += $(CUSERFLAGS) +CXXFLAGS += $(CUSERFLAGS) + +####### Files + +HEADERS = +SOURCES = ../../../../../src/ta_common/ta_global.c \ + ../../../../../src/ta_common/ta_retcode.c \ + ../../../../../src/ta_common/ta_version.c \ + ../../../../../src/ta_abstract/ta_abstract.c \ + ../../../../../src/ta_abstract/ta_def_ui.c \ + ../../../../../src/ta_abstract/ta_func_api.c \ + ../../../../../src/ta_abstract/ta_group_idx.c \ + ../../../../../src/ta_abstract/frames/ta_frame.c \ + ../../../../../src/ta_abstract/tables/table_a.c \ + ../../../../../src/ta_abstract/tables/table_b.c \ + ../../../../../src/ta_abstract/tables/table_c.c \ + ../../../../../src/ta_abstract/tables/table_d.c \ + ../../../../../src/ta_abstract/tables/table_e.c \ + ../../../../../src/ta_abstract/tables/table_f.c \ + ../../../../../src/ta_abstract/tables/table_g.c \ + ../../../../../src/ta_abstract/tables/table_h.c \ + ../../../../../src/ta_abstract/tables/table_i.c \ + ../../../../../src/ta_abstract/tables/table_j.c \ + ../../../../../src/ta_abstract/tables/table_k.c \ + ../../../../../src/ta_abstract/tables/table_l.c \ + ../../../../../src/ta_abstract/tables/table_m.c \ + ../../../../../src/ta_abstract/tables/table_n.c \ + ../../../../../src/ta_abstract/tables/table_o.c \ + ../../../../../src/ta_abstract/tables/table_p.c \ + ../../../../../src/ta_abstract/tables/table_q.c \ + ../../../../../src/ta_abstract/tables/table_r.c \ + ../../../../../src/ta_abstract/tables/table_s.c \ + ../../../../../src/ta_abstract/tables/table_t.c \ + ../../../../../src/ta_abstract/tables/table_u.c \ + ../../../../../src/ta_abstract/tables/table_v.c \ + ../../../../../src/ta_abstract/tables/table_w.c \ + ../../../../../src/ta_abstract/tables/table_x.c \ + ../../../../../src/ta_abstract/tables/table_y.c \ + ../../../../../src/ta_abstract/tables/table_z.c \ + ../../../../../src/ta_func/ta_utility.c \ + ../../../../../src/ta_func/ta_ACOS.c \ + ../../../../../src/ta_func/ta_AD.c \ + ../../../../../src/ta_func/ta_ADD.c \ + ../../../../../src/ta_func/ta_ADOSC.c \ + ../../../../../src/ta_func/ta_ADX.c \ + ../../../../../src/ta_func/ta_ADXR.c \ + ../../../../../src/ta_func/ta_APO.c \ + ../../../../../src/ta_func/ta_AROON.c \ + ../../../../../src/ta_func/ta_AROONOSC.c \ + ../../../../../src/ta_func/ta_ASIN.c \ + ../../../../../src/ta_func/ta_ATAN.c \ + ../../../../../src/ta_func/ta_ATR.c \ + ../../../../../src/ta_func/ta_AVGPRICE.c \ + ../../../../../src/ta_func/ta_BBANDS.c \ + ../../../../../src/ta_func/ta_BETA.c \ + ../../../../../src/ta_func/ta_BOP.c \ + ../../../../../src/ta_func/ta_CCI.c \ + ../../../../../src/ta_func/ta_CDL2CROWS.c \ + ../../../../../src/ta_func/ta_CDL3BLACKCROWS.c \ + ../../../../../src/ta_func/ta_CDL3INSIDE.c \ + ../../../../../src/ta_func/ta_CDL3LINESTRIKE.c \ + ../../../../../src/ta_func/ta_CDL3OUTSIDE.c \ + ../../../../../src/ta_func/ta_CDL3STARSINSOUTH.c \ + ../../../../../src/ta_func/ta_CDL3WHITESOLDIERS.c \ + ../../../../../src/ta_func/ta_CDLABANDONEDBABY.c \ + ../../../../../src/ta_func/ta_CDLADVANCEBLOCK.c \ + ../../../../../src/ta_func/ta_CDLBELTHOLD.c \ + ../../../../../src/ta_func/ta_CDLBREAKAWAY.c \ + ../../../../../src/ta_func/ta_CDLCLOSINGMARUBOZU.c \ + ../../../../../src/ta_func/ta_CDLCONCEALBABYSWALL.c \ + ../../../../../src/ta_func/ta_CDLCOUNTERATTACK.c \ + ../../../../../src/ta_func/ta_CDLDARKCLOUDCOVER.c \ + ../../../../../src/ta_func/ta_CDLDOJI.c \ + ../../../../../src/ta_func/ta_CDLDOJISTAR.c \ + ../../../../../src/ta_func/ta_CDLDRAGONFLYDOJI.c \ + ../../../../../src/ta_func/ta_CDLENGULFING.c \ + ../../../../../src/ta_func/ta_CDLEVENINGDOJISTAR.c \ + ../../../../../src/ta_func/ta_CDLEVENINGSTAR.c \ + ../../../../../src/ta_func/ta_CDLGAPSIDESIDEWHITE.c \ + ../../../../../src/ta_func/ta_CDLGRAVESTONEDOJI.c \ + ../../../../../src/ta_func/ta_CDLHAMMER.c \ + ../../../../../src/ta_func/ta_CDLHANGINGMAN.c \ + ../../../../../src/ta_func/ta_CDLHARAMI.c \ + ../../../../../src/ta_func/ta_CDLHARAMICROSS.c \ + ../../../../../src/ta_func/ta_CDLHIGHWAVE.c \ + ../../../../../src/ta_func/ta_CDLHIKKAKE.c \ + ../../../../../src/ta_func/ta_CDLHIKKAKEMOD.c \ + ../../../../../src/ta_func/ta_CDLHOMINGPIGEON.c \ + ../../../../../src/ta_func/ta_CDLIDENTICAL3CROWS.c \ + ../../../../../src/ta_func/ta_CDLINNECK.c \ + ../../../../../src/ta_func/ta_CDLINVERTEDHAMMER.c \ + ../../../../../src/ta_func/ta_CDLKICKING.c \ + ../../../../../src/ta_func/ta_CDLKICKINGBYLENGTH.c \ + ../../../../../src/ta_func/ta_CDLLADDERBOTTOM.c \ + ../../../../../src/ta_func/ta_CDLLONGLEGGEDDOJI.c \ + ../../../../../src/ta_func/ta_CDLLONGLINE.c \ + ../../../../../src/ta_func/ta_CDLMARUBOZU.c \ + ../../../../../src/ta_func/ta_CDLMATCHINGLOW.c \ + ../../../../../src/ta_func/ta_CDLMATHOLD.c \ + ../../../../../src/ta_func/ta_CDLMORNINGDOJISTAR.c \ + ../../../../../src/ta_func/ta_CDLMORNINGSTAR.c \ + ../../../../../src/ta_func/ta_CDLONNECK.c \ + ../../../../../src/ta_func/ta_CDLPIERCING.c \ + ../../../../../src/ta_func/ta_CDLRICKSHAWMAN.c \ + ../../../../../src/ta_func/ta_CDLRISEFALL3METHODS.c \ + ../../../../../src/ta_func/ta_CDLSEPARATINGLINES.c \ + ../../../../../src/ta_func/ta_CDLSHOOTINGSTAR.c \ + ../../../../../src/ta_func/ta_CDLSHORTLINE.c \ + ../../../../../src/ta_func/ta_CDLSPINNINGTOP.c \ + ../../../../../src/ta_func/ta_CDLSTALLEDPATTERN.c \ + ../../../../../src/ta_func/ta_CDLSTICKSANDWICH.c \ + ../../../../../src/ta_func/ta_CDLTAKURI.c \ + ../../../../../src/ta_func/ta_CDLTASUKIGAP.c \ + ../../../../../src/ta_func/ta_CDLTHRUSTING.c \ + ../../../../../src/ta_func/ta_CDLTRISTAR.c \ + ../../../../../src/ta_func/ta_CDLUNIQUE3RIVER.c \ + ../../../../../src/ta_func/ta_CDLUPSIDEGAP2CROWS.c \ + ../../../../../src/ta_func/ta_CDLXSIDEGAP3METHODS.c \ + ../../../../../src/ta_func/ta_CEIL.c \ + ../../../../../src/ta_func/ta_CMO.c \ + ../../../../../src/ta_func/ta_CORREL.c \ + ../../../../../src/ta_func/ta_COS.c \ + ../../../../../src/ta_func/ta_COSH.c \ + ../../../../../src/ta_func/ta_DEMA.c \ + ../../../../../src/ta_func/ta_DIV.c \ + ../../../../../src/ta_func/ta_DX.c \ + ../../../../../src/ta_func/ta_EMA.c \ + ../../../../../src/ta_func/ta_EXP.c \ + ../../../../../src/ta_func/ta_FLOOR.c \ + ../../../../../src/ta_func/ta_HT_DCPERIOD.c \ + ../../../../../src/ta_func/ta_HT_DCPHASE.c \ + ../../../../../src/ta_func/ta_HT_PHASOR.c \ + ../../../../../src/ta_func/ta_HT_SINE.c \ + ../../../../../src/ta_func/ta_HT_TRENDLINE.c \ + ../../../../../src/ta_func/ta_HT_TRENDMODE.c \ + ../../../../../src/ta_func/ta_KAMA.c \ + ../../../../../src/ta_func/ta_LINEARREG.c \ + ../../../../../src/ta_func/ta_LINEARREG_ANGLE.c \ + ../../../../../src/ta_func/ta_LINEARREG_INTERCEPT.c \ + ../../../../../src/ta_func/ta_LINEARREG_SLOPE.c \ + ../../../../../src/ta_func/ta_LN.c \ + ../../../../../src/ta_func/ta_LOG10.c \ + ../../../../../src/ta_func/ta_MA.c \ + ../../../../../src/ta_func/ta_MACD.c \ + ../../../../../src/ta_func/ta_MACDEXT.c \ + ../../../../../src/ta_func/ta_MACDFIX.c \ + ../../../../../src/ta_func/ta_MAMA.c \ + ../../../../../src/ta_func/ta_MAVP.c \ + ../../../../../src/ta_func/ta_MAX.c \ + ../../../../../src/ta_func/ta_MAXINDEX.c \ + ../../../../../src/ta_func/ta_MEDPRICE.c \ + ../../../../../src/ta_func/ta_MFI.c \ + ../../../../../src/ta_func/ta_MIDPOINT.c \ + ../../../../../src/ta_func/ta_MIDPRICE.c \ + ../../../../../src/ta_func/ta_MIN.c \ + ../../../../../src/ta_func/ta_MININDEX.c \ + ../../../../../src/ta_func/ta_MINMAX.c \ + ../../../../../src/ta_func/ta_MINMAXINDEX.c \ + ../../../../../src/ta_func/ta_MINUS_DI.c \ + ../../../../../src/ta_func/ta_MINUS_DM.c \ + ../../../../../src/ta_func/ta_MOM.c \ + ../../../../../src/ta_func/ta_MULT.c \ + ../../../../../src/ta_func/ta_NATR.c \ + ../../../../../src/ta_func/ta_OBV.c \ + ../../../../../src/ta_func/ta_PLUS_DI.c \ + ../../../../../src/ta_func/ta_PLUS_DM.c \ + ../../../../../src/ta_func/ta_PPO.c \ + ../../../../../src/ta_func/ta_ROC.c \ + ../../../../../src/ta_func/ta_ROCP.c \ + ../../../../../src/ta_func/ta_ROCR.c \ + ../../../../../src/ta_func/ta_ROCR100.c \ + ../../../../../src/ta_func/ta_RSI.c \ + ../../../../../src/ta_func/ta_SAR.c \ + ../../../../../src/ta_func/ta_SAREXT.c \ + ../../../../../src/ta_func/ta_SIN.c \ + ../../../../../src/ta_func/ta_SINH.c \ + ../../../../../src/ta_func/ta_SMA.c \ + ../../../../../src/ta_func/ta_SQRT.c \ + ../../../../../src/ta_func/ta_STDDEV.c \ + ../../../../../src/ta_func/ta_STOCH.c \ + ../../../../../src/ta_func/ta_STOCHF.c \ + ../../../../../src/ta_func/ta_STOCHRSI.c \ + ../../../../../src/ta_func/ta_SUB.c \ + ../../../../../src/ta_func/ta_SUM.c \ + ../../../../../src/ta_func/ta_T3.c \ + ../../../../../src/ta_func/ta_TAN.c \ + ../../../../../src/ta_func/ta_TANH.c \ + ../../../../../src/ta_func/ta_TEMA.c \ + ../../../../../src/ta_func/ta_TRANGE.c \ + ../../../../../src/ta_func/ta_TRIMA.c \ + ../../../../../src/ta_func/ta_TRIX.c \ + ../../../../../src/ta_func/ta_TSF.c \ + ../../../../../src/ta_func/ta_TYPPRICE.c \ + ../../../../../src/ta_func/ta_ULTOSC.c \ + ../../../../../src/ta_func/ta_VAR.c \ + ../../../../../src/ta_func/ta_WCLPRICE.c \ + ../../../../../src/ta_func/ta_WILLR.c \ + ../../../../../src/ta_func/ta_WMA.c +OBJECTS = ../../../../../temp/cmp/ta_global.o \ + ../../../../../temp/cmp/ta_retcode.o \ + ../../../../../temp/cmp/ta_version.o \ + ../../../../../temp/cmp/ta_abstract.o \ + ../../../../../temp/cmp/ta_def_ui.o \ + ../../../../../temp/cmp/ta_func_api.o \ + ../../../../../temp/cmp/ta_group_idx.o \ + ../../../../../temp/cmp/ta_frame.o \ + ../../../../../temp/cmp/table_a.o \ + ../../../../../temp/cmp/table_b.o \ + ../../../../../temp/cmp/table_c.o \ + ../../../../../temp/cmp/table_d.o \ + ../../../../../temp/cmp/table_e.o \ + ../../../../../temp/cmp/table_f.o \ + ../../../../../temp/cmp/table_g.o \ + ../../../../../temp/cmp/table_h.o \ + ../../../../../temp/cmp/table_i.o \ + ../../../../../temp/cmp/table_j.o \ + ../../../../../temp/cmp/table_k.o \ + ../../../../../temp/cmp/table_l.o \ + ../../../../../temp/cmp/table_m.o \ + ../../../../../temp/cmp/table_n.o \ + ../../../../../temp/cmp/table_o.o \ + ../../../../../temp/cmp/table_p.o \ + ../../../../../temp/cmp/table_q.o \ + ../../../../../temp/cmp/table_r.o \ + ../../../../../temp/cmp/table_s.o \ + ../../../../../temp/cmp/table_t.o \ + ../../../../../temp/cmp/table_u.o \ + ../../../../../temp/cmp/table_v.o \ + ../../../../../temp/cmp/table_w.o \ + ../../../../../temp/cmp/table_x.o \ + ../../../../../temp/cmp/table_y.o \ + ../../../../../temp/cmp/table_z.o \ + ../../../../../temp/cmp/ta_utility.o \ + ../../../../../temp/cmp/ta_ACOS.o \ + ../../../../../temp/cmp/ta_AD.o \ + ../../../../../temp/cmp/ta_ADD.o \ + ../../../../../temp/cmp/ta_ADOSC.o \ + ../../../../../temp/cmp/ta_ADX.o \ + ../../../../../temp/cmp/ta_ADXR.o \ + ../../../../../temp/cmp/ta_APO.o \ + ../../../../../temp/cmp/ta_AROON.o \ + ../../../../../temp/cmp/ta_AROONOSC.o \ + ../../../../../temp/cmp/ta_ASIN.o \ + ../../../../../temp/cmp/ta_ATAN.o \ + ../../../../../temp/cmp/ta_ATR.o \ + ../../../../../temp/cmp/ta_AVGPRICE.o \ + ../../../../../temp/cmp/ta_BBANDS.o \ + ../../../../../temp/cmp/ta_BETA.o \ + ../../../../../temp/cmp/ta_BOP.o \ + ../../../../../temp/cmp/ta_CCI.o \ + ../../../../../temp/cmp/ta_CDL2CROWS.o \ + ../../../../../temp/cmp/ta_CDL3BLACKCROWS.o \ + ../../../../../temp/cmp/ta_CDL3INSIDE.o \ + ../../../../../temp/cmp/ta_CDL3LINESTRIKE.o \ + ../../../../../temp/cmp/ta_CDL3OUTSIDE.o \ + ../../../../../temp/cmp/ta_CDL3STARSINSOUTH.o \ + ../../../../../temp/cmp/ta_CDL3WHITESOLDIERS.o \ + ../../../../../temp/cmp/ta_CDLABANDONEDBABY.o \ + ../../../../../temp/cmp/ta_CDLADVANCEBLOCK.o \ + ../../../../../temp/cmp/ta_CDLBELTHOLD.o \ + ../../../../../temp/cmp/ta_CDLBREAKAWAY.o \ + ../../../../../temp/cmp/ta_CDLCLOSINGMARUBOZU.o \ + ../../../../../temp/cmp/ta_CDLCONCEALBABYSWALL.o \ + ../../../../../temp/cmp/ta_CDLCOUNTERATTACK.o \ + ../../../../../temp/cmp/ta_CDLDARKCLOUDCOVER.o \ + ../../../../../temp/cmp/ta_CDLDOJI.o \ + ../../../../../temp/cmp/ta_CDLDOJISTAR.o \ + ../../../../../temp/cmp/ta_CDLDRAGONFLYDOJI.o \ + ../../../../../temp/cmp/ta_CDLENGULFING.o \ + ../../../../../temp/cmp/ta_CDLEVENINGDOJISTAR.o \ + ../../../../../temp/cmp/ta_CDLEVENINGSTAR.o \ + ../../../../../temp/cmp/ta_CDLGAPSIDESIDEWHITE.o \ + ../../../../../temp/cmp/ta_CDLGRAVESTONEDOJI.o \ + ../../../../../temp/cmp/ta_CDLHAMMER.o \ + ../../../../../temp/cmp/ta_CDLHANGINGMAN.o \ + ../../../../../temp/cmp/ta_CDLHARAMI.o \ + ../../../../../temp/cmp/ta_CDLHARAMICROSS.o \ + ../../../../../temp/cmp/ta_CDLHIGHWAVE.o \ + ../../../../../temp/cmp/ta_CDLHIKKAKE.o \ + ../../../../../temp/cmp/ta_CDLHIKKAKEMOD.o \ + ../../../../../temp/cmp/ta_CDLHOMINGPIGEON.o \ + ../../../../../temp/cmp/ta_CDLIDENTICAL3CROWS.o \ + ../../../../../temp/cmp/ta_CDLINNECK.o \ + ../../../../../temp/cmp/ta_CDLINVERTEDHAMMER.o \ + ../../../../../temp/cmp/ta_CDLKICKING.o \ + ../../../../../temp/cmp/ta_CDLKICKINGBYLENGTH.o \ + ../../../../../temp/cmp/ta_CDLLADDERBOTTOM.o \ + ../../../../../temp/cmp/ta_CDLLONGLEGGEDDOJI.o \ + ../../../../../temp/cmp/ta_CDLLONGLINE.o \ + ../../../../../temp/cmp/ta_CDLMARUBOZU.o \ + ../../../../../temp/cmp/ta_CDLMATCHINGLOW.o \ + ../../../../../temp/cmp/ta_CDLMATHOLD.o \ + ../../../../../temp/cmp/ta_CDLMORNINGDOJISTAR.o \ + ../../../../../temp/cmp/ta_CDLMORNINGSTAR.o \ + ../../../../../temp/cmp/ta_CDLONNECK.o \ + ../../../../../temp/cmp/ta_CDLPIERCING.o \ + ../../../../../temp/cmp/ta_CDLRICKSHAWMAN.o \ + ../../../../../temp/cmp/ta_CDLRISEFALL3METHODS.o \ + ../../../../../temp/cmp/ta_CDLSEPARATINGLINES.o \ + ../../../../../temp/cmp/ta_CDLSHOOTINGSTAR.o \ + ../../../../../temp/cmp/ta_CDLSHORTLINE.o \ + ../../../../../temp/cmp/ta_CDLSPINNINGTOP.o \ + ../../../../../temp/cmp/ta_CDLSTALLEDPATTERN.o \ + ../../../../../temp/cmp/ta_CDLSTICKSANDWICH.o \ + ../../../../../temp/cmp/ta_CDLTAKURI.o \ + ../../../../../temp/cmp/ta_CDLTASUKIGAP.o \ + ../../../../../temp/cmp/ta_CDLTHRUSTING.o \ + ../../../../../temp/cmp/ta_CDLTRISTAR.o \ + ../../../../../temp/cmp/ta_CDLUNIQUE3RIVER.o \ + ../../../../../temp/cmp/ta_CDLUPSIDEGAP2CROWS.o \ + ../../../../../temp/cmp/ta_CDLXSIDEGAP3METHODS.o \ + ../../../../../temp/cmp/ta_CEIL.o \ + ../../../../../temp/cmp/ta_CMO.o \ + ../../../../../temp/cmp/ta_CORREL.o \ + ../../../../../temp/cmp/ta_COS.o \ + ../../../../../temp/cmp/ta_COSH.o \ + ../../../../../temp/cmp/ta_DEMA.o \ + ../../../../../temp/cmp/ta_DIV.o \ + ../../../../../temp/cmp/ta_DX.o \ + ../../../../../temp/cmp/ta_EMA.o \ + ../../../../../temp/cmp/ta_EXP.o \ + ../../../../../temp/cmp/ta_FLOOR.o \ + ../../../../../temp/cmp/ta_HT_DCPERIOD.o \ + ../../../../../temp/cmp/ta_HT_DCPHASE.o \ + ../../../../../temp/cmp/ta_HT_PHASOR.o \ + ../../../../../temp/cmp/ta_HT_SINE.o \ + ../../../../../temp/cmp/ta_HT_TRENDLINE.o \ + ../../../../../temp/cmp/ta_HT_TRENDMODE.o \ + ../../../../../temp/cmp/ta_KAMA.o \ + ../../../../../temp/cmp/ta_LINEARREG.o \ + ../../../../../temp/cmp/ta_LINEARREG_ANGLE.o \ + ../../../../../temp/cmp/ta_LINEARREG_INTERCEPT.o \ + ../../../../../temp/cmp/ta_LINEARREG_SLOPE.o \ + ../../../../../temp/cmp/ta_LN.o \ + ../../../../../temp/cmp/ta_LOG10.o \ + ../../../../../temp/cmp/ta_MA.o \ + ../../../../../temp/cmp/ta_MACD.o \ + ../../../../../temp/cmp/ta_MACDEXT.o \ + ../../../../../temp/cmp/ta_MACDFIX.o \ + ../../../../../temp/cmp/ta_MAMA.o \ + ../../../../../temp/cmp/ta_MAVP.o \ + ../../../../../temp/cmp/ta_MAX.o \ + ../../../../../temp/cmp/ta_MAXINDEX.o \ + ../../../../../temp/cmp/ta_MEDPRICE.o \ + ../../../../../temp/cmp/ta_MFI.o \ + ../../../../../temp/cmp/ta_MIDPOINT.o \ + ../../../../../temp/cmp/ta_MIDPRICE.o \ + ../../../../../temp/cmp/ta_MIN.o \ + ../../../../../temp/cmp/ta_MININDEX.o \ + ../../../../../temp/cmp/ta_MINMAX.o \ + ../../../../../temp/cmp/ta_MINMAXINDEX.o \ + ../../../../../temp/cmp/ta_MINUS_DI.o \ + ../../../../../temp/cmp/ta_MINUS_DM.o \ + ../../../../../temp/cmp/ta_MOM.o \ + ../../../../../temp/cmp/ta_MULT.o \ + ../../../../../temp/cmp/ta_NATR.o \ + ../../../../../temp/cmp/ta_OBV.o \ + ../../../../../temp/cmp/ta_PLUS_DI.o \ + ../../../../../temp/cmp/ta_PLUS_DM.o \ + ../../../../../temp/cmp/ta_PPO.o \ + ../../../../../temp/cmp/ta_ROC.o \ + ../../../../../temp/cmp/ta_ROCP.o \ + ../../../../../temp/cmp/ta_ROCR.o \ + ../../../../../temp/cmp/ta_ROCR100.o \ + ../../../../../temp/cmp/ta_RSI.o \ + ../../../../../temp/cmp/ta_SAR.o \ + ../../../../../temp/cmp/ta_SAREXT.o \ + ../../../../../temp/cmp/ta_SIN.o \ + ../../../../../temp/cmp/ta_SINH.o \ + ../../../../../temp/cmp/ta_SMA.o \ + ../../../../../temp/cmp/ta_SQRT.o \ + ../../../../../temp/cmp/ta_STDDEV.o \ + ../../../../../temp/cmp/ta_STOCH.o \ + ../../../../../temp/cmp/ta_STOCHF.o \ + ../../../../../temp/cmp/ta_STOCHRSI.o \ + ../../../../../temp/cmp/ta_SUB.o \ + ../../../../../temp/cmp/ta_SUM.o \ + ../../../../../temp/cmp/ta_T3.o \ + ../../../../../temp/cmp/ta_TAN.o \ + ../../../../../temp/cmp/ta_TANH.o \ + ../../../../../temp/cmp/ta_TEMA.o \ + ../../../../../temp/cmp/ta_TRANGE.o \ + ../../../../../temp/cmp/ta_TRIMA.o \ + ../../../../../temp/cmp/ta_TRIX.o \ + ../../../../../temp/cmp/ta_TSF.o \ + ../../../../../temp/cmp/ta_TYPPRICE.o \ + ../../../../../temp/cmp/ta_ULTOSC.o \ + ../../../../../temp/cmp/ta_VAR.o \ + ../../../../../temp/cmp/ta_WCLPRICE.o \ + ../../../../../temp/cmp/ta_WILLR.o \ + ../../../../../temp/cmp/ta_WMA.o +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ../../../../../lib/libta_libc_cmp.a +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .C .c + +.cpp.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cxx.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cc.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.C.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.c.o: + $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $< + +####### Build rules + + +all: $(TARGET) + +staticlib: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + -rm -f $(TARGET) + $(AR) $(TARGET) $(OBJECTS) $(OBJMOC) + +moc: $(SRCMOC) + +clean: + -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) + -rm -f *~ core + +####### Sub-libraries + + +###### Combined headers + + +####### Compile + +../../../../../temp/cmp/ta_global.o: ../../../../../src/ta_common/ta_global.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_global.o ../../../../../src/ta_common/ta_global.c + +../../../../../temp/cmp/ta_retcode.o: ../../../../../src/ta_common/ta_retcode.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_retcode.o ../../../../../src/ta_common/ta_retcode.c + +../../../../../temp/cmp/ta_version.o: ../../../../../src/ta_common/ta_version.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_version.o ../../../../../src/ta_common/ta_version.c + +../../../../../temp/cmp/ta_abstract.o: ../../../../../src/ta_abstract/ta_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_abstract.o ../../../../../src/ta_abstract/ta_abstract.c + +../../../../../temp/cmp/ta_def_ui.o: ../../../../../src/ta_abstract/ta_def_ui.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_def_ui.o ../../../../../src/ta_abstract/ta_def_ui.c + +../../../../../temp/cmp/ta_func_api.o: ../../../../../src/ta_abstract/ta_func_api.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_func_api.o ../../../../../src/ta_abstract/ta_func_api.c + +../../../../../temp/cmp/ta_group_idx.o: ../../../../../src/ta_abstract/ta_group_idx.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_group_idx.o ../../../../../src/ta_abstract/ta_group_idx.c + +../../../../../temp/cmp/ta_frame.o: ../../../../../src/ta_abstract/frames/ta_frame.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_frame.o ../../../../../src/ta_abstract/frames/ta_frame.c + +../../../../../temp/cmp/table_a.o: ../../../../../src/ta_abstract/tables/table_a.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_a.o ../../../../../src/ta_abstract/tables/table_a.c + +../../../../../temp/cmp/table_b.o: ../../../../../src/ta_abstract/tables/table_b.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_b.o ../../../../../src/ta_abstract/tables/table_b.c + +../../../../../temp/cmp/table_c.o: ../../../../../src/ta_abstract/tables/table_c.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_c.o ../../../../../src/ta_abstract/tables/table_c.c + +../../../../../temp/cmp/table_d.o: ../../../../../src/ta_abstract/tables/table_d.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_d.o ../../../../../src/ta_abstract/tables/table_d.c + +../../../../../temp/cmp/table_e.o: ../../../../../src/ta_abstract/tables/table_e.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_e.o ../../../../../src/ta_abstract/tables/table_e.c + +../../../../../temp/cmp/table_f.o: ../../../../../src/ta_abstract/tables/table_f.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_f.o ../../../../../src/ta_abstract/tables/table_f.c + +../../../../../temp/cmp/table_g.o: ../../../../../src/ta_abstract/tables/table_g.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_g.o ../../../../../src/ta_abstract/tables/table_g.c + +../../../../../temp/cmp/table_h.o: ../../../../../src/ta_abstract/tables/table_h.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_h.o ../../../../../src/ta_abstract/tables/table_h.c + +../../../../../temp/cmp/table_i.o: ../../../../../src/ta_abstract/tables/table_i.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_i.o ../../../../../src/ta_abstract/tables/table_i.c + +../../../../../temp/cmp/table_j.o: ../../../../../src/ta_abstract/tables/table_j.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_j.o ../../../../../src/ta_abstract/tables/table_j.c + +../../../../../temp/cmp/table_k.o: ../../../../../src/ta_abstract/tables/table_k.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_k.o ../../../../../src/ta_abstract/tables/table_k.c + +../../../../../temp/cmp/table_l.o: ../../../../../src/ta_abstract/tables/table_l.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_l.o ../../../../../src/ta_abstract/tables/table_l.c + +../../../../../temp/cmp/table_m.o: ../../../../../src/ta_abstract/tables/table_m.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_m.o ../../../../../src/ta_abstract/tables/table_m.c + +../../../../../temp/cmp/table_n.o: ../../../../../src/ta_abstract/tables/table_n.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_n.o ../../../../../src/ta_abstract/tables/table_n.c + +../../../../../temp/cmp/table_o.o: ../../../../../src/ta_abstract/tables/table_o.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_o.o ../../../../../src/ta_abstract/tables/table_o.c + +../../../../../temp/cmp/table_p.o: ../../../../../src/ta_abstract/tables/table_p.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_p.o ../../../../../src/ta_abstract/tables/table_p.c + +../../../../../temp/cmp/table_q.o: ../../../../../src/ta_abstract/tables/table_q.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_q.o ../../../../../src/ta_abstract/tables/table_q.c + +../../../../../temp/cmp/table_r.o: ../../../../../src/ta_abstract/tables/table_r.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_r.o ../../../../../src/ta_abstract/tables/table_r.c + +../../../../../temp/cmp/table_s.o: ../../../../../src/ta_abstract/tables/table_s.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_s.o ../../../../../src/ta_abstract/tables/table_s.c + +../../../../../temp/cmp/table_t.o: ../../../../../src/ta_abstract/tables/table_t.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_t.o ../../../../../src/ta_abstract/tables/table_t.c + +../../../../../temp/cmp/table_u.o: ../../../../../src/ta_abstract/tables/table_u.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_u.o ../../../../../src/ta_abstract/tables/table_u.c + +../../../../../temp/cmp/table_v.o: ../../../../../src/ta_abstract/tables/table_v.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_v.o ../../../../../src/ta_abstract/tables/table_v.c + +../../../../../temp/cmp/table_w.o: ../../../../../src/ta_abstract/tables/table_w.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_w.o ../../../../../src/ta_abstract/tables/table_w.c + +../../../../../temp/cmp/table_x.o: ../../../../../src/ta_abstract/tables/table_x.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_x.o ../../../../../src/ta_abstract/tables/table_x.c + +../../../../../temp/cmp/table_y.o: ../../../../../src/ta_abstract/tables/table_y.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_y.o ../../../../../src/ta_abstract/tables/table_y.c + +../../../../../temp/cmp/table_z.o: ../../../../../src/ta_abstract/tables/table_z.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_z.o ../../../../../src/ta_abstract/tables/table_z.c + +../../../../../temp/cmp/ta_utility.o: ../../../../../src/ta_func/ta_utility.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_utility.o ../../../../../src/ta_func/ta_utility.c + +../../../../../temp/cmp/ta_ACOS.o: ../../../../../src/ta_func/ta_ACOS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_ACOS.o ../../../../../src/ta_func/ta_ACOS.c + +../../../../../temp/cmp/ta_AD.o: ../../../../../src/ta_func/ta_AD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_AD.o ../../../../../src/ta_func/ta_AD.c + +../../../../../temp/cmp/ta_ADD.o: ../../../../../src/ta_func/ta_ADD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_ADD.o ../../../../../src/ta_func/ta_ADD.c + +../../../../../temp/cmp/ta_ADOSC.o: ../../../../../src/ta_func/ta_ADOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_ADOSC.o ../../../../../src/ta_func/ta_ADOSC.c + +../../../../../temp/cmp/ta_ADX.o: ../../../../../src/ta_func/ta_ADX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_ADX.o ../../../../../src/ta_func/ta_ADX.c + +../../../../../temp/cmp/ta_ADXR.o: ../../../../../src/ta_func/ta_ADXR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_ADXR.o ../../../../../src/ta_func/ta_ADXR.c + +../../../../../temp/cmp/ta_APO.o: ../../../../../src/ta_func/ta_APO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_APO.o ../../../../../src/ta_func/ta_APO.c + +../../../../../temp/cmp/ta_AROON.o: ../../../../../src/ta_func/ta_AROON.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_AROON.o ../../../../../src/ta_func/ta_AROON.c + +../../../../../temp/cmp/ta_AROONOSC.o: ../../../../../src/ta_func/ta_AROONOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_AROONOSC.o ../../../../../src/ta_func/ta_AROONOSC.c + +../../../../../temp/cmp/ta_ASIN.o: ../../../../../src/ta_func/ta_ASIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_ASIN.o ../../../../../src/ta_func/ta_ASIN.c + +../../../../../temp/cmp/ta_ATAN.o: ../../../../../src/ta_func/ta_ATAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_ATAN.o ../../../../../src/ta_func/ta_ATAN.c + +../../../../../temp/cmp/ta_ATR.o: ../../../../../src/ta_func/ta_ATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_ATR.o ../../../../../src/ta_func/ta_ATR.c + +../../../../../temp/cmp/ta_AVGPRICE.o: ../../../../../src/ta_func/ta_AVGPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_AVGPRICE.o ../../../../../src/ta_func/ta_AVGPRICE.c + +../../../../../temp/cmp/ta_BBANDS.o: ../../../../../src/ta_func/ta_BBANDS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_BBANDS.o ../../../../../src/ta_func/ta_BBANDS.c + +../../../../../temp/cmp/ta_BETA.o: ../../../../../src/ta_func/ta_BETA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_BETA.o ../../../../../src/ta_func/ta_BETA.c + +../../../../../temp/cmp/ta_BOP.o: ../../../../../src/ta_func/ta_BOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_BOP.o ../../../../../src/ta_func/ta_BOP.c + +../../../../../temp/cmp/ta_CCI.o: ../../../../../src/ta_func/ta_CCI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CCI.o ../../../../../src/ta_func/ta_CCI.c + +../../../../../temp/cmp/ta_CDL2CROWS.o: ../../../../../src/ta_func/ta_CDL2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDL2CROWS.o ../../../../../src/ta_func/ta_CDL2CROWS.c + +../../../../../temp/cmp/ta_CDL3BLACKCROWS.o: ../../../../../src/ta_func/ta_CDL3BLACKCROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDL3BLACKCROWS.o ../../../../../src/ta_func/ta_CDL3BLACKCROWS.c + +../../../../../temp/cmp/ta_CDL3INSIDE.o: ../../../../../src/ta_func/ta_CDL3INSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDL3INSIDE.o ../../../../../src/ta_func/ta_CDL3INSIDE.c + +../../../../../temp/cmp/ta_CDL3LINESTRIKE.o: ../../../../../src/ta_func/ta_CDL3LINESTRIKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDL3LINESTRIKE.o ../../../../../src/ta_func/ta_CDL3LINESTRIKE.c + +../../../../../temp/cmp/ta_CDL3OUTSIDE.o: ../../../../../src/ta_func/ta_CDL3OUTSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDL3OUTSIDE.o ../../../../../src/ta_func/ta_CDL3OUTSIDE.c + +../../../../../temp/cmp/ta_CDL3STARSINSOUTH.o: ../../../../../src/ta_func/ta_CDL3STARSINSOUTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDL3STARSINSOUTH.o ../../../../../src/ta_func/ta_CDL3STARSINSOUTH.c + +../../../../../temp/cmp/ta_CDL3WHITESOLDIERS.o: ../../../../../src/ta_func/ta_CDL3WHITESOLDIERS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDL3WHITESOLDIERS.o ../../../../../src/ta_func/ta_CDL3WHITESOLDIERS.c + +../../../../../temp/cmp/ta_CDLABANDONEDBABY.o: ../../../../../src/ta_func/ta_CDLABANDONEDBABY.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLABANDONEDBABY.o ../../../../../src/ta_func/ta_CDLABANDONEDBABY.c + +../../../../../temp/cmp/ta_CDLADVANCEBLOCK.o: ../../../../../src/ta_func/ta_CDLADVANCEBLOCK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLADVANCEBLOCK.o ../../../../../src/ta_func/ta_CDLADVANCEBLOCK.c + +../../../../../temp/cmp/ta_CDLBELTHOLD.o: ../../../../../src/ta_func/ta_CDLBELTHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLBELTHOLD.o ../../../../../src/ta_func/ta_CDLBELTHOLD.c + +../../../../../temp/cmp/ta_CDLBREAKAWAY.o: ../../../../../src/ta_func/ta_CDLBREAKAWAY.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLBREAKAWAY.o ../../../../../src/ta_func/ta_CDLBREAKAWAY.c + +../../../../../temp/cmp/ta_CDLCLOSINGMARUBOZU.o: ../../../../../src/ta_func/ta_CDLCLOSINGMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLCLOSINGMARUBOZU.o ../../../../../src/ta_func/ta_CDLCLOSINGMARUBOZU.c + +../../../../../temp/cmp/ta_CDLCONCEALBABYSWALL.o: ../../../../../src/ta_func/ta_CDLCONCEALBABYSWALL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLCONCEALBABYSWALL.o ../../../../../src/ta_func/ta_CDLCONCEALBABYSWALL.c + +../../../../../temp/cmp/ta_CDLCOUNTERATTACK.o: ../../../../../src/ta_func/ta_CDLCOUNTERATTACK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLCOUNTERATTACK.o ../../../../../src/ta_func/ta_CDLCOUNTERATTACK.c + +../../../../../temp/cmp/ta_CDLDARKCLOUDCOVER.o: ../../../../../src/ta_func/ta_CDLDARKCLOUDCOVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLDARKCLOUDCOVER.o ../../../../../src/ta_func/ta_CDLDARKCLOUDCOVER.c + +../../../../../temp/cmp/ta_CDLDOJI.o: ../../../../../src/ta_func/ta_CDLDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLDOJI.o ../../../../../src/ta_func/ta_CDLDOJI.c + +../../../../../temp/cmp/ta_CDLDOJISTAR.o: ../../../../../src/ta_func/ta_CDLDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLDOJISTAR.o ../../../../../src/ta_func/ta_CDLDOJISTAR.c + +../../../../../temp/cmp/ta_CDLDRAGONFLYDOJI.o: ../../../../../src/ta_func/ta_CDLDRAGONFLYDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLDRAGONFLYDOJI.o ../../../../../src/ta_func/ta_CDLDRAGONFLYDOJI.c + +../../../../../temp/cmp/ta_CDLENGULFING.o: ../../../../../src/ta_func/ta_CDLENGULFING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLENGULFING.o ../../../../../src/ta_func/ta_CDLENGULFING.c + +../../../../../temp/cmp/ta_CDLEVENINGDOJISTAR.o: ../../../../../src/ta_func/ta_CDLEVENINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLEVENINGDOJISTAR.o ../../../../../src/ta_func/ta_CDLEVENINGDOJISTAR.c + +../../../../../temp/cmp/ta_CDLEVENINGSTAR.o: ../../../../../src/ta_func/ta_CDLEVENINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLEVENINGSTAR.o ../../../../../src/ta_func/ta_CDLEVENINGSTAR.c + +../../../../../temp/cmp/ta_CDLGAPSIDESIDEWHITE.o: ../../../../../src/ta_func/ta_CDLGAPSIDESIDEWHITE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLGAPSIDESIDEWHITE.o ../../../../../src/ta_func/ta_CDLGAPSIDESIDEWHITE.c + +../../../../../temp/cmp/ta_CDLGRAVESTONEDOJI.o: ../../../../../src/ta_func/ta_CDLGRAVESTONEDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLGRAVESTONEDOJI.o ../../../../../src/ta_func/ta_CDLGRAVESTONEDOJI.c + +../../../../../temp/cmp/ta_CDLHAMMER.o: ../../../../../src/ta_func/ta_CDLHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLHAMMER.o ../../../../../src/ta_func/ta_CDLHAMMER.c + +../../../../../temp/cmp/ta_CDLHANGINGMAN.o: ../../../../../src/ta_func/ta_CDLHANGINGMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLHANGINGMAN.o ../../../../../src/ta_func/ta_CDLHANGINGMAN.c + +../../../../../temp/cmp/ta_CDLHARAMI.o: ../../../../../src/ta_func/ta_CDLHARAMI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLHARAMI.o ../../../../../src/ta_func/ta_CDLHARAMI.c + +../../../../../temp/cmp/ta_CDLHARAMICROSS.o: ../../../../../src/ta_func/ta_CDLHARAMICROSS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLHARAMICROSS.o ../../../../../src/ta_func/ta_CDLHARAMICROSS.c + +../../../../../temp/cmp/ta_CDLHIGHWAVE.o: ../../../../../src/ta_func/ta_CDLHIGHWAVE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLHIGHWAVE.o ../../../../../src/ta_func/ta_CDLHIGHWAVE.c + +../../../../../temp/cmp/ta_CDLHIKKAKE.o: ../../../../../src/ta_func/ta_CDLHIKKAKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLHIKKAKE.o ../../../../../src/ta_func/ta_CDLHIKKAKE.c + +../../../../../temp/cmp/ta_CDLHIKKAKEMOD.o: ../../../../../src/ta_func/ta_CDLHIKKAKEMOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLHIKKAKEMOD.o ../../../../../src/ta_func/ta_CDLHIKKAKEMOD.c + +../../../../../temp/cmp/ta_CDLHOMINGPIGEON.o: ../../../../../src/ta_func/ta_CDLHOMINGPIGEON.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLHOMINGPIGEON.o ../../../../../src/ta_func/ta_CDLHOMINGPIGEON.c + +../../../../../temp/cmp/ta_CDLIDENTICAL3CROWS.o: ../../../../../src/ta_func/ta_CDLIDENTICAL3CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLIDENTICAL3CROWS.o ../../../../../src/ta_func/ta_CDLIDENTICAL3CROWS.c + +../../../../../temp/cmp/ta_CDLINNECK.o: ../../../../../src/ta_func/ta_CDLINNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLINNECK.o ../../../../../src/ta_func/ta_CDLINNECK.c + +../../../../../temp/cmp/ta_CDLINVERTEDHAMMER.o: ../../../../../src/ta_func/ta_CDLINVERTEDHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLINVERTEDHAMMER.o ../../../../../src/ta_func/ta_CDLINVERTEDHAMMER.c + +../../../../../temp/cmp/ta_CDLKICKING.o: ../../../../../src/ta_func/ta_CDLKICKING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLKICKING.o ../../../../../src/ta_func/ta_CDLKICKING.c + +../../../../../temp/cmp/ta_CDLKICKINGBYLENGTH.o: ../../../../../src/ta_func/ta_CDLKICKINGBYLENGTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLKICKINGBYLENGTH.o ../../../../../src/ta_func/ta_CDLKICKINGBYLENGTH.c + +../../../../../temp/cmp/ta_CDLLADDERBOTTOM.o: ../../../../../src/ta_func/ta_CDLLADDERBOTTOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLLADDERBOTTOM.o ../../../../../src/ta_func/ta_CDLLADDERBOTTOM.c + +../../../../../temp/cmp/ta_CDLLONGLEGGEDDOJI.o: ../../../../../src/ta_func/ta_CDLLONGLEGGEDDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLLONGLEGGEDDOJI.o ../../../../../src/ta_func/ta_CDLLONGLEGGEDDOJI.c + +../../../../../temp/cmp/ta_CDLLONGLINE.o: ../../../../../src/ta_func/ta_CDLLONGLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLLONGLINE.o ../../../../../src/ta_func/ta_CDLLONGLINE.c + +../../../../../temp/cmp/ta_CDLMARUBOZU.o: ../../../../../src/ta_func/ta_CDLMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLMARUBOZU.o ../../../../../src/ta_func/ta_CDLMARUBOZU.c + +../../../../../temp/cmp/ta_CDLMATCHINGLOW.o: ../../../../../src/ta_func/ta_CDLMATCHINGLOW.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLMATCHINGLOW.o ../../../../../src/ta_func/ta_CDLMATCHINGLOW.c + +../../../../../temp/cmp/ta_CDLMATHOLD.o: ../../../../../src/ta_func/ta_CDLMATHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLMATHOLD.o ../../../../../src/ta_func/ta_CDLMATHOLD.c + +../../../../../temp/cmp/ta_CDLMORNINGDOJISTAR.o: ../../../../../src/ta_func/ta_CDLMORNINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLMORNINGDOJISTAR.o ../../../../../src/ta_func/ta_CDLMORNINGDOJISTAR.c + +../../../../../temp/cmp/ta_CDLMORNINGSTAR.o: ../../../../../src/ta_func/ta_CDLMORNINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLMORNINGSTAR.o ../../../../../src/ta_func/ta_CDLMORNINGSTAR.c + +../../../../../temp/cmp/ta_CDLONNECK.o: ../../../../../src/ta_func/ta_CDLONNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLONNECK.o ../../../../../src/ta_func/ta_CDLONNECK.c + +../../../../../temp/cmp/ta_CDLPIERCING.o: ../../../../../src/ta_func/ta_CDLPIERCING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLPIERCING.o ../../../../../src/ta_func/ta_CDLPIERCING.c + +../../../../../temp/cmp/ta_CDLRICKSHAWMAN.o: ../../../../../src/ta_func/ta_CDLRICKSHAWMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLRICKSHAWMAN.o ../../../../../src/ta_func/ta_CDLRICKSHAWMAN.c + +../../../../../temp/cmp/ta_CDLRISEFALL3METHODS.o: ../../../../../src/ta_func/ta_CDLRISEFALL3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLRISEFALL3METHODS.o ../../../../../src/ta_func/ta_CDLRISEFALL3METHODS.c + +../../../../../temp/cmp/ta_CDLSEPARATINGLINES.o: ../../../../../src/ta_func/ta_CDLSEPARATINGLINES.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLSEPARATINGLINES.o ../../../../../src/ta_func/ta_CDLSEPARATINGLINES.c + +../../../../../temp/cmp/ta_CDLSHOOTINGSTAR.o: ../../../../../src/ta_func/ta_CDLSHOOTINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLSHOOTINGSTAR.o ../../../../../src/ta_func/ta_CDLSHOOTINGSTAR.c + +../../../../../temp/cmp/ta_CDLSHORTLINE.o: ../../../../../src/ta_func/ta_CDLSHORTLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLSHORTLINE.o ../../../../../src/ta_func/ta_CDLSHORTLINE.c + +../../../../../temp/cmp/ta_CDLSPINNINGTOP.o: ../../../../../src/ta_func/ta_CDLSPINNINGTOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLSPINNINGTOP.o ../../../../../src/ta_func/ta_CDLSPINNINGTOP.c + +../../../../../temp/cmp/ta_CDLSTALLEDPATTERN.o: ../../../../../src/ta_func/ta_CDLSTALLEDPATTERN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLSTALLEDPATTERN.o ../../../../../src/ta_func/ta_CDLSTALLEDPATTERN.c + +../../../../../temp/cmp/ta_CDLSTICKSANDWICH.o: ../../../../../src/ta_func/ta_CDLSTICKSANDWICH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLSTICKSANDWICH.o ../../../../../src/ta_func/ta_CDLSTICKSANDWICH.c + +../../../../../temp/cmp/ta_CDLTAKURI.o: ../../../../../src/ta_func/ta_CDLTAKURI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLTAKURI.o ../../../../../src/ta_func/ta_CDLTAKURI.c + +../../../../../temp/cmp/ta_CDLTASUKIGAP.o: ../../../../../src/ta_func/ta_CDLTASUKIGAP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLTASUKIGAP.o ../../../../../src/ta_func/ta_CDLTASUKIGAP.c + +../../../../../temp/cmp/ta_CDLTHRUSTING.o: ../../../../../src/ta_func/ta_CDLTHRUSTING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLTHRUSTING.o ../../../../../src/ta_func/ta_CDLTHRUSTING.c + +../../../../../temp/cmp/ta_CDLTRISTAR.o: ../../../../../src/ta_func/ta_CDLTRISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLTRISTAR.o ../../../../../src/ta_func/ta_CDLTRISTAR.c + +../../../../../temp/cmp/ta_CDLUNIQUE3RIVER.o: ../../../../../src/ta_func/ta_CDLUNIQUE3RIVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLUNIQUE3RIVER.o ../../../../../src/ta_func/ta_CDLUNIQUE3RIVER.c + +../../../../../temp/cmp/ta_CDLUPSIDEGAP2CROWS.o: ../../../../../src/ta_func/ta_CDLUPSIDEGAP2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLUPSIDEGAP2CROWS.o ../../../../../src/ta_func/ta_CDLUPSIDEGAP2CROWS.c + +../../../../../temp/cmp/ta_CDLXSIDEGAP3METHODS.o: ../../../../../src/ta_func/ta_CDLXSIDEGAP3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLXSIDEGAP3METHODS.o ../../../../../src/ta_func/ta_CDLXSIDEGAP3METHODS.c + +../../../../../temp/cmp/ta_CEIL.o: ../../../../../src/ta_func/ta_CEIL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CEIL.o ../../../../../src/ta_func/ta_CEIL.c + +../../../../../temp/cmp/ta_CMO.o: ../../../../../src/ta_func/ta_CMO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CMO.o ../../../../../src/ta_func/ta_CMO.c + +../../../../../temp/cmp/ta_CORREL.o: ../../../../../src/ta_func/ta_CORREL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CORREL.o ../../../../../src/ta_func/ta_CORREL.c + +../../../../../temp/cmp/ta_COS.o: ../../../../../src/ta_func/ta_COS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_COS.o ../../../../../src/ta_func/ta_COS.c + +../../../../../temp/cmp/ta_COSH.o: ../../../../../src/ta_func/ta_COSH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_COSH.o ../../../../../src/ta_func/ta_COSH.c + +../../../../../temp/cmp/ta_DEMA.o: ../../../../../src/ta_func/ta_DEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_DEMA.o ../../../../../src/ta_func/ta_DEMA.c + +../../../../../temp/cmp/ta_DIV.o: ../../../../../src/ta_func/ta_DIV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_DIV.o ../../../../../src/ta_func/ta_DIV.c + +../../../../../temp/cmp/ta_DX.o: ../../../../../src/ta_func/ta_DX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_DX.o ../../../../../src/ta_func/ta_DX.c + +../../../../../temp/cmp/ta_EMA.o: ../../../../../src/ta_func/ta_EMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_EMA.o ../../../../../src/ta_func/ta_EMA.c + +../../../../../temp/cmp/ta_EXP.o: ../../../../../src/ta_func/ta_EXP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_EXP.o ../../../../../src/ta_func/ta_EXP.c + +../../../../../temp/cmp/ta_FLOOR.o: ../../../../../src/ta_func/ta_FLOOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_FLOOR.o ../../../../../src/ta_func/ta_FLOOR.c + +../../../../../temp/cmp/ta_HT_DCPERIOD.o: ../../../../../src/ta_func/ta_HT_DCPERIOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_HT_DCPERIOD.o ../../../../../src/ta_func/ta_HT_DCPERIOD.c + +../../../../../temp/cmp/ta_HT_DCPHASE.o: ../../../../../src/ta_func/ta_HT_DCPHASE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_HT_DCPHASE.o ../../../../../src/ta_func/ta_HT_DCPHASE.c + +../../../../../temp/cmp/ta_HT_PHASOR.o: ../../../../../src/ta_func/ta_HT_PHASOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_HT_PHASOR.o ../../../../../src/ta_func/ta_HT_PHASOR.c + +../../../../../temp/cmp/ta_HT_SINE.o: ../../../../../src/ta_func/ta_HT_SINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_HT_SINE.o ../../../../../src/ta_func/ta_HT_SINE.c + +../../../../../temp/cmp/ta_HT_TRENDLINE.o: ../../../../../src/ta_func/ta_HT_TRENDLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_HT_TRENDLINE.o ../../../../../src/ta_func/ta_HT_TRENDLINE.c + +../../../../../temp/cmp/ta_HT_TRENDMODE.o: ../../../../../src/ta_func/ta_HT_TRENDMODE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_HT_TRENDMODE.o ../../../../../src/ta_func/ta_HT_TRENDMODE.c + +../../../../../temp/cmp/ta_KAMA.o: ../../../../../src/ta_func/ta_KAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_KAMA.o ../../../../../src/ta_func/ta_KAMA.c + +../../../../../temp/cmp/ta_LINEARREG.o: ../../../../../src/ta_func/ta_LINEARREG.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_LINEARREG.o ../../../../../src/ta_func/ta_LINEARREG.c + +../../../../../temp/cmp/ta_LINEARREG_ANGLE.o: ../../../../../src/ta_func/ta_LINEARREG_ANGLE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_LINEARREG_ANGLE.o ../../../../../src/ta_func/ta_LINEARREG_ANGLE.c + +../../../../../temp/cmp/ta_LINEARREG_INTERCEPT.o: ../../../../../src/ta_func/ta_LINEARREG_INTERCEPT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_LINEARREG_INTERCEPT.o ../../../../../src/ta_func/ta_LINEARREG_INTERCEPT.c + +../../../../../temp/cmp/ta_LINEARREG_SLOPE.o: ../../../../../src/ta_func/ta_LINEARREG_SLOPE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_LINEARREG_SLOPE.o ../../../../../src/ta_func/ta_LINEARREG_SLOPE.c + +../../../../../temp/cmp/ta_LN.o: ../../../../../src/ta_func/ta_LN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_LN.o ../../../../../src/ta_func/ta_LN.c + +../../../../../temp/cmp/ta_LOG10.o: ../../../../../src/ta_func/ta_LOG10.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_LOG10.o ../../../../../src/ta_func/ta_LOG10.c + +../../../../../temp/cmp/ta_MA.o: ../../../../../src/ta_func/ta_MA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_MA.o ../../../../../src/ta_func/ta_MA.c + +../../../../../temp/cmp/ta_MACD.o: ../../../../../src/ta_func/ta_MACD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_MACD.o ../../../../../src/ta_func/ta_MACD.c + +../../../../../temp/cmp/ta_MACDEXT.o: ../../../../../src/ta_func/ta_MACDEXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_MACDEXT.o ../../../../../src/ta_func/ta_MACDEXT.c + +../../../../../temp/cmp/ta_MACDFIX.o: ../../../../../src/ta_func/ta_MACDFIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_MACDFIX.o ../../../../../src/ta_func/ta_MACDFIX.c + +../../../../../temp/cmp/ta_MAMA.o: ../../../../../src/ta_func/ta_MAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_MAMA.o ../../../../../src/ta_func/ta_MAMA.c + +../../../../../temp/cmp/ta_MAVP.o: ../../../../../src/ta_func/ta_MAVP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_MAVP.o ../../../../../src/ta_func/ta_MAVP.c + +../../../../../temp/cmp/ta_MAX.o: ../../../../../src/ta_func/ta_MAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_MAX.o ../../../../../src/ta_func/ta_MAX.c + +../../../../../temp/cmp/ta_MAXINDEX.o: ../../../../../src/ta_func/ta_MAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_MAXINDEX.o ../../../../../src/ta_func/ta_MAXINDEX.c + +../../../../../temp/cmp/ta_MEDPRICE.o: ../../../../../src/ta_func/ta_MEDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_MEDPRICE.o ../../../../../src/ta_func/ta_MEDPRICE.c + +../../../../../temp/cmp/ta_MFI.o: ../../../../../src/ta_func/ta_MFI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_MFI.o ../../../../../src/ta_func/ta_MFI.c + +../../../../../temp/cmp/ta_MIDPOINT.o: ../../../../../src/ta_func/ta_MIDPOINT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_MIDPOINT.o ../../../../../src/ta_func/ta_MIDPOINT.c + +../../../../../temp/cmp/ta_MIDPRICE.o: ../../../../../src/ta_func/ta_MIDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_MIDPRICE.o ../../../../../src/ta_func/ta_MIDPRICE.c + +../../../../../temp/cmp/ta_MIN.o: ../../../../../src/ta_func/ta_MIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_MIN.o ../../../../../src/ta_func/ta_MIN.c + +../../../../../temp/cmp/ta_MININDEX.o: ../../../../../src/ta_func/ta_MININDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_MININDEX.o ../../../../../src/ta_func/ta_MININDEX.c + +../../../../../temp/cmp/ta_MINMAX.o: ../../../../../src/ta_func/ta_MINMAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_MINMAX.o ../../../../../src/ta_func/ta_MINMAX.c + +../../../../../temp/cmp/ta_MINMAXINDEX.o: ../../../../../src/ta_func/ta_MINMAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_MINMAXINDEX.o ../../../../../src/ta_func/ta_MINMAXINDEX.c + +../../../../../temp/cmp/ta_MINUS_DI.o: ../../../../../src/ta_func/ta_MINUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_MINUS_DI.o ../../../../../src/ta_func/ta_MINUS_DI.c + +../../../../../temp/cmp/ta_MINUS_DM.o: ../../../../../src/ta_func/ta_MINUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_MINUS_DM.o ../../../../../src/ta_func/ta_MINUS_DM.c + +../../../../../temp/cmp/ta_MOM.o: ../../../../../src/ta_func/ta_MOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_MOM.o ../../../../../src/ta_func/ta_MOM.c + +../../../../../temp/cmp/ta_MULT.o: ../../../../../src/ta_func/ta_MULT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_MULT.o ../../../../../src/ta_func/ta_MULT.c + +../../../../../temp/cmp/ta_NATR.o: ../../../../../src/ta_func/ta_NATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_NATR.o ../../../../../src/ta_func/ta_NATR.c + +../../../../../temp/cmp/ta_OBV.o: ../../../../../src/ta_func/ta_OBV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_OBV.o ../../../../../src/ta_func/ta_OBV.c + +../../../../../temp/cmp/ta_PLUS_DI.o: ../../../../../src/ta_func/ta_PLUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_PLUS_DI.o ../../../../../src/ta_func/ta_PLUS_DI.c + +../../../../../temp/cmp/ta_PLUS_DM.o: ../../../../../src/ta_func/ta_PLUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_PLUS_DM.o ../../../../../src/ta_func/ta_PLUS_DM.c + +../../../../../temp/cmp/ta_PPO.o: ../../../../../src/ta_func/ta_PPO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_PPO.o ../../../../../src/ta_func/ta_PPO.c + +../../../../../temp/cmp/ta_ROC.o: ../../../../../src/ta_func/ta_ROC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_ROC.o ../../../../../src/ta_func/ta_ROC.c + +../../../../../temp/cmp/ta_ROCP.o: ../../../../../src/ta_func/ta_ROCP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_ROCP.o ../../../../../src/ta_func/ta_ROCP.c + +../../../../../temp/cmp/ta_ROCR.o: ../../../../../src/ta_func/ta_ROCR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_ROCR.o ../../../../../src/ta_func/ta_ROCR.c + +../../../../../temp/cmp/ta_ROCR100.o: ../../../../../src/ta_func/ta_ROCR100.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_ROCR100.o ../../../../../src/ta_func/ta_ROCR100.c + +../../../../../temp/cmp/ta_RSI.o: ../../../../../src/ta_func/ta_RSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_RSI.o ../../../../../src/ta_func/ta_RSI.c + +../../../../../temp/cmp/ta_SAR.o: ../../../../../src/ta_func/ta_SAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_SAR.o ../../../../../src/ta_func/ta_SAR.c + +../../../../../temp/cmp/ta_SAREXT.o: ../../../../../src/ta_func/ta_SAREXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_SAREXT.o ../../../../../src/ta_func/ta_SAREXT.c + +../../../../../temp/cmp/ta_SIN.o: ../../../../../src/ta_func/ta_SIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_SIN.o ../../../../../src/ta_func/ta_SIN.c + +../../../../../temp/cmp/ta_SINH.o: ../../../../../src/ta_func/ta_SINH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_SINH.o ../../../../../src/ta_func/ta_SINH.c + +../../../../../temp/cmp/ta_SMA.o: ../../../../../src/ta_func/ta_SMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_SMA.o ../../../../../src/ta_func/ta_SMA.c + +../../../../../temp/cmp/ta_SQRT.o: ../../../../../src/ta_func/ta_SQRT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_SQRT.o ../../../../../src/ta_func/ta_SQRT.c + +../../../../../temp/cmp/ta_STDDEV.o: ../../../../../src/ta_func/ta_STDDEV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_STDDEV.o ../../../../../src/ta_func/ta_STDDEV.c + +../../../../../temp/cmp/ta_STOCH.o: ../../../../../src/ta_func/ta_STOCH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_STOCH.o ../../../../../src/ta_func/ta_STOCH.c + +../../../../../temp/cmp/ta_STOCHF.o: ../../../../../src/ta_func/ta_STOCHF.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_STOCHF.o ../../../../../src/ta_func/ta_STOCHF.c + +../../../../../temp/cmp/ta_STOCHRSI.o: ../../../../../src/ta_func/ta_STOCHRSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_STOCHRSI.o ../../../../../src/ta_func/ta_STOCHRSI.c + +../../../../../temp/cmp/ta_SUB.o: ../../../../../src/ta_func/ta_SUB.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_SUB.o ../../../../../src/ta_func/ta_SUB.c + +../../../../../temp/cmp/ta_SUM.o: ../../../../../src/ta_func/ta_SUM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_SUM.o ../../../../../src/ta_func/ta_SUM.c + +../../../../../temp/cmp/ta_T3.o: ../../../../../src/ta_func/ta_T3.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_T3.o ../../../../../src/ta_func/ta_T3.c + +../../../../../temp/cmp/ta_TAN.o: ../../../../../src/ta_func/ta_TAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_TAN.o ../../../../../src/ta_func/ta_TAN.c + +../../../../../temp/cmp/ta_TANH.o: ../../../../../src/ta_func/ta_TANH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_TANH.o ../../../../../src/ta_func/ta_TANH.c + +../../../../../temp/cmp/ta_TEMA.o: ../../../../../src/ta_func/ta_TEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_TEMA.o ../../../../../src/ta_func/ta_TEMA.c + +../../../../../temp/cmp/ta_TRANGE.o: ../../../../../src/ta_func/ta_TRANGE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_TRANGE.o ../../../../../src/ta_func/ta_TRANGE.c + +../../../../../temp/cmp/ta_TRIMA.o: ../../../../../src/ta_func/ta_TRIMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_TRIMA.o ../../../../../src/ta_func/ta_TRIMA.c + +../../../../../temp/cmp/ta_TRIX.o: ../../../../../src/ta_func/ta_TRIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_TRIX.o ../../../../../src/ta_func/ta_TRIX.c + +../../../../../temp/cmp/ta_TSF.o: ../../../../../src/ta_func/ta_TSF.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_TSF.o ../../../../../src/ta_func/ta_TSF.c + +../../../../../temp/cmp/ta_TYPPRICE.o: ../../../../../src/ta_func/ta_TYPPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_TYPPRICE.o ../../../../../src/ta_func/ta_TYPPRICE.c + +../../../../../temp/cmp/ta_ULTOSC.o: ../../../../../src/ta_func/ta_ULTOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_ULTOSC.o ../../../../../src/ta_func/ta_ULTOSC.c + +../../../../../temp/cmp/ta_VAR.o: ../../../../../src/ta_func/ta_VAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_VAR.o ../../../../../src/ta_func/ta_VAR.c + +../../../../../temp/cmp/ta_WCLPRICE.o: ../../../../../src/ta_func/ta_WCLPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_WCLPRICE.o ../../../../../src/ta_func/ta_WCLPRICE.c + +../../../../../temp/cmp/ta_WILLR.o: ../../../../../src/ta_func/ta_WILLR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_WILLR.o ../../../../../src/ta_func/ta_WILLR.c + +../../../../../temp/cmp/ta_WMA.o: ../../../../../src/ta_func/ta_WMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_WMA.o ../../../../../src/ta_func/ta_WMA.c + diff --git a/make/cmp/freebsd/g++/ta_regtest/Makefile b/make/cmp/freebsd/g++/ta_regtest/Makefile new file mode 100644 index 000000000..48987d0bd --- /dev/null +++ b/make/cmp/freebsd/g++/ta_regtest/Makefile @@ -0,0 +1,205 @@ +############################################################################# +# Makefile for building ../../../../../bin/ta_regtest +# Generated by tmake; +# Project: ta_regtest/ta_regtest +# Template: app +############################################################################# + +####### Compiler, tools and options + +CC = gcc +CXX = g++ +CFLAGS = -pipe -Wall -W -g -O -pg -D_REENTRANT -DTA_DEBUG -D_DEBUG -DQT_THREAD_SUPPORT +CXXFLAGS= -pipe -Wall -W -g -D_REENTRANT -DTA_DEBUG -D_DEBUG -DQT_THREAD_SUPPORT +INCPATH = -I../../../../../src/ta_common -I../../../../../src/tools/ta_regtest -I../../../../../src/ta_func -I../../../../../include -I/usr/local/include +LINK = g++ +LFLAGS = -L/usr/local/lib -pg +LIBS = $(SUBLIBS) ../../../../../lib/libta_libc_cmp.a -pthread +MOC = $(QTDIR)/bin/moc +UIC = $(QTDIR)/bin/uic + +TAR = tar -cf +GZIP = gzip -9f + +####### Apply additional overruling user flags, if any +CFLAGS += $(CUSERFLAGS) +CXXFLAGS += $(CUSERFLAGS) + +####### Files + +HEADERS = +SOURCES = ../../../../../src/tools/ta_regtest/ta_regtest.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_candlestick.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_1in_1out.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_1in_2out.c \ + ../../../../../src/tools/ta_regtest/test_internals.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_adx.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_bbands.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_ma.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_macd.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_minmax.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_mom.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_per_ema.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hl.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hlc.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hlcv.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_per_ohlc.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_po.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_rsi.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_sar.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_stddev.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_stoch.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_trange.c \ + ../../../../../src/tools/ta_regtest/test_util.c \ + ../../../../../src/tools/ta_regtest/test_data.c \ + ../../../../../src/tools/ta_regtest/test_abstract.c +OBJECTS = ../../../../../temp/cmp/ta_regtest.o \ + ../../../../../temp/cmp/test_candlestick.o \ + ../../../../../temp/cmp/test_1in_1out.o \ + ../../../../../temp/cmp/test_1in_2out.o \ + ../../../../../temp/cmp/test_internals.o \ + ../../../../../temp/cmp/test_adx.o \ + ../../../../../temp/cmp/test_bbands.o \ + ../../../../../temp/cmp/test_ma.o \ + ../../../../../temp/cmp/test_macd.o \ + ../../../../../temp/cmp/test_minmax.o \ + ../../../../../temp/cmp/test_mom.o \ + ../../../../../temp/cmp/test_per_ema.o \ + ../../../../../temp/cmp/test_per_hl.o \ + ../../../../../temp/cmp/test_per_hlc.o \ + ../../../../../temp/cmp/test_per_hlcv.o \ + ../../../../../temp/cmp/test_per_ohlc.o \ + ../../../../../temp/cmp/test_po.o \ + ../../../../../temp/cmp/test_rsi.o \ + ../../../../../temp/cmp/test_sar.o \ + ../../../../../temp/cmp/test_stddev.o \ + ../../../../../temp/cmp/test_stoch.o \ + ../../../../../temp/cmp/test_trange.o \ + ../../../../../temp/cmp/test_util.o \ + ../../../../../temp/cmp/test_data.o \ + ../../../../../temp/cmp/test_abstract.o +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ../../../../../bin/ta_regtest +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .C .c + +.cpp.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cxx.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cc.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.C.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.c.o: + $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $< + +####### Build rules + + +all: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS) + +moc: $(SRCMOC) + +clean: + -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) + -rm -f *~ core + +####### Sub-libraries + + +###### Combined headers + + +####### Compile + +../../../../../temp/cmp/ta_regtest.o: ../../../../../src/tools/ta_regtest/ta_regtest.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_regtest.o ../../../../../src/tools/ta_regtest/ta_regtest.c + +../../../../../temp/cmp/test_candlestick.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_candlestick.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/test_candlestick.o ../../../../../src/tools/ta_regtest/ta_test_func/test_candlestick.c + +../../../../../temp/cmp/test_1in_1out.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_1in_1out.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/test_1in_1out.o ../../../../../src/tools/ta_regtest/ta_test_func/test_1in_1out.c + +../../../../../temp/cmp/test_1in_2out.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_1in_2out.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/test_1in_2out.o ../../../../../src/tools/ta_regtest/ta_test_func/test_1in_2out.c + +../../../../../temp/cmp/test_internals.o: ../../../../../src/tools/ta_regtest/test_internals.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/test_internals.o ../../../../../src/tools/ta_regtest/test_internals.c + +../../../../../temp/cmp/test_adx.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_adx.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/test_adx.o ../../../../../src/tools/ta_regtest/ta_test_func/test_adx.c + +../../../../../temp/cmp/test_bbands.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_bbands.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/test_bbands.o ../../../../../src/tools/ta_regtest/ta_test_func/test_bbands.c + +../../../../../temp/cmp/test_ma.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_ma.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/test_ma.o ../../../../../src/tools/ta_regtest/ta_test_func/test_ma.c + +../../../../../temp/cmp/test_macd.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_macd.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/test_macd.o ../../../../../src/tools/ta_regtest/ta_test_func/test_macd.c + +../../../../../temp/cmp/test_minmax.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_minmax.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/test_minmax.o ../../../../../src/tools/ta_regtest/ta_test_func/test_minmax.c + +../../../../../temp/cmp/test_mom.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_mom.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/test_mom.o ../../../../../src/tools/ta_regtest/ta_test_func/test_mom.c + +../../../../../temp/cmp/test_per_ema.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_per_ema.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/test_per_ema.o ../../../../../src/tools/ta_regtest/ta_test_func/test_per_ema.c + +../../../../../temp/cmp/test_per_hl.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hl.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/test_per_hl.o ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hl.c + +../../../../../temp/cmp/test_per_hlc.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hlc.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/test_per_hlc.o ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hlc.c + +../../../../../temp/cmp/test_per_hlcv.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hlcv.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/test_per_hlcv.o ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hlcv.c + +../../../../../temp/cmp/test_per_ohlc.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_per_ohlc.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/test_per_ohlc.o ../../../../../src/tools/ta_regtest/ta_test_func/test_per_ohlc.c + +../../../../../temp/cmp/test_po.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_po.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/test_po.o ../../../../../src/tools/ta_regtest/ta_test_func/test_po.c + +../../../../../temp/cmp/test_rsi.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_rsi.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/test_rsi.o ../../../../../src/tools/ta_regtest/ta_test_func/test_rsi.c + +../../../../../temp/cmp/test_sar.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_sar.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/test_sar.o ../../../../../src/tools/ta_regtest/ta_test_func/test_sar.c + +../../../../../temp/cmp/test_stddev.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_stddev.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/test_stddev.o ../../../../../src/tools/ta_regtest/ta_test_func/test_stddev.c + +../../../../../temp/cmp/test_stoch.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_stoch.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/test_stoch.o ../../../../../src/tools/ta_regtest/ta_test_func/test_stoch.c + +../../../../../temp/cmp/test_trange.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_trange.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/test_trange.o ../../../../../src/tools/ta_regtest/ta_test_func/test_trange.c + +../../../../../temp/cmp/test_util.o: ../../../../../src/tools/ta_regtest/test_util.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/test_util.o ../../../../../src/tools/ta_regtest/test_util.c + +../../../../../temp/cmp/test_data.o: ../../../../../src/tools/ta_regtest/test_data.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/test_data.o ../../../../../src/tools/ta_regtest/test_data.c + +../../../../../temp/cmp/test_abstract.o: ../../../../../src/tools/ta_regtest/test_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/test_abstract.o ../../../../../src/tools/ta_regtest/test_abstract.c + diff --git a/make/cmp/linux/g++/Makefile b/make/cmp/linux/g++/Makefile new file mode 100644 index 000000000..ca83b3eaa --- /dev/null +++ b/make/cmp/linux/g++/Makefile @@ -0,0 +1,36 @@ +############################################################################# +# Makefile for building targets in sub directories. +# Generated by tmake; +# Project: rootmake +# Template: subdirs +############################################################################# + +MAKEFILE= Makefile +TMAKE = tmake + +SUBDIRS = ta_common \ + ta_func \ + ta_abstract \ + ta_libc \ + gen_code \ + ta_regtest + +all: $(SUBDIRS) + +$(SUBDIRS): FORCE + cd $@; $(MAKE) + +tmake: ../cmp/linux/g++/Makefile + +../cmp/linux/g++/Makefile: rootmake.pro + tmake rootmake.pro -o ../cmp/linux/g++/Makefile + +tmake_all: + for i in $(SUBDIRS); do ( if [ -d $$i ]; then cd $$i ; $(MAKE) -f $(MAKEFILE) tmake_all || true; fi; ) ; done + +#### $text = "\t" . 'for i in $(SUBDIRS); do ( if [ -d $$i ]; then cd $$i ; pro=`basename $$i`.pro ; $(TMAKE) $$pro -o $(MAKEFILE); grep "TEMPLATE.*subdirs" $$pro 2>/dev/null >/dev/null && $(MAKE) -f $(MAKEFILE) tmake_all || true; fi; ) ; done'; + +clean release debug: + for i in $(SUBDIRS); do ( if [ -d $$i ]; then cd $$i ; $(MAKE) $@; fi; ) ; done + +FORCE: diff --git a/make/cmp/linux/g++/gen_code/Makefile b/make/cmp/linux/g++/gen_code/Makefile new file mode 100644 index 000000000..07e1920f1 --- /dev/null +++ b/make/cmp/linux/g++/gen_code/Makefile @@ -0,0 +1,231 @@ +############################################################################# +# Makefile for building ../../../../../bin/gen_code +# Generated by tmake; +# Project: gen_code/gen_code +# Template: app +############################################################################# + +####### Compiler, tools and options + +CC = gcc +CXX = g++ +CFLAGS = -pipe -fPIC -Wall -W -g -O -pg -D_REENTRANT -DTA_GEN_CODE -DTA_DEBUG -D_DEBUG -DQT_THREAD_SUPPORT +CXXFLAGS= -pipe -fPIC -Wall -W -g -D_REENTRANT -DTA_GEN_CODE -DTA_DEBUG -D_DEBUG -DQT_THREAD_SUPPORT +INCPATH = -I../../../../../include -I../../../../../src/ta_common -I../../../../../src/ta_abstract -I../../../../../src/ta_abstract/tables -I../../../../../src/ta_abstract/frames +LINK = g++ +LFLAGS = -pg +LIBS = $(SUBLIBS) ../../../../../lib/libta_common_cmp.a -ldl -lpthread +MOC = $(QTDIR)/bin/moc +UIC = $(QTDIR)/bin/uic + +TAR = tar -cf +GZIP = gzip -9f + +####### Support for 64-bit systems +ifeq ($(shell uname -m), x86_64) + CFLAGS += -march=x86-64 -m64 -D__64BIT__ + CXXFLAGS += -march=x86-64 -m64 -D__64BIT__ +endif + +####### Apply additional overruling user flags, if any +CFLAGS += $(CUSERFLAGS) +CXXFLAGS += $(CUSERFLAGS) + +####### Files + +HEADERS = +SOURCES = ../../../../../src/tools/gen_code/gen_code.c \ + ../../../../../src/ta_abstract/ta_abstract.c \ + ../../../../../src/ta_abstract/ta_def_ui.c \ + ../../../../../src/ta_abstract/tables/table_a.c \ + ../../../../../src/ta_abstract/tables/table_b.c \ + ../../../../../src/ta_abstract/tables/table_c.c \ + ../../../../../src/ta_abstract/tables/table_d.c \ + ../../../../../src/ta_abstract/tables/table_e.c \ + ../../../../../src/ta_abstract/tables/table_f.c \ + ../../../../../src/ta_abstract/tables/table_g.c \ + ../../../../../src/ta_abstract/tables/table_h.c \ + ../../../../../src/ta_abstract/tables/table_i.c \ + ../../../../../src/ta_abstract/tables/table_j.c \ + ../../../../../src/ta_abstract/tables/table_k.c \ + ../../../../../src/ta_abstract/tables/table_l.c \ + ../../../../../src/ta_abstract/tables/table_m.c \ + ../../../../../src/ta_abstract/tables/table_n.c \ + ../../../../../src/ta_abstract/tables/table_o.c \ + ../../../../../src/ta_abstract/tables/table_p.c \ + ../../../../../src/ta_abstract/tables/table_q.c \ + ../../../../../src/ta_abstract/tables/table_r.c \ + ../../../../../src/ta_abstract/tables/table_s.c \ + ../../../../../src/ta_abstract/tables/table_t.c \ + ../../../../../src/ta_abstract/tables/table_u.c \ + ../../../../../src/ta_abstract/tables/table_v.c \ + ../../../../../src/ta_abstract/tables/table_w.c \ + ../../../../../src/ta_abstract/tables/table_x.c \ + ../../../../../src/ta_abstract/tables/table_y.c \ + ../../../../../src/ta_abstract/tables/table_z.c +OBJECTS = ../../../../../temp/cmp/gen_code/gen_code.o \ + ../../../../../temp/cmp/gen_code/ta_abstract.o \ + ../../../../../temp/cmp/gen_code/ta_def_ui.o \ + ../../../../../temp/cmp/gen_code/table_a.o \ + ../../../../../temp/cmp/gen_code/table_b.o \ + ../../../../../temp/cmp/gen_code/table_c.o \ + ../../../../../temp/cmp/gen_code/table_d.o \ + ../../../../../temp/cmp/gen_code/table_e.o \ + ../../../../../temp/cmp/gen_code/table_f.o \ + ../../../../../temp/cmp/gen_code/table_g.o \ + ../../../../../temp/cmp/gen_code/table_h.o \ + ../../../../../temp/cmp/gen_code/table_i.o \ + ../../../../../temp/cmp/gen_code/table_j.o \ + ../../../../../temp/cmp/gen_code/table_k.o \ + ../../../../../temp/cmp/gen_code/table_l.o \ + ../../../../../temp/cmp/gen_code/table_m.o \ + ../../../../../temp/cmp/gen_code/table_n.o \ + ../../../../../temp/cmp/gen_code/table_o.o \ + ../../../../../temp/cmp/gen_code/table_p.o \ + ../../../../../temp/cmp/gen_code/table_q.o \ + ../../../../../temp/cmp/gen_code/table_r.o \ + ../../../../../temp/cmp/gen_code/table_s.o \ + ../../../../../temp/cmp/gen_code/table_t.o \ + ../../../../../temp/cmp/gen_code/table_u.o \ + ../../../../../temp/cmp/gen_code/table_v.o \ + ../../../../../temp/cmp/gen_code/table_w.o \ + ../../../../../temp/cmp/gen_code/table_x.o \ + ../../../../../temp/cmp/gen_code/table_y.o \ + ../../../../../temp/cmp/gen_code/table_z.o +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ../../../../../bin/gen_code +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .C .c + +.cpp.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cxx.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cc.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.C.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.c.o: + $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $< + +####### Build rules + + +all: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS) + +moc: $(SRCMOC) + +clean: + -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) + -rm -f *~ core + +####### Sub-libraries + + +###### Combined headers + + +####### Compile + +../../../../../temp/cmp/gen_code/gen_code.o: ../../../../../src/tools/gen_code/gen_code.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/gen_code/gen_code.o ../../../../../src/tools/gen_code/gen_code.c + +../../../../../temp/cmp/gen_code/ta_abstract.o: ../../../../../src/ta_abstract/ta_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/gen_code/ta_abstract.o ../../../../../src/ta_abstract/ta_abstract.c + +../../../../../temp/cmp/gen_code/ta_def_ui.o: ../../../../../src/ta_abstract/ta_def_ui.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/gen_code/ta_def_ui.o ../../../../../src/ta_abstract/ta_def_ui.c + +../../../../../temp/cmp/gen_code/table_a.o: ../../../../../src/ta_abstract/tables/table_a.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/gen_code/table_a.o ../../../../../src/ta_abstract/tables/table_a.c + +../../../../../temp/cmp/gen_code/table_b.o: ../../../../../src/ta_abstract/tables/table_b.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/gen_code/table_b.o ../../../../../src/ta_abstract/tables/table_b.c + +../../../../../temp/cmp/gen_code/table_c.o: ../../../../../src/ta_abstract/tables/table_c.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/gen_code/table_c.o ../../../../../src/ta_abstract/tables/table_c.c + +../../../../../temp/cmp/gen_code/table_d.o: ../../../../../src/ta_abstract/tables/table_d.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/gen_code/table_d.o ../../../../../src/ta_abstract/tables/table_d.c + +../../../../../temp/cmp/gen_code/table_e.o: ../../../../../src/ta_abstract/tables/table_e.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/gen_code/table_e.o ../../../../../src/ta_abstract/tables/table_e.c + +../../../../../temp/cmp/gen_code/table_f.o: ../../../../../src/ta_abstract/tables/table_f.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/gen_code/table_f.o ../../../../../src/ta_abstract/tables/table_f.c + +../../../../../temp/cmp/gen_code/table_g.o: ../../../../../src/ta_abstract/tables/table_g.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/gen_code/table_g.o ../../../../../src/ta_abstract/tables/table_g.c + +../../../../../temp/cmp/gen_code/table_h.o: ../../../../../src/ta_abstract/tables/table_h.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/gen_code/table_h.o ../../../../../src/ta_abstract/tables/table_h.c + +../../../../../temp/cmp/gen_code/table_i.o: ../../../../../src/ta_abstract/tables/table_i.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/gen_code/table_i.o ../../../../../src/ta_abstract/tables/table_i.c + +../../../../../temp/cmp/gen_code/table_j.o: ../../../../../src/ta_abstract/tables/table_j.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/gen_code/table_j.o ../../../../../src/ta_abstract/tables/table_j.c + +../../../../../temp/cmp/gen_code/table_k.o: ../../../../../src/ta_abstract/tables/table_k.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/gen_code/table_k.o ../../../../../src/ta_abstract/tables/table_k.c + +../../../../../temp/cmp/gen_code/table_l.o: ../../../../../src/ta_abstract/tables/table_l.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/gen_code/table_l.o ../../../../../src/ta_abstract/tables/table_l.c + +../../../../../temp/cmp/gen_code/table_m.o: ../../../../../src/ta_abstract/tables/table_m.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/gen_code/table_m.o ../../../../../src/ta_abstract/tables/table_m.c + +../../../../../temp/cmp/gen_code/table_n.o: ../../../../../src/ta_abstract/tables/table_n.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/gen_code/table_n.o ../../../../../src/ta_abstract/tables/table_n.c + +../../../../../temp/cmp/gen_code/table_o.o: ../../../../../src/ta_abstract/tables/table_o.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/gen_code/table_o.o ../../../../../src/ta_abstract/tables/table_o.c + +../../../../../temp/cmp/gen_code/table_p.o: ../../../../../src/ta_abstract/tables/table_p.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/gen_code/table_p.o ../../../../../src/ta_abstract/tables/table_p.c + +../../../../../temp/cmp/gen_code/table_q.o: ../../../../../src/ta_abstract/tables/table_q.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/gen_code/table_q.o ../../../../../src/ta_abstract/tables/table_q.c + +../../../../../temp/cmp/gen_code/table_r.o: ../../../../../src/ta_abstract/tables/table_r.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/gen_code/table_r.o ../../../../../src/ta_abstract/tables/table_r.c + +../../../../../temp/cmp/gen_code/table_s.o: ../../../../../src/ta_abstract/tables/table_s.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/gen_code/table_s.o ../../../../../src/ta_abstract/tables/table_s.c + +../../../../../temp/cmp/gen_code/table_t.o: ../../../../../src/ta_abstract/tables/table_t.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/gen_code/table_t.o ../../../../../src/ta_abstract/tables/table_t.c + +../../../../../temp/cmp/gen_code/table_u.o: ../../../../../src/ta_abstract/tables/table_u.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/gen_code/table_u.o ../../../../../src/ta_abstract/tables/table_u.c + +../../../../../temp/cmp/gen_code/table_v.o: ../../../../../src/ta_abstract/tables/table_v.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/gen_code/table_v.o ../../../../../src/ta_abstract/tables/table_v.c + +../../../../../temp/cmp/gen_code/table_w.o: ../../../../../src/ta_abstract/tables/table_w.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/gen_code/table_w.o ../../../../../src/ta_abstract/tables/table_w.c + +../../../../../temp/cmp/gen_code/table_x.o: ../../../../../src/ta_abstract/tables/table_x.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/gen_code/table_x.o ../../../../../src/ta_abstract/tables/table_x.c + +../../../../../temp/cmp/gen_code/table_y.o: ../../../../../src/ta_abstract/tables/table_y.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/gen_code/table_y.o ../../../../../src/ta_abstract/tables/table_y.c + +../../../../../temp/cmp/gen_code/table_z.o: ../../../../../src/ta_abstract/tables/table_z.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/gen_code/table_z.o ../../../../../src/ta_abstract/tables/table_z.c + diff --git a/make/cmp/linux/g++/ta_abstract/Makefile b/make/cmp/linux/g++/ta_abstract/Makefile new file mode 100644 index 000000000..3d7e6e070 --- /dev/null +++ b/make/cmp/linux/g++/ta_abstract/Makefile @@ -0,0 +1,243 @@ +############################################################################# +# Makefile for building ../../../../../lib/libta_abstract_cmp.a +# Generated by tmake; +# Project: ta_abstract/ta_abstract +# Template: lib +############################################################################# + +####### Compiler, tools and options + +CC = gcc +CXX = g++ +CFLAGS = -pipe -fPIC -Wall -W -g -O -pg -D_REENTRANT -DTA_DEBUG -D_DEBUG -DQT_THREAD_SUPPORT +CXXFLAGS= -pipe -fPIC -Wall -W -g -D_REENTRANT -DTA_DEBUG -D_DEBUG -DQT_THREAD_SUPPORT +INCPATH = -I../../../../../src/ta_common -I../../../../../src/ta_abstract -I../../../../../src/ta_abstract/tables -I../../../../../src/ta_abstract/frames -I../../../../../include +AR = ar cqs +RANLIB = +MOC = $(QTDIR)/bin/moc +UIC = $(QTDIR)/bin/uic + +TAR = tar -cf +GZIP = gzip -9f + +####### Support for 64-bit systems +ifeq ($(shell uname -m), x86_64) + CFLAGS += -march=x86-64 -m64 -D__64BIT__ + CXXFLAGS += -march=x86-64 -m64 -D__64BIT__ +endif + +####### Apply additional overruling user flags, if any +CFLAGS += $(CUSERFLAGS) +CXXFLAGS += $(CUSERFLAGS) + +####### Files + +HEADERS = +SOURCES = ../../../../../src/ta_abstract/ta_abstract.c \ + ../../../../../src/ta_abstract/ta_def_ui.c \ + ../../../../../src/ta_abstract/ta_func_api.c \ + ../../../../../src/ta_abstract/ta_group_idx.c \ + ../../../../../src/ta_abstract/frames/ta_frame.c \ + ../../../../../src/ta_abstract/tables/table_a.c \ + ../../../../../src/ta_abstract/tables/table_b.c \ + ../../../../../src/ta_abstract/tables/table_c.c \ + ../../../../../src/ta_abstract/tables/table_d.c \ + ../../../../../src/ta_abstract/tables/table_e.c \ + ../../../../../src/ta_abstract/tables/table_f.c \ + ../../../../../src/ta_abstract/tables/table_g.c \ + ../../../../../src/ta_abstract/tables/table_h.c \ + ../../../../../src/ta_abstract/tables/table_i.c \ + ../../../../../src/ta_abstract/tables/table_j.c \ + ../../../../../src/ta_abstract/tables/table_k.c \ + ../../../../../src/ta_abstract/tables/table_l.c \ + ../../../../../src/ta_abstract/tables/table_m.c \ + ../../../../../src/ta_abstract/tables/table_n.c \ + ../../../../../src/ta_abstract/tables/table_o.c \ + ../../../../../src/ta_abstract/tables/table_p.c \ + ../../../../../src/ta_abstract/tables/table_q.c \ + ../../../../../src/ta_abstract/tables/table_r.c \ + ../../../../../src/ta_abstract/tables/table_s.c \ + ../../../../../src/ta_abstract/tables/table_t.c \ + ../../../../../src/ta_abstract/tables/table_u.c \ + ../../../../../src/ta_abstract/tables/table_v.c \ + ../../../../../src/ta_abstract/tables/table_w.c \ + ../../../../../src/ta_abstract/tables/table_x.c \ + ../../../../../src/ta_abstract/tables/table_y.c \ + ../../../../../src/ta_abstract/tables/table_z.c +OBJECTS = ../../../../../temp/cmp/ta_abstract.o \ + ../../../../../temp/cmp/ta_def_ui.o \ + ../../../../../temp/cmp/ta_func_api.o \ + ../../../../../temp/cmp/ta_group_idx.o \ + ../../../../../temp/cmp/ta_frame.o \ + ../../../../../temp/cmp/table_a.o \ + ../../../../../temp/cmp/table_b.o \ + ../../../../../temp/cmp/table_c.o \ + ../../../../../temp/cmp/table_d.o \ + ../../../../../temp/cmp/table_e.o \ + ../../../../../temp/cmp/table_f.o \ + ../../../../../temp/cmp/table_g.o \ + ../../../../../temp/cmp/table_h.o \ + ../../../../../temp/cmp/table_i.o \ + ../../../../../temp/cmp/table_j.o \ + ../../../../../temp/cmp/table_k.o \ + ../../../../../temp/cmp/table_l.o \ + ../../../../../temp/cmp/table_m.o \ + ../../../../../temp/cmp/table_n.o \ + ../../../../../temp/cmp/table_o.o \ + ../../../../../temp/cmp/table_p.o \ + ../../../../../temp/cmp/table_q.o \ + ../../../../../temp/cmp/table_r.o \ + ../../../../../temp/cmp/table_s.o \ + ../../../../../temp/cmp/table_t.o \ + ../../../../../temp/cmp/table_u.o \ + ../../../../../temp/cmp/table_v.o \ + ../../../../../temp/cmp/table_w.o \ + ../../../../../temp/cmp/table_x.o \ + ../../../../../temp/cmp/table_y.o \ + ../../../../../temp/cmp/table_z.o +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ../../../../../lib/libta_abstract_cmp.a +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .C .c + +.cpp.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cxx.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cc.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.C.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.c.o: + $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $< + +####### Build rules + + +all: $(TARGET) + +staticlib: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + -rm -f $(TARGET) + $(AR) $(TARGET) $(OBJECTS) $(OBJMOC) + +moc: $(SRCMOC) + +clean: + -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) + -rm -f *~ core + +####### Sub-libraries + + +###### Combined headers + + +####### Compile + +../../../../../temp/cmp/ta_abstract.o: ../../../../../src/ta_abstract/ta_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_abstract.o ../../../../../src/ta_abstract/ta_abstract.c + +../../../../../temp/cmp/ta_def_ui.o: ../../../../../src/ta_abstract/ta_def_ui.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_def_ui.o ../../../../../src/ta_abstract/ta_def_ui.c + +../../../../../temp/cmp/ta_func_api.o: ../../../../../src/ta_abstract/ta_func_api.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_func_api.o ../../../../../src/ta_abstract/ta_func_api.c + +../../../../../temp/cmp/ta_group_idx.o: ../../../../../src/ta_abstract/ta_group_idx.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_group_idx.o ../../../../../src/ta_abstract/ta_group_idx.c + +../../../../../temp/cmp/ta_frame.o: ../../../../../src/ta_abstract/frames/ta_frame.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_frame.o ../../../../../src/ta_abstract/frames/ta_frame.c + +../../../../../temp/cmp/table_a.o: ../../../../../src/ta_abstract/tables/table_a.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_a.o ../../../../../src/ta_abstract/tables/table_a.c + +../../../../../temp/cmp/table_b.o: ../../../../../src/ta_abstract/tables/table_b.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_b.o ../../../../../src/ta_abstract/tables/table_b.c + +../../../../../temp/cmp/table_c.o: ../../../../../src/ta_abstract/tables/table_c.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_c.o ../../../../../src/ta_abstract/tables/table_c.c + +../../../../../temp/cmp/table_d.o: ../../../../../src/ta_abstract/tables/table_d.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_d.o ../../../../../src/ta_abstract/tables/table_d.c + +../../../../../temp/cmp/table_e.o: ../../../../../src/ta_abstract/tables/table_e.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_e.o ../../../../../src/ta_abstract/tables/table_e.c + +../../../../../temp/cmp/table_f.o: ../../../../../src/ta_abstract/tables/table_f.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_f.o ../../../../../src/ta_abstract/tables/table_f.c + +../../../../../temp/cmp/table_g.o: ../../../../../src/ta_abstract/tables/table_g.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_g.o ../../../../../src/ta_abstract/tables/table_g.c + +../../../../../temp/cmp/table_h.o: ../../../../../src/ta_abstract/tables/table_h.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_h.o ../../../../../src/ta_abstract/tables/table_h.c + +../../../../../temp/cmp/table_i.o: ../../../../../src/ta_abstract/tables/table_i.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_i.o ../../../../../src/ta_abstract/tables/table_i.c + +../../../../../temp/cmp/table_j.o: ../../../../../src/ta_abstract/tables/table_j.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_j.o ../../../../../src/ta_abstract/tables/table_j.c + +../../../../../temp/cmp/table_k.o: ../../../../../src/ta_abstract/tables/table_k.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_k.o ../../../../../src/ta_abstract/tables/table_k.c + +../../../../../temp/cmp/table_l.o: ../../../../../src/ta_abstract/tables/table_l.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_l.o ../../../../../src/ta_abstract/tables/table_l.c + +../../../../../temp/cmp/table_m.o: ../../../../../src/ta_abstract/tables/table_m.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_m.o ../../../../../src/ta_abstract/tables/table_m.c + +../../../../../temp/cmp/table_n.o: ../../../../../src/ta_abstract/tables/table_n.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_n.o ../../../../../src/ta_abstract/tables/table_n.c + +../../../../../temp/cmp/table_o.o: ../../../../../src/ta_abstract/tables/table_o.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_o.o ../../../../../src/ta_abstract/tables/table_o.c + +../../../../../temp/cmp/table_p.o: ../../../../../src/ta_abstract/tables/table_p.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_p.o ../../../../../src/ta_abstract/tables/table_p.c + +../../../../../temp/cmp/table_q.o: ../../../../../src/ta_abstract/tables/table_q.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_q.o ../../../../../src/ta_abstract/tables/table_q.c + +../../../../../temp/cmp/table_r.o: ../../../../../src/ta_abstract/tables/table_r.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_r.o ../../../../../src/ta_abstract/tables/table_r.c + +../../../../../temp/cmp/table_s.o: ../../../../../src/ta_abstract/tables/table_s.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_s.o ../../../../../src/ta_abstract/tables/table_s.c + +../../../../../temp/cmp/table_t.o: ../../../../../src/ta_abstract/tables/table_t.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_t.o ../../../../../src/ta_abstract/tables/table_t.c + +../../../../../temp/cmp/table_u.o: ../../../../../src/ta_abstract/tables/table_u.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_u.o ../../../../../src/ta_abstract/tables/table_u.c + +../../../../../temp/cmp/table_v.o: ../../../../../src/ta_abstract/tables/table_v.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_v.o ../../../../../src/ta_abstract/tables/table_v.c + +../../../../../temp/cmp/table_w.o: ../../../../../src/ta_abstract/tables/table_w.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_w.o ../../../../../src/ta_abstract/tables/table_w.c + +../../../../../temp/cmp/table_x.o: ../../../../../src/ta_abstract/tables/table_x.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_x.o ../../../../../src/ta_abstract/tables/table_x.c + +../../../../../temp/cmp/table_y.o: ../../../../../src/ta_abstract/tables/table_y.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_y.o ../../../../../src/ta_abstract/tables/table_y.c + +../../../../../temp/cmp/table_z.o: ../../../../../src/ta_abstract/tables/table_z.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_z.o ../../../../../src/ta_abstract/tables/table_z.c + diff --git a/make/cmp/linux/g++/ta_common/Makefile b/make/cmp/linux/g++/ta_common/Makefile new file mode 100644 index 000000000..662f38fb8 --- /dev/null +++ b/make/cmp/linux/g++/ta_common/Makefile @@ -0,0 +1,103 @@ +############################################################################# +# Makefile for building ../../../../../lib/libta_common_cmp.a +# Generated by tmake; +# Project: ta_common/ta_common +# Template: lib +############################################################################# + +####### Compiler, tools and options + +CC = gcc +CXX = g++ +CFLAGS = -pipe -fPIC -Wall -W -g -O -pg -D_REENTRANT -DTA_DEBUG -D_DEBUG -DQT_THREAD_SUPPORT +CXXFLAGS= -pipe -fPIC -Wall -W -g -D_REENTRANT -DTA_DEBUG -D_DEBUG -DQT_THREAD_SUPPORT +INCPATH = -I../../../../../src/ta_common -I../../../../../include +AR = ar cqs +RANLIB = +MOC = $(QTDIR)/bin/moc +UIC = $(QTDIR)/bin/uic + +TAR = tar -cf +GZIP = gzip -9f + +####### Support for 64-bit systems +ifeq ($(shell uname -m), x86_64) + CFLAGS += -march=x86-64 -m64 -D__64BIT__ + CXXFLAGS += -march=x86-64 -m64 -D__64BIT__ +endif + +####### Apply additional overruling user flags, if any +CFLAGS += $(CUSERFLAGS) +CXXFLAGS += $(CUSERFLAGS) + +####### Files + +HEADERS = +SOURCES = ../../../../../src/ta_common/ta_global.c \ + ../../../../../src/ta_common/ta_retcode.c \ + ../../../../../src/ta_common/ta_version.c +OBJECTS = ../../../../../temp/cmp/ta_global.o \ + ../../../../../temp/cmp/ta_retcode.o \ + ../../../../../temp/cmp/ta_version.o +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ../../../../../lib/libta_common_cmp.a +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .C .c + +.cpp.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cxx.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cc.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.C.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.c.o: + $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $< + +####### Build rules + + +all: $(TARGET) + +staticlib: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + -rm -f $(TARGET) + $(AR) $(TARGET) $(OBJECTS) $(OBJMOC) + +moc: $(SRCMOC) + +clean: + -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) + -rm -f *~ core + +####### Sub-libraries + + +###### Combined headers + + +####### Compile + +../../../../../temp/cmp/ta_global.o: ../../../../../src/ta_common/ta_global.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_global.o ../../../../../src/ta_common/ta_global.c + +../../../../../temp/cmp/ta_retcode.o: ../../../../../src/ta_common/ta_retcode.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_retcode.o ../../../../../src/ta_common/ta_retcode.c + +../../../../../temp/cmp/ta_version.o: ../../../../../src/ta_common/ta_version.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_version.o ../../../../../src/ta_common/ta_version.c + diff --git a/make/cmp/linux/g++/ta_func/Makefile b/make/cmp/linux/g++/ta_func/Makefile new file mode 100644 index 000000000..f617553e5 --- /dev/null +++ b/make/cmp/linux/g++/ta_func/Makefile @@ -0,0 +1,883 @@ +############################################################################# +# Makefile for building ../../../../../lib/libta_func_cmp.a +# Generated by tmake; +# Project: ta_func/ta_func +# Template: lib +############################################################################# + +####### Compiler, tools and options + +CC = gcc +CXX = g++ +CFLAGS = -pipe -fPIC -Wall -W -g -O -pg -D_REENTRANT -DTA_DEBUG -D_DEBUG -DQT_THREAD_SUPPORT +CXXFLAGS= -pipe -fPIC -Wall -W -g -D_REENTRANT -DTA_DEBUG -D_DEBUG -DQT_THREAD_SUPPORT +INCPATH = -I../../../../../src/ta_common -I/n -I../../../../../include +AR = ar cqs +RANLIB = +MOC = $(QTDIR)/bin/moc +UIC = $(QTDIR)/bin/uic + +TAR = tar -cf +GZIP = gzip -9f + +####### Support for 64-bit systems +ifeq ($(shell uname -m), x86_64) + CFLAGS += -march=x86-64 -m64 -D__64BIT__ + CXXFLAGS += -march=x86-64 -m64 -D__64BIT__ +endif + +####### Apply additional overruling user flags, if any +CFLAGS += $(CUSERFLAGS) +CXXFLAGS += $(CUSERFLAGS) + +####### Files + +HEADERS = +SOURCES = ../../../../../src/ta_func/ta_utility.c \ + ../../../../../src/ta_func/ta_ACOS.c \ + ../../../../../src/ta_func/ta_AD.c \ + ../../../../../src/ta_func/ta_ADD.c \ + ../../../../../src/ta_func/ta_ADOSC.c \ + ../../../../../src/ta_func/ta_ADX.c \ + ../../../../../src/ta_func/ta_ADXR.c \ + ../../../../../src/ta_func/ta_APO.c \ + ../../../../../src/ta_func/ta_AROON.c \ + ../../../../../src/ta_func/ta_AROONOSC.c \ + ../../../../../src/ta_func/ta_ASIN.c \ + ../../../../../src/ta_func/ta_ATAN.c \ + ../../../../../src/ta_func/ta_ATR.c \ + ../../../../../src/ta_func/ta_AVGPRICE.c \ + ../../../../../src/ta_func/ta_BBANDS.c \ + ../../../../../src/ta_func/ta_BETA.c \ + ../../../../../src/ta_func/ta_BOP.c \ + ../../../../../src/ta_func/ta_CCI.c \ + ../../../../../src/ta_func/ta_CDL2CROWS.c \ + ../../../../../src/ta_func/ta_CDL3BLACKCROWS.c \ + ../../../../../src/ta_func/ta_CDL3INSIDE.c \ + ../../../../../src/ta_func/ta_CDL3LINESTRIKE.c \ + ../../../../../src/ta_func/ta_CDL3OUTSIDE.c \ + ../../../../../src/ta_func/ta_CDL3STARSINSOUTH.c \ + ../../../../../src/ta_func/ta_CDL3WHITESOLDIERS.c \ + ../../../../../src/ta_func/ta_CDLABANDONEDBABY.c \ + ../../../../../src/ta_func/ta_CDLADVANCEBLOCK.c \ + ../../../../../src/ta_func/ta_CDLBELTHOLD.c \ + ../../../../../src/ta_func/ta_CDLBREAKAWAY.c \ + ../../../../../src/ta_func/ta_CDLCLOSINGMARUBOZU.c \ + ../../../../../src/ta_func/ta_CDLCONCEALBABYSWALL.c \ + ../../../../../src/ta_func/ta_CDLCOUNTERATTACK.c \ + ../../../../../src/ta_func/ta_CDLDARKCLOUDCOVER.c \ + ../../../../../src/ta_func/ta_CDLDOJI.c \ + ../../../../../src/ta_func/ta_CDLDOJISTAR.c \ + ../../../../../src/ta_func/ta_CDLDRAGONFLYDOJI.c \ + ../../../../../src/ta_func/ta_CDLENGULFING.c \ + ../../../../../src/ta_func/ta_CDLEVENINGDOJISTAR.c \ + ../../../../../src/ta_func/ta_CDLEVENINGSTAR.c \ + ../../../../../src/ta_func/ta_CDLGAPSIDESIDEWHITE.c \ + ../../../../../src/ta_func/ta_CDLGRAVESTONEDOJI.c \ + ../../../../../src/ta_func/ta_CDLHAMMER.c \ + ../../../../../src/ta_func/ta_CDLHANGINGMAN.c \ + ../../../../../src/ta_func/ta_CDLHARAMI.c \ + ../../../../../src/ta_func/ta_CDLHARAMICROSS.c \ + ../../../../../src/ta_func/ta_CDLHIGHWAVE.c \ + ../../../../../src/ta_func/ta_CDLHIKKAKE.c \ + ../../../../../src/ta_func/ta_CDLHIKKAKEMOD.c \ + ../../../../../src/ta_func/ta_CDLHOMINGPIGEON.c \ + ../../../../../src/ta_func/ta_CDLIDENTICAL3CROWS.c \ + ../../../../../src/ta_func/ta_CDLINNECK.c \ + ../../../../../src/ta_func/ta_CDLINVERTEDHAMMER.c \ + ../../../../../src/ta_func/ta_CDLKICKING.c \ + ../../../../../src/ta_func/ta_CDLKICKINGBYLENGTH.c \ + ../../../../../src/ta_func/ta_CDLLADDERBOTTOM.c \ + ../../../../../src/ta_func/ta_CDLLONGLEGGEDDOJI.c \ + ../../../../../src/ta_func/ta_CDLLONGLINE.c \ + ../../../../../src/ta_func/ta_CDLMARUBOZU.c \ + ../../../../../src/ta_func/ta_CDLMATCHINGLOW.c \ + ../../../../../src/ta_func/ta_CDLMATHOLD.c \ + ../../../../../src/ta_func/ta_CDLMORNINGDOJISTAR.c \ + ../../../../../src/ta_func/ta_CDLMORNINGSTAR.c \ + ../../../../../src/ta_func/ta_CDLONNECK.c \ + ../../../../../src/ta_func/ta_CDLPIERCING.c \ + ../../../../../src/ta_func/ta_CDLRICKSHAWMAN.c \ + ../../../../../src/ta_func/ta_CDLRISEFALL3METHODS.c \ + ../../../../../src/ta_func/ta_CDLSEPARATINGLINES.c \ + ../../../../../src/ta_func/ta_CDLSHOOTINGSTAR.c \ + ../../../../../src/ta_func/ta_CDLSHORTLINE.c \ + ../../../../../src/ta_func/ta_CDLSPINNINGTOP.c \ + ../../../../../src/ta_func/ta_CDLSTALLEDPATTERN.c \ + ../../../../../src/ta_func/ta_CDLSTICKSANDWICH.c \ + ../../../../../src/ta_func/ta_CDLTAKURI.c \ + ../../../../../src/ta_func/ta_CDLTASUKIGAP.c \ + ../../../../../src/ta_func/ta_CDLTHRUSTING.c \ + ../../../../../src/ta_func/ta_CDLTRISTAR.c \ + ../../../../../src/ta_func/ta_CDLUNIQUE3RIVER.c \ + ../../../../../src/ta_func/ta_CDLUPSIDEGAP2CROWS.c \ + ../../../../../src/ta_func/ta_CDLXSIDEGAP3METHODS.c \ + ../../../../../src/ta_func/ta_CEIL.c \ + ../../../../../src/ta_func/ta_CMO.c \ + ../../../../../src/ta_func/ta_CORREL.c \ + ../../../../../src/ta_func/ta_COS.c \ + ../../../../../src/ta_func/ta_COSH.c \ + ../../../../../src/ta_func/ta_DEMA.c \ + ../../../../../src/ta_func/ta_DIV.c \ + ../../../../../src/ta_func/ta_DX.c \ + ../../../../../src/ta_func/ta_EMA.c \ + ../../../../../src/ta_func/ta_EXP.c \ + ../../../../../src/ta_func/ta_FLOOR.c \ + ../../../../../src/ta_func/ta_HT_DCPERIOD.c \ + ../../../../../src/ta_func/ta_HT_DCPHASE.c \ + ../../../../../src/ta_func/ta_HT_PHASOR.c \ + ../../../../../src/ta_func/ta_HT_SINE.c \ + ../../../../../src/ta_func/ta_HT_TRENDLINE.c \ + ../../../../../src/ta_func/ta_HT_TRENDMODE.c \ + ../../../../../src/ta_func/ta_KAMA.c \ + ../../../../../src/ta_func/ta_LINEARREG.c \ + ../../../../../src/ta_func/ta_LINEARREG_ANGLE.c \ + ../../../../../src/ta_func/ta_LINEARREG_INTERCEPT.c \ + ../../../../../src/ta_func/ta_LINEARREG_SLOPE.c \ + ../../../../../src/ta_func/ta_LN.c \ + ../../../../../src/ta_func/ta_LOG10.c \ + ../../../../../src/ta_func/ta_MA.c \ + ../../../../../src/ta_func/ta_MACD.c \ + ../../../../../src/ta_func/ta_MACDEXT.c \ + ../../../../../src/ta_func/ta_MACDFIX.c \ + ../../../../../src/ta_func/ta_MAMA.c \ + ../../../../../src/ta_func/ta_MAVP.c \ + ../../../../../src/ta_func/ta_MAX.c \ + ../../../../../src/ta_func/ta_MAXINDEX.c \ + ../../../../../src/ta_func/ta_MEDPRICE.c \ + ../../../../../src/ta_func/ta_MFI.c \ + ../../../../../src/ta_func/ta_MIDPOINT.c \ + ../../../../../src/ta_func/ta_MIDPRICE.c \ + ../../../../../src/ta_func/ta_MIN.c \ + ../../../../../src/ta_func/ta_MININDEX.c \ + ../../../../../src/ta_func/ta_MINMAX.c \ + ../../../../../src/ta_func/ta_MINMAXINDEX.c \ + ../../../../../src/ta_func/ta_MINUS_DI.c \ + ../../../../../src/ta_func/ta_MINUS_DM.c \ + ../../../../../src/ta_func/ta_MOM.c \ + ../../../../../src/ta_func/ta_MULT.c \ + ../../../../../src/ta_func/ta_NATR.c \ + ../../../../../src/ta_func/ta_OBV.c \ + ../../../../../src/ta_func/ta_PLUS_DI.c \ + ../../../../../src/ta_func/ta_PLUS_DM.c \ + ../../../../../src/ta_func/ta_PPO.c \ + ../../../../../src/ta_func/ta_ROC.c \ + ../../../../../src/ta_func/ta_ROCP.c \ + ../../../../../src/ta_func/ta_ROCR.c \ + ../../../../../src/ta_func/ta_ROCR100.c \ + ../../../../../src/ta_func/ta_RSI.c \ + ../../../../../src/ta_func/ta_SAR.c \ + ../../../../../src/ta_func/ta_SAREXT.c \ + ../../../../../src/ta_func/ta_SIN.c \ + ../../../../../src/ta_func/ta_SINH.c \ + ../../../../../src/ta_func/ta_SMA.c \ + ../../../../../src/ta_func/ta_SQRT.c \ + ../../../../../src/ta_func/ta_STDDEV.c \ + ../../../../../src/ta_func/ta_STOCH.c \ + ../../../../../src/ta_func/ta_STOCHF.c \ + ../../../../../src/ta_func/ta_STOCHRSI.c \ + ../../../../../src/ta_func/ta_SUB.c \ + ../../../../../src/ta_func/ta_SUM.c \ + ../../../../../src/ta_func/ta_T3.c \ + ../../../../../src/ta_func/ta_TAN.c \ + ../../../../../src/ta_func/ta_TANH.c \ + ../../../../../src/ta_func/ta_TEMA.c \ + ../../../../../src/ta_func/ta_TRANGE.c \ + ../../../../../src/ta_func/ta_TRIMA.c \ + ../../../../../src/ta_func/ta_TRIX.c \ + ../../../../../src/ta_func/ta_TSF.c \ + ../../../../../src/ta_func/ta_TYPPRICE.c \ + ../../../../../src/ta_func/ta_ULTOSC.c \ + ../../../../../src/ta_func/ta_VAR.c \ + ../../../../../src/ta_func/ta_WCLPRICE.c \ + ../../../../../src/ta_func/ta_WILLR.c \ + ../../../../../src/ta_func/ta_WMA.c +OBJECTS = ../../../../../temp/cmp/ta_utility.o \ + ../../../../../temp/cmp/ta_ACOS.o \ + ../../../../../temp/cmp/ta_AD.o \ + ../../../../../temp/cmp/ta_ADD.o \ + ../../../../../temp/cmp/ta_ADOSC.o \ + ../../../../../temp/cmp/ta_ADX.o \ + ../../../../../temp/cmp/ta_ADXR.o \ + ../../../../../temp/cmp/ta_APO.o \ + ../../../../../temp/cmp/ta_AROON.o \ + ../../../../../temp/cmp/ta_AROONOSC.o \ + ../../../../../temp/cmp/ta_ASIN.o \ + ../../../../../temp/cmp/ta_ATAN.o \ + ../../../../../temp/cmp/ta_ATR.o \ + ../../../../../temp/cmp/ta_AVGPRICE.o \ + ../../../../../temp/cmp/ta_BBANDS.o \ + ../../../../../temp/cmp/ta_BETA.o \ + ../../../../../temp/cmp/ta_BOP.o \ + ../../../../../temp/cmp/ta_CCI.o \ + ../../../../../temp/cmp/ta_CDL2CROWS.o \ + ../../../../../temp/cmp/ta_CDL3BLACKCROWS.o \ + ../../../../../temp/cmp/ta_CDL3INSIDE.o \ + ../../../../../temp/cmp/ta_CDL3LINESTRIKE.o \ + ../../../../../temp/cmp/ta_CDL3OUTSIDE.o \ + ../../../../../temp/cmp/ta_CDL3STARSINSOUTH.o \ + ../../../../../temp/cmp/ta_CDL3WHITESOLDIERS.o \ + ../../../../../temp/cmp/ta_CDLABANDONEDBABY.o \ + ../../../../../temp/cmp/ta_CDLADVANCEBLOCK.o \ + ../../../../../temp/cmp/ta_CDLBELTHOLD.o \ + ../../../../../temp/cmp/ta_CDLBREAKAWAY.o \ + ../../../../../temp/cmp/ta_CDLCLOSINGMARUBOZU.o \ + ../../../../../temp/cmp/ta_CDLCONCEALBABYSWALL.o \ + ../../../../../temp/cmp/ta_CDLCOUNTERATTACK.o \ + ../../../../../temp/cmp/ta_CDLDARKCLOUDCOVER.o \ + ../../../../../temp/cmp/ta_CDLDOJI.o \ + ../../../../../temp/cmp/ta_CDLDOJISTAR.o \ + ../../../../../temp/cmp/ta_CDLDRAGONFLYDOJI.o \ + ../../../../../temp/cmp/ta_CDLENGULFING.o \ + ../../../../../temp/cmp/ta_CDLEVENINGDOJISTAR.o \ + ../../../../../temp/cmp/ta_CDLEVENINGSTAR.o \ + ../../../../../temp/cmp/ta_CDLGAPSIDESIDEWHITE.o \ + ../../../../../temp/cmp/ta_CDLGRAVESTONEDOJI.o \ + ../../../../../temp/cmp/ta_CDLHAMMER.o \ + ../../../../../temp/cmp/ta_CDLHANGINGMAN.o \ + ../../../../../temp/cmp/ta_CDLHARAMI.o \ + ../../../../../temp/cmp/ta_CDLHARAMICROSS.o \ + ../../../../../temp/cmp/ta_CDLHIGHWAVE.o \ + ../../../../../temp/cmp/ta_CDLHIKKAKE.o \ + ../../../../../temp/cmp/ta_CDLHIKKAKEMOD.o \ + ../../../../../temp/cmp/ta_CDLHOMINGPIGEON.o \ + ../../../../../temp/cmp/ta_CDLIDENTICAL3CROWS.o \ + ../../../../../temp/cmp/ta_CDLINNECK.o \ + ../../../../../temp/cmp/ta_CDLINVERTEDHAMMER.o \ + ../../../../../temp/cmp/ta_CDLKICKING.o \ + ../../../../../temp/cmp/ta_CDLKICKINGBYLENGTH.o \ + ../../../../../temp/cmp/ta_CDLLADDERBOTTOM.o \ + ../../../../../temp/cmp/ta_CDLLONGLEGGEDDOJI.o \ + ../../../../../temp/cmp/ta_CDLLONGLINE.o \ + ../../../../../temp/cmp/ta_CDLMARUBOZU.o \ + ../../../../../temp/cmp/ta_CDLMATCHINGLOW.o \ + ../../../../../temp/cmp/ta_CDLMATHOLD.o \ + ../../../../../temp/cmp/ta_CDLMORNINGDOJISTAR.o \ + ../../../../../temp/cmp/ta_CDLMORNINGSTAR.o \ + ../../../../../temp/cmp/ta_CDLONNECK.o \ + ../../../../../temp/cmp/ta_CDLPIERCING.o \ + ../../../../../temp/cmp/ta_CDLRICKSHAWMAN.o \ + ../../../../../temp/cmp/ta_CDLRISEFALL3METHODS.o \ + ../../../../../temp/cmp/ta_CDLSEPARATINGLINES.o \ + ../../../../../temp/cmp/ta_CDLSHOOTINGSTAR.o \ + ../../../../../temp/cmp/ta_CDLSHORTLINE.o \ + ../../../../../temp/cmp/ta_CDLSPINNINGTOP.o \ + ../../../../../temp/cmp/ta_CDLSTALLEDPATTERN.o \ + ../../../../../temp/cmp/ta_CDLSTICKSANDWICH.o \ + ../../../../../temp/cmp/ta_CDLTAKURI.o \ + ../../../../../temp/cmp/ta_CDLTASUKIGAP.o \ + ../../../../../temp/cmp/ta_CDLTHRUSTING.o \ + ../../../../../temp/cmp/ta_CDLTRISTAR.o \ + ../../../../../temp/cmp/ta_CDLUNIQUE3RIVER.o \ + ../../../../../temp/cmp/ta_CDLUPSIDEGAP2CROWS.o \ + ../../../../../temp/cmp/ta_CDLXSIDEGAP3METHODS.o \ + ../../../../../temp/cmp/ta_CEIL.o \ + ../../../../../temp/cmp/ta_CMO.o \ + ../../../../../temp/cmp/ta_CORREL.o \ + ../../../../../temp/cmp/ta_COS.o \ + ../../../../../temp/cmp/ta_COSH.o \ + ../../../../../temp/cmp/ta_DEMA.o \ + ../../../../../temp/cmp/ta_DIV.o \ + ../../../../../temp/cmp/ta_DX.o \ + ../../../../../temp/cmp/ta_EMA.o \ + ../../../../../temp/cmp/ta_EXP.o \ + ../../../../../temp/cmp/ta_FLOOR.o \ + ../../../../../temp/cmp/ta_HT_DCPERIOD.o \ + ../../../../../temp/cmp/ta_HT_DCPHASE.o \ + ../../../../../temp/cmp/ta_HT_PHASOR.o \ + ../../../../../temp/cmp/ta_HT_SINE.o \ + ../../../../../temp/cmp/ta_HT_TRENDLINE.o \ + ../../../../../temp/cmp/ta_HT_TRENDMODE.o \ + ../../../../../temp/cmp/ta_KAMA.o \ + ../../../../../temp/cmp/ta_LINEARREG.o \ + ../../../../../temp/cmp/ta_LINEARREG_ANGLE.o \ + ../../../../../temp/cmp/ta_LINEARREG_INTERCEPT.o \ + ../../../../../temp/cmp/ta_LINEARREG_SLOPE.o \ + ../../../../../temp/cmp/ta_LN.o \ + ../../../../../temp/cmp/ta_LOG10.o \ + ../../../../../temp/cmp/ta_MA.o \ + ../../../../../temp/cmp/ta_MACD.o \ + ../../../../../temp/cmp/ta_MACDEXT.o \ + ../../../../../temp/cmp/ta_MACDFIX.o \ + ../../../../../temp/cmp/ta_MAMA.o \ + ../../../../../temp/cmp/ta_MAVP.o \ + ../../../../../temp/cmp/ta_MAX.o \ + ../../../../../temp/cmp/ta_MAXINDEX.o \ + ../../../../../temp/cmp/ta_MEDPRICE.o \ + ../../../../../temp/cmp/ta_MFI.o \ + ../../../../../temp/cmp/ta_MIDPOINT.o \ + ../../../../../temp/cmp/ta_MIDPRICE.o \ + ../../../../../temp/cmp/ta_MIN.o \ + ../../../../../temp/cmp/ta_MININDEX.o \ + ../../../../../temp/cmp/ta_MINMAX.o \ + ../../../../../temp/cmp/ta_MINMAXINDEX.o \ + ../../../../../temp/cmp/ta_MINUS_DI.o \ + ../../../../../temp/cmp/ta_MINUS_DM.o \ + ../../../../../temp/cmp/ta_MOM.o \ + ../../../../../temp/cmp/ta_MULT.o \ + ../../../../../temp/cmp/ta_NATR.o \ + ../../../../../temp/cmp/ta_OBV.o \ + ../../../../../temp/cmp/ta_PLUS_DI.o \ + ../../../../../temp/cmp/ta_PLUS_DM.o \ + ../../../../../temp/cmp/ta_PPO.o \ + ../../../../../temp/cmp/ta_ROC.o \ + ../../../../../temp/cmp/ta_ROCP.o \ + ../../../../../temp/cmp/ta_ROCR.o \ + ../../../../../temp/cmp/ta_ROCR100.o \ + ../../../../../temp/cmp/ta_RSI.o \ + ../../../../../temp/cmp/ta_SAR.o \ + ../../../../../temp/cmp/ta_SAREXT.o \ + ../../../../../temp/cmp/ta_SIN.o \ + ../../../../../temp/cmp/ta_SINH.o \ + ../../../../../temp/cmp/ta_SMA.o \ + ../../../../../temp/cmp/ta_SQRT.o \ + ../../../../../temp/cmp/ta_STDDEV.o \ + ../../../../../temp/cmp/ta_STOCH.o \ + ../../../../../temp/cmp/ta_STOCHF.o \ + ../../../../../temp/cmp/ta_STOCHRSI.o \ + ../../../../../temp/cmp/ta_SUB.o \ + ../../../../../temp/cmp/ta_SUM.o \ + ../../../../../temp/cmp/ta_T3.o \ + ../../../../../temp/cmp/ta_TAN.o \ + ../../../../../temp/cmp/ta_TANH.o \ + ../../../../../temp/cmp/ta_TEMA.o \ + ../../../../../temp/cmp/ta_TRANGE.o \ + ../../../../../temp/cmp/ta_TRIMA.o \ + ../../../../../temp/cmp/ta_TRIX.o \ + ../../../../../temp/cmp/ta_TSF.o \ + ../../../../../temp/cmp/ta_TYPPRICE.o \ + ../../../../../temp/cmp/ta_ULTOSC.o \ + ../../../../../temp/cmp/ta_VAR.o \ + ../../../../../temp/cmp/ta_WCLPRICE.o \ + ../../../../../temp/cmp/ta_WILLR.o \ + ../../../../../temp/cmp/ta_WMA.o +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ../../../../../lib/libta_func_cmp.a +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .C .c + +.cpp.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cxx.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cc.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.C.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.c.o: + $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $< + +####### Build rules + + +all: $(TARGET) + +staticlib: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + -rm -f $(TARGET) + $(AR) $(TARGET) $(OBJECTS) $(OBJMOC) + +moc: $(SRCMOC) + +clean: + -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) + -rm -f *~ core + +####### Sub-libraries + + +###### Combined headers + + +####### Compile + +../../../../../temp/cmp/ta_utility.o: ../../../../../src/ta_func/ta_utility.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_utility.o ../../../../../src/ta_func/ta_utility.c + +../../../../../temp/cmp/ta_ACOS.o: ../../../../../src/ta_func/ta_ACOS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_ACOS.o ../../../../../src/ta_func/ta_ACOS.c + +../../../../../temp/cmp/ta_AD.o: ../../../../../src/ta_func/ta_AD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_AD.o ../../../../../src/ta_func/ta_AD.c + +../../../../../temp/cmp/ta_ADD.o: ../../../../../src/ta_func/ta_ADD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_ADD.o ../../../../../src/ta_func/ta_ADD.c + +../../../../../temp/cmp/ta_ADOSC.o: ../../../../../src/ta_func/ta_ADOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_ADOSC.o ../../../../../src/ta_func/ta_ADOSC.c + +../../../../../temp/cmp/ta_ADX.o: ../../../../../src/ta_func/ta_ADX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_ADX.o ../../../../../src/ta_func/ta_ADX.c + +../../../../../temp/cmp/ta_ADXR.o: ../../../../../src/ta_func/ta_ADXR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_ADXR.o ../../../../../src/ta_func/ta_ADXR.c + +../../../../../temp/cmp/ta_APO.o: ../../../../../src/ta_func/ta_APO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_APO.o ../../../../../src/ta_func/ta_APO.c + +../../../../../temp/cmp/ta_AROON.o: ../../../../../src/ta_func/ta_AROON.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_AROON.o ../../../../../src/ta_func/ta_AROON.c + +../../../../../temp/cmp/ta_AROONOSC.o: ../../../../../src/ta_func/ta_AROONOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_AROONOSC.o ../../../../../src/ta_func/ta_AROONOSC.c + +../../../../../temp/cmp/ta_ASIN.o: ../../../../../src/ta_func/ta_ASIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_ASIN.o ../../../../../src/ta_func/ta_ASIN.c + +../../../../../temp/cmp/ta_ATAN.o: ../../../../../src/ta_func/ta_ATAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_ATAN.o ../../../../../src/ta_func/ta_ATAN.c + +../../../../../temp/cmp/ta_ATR.o: ../../../../../src/ta_func/ta_ATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_ATR.o ../../../../../src/ta_func/ta_ATR.c + +../../../../../temp/cmp/ta_AVGPRICE.o: ../../../../../src/ta_func/ta_AVGPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_AVGPRICE.o ../../../../../src/ta_func/ta_AVGPRICE.c + +../../../../../temp/cmp/ta_BBANDS.o: ../../../../../src/ta_func/ta_BBANDS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_BBANDS.o ../../../../../src/ta_func/ta_BBANDS.c + +../../../../../temp/cmp/ta_BETA.o: ../../../../../src/ta_func/ta_BETA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_BETA.o ../../../../../src/ta_func/ta_BETA.c + +../../../../../temp/cmp/ta_BOP.o: ../../../../../src/ta_func/ta_BOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_BOP.o ../../../../../src/ta_func/ta_BOP.c + +../../../../../temp/cmp/ta_CCI.o: ../../../../../src/ta_func/ta_CCI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CCI.o ../../../../../src/ta_func/ta_CCI.c + +../../../../../temp/cmp/ta_CDL2CROWS.o: ../../../../../src/ta_func/ta_CDL2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDL2CROWS.o ../../../../../src/ta_func/ta_CDL2CROWS.c + +../../../../../temp/cmp/ta_CDL3BLACKCROWS.o: ../../../../../src/ta_func/ta_CDL3BLACKCROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDL3BLACKCROWS.o ../../../../../src/ta_func/ta_CDL3BLACKCROWS.c + +../../../../../temp/cmp/ta_CDL3INSIDE.o: ../../../../../src/ta_func/ta_CDL3INSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDL3INSIDE.o ../../../../../src/ta_func/ta_CDL3INSIDE.c + +../../../../../temp/cmp/ta_CDL3LINESTRIKE.o: ../../../../../src/ta_func/ta_CDL3LINESTRIKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDL3LINESTRIKE.o ../../../../../src/ta_func/ta_CDL3LINESTRIKE.c + +../../../../../temp/cmp/ta_CDL3OUTSIDE.o: ../../../../../src/ta_func/ta_CDL3OUTSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDL3OUTSIDE.o ../../../../../src/ta_func/ta_CDL3OUTSIDE.c + +../../../../../temp/cmp/ta_CDL3STARSINSOUTH.o: ../../../../../src/ta_func/ta_CDL3STARSINSOUTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDL3STARSINSOUTH.o ../../../../../src/ta_func/ta_CDL3STARSINSOUTH.c + +../../../../../temp/cmp/ta_CDL3WHITESOLDIERS.o: ../../../../../src/ta_func/ta_CDL3WHITESOLDIERS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDL3WHITESOLDIERS.o ../../../../../src/ta_func/ta_CDL3WHITESOLDIERS.c + +../../../../../temp/cmp/ta_CDLABANDONEDBABY.o: ../../../../../src/ta_func/ta_CDLABANDONEDBABY.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLABANDONEDBABY.o ../../../../../src/ta_func/ta_CDLABANDONEDBABY.c + +../../../../../temp/cmp/ta_CDLADVANCEBLOCK.o: ../../../../../src/ta_func/ta_CDLADVANCEBLOCK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLADVANCEBLOCK.o ../../../../../src/ta_func/ta_CDLADVANCEBLOCK.c + +../../../../../temp/cmp/ta_CDLBELTHOLD.o: ../../../../../src/ta_func/ta_CDLBELTHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLBELTHOLD.o ../../../../../src/ta_func/ta_CDLBELTHOLD.c + +../../../../../temp/cmp/ta_CDLBREAKAWAY.o: ../../../../../src/ta_func/ta_CDLBREAKAWAY.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLBREAKAWAY.o ../../../../../src/ta_func/ta_CDLBREAKAWAY.c + +../../../../../temp/cmp/ta_CDLCLOSINGMARUBOZU.o: ../../../../../src/ta_func/ta_CDLCLOSINGMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLCLOSINGMARUBOZU.o ../../../../../src/ta_func/ta_CDLCLOSINGMARUBOZU.c + +../../../../../temp/cmp/ta_CDLCONCEALBABYSWALL.o: ../../../../../src/ta_func/ta_CDLCONCEALBABYSWALL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLCONCEALBABYSWALL.o ../../../../../src/ta_func/ta_CDLCONCEALBABYSWALL.c + +../../../../../temp/cmp/ta_CDLCOUNTERATTACK.o: ../../../../../src/ta_func/ta_CDLCOUNTERATTACK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLCOUNTERATTACK.o ../../../../../src/ta_func/ta_CDLCOUNTERATTACK.c + +../../../../../temp/cmp/ta_CDLDARKCLOUDCOVER.o: ../../../../../src/ta_func/ta_CDLDARKCLOUDCOVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLDARKCLOUDCOVER.o ../../../../../src/ta_func/ta_CDLDARKCLOUDCOVER.c + +../../../../../temp/cmp/ta_CDLDOJI.o: ../../../../../src/ta_func/ta_CDLDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLDOJI.o ../../../../../src/ta_func/ta_CDLDOJI.c + +../../../../../temp/cmp/ta_CDLDOJISTAR.o: ../../../../../src/ta_func/ta_CDLDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLDOJISTAR.o ../../../../../src/ta_func/ta_CDLDOJISTAR.c + +../../../../../temp/cmp/ta_CDLDRAGONFLYDOJI.o: ../../../../../src/ta_func/ta_CDLDRAGONFLYDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLDRAGONFLYDOJI.o ../../../../../src/ta_func/ta_CDLDRAGONFLYDOJI.c + +../../../../../temp/cmp/ta_CDLENGULFING.o: ../../../../../src/ta_func/ta_CDLENGULFING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLENGULFING.o ../../../../../src/ta_func/ta_CDLENGULFING.c + +../../../../../temp/cmp/ta_CDLEVENINGDOJISTAR.o: ../../../../../src/ta_func/ta_CDLEVENINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLEVENINGDOJISTAR.o ../../../../../src/ta_func/ta_CDLEVENINGDOJISTAR.c + +../../../../../temp/cmp/ta_CDLEVENINGSTAR.o: ../../../../../src/ta_func/ta_CDLEVENINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLEVENINGSTAR.o ../../../../../src/ta_func/ta_CDLEVENINGSTAR.c + +../../../../../temp/cmp/ta_CDLGAPSIDESIDEWHITE.o: ../../../../../src/ta_func/ta_CDLGAPSIDESIDEWHITE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLGAPSIDESIDEWHITE.o ../../../../../src/ta_func/ta_CDLGAPSIDESIDEWHITE.c + +../../../../../temp/cmp/ta_CDLGRAVESTONEDOJI.o: ../../../../../src/ta_func/ta_CDLGRAVESTONEDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLGRAVESTONEDOJI.o ../../../../../src/ta_func/ta_CDLGRAVESTONEDOJI.c + +../../../../../temp/cmp/ta_CDLHAMMER.o: ../../../../../src/ta_func/ta_CDLHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLHAMMER.o ../../../../../src/ta_func/ta_CDLHAMMER.c + +../../../../../temp/cmp/ta_CDLHANGINGMAN.o: ../../../../../src/ta_func/ta_CDLHANGINGMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLHANGINGMAN.o ../../../../../src/ta_func/ta_CDLHANGINGMAN.c + +../../../../../temp/cmp/ta_CDLHARAMI.o: ../../../../../src/ta_func/ta_CDLHARAMI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLHARAMI.o ../../../../../src/ta_func/ta_CDLHARAMI.c + +../../../../../temp/cmp/ta_CDLHARAMICROSS.o: ../../../../../src/ta_func/ta_CDLHARAMICROSS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLHARAMICROSS.o ../../../../../src/ta_func/ta_CDLHARAMICROSS.c + +../../../../../temp/cmp/ta_CDLHIGHWAVE.o: ../../../../../src/ta_func/ta_CDLHIGHWAVE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLHIGHWAVE.o ../../../../../src/ta_func/ta_CDLHIGHWAVE.c + +../../../../../temp/cmp/ta_CDLHIKKAKE.o: ../../../../../src/ta_func/ta_CDLHIKKAKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLHIKKAKE.o ../../../../../src/ta_func/ta_CDLHIKKAKE.c + +../../../../../temp/cmp/ta_CDLHIKKAKEMOD.o: ../../../../../src/ta_func/ta_CDLHIKKAKEMOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLHIKKAKEMOD.o ../../../../../src/ta_func/ta_CDLHIKKAKEMOD.c + +../../../../../temp/cmp/ta_CDLHOMINGPIGEON.o: ../../../../../src/ta_func/ta_CDLHOMINGPIGEON.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLHOMINGPIGEON.o ../../../../../src/ta_func/ta_CDLHOMINGPIGEON.c + +../../../../../temp/cmp/ta_CDLIDENTICAL3CROWS.o: ../../../../../src/ta_func/ta_CDLIDENTICAL3CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLIDENTICAL3CROWS.o ../../../../../src/ta_func/ta_CDLIDENTICAL3CROWS.c + +../../../../../temp/cmp/ta_CDLINNECK.o: ../../../../../src/ta_func/ta_CDLINNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLINNECK.o ../../../../../src/ta_func/ta_CDLINNECK.c + +../../../../../temp/cmp/ta_CDLINVERTEDHAMMER.o: ../../../../../src/ta_func/ta_CDLINVERTEDHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLINVERTEDHAMMER.o ../../../../../src/ta_func/ta_CDLINVERTEDHAMMER.c + +../../../../../temp/cmp/ta_CDLKICKING.o: ../../../../../src/ta_func/ta_CDLKICKING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLKICKING.o ../../../../../src/ta_func/ta_CDLKICKING.c + +../../../../../temp/cmp/ta_CDLKICKINGBYLENGTH.o: ../../../../../src/ta_func/ta_CDLKICKINGBYLENGTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLKICKINGBYLENGTH.o ../../../../../src/ta_func/ta_CDLKICKINGBYLENGTH.c + +../../../../../temp/cmp/ta_CDLLADDERBOTTOM.o: ../../../../../src/ta_func/ta_CDLLADDERBOTTOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLLADDERBOTTOM.o ../../../../../src/ta_func/ta_CDLLADDERBOTTOM.c + +../../../../../temp/cmp/ta_CDLLONGLEGGEDDOJI.o: ../../../../../src/ta_func/ta_CDLLONGLEGGEDDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLLONGLEGGEDDOJI.o ../../../../../src/ta_func/ta_CDLLONGLEGGEDDOJI.c + +../../../../../temp/cmp/ta_CDLLONGLINE.o: ../../../../../src/ta_func/ta_CDLLONGLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLLONGLINE.o ../../../../../src/ta_func/ta_CDLLONGLINE.c + +../../../../../temp/cmp/ta_CDLMARUBOZU.o: ../../../../../src/ta_func/ta_CDLMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLMARUBOZU.o ../../../../../src/ta_func/ta_CDLMARUBOZU.c + +../../../../../temp/cmp/ta_CDLMATCHINGLOW.o: ../../../../../src/ta_func/ta_CDLMATCHINGLOW.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLMATCHINGLOW.o ../../../../../src/ta_func/ta_CDLMATCHINGLOW.c + +../../../../../temp/cmp/ta_CDLMATHOLD.o: ../../../../../src/ta_func/ta_CDLMATHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLMATHOLD.o ../../../../../src/ta_func/ta_CDLMATHOLD.c + +../../../../../temp/cmp/ta_CDLMORNINGDOJISTAR.o: ../../../../../src/ta_func/ta_CDLMORNINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLMORNINGDOJISTAR.o ../../../../../src/ta_func/ta_CDLMORNINGDOJISTAR.c + +../../../../../temp/cmp/ta_CDLMORNINGSTAR.o: ../../../../../src/ta_func/ta_CDLMORNINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLMORNINGSTAR.o ../../../../../src/ta_func/ta_CDLMORNINGSTAR.c + +../../../../../temp/cmp/ta_CDLONNECK.o: ../../../../../src/ta_func/ta_CDLONNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLONNECK.o ../../../../../src/ta_func/ta_CDLONNECK.c + +../../../../../temp/cmp/ta_CDLPIERCING.o: ../../../../../src/ta_func/ta_CDLPIERCING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLPIERCING.o ../../../../../src/ta_func/ta_CDLPIERCING.c + +../../../../../temp/cmp/ta_CDLRICKSHAWMAN.o: ../../../../../src/ta_func/ta_CDLRICKSHAWMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLRICKSHAWMAN.o ../../../../../src/ta_func/ta_CDLRICKSHAWMAN.c + +../../../../../temp/cmp/ta_CDLRISEFALL3METHODS.o: ../../../../../src/ta_func/ta_CDLRISEFALL3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLRISEFALL3METHODS.o ../../../../../src/ta_func/ta_CDLRISEFALL3METHODS.c + +../../../../../temp/cmp/ta_CDLSEPARATINGLINES.o: ../../../../../src/ta_func/ta_CDLSEPARATINGLINES.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLSEPARATINGLINES.o ../../../../../src/ta_func/ta_CDLSEPARATINGLINES.c + +../../../../../temp/cmp/ta_CDLSHOOTINGSTAR.o: ../../../../../src/ta_func/ta_CDLSHOOTINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLSHOOTINGSTAR.o ../../../../../src/ta_func/ta_CDLSHOOTINGSTAR.c + +../../../../../temp/cmp/ta_CDLSHORTLINE.o: ../../../../../src/ta_func/ta_CDLSHORTLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLSHORTLINE.o ../../../../../src/ta_func/ta_CDLSHORTLINE.c + +../../../../../temp/cmp/ta_CDLSPINNINGTOP.o: ../../../../../src/ta_func/ta_CDLSPINNINGTOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLSPINNINGTOP.o ../../../../../src/ta_func/ta_CDLSPINNINGTOP.c + +../../../../../temp/cmp/ta_CDLSTALLEDPATTERN.o: ../../../../../src/ta_func/ta_CDLSTALLEDPATTERN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLSTALLEDPATTERN.o ../../../../../src/ta_func/ta_CDLSTALLEDPATTERN.c + +../../../../../temp/cmp/ta_CDLSTICKSANDWICH.o: ../../../../../src/ta_func/ta_CDLSTICKSANDWICH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLSTICKSANDWICH.o ../../../../../src/ta_func/ta_CDLSTICKSANDWICH.c + +../../../../../temp/cmp/ta_CDLTAKURI.o: ../../../../../src/ta_func/ta_CDLTAKURI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLTAKURI.o ../../../../../src/ta_func/ta_CDLTAKURI.c + +../../../../../temp/cmp/ta_CDLTASUKIGAP.o: ../../../../../src/ta_func/ta_CDLTASUKIGAP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLTASUKIGAP.o ../../../../../src/ta_func/ta_CDLTASUKIGAP.c + +../../../../../temp/cmp/ta_CDLTHRUSTING.o: ../../../../../src/ta_func/ta_CDLTHRUSTING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLTHRUSTING.o ../../../../../src/ta_func/ta_CDLTHRUSTING.c + +../../../../../temp/cmp/ta_CDLTRISTAR.o: ../../../../../src/ta_func/ta_CDLTRISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLTRISTAR.o ../../../../../src/ta_func/ta_CDLTRISTAR.c + +../../../../../temp/cmp/ta_CDLUNIQUE3RIVER.o: ../../../../../src/ta_func/ta_CDLUNIQUE3RIVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLUNIQUE3RIVER.o ../../../../../src/ta_func/ta_CDLUNIQUE3RIVER.c + +../../../../../temp/cmp/ta_CDLUPSIDEGAP2CROWS.o: ../../../../../src/ta_func/ta_CDLUPSIDEGAP2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLUPSIDEGAP2CROWS.o ../../../../../src/ta_func/ta_CDLUPSIDEGAP2CROWS.c + +../../../../../temp/cmp/ta_CDLXSIDEGAP3METHODS.o: ../../../../../src/ta_func/ta_CDLXSIDEGAP3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLXSIDEGAP3METHODS.o ../../../../../src/ta_func/ta_CDLXSIDEGAP3METHODS.c + +../../../../../temp/cmp/ta_CEIL.o: ../../../../../src/ta_func/ta_CEIL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CEIL.o ../../../../../src/ta_func/ta_CEIL.c + +../../../../../temp/cmp/ta_CMO.o: ../../../../../src/ta_func/ta_CMO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CMO.o ../../../../../src/ta_func/ta_CMO.c + +../../../../../temp/cmp/ta_CORREL.o: ../../../../../src/ta_func/ta_CORREL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CORREL.o ../../../../../src/ta_func/ta_CORREL.c + +../../../../../temp/cmp/ta_COS.o: ../../../../../src/ta_func/ta_COS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_COS.o ../../../../../src/ta_func/ta_COS.c + +../../../../../temp/cmp/ta_COSH.o: ../../../../../src/ta_func/ta_COSH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_COSH.o ../../../../../src/ta_func/ta_COSH.c + +../../../../../temp/cmp/ta_DEMA.o: ../../../../../src/ta_func/ta_DEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_DEMA.o ../../../../../src/ta_func/ta_DEMA.c + +../../../../../temp/cmp/ta_DIV.o: ../../../../../src/ta_func/ta_DIV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_DIV.o ../../../../../src/ta_func/ta_DIV.c + +../../../../../temp/cmp/ta_DX.o: ../../../../../src/ta_func/ta_DX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_DX.o ../../../../../src/ta_func/ta_DX.c + +../../../../../temp/cmp/ta_EMA.o: ../../../../../src/ta_func/ta_EMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_EMA.o ../../../../../src/ta_func/ta_EMA.c + +../../../../../temp/cmp/ta_EXP.o: ../../../../../src/ta_func/ta_EXP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_EXP.o ../../../../../src/ta_func/ta_EXP.c + +../../../../../temp/cmp/ta_FLOOR.o: ../../../../../src/ta_func/ta_FLOOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_FLOOR.o ../../../../../src/ta_func/ta_FLOOR.c + +../../../../../temp/cmp/ta_HT_DCPERIOD.o: ../../../../../src/ta_func/ta_HT_DCPERIOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_HT_DCPERIOD.o ../../../../../src/ta_func/ta_HT_DCPERIOD.c + +../../../../../temp/cmp/ta_HT_DCPHASE.o: ../../../../../src/ta_func/ta_HT_DCPHASE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_HT_DCPHASE.o ../../../../../src/ta_func/ta_HT_DCPHASE.c + +../../../../../temp/cmp/ta_HT_PHASOR.o: ../../../../../src/ta_func/ta_HT_PHASOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_HT_PHASOR.o ../../../../../src/ta_func/ta_HT_PHASOR.c + +../../../../../temp/cmp/ta_HT_SINE.o: ../../../../../src/ta_func/ta_HT_SINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_HT_SINE.o ../../../../../src/ta_func/ta_HT_SINE.c + +../../../../../temp/cmp/ta_HT_TRENDLINE.o: ../../../../../src/ta_func/ta_HT_TRENDLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_HT_TRENDLINE.o ../../../../../src/ta_func/ta_HT_TRENDLINE.c + +../../../../../temp/cmp/ta_HT_TRENDMODE.o: ../../../../../src/ta_func/ta_HT_TRENDMODE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_HT_TRENDMODE.o ../../../../../src/ta_func/ta_HT_TRENDMODE.c + +../../../../../temp/cmp/ta_KAMA.o: ../../../../../src/ta_func/ta_KAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_KAMA.o ../../../../../src/ta_func/ta_KAMA.c + +../../../../../temp/cmp/ta_LINEARREG.o: ../../../../../src/ta_func/ta_LINEARREG.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_LINEARREG.o ../../../../../src/ta_func/ta_LINEARREG.c + +../../../../../temp/cmp/ta_LINEARREG_ANGLE.o: ../../../../../src/ta_func/ta_LINEARREG_ANGLE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_LINEARREG_ANGLE.o ../../../../../src/ta_func/ta_LINEARREG_ANGLE.c + +../../../../../temp/cmp/ta_LINEARREG_INTERCEPT.o: ../../../../../src/ta_func/ta_LINEARREG_INTERCEPT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_LINEARREG_INTERCEPT.o ../../../../../src/ta_func/ta_LINEARREG_INTERCEPT.c + +../../../../../temp/cmp/ta_LINEARREG_SLOPE.o: ../../../../../src/ta_func/ta_LINEARREG_SLOPE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_LINEARREG_SLOPE.o ../../../../../src/ta_func/ta_LINEARREG_SLOPE.c + +../../../../../temp/cmp/ta_LN.o: ../../../../../src/ta_func/ta_LN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_LN.o ../../../../../src/ta_func/ta_LN.c + +../../../../../temp/cmp/ta_LOG10.o: ../../../../../src/ta_func/ta_LOG10.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_LOG10.o ../../../../../src/ta_func/ta_LOG10.c + +../../../../../temp/cmp/ta_MA.o: ../../../../../src/ta_func/ta_MA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_MA.o ../../../../../src/ta_func/ta_MA.c + +../../../../../temp/cmp/ta_MACD.o: ../../../../../src/ta_func/ta_MACD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_MACD.o ../../../../../src/ta_func/ta_MACD.c + +../../../../../temp/cmp/ta_MACDEXT.o: ../../../../../src/ta_func/ta_MACDEXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_MACDEXT.o ../../../../../src/ta_func/ta_MACDEXT.c + +../../../../../temp/cmp/ta_MACDFIX.o: ../../../../../src/ta_func/ta_MACDFIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_MACDFIX.o ../../../../../src/ta_func/ta_MACDFIX.c + +../../../../../temp/cmp/ta_MAMA.o: ../../../../../src/ta_func/ta_MAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_MAMA.o ../../../../../src/ta_func/ta_MAMA.c + +../../../../../temp/cmp/ta_MAVP.o: ../../../../../src/ta_func/ta_MAVP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_MAVP.o ../../../../../src/ta_func/ta_MAVP.c + +../../../../../temp/cmp/ta_MAX.o: ../../../../../src/ta_func/ta_MAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_MAX.o ../../../../../src/ta_func/ta_MAX.c + +../../../../../temp/cmp/ta_MAXINDEX.o: ../../../../../src/ta_func/ta_MAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_MAXINDEX.o ../../../../../src/ta_func/ta_MAXINDEX.c + +../../../../../temp/cmp/ta_MEDPRICE.o: ../../../../../src/ta_func/ta_MEDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_MEDPRICE.o ../../../../../src/ta_func/ta_MEDPRICE.c + +../../../../../temp/cmp/ta_MFI.o: ../../../../../src/ta_func/ta_MFI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_MFI.o ../../../../../src/ta_func/ta_MFI.c + +../../../../../temp/cmp/ta_MIDPOINT.o: ../../../../../src/ta_func/ta_MIDPOINT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_MIDPOINT.o ../../../../../src/ta_func/ta_MIDPOINT.c + +../../../../../temp/cmp/ta_MIDPRICE.o: ../../../../../src/ta_func/ta_MIDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_MIDPRICE.o ../../../../../src/ta_func/ta_MIDPRICE.c + +../../../../../temp/cmp/ta_MIN.o: ../../../../../src/ta_func/ta_MIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_MIN.o ../../../../../src/ta_func/ta_MIN.c + +../../../../../temp/cmp/ta_MININDEX.o: ../../../../../src/ta_func/ta_MININDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_MININDEX.o ../../../../../src/ta_func/ta_MININDEX.c + +../../../../../temp/cmp/ta_MINMAX.o: ../../../../../src/ta_func/ta_MINMAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_MINMAX.o ../../../../../src/ta_func/ta_MINMAX.c + +../../../../../temp/cmp/ta_MINMAXINDEX.o: ../../../../../src/ta_func/ta_MINMAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_MINMAXINDEX.o ../../../../../src/ta_func/ta_MINMAXINDEX.c + +../../../../../temp/cmp/ta_MINUS_DI.o: ../../../../../src/ta_func/ta_MINUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_MINUS_DI.o ../../../../../src/ta_func/ta_MINUS_DI.c + +../../../../../temp/cmp/ta_MINUS_DM.o: ../../../../../src/ta_func/ta_MINUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_MINUS_DM.o ../../../../../src/ta_func/ta_MINUS_DM.c + +../../../../../temp/cmp/ta_MOM.o: ../../../../../src/ta_func/ta_MOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_MOM.o ../../../../../src/ta_func/ta_MOM.c + +../../../../../temp/cmp/ta_MULT.o: ../../../../../src/ta_func/ta_MULT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_MULT.o ../../../../../src/ta_func/ta_MULT.c + +../../../../../temp/cmp/ta_NATR.o: ../../../../../src/ta_func/ta_NATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_NATR.o ../../../../../src/ta_func/ta_NATR.c + +../../../../../temp/cmp/ta_OBV.o: ../../../../../src/ta_func/ta_OBV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_OBV.o ../../../../../src/ta_func/ta_OBV.c + +../../../../../temp/cmp/ta_PLUS_DI.o: ../../../../../src/ta_func/ta_PLUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_PLUS_DI.o ../../../../../src/ta_func/ta_PLUS_DI.c + +../../../../../temp/cmp/ta_PLUS_DM.o: ../../../../../src/ta_func/ta_PLUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_PLUS_DM.o ../../../../../src/ta_func/ta_PLUS_DM.c + +../../../../../temp/cmp/ta_PPO.o: ../../../../../src/ta_func/ta_PPO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_PPO.o ../../../../../src/ta_func/ta_PPO.c + +../../../../../temp/cmp/ta_ROC.o: ../../../../../src/ta_func/ta_ROC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_ROC.o ../../../../../src/ta_func/ta_ROC.c + +../../../../../temp/cmp/ta_ROCP.o: ../../../../../src/ta_func/ta_ROCP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_ROCP.o ../../../../../src/ta_func/ta_ROCP.c + +../../../../../temp/cmp/ta_ROCR.o: ../../../../../src/ta_func/ta_ROCR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_ROCR.o ../../../../../src/ta_func/ta_ROCR.c + +../../../../../temp/cmp/ta_ROCR100.o: ../../../../../src/ta_func/ta_ROCR100.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_ROCR100.o ../../../../../src/ta_func/ta_ROCR100.c + +../../../../../temp/cmp/ta_RSI.o: ../../../../../src/ta_func/ta_RSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_RSI.o ../../../../../src/ta_func/ta_RSI.c + +../../../../../temp/cmp/ta_SAR.o: ../../../../../src/ta_func/ta_SAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_SAR.o ../../../../../src/ta_func/ta_SAR.c + +../../../../../temp/cmp/ta_SAREXT.o: ../../../../../src/ta_func/ta_SAREXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_SAREXT.o ../../../../../src/ta_func/ta_SAREXT.c + +../../../../../temp/cmp/ta_SIN.o: ../../../../../src/ta_func/ta_SIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_SIN.o ../../../../../src/ta_func/ta_SIN.c + +../../../../../temp/cmp/ta_SINH.o: ../../../../../src/ta_func/ta_SINH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_SINH.o ../../../../../src/ta_func/ta_SINH.c + +../../../../../temp/cmp/ta_SMA.o: ../../../../../src/ta_func/ta_SMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_SMA.o ../../../../../src/ta_func/ta_SMA.c + +../../../../../temp/cmp/ta_SQRT.o: ../../../../../src/ta_func/ta_SQRT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_SQRT.o ../../../../../src/ta_func/ta_SQRT.c + +../../../../../temp/cmp/ta_STDDEV.o: ../../../../../src/ta_func/ta_STDDEV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_STDDEV.o ../../../../../src/ta_func/ta_STDDEV.c + +../../../../../temp/cmp/ta_STOCH.o: ../../../../../src/ta_func/ta_STOCH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_STOCH.o ../../../../../src/ta_func/ta_STOCH.c + +../../../../../temp/cmp/ta_STOCHF.o: ../../../../../src/ta_func/ta_STOCHF.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_STOCHF.o ../../../../../src/ta_func/ta_STOCHF.c + +../../../../../temp/cmp/ta_STOCHRSI.o: ../../../../../src/ta_func/ta_STOCHRSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_STOCHRSI.o ../../../../../src/ta_func/ta_STOCHRSI.c + +../../../../../temp/cmp/ta_SUB.o: ../../../../../src/ta_func/ta_SUB.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_SUB.o ../../../../../src/ta_func/ta_SUB.c + +../../../../../temp/cmp/ta_SUM.o: ../../../../../src/ta_func/ta_SUM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_SUM.o ../../../../../src/ta_func/ta_SUM.c + +../../../../../temp/cmp/ta_T3.o: ../../../../../src/ta_func/ta_T3.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_T3.o ../../../../../src/ta_func/ta_T3.c + +../../../../../temp/cmp/ta_TAN.o: ../../../../../src/ta_func/ta_TAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_TAN.o ../../../../../src/ta_func/ta_TAN.c + +../../../../../temp/cmp/ta_TANH.o: ../../../../../src/ta_func/ta_TANH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_TANH.o ../../../../../src/ta_func/ta_TANH.c + +../../../../../temp/cmp/ta_TEMA.o: ../../../../../src/ta_func/ta_TEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_TEMA.o ../../../../../src/ta_func/ta_TEMA.c + +../../../../../temp/cmp/ta_TRANGE.o: ../../../../../src/ta_func/ta_TRANGE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_TRANGE.o ../../../../../src/ta_func/ta_TRANGE.c + +../../../../../temp/cmp/ta_TRIMA.o: ../../../../../src/ta_func/ta_TRIMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_TRIMA.o ../../../../../src/ta_func/ta_TRIMA.c + +../../../../../temp/cmp/ta_TRIX.o: ../../../../../src/ta_func/ta_TRIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_TRIX.o ../../../../../src/ta_func/ta_TRIX.c + +../../../../../temp/cmp/ta_TSF.o: ../../../../../src/ta_func/ta_TSF.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_TSF.o ../../../../../src/ta_func/ta_TSF.c + +../../../../../temp/cmp/ta_TYPPRICE.o: ../../../../../src/ta_func/ta_TYPPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_TYPPRICE.o ../../../../../src/ta_func/ta_TYPPRICE.c + +../../../../../temp/cmp/ta_ULTOSC.o: ../../../../../src/ta_func/ta_ULTOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_ULTOSC.o ../../../../../src/ta_func/ta_ULTOSC.c + +../../../../../temp/cmp/ta_VAR.o: ../../../../../src/ta_func/ta_VAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_VAR.o ../../../../../src/ta_func/ta_VAR.c + +../../../../../temp/cmp/ta_WCLPRICE.o: ../../../../../src/ta_func/ta_WCLPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_WCLPRICE.o ../../../../../src/ta_func/ta_WCLPRICE.c + +../../../../../temp/cmp/ta_WILLR.o: ../../../../../src/ta_func/ta_WILLR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_WILLR.o ../../../../../src/ta_func/ta_WILLR.c + +../../../../../temp/cmp/ta_WMA.o: ../../../../../src/ta_func/ta_WMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_WMA.o ../../../../../src/ta_func/ta_WMA.c + diff --git a/make/cmp/linux/g++/ta_libc/Makefile b/make/cmp/linux/g++/ta_libc/Makefile new file mode 100644 index 000000000..7e8e6067c --- /dev/null +++ b/make/cmp/linux/g++/ta_libc/Makefile @@ -0,0 +1,1053 @@ +############################################################################# +# Makefile for building ../../../../../lib/libta_libc_cmp.a +# Generated by tmake; +# Project: ta_libc/ta_libc +# Template: lib +############################################################################# + +####### Compiler, tools and options + +CC = gcc +CXX = g++ +CFLAGS = -pipe -fPIC -Wall -W -g -O -pg -D_REENTRANT -DTA_DEBUG -D_DEBUG -DQT_THREAD_SUPPORT +CXXFLAGS= -pipe -fPIC -Wall -W -g -D_REENTRANT -DTA_DEBUG -D_DEBUG -DQT_THREAD_SUPPORT +INCPATH = -I../../../../../src/ta_common -I../../../../../include -I../../../../../src/ta_abstract -I../../../../../src/ta_abstract/tables -I../../../../../src/ta_abstract/frames -I$(QTDIR)/include +AR = ar cqs +RANLIB = +MOC = $(QTDIR)/bin/moc +UIC = $(QTDIR)/bin/uic + +TAR = tar -cf +GZIP = gzip -9f + +####### Support for 64-bit systems +ifeq ($(shell uname -m), x86_64) + CFLAGS += -march=x86-64 -m64 -D__64BIT__ + CXXFLAGS += -march=x86-64 -m64 -D__64BIT__ +endif + +####### Apply additional overruling user flags, if any +CFLAGS += $(CUSERFLAGS) +CXXFLAGS += $(CUSERFLAGS) + +####### Files + +HEADERS = +SOURCES = ../../../../../src/ta_common/ta_global.c \ + ../../../../../src/ta_common/ta_retcode.c \ + ../../../../../src/ta_common/ta_version.c \ + ../../../../../src/ta_abstract/ta_abstract.c \ + ../../../../../src/ta_abstract/ta_def_ui.c \ + ../../../../../src/ta_abstract/ta_func_api.c \ + ../../../../../src/ta_abstract/ta_group_idx.c \ + ../../../../../src/ta_abstract/frames/ta_frame.c \ + ../../../../../src/ta_abstract/tables/table_a.c \ + ../../../../../src/ta_abstract/tables/table_b.c \ + ../../../../../src/ta_abstract/tables/table_c.c \ + ../../../../../src/ta_abstract/tables/table_d.c \ + ../../../../../src/ta_abstract/tables/table_e.c \ + ../../../../../src/ta_abstract/tables/table_f.c \ + ../../../../../src/ta_abstract/tables/table_g.c \ + ../../../../../src/ta_abstract/tables/table_h.c \ + ../../../../../src/ta_abstract/tables/table_i.c \ + ../../../../../src/ta_abstract/tables/table_j.c \ + ../../../../../src/ta_abstract/tables/table_k.c \ + ../../../../../src/ta_abstract/tables/table_l.c \ + ../../../../../src/ta_abstract/tables/table_m.c \ + ../../../../../src/ta_abstract/tables/table_n.c \ + ../../../../../src/ta_abstract/tables/table_o.c \ + ../../../../../src/ta_abstract/tables/table_p.c \ + ../../../../../src/ta_abstract/tables/table_q.c \ + ../../../../../src/ta_abstract/tables/table_r.c \ + ../../../../../src/ta_abstract/tables/table_s.c \ + ../../../../../src/ta_abstract/tables/table_t.c \ + ../../../../../src/ta_abstract/tables/table_u.c \ + ../../../../../src/ta_abstract/tables/table_v.c \ + ../../../../../src/ta_abstract/tables/table_w.c \ + ../../../../../src/ta_abstract/tables/table_x.c \ + ../../../../../src/ta_abstract/tables/table_y.c \ + ../../../../../src/ta_abstract/tables/table_z.c \ + ../../../../../src/ta_func/ta_utility.c \ + ../../../../../src/ta_func/ta_ACOS.c \ + ../../../../../src/ta_func/ta_AD.c \ + ../../../../../src/ta_func/ta_ADD.c \ + ../../../../../src/ta_func/ta_ADOSC.c \ + ../../../../../src/ta_func/ta_ADX.c \ + ../../../../../src/ta_func/ta_ADXR.c \ + ../../../../../src/ta_func/ta_APO.c \ + ../../../../../src/ta_func/ta_AROON.c \ + ../../../../../src/ta_func/ta_AROONOSC.c \ + ../../../../../src/ta_func/ta_ASIN.c \ + ../../../../../src/ta_func/ta_ATAN.c \ + ../../../../../src/ta_func/ta_ATR.c \ + ../../../../../src/ta_func/ta_AVGPRICE.c \ + ../../../../../src/ta_func/ta_BBANDS.c \ + ../../../../../src/ta_func/ta_BETA.c \ + ../../../../../src/ta_func/ta_BOP.c \ + ../../../../../src/ta_func/ta_CCI.c \ + ../../../../../src/ta_func/ta_CDL2CROWS.c \ + ../../../../../src/ta_func/ta_CDL3BLACKCROWS.c \ + ../../../../../src/ta_func/ta_CDL3INSIDE.c \ + ../../../../../src/ta_func/ta_CDL3LINESTRIKE.c \ + ../../../../../src/ta_func/ta_CDL3OUTSIDE.c \ + ../../../../../src/ta_func/ta_CDL3STARSINSOUTH.c \ + ../../../../../src/ta_func/ta_CDL3WHITESOLDIERS.c \ + ../../../../../src/ta_func/ta_CDLABANDONEDBABY.c \ + ../../../../../src/ta_func/ta_CDLADVANCEBLOCK.c \ + ../../../../../src/ta_func/ta_CDLBELTHOLD.c \ + ../../../../../src/ta_func/ta_CDLBREAKAWAY.c \ + ../../../../../src/ta_func/ta_CDLCLOSINGMARUBOZU.c \ + ../../../../../src/ta_func/ta_CDLCONCEALBABYSWALL.c \ + ../../../../../src/ta_func/ta_CDLCOUNTERATTACK.c \ + ../../../../../src/ta_func/ta_CDLDARKCLOUDCOVER.c \ + ../../../../../src/ta_func/ta_CDLDOJI.c \ + ../../../../../src/ta_func/ta_CDLDOJISTAR.c \ + ../../../../../src/ta_func/ta_CDLDRAGONFLYDOJI.c \ + ../../../../../src/ta_func/ta_CDLENGULFING.c \ + ../../../../../src/ta_func/ta_CDLEVENINGDOJISTAR.c \ + ../../../../../src/ta_func/ta_CDLEVENINGSTAR.c \ + ../../../../../src/ta_func/ta_CDLGAPSIDESIDEWHITE.c \ + ../../../../../src/ta_func/ta_CDLGRAVESTONEDOJI.c \ + ../../../../../src/ta_func/ta_CDLHAMMER.c \ + ../../../../../src/ta_func/ta_CDLHANGINGMAN.c \ + ../../../../../src/ta_func/ta_CDLHARAMI.c \ + ../../../../../src/ta_func/ta_CDLHARAMICROSS.c \ + ../../../../../src/ta_func/ta_CDLHIGHWAVE.c \ + ../../../../../src/ta_func/ta_CDLHIKKAKE.c \ + ../../../../../src/ta_func/ta_CDLHIKKAKEMOD.c \ + ../../../../../src/ta_func/ta_CDLHOMINGPIGEON.c \ + ../../../../../src/ta_func/ta_CDLIDENTICAL3CROWS.c \ + ../../../../../src/ta_func/ta_CDLINNECK.c \ + ../../../../../src/ta_func/ta_CDLINVERTEDHAMMER.c \ + ../../../../../src/ta_func/ta_CDLKICKING.c \ + ../../../../../src/ta_func/ta_CDLKICKINGBYLENGTH.c \ + ../../../../../src/ta_func/ta_CDLLADDERBOTTOM.c \ + ../../../../../src/ta_func/ta_CDLLONGLEGGEDDOJI.c \ + ../../../../../src/ta_func/ta_CDLLONGLINE.c \ + ../../../../../src/ta_func/ta_CDLMARUBOZU.c \ + ../../../../../src/ta_func/ta_CDLMATCHINGLOW.c \ + ../../../../../src/ta_func/ta_CDLMATHOLD.c \ + ../../../../../src/ta_func/ta_CDLMORNINGDOJISTAR.c \ + ../../../../../src/ta_func/ta_CDLMORNINGSTAR.c \ + ../../../../../src/ta_func/ta_CDLONNECK.c \ + ../../../../../src/ta_func/ta_CDLPIERCING.c \ + ../../../../../src/ta_func/ta_CDLRICKSHAWMAN.c \ + ../../../../../src/ta_func/ta_CDLRISEFALL3METHODS.c \ + ../../../../../src/ta_func/ta_CDLSEPARATINGLINES.c \ + ../../../../../src/ta_func/ta_CDLSHOOTINGSTAR.c \ + ../../../../../src/ta_func/ta_CDLSHORTLINE.c \ + ../../../../../src/ta_func/ta_CDLSPINNINGTOP.c \ + ../../../../../src/ta_func/ta_CDLSTALLEDPATTERN.c \ + ../../../../../src/ta_func/ta_CDLSTICKSANDWICH.c \ + ../../../../../src/ta_func/ta_CDLTAKURI.c \ + ../../../../../src/ta_func/ta_CDLTASUKIGAP.c \ + ../../../../../src/ta_func/ta_CDLTHRUSTING.c \ + ../../../../../src/ta_func/ta_CDLTRISTAR.c \ + ../../../../../src/ta_func/ta_CDLUNIQUE3RIVER.c \ + ../../../../../src/ta_func/ta_CDLUPSIDEGAP2CROWS.c \ + ../../../../../src/ta_func/ta_CDLXSIDEGAP3METHODS.c \ + ../../../../../src/ta_func/ta_CEIL.c \ + ../../../../../src/ta_func/ta_CMO.c \ + ../../../../../src/ta_func/ta_CORREL.c \ + ../../../../../src/ta_func/ta_COS.c \ + ../../../../../src/ta_func/ta_COSH.c \ + ../../../../../src/ta_func/ta_DEMA.c \ + ../../../../../src/ta_func/ta_DIV.c \ + ../../../../../src/ta_func/ta_DX.c \ + ../../../../../src/ta_func/ta_EMA.c \ + ../../../../../src/ta_func/ta_EXP.c \ + ../../../../../src/ta_func/ta_FLOOR.c \ + ../../../../../src/ta_func/ta_HT_DCPERIOD.c \ + ../../../../../src/ta_func/ta_HT_DCPHASE.c \ + ../../../../../src/ta_func/ta_HT_PHASOR.c \ + ../../../../../src/ta_func/ta_HT_SINE.c \ + ../../../../../src/ta_func/ta_HT_TRENDLINE.c \ + ../../../../../src/ta_func/ta_HT_TRENDMODE.c \ + ../../../../../src/ta_func/ta_KAMA.c \ + ../../../../../src/ta_func/ta_LINEARREG.c \ + ../../../../../src/ta_func/ta_LINEARREG_ANGLE.c \ + ../../../../../src/ta_func/ta_LINEARREG_INTERCEPT.c \ + ../../../../../src/ta_func/ta_LINEARREG_SLOPE.c \ + ../../../../../src/ta_func/ta_LN.c \ + ../../../../../src/ta_func/ta_LOG10.c \ + ../../../../../src/ta_func/ta_MA.c \ + ../../../../../src/ta_func/ta_MACD.c \ + ../../../../../src/ta_func/ta_MACDEXT.c \ + ../../../../../src/ta_func/ta_MACDFIX.c \ + ../../../../../src/ta_func/ta_MAMA.c \ + ../../../../../src/ta_func/ta_MAVP.c \ + ../../../../../src/ta_func/ta_MAX.c \ + ../../../../../src/ta_func/ta_MAXINDEX.c \ + ../../../../../src/ta_func/ta_MEDPRICE.c \ + ../../../../../src/ta_func/ta_MFI.c \ + ../../../../../src/ta_func/ta_MIDPOINT.c \ + ../../../../../src/ta_func/ta_MIDPRICE.c \ + ../../../../../src/ta_func/ta_MIN.c \ + ../../../../../src/ta_func/ta_MININDEX.c \ + ../../../../../src/ta_func/ta_MINMAX.c \ + ../../../../../src/ta_func/ta_MINMAXINDEX.c \ + ../../../../../src/ta_func/ta_MINUS_DI.c \ + ../../../../../src/ta_func/ta_MINUS_DM.c \ + ../../../../../src/ta_func/ta_MOM.c \ + ../../../../../src/ta_func/ta_MULT.c \ + ../../../../../src/ta_func/ta_NATR.c \ + ../../../../../src/ta_func/ta_OBV.c \ + ../../../../../src/ta_func/ta_PLUS_DI.c \ + ../../../../../src/ta_func/ta_PLUS_DM.c \ + ../../../../../src/ta_func/ta_PPO.c \ + ../../../../../src/ta_func/ta_ROC.c \ + ../../../../../src/ta_func/ta_ROCP.c \ + ../../../../../src/ta_func/ta_ROCR.c \ + ../../../../../src/ta_func/ta_ROCR100.c \ + ../../../../../src/ta_func/ta_RSI.c \ + ../../../../../src/ta_func/ta_SAR.c \ + ../../../../../src/ta_func/ta_SAREXT.c \ + ../../../../../src/ta_func/ta_SIN.c \ + ../../../../../src/ta_func/ta_SINH.c \ + ../../../../../src/ta_func/ta_SMA.c \ + ../../../../../src/ta_func/ta_SQRT.c \ + ../../../../../src/ta_func/ta_STDDEV.c \ + ../../../../../src/ta_func/ta_STOCH.c \ + ../../../../../src/ta_func/ta_STOCHF.c \ + ../../../../../src/ta_func/ta_STOCHRSI.c \ + ../../../../../src/ta_func/ta_SUB.c \ + ../../../../../src/ta_func/ta_SUM.c \ + ../../../../../src/ta_func/ta_T3.c \ + ../../../../../src/ta_func/ta_TAN.c \ + ../../../../../src/ta_func/ta_TANH.c \ + ../../../../../src/ta_func/ta_TEMA.c \ + ../../../../../src/ta_func/ta_TRANGE.c \ + ../../../../../src/ta_func/ta_TRIMA.c \ + ../../../../../src/ta_func/ta_TRIX.c \ + ../../../../../src/ta_func/ta_TSF.c \ + ../../../../../src/ta_func/ta_TYPPRICE.c \ + ../../../../../src/ta_func/ta_ULTOSC.c \ + ../../../../../src/ta_func/ta_VAR.c \ + ../../../../../src/ta_func/ta_WCLPRICE.c \ + ../../../../../src/ta_func/ta_WILLR.c \ + ../../../../../src/ta_func/ta_WMA.c +OBJECTS = ../../../../../temp/cmp/ta_global.o \ + ../../../../../temp/cmp/ta_retcode.o \ + ../../../../../temp/cmp/ta_version.o \ + ../../../../../temp/cmp/ta_abstract.o \ + ../../../../../temp/cmp/ta_def_ui.o \ + ../../../../../temp/cmp/ta_func_api.o \ + ../../../../../temp/cmp/ta_group_idx.o \ + ../../../../../temp/cmp/ta_frame.o \ + ../../../../../temp/cmp/table_a.o \ + ../../../../../temp/cmp/table_b.o \ + ../../../../../temp/cmp/table_c.o \ + ../../../../../temp/cmp/table_d.o \ + ../../../../../temp/cmp/table_e.o \ + ../../../../../temp/cmp/table_f.o \ + ../../../../../temp/cmp/table_g.o \ + ../../../../../temp/cmp/table_h.o \ + ../../../../../temp/cmp/table_i.o \ + ../../../../../temp/cmp/table_j.o \ + ../../../../../temp/cmp/table_k.o \ + ../../../../../temp/cmp/table_l.o \ + ../../../../../temp/cmp/table_m.o \ + ../../../../../temp/cmp/table_n.o \ + ../../../../../temp/cmp/table_o.o \ + ../../../../../temp/cmp/table_p.o \ + ../../../../../temp/cmp/table_q.o \ + ../../../../../temp/cmp/table_r.o \ + ../../../../../temp/cmp/table_s.o \ + ../../../../../temp/cmp/table_t.o \ + ../../../../../temp/cmp/table_u.o \ + ../../../../../temp/cmp/table_v.o \ + ../../../../../temp/cmp/table_w.o \ + ../../../../../temp/cmp/table_x.o \ + ../../../../../temp/cmp/table_y.o \ + ../../../../../temp/cmp/table_z.o \ + ../../../../../temp/cmp/ta_utility.o \ + ../../../../../temp/cmp/ta_ACOS.o \ + ../../../../../temp/cmp/ta_AD.o \ + ../../../../../temp/cmp/ta_ADD.o \ + ../../../../../temp/cmp/ta_ADOSC.o \ + ../../../../../temp/cmp/ta_ADX.o \ + ../../../../../temp/cmp/ta_ADXR.o \ + ../../../../../temp/cmp/ta_APO.o \ + ../../../../../temp/cmp/ta_AROON.o \ + ../../../../../temp/cmp/ta_AROONOSC.o \ + ../../../../../temp/cmp/ta_ASIN.o \ + ../../../../../temp/cmp/ta_ATAN.o \ + ../../../../../temp/cmp/ta_ATR.o \ + ../../../../../temp/cmp/ta_AVGPRICE.o \ + ../../../../../temp/cmp/ta_BBANDS.o \ + ../../../../../temp/cmp/ta_BETA.o \ + ../../../../../temp/cmp/ta_BOP.o \ + ../../../../../temp/cmp/ta_CCI.o \ + ../../../../../temp/cmp/ta_CDL2CROWS.o \ + ../../../../../temp/cmp/ta_CDL3BLACKCROWS.o \ + ../../../../../temp/cmp/ta_CDL3INSIDE.o \ + ../../../../../temp/cmp/ta_CDL3LINESTRIKE.o \ + ../../../../../temp/cmp/ta_CDL3OUTSIDE.o \ + ../../../../../temp/cmp/ta_CDL3STARSINSOUTH.o \ + ../../../../../temp/cmp/ta_CDL3WHITESOLDIERS.o \ + ../../../../../temp/cmp/ta_CDLABANDONEDBABY.o \ + ../../../../../temp/cmp/ta_CDLADVANCEBLOCK.o \ + ../../../../../temp/cmp/ta_CDLBELTHOLD.o \ + ../../../../../temp/cmp/ta_CDLBREAKAWAY.o \ + ../../../../../temp/cmp/ta_CDLCLOSINGMARUBOZU.o \ + ../../../../../temp/cmp/ta_CDLCONCEALBABYSWALL.o \ + ../../../../../temp/cmp/ta_CDLCOUNTERATTACK.o \ + ../../../../../temp/cmp/ta_CDLDARKCLOUDCOVER.o \ + ../../../../../temp/cmp/ta_CDLDOJI.o \ + ../../../../../temp/cmp/ta_CDLDOJISTAR.o \ + ../../../../../temp/cmp/ta_CDLDRAGONFLYDOJI.o \ + ../../../../../temp/cmp/ta_CDLENGULFING.o \ + ../../../../../temp/cmp/ta_CDLEVENINGDOJISTAR.o \ + ../../../../../temp/cmp/ta_CDLEVENINGSTAR.o \ + ../../../../../temp/cmp/ta_CDLGAPSIDESIDEWHITE.o \ + ../../../../../temp/cmp/ta_CDLGRAVESTONEDOJI.o \ + ../../../../../temp/cmp/ta_CDLHAMMER.o \ + ../../../../../temp/cmp/ta_CDLHANGINGMAN.o \ + ../../../../../temp/cmp/ta_CDLHARAMI.o \ + ../../../../../temp/cmp/ta_CDLHARAMICROSS.o \ + ../../../../../temp/cmp/ta_CDLHIGHWAVE.o \ + ../../../../../temp/cmp/ta_CDLHIKKAKE.o \ + ../../../../../temp/cmp/ta_CDLHIKKAKEMOD.o \ + ../../../../../temp/cmp/ta_CDLHOMINGPIGEON.o \ + ../../../../../temp/cmp/ta_CDLIDENTICAL3CROWS.o \ + ../../../../../temp/cmp/ta_CDLINNECK.o \ + ../../../../../temp/cmp/ta_CDLINVERTEDHAMMER.o \ + ../../../../../temp/cmp/ta_CDLKICKING.o \ + ../../../../../temp/cmp/ta_CDLKICKINGBYLENGTH.o \ + ../../../../../temp/cmp/ta_CDLLADDERBOTTOM.o \ + ../../../../../temp/cmp/ta_CDLLONGLEGGEDDOJI.o \ + ../../../../../temp/cmp/ta_CDLLONGLINE.o \ + ../../../../../temp/cmp/ta_CDLMARUBOZU.o \ + ../../../../../temp/cmp/ta_CDLMATCHINGLOW.o \ + ../../../../../temp/cmp/ta_CDLMATHOLD.o \ + ../../../../../temp/cmp/ta_CDLMORNINGDOJISTAR.o \ + ../../../../../temp/cmp/ta_CDLMORNINGSTAR.o \ + ../../../../../temp/cmp/ta_CDLONNECK.o \ + ../../../../../temp/cmp/ta_CDLPIERCING.o \ + ../../../../../temp/cmp/ta_CDLRICKSHAWMAN.o \ + ../../../../../temp/cmp/ta_CDLRISEFALL3METHODS.o \ + ../../../../../temp/cmp/ta_CDLSEPARATINGLINES.o \ + ../../../../../temp/cmp/ta_CDLSHOOTINGSTAR.o \ + ../../../../../temp/cmp/ta_CDLSHORTLINE.o \ + ../../../../../temp/cmp/ta_CDLSPINNINGTOP.o \ + ../../../../../temp/cmp/ta_CDLSTALLEDPATTERN.o \ + ../../../../../temp/cmp/ta_CDLSTICKSANDWICH.o \ + ../../../../../temp/cmp/ta_CDLTAKURI.o \ + ../../../../../temp/cmp/ta_CDLTASUKIGAP.o \ + ../../../../../temp/cmp/ta_CDLTHRUSTING.o \ + ../../../../../temp/cmp/ta_CDLTRISTAR.o \ + ../../../../../temp/cmp/ta_CDLUNIQUE3RIVER.o \ + ../../../../../temp/cmp/ta_CDLUPSIDEGAP2CROWS.o \ + ../../../../../temp/cmp/ta_CDLXSIDEGAP3METHODS.o \ + ../../../../../temp/cmp/ta_CEIL.o \ + ../../../../../temp/cmp/ta_CMO.o \ + ../../../../../temp/cmp/ta_CORREL.o \ + ../../../../../temp/cmp/ta_COS.o \ + ../../../../../temp/cmp/ta_COSH.o \ + ../../../../../temp/cmp/ta_DEMA.o \ + ../../../../../temp/cmp/ta_DIV.o \ + ../../../../../temp/cmp/ta_DX.o \ + ../../../../../temp/cmp/ta_EMA.o \ + ../../../../../temp/cmp/ta_EXP.o \ + ../../../../../temp/cmp/ta_FLOOR.o \ + ../../../../../temp/cmp/ta_HT_DCPERIOD.o \ + ../../../../../temp/cmp/ta_HT_DCPHASE.o \ + ../../../../../temp/cmp/ta_HT_PHASOR.o \ + ../../../../../temp/cmp/ta_HT_SINE.o \ + ../../../../../temp/cmp/ta_HT_TRENDLINE.o \ + ../../../../../temp/cmp/ta_HT_TRENDMODE.o \ + ../../../../../temp/cmp/ta_KAMA.o \ + ../../../../../temp/cmp/ta_LINEARREG.o \ + ../../../../../temp/cmp/ta_LINEARREG_ANGLE.o \ + ../../../../../temp/cmp/ta_LINEARREG_INTERCEPT.o \ + ../../../../../temp/cmp/ta_LINEARREG_SLOPE.o \ + ../../../../../temp/cmp/ta_LN.o \ + ../../../../../temp/cmp/ta_LOG10.o \ + ../../../../../temp/cmp/ta_MA.o \ + ../../../../../temp/cmp/ta_MACD.o \ + ../../../../../temp/cmp/ta_MACDEXT.o \ + ../../../../../temp/cmp/ta_MACDFIX.o \ + ../../../../../temp/cmp/ta_MAMA.o \ + ../../../../../temp/cmp/ta_MAVP.o \ + ../../../../../temp/cmp/ta_MAX.o \ + ../../../../../temp/cmp/ta_MAXINDEX.o \ + ../../../../../temp/cmp/ta_MEDPRICE.o \ + ../../../../../temp/cmp/ta_MFI.o \ + ../../../../../temp/cmp/ta_MIDPOINT.o \ + ../../../../../temp/cmp/ta_MIDPRICE.o \ + ../../../../../temp/cmp/ta_MIN.o \ + ../../../../../temp/cmp/ta_MININDEX.o \ + ../../../../../temp/cmp/ta_MINMAX.o \ + ../../../../../temp/cmp/ta_MINMAXINDEX.o \ + ../../../../../temp/cmp/ta_MINUS_DI.o \ + ../../../../../temp/cmp/ta_MINUS_DM.o \ + ../../../../../temp/cmp/ta_MOM.o \ + ../../../../../temp/cmp/ta_MULT.o \ + ../../../../../temp/cmp/ta_NATR.o \ + ../../../../../temp/cmp/ta_OBV.o \ + ../../../../../temp/cmp/ta_PLUS_DI.o \ + ../../../../../temp/cmp/ta_PLUS_DM.o \ + ../../../../../temp/cmp/ta_PPO.o \ + ../../../../../temp/cmp/ta_ROC.o \ + ../../../../../temp/cmp/ta_ROCP.o \ + ../../../../../temp/cmp/ta_ROCR.o \ + ../../../../../temp/cmp/ta_ROCR100.o \ + ../../../../../temp/cmp/ta_RSI.o \ + ../../../../../temp/cmp/ta_SAR.o \ + ../../../../../temp/cmp/ta_SAREXT.o \ + ../../../../../temp/cmp/ta_SIN.o \ + ../../../../../temp/cmp/ta_SINH.o \ + ../../../../../temp/cmp/ta_SMA.o \ + ../../../../../temp/cmp/ta_SQRT.o \ + ../../../../../temp/cmp/ta_STDDEV.o \ + ../../../../../temp/cmp/ta_STOCH.o \ + ../../../../../temp/cmp/ta_STOCHF.o \ + ../../../../../temp/cmp/ta_STOCHRSI.o \ + ../../../../../temp/cmp/ta_SUB.o \ + ../../../../../temp/cmp/ta_SUM.o \ + ../../../../../temp/cmp/ta_T3.o \ + ../../../../../temp/cmp/ta_TAN.o \ + ../../../../../temp/cmp/ta_TANH.o \ + ../../../../../temp/cmp/ta_TEMA.o \ + ../../../../../temp/cmp/ta_TRANGE.o \ + ../../../../../temp/cmp/ta_TRIMA.o \ + ../../../../../temp/cmp/ta_TRIX.o \ + ../../../../../temp/cmp/ta_TSF.o \ + ../../../../../temp/cmp/ta_TYPPRICE.o \ + ../../../../../temp/cmp/ta_ULTOSC.o \ + ../../../../../temp/cmp/ta_VAR.o \ + ../../../../../temp/cmp/ta_WCLPRICE.o \ + ../../../../../temp/cmp/ta_WILLR.o \ + ../../../../../temp/cmp/ta_WMA.o +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ../../../../../lib/libta_libc_cmp.a +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .C .c + +.cpp.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cxx.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cc.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.C.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.c.o: + $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $< + +####### Build rules + + +all: $(TARGET) + +staticlib: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + -rm -f $(TARGET) + $(AR) $(TARGET) $(OBJECTS) $(OBJMOC) + +moc: $(SRCMOC) + +clean: + -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) + -rm -f *~ core + +####### Sub-libraries + + +###### Combined headers + + +####### Compile + +../../../../../temp/cmp/ta_global.o: ../../../../../src/ta_common/ta_global.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_global.o ../../../../../src/ta_common/ta_global.c + +../../../../../temp/cmp/ta_retcode.o: ../../../../../src/ta_common/ta_retcode.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_retcode.o ../../../../../src/ta_common/ta_retcode.c + +../../../../../temp/cmp/ta_version.o: ../../../../../src/ta_common/ta_version.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_version.o ../../../../../src/ta_common/ta_version.c + +../../../../../temp/cmp/ta_abstract.o: ../../../../../src/ta_abstract/ta_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_abstract.o ../../../../../src/ta_abstract/ta_abstract.c + +../../../../../temp/cmp/ta_def_ui.o: ../../../../../src/ta_abstract/ta_def_ui.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_def_ui.o ../../../../../src/ta_abstract/ta_def_ui.c + +../../../../../temp/cmp/ta_func_api.o: ../../../../../src/ta_abstract/ta_func_api.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_func_api.o ../../../../../src/ta_abstract/ta_func_api.c + +../../../../../temp/cmp/ta_group_idx.o: ../../../../../src/ta_abstract/ta_group_idx.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_group_idx.o ../../../../../src/ta_abstract/ta_group_idx.c + +../../../../../temp/cmp/ta_frame.o: ../../../../../src/ta_abstract/frames/ta_frame.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_frame.o ../../../../../src/ta_abstract/frames/ta_frame.c + +../../../../../temp/cmp/table_a.o: ../../../../../src/ta_abstract/tables/table_a.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_a.o ../../../../../src/ta_abstract/tables/table_a.c + +../../../../../temp/cmp/table_b.o: ../../../../../src/ta_abstract/tables/table_b.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_b.o ../../../../../src/ta_abstract/tables/table_b.c + +../../../../../temp/cmp/table_c.o: ../../../../../src/ta_abstract/tables/table_c.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_c.o ../../../../../src/ta_abstract/tables/table_c.c + +../../../../../temp/cmp/table_d.o: ../../../../../src/ta_abstract/tables/table_d.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_d.o ../../../../../src/ta_abstract/tables/table_d.c + +../../../../../temp/cmp/table_e.o: ../../../../../src/ta_abstract/tables/table_e.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_e.o ../../../../../src/ta_abstract/tables/table_e.c + +../../../../../temp/cmp/table_f.o: ../../../../../src/ta_abstract/tables/table_f.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_f.o ../../../../../src/ta_abstract/tables/table_f.c + +../../../../../temp/cmp/table_g.o: ../../../../../src/ta_abstract/tables/table_g.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_g.o ../../../../../src/ta_abstract/tables/table_g.c + +../../../../../temp/cmp/table_h.o: ../../../../../src/ta_abstract/tables/table_h.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_h.o ../../../../../src/ta_abstract/tables/table_h.c + +../../../../../temp/cmp/table_i.o: ../../../../../src/ta_abstract/tables/table_i.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_i.o ../../../../../src/ta_abstract/tables/table_i.c + +../../../../../temp/cmp/table_j.o: ../../../../../src/ta_abstract/tables/table_j.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_j.o ../../../../../src/ta_abstract/tables/table_j.c + +../../../../../temp/cmp/table_k.o: ../../../../../src/ta_abstract/tables/table_k.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_k.o ../../../../../src/ta_abstract/tables/table_k.c + +../../../../../temp/cmp/table_l.o: ../../../../../src/ta_abstract/tables/table_l.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_l.o ../../../../../src/ta_abstract/tables/table_l.c + +../../../../../temp/cmp/table_m.o: ../../../../../src/ta_abstract/tables/table_m.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_m.o ../../../../../src/ta_abstract/tables/table_m.c + +../../../../../temp/cmp/table_n.o: ../../../../../src/ta_abstract/tables/table_n.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_n.o ../../../../../src/ta_abstract/tables/table_n.c + +../../../../../temp/cmp/table_o.o: ../../../../../src/ta_abstract/tables/table_o.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_o.o ../../../../../src/ta_abstract/tables/table_o.c + +../../../../../temp/cmp/table_p.o: ../../../../../src/ta_abstract/tables/table_p.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_p.o ../../../../../src/ta_abstract/tables/table_p.c + +../../../../../temp/cmp/table_q.o: ../../../../../src/ta_abstract/tables/table_q.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_q.o ../../../../../src/ta_abstract/tables/table_q.c + +../../../../../temp/cmp/table_r.o: ../../../../../src/ta_abstract/tables/table_r.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_r.o ../../../../../src/ta_abstract/tables/table_r.c + +../../../../../temp/cmp/table_s.o: ../../../../../src/ta_abstract/tables/table_s.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_s.o ../../../../../src/ta_abstract/tables/table_s.c + +../../../../../temp/cmp/table_t.o: ../../../../../src/ta_abstract/tables/table_t.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_t.o ../../../../../src/ta_abstract/tables/table_t.c + +../../../../../temp/cmp/table_u.o: ../../../../../src/ta_abstract/tables/table_u.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_u.o ../../../../../src/ta_abstract/tables/table_u.c + +../../../../../temp/cmp/table_v.o: ../../../../../src/ta_abstract/tables/table_v.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_v.o ../../../../../src/ta_abstract/tables/table_v.c + +../../../../../temp/cmp/table_w.o: ../../../../../src/ta_abstract/tables/table_w.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_w.o ../../../../../src/ta_abstract/tables/table_w.c + +../../../../../temp/cmp/table_x.o: ../../../../../src/ta_abstract/tables/table_x.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_x.o ../../../../../src/ta_abstract/tables/table_x.c + +../../../../../temp/cmp/table_y.o: ../../../../../src/ta_abstract/tables/table_y.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_y.o ../../../../../src/ta_abstract/tables/table_y.c + +../../../../../temp/cmp/table_z.o: ../../../../../src/ta_abstract/tables/table_z.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/table_z.o ../../../../../src/ta_abstract/tables/table_z.c + +../../../../../temp/cmp/ta_utility.o: ../../../../../src/ta_func/ta_utility.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_utility.o ../../../../../src/ta_func/ta_utility.c + +../../../../../temp/cmp/ta_ACOS.o: ../../../../../src/ta_func/ta_ACOS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_ACOS.o ../../../../../src/ta_func/ta_ACOS.c + +../../../../../temp/cmp/ta_AD.o: ../../../../../src/ta_func/ta_AD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_AD.o ../../../../../src/ta_func/ta_AD.c + +../../../../../temp/cmp/ta_ADD.o: ../../../../../src/ta_func/ta_ADD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_ADD.o ../../../../../src/ta_func/ta_ADD.c + +../../../../../temp/cmp/ta_ADOSC.o: ../../../../../src/ta_func/ta_ADOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_ADOSC.o ../../../../../src/ta_func/ta_ADOSC.c + +../../../../../temp/cmp/ta_ADX.o: ../../../../../src/ta_func/ta_ADX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_ADX.o ../../../../../src/ta_func/ta_ADX.c + +../../../../../temp/cmp/ta_ADXR.o: ../../../../../src/ta_func/ta_ADXR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_ADXR.o ../../../../../src/ta_func/ta_ADXR.c + +../../../../../temp/cmp/ta_APO.o: ../../../../../src/ta_func/ta_APO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_APO.o ../../../../../src/ta_func/ta_APO.c + +../../../../../temp/cmp/ta_AROON.o: ../../../../../src/ta_func/ta_AROON.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_AROON.o ../../../../../src/ta_func/ta_AROON.c + +../../../../../temp/cmp/ta_AROONOSC.o: ../../../../../src/ta_func/ta_AROONOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_AROONOSC.o ../../../../../src/ta_func/ta_AROONOSC.c + +../../../../../temp/cmp/ta_ASIN.o: ../../../../../src/ta_func/ta_ASIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_ASIN.o ../../../../../src/ta_func/ta_ASIN.c + +../../../../../temp/cmp/ta_ATAN.o: ../../../../../src/ta_func/ta_ATAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_ATAN.o ../../../../../src/ta_func/ta_ATAN.c + +../../../../../temp/cmp/ta_ATR.o: ../../../../../src/ta_func/ta_ATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_ATR.o ../../../../../src/ta_func/ta_ATR.c + +../../../../../temp/cmp/ta_AVGPRICE.o: ../../../../../src/ta_func/ta_AVGPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_AVGPRICE.o ../../../../../src/ta_func/ta_AVGPRICE.c + +../../../../../temp/cmp/ta_BBANDS.o: ../../../../../src/ta_func/ta_BBANDS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_BBANDS.o ../../../../../src/ta_func/ta_BBANDS.c + +../../../../../temp/cmp/ta_BETA.o: ../../../../../src/ta_func/ta_BETA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_BETA.o ../../../../../src/ta_func/ta_BETA.c + +../../../../../temp/cmp/ta_BOP.o: ../../../../../src/ta_func/ta_BOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_BOP.o ../../../../../src/ta_func/ta_BOP.c + +../../../../../temp/cmp/ta_CCI.o: ../../../../../src/ta_func/ta_CCI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CCI.o ../../../../../src/ta_func/ta_CCI.c + +../../../../../temp/cmp/ta_CDL2CROWS.o: ../../../../../src/ta_func/ta_CDL2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDL2CROWS.o ../../../../../src/ta_func/ta_CDL2CROWS.c + +../../../../../temp/cmp/ta_CDL3BLACKCROWS.o: ../../../../../src/ta_func/ta_CDL3BLACKCROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDL3BLACKCROWS.o ../../../../../src/ta_func/ta_CDL3BLACKCROWS.c + +../../../../../temp/cmp/ta_CDL3INSIDE.o: ../../../../../src/ta_func/ta_CDL3INSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDL3INSIDE.o ../../../../../src/ta_func/ta_CDL3INSIDE.c + +../../../../../temp/cmp/ta_CDL3LINESTRIKE.o: ../../../../../src/ta_func/ta_CDL3LINESTRIKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDL3LINESTRIKE.o ../../../../../src/ta_func/ta_CDL3LINESTRIKE.c + +../../../../../temp/cmp/ta_CDL3OUTSIDE.o: ../../../../../src/ta_func/ta_CDL3OUTSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDL3OUTSIDE.o ../../../../../src/ta_func/ta_CDL3OUTSIDE.c + +../../../../../temp/cmp/ta_CDL3STARSINSOUTH.o: ../../../../../src/ta_func/ta_CDL3STARSINSOUTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDL3STARSINSOUTH.o ../../../../../src/ta_func/ta_CDL3STARSINSOUTH.c + +../../../../../temp/cmp/ta_CDL3WHITESOLDIERS.o: ../../../../../src/ta_func/ta_CDL3WHITESOLDIERS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDL3WHITESOLDIERS.o ../../../../../src/ta_func/ta_CDL3WHITESOLDIERS.c + +../../../../../temp/cmp/ta_CDLABANDONEDBABY.o: ../../../../../src/ta_func/ta_CDLABANDONEDBABY.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLABANDONEDBABY.o ../../../../../src/ta_func/ta_CDLABANDONEDBABY.c + +../../../../../temp/cmp/ta_CDLADVANCEBLOCK.o: ../../../../../src/ta_func/ta_CDLADVANCEBLOCK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLADVANCEBLOCK.o ../../../../../src/ta_func/ta_CDLADVANCEBLOCK.c + +../../../../../temp/cmp/ta_CDLBELTHOLD.o: ../../../../../src/ta_func/ta_CDLBELTHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLBELTHOLD.o ../../../../../src/ta_func/ta_CDLBELTHOLD.c + +../../../../../temp/cmp/ta_CDLBREAKAWAY.o: ../../../../../src/ta_func/ta_CDLBREAKAWAY.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLBREAKAWAY.o ../../../../../src/ta_func/ta_CDLBREAKAWAY.c + +../../../../../temp/cmp/ta_CDLCLOSINGMARUBOZU.o: ../../../../../src/ta_func/ta_CDLCLOSINGMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLCLOSINGMARUBOZU.o ../../../../../src/ta_func/ta_CDLCLOSINGMARUBOZU.c + +../../../../../temp/cmp/ta_CDLCONCEALBABYSWALL.o: ../../../../../src/ta_func/ta_CDLCONCEALBABYSWALL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLCONCEALBABYSWALL.o ../../../../../src/ta_func/ta_CDLCONCEALBABYSWALL.c + +../../../../../temp/cmp/ta_CDLCOUNTERATTACK.o: ../../../../../src/ta_func/ta_CDLCOUNTERATTACK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLCOUNTERATTACK.o ../../../../../src/ta_func/ta_CDLCOUNTERATTACK.c + +../../../../../temp/cmp/ta_CDLDARKCLOUDCOVER.o: ../../../../../src/ta_func/ta_CDLDARKCLOUDCOVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLDARKCLOUDCOVER.o ../../../../../src/ta_func/ta_CDLDARKCLOUDCOVER.c + +../../../../../temp/cmp/ta_CDLDOJI.o: ../../../../../src/ta_func/ta_CDLDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLDOJI.o ../../../../../src/ta_func/ta_CDLDOJI.c + +../../../../../temp/cmp/ta_CDLDOJISTAR.o: ../../../../../src/ta_func/ta_CDLDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLDOJISTAR.o ../../../../../src/ta_func/ta_CDLDOJISTAR.c + +../../../../../temp/cmp/ta_CDLDRAGONFLYDOJI.o: ../../../../../src/ta_func/ta_CDLDRAGONFLYDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLDRAGONFLYDOJI.o ../../../../../src/ta_func/ta_CDLDRAGONFLYDOJI.c + +../../../../../temp/cmp/ta_CDLENGULFING.o: ../../../../../src/ta_func/ta_CDLENGULFING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLENGULFING.o ../../../../../src/ta_func/ta_CDLENGULFING.c + +../../../../../temp/cmp/ta_CDLEVENINGDOJISTAR.o: ../../../../../src/ta_func/ta_CDLEVENINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLEVENINGDOJISTAR.o ../../../../../src/ta_func/ta_CDLEVENINGDOJISTAR.c + +../../../../../temp/cmp/ta_CDLEVENINGSTAR.o: ../../../../../src/ta_func/ta_CDLEVENINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLEVENINGSTAR.o ../../../../../src/ta_func/ta_CDLEVENINGSTAR.c + +../../../../../temp/cmp/ta_CDLGAPSIDESIDEWHITE.o: ../../../../../src/ta_func/ta_CDLGAPSIDESIDEWHITE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLGAPSIDESIDEWHITE.o ../../../../../src/ta_func/ta_CDLGAPSIDESIDEWHITE.c + +../../../../../temp/cmp/ta_CDLGRAVESTONEDOJI.o: ../../../../../src/ta_func/ta_CDLGRAVESTONEDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLGRAVESTONEDOJI.o ../../../../../src/ta_func/ta_CDLGRAVESTONEDOJI.c + +../../../../../temp/cmp/ta_CDLHAMMER.o: ../../../../../src/ta_func/ta_CDLHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLHAMMER.o ../../../../../src/ta_func/ta_CDLHAMMER.c + +../../../../../temp/cmp/ta_CDLHANGINGMAN.o: ../../../../../src/ta_func/ta_CDLHANGINGMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLHANGINGMAN.o ../../../../../src/ta_func/ta_CDLHANGINGMAN.c + +../../../../../temp/cmp/ta_CDLHARAMI.o: ../../../../../src/ta_func/ta_CDLHARAMI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLHARAMI.o ../../../../../src/ta_func/ta_CDLHARAMI.c + +../../../../../temp/cmp/ta_CDLHARAMICROSS.o: ../../../../../src/ta_func/ta_CDLHARAMICROSS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLHARAMICROSS.o ../../../../../src/ta_func/ta_CDLHARAMICROSS.c + +../../../../../temp/cmp/ta_CDLHIGHWAVE.o: ../../../../../src/ta_func/ta_CDLHIGHWAVE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLHIGHWAVE.o ../../../../../src/ta_func/ta_CDLHIGHWAVE.c + +../../../../../temp/cmp/ta_CDLHIKKAKE.o: ../../../../../src/ta_func/ta_CDLHIKKAKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLHIKKAKE.o ../../../../../src/ta_func/ta_CDLHIKKAKE.c + +../../../../../temp/cmp/ta_CDLHIKKAKEMOD.o: ../../../../../src/ta_func/ta_CDLHIKKAKEMOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLHIKKAKEMOD.o ../../../../../src/ta_func/ta_CDLHIKKAKEMOD.c + +../../../../../temp/cmp/ta_CDLHOMINGPIGEON.o: ../../../../../src/ta_func/ta_CDLHOMINGPIGEON.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLHOMINGPIGEON.o ../../../../../src/ta_func/ta_CDLHOMINGPIGEON.c + +../../../../../temp/cmp/ta_CDLIDENTICAL3CROWS.o: ../../../../../src/ta_func/ta_CDLIDENTICAL3CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLIDENTICAL3CROWS.o ../../../../../src/ta_func/ta_CDLIDENTICAL3CROWS.c + +../../../../../temp/cmp/ta_CDLINNECK.o: ../../../../../src/ta_func/ta_CDLINNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLINNECK.o ../../../../../src/ta_func/ta_CDLINNECK.c + +../../../../../temp/cmp/ta_CDLINVERTEDHAMMER.o: ../../../../../src/ta_func/ta_CDLINVERTEDHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLINVERTEDHAMMER.o ../../../../../src/ta_func/ta_CDLINVERTEDHAMMER.c + +../../../../../temp/cmp/ta_CDLKICKING.o: ../../../../../src/ta_func/ta_CDLKICKING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLKICKING.o ../../../../../src/ta_func/ta_CDLKICKING.c + +../../../../../temp/cmp/ta_CDLKICKINGBYLENGTH.o: ../../../../../src/ta_func/ta_CDLKICKINGBYLENGTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLKICKINGBYLENGTH.o ../../../../../src/ta_func/ta_CDLKICKINGBYLENGTH.c + +../../../../../temp/cmp/ta_CDLLADDERBOTTOM.o: ../../../../../src/ta_func/ta_CDLLADDERBOTTOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLLADDERBOTTOM.o ../../../../../src/ta_func/ta_CDLLADDERBOTTOM.c + +../../../../../temp/cmp/ta_CDLLONGLEGGEDDOJI.o: ../../../../../src/ta_func/ta_CDLLONGLEGGEDDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLLONGLEGGEDDOJI.o ../../../../../src/ta_func/ta_CDLLONGLEGGEDDOJI.c + +../../../../../temp/cmp/ta_CDLLONGLINE.o: ../../../../../src/ta_func/ta_CDLLONGLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLLONGLINE.o ../../../../../src/ta_func/ta_CDLLONGLINE.c + +../../../../../temp/cmp/ta_CDLMARUBOZU.o: ../../../../../src/ta_func/ta_CDLMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLMARUBOZU.o ../../../../../src/ta_func/ta_CDLMARUBOZU.c + +../../../../../temp/cmp/ta_CDLMATCHINGLOW.o: ../../../../../src/ta_func/ta_CDLMATCHINGLOW.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLMATCHINGLOW.o ../../../../../src/ta_func/ta_CDLMATCHINGLOW.c + +../../../../../temp/cmp/ta_CDLMATHOLD.o: ../../../../../src/ta_func/ta_CDLMATHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLMATHOLD.o ../../../../../src/ta_func/ta_CDLMATHOLD.c + +../../../../../temp/cmp/ta_CDLMORNINGDOJISTAR.o: ../../../../../src/ta_func/ta_CDLMORNINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLMORNINGDOJISTAR.o ../../../../../src/ta_func/ta_CDLMORNINGDOJISTAR.c + +../../../../../temp/cmp/ta_CDLMORNINGSTAR.o: ../../../../../src/ta_func/ta_CDLMORNINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLMORNINGSTAR.o ../../../../../src/ta_func/ta_CDLMORNINGSTAR.c + +../../../../../temp/cmp/ta_CDLONNECK.o: ../../../../../src/ta_func/ta_CDLONNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLONNECK.o ../../../../../src/ta_func/ta_CDLONNECK.c + +../../../../../temp/cmp/ta_CDLPIERCING.o: ../../../../../src/ta_func/ta_CDLPIERCING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLPIERCING.o ../../../../../src/ta_func/ta_CDLPIERCING.c + +../../../../../temp/cmp/ta_CDLRICKSHAWMAN.o: ../../../../../src/ta_func/ta_CDLRICKSHAWMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLRICKSHAWMAN.o ../../../../../src/ta_func/ta_CDLRICKSHAWMAN.c + +../../../../../temp/cmp/ta_CDLRISEFALL3METHODS.o: ../../../../../src/ta_func/ta_CDLRISEFALL3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLRISEFALL3METHODS.o ../../../../../src/ta_func/ta_CDLRISEFALL3METHODS.c + +../../../../../temp/cmp/ta_CDLSEPARATINGLINES.o: ../../../../../src/ta_func/ta_CDLSEPARATINGLINES.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLSEPARATINGLINES.o ../../../../../src/ta_func/ta_CDLSEPARATINGLINES.c + +../../../../../temp/cmp/ta_CDLSHOOTINGSTAR.o: ../../../../../src/ta_func/ta_CDLSHOOTINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLSHOOTINGSTAR.o ../../../../../src/ta_func/ta_CDLSHOOTINGSTAR.c + +../../../../../temp/cmp/ta_CDLSHORTLINE.o: ../../../../../src/ta_func/ta_CDLSHORTLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLSHORTLINE.o ../../../../../src/ta_func/ta_CDLSHORTLINE.c + +../../../../../temp/cmp/ta_CDLSPINNINGTOP.o: ../../../../../src/ta_func/ta_CDLSPINNINGTOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLSPINNINGTOP.o ../../../../../src/ta_func/ta_CDLSPINNINGTOP.c + +../../../../../temp/cmp/ta_CDLSTALLEDPATTERN.o: ../../../../../src/ta_func/ta_CDLSTALLEDPATTERN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLSTALLEDPATTERN.o ../../../../../src/ta_func/ta_CDLSTALLEDPATTERN.c + +../../../../../temp/cmp/ta_CDLSTICKSANDWICH.o: ../../../../../src/ta_func/ta_CDLSTICKSANDWICH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLSTICKSANDWICH.o ../../../../../src/ta_func/ta_CDLSTICKSANDWICH.c + +../../../../../temp/cmp/ta_CDLTAKURI.o: ../../../../../src/ta_func/ta_CDLTAKURI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLTAKURI.o ../../../../../src/ta_func/ta_CDLTAKURI.c + +../../../../../temp/cmp/ta_CDLTASUKIGAP.o: ../../../../../src/ta_func/ta_CDLTASUKIGAP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLTASUKIGAP.o ../../../../../src/ta_func/ta_CDLTASUKIGAP.c + +../../../../../temp/cmp/ta_CDLTHRUSTING.o: ../../../../../src/ta_func/ta_CDLTHRUSTING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLTHRUSTING.o ../../../../../src/ta_func/ta_CDLTHRUSTING.c + +../../../../../temp/cmp/ta_CDLTRISTAR.o: ../../../../../src/ta_func/ta_CDLTRISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLTRISTAR.o ../../../../../src/ta_func/ta_CDLTRISTAR.c + +../../../../../temp/cmp/ta_CDLUNIQUE3RIVER.o: ../../../../../src/ta_func/ta_CDLUNIQUE3RIVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLUNIQUE3RIVER.o ../../../../../src/ta_func/ta_CDLUNIQUE3RIVER.c + +../../../../../temp/cmp/ta_CDLUPSIDEGAP2CROWS.o: ../../../../../src/ta_func/ta_CDLUPSIDEGAP2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLUPSIDEGAP2CROWS.o ../../../../../src/ta_func/ta_CDLUPSIDEGAP2CROWS.c + +../../../../../temp/cmp/ta_CDLXSIDEGAP3METHODS.o: ../../../../../src/ta_func/ta_CDLXSIDEGAP3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CDLXSIDEGAP3METHODS.o ../../../../../src/ta_func/ta_CDLXSIDEGAP3METHODS.c + +../../../../../temp/cmp/ta_CEIL.o: ../../../../../src/ta_func/ta_CEIL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CEIL.o ../../../../../src/ta_func/ta_CEIL.c + +../../../../../temp/cmp/ta_CMO.o: ../../../../../src/ta_func/ta_CMO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CMO.o ../../../../../src/ta_func/ta_CMO.c + +../../../../../temp/cmp/ta_CORREL.o: ../../../../../src/ta_func/ta_CORREL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_CORREL.o ../../../../../src/ta_func/ta_CORREL.c + +../../../../../temp/cmp/ta_COS.o: ../../../../../src/ta_func/ta_COS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_COS.o ../../../../../src/ta_func/ta_COS.c + +../../../../../temp/cmp/ta_COSH.o: ../../../../../src/ta_func/ta_COSH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_COSH.o ../../../../../src/ta_func/ta_COSH.c + +../../../../../temp/cmp/ta_DEMA.o: ../../../../../src/ta_func/ta_DEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_DEMA.o ../../../../../src/ta_func/ta_DEMA.c + +../../../../../temp/cmp/ta_DIV.o: ../../../../../src/ta_func/ta_DIV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_DIV.o ../../../../../src/ta_func/ta_DIV.c + +../../../../../temp/cmp/ta_DX.o: ../../../../../src/ta_func/ta_DX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_DX.o ../../../../../src/ta_func/ta_DX.c + +../../../../../temp/cmp/ta_EMA.o: ../../../../../src/ta_func/ta_EMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_EMA.o ../../../../../src/ta_func/ta_EMA.c + +../../../../../temp/cmp/ta_EXP.o: ../../../../../src/ta_func/ta_EXP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_EXP.o ../../../../../src/ta_func/ta_EXP.c + +../../../../../temp/cmp/ta_FLOOR.o: ../../../../../src/ta_func/ta_FLOOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_FLOOR.o ../../../../../src/ta_func/ta_FLOOR.c + +../../../../../temp/cmp/ta_HT_DCPERIOD.o: ../../../../../src/ta_func/ta_HT_DCPERIOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_HT_DCPERIOD.o ../../../../../src/ta_func/ta_HT_DCPERIOD.c + +../../../../../temp/cmp/ta_HT_DCPHASE.o: ../../../../../src/ta_func/ta_HT_DCPHASE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_HT_DCPHASE.o ../../../../../src/ta_func/ta_HT_DCPHASE.c + +../../../../../temp/cmp/ta_HT_PHASOR.o: ../../../../../src/ta_func/ta_HT_PHASOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_HT_PHASOR.o ../../../../../src/ta_func/ta_HT_PHASOR.c + +../../../../../temp/cmp/ta_HT_SINE.o: ../../../../../src/ta_func/ta_HT_SINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_HT_SINE.o ../../../../../src/ta_func/ta_HT_SINE.c + +../../../../../temp/cmp/ta_HT_TRENDLINE.o: ../../../../../src/ta_func/ta_HT_TRENDLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_HT_TRENDLINE.o ../../../../../src/ta_func/ta_HT_TRENDLINE.c + +../../../../../temp/cmp/ta_HT_TRENDMODE.o: ../../../../../src/ta_func/ta_HT_TRENDMODE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_HT_TRENDMODE.o ../../../../../src/ta_func/ta_HT_TRENDMODE.c + +../../../../../temp/cmp/ta_KAMA.o: ../../../../../src/ta_func/ta_KAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_KAMA.o ../../../../../src/ta_func/ta_KAMA.c + +../../../../../temp/cmp/ta_LINEARREG.o: ../../../../../src/ta_func/ta_LINEARREG.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_LINEARREG.o ../../../../../src/ta_func/ta_LINEARREG.c + +../../../../../temp/cmp/ta_LINEARREG_ANGLE.o: ../../../../../src/ta_func/ta_LINEARREG_ANGLE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_LINEARREG_ANGLE.o ../../../../../src/ta_func/ta_LINEARREG_ANGLE.c + +../../../../../temp/cmp/ta_LINEARREG_INTERCEPT.o: ../../../../../src/ta_func/ta_LINEARREG_INTERCEPT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_LINEARREG_INTERCEPT.o ../../../../../src/ta_func/ta_LINEARREG_INTERCEPT.c + +../../../../../temp/cmp/ta_LINEARREG_SLOPE.o: ../../../../../src/ta_func/ta_LINEARREG_SLOPE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_LINEARREG_SLOPE.o ../../../../../src/ta_func/ta_LINEARREG_SLOPE.c + +../../../../../temp/cmp/ta_LN.o: ../../../../../src/ta_func/ta_LN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_LN.o ../../../../../src/ta_func/ta_LN.c + +../../../../../temp/cmp/ta_LOG10.o: ../../../../../src/ta_func/ta_LOG10.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_LOG10.o ../../../../../src/ta_func/ta_LOG10.c + +../../../../../temp/cmp/ta_MA.o: ../../../../../src/ta_func/ta_MA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_MA.o ../../../../../src/ta_func/ta_MA.c + +../../../../../temp/cmp/ta_MACD.o: ../../../../../src/ta_func/ta_MACD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_MACD.o ../../../../../src/ta_func/ta_MACD.c + +../../../../../temp/cmp/ta_MACDEXT.o: ../../../../../src/ta_func/ta_MACDEXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_MACDEXT.o ../../../../../src/ta_func/ta_MACDEXT.c + +../../../../../temp/cmp/ta_MACDFIX.o: ../../../../../src/ta_func/ta_MACDFIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_MACDFIX.o ../../../../../src/ta_func/ta_MACDFIX.c + +../../../../../temp/cmp/ta_MAMA.o: ../../../../../src/ta_func/ta_MAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_MAMA.o ../../../../../src/ta_func/ta_MAMA.c + +../../../../../temp/cmp/ta_MAVP.o: ../../../../../src/ta_func/ta_MAVP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_MAVP.o ../../../../../src/ta_func/ta_MAVP.c + +../../../../../temp/cmp/ta_MAX.o: ../../../../../src/ta_func/ta_MAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_MAX.o ../../../../../src/ta_func/ta_MAX.c + +../../../../../temp/cmp/ta_MAXINDEX.o: ../../../../../src/ta_func/ta_MAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_MAXINDEX.o ../../../../../src/ta_func/ta_MAXINDEX.c + +../../../../../temp/cmp/ta_MEDPRICE.o: ../../../../../src/ta_func/ta_MEDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_MEDPRICE.o ../../../../../src/ta_func/ta_MEDPRICE.c + +../../../../../temp/cmp/ta_MFI.o: ../../../../../src/ta_func/ta_MFI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_MFI.o ../../../../../src/ta_func/ta_MFI.c + +../../../../../temp/cmp/ta_MIDPOINT.o: ../../../../../src/ta_func/ta_MIDPOINT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_MIDPOINT.o ../../../../../src/ta_func/ta_MIDPOINT.c + +../../../../../temp/cmp/ta_MIDPRICE.o: ../../../../../src/ta_func/ta_MIDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_MIDPRICE.o ../../../../../src/ta_func/ta_MIDPRICE.c + +../../../../../temp/cmp/ta_MIN.o: ../../../../../src/ta_func/ta_MIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_MIN.o ../../../../../src/ta_func/ta_MIN.c + +../../../../../temp/cmp/ta_MININDEX.o: ../../../../../src/ta_func/ta_MININDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_MININDEX.o ../../../../../src/ta_func/ta_MININDEX.c + +../../../../../temp/cmp/ta_MINMAX.o: ../../../../../src/ta_func/ta_MINMAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_MINMAX.o ../../../../../src/ta_func/ta_MINMAX.c + +../../../../../temp/cmp/ta_MINMAXINDEX.o: ../../../../../src/ta_func/ta_MINMAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_MINMAXINDEX.o ../../../../../src/ta_func/ta_MINMAXINDEX.c + +../../../../../temp/cmp/ta_MINUS_DI.o: ../../../../../src/ta_func/ta_MINUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_MINUS_DI.o ../../../../../src/ta_func/ta_MINUS_DI.c + +../../../../../temp/cmp/ta_MINUS_DM.o: ../../../../../src/ta_func/ta_MINUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_MINUS_DM.o ../../../../../src/ta_func/ta_MINUS_DM.c + +../../../../../temp/cmp/ta_MOM.o: ../../../../../src/ta_func/ta_MOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_MOM.o ../../../../../src/ta_func/ta_MOM.c + +../../../../../temp/cmp/ta_MULT.o: ../../../../../src/ta_func/ta_MULT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_MULT.o ../../../../../src/ta_func/ta_MULT.c + +../../../../../temp/cmp/ta_NATR.o: ../../../../../src/ta_func/ta_NATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_NATR.o ../../../../../src/ta_func/ta_NATR.c + +../../../../../temp/cmp/ta_OBV.o: ../../../../../src/ta_func/ta_OBV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_OBV.o ../../../../../src/ta_func/ta_OBV.c + +../../../../../temp/cmp/ta_PLUS_DI.o: ../../../../../src/ta_func/ta_PLUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_PLUS_DI.o ../../../../../src/ta_func/ta_PLUS_DI.c + +../../../../../temp/cmp/ta_PLUS_DM.o: ../../../../../src/ta_func/ta_PLUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_PLUS_DM.o ../../../../../src/ta_func/ta_PLUS_DM.c + +../../../../../temp/cmp/ta_PPO.o: ../../../../../src/ta_func/ta_PPO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_PPO.o ../../../../../src/ta_func/ta_PPO.c + +../../../../../temp/cmp/ta_ROC.o: ../../../../../src/ta_func/ta_ROC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_ROC.o ../../../../../src/ta_func/ta_ROC.c + +../../../../../temp/cmp/ta_ROCP.o: ../../../../../src/ta_func/ta_ROCP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_ROCP.o ../../../../../src/ta_func/ta_ROCP.c + +../../../../../temp/cmp/ta_ROCR.o: ../../../../../src/ta_func/ta_ROCR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_ROCR.o ../../../../../src/ta_func/ta_ROCR.c + +../../../../../temp/cmp/ta_ROCR100.o: ../../../../../src/ta_func/ta_ROCR100.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_ROCR100.o ../../../../../src/ta_func/ta_ROCR100.c + +../../../../../temp/cmp/ta_RSI.o: ../../../../../src/ta_func/ta_RSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_RSI.o ../../../../../src/ta_func/ta_RSI.c + +../../../../../temp/cmp/ta_SAR.o: ../../../../../src/ta_func/ta_SAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_SAR.o ../../../../../src/ta_func/ta_SAR.c + +../../../../../temp/cmp/ta_SAREXT.o: ../../../../../src/ta_func/ta_SAREXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_SAREXT.o ../../../../../src/ta_func/ta_SAREXT.c + +../../../../../temp/cmp/ta_SIN.o: ../../../../../src/ta_func/ta_SIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_SIN.o ../../../../../src/ta_func/ta_SIN.c + +../../../../../temp/cmp/ta_SINH.o: ../../../../../src/ta_func/ta_SINH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_SINH.o ../../../../../src/ta_func/ta_SINH.c + +../../../../../temp/cmp/ta_SMA.o: ../../../../../src/ta_func/ta_SMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_SMA.o ../../../../../src/ta_func/ta_SMA.c + +../../../../../temp/cmp/ta_SQRT.o: ../../../../../src/ta_func/ta_SQRT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_SQRT.o ../../../../../src/ta_func/ta_SQRT.c + +../../../../../temp/cmp/ta_STDDEV.o: ../../../../../src/ta_func/ta_STDDEV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_STDDEV.o ../../../../../src/ta_func/ta_STDDEV.c + +../../../../../temp/cmp/ta_STOCH.o: ../../../../../src/ta_func/ta_STOCH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_STOCH.o ../../../../../src/ta_func/ta_STOCH.c + +../../../../../temp/cmp/ta_STOCHF.o: ../../../../../src/ta_func/ta_STOCHF.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_STOCHF.o ../../../../../src/ta_func/ta_STOCHF.c + +../../../../../temp/cmp/ta_STOCHRSI.o: ../../../../../src/ta_func/ta_STOCHRSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_STOCHRSI.o ../../../../../src/ta_func/ta_STOCHRSI.c + +../../../../../temp/cmp/ta_SUB.o: ../../../../../src/ta_func/ta_SUB.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_SUB.o ../../../../../src/ta_func/ta_SUB.c + +../../../../../temp/cmp/ta_SUM.o: ../../../../../src/ta_func/ta_SUM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_SUM.o ../../../../../src/ta_func/ta_SUM.c + +../../../../../temp/cmp/ta_T3.o: ../../../../../src/ta_func/ta_T3.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_T3.o ../../../../../src/ta_func/ta_T3.c + +../../../../../temp/cmp/ta_TAN.o: ../../../../../src/ta_func/ta_TAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_TAN.o ../../../../../src/ta_func/ta_TAN.c + +../../../../../temp/cmp/ta_TANH.o: ../../../../../src/ta_func/ta_TANH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_TANH.o ../../../../../src/ta_func/ta_TANH.c + +../../../../../temp/cmp/ta_TEMA.o: ../../../../../src/ta_func/ta_TEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_TEMA.o ../../../../../src/ta_func/ta_TEMA.c + +../../../../../temp/cmp/ta_TRANGE.o: ../../../../../src/ta_func/ta_TRANGE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_TRANGE.o ../../../../../src/ta_func/ta_TRANGE.c + +../../../../../temp/cmp/ta_TRIMA.o: ../../../../../src/ta_func/ta_TRIMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_TRIMA.o ../../../../../src/ta_func/ta_TRIMA.c + +../../../../../temp/cmp/ta_TRIX.o: ../../../../../src/ta_func/ta_TRIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_TRIX.o ../../../../../src/ta_func/ta_TRIX.c + +../../../../../temp/cmp/ta_TSF.o: ../../../../../src/ta_func/ta_TSF.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_TSF.o ../../../../../src/ta_func/ta_TSF.c + +../../../../../temp/cmp/ta_TYPPRICE.o: ../../../../../src/ta_func/ta_TYPPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_TYPPRICE.o ../../../../../src/ta_func/ta_TYPPRICE.c + +../../../../../temp/cmp/ta_ULTOSC.o: ../../../../../src/ta_func/ta_ULTOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_ULTOSC.o ../../../../../src/ta_func/ta_ULTOSC.c + +../../../../../temp/cmp/ta_VAR.o: ../../../../../src/ta_func/ta_VAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_VAR.o ../../../../../src/ta_func/ta_VAR.c + +../../../../../temp/cmp/ta_WCLPRICE.o: ../../../../../src/ta_func/ta_WCLPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_WCLPRICE.o ../../../../../src/ta_func/ta_WCLPRICE.c + +../../../../../temp/cmp/ta_WILLR.o: ../../../../../src/ta_func/ta_WILLR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_WILLR.o ../../../../../src/ta_func/ta_WILLR.c + +../../../../../temp/cmp/ta_WMA.o: ../../../../../src/ta_func/ta_WMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_WMA.o ../../../../../src/ta_func/ta_WMA.c + diff --git a/make/cmp/linux/g++/ta_regtest/Makefile b/make/cmp/linux/g++/ta_regtest/Makefile new file mode 100644 index 000000000..f34822691 --- /dev/null +++ b/make/cmp/linux/g++/ta_regtest/Makefile @@ -0,0 +1,211 @@ +############################################################################# +# Makefile for building ../../../../../bin/ta_regtest +# Generated by tmake; +# Project: ta_regtest/ta_regtest +# Template: app +############################################################################# + +####### Compiler, tools and options + +CC = gcc +CXX = g++ +CFLAGS = -pipe -fPIC -Wall -W -g -O -pg -D_REENTRANT -DTA_DEBUG -D_DEBUG -DQT_THREAD_SUPPORT +CXXFLAGS= -pipe -fPIC -Wall -W -g -D_REENTRANT -DTA_DEBUG -D_DEBUG -DQT_THREAD_SUPPORT +INCPATH = -I../../../../../src/ta_common -I../../../../../src/tools/ta_regtest -I../../../../../src/ta_func -I../../../../../include +LINK = g++ +LFLAGS = -pg +LIBS = $(SUBLIBS) ../../../../../lib/libta_libc_cmp.a -ldl -lpthread +MOC = $(QTDIR)/bin/moc +UIC = $(QTDIR)/bin/uic + +TAR = tar -cf +GZIP = gzip -9f + +####### Support for 64-bit systems +ifeq ($(shell uname -m), x86_64) + CFLAGS += -march=x86-64 -m64 -D__64BIT__ + CXXFLAGS += -march=x86-64 -m64 -D__64BIT__ +endif + +####### Apply additional overruling user flags, if any +CFLAGS += $(CUSERFLAGS) +CXXFLAGS += $(CUSERFLAGS) + +####### Files + +HEADERS = +SOURCES = ../../../../../src/tools/ta_regtest/ta_regtest.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_candlestick.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_1in_1out.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_1in_2out.c \ + ../../../../../src/tools/ta_regtest/test_internals.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_adx.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_bbands.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_ma.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_macd.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_minmax.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_mom.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_per_ema.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hl.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hlc.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hlcv.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_per_ohlc.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_po.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_rsi.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_sar.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_stddev.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_stoch.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_trange.c \ + ../../../../../src/tools/ta_regtest/test_util.c \ + ../../../../../src/tools/ta_regtest/test_data.c \ + ../../../../../src/tools/ta_regtest/test_abstract.c +OBJECTS = ../../../../../temp/cmp/ta_regtest.o \ + ../../../../../temp/cmp/test_candlestick.o \ + ../../../../../temp/cmp/test_1in_1out.o \ + ../../../../../temp/cmp/test_1in_2out.o \ + ../../../../../temp/cmp/test_internals.o \ + ../../../../../temp/cmp/test_adx.o \ + ../../../../../temp/cmp/test_bbands.o \ + ../../../../../temp/cmp/test_ma.o \ + ../../../../../temp/cmp/test_macd.o \ + ../../../../../temp/cmp/test_minmax.o \ + ../../../../../temp/cmp/test_mom.o \ + ../../../../../temp/cmp/test_per_ema.o \ + ../../../../../temp/cmp/test_per_hl.o \ + ../../../../../temp/cmp/test_per_hlc.o \ + ../../../../../temp/cmp/test_per_hlcv.o \ + ../../../../../temp/cmp/test_per_ohlc.o \ + ../../../../../temp/cmp/test_po.o \ + ../../../../../temp/cmp/test_rsi.o \ + ../../../../../temp/cmp/test_sar.o \ + ../../../../../temp/cmp/test_stddev.o \ + ../../../../../temp/cmp/test_stoch.o \ + ../../../../../temp/cmp/test_trange.o \ + ../../../../../temp/cmp/test_util.o \ + ../../../../../temp/cmp/test_data.o \ + ../../../../../temp/cmp/test_abstract.o +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ../../../../../bin/ta_regtest +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .C .c + +.cpp.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cxx.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cc.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.C.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.c.o: + $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $< + +####### Build rules + + +all: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS) + +moc: $(SRCMOC) + +clean: + -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) + -rm -f *~ core + +####### Sub-libraries + + +###### Combined headers + + +####### Compile + +../../../../../temp/cmp/ta_regtest.o: ../../../../../src/tools/ta_regtest/ta_regtest.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/ta_regtest.o ../../../../../src/tools/ta_regtest/ta_regtest.c + +../../../../../temp/cmp/test_candlestick.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_candlestick.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/test_candlestick.o ../../../../../src/tools/ta_regtest/ta_test_func/test_candlestick.c + +../../../../../temp/cmp/test_1in_1out.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_1in_1out.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/test_1in_1out.o ../../../../../src/tools/ta_regtest/ta_test_func/test_1in_1out.c + +../../../../../temp/cmp/test_1in_2out.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_1in_2out.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/test_1in_2out.o ../../../../../src/tools/ta_regtest/ta_test_func/test_1in_2out.c + +../../../../../temp/cmp/test_internals.o: ../../../../../src/tools/ta_regtest/test_internals.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/test_internals.o ../../../../../src/tools/ta_regtest/test_internals.c + +../../../../../temp/cmp/test_adx.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_adx.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/test_adx.o ../../../../../src/tools/ta_regtest/ta_test_func/test_adx.c + +../../../../../temp/cmp/test_bbands.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_bbands.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/test_bbands.o ../../../../../src/tools/ta_regtest/ta_test_func/test_bbands.c + +../../../../../temp/cmp/test_ma.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_ma.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/test_ma.o ../../../../../src/tools/ta_regtest/ta_test_func/test_ma.c + +../../../../../temp/cmp/test_macd.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_macd.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/test_macd.o ../../../../../src/tools/ta_regtest/ta_test_func/test_macd.c + +../../../../../temp/cmp/test_minmax.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_minmax.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/test_minmax.o ../../../../../src/tools/ta_regtest/ta_test_func/test_minmax.c + +../../../../../temp/cmp/test_mom.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_mom.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/test_mom.o ../../../../../src/tools/ta_regtest/ta_test_func/test_mom.c + +../../../../../temp/cmp/test_per_ema.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_per_ema.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/test_per_ema.o ../../../../../src/tools/ta_regtest/ta_test_func/test_per_ema.c + +../../../../../temp/cmp/test_per_hl.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hl.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/test_per_hl.o ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hl.c + +../../../../../temp/cmp/test_per_hlc.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hlc.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/test_per_hlc.o ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hlc.c + +../../../../../temp/cmp/test_per_hlcv.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hlcv.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/test_per_hlcv.o ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hlcv.c + +../../../../../temp/cmp/test_per_ohlc.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_per_ohlc.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/test_per_ohlc.o ../../../../../src/tools/ta_regtest/ta_test_func/test_per_ohlc.c + +../../../../../temp/cmp/test_po.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_po.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/test_po.o ../../../../../src/tools/ta_regtest/ta_test_func/test_po.c + +../../../../../temp/cmp/test_rsi.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_rsi.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/test_rsi.o ../../../../../src/tools/ta_regtest/ta_test_func/test_rsi.c + +../../../../../temp/cmp/test_sar.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_sar.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/test_sar.o ../../../../../src/tools/ta_regtest/ta_test_func/test_sar.c + +../../../../../temp/cmp/test_stddev.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_stddev.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/test_stddev.o ../../../../../src/tools/ta_regtest/ta_test_func/test_stddev.c + +../../../../../temp/cmp/test_stoch.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_stoch.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/test_stoch.o ../../../../../src/tools/ta_regtest/ta_test_func/test_stoch.c + +../../../../../temp/cmp/test_trange.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_trange.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/test_trange.o ../../../../../src/tools/ta_regtest/ta_test_func/test_trange.c + +../../../../../temp/cmp/test_util.o: ../../../../../src/tools/ta_regtest/test_util.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/test_util.o ../../../../../src/tools/ta_regtest/test_util.c + +../../../../../temp/cmp/test_data.o: ../../../../../src/tools/ta_regtest/test_data.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/test_data.o ../../../../../src/tools/ta_regtest/test_data.c + +../../../../../temp/cmp/test_abstract.o: ../../../../../src/tools/ta_regtest/test_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmp/test_abstract.o ../../../../../src/tools/ta_regtest/test_abstract.c + diff --git a/make/cmr/cygwin/g++/Makefile b/make/cmr/cygwin/g++/Makefile new file mode 100644 index 000000000..a5a593aab --- /dev/null +++ b/make/cmr/cygwin/g++/Makefile @@ -0,0 +1,36 @@ +############################################################################# +# Makefile for building targets in sub directories. +# Generated by tmake; +# Project: rootmake +# Template: subdirs +############################################################################# + +MAKEFILE= Makefile +TMAKE = tmake + +SUBDIRS = ta_common \ + ta_func \ + ta_abstract \ + ta_libc \ + gen_code \ + ta_regtest + +all: $(SUBDIRS) + +$(SUBDIRS): FORCE + cd $@; $(MAKE) + +tmake: ../cmr/cygwin/g++/Makefile + +../cmr/cygwin/g++/Makefile: rootmake.pro + tmake rootmake.pro -o ../cmr/cygwin/g++/Makefile + +tmake_all: + for i in $(SUBDIRS); do ( if [ -d $$i ]; then cd $$i ; $(MAKE) -f $(MAKEFILE) tmake_all || true; fi; ) ; done + +#### $text = "\t" . 'for i in $(SUBDIRS); do ( if [ -d $$i ]; then cd $$i ; pro=`basename $$i`.pro ; $(TMAKE) $$pro -o $(MAKEFILE); grep "TEMPLATE.*subdirs" $$pro 2>/dev/null >/dev/null && $(MAKE) -f $(MAKEFILE) tmake_all || true; fi; ) ; done'; + +clean release debug: + for i in $(SUBDIRS); do ( if [ -d $$i ]; then cd $$i ; $(MAKE) $@; fi; ) ; done + +FORCE: diff --git a/make/cmr/cygwin/g++/gen_code/Makefile b/make/cmr/cygwin/g++/gen_code/Makefile new file mode 100644 index 000000000..ebf1a595a --- /dev/null +++ b/make/cmr/cygwin/g++/gen_code/Makefile @@ -0,0 +1,231 @@ +############################################################################# +# Makefile for building ../../../../../bin/gen_code +# Generated by tmake; +# Project: gen_code/gen_code +# Template: app +############################################################################# + +####### Compiler, tools and options + +CC = gcc +CXX = g++ +CFLAGS = -pipe -Wall -W -O2 -fno-strict-aliasing -D_REENTRANT -DTA_GEN_CODE -DQT_THREAD_SUPPORT +CXXFLAGS= -pipe -Wall -W -O2 -fno-strict-aliasing -D_REENTRANT -DTA_GEN_CODE -DQT_THREAD_SUPPORT +INCPATH = -I../../../../../include -I../../../../../src/ta_common -I../../../../../src/ta_abstract -I../../../../../src/ta_abstract/tables -I../../../../../src/ta_abstract/frames +LINK = g++ +LFLAGS = +LIBS = $(SUBLIBS) ../../../../../lib/libta_common_cmr.a -lpthread +MOC = $(QTDIR)/bin/moc +UIC = $(QTDIR)/bin/uic + +TAR = tar -cf +GZIP = gzip -9f + +####### Support for 64-bit systems +ifeq ($(shell uname -m), x86_64) + CFLAGS += -march=x86-64 -m64 -D__64BIT__ + CXXFLAGS += -march=x86-64 -m64 -D__64BIT__ +endif + +####### Apply additional overruling user flags, if any +CFLAGS += $(CUSERFLAGS) +CXXFLAGS += $(CUSERFLAGS) + +####### Files + +HEADERS = +SOURCES = ../../../../../src/tools/gen_code/gen_code.c \ + ../../../../../src/ta_abstract/ta_abstract.c \ + ../../../../../src/ta_abstract/ta_def_ui.c \ + ../../../../../src/ta_abstract/tables/table_a.c \ + ../../../../../src/ta_abstract/tables/table_b.c \ + ../../../../../src/ta_abstract/tables/table_c.c \ + ../../../../../src/ta_abstract/tables/table_d.c \ + ../../../../../src/ta_abstract/tables/table_e.c \ + ../../../../../src/ta_abstract/tables/table_f.c \ + ../../../../../src/ta_abstract/tables/table_g.c \ + ../../../../../src/ta_abstract/tables/table_h.c \ + ../../../../../src/ta_abstract/tables/table_i.c \ + ../../../../../src/ta_abstract/tables/table_j.c \ + ../../../../../src/ta_abstract/tables/table_k.c \ + ../../../../../src/ta_abstract/tables/table_l.c \ + ../../../../../src/ta_abstract/tables/table_m.c \ + ../../../../../src/ta_abstract/tables/table_n.c \ + ../../../../../src/ta_abstract/tables/table_o.c \ + ../../../../../src/ta_abstract/tables/table_p.c \ + ../../../../../src/ta_abstract/tables/table_q.c \ + ../../../../../src/ta_abstract/tables/table_r.c \ + ../../../../../src/ta_abstract/tables/table_s.c \ + ../../../../../src/ta_abstract/tables/table_t.c \ + ../../../../../src/ta_abstract/tables/table_u.c \ + ../../../../../src/ta_abstract/tables/table_v.c \ + ../../../../../src/ta_abstract/tables/table_w.c \ + ../../../../../src/ta_abstract/tables/table_x.c \ + ../../../../../src/ta_abstract/tables/table_y.c \ + ../../../../../src/ta_abstract/tables/table_z.c +OBJECTS = ../../../../../temp/cmr/gen_code/gen_code.o \ + ../../../../../temp/cmr/gen_code/ta_abstract.o \ + ../../../../../temp/cmr/gen_code/ta_def_ui.o \ + ../../../../../temp/cmr/gen_code/table_a.o \ + ../../../../../temp/cmr/gen_code/table_b.o \ + ../../../../../temp/cmr/gen_code/table_c.o \ + ../../../../../temp/cmr/gen_code/table_d.o \ + ../../../../../temp/cmr/gen_code/table_e.o \ + ../../../../../temp/cmr/gen_code/table_f.o \ + ../../../../../temp/cmr/gen_code/table_g.o \ + ../../../../../temp/cmr/gen_code/table_h.o \ + ../../../../../temp/cmr/gen_code/table_i.o \ + ../../../../../temp/cmr/gen_code/table_j.o \ + ../../../../../temp/cmr/gen_code/table_k.o \ + ../../../../../temp/cmr/gen_code/table_l.o \ + ../../../../../temp/cmr/gen_code/table_m.o \ + ../../../../../temp/cmr/gen_code/table_n.o \ + ../../../../../temp/cmr/gen_code/table_o.o \ + ../../../../../temp/cmr/gen_code/table_p.o \ + ../../../../../temp/cmr/gen_code/table_q.o \ + ../../../../../temp/cmr/gen_code/table_r.o \ + ../../../../../temp/cmr/gen_code/table_s.o \ + ../../../../../temp/cmr/gen_code/table_t.o \ + ../../../../../temp/cmr/gen_code/table_u.o \ + ../../../../../temp/cmr/gen_code/table_v.o \ + ../../../../../temp/cmr/gen_code/table_w.o \ + ../../../../../temp/cmr/gen_code/table_x.o \ + ../../../../../temp/cmr/gen_code/table_y.o \ + ../../../../../temp/cmr/gen_code/table_z.o +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ../../../../../bin/gen_code +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .C .c + +.cpp.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cxx.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cc.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.C.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.c.o: + $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $< + +####### Build rules + + +all: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS) + +moc: $(SRCMOC) + +clean: + -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) + -rm -f *~ core + +####### Sub-libraries + + +###### Combined headers + + +####### Compile + +../../../../../temp/cmr/gen_code/gen_code.o: ../../../../../src/tools/gen_code/gen_code.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/gen_code/gen_code.o ../../../../../src/tools/gen_code/gen_code.c + +../../../../../temp/cmr/gen_code/ta_abstract.o: ../../../../../src/ta_abstract/ta_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/gen_code/ta_abstract.o ../../../../../src/ta_abstract/ta_abstract.c + +../../../../../temp/cmr/gen_code/ta_def_ui.o: ../../../../../src/ta_abstract/ta_def_ui.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/gen_code/ta_def_ui.o ../../../../../src/ta_abstract/ta_def_ui.c + +../../../../../temp/cmr/gen_code/table_a.o: ../../../../../src/ta_abstract/tables/table_a.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/gen_code/table_a.o ../../../../../src/ta_abstract/tables/table_a.c + +../../../../../temp/cmr/gen_code/table_b.o: ../../../../../src/ta_abstract/tables/table_b.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/gen_code/table_b.o ../../../../../src/ta_abstract/tables/table_b.c + +../../../../../temp/cmr/gen_code/table_c.o: ../../../../../src/ta_abstract/tables/table_c.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/gen_code/table_c.o ../../../../../src/ta_abstract/tables/table_c.c + +../../../../../temp/cmr/gen_code/table_d.o: ../../../../../src/ta_abstract/tables/table_d.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/gen_code/table_d.o ../../../../../src/ta_abstract/tables/table_d.c + +../../../../../temp/cmr/gen_code/table_e.o: ../../../../../src/ta_abstract/tables/table_e.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/gen_code/table_e.o ../../../../../src/ta_abstract/tables/table_e.c + +../../../../../temp/cmr/gen_code/table_f.o: ../../../../../src/ta_abstract/tables/table_f.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/gen_code/table_f.o ../../../../../src/ta_abstract/tables/table_f.c + +../../../../../temp/cmr/gen_code/table_g.o: ../../../../../src/ta_abstract/tables/table_g.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/gen_code/table_g.o ../../../../../src/ta_abstract/tables/table_g.c + +../../../../../temp/cmr/gen_code/table_h.o: ../../../../../src/ta_abstract/tables/table_h.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/gen_code/table_h.o ../../../../../src/ta_abstract/tables/table_h.c + +../../../../../temp/cmr/gen_code/table_i.o: ../../../../../src/ta_abstract/tables/table_i.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/gen_code/table_i.o ../../../../../src/ta_abstract/tables/table_i.c + +../../../../../temp/cmr/gen_code/table_j.o: ../../../../../src/ta_abstract/tables/table_j.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/gen_code/table_j.o ../../../../../src/ta_abstract/tables/table_j.c + +../../../../../temp/cmr/gen_code/table_k.o: ../../../../../src/ta_abstract/tables/table_k.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/gen_code/table_k.o ../../../../../src/ta_abstract/tables/table_k.c + +../../../../../temp/cmr/gen_code/table_l.o: ../../../../../src/ta_abstract/tables/table_l.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/gen_code/table_l.o ../../../../../src/ta_abstract/tables/table_l.c + +../../../../../temp/cmr/gen_code/table_m.o: ../../../../../src/ta_abstract/tables/table_m.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/gen_code/table_m.o ../../../../../src/ta_abstract/tables/table_m.c + +../../../../../temp/cmr/gen_code/table_n.o: ../../../../../src/ta_abstract/tables/table_n.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/gen_code/table_n.o ../../../../../src/ta_abstract/tables/table_n.c + +../../../../../temp/cmr/gen_code/table_o.o: ../../../../../src/ta_abstract/tables/table_o.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/gen_code/table_o.o ../../../../../src/ta_abstract/tables/table_o.c + +../../../../../temp/cmr/gen_code/table_p.o: ../../../../../src/ta_abstract/tables/table_p.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/gen_code/table_p.o ../../../../../src/ta_abstract/tables/table_p.c + +../../../../../temp/cmr/gen_code/table_q.o: ../../../../../src/ta_abstract/tables/table_q.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/gen_code/table_q.o ../../../../../src/ta_abstract/tables/table_q.c + +../../../../../temp/cmr/gen_code/table_r.o: ../../../../../src/ta_abstract/tables/table_r.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/gen_code/table_r.o ../../../../../src/ta_abstract/tables/table_r.c + +../../../../../temp/cmr/gen_code/table_s.o: ../../../../../src/ta_abstract/tables/table_s.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/gen_code/table_s.o ../../../../../src/ta_abstract/tables/table_s.c + +../../../../../temp/cmr/gen_code/table_t.o: ../../../../../src/ta_abstract/tables/table_t.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/gen_code/table_t.o ../../../../../src/ta_abstract/tables/table_t.c + +../../../../../temp/cmr/gen_code/table_u.o: ../../../../../src/ta_abstract/tables/table_u.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/gen_code/table_u.o ../../../../../src/ta_abstract/tables/table_u.c + +../../../../../temp/cmr/gen_code/table_v.o: ../../../../../src/ta_abstract/tables/table_v.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/gen_code/table_v.o ../../../../../src/ta_abstract/tables/table_v.c + +../../../../../temp/cmr/gen_code/table_w.o: ../../../../../src/ta_abstract/tables/table_w.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/gen_code/table_w.o ../../../../../src/ta_abstract/tables/table_w.c + +../../../../../temp/cmr/gen_code/table_x.o: ../../../../../src/ta_abstract/tables/table_x.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/gen_code/table_x.o ../../../../../src/ta_abstract/tables/table_x.c + +../../../../../temp/cmr/gen_code/table_y.o: ../../../../../src/ta_abstract/tables/table_y.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/gen_code/table_y.o ../../../../../src/ta_abstract/tables/table_y.c + +../../../../../temp/cmr/gen_code/table_z.o: ../../../../../src/ta_abstract/tables/table_z.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/gen_code/table_z.o ../../../../../src/ta_abstract/tables/table_z.c + diff --git a/make/cmr/cygwin/g++/ta_abstract/Makefile b/make/cmr/cygwin/g++/ta_abstract/Makefile new file mode 100644 index 000000000..6f86f551e --- /dev/null +++ b/make/cmr/cygwin/g++/ta_abstract/Makefile @@ -0,0 +1,243 @@ +############################################################################# +# Makefile for building ../../../../../lib/libta_abstract_cmr.a +# Generated by tmake; +# Project: ta_abstract/ta_abstract +# Template: lib +############################################################################# + +####### Compiler, tools and options + +CC = gcc +CXX = g++ +CFLAGS = -pipe -Wall -W -O2 -fno-strict-aliasing -D_REENTRANT -DQT_THREAD_SUPPORT +CXXFLAGS= -pipe -Wall -W -O2 -fno-strict-aliasing -D_REENTRANT -DQT_THREAD_SUPPORT +INCPATH = -I../../../../../src/ta_common -I../../../../../src/ta_abstract -I../../../../../src/ta_abstract/tables -I../../../../../src/ta_abstract/frames -I../../../../../include +AR = ar cqs +RANLIB = +MOC = $(QTDIR)/bin/moc +UIC = $(QTDIR)/bin/uic + +TAR = tar -cf +GZIP = gzip -9f + +####### Support for 64-bit systems +ifeq ($(shell uname -m), x86_64) + CFLAGS += -march=x86-64 -m64 -D__64BIT__ + CXXFLAGS += -march=x86-64 -m64 -D__64BIT__ +endif + +####### Apply additional overruling user flags, if any +CFLAGS += $(CUSERFLAGS) +CXXFLAGS += $(CUSERFLAGS) + +####### Files + +HEADERS = +SOURCES = ../../../../../src/ta_abstract/ta_abstract.c \ + ../../../../../src/ta_abstract/ta_def_ui.c \ + ../../../../../src/ta_abstract/ta_func_api.c \ + ../../../../../src/ta_abstract/ta_group_idx.c \ + ../../../../../src/ta_abstract/frames/ta_frame.c \ + ../../../../../src/ta_abstract/tables/table_a.c \ + ../../../../../src/ta_abstract/tables/table_b.c \ + ../../../../../src/ta_abstract/tables/table_c.c \ + ../../../../../src/ta_abstract/tables/table_d.c \ + ../../../../../src/ta_abstract/tables/table_e.c \ + ../../../../../src/ta_abstract/tables/table_f.c \ + ../../../../../src/ta_abstract/tables/table_g.c \ + ../../../../../src/ta_abstract/tables/table_h.c \ + ../../../../../src/ta_abstract/tables/table_i.c \ + ../../../../../src/ta_abstract/tables/table_j.c \ + ../../../../../src/ta_abstract/tables/table_k.c \ + ../../../../../src/ta_abstract/tables/table_l.c \ + ../../../../../src/ta_abstract/tables/table_m.c \ + ../../../../../src/ta_abstract/tables/table_n.c \ + ../../../../../src/ta_abstract/tables/table_o.c \ + ../../../../../src/ta_abstract/tables/table_p.c \ + ../../../../../src/ta_abstract/tables/table_q.c \ + ../../../../../src/ta_abstract/tables/table_r.c \ + ../../../../../src/ta_abstract/tables/table_s.c \ + ../../../../../src/ta_abstract/tables/table_t.c \ + ../../../../../src/ta_abstract/tables/table_u.c \ + ../../../../../src/ta_abstract/tables/table_v.c \ + ../../../../../src/ta_abstract/tables/table_w.c \ + ../../../../../src/ta_abstract/tables/table_x.c \ + ../../../../../src/ta_abstract/tables/table_y.c \ + ../../../../../src/ta_abstract/tables/table_z.c +OBJECTS = ../../../../../temp/cmr/ta_abstract.o \ + ../../../../../temp/cmr/ta_def_ui.o \ + ../../../../../temp/cmr/ta_func_api.o \ + ../../../../../temp/cmr/ta_group_idx.o \ + ../../../../../temp/cmr/ta_frame.o \ + ../../../../../temp/cmr/table_a.o \ + ../../../../../temp/cmr/table_b.o \ + ../../../../../temp/cmr/table_c.o \ + ../../../../../temp/cmr/table_d.o \ + ../../../../../temp/cmr/table_e.o \ + ../../../../../temp/cmr/table_f.o \ + ../../../../../temp/cmr/table_g.o \ + ../../../../../temp/cmr/table_h.o \ + ../../../../../temp/cmr/table_i.o \ + ../../../../../temp/cmr/table_j.o \ + ../../../../../temp/cmr/table_k.o \ + ../../../../../temp/cmr/table_l.o \ + ../../../../../temp/cmr/table_m.o \ + ../../../../../temp/cmr/table_n.o \ + ../../../../../temp/cmr/table_o.o \ + ../../../../../temp/cmr/table_p.o \ + ../../../../../temp/cmr/table_q.o \ + ../../../../../temp/cmr/table_r.o \ + ../../../../../temp/cmr/table_s.o \ + ../../../../../temp/cmr/table_t.o \ + ../../../../../temp/cmr/table_u.o \ + ../../../../../temp/cmr/table_v.o \ + ../../../../../temp/cmr/table_w.o \ + ../../../../../temp/cmr/table_x.o \ + ../../../../../temp/cmr/table_y.o \ + ../../../../../temp/cmr/table_z.o +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ../../../../../lib/libta_abstract_cmr.a +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .C .c + +.cpp.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cxx.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cc.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.C.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.c.o: + $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $< + +####### Build rules + + +all: $(TARGET) + +staticlib: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + -rm -f $(TARGET) + $(AR) $(TARGET) $(OBJECTS) $(OBJMOC) + +moc: $(SRCMOC) + +clean: + -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) + -rm -f *~ core + +####### Sub-libraries + + +###### Combined headers + + +####### Compile + +../../../../../temp/cmr/ta_abstract.o: ../../../../../src/ta_abstract/ta_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_abstract.o ../../../../../src/ta_abstract/ta_abstract.c + +../../../../../temp/cmr/ta_def_ui.o: ../../../../../src/ta_abstract/ta_def_ui.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_def_ui.o ../../../../../src/ta_abstract/ta_def_ui.c + +../../../../../temp/cmr/ta_func_api.o: ../../../../../src/ta_abstract/ta_func_api.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_func_api.o ../../../../../src/ta_abstract/ta_func_api.c + +../../../../../temp/cmr/ta_group_idx.o: ../../../../../src/ta_abstract/ta_group_idx.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_group_idx.o ../../../../../src/ta_abstract/ta_group_idx.c + +../../../../../temp/cmr/ta_frame.o: ../../../../../src/ta_abstract/frames/ta_frame.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_frame.o ../../../../../src/ta_abstract/frames/ta_frame.c + +../../../../../temp/cmr/table_a.o: ../../../../../src/ta_abstract/tables/table_a.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_a.o ../../../../../src/ta_abstract/tables/table_a.c + +../../../../../temp/cmr/table_b.o: ../../../../../src/ta_abstract/tables/table_b.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_b.o ../../../../../src/ta_abstract/tables/table_b.c + +../../../../../temp/cmr/table_c.o: ../../../../../src/ta_abstract/tables/table_c.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_c.o ../../../../../src/ta_abstract/tables/table_c.c + +../../../../../temp/cmr/table_d.o: ../../../../../src/ta_abstract/tables/table_d.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_d.o ../../../../../src/ta_abstract/tables/table_d.c + +../../../../../temp/cmr/table_e.o: ../../../../../src/ta_abstract/tables/table_e.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_e.o ../../../../../src/ta_abstract/tables/table_e.c + +../../../../../temp/cmr/table_f.o: ../../../../../src/ta_abstract/tables/table_f.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_f.o ../../../../../src/ta_abstract/tables/table_f.c + +../../../../../temp/cmr/table_g.o: ../../../../../src/ta_abstract/tables/table_g.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_g.o ../../../../../src/ta_abstract/tables/table_g.c + +../../../../../temp/cmr/table_h.o: ../../../../../src/ta_abstract/tables/table_h.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_h.o ../../../../../src/ta_abstract/tables/table_h.c + +../../../../../temp/cmr/table_i.o: ../../../../../src/ta_abstract/tables/table_i.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_i.o ../../../../../src/ta_abstract/tables/table_i.c + +../../../../../temp/cmr/table_j.o: ../../../../../src/ta_abstract/tables/table_j.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_j.o ../../../../../src/ta_abstract/tables/table_j.c + +../../../../../temp/cmr/table_k.o: ../../../../../src/ta_abstract/tables/table_k.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_k.o ../../../../../src/ta_abstract/tables/table_k.c + +../../../../../temp/cmr/table_l.o: ../../../../../src/ta_abstract/tables/table_l.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_l.o ../../../../../src/ta_abstract/tables/table_l.c + +../../../../../temp/cmr/table_m.o: ../../../../../src/ta_abstract/tables/table_m.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_m.o ../../../../../src/ta_abstract/tables/table_m.c + +../../../../../temp/cmr/table_n.o: ../../../../../src/ta_abstract/tables/table_n.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_n.o ../../../../../src/ta_abstract/tables/table_n.c + +../../../../../temp/cmr/table_o.o: ../../../../../src/ta_abstract/tables/table_o.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_o.o ../../../../../src/ta_abstract/tables/table_o.c + +../../../../../temp/cmr/table_p.o: ../../../../../src/ta_abstract/tables/table_p.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_p.o ../../../../../src/ta_abstract/tables/table_p.c + +../../../../../temp/cmr/table_q.o: ../../../../../src/ta_abstract/tables/table_q.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_q.o ../../../../../src/ta_abstract/tables/table_q.c + +../../../../../temp/cmr/table_r.o: ../../../../../src/ta_abstract/tables/table_r.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_r.o ../../../../../src/ta_abstract/tables/table_r.c + +../../../../../temp/cmr/table_s.o: ../../../../../src/ta_abstract/tables/table_s.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_s.o ../../../../../src/ta_abstract/tables/table_s.c + +../../../../../temp/cmr/table_t.o: ../../../../../src/ta_abstract/tables/table_t.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_t.o ../../../../../src/ta_abstract/tables/table_t.c + +../../../../../temp/cmr/table_u.o: ../../../../../src/ta_abstract/tables/table_u.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_u.o ../../../../../src/ta_abstract/tables/table_u.c + +../../../../../temp/cmr/table_v.o: ../../../../../src/ta_abstract/tables/table_v.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_v.o ../../../../../src/ta_abstract/tables/table_v.c + +../../../../../temp/cmr/table_w.o: ../../../../../src/ta_abstract/tables/table_w.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_w.o ../../../../../src/ta_abstract/tables/table_w.c + +../../../../../temp/cmr/table_x.o: ../../../../../src/ta_abstract/tables/table_x.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_x.o ../../../../../src/ta_abstract/tables/table_x.c + +../../../../../temp/cmr/table_y.o: ../../../../../src/ta_abstract/tables/table_y.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_y.o ../../../../../src/ta_abstract/tables/table_y.c + +../../../../../temp/cmr/table_z.o: ../../../../../src/ta_abstract/tables/table_z.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_z.o ../../../../../src/ta_abstract/tables/table_z.c + diff --git a/make/cmr/cygwin/g++/ta_common/Makefile b/make/cmr/cygwin/g++/ta_common/Makefile new file mode 100644 index 000000000..2496a73bd --- /dev/null +++ b/make/cmr/cygwin/g++/ta_common/Makefile @@ -0,0 +1,103 @@ +############################################################################# +# Makefile for building ../../../../../lib/libta_common_cmr.a +# Generated by tmake; +# Project: ta_common/ta_common +# Template: lib +############################################################################# + +####### Compiler, tools and options + +CC = gcc +CXX = g++ +CFLAGS = -pipe -Wall -W -O2 -fno-strict-aliasing -D_REENTRANT -DQT_THREAD_SUPPORT +CXXFLAGS= -pipe -Wall -W -O2 -fno-strict-aliasing -D_REENTRANT -DQT_THREAD_SUPPORT +INCPATH = -I../../../../../src/ta_common -I../../../../../include +AR = ar cqs +RANLIB = +MOC = $(QTDIR)/bin/moc +UIC = $(QTDIR)/bin/uic + +TAR = tar -cf +GZIP = gzip -9f + +####### Support for 64-bit systems +ifeq ($(shell uname -m), x86_64) + CFLAGS += -march=x86-64 -m64 -D__64BIT__ + CXXFLAGS += -march=x86-64 -m64 -D__64BIT__ +endif + +####### Apply additional overruling user flags, if any +CFLAGS += $(CUSERFLAGS) +CXXFLAGS += $(CUSERFLAGS) + +####### Files + +HEADERS = +SOURCES = ../../../../../src/ta_common/ta_global.c \ + ../../../../../src/ta_common/ta_retcode.c \ + ../../../../../src/ta_common/ta_version.c +OBJECTS = ../../../../../temp/cmr/ta_global.o \ + ../../../../../temp/cmr/ta_retcode.o \ + ../../../../../temp/cmr/ta_version.o +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ../../../../../lib/libta_common_cmr.a +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .C .c + +.cpp.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cxx.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cc.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.C.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.c.o: + $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $< + +####### Build rules + + +all: $(TARGET) + +staticlib: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + -rm -f $(TARGET) + $(AR) $(TARGET) $(OBJECTS) $(OBJMOC) + +moc: $(SRCMOC) + +clean: + -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) + -rm -f *~ core + +####### Sub-libraries + + +###### Combined headers + + +####### Compile + +../../../../../temp/cmr/ta_global.o: ../../../../../src/ta_common/ta_global.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_global.o ../../../../../src/ta_common/ta_global.c + +../../../../../temp/cmr/ta_retcode.o: ../../../../../src/ta_common/ta_retcode.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_retcode.o ../../../../../src/ta_common/ta_retcode.c + +../../../../../temp/cmr/ta_version.o: ../../../../../src/ta_common/ta_version.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_version.o ../../../../../src/ta_common/ta_version.c + diff --git a/make/cmr/cygwin/g++/ta_func/Makefile b/make/cmr/cygwin/g++/ta_func/Makefile new file mode 100644 index 000000000..f099b8d0c --- /dev/null +++ b/make/cmr/cygwin/g++/ta_func/Makefile @@ -0,0 +1,883 @@ +############################################################################# +# Makefile for building ../../../../../lib/libta_func_cmr.a +# Generated by tmake; +# Project: ta_func/ta_func +# Template: lib +############################################################################# + +####### Compiler, tools and options + +CC = gcc +CXX = g++ +CFLAGS = -pipe -Wall -W -O2 -fno-strict-aliasing -D_REENTRANT -DQT_THREAD_SUPPORT +CXXFLAGS= -pipe -Wall -W -O2 -fno-strict-aliasing -D_REENTRANT -DQT_THREAD_SUPPORT +INCPATH = -I../../../../../src/ta_common -I/n -I../../../../../include +AR = ar cqs +RANLIB = +MOC = $(QTDIR)/bin/moc +UIC = $(QTDIR)/bin/uic + +TAR = tar -cf +GZIP = gzip -9f + +####### Support for 64-bit systems +ifeq ($(shell uname -m), x86_64) + CFLAGS += -march=x86-64 -m64 -D__64BIT__ + CXXFLAGS += -march=x86-64 -m64 -D__64BIT__ +endif + +####### Apply additional overruling user flags, if any +CFLAGS += $(CUSERFLAGS) +CXXFLAGS += $(CUSERFLAGS) + +####### Files + +HEADERS = +SOURCES = ../../../../../src/ta_func/ta_utility.c \ + ../../../../../src/ta_func/ta_ACOS.c \ + ../../../../../src/ta_func/ta_AD.c \ + ../../../../../src/ta_func/ta_ADD.c \ + ../../../../../src/ta_func/ta_ADOSC.c \ + ../../../../../src/ta_func/ta_ADX.c \ + ../../../../../src/ta_func/ta_ADXR.c \ + ../../../../../src/ta_func/ta_APO.c \ + ../../../../../src/ta_func/ta_AROON.c \ + ../../../../../src/ta_func/ta_AROONOSC.c \ + ../../../../../src/ta_func/ta_ASIN.c \ + ../../../../../src/ta_func/ta_ATAN.c \ + ../../../../../src/ta_func/ta_ATR.c \ + ../../../../../src/ta_func/ta_AVGPRICE.c \ + ../../../../../src/ta_func/ta_BBANDS.c \ + ../../../../../src/ta_func/ta_BETA.c \ + ../../../../../src/ta_func/ta_BOP.c \ + ../../../../../src/ta_func/ta_CCI.c \ + ../../../../../src/ta_func/ta_CDL2CROWS.c \ + ../../../../../src/ta_func/ta_CDL3BLACKCROWS.c \ + ../../../../../src/ta_func/ta_CDL3INSIDE.c \ + ../../../../../src/ta_func/ta_CDL3LINESTRIKE.c \ + ../../../../../src/ta_func/ta_CDL3OUTSIDE.c \ + ../../../../../src/ta_func/ta_CDL3STARSINSOUTH.c \ + ../../../../../src/ta_func/ta_CDL3WHITESOLDIERS.c \ + ../../../../../src/ta_func/ta_CDLABANDONEDBABY.c \ + ../../../../../src/ta_func/ta_CDLADVANCEBLOCK.c \ + ../../../../../src/ta_func/ta_CDLBELTHOLD.c \ + ../../../../../src/ta_func/ta_CDLBREAKAWAY.c \ + ../../../../../src/ta_func/ta_CDLCLOSINGMARUBOZU.c \ + ../../../../../src/ta_func/ta_CDLCONCEALBABYSWALL.c \ + ../../../../../src/ta_func/ta_CDLCOUNTERATTACK.c \ + ../../../../../src/ta_func/ta_CDLDARKCLOUDCOVER.c \ + ../../../../../src/ta_func/ta_CDLDOJI.c \ + ../../../../../src/ta_func/ta_CDLDOJISTAR.c \ + ../../../../../src/ta_func/ta_CDLDRAGONFLYDOJI.c \ + ../../../../../src/ta_func/ta_CDLENGULFING.c \ + ../../../../../src/ta_func/ta_CDLEVENINGDOJISTAR.c \ + ../../../../../src/ta_func/ta_CDLEVENINGSTAR.c \ + ../../../../../src/ta_func/ta_CDLGAPSIDESIDEWHITE.c \ + ../../../../../src/ta_func/ta_CDLGRAVESTONEDOJI.c \ + ../../../../../src/ta_func/ta_CDLHAMMER.c \ + ../../../../../src/ta_func/ta_CDLHANGINGMAN.c \ + ../../../../../src/ta_func/ta_CDLHARAMI.c \ + ../../../../../src/ta_func/ta_CDLHARAMICROSS.c \ + ../../../../../src/ta_func/ta_CDLHIGHWAVE.c \ + ../../../../../src/ta_func/ta_CDLHIKKAKE.c \ + ../../../../../src/ta_func/ta_CDLHIKKAKEMOD.c \ + ../../../../../src/ta_func/ta_CDLHOMINGPIGEON.c \ + ../../../../../src/ta_func/ta_CDLIDENTICAL3CROWS.c \ + ../../../../../src/ta_func/ta_CDLINNECK.c \ + ../../../../../src/ta_func/ta_CDLINVERTEDHAMMER.c \ + ../../../../../src/ta_func/ta_CDLKICKING.c \ + ../../../../../src/ta_func/ta_CDLKICKINGBYLENGTH.c \ + ../../../../../src/ta_func/ta_CDLLADDERBOTTOM.c \ + ../../../../../src/ta_func/ta_CDLLONGLEGGEDDOJI.c \ + ../../../../../src/ta_func/ta_CDLLONGLINE.c \ + ../../../../../src/ta_func/ta_CDLMARUBOZU.c \ + ../../../../../src/ta_func/ta_CDLMATCHINGLOW.c \ + ../../../../../src/ta_func/ta_CDLMATHOLD.c \ + ../../../../../src/ta_func/ta_CDLMORNINGDOJISTAR.c \ + ../../../../../src/ta_func/ta_CDLMORNINGSTAR.c \ + ../../../../../src/ta_func/ta_CDLONNECK.c \ + ../../../../../src/ta_func/ta_CDLPIERCING.c \ + ../../../../../src/ta_func/ta_CDLRICKSHAWMAN.c \ + ../../../../../src/ta_func/ta_CDLRISEFALL3METHODS.c \ + ../../../../../src/ta_func/ta_CDLSEPARATINGLINES.c \ + ../../../../../src/ta_func/ta_CDLSHOOTINGSTAR.c \ + ../../../../../src/ta_func/ta_CDLSHORTLINE.c \ + ../../../../../src/ta_func/ta_CDLSPINNINGTOP.c \ + ../../../../../src/ta_func/ta_CDLSTALLEDPATTERN.c \ + ../../../../../src/ta_func/ta_CDLSTICKSANDWICH.c \ + ../../../../../src/ta_func/ta_CDLTAKURI.c \ + ../../../../../src/ta_func/ta_CDLTASUKIGAP.c \ + ../../../../../src/ta_func/ta_CDLTHRUSTING.c \ + ../../../../../src/ta_func/ta_CDLTRISTAR.c \ + ../../../../../src/ta_func/ta_CDLUNIQUE3RIVER.c \ + ../../../../../src/ta_func/ta_CDLUPSIDEGAP2CROWS.c \ + ../../../../../src/ta_func/ta_CDLXSIDEGAP3METHODS.c \ + ../../../../../src/ta_func/ta_CEIL.c \ + ../../../../../src/ta_func/ta_CMO.c \ + ../../../../../src/ta_func/ta_CORREL.c \ + ../../../../../src/ta_func/ta_COS.c \ + ../../../../../src/ta_func/ta_COSH.c \ + ../../../../../src/ta_func/ta_DEMA.c \ + ../../../../../src/ta_func/ta_DIV.c \ + ../../../../../src/ta_func/ta_DX.c \ + ../../../../../src/ta_func/ta_EMA.c \ + ../../../../../src/ta_func/ta_EXP.c \ + ../../../../../src/ta_func/ta_FLOOR.c \ + ../../../../../src/ta_func/ta_HT_DCPERIOD.c \ + ../../../../../src/ta_func/ta_HT_DCPHASE.c \ + ../../../../../src/ta_func/ta_HT_PHASOR.c \ + ../../../../../src/ta_func/ta_HT_SINE.c \ + ../../../../../src/ta_func/ta_HT_TRENDLINE.c \ + ../../../../../src/ta_func/ta_HT_TRENDMODE.c \ + ../../../../../src/ta_func/ta_KAMA.c \ + ../../../../../src/ta_func/ta_LINEARREG.c \ + ../../../../../src/ta_func/ta_LINEARREG_ANGLE.c \ + ../../../../../src/ta_func/ta_LINEARREG_INTERCEPT.c \ + ../../../../../src/ta_func/ta_LINEARREG_SLOPE.c \ + ../../../../../src/ta_func/ta_LN.c \ + ../../../../../src/ta_func/ta_LOG10.c \ + ../../../../../src/ta_func/ta_MA.c \ + ../../../../../src/ta_func/ta_MACD.c \ + ../../../../../src/ta_func/ta_MACDEXT.c \ + ../../../../../src/ta_func/ta_MACDFIX.c \ + ../../../../../src/ta_func/ta_MAMA.c \ + ../../../../../src/ta_func/ta_MAVP.c \ + ../../../../../src/ta_func/ta_MAX.c \ + ../../../../../src/ta_func/ta_MAXINDEX.c \ + ../../../../../src/ta_func/ta_MEDPRICE.c \ + ../../../../../src/ta_func/ta_MFI.c \ + ../../../../../src/ta_func/ta_MIDPOINT.c \ + ../../../../../src/ta_func/ta_MIDPRICE.c \ + ../../../../../src/ta_func/ta_MIN.c \ + ../../../../../src/ta_func/ta_MININDEX.c \ + ../../../../../src/ta_func/ta_MINMAX.c \ + ../../../../../src/ta_func/ta_MINMAXINDEX.c \ + ../../../../../src/ta_func/ta_MINUS_DI.c \ + ../../../../../src/ta_func/ta_MINUS_DM.c \ + ../../../../../src/ta_func/ta_MOM.c \ + ../../../../../src/ta_func/ta_MULT.c \ + ../../../../../src/ta_func/ta_NATR.c \ + ../../../../../src/ta_func/ta_OBV.c \ + ../../../../../src/ta_func/ta_PLUS_DI.c \ + ../../../../../src/ta_func/ta_PLUS_DM.c \ + ../../../../../src/ta_func/ta_PPO.c \ + ../../../../../src/ta_func/ta_ROC.c \ + ../../../../../src/ta_func/ta_ROCP.c \ + ../../../../../src/ta_func/ta_ROCR.c \ + ../../../../../src/ta_func/ta_ROCR100.c \ + ../../../../../src/ta_func/ta_RSI.c \ + ../../../../../src/ta_func/ta_SAR.c \ + ../../../../../src/ta_func/ta_SAREXT.c \ + ../../../../../src/ta_func/ta_SIN.c \ + ../../../../../src/ta_func/ta_SINH.c \ + ../../../../../src/ta_func/ta_SMA.c \ + ../../../../../src/ta_func/ta_SQRT.c \ + ../../../../../src/ta_func/ta_STDDEV.c \ + ../../../../../src/ta_func/ta_STOCH.c \ + ../../../../../src/ta_func/ta_STOCHF.c \ + ../../../../../src/ta_func/ta_STOCHRSI.c \ + ../../../../../src/ta_func/ta_SUB.c \ + ../../../../../src/ta_func/ta_SUM.c \ + ../../../../../src/ta_func/ta_T3.c \ + ../../../../../src/ta_func/ta_TAN.c \ + ../../../../../src/ta_func/ta_TANH.c \ + ../../../../../src/ta_func/ta_TEMA.c \ + ../../../../../src/ta_func/ta_TRANGE.c \ + ../../../../../src/ta_func/ta_TRIMA.c \ + ../../../../../src/ta_func/ta_TRIX.c \ + ../../../../../src/ta_func/ta_TSF.c \ + ../../../../../src/ta_func/ta_TYPPRICE.c \ + ../../../../../src/ta_func/ta_ULTOSC.c \ + ../../../../../src/ta_func/ta_VAR.c \ + ../../../../../src/ta_func/ta_WCLPRICE.c \ + ../../../../../src/ta_func/ta_WILLR.c \ + ../../../../../src/ta_func/ta_WMA.c +OBJECTS = ../../../../../temp/cmr/ta_utility.o \ + ../../../../../temp/cmr/ta_ACOS.o \ + ../../../../../temp/cmr/ta_AD.o \ + ../../../../../temp/cmr/ta_ADD.o \ + ../../../../../temp/cmr/ta_ADOSC.o \ + ../../../../../temp/cmr/ta_ADX.o \ + ../../../../../temp/cmr/ta_ADXR.o \ + ../../../../../temp/cmr/ta_APO.o \ + ../../../../../temp/cmr/ta_AROON.o \ + ../../../../../temp/cmr/ta_AROONOSC.o \ + ../../../../../temp/cmr/ta_ASIN.o \ + ../../../../../temp/cmr/ta_ATAN.o \ + ../../../../../temp/cmr/ta_ATR.o \ + ../../../../../temp/cmr/ta_AVGPRICE.o \ + ../../../../../temp/cmr/ta_BBANDS.o \ + ../../../../../temp/cmr/ta_BETA.o \ + ../../../../../temp/cmr/ta_BOP.o \ + ../../../../../temp/cmr/ta_CCI.o \ + ../../../../../temp/cmr/ta_CDL2CROWS.o \ + ../../../../../temp/cmr/ta_CDL3BLACKCROWS.o \ + ../../../../../temp/cmr/ta_CDL3INSIDE.o \ + ../../../../../temp/cmr/ta_CDL3LINESTRIKE.o \ + ../../../../../temp/cmr/ta_CDL3OUTSIDE.o \ + ../../../../../temp/cmr/ta_CDL3STARSINSOUTH.o \ + ../../../../../temp/cmr/ta_CDL3WHITESOLDIERS.o \ + ../../../../../temp/cmr/ta_CDLABANDONEDBABY.o \ + ../../../../../temp/cmr/ta_CDLADVANCEBLOCK.o \ + ../../../../../temp/cmr/ta_CDLBELTHOLD.o \ + ../../../../../temp/cmr/ta_CDLBREAKAWAY.o \ + ../../../../../temp/cmr/ta_CDLCLOSINGMARUBOZU.o \ + ../../../../../temp/cmr/ta_CDLCONCEALBABYSWALL.o \ + ../../../../../temp/cmr/ta_CDLCOUNTERATTACK.o \ + ../../../../../temp/cmr/ta_CDLDARKCLOUDCOVER.o \ + ../../../../../temp/cmr/ta_CDLDOJI.o \ + ../../../../../temp/cmr/ta_CDLDOJISTAR.o \ + ../../../../../temp/cmr/ta_CDLDRAGONFLYDOJI.o \ + ../../../../../temp/cmr/ta_CDLENGULFING.o \ + ../../../../../temp/cmr/ta_CDLEVENINGDOJISTAR.o \ + ../../../../../temp/cmr/ta_CDLEVENINGSTAR.o \ + ../../../../../temp/cmr/ta_CDLGAPSIDESIDEWHITE.o \ + ../../../../../temp/cmr/ta_CDLGRAVESTONEDOJI.o \ + ../../../../../temp/cmr/ta_CDLHAMMER.o \ + ../../../../../temp/cmr/ta_CDLHANGINGMAN.o \ + ../../../../../temp/cmr/ta_CDLHARAMI.o \ + ../../../../../temp/cmr/ta_CDLHARAMICROSS.o \ + ../../../../../temp/cmr/ta_CDLHIGHWAVE.o \ + ../../../../../temp/cmr/ta_CDLHIKKAKE.o \ + ../../../../../temp/cmr/ta_CDLHIKKAKEMOD.o \ + ../../../../../temp/cmr/ta_CDLHOMINGPIGEON.o \ + ../../../../../temp/cmr/ta_CDLIDENTICAL3CROWS.o \ + ../../../../../temp/cmr/ta_CDLINNECK.o \ + ../../../../../temp/cmr/ta_CDLINVERTEDHAMMER.o \ + ../../../../../temp/cmr/ta_CDLKICKING.o \ + ../../../../../temp/cmr/ta_CDLKICKINGBYLENGTH.o \ + ../../../../../temp/cmr/ta_CDLLADDERBOTTOM.o \ + ../../../../../temp/cmr/ta_CDLLONGLEGGEDDOJI.o \ + ../../../../../temp/cmr/ta_CDLLONGLINE.o \ + ../../../../../temp/cmr/ta_CDLMARUBOZU.o \ + ../../../../../temp/cmr/ta_CDLMATCHINGLOW.o \ + ../../../../../temp/cmr/ta_CDLMATHOLD.o \ + ../../../../../temp/cmr/ta_CDLMORNINGDOJISTAR.o \ + ../../../../../temp/cmr/ta_CDLMORNINGSTAR.o \ + ../../../../../temp/cmr/ta_CDLONNECK.o \ + ../../../../../temp/cmr/ta_CDLPIERCING.o \ + ../../../../../temp/cmr/ta_CDLRICKSHAWMAN.o \ + ../../../../../temp/cmr/ta_CDLRISEFALL3METHODS.o \ + ../../../../../temp/cmr/ta_CDLSEPARATINGLINES.o \ + ../../../../../temp/cmr/ta_CDLSHOOTINGSTAR.o \ + ../../../../../temp/cmr/ta_CDLSHORTLINE.o \ + ../../../../../temp/cmr/ta_CDLSPINNINGTOP.o \ + ../../../../../temp/cmr/ta_CDLSTALLEDPATTERN.o \ + ../../../../../temp/cmr/ta_CDLSTICKSANDWICH.o \ + ../../../../../temp/cmr/ta_CDLTAKURI.o \ + ../../../../../temp/cmr/ta_CDLTASUKIGAP.o \ + ../../../../../temp/cmr/ta_CDLTHRUSTING.o \ + ../../../../../temp/cmr/ta_CDLTRISTAR.o \ + ../../../../../temp/cmr/ta_CDLUNIQUE3RIVER.o \ + ../../../../../temp/cmr/ta_CDLUPSIDEGAP2CROWS.o \ + ../../../../../temp/cmr/ta_CDLXSIDEGAP3METHODS.o \ + ../../../../../temp/cmr/ta_CEIL.o \ + ../../../../../temp/cmr/ta_CMO.o \ + ../../../../../temp/cmr/ta_CORREL.o \ + ../../../../../temp/cmr/ta_COS.o \ + ../../../../../temp/cmr/ta_COSH.o \ + ../../../../../temp/cmr/ta_DEMA.o \ + ../../../../../temp/cmr/ta_DIV.o \ + ../../../../../temp/cmr/ta_DX.o \ + ../../../../../temp/cmr/ta_EMA.o \ + ../../../../../temp/cmr/ta_EXP.o \ + ../../../../../temp/cmr/ta_FLOOR.o \ + ../../../../../temp/cmr/ta_HT_DCPERIOD.o \ + ../../../../../temp/cmr/ta_HT_DCPHASE.o \ + ../../../../../temp/cmr/ta_HT_PHASOR.o \ + ../../../../../temp/cmr/ta_HT_SINE.o \ + ../../../../../temp/cmr/ta_HT_TRENDLINE.o \ + ../../../../../temp/cmr/ta_HT_TRENDMODE.o \ + ../../../../../temp/cmr/ta_KAMA.o \ + ../../../../../temp/cmr/ta_LINEARREG.o \ + ../../../../../temp/cmr/ta_LINEARREG_ANGLE.o \ + ../../../../../temp/cmr/ta_LINEARREG_INTERCEPT.o \ + ../../../../../temp/cmr/ta_LINEARREG_SLOPE.o \ + ../../../../../temp/cmr/ta_LN.o \ + ../../../../../temp/cmr/ta_LOG10.o \ + ../../../../../temp/cmr/ta_MA.o \ + ../../../../../temp/cmr/ta_MACD.o \ + ../../../../../temp/cmr/ta_MACDEXT.o \ + ../../../../../temp/cmr/ta_MACDFIX.o \ + ../../../../../temp/cmr/ta_MAMA.o \ + ../../../../../temp/cmr/ta_MAVP.o \ + ../../../../../temp/cmr/ta_MAX.o \ + ../../../../../temp/cmr/ta_MAXINDEX.o \ + ../../../../../temp/cmr/ta_MEDPRICE.o \ + ../../../../../temp/cmr/ta_MFI.o \ + ../../../../../temp/cmr/ta_MIDPOINT.o \ + ../../../../../temp/cmr/ta_MIDPRICE.o \ + ../../../../../temp/cmr/ta_MIN.o \ + ../../../../../temp/cmr/ta_MININDEX.o \ + ../../../../../temp/cmr/ta_MINMAX.o \ + ../../../../../temp/cmr/ta_MINMAXINDEX.o \ + ../../../../../temp/cmr/ta_MINUS_DI.o \ + ../../../../../temp/cmr/ta_MINUS_DM.o \ + ../../../../../temp/cmr/ta_MOM.o \ + ../../../../../temp/cmr/ta_MULT.o \ + ../../../../../temp/cmr/ta_NATR.o \ + ../../../../../temp/cmr/ta_OBV.o \ + ../../../../../temp/cmr/ta_PLUS_DI.o \ + ../../../../../temp/cmr/ta_PLUS_DM.o \ + ../../../../../temp/cmr/ta_PPO.o \ + ../../../../../temp/cmr/ta_ROC.o \ + ../../../../../temp/cmr/ta_ROCP.o \ + ../../../../../temp/cmr/ta_ROCR.o \ + ../../../../../temp/cmr/ta_ROCR100.o \ + ../../../../../temp/cmr/ta_RSI.o \ + ../../../../../temp/cmr/ta_SAR.o \ + ../../../../../temp/cmr/ta_SAREXT.o \ + ../../../../../temp/cmr/ta_SIN.o \ + ../../../../../temp/cmr/ta_SINH.o \ + ../../../../../temp/cmr/ta_SMA.o \ + ../../../../../temp/cmr/ta_SQRT.o \ + ../../../../../temp/cmr/ta_STDDEV.o \ + ../../../../../temp/cmr/ta_STOCH.o \ + ../../../../../temp/cmr/ta_STOCHF.o \ + ../../../../../temp/cmr/ta_STOCHRSI.o \ + ../../../../../temp/cmr/ta_SUB.o \ + ../../../../../temp/cmr/ta_SUM.o \ + ../../../../../temp/cmr/ta_T3.o \ + ../../../../../temp/cmr/ta_TAN.o \ + ../../../../../temp/cmr/ta_TANH.o \ + ../../../../../temp/cmr/ta_TEMA.o \ + ../../../../../temp/cmr/ta_TRANGE.o \ + ../../../../../temp/cmr/ta_TRIMA.o \ + ../../../../../temp/cmr/ta_TRIX.o \ + ../../../../../temp/cmr/ta_TSF.o \ + ../../../../../temp/cmr/ta_TYPPRICE.o \ + ../../../../../temp/cmr/ta_ULTOSC.o \ + ../../../../../temp/cmr/ta_VAR.o \ + ../../../../../temp/cmr/ta_WCLPRICE.o \ + ../../../../../temp/cmr/ta_WILLR.o \ + ../../../../../temp/cmr/ta_WMA.o +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ../../../../../lib/libta_func_cmr.a +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .C .c + +.cpp.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cxx.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cc.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.C.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.c.o: + $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $< + +####### Build rules + + +all: $(TARGET) + +staticlib: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + -rm -f $(TARGET) + $(AR) $(TARGET) $(OBJECTS) $(OBJMOC) + +moc: $(SRCMOC) + +clean: + -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) + -rm -f *~ core + +####### Sub-libraries + + +###### Combined headers + + +####### Compile + +../../../../../temp/cmr/ta_utility.o: ../../../../../src/ta_func/ta_utility.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_utility.o ../../../../../src/ta_func/ta_utility.c + +../../../../../temp/cmr/ta_ACOS.o: ../../../../../src/ta_func/ta_ACOS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_ACOS.o ../../../../../src/ta_func/ta_ACOS.c + +../../../../../temp/cmr/ta_AD.o: ../../../../../src/ta_func/ta_AD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_AD.o ../../../../../src/ta_func/ta_AD.c + +../../../../../temp/cmr/ta_ADD.o: ../../../../../src/ta_func/ta_ADD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_ADD.o ../../../../../src/ta_func/ta_ADD.c + +../../../../../temp/cmr/ta_ADOSC.o: ../../../../../src/ta_func/ta_ADOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_ADOSC.o ../../../../../src/ta_func/ta_ADOSC.c + +../../../../../temp/cmr/ta_ADX.o: ../../../../../src/ta_func/ta_ADX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_ADX.o ../../../../../src/ta_func/ta_ADX.c + +../../../../../temp/cmr/ta_ADXR.o: ../../../../../src/ta_func/ta_ADXR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_ADXR.o ../../../../../src/ta_func/ta_ADXR.c + +../../../../../temp/cmr/ta_APO.o: ../../../../../src/ta_func/ta_APO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_APO.o ../../../../../src/ta_func/ta_APO.c + +../../../../../temp/cmr/ta_AROON.o: ../../../../../src/ta_func/ta_AROON.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_AROON.o ../../../../../src/ta_func/ta_AROON.c + +../../../../../temp/cmr/ta_AROONOSC.o: ../../../../../src/ta_func/ta_AROONOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_AROONOSC.o ../../../../../src/ta_func/ta_AROONOSC.c + +../../../../../temp/cmr/ta_ASIN.o: ../../../../../src/ta_func/ta_ASIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_ASIN.o ../../../../../src/ta_func/ta_ASIN.c + +../../../../../temp/cmr/ta_ATAN.o: ../../../../../src/ta_func/ta_ATAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_ATAN.o ../../../../../src/ta_func/ta_ATAN.c + +../../../../../temp/cmr/ta_ATR.o: ../../../../../src/ta_func/ta_ATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_ATR.o ../../../../../src/ta_func/ta_ATR.c + +../../../../../temp/cmr/ta_AVGPRICE.o: ../../../../../src/ta_func/ta_AVGPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_AVGPRICE.o ../../../../../src/ta_func/ta_AVGPRICE.c + +../../../../../temp/cmr/ta_BBANDS.o: ../../../../../src/ta_func/ta_BBANDS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_BBANDS.o ../../../../../src/ta_func/ta_BBANDS.c + +../../../../../temp/cmr/ta_BETA.o: ../../../../../src/ta_func/ta_BETA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_BETA.o ../../../../../src/ta_func/ta_BETA.c + +../../../../../temp/cmr/ta_BOP.o: ../../../../../src/ta_func/ta_BOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_BOP.o ../../../../../src/ta_func/ta_BOP.c + +../../../../../temp/cmr/ta_CCI.o: ../../../../../src/ta_func/ta_CCI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CCI.o ../../../../../src/ta_func/ta_CCI.c + +../../../../../temp/cmr/ta_CDL2CROWS.o: ../../../../../src/ta_func/ta_CDL2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDL2CROWS.o ../../../../../src/ta_func/ta_CDL2CROWS.c + +../../../../../temp/cmr/ta_CDL3BLACKCROWS.o: ../../../../../src/ta_func/ta_CDL3BLACKCROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDL3BLACKCROWS.o ../../../../../src/ta_func/ta_CDL3BLACKCROWS.c + +../../../../../temp/cmr/ta_CDL3INSIDE.o: ../../../../../src/ta_func/ta_CDL3INSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDL3INSIDE.o ../../../../../src/ta_func/ta_CDL3INSIDE.c + +../../../../../temp/cmr/ta_CDL3LINESTRIKE.o: ../../../../../src/ta_func/ta_CDL3LINESTRIKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDL3LINESTRIKE.o ../../../../../src/ta_func/ta_CDL3LINESTRIKE.c + +../../../../../temp/cmr/ta_CDL3OUTSIDE.o: ../../../../../src/ta_func/ta_CDL3OUTSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDL3OUTSIDE.o ../../../../../src/ta_func/ta_CDL3OUTSIDE.c + +../../../../../temp/cmr/ta_CDL3STARSINSOUTH.o: ../../../../../src/ta_func/ta_CDL3STARSINSOUTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDL3STARSINSOUTH.o ../../../../../src/ta_func/ta_CDL3STARSINSOUTH.c + +../../../../../temp/cmr/ta_CDL3WHITESOLDIERS.o: ../../../../../src/ta_func/ta_CDL3WHITESOLDIERS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDL3WHITESOLDIERS.o ../../../../../src/ta_func/ta_CDL3WHITESOLDIERS.c + +../../../../../temp/cmr/ta_CDLABANDONEDBABY.o: ../../../../../src/ta_func/ta_CDLABANDONEDBABY.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLABANDONEDBABY.o ../../../../../src/ta_func/ta_CDLABANDONEDBABY.c + +../../../../../temp/cmr/ta_CDLADVANCEBLOCK.o: ../../../../../src/ta_func/ta_CDLADVANCEBLOCK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLADVANCEBLOCK.o ../../../../../src/ta_func/ta_CDLADVANCEBLOCK.c + +../../../../../temp/cmr/ta_CDLBELTHOLD.o: ../../../../../src/ta_func/ta_CDLBELTHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLBELTHOLD.o ../../../../../src/ta_func/ta_CDLBELTHOLD.c + +../../../../../temp/cmr/ta_CDLBREAKAWAY.o: ../../../../../src/ta_func/ta_CDLBREAKAWAY.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLBREAKAWAY.o ../../../../../src/ta_func/ta_CDLBREAKAWAY.c + +../../../../../temp/cmr/ta_CDLCLOSINGMARUBOZU.o: ../../../../../src/ta_func/ta_CDLCLOSINGMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLCLOSINGMARUBOZU.o ../../../../../src/ta_func/ta_CDLCLOSINGMARUBOZU.c + +../../../../../temp/cmr/ta_CDLCONCEALBABYSWALL.o: ../../../../../src/ta_func/ta_CDLCONCEALBABYSWALL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLCONCEALBABYSWALL.o ../../../../../src/ta_func/ta_CDLCONCEALBABYSWALL.c + +../../../../../temp/cmr/ta_CDLCOUNTERATTACK.o: ../../../../../src/ta_func/ta_CDLCOUNTERATTACK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLCOUNTERATTACK.o ../../../../../src/ta_func/ta_CDLCOUNTERATTACK.c + +../../../../../temp/cmr/ta_CDLDARKCLOUDCOVER.o: ../../../../../src/ta_func/ta_CDLDARKCLOUDCOVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLDARKCLOUDCOVER.o ../../../../../src/ta_func/ta_CDLDARKCLOUDCOVER.c + +../../../../../temp/cmr/ta_CDLDOJI.o: ../../../../../src/ta_func/ta_CDLDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLDOJI.o ../../../../../src/ta_func/ta_CDLDOJI.c + +../../../../../temp/cmr/ta_CDLDOJISTAR.o: ../../../../../src/ta_func/ta_CDLDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLDOJISTAR.o ../../../../../src/ta_func/ta_CDLDOJISTAR.c + +../../../../../temp/cmr/ta_CDLDRAGONFLYDOJI.o: ../../../../../src/ta_func/ta_CDLDRAGONFLYDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLDRAGONFLYDOJI.o ../../../../../src/ta_func/ta_CDLDRAGONFLYDOJI.c + +../../../../../temp/cmr/ta_CDLENGULFING.o: ../../../../../src/ta_func/ta_CDLENGULFING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLENGULFING.o ../../../../../src/ta_func/ta_CDLENGULFING.c + +../../../../../temp/cmr/ta_CDLEVENINGDOJISTAR.o: ../../../../../src/ta_func/ta_CDLEVENINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLEVENINGDOJISTAR.o ../../../../../src/ta_func/ta_CDLEVENINGDOJISTAR.c + +../../../../../temp/cmr/ta_CDLEVENINGSTAR.o: ../../../../../src/ta_func/ta_CDLEVENINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLEVENINGSTAR.o ../../../../../src/ta_func/ta_CDLEVENINGSTAR.c + +../../../../../temp/cmr/ta_CDLGAPSIDESIDEWHITE.o: ../../../../../src/ta_func/ta_CDLGAPSIDESIDEWHITE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLGAPSIDESIDEWHITE.o ../../../../../src/ta_func/ta_CDLGAPSIDESIDEWHITE.c + +../../../../../temp/cmr/ta_CDLGRAVESTONEDOJI.o: ../../../../../src/ta_func/ta_CDLGRAVESTONEDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLGRAVESTONEDOJI.o ../../../../../src/ta_func/ta_CDLGRAVESTONEDOJI.c + +../../../../../temp/cmr/ta_CDLHAMMER.o: ../../../../../src/ta_func/ta_CDLHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLHAMMER.o ../../../../../src/ta_func/ta_CDLHAMMER.c + +../../../../../temp/cmr/ta_CDLHANGINGMAN.o: ../../../../../src/ta_func/ta_CDLHANGINGMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLHANGINGMAN.o ../../../../../src/ta_func/ta_CDLHANGINGMAN.c + +../../../../../temp/cmr/ta_CDLHARAMI.o: ../../../../../src/ta_func/ta_CDLHARAMI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLHARAMI.o ../../../../../src/ta_func/ta_CDLHARAMI.c + +../../../../../temp/cmr/ta_CDLHARAMICROSS.o: ../../../../../src/ta_func/ta_CDLHARAMICROSS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLHARAMICROSS.o ../../../../../src/ta_func/ta_CDLHARAMICROSS.c + +../../../../../temp/cmr/ta_CDLHIGHWAVE.o: ../../../../../src/ta_func/ta_CDLHIGHWAVE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLHIGHWAVE.o ../../../../../src/ta_func/ta_CDLHIGHWAVE.c + +../../../../../temp/cmr/ta_CDLHIKKAKE.o: ../../../../../src/ta_func/ta_CDLHIKKAKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLHIKKAKE.o ../../../../../src/ta_func/ta_CDLHIKKAKE.c + +../../../../../temp/cmr/ta_CDLHIKKAKEMOD.o: ../../../../../src/ta_func/ta_CDLHIKKAKEMOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLHIKKAKEMOD.o ../../../../../src/ta_func/ta_CDLHIKKAKEMOD.c + +../../../../../temp/cmr/ta_CDLHOMINGPIGEON.o: ../../../../../src/ta_func/ta_CDLHOMINGPIGEON.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLHOMINGPIGEON.o ../../../../../src/ta_func/ta_CDLHOMINGPIGEON.c + +../../../../../temp/cmr/ta_CDLIDENTICAL3CROWS.o: ../../../../../src/ta_func/ta_CDLIDENTICAL3CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLIDENTICAL3CROWS.o ../../../../../src/ta_func/ta_CDLIDENTICAL3CROWS.c + +../../../../../temp/cmr/ta_CDLINNECK.o: ../../../../../src/ta_func/ta_CDLINNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLINNECK.o ../../../../../src/ta_func/ta_CDLINNECK.c + +../../../../../temp/cmr/ta_CDLINVERTEDHAMMER.o: ../../../../../src/ta_func/ta_CDLINVERTEDHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLINVERTEDHAMMER.o ../../../../../src/ta_func/ta_CDLINVERTEDHAMMER.c + +../../../../../temp/cmr/ta_CDLKICKING.o: ../../../../../src/ta_func/ta_CDLKICKING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLKICKING.o ../../../../../src/ta_func/ta_CDLKICKING.c + +../../../../../temp/cmr/ta_CDLKICKINGBYLENGTH.o: ../../../../../src/ta_func/ta_CDLKICKINGBYLENGTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLKICKINGBYLENGTH.o ../../../../../src/ta_func/ta_CDLKICKINGBYLENGTH.c + +../../../../../temp/cmr/ta_CDLLADDERBOTTOM.o: ../../../../../src/ta_func/ta_CDLLADDERBOTTOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLLADDERBOTTOM.o ../../../../../src/ta_func/ta_CDLLADDERBOTTOM.c + +../../../../../temp/cmr/ta_CDLLONGLEGGEDDOJI.o: ../../../../../src/ta_func/ta_CDLLONGLEGGEDDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLLONGLEGGEDDOJI.o ../../../../../src/ta_func/ta_CDLLONGLEGGEDDOJI.c + +../../../../../temp/cmr/ta_CDLLONGLINE.o: ../../../../../src/ta_func/ta_CDLLONGLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLLONGLINE.o ../../../../../src/ta_func/ta_CDLLONGLINE.c + +../../../../../temp/cmr/ta_CDLMARUBOZU.o: ../../../../../src/ta_func/ta_CDLMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLMARUBOZU.o ../../../../../src/ta_func/ta_CDLMARUBOZU.c + +../../../../../temp/cmr/ta_CDLMATCHINGLOW.o: ../../../../../src/ta_func/ta_CDLMATCHINGLOW.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLMATCHINGLOW.o ../../../../../src/ta_func/ta_CDLMATCHINGLOW.c + +../../../../../temp/cmr/ta_CDLMATHOLD.o: ../../../../../src/ta_func/ta_CDLMATHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLMATHOLD.o ../../../../../src/ta_func/ta_CDLMATHOLD.c + +../../../../../temp/cmr/ta_CDLMORNINGDOJISTAR.o: ../../../../../src/ta_func/ta_CDLMORNINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLMORNINGDOJISTAR.o ../../../../../src/ta_func/ta_CDLMORNINGDOJISTAR.c + +../../../../../temp/cmr/ta_CDLMORNINGSTAR.o: ../../../../../src/ta_func/ta_CDLMORNINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLMORNINGSTAR.o ../../../../../src/ta_func/ta_CDLMORNINGSTAR.c + +../../../../../temp/cmr/ta_CDLONNECK.o: ../../../../../src/ta_func/ta_CDLONNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLONNECK.o ../../../../../src/ta_func/ta_CDLONNECK.c + +../../../../../temp/cmr/ta_CDLPIERCING.o: ../../../../../src/ta_func/ta_CDLPIERCING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLPIERCING.o ../../../../../src/ta_func/ta_CDLPIERCING.c + +../../../../../temp/cmr/ta_CDLRICKSHAWMAN.o: ../../../../../src/ta_func/ta_CDLRICKSHAWMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLRICKSHAWMAN.o ../../../../../src/ta_func/ta_CDLRICKSHAWMAN.c + +../../../../../temp/cmr/ta_CDLRISEFALL3METHODS.o: ../../../../../src/ta_func/ta_CDLRISEFALL3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLRISEFALL3METHODS.o ../../../../../src/ta_func/ta_CDLRISEFALL3METHODS.c + +../../../../../temp/cmr/ta_CDLSEPARATINGLINES.o: ../../../../../src/ta_func/ta_CDLSEPARATINGLINES.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLSEPARATINGLINES.o ../../../../../src/ta_func/ta_CDLSEPARATINGLINES.c + +../../../../../temp/cmr/ta_CDLSHOOTINGSTAR.o: ../../../../../src/ta_func/ta_CDLSHOOTINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLSHOOTINGSTAR.o ../../../../../src/ta_func/ta_CDLSHOOTINGSTAR.c + +../../../../../temp/cmr/ta_CDLSHORTLINE.o: ../../../../../src/ta_func/ta_CDLSHORTLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLSHORTLINE.o ../../../../../src/ta_func/ta_CDLSHORTLINE.c + +../../../../../temp/cmr/ta_CDLSPINNINGTOP.o: ../../../../../src/ta_func/ta_CDLSPINNINGTOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLSPINNINGTOP.o ../../../../../src/ta_func/ta_CDLSPINNINGTOP.c + +../../../../../temp/cmr/ta_CDLSTALLEDPATTERN.o: ../../../../../src/ta_func/ta_CDLSTALLEDPATTERN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLSTALLEDPATTERN.o ../../../../../src/ta_func/ta_CDLSTALLEDPATTERN.c + +../../../../../temp/cmr/ta_CDLSTICKSANDWICH.o: ../../../../../src/ta_func/ta_CDLSTICKSANDWICH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLSTICKSANDWICH.o ../../../../../src/ta_func/ta_CDLSTICKSANDWICH.c + +../../../../../temp/cmr/ta_CDLTAKURI.o: ../../../../../src/ta_func/ta_CDLTAKURI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLTAKURI.o ../../../../../src/ta_func/ta_CDLTAKURI.c + +../../../../../temp/cmr/ta_CDLTASUKIGAP.o: ../../../../../src/ta_func/ta_CDLTASUKIGAP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLTASUKIGAP.o ../../../../../src/ta_func/ta_CDLTASUKIGAP.c + +../../../../../temp/cmr/ta_CDLTHRUSTING.o: ../../../../../src/ta_func/ta_CDLTHRUSTING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLTHRUSTING.o ../../../../../src/ta_func/ta_CDLTHRUSTING.c + +../../../../../temp/cmr/ta_CDLTRISTAR.o: ../../../../../src/ta_func/ta_CDLTRISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLTRISTAR.o ../../../../../src/ta_func/ta_CDLTRISTAR.c + +../../../../../temp/cmr/ta_CDLUNIQUE3RIVER.o: ../../../../../src/ta_func/ta_CDLUNIQUE3RIVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLUNIQUE3RIVER.o ../../../../../src/ta_func/ta_CDLUNIQUE3RIVER.c + +../../../../../temp/cmr/ta_CDLUPSIDEGAP2CROWS.o: ../../../../../src/ta_func/ta_CDLUPSIDEGAP2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLUPSIDEGAP2CROWS.o ../../../../../src/ta_func/ta_CDLUPSIDEGAP2CROWS.c + +../../../../../temp/cmr/ta_CDLXSIDEGAP3METHODS.o: ../../../../../src/ta_func/ta_CDLXSIDEGAP3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLXSIDEGAP3METHODS.o ../../../../../src/ta_func/ta_CDLXSIDEGAP3METHODS.c + +../../../../../temp/cmr/ta_CEIL.o: ../../../../../src/ta_func/ta_CEIL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CEIL.o ../../../../../src/ta_func/ta_CEIL.c + +../../../../../temp/cmr/ta_CMO.o: ../../../../../src/ta_func/ta_CMO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CMO.o ../../../../../src/ta_func/ta_CMO.c + +../../../../../temp/cmr/ta_CORREL.o: ../../../../../src/ta_func/ta_CORREL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CORREL.o ../../../../../src/ta_func/ta_CORREL.c + +../../../../../temp/cmr/ta_COS.o: ../../../../../src/ta_func/ta_COS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_COS.o ../../../../../src/ta_func/ta_COS.c + +../../../../../temp/cmr/ta_COSH.o: ../../../../../src/ta_func/ta_COSH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_COSH.o ../../../../../src/ta_func/ta_COSH.c + +../../../../../temp/cmr/ta_DEMA.o: ../../../../../src/ta_func/ta_DEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_DEMA.o ../../../../../src/ta_func/ta_DEMA.c + +../../../../../temp/cmr/ta_DIV.o: ../../../../../src/ta_func/ta_DIV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_DIV.o ../../../../../src/ta_func/ta_DIV.c + +../../../../../temp/cmr/ta_DX.o: ../../../../../src/ta_func/ta_DX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_DX.o ../../../../../src/ta_func/ta_DX.c + +../../../../../temp/cmr/ta_EMA.o: ../../../../../src/ta_func/ta_EMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_EMA.o ../../../../../src/ta_func/ta_EMA.c + +../../../../../temp/cmr/ta_EXP.o: ../../../../../src/ta_func/ta_EXP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_EXP.o ../../../../../src/ta_func/ta_EXP.c + +../../../../../temp/cmr/ta_FLOOR.o: ../../../../../src/ta_func/ta_FLOOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_FLOOR.o ../../../../../src/ta_func/ta_FLOOR.c + +../../../../../temp/cmr/ta_HT_DCPERIOD.o: ../../../../../src/ta_func/ta_HT_DCPERIOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_HT_DCPERIOD.o ../../../../../src/ta_func/ta_HT_DCPERIOD.c + +../../../../../temp/cmr/ta_HT_DCPHASE.o: ../../../../../src/ta_func/ta_HT_DCPHASE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_HT_DCPHASE.o ../../../../../src/ta_func/ta_HT_DCPHASE.c + +../../../../../temp/cmr/ta_HT_PHASOR.o: ../../../../../src/ta_func/ta_HT_PHASOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_HT_PHASOR.o ../../../../../src/ta_func/ta_HT_PHASOR.c + +../../../../../temp/cmr/ta_HT_SINE.o: ../../../../../src/ta_func/ta_HT_SINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_HT_SINE.o ../../../../../src/ta_func/ta_HT_SINE.c + +../../../../../temp/cmr/ta_HT_TRENDLINE.o: ../../../../../src/ta_func/ta_HT_TRENDLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_HT_TRENDLINE.o ../../../../../src/ta_func/ta_HT_TRENDLINE.c + +../../../../../temp/cmr/ta_HT_TRENDMODE.o: ../../../../../src/ta_func/ta_HT_TRENDMODE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_HT_TRENDMODE.o ../../../../../src/ta_func/ta_HT_TRENDMODE.c + +../../../../../temp/cmr/ta_KAMA.o: ../../../../../src/ta_func/ta_KAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_KAMA.o ../../../../../src/ta_func/ta_KAMA.c + +../../../../../temp/cmr/ta_LINEARREG.o: ../../../../../src/ta_func/ta_LINEARREG.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_LINEARREG.o ../../../../../src/ta_func/ta_LINEARREG.c + +../../../../../temp/cmr/ta_LINEARREG_ANGLE.o: ../../../../../src/ta_func/ta_LINEARREG_ANGLE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_LINEARREG_ANGLE.o ../../../../../src/ta_func/ta_LINEARREG_ANGLE.c + +../../../../../temp/cmr/ta_LINEARREG_INTERCEPT.o: ../../../../../src/ta_func/ta_LINEARREG_INTERCEPT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_LINEARREG_INTERCEPT.o ../../../../../src/ta_func/ta_LINEARREG_INTERCEPT.c + +../../../../../temp/cmr/ta_LINEARREG_SLOPE.o: ../../../../../src/ta_func/ta_LINEARREG_SLOPE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_LINEARREG_SLOPE.o ../../../../../src/ta_func/ta_LINEARREG_SLOPE.c + +../../../../../temp/cmr/ta_LN.o: ../../../../../src/ta_func/ta_LN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_LN.o ../../../../../src/ta_func/ta_LN.c + +../../../../../temp/cmr/ta_LOG10.o: ../../../../../src/ta_func/ta_LOG10.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_LOG10.o ../../../../../src/ta_func/ta_LOG10.c + +../../../../../temp/cmr/ta_MA.o: ../../../../../src/ta_func/ta_MA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_MA.o ../../../../../src/ta_func/ta_MA.c + +../../../../../temp/cmr/ta_MACD.o: ../../../../../src/ta_func/ta_MACD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_MACD.o ../../../../../src/ta_func/ta_MACD.c + +../../../../../temp/cmr/ta_MACDEXT.o: ../../../../../src/ta_func/ta_MACDEXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_MACDEXT.o ../../../../../src/ta_func/ta_MACDEXT.c + +../../../../../temp/cmr/ta_MACDFIX.o: ../../../../../src/ta_func/ta_MACDFIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_MACDFIX.o ../../../../../src/ta_func/ta_MACDFIX.c + +../../../../../temp/cmr/ta_MAMA.o: ../../../../../src/ta_func/ta_MAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_MAMA.o ../../../../../src/ta_func/ta_MAMA.c + +../../../../../temp/cmr/ta_MAVP.o: ../../../../../src/ta_func/ta_MAVP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_MAVP.o ../../../../../src/ta_func/ta_MAVP.c + +../../../../../temp/cmr/ta_MAX.o: ../../../../../src/ta_func/ta_MAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_MAX.o ../../../../../src/ta_func/ta_MAX.c + +../../../../../temp/cmr/ta_MAXINDEX.o: ../../../../../src/ta_func/ta_MAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_MAXINDEX.o ../../../../../src/ta_func/ta_MAXINDEX.c + +../../../../../temp/cmr/ta_MEDPRICE.o: ../../../../../src/ta_func/ta_MEDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_MEDPRICE.o ../../../../../src/ta_func/ta_MEDPRICE.c + +../../../../../temp/cmr/ta_MFI.o: ../../../../../src/ta_func/ta_MFI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_MFI.o ../../../../../src/ta_func/ta_MFI.c + +../../../../../temp/cmr/ta_MIDPOINT.o: ../../../../../src/ta_func/ta_MIDPOINT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_MIDPOINT.o ../../../../../src/ta_func/ta_MIDPOINT.c + +../../../../../temp/cmr/ta_MIDPRICE.o: ../../../../../src/ta_func/ta_MIDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_MIDPRICE.o ../../../../../src/ta_func/ta_MIDPRICE.c + +../../../../../temp/cmr/ta_MIN.o: ../../../../../src/ta_func/ta_MIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_MIN.o ../../../../../src/ta_func/ta_MIN.c + +../../../../../temp/cmr/ta_MININDEX.o: ../../../../../src/ta_func/ta_MININDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_MININDEX.o ../../../../../src/ta_func/ta_MININDEX.c + +../../../../../temp/cmr/ta_MINMAX.o: ../../../../../src/ta_func/ta_MINMAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_MINMAX.o ../../../../../src/ta_func/ta_MINMAX.c + +../../../../../temp/cmr/ta_MINMAXINDEX.o: ../../../../../src/ta_func/ta_MINMAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_MINMAXINDEX.o ../../../../../src/ta_func/ta_MINMAXINDEX.c + +../../../../../temp/cmr/ta_MINUS_DI.o: ../../../../../src/ta_func/ta_MINUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_MINUS_DI.o ../../../../../src/ta_func/ta_MINUS_DI.c + +../../../../../temp/cmr/ta_MINUS_DM.o: ../../../../../src/ta_func/ta_MINUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_MINUS_DM.o ../../../../../src/ta_func/ta_MINUS_DM.c + +../../../../../temp/cmr/ta_MOM.o: ../../../../../src/ta_func/ta_MOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_MOM.o ../../../../../src/ta_func/ta_MOM.c + +../../../../../temp/cmr/ta_MULT.o: ../../../../../src/ta_func/ta_MULT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_MULT.o ../../../../../src/ta_func/ta_MULT.c + +../../../../../temp/cmr/ta_NATR.o: ../../../../../src/ta_func/ta_NATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_NATR.o ../../../../../src/ta_func/ta_NATR.c + +../../../../../temp/cmr/ta_OBV.o: ../../../../../src/ta_func/ta_OBV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_OBV.o ../../../../../src/ta_func/ta_OBV.c + +../../../../../temp/cmr/ta_PLUS_DI.o: ../../../../../src/ta_func/ta_PLUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_PLUS_DI.o ../../../../../src/ta_func/ta_PLUS_DI.c + +../../../../../temp/cmr/ta_PLUS_DM.o: ../../../../../src/ta_func/ta_PLUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_PLUS_DM.o ../../../../../src/ta_func/ta_PLUS_DM.c + +../../../../../temp/cmr/ta_PPO.o: ../../../../../src/ta_func/ta_PPO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_PPO.o ../../../../../src/ta_func/ta_PPO.c + +../../../../../temp/cmr/ta_ROC.o: ../../../../../src/ta_func/ta_ROC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_ROC.o ../../../../../src/ta_func/ta_ROC.c + +../../../../../temp/cmr/ta_ROCP.o: ../../../../../src/ta_func/ta_ROCP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_ROCP.o ../../../../../src/ta_func/ta_ROCP.c + +../../../../../temp/cmr/ta_ROCR.o: ../../../../../src/ta_func/ta_ROCR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_ROCR.o ../../../../../src/ta_func/ta_ROCR.c + +../../../../../temp/cmr/ta_ROCR100.o: ../../../../../src/ta_func/ta_ROCR100.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_ROCR100.o ../../../../../src/ta_func/ta_ROCR100.c + +../../../../../temp/cmr/ta_RSI.o: ../../../../../src/ta_func/ta_RSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_RSI.o ../../../../../src/ta_func/ta_RSI.c + +../../../../../temp/cmr/ta_SAR.o: ../../../../../src/ta_func/ta_SAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_SAR.o ../../../../../src/ta_func/ta_SAR.c + +../../../../../temp/cmr/ta_SAREXT.o: ../../../../../src/ta_func/ta_SAREXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_SAREXT.o ../../../../../src/ta_func/ta_SAREXT.c + +../../../../../temp/cmr/ta_SIN.o: ../../../../../src/ta_func/ta_SIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_SIN.o ../../../../../src/ta_func/ta_SIN.c + +../../../../../temp/cmr/ta_SINH.o: ../../../../../src/ta_func/ta_SINH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_SINH.o ../../../../../src/ta_func/ta_SINH.c + +../../../../../temp/cmr/ta_SMA.o: ../../../../../src/ta_func/ta_SMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_SMA.o ../../../../../src/ta_func/ta_SMA.c + +../../../../../temp/cmr/ta_SQRT.o: ../../../../../src/ta_func/ta_SQRT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_SQRT.o ../../../../../src/ta_func/ta_SQRT.c + +../../../../../temp/cmr/ta_STDDEV.o: ../../../../../src/ta_func/ta_STDDEV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_STDDEV.o ../../../../../src/ta_func/ta_STDDEV.c + +../../../../../temp/cmr/ta_STOCH.o: ../../../../../src/ta_func/ta_STOCH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_STOCH.o ../../../../../src/ta_func/ta_STOCH.c + +../../../../../temp/cmr/ta_STOCHF.o: ../../../../../src/ta_func/ta_STOCHF.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_STOCHF.o ../../../../../src/ta_func/ta_STOCHF.c + +../../../../../temp/cmr/ta_STOCHRSI.o: ../../../../../src/ta_func/ta_STOCHRSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_STOCHRSI.o ../../../../../src/ta_func/ta_STOCHRSI.c + +../../../../../temp/cmr/ta_SUB.o: ../../../../../src/ta_func/ta_SUB.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_SUB.o ../../../../../src/ta_func/ta_SUB.c + +../../../../../temp/cmr/ta_SUM.o: ../../../../../src/ta_func/ta_SUM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_SUM.o ../../../../../src/ta_func/ta_SUM.c + +../../../../../temp/cmr/ta_T3.o: ../../../../../src/ta_func/ta_T3.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_T3.o ../../../../../src/ta_func/ta_T3.c + +../../../../../temp/cmr/ta_TAN.o: ../../../../../src/ta_func/ta_TAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_TAN.o ../../../../../src/ta_func/ta_TAN.c + +../../../../../temp/cmr/ta_TANH.o: ../../../../../src/ta_func/ta_TANH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_TANH.o ../../../../../src/ta_func/ta_TANH.c + +../../../../../temp/cmr/ta_TEMA.o: ../../../../../src/ta_func/ta_TEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_TEMA.o ../../../../../src/ta_func/ta_TEMA.c + +../../../../../temp/cmr/ta_TRANGE.o: ../../../../../src/ta_func/ta_TRANGE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_TRANGE.o ../../../../../src/ta_func/ta_TRANGE.c + +../../../../../temp/cmr/ta_TRIMA.o: ../../../../../src/ta_func/ta_TRIMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_TRIMA.o ../../../../../src/ta_func/ta_TRIMA.c + +../../../../../temp/cmr/ta_TRIX.o: ../../../../../src/ta_func/ta_TRIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_TRIX.o ../../../../../src/ta_func/ta_TRIX.c + +../../../../../temp/cmr/ta_TSF.o: ../../../../../src/ta_func/ta_TSF.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_TSF.o ../../../../../src/ta_func/ta_TSF.c + +../../../../../temp/cmr/ta_TYPPRICE.o: ../../../../../src/ta_func/ta_TYPPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_TYPPRICE.o ../../../../../src/ta_func/ta_TYPPRICE.c + +../../../../../temp/cmr/ta_ULTOSC.o: ../../../../../src/ta_func/ta_ULTOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_ULTOSC.o ../../../../../src/ta_func/ta_ULTOSC.c + +../../../../../temp/cmr/ta_VAR.o: ../../../../../src/ta_func/ta_VAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_VAR.o ../../../../../src/ta_func/ta_VAR.c + +../../../../../temp/cmr/ta_WCLPRICE.o: ../../../../../src/ta_func/ta_WCLPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_WCLPRICE.o ../../../../../src/ta_func/ta_WCLPRICE.c + +../../../../../temp/cmr/ta_WILLR.o: ../../../../../src/ta_func/ta_WILLR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_WILLR.o ../../../../../src/ta_func/ta_WILLR.c + +../../../../../temp/cmr/ta_WMA.o: ../../../../../src/ta_func/ta_WMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_WMA.o ../../../../../src/ta_func/ta_WMA.c + diff --git a/make/cmr/cygwin/g++/ta_libc/Makefile b/make/cmr/cygwin/g++/ta_libc/Makefile new file mode 100644 index 000000000..23cb84313 --- /dev/null +++ b/make/cmr/cygwin/g++/ta_libc/Makefile @@ -0,0 +1,1053 @@ +############################################################################# +# Makefile for building ../../../../../lib/libta_libc_cmr.a +# Generated by tmake; +# Project: ta_libc/ta_libc +# Template: lib +############################################################################# + +####### Compiler, tools and options + +CC = gcc +CXX = g++ +CFLAGS = -pipe -Wall -W -O2 -fno-strict-aliasing -D_REENTRANT -DQT_THREAD_SUPPORT -DNO_DEBUG +CXXFLAGS= -pipe -Wall -W -O2 -fno-strict-aliasing -D_REENTRANT -DQT_THREAD_SUPPORT -DNO_DEBUG +INCPATH = -I../../../../../src/ta_common -I../../../../../include -I../../../../../src/ta_abstract -I../../../../../src/ta_abstract/tables -I../../../../../src/ta_abstract/frames -I$(QTDIR)/include +AR = ar cqs +RANLIB = +MOC = $(QTDIR)/bin/moc +UIC = $(QTDIR)/bin/uic + +TAR = tar -cf +GZIP = gzip -9f + +####### Support for 64-bit systems +ifeq ($(shell uname -m), x86_64) + CFLAGS += -march=x86-64 -m64 -D__64BIT__ + CXXFLAGS += -march=x86-64 -m64 -D__64BIT__ +endif + +####### Apply additional overruling user flags, if any +CFLAGS += $(CUSERFLAGS) +CXXFLAGS += $(CUSERFLAGS) + +####### Files + +HEADERS = +SOURCES = ../../../../../src/ta_common/ta_global.c \ + ../../../../../src/ta_common/ta_retcode.c \ + ../../../../../src/ta_common/ta_version.c \ + ../../../../../src/ta_abstract/ta_abstract.c \ + ../../../../../src/ta_abstract/ta_def_ui.c \ + ../../../../../src/ta_abstract/ta_func_api.c \ + ../../../../../src/ta_abstract/ta_group_idx.c \ + ../../../../../src/ta_abstract/frames/ta_frame.c \ + ../../../../../src/ta_abstract/tables/table_a.c \ + ../../../../../src/ta_abstract/tables/table_b.c \ + ../../../../../src/ta_abstract/tables/table_c.c \ + ../../../../../src/ta_abstract/tables/table_d.c \ + ../../../../../src/ta_abstract/tables/table_e.c \ + ../../../../../src/ta_abstract/tables/table_f.c \ + ../../../../../src/ta_abstract/tables/table_g.c \ + ../../../../../src/ta_abstract/tables/table_h.c \ + ../../../../../src/ta_abstract/tables/table_i.c \ + ../../../../../src/ta_abstract/tables/table_j.c \ + ../../../../../src/ta_abstract/tables/table_k.c \ + ../../../../../src/ta_abstract/tables/table_l.c \ + ../../../../../src/ta_abstract/tables/table_m.c \ + ../../../../../src/ta_abstract/tables/table_n.c \ + ../../../../../src/ta_abstract/tables/table_o.c \ + ../../../../../src/ta_abstract/tables/table_p.c \ + ../../../../../src/ta_abstract/tables/table_q.c \ + ../../../../../src/ta_abstract/tables/table_r.c \ + ../../../../../src/ta_abstract/tables/table_s.c \ + ../../../../../src/ta_abstract/tables/table_t.c \ + ../../../../../src/ta_abstract/tables/table_u.c \ + ../../../../../src/ta_abstract/tables/table_v.c \ + ../../../../../src/ta_abstract/tables/table_w.c \ + ../../../../../src/ta_abstract/tables/table_x.c \ + ../../../../../src/ta_abstract/tables/table_y.c \ + ../../../../../src/ta_abstract/tables/table_z.c \ + ../../../../../src/ta_func/ta_utility.c \ + ../../../../../src/ta_func/ta_ACOS.c \ + ../../../../../src/ta_func/ta_AD.c \ + ../../../../../src/ta_func/ta_ADD.c \ + ../../../../../src/ta_func/ta_ADOSC.c \ + ../../../../../src/ta_func/ta_ADX.c \ + ../../../../../src/ta_func/ta_ADXR.c \ + ../../../../../src/ta_func/ta_APO.c \ + ../../../../../src/ta_func/ta_AROON.c \ + ../../../../../src/ta_func/ta_AROONOSC.c \ + ../../../../../src/ta_func/ta_ASIN.c \ + ../../../../../src/ta_func/ta_ATAN.c \ + ../../../../../src/ta_func/ta_ATR.c \ + ../../../../../src/ta_func/ta_AVGPRICE.c \ + ../../../../../src/ta_func/ta_BBANDS.c \ + ../../../../../src/ta_func/ta_BETA.c \ + ../../../../../src/ta_func/ta_BOP.c \ + ../../../../../src/ta_func/ta_CCI.c \ + ../../../../../src/ta_func/ta_CDL2CROWS.c \ + ../../../../../src/ta_func/ta_CDL3BLACKCROWS.c \ + ../../../../../src/ta_func/ta_CDL3INSIDE.c \ + ../../../../../src/ta_func/ta_CDL3LINESTRIKE.c \ + ../../../../../src/ta_func/ta_CDL3OUTSIDE.c \ + ../../../../../src/ta_func/ta_CDL3STARSINSOUTH.c \ + ../../../../../src/ta_func/ta_CDL3WHITESOLDIERS.c \ + ../../../../../src/ta_func/ta_CDLABANDONEDBABY.c \ + ../../../../../src/ta_func/ta_CDLADVANCEBLOCK.c \ + ../../../../../src/ta_func/ta_CDLBELTHOLD.c \ + ../../../../../src/ta_func/ta_CDLBREAKAWAY.c \ + ../../../../../src/ta_func/ta_CDLCLOSINGMARUBOZU.c \ + ../../../../../src/ta_func/ta_CDLCONCEALBABYSWALL.c \ + ../../../../../src/ta_func/ta_CDLCOUNTERATTACK.c \ + ../../../../../src/ta_func/ta_CDLDARKCLOUDCOVER.c \ + ../../../../../src/ta_func/ta_CDLDOJI.c \ + ../../../../../src/ta_func/ta_CDLDOJISTAR.c \ + ../../../../../src/ta_func/ta_CDLDRAGONFLYDOJI.c \ + ../../../../../src/ta_func/ta_CDLENGULFING.c \ + ../../../../../src/ta_func/ta_CDLEVENINGDOJISTAR.c \ + ../../../../../src/ta_func/ta_CDLEVENINGSTAR.c \ + ../../../../../src/ta_func/ta_CDLGAPSIDESIDEWHITE.c \ + ../../../../../src/ta_func/ta_CDLGRAVESTONEDOJI.c \ + ../../../../../src/ta_func/ta_CDLHAMMER.c \ + ../../../../../src/ta_func/ta_CDLHANGINGMAN.c \ + ../../../../../src/ta_func/ta_CDLHARAMI.c \ + ../../../../../src/ta_func/ta_CDLHARAMICROSS.c \ + ../../../../../src/ta_func/ta_CDLHIGHWAVE.c \ + ../../../../../src/ta_func/ta_CDLHIKKAKE.c \ + ../../../../../src/ta_func/ta_CDLHIKKAKEMOD.c \ + ../../../../../src/ta_func/ta_CDLHOMINGPIGEON.c \ + ../../../../../src/ta_func/ta_CDLIDENTICAL3CROWS.c \ + ../../../../../src/ta_func/ta_CDLINNECK.c \ + ../../../../../src/ta_func/ta_CDLINVERTEDHAMMER.c \ + ../../../../../src/ta_func/ta_CDLKICKING.c \ + ../../../../../src/ta_func/ta_CDLKICKINGBYLENGTH.c \ + ../../../../../src/ta_func/ta_CDLLADDERBOTTOM.c \ + ../../../../../src/ta_func/ta_CDLLONGLEGGEDDOJI.c \ + ../../../../../src/ta_func/ta_CDLLONGLINE.c \ + ../../../../../src/ta_func/ta_CDLMARUBOZU.c \ + ../../../../../src/ta_func/ta_CDLMATCHINGLOW.c \ + ../../../../../src/ta_func/ta_CDLMATHOLD.c \ + ../../../../../src/ta_func/ta_CDLMORNINGDOJISTAR.c \ + ../../../../../src/ta_func/ta_CDLMORNINGSTAR.c \ + ../../../../../src/ta_func/ta_CDLONNECK.c \ + ../../../../../src/ta_func/ta_CDLPIERCING.c \ + ../../../../../src/ta_func/ta_CDLRICKSHAWMAN.c \ + ../../../../../src/ta_func/ta_CDLRISEFALL3METHODS.c \ + ../../../../../src/ta_func/ta_CDLSEPARATINGLINES.c \ + ../../../../../src/ta_func/ta_CDLSHOOTINGSTAR.c \ + ../../../../../src/ta_func/ta_CDLSHORTLINE.c \ + ../../../../../src/ta_func/ta_CDLSPINNINGTOP.c \ + ../../../../../src/ta_func/ta_CDLSTALLEDPATTERN.c \ + ../../../../../src/ta_func/ta_CDLSTICKSANDWICH.c \ + ../../../../../src/ta_func/ta_CDLTAKURI.c \ + ../../../../../src/ta_func/ta_CDLTASUKIGAP.c \ + ../../../../../src/ta_func/ta_CDLTHRUSTING.c \ + ../../../../../src/ta_func/ta_CDLTRISTAR.c \ + ../../../../../src/ta_func/ta_CDLUNIQUE3RIVER.c \ + ../../../../../src/ta_func/ta_CDLUPSIDEGAP2CROWS.c \ + ../../../../../src/ta_func/ta_CDLXSIDEGAP3METHODS.c \ + ../../../../../src/ta_func/ta_CEIL.c \ + ../../../../../src/ta_func/ta_CMO.c \ + ../../../../../src/ta_func/ta_CORREL.c \ + ../../../../../src/ta_func/ta_COS.c \ + ../../../../../src/ta_func/ta_COSH.c \ + ../../../../../src/ta_func/ta_DEMA.c \ + ../../../../../src/ta_func/ta_DIV.c \ + ../../../../../src/ta_func/ta_DX.c \ + ../../../../../src/ta_func/ta_EMA.c \ + ../../../../../src/ta_func/ta_EXP.c \ + ../../../../../src/ta_func/ta_FLOOR.c \ + ../../../../../src/ta_func/ta_HT_DCPERIOD.c \ + ../../../../../src/ta_func/ta_HT_DCPHASE.c \ + ../../../../../src/ta_func/ta_HT_PHASOR.c \ + ../../../../../src/ta_func/ta_HT_SINE.c \ + ../../../../../src/ta_func/ta_HT_TRENDLINE.c \ + ../../../../../src/ta_func/ta_HT_TRENDMODE.c \ + ../../../../../src/ta_func/ta_KAMA.c \ + ../../../../../src/ta_func/ta_LINEARREG.c \ + ../../../../../src/ta_func/ta_LINEARREG_ANGLE.c \ + ../../../../../src/ta_func/ta_LINEARREG_INTERCEPT.c \ + ../../../../../src/ta_func/ta_LINEARREG_SLOPE.c \ + ../../../../../src/ta_func/ta_LN.c \ + ../../../../../src/ta_func/ta_LOG10.c \ + ../../../../../src/ta_func/ta_MA.c \ + ../../../../../src/ta_func/ta_MACD.c \ + ../../../../../src/ta_func/ta_MACDEXT.c \ + ../../../../../src/ta_func/ta_MACDFIX.c \ + ../../../../../src/ta_func/ta_MAMA.c \ + ../../../../../src/ta_func/ta_MAVP.c \ + ../../../../../src/ta_func/ta_MAX.c \ + ../../../../../src/ta_func/ta_MAXINDEX.c \ + ../../../../../src/ta_func/ta_MEDPRICE.c \ + ../../../../../src/ta_func/ta_MFI.c \ + ../../../../../src/ta_func/ta_MIDPOINT.c \ + ../../../../../src/ta_func/ta_MIDPRICE.c \ + ../../../../../src/ta_func/ta_MIN.c \ + ../../../../../src/ta_func/ta_MININDEX.c \ + ../../../../../src/ta_func/ta_MINMAX.c \ + ../../../../../src/ta_func/ta_MINMAXINDEX.c \ + ../../../../../src/ta_func/ta_MINUS_DI.c \ + ../../../../../src/ta_func/ta_MINUS_DM.c \ + ../../../../../src/ta_func/ta_MOM.c \ + ../../../../../src/ta_func/ta_MULT.c \ + ../../../../../src/ta_func/ta_NATR.c \ + ../../../../../src/ta_func/ta_OBV.c \ + ../../../../../src/ta_func/ta_PLUS_DI.c \ + ../../../../../src/ta_func/ta_PLUS_DM.c \ + ../../../../../src/ta_func/ta_PPO.c \ + ../../../../../src/ta_func/ta_ROC.c \ + ../../../../../src/ta_func/ta_ROCP.c \ + ../../../../../src/ta_func/ta_ROCR.c \ + ../../../../../src/ta_func/ta_ROCR100.c \ + ../../../../../src/ta_func/ta_RSI.c \ + ../../../../../src/ta_func/ta_SAR.c \ + ../../../../../src/ta_func/ta_SAREXT.c \ + ../../../../../src/ta_func/ta_SIN.c \ + ../../../../../src/ta_func/ta_SINH.c \ + ../../../../../src/ta_func/ta_SMA.c \ + ../../../../../src/ta_func/ta_SQRT.c \ + ../../../../../src/ta_func/ta_STDDEV.c \ + ../../../../../src/ta_func/ta_STOCH.c \ + ../../../../../src/ta_func/ta_STOCHF.c \ + ../../../../../src/ta_func/ta_STOCHRSI.c \ + ../../../../../src/ta_func/ta_SUB.c \ + ../../../../../src/ta_func/ta_SUM.c \ + ../../../../../src/ta_func/ta_T3.c \ + ../../../../../src/ta_func/ta_TAN.c \ + ../../../../../src/ta_func/ta_TANH.c \ + ../../../../../src/ta_func/ta_TEMA.c \ + ../../../../../src/ta_func/ta_TRANGE.c \ + ../../../../../src/ta_func/ta_TRIMA.c \ + ../../../../../src/ta_func/ta_TRIX.c \ + ../../../../../src/ta_func/ta_TSF.c \ + ../../../../../src/ta_func/ta_TYPPRICE.c \ + ../../../../../src/ta_func/ta_ULTOSC.c \ + ../../../../../src/ta_func/ta_VAR.c \ + ../../../../../src/ta_func/ta_WCLPRICE.c \ + ../../../../../src/ta_func/ta_WILLR.c \ + ../../../../../src/ta_func/ta_WMA.c +OBJECTS = ../../../../../temp/cmr/ta_global.o \ + ../../../../../temp/cmr/ta_retcode.o \ + ../../../../../temp/cmr/ta_version.o \ + ../../../../../temp/cmr/ta_abstract.o \ + ../../../../../temp/cmr/ta_def_ui.o \ + ../../../../../temp/cmr/ta_func_api.o \ + ../../../../../temp/cmr/ta_group_idx.o \ + ../../../../../temp/cmr/ta_frame.o \ + ../../../../../temp/cmr/table_a.o \ + ../../../../../temp/cmr/table_b.o \ + ../../../../../temp/cmr/table_c.o \ + ../../../../../temp/cmr/table_d.o \ + ../../../../../temp/cmr/table_e.o \ + ../../../../../temp/cmr/table_f.o \ + ../../../../../temp/cmr/table_g.o \ + ../../../../../temp/cmr/table_h.o \ + ../../../../../temp/cmr/table_i.o \ + ../../../../../temp/cmr/table_j.o \ + ../../../../../temp/cmr/table_k.o \ + ../../../../../temp/cmr/table_l.o \ + ../../../../../temp/cmr/table_m.o \ + ../../../../../temp/cmr/table_n.o \ + ../../../../../temp/cmr/table_o.o \ + ../../../../../temp/cmr/table_p.o \ + ../../../../../temp/cmr/table_q.o \ + ../../../../../temp/cmr/table_r.o \ + ../../../../../temp/cmr/table_s.o \ + ../../../../../temp/cmr/table_t.o \ + ../../../../../temp/cmr/table_u.o \ + ../../../../../temp/cmr/table_v.o \ + ../../../../../temp/cmr/table_w.o \ + ../../../../../temp/cmr/table_x.o \ + ../../../../../temp/cmr/table_y.o \ + ../../../../../temp/cmr/table_z.o \ + ../../../../../temp/cmr/ta_utility.o \ + ../../../../../temp/cmr/ta_ACOS.o \ + ../../../../../temp/cmr/ta_AD.o \ + ../../../../../temp/cmr/ta_ADD.o \ + ../../../../../temp/cmr/ta_ADOSC.o \ + ../../../../../temp/cmr/ta_ADX.o \ + ../../../../../temp/cmr/ta_ADXR.o \ + ../../../../../temp/cmr/ta_APO.o \ + ../../../../../temp/cmr/ta_AROON.o \ + ../../../../../temp/cmr/ta_AROONOSC.o \ + ../../../../../temp/cmr/ta_ASIN.o \ + ../../../../../temp/cmr/ta_ATAN.o \ + ../../../../../temp/cmr/ta_ATR.o \ + ../../../../../temp/cmr/ta_AVGPRICE.o \ + ../../../../../temp/cmr/ta_BBANDS.o \ + ../../../../../temp/cmr/ta_BETA.o \ + ../../../../../temp/cmr/ta_BOP.o \ + ../../../../../temp/cmr/ta_CCI.o \ + ../../../../../temp/cmr/ta_CDL2CROWS.o \ + ../../../../../temp/cmr/ta_CDL3BLACKCROWS.o \ + ../../../../../temp/cmr/ta_CDL3INSIDE.o \ + ../../../../../temp/cmr/ta_CDL3LINESTRIKE.o \ + ../../../../../temp/cmr/ta_CDL3OUTSIDE.o \ + ../../../../../temp/cmr/ta_CDL3STARSINSOUTH.o \ + ../../../../../temp/cmr/ta_CDL3WHITESOLDIERS.o \ + ../../../../../temp/cmr/ta_CDLABANDONEDBABY.o \ + ../../../../../temp/cmr/ta_CDLADVANCEBLOCK.o \ + ../../../../../temp/cmr/ta_CDLBELTHOLD.o \ + ../../../../../temp/cmr/ta_CDLBREAKAWAY.o \ + ../../../../../temp/cmr/ta_CDLCLOSINGMARUBOZU.o \ + ../../../../../temp/cmr/ta_CDLCONCEALBABYSWALL.o \ + ../../../../../temp/cmr/ta_CDLCOUNTERATTACK.o \ + ../../../../../temp/cmr/ta_CDLDARKCLOUDCOVER.o \ + ../../../../../temp/cmr/ta_CDLDOJI.o \ + ../../../../../temp/cmr/ta_CDLDOJISTAR.o \ + ../../../../../temp/cmr/ta_CDLDRAGONFLYDOJI.o \ + ../../../../../temp/cmr/ta_CDLENGULFING.o \ + ../../../../../temp/cmr/ta_CDLEVENINGDOJISTAR.o \ + ../../../../../temp/cmr/ta_CDLEVENINGSTAR.o \ + ../../../../../temp/cmr/ta_CDLGAPSIDESIDEWHITE.o \ + ../../../../../temp/cmr/ta_CDLGRAVESTONEDOJI.o \ + ../../../../../temp/cmr/ta_CDLHAMMER.o \ + ../../../../../temp/cmr/ta_CDLHANGINGMAN.o \ + ../../../../../temp/cmr/ta_CDLHARAMI.o \ + ../../../../../temp/cmr/ta_CDLHARAMICROSS.o \ + ../../../../../temp/cmr/ta_CDLHIGHWAVE.o \ + ../../../../../temp/cmr/ta_CDLHIKKAKE.o \ + ../../../../../temp/cmr/ta_CDLHIKKAKEMOD.o \ + ../../../../../temp/cmr/ta_CDLHOMINGPIGEON.o \ + ../../../../../temp/cmr/ta_CDLIDENTICAL3CROWS.o \ + ../../../../../temp/cmr/ta_CDLINNECK.o \ + ../../../../../temp/cmr/ta_CDLINVERTEDHAMMER.o \ + ../../../../../temp/cmr/ta_CDLKICKING.o \ + ../../../../../temp/cmr/ta_CDLKICKINGBYLENGTH.o \ + ../../../../../temp/cmr/ta_CDLLADDERBOTTOM.o \ + ../../../../../temp/cmr/ta_CDLLONGLEGGEDDOJI.o \ + ../../../../../temp/cmr/ta_CDLLONGLINE.o \ + ../../../../../temp/cmr/ta_CDLMARUBOZU.o \ + ../../../../../temp/cmr/ta_CDLMATCHINGLOW.o \ + ../../../../../temp/cmr/ta_CDLMATHOLD.o \ + ../../../../../temp/cmr/ta_CDLMORNINGDOJISTAR.o \ + ../../../../../temp/cmr/ta_CDLMORNINGSTAR.o \ + ../../../../../temp/cmr/ta_CDLONNECK.o \ + ../../../../../temp/cmr/ta_CDLPIERCING.o \ + ../../../../../temp/cmr/ta_CDLRICKSHAWMAN.o \ + ../../../../../temp/cmr/ta_CDLRISEFALL3METHODS.o \ + ../../../../../temp/cmr/ta_CDLSEPARATINGLINES.o \ + ../../../../../temp/cmr/ta_CDLSHOOTINGSTAR.o \ + ../../../../../temp/cmr/ta_CDLSHORTLINE.o \ + ../../../../../temp/cmr/ta_CDLSPINNINGTOP.o \ + ../../../../../temp/cmr/ta_CDLSTALLEDPATTERN.o \ + ../../../../../temp/cmr/ta_CDLSTICKSANDWICH.o \ + ../../../../../temp/cmr/ta_CDLTAKURI.o \ + ../../../../../temp/cmr/ta_CDLTASUKIGAP.o \ + ../../../../../temp/cmr/ta_CDLTHRUSTING.o \ + ../../../../../temp/cmr/ta_CDLTRISTAR.o \ + ../../../../../temp/cmr/ta_CDLUNIQUE3RIVER.o \ + ../../../../../temp/cmr/ta_CDLUPSIDEGAP2CROWS.o \ + ../../../../../temp/cmr/ta_CDLXSIDEGAP3METHODS.o \ + ../../../../../temp/cmr/ta_CEIL.o \ + ../../../../../temp/cmr/ta_CMO.o \ + ../../../../../temp/cmr/ta_CORREL.o \ + ../../../../../temp/cmr/ta_COS.o \ + ../../../../../temp/cmr/ta_COSH.o \ + ../../../../../temp/cmr/ta_DEMA.o \ + ../../../../../temp/cmr/ta_DIV.o \ + ../../../../../temp/cmr/ta_DX.o \ + ../../../../../temp/cmr/ta_EMA.o \ + ../../../../../temp/cmr/ta_EXP.o \ + ../../../../../temp/cmr/ta_FLOOR.o \ + ../../../../../temp/cmr/ta_HT_DCPERIOD.o \ + ../../../../../temp/cmr/ta_HT_DCPHASE.o \ + ../../../../../temp/cmr/ta_HT_PHASOR.o \ + ../../../../../temp/cmr/ta_HT_SINE.o \ + ../../../../../temp/cmr/ta_HT_TRENDLINE.o \ + ../../../../../temp/cmr/ta_HT_TRENDMODE.o \ + ../../../../../temp/cmr/ta_KAMA.o \ + ../../../../../temp/cmr/ta_LINEARREG.o \ + ../../../../../temp/cmr/ta_LINEARREG_ANGLE.o \ + ../../../../../temp/cmr/ta_LINEARREG_INTERCEPT.o \ + ../../../../../temp/cmr/ta_LINEARREG_SLOPE.o \ + ../../../../../temp/cmr/ta_LN.o \ + ../../../../../temp/cmr/ta_LOG10.o \ + ../../../../../temp/cmr/ta_MA.o \ + ../../../../../temp/cmr/ta_MACD.o \ + ../../../../../temp/cmr/ta_MACDEXT.o \ + ../../../../../temp/cmr/ta_MACDFIX.o \ + ../../../../../temp/cmr/ta_MAMA.o \ + ../../../../../temp/cmr/ta_MAVP.o \ + ../../../../../temp/cmr/ta_MAX.o \ + ../../../../../temp/cmr/ta_MAXINDEX.o \ + ../../../../../temp/cmr/ta_MEDPRICE.o \ + ../../../../../temp/cmr/ta_MFI.o \ + ../../../../../temp/cmr/ta_MIDPOINT.o \ + ../../../../../temp/cmr/ta_MIDPRICE.o \ + ../../../../../temp/cmr/ta_MIN.o \ + ../../../../../temp/cmr/ta_MININDEX.o \ + ../../../../../temp/cmr/ta_MINMAX.o \ + ../../../../../temp/cmr/ta_MINMAXINDEX.o \ + ../../../../../temp/cmr/ta_MINUS_DI.o \ + ../../../../../temp/cmr/ta_MINUS_DM.o \ + ../../../../../temp/cmr/ta_MOM.o \ + ../../../../../temp/cmr/ta_MULT.o \ + ../../../../../temp/cmr/ta_NATR.o \ + ../../../../../temp/cmr/ta_OBV.o \ + ../../../../../temp/cmr/ta_PLUS_DI.o \ + ../../../../../temp/cmr/ta_PLUS_DM.o \ + ../../../../../temp/cmr/ta_PPO.o \ + ../../../../../temp/cmr/ta_ROC.o \ + ../../../../../temp/cmr/ta_ROCP.o \ + ../../../../../temp/cmr/ta_ROCR.o \ + ../../../../../temp/cmr/ta_ROCR100.o \ + ../../../../../temp/cmr/ta_RSI.o \ + ../../../../../temp/cmr/ta_SAR.o \ + ../../../../../temp/cmr/ta_SAREXT.o \ + ../../../../../temp/cmr/ta_SIN.o \ + ../../../../../temp/cmr/ta_SINH.o \ + ../../../../../temp/cmr/ta_SMA.o \ + ../../../../../temp/cmr/ta_SQRT.o \ + ../../../../../temp/cmr/ta_STDDEV.o \ + ../../../../../temp/cmr/ta_STOCH.o \ + ../../../../../temp/cmr/ta_STOCHF.o \ + ../../../../../temp/cmr/ta_STOCHRSI.o \ + ../../../../../temp/cmr/ta_SUB.o \ + ../../../../../temp/cmr/ta_SUM.o \ + ../../../../../temp/cmr/ta_T3.o \ + ../../../../../temp/cmr/ta_TAN.o \ + ../../../../../temp/cmr/ta_TANH.o \ + ../../../../../temp/cmr/ta_TEMA.o \ + ../../../../../temp/cmr/ta_TRANGE.o \ + ../../../../../temp/cmr/ta_TRIMA.o \ + ../../../../../temp/cmr/ta_TRIX.o \ + ../../../../../temp/cmr/ta_TSF.o \ + ../../../../../temp/cmr/ta_TYPPRICE.o \ + ../../../../../temp/cmr/ta_ULTOSC.o \ + ../../../../../temp/cmr/ta_VAR.o \ + ../../../../../temp/cmr/ta_WCLPRICE.o \ + ../../../../../temp/cmr/ta_WILLR.o \ + ../../../../../temp/cmr/ta_WMA.o +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ../../../../../lib/libta_libc_cmr.a +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .C .c + +.cpp.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cxx.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cc.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.C.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.c.o: + $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $< + +####### Build rules + + +all: $(TARGET) + +staticlib: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + -rm -f $(TARGET) + $(AR) $(TARGET) $(OBJECTS) $(OBJMOC) + +moc: $(SRCMOC) + +clean: + -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) + -rm -f *~ core + +####### Sub-libraries + + +###### Combined headers + + +####### Compile + +../../../../../temp/cmr/ta_global.o: ../../../../../src/ta_common/ta_global.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_global.o ../../../../../src/ta_common/ta_global.c + +../../../../../temp/cmr/ta_retcode.o: ../../../../../src/ta_common/ta_retcode.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_retcode.o ../../../../../src/ta_common/ta_retcode.c + +../../../../../temp/cmr/ta_version.o: ../../../../../src/ta_common/ta_version.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_version.o ../../../../../src/ta_common/ta_version.c + +../../../../../temp/cmr/ta_abstract.o: ../../../../../src/ta_abstract/ta_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_abstract.o ../../../../../src/ta_abstract/ta_abstract.c + +../../../../../temp/cmr/ta_def_ui.o: ../../../../../src/ta_abstract/ta_def_ui.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_def_ui.o ../../../../../src/ta_abstract/ta_def_ui.c + +../../../../../temp/cmr/ta_func_api.o: ../../../../../src/ta_abstract/ta_func_api.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_func_api.o ../../../../../src/ta_abstract/ta_func_api.c + +../../../../../temp/cmr/ta_group_idx.o: ../../../../../src/ta_abstract/ta_group_idx.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_group_idx.o ../../../../../src/ta_abstract/ta_group_idx.c + +../../../../../temp/cmr/ta_frame.o: ../../../../../src/ta_abstract/frames/ta_frame.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_frame.o ../../../../../src/ta_abstract/frames/ta_frame.c + +../../../../../temp/cmr/table_a.o: ../../../../../src/ta_abstract/tables/table_a.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_a.o ../../../../../src/ta_abstract/tables/table_a.c + +../../../../../temp/cmr/table_b.o: ../../../../../src/ta_abstract/tables/table_b.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_b.o ../../../../../src/ta_abstract/tables/table_b.c + +../../../../../temp/cmr/table_c.o: ../../../../../src/ta_abstract/tables/table_c.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_c.o ../../../../../src/ta_abstract/tables/table_c.c + +../../../../../temp/cmr/table_d.o: ../../../../../src/ta_abstract/tables/table_d.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_d.o ../../../../../src/ta_abstract/tables/table_d.c + +../../../../../temp/cmr/table_e.o: ../../../../../src/ta_abstract/tables/table_e.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_e.o ../../../../../src/ta_abstract/tables/table_e.c + +../../../../../temp/cmr/table_f.o: ../../../../../src/ta_abstract/tables/table_f.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_f.o ../../../../../src/ta_abstract/tables/table_f.c + +../../../../../temp/cmr/table_g.o: ../../../../../src/ta_abstract/tables/table_g.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_g.o ../../../../../src/ta_abstract/tables/table_g.c + +../../../../../temp/cmr/table_h.o: ../../../../../src/ta_abstract/tables/table_h.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_h.o ../../../../../src/ta_abstract/tables/table_h.c + +../../../../../temp/cmr/table_i.o: ../../../../../src/ta_abstract/tables/table_i.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_i.o ../../../../../src/ta_abstract/tables/table_i.c + +../../../../../temp/cmr/table_j.o: ../../../../../src/ta_abstract/tables/table_j.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_j.o ../../../../../src/ta_abstract/tables/table_j.c + +../../../../../temp/cmr/table_k.o: ../../../../../src/ta_abstract/tables/table_k.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_k.o ../../../../../src/ta_abstract/tables/table_k.c + +../../../../../temp/cmr/table_l.o: ../../../../../src/ta_abstract/tables/table_l.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_l.o ../../../../../src/ta_abstract/tables/table_l.c + +../../../../../temp/cmr/table_m.o: ../../../../../src/ta_abstract/tables/table_m.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_m.o ../../../../../src/ta_abstract/tables/table_m.c + +../../../../../temp/cmr/table_n.o: ../../../../../src/ta_abstract/tables/table_n.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_n.o ../../../../../src/ta_abstract/tables/table_n.c + +../../../../../temp/cmr/table_o.o: ../../../../../src/ta_abstract/tables/table_o.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_o.o ../../../../../src/ta_abstract/tables/table_o.c + +../../../../../temp/cmr/table_p.o: ../../../../../src/ta_abstract/tables/table_p.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_p.o ../../../../../src/ta_abstract/tables/table_p.c + +../../../../../temp/cmr/table_q.o: ../../../../../src/ta_abstract/tables/table_q.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_q.o ../../../../../src/ta_abstract/tables/table_q.c + +../../../../../temp/cmr/table_r.o: ../../../../../src/ta_abstract/tables/table_r.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_r.o ../../../../../src/ta_abstract/tables/table_r.c + +../../../../../temp/cmr/table_s.o: ../../../../../src/ta_abstract/tables/table_s.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_s.o ../../../../../src/ta_abstract/tables/table_s.c + +../../../../../temp/cmr/table_t.o: ../../../../../src/ta_abstract/tables/table_t.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_t.o ../../../../../src/ta_abstract/tables/table_t.c + +../../../../../temp/cmr/table_u.o: ../../../../../src/ta_abstract/tables/table_u.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_u.o ../../../../../src/ta_abstract/tables/table_u.c + +../../../../../temp/cmr/table_v.o: ../../../../../src/ta_abstract/tables/table_v.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_v.o ../../../../../src/ta_abstract/tables/table_v.c + +../../../../../temp/cmr/table_w.o: ../../../../../src/ta_abstract/tables/table_w.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_w.o ../../../../../src/ta_abstract/tables/table_w.c + +../../../../../temp/cmr/table_x.o: ../../../../../src/ta_abstract/tables/table_x.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_x.o ../../../../../src/ta_abstract/tables/table_x.c + +../../../../../temp/cmr/table_y.o: ../../../../../src/ta_abstract/tables/table_y.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_y.o ../../../../../src/ta_abstract/tables/table_y.c + +../../../../../temp/cmr/table_z.o: ../../../../../src/ta_abstract/tables/table_z.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_z.o ../../../../../src/ta_abstract/tables/table_z.c + +../../../../../temp/cmr/ta_utility.o: ../../../../../src/ta_func/ta_utility.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_utility.o ../../../../../src/ta_func/ta_utility.c + +../../../../../temp/cmr/ta_ACOS.o: ../../../../../src/ta_func/ta_ACOS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_ACOS.o ../../../../../src/ta_func/ta_ACOS.c + +../../../../../temp/cmr/ta_AD.o: ../../../../../src/ta_func/ta_AD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_AD.o ../../../../../src/ta_func/ta_AD.c + +../../../../../temp/cmr/ta_ADD.o: ../../../../../src/ta_func/ta_ADD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_ADD.o ../../../../../src/ta_func/ta_ADD.c + +../../../../../temp/cmr/ta_ADOSC.o: ../../../../../src/ta_func/ta_ADOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_ADOSC.o ../../../../../src/ta_func/ta_ADOSC.c + +../../../../../temp/cmr/ta_ADX.o: ../../../../../src/ta_func/ta_ADX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_ADX.o ../../../../../src/ta_func/ta_ADX.c + +../../../../../temp/cmr/ta_ADXR.o: ../../../../../src/ta_func/ta_ADXR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_ADXR.o ../../../../../src/ta_func/ta_ADXR.c + +../../../../../temp/cmr/ta_APO.o: ../../../../../src/ta_func/ta_APO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_APO.o ../../../../../src/ta_func/ta_APO.c + +../../../../../temp/cmr/ta_AROON.o: ../../../../../src/ta_func/ta_AROON.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_AROON.o ../../../../../src/ta_func/ta_AROON.c + +../../../../../temp/cmr/ta_AROONOSC.o: ../../../../../src/ta_func/ta_AROONOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_AROONOSC.o ../../../../../src/ta_func/ta_AROONOSC.c + +../../../../../temp/cmr/ta_ASIN.o: ../../../../../src/ta_func/ta_ASIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_ASIN.o ../../../../../src/ta_func/ta_ASIN.c + +../../../../../temp/cmr/ta_ATAN.o: ../../../../../src/ta_func/ta_ATAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_ATAN.o ../../../../../src/ta_func/ta_ATAN.c + +../../../../../temp/cmr/ta_ATR.o: ../../../../../src/ta_func/ta_ATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_ATR.o ../../../../../src/ta_func/ta_ATR.c + +../../../../../temp/cmr/ta_AVGPRICE.o: ../../../../../src/ta_func/ta_AVGPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_AVGPRICE.o ../../../../../src/ta_func/ta_AVGPRICE.c + +../../../../../temp/cmr/ta_BBANDS.o: ../../../../../src/ta_func/ta_BBANDS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_BBANDS.o ../../../../../src/ta_func/ta_BBANDS.c + +../../../../../temp/cmr/ta_BETA.o: ../../../../../src/ta_func/ta_BETA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_BETA.o ../../../../../src/ta_func/ta_BETA.c + +../../../../../temp/cmr/ta_BOP.o: ../../../../../src/ta_func/ta_BOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_BOP.o ../../../../../src/ta_func/ta_BOP.c + +../../../../../temp/cmr/ta_CCI.o: ../../../../../src/ta_func/ta_CCI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CCI.o ../../../../../src/ta_func/ta_CCI.c + +../../../../../temp/cmr/ta_CDL2CROWS.o: ../../../../../src/ta_func/ta_CDL2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDL2CROWS.o ../../../../../src/ta_func/ta_CDL2CROWS.c + +../../../../../temp/cmr/ta_CDL3BLACKCROWS.o: ../../../../../src/ta_func/ta_CDL3BLACKCROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDL3BLACKCROWS.o ../../../../../src/ta_func/ta_CDL3BLACKCROWS.c + +../../../../../temp/cmr/ta_CDL3INSIDE.o: ../../../../../src/ta_func/ta_CDL3INSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDL3INSIDE.o ../../../../../src/ta_func/ta_CDL3INSIDE.c + +../../../../../temp/cmr/ta_CDL3LINESTRIKE.o: ../../../../../src/ta_func/ta_CDL3LINESTRIKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDL3LINESTRIKE.o ../../../../../src/ta_func/ta_CDL3LINESTRIKE.c + +../../../../../temp/cmr/ta_CDL3OUTSIDE.o: ../../../../../src/ta_func/ta_CDL3OUTSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDL3OUTSIDE.o ../../../../../src/ta_func/ta_CDL3OUTSIDE.c + +../../../../../temp/cmr/ta_CDL3STARSINSOUTH.o: ../../../../../src/ta_func/ta_CDL3STARSINSOUTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDL3STARSINSOUTH.o ../../../../../src/ta_func/ta_CDL3STARSINSOUTH.c + +../../../../../temp/cmr/ta_CDL3WHITESOLDIERS.o: ../../../../../src/ta_func/ta_CDL3WHITESOLDIERS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDL3WHITESOLDIERS.o ../../../../../src/ta_func/ta_CDL3WHITESOLDIERS.c + +../../../../../temp/cmr/ta_CDLABANDONEDBABY.o: ../../../../../src/ta_func/ta_CDLABANDONEDBABY.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLABANDONEDBABY.o ../../../../../src/ta_func/ta_CDLABANDONEDBABY.c + +../../../../../temp/cmr/ta_CDLADVANCEBLOCK.o: ../../../../../src/ta_func/ta_CDLADVANCEBLOCK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLADVANCEBLOCK.o ../../../../../src/ta_func/ta_CDLADVANCEBLOCK.c + +../../../../../temp/cmr/ta_CDLBELTHOLD.o: ../../../../../src/ta_func/ta_CDLBELTHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLBELTHOLD.o ../../../../../src/ta_func/ta_CDLBELTHOLD.c + +../../../../../temp/cmr/ta_CDLBREAKAWAY.o: ../../../../../src/ta_func/ta_CDLBREAKAWAY.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLBREAKAWAY.o ../../../../../src/ta_func/ta_CDLBREAKAWAY.c + +../../../../../temp/cmr/ta_CDLCLOSINGMARUBOZU.o: ../../../../../src/ta_func/ta_CDLCLOSINGMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLCLOSINGMARUBOZU.o ../../../../../src/ta_func/ta_CDLCLOSINGMARUBOZU.c + +../../../../../temp/cmr/ta_CDLCONCEALBABYSWALL.o: ../../../../../src/ta_func/ta_CDLCONCEALBABYSWALL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLCONCEALBABYSWALL.o ../../../../../src/ta_func/ta_CDLCONCEALBABYSWALL.c + +../../../../../temp/cmr/ta_CDLCOUNTERATTACK.o: ../../../../../src/ta_func/ta_CDLCOUNTERATTACK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLCOUNTERATTACK.o ../../../../../src/ta_func/ta_CDLCOUNTERATTACK.c + +../../../../../temp/cmr/ta_CDLDARKCLOUDCOVER.o: ../../../../../src/ta_func/ta_CDLDARKCLOUDCOVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLDARKCLOUDCOVER.o ../../../../../src/ta_func/ta_CDLDARKCLOUDCOVER.c + +../../../../../temp/cmr/ta_CDLDOJI.o: ../../../../../src/ta_func/ta_CDLDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLDOJI.o ../../../../../src/ta_func/ta_CDLDOJI.c + +../../../../../temp/cmr/ta_CDLDOJISTAR.o: ../../../../../src/ta_func/ta_CDLDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLDOJISTAR.o ../../../../../src/ta_func/ta_CDLDOJISTAR.c + +../../../../../temp/cmr/ta_CDLDRAGONFLYDOJI.o: ../../../../../src/ta_func/ta_CDLDRAGONFLYDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLDRAGONFLYDOJI.o ../../../../../src/ta_func/ta_CDLDRAGONFLYDOJI.c + +../../../../../temp/cmr/ta_CDLENGULFING.o: ../../../../../src/ta_func/ta_CDLENGULFING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLENGULFING.o ../../../../../src/ta_func/ta_CDLENGULFING.c + +../../../../../temp/cmr/ta_CDLEVENINGDOJISTAR.o: ../../../../../src/ta_func/ta_CDLEVENINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLEVENINGDOJISTAR.o ../../../../../src/ta_func/ta_CDLEVENINGDOJISTAR.c + +../../../../../temp/cmr/ta_CDLEVENINGSTAR.o: ../../../../../src/ta_func/ta_CDLEVENINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLEVENINGSTAR.o ../../../../../src/ta_func/ta_CDLEVENINGSTAR.c + +../../../../../temp/cmr/ta_CDLGAPSIDESIDEWHITE.o: ../../../../../src/ta_func/ta_CDLGAPSIDESIDEWHITE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLGAPSIDESIDEWHITE.o ../../../../../src/ta_func/ta_CDLGAPSIDESIDEWHITE.c + +../../../../../temp/cmr/ta_CDLGRAVESTONEDOJI.o: ../../../../../src/ta_func/ta_CDLGRAVESTONEDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLGRAVESTONEDOJI.o ../../../../../src/ta_func/ta_CDLGRAVESTONEDOJI.c + +../../../../../temp/cmr/ta_CDLHAMMER.o: ../../../../../src/ta_func/ta_CDLHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLHAMMER.o ../../../../../src/ta_func/ta_CDLHAMMER.c + +../../../../../temp/cmr/ta_CDLHANGINGMAN.o: ../../../../../src/ta_func/ta_CDLHANGINGMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLHANGINGMAN.o ../../../../../src/ta_func/ta_CDLHANGINGMAN.c + +../../../../../temp/cmr/ta_CDLHARAMI.o: ../../../../../src/ta_func/ta_CDLHARAMI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLHARAMI.o ../../../../../src/ta_func/ta_CDLHARAMI.c + +../../../../../temp/cmr/ta_CDLHARAMICROSS.o: ../../../../../src/ta_func/ta_CDLHARAMICROSS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLHARAMICROSS.o ../../../../../src/ta_func/ta_CDLHARAMICROSS.c + +../../../../../temp/cmr/ta_CDLHIGHWAVE.o: ../../../../../src/ta_func/ta_CDLHIGHWAVE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLHIGHWAVE.o ../../../../../src/ta_func/ta_CDLHIGHWAVE.c + +../../../../../temp/cmr/ta_CDLHIKKAKE.o: ../../../../../src/ta_func/ta_CDLHIKKAKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLHIKKAKE.o ../../../../../src/ta_func/ta_CDLHIKKAKE.c + +../../../../../temp/cmr/ta_CDLHIKKAKEMOD.o: ../../../../../src/ta_func/ta_CDLHIKKAKEMOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLHIKKAKEMOD.o ../../../../../src/ta_func/ta_CDLHIKKAKEMOD.c + +../../../../../temp/cmr/ta_CDLHOMINGPIGEON.o: ../../../../../src/ta_func/ta_CDLHOMINGPIGEON.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLHOMINGPIGEON.o ../../../../../src/ta_func/ta_CDLHOMINGPIGEON.c + +../../../../../temp/cmr/ta_CDLIDENTICAL3CROWS.o: ../../../../../src/ta_func/ta_CDLIDENTICAL3CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLIDENTICAL3CROWS.o ../../../../../src/ta_func/ta_CDLIDENTICAL3CROWS.c + +../../../../../temp/cmr/ta_CDLINNECK.o: ../../../../../src/ta_func/ta_CDLINNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLINNECK.o ../../../../../src/ta_func/ta_CDLINNECK.c + +../../../../../temp/cmr/ta_CDLINVERTEDHAMMER.o: ../../../../../src/ta_func/ta_CDLINVERTEDHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLINVERTEDHAMMER.o ../../../../../src/ta_func/ta_CDLINVERTEDHAMMER.c + +../../../../../temp/cmr/ta_CDLKICKING.o: ../../../../../src/ta_func/ta_CDLKICKING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLKICKING.o ../../../../../src/ta_func/ta_CDLKICKING.c + +../../../../../temp/cmr/ta_CDLKICKINGBYLENGTH.o: ../../../../../src/ta_func/ta_CDLKICKINGBYLENGTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLKICKINGBYLENGTH.o ../../../../../src/ta_func/ta_CDLKICKINGBYLENGTH.c + +../../../../../temp/cmr/ta_CDLLADDERBOTTOM.o: ../../../../../src/ta_func/ta_CDLLADDERBOTTOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLLADDERBOTTOM.o ../../../../../src/ta_func/ta_CDLLADDERBOTTOM.c + +../../../../../temp/cmr/ta_CDLLONGLEGGEDDOJI.o: ../../../../../src/ta_func/ta_CDLLONGLEGGEDDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLLONGLEGGEDDOJI.o ../../../../../src/ta_func/ta_CDLLONGLEGGEDDOJI.c + +../../../../../temp/cmr/ta_CDLLONGLINE.o: ../../../../../src/ta_func/ta_CDLLONGLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLLONGLINE.o ../../../../../src/ta_func/ta_CDLLONGLINE.c + +../../../../../temp/cmr/ta_CDLMARUBOZU.o: ../../../../../src/ta_func/ta_CDLMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLMARUBOZU.o ../../../../../src/ta_func/ta_CDLMARUBOZU.c + +../../../../../temp/cmr/ta_CDLMATCHINGLOW.o: ../../../../../src/ta_func/ta_CDLMATCHINGLOW.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLMATCHINGLOW.o ../../../../../src/ta_func/ta_CDLMATCHINGLOW.c + +../../../../../temp/cmr/ta_CDLMATHOLD.o: ../../../../../src/ta_func/ta_CDLMATHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLMATHOLD.o ../../../../../src/ta_func/ta_CDLMATHOLD.c + +../../../../../temp/cmr/ta_CDLMORNINGDOJISTAR.o: ../../../../../src/ta_func/ta_CDLMORNINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLMORNINGDOJISTAR.o ../../../../../src/ta_func/ta_CDLMORNINGDOJISTAR.c + +../../../../../temp/cmr/ta_CDLMORNINGSTAR.o: ../../../../../src/ta_func/ta_CDLMORNINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLMORNINGSTAR.o ../../../../../src/ta_func/ta_CDLMORNINGSTAR.c + +../../../../../temp/cmr/ta_CDLONNECK.o: ../../../../../src/ta_func/ta_CDLONNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLONNECK.o ../../../../../src/ta_func/ta_CDLONNECK.c + +../../../../../temp/cmr/ta_CDLPIERCING.o: ../../../../../src/ta_func/ta_CDLPIERCING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLPIERCING.o ../../../../../src/ta_func/ta_CDLPIERCING.c + +../../../../../temp/cmr/ta_CDLRICKSHAWMAN.o: ../../../../../src/ta_func/ta_CDLRICKSHAWMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLRICKSHAWMAN.o ../../../../../src/ta_func/ta_CDLRICKSHAWMAN.c + +../../../../../temp/cmr/ta_CDLRISEFALL3METHODS.o: ../../../../../src/ta_func/ta_CDLRISEFALL3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLRISEFALL3METHODS.o ../../../../../src/ta_func/ta_CDLRISEFALL3METHODS.c + +../../../../../temp/cmr/ta_CDLSEPARATINGLINES.o: ../../../../../src/ta_func/ta_CDLSEPARATINGLINES.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLSEPARATINGLINES.o ../../../../../src/ta_func/ta_CDLSEPARATINGLINES.c + +../../../../../temp/cmr/ta_CDLSHOOTINGSTAR.o: ../../../../../src/ta_func/ta_CDLSHOOTINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLSHOOTINGSTAR.o ../../../../../src/ta_func/ta_CDLSHOOTINGSTAR.c + +../../../../../temp/cmr/ta_CDLSHORTLINE.o: ../../../../../src/ta_func/ta_CDLSHORTLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLSHORTLINE.o ../../../../../src/ta_func/ta_CDLSHORTLINE.c + +../../../../../temp/cmr/ta_CDLSPINNINGTOP.o: ../../../../../src/ta_func/ta_CDLSPINNINGTOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLSPINNINGTOP.o ../../../../../src/ta_func/ta_CDLSPINNINGTOP.c + +../../../../../temp/cmr/ta_CDLSTALLEDPATTERN.o: ../../../../../src/ta_func/ta_CDLSTALLEDPATTERN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLSTALLEDPATTERN.o ../../../../../src/ta_func/ta_CDLSTALLEDPATTERN.c + +../../../../../temp/cmr/ta_CDLSTICKSANDWICH.o: ../../../../../src/ta_func/ta_CDLSTICKSANDWICH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLSTICKSANDWICH.o ../../../../../src/ta_func/ta_CDLSTICKSANDWICH.c + +../../../../../temp/cmr/ta_CDLTAKURI.o: ../../../../../src/ta_func/ta_CDLTAKURI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLTAKURI.o ../../../../../src/ta_func/ta_CDLTAKURI.c + +../../../../../temp/cmr/ta_CDLTASUKIGAP.o: ../../../../../src/ta_func/ta_CDLTASUKIGAP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLTASUKIGAP.o ../../../../../src/ta_func/ta_CDLTASUKIGAP.c + +../../../../../temp/cmr/ta_CDLTHRUSTING.o: ../../../../../src/ta_func/ta_CDLTHRUSTING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLTHRUSTING.o ../../../../../src/ta_func/ta_CDLTHRUSTING.c + +../../../../../temp/cmr/ta_CDLTRISTAR.o: ../../../../../src/ta_func/ta_CDLTRISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLTRISTAR.o ../../../../../src/ta_func/ta_CDLTRISTAR.c + +../../../../../temp/cmr/ta_CDLUNIQUE3RIVER.o: ../../../../../src/ta_func/ta_CDLUNIQUE3RIVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLUNIQUE3RIVER.o ../../../../../src/ta_func/ta_CDLUNIQUE3RIVER.c + +../../../../../temp/cmr/ta_CDLUPSIDEGAP2CROWS.o: ../../../../../src/ta_func/ta_CDLUPSIDEGAP2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLUPSIDEGAP2CROWS.o ../../../../../src/ta_func/ta_CDLUPSIDEGAP2CROWS.c + +../../../../../temp/cmr/ta_CDLXSIDEGAP3METHODS.o: ../../../../../src/ta_func/ta_CDLXSIDEGAP3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLXSIDEGAP3METHODS.o ../../../../../src/ta_func/ta_CDLXSIDEGAP3METHODS.c + +../../../../../temp/cmr/ta_CEIL.o: ../../../../../src/ta_func/ta_CEIL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CEIL.o ../../../../../src/ta_func/ta_CEIL.c + +../../../../../temp/cmr/ta_CMO.o: ../../../../../src/ta_func/ta_CMO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CMO.o ../../../../../src/ta_func/ta_CMO.c + +../../../../../temp/cmr/ta_CORREL.o: ../../../../../src/ta_func/ta_CORREL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CORREL.o ../../../../../src/ta_func/ta_CORREL.c + +../../../../../temp/cmr/ta_COS.o: ../../../../../src/ta_func/ta_COS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_COS.o ../../../../../src/ta_func/ta_COS.c + +../../../../../temp/cmr/ta_COSH.o: ../../../../../src/ta_func/ta_COSH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_COSH.o ../../../../../src/ta_func/ta_COSH.c + +../../../../../temp/cmr/ta_DEMA.o: ../../../../../src/ta_func/ta_DEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_DEMA.o ../../../../../src/ta_func/ta_DEMA.c + +../../../../../temp/cmr/ta_DIV.o: ../../../../../src/ta_func/ta_DIV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_DIV.o ../../../../../src/ta_func/ta_DIV.c + +../../../../../temp/cmr/ta_DX.o: ../../../../../src/ta_func/ta_DX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_DX.o ../../../../../src/ta_func/ta_DX.c + +../../../../../temp/cmr/ta_EMA.o: ../../../../../src/ta_func/ta_EMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_EMA.o ../../../../../src/ta_func/ta_EMA.c + +../../../../../temp/cmr/ta_EXP.o: ../../../../../src/ta_func/ta_EXP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_EXP.o ../../../../../src/ta_func/ta_EXP.c + +../../../../../temp/cmr/ta_FLOOR.o: ../../../../../src/ta_func/ta_FLOOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_FLOOR.o ../../../../../src/ta_func/ta_FLOOR.c + +../../../../../temp/cmr/ta_HT_DCPERIOD.o: ../../../../../src/ta_func/ta_HT_DCPERIOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_HT_DCPERIOD.o ../../../../../src/ta_func/ta_HT_DCPERIOD.c + +../../../../../temp/cmr/ta_HT_DCPHASE.o: ../../../../../src/ta_func/ta_HT_DCPHASE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_HT_DCPHASE.o ../../../../../src/ta_func/ta_HT_DCPHASE.c + +../../../../../temp/cmr/ta_HT_PHASOR.o: ../../../../../src/ta_func/ta_HT_PHASOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_HT_PHASOR.o ../../../../../src/ta_func/ta_HT_PHASOR.c + +../../../../../temp/cmr/ta_HT_SINE.o: ../../../../../src/ta_func/ta_HT_SINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_HT_SINE.o ../../../../../src/ta_func/ta_HT_SINE.c + +../../../../../temp/cmr/ta_HT_TRENDLINE.o: ../../../../../src/ta_func/ta_HT_TRENDLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_HT_TRENDLINE.o ../../../../../src/ta_func/ta_HT_TRENDLINE.c + +../../../../../temp/cmr/ta_HT_TRENDMODE.o: ../../../../../src/ta_func/ta_HT_TRENDMODE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_HT_TRENDMODE.o ../../../../../src/ta_func/ta_HT_TRENDMODE.c + +../../../../../temp/cmr/ta_KAMA.o: ../../../../../src/ta_func/ta_KAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_KAMA.o ../../../../../src/ta_func/ta_KAMA.c + +../../../../../temp/cmr/ta_LINEARREG.o: ../../../../../src/ta_func/ta_LINEARREG.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_LINEARREG.o ../../../../../src/ta_func/ta_LINEARREG.c + +../../../../../temp/cmr/ta_LINEARREG_ANGLE.o: ../../../../../src/ta_func/ta_LINEARREG_ANGLE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_LINEARREG_ANGLE.o ../../../../../src/ta_func/ta_LINEARREG_ANGLE.c + +../../../../../temp/cmr/ta_LINEARREG_INTERCEPT.o: ../../../../../src/ta_func/ta_LINEARREG_INTERCEPT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_LINEARREG_INTERCEPT.o ../../../../../src/ta_func/ta_LINEARREG_INTERCEPT.c + +../../../../../temp/cmr/ta_LINEARREG_SLOPE.o: ../../../../../src/ta_func/ta_LINEARREG_SLOPE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_LINEARREG_SLOPE.o ../../../../../src/ta_func/ta_LINEARREG_SLOPE.c + +../../../../../temp/cmr/ta_LN.o: ../../../../../src/ta_func/ta_LN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_LN.o ../../../../../src/ta_func/ta_LN.c + +../../../../../temp/cmr/ta_LOG10.o: ../../../../../src/ta_func/ta_LOG10.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_LOG10.o ../../../../../src/ta_func/ta_LOG10.c + +../../../../../temp/cmr/ta_MA.o: ../../../../../src/ta_func/ta_MA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_MA.o ../../../../../src/ta_func/ta_MA.c + +../../../../../temp/cmr/ta_MACD.o: ../../../../../src/ta_func/ta_MACD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_MACD.o ../../../../../src/ta_func/ta_MACD.c + +../../../../../temp/cmr/ta_MACDEXT.o: ../../../../../src/ta_func/ta_MACDEXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_MACDEXT.o ../../../../../src/ta_func/ta_MACDEXT.c + +../../../../../temp/cmr/ta_MACDFIX.o: ../../../../../src/ta_func/ta_MACDFIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_MACDFIX.o ../../../../../src/ta_func/ta_MACDFIX.c + +../../../../../temp/cmr/ta_MAMA.o: ../../../../../src/ta_func/ta_MAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_MAMA.o ../../../../../src/ta_func/ta_MAMA.c + +../../../../../temp/cmr/ta_MAVP.o: ../../../../../src/ta_func/ta_MAVP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_MAVP.o ../../../../../src/ta_func/ta_MAVP.c + +../../../../../temp/cmr/ta_MAX.o: ../../../../../src/ta_func/ta_MAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_MAX.o ../../../../../src/ta_func/ta_MAX.c + +../../../../../temp/cmr/ta_MAXINDEX.o: ../../../../../src/ta_func/ta_MAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_MAXINDEX.o ../../../../../src/ta_func/ta_MAXINDEX.c + +../../../../../temp/cmr/ta_MEDPRICE.o: ../../../../../src/ta_func/ta_MEDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_MEDPRICE.o ../../../../../src/ta_func/ta_MEDPRICE.c + +../../../../../temp/cmr/ta_MFI.o: ../../../../../src/ta_func/ta_MFI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_MFI.o ../../../../../src/ta_func/ta_MFI.c + +../../../../../temp/cmr/ta_MIDPOINT.o: ../../../../../src/ta_func/ta_MIDPOINT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_MIDPOINT.o ../../../../../src/ta_func/ta_MIDPOINT.c + +../../../../../temp/cmr/ta_MIDPRICE.o: ../../../../../src/ta_func/ta_MIDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_MIDPRICE.o ../../../../../src/ta_func/ta_MIDPRICE.c + +../../../../../temp/cmr/ta_MIN.o: ../../../../../src/ta_func/ta_MIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_MIN.o ../../../../../src/ta_func/ta_MIN.c + +../../../../../temp/cmr/ta_MININDEX.o: ../../../../../src/ta_func/ta_MININDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_MININDEX.o ../../../../../src/ta_func/ta_MININDEX.c + +../../../../../temp/cmr/ta_MINMAX.o: ../../../../../src/ta_func/ta_MINMAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_MINMAX.o ../../../../../src/ta_func/ta_MINMAX.c + +../../../../../temp/cmr/ta_MINMAXINDEX.o: ../../../../../src/ta_func/ta_MINMAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_MINMAXINDEX.o ../../../../../src/ta_func/ta_MINMAXINDEX.c + +../../../../../temp/cmr/ta_MINUS_DI.o: ../../../../../src/ta_func/ta_MINUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_MINUS_DI.o ../../../../../src/ta_func/ta_MINUS_DI.c + +../../../../../temp/cmr/ta_MINUS_DM.o: ../../../../../src/ta_func/ta_MINUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_MINUS_DM.o ../../../../../src/ta_func/ta_MINUS_DM.c + +../../../../../temp/cmr/ta_MOM.o: ../../../../../src/ta_func/ta_MOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_MOM.o ../../../../../src/ta_func/ta_MOM.c + +../../../../../temp/cmr/ta_MULT.o: ../../../../../src/ta_func/ta_MULT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_MULT.o ../../../../../src/ta_func/ta_MULT.c + +../../../../../temp/cmr/ta_NATR.o: ../../../../../src/ta_func/ta_NATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_NATR.o ../../../../../src/ta_func/ta_NATR.c + +../../../../../temp/cmr/ta_OBV.o: ../../../../../src/ta_func/ta_OBV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_OBV.o ../../../../../src/ta_func/ta_OBV.c + +../../../../../temp/cmr/ta_PLUS_DI.o: ../../../../../src/ta_func/ta_PLUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_PLUS_DI.o ../../../../../src/ta_func/ta_PLUS_DI.c + +../../../../../temp/cmr/ta_PLUS_DM.o: ../../../../../src/ta_func/ta_PLUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_PLUS_DM.o ../../../../../src/ta_func/ta_PLUS_DM.c + +../../../../../temp/cmr/ta_PPO.o: ../../../../../src/ta_func/ta_PPO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_PPO.o ../../../../../src/ta_func/ta_PPO.c + +../../../../../temp/cmr/ta_ROC.o: ../../../../../src/ta_func/ta_ROC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_ROC.o ../../../../../src/ta_func/ta_ROC.c + +../../../../../temp/cmr/ta_ROCP.o: ../../../../../src/ta_func/ta_ROCP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_ROCP.o ../../../../../src/ta_func/ta_ROCP.c + +../../../../../temp/cmr/ta_ROCR.o: ../../../../../src/ta_func/ta_ROCR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_ROCR.o ../../../../../src/ta_func/ta_ROCR.c + +../../../../../temp/cmr/ta_ROCR100.o: ../../../../../src/ta_func/ta_ROCR100.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_ROCR100.o ../../../../../src/ta_func/ta_ROCR100.c + +../../../../../temp/cmr/ta_RSI.o: ../../../../../src/ta_func/ta_RSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_RSI.o ../../../../../src/ta_func/ta_RSI.c + +../../../../../temp/cmr/ta_SAR.o: ../../../../../src/ta_func/ta_SAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_SAR.o ../../../../../src/ta_func/ta_SAR.c + +../../../../../temp/cmr/ta_SAREXT.o: ../../../../../src/ta_func/ta_SAREXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_SAREXT.o ../../../../../src/ta_func/ta_SAREXT.c + +../../../../../temp/cmr/ta_SIN.o: ../../../../../src/ta_func/ta_SIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_SIN.o ../../../../../src/ta_func/ta_SIN.c + +../../../../../temp/cmr/ta_SINH.o: ../../../../../src/ta_func/ta_SINH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_SINH.o ../../../../../src/ta_func/ta_SINH.c + +../../../../../temp/cmr/ta_SMA.o: ../../../../../src/ta_func/ta_SMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_SMA.o ../../../../../src/ta_func/ta_SMA.c + +../../../../../temp/cmr/ta_SQRT.o: ../../../../../src/ta_func/ta_SQRT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_SQRT.o ../../../../../src/ta_func/ta_SQRT.c + +../../../../../temp/cmr/ta_STDDEV.o: ../../../../../src/ta_func/ta_STDDEV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_STDDEV.o ../../../../../src/ta_func/ta_STDDEV.c + +../../../../../temp/cmr/ta_STOCH.o: ../../../../../src/ta_func/ta_STOCH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_STOCH.o ../../../../../src/ta_func/ta_STOCH.c + +../../../../../temp/cmr/ta_STOCHF.o: ../../../../../src/ta_func/ta_STOCHF.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_STOCHF.o ../../../../../src/ta_func/ta_STOCHF.c + +../../../../../temp/cmr/ta_STOCHRSI.o: ../../../../../src/ta_func/ta_STOCHRSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_STOCHRSI.o ../../../../../src/ta_func/ta_STOCHRSI.c + +../../../../../temp/cmr/ta_SUB.o: ../../../../../src/ta_func/ta_SUB.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_SUB.o ../../../../../src/ta_func/ta_SUB.c + +../../../../../temp/cmr/ta_SUM.o: ../../../../../src/ta_func/ta_SUM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_SUM.o ../../../../../src/ta_func/ta_SUM.c + +../../../../../temp/cmr/ta_T3.o: ../../../../../src/ta_func/ta_T3.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_T3.o ../../../../../src/ta_func/ta_T3.c + +../../../../../temp/cmr/ta_TAN.o: ../../../../../src/ta_func/ta_TAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_TAN.o ../../../../../src/ta_func/ta_TAN.c + +../../../../../temp/cmr/ta_TANH.o: ../../../../../src/ta_func/ta_TANH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_TANH.o ../../../../../src/ta_func/ta_TANH.c + +../../../../../temp/cmr/ta_TEMA.o: ../../../../../src/ta_func/ta_TEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_TEMA.o ../../../../../src/ta_func/ta_TEMA.c + +../../../../../temp/cmr/ta_TRANGE.o: ../../../../../src/ta_func/ta_TRANGE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_TRANGE.o ../../../../../src/ta_func/ta_TRANGE.c + +../../../../../temp/cmr/ta_TRIMA.o: ../../../../../src/ta_func/ta_TRIMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_TRIMA.o ../../../../../src/ta_func/ta_TRIMA.c + +../../../../../temp/cmr/ta_TRIX.o: ../../../../../src/ta_func/ta_TRIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_TRIX.o ../../../../../src/ta_func/ta_TRIX.c + +../../../../../temp/cmr/ta_TSF.o: ../../../../../src/ta_func/ta_TSF.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_TSF.o ../../../../../src/ta_func/ta_TSF.c + +../../../../../temp/cmr/ta_TYPPRICE.o: ../../../../../src/ta_func/ta_TYPPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_TYPPRICE.o ../../../../../src/ta_func/ta_TYPPRICE.c + +../../../../../temp/cmr/ta_ULTOSC.o: ../../../../../src/ta_func/ta_ULTOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_ULTOSC.o ../../../../../src/ta_func/ta_ULTOSC.c + +../../../../../temp/cmr/ta_VAR.o: ../../../../../src/ta_func/ta_VAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_VAR.o ../../../../../src/ta_func/ta_VAR.c + +../../../../../temp/cmr/ta_WCLPRICE.o: ../../../../../src/ta_func/ta_WCLPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_WCLPRICE.o ../../../../../src/ta_func/ta_WCLPRICE.c + +../../../../../temp/cmr/ta_WILLR.o: ../../../../../src/ta_func/ta_WILLR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_WILLR.o ../../../../../src/ta_func/ta_WILLR.c + +../../../../../temp/cmr/ta_WMA.o: ../../../../../src/ta_func/ta_WMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_WMA.o ../../../../../src/ta_func/ta_WMA.c + diff --git a/make/cmr/cygwin/g++/ta_regtest/Makefile b/make/cmr/cygwin/g++/ta_regtest/Makefile new file mode 100644 index 000000000..999bc389f --- /dev/null +++ b/make/cmr/cygwin/g++/ta_regtest/Makefile @@ -0,0 +1,211 @@ +############################################################################# +# Makefile for building ../../../../../bin/ta_regtest +# Generated by tmake; +# Project: ta_regtest/ta_regtest +# Template: app +############################################################################# + +####### Compiler, tools and options + +CC = gcc +CXX = g++ +CFLAGS = -pipe -Wall -W -O2 -fno-strict-aliasing -D_REENTRANT -DQT_THREAD_SUPPORT +CXXFLAGS= -pipe -Wall -W -O2 -fno-strict-aliasing -D_REENTRANT -DQT_THREAD_SUPPORT +INCPATH = -I../../../../../src/ta_common -I../../../../../src/tools/ta_regtest -I../../../../../src/ta_func -I../../../../../include +LINK = g++ +LFLAGS = +LIBS = $(SUBLIBS) ../../../../../lib/libta_libc_cmr.a -lpthread +MOC = $(QTDIR)/bin/moc +UIC = $(QTDIR)/bin/uic + +TAR = tar -cf +GZIP = gzip -9f + +####### Support for 64-bit systems +ifeq ($(shell uname -m), x86_64) + CFLAGS += -march=x86-64 -m64 -D__64BIT__ + CXXFLAGS += -march=x86-64 -m64 -D__64BIT__ +endif + +####### Apply additional overruling user flags, if any +CFLAGS += $(CUSERFLAGS) +CXXFLAGS += $(CUSERFLAGS) + +####### Files + +HEADERS = +SOURCES = ../../../../../src/tools/ta_regtest/ta_regtest.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_candlestick.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_1in_1out.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_1in_2out.c \ + ../../../../../src/tools/ta_regtest/test_internals.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_adx.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_bbands.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_ma.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_macd.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_minmax.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_mom.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_per_ema.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hl.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hlc.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hlcv.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_per_ohlc.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_po.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_rsi.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_sar.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_stddev.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_stoch.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_trange.c \ + ../../../../../src/tools/ta_regtest/test_util.c \ + ../../../../../src/tools/ta_regtest/test_data.c \ + ../../../../../src/tools/ta_regtest/test_abstract.c +OBJECTS = ../../../../../temp/cmr/ta_regtest.o \ + ../../../../../temp/cmr/test_candlestick.o \ + ../../../../../temp/cmr/test_1in_1out.o \ + ../../../../../temp/cmr/test_1in_2out.o \ + ../../../../../temp/cmr/test_internals.o \ + ../../../../../temp/cmr/test_adx.o \ + ../../../../../temp/cmr/test_bbands.o \ + ../../../../../temp/cmr/test_ma.o \ + ../../../../../temp/cmr/test_macd.o \ + ../../../../../temp/cmr/test_minmax.o \ + ../../../../../temp/cmr/test_mom.o \ + ../../../../../temp/cmr/test_per_ema.o \ + ../../../../../temp/cmr/test_per_hl.o \ + ../../../../../temp/cmr/test_per_hlc.o \ + ../../../../../temp/cmr/test_per_hlcv.o \ + ../../../../../temp/cmr/test_per_ohlc.o \ + ../../../../../temp/cmr/test_po.o \ + ../../../../../temp/cmr/test_rsi.o \ + ../../../../../temp/cmr/test_sar.o \ + ../../../../../temp/cmr/test_stddev.o \ + ../../../../../temp/cmr/test_stoch.o \ + ../../../../../temp/cmr/test_trange.o \ + ../../../../../temp/cmr/test_util.o \ + ../../../../../temp/cmr/test_data.o \ + ../../../../../temp/cmr/test_abstract.o +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ../../../../../bin/ta_regtest +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .C .c + +.cpp.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cxx.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cc.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.C.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.c.o: + $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $< + +####### Build rules + + +all: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS) + +moc: $(SRCMOC) + +clean: + -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) + -rm -f *~ core + +####### Sub-libraries + + +###### Combined headers + + +####### Compile + +../../../../../temp/cmr/ta_regtest.o: ../../../../../src/tools/ta_regtest/ta_regtest.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_regtest.o ../../../../../src/tools/ta_regtest/ta_regtest.c + +../../../../../temp/cmr/test_candlestick.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_candlestick.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/test_candlestick.o ../../../../../src/tools/ta_regtest/ta_test_func/test_candlestick.c + +../../../../../temp/cmr/test_1in_1out.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_1in_1out.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/test_1in_1out.o ../../../../../src/tools/ta_regtest/ta_test_func/test_1in_1out.c + +../../../../../temp/cmr/test_1in_2out.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_1in_2out.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/test_1in_2out.o ../../../../../src/tools/ta_regtest/ta_test_func/test_1in_2out.c + +../../../../../temp/cmr/test_internals.o: ../../../../../src/tools/ta_regtest/test_internals.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/test_internals.o ../../../../../src/tools/ta_regtest/test_internals.c + +../../../../../temp/cmr/test_adx.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_adx.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/test_adx.o ../../../../../src/tools/ta_regtest/ta_test_func/test_adx.c + +../../../../../temp/cmr/test_bbands.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_bbands.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/test_bbands.o ../../../../../src/tools/ta_regtest/ta_test_func/test_bbands.c + +../../../../../temp/cmr/test_ma.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_ma.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/test_ma.o ../../../../../src/tools/ta_regtest/ta_test_func/test_ma.c + +../../../../../temp/cmr/test_macd.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_macd.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/test_macd.o ../../../../../src/tools/ta_regtest/ta_test_func/test_macd.c + +../../../../../temp/cmr/test_minmax.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_minmax.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/test_minmax.o ../../../../../src/tools/ta_regtest/ta_test_func/test_minmax.c + +../../../../../temp/cmr/test_mom.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_mom.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/test_mom.o ../../../../../src/tools/ta_regtest/ta_test_func/test_mom.c + +../../../../../temp/cmr/test_per_ema.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_per_ema.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/test_per_ema.o ../../../../../src/tools/ta_regtest/ta_test_func/test_per_ema.c + +../../../../../temp/cmr/test_per_hl.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hl.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/test_per_hl.o ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hl.c + +../../../../../temp/cmr/test_per_hlc.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hlc.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/test_per_hlc.o ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hlc.c + +../../../../../temp/cmr/test_per_hlcv.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hlcv.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/test_per_hlcv.o ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hlcv.c + +../../../../../temp/cmr/test_per_ohlc.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_per_ohlc.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/test_per_ohlc.o ../../../../../src/tools/ta_regtest/ta_test_func/test_per_ohlc.c + +../../../../../temp/cmr/test_po.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_po.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/test_po.o ../../../../../src/tools/ta_regtest/ta_test_func/test_po.c + +../../../../../temp/cmr/test_rsi.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_rsi.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/test_rsi.o ../../../../../src/tools/ta_regtest/ta_test_func/test_rsi.c + +../../../../../temp/cmr/test_sar.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_sar.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/test_sar.o ../../../../../src/tools/ta_regtest/ta_test_func/test_sar.c + +../../../../../temp/cmr/test_stddev.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_stddev.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/test_stddev.o ../../../../../src/tools/ta_regtest/ta_test_func/test_stddev.c + +../../../../../temp/cmr/test_stoch.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_stoch.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/test_stoch.o ../../../../../src/tools/ta_regtest/ta_test_func/test_stoch.c + +../../../../../temp/cmr/test_trange.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_trange.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/test_trange.o ../../../../../src/tools/ta_regtest/ta_test_func/test_trange.c + +../../../../../temp/cmr/test_util.o: ../../../../../src/tools/ta_regtest/test_util.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/test_util.o ../../../../../src/tools/ta_regtest/test_util.c + +../../../../../temp/cmr/test_data.o: ../../../../../src/tools/ta_regtest/test_data.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/test_data.o ../../../../../src/tools/ta_regtest/test_data.c + +../../../../../temp/cmr/test_abstract.o: ../../../../../src/tools/ta_regtest/test_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/test_abstract.o ../../../../../src/tools/ta_regtest/test_abstract.c + diff --git a/make/cmr/freebsd/g++/Makefile b/make/cmr/freebsd/g++/Makefile new file mode 100644 index 000000000..ddcdf3e56 --- /dev/null +++ b/make/cmr/freebsd/g++/Makefile @@ -0,0 +1,36 @@ +############################################################################# +# Makefile for building targets in sub directories. +# Generated by tmake; +# Project: rootmake +# Template: subdirs +############################################################################# + +MAKEFILE= Makefile +TMAKE = tmake + +SUBDIRS = ta_common \ + ta_func \ + ta_abstract \ + ta_libc \ + gen_code \ + ta_regtest + +all: $(SUBDIRS) + +$(SUBDIRS): FORCE + cd $@; $(MAKE) + +tmake: ../cmr/freebsd/g++/Makefile + +../cmr/freebsd/g++/Makefile: rootmake.pro + tmake rootmake.pro -o ../cmr/freebsd/g++/Makefile + +tmake_all: + for i in $(SUBDIRS); do ( if [ -d $$i ]; then cd $$i ; $(MAKE) -f $(MAKEFILE) tmake_all || true; fi; ) ; done + +#### $text = "\t" . 'for i in $(SUBDIRS); do ( if [ -d $$i ]; then cd $$i ; pro=`basename $$i`.pro ; $(TMAKE) $$pro -o $(MAKEFILE); grep "TEMPLATE.*subdirs" $$pro 2>/dev/null >/dev/null && $(MAKE) -f $(MAKEFILE) tmake_all || true; fi; ) ; done'; + +clean release debug: + for i in $(SUBDIRS); do ( if [ -d $$i ]; then cd $$i ; $(MAKE) $@; fi; ) ; done + +FORCE: diff --git a/make/cmr/freebsd/g++/gen_code/Makefile b/make/cmr/freebsd/g++/gen_code/Makefile new file mode 100644 index 000000000..b9ea816b4 --- /dev/null +++ b/make/cmr/freebsd/g++/gen_code/Makefile @@ -0,0 +1,225 @@ +############################################################################# +# Makefile for building ../../../../../bin/gen_code +# Generated by tmake; +# Project: gen_code/gen_code +# Template: app +############################################################################# + +####### Compiler, tools and options + +CC = gcc +CXX = g++ +CFLAGS = -pipe -Wall -W -O2 -fno-strict-aliasing -D_REENTRANT -DTA_GEN_CODE -DQT_THREAD_SUPPORT +CXXFLAGS= -pipe -Wall -W -O2 -fno-strict-aliasing -D_REENTRANT -DTA_GEN_CODE -DQT_THREAD_SUPPORT +INCPATH = -I../../../../../include -I../../../../../src/ta_common -I../../../../../src/ta_abstract -I../../../../../src/ta_abstract/tables -I../../../../../src/ta_abstract/frames -I/usr/local/include +LINK = g++ +LFLAGS = -L/usr/local/lib +LIBS = $(SUBLIBS) ../../../../../lib/libta_common_cmr.a -pthread +MOC = $(QTDIR)/bin/moc +UIC = $(QTDIR)/bin/uic + +TAR = tar -cf +GZIP = gzip -9f + +####### Apply additional overruling user flags, if any +CFLAGS += $(CUSERFLAGS) +CXXFLAGS += $(CUSERFLAGS) + +####### Files + +HEADERS = +SOURCES = ../../../../../src/tools/gen_code/gen_code.c \ + ../../../../../src/ta_abstract/ta_abstract.c \ + ../../../../../src/ta_abstract/ta_def_ui.c \ + ../../../../../src/ta_abstract/tables/table_a.c \ + ../../../../../src/ta_abstract/tables/table_b.c \ + ../../../../../src/ta_abstract/tables/table_c.c \ + ../../../../../src/ta_abstract/tables/table_d.c \ + ../../../../../src/ta_abstract/tables/table_e.c \ + ../../../../../src/ta_abstract/tables/table_f.c \ + ../../../../../src/ta_abstract/tables/table_g.c \ + ../../../../../src/ta_abstract/tables/table_h.c \ + ../../../../../src/ta_abstract/tables/table_i.c \ + ../../../../../src/ta_abstract/tables/table_j.c \ + ../../../../../src/ta_abstract/tables/table_k.c \ + ../../../../../src/ta_abstract/tables/table_l.c \ + ../../../../../src/ta_abstract/tables/table_m.c \ + ../../../../../src/ta_abstract/tables/table_n.c \ + ../../../../../src/ta_abstract/tables/table_o.c \ + ../../../../../src/ta_abstract/tables/table_p.c \ + ../../../../../src/ta_abstract/tables/table_q.c \ + ../../../../../src/ta_abstract/tables/table_r.c \ + ../../../../../src/ta_abstract/tables/table_s.c \ + ../../../../../src/ta_abstract/tables/table_t.c \ + ../../../../../src/ta_abstract/tables/table_u.c \ + ../../../../../src/ta_abstract/tables/table_v.c \ + ../../../../../src/ta_abstract/tables/table_w.c \ + ../../../../../src/ta_abstract/tables/table_x.c \ + ../../../../../src/ta_abstract/tables/table_y.c \ + ../../../../../src/ta_abstract/tables/table_z.c +OBJECTS = ../../../../../temp/cmr/gen_code/gen_code.o \ + ../../../../../temp/cmr/gen_code/ta_abstract.o \ + ../../../../../temp/cmr/gen_code/ta_def_ui.o \ + ../../../../../temp/cmr/gen_code/table_a.o \ + ../../../../../temp/cmr/gen_code/table_b.o \ + ../../../../../temp/cmr/gen_code/table_c.o \ + ../../../../../temp/cmr/gen_code/table_d.o \ + ../../../../../temp/cmr/gen_code/table_e.o \ + ../../../../../temp/cmr/gen_code/table_f.o \ + ../../../../../temp/cmr/gen_code/table_g.o \ + ../../../../../temp/cmr/gen_code/table_h.o \ + ../../../../../temp/cmr/gen_code/table_i.o \ + ../../../../../temp/cmr/gen_code/table_j.o \ + ../../../../../temp/cmr/gen_code/table_k.o \ + ../../../../../temp/cmr/gen_code/table_l.o \ + ../../../../../temp/cmr/gen_code/table_m.o \ + ../../../../../temp/cmr/gen_code/table_n.o \ + ../../../../../temp/cmr/gen_code/table_o.o \ + ../../../../../temp/cmr/gen_code/table_p.o \ + ../../../../../temp/cmr/gen_code/table_q.o \ + ../../../../../temp/cmr/gen_code/table_r.o \ + ../../../../../temp/cmr/gen_code/table_s.o \ + ../../../../../temp/cmr/gen_code/table_t.o \ + ../../../../../temp/cmr/gen_code/table_u.o \ + ../../../../../temp/cmr/gen_code/table_v.o \ + ../../../../../temp/cmr/gen_code/table_w.o \ + ../../../../../temp/cmr/gen_code/table_x.o \ + ../../../../../temp/cmr/gen_code/table_y.o \ + ../../../../../temp/cmr/gen_code/table_z.o +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ../../../../../bin/gen_code +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .C .c + +.cpp.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cxx.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cc.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.C.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.c.o: + $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $< + +####### Build rules + + +all: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS) + +moc: $(SRCMOC) + +clean: + -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) + -rm -f *~ core + +####### Sub-libraries + + +###### Combined headers + + +####### Compile + +../../../../../temp/cmr/gen_code/gen_code.o: ../../../../../src/tools/gen_code/gen_code.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/gen_code/gen_code.o ../../../../../src/tools/gen_code/gen_code.c + +../../../../../temp/cmr/gen_code/ta_abstract.o: ../../../../../src/ta_abstract/ta_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/gen_code/ta_abstract.o ../../../../../src/ta_abstract/ta_abstract.c + +../../../../../temp/cmr/gen_code/ta_def_ui.o: ../../../../../src/ta_abstract/ta_def_ui.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/gen_code/ta_def_ui.o ../../../../../src/ta_abstract/ta_def_ui.c + +../../../../../temp/cmr/gen_code/table_a.o: ../../../../../src/ta_abstract/tables/table_a.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/gen_code/table_a.o ../../../../../src/ta_abstract/tables/table_a.c + +../../../../../temp/cmr/gen_code/table_b.o: ../../../../../src/ta_abstract/tables/table_b.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/gen_code/table_b.o ../../../../../src/ta_abstract/tables/table_b.c + +../../../../../temp/cmr/gen_code/table_c.o: ../../../../../src/ta_abstract/tables/table_c.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/gen_code/table_c.o ../../../../../src/ta_abstract/tables/table_c.c + +../../../../../temp/cmr/gen_code/table_d.o: ../../../../../src/ta_abstract/tables/table_d.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/gen_code/table_d.o ../../../../../src/ta_abstract/tables/table_d.c + +../../../../../temp/cmr/gen_code/table_e.o: ../../../../../src/ta_abstract/tables/table_e.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/gen_code/table_e.o ../../../../../src/ta_abstract/tables/table_e.c + +../../../../../temp/cmr/gen_code/table_f.o: ../../../../../src/ta_abstract/tables/table_f.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/gen_code/table_f.o ../../../../../src/ta_abstract/tables/table_f.c + +../../../../../temp/cmr/gen_code/table_g.o: ../../../../../src/ta_abstract/tables/table_g.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/gen_code/table_g.o ../../../../../src/ta_abstract/tables/table_g.c + +../../../../../temp/cmr/gen_code/table_h.o: ../../../../../src/ta_abstract/tables/table_h.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/gen_code/table_h.o ../../../../../src/ta_abstract/tables/table_h.c + +../../../../../temp/cmr/gen_code/table_i.o: ../../../../../src/ta_abstract/tables/table_i.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/gen_code/table_i.o ../../../../../src/ta_abstract/tables/table_i.c + +../../../../../temp/cmr/gen_code/table_j.o: ../../../../../src/ta_abstract/tables/table_j.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/gen_code/table_j.o ../../../../../src/ta_abstract/tables/table_j.c + +../../../../../temp/cmr/gen_code/table_k.o: ../../../../../src/ta_abstract/tables/table_k.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/gen_code/table_k.o ../../../../../src/ta_abstract/tables/table_k.c + +../../../../../temp/cmr/gen_code/table_l.o: ../../../../../src/ta_abstract/tables/table_l.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/gen_code/table_l.o ../../../../../src/ta_abstract/tables/table_l.c + +../../../../../temp/cmr/gen_code/table_m.o: ../../../../../src/ta_abstract/tables/table_m.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/gen_code/table_m.o ../../../../../src/ta_abstract/tables/table_m.c + +../../../../../temp/cmr/gen_code/table_n.o: ../../../../../src/ta_abstract/tables/table_n.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/gen_code/table_n.o ../../../../../src/ta_abstract/tables/table_n.c + +../../../../../temp/cmr/gen_code/table_o.o: ../../../../../src/ta_abstract/tables/table_o.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/gen_code/table_o.o ../../../../../src/ta_abstract/tables/table_o.c + +../../../../../temp/cmr/gen_code/table_p.o: ../../../../../src/ta_abstract/tables/table_p.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/gen_code/table_p.o ../../../../../src/ta_abstract/tables/table_p.c + +../../../../../temp/cmr/gen_code/table_q.o: ../../../../../src/ta_abstract/tables/table_q.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/gen_code/table_q.o ../../../../../src/ta_abstract/tables/table_q.c + +../../../../../temp/cmr/gen_code/table_r.o: ../../../../../src/ta_abstract/tables/table_r.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/gen_code/table_r.o ../../../../../src/ta_abstract/tables/table_r.c + +../../../../../temp/cmr/gen_code/table_s.o: ../../../../../src/ta_abstract/tables/table_s.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/gen_code/table_s.o ../../../../../src/ta_abstract/tables/table_s.c + +../../../../../temp/cmr/gen_code/table_t.o: ../../../../../src/ta_abstract/tables/table_t.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/gen_code/table_t.o ../../../../../src/ta_abstract/tables/table_t.c + +../../../../../temp/cmr/gen_code/table_u.o: ../../../../../src/ta_abstract/tables/table_u.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/gen_code/table_u.o ../../../../../src/ta_abstract/tables/table_u.c + +../../../../../temp/cmr/gen_code/table_v.o: ../../../../../src/ta_abstract/tables/table_v.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/gen_code/table_v.o ../../../../../src/ta_abstract/tables/table_v.c + +../../../../../temp/cmr/gen_code/table_w.o: ../../../../../src/ta_abstract/tables/table_w.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/gen_code/table_w.o ../../../../../src/ta_abstract/tables/table_w.c + +../../../../../temp/cmr/gen_code/table_x.o: ../../../../../src/ta_abstract/tables/table_x.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/gen_code/table_x.o ../../../../../src/ta_abstract/tables/table_x.c + +../../../../../temp/cmr/gen_code/table_y.o: ../../../../../src/ta_abstract/tables/table_y.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/gen_code/table_y.o ../../../../../src/ta_abstract/tables/table_y.c + +../../../../../temp/cmr/gen_code/table_z.o: ../../../../../src/ta_abstract/tables/table_z.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/gen_code/table_z.o ../../../../../src/ta_abstract/tables/table_z.c + diff --git a/make/cmr/freebsd/g++/ta_abstract/Makefile b/make/cmr/freebsd/g++/ta_abstract/Makefile new file mode 100644 index 000000000..d8f939c60 --- /dev/null +++ b/make/cmr/freebsd/g++/ta_abstract/Makefile @@ -0,0 +1,243 @@ +############################################################################# +# Makefile for building ../../../../../lib/libta_abstract_cmr.a +# Generated by tmake; +# Project: ta_abstract/ta_abstract +# Template: lib +############################################################################# + +####### Compiler, tools and options + +CC = gcc +CXX = g++ +CFLAGS = -pipe -Wall -W -O2 -fno-strict-aliasing -D_REENTRANT -DQT_THREAD_SUPPORT +CXXFLAGS= -pipe -Wall -W -O2 -fno-strict-aliasing -D_REENTRANT -DQT_THREAD_SUPPORT +INCPATH = -I../../../../../src/ta_common -I../../../../../src/ta_abstract -I../../../../../src/ta_abstract/tables -I../../../../../src/ta_abstract/frames -I../../../../../include -I/usr/local/include +AR = ar cqs +RANLIB = +MOC = $(QTDIR)/bin/moc +UIC = $(QTDIR)/bin/uic + +TAR = tar -cf +GZIP = gzip -9f + +####### Support for 64-bit systems +ifeq ($(shell uname -m), x86_64) + CFLAGS += -march=x86-64 -m64 -D__64BIT__ + CXXFLAGS += -march=x86-64 -m64 -D__64BIT__ +endif + +####### Apply additional overruling user flags, if any +CFLAGS += $(CUSERFLAGS) +CXXFLAGS += $(CUSERFLAGS) + +####### Files + +HEADERS = +SOURCES = ../../../../../src/ta_abstract/ta_abstract.c \ + ../../../../../src/ta_abstract/ta_def_ui.c \ + ../../../../../src/ta_abstract/ta_func_api.c \ + ../../../../../src/ta_abstract/ta_group_idx.c \ + ../../../../../src/ta_abstract/frames/ta_frame.c \ + ../../../../../src/ta_abstract/tables/table_a.c \ + ../../../../../src/ta_abstract/tables/table_b.c \ + ../../../../../src/ta_abstract/tables/table_c.c \ + ../../../../../src/ta_abstract/tables/table_d.c \ + ../../../../../src/ta_abstract/tables/table_e.c \ + ../../../../../src/ta_abstract/tables/table_f.c \ + ../../../../../src/ta_abstract/tables/table_g.c \ + ../../../../../src/ta_abstract/tables/table_h.c \ + ../../../../../src/ta_abstract/tables/table_i.c \ + ../../../../../src/ta_abstract/tables/table_j.c \ + ../../../../../src/ta_abstract/tables/table_k.c \ + ../../../../../src/ta_abstract/tables/table_l.c \ + ../../../../../src/ta_abstract/tables/table_m.c \ + ../../../../../src/ta_abstract/tables/table_n.c \ + ../../../../../src/ta_abstract/tables/table_o.c \ + ../../../../../src/ta_abstract/tables/table_p.c \ + ../../../../../src/ta_abstract/tables/table_q.c \ + ../../../../../src/ta_abstract/tables/table_r.c \ + ../../../../../src/ta_abstract/tables/table_s.c \ + ../../../../../src/ta_abstract/tables/table_t.c \ + ../../../../../src/ta_abstract/tables/table_u.c \ + ../../../../../src/ta_abstract/tables/table_v.c \ + ../../../../../src/ta_abstract/tables/table_w.c \ + ../../../../../src/ta_abstract/tables/table_x.c \ + ../../../../../src/ta_abstract/tables/table_y.c \ + ../../../../../src/ta_abstract/tables/table_z.c +OBJECTS = ../../../../../temp/cmr/ta_abstract.o \ + ../../../../../temp/cmr/ta_def_ui.o \ + ../../../../../temp/cmr/ta_func_api.o \ + ../../../../../temp/cmr/ta_group_idx.o \ + ../../../../../temp/cmr/ta_frame.o \ + ../../../../../temp/cmr/table_a.o \ + ../../../../../temp/cmr/table_b.o \ + ../../../../../temp/cmr/table_c.o \ + ../../../../../temp/cmr/table_d.o \ + ../../../../../temp/cmr/table_e.o \ + ../../../../../temp/cmr/table_f.o \ + ../../../../../temp/cmr/table_g.o \ + ../../../../../temp/cmr/table_h.o \ + ../../../../../temp/cmr/table_i.o \ + ../../../../../temp/cmr/table_j.o \ + ../../../../../temp/cmr/table_k.o \ + ../../../../../temp/cmr/table_l.o \ + ../../../../../temp/cmr/table_m.o \ + ../../../../../temp/cmr/table_n.o \ + ../../../../../temp/cmr/table_o.o \ + ../../../../../temp/cmr/table_p.o \ + ../../../../../temp/cmr/table_q.o \ + ../../../../../temp/cmr/table_r.o \ + ../../../../../temp/cmr/table_s.o \ + ../../../../../temp/cmr/table_t.o \ + ../../../../../temp/cmr/table_u.o \ + ../../../../../temp/cmr/table_v.o \ + ../../../../../temp/cmr/table_w.o \ + ../../../../../temp/cmr/table_x.o \ + ../../../../../temp/cmr/table_y.o \ + ../../../../../temp/cmr/table_z.o +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ../../../../../lib/libta_abstract_cmr.a +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .C .c + +.cpp.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cxx.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cc.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.C.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.c.o: + $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $< + +####### Build rules + + +all: $(TARGET) + +staticlib: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + -rm -f $(TARGET) + $(AR) $(TARGET) $(OBJECTS) $(OBJMOC) + +moc: $(SRCMOC) + +clean: + -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) + -rm -f *~ core + +####### Sub-libraries + + +###### Combined headers + + +####### Compile + +../../../../../temp/cmr/ta_abstract.o: ../../../../../src/ta_abstract/ta_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_abstract.o ../../../../../src/ta_abstract/ta_abstract.c + +../../../../../temp/cmr/ta_def_ui.o: ../../../../../src/ta_abstract/ta_def_ui.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_def_ui.o ../../../../../src/ta_abstract/ta_def_ui.c + +../../../../../temp/cmr/ta_func_api.o: ../../../../../src/ta_abstract/ta_func_api.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_func_api.o ../../../../../src/ta_abstract/ta_func_api.c + +../../../../../temp/cmr/ta_group_idx.o: ../../../../../src/ta_abstract/ta_group_idx.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_group_idx.o ../../../../../src/ta_abstract/ta_group_idx.c + +../../../../../temp/cmr/ta_frame.o: ../../../../../src/ta_abstract/frames/ta_frame.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_frame.o ../../../../../src/ta_abstract/frames/ta_frame.c + +../../../../../temp/cmr/table_a.o: ../../../../../src/ta_abstract/tables/table_a.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_a.o ../../../../../src/ta_abstract/tables/table_a.c + +../../../../../temp/cmr/table_b.o: ../../../../../src/ta_abstract/tables/table_b.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_b.o ../../../../../src/ta_abstract/tables/table_b.c + +../../../../../temp/cmr/table_c.o: ../../../../../src/ta_abstract/tables/table_c.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_c.o ../../../../../src/ta_abstract/tables/table_c.c + +../../../../../temp/cmr/table_d.o: ../../../../../src/ta_abstract/tables/table_d.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_d.o ../../../../../src/ta_abstract/tables/table_d.c + +../../../../../temp/cmr/table_e.o: ../../../../../src/ta_abstract/tables/table_e.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_e.o ../../../../../src/ta_abstract/tables/table_e.c + +../../../../../temp/cmr/table_f.o: ../../../../../src/ta_abstract/tables/table_f.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_f.o ../../../../../src/ta_abstract/tables/table_f.c + +../../../../../temp/cmr/table_g.o: ../../../../../src/ta_abstract/tables/table_g.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_g.o ../../../../../src/ta_abstract/tables/table_g.c + +../../../../../temp/cmr/table_h.o: ../../../../../src/ta_abstract/tables/table_h.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_h.o ../../../../../src/ta_abstract/tables/table_h.c + +../../../../../temp/cmr/table_i.o: ../../../../../src/ta_abstract/tables/table_i.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_i.o ../../../../../src/ta_abstract/tables/table_i.c + +../../../../../temp/cmr/table_j.o: ../../../../../src/ta_abstract/tables/table_j.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_j.o ../../../../../src/ta_abstract/tables/table_j.c + +../../../../../temp/cmr/table_k.o: ../../../../../src/ta_abstract/tables/table_k.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_k.o ../../../../../src/ta_abstract/tables/table_k.c + +../../../../../temp/cmr/table_l.o: ../../../../../src/ta_abstract/tables/table_l.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_l.o ../../../../../src/ta_abstract/tables/table_l.c + +../../../../../temp/cmr/table_m.o: ../../../../../src/ta_abstract/tables/table_m.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_m.o ../../../../../src/ta_abstract/tables/table_m.c + +../../../../../temp/cmr/table_n.o: ../../../../../src/ta_abstract/tables/table_n.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_n.o ../../../../../src/ta_abstract/tables/table_n.c + +../../../../../temp/cmr/table_o.o: ../../../../../src/ta_abstract/tables/table_o.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_o.o ../../../../../src/ta_abstract/tables/table_o.c + +../../../../../temp/cmr/table_p.o: ../../../../../src/ta_abstract/tables/table_p.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_p.o ../../../../../src/ta_abstract/tables/table_p.c + +../../../../../temp/cmr/table_q.o: ../../../../../src/ta_abstract/tables/table_q.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_q.o ../../../../../src/ta_abstract/tables/table_q.c + +../../../../../temp/cmr/table_r.o: ../../../../../src/ta_abstract/tables/table_r.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_r.o ../../../../../src/ta_abstract/tables/table_r.c + +../../../../../temp/cmr/table_s.o: ../../../../../src/ta_abstract/tables/table_s.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_s.o ../../../../../src/ta_abstract/tables/table_s.c + +../../../../../temp/cmr/table_t.o: ../../../../../src/ta_abstract/tables/table_t.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_t.o ../../../../../src/ta_abstract/tables/table_t.c + +../../../../../temp/cmr/table_u.o: ../../../../../src/ta_abstract/tables/table_u.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_u.o ../../../../../src/ta_abstract/tables/table_u.c + +../../../../../temp/cmr/table_v.o: ../../../../../src/ta_abstract/tables/table_v.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_v.o ../../../../../src/ta_abstract/tables/table_v.c + +../../../../../temp/cmr/table_w.o: ../../../../../src/ta_abstract/tables/table_w.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_w.o ../../../../../src/ta_abstract/tables/table_w.c + +../../../../../temp/cmr/table_x.o: ../../../../../src/ta_abstract/tables/table_x.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_x.o ../../../../../src/ta_abstract/tables/table_x.c + +../../../../../temp/cmr/table_y.o: ../../../../../src/ta_abstract/tables/table_y.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_y.o ../../../../../src/ta_abstract/tables/table_y.c + +../../../../../temp/cmr/table_z.o: ../../../../../src/ta_abstract/tables/table_z.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_z.o ../../../../../src/ta_abstract/tables/table_z.c + diff --git a/make/cmr/freebsd/g++/ta_common/Makefile b/make/cmr/freebsd/g++/ta_common/Makefile new file mode 100644 index 000000000..011fa4083 --- /dev/null +++ b/make/cmr/freebsd/g++/ta_common/Makefile @@ -0,0 +1,103 @@ +############################################################################# +# Makefile for building ../../../../../lib/libta_common_cmr.a +# Generated by tmake; +# Project: ta_common/ta_common +# Template: lib +############################################################################# + +####### Compiler, tools and options + +CC = gcc +CXX = g++ +CFLAGS = -pipe -Wall -W -O2 -fno-strict-aliasing -D_REENTRANT -DQT_THREAD_SUPPORT +CXXFLAGS= -pipe -Wall -W -O2 -fno-strict-aliasing -D_REENTRANT -DQT_THREAD_SUPPORT +INCPATH = -I../../../../../src/ta_common -I../../../../../include -I/usr/local/include +AR = ar cqs +RANLIB = +MOC = $(QTDIR)/bin/moc +UIC = $(QTDIR)/bin/uic + +TAR = tar -cf +GZIP = gzip -9f + +####### Support for 64-bit systems +ifeq ($(shell uname -m), x86_64) + CFLAGS += -march=x86-64 -m64 -D__64BIT__ + CXXFLAGS += -march=x86-64 -m64 -D__64BIT__ +endif + +####### Apply additional overruling user flags, if any +CFLAGS += $(CUSERFLAGS) +CXXFLAGS += $(CUSERFLAGS) + +####### Files + +HEADERS = +SOURCES = ../../../../../src/ta_common/ta_global.c \ + ../../../../../src/ta_common/ta_retcode.c \ + ../../../../../src/ta_common/ta_version.c +OBJECTS = ../../../../../temp/cmr/ta_global.o \ + ../../../../../temp/cmr/ta_retcode.o \ + ../../../../../temp/cmr/ta_version.o +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ../../../../../lib/libta_common_cmr.a +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .C .c + +.cpp.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cxx.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cc.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.C.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.c.o: + $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $< + +####### Build rules + + +all: $(TARGET) + +staticlib: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + -rm -f $(TARGET) + $(AR) $(TARGET) $(OBJECTS) $(OBJMOC) + +moc: $(SRCMOC) + +clean: + -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) + -rm -f *~ core + +####### Sub-libraries + + +###### Combined headers + + +####### Compile + +../../../../../temp/cmr/ta_global.o: ../../../../../src/ta_common/ta_global.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_global.o ../../../../../src/ta_common/ta_global.c + +../../../../../temp/cmr/ta_retcode.o: ../../../../../src/ta_common/ta_retcode.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_retcode.o ../../../../../src/ta_common/ta_retcode.c + +../../../../../temp/cmr/ta_version.o: ../../../../../src/ta_common/ta_version.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_version.o ../../../../../src/ta_common/ta_version.c + diff --git a/make/cmr/freebsd/g++/ta_func/Makefile b/make/cmr/freebsd/g++/ta_func/Makefile new file mode 100644 index 000000000..e19fde184 --- /dev/null +++ b/make/cmr/freebsd/g++/ta_func/Makefile @@ -0,0 +1,883 @@ +############################################################################# +# Makefile for building ../../../../../lib/libta_func_cmr.a +# Generated by tmake; +# Project: ta_func/ta_func +# Template: lib +############################################################################# + +####### Compiler, tools and options + +CC = gcc +CXX = g++ +CFLAGS = -pipe -Wall -W -O2 -fno-strict-aliasing -D_REENTRANT -DQT_THREAD_SUPPORT +CXXFLAGS= -pipe -Wall -W -O2 -fno-strict-aliasing -D_REENTRANT -DQT_THREAD_SUPPORT +INCPATH = -I../../../../../src/ta_common -I/n -I../../../../../include -I/usr/local/include +AR = ar cqs +RANLIB = +MOC = $(QTDIR)/bin/moc +UIC = $(QTDIR)/bin/uic + +TAR = tar -cf +GZIP = gzip -9f + +####### Support for 64-bit systems +ifeq ($(shell uname -m), x86_64) + CFLAGS += -march=x86-64 -m64 -D__64BIT__ + CXXFLAGS += -march=x86-64 -m64 -D__64BIT__ +endif + +####### Apply additional overruling user flags, if any +CFLAGS += $(CUSERFLAGS) +CXXFLAGS += $(CUSERFLAGS) + +####### Files + +HEADERS = +SOURCES = ../../../../../src/ta_func/ta_utility.c \ + ../../../../../src/ta_func/ta_ACOS.c \ + ../../../../../src/ta_func/ta_AD.c \ + ../../../../../src/ta_func/ta_ADD.c \ + ../../../../../src/ta_func/ta_ADOSC.c \ + ../../../../../src/ta_func/ta_ADX.c \ + ../../../../../src/ta_func/ta_ADXR.c \ + ../../../../../src/ta_func/ta_APO.c \ + ../../../../../src/ta_func/ta_AROON.c \ + ../../../../../src/ta_func/ta_AROONOSC.c \ + ../../../../../src/ta_func/ta_ASIN.c \ + ../../../../../src/ta_func/ta_ATAN.c \ + ../../../../../src/ta_func/ta_ATR.c \ + ../../../../../src/ta_func/ta_AVGPRICE.c \ + ../../../../../src/ta_func/ta_BBANDS.c \ + ../../../../../src/ta_func/ta_BETA.c \ + ../../../../../src/ta_func/ta_BOP.c \ + ../../../../../src/ta_func/ta_CCI.c \ + ../../../../../src/ta_func/ta_CDL2CROWS.c \ + ../../../../../src/ta_func/ta_CDL3BLACKCROWS.c \ + ../../../../../src/ta_func/ta_CDL3INSIDE.c \ + ../../../../../src/ta_func/ta_CDL3LINESTRIKE.c \ + ../../../../../src/ta_func/ta_CDL3OUTSIDE.c \ + ../../../../../src/ta_func/ta_CDL3STARSINSOUTH.c \ + ../../../../../src/ta_func/ta_CDL3WHITESOLDIERS.c \ + ../../../../../src/ta_func/ta_CDLABANDONEDBABY.c \ + ../../../../../src/ta_func/ta_CDLADVANCEBLOCK.c \ + ../../../../../src/ta_func/ta_CDLBELTHOLD.c \ + ../../../../../src/ta_func/ta_CDLBREAKAWAY.c \ + ../../../../../src/ta_func/ta_CDLCLOSINGMARUBOZU.c \ + ../../../../../src/ta_func/ta_CDLCONCEALBABYSWALL.c \ + ../../../../../src/ta_func/ta_CDLCOUNTERATTACK.c \ + ../../../../../src/ta_func/ta_CDLDARKCLOUDCOVER.c \ + ../../../../../src/ta_func/ta_CDLDOJI.c \ + ../../../../../src/ta_func/ta_CDLDOJISTAR.c \ + ../../../../../src/ta_func/ta_CDLDRAGONFLYDOJI.c \ + ../../../../../src/ta_func/ta_CDLENGULFING.c \ + ../../../../../src/ta_func/ta_CDLEVENINGDOJISTAR.c \ + ../../../../../src/ta_func/ta_CDLEVENINGSTAR.c \ + ../../../../../src/ta_func/ta_CDLGAPSIDESIDEWHITE.c \ + ../../../../../src/ta_func/ta_CDLGRAVESTONEDOJI.c \ + ../../../../../src/ta_func/ta_CDLHAMMER.c \ + ../../../../../src/ta_func/ta_CDLHANGINGMAN.c \ + ../../../../../src/ta_func/ta_CDLHARAMI.c \ + ../../../../../src/ta_func/ta_CDLHARAMICROSS.c \ + ../../../../../src/ta_func/ta_CDLHIGHWAVE.c \ + ../../../../../src/ta_func/ta_CDLHIKKAKE.c \ + ../../../../../src/ta_func/ta_CDLHIKKAKEMOD.c \ + ../../../../../src/ta_func/ta_CDLHOMINGPIGEON.c \ + ../../../../../src/ta_func/ta_CDLIDENTICAL3CROWS.c \ + ../../../../../src/ta_func/ta_CDLINNECK.c \ + ../../../../../src/ta_func/ta_CDLINVERTEDHAMMER.c \ + ../../../../../src/ta_func/ta_CDLKICKING.c \ + ../../../../../src/ta_func/ta_CDLKICKINGBYLENGTH.c \ + ../../../../../src/ta_func/ta_CDLLADDERBOTTOM.c \ + ../../../../../src/ta_func/ta_CDLLONGLEGGEDDOJI.c \ + ../../../../../src/ta_func/ta_CDLLONGLINE.c \ + ../../../../../src/ta_func/ta_CDLMARUBOZU.c \ + ../../../../../src/ta_func/ta_CDLMATCHINGLOW.c \ + ../../../../../src/ta_func/ta_CDLMATHOLD.c \ + ../../../../../src/ta_func/ta_CDLMORNINGDOJISTAR.c \ + ../../../../../src/ta_func/ta_CDLMORNINGSTAR.c \ + ../../../../../src/ta_func/ta_CDLONNECK.c \ + ../../../../../src/ta_func/ta_CDLPIERCING.c \ + ../../../../../src/ta_func/ta_CDLRICKSHAWMAN.c \ + ../../../../../src/ta_func/ta_CDLRISEFALL3METHODS.c \ + ../../../../../src/ta_func/ta_CDLSEPARATINGLINES.c \ + ../../../../../src/ta_func/ta_CDLSHOOTINGSTAR.c \ + ../../../../../src/ta_func/ta_CDLSHORTLINE.c \ + ../../../../../src/ta_func/ta_CDLSPINNINGTOP.c \ + ../../../../../src/ta_func/ta_CDLSTALLEDPATTERN.c \ + ../../../../../src/ta_func/ta_CDLSTICKSANDWICH.c \ + ../../../../../src/ta_func/ta_CDLTAKURI.c \ + ../../../../../src/ta_func/ta_CDLTASUKIGAP.c \ + ../../../../../src/ta_func/ta_CDLTHRUSTING.c \ + ../../../../../src/ta_func/ta_CDLTRISTAR.c \ + ../../../../../src/ta_func/ta_CDLUNIQUE3RIVER.c \ + ../../../../../src/ta_func/ta_CDLUPSIDEGAP2CROWS.c \ + ../../../../../src/ta_func/ta_CDLXSIDEGAP3METHODS.c \ + ../../../../../src/ta_func/ta_CEIL.c \ + ../../../../../src/ta_func/ta_CMO.c \ + ../../../../../src/ta_func/ta_CORREL.c \ + ../../../../../src/ta_func/ta_COS.c \ + ../../../../../src/ta_func/ta_COSH.c \ + ../../../../../src/ta_func/ta_DEMA.c \ + ../../../../../src/ta_func/ta_DIV.c \ + ../../../../../src/ta_func/ta_DX.c \ + ../../../../../src/ta_func/ta_EMA.c \ + ../../../../../src/ta_func/ta_EXP.c \ + ../../../../../src/ta_func/ta_FLOOR.c \ + ../../../../../src/ta_func/ta_HT_DCPERIOD.c \ + ../../../../../src/ta_func/ta_HT_DCPHASE.c \ + ../../../../../src/ta_func/ta_HT_PHASOR.c \ + ../../../../../src/ta_func/ta_HT_SINE.c \ + ../../../../../src/ta_func/ta_HT_TRENDLINE.c \ + ../../../../../src/ta_func/ta_HT_TRENDMODE.c \ + ../../../../../src/ta_func/ta_KAMA.c \ + ../../../../../src/ta_func/ta_LINEARREG.c \ + ../../../../../src/ta_func/ta_LINEARREG_ANGLE.c \ + ../../../../../src/ta_func/ta_LINEARREG_INTERCEPT.c \ + ../../../../../src/ta_func/ta_LINEARREG_SLOPE.c \ + ../../../../../src/ta_func/ta_LN.c \ + ../../../../../src/ta_func/ta_LOG10.c \ + ../../../../../src/ta_func/ta_MA.c \ + ../../../../../src/ta_func/ta_MACD.c \ + ../../../../../src/ta_func/ta_MACDEXT.c \ + ../../../../../src/ta_func/ta_MACDFIX.c \ + ../../../../../src/ta_func/ta_MAMA.c \ + ../../../../../src/ta_func/ta_MAVP.c \ + ../../../../../src/ta_func/ta_MAX.c \ + ../../../../../src/ta_func/ta_MAXINDEX.c \ + ../../../../../src/ta_func/ta_MEDPRICE.c \ + ../../../../../src/ta_func/ta_MFI.c \ + ../../../../../src/ta_func/ta_MIDPOINT.c \ + ../../../../../src/ta_func/ta_MIDPRICE.c \ + ../../../../../src/ta_func/ta_MIN.c \ + ../../../../../src/ta_func/ta_MININDEX.c \ + ../../../../../src/ta_func/ta_MINMAX.c \ + ../../../../../src/ta_func/ta_MINMAXINDEX.c \ + ../../../../../src/ta_func/ta_MINUS_DI.c \ + ../../../../../src/ta_func/ta_MINUS_DM.c \ + ../../../../../src/ta_func/ta_MOM.c \ + ../../../../../src/ta_func/ta_MULT.c \ + ../../../../../src/ta_func/ta_NATR.c \ + ../../../../../src/ta_func/ta_OBV.c \ + ../../../../../src/ta_func/ta_PLUS_DI.c \ + ../../../../../src/ta_func/ta_PLUS_DM.c \ + ../../../../../src/ta_func/ta_PPO.c \ + ../../../../../src/ta_func/ta_ROC.c \ + ../../../../../src/ta_func/ta_ROCP.c \ + ../../../../../src/ta_func/ta_ROCR.c \ + ../../../../../src/ta_func/ta_ROCR100.c \ + ../../../../../src/ta_func/ta_RSI.c \ + ../../../../../src/ta_func/ta_SAR.c \ + ../../../../../src/ta_func/ta_SAREXT.c \ + ../../../../../src/ta_func/ta_SIN.c \ + ../../../../../src/ta_func/ta_SINH.c \ + ../../../../../src/ta_func/ta_SMA.c \ + ../../../../../src/ta_func/ta_SQRT.c \ + ../../../../../src/ta_func/ta_STDDEV.c \ + ../../../../../src/ta_func/ta_STOCH.c \ + ../../../../../src/ta_func/ta_STOCHF.c \ + ../../../../../src/ta_func/ta_STOCHRSI.c \ + ../../../../../src/ta_func/ta_SUB.c \ + ../../../../../src/ta_func/ta_SUM.c \ + ../../../../../src/ta_func/ta_T3.c \ + ../../../../../src/ta_func/ta_TAN.c \ + ../../../../../src/ta_func/ta_TANH.c \ + ../../../../../src/ta_func/ta_TEMA.c \ + ../../../../../src/ta_func/ta_TRANGE.c \ + ../../../../../src/ta_func/ta_TRIMA.c \ + ../../../../../src/ta_func/ta_TRIX.c \ + ../../../../../src/ta_func/ta_TSF.c \ + ../../../../../src/ta_func/ta_TYPPRICE.c \ + ../../../../../src/ta_func/ta_ULTOSC.c \ + ../../../../../src/ta_func/ta_VAR.c \ + ../../../../../src/ta_func/ta_WCLPRICE.c \ + ../../../../../src/ta_func/ta_WILLR.c \ + ../../../../../src/ta_func/ta_WMA.c +OBJECTS = ../../../../../temp/cmr/ta_utility.o \ + ../../../../../temp/cmr/ta_ACOS.o \ + ../../../../../temp/cmr/ta_AD.o \ + ../../../../../temp/cmr/ta_ADD.o \ + ../../../../../temp/cmr/ta_ADOSC.o \ + ../../../../../temp/cmr/ta_ADX.o \ + ../../../../../temp/cmr/ta_ADXR.o \ + ../../../../../temp/cmr/ta_APO.o \ + ../../../../../temp/cmr/ta_AROON.o \ + ../../../../../temp/cmr/ta_AROONOSC.o \ + ../../../../../temp/cmr/ta_ASIN.o \ + ../../../../../temp/cmr/ta_ATAN.o \ + ../../../../../temp/cmr/ta_ATR.o \ + ../../../../../temp/cmr/ta_AVGPRICE.o \ + ../../../../../temp/cmr/ta_BBANDS.o \ + ../../../../../temp/cmr/ta_BETA.o \ + ../../../../../temp/cmr/ta_BOP.o \ + ../../../../../temp/cmr/ta_CCI.o \ + ../../../../../temp/cmr/ta_CDL2CROWS.o \ + ../../../../../temp/cmr/ta_CDL3BLACKCROWS.o \ + ../../../../../temp/cmr/ta_CDL3INSIDE.o \ + ../../../../../temp/cmr/ta_CDL3LINESTRIKE.o \ + ../../../../../temp/cmr/ta_CDL3OUTSIDE.o \ + ../../../../../temp/cmr/ta_CDL3STARSINSOUTH.o \ + ../../../../../temp/cmr/ta_CDL3WHITESOLDIERS.o \ + ../../../../../temp/cmr/ta_CDLABANDONEDBABY.o \ + ../../../../../temp/cmr/ta_CDLADVANCEBLOCK.o \ + ../../../../../temp/cmr/ta_CDLBELTHOLD.o \ + ../../../../../temp/cmr/ta_CDLBREAKAWAY.o \ + ../../../../../temp/cmr/ta_CDLCLOSINGMARUBOZU.o \ + ../../../../../temp/cmr/ta_CDLCONCEALBABYSWALL.o \ + ../../../../../temp/cmr/ta_CDLCOUNTERATTACK.o \ + ../../../../../temp/cmr/ta_CDLDARKCLOUDCOVER.o \ + ../../../../../temp/cmr/ta_CDLDOJI.o \ + ../../../../../temp/cmr/ta_CDLDOJISTAR.o \ + ../../../../../temp/cmr/ta_CDLDRAGONFLYDOJI.o \ + ../../../../../temp/cmr/ta_CDLENGULFING.o \ + ../../../../../temp/cmr/ta_CDLEVENINGDOJISTAR.o \ + ../../../../../temp/cmr/ta_CDLEVENINGSTAR.o \ + ../../../../../temp/cmr/ta_CDLGAPSIDESIDEWHITE.o \ + ../../../../../temp/cmr/ta_CDLGRAVESTONEDOJI.o \ + ../../../../../temp/cmr/ta_CDLHAMMER.o \ + ../../../../../temp/cmr/ta_CDLHANGINGMAN.o \ + ../../../../../temp/cmr/ta_CDLHARAMI.o \ + ../../../../../temp/cmr/ta_CDLHARAMICROSS.o \ + ../../../../../temp/cmr/ta_CDLHIGHWAVE.o \ + ../../../../../temp/cmr/ta_CDLHIKKAKE.o \ + ../../../../../temp/cmr/ta_CDLHIKKAKEMOD.o \ + ../../../../../temp/cmr/ta_CDLHOMINGPIGEON.o \ + ../../../../../temp/cmr/ta_CDLIDENTICAL3CROWS.o \ + ../../../../../temp/cmr/ta_CDLINNECK.o \ + ../../../../../temp/cmr/ta_CDLINVERTEDHAMMER.o \ + ../../../../../temp/cmr/ta_CDLKICKING.o \ + ../../../../../temp/cmr/ta_CDLKICKINGBYLENGTH.o \ + ../../../../../temp/cmr/ta_CDLLADDERBOTTOM.o \ + ../../../../../temp/cmr/ta_CDLLONGLEGGEDDOJI.o \ + ../../../../../temp/cmr/ta_CDLLONGLINE.o \ + ../../../../../temp/cmr/ta_CDLMARUBOZU.o \ + ../../../../../temp/cmr/ta_CDLMATCHINGLOW.o \ + ../../../../../temp/cmr/ta_CDLMATHOLD.o \ + ../../../../../temp/cmr/ta_CDLMORNINGDOJISTAR.o \ + ../../../../../temp/cmr/ta_CDLMORNINGSTAR.o \ + ../../../../../temp/cmr/ta_CDLONNECK.o \ + ../../../../../temp/cmr/ta_CDLPIERCING.o \ + ../../../../../temp/cmr/ta_CDLRICKSHAWMAN.o \ + ../../../../../temp/cmr/ta_CDLRISEFALL3METHODS.o \ + ../../../../../temp/cmr/ta_CDLSEPARATINGLINES.o \ + ../../../../../temp/cmr/ta_CDLSHOOTINGSTAR.o \ + ../../../../../temp/cmr/ta_CDLSHORTLINE.o \ + ../../../../../temp/cmr/ta_CDLSPINNINGTOP.o \ + ../../../../../temp/cmr/ta_CDLSTALLEDPATTERN.o \ + ../../../../../temp/cmr/ta_CDLSTICKSANDWICH.o \ + ../../../../../temp/cmr/ta_CDLTAKURI.o \ + ../../../../../temp/cmr/ta_CDLTASUKIGAP.o \ + ../../../../../temp/cmr/ta_CDLTHRUSTING.o \ + ../../../../../temp/cmr/ta_CDLTRISTAR.o \ + ../../../../../temp/cmr/ta_CDLUNIQUE3RIVER.o \ + ../../../../../temp/cmr/ta_CDLUPSIDEGAP2CROWS.o \ + ../../../../../temp/cmr/ta_CDLXSIDEGAP3METHODS.o \ + ../../../../../temp/cmr/ta_CEIL.o \ + ../../../../../temp/cmr/ta_CMO.o \ + ../../../../../temp/cmr/ta_CORREL.o \ + ../../../../../temp/cmr/ta_COS.o \ + ../../../../../temp/cmr/ta_COSH.o \ + ../../../../../temp/cmr/ta_DEMA.o \ + ../../../../../temp/cmr/ta_DIV.o \ + ../../../../../temp/cmr/ta_DX.o \ + ../../../../../temp/cmr/ta_EMA.o \ + ../../../../../temp/cmr/ta_EXP.o \ + ../../../../../temp/cmr/ta_FLOOR.o \ + ../../../../../temp/cmr/ta_HT_DCPERIOD.o \ + ../../../../../temp/cmr/ta_HT_DCPHASE.o \ + ../../../../../temp/cmr/ta_HT_PHASOR.o \ + ../../../../../temp/cmr/ta_HT_SINE.o \ + ../../../../../temp/cmr/ta_HT_TRENDLINE.o \ + ../../../../../temp/cmr/ta_HT_TRENDMODE.o \ + ../../../../../temp/cmr/ta_KAMA.o \ + ../../../../../temp/cmr/ta_LINEARREG.o \ + ../../../../../temp/cmr/ta_LINEARREG_ANGLE.o \ + ../../../../../temp/cmr/ta_LINEARREG_INTERCEPT.o \ + ../../../../../temp/cmr/ta_LINEARREG_SLOPE.o \ + ../../../../../temp/cmr/ta_LN.o \ + ../../../../../temp/cmr/ta_LOG10.o \ + ../../../../../temp/cmr/ta_MA.o \ + ../../../../../temp/cmr/ta_MACD.o \ + ../../../../../temp/cmr/ta_MACDEXT.o \ + ../../../../../temp/cmr/ta_MACDFIX.o \ + ../../../../../temp/cmr/ta_MAMA.o \ + ../../../../../temp/cmr/ta_MAVP.o \ + ../../../../../temp/cmr/ta_MAX.o \ + ../../../../../temp/cmr/ta_MAXINDEX.o \ + ../../../../../temp/cmr/ta_MEDPRICE.o \ + ../../../../../temp/cmr/ta_MFI.o \ + ../../../../../temp/cmr/ta_MIDPOINT.o \ + ../../../../../temp/cmr/ta_MIDPRICE.o \ + ../../../../../temp/cmr/ta_MIN.o \ + ../../../../../temp/cmr/ta_MININDEX.o \ + ../../../../../temp/cmr/ta_MINMAX.o \ + ../../../../../temp/cmr/ta_MINMAXINDEX.o \ + ../../../../../temp/cmr/ta_MINUS_DI.o \ + ../../../../../temp/cmr/ta_MINUS_DM.o \ + ../../../../../temp/cmr/ta_MOM.o \ + ../../../../../temp/cmr/ta_MULT.o \ + ../../../../../temp/cmr/ta_NATR.o \ + ../../../../../temp/cmr/ta_OBV.o \ + ../../../../../temp/cmr/ta_PLUS_DI.o \ + ../../../../../temp/cmr/ta_PLUS_DM.o \ + ../../../../../temp/cmr/ta_PPO.o \ + ../../../../../temp/cmr/ta_ROC.o \ + ../../../../../temp/cmr/ta_ROCP.o \ + ../../../../../temp/cmr/ta_ROCR.o \ + ../../../../../temp/cmr/ta_ROCR100.o \ + ../../../../../temp/cmr/ta_RSI.o \ + ../../../../../temp/cmr/ta_SAR.o \ + ../../../../../temp/cmr/ta_SAREXT.o \ + ../../../../../temp/cmr/ta_SIN.o \ + ../../../../../temp/cmr/ta_SINH.o \ + ../../../../../temp/cmr/ta_SMA.o \ + ../../../../../temp/cmr/ta_SQRT.o \ + ../../../../../temp/cmr/ta_STDDEV.o \ + ../../../../../temp/cmr/ta_STOCH.o \ + ../../../../../temp/cmr/ta_STOCHF.o \ + ../../../../../temp/cmr/ta_STOCHRSI.o \ + ../../../../../temp/cmr/ta_SUB.o \ + ../../../../../temp/cmr/ta_SUM.o \ + ../../../../../temp/cmr/ta_T3.o \ + ../../../../../temp/cmr/ta_TAN.o \ + ../../../../../temp/cmr/ta_TANH.o \ + ../../../../../temp/cmr/ta_TEMA.o \ + ../../../../../temp/cmr/ta_TRANGE.o \ + ../../../../../temp/cmr/ta_TRIMA.o \ + ../../../../../temp/cmr/ta_TRIX.o \ + ../../../../../temp/cmr/ta_TSF.o \ + ../../../../../temp/cmr/ta_TYPPRICE.o \ + ../../../../../temp/cmr/ta_ULTOSC.o \ + ../../../../../temp/cmr/ta_VAR.o \ + ../../../../../temp/cmr/ta_WCLPRICE.o \ + ../../../../../temp/cmr/ta_WILLR.o \ + ../../../../../temp/cmr/ta_WMA.o +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ../../../../../lib/libta_func_cmr.a +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .C .c + +.cpp.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cxx.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cc.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.C.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.c.o: + $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $< + +####### Build rules + + +all: $(TARGET) + +staticlib: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + -rm -f $(TARGET) + $(AR) $(TARGET) $(OBJECTS) $(OBJMOC) + +moc: $(SRCMOC) + +clean: + -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) + -rm -f *~ core + +####### Sub-libraries + + +###### Combined headers + + +####### Compile + +../../../../../temp/cmr/ta_utility.o: ../../../../../src/ta_func/ta_utility.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_utility.o ../../../../../src/ta_func/ta_utility.c + +../../../../../temp/cmr/ta_ACOS.o: ../../../../../src/ta_func/ta_ACOS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_ACOS.o ../../../../../src/ta_func/ta_ACOS.c + +../../../../../temp/cmr/ta_AD.o: ../../../../../src/ta_func/ta_AD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_AD.o ../../../../../src/ta_func/ta_AD.c + +../../../../../temp/cmr/ta_ADD.o: ../../../../../src/ta_func/ta_ADD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_ADD.o ../../../../../src/ta_func/ta_ADD.c + +../../../../../temp/cmr/ta_ADOSC.o: ../../../../../src/ta_func/ta_ADOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_ADOSC.o ../../../../../src/ta_func/ta_ADOSC.c + +../../../../../temp/cmr/ta_ADX.o: ../../../../../src/ta_func/ta_ADX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_ADX.o ../../../../../src/ta_func/ta_ADX.c + +../../../../../temp/cmr/ta_ADXR.o: ../../../../../src/ta_func/ta_ADXR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_ADXR.o ../../../../../src/ta_func/ta_ADXR.c + +../../../../../temp/cmr/ta_APO.o: ../../../../../src/ta_func/ta_APO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_APO.o ../../../../../src/ta_func/ta_APO.c + +../../../../../temp/cmr/ta_AROON.o: ../../../../../src/ta_func/ta_AROON.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_AROON.o ../../../../../src/ta_func/ta_AROON.c + +../../../../../temp/cmr/ta_AROONOSC.o: ../../../../../src/ta_func/ta_AROONOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_AROONOSC.o ../../../../../src/ta_func/ta_AROONOSC.c + +../../../../../temp/cmr/ta_ASIN.o: ../../../../../src/ta_func/ta_ASIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_ASIN.o ../../../../../src/ta_func/ta_ASIN.c + +../../../../../temp/cmr/ta_ATAN.o: ../../../../../src/ta_func/ta_ATAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_ATAN.o ../../../../../src/ta_func/ta_ATAN.c + +../../../../../temp/cmr/ta_ATR.o: ../../../../../src/ta_func/ta_ATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_ATR.o ../../../../../src/ta_func/ta_ATR.c + +../../../../../temp/cmr/ta_AVGPRICE.o: ../../../../../src/ta_func/ta_AVGPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_AVGPRICE.o ../../../../../src/ta_func/ta_AVGPRICE.c + +../../../../../temp/cmr/ta_BBANDS.o: ../../../../../src/ta_func/ta_BBANDS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_BBANDS.o ../../../../../src/ta_func/ta_BBANDS.c + +../../../../../temp/cmr/ta_BETA.o: ../../../../../src/ta_func/ta_BETA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_BETA.o ../../../../../src/ta_func/ta_BETA.c + +../../../../../temp/cmr/ta_BOP.o: ../../../../../src/ta_func/ta_BOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_BOP.o ../../../../../src/ta_func/ta_BOP.c + +../../../../../temp/cmr/ta_CCI.o: ../../../../../src/ta_func/ta_CCI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CCI.o ../../../../../src/ta_func/ta_CCI.c + +../../../../../temp/cmr/ta_CDL2CROWS.o: ../../../../../src/ta_func/ta_CDL2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDL2CROWS.o ../../../../../src/ta_func/ta_CDL2CROWS.c + +../../../../../temp/cmr/ta_CDL3BLACKCROWS.o: ../../../../../src/ta_func/ta_CDL3BLACKCROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDL3BLACKCROWS.o ../../../../../src/ta_func/ta_CDL3BLACKCROWS.c + +../../../../../temp/cmr/ta_CDL3INSIDE.o: ../../../../../src/ta_func/ta_CDL3INSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDL3INSIDE.o ../../../../../src/ta_func/ta_CDL3INSIDE.c + +../../../../../temp/cmr/ta_CDL3LINESTRIKE.o: ../../../../../src/ta_func/ta_CDL3LINESTRIKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDL3LINESTRIKE.o ../../../../../src/ta_func/ta_CDL3LINESTRIKE.c + +../../../../../temp/cmr/ta_CDL3OUTSIDE.o: ../../../../../src/ta_func/ta_CDL3OUTSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDL3OUTSIDE.o ../../../../../src/ta_func/ta_CDL3OUTSIDE.c + +../../../../../temp/cmr/ta_CDL3STARSINSOUTH.o: ../../../../../src/ta_func/ta_CDL3STARSINSOUTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDL3STARSINSOUTH.o ../../../../../src/ta_func/ta_CDL3STARSINSOUTH.c + +../../../../../temp/cmr/ta_CDL3WHITESOLDIERS.o: ../../../../../src/ta_func/ta_CDL3WHITESOLDIERS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDL3WHITESOLDIERS.o ../../../../../src/ta_func/ta_CDL3WHITESOLDIERS.c + +../../../../../temp/cmr/ta_CDLABANDONEDBABY.o: ../../../../../src/ta_func/ta_CDLABANDONEDBABY.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLABANDONEDBABY.o ../../../../../src/ta_func/ta_CDLABANDONEDBABY.c + +../../../../../temp/cmr/ta_CDLADVANCEBLOCK.o: ../../../../../src/ta_func/ta_CDLADVANCEBLOCK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLADVANCEBLOCK.o ../../../../../src/ta_func/ta_CDLADVANCEBLOCK.c + +../../../../../temp/cmr/ta_CDLBELTHOLD.o: ../../../../../src/ta_func/ta_CDLBELTHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLBELTHOLD.o ../../../../../src/ta_func/ta_CDLBELTHOLD.c + +../../../../../temp/cmr/ta_CDLBREAKAWAY.o: ../../../../../src/ta_func/ta_CDLBREAKAWAY.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLBREAKAWAY.o ../../../../../src/ta_func/ta_CDLBREAKAWAY.c + +../../../../../temp/cmr/ta_CDLCLOSINGMARUBOZU.o: ../../../../../src/ta_func/ta_CDLCLOSINGMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLCLOSINGMARUBOZU.o ../../../../../src/ta_func/ta_CDLCLOSINGMARUBOZU.c + +../../../../../temp/cmr/ta_CDLCONCEALBABYSWALL.o: ../../../../../src/ta_func/ta_CDLCONCEALBABYSWALL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLCONCEALBABYSWALL.o ../../../../../src/ta_func/ta_CDLCONCEALBABYSWALL.c + +../../../../../temp/cmr/ta_CDLCOUNTERATTACK.o: ../../../../../src/ta_func/ta_CDLCOUNTERATTACK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLCOUNTERATTACK.o ../../../../../src/ta_func/ta_CDLCOUNTERATTACK.c + +../../../../../temp/cmr/ta_CDLDARKCLOUDCOVER.o: ../../../../../src/ta_func/ta_CDLDARKCLOUDCOVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLDARKCLOUDCOVER.o ../../../../../src/ta_func/ta_CDLDARKCLOUDCOVER.c + +../../../../../temp/cmr/ta_CDLDOJI.o: ../../../../../src/ta_func/ta_CDLDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLDOJI.o ../../../../../src/ta_func/ta_CDLDOJI.c + +../../../../../temp/cmr/ta_CDLDOJISTAR.o: ../../../../../src/ta_func/ta_CDLDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLDOJISTAR.o ../../../../../src/ta_func/ta_CDLDOJISTAR.c + +../../../../../temp/cmr/ta_CDLDRAGONFLYDOJI.o: ../../../../../src/ta_func/ta_CDLDRAGONFLYDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLDRAGONFLYDOJI.o ../../../../../src/ta_func/ta_CDLDRAGONFLYDOJI.c + +../../../../../temp/cmr/ta_CDLENGULFING.o: ../../../../../src/ta_func/ta_CDLENGULFING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLENGULFING.o ../../../../../src/ta_func/ta_CDLENGULFING.c + +../../../../../temp/cmr/ta_CDLEVENINGDOJISTAR.o: ../../../../../src/ta_func/ta_CDLEVENINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLEVENINGDOJISTAR.o ../../../../../src/ta_func/ta_CDLEVENINGDOJISTAR.c + +../../../../../temp/cmr/ta_CDLEVENINGSTAR.o: ../../../../../src/ta_func/ta_CDLEVENINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLEVENINGSTAR.o ../../../../../src/ta_func/ta_CDLEVENINGSTAR.c + +../../../../../temp/cmr/ta_CDLGAPSIDESIDEWHITE.o: ../../../../../src/ta_func/ta_CDLGAPSIDESIDEWHITE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLGAPSIDESIDEWHITE.o ../../../../../src/ta_func/ta_CDLGAPSIDESIDEWHITE.c + +../../../../../temp/cmr/ta_CDLGRAVESTONEDOJI.o: ../../../../../src/ta_func/ta_CDLGRAVESTONEDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLGRAVESTONEDOJI.o ../../../../../src/ta_func/ta_CDLGRAVESTONEDOJI.c + +../../../../../temp/cmr/ta_CDLHAMMER.o: ../../../../../src/ta_func/ta_CDLHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLHAMMER.o ../../../../../src/ta_func/ta_CDLHAMMER.c + +../../../../../temp/cmr/ta_CDLHANGINGMAN.o: ../../../../../src/ta_func/ta_CDLHANGINGMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLHANGINGMAN.o ../../../../../src/ta_func/ta_CDLHANGINGMAN.c + +../../../../../temp/cmr/ta_CDLHARAMI.o: ../../../../../src/ta_func/ta_CDLHARAMI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLHARAMI.o ../../../../../src/ta_func/ta_CDLHARAMI.c + +../../../../../temp/cmr/ta_CDLHARAMICROSS.o: ../../../../../src/ta_func/ta_CDLHARAMICROSS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLHARAMICROSS.o ../../../../../src/ta_func/ta_CDLHARAMICROSS.c + +../../../../../temp/cmr/ta_CDLHIGHWAVE.o: ../../../../../src/ta_func/ta_CDLHIGHWAVE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLHIGHWAVE.o ../../../../../src/ta_func/ta_CDLHIGHWAVE.c + +../../../../../temp/cmr/ta_CDLHIKKAKE.o: ../../../../../src/ta_func/ta_CDLHIKKAKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLHIKKAKE.o ../../../../../src/ta_func/ta_CDLHIKKAKE.c + +../../../../../temp/cmr/ta_CDLHIKKAKEMOD.o: ../../../../../src/ta_func/ta_CDLHIKKAKEMOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLHIKKAKEMOD.o ../../../../../src/ta_func/ta_CDLHIKKAKEMOD.c + +../../../../../temp/cmr/ta_CDLHOMINGPIGEON.o: ../../../../../src/ta_func/ta_CDLHOMINGPIGEON.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLHOMINGPIGEON.o ../../../../../src/ta_func/ta_CDLHOMINGPIGEON.c + +../../../../../temp/cmr/ta_CDLIDENTICAL3CROWS.o: ../../../../../src/ta_func/ta_CDLIDENTICAL3CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLIDENTICAL3CROWS.o ../../../../../src/ta_func/ta_CDLIDENTICAL3CROWS.c + +../../../../../temp/cmr/ta_CDLINNECK.o: ../../../../../src/ta_func/ta_CDLINNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLINNECK.o ../../../../../src/ta_func/ta_CDLINNECK.c + +../../../../../temp/cmr/ta_CDLINVERTEDHAMMER.o: ../../../../../src/ta_func/ta_CDLINVERTEDHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLINVERTEDHAMMER.o ../../../../../src/ta_func/ta_CDLINVERTEDHAMMER.c + +../../../../../temp/cmr/ta_CDLKICKING.o: ../../../../../src/ta_func/ta_CDLKICKING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLKICKING.o ../../../../../src/ta_func/ta_CDLKICKING.c + +../../../../../temp/cmr/ta_CDLKICKINGBYLENGTH.o: ../../../../../src/ta_func/ta_CDLKICKINGBYLENGTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLKICKINGBYLENGTH.o ../../../../../src/ta_func/ta_CDLKICKINGBYLENGTH.c + +../../../../../temp/cmr/ta_CDLLADDERBOTTOM.o: ../../../../../src/ta_func/ta_CDLLADDERBOTTOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLLADDERBOTTOM.o ../../../../../src/ta_func/ta_CDLLADDERBOTTOM.c + +../../../../../temp/cmr/ta_CDLLONGLEGGEDDOJI.o: ../../../../../src/ta_func/ta_CDLLONGLEGGEDDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLLONGLEGGEDDOJI.o ../../../../../src/ta_func/ta_CDLLONGLEGGEDDOJI.c + +../../../../../temp/cmr/ta_CDLLONGLINE.o: ../../../../../src/ta_func/ta_CDLLONGLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLLONGLINE.o ../../../../../src/ta_func/ta_CDLLONGLINE.c + +../../../../../temp/cmr/ta_CDLMARUBOZU.o: ../../../../../src/ta_func/ta_CDLMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLMARUBOZU.o ../../../../../src/ta_func/ta_CDLMARUBOZU.c + +../../../../../temp/cmr/ta_CDLMATCHINGLOW.o: ../../../../../src/ta_func/ta_CDLMATCHINGLOW.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLMATCHINGLOW.o ../../../../../src/ta_func/ta_CDLMATCHINGLOW.c + +../../../../../temp/cmr/ta_CDLMATHOLD.o: ../../../../../src/ta_func/ta_CDLMATHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLMATHOLD.o ../../../../../src/ta_func/ta_CDLMATHOLD.c + +../../../../../temp/cmr/ta_CDLMORNINGDOJISTAR.o: ../../../../../src/ta_func/ta_CDLMORNINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLMORNINGDOJISTAR.o ../../../../../src/ta_func/ta_CDLMORNINGDOJISTAR.c + +../../../../../temp/cmr/ta_CDLMORNINGSTAR.o: ../../../../../src/ta_func/ta_CDLMORNINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLMORNINGSTAR.o ../../../../../src/ta_func/ta_CDLMORNINGSTAR.c + +../../../../../temp/cmr/ta_CDLONNECK.o: ../../../../../src/ta_func/ta_CDLONNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLONNECK.o ../../../../../src/ta_func/ta_CDLONNECK.c + +../../../../../temp/cmr/ta_CDLPIERCING.o: ../../../../../src/ta_func/ta_CDLPIERCING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLPIERCING.o ../../../../../src/ta_func/ta_CDLPIERCING.c + +../../../../../temp/cmr/ta_CDLRICKSHAWMAN.o: ../../../../../src/ta_func/ta_CDLRICKSHAWMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLRICKSHAWMAN.o ../../../../../src/ta_func/ta_CDLRICKSHAWMAN.c + +../../../../../temp/cmr/ta_CDLRISEFALL3METHODS.o: ../../../../../src/ta_func/ta_CDLRISEFALL3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLRISEFALL3METHODS.o ../../../../../src/ta_func/ta_CDLRISEFALL3METHODS.c + +../../../../../temp/cmr/ta_CDLSEPARATINGLINES.o: ../../../../../src/ta_func/ta_CDLSEPARATINGLINES.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLSEPARATINGLINES.o ../../../../../src/ta_func/ta_CDLSEPARATINGLINES.c + +../../../../../temp/cmr/ta_CDLSHOOTINGSTAR.o: ../../../../../src/ta_func/ta_CDLSHOOTINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLSHOOTINGSTAR.o ../../../../../src/ta_func/ta_CDLSHOOTINGSTAR.c + +../../../../../temp/cmr/ta_CDLSHORTLINE.o: ../../../../../src/ta_func/ta_CDLSHORTLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLSHORTLINE.o ../../../../../src/ta_func/ta_CDLSHORTLINE.c + +../../../../../temp/cmr/ta_CDLSPINNINGTOP.o: ../../../../../src/ta_func/ta_CDLSPINNINGTOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLSPINNINGTOP.o ../../../../../src/ta_func/ta_CDLSPINNINGTOP.c + +../../../../../temp/cmr/ta_CDLSTALLEDPATTERN.o: ../../../../../src/ta_func/ta_CDLSTALLEDPATTERN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLSTALLEDPATTERN.o ../../../../../src/ta_func/ta_CDLSTALLEDPATTERN.c + +../../../../../temp/cmr/ta_CDLSTICKSANDWICH.o: ../../../../../src/ta_func/ta_CDLSTICKSANDWICH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLSTICKSANDWICH.o ../../../../../src/ta_func/ta_CDLSTICKSANDWICH.c + +../../../../../temp/cmr/ta_CDLTAKURI.o: ../../../../../src/ta_func/ta_CDLTAKURI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLTAKURI.o ../../../../../src/ta_func/ta_CDLTAKURI.c + +../../../../../temp/cmr/ta_CDLTASUKIGAP.o: ../../../../../src/ta_func/ta_CDLTASUKIGAP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLTASUKIGAP.o ../../../../../src/ta_func/ta_CDLTASUKIGAP.c + +../../../../../temp/cmr/ta_CDLTHRUSTING.o: ../../../../../src/ta_func/ta_CDLTHRUSTING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLTHRUSTING.o ../../../../../src/ta_func/ta_CDLTHRUSTING.c + +../../../../../temp/cmr/ta_CDLTRISTAR.o: ../../../../../src/ta_func/ta_CDLTRISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLTRISTAR.o ../../../../../src/ta_func/ta_CDLTRISTAR.c + +../../../../../temp/cmr/ta_CDLUNIQUE3RIVER.o: ../../../../../src/ta_func/ta_CDLUNIQUE3RIVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLUNIQUE3RIVER.o ../../../../../src/ta_func/ta_CDLUNIQUE3RIVER.c + +../../../../../temp/cmr/ta_CDLUPSIDEGAP2CROWS.o: ../../../../../src/ta_func/ta_CDLUPSIDEGAP2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLUPSIDEGAP2CROWS.o ../../../../../src/ta_func/ta_CDLUPSIDEGAP2CROWS.c + +../../../../../temp/cmr/ta_CDLXSIDEGAP3METHODS.o: ../../../../../src/ta_func/ta_CDLXSIDEGAP3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLXSIDEGAP3METHODS.o ../../../../../src/ta_func/ta_CDLXSIDEGAP3METHODS.c + +../../../../../temp/cmr/ta_CEIL.o: ../../../../../src/ta_func/ta_CEIL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CEIL.o ../../../../../src/ta_func/ta_CEIL.c + +../../../../../temp/cmr/ta_CMO.o: ../../../../../src/ta_func/ta_CMO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CMO.o ../../../../../src/ta_func/ta_CMO.c + +../../../../../temp/cmr/ta_CORREL.o: ../../../../../src/ta_func/ta_CORREL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CORREL.o ../../../../../src/ta_func/ta_CORREL.c + +../../../../../temp/cmr/ta_COS.o: ../../../../../src/ta_func/ta_COS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_COS.o ../../../../../src/ta_func/ta_COS.c + +../../../../../temp/cmr/ta_COSH.o: ../../../../../src/ta_func/ta_COSH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_COSH.o ../../../../../src/ta_func/ta_COSH.c + +../../../../../temp/cmr/ta_DEMA.o: ../../../../../src/ta_func/ta_DEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_DEMA.o ../../../../../src/ta_func/ta_DEMA.c + +../../../../../temp/cmr/ta_DIV.o: ../../../../../src/ta_func/ta_DIV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_DIV.o ../../../../../src/ta_func/ta_DIV.c + +../../../../../temp/cmr/ta_DX.o: ../../../../../src/ta_func/ta_DX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_DX.o ../../../../../src/ta_func/ta_DX.c + +../../../../../temp/cmr/ta_EMA.o: ../../../../../src/ta_func/ta_EMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_EMA.o ../../../../../src/ta_func/ta_EMA.c + +../../../../../temp/cmr/ta_EXP.o: ../../../../../src/ta_func/ta_EXP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_EXP.o ../../../../../src/ta_func/ta_EXP.c + +../../../../../temp/cmr/ta_FLOOR.o: ../../../../../src/ta_func/ta_FLOOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_FLOOR.o ../../../../../src/ta_func/ta_FLOOR.c + +../../../../../temp/cmr/ta_HT_DCPERIOD.o: ../../../../../src/ta_func/ta_HT_DCPERIOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_HT_DCPERIOD.o ../../../../../src/ta_func/ta_HT_DCPERIOD.c + +../../../../../temp/cmr/ta_HT_DCPHASE.o: ../../../../../src/ta_func/ta_HT_DCPHASE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_HT_DCPHASE.o ../../../../../src/ta_func/ta_HT_DCPHASE.c + +../../../../../temp/cmr/ta_HT_PHASOR.o: ../../../../../src/ta_func/ta_HT_PHASOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_HT_PHASOR.o ../../../../../src/ta_func/ta_HT_PHASOR.c + +../../../../../temp/cmr/ta_HT_SINE.o: ../../../../../src/ta_func/ta_HT_SINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_HT_SINE.o ../../../../../src/ta_func/ta_HT_SINE.c + +../../../../../temp/cmr/ta_HT_TRENDLINE.o: ../../../../../src/ta_func/ta_HT_TRENDLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_HT_TRENDLINE.o ../../../../../src/ta_func/ta_HT_TRENDLINE.c + +../../../../../temp/cmr/ta_HT_TRENDMODE.o: ../../../../../src/ta_func/ta_HT_TRENDMODE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_HT_TRENDMODE.o ../../../../../src/ta_func/ta_HT_TRENDMODE.c + +../../../../../temp/cmr/ta_KAMA.o: ../../../../../src/ta_func/ta_KAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_KAMA.o ../../../../../src/ta_func/ta_KAMA.c + +../../../../../temp/cmr/ta_LINEARREG.o: ../../../../../src/ta_func/ta_LINEARREG.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_LINEARREG.o ../../../../../src/ta_func/ta_LINEARREG.c + +../../../../../temp/cmr/ta_LINEARREG_ANGLE.o: ../../../../../src/ta_func/ta_LINEARREG_ANGLE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_LINEARREG_ANGLE.o ../../../../../src/ta_func/ta_LINEARREG_ANGLE.c + +../../../../../temp/cmr/ta_LINEARREG_INTERCEPT.o: ../../../../../src/ta_func/ta_LINEARREG_INTERCEPT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_LINEARREG_INTERCEPT.o ../../../../../src/ta_func/ta_LINEARREG_INTERCEPT.c + +../../../../../temp/cmr/ta_LINEARREG_SLOPE.o: ../../../../../src/ta_func/ta_LINEARREG_SLOPE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_LINEARREG_SLOPE.o ../../../../../src/ta_func/ta_LINEARREG_SLOPE.c + +../../../../../temp/cmr/ta_LN.o: ../../../../../src/ta_func/ta_LN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_LN.o ../../../../../src/ta_func/ta_LN.c + +../../../../../temp/cmr/ta_LOG10.o: ../../../../../src/ta_func/ta_LOG10.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_LOG10.o ../../../../../src/ta_func/ta_LOG10.c + +../../../../../temp/cmr/ta_MA.o: ../../../../../src/ta_func/ta_MA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_MA.o ../../../../../src/ta_func/ta_MA.c + +../../../../../temp/cmr/ta_MACD.o: ../../../../../src/ta_func/ta_MACD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_MACD.o ../../../../../src/ta_func/ta_MACD.c + +../../../../../temp/cmr/ta_MACDEXT.o: ../../../../../src/ta_func/ta_MACDEXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_MACDEXT.o ../../../../../src/ta_func/ta_MACDEXT.c + +../../../../../temp/cmr/ta_MACDFIX.o: ../../../../../src/ta_func/ta_MACDFIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_MACDFIX.o ../../../../../src/ta_func/ta_MACDFIX.c + +../../../../../temp/cmr/ta_MAMA.o: ../../../../../src/ta_func/ta_MAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_MAMA.o ../../../../../src/ta_func/ta_MAMA.c + +../../../../../temp/cmr/ta_MAVP.o: ../../../../../src/ta_func/ta_MAVP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_MAVP.o ../../../../../src/ta_func/ta_MAVP.c + +../../../../../temp/cmr/ta_MAX.o: ../../../../../src/ta_func/ta_MAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_MAX.o ../../../../../src/ta_func/ta_MAX.c + +../../../../../temp/cmr/ta_MAXINDEX.o: ../../../../../src/ta_func/ta_MAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_MAXINDEX.o ../../../../../src/ta_func/ta_MAXINDEX.c + +../../../../../temp/cmr/ta_MEDPRICE.o: ../../../../../src/ta_func/ta_MEDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_MEDPRICE.o ../../../../../src/ta_func/ta_MEDPRICE.c + +../../../../../temp/cmr/ta_MFI.o: ../../../../../src/ta_func/ta_MFI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_MFI.o ../../../../../src/ta_func/ta_MFI.c + +../../../../../temp/cmr/ta_MIDPOINT.o: ../../../../../src/ta_func/ta_MIDPOINT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_MIDPOINT.o ../../../../../src/ta_func/ta_MIDPOINT.c + +../../../../../temp/cmr/ta_MIDPRICE.o: ../../../../../src/ta_func/ta_MIDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_MIDPRICE.o ../../../../../src/ta_func/ta_MIDPRICE.c + +../../../../../temp/cmr/ta_MIN.o: ../../../../../src/ta_func/ta_MIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_MIN.o ../../../../../src/ta_func/ta_MIN.c + +../../../../../temp/cmr/ta_MININDEX.o: ../../../../../src/ta_func/ta_MININDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_MININDEX.o ../../../../../src/ta_func/ta_MININDEX.c + +../../../../../temp/cmr/ta_MINMAX.o: ../../../../../src/ta_func/ta_MINMAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_MINMAX.o ../../../../../src/ta_func/ta_MINMAX.c + +../../../../../temp/cmr/ta_MINMAXINDEX.o: ../../../../../src/ta_func/ta_MINMAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_MINMAXINDEX.o ../../../../../src/ta_func/ta_MINMAXINDEX.c + +../../../../../temp/cmr/ta_MINUS_DI.o: ../../../../../src/ta_func/ta_MINUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_MINUS_DI.o ../../../../../src/ta_func/ta_MINUS_DI.c + +../../../../../temp/cmr/ta_MINUS_DM.o: ../../../../../src/ta_func/ta_MINUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_MINUS_DM.o ../../../../../src/ta_func/ta_MINUS_DM.c + +../../../../../temp/cmr/ta_MOM.o: ../../../../../src/ta_func/ta_MOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_MOM.o ../../../../../src/ta_func/ta_MOM.c + +../../../../../temp/cmr/ta_MULT.o: ../../../../../src/ta_func/ta_MULT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_MULT.o ../../../../../src/ta_func/ta_MULT.c + +../../../../../temp/cmr/ta_NATR.o: ../../../../../src/ta_func/ta_NATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_NATR.o ../../../../../src/ta_func/ta_NATR.c + +../../../../../temp/cmr/ta_OBV.o: ../../../../../src/ta_func/ta_OBV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_OBV.o ../../../../../src/ta_func/ta_OBV.c + +../../../../../temp/cmr/ta_PLUS_DI.o: ../../../../../src/ta_func/ta_PLUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_PLUS_DI.o ../../../../../src/ta_func/ta_PLUS_DI.c + +../../../../../temp/cmr/ta_PLUS_DM.o: ../../../../../src/ta_func/ta_PLUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_PLUS_DM.o ../../../../../src/ta_func/ta_PLUS_DM.c + +../../../../../temp/cmr/ta_PPO.o: ../../../../../src/ta_func/ta_PPO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_PPO.o ../../../../../src/ta_func/ta_PPO.c + +../../../../../temp/cmr/ta_ROC.o: ../../../../../src/ta_func/ta_ROC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_ROC.o ../../../../../src/ta_func/ta_ROC.c + +../../../../../temp/cmr/ta_ROCP.o: ../../../../../src/ta_func/ta_ROCP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_ROCP.o ../../../../../src/ta_func/ta_ROCP.c + +../../../../../temp/cmr/ta_ROCR.o: ../../../../../src/ta_func/ta_ROCR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_ROCR.o ../../../../../src/ta_func/ta_ROCR.c + +../../../../../temp/cmr/ta_ROCR100.o: ../../../../../src/ta_func/ta_ROCR100.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_ROCR100.o ../../../../../src/ta_func/ta_ROCR100.c + +../../../../../temp/cmr/ta_RSI.o: ../../../../../src/ta_func/ta_RSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_RSI.o ../../../../../src/ta_func/ta_RSI.c + +../../../../../temp/cmr/ta_SAR.o: ../../../../../src/ta_func/ta_SAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_SAR.o ../../../../../src/ta_func/ta_SAR.c + +../../../../../temp/cmr/ta_SAREXT.o: ../../../../../src/ta_func/ta_SAREXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_SAREXT.o ../../../../../src/ta_func/ta_SAREXT.c + +../../../../../temp/cmr/ta_SIN.o: ../../../../../src/ta_func/ta_SIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_SIN.o ../../../../../src/ta_func/ta_SIN.c + +../../../../../temp/cmr/ta_SINH.o: ../../../../../src/ta_func/ta_SINH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_SINH.o ../../../../../src/ta_func/ta_SINH.c + +../../../../../temp/cmr/ta_SMA.o: ../../../../../src/ta_func/ta_SMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_SMA.o ../../../../../src/ta_func/ta_SMA.c + +../../../../../temp/cmr/ta_SQRT.o: ../../../../../src/ta_func/ta_SQRT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_SQRT.o ../../../../../src/ta_func/ta_SQRT.c + +../../../../../temp/cmr/ta_STDDEV.o: ../../../../../src/ta_func/ta_STDDEV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_STDDEV.o ../../../../../src/ta_func/ta_STDDEV.c + +../../../../../temp/cmr/ta_STOCH.o: ../../../../../src/ta_func/ta_STOCH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_STOCH.o ../../../../../src/ta_func/ta_STOCH.c + +../../../../../temp/cmr/ta_STOCHF.o: ../../../../../src/ta_func/ta_STOCHF.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_STOCHF.o ../../../../../src/ta_func/ta_STOCHF.c + +../../../../../temp/cmr/ta_STOCHRSI.o: ../../../../../src/ta_func/ta_STOCHRSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_STOCHRSI.o ../../../../../src/ta_func/ta_STOCHRSI.c + +../../../../../temp/cmr/ta_SUB.o: ../../../../../src/ta_func/ta_SUB.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_SUB.o ../../../../../src/ta_func/ta_SUB.c + +../../../../../temp/cmr/ta_SUM.o: ../../../../../src/ta_func/ta_SUM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_SUM.o ../../../../../src/ta_func/ta_SUM.c + +../../../../../temp/cmr/ta_T3.o: ../../../../../src/ta_func/ta_T3.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_T3.o ../../../../../src/ta_func/ta_T3.c + +../../../../../temp/cmr/ta_TAN.o: ../../../../../src/ta_func/ta_TAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_TAN.o ../../../../../src/ta_func/ta_TAN.c + +../../../../../temp/cmr/ta_TANH.o: ../../../../../src/ta_func/ta_TANH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_TANH.o ../../../../../src/ta_func/ta_TANH.c + +../../../../../temp/cmr/ta_TEMA.o: ../../../../../src/ta_func/ta_TEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_TEMA.o ../../../../../src/ta_func/ta_TEMA.c + +../../../../../temp/cmr/ta_TRANGE.o: ../../../../../src/ta_func/ta_TRANGE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_TRANGE.o ../../../../../src/ta_func/ta_TRANGE.c + +../../../../../temp/cmr/ta_TRIMA.o: ../../../../../src/ta_func/ta_TRIMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_TRIMA.o ../../../../../src/ta_func/ta_TRIMA.c + +../../../../../temp/cmr/ta_TRIX.o: ../../../../../src/ta_func/ta_TRIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_TRIX.o ../../../../../src/ta_func/ta_TRIX.c + +../../../../../temp/cmr/ta_TSF.o: ../../../../../src/ta_func/ta_TSF.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_TSF.o ../../../../../src/ta_func/ta_TSF.c + +../../../../../temp/cmr/ta_TYPPRICE.o: ../../../../../src/ta_func/ta_TYPPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_TYPPRICE.o ../../../../../src/ta_func/ta_TYPPRICE.c + +../../../../../temp/cmr/ta_ULTOSC.o: ../../../../../src/ta_func/ta_ULTOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_ULTOSC.o ../../../../../src/ta_func/ta_ULTOSC.c + +../../../../../temp/cmr/ta_VAR.o: ../../../../../src/ta_func/ta_VAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_VAR.o ../../../../../src/ta_func/ta_VAR.c + +../../../../../temp/cmr/ta_WCLPRICE.o: ../../../../../src/ta_func/ta_WCLPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_WCLPRICE.o ../../../../../src/ta_func/ta_WCLPRICE.c + +../../../../../temp/cmr/ta_WILLR.o: ../../../../../src/ta_func/ta_WILLR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_WILLR.o ../../../../../src/ta_func/ta_WILLR.c + +../../../../../temp/cmr/ta_WMA.o: ../../../../../src/ta_func/ta_WMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_WMA.o ../../../../../src/ta_func/ta_WMA.c + diff --git a/make/cmr/freebsd/g++/ta_libc/Makefile b/make/cmr/freebsd/g++/ta_libc/Makefile new file mode 100644 index 000000000..4fbc28e0e --- /dev/null +++ b/make/cmr/freebsd/g++/ta_libc/Makefile @@ -0,0 +1,1053 @@ +############################################################################# +# Makefile for building ../../../../../lib/libta_libc_cmr.a +# Generated by tmake; +# Project: ta_libc/ta_libc +# Template: lib +############################################################################# + +####### Compiler, tools and options + +CC = gcc +CXX = g++ +CFLAGS = -pipe -Wall -W -O2 -fno-strict-aliasing -D_REENTRANT -DQT_THREAD_SUPPORT -DNO_DEBUG +CXXFLAGS= -pipe -Wall -W -O2 -fno-strict-aliasing -D_REENTRANT -DQT_THREAD_SUPPORT -DNO_DEBUG +INCPATH = -I../../../../../src/ta_common -I../../../../../include -I../../../../../src/ta_abstract -I../../../../../src/ta_abstract/tables -I../../../../../src/ta_abstract/frames -I/usr/local/include -I$(QTDIR)/include +AR = ar cqs +RANLIB = +MOC = $(QTDIR)/bin/moc +UIC = $(QTDIR)/bin/uic + +TAR = tar -cf +GZIP = gzip -9f + +####### Support for 64-bit systems +ifeq ($(shell uname -m), x86_64) + CFLAGS += -march=x86-64 -m64 -D__64BIT__ + CXXFLAGS += -march=x86-64 -m64 -D__64BIT__ +endif + +####### Apply additional overruling user flags, if any +CFLAGS += $(CUSERFLAGS) +CXXFLAGS += $(CUSERFLAGS) + +####### Files + +HEADERS = +SOURCES = ../../../../../src/ta_common/ta_global.c \ + ../../../../../src/ta_common/ta_retcode.c \ + ../../../../../src/ta_common/ta_version.c \ + ../../../../../src/ta_abstract/ta_abstract.c \ + ../../../../../src/ta_abstract/ta_def_ui.c \ + ../../../../../src/ta_abstract/ta_func_api.c \ + ../../../../../src/ta_abstract/ta_group_idx.c \ + ../../../../../src/ta_abstract/frames/ta_frame.c \ + ../../../../../src/ta_abstract/tables/table_a.c \ + ../../../../../src/ta_abstract/tables/table_b.c \ + ../../../../../src/ta_abstract/tables/table_c.c \ + ../../../../../src/ta_abstract/tables/table_d.c \ + ../../../../../src/ta_abstract/tables/table_e.c \ + ../../../../../src/ta_abstract/tables/table_f.c \ + ../../../../../src/ta_abstract/tables/table_g.c \ + ../../../../../src/ta_abstract/tables/table_h.c \ + ../../../../../src/ta_abstract/tables/table_i.c \ + ../../../../../src/ta_abstract/tables/table_j.c \ + ../../../../../src/ta_abstract/tables/table_k.c \ + ../../../../../src/ta_abstract/tables/table_l.c \ + ../../../../../src/ta_abstract/tables/table_m.c \ + ../../../../../src/ta_abstract/tables/table_n.c \ + ../../../../../src/ta_abstract/tables/table_o.c \ + ../../../../../src/ta_abstract/tables/table_p.c \ + ../../../../../src/ta_abstract/tables/table_q.c \ + ../../../../../src/ta_abstract/tables/table_r.c \ + ../../../../../src/ta_abstract/tables/table_s.c \ + ../../../../../src/ta_abstract/tables/table_t.c \ + ../../../../../src/ta_abstract/tables/table_u.c \ + ../../../../../src/ta_abstract/tables/table_v.c \ + ../../../../../src/ta_abstract/tables/table_w.c \ + ../../../../../src/ta_abstract/tables/table_x.c \ + ../../../../../src/ta_abstract/tables/table_y.c \ + ../../../../../src/ta_abstract/tables/table_z.c \ + ../../../../../src/ta_func/ta_utility.c \ + ../../../../../src/ta_func/ta_ACOS.c \ + ../../../../../src/ta_func/ta_AD.c \ + ../../../../../src/ta_func/ta_ADD.c \ + ../../../../../src/ta_func/ta_ADOSC.c \ + ../../../../../src/ta_func/ta_ADX.c \ + ../../../../../src/ta_func/ta_ADXR.c \ + ../../../../../src/ta_func/ta_APO.c \ + ../../../../../src/ta_func/ta_AROON.c \ + ../../../../../src/ta_func/ta_AROONOSC.c \ + ../../../../../src/ta_func/ta_ASIN.c \ + ../../../../../src/ta_func/ta_ATAN.c \ + ../../../../../src/ta_func/ta_ATR.c \ + ../../../../../src/ta_func/ta_AVGPRICE.c \ + ../../../../../src/ta_func/ta_BBANDS.c \ + ../../../../../src/ta_func/ta_BETA.c \ + ../../../../../src/ta_func/ta_BOP.c \ + ../../../../../src/ta_func/ta_CCI.c \ + ../../../../../src/ta_func/ta_CDL2CROWS.c \ + ../../../../../src/ta_func/ta_CDL3BLACKCROWS.c \ + ../../../../../src/ta_func/ta_CDL3INSIDE.c \ + ../../../../../src/ta_func/ta_CDL3LINESTRIKE.c \ + ../../../../../src/ta_func/ta_CDL3OUTSIDE.c \ + ../../../../../src/ta_func/ta_CDL3STARSINSOUTH.c \ + ../../../../../src/ta_func/ta_CDL3WHITESOLDIERS.c \ + ../../../../../src/ta_func/ta_CDLABANDONEDBABY.c \ + ../../../../../src/ta_func/ta_CDLADVANCEBLOCK.c \ + ../../../../../src/ta_func/ta_CDLBELTHOLD.c \ + ../../../../../src/ta_func/ta_CDLBREAKAWAY.c \ + ../../../../../src/ta_func/ta_CDLCLOSINGMARUBOZU.c \ + ../../../../../src/ta_func/ta_CDLCONCEALBABYSWALL.c \ + ../../../../../src/ta_func/ta_CDLCOUNTERATTACK.c \ + ../../../../../src/ta_func/ta_CDLDARKCLOUDCOVER.c \ + ../../../../../src/ta_func/ta_CDLDOJI.c \ + ../../../../../src/ta_func/ta_CDLDOJISTAR.c \ + ../../../../../src/ta_func/ta_CDLDRAGONFLYDOJI.c \ + ../../../../../src/ta_func/ta_CDLENGULFING.c \ + ../../../../../src/ta_func/ta_CDLEVENINGDOJISTAR.c \ + ../../../../../src/ta_func/ta_CDLEVENINGSTAR.c \ + ../../../../../src/ta_func/ta_CDLGAPSIDESIDEWHITE.c \ + ../../../../../src/ta_func/ta_CDLGRAVESTONEDOJI.c \ + ../../../../../src/ta_func/ta_CDLHAMMER.c \ + ../../../../../src/ta_func/ta_CDLHANGINGMAN.c \ + ../../../../../src/ta_func/ta_CDLHARAMI.c \ + ../../../../../src/ta_func/ta_CDLHARAMICROSS.c \ + ../../../../../src/ta_func/ta_CDLHIGHWAVE.c \ + ../../../../../src/ta_func/ta_CDLHIKKAKE.c \ + ../../../../../src/ta_func/ta_CDLHIKKAKEMOD.c \ + ../../../../../src/ta_func/ta_CDLHOMINGPIGEON.c \ + ../../../../../src/ta_func/ta_CDLIDENTICAL3CROWS.c \ + ../../../../../src/ta_func/ta_CDLINNECK.c \ + ../../../../../src/ta_func/ta_CDLINVERTEDHAMMER.c \ + ../../../../../src/ta_func/ta_CDLKICKING.c \ + ../../../../../src/ta_func/ta_CDLKICKINGBYLENGTH.c \ + ../../../../../src/ta_func/ta_CDLLADDERBOTTOM.c \ + ../../../../../src/ta_func/ta_CDLLONGLEGGEDDOJI.c \ + ../../../../../src/ta_func/ta_CDLLONGLINE.c \ + ../../../../../src/ta_func/ta_CDLMARUBOZU.c \ + ../../../../../src/ta_func/ta_CDLMATCHINGLOW.c \ + ../../../../../src/ta_func/ta_CDLMATHOLD.c \ + ../../../../../src/ta_func/ta_CDLMORNINGDOJISTAR.c \ + ../../../../../src/ta_func/ta_CDLMORNINGSTAR.c \ + ../../../../../src/ta_func/ta_CDLONNECK.c \ + ../../../../../src/ta_func/ta_CDLPIERCING.c \ + ../../../../../src/ta_func/ta_CDLRICKSHAWMAN.c \ + ../../../../../src/ta_func/ta_CDLRISEFALL3METHODS.c \ + ../../../../../src/ta_func/ta_CDLSEPARATINGLINES.c \ + ../../../../../src/ta_func/ta_CDLSHOOTINGSTAR.c \ + ../../../../../src/ta_func/ta_CDLSHORTLINE.c \ + ../../../../../src/ta_func/ta_CDLSPINNINGTOP.c \ + ../../../../../src/ta_func/ta_CDLSTALLEDPATTERN.c \ + ../../../../../src/ta_func/ta_CDLSTICKSANDWICH.c \ + ../../../../../src/ta_func/ta_CDLTAKURI.c \ + ../../../../../src/ta_func/ta_CDLTASUKIGAP.c \ + ../../../../../src/ta_func/ta_CDLTHRUSTING.c \ + ../../../../../src/ta_func/ta_CDLTRISTAR.c \ + ../../../../../src/ta_func/ta_CDLUNIQUE3RIVER.c \ + ../../../../../src/ta_func/ta_CDLUPSIDEGAP2CROWS.c \ + ../../../../../src/ta_func/ta_CDLXSIDEGAP3METHODS.c \ + ../../../../../src/ta_func/ta_CEIL.c \ + ../../../../../src/ta_func/ta_CMO.c \ + ../../../../../src/ta_func/ta_CORREL.c \ + ../../../../../src/ta_func/ta_COS.c \ + ../../../../../src/ta_func/ta_COSH.c \ + ../../../../../src/ta_func/ta_DEMA.c \ + ../../../../../src/ta_func/ta_DIV.c \ + ../../../../../src/ta_func/ta_DX.c \ + ../../../../../src/ta_func/ta_EMA.c \ + ../../../../../src/ta_func/ta_EXP.c \ + ../../../../../src/ta_func/ta_FLOOR.c \ + ../../../../../src/ta_func/ta_HT_DCPERIOD.c \ + ../../../../../src/ta_func/ta_HT_DCPHASE.c \ + ../../../../../src/ta_func/ta_HT_PHASOR.c \ + ../../../../../src/ta_func/ta_HT_SINE.c \ + ../../../../../src/ta_func/ta_HT_TRENDLINE.c \ + ../../../../../src/ta_func/ta_HT_TRENDMODE.c \ + ../../../../../src/ta_func/ta_KAMA.c \ + ../../../../../src/ta_func/ta_LINEARREG.c \ + ../../../../../src/ta_func/ta_LINEARREG_ANGLE.c \ + ../../../../../src/ta_func/ta_LINEARREG_INTERCEPT.c \ + ../../../../../src/ta_func/ta_LINEARREG_SLOPE.c \ + ../../../../../src/ta_func/ta_LN.c \ + ../../../../../src/ta_func/ta_LOG10.c \ + ../../../../../src/ta_func/ta_MA.c \ + ../../../../../src/ta_func/ta_MACD.c \ + ../../../../../src/ta_func/ta_MACDEXT.c \ + ../../../../../src/ta_func/ta_MACDFIX.c \ + ../../../../../src/ta_func/ta_MAMA.c \ + ../../../../../src/ta_func/ta_MAVP.c \ + ../../../../../src/ta_func/ta_MAX.c \ + ../../../../../src/ta_func/ta_MAXINDEX.c \ + ../../../../../src/ta_func/ta_MEDPRICE.c \ + ../../../../../src/ta_func/ta_MFI.c \ + ../../../../../src/ta_func/ta_MIDPOINT.c \ + ../../../../../src/ta_func/ta_MIDPRICE.c \ + ../../../../../src/ta_func/ta_MIN.c \ + ../../../../../src/ta_func/ta_MININDEX.c \ + ../../../../../src/ta_func/ta_MINMAX.c \ + ../../../../../src/ta_func/ta_MINMAXINDEX.c \ + ../../../../../src/ta_func/ta_MINUS_DI.c \ + ../../../../../src/ta_func/ta_MINUS_DM.c \ + ../../../../../src/ta_func/ta_MOM.c \ + ../../../../../src/ta_func/ta_MULT.c \ + ../../../../../src/ta_func/ta_NATR.c \ + ../../../../../src/ta_func/ta_OBV.c \ + ../../../../../src/ta_func/ta_PLUS_DI.c \ + ../../../../../src/ta_func/ta_PLUS_DM.c \ + ../../../../../src/ta_func/ta_PPO.c \ + ../../../../../src/ta_func/ta_ROC.c \ + ../../../../../src/ta_func/ta_ROCP.c \ + ../../../../../src/ta_func/ta_ROCR.c \ + ../../../../../src/ta_func/ta_ROCR100.c \ + ../../../../../src/ta_func/ta_RSI.c \ + ../../../../../src/ta_func/ta_SAR.c \ + ../../../../../src/ta_func/ta_SAREXT.c \ + ../../../../../src/ta_func/ta_SIN.c \ + ../../../../../src/ta_func/ta_SINH.c \ + ../../../../../src/ta_func/ta_SMA.c \ + ../../../../../src/ta_func/ta_SQRT.c \ + ../../../../../src/ta_func/ta_STDDEV.c \ + ../../../../../src/ta_func/ta_STOCH.c \ + ../../../../../src/ta_func/ta_STOCHF.c \ + ../../../../../src/ta_func/ta_STOCHRSI.c \ + ../../../../../src/ta_func/ta_SUB.c \ + ../../../../../src/ta_func/ta_SUM.c \ + ../../../../../src/ta_func/ta_T3.c \ + ../../../../../src/ta_func/ta_TAN.c \ + ../../../../../src/ta_func/ta_TANH.c \ + ../../../../../src/ta_func/ta_TEMA.c \ + ../../../../../src/ta_func/ta_TRANGE.c \ + ../../../../../src/ta_func/ta_TRIMA.c \ + ../../../../../src/ta_func/ta_TRIX.c \ + ../../../../../src/ta_func/ta_TSF.c \ + ../../../../../src/ta_func/ta_TYPPRICE.c \ + ../../../../../src/ta_func/ta_ULTOSC.c \ + ../../../../../src/ta_func/ta_VAR.c \ + ../../../../../src/ta_func/ta_WCLPRICE.c \ + ../../../../../src/ta_func/ta_WILLR.c \ + ../../../../../src/ta_func/ta_WMA.c +OBJECTS = ../../../../../temp/cmr/ta_global.o \ + ../../../../../temp/cmr/ta_retcode.o \ + ../../../../../temp/cmr/ta_version.o \ + ../../../../../temp/cmr/ta_abstract.o \ + ../../../../../temp/cmr/ta_def_ui.o \ + ../../../../../temp/cmr/ta_func_api.o \ + ../../../../../temp/cmr/ta_group_idx.o \ + ../../../../../temp/cmr/ta_frame.o \ + ../../../../../temp/cmr/table_a.o \ + ../../../../../temp/cmr/table_b.o \ + ../../../../../temp/cmr/table_c.o \ + ../../../../../temp/cmr/table_d.o \ + ../../../../../temp/cmr/table_e.o \ + ../../../../../temp/cmr/table_f.o \ + ../../../../../temp/cmr/table_g.o \ + ../../../../../temp/cmr/table_h.o \ + ../../../../../temp/cmr/table_i.o \ + ../../../../../temp/cmr/table_j.o \ + ../../../../../temp/cmr/table_k.o \ + ../../../../../temp/cmr/table_l.o \ + ../../../../../temp/cmr/table_m.o \ + ../../../../../temp/cmr/table_n.o \ + ../../../../../temp/cmr/table_o.o \ + ../../../../../temp/cmr/table_p.o \ + ../../../../../temp/cmr/table_q.o \ + ../../../../../temp/cmr/table_r.o \ + ../../../../../temp/cmr/table_s.o \ + ../../../../../temp/cmr/table_t.o \ + ../../../../../temp/cmr/table_u.o \ + ../../../../../temp/cmr/table_v.o \ + ../../../../../temp/cmr/table_w.o \ + ../../../../../temp/cmr/table_x.o \ + ../../../../../temp/cmr/table_y.o \ + ../../../../../temp/cmr/table_z.o \ + ../../../../../temp/cmr/ta_utility.o \ + ../../../../../temp/cmr/ta_ACOS.o \ + ../../../../../temp/cmr/ta_AD.o \ + ../../../../../temp/cmr/ta_ADD.o \ + ../../../../../temp/cmr/ta_ADOSC.o \ + ../../../../../temp/cmr/ta_ADX.o \ + ../../../../../temp/cmr/ta_ADXR.o \ + ../../../../../temp/cmr/ta_APO.o \ + ../../../../../temp/cmr/ta_AROON.o \ + ../../../../../temp/cmr/ta_AROONOSC.o \ + ../../../../../temp/cmr/ta_ASIN.o \ + ../../../../../temp/cmr/ta_ATAN.o \ + ../../../../../temp/cmr/ta_ATR.o \ + ../../../../../temp/cmr/ta_AVGPRICE.o \ + ../../../../../temp/cmr/ta_BBANDS.o \ + ../../../../../temp/cmr/ta_BETA.o \ + ../../../../../temp/cmr/ta_BOP.o \ + ../../../../../temp/cmr/ta_CCI.o \ + ../../../../../temp/cmr/ta_CDL2CROWS.o \ + ../../../../../temp/cmr/ta_CDL3BLACKCROWS.o \ + ../../../../../temp/cmr/ta_CDL3INSIDE.o \ + ../../../../../temp/cmr/ta_CDL3LINESTRIKE.o \ + ../../../../../temp/cmr/ta_CDL3OUTSIDE.o \ + ../../../../../temp/cmr/ta_CDL3STARSINSOUTH.o \ + ../../../../../temp/cmr/ta_CDL3WHITESOLDIERS.o \ + ../../../../../temp/cmr/ta_CDLABANDONEDBABY.o \ + ../../../../../temp/cmr/ta_CDLADVANCEBLOCK.o \ + ../../../../../temp/cmr/ta_CDLBELTHOLD.o \ + ../../../../../temp/cmr/ta_CDLBREAKAWAY.o \ + ../../../../../temp/cmr/ta_CDLCLOSINGMARUBOZU.o \ + ../../../../../temp/cmr/ta_CDLCONCEALBABYSWALL.o \ + ../../../../../temp/cmr/ta_CDLCOUNTERATTACK.o \ + ../../../../../temp/cmr/ta_CDLDARKCLOUDCOVER.o \ + ../../../../../temp/cmr/ta_CDLDOJI.o \ + ../../../../../temp/cmr/ta_CDLDOJISTAR.o \ + ../../../../../temp/cmr/ta_CDLDRAGONFLYDOJI.o \ + ../../../../../temp/cmr/ta_CDLENGULFING.o \ + ../../../../../temp/cmr/ta_CDLEVENINGDOJISTAR.o \ + ../../../../../temp/cmr/ta_CDLEVENINGSTAR.o \ + ../../../../../temp/cmr/ta_CDLGAPSIDESIDEWHITE.o \ + ../../../../../temp/cmr/ta_CDLGRAVESTONEDOJI.o \ + ../../../../../temp/cmr/ta_CDLHAMMER.o \ + ../../../../../temp/cmr/ta_CDLHANGINGMAN.o \ + ../../../../../temp/cmr/ta_CDLHARAMI.o \ + ../../../../../temp/cmr/ta_CDLHARAMICROSS.o \ + ../../../../../temp/cmr/ta_CDLHIGHWAVE.o \ + ../../../../../temp/cmr/ta_CDLHIKKAKE.o \ + ../../../../../temp/cmr/ta_CDLHIKKAKEMOD.o \ + ../../../../../temp/cmr/ta_CDLHOMINGPIGEON.o \ + ../../../../../temp/cmr/ta_CDLIDENTICAL3CROWS.o \ + ../../../../../temp/cmr/ta_CDLINNECK.o \ + ../../../../../temp/cmr/ta_CDLINVERTEDHAMMER.o \ + ../../../../../temp/cmr/ta_CDLKICKING.o \ + ../../../../../temp/cmr/ta_CDLKICKINGBYLENGTH.o \ + ../../../../../temp/cmr/ta_CDLLADDERBOTTOM.o \ + ../../../../../temp/cmr/ta_CDLLONGLEGGEDDOJI.o \ + ../../../../../temp/cmr/ta_CDLLONGLINE.o \ + ../../../../../temp/cmr/ta_CDLMARUBOZU.o \ + ../../../../../temp/cmr/ta_CDLMATCHINGLOW.o \ + ../../../../../temp/cmr/ta_CDLMATHOLD.o \ + ../../../../../temp/cmr/ta_CDLMORNINGDOJISTAR.o \ + ../../../../../temp/cmr/ta_CDLMORNINGSTAR.o \ + ../../../../../temp/cmr/ta_CDLONNECK.o \ + ../../../../../temp/cmr/ta_CDLPIERCING.o \ + ../../../../../temp/cmr/ta_CDLRICKSHAWMAN.o \ + ../../../../../temp/cmr/ta_CDLRISEFALL3METHODS.o \ + ../../../../../temp/cmr/ta_CDLSEPARATINGLINES.o \ + ../../../../../temp/cmr/ta_CDLSHOOTINGSTAR.o \ + ../../../../../temp/cmr/ta_CDLSHORTLINE.o \ + ../../../../../temp/cmr/ta_CDLSPINNINGTOP.o \ + ../../../../../temp/cmr/ta_CDLSTALLEDPATTERN.o \ + ../../../../../temp/cmr/ta_CDLSTICKSANDWICH.o \ + ../../../../../temp/cmr/ta_CDLTAKURI.o \ + ../../../../../temp/cmr/ta_CDLTASUKIGAP.o \ + ../../../../../temp/cmr/ta_CDLTHRUSTING.o \ + ../../../../../temp/cmr/ta_CDLTRISTAR.o \ + ../../../../../temp/cmr/ta_CDLUNIQUE3RIVER.o \ + ../../../../../temp/cmr/ta_CDLUPSIDEGAP2CROWS.o \ + ../../../../../temp/cmr/ta_CDLXSIDEGAP3METHODS.o \ + ../../../../../temp/cmr/ta_CEIL.o \ + ../../../../../temp/cmr/ta_CMO.o \ + ../../../../../temp/cmr/ta_CORREL.o \ + ../../../../../temp/cmr/ta_COS.o \ + ../../../../../temp/cmr/ta_COSH.o \ + ../../../../../temp/cmr/ta_DEMA.o \ + ../../../../../temp/cmr/ta_DIV.o \ + ../../../../../temp/cmr/ta_DX.o \ + ../../../../../temp/cmr/ta_EMA.o \ + ../../../../../temp/cmr/ta_EXP.o \ + ../../../../../temp/cmr/ta_FLOOR.o \ + ../../../../../temp/cmr/ta_HT_DCPERIOD.o \ + ../../../../../temp/cmr/ta_HT_DCPHASE.o \ + ../../../../../temp/cmr/ta_HT_PHASOR.o \ + ../../../../../temp/cmr/ta_HT_SINE.o \ + ../../../../../temp/cmr/ta_HT_TRENDLINE.o \ + ../../../../../temp/cmr/ta_HT_TRENDMODE.o \ + ../../../../../temp/cmr/ta_KAMA.o \ + ../../../../../temp/cmr/ta_LINEARREG.o \ + ../../../../../temp/cmr/ta_LINEARREG_ANGLE.o \ + ../../../../../temp/cmr/ta_LINEARREG_INTERCEPT.o \ + ../../../../../temp/cmr/ta_LINEARREG_SLOPE.o \ + ../../../../../temp/cmr/ta_LN.o \ + ../../../../../temp/cmr/ta_LOG10.o \ + ../../../../../temp/cmr/ta_MA.o \ + ../../../../../temp/cmr/ta_MACD.o \ + ../../../../../temp/cmr/ta_MACDEXT.o \ + ../../../../../temp/cmr/ta_MACDFIX.o \ + ../../../../../temp/cmr/ta_MAMA.o \ + ../../../../../temp/cmr/ta_MAVP.o \ + ../../../../../temp/cmr/ta_MAX.o \ + ../../../../../temp/cmr/ta_MAXINDEX.o \ + ../../../../../temp/cmr/ta_MEDPRICE.o \ + ../../../../../temp/cmr/ta_MFI.o \ + ../../../../../temp/cmr/ta_MIDPOINT.o \ + ../../../../../temp/cmr/ta_MIDPRICE.o \ + ../../../../../temp/cmr/ta_MIN.o \ + ../../../../../temp/cmr/ta_MININDEX.o \ + ../../../../../temp/cmr/ta_MINMAX.o \ + ../../../../../temp/cmr/ta_MINMAXINDEX.o \ + ../../../../../temp/cmr/ta_MINUS_DI.o \ + ../../../../../temp/cmr/ta_MINUS_DM.o \ + ../../../../../temp/cmr/ta_MOM.o \ + ../../../../../temp/cmr/ta_MULT.o \ + ../../../../../temp/cmr/ta_NATR.o \ + ../../../../../temp/cmr/ta_OBV.o \ + ../../../../../temp/cmr/ta_PLUS_DI.o \ + ../../../../../temp/cmr/ta_PLUS_DM.o \ + ../../../../../temp/cmr/ta_PPO.o \ + ../../../../../temp/cmr/ta_ROC.o \ + ../../../../../temp/cmr/ta_ROCP.o \ + ../../../../../temp/cmr/ta_ROCR.o \ + ../../../../../temp/cmr/ta_ROCR100.o \ + ../../../../../temp/cmr/ta_RSI.o \ + ../../../../../temp/cmr/ta_SAR.o \ + ../../../../../temp/cmr/ta_SAREXT.o \ + ../../../../../temp/cmr/ta_SIN.o \ + ../../../../../temp/cmr/ta_SINH.o \ + ../../../../../temp/cmr/ta_SMA.o \ + ../../../../../temp/cmr/ta_SQRT.o \ + ../../../../../temp/cmr/ta_STDDEV.o \ + ../../../../../temp/cmr/ta_STOCH.o \ + ../../../../../temp/cmr/ta_STOCHF.o \ + ../../../../../temp/cmr/ta_STOCHRSI.o \ + ../../../../../temp/cmr/ta_SUB.o \ + ../../../../../temp/cmr/ta_SUM.o \ + ../../../../../temp/cmr/ta_T3.o \ + ../../../../../temp/cmr/ta_TAN.o \ + ../../../../../temp/cmr/ta_TANH.o \ + ../../../../../temp/cmr/ta_TEMA.o \ + ../../../../../temp/cmr/ta_TRANGE.o \ + ../../../../../temp/cmr/ta_TRIMA.o \ + ../../../../../temp/cmr/ta_TRIX.o \ + ../../../../../temp/cmr/ta_TSF.o \ + ../../../../../temp/cmr/ta_TYPPRICE.o \ + ../../../../../temp/cmr/ta_ULTOSC.o \ + ../../../../../temp/cmr/ta_VAR.o \ + ../../../../../temp/cmr/ta_WCLPRICE.o \ + ../../../../../temp/cmr/ta_WILLR.o \ + ../../../../../temp/cmr/ta_WMA.o +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ../../../../../lib/libta_libc_cmr.a +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .C .c + +.cpp.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cxx.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cc.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.C.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.c.o: + $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $< + +####### Build rules + + +all: $(TARGET) + +staticlib: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + -rm -f $(TARGET) + $(AR) $(TARGET) $(OBJECTS) $(OBJMOC) + +moc: $(SRCMOC) + +clean: + -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) + -rm -f *~ core + +####### Sub-libraries + + +###### Combined headers + + +####### Compile + +../../../../../temp/cmr/ta_global.o: ../../../../../src/ta_common/ta_global.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_global.o ../../../../../src/ta_common/ta_global.c + +../../../../../temp/cmr/ta_retcode.o: ../../../../../src/ta_common/ta_retcode.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_retcode.o ../../../../../src/ta_common/ta_retcode.c + +../../../../../temp/cmr/ta_version.o: ../../../../../src/ta_common/ta_version.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_version.o ../../../../../src/ta_common/ta_version.c + +../../../../../temp/cmr/ta_abstract.o: ../../../../../src/ta_abstract/ta_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_abstract.o ../../../../../src/ta_abstract/ta_abstract.c + +../../../../../temp/cmr/ta_def_ui.o: ../../../../../src/ta_abstract/ta_def_ui.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_def_ui.o ../../../../../src/ta_abstract/ta_def_ui.c + +../../../../../temp/cmr/ta_func_api.o: ../../../../../src/ta_abstract/ta_func_api.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_func_api.o ../../../../../src/ta_abstract/ta_func_api.c + +../../../../../temp/cmr/ta_group_idx.o: ../../../../../src/ta_abstract/ta_group_idx.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_group_idx.o ../../../../../src/ta_abstract/ta_group_idx.c + +../../../../../temp/cmr/ta_frame.o: ../../../../../src/ta_abstract/frames/ta_frame.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_frame.o ../../../../../src/ta_abstract/frames/ta_frame.c + +../../../../../temp/cmr/table_a.o: ../../../../../src/ta_abstract/tables/table_a.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_a.o ../../../../../src/ta_abstract/tables/table_a.c + +../../../../../temp/cmr/table_b.o: ../../../../../src/ta_abstract/tables/table_b.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_b.o ../../../../../src/ta_abstract/tables/table_b.c + +../../../../../temp/cmr/table_c.o: ../../../../../src/ta_abstract/tables/table_c.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_c.o ../../../../../src/ta_abstract/tables/table_c.c + +../../../../../temp/cmr/table_d.o: ../../../../../src/ta_abstract/tables/table_d.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_d.o ../../../../../src/ta_abstract/tables/table_d.c + +../../../../../temp/cmr/table_e.o: ../../../../../src/ta_abstract/tables/table_e.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_e.o ../../../../../src/ta_abstract/tables/table_e.c + +../../../../../temp/cmr/table_f.o: ../../../../../src/ta_abstract/tables/table_f.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_f.o ../../../../../src/ta_abstract/tables/table_f.c + +../../../../../temp/cmr/table_g.o: ../../../../../src/ta_abstract/tables/table_g.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_g.o ../../../../../src/ta_abstract/tables/table_g.c + +../../../../../temp/cmr/table_h.o: ../../../../../src/ta_abstract/tables/table_h.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_h.o ../../../../../src/ta_abstract/tables/table_h.c + +../../../../../temp/cmr/table_i.o: ../../../../../src/ta_abstract/tables/table_i.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_i.o ../../../../../src/ta_abstract/tables/table_i.c + +../../../../../temp/cmr/table_j.o: ../../../../../src/ta_abstract/tables/table_j.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_j.o ../../../../../src/ta_abstract/tables/table_j.c + +../../../../../temp/cmr/table_k.o: ../../../../../src/ta_abstract/tables/table_k.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_k.o ../../../../../src/ta_abstract/tables/table_k.c + +../../../../../temp/cmr/table_l.o: ../../../../../src/ta_abstract/tables/table_l.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_l.o ../../../../../src/ta_abstract/tables/table_l.c + +../../../../../temp/cmr/table_m.o: ../../../../../src/ta_abstract/tables/table_m.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_m.o ../../../../../src/ta_abstract/tables/table_m.c + +../../../../../temp/cmr/table_n.o: ../../../../../src/ta_abstract/tables/table_n.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_n.o ../../../../../src/ta_abstract/tables/table_n.c + +../../../../../temp/cmr/table_o.o: ../../../../../src/ta_abstract/tables/table_o.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_o.o ../../../../../src/ta_abstract/tables/table_o.c + +../../../../../temp/cmr/table_p.o: ../../../../../src/ta_abstract/tables/table_p.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_p.o ../../../../../src/ta_abstract/tables/table_p.c + +../../../../../temp/cmr/table_q.o: ../../../../../src/ta_abstract/tables/table_q.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_q.o ../../../../../src/ta_abstract/tables/table_q.c + +../../../../../temp/cmr/table_r.o: ../../../../../src/ta_abstract/tables/table_r.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_r.o ../../../../../src/ta_abstract/tables/table_r.c + +../../../../../temp/cmr/table_s.o: ../../../../../src/ta_abstract/tables/table_s.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_s.o ../../../../../src/ta_abstract/tables/table_s.c + +../../../../../temp/cmr/table_t.o: ../../../../../src/ta_abstract/tables/table_t.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_t.o ../../../../../src/ta_abstract/tables/table_t.c + +../../../../../temp/cmr/table_u.o: ../../../../../src/ta_abstract/tables/table_u.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_u.o ../../../../../src/ta_abstract/tables/table_u.c + +../../../../../temp/cmr/table_v.o: ../../../../../src/ta_abstract/tables/table_v.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_v.o ../../../../../src/ta_abstract/tables/table_v.c + +../../../../../temp/cmr/table_w.o: ../../../../../src/ta_abstract/tables/table_w.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_w.o ../../../../../src/ta_abstract/tables/table_w.c + +../../../../../temp/cmr/table_x.o: ../../../../../src/ta_abstract/tables/table_x.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_x.o ../../../../../src/ta_abstract/tables/table_x.c + +../../../../../temp/cmr/table_y.o: ../../../../../src/ta_abstract/tables/table_y.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_y.o ../../../../../src/ta_abstract/tables/table_y.c + +../../../../../temp/cmr/table_z.o: ../../../../../src/ta_abstract/tables/table_z.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_z.o ../../../../../src/ta_abstract/tables/table_z.c + +../../../../../temp/cmr/ta_utility.o: ../../../../../src/ta_func/ta_utility.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_utility.o ../../../../../src/ta_func/ta_utility.c + +../../../../../temp/cmr/ta_ACOS.o: ../../../../../src/ta_func/ta_ACOS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_ACOS.o ../../../../../src/ta_func/ta_ACOS.c + +../../../../../temp/cmr/ta_AD.o: ../../../../../src/ta_func/ta_AD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_AD.o ../../../../../src/ta_func/ta_AD.c + +../../../../../temp/cmr/ta_ADD.o: ../../../../../src/ta_func/ta_ADD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_ADD.o ../../../../../src/ta_func/ta_ADD.c + +../../../../../temp/cmr/ta_ADOSC.o: ../../../../../src/ta_func/ta_ADOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_ADOSC.o ../../../../../src/ta_func/ta_ADOSC.c + +../../../../../temp/cmr/ta_ADX.o: ../../../../../src/ta_func/ta_ADX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_ADX.o ../../../../../src/ta_func/ta_ADX.c + +../../../../../temp/cmr/ta_ADXR.o: ../../../../../src/ta_func/ta_ADXR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_ADXR.o ../../../../../src/ta_func/ta_ADXR.c + +../../../../../temp/cmr/ta_APO.o: ../../../../../src/ta_func/ta_APO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_APO.o ../../../../../src/ta_func/ta_APO.c + +../../../../../temp/cmr/ta_AROON.o: ../../../../../src/ta_func/ta_AROON.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_AROON.o ../../../../../src/ta_func/ta_AROON.c + +../../../../../temp/cmr/ta_AROONOSC.o: ../../../../../src/ta_func/ta_AROONOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_AROONOSC.o ../../../../../src/ta_func/ta_AROONOSC.c + +../../../../../temp/cmr/ta_ASIN.o: ../../../../../src/ta_func/ta_ASIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_ASIN.o ../../../../../src/ta_func/ta_ASIN.c + +../../../../../temp/cmr/ta_ATAN.o: ../../../../../src/ta_func/ta_ATAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_ATAN.o ../../../../../src/ta_func/ta_ATAN.c + +../../../../../temp/cmr/ta_ATR.o: ../../../../../src/ta_func/ta_ATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_ATR.o ../../../../../src/ta_func/ta_ATR.c + +../../../../../temp/cmr/ta_AVGPRICE.o: ../../../../../src/ta_func/ta_AVGPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_AVGPRICE.o ../../../../../src/ta_func/ta_AVGPRICE.c + +../../../../../temp/cmr/ta_BBANDS.o: ../../../../../src/ta_func/ta_BBANDS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_BBANDS.o ../../../../../src/ta_func/ta_BBANDS.c + +../../../../../temp/cmr/ta_BETA.o: ../../../../../src/ta_func/ta_BETA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_BETA.o ../../../../../src/ta_func/ta_BETA.c + +../../../../../temp/cmr/ta_BOP.o: ../../../../../src/ta_func/ta_BOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_BOP.o ../../../../../src/ta_func/ta_BOP.c + +../../../../../temp/cmr/ta_CCI.o: ../../../../../src/ta_func/ta_CCI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CCI.o ../../../../../src/ta_func/ta_CCI.c + +../../../../../temp/cmr/ta_CDL2CROWS.o: ../../../../../src/ta_func/ta_CDL2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDL2CROWS.o ../../../../../src/ta_func/ta_CDL2CROWS.c + +../../../../../temp/cmr/ta_CDL3BLACKCROWS.o: ../../../../../src/ta_func/ta_CDL3BLACKCROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDL3BLACKCROWS.o ../../../../../src/ta_func/ta_CDL3BLACKCROWS.c + +../../../../../temp/cmr/ta_CDL3INSIDE.o: ../../../../../src/ta_func/ta_CDL3INSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDL3INSIDE.o ../../../../../src/ta_func/ta_CDL3INSIDE.c + +../../../../../temp/cmr/ta_CDL3LINESTRIKE.o: ../../../../../src/ta_func/ta_CDL3LINESTRIKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDL3LINESTRIKE.o ../../../../../src/ta_func/ta_CDL3LINESTRIKE.c + +../../../../../temp/cmr/ta_CDL3OUTSIDE.o: ../../../../../src/ta_func/ta_CDL3OUTSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDL3OUTSIDE.o ../../../../../src/ta_func/ta_CDL3OUTSIDE.c + +../../../../../temp/cmr/ta_CDL3STARSINSOUTH.o: ../../../../../src/ta_func/ta_CDL3STARSINSOUTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDL3STARSINSOUTH.o ../../../../../src/ta_func/ta_CDL3STARSINSOUTH.c + +../../../../../temp/cmr/ta_CDL3WHITESOLDIERS.o: ../../../../../src/ta_func/ta_CDL3WHITESOLDIERS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDL3WHITESOLDIERS.o ../../../../../src/ta_func/ta_CDL3WHITESOLDIERS.c + +../../../../../temp/cmr/ta_CDLABANDONEDBABY.o: ../../../../../src/ta_func/ta_CDLABANDONEDBABY.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLABANDONEDBABY.o ../../../../../src/ta_func/ta_CDLABANDONEDBABY.c + +../../../../../temp/cmr/ta_CDLADVANCEBLOCK.o: ../../../../../src/ta_func/ta_CDLADVANCEBLOCK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLADVANCEBLOCK.o ../../../../../src/ta_func/ta_CDLADVANCEBLOCK.c + +../../../../../temp/cmr/ta_CDLBELTHOLD.o: ../../../../../src/ta_func/ta_CDLBELTHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLBELTHOLD.o ../../../../../src/ta_func/ta_CDLBELTHOLD.c + +../../../../../temp/cmr/ta_CDLBREAKAWAY.o: ../../../../../src/ta_func/ta_CDLBREAKAWAY.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLBREAKAWAY.o ../../../../../src/ta_func/ta_CDLBREAKAWAY.c + +../../../../../temp/cmr/ta_CDLCLOSINGMARUBOZU.o: ../../../../../src/ta_func/ta_CDLCLOSINGMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLCLOSINGMARUBOZU.o ../../../../../src/ta_func/ta_CDLCLOSINGMARUBOZU.c + +../../../../../temp/cmr/ta_CDLCONCEALBABYSWALL.o: ../../../../../src/ta_func/ta_CDLCONCEALBABYSWALL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLCONCEALBABYSWALL.o ../../../../../src/ta_func/ta_CDLCONCEALBABYSWALL.c + +../../../../../temp/cmr/ta_CDLCOUNTERATTACK.o: ../../../../../src/ta_func/ta_CDLCOUNTERATTACK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLCOUNTERATTACK.o ../../../../../src/ta_func/ta_CDLCOUNTERATTACK.c + +../../../../../temp/cmr/ta_CDLDARKCLOUDCOVER.o: ../../../../../src/ta_func/ta_CDLDARKCLOUDCOVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLDARKCLOUDCOVER.o ../../../../../src/ta_func/ta_CDLDARKCLOUDCOVER.c + +../../../../../temp/cmr/ta_CDLDOJI.o: ../../../../../src/ta_func/ta_CDLDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLDOJI.o ../../../../../src/ta_func/ta_CDLDOJI.c + +../../../../../temp/cmr/ta_CDLDOJISTAR.o: ../../../../../src/ta_func/ta_CDLDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLDOJISTAR.o ../../../../../src/ta_func/ta_CDLDOJISTAR.c + +../../../../../temp/cmr/ta_CDLDRAGONFLYDOJI.o: ../../../../../src/ta_func/ta_CDLDRAGONFLYDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLDRAGONFLYDOJI.o ../../../../../src/ta_func/ta_CDLDRAGONFLYDOJI.c + +../../../../../temp/cmr/ta_CDLENGULFING.o: ../../../../../src/ta_func/ta_CDLENGULFING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLENGULFING.o ../../../../../src/ta_func/ta_CDLENGULFING.c + +../../../../../temp/cmr/ta_CDLEVENINGDOJISTAR.o: ../../../../../src/ta_func/ta_CDLEVENINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLEVENINGDOJISTAR.o ../../../../../src/ta_func/ta_CDLEVENINGDOJISTAR.c + +../../../../../temp/cmr/ta_CDLEVENINGSTAR.o: ../../../../../src/ta_func/ta_CDLEVENINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLEVENINGSTAR.o ../../../../../src/ta_func/ta_CDLEVENINGSTAR.c + +../../../../../temp/cmr/ta_CDLGAPSIDESIDEWHITE.o: ../../../../../src/ta_func/ta_CDLGAPSIDESIDEWHITE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLGAPSIDESIDEWHITE.o ../../../../../src/ta_func/ta_CDLGAPSIDESIDEWHITE.c + +../../../../../temp/cmr/ta_CDLGRAVESTONEDOJI.o: ../../../../../src/ta_func/ta_CDLGRAVESTONEDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLGRAVESTONEDOJI.o ../../../../../src/ta_func/ta_CDLGRAVESTONEDOJI.c + +../../../../../temp/cmr/ta_CDLHAMMER.o: ../../../../../src/ta_func/ta_CDLHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLHAMMER.o ../../../../../src/ta_func/ta_CDLHAMMER.c + +../../../../../temp/cmr/ta_CDLHANGINGMAN.o: ../../../../../src/ta_func/ta_CDLHANGINGMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLHANGINGMAN.o ../../../../../src/ta_func/ta_CDLHANGINGMAN.c + +../../../../../temp/cmr/ta_CDLHARAMI.o: ../../../../../src/ta_func/ta_CDLHARAMI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLHARAMI.o ../../../../../src/ta_func/ta_CDLHARAMI.c + +../../../../../temp/cmr/ta_CDLHARAMICROSS.o: ../../../../../src/ta_func/ta_CDLHARAMICROSS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLHARAMICROSS.o ../../../../../src/ta_func/ta_CDLHARAMICROSS.c + +../../../../../temp/cmr/ta_CDLHIGHWAVE.o: ../../../../../src/ta_func/ta_CDLHIGHWAVE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLHIGHWAVE.o ../../../../../src/ta_func/ta_CDLHIGHWAVE.c + +../../../../../temp/cmr/ta_CDLHIKKAKE.o: ../../../../../src/ta_func/ta_CDLHIKKAKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLHIKKAKE.o ../../../../../src/ta_func/ta_CDLHIKKAKE.c + +../../../../../temp/cmr/ta_CDLHIKKAKEMOD.o: ../../../../../src/ta_func/ta_CDLHIKKAKEMOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLHIKKAKEMOD.o ../../../../../src/ta_func/ta_CDLHIKKAKEMOD.c + +../../../../../temp/cmr/ta_CDLHOMINGPIGEON.o: ../../../../../src/ta_func/ta_CDLHOMINGPIGEON.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLHOMINGPIGEON.o ../../../../../src/ta_func/ta_CDLHOMINGPIGEON.c + +../../../../../temp/cmr/ta_CDLIDENTICAL3CROWS.o: ../../../../../src/ta_func/ta_CDLIDENTICAL3CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLIDENTICAL3CROWS.o ../../../../../src/ta_func/ta_CDLIDENTICAL3CROWS.c + +../../../../../temp/cmr/ta_CDLINNECK.o: ../../../../../src/ta_func/ta_CDLINNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLINNECK.o ../../../../../src/ta_func/ta_CDLINNECK.c + +../../../../../temp/cmr/ta_CDLINVERTEDHAMMER.o: ../../../../../src/ta_func/ta_CDLINVERTEDHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLINVERTEDHAMMER.o ../../../../../src/ta_func/ta_CDLINVERTEDHAMMER.c + +../../../../../temp/cmr/ta_CDLKICKING.o: ../../../../../src/ta_func/ta_CDLKICKING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLKICKING.o ../../../../../src/ta_func/ta_CDLKICKING.c + +../../../../../temp/cmr/ta_CDLKICKINGBYLENGTH.o: ../../../../../src/ta_func/ta_CDLKICKINGBYLENGTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLKICKINGBYLENGTH.o ../../../../../src/ta_func/ta_CDLKICKINGBYLENGTH.c + +../../../../../temp/cmr/ta_CDLLADDERBOTTOM.o: ../../../../../src/ta_func/ta_CDLLADDERBOTTOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLLADDERBOTTOM.o ../../../../../src/ta_func/ta_CDLLADDERBOTTOM.c + +../../../../../temp/cmr/ta_CDLLONGLEGGEDDOJI.o: ../../../../../src/ta_func/ta_CDLLONGLEGGEDDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLLONGLEGGEDDOJI.o ../../../../../src/ta_func/ta_CDLLONGLEGGEDDOJI.c + +../../../../../temp/cmr/ta_CDLLONGLINE.o: ../../../../../src/ta_func/ta_CDLLONGLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLLONGLINE.o ../../../../../src/ta_func/ta_CDLLONGLINE.c + +../../../../../temp/cmr/ta_CDLMARUBOZU.o: ../../../../../src/ta_func/ta_CDLMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLMARUBOZU.o ../../../../../src/ta_func/ta_CDLMARUBOZU.c + +../../../../../temp/cmr/ta_CDLMATCHINGLOW.o: ../../../../../src/ta_func/ta_CDLMATCHINGLOW.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLMATCHINGLOW.o ../../../../../src/ta_func/ta_CDLMATCHINGLOW.c + +../../../../../temp/cmr/ta_CDLMATHOLD.o: ../../../../../src/ta_func/ta_CDLMATHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLMATHOLD.o ../../../../../src/ta_func/ta_CDLMATHOLD.c + +../../../../../temp/cmr/ta_CDLMORNINGDOJISTAR.o: ../../../../../src/ta_func/ta_CDLMORNINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLMORNINGDOJISTAR.o ../../../../../src/ta_func/ta_CDLMORNINGDOJISTAR.c + +../../../../../temp/cmr/ta_CDLMORNINGSTAR.o: ../../../../../src/ta_func/ta_CDLMORNINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLMORNINGSTAR.o ../../../../../src/ta_func/ta_CDLMORNINGSTAR.c + +../../../../../temp/cmr/ta_CDLONNECK.o: ../../../../../src/ta_func/ta_CDLONNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLONNECK.o ../../../../../src/ta_func/ta_CDLONNECK.c + +../../../../../temp/cmr/ta_CDLPIERCING.o: ../../../../../src/ta_func/ta_CDLPIERCING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLPIERCING.o ../../../../../src/ta_func/ta_CDLPIERCING.c + +../../../../../temp/cmr/ta_CDLRICKSHAWMAN.o: ../../../../../src/ta_func/ta_CDLRICKSHAWMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLRICKSHAWMAN.o ../../../../../src/ta_func/ta_CDLRICKSHAWMAN.c + +../../../../../temp/cmr/ta_CDLRISEFALL3METHODS.o: ../../../../../src/ta_func/ta_CDLRISEFALL3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLRISEFALL3METHODS.o ../../../../../src/ta_func/ta_CDLRISEFALL3METHODS.c + +../../../../../temp/cmr/ta_CDLSEPARATINGLINES.o: ../../../../../src/ta_func/ta_CDLSEPARATINGLINES.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLSEPARATINGLINES.o ../../../../../src/ta_func/ta_CDLSEPARATINGLINES.c + +../../../../../temp/cmr/ta_CDLSHOOTINGSTAR.o: ../../../../../src/ta_func/ta_CDLSHOOTINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLSHOOTINGSTAR.o ../../../../../src/ta_func/ta_CDLSHOOTINGSTAR.c + +../../../../../temp/cmr/ta_CDLSHORTLINE.o: ../../../../../src/ta_func/ta_CDLSHORTLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLSHORTLINE.o ../../../../../src/ta_func/ta_CDLSHORTLINE.c + +../../../../../temp/cmr/ta_CDLSPINNINGTOP.o: ../../../../../src/ta_func/ta_CDLSPINNINGTOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLSPINNINGTOP.o ../../../../../src/ta_func/ta_CDLSPINNINGTOP.c + +../../../../../temp/cmr/ta_CDLSTALLEDPATTERN.o: ../../../../../src/ta_func/ta_CDLSTALLEDPATTERN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLSTALLEDPATTERN.o ../../../../../src/ta_func/ta_CDLSTALLEDPATTERN.c + +../../../../../temp/cmr/ta_CDLSTICKSANDWICH.o: ../../../../../src/ta_func/ta_CDLSTICKSANDWICH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLSTICKSANDWICH.o ../../../../../src/ta_func/ta_CDLSTICKSANDWICH.c + +../../../../../temp/cmr/ta_CDLTAKURI.o: ../../../../../src/ta_func/ta_CDLTAKURI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLTAKURI.o ../../../../../src/ta_func/ta_CDLTAKURI.c + +../../../../../temp/cmr/ta_CDLTASUKIGAP.o: ../../../../../src/ta_func/ta_CDLTASUKIGAP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLTASUKIGAP.o ../../../../../src/ta_func/ta_CDLTASUKIGAP.c + +../../../../../temp/cmr/ta_CDLTHRUSTING.o: ../../../../../src/ta_func/ta_CDLTHRUSTING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLTHRUSTING.o ../../../../../src/ta_func/ta_CDLTHRUSTING.c + +../../../../../temp/cmr/ta_CDLTRISTAR.o: ../../../../../src/ta_func/ta_CDLTRISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLTRISTAR.o ../../../../../src/ta_func/ta_CDLTRISTAR.c + +../../../../../temp/cmr/ta_CDLUNIQUE3RIVER.o: ../../../../../src/ta_func/ta_CDLUNIQUE3RIVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLUNIQUE3RIVER.o ../../../../../src/ta_func/ta_CDLUNIQUE3RIVER.c + +../../../../../temp/cmr/ta_CDLUPSIDEGAP2CROWS.o: ../../../../../src/ta_func/ta_CDLUPSIDEGAP2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLUPSIDEGAP2CROWS.o ../../../../../src/ta_func/ta_CDLUPSIDEGAP2CROWS.c + +../../../../../temp/cmr/ta_CDLXSIDEGAP3METHODS.o: ../../../../../src/ta_func/ta_CDLXSIDEGAP3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLXSIDEGAP3METHODS.o ../../../../../src/ta_func/ta_CDLXSIDEGAP3METHODS.c + +../../../../../temp/cmr/ta_CEIL.o: ../../../../../src/ta_func/ta_CEIL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CEIL.o ../../../../../src/ta_func/ta_CEIL.c + +../../../../../temp/cmr/ta_CMO.o: ../../../../../src/ta_func/ta_CMO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CMO.o ../../../../../src/ta_func/ta_CMO.c + +../../../../../temp/cmr/ta_CORREL.o: ../../../../../src/ta_func/ta_CORREL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CORREL.o ../../../../../src/ta_func/ta_CORREL.c + +../../../../../temp/cmr/ta_COS.o: ../../../../../src/ta_func/ta_COS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_COS.o ../../../../../src/ta_func/ta_COS.c + +../../../../../temp/cmr/ta_COSH.o: ../../../../../src/ta_func/ta_COSH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_COSH.o ../../../../../src/ta_func/ta_COSH.c + +../../../../../temp/cmr/ta_DEMA.o: ../../../../../src/ta_func/ta_DEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_DEMA.o ../../../../../src/ta_func/ta_DEMA.c + +../../../../../temp/cmr/ta_DIV.o: ../../../../../src/ta_func/ta_DIV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_DIV.o ../../../../../src/ta_func/ta_DIV.c + +../../../../../temp/cmr/ta_DX.o: ../../../../../src/ta_func/ta_DX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_DX.o ../../../../../src/ta_func/ta_DX.c + +../../../../../temp/cmr/ta_EMA.o: ../../../../../src/ta_func/ta_EMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_EMA.o ../../../../../src/ta_func/ta_EMA.c + +../../../../../temp/cmr/ta_EXP.o: ../../../../../src/ta_func/ta_EXP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_EXP.o ../../../../../src/ta_func/ta_EXP.c + +../../../../../temp/cmr/ta_FLOOR.o: ../../../../../src/ta_func/ta_FLOOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_FLOOR.o ../../../../../src/ta_func/ta_FLOOR.c + +../../../../../temp/cmr/ta_HT_DCPERIOD.o: ../../../../../src/ta_func/ta_HT_DCPERIOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_HT_DCPERIOD.o ../../../../../src/ta_func/ta_HT_DCPERIOD.c + +../../../../../temp/cmr/ta_HT_DCPHASE.o: ../../../../../src/ta_func/ta_HT_DCPHASE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_HT_DCPHASE.o ../../../../../src/ta_func/ta_HT_DCPHASE.c + +../../../../../temp/cmr/ta_HT_PHASOR.o: ../../../../../src/ta_func/ta_HT_PHASOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_HT_PHASOR.o ../../../../../src/ta_func/ta_HT_PHASOR.c + +../../../../../temp/cmr/ta_HT_SINE.o: ../../../../../src/ta_func/ta_HT_SINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_HT_SINE.o ../../../../../src/ta_func/ta_HT_SINE.c + +../../../../../temp/cmr/ta_HT_TRENDLINE.o: ../../../../../src/ta_func/ta_HT_TRENDLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_HT_TRENDLINE.o ../../../../../src/ta_func/ta_HT_TRENDLINE.c + +../../../../../temp/cmr/ta_HT_TRENDMODE.o: ../../../../../src/ta_func/ta_HT_TRENDMODE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_HT_TRENDMODE.o ../../../../../src/ta_func/ta_HT_TRENDMODE.c + +../../../../../temp/cmr/ta_KAMA.o: ../../../../../src/ta_func/ta_KAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_KAMA.o ../../../../../src/ta_func/ta_KAMA.c + +../../../../../temp/cmr/ta_LINEARREG.o: ../../../../../src/ta_func/ta_LINEARREG.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_LINEARREG.o ../../../../../src/ta_func/ta_LINEARREG.c + +../../../../../temp/cmr/ta_LINEARREG_ANGLE.o: ../../../../../src/ta_func/ta_LINEARREG_ANGLE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_LINEARREG_ANGLE.o ../../../../../src/ta_func/ta_LINEARREG_ANGLE.c + +../../../../../temp/cmr/ta_LINEARREG_INTERCEPT.o: ../../../../../src/ta_func/ta_LINEARREG_INTERCEPT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_LINEARREG_INTERCEPT.o ../../../../../src/ta_func/ta_LINEARREG_INTERCEPT.c + +../../../../../temp/cmr/ta_LINEARREG_SLOPE.o: ../../../../../src/ta_func/ta_LINEARREG_SLOPE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_LINEARREG_SLOPE.o ../../../../../src/ta_func/ta_LINEARREG_SLOPE.c + +../../../../../temp/cmr/ta_LN.o: ../../../../../src/ta_func/ta_LN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_LN.o ../../../../../src/ta_func/ta_LN.c + +../../../../../temp/cmr/ta_LOG10.o: ../../../../../src/ta_func/ta_LOG10.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_LOG10.o ../../../../../src/ta_func/ta_LOG10.c + +../../../../../temp/cmr/ta_MA.o: ../../../../../src/ta_func/ta_MA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_MA.o ../../../../../src/ta_func/ta_MA.c + +../../../../../temp/cmr/ta_MACD.o: ../../../../../src/ta_func/ta_MACD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_MACD.o ../../../../../src/ta_func/ta_MACD.c + +../../../../../temp/cmr/ta_MACDEXT.o: ../../../../../src/ta_func/ta_MACDEXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_MACDEXT.o ../../../../../src/ta_func/ta_MACDEXT.c + +../../../../../temp/cmr/ta_MACDFIX.o: ../../../../../src/ta_func/ta_MACDFIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_MACDFIX.o ../../../../../src/ta_func/ta_MACDFIX.c + +../../../../../temp/cmr/ta_MAMA.o: ../../../../../src/ta_func/ta_MAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_MAMA.o ../../../../../src/ta_func/ta_MAMA.c + +../../../../../temp/cmr/ta_MAVP.o: ../../../../../src/ta_func/ta_MAVP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_MAVP.o ../../../../../src/ta_func/ta_MAVP.c + +../../../../../temp/cmr/ta_MAX.o: ../../../../../src/ta_func/ta_MAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_MAX.o ../../../../../src/ta_func/ta_MAX.c + +../../../../../temp/cmr/ta_MAXINDEX.o: ../../../../../src/ta_func/ta_MAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_MAXINDEX.o ../../../../../src/ta_func/ta_MAXINDEX.c + +../../../../../temp/cmr/ta_MEDPRICE.o: ../../../../../src/ta_func/ta_MEDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_MEDPRICE.o ../../../../../src/ta_func/ta_MEDPRICE.c + +../../../../../temp/cmr/ta_MFI.o: ../../../../../src/ta_func/ta_MFI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_MFI.o ../../../../../src/ta_func/ta_MFI.c + +../../../../../temp/cmr/ta_MIDPOINT.o: ../../../../../src/ta_func/ta_MIDPOINT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_MIDPOINT.o ../../../../../src/ta_func/ta_MIDPOINT.c + +../../../../../temp/cmr/ta_MIDPRICE.o: ../../../../../src/ta_func/ta_MIDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_MIDPRICE.o ../../../../../src/ta_func/ta_MIDPRICE.c + +../../../../../temp/cmr/ta_MIN.o: ../../../../../src/ta_func/ta_MIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_MIN.o ../../../../../src/ta_func/ta_MIN.c + +../../../../../temp/cmr/ta_MININDEX.o: ../../../../../src/ta_func/ta_MININDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_MININDEX.o ../../../../../src/ta_func/ta_MININDEX.c + +../../../../../temp/cmr/ta_MINMAX.o: ../../../../../src/ta_func/ta_MINMAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_MINMAX.o ../../../../../src/ta_func/ta_MINMAX.c + +../../../../../temp/cmr/ta_MINMAXINDEX.o: ../../../../../src/ta_func/ta_MINMAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_MINMAXINDEX.o ../../../../../src/ta_func/ta_MINMAXINDEX.c + +../../../../../temp/cmr/ta_MINUS_DI.o: ../../../../../src/ta_func/ta_MINUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_MINUS_DI.o ../../../../../src/ta_func/ta_MINUS_DI.c + +../../../../../temp/cmr/ta_MINUS_DM.o: ../../../../../src/ta_func/ta_MINUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_MINUS_DM.o ../../../../../src/ta_func/ta_MINUS_DM.c + +../../../../../temp/cmr/ta_MOM.o: ../../../../../src/ta_func/ta_MOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_MOM.o ../../../../../src/ta_func/ta_MOM.c + +../../../../../temp/cmr/ta_MULT.o: ../../../../../src/ta_func/ta_MULT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_MULT.o ../../../../../src/ta_func/ta_MULT.c + +../../../../../temp/cmr/ta_NATR.o: ../../../../../src/ta_func/ta_NATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_NATR.o ../../../../../src/ta_func/ta_NATR.c + +../../../../../temp/cmr/ta_OBV.o: ../../../../../src/ta_func/ta_OBV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_OBV.o ../../../../../src/ta_func/ta_OBV.c + +../../../../../temp/cmr/ta_PLUS_DI.o: ../../../../../src/ta_func/ta_PLUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_PLUS_DI.o ../../../../../src/ta_func/ta_PLUS_DI.c + +../../../../../temp/cmr/ta_PLUS_DM.o: ../../../../../src/ta_func/ta_PLUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_PLUS_DM.o ../../../../../src/ta_func/ta_PLUS_DM.c + +../../../../../temp/cmr/ta_PPO.o: ../../../../../src/ta_func/ta_PPO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_PPO.o ../../../../../src/ta_func/ta_PPO.c + +../../../../../temp/cmr/ta_ROC.o: ../../../../../src/ta_func/ta_ROC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_ROC.o ../../../../../src/ta_func/ta_ROC.c + +../../../../../temp/cmr/ta_ROCP.o: ../../../../../src/ta_func/ta_ROCP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_ROCP.o ../../../../../src/ta_func/ta_ROCP.c + +../../../../../temp/cmr/ta_ROCR.o: ../../../../../src/ta_func/ta_ROCR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_ROCR.o ../../../../../src/ta_func/ta_ROCR.c + +../../../../../temp/cmr/ta_ROCR100.o: ../../../../../src/ta_func/ta_ROCR100.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_ROCR100.o ../../../../../src/ta_func/ta_ROCR100.c + +../../../../../temp/cmr/ta_RSI.o: ../../../../../src/ta_func/ta_RSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_RSI.o ../../../../../src/ta_func/ta_RSI.c + +../../../../../temp/cmr/ta_SAR.o: ../../../../../src/ta_func/ta_SAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_SAR.o ../../../../../src/ta_func/ta_SAR.c + +../../../../../temp/cmr/ta_SAREXT.o: ../../../../../src/ta_func/ta_SAREXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_SAREXT.o ../../../../../src/ta_func/ta_SAREXT.c + +../../../../../temp/cmr/ta_SIN.o: ../../../../../src/ta_func/ta_SIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_SIN.o ../../../../../src/ta_func/ta_SIN.c + +../../../../../temp/cmr/ta_SINH.o: ../../../../../src/ta_func/ta_SINH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_SINH.o ../../../../../src/ta_func/ta_SINH.c + +../../../../../temp/cmr/ta_SMA.o: ../../../../../src/ta_func/ta_SMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_SMA.o ../../../../../src/ta_func/ta_SMA.c + +../../../../../temp/cmr/ta_SQRT.o: ../../../../../src/ta_func/ta_SQRT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_SQRT.o ../../../../../src/ta_func/ta_SQRT.c + +../../../../../temp/cmr/ta_STDDEV.o: ../../../../../src/ta_func/ta_STDDEV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_STDDEV.o ../../../../../src/ta_func/ta_STDDEV.c + +../../../../../temp/cmr/ta_STOCH.o: ../../../../../src/ta_func/ta_STOCH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_STOCH.o ../../../../../src/ta_func/ta_STOCH.c + +../../../../../temp/cmr/ta_STOCHF.o: ../../../../../src/ta_func/ta_STOCHF.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_STOCHF.o ../../../../../src/ta_func/ta_STOCHF.c + +../../../../../temp/cmr/ta_STOCHRSI.o: ../../../../../src/ta_func/ta_STOCHRSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_STOCHRSI.o ../../../../../src/ta_func/ta_STOCHRSI.c + +../../../../../temp/cmr/ta_SUB.o: ../../../../../src/ta_func/ta_SUB.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_SUB.o ../../../../../src/ta_func/ta_SUB.c + +../../../../../temp/cmr/ta_SUM.o: ../../../../../src/ta_func/ta_SUM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_SUM.o ../../../../../src/ta_func/ta_SUM.c + +../../../../../temp/cmr/ta_T3.o: ../../../../../src/ta_func/ta_T3.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_T3.o ../../../../../src/ta_func/ta_T3.c + +../../../../../temp/cmr/ta_TAN.o: ../../../../../src/ta_func/ta_TAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_TAN.o ../../../../../src/ta_func/ta_TAN.c + +../../../../../temp/cmr/ta_TANH.o: ../../../../../src/ta_func/ta_TANH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_TANH.o ../../../../../src/ta_func/ta_TANH.c + +../../../../../temp/cmr/ta_TEMA.o: ../../../../../src/ta_func/ta_TEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_TEMA.o ../../../../../src/ta_func/ta_TEMA.c + +../../../../../temp/cmr/ta_TRANGE.o: ../../../../../src/ta_func/ta_TRANGE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_TRANGE.o ../../../../../src/ta_func/ta_TRANGE.c + +../../../../../temp/cmr/ta_TRIMA.o: ../../../../../src/ta_func/ta_TRIMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_TRIMA.o ../../../../../src/ta_func/ta_TRIMA.c + +../../../../../temp/cmr/ta_TRIX.o: ../../../../../src/ta_func/ta_TRIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_TRIX.o ../../../../../src/ta_func/ta_TRIX.c + +../../../../../temp/cmr/ta_TSF.o: ../../../../../src/ta_func/ta_TSF.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_TSF.o ../../../../../src/ta_func/ta_TSF.c + +../../../../../temp/cmr/ta_TYPPRICE.o: ../../../../../src/ta_func/ta_TYPPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_TYPPRICE.o ../../../../../src/ta_func/ta_TYPPRICE.c + +../../../../../temp/cmr/ta_ULTOSC.o: ../../../../../src/ta_func/ta_ULTOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_ULTOSC.o ../../../../../src/ta_func/ta_ULTOSC.c + +../../../../../temp/cmr/ta_VAR.o: ../../../../../src/ta_func/ta_VAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_VAR.o ../../../../../src/ta_func/ta_VAR.c + +../../../../../temp/cmr/ta_WCLPRICE.o: ../../../../../src/ta_func/ta_WCLPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_WCLPRICE.o ../../../../../src/ta_func/ta_WCLPRICE.c + +../../../../../temp/cmr/ta_WILLR.o: ../../../../../src/ta_func/ta_WILLR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_WILLR.o ../../../../../src/ta_func/ta_WILLR.c + +../../../../../temp/cmr/ta_WMA.o: ../../../../../src/ta_func/ta_WMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_WMA.o ../../../../../src/ta_func/ta_WMA.c + diff --git a/make/cmr/freebsd/g++/ta_regtest/Makefile b/make/cmr/freebsd/g++/ta_regtest/Makefile new file mode 100644 index 000000000..3b4839d53 --- /dev/null +++ b/make/cmr/freebsd/g++/ta_regtest/Makefile @@ -0,0 +1,205 @@ +############################################################################# +# Makefile for building ../../../../../bin/ta_regtest +# Generated by tmake; +# Project: ta_regtest/ta_regtest +# Template: app +############################################################################# + +####### Compiler, tools and options + +CC = gcc +CXX = g++ +CFLAGS = -pipe -Wall -W -O2 -fno-strict-aliasing -D_REENTRANT -DQT_THREAD_SUPPORT +CXXFLAGS= -pipe -Wall -W -O2 -fno-strict-aliasing -D_REENTRANT -DQT_THREAD_SUPPORT +INCPATH = -I../../../../../src/ta_common -I../../../../../src/tools/ta_regtest -I../../../../../src/ta_func -I../../../../../include -I/usr/local/include +LINK = g++ +LFLAGS = -L/usr/local/lib +LIBS = $(SUBLIBS) ../../../../../lib/libta_libc_cmr.a -pthread +MOC = $(QTDIR)/bin/moc +UIC = $(QTDIR)/bin/uic + +TAR = tar -cf +GZIP = gzip -9f + +####### Apply additional overruling user flags, if any +CFLAGS += $(CUSERFLAGS) +CXXFLAGS += $(CUSERFLAGS) + +####### Files + +HEADERS = +SOURCES = ../../../../../src/tools/ta_regtest/ta_regtest.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_candlestick.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_1in_1out.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_1in_2out.c \ + ../../../../../src/tools/ta_regtest/test_internals.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_adx.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_bbands.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_ma.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_macd.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_minmax.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_mom.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_per_ema.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hl.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hlc.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hlcv.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_per_ohlc.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_po.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_rsi.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_sar.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_stddev.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_stoch.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_trange.c \ + ../../../../../src/tools/ta_regtest/test_util.c \ + ../../../../../src/tools/ta_regtest/test_data.c \ + ../../../../../src/tools/ta_regtest/test_abstract.c +OBJECTS = ../../../../../temp/cmr/ta_regtest.o \ + ../../../../../temp/cmr/test_candlestick.o \ + ../../../../../temp/cmr/test_1in_1out.o \ + ../../../../../temp/cmr/test_1in_2out.o \ + ../../../../../temp/cmr/test_internals.o \ + ../../../../../temp/cmr/test_adx.o \ + ../../../../../temp/cmr/test_bbands.o \ + ../../../../../temp/cmr/test_ma.o \ + ../../../../../temp/cmr/test_macd.o \ + ../../../../../temp/cmr/test_minmax.o \ + ../../../../../temp/cmr/test_mom.o \ + ../../../../../temp/cmr/test_per_ema.o \ + ../../../../../temp/cmr/test_per_hl.o \ + ../../../../../temp/cmr/test_per_hlc.o \ + ../../../../../temp/cmr/test_per_hlcv.o \ + ../../../../../temp/cmr/test_per_ohlc.o \ + ../../../../../temp/cmr/test_po.o \ + ../../../../../temp/cmr/test_rsi.o \ + ../../../../../temp/cmr/test_sar.o \ + ../../../../../temp/cmr/test_stddev.o \ + ../../../../../temp/cmr/test_stoch.o \ + ../../../../../temp/cmr/test_trange.o \ + ../../../../../temp/cmr/test_util.o \ + ../../../../../temp/cmr/test_data.o \ + ../../../../../temp/cmr/test_abstract.o +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ../../../../../bin/ta_regtest +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .C .c + +.cpp.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cxx.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cc.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.C.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.c.o: + $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $< + +####### Build rules + + +all: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS) + +moc: $(SRCMOC) + +clean: + -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) + -rm -f *~ core + +####### Sub-libraries + + +###### Combined headers + + +####### Compile + +../../../../../temp/cmr/ta_regtest.o: ../../../../../src/tools/ta_regtest/ta_regtest.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_regtest.o ../../../../../src/tools/ta_regtest/ta_regtest.c + +../../../../../temp/cmr/test_candlestick.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_candlestick.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/test_candlestick.o ../../../../../src/tools/ta_regtest/ta_test_func/test_candlestick.c + +../../../../../temp/cmr/test_1in_1out.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_1in_1out.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/test_1in_1out.o ../../../../../src/tools/ta_regtest/ta_test_func/test_1in_1out.c + +../../../../../temp/cmr/test_1in_2out.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_1in_2out.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/test_1in_2out.o ../../../../../src/tools/ta_regtest/ta_test_func/test_1in_2out.c + +../../../../../temp/cmr/test_internals.o: ../../../../../src/tools/ta_regtest/test_internals.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/test_internals.o ../../../../../src/tools/ta_regtest/test_internals.c + +../../../../../temp/cmr/test_adx.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_adx.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/test_adx.o ../../../../../src/tools/ta_regtest/ta_test_func/test_adx.c + +../../../../../temp/cmr/test_bbands.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_bbands.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/test_bbands.o ../../../../../src/tools/ta_regtest/ta_test_func/test_bbands.c + +../../../../../temp/cmr/test_ma.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_ma.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/test_ma.o ../../../../../src/tools/ta_regtest/ta_test_func/test_ma.c + +../../../../../temp/cmr/test_macd.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_macd.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/test_macd.o ../../../../../src/tools/ta_regtest/ta_test_func/test_macd.c + +../../../../../temp/cmr/test_minmax.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_minmax.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/test_minmax.o ../../../../../src/tools/ta_regtest/ta_test_func/test_minmax.c + +../../../../../temp/cmr/test_mom.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_mom.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/test_mom.o ../../../../../src/tools/ta_regtest/ta_test_func/test_mom.c + +../../../../../temp/cmr/test_per_ema.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_per_ema.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/test_per_ema.o ../../../../../src/tools/ta_regtest/ta_test_func/test_per_ema.c + +../../../../../temp/cmr/test_per_hl.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hl.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/test_per_hl.o ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hl.c + +../../../../../temp/cmr/test_per_hlc.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hlc.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/test_per_hlc.o ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hlc.c + +../../../../../temp/cmr/test_per_hlcv.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hlcv.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/test_per_hlcv.o ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hlcv.c + +../../../../../temp/cmr/test_per_ohlc.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_per_ohlc.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/test_per_ohlc.o ../../../../../src/tools/ta_regtest/ta_test_func/test_per_ohlc.c + +../../../../../temp/cmr/test_po.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_po.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/test_po.o ../../../../../src/tools/ta_regtest/ta_test_func/test_po.c + +../../../../../temp/cmr/test_rsi.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_rsi.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/test_rsi.o ../../../../../src/tools/ta_regtest/ta_test_func/test_rsi.c + +../../../../../temp/cmr/test_sar.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_sar.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/test_sar.o ../../../../../src/tools/ta_regtest/ta_test_func/test_sar.c + +../../../../../temp/cmr/test_stddev.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_stddev.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/test_stddev.o ../../../../../src/tools/ta_regtest/ta_test_func/test_stddev.c + +../../../../../temp/cmr/test_stoch.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_stoch.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/test_stoch.o ../../../../../src/tools/ta_regtest/ta_test_func/test_stoch.c + +../../../../../temp/cmr/test_trange.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_trange.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/test_trange.o ../../../../../src/tools/ta_regtest/ta_test_func/test_trange.c + +../../../../../temp/cmr/test_util.o: ../../../../../src/tools/ta_regtest/test_util.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/test_util.o ../../../../../src/tools/ta_regtest/test_util.c + +../../../../../temp/cmr/test_data.o: ../../../../../src/tools/ta_regtest/test_data.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/test_data.o ../../../../../src/tools/ta_regtest/test_data.c + +../../../../../temp/cmr/test_abstract.o: ../../../../../src/tools/ta_regtest/test_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/test_abstract.o ../../../../../src/tools/ta_regtest/test_abstract.c + diff --git a/make/cmr/linux/g++/Makefile b/make/cmr/linux/g++/Makefile new file mode 100644 index 000000000..87e0baf4c --- /dev/null +++ b/make/cmr/linux/g++/Makefile @@ -0,0 +1,36 @@ +############################################################################# +# Makefile for building targets in sub directories. +# Generated by tmake; +# Project: rootmake +# Template: subdirs +############################################################################# + +MAKEFILE= Makefile +TMAKE = tmake + +SUBDIRS = ta_common \ + ta_func \ + ta_abstract \ + ta_libc \ + gen_code \ + ta_regtest + +all: $(SUBDIRS) + +$(SUBDIRS): FORCE + cd $@; $(MAKE) + +tmake: ../cmr/linux/g++/Makefile + +../cmr/linux/g++/Makefile: rootmake.pro + tmake rootmake.pro -o ../cmr/linux/g++/Makefile + +tmake_all: + for i in $(SUBDIRS); do ( if [ -d $$i ]; then cd $$i ; $(MAKE) -f $(MAKEFILE) tmake_all || true; fi; ) ; done + +#### $text = "\t" . 'for i in $(SUBDIRS); do ( if [ -d $$i ]; then cd $$i ; pro=`basename $$i`.pro ; $(TMAKE) $$pro -o $(MAKEFILE); grep "TEMPLATE.*subdirs" $$pro 2>/dev/null >/dev/null && $(MAKE) -f $(MAKEFILE) tmake_all || true; fi; ) ; done'; + +clean release debug: + for i in $(SUBDIRS); do ( if [ -d $$i ]; then cd $$i ; $(MAKE) $@; fi; ) ; done + +FORCE: diff --git a/make/cmr/linux/g++/gen_code/Makefile b/make/cmr/linux/g++/gen_code/Makefile new file mode 100644 index 000000000..d8e9f5837 --- /dev/null +++ b/make/cmr/linux/g++/gen_code/Makefile @@ -0,0 +1,231 @@ +############################################################################# +# Makefile for building ../../../../../bin/gen_code +# Generated by tmake; +# Project: gen_code/gen_code +# Template: app +############################################################################# + +####### Compiler, tools and options + +CC = gcc +CXX = g++ +CFLAGS = -pipe -fPIC -Wall -W -O2 -fno-strict-aliasing -D_REENTRANT -DTA_GEN_CODE -DQT_THREAD_SUPPORT +CXXFLAGS= -pipe -fPIC -Wall -W -O2 -fno-strict-aliasing -D_REENTRANT -DTA_GEN_CODE -DQT_THREAD_SUPPORT +INCPATH = -I../../../../../include -I../../../../../src/ta_common -I../../../../../src/ta_abstract -I../../../../../src/ta_abstract/tables -I../../../../../src/ta_abstract/frames +LINK = g++ +LFLAGS = +LIBS = $(SUBLIBS) ../../../../../lib/libta_common_cmr.a -ldl -lpthread +MOC = $(QTDIR)/bin/moc +UIC = $(QTDIR)/bin/uic + +TAR = tar -cf +GZIP = gzip -9f + +####### Support for 64-bit systems +ifeq ($(shell uname -m), x86_64) + CFLAGS += -march=x86-64 -m64 -D__64BIT__ + CXXFLAGS += -march=x86-64 -m64 -D__64BIT__ +endif + +####### Apply additional overruling user flags, if any +CFLAGS += $(CUSERFLAGS) +CXXFLAGS += $(CUSERFLAGS) + +####### Files + +HEADERS = +SOURCES = ../../../../../src/tools/gen_code/gen_code.c \ + ../../../../../src/ta_abstract/ta_abstract.c \ + ../../../../../src/ta_abstract/ta_def_ui.c \ + ../../../../../src/ta_abstract/tables/table_a.c \ + ../../../../../src/ta_abstract/tables/table_b.c \ + ../../../../../src/ta_abstract/tables/table_c.c \ + ../../../../../src/ta_abstract/tables/table_d.c \ + ../../../../../src/ta_abstract/tables/table_e.c \ + ../../../../../src/ta_abstract/tables/table_f.c \ + ../../../../../src/ta_abstract/tables/table_g.c \ + ../../../../../src/ta_abstract/tables/table_h.c \ + ../../../../../src/ta_abstract/tables/table_i.c \ + ../../../../../src/ta_abstract/tables/table_j.c \ + ../../../../../src/ta_abstract/tables/table_k.c \ + ../../../../../src/ta_abstract/tables/table_l.c \ + ../../../../../src/ta_abstract/tables/table_m.c \ + ../../../../../src/ta_abstract/tables/table_n.c \ + ../../../../../src/ta_abstract/tables/table_o.c \ + ../../../../../src/ta_abstract/tables/table_p.c \ + ../../../../../src/ta_abstract/tables/table_q.c \ + ../../../../../src/ta_abstract/tables/table_r.c \ + ../../../../../src/ta_abstract/tables/table_s.c \ + ../../../../../src/ta_abstract/tables/table_t.c \ + ../../../../../src/ta_abstract/tables/table_u.c \ + ../../../../../src/ta_abstract/tables/table_v.c \ + ../../../../../src/ta_abstract/tables/table_w.c \ + ../../../../../src/ta_abstract/tables/table_x.c \ + ../../../../../src/ta_abstract/tables/table_y.c \ + ../../../../../src/ta_abstract/tables/table_z.c +OBJECTS = ../../../../../temp/cmr/gen_code/gen_code.o \ + ../../../../../temp/cmr/gen_code/ta_abstract.o \ + ../../../../../temp/cmr/gen_code/ta_def_ui.o \ + ../../../../../temp/cmr/gen_code/table_a.o \ + ../../../../../temp/cmr/gen_code/table_b.o \ + ../../../../../temp/cmr/gen_code/table_c.o \ + ../../../../../temp/cmr/gen_code/table_d.o \ + ../../../../../temp/cmr/gen_code/table_e.o \ + ../../../../../temp/cmr/gen_code/table_f.o \ + ../../../../../temp/cmr/gen_code/table_g.o \ + ../../../../../temp/cmr/gen_code/table_h.o \ + ../../../../../temp/cmr/gen_code/table_i.o \ + ../../../../../temp/cmr/gen_code/table_j.o \ + ../../../../../temp/cmr/gen_code/table_k.o \ + ../../../../../temp/cmr/gen_code/table_l.o \ + ../../../../../temp/cmr/gen_code/table_m.o \ + ../../../../../temp/cmr/gen_code/table_n.o \ + ../../../../../temp/cmr/gen_code/table_o.o \ + ../../../../../temp/cmr/gen_code/table_p.o \ + ../../../../../temp/cmr/gen_code/table_q.o \ + ../../../../../temp/cmr/gen_code/table_r.o \ + ../../../../../temp/cmr/gen_code/table_s.o \ + ../../../../../temp/cmr/gen_code/table_t.o \ + ../../../../../temp/cmr/gen_code/table_u.o \ + ../../../../../temp/cmr/gen_code/table_v.o \ + ../../../../../temp/cmr/gen_code/table_w.o \ + ../../../../../temp/cmr/gen_code/table_x.o \ + ../../../../../temp/cmr/gen_code/table_y.o \ + ../../../../../temp/cmr/gen_code/table_z.o +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ../../../../../bin/gen_code +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .C .c + +.cpp.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cxx.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cc.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.C.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.c.o: + $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $< + +####### Build rules + + +all: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS) + +moc: $(SRCMOC) + +clean: + -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) + -rm -f *~ core + +####### Sub-libraries + + +###### Combined headers + + +####### Compile + +../../../../../temp/cmr/gen_code/gen_code.o: ../../../../../src/tools/gen_code/gen_code.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/gen_code/gen_code.o ../../../../../src/tools/gen_code/gen_code.c + +../../../../../temp/cmr/gen_code/ta_abstract.o: ../../../../../src/ta_abstract/ta_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/gen_code/ta_abstract.o ../../../../../src/ta_abstract/ta_abstract.c + +../../../../../temp/cmr/gen_code/ta_def_ui.o: ../../../../../src/ta_abstract/ta_def_ui.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/gen_code/ta_def_ui.o ../../../../../src/ta_abstract/ta_def_ui.c + +../../../../../temp/cmr/gen_code/table_a.o: ../../../../../src/ta_abstract/tables/table_a.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/gen_code/table_a.o ../../../../../src/ta_abstract/tables/table_a.c + +../../../../../temp/cmr/gen_code/table_b.o: ../../../../../src/ta_abstract/tables/table_b.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/gen_code/table_b.o ../../../../../src/ta_abstract/tables/table_b.c + +../../../../../temp/cmr/gen_code/table_c.o: ../../../../../src/ta_abstract/tables/table_c.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/gen_code/table_c.o ../../../../../src/ta_abstract/tables/table_c.c + +../../../../../temp/cmr/gen_code/table_d.o: ../../../../../src/ta_abstract/tables/table_d.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/gen_code/table_d.o ../../../../../src/ta_abstract/tables/table_d.c + +../../../../../temp/cmr/gen_code/table_e.o: ../../../../../src/ta_abstract/tables/table_e.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/gen_code/table_e.o ../../../../../src/ta_abstract/tables/table_e.c + +../../../../../temp/cmr/gen_code/table_f.o: ../../../../../src/ta_abstract/tables/table_f.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/gen_code/table_f.o ../../../../../src/ta_abstract/tables/table_f.c + +../../../../../temp/cmr/gen_code/table_g.o: ../../../../../src/ta_abstract/tables/table_g.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/gen_code/table_g.o ../../../../../src/ta_abstract/tables/table_g.c + +../../../../../temp/cmr/gen_code/table_h.o: ../../../../../src/ta_abstract/tables/table_h.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/gen_code/table_h.o ../../../../../src/ta_abstract/tables/table_h.c + +../../../../../temp/cmr/gen_code/table_i.o: ../../../../../src/ta_abstract/tables/table_i.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/gen_code/table_i.o ../../../../../src/ta_abstract/tables/table_i.c + +../../../../../temp/cmr/gen_code/table_j.o: ../../../../../src/ta_abstract/tables/table_j.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/gen_code/table_j.o ../../../../../src/ta_abstract/tables/table_j.c + +../../../../../temp/cmr/gen_code/table_k.o: ../../../../../src/ta_abstract/tables/table_k.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/gen_code/table_k.o ../../../../../src/ta_abstract/tables/table_k.c + +../../../../../temp/cmr/gen_code/table_l.o: ../../../../../src/ta_abstract/tables/table_l.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/gen_code/table_l.o ../../../../../src/ta_abstract/tables/table_l.c + +../../../../../temp/cmr/gen_code/table_m.o: ../../../../../src/ta_abstract/tables/table_m.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/gen_code/table_m.o ../../../../../src/ta_abstract/tables/table_m.c + +../../../../../temp/cmr/gen_code/table_n.o: ../../../../../src/ta_abstract/tables/table_n.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/gen_code/table_n.o ../../../../../src/ta_abstract/tables/table_n.c + +../../../../../temp/cmr/gen_code/table_o.o: ../../../../../src/ta_abstract/tables/table_o.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/gen_code/table_o.o ../../../../../src/ta_abstract/tables/table_o.c + +../../../../../temp/cmr/gen_code/table_p.o: ../../../../../src/ta_abstract/tables/table_p.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/gen_code/table_p.o ../../../../../src/ta_abstract/tables/table_p.c + +../../../../../temp/cmr/gen_code/table_q.o: ../../../../../src/ta_abstract/tables/table_q.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/gen_code/table_q.o ../../../../../src/ta_abstract/tables/table_q.c + +../../../../../temp/cmr/gen_code/table_r.o: ../../../../../src/ta_abstract/tables/table_r.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/gen_code/table_r.o ../../../../../src/ta_abstract/tables/table_r.c + +../../../../../temp/cmr/gen_code/table_s.o: ../../../../../src/ta_abstract/tables/table_s.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/gen_code/table_s.o ../../../../../src/ta_abstract/tables/table_s.c + +../../../../../temp/cmr/gen_code/table_t.o: ../../../../../src/ta_abstract/tables/table_t.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/gen_code/table_t.o ../../../../../src/ta_abstract/tables/table_t.c + +../../../../../temp/cmr/gen_code/table_u.o: ../../../../../src/ta_abstract/tables/table_u.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/gen_code/table_u.o ../../../../../src/ta_abstract/tables/table_u.c + +../../../../../temp/cmr/gen_code/table_v.o: ../../../../../src/ta_abstract/tables/table_v.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/gen_code/table_v.o ../../../../../src/ta_abstract/tables/table_v.c + +../../../../../temp/cmr/gen_code/table_w.o: ../../../../../src/ta_abstract/tables/table_w.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/gen_code/table_w.o ../../../../../src/ta_abstract/tables/table_w.c + +../../../../../temp/cmr/gen_code/table_x.o: ../../../../../src/ta_abstract/tables/table_x.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/gen_code/table_x.o ../../../../../src/ta_abstract/tables/table_x.c + +../../../../../temp/cmr/gen_code/table_y.o: ../../../../../src/ta_abstract/tables/table_y.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/gen_code/table_y.o ../../../../../src/ta_abstract/tables/table_y.c + +../../../../../temp/cmr/gen_code/table_z.o: ../../../../../src/ta_abstract/tables/table_z.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/gen_code/table_z.o ../../../../../src/ta_abstract/tables/table_z.c + diff --git a/make/cmr/linux/g++/ta_abstract/Makefile b/make/cmr/linux/g++/ta_abstract/Makefile new file mode 100644 index 000000000..faeec4cc9 --- /dev/null +++ b/make/cmr/linux/g++/ta_abstract/Makefile @@ -0,0 +1,243 @@ +############################################################################# +# Makefile for building ../../../../../lib/libta_abstract_cmr.a +# Generated by tmake; +# Project: ta_abstract/ta_abstract +# Template: lib +############################################################################# + +####### Compiler, tools and options + +CC = gcc +CXX = g++ +CFLAGS = -pipe -fPIC -Wall -W -O2 -fno-strict-aliasing -D_REENTRANT -DQT_THREAD_SUPPORT +CXXFLAGS= -pipe -fPIC -Wall -W -O2 -fno-strict-aliasing -D_REENTRANT -DQT_THREAD_SUPPORT +INCPATH = -I../../../../../src/ta_common -I../../../../../src/ta_abstract -I../../../../../src/ta_abstract/tables -I../../../../../src/ta_abstract/frames -I../../../../../include +AR = ar cqs +RANLIB = +MOC = $(QTDIR)/bin/moc +UIC = $(QTDIR)/bin/uic + +TAR = tar -cf +GZIP = gzip -9f + +####### Support for 64-bit systems +ifeq ($(shell uname -m), x86_64) + CFLAGS += -march=x86-64 -m64 -D__64BIT__ + CXXFLAGS += -march=x86-64 -m64 -D__64BIT__ +endif + +####### Apply additional overruling user flags, if any +CFLAGS += $(CUSERFLAGS) +CXXFLAGS += $(CUSERFLAGS) + +####### Files + +HEADERS = +SOURCES = ../../../../../src/ta_abstract/ta_abstract.c \ + ../../../../../src/ta_abstract/ta_def_ui.c \ + ../../../../../src/ta_abstract/ta_func_api.c \ + ../../../../../src/ta_abstract/ta_group_idx.c \ + ../../../../../src/ta_abstract/frames/ta_frame.c \ + ../../../../../src/ta_abstract/tables/table_a.c \ + ../../../../../src/ta_abstract/tables/table_b.c \ + ../../../../../src/ta_abstract/tables/table_c.c \ + ../../../../../src/ta_abstract/tables/table_d.c \ + ../../../../../src/ta_abstract/tables/table_e.c \ + ../../../../../src/ta_abstract/tables/table_f.c \ + ../../../../../src/ta_abstract/tables/table_g.c \ + ../../../../../src/ta_abstract/tables/table_h.c \ + ../../../../../src/ta_abstract/tables/table_i.c \ + ../../../../../src/ta_abstract/tables/table_j.c \ + ../../../../../src/ta_abstract/tables/table_k.c \ + ../../../../../src/ta_abstract/tables/table_l.c \ + ../../../../../src/ta_abstract/tables/table_m.c \ + ../../../../../src/ta_abstract/tables/table_n.c \ + ../../../../../src/ta_abstract/tables/table_o.c \ + ../../../../../src/ta_abstract/tables/table_p.c \ + ../../../../../src/ta_abstract/tables/table_q.c \ + ../../../../../src/ta_abstract/tables/table_r.c \ + ../../../../../src/ta_abstract/tables/table_s.c \ + ../../../../../src/ta_abstract/tables/table_t.c \ + ../../../../../src/ta_abstract/tables/table_u.c \ + ../../../../../src/ta_abstract/tables/table_v.c \ + ../../../../../src/ta_abstract/tables/table_w.c \ + ../../../../../src/ta_abstract/tables/table_x.c \ + ../../../../../src/ta_abstract/tables/table_y.c \ + ../../../../../src/ta_abstract/tables/table_z.c +OBJECTS = ../../../../../temp/cmr/ta_abstract.o \ + ../../../../../temp/cmr/ta_def_ui.o \ + ../../../../../temp/cmr/ta_func_api.o \ + ../../../../../temp/cmr/ta_group_idx.o \ + ../../../../../temp/cmr/ta_frame.o \ + ../../../../../temp/cmr/table_a.o \ + ../../../../../temp/cmr/table_b.o \ + ../../../../../temp/cmr/table_c.o \ + ../../../../../temp/cmr/table_d.o \ + ../../../../../temp/cmr/table_e.o \ + ../../../../../temp/cmr/table_f.o \ + ../../../../../temp/cmr/table_g.o \ + ../../../../../temp/cmr/table_h.o \ + ../../../../../temp/cmr/table_i.o \ + ../../../../../temp/cmr/table_j.o \ + ../../../../../temp/cmr/table_k.o \ + ../../../../../temp/cmr/table_l.o \ + ../../../../../temp/cmr/table_m.o \ + ../../../../../temp/cmr/table_n.o \ + ../../../../../temp/cmr/table_o.o \ + ../../../../../temp/cmr/table_p.o \ + ../../../../../temp/cmr/table_q.o \ + ../../../../../temp/cmr/table_r.o \ + ../../../../../temp/cmr/table_s.o \ + ../../../../../temp/cmr/table_t.o \ + ../../../../../temp/cmr/table_u.o \ + ../../../../../temp/cmr/table_v.o \ + ../../../../../temp/cmr/table_w.o \ + ../../../../../temp/cmr/table_x.o \ + ../../../../../temp/cmr/table_y.o \ + ../../../../../temp/cmr/table_z.o +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ../../../../../lib/libta_abstract_cmr.a +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .C .c + +.cpp.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cxx.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cc.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.C.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.c.o: + $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $< + +####### Build rules + + +all: $(TARGET) + +staticlib: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + -rm -f $(TARGET) + $(AR) $(TARGET) $(OBJECTS) $(OBJMOC) + +moc: $(SRCMOC) + +clean: + -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) + -rm -f *~ core + +####### Sub-libraries + + +###### Combined headers + + +####### Compile + +../../../../../temp/cmr/ta_abstract.o: ../../../../../src/ta_abstract/ta_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_abstract.o ../../../../../src/ta_abstract/ta_abstract.c + +../../../../../temp/cmr/ta_def_ui.o: ../../../../../src/ta_abstract/ta_def_ui.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_def_ui.o ../../../../../src/ta_abstract/ta_def_ui.c + +../../../../../temp/cmr/ta_func_api.o: ../../../../../src/ta_abstract/ta_func_api.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_func_api.o ../../../../../src/ta_abstract/ta_func_api.c + +../../../../../temp/cmr/ta_group_idx.o: ../../../../../src/ta_abstract/ta_group_idx.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_group_idx.o ../../../../../src/ta_abstract/ta_group_idx.c + +../../../../../temp/cmr/ta_frame.o: ../../../../../src/ta_abstract/frames/ta_frame.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_frame.o ../../../../../src/ta_abstract/frames/ta_frame.c + +../../../../../temp/cmr/table_a.o: ../../../../../src/ta_abstract/tables/table_a.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_a.o ../../../../../src/ta_abstract/tables/table_a.c + +../../../../../temp/cmr/table_b.o: ../../../../../src/ta_abstract/tables/table_b.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_b.o ../../../../../src/ta_abstract/tables/table_b.c + +../../../../../temp/cmr/table_c.o: ../../../../../src/ta_abstract/tables/table_c.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_c.o ../../../../../src/ta_abstract/tables/table_c.c + +../../../../../temp/cmr/table_d.o: ../../../../../src/ta_abstract/tables/table_d.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_d.o ../../../../../src/ta_abstract/tables/table_d.c + +../../../../../temp/cmr/table_e.o: ../../../../../src/ta_abstract/tables/table_e.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_e.o ../../../../../src/ta_abstract/tables/table_e.c + +../../../../../temp/cmr/table_f.o: ../../../../../src/ta_abstract/tables/table_f.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_f.o ../../../../../src/ta_abstract/tables/table_f.c + +../../../../../temp/cmr/table_g.o: ../../../../../src/ta_abstract/tables/table_g.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_g.o ../../../../../src/ta_abstract/tables/table_g.c + +../../../../../temp/cmr/table_h.o: ../../../../../src/ta_abstract/tables/table_h.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_h.o ../../../../../src/ta_abstract/tables/table_h.c + +../../../../../temp/cmr/table_i.o: ../../../../../src/ta_abstract/tables/table_i.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_i.o ../../../../../src/ta_abstract/tables/table_i.c + +../../../../../temp/cmr/table_j.o: ../../../../../src/ta_abstract/tables/table_j.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_j.o ../../../../../src/ta_abstract/tables/table_j.c + +../../../../../temp/cmr/table_k.o: ../../../../../src/ta_abstract/tables/table_k.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_k.o ../../../../../src/ta_abstract/tables/table_k.c + +../../../../../temp/cmr/table_l.o: ../../../../../src/ta_abstract/tables/table_l.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_l.o ../../../../../src/ta_abstract/tables/table_l.c + +../../../../../temp/cmr/table_m.o: ../../../../../src/ta_abstract/tables/table_m.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_m.o ../../../../../src/ta_abstract/tables/table_m.c + +../../../../../temp/cmr/table_n.o: ../../../../../src/ta_abstract/tables/table_n.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_n.o ../../../../../src/ta_abstract/tables/table_n.c + +../../../../../temp/cmr/table_o.o: ../../../../../src/ta_abstract/tables/table_o.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_o.o ../../../../../src/ta_abstract/tables/table_o.c + +../../../../../temp/cmr/table_p.o: ../../../../../src/ta_abstract/tables/table_p.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_p.o ../../../../../src/ta_abstract/tables/table_p.c + +../../../../../temp/cmr/table_q.o: ../../../../../src/ta_abstract/tables/table_q.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_q.o ../../../../../src/ta_abstract/tables/table_q.c + +../../../../../temp/cmr/table_r.o: ../../../../../src/ta_abstract/tables/table_r.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_r.o ../../../../../src/ta_abstract/tables/table_r.c + +../../../../../temp/cmr/table_s.o: ../../../../../src/ta_abstract/tables/table_s.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_s.o ../../../../../src/ta_abstract/tables/table_s.c + +../../../../../temp/cmr/table_t.o: ../../../../../src/ta_abstract/tables/table_t.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_t.o ../../../../../src/ta_abstract/tables/table_t.c + +../../../../../temp/cmr/table_u.o: ../../../../../src/ta_abstract/tables/table_u.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_u.o ../../../../../src/ta_abstract/tables/table_u.c + +../../../../../temp/cmr/table_v.o: ../../../../../src/ta_abstract/tables/table_v.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_v.o ../../../../../src/ta_abstract/tables/table_v.c + +../../../../../temp/cmr/table_w.o: ../../../../../src/ta_abstract/tables/table_w.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_w.o ../../../../../src/ta_abstract/tables/table_w.c + +../../../../../temp/cmr/table_x.o: ../../../../../src/ta_abstract/tables/table_x.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_x.o ../../../../../src/ta_abstract/tables/table_x.c + +../../../../../temp/cmr/table_y.o: ../../../../../src/ta_abstract/tables/table_y.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_y.o ../../../../../src/ta_abstract/tables/table_y.c + +../../../../../temp/cmr/table_z.o: ../../../../../src/ta_abstract/tables/table_z.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_z.o ../../../../../src/ta_abstract/tables/table_z.c + diff --git a/make/cmr/linux/g++/ta_common/Makefile b/make/cmr/linux/g++/ta_common/Makefile new file mode 100644 index 000000000..391083660 --- /dev/null +++ b/make/cmr/linux/g++/ta_common/Makefile @@ -0,0 +1,103 @@ +############################################################################# +# Makefile for building ../../../../../lib/libta_common_cmr.a +# Generated by tmake; +# Project: ta_common/ta_common +# Template: lib +############################################################################# + +####### Compiler, tools and options + +CC = gcc +CXX = g++ +CFLAGS = -pipe -fPIC -Wall -W -O2 -fno-strict-aliasing -D_REENTRANT -DQT_THREAD_SUPPORT +CXXFLAGS= -pipe -fPIC -Wall -W -O2 -fno-strict-aliasing -D_REENTRANT -DQT_THREAD_SUPPORT +INCPATH = -I../../../../../src/ta_common -I../../../../../include +AR = ar cqs +RANLIB = +MOC = $(QTDIR)/bin/moc +UIC = $(QTDIR)/bin/uic + +TAR = tar -cf +GZIP = gzip -9f + +####### Support for 64-bit systems +ifeq ($(shell uname -m), x86_64) + CFLAGS += -march=x86-64 -m64 -D__64BIT__ + CXXFLAGS += -march=x86-64 -m64 -D__64BIT__ +endif + +####### Apply additional overruling user flags, if any +CFLAGS += $(CUSERFLAGS) +CXXFLAGS += $(CUSERFLAGS) + +####### Files + +HEADERS = +SOURCES = ../../../../../src/ta_common/ta_global.c \ + ../../../../../src/ta_common/ta_retcode.c \ + ../../../../../src/ta_common/ta_version.c +OBJECTS = ../../../../../temp/cmr/ta_global.o \ + ../../../../../temp/cmr/ta_retcode.o \ + ../../../../../temp/cmr/ta_version.o +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ../../../../../lib/libta_common_cmr.a +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .C .c + +.cpp.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cxx.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cc.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.C.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.c.o: + $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $< + +####### Build rules + + +all: $(TARGET) + +staticlib: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + -rm -f $(TARGET) + $(AR) $(TARGET) $(OBJECTS) $(OBJMOC) + +moc: $(SRCMOC) + +clean: + -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) + -rm -f *~ core + +####### Sub-libraries + + +###### Combined headers + + +####### Compile + +../../../../../temp/cmr/ta_global.o: ../../../../../src/ta_common/ta_global.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_global.o ../../../../../src/ta_common/ta_global.c + +../../../../../temp/cmr/ta_retcode.o: ../../../../../src/ta_common/ta_retcode.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_retcode.o ../../../../../src/ta_common/ta_retcode.c + +../../../../../temp/cmr/ta_version.o: ../../../../../src/ta_common/ta_version.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_version.o ../../../../../src/ta_common/ta_version.c + diff --git a/make/cmr/linux/g++/ta_func/Makefile b/make/cmr/linux/g++/ta_func/Makefile new file mode 100644 index 000000000..310ff283d --- /dev/null +++ b/make/cmr/linux/g++/ta_func/Makefile @@ -0,0 +1,883 @@ +############################################################################# +# Makefile for building ../../../../../lib/libta_func_cmr.a +# Generated by tmake; +# Project: ta_func/ta_func +# Template: lib +############################################################################# + +####### Compiler, tools and options + +CC = gcc +CXX = g++ +CFLAGS = -pipe -fPIC -Wall -W -O2 -fno-strict-aliasing -D_REENTRANT -DQT_THREAD_SUPPORT +CXXFLAGS= -pipe -fPIC -Wall -W -O2 -fno-strict-aliasing -D_REENTRANT -DQT_THREAD_SUPPORT +INCPATH = -I../../../../../src/ta_common -I/n -I../../../../../include +AR = ar cqs +RANLIB = +MOC = $(QTDIR)/bin/moc +UIC = $(QTDIR)/bin/uic + +TAR = tar -cf +GZIP = gzip -9f + +####### Support for 64-bit systems +ifeq ($(shell uname -m), x86_64) + CFLAGS += -march=x86-64 -m64 -D__64BIT__ + CXXFLAGS += -march=x86-64 -m64 -D__64BIT__ +endif + +####### Apply additional overruling user flags, if any +CFLAGS += $(CUSERFLAGS) +CXXFLAGS += $(CUSERFLAGS) + +####### Files + +HEADERS = +SOURCES = ../../../../../src/ta_func/ta_utility.c \ + ../../../../../src/ta_func/ta_ACOS.c \ + ../../../../../src/ta_func/ta_AD.c \ + ../../../../../src/ta_func/ta_ADD.c \ + ../../../../../src/ta_func/ta_ADOSC.c \ + ../../../../../src/ta_func/ta_ADX.c \ + ../../../../../src/ta_func/ta_ADXR.c \ + ../../../../../src/ta_func/ta_APO.c \ + ../../../../../src/ta_func/ta_AROON.c \ + ../../../../../src/ta_func/ta_AROONOSC.c \ + ../../../../../src/ta_func/ta_ASIN.c \ + ../../../../../src/ta_func/ta_ATAN.c \ + ../../../../../src/ta_func/ta_ATR.c \ + ../../../../../src/ta_func/ta_AVGPRICE.c \ + ../../../../../src/ta_func/ta_BBANDS.c \ + ../../../../../src/ta_func/ta_BETA.c \ + ../../../../../src/ta_func/ta_BOP.c \ + ../../../../../src/ta_func/ta_CCI.c \ + ../../../../../src/ta_func/ta_CDL2CROWS.c \ + ../../../../../src/ta_func/ta_CDL3BLACKCROWS.c \ + ../../../../../src/ta_func/ta_CDL3INSIDE.c \ + ../../../../../src/ta_func/ta_CDL3LINESTRIKE.c \ + ../../../../../src/ta_func/ta_CDL3OUTSIDE.c \ + ../../../../../src/ta_func/ta_CDL3STARSINSOUTH.c \ + ../../../../../src/ta_func/ta_CDL3WHITESOLDIERS.c \ + ../../../../../src/ta_func/ta_CDLABANDONEDBABY.c \ + ../../../../../src/ta_func/ta_CDLADVANCEBLOCK.c \ + ../../../../../src/ta_func/ta_CDLBELTHOLD.c \ + ../../../../../src/ta_func/ta_CDLBREAKAWAY.c \ + ../../../../../src/ta_func/ta_CDLCLOSINGMARUBOZU.c \ + ../../../../../src/ta_func/ta_CDLCONCEALBABYSWALL.c \ + ../../../../../src/ta_func/ta_CDLCOUNTERATTACK.c \ + ../../../../../src/ta_func/ta_CDLDARKCLOUDCOVER.c \ + ../../../../../src/ta_func/ta_CDLDOJI.c \ + ../../../../../src/ta_func/ta_CDLDOJISTAR.c \ + ../../../../../src/ta_func/ta_CDLDRAGONFLYDOJI.c \ + ../../../../../src/ta_func/ta_CDLENGULFING.c \ + ../../../../../src/ta_func/ta_CDLEVENINGDOJISTAR.c \ + ../../../../../src/ta_func/ta_CDLEVENINGSTAR.c \ + ../../../../../src/ta_func/ta_CDLGAPSIDESIDEWHITE.c \ + ../../../../../src/ta_func/ta_CDLGRAVESTONEDOJI.c \ + ../../../../../src/ta_func/ta_CDLHAMMER.c \ + ../../../../../src/ta_func/ta_CDLHANGINGMAN.c \ + ../../../../../src/ta_func/ta_CDLHARAMI.c \ + ../../../../../src/ta_func/ta_CDLHARAMICROSS.c \ + ../../../../../src/ta_func/ta_CDLHIGHWAVE.c \ + ../../../../../src/ta_func/ta_CDLHIKKAKE.c \ + ../../../../../src/ta_func/ta_CDLHIKKAKEMOD.c \ + ../../../../../src/ta_func/ta_CDLHOMINGPIGEON.c \ + ../../../../../src/ta_func/ta_CDLIDENTICAL3CROWS.c \ + ../../../../../src/ta_func/ta_CDLINNECK.c \ + ../../../../../src/ta_func/ta_CDLINVERTEDHAMMER.c \ + ../../../../../src/ta_func/ta_CDLKICKING.c \ + ../../../../../src/ta_func/ta_CDLKICKINGBYLENGTH.c \ + ../../../../../src/ta_func/ta_CDLLADDERBOTTOM.c \ + ../../../../../src/ta_func/ta_CDLLONGLEGGEDDOJI.c \ + ../../../../../src/ta_func/ta_CDLLONGLINE.c \ + ../../../../../src/ta_func/ta_CDLMARUBOZU.c \ + ../../../../../src/ta_func/ta_CDLMATCHINGLOW.c \ + ../../../../../src/ta_func/ta_CDLMATHOLD.c \ + ../../../../../src/ta_func/ta_CDLMORNINGDOJISTAR.c \ + ../../../../../src/ta_func/ta_CDLMORNINGSTAR.c \ + ../../../../../src/ta_func/ta_CDLONNECK.c \ + ../../../../../src/ta_func/ta_CDLPIERCING.c \ + ../../../../../src/ta_func/ta_CDLRICKSHAWMAN.c \ + ../../../../../src/ta_func/ta_CDLRISEFALL3METHODS.c \ + ../../../../../src/ta_func/ta_CDLSEPARATINGLINES.c \ + ../../../../../src/ta_func/ta_CDLSHOOTINGSTAR.c \ + ../../../../../src/ta_func/ta_CDLSHORTLINE.c \ + ../../../../../src/ta_func/ta_CDLSPINNINGTOP.c \ + ../../../../../src/ta_func/ta_CDLSTALLEDPATTERN.c \ + ../../../../../src/ta_func/ta_CDLSTICKSANDWICH.c \ + ../../../../../src/ta_func/ta_CDLTAKURI.c \ + ../../../../../src/ta_func/ta_CDLTASUKIGAP.c \ + ../../../../../src/ta_func/ta_CDLTHRUSTING.c \ + ../../../../../src/ta_func/ta_CDLTRISTAR.c \ + ../../../../../src/ta_func/ta_CDLUNIQUE3RIVER.c \ + ../../../../../src/ta_func/ta_CDLUPSIDEGAP2CROWS.c \ + ../../../../../src/ta_func/ta_CDLXSIDEGAP3METHODS.c \ + ../../../../../src/ta_func/ta_CEIL.c \ + ../../../../../src/ta_func/ta_CMO.c \ + ../../../../../src/ta_func/ta_CORREL.c \ + ../../../../../src/ta_func/ta_COS.c \ + ../../../../../src/ta_func/ta_COSH.c \ + ../../../../../src/ta_func/ta_DEMA.c \ + ../../../../../src/ta_func/ta_DIV.c \ + ../../../../../src/ta_func/ta_DX.c \ + ../../../../../src/ta_func/ta_EMA.c \ + ../../../../../src/ta_func/ta_EXP.c \ + ../../../../../src/ta_func/ta_FLOOR.c \ + ../../../../../src/ta_func/ta_HT_DCPERIOD.c \ + ../../../../../src/ta_func/ta_HT_DCPHASE.c \ + ../../../../../src/ta_func/ta_HT_PHASOR.c \ + ../../../../../src/ta_func/ta_HT_SINE.c \ + ../../../../../src/ta_func/ta_HT_TRENDLINE.c \ + ../../../../../src/ta_func/ta_HT_TRENDMODE.c \ + ../../../../../src/ta_func/ta_KAMA.c \ + ../../../../../src/ta_func/ta_LINEARREG.c \ + ../../../../../src/ta_func/ta_LINEARREG_ANGLE.c \ + ../../../../../src/ta_func/ta_LINEARREG_INTERCEPT.c \ + ../../../../../src/ta_func/ta_LINEARREG_SLOPE.c \ + ../../../../../src/ta_func/ta_LN.c \ + ../../../../../src/ta_func/ta_LOG10.c \ + ../../../../../src/ta_func/ta_MA.c \ + ../../../../../src/ta_func/ta_MACD.c \ + ../../../../../src/ta_func/ta_MACDEXT.c \ + ../../../../../src/ta_func/ta_MACDFIX.c \ + ../../../../../src/ta_func/ta_MAMA.c \ + ../../../../../src/ta_func/ta_MAVP.c \ + ../../../../../src/ta_func/ta_MAX.c \ + ../../../../../src/ta_func/ta_MAXINDEX.c \ + ../../../../../src/ta_func/ta_MEDPRICE.c \ + ../../../../../src/ta_func/ta_MFI.c \ + ../../../../../src/ta_func/ta_MIDPOINT.c \ + ../../../../../src/ta_func/ta_MIDPRICE.c \ + ../../../../../src/ta_func/ta_MIN.c \ + ../../../../../src/ta_func/ta_MININDEX.c \ + ../../../../../src/ta_func/ta_MINMAX.c \ + ../../../../../src/ta_func/ta_MINMAXINDEX.c \ + ../../../../../src/ta_func/ta_MINUS_DI.c \ + ../../../../../src/ta_func/ta_MINUS_DM.c \ + ../../../../../src/ta_func/ta_MOM.c \ + ../../../../../src/ta_func/ta_MULT.c \ + ../../../../../src/ta_func/ta_NATR.c \ + ../../../../../src/ta_func/ta_OBV.c \ + ../../../../../src/ta_func/ta_PLUS_DI.c \ + ../../../../../src/ta_func/ta_PLUS_DM.c \ + ../../../../../src/ta_func/ta_PPO.c \ + ../../../../../src/ta_func/ta_ROC.c \ + ../../../../../src/ta_func/ta_ROCP.c \ + ../../../../../src/ta_func/ta_ROCR.c \ + ../../../../../src/ta_func/ta_ROCR100.c \ + ../../../../../src/ta_func/ta_RSI.c \ + ../../../../../src/ta_func/ta_SAR.c \ + ../../../../../src/ta_func/ta_SAREXT.c \ + ../../../../../src/ta_func/ta_SIN.c \ + ../../../../../src/ta_func/ta_SINH.c \ + ../../../../../src/ta_func/ta_SMA.c \ + ../../../../../src/ta_func/ta_SQRT.c \ + ../../../../../src/ta_func/ta_STDDEV.c \ + ../../../../../src/ta_func/ta_STOCH.c \ + ../../../../../src/ta_func/ta_STOCHF.c \ + ../../../../../src/ta_func/ta_STOCHRSI.c \ + ../../../../../src/ta_func/ta_SUB.c \ + ../../../../../src/ta_func/ta_SUM.c \ + ../../../../../src/ta_func/ta_T3.c \ + ../../../../../src/ta_func/ta_TAN.c \ + ../../../../../src/ta_func/ta_TANH.c \ + ../../../../../src/ta_func/ta_TEMA.c \ + ../../../../../src/ta_func/ta_TRANGE.c \ + ../../../../../src/ta_func/ta_TRIMA.c \ + ../../../../../src/ta_func/ta_TRIX.c \ + ../../../../../src/ta_func/ta_TSF.c \ + ../../../../../src/ta_func/ta_TYPPRICE.c \ + ../../../../../src/ta_func/ta_ULTOSC.c \ + ../../../../../src/ta_func/ta_VAR.c \ + ../../../../../src/ta_func/ta_WCLPRICE.c \ + ../../../../../src/ta_func/ta_WILLR.c \ + ../../../../../src/ta_func/ta_WMA.c +OBJECTS = ../../../../../temp/cmr/ta_utility.o \ + ../../../../../temp/cmr/ta_ACOS.o \ + ../../../../../temp/cmr/ta_AD.o \ + ../../../../../temp/cmr/ta_ADD.o \ + ../../../../../temp/cmr/ta_ADOSC.o \ + ../../../../../temp/cmr/ta_ADX.o \ + ../../../../../temp/cmr/ta_ADXR.o \ + ../../../../../temp/cmr/ta_APO.o \ + ../../../../../temp/cmr/ta_AROON.o \ + ../../../../../temp/cmr/ta_AROONOSC.o \ + ../../../../../temp/cmr/ta_ASIN.o \ + ../../../../../temp/cmr/ta_ATAN.o \ + ../../../../../temp/cmr/ta_ATR.o \ + ../../../../../temp/cmr/ta_AVGPRICE.o \ + ../../../../../temp/cmr/ta_BBANDS.o \ + ../../../../../temp/cmr/ta_BETA.o \ + ../../../../../temp/cmr/ta_BOP.o \ + ../../../../../temp/cmr/ta_CCI.o \ + ../../../../../temp/cmr/ta_CDL2CROWS.o \ + ../../../../../temp/cmr/ta_CDL3BLACKCROWS.o \ + ../../../../../temp/cmr/ta_CDL3INSIDE.o \ + ../../../../../temp/cmr/ta_CDL3LINESTRIKE.o \ + ../../../../../temp/cmr/ta_CDL3OUTSIDE.o \ + ../../../../../temp/cmr/ta_CDL3STARSINSOUTH.o \ + ../../../../../temp/cmr/ta_CDL3WHITESOLDIERS.o \ + ../../../../../temp/cmr/ta_CDLABANDONEDBABY.o \ + ../../../../../temp/cmr/ta_CDLADVANCEBLOCK.o \ + ../../../../../temp/cmr/ta_CDLBELTHOLD.o \ + ../../../../../temp/cmr/ta_CDLBREAKAWAY.o \ + ../../../../../temp/cmr/ta_CDLCLOSINGMARUBOZU.o \ + ../../../../../temp/cmr/ta_CDLCONCEALBABYSWALL.o \ + ../../../../../temp/cmr/ta_CDLCOUNTERATTACK.o \ + ../../../../../temp/cmr/ta_CDLDARKCLOUDCOVER.o \ + ../../../../../temp/cmr/ta_CDLDOJI.o \ + ../../../../../temp/cmr/ta_CDLDOJISTAR.o \ + ../../../../../temp/cmr/ta_CDLDRAGONFLYDOJI.o \ + ../../../../../temp/cmr/ta_CDLENGULFING.o \ + ../../../../../temp/cmr/ta_CDLEVENINGDOJISTAR.o \ + ../../../../../temp/cmr/ta_CDLEVENINGSTAR.o \ + ../../../../../temp/cmr/ta_CDLGAPSIDESIDEWHITE.o \ + ../../../../../temp/cmr/ta_CDLGRAVESTONEDOJI.o \ + ../../../../../temp/cmr/ta_CDLHAMMER.o \ + ../../../../../temp/cmr/ta_CDLHANGINGMAN.o \ + ../../../../../temp/cmr/ta_CDLHARAMI.o \ + ../../../../../temp/cmr/ta_CDLHARAMICROSS.o \ + ../../../../../temp/cmr/ta_CDLHIGHWAVE.o \ + ../../../../../temp/cmr/ta_CDLHIKKAKE.o \ + ../../../../../temp/cmr/ta_CDLHIKKAKEMOD.o \ + ../../../../../temp/cmr/ta_CDLHOMINGPIGEON.o \ + ../../../../../temp/cmr/ta_CDLIDENTICAL3CROWS.o \ + ../../../../../temp/cmr/ta_CDLINNECK.o \ + ../../../../../temp/cmr/ta_CDLINVERTEDHAMMER.o \ + ../../../../../temp/cmr/ta_CDLKICKING.o \ + ../../../../../temp/cmr/ta_CDLKICKINGBYLENGTH.o \ + ../../../../../temp/cmr/ta_CDLLADDERBOTTOM.o \ + ../../../../../temp/cmr/ta_CDLLONGLEGGEDDOJI.o \ + ../../../../../temp/cmr/ta_CDLLONGLINE.o \ + ../../../../../temp/cmr/ta_CDLMARUBOZU.o \ + ../../../../../temp/cmr/ta_CDLMATCHINGLOW.o \ + ../../../../../temp/cmr/ta_CDLMATHOLD.o \ + ../../../../../temp/cmr/ta_CDLMORNINGDOJISTAR.o \ + ../../../../../temp/cmr/ta_CDLMORNINGSTAR.o \ + ../../../../../temp/cmr/ta_CDLONNECK.o \ + ../../../../../temp/cmr/ta_CDLPIERCING.o \ + ../../../../../temp/cmr/ta_CDLRICKSHAWMAN.o \ + ../../../../../temp/cmr/ta_CDLRISEFALL3METHODS.o \ + ../../../../../temp/cmr/ta_CDLSEPARATINGLINES.o \ + ../../../../../temp/cmr/ta_CDLSHOOTINGSTAR.o \ + ../../../../../temp/cmr/ta_CDLSHORTLINE.o \ + ../../../../../temp/cmr/ta_CDLSPINNINGTOP.o \ + ../../../../../temp/cmr/ta_CDLSTALLEDPATTERN.o \ + ../../../../../temp/cmr/ta_CDLSTICKSANDWICH.o \ + ../../../../../temp/cmr/ta_CDLTAKURI.o \ + ../../../../../temp/cmr/ta_CDLTASUKIGAP.o \ + ../../../../../temp/cmr/ta_CDLTHRUSTING.o \ + ../../../../../temp/cmr/ta_CDLTRISTAR.o \ + ../../../../../temp/cmr/ta_CDLUNIQUE3RIVER.o \ + ../../../../../temp/cmr/ta_CDLUPSIDEGAP2CROWS.o \ + ../../../../../temp/cmr/ta_CDLXSIDEGAP3METHODS.o \ + ../../../../../temp/cmr/ta_CEIL.o \ + ../../../../../temp/cmr/ta_CMO.o \ + ../../../../../temp/cmr/ta_CORREL.o \ + ../../../../../temp/cmr/ta_COS.o \ + ../../../../../temp/cmr/ta_COSH.o \ + ../../../../../temp/cmr/ta_DEMA.o \ + ../../../../../temp/cmr/ta_DIV.o \ + ../../../../../temp/cmr/ta_DX.o \ + ../../../../../temp/cmr/ta_EMA.o \ + ../../../../../temp/cmr/ta_EXP.o \ + ../../../../../temp/cmr/ta_FLOOR.o \ + ../../../../../temp/cmr/ta_HT_DCPERIOD.o \ + ../../../../../temp/cmr/ta_HT_DCPHASE.o \ + ../../../../../temp/cmr/ta_HT_PHASOR.o \ + ../../../../../temp/cmr/ta_HT_SINE.o \ + ../../../../../temp/cmr/ta_HT_TRENDLINE.o \ + ../../../../../temp/cmr/ta_HT_TRENDMODE.o \ + ../../../../../temp/cmr/ta_KAMA.o \ + ../../../../../temp/cmr/ta_LINEARREG.o \ + ../../../../../temp/cmr/ta_LINEARREG_ANGLE.o \ + ../../../../../temp/cmr/ta_LINEARREG_INTERCEPT.o \ + ../../../../../temp/cmr/ta_LINEARREG_SLOPE.o \ + ../../../../../temp/cmr/ta_LN.o \ + ../../../../../temp/cmr/ta_LOG10.o \ + ../../../../../temp/cmr/ta_MA.o \ + ../../../../../temp/cmr/ta_MACD.o \ + ../../../../../temp/cmr/ta_MACDEXT.o \ + ../../../../../temp/cmr/ta_MACDFIX.o \ + ../../../../../temp/cmr/ta_MAMA.o \ + ../../../../../temp/cmr/ta_MAVP.o \ + ../../../../../temp/cmr/ta_MAX.o \ + ../../../../../temp/cmr/ta_MAXINDEX.o \ + ../../../../../temp/cmr/ta_MEDPRICE.o \ + ../../../../../temp/cmr/ta_MFI.o \ + ../../../../../temp/cmr/ta_MIDPOINT.o \ + ../../../../../temp/cmr/ta_MIDPRICE.o \ + ../../../../../temp/cmr/ta_MIN.o \ + ../../../../../temp/cmr/ta_MININDEX.o \ + ../../../../../temp/cmr/ta_MINMAX.o \ + ../../../../../temp/cmr/ta_MINMAXINDEX.o \ + ../../../../../temp/cmr/ta_MINUS_DI.o \ + ../../../../../temp/cmr/ta_MINUS_DM.o \ + ../../../../../temp/cmr/ta_MOM.o \ + ../../../../../temp/cmr/ta_MULT.o \ + ../../../../../temp/cmr/ta_NATR.o \ + ../../../../../temp/cmr/ta_OBV.o \ + ../../../../../temp/cmr/ta_PLUS_DI.o \ + ../../../../../temp/cmr/ta_PLUS_DM.o \ + ../../../../../temp/cmr/ta_PPO.o \ + ../../../../../temp/cmr/ta_ROC.o \ + ../../../../../temp/cmr/ta_ROCP.o \ + ../../../../../temp/cmr/ta_ROCR.o \ + ../../../../../temp/cmr/ta_ROCR100.o \ + ../../../../../temp/cmr/ta_RSI.o \ + ../../../../../temp/cmr/ta_SAR.o \ + ../../../../../temp/cmr/ta_SAREXT.o \ + ../../../../../temp/cmr/ta_SIN.o \ + ../../../../../temp/cmr/ta_SINH.o \ + ../../../../../temp/cmr/ta_SMA.o \ + ../../../../../temp/cmr/ta_SQRT.o \ + ../../../../../temp/cmr/ta_STDDEV.o \ + ../../../../../temp/cmr/ta_STOCH.o \ + ../../../../../temp/cmr/ta_STOCHF.o \ + ../../../../../temp/cmr/ta_STOCHRSI.o \ + ../../../../../temp/cmr/ta_SUB.o \ + ../../../../../temp/cmr/ta_SUM.o \ + ../../../../../temp/cmr/ta_T3.o \ + ../../../../../temp/cmr/ta_TAN.o \ + ../../../../../temp/cmr/ta_TANH.o \ + ../../../../../temp/cmr/ta_TEMA.o \ + ../../../../../temp/cmr/ta_TRANGE.o \ + ../../../../../temp/cmr/ta_TRIMA.o \ + ../../../../../temp/cmr/ta_TRIX.o \ + ../../../../../temp/cmr/ta_TSF.o \ + ../../../../../temp/cmr/ta_TYPPRICE.o \ + ../../../../../temp/cmr/ta_ULTOSC.o \ + ../../../../../temp/cmr/ta_VAR.o \ + ../../../../../temp/cmr/ta_WCLPRICE.o \ + ../../../../../temp/cmr/ta_WILLR.o \ + ../../../../../temp/cmr/ta_WMA.o +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ../../../../../lib/libta_func_cmr.a +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .C .c + +.cpp.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cxx.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cc.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.C.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.c.o: + $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $< + +####### Build rules + + +all: $(TARGET) + +staticlib: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + -rm -f $(TARGET) + $(AR) $(TARGET) $(OBJECTS) $(OBJMOC) + +moc: $(SRCMOC) + +clean: + -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) + -rm -f *~ core + +####### Sub-libraries + + +###### Combined headers + + +####### Compile + +../../../../../temp/cmr/ta_utility.o: ../../../../../src/ta_func/ta_utility.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_utility.o ../../../../../src/ta_func/ta_utility.c + +../../../../../temp/cmr/ta_ACOS.o: ../../../../../src/ta_func/ta_ACOS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_ACOS.o ../../../../../src/ta_func/ta_ACOS.c + +../../../../../temp/cmr/ta_AD.o: ../../../../../src/ta_func/ta_AD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_AD.o ../../../../../src/ta_func/ta_AD.c + +../../../../../temp/cmr/ta_ADD.o: ../../../../../src/ta_func/ta_ADD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_ADD.o ../../../../../src/ta_func/ta_ADD.c + +../../../../../temp/cmr/ta_ADOSC.o: ../../../../../src/ta_func/ta_ADOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_ADOSC.o ../../../../../src/ta_func/ta_ADOSC.c + +../../../../../temp/cmr/ta_ADX.o: ../../../../../src/ta_func/ta_ADX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_ADX.o ../../../../../src/ta_func/ta_ADX.c + +../../../../../temp/cmr/ta_ADXR.o: ../../../../../src/ta_func/ta_ADXR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_ADXR.o ../../../../../src/ta_func/ta_ADXR.c + +../../../../../temp/cmr/ta_APO.o: ../../../../../src/ta_func/ta_APO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_APO.o ../../../../../src/ta_func/ta_APO.c + +../../../../../temp/cmr/ta_AROON.o: ../../../../../src/ta_func/ta_AROON.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_AROON.o ../../../../../src/ta_func/ta_AROON.c + +../../../../../temp/cmr/ta_AROONOSC.o: ../../../../../src/ta_func/ta_AROONOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_AROONOSC.o ../../../../../src/ta_func/ta_AROONOSC.c + +../../../../../temp/cmr/ta_ASIN.o: ../../../../../src/ta_func/ta_ASIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_ASIN.o ../../../../../src/ta_func/ta_ASIN.c + +../../../../../temp/cmr/ta_ATAN.o: ../../../../../src/ta_func/ta_ATAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_ATAN.o ../../../../../src/ta_func/ta_ATAN.c + +../../../../../temp/cmr/ta_ATR.o: ../../../../../src/ta_func/ta_ATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_ATR.o ../../../../../src/ta_func/ta_ATR.c + +../../../../../temp/cmr/ta_AVGPRICE.o: ../../../../../src/ta_func/ta_AVGPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_AVGPRICE.o ../../../../../src/ta_func/ta_AVGPRICE.c + +../../../../../temp/cmr/ta_BBANDS.o: ../../../../../src/ta_func/ta_BBANDS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_BBANDS.o ../../../../../src/ta_func/ta_BBANDS.c + +../../../../../temp/cmr/ta_BETA.o: ../../../../../src/ta_func/ta_BETA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_BETA.o ../../../../../src/ta_func/ta_BETA.c + +../../../../../temp/cmr/ta_BOP.o: ../../../../../src/ta_func/ta_BOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_BOP.o ../../../../../src/ta_func/ta_BOP.c + +../../../../../temp/cmr/ta_CCI.o: ../../../../../src/ta_func/ta_CCI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CCI.o ../../../../../src/ta_func/ta_CCI.c + +../../../../../temp/cmr/ta_CDL2CROWS.o: ../../../../../src/ta_func/ta_CDL2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDL2CROWS.o ../../../../../src/ta_func/ta_CDL2CROWS.c + +../../../../../temp/cmr/ta_CDL3BLACKCROWS.o: ../../../../../src/ta_func/ta_CDL3BLACKCROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDL3BLACKCROWS.o ../../../../../src/ta_func/ta_CDL3BLACKCROWS.c + +../../../../../temp/cmr/ta_CDL3INSIDE.o: ../../../../../src/ta_func/ta_CDL3INSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDL3INSIDE.o ../../../../../src/ta_func/ta_CDL3INSIDE.c + +../../../../../temp/cmr/ta_CDL3LINESTRIKE.o: ../../../../../src/ta_func/ta_CDL3LINESTRIKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDL3LINESTRIKE.o ../../../../../src/ta_func/ta_CDL3LINESTRIKE.c + +../../../../../temp/cmr/ta_CDL3OUTSIDE.o: ../../../../../src/ta_func/ta_CDL3OUTSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDL3OUTSIDE.o ../../../../../src/ta_func/ta_CDL3OUTSIDE.c + +../../../../../temp/cmr/ta_CDL3STARSINSOUTH.o: ../../../../../src/ta_func/ta_CDL3STARSINSOUTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDL3STARSINSOUTH.o ../../../../../src/ta_func/ta_CDL3STARSINSOUTH.c + +../../../../../temp/cmr/ta_CDL3WHITESOLDIERS.o: ../../../../../src/ta_func/ta_CDL3WHITESOLDIERS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDL3WHITESOLDIERS.o ../../../../../src/ta_func/ta_CDL3WHITESOLDIERS.c + +../../../../../temp/cmr/ta_CDLABANDONEDBABY.o: ../../../../../src/ta_func/ta_CDLABANDONEDBABY.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLABANDONEDBABY.o ../../../../../src/ta_func/ta_CDLABANDONEDBABY.c + +../../../../../temp/cmr/ta_CDLADVANCEBLOCK.o: ../../../../../src/ta_func/ta_CDLADVANCEBLOCK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLADVANCEBLOCK.o ../../../../../src/ta_func/ta_CDLADVANCEBLOCK.c + +../../../../../temp/cmr/ta_CDLBELTHOLD.o: ../../../../../src/ta_func/ta_CDLBELTHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLBELTHOLD.o ../../../../../src/ta_func/ta_CDLBELTHOLD.c + +../../../../../temp/cmr/ta_CDLBREAKAWAY.o: ../../../../../src/ta_func/ta_CDLBREAKAWAY.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLBREAKAWAY.o ../../../../../src/ta_func/ta_CDLBREAKAWAY.c + +../../../../../temp/cmr/ta_CDLCLOSINGMARUBOZU.o: ../../../../../src/ta_func/ta_CDLCLOSINGMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLCLOSINGMARUBOZU.o ../../../../../src/ta_func/ta_CDLCLOSINGMARUBOZU.c + +../../../../../temp/cmr/ta_CDLCONCEALBABYSWALL.o: ../../../../../src/ta_func/ta_CDLCONCEALBABYSWALL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLCONCEALBABYSWALL.o ../../../../../src/ta_func/ta_CDLCONCEALBABYSWALL.c + +../../../../../temp/cmr/ta_CDLCOUNTERATTACK.o: ../../../../../src/ta_func/ta_CDLCOUNTERATTACK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLCOUNTERATTACK.o ../../../../../src/ta_func/ta_CDLCOUNTERATTACK.c + +../../../../../temp/cmr/ta_CDLDARKCLOUDCOVER.o: ../../../../../src/ta_func/ta_CDLDARKCLOUDCOVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLDARKCLOUDCOVER.o ../../../../../src/ta_func/ta_CDLDARKCLOUDCOVER.c + +../../../../../temp/cmr/ta_CDLDOJI.o: ../../../../../src/ta_func/ta_CDLDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLDOJI.o ../../../../../src/ta_func/ta_CDLDOJI.c + +../../../../../temp/cmr/ta_CDLDOJISTAR.o: ../../../../../src/ta_func/ta_CDLDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLDOJISTAR.o ../../../../../src/ta_func/ta_CDLDOJISTAR.c + +../../../../../temp/cmr/ta_CDLDRAGONFLYDOJI.o: ../../../../../src/ta_func/ta_CDLDRAGONFLYDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLDRAGONFLYDOJI.o ../../../../../src/ta_func/ta_CDLDRAGONFLYDOJI.c + +../../../../../temp/cmr/ta_CDLENGULFING.o: ../../../../../src/ta_func/ta_CDLENGULFING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLENGULFING.o ../../../../../src/ta_func/ta_CDLENGULFING.c + +../../../../../temp/cmr/ta_CDLEVENINGDOJISTAR.o: ../../../../../src/ta_func/ta_CDLEVENINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLEVENINGDOJISTAR.o ../../../../../src/ta_func/ta_CDLEVENINGDOJISTAR.c + +../../../../../temp/cmr/ta_CDLEVENINGSTAR.o: ../../../../../src/ta_func/ta_CDLEVENINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLEVENINGSTAR.o ../../../../../src/ta_func/ta_CDLEVENINGSTAR.c + +../../../../../temp/cmr/ta_CDLGAPSIDESIDEWHITE.o: ../../../../../src/ta_func/ta_CDLGAPSIDESIDEWHITE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLGAPSIDESIDEWHITE.o ../../../../../src/ta_func/ta_CDLGAPSIDESIDEWHITE.c + +../../../../../temp/cmr/ta_CDLGRAVESTONEDOJI.o: ../../../../../src/ta_func/ta_CDLGRAVESTONEDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLGRAVESTONEDOJI.o ../../../../../src/ta_func/ta_CDLGRAVESTONEDOJI.c + +../../../../../temp/cmr/ta_CDLHAMMER.o: ../../../../../src/ta_func/ta_CDLHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLHAMMER.o ../../../../../src/ta_func/ta_CDLHAMMER.c + +../../../../../temp/cmr/ta_CDLHANGINGMAN.o: ../../../../../src/ta_func/ta_CDLHANGINGMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLHANGINGMAN.o ../../../../../src/ta_func/ta_CDLHANGINGMAN.c + +../../../../../temp/cmr/ta_CDLHARAMI.o: ../../../../../src/ta_func/ta_CDLHARAMI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLHARAMI.o ../../../../../src/ta_func/ta_CDLHARAMI.c + +../../../../../temp/cmr/ta_CDLHARAMICROSS.o: ../../../../../src/ta_func/ta_CDLHARAMICROSS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLHARAMICROSS.o ../../../../../src/ta_func/ta_CDLHARAMICROSS.c + +../../../../../temp/cmr/ta_CDLHIGHWAVE.o: ../../../../../src/ta_func/ta_CDLHIGHWAVE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLHIGHWAVE.o ../../../../../src/ta_func/ta_CDLHIGHWAVE.c + +../../../../../temp/cmr/ta_CDLHIKKAKE.o: ../../../../../src/ta_func/ta_CDLHIKKAKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLHIKKAKE.o ../../../../../src/ta_func/ta_CDLHIKKAKE.c + +../../../../../temp/cmr/ta_CDLHIKKAKEMOD.o: ../../../../../src/ta_func/ta_CDLHIKKAKEMOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLHIKKAKEMOD.o ../../../../../src/ta_func/ta_CDLHIKKAKEMOD.c + +../../../../../temp/cmr/ta_CDLHOMINGPIGEON.o: ../../../../../src/ta_func/ta_CDLHOMINGPIGEON.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLHOMINGPIGEON.o ../../../../../src/ta_func/ta_CDLHOMINGPIGEON.c + +../../../../../temp/cmr/ta_CDLIDENTICAL3CROWS.o: ../../../../../src/ta_func/ta_CDLIDENTICAL3CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLIDENTICAL3CROWS.o ../../../../../src/ta_func/ta_CDLIDENTICAL3CROWS.c + +../../../../../temp/cmr/ta_CDLINNECK.o: ../../../../../src/ta_func/ta_CDLINNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLINNECK.o ../../../../../src/ta_func/ta_CDLINNECK.c + +../../../../../temp/cmr/ta_CDLINVERTEDHAMMER.o: ../../../../../src/ta_func/ta_CDLINVERTEDHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLINVERTEDHAMMER.o ../../../../../src/ta_func/ta_CDLINVERTEDHAMMER.c + +../../../../../temp/cmr/ta_CDLKICKING.o: ../../../../../src/ta_func/ta_CDLKICKING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLKICKING.o ../../../../../src/ta_func/ta_CDLKICKING.c + +../../../../../temp/cmr/ta_CDLKICKINGBYLENGTH.o: ../../../../../src/ta_func/ta_CDLKICKINGBYLENGTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLKICKINGBYLENGTH.o ../../../../../src/ta_func/ta_CDLKICKINGBYLENGTH.c + +../../../../../temp/cmr/ta_CDLLADDERBOTTOM.o: ../../../../../src/ta_func/ta_CDLLADDERBOTTOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLLADDERBOTTOM.o ../../../../../src/ta_func/ta_CDLLADDERBOTTOM.c + +../../../../../temp/cmr/ta_CDLLONGLEGGEDDOJI.o: ../../../../../src/ta_func/ta_CDLLONGLEGGEDDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLLONGLEGGEDDOJI.o ../../../../../src/ta_func/ta_CDLLONGLEGGEDDOJI.c + +../../../../../temp/cmr/ta_CDLLONGLINE.o: ../../../../../src/ta_func/ta_CDLLONGLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLLONGLINE.o ../../../../../src/ta_func/ta_CDLLONGLINE.c + +../../../../../temp/cmr/ta_CDLMARUBOZU.o: ../../../../../src/ta_func/ta_CDLMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLMARUBOZU.o ../../../../../src/ta_func/ta_CDLMARUBOZU.c + +../../../../../temp/cmr/ta_CDLMATCHINGLOW.o: ../../../../../src/ta_func/ta_CDLMATCHINGLOW.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLMATCHINGLOW.o ../../../../../src/ta_func/ta_CDLMATCHINGLOW.c + +../../../../../temp/cmr/ta_CDLMATHOLD.o: ../../../../../src/ta_func/ta_CDLMATHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLMATHOLD.o ../../../../../src/ta_func/ta_CDLMATHOLD.c + +../../../../../temp/cmr/ta_CDLMORNINGDOJISTAR.o: ../../../../../src/ta_func/ta_CDLMORNINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLMORNINGDOJISTAR.o ../../../../../src/ta_func/ta_CDLMORNINGDOJISTAR.c + +../../../../../temp/cmr/ta_CDLMORNINGSTAR.o: ../../../../../src/ta_func/ta_CDLMORNINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLMORNINGSTAR.o ../../../../../src/ta_func/ta_CDLMORNINGSTAR.c + +../../../../../temp/cmr/ta_CDLONNECK.o: ../../../../../src/ta_func/ta_CDLONNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLONNECK.o ../../../../../src/ta_func/ta_CDLONNECK.c + +../../../../../temp/cmr/ta_CDLPIERCING.o: ../../../../../src/ta_func/ta_CDLPIERCING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLPIERCING.o ../../../../../src/ta_func/ta_CDLPIERCING.c + +../../../../../temp/cmr/ta_CDLRICKSHAWMAN.o: ../../../../../src/ta_func/ta_CDLRICKSHAWMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLRICKSHAWMAN.o ../../../../../src/ta_func/ta_CDLRICKSHAWMAN.c + +../../../../../temp/cmr/ta_CDLRISEFALL3METHODS.o: ../../../../../src/ta_func/ta_CDLRISEFALL3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLRISEFALL3METHODS.o ../../../../../src/ta_func/ta_CDLRISEFALL3METHODS.c + +../../../../../temp/cmr/ta_CDLSEPARATINGLINES.o: ../../../../../src/ta_func/ta_CDLSEPARATINGLINES.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLSEPARATINGLINES.o ../../../../../src/ta_func/ta_CDLSEPARATINGLINES.c + +../../../../../temp/cmr/ta_CDLSHOOTINGSTAR.o: ../../../../../src/ta_func/ta_CDLSHOOTINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLSHOOTINGSTAR.o ../../../../../src/ta_func/ta_CDLSHOOTINGSTAR.c + +../../../../../temp/cmr/ta_CDLSHORTLINE.o: ../../../../../src/ta_func/ta_CDLSHORTLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLSHORTLINE.o ../../../../../src/ta_func/ta_CDLSHORTLINE.c + +../../../../../temp/cmr/ta_CDLSPINNINGTOP.o: ../../../../../src/ta_func/ta_CDLSPINNINGTOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLSPINNINGTOP.o ../../../../../src/ta_func/ta_CDLSPINNINGTOP.c + +../../../../../temp/cmr/ta_CDLSTALLEDPATTERN.o: ../../../../../src/ta_func/ta_CDLSTALLEDPATTERN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLSTALLEDPATTERN.o ../../../../../src/ta_func/ta_CDLSTALLEDPATTERN.c + +../../../../../temp/cmr/ta_CDLSTICKSANDWICH.o: ../../../../../src/ta_func/ta_CDLSTICKSANDWICH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLSTICKSANDWICH.o ../../../../../src/ta_func/ta_CDLSTICKSANDWICH.c + +../../../../../temp/cmr/ta_CDLTAKURI.o: ../../../../../src/ta_func/ta_CDLTAKURI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLTAKURI.o ../../../../../src/ta_func/ta_CDLTAKURI.c + +../../../../../temp/cmr/ta_CDLTASUKIGAP.o: ../../../../../src/ta_func/ta_CDLTASUKIGAP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLTASUKIGAP.o ../../../../../src/ta_func/ta_CDLTASUKIGAP.c + +../../../../../temp/cmr/ta_CDLTHRUSTING.o: ../../../../../src/ta_func/ta_CDLTHRUSTING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLTHRUSTING.o ../../../../../src/ta_func/ta_CDLTHRUSTING.c + +../../../../../temp/cmr/ta_CDLTRISTAR.o: ../../../../../src/ta_func/ta_CDLTRISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLTRISTAR.o ../../../../../src/ta_func/ta_CDLTRISTAR.c + +../../../../../temp/cmr/ta_CDLUNIQUE3RIVER.o: ../../../../../src/ta_func/ta_CDLUNIQUE3RIVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLUNIQUE3RIVER.o ../../../../../src/ta_func/ta_CDLUNIQUE3RIVER.c + +../../../../../temp/cmr/ta_CDLUPSIDEGAP2CROWS.o: ../../../../../src/ta_func/ta_CDLUPSIDEGAP2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLUPSIDEGAP2CROWS.o ../../../../../src/ta_func/ta_CDLUPSIDEGAP2CROWS.c + +../../../../../temp/cmr/ta_CDLXSIDEGAP3METHODS.o: ../../../../../src/ta_func/ta_CDLXSIDEGAP3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLXSIDEGAP3METHODS.o ../../../../../src/ta_func/ta_CDLXSIDEGAP3METHODS.c + +../../../../../temp/cmr/ta_CEIL.o: ../../../../../src/ta_func/ta_CEIL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CEIL.o ../../../../../src/ta_func/ta_CEIL.c + +../../../../../temp/cmr/ta_CMO.o: ../../../../../src/ta_func/ta_CMO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CMO.o ../../../../../src/ta_func/ta_CMO.c + +../../../../../temp/cmr/ta_CORREL.o: ../../../../../src/ta_func/ta_CORREL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CORREL.o ../../../../../src/ta_func/ta_CORREL.c + +../../../../../temp/cmr/ta_COS.o: ../../../../../src/ta_func/ta_COS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_COS.o ../../../../../src/ta_func/ta_COS.c + +../../../../../temp/cmr/ta_COSH.o: ../../../../../src/ta_func/ta_COSH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_COSH.o ../../../../../src/ta_func/ta_COSH.c + +../../../../../temp/cmr/ta_DEMA.o: ../../../../../src/ta_func/ta_DEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_DEMA.o ../../../../../src/ta_func/ta_DEMA.c + +../../../../../temp/cmr/ta_DIV.o: ../../../../../src/ta_func/ta_DIV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_DIV.o ../../../../../src/ta_func/ta_DIV.c + +../../../../../temp/cmr/ta_DX.o: ../../../../../src/ta_func/ta_DX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_DX.o ../../../../../src/ta_func/ta_DX.c + +../../../../../temp/cmr/ta_EMA.o: ../../../../../src/ta_func/ta_EMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_EMA.o ../../../../../src/ta_func/ta_EMA.c + +../../../../../temp/cmr/ta_EXP.o: ../../../../../src/ta_func/ta_EXP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_EXP.o ../../../../../src/ta_func/ta_EXP.c + +../../../../../temp/cmr/ta_FLOOR.o: ../../../../../src/ta_func/ta_FLOOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_FLOOR.o ../../../../../src/ta_func/ta_FLOOR.c + +../../../../../temp/cmr/ta_HT_DCPERIOD.o: ../../../../../src/ta_func/ta_HT_DCPERIOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_HT_DCPERIOD.o ../../../../../src/ta_func/ta_HT_DCPERIOD.c + +../../../../../temp/cmr/ta_HT_DCPHASE.o: ../../../../../src/ta_func/ta_HT_DCPHASE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_HT_DCPHASE.o ../../../../../src/ta_func/ta_HT_DCPHASE.c + +../../../../../temp/cmr/ta_HT_PHASOR.o: ../../../../../src/ta_func/ta_HT_PHASOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_HT_PHASOR.o ../../../../../src/ta_func/ta_HT_PHASOR.c + +../../../../../temp/cmr/ta_HT_SINE.o: ../../../../../src/ta_func/ta_HT_SINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_HT_SINE.o ../../../../../src/ta_func/ta_HT_SINE.c + +../../../../../temp/cmr/ta_HT_TRENDLINE.o: ../../../../../src/ta_func/ta_HT_TRENDLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_HT_TRENDLINE.o ../../../../../src/ta_func/ta_HT_TRENDLINE.c + +../../../../../temp/cmr/ta_HT_TRENDMODE.o: ../../../../../src/ta_func/ta_HT_TRENDMODE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_HT_TRENDMODE.o ../../../../../src/ta_func/ta_HT_TRENDMODE.c + +../../../../../temp/cmr/ta_KAMA.o: ../../../../../src/ta_func/ta_KAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_KAMA.o ../../../../../src/ta_func/ta_KAMA.c + +../../../../../temp/cmr/ta_LINEARREG.o: ../../../../../src/ta_func/ta_LINEARREG.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_LINEARREG.o ../../../../../src/ta_func/ta_LINEARREG.c + +../../../../../temp/cmr/ta_LINEARREG_ANGLE.o: ../../../../../src/ta_func/ta_LINEARREG_ANGLE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_LINEARREG_ANGLE.o ../../../../../src/ta_func/ta_LINEARREG_ANGLE.c + +../../../../../temp/cmr/ta_LINEARREG_INTERCEPT.o: ../../../../../src/ta_func/ta_LINEARREG_INTERCEPT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_LINEARREG_INTERCEPT.o ../../../../../src/ta_func/ta_LINEARREG_INTERCEPT.c + +../../../../../temp/cmr/ta_LINEARREG_SLOPE.o: ../../../../../src/ta_func/ta_LINEARREG_SLOPE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_LINEARREG_SLOPE.o ../../../../../src/ta_func/ta_LINEARREG_SLOPE.c + +../../../../../temp/cmr/ta_LN.o: ../../../../../src/ta_func/ta_LN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_LN.o ../../../../../src/ta_func/ta_LN.c + +../../../../../temp/cmr/ta_LOG10.o: ../../../../../src/ta_func/ta_LOG10.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_LOG10.o ../../../../../src/ta_func/ta_LOG10.c + +../../../../../temp/cmr/ta_MA.o: ../../../../../src/ta_func/ta_MA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_MA.o ../../../../../src/ta_func/ta_MA.c + +../../../../../temp/cmr/ta_MACD.o: ../../../../../src/ta_func/ta_MACD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_MACD.o ../../../../../src/ta_func/ta_MACD.c + +../../../../../temp/cmr/ta_MACDEXT.o: ../../../../../src/ta_func/ta_MACDEXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_MACDEXT.o ../../../../../src/ta_func/ta_MACDEXT.c + +../../../../../temp/cmr/ta_MACDFIX.o: ../../../../../src/ta_func/ta_MACDFIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_MACDFIX.o ../../../../../src/ta_func/ta_MACDFIX.c + +../../../../../temp/cmr/ta_MAMA.o: ../../../../../src/ta_func/ta_MAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_MAMA.o ../../../../../src/ta_func/ta_MAMA.c + +../../../../../temp/cmr/ta_MAVP.o: ../../../../../src/ta_func/ta_MAVP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_MAVP.o ../../../../../src/ta_func/ta_MAVP.c + +../../../../../temp/cmr/ta_MAX.o: ../../../../../src/ta_func/ta_MAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_MAX.o ../../../../../src/ta_func/ta_MAX.c + +../../../../../temp/cmr/ta_MAXINDEX.o: ../../../../../src/ta_func/ta_MAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_MAXINDEX.o ../../../../../src/ta_func/ta_MAXINDEX.c + +../../../../../temp/cmr/ta_MEDPRICE.o: ../../../../../src/ta_func/ta_MEDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_MEDPRICE.o ../../../../../src/ta_func/ta_MEDPRICE.c + +../../../../../temp/cmr/ta_MFI.o: ../../../../../src/ta_func/ta_MFI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_MFI.o ../../../../../src/ta_func/ta_MFI.c + +../../../../../temp/cmr/ta_MIDPOINT.o: ../../../../../src/ta_func/ta_MIDPOINT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_MIDPOINT.o ../../../../../src/ta_func/ta_MIDPOINT.c + +../../../../../temp/cmr/ta_MIDPRICE.o: ../../../../../src/ta_func/ta_MIDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_MIDPRICE.o ../../../../../src/ta_func/ta_MIDPRICE.c + +../../../../../temp/cmr/ta_MIN.o: ../../../../../src/ta_func/ta_MIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_MIN.o ../../../../../src/ta_func/ta_MIN.c + +../../../../../temp/cmr/ta_MININDEX.o: ../../../../../src/ta_func/ta_MININDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_MININDEX.o ../../../../../src/ta_func/ta_MININDEX.c + +../../../../../temp/cmr/ta_MINMAX.o: ../../../../../src/ta_func/ta_MINMAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_MINMAX.o ../../../../../src/ta_func/ta_MINMAX.c + +../../../../../temp/cmr/ta_MINMAXINDEX.o: ../../../../../src/ta_func/ta_MINMAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_MINMAXINDEX.o ../../../../../src/ta_func/ta_MINMAXINDEX.c + +../../../../../temp/cmr/ta_MINUS_DI.o: ../../../../../src/ta_func/ta_MINUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_MINUS_DI.o ../../../../../src/ta_func/ta_MINUS_DI.c + +../../../../../temp/cmr/ta_MINUS_DM.o: ../../../../../src/ta_func/ta_MINUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_MINUS_DM.o ../../../../../src/ta_func/ta_MINUS_DM.c + +../../../../../temp/cmr/ta_MOM.o: ../../../../../src/ta_func/ta_MOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_MOM.o ../../../../../src/ta_func/ta_MOM.c + +../../../../../temp/cmr/ta_MULT.o: ../../../../../src/ta_func/ta_MULT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_MULT.o ../../../../../src/ta_func/ta_MULT.c + +../../../../../temp/cmr/ta_NATR.o: ../../../../../src/ta_func/ta_NATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_NATR.o ../../../../../src/ta_func/ta_NATR.c + +../../../../../temp/cmr/ta_OBV.o: ../../../../../src/ta_func/ta_OBV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_OBV.o ../../../../../src/ta_func/ta_OBV.c + +../../../../../temp/cmr/ta_PLUS_DI.o: ../../../../../src/ta_func/ta_PLUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_PLUS_DI.o ../../../../../src/ta_func/ta_PLUS_DI.c + +../../../../../temp/cmr/ta_PLUS_DM.o: ../../../../../src/ta_func/ta_PLUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_PLUS_DM.o ../../../../../src/ta_func/ta_PLUS_DM.c + +../../../../../temp/cmr/ta_PPO.o: ../../../../../src/ta_func/ta_PPO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_PPO.o ../../../../../src/ta_func/ta_PPO.c + +../../../../../temp/cmr/ta_ROC.o: ../../../../../src/ta_func/ta_ROC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_ROC.o ../../../../../src/ta_func/ta_ROC.c + +../../../../../temp/cmr/ta_ROCP.o: ../../../../../src/ta_func/ta_ROCP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_ROCP.o ../../../../../src/ta_func/ta_ROCP.c + +../../../../../temp/cmr/ta_ROCR.o: ../../../../../src/ta_func/ta_ROCR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_ROCR.o ../../../../../src/ta_func/ta_ROCR.c + +../../../../../temp/cmr/ta_ROCR100.o: ../../../../../src/ta_func/ta_ROCR100.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_ROCR100.o ../../../../../src/ta_func/ta_ROCR100.c + +../../../../../temp/cmr/ta_RSI.o: ../../../../../src/ta_func/ta_RSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_RSI.o ../../../../../src/ta_func/ta_RSI.c + +../../../../../temp/cmr/ta_SAR.o: ../../../../../src/ta_func/ta_SAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_SAR.o ../../../../../src/ta_func/ta_SAR.c + +../../../../../temp/cmr/ta_SAREXT.o: ../../../../../src/ta_func/ta_SAREXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_SAREXT.o ../../../../../src/ta_func/ta_SAREXT.c + +../../../../../temp/cmr/ta_SIN.o: ../../../../../src/ta_func/ta_SIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_SIN.o ../../../../../src/ta_func/ta_SIN.c + +../../../../../temp/cmr/ta_SINH.o: ../../../../../src/ta_func/ta_SINH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_SINH.o ../../../../../src/ta_func/ta_SINH.c + +../../../../../temp/cmr/ta_SMA.o: ../../../../../src/ta_func/ta_SMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_SMA.o ../../../../../src/ta_func/ta_SMA.c + +../../../../../temp/cmr/ta_SQRT.o: ../../../../../src/ta_func/ta_SQRT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_SQRT.o ../../../../../src/ta_func/ta_SQRT.c + +../../../../../temp/cmr/ta_STDDEV.o: ../../../../../src/ta_func/ta_STDDEV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_STDDEV.o ../../../../../src/ta_func/ta_STDDEV.c + +../../../../../temp/cmr/ta_STOCH.o: ../../../../../src/ta_func/ta_STOCH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_STOCH.o ../../../../../src/ta_func/ta_STOCH.c + +../../../../../temp/cmr/ta_STOCHF.o: ../../../../../src/ta_func/ta_STOCHF.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_STOCHF.o ../../../../../src/ta_func/ta_STOCHF.c + +../../../../../temp/cmr/ta_STOCHRSI.o: ../../../../../src/ta_func/ta_STOCHRSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_STOCHRSI.o ../../../../../src/ta_func/ta_STOCHRSI.c + +../../../../../temp/cmr/ta_SUB.o: ../../../../../src/ta_func/ta_SUB.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_SUB.o ../../../../../src/ta_func/ta_SUB.c + +../../../../../temp/cmr/ta_SUM.o: ../../../../../src/ta_func/ta_SUM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_SUM.o ../../../../../src/ta_func/ta_SUM.c + +../../../../../temp/cmr/ta_T3.o: ../../../../../src/ta_func/ta_T3.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_T3.o ../../../../../src/ta_func/ta_T3.c + +../../../../../temp/cmr/ta_TAN.o: ../../../../../src/ta_func/ta_TAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_TAN.o ../../../../../src/ta_func/ta_TAN.c + +../../../../../temp/cmr/ta_TANH.o: ../../../../../src/ta_func/ta_TANH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_TANH.o ../../../../../src/ta_func/ta_TANH.c + +../../../../../temp/cmr/ta_TEMA.o: ../../../../../src/ta_func/ta_TEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_TEMA.o ../../../../../src/ta_func/ta_TEMA.c + +../../../../../temp/cmr/ta_TRANGE.o: ../../../../../src/ta_func/ta_TRANGE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_TRANGE.o ../../../../../src/ta_func/ta_TRANGE.c + +../../../../../temp/cmr/ta_TRIMA.o: ../../../../../src/ta_func/ta_TRIMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_TRIMA.o ../../../../../src/ta_func/ta_TRIMA.c + +../../../../../temp/cmr/ta_TRIX.o: ../../../../../src/ta_func/ta_TRIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_TRIX.o ../../../../../src/ta_func/ta_TRIX.c + +../../../../../temp/cmr/ta_TSF.o: ../../../../../src/ta_func/ta_TSF.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_TSF.o ../../../../../src/ta_func/ta_TSF.c + +../../../../../temp/cmr/ta_TYPPRICE.o: ../../../../../src/ta_func/ta_TYPPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_TYPPRICE.o ../../../../../src/ta_func/ta_TYPPRICE.c + +../../../../../temp/cmr/ta_ULTOSC.o: ../../../../../src/ta_func/ta_ULTOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_ULTOSC.o ../../../../../src/ta_func/ta_ULTOSC.c + +../../../../../temp/cmr/ta_VAR.o: ../../../../../src/ta_func/ta_VAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_VAR.o ../../../../../src/ta_func/ta_VAR.c + +../../../../../temp/cmr/ta_WCLPRICE.o: ../../../../../src/ta_func/ta_WCLPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_WCLPRICE.o ../../../../../src/ta_func/ta_WCLPRICE.c + +../../../../../temp/cmr/ta_WILLR.o: ../../../../../src/ta_func/ta_WILLR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_WILLR.o ../../../../../src/ta_func/ta_WILLR.c + +../../../../../temp/cmr/ta_WMA.o: ../../../../../src/ta_func/ta_WMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_WMA.o ../../../../../src/ta_func/ta_WMA.c + diff --git a/make/cmr/linux/g++/ta_libc/Makefile b/make/cmr/linux/g++/ta_libc/Makefile new file mode 100644 index 000000000..f123c7513 --- /dev/null +++ b/make/cmr/linux/g++/ta_libc/Makefile @@ -0,0 +1,1053 @@ +############################################################################# +# Makefile for building ../../../../../lib/libta_libc_cmr.a +# Generated by tmake; +# Project: ta_libc/ta_libc +# Template: lib +############################################################################# + +####### Compiler, tools and options + +CC = gcc +CXX = g++ +CFLAGS = -pipe -fPIC -Wall -W -O2 -fno-strict-aliasing -D_REENTRANT -DQT_THREAD_SUPPORT -DNO_DEBUG +CXXFLAGS= -pipe -fPIC -Wall -W -O2 -fno-strict-aliasing -D_REENTRANT -DQT_THREAD_SUPPORT -DNO_DEBUG +INCPATH = -I../../../../../src/ta_common -I../../../../../include -I../../../../../src/ta_abstract -I../../../../../src/ta_abstract/tables -I../../../../../src/ta_abstract/frames -I$(QTDIR)/include +AR = ar cqs +RANLIB = +MOC = $(QTDIR)/bin/moc +UIC = $(QTDIR)/bin/uic + +TAR = tar -cf +GZIP = gzip -9f + +####### Support for 64-bit systems +ifeq ($(shell uname -m), x86_64) + CFLAGS += -march=x86-64 -m64 -D__64BIT__ + CXXFLAGS += -march=x86-64 -m64 -D__64BIT__ +endif + +####### Apply additional overruling user flags, if any +CFLAGS += $(CUSERFLAGS) +CXXFLAGS += $(CUSERFLAGS) + +####### Files + +HEADERS = +SOURCES = ../../../../../src/ta_common/ta_global.c \ + ../../../../../src/ta_common/ta_retcode.c \ + ../../../../../src/ta_common/ta_version.c \ + ../../../../../src/ta_abstract/ta_abstract.c \ + ../../../../../src/ta_abstract/ta_def_ui.c \ + ../../../../../src/ta_abstract/ta_func_api.c \ + ../../../../../src/ta_abstract/ta_group_idx.c \ + ../../../../../src/ta_abstract/frames/ta_frame.c \ + ../../../../../src/ta_abstract/tables/table_a.c \ + ../../../../../src/ta_abstract/tables/table_b.c \ + ../../../../../src/ta_abstract/tables/table_c.c \ + ../../../../../src/ta_abstract/tables/table_d.c \ + ../../../../../src/ta_abstract/tables/table_e.c \ + ../../../../../src/ta_abstract/tables/table_f.c \ + ../../../../../src/ta_abstract/tables/table_g.c \ + ../../../../../src/ta_abstract/tables/table_h.c \ + ../../../../../src/ta_abstract/tables/table_i.c \ + ../../../../../src/ta_abstract/tables/table_j.c \ + ../../../../../src/ta_abstract/tables/table_k.c \ + ../../../../../src/ta_abstract/tables/table_l.c \ + ../../../../../src/ta_abstract/tables/table_m.c \ + ../../../../../src/ta_abstract/tables/table_n.c \ + ../../../../../src/ta_abstract/tables/table_o.c \ + ../../../../../src/ta_abstract/tables/table_p.c \ + ../../../../../src/ta_abstract/tables/table_q.c \ + ../../../../../src/ta_abstract/tables/table_r.c \ + ../../../../../src/ta_abstract/tables/table_s.c \ + ../../../../../src/ta_abstract/tables/table_t.c \ + ../../../../../src/ta_abstract/tables/table_u.c \ + ../../../../../src/ta_abstract/tables/table_v.c \ + ../../../../../src/ta_abstract/tables/table_w.c \ + ../../../../../src/ta_abstract/tables/table_x.c \ + ../../../../../src/ta_abstract/tables/table_y.c \ + ../../../../../src/ta_abstract/tables/table_z.c \ + ../../../../../src/ta_func/ta_utility.c \ + ../../../../../src/ta_func/ta_ACOS.c \ + ../../../../../src/ta_func/ta_AD.c \ + ../../../../../src/ta_func/ta_ADD.c \ + ../../../../../src/ta_func/ta_ADOSC.c \ + ../../../../../src/ta_func/ta_ADX.c \ + ../../../../../src/ta_func/ta_ADXR.c \ + ../../../../../src/ta_func/ta_APO.c \ + ../../../../../src/ta_func/ta_AROON.c \ + ../../../../../src/ta_func/ta_AROONOSC.c \ + ../../../../../src/ta_func/ta_ASIN.c \ + ../../../../../src/ta_func/ta_ATAN.c \ + ../../../../../src/ta_func/ta_ATR.c \ + ../../../../../src/ta_func/ta_AVGPRICE.c \ + ../../../../../src/ta_func/ta_BBANDS.c \ + ../../../../../src/ta_func/ta_BETA.c \ + ../../../../../src/ta_func/ta_BOP.c \ + ../../../../../src/ta_func/ta_CCI.c \ + ../../../../../src/ta_func/ta_CDL2CROWS.c \ + ../../../../../src/ta_func/ta_CDL3BLACKCROWS.c \ + ../../../../../src/ta_func/ta_CDL3INSIDE.c \ + ../../../../../src/ta_func/ta_CDL3LINESTRIKE.c \ + ../../../../../src/ta_func/ta_CDL3OUTSIDE.c \ + ../../../../../src/ta_func/ta_CDL3STARSINSOUTH.c \ + ../../../../../src/ta_func/ta_CDL3WHITESOLDIERS.c \ + ../../../../../src/ta_func/ta_CDLABANDONEDBABY.c \ + ../../../../../src/ta_func/ta_CDLADVANCEBLOCK.c \ + ../../../../../src/ta_func/ta_CDLBELTHOLD.c \ + ../../../../../src/ta_func/ta_CDLBREAKAWAY.c \ + ../../../../../src/ta_func/ta_CDLCLOSINGMARUBOZU.c \ + ../../../../../src/ta_func/ta_CDLCONCEALBABYSWALL.c \ + ../../../../../src/ta_func/ta_CDLCOUNTERATTACK.c \ + ../../../../../src/ta_func/ta_CDLDARKCLOUDCOVER.c \ + ../../../../../src/ta_func/ta_CDLDOJI.c \ + ../../../../../src/ta_func/ta_CDLDOJISTAR.c \ + ../../../../../src/ta_func/ta_CDLDRAGONFLYDOJI.c \ + ../../../../../src/ta_func/ta_CDLENGULFING.c \ + ../../../../../src/ta_func/ta_CDLEVENINGDOJISTAR.c \ + ../../../../../src/ta_func/ta_CDLEVENINGSTAR.c \ + ../../../../../src/ta_func/ta_CDLGAPSIDESIDEWHITE.c \ + ../../../../../src/ta_func/ta_CDLGRAVESTONEDOJI.c \ + ../../../../../src/ta_func/ta_CDLHAMMER.c \ + ../../../../../src/ta_func/ta_CDLHANGINGMAN.c \ + ../../../../../src/ta_func/ta_CDLHARAMI.c \ + ../../../../../src/ta_func/ta_CDLHARAMICROSS.c \ + ../../../../../src/ta_func/ta_CDLHIGHWAVE.c \ + ../../../../../src/ta_func/ta_CDLHIKKAKE.c \ + ../../../../../src/ta_func/ta_CDLHIKKAKEMOD.c \ + ../../../../../src/ta_func/ta_CDLHOMINGPIGEON.c \ + ../../../../../src/ta_func/ta_CDLIDENTICAL3CROWS.c \ + ../../../../../src/ta_func/ta_CDLINNECK.c \ + ../../../../../src/ta_func/ta_CDLINVERTEDHAMMER.c \ + ../../../../../src/ta_func/ta_CDLKICKING.c \ + ../../../../../src/ta_func/ta_CDLKICKINGBYLENGTH.c \ + ../../../../../src/ta_func/ta_CDLLADDERBOTTOM.c \ + ../../../../../src/ta_func/ta_CDLLONGLEGGEDDOJI.c \ + ../../../../../src/ta_func/ta_CDLLONGLINE.c \ + ../../../../../src/ta_func/ta_CDLMARUBOZU.c \ + ../../../../../src/ta_func/ta_CDLMATCHINGLOW.c \ + ../../../../../src/ta_func/ta_CDLMATHOLD.c \ + ../../../../../src/ta_func/ta_CDLMORNINGDOJISTAR.c \ + ../../../../../src/ta_func/ta_CDLMORNINGSTAR.c \ + ../../../../../src/ta_func/ta_CDLONNECK.c \ + ../../../../../src/ta_func/ta_CDLPIERCING.c \ + ../../../../../src/ta_func/ta_CDLRICKSHAWMAN.c \ + ../../../../../src/ta_func/ta_CDLRISEFALL3METHODS.c \ + ../../../../../src/ta_func/ta_CDLSEPARATINGLINES.c \ + ../../../../../src/ta_func/ta_CDLSHOOTINGSTAR.c \ + ../../../../../src/ta_func/ta_CDLSHORTLINE.c \ + ../../../../../src/ta_func/ta_CDLSPINNINGTOP.c \ + ../../../../../src/ta_func/ta_CDLSTALLEDPATTERN.c \ + ../../../../../src/ta_func/ta_CDLSTICKSANDWICH.c \ + ../../../../../src/ta_func/ta_CDLTAKURI.c \ + ../../../../../src/ta_func/ta_CDLTASUKIGAP.c \ + ../../../../../src/ta_func/ta_CDLTHRUSTING.c \ + ../../../../../src/ta_func/ta_CDLTRISTAR.c \ + ../../../../../src/ta_func/ta_CDLUNIQUE3RIVER.c \ + ../../../../../src/ta_func/ta_CDLUPSIDEGAP2CROWS.c \ + ../../../../../src/ta_func/ta_CDLXSIDEGAP3METHODS.c \ + ../../../../../src/ta_func/ta_CEIL.c \ + ../../../../../src/ta_func/ta_CMO.c \ + ../../../../../src/ta_func/ta_CORREL.c \ + ../../../../../src/ta_func/ta_COS.c \ + ../../../../../src/ta_func/ta_COSH.c \ + ../../../../../src/ta_func/ta_DEMA.c \ + ../../../../../src/ta_func/ta_DIV.c \ + ../../../../../src/ta_func/ta_DX.c \ + ../../../../../src/ta_func/ta_EMA.c \ + ../../../../../src/ta_func/ta_EXP.c \ + ../../../../../src/ta_func/ta_FLOOR.c \ + ../../../../../src/ta_func/ta_HT_DCPERIOD.c \ + ../../../../../src/ta_func/ta_HT_DCPHASE.c \ + ../../../../../src/ta_func/ta_HT_PHASOR.c \ + ../../../../../src/ta_func/ta_HT_SINE.c \ + ../../../../../src/ta_func/ta_HT_TRENDLINE.c \ + ../../../../../src/ta_func/ta_HT_TRENDMODE.c \ + ../../../../../src/ta_func/ta_KAMA.c \ + ../../../../../src/ta_func/ta_LINEARREG.c \ + ../../../../../src/ta_func/ta_LINEARREG_ANGLE.c \ + ../../../../../src/ta_func/ta_LINEARREG_INTERCEPT.c \ + ../../../../../src/ta_func/ta_LINEARREG_SLOPE.c \ + ../../../../../src/ta_func/ta_LN.c \ + ../../../../../src/ta_func/ta_LOG10.c \ + ../../../../../src/ta_func/ta_MA.c \ + ../../../../../src/ta_func/ta_MACD.c \ + ../../../../../src/ta_func/ta_MACDEXT.c \ + ../../../../../src/ta_func/ta_MACDFIX.c \ + ../../../../../src/ta_func/ta_MAMA.c \ + ../../../../../src/ta_func/ta_MAVP.c \ + ../../../../../src/ta_func/ta_MAX.c \ + ../../../../../src/ta_func/ta_MAXINDEX.c \ + ../../../../../src/ta_func/ta_MEDPRICE.c \ + ../../../../../src/ta_func/ta_MFI.c \ + ../../../../../src/ta_func/ta_MIDPOINT.c \ + ../../../../../src/ta_func/ta_MIDPRICE.c \ + ../../../../../src/ta_func/ta_MIN.c \ + ../../../../../src/ta_func/ta_MININDEX.c \ + ../../../../../src/ta_func/ta_MINMAX.c \ + ../../../../../src/ta_func/ta_MINMAXINDEX.c \ + ../../../../../src/ta_func/ta_MINUS_DI.c \ + ../../../../../src/ta_func/ta_MINUS_DM.c \ + ../../../../../src/ta_func/ta_MOM.c \ + ../../../../../src/ta_func/ta_MULT.c \ + ../../../../../src/ta_func/ta_NATR.c \ + ../../../../../src/ta_func/ta_OBV.c \ + ../../../../../src/ta_func/ta_PLUS_DI.c \ + ../../../../../src/ta_func/ta_PLUS_DM.c \ + ../../../../../src/ta_func/ta_PPO.c \ + ../../../../../src/ta_func/ta_ROC.c \ + ../../../../../src/ta_func/ta_ROCP.c \ + ../../../../../src/ta_func/ta_ROCR.c \ + ../../../../../src/ta_func/ta_ROCR100.c \ + ../../../../../src/ta_func/ta_RSI.c \ + ../../../../../src/ta_func/ta_SAR.c \ + ../../../../../src/ta_func/ta_SAREXT.c \ + ../../../../../src/ta_func/ta_SIN.c \ + ../../../../../src/ta_func/ta_SINH.c \ + ../../../../../src/ta_func/ta_SMA.c \ + ../../../../../src/ta_func/ta_SQRT.c \ + ../../../../../src/ta_func/ta_STDDEV.c \ + ../../../../../src/ta_func/ta_STOCH.c \ + ../../../../../src/ta_func/ta_STOCHF.c \ + ../../../../../src/ta_func/ta_STOCHRSI.c \ + ../../../../../src/ta_func/ta_SUB.c \ + ../../../../../src/ta_func/ta_SUM.c \ + ../../../../../src/ta_func/ta_T3.c \ + ../../../../../src/ta_func/ta_TAN.c \ + ../../../../../src/ta_func/ta_TANH.c \ + ../../../../../src/ta_func/ta_TEMA.c \ + ../../../../../src/ta_func/ta_TRANGE.c \ + ../../../../../src/ta_func/ta_TRIMA.c \ + ../../../../../src/ta_func/ta_TRIX.c \ + ../../../../../src/ta_func/ta_TSF.c \ + ../../../../../src/ta_func/ta_TYPPRICE.c \ + ../../../../../src/ta_func/ta_ULTOSC.c \ + ../../../../../src/ta_func/ta_VAR.c \ + ../../../../../src/ta_func/ta_WCLPRICE.c \ + ../../../../../src/ta_func/ta_WILLR.c \ + ../../../../../src/ta_func/ta_WMA.c +OBJECTS = ../../../../../temp/cmr/ta_global.o \ + ../../../../../temp/cmr/ta_retcode.o \ + ../../../../../temp/cmr/ta_version.o \ + ../../../../../temp/cmr/ta_abstract.o \ + ../../../../../temp/cmr/ta_def_ui.o \ + ../../../../../temp/cmr/ta_func_api.o \ + ../../../../../temp/cmr/ta_group_idx.o \ + ../../../../../temp/cmr/ta_frame.o \ + ../../../../../temp/cmr/table_a.o \ + ../../../../../temp/cmr/table_b.o \ + ../../../../../temp/cmr/table_c.o \ + ../../../../../temp/cmr/table_d.o \ + ../../../../../temp/cmr/table_e.o \ + ../../../../../temp/cmr/table_f.o \ + ../../../../../temp/cmr/table_g.o \ + ../../../../../temp/cmr/table_h.o \ + ../../../../../temp/cmr/table_i.o \ + ../../../../../temp/cmr/table_j.o \ + ../../../../../temp/cmr/table_k.o \ + ../../../../../temp/cmr/table_l.o \ + ../../../../../temp/cmr/table_m.o \ + ../../../../../temp/cmr/table_n.o \ + ../../../../../temp/cmr/table_o.o \ + ../../../../../temp/cmr/table_p.o \ + ../../../../../temp/cmr/table_q.o \ + ../../../../../temp/cmr/table_r.o \ + ../../../../../temp/cmr/table_s.o \ + ../../../../../temp/cmr/table_t.o \ + ../../../../../temp/cmr/table_u.o \ + ../../../../../temp/cmr/table_v.o \ + ../../../../../temp/cmr/table_w.o \ + ../../../../../temp/cmr/table_x.o \ + ../../../../../temp/cmr/table_y.o \ + ../../../../../temp/cmr/table_z.o \ + ../../../../../temp/cmr/ta_utility.o \ + ../../../../../temp/cmr/ta_ACOS.o \ + ../../../../../temp/cmr/ta_AD.o \ + ../../../../../temp/cmr/ta_ADD.o \ + ../../../../../temp/cmr/ta_ADOSC.o \ + ../../../../../temp/cmr/ta_ADX.o \ + ../../../../../temp/cmr/ta_ADXR.o \ + ../../../../../temp/cmr/ta_APO.o \ + ../../../../../temp/cmr/ta_AROON.o \ + ../../../../../temp/cmr/ta_AROONOSC.o \ + ../../../../../temp/cmr/ta_ASIN.o \ + ../../../../../temp/cmr/ta_ATAN.o \ + ../../../../../temp/cmr/ta_ATR.o \ + ../../../../../temp/cmr/ta_AVGPRICE.o \ + ../../../../../temp/cmr/ta_BBANDS.o \ + ../../../../../temp/cmr/ta_BETA.o \ + ../../../../../temp/cmr/ta_BOP.o \ + ../../../../../temp/cmr/ta_CCI.o \ + ../../../../../temp/cmr/ta_CDL2CROWS.o \ + ../../../../../temp/cmr/ta_CDL3BLACKCROWS.o \ + ../../../../../temp/cmr/ta_CDL3INSIDE.o \ + ../../../../../temp/cmr/ta_CDL3LINESTRIKE.o \ + ../../../../../temp/cmr/ta_CDL3OUTSIDE.o \ + ../../../../../temp/cmr/ta_CDL3STARSINSOUTH.o \ + ../../../../../temp/cmr/ta_CDL3WHITESOLDIERS.o \ + ../../../../../temp/cmr/ta_CDLABANDONEDBABY.o \ + ../../../../../temp/cmr/ta_CDLADVANCEBLOCK.o \ + ../../../../../temp/cmr/ta_CDLBELTHOLD.o \ + ../../../../../temp/cmr/ta_CDLBREAKAWAY.o \ + ../../../../../temp/cmr/ta_CDLCLOSINGMARUBOZU.o \ + ../../../../../temp/cmr/ta_CDLCONCEALBABYSWALL.o \ + ../../../../../temp/cmr/ta_CDLCOUNTERATTACK.o \ + ../../../../../temp/cmr/ta_CDLDARKCLOUDCOVER.o \ + ../../../../../temp/cmr/ta_CDLDOJI.o \ + ../../../../../temp/cmr/ta_CDLDOJISTAR.o \ + ../../../../../temp/cmr/ta_CDLDRAGONFLYDOJI.o \ + ../../../../../temp/cmr/ta_CDLENGULFING.o \ + ../../../../../temp/cmr/ta_CDLEVENINGDOJISTAR.o \ + ../../../../../temp/cmr/ta_CDLEVENINGSTAR.o \ + ../../../../../temp/cmr/ta_CDLGAPSIDESIDEWHITE.o \ + ../../../../../temp/cmr/ta_CDLGRAVESTONEDOJI.o \ + ../../../../../temp/cmr/ta_CDLHAMMER.o \ + ../../../../../temp/cmr/ta_CDLHANGINGMAN.o \ + ../../../../../temp/cmr/ta_CDLHARAMI.o \ + ../../../../../temp/cmr/ta_CDLHARAMICROSS.o \ + ../../../../../temp/cmr/ta_CDLHIGHWAVE.o \ + ../../../../../temp/cmr/ta_CDLHIKKAKE.o \ + ../../../../../temp/cmr/ta_CDLHIKKAKEMOD.o \ + ../../../../../temp/cmr/ta_CDLHOMINGPIGEON.o \ + ../../../../../temp/cmr/ta_CDLIDENTICAL3CROWS.o \ + ../../../../../temp/cmr/ta_CDLINNECK.o \ + ../../../../../temp/cmr/ta_CDLINVERTEDHAMMER.o \ + ../../../../../temp/cmr/ta_CDLKICKING.o \ + ../../../../../temp/cmr/ta_CDLKICKINGBYLENGTH.o \ + ../../../../../temp/cmr/ta_CDLLADDERBOTTOM.o \ + ../../../../../temp/cmr/ta_CDLLONGLEGGEDDOJI.o \ + ../../../../../temp/cmr/ta_CDLLONGLINE.o \ + ../../../../../temp/cmr/ta_CDLMARUBOZU.o \ + ../../../../../temp/cmr/ta_CDLMATCHINGLOW.o \ + ../../../../../temp/cmr/ta_CDLMATHOLD.o \ + ../../../../../temp/cmr/ta_CDLMORNINGDOJISTAR.o \ + ../../../../../temp/cmr/ta_CDLMORNINGSTAR.o \ + ../../../../../temp/cmr/ta_CDLONNECK.o \ + ../../../../../temp/cmr/ta_CDLPIERCING.o \ + ../../../../../temp/cmr/ta_CDLRICKSHAWMAN.o \ + ../../../../../temp/cmr/ta_CDLRISEFALL3METHODS.o \ + ../../../../../temp/cmr/ta_CDLSEPARATINGLINES.o \ + ../../../../../temp/cmr/ta_CDLSHOOTINGSTAR.o \ + ../../../../../temp/cmr/ta_CDLSHORTLINE.o \ + ../../../../../temp/cmr/ta_CDLSPINNINGTOP.o \ + ../../../../../temp/cmr/ta_CDLSTALLEDPATTERN.o \ + ../../../../../temp/cmr/ta_CDLSTICKSANDWICH.o \ + ../../../../../temp/cmr/ta_CDLTAKURI.o \ + ../../../../../temp/cmr/ta_CDLTASUKIGAP.o \ + ../../../../../temp/cmr/ta_CDLTHRUSTING.o \ + ../../../../../temp/cmr/ta_CDLTRISTAR.o \ + ../../../../../temp/cmr/ta_CDLUNIQUE3RIVER.o \ + ../../../../../temp/cmr/ta_CDLUPSIDEGAP2CROWS.o \ + ../../../../../temp/cmr/ta_CDLXSIDEGAP3METHODS.o \ + ../../../../../temp/cmr/ta_CEIL.o \ + ../../../../../temp/cmr/ta_CMO.o \ + ../../../../../temp/cmr/ta_CORREL.o \ + ../../../../../temp/cmr/ta_COS.o \ + ../../../../../temp/cmr/ta_COSH.o \ + ../../../../../temp/cmr/ta_DEMA.o \ + ../../../../../temp/cmr/ta_DIV.o \ + ../../../../../temp/cmr/ta_DX.o \ + ../../../../../temp/cmr/ta_EMA.o \ + ../../../../../temp/cmr/ta_EXP.o \ + ../../../../../temp/cmr/ta_FLOOR.o \ + ../../../../../temp/cmr/ta_HT_DCPERIOD.o \ + ../../../../../temp/cmr/ta_HT_DCPHASE.o \ + ../../../../../temp/cmr/ta_HT_PHASOR.o \ + ../../../../../temp/cmr/ta_HT_SINE.o \ + ../../../../../temp/cmr/ta_HT_TRENDLINE.o \ + ../../../../../temp/cmr/ta_HT_TRENDMODE.o \ + ../../../../../temp/cmr/ta_KAMA.o \ + ../../../../../temp/cmr/ta_LINEARREG.o \ + ../../../../../temp/cmr/ta_LINEARREG_ANGLE.o \ + ../../../../../temp/cmr/ta_LINEARREG_INTERCEPT.o \ + ../../../../../temp/cmr/ta_LINEARREG_SLOPE.o \ + ../../../../../temp/cmr/ta_LN.o \ + ../../../../../temp/cmr/ta_LOG10.o \ + ../../../../../temp/cmr/ta_MA.o \ + ../../../../../temp/cmr/ta_MACD.o \ + ../../../../../temp/cmr/ta_MACDEXT.o \ + ../../../../../temp/cmr/ta_MACDFIX.o \ + ../../../../../temp/cmr/ta_MAMA.o \ + ../../../../../temp/cmr/ta_MAVP.o \ + ../../../../../temp/cmr/ta_MAX.o \ + ../../../../../temp/cmr/ta_MAXINDEX.o \ + ../../../../../temp/cmr/ta_MEDPRICE.o \ + ../../../../../temp/cmr/ta_MFI.o \ + ../../../../../temp/cmr/ta_MIDPOINT.o \ + ../../../../../temp/cmr/ta_MIDPRICE.o \ + ../../../../../temp/cmr/ta_MIN.o \ + ../../../../../temp/cmr/ta_MININDEX.o \ + ../../../../../temp/cmr/ta_MINMAX.o \ + ../../../../../temp/cmr/ta_MINMAXINDEX.o \ + ../../../../../temp/cmr/ta_MINUS_DI.o \ + ../../../../../temp/cmr/ta_MINUS_DM.o \ + ../../../../../temp/cmr/ta_MOM.o \ + ../../../../../temp/cmr/ta_MULT.o \ + ../../../../../temp/cmr/ta_NATR.o \ + ../../../../../temp/cmr/ta_OBV.o \ + ../../../../../temp/cmr/ta_PLUS_DI.o \ + ../../../../../temp/cmr/ta_PLUS_DM.o \ + ../../../../../temp/cmr/ta_PPO.o \ + ../../../../../temp/cmr/ta_ROC.o \ + ../../../../../temp/cmr/ta_ROCP.o \ + ../../../../../temp/cmr/ta_ROCR.o \ + ../../../../../temp/cmr/ta_ROCR100.o \ + ../../../../../temp/cmr/ta_RSI.o \ + ../../../../../temp/cmr/ta_SAR.o \ + ../../../../../temp/cmr/ta_SAREXT.o \ + ../../../../../temp/cmr/ta_SIN.o \ + ../../../../../temp/cmr/ta_SINH.o \ + ../../../../../temp/cmr/ta_SMA.o \ + ../../../../../temp/cmr/ta_SQRT.o \ + ../../../../../temp/cmr/ta_STDDEV.o \ + ../../../../../temp/cmr/ta_STOCH.o \ + ../../../../../temp/cmr/ta_STOCHF.o \ + ../../../../../temp/cmr/ta_STOCHRSI.o \ + ../../../../../temp/cmr/ta_SUB.o \ + ../../../../../temp/cmr/ta_SUM.o \ + ../../../../../temp/cmr/ta_T3.o \ + ../../../../../temp/cmr/ta_TAN.o \ + ../../../../../temp/cmr/ta_TANH.o \ + ../../../../../temp/cmr/ta_TEMA.o \ + ../../../../../temp/cmr/ta_TRANGE.o \ + ../../../../../temp/cmr/ta_TRIMA.o \ + ../../../../../temp/cmr/ta_TRIX.o \ + ../../../../../temp/cmr/ta_TSF.o \ + ../../../../../temp/cmr/ta_TYPPRICE.o \ + ../../../../../temp/cmr/ta_ULTOSC.o \ + ../../../../../temp/cmr/ta_VAR.o \ + ../../../../../temp/cmr/ta_WCLPRICE.o \ + ../../../../../temp/cmr/ta_WILLR.o \ + ../../../../../temp/cmr/ta_WMA.o +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ../../../../../lib/libta_libc_cmr.a +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .C .c + +.cpp.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cxx.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cc.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.C.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.c.o: + $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $< + +####### Build rules + + +all: $(TARGET) + +staticlib: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + -rm -f $(TARGET) + $(AR) $(TARGET) $(OBJECTS) $(OBJMOC) + +moc: $(SRCMOC) + +clean: + -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) + -rm -f *~ core + +####### Sub-libraries + + +###### Combined headers + + +####### Compile + +../../../../../temp/cmr/ta_global.o: ../../../../../src/ta_common/ta_global.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_global.o ../../../../../src/ta_common/ta_global.c + +../../../../../temp/cmr/ta_retcode.o: ../../../../../src/ta_common/ta_retcode.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_retcode.o ../../../../../src/ta_common/ta_retcode.c + +../../../../../temp/cmr/ta_version.o: ../../../../../src/ta_common/ta_version.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_version.o ../../../../../src/ta_common/ta_version.c + +../../../../../temp/cmr/ta_abstract.o: ../../../../../src/ta_abstract/ta_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_abstract.o ../../../../../src/ta_abstract/ta_abstract.c + +../../../../../temp/cmr/ta_def_ui.o: ../../../../../src/ta_abstract/ta_def_ui.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_def_ui.o ../../../../../src/ta_abstract/ta_def_ui.c + +../../../../../temp/cmr/ta_func_api.o: ../../../../../src/ta_abstract/ta_func_api.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_func_api.o ../../../../../src/ta_abstract/ta_func_api.c + +../../../../../temp/cmr/ta_group_idx.o: ../../../../../src/ta_abstract/ta_group_idx.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_group_idx.o ../../../../../src/ta_abstract/ta_group_idx.c + +../../../../../temp/cmr/ta_frame.o: ../../../../../src/ta_abstract/frames/ta_frame.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_frame.o ../../../../../src/ta_abstract/frames/ta_frame.c + +../../../../../temp/cmr/table_a.o: ../../../../../src/ta_abstract/tables/table_a.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_a.o ../../../../../src/ta_abstract/tables/table_a.c + +../../../../../temp/cmr/table_b.o: ../../../../../src/ta_abstract/tables/table_b.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_b.o ../../../../../src/ta_abstract/tables/table_b.c + +../../../../../temp/cmr/table_c.o: ../../../../../src/ta_abstract/tables/table_c.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_c.o ../../../../../src/ta_abstract/tables/table_c.c + +../../../../../temp/cmr/table_d.o: ../../../../../src/ta_abstract/tables/table_d.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_d.o ../../../../../src/ta_abstract/tables/table_d.c + +../../../../../temp/cmr/table_e.o: ../../../../../src/ta_abstract/tables/table_e.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_e.o ../../../../../src/ta_abstract/tables/table_e.c + +../../../../../temp/cmr/table_f.o: ../../../../../src/ta_abstract/tables/table_f.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_f.o ../../../../../src/ta_abstract/tables/table_f.c + +../../../../../temp/cmr/table_g.o: ../../../../../src/ta_abstract/tables/table_g.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_g.o ../../../../../src/ta_abstract/tables/table_g.c + +../../../../../temp/cmr/table_h.o: ../../../../../src/ta_abstract/tables/table_h.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_h.o ../../../../../src/ta_abstract/tables/table_h.c + +../../../../../temp/cmr/table_i.o: ../../../../../src/ta_abstract/tables/table_i.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_i.o ../../../../../src/ta_abstract/tables/table_i.c + +../../../../../temp/cmr/table_j.o: ../../../../../src/ta_abstract/tables/table_j.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_j.o ../../../../../src/ta_abstract/tables/table_j.c + +../../../../../temp/cmr/table_k.o: ../../../../../src/ta_abstract/tables/table_k.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_k.o ../../../../../src/ta_abstract/tables/table_k.c + +../../../../../temp/cmr/table_l.o: ../../../../../src/ta_abstract/tables/table_l.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_l.o ../../../../../src/ta_abstract/tables/table_l.c + +../../../../../temp/cmr/table_m.o: ../../../../../src/ta_abstract/tables/table_m.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_m.o ../../../../../src/ta_abstract/tables/table_m.c + +../../../../../temp/cmr/table_n.o: ../../../../../src/ta_abstract/tables/table_n.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_n.o ../../../../../src/ta_abstract/tables/table_n.c + +../../../../../temp/cmr/table_o.o: ../../../../../src/ta_abstract/tables/table_o.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_o.o ../../../../../src/ta_abstract/tables/table_o.c + +../../../../../temp/cmr/table_p.o: ../../../../../src/ta_abstract/tables/table_p.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_p.o ../../../../../src/ta_abstract/tables/table_p.c + +../../../../../temp/cmr/table_q.o: ../../../../../src/ta_abstract/tables/table_q.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_q.o ../../../../../src/ta_abstract/tables/table_q.c + +../../../../../temp/cmr/table_r.o: ../../../../../src/ta_abstract/tables/table_r.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_r.o ../../../../../src/ta_abstract/tables/table_r.c + +../../../../../temp/cmr/table_s.o: ../../../../../src/ta_abstract/tables/table_s.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_s.o ../../../../../src/ta_abstract/tables/table_s.c + +../../../../../temp/cmr/table_t.o: ../../../../../src/ta_abstract/tables/table_t.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_t.o ../../../../../src/ta_abstract/tables/table_t.c + +../../../../../temp/cmr/table_u.o: ../../../../../src/ta_abstract/tables/table_u.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_u.o ../../../../../src/ta_abstract/tables/table_u.c + +../../../../../temp/cmr/table_v.o: ../../../../../src/ta_abstract/tables/table_v.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_v.o ../../../../../src/ta_abstract/tables/table_v.c + +../../../../../temp/cmr/table_w.o: ../../../../../src/ta_abstract/tables/table_w.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_w.o ../../../../../src/ta_abstract/tables/table_w.c + +../../../../../temp/cmr/table_x.o: ../../../../../src/ta_abstract/tables/table_x.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_x.o ../../../../../src/ta_abstract/tables/table_x.c + +../../../../../temp/cmr/table_y.o: ../../../../../src/ta_abstract/tables/table_y.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_y.o ../../../../../src/ta_abstract/tables/table_y.c + +../../../../../temp/cmr/table_z.o: ../../../../../src/ta_abstract/tables/table_z.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/table_z.o ../../../../../src/ta_abstract/tables/table_z.c + +../../../../../temp/cmr/ta_utility.o: ../../../../../src/ta_func/ta_utility.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_utility.o ../../../../../src/ta_func/ta_utility.c + +../../../../../temp/cmr/ta_ACOS.o: ../../../../../src/ta_func/ta_ACOS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_ACOS.o ../../../../../src/ta_func/ta_ACOS.c + +../../../../../temp/cmr/ta_AD.o: ../../../../../src/ta_func/ta_AD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_AD.o ../../../../../src/ta_func/ta_AD.c + +../../../../../temp/cmr/ta_ADD.o: ../../../../../src/ta_func/ta_ADD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_ADD.o ../../../../../src/ta_func/ta_ADD.c + +../../../../../temp/cmr/ta_ADOSC.o: ../../../../../src/ta_func/ta_ADOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_ADOSC.o ../../../../../src/ta_func/ta_ADOSC.c + +../../../../../temp/cmr/ta_ADX.o: ../../../../../src/ta_func/ta_ADX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_ADX.o ../../../../../src/ta_func/ta_ADX.c + +../../../../../temp/cmr/ta_ADXR.o: ../../../../../src/ta_func/ta_ADXR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_ADXR.o ../../../../../src/ta_func/ta_ADXR.c + +../../../../../temp/cmr/ta_APO.o: ../../../../../src/ta_func/ta_APO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_APO.o ../../../../../src/ta_func/ta_APO.c + +../../../../../temp/cmr/ta_AROON.o: ../../../../../src/ta_func/ta_AROON.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_AROON.o ../../../../../src/ta_func/ta_AROON.c + +../../../../../temp/cmr/ta_AROONOSC.o: ../../../../../src/ta_func/ta_AROONOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_AROONOSC.o ../../../../../src/ta_func/ta_AROONOSC.c + +../../../../../temp/cmr/ta_ASIN.o: ../../../../../src/ta_func/ta_ASIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_ASIN.o ../../../../../src/ta_func/ta_ASIN.c + +../../../../../temp/cmr/ta_ATAN.o: ../../../../../src/ta_func/ta_ATAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_ATAN.o ../../../../../src/ta_func/ta_ATAN.c + +../../../../../temp/cmr/ta_ATR.o: ../../../../../src/ta_func/ta_ATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_ATR.o ../../../../../src/ta_func/ta_ATR.c + +../../../../../temp/cmr/ta_AVGPRICE.o: ../../../../../src/ta_func/ta_AVGPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_AVGPRICE.o ../../../../../src/ta_func/ta_AVGPRICE.c + +../../../../../temp/cmr/ta_BBANDS.o: ../../../../../src/ta_func/ta_BBANDS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_BBANDS.o ../../../../../src/ta_func/ta_BBANDS.c + +../../../../../temp/cmr/ta_BETA.o: ../../../../../src/ta_func/ta_BETA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_BETA.o ../../../../../src/ta_func/ta_BETA.c + +../../../../../temp/cmr/ta_BOP.o: ../../../../../src/ta_func/ta_BOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_BOP.o ../../../../../src/ta_func/ta_BOP.c + +../../../../../temp/cmr/ta_CCI.o: ../../../../../src/ta_func/ta_CCI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CCI.o ../../../../../src/ta_func/ta_CCI.c + +../../../../../temp/cmr/ta_CDL2CROWS.o: ../../../../../src/ta_func/ta_CDL2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDL2CROWS.o ../../../../../src/ta_func/ta_CDL2CROWS.c + +../../../../../temp/cmr/ta_CDL3BLACKCROWS.o: ../../../../../src/ta_func/ta_CDL3BLACKCROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDL3BLACKCROWS.o ../../../../../src/ta_func/ta_CDL3BLACKCROWS.c + +../../../../../temp/cmr/ta_CDL3INSIDE.o: ../../../../../src/ta_func/ta_CDL3INSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDL3INSIDE.o ../../../../../src/ta_func/ta_CDL3INSIDE.c + +../../../../../temp/cmr/ta_CDL3LINESTRIKE.o: ../../../../../src/ta_func/ta_CDL3LINESTRIKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDL3LINESTRIKE.o ../../../../../src/ta_func/ta_CDL3LINESTRIKE.c + +../../../../../temp/cmr/ta_CDL3OUTSIDE.o: ../../../../../src/ta_func/ta_CDL3OUTSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDL3OUTSIDE.o ../../../../../src/ta_func/ta_CDL3OUTSIDE.c + +../../../../../temp/cmr/ta_CDL3STARSINSOUTH.o: ../../../../../src/ta_func/ta_CDL3STARSINSOUTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDL3STARSINSOUTH.o ../../../../../src/ta_func/ta_CDL3STARSINSOUTH.c + +../../../../../temp/cmr/ta_CDL3WHITESOLDIERS.o: ../../../../../src/ta_func/ta_CDL3WHITESOLDIERS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDL3WHITESOLDIERS.o ../../../../../src/ta_func/ta_CDL3WHITESOLDIERS.c + +../../../../../temp/cmr/ta_CDLABANDONEDBABY.o: ../../../../../src/ta_func/ta_CDLABANDONEDBABY.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLABANDONEDBABY.o ../../../../../src/ta_func/ta_CDLABANDONEDBABY.c + +../../../../../temp/cmr/ta_CDLADVANCEBLOCK.o: ../../../../../src/ta_func/ta_CDLADVANCEBLOCK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLADVANCEBLOCK.o ../../../../../src/ta_func/ta_CDLADVANCEBLOCK.c + +../../../../../temp/cmr/ta_CDLBELTHOLD.o: ../../../../../src/ta_func/ta_CDLBELTHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLBELTHOLD.o ../../../../../src/ta_func/ta_CDLBELTHOLD.c + +../../../../../temp/cmr/ta_CDLBREAKAWAY.o: ../../../../../src/ta_func/ta_CDLBREAKAWAY.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLBREAKAWAY.o ../../../../../src/ta_func/ta_CDLBREAKAWAY.c + +../../../../../temp/cmr/ta_CDLCLOSINGMARUBOZU.o: ../../../../../src/ta_func/ta_CDLCLOSINGMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLCLOSINGMARUBOZU.o ../../../../../src/ta_func/ta_CDLCLOSINGMARUBOZU.c + +../../../../../temp/cmr/ta_CDLCONCEALBABYSWALL.o: ../../../../../src/ta_func/ta_CDLCONCEALBABYSWALL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLCONCEALBABYSWALL.o ../../../../../src/ta_func/ta_CDLCONCEALBABYSWALL.c + +../../../../../temp/cmr/ta_CDLCOUNTERATTACK.o: ../../../../../src/ta_func/ta_CDLCOUNTERATTACK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLCOUNTERATTACK.o ../../../../../src/ta_func/ta_CDLCOUNTERATTACK.c + +../../../../../temp/cmr/ta_CDLDARKCLOUDCOVER.o: ../../../../../src/ta_func/ta_CDLDARKCLOUDCOVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLDARKCLOUDCOVER.o ../../../../../src/ta_func/ta_CDLDARKCLOUDCOVER.c + +../../../../../temp/cmr/ta_CDLDOJI.o: ../../../../../src/ta_func/ta_CDLDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLDOJI.o ../../../../../src/ta_func/ta_CDLDOJI.c + +../../../../../temp/cmr/ta_CDLDOJISTAR.o: ../../../../../src/ta_func/ta_CDLDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLDOJISTAR.o ../../../../../src/ta_func/ta_CDLDOJISTAR.c + +../../../../../temp/cmr/ta_CDLDRAGONFLYDOJI.o: ../../../../../src/ta_func/ta_CDLDRAGONFLYDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLDRAGONFLYDOJI.o ../../../../../src/ta_func/ta_CDLDRAGONFLYDOJI.c + +../../../../../temp/cmr/ta_CDLENGULFING.o: ../../../../../src/ta_func/ta_CDLENGULFING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLENGULFING.o ../../../../../src/ta_func/ta_CDLENGULFING.c + +../../../../../temp/cmr/ta_CDLEVENINGDOJISTAR.o: ../../../../../src/ta_func/ta_CDLEVENINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLEVENINGDOJISTAR.o ../../../../../src/ta_func/ta_CDLEVENINGDOJISTAR.c + +../../../../../temp/cmr/ta_CDLEVENINGSTAR.o: ../../../../../src/ta_func/ta_CDLEVENINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLEVENINGSTAR.o ../../../../../src/ta_func/ta_CDLEVENINGSTAR.c + +../../../../../temp/cmr/ta_CDLGAPSIDESIDEWHITE.o: ../../../../../src/ta_func/ta_CDLGAPSIDESIDEWHITE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLGAPSIDESIDEWHITE.o ../../../../../src/ta_func/ta_CDLGAPSIDESIDEWHITE.c + +../../../../../temp/cmr/ta_CDLGRAVESTONEDOJI.o: ../../../../../src/ta_func/ta_CDLGRAVESTONEDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLGRAVESTONEDOJI.o ../../../../../src/ta_func/ta_CDLGRAVESTONEDOJI.c + +../../../../../temp/cmr/ta_CDLHAMMER.o: ../../../../../src/ta_func/ta_CDLHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLHAMMER.o ../../../../../src/ta_func/ta_CDLHAMMER.c + +../../../../../temp/cmr/ta_CDLHANGINGMAN.o: ../../../../../src/ta_func/ta_CDLHANGINGMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLHANGINGMAN.o ../../../../../src/ta_func/ta_CDLHANGINGMAN.c + +../../../../../temp/cmr/ta_CDLHARAMI.o: ../../../../../src/ta_func/ta_CDLHARAMI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLHARAMI.o ../../../../../src/ta_func/ta_CDLHARAMI.c + +../../../../../temp/cmr/ta_CDLHARAMICROSS.o: ../../../../../src/ta_func/ta_CDLHARAMICROSS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLHARAMICROSS.o ../../../../../src/ta_func/ta_CDLHARAMICROSS.c + +../../../../../temp/cmr/ta_CDLHIGHWAVE.o: ../../../../../src/ta_func/ta_CDLHIGHWAVE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLHIGHWAVE.o ../../../../../src/ta_func/ta_CDLHIGHWAVE.c + +../../../../../temp/cmr/ta_CDLHIKKAKE.o: ../../../../../src/ta_func/ta_CDLHIKKAKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLHIKKAKE.o ../../../../../src/ta_func/ta_CDLHIKKAKE.c + +../../../../../temp/cmr/ta_CDLHIKKAKEMOD.o: ../../../../../src/ta_func/ta_CDLHIKKAKEMOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLHIKKAKEMOD.o ../../../../../src/ta_func/ta_CDLHIKKAKEMOD.c + +../../../../../temp/cmr/ta_CDLHOMINGPIGEON.o: ../../../../../src/ta_func/ta_CDLHOMINGPIGEON.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLHOMINGPIGEON.o ../../../../../src/ta_func/ta_CDLHOMINGPIGEON.c + +../../../../../temp/cmr/ta_CDLIDENTICAL3CROWS.o: ../../../../../src/ta_func/ta_CDLIDENTICAL3CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLIDENTICAL3CROWS.o ../../../../../src/ta_func/ta_CDLIDENTICAL3CROWS.c + +../../../../../temp/cmr/ta_CDLINNECK.o: ../../../../../src/ta_func/ta_CDLINNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLINNECK.o ../../../../../src/ta_func/ta_CDLINNECK.c + +../../../../../temp/cmr/ta_CDLINVERTEDHAMMER.o: ../../../../../src/ta_func/ta_CDLINVERTEDHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLINVERTEDHAMMER.o ../../../../../src/ta_func/ta_CDLINVERTEDHAMMER.c + +../../../../../temp/cmr/ta_CDLKICKING.o: ../../../../../src/ta_func/ta_CDLKICKING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLKICKING.o ../../../../../src/ta_func/ta_CDLKICKING.c + +../../../../../temp/cmr/ta_CDLKICKINGBYLENGTH.o: ../../../../../src/ta_func/ta_CDLKICKINGBYLENGTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLKICKINGBYLENGTH.o ../../../../../src/ta_func/ta_CDLKICKINGBYLENGTH.c + +../../../../../temp/cmr/ta_CDLLADDERBOTTOM.o: ../../../../../src/ta_func/ta_CDLLADDERBOTTOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLLADDERBOTTOM.o ../../../../../src/ta_func/ta_CDLLADDERBOTTOM.c + +../../../../../temp/cmr/ta_CDLLONGLEGGEDDOJI.o: ../../../../../src/ta_func/ta_CDLLONGLEGGEDDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLLONGLEGGEDDOJI.o ../../../../../src/ta_func/ta_CDLLONGLEGGEDDOJI.c + +../../../../../temp/cmr/ta_CDLLONGLINE.o: ../../../../../src/ta_func/ta_CDLLONGLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLLONGLINE.o ../../../../../src/ta_func/ta_CDLLONGLINE.c + +../../../../../temp/cmr/ta_CDLMARUBOZU.o: ../../../../../src/ta_func/ta_CDLMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLMARUBOZU.o ../../../../../src/ta_func/ta_CDLMARUBOZU.c + +../../../../../temp/cmr/ta_CDLMATCHINGLOW.o: ../../../../../src/ta_func/ta_CDLMATCHINGLOW.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLMATCHINGLOW.o ../../../../../src/ta_func/ta_CDLMATCHINGLOW.c + +../../../../../temp/cmr/ta_CDLMATHOLD.o: ../../../../../src/ta_func/ta_CDLMATHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLMATHOLD.o ../../../../../src/ta_func/ta_CDLMATHOLD.c + +../../../../../temp/cmr/ta_CDLMORNINGDOJISTAR.o: ../../../../../src/ta_func/ta_CDLMORNINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLMORNINGDOJISTAR.o ../../../../../src/ta_func/ta_CDLMORNINGDOJISTAR.c + +../../../../../temp/cmr/ta_CDLMORNINGSTAR.o: ../../../../../src/ta_func/ta_CDLMORNINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLMORNINGSTAR.o ../../../../../src/ta_func/ta_CDLMORNINGSTAR.c + +../../../../../temp/cmr/ta_CDLONNECK.o: ../../../../../src/ta_func/ta_CDLONNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLONNECK.o ../../../../../src/ta_func/ta_CDLONNECK.c + +../../../../../temp/cmr/ta_CDLPIERCING.o: ../../../../../src/ta_func/ta_CDLPIERCING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLPIERCING.o ../../../../../src/ta_func/ta_CDLPIERCING.c + +../../../../../temp/cmr/ta_CDLRICKSHAWMAN.o: ../../../../../src/ta_func/ta_CDLRICKSHAWMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLRICKSHAWMAN.o ../../../../../src/ta_func/ta_CDLRICKSHAWMAN.c + +../../../../../temp/cmr/ta_CDLRISEFALL3METHODS.o: ../../../../../src/ta_func/ta_CDLRISEFALL3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLRISEFALL3METHODS.o ../../../../../src/ta_func/ta_CDLRISEFALL3METHODS.c + +../../../../../temp/cmr/ta_CDLSEPARATINGLINES.o: ../../../../../src/ta_func/ta_CDLSEPARATINGLINES.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLSEPARATINGLINES.o ../../../../../src/ta_func/ta_CDLSEPARATINGLINES.c + +../../../../../temp/cmr/ta_CDLSHOOTINGSTAR.o: ../../../../../src/ta_func/ta_CDLSHOOTINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLSHOOTINGSTAR.o ../../../../../src/ta_func/ta_CDLSHOOTINGSTAR.c + +../../../../../temp/cmr/ta_CDLSHORTLINE.o: ../../../../../src/ta_func/ta_CDLSHORTLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLSHORTLINE.o ../../../../../src/ta_func/ta_CDLSHORTLINE.c + +../../../../../temp/cmr/ta_CDLSPINNINGTOP.o: ../../../../../src/ta_func/ta_CDLSPINNINGTOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLSPINNINGTOP.o ../../../../../src/ta_func/ta_CDLSPINNINGTOP.c + +../../../../../temp/cmr/ta_CDLSTALLEDPATTERN.o: ../../../../../src/ta_func/ta_CDLSTALLEDPATTERN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLSTALLEDPATTERN.o ../../../../../src/ta_func/ta_CDLSTALLEDPATTERN.c + +../../../../../temp/cmr/ta_CDLSTICKSANDWICH.o: ../../../../../src/ta_func/ta_CDLSTICKSANDWICH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLSTICKSANDWICH.o ../../../../../src/ta_func/ta_CDLSTICKSANDWICH.c + +../../../../../temp/cmr/ta_CDLTAKURI.o: ../../../../../src/ta_func/ta_CDLTAKURI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLTAKURI.o ../../../../../src/ta_func/ta_CDLTAKURI.c + +../../../../../temp/cmr/ta_CDLTASUKIGAP.o: ../../../../../src/ta_func/ta_CDLTASUKIGAP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLTASUKIGAP.o ../../../../../src/ta_func/ta_CDLTASUKIGAP.c + +../../../../../temp/cmr/ta_CDLTHRUSTING.o: ../../../../../src/ta_func/ta_CDLTHRUSTING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLTHRUSTING.o ../../../../../src/ta_func/ta_CDLTHRUSTING.c + +../../../../../temp/cmr/ta_CDLTRISTAR.o: ../../../../../src/ta_func/ta_CDLTRISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLTRISTAR.o ../../../../../src/ta_func/ta_CDLTRISTAR.c + +../../../../../temp/cmr/ta_CDLUNIQUE3RIVER.o: ../../../../../src/ta_func/ta_CDLUNIQUE3RIVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLUNIQUE3RIVER.o ../../../../../src/ta_func/ta_CDLUNIQUE3RIVER.c + +../../../../../temp/cmr/ta_CDLUPSIDEGAP2CROWS.o: ../../../../../src/ta_func/ta_CDLUPSIDEGAP2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLUPSIDEGAP2CROWS.o ../../../../../src/ta_func/ta_CDLUPSIDEGAP2CROWS.c + +../../../../../temp/cmr/ta_CDLXSIDEGAP3METHODS.o: ../../../../../src/ta_func/ta_CDLXSIDEGAP3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CDLXSIDEGAP3METHODS.o ../../../../../src/ta_func/ta_CDLXSIDEGAP3METHODS.c + +../../../../../temp/cmr/ta_CEIL.o: ../../../../../src/ta_func/ta_CEIL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CEIL.o ../../../../../src/ta_func/ta_CEIL.c + +../../../../../temp/cmr/ta_CMO.o: ../../../../../src/ta_func/ta_CMO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CMO.o ../../../../../src/ta_func/ta_CMO.c + +../../../../../temp/cmr/ta_CORREL.o: ../../../../../src/ta_func/ta_CORREL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_CORREL.o ../../../../../src/ta_func/ta_CORREL.c + +../../../../../temp/cmr/ta_COS.o: ../../../../../src/ta_func/ta_COS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_COS.o ../../../../../src/ta_func/ta_COS.c + +../../../../../temp/cmr/ta_COSH.o: ../../../../../src/ta_func/ta_COSH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_COSH.o ../../../../../src/ta_func/ta_COSH.c + +../../../../../temp/cmr/ta_DEMA.o: ../../../../../src/ta_func/ta_DEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_DEMA.o ../../../../../src/ta_func/ta_DEMA.c + +../../../../../temp/cmr/ta_DIV.o: ../../../../../src/ta_func/ta_DIV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_DIV.o ../../../../../src/ta_func/ta_DIV.c + +../../../../../temp/cmr/ta_DX.o: ../../../../../src/ta_func/ta_DX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_DX.o ../../../../../src/ta_func/ta_DX.c + +../../../../../temp/cmr/ta_EMA.o: ../../../../../src/ta_func/ta_EMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_EMA.o ../../../../../src/ta_func/ta_EMA.c + +../../../../../temp/cmr/ta_EXP.o: ../../../../../src/ta_func/ta_EXP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_EXP.o ../../../../../src/ta_func/ta_EXP.c + +../../../../../temp/cmr/ta_FLOOR.o: ../../../../../src/ta_func/ta_FLOOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_FLOOR.o ../../../../../src/ta_func/ta_FLOOR.c + +../../../../../temp/cmr/ta_HT_DCPERIOD.o: ../../../../../src/ta_func/ta_HT_DCPERIOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_HT_DCPERIOD.o ../../../../../src/ta_func/ta_HT_DCPERIOD.c + +../../../../../temp/cmr/ta_HT_DCPHASE.o: ../../../../../src/ta_func/ta_HT_DCPHASE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_HT_DCPHASE.o ../../../../../src/ta_func/ta_HT_DCPHASE.c + +../../../../../temp/cmr/ta_HT_PHASOR.o: ../../../../../src/ta_func/ta_HT_PHASOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_HT_PHASOR.o ../../../../../src/ta_func/ta_HT_PHASOR.c + +../../../../../temp/cmr/ta_HT_SINE.o: ../../../../../src/ta_func/ta_HT_SINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_HT_SINE.o ../../../../../src/ta_func/ta_HT_SINE.c + +../../../../../temp/cmr/ta_HT_TRENDLINE.o: ../../../../../src/ta_func/ta_HT_TRENDLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_HT_TRENDLINE.o ../../../../../src/ta_func/ta_HT_TRENDLINE.c + +../../../../../temp/cmr/ta_HT_TRENDMODE.o: ../../../../../src/ta_func/ta_HT_TRENDMODE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_HT_TRENDMODE.o ../../../../../src/ta_func/ta_HT_TRENDMODE.c + +../../../../../temp/cmr/ta_KAMA.o: ../../../../../src/ta_func/ta_KAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_KAMA.o ../../../../../src/ta_func/ta_KAMA.c + +../../../../../temp/cmr/ta_LINEARREG.o: ../../../../../src/ta_func/ta_LINEARREG.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_LINEARREG.o ../../../../../src/ta_func/ta_LINEARREG.c + +../../../../../temp/cmr/ta_LINEARREG_ANGLE.o: ../../../../../src/ta_func/ta_LINEARREG_ANGLE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_LINEARREG_ANGLE.o ../../../../../src/ta_func/ta_LINEARREG_ANGLE.c + +../../../../../temp/cmr/ta_LINEARREG_INTERCEPT.o: ../../../../../src/ta_func/ta_LINEARREG_INTERCEPT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_LINEARREG_INTERCEPT.o ../../../../../src/ta_func/ta_LINEARREG_INTERCEPT.c + +../../../../../temp/cmr/ta_LINEARREG_SLOPE.o: ../../../../../src/ta_func/ta_LINEARREG_SLOPE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_LINEARREG_SLOPE.o ../../../../../src/ta_func/ta_LINEARREG_SLOPE.c + +../../../../../temp/cmr/ta_LN.o: ../../../../../src/ta_func/ta_LN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_LN.o ../../../../../src/ta_func/ta_LN.c + +../../../../../temp/cmr/ta_LOG10.o: ../../../../../src/ta_func/ta_LOG10.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_LOG10.o ../../../../../src/ta_func/ta_LOG10.c + +../../../../../temp/cmr/ta_MA.o: ../../../../../src/ta_func/ta_MA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_MA.o ../../../../../src/ta_func/ta_MA.c + +../../../../../temp/cmr/ta_MACD.o: ../../../../../src/ta_func/ta_MACD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_MACD.o ../../../../../src/ta_func/ta_MACD.c + +../../../../../temp/cmr/ta_MACDEXT.o: ../../../../../src/ta_func/ta_MACDEXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_MACDEXT.o ../../../../../src/ta_func/ta_MACDEXT.c + +../../../../../temp/cmr/ta_MACDFIX.o: ../../../../../src/ta_func/ta_MACDFIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_MACDFIX.o ../../../../../src/ta_func/ta_MACDFIX.c + +../../../../../temp/cmr/ta_MAMA.o: ../../../../../src/ta_func/ta_MAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_MAMA.o ../../../../../src/ta_func/ta_MAMA.c + +../../../../../temp/cmr/ta_MAVP.o: ../../../../../src/ta_func/ta_MAVP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_MAVP.o ../../../../../src/ta_func/ta_MAVP.c + +../../../../../temp/cmr/ta_MAX.o: ../../../../../src/ta_func/ta_MAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_MAX.o ../../../../../src/ta_func/ta_MAX.c + +../../../../../temp/cmr/ta_MAXINDEX.o: ../../../../../src/ta_func/ta_MAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_MAXINDEX.o ../../../../../src/ta_func/ta_MAXINDEX.c + +../../../../../temp/cmr/ta_MEDPRICE.o: ../../../../../src/ta_func/ta_MEDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_MEDPRICE.o ../../../../../src/ta_func/ta_MEDPRICE.c + +../../../../../temp/cmr/ta_MFI.o: ../../../../../src/ta_func/ta_MFI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_MFI.o ../../../../../src/ta_func/ta_MFI.c + +../../../../../temp/cmr/ta_MIDPOINT.o: ../../../../../src/ta_func/ta_MIDPOINT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_MIDPOINT.o ../../../../../src/ta_func/ta_MIDPOINT.c + +../../../../../temp/cmr/ta_MIDPRICE.o: ../../../../../src/ta_func/ta_MIDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_MIDPRICE.o ../../../../../src/ta_func/ta_MIDPRICE.c + +../../../../../temp/cmr/ta_MIN.o: ../../../../../src/ta_func/ta_MIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_MIN.o ../../../../../src/ta_func/ta_MIN.c + +../../../../../temp/cmr/ta_MININDEX.o: ../../../../../src/ta_func/ta_MININDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_MININDEX.o ../../../../../src/ta_func/ta_MININDEX.c + +../../../../../temp/cmr/ta_MINMAX.o: ../../../../../src/ta_func/ta_MINMAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_MINMAX.o ../../../../../src/ta_func/ta_MINMAX.c + +../../../../../temp/cmr/ta_MINMAXINDEX.o: ../../../../../src/ta_func/ta_MINMAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_MINMAXINDEX.o ../../../../../src/ta_func/ta_MINMAXINDEX.c + +../../../../../temp/cmr/ta_MINUS_DI.o: ../../../../../src/ta_func/ta_MINUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_MINUS_DI.o ../../../../../src/ta_func/ta_MINUS_DI.c + +../../../../../temp/cmr/ta_MINUS_DM.o: ../../../../../src/ta_func/ta_MINUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_MINUS_DM.o ../../../../../src/ta_func/ta_MINUS_DM.c + +../../../../../temp/cmr/ta_MOM.o: ../../../../../src/ta_func/ta_MOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_MOM.o ../../../../../src/ta_func/ta_MOM.c + +../../../../../temp/cmr/ta_MULT.o: ../../../../../src/ta_func/ta_MULT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_MULT.o ../../../../../src/ta_func/ta_MULT.c + +../../../../../temp/cmr/ta_NATR.o: ../../../../../src/ta_func/ta_NATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_NATR.o ../../../../../src/ta_func/ta_NATR.c + +../../../../../temp/cmr/ta_OBV.o: ../../../../../src/ta_func/ta_OBV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_OBV.o ../../../../../src/ta_func/ta_OBV.c + +../../../../../temp/cmr/ta_PLUS_DI.o: ../../../../../src/ta_func/ta_PLUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_PLUS_DI.o ../../../../../src/ta_func/ta_PLUS_DI.c + +../../../../../temp/cmr/ta_PLUS_DM.o: ../../../../../src/ta_func/ta_PLUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_PLUS_DM.o ../../../../../src/ta_func/ta_PLUS_DM.c + +../../../../../temp/cmr/ta_PPO.o: ../../../../../src/ta_func/ta_PPO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_PPO.o ../../../../../src/ta_func/ta_PPO.c + +../../../../../temp/cmr/ta_ROC.o: ../../../../../src/ta_func/ta_ROC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_ROC.o ../../../../../src/ta_func/ta_ROC.c + +../../../../../temp/cmr/ta_ROCP.o: ../../../../../src/ta_func/ta_ROCP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_ROCP.o ../../../../../src/ta_func/ta_ROCP.c + +../../../../../temp/cmr/ta_ROCR.o: ../../../../../src/ta_func/ta_ROCR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_ROCR.o ../../../../../src/ta_func/ta_ROCR.c + +../../../../../temp/cmr/ta_ROCR100.o: ../../../../../src/ta_func/ta_ROCR100.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_ROCR100.o ../../../../../src/ta_func/ta_ROCR100.c + +../../../../../temp/cmr/ta_RSI.o: ../../../../../src/ta_func/ta_RSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_RSI.o ../../../../../src/ta_func/ta_RSI.c + +../../../../../temp/cmr/ta_SAR.o: ../../../../../src/ta_func/ta_SAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_SAR.o ../../../../../src/ta_func/ta_SAR.c + +../../../../../temp/cmr/ta_SAREXT.o: ../../../../../src/ta_func/ta_SAREXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_SAREXT.o ../../../../../src/ta_func/ta_SAREXT.c + +../../../../../temp/cmr/ta_SIN.o: ../../../../../src/ta_func/ta_SIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_SIN.o ../../../../../src/ta_func/ta_SIN.c + +../../../../../temp/cmr/ta_SINH.o: ../../../../../src/ta_func/ta_SINH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_SINH.o ../../../../../src/ta_func/ta_SINH.c + +../../../../../temp/cmr/ta_SMA.o: ../../../../../src/ta_func/ta_SMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_SMA.o ../../../../../src/ta_func/ta_SMA.c + +../../../../../temp/cmr/ta_SQRT.o: ../../../../../src/ta_func/ta_SQRT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_SQRT.o ../../../../../src/ta_func/ta_SQRT.c + +../../../../../temp/cmr/ta_STDDEV.o: ../../../../../src/ta_func/ta_STDDEV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_STDDEV.o ../../../../../src/ta_func/ta_STDDEV.c + +../../../../../temp/cmr/ta_STOCH.o: ../../../../../src/ta_func/ta_STOCH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_STOCH.o ../../../../../src/ta_func/ta_STOCH.c + +../../../../../temp/cmr/ta_STOCHF.o: ../../../../../src/ta_func/ta_STOCHF.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_STOCHF.o ../../../../../src/ta_func/ta_STOCHF.c + +../../../../../temp/cmr/ta_STOCHRSI.o: ../../../../../src/ta_func/ta_STOCHRSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_STOCHRSI.o ../../../../../src/ta_func/ta_STOCHRSI.c + +../../../../../temp/cmr/ta_SUB.o: ../../../../../src/ta_func/ta_SUB.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_SUB.o ../../../../../src/ta_func/ta_SUB.c + +../../../../../temp/cmr/ta_SUM.o: ../../../../../src/ta_func/ta_SUM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_SUM.o ../../../../../src/ta_func/ta_SUM.c + +../../../../../temp/cmr/ta_T3.o: ../../../../../src/ta_func/ta_T3.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_T3.o ../../../../../src/ta_func/ta_T3.c + +../../../../../temp/cmr/ta_TAN.o: ../../../../../src/ta_func/ta_TAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_TAN.o ../../../../../src/ta_func/ta_TAN.c + +../../../../../temp/cmr/ta_TANH.o: ../../../../../src/ta_func/ta_TANH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_TANH.o ../../../../../src/ta_func/ta_TANH.c + +../../../../../temp/cmr/ta_TEMA.o: ../../../../../src/ta_func/ta_TEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_TEMA.o ../../../../../src/ta_func/ta_TEMA.c + +../../../../../temp/cmr/ta_TRANGE.o: ../../../../../src/ta_func/ta_TRANGE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_TRANGE.o ../../../../../src/ta_func/ta_TRANGE.c + +../../../../../temp/cmr/ta_TRIMA.o: ../../../../../src/ta_func/ta_TRIMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_TRIMA.o ../../../../../src/ta_func/ta_TRIMA.c + +../../../../../temp/cmr/ta_TRIX.o: ../../../../../src/ta_func/ta_TRIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_TRIX.o ../../../../../src/ta_func/ta_TRIX.c + +../../../../../temp/cmr/ta_TSF.o: ../../../../../src/ta_func/ta_TSF.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_TSF.o ../../../../../src/ta_func/ta_TSF.c + +../../../../../temp/cmr/ta_TYPPRICE.o: ../../../../../src/ta_func/ta_TYPPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_TYPPRICE.o ../../../../../src/ta_func/ta_TYPPRICE.c + +../../../../../temp/cmr/ta_ULTOSC.o: ../../../../../src/ta_func/ta_ULTOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_ULTOSC.o ../../../../../src/ta_func/ta_ULTOSC.c + +../../../../../temp/cmr/ta_VAR.o: ../../../../../src/ta_func/ta_VAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_VAR.o ../../../../../src/ta_func/ta_VAR.c + +../../../../../temp/cmr/ta_WCLPRICE.o: ../../../../../src/ta_func/ta_WCLPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_WCLPRICE.o ../../../../../src/ta_func/ta_WCLPRICE.c + +../../../../../temp/cmr/ta_WILLR.o: ../../../../../src/ta_func/ta_WILLR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_WILLR.o ../../../../../src/ta_func/ta_WILLR.c + +../../../../../temp/cmr/ta_WMA.o: ../../../../../src/ta_func/ta_WMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_WMA.o ../../../../../src/ta_func/ta_WMA.c + diff --git a/make/cmr/linux/g++/ta_regtest/Makefile b/make/cmr/linux/g++/ta_regtest/Makefile new file mode 100644 index 000000000..2c253342c --- /dev/null +++ b/make/cmr/linux/g++/ta_regtest/Makefile @@ -0,0 +1,211 @@ +############################################################################# +# Makefile for building ../../../../../bin/ta_regtest +# Generated by tmake; +# Project: ta_regtest/ta_regtest +# Template: app +############################################################################# + +####### Compiler, tools and options + +CC = gcc +CXX = g++ +CFLAGS = -pipe -fPIC -Wall -W -O2 -fno-strict-aliasing -D_REENTRANT -DQT_THREAD_SUPPORT +CXXFLAGS= -pipe -fPIC -Wall -W -O2 -fno-strict-aliasing -D_REENTRANT -DQT_THREAD_SUPPORT +INCPATH = -I../../../../../src/ta_common -I../../../../../src/tools/ta_regtest -I../../../../../src/ta_func -I../../../../../include +LINK = g++ +LFLAGS = +LIBS = $(SUBLIBS) ../../../../../lib/libta_libc_cmr.a -ldl -lpthread +MOC = $(QTDIR)/bin/moc +UIC = $(QTDIR)/bin/uic + +TAR = tar -cf +GZIP = gzip -9f + +####### Support for 64-bit systems +ifeq ($(shell uname -m), x86_64) + CFLAGS += -march=x86-64 -m64 -D__64BIT__ + CXXFLAGS += -march=x86-64 -m64 -D__64BIT__ +endif + +####### Apply additional overruling user flags, if any +CFLAGS += $(CUSERFLAGS) +CXXFLAGS += $(CUSERFLAGS) + +####### Files + +HEADERS = +SOURCES = ../../../../../src/tools/ta_regtest/ta_regtest.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_candlestick.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_1in_1out.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_1in_2out.c \ + ../../../../../src/tools/ta_regtest/test_internals.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_adx.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_bbands.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_ma.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_macd.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_minmax.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_mom.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_per_ema.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hl.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hlc.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hlcv.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_per_ohlc.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_po.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_rsi.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_sar.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_stddev.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_stoch.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_trange.c \ + ../../../../../src/tools/ta_regtest/test_util.c \ + ../../../../../src/tools/ta_regtest/test_data.c \ + ../../../../../src/tools/ta_regtest/test_abstract.c +OBJECTS = ../../../../../temp/cmr/ta_regtest.o \ + ../../../../../temp/cmr/test_candlestick.o \ + ../../../../../temp/cmr/test_1in_1out.o \ + ../../../../../temp/cmr/test_1in_2out.o \ + ../../../../../temp/cmr/test_internals.o \ + ../../../../../temp/cmr/test_adx.o \ + ../../../../../temp/cmr/test_bbands.o \ + ../../../../../temp/cmr/test_ma.o \ + ../../../../../temp/cmr/test_macd.o \ + ../../../../../temp/cmr/test_minmax.o \ + ../../../../../temp/cmr/test_mom.o \ + ../../../../../temp/cmr/test_per_ema.o \ + ../../../../../temp/cmr/test_per_hl.o \ + ../../../../../temp/cmr/test_per_hlc.o \ + ../../../../../temp/cmr/test_per_hlcv.o \ + ../../../../../temp/cmr/test_per_ohlc.o \ + ../../../../../temp/cmr/test_po.o \ + ../../../../../temp/cmr/test_rsi.o \ + ../../../../../temp/cmr/test_sar.o \ + ../../../../../temp/cmr/test_stddev.o \ + ../../../../../temp/cmr/test_stoch.o \ + ../../../../../temp/cmr/test_trange.o \ + ../../../../../temp/cmr/test_util.o \ + ../../../../../temp/cmr/test_data.o \ + ../../../../../temp/cmr/test_abstract.o +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ../../../../../bin/ta_regtest +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .C .c + +.cpp.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cxx.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cc.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.C.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.c.o: + $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $< + +####### Build rules + + +all: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS) + +moc: $(SRCMOC) + +clean: + -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) + -rm -f *~ core + +####### Sub-libraries + + +###### Combined headers + + +####### Compile + +../../../../../temp/cmr/ta_regtest.o: ../../../../../src/tools/ta_regtest/ta_regtest.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/ta_regtest.o ../../../../../src/tools/ta_regtest/ta_regtest.c + +../../../../../temp/cmr/test_candlestick.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_candlestick.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/test_candlestick.o ../../../../../src/tools/ta_regtest/ta_test_func/test_candlestick.c + +../../../../../temp/cmr/test_1in_1out.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_1in_1out.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/test_1in_1out.o ../../../../../src/tools/ta_regtest/ta_test_func/test_1in_1out.c + +../../../../../temp/cmr/test_1in_2out.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_1in_2out.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/test_1in_2out.o ../../../../../src/tools/ta_regtest/ta_test_func/test_1in_2out.c + +../../../../../temp/cmr/test_internals.o: ../../../../../src/tools/ta_regtest/test_internals.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/test_internals.o ../../../../../src/tools/ta_regtest/test_internals.c + +../../../../../temp/cmr/test_adx.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_adx.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/test_adx.o ../../../../../src/tools/ta_regtest/ta_test_func/test_adx.c + +../../../../../temp/cmr/test_bbands.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_bbands.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/test_bbands.o ../../../../../src/tools/ta_regtest/ta_test_func/test_bbands.c + +../../../../../temp/cmr/test_ma.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_ma.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/test_ma.o ../../../../../src/tools/ta_regtest/ta_test_func/test_ma.c + +../../../../../temp/cmr/test_macd.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_macd.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/test_macd.o ../../../../../src/tools/ta_regtest/ta_test_func/test_macd.c + +../../../../../temp/cmr/test_minmax.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_minmax.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/test_minmax.o ../../../../../src/tools/ta_regtest/ta_test_func/test_minmax.c + +../../../../../temp/cmr/test_mom.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_mom.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/test_mom.o ../../../../../src/tools/ta_regtest/ta_test_func/test_mom.c + +../../../../../temp/cmr/test_per_ema.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_per_ema.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/test_per_ema.o ../../../../../src/tools/ta_regtest/ta_test_func/test_per_ema.c + +../../../../../temp/cmr/test_per_hl.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hl.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/test_per_hl.o ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hl.c + +../../../../../temp/cmr/test_per_hlc.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hlc.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/test_per_hlc.o ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hlc.c + +../../../../../temp/cmr/test_per_hlcv.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hlcv.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/test_per_hlcv.o ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hlcv.c + +../../../../../temp/cmr/test_per_ohlc.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_per_ohlc.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/test_per_ohlc.o ../../../../../src/tools/ta_regtest/ta_test_func/test_per_ohlc.c + +../../../../../temp/cmr/test_po.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_po.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/test_po.o ../../../../../src/tools/ta_regtest/ta_test_func/test_po.c + +../../../../../temp/cmr/test_rsi.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_rsi.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/test_rsi.o ../../../../../src/tools/ta_regtest/ta_test_func/test_rsi.c + +../../../../../temp/cmr/test_sar.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_sar.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/test_sar.o ../../../../../src/tools/ta_regtest/ta_test_func/test_sar.c + +../../../../../temp/cmr/test_stddev.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_stddev.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/test_stddev.o ../../../../../src/tools/ta_regtest/ta_test_func/test_stddev.c + +../../../../../temp/cmr/test_stoch.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_stoch.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/test_stoch.o ../../../../../src/tools/ta_regtest/ta_test_func/test_stoch.c + +../../../../../temp/cmr/test_trange.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_trange.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/test_trange.o ../../../../../src/tools/ta_regtest/ta_test_func/test_trange.c + +../../../../../temp/cmr/test_util.o: ../../../../../src/tools/ta_regtest/test_util.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/test_util.o ../../../../../src/tools/ta_regtest/test_util.c + +../../../../../temp/cmr/test_data.o: ../../../../../src/tools/ta_regtest/test_data.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/test_data.o ../../../../../src/tools/ta_regtest/test_data.c + +../../../../../temp/cmr/test_abstract.o: ../../../../../src/tools/ta_regtest/test_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/cmr/test_abstract.o ../../../../../src/tools/ta_regtest/test_abstract.c + diff --git a/make/cmr/win32/borland/Makefile b/make/cmr/win32/borland/Makefile new file mode 100644 index 000000000..f70a23db9 --- /dev/null +++ b/make/cmr/win32/borland/Makefile @@ -0,0 +1,96 @@ +############################################################################# +# Makefile for building targets in sub directories. +# Generated by tmake; +# Project: rootmake +# Template: subdirs +############################################################################# + +MAKEFILE= Makefile +TMAKE = tmake + +SUBDIRS = ta_common \ + ta_func \ + ta_abstract \ + ta_libc \ + gen_code \ + ta_regtest + +all: $(SUBDIRS) + +ta_common: + cd ta_common + $(MAKE) + @cd .. + +ta_func: + cd ta_func + $(MAKE) + @cd .. + +ta_abstract: + cd ta_abstract + $(MAKE) + @cd .. + +ta_libc: + cd ta_libc + $(MAKE) + @cd .. + +gen_code: + cd gen_code + $(MAKE) + @cd .. + +ta_regtest: + cd ta_regtest + $(MAKE) + @cd .. + + +tmake: ../cmr/win32/borland/Makefile + +../cmr/win32/borland/Makefile: rootmake.pro + tmake rootmake.pro -o ../cmr/win32/borland/Makefile + +tmake_all: + cd ta_common + $(TMAKE) ta_common.pro -o $(MAKEFILE) + @cd .. + cd ta_func + $(TMAKE) ta_func.pro -o $(MAKEFILE) + @cd .. + cd ta_abstract + $(TMAKE) ta_abstract.pro -o $(MAKEFILE) + @cd .. + cd ta_libc + $(TMAKE) ta_libc.pro -o $(MAKEFILE) + @cd .. + cd gen_code + $(TMAKE) gen_code.pro -o $(MAKEFILE) + @cd .. + cd ta_regtest + $(TMAKE) ta_regtest.pro -o $(MAKEFILE) + @cd .. + + +clean: + cd ta_common + $(MAKE) clean + @cd .. + cd ta_func + $(MAKE) clean + @cd .. + cd ta_abstract + $(MAKE) clean + @cd .. + cd ta_libc + $(MAKE) clean + @cd .. + cd gen_code + $(MAKE) clean + @cd .. + cd ta_regtest + $(MAKE) clean + @cd .. + diff --git a/make/cmr/win32/borland/gen_code/Makefile b/make/cmr/win32/borland/gen_code/Makefile new file mode 100644 index 000000000..7d4dc5e12 --- /dev/null +++ b/make/cmr/win32/borland/gen_code/Makefile @@ -0,0 +1,267 @@ +############################################################################# +# Makefile for building gen_code +# Generated by tmake; +# Project: gen_code/gen_code +# Template: app +############################################################################# + +!if !$d(BCB) +BCB = $(MAKEDIR)\.. +!endif + +####### Compiler, tools and options + +CC = bcc32 +CXX = bcc32 +CFLAGS = -x- -RT- -tWR -w -w-8004 -w-8071 -w-8057 -w-8080 -tWM -O2 -DTA_GEN_CODE -DWIN32 -DQT_THREAD_SUPPORT +CXXFLAGS= -x- -RT- -tWR -w -w-8004 -w-8071 -w-8057 -w-8080 -tWM -O2 -DTA_GEN_CODE -DWIN32 -DQT_THREAD_SUPPORT +INCPATH = -I"..\..\..\..\..\include" -I"..\..\..\..\..\src\ta_common" -I"..\..\..\..\..\src\ta_abstract" -I"..\..\..\..\..\src\ta_abstract\tables" -I"..\..\..\..\..\src\ta_abstract\frames" +LINK = ilink32 +LFLAGS = -L$(BCB)\lib -L$(BCB)\lib\PSDK -c -x -Gn -ap -Tpe c0x32.obj +LIBS = import32.lib cw32mti.lib ..\..\..\..\..\lib\ta_common_cmr.lib +MOC = moc +UIC = uic + +ZIP = zip -r -9 +DEF_FILE = +RES_FILE = + +####### Files + +HEADERS = +SOURCES = ..\..\..\..\..\src\tools\gen_code\gen_code.c \ + ..\..\..\..\..\src\ta_abstract\ta_abstract.c \ + ..\..\..\..\..\src\ta_abstract\ta_def_ui.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_a.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_b.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_c.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_d.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_e.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_f.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_g.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_h.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_i.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_j.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_k.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_l.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_m.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_n.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_o.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_p.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_q.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_r.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_s.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_t.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_u.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_v.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_w.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_x.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_y.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_z.c +OBJECTS = ..\..\..\..\..\temp\cmr\gen_code\gen_code.obj \ + ..\..\..\..\..\temp\cmr\gen_code\ta_abstract.obj \ + ..\..\..\..\..\temp\cmr\gen_code\ta_def_ui.obj \ + ..\..\..\..\..\temp\cmr\gen_code\table_a.obj \ + ..\..\..\..\..\temp\cmr\gen_code\table_b.obj \ + ..\..\..\..\..\temp\cmr\gen_code\table_c.obj \ + ..\..\..\..\..\temp\cmr\gen_code\table_d.obj \ + ..\..\..\..\..\temp\cmr\gen_code\table_e.obj \ + ..\..\..\..\..\temp\cmr\gen_code\table_f.obj \ + ..\..\..\..\..\temp\cmr\gen_code\table_g.obj \ + ..\..\..\..\..\temp\cmr\gen_code\table_h.obj \ + ..\..\..\..\..\temp\cmr\gen_code\table_i.obj \ + ..\..\..\..\..\temp\cmr\gen_code\table_j.obj \ + ..\..\..\..\..\temp\cmr\gen_code\table_k.obj \ + ..\..\..\..\..\temp\cmr\gen_code\table_l.obj \ + ..\..\..\..\..\temp\cmr\gen_code\table_m.obj \ + ..\..\..\..\..\temp\cmr\gen_code\table_n.obj \ + ..\..\..\..\..\temp\cmr\gen_code\table_o.obj \ + ..\..\..\..\..\temp\cmr\gen_code\table_p.obj \ + ..\..\..\..\..\temp\cmr\gen_code\table_q.obj \ + ..\..\..\..\..\temp\cmr\gen_code\table_r.obj \ + ..\..\..\..\..\temp\cmr\gen_code\table_s.obj \ + ..\..\..\..\..\temp\cmr\gen_code\table_t.obj \ + ..\..\..\..\..\temp\cmr\gen_code\table_u.obj \ + ..\..\..\..\..\temp\cmr\gen_code\table_v.obj \ + ..\..\..\..\..\temp\cmr\gen_code\table_w.obj \ + ..\..\..\..\..\temp\cmr\gen_code\table_x.obj \ + ..\..\..\..\..\temp\cmr\gen_code\table_y.obj \ + ..\..\..\..\..\temp\cmr\gen_code\table_z.obj +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ..\..\..\..\..\bin\gen_code.exe +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .c + +.cpp.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.cxx.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.cc.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.c.obj: + $(CC) -c $(CFLAGS) $(INCPATH) -o$@ $< + +####### Build rules + +all: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + $(LINK) @&&| + $(LFLAGS) $(OBJECTS) $(OBJMOC),$(TARGET),,$(LIBS),$(DEF_FILE),$(RES_FILE) +| + +moc: $(SRCMOC) + +tmake: ../cmr/win32/borland/gen_code/Makefile + +../cmr/win32/borland/gen_code/Makefile: gen_code/gen_code.pro + tmake gen_code/gen_code.pro -o ../cmr/win32/borland/gen_code/Makefile + +dist: + $(ZIP) gen_code/gen_code.zip gen_code/gen_code.pro $(SOURCES) $(HEADERS) $(DIST) + +clean: + -del ..\..\..\..\..\temp\cmr\gen_code\gen_code.obj + -del ..\..\..\..\..\temp\cmr\gen_code\ta_abstract.obj + -del ..\..\..\..\..\temp\cmr\gen_code\ta_def_ui.obj + -del ..\..\..\..\..\temp\cmr\gen_code\table_a.obj + -del ..\..\..\..\..\temp\cmr\gen_code\table_b.obj + -del ..\..\..\..\..\temp\cmr\gen_code\table_c.obj + -del ..\..\..\..\..\temp\cmr\gen_code\table_d.obj + -del ..\..\..\..\..\temp\cmr\gen_code\table_e.obj + -del ..\..\..\..\..\temp\cmr\gen_code\table_f.obj + -del ..\..\..\..\..\temp\cmr\gen_code\table_g.obj + -del ..\..\..\..\..\temp\cmr\gen_code\table_h.obj + -del ..\..\..\..\..\temp\cmr\gen_code\table_i.obj + -del ..\..\..\..\..\temp\cmr\gen_code\table_j.obj + -del ..\..\..\..\..\temp\cmr\gen_code\table_k.obj + -del ..\..\..\..\..\temp\cmr\gen_code\table_l.obj + -del ..\..\..\..\..\temp\cmr\gen_code\table_m.obj + -del ..\..\..\..\..\temp\cmr\gen_code\table_n.obj + -del ..\..\..\..\..\temp\cmr\gen_code\table_o.obj + -del ..\..\..\..\..\temp\cmr\gen_code\table_p.obj + -del ..\..\..\..\..\temp\cmr\gen_code\table_q.obj + -del ..\..\..\..\..\temp\cmr\gen_code\table_r.obj + -del ..\..\..\..\..\temp\cmr\gen_code\table_s.obj + -del ..\..\..\..\..\temp\cmr\gen_code\table_t.obj + -del ..\..\..\..\..\temp\cmr\gen_code\table_u.obj + -del ..\..\..\..\..\temp\cmr\gen_code\table_v.obj + -del ..\..\..\..\..\temp\cmr\gen_code\table_w.obj + -del ..\..\..\..\..\temp\cmr\gen_code\table_x.obj + -del ..\..\..\..\..\temp\cmr\gen_code\table_y.obj + -del ..\..\..\..\..\temp\cmr\gen_code\table_z.obj + -del $(TARGET) + -del gen_code.tds + -del ../../../../../bin/*.map + -del ../../../../../bin/*._xe + -del ../../../../../bin/*.tds + -del ../../../../../bin/*.pdb + -del ../../../../../bin/*.pbo + -del ../../../../../bin/*.pbi + -del ../../../../../bin/*.pbt + -del ../../../../../temp/cmr/*.pch + -del ../../../../../temp/cmr/*.idb + -del ../../../../../temp/cmr/gen_code/*.pch + -del ../../../../../temp/cmr/gen_code/*.idb + -del ../../../../../temp/cmr/gen_code/*.obj + +####### Compile + +..\..\..\..\..\temp\cmr\gen_code\gen_code.obj: ..\..\..\..\..\src\tools\gen_code\gen_code.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\gen_code\gen_code.obj ..\..\..\..\..\src\tools\gen_code\gen_code.c + +..\..\..\..\..\temp\cmr\gen_code\ta_abstract.obj: ..\..\..\..\..\src\ta_abstract\ta_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\gen_code\ta_abstract.obj ..\..\..\..\..\src\ta_abstract\ta_abstract.c + +..\..\..\..\..\temp\cmr\gen_code\ta_def_ui.obj: ..\..\..\..\..\src\ta_abstract\ta_def_ui.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\gen_code\ta_def_ui.obj ..\..\..\..\..\src\ta_abstract\ta_def_ui.c + +..\..\..\..\..\temp\cmr\gen_code\table_a.obj: ..\..\..\..\..\src\ta_abstract\tables\table_a.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\gen_code\table_a.obj ..\..\..\..\..\src\ta_abstract\tables\table_a.c + +..\..\..\..\..\temp\cmr\gen_code\table_b.obj: ..\..\..\..\..\src\ta_abstract\tables\table_b.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\gen_code\table_b.obj ..\..\..\..\..\src\ta_abstract\tables\table_b.c + +..\..\..\..\..\temp\cmr\gen_code\table_c.obj: ..\..\..\..\..\src\ta_abstract\tables\table_c.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\gen_code\table_c.obj ..\..\..\..\..\src\ta_abstract\tables\table_c.c + +..\..\..\..\..\temp\cmr\gen_code\table_d.obj: ..\..\..\..\..\src\ta_abstract\tables\table_d.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\gen_code\table_d.obj ..\..\..\..\..\src\ta_abstract\tables\table_d.c + +..\..\..\..\..\temp\cmr\gen_code\table_e.obj: ..\..\..\..\..\src\ta_abstract\tables\table_e.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\gen_code\table_e.obj ..\..\..\..\..\src\ta_abstract\tables\table_e.c + +..\..\..\..\..\temp\cmr\gen_code\table_f.obj: ..\..\..\..\..\src\ta_abstract\tables\table_f.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\gen_code\table_f.obj ..\..\..\..\..\src\ta_abstract\tables\table_f.c + +..\..\..\..\..\temp\cmr\gen_code\table_g.obj: ..\..\..\..\..\src\ta_abstract\tables\table_g.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\gen_code\table_g.obj ..\..\..\..\..\src\ta_abstract\tables\table_g.c + +..\..\..\..\..\temp\cmr\gen_code\table_h.obj: ..\..\..\..\..\src\ta_abstract\tables\table_h.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\gen_code\table_h.obj ..\..\..\..\..\src\ta_abstract\tables\table_h.c + +..\..\..\..\..\temp\cmr\gen_code\table_i.obj: ..\..\..\..\..\src\ta_abstract\tables\table_i.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\gen_code\table_i.obj ..\..\..\..\..\src\ta_abstract\tables\table_i.c + +..\..\..\..\..\temp\cmr\gen_code\table_j.obj: ..\..\..\..\..\src\ta_abstract\tables\table_j.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\gen_code\table_j.obj ..\..\..\..\..\src\ta_abstract\tables\table_j.c + +..\..\..\..\..\temp\cmr\gen_code\table_k.obj: ..\..\..\..\..\src\ta_abstract\tables\table_k.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\gen_code\table_k.obj ..\..\..\..\..\src\ta_abstract\tables\table_k.c + +..\..\..\..\..\temp\cmr\gen_code\table_l.obj: ..\..\..\..\..\src\ta_abstract\tables\table_l.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\gen_code\table_l.obj ..\..\..\..\..\src\ta_abstract\tables\table_l.c + +..\..\..\..\..\temp\cmr\gen_code\table_m.obj: ..\..\..\..\..\src\ta_abstract\tables\table_m.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\gen_code\table_m.obj ..\..\..\..\..\src\ta_abstract\tables\table_m.c + +..\..\..\..\..\temp\cmr\gen_code\table_n.obj: ..\..\..\..\..\src\ta_abstract\tables\table_n.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\gen_code\table_n.obj ..\..\..\..\..\src\ta_abstract\tables\table_n.c + +..\..\..\..\..\temp\cmr\gen_code\table_o.obj: ..\..\..\..\..\src\ta_abstract\tables\table_o.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\gen_code\table_o.obj ..\..\..\..\..\src\ta_abstract\tables\table_o.c + +..\..\..\..\..\temp\cmr\gen_code\table_p.obj: ..\..\..\..\..\src\ta_abstract\tables\table_p.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\gen_code\table_p.obj ..\..\..\..\..\src\ta_abstract\tables\table_p.c + +..\..\..\..\..\temp\cmr\gen_code\table_q.obj: ..\..\..\..\..\src\ta_abstract\tables\table_q.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\gen_code\table_q.obj ..\..\..\..\..\src\ta_abstract\tables\table_q.c + +..\..\..\..\..\temp\cmr\gen_code\table_r.obj: ..\..\..\..\..\src\ta_abstract\tables\table_r.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\gen_code\table_r.obj ..\..\..\..\..\src\ta_abstract\tables\table_r.c + +..\..\..\..\..\temp\cmr\gen_code\table_s.obj: ..\..\..\..\..\src\ta_abstract\tables\table_s.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\gen_code\table_s.obj ..\..\..\..\..\src\ta_abstract\tables\table_s.c + +..\..\..\..\..\temp\cmr\gen_code\table_t.obj: ..\..\..\..\..\src\ta_abstract\tables\table_t.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\gen_code\table_t.obj ..\..\..\..\..\src\ta_abstract\tables\table_t.c + +..\..\..\..\..\temp\cmr\gen_code\table_u.obj: ..\..\..\..\..\src\ta_abstract\tables\table_u.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\gen_code\table_u.obj ..\..\..\..\..\src\ta_abstract\tables\table_u.c + +..\..\..\..\..\temp\cmr\gen_code\table_v.obj: ..\..\..\..\..\src\ta_abstract\tables\table_v.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\gen_code\table_v.obj ..\..\..\..\..\src\ta_abstract\tables\table_v.c + +..\..\..\..\..\temp\cmr\gen_code\table_w.obj: ..\..\..\..\..\src\ta_abstract\tables\table_w.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\gen_code\table_w.obj ..\..\..\..\..\src\ta_abstract\tables\table_w.c + +..\..\..\..\..\temp\cmr\gen_code\table_x.obj: ..\..\..\..\..\src\ta_abstract\tables\table_x.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\gen_code\table_x.obj ..\..\..\..\..\src\ta_abstract\tables\table_x.c + +..\..\..\..\..\temp\cmr\gen_code\table_y.obj: ..\..\..\..\..\src\ta_abstract\tables\table_y.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\gen_code\table_y.obj ..\..\..\..\..\src\ta_abstract\tables\table_y.c + +..\..\..\..\..\temp\cmr\gen_code\table_z.obj: ..\..\..\..\..\src\ta_abstract\tables\table_z.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\gen_code\table_z.obj ..\..\..\..\..\src\ta_abstract\tables\table_z.c + diff --git a/make/cmr/win32/borland/ta_abstract/Makefile b/make/cmr/win32/borland/ta_abstract/Makefile new file mode 100644 index 000000000..d1a934f96 --- /dev/null +++ b/make/cmr/win32/borland/ta_abstract/Makefile @@ -0,0 +1,309 @@ +############################################################################# +# Makefile for building ta_abstract_cmr +# Generated by tmake; +# Project: ta_abstract/ta_abstract +# Template: lib +############################################################################# + +!if !$d(BCB) +BCB = $(MAKEDIR)\.. +!endif + +####### Compiler, tools and options + +CC = bcc32 +CXX = bcc32 +CFLAGS = -x- -RT- -tWR -w -w-8004 -w-8071 -w-8057 -w-8080 -tWM -O2 -DWIN32 -DQT_THREAD_SUPPORT +CXXFLAGS= -x- -RT- -tWR -w -w-8004 -w-8071 -w-8057 -w-8080 -tWM -O2 -DWIN32 -DQT_THREAD_SUPPORT +INCPATH = -I"..\..\..\..\..\src\ta_common" -I"..\..\..\..\..\src\ta_abstract" -I"..\..\..\..\..\src\ta_abstract\tables" -I"..\..\..\..\..\src\ta_abstract\frames" -I"..\..\..\..\..\include" +LIB = tlib /C /P256 +MOC = moc +UIC = uic + +ZIP = zip -r -9 +DEF_FILE = +RES_FILE = + +####### Files + +HEADERS = +SOURCES = ..\..\..\..\..\src\ta_abstract\ta_abstract.c \ + ..\..\..\..\..\src\ta_abstract\ta_def_ui.c \ + ..\..\..\..\..\src\ta_abstract\ta_func_api.c \ + ..\..\..\..\..\src\ta_abstract\ta_group_idx.c \ + ..\..\..\..\..\src\ta_abstract\frames\ta_frame.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_a.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_b.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_c.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_d.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_e.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_f.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_g.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_h.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_i.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_j.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_k.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_l.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_m.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_n.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_o.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_p.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_q.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_r.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_s.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_t.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_u.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_v.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_w.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_x.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_y.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_z.c +OBJECTS = ..\..\..\..\..\temp\cmr\ta_abstract.obj \ + ..\..\..\..\..\temp\cmr\ta_def_ui.obj \ + ..\..\..\..\..\temp\cmr\ta_func_api.obj \ + ..\..\..\..\..\temp\cmr\ta_group_idx.obj \ + ..\..\..\..\..\temp\cmr\ta_frame.obj \ + ..\..\..\..\..\temp\cmr\table_a.obj \ + ..\..\..\..\..\temp\cmr\table_b.obj \ + ..\..\..\..\..\temp\cmr\table_c.obj \ + ..\..\..\..\..\temp\cmr\table_d.obj \ + ..\..\..\..\..\temp\cmr\table_e.obj \ + ..\..\..\..\..\temp\cmr\table_f.obj \ + ..\..\..\..\..\temp\cmr\table_g.obj \ + ..\..\..\..\..\temp\cmr\table_h.obj \ + ..\..\..\..\..\temp\cmr\table_i.obj \ + ..\..\..\..\..\temp\cmr\table_j.obj \ + ..\..\..\..\..\temp\cmr\table_k.obj \ + ..\..\..\..\..\temp\cmr\table_l.obj \ + ..\..\..\..\..\temp\cmr\table_m.obj \ + ..\..\..\..\..\temp\cmr\table_n.obj \ + ..\..\..\..\..\temp\cmr\table_o.obj \ + ..\..\..\..\..\temp\cmr\table_p.obj \ + ..\..\..\..\..\temp\cmr\table_q.obj \ + ..\..\..\..\..\temp\cmr\table_r.obj \ + ..\..\..\..\..\temp\cmr\table_s.obj \ + ..\..\..\..\..\temp\cmr\table_t.obj \ + ..\..\..\..\..\temp\cmr\table_u.obj \ + ..\..\..\..\..\temp\cmr\table_v.obj \ + ..\..\..\..\..\temp\cmr\table_w.obj \ + ..\..\..\..\..\temp\cmr\table_x.obj \ + ..\..\..\..\..\temp\cmr\table_y.obj \ + ..\..\..\..\..\temp\cmr\table_z.obj +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ..\..\..\..\..\lib\ta_abstract_cmr.lib +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .c + +.cpp.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.cxx.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.cc.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.c.obj: + $(CC) -c $(CFLAGS) $(INCPATH) -o$@ $< + +####### Build rules + +all: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + -del $(TARGET) + $(LIB) $(TARGET) @&&| ++..\..\..\..\..\temp\cmr\ta_abstract.obj \ ++..\..\..\..\..\temp\cmr\ta_def_ui.obj \ ++..\..\..\..\..\temp\cmr\ta_func_api.obj \ ++..\..\..\..\..\temp\cmr\ta_group_idx.obj \ ++..\..\..\..\..\temp\cmr\ta_frame.obj \ ++..\..\..\..\..\temp\cmr\table_a.obj \ ++..\..\..\..\..\temp\cmr\table_b.obj \ ++..\..\..\..\..\temp\cmr\table_c.obj \ ++..\..\..\..\..\temp\cmr\table_d.obj \ ++..\..\..\..\..\temp\cmr\table_e.obj \ ++..\..\..\..\..\temp\cmr\table_f.obj \ ++..\..\..\..\..\temp\cmr\table_g.obj \ ++..\..\..\..\..\temp\cmr\table_h.obj \ ++..\..\..\..\..\temp\cmr\table_i.obj \ ++..\..\..\..\..\temp\cmr\table_j.obj \ ++..\..\..\..\..\temp\cmr\table_k.obj \ ++..\..\..\..\..\temp\cmr\table_l.obj \ ++..\..\..\..\..\temp\cmr\table_m.obj \ ++..\..\..\..\..\temp\cmr\table_n.obj \ ++..\..\..\..\..\temp\cmr\table_o.obj \ ++..\..\..\..\..\temp\cmr\table_p.obj \ ++..\..\..\..\..\temp\cmr\table_q.obj \ ++..\..\..\..\..\temp\cmr\table_r.obj \ ++..\..\..\..\..\temp\cmr\table_s.obj \ ++..\..\..\..\..\temp\cmr\table_t.obj \ ++..\..\..\..\..\temp\cmr\table_u.obj \ ++..\..\..\..\..\temp\cmr\table_v.obj \ ++..\..\..\..\..\temp\cmr\table_w.obj \ ++..\..\..\..\..\temp\cmr\table_x.obj \ ++..\..\..\..\..\temp\cmr\table_y.obj \ ++..\..\..\..\..\temp\cmr\table_z.obj \ ++ +| + +moc: $(SRCMOC) + +tmake: ../cmr/win32/borland/ta_abstract/Makefile + +../cmr/win32/borland/ta_abstract/Makefile: ta_abstract/ta_abstract.pro + tmake ta_abstract/ta_abstract.pro -o ../cmr/win32/borland/ta_abstract/Makefile + +dist: + $(ZIP) ta_abstract/ta_abstract.zip ta_abstract/ta_abstract.pro $(SOURCES) $(HEADERS) $(DIST) + +clean: + -del ..\..\..\..\..\temp\cmr\ta_abstract.obj + -del ..\..\..\..\..\temp\cmr\ta_def_ui.obj + -del ..\..\..\..\..\temp\cmr\ta_func_api.obj + -del ..\..\..\..\..\temp\cmr\ta_group_idx.obj + -del ..\..\..\..\..\temp\cmr\ta_frame.obj + -del ..\..\..\..\..\temp\cmr\table_a.obj + -del ..\..\..\..\..\temp\cmr\table_b.obj + -del ..\..\..\..\..\temp\cmr\table_c.obj + -del ..\..\..\..\..\temp\cmr\table_d.obj + -del ..\..\..\..\..\temp\cmr\table_e.obj + -del ..\..\..\..\..\temp\cmr\table_f.obj + -del ..\..\..\..\..\temp\cmr\table_g.obj + -del ..\..\..\..\..\temp\cmr\table_h.obj + -del ..\..\..\..\..\temp\cmr\table_i.obj + -del ..\..\..\..\..\temp\cmr\table_j.obj + -del ..\..\..\..\..\temp\cmr\table_k.obj + -del ..\..\..\..\..\temp\cmr\table_l.obj + -del ..\..\..\..\..\temp\cmr\table_m.obj + -del ..\..\..\..\..\temp\cmr\table_n.obj + -del ..\..\..\..\..\temp\cmr\table_o.obj + -del ..\..\..\..\..\temp\cmr\table_p.obj + -del ..\..\..\..\..\temp\cmr\table_q.obj + -del ..\..\..\..\..\temp\cmr\table_r.obj + -del ..\..\..\..\..\temp\cmr\table_s.obj + -del ..\..\..\..\..\temp\cmr\table_t.obj + -del ..\..\..\..\..\temp\cmr\table_u.obj + -del ..\..\..\..\..\temp\cmr\table_v.obj + -del ..\..\..\..\..\temp\cmr\table_w.obj + -del ..\..\..\..\..\temp\cmr\table_x.obj + -del ..\..\..\..\..\temp\cmr\table_y.obj + -del ..\..\..\..\..\temp\cmr\table_z.obj + -del $(TARGET) + -del ta_abstract_cmr.tds + -del ../../../../../bin/*.map + -del ../../../../../bin/*._xe + -del ../../../../../bin/*.tds + -del ../../../../../bin/*.pdb + -del ../../../../../bin/*.pbo + -del ../../../../../bin/*.pbi + -del ../../../../../bin/*.pbt + -del ../../../../../temp/cmr/*.pch + -del ../../../../../temp/cmr/*.idb + -del ../../../../../temp/cmr/ta_abstract/*.pch + -del ../../../../../temp/cmr/ta_abstract/*.idb + -del ../../../../../temp/cmr/ta_abstract/*.obj + +####### Compile + +..\..\..\..\..\temp\cmr\ta_abstract.obj: ..\..\..\..\..\src\ta_abstract\ta_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_abstract.obj ..\..\..\..\..\src\ta_abstract\ta_abstract.c + +..\..\..\..\..\temp\cmr\ta_def_ui.obj: ..\..\..\..\..\src\ta_abstract\ta_def_ui.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_def_ui.obj ..\..\..\..\..\src\ta_abstract\ta_def_ui.c + +..\..\..\..\..\temp\cmr\ta_func_api.obj: ..\..\..\..\..\src\ta_abstract\ta_func_api.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_func_api.obj ..\..\..\..\..\src\ta_abstract\ta_func_api.c + +..\..\..\..\..\temp\cmr\ta_group_idx.obj: ..\..\..\..\..\src\ta_abstract\ta_group_idx.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_group_idx.obj ..\..\..\..\..\src\ta_abstract\ta_group_idx.c + +..\..\..\..\..\temp\cmr\ta_frame.obj: ..\..\..\..\..\src\ta_abstract\frames\ta_frame.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_frame.obj ..\..\..\..\..\src\ta_abstract\frames\ta_frame.c + +..\..\..\..\..\temp\cmr\table_a.obj: ..\..\..\..\..\src\ta_abstract\tables\table_a.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\table_a.obj ..\..\..\..\..\src\ta_abstract\tables\table_a.c + +..\..\..\..\..\temp\cmr\table_b.obj: ..\..\..\..\..\src\ta_abstract\tables\table_b.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\table_b.obj ..\..\..\..\..\src\ta_abstract\tables\table_b.c + +..\..\..\..\..\temp\cmr\table_c.obj: ..\..\..\..\..\src\ta_abstract\tables\table_c.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\table_c.obj ..\..\..\..\..\src\ta_abstract\tables\table_c.c + +..\..\..\..\..\temp\cmr\table_d.obj: ..\..\..\..\..\src\ta_abstract\tables\table_d.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\table_d.obj ..\..\..\..\..\src\ta_abstract\tables\table_d.c + +..\..\..\..\..\temp\cmr\table_e.obj: ..\..\..\..\..\src\ta_abstract\tables\table_e.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\table_e.obj ..\..\..\..\..\src\ta_abstract\tables\table_e.c + +..\..\..\..\..\temp\cmr\table_f.obj: ..\..\..\..\..\src\ta_abstract\tables\table_f.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\table_f.obj ..\..\..\..\..\src\ta_abstract\tables\table_f.c + +..\..\..\..\..\temp\cmr\table_g.obj: ..\..\..\..\..\src\ta_abstract\tables\table_g.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\table_g.obj ..\..\..\..\..\src\ta_abstract\tables\table_g.c + +..\..\..\..\..\temp\cmr\table_h.obj: ..\..\..\..\..\src\ta_abstract\tables\table_h.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\table_h.obj ..\..\..\..\..\src\ta_abstract\tables\table_h.c + +..\..\..\..\..\temp\cmr\table_i.obj: ..\..\..\..\..\src\ta_abstract\tables\table_i.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\table_i.obj ..\..\..\..\..\src\ta_abstract\tables\table_i.c + +..\..\..\..\..\temp\cmr\table_j.obj: ..\..\..\..\..\src\ta_abstract\tables\table_j.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\table_j.obj ..\..\..\..\..\src\ta_abstract\tables\table_j.c + +..\..\..\..\..\temp\cmr\table_k.obj: ..\..\..\..\..\src\ta_abstract\tables\table_k.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\table_k.obj ..\..\..\..\..\src\ta_abstract\tables\table_k.c + +..\..\..\..\..\temp\cmr\table_l.obj: ..\..\..\..\..\src\ta_abstract\tables\table_l.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\table_l.obj ..\..\..\..\..\src\ta_abstract\tables\table_l.c + +..\..\..\..\..\temp\cmr\table_m.obj: ..\..\..\..\..\src\ta_abstract\tables\table_m.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\table_m.obj ..\..\..\..\..\src\ta_abstract\tables\table_m.c + +..\..\..\..\..\temp\cmr\table_n.obj: ..\..\..\..\..\src\ta_abstract\tables\table_n.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\table_n.obj ..\..\..\..\..\src\ta_abstract\tables\table_n.c + +..\..\..\..\..\temp\cmr\table_o.obj: ..\..\..\..\..\src\ta_abstract\tables\table_o.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\table_o.obj ..\..\..\..\..\src\ta_abstract\tables\table_o.c + +..\..\..\..\..\temp\cmr\table_p.obj: ..\..\..\..\..\src\ta_abstract\tables\table_p.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\table_p.obj ..\..\..\..\..\src\ta_abstract\tables\table_p.c + +..\..\..\..\..\temp\cmr\table_q.obj: ..\..\..\..\..\src\ta_abstract\tables\table_q.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\table_q.obj ..\..\..\..\..\src\ta_abstract\tables\table_q.c + +..\..\..\..\..\temp\cmr\table_r.obj: ..\..\..\..\..\src\ta_abstract\tables\table_r.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\table_r.obj ..\..\..\..\..\src\ta_abstract\tables\table_r.c + +..\..\..\..\..\temp\cmr\table_s.obj: ..\..\..\..\..\src\ta_abstract\tables\table_s.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\table_s.obj ..\..\..\..\..\src\ta_abstract\tables\table_s.c + +..\..\..\..\..\temp\cmr\table_t.obj: ..\..\..\..\..\src\ta_abstract\tables\table_t.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\table_t.obj ..\..\..\..\..\src\ta_abstract\tables\table_t.c + +..\..\..\..\..\temp\cmr\table_u.obj: ..\..\..\..\..\src\ta_abstract\tables\table_u.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\table_u.obj ..\..\..\..\..\src\ta_abstract\tables\table_u.c + +..\..\..\..\..\temp\cmr\table_v.obj: ..\..\..\..\..\src\ta_abstract\tables\table_v.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\table_v.obj ..\..\..\..\..\src\ta_abstract\tables\table_v.c + +..\..\..\..\..\temp\cmr\table_w.obj: ..\..\..\..\..\src\ta_abstract\tables\table_w.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\table_w.obj ..\..\..\..\..\src\ta_abstract\tables\table_w.c + +..\..\..\..\..\temp\cmr\table_x.obj: ..\..\..\..\..\src\ta_abstract\tables\table_x.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\table_x.obj ..\..\..\..\..\src\ta_abstract\tables\table_x.c + +..\..\..\..\..\temp\cmr\table_y.obj: ..\..\..\..\..\src\ta_abstract\tables\table_y.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\table_y.obj ..\..\..\..\..\src\ta_abstract\tables\table_y.c + +..\..\..\..\..\temp\cmr\table_z.obj: ..\..\..\..\..\src\ta_abstract\tables\table_z.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\table_z.obj ..\..\..\..\..\src\ta_abstract\tables\table_z.c + diff --git a/make/cmr/win32/borland/ta_common/Makefile b/make/cmr/win32/borland/ta_common/Makefile new file mode 100644 index 000000000..a49dbda7c --- /dev/null +++ b/make/cmr/win32/borland/ta_common/Makefile @@ -0,0 +1,113 @@ +############################################################################# +# Makefile for building ta_common_cmr +# Generated by tmake; +# Project: ta_common/ta_common +# Template: lib +############################################################################# + +!if !$d(BCB) +BCB = $(MAKEDIR)\.. +!endif + +####### Compiler, tools and options + +CC = bcc32 +CXX = bcc32 +CFLAGS = -x- -RT- -tWR -w -w-8004 -w-8071 -w-8057 -w-8080 -tWM -O2 -DWIN32 -DQT_THREAD_SUPPORT +CXXFLAGS= -x- -RT- -tWR -w -w-8004 -w-8071 -w-8057 -w-8080 -tWM -O2 -DWIN32 -DQT_THREAD_SUPPORT +INCPATH = -I"..\..\..\..\..\src\ta_common" -I"..\..\..\..\..\include" +LIB = tlib /C /P256 +MOC = moc +UIC = uic + +ZIP = zip -r -9 +DEF_FILE = +RES_FILE = + +####### Files + +HEADERS = +SOURCES = ..\..\..\..\..\src\ta_common\ta_global.c \ + ..\..\..\..\..\src\ta_common\ta_retcode.c \ + ..\..\..\..\..\src\ta_common\ta_version.c +OBJECTS = ..\..\..\..\..\temp\cmr\ta_global.obj \ + ..\..\..\..\..\temp\cmr\ta_retcode.obj \ + ..\..\..\..\..\temp\cmr\ta_version.obj +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ..\..\..\..\..\lib\ta_common_cmr.lib +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .c + +.cpp.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.cxx.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.cc.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.c.obj: + $(CC) -c $(CFLAGS) $(INCPATH) -o$@ $< + +####### Build rules + +all: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + -del $(TARGET) + $(LIB) $(TARGET) @&&| ++..\..\..\..\..\temp\cmr\ta_global.obj \ ++..\..\..\..\..\temp\cmr\ta_retcode.obj \ ++..\..\..\..\..\temp\cmr\ta_version.obj \ ++ +| + +moc: $(SRCMOC) + +tmake: ../cmr/win32/borland/ta_common/Makefile + +../cmr/win32/borland/ta_common/Makefile: ta_common/ta_common.pro + tmake ta_common/ta_common.pro -o ../cmr/win32/borland/ta_common/Makefile + +dist: + $(ZIP) ta_common/ta_common.zip ta_common/ta_common.pro $(SOURCES) $(HEADERS) $(DIST) + +clean: + -del ..\..\..\..\..\temp\cmr\ta_global.obj + -del ..\..\..\..\..\temp\cmr\ta_retcode.obj + -del ..\..\..\..\..\temp\cmr\ta_version.obj + -del $(TARGET) + -del ta_common_cmr.tds + -del ../../../../../bin/*.map + -del ../../../../../bin/*._xe + -del ../../../../../bin/*.tds + -del ../../../../../bin/*.pdb + -del ../../../../../bin/*.pbo + -del ../../../../../bin/*.pbi + -del ../../../../../bin/*.pbt + -del ../../../../../temp/cmr/*.pch + -del ../../../../../temp/cmr/*.idb + -del ../../../../../temp/cmr/ta_common_cmr/*.pch + -del ../../../../../temp/cmr/ta_common_cmr/*.idb + -del ../../../../../temp/cmr/ta_common_cmr/*.obj + +####### Compile + +..\..\..\..\..\temp\cmr\ta_global.obj: ..\..\..\..\..\src\ta_common\ta_global.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_global.obj ..\..\..\..\..\src\ta_common\ta_global.c + +..\..\..\..\..\temp\cmr\ta_retcode.obj: ..\..\..\..\..\src\ta_common\ta_retcode.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_retcode.obj ..\..\..\..\..\src\ta_common\ta_retcode.c + +..\..\..\..\..\temp\cmr\ta_version.obj: ..\..\..\..\..\src\ta_common\ta_version.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_version.obj ..\..\..\..\..\src\ta_common\ta_version.c + diff --git a/make/cmr/win32/borland/ta_func/Makefile b/make/cmr/win32/borland/ta_func/Makefile new file mode 100644 index 000000000..9b7a0a81f --- /dev/null +++ b/make/cmr/win32/borland/ta_func/Makefile @@ -0,0 +1,1205 @@ +############################################################################# +# Makefile for building ta_func_cmr +# Generated by tmake; +# Project: ta_func/ta_func +# Template: lib +############################################################################# + +!if !$d(BCB) +BCB = $(MAKEDIR)\.. +!endif + +####### Compiler, tools and options + +CC = bcc32 +CXX = bcc32 +CFLAGS = -x- -RT- -tWR -w -w-8004 -w-8071 -w-8057 -w-8080 -tWM -O2 -DWIN32 -DQT_THREAD_SUPPORT +CXXFLAGS= -x- -RT- -tWR -w -w-8004 -w-8071 -w-8057 -w-8080 -tWM -O2 -DWIN32 -DQT_THREAD_SUPPORT +INCPATH = -I"..\..\..\..\..\src\ta_common" -I"\n" -I"..\..\..\..\..\include" +LIB = tlib /C /P256 +MOC = moc +UIC = uic + +ZIP = zip -r -9 +DEF_FILE = +RES_FILE = + +####### Files + +HEADERS = +SOURCES = ..\..\..\..\..\src\ta_func\ta_utility.c \ + ..\..\..\..\..\src\ta_func\ta_ACOS.c \ + ..\..\..\..\..\src\ta_func\ta_AD.c \ + ..\..\..\..\..\src\ta_func\ta_ADD.c \ + ..\..\..\..\..\src\ta_func\ta_ADOSC.c \ + ..\..\..\..\..\src\ta_func\ta_ADX.c \ + ..\..\..\..\..\src\ta_func\ta_ADXR.c \ + ..\..\..\..\..\src\ta_func\ta_APO.c \ + ..\..\..\..\..\src\ta_func\ta_AROON.c \ + ..\..\..\..\..\src\ta_func\ta_AROONOSC.c \ + ..\..\..\..\..\src\ta_func\ta_ASIN.c \ + ..\..\..\..\..\src\ta_func\ta_ATAN.c \ + ..\..\..\..\..\src\ta_func\ta_ATR.c \ + ..\..\..\..\..\src\ta_func\ta_AVGPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_BBANDS.c \ + ..\..\..\..\..\src\ta_func\ta_BETA.c \ + ..\..\..\..\..\src\ta_func\ta_BOP.c \ + ..\..\..\..\..\src\ta_func\ta_CCI.c \ + ..\..\..\..\..\src\ta_func\ta_CDL2CROWS.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3BLACKCROWS.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3INSIDE.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3LINESTRIKE.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3OUTSIDE.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3STARSINSOUTH.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3WHITESOLDIERS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLABANDONEDBABY.c \ + ..\..\..\..\..\src\ta_func\ta_CDLADVANCEBLOCK.c \ + ..\..\..\..\..\src\ta_func\ta_CDLBELTHOLD.c \ + ..\..\..\..\..\src\ta_func\ta_CDLBREAKAWAY.c \ + ..\..\..\..\..\src\ta_func\ta_CDLCLOSINGMARUBOZU.c \ + ..\..\..\..\..\src\ta_func\ta_CDLCONCEALBABYSWALL.c \ + ..\..\..\..\..\src\ta_func\ta_CDLCOUNTERATTACK.c \ + ..\..\..\..\..\src\ta_func\ta_CDLDARKCLOUDCOVER.c \ + ..\..\..\..\..\src\ta_func\ta_CDLDOJI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLDOJISTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLDRAGONFLYDOJI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLENGULFING.c \ + ..\..\..\..\..\src\ta_func\ta_CDLEVENINGDOJISTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLEVENINGSTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLGAPSIDESIDEWHITE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLGRAVESTONEDOJI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHAMMER.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHANGINGMAN.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHARAMI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHARAMICROSS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHIGHWAVE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKEMOD.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHOMINGPIGEON.c \ + ..\..\..\..\..\src\ta_func\ta_CDLIDENTICAL3CROWS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLINNECK.c \ + ..\..\..\..\..\src\ta_func\ta_CDLINVERTEDHAMMER.c \ + ..\..\..\..\..\src\ta_func\ta_CDLKICKING.c \ + ..\..\..\..\..\src\ta_func\ta_CDLKICKINGBYLENGTH.c \ + ..\..\..\..\..\src\ta_func\ta_CDLLADDERBOTTOM.c \ + ..\..\..\..\..\src\ta_func\ta_CDLLONGLEGGEDDOJI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLLONGLINE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMARUBOZU.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMATCHINGLOW.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMATHOLD.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMORNINGDOJISTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMORNINGSTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLONNECK.c \ + ..\..\..\..\..\src\ta_func\ta_CDLPIERCING.c \ + ..\..\..\..\..\src\ta_func\ta_CDLRICKSHAWMAN.c \ + ..\..\..\..\..\src\ta_func\ta_CDLRISEFALL3METHODS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSEPARATINGLINES.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSHOOTINGSTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSHORTLINE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSPINNINGTOP.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSTALLEDPATTERN.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSTICKSANDWICH.c \ + ..\..\..\..\..\src\ta_func\ta_CDLTAKURI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLTASUKIGAP.c \ + ..\..\..\..\..\src\ta_func\ta_CDLTHRUSTING.c \ + ..\..\..\..\..\src\ta_func\ta_CDLTRISTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLUNIQUE3RIVER.c \ + ..\..\..\..\..\src\ta_func\ta_CDLUPSIDEGAP2CROWS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLXSIDEGAP3METHODS.c \ + ..\..\..\..\..\src\ta_func\ta_CEIL.c \ + ..\..\..\..\..\src\ta_func\ta_CMO.c \ + ..\..\..\..\..\src\ta_func\ta_CORREL.c \ + ..\..\..\..\..\src\ta_func\ta_COS.c \ + ..\..\..\..\..\src\ta_func\ta_COSH.c \ + ..\..\..\..\..\src\ta_func\ta_DEMA.c \ + ..\..\..\..\..\src\ta_func\ta_DIV.c \ + ..\..\..\..\..\src\ta_func\ta_DX.c \ + ..\..\..\..\..\src\ta_func\ta_EMA.c \ + ..\..\..\..\..\src\ta_func\ta_EXP.c \ + ..\..\..\..\..\src\ta_func\ta_FLOOR.c \ + ..\..\..\..\..\src\ta_func\ta_HT_DCPERIOD.c \ + ..\..\..\..\..\src\ta_func\ta_HT_DCPHASE.c \ + ..\..\..\..\..\src\ta_func\ta_HT_PHASOR.c \ + ..\..\..\..\..\src\ta_func\ta_HT_SINE.c \ + ..\..\..\..\..\src\ta_func\ta_HT_TRENDLINE.c \ + ..\..\..\..\..\src\ta_func\ta_HT_TRENDMODE.c \ + ..\..\..\..\..\src\ta_func\ta_KAMA.c \ + ..\..\..\..\..\src\ta_func\ta_LINEARREG.c \ + ..\..\..\..\..\src\ta_func\ta_LINEARREG_ANGLE.c \ + ..\..\..\..\..\src\ta_func\ta_LINEARREG_INTERCEPT.c \ + ..\..\..\..\..\src\ta_func\ta_LINEARREG_SLOPE.c \ + ..\..\..\..\..\src\ta_func\ta_LN.c \ + ..\..\..\..\..\src\ta_func\ta_LOG10.c \ + ..\..\..\..\..\src\ta_func\ta_MA.c \ + ..\..\..\..\..\src\ta_func\ta_MACD.c \ + ..\..\..\..\..\src\ta_func\ta_MACDEXT.c \ + ..\..\..\..\..\src\ta_func\ta_MACDFIX.c \ + ..\..\..\..\..\src\ta_func\ta_MAMA.c \ + ..\..\..\..\..\src\ta_func\ta_MAVP.c \ + ..\..\..\..\..\src\ta_func\ta_MAX.c \ + ..\..\..\..\..\src\ta_func\ta_MAXINDEX.c \ + ..\..\..\..\..\src\ta_func\ta_MEDPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_MFI.c \ + ..\..\..\..\..\src\ta_func\ta_MIDPOINT.c \ + ..\..\..\..\..\src\ta_func\ta_MIDPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_MIN.c \ + ..\..\..\..\..\src\ta_func\ta_MININDEX.c \ + ..\..\..\..\..\src\ta_func\ta_MINMAX.c \ + ..\..\..\..\..\src\ta_func\ta_MINMAXINDEX.c \ + ..\..\..\..\..\src\ta_func\ta_MINUS_DI.c \ + ..\..\..\..\..\src\ta_func\ta_MINUS_DM.c \ + ..\..\..\..\..\src\ta_func\ta_MOM.c \ + ..\..\..\..\..\src\ta_func\ta_MULT.c \ + ..\..\..\..\..\src\ta_func\ta_NATR.c \ + ..\..\..\..\..\src\ta_func\ta_OBV.c \ + ..\..\..\..\..\src\ta_func\ta_PLUS_DI.c \ + ..\..\..\..\..\src\ta_func\ta_PLUS_DM.c \ + ..\..\..\..\..\src\ta_func\ta_PPO.c \ + ..\..\..\..\..\src\ta_func\ta_ROC.c \ + ..\..\..\..\..\src\ta_func\ta_ROCP.c \ + ..\..\..\..\..\src\ta_func\ta_ROCR.c \ + ..\..\..\..\..\src\ta_func\ta_ROCR100.c \ + ..\..\..\..\..\src\ta_func\ta_RSI.c \ + ..\..\..\..\..\src\ta_func\ta_SAR.c \ + ..\..\..\..\..\src\ta_func\ta_SAREXT.c \ + ..\..\..\..\..\src\ta_func\ta_SIN.c \ + ..\..\..\..\..\src\ta_func\ta_SINH.c \ + ..\..\..\..\..\src\ta_func\ta_SMA.c \ + ..\..\..\..\..\src\ta_func\ta_SQRT.c \ + ..\..\..\..\..\src\ta_func\ta_STDDEV.c \ + ..\..\..\..\..\src\ta_func\ta_STOCH.c \ + ..\..\..\..\..\src\ta_func\ta_STOCHF.c \ + ..\..\..\..\..\src\ta_func\ta_STOCHRSI.c \ + ..\..\..\..\..\src\ta_func\ta_SUB.c \ + ..\..\..\..\..\src\ta_func\ta_SUM.c \ + ..\..\..\..\..\src\ta_func\ta_T3.c \ + ..\..\..\..\..\src\ta_func\ta_TAN.c \ + ..\..\..\..\..\src\ta_func\ta_TANH.c \ + ..\..\..\..\..\src\ta_func\ta_TEMA.c \ + ..\..\..\..\..\src\ta_func\ta_TRANGE.c \ + ..\..\..\..\..\src\ta_func\ta_TRIMA.c \ + ..\..\..\..\..\src\ta_func\ta_TRIX.c \ + ..\..\..\..\..\src\ta_func\ta_TSF.c \ + ..\..\..\..\..\src\ta_func\ta_TYPPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_ULTOSC.c \ + ..\..\..\..\..\src\ta_func\ta_VAR.c \ + ..\..\..\..\..\src\ta_func\ta_WCLPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_WILLR.c \ + ..\..\..\..\..\src\ta_func\ta_WMA.c +OBJECTS = ..\..\..\..\..\temp\cmr\ta_utility.obj \ + ..\..\..\..\..\temp\cmr\ta_ACOS.obj \ + ..\..\..\..\..\temp\cmr\ta_AD.obj \ + ..\..\..\..\..\temp\cmr\ta_ADD.obj \ + ..\..\..\..\..\temp\cmr\ta_ADOSC.obj \ + ..\..\..\..\..\temp\cmr\ta_ADX.obj \ + ..\..\..\..\..\temp\cmr\ta_ADXR.obj \ + ..\..\..\..\..\temp\cmr\ta_APO.obj \ + ..\..\..\..\..\temp\cmr\ta_AROON.obj \ + ..\..\..\..\..\temp\cmr\ta_AROONOSC.obj \ + ..\..\..\..\..\temp\cmr\ta_ASIN.obj \ + ..\..\..\..\..\temp\cmr\ta_ATAN.obj \ + ..\..\..\..\..\temp\cmr\ta_ATR.obj \ + ..\..\..\..\..\temp\cmr\ta_AVGPRICE.obj \ + ..\..\..\..\..\temp\cmr\ta_BBANDS.obj \ + ..\..\..\..\..\temp\cmr\ta_BETA.obj \ + ..\..\..\..\..\temp\cmr\ta_BOP.obj \ + ..\..\..\..\..\temp\cmr\ta_CCI.obj \ + ..\..\..\..\..\temp\cmr\ta_CDL2CROWS.obj \ + ..\..\..\..\..\temp\cmr\ta_CDL3BLACKCROWS.obj \ + ..\..\..\..\..\temp\cmr\ta_CDL3INSIDE.obj \ + ..\..\..\..\..\temp\cmr\ta_CDL3LINESTRIKE.obj \ + ..\..\..\..\..\temp\cmr\ta_CDL3OUTSIDE.obj \ + ..\..\..\..\..\temp\cmr\ta_CDL3STARSINSOUTH.obj \ + ..\..\..\..\..\temp\cmr\ta_CDL3WHITESOLDIERS.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLABANDONEDBABY.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLADVANCEBLOCK.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLBELTHOLD.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLBREAKAWAY.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLCLOSINGMARUBOZU.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLCONCEALBABYSWALL.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLCOUNTERATTACK.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLDARKCLOUDCOVER.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLDOJI.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLDOJISTAR.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLDRAGONFLYDOJI.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLENGULFING.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLEVENINGDOJISTAR.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLEVENINGSTAR.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLGAPSIDESIDEWHITE.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLGRAVESTONEDOJI.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLHAMMER.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLHANGINGMAN.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLHARAMI.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLHARAMICROSS.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLHIGHWAVE.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLHIKKAKE.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLHIKKAKEMOD.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLHOMINGPIGEON.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLIDENTICAL3CROWS.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLINNECK.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLINVERTEDHAMMER.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLKICKING.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLKICKINGBYLENGTH.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLLADDERBOTTOM.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLLONGLEGGEDDOJI.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLLONGLINE.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLMARUBOZU.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLMATCHINGLOW.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLMATHOLD.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLMORNINGDOJISTAR.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLMORNINGSTAR.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLONNECK.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLPIERCING.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLRICKSHAWMAN.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLRISEFALL3METHODS.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLSEPARATINGLINES.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLSHOOTINGSTAR.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLSHORTLINE.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLSPINNINGTOP.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLSTALLEDPATTERN.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLSTICKSANDWICH.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLTAKURI.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLTASUKIGAP.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLTHRUSTING.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLTRISTAR.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLUNIQUE3RIVER.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLUPSIDEGAP2CROWS.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLXSIDEGAP3METHODS.obj \ + ..\..\..\..\..\temp\cmr\ta_CEIL.obj \ + ..\..\..\..\..\temp\cmr\ta_CMO.obj \ + ..\..\..\..\..\temp\cmr\ta_CORREL.obj \ + ..\..\..\..\..\temp\cmr\ta_COS.obj \ + ..\..\..\..\..\temp\cmr\ta_COSH.obj \ + ..\..\..\..\..\temp\cmr\ta_DEMA.obj \ + ..\..\..\..\..\temp\cmr\ta_DIV.obj \ + ..\..\..\..\..\temp\cmr\ta_DX.obj \ + ..\..\..\..\..\temp\cmr\ta_EMA.obj \ + ..\..\..\..\..\temp\cmr\ta_EXP.obj \ + ..\..\..\..\..\temp\cmr\ta_FLOOR.obj \ + ..\..\..\..\..\temp\cmr\ta_HT_DCPERIOD.obj \ + ..\..\..\..\..\temp\cmr\ta_HT_DCPHASE.obj \ + ..\..\..\..\..\temp\cmr\ta_HT_PHASOR.obj \ + ..\..\..\..\..\temp\cmr\ta_HT_SINE.obj \ + ..\..\..\..\..\temp\cmr\ta_HT_TRENDLINE.obj \ + ..\..\..\..\..\temp\cmr\ta_HT_TRENDMODE.obj \ + ..\..\..\..\..\temp\cmr\ta_KAMA.obj \ + ..\..\..\..\..\temp\cmr\ta_LINEARREG.obj \ + ..\..\..\..\..\temp\cmr\ta_LINEARREG_ANGLE.obj \ + ..\..\..\..\..\temp\cmr\ta_LINEARREG_INTERCEPT.obj \ + ..\..\..\..\..\temp\cmr\ta_LINEARREG_SLOPE.obj \ + ..\..\..\..\..\temp\cmr\ta_LN.obj \ + ..\..\..\..\..\temp\cmr\ta_LOG10.obj \ + ..\..\..\..\..\temp\cmr\ta_MA.obj \ + ..\..\..\..\..\temp\cmr\ta_MACD.obj \ + ..\..\..\..\..\temp\cmr\ta_MACDEXT.obj \ + ..\..\..\..\..\temp\cmr\ta_MACDFIX.obj \ + ..\..\..\..\..\temp\cmr\ta_MAMA.obj \ + ..\..\..\..\..\temp\cmr\ta_MAVP.obj \ + ..\..\..\..\..\temp\cmr\ta_MAX.obj \ + ..\..\..\..\..\temp\cmr\ta_MAXINDEX.obj \ + ..\..\..\..\..\temp\cmr\ta_MEDPRICE.obj \ + ..\..\..\..\..\temp\cmr\ta_MFI.obj \ + ..\..\..\..\..\temp\cmr\ta_MIDPOINT.obj \ + ..\..\..\..\..\temp\cmr\ta_MIDPRICE.obj \ + ..\..\..\..\..\temp\cmr\ta_MIN.obj \ + ..\..\..\..\..\temp\cmr\ta_MININDEX.obj \ + ..\..\..\..\..\temp\cmr\ta_MINMAX.obj \ + ..\..\..\..\..\temp\cmr\ta_MINMAXINDEX.obj \ + ..\..\..\..\..\temp\cmr\ta_MINUS_DI.obj \ + ..\..\..\..\..\temp\cmr\ta_MINUS_DM.obj \ + ..\..\..\..\..\temp\cmr\ta_MOM.obj \ + ..\..\..\..\..\temp\cmr\ta_MULT.obj \ + ..\..\..\..\..\temp\cmr\ta_NATR.obj \ + ..\..\..\..\..\temp\cmr\ta_OBV.obj \ + ..\..\..\..\..\temp\cmr\ta_PLUS_DI.obj \ + ..\..\..\..\..\temp\cmr\ta_PLUS_DM.obj \ + ..\..\..\..\..\temp\cmr\ta_PPO.obj \ + ..\..\..\..\..\temp\cmr\ta_ROC.obj \ + ..\..\..\..\..\temp\cmr\ta_ROCP.obj \ + ..\..\..\..\..\temp\cmr\ta_ROCR.obj \ + ..\..\..\..\..\temp\cmr\ta_ROCR100.obj \ + ..\..\..\..\..\temp\cmr\ta_RSI.obj \ + ..\..\..\..\..\temp\cmr\ta_SAR.obj \ + ..\..\..\..\..\temp\cmr\ta_SAREXT.obj \ + ..\..\..\..\..\temp\cmr\ta_SIN.obj \ + ..\..\..\..\..\temp\cmr\ta_SINH.obj \ + ..\..\..\..\..\temp\cmr\ta_SMA.obj \ + ..\..\..\..\..\temp\cmr\ta_SQRT.obj \ + ..\..\..\..\..\temp\cmr\ta_STDDEV.obj \ + ..\..\..\..\..\temp\cmr\ta_STOCH.obj \ + ..\..\..\..\..\temp\cmr\ta_STOCHF.obj \ + ..\..\..\..\..\temp\cmr\ta_STOCHRSI.obj \ + ..\..\..\..\..\temp\cmr\ta_SUB.obj \ + ..\..\..\..\..\temp\cmr\ta_SUM.obj \ + ..\..\..\..\..\temp\cmr\ta_T3.obj \ + ..\..\..\..\..\temp\cmr\ta_TAN.obj \ + ..\..\..\..\..\temp\cmr\ta_TANH.obj \ + ..\..\..\..\..\temp\cmr\ta_TEMA.obj \ + ..\..\..\..\..\temp\cmr\ta_TRANGE.obj \ + ..\..\..\..\..\temp\cmr\ta_TRIMA.obj \ + ..\..\..\..\..\temp\cmr\ta_TRIX.obj \ + ..\..\..\..\..\temp\cmr\ta_TSF.obj \ + ..\..\..\..\..\temp\cmr\ta_TYPPRICE.obj \ + ..\..\..\..\..\temp\cmr\ta_ULTOSC.obj \ + ..\..\..\..\..\temp\cmr\ta_VAR.obj \ + ..\..\..\..\..\temp\cmr\ta_WCLPRICE.obj \ + ..\..\..\..\..\temp\cmr\ta_WILLR.obj \ + ..\..\..\..\..\temp\cmr\ta_WMA.obj +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ..\..\..\..\..\lib\ta_func_cmr.lib +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .c + +.cpp.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.cxx.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.cc.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.c.obj: + $(CC) -c $(CFLAGS) $(INCPATH) -o$@ $< + +####### Build rules + +all: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + -del $(TARGET) + $(LIB) $(TARGET) @&&| ++..\..\..\..\..\temp\cmr\ta_utility.obj \ ++..\..\..\..\..\temp\cmr\ta_ACOS.obj \ ++..\..\..\..\..\temp\cmr\ta_AD.obj \ ++..\..\..\..\..\temp\cmr\ta_ADD.obj \ ++..\..\..\..\..\temp\cmr\ta_ADOSC.obj \ ++..\..\..\..\..\temp\cmr\ta_ADX.obj \ ++..\..\..\..\..\temp\cmr\ta_ADXR.obj \ ++..\..\..\..\..\temp\cmr\ta_APO.obj \ ++..\..\..\..\..\temp\cmr\ta_AROON.obj \ ++..\..\..\..\..\temp\cmr\ta_AROONOSC.obj \ ++..\..\..\..\..\temp\cmr\ta_ASIN.obj \ ++..\..\..\..\..\temp\cmr\ta_ATAN.obj \ ++..\..\..\..\..\temp\cmr\ta_ATR.obj \ ++..\..\..\..\..\temp\cmr\ta_AVGPRICE.obj \ ++..\..\..\..\..\temp\cmr\ta_BBANDS.obj \ ++..\..\..\..\..\temp\cmr\ta_BETA.obj \ ++..\..\..\..\..\temp\cmr\ta_BOP.obj \ ++..\..\..\..\..\temp\cmr\ta_CCI.obj \ ++..\..\..\..\..\temp\cmr\ta_CDL2CROWS.obj \ ++..\..\..\..\..\temp\cmr\ta_CDL3BLACKCROWS.obj \ ++..\..\..\..\..\temp\cmr\ta_CDL3INSIDE.obj \ ++..\..\..\..\..\temp\cmr\ta_CDL3LINESTRIKE.obj \ ++..\..\..\..\..\temp\cmr\ta_CDL3OUTSIDE.obj \ ++..\..\..\..\..\temp\cmr\ta_CDL3STARSINSOUTH.obj \ ++..\..\..\..\..\temp\cmr\ta_CDL3WHITESOLDIERS.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLABANDONEDBABY.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLADVANCEBLOCK.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLBELTHOLD.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLBREAKAWAY.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLCLOSINGMARUBOZU.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLCONCEALBABYSWALL.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLCOUNTERATTACK.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLDARKCLOUDCOVER.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLDOJI.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLDOJISTAR.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLDRAGONFLYDOJI.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLENGULFING.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLEVENINGDOJISTAR.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLEVENINGSTAR.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLGAPSIDESIDEWHITE.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLGRAVESTONEDOJI.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLHAMMER.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLHANGINGMAN.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLHARAMI.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLHARAMICROSS.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLHIGHWAVE.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLHIKKAKE.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLHIKKAKEMOD.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLHOMINGPIGEON.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLIDENTICAL3CROWS.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLINNECK.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLINVERTEDHAMMER.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLKICKING.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLKICKINGBYLENGTH.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLLADDERBOTTOM.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLLONGLEGGEDDOJI.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLLONGLINE.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLMARUBOZU.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLMATCHINGLOW.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLMATHOLD.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLMORNINGDOJISTAR.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLMORNINGSTAR.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLONNECK.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLPIERCING.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLRICKSHAWMAN.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLRISEFALL3METHODS.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLSEPARATINGLINES.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLSHOOTINGSTAR.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLSHORTLINE.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLSPINNINGTOP.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLSTALLEDPATTERN.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLSTICKSANDWICH.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLTAKURI.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLTASUKIGAP.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLTHRUSTING.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLTRISTAR.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLUNIQUE3RIVER.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLUPSIDEGAP2CROWS.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLXSIDEGAP3METHODS.obj \ ++..\..\..\..\..\temp\cmr\ta_CEIL.obj \ ++..\..\..\..\..\temp\cmr\ta_CMO.obj \ ++..\..\..\..\..\temp\cmr\ta_CORREL.obj \ ++..\..\..\..\..\temp\cmr\ta_COS.obj \ ++..\..\..\..\..\temp\cmr\ta_COSH.obj \ ++..\..\..\..\..\temp\cmr\ta_DEMA.obj \ ++..\..\..\..\..\temp\cmr\ta_DIV.obj \ ++..\..\..\..\..\temp\cmr\ta_DX.obj \ ++..\..\..\..\..\temp\cmr\ta_EMA.obj \ ++..\..\..\..\..\temp\cmr\ta_EXP.obj \ ++..\..\..\..\..\temp\cmr\ta_FLOOR.obj \ ++..\..\..\..\..\temp\cmr\ta_HT_DCPERIOD.obj \ ++..\..\..\..\..\temp\cmr\ta_HT_DCPHASE.obj \ ++..\..\..\..\..\temp\cmr\ta_HT_PHASOR.obj \ ++..\..\..\..\..\temp\cmr\ta_HT_SINE.obj \ ++..\..\..\..\..\temp\cmr\ta_HT_TRENDLINE.obj \ ++..\..\..\..\..\temp\cmr\ta_HT_TRENDMODE.obj \ ++..\..\..\..\..\temp\cmr\ta_KAMA.obj \ ++..\..\..\..\..\temp\cmr\ta_LINEARREG.obj \ ++..\..\..\..\..\temp\cmr\ta_LINEARREG_ANGLE.obj \ ++..\..\..\..\..\temp\cmr\ta_LINEARREG_INTERCEPT.obj \ ++..\..\..\..\..\temp\cmr\ta_LINEARREG_SLOPE.obj \ ++..\..\..\..\..\temp\cmr\ta_LN.obj \ ++..\..\..\..\..\temp\cmr\ta_LOG10.obj \ ++..\..\..\..\..\temp\cmr\ta_MA.obj \ ++..\..\..\..\..\temp\cmr\ta_MACD.obj \ ++..\..\..\..\..\temp\cmr\ta_MACDEXT.obj \ ++..\..\..\..\..\temp\cmr\ta_MACDFIX.obj \ ++..\..\..\..\..\temp\cmr\ta_MAMA.obj \ ++..\..\..\..\..\temp\cmr\ta_MAVP.obj \ ++..\..\..\..\..\temp\cmr\ta_MAX.obj \ ++..\..\..\..\..\temp\cmr\ta_MAXINDEX.obj \ ++..\..\..\..\..\temp\cmr\ta_MEDPRICE.obj \ ++..\..\..\..\..\temp\cmr\ta_MFI.obj \ ++..\..\..\..\..\temp\cmr\ta_MIDPOINT.obj \ ++..\..\..\..\..\temp\cmr\ta_MIDPRICE.obj \ ++..\..\..\..\..\temp\cmr\ta_MIN.obj \ ++..\..\..\..\..\temp\cmr\ta_MININDEX.obj \ ++..\..\..\..\..\temp\cmr\ta_MINMAX.obj \ ++..\..\..\..\..\temp\cmr\ta_MINMAXINDEX.obj \ ++..\..\..\..\..\temp\cmr\ta_MINUS_DI.obj \ ++..\..\..\..\..\temp\cmr\ta_MINUS_DM.obj \ ++..\..\..\..\..\temp\cmr\ta_MOM.obj \ ++..\..\..\..\..\temp\cmr\ta_MULT.obj \ ++..\..\..\..\..\temp\cmr\ta_NATR.obj \ ++..\..\..\..\..\temp\cmr\ta_OBV.obj \ ++..\..\..\..\..\temp\cmr\ta_PLUS_DI.obj \ ++..\..\..\..\..\temp\cmr\ta_PLUS_DM.obj \ ++..\..\..\..\..\temp\cmr\ta_PPO.obj \ ++..\..\..\..\..\temp\cmr\ta_ROC.obj \ ++..\..\..\..\..\temp\cmr\ta_ROCP.obj \ ++..\..\..\..\..\temp\cmr\ta_ROCR.obj \ ++..\..\..\..\..\temp\cmr\ta_ROCR100.obj \ ++..\..\..\..\..\temp\cmr\ta_RSI.obj \ ++..\..\..\..\..\temp\cmr\ta_SAR.obj \ ++..\..\..\..\..\temp\cmr\ta_SAREXT.obj \ ++..\..\..\..\..\temp\cmr\ta_SIN.obj \ ++..\..\..\..\..\temp\cmr\ta_SINH.obj \ ++..\..\..\..\..\temp\cmr\ta_SMA.obj \ ++..\..\..\..\..\temp\cmr\ta_SQRT.obj \ ++..\..\..\..\..\temp\cmr\ta_STDDEV.obj \ ++..\..\..\..\..\temp\cmr\ta_STOCH.obj \ ++..\..\..\..\..\temp\cmr\ta_STOCHF.obj \ ++..\..\..\..\..\temp\cmr\ta_STOCHRSI.obj \ ++..\..\..\..\..\temp\cmr\ta_SUB.obj \ ++..\..\..\..\..\temp\cmr\ta_SUM.obj \ ++..\..\..\..\..\temp\cmr\ta_T3.obj \ ++..\..\..\..\..\temp\cmr\ta_TAN.obj \ ++..\..\..\..\..\temp\cmr\ta_TANH.obj \ ++..\..\..\..\..\temp\cmr\ta_TEMA.obj \ ++..\..\..\..\..\temp\cmr\ta_TRANGE.obj \ ++..\..\..\..\..\temp\cmr\ta_TRIMA.obj \ ++..\..\..\..\..\temp\cmr\ta_TRIX.obj \ ++..\..\..\..\..\temp\cmr\ta_TSF.obj \ ++..\..\..\..\..\temp\cmr\ta_TYPPRICE.obj \ ++..\..\..\..\..\temp\cmr\ta_ULTOSC.obj \ ++..\..\..\..\..\temp\cmr\ta_VAR.obj \ ++..\..\..\..\..\temp\cmr\ta_WCLPRICE.obj \ ++..\..\..\..\..\temp\cmr\ta_WILLR.obj \ ++..\..\..\..\..\temp\cmr\ta_WMA.obj \ ++ +| + +moc: $(SRCMOC) + +tmake: ../cmr/win32/borland/ta_func/Makefile + +../cmr/win32/borland/ta_func/Makefile: ta_func/ta_func.pro + tmake ta_func/ta_func.pro -o ../cmr/win32/borland/ta_func/Makefile + +dist: + $(ZIP) ta_func/ta_func.zip ta_func/ta_func.pro $(SOURCES) $(HEADERS) $(DIST) + +clean: + -del ..\..\..\..\..\temp\cmr\ta_utility.obj + -del ..\..\..\..\..\temp\cmr\ta_ACOS.obj + -del ..\..\..\..\..\temp\cmr\ta_AD.obj + -del ..\..\..\..\..\temp\cmr\ta_ADD.obj + -del ..\..\..\..\..\temp\cmr\ta_ADOSC.obj + -del ..\..\..\..\..\temp\cmr\ta_ADX.obj + -del ..\..\..\..\..\temp\cmr\ta_ADXR.obj + -del ..\..\..\..\..\temp\cmr\ta_APO.obj + -del ..\..\..\..\..\temp\cmr\ta_AROON.obj + -del ..\..\..\..\..\temp\cmr\ta_AROONOSC.obj + -del ..\..\..\..\..\temp\cmr\ta_ASIN.obj + -del ..\..\..\..\..\temp\cmr\ta_ATAN.obj + -del ..\..\..\..\..\temp\cmr\ta_ATR.obj + -del ..\..\..\..\..\temp\cmr\ta_AVGPRICE.obj + -del ..\..\..\..\..\temp\cmr\ta_BBANDS.obj + -del ..\..\..\..\..\temp\cmr\ta_BETA.obj + -del ..\..\..\..\..\temp\cmr\ta_BOP.obj + -del ..\..\..\..\..\temp\cmr\ta_CCI.obj + -del ..\..\..\..\..\temp\cmr\ta_CDL2CROWS.obj + -del ..\..\..\..\..\temp\cmr\ta_CDL3BLACKCROWS.obj + -del ..\..\..\..\..\temp\cmr\ta_CDL3INSIDE.obj + -del ..\..\..\..\..\temp\cmr\ta_CDL3LINESTRIKE.obj + -del ..\..\..\..\..\temp\cmr\ta_CDL3OUTSIDE.obj + -del ..\..\..\..\..\temp\cmr\ta_CDL3STARSINSOUTH.obj + -del ..\..\..\..\..\temp\cmr\ta_CDL3WHITESOLDIERS.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLABANDONEDBABY.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLADVANCEBLOCK.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLBELTHOLD.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLBREAKAWAY.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLCLOSINGMARUBOZU.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLCONCEALBABYSWALL.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLCOUNTERATTACK.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLDARKCLOUDCOVER.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLDOJI.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLDOJISTAR.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLDRAGONFLYDOJI.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLENGULFING.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLEVENINGDOJISTAR.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLEVENINGSTAR.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLGAPSIDESIDEWHITE.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLGRAVESTONEDOJI.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLHAMMER.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLHANGINGMAN.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLHARAMI.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLHARAMICROSS.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLHIGHWAVE.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLHIKKAKE.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLHIKKAKEMOD.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLHOMINGPIGEON.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLIDENTICAL3CROWS.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLINNECK.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLINVERTEDHAMMER.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLKICKING.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLKICKINGBYLENGTH.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLLADDERBOTTOM.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLLONGLEGGEDDOJI.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLLONGLINE.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLMARUBOZU.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLMATCHINGLOW.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLMATHOLD.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLMORNINGDOJISTAR.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLMORNINGSTAR.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLONNECK.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLPIERCING.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLRICKSHAWMAN.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLRISEFALL3METHODS.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLSEPARATINGLINES.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLSHOOTINGSTAR.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLSHORTLINE.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLSPINNINGTOP.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLSTALLEDPATTERN.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLSTICKSANDWICH.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLTAKURI.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLTASUKIGAP.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLTHRUSTING.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLTRISTAR.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLUNIQUE3RIVER.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLUPSIDEGAP2CROWS.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLXSIDEGAP3METHODS.obj + -del ..\..\..\..\..\temp\cmr\ta_CEIL.obj + -del ..\..\..\..\..\temp\cmr\ta_CMO.obj + -del ..\..\..\..\..\temp\cmr\ta_CORREL.obj + -del ..\..\..\..\..\temp\cmr\ta_COS.obj + -del ..\..\..\..\..\temp\cmr\ta_COSH.obj + -del ..\..\..\..\..\temp\cmr\ta_DEMA.obj + -del ..\..\..\..\..\temp\cmr\ta_DIV.obj + -del ..\..\..\..\..\temp\cmr\ta_DX.obj + -del ..\..\..\..\..\temp\cmr\ta_EMA.obj + -del ..\..\..\..\..\temp\cmr\ta_EXP.obj + -del ..\..\..\..\..\temp\cmr\ta_FLOOR.obj + -del ..\..\..\..\..\temp\cmr\ta_HT_DCPERIOD.obj + -del ..\..\..\..\..\temp\cmr\ta_HT_DCPHASE.obj + -del ..\..\..\..\..\temp\cmr\ta_HT_PHASOR.obj + -del ..\..\..\..\..\temp\cmr\ta_HT_SINE.obj + -del ..\..\..\..\..\temp\cmr\ta_HT_TRENDLINE.obj + -del ..\..\..\..\..\temp\cmr\ta_HT_TRENDMODE.obj + -del ..\..\..\..\..\temp\cmr\ta_KAMA.obj + -del ..\..\..\..\..\temp\cmr\ta_LINEARREG.obj + -del ..\..\..\..\..\temp\cmr\ta_LINEARREG_ANGLE.obj + -del ..\..\..\..\..\temp\cmr\ta_LINEARREG_INTERCEPT.obj + -del ..\..\..\..\..\temp\cmr\ta_LINEARREG_SLOPE.obj + -del ..\..\..\..\..\temp\cmr\ta_LN.obj + -del ..\..\..\..\..\temp\cmr\ta_LOG10.obj + -del ..\..\..\..\..\temp\cmr\ta_MA.obj + -del ..\..\..\..\..\temp\cmr\ta_MACD.obj + -del ..\..\..\..\..\temp\cmr\ta_MACDEXT.obj + -del ..\..\..\..\..\temp\cmr\ta_MACDFIX.obj + -del ..\..\..\..\..\temp\cmr\ta_MAMA.obj + -del ..\..\..\..\..\temp\cmr\ta_MAVP.obj + -del ..\..\..\..\..\temp\cmr\ta_MAX.obj + -del ..\..\..\..\..\temp\cmr\ta_MAXINDEX.obj + -del ..\..\..\..\..\temp\cmr\ta_MEDPRICE.obj + -del ..\..\..\..\..\temp\cmr\ta_MFI.obj + -del ..\..\..\..\..\temp\cmr\ta_MIDPOINT.obj + -del ..\..\..\..\..\temp\cmr\ta_MIDPRICE.obj + -del ..\..\..\..\..\temp\cmr\ta_MIN.obj + -del ..\..\..\..\..\temp\cmr\ta_MININDEX.obj + -del ..\..\..\..\..\temp\cmr\ta_MINMAX.obj + -del ..\..\..\..\..\temp\cmr\ta_MINMAXINDEX.obj + -del ..\..\..\..\..\temp\cmr\ta_MINUS_DI.obj + -del ..\..\..\..\..\temp\cmr\ta_MINUS_DM.obj + -del ..\..\..\..\..\temp\cmr\ta_MOM.obj + -del ..\..\..\..\..\temp\cmr\ta_MULT.obj + -del ..\..\..\..\..\temp\cmr\ta_NATR.obj + -del ..\..\..\..\..\temp\cmr\ta_OBV.obj + -del ..\..\..\..\..\temp\cmr\ta_PLUS_DI.obj + -del ..\..\..\..\..\temp\cmr\ta_PLUS_DM.obj + -del ..\..\..\..\..\temp\cmr\ta_PPO.obj + -del ..\..\..\..\..\temp\cmr\ta_ROC.obj + -del ..\..\..\..\..\temp\cmr\ta_ROCP.obj + -del ..\..\..\..\..\temp\cmr\ta_ROCR.obj + -del ..\..\..\..\..\temp\cmr\ta_ROCR100.obj + -del ..\..\..\..\..\temp\cmr\ta_RSI.obj + -del ..\..\..\..\..\temp\cmr\ta_SAR.obj + -del ..\..\..\..\..\temp\cmr\ta_SAREXT.obj + -del ..\..\..\..\..\temp\cmr\ta_SIN.obj + -del ..\..\..\..\..\temp\cmr\ta_SINH.obj + -del ..\..\..\..\..\temp\cmr\ta_SMA.obj + -del ..\..\..\..\..\temp\cmr\ta_SQRT.obj + -del ..\..\..\..\..\temp\cmr\ta_STDDEV.obj + -del ..\..\..\..\..\temp\cmr\ta_STOCH.obj + -del ..\..\..\..\..\temp\cmr\ta_STOCHF.obj + -del ..\..\..\..\..\temp\cmr\ta_STOCHRSI.obj + -del ..\..\..\..\..\temp\cmr\ta_SUB.obj + -del ..\..\..\..\..\temp\cmr\ta_SUM.obj + -del ..\..\..\..\..\temp\cmr\ta_T3.obj + -del ..\..\..\..\..\temp\cmr\ta_TAN.obj + -del ..\..\..\..\..\temp\cmr\ta_TANH.obj + -del ..\..\..\..\..\temp\cmr\ta_TEMA.obj + -del ..\..\..\..\..\temp\cmr\ta_TRANGE.obj + -del ..\..\..\..\..\temp\cmr\ta_TRIMA.obj + -del ..\..\..\..\..\temp\cmr\ta_TRIX.obj + -del ..\..\..\..\..\temp\cmr\ta_TSF.obj + -del ..\..\..\..\..\temp\cmr\ta_TYPPRICE.obj + -del ..\..\..\..\..\temp\cmr\ta_ULTOSC.obj + -del ..\..\..\..\..\temp\cmr\ta_VAR.obj + -del ..\..\..\..\..\temp\cmr\ta_WCLPRICE.obj + -del ..\..\..\..\..\temp\cmr\ta_WILLR.obj + -del ..\..\..\..\..\temp\cmr\ta_WMA.obj + -del $(TARGET) + -del ta_func_cmr.tds + -del ../../../../../bin/*.map + -del ../../../../../bin/*._xe + -del ../../../../../bin/*.tds + -del ../../../../../bin/*.pdb + -del ../../../../../bin/*.pbo + -del ../../../../../bin/*.pbi + -del ../../../../../bin/*.pbt + -del ../../../../../temp/cmr/*.pch + -del ../../../../../temp/cmr/*.idb + -del ../../../../../temp/cmr/ta_func/*.pch + -del ../../../../../temp/cmr/ta_func/*.idb + -del ../../../../../temp/cmr/ta_func/*.obj + +####### Compile + +..\..\..\..\..\temp\cmr\ta_utility.obj: ..\..\..\..\..\src\ta_func\ta_utility.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_utility.obj ..\..\..\..\..\src\ta_func\ta_utility.c + +..\..\..\..\..\temp\cmr\ta_ACOS.obj: ..\..\..\..\..\src\ta_func\ta_ACOS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_ACOS.obj ..\..\..\..\..\src\ta_func\ta_ACOS.c + +..\..\..\..\..\temp\cmr\ta_AD.obj: ..\..\..\..\..\src\ta_func\ta_AD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_AD.obj ..\..\..\..\..\src\ta_func\ta_AD.c + +..\..\..\..\..\temp\cmr\ta_ADD.obj: ..\..\..\..\..\src\ta_func\ta_ADD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_ADD.obj ..\..\..\..\..\src\ta_func\ta_ADD.c + +..\..\..\..\..\temp\cmr\ta_ADOSC.obj: ..\..\..\..\..\src\ta_func\ta_ADOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_ADOSC.obj ..\..\..\..\..\src\ta_func\ta_ADOSC.c + +..\..\..\..\..\temp\cmr\ta_ADX.obj: ..\..\..\..\..\src\ta_func\ta_ADX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_ADX.obj ..\..\..\..\..\src\ta_func\ta_ADX.c + +..\..\..\..\..\temp\cmr\ta_ADXR.obj: ..\..\..\..\..\src\ta_func\ta_ADXR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_ADXR.obj ..\..\..\..\..\src\ta_func\ta_ADXR.c + +..\..\..\..\..\temp\cmr\ta_APO.obj: ..\..\..\..\..\src\ta_func\ta_APO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_APO.obj ..\..\..\..\..\src\ta_func\ta_APO.c + +..\..\..\..\..\temp\cmr\ta_AROON.obj: ..\..\..\..\..\src\ta_func\ta_AROON.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_AROON.obj ..\..\..\..\..\src\ta_func\ta_AROON.c + +..\..\..\..\..\temp\cmr\ta_AROONOSC.obj: ..\..\..\..\..\src\ta_func\ta_AROONOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_AROONOSC.obj ..\..\..\..\..\src\ta_func\ta_AROONOSC.c + +..\..\..\..\..\temp\cmr\ta_ASIN.obj: ..\..\..\..\..\src\ta_func\ta_ASIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_ASIN.obj ..\..\..\..\..\src\ta_func\ta_ASIN.c + +..\..\..\..\..\temp\cmr\ta_ATAN.obj: ..\..\..\..\..\src\ta_func\ta_ATAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_ATAN.obj ..\..\..\..\..\src\ta_func\ta_ATAN.c + +..\..\..\..\..\temp\cmr\ta_ATR.obj: ..\..\..\..\..\src\ta_func\ta_ATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_ATR.obj ..\..\..\..\..\src\ta_func\ta_ATR.c + +..\..\..\..\..\temp\cmr\ta_AVGPRICE.obj: ..\..\..\..\..\src\ta_func\ta_AVGPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_AVGPRICE.obj ..\..\..\..\..\src\ta_func\ta_AVGPRICE.c + +..\..\..\..\..\temp\cmr\ta_BBANDS.obj: ..\..\..\..\..\src\ta_func\ta_BBANDS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_BBANDS.obj ..\..\..\..\..\src\ta_func\ta_BBANDS.c + +..\..\..\..\..\temp\cmr\ta_BETA.obj: ..\..\..\..\..\src\ta_func\ta_BETA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_BETA.obj ..\..\..\..\..\src\ta_func\ta_BETA.c + +..\..\..\..\..\temp\cmr\ta_BOP.obj: ..\..\..\..\..\src\ta_func\ta_BOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_BOP.obj ..\..\..\..\..\src\ta_func\ta_BOP.c + +..\..\..\..\..\temp\cmr\ta_CCI.obj: ..\..\..\..\..\src\ta_func\ta_CCI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CCI.obj ..\..\..\..\..\src\ta_func\ta_CCI.c + +..\..\..\..\..\temp\cmr\ta_CDL2CROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDL2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDL2CROWS.obj ..\..\..\..\..\src\ta_func\ta_CDL2CROWS.c + +..\..\..\..\..\temp\cmr\ta_CDL3BLACKCROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDL3BLACKCROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDL3BLACKCROWS.obj ..\..\..\..\..\src\ta_func\ta_CDL3BLACKCROWS.c + +..\..\..\..\..\temp\cmr\ta_CDL3INSIDE.obj: ..\..\..\..\..\src\ta_func\ta_CDL3INSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDL3INSIDE.obj ..\..\..\..\..\src\ta_func\ta_CDL3INSIDE.c + +..\..\..\..\..\temp\cmr\ta_CDL3LINESTRIKE.obj: ..\..\..\..\..\src\ta_func\ta_CDL3LINESTRIKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDL3LINESTRIKE.obj ..\..\..\..\..\src\ta_func\ta_CDL3LINESTRIKE.c + +..\..\..\..\..\temp\cmr\ta_CDL3OUTSIDE.obj: ..\..\..\..\..\src\ta_func\ta_CDL3OUTSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDL3OUTSIDE.obj ..\..\..\..\..\src\ta_func\ta_CDL3OUTSIDE.c + +..\..\..\..\..\temp\cmr\ta_CDL3STARSINSOUTH.obj: ..\..\..\..\..\src\ta_func\ta_CDL3STARSINSOUTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDL3STARSINSOUTH.obj ..\..\..\..\..\src\ta_func\ta_CDL3STARSINSOUTH.c + +..\..\..\..\..\temp\cmr\ta_CDL3WHITESOLDIERS.obj: ..\..\..\..\..\src\ta_func\ta_CDL3WHITESOLDIERS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDL3WHITESOLDIERS.obj ..\..\..\..\..\src\ta_func\ta_CDL3WHITESOLDIERS.c + +..\..\..\..\..\temp\cmr\ta_CDLABANDONEDBABY.obj: ..\..\..\..\..\src\ta_func\ta_CDLABANDONEDBABY.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLABANDONEDBABY.obj ..\..\..\..\..\src\ta_func\ta_CDLABANDONEDBABY.c + +..\..\..\..\..\temp\cmr\ta_CDLADVANCEBLOCK.obj: ..\..\..\..\..\src\ta_func\ta_CDLADVANCEBLOCK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLADVANCEBLOCK.obj ..\..\..\..\..\src\ta_func\ta_CDLADVANCEBLOCK.c + +..\..\..\..\..\temp\cmr\ta_CDLBELTHOLD.obj: ..\..\..\..\..\src\ta_func\ta_CDLBELTHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLBELTHOLD.obj ..\..\..\..\..\src\ta_func\ta_CDLBELTHOLD.c + +..\..\..\..\..\temp\cmr\ta_CDLBREAKAWAY.obj: ..\..\..\..\..\src\ta_func\ta_CDLBREAKAWAY.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLBREAKAWAY.obj ..\..\..\..\..\src\ta_func\ta_CDLBREAKAWAY.c + +..\..\..\..\..\temp\cmr\ta_CDLCLOSINGMARUBOZU.obj: ..\..\..\..\..\src\ta_func\ta_CDLCLOSINGMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLCLOSINGMARUBOZU.obj ..\..\..\..\..\src\ta_func\ta_CDLCLOSINGMARUBOZU.c + +..\..\..\..\..\temp\cmr\ta_CDLCONCEALBABYSWALL.obj: ..\..\..\..\..\src\ta_func\ta_CDLCONCEALBABYSWALL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLCONCEALBABYSWALL.obj ..\..\..\..\..\src\ta_func\ta_CDLCONCEALBABYSWALL.c + +..\..\..\..\..\temp\cmr\ta_CDLCOUNTERATTACK.obj: ..\..\..\..\..\src\ta_func\ta_CDLCOUNTERATTACK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLCOUNTERATTACK.obj ..\..\..\..\..\src\ta_func\ta_CDLCOUNTERATTACK.c + +..\..\..\..\..\temp\cmr\ta_CDLDARKCLOUDCOVER.obj: ..\..\..\..\..\src\ta_func\ta_CDLDARKCLOUDCOVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLDARKCLOUDCOVER.obj ..\..\..\..\..\src\ta_func\ta_CDLDARKCLOUDCOVER.c + +..\..\..\..\..\temp\cmr\ta_CDLDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLDOJI.c + +..\..\..\..\..\temp\cmr\ta_CDLDOJISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLDOJISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLDOJISTAR.c + +..\..\..\..\..\temp\cmr\ta_CDLDRAGONFLYDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLDRAGONFLYDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLDRAGONFLYDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLDRAGONFLYDOJI.c + +..\..\..\..\..\temp\cmr\ta_CDLENGULFING.obj: ..\..\..\..\..\src\ta_func\ta_CDLENGULFING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLENGULFING.obj ..\..\..\..\..\src\ta_func\ta_CDLENGULFING.c + +..\..\..\..\..\temp\cmr\ta_CDLEVENINGDOJISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLEVENINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLEVENINGDOJISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLEVENINGDOJISTAR.c + +..\..\..\..\..\temp\cmr\ta_CDLEVENINGSTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLEVENINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLEVENINGSTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLEVENINGSTAR.c + +..\..\..\..\..\temp\cmr\ta_CDLGAPSIDESIDEWHITE.obj: ..\..\..\..\..\src\ta_func\ta_CDLGAPSIDESIDEWHITE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLGAPSIDESIDEWHITE.obj ..\..\..\..\..\src\ta_func\ta_CDLGAPSIDESIDEWHITE.c + +..\..\..\..\..\temp\cmr\ta_CDLGRAVESTONEDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLGRAVESTONEDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLGRAVESTONEDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLGRAVESTONEDOJI.c + +..\..\..\..\..\temp\cmr\ta_CDLHAMMER.obj: ..\..\..\..\..\src\ta_func\ta_CDLHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLHAMMER.obj ..\..\..\..\..\src\ta_func\ta_CDLHAMMER.c + +..\..\..\..\..\temp\cmr\ta_CDLHANGINGMAN.obj: ..\..\..\..\..\src\ta_func\ta_CDLHANGINGMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLHANGINGMAN.obj ..\..\..\..\..\src\ta_func\ta_CDLHANGINGMAN.c + +..\..\..\..\..\temp\cmr\ta_CDLHARAMI.obj: ..\..\..\..\..\src\ta_func\ta_CDLHARAMI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLHARAMI.obj ..\..\..\..\..\src\ta_func\ta_CDLHARAMI.c + +..\..\..\..\..\temp\cmr\ta_CDLHARAMICROSS.obj: ..\..\..\..\..\src\ta_func\ta_CDLHARAMICROSS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLHARAMICROSS.obj ..\..\..\..\..\src\ta_func\ta_CDLHARAMICROSS.c + +..\..\..\..\..\temp\cmr\ta_CDLHIGHWAVE.obj: ..\..\..\..\..\src\ta_func\ta_CDLHIGHWAVE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLHIGHWAVE.obj ..\..\..\..\..\src\ta_func\ta_CDLHIGHWAVE.c + +..\..\..\..\..\temp\cmr\ta_CDLHIKKAKE.obj: ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLHIKKAKE.obj ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKE.c + +..\..\..\..\..\temp\cmr\ta_CDLHIKKAKEMOD.obj: ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKEMOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLHIKKAKEMOD.obj ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKEMOD.c + +..\..\..\..\..\temp\cmr\ta_CDLHOMINGPIGEON.obj: ..\..\..\..\..\src\ta_func\ta_CDLHOMINGPIGEON.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLHOMINGPIGEON.obj ..\..\..\..\..\src\ta_func\ta_CDLHOMINGPIGEON.c + +..\..\..\..\..\temp\cmr\ta_CDLIDENTICAL3CROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDLIDENTICAL3CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLIDENTICAL3CROWS.obj ..\..\..\..\..\src\ta_func\ta_CDLIDENTICAL3CROWS.c + +..\..\..\..\..\temp\cmr\ta_CDLINNECK.obj: ..\..\..\..\..\src\ta_func\ta_CDLINNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLINNECK.obj ..\..\..\..\..\src\ta_func\ta_CDLINNECK.c + +..\..\..\..\..\temp\cmr\ta_CDLINVERTEDHAMMER.obj: ..\..\..\..\..\src\ta_func\ta_CDLINVERTEDHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLINVERTEDHAMMER.obj ..\..\..\..\..\src\ta_func\ta_CDLINVERTEDHAMMER.c + +..\..\..\..\..\temp\cmr\ta_CDLKICKING.obj: ..\..\..\..\..\src\ta_func\ta_CDLKICKING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLKICKING.obj ..\..\..\..\..\src\ta_func\ta_CDLKICKING.c + +..\..\..\..\..\temp\cmr\ta_CDLKICKINGBYLENGTH.obj: ..\..\..\..\..\src\ta_func\ta_CDLKICKINGBYLENGTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLKICKINGBYLENGTH.obj ..\..\..\..\..\src\ta_func\ta_CDLKICKINGBYLENGTH.c + +..\..\..\..\..\temp\cmr\ta_CDLLADDERBOTTOM.obj: ..\..\..\..\..\src\ta_func\ta_CDLLADDERBOTTOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLLADDERBOTTOM.obj ..\..\..\..\..\src\ta_func\ta_CDLLADDERBOTTOM.c + +..\..\..\..\..\temp\cmr\ta_CDLLONGLEGGEDDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLLONGLEGGEDDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLLONGLEGGEDDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLLONGLEGGEDDOJI.c + +..\..\..\..\..\temp\cmr\ta_CDLLONGLINE.obj: ..\..\..\..\..\src\ta_func\ta_CDLLONGLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLLONGLINE.obj ..\..\..\..\..\src\ta_func\ta_CDLLONGLINE.c + +..\..\..\..\..\temp\cmr\ta_CDLMARUBOZU.obj: ..\..\..\..\..\src\ta_func\ta_CDLMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLMARUBOZU.obj ..\..\..\..\..\src\ta_func\ta_CDLMARUBOZU.c + +..\..\..\..\..\temp\cmr\ta_CDLMATCHINGLOW.obj: ..\..\..\..\..\src\ta_func\ta_CDLMATCHINGLOW.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLMATCHINGLOW.obj ..\..\..\..\..\src\ta_func\ta_CDLMATCHINGLOW.c + +..\..\..\..\..\temp\cmr\ta_CDLMATHOLD.obj: ..\..\..\..\..\src\ta_func\ta_CDLMATHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLMATHOLD.obj ..\..\..\..\..\src\ta_func\ta_CDLMATHOLD.c + +..\..\..\..\..\temp\cmr\ta_CDLMORNINGDOJISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLMORNINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLMORNINGDOJISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLMORNINGDOJISTAR.c + +..\..\..\..\..\temp\cmr\ta_CDLMORNINGSTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLMORNINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLMORNINGSTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLMORNINGSTAR.c + +..\..\..\..\..\temp\cmr\ta_CDLONNECK.obj: ..\..\..\..\..\src\ta_func\ta_CDLONNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLONNECK.obj ..\..\..\..\..\src\ta_func\ta_CDLONNECK.c + +..\..\..\..\..\temp\cmr\ta_CDLPIERCING.obj: ..\..\..\..\..\src\ta_func\ta_CDLPIERCING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLPIERCING.obj ..\..\..\..\..\src\ta_func\ta_CDLPIERCING.c + +..\..\..\..\..\temp\cmr\ta_CDLRICKSHAWMAN.obj: ..\..\..\..\..\src\ta_func\ta_CDLRICKSHAWMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLRICKSHAWMAN.obj ..\..\..\..\..\src\ta_func\ta_CDLRICKSHAWMAN.c + +..\..\..\..\..\temp\cmr\ta_CDLRISEFALL3METHODS.obj: ..\..\..\..\..\src\ta_func\ta_CDLRISEFALL3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLRISEFALL3METHODS.obj ..\..\..\..\..\src\ta_func\ta_CDLRISEFALL3METHODS.c + +..\..\..\..\..\temp\cmr\ta_CDLSEPARATINGLINES.obj: ..\..\..\..\..\src\ta_func\ta_CDLSEPARATINGLINES.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLSEPARATINGLINES.obj ..\..\..\..\..\src\ta_func\ta_CDLSEPARATINGLINES.c + +..\..\..\..\..\temp\cmr\ta_CDLSHOOTINGSTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLSHOOTINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLSHOOTINGSTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLSHOOTINGSTAR.c + +..\..\..\..\..\temp\cmr\ta_CDLSHORTLINE.obj: ..\..\..\..\..\src\ta_func\ta_CDLSHORTLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLSHORTLINE.obj ..\..\..\..\..\src\ta_func\ta_CDLSHORTLINE.c + +..\..\..\..\..\temp\cmr\ta_CDLSPINNINGTOP.obj: ..\..\..\..\..\src\ta_func\ta_CDLSPINNINGTOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLSPINNINGTOP.obj ..\..\..\..\..\src\ta_func\ta_CDLSPINNINGTOP.c + +..\..\..\..\..\temp\cmr\ta_CDLSTALLEDPATTERN.obj: ..\..\..\..\..\src\ta_func\ta_CDLSTALLEDPATTERN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLSTALLEDPATTERN.obj ..\..\..\..\..\src\ta_func\ta_CDLSTALLEDPATTERN.c + +..\..\..\..\..\temp\cmr\ta_CDLSTICKSANDWICH.obj: ..\..\..\..\..\src\ta_func\ta_CDLSTICKSANDWICH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLSTICKSANDWICH.obj ..\..\..\..\..\src\ta_func\ta_CDLSTICKSANDWICH.c + +..\..\..\..\..\temp\cmr\ta_CDLTAKURI.obj: ..\..\..\..\..\src\ta_func\ta_CDLTAKURI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLTAKURI.obj ..\..\..\..\..\src\ta_func\ta_CDLTAKURI.c + +..\..\..\..\..\temp\cmr\ta_CDLTASUKIGAP.obj: ..\..\..\..\..\src\ta_func\ta_CDLTASUKIGAP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLTASUKIGAP.obj ..\..\..\..\..\src\ta_func\ta_CDLTASUKIGAP.c + +..\..\..\..\..\temp\cmr\ta_CDLTHRUSTING.obj: ..\..\..\..\..\src\ta_func\ta_CDLTHRUSTING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLTHRUSTING.obj ..\..\..\..\..\src\ta_func\ta_CDLTHRUSTING.c + +..\..\..\..\..\temp\cmr\ta_CDLTRISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLTRISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLTRISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLTRISTAR.c + +..\..\..\..\..\temp\cmr\ta_CDLUNIQUE3RIVER.obj: ..\..\..\..\..\src\ta_func\ta_CDLUNIQUE3RIVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLUNIQUE3RIVER.obj ..\..\..\..\..\src\ta_func\ta_CDLUNIQUE3RIVER.c + +..\..\..\..\..\temp\cmr\ta_CDLUPSIDEGAP2CROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDLUPSIDEGAP2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLUPSIDEGAP2CROWS.obj ..\..\..\..\..\src\ta_func\ta_CDLUPSIDEGAP2CROWS.c + +..\..\..\..\..\temp\cmr\ta_CDLXSIDEGAP3METHODS.obj: ..\..\..\..\..\src\ta_func\ta_CDLXSIDEGAP3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLXSIDEGAP3METHODS.obj ..\..\..\..\..\src\ta_func\ta_CDLXSIDEGAP3METHODS.c + +..\..\..\..\..\temp\cmr\ta_CEIL.obj: ..\..\..\..\..\src\ta_func\ta_CEIL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CEIL.obj ..\..\..\..\..\src\ta_func\ta_CEIL.c + +..\..\..\..\..\temp\cmr\ta_CMO.obj: ..\..\..\..\..\src\ta_func\ta_CMO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CMO.obj ..\..\..\..\..\src\ta_func\ta_CMO.c + +..\..\..\..\..\temp\cmr\ta_CORREL.obj: ..\..\..\..\..\src\ta_func\ta_CORREL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CORREL.obj ..\..\..\..\..\src\ta_func\ta_CORREL.c + +..\..\..\..\..\temp\cmr\ta_COS.obj: ..\..\..\..\..\src\ta_func\ta_COS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_COS.obj ..\..\..\..\..\src\ta_func\ta_COS.c + +..\..\..\..\..\temp\cmr\ta_COSH.obj: ..\..\..\..\..\src\ta_func\ta_COSH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_COSH.obj ..\..\..\..\..\src\ta_func\ta_COSH.c + +..\..\..\..\..\temp\cmr\ta_DEMA.obj: ..\..\..\..\..\src\ta_func\ta_DEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_DEMA.obj ..\..\..\..\..\src\ta_func\ta_DEMA.c + +..\..\..\..\..\temp\cmr\ta_DIV.obj: ..\..\..\..\..\src\ta_func\ta_DIV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_DIV.obj ..\..\..\..\..\src\ta_func\ta_DIV.c + +..\..\..\..\..\temp\cmr\ta_DX.obj: ..\..\..\..\..\src\ta_func\ta_DX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_DX.obj ..\..\..\..\..\src\ta_func\ta_DX.c + +..\..\..\..\..\temp\cmr\ta_EMA.obj: ..\..\..\..\..\src\ta_func\ta_EMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_EMA.obj ..\..\..\..\..\src\ta_func\ta_EMA.c + +..\..\..\..\..\temp\cmr\ta_EXP.obj: ..\..\..\..\..\src\ta_func\ta_EXP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_EXP.obj ..\..\..\..\..\src\ta_func\ta_EXP.c + +..\..\..\..\..\temp\cmr\ta_FLOOR.obj: ..\..\..\..\..\src\ta_func\ta_FLOOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_FLOOR.obj ..\..\..\..\..\src\ta_func\ta_FLOOR.c + +..\..\..\..\..\temp\cmr\ta_HT_DCPERIOD.obj: ..\..\..\..\..\src\ta_func\ta_HT_DCPERIOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_HT_DCPERIOD.obj ..\..\..\..\..\src\ta_func\ta_HT_DCPERIOD.c + +..\..\..\..\..\temp\cmr\ta_HT_DCPHASE.obj: ..\..\..\..\..\src\ta_func\ta_HT_DCPHASE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_HT_DCPHASE.obj ..\..\..\..\..\src\ta_func\ta_HT_DCPHASE.c + +..\..\..\..\..\temp\cmr\ta_HT_PHASOR.obj: ..\..\..\..\..\src\ta_func\ta_HT_PHASOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_HT_PHASOR.obj ..\..\..\..\..\src\ta_func\ta_HT_PHASOR.c + +..\..\..\..\..\temp\cmr\ta_HT_SINE.obj: ..\..\..\..\..\src\ta_func\ta_HT_SINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_HT_SINE.obj ..\..\..\..\..\src\ta_func\ta_HT_SINE.c + +..\..\..\..\..\temp\cmr\ta_HT_TRENDLINE.obj: ..\..\..\..\..\src\ta_func\ta_HT_TRENDLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_HT_TRENDLINE.obj ..\..\..\..\..\src\ta_func\ta_HT_TRENDLINE.c + +..\..\..\..\..\temp\cmr\ta_HT_TRENDMODE.obj: ..\..\..\..\..\src\ta_func\ta_HT_TRENDMODE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_HT_TRENDMODE.obj ..\..\..\..\..\src\ta_func\ta_HT_TRENDMODE.c + +..\..\..\..\..\temp\cmr\ta_KAMA.obj: ..\..\..\..\..\src\ta_func\ta_KAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_KAMA.obj ..\..\..\..\..\src\ta_func\ta_KAMA.c + +..\..\..\..\..\temp\cmr\ta_LINEARREG.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_LINEARREG.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG.c + +..\..\..\..\..\temp\cmr\ta_LINEARREG_ANGLE.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG_ANGLE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_LINEARREG_ANGLE.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG_ANGLE.c + +..\..\..\..\..\temp\cmr\ta_LINEARREG_INTERCEPT.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG_INTERCEPT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_LINEARREG_INTERCEPT.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG_INTERCEPT.c + +..\..\..\..\..\temp\cmr\ta_LINEARREG_SLOPE.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG_SLOPE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_LINEARREG_SLOPE.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG_SLOPE.c + +..\..\..\..\..\temp\cmr\ta_LN.obj: ..\..\..\..\..\src\ta_func\ta_LN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_LN.obj ..\..\..\..\..\src\ta_func\ta_LN.c + +..\..\..\..\..\temp\cmr\ta_LOG10.obj: ..\..\..\..\..\src\ta_func\ta_LOG10.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_LOG10.obj ..\..\..\..\..\src\ta_func\ta_LOG10.c + +..\..\..\..\..\temp\cmr\ta_MA.obj: ..\..\..\..\..\src\ta_func\ta_MA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_MA.obj ..\..\..\..\..\src\ta_func\ta_MA.c + +..\..\..\..\..\temp\cmr\ta_MACD.obj: ..\..\..\..\..\src\ta_func\ta_MACD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_MACD.obj ..\..\..\..\..\src\ta_func\ta_MACD.c + +..\..\..\..\..\temp\cmr\ta_MACDEXT.obj: ..\..\..\..\..\src\ta_func\ta_MACDEXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_MACDEXT.obj ..\..\..\..\..\src\ta_func\ta_MACDEXT.c + +..\..\..\..\..\temp\cmr\ta_MACDFIX.obj: ..\..\..\..\..\src\ta_func\ta_MACDFIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_MACDFIX.obj ..\..\..\..\..\src\ta_func\ta_MACDFIX.c + +..\..\..\..\..\temp\cmr\ta_MAMA.obj: ..\..\..\..\..\src\ta_func\ta_MAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_MAMA.obj ..\..\..\..\..\src\ta_func\ta_MAMA.c + +..\..\..\..\..\temp\cmr\ta_MAVP.obj: ..\..\..\..\..\src\ta_func\ta_MAVP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_MAVP.obj ..\..\..\..\..\src\ta_func\ta_MAVP.c + +..\..\..\..\..\temp\cmr\ta_MAX.obj: ..\..\..\..\..\src\ta_func\ta_MAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_MAX.obj ..\..\..\..\..\src\ta_func\ta_MAX.c + +..\..\..\..\..\temp\cmr\ta_MAXINDEX.obj: ..\..\..\..\..\src\ta_func\ta_MAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_MAXINDEX.obj ..\..\..\..\..\src\ta_func\ta_MAXINDEX.c + +..\..\..\..\..\temp\cmr\ta_MEDPRICE.obj: ..\..\..\..\..\src\ta_func\ta_MEDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_MEDPRICE.obj ..\..\..\..\..\src\ta_func\ta_MEDPRICE.c + +..\..\..\..\..\temp\cmr\ta_MFI.obj: ..\..\..\..\..\src\ta_func\ta_MFI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_MFI.obj ..\..\..\..\..\src\ta_func\ta_MFI.c + +..\..\..\..\..\temp\cmr\ta_MIDPOINT.obj: ..\..\..\..\..\src\ta_func\ta_MIDPOINT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_MIDPOINT.obj ..\..\..\..\..\src\ta_func\ta_MIDPOINT.c + +..\..\..\..\..\temp\cmr\ta_MIDPRICE.obj: ..\..\..\..\..\src\ta_func\ta_MIDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_MIDPRICE.obj ..\..\..\..\..\src\ta_func\ta_MIDPRICE.c + +..\..\..\..\..\temp\cmr\ta_MIN.obj: ..\..\..\..\..\src\ta_func\ta_MIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_MIN.obj ..\..\..\..\..\src\ta_func\ta_MIN.c + +..\..\..\..\..\temp\cmr\ta_MININDEX.obj: ..\..\..\..\..\src\ta_func\ta_MININDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_MININDEX.obj ..\..\..\..\..\src\ta_func\ta_MININDEX.c + +..\..\..\..\..\temp\cmr\ta_MINMAX.obj: ..\..\..\..\..\src\ta_func\ta_MINMAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_MINMAX.obj ..\..\..\..\..\src\ta_func\ta_MINMAX.c + +..\..\..\..\..\temp\cmr\ta_MINMAXINDEX.obj: ..\..\..\..\..\src\ta_func\ta_MINMAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_MINMAXINDEX.obj ..\..\..\..\..\src\ta_func\ta_MINMAXINDEX.c + +..\..\..\..\..\temp\cmr\ta_MINUS_DI.obj: ..\..\..\..\..\src\ta_func\ta_MINUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_MINUS_DI.obj ..\..\..\..\..\src\ta_func\ta_MINUS_DI.c + +..\..\..\..\..\temp\cmr\ta_MINUS_DM.obj: ..\..\..\..\..\src\ta_func\ta_MINUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_MINUS_DM.obj ..\..\..\..\..\src\ta_func\ta_MINUS_DM.c + +..\..\..\..\..\temp\cmr\ta_MOM.obj: ..\..\..\..\..\src\ta_func\ta_MOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_MOM.obj ..\..\..\..\..\src\ta_func\ta_MOM.c + +..\..\..\..\..\temp\cmr\ta_MULT.obj: ..\..\..\..\..\src\ta_func\ta_MULT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_MULT.obj ..\..\..\..\..\src\ta_func\ta_MULT.c + +..\..\..\..\..\temp\cmr\ta_NATR.obj: ..\..\..\..\..\src\ta_func\ta_NATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_NATR.obj ..\..\..\..\..\src\ta_func\ta_NATR.c + +..\..\..\..\..\temp\cmr\ta_OBV.obj: ..\..\..\..\..\src\ta_func\ta_OBV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_OBV.obj ..\..\..\..\..\src\ta_func\ta_OBV.c + +..\..\..\..\..\temp\cmr\ta_PLUS_DI.obj: ..\..\..\..\..\src\ta_func\ta_PLUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_PLUS_DI.obj ..\..\..\..\..\src\ta_func\ta_PLUS_DI.c + +..\..\..\..\..\temp\cmr\ta_PLUS_DM.obj: ..\..\..\..\..\src\ta_func\ta_PLUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_PLUS_DM.obj ..\..\..\..\..\src\ta_func\ta_PLUS_DM.c + +..\..\..\..\..\temp\cmr\ta_PPO.obj: ..\..\..\..\..\src\ta_func\ta_PPO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_PPO.obj ..\..\..\..\..\src\ta_func\ta_PPO.c + +..\..\..\..\..\temp\cmr\ta_ROC.obj: ..\..\..\..\..\src\ta_func\ta_ROC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_ROC.obj ..\..\..\..\..\src\ta_func\ta_ROC.c + +..\..\..\..\..\temp\cmr\ta_ROCP.obj: ..\..\..\..\..\src\ta_func\ta_ROCP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_ROCP.obj ..\..\..\..\..\src\ta_func\ta_ROCP.c + +..\..\..\..\..\temp\cmr\ta_ROCR.obj: ..\..\..\..\..\src\ta_func\ta_ROCR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_ROCR.obj ..\..\..\..\..\src\ta_func\ta_ROCR.c + +..\..\..\..\..\temp\cmr\ta_ROCR100.obj: ..\..\..\..\..\src\ta_func\ta_ROCR100.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_ROCR100.obj ..\..\..\..\..\src\ta_func\ta_ROCR100.c + +..\..\..\..\..\temp\cmr\ta_RSI.obj: ..\..\..\..\..\src\ta_func\ta_RSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_RSI.obj ..\..\..\..\..\src\ta_func\ta_RSI.c + +..\..\..\..\..\temp\cmr\ta_SAR.obj: ..\..\..\..\..\src\ta_func\ta_SAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_SAR.obj ..\..\..\..\..\src\ta_func\ta_SAR.c + +..\..\..\..\..\temp\cmr\ta_SAREXT.obj: ..\..\..\..\..\src\ta_func\ta_SAREXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_SAREXT.obj ..\..\..\..\..\src\ta_func\ta_SAREXT.c + +..\..\..\..\..\temp\cmr\ta_SIN.obj: ..\..\..\..\..\src\ta_func\ta_SIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_SIN.obj ..\..\..\..\..\src\ta_func\ta_SIN.c + +..\..\..\..\..\temp\cmr\ta_SINH.obj: ..\..\..\..\..\src\ta_func\ta_SINH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_SINH.obj ..\..\..\..\..\src\ta_func\ta_SINH.c + +..\..\..\..\..\temp\cmr\ta_SMA.obj: ..\..\..\..\..\src\ta_func\ta_SMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_SMA.obj ..\..\..\..\..\src\ta_func\ta_SMA.c + +..\..\..\..\..\temp\cmr\ta_SQRT.obj: ..\..\..\..\..\src\ta_func\ta_SQRT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_SQRT.obj ..\..\..\..\..\src\ta_func\ta_SQRT.c + +..\..\..\..\..\temp\cmr\ta_STDDEV.obj: ..\..\..\..\..\src\ta_func\ta_STDDEV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_STDDEV.obj ..\..\..\..\..\src\ta_func\ta_STDDEV.c + +..\..\..\..\..\temp\cmr\ta_STOCH.obj: ..\..\..\..\..\src\ta_func\ta_STOCH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_STOCH.obj ..\..\..\..\..\src\ta_func\ta_STOCH.c + +..\..\..\..\..\temp\cmr\ta_STOCHF.obj: ..\..\..\..\..\src\ta_func\ta_STOCHF.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_STOCHF.obj ..\..\..\..\..\src\ta_func\ta_STOCHF.c + +..\..\..\..\..\temp\cmr\ta_STOCHRSI.obj: ..\..\..\..\..\src\ta_func\ta_STOCHRSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_STOCHRSI.obj ..\..\..\..\..\src\ta_func\ta_STOCHRSI.c + +..\..\..\..\..\temp\cmr\ta_SUB.obj: ..\..\..\..\..\src\ta_func\ta_SUB.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_SUB.obj ..\..\..\..\..\src\ta_func\ta_SUB.c + +..\..\..\..\..\temp\cmr\ta_SUM.obj: ..\..\..\..\..\src\ta_func\ta_SUM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_SUM.obj ..\..\..\..\..\src\ta_func\ta_SUM.c + +..\..\..\..\..\temp\cmr\ta_T3.obj: ..\..\..\..\..\src\ta_func\ta_T3.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_T3.obj ..\..\..\..\..\src\ta_func\ta_T3.c + +..\..\..\..\..\temp\cmr\ta_TAN.obj: ..\..\..\..\..\src\ta_func\ta_TAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_TAN.obj ..\..\..\..\..\src\ta_func\ta_TAN.c + +..\..\..\..\..\temp\cmr\ta_TANH.obj: ..\..\..\..\..\src\ta_func\ta_TANH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_TANH.obj ..\..\..\..\..\src\ta_func\ta_TANH.c + +..\..\..\..\..\temp\cmr\ta_TEMA.obj: ..\..\..\..\..\src\ta_func\ta_TEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_TEMA.obj ..\..\..\..\..\src\ta_func\ta_TEMA.c + +..\..\..\..\..\temp\cmr\ta_TRANGE.obj: ..\..\..\..\..\src\ta_func\ta_TRANGE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_TRANGE.obj ..\..\..\..\..\src\ta_func\ta_TRANGE.c + +..\..\..\..\..\temp\cmr\ta_TRIMA.obj: ..\..\..\..\..\src\ta_func\ta_TRIMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_TRIMA.obj ..\..\..\..\..\src\ta_func\ta_TRIMA.c + +..\..\..\..\..\temp\cmr\ta_TRIX.obj: ..\..\..\..\..\src\ta_func\ta_TRIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_TRIX.obj ..\..\..\..\..\src\ta_func\ta_TRIX.c + +..\..\..\..\..\temp\cmr\ta_TSF.obj: ..\..\..\..\..\src\ta_func\ta_TSF.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_TSF.obj ..\..\..\..\..\src\ta_func\ta_TSF.c + +..\..\..\..\..\temp\cmr\ta_TYPPRICE.obj: ..\..\..\..\..\src\ta_func\ta_TYPPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_TYPPRICE.obj ..\..\..\..\..\src\ta_func\ta_TYPPRICE.c + +..\..\..\..\..\temp\cmr\ta_ULTOSC.obj: ..\..\..\..\..\src\ta_func\ta_ULTOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_ULTOSC.obj ..\..\..\..\..\src\ta_func\ta_ULTOSC.c + +..\..\..\..\..\temp\cmr\ta_VAR.obj: ..\..\..\..\..\src\ta_func\ta_VAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_VAR.obj ..\..\..\..\..\src\ta_func\ta_VAR.c + +..\..\..\..\..\temp\cmr\ta_WCLPRICE.obj: ..\..\..\..\..\src\ta_func\ta_WCLPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_WCLPRICE.obj ..\..\..\..\..\src\ta_func\ta_WCLPRICE.c + +..\..\..\..\..\temp\cmr\ta_WILLR.obj: ..\..\..\..\..\src\ta_func\ta_WILLR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_WILLR.obj ..\..\..\..\..\src\ta_func\ta_WILLR.c + +..\..\..\..\..\temp\cmr\ta_WMA.obj: ..\..\..\..\..\src\ta_func\ta_WMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_WMA.obj ..\..\..\..\..\src\ta_func\ta_WMA.c + diff --git a/make/cmr/win32/borland/ta_libc/Makefile b/make/cmr/win32/borland/ta_libc/Makefile new file mode 100644 index 000000000..12671d842 --- /dev/null +++ b/make/cmr/win32/borland/ta_libc/Makefile @@ -0,0 +1,1438 @@ +############################################################################# +# Makefile for building ta_libc_cmr +# Generated by tmake; +# Project: ta_libc/ta_libc +# Template: lib +############################################################################# + +!if !$d(BCB) +BCB = $(MAKEDIR)\.. +!endif + +####### Compiler, tools and options + +CC = bcc32 +CXX = bcc32 +CFLAGS = -x- -RT- -tWR -w -w-8004 -w-8071 -w-8057 -w-8080 -tWM -O2 -DWIN32 -DQT_THREAD_SUPPORT -DNO_DEBUG +CXXFLAGS= -x- -RT- -tWR -w -w-8004 -w-8071 -w-8057 -w-8080 -tWM -O2 -DWIN32 -DQT_THREAD_SUPPORT -DNO_DEBUG +INCPATH = -I"..\..\..\..\..\src\ta_common" -I"..\..\..\..\..\include" -I"..\..\..\..\..\src\ta_abstract" -I"..\..\..\..\..\src\ta_abstract\tables" -I"..\..\..\..\..\src\ta_abstract\frames" -I"$(QTDIR)\include" +LIB = tlib /C /P256 +MOC = moc +UIC = uic + +ZIP = zip -r -9 +DEF_FILE = +RES_FILE = + +####### Files + +HEADERS = +SOURCES = ..\..\..\..\..\src\ta_common\ta_global.c \ + ..\..\..\..\..\src\ta_common\ta_retcode.c \ + ..\..\..\..\..\src\ta_common\ta_version.c \ + ..\..\..\..\..\src\ta_abstract\ta_abstract.c \ + ..\..\..\..\..\src\ta_abstract\ta_def_ui.c \ + ..\..\..\..\..\src\ta_abstract\ta_func_api.c \ + ..\..\..\..\..\src\ta_abstract\ta_group_idx.c \ + ..\..\..\..\..\src\ta_abstract\frames\ta_frame.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_a.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_b.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_c.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_d.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_e.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_f.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_g.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_h.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_i.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_j.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_k.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_l.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_m.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_n.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_o.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_p.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_q.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_r.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_s.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_t.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_u.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_v.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_w.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_x.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_y.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_z.c \ + ..\..\..\..\..\src\ta_func\ta_utility.c \ + ..\..\..\..\..\src\ta_func\ta_ACOS.c \ + ..\..\..\..\..\src\ta_func\ta_AD.c \ + ..\..\..\..\..\src\ta_func\ta_ADD.c \ + ..\..\..\..\..\src\ta_func\ta_ADOSC.c \ + ..\..\..\..\..\src\ta_func\ta_ADX.c \ + ..\..\..\..\..\src\ta_func\ta_ADXR.c \ + ..\..\..\..\..\src\ta_func\ta_APO.c \ + ..\..\..\..\..\src\ta_func\ta_AROON.c \ + ..\..\..\..\..\src\ta_func\ta_AROONOSC.c \ + ..\..\..\..\..\src\ta_func\ta_ASIN.c \ + ..\..\..\..\..\src\ta_func\ta_ATAN.c \ + ..\..\..\..\..\src\ta_func\ta_ATR.c \ + ..\..\..\..\..\src\ta_func\ta_AVGPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_BBANDS.c \ + ..\..\..\..\..\src\ta_func\ta_BETA.c \ + ..\..\..\..\..\src\ta_func\ta_BOP.c \ + ..\..\..\..\..\src\ta_func\ta_CCI.c \ + ..\..\..\..\..\src\ta_func\ta_CDL2CROWS.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3BLACKCROWS.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3INSIDE.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3LINESTRIKE.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3OUTSIDE.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3STARSINSOUTH.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3WHITESOLDIERS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLABANDONEDBABY.c \ + ..\..\..\..\..\src\ta_func\ta_CDLADVANCEBLOCK.c \ + ..\..\..\..\..\src\ta_func\ta_CDLBELTHOLD.c \ + ..\..\..\..\..\src\ta_func\ta_CDLBREAKAWAY.c \ + ..\..\..\..\..\src\ta_func\ta_CDLCLOSINGMARUBOZU.c \ + ..\..\..\..\..\src\ta_func\ta_CDLCONCEALBABYSWALL.c \ + ..\..\..\..\..\src\ta_func\ta_CDLCOUNTERATTACK.c \ + ..\..\..\..\..\src\ta_func\ta_CDLDARKCLOUDCOVER.c \ + ..\..\..\..\..\src\ta_func\ta_CDLDOJI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLDOJISTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLDRAGONFLYDOJI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLENGULFING.c \ + ..\..\..\..\..\src\ta_func\ta_CDLEVENINGDOJISTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLEVENINGSTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLGAPSIDESIDEWHITE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLGRAVESTONEDOJI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHAMMER.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHANGINGMAN.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHARAMI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHARAMICROSS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHIGHWAVE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKEMOD.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHOMINGPIGEON.c \ + ..\..\..\..\..\src\ta_func\ta_CDLIDENTICAL3CROWS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLINNECK.c \ + ..\..\..\..\..\src\ta_func\ta_CDLINVERTEDHAMMER.c \ + ..\..\..\..\..\src\ta_func\ta_CDLKICKING.c \ + ..\..\..\..\..\src\ta_func\ta_CDLKICKINGBYLENGTH.c \ + ..\..\..\..\..\src\ta_func\ta_CDLLADDERBOTTOM.c \ + ..\..\..\..\..\src\ta_func\ta_CDLLONGLEGGEDDOJI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLLONGLINE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMARUBOZU.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMATCHINGLOW.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMATHOLD.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMORNINGDOJISTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMORNINGSTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLONNECK.c \ + ..\..\..\..\..\src\ta_func\ta_CDLPIERCING.c \ + ..\..\..\..\..\src\ta_func\ta_CDLRICKSHAWMAN.c \ + ..\..\..\..\..\src\ta_func\ta_CDLRISEFALL3METHODS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSEPARATINGLINES.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSHOOTINGSTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSHORTLINE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSPINNINGTOP.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSTALLEDPATTERN.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSTICKSANDWICH.c \ + ..\..\..\..\..\src\ta_func\ta_CDLTAKURI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLTASUKIGAP.c \ + ..\..\..\..\..\src\ta_func\ta_CDLTHRUSTING.c \ + ..\..\..\..\..\src\ta_func\ta_CDLTRISTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLUNIQUE3RIVER.c \ + ..\..\..\..\..\src\ta_func\ta_CDLUPSIDEGAP2CROWS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLXSIDEGAP3METHODS.c \ + ..\..\..\..\..\src\ta_func\ta_CEIL.c \ + ..\..\..\..\..\src\ta_func\ta_CMO.c \ + ..\..\..\..\..\src\ta_func\ta_CORREL.c \ + ..\..\..\..\..\src\ta_func\ta_COS.c \ + ..\..\..\..\..\src\ta_func\ta_COSH.c \ + ..\..\..\..\..\src\ta_func\ta_DEMA.c \ + ..\..\..\..\..\src\ta_func\ta_DIV.c \ + ..\..\..\..\..\src\ta_func\ta_DX.c \ + ..\..\..\..\..\src\ta_func\ta_EMA.c \ + ..\..\..\..\..\src\ta_func\ta_EXP.c \ + ..\..\..\..\..\src\ta_func\ta_FLOOR.c \ + ..\..\..\..\..\src\ta_func\ta_HT_DCPERIOD.c \ + ..\..\..\..\..\src\ta_func\ta_HT_DCPHASE.c \ + ..\..\..\..\..\src\ta_func\ta_HT_PHASOR.c \ + ..\..\..\..\..\src\ta_func\ta_HT_SINE.c \ + ..\..\..\..\..\src\ta_func\ta_HT_TRENDLINE.c \ + ..\..\..\..\..\src\ta_func\ta_HT_TRENDMODE.c \ + ..\..\..\..\..\src\ta_func\ta_KAMA.c \ + ..\..\..\..\..\src\ta_func\ta_LINEARREG.c \ + ..\..\..\..\..\src\ta_func\ta_LINEARREG_ANGLE.c \ + ..\..\..\..\..\src\ta_func\ta_LINEARREG_INTERCEPT.c \ + ..\..\..\..\..\src\ta_func\ta_LINEARREG_SLOPE.c \ + ..\..\..\..\..\src\ta_func\ta_LN.c \ + ..\..\..\..\..\src\ta_func\ta_LOG10.c \ + ..\..\..\..\..\src\ta_func\ta_MA.c \ + ..\..\..\..\..\src\ta_func\ta_MACD.c \ + ..\..\..\..\..\src\ta_func\ta_MACDEXT.c \ + ..\..\..\..\..\src\ta_func\ta_MACDFIX.c \ + ..\..\..\..\..\src\ta_func\ta_MAMA.c \ + ..\..\..\..\..\src\ta_func\ta_MAVP.c \ + ..\..\..\..\..\src\ta_func\ta_MAX.c \ + ..\..\..\..\..\src\ta_func\ta_MAXINDEX.c \ + ..\..\..\..\..\src\ta_func\ta_MEDPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_MFI.c \ + ..\..\..\..\..\src\ta_func\ta_MIDPOINT.c \ + ..\..\..\..\..\src\ta_func\ta_MIDPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_MIN.c \ + ..\..\..\..\..\src\ta_func\ta_MININDEX.c \ + ..\..\..\..\..\src\ta_func\ta_MINMAX.c \ + ..\..\..\..\..\src\ta_func\ta_MINMAXINDEX.c \ + ..\..\..\..\..\src\ta_func\ta_MINUS_DI.c \ + ..\..\..\..\..\src\ta_func\ta_MINUS_DM.c \ + ..\..\..\..\..\src\ta_func\ta_MOM.c \ + ..\..\..\..\..\src\ta_func\ta_MULT.c \ + ..\..\..\..\..\src\ta_func\ta_NATR.c \ + ..\..\..\..\..\src\ta_func\ta_OBV.c \ + ..\..\..\..\..\src\ta_func\ta_PLUS_DI.c \ + ..\..\..\..\..\src\ta_func\ta_PLUS_DM.c \ + ..\..\..\..\..\src\ta_func\ta_PPO.c \ + ..\..\..\..\..\src\ta_func\ta_ROC.c \ + ..\..\..\..\..\src\ta_func\ta_ROCP.c \ + ..\..\..\..\..\src\ta_func\ta_ROCR.c \ + ..\..\..\..\..\src\ta_func\ta_ROCR100.c \ + ..\..\..\..\..\src\ta_func\ta_RSI.c \ + ..\..\..\..\..\src\ta_func\ta_SAR.c \ + ..\..\..\..\..\src\ta_func\ta_SAREXT.c \ + ..\..\..\..\..\src\ta_func\ta_SIN.c \ + ..\..\..\..\..\src\ta_func\ta_SINH.c \ + ..\..\..\..\..\src\ta_func\ta_SMA.c \ + ..\..\..\..\..\src\ta_func\ta_SQRT.c \ + ..\..\..\..\..\src\ta_func\ta_STDDEV.c \ + ..\..\..\..\..\src\ta_func\ta_STOCH.c \ + ..\..\..\..\..\src\ta_func\ta_STOCHF.c \ + ..\..\..\..\..\src\ta_func\ta_STOCHRSI.c \ + ..\..\..\..\..\src\ta_func\ta_SUB.c \ + ..\..\..\..\..\src\ta_func\ta_SUM.c \ + ..\..\..\..\..\src\ta_func\ta_T3.c \ + ..\..\..\..\..\src\ta_func\ta_TAN.c \ + ..\..\..\..\..\src\ta_func\ta_TANH.c \ + ..\..\..\..\..\src\ta_func\ta_TEMA.c \ + ..\..\..\..\..\src\ta_func\ta_TRANGE.c \ + ..\..\..\..\..\src\ta_func\ta_TRIMA.c \ + ..\..\..\..\..\src\ta_func\ta_TRIX.c \ + ..\..\..\..\..\src\ta_func\ta_TSF.c \ + ..\..\..\..\..\src\ta_func\ta_TYPPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_ULTOSC.c \ + ..\..\..\..\..\src\ta_func\ta_VAR.c \ + ..\..\..\..\..\src\ta_func\ta_WCLPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_WILLR.c \ + ..\..\..\..\..\src\ta_func\ta_WMA.c +OBJECTS = ..\..\..\..\..\temp\cmr\ta_global.obj \ + ..\..\..\..\..\temp\cmr\ta_retcode.obj \ + ..\..\..\..\..\temp\cmr\ta_version.obj \ + ..\..\..\..\..\temp\cmr\ta_abstract.obj \ + ..\..\..\..\..\temp\cmr\ta_def_ui.obj \ + ..\..\..\..\..\temp\cmr\ta_func_api.obj \ + ..\..\..\..\..\temp\cmr\ta_group_idx.obj \ + ..\..\..\..\..\temp\cmr\ta_frame.obj \ + ..\..\..\..\..\temp\cmr\table_a.obj \ + ..\..\..\..\..\temp\cmr\table_b.obj \ + ..\..\..\..\..\temp\cmr\table_c.obj \ + ..\..\..\..\..\temp\cmr\table_d.obj \ + ..\..\..\..\..\temp\cmr\table_e.obj \ + ..\..\..\..\..\temp\cmr\table_f.obj \ + ..\..\..\..\..\temp\cmr\table_g.obj \ + ..\..\..\..\..\temp\cmr\table_h.obj \ + ..\..\..\..\..\temp\cmr\table_i.obj \ + ..\..\..\..\..\temp\cmr\table_j.obj \ + ..\..\..\..\..\temp\cmr\table_k.obj \ + ..\..\..\..\..\temp\cmr\table_l.obj \ + ..\..\..\..\..\temp\cmr\table_m.obj \ + ..\..\..\..\..\temp\cmr\table_n.obj \ + ..\..\..\..\..\temp\cmr\table_o.obj \ + ..\..\..\..\..\temp\cmr\table_p.obj \ + ..\..\..\..\..\temp\cmr\table_q.obj \ + ..\..\..\..\..\temp\cmr\table_r.obj \ + ..\..\..\..\..\temp\cmr\table_s.obj \ + ..\..\..\..\..\temp\cmr\table_t.obj \ + ..\..\..\..\..\temp\cmr\table_u.obj \ + ..\..\..\..\..\temp\cmr\table_v.obj \ + ..\..\..\..\..\temp\cmr\table_w.obj \ + ..\..\..\..\..\temp\cmr\table_x.obj \ + ..\..\..\..\..\temp\cmr\table_y.obj \ + ..\..\..\..\..\temp\cmr\table_z.obj \ + ..\..\..\..\..\temp\cmr\ta_utility.obj \ + ..\..\..\..\..\temp\cmr\ta_ACOS.obj \ + ..\..\..\..\..\temp\cmr\ta_AD.obj \ + ..\..\..\..\..\temp\cmr\ta_ADD.obj \ + ..\..\..\..\..\temp\cmr\ta_ADOSC.obj \ + ..\..\..\..\..\temp\cmr\ta_ADX.obj \ + ..\..\..\..\..\temp\cmr\ta_ADXR.obj \ + ..\..\..\..\..\temp\cmr\ta_APO.obj \ + ..\..\..\..\..\temp\cmr\ta_AROON.obj \ + ..\..\..\..\..\temp\cmr\ta_AROONOSC.obj \ + ..\..\..\..\..\temp\cmr\ta_ASIN.obj \ + ..\..\..\..\..\temp\cmr\ta_ATAN.obj \ + ..\..\..\..\..\temp\cmr\ta_ATR.obj \ + ..\..\..\..\..\temp\cmr\ta_AVGPRICE.obj \ + ..\..\..\..\..\temp\cmr\ta_BBANDS.obj \ + ..\..\..\..\..\temp\cmr\ta_BETA.obj \ + ..\..\..\..\..\temp\cmr\ta_BOP.obj \ + ..\..\..\..\..\temp\cmr\ta_CCI.obj \ + ..\..\..\..\..\temp\cmr\ta_CDL2CROWS.obj \ + ..\..\..\..\..\temp\cmr\ta_CDL3BLACKCROWS.obj \ + ..\..\..\..\..\temp\cmr\ta_CDL3INSIDE.obj \ + ..\..\..\..\..\temp\cmr\ta_CDL3LINESTRIKE.obj \ + ..\..\..\..\..\temp\cmr\ta_CDL3OUTSIDE.obj \ + ..\..\..\..\..\temp\cmr\ta_CDL3STARSINSOUTH.obj \ + ..\..\..\..\..\temp\cmr\ta_CDL3WHITESOLDIERS.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLABANDONEDBABY.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLADVANCEBLOCK.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLBELTHOLD.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLBREAKAWAY.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLCLOSINGMARUBOZU.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLCONCEALBABYSWALL.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLCOUNTERATTACK.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLDARKCLOUDCOVER.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLDOJI.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLDOJISTAR.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLDRAGONFLYDOJI.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLENGULFING.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLEVENINGDOJISTAR.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLEVENINGSTAR.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLGAPSIDESIDEWHITE.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLGRAVESTONEDOJI.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLHAMMER.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLHANGINGMAN.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLHARAMI.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLHARAMICROSS.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLHIGHWAVE.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLHIKKAKE.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLHIKKAKEMOD.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLHOMINGPIGEON.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLIDENTICAL3CROWS.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLINNECK.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLINVERTEDHAMMER.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLKICKING.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLKICKINGBYLENGTH.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLLADDERBOTTOM.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLLONGLEGGEDDOJI.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLLONGLINE.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLMARUBOZU.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLMATCHINGLOW.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLMATHOLD.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLMORNINGDOJISTAR.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLMORNINGSTAR.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLONNECK.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLPIERCING.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLRICKSHAWMAN.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLRISEFALL3METHODS.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLSEPARATINGLINES.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLSHOOTINGSTAR.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLSHORTLINE.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLSPINNINGTOP.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLSTALLEDPATTERN.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLSTICKSANDWICH.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLTAKURI.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLTASUKIGAP.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLTHRUSTING.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLTRISTAR.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLUNIQUE3RIVER.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLUPSIDEGAP2CROWS.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLXSIDEGAP3METHODS.obj \ + ..\..\..\..\..\temp\cmr\ta_CEIL.obj \ + ..\..\..\..\..\temp\cmr\ta_CMO.obj \ + ..\..\..\..\..\temp\cmr\ta_CORREL.obj \ + ..\..\..\..\..\temp\cmr\ta_COS.obj \ + ..\..\..\..\..\temp\cmr\ta_COSH.obj \ + ..\..\..\..\..\temp\cmr\ta_DEMA.obj \ + ..\..\..\..\..\temp\cmr\ta_DIV.obj \ + ..\..\..\..\..\temp\cmr\ta_DX.obj \ + ..\..\..\..\..\temp\cmr\ta_EMA.obj \ + ..\..\..\..\..\temp\cmr\ta_EXP.obj \ + ..\..\..\..\..\temp\cmr\ta_FLOOR.obj \ + ..\..\..\..\..\temp\cmr\ta_HT_DCPERIOD.obj \ + ..\..\..\..\..\temp\cmr\ta_HT_DCPHASE.obj \ + ..\..\..\..\..\temp\cmr\ta_HT_PHASOR.obj \ + ..\..\..\..\..\temp\cmr\ta_HT_SINE.obj \ + ..\..\..\..\..\temp\cmr\ta_HT_TRENDLINE.obj \ + ..\..\..\..\..\temp\cmr\ta_HT_TRENDMODE.obj \ + ..\..\..\..\..\temp\cmr\ta_KAMA.obj \ + ..\..\..\..\..\temp\cmr\ta_LINEARREG.obj \ + ..\..\..\..\..\temp\cmr\ta_LINEARREG_ANGLE.obj \ + ..\..\..\..\..\temp\cmr\ta_LINEARREG_INTERCEPT.obj \ + ..\..\..\..\..\temp\cmr\ta_LINEARREG_SLOPE.obj \ + ..\..\..\..\..\temp\cmr\ta_LN.obj \ + ..\..\..\..\..\temp\cmr\ta_LOG10.obj \ + ..\..\..\..\..\temp\cmr\ta_MA.obj \ + ..\..\..\..\..\temp\cmr\ta_MACD.obj \ + ..\..\..\..\..\temp\cmr\ta_MACDEXT.obj \ + ..\..\..\..\..\temp\cmr\ta_MACDFIX.obj \ + ..\..\..\..\..\temp\cmr\ta_MAMA.obj \ + ..\..\..\..\..\temp\cmr\ta_MAVP.obj \ + ..\..\..\..\..\temp\cmr\ta_MAX.obj \ + ..\..\..\..\..\temp\cmr\ta_MAXINDEX.obj \ + ..\..\..\..\..\temp\cmr\ta_MEDPRICE.obj \ + ..\..\..\..\..\temp\cmr\ta_MFI.obj \ + ..\..\..\..\..\temp\cmr\ta_MIDPOINT.obj \ + ..\..\..\..\..\temp\cmr\ta_MIDPRICE.obj \ + ..\..\..\..\..\temp\cmr\ta_MIN.obj \ + ..\..\..\..\..\temp\cmr\ta_MININDEX.obj \ + ..\..\..\..\..\temp\cmr\ta_MINMAX.obj \ + ..\..\..\..\..\temp\cmr\ta_MINMAXINDEX.obj \ + ..\..\..\..\..\temp\cmr\ta_MINUS_DI.obj \ + ..\..\..\..\..\temp\cmr\ta_MINUS_DM.obj \ + ..\..\..\..\..\temp\cmr\ta_MOM.obj \ + ..\..\..\..\..\temp\cmr\ta_MULT.obj \ + ..\..\..\..\..\temp\cmr\ta_NATR.obj \ + ..\..\..\..\..\temp\cmr\ta_OBV.obj \ + ..\..\..\..\..\temp\cmr\ta_PLUS_DI.obj \ + ..\..\..\..\..\temp\cmr\ta_PLUS_DM.obj \ + ..\..\..\..\..\temp\cmr\ta_PPO.obj \ + ..\..\..\..\..\temp\cmr\ta_ROC.obj \ + ..\..\..\..\..\temp\cmr\ta_ROCP.obj \ + ..\..\..\..\..\temp\cmr\ta_ROCR.obj \ + ..\..\..\..\..\temp\cmr\ta_ROCR100.obj \ + ..\..\..\..\..\temp\cmr\ta_RSI.obj \ + ..\..\..\..\..\temp\cmr\ta_SAR.obj \ + ..\..\..\..\..\temp\cmr\ta_SAREXT.obj \ + ..\..\..\..\..\temp\cmr\ta_SIN.obj \ + ..\..\..\..\..\temp\cmr\ta_SINH.obj \ + ..\..\..\..\..\temp\cmr\ta_SMA.obj \ + ..\..\..\..\..\temp\cmr\ta_SQRT.obj \ + ..\..\..\..\..\temp\cmr\ta_STDDEV.obj \ + ..\..\..\..\..\temp\cmr\ta_STOCH.obj \ + ..\..\..\..\..\temp\cmr\ta_STOCHF.obj \ + ..\..\..\..\..\temp\cmr\ta_STOCHRSI.obj \ + ..\..\..\..\..\temp\cmr\ta_SUB.obj \ + ..\..\..\..\..\temp\cmr\ta_SUM.obj \ + ..\..\..\..\..\temp\cmr\ta_T3.obj \ + ..\..\..\..\..\temp\cmr\ta_TAN.obj \ + ..\..\..\..\..\temp\cmr\ta_TANH.obj \ + ..\..\..\..\..\temp\cmr\ta_TEMA.obj \ + ..\..\..\..\..\temp\cmr\ta_TRANGE.obj \ + ..\..\..\..\..\temp\cmr\ta_TRIMA.obj \ + ..\..\..\..\..\temp\cmr\ta_TRIX.obj \ + ..\..\..\..\..\temp\cmr\ta_TSF.obj \ + ..\..\..\..\..\temp\cmr\ta_TYPPRICE.obj \ + ..\..\..\..\..\temp\cmr\ta_ULTOSC.obj \ + ..\..\..\..\..\temp\cmr\ta_VAR.obj \ + ..\..\..\..\..\temp\cmr\ta_WCLPRICE.obj \ + ..\..\..\..\..\temp\cmr\ta_WILLR.obj \ + ..\..\..\..\..\temp\cmr\ta_WMA.obj +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ..\..\..\..\..\lib\ta_libc_cmr.lib +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .c + +.cpp.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.cxx.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.cc.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.c.obj: + $(CC) -c $(CFLAGS) $(INCPATH) -o$@ $< + +####### Build rules + +all: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + -del $(TARGET) + $(LIB) $(TARGET) @&&| ++..\..\..\..\..\temp\cmr\ta_global.obj \ ++..\..\..\..\..\temp\cmr\ta_retcode.obj \ ++..\..\..\..\..\temp\cmr\ta_version.obj \ ++..\..\..\..\..\temp\cmr\ta_abstract.obj \ ++..\..\..\..\..\temp\cmr\ta_def_ui.obj \ ++..\..\..\..\..\temp\cmr\ta_func_api.obj \ ++..\..\..\..\..\temp\cmr\ta_group_idx.obj \ ++..\..\..\..\..\temp\cmr\ta_frame.obj \ ++..\..\..\..\..\temp\cmr\table_a.obj \ ++..\..\..\..\..\temp\cmr\table_b.obj \ ++..\..\..\..\..\temp\cmr\table_c.obj \ ++..\..\..\..\..\temp\cmr\table_d.obj \ ++..\..\..\..\..\temp\cmr\table_e.obj \ ++..\..\..\..\..\temp\cmr\table_f.obj \ ++..\..\..\..\..\temp\cmr\table_g.obj \ ++..\..\..\..\..\temp\cmr\table_h.obj \ ++..\..\..\..\..\temp\cmr\table_i.obj \ ++..\..\..\..\..\temp\cmr\table_j.obj \ ++..\..\..\..\..\temp\cmr\table_k.obj \ ++..\..\..\..\..\temp\cmr\table_l.obj \ ++..\..\..\..\..\temp\cmr\table_m.obj \ ++..\..\..\..\..\temp\cmr\table_n.obj \ ++..\..\..\..\..\temp\cmr\table_o.obj \ ++..\..\..\..\..\temp\cmr\table_p.obj \ ++..\..\..\..\..\temp\cmr\table_q.obj \ ++..\..\..\..\..\temp\cmr\table_r.obj \ ++..\..\..\..\..\temp\cmr\table_s.obj \ ++..\..\..\..\..\temp\cmr\table_t.obj \ ++..\..\..\..\..\temp\cmr\table_u.obj \ ++..\..\..\..\..\temp\cmr\table_v.obj \ ++..\..\..\..\..\temp\cmr\table_w.obj \ ++..\..\..\..\..\temp\cmr\table_x.obj \ ++..\..\..\..\..\temp\cmr\table_y.obj \ ++..\..\..\..\..\temp\cmr\table_z.obj \ ++..\..\..\..\..\temp\cmr\ta_utility.obj \ ++..\..\..\..\..\temp\cmr\ta_ACOS.obj \ ++..\..\..\..\..\temp\cmr\ta_AD.obj \ ++..\..\..\..\..\temp\cmr\ta_ADD.obj \ ++..\..\..\..\..\temp\cmr\ta_ADOSC.obj \ ++..\..\..\..\..\temp\cmr\ta_ADX.obj \ ++..\..\..\..\..\temp\cmr\ta_ADXR.obj \ ++..\..\..\..\..\temp\cmr\ta_APO.obj \ ++..\..\..\..\..\temp\cmr\ta_AROON.obj \ ++..\..\..\..\..\temp\cmr\ta_AROONOSC.obj \ ++..\..\..\..\..\temp\cmr\ta_ASIN.obj \ ++..\..\..\..\..\temp\cmr\ta_ATAN.obj \ ++..\..\..\..\..\temp\cmr\ta_ATR.obj \ ++..\..\..\..\..\temp\cmr\ta_AVGPRICE.obj \ ++..\..\..\..\..\temp\cmr\ta_BBANDS.obj \ ++..\..\..\..\..\temp\cmr\ta_BETA.obj \ ++..\..\..\..\..\temp\cmr\ta_BOP.obj \ ++..\..\..\..\..\temp\cmr\ta_CCI.obj \ ++..\..\..\..\..\temp\cmr\ta_CDL2CROWS.obj \ ++..\..\..\..\..\temp\cmr\ta_CDL3BLACKCROWS.obj \ ++..\..\..\..\..\temp\cmr\ta_CDL3INSIDE.obj \ ++..\..\..\..\..\temp\cmr\ta_CDL3LINESTRIKE.obj \ ++..\..\..\..\..\temp\cmr\ta_CDL3OUTSIDE.obj \ ++..\..\..\..\..\temp\cmr\ta_CDL3STARSINSOUTH.obj \ ++..\..\..\..\..\temp\cmr\ta_CDL3WHITESOLDIERS.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLABANDONEDBABY.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLADVANCEBLOCK.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLBELTHOLD.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLBREAKAWAY.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLCLOSINGMARUBOZU.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLCONCEALBABYSWALL.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLCOUNTERATTACK.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLDARKCLOUDCOVER.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLDOJI.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLDOJISTAR.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLDRAGONFLYDOJI.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLENGULFING.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLEVENINGDOJISTAR.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLEVENINGSTAR.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLGAPSIDESIDEWHITE.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLGRAVESTONEDOJI.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLHAMMER.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLHANGINGMAN.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLHARAMI.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLHARAMICROSS.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLHIGHWAVE.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLHIKKAKE.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLHIKKAKEMOD.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLHOMINGPIGEON.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLIDENTICAL3CROWS.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLINNECK.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLINVERTEDHAMMER.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLKICKING.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLKICKINGBYLENGTH.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLLADDERBOTTOM.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLLONGLEGGEDDOJI.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLLONGLINE.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLMARUBOZU.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLMATCHINGLOW.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLMATHOLD.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLMORNINGDOJISTAR.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLMORNINGSTAR.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLONNECK.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLPIERCING.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLRICKSHAWMAN.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLRISEFALL3METHODS.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLSEPARATINGLINES.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLSHOOTINGSTAR.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLSHORTLINE.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLSPINNINGTOP.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLSTALLEDPATTERN.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLSTICKSANDWICH.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLTAKURI.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLTASUKIGAP.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLTHRUSTING.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLTRISTAR.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLUNIQUE3RIVER.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLUPSIDEGAP2CROWS.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLXSIDEGAP3METHODS.obj \ ++..\..\..\..\..\temp\cmr\ta_CEIL.obj \ ++..\..\..\..\..\temp\cmr\ta_CMO.obj \ ++..\..\..\..\..\temp\cmr\ta_CORREL.obj \ ++..\..\..\..\..\temp\cmr\ta_COS.obj \ ++..\..\..\..\..\temp\cmr\ta_COSH.obj \ ++..\..\..\..\..\temp\cmr\ta_DEMA.obj \ ++..\..\..\..\..\temp\cmr\ta_DIV.obj \ ++..\..\..\..\..\temp\cmr\ta_DX.obj \ ++..\..\..\..\..\temp\cmr\ta_EMA.obj \ ++..\..\..\..\..\temp\cmr\ta_EXP.obj \ ++..\..\..\..\..\temp\cmr\ta_FLOOR.obj \ ++..\..\..\..\..\temp\cmr\ta_HT_DCPERIOD.obj \ ++..\..\..\..\..\temp\cmr\ta_HT_DCPHASE.obj \ ++..\..\..\..\..\temp\cmr\ta_HT_PHASOR.obj \ ++..\..\..\..\..\temp\cmr\ta_HT_SINE.obj \ ++..\..\..\..\..\temp\cmr\ta_HT_TRENDLINE.obj \ ++..\..\..\..\..\temp\cmr\ta_HT_TRENDMODE.obj \ ++..\..\..\..\..\temp\cmr\ta_KAMA.obj \ ++..\..\..\..\..\temp\cmr\ta_LINEARREG.obj \ ++..\..\..\..\..\temp\cmr\ta_LINEARREG_ANGLE.obj \ ++..\..\..\..\..\temp\cmr\ta_LINEARREG_INTERCEPT.obj \ ++..\..\..\..\..\temp\cmr\ta_LINEARREG_SLOPE.obj \ ++..\..\..\..\..\temp\cmr\ta_LN.obj \ ++..\..\..\..\..\temp\cmr\ta_LOG10.obj \ ++..\..\..\..\..\temp\cmr\ta_MA.obj \ ++..\..\..\..\..\temp\cmr\ta_MACD.obj \ ++..\..\..\..\..\temp\cmr\ta_MACDEXT.obj \ ++..\..\..\..\..\temp\cmr\ta_MACDFIX.obj \ ++..\..\..\..\..\temp\cmr\ta_MAMA.obj \ ++..\..\..\..\..\temp\cmr\ta_MAVP.obj \ ++..\..\..\..\..\temp\cmr\ta_MAX.obj \ ++..\..\..\..\..\temp\cmr\ta_MAXINDEX.obj \ ++..\..\..\..\..\temp\cmr\ta_MEDPRICE.obj \ ++..\..\..\..\..\temp\cmr\ta_MFI.obj \ ++..\..\..\..\..\temp\cmr\ta_MIDPOINT.obj \ ++..\..\..\..\..\temp\cmr\ta_MIDPRICE.obj \ ++..\..\..\..\..\temp\cmr\ta_MIN.obj \ ++..\..\..\..\..\temp\cmr\ta_MININDEX.obj \ ++..\..\..\..\..\temp\cmr\ta_MINMAX.obj \ ++..\..\..\..\..\temp\cmr\ta_MINMAXINDEX.obj \ ++..\..\..\..\..\temp\cmr\ta_MINUS_DI.obj \ ++..\..\..\..\..\temp\cmr\ta_MINUS_DM.obj \ ++..\..\..\..\..\temp\cmr\ta_MOM.obj \ ++..\..\..\..\..\temp\cmr\ta_MULT.obj \ ++..\..\..\..\..\temp\cmr\ta_NATR.obj \ ++..\..\..\..\..\temp\cmr\ta_OBV.obj \ ++..\..\..\..\..\temp\cmr\ta_PLUS_DI.obj \ ++..\..\..\..\..\temp\cmr\ta_PLUS_DM.obj \ ++..\..\..\..\..\temp\cmr\ta_PPO.obj \ ++..\..\..\..\..\temp\cmr\ta_ROC.obj \ ++..\..\..\..\..\temp\cmr\ta_ROCP.obj \ ++..\..\..\..\..\temp\cmr\ta_ROCR.obj \ ++..\..\..\..\..\temp\cmr\ta_ROCR100.obj \ ++..\..\..\..\..\temp\cmr\ta_RSI.obj \ ++..\..\..\..\..\temp\cmr\ta_SAR.obj \ ++..\..\..\..\..\temp\cmr\ta_SAREXT.obj \ ++..\..\..\..\..\temp\cmr\ta_SIN.obj \ ++..\..\..\..\..\temp\cmr\ta_SINH.obj \ ++..\..\..\..\..\temp\cmr\ta_SMA.obj \ ++..\..\..\..\..\temp\cmr\ta_SQRT.obj \ ++..\..\..\..\..\temp\cmr\ta_STDDEV.obj \ ++..\..\..\..\..\temp\cmr\ta_STOCH.obj \ ++..\..\..\..\..\temp\cmr\ta_STOCHF.obj \ ++..\..\..\..\..\temp\cmr\ta_STOCHRSI.obj \ ++..\..\..\..\..\temp\cmr\ta_SUB.obj \ ++..\..\..\..\..\temp\cmr\ta_SUM.obj \ ++..\..\..\..\..\temp\cmr\ta_T3.obj \ ++..\..\..\..\..\temp\cmr\ta_TAN.obj \ ++..\..\..\..\..\temp\cmr\ta_TANH.obj \ ++..\..\..\..\..\temp\cmr\ta_TEMA.obj \ ++..\..\..\..\..\temp\cmr\ta_TRANGE.obj \ ++..\..\..\..\..\temp\cmr\ta_TRIMA.obj \ ++..\..\..\..\..\temp\cmr\ta_TRIX.obj \ ++..\..\..\..\..\temp\cmr\ta_TSF.obj \ ++..\..\..\..\..\temp\cmr\ta_TYPPRICE.obj \ ++..\..\..\..\..\temp\cmr\ta_ULTOSC.obj \ ++..\..\..\..\..\temp\cmr\ta_VAR.obj \ ++..\..\..\..\..\temp\cmr\ta_WCLPRICE.obj \ ++..\..\..\..\..\temp\cmr\ta_WILLR.obj \ ++..\..\..\..\..\temp\cmr\ta_WMA.obj \ ++ +| + +moc: $(SRCMOC) + +tmake: ../cmr/win32/borland/ta_libc/Makefile + +../cmr/win32/borland/ta_libc/Makefile: ta_libc/ta_libc.pro + tmake ta_libc/ta_libc.pro -o ../cmr/win32/borland/ta_libc/Makefile + +dist: + $(ZIP) ta_libc/ta_libc.zip ta_libc/ta_libc.pro $(SOURCES) $(HEADERS) $(DIST) + +clean: + -del ..\..\..\..\..\temp\cmr\ta_global.obj + -del ..\..\..\..\..\temp\cmr\ta_retcode.obj + -del ..\..\..\..\..\temp\cmr\ta_version.obj + -del ..\..\..\..\..\temp\cmr\ta_abstract.obj + -del ..\..\..\..\..\temp\cmr\ta_def_ui.obj + -del ..\..\..\..\..\temp\cmr\ta_func_api.obj + -del ..\..\..\..\..\temp\cmr\ta_group_idx.obj + -del ..\..\..\..\..\temp\cmr\ta_frame.obj + -del ..\..\..\..\..\temp\cmr\table_a.obj + -del ..\..\..\..\..\temp\cmr\table_b.obj + -del ..\..\..\..\..\temp\cmr\table_c.obj + -del ..\..\..\..\..\temp\cmr\table_d.obj + -del ..\..\..\..\..\temp\cmr\table_e.obj + -del ..\..\..\..\..\temp\cmr\table_f.obj + -del ..\..\..\..\..\temp\cmr\table_g.obj + -del ..\..\..\..\..\temp\cmr\table_h.obj + -del ..\..\..\..\..\temp\cmr\table_i.obj + -del ..\..\..\..\..\temp\cmr\table_j.obj + -del ..\..\..\..\..\temp\cmr\table_k.obj + -del ..\..\..\..\..\temp\cmr\table_l.obj + -del ..\..\..\..\..\temp\cmr\table_m.obj + -del ..\..\..\..\..\temp\cmr\table_n.obj + -del ..\..\..\..\..\temp\cmr\table_o.obj + -del ..\..\..\..\..\temp\cmr\table_p.obj + -del ..\..\..\..\..\temp\cmr\table_q.obj + -del ..\..\..\..\..\temp\cmr\table_r.obj + -del ..\..\..\..\..\temp\cmr\table_s.obj + -del ..\..\..\..\..\temp\cmr\table_t.obj + -del ..\..\..\..\..\temp\cmr\table_u.obj + -del ..\..\..\..\..\temp\cmr\table_v.obj + -del ..\..\..\..\..\temp\cmr\table_w.obj + -del ..\..\..\..\..\temp\cmr\table_x.obj + -del ..\..\..\..\..\temp\cmr\table_y.obj + -del ..\..\..\..\..\temp\cmr\table_z.obj + -del ..\..\..\..\..\temp\cmr\ta_utility.obj + -del ..\..\..\..\..\temp\cmr\ta_ACOS.obj + -del ..\..\..\..\..\temp\cmr\ta_AD.obj + -del ..\..\..\..\..\temp\cmr\ta_ADD.obj + -del ..\..\..\..\..\temp\cmr\ta_ADOSC.obj + -del ..\..\..\..\..\temp\cmr\ta_ADX.obj + -del ..\..\..\..\..\temp\cmr\ta_ADXR.obj + -del ..\..\..\..\..\temp\cmr\ta_APO.obj + -del ..\..\..\..\..\temp\cmr\ta_AROON.obj + -del ..\..\..\..\..\temp\cmr\ta_AROONOSC.obj + -del ..\..\..\..\..\temp\cmr\ta_ASIN.obj + -del ..\..\..\..\..\temp\cmr\ta_ATAN.obj + -del ..\..\..\..\..\temp\cmr\ta_ATR.obj + -del ..\..\..\..\..\temp\cmr\ta_AVGPRICE.obj + -del ..\..\..\..\..\temp\cmr\ta_BBANDS.obj + -del ..\..\..\..\..\temp\cmr\ta_BETA.obj + -del ..\..\..\..\..\temp\cmr\ta_BOP.obj + -del ..\..\..\..\..\temp\cmr\ta_CCI.obj + -del ..\..\..\..\..\temp\cmr\ta_CDL2CROWS.obj + -del ..\..\..\..\..\temp\cmr\ta_CDL3BLACKCROWS.obj + -del ..\..\..\..\..\temp\cmr\ta_CDL3INSIDE.obj + -del ..\..\..\..\..\temp\cmr\ta_CDL3LINESTRIKE.obj + -del ..\..\..\..\..\temp\cmr\ta_CDL3OUTSIDE.obj + -del ..\..\..\..\..\temp\cmr\ta_CDL3STARSINSOUTH.obj + -del ..\..\..\..\..\temp\cmr\ta_CDL3WHITESOLDIERS.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLABANDONEDBABY.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLADVANCEBLOCK.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLBELTHOLD.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLBREAKAWAY.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLCLOSINGMARUBOZU.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLCONCEALBABYSWALL.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLCOUNTERATTACK.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLDARKCLOUDCOVER.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLDOJI.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLDOJISTAR.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLDRAGONFLYDOJI.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLENGULFING.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLEVENINGDOJISTAR.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLEVENINGSTAR.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLGAPSIDESIDEWHITE.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLGRAVESTONEDOJI.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLHAMMER.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLHANGINGMAN.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLHARAMI.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLHARAMICROSS.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLHIGHWAVE.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLHIKKAKE.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLHIKKAKEMOD.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLHOMINGPIGEON.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLIDENTICAL3CROWS.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLINNECK.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLINVERTEDHAMMER.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLKICKING.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLKICKINGBYLENGTH.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLLADDERBOTTOM.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLLONGLEGGEDDOJI.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLLONGLINE.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLMARUBOZU.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLMATCHINGLOW.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLMATHOLD.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLMORNINGDOJISTAR.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLMORNINGSTAR.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLONNECK.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLPIERCING.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLRICKSHAWMAN.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLRISEFALL3METHODS.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLSEPARATINGLINES.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLSHOOTINGSTAR.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLSHORTLINE.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLSPINNINGTOP.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLSTALLEDPATTERN.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLSTICKSANDWICH.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLTAKURI.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLTASUKIGAP.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLTHRUSTING.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLTRISTAR.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLUNIQUE3RIVER.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLUPSIDEGAP2CROWS.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLXSIDEGAP3METHODS.obj + -del ..\..\..\..\..\temp\cmr\ta_CEIL.obj + -del ..\..\..\..\..\temp\cmr\ta_CMO.obj + -del ..\..\..\..\..\temp\cmr\ta_CORREL.obj + -del ..\..\..\..\..\temp\cmr\ta_COS.obj + -del ..\..\..\..\..\temp\cmr\ta_COSH.obj + -del ..\..\..\..\..\temp\cmr\ta_DEMA.obj + -del ..\..\..\..\..\temp\cmr\ta_DIV.obj + -del ..\..\..\..\..\temp\cmr\ta_DX.obj + -del ..\..\..\..\..\temp\cmr\ta_EMA.obj + -del ..\..\..\..\..\temp\cmr\ta_EXP.obj + -del ..\..\..\..\..\temp\cmr\ta_FLOOR.obj + -del ..\..\..\..\..\temp\cmr\ta_HT_DCPERIOD.obj + -del ..\..\..\..\..\temp\cmr\ta_HT_DCPHASE.obj + -del ..\..\..\..\..\temp\cmr\ta_HT_PHASOR.obj + -del ..\..\..\..\..\temp\cmr\ta_HT_SINE.obj + -del ..\..\..\..\..\temp\cmr\ta_HT_TRENDLINE.obj + -del ..\..\..\..\..\temp\cmr\ta_HT_TRENDMODE.obj + -del ..\..\..\..\..\temp\cmr\ta_KAMA.obj + -del ..\..\..\..\..\temp\cmr\ta_LINEARREG.obj + -del ..\..\..\..\..\temp\cmr\ta_LINEARREG_ANGLE.obj + -del ..\..\..\..\..\temp\cmr\ta_LINEARREG_INTERCEPT.obj + -del ..\..\..\..\..\temp\cmr\ta_LINEARREG_SLOPE.obj + -del ..\..\..\..\..\temp\cmr\ta_LN.obj + -del ..\..\..\..\..\temp\cmr\ta_LOG10.obj + -del ..\..\..\..\..\temp\cmr\ta_MA.obj + -del ..\..\..\..\..\temp\cmr\ta_MACD.obj + -del ..\..\..\..\..\temp\cmr\ta_MACDEXT.obj + -del ..\..\..\..\..\temp\cmr\ta_MACDFIX.obj + -del ..\..\..\..\..\temp\cmr\ta_MAMA.obj + -del ..\..\..\..\..\temp\cmr\ta_MAVP.obj + -del ..\..\..\..\..\temp\cmr\ta_MAX.obj + -del ..\..\..\..\..\temp\cmr\ta_MAXINDEX.obj + -del ..\..\..\..\..\temp\cmr\ta_MEDPRICE.obj + -del ..\..\..\..\..\temp\cmr\ta_MFI.obj + -del ..\..\..\..\..\temp\cmr\ta_MIDPOINT.obj + -del ..\..\..\..\..\temp\cmr\ta_MIDPRICE.obj + -del ..\..\..\..\..\temp\cmr\ta_MIN.obj + -del ..\..\..\..\..\temp\cmr\ta_MININDEX.obj + -del ..\..\..\..\..\temp\cmr\ta_MINMAX.obj + -del ..\..\..\..\..\temp\cmr\ta_MINMAXINDEX.obj + -del ..\..\..\..\..\temp\cmr\ta_MINUS_DI.obj + -del ..\..\..\..\..\temp\cmr\ta_MINUS_DM.obj + -del ..\..\..\..\..\temp\cmr\ta_MOM.obj + -del ..\..\..\..\..\temp\cmr\ta_MULT.obj + -del ..\..\..\..\..\temp\cmr\ta_NATR.obj + -del ..\..\..\..\..\temp\cmr\ta_OBV.obj + -del ..\..\..\..\..\temp\cmr\ta_PLUS_DI.obj + -del ..\..\..\..\..\temp\cmr\ta_PLUS_DM.obj + -del ..\..\..\..\..\temp\cmr\ta_PPO.obj + -del ..\..\..\..\..\temp\cmr\ta_ROC.obj + -del ..\..\..\..\..\temp\cmr\ta_ROCP.obj + -del ..\..\..\..\..\temp\cmr\ta_ROCR.obj + -del ..\..\..\..\..\temp\cmr\ta_ROCR100.obj + -del ..\..\..\..\..\temp\cmr\ta_RSI.obj + -del ..\..\..\..\..\temp\cmr\ta_SAR.obj + -del ..\..\..\..\..\temp\cmr\ta_SAREXT.obj + -del ..\..\..\..\..\temp\cmr\ta_SIN.obj + -del ..\..\..\..\..\temp\cmr\ta_SINH.obj + -del ..\..\..\..\..\temp\cmr\ta_SMA.obj + -del ..\..\..\..\..\temp\cmr\ta_SQRT.obj + -del ..\..\..\..\..\temp\cmr\ta_STDDEV.obj + -del ..\..\..\..\..\temp\cmr\ta_STOCH.obj + -del ..\..\..\..\..\temp\cmr\ta_STOCHF.obj + -del ..\..\..\..\..\temp\cmr\ta_STOCHRSI.obj + -del ..\..\..\..\..\temp\cmr\ta_SUB.obj + -del ..\..\..\..\..\temp\cmr\ta_SUM.obj + -del ..\..\..\..\..\temp\cmr\ta_T3.obj + -del ..\..\..\..\..\temp\cmr\ta_TAN.obj + -del ..\..\..\..\..\temp\cmr\ta_TANH.obj + -del ..\..\..\..\..\temp\cmr\ta_TEMA.obj + -del ..\..\..\..\..\temp\cmr\ta_TRANGE.obj + -del ..\..\..\..\..\temp\cmr\ta_TRIMA.obj + -del ..\..\..\..\..\temp\cmr\ta_TRIX.obj + -del ..\..\..\..\..\temp\cmr\ta_TSF.obj + -del ..\..\..\..\..\temp\cmr\ta_TYPPRICE.obj + -del ..\..\..\..\..\temp\cmr\ta_ULTOSC.obj + -del ..\..\..\..\..\temp\cmr\ta_VAR.obj + -del ..\..\..\..\..\temp\cmr\ta_WCLPRICE.obj + -del ..\..\..\..\..\temp\cmr\ta_WILLR.obj + -del ..\..\..\..\..\temp\cmr\ta_WMA.obj + -del $(TARGET) + -del ta_libc_cmr.tds + -del ../../../../../bin/*.map + -del ../../../../../bin/*._xe + -del ../../../../../bin/*.tds + -del ../../../../../bin/*.pdb + -del ../../../../../bin/*.pbo + -del ../../../../../bin/*.pbi + -del ../../../../../bin/*.pbt + +####### Compile + +..\..\..\..\..\temp\cmr\ta_global.obj: ..\..\..\..\..\src\ta_common\ta_global.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_global.obj ..\..\..\..\..\src\ta_common\ta_global.c + +..\..\..\..\..\temp\cmr\ta_retcode.obj: ..\..\..\..\..\src\ta_common\ta_retcode.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_retcode.obj ..\..\..\..\..\src\ta_common\ta_retcode.c + +..\..\..\..\..\temp\cmr\ta_version.obj: ..\..\..\..\..\src\ta_common\ta_version.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_version.obj ..\..\..\..\..\src\ta_common\ta_version.c + +..\..\..\..\..\temp\cmr\ta_abstract.obj: ..\..\..\..\..\src\ta_abstract\ta_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_abstract.obj ..\..\..\..\..\src\ta_abstract\ta_abstract.c + +..\..\..\..\..\temp\cmr\ta_def_ui.obj: ..\..\..\..\..\src\ta_abstract\ta_def_ui.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_def_ui.obj ..\..\..\..\..\src\ta_abstract\ta_def_ui.c + +..\..\..\..\..\temp\cmr\ta_func_api.obj: ..\..\..\..\..\src\ta_abstract\ta_func_api.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_func_api.obj ..\..\..\..\..\src\ta_abstract\ta_func_api.c + +..\..\..\..\..\temp\cmr\ta_group_idx.obj: ..\..\..\..\..\src\ta_abstract\ta_group_idx.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_group_idx.obj ..\..\..\..\..\src\ta_abstract\ta_group_idx.c + +..\..\..\..\..\temp\cmr\ta_frame.obj: ..\..\..\..\..\src\ta_abstract\frames\ta_frame.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_frame.obj ..\..\..\..\..\src\ta_abstract\frames\ta_frame.c + +..\..\..\..\..\temp\cmr\table_a.obj: ..\..\..\..\..\src\ta_abstract\tables\table_a.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\table_a.obj ..\..\..\..\..\src\ta_abstract\tables\table_a.c + +..\..\..\..\..\temp\cmr\table_b.obj: ..\..\..\..\..\src\ta_abstract\tables\table_b.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\table_b.obj ..\..\..\..\..\src\ta_abstract\tables\table_b.c + +..\..\..\..\..\temp\cmr\table_c.obj: ..\..\..\..\..\src\ta_abstract\tables\table_c.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\table_c.obj ..\..\..\..\..\src\ta_abstract\tables\table_c.c + +..\..\..\..\..\temp\cmr\table_d.obj: ..\..\..\..\..\src\ta_abstract\tables\table_d.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\table_d.obj ..\..\..\..\..\src\ta_abstract\tables\table_d.c + +..\..\..\..\..\temp\cmr\table_e.obj: ..\..\..\..\..\src\ta_abstract\tables\table_e.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\table_e.obj ..\..\..\..\..\src\ta_abstract\tables\table_e.c + +..\..\..\..\..\temp\cmr\table_f.obj: ..\..\..\..\..\src\ta_abstract\tables\table_f.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\table_f.obj ..\..\..\..\..\src\ta_abstract\tables\table_f.c + +..\..\..\..\..\temp\cmr\table_g.obj: ..\..\..\..\..\src\ta_abstract\tables\table_g.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\table_g.obj ..\..\..\..\..\src\ta_abstract\tables\table_g.c + +..\..\..\..\..\temp\cmr\table_h.obj: ..\..\..\..\..\src\ta_abstract\tables\table_h.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\table_h.obj ..\..\..\..\..\src\ta_abstract\tables\table_h.c + +..\..\..\..\..\temp\cmr\table_i.obj: ..\..\..\..\..\src\ta_abstract\tables\table_i.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\table_i.obj ..\..\..\..\..\src\ta_abstract\tables\table_i.c + +..\..\..\..\..\temp\cmr\table_j.obj: ..\..\..\..\..\src\ta_abstract\tables\table_j.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\table_j.obj ..\..\..\..\..\src\ta_abstract\tables\table_j.c + +..\..\..\..\..\temp\cmr\table_k.obj: ..\..\..\..\..\src\ta_abstract\tables\table_k.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\table_k.obj ..\..\..\..\..\src\ta_abstract\tables\table_k.c + +..\..\..\..\..\temp\cmr\table_l.obj: ..\..\..\..\..\src\ta_abstract\tables\table_l.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\table_l.obj ..\..\..\..\..\src\ta_abstract\tables\table_l.c + +..\..\..\..\..\temp\cmr\table_m.obj: ..\..\..\..\..\src\ta_abstract\tables\table_m.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\table_m.obj ..\..\..\..\..\src\ta_abstract\tables\table_m.c + +..\..\..\..\..\temp\cmr\table_n.obj: ..\..\..\..\..\src\ta_abstract\tables\table_n.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\table_n.obj ..\..\..\..\..\src\ta_abstract\tables\table_n.c + +..\..\..\..\..\temp\cmr\table_o.obj: ..\..\..\..\..\src\ta_abstract\tables\table_o.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\table_o.obj ..\..\..\..\..\src\ta_abstract\tables\table_o.c + +..\..\..\..\..\temp\cmr\table_p.obj: ..\..\..\..\..\src\ta_abstract\tables\table_p.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\table_p.obj ..\..\..\..\..\src\ta_abstract\tables\table_p.c + +..\..\..\..\..\temp\cmr\table_q.obj: ..\..\..\..\..\src\ta_abstract\tables\table_q.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\table_q.obj ..\..\..\..\..\src\ta_abstract\tables\table_q.c + +..\..\..\..\..\temp\cmr\table_r.obj: ..\..\..\..\..\src\ta_abstract\tables\table_r.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\table_r.obj ..\..\..\..\..\src\ta_abstract\tables\table_r.c + +..\..\..\..\..\temp\cmr\table_s.obj: ..\..\..\..\..\src\ta_abstract\tables\table_s.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\table_s.obj ..\..\..\..\..\src\ta_abstract\tables\table_s.c + +..\..\..\..\..\temp\cmr\table_t.obj: ..\..\..\..\..\src\ta_abstract\tables\table_t.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\table_t.obj ..\..\..\..\..\src\ta_abstract\tables\table_t.c + +..\..\..\..\..\temp\cmr\table_u.obj: ..\..\..\..\..\src\ta_abstract\tables\table_u.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\table_u.obj ..\..\..\..\..\src\ta_abstract\tables\table_u.c + +..\..\..\..\..\temp\cmr\table_v.obj: ..\..\..\..\..\src\ta_abstract\tables\table_v.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\table_v.obj ..\..\..\..\..\src\ta_abstract\tables\table_v.c + +..\..\..\..\..\temp\cmr\table_w.obj: ..\..\..\..\..\src\ta_abstract\tables\table_w.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\table_w.obj ..\..\..\..\..\src\ta_abstract\tables\table_w.c + +..\..\..\..\..\temp\cmr\table_x.obj: ..\..\..\..\..\src\ta_abstract\tables\table_x.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\table_x.obj ..\..\..\..\..\src\ta_abstract\tables\table_x.c + +..\..\..\..\..\temp\cmr\table_y.obj: ..\..\..\..\..\src\ta_abstract\tables\table_y.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\table_y.obj ..\..\..\..\..\src\ta_abstract\tables\table_y.c + +..\..\..\..\..\temp\cmr\table_z.obj: ..\..\..\..\..\src\ta_abstract\tables\table_z.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\table_z.obj ..\..\..\..\..\src\ta_abstract\tables\table_z.c + +..\..\..\..\..\temp\cmr\ta_utility.obj: ..\..\..\..\..\src\ta_func\ta_utility.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_utility.obj ..\..\..\..\..\src\ta_func\ta_utility.c + +..\..\..\..\..\temp\cmr\ta_ACOS.obj: ..\..\..\..\..\src\ta_func\ta_ACOS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_ACOS.obj ..\..\..\..\..\src\ta_func\ta_ACOS.c + +..\..\..\..\..\temp\cmr\ta_AD.obj: ..\..\..\..\..\src\ta_func\ta_AD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_AD.obj ..\..\..\..\..\src\ta_func\ta_AD.c + +..\..\..\..\..\temp\cmr\ta_ADD.obj: ..\..\..\..\..\src\ta_func\ta_ADD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_ADD.obj ..\..\..\..\..\src\ta_func\ta_ADD.c + +..\..\..\..\..\temp\cmr\ta_ADOSC.obj: ..\..\..\..\..\src\ta_func\ta_ADOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_ADOSC.obj ..\..\..\..\..\src\ta_func\ta_ADOSC.c + +..\..\..\..\..\temp\cmr\ta_ADX.obj: ..\..\..\..\..\src\ta_func\ta_ADX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_ADX.obj ..\..\..\..\..\src\ta_func\ta_ADX.c + +..\..\..\..\..\temp\cmr\ta_ADXR.obj: ..\..\..\..\..\src\ta_func\ta_ADXR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_ADXR.obj ..\..\..\..\..\src\ta_func\ta_ADXR.c + +..\..\..\..\..\temp\cmr\ta_APO.obj: ..\..\..\..\..\src\ta_func\ta_APO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_APO.obj ..\..\..\..\..\src\ta_func\ta_APO.c + +..\..\..\..\..\temp\cmr\ta_AROON.obj: ..\..\..\..\..\src\ta_func\ta_AROON.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_AROON.obj ..\..\..\..\..\src\ta_func\ta_AROON.c + +..\..\..\..\..\temp\cmr\ta_AROONOSC.obj: ..\..\..\..\..\src\ta_func\ta_AROONOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_AROONOSC.obj ..\..\..\..\..\src\ta_func\ta_AROONOSC.c + +..\..\..\..\..\temp\cmr\ta_ASIN.obj: ..\..\..\..\..\src\ta_func\ta_ASIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_ASIN.obj ..\..\..\..\..\src\ta_func\ta_ASIN.c + +..\..\..\..\..\temp\cmr\ta_ATAN.obj: ..\..\..\..\..\src\ta_func\ta_ATAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_ATAN.obj ..\..\..\..\..\src\ta_func\ta_ATAN.c + +..\..\..\..\..\temp\cmr\ta_ATR.obj: ..\..\..\..\..\src\ta_func\ta_ATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_ATR.obj ..\..\..\..\..\src\ta_func\ta_ATR.c + +..\..\..\..\..\temp\cmr\ta_AVGPRICE.obj: ..\..\..\..\..\src\ta_func\ta_AVGPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_AVGPRICE.obj ..\..\..\..\..\src\ta_func\ta_AVGPRICE.c + +..\..\..\..\..\temp\cmr\ta_BBANDS.obj: ..\..\..\..\..\src\ta_func\ta_BBANDS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_BBANDS.obj ..\..\..\..\..\src\ta_func\ta_BBANDS.c + +..\..\..\..\..\temp\cmr\ta_BETA.obj: ..\..\..\..\..\src\ta_func\ta_BETA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_BETA.obj ..\..\..\..\..\src\ta_func\ta_BETA.c + +..\..\..\..\..\temp\cmr\ta_BOP.obj: ..\..\..\..\..\src\ta_func\ta_BOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_BOP.obj ..\..\..\..\..\src\ta_func\ta_BOP.c + +..\..\..\..\..\temp\cmr\ta_CCI.obj: ..\..\..\..\..\src\ta_func\ta_CCI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CCI.obj ..\..\..\..\..\src\ta_func\ta_CCI.c + +..\..\..\..\..\temp\cmr\ta_CDL2CROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDL2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDL2CROWS.obj ..\..\..\..\..\src\ta_func\ta_CDL2CROWS.c + +..\..\..\..\..\temp\cmr\ta_CDL3BLACKCROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDL3BLACKCROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDL3BLACKCROWS.obj ..\..\..\..\..\src\ta_func\ta_CDL3BLACKCROWS.c + +..\..\..\..\..\temp\cmr\ta_CDL3INSIDE.obj: ..\..\..\..\..\src\ta_func\ta_CDL3INSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDL3INSIDE.obj ..\..\..\..\..\src\ta_func\ta_CDL3INSIDE.c + +..\..\..\..\..\temp\cmr\ta_CDL3LINESTRIKE.obj: ..\..\..\..\..\src\ta_func\ta_CDL3LINESTRIKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDL3LINESTRIKE.obj ..\..\..\..\..\src\ta_func\ta_CDL3LINESTRIKE.c + +..\..\..\..\..\temp\cmr\ta_CDL3OUTSIDE.obj: ..\..\..\..\..\src\ta_func\ta_CDL3OUTSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDL3OUTSIDE.obj ..\..\..\..\..\src\ta_func\ta_CDL3OUTSIDE.c + +..\..\..\..\..\temp\cmr\ta_CDL3STARSINSOUTH.obj: ..\..\..\..\..\src\ta_func\ta_CDL3STARSINSOUTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDL3STARSINSOUTH.obj ..\..\..\..\..\src\ta_func\ta_CDL3STARSINSOUTH.c + +..\..\..\..\..\temp\cmr\ta_CDL3WHITESOLDIERS.obj: ..\..\..\..\..\src\ta_func\ta_CDL3WHITESOLDIERS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDL3WHITESOLDIERS.obj ..\..\..\..\..\src\ta_func\ta_CDL3WHITESOLDIERS.c + +..\..\..\..\..\temp\cmr\ta_CDLABANDONEDBABY.obj: ..\..\..\..\..\src\ta_func\ta_CDLABANDONEDBABY.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLABANDONEDBABY.obj ..\..\..\..\..\src\ta_func\ta_CDLABANDONEDBABY.c + +..\..\..\..\..\temp\cmr\ta_CDLADVANCEBLOCK.obj: ..\..\..\..\..\src\ta_func\ta_CDLADVANCEBLOCK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLADVANCEBLOCK.obj ..\..\..\..\..\src\ta_func\ta_CDLADVANCEBLOCK.c + +..\..\..\..\..\temp\cmr\ta_CDLBELTHOLD.obj: ..\..\..\..\..\src\ta_func\ta_CDLBELTHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLBELTHOLD.obj ..\..\..\..\..\src\ta_func\ta_CDLBELTHOLD.c + +..\..\..\..\..\temp\cmr\ta_CDLBREAKAWAY.obj: ..\..\..\..\..\src\ta_func\ta_CDLBREAKAWAY.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLBREAKAWAY.obj ..\..\..\..\..\src\ta_func\ta_CDLBREAKAWAY.c + +..\..\..\..\..\temp\cmr\ta_CDLCLOSINGMARUBOZU.obj: ..\..\..\..\..\src\ta_func\ta_CDLCLOSINGMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLCLOSINGMARUBOZU.obj ..\..\..\..\..\src\ta_func\ta_CDLCLOSINGMARUBOZU.c + +..\..\..\..\..\temp\cmr\ta_CDLCONCEALBABYSWALL.obj: ..\..\..\..\..\src\ta_func\ta_CDLCONCEALBABYSWALL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLCONCEALBABYSWALL.obj ..\..\..\..\..\src\ta_func\ta_CDLCONCEALBABYSWALL.c + +..\..\..\..\..\temp\cmr\ta_CDLCOUNTERATTACK.obj: ..\..\..\..\..\src\ta_func\ta_CDLCOUNTERATTACK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLCOUNTERATTACK.obj ..\..\..\..\..\src\ta_func\ta_CDLCOUNTERATTACK.c + +..\..\..\..\..\temp\cmr\ta_CDLDARKCLOUDCOVER.obj: ..\..\..\..\..\src\ta_func\ta_CDLDARKCLOUDCOVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLDARKCLOUDCOVER.obj ..\..\..\..\..\src\ta_func\ta_CDLDARKCLOUDCOVER.c + +..\..\..\..\..\temp\cmr\ta_CDLDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLDOJI.c + +..\..\..\..\..\temp\cmr\ta_CDLDOJISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLDOJISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLDOJISTAR.c + +..\..\..\..\..\temp\cmr\ta_CDLDRAGONFLYDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLDRAGONFLYDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLDRAGONFLYDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLDRAGONFLYDOJI.c + +..\..\..\..\..\temp\cmr\ta_CDLENGULFING.obj: ..\..\..\..\..\src\ta_func\ta_CDLENGULFING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLENGULFING.obj ..\..\..\..\..\src\ta_func\ta_CDLENGULFING.c + +..\..\..\..\..\temp\cmr\ta_CDLEVENINGDOJISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLEVENINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLEVENINGDOJISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLEVENINGDOJISTAR.c + +..\..\..\..\..\temp\cmr\ta_CDLEVENINGSTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLEVENINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLEVENINGSTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLEVENINGSTAR.c + +..\..\..\..\..\temp\cmr\ta_CDLGAPSIDESIDEWHITE.obj: ..\..\..\..\..\src\ta_func\ta_CDLGAPSIDESIDEWHITE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLGAPSIDESIDEWHITE.obj ..\..\..\..\..\src\ta_func\ta_CDLGAPSIDESIDEWHITE.c + +..\..\..\..\..\temp\cmr\ta_CDLGRAVESTONEDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLGRAVESTONEDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLGRAVESTONEDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLGRAVESTONEDOJI.c + +..\..\..\..\..\temp\cmr\ta_CDLHAMMER.obj: ..\..\..\..\..\src\ta_func\ta_CDLHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLHAMMER.obj ..\..\..\..\..\src\ta_func\ta_CDLHAMMER.c + +..\..\..\..\..\temp\cmr\ta_CDLHANGINGMAN.obj: ..\..\..\..\..\src\ta_func\ta_CDLHANGINGMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLHANGINGMAN.obj ..\..\..\..\..\src\ta_func\ta_CDLHANGINGMAN.c + +..\..\..\..\..\temp\cmr\ta_CDLHARAMI.obj: ..\..\..\..\..\src\ta_func\ta_CDLHARAMI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLHARAMI.obj ..\..\..\..\..\src\ta_func\ta_CDLHARAMI.c + +..\..\..\..\..\temp\cmr\ta_CDLHARAMICROSS.obj: ..\..\..\..\..\src\ta_func\ta_CDLHARAMICROSS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLHARAMICROSS.obj ..\..\..\..\..\src\ta_func\ta_CDLHARAMICROSS.c + +..\..\..\..\..\temp\cmr\ta_CDLHIGHWAVE.obj: ..\..\..\..\..\src\ta_func\ta_CDLHIGHWAVE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLHIGHWAVE.obj ..\..\..\..\..\src\ta_func\ta_CDLHIGHWAVE.c + +..\..\..\..\..\temp\cmr\ta_CDLHIKKAKE.obj: ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLHIKKAKE.obj ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKE.c + +..\..\..\..\..\temp\cmr\ta_CDLHIKKAKEMOD.obj: ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKEMOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLHIKKAKEMOD.obj ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKEMOD.c + +..\..\..\..\..\temp\cmr\ta_CDLHOMINGPIGEON.obj: ..\..\..\..\..\src\ta_func\ta_CDLHOMINGPIGEON.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLHOMINGPIGEON.obj ..\..\..\..\..\src\ta_func\ta_CDLHOMINGPIGEON.c + +..\..\..\..\..\temp\cmr\ta_CDLIDENTICAL3CROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDLIDENTICAL3CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLIDENTICAL3CROWS.obj ..\..\..\..\..\src\ta_func\ta_CDLIDENTICAL3CROWS.c + +..\..\..\..\..\temp\cmr\ta_CDLINNECK.obj: ..\..\..\..\..\src\ta_func\ta_CDLINNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLINNECK.obj ..\..\..\..\..\src\ta_func\ta_CDLINNECK.c + +..\..\..\..\..\temp\cmr\ta_CDLINVERTEDHAMMER.obj: ..\..\..\..\..\src\ta_func\ta_CDLINVERTEDHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLINVERTEDHAMMER.obj ..\..\..\..\..\src\ta_func\ta_CDLINVERTEDHAMMER.c + +..\..\..\..\..\temp\cmr\ta_CDLKICKING.obj: ..\..\..\..\..\src\ta_func\ta_CDLKICKING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLKICKING.obj ..\..\..\..\..\src\ta_func\ta_CDLKICKING.c + +..\..\..\..\..\temp\cmr\ta_CDLKICKINGBYLENGTH.obj: ..\..\..\..\..\src\ta_func\ta_CDLKICKINGBYLENGTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLKICKINGBYLENGTH.obj ..\..\..\..\..\src\ta_func\ta_CDLKICKINGBYLENGTH.c + +..\..\..\..\..\temp\cmr\ta_CDLLADDERBOTTOM.obj: ..\..\..\..\..\src\ta_func\ta_CDLLADDERBOTTOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLLADDERBOTTOM.obj ..\..\..\..\..\src\ta_func\ta_CDLLADDERBOTTOM.c + +..\..\..\..\..\temp\cmr\ta_CDLLONGLEGGEDDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLLONGLEGGEDDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLLONGLEGGEDDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLLONGLEGGEDDOJI.c + +..\..\..\..\..\temp\cmr\ta_CDLLONGLINE.obj: ..\..\..\..\..\src\ta_func\ta_CDLLONGLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLLONGLINE.obj ..\..\..\..\..\src\ta_func\ta_CDLLONGLINE.c + +..\..\..\..\..\temp\cmr\ta_CDLMARUBOZU.obj: ..\..\..\..\..\src\ta_func\ta_CDLMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLMARUBOZU.obj ..\..\..\..\..\src\ta_func\ta_CDLMARUBOZU.c + +..\..\..\..\..\temp\cmr\ta_CDLMATCHINGLOW.obj: ..\..\..\..\..\src\ta_func\ta_CDLMATCHINGLOW.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLMATCHINGLOW.obj ..\..\..\..\..\src\ta_func\ta_CDLMATCHINGLOW.c + +..\..\..\..\..\temp\cmr\ta_CDLMATHOLD.obj: ..\..\..\..\..\src\ta_func\ta_CDLMATHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLMATHOLD.obj ..\..\..\..\..\src\ta_func\ta_CDLMATHOLD.c + +..\..\..\..\..\temp\cmr\ta_CDLMORNINGDOJISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLMORNINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLMORNINGDOJISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLMORNINGDOJISTAR.c + +..\..\..\..\..\temp\cmr\ta_CDLMORNINGSTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLMORNINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLMORNINGSTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLMORNINGSTAR.c + +..\..\..\..\..\temp\cmr\ta_CDLONNECK.obj: ..\..\..\..\..\src\ta_func\ta_CDLONNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLONNECK.obj ..\..\..\..\..\src\ta_func\ta_CDLONNECK.c + +..\..\..\..\..\temp\cmr\ta_CDLPIERCING.obj: ..\..\..\..\..\src\ta_func\ta_CDLPIERCING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLPIERCING.obj ..\..\..\..\..\src\ta_func\ta_CDLPIERCING.c + +..\..\..\..\..\temp\cmr\ta_CDLRICKSHAWMAN.obj: ..\..\..\..\..\src\ta_func\ta_CDLRICKSHAWMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLRICKSHAWMAN.obj ..\..\..\..\..\src\ta_func\ta_CDLRICKSHAWMAN.c + +..\..\..\..\..\temp\cmr\ta_CDLRISEFALL3METHODS.obj: ..\..\..\..\..\src\ta_func\ta_CDLRISEFALL3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLRISEFALL3METHODS.obj ..\..\..\..\..\src\ta_func\ta_CDLRISEFALL3METHODS.c + +..\..\..\..\..\temp\cmr\ta_CDLSEPARATINGLINES.obj: ..\..\..\..\..\src\ta_func\ta_CDLSEPARATINGLINES.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLSEPARATINGLINES.obj ..\..\..\..\..\src\ta_func\ta_CDLSEPARATINGLINES.c + +..\..\..\..\..\temp\cmr\ta_CDLSHOOTINGSTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLSHOOTINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLSHOOTINGSTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLSHOOTINGSTAR.c + +..\..\..\..\..\temp\cmr\ta_CDLSHORTLINE.obj: ..\..\..\..\..\src\ta_func\ta_CDLSHORTLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLSHORTLINE.obj ..\..\..\..\..\src\ta_func\ta_CDLSHORTLINE.c + +..\..\..\..\..\temp\cmr\ta_CDLSPINNINGTOP.obj: ..\..\..\..\..\src\ta_func\ta_CDLSPINNINGTOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLSPINNINGTOP.obj ..\..\..\..\..\src\ta_func\ta_CDLSPINNINGTOP.c + +..\..\..\..\..\temp\cmr\ta_CDLSTALLEDPATTERN.obj: ..\..\..\..\..\src\ta_func\ta_CDLSTALLEDPATTERN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLSTALLEDPATTERN.obj ..\..\..\..\..\src\ta_func\ta_CDLSTALLEDPATTERN.c + +..\..\..\..\..\temp\cmr\ta_CDLSTICKSANDWICH.obj: ..\..\..\..\..\src\ta_func\ta_CDLSTICKSANDWICH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLSTICKSANDWICH.obj ..\..\..\..\..\src\ta_func\ta_CDLSTICKSANDWICH.c + +..\..\..\..\..\temp\cmr\ta_CDLTAKURI.obj: ..\..\..\..\..\src\ta_func\ta_CDLTAKURI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLTAKURI.obj ..\..\..\..\..\src\ta_func\ta_CDLTAKURI.c + +..\..\..\..\..\temp\cmr\ta_CDLTASUKIGAP.obj: ..\..\..\..\..\src\ta_func\ta_CDLTASUKIGAP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLTASUKIGAP.obj ..\..\..\..\..\src\ta_func\ta_CDLTASUKIGAP.c + +..\..\..\..\..\temp\cmr\ta_CDLTHRUSTING.obj: ..\..\..\..\..\src\ta_func\ta_CDLTHRUSTING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLTHRUSTING.obj ..\..\..\..\..\src\ta_func\ta_CDLTHRUSTING.c + +..\..\..\..\..\temp\cmr\ta_CDLTRISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLTRISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLTRISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLTRISTAR.c + +..\..\..\..\..\temp\cmr\ta_CDLUNIQUE3RIVER.obj: ..\..\..\..\..\src\ta_func\ta_CDLUNIQUE3RIVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLUNIQUE3RIVER.obj ..\..\..\..\..\src\ta_func\ta_CDLUNIQUE3RIVER.c + +..\..\..\..\..\temp\cmr\ta_CDLUPSIDEGAP2CROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDLUPSIDEGAP2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLUPSIDEGAP2CROWS.obj ..\..\..\..\..\src\ta_func\ta_CDLUPSIDEGAP2CROWS.c + +..\..\..\..\..\temp\cmr\ta_CDLXSIDEGAP3METHODS.obj: ..\..\..\..\..\src\ta_func\ta_CDLXSIDEGAP3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLXSIDEGAP3METHODS.obj ..\..\..\..\..\src\ta_func\ta_CDLXSIDEGAP3METHODS.c + +..\..\..\..\..\temp\cmr\ta_CEIL.obj: ..\..\..\..\..\src\ta_func\ta_CEIL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CEIL.obj ..\..\..\..\..\src\ta_func\ta_CEIL.c + +..\..\..\..\..\temp\cmr\ta_CMO.obj: ..\..\..\..\..\src\ta_func\ta_CMO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CMO.obj ..\..\..\..\..\src\ta_func\ta_CMO.c + +..\..\..\..\..\temp\cmr\ta_CORREL.obj: ..\..\..\..\..\src\ta_func\ta_CORREL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CORREL.obj ..\..\..\..\..\src\ta_func\ta_CORREL.c + +..\..\..\..\..\temp\cmr\ta_COS.obj: ..\..\..\..\..\src\ta_func\ta_COS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_COS.obj ..\..\..\..\..\src\ta_func\ta_COS.c + +..\..\..\..\..\temp\cmr\ta_COSH.obj: ..\..\..\..\..\src\ta_func\ta_COSH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_COSH.obj ..\..\..\..\..\src\ta_func\ta_COSH.c + +..\..\..\..\..\temp\cmr\ta_DEMA.obj: ..\..\..\..\..\src\ta_func\ta_DEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_DEMA.obj ..\..\..\..\..\src\ta_func\ta_DEMA.c + +..\..\..\..\..\temp\cmr\ta_DIV.obj: ..\..\..\..\..\src\ta_func\ta_DIV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_DIV.obj ..\..\..\..\..\src\ta_func\ta_DIV.c + +..\..\..\..\..\temp\cmr\ta_DX.obj: ..\..\..\..\..\src\ta_func\ta_DX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_DX.obj ..\..\..\..\..\src\ta_func\ta_DX.c + +..\..\..\..\..\temp\cmr\ta_EMA.obj: ..\..\..\..\..\src\ta_func\ta_EMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_EMA.obj ..\..\..\..\..\src\ta_func\ta_EMA.c + +..\..\..\..\..\temp\cmr\ta_EXP.obj: ..\..\..\..\..\src\ta_func\ta_EXP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_EXP.obj ..\..\..\..\..\src\ta_func\ta_EXP.c + +..\..\..\..\..\temp\cmr\ta_FLOOR.obj: ..\..\..\..\..\src\ta_func\ta_FLOOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_FLOOR.obj ..\..\..\..\..\src\ta_func\ta_FLOOR.c + +..\..\..\..\..\temp\cmr\ta_HT_DCPERIOD.obj: ..\..\..\..\..\src\ta_func\ta_HT_DCPERIOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_HT_DCPERIOD.obj ..\..\..\..\..\src\ta_func\ta_HT_DCPERIOD.c + +..\..\..\..\..\temp\cmr\ta_HT_DCPHASE.obj: ..\..\..\..\..\src\ta_func\ta_HT_DCPHASE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_HT_DCPHASE.obj ..\..\..\..\..\src\ta_func\ta_HT_DCPHASE.c + +..\..\..\..\..\temp\cmr\ta_HT_PHASOR.obj: ..\..\..\..\..\src\ta_func\ta_HT_PHASOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_HT_PHASOR.obj ..\..\..\..\..\src\ta_func\ta_HT_PHASOR.c + +..\..\..\..\..\temp\cmr\ta_HT_SINE.obj: ..\..\..\..\..\src\ta_func\ta_HT_SINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_HT_SINE.obj ..\..\..\..\..\src\ta_func\ta_HT_SINE.c + +..\..\..\..\..\temp\cmr\ta_HT_TRENDLINE.obj: ..\..\..\..\..\src\ta_func\ta_HT_TRENDLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_HT_TRENDLINE.obj ..\..\..\..\..\src\ta_func\ta_HT_TRENDLINE.c + +..\..\..\..\..\temp\cmr\ta_HT_TRENDMODE.obj: ..\..\..\..\..\src\ta_func\ta_HT_TRENDMODE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_HT_TRENDMODE.obj ..\..\..\..\..\src\ta_func\ta_HT_TRENDMODE.c + +..\..\..\..\..\temp\cmr\ta_KAMA.obj: ..\..\..\..\..\src\ta_func\ta_KAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_KAMA.obj ..\..\..\..\..\src\ta_func\ta_KAMA.c + +..\..\..\..\..\temp\cmr\ta_LINEARREG.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_LINEARREG.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG.c + +..\..\..\..\..\temp\cmr\ta_LINEARREG_ANGLE.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG_ANGLE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_LINEARREG_ANGLE.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG_ANGLE.c + +..\..\..\..\..\temp\cmr\ta_LINEARREG_INTERCEPT.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG_INTERCEPT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_LINEARREG_INTERCEPT.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG_INTERCEPT.c + +..\..\..\..\..\temp\cmr\ta_LINEARREG_SLOPE.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG_SLOPE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_LINEARREG_SLOPE.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG_SLOPE.c + +..\..\..\..\..\temp\cmr\ta_LN.obj: ..\..\..\..\..\src\ta_func\ta_LN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_LN.obj ..\..\..\..\..\src\ta_func\ta_LN.c + +..\..\..\..\..\temp\cmr\ta_LOG10.obj: ..\..\..\..\..\src\ta_func\ta_LOG10.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_LOG10.obj ..\..\..\..\..\src\ta_func\ta_LOG10.c + +..\..\..\..\..\temp\cmr\ta_MA.obj: ..\..\..\..\..\src\ta_func\ta_MA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_MA.obj ..\..\..\..\..\src\ta_func\ta_MA.c + +..\..\..\..\..\temp\cmr\ta_MACD.obj: ..\..\..\..\..\src\ta_func\ta_MACD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_MACD.obj ..\..\..\..\..\src\ta_func\ta_MACD.c + +..\..\..\..\..\temp\cmr\ta_MACDEXT.obj: ..\..\..\..\..\src\ta_func\ta_MACDEXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_MACDEXT.obj ..\..\..\..\..\src\ta_func\ta_MACDEXT.c + +..\..\..\..\..\temp\cmr\ta_MACDFIX.obj: ..\..\..\..\..\src\ta_func\ta_MACDFIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_MACDFIX.obj ..\..\..\..\..\src\ta_func\ta_MACDFIX.c + +..\..\..\..\..\temp\cmr\ta_MAMA.obj: ..\..\..\..\..\src\ta_func\ta_MAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_MAMA.obj ..\..\..\..\..\src\ta_func\ta_MAMA.c + +..\..\..\..\..\temp\cmr\ta_MAVP.obj: ..\..\..\..\..\src\ta_func\ta_MAVP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_MAVP.obj ..\..\..\..\..\src\ta_func\ta_MAVP.c + +..\..\..\..\..\temp\cmr\ta_MAX.obj: ..\..\..\..\..\src\ta_func\ta_MAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_MAX.obj ..\..\..\..\..\src\ta_func\ta_MAX.c + +..\..\..\..\..\temp\cmr\ta_MAXINDEX.obj: ..\..\..\..\..\src\ta_func\ta_MAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_MAXINDEX.obj ..\..\..\..\..\src\ta_func\ta_MAXINDEX.c + +..\..\..\..\..\temp\cmr\ta_MEDPRICE.obj: ..\..\..\..\..\src\ta_func\ta_MEDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_MEDPRICE.obj ..\..\..\..\..\src\ta_func\ta_MEDPRICE.c + +..\..\..\..\..\temp\cmr\ta_MFI.obj: ..\..\..\..\..\src\ta_func\ta_MFI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_MFI.obj ..\..\..\..\..\src\ta_func\ta_MFI.c + +..\..\..\..\..\temp\cmr\ta_MIDPOINT.obj: ..\..\..\..\..\src\ta_func\ta_MIDPOINT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_MIDPOINT.obj ..\..\..\..\..\src\ta_func\ta_MIDPOINT.c + +..\..\..\..\..\temp\cmr\ta_MIDPRICE.obj: ..\..\..\..\..\src\ta_func\ta_MIDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_MIDPRICE.obj ..\..\..\..\..\src\ta_func\ta_MIDPRICE.c + +..\..\..\..\..\temp\cmr\ta_MIN.obj: ..\..\..\..\..\src\ta_func\ta_MIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_MIN.obj ..\..\..\..\..\src\ta_func\ta_MIN.c + +..\..\..\..\..\temp\cmr\ta_MININDEX.obj: ..\..\..\..\..\src\ta_func\ta_MININDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_MININDEX.obj ..\..\..\..\..\src\ta_func\ta_MININDEX.c + +..\..\..\..\..\temp\cmr\ta_MINMAX.obj: ..\..\..\..\..\src\ta_func\ta_MINMAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_MINMAX.obj ..\..\..\..\..\src\ta_func\ta_MINMAX.c + +..\..\..\..\..\temp\cmr\ta_MINMAXINDEX.obj: ..\..\..\..\..\src\ta_func\ta_MINMAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_MINMAXINDEX.obj ..\..\..\..\..\src\ta_func\ta_MINMAXINDEX.c + +..\..\..\..\..\temp\cmr\ta_MINUS_DI.obj: ..\..\..\..\..\src\ta_func\ta_MINUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_MINUS_DI.obj ..\..\..\..\..\src\ta_func\ta_MINUS_DI.c + +..\..\..\..\..\temp\cmr\ta_MINUS_DM.obj: ..\..\..\..\..\src\ta_func\ta_MINUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_MINUS_DM.obj ..\..\..\..\..\src\ta_func\ta_MINUS_DM.c + +..\..\..\..\..\temp\cmr\ta_MOM.obj: ..\..\..\..\..\src\ta_func\ta_MOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_MOM.obj ..\..\..\..\..\src\ta_func\ta_MOM.c + +..\..\..\..\..\temp\cmr\ta_MULT.obj: ..\..\..\..\..\src\ta_func\ta_MULT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_MULT.obj ..\..\..\..\..\src\ta_func\ta_MULT.c + +..\..\..\..\..\temp\cmr\ta_NATR.obj: ..\..\..\..\..\src\ta_func\ta_NATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_NATR.obj ..\..\..\..\..\src\ta_func\ta_NATR.c + +..\..\..\..\..\temp\cmr\ta_OBV.obj: ..\..\..\..\..\src\ta_func\ta_OBV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_OBV.obj ..\..\..\..\..\src\ta_func\ta_OBV.c + +..\..\..\..\..\temp\cmr\ta_PLUS_DI.obj: ..\..\..\..\..\src\ta_func\ta_PLUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_PLUS_DI.obj ..\..\..\..\..\src\ta_func\ta_PLUS_DI.c + +..\..\..\..\..\temp\cmr\ta_PLUS_DM.obj: ..\..\..\..\..\src\ta_func\ta_PLUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_PLUS_DM.obj ..\..\..\..\..\src\ta_func\ta_PLUS_DM.c + +..\..\..\..\..\temp\cmr\ta_PPO.obj: ..\..\..\..\..\src\ta_func\ta_PPO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_PPO.obj ..\..\..\..\..\src\ta_func\ta_PPO.c + +..\..\..\..\..\temp\cmr\ta_ROC.obj: ..\..\..\..\..\src\ta_func\ta_ROC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_ROC.obj ..\..\..\..\..\src\ta_func\ta_ROC.c + +..\..\..\..\..\temp\cmr\ta_ROCP.obj: ..\..\..\..\..\src\ta_func\ta_ROCP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_ROCP.obj ..\..\..\..\..\src\ta_func\ta_ROCP.c + +..\..\..\..\..\temp\cmr\ta_ROCR.obj: ..\..\..\..\..\src\ta_func\ta_ROCR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_ROCR.obj ..\..\..\..\..\src\ta_func\ta_ROCR.c + +..\..\..\..\..\temp\cmr\ta_ROCR100.obj: ..\..\..\..\..\src\ta_func\ta_ROCR100.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_ROCR100.obj ..\..\..\..\..\src\ta_func\ta_ROCR100.c + +..\..\..\..\..\temp\cmr\ta_RSI.obj: ..\..\..\..\..\src\ta_func\ta_RSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_RSI.obj ..\..\..\..\..\src\ta_func\ta_RSI.c + +..\..\..\..\..\temp\cmr\ta_SAR.obj: ..\..\..\..\..\src\ta_func\ta_SAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_SAR.obj ..\..\..\..\..\src\ta_func\ta_SAR.c + +..\..\..\..\..\temp\cmr\ta_SAREXT.obj: ..\..\..\..\..\src\ta_func\ta_SAREXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_SAREXT.obj ..\..\..\..\..\src\ta_func\ta_SAREXT.c + +..\..\..\..\..\temp\cmr\ta_SIN.obj: ..\..\..\..\..\src\ta_func\ta_SIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_SIN.obj ..\..\..\..\..\src\ta_func\ta_SIN.c + +..\..\..\..\..\temp\cmr\ta_SINH.obj: ..\..\..\..\..\src\ta_func\ta_SINH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_SINH.obj ..\..\..\..\..\src\ta_func\ta_SINH.c + +..\..\..\..\..\temp\cmr\ta_SMA.obj: ..\..\..\..\..\src\ta_func\ta_SMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_SMA.obj ..\..\..\..\..\src\ta_func\ta_SMA.c + +..\..\..\..\..\temp\cmr\ta_SQRT.obj: ..\..\..\..\..\src\ta_func\ta_SQRT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_SQRT.obj ..\..\..\..\..\src\ta_func\ta_SQRT.c + +..\..\..\..\..\temp\cmr\ta_STDDEV.obj: ..\..\..\..\..\src\ta_func\ta_STDDEV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_STDDEV.obj ..\..\..\..\..\src\ta_func\ta_STDDEV.c + +..\..\..\..\..\temp\cmr\ta_STOCH.obj: ..\..\..\..\..\src\ta_func\ta_STOCH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_STOCH.obj ..\..\..\..\..\src\ta_func\ta_STOCH.c + +..\..\..\..\..\temp\cmr\ta_STOCHF.obj: ..\..\..\..\..\src\ta_func\ta_STOCHF.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_STOCHF.obj ..\..\..\..\..\src\ta_func\ta_STOCHF.c + +..\..\..\..\..\temp\cmr\ta_STOCHRSI.obj: ..\..\..\..\..\src\ta_func\ta_STOCHRSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_STOCHRSI.obj ..\..\..\..\..\src\ta_func\ta_STOCHRSI.c + +..\..\..\..\..\temp\cmr\ta_SUB.obj: ..\..\..\..\..\src\ta_func\ta_SUB.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_SUB.obj ..\..\..\..\..\src\ta_func\ta_SUB.c + +..\..\..\..\..\temp\cmr\ta_SUM.obj: ..\..\..\..\..\src\ta_func\ta_SUM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_SUM.obj ..\..\..\..\..\src\ta_func\ta_SUM.c + +..\..\..\..\..\temp\cmr\ta_T3.obj: ..\..\..\..\..\src\ta_func\ta_T3.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_T3.obj ..\..\..\..\..\src\ta_func\ta_T3.c + +..\..\..\..\..\temp\cmr\ta_TAN.obj: ..\..\..\..\..\src\ta_func\ta_TAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_TAN.obj ..\..\..\..\..\src\ta_func\ta_TAN.c + +..\..\..\..\..\temp\cmr\ta_TANH.obj: ..\..\..\..\..\src\ta_func\ta_TANH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_TANH.obj ..\..\..\..\..\src\ta_func\ta_TANH.c + +..\..\..\..\..\temp\cmr\ta_TEMA.obj: ..\..\..\..\..\src\ta_func\ta_TEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_TEMA.obj ..\..\..\..\..\src\ta_func\ta_TEMA.c + +..\..\..\..\..\temp\cmr\ta_TRANGE.obj: ..\..\..\..\..\src\ta_func\ta_TRANGE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_TRANGE.obj ..\..\..\..\..\src\ta_func\ta_TRANGE.c + +..\..\..\..\..\temp\cmr\ta_TRIMA.obj: ..\..\..\..\..\src\ta_func\ta_TRIMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_TRIMA.obj ..\..\..\..\..\src\ta_func\ta_TRIMA.c + +..\..\..\..\..\temp\cmr\ta_TRIX.obj: ..\..\..\..\..\src\ta_func\ta_TRIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_TRIX.obj ..\..\..\..\..\src\ta_func\ta_TRIX.c + +..\..\..\..\..\temp\cmr\ta_TSF.obj: ..\..\..\..\..\src\ta_func\ta_TSF.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_TSF.obj ..\..\..\..\..\src\ta_func\ta_TSF.c + +..\..\..\..\..\temp\cmr\ta_TYPPRICE.obj: ..\..\..\..\..\src\ta_func\ta_TYPPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_TYPPRICE.obj ..\..\..\..\..\src\ta_func\ta_TYPPRICE.c + +..\..\..\..\..\temp\cmr\ta_ULTOSC.obj: ..\..\..\..\..\src\ta_func\ta_ULTOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_ULTOSC.obj ..\..\..\..\..\src\ta_func\ta_ULTOSC.c + +..\..\..\..\..\temp\cmr\ta_VAR.obj: ..\..\..\..\..\src\ta_func\ta_VAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_VAR.obj ..\..\..\..\..\src\ta_func\ta_VAR.c + +..\..\..\..\..\temp\cmr\ta_WCLPRICE.obj: ..\..\..\..\..\src\ta_func\ta_WCLPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_WCLPRICE.obj ..\..\..\..\..\src\ta_func\ta_WCLPRICE.c + +..\..\..\..\..\temp\cmr\ta_WILLR.obj: ..\..\..\..\..\src\ta_func\ta_WILLR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_WILLR.obj ..\..\..\..\..\src\ta_func\ta_WILLR.c + +..\..\..\..\..\temp\cmr\ta_WMA.obj: ..\..\..\..\..\src\ta_func\ta_WMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_WMA.obj ..\..\..\..\..\src\ta_func\ta_WMA.c + diff --git a/make/cmr/win32/borland/ta_regtest/Makefile b/make/cmr/win32/borland/ta_regtest/Makefile new file mode 100644 index 000000000..48e615c93 --- /dev/null +++ b/make/cmr/win32/borland/ta_regtest/Makefile @@ -0,0 +1,243 @@ +############################################################################# +# Makefile for building ta_regtest +# Generated by tmake; +# Project: ta_regtest/ta_regtest +# Template: app +############################################################################# + +!if !$d(BCB) +BCB = $(MAKEDIR)\.. +!endif + +####### Compiler, tools and options + +CC = bcc32 +CXX = bcc32 +CFLAGS = -x- -RT- -tWR -w -w-8004 -w-8071 -w-8057 -w-8080 -tWM -O2 -DWIN32 -DQT_THREAD_SUPPORT +CXXFLAGS= -x- -RT- -tWR -w -w-8004 -w-8071 -w-8057 -w-8080 -tWM -O2 -DWIN32 -DQT_THREAD_SUPPORT +INCPATH = -I"..\..\..\..\..\src\ta_common" -I"..\..\..\..\..\src\tools\ta_regtest" -I"..\..\..\..\..\src\ta_func" -I"..\..\..\..\..\include" +LINK = ilink32 +LFLAGS = -L$(BCB)\lib -L$(BCB)\lib\PSDK -c -x -Gn -ap -Tpe c0x32.obj +LIBS = import32.lib cw32mti.lib ..\..\..\..\..\lib\ta_libc_cmr.lib +MOC = moc +UIC = uic + +ZIP = zip -r -9 +DEF_FILE = +RES_FILE = + +####### Files + +HEADERS = +SOURCES = ..\..\..\..\..\src\tools\ta_regtest\ta_regtest.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_candlestick.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_1in_1out.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_1in_2out.c \ + ..\..\..\..\..\src\tools\ta_regtest\test_internals.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_adx.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_bbands.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_ma.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_macd.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_minmax.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_mom.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_ema.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hl.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hlc.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hlcv.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_ohlc.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_po.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_rsi.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_sar.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_stddev.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_stoch.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_trange.c \ + ..\..\..\..\..\src\tools\ta_regtest\test_util.c \ + ..\..\..\..\..\src\tools\ta_regtest\test_data.c \ + ..\..\..\..\..\src\tools\ta_regtest\test_abstract.c +OBJECTS = ..\..\..\..\..\temp\cmr\ta_regtest.obj \ + ..\..\..\..\..\temp\cmr\test_candlestick.obj \ + ..\..\..\..\..\temp\cmr\test_1in_1out.obj \ + ..\..\..\..\..\temp\cmr\test_1in_2out.obj \ + ..\..\..\..\..\temp\cmr\test_internals.obj \ + ..\..\..\..\..\temp\cmr\test_adx.obj \ + ..\..\..\..\..\temp\cmr\test_bbands.obj \ + ..\..\..\..\..\temp\cmr\test_ma.obj \ + ..\..\..\..\..\temp\cmr\test_macd.obj \ + ..\..\..\..\..\temp\cmr\test_minmax.obj \ + ..\..\..\..\..\temp\cmr\test_mom.obj \ + ..\..\..\..\..\temp\cmr\test_per_ema.obj \ + ..\..\..\..\..\temp\cmr\test_per_hl.obj \ + ..\..\..\..\..\temp\cmr\test_per_hlc.obj \ + ..\..\..\..\..\temp\cmr\test_per_hlcv.obj \ + ..\..\..\..\..\temp\cmr\test_per_ohlc.obj \ + ..\..\..\..\..\temp\cmr\test_po.obj \ + ..\..\..\..\..\temp\cmr\test_rsi.obj \ + ..\..\..\..\..\temp\cmr\test_sar.obj \ + ..\..\..\..\..\temp\cmr\test_stddev.obj \ + ..\..\..\..\..\temp\cmr\test_stoch.obj \ + ..\..\..\..\..\temp\cmr\test_trange.obj \ + ..\..\..\..\..\temp\cmr\test_util.obj \ + ..\..\..\..\..\temp\cmr\test_data.obj \ + ..\..\..\..\..\temp\cmr\test_abstract.obj +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ..\..\..\..\..\bin\ta_regtest.exe +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .c + +.cpp.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.cxx.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.cc.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.c.obj: + $(CC) -c $(CFLAGS) $(INCPATH) -o$@ $< + +####### Build rules + +all: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + $(LINK) @&&| + $(LFLAGS) $(OBJECTS) $(OBJMOC),$(TARGET),,$(LIBS),$(DEF_FILE),$(RES_FILE) +| + +moc: $(SRCMOC) + +tmake: ../cmr/win32/borland/ta_regtest/Makefile + +../cmr/win32/borland/ta_regtest/Makefile: ta_regtest/ta_regtest.pro + tmake ta_regtest/ta_regtest.pro -o ../cmr/win32/borland/ta_regtest/Makefile + +dist: + $(ZIP) ta_regtest/ta_regtest.zip ta_regtest/ta_regtest.pro $(SOURCES) $(HEADERS) $(DIST) + +clean: + -del ..\..\..\..\..\temp\cmr\ta_regtest.obj + -del ..\..\..\..\..\temp\cmr\test_candlestick.obj + -del ..\..\..\..\..\temp\cmr\test_1in_1out.obj + -del ..\..\..\..\..\temp\cmr\test_1in_2out.obj + -del ..\..\..\..\..\temp\cmr\test_internals.obj + -del ..\..\..\..\..\temp\cmr\test_adx.obj + -del ..\..\..\..\..\temp\cmr\test_bbands.obj + -del ..\..\..\..\..\temp\cmr\test_ma.obj + -del ..\..\..\..\..\temp\cmr\test_macd.obj + -del ..\..\..\..\..\temp\cmr\test_minmax.obj + -del ..\..\..\..\..\temp\cmr\test_mom.obj + -del ..\..\..\..\..\temp\cmr\test_per_ema.obj + -del ..\..\..\..\..\temp\cmr\test_per_hl.obj + -del ..\..\..\..\..\temp\cmr\test_per_hlc.obj + -del ..\..\..\..\..\temp\cmr\test_per_hlcv.obj + -del ..\..\..\..\..\temp\cmr\test_per_ohlc.obj + -del ..\..\..\..\..\temp\cmr\test_po.obj + -del ..\..\..\..\..\temp\cmr\test_rsi.obj + -del ..\..\..\..\..\temp\cmr\test_sar.obj + -del ..\..\..\..\..\temp\cmr\test_stddev.obj + -del ..\..\..\..\..\temp\cmr\test_stoch.obj + -del ..\..\..\..\..\temp\cmr\test_trange.obj + -del ..\..\..\..\..\temp\cmr\test_util.obj + -del ..\..\..\..\..\temp\cmr\test_data.obj + -del ..\..\..\..\..\temp\cmr\test_abstract.obj + -del $(TARGET) + -del ta_regtest.tds + -del ../../../../../bin/*.map + -del ../../../../../bin/*._xe + -del ../../../../../bin/*.tds + -del ../../../../../bin/*.pdb + -del ../../../../../bin/*.pbo + -del ../../../../../bin/*.pbi + -del ../../../../../bin/*.pbt + -del ../../../../../temp/cmr/*.pch + -del ../../../../../temp/cmr/*.idb + -del ../../../../../temp/cmr/ta_regtest/*.pch + -del ../../../../../temp/cmr/ta_regtest/*.idb + -del ../../../../../temp/cmr/ta_regtest/*.obj + +####### Compile + +..\..\..\..\..\temp\cmr\ta_regtest.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_regtest.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_regtest.obj ..\..\..\..\..\src\tools\ta_regtest\ta_regtest.c + +..\..\..\..\..\temp\cmr\test_candlestick.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_candlestick.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\test_candlestick.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_candlestick.c + +..\..\..\..\..\temp\cmr\test_1in_1out.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_1in_1out.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\test_1in_1out.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_1in_1out.c + +..\..\..\..\..\temp\cmr\test_1in_2out.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_1in_2out.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\test_1in_2out.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_1in_2out.c + +..\..\..\..\..\temp\cmr\test_internals.obj: ..\..\..\..\..\src\tools\ta_regtest\test_internals.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\test_internals.obj ..\..\..\..\..\src\tools\ta_regtest\test_internals.c + +..\..\..\..\..\temp\cmr\test_adx.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_adx.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\test_adx.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_adx.c + +..\..\..\..\..\temp\cmr\test_bbands.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_bbands.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\test_bbands.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_bbands.c + +..\..\..\..\..\temp\cmr\test_ma.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_ma.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\test_ma.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_ma.c + +..\..\..\..\..\temp\cmr\test_macd.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_macd.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\test_macd.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_macd.c + +..\..\..\..\..\temp\cmr\test_minmax.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_minmax.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\test_minmax.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_minmax.c + +..\..\..\..\..\temp\cmr\test_mom.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_mom.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\test_mom.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_mom.c + +..\..\..\..\..\temp\cmr\test_per_ema.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_ema.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\test_per_ema.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_ema.c + +..\..\..\..\..\temp\cmr\test_per_hl.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hl.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\test_per_hl.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hl.c + +..\..\..\..\..\temp\cmr\test_per_hlc.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hlc.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\test_per_hlc.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hlc.c + +..\..\..\..\..\temp\cmr\test_per_hlcv.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hlcv.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\test_per_hlcv.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hlcv.c + +..\..\..\..\..\temp\cmr\test_per_ohlc.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_ohlc.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\test_per_ohlc.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_ohlc.c + +..\..\..\..\..\temp\cmr\test_po.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_po.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\test_po.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_po.c + +..\..\..\..\..\temp\cmr\test_rsi.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_rsi.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\test_rsi.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_rsi.c + +..\..\..\..\..\temp\cmr\test_sar.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_sar.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\test_sar.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_sar.c + +..\..\..\..\..\temp\cmr\test_stddev.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_stddev.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\test_stddev.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_stddev.c + +..\..\..\..\..\temp\cmr\test_stoch.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_stoch.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\test_stoch.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_stoch.c + +..\..\..\..\..\temp\cmr\test_trange.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_trange.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\test_trange.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_trange.c + +..\..\..\..\..\temp\cmr\test_util.obj: ..\..\..\..\..\src\tools\ta_regtest\test_util.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\test_util.obj ..\..\..\..\..\src\tools\ta_regtest\test_util.c + +..\..\..\..\..\temp\cmr\test_data.obj: ..\..\..\..\..\src\tools\ta_regtest\test_data.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\test_data.obj ..\..\..\..\..\src\tools\ta_regtest\test_data.c + +..\..\..\..\..\temp\cmr\test_abstract.obj: ..\..\..\..\..\src\tools\ta_regtest\test_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\test_abstract.obj ..\..\..\..\..\src\tools\ta_regtest\test_abstract.c + diff --git a/make/cmr/win32/msvc/Makefile b/make/cmr/win32/msvc/Makefile new file mode 100644 index 000000000..22e8b666a --- /dev/null +++ b/make/cmr/win32/msvc/Makefile @@ -0,0 +1,97 @@ +############################################################################# +# Makefile for building targets in sub directories. +# Generated by tmake; +# Project: rootmake +# Template: subdirs +############################################################################# + +MAKEFILE= Makefile +TMAKE = tmake + +SUBDIRS = ta_common \ + ta_func \ + ta_abstract \ + ta_libc \ + gen_code \ + ta_regtest + +all: $(SUBDIRS) + +ta_common: FORCE + cd ta_common + $(MAKE) /nologo + @cd .. + +ta_func: FORCE + cd ta_func + $(MAKE) /nologo + @cd .. + +ta_abstract: FORCE + cd ta_abstract + $(MAKE) /nologo + @cd .. + +ta_libc: FORCE + cd ta_libc + $(MAKE) /nologo + @cd .. + +gen_code: FORCE + cd gen_code + $(MAKE) /nologo + @cd .. + +ta_regtest: FORCE + cd ta_regtest + $(MAKE) /nologo + @cd .. + + +tmake: ../cmr/win32/msvc/Makefile + +../cmr/win32/msvc/Makefile: rootmake.pro + tmake rootmake.pro -o ../cmr/win32/msvc/Makefile + +tmake_all: + cd ta_common + $(TMAKE) ta_common.pro -o $(MAKEFILE) + @cd .. + cd ta_func + $(TMAKE) ta_func.pro -o $(MAKEFILE) + @cd .. + cd ta_abstract + $(TMAKE) ta_abstract.pro -o $(MAKEFILE) + @cd .. + cd ta_libc + $(TMAKE) ta_libc.pro -o $(MAKEFILE) + @cd .. + cd gen_code + $(TMAKE) gen_code.pro -o $(MAKEFILE) + @cd .. + cd ta_regtest + $(TMAKE) ta_regtest.pro -o $(MAKEFILE) + @cd .. + + +clean: + cd ta_common + $(MAKE) clean + @cd .. + cd ta_func + $(MAKE) clean + @cd .. + cd ta_abstract + $(MAKE) clean + @cd .. + cd ta_libc + $(MAKE) clean + @cd .. + cd gen_code + $(MAKE) clean + @cd .. + cd ta_regtest + $(MAKE) clean + @cd .. + +FORCE: diff --git a/make/cmr/win32/msvc/gen_code/Makefile b/make/cmr/win32/msvc/gen_code/Makefile new file mode 100644 index 000000000..0cc426d52 --- /dev/null +++ b/make/cmr/win32/msvc/gen_code/Makefile @@ -0,0 +1,260 @@ +############################################################################# +# Makefile for building gen_code +# Generated by tmake; +# Project: gen_code/gen_code +# Template: app +############################################################################# + +####### Compiler, tools and options + +CC = cl +CXX = cl +CFLAGS = -nologo -W3 -MT -O2 -DTA_GEN_CODE -DWIN32 -D_MBCS -D_LIB -DQT_THREAD_SUPPORT +CXXFLAGS= -nologo -W3 -MT -O2 -DTA_GEN_CODE -DWIN32 -D_MBCS -D_LIB -DQT_THREAD_SUPPORT +INCPATH = -I"..\..\..\..\..\include" -I"..\..\..\..\..\src\ta_common" -I"..\..\..\..\..\src\ta_abstract" -I"..\..\..\..\..\src\ta_abstract\tables" -I"..\..\..\..\..\src\ta_abstract\frames" +LINK = link +LFLAGS = /NOLOGO /SUBSYSTEM:console +LIBS = ..\..\..\..\..\lib\ta_common_cmr.lib +MOC = moc +UIC = uic + +ZIP = zip -r -9 + +####### Files + +HEADERS = +SOURCES = ..\..\..\..\..\src\tools\gen_code\gen_code.c \ + ..\..\..\..\..\src\ta_abstract\ta_abstract.c \ + ..\..\..\..\..\src\ta_abstract\ta_def_ui.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_a.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_b.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_c.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_d.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_e.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_f.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_g.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_h.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_i.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_j.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_k.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_l.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_m.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_n.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_o.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_p.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_q.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_r.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_s.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_t.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_u.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_v.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_w.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_x.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_y.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_z.c +OBJECTS = ..\..\..\..\..\temp\cmr\gen_code\gen_code.obj \ + ..\..\..\..\..\temp\cmr\gen_code\ta_abstract.obj \ + ..\..\..\..\..\temp\cmr\gen_code\ta_def_ui.obj \ + ..\..\..\..\..\temp\cmr\gen_code\table_a.obj \ + ..\..\..\..\..\temp\cmr\gen_code\table_b.obj \ + ..\..\..\..\..\temp\cmr\gen_code\table_c.obj \ + ..\..\..\..\..\temp\cmr\gen_code\table_d.obj \ + ..\..\..\..\..\temp\cmr\gen_code\table_e.obj \ + ..\..\..\..\..\temp\cmr\gen_code\table_f.obj \ + ..\..\..\..\..\temp\cmr\gen_code\table_g.obj \ + ..\..\..\..\..\temp\cmr\gen_code\table_h.obj \ + ..\..\..\..\..\temp\cmr\gen_code\table_i.obj \ + ..\..\..\..\..\temp\cmr\gen_code\table_j.obj \ + ..\..\..\..\..\temp\cmr\gen_code\table_k.obj \ + ..\..\..\..\..\temp\cmr\gen_code\table_l.obj \ + ..\..\..\..\..\temp\cmr\gen_code\table_m.obj \ + ..\..\..\..\..\temp\cmr\gen_code\table_n.obj \ + ..\..\..\..\..\temp\cmr\gen_code\table_o.obj \ + ..\..\..\..\..\temp\cmr\gen_code\table_p.obj \ + ..\..\..\..\..\temp\cmr\gen_code\table_q.obj \ + ..\..\..\..\..\temp\cmr\gen_code\table_r.obj \ + ..\..\..\..\..\temp\cmr\gen_code\table_s.obj \ + ..\..\..\..\..\temp\cmr\gen_code\table_t.obj \ + ..\..\..\..\..\temp\cmr\gen_code\table_u.obj \ + ..\..\..\..\..\temp\cmr\gen_code\table_v.obj \ + ..\..\..\..\..\temp\cmr\gen_code\table_w.obj \ + ..\..\..\..\..\temp\cmr\gen_code\table_x.obj \ + ..\..\..\..\..\temp\cmr\gen_code\table_y.obj \ + ..\..\..\..\..\temp\cmr\gen_code\table_z.obj +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ..\..\..\..\..\bin\gen_code.exe +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .c + +.cpp.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $< + +.cxx.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $< + +.cc.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $< + +.c.obj: + $(CC) -c $(CFLAGS) $(INCPATH) -Fo$@ $< + +####### Build rules + +all: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + $(LINK) $(LFLAGS) /OUT:$(TARGET) @<< + $(OBJECTS) $(OBJMOC) $(LIBS) +<< + +moc: $(SRCMOC) + +tmake: ../cmr/win32/msvc/gen_code/Makefile + +../cmr/win32/msvc/gen_code/Makefile: gen_code/gen_code.pro + tmake gen_code/gen_code.pro -o ../cmr/win32/msvc/gen_code/Makefile + +dist: + $(ZIP) gen_code/gen_code.zip gen_code/gen_code.pro $(SOURCES) $(HEADERS) $(DIST) $(INTERFACES) + +clean: + -del ..\..\..\..\..\temp\cmr\gen_code\gen_code.obj + -del ..\..\..\..\..\temp\cmr\gen_code\ta_abstract.obj + -del ..\..\..\..\..\temp\cmr\gen_code\ta_def_ui.obj + -del ..\..\..\..\..\temp\cmr\gen_code\table_a.obj + -del ..\..\..\..\..\temp\cmr\gen_code\table_b.obj + -del ..\..\..\..\..\temp\cmr\gen_code\table_c.obj + -del ..\..\..\..\..\temp\cmr\gen_code\table_d.obj + -del ..\..\..\..\..\temp\cmr\gen_code\table_e.obj + -del ..\..\..\..\..\temp\cmr\gen_code\table_f.obj + -del ..\..\..\..\..\temp\cmr\gen_code\table_g.obj + -del ..\..\..\..\..\temp\cmr\gen_code\table_h.obj + -del ..\..\..\..\..\temp\cmr\gen_code\table_i.obj + -del ..\..\..\..\..\temp\cmr\gen_code\table_j.obj + -del ..\..\..\..\..\temp\cmr\gen_code\table_k.obj + -del ..\..\..\..\..\temp\cmr\gen_code\table_l.obj + -del ..\..\..\..\..\temp\cmr\gen_code\table_m.obj + -del ..\..\..\..\..\temp\cmr\gen_code\table_n.obj + -del ..\..\..\..\..\temp\cmr\gen_code\table_o.obj + -del ..\..\..\..\..\temp\cmr\gen_code\table_p.obj + -del ..\..\..\..\..\temp\cmr\gen_code\table_q.obj + -del ..\..\..\..\..\temp\cmr\gen_code\table_r.obj + -del ..\..\..\..\..\temp\cmr\gen_code\table_s.obj + -del ..\..\..\..\..\temp\cmr\gen_code\table_t.obj + -del ..\..\..\..\..\temp\cmr\gen_code\table_u.obj + -del ..\..\..\..\..\temp\cmr\gen_code\table_v.obj + -del ..\..\..\..\..\temp\cmr\gen_code\table_w.obj + -del ..\..\..\..\..\temp\cmr\gen_code\table_x.obj + -del ..\..\..\..\..\temp\cmr\gen_code\table_y.obj + -del ..\..\..\..\..\temp\cmr\gen_code\table_z.obj + -del $(TARGET) + -del ../../../../../bin/*.map + -del ../../../../../bin/*._xe + -del ../../../../../bin/*.tds + -del ../../../../../bin/*.pdb + -del ../../../../../bin/*.pbo + -del ../../../../../bin/*.pbi + -del ../../../../../bin/*.pbt + -del ../../../../../temp/cmr/*.pch + -del ../../../../../temp/cmr/*.idb + -del ../../../../../temp/cmr/gen_code/*.pch + -del ../../../../../temp/cmr/gen_code/*.idb + -del ../../../../../temp/cmr/gen_code/*.obj + +####### Compile + +..\..\..\..\..\temp\cmr\gen_code\gen_code.obj: ..\..\..\..\..\src\tools\gen_code\gen_code.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\gen_code\gen_code.obj ..\..\..\..\..\src\tools\gen_code\gen_code.c + +..\..\..\..\..\temp\cmr\gen_code\ta_abstract.obj: ..\..\..\..\..\src\ta_abstract\ta_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\gen_code\ta_abstract.obj ..\..\..\..\..\src\ta_abstract\ta_abstract.c + +..\..\..\..\..\temp\cmr\gen_code\ta_def_ui.obj: ..\..\..\..\..\src\ta_abstract\ta_def_ui.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\gen_code\ta_def_ui.obj ..\..\..\..\..\src\ta_abstract\ta_def_ui.c + +..\..\..\..\..\temp\cmr\gen_code\table_a.obj: ..\..\..\..\..\src\ta_abstract\tables\table_a.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\gen_code\table_a.obj ..\..\..\..\..\src\ta_abstract\tables\table_a.c + +..\..\..\..\..\temp\cmr\gen_code\table_b.obj: ..\..\..\..\..\src\ta_abstract\tables\table_b.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\gen_code\table_b.obj ..\..\..\..\..\src\ta_abstract\tables\table_b.c + +..\..\..\..\..\temp\cmr\gen_code\table_c.obj: ..\..\..\..\..\src\ta_abstract\tables\table_c.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\gen_code\table_c.obj ..\..\..\..\..\src\ta_abstract\tables\table_c.c + +..\..\..\..\..\temp\cmr\gen_code\table_d.obj: ..\..\..\..\..\src\ta_abstract\tables\table_d.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\gen_code\table_d.obj ..\..\..\..\..\src\ta_abstract\tables\table_d.c + +..\..\..\..\..\temp\cmr\gen_code\table_e.obj: ..\..\..\..\..\src\ta_abstract\tables\table_e.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\gen_code\table_e.obj ..\..\..\..\..\src\ta_abstract\tables\table_e.c + +..\..\..\..\..\temp\cmr\gen_code\table_f.obj: ..\..\..\..\..\src\ta_abstract\tables\table_f.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\gen_code\table_f.obj ..\..\..\..\..\src\ta_abstract\tables\table_f.c + +..\..\..\..\..\temp\cmr\gen_code\table_g.obj: ..\..\..\..\..\src\ta_abstract\tables\table_g.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\gen_code\table_g.obj ..\..\..\..\..\src\ta_abstract\tables\table_g.c + +..\..\..\..\..\temp\cmr\gen_code\table_h.obj: ..\..\..\..\..\src\ta_abstract\tables\table_h.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\gen_code\table_h.obj ..\..\..\..\..\src\ta_abstract\tables\table_h.c + +..\..\..\..\..\temp\cmr\gen_code\table_i.obj: ..\..\..\..\..\src\ta_abstract\tables\table_i.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\gen_code\table_i.obj ..\..\..\..\..\src\ta_abstract\tables\table_i.c + +..\..\..\..\..\temp\cmr\gen_code\table_j.obj: ..\..\..\..\..\src\ta_abstract\tables\table_j.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\gen_code\table_j.obj ..\..\..\..\..\src\ta_abstract\tables\table_j.c + +..\..\..\..\..\temp\cmr\gen_code\table_k.obj: ..\..\..\..\..\src\ta_abstract\tables\table_k.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\gen_code\table_k.obj ..\..\..\..\..\src\ta_abstract\tables\table_k.c + +..\..\..\..\..\temp\cmr\gen_code\table_l.obj: ..\..\..\..\..\src\ta_abstract\tables\table_l.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\gen_code\table_l.obj ..\..\..\..\..\src\ta_abstract\tables\table_l.c + +..\..\..\..\..\temp\cmr\gen_code\table_m.obj: ..\..\..\..\..\src\ta_abstract\tables\table_m.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\gen_code\table_m.obj ..\..\..\..\..\src\ta_abstract\tables\table_m.c + +..\..\..\..\..\temp\cmr\gen_code\table_n.obj: ..\..\..\..\..\src\ta_abstract\tables\table_n.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\gen_code\table_n.obj ..\..\..\..\..\src\ta_abstract\tables\table_n.c + +..\..\..\..\..\temp\cmr\gen_code\table_o.obj: ..\..\..\..\..\src\ta_abstract\tables\table_o.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\gen_code\table_o.obj ..\..\..\..\..\src\ta_abstract\tables\table_o.c + +..\..\..\..\..\temp\cmr\gen_code\table_p.obj: ..\..\..\..\..\src\ta_abstract\tables\table_p.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\gen_code\table_p.obj ..\..\..\..\..\src\ta_abstract\tables\table_p.c + +..\..\..\..\..\temp\cmr\gen_code\table_q.obj: ..\..\..\..\..\src\ta_abstract\tables\table_q.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\gen_code\table_q.obj ..\..\..\..\..\src\ta_abstract\tables\table_q.c + +..\..\..\..\..\temp\cmr\gen_code\table_r.obj: ..\..\..\..\..\src\ta_abstract\tables\table_r.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\gen_code\table_r.obj ..\..\..\..\..\src\ta_abstract\tables\table_r.c + +..\..\..\..\..\temp\cmr\gen_code\table_s.obj: ..\..\..\..\..\src\ta_abstract\tables\table_s.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\gen_code\table_s.obj ..\..\..\..\..\src\ta_abstract\tables\table_s.c + +..\..\..\..\..\temp\cmr\gen_code\table_t.obj: ..\..\..\..\..\src\ta_abstract\tables\table_t.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\gen_code\table_t.obj ..\..\..\..\..\src\ta_abstract\tables\table_t.c + +..\..\..\..\..\temp\cmr\gen_code\table_u.obj: ..\..\..\..\..\src\ta_abstract\tables\table_u.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\gen_code\table_u.obj ..\..\..\..\..\src\ta_abstract\tables\table_u.c + +..\..\..\..\..\temp\cmr\gen_code\table_v.obj: ..\..\..\..\..\src\ta_abstract\tables\table_v.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\gen_code\table_v.obj ..\..\..\..\..\src\ta_abstract\tables\table_v.c + +..\..\..\..\..\temp\cmr\gen_code\table_w.obj: ..\..\..\..\..\src\ta_abstract\tables\table_w.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\gen_code\table_w.obj ..\..\..\..\..\src\ta_abstract\tables\table_w.c + +..\..\..\..\..\temp\cmr\gen_code\table_x.obj: ..\..\..\..\..\src\ta_abstract\tables\table_x.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\gen_code\table_x.obj ..\..\..\..\..\src\ta_abstract\tables\table_x.c + +..\..\..\..\..\temp\cmr\gen_code\table_y.obj: ..\..\..\..\..\src\ta_abstract\tables\table_y.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\gen_code\table_y.obj ..\..\..\..\..\src\ta_abstract\tables\table_y.c + +..\..\..\..\..\temp\cmr\gen_code\table_z.obj: ..\..\..\..\..\src\ta_abstract\tables\table_z.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\gen_code\table_z.obj ..\..\..\..\..\src\ta_abstract\tables\table_z.c + diff --git a/make/cmr/win32/msvc/ta_abstract/Makefile b/make/cmr/win32/msvc/ta_abstract/Makefile new file mode 100644 index 000000000..a4ef22b6f --- /dev/null +++ b/make/cmr/win32/msvc/ta_abstract/Makefile @@ -0,0 +1,270 @@ +############################################################################# +# Makefile for building ta_abstract_cmr +# Generated by tmake; +# Project: ta_abstract/ta_abstract +# Template: lib +############################################################################# + +####### Compiler, tools and options + +CC = cl +CXX = cl +CFLAGS = -nologo -W3 -MT -O2 -DWIN32 -D_MBCS -D_LIB -DQT_THREAD_SUPPORT +CXXFLAGS= -nologo -W3 -MT -O2 -DWIN32 -D_MBCS -D_LIB -DQT_THREAD_SUPPORT +INCPATH = -I"..\..\..\..\..\src\ta_common" -I"..\..\..\..\..\src\ta_abstract" -I"..\..\..\..\..\src\ta_abstract\tables" -I"..\..\..\..\..\src\ta_abstract\frames" -I"..\..\..\..\..\include" +LIB = lib /NOLOGO +MOC = moc +UIC = uic + +ZIP = zip -r -9 + +####### Files + +HEADERS = +SOURCES = ..\..\..\..\..\src\ta_abstract\ta_abstract.c \ + ..\..\..\..\..\src\ta_abstract\ta_def_ui.c \ + ..\..\..\..\..\src\ta_abstract\ta_func_api.c \ + ..\..\..\..\..\src\ta_abstract\ta_group_idx.c \ + ..\..\..\..\..\src\ta_abstract\frames\ta_frame.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_a.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_b.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_c.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_d.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_e.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_f.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_g.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_h.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_i.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_j.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_k.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_l.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_m.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_n.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_o.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_p.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_q.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_r.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_s.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_t.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_u.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_v.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_w.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_x.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_y.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_z.c +OBJECTS = ..\..\..\..\..\temp\cmr\ta_abstract.obj \ + ..\..\..\..\..\temp\cmr\ta_def_ui.obj \ + ..\..\..\..\..\temp\cmr\ta_func_api.obj \ + ..\..\..\..\..\temp\cmr\ta_group_idx.obj \ + ..\..\..\..\..\temp\cmr\ta_frame.obj \ + ..\..\..\..\..\temp\cmr\table_a.obj \ + ..\..\..\..\..\temp\cmr\table_b.obj \ + ..\..\..\..\..\temp\cmr\table_c.obj \ + ..\..\..\..\..\temp\cmr\table_d.obj \ + ..\..\..\..\..\temp\cmr\table_e.obj \ + ..\..\..\..\..\temp\cmr\table_f.obj \ + ..\..\..\..\..\temp\cmr\table_g.obj \ + ..\..\..\..\..\temp\cmr\table_h.obj \ + ..\..\..\..\..\temp\cmr\table_i.obj \ + ..\..\..\..\..\temp\cmr\table_j.obj \ + ..\..\..\..\..\temp\cmr\table_k.obj \ + ..\..\..\..\..\temp\cmr\table_l.obj \ + ..\..\..\..\..\temp\cmr\table_m.obj \ + ..\..\..\..\..\temp\cmr\table_n.obj \ + ..\..\..\..\..\temp\cmr\table_o.obj \ + ..\..\..\..\..\temp\cmr\table_p.obj \ + ..\..\..\..\..\temp\cmr\table_q.obj \ + ..\..\..\..\..\temp\cmr\table_r.obj \ + ..\..\..\..\..\temp\cmr\table_s.obj \ + ..\..\..\..\..\temp\cmr\table_t.obj \ + ..\..\..\..\..\temp\cmr\table_u.obj \ + ..\..\..\..\..\temp\cmr\table_v.obj \ + ..\..\..\..\..\temp\cmr\table_w.obj \ + ..\..\..\..\..\temp\cmr\table_x.obj \ + ..\..\..\..\..\temp\cmr\table_y.obj \ + ..\..\..\..\..\temp\cmr\table_z.obj +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ..\..\..\..\..\lib\ta_abstract_cmr.lib +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .c + +.cpp.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $< + +.cxx.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $< + +.cc.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $< + +.c.obj: + $(CC) -c $(CFLAGS) $(INCPATH) -Fo$@ $< + +####### Build rules + +all: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + $(LIB) /OUT:$(TARGET) @<< + $(OBJECTS) $(OBJMOC) +<< + +moc: $(SRCMOC) + +tmake: ../cmr/win32/msvc/ta_abstract/Makefile + +../cmr/win32/msvc/ta_abstract/Makefile: ta_abstract/ta_abstract.pro + tmake ta_abstract/ta_abstract.pro -o ../cmr/win32/msvc/ta_abstract/Makefile + +dist: + $(ZIP) ta_abstract/ta_abstract.zip ta_abstract/ta_abstract.pro $(SOURCES) $(HEADERS) $(DIST) $(INTERFACES) + +clean: + -del ..\..\..\..\..\temp\cmr\ta_abstract.obj + -del ..\..\..\..\..\temp\cmr\ta_def_ui.obj + -del ..\..\..\..\..\temp\cmr\ta_func_api.obj + -del ..\..\..\..\..\temp\cmr\ta_group_idx.obj + -del ..\..\..\..\..\temp\cmr\ta_frame.obj + -del ..\..\..\..\..\temp\cmr\table_a.obj + -del ..\..\..\..\..\temp\cmr\table_b.obj + -del ..\..\..\..\..\temp\cmr\table_c.obj + -del ..\..\..\..\..\temp\cmr\table_d.obj + -del ..\..\..\..\..\temp\cmr\table_e.obj + -del ..\..\..\..\..\temp\cmr\table_f.obj + -del ..\..\..\..\..\temp\cmr\table_g.obj + -del ..\..\..\..\..\temp\cmr\table_h.obj + -del ..\..\..\..\..\temp\cmr\table_i.obj + -del ..\..\..\..\..\temp\cmr\table_j.obj + -del ..\..\..\..\..\temp\cmr\table_k.obj + -del ..\..\..\..\..\temp\cmr\table_l.obj + -del ..\..\..\..\..\temp\cmr\table_m.obj + -del ..\..\..\..\..\temp\cmr\table_n.obj + -del ..\..\..\..\..\temp\cmr\table_o.obj + -del ..\..\..\..\..\temp\cmr\table_p.obj + -del ..\..\..\..\..\temp\cmr\table_q.obj + -del ..\..\..\..\..\temp\cmr\table_r.obj + -del ..\..\..\..\..\temp\cmr\table_s.obj + -del ..\..\..\..\..\temp\cmr\table_t.obj + -del ..\..\..\..\..\temp\cmr\table_u.obj + -del ..\..\..\..\..\temp\cmr\table_v.obj + -del ..\..\..\..\..\temp\cmr\table_w.obj + -del ..\..\..\..\..\temp\cmr\table_x.obj + -del ..\..\..\..\..\temp\cmr\table_y.obj + -del ..\..\..\..\..\temp\cmr\table_z.obj + -del $(TARGET) + -del ../../../../../bin/*.map + -del ../../../../../bin/*._xe + -del ../../../../../bin/*.tds + -del ../../../../../bin/*.pdb + -del ../../../../../bin/*.pbo + -del ../../../../../bin/*.pbi + -del ../../../../../bin/*.pbt + -del ../../../../../temp/cmr/*.pch + -del ../../../../../temp/cmr/*.idb + -del ../../../../../temp/cmr/ta_abstract/*.pch + -del ../../../../../temp/cmr/ta_abstract/*.idb + -del ../../../../../temp/cmr/ta_abstract/*.obj + +####### Compile + +..\..\..\..\..\temp\cmr\ta_abstract.obj: ..\..\..\..\..\src\ta_abstract\ta_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_abstract.obj ..\..\..\..\..\src\ta_abstract\ta_abstract.c + +..\..\..\..\..\temp\cmr\ta_def_ui.obj: ..\..\..\..\..\src\ta_abstract\ta_def_ui.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_def_ui.obj ..\..\..\..\..\src\ta_abstract\ta_def_ui.c + +..\..\..\..\..\temp\cmr\ta_func_api.obj: ..\..\..\..\..\src\ta_abstract\ta_func_api.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_func_api.obj ..\..\..\..\..\src\ta_abstract\ta_func_api.c + +..\..\..\..\..\temp\cmr\ta_group_idx.obj: ..\..\..\..\..\src\ta_abstract\ta_group_idx.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_group_idx.obj ..\..\..\..\..\src\ta_abstract\ta_group_idx.c + +..\..\..\..\..\temp\cmr\ta_frame.obj: ..\..\..\..\..\src\ta_abstract\frames\ta_frame.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_frame.obj ..\..\..\..\..\src\ta_abstract\frames\ta_frame.c + +..\..\..\..\..\temp\cmr\table_a.obj: ..\..\..\..\..\src\ta_abstract\tables\table_a.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\table_a.obj ..\..\..\..\..\src\ta_abstract\tables\table_a.c + +..\..\..\..\..\temp\cmr\table_b.obj: ..\..\..\..\..\src\ta_abstract\tables\table_b.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\table_b.obj ..\..\..\..\..\src\ta_abstract\tables\table_b.c + +..\..\..\..\..\temp\cmr\table_c.obj: ..\..\..\..\..\src\ta_abstract\tables\table_c.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\table_c.obj ..\..\..\..\..\src\ta_abstract\tables\table_c.c + +..\..\..\..\..\temp\cmr\table_d.obj: ..\..\..\..\..\src\ta_abstract\tables\table_d.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\table_d.obj ..\..\..\..\..\src\ta_abstract\tables\table_d.c + +..\..\..\..\..\temp\cmr\table_e.obj: ..\..\..\..\..\src\ta_abstract\tables\table_e.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\table_e.obj ..\..\..\..\..\src\ta_abstract\tables\table_e.c + +..\..\..\..\..\temp\cmr\table_f.obj: ..\..\..\..\..\src\ta_abstract\tables\table_f.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\table_f.obj ..\..\..\..\..\src\ta_abstract\tables\table_f.c + +..\..\..\..\..\temp\cmr\table_g.obj: ..\..\..\..\..\src\ta_abstract\tables\table_g.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\table_g.obj ..\..\..\..\..\src\ta_abstract\tables\table_g.c + +..\..\..\..\..\temp\cmr\table_h.obj: ..\..\..\..\..\src\ta_abstract\tables\table_h.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\table_h.obj ..\..\..\..\..\src\ta_abstract\tables\table_h.c + +..\..\..\..\..\temp\cmr\table_i.obj: ..\..\..\..\..\src\ta_abstract\tables\table_i.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\table_i.obj ..\..\..\..\..\src\ta_abstract\tables\table_i.c + +..\..\..\..\..\temp\cmr\table_j.obj: ..\..\..\..\..\src\ta_abstract\tables\table_j.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\table_j.obj ..\..\..\..\..\src\ta_abstract\tables\table_j.c + +..\..\..\..\..\temp\cmr\table_k.obj: ..\..\..\..\..\src\ta_abstract\tables\table_k.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\table_k.obj ..\..\..\..\..\src\ta_abstract\tables\table_k.c + +..\..\..\..\..\temp\cmr\table_l.obj: ..\..\..\..\..\src\ta_abstract\tables\table_l.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\table_l.obj ..\..\..\..\..\src\ta_abstract\tables\table_l.c + +..\..\..\..\..\temp\cmr\table_m.obj: ..\..\..\..\..\src\ta_abstract\tables\table_m.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\table_m.obj ..\..\..\..\..\src\ta_abstract\tables\table_m.c + +..\..\..\..\..\temp\cmr\table_n.obj: ..\..\..\..\..\src\ta_abstract\tables\table_n.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\table_n.obj ..\..\..\..\..\src\ta_abstract\tables\table_n.c + +..\..\..\..\..\temp\cmr\table_o.obj: ..\..\..\..\..\src\ta_abstract\tables\table_o.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\table_o.obj ..\..\..\..\..\src\ta_abstract\tables\table_o.c + +..\..\..\..\..\temp\cmr\table_p.obj: ..\..\..\..\..\src\ta_abstract\tables\table_p.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\table_p.obj ..\..\..\..\..\src\ta_abstract\tables\table_p.c + +..\..\..\..\..\temp\cmr\table_q.obj: ..\..\..\..\..\src\ta_abstract\tables\table_q.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\table_q.obj ..\..\..\..\..\src\ta_abstract\tables\table_q.c + +..\..\..\..\..\temp\cmr\table_r.obj: ..\..\..\..\..\src\ta_abstract\tables\table_r.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\table_r.obj ..\..\..\..\..\src\ta_abstract\tables\table_r.c + +..\..\..\..\..\temp\cmr\table_s.obj: ..\..\..\..\..\src\ta_abstract\tables\table_s.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\table_s.obj ..\..\..\..\..\src\ta_abstract\tables\table_s.c + +..\..\..\..\..\temp\cmr\table_t.obj: ..\..\..\..\..\src\ta_abstract\tables\table_t.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\table_t.obj ..\..\..\..\..\src\ta_abstract\tables\table_t.c + +..\..\..\..\..\temp\cmr\table_u.obj: ..\..\..\..\..\src\ta_abstract\tables\table_u.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\table_u.obj ..\..\..\..\..\src\ta_abstract\tables\table_u.c + +..\..\..\..\..\temp\cmr\table_v.obj: ..\..\..\..\..\src\ta_abstract\tables\table_v.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\table_v.obj ..\..\..\..\..\src\ta_abstract\tables\table_v.c + +..\..\..\..\..\temp\cmr\table_w.obj: ..\..\..\..\..\src\ta_abstract\tables\table_w.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\table_w.obj ..\..\..\..\..\src\ta_abstract\tables\table_w.c + +..\..\..\..\..\temp\cmr\table_x.obj: ..\..\..\..\..\src\ta_abstract\tables\table_x.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\table_x.obj ..\..\..\..\..\src\ta_abstract\tables\table_x.c + +..\..\..\..\..\temp\cmr\table_y.obj: ..\..\..\..\..\src\ta_abstract\tables\table_y.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\table_y.obj ..\..\..\..\..\src\ta_abstract\tables\table_y.c + +..\..\..\..\..\temp\cmr\table_z.obj: ..\..\..\..\..\src\ta_abstract\tables\table_z.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\table_z.obj ..\..\..\..\..\src\ta_abstract\tables\table_z.c + diff --git a/make/cmr/win32/msvc/ta_common/Makefile b/make/cmr/win32/msvc/ta_common/Makefile new file mode 100644 index 000000000..c51a47886 --- /dev/null +++ b/make/cmr/win32/msvc/ta_common/Makefile @@ -0,0 +1,102 @@ +############################################################################# +# Makefile for building ta_common_cmr +# Generated by tmake; +# Project: ta_common/ta_common +# Template: lib +############################################################################# + +####### Compiler, tools and options + +CC = cl +CXX = cl +CFLAGS = -nologo -W3 -MT -O2 -DWIN32 -D_MBCS -D_LIB -DQT_THREAD_SUPPORT +CXXFLAGS= -nologo -W3 -MT -O2 -DWIN32 -D_MBCS -D_LIB -DQT_THREAD_SUPPORT +INCPATH = -I"..\..\..\..\..\src\ta_common" -I"..\..\..\..\..\include" +LIB = lib /NOLOGO +MOC = moc +UIC = uic + +ZIP = zip -r -9 + +####### Files + +HEADERS = +SOURCES = ..\..\..\..\..\src\ta_common\ta_global.c \ + ..\..\..\..\..\src\ta_common\ta_retcode.c \ + ..\..\..\..\..\src\ta_common\ta_version.c +OBJECTS = ..\..\..\..\..\temp\cmr\ta_global.obj \ + ..\..\..\..\..\temp\cmr\ta_retcode.obj \ + ..\..\..\..\..\temp\cmr\ta_version.obj +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ..\..\..\..\..\lib\ta_common_cmr.lib +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .c + +.cpp.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $< + +.cxx.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $< + +.cc.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $< + +.c.obj: + $(CC) -c $(CFLAGS) $(INCPATH) -Fo$@ $< + +####### Build rules + +all: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + $(LIB) /OUT:$(TARGET) @<< + $(OBJECTS) $(OBJMOC) +<< + +moc: $(SRCMOC) + +tmake: ../cmr/win32/msvc/ta_common/Makefile + +../cmr/win32/msvc/ta_common/Makefile: ta_common/ta_common.pro + tmake ta_common/ta_common.pro -o ../cmr/win32/msvc/ta_common/Makefile + +dist: + $(ZIP) ta_common/ta_common.zip ta_common/ta_common.pro $(SOURCES) $(HEADERS) $(DIST) $(INTERFACES) + +clean: + -del ..\..\..\..\..\temp\cmr\ta_global.obj + -del ..\..\..\..\..\temp\cmr\ta_retcode.obj + -del ..\..\..\..\..\temp\cmr\ta_version.obj + -del $(TARGET) + -del ../../../../../bin/*.map + -del ../../../../../bin/*._xe + -del ../../../../../bin/*.tds + -del ../../../../../bin/*.pdb + -del ../../../../../bin/*.pbo + -del ../../../../../bin/*.pbi + -del ../../../../../bin/*.pbt + -del ../../../../../temp/cmr/*.pch + -del ../../../../../temp/cmr/*.idb + -del ../../../../../temp/cmr/ta_common_cmr/*.pch + -del ../../../../../temp/cmr/ta_common_cmr/*.idb + -del ../../../../../temp/cmr/ta_common_cmr/*.obj + +####### Compile + +..\..\..\..\..\temp\cmr\ta_global.obj: ..\..\..\..\..\src\ta_common\ta_global.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_global.obj ..\..\..\..\..\src\ta_common\ta_global.c + +..\..\..\..\..\temp\cmr\ta_retcode.obj: ..\..\..\..\..\src\ta_common\ta_retcode.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_retcode.obj ..\..\..\..\..\src\ta_common\ta_retcode.c + +..\..\..\..\..\temp\cmr\ta_version.obj: ..\..\..\..\..\src\ta_common\ta_version.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_version.obj ..\..\..\..\..\src\ta_common\ta_version.c + diff --git a/make/cmr/win32/msvc/ta_func/Makefile b/make/cmr/win32/msvc/ta_func/Makefile new file mode 100644 index 000000000..13fbb1175 --- /dev/null +++ b/make/cmr/win32/msvc/ta_func/Makefile @@ -0,0 +1,1038 @@ +############################################################################# +# Makefile for building ta_func_cmr +# Generated by tmake; +# Project: ta_func/ta_func +# Template: lib +############################################################################# + +####### Compiler, tools and options + +CC = cl +CXX = cl +CFLAGS = -nologo -W3 -MT -O2 -DWIN32 -D_MBCS -D_LIB -DQT_THREAD_SUPPORT +CXXFLAGS= -nologo -W3 -MT -O2 -DWIN32 -D_MBCS -D_LIB -DQT_THREAD_SUPPORT +INCPATH = -I"..\..\..\..\..\src\ta_common" -I"\n" -I"..\..\..\..\..\include" +LIB = lib /NOLOGO +MOC = moc +UIC = uic + +ZIP = zip -r -9 + +####### Files + +HEADERS = +SOURCES = ..\..\..\..\..\src\ta_func\ta_utility.c \ + ..\..\..\..\..\src\ta_func\ta_ACOS.c \ + ..\..\..\..\..\src\ta_func\ta_AD.c \ + ..\..\..\..\..\src\ta_func\ta_ADD.c \ + ..\..\..\..\..\src\ta_func\ta_ADOSC.c \ + ..\..\..\..\..\src\ta_func\ta_ADX.c \ + ..\..\..\..\..\src\ta_func\ta_ADXR.c \ + ..\..\..\..\..\src\ta_func\ta_APO.c \ + ..\..\..\..\..\src\ta_func\ta_AROON.c \ + ..\..\..\..\..\src\ta_func\ta_AROONOSC.c \ + ..\..\..\..\..\src\ta_func\ta_ASIN.c \ + ..\..\..\..\..\src\ta_func\ta_ATAN.c \ + ..\..\..\..\..\src\ta_func\ta_ATR.c \ + ..\..\..\..\..\src\ta_func\ta_AVGPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_BBANDS.c \ + ..\..\..\..\..\src\ta_func\ta_BETA.c \ + ..\..\..\..\..\src\ta_func\ta_BOP.c \ + ..\..\..\..\..\src\ta_func\ta_CCI.c \ + ..\..\..\..\..\src\ta_func\ta_CDL2CROWS.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3BLACKCROWS.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3INSIDE.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3LINESTRIKE.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3OUTSIDE.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3STARSINSOUTH.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3WHITESOLDIERS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLABANDONEDBABY.c \ + ..\..\..\..\..\src\ta_func\ta_CDLADVANCEBLOCK.c \ + ..\..\..\..\..\src\ta_func\ta_CDLBELTHOLD.c \ + ..\..\..\..\..\src\ta_func\ta_CDLBREAKAWAY.c \ + ..\..\..\..\..\src\ta_func\ta_CDLCLOSINGMARUBOZU.c \ + ..\..\..\..\..\src\ta_func\ta_CDLCONCEALBABYSWALL.c \ + ..\..\..\..\..\src\ta_func\ta_CDLCOUNTERATTACK.c \ + ..\..\..\..\..\src\ta_func\ta_CDLDARKCLOUDCOVER.c \ + ..\..\..\..\..\src\ta_func\ta_CDLDOJI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLDOJISTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLDRAGONFLYDOJI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLENGULFING.c \ + ..\..\..\..\..\src\ta_func\ta_CDLEVENINGDOJISTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLEVENINGSTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLGAPSIDESIDEWHITE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLGRAVESTONEDOJI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHAMMER.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHANGINGMAN.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHARAMI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHARAMICROSS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHIGHWAVE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKEMOD.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHOMINGPIGEON.c \ + ..\..\..\..\..\src\ta_func\ta_CDLIDENTICAL3CROWS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLINNECK.c \ + ..\..\..\..\..\src\ta_func\ta_CDLINVERTEDHAMMER.c \ + ..\..\..\..\..\src\ta_func\ta_CDLKICKING.c \ + ..\..\..\..\..\src\ta_func\ta_CDLKICKINGBYLENGTH.c \ + ..\..\..\..\..\src\ta_func\ta_CDLLADDERBOTTOM.c \ + ..\..\..\..\..\src\ta_func\ta_CDLLONGLEGGEDDOJI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLLONGLINE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMARUBOZU.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMATCHINGLOW.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMATHOLD.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMORNINGDOJISTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMORNINGSTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLONNECK.c \ + ..\..\..\..\..\src\ta_func\ta_CDLPIERCING.c \ + ..\..\..\..\..\src\ta_func\ta_CDLRICKSHAWMAN.c \ + ..\..\..\..\..\src\ta_func\ta_CDLRISEFALL3METHODS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSEPARATINGLINES.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSHOOTINGSTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSHORTLINE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSPINNINGTOP.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSTALLEDPATTERN.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSTICKSANDWICH.c \ + ..\..\..\..\..\src\ta_func\ta_CDLTAKURI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLTASUKIGAP.c \ + ..\..\..\..\..\src\ta_func\ta_CDLTHRUSTING.c \ + ..\..\..\..\..\src\ta_func\ta_CDLTRISTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLUNIQUE3RIVER.c \ + ..\..\..\..\..\src\ta_func\ta_CDLUPSIDEGAP2CROWS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLXSIDEGAP3METHODS.c \ + ..\..\..\..\..\src\ta_func\ta_CEIL.c \ + ..\..\..\..\..\src\ta_func\ta_CMO.c \ + ..\..\..\..\..\src\ta_func\ta_CORREL.c \ + ..\..\..\..\..\src\ta_func\ta_COS.c \ + ..\..\..\..\..\src\ta_func\ta_COSH.c \ + ..\..\..\..\..\src\ta_func\ta_DEMA.c \ + ..\..\..\..\..\src\ta_func\ta_DIV.c \ + ..\..\..\..\..\src\ta_func\ta_DX.c \ + ..\..\..\..\..\src\ta_func\ta_EMA.c \ + ..\..\..\..\..\src\ta_func\ta_EXP.c \ + ..\..\..\..\..\src\ta_func\ta_FLOOR.c \ + ..\..\..\..\..\src\ta_func\ta_HT_DCPERIOD.c \ + ..\..\..\..\..\src\ta_func\ta_HT_DCPHASE.c \ + ..\..\..\..\..\src\ta_func\ta_HT_PHASOR.c \ + ..\..\..\..\..\src\ta_func\ta_HT_SINE.c \ + ..\..\..\..\..\src\ta_func\ta_HT_TRENDLINE.c \ + ..\..\..\..\..\src\ta_func\ta_HT_TRENDMODE.c \ + ..\..\..\..\..\src\ta_func\ta_KAMA.c \ + ..\..\..\..\..\src\ta_func\ta_LINEARREG.c \ + ..\..\..\..\..\src\ta_func\ta_LINEARREG_ANGLE.c \ + ..\..\..\..\..\src\ta_func\ta_LINEARREG_INTERCEPT.c \ + ..\..\..\..\..\src\ta_func\ta_LINEARREG_SLOPE.c \ + ..\..\..\..\..\src\ta_func\ta_LN.c \ + ..\..\..\..\..\src\ta_func\ta_LOG10.c \ + ..\..\..\..\..\src\ta_func\ta_MA.c \ + ..\..\..\..\..\src\ta_func\ta_MACD.c \ + ..\..\..\..\..\src\ta_func\ta_MACDEXT.c \ + ..\..\..\..\..\src\ta_func\ta_MACDFIX.c \ + ..\..\..\..\..\src\ta_func\ta_MAMA.c \ + ..\..\..\..\..\src\ta_func\ta_MAVP.c \ + ..\..\..\..\..\src\ta_func\ta_MAX.c \ + ..\..\..\..\..\src\ta_func\ta_MAXINDEX.c \ + ..\..\..\..\..\src\ta_func\ta_MEDPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_MFI.c \ + ..\..\..\..\..\src\ta_func\ta_MIDPOINT.c \ + ..\..\..\..\..\src\ta_func\ta_MIDPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_MIN.c \ + ..\..\..\..\..\src\ta_func\ta_MININDEX.c \ + ..\..\..\..\..\src\ta_func\ta_MINMAX.c \ + ..\..\..\..\..\src\ta_func\ta_MINMAXINDEX.c \ + ..\..\..\..\..\src\ta_func\ta_MINUS_DI.c \ + ..\..\..\..\..\src\ta_func\ta_MINUS_DM.c \ + ..\..\..\..\..\src\ta_func\ta_MOM.c \ + ..\..\..\..\..\src\ta_func\ta_MULT.c \ + ..\..\..\..\..\src\ta_func\ta_NATR.c \ + ..\..\..\..\..\src\ta_func\ta_OBV.c \ + ..\..\..\..\..\src\ta_func\ta_PLUS_DI.c \ + ..\..\..\..\..\src\ta_func\ta_PLUS_DM.c \ + ..\..\..\..\..\src\ta_func\ta_PPO.c \ + ..\..\..\..\..\src\ta_func\ta_ROC.c \ + ..\..\..\..\..\src\ta_func\ta_ROCP.c \ + ..\..\..\..\..\src\ta_func\ta_ROCR.c \ + ..\..\..\..\..\src\ta_func\ta_ROCR100.c \ + ..\..\..\..\..\src\ta_func\ta_RSI.c \ + ..\..\..\..\..\src\ta_func\ta_SAR.c \ + ..\..\..\..\..\src\ta_func\ta_SAREXT.c \ + ..\..\..\..\..\src\ta_func\ta_SIN.c \ + ..\..\..\..\..\src\ta_func\ta_SINH.c \ + ..\..\..\..\..\src\ta_func\ta_SMA.c \ + ..\..\..\..\..\src\ta_func\ta_SQRT.c \ + ..\..\..\..\..\src\ta_func\ta_STDDEV.c \ + ..\..\..\..\..\src\ta_func\ta_STOCH.c \ + ..\..\..\..\..\src\ta_func\ta_STOCHF.c \ + ..\..\..\..\..\src\ta_func\ta_STOCHRSI.c \ + ..\..\..\..\..\src\ta_func\ta_SUB.c \ + ..\..\..\..\..\src\ta_func\ta_SUM.c \ + ..\..\..\..\..\src\ta_func\ta_T3.c \ + ..\..\..\..\..\src\ta_func\ta_TAN.c \ + ..\..\..\..\..\src\ta_func\ta_TANH.c \ + ..\..\..\..\..\src\ta_func\ta_TEMA.c \ + ..\..\..\..\..\src\ta_func\ta_TRANGE.c \ + ..\..\..\..\..\src\ta_func\ta_TRIMA.c \ + ..\..\..\..\..\src\ta_func\ta_TRIX.c \ + ..\..\..\..\..\src\ta_func\ta_TSF.c \ + ..\..\..\..\..\src\ta_func\ta_TYPPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_ULTOSC.c \ + ..\..\..\..\..\src\ta_func\ta_VAR.c \ + ..\..\..\..\..\src\ta_func\ta_WCLPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_WILLR.c \ + ..\..\..\..\..\src\ta_func\ta_WMA.c +OBJECTS = ..\..\..\..\..\temp\cmr\ta_utility.obj \ + ..\..\..\..\..\temp\cmr\ta_ACOS.obj \ + ..\..\..\..\..\temp\cmr\ta_AD.obj \ + ..\..\..\..\..\temp\cmr\ta_ADD.obj \ + ..\..\..\..\..\temp\cmr\ta_ADOSC.obj \ + ..\..\..\..\..\temp\cmr\ta_ADX.obj \ + ..\..\..\..\..\temp\cmr\ta_ADXR.obj \ + ..\..\..\..\..\temp\cmr\ta_APO.obj \ + ..\..\..\..\..\temp\cmr\ta_AROON.obj \ + ..\..\..\..\..\temp\cmr\ta_AROONOSC.obj \ + ..\..\..\..\..\temp\cmr\ta_ASIN.obj \ + ..\..\..\..\..\temp\cmr\ta_ATAN.obj \ + ..\..\..\..\..\temp\cmr\ta_ATR.obj \ + ..\..\..\..\..\temp\cmr\ta_AVGPRICE.obj \ + ..\..\..\..\..\temp\cmr\ta_BBANDS.obj \ + ..\..\..\..\..\temp\cmr\ta_BETA.obj \ + ..\..\..\..\..\temp\cmr\ta_BOP.obj \ + ..\..\..\..\..\temp\cmr\ta_CCI.obj \ + ..\..\..\..\..\temp\cmr\ta_CDL2CROWS.obj \ + ..\..\..\..\..\temp\cmr\ta_CDL3BLACKCROWS.obj \ + ..\..\..\..\..\temp\cmr\ta_CDL3INSIDE.obj \ + ..\..\..\..\..\temp\cmr\ta_CDL3LINESTRIKE.obj \ + ..\..\..\..\..\temp\cmr\ta_CDL3OUTSIDE.obj \ + ..\..\..\..\..\temp\cmr\ta_CDL3STARSINSOUTH.obj \ + ..\..\..\..\..\temp\cmr\ta_CDL3WHITESOLDIERS.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLABANDONEDBABY.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLADVANCEBLOCK.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLBELTHOLD.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLBREAKAWAY.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLCLOSINGMARUBOZU.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLCONCEALBABYSWALL.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLCOUNTERATTACK.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLDARKCLOUDCOVER.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLDOJI.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLDOJISTAR.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLDRAGONFLYDOJI.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLENGULFING.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLEVENINGDOJISTAR.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLEVENINGSTAR.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLGAPSIDESIDEWHITE.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLGRAVESTONEDOJI.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLHAMMER.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLHANGINGMAN.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLHARAMI.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLHARAMICROSS.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLHIGHWAVE.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLHIKKAKE.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLHIKKAKEMOD.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLHOMINGPIGEON.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLIDENTICAL3CROWS.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLINNECK.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLINVERTEDHAMMER.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLKICKING.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLKICKINGBYLENGTH.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLLADDERBOTTOM.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLLONGLEGGEDDOJI.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLLONGLINE.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLMARUBOZU.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLMATCHINGLOW.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLMATHOLD.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLMORNINGDOJISTAR.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLMORNINGSTAR.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLONNECK.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLPIERCING.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLRICKSHAWMAN.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLRISEFALL3METHODS.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLSEPARATINGLINES.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLSHOOTINGSTAR.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLSHORTLINE.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLSPINNINGTOP.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLSTALLEDPATTERN.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLSTICKSANDWICH.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLTAKURI.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLTASUKIGAP.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLTHRUSTING.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLTRISTAR.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLUNIQUE3RIVER.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLUPSIDEGAP2CROWS.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLXSIDEGAP3METHODS.obj \ + ..\..\..\..\..\temp\cmr\ta_CEIL.obj \ + ..\..\..\..\..\temp\cmr\ta_CMO.obj \ + ..\..\..\..\..\temp\cmr\ta_CORREL.obj \ + ..\..\..\..\..\temp\cmr\ta_COS.obj \ + ..\..\..\..\..\temp\cmr\ta_COSH.obj \ + ..\..\..\..\..\temp\cmr\ta_DEMA.obj \ + ..\..\..\..\..\temp\cmr\ta_DIV.obj \ + ..\..\..\..\..\temp\cmr\ta_DX.obj \ + ..\..\..\..\..\temp\cmr\ta_EMA.obj \ + ..\..\..\..\..\temp\cmr\ta_EXP.obj \ + ..\..\..\..\..\temp\cmr\ta_FLOOR.obj \ + ..\..\..\..\..\temp\cmr\ta_HT_DCPERIOD.obj \ + ..\..\..\..\..\temp\cmr\ta_HT_DCPHASE.obj \ + ..\..\..\..\..\temp\cmr\ta_HT_PHASOR.obj \ + ..\..\..\..\..\temp\cmr\ta_HT_SINE.obj \ + ..\..\..\..\..\temp\cmr\ta_HT_TRENDLINE.obj \ + ..\..\..\..\..\temp\cmr\ta_HT_TRENDMODE.obj \ + ..\..\..\..\..\temp\cmr\ta_KAMA.obj \ + ..\..\..\..\..\temp\cmr\ta_LINEARREG.obj \ + ..\..\..\..\..\temp\cmr\ta_LINEARREG_ANGLE.obj \ + ..\..\..\..\..\temp\cmr\ta_LINEARREG_INTERCEPT.obj \ + ..\..\..\..\..\temp\cmr\ta_LINEARREG_SLOPE.obj \ + ..\..\..\..\..\temp\cmr\ta_LN.obj \ + ..\..\..\..\..\temp\cmr\ta_LOG10.obj \ + ..\..\..\..\..\temp\cmr\ta_MA.obj \ + ..\..\..\..\..\temp\cmr\ta_MACD.obj \ + ..\..\..\..\..\temp\cmr\ta_MACDEXT.obj \ + ..\..\..\..\..\temp\cmr\ta_MACDFIX.obj \ + ..\..\..\..\..\temp\cmr\ta_MAMA.obj \ + ..\..\..\..\..\temp\cmr\ta_MAVP.obj \ + ..\..\..\..\..\temp\cmr\ta_MAX.obj \ + ..\..\..\..\..\temp\cmr\ta_MAXINDEX.obj \ + ..\..\..\..\..\temp\cmr\ta_MEDPRICE.obj \ + ..\..\..\..\..\temp\cmr\ta_MFI.obj \ + ..\..\..\..\..\temp\cmr\ta_MIDPOINT.obj \ + ..\..\..\..\..\temp\cmr\ta_MIDPRICE.obj \ + ..\..\..\..\..\temp\cmr\ta_MIN.obj \ + ..\..\..\..\..\temp\cmr\ta_MININDEX.obj \ + ..\..\..\..\..\temp\cmr\ta_MINMAX.obj \ + ..\..\..\..\..\temp\cmr\ta_MINMAXINDEX.obj \ + ..\..\..\..\..\temp\cmr\ta_MINUS_DI.obj \ + ..\..\..\..\..\temp\cmr\ta_MINUS_DM.obj \ + ..\..\..\..\..\temp\cmr\ta_MOM.obj \ + ..\..\..\..\..\temp\cmr\ta_MULT.obj \ + ..\..\..\..\..\temp\cmr\ta_NATR.obj \ + ..\..\..\..\..\temp\cmr\ta_OBV.obj \ + ..\..\..\..\..\temp\cmr\ta_PLUS_DI.obj \ + ..\..\..\..\..\temp\cmr\ta_PLUS_DM.obj \ + ..\..\..\..\..\temp\cmr\ta_PPO.obj \ + ..\..\..\..\..\temp\cmr\ta_ROC.obj \ + ..\..\..\..\..\temp\cmr\ta_ROCP.obj \ + ..\..\..\..\..\temp\cmr\ta_ROCR.obj \ + ..\..\..\..\..\temp\cmr\ta_ROCR100.obj \ + ..\..\..\..\..\temp\cmr\ta_RSI.obj \ + ..\..\..\..\..\temp\cmr\ta_SAR.obj \ + ..\..\..\..\..\temp\cmr\ta_SAREXT.obj \ + ..\..\..\..\..\temp\cmr\ta_SIN.obj \ + ..\..\..\..\..\temp\cmr\ta_SINH.obj \ + ..\..\..\..\..\temp\cmr\ta_SMA.obj \ + ..\..\..\..\..\temp\cmr\ta_SQRT.obj \ + ..\..\..\..\..\temp\cmr\ta_STDDEV.obj \ + ..\..\..\..\..\temp\cmr\ta_STOCH.obj \ + ..\..\..\..\..\temp\cmr\ta_STOCHF.obj \ + ..\..\..\..\..\temp\cmr\ta_STOCHRSI.obj \ + ..\..\..\..\..\temp\cmr\ta_SUB.obj \ + ..\..\..\..\..\temp\cmr\ta_SUM.obj \ + ..\..\..\..\..\temp\cmr\ta_T3.obj \ + ..\..\..\..\..\temp\cmr\ta_TAN.obj \ + ..\..\..\..\..\temp\cmr\ta_TANH.obj \ + ..\..\..\..\..\temp\cmr\ta_TEMA.obj \ + ..\..\..\..\..\temp\cmr\ta_TRANGE.obj \ + ..\..\..\..\..\temp\cmr\ta_TRIMA.obj \ + ..\..\..\..\..\temp\cmr\ta_TRIX.obj \ + ..\..\..\..\..\temp\cmr\ta_TSF.obj \ + ..\..\..\..\..\temp\cmr\ta_TYPPRICE.obj \ + ..\..\..\..\..\temp\cmr\ta_ULTOSC.obj \ + ..\..\..\..\..\temp\cmr\ta_VAR.obj \ + ..\..\..\..\..\temp\cmr\ta_WCLPRICE.obj \ + ..\..\..\..\..\temp\cmr\ta_WILLR.obj \ + ..\..\..\..\..\temp\cmr\ta_WMA.obj +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ..\..\..\..\..\lib\ta_func_cmr.lib +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .c + +.cpp.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $< + +.cxx.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $< + +.cc.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $< + +.c.obj: + $(CC) -c $(CFLAGS) $(INCPATH) -Fo$@ $< + +####### Build rules + +all: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + $(LIB) /OUT:$(TARGET) @<< + $(OBJECTS) $(OBJMOC) +<< + +moc: $(SRCMOC) + +tmake: ../cmr/win32/msvc/ta_func/Makefile + +../cmr/win32/msvc/ta_func/Makefile: ta_func/ta_func.pro + tmake ta_func/ta_func.pro -o ../cmr/win32/msvc/ta_func/Makefile + +dist: + $(ZIP) ta_func/ta_func.zip ta_func/ta_func.pro $(SOURCES) $(HEADERS) $(DIST) $(INTERFACES) + +clean: + -del ..\..\..\..\..\temp\cmr\ta_utility.obj + -del ..\..\..\..\..\temp\cmr\ta_ACOS.obj + -del ..\..\..\..\..\temp\cmr\ta_AD.obj + -del ..\..\..\..\..\temp\cmr\ta_ADD.obj + -del ..\..\..\..\..\temp\cmr\ta_ADOSC.obj + -del ..\..\..\..\..\temp\cmr\ta_ADX.obj + -del ..\..\..\..\..\temp\cmr\ta_ADXR.obj + -del ..\..\..\..\..\temp\cmr\ta_APO.obj + -del ..\..\..\..\..\temp\cmr\ta_AROON.obj + -del ..\..\..\..\..\temp\cmr\ta_AROONOSC.obj + -del ..\..\..\..\..\temp\cmr\ta_ASIN.obj + -del ..\..\..\..\..\temp\cmr\ta_ATAN.obj + -del ..\..\..\..\..\temp\cmr\ta_ATR.obj + -del ..\..\..\..\..\temp\cmr\ta_AVGPRICE.obj + -del ..\..\..\..\..\temp\cmr\ta_BBANDS.obj + -del ..\..\..\..\..\temp\cmr\ta_BETA.obj + -del ..\..\..\..\..\temp\cmr\ta_BOP.obj + -del ..\..\..\..\..\temp\cmr\ta_CCI.obj + -del ..\..\..\..\..\temp\cmr\ta_CDL2CROWS.obj + -del ..\..\..\..\..\temp\cmr\ta_CDL3BLACKCROWS.obj + -del ..\..\..\..\..\temp\cmr\ta_CDL3INSIDE.obj + -del ..\..\..\..\..\temp\cmr\ta_CDL3LINESTRIKE.obj + -del ..\..\..\..\..\temp\cmr\ta_CDL3OUTSIDE.obj + -del ..\..\..\..\..\temp\cmr\ta_CDL3STARSINSOUTH.obj + -del ..\..\..\..\..\temp\cmr\ta_CDL3WHITESOLDIERS.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLABANDONEDBABY.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLADVANCEBLOCK.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLBELTHOLD.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLBREAKAWAY.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLCLOSINGMARUBOZU.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLCONCEALBABYSWALL.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLCOUNTERATTACK.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLDARKCLOUDCOVER.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLDOJI.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLDOJISTAR.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLDRAGONFLYDOJI.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLENGULFING.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLEVENINGDOJISTAR.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLEVENINGSTAR.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLGAPSIDESIDEWHITE.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLGRAVESTONEDOJI.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLHAMMER.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLHANGINGMAN.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLHARAMI.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLHARAMICROSS.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLHIGHWAVE.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLHIKKAKE.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLHIKKAKEMOD.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLHOMINGPIGEON.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLIDENTICAL3CROWS.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLINNECK.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLINVERTEDHAMMER.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLKICKING.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLKICKINGBYLENGTH.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLLADDERBOTTOM.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLLONGLEGGEDDOJI.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLLONGLINE.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLMARUBOZU.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLMATCHINGLOW.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLMATHOLD.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLMORNINGDOJISTAR.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLMORNINGSTAR.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLONNECK.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLPIERCING.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLRICKSHAWMAN.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLRISEFALL3METHODS.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLSEPARATINGLINES.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLSHOOTINGSTAR.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLSHORTLINE.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLSPINNINGTOP.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLSTALLEDPATTERN.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLSTICKSANDWICH.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLTAKURI.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLTASUKIGAP.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLTHRUSTING.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLTRISTAR.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLUNIQUE3RIVER.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLUPSIDEGAP2CROWS.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLXSIDEGAP3METHODS.obj + -del ..\..\..\..\..\temp\cmr\ta_CEIL.obj + -del ..\..\..\..\..\temp\cmr\ta_CMO.obj + -del ..\..\..\..\..\temp\cmr\ta_CORREL.obj + -del ..\..\..\..\..\temp\cmr\ta_COS.obj + -del ..\..\..\..\..\temp\cmr\ta_COSH.obj + -del ..\..\..\..\..\temp\cmr\ta_DEMA.obj + -del ..\..\..\..\..\temp\cmr\ta_DIV.obj + -del ..\..\..\..\..\temp\cmr\ta_DX.obj + -del ..\..\..\..\..\temp\cmr\ta_EMA.obj + -del ..\..\..\..\..\temp\cmr\ta_EXP.obj + -del ..\..\..\..\..\temp\cmr\ta_FLOOR.obj + -del ..\..\..\..\..\temp\cmr\ta_HT_DCPERIOD.obj + -del ..\..\..\..\..\temp\cmr\ta_HT_DCPHASE.obj + -del ..\..\..\..\..\temp\cmr\ta_HT_PHASOR.obj + -del ..\..\..\..\..\temp\cmr\ta_HT_SINE.obj + -del ..\..\..\..\..\temp\cmr\ta_HT_TRENDLINE.obj + -del ..\..\..\..\..\temp\cmr\ta_HT_TRENDMODE.obj + -del ..\..\..\..\..\temp\cmr\ta_KAMA.obj + -del ..\..\..\..\..\temp\cmr\ta_LINEARREG.obj + -del ..\..\..\..\..\temp\cmr\ta_LINEARREG_ANGLE.obj + -del ..\..\..\..\..\temp\cmr\ta_LINEARREG_INTERCEPT.obj + -del ..\..\..\..\..\temp\cmr\ta_LINEARREG_SLOPE.obj + -del ..\..\..\..\..\temp\cmr\ta_LN.obj + -del ..\..\..\..\..\temp\cmr\ta_LOG10.obj + -del ..\..\..\..\..\temp\cmr\ta_MA.obj + -del ..\..\..\..\..\temp\cmr\ta_MACD.obj + -del ..\..\..\..\..\temp\cmr\ta_MACDEXT.obj + -del ..\..\..\..\..\temp\cmr\ta_MACDFIX.obj + -del ..\..\..\..\..\temp\cmr\ta_MAMA.obj + -del ..\..\..\..\..\temp\cmr\ta_MAVP.obj + -del ..\..\..\..\..\temp\cmr\ta_MAX.obj + -del ..\..\..\..\..\temp\cmr\ta_MAXINDEX.obj + -del ..\..\..\..\..\temp\cmr\ta_MEDPRICE.obj + -del ..\..\..\..\..\temp\cmr\ta_MFI.obj + -del ..\..\..\..\..\temp\cmr\ta_MIDPOINT.obj + -del ..\..\..\..\..\temp\cmr\ta_MIDPRICE.obj + -del ..\..\..\..\..\temp\cmr\ta_MIN.obj + -del ..\..\..\..\..\temp\cmr\ta_MININDEX.obj + -del ..\..\..\..\..\temp\cmr\ta_MINMAX.obj + -del ..\..\..\..\..\temp\cmr\ta_MINMAXINDEX.obj + -del ..\..\..\..\..\temp\cmr\ta_MINUS_DI.obj + -del ..\..\..\..\..\temp\cmr\ta_MINUS_DM.obj + -del ..\..\..\..\..\temp\cmr\ta_MOM.obj + -del ..\..\..\..\..\temp\cmr\ta_MULT.obj + -del ..\..\..\..\..\temp\cmr\ta_NATR.obj + -del ..\..\..\..\..\temp\cmr\ta_OBV.obj + -del ..\..\..\..\..\temp\cmr\ta_PLUS_DI.obj + -del ..\..\..\..\..\temp\cmr\ta_PLUS_DM.obj + -del ..\..\..\..\..\temp\cmr\ta_PPO.obj + -del ..\..\..\..\..\temp\cmr\ta_ROC.obj + -del ..\..\..\..\..\temp\cmr\ta_ROCP.obj + -del ..\..\..\..\..\temp\cmr\ta_ROCR.obj + -del ..\..\..\..\..\temp\cmr\ta_ROCR100.obj + -del ..\..\..\..\..\temp\cmr\ta_RSI.obj + -del ..\..\..\..\..\temp\cmr\ta_SAR.obj + -del ..\..\..\..\..\temp\cmr\ta_SAREXT.obj + -del ..\..\..\..\..\temp\cmr\ta_SIN.obj + -del ..\..\..\..\..\temp\cmr\ta_SINH.obj + -del ..\..\..\..\..\temp\cmr\ta_SMA.obj + -del ..\..\..\..\..\temp\cmr\ta_SQRT.obj + -del ..\..\..\..\..\temp\cmr\ta_STDDEV.obj + -del ..\..\..\..\..\temp\cmr\ta_STOCH.obj + -del ..\..\..\..\..\temp\cmr\ta_STOCHF.obj + -del ..\..\..\..\..\temp\cmr\ta_STOCHRSI.obj + -del ..\..\..\..\..\temp\cmr\ta_SUB.obj + -del ..\..\..\..\..\temp\cmr\ta_SUM.obj + -del ..\..\..\..\..\temp\cmr\ta_T3.obj + -del ..\..\..\..\..\temp\cmr\ta_TAN.obj + -del ..\..\..\..\..\temp\cmr\ta_TANH.obj + -del ..\..\..\..\..\temp\cmr\ta_TEMA.obj + -del ..\..\..\..\..\temp\cmr\ta_TRANGE.obj + -del ..\..\..\..\..\temp\cmr\ta_TRIMA.obj + -del ..\..\..\..\..\temp\cmr\ta_TRIX.obj + -del ..\..\..\..\..\temp\cmr\ta_TSF.obj + -del ..\..\..\..\..\temp\cmr\ta_TYPPRICE.obj + -del ..\..\..\..\..\temp\cmr\ta_ULTOSC.obj + -del ..\..\..\..\..\temp\cmr\ta_VAR.obj + -del ..\..\..\..\..\temp\cmr\ta_WCLPRICE.obj + -del ..\..\..\..\..\temp\cmr\ta_WILLR.obj + -del ..\..\..\..\..\temp\cmr\ta_WMA.obj + -del $(TARGET) + -del ../../../../../bin/*.map + -del ../../../../../bin/*._xe + -del ../../../../../bin/*.tds + -del ../../../../../bin/*.pdb + -del ../../../../../bin/*.pbo + -del ../../../../../bin/*.pbi + -del ../../../../../bin/*.pbt + -del ../../../../../temp/cmr/*.pch + -del ../../../../../temp/cmr/*.idb + -del ../../../../../temp/cmr/ta_func/*.pch + -del ../../../../../temp/cmr/ta_func/*.idb + -del ../../../../../temp/cmr/ta_func/*.obj + +####### Compile + +..\..\..\..\..\temp\cmr\ta_utility.obj: ..\..\..\..\..\src\ta_func\ta_utility.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_utility.obj ..\..\..\..\..\src\ta_func\ta_utility.c + +..\..\..\..\..\temp\cmr\ta_ACOS.obj: ..\..\..\..\..\src\ta_func\ta_ACOS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_ACOS.obj ..\..\..\..\..\src\ta_func\ta_ACOS.c + +..\..\..\..\..\temp\cmr\ta_AD.obj: ..\..\..\..\..\src\ta_func\ta_AD.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_AD.obj ..\..\..\..\..\src\ta_func\ta_AD.c + +..\..\..\..\..\temp\cmr\ta_ADD.obj: ..\..\..\..\..\src\ta_func\ta_ADD.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_ADD.obj ..\..\..\..\..\src\ta_func\ta_ADD.c + +..\..\..\..\..\temp\cmr\ta_ADOSC.obj: ..\..\..\..\..\src\ta_func\ta_ADOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_ADOSC.obj ..\..\..\..\..\src\ta_func\ta_ADOSC.c + +..\..\..\..\..\temp\cmr\ta_ADX.obj: ..\..\..\..\..\src\ta_func\ta_ADX.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_ADX.obj ..\..\..\..\..\src\ta_func\ta_ADX.c + +..\..\..\..\..\temp\cmr\ta_ADXR.obj: ..\..\..\..\..\src\ta_func\ta_ADXR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_ADXR.obj ..\..\..\..\..\src\ta_func\ta_ADXR.c + +..\..\..\..\..\temp\cmr\ta_APO.obj: ..\..\..\..\..\src\ta_func\ta_APO.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_APO.obj ..\..\..\..\..\src\ta_func\ta_APO.c + +..\..\..\..\..\temp\cmr\ta_AROON.obj: ..\..\..\..\..\src\ta_func\ta_AROON.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_AROON.obj ..\..\..\..\..\src\ta_func\ta_AROON.c + +..\..\..\..\..\temp\cmr\ta_AROONOSC.obj: ..\..\..\..\..\src\ta_func\ta_AROONOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_AROONOSC.obj ..\..\..\..\..\src\ta_func\ta_AROONOSC.c + +..\..\..\..\..\temp\cmr\ta_ASIN.obj: ..\..\..\..\..\src\ta_func\ta_ASIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_ASIN.obj ..\..\..\..\..\src\ta_func\ta_ASIN.c + +..\..\..\..\..\temp\cmr\ta_ATAN.obj: ..\..\..\..\..\src\ta_func\ta_ATAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_ATAN.obj ..\..\..\..\..\src\ta_func\ta_ATAN.c + +..\..\..\..\..\temp\cmr\ta_ATR.obj: ..\..\..\..\..\src\ta_func\ta_ATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_ATR.obj ..\..\..\..\..\src\ta_func\ta_ATR.c + +..\..\..\..\..\temp\cmr\ta_AVGPRICE.obj: ..\..\..\..\..\src\ta_func\ta_AVGPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_AVGPRICE.obj ..\..\..\..\..\src\ta_func\ta_AVGPRICE.c + +..\..\..\..\..\temp\cmr\ta_BBANDS.obj: ..\..\..\..\..\src\ta_func\ta_BBANDS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_BBANDS.obj ..\..\..\..\..\src\ta_func\ta_BBANDS.c + +..\..\..\..\..\temp\cmr\ta_BETA.obj: ..\..\..\..\..\src\ta_func\ta_BETA.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_BETA.obj ..\..\..\..\..\src\ta_func\ta_BETA.c + +..\..\..\..\..\temp\cmr\ta_BOP.obj: ..\..\..\..\..\src\ta_func\ta_BOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_BOP.obj ..\..\..\..\..\src\ta_func\ta_BOP.c + +..\..\..\..\..\temp\cmr\ta_CCI.obj: ..\..\..\..\..\src\ta_func\ta_CCI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CCI.obj ..\..\..\..\..\src\ta_func\ta_CCI.c + +..\..\..\..\..\temp\cmr\ta_CDL2CROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDL2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CDL2CROWS.obj ..\..\..\..\..\src\ta_func\ta_CDL2CROWS.c + +..\..\..\..\..\temp\cmr\ta_CDL3BLACKCROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDL3BLACKCROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CDL3BLACKCROWS.obj ..\..\..\..\..\src\ta_func\ta_CDL3BLACKCROWS.c + +..\..\..\..\..\temp\cmr\ta_CDL3INSIDE.obj: ..\..\..\..\..\src\ta_func\ta_CDL3INSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CDL3INSIDE.obj ..\..\..\..\..\src\ta_func\ta_CDL3INSIDE.c + +..\..\..\..\..\temp\cmr\ta_CDL3LINESTRIKE.obj: ..\..\..\..\..\src\ta_func\ta_CDL3LINESTRIKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CDL3LINESTRIKE.obj ..\..\..\..\..\src\ta_func\ta_CDL3LINESTRIKE.c + +..\..\..\..\..\temp\cmr\ta_CDL3OUTSIDE.obj: ..\..\..\..\..\src\ta_func\ta_CDL3OUTSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CDL3OUTSIDE.obj ..\..\..\..\..\src\ta_func\ta_CDL3OUTSIDE.c + +..\..\..\..\..\temp\cmr\ta_CDL3STARSINSOUTH.obj: ..\..\..\..\..\src\ta_func\ta_CDL3STARSINSOUTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CDL3STARSINSOUTH.obj ..\..\..\..\..\src\ta_func\ta_CDL3STARSINSOUTH.c + +..\..\..\..\..\temp\cmr\ta_CDL3WHITESOLDIERS.obj: ..\..\..\..\..\src\ta_func\ta_CDL3WHITESOLDIERS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CDL3WHITESOLDIERS.obj ..\..\..\..\..\src\ta_func\ta_CDL3WHITESOLDIERS.c + +..\..\..\..\..\temp\cmr\ta_CDLABANDONEDBABY.obj: ..\..\..\..\..\src\ta_func\ta_CDLABANDONEDBABY.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CDLABANDONEDBABY.obj ..\..\..\..\..\src\ta_func\ta_CDLABANDONEDBABY.c + +..\..\..\..\..\temp\cmr\ta_CDLADVANCEBLOCK.obj: ..\..\..\..\..\src\ta_func\ta_CDLADVANCEBLOCK.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CDLADVANCEBLOCK.obj ..\..\..\..\..\src\ta_func\ta_CDLADVANCEBLOCK.c + +..\..\..\..\..\temp\cmr\ta_CDLBELTHOLD.obj: ..\..\..\..\..\src\ta_func\ta_CDLBELTHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CDLBELTHOLD.obj ..\..\..\..\..\src\ta_func\ta_CDLBELTHOLD.c + +..\..\..\..\..\temp\cmr\ta_CDLBREAKAWAY.obj: ..\..\..\..\..\src\ta_func\ta_CDLBREAKAWAY.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CDLBREAKAWAY.obj ..\..\..\..\..\src\ta_func\ta_CDLBREAKAWAY.c + +..\..\..\..\..\temp\cmr\ta_CDLCLOSINGMARUBOZU.obj: ..\..\..\..\..\src\ta_func\ta_CDLCLOSINGMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CDLCLOSINGMARUBOZU.obj ..\..\..\..\..\src\ta_func\ta_CDLCLOSINGMARUBOZU.c + +..\..\..\..\..\temp\cmr\ta_CDLCONCEALBABYSWALL.obj: ..\..\..\..\..\src\ta_func\ta_CDLCONCEALBABYSWALL.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CDLCONCEALBABYSWALL.obj ..\..\..\..\..\src\ta_func\ta_CDLCONCEALBABYSWALL.c + +..\..\..\..\..\temp\cmr\ta_CDLCOUNTERATTACK.obj: ..\..\..\..\..\src\ta_func\ta_CDLCOUNTERATTACK.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CDLCOUNTERATTACK.obj ..\..\..\..\..\src\ta_func\ta_CDLCOUNTERATTACK.c + +..\..\..\..\..\temp\cmr\ta_CDLDARKCLOUDCOVER.obj: ..\..\..\..\..\src\ta_func\ta_CDLDARKCLOUDCOVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CDLDARKCLOUDCOVER.obj ..\..\..\..\..\src\ta_func\ta_CDLDARKCLOUDCOVER.c + +..\..\..\..\..\temp\cmr\ta_CDLDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CDLDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLDOJI.c + +..\..\..\..\..\temp\cmr\ta_CDLDOJISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CDLDOJISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLDOJISTAR.c + +..\..\..\..\..\temp\cmr\ta_CDLDRAGONFLYDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLDRAGONFLYDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CDLDRAGONFLYDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLDRAGONFLYDOJI.c + +..\..\..\..\..\temp\cmr\ta_CDLENGULFING.obj: ..\..\..\..\..\src\ta_func\ta_CDLENGULFING.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CDLENGULFING.obj ..\..\..\..\..\src\ta_func\ta_CDLENGULFING.c + +..\..\..\..\..\temp\cmr\ta_CDLEVENINGDOJISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLEVENINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CDLEVENINGDOJISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLEVENINGDOJISTAR.c + +..\..\..\..\..\temp\cmr\ta_CDLEVENINGSTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLEVENINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CDLEVENINGSTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLEVENINGSTAR.c + +..\..\..\..\..\temp\cmr\ta_CDLGAPSIDESIDEWHITE.obj: ..\..\..\..\..\src\ta_func\ta_CDLGAPSIDESIDEWHITE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CDLGAPSIDESIDEWHITE.obj ..\..\..\..\..\src\ta_func\ta_CDLGAPSIDESIDEWHITE.c + +..\..\..\..\..\temp\cmr\ta_CDLGRAVESTONEDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLGRAVESTONEDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CDLGRAVESTONEDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLGRAVESTONEDOJI.c + +..\..\..\..\..\temp\cmr\ta_CDLHAMMER.obj: ..\..\..\..\..\src\ta_func\ta_CDLHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CDLHAMMER.obj ..\..\..\..\..\src\ta_func\ta_CDLHAMMER.c + +..\..\..\..\..\temp\cmr\ta_CDLHANGINGMAN.obj: ..\..\..\..\..\src\ta_func\ta_CDLHANGINGMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CDLHANGINGMAN.obj ..\..\..\..\..\src\ta_func\ta_CDLHANGINGMAN.c + +..\..\..\..\..\temp\cmr\ta_CDLHARAMI.obj: ..\..\..\..\..\src\ta_func\ta_CDLHARAMI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CDLHARAMI.obj ..\..\..\..\..\src\ta_func\ta_CDLHARAMI.c + +..\..\..\..\..\temp\cmr\ta_CDLHARAMICROSS.obj: ..\..\..\..\..\src\ta_func\ta_CDLHARAMICROSS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CDLHARAMICROSS.obj ..\..\..\..\..\src\ta_func\ta_CDLHARAMICROSS.c + +..\..\..\..\..\temp\cmr\ta_CDLHIGHWAVE.obj: ..\..\..\..\..\src\ta_func\ta_CDLHIGHWAVE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CDLHIGHWAVE.obj ..\..\..\..\..\src\ta_func\ta_CDLHIGHWAVE.c + +..\..\..\..\..\temp\cmr\ta_CDLHIKKAKE.obj: ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CDLHIKKAKE.obj ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKE.c + +..\..\..\..\..\temp\cmr\ta_CDLHIKKAKEMOD.obj: ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKEMOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CDLHIKKAKEMOD.obj ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKEMOD.c + +..\..\..\..\..\temp\cmr\ta_CDLHOMINGPIGEON.obj: ..\..\..\..\..\src\ta_func\ta_CDLHOMINGPIGEON.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CDLHOMINGPIGEON.obj ..\..\..\..\..\src\ta_func\ta_CDLHOMINGPIGEON.c + +..\..\..\..\..\temp\cmr\ta_CDLIDENTICAL3CROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDLIDENTICAL3CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CDLIDENTICAL3CROWS.obj ..\..\..\..\..\src\ta_func\ta_CDLIDENTICAL3CROWS.c + +..\..\..\..\..\temp\cmr\ta_CDLINNECK.obj: ..\..\..\..\..\src\ta_func\ta_CDLINNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CDLINNECK.obj ..\..\..\..\..\src\ta_func\ta_CDLINNECK.c + +..\..\..\..\..\temp\cmr\ta_CDLINVERTEDHAMMER.obj: ..\..\..\..\..\src\ta_func\ta_CDLINVERTEDHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CDLINVERTEDHAMMER.obj ..\..\..\..\..\src\ta_func\ta_CDLINVERTEDHAMMER.c + +..\..\..\..\..\temp\cmr\ta_CDLKICKING.obj: ..\..\..\..\..\src\ta_func\ta_CDLKICKING.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CDLKICKING.obj ..\..\..\..\..\src\ta_func\ta_CDLKICKING.c + +..\..\..\..\..\temp\cmr\ta_CDLKICKINGBYLENGTH.obj: ..\..\..\..\..\src\ta_func\ta_CDLKICKINGBYLENGTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CDLKICKINGBYLENGTH.obj ..\..\..\..\..\src\ta_func\ta_CDLKICKINGBYLENGTH.c + +..\..\..\..\..\temp\cmr\ta_CDLLADDERBOTTOM.obj: ..\..\..\..\..\src\ta_func\ta_CDLLADDERBOTTOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CDLLADDERBOTTOM.obj ..\..\..\..\..\src\ta_func\ta_CDLLADDERBOTTOM.c + +..\..\..\..\..\temp\cmr\ta_CDLLONGLEGGEDDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLLONGLEGGEDDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CDLLONGLEGGEDDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLLONGLEGGEDDOJI.c + +..\..\..\..\..\temp\cmr\ta_CDLLONGLINE.obj: ..\..\..\..\..\src\ta_func\ta_CDLLONGLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CDLLONGLINE.obj ..\..\..\..\..\src\ta_func\ta_CDLLONGLINE.c + +..\..\..\..\..\temp\cmr\ta_CDLMARUBOZU.obj: ..\..\..\..\..\src\ta_func\ta_CDLMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CDLMARUBOZU.obj ..\..\..\..\..\src\ta_func\ta_CDLMARUBOZU.c + +..\..\..\..\..\temp\cmr\ta_CDLMATCHINGLOW.obj: ..\..\..\..\..\src\ta_func\ta_CDLMATCHINGLOW.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CDLMATCHINGLOW.obj ..\..\..\..\..\src\ta_func\ta_CDLMATCHINGLOW.c + +..\..\..\..\..\temp\cmr\ta_CDLMATHOLD.obj: ..\..\..\..\..\src\ta_func\ta_CDLMATHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CDLMATHOLD.obj ..\..\..\..\..\src\ta_func\ta_CDLMATHOLD.c + +..\..\..\..\..\temp\cmr\ta_CDLMORNINGDOJISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLMORNINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CDLMORNINGDOJISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLMORNINGDOJISTAR.c + +..\..\..\..\..\temp\cmr\ta_CDLMORNINGSTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLMORNINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CDLMORNINGSTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLMORNINGSTAR.c + +..\..\..\..\..\temp\cmr\ta_CDLONNECK.obj: ..\..\..\..\..\src\ta_func\ta_CDLONNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CDLONNECK.obj ..\..\..\..\..\src\ta_func\ta_CDLONNECK.c + +..\..\..\..\..\temp\cmr\ta_CDLPIERCING.obj: ..\..\..\..\..\src\ta_func\ta_CDLPIERCING.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CDLPIERCING.obj ..\..\..\..\..\src\ta_func\ta_CDLPIERCING.c + +..\..\..\..\..\temp\cmr\ta_CDLRICKSHAWMAN.obj: ..\..\..\..\..\src\ta_func\ta_CDLRICKSHAWMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CDLRICKSHAWMAN.obj ..\..\..\..\..\src\ta_func\ta_CDLRICKSHAWMAN.c + +..\..\..\..\..\temp\cmr\ta_CDLRISEFALL3METHODS.obj: ..\..\..\..\..\src\ta_func\ta_CDLRISEFALL3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CDLRISEFALL3METHODS.obj ..\..\..\..\..\src\ta_func\ta_CDLRISEFALL3METHODS.c + +..\..\..\..\..\temp\cmr\ta_CDLSEPARATINGLINES.obj: ..\..\..\..\..\src\ta_func\ta_CDLSEPARATINGLINES.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CDLSEPARATINGLINES.obj ..\..\..\..\..\src\ta_func\ta_CDLSEPARATINGLINES.c + +..\..\..\..\..\temp\cmr\ta_CDLSHOOTINGSTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLSHOOTINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CDLSHOOTINGSTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLSHOOTINGSTAR.c + +..\..\..\..\..\temp\cmr\ta_CDLSHORTLINE.obj: ..\..\..\..\..\src\ta_func\ta_CDLSHORTLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CDLSHORTLINE.obj ..\..\..\..\..\src\ta_func\ta_CDLSHORTLINE.c + +..\..\..\..\..\temp\cmr\ta_CDLSPINNINGTOP.obj: ..\..\..\..\..\src\ta_func\ta_CDLSPINNINGTOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CDLSPINNINGTOP.obj ..\..\..\..\..\src\ta_func\ta_CDLSPINNINGTOP.c + +..\..\..\..\..\temp\cmr\ta_CDLSTALLEDPATTERN.obj: ..\..\..\..\..\src\ta_func\ta_CDLSTALLEDPATTERN.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CDLSTALLEDPATTERN.obj ..\..\..\..\..\src\ta_func\ta_CDLSTALLEDPATTERN.c + +..\..\..\..\..\temp\cmr\ta_CDLSTICKSANDWICH.obj: ..\..\..\..\..\src\ta_func\ta_CDLSTICKSANDWICH.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CDLSTICKSANDWICH.obj ..\..\..\..\..\src\ta_func\ta_CDLSTICKSANDWICH.c + +..\..\..\..\..\temp\cmr\ta_CDLTAKURI.obj: ..\..\..\..\..\src\ta_func\ta_CDLTAKURI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CDLTAKURI.obj ..\..\..\..\..\src\ta_func\ta_CDLTAKURI.c + +..\..\..\..\..\temp\cmr\ta_CDLTASUKIGAP.obj: ..\..\..\..\..\src\ta_func\ta_CDLTASUKIGAP.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CDLTASUKIGAP.obj ..\..\..\..\..\src\ta_func\ta_CDLTASUKIGAP.c + +..\..\..\..\..\temp\cmr\ta_CDLTHRUSTING.obj: ..\..\..\..\..\src\ta_func\ta_CDLTHRUSTING.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CDLTHRUSTING.obj ..\..\..\..\..\src\ta_func\ta_CDLTHRUSTING.c + +..\..\..\..\..\temp\cmr\ta_CDLTRISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLTRISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CDLTRISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLTRISTAR.c + +..\..\..\..\..\temp\cmr\ta_CDLUNIQUE3RIVER.obj: ..\..\..\..\..\src\ta_func\ta_CDLUNIQUE3RIVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CDLUNIQUE3RIVER.obj ..\..\..\..\..\src\ta_func\ta_CDLUNIQUE3RIVER.c + +..\..\..\..\..\temp\cmr\ta_CDLUPSIDEGAP2CROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDLUPSIDEGAP2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CDLUPSIDEGAP2CROWS.obj ..\..\..\..\..\src\ta_func\ta_CDLUPSIDEGAP2CROWS.c + +..\..\..\..\..\temp\cmr\ta_CDLXSIDEGAP3METHODS.obj: ..\..\..\..\..\src\ta_func\ta_CDLXSIDEGAP3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CDLXSIDEGAP3METHODS.obj ..\..\..\..\..\src\ta_func\ta_CDLXSIDEGAP3METHODS.c + +..\..\..\..\..\temp\cmr\ta_CEIL.obj: ..\..\..\..\..\src\ta_func\ta_CEIL.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CEIL.obj ..\..\..\..\..\src\ta_func\ta_CEIL.c + +..\..\..\..\..\temp\cmr\ta_CMO.obj: ..\..\..\..\..\src\ta_func\ta_CMO.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CMO.obj ..\..\..\..\..\src\ta_func\ta_CMO.c + +..\..\..\..\..\temp\cmr\ta_CORREL.obj: ..\..\..\..\..\src\ta_func\ta_CORREL.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CORREL.obj ..\..\..\..\..\src\ta_func\ta_CORREL.c + +..\..\..\..\..\temp\cmr\ta_COS.obj: ..\..\..\..\..\src\ta_func\ta_COS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_COS.obj ..\..\..\..\..\src\ta_func\ta_COS.c + +..\..\..\..\..\temp\cmr\ta_COSH.obj: ..\..\..\..\..\src\ta_func\ta_COSH.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_COSH.obj ..\..\..\..\..\src\ta_func\ta_COSH.c + +..\..\..\..\..\temp\cmr\ta_DEMA.obj: ..\..\..\..\..\src\ta_func\ta_DEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_DEMA.obj ..\..\..\..\..\src\ta_func\ta_DEMA.c + +..\..\..\..\..\temp\cmr\ta_DIV.obj: ..\..\..\..\..\src\ta_func\ta_DIV.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_DIV.obj ..\..\..\..\..\src\ta_func\ta_DIV.c + +..\..\..\..\..\temp\cmr\ta_DX.obj: ..\..\..\..\..\src\ta_func\ta_DX.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_DX.obj ..\..\..\..\..\src\ta_func\ta_DX.c + +..\..\..\..\..\temp\cmr\ta_EMA.obj: ..\..\..\..\..\src\ta_func\ta_EMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_EMA.obj ..\..\..\..\..\src\ta_func\ta_EMA.c + +..\..\..\..\..\temp\cmr\ta_EXP.obj: ..\..\..\..\..\src\ta_func\ta_EXP.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_EXP.obj ..\..\..\..\..\src\ta_func\ta_EXP.c + +..\..\..\..\..\temp\cmr\ta_FLOOR.obj: ..\..\..\..\..\src\ta_func\ta_FLOOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_FLOOR.obj ..\..\..\..\..\src\ta_func\ta_FLOOR.c + +..\..\..\..\..\temp\cmr\ta_HT_DCPERIOD.obj: ..\..\..\..\..\src\ta_func\ta_HT_DCPERIOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_HT_DCPERIOD.obj ..\..\..\..\..\src\ta_func\ta_HT_DCPERIOD.c + +..\..\..\..\..\temp\cmr\ta_HT_DCPHASE.obj: ..\..\..\..\..\src\ta_func\ta_HT_DCPHASE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_HT_DCPHASE.obj ..\..\..\..\..\src\ta_func\ta_HT_DCPHASE.c + +..\..\..\..\..\temp\cmr\ta_HT_PHASOR.obj: ..\..\..\..\..\src\ta_func\ta_HT_PHASOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_HT_PHASOR.obj ..\..\..\..\..\src\ta_func\ta_HT_PHASOR.c + +..\..\..\..\..\temp\cmr\ta_HT_SINE.obj: ..\..\..\..\..\src\ta_func\ta_HT_SINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_HT_SINE.obj ..\..\..\..\..\src\ta_func\ta_HT_SINE.c + +..\..\..\..\..\temp\cmr\ta_HT_TRENDLINE.obj: ..\..\..\..\..\src\ta_func\ta_HT_TRENDLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_HT_TRENDLINE.obj ..\..\..\..\..\src\ta_func\ta_HT_TRENDLINE.c + +..\..\..\..\..\temp\cmr\ta_HT_TRENDMODE.obj: ..\..\..\..\..\src\ta_func\ta_HT_TRENDMODE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_HT_TRENDMODE.obj ..\..\..\..\..\src\ta_func\ta_HT_TRENDMODE.c + +..\..\..\..\..\temp\cmr\ta_KAMA.obj: ..\..\..\..\..\src\ta_func\ta_KAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_KAMA.obj ..\..\..\..\..\src\ta_func\ta_KAMA.c + +..\..\..\..\..\temp\cmr\ta_LINEARREG.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_LINEARREG.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG.c + +..\..\..\..\..\temp\cmr\ta_LINEARREG_ANGLE.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG_ANGLE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_LINEARREG_ANGLE.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG_ANGLE.c + +..\..\..\..\..\temp\cmr\ta_LINEARREG_INTERCEPT.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG_INTERCEPT.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_LINEARREG_INTERCEPT.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG_INTERCEPT.c + +..\..\..\..\..\temp\cmr\ta_LINEARREG_SLOPE.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG_SLOPE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_LINEARREG_SLOPE.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG_SLOPE.c + +..\..\..\..\..\temp\cmr\ta_LN.obj: ..\..\..\..\..\src\ta_func\ta_LN.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_LN.obj ..\..\..\..\..\src\ta_func\ta_LN.c + +..\..\..\..\..\temp\cmr\ta_LOG10.obj: ..\..\..\..\..\src\ta_func\ta_LOG10.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_LOG10.obj ..\..\..\..\..\src\ta_func\ta_LOG10.c + +..\..\..\..\..\temp\cmr\ta_MA.obj: ..\..\..\..\..\src\ta_func\ta_MA.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_MA.obj ..\..\..\..\..\src\ta_func\ta_MA.c + +..\..\..\..\..\temp\cmr\ta_MACD.obj: ..\..\..\..\..\src\ta_func\ta_MACD.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_MACD.obj ..\..\..\..\..\src\ta_func\ta_MACD.c + +..\..\..\..\..\temp\cmr\ta_MACDEXT.obj: ..\..\..\..\..\src\ta_func\ta_MACDEXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_MACDEXT.obj ..\..\..\..\..\src\ta_func\ta_MACDEXT.c + +..\..\..\..\..\temp\cmr\ta_MACDFIX.obj: ..\..\..\..\..\src\ta_func\ta_MACDFIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_MACDFIX.obj ..\..\..\..\..\src\ta_func\ta_MACDFIX.c + +..\..\..\..\..\temp\cmr\ta_MAMA.obj: ..\..\..\..\..\src\ta_func\ta_MAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_MAMA.obj ..\..\..\..\..\src\ta_func\ta_MAMA.c + +..\..\..\..\..\temp\cmr\ta_MAVP.obj: ..\..\..\..\..\src\ta_func\ta_MAVP.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_MAVP.obj ..\..\..\..\..\src\ta_func\ta_MAVP.c + +..\..\..\..\..\temp\cmr\ta_MAX.obj: ..\..\..\..\..\src\ta_func\ta_MAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_MAX.obj ..\..\..\..\..\src\ta_func\ta_MAX.c + +..\..\..\..\..\temp\cmr\ta_MAXINDEX.obj: ..\..\..\..\..\src\ta_func\ta_MAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_MAXINDEX.obj ..\..\..\..\..\src\ta_func\ta_MAXINDEX.c + +..\..\..\..\..\temp\cmr\ta_MEDPRICE.obj: ..\..\..\..\..\src\ta_func\ta_MEDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_MEDPRICE.obj ..\..\..\..\..\src\ta_func\ta_MEDPRICE.c + +..\..\..\..\..\temp\cmr\ta_MFI.obj: ..\..\..\..\..\src\ta_func\ta_MFI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_MFI.obj ..\..\..\..\..\src\ta_func\ta_MFI.c + +..\..\..\..\..\temp\cmr\ta_MIDPOINT.obj: ..\..\..\..\..\src\ta_func\ta_MIDPOINT.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_MIDPOINT.obj ..\..\..\..\..\src\ta_func\ta_MIDPOINT.c + +..\..\..\..\..\temp\cmr\ta_MIDPRICE.obj: ..\..\..\..\..\src\ta_func\ta_MIDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_MIDPRICE.obj ..\..\..\..\..\src\ta_func\ta_MIDPRICE.c + +..\..\..\..\..\temp\cmr\ta_MIN.obj: ..\..\..\..\..\src\ta_func\ta_MIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_MIN.obj ..\..\..\..\..\src\ta_func\ta_MIN.c + +..\..\..\..\..\temp\cmr\ta_MININDEX.obj: ..\..\..\..\..\src\ta_func\ta_MININDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_MININDEX.obj ..\..\..\..\..\src\ta_func\ta_MININDEX.c + +..\..\..\..\..\temp\cmr\ta_MINMAX.obj: ..\..\..\..\..\src\ta_func\ta_MINMAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_MINMAX.obj ..\..\..\..\..\src\ta_func\ta_MINMAX.c + +..\..\..\..\..\temp\cmr\ta_MINMAXINDEX.obj: ..\..\..\..\..\src\ta_func\ta_MINMAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_MINMAXINDEX.obj ..\..\..\..\..\src\ta_func\ta_MINMAXINDEX.c + +..\..\..\..\..\temp\cmr\ta_MINUS_DI.obj: ..\..\..\..\..\src\ta_func\ta_MINUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_MINUS_DI.obj ..\..\..\..\..\src\ta_func\ta_MINUS_DI.c + +..\..\..\..\..\temp\cmr\ta_MINUS_DM.obj: ..\..\..\..\..\src\ta_func\ta_MINUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_MINUS_DM.obj ..\..\..\..\..\src\ta_func\ta_MINUS_DM.c + +..\..\..\..\..\temp\cmr\ta_MOM.obj: ..\..\..\..\..\src\ta_func\ta_MOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_MOM.obj ..\..\..\..\..\src\ta_func\ta_MOM.c + +..\..\..\..\..\temp\cmr\ta_MULT.obj: ..\..\..\..\..\src\ta_func\ta_MULT.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_MULT.obj ..\..\..\..\..\src\ta_func\ta_MULT.c + +..\..\..\..\..\temp\cmr\ta_NATR.obj: ..\..\..\..\..\src\ta_func\ta_NATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_NATR.obj ..\..\..\..\..\src\ta_func\ta_NATR.c + +..\..\..\..\..\temp\cmr\ta_OBV.obj: ..\..\..\..\..\src\ta_func\ta_OBV.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_OBV.obj ..\..\..\..\..\src\ta_func\ta_OBV.c + +..\..\..\..\..\temp\cmr\ta_PLUS_DI.obj: ..\..\..\..\..\src\ta_func\ta_PLUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_PLUS_DI.obj ..\..\..\..\..\src\ta_func\ta_PLUS_DI.c + +..\..\..\..\..\temp\cmr\ta_PLUS_DM.obj: ..\..\..\..\..\src\ta_func\ta_PLUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_PLUS_DM.obj ..\..\..\..\..\src\ta_func\ta_PLUS_DM.c + +..\..\..\..\..\temp\cmr\ta_PPO.obj: ..\..\..\..\..\src\ta_func\ta_PPO.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_PPO.obj ..\..\..\..\..\src\ta_func\ta_PPO.c + +..\..\..\..\..\temp\cmr\ta_ROC.obj: ..\..\..\..\..\src\ta_func\ta_ROC.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_ROC.obj ..\..\..\..\..\src\ta_func\ta_ROC.c + +..\..\..\..\..\temp\cmr\ta_ROCP.obj: ..\..\..\..\..\src\ta_func\ta_ROCP.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_ROCP.obj ..\..\..\..\..\src\ta_func\ta_ROCP.c + +..\..\..\..\..\temp\cmr\ta_ROCR.obj: ..\..\..\..\..\src\ta_func\ta_ROCR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_ROCR.obj ..\..\..\..\..\src\ta_func\ta_ROCR.c + +..\..\..\..\..\temp\cmr\ta_ROCR100.obj: ..\..\..\..\..\src\ta_func\ta_ROCR100.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_ROCR100.obj ..\..\..\..\..\src\ta_func\ta_ROCR100.c + +..\..\..\..\..\temp\cmr\ta_RSI.obj: ..\..\..\..\..\src\ta_func\ta_RSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_RSI.obj ..\..\..\..\..\src\ta_func\ta_RSI.c + +..\..\..\..\..\temp\cmr\ta_SAR.obj: ..\..\..\..\..\src\ta_func\ta_SAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_SAR.obj ..\..\..\..\..\src\ta_func\ta_SAR.c + +..\..\..\..\..\temp\cmr\ta_SAREXT.obj: ..\..\..\..\..\src\ta_func\ta_SAREXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_SAREXT.obj ..\..\..\..\..\src\ta_func\ta_SAREXT.c + +..\..\..\..\..\temp\cmr\ta_SIN.obj: ..\..\..\..\..\src\ta_func\ta_SIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_SIN.obj ..\..\..\..\..\src\ta_func\ta_SIN.c + +..\..\..\..\..\temp\cmr\ta_SINH.obj: ..\..\..\..\..\src\ta_func\ta_SINH.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_SINH.obj ..\..\..\..\..\src\ta_func\ta_SINH.c + +..\..\..\..\..\temp\cmr\ta_SMA.obj: ..\..\..\..\..\src\ta_func\ta_SMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_SMA.obj ..\..\..\..\..\src\ta_func\ta_SMA.c + +..\..\..\..\..\temp\cmr\ta_SQRT.obj: ..\..\..\..\..\src\ta_func\ta_SQRT.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_SQRT.obj ..\..\..\..\..\src\ta_func\ta_SQRT.c + +..\..\..\..\..\temp\cmr\ta_STDDEV.obj: ..\..\..\..\..\src\ta_func\ta_STDDEV.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_STDDEV.obj ..\..\..\..\..\src\ta_func\ta_STDDEV.c + +..\..\..\..\..\temp\cmr\ta_STOCH.obj: ..\..\..\..\..\src\ta_func\ta_STOCH.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_STOCH.obj ..\..\..\..\..\src\ta_func\ta_STOCH.c + +..\..\..\..\..\temp\cmr\ta_STOCHF.obj: ..\..\..\..\..\src\ta_func\ta_STOCHF.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_STOCHF.obj ..\..\..\..\..\src\ta_func\ta_STOCHF.c + +..\..\..\..\..\temp\cmr\ta_STOCHRSI.obj: ..\..\..\..\..\src\ta_func\ta_STOCHRSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_STOCHRSI.obj ..\..\..\..\..\src\ta_func\ta_STOCHRSI.c + +..\..\..\..\..\temp\cmr\ta_SUB.obj: ..\..\..\..\..\src\ta_func\ta_SUB.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_SUB.obj ..\..\..\..\..\src\ta_func\ta_SUB.c + +..\..\..\..\..\temp\cmr\ta_SUM.obj: ..\..\..\..\..\src\ta_func\ta_SUM.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_SUM.obj ..\..\..\..\..\src\ta_func\ta_SUM.c + +..\..\..\..\..\temp\cmr\ta_T3.obj: ..\..\..\..\..\src\ta_func\ta_T3.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_T3.obj ..\..\..\..\..\src\ta_func\ta_T3.c + +..\..\..\..\..\temp\cmr\ta_TAN.obj: ..\..\..\..\..\src\ta_func\ta_TAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_TAN.obj ..\..\..\..\..\src\ta_func\ta_TAN.c + +..\..\..\..\..\temp\cmr\ta_TANH.obj: ..\..\..\..\..\src\ta_func\ta_TANH.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_TANH.obj ..\..\..\..\..\src\ta_func\ta_TANH.c + +..\..\..\..\..\temp\cmr\ta_TEMA.obj: ..\..\..\..\..\src\ta_func\ta_TEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_TEMA.obj ..\..\..\..\..\src\ta_func\ta_TEMA.c + +..\..\..\..\..\temp\cmr\ta_TRANGE.obj: ..\..\..\..\..\src\ta_func\ta_TRANGE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_TRANGE.obj ..\..\..\..\..\src\ta_func\ta_TRANGE.c + +..\..\..\..\..\temp\cmr\ta_TRIMA.obj: ..\..\..\..\..\src\ta_func\ta_TRIMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_TRIMA.obj ..\..\..\..\..\src\ta_func\ta_TRIMA.c + +..\..\..\..\..\temp\cmr\ta_TRIX.obj: ..\..\..\..\..\src\ta_func\ta_TRIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_TRIX.obj ..\..\..\..\..\src\ta_func\ta_TRIX.c + +..\..\..\..\..\temp\cmr\ta_TSF.obj: ..\..\..\..\..\src\ta_func\ta_TSF.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_TSF.obj ..\..\..\..\..\src\ta_func\ta_TSF.c + +..\..\..\..\..\temp\cmr\ta_TYPPRICE.obj: ..\..\..\..\..\src\ta_func\ta_TYPPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_TYPPRICE.obj ..\..\..\..\..\src\ta_func\ta_TYPPRICE.c + +..\..\..\..\..\temp\cmr\ta_ULTOSC.obj: ..\..\..\..\..\src\ta_func\ta_ULTOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_ULTOSC.obj ..\..\..\..\..\src\ta_func\ta_ULTOSC.c + +..\..\..\..\..\temp\cmr\ta_VAR.obj: ..\..\..\..\..\src\ta_func\ta_VAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_VAR.obj ..\..\..\..\..\src\ta_func\ta_VAR.c + +..\..\..\..\..\temp\cmr\ta_WCLPRICE.obj: ..\..\..\..\..\src\ta_func\ta_WCLPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_WCLPRICE.obj ..\..\..\..\..\src\ta_func\ta_WCLPRICE.c + +..\..\..\..\..\temp\cmr\ta_WILLR.obj: ..\..\..\..\..\src\ta_func\ta_WILLR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_WILLR.obj ..\..\..\..\..\src\ta_func\ta_WILLR.c + +..\..\..\..\..\temp\cmr\ta_WMA.obj: ..\..\..\..\..\src\ta_func\ta_WMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_WMA.obj ..\..\..\..\..\src\ta_func\ta_WMA.c + diff --git a/make/cmr/win32/msvc/ta_libc/Makefile b/make/cmr/win32/msvc/ta_libc/Makefile new file mode 100644 index 000000000..09d07a78d --- /dev/null +++ b/make/cmr/win32/msvc/ta_libc/Makefile @@ -0,0 +1,1237 @@ +############################################################################# +# Makefile for building ta_libc_cmr +# Generated by tmake; +# Project: ta_libc/ta_libc +# Template: lib +############################################################################# + +####### Compiler, tools and options + +CC = cl +CXX = cl +CFLAGS = -nologo -W3 -MT -O2 -DWIN32 -D_MBCS -D_LIB -DQT_THREAD_SUPPORT -DNO_DEBUG +CXXFLAGS= -nologo -W3 -MT -O2 -DWIN32 -D_MBCS -D_LIB -DQT_THREAD_SUPPORT -DNO_DEBUG +INCPATH = -I"..\..\..\..\..\src\ta_common" -I"..\..\..\..\..\include" -I"..\..\..\..\..\src\ta_abstract" -I"..\..\..\..\..\src\ta_abstract\tables" -I"..\..\..\..\..\src\ta_abstract\frames" -I"$(QTDIR)\include" +LIB = lib /NOLOGO +MOC = moc +UIC = uic + +ZIP = zip -r -9 + +####### Files + +HEADERS = +SOURCES = ..\..\..\..\..\src\ta_common\ta_global.c \ + ..\..\..\..\..\src\ta_common\ta_retcode.c \ + ..\..\..\..\..\src\ta_common\ta_version.c \ + ..\..\..\..\..\src\ta_abstract\ta_abstract.c \ + ..\..\..\..\..\src\ta_abstract\ta_def_ui.c \ + ..\..\..\..\..\src\ta_abstract\ta_func_api.c \ + ..\..\..\..\..\src\ta_abstract\ta_group_idx.c \ + ..\..\..\..\..\src\ta_abstract\frames\ta_frame.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_a.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_b.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_c.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_d.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_e.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_f.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_g.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_h.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_i.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_j.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_k.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_l.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_m.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_n.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_o.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_p.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_q.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_r.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_s.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_t.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_u.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_v.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_w.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_x.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_y.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_z.c \ + ..\..\..\..\..\src\ta_func\ta_utility.c \ + ..\..\..\..\..\src\ta_func\ta_ACOS.c \ + ..\..\..\..\..\src\ta_func\ta_AD.c \ + ..\..\..\..\..\src\ta_func\ta_ADD.c \ + ..\..\..\..\..\src\ta_func\ta_ADOSC.c \ + ..\..\..\..\..\src\ta_func\ta_ADX.c \ + ..\..\..\..\..\src\ta_func\ta_ADXR.c \ + ..\..\..\..\..\src\ta_func\ta_APO.c \ + ..\..\..\..\..\src\ta_func\ta_AROON.c \ + ..\..\..\..\..\src\ta_func\ta_AROONOSC.c \ + ..\..\..\..\..\src\ta_func\ta_ASIN.c \ + ..\..\..\..\..\src\ta_func\ta_ATAN.c \ + ..\..\..\..\..\src\ta_func\ta_ATR.c \ + ..\..\..\..\..\src\ta_func\ta_AVGPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_BBANDS.c \ + ..\..\..\..\..\src\ta_func\ta_BETA.c \ + ..\..\..\..\..\src\ta_func\ta_BOP.c \ + ..\..\..\..\..\src\ta_func\ta_CCI.c \ + ..\..\..\..\..\src\ta_func\ta_CDL2CROWS.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3BLACKCROWS.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3INSIDE.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3LINESTRIKE.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3OUTSIDE.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3STARSINSOUTH.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3WHITESOLDIERS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLABANDONEDBABY.c \ + ..\..\..\..\..\src\ta_func\ta_CDLADVANCEBLOCK.c \ + ..\..\..\..\..\src\ta_func\ta_CDLBELTHOLD.c \ + ..\..\..\..\..\src\ta_func\ta_CDLBREAKAWAY.c \ + ..\..\..\..\..\src\ta_func\ta_CDLCLOSINGMARUBOZU.c \ + ..\..\..\..\..\src\ta_func\ta_CDLCONCEALBABYSWALL.c \ + ..\..\..\..\..\src\ta_func\ta_CDLCOUNTERATTACK.c \ + ..\..\..\..\..\src\ta_func\ta_CDLDARKCLOUDCOVER.c \ + ..\..\..\..\..\src\ta_func\ta_CDLDOJI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLDOJISTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLDRAGONFLYDOJI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLENGULFING.c \ + ..\..\..\..\..\src\ta_func\ta_CDLEVENINGDOJISTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLEVENINGSTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLGAPSIDESIDEWHITE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLGRAVESTONEDOJI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHAMMER.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHANGINGMAN.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHARAMI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHARAMICROSS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHIGHWAVE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKEMOD.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHOMINGPIGEON.c \ + ..\..\..\..\..\src\ta_func\ta_CDLIDENTICAL3CROWS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLINNECK.c \ + ..\..\..\..\..\src\ta_func\ta_CDLINVERTEDHAMMER.c \ + ..\..\..\..\..\src\ta_func\ta_CDLKICKING.c \ + ..\..\..\..\..\src\ta_func\ta_CDLKICKINGBYLENGTH.c \ + ..\..\..\..\..\src\ta_func\ta_CDLLADDERBOTTOM.c \ + ..\..\..\..\..\src\ta_func\ta_CDLLONGLEGGEDDOJI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLLONGLINE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMARUBOZU.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMATCHINGLOW.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMATHOLD.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMORNINGDOJISTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMORNINGSTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLONNECK.c \ + ..\..\..\..\..\src\ta_func\ta_CDLPIERCING.c \ + ..\..\..\..\..\src\ta_func\ta_CDLRICKSHAWMAN.c \ + ..\..\..\..\..\src\ta_func\ta_CDLRISEFALL3METHODS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSEPARATINGLINES.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSHOOTINGSTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSHORTLINE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSPINNINGTOP.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSTALLEDPATTERN.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSTICKSANDWICH.c \ + ..\..\..\..\..\src\ta_func\ta_CDLTAKURI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLTASUKIGAP.c \ + ..\..\..\..\..\src\ta_func\ta_CDLTHRUSTING.c \ + ..\..\..\..\..\src\ta_func\ta_CDLTRISTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLUNIQUE3RIVER.c \ + ..\..\..\..\..\src\ta_func\ta_CDLUPSIDEGAP2CROWS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLXSIDEGAP3METHODS.c \ + ..\..\..\..\..\src\ta_func\ta_CEIL.c \ + ..\..\..\..\..\src\ta_func\ta_CMO.c \ + ..\..\..\..\..\src\ta_func\ta_CORREL.c \ + ..\..\..\..\..\src\ta_func\ta_COS.c \ + ..\..\..\..\..\src\ta_func\ta_COSH.c \ + ..\..\..\..\..\src\ta_func\ta_DEMA.c \ + ..\..\..\..\..\src\ta_func\ta_DIV.c \ + ..\..\..\..\..\src\ta_func\ta_DX.c \ + ..\..\..\..\..\src\ta_func\ta_EMA.c \ + ..\..\..\..\..\src\ta_func\ta_EXP.c \ + ..\..\..\..\..\src\ta_func\ta_FLOOR.c \ + ..\..\..\..\..\src\ta_func\ta_HT_DCPERIOD.c \ + ..\..\..\..\..\src\ta_func\ta_HT_DCPHASE.c \ + ..\..\..\..\..\src\ta_func\ta_HT_PHASOR.c \ + ..\..\..\..\..\src\ta_func\ta_HT_SINE.c \ + ..\..\..\..\..\src\ta_func\ta_HT_TRENDLINE.c \ + ..\..\..\..\..\src\ta_func\ta_HT_TRENDMODE.c \ + ..\..\..\..\..\src\ta_func\ta_KAMA.c \ + ..\..\..\..\..\src\ta_func\ta_LINEARREG.c \ + ..\..\..\..\..\src\ta_func\ta_LINEARREG_ANGLE.c \ + ..\..\..\..\..\src\ta_func\ta_LINEARREG_INTERCEPT.c \ + ..\..\..\..\..\src\ta_func\ta_LINEARREG_SLOPE.c \ + ..\..\..\..\..\src\ta_func\ta_LN.c \ + ..\..\..\..\..\src\ta_func\ta_LOG10.c \ + ..\..\..\..\..\src\ta_func\ta_MA.c \ + ..\..\..\..\..\src\ta_func\ta_MACD.c \ + ..\..\..\..\..\src\ta_func\ta_MACDEXT.c \ + ..\..\..\..\..\src\ta_func\ta_MACDFIX.c \ + ..\..\..\..\..\src\ta_func\ta_MAMA.c \ + ..\..\..\..\..\src\ta_func\ta_MAVP.c \ + ..\..\..\..\..\src\ta_func\ta_MAX.c \ + ..\..\..\..\..\src\ta_func\ta_MAXINDEX.c \ + ..\..\..\..\..\src\ta_func\ta_MEDPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_MFI.c \ + ..\..\..\..\..\src\ta_func\ta_MIDPOINT.c \ + ..\..\..\..\..\src\ta_func\ta_MIDPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_MIN.c \ + ..\..\..\..\..\src\ta_func\ta_MININDEX.c \ + ..\..\..\..\..\src\ta_func\ta_MINMAX.c \ + ..\..\..\..\..\src\ta_func\ta_MINMAXINDEX.c \ + ..\..\..\..\..\src\ta_func\ta_MINUS_DI.c \ + ..\..\..\..\..\src\ta_func\ta_MINUS_DM.c \ + ..\..\..\..\..\src\ta_func\ta_MOM.c \ + ..\..\..\..\..\src\ta_func\ta_MULT.c \ + ..\..\..\..\..\src\ta_func\ta_NATR.c \ + ..\..\..\..\..\src\ta_func\ta_OBV.c \ + ..\..\..\..\..\src\ta_func\ta_PLUS_DI.c \ + ..\..\..\..\..\src\ta_func\ta_PLUS_DM.c \ + ..\..\..\..\..\src\ta_func\ta_PPO.c \ + ..\..\..\..\..\src\ta_func\ta_ROC.c \ + ..\..\..\..\..\src\ta_func\ta_ROCP.c \ + ..\..\..\..\..\src\ta_func\ta_ROCR.c \ + ..\..\..\..\..\src\ta_func\ta_ROCR100.c \ + ..\..\..\..\..\src\ta_func\ta_RSI.c \ + ..\..\..\..\..\src\ta_func\ta_SAR.c \ + ..\..\..\..\..\src\ta_func\ta_SAREXT.c \ + ..\..\..\..\..\src\ta_func\ta_SIN.c \ + ..\..\..\..\..\src\ta_func\ta_SINH.c \ + ..\..\..\..\..\src\ta_func\ta_SMA.c \ + ..\..\..\..\..\src\ta_func\ta_SQRT.c \ + ..\..\..\..\..\src\ta_func\ta_STDDEV.c \ + ..\..\..\..\..\src\ta_func\ta_STOCH.c \ + ..\..\..\..\..\src\ta_func\ta_STOCHF.c \ + ..\..\..\..\..\src\ta_func\ta_STOCHRSI.c \ + ..\..\..\..\..\src\ta_func\ta_SUB.c \ + ..\..\..\..\..\src\ta_func\ta_SUM.c \ + ..\..\..\..\..\src\ta_func\ta_T3.c \ + ..\..\..\..\..\src\ta_func\ta_TAN.c \ + ..\..\..\..\..\src\ta_func\ta_TANH.c \ + ..\..\..\..\..\src\ta_func\ta_TEMA.c \ + ..\..\..\..\..\src\ta_func\ta_TRANGE.c \ + ..\..\..\..\..\src\ta_func\ta_TRIMA.c \ + ..\..\..\..\..\src\ta_func\ta_TRIX.c \ + ..\..\..\..\..\src\ta_func\ta_TSF.c \ + ..\..\..\..\..\src\ta_func\ta_TYPPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_ULTOSC.c \ + ..\..\..\..\..\src\ta_func\ta_VAR.c \ + ..\..\..\..\..\src\ta_func\ta_WCLPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_WILLR.c \ + ..\..\..\..\..\src\ta_func\ta_WMA.c +OBJECTS = ..\..\..\..\..\temp\cmr\ta_global.obj \ + ..\..\..\..\..\temp\cmr\ta_retcode.obj \ + ..\..\..\..\..\temp\cmr\ta_version.obj \ + ..\..\..\..\..\temp\cmr\ta_abstract.obj \ + ..\..\..\..\..\temp\cmr\ta_def_ui.obj \ + ..\..\..\..\..\temp\cmr\ta_func_api.obj \ + ..\..\..\..\..\temp\cmr\ta_group_idx.obj \ + ..\..\..\..\..\temp\cmr\ta_frame.obj \ + ..\..\..\..\..\temp\cmr\table_a.obj \ + ..\..\..\..\..\temp\cmr\table_b.obj \ + ..\..\..\..\..\temp\cmr\table_c.obj \ + ..\..\..\..\..\temp\cmr\table_d.obj \ + ..\..\..\..\..\temp\cmr\table_e.obj \ + ..\..\..\..\..\temp\cmr\table_f.obj \ + ..\..\..\..\..\temp\cmr\table_g.obj \ + ..\..\..\..\..\temp\cmr\table_h.obj \ + ..\..\..\..\..\temp\cmr\table_i.obj \ + ..\..\..\..\..\temp\cmr\table_j.obj \ + ..\..\..\..\..\temp\cmr\table_k.obj \ + ..\..\..\..\..\temp\cmr\table_l.obj \ + ..\..\..\..\..\temp\cmr\table_m.obj \ + ..\..\..\..\..\temp\cmr\table_n.obj \ + ..\..\..\..\..\temp\cmr\table_o.obj \ + ..\..\..\..\..\temp\cmr\table_p.obj \ + ..\..\..\..\..\temp\cmr\table_q.obj \ + ..\..\..\..\..\temp\cmr\table_r.obj \ + ..\..\..\..\..\temp\cmr\table_s.obj \ + ..\..\..\..\..\temp\cmr\table_t.obj \ + ..\..\..\..\..\temp\cmr\table_u.obj \ + ..\..\..\..\..\temp\cmr\table_v.obj \ + ..\..\..\..\..\temp\cmr\table_w.obj \ + ..\..\..\..\..\temp\cmr\table_x.obj \ + ..\..\..\..\..\temp\cmr\table_y.obj \ + ..\..\..\..\..\temp\cmr\table_z.obj \ + ..\..\..\..\..\temp\cmr\ta_utility.obj \ + ..\..\..\..\..\temp\cmr\ta_ACOS.obj \ + ..\..\..\..\..\temp\cmr\ta_AD.obj \ + ..\..\..\..\..\temp\cmr\ta_ADD.obj \ + ..\..\..\..\..\temp\cmr\ta_ADOSC.obj \ + ..\..\..\..\..\temp\cmr\ta_ADX.obj \ + ..\..\..\..\..\temp\cmr\ta_ADXR.obj \ + ..\..\..\..\..\temp\cmr\ta_APO.obj \ + ..\..\..\..\..\temp\cmr\ta_AROON.obj \ + ..\..\..\..\..\temp\cmr\ta_AROONOSC.obj \ + ..\..\..\..\..\temp\cmr\ta_ASIN.obj \ + ..\..\..\..\..\temp\cmr\ta_ATAN.obj \ + ..\..\..\..\..\temp\cmr\ta_ATR.obj \ + ..\..\..\..\..\temp\cmr\ta_AVGPRICE.obj \ + ..\..\..\..\..\temp\cmr\ta_BBANDS.obj \ + ..\..\..\..\..\temp\cmr\ta_BETA.obj \ + ..\..\..\..\..\temp\cmr\ta_BOP.obj \ + ..\..\..\..\..\temp\cmr\ta_CCI.obj \ + ..\..\..\..\..\temp\cmr\ta_CDL2CROWS.obj \ + ..\..\..\..\..\temp\cmr\ta_CDL3BLACKCROWS.obj \ + ..\..\..\..\..\temp\cmr\ta_CDL3INSIDE.obj \ + ..\..\..\..\..\temp\cmr\ta_CDL3LINESTRIKE.obj \ + ..\..\..\..\..\temp\cmr\ta_CDL3OUTSIDE.obj \ + ..\..\..\..\..\temp\cmr\ta_CDL3STARSINSOUTH.obj \ + ..\..\..\..\..\temp\cmr\ta_CDL3WHITESOLDIERS.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLABANDONEDBABY.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLADVANCEBLOCK.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLBELTHOLD.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLBREAKAWAY.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLCLOSINGMARUBOZU.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLCONCEALBABYSWALL.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLCOUNTERATTACK.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLDARKCLOUDCOVER.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLDOJI.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLDOJISTAR.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLDRAGONFLYDOJI.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLENGULFING.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLEVENINGDOJISTAR.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLEVENINGSTAR.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLGAPSIDESIDEWHITE.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLGRAVESTONEDOJI.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLHAMMER.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLHANGINGMAN.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLHARAMI.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLHARAMICROSS.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLHIGHWAVE.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLHIKKAKE.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLHIKKAKEMOD.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLHOMINGPIGEON.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLIDENTICAL3CROWS.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLINNECK.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLINVERTEDHAMMER.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLKICKING.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLKICKINGBYLENGTH.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLLADDERBOTTOM.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLLONGLEGGEDDOJI.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLLONGLINE.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLMARUBOZU.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLMATCHINGLOW.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLMATHOLD.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLMORNINGDOJISTAR.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLMORNINGSTAR.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLONNECK.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLPIERCING.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLRICKSHAWMAN.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLRISEFALL3METHODS.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLSEPARATINGLINES.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLSHOOTINGSTAR.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLSHORTLINE.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLSPINNINGTOP.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLSTALLEDPATTERN.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLSTICKSANDWICH.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLTAKURI.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLTASUKIGAP.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLTHRUSTING.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLTRISTAR.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLUNIQUE3RIVER.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLUPSIDEGAP2CROWS.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLXSIDEGAP3METHODS.obj \ + ..\..\..\..\..\temp\cmr\ta_CEIL.obj \ + ..\..\..\..\..\temp\cmr\ta_CMO.obj \ + ..\..\..\..\..\temp\cmr\ta_CORREL.obj \ + ..\..\..\..\..\temp\cmr\ta_COS.obj \ + ..\..\..\..\..\temp\cmr\ta_COSH.obj \ + ..\..\..\..\..\temp\cmr\ta_DEMA.obj \ + ..\..\..\..\..\temp\cmr\ta_DIV.obj \ + ..\..\..\..\..\temp\cmr\ta_DX.obj \ + ..\..\..\..\..\temp\cmr\ta_EMA.obj \ + ..\..\..\..\..\temp\cmr\ta_EXP.obj \ + ..\..\..\..\..\temp\cmr\ta_FLOOR.obj \ + ..\..\..\..\..\temp\cmr\ta_HT_DCPERIOD.obj \ + ..\..\..\..\..\temp\cmr\ta_HT_DCPHASE.obj \ + ..\..\..\..\..\temp\cmr\ta_HT_PHASOR.obj \ + ..\..\..\..\..\temp\cmr\ta_HT_SINE.obj \ + ..\..\..\..\..\temp\cmr\ta_HT_TRENDLINE.obj \ + ..\..\..\..\..\temp\cmr\ta_HT_TRENDMODE.obj \ + ..\..\..\..\..\temp\cmr\ta_KAMA.obj \ + ..\..\..\..\..\temp\cmr\ta_LINEARREG.obj \ + ..\..\..\..\..\temp\cmr\ta_LINEARREG_ANGLE.obj \ + ..\..\..\..\..\temp\cmr\ta_LINEARREG_INTERCEPT.obj \ + ..\..\..\..\..\temp\cmr\ta_LINEARREG_SLOPE.obj \ + ..\..\..\..\..\temp\cmr\ta_LN.obj \ + ..\..\..\..\..\temp\cmr\ta_LOG10.obj \ + ..\..\..\..\..\temp\cmr\ta_MA.obj \ + ..\..\..\..\..\temp\cmr\ta_MACD.obj \ + ..\..\..\..\..\temp\cmr\ta_MACDEXT.obj \ + ..\..\..\..\..\temp\cmr\ta_MACDFIX.obj \ + ..\..\..\..\..\temp\cmr\ta_MAMA.obj \ + ..\..\..\..\..\temp\cmr\ta_MAVP.obj \ + ..\..\..\..\..\temp\cmr\ta_MAX.obj \ + ..\..\..\..\..\temp\cmr\ta_MAXINDEX.obj \ + ..\..\..\..\..\temp\cmr\ta_MEDPRICE.obj \ + ..\..\..\..\..\temp\cmr\ta_MFI.obj \ + ..\..\..\..\..\temp\cmr\ta_MIDPOINT.obj \ + ..\..\..\..\..\temp\cmr\ta_MIDPRICE.obj \ + ..\..\..\..\..\temp\cmr\ta_MIN.obj \ + ..\..\..\..\..\temp\cmr\ta_MININDEX.obj \ + ..\..\..\..\..\temp\cmr\ta_MINMAX.obj \ + ..\..\..\..\..\temp\cmr\ta_MINMAXINDEX.obj \ + ..\..\..\..\..\temp\cmr\ta_MINUS_DI.obj \ + ..\..\..\..\..\temp\cmr\ta_MINUS_DM.obj \ + ..\..\..\..\..\temp\cmr\ta_MOM.obj \ + ..\..\..\..\..\temp\cmr\ta_MULT.obj \ + ..\..\..\..\..\temp\cmr\ta_NATR.obj \ + ..\..\..\..\..\temp\cmr\ta_OBV.obj \ + ..\..\..\..\..\temp\cmr\ta_PLUS_DI.obj \ + ..\..\..\..\..\temp\cmr\ta_PLUS_DM.obj \ + ..\..\..\..\..\temp\cmr\ta_PPO.obj \ + ..\..\..\..\..\temp\cmr\ta_ROC.obj \ + ..\..\..\..\..\temp\cmr\ta_ROCP.obj \ + ..\..\..\..\..\temp\cmr\ta_ROCR.obj \ + ..\..\..\..\..\temp\cmr\ta_ROCR100.obj \ + ..\..\..\..\..\temp\cmr\ta_RSI.obj \ + ..\..\..\..\..\temp\cmr\ta_SAR.obj \ + ..\..\..\..\..\temp\cmr\ta_SAREXT.obj \ + ..\..\..\..\..\temp\cmr\ta_SIN.obj \ + ..\..\..\..\..\temp\cmr\ta_SINH.obj \ + ..\..\..\..\..\temp\cmr\ta_SMA.obj \ + ..\..\..\..\..\temp\cmr\ta_SQRT.obj \ + ..\..\..\..\..\temp\cmr\ta_STDDEV.obj \ + ..\..\..\..\..\temp\cmr\ta_STOCH.obj \ + ..\..\..\..\..\temp\cmr\ta_STOCHF.obj \ + ..\..\..\..\..\temp\cmr\ta_STOCHRSI.obj \ + ..\..\..\..\..\temp\cmr\ta_SUB.obj \ + ..\..\..\..\..\temp\cmr\ta_SUM.obj \ + ..\..\..\..\..\temp\cmr\ta_T3.obj \ + ..\..\..\..\..\temp\cmr\ta_TAN.obj \ + ..\..\..\..\..\temp\cmr\ta_TANH.obj \ + ..\..\..\..\..\temp\cmr\ta_TEMA.obj \ + ..\..\..\..\..\temp\cmr\ta_TRANGE.obj \ + ..\..\..\..\..\temp\cmr\ta_TRIMA.obj \ + ..\..\..\..\..\temp\cmr\ta_TRIX.obj \ + ..\..\..\..\..\temp\cmr\ta_TSF.obj \ + ..\..\..\..\..\temp\cmr\ta_TYPPRICE.obj \ + ..\..\..\..\..\temp\cmr\ta_ULTOSC.obj \ + ..\..\..\..\..\temp\cmr\ta_VAR.obj \ + ..\..\..\..\..\temp\cmr\ta_WCLPRICE.obj \ + ..\..\..\..\..\temp\cmr\ta_WILLR.obj \ + ..\..\..\..\..\temp\cmr\ta_WMA.obj +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ..\..\..\..\..\lib\ta_libc_cmr.lib +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .c + +.cpp.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $< + +.cxx.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $< + +.cc.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $< + +.c.obj: + $(CC) -c $(CFLAGS) $(INCPATH) -Fo$@ $< + +####### Build rules + +all: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + $(LIB) /OUT:$(TARGET) @<< + $(OBJECTS) $(OBJMOC) +<< + +moc: $(SRCMOC) + +tmake: ../cmr/win32/msvc/ta_libc/Makefile + +../cmr/win32/msvc/ta_libc/Makefile: ta_libc/ta_libc.pro + tmake ta_libc/ta_libc.pro -o ../cmr/win32/msvc/ta_libc/Makefile + +dist: + $(ZIP) ta_libc/ta_libc.zip ta_libc/ta_libc.pro $(SOURCES) $(HEADERS) $(DIST) $(INTERFACES) + +clean: + -del ..\..\..\..\..\temp\cmr\ta_global.obj + -del ..\..\..\..\..\temp\cmr\ta_retcode.obj + -del ..\..\..\..\..\temp\cmr\ta_version.obj + -del ..\..\..\..\..\temp\cmr\ta_abstract.obj + -del ..\..\..\..\..\temp\cmr\ta_def_ui.obj + -del ..\..\..\..\..\temp\cmr\ta_func_api.obj + -del ..\..\..\..\..\temp\cmr\ta_group_idx.obj + -del ..\..\..\..\..\temp\cmr\ta_frame.obj + -del ..\..\..\..\..\temp\cmr\table_a.obj + -del ..\..\..\..\..\temp\cmr\table_b.obj + -del ..\..\..\..\..\temp\cmr\table_c.obj + -del ..\..\..\..\..\temp\cmr\table_d.obj + -del ..\..\..\..\..\temp\cmr\table_e.obj + -del ..\..\..\..\..\temp\cmr\table_f.obj + -del ..\..\..\..\..\temp\cmr\table_g.obj + -del ..\..\..\..\..\temp\cmr\table_h.obj + -del ..\..\..\..\..\temp\cmr\table_i.obj + -del ..\..\..\..\..\temp\cmr\table_j.obj + -del ..\..\..\..\..\temp\cmr\table_k.obj + -del ..\..\..\..\..\temp\cmr\table_l.obj + -del ..\..\..\..\..\temp\cmr\table_m.obj + -del ..\..\..\..\..\temp\cmr\table_n.obj + -del ..\..\..\..\..\temp\cmr\table_o.obj + -del ..\..\..\..\..\temp\cmr\table_p.obj + -del ..\..\..\..\..\temp\cmr\table_q.obj + -del ..\..\..\..\..\temp\cmr\table_r.obj + -del ..\..\..\..\..\temp\cmr\table_s.obj + -del ..\..\..\..\..\temp\cmr\table_t.obj + -del ..\..\..\..\..\temp\cmr\table_u.obj + -del ..\..\..\..\..\temp\cmr\table_v.obj + -del ..\..\..\..\..\temp\cmr\table_w.obj + -del ..\..\..\..\..\temp\cmr\table_x.obj + -del ..\..\..\..\..\temp\cmr\table_y.obj + -del ..\..\..\..\..\temp\cmr\table_z.obj + -del ..\..\..\..\..\temp\cmr\ta_utility.obj + -del ..\..\..\..\..\temp\cmr\ta_ACOS.obj + -del ..\..\..\..\..\temp\cmr\ta_AD.obj + -del ..\..\..\..\..\temp\cmr\ta_ADD.obj + -del ..\..\..\..\..\temp\cmr\ta_ADOSC.obj + -del ..\..\..\..\..\temp\cmr\ta_ADX.obj + -del ..\..\..\..\..\temp\cmr\ta_ADXR.obj + -del ..\..\..\..\..\temp\cmr\ta_APO.obj + -del ..\..\..\..\..\temp\cmr\ta_AROON.obj + -del ..\..\..\..\..\temp\cmr\ta_AROONOSC.obj + -del ..\..\..\..\..\temp\cmr\ta_ASIN.obj + -del ..\..\..\..\..\temp\cmr\ta_ATAN.obj + -del ..\..\..\..\..\temp\cmr\ta_ATR.obj + -del ..\..\..\..\..\temp\cmr\ta_AVGPRICE.obj + -del ..\..\..\..\..\temp\cmr\ta_BBANDS.obj + -del ..\..\..\..\..\temp\cmr\ta_BETA.obj + -del ..\..\..\..\..\temp\cmr\ta_BOP.obj + -del ..\..\..\..\..\temp\cmr\ta_CCI.obj + -del ..\..\..\..\..\temp\cmr\ta_CDL2CROWS.obj + -del ..\..\..\..\..\temp\cmr\ta_CDL3BLACKCROWS.obj + -del ..\..\..\..\..\temp\cmr\ta_CDL3INSIDE.obj + -del ..\..\..\..\..\temp\cmr\ta_CDL3LINESTRIKE.obj + -del ..\..\..\..\..\temp\cmr\ta_CDL3OUTSIDE.obj + -del ..\..\..\..\..\temp\cmr\ta_CDL3STARSINSOUTH.obj + -del ..\..\..\..\..\temp\cmr\ta_CDL3WHITESOLDIERS.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLABANDONEDBABY.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLADVANCEBLOCK.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLBELTHOLD.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLBREAKAWAY.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLCLOSINGMARUBOZU.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLCONCEALBABYSWALL.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLCOUNTERATTACK.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLDARKCLOUDCOVER.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLDOJI.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLDOJISTAR.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLDRAGONFLYDOJI.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLENGULFING.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLEVENINGDOJISTAR.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLEVENINGSTAR.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLGAPSIDESIDEWHITE.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLGRAVESTONEDOJI.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLHAMMER.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLHANGINGMAN.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLHARAMI.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLHARAMICROSS.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLHIGHWAVE.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLHIKKAKE.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLHIKKAKEMOD.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLHOMINGPIGEON.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLIDENTICAL3CROWS.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLINNECK.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLINVERTEDHAMMER.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLKICKING.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLKICKINGBYLENGTH.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLLADDERBOTTOM.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLLONGLEGGEDDOJI.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLLONGLINE.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLMARUBOZU.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLMATCHINGLOW.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLMATHOLD.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLMORNINGDOJISTAR.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLMORNINGSTAR.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLONNECK.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLPIERCING.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLRICKSHAWMAN.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLRISEFALL3METHODS.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLSEPARATINGLINES.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLSHOOTINGSTAR.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLSHORTLINE.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLSPINNINGTOP.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLSTALLEDPATTERN.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLSTICKSANDWICH.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLTAKURI.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLTASUKIGAP.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLTHRUSTING.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLTRISTAR.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLUNIQUE3RIVER.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLUPSIDEGAP2CROWS.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLXSIDEGAP3METHODS.obj + -del ..\..\..\..\..\temp\cmr\ta_CEIL.obj + -del ..\..\..\..\..\temp\cmr\ta_CMO.obj + -del ..\..\..\..\..\temp\cmr\ta_CORREL.obj + -del ..\..\..\..\..\temp\cmr\ta_COS.obj + -del ..\..\..\..\..\temp\cmr\ta_COSH.obj + -del ..\..\..\..\..\temp\cmr\ta_DEMA.obj + -del ..\..\..\..\..\temp\cmr\ta_DIV.obj + -del ..\..\..\..\..\temp\cmr\ta_DX.obj + -del ..\..\..\..\..\temp\cmr\ta_EMA.obj + -del ..\..\..\..\..\temp\cmr\ta_EXP.obj + -del ..\..\..\..\..\temp\cmr\ta_FLOOR.obj + -del ..\..\..\..\..\temp\cmr\ta_HT_DCPERIOD.obj + -del ..\..\..\..\..\temp\cmr\ta_HT_DCPHASE.obj + -del ..\..\..\..\..\temp\cmr\ta_HT_PHASOR.obj + -del ..\..\..\..\..\temp\cmr\ta_HT_SINE.obj + -del ..\..\..\..\..\temp\cmr\ta_HT_TRENDLINE.obj + -del ..\..\..\..\..\temp\cmr\ta_HT_TRENDMODE.obj + -del ..\..\..\..\..\temp\cmr\ta_KAMA.obj + -del ..\..\..\..\..\temp\cmr\ta_LINEARREG.obj + -del ..\..\..\..\..\temp\cmr\ta_LINEARREG_ANGLE.obj + -del ..\..\..\..\..\temp\cmr\ta_LINEARREG_INTERCEPT.obj + -del ..\..\..\..\..\temp\cmr\ta_LINEARREG_SLOPE.obj + -del ..\..\..\..\..\temp\cmr\ta_LN.obj + -del ..\..\..\..\..\temp\cmr\ta_LOG10.obj + -del ..\..\..\..\..\temp\cmr\ta_MA.obj + -del ..\..\..\..\..\temp\cmr\ta_MACD.obj + -del ..\..\..\..\..\temp\cmr\ta_MACDEXT.obj + -del ..\..\..\..\..\temp\cmr\ta_MACDFIX.obj + -del ..\..\..\..\..\temp\cmr\ta_MAMA.obj + -del ..\..\..\..\..\temp\cmr\ta_MAVP.obj + -del ..\..\..\..\..\temp\cmr\ta_MAX.obj + -del ..\..\..\..\..\temp\cmr\ta_MAXINDEX.obj + -del ..\..\..\..\..\temp\cmr\ta_MEDPRICE.obj + -del ..\..\..\..\..\temp\cmr\ta_MFI.obj + -del ..\..\..\..\..\temp\cmr\ta_MIDPOINT.obj + -del ..\..\..\..\..\temp\cmr\ta_MIDPRICE.obj + -del ..\..\..\..\..\temp\cmr\ta_MIN.obj + -del ..\..\..\..\..\temp\cmr\ta_MININDEX.obj + -del ..\..\..\..\..\temp\cmr\ta_MINMAX.obj + -del ..\..\..\..\..\temp\cmr\ta_MINMAXINDEX.obj + -del ..\..\..\..\..\temp\cmr\ta_MINUS_DI.obj + -del ..\..\..\..\..\temp\cmr\ta_MINUS_DM.obj + -del ..\..\..\..\..\temp\cmr\ta_MOM.obj + -del ..\..\..\..\..\temp\cmr\ta_MULT.obj + -del ..\..\..\..\..\temp\cmr\ta_NATR.obj + -del ..\..\..\..\..\temp\cmr\ta_OBV.obj + -del ..\..\..\..\..\temp\cmr\ta_PLUS_DI.obj + -del ..\..\..\..\..\temp\cmr\ta_PLUS_DM.obj + -del ..\..\..\..\..\temp\cmr\ta_PPO.obj + -del ..\..\..\..\..\temp\cmr\ta_ROC.obj + -del ..\..\..\..\..\temp\cmr\ta_ROCP.obj + -del ..\..\..\..\..\temp\cmr\ta_ROCR.obj + -del ..\..\..\..\..\temp\cmr\ta_ROCR100.obj + -del ..\..\..\..\..\temp\cmr\ta_RSI.obj + -del ..\..\..\..\..\temp\cmr\ta_SAR.obj + -del ..\..\..\..\..\temp\cmr\ta_SAREXT.obj + -del ..\..\..\..\..\temp\cmr\ta_SIN.obj + -del ..\..\..\..\..\temp\cmr\ta_SINH.obj + -del ..\..\..\..\..\temp\cmr\ta_SMA.obj + -del ..\..\..\..\..\temp\cmr\ta_SQRT.obj + -del ..\..\..\..\..\temp\cmr\ta_STDDEV.obj + -del ..\..\..\..\..\temp\cmr\ta_STOCH.obj + -del ..\..\..\..\..\temp\cmr\ta_STOCHF.obj + -del ..\..\..\..\..\temp\cmr\ta_STOCHRSI.obj + -del ..\..\..\..\..\temp\cmr\ta_SUB.obj + -del ..\..\..\..\..\temp\cmr\ta_SUM.obj + -del ..\..\..\..\..\temp\cmr\ta_T3.obj + -del ..\..\..\..\..\temp\cmr\ta_TAN.obj + -del ..\..\..\..\..\temp\cmr\ta_TANH.obj + -del ..\..\..\..\..\temp\cmr\ta_TEMA.obj + -del ..\..\..\..\..\temp\cmr\ta_TRANGE.obj + -del ..\..\..\..\..\temp\cmr\ta_TRIMA.obj + -del ..\..\..\..\..\temp\cmr\ta_TRIX.obj + -del ..\..\..\..\..\temp\cmr\ta_TSF.obj + -del ..\..\..\..\..\temp\cmr\ta_TYPPRICE.obj + -del ..\..\..\..\..\temp\cmr\ta_ULTOSC.obj + -del ..\..\..\..\..\temp\cmr\ta_VAR.obj + -del ..\..\..\..\..\temp\cmr\ta_WCLPRICE.obj + -del ..\..\..\..\..\temp\cmr\ta_WILLR.obj + -del ..\..\..\..\..\temp\cmr\ta_WMA.obj + -del $(TARGET) + -del ../../../../../bin/*.map + -del ../../../../../bin/*._xe + -del ../../../../../bin/*.tds + -del ../../../../../bin/*.pdb + -del ../../../../../bin/*.pbo + -del ../../../../../bin/*.pbi + -del ../../../../../bin/*.pbt + +####### Compile + +..\..\..\..\..\temp\cmr\ta_global.obj: ..\..\..\..\..\src\ta_common\ta_global.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_global.obj ..\..\..\..\..\src\ta_common\ta_global.c + +..\..\..\..\..\temp\cmr\ta_retcode.obj: ..\..\..\..\..\src\ta_common\ta_retcode.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_retcode.obj ..\..\..\..\..\src\ta_common\ta_retcode.c + +..\..\..\..\..\temp\cmr\ta_version.obj: ..\..\..\..\..\src\ta_common\ta_version.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_version.obj ..\..\..\..\..\src\ta_common\ta_version.c + +..\..\..\..\..\temp\cmr\ta_abstract.obj: ..\..\..\..\..\src\ta_abstract\ta_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_abstract.obj ..\..\..\..\..\src\ta_abstract\ta_abstract.c + +..\..\..\..\..\temp\cmr\ta_def_ui.obj: ..\..\..\..\..\src\ta_abstract\ta_def_ui.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_def_ui.obj ..\..\..\..\..\src\ta_abstract\ta_def_ui.c + +..\..\..\..\..\temp\cmr\ta_func_api.obj: ..\..\..\..\..\src\ta_abstract\ta_func_api.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_func_api.obj ..\..\..\..\..\src\ta_abstract\ta_func_api.c + +..\..\..\..\..\temp\cmr\ta_group_idx.obj: ..\..\..\..\..\src\ta_abstract\ta_group_idx.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_group_idx.obj ..\..\..\..\..\src\ta_abstract\ta_group_idx.c + +..\..\..\..\..\temp\cmr\ta_frame.obj: ..\..\..\..\..\src\ta_abstract\frames\ta_frame.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_frame.obj ..\..\..\..\..\src\ta_abstract\frames\ta_frame.c + +..\..\..\..\..\temp\cmr\table_a.obj: ..\..\..\..\..\src\ta_abstract\tables\table_a.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\table_a.obj ..\..\..\..\..\src\ta_abstract\tables\table_a.c + +..\..\..\..\..\temp\cmr\table_b.obj: ..\..\..\..\..\src\ta_abstract\tables\table_b.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\table_b.obj ..\..\..\..\..\src\ta_abstract\tables\table_b.c + +..\..\..\..\..\temp\cmr\table_c.obj: ..\..\..\..\..\src\ta_abstract\tables\table_c.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\table_c.obj ..\..\..\..\..\src\ta_abstract\tables\table_c.c + +..\..\..\..\..\temp\cmr\table_d.obj: ..\..\..\..\..\src\ta_abstract\tables\table_d.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\table_d.obj ..\..\..\..\..\src\ta_abstract\tables\table_d.c + +..\..\..\..\..\temp\cmr\table_e.obj: ..\..\..\..\..\src\ta_abstract\tables\table_e.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\table_e.obj ..\..\..\..\..\src\ta_abstract\tables\table_e.c + +..\..\..\..\..\temp\cmr\table_f.obj: ..\..\..\..\..\src\ta_abstract\tables\table_f.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\table_f.obj ..\..\..\..\..\src\ta_abstract\tables\table_f.c + +..\..\..\..\..\temp\cmr\table_g.obj: ..\..\..\..\..\src\ta_abstract\tables\table_g.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\table_g.obj ..\..\..\..\..\src\ta_abstract\tables\table_g.c + +..\..\..\..\..\temp\cmr\table_h.obj: ..\..\..\..\..\src\ta_abstract\tables\table_h.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\table_h.obj ..\..\..\..\..\src\ta_abstract\tables\table_h.c + +..\..\..\..\..\temp\cmr\table_i.obj: ..\..\..\..\..\src\ta_abstract\tables\table_i.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\table_i.obj ..\..\..\..\..\src\ta_abstract\tables\table_i.c + +..\..\..\..\..\temp\cmr\table_j.obj: ..\..\..\..\..\src\ta_abstract\tables\table_j.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\table_j.obj ..\..\..\..\..\src\ta_abstract\tables\table_j.c + +..\..\..\..\..\temp\cmr\table_k.obj: ..\..\..\..\..\src\ta_abstract\tables\table_k.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\table_k.obj ..\..\..\..\..\src\ta_abstract\tables\table_k.c + +..\..\..\..\..\temp\cmr\table_l.obj: ..\..\..\..\..\src\ta_abstract\tables\table_l.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\table_l.obj ..\..\..\..\..\src\ta_abstract\tables\table_l.c + +..\..\..\..\..\temp\cmr\table_m.obj: ..\..\..\..\..\src\ta_abstract\tables\table_m.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\table_m.obj ..\..\..\..\..\src\ta_abstract\tables\table_m.c + +..\..\..\..\..\temp\cmr\table_n.obj: ..\..\..\..\..\src\ta_abstract\tables\table_n.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\table_n.obj ..\..\..\..\..\src\ta_abstract\tables\table_n.c + +..\..\..\..\..\temp\cmr\table_o.obj: ..\..\..\..\..\src\ta_abstract\tables\table_o.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\table_o.obj ..\..\..\..\..\src\ta_abstract\tables\table_o.c + +..\..\..\..\..\temp\cmr\table_p.obj: ..\..\..\..\..\src\ta_abstract\tables\table_p.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\table_p.obj ..\..\..\..\..\src\ta_abstract\tables\table_p.c + +..\..\..\..\..\temp\cmr\table_q.obj: ..\..\..\..\..\src\ta_abstract\tables\table_q.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\table_q.obj ..\..\..\..\..\src\ta_abstract\tables\table_q.c + +..\..\..\..\..\temp\cmr\table_r.obj: ..\..\..\..\..\src\ta_abstract\tables\table_r.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\table_r.obj ..\..\..\..\..\src\ta_abstract\tables\table_r.c + +..\..\..\..\..\temp\cmr\table_s.obj: ..\..\..\..\..\src\ta_abstract\tables\table_s.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\table_s.obj ..\..\..\..\..\src\ta_abstract\tables\table_s.c + +..\..\..\..\..\temp\cmr\table_t.obj: ..\..\..\..\..\src\ta_abstract\tables\table_t.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\table_t.obj ..\..\..\..\..\src\ta_abstract\tables\table_t.c + +..\..\..\..\..\temp\cmr\table_u.obj: ..\..\..\..\..\src\ta_abstract\tables\table_u.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\table_u.obj ..\..\..\..\..\src\ta_abstract\tables\table_u.c + +..\..\..\..\..\temp\cmr\table_v.obj: ..\..\..\..\..\src\ta_abstract\tables\table_v.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\table_v.obj ..\..\..\..\..\src\ta_abstract\tables\table_v.c + +..\..\..\..\..\temp\cmr\table_w.obj: ..\..\..\..\..\src\ta_abstract\tables\table_w.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\table_w.obj ..\..\..\..\..\src\ta_abstract\tables\table_w.c + +..\..\..\..\..\temp\cmr\table_x.obj: ..\..\..\..\..\src\ta_abstract\tables\table_x.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\table_x.obj ..\..\..\..\..\src\ta_abstract\tables\table_x.c + +..\..\..\..\..\temp\cmr\table_y.obj: ..\..\..\..\..\src\ta_abstract\tables\table_y.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\table_y.obj ..\..\..\..\..\src\ta_abstract\tables\table_y.c + +..\..\..\..\..\temp\cmr\table_z.obj: ..\..\..\..\..\src\ta_abstract\tables\table_z.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\table_z.obj ..\..\..\..\..\src\ta_abstract\tables\table_z.c + +..\..\..\..\..\temp\cmr\ta_utility.obj: ..\..\..\..\..\src\ta_func\ta_utility.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_utility.obj ..\..\..\..\..\src\ta_func\ta_utility.c + +..\..\..\..\..\temp\cmr\ta_ACOS.obj: ..\..\..\..\..\src\ta_func\ta_ACOS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_ACOS.obj ..\..\..\..\..\src\ta_func\ta_ACOS.c + +..\..\..\..\..\temp\cmr\ta_AD.obj: ..\..\..\..\..\src\ta_func\ta_AD.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_AD.obj ..\..\..\..\..\src\ta_func\ta_AD.c + +..\..\..\..\..\temp\cmr\ta_ADD.obj: ..\..\..\..\..\src\ta_func\ta_ADD.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_ADD.obj ..\..\..\..\..\src\ta_func\ta_ADD.c + +..\..\..\..\..\temp\cmr\ta_ADOSC.obj: ..\..\..\..\..\src\ta_func\ta_ADOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_ADOSC.obj ..\..\..\..\..\src\ta_func\ta_ADOSC.c + +..\..\..\..\..\temp\cmr\ta_ADX.obj: ..\..\..\..\..\src\ta_func\ta_ADX.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_ADX.obj ..\..\..\..\..\src\ta_func\ta_ADX.c + +..\..\..\..\..\temp\cmr\ta_ADXR.obj: ..\..\..\..\..\src\ta_func\ta_ADXR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_ADXR.obj ..\..\..\..\..\src\ta_func\ta_ADXR.c + +..\..\..\..\..\temp\cmr\ta_APO.obj: ..\..\..\..\..\src\ta_func\ta_APO.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_APO.obj ..\..\..\..\..\src\ta_func\ta_APO.c + +..\..\..\..\..\temp\cmr\ta_AROON.obj: ..\..\..\..\..\src\ta_func\ta_AROON.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_AROON.obj ..\..\..\..\..\src\ta_func\ta_AROON.c + +..\..\..\..\..\temp\cmr\ta_AROONOSC.obj: ..\..\..\..\..\src\ta_func\ta_AROONOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_AROONOSC.obj ..\..\..\..\..\src\ta_func\ta_AROONOSC.c + +..\..\..\..\..\temp\cmr\ta_ASIN.obj: ..\..\..\..\..\src\ta_func\ta_ASIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_ASIN.obj ..\..\..\..\..\src\ta_func\ta_ASIN.c + +..\..\..\..\..\temp\cmr\ta_ATAN.obj: ..\..\..\..\..\src\ta_func\ta_ATAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_ATAN.obj ..\..\..\..\..\src\ta_func\ta_ATAN.c + +..\..\..\..\..\temp\cmr\ta_ATR.obj: ..\..\..\..\..\src\ta_func\ta_ATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_ATR.obj ..\..\..\..\..\src\ta_func\ta_ATR.c + +..\..\..\..\..\temp\cmr\ta_AVGPRICE.obj: ..\..\..\..\..\src\ta_func\ta_AVGPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_AVGPRICE.obj ..\..\..\..\..\src\ta_func\ta_AVGPRICE.c + +..\..\..\..\..\temp\cmr\ta_BBANDS.obj: ..\..\..\..\..\src\ta_func\ta_BBANDS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_BBANDS.obj ..\..\..\..\..\src\ta_func\ta_BBANDS.c + +..\..\..\..\..\temp\cmr\ta_BETA.obj: ..\..\..\..\..\src\ta_func\ta_BETA.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_BETA.obj ..\..\..\..\..\src\ta_func\ta_BETA.c + +..\..\..\..\..\temp\cmr\ta_BOP.obj: ..\..\..\..\..\src\ta_func\ta_BOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_BOP.obj ..\..\..\..\..\src\ta_func\ta_BOP.c + +..\..\..\..\..\temp\cmr\ta_CCI.obj: ..\..\..\..\..\src\ta_func\ta_CCI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CCI.obj ..\..\..\..\..\src\ta_func\ta_CCI.c + +..\..\..\..\..\temp\cmr\ta_CDL2CROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDL2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CDL2CROWS.obj ..\..\..\..\..\src\ta_func\ta_CDL2CROWS.c + +..\..\..\..\..\temp\cmr\ta_CDL3BLACKCROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDL3BLACKCROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CDL3BLACKCROWS.obj ..\..\..\..\..\src\ta_func\ta_CDL3BLACKCROWS.c + +..\..\..\..\..\temp\cmr\ta_CDL3INSIDE.obj: ..\..\..\..\..\src\ta_func\ta_CDL3INSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CDL3INSIDE.obj ..\..\..\..\..\src\ta_func\ta_CDL3INSIDE.c + +..\..\..\..\..\temp\cmr\ta_CDL3LINESTRIKE.obj: ..\..\..\..\..\src\ta_func\ta_CDL3LINESTRIKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CDL3LINESTRIKE.obj ..\..\..\..\..\src\ta_func\ta_CDL3LINESTRIKE.c + +..\..\..\..\..\temp\cmr\ta_CDL3OUTSIDE.obj: ..\..\..\..\..\src\ta_func\ta_CDL3OUTSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CDL3OUTSIDE.obj ..\..\..\..\..\src\ta_func\ta_CDL3OUTSIDE.c + +..\..\..\..\..\temp\cmr\ta_CDL3STARSINSOUTH.obj: ..\..\..\..\..\src\ta_func\ta_CDL3STARSINSOUTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CDL3STARSINSOUTH.obj ..\..\..\..\..\src\ta_func\ta_CDL3STARSINSOUTH.c + +..\..\..\..\..\temp\cmr\ta_CDL3WHITESOLDIERS.obj: ..\..\..\..\..\src\ta_func\ta_CDL3WHITESOLDIERS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CDL3WHITESOLDIERS.obj ..\..\..\..\..\src\ta_func\ta_CDL3WHITESOLDIERS.c + +..\..\..\..\..\temp\cmr\ta_CDLABANDONEDBABY.obj: ..\..\..\..\..\src\ta_func\ta_CDLABANDONEDBABY.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CDLABANDONEDBABY.obj ..\..\..\..\..\src\ta_func\ta_CDLABANDONEDBABY.c + +..\..\..\..\..\temp\cmr\ta_CDLADVANCEBLOCK.obj: ..\..\..\..\..\src\ta_func\ta_CDLADVANCEBLOCK.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CDLADVANCEBLOCK.obj ..\..\..\..\..\src\ta_func\ta_CDLADVANCEBLOCK.c + +..\..\..\..\..\temp\cmr\ta_CDLBELTHOLD.obj: ..\..\..\..\..\src\ta_func\ta_CDLBELTHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CDLBELTHOLD.obj ..\..\..\..\..\src\ta_func\ta_CDLBELTHOLD.c + +..\..\..\..\..\temp\cmr\ta_CDLBREAKAWAY.obj: ..\..\..\..\..\src\ta_func\ta_CDLBREAKAWAY.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CDLBREAKAWAY.obj ..\..\..\..\..\src\ta_func\ta_CDLBREAKAWAY.c + +..\..\..\..\..\temp\cmr\ta_CDLCLOSINGMARUBOZU.obj: ..\..\..\..\..\src\ta_func\ta_CDLCLOSINGMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CDLCLOSINGMARUBOZU.obj ..\..\..\..\..\src\ta_func\ta_CDLCLOSINGMARUBOZU.c + +..\..\..\..\..\temp\cmr\ta_CDLCONCEALBABYSWALL.obj: ..\..\..\..\..\src\ta_func\ta_CDLCONCEALBABYSWALL.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CDLCONCEALBABYSWALL.obj ..\..\..\..\..\src\ta_func\ta_CDLCONCEALBABYSWALL.c + +..\..\..\..\..\temp\cmr\ta_CDLCOUNTERATTACK.obj: ..\..\..\..\..\src\ta_func\ta_CDLCOUNTERATTACK.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CDLCOUNTERATTACK.obj ..\..\..\..\..\src\ta_func\ta_CDLCOUNTERATTACK.c + +..\..\..\..\..\temp\cmr\ta_CDLDARKCLOUDCOVER.obj: ..\..\..\..\..\src\ta_func\ta_CDLDARKCLOUDCOVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CDLDARKCLOUDCOVER.obj ..\..\..\..\..\src\ta_func\ta_CDLDARKCLOUDCOVER.c + +..\..\..\..\..\temp\cmr\ta_CDLDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CDLDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLDOJI.c + +..\..\..\..\..\temp\cmr\ta_CDLDOJISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CDLDOJISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLDOJISTAR.c + +..\..\..\..\..\temp\cmr\ta_CDLDRAGONFLYDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLDRAGONFLYDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CDLDRAGONFLYDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLDRAGONFLYDOJI.c + +..\..\..\..\..\temp\cmr\ta_CDLENGULFING.obj: ..\..\..\..\..\src\ta_func\ta_CDLENGULFING.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CDLENGULFING.obj ..\..\..\..\..\src\ta_func\ta_CDLENGULFING.c + +..\..\..\..\..\temp\cmr\ta_CDLEVENINGDOJISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLEVENINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CDLEVENINGDOJISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLEVENINGDOJISTAR.c + +..\..\..\..\..\temp\cmr\ta_CDLEVENINGSTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLEVENINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CDLEVENINGSTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLEVENINGSTAR.c + +..\..\..\..\..\temp\cmr\ta_CDLGAPSIDESIDEWHITE.obj: ..\..\..\..\..\src\ta_func\ta_CDLGAPSIDESIDEWHITE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CDLGAPSIDESIDEWHITE.obj ..\..\..\..\..\src\ta_func\ta_CDLGAPSIDESIDEWHITE.c + +..\..\..\..\..\temp\cmr\ta_CDLGRAVESTONEDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLGRAVESTONEDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CDLGRAVESTONEDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLGRAVESTONEDOJI.c + +..\..\..\..\..\temp\cmr\ta_CDLHAMMER.obj: ..\..\..\..\..\src\ta_func\ta_CDLHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CDLHAMMER.obj ..\..\..\..\..\src\ta_func\ta_CDLHAMMER.c + +..\..\..\..\..\temp\cmr\ta_CDLHANGINGMAN.obj: ..\..\..\..\..\src\ta_func\ta_CDLHANGINGMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CDLHANGINGMAN.obj ..\..\..\..\..\src\ta_func\ta_CDLHANGINGMAN.c + +..\..\..\..\..\temp\cmr\ta_CDLHARAMI.obj: ..\..\..\..\..\src\ta_func\ta_CDLHARAMI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CDLHARAMI.obj ..\..\..\..\..\src\ta_func\ta_CDLHARAMI.c + +..\..\..\..\..\temp\cmr\ta_CDLHARAMICROSS.obj: ..\..\..\..\..\src\ta_func\ta_CDLHARAMICROSS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CDLHARAMICROSS.obj ..\..\..\..\..\src\ta_func\ta_CDLHARAMICROSS.c + +..\..\..\..\..\temp\cmr\ta_CDLHIGHWAVE.obj: ..\..\..\..\..\src\ta_func\ta_CDLHIGHWAVE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CDLHIGHWAVE.obj ..\..\..\..\..\src\ta_func\ta_CDLHIGHWAVE.c + +..\..\..\..\..\temp\cmr\ta_CDLHIKKAKE.obj: ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CDLHIKKAKE.obj ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKE.c + +..\..\..\..\..\temp\cmr\ta_CDLHIKKAKEMOD.obj: ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKEMOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CDLHIKKAKEMOD.obj ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKEMOD.c + +..\..\..\..\..\temp\cmr\ta_CDLHOMINGPIGEON.obj: ..\..\..\..\..\src\ta_func\ta_CDLHOMINGPIGEON.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CDLHOMINGPIGEON.obj ..\..\..\..\..\src\ta_func\ta_CDLHOMINGPIGEON.c + +..\..\..\..\..\temp\cmr\ta_CDLIDENTICAL3CROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDLIDENTICAL3CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CDLIDENTICAL3CROWS.obj ..\..\..\..\..\src\ta_func\ta_CDLIDENTICAL3CROWS.c + +..\..\..\..\..\temp\cmr\ta_CDLINNECK.obj: ..\..\..\..\..\src\ta_func\ta_CDLINNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CDLINNECK.obj ..\..\..\..\..\src\ta_func\ta_CDLINNECK.c + +..\..\..\..\..\temp\cmr\ta_CDLINVERTEDHAMMER.obj: ..\..\..\..\..\src\ta_func\ta_CDLINVERTEDHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CDLINVERTEDHAMMER.obj ..\..\..\..\..\src\ta_func\ta_CDLINVERTEDHAMMER.c + +..\..\..\..\..\temp\cmr\ta_CDLKICKING.obj: ..\..\..\..\..\src\ta_func\ta_CDLKICKING.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CDLKICKING.obj ..\..\..\..\..\src\ta_func\ta_CDLKICKING.c + +..\..\..\..\..\temp\cmr\ta_CDLKICKINGBYLENGTH.obj: ..\..\..\..\..\src\ta_func\ta_CDLKICKINGBYLENGTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CDLKICKINGBYLENGTH.obj ..\..\..\..\..\src\ta_func\ta_CDLKICKINGBYLENGTH.c + +..\..\..\..\..\temp\cmr\ta_CDLLADDERBOTTOM.obj: ..\..\..\..\..\src\ta_func\ta_CDLLADDERBOTTOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CDLLADDERBOTTOM.obj ..\..\..\..\..\src\ta_func\ta_CDLLADDERBOTTOM.c + +..\..\..\..\..\temp\cmr\ta_CDLLONGLEGGEDDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLLONGLEGGEDDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CDLLONGLEGGEDDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLLONGLEGGEDDOJI.c + +..\..\..\..\..\temp\cmr\ta_CDLLONGLINE.obj: ..\..\..\..\..\src\ta_func\ta_CDLLONGLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CDLLONGLINE.obj ..\..\..\..\..\src\ta_func\ta_CDLLONGLINE.c + +..\..\..\..\..\temp\cmr\ta_CDLMARUBOZU.obj: ..\..\..\..\..\src\ta_func\ta_CDLMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CDLMARUBOZU.obj ..\..\..\..\..\src\ta_func\ta_CDLMARUBOZU.c + +..\..\..\..\..\temp\cmr\ta_CDLMATCHINGLOW.obj: ..\..\..\..\..\src\ta_func\ta_CDLMATCHINGLOW.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CDLMATCHINGLOW.obj ..\..\..\..\..\src\ta_func\ta_CDLMATCHINGLOW.c + +..\..\..\..\..\temp\cmr\ta_CDLMATHOLD.obj: ..\..\..\..\..\src\ta_func\ta_CDLMATHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CDLMATHOLD.obj ..\..\..\..\..\src\ta_func\ta_CDLMATHOLD.c + +..\..\..\..\..\temp\cmr\ta_CDLMORNINGDOJISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLMORNINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CDLMORNINGDOJISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLMORNINGDOJISTAR.c + +..\..\..\..\..\temp\cmr\ta_CDLMORNINGSTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLMORNINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CDLMORNINGSTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLMORNINGSTAR.c + +..\..\..\..\..\temp\cmr\ta_CDLONNECK.obj: ..\..\..\..\..\src\ta_func\ta_CDLONNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CDLONNECK.obj ..\..\..\..\..\src\ta_func\ta_CDLONNECK.c + +..\..\..\..\..\temp\cmr\ta_CDLPIERCING.obj: ..\..\..\..\..\src\ta_func\ta_CDLPIERCING.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CDLPIERCING.obj ..\..\..\..\..\src\ta_func\ta_CDLPIERCING.c + +..\..\..\..\..\temp\cmr\ta_CDLRICKSHAWMAN.obj: ..\..\..\..\..\src\ta_func\ta_CDLRICKSHAWMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CDLRICKSHAWMAN.obj ..\..\..\..\..\src\ta_func\ta_CDLRICKSHAWMAN.c + +..\..\..\..\..\temp\cmr\ta_CDLRISEFALL3METHODS.obj: ..\..\..\..\..\src\ta_func\ta_CDLRISEFALL3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CDLRISEFALL3METHODS.obj ..\..\..\..\..\src\ta_func\ta_CDLRISEFALL3METHODS.c + +..\..\..\..\..\temp\cmr\ta_CDLSEPARATINGLINES.obj: ..\..\..\..\..\src\ta_func\ta_CDLSEPARATINGLINES.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CDLSEPARATINGLINES.obj ..\..\..\..\..\src\ta_func\ta_CDLSEPARATINGLINES.c + +..\..\..\..\..\temp\cmr\ta_CDLSHOOTINGSTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLSHOOTINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CDLSHOOTINGSTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLSHOOTINGSTAR.c + +..\..\..\..\..\temp\cmr\ta_CDLSHORTLINE.obj: ..\..\..\..\..\src\ta_func\ta_CDLSHORTLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CDLSHORTLINE.obj ..\..\..\..\..\src\ta_func\ta_CDLSHORTLINE.c + +..\..\..\..\..\temp\cmr\ta_CDLSPINNINGTOP.obj: ..\..\..\..\..\src\ta_func\ta_CDLSPINNINGTOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CDLSPINNINGTOP.obj ..\..\..\..\..\src\ta_func\ta_CDLSPINNINGTOP.c + +..\..\..\..\..\temp\cmr\ta_CDLSTALLEDPATTERN.obj: ..\..\..\..\..\src\ta_func\ta_CDLSTALLEDPATTERN.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CDLSTALLEDPATTERN.obj ..\..\..\..\..\src\ta_func\ta_CDLSTALLEDPATTERN.c + +..\..\..\..\..\temp\cmr\ta_CDLSTICKSANDWICH.obj: ..\..\..\..\..\src\ta_func\ta_CDLSTICKSANDWICH.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CDLSTICKSANDWICH.obj ..\..\..\..\..\src\ta_func\ta_CDLSTICKSANDWICH.c + +..\..\..\..\..\temp\cmr\ta_CDLTAKURI.obj: ..\..\..\..\..\src\ta_func\ta_CDLTAKURI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CDLTAKURI.obj ..\..\..\..\..\src\ta_func\ta_CDLTAKURI.c + +..\..\..\..\..\temp\cmr\ta_CDLTASUKIGAP.obj: ..\..\..\..\..\src\ta_func\ta_CDLTASUKIGAP.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CDLTASUKIGAP.obj ..\..\..\..\..\src\ta_func\ta_CDLTASUKIGAP.c + +..\..\..\..\..\temp\cmr\ta_CDLTHRUSTING.obj: ..\..\..\..\..\src\ta_func\ta_CDLTHRUSTING.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CDLTHRUSTING.obj ..\..\..\..\..\src\ta_func\ta_CDLTHRUSTING.c + +..\..\..\..\..\temp\cmr\ta_CDLTRISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLTRISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CDLTRISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLTRISTAR.c + +..\..\..\..\..\temp\cmr\ta_CDLUNIQUE3RIVER.obj: ..\..\..\..\..\src\ta_func\ta_CDLUNIQUE3RIVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CDLUNIQUE3RIVER.obj ..\..\..\..\..\src\ta_func\ta_CDLUNIQUE3RIVER.c + +..\..\..\..\..\temp\cmr\ta_CDLUPSIDEGAP2CROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDLUPSIDEGAP2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CDLUPSIDEGAP2CROWS.obj ..\..\..\..\..\src\ta_func\ta_CDLUPSIDEGAP2CROWS.c + +..\..\..\..\..\temp\cmr\ta_CDLXSIDEGAP3METHODS.obj: ..\..\..\..\..\src\ta_func\ta_CDLXSIDEGAP3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CDLXSIDEGAP3METHODS.obj ..\..\..\..\..\src\ta_func\ta_CDLXSIDEGAP3METHODS.c + +..\..\..\..\..\temp\cmr\ta_CEIL.obj: ..\..\..\..\..\src\ta_func\ta_CEIL.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CEIL.obj ..\..\..\..\..\src\ta_func\ta_CEIL.c + +..\..\..\..\..\temp\cmr\ta_CMO.obj: ..\..\..\..\..\src\ta_func\ta_CMO.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CMO.obj ..\..\..\..\..\src\ta_func\ta_CMO.c + +..\..\..\..\..\temp\cmr\ta_CORREL.obj: ..\..\..\..\..\src\ta_func\ta_CORREL.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_CORREL.obj ..\..\..\..\..\src\ta_func\ta_CORREL.c + +..\..\..\..\..\temp\cmr\ta_COS.obj: ..\..\..\..\..\src\ta_func\ta_COS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_COS.obj ..\..\..\..\..\src\ta_func\ta_COS.c + +..\..\..\..\..\temp\cmr\ta_COSH.obj: ..\..\..\..\..\src\ta_func\ta_COSH.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_COSH.obj ..\..\..\..\..\src\ta_func\ta_COSH.c + +..\..\..\..\..\temp\cmr\ta_DEMA.obj: ..\..\..\..\..\src\ta_func\ta_DEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_DEMA.obj ..\..\..\..\..\src\ta_func\ta_DEMA.c + +..\..\..\..\..\temp\cmr\ta_DIV.obj: ..\..\..\..\..\src\ta_func\ta_DIV.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_DIV.obj ..\..\..\..\..\src\ta_func\ta_DIV.c + +..\..\..\..\..\temp\cmr\ta_DX.obj: ..\..\..\..\..\src\ta_func\ta_DX.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_DX.obj ..\..\..\..\..\src\ta_func\ta_DX.c + +..\..\..\..\..\temp\cmr\ta_EMA.obj: ..\..\..\..\..\src\ta_func\ta_EMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_EMA.obj ..\..\..\..\..\src\ta_func\ta_EMA.c + +..\..\..\..\..\temp\cmr\ta_EXP.obj: ..\..\..\..\..\src\ta_func\ta_EXP.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_EXP.obj ..\..\..\..\..\src\ta_func\ta_EXP.c + +..\..\..\..\..\temp\cmr\ta_FLOOR.obj: ..\..\..\..\..\src\ta_func\ta_FLOOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_FLOOR.obj ..\..\..\..\..\src\ta_func\ta_FLOOR.c + +..\..\..\..\..\temp\cmr\ta_HT_DCPERIOD.obj: ..\..\..\..\..\src\ta_func\ta_HT_DCPERIOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_HT_DCPERIOD.obj ..\..\..\..\..\src\ta_func\ta_HT_DCPERIOD.c + +..\..\..\..\..\temp\cmr\ta_HT_DCPHASE.obj: ..\..\..\..\..\src\ta_func\ta_HT_DCPHASE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_HT_DCPHASE.obj ..\..\..\..\..\src\ta_func\ta_HT_DCPHASE.c + +..\..\..\..\..\temp\cmr\ta_HT_PHASOR.obj: ..\..\..\..\..\src\ta_func\ta_HT_PHASOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_HT_PHASOR.obj ..\..\..\..\..\src\ta_func\ta_HT_PHASOR.c + +..\..\..\..\..\temp\cmr\ta_HT_SINE.obj: ..\..\..\..\..\src\ta_func\ta_HT_SINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_HT_SINE.obj ..\..\..\..\..\src\ta_func\ta_HT_SINE.c + +..\..\..\..\..\temp\cmr\ta_HT_TRENDLINE.obj: ..\..\..\..\..\src\ta_func\ta_HT_TRENDLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_HT_TRENDLINE.obj ..\..\..\..\..\src\ta_func\ta_HT_TRENDLINE.c + +..\..\..\..\..\temp\cmr\ta_HT_TRENDMODE.obj: ..\..\..\..\..\src\ta_func\ta_HT_TRENDMODE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_HT_TRENDMODE.obj ..\..\..\..\..\src\ta_func\ta_HT_TRENDMODE.c + +..\..\..\..\..\temp\cmr\ta_KAMA.obj: ..\..\..\..\..\src\ta_func\ta_KAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_KAMA.obj ..\..\..\..\..\src\ta_func\ta_KAMA.c + +..\..\..\..\..\temp\cmr\ta_LINEARREG.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_LINEARREG.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG.c + +..\..\..\..\..\temp\cmr\ta_LINEARREG_ANGLE.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG_ANGLE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_LINEARREG_ANGLE.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG_ANGLE.c + +..\..\..\..\..\temp\cmr\ta_LINEARREG_INTERCEPT.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG_INTERCEPT.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_LINEARREG_INTERCEPT.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG_INTERCEPT.c + +..\..\..\..\..\temp\cmr\ta_LINEARREG_SLOPE.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG_SLOPE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_LINEARREG_SLOPE.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG_SLOPE.c + +..\..\..\..\..\temp\cmr\ta_LN.obj: ..\..\..\..\..\src\ta_func\ta_LN.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_LN.obj ..\..\..\..\..\src\ta_func\ta_LN.c + +..\..\..\..\..\temp\cmr\ta_LOG10.obj: ..\..\..\..\..\src\ta_func\ta_LOG10.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_LOG10.obj ..\..\..\..\..\src\ta_func\ta_LOG10.c + +..\..\..\..\..\temp\cmr\ta_MA.obj: ..\..\..\..\..\src\ta_func\ta_MA.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_MA.obj ..\..\..\..\..\src\ta_func\ta_MA.c + +..\..\..\..\..\temp\cmr\ta_MACD.obj: ..\..\..\..\..\src\ta_func\ta_MACD.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_MACD.obj ..\..\..\..\..\src\ta_func\ta_MACD.c + +..\..\..\..\..\temp\cmr\ta_MACDEXT.obj: ..\..\..\..\..\src\ta_func\ta_MACDEXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_MACDEXT.obj ..\..\..\..\..\src\ta_func\ta_MACDEXT.c + +..\..\..\..\..\temp\cmr\ta_MACDFIX.obj: ..\..\..\..\..\src\ta_func\ta_MACDFIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_MACDFIX.obj ..\..\..\..\..\src\ta_func\ta_MACDFIX.c + +..\..\..\..\..\temp\cmr\ta_MAMA.obj: ..\..\..\..\..\src\ta_func\ta_MAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_MAMA.obj ..\..\..\..\..\src\ta_func\ta_MAMA.c + +..\..\..\..\..\temp\cmr\ta_MAVP.obj: ..\..\..\..\..\src\ta_func\ta_MAVP.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_MAVP.obj ..\..\..\..\..\src\ta_func\ta_MAVP.c + +..\..\..\..\..\temp\cmr\ta_MAX.obj: ..\..\..\..\..\src\ta_func\ta_MAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_MAX.obj ..\..\..\..\..\src\ta_func\ta_MAX.c + +..\..\..\..\..\temp\cmr\ta_MAXINDEX.obj: ..\..\..\..\..\src\ta_func\ta_MAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_MAXINDEX.obj ..\..\..\..\..\src\ta_func\ta_MAXINDEX.c + +..\..\..\..\..\temp\cmr\ta_MEDPRICE.obj: ..\..\..\..\..\src\ta_func\ta_MEDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_MEDPRICE.obj ..\..\..\..\..\src\ta_func\ta_MEDPRICE.c + +..\..\..\..\..\temp\cmr\ta_MFI.obj: ..\..\..\..\..\src\ta_func\ta_MFI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_MFI.obj ..\..\..\..\..\src\ta_func\ta_MFI.c + +..\..\..\..\..\temp\cmr\ta_MIDPOINT.obj: ..\..\..\..\..\src\ta_func\ta_MIDPOINT.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_MIDPOINT.obj ..\..\..\..\..\src\ta_func\ta_MIDPOINT.c + +..\..\..\..\..\temp\cmr\ta_MIDPRICE.obj: ..\..\..\..\..\src\ta_func\ta_MIDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_MIDPRICE.obj ..\..\..\..\..\src\ta_func\ta_MIDPRICE.c + +..\..\..\..\..\temp\cmr\ta_MIN.obj: ..\..\..\..\..\src\ta_func\ta_MIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_MIN.obj ..\..\..\..\..\src\ta_func\ta_MIN.c + +..\..\..\..\..\temp\cmr\ta_MININDEX.obj: ..\..\..\..\..\src\ta_func\ta_MININDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_MININDEX.obj ..\..\..\..\..\src\ta_func\ta_MININDEX.c + +..\..\..\..\..\temp\cmr\ta_MINMAX.obj: ..\..\..\..\..\src\ta_func\ta_MINMAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_MINMAX.obj ..\..\..\..\..\src\ta_func\ta_MINMAX.c + +..\..\..\..\..\temp\cmr\ta_MINMAXINDEX.obj: ..\..\..\..\..\src\ta_func\ta_MINMAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_MINMAXINDEX.obj ..\..\..\..\..\src\ta_func\ta_MINMAXINDEX.c + +..\..\..\..\..\temp\cmr\ta_MINUS_DI.obj: ..\..\..\..\..\src\ta_func\ta_MINUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_MINUS_DI.obj ..\..\..\..\..\src\ta_func\ta_MINUS_DI.c + +..\..\..\..\..\temp\cmr\ta_MINUS_DM.obj: ..\..\..\..\..\src\ta_func\ta_MINUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_MINUS_DM.obj ..\..\..\..\..\src\ta_func\ta_MINUS_DM.c + +..\..\..\..\..\temp\cmr\ta_MOM.obj: ..\..\..\..\..\src\ta_func\ta_MOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_MOM.obj ..\..\..\..\..\src\ta_func\ta_MOM.c + +..\..\..\..\..\temp\cmr\ta_MULT.obj: ..\..\..\..\..\src\ta_func\ta_MULT.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_MULT.obj ..\..\..\..\..\src\ta_func\ta_MULT.c + +..\..\..\..\..\temp\cmr\ta_NATR.obj: ..\..\..\..\..\src\ta_func\ta_NATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_NATR.obj ..\..\..\..\..\src\ta_func\ta_NATR.c + +..\..\..\..\..\temp\cmr\ta_OBV.obj: ..\..\..\..\..\src\ta_func\ta_OBV.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_OBV.obj ..\..\..\..\..\src\ta_func\ta_OBV.c + +..\..\..\..\..\temp\cmr\ta_PLUS_DI.obj: ..\..\..\..\..\src\ta_func\ta_PLUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_PLUS_DI.obj ..\..\..\..\..\src\ta_func\ta_PLUS_DI.c + +..\..\..\..\..\temp\cmr\ta_PLUS_DM.obj: ..\..\..\..\..\src\ta_func\ta_PLUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_PLUS_DM.obj ..\..\..\..\..\src\ta_func\ta_PLUS_DM.c + +..\..\..\..\..\temp\cmr\ta_PPO.obj: ..\..\..\..\..\src\ta_func\ta_PPO.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_PPO.obj ..\..\..\..\..\src\ta_func\ta_PPO.c + +..\..\..\..\..\temp\cmr\ta_ROC.obj: ..\..\..\..\..\src\ta_func\ta_ROC.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_ROC.obj ..\..\..\..\..\src\ta_func\ta_ROC.c + +..\..\..\..\..\temp\cmr\ta_ROCP.obj: ..\..\..\..\..\src\ta_func\ta_ROCP.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_ROCP.obj ..\..\..\..\..\src\ta_func\ta_ROCP.c + +..\..\..\..\..\temp\cmr\ta_ROCR.obj: ..\..\..\..\..\src\ta_func\ta_ROCR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_ROCR.obj ..\..\..\..\..\src\ta_func\ta_ROCR.c + +..\..\..\..\..\temp\cmr\ta_ROCR100.obj: ..\..\..\..\..\src\ta_func\ta_ROCR100.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_ROCR100.obj ..\..\..\..\..\src\ta_func\ta_ROCR100.c + +..\..\..\..\..\temp\cmr\ta_RSI.obj: ..\..\..\..\..\src\ta_func\ta_RSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_RSI.obj ..\..\..\..\..\src\ta_func\ta_RSI.c + +..\..\..\..\..\temp\cmr\ta_SAR.obj: ..\..\..\..\..\src\ta_func\ta_SAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_SAR.obj ..\..\..\..\..\src\ta_func\ta_SAR.c + +..\..\..\..\..\temp\cmr\ta_SAREXT.obj: ..\..\..\..\..\src\ta_func\ta_SAREXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_SAREXT.obj ..\..\..\..\..\src\ta_func\ta_SAREXT.c + +..\..\..\..\..\temp\cmr\ta_SIN.obj: ..\..\..\..\..\src\ta_func\ta_SIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_SIN.obj ..\..\..\..\..\src\ta_func\ta_SIN.c + +..\..\..\..\..\temp\cmr\ta_SINH.obj: ..\..\..\..\..\src\ta_func\ta_SINH.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_SINH.obj ..\..\..\..\..\src\ta_func\ta_SINH.c + +..\..\..\..\..\temp\cmr\ta_SMA.obj: ..\..\..\..\..\src\ta_func\ta_SMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_SMA.obj ..\..\..\..\..\src\ta_func\ta_SMA.c + +..\..\..\..\..\temp\cmr\ta_SQRT.obj: ..\..\..\..\..\src\ta_func\ta_SQRT.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_SQRT.obj ..\..\..\..\..\src\ta_func\ta_SQRT.c + +..\..\..\..\..\temp\cmr\ta_STDDEV.obj: ..\..\..\..\..\src\ta_func\ta_STDDEV.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_STDDEV.obj ..\..\..\..\..\src\ta_func\ta_STDDEV.c + +..\..\..\..\..\temp\cmr\ta_STOCH.obj: ..\..\..\..\..\src\ta_func\ta_STOCH.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_STOCH.obj ..\..\..\..\..\src\ta_func\ta_STOCH.c + +..\..\..\..\..\temp\cmr\ta_STOCHF.obj: ..\..\..\..\..\src\ta_func\ta_STOCHF.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_STOCHF.obj ..\..\..\..\..\src\ta_func\ta_STOCHF.c + +..\..\..\..\..\temp\cmr\ta_STOCHRSI.obj: ..\..\..\..\..\src\ta_func\ta_STOCHRSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_STOCHRSI.obj ..\..\..\..\..\src\ta_func\ta_STOCHRSI.c + +..\..\..\..\..\temp\cmr\ta_SUB.obj: ..\..\..\..\..\src\ta_func\ta_SUB.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_SUB.obj ..\..\..\..\..\src\ta_func\ta_SUB.c + +..\..\..\..\..\temp\cmr\ta_SUM.obj: ..\..\..\..\..\src\ta_func\ta_SUM.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_SUM.obj ..\..\..\..\..\src\ta_func\ta_SUM.c + +..\..\..\..\..\temp\cmr\ta_T3.obj: ..\..\..\..\..\src\ta_func\ta_T3.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_T3.obj ..\..\..\..\..\src\ta_func\ta_T3.c + +..\..\..\..\..\temp\cmr\ta_TAN.obj: ..\..\..\..\..\src\ta_func\ta_TAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_TAN.obj ..\..\..\..\..\src\ta_func\ta_TAN.c + +..\..\..\..\..\temp\cmr\ta_TANH.obj: ..\..\..\..\..\src\ta_func\ta_TANH.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_TANH.obj ..\..\..\..\..\src\ta_func\ta_TANH.c + +..\..\..\..\..\temp\cmr\ta_TEMA.obj: ..\..\..\..\..\src\ta_func\ta_TEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_TEMA.obj ..\..\..\..\..\src\ta_func\ta_TEMA.c + +..\..\..\..\..\temp\cmr\ta_TRANGE.obj: ..\..\..\..\..\src\ta_func\ta_TRANGE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_TRANGE.obj ..\..\..\..\..\src\ta_func\ta_TRANGE.c + +..\..\..\..\..\temp\cmr\ta_TRIMA.obj: ..\..\..\..\..\src\ta_func\ta_TRIMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_TRIMA.obj ..\..\..\..\..\src\ta_func\ta_TRIMA.c + +..\..\..\..\..\temp\cmr\ta_TRIX.obj: ..\..\..\..\..\src\ta_func\ta_TRIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_TRIX.obj ..\..\..\..\..\src\ta_func\ta_TRIX.c + +..\..\..\..\..\temp\cmr\ta_TSF.obj: ..\..\..\..\..\src\ta_func\ta_TSF.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_TSF.obj ..\..\..\..\..\src\ta_func\ta_TSF.c + +..\..\..\..\..\temp\cmr\ta_TYPPRICE.obj: ..\..\..\..\..\src\ta_func\ta_TYPPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_TYPPRICE.obj ..\..\..\..\..\src\ta_func\ta_TYPPRICE.c + +..\..\..\..\..\temp\cmr\ta_ULTOSC.obj: ..\..\..\..\..\src\ta_func\ta_ULTOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_ULTOSC.obj ..\..\..\..\..\src\ta_func\ta_ULTOSC.c + +..\..\..\..\..\temp\cmr\ta_VAR.obj: ..\..\..\..\..\src\ta_func\ta_VAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_VAR.obj ..\..\..\..\..\src\ta_func\ta_VAR.c + +..\..\..\..\..\temp\cmr\ta_WCLPRICE.obj: ..\..\..\..\..\src\ta_func\ta_WCLPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_WCLPRICE.obj ..\..\..\..\..\src\ta_func\ta_WCLPRICE.c + +..\..\..\..\..\temp\cmr\ta_WILLR.obj: ..\..\..\..\..\src\ta_func\ta_WILLR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_WILLR.obj ..\..\..\..\..\src\ta_func\ta_WILLR.c + +..\..\..\..\..\temp\cmr\ta_WMA.obj: ..\..\..\..\..\src\ta_func\ta_WMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_WMA.obj ..\..\..\..\..\src\ta_func\ta_WMA.c + diff --git a/make/cmr/win32/msvc/ta_regtest/Makefile b/make/cmr/win32/msvc/ta_regtest/Makefile new file mode 100644 index 000000000..4ec443d17 --- /dev/null +++ b/make/cmr/win32/msvc/ta_regtest/Makefile @@ -0,0 +1,236 @@ +############################################################################# +# Makefile for building ta_regtest +# Generated by tmake; +# Project: ta_regtest/ta_regtest +# Template: app +############################################################################# + +####### Compiler, tools and options + +CC = cl +CXX = cl +CFLAGS = -nologo -W3 -MT -O2 -DWIN32 -D_MBCS -D_LIB -DQT_THREAD_SUPPORT +CXXFLAGS= -nologo -W3 -MT -O2 -DWIN32 -D_MBCS -D_LIB -DQT_THREAD_SUPPORT +INCPATH = -I"..\..\..\..\..\src\ta_common" -I"..\..\..\..\..\src\tools\ta_regtest" -I"..\..\..\..\..\src\ta_func" -I"..\..\..\..\..\include" +LINK = link +LFLAGS = /NOLOGO /SUBSYSTEM:console +LIBS = ..\..\..\..\..\lib\ta_libc_cmr.lib +MOC = moc +UIC = uic + +ZIP = zip -r -9 + +####### Files + +HEADERS = +SOURCES = ..\..\..\..\..\src\tools\ta_regtest\ta_regtest.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_candlestick.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_1in_1out.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_1in_2out.c \ + ..\..\..\..\..\src\tools\ta_regtest\test_internals.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_adx.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_bbands.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_ma.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_macd.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_minmax.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_mom.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_ema.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hl.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hlc.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hlcv.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_ohlc.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_po.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_rsi.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_sar.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_stddev.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_stoch.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_trange.c \ + ..\..\..\..\..\src\tools\ta_regtest\test_util.c \ + ..\..\..\..\..\src\tools\ta_regtest\test_data.c \ + ..\..\..\..\..\src\tools\ta_regtest\test_abstract.c +OBJECTS = ..\..\..\..\..\temp\cmr\ta_regtest.obj \ + ..\..\..\..\..\temp\cmr\test_candlestick.obj \ + ..\..\..\..\..\temp\cmr\test_1in_1out.obj \ + ..\..\..\..\..\temp\cmr\test_1in_2out.obj \ + ..\..\..\..\..\temp\cmr\test_internals.obj \ + ..\..\..\..\..\temp\cmr\test_adx.obj \ + ..\..\..\..\..\temp\cmr\test_bbands.obj \ + ..\..\..\..\..\temp\cmr\test_ma.obj \ + ..\..\..\..\..\temp\cmr\test_macd.obj \ + ..\..\..\..\..\temp\cmr\test_minmax.obj \ + ..\..\..\..\..\temp\cmr\test_mom.obj \ + ..\..\..\..\..\temp\cmr\test_per_ema.obj \ + ..\..\..\..\..\temp\cmr\test_per_hl.obj \ + ..\..\..\..\..\temp\cmr\test_per_hlc.obj \ + ..\..\..\..\..\temp\cmr\test_per_hlcv.obj \ + ..\..\..\..\..\temp\cmr\test_per_ohlc.obj \ + ..\..\..\..\..\temp\cmr\test_po.obj \ + ..\..\..\..\..\temp\cmr\test_rsi.obj \ + ..\..\..\..\..\temp\cmr\test_sar.obj \ + ..\..\..\..\..\temp\cmr\test_stddev.obj \ + ..\..\..\..\..\temp\cmr\test_stoch.obj \ + ..\..\..\..\..\temp\cmr\test_trange.obj \ + ..\..\..\..\..\temp\cmr\test_util.obj \ + ..\..\..\..\..\temp\cmr\test_data.obj \ + ..\..\..\..\..\temp\cmr\test_abstract.obj +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ..\..\..\..\..\bin\ta_regtest.exe +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .c + +.cpp.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $< + +.cxx.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $< + +.cc.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $< + +.c.obj: + $(CC) -c $(CFLAGS) $(INCPATH) -Fo$@ $< + +####### Build rules + +all: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + $(LINK) $(LFLAGS) /OUT:$(TARGET) @<< + $(OBJECTS) $(OBJMOC) $(LIBS) +<< + +moc: $(SRCMOC) + +tmake: ../cmr/win32/msvc/ta_regtest/Makefile + +../cmr/win32/msvc/ta_regtest/Makefile: ta_regtest/ta_regtest.pro + tmake ta_regtest/ta_regtest.pro -o ../cmr/win32/msvc/ta_regtest/Makefile + +dist: + $(ZIP) ta_regtest/ta_regtest.zip ta_regtest/ta_regtest.pro $(SOURCES) $(HEADERS) $(DIST) $(INTERFACES) + +clean: + -del ..\..\..\..\..\temp\cmr\ta_regtest.obj + -del ..\..\..\..\..\temp\cmr\test_candlestick.obj + -del ..\..\..\..\..\temp\cmr\test_1in_1out.obj + -del ..\..\..\..\..\temp\cmr\test_1in_2out.obj + -del ..\..\..\..\..\temp\cmr\test_internals.obj + -del ..\..\..\..\..\temp\cmr\test_adx.obj + -del ..\..\..\..\..\temp\cmr\test_bbands.obj + -del ..\..\..\..\..\temp\cmr\test_ma.obj + -del ..\..\..\..\..\temp\cmr\test_macd.obj + -del ..\..\..\..\..\temp\cmr\test_minmax.obj + -del ..\..\..\..\..\temp\cmr\test_mom.obj + -del ..\..\..\..\..\temp\cmr\test_per_ema.obj + -del ..\..\..\..\..\temp\cmr\test_per_hl.obj + -del ..\..\..\..\..\temp\cmr\test_per_hlc.obj + -del ..\..\..\..\..\temp\cmr\test_per_hlcv.obj + -del ..\..\..\..\..\temp\cmr\test_per_ohlc.obj + -del ..\..\..\..\..\temp\cmr\test_po.obj + -del ..\..\..\..\..\temp\cmr\test_rsi.obj + -del ..\..\..\..\..\temp\cmr\test_sar.obj + -del ..\..\..\..\..\temp\cmr\test_stddev.obj + -del ..\..\..\..\..\temp\cmr\test_stoch.obj + -del ..\..\..\..\..\temp\cmr\test_trange.obj + -del ..\..\..\..\..\temp\cmr\test_util.obj + -del ..\..\..\..\..\temp\cmr\test_data.obj + -del ..\..\..\..\..\temp\cmr\test_abstract.obj + -del $(TARGET) + -del ../../../../../bin/*.map + -del ../../../../../bin/*._xe + -del ../../../../../bin/*.tds + -del ../../../../../bin/*.pdb + -del ../../../../../bin/*.pbo + -del ../../../../../bin/*.pbi + -del ../../../../../bin/*.pbt + -del ../../../../../temp/cmr/*.pch + -del ../../../../../temp/cmr/*.idb + -del ../../../../../temp/cmr/ta_regtest/*.pch + -del ../../../../../temp/cmr/ta_regtest/*.idb + -del ../../../../../temp/cmr/ta_regtest/*.obj + +####### Compile + +..\..\..\..\..\temp\cmr\ta_regtest.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_regtest.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\ta_regtest.obj ..\..\..\..\..\src\tools\ta_regtest\ta_regtest.c + +..\..\..\..\..\temp\cmr\test_candlestick.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_candlestick.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\test_candlestick.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_candlestick.c + +..\..\..\..\..\temp\cmr\test_1in_1out.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_1in_1out.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\test_1in_1out.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_1in_1out.c + +..\..\..\..\..\temp\cmr\test_1in_2out.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_1in_2out.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\test_1in_2out.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_1in_2out.c + +..\..\..\..\..\temp\cmr\test_internals.obj: ..\..\..\..\..\src\tools\ta_regtest\test_internals.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\test_internals.obj ..\..\..\..\..\src\tools\ta_regtest\test_internals.c + +..\..\..\..\..\temp\cmr\test_adx.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_adx.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\test_adx.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_adx.c + +..\..\..\..\..\temp\cmr\test_bbands.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_bbands.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\test_bbands.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_bbands.c + +..\..\..\..\..\temp\cmr\test_ma.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_ma.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\test_ma.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_ma.c + +..\..\..\..\..\temp\cmr\test_macd.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_macd.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\test_macd.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_macd.c + +..\..\..\..\..\temp\cmr\test_minmax.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_minmax.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\test_minmax.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_minmax.c + +..\..\..\..\..\temp\cmr\test_mom.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_mom.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\test_mom.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_mom.c + +..\..\..\..\..\temp\cmr\test_per_ema.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_ema.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\test_per_ema.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_ema.c + +..\..\..\..\..\temp\cmr\test_per_hl.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hl.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\test_per_hl.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hl.c + +..\..\..\..\..\temp\cmr\test_per_hlc.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hlc.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\test_per_hlc.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hlc.c + +..\..\..\..\..\temp\cmr\test_per_hlcv.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hlcv.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\test_per_hlcv.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hlcv.c + +..\..\..\..\..\temp\cmr\test_per_ohlc.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_ohlc.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\test_per_ohlc.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_ohlc.c + +..\..\..\..\..\temp\cmr\test_po.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_po.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\test_po.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_po.c + +..\..\..\..\..\temp\cmr\test_rsi.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_rsi.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\test_rsi.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_rsi.c + +..\..\..\..\..\temp\cmr\test_sar.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_sar.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\test_sar.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_sar.c + +..\..\..\..\..\temp\cmr\test_stddev.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_stddev.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\test_stddev.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_stddev.c + +..\..\..\..\..\temp\cmr\test_stoch.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_stoch.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\test_stoch.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_stoch.c + +..\..\..\..\..\temp\cmr\test_trange.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_trange.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\test_trange.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_trange.c + +..\..\..\..\..\temp\cmr\test_util.obj: ..\..\..\..\..\src\tools\ta_regtest\test_util.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\test_util.obj ..\..\..\..\..\src\tools\ta_regtest\test_util.c + +..\..\..\..\..\temp\cmr\test_data.obj: ..\..\..\..\..\src\tools\ta_regtest\test_data.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\test_data.obj ..\..\..\..\..\src\tools\ta_regtest\test_data.c + +..\..\..\..\..\temp\cmr\test_abstract.obj: ..\..\..\..\..\src\tools\ta_regtest\test_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\cmr\test_abstract.obj ..\..\..\..\..\src\tools\ta_regtest\test_abstract.c + diff --git a/make/cmr/win32/symantec/Makefile b/make/cmr/win32/symantec/Makefile new file mode 100644 index 000000000..e66c217dc --- /dev/null +++ b/make/cmr/win32/symantec/Makefile @@ -0,0 +1,97 @@ +############################################################################# +# Makefile for building targets in sub directories. +# Generated by tmake; +# Project: rootmake +# Template: subdirs +############################################################################# + +MAKEFILE= Makefile +TMAKE = tmake + +SUBDIRS = ta_common \ + ta_func \ + ta_abstract \ + ta_libc \ + gen_code \ + ta_regtest + +all: $(SUBDIRS) + +ta_common: FORCE + cd ta_common + $(MAKE) + @cd .. + +ta_func: FORCE + cd ta_func + $(MAKE) + @cd .. + +ta_abstract: FORCE + cd ta_abstract + $(MAKE) + @cd .. + +ta_libc: FORCE + cd ta_libc + $(MAKE) + @cd .. + +gen_code: FORCE + cd gen_code + $(MAKE) + @cd .. + +ta_regtest: FORCE + cd ta_regtest + $(MAKE) + @cd .. + + +tmake: ../cmr/win32/symantec/Makefile + +../cmr/win32/symantec/Makefile: rootmake.pro + tmake rootmake.pro -o ../cmr/win32/symantec/Makefile + +tmake_all: + cd ta_common + $(TMAKE) ta_common.pro -o $(MAKEFILE) + @cd .. + cd ta_func + $(TMAKE) ta_func.pro -o $(MAKEFILE) + @cd .. + cd ta_abstract + $(TMAKE) ta_abstract.pro -o $(MAKEFILE) + @cd .. + cd ta_libc + $(TMAKE) ta_libc.pro -o $(MAKEFILE) + @cd .. + cd gen_code + $(TMAKE) gen_code.pro -o $(MAKEFILE) + @cd .. + cd ta_regtest + $(TMAKE) ta_regtest.pro -o $(MAKEFILE) + @cd .. + + +clean: + cd ta_common + $(MAKE) clean + @cd .. + cd ta_func + $(MAKE) clean + @cd .. + cd ta_abstract + $(MAKE) clean + @cd .. + cd ta_libc + $(MAKE) clean + @cd .. + cd gen_code + $(MAKE) clean + @cd .. + cd ta_regtest + $(MAKE) clean + @cd .. + +FORCE: diff --git a/make/cmr/win32/symantec/gen_code/Makefile b/make/cmr/win32/symantec/gen_code/Makefile new file mode 100644 index 000000000..94c48713d --- /dev/null +++ b/make/cmr/win32/symantec/gen_code/Makefile @@ -0,0 +1,253 @@ +############################################################################# +# Makefile for building gen_code +# Generated by tmake; +# Project: gen_code/gen_code +# Template: app +############################################################################# + +####### Compiler, tools and options + +CC = sc +CXX = sc +CFLAGS = -mn -w2 -o -DTA_GEN_CODE -DWIN32 +CXXFLAGS= -mn -w2 -o -DTA_GEN_CODE -DWIN32 +INCPATH = -I"..\..\..\..\..\include" -I"..\..\..\..\..\src\ta_common" -I"..\..\..\..\..\src\ta_abstract" -I"..\..\..\..\..\src\ta_abstract\tables" -I"..\..\..\..\..\src\ta_abstract\frames" +LINK = link +LFLAGS = /NOLOGO /NOI /SUBSYSTEM:console +LIBS = ..\..\..\..\..\lib\ta_common_cmr.lib +MOC = moc + +ZIP = zip -r -9 + +####### Files + +HEADERS = +SOURCES = ..\..\..\..\..\src\tools\gen_code\gen_code.c \ + ..\..\..\..\..\src\ta_abstract\ta_abstract.c \ + ..\..\..\..\..\src\ta_abstract\ta_def_ui.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_a.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_b.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_c.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_d.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_e.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_f.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_g.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_h.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_i.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_j.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_k.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_l.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_m.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_n.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_o.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_p.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_q.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_r.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_s.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_t.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_u.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_v.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_w.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_x.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_y.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_z.c +OBJECTS = ..\..\..\..\..\temp\cmr\gen_code\gen_code.obj \ + ..\..\..\..\..\temp\cmr\gen_code\ta_abstract.obj \ + ..\..\..\..\..\temp\cmr\gen_code\ta_def_ui.obj \ + ..\..\..\..\..\temp\cmr\gen_code\table_a.obj \ + ..\..\..\..\..\temp\cmr\gen_code\table_b.obj \ + ..\..\..\..\..\temp\cmr\gen_code\table_c.obj \ + ..\..\..\..\..\temp\cmr\gen_code\table_d.obj \ + ..\..\..\..\..\temp\cmr\gen_code\table_e.obj \ + ..\..\..\..\..\temp\cmr\gen_code\table_f.obj \ + ..\..\..\..\..\temp\cmr\gen_code\table_g.obj \ + ..\..\..\..\..\temp\cmr\gen_code\table_h.obj \ + ..\..\..\..\..\temp\cmr\gen_code\table_i.obj \ + ..\..\..\..\..\temp\cmr\gen_code\table_j.obj \ + ..\..\..\..\..\temp\cmr\gen_code\table_k.obj \ + ..\..\..\..\..\temp\cmr\gen_code\table_l.obj \ + ..\..\..\..\..\temp\cmr\gen_code\table_m.obj \ + ..\..\..\..\..\temp\cmr\gen_code\table_n.obj \ + ..\..\..\..\..\temp\cmr\gen_code\table_o.obj \ + ..\..\..\..\..\temp\cmr\gen_code\table_p.obj \ + ..\..\..\..\..\temp\cmr\gen_code\table_q.obj \ + ..\..\..\..\..\temp\cmr\gen_code\table_r.obj \ + ..\..\..\..\..\temp\cmr\gen_code\table_s.obj \ + ..\..\..\..\..\temp\cmr\gen_code\table_t.obj \ + ..\..\..\..\..\temp\cmr\gen_code\table_u.obj \ + ..\..\..\..\..\temp\cmr\gen_code\table_v.obj \ + ..\..\..\..\..\temp\cmr\gen_code\table_w.obj \ + ..\..\..\..\..\temp\cmr\gen_code\table_x.obj \ + ..\..\..\..\..\temp\cmr\gen_code\table_y.obj \ + ..\..\..\..\..\temp\cmr\gen_code\table_z.obj +SRCMOC = +OBJMOC = +DIST = +TARGET = ..\..\..\..\..\bin\gen_code.exe + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .c + +.cpp.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.cxx.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.cc.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.c.obj: + $(CC) -c $(CFLAGS) $(INCPATH) -o$@ $< + +####### Build rules + +all: $(TARGET) + +$(TARGET): $(OBJECTS) $(OBJMOC) + $(LINK) $(LFLAGS) $(OBJECTS) $(OBJMOC), $(TARGET),, $(LIBS) + +moc: $(SRCMOC) + +tmake: ../cmr/win32/symantec/gen_code/Makefile + +../cmr/win32/symantec/gen_code/Makefile: gen_code/gen_code.pro + tmake gen_code/gen_code.pro -o ../cmr/win32/symantec/gen_code/Makefile + +dist: + $(ZIP) gen_code/gen_code.zip gen_code/gen_code.pro $(SOURCES) $(HEADERS) $(DIST) + +clean: + -del ..\..\..\..\..\temp\cmr\gen_code\gen_code.obj + -del ..\..\..\..\..\temp\cmr\gen_code\ta_abstract.obj + -del ..\..\..\..\..\temp\cmr\gen_code\ta_def_ui.obj + -del ..\..\..\..\..\temp\cmr\gen_code\table_a.obj + -del ..\..\..\..\..\temp\cmr\gen_code\table_b.obj + -del ..\..\..\..\..\temp\cmr\gen_code\table_c.obj + -del ..\..\..\..\..\temp\cmr\gen_code\table_d.obj + -del ..\..\..\..\..\temp\cmr\gen_code\table_e.obj + -del ..\..\..\..\..\temp\cmr\gen_code\table_f.obj + -del ..\..\..\..\..\temp\cmr\gen_code\table_g.obj + -del ..\..\..\..\..\temp\cmr\gen_code\table_h.obj + -del ..\..\..\..\..\temp\cmr\gen_code\table_i.obj + -del ..\..\..\..\..\temp\cmr\gen_code\table_j.obj + -del ..\..\..\..\..\temp\cmr\gen_code\table_k.obj + -del ..\..\..\..\..\temp\cmr\gen_code\table_l.obj + -del ..\..\..\..\..\temp\cmr\gen_code\table_m.obj + -del ..\..\..\..\..\temp\cmr\gen_code\table_n.obj + -del ..\..\..\..\..\temp\cmr\gen_code\table_o.obj + -del ..\..\..\..\..\temp\cmr\gen_code\table_p.obj + -del ..\..\..\..\..\temp\cmr\gen_code\table_q.obj + -del ..\..\..\..\..\temp\cmr\gen_code\table_r.obj + -del ..\..\..\..\..\temp\cmr\gen_code\table_s.obj + -del ..\..\..\..\..\temp\cmr\gen_code\table_t.obj + -del ..\..\..\..\..\temp\cmr\gen_code\table_u.obj + -del ..\..\..\..\..\temp\cmr\gen_code\table_v.obj + -del ..\..\..\..\..\temp\cmr\gen_code\table_w.obj + -del ..\..\..\..\..\temp\cmr\gen_code\table_x.obj + -del ..\..\..\..\..\temp\cmr\gen_code\table_y.obj + -del ..\..\..\..\..\temp\cmr\gen_code\table_z.obj + -del $(TARGET) + -del ../../../../../bin/*.map + -del ../../../../../bin/*._xe + -del ../../../../../bin/*.tds + -del ../../../../../bin/*.pdb + -del ../../../../../bin/*.pbo + -del ../../../../../bin/*.pbi + -del ../../../../../bin/*.pbt + -del ../../../../../temp/cmr/*.pch + -del ../../../../../temp/cmr/*.idb + -del ../../../../../temp/cmr/gen_code/*.pch + -del ../../../../../temp/cmr/gen_code/*.idb + -del ../../../../../temp/cmr/gen_code/*.obj + +####### Compile + +..\..\..\..\..\temp\cmr\gen_code\gen_code.obj: ..\..\..\..\..\src\tools\gen_code\gen_code.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\gen_code\gen_code.obj ..\..\..\..\..\src\tools\gen_code\gen_code.c + +..\..\..\..\..\temp\cmr\gen_code\ta_abstract.obj: ..\..\..\..\..\src\ta_abstract\ta_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\gen_code\ta_abstract.obj ..\..\..\..\..\src\ta_abstract\ta_abstract.c + +..\..\..\..\..\temp\cmr\gen_code\ta_def_ui.obj: ..\..\..\..\..\src\ta_abstract\ta_def_ui.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\gen_code\ta_def_ui.obj ..\..\..\..\..\src\ta_abstract\ta_def_ui.c + +..\..\..\..\..\temp\cmr\gen_code\table_a.obj: ..\..\..\..\..\src\ta_abstract\tables\table_a.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\gen_code\table_a.obj ..\..\..\..\..\src\ta_abstract\tables\table_a.c + +..\..\..\..\..\temp\cmr\gen_code\table_b.obj: ..\..\..\..\..\src\ta_abstract\tables\table_b.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\gen_code\table_b.obj ..\..\..\..\..\src\ta_abstract\tables\table_b.c + +..\..\..\..\..\temp\cmr\gen_code\table_c.obj: ..\..\..\..\..\src\ta_abstract\tables\table_c.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\gen_code\table_c.obj ..\..\..\..\..\src\ta_abstract\tables\table_c.c + +..\..\..\..\..\temp\cmr\gen_code\table_d.obj: ..\..\..\..\..\src\ta_abstract\tables\table_d.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\gen_code\table_d.obj ..\..\..\..\..\src\ta_abstract\tables\table_d.c + +..\..\..\..\..\temp\cmr\gen_code\table_e.obj: ..\..\..\..\..\src\ta_abstract\tables\table_e.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\gen_code\table_e.obj ..\..\..\..\..\src\ta_abstract\tables\table_e.c + +..\..\..\..\..\temp\cmr\gen_code\table_f.obj: ..\..\..\..\..\src\ta_abstract\tables\table_f.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\gen_code\table_f.obj ..\..\..\..\..\src\ta_abstract\tables\table_f.c + +..\..\..\..\..\temp\cmr\gen_code\table_g.obj: ..\..\..\..\..\src\ta_abstract\tables\table_g.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\gen_code\table_g.obj ..\..\..\..\..\src\ta_abstract\tables\table_g.c + +..\..\..\..\..\temp\cmr\gen_code\table_h.obj: ..\..\..\..\..\src\ta_abstract\tables\table_h.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\gen_code\table_h.obj ..\..\..\..\..\src\ta_abstract\tables\table_h.c + +..\..\..\..\..\temp\cmr\gen_code\table_i.obj: ..\..\..\..\..\src\ta_abstract\tables\table_i.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\gen_code\table_i.obj ..\..\..\..\..\src\ta_abstract\tables\table_i.c + +..\..\..\..\..\temp\cmr\gen_code\table_j.obj: ..\..\..\..\..\src\ta_abstract\tables\table_j.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\gen_code\table_j.obj ..\..\..\..\..\src\ta_abstract\tables\table_j.c + +..\..\..\..\..\temp\cmr\gen_code\table_k.obj: ..\..\..\..\..\src\ta_abstract\tables\table_k.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\gen_code\table_k.obj ..\..\..\..\..\src\ta_abstract\tables\table_k.c + +..\..\..\..\..\temp\cmr\gen_code\table_l.obj: ..\..\..\..\..\src\ta_abstract\tables\table_l.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\gen_code\table_l.obj ..\..\..\..\..\src\ta_abstract\tables\table_l.c + +..\..\..\..\..\temp\cmr\gen_code\table_m.obj: ..\..\..\..\..\src\ta_abstract\tables\table_m.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\gen_code\table_m.obj ..\..\..\..\..\src\ta_abstract\tables\table_m.c + +..\..\..\..\..\temp\cmr\gen_code\table_n.obj: ..\..\..\..\..\src\ta_abstract\tables\table_n.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\gen_code\table_n.obj ..\..\..\..\..\src\ta_abstract\tables\table_n.c + +..\..\..\..\..\temp\cmr\gen_code\table_o.obj: ..\..\..\..\..\src\ta_abstract\tables\table_o.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\gen_code\table_o.obj ..\..\..\..\..\src\ta_abstract\tables\table_o.c + +..\..\..\..\..\temp\cmr\gen_code\table_p.obj: ..\..\..\..\..\src\ta_abstract\tables\table_p.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\gen_code\table_p.obj ..\..\..\..\..\src\ta_abstract\tables\table_p.c + +..\..\..\..\..\temp\cmr\gen_code\table_q.obj: ..\..\..\..\..\src\ta_abstract\tables\table_q.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\gen_code\table_q.obj ..\..\..\..\..\src\ta_abstract\tables\table_q.c + +..\..\..\..\..\temp\cmr\gen_code\table_r.obj: ..\..\..\..\..\src\ta_abstract\tables\table_r.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\gen_code\table_r.obj ..\..\..\..\..\src\ta_abstract\tables\table_r.c + +..\..\..\..\..\temp\cmr\gen_code\table_s.obj: ..\..\..\..\..\src\ta_abstract\tables\table_s.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\gen_code\table_s.obj ..\..\..\..\..\src\ta_abstract\tables\table_s.c + +..\..\..\..\..\temp\cmr\gen_code\table_t.obj: ..\..\..\..\..\src\ta_abstract\tables\table_t.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\gen_code\table_t.obj ..\..\..\..\..\src\ta_abstract\tables\table_t.c + +..\..\..\..\..\temp\cmr\gen_code\table_u.obj: ..\..\..\..\..\src\ta_abstract\tables\table_u.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\gen_code\table_u.obj ..\..\..\..\..\src\ta_abstract\tables\table_u.c + +..\..\..\..\..\temp\cmr\gen_code\table_v.obj: ..\..\..\..\..\src\ta_abstract\tables\table_v.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\gen_code\table_v.obj ..\..\..\..\..\src\ta_abstract\tables\table_v.c + +..\..\..\..\..\temp\cmr\gen_code\table_w.obj: ..\..\..\..\..\src\ta_abstract\tables\table_w.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\gen_code\table_w.obj ..\..\..\..\..\src\ta_abstract\tables\table_w.c + +..\..\..\..\..\temp\cmr\gen_code\table_x.obj: ..\..\..\..\..\src\ta_abstract\tables\table_x.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\gen_code\table_x.obj ..\..\..\..\..\src\ta_abstract\tables\table_x.c + +..\..\..\..\..\temp\cmr\gen_code\table_y.obj: ..\..\..\..\..\src\ta_abstract\tables\table_y.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\gen_code\table_y.obj ..\..\..\..\..\src\ta_abstract\tables\table_y.c + +..\..\..\..\..\temp\cmr\gen_code\table_z.obj: ..\..\..\..\..\src\ta_abstract\tables\table_z.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\gen_code\table_z.obj ..\..\..\..\..\src\ta_abstract\tables\table_z.c + diff --git a/make/cmr/win32/symantec/ta_abstract/Makefile b/make/cmr/win32/symantec/ta_abstract/Makefile new file mode 100644 index 000000000..f5f5692aa --- /dev/null +++ b/make/cmr/win32/symantec/ta_abstract/Makefile @@ -0,0 +1,295 @@ +############################################################################# +# Makefile for building ta_abstract_cmr +# Generated by tmake; +# Project: ta_abstract/ta_abstract +# Template: lib +############################################################################# + +####### Compiler, tools and options + +CC = sc +CXX = sc +CFLAGS = -mn -w2 -o -DWIN32 +CXXFLAGS= -mn -w2 -o -DWIN32 +INCPATH = -I"..\..\..\..\..\src\ta_common" -I"..\..\..\..\..\src\ta_abstract" -I"..\..\..\..\..\src\ta_abstract\tables" -I"..\..\..\..\..\src\ta_abstract\frames" -I"..\..\..\..\..\include" +LIB = lib /C /N /NOI /P:32 +MOC = moc + +ZIP = zip -r -9 + +####### Files + +HEADERS = +SOURCES = ..\..\..\..\..\src\ta_abstract\ta_abstract.c \ + ..\..\..\..\..\src\ta_abstract\ta_def_ui.c \ + ..\..\..\..\..\src\ta_abstract\ta_func_api.c \ + ..\..\..\..\..\src\ta_abstract\ta_group_idx.c \ + ..\..\..\..\..\src\ta_abstract\frames\ta_frame.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_a.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_b.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_c.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_d.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_e.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_f.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_g.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_h.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_i.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_j.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_k.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_l.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_m.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_n.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_o.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_p.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_q.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_r.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_s.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_t.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_u.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_v.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_w.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_x.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_y.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_z.c +OBJECTS = ..\..\..\..\..\temp\cmr\ta_abstract.obj \ + ..\..\..\..\..\temp\cmr\ta_def_ui.obj \ + ..\..\..\..\..\temp\cmr\ta_func_api.obj \ + ..\..\..\..\..\temp\cmr\ta_group_idx.obj \ + ..\..\..\..\..\temp\cmr\ta_frame.obj \ + ..\..\..\..\..\temp\cmr\table_a.obj \ + ..\..\..\..\..\temp\cmr\table_b.obj \ + ..\..\..\..\..\temp\cmr\table_c.obj \ + ..\..\..\..\..\temp\cmr\table_d.obj \ + ..\..\..\..\..\temp\cmr\table_e.obj \ + ..\..\..\..\..\temp\cmr\table_f.obj \ + ..\..\..\..\..\temp\cmr\table_g.obj \ + ..\..\..\..\..\temp\cmr\table_h.obj \ + ..\..\..\..\..\temp\cmr\table_i.obj \ + ..\..\..\..\..\temp\cmr\table_j.obj \ + ..\..\..\..\..\temp\cmr\table_k.obj \ + ..\..\..\..\..\temp\cmr\table_l.obj \ + ..\..\..\..\..\temp\cmr\table_m.obj \ + ..\..\..\..\..\temp\cmr\table_n.obj \ + ..\..\..\..\..\temp\cmr\table_o.obj \ + ..\..\..\..\..\temp\cmr\table_p.obj \ + ..\..\..\..\..\temp\cmr\table_q.obj \ + ..\..\..\..\..\temp\cmr\table_r.obj \ + ..\..\..\..\..\temp\cmr\table_s.obj \ + ..\..\..\..\..\temp\cmr\table_t.obj \ + ..\..\..\..\..\temp\cmr\table_u.obj \ + ..\..\..\..\..\temp\cmr\table_v.obj \ + ..\..\..\..\..\temp\cmr\table_w.obj \ + ..\..\..\..\..\temp\cmr\table_x.obj \ + ..\..\..\..\..\temp\cmr\table_y.obj \ + ..\..\..\..\..\temp\cmr\table_z.obj +SRCMOC = +OBJMOC = +DIST = +TARGET = ..\..\..\..\..\lib\ta_abstract_cmr.lib + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .c + +.cpp.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.cxx.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.cc.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.c.obj: + $(CC) -c $(CFLAGS) $(INCPATH) -o$@ $< + +####### Build rules + +all: $(TARGET) + +$(TARGET): $(OBJECTS) $(OBJMOC) + -del $(TARGET) + $(LIB) $(TARGET) ..\..\..\..\..\temp\cmr\ta_abstract.obj \ ++..\..\..\..\..\temp\cmr\ta_def_ui.obj \ ++..\..\..\..\..\temp\cmr\ta_func_api.obj \ ++..\..\..\..\..\temp\cmr\ta_group_idx.obj \ ++..\..\..\..\..\temp\cmr\ta_frame.obj \ ++..\..\..\..\..\temp\cmr\table_a.obj \ ++..\..\..\..\..\temp\cmr\table_b.obj \ ++..\..\..\..\..\temp\cmr\table_c.obj \ ++..\..\..\..\..\temp\cmr\table_d.obj \ ++..\..\..\..\..\temp\cmr\table_e.obj \ ++..\..\..\..\..\temp\cmr\table_f.obj \ ++..\..\..\..\..\temp\cmr\table_g.obj \ ++..\..\..\..\..\temp\cmr\table_h.obj \ ++..\..\..\..\..\temp\cmr\table_i.obj \ ++..\..\..\..\..\temp\cmr\table_j.obj \ ++..\..\..\..\..\temp\cmr\table_k.obj \ ++..\..\..\..\..\temp\cmr\table_l.obj \ ++..\..\..\..\..\temp\cmr\table_m.obj \ ++..\..\..\..\..\temp\cmr\table_n.obj \ ++..\..\..\..\..\temp\cmr\table_o.obj \ ++..\..\..\..\..\temp\cmr\table_p.obj \ ++..\..\..\..\..\temp\cmr\table_q.obj \ ++..\..\..\..\..\temp\cmr\table_r.obj \ ++..\..\..\..\..\temp\cmr\table_s.obj \ ++..\..\..\..\..\temp\cmr\table_t.obj \ ++..\..\..\..\..\temp\cmr\table_u.obj \ ++..\..\..\..\..\temp\cmr\table_v.obj \ ++..\..\..\..\..\temp\cmr\table_w.obj \ ++..\..\..\..\..\temp\cmr\table_x.obj \ ++..\..\..\..\..\temp\cmr\table_y.obj \ ++..\..\..\..\..\temp\cmr\table_z.obj \ ++,; + +moc: $(SRCMOC) + +tmake: ../cmr/win32/symantec/ta_abstract/Makefile + +../cmr/win32/symantec/ta_abstract/Makefile: ta_abstract/ta_abstract.pro + tmake ta_abstract/ta_abstract.pro -o ../cmr/win32/symantec/ta_abstract/Makefile + +dist: + $(ZIP) ta_abstract/ta_abstract.zip ta_abstract/ta_abstract.pro $(SOURCES) $(HEADERS) $(DIST) + +clean: + -del ..\..\..\..\..\temp\cmr\ta_abstract.obj + -del ..\..\..\..\..\temp\cmr\ta_def_ui.obj + -del ..\..\..\..\..\temp\cmr\ta_func_api.obj + -del ..\..\..\..\..\temp\cmr\ta_group_idx.obj + -del ..\..\..\..\..\temp\cmr\ta_frame.obj + -del ..\..\..\..\..\temp\cmr\table_a.obj + -del ..\..\..\..\..\temp\cmr\table_b.obj + -del ..\..\..\..\..\temp\cmr\table_c.obj + -del ..\..\..\..\..\temp\cmr\table_d.obj + -del ..\..\..\..\..\temp\cmr\table_e.obj + -del ..\..\..\..\..\temp\cmr\table_f.obj + -del ..\..\..\..\..\temp\cmr\table_g.obj + -del ..\..\..\..\..\temp\cmr\table_h.obj + -del ..\..\..\..\..\temp\cmr\table_i.obj + -del ..\..\..\..\..\temp\cmr\table_j.obj + -del ..\..\..\..\..\temp\cmr\table_k.obj + -del ..\..\..\..\..\temp\cmr\table_l.obj + -del ..\..\..\..\..\temp\cmr\table_m.obj + -del ..\..\..\..\..\temp\cmr\table_n.obj + -del ..\..\..\..\..\temp\cmr\table_o.obj + -del ..\..\..\..\..\temp\cmr\table_p.obj + -del ..\..\..\..\..\temp\cmr\table_q.obj + -del ..\..\..\..\..\temp\cmr\table_r.obj + -del ..\..\..\..\..\temp\cmr\table_s.obj + -del ..\..\..\..\..\temp\cmr\table_t.obj + -del ..\..\..\..\..\temp\cmr\table_u.obj + -del ..\..\..\..\..\temp\cmr\table_v.obj + -del ..\..\..\..\..\temp\cmr\table_w.obj + -del ..\..\..\..\..\temp\cmr\table_x.obj + -del ..\..\..\..\..\temp\cmr\table_y.obj + -del ..\..\..\..\..\temp\cmr\table_z.obj + -del $(TARGET) + -del ../../../../../bin/*.map + -del ../../../../../bin/*._xe + -del ../../../../../bin/*.tds + -del ../../../../../bin/*.pdb + -del ../../../../../bin/*.pbo + -del ../../../../../bin/*.pbi + -del ../../../../../bin/*.pbt + -del ../../../../../temp/cmr/*.pch + -del ../../../../../temp/cmr/*.idb + -del ../../../../../temp/cmr/ta_abstract/*.pch + -del ../../../../../temp/cmr/ta_abstract/*.idb + -del ../../../../../temp/cmr/ta_abstract/*.obj + +####### Compile + +..\..\..\..\..\temp\cmr\ta_abstract.obj: ..\..\..\..\..\src\ta_abstract\ta_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_abstract.obj ..\..\..\..\..\src\ta_abstract\ta_abstract.c + +..\..\..\..\..\temp\cmr\ta_def_ui.obj: ..\..\..\..\..\src\ta_abstract\ta_def_ui.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_def_ui.obj ..\..\..\..\..\src\ta_abstract\ta_def_ui.c + +..\..\..\..\..\temp\cmr\ta_func_api.obj: ..\..\..\..\..\src\ta_abstract\ta_func_api.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_func_api.obj ..\..\..\..\..\src\ta_abstract\ta_func_api.c + +..\..\..\..\..\temp\cmr\ta_group_idx.obj: ..\..\..\..\..\src\ta_abstract\ta_group_idx.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_group_idx.obj ..\..\..\..\..\src\ta_abstract\ta_group_idx.c + +..\..\..\..\..\temp\cmr\ta_frame.obj: ..\..\..\..\..\src\ta_abstract\frames\ta_frame.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_frame.obj ..\..\..\..\..\src\ta_abstract\frames\ta_frame.c + +..\..\..\..\..\temp\cmr\table_a.obj: ..\..\..\..\..\src\ta_abstract\tables\table_a.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\table_a.obj ..\..\..\..\..\src\ta_abstract\tables\table_a.c + +..\..\..\..\..\temp\cmr\table_b.obj: ..\..\..\..\..\src\ta_abstract\tables\table_b.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\table_b.obj ..\..\..\..\..\src\ta_abstract\tables\table_b.c + +..\..\..\..\..\temp\cmr\table_c.obj: ..\..\..\..\..\src\ta_abstract\tables\table_c.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\table_c.obj ..\..\..\..\..\src\ta_abstract\tables\table_c.c + +..\..\..\..\..\temp\cmr\table_d.obj: ..\..\..\..\..\src\ta_abstract\tables\table_d.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\table_d.obj ..\..\..\..\..\src\ta_abstract\tables\table_d.c + +..\..\..\..\..\temp\cmr\table_e.obj: ..\..\..\..\..\src\ta_abstract\tables\table_e.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\table_e.obj ..\..\..\..\..\src\ta_abstract\tables\table_e.c + +..\..\..\..\..\temp\cmr\table_f.obj: ..\..\..\..\..\src\ta_abstract\tables\table_f.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\table_f.obj ..\..\..\..\..\src\ta_abstract\tables\table_f.c + +..\..\..\..\..\temp\cmr\table_g.obj: ..\..\..\..\..\src\ta_abstract\tables\table_g.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\table_g.obj ..\..\..\..\..\src\ta_abstract\tables\table_g.c + +..\..\..\..\..\temp\cmr\table_h.obj: ..\..\..\..\..\src\ta_abstract\tables\table_h.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\table_h.obj ..\..\..\..\..\src\ta_abstract\tables\table_h.c + +..\..\..\..\..\temp\cmr\table_i.obj: ..\..\..\..\..\src\ta_abstract\tables\table_i.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\table_i.obj ..\..\..\..\..\src\ta_abstract\tables\table_i.c + +..\..\..\..\..\temp\cmr\table_j.obj: ..\..\..\..\..\src\ta_abstract\tables\table_j.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\table_j.obj ..\..\..\..\..\src\ta_abstract\tables\table_j.c + +..\..\..\..\..\temp\cmr\table_k.obj: ..\..\..\..\..\src\ta_abstract\tables\table_k.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\table_k.obj ..\..\..\..\..\src\ta_abstract\tables\table_k.c + +..\..\..\..\..\temp\cmr\table_l.obj: ..\..\..\..\..\src\ta_abstract\tables\table_l.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\table_l.obj ..\..\..\..\..\src\ta_abstract\tables\table_l.c + +..\..\..\..\..\temp\cmr\table_m.obj: ..\..\..\..\..\src\ta_abstract\tables\table_m.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\table_m.obj ..\..\..\..\..\src\ta_abstract\tables\table_m.c + +..\..\..\..\..\temp\cmr\table_n.obj: ..\..\..\..\..\src\ta_abstract\tables\table_n.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\table_n.obj ..\..\..\..\..\src\ta_abstract\tables\table_n.c + +..\..\..\..\..\temp\cmr\table_o.obj: ..\..\..\..\..\src\ta_abstract\tables\table_o.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\table_o.obj ..\..\..\..\..\src\ta_abstract\tables\table_o.c + +..\..\..\..\..\temp\cmr\table_p.obj: ..\..\..\..\..\src\ta_abstract\tables\table_p.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\table_p.obj ..\..\..\..\..\src\ta_abstract\tables\table_p.c + +..\..\..\..\..\temp\cmr\table_q.obj: ..\..\..\..\..\src\ta_abstract\tables\table_q.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\table_q.obj ..\..\..\..\..\src\ta_abstract\tables\table_q.c + +..\..\..\..\..\temp\cmr\table_r.obj: ..\..\..\..\..\src\ta_abstract\tables\table_r.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\table_r.obj ..\..\..\..\..\src\ta_abstract\tables\table_r.c + +..\..\..\..\..\temp\cmr\table_s.obj: ..\..\..\..\..\src\ta_abstract\tables\table_s.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\table_s.obj ..\..\..\..\..\src\ta_abstract\tables\table_s.c + +..\..\..\..\..\temp\cmr\table_t.obj: ..\..\..\..\..\src\ta_abstract\tables\table_t.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\table_t.obj ..\..\..\..\..\src\ta_abstract\tables\table_t.c + +..\..\..\..\..\temp\cmr\table_u.obj: ..\..\..\..\..\src\ta_abstract\tables\table_u.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\table_u.obj ..\..\..\..\..\src\ta_abstract\tables\table_u.c + +..\..\..\..\..\temp\cmr\table_v.obj: ..\..\..\..\..\src\ta_abstract\tables\table_v.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\table_v.obj ..\..\..\..\..\src\ta_abstract\tables\table_v.c + +..\..\..\..\..\temp\cmr\table_w.obj: ..\..\..\..\..\src\ta_abstract\tables\table_w.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\table_w.obj ..\..\..\..\..\src\ta_abstract\tables\table_w.c + +..\..\..\..\..\temp\cmr\table_x.obj: ..\..\..\..\..\src\ta_abstract\tables\table_x.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\table_x.obj ..\..\..\..\..\src\ta_abstract\tables\table_x.c + +..\..\..\..\..\temp\cmr\table_y.obj: ..\..\..\..\..\src\ta_abstract\tables\table_y.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\table_y.obj ..\..\..\..\..\src\ta_abstract\tables\table_y.c + +..\..\..\..\..\temp\cmr\table_z.obj: ..\..\..\..\..\src\ta_abstract\tables\table_z.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\table_z.obj ..\..\..\..\..\src\ta_abstract\tables\table_z.c + diff --git a/make/cmr/win32/symantec/ta_common/Makefile b/make/cmr/win32/symantec/ta_common/Makefile new file mode 100644 index 000000000..1dbbb8e62 --- /dev/null +++ b/make/cmr/win32/symantec/ta_common/Makefile @@ -0,0 +1,99 @@ +############################################################################# +# Makefile for building ta_common_cmr +# Generated by tmake; +# Project: ta_common/ta_common +# Template: lib +############################################################################# + +####### Compiler, tools and options + +CC = sc +CXX = sc +CFLAGS = -mn -w2 -o -DWIN32 +CXXFLAGS= -mn -w2 -o -DWIN32 +INCPATH = -I"..\..\..\..\..\src\ta_common" -I"..\..\..\..\..\include" +LIB = lib /C /N /NOI /P:32 +MOC = moc + +ZIP = zip -r -9 + +####### Files + +HEADERS = +SOURCES = ..\..\..\..\..\src\ta_common\ta_global.c \ + ..\..\..\..\..\src\ta_common\ta_retcode.c \ + ..\..\..\..\..\src\ta_common\ta_version.c +OBJECTS = ..\..\..\..\..\temp\cmr\ta_global.obj \ + ..\..\..\..\..\temp\cmr\ta_retcode.obj \ + ..\..\..\..\..\temp\cmr\ta_version.obj +SRCMOC = +OBJMOC = +DIST = +TARGET = ..\..\..\..\..\lib\ta_common_cmr.lib + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .c + +.cpp.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.cxx.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.cc.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.c.obj: + $(CC) -c $(CFLAGS) $(INCPATH) -o$@ $< + +####### Build rules + +all: $(TARGET) + +$(TARGET): $(OBJECTS) $(OBJMOC) + -del $(TARGET) + $(LIB) $(TARGET) ..\..\..\..\..\temp\cmr\ta_global.obj \ ++..\..\..\..\..\temp\cmr\ta_retcode.obj \ ++..\..\..\..\..\temp\cmr\ta_version.obj \ ++,; + +moc: $(SRCMOC) + +tmake: ../cmr/win32/symantec/ta_common/Makefile + +../cmr/win32/symantec/ta_common/Makefile: ta_common/ta_common.pro + tmake ta_common/ta_common.pro -o ../cmr/win32/symantec/ta_common/Makefile + +dist: + $(ZIP) ta_common/ta_common.zip ta_common/ta_common.pro $(SOURCES) $(HEADERS) $(DIST) + +clean: + -del ..\..\..\..\..\temp\cmr\ta_global.obj + -del ..\..\..\..\..\temp\cmr\ta_retcode.obj + -del ..\..\..\..\..\temp\cmr\ta_version.obj + -del $(TARGET) + -del ../../../../../bin/*.map + -del ../../../../../bin/*._xe + -del ../../../../../bin/*.tds + -del ../../../../../bin/*.pdb + -del ../../../../../bin/*.pbo + -del ../../../../../bin/*.pbi + -del ../../../../../bin/*.pbt + -del ../../../../../temp/cmr/*.pch + -del ../../../../../temp/cmr/*.idb + -del ../../../../../temp/cmr/ta_common_cmr/*.pch + -del ../../../../../temp/cmr/ta_common_cmr/*.idb + -del ../../../../../temp/cmr/ta_common_cmr/*.obj + +####### Compile + +..\..\..\..\..\temp\cmr\ta_global.obj: ..\..\..\..\..\src\ta_common\ta_global.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_global.obj ..\..\..\..\..\src\ta_common\ta_global.c + +..\..\..\..\..\temp\cmr\ta_retcode.obj: ..\..\..\..\..\src\ta_common\ta_retcode.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_retcode.obj ..\..\..\..\..\src\ta_common\ta_retcode.c + +..\..\..\..\..\temp\cmr\ta_version.obj: ..\..\..\..\..\src\ta_common\ta_version.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_version.obj ..\..\..\..\..\src\ta_common\ta_version.c + diff --git a/make/cmr/win32/symantec/ta_func/Makefile b/make/cmr/win32/symantec/ta_func/Makefile new file mode 100644 index 000000000..b7030d07b --- /dev/null +++ b/make/cmr/win32/symantec/ta_func/Makefile @@ -0,0 +1,1191 @@ +############################################################################# +# Makefile for building ta_func_cmr +# Generated by tmake; +# Project: ta_func/ta_func +# Template: lib +############################################################################# + +####### Compiler, tools and options + +CC = sc +CXX = sc +CFLAGS = -mn -w2 -o -DWIN32 +CXXFLAGS= -mn -w2 -o -DWIN32 +INCPATH = -I"..\..\..\..\..\src\ta_common" -I"\n" -I"..\..\..\..\..\include" +LIB = lib /C /N /NOI /P:32 +MOC = moc + +ZIP = zip -r -9 + +####### Files + +HEADERS = +SOURCES = ..\..\..\..\..\src\ta_func\ta_utility.c \ + ..\..\..\..\..\src\ta_func\ta_ACOS.c \ + ..\..\..\..\..\src\ta_func\ta_AD.c \ + ..\..\..\..\..\src\ta_func\ta_ADD.c \ + ..\..\..\..\..\src\ta_func\ta_ADOSC.c \ + ..\..\..\..\..\src\ta_func\ta_ADX.c \ + ..\..\..\..\..\src\ta_func\ta_ADXR.c \ + ..\..\..\..\..\src\ta_func\ta_APO.c \ + ..\..\..\..\..\src\ta_func\ta_AROON.c \ + ..\..\..\..\..\src\ta_func\ta_AROONOSC.c \ + ..\..\..\..\..\src\ta_func\ta_ASIN.c \ + ..\..\..\..\..\src\ta_func\ta_ATAN.c \ + ..\..\..\..\..\src\ta_func\ta_ATR.c \ + ..\..\..\..\..\src\ta_func\ta_AVGPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_BBANDS.c \ + ..\..\..\..\..\src\ta_func\ta_BETA.c \ + ..\..\..\..\..\src\ta_func\ta_BOP.c \ + ..\..\..\..\..\src\ta_func\ta_CCI.c \ + ..\..\..\..\..\src\ta_func\ta_CDL2CROWS.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3BLACKCROWS.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3INSIDE.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3LINESTRIKE.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3OUTSIDE.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3STARSINSOUTH.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3WHITESOLDIERS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLABANDONEDBABY.c \ + ..\..\..\..\..\src\ta_func\ta_CDLADVANCEBLOCK.c \ + ..\..\..\..\..\src\ta_func\ta_CDLBELTHOLD.c \ + ..\..\..\..\..\src\ta_func\ta_CDLBREAKAWAY.c \ + ..\..\..\..\..\src\ta_func\ta_CDLCLOSINGMARUBOZU.c \ + ..\..\..\..\..\src\ta_func\ta_CDLCONCEALBABYSWALL.c \ + ..\..\..\..\..\src\ta_func\ta_CDLCOUNTERATTACK.c \ + ..\..\..\..\..\src\ta_func\ta_CDLDARKCLOUDCOVER.c \ + ..\..\..\..\..\src\ta_func\ta_CDLDOJI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLDOJISTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLDRAGONFLYDOJI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLENGULFING.c \ + ..\..\..\..\..\src\ta_func\ta_CDLEVENINGDOJISTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLEVENINGSTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLGAPSIDESIDEWHITE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLGRAVESTONEDOJI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHAMMER.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHANGINGMAN.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHARAMI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHARAMICROSS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHIGHWAVE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKEMOD.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHOMINGPIGEON.c \ + ..\..\..\..\..\src\ta_func\ta_CDLIDENTICAL3CROWS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLINNECK.c \ + ..\..\..\..\..\src\ta_func\ta_CDLINVERTEDHAMMER.c \ + ..\..\..\..\..\src\ta_func\ta_CDLKICKING.c \ + ..\..\..\..\..\src\ta_func\ta_CDLKICKINGBYLENGTH.c \ + ..\..\..\..\..\src\ta_func\ta_CDLLADDERBOTTOM.c \ + ..\..\..\..\..\src\ta_func\ta_CDLLONGLEGGEDDOJI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLLONGLINE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMARUBOZU.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMATCHINGLOW.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMATHOLD.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMORNINGDOJISTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMORNINGSTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLONNECK.c \ + ..\..\..\..\..\src\ta_func\ta_CDLPIERCING.c \ + ..\..\..\..\..\src\ta_func\ta_CDLRICKSHAWMAN.c \ + ..\..\..\..\..\src\ta_func\ta_CDLRISEFALL3METHODS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSEPARATINGLINES.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSHOOTINGSTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSHORTLINE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSPINNINGTOP.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSTALLEDPATTERN.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSTICKSANDWICH.c \ + ..\..\..\..\..\src\ta_func\ta_CDLTAKURI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLTASUKIGAP.c \ + ..\..\..\..\..\src\ta_func\ta_CDLTHRUSTING.c \ + ..\..\..\..\..\src\ta_func\ta_CDLTRISTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLUNIQUE3RIVER.c \ + ..\..\..\..\..\src\ta_func\ta_CDLUPSIDEGAP2CROWS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLXSIDEGAP3METHODS.c \ + ..\..\..\..\..\src\ta_func\ta_CEIL.c \ + ..\..\..\..\..\src\ta_func\ta_CMO.c \ + ..\..\..\..\..\src\ta_func\ta_CORREL.c \ + ..\..\..\..\..\src\ta_func\ta_COS.c \ + ..\..\..\..\..\src\ta_func\ta_COSH.c \ + ..\..\..\..\..\src\ta_func\ta_DEMA.c \ + ..\..\..\..\..\src\ta_func\ta_DIV.c \ + ..\..\..\..\..\src\ta_func\ta_DX.c \ + ..\..\..\..\..\src\ta_func\ta_EMA.c \ + ..\..\..\..\..\src\ta_func\ta_EXP.c \ + ..\..\..\..\..\src\ta_func\ta_FLOOR.c \ + ..\..\..\..\..\src\ta_func\ta_HT_DCPERIOD.c \ + ..\..\..\..\..\src\ta_func\ta_HT_DCPHASE.c \ + ..\..\..\..\..\src\ta_func\ta_HT_PHASOR.c \ + ..\..\..\..\..\src\ta_func\ta_HT_SINE.c \ + ..\..\..\..\..\src\ta_func\ta_HT_TRENDLINE.c \ + ..\..\..\..\..\src\ta_func\ta_HT_TRENDMODE.c \ + ..\..\..\..\..\src\ta_func\ta_KAMA.c \ + ..\..\..\..\..\src\ta_func\ta_LINEARREG.c \ + ..\..\..\..\..\src\ta_func\ta_LINEARREG_ANGLE.c \ + ..\..\..\..\..\src\ta_func\ta_LINEARREG_INTERCEPT.c \ + ..\..\..\..\..\src\ta_func\ta_LINEARREG_SLOPE.c \ + ..\..\..\..\..\src\ta_func\ta_LN.c \ + ..\..\..\..\..\src\ta_func\ta_LOG10.c \ + ..\..\..\..\..\src\ta_func\ta_MA.c \ + ..\..\..\..\..\src\ta_func\ta_MACD.c \ + ..\..\..\..\..\src\ta_func\ta_MACDEXT.c \ + ..\..\..\..\..\src\ta_func\ta_MACDFIX.c \ + ..\..\..\..\..\src\ta_func\ta_MAMA.c \ + ..\..\..\..\..\src\ta_func\ta_MAVP.c \ + ..\..\..\..\..\src\ta_func\ta_MAX.c \ + ..\..\..\..\..\src\ta_func\ta_MAXINDEX.c \ + ..\..\..\..\..\src\ta_func\ta_MEDPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_MFI.c \ + ..\..\..\..\..\src\ta_func\ta_MIDPOINT.c \ + ..\..\..\..\..\src\ta_func\ta_MIDPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_MIN.c \ + ..\..\..\..\..\src\ta_func\ta_MININDEX.c \ + ..\..\..\..\..\src\ta_func\ta_MINMAX.c \ + ..\..\..\..\..\src\ta_func\ta_MINMAXINDEX.c \ + ..\..\..\..\..\src\ta_func\ta_MINUS_DI.c \ + ..\..\..\..\..\src\ta_func\ta_MINUS_DM.c \ + ..\..\..\..\..\src\ta_func\ta_MOM.c \ + ..\..\..\..\..\src\ta_func\ta_MULT.c \ + ..\..\..\..\..\src\ta_func\ta_NATR.c \ + ..\..\..\..\..\src\ta_func\ta_OBV.c \ + ..\..\..\..\..\src\ta_func\ta_PLUS_DI.c \ + ..\..\..\..\..\src\ta_func\ta_PLUS_DM.c \ + ..\..\..\..\..\src\ta_func\ta_PPO.c \ + ..\..\..\..\..\src\ta_func\ta_ROC.c \ + ..\..\..\..\..\src\ta_func\ta_ROCP.c \ + ..\..\..\..\..\src\ta_func\ta_ROCR.c \ + ..\..\..\..\..\src\ta_func\ta_ROCR100.c \ + ..\..\..\..\..\src\ta_func\ta_RSI.c \ + ..\..\..\..\..\src\ta_func\ta_SAR.c \ + ..\..\..\..\..\src\ta_func\ta_SAREXT.c \ + ..\..\..\..\..\src\ta_func\ta_SIN.c \ + ..\..\..\..\..\src\ta_func\ta_SINH.c \ + ..\..\..\..\..\src\ta_func\ta_SMA.c \ + ..\..\..\..\..\src\ta_func\ta_SQRT.c \ + ..\..\..\..\..\src\ta_func\ta_STDDEV.c \ + ..\..\..\..\..\src\ta_func\ta_STOCH.c \ + ..\..\..\..\..\src\ta_func\ta_STOCHF.c \ + ..\..\..\..\..\src\ta_func\ta_STOCHRSI.c \ + ..\..\..\..\..\src\ta_func\ta_SUB.c \ + ..\..\..\..\..\src\ta_func\ta_SUM.c \ + ..\..\..\..\..\src\ta_func\ta_T3.c \ + ..\..\..\..\..\src\ta_func\ta_TAN.c \ + ..\..\..\..\..\src\ta_func\ta_TANH.c \ + ..\..\..\..\..\src\ta_func\ta_TEMA.c \ + ..\..\..\..\..\src\ta_func\ta_TRANGE.c \ + ..\..\..\..\..\src\ta_func\ta_TRIMA.c \ + ..\..\..\..\..\src\ta_func\ta_TRIX.c \ + ..\..\..\..\..\src\ta_func\ta_TSF.c \ + ..\..\..\..\..\src\ta_func\ta_TYPPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_ULTOSC.c \ + ..\..\..\..\..\src\ta_func\ta_VAR.c \ + ..\..\..\..\..\src\ta_func\ta_WCLPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_WILLR.c \ + ..\..\..\..\..\src\ta_func\ta_WMA.c +OBJECTS = ..\..\..\..\..\temp\cmr\ta_utility.obj \ + ..\..\..\..\..\temp\cmr\ta_ACOS.obj \ + ..\..\..\..\..\temp\cmr\ta_AD.obj \ + ..\..\..\..\..\temp\cmr\ta_ADD.obj \ + ..\..\..\..\..\temp\cmr\ta_ADOSC.obj \ + ..\..\..\..\..\temp\cmr\ta_ADX.obj \ + ..\..\..\..\..\temp\cmr\ta_ADXR.obj \ + ..\..\..\..\..\temp\cmr\ta_APO.obj \ + ..\..\..\..\..\temp\cmr\ta_AROON.obj \ + ..\..\..\..\..\temp\cmr\ta_AROONOSC.obj \ + ..\..\..\..\..\temp\cmr\ta_ASIN.obj \ + ..\..\..\..\..\temp\cmr\ta_ATAN.obj \ + ..\..\..\..\..\temp\cmr\ta_ATR.obj \ + ..\..\..\..\..\temp\cmr\ta_AVGPRICE.obj \ + ..\..\..\..\..\temp\cmr\ta_BBANDS.obj \ + ..\..\..\..\..\temp\cmr\ta_BETA.obj \ + ..\..\..\..\..\temp\cmr\ta_BOP.obj \ + ..\..\..\..\..\temp\cmr\ta_CCI.obj \ + ..\..\..\..\..\temp\cmr\ta_CDL2CROWS.obj \ + ..\..\..\..\..\temp\cmr\ta_CDL3BLACKCROWS.obj \ + ..\..\..\..\..\temp\cmr\ta_CDL3INSIDE.obj \ + ..\..\..\..\..\temp\cmr\ta_CDL3LINESTRIKE.obj \ + ..\..\..\..\..\temp\cmr\ta_CDL3OUTSIDE.obj \ + ..\..\..\..\..\temp\cmr\ta_CDL3STARSINSOUTH.obj \ + ..\..\..\..\..\temp\cmr\ta_CDL3WHITESOLDIERS.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLABANDONEDBABY.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLADVANCEBLOCK.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLBELTHOLD.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLBREAKAWAY.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLCLOSINGMARUBOZU.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLCONCEALBABYSWALL.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLCOUNTERATTACK.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLDARKCLOUDCOVER.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLDOJI.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLDOJISTAR.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLDRAGONFLYDOJI.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLENGULFING.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLEVENINGDOJISTAR.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLEVENINGSTAR.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLGAPSIDESIDEWHITE.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLGRAVESTONEDOJI.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLHAMMER.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLHANGINGMAN.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLHARAMI.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLHARAMICROSS.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLHIGHWAVE.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLHIKKAKE.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLHIKKAKEMOD.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLHOMINGPIGEON.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLIDENTICAL3CROWS.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLINNECK.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLINVERTEDHAMMER.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLKICKING.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLKICKINGBYLENGTH.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLLADDERBOTTOM.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLLONGLEGGEDDOJI.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLLONGLINE.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLMARUBOZU.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLMATCHINGLOW.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLMATHOLD.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLMORNINGDOJISTAR.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLMORNINGSTAR.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLONNECK.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLPIERCING.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLRICKSHAWMAN.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLRISEFALL3METHODS.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLSEPARATINGLINES.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLSHOOTINGSTAR.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLSHORTLINE.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLSPINNINGTOP.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLSTALLEDPATTERN.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLSTICKSANDWICH.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLTAKURI.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLTASUKIGAP.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLTHRUSTING.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLTRISTAR.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLUNIQUE3RIVER.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLUPSIDEGAP2CROWS.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLXSIDEGAP3METHODS.obj \ + ..\..\..\..\..\temp\cmr\ta_CEIL.obj \ + ..\..\..\..\..\temp\cmr\ta_CMO.obj \ + ..\..\..\..\..\temp\cmr\ta_CORREL.obj \ + ..\..\..\..\..\temp\cmr\ta_COS.obj \ + ..\..\..\..\..\temp\cmr\ta_COSH.obj \ + ..\..\..\..\..\temp\cmr\ta_DEMA.obj \ + ..\..\..\..\..\temp\cmr\ta_DIV.obj \ + ..\..\..\..\..\temp\cmr\ta_DX.obj \ + ..\..\..\..\..\temp\cmr\ta_EMA.obj \ + ..\..\..\..\..\temp\cmr\ta_EXP.obj \ + ..\..\..\..\..\temp\cmr\ta_FLOOR.obj \ + ..\..\..\..\..\temp\cmr\ta_HT_DCPERIOD.obj \ + ..\..\..\..\..\temp\cmr\ta_HT_DCPHASE.obj \ + ..\..\..\..\..\temp\cmr\ta_HT_PHASOR.obj \ + ..\..\..\..\..\temp\cmr\ta_HT_SINE.obj \ + ..\..\..\..\..\temp\cmr\ta_HT_TRENDLINE.obj \ + ..\..\..\..\..\temp\cmr\ta_HT_TRENDMODE.obj \ + ..\..\..\..\..\temp\cmr\ta_KAMA.obj \ + ..\..\..\..\..\temp\cmr\ta_LINEARREG.obj \ + ..\..\..\..\..\temp\cmr\ta_LINEARREG_ANGLE.obj \ + ..\..\..\..\..\temp\cmr\ta_LINEARREG_INTERCEPT.obj \ + ..\..\..\..\..\temp\cmr\ta_LINEARREG_SLOPE.obj \ + ..\..\..\..\..\temp\cmr\ta_LN.obj \ + ..\..\..\..\..\temp\cmr\ta_LOG10.obj \ + ..\..\..\..\..\temp\cmr\ta_MA.obj \ + ..\..\..\..\..\temp\cmr\ta_MACD.obj \ + ..\..\..\..\..\temp\cmr\ta_MACDEXT.obj \ + ..\..\..\..\..\temp\cmr\ta_MACDFIX.obj \ + ..\..\..\..\..\temp\cmr\ta_MAMA.obj \ + ..\..\..\..\..\temp\cmr\ta_MAVP.obj \ + ..\..\..\..\..\temp\cmr\ta_MAX.obj \ + ..\..\..\..\..\temp\cmr\ta_MAXINDEX.obj \ + ..\..\..\..\..\temp\cmr\ta_MEDPRICE.obj \ + ..\..\..\..\..\temp\cmr\ta_MFI.obj \ + ..\..\..\..\..\temp\cmr\ta_MIDPOINT.obj \ + ..\..\..\..\..\temp\cmr\ta_MIDPRICE.obj \ + ..\..\..\..\..\temp\cmr\ta_MIN.obj \ + ..\..\..\..\..\temp\cmr\ta_MININDEX.obj \ + ..\..\..\..\..\temp\cmr\ta_MINMAX.obj \ + ..\..\..\..\..\temp\cmr\ta_MINMAXINDEX.obj \ + ..\..\..\..\..\temp\cmr\ta_MINUS_DI.obj \ + ..\..\..\..\..\temp\cmr\ta_MINUS_DM.obj \ + ..\..\..\..\..\temp\cmr\ta_MOM.obj \ + ..\..\..\..\..\temp\cmr\ta_MULT.obj \ + ..\..\..\..\..\temp\cmr\ta_NATR.obj \ + ..\..\..\..\..\temp\cmr\ta_OBV.obj \ + ..\..\..\..\..\temp\cmr\ta_PLUS_DI.obj \ + ..\..\..\..\..\temp\cmr\ta_PLUS_DM.obj \ + ..\..\..\..\..\temp\cmr\ta_PPO.obj \ + ..\..\..\..\..\temp\cmr\ta_ROC.obj \ + ..\..\..\..\..\temp\cmr\ta_ROCP.obj \ + ..\..\..\..\..\temp\cmr\ta_ROCR.obj \ + ..\..\..\..\..\temp\cmr\ta_ROCR100.obj \ + ..\..\..\..\..\temp\cmr\ta_RSI.obj \ + ..\..\..\..\..\temp\cmr\ta_SAR.obj \ + ..\..\..\..\..\temp\cmr\ta_SAREXT.obj \ + ..\..\..\..\..\temp\cmr\ta_SIN.obj \ + ..\..\..\..\..\temp\cmr\ta_SINH.obj \ + ..\..\..\..\..\temp\cmr\ta_SMA.obj \ + ..\..\..\..\..\temp\cmr\ta_SQRT.obj \ + ..\..\..\..\..\temp\cmr\ta_STDDEV.obj \ + ..\..\..\..\..\temp\cmr\ta_STOCH.obj \ + ..\..\..\..\..\temp\cmr\ta_STOCHF.obj \ + ..\..\..\..\..\temp\cmr\ta_STOCHRSI.obj \ + ..\..\..\..\..\temp\cmr\ta_SUB.obj \ + ..\..\..\..\..\temp\cmr\ta_SUM.obj \ + ..\..\..\..\..\temp\cmr\ta_T3.obj \ + ..\..\..\..\..\temp\cmr\ta_TAN.obj \ + ..\..\..\..\..\temp\cmr\ta_TANH.obj \ + ..\..\..\..\..\temp\cmr\ta_TEMA.obj \ + ..\..\..\..\..\temp\cmr\ta_TRANGE.obj \ + ..\..\..\..\..\temp\cmr\ta_TRIMA.obj \ + ..\..\..\..\..\temp\cmr\ta_TRIX.obj \ + ..\..\..\..\..\temp\cmr\ta_TSF.obj \ + ..\..\..\..\..\temp\cmr\ta_TYPPRICE.obj \ + ..\..\..\..\..\temp\cmr\ta_ULTOSC.obj \ + ..\..\..\..\..\temp\cmr\ta_VAR.obj \ + ..\..\..\..\..\temp\cmr\ta_WCLPRICE.obj \ + ..\..\..\..\..\temp\cmr\ta_WILLR.obj \ + ..\..\..\..\..\temp\cmr\ta_WMA.obj +SRCMOC = +OBJMOC = +DIST = +TARGET = ..\..\..\..\..\lib\ta_func_cmr.lib + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .c + +.cpp.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.cxx.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.cc.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.c.obj: + $(CC) -c $(CFLAGS) $(INCPATH) -o$@ $< + +####### Build rules + +all: $(TARGET) + +$(TARGET): $(OBJECTS) $(OBJMOC) + -del $(TARGET) + $(LIB) $(TARGET) ..\..\..\..\..\temp\cmr\ta_utility.obj \ ++..\..\..\..\..\temp\cmr\ta_ACOS.obj \ ++..\..\..\..\..\temp\cmr\ta_AD.obj \ ++..\..\..\..\..\temp\cmr\ta_ADD.obj \ ++..\..\..\..\..\temp\cmr\ta_ADOSC.obj \ ++..\..\..\..\..\temp\cmr\ta_ADX.obj \ ++..\..\..\..\..\temp\cmr\ta_ADXR.obj \ ++..\..\..\..\..\temp\cmr\ta_APO.obj \ ++..\..\..\..\..\temp\cmr\ta_AROON.obj \ ++..\..\..\..\..\temp\cmr\ta_AROONOSC.obj \ ++..\..\..\..\..\temp\cmr\ta_ASIN.obj \ ++..\..\..\..\..\temp\cmr\ta_ATAN.obj \ ++..\..\..\..\..\temp\cmr\ta_ATR.obj \ ++..\..\..\..\..\temp\cmr\ta_AVGPRICE.obj \ ++..\..\..\..\..\temp\cmr\ta_BBANDS.obj \ ++..\..\..\..\..\temp\cmr\ta_BETA.obj \ ++..\..\..\..\..\temp\cmr\ta_BOP.obj \ ++..\..\..\..\..\temp\cmr\ta_CCI.obj \ ++..\..\..\..\..\temp\cmr\ta_CDL2CROWS.obj \ ++..\..\..\..\..\temp\cmr\ta_CDL3BLACKCROWS.obj \ ++..\..\..\..\..\temp\cmr\ta_CDL3INSIDE.obj \ ++..\..\..\..\..\temp\cmr\ta_CDL3LINESTRIKE.obj \ ++..\..\..\..\..\temp\cmr\ta_CDL3OUTSIDE.obj \ ++..\..\..\..\..\temp\cmr\ta_CDL3STARSINSOUTH.obj \ ++..\..\..\..\..\temp\cmr\ta_CDL3WHITESOLDIERS.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLABANDONEDBABY.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLADVANCEBLOCK.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLBELTHOLD.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLBREAKAWAY.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLCLOSINGMARUBOZU.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLCONCEALBABYSWALL.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLCOUNTERATTACK.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLDARKCLOUDCOVER.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLDOJI.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLDOJISTAR.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLDRAGONFLYDOJI.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLENGULFING.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLEVENINGDOJISTAR.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLEVENINGSTAR.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLGAPSIDESIDEWHITE.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLGRAVESTONEDOJI.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLHAMMER.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLHANGINGMAN.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLHARAMI.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLHARAMICROSS.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLHIGHWAVE.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLHIKKAKE.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLHIKKAKEMOD.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLHOMINGPIGEON.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLIDENTICAL3CROWS.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLINNECK.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLINVERTEDHAMMER.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLKICKING.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLKICKINGBYLENGTH.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLLADDERBOTTOM.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLLONGLEGGEDDOJI.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLLONGLINE.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLMARUBOZU.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLMATCHINGLOW.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLMATHOLD.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLMORNINGDOJISTAR.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLMORNINGSTAR.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLONNECK.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLPIERCING.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLRICKSHAWMAN.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLRISEFALL3METHODS.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLSEPARATINGLINES.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLSHOOTINGSTAR.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLSHORTLINE.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLSPINNINGTOP.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLSTALLEDPATTERN.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLSTICKSANDWICH.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLTAKURI.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLTASUKIGAP.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLTHRUSTING.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLTRISTAR.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLUNIQUE3RIVER.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLUPSIDEGAP2CROWS.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLXSIDEGAP3METHODS.obj \ ++..\..\..\..\..\temp\cmr\ta_CEIL.obj \ ++..\..\..\..\..\temp\cmr\ta_CMO.obj \ ++..\..\..\..\..\temp\cmr\ta_CORREL.obj \ ++..\..\..\..\..\temp\cmr\ta_COS.obj \ ++..\..\..\..\..\temp\cmr\ta_COSH.obj \ ++..\..\..\..\..\temp\cmr\ta_DEMA.obj \ ++..\..\..\..\..\temp\cmr\ta_DIV.obj \ ++..\..\..\..\..\temp\cmr\ta_DX.obj \ ++..\..\..\..\..\temp\cmr\ta_EMA.obj \ ++..\..\..\..\..\temp\cmr\ta_EXP.obj \ ++..\..\..\..\..\temp\cmr\ta_FLOOR.obj \ ++..\..\..\..\..\temp\cmr\ta_HT_DCPERIOD.obj \ ++..\..\..\..\..\temp\cmr\ta_HT_DCPHASE.obj \ ++..\..\..\..\..\temp\cmr\ta_HT_PHASOR.obj \ ++..\..\..\..\..\temp\cmr\ta_HT_SINE.obj \ ++..\..\..\..\..\temp\cmr\ta_HT_TRENDLINE.obj \ ++..\..\..\..\..\temp\cmr\ta_HT_TRENDMODE.obj \ ++..\..\..\..\..\temp\cmr\ta_KAMA.obj \ ++..\..\..\..\..\temp\cmr\ta_LINEARREG.obj \ ++..\..\..\..\..\temp\cmr\ta_LINEARREG_ANGLE.obj \ ++..\..\..\..\..\temp\cmr\ta_LINEARREG_INTERCEPT.obj \ ++..\..\..\..\..\temp\cmr\ta_LINEARREG_SLOPE.obj \ ++..\..\..\..\..\temp\cmr\ta_LN.obj \ ++..\..\..\..\..\temp\cmr\ta_LOG10.obj \ ++..\..\..\..\..\temp\cmr\ta_MA.obj \ ++..\..\..\..\..\temp\cmr\ta_MACD.obj \ ++..\..\..\..\..\temp\cmr\ta_MACDEXT.obj \ ++..\..\..\..\..\temp\cmr\ta_MACDFIX.obj \ ++..\..\..\..\..\temp\cmr\ta_MAMA.obj \ ++..\..\..\..\..\temp\cmr\ta_MAVP.obj \ ++..\..\..\..\..\temp\cmr\ta_MAX.obj \ ++..\..\..\..\..\temp\cmr\ta_MAXINDEX.obj \ ++..\..\..\..\..\temp\cmr\ta_MEDPRICE.obj \ ++..\..\..\..\..\temp\cmr\ta_MFI.obj \ ++..\..\..\..\..\temp\cmr\ta_MIDPOINT.obj \ ++..\..\..\..\..\temp\cmr\ta_MIDPRICE.obj \ ++..\..\..\..\..\temp\cmr\ta_MIN.obj \ ++..\..\..\..\..\temp\cmr\ta_MININDEX.obj \ ++..\..\..\..\..\temp\cmr\ta_MINMAX.obj \ ++..\..\..\..\..\temp\cmr\ta_MINMAXINDEX.obj \ ++..\..\..\..\..\temp\cmr\ta_MINUS_DI.obj \ ++..\..\..\..\..\temp\cmr\ta_MINUS_DM.obj \ ++..\..\..\..\..\temp\cmr\ta_MOM.obj \ ++..\..\..\..\..\temp\cmr\ta_MULT.obj \ ++..\..\..\..\..\temp\cmr\ta_NATR.obj \ ++..\..\..\..\..\temp\cmr\ta_OBV.obj \ ++..\..\..\..\..\temp\cmr\ta_PLUS_DI.obj \ ++..\..\..\..\..\temp\cmr\ta_PLUS_DM.obj \ ++..\..\..\..\..\temp\cmr\ta_PPO.obj \ ++..\..\..\..\..\temp\cmr\ta_ROC.obj \ ++..\..\..\..\..\temp\cmr\ta_ROCP.obj \ ++..\..\..\..\..\temp\cmr\ta_ROCR.obj \ ++..\..\..\..\..\temp\cmr\ta_ROCR100.obj \ ++..\..\..\..\..\temp\cmr\ta_RSI.obj \ ++..\..\..\..\..\temp\cmr\ta_SAR.obj \ ++..\..\..\..\..\temp\cmr\ta_SAREXT.obj \ ++..\..\..\..\..\temp\cmr\ta_SIN.obj \ ++..\..\..\..\..\temp\cmr\ta_SINH.obj \ ++..\..\..\..\..\temp\cmr\ta_SMA.obj \ ++..\..\..\..\..\temp\cmr\ta_SQRT.obj \ ++..\..\..\..\..\temp\cmr\ta_STDDEV.obj \ ++..\..\..\..\..\temp\cmr\ta_STOCH.obj \ ++..\..\..\..\..\temp\cmr\ta_STOCHF.obj \ ++..\..\..\..\..\temp\cmr\ta_STOCHRSI.obj \ ++..\..\..\..\..\temp\cmr\ta_SUB.obj \ ++..\..\..\..\..\temp\cmr\ta_SUM.obj \ ++..\..\..\..\..\temp\cmr\ta_T3.obj \ ++..\..\..\..\..\temp\cmr\ta_TAN.obj \ ++..\..\..\..\..\temp\cmr\ta_TANH.obj \ ++..\..\..\..\..\temp\cmr\ta_TEMA.obj \ ++..\..\..\..\..\temp\cmr\ta_TRANGE.obj \ ++..\..\..\..\..\temp\cmr\ta_TRIMA.obj \ ++..\..\..\..\..\temp\cmr\ta_TRIX.obj \ ++..\..\..\..\..\temp\cmr\ta_TSF.obj \ ++..\..\..\..\..\temp\cmr\ta_TYPPRICE.obj \ ++..\..\..\..\..\temp\cmr\ta_ULTOSC.obj \ ++..\..\..\..\..\temp\cmr\ta_VAR.obj \ ++..\..\..\..\..\temp\cmr\ta_WCLPRICE.obj \ ++..\..\..\..\..\temp\cmr\ta_WILLR.obj \ ++..\..\..\..\..\temp\cmr\ta_WMA.obj \ ++,; + +moc: $(SRCMOC) + +tmake: ../cmr/win32/symantec/ta_func/Makefile + +../cmr/win32/symantec/ta_func/Makefile: ta_func/ta_func.pro + tmake ta_func/ta_func.pro -o ../cmr/win32/symantec/ta_func/Makefile + +dist: + $(ZIP) ta_func/ta_func.zip ta_func/ta_func.pro $(SOURCES) $(HEADERS) $(DIST) + +clean: + -del ..\..\..\..\..\temp\cmr\ta_utility.obj + -del ..\..\..\..\..\temp\cmr\ta_ACOS.obj + -del ..\..\..\..\..\temp\cmr\ta_AD.obj + -del ..\..\..\..\..\temp\cmr\ta_ADD.obj + -del ..\..\..\..\..\temp\cmr\ta_ADOSC.obj + -del ..\..\..\..\..\temp\cmr\ta_ADX.obj + -del ..\..\..\..\..\temp\cmr\ta_ADXR.obj + -del ..\..\..\..\..\temp\cmr\ta_APO.obj + -del ..\..\..\..\..\temp\cmr\ta_AROON.obj + -del ..\..\..\..\..\temp\cmr\ta_AROONOSC.obj + -del ..\..\..\..\..\temp\cmr\ta_ASIN.obj + -del ..\..\..\..\..\temp\cmr\ta_ATAN.obj + -del ..\..\..\..\..\temp\cmr\ta_ATR.obj + -del ..\..\..\..\..\temp\cmr\ta_AVGPRICE.obj + -del ..\..\..\..\..\temp\cmr\ta_BBANDS.obj + -del ..\..\..\..\..\temp\cmr\ta_BETA.obj + -del ..\..\..\..\..\temp\cmr\ta_BOP.obj + -del ..\..\..\..\..\temp\cmr\ta_CCI.obj + -del ..\..\..\..\..\temp\cmr\ta_CDL2CROWS.obj + -del ..\..\..\..\..\temp\cmr\ta_CDL3BLACKCROWS.obj + -del ..\..\..\..\..\temp\cmr\ta_CDL3INSIDE.obj + -del ..\..\..\..\..\temp\cmr\ta_CDL3LINESTRIKE.obj + -del ..\..\..\..\..\temp\cmr\ta_CDL3OUTSIDE.obj + -del ..\..\..\..\..\temp\cmr\ta_CDL3STARSINSOUTH.obj + -del ..\..\..\..\..\temp\cmr\ta_CDL3WHITESOLDIERS.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLABANDONEDBABY.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLADVANCEBLOCK.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLBELTHOLD.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLBREAKAWAY.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLCLOSINGMARUBOZU.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLCONCEALBABYSWALL.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLCOUNTERATTACK.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLDARKCLOUDCOVER.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLDOJI.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLDOJISTAR.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLDRAGONFLYDOJI.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLENGULFING.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLEVENINGDOJISTAR.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLEVENINGSTAR.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLGAPSIDESIDEWHITE.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLGRAVESTONEDOJI.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLHAMMER.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLHANGINGMAN.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLHARAMI.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLHARAMICROSS.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLHIGHWAVE.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLHIKKAKE.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLHIKKAKEMOD.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLHOMINGPIGEON.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLIDENTICAL3CROWS.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLINNECK.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLINVERTEDHAMMER.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLKICKING.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLKICKINGBYLENGTH.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLLADDERBOTTOM.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLLONGLEGGEDDOJI.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLLONGLINE.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLMARUBOZU.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLMATCHINGLOW.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLMATHOLD.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLMORNINGDOJISTAR.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLMORNINGSTAR.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLONNECK.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLPIERCING.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLRICKSHAWMAN.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLRISEFALL3METHODS.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLSEPARATINGLINES.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLSHOOTINGSTAR.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLSHORTLINE.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLSPINNINGTOP.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLSTALLEDPATTERN.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLSTICKSANDWICH.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLTAKURI.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLTASUKIGAP.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLTHRUSTING.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLTRISTAR.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLUNIQUE3RIVER.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLUPSIDEGAP2CROWS.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLXSIDEGAP3METHODS.obj + -del ..\..\..\..\..\temp\cmr\ta_CEIL.obj + -del ..\..\..\..\..\temp\cmr\ta_CMO.obj + -del ..\..\..\..\..\temp\cmr\ta_CORREL.obj + -del ..\..\..\..\..\temp\cmr\ta_COS.obj + -del ..\..\..\..\..\temp\cmr\ta_COSH.obj + -del ..\..\..\..\..\temp\cmr\ta_DEMA.obj + -del ..\..\..\..\..\temp\cmr\ta_DIV.obj + -del ..\..\..\..\..\temp\cmr\ta_DX.obj + -del ..\..\..\..\..\temp\cmr\ta_EMA.obj + -del ..\..\..\..\..\temp\cmr\ta_EXP.obj + -del ..\..\..\..\..\temp\cmr\ta_FLOOR.obj + -del ..\..\..\..\..\temp\cmr\ta_HT_DCPERIOD.obj + -del ..\..\..\..\..\temp\cmr\ta_HT_DCPHASE.obj + -del ..\..\..\..\..\temp\cmr\ta_HT_PHASOR.obj + -del ..\..\..\..\..\temp\cmr\ta_HT_SINE.obj + -del ..\..\..\..\..\temp\cmr\ta_HT_TRENDLINE.obj + -del ..\..\..\..\..\temp\cmr\ta_HT_TRENDMODE.obj + -del ..\..\..\..\..\temp\cmr\ta_KAMA.obj + -del ..\..\..\..\..\temp\cmr\ta_LINEARREG.obj + -del ..\..\..\..\..\temp\cmr\ta_LINEARREG_ANGLE.obj + -del ..\..\..\..\..\temp\cmr\ta_LINEARREG_INTERCEPT.obj + -del ..\..\..\..\..\temp\cmr\ta_LINEARREG_SLOPE.obj + -del ..\..\..\..\..\temp\cmr\ta_LN.obj + -del ..\..\..\..\..\temp\cmr\ta_LOG10.obj + -del ..\..\..\..\..\temp\cmr\ta_MA.obj + -del ..\..\..\..\..\temp\cmr\ta_MACD.obj + -del ..\..\..\..\..\temp\cmr\ta_MACDEXT.obj + -del ..\..\..\..\..\temp\cmr\ta_MACDFIX.obj + -del ..\..\..\..\..\temp\cmr\ta_MAMA.obj + -del ..\..\..\..\..\temp\cmr\ta_MAVP.obj + -del ..\..\..\..\..\temp\cmr\ta_MAX.obj + -del ..\..\..\..\..\temp\cmr\ta_MAXINDEX.obj + -del ..\..\..\..\..\temp\cmr\ta_MEDPRICE.obj + -del ..\..\..\..\..\temp\cmr\ta_MFI.obj + -del ..\..\..\..\..\temp\cmr\ta_MIDPOINT.obj + -del ..\..\..\..\..\temp\cmr\ta_MIDPRICE.obj + -del ..\..\..\..\..\temp\cmr\ta_MIN.obj + -del ..\..\..\..\..\temp\cmr\ta_MININDEX.obj + -del ..\..\..\..\..\temp\cmr\ta_MINMAX.obj + -del ..\..\..\..\..\temp\cmr\ta_MINMAXINDEX.obj + -del ..\..\..\..\..\temp\cmr\ta_MINUS_DI.obj + -del ..\..\..\..\..\temp\cmr\ta_MINUS_DM.obj + -del ..\..\..\..\..\temp\cmr\ta_MOM.obj + -del ..\..\..\..\..\temp\cmr\ta_MULT.obj + -del ..\..\..\..\..\temp\cmr\ta_NATR.obj + -del ..\..\..\..\..\temp\cmr\ta_OBV.obj + -del ..\..\..\..\..\temp\cmr\ta_PLUS_DI.obj + -del ..\..\..\..\..\temp\cmr\ta_PLUS_DM.obj + -del ..\..\..\..\..\temp\cmr\ta_PPO.obj + -del ..\..\..\..\..\temp\cmr\ta_ROC.obj + -del ..\..\..\..\..\temp\cmr\ta_ROCP.obj + -del ..\..\..\..\..\temp\cmr\ta_ROCR.obj + -del ..\..\..\..\..\temp\cmr\ta_ROCR100.obj + -del ..\..\..\..\..\temp\cmr\ta_RSI.obj + -del ..\..\..\..\..\temp\cmr\ta_SAR.obj + -del ..\..\..\..\..\temp\cmr\ta_SAREXT.obj + -del ..\..\..\..\..\temp\cmr\ta_SIN.obj + -del ..\..\..\..\..\temp\cmr\ta_SINH.obj + -del ..\..\..\..\..\temp\cmr\ta_SMA.obj + -del ..\..\..\..\..\temp\cmr\ta_SQRT.obj + -del ..\..\..\..\..\temp\cmr\ta_STDDEV.obj + -del ..\..\..\..\..\temp\cmr\ta_STOCH.obj + -del ..\..\..\..\..\temp\cmr\ta_STOCHF.obj + -del ..\..\..\..\..\temp\cmr\ta_STOCHRSI.obj + -del ..\..\..\..\..\temp\cmr\ta_SUB.obj + -del ..\..\..\..\..\temp\cmr\ta_SUM.obj + -del ..\..\..\..\..\temp\cmr\ta_T3.obj + -del ..\..\..\..\..\temp\cmr\ta_TAN.obj + -del ..\..\..\..\..\temp\cmr\ta_TANH.obj + -del ..\..\..\..\..\temp\cmr\ta_TEMA.obj + -del ..\..\..\..\..\temp\cmr\ta_TRANGE.obj + -del ..\..\..\..\..\temp\cmr\ta_TRIMA.obj + -del ..\..\..\..\..\temp\cmr\ta_TRIX.obj + -del ..\..\..\..\..\temp\cmr\ta_TSF.obj + -del ..\..\..\..\..\temp\cmr\ta_TYPPRICE.obj + -del ..\..\..\..\..\temp\cmr\ta_ULTOSC.obj + -del ..\..\..\..\..\temp\cmr\ta_VAR.obj + -del ..\..\..\..\..\temp\cmr\ta_WCLPRICE.obj + -del ..\..\..\..\..\temp\cmr\ta_WILLR.obj + -del ..\..\..\..\..\temp\cmr\ta_WMA.obj + -del $(TARGET) + -del ../../../../../bin/*.map + -del ../../../../../bin/*._xe + -del ../../../../../bin/*.tds + -del ../../../../../bin/*.pdb + -del ../../../../../bin/*.pbo + -del ../../../../../bin/*.pbi + -del ../../../../../bin/*.pbt + -del ../../../../../temp/cmr/*.pch + -del ../../../../../temp/cmr/*.idb + -del ../../../../../temp/cmr/ta_func/*.pch + -del ../../../../../temp/cmr/ta_func/*.idb + -del ../../../../../temp/cmr/ta_func/*.obj + +####### Compile + +..\..\..\..\..\temp\cmr\ta_utility.obj: ..\..\..\..\..\src\ta_func\ta_utility.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_utility.obj ..\..\..\..\..\src\ta_func\ta_utility.c + +..\..\..\..\..\temp\cmr\ta_ACOS.obj: ..\..\..\..\..\src\ta_func\ta_ACOS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_ACOS.obj ..\..\..\..\..\src\ta_func\ta_ACOS.c + +..\..\..\..\..\temp\cmr\ta_AD.obj: ..\..\..\..\..\src\ta_func\ta_AD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_AD.obj ..\..\..\..\..\src\ta_func\ta_AD.c + +..\..\..\..\..\temp\cmr\ta_ADD.obj: ..\..\..\..\..\src\ta_func\ta_ADD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_ADD.obj ..\..\..\..\..\src\ta_func\ta_ADD.c + +..\..\..\..\..\temp\cmr\ta_ADOSC.obj: ..\..\..\..\..\src\ta_func\ta_ADOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_ADOSC.obj ..\..\..\..\..\src\ta_func\ta_ADOSC.c + +..\..\..\..\..\temp\cmr\ta_ADX.obj: ..\..\..\..\..\src\ta_func\ta_ADX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_ADX.obj ..\..\..\..\..\src\ta_func\ta_ADX.c + +..\..\..\..\..\temp\cmr\ta_ADXR.obj: ..\..\..\..\..\src\ta_func\ta_ADXR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_ADXR.obj ..\..\..\..\..\src\ta_func\ta_ADXR.c + +..\..\..\..\..\temp\cmr\ta_APO.obj: ..\..\..\..\..\src\ta_func\ta_APO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_APO.obj ..\..\..\..\..\src\ta_func\ta_APO.c + +..\..\..\..\..\temp\cmr\ta_AROON.obj: ..\..\..\..\..\src\ta_func\ta_AROON.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_AROON.obj ..\..\..\..\..\src\ta_func\ta_AROON.c + +..\..\..\..\..\temp\cmr\ta_AROONOSC.obj: ..\..\..\..\..\src\ta_func\ta_AROONOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_AROONOSC.obj ..\..\..\..\..\src\ta_func\ta_AROONOSC.c + +..\..\..\..\..\temp\cmr\ta_ASIN.obj: ..\..\..\..\..\src\ta_func\ta_ASIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_ASIN.obj ..\..\..\..\..\src\ta_func\ta_ASIN.c + +..\..\..\..\..\temp\cmr\ta_ATAN.obj: ..\..\..\..\..\src\ta_func\ta_ATAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_ATAN.obj ..\..\..\..\..\src\ta_func\ta_ATAN.c + +..\..\..\..\..\temp\cmr\ta_ATR.obj: ..\..\..\..\..\src\ta_func\ta_ATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_ATR.obj ..\..\..\..\..\src\ta_func\ta_ATR.c + +..\..\..\..\..\temp\cmr\ta_AVGPRICE.obj: ..\..\..\..\..\src\ta_func\ta_AVGPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_AVGPRICE.obj ..\..\..\..\..\src\ta_func\ta_AVGPRICE.c + +..\..\..\..\..\temp\cmr\ta_BBANDS.obj: ..\..\..\..\..\src\ta_func\ta_BBANDS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_BBANDS.obj ..\..\..\..\..\src\ta_func\ta_BBANDS.c + +..\..\..\..\..\temp\cmr\ta_BETA.obj: ..\..\..\..\..\src\ta_func\ta_BETA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_BETA.obj ..\..\..\..\..\src\ta_func\ta_BETA.c + +..\..\..\..\..\temp\cmr\ta_BOP.obj: ..\..\..\..\..\src\ta_func\ta_BOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_BOP.obj ..\..\..\..\..\src\ta_func\ta_BOP.c + +..\..\..\..\..\temp\cmr\ta_CCI.obj: ..\..\..\..\..\src\ta_func\ta_CCI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CCI.obj ..\..\..\..\..\src\ta_func\ta_CCI.c + +..\..\..\..\..\temp\cmr\ta_CDL2CROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDL2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDL2CROWS.obj ..\..\..\..\..\src\ta_func\ta_CDL2CROWS.c + +..\..\..\..\..\temp\cmr\ta_CDL3BLACKCROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDL3BLACKCROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDL3BLACKCROWS.obj ..\..\..\..\..\src\ta_func\ta_CDL3BLACKCROWS.c + +..\..\..\..\..\temp\cmr\ta_CDL3INSIDE.obj: ..\..\..\..\..\src\ta_func\ta_CDL3INSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDL3INSIDE.obj ..\..\..\..\..\src\ta_func\ta_CDL3INSIDE.c + +..\..\..\..\..\temp\cmr\ta_CDL3LINESTRIKE.obj: ..\..\..\..\..\src\ta_func\ta_CDL3LINESTRIKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDL3LINESTRIKE.obj ..\..\..\..\..\src\ta_func\ta_CDL3LINESTRIKE.c + +..\..\..\..\..\temp\cmr\ta_CDL3OUTSIDE.obj: ..\..\..\..\..\src\ta_func\ta_CDL3OUTSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDL3OUTSIDE.obj ..\..\..\..\..\src\ta_func\ta_CDL3OUTSIDE.c + +..\..\..\..\..\temp\cmr\ta_CDL3STARSINSOUTH.obj: ..\..\..\..\..\src\ta_func\ta_CDL3STARSINSOUTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDL3STARSINSOUTH.obj ..\..\..\..\..\src\ta_func\ta_CDL3STARSINSOUTH.c + +..\..\..\..\..\temp\cmr\ta_CDL3WHITESOLDIERS.obj: ..\..\..\..\..\src\ta_func\ta_CDL3WHITESOLDIERS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDL3WHITESOLDIERS.obj ..\..\..\..\..\src\ta_func\ta_CDL3WHITESOLDIERS.c + +..\..\..\..\..\temp\cmr\ta_CDLABANDONEDBABY.obj: ..\..\..\..\..\src\ta_func\ta_CDLABANDONEDBABY.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLABANDONEDBABY.obj ..\..\..\..\..\src\ta_func\ta_CDLABANDONEDBABY.c + +..\..\..\..\..\temp\cmr\ta_CDLADVANCEBLOCK.obj: ..\..\..\..\..\src\ta_func\ta_CDLADVANCEBLOCK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLADVANCEBLOCK.obj ..\..\..\..\..\src\ta_func\ta_CDLADVANCEBLOCK.c + +..\..\..\..\..\temp\cmr\ta_CDLBELTHOLD.obj: ..\..\..\..\..\src\ta_func\ta_CDLBELTHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLBELTHOLD.obj ..\..\..\..\..\src\ta_func\ta_CDLBELTHOLD.c + +..\..\..\..\..\temp\cmr\ta_CDLBREAKAWAY.obj: ..\..\..\..\..\src\ta_func\ta_CDLBREAKAWAY.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLBREAKAWAY.obj ..\..\..\..\..\src\ta_func\ta_CDLBREAKAWAY.c + +..\..\..\..\..\temp\cmr\ta_CDLCLOSINGMARUBOZU.obj: ..\..\..\..\..\src\ta_func\ta_CDLCLOSINGMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLCLOSINGMARUBOZU.obj ..\..\..\..\..\src\ta_func\ta_CDLCLOSINGMARUBOZU.c + +..\..\..\..\..\temp\cmr\ta_CDLCONCEALBABYSWALL.obj: ..\..\..\..\..\src\ta_func\ta_CDLCONCEALBABYSWALL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLCONCEALBABYSWALL.obj ..\..\..\..\..\src\ta_func\ta_CDLCONCEALBABYSWALL.c + +..\..\..\..\..\temp\cmr\ta_CDLCOUNTERATTACK.obj: ..\..\..\..\..\src\ta_func\ta_CDLCOUNTERATTACK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLCOUNTERATTACK.obj ..\..\..\..\..\src\ta_func\ta_CDLCOUNTERATTACK.c + +..\..\..\..\..\temp\cmr\ta_CDLDARKCLOUDCOVER.obj: ..\..\..\..\..\src\ta_func\ta_CDLDARKCLOUDCOVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLDARKCLOUDCOVER.obj ..\..\..\..\..\src\ta_func\ta_CDLDARKCLOUDCOVER.c + +..\..\..\..\..\temp\cmr\ta_CDLDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLDOJI.c + +..\..\..\..\..\temp\cmr\ta_CDLDOJISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLDOJISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLDOJISTAR.c + +..\..\..\..\..\temp\cmr\ta_CDLDRAGONFLYDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLDRAGONFLYDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLDRAGONFLYDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLDRAGONFLYDOJI.c + +..\..\..\..\..\temp\cmr\ta_CDLENGULFING.obj: ..\..\..\..\..\src\ta_func\ta_CDLENGULFING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLENGULFING.obj ..\..\..\..\..\src\ta_func\ta_CDLENGULFING.c + +..\..\..\..\..\temp\cmr\ta_CDLEVENINGDOJISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLEVENINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLEVENINGDOJISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLEVENINGDOJISTAR.c + +..\..\..\..\..\temp\cmr\ta_CDLEVENINGSTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLEVENINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLEVENINGSTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLEVENINGSTAR.c + +..\..\..\..\..\temp\cmr\ta_CDLGAPSIDESIDEWHITE.obj: ..\..\..\..\..\src\ta_func\ta_CDLGAPSIDESIDEWHITE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLGAPSIDESIDEWHITE.obj ..\..\..\..\..\src\ta_func\ta_CDLGAPSIDESIDEWHITE.c + +..\..\..\..\..\temp\cmr\ta_CDLGRAVESTONEDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLGRAVESTONEDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLGRAVESTONEDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLGRAVESTONEDOJI.c + +..\..\..\..\..\temp\cmr\ta_CDLHAMMER.obj: ..\..\..\..\..\src\ta_func\ta_CDLHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLHAMMER.obj ..\..\..\..\..\src\ta_func\ta_CDLHAMMER.c + +..\..\..\..\..\temp\cmr\ta_CDLHANGINGMAN.obj: ..\..\..\..\..\src\ta_func\ta_CDLHANGINGMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLHANGINGMAN.obj ..\..\..\..\..\src\ta_func\ta_CDLHANGINGMAN.c + +..\..\..\..\..\temp\cmr\ta_CDLHARAMI.obj: ..\..\..\..\..\src\ta_func\ta_CDLHARAMI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLHARAMI.obj ..\..\..\..\..\src\ta_func\ta_CDLHARAMI.c + +..\..\..\..\..\temp\cmr\ta_CDLHARAMICROSS.obj: ..\..\..\..\..\src\ta_func\ta_CDLHARAMICROSS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLHARAMICROSS.obj ..\..\..\..\..\src\ta_func\ta_CDLHARAMICROSS.c + +..\..\..\..\..\temp\cmr\ta_CDLHIGHWAVE.obj: ..\..\..\..\..\src\ta_func\ta_CDLHIGHWAVE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLHIGHWAVE.obj ..\..\..\..\..\src\ta_func\ta_CDLHIGHWAVE.c + +..\..\..\..\..\temp\cmr\ta_CDLHIKKAKE.obj: ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLHIKKAKE.obj ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKE.c + +..\..\..\..\..\temp\cmr\ta_CDLHIKKAKEMOD.obj: ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKEMOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLHIKKAKEMOD.obj ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKEMOD.c + +..\..\..\..\..\temp\cmr\ta_CDLHOMINGPIGEON.obj: ..\..\..\..\..\src\ta_func\ta_CDLHOMINGPIGEON.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLHOMINGPIGEON.obj ..\..\..\..\..\src\ta_func\ta_CDLHOMINGPIGEON.c + +..\..\..\..\..\temp\cmr\ta_CDLIDENTICAL3CROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDLIDENTICAL3CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLIDENTICAL3CROWS.obj ..\..\..\..\..\src\ta_func\ta_CDLIDENTICAL3CROWS.c + +..\..\..\..\..\temp\cmr\ta_CDLINNECK.obj: ..\..\..\..\..\src\ta_func\ta_CDLINNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLINNECK.obj ..\..\..\..\..\src\ta_func\ta_CDLINNECK.c + +..\..\..\..\..\temp\cmr\ta_CDLINVERTEDHAMMER.obj: ..\..\..\..\..\src\ta_func\ta_CDLINVERTEDHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLINVERTEDHAMMER.obj ..\..\..\..\..\src\ta_func\ta_CDLINVERTEDHAMMER.c + +..\..\..\..\..\temp\cmr\ta_CDLKICKING.obj: ..\..\..\..\..\src\ta_func\ta_CDLKICKING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLKICKING.obj ..\..\..\..\..\src\ta_func\ta_CDLKICKING.c + +..\..\..\..\..\temp\cmr\ta_CDLKICKINGBYLENGTH.obj: ..\..\..\..\..\src\ta_func\ta_CDLKICKINGBYLENGTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLKICKINGBYLENGTH.obj ..\..\..\..\..\src\ta_func\ta_CDLKICKINGBYLENGTH.c + +..\..\..\..\..\temp\cmr\ta_CDLLADDERBOTTOM.obj: ..\..\..\..\..\src\ta_func\ta_CDLLADDERBOTTOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLLADDERBOTTOM.obj ..\..\..\..\..\src\ta_func\ta_CDLLADDERBOTTOM.c + +..\..\..\..\..\temp\cmr\ta_CDLLONGLEGGEDDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLLONGLEGGEDDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLLONGLEGGEDDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLLONGLEGGEDDOJI.c + +..\..\..\..\..\temp\cmr\ta_CDLLONGLINE.obj: ..\..\..\..\..\src\ta_func\ta_CDLLONGLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLLONGLINE.obj ..\..\..\..\..\src\ta_func\ta_CDLLONGLINE.c + +..\..\..\..\..\temp\cmr\ta_CDLMARUBOZU.obj: ..\..\..\..\..\src\ta_func\ta_CDLMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLMARUBOZU.obj ..\..\..\..\..\src\ta_func\ta_CDLMARUBOZU.c + +..\..\..\..\..\temp\cmr\ta_CDLMATCHINGLOW.obj: ..\..\..\..\..\src\ta_func\ta_CDLMATCHINGLOW.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLMATCHINGLOW.obj ..\..\..\..\..\src\ta_func\ta_CDLMATCHINGLOW.c + +..\..\..\..\..\temp\cmr\ta_CDLMATHOLD.obj: ..\..\..\..\..\src\ta_func\ta_CDLMATHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLMATHOLD.obj ..\..\..\..\..\src\ta_func\ta_CDLMATHOLD.c + +..\..\..\..\..\temp\cmr\ta_CDLMORNINGDOJISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLMORNINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLMORNINGDOJISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLMORNINGDOJISTAR.c + +..\..\..\..\..\temp\cmr\ta_CDLMORNINGSTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLMORNINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLMORNINGSTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLMORNINGSTAR.c + +..\..\..\..\..\temp\cmr\ta_CDLONNECK.obj: ..\..\..\..\..\src\ta_func\ta_CDLONNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLONNECK.obj ..\..\..\..\..\src\ta_func\ta_CDLONNECK.c + +..\..\..\..\..\temp\cmr\ta_CDLPIERCING.obj: ..\..\..\..\..\src\ta_func\ta_CDLPIERCING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLPIERCING.obj ..\..\..\..\..\src\ta_func\ta_CDLPIERCING.c + +..\..\..\..\..\temp\cmr\ta_CDLRICKSHAWMAN.obj: ..\..\..\..\..\src\ta_func\ta_CDLRICKSHAWMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLRICKSHAWMAN.obj ..\..\..\..\..\src\ta_func\ta_CDLRICKSHAWMAN.c + +..\..\..\..\..\temp\cmr\ta_CDLRISEFALL3METHODS.obj: ..\..\..\..\..\src\ta_func\ta_CDLRISEFALL3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLRISEFALL3METHODS.obj ..\..\..\..\..\src\ta_func\ta_CDLRISEFALL3METHODS.c + +..\..\..\..\..\temp\cmr\ta_CDLSEPARATINGLINES.obj: ..\..\..\..\..\src\ta_func\ta_CDLSEPARATINGLINES.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLSEPARATINGLINES.obj ..\..\..\..\..\src\ta_func\ta_CDLSEPARATINGLINES.c + +..\..\..\..\..\temp\cmr\ta_CDLSHOOTINGSTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLSHOOTINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLSHOOTINGSTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLSHOOTINGSTAR.c + +..\..\..\..\..\temp\cmr\ta_CDLSHORTLINE.obj: ..\..\..\..\..\src\ta_func\ta_CDLSHORTLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLSHORTLINE.obj ..\..\..\..\..\src\ta_func\ta_CDLSHORTLINE.c + +..\..\..\..\..\temp\cmr\ta_CDLSPINNINGTOP.obj: ..\..\..\..\..\src\ta_func\ta_CDLSPINNINGTOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLSPINNINGTOP.obj ..\..\..\..\..\src\ta_func\ta_CDLSPINNINGTOP.c + +..\..\..\..\..\temp\cmr\ta_CDLSTALLEDPATTERN.obj: ..\..\..\..\..\src\ta_func\ta_CDLSTALLEDPATTERN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLSTALLEDPATTERN.obj ..\..\..\..\..\src\ta_func\ta_CDLSTALLEDPATTERN.c + +..\..\..\..\..\temp\cmr\ta_CDLSTICKSANDWICH.obj: ..\..\..\..\..\src\ta_func\ta_CDLSTICKSANDWICH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLSTICKSANDWICH.obj ..\..\..\..\..\src\ta_func\ta_CDLSTICKSANDWICH.c + +..\..\..\..\..\temp\cmr\ta_CDLTAKURI.obj: ..\..\..\..\..\src\ta_func\ta_CDLTAKURI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLTAKURI.obj ..\..\..\..\..\src\ta_func\ta_CDLTAKURI.c + +..\..\..\..\..\temp\cmr\ta_CDLTASUKIGAP.obj: ..\..\..\..\..\src\ta_func\ta_CDLTASUKIGAP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLTASUKIGAP.obj ..\..\..\..\..\src\ta_func\ta_CDLTASUKIGAP.c + +..\..\..\..\..\temp\cmr\ta_CDLTHRUSTING.obj: ..\..\..\..\..\src\ta_func\ta_CDLTHRUSTING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLTHRUSTING.obj ..\..\..\..\..\src\ta_func\ta_CDLTHRUSTING.c + +..\..\..\..\..\temp\cmr\ta_CDLTRISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLTRISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLTRISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLTRISTAR.c + +..\..\..\..\..\temp\cmr\ta_CDLUNIQUE3RIVER.obj: ..\..\..\..\..\src\ta_func\ta_CDLUNIQUE3RIVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLUNIQUE3RIVER.obj ..\..\..\..\..\src\ta_func\ta_CDLUNIQUE3RIVER.c + +..\..\..\..\..\temp\cmr\ta_CDLUPSIDEGAP2CROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDLUPSIDEGAP2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLUPSIDEGAP2CROWS.obj ..\..\..\..\..\src\ta_func\ta_CDLUPSIDEGAP2CROWS.c + +..\..\..\..\..\temp\cmr\ta_CDLXSIDEGAP3METHODS.obj: ..\..\..\..\..\src\ta_func\ta_CDLXSIDEGAP3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLXSIDEGAP3METHODS.obj ..\..\..\..\..\src\ta_func\ta_CDLXSIDEGAP3METHODS.c + +..\..\..\..\..\temp\cmr\ta_CEIL.obj: ..\..\..\..\..\src\ta_func\ta_CEIL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CEIL.obj ..\..\..\..\..\src\ta_func\ta_CEIL.c + +..\..\..\..\..\temp\cmr\ta_CMO.obj: ..\..\..\..\..\src\ta_func\ta_CMO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CMO.obj ..\..\..\..\..\src\ta_func\ta_CMO.c + +..\..\..\..\..\temp\cmr\ta_CORREL.obj: ..\..\..\..\..\src\ta_func\ta_CORREL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CORREL.obj ..\..\..\..\..\src\ta_func\ta_CORREL.c + +..\..\..\..\..\temp\cmr\ta_COS.obj: ..\..\..\..\..\src\ta_func\ta_COS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_COS.obj ..\..\..\..\..\src\ta_func\ta_COS.c + +..\..\..\..\..\temp\cmr\ta_COSH.obj: ..\..\..\..\..\src\ta_func\ta_COSH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_COSH.obj ..\..\..\..\..\src\ta_func\ta_COSH.c + +..\..\..\..\..\temp\cmr\ta_DEMA.obj: ..\..\..\..\..\src\ta_func\ta_DEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_DEMA.obj ..\..\..\..\..\src\ta_func\ta_DEMA.c + +..\..\..\..\..\temp\cmr\ta_DIV.obj: ..\..\..\..\..\src\ta_func\ta_DIV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_DIV.obj ..\..\..\..\..\src\ta_func\ta_DIV.c + +..\..\..\..\..\temp\cmr\ta_DX.obj: ..\..\..\..\..\src\ta_func\ta_DX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_DX.obj ..\..\..\..\..\src\ta_func\ta_DX.c + +..\..\..\..\..\temp\cmr\ta_EMA.obj: ..\..\..\..\..\src\ta_func\ta_EMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_EMA.obj ..\..\..\..\..\src\ta_func\ta_EMA.c + +..\..\..\..\..\temp\cmr\ta_EXP.obj: ..\..\..\..\..\src\ta_func\ta_EXP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_EXP.obj ..\..\..\..\..\src\ta_func\ta_EXP.c + +..\..\..\..\..\temp\cmr\ta_FLOOR.obj: ..\..\..\..\..\src\ta_func\ta_FLOOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_FLOOR.obj ..\..\..\..\..\src\ta_func\ta_FLOOR.c + +..\..\..\..\..\temp\cmr\ta_HT_DCPERIOD.obj: ..\..\..\..\..\src\ta_func\ta_HT_DCPERIOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_HT_DCPERIOD.obj ..\..\..\..\..\src\ta_func\ta_HT_DCPERIOD.c + +..\..\..\..\..\temp\cmr\ta_HT_DCPHASE.obj: ..\..\..\..\..\src\ta_func\ta_HT_DCPHASE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_HT_DCPHASE.obj ..\..\..\..\..\src\ta_func\ta_HT_DCPHASE.c + +..\..\..\..\..\temp\cmr\ta_HT_PHASOR.obj: ..\..\..\..\..\src\ta_func\ta_HT_PHASOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_HT_PHASOR.obj ..\..\..\..\..\src\ta_func\ta_HT_PHASOR.c + +..\..\..\..\..\temp\cmr\ta_HT_SINE.obj: ..\..\..\..\..\src\ta_func\ta_HT_SINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_HT_SINE.obj ..\..\..\..\..\src\ta_func\ta_HT_SINE.c + +..\..\..\..\..\temp\cmr\ta_HT_TRENDLINE.obj: ..\..\..\..\..\src\ta_func\ta_HT_TRENDLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_HT_TRENDLINE.obj ..\..\..\..\..\src\ta_func\ta_HT_TRENDLINE.c + +..\..\..\..\..\temp\cmr\ta_HT_TRENDMODE.obj: ..\..\..\..\..\src\ta_func\ta_HT_TRENDMODE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_HT_TRENDMODE.obj ..\..\..\..\..\src\ta_func\ta_HT_TRENDMODE.c + +..\..\..\..\..\temp\cmr\ta_KAMA.obj: ..\..\..\..\..\src\ta_func\ta_KAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_KAMA.obj ..\..\..\..\..\src\ta_func\ta_KAMA.c + +..\..\..\..\..\temp\cmr\ta_LINEARREG.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_LINEARREG.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG.c + +..\..\..\..\..\temp\cmr\ta_LINEARREG_ANGLE.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG_ANGLE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_LINEARREG_ANGLE.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG_ANGLE.c + +..\..\..\..\..\temp\cmr\ta_LINEARREG_INTERCEPT.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG_INTERCEPT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_LINEARREG_INTERCEPT.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG_INTERCEPT.c + +..\..\..\..\..\temp\cmr\ta_LINEARREG_SLOPE.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG_SLOPE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_LINEARREG_SLOPE.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG_SLOPE.c + +..\..\..\..\..\temp\cmr\ta_LN.obj: ..\..\..\..\..\src\ta_func\ta_LN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_LN.obj ..\..\..\..\..\src\ta_func\ta_LN.c + +..\..\..\..\..\temp\cmr\ta_LOG10.obj: ..\..\..\..\..\src\ta_func\ta_LOG10.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_LOG10.obj ..\..\..\..\..\src\ta_func\ta_LOG10.c + +..\..\..\..\..\temp\cmr\ta_MA.obj: ..\..\..\..\..\src\ta_func\ta_MA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_MA.obj ..\..\..\..\..\src\ta_func\ta_MA.c + +..\..\..\..\..\temp\cmr\ta_MACD.obj: ..\..\..\..\..\src\ta_func\ta_MACD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_MACD.obj ..\..\..\..\..\src\ta_func\ta_MACD.c + +..\..\..\..\..\temp\cmr\ta_MACDEXT.obj: ..\..\..\..\..\src\ta_func\ta_MACDEXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_MACDEXT.obj ..\..\..\..\..\src\ta_func\ta_MACDEXT.c + +..\..\..\..\..\temp\cmr\ta_MACDFIX.obj: ..\..\..\..\..\src\ta_func\ta_MACDFIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_MACDFIX.obj ..\..\..\..\..\src\ta_func\ta_MACDFIX.c + +..\..\..\..\..\temp\cmr\ta_MAMA.obj: ..\..\..\..\..\src\ta_func\ta_MAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_MAMA.obj ..\..\..\..\..\src\ta_func\ta_MAMA.c + +..\..\..\..\..\temp\cmr\ta_MAVP.obj: ..\..\..\..\..\src\ta_func\ta_MAVP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_MAVP.obj ..\..\..\..\..\src\ta_func\ta_MAVP.c + +..\..\..\..\..\temp\cmr\ta_MAX.obj: ..\..\..\..\..\src\ta_func\ta_MAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_MAX.obj ..\..\..\..\..\src\ta_func\ta_MAX.c + +..\..\..\..\..\temp\cmr\ta_MAXINDEX.obj: ..\..\..\..\..\src\ta_func\ta_MAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_MAXINDEX.obj ..\..\..\..\..\src\ta_func\ta_MAXINDEX.c + +..\..\..\..\..\temp\cmr\ta_MEDPRICE.obj: ..\..\..\..\..\src\ta_func\ta_MEDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_MEDPRICE.obj ..\..\..\..\..\src\ta_func\ta_MEDPRICE.c + +..\..\..\..\..\temp\cmr\ta_MFI.obj: ..\..\..\..\..\src\ta_func\ta_MFI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_MFI.obj ..\..\..\..\..\src\ta_func\ta_MFI.c + +..\..\..\..\..\temp\cmr\ta_MIDPOINT.obj: ..\..\..\..\..\src\ta_func\ta_MIDPOINT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_MIDPOINT.obj ..\..\..\..\..\src\ta_func\ta_MIDPOINT.c + +..\..\..\..\..\temp\cmr\ta_MIDPRICE.obj: ..\..\..\..\..\src\ta_func\ta_MIDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_MIDPRICE.obj ..\..\..\..\..\src\ta_func\ta_MIDPRICE.c + +..\..\..\..\..\temp\cmr\ta_MIN.obj: ..\..\..\..\..\src\ta_func\ta_MIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_MIN.obj ..\..\..\..\..\src\ta_func\ta_MIN.c + +..\..\..\..\..\temp\cmr\ta_MININDEX.obj: ..\..\..\..\..\src\ta_func\ta_MININDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_MININDEX.obj ..\..\..\..\..\src\ta_func\ta_MININDEX.c + +..\..\..\..\..\temp\cmr\ta_MINMAX.obj: ..\..\..\..\..\src\ta_func\ta_MINMAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_MINMAX.obj ..\..\..\..\..\src\ta_func\ta_MINMAX.c + +..\..\..\..\..\temp\cmr\ta_MINMAXINDEX.obj: ..\..\..\..\..\src\ta_func\ta_MINMAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_MINMAXINDEX.obj ..\..\..\..\..\src\ta_func\ta_MINMAXINDEX.c + +..\..\..\..\..\temp\cmr\ta_MINUS_DI.obj: ..\..\..\..\..\src\ta_func\ta_MINUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_MINUS_DI.obj ..\..\..\..\..\src\ta_func\ta_MINUS_DI.c + +..\..\..\..\..\temp\cmr\ta_MINUS_DM.obj: ..\..\..\..\..\src\ta_func\ta_MINUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_MINUS_DM.obj ..\..\..\..\..\src\ta_func\ta_MINUS_DM.c + +..\..\..\..\..\temp\cmr\ta_MOM.obj: ..\..\..\..\..\src\ta_func\ta_MOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_MOM.obj ..\..\..\..\..\src\ta_func\ta_MOM.c + +..\..\..\..\..\temp\cmr\ta_MULT.obj: ..\..\..\..\..\src\ta_func\ta_MULT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_MULT.obj ..\..\..\..\..\src\ta_func\ta_MULT.c + +..\..\..\..\..\temp\cmr\ta_NATR.obj: ..\..\..\..\..\src\ta_func\ta_NATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_NATR.obj ..\..\..\..\..\src\ta_func\ta_NATR.c + +..\..\..\..\..\temp\cmr\ta_OBV.obj: ..\..\..\..\..\src\ta_func\ta_OBV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_OBV.obj ..\..\..\..\..\src\ta_func\ta_OBV.c + +..\..\..\..\..\temp\cmr\ta_PLUS_DI.obj: ..\..\..\..\..\src\ta_func\ta_PLUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_PLUS_DI.obj ..\..\..\..\..\src\ta_func\ta_PLUS_DI.c + +..\..\..\..\..\temp\cmr\ta_PLUS_DM.obj: ..\..\..\..\..\src\ta_func\ta_PLUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_PLUS_DM.obj ..\..\..\..\..\src\ta_func\ta_PLUS_DM.c + +..\..\..\..\..\temp\cmr\ta_PPO.obj: ..\..\..\..\..\src\ta_func\ta_PPO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_PPO.obj ..\..\..\..\..\src\ta_func\ta_PPO.c + +..\..\..\..\..\temp\cmr\ta_ROC.obj: ..\..\..\..\..\src\ta_func\ta_ROC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_ROC.obj ..\..\..\..\..\src\ta_func\ta_ROC.c + +..\..\..\..\..\temp\cmr\ta_ROCP.obj: ..\..\..\..\..\src\ta_func\ta_ROCP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_ROCP.obj ..\..\..\..\..\src\ta_func\ta_ROCP.c + +..\..\..\..\..\temp\cmr\ta_ROCR.obj: ..\..\..\..\..\src\ta_func\ta_ROCR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_ROCR.obj ..\..\..\..\..\src\ta_func\ta_ROCR.c + +..\..\..\..\..\temp\cmr\ta_ROCR100.obj: ..\..\..\..\..\src\ta_func\ta_ROCR100.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_ROCR100.obj ..\..\..\..\..\src\ta_func\ta_ROCR100.c + +..\..\..\..\..\temp\cmr\ta_RSI.obj: ..\..\..\..\..\src\ta_func\ta_RSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_RSI.obj ..\..\..\..\..\src\ta_func\ta_RSI.c + +..\..\..\..\..\temp\cmr\ta_SAR.obj: ..\..\..\..\..\src\ta_func\ta_SAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_SAR.obj ..\..\..\..\..\src\ta_func\ta_SAR.c + +..\..\..\..\..\temp\cmr\ta_SAREXT.obj: ..\..\..\..\..\src\ta_func\ta_SAREXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_SAREXT.obj ..\..\..\..\..\src\ta_func\ta_SAREXT.c + +..\..\..\..\..\temp\cmr\ta_SIN.obj: ..\..\..\..\..\src\ta_func\ta_SIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_SIN.obj ..\..\..\..\..\src\ta_func\ta_SIN.c + +..\..\..\..\..\temp\cmr\ta_SINH.obj: ..\..\..\..\..\src\ta_func\ta_SINH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_SINH.obj ..\..\..\..\..\src\ta_func\ta_SINH.c + +..\..\..\..\..\temp\cmr\ta_SMA.obj: ..\..\..\..\..\src\ta_func\ta_SMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_SMA.obj ..\..\..\..\..\src\ta_func\ta_SMA.c + +..\..\..\..\..\temp\cmr\ta_SQRT.obj: ..\..\..\..\..\src\ta_func\ta_SQRT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_SQRT.obj ..\..\..\..\..\src\ta_func\ta_SQRT.c + +..\..\..\..\..\temp\cmr\ta_STDDEV.obj: ..\..\..\..\..\src\ta_func\ta_STDDEV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_STDDEV.obj ..\..\..\..\..\src\ta_func\ta_STDDEV.c + +..\..\..\..\..\temp\cmr\ta_STOCH.obj: ..\..\..\..\..\src\ta_func\ta_STOCH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_STOCH.obj ..\..\..\..\..\src\ta_func\ta_STOCH.c + +..\..\..\..\..\temp\cmr\ta_STOCHF.obj: ..\..\..\..\..\src\ta_func\ta_STOCHF.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_STOCHF.obj ..\..\..\..\..\src\ta_func\ta_STOCHF.c + +..\..\..\..\..\temp\cmr\ta_STOCHRSI.obj: ..\..\..\..\..\src\ta_func\ta_STOCHRSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_STOCHRSI.obj ..\..\..\..\..\src\ta_func\ta_STOCHRSI.c + +..\..\..\..\..\temp\cmr\ta_SUB.obj: ..\..\..\..\..\src\ta_func\ta_SUB.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_SUB.obj ..\..\..\..\..\src\ta_func\ta_SUB.c + +..\..\..\..\..\temp\cmr\ta_SUM.obj: ..\..\..\..\..\src\ta_func\ta_SUM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_SUM.obj ..\..\..\..\..\src\ta_func\ta_SUM.c + +..\..\..\..\..\temp\cmr\ta_T3.obj: ..\..\..\..\..\src\ta_func\ta_T3.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_T3.obj ..\..\..\..\..\src\ta_func\ta_T3.c + +..\..\..\..\..\temp\cmr\ta_TAN.obj: ..\..\..\..\..\src\ta_func\ta_TAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_TAN.obj ..\..\..\..\..\src\ta_func\ta_TAN.c + +..\..\..\..\..\temp\cmr\ta_TANH.obj: ..\..\..\..\..\src\ta_func\ta_TANH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_TANH.obj ..\..\..\..\..\src\ta_func\ta_TANH.c + +..\..\..\..\..\temp\cmr\ta_TEMA.obj: ..\..\..\..\..\src\ta_func\ta_TEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_TEMA.obj ..\..\..\..\..\src\ta_func\ta_TEMA.c + +..\..\..\..\..\temp\cmr\ta_TRANGE.obj: ..\..\..\..\..\src\ta_func\ta_TRANGE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_TRANGE.obj ..\..\..\..\..\src\ta_func\ta_TRANGE.c + +..\..\..\..\..\temp\cmr\ta_TRIMA.obj: ..\..\..\..\..\src\ta_func\ta_TRIMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_TRIMA.obj ..\..\..\..\..\src\ta_func\ta_TRIMA.c + +..\..\..\..\..\temp\cmr\ta_TRIX.obj: ..\..\..\..\..\src\ta_func\ta_TRIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_TRIX.obj ..\..\..\..\..\src\ta_func\ta_TRIX.c + +..\..\..\..\..\temp\cmr\ta_TSF.obj: ..\..\..\..\..\src\ta_func\ta_TSF.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_TSF.obj ..\..\..\..\..\src\ta_func\ta_TSF.c + +..\..\..\..\..\temp\cmr\ta_TYPPRICE.obj: ..\..\..\..\..\src\ta_func\ta_TYPPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_TYPPRICE.obj ..\..\..\..\..\src\ta_func\ta_TYPPRICE.c + +..\..\..\..\..\temp\cmr\ta_ULTOSC.obj: ..\..\..\..\..\src\ta_func\ta_ULTOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_ULTOSC.obj ..\..\..\..\..\src\ta_func\ta_ULTOSC.c + +..\..\..\..\..\temp\cmr\ta_VAR.obj: ..\..\..\..\..\src\ta_func\ta_VAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_VAR.obj ..\..\..\..\..\src\ta_func\ta_VAR.c + +..\..\..\..\..\temp\cmr\ta_WCLPRICE.obj: ..\..\..\..\..\src\ta_func\ta_WCLPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_WCLPRICE.obj ..\..\..\..\..\src\ta_func\ta_WCLPRICE.c + +..\..\..\..\..\temp\cmr\ta_WILLR.obj: ..\..\..\..\..\src\ta_func\ta_WILLR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_WILLR.obj ..\..\..\..\..\src\ta_func\ta_WILLR.c + +..\..\..\..\..\temp\cmr\ta_WMA.obj: ..\..\..\..\..\src\ta_func\ta_WMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_WMA.obj ..\..\..\..\..\src\ta_func\ta_WMA.c + diff --git a/make/cmr/win32/symantec/ta_libc/Makefile b/make/cmr/win32/symantec/ta_libc/Makefile new file mode 100644 index 000000000..0e679949a --- /dev/null +++ b/make/cmr/win32/symantec/ta_libc/Makefile @@ -0,0 +1,1424 @@ +############################################################################# +# Makefile for building ta_libc_cmr +# Generated by tmake; +# Project: ta_libc/ta_libc +# Template: lib +############################################################################# + +####### Compiler, tools and options + +CC = sc +CXX = sc +CFLAGS = -mn -w2 -o -DWIN32 -DNO_DEBUG +CXXFLAGS= -mn -w2 -o -DWIN32 -DNO_DEBUG +INCPATH = -I"..\..\..\..\..\src\ta_common" -I"..\..\..\..\..\include" -I"..\..\..\..\..\src\ta_abstract" -I"..\..\..\..\..\src\ta_abstract\tables" -I"..\..\..\..\..\src\ta_abstract\frames" -I"$(QTDIR)\include" +LIB = lib /C /N /NOI /P:32 +MOC = moc + +ZIP = zip -r -9 + +####### Files + +HEADERS = +SOURCES = ..\..\..\..\..\src\ta_common\ta_global.c \ + ..\..\..\..\..\src\ta_common\ta_retcode.c \ + ..\..\..\..\..\src\ta_common\ta_version.c \ + ..\..\..\..\..\src\ta_abstract\ta_abstract.c \ + ..\..\..\..\..\src\ta_abstract\ta_def_ui.c \ + ..\..\..\..\..\src\ta_abstract\ta_func_api.c \ + ..\..\..\..\..\src\ta_abstract\ta_group_idx.c \ + ..\..\..\..\..\src\ta_abstract\frames\ta_frame.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_a.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_b.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_c.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_d.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_e.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_f.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_g.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_h.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_i.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_j.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_k.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_l.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_m.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_n.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_o.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_p.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_q.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_r.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_s.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_t.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_u.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_v.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_w.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_x.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_y.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_z.c \ + ..\..\..\..\..\src\ta_func\ta_utility.c \ + ..\..\..\..\..\src\ta_func\ta_ACOS.c \ + ..\..\..\..\..\src\ta_func\ta_AD.c \ + ..\..\..\..\..\src\ta_func\ta_ADD.c \ + ..\..\..\..\..\src\ta_func\ta_ADOSC.c \ + ..\..\..\..\..\src\ta_func\ta_ADX.c \ + ..\..\..\..\..\src\ta_func\ta_ADXR.c \ + ..\..\..\..\..\src\ta_func\ta_APO.c \ + ..\..\..\..\..\src\ta_func\ta_AROON.c \ + ..\..\..\..\..\src\ta_func\ta_AROONOSC.c \ + ..\..\..\..\..\src\ta_func\ta_ASIN.c \ + ..\..\..\..\..\src\ta_func\ta_ATAN.c \ + ..\..\..\..\..\src\ta_func\ta_ATR.c \ + ..\..\..\..\..\src\ta_func\ta_AVGPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_BBANDS.c \ + ..\..\..\..\..\src\ta_func\ta_BETA.c \ + ..\..\..\..\..\src\ta_func\ta_BOP.c \ + ..\..\..\..\..\src\ta_func\ta_CCI.c \ + ..\..\..\..\..\src\ta_func\ta_CDL2CROWS.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3BLACKCROWS.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3INSIDE.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3LINESTRIKE.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3OUTSIDE.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3STARSINSOUTH.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3WHITESOLDIERS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLABANDONEDBABY.c \ + ..\..\..\..\..\src\ta_func\ta_CDLADVANCEBLOCK.c \ + ..\..\..\..\..\src\ta_func\ta_CDLBELTHOLD.c \ + ..\..\..\..\..\src\ta_func\ta_CDLBREAKAWAY.c \ + ..\..\..\..\..\src\ta_func\ta_CDLCLOSINGMARUBOZU.c \ + ..\..\..\..\..\src\ta_func\ta_CDLCONCEALBABYSWALL.c \ + ..\..\..\..\..\src\ta_func\ta_CDLCOUNTERATTACK.c \ + ..\..\..\..\..\src\ta_func\ta_CDLDARKCLOUDCOVER.c \ + ..\..\..\..\..\src\ta_func\ta_CDLDOJI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLDOJISTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLDRAGONFLYDOJI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLENGULFING.c \ + ..\..\..\..\..\src\ta_func\ta_CDLEVENINGDOJISTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLEVENINGSTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLGAPSIDESIDEWHITE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLGRAVESTONEDOJI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHAMMER.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHANGINGMAN.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHARAMI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHARAMICROSS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHIGHWAVE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKEMOD.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHOMINGPIGEON.c \ + ..\..\..\..\..\src\ta_func\ta_CDLIDENTICAL3CROWS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLINNECK.c \ + ..\..\..\..\..\src\ta_func\ta_CDLINVERTEDHAMMER.c \ + ..\..\..\..\..\src\ta_func\ta_CDLKICKING.c \ + ..\..\..\..\..\src\ta_func\ta_CDLKICKINGBYLENGTH.c \ + ..\..\..\..\..\src\ta_func\ta_CDLLADDERBOTTOM.c \ + ..\..\..\..\..\src\ta_func\ta_CDLLONGLEGGEDDOJI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLLONGLINE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMARUBOZU.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMATCHINGLOW.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMATHOLD.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMORNINGDOJISTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMORNINGSTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLONNECK.c \ + ..\..\..\..\..\src\ta_func\ta_CDLPIERCING.c \ + ..\..\..\..\..\src\ta_func\ta_CDLRICKSHAWMAN.c \ + ..\..\..\..\..\src\ta_func\ta_CDLRISEFALL3METHODS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSEPARATINGLINES.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSHOOTINGSTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSHORTLINE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSPINNINGTOP.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSTALLEDPATTERN.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSTICKSANDWICH.c \ + ..\..\..\..\..\src\ta_func\ta_CDLTAKURI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLTASUKIGAP.c \ + ..\..\..\..\..\src\ta_func\ta_CDLTHRUSTING.c \ + ..\..\..\..\..\src\ta_func\ta_CDLTRISTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLUNIQUE3RIVER.c \ + ..\..\..\..\..\src\ta_func\ta_CDLUPSIDEGAP2CROWS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLXSIDEGAP3METHODS.c \ + ..\..\..\..\..\src\ta_func\ta_CEIL.c \ + ..\..\..\..\..\src\ta_func\ta_CMO.c \ + ..\..\..\..\..\src\ta_func\ta_CORREL.c \ + ..\..\..\..\..\src\ta_func\ta_COS.c \ + ..\..\..\..\..\src\ta_func\ta_COSH.c \ + ..\..\..\..\..\src\ta_func\ta_DEMA.c \ + ..\..\..\..\..\src\ta_func\ta_DIV.c \ + ..\..\..\..\..\src\ta_func\ta_DX.c \ + ..\..\..\..\..\src\ta_func\ta_EMA.c \ + ..\..\..\..\..\src\ta_func\ta_EXP.c \ + ..\..\..\..\..\src\ta_func\ta_FLOOR.c \ + ..\..\..\..\..\src\ta_func\ta_HT_DCPERIOD.c \ + ..\..\..\..\..\src\ta_func\ta_HT_DCPHASE.c \ + ..\..\..\..\..\src\ta_func\ta_HT_PHASOR.c \ + ..\..\..\..\..\src\ta_func\ta_HT_SINE.c \ + ..\..\..\..\..\src\ta_func\ta_HT_TRENDLINE.c \ + ..\..\..\..\..\src\ta_func\ta_HT_TRENDMODE.c \ + ..\..\..\..\..\src\ta_func\ta_KAMA.c \ + ..\..\..\..\..\src\ta_func\ta_LINEARREG.c \ + ..\..\..\..\..\src\ta_func\ta_LINEARREG_ANGLE.c \ + ..\..\..\..\..\src\ta_func\ta_LINEARREG_INTERCEPT.c \ + ..\..\..\..\..\src\ta_func\ta_LINEARREG_SLOPE.c \ + ..\..\..\..\..\src\ta_func\ta_LN.c \ + ..\..\..\..\..\src\ta_func\ta_LOG10.c \ + ..\..\..\..\..\src\ta_func\ta_MA.c \ + ..\..\..\..\..\src\ta_func\ta_MACD.c \ + ..\..\..\..\..\src\ta_func\ta_MACDEXT.c \ + ..\..\..\..\..\src\ta_func\ta_MACDFIX.c \ + ..\..\..\..\..\src\ta_func\ta_MAMA.c \ + ..\..\..\..\..\src\ta_func\ta_MAVP.c \ + ..\..\..\..\..\src\ta_func\ta_MAX.c \ + ..\..\..\..\..\src\ta_func\ta_MAXINDEX.c \ + ..\..\..\..\..\src\ta_func\ta_MEDPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_MFI.c \ + ..\..\..\..\..\src\ta_func\ta_MIDPOINT.c \ + ..\..\..\..\..\src\ta_func\ta_MIDPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_MIN.c \ + ..\..\..\..\..\src\ta_func\ta_MININDEX.c \ + ..\..\..\..\..\src\ta_func\ta_MINMAX.c \ + ..\..\..\..\..\src\ta_func\ta_MINMAXINDEX.c \ + ..\..\..\..\..\src\ta_func\ta_MINUS_DI.c \ + ..\..\..\..\..\src\ta_func\ta_MINUS_DM.c \ + ..\..\..\..\..\src\ta_func\ta_MOM.c \ + ..\..\..\..\..\src\ta_func\ta_MULT.c \ + ..\..\..\..\..\src\ta_func\ta_NATR.c \ + ..\..\..\..\..\src\ta_func\ta_OBV.c \ + ..\..\..\..\..\src\ta_func\ta_PLUS_DI.c \ + ..\..\..\..\..\src\ta_func\ta_PLUS_DM.c \ + ..\..\..\..\..\src\ta_func\ta_PPO.c \ + ..\..\..\..\..\src\ta_func\ta_ROC.c \ + ..\..\..\..\..\src\ta_func\ta_ROCP.c \ + ..\..\..\..\..\src\ta_func\ta_ROCR.c \ + ..\..\..\..\..\src\ta_func\ta_ROCR100.c \ + ..\..\..\..\..\src\ta_func\ta_RSI.c \ + ..\..\..\..\..\src\ta_func\ta_SAR.c \ + ..\..\..\..\..\src\ta_func\ta_SAREXT.c \ + ..\..\..\..\..\src\ta_func\ta_SIN.c \ + ..\..\..\..\..\src\ta_func\ta_SINH.c \ + ..\..\..\..\..\src\ta_func\ta_SMA.c \ + ..\..\..\..\..\src\ta_func\ta_SQRT.c \ + ..\..\..\..\..\src\ta_func\ta_STDDEV.c \ + ..\..\..\..\..\src\ta_func\ta_STOCH.c \ + ..\..\..\..\..\src\ta_func\ta_STOCHF.c \ + ..\..\..\..\..\src\ta_func\ta_STOCHRSI.c \ + ..\..\..\..\..\src\ta_func\ta_SUB.c \ + ..\..\..\..\..\src\ta_func\ta_SUM.c \ + ..\..\..\..\..\src\ta_func\ta_T3.c \ + ..\..\..\..\..\src\ta_func\ta_TAN.c \ + ..\..\..\..\..\src\ta_func\ta_TANH.c \ + ..\..\..\..\..\src\ta_func\ta_TEMA.c \ + ..\..\..\..\..\src\ta_func\ta_TRANGE.c \ + ..\..\..\..\..\src\ta_func\ta_TRIMA.c \ + ..\..\..\..\..\src\ta_func\ta_TRIX.c \ + ..\..\..\..\..\src\ta_func\ta_TSF.c \ + ..\..\..\..\..\src\ta_func\ta_TYPPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_ULTOSC.c \ + ..\..\..\..\..\src\ta_func\ta_VAR.c \ + ..\..\..\..\..\src\ta_func\ta_WCLPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_WILLR.c \ + ..\..\..\..\..\src\ta_func\ta_WMA.c +OBJECTS = ..\..\..\..\..\temp\cmr\ta_global.obj \ + ..\..\..\..\..\temp\cmr\ta_retcode.obj \ + ..\..\..\..\..\temp\cmr\ta_version.obj \ + ..\..\..\..\..\temp\cmr\ta_abstract.obj \ + ..\..\..\..\..\temp\cmr\ta_def_ui.obj \ + ..\..\..\..\..\temp\cmr\ta_func_api.obj \ + ..\..\..\..\..\temp\cmr\ta_group_idx.obj \ + ..\..\..\..\..\temp\cmr\ta_frame.obj \ + ..\..\..\..\..\temp\cmr\table_a.obj \ + ..\..\..\..\..\temp\cmr\table_b.obj \ + ..\..\..\..\..\temp\cmr\table_c.obj \ + ..\..\..\..\..\temp\cmr\table_d.obj \ + ..\..\..\..\..\temp\cmr\table_e.obj \ + ..\..\..\..\..\temp\cmr\table_f.obj \ + ..\..\..\..\..\temp\cmr\table_g.obj \ + ..\..\..\..\..\temp\cmr\table_h.obj \ + ..\..\..\..\..\temp\cmr\table_i.obj \ + ..\..\..\..\..\temp\cmr\table_j.obj \ + ..\..\..\..\..\temp\cmr\table_k.obj \ + ..\..\..\..\..\temp\cmr\table_l.obj \ + ..\..\..\..\..\temp\cmr\table_m.obj \ + ..\..\..\..\..\temp\cmr\table_n.obj \ + ..\..\..\..\..\temp\cmr\table_o.obj \ + ..\..\..\..\..\temp\cmr\table_p.obj \ + ..\..\..\..\..\temp\cmr\table_q.obj \ + ..\..\..\..\..\temp\cmr\table_r.obj \ + ..\..\..\..\..\temp\cmr\table_s.obj \ + ..\..\..\..\..\temp\cmr\table_t.obj \ + ..\..\..\..\..\temp\cmr\table_u.obj \ + ..\..\..\..\..\temp\cmr\table_v.obj \ + ..\..\..\..\..\temp\cmr\table_w.obj \ + ..\..\..\..\..\temp\cmr\table_x.obj \ + ..\..\..\..\..\temp\cmr\table_y.obj \ + ..\..\..\..\..\temp\cmr\table_z.obj \ + ..\..\..\..\..\temp\cmr\ta_utility.obj \ + ..\..\..\..\..\temp\cmr\ta_ACOS.obj \ + ..\..\..\..\..\temp\cmr\ta_AD.obj \ + ..\..\..\..\..\temp\cmr\ta_ADD.obj \ + ..\..\..\..\..\temp\cmr\ta_ADOSC.obj \ + ..\..\..\..\..\temp\cmr\ta_ADX.obj \ + ..\..\..\..\..\temp\cmr\ta_ADXR.obj \ + ..\..\..\..\..\temp\cmr\ta_APO.obj \ + ..\..\..\..\..\temp\cmr\ta_AROON.obj \ + ..\..\..\..\..\temp\cmr\ta_AROONOSC.obj \ + ..\..\..\..\..\temp\cmr\ta_ASIN.obj \ + ..\..\..\..\..\temp\cmr\ta_ATAN.obj \ + ..\..\..\..\..\temp\cmr\ta_ATR.obj \ + ..\..\..\..\..\temp\cmr\ta_AVGPRICE.obj \ + ..\..\..\..\..\temp\cmr\ta_BBANDS.obj \ + ..\..\..\..\..\temp\cmr\ta_BETA.obj \ + ..\..\..\..\..\temp\cmr\ta_BOP.obj \ + ..\..\..\..\..\temp\cmr\ta_CCI.obj \ + ..\..\..\..\..\temp\cmr\ta_CDL2CROWS.obj \ + ..\..\..\..\..\temp\cmr\ta_CDL3BLACKCROWS.obj \ + ..\..\..\..\..\temp\cmr\ta_CDL3INSIDE.obj \ + ..\..\..\..\..\temp\cmr\ta_CDL3LINESTRIKE.obj \ + ..\..\..\..\..\temp\cmr\ta_CDL3OUTSIDE.obj \ + ..\..\..\..\..\temp\cmr\ta_CDL3STARSINSOUTH.obj \ + ..\..\..\..\..\temp\cmr\ta_CDL3WHITESOLDIERS.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLABANDONEDBABY.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLADVANCEBLOCK.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLBELTHOLD.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLBREAKAWAY.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLCLOSINGMARUBOZU.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLCONCEALBABYSWALL.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLCOUNTERATTACK.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLDARKCLOUDCOVER.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLDOJI.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLDOJISTAR.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLDRAGONFLYDOJI.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLENGULFING.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLEVENINGDOJISTAR.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLEVENINGSTAR.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLGAPSIDESIDEWHITE.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLGRAVESTONEDOJI.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLHAMMER.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLHANGINGMAN.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLHARAMI.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLHARAMICROSS.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLHIGHWAVE.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLHIKKAKE.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLHIKKAKEMOD.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLHOMINGPIGEON.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLIDENTICAL3CROWS.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLINNECK.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLINVERTEDHAMMER.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLKICKING.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLKICKINGBYLENGTH.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLLADDERBOTTOM.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLLONGLEGGEDDOJI.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLLONGLINE.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLMARUBOZU.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLMATCHINGLOW.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLMATHOLD.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLMORNINGDOJISTAR.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLMORNINGSTAR.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLONNECK.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLPIERCING.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLRICKSHAWMAN.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLRISEFALL3METHODS.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLSEPARATINGLINES.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLSHOOTINGSTAR.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLSHORTLINE.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLSPINNINGTOP.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLSTALLEDPATTERN.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLSTICKSANDWICH.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLTAKURI.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLTASUKIGAP.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLTHRUSTING.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLTRISTAR.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLUNIQUE3RIVER.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLUPSIDEGAP2CROWS.obj \ + ..\..\..\..\..\temp\cmr\ta_CDLXSIDEGAP3METHODS.obj \ + ..\..\..\..\..\temp\cmr\ta_CEIL.obj \ + ..\..\..\..\..\temp\cmr\ta_CMO.obj \ + ..\..\..\..\..\temp\cmr\ta_CORREL.obj \ + ..\..\..\..\..\temp\cmr\ta_COS.obj \ + ..\..\..\..\..\temp\cmr\ta_COSH.obj \ + ..\..\..\..\..\temp\cmr\ta_DEMA.obj \ + ..\..\..\..\..\temp\cmr\ta_DIV.obj \ + ..\..\..\..\..\temp\cmr\ta_DX.obj \ + ..\..\..\..\..\temp\cmr\ta_EMA.obj \ + ..\..\..\..\..\temp\cmr\ta_EXP.obj \ + ..\..\..\..\..\temp\cmr\ta_FLOOR.obj \ + ..\..\..\..\..\temp\cmr\ta_HT_DCPERIOD.obj \ + ..\..\..\..\..\temp\cmr\ta_HT_DCPHASE.obj \ + ..\..\..\..\..\temp\cmr\ta_HT_PHASOR.obj \ + ..\..\..\..\..\temp\cmr\ta_HT_SINE.obj \ + ..\..\..\..\..\temp\cmr\ta_HT_TRENDLINE.obj \ + ..\..\..\..\..\temp\cmr\ta_HT_TRENDMODE.obj \ + ..\..\..\..\..\temp\cmr\ta_KAMA.obj \ + ..\..\..\..\..\temp\cmr\ta_LINEARREG.obj \ + ..\..\..\..\..\temp\cmr\ta_LINEARREG_ANGLE.obj \ + ..\..\..\..\..\temp\cmr\ta_LINEARREG_INTERCEPT.obj \ + ..\..\..\..\..\temp\cmr\ta_LINEARREG_SLOPE.obj \ + ..\..\..\..\..\temp\cmr\ta_LN.obj \ + ..\..\..\..\..\temp\cmr\ta_LOG10.obj \ + ..\..\..\..\..\temp\cmr\ta_MA.obj \ + ..\..\..\..\..\temp\cmr\ta_MACD.obj \ + ..\..\..\..\..\temp\cmr\ta_MACDEXT.obj \ + ..\..\..\..\..\temp\cmr\ta_MACDFIX.obj \ + ..\..\..\..\..\temp\cmr\ta_MAMA.obj \ + ..\..\..\..\..\temp\cmr\ta_MAVP.obj \ + ..\..\..\..\..\temp\cmr\ta_MAX.obj \ + ..\..\..\..\..\temp\cmr\ta_MAXINDEX.obj \ + ..\..\..\..\..\temp\cmr\ta_MEDPRICE.obj \ + ..\..\..\..\..\temp\cmr\ta_MFI.obj \ + ..\..\..\..\..\temp\cmr\ta_MIDPOINT.obj \ + ..\..\..\..\..\temp\cmr\ta_MIDPRICE.obj \ + ..\..\..\..\..\temp\cmr\ta_MIN.obj \ + ..\..\..\..\..\temp\cmr\ta_MININDEX.obj \ + ..\..\..\..\..\temp\cmr\ta_MINMAX.obj \ + ..\..\..\..\..\temp\cmr\ta_MINMAXINDEX.obj \ + ..\..\..\..\..\temp\cmr\ta_MINUS_DI.obj \ + ..\..\..\..\..\temp\cmr\ta_MINUS_DM.obj \ + ..\..\..\..\..\temp\cmr\ta_MOM.obj \ + ..\..\..\..\..\temp\cmr\ta_MULT.obj \ + ..\..\..\..\..\temp\cmr\ta_NATR.obj \ + ..\..\..\..\..\temp\cmr\ta_OBV.obj \ + ..\..\..\..\..\temp\cmr\ta_PLUS_DI.obj \ + ..\..\..\..\..\temp\cmr\ta_PLUS_DM.obj \ + ..\..\..\..\..\temp\cmr\ta_PPO.obj \ + ..\..\..\..\..\temp\cmr\ta_ROC.obj \ + ..\..\..\..\..\temp\cmr\ta_ROCP.obj \ + ..\..\..\..\..\temp\cmr\ta_ROCR.obj \ + ..\..\..\..\..\temp\cmr\ta_ROCR100.obj \ + ..\..\..\..\..\temp\cmr\ta_RSI.obj \ + ..\..\..\..\..\temp\cmr\ta_SAR.obj \ + ..\..\..\..\..\temp\cmr\ta_SAREXT.obj \ + ..\..\..\..\..\temp\cmr\ta_SIN.obj \ + ..\..\..\..\..\temp\cmr\ta_SINH.obj \ + ..\..\..\..\..\temp\cmr\ta_SMA.obj \ + ..\..\..\..\..\temp\cmr\ta_SQRT.obj \ + ..\..\..\..\..\temp\cmr\ta_STDDEV.obj \ + ..\..\..\..\..\temp\cmr\ta_STOCH.obj \ + ..\..\..\..\..\temp\cmr\ta_STOCHF.obj \ + ..\..\..\..\..\temp\cmr\ta_STOCHRSI.obj \ + ..\..\..\..\..\temp\cmr\ta_SUB.obj \ + ..\..\..\..\..\temp\cmr\ta_SUM.obj \ + ..\..\..\..\..\temp\cmr\ta_T3.obj \ + ..\..\..\..\..\temp\cmr\ta_TAN.obj \ + ..\..\..\..\..\temp\cmr\ta_TANH.obj \ + ..\..\..\..\..\temp\cmr\ta_TEMA.obj \ + ..\..\..\..\..\temp\cmr\ta_TRANGE.obj \ + ..\..\..\..\..\temp\cmr\ta_TRIMA.obj \ + ..\..\..\..\..\temp\cmr\ta_TRIX.obj \ + ..\..\..\..\..\temp\cmr\ta_TSF.obj \ + ..\..\..\..\..\temp\cmr\ta_TYPPRICE.obj \ + ..\..\..\..\..\temp\cmr\ta_ULTOSC.obj \ + ..\..\..\..\..\temp\cmr\ta_VAR.obj \ + ..\..\..\..\..\temp\cmr\ta_WCLPRICE.obj \ + ..\..\..\..\..\temp\cmr\ta_WILLR.obj \ + ..\..\..\..\..\temp\cmr\ta_WMA.obj +SRCMOC = +OBJMOC = +DIST = +TARGET = ..\..\..\..\..\lib\ta_libc_cmr.lib + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .c + +.cpp.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.cxx.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.cc.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.c.obj: + $(CC) -c $(CFLAGS) $(INCPATH) -o$@ $< + +####### Build rules + +all: $(TARGET) + +$(TARGET): $(OBJECTS) $(OBJMOC) + -del $(TARGET) + $(LIB) $(TARGET) ..\..\..\..\..\temp\cmr\ta_global.obj \ ++..\..\..\..\..\temp\cmr\ta_retcode.obj \ ++..\..\..\..\..\temp\cmr\ta_version.obj \ ++..\..\..\..\..\temp\cmr\ta_abstract.obj \ ++..\..\..\..\..\temp\cmr\ta_def_ui.obj \ ++..\..\..\..\..\temp\cmr\ta_func_api.obj \ ++..\..\..\..\..\temp\cmr\ta_group_idx.obj \ ++..\..\..\..\..\temp\cmr\ta_frame.obj \ ++..\..\..\..\..\temp\cmr\table_a.obj \ ++..\..\..\..\..\temp\cmr\table_b.obj \ ++..\..\..\..\..\temp\cmr\table_c.obj \ ++..\..\..\..\..\temp\cmr\table_d.obj \ ++..\..\..\..\..\temp\cmr\table_e.obj \ ++..\..\..\..\..\temp\cmr\table_f.obj \ ++..\..\..\..\..\temp\cmr\table_g.obj \ ++..\..\..\..\..\temp\cmr\table_h.obj \ ++..\..\..\..\..\temp\cmr\table_i.obj \ ++..\..\..\..\..\temp\cmr\table_j.obj \ ++..\..\..\..\..\temp\cmr\table_k.obj \ ++..\..\..\..\..\temp\cmr\table_l.obj \ ++..\..\..\..\..\temp\cmr\table_m.obj \ ++..\..\..\..\..\temp\cmr\table_n.obj \ ++..\..\..\..\..\temp\cmr\table_o.obj \ ++..\..\..\..\..\temp\cmr\table_p.obj \ ++..\..\..\..\..\temp\cmr\table_q.obj \ ++..\..\..\..\..\temp\cmr\table_r.obj \ ++..\..\..\..\..\temp\cmr\table_s.obj \ ++..\..\..\..\..\temp\cmr\table_t.obj \ ++..\..\..\..\..\temp\cmr\table_u.obj \ ++..\..\..\..\..\temp\cmr\table_v.obj \ ++..\..\..\..\..\temp\cmr\table_w.obj \ ++..\..\..\..\..\temp\cmr\table_x.obj \ ++..\..\..\..\..\temp\cmr\table_y.obj \ ++..\..\..\..\..\temp\cmr\table_z.obj \ ++..\..\..\..\..\temp\cmr\ta_utility.obj \ ++..\..\..\..\..\temp\cmr\ta_ACOS.obj \ ++..\..\..\..\..\temp\cmr\ta_AD.obj \ ++..\..\..\..\..\temp\cmr\ta_ADD.obj \ ++..\..\..\..\..\temp\cmr\ta_ADOSC.obj \ ++..\..\..\..\..\temp\cmr\ta_ADX.obj \ ++..\..\..\..\..\temp\cmr\ta_ADXR.obj \ ++..\..\..\..\..\temp\cmr\ta_APO.obj \ ++..\..\..\..\..\temp\cmr\ta_AROON.obj \ ++..\..\..\..\..\temp\cmr\ta_AROONOSC.obj \ ++..\..\..\..\..\temp\cmr\ta_ASIN.obj \ ++..\..\..\..\..\temp\cmr\ta_ATAN.obj \ ++..\..\..\..\..\temp\cmr\ta_ATR.obj \ ++..\..\..\..\..\temp\cmr\ta_AVGPRICE.obj \ ++..\..\..\..\..\temp\cmr\ta_BBANDS.obj \ ++..\..\..\..\..\temp\cmr\ta_BETA.obj \ ++..\..\..\..\..\temp\cmr\ta_BOP.obj \ ++..\..\..\..\..\temp\cmr\ta_CCI.obj \ ++..\..\..\..\..\temp\cmr\ta_CDL2CROWS.obj \ ++..\..\..\..\..\temp\cmr\ta_CDL3BLACKCROWS.obj \ ++..\..\..\..\..\temp\cmr\ta_CDL3INSIDE.obj \ ++..\..\..\..\..\temp\cmr\ta_CDL3LINESTRIKE.obj \ ++..\..\..\..\..\temp\cmr\ta_CDL3OUTSIDE.obj \ ++..\..\..\..\..\temp\cmr\ta_CDL3STARSINSOUTH.obj \ ++..\..\..\..\..\temp\cmr\ta_CDL3WHITESOLDIERS.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLABANDONEDBABY.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLADVANCEBLOCK.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLBELTHOLD.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLBREAKAWAY.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLCLOSINGMARUBOZU.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLCONCEALBABYSWALL.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLCOUNTERATTACK.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLDARKCLOUDCOVER.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLDOJI.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLDOJISTAR.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLDRAGONFLYDOJI.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLENGULFING.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLEVENINGDOJISTAR.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLEVENINGSTAR.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLGAPSIDESIDEWHITE.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLGRAVESTONEDOJI.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLHAMMER.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLHANGINGMAN.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLHARAMI.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLHARAMICROSS.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLHIGHWAVE.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLHIKKAKE.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLHIKKAKEMOD.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLHOMINGPIGEON.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLIDENTICAL3CROWS.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLINNECK.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLINVERTEDHAMMER.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLKICKING.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLKICKINGBYLENGTH.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLLADDERBOTTOM.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLLONGLEGGEDDOJI.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLLONGLINE.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLMARUBOZU.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLMATCHINGLOW.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLMATHOLD.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLMORNINGDOJISTAR.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLMORNINGSTAR.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLONNECK.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLPIERCING.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLRICKSHAWMAN.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLRISEFALL3METHODS.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLSEPARATINGLINES.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLSHOOTINGSTAR.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLSHORTLINE.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLSPINNINGTOP.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLSTALLEDPATTERN.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLSTICKSANDWICH.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLTAKURI.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLTASUKIGAP.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLTHRUSTING.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLTRISTAR.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLUNIQUE3RIVER.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLUPSIDEGAP2CROWS.obj \ ++..\..\..\..\..\temp\cmr\ta_CDLXSIDEGAP3METHODS.obj \ ++..\..\..\..\..\temp\cmr\ta_CEIL.obj \ ++..\..\..\..\..\temp\cmr\ta_CMO.obj \ ++..\..\..\..\..\temp\cmr\ta_CORREL.obj \ ++..\..\..\..\..\temp\cmr\ta_COS.obj \ ++..\..\..\..\..\temp\cmr\ta_COSH.obj \ ++..\..\..\..\..\temp\cmr\ta_DEMA.obj \ ++..\..\..\..\..\temp\cmr\ta_DIV.obj \ ++..\..\..\..\..\temp\cmr\ta_DX.obj \ ++..\..\..\..\..\temp\cmr\ta_EMA.obj \ ++..\..\..\..\..\temp\cmr\ta_EXP.obj \ ++..\..\..\..\..\temp\cmr\ta_FLOOR.obj \ ++..\..\..\..\..\temp\cmr\ta_HT_DCPERIOD.obj \ ++..\..\..\..\..\temp\cmr\ta_HT_DCPHASE.obj \ ++..\..\..\..\..\temp\cmr\ta_HT_PHASOR.obj \ ++..\..\..\..\..\temp\cmr\ta_HT_SINE.obj \ ++..\..\..\..\..\temp\cmr\ta_HT_TRENDLINE.obj \ ++..\..\..\..\..\temp\cmr\ta_HT_TRENDMODE.obj \ ++..\..\..\..\..\temp\cmr\ta_KAMA.obj \ ++..\..\..\..\..\temp\cmr\ta_LINEARREG.obj \ ++..\..\..\..\..\temp\cmr\ta_LINEARREG_ANGLE.obj \ ++..\..\..\..\..\temp\cmr\ta_LINEARREG_INTERCEPT.obj \ ++..\..\..\..\..\temp\cmr\ta_LINEARREG_SLOPE.obj \ ++..\..\..\..\..\temp\cmr\ta_LN.obj \ ++..\..\..\..\..\temp\cmr\ta_LOG10.obj \ ++..\..\..\..\..\temp\cmr\ta_MA.obj \ ++..\..\..\..\..\temp\cmr\ta_MACD.obj \ ++..\..\..\..\..\temp\cmr\ta_MACDEXT.obj \ ++..\..\..\..\..\temp\cmr\ta_MACDFIX.obj \ ++..\..\..\..\..\temp\cmr\ta_MAMA.obj \ ++..\..\..\..\..\temp\cmr\ta_MAVP.obj \ ++..\..\..\..\..\temp\cmr\ta_MAX.obj \ ++..\..\..\..\..\temp\cmr\ta_MAXINDEX.obj \ ++..\..\..\..\..\temp\cmr\ta_MEDPRICE.obj \ ++..\..\..\..\..\temp\cmr\ta_MFI.obj \ ++..\..\..\..\..\temp\cmr\ta_MIDPOINT.obj \ ++..\..\..\..\..\temp\cmr\ta_MIDPRICE.obj \ ++..\..\..\..\..\temp\cmr\ta_MIN.obj \ ++..\..\..\..\..\temp\cmr\ta_MININDEX.obj \ ++..\..\..\..\..\temp\cmr\ta_MINMAX.obj \ ++..\..\..\..\..\temp\cmr\ta_MINMAXINDEX.obj \ ++..\..\..\..\..\temp\cmr\ta_MINUS_DI.obj \ ++..\..\..\..\..\temp\cmr\ta_MINUS_DM.obj \ ++..\..\..\..\..\temp\cmr\ta_MOM.obj \ ++..\..\..\..\..\temp\cmr\ta_MULT.obj \ ++..\..\..\..\..\temp\cmr\ta_NATR.obj \ ++..\..\..\..\..\temp\cmr\ta_OBV.obj \ ++..\..\..\..\..\temp\cmr\ta_PLUS_DI.obj \ ++..\..\..\..\..\temp\cmr\ta_PLUS_DM.obj \ ++..\..\..\..\..\temp\cmr\ta_PPO.obj \ ++..\..\..\..\..\temp\cmr\ta_ROC.obj \ ++..\..\..\..\..\temp\cmr\ta_ROCP.obj \ ++..\..\..\..\..\temp\cmr\ta_ROCR.obj \ ++..\..\..\..\..\temp\cmr\ta_ROCR100.obj \ ++..\..\..\..\..\temp\cmr\ta_RSI.obj \ ++..\..\..\..\..\temp\cmr\ta_SAR.obj \ ++..\..\..\..\..\temp\cmr\ta_SAREXT.obj \ ++..\..\..\..\..\temp\cmr\ta_SIN.obj \ ++..\..\..\..\..\temp\cmr\ta_SINH.obj \ ++..\..\..\..\..\temp\cmr\ta_SMA.obj \ ++..\..\..\..\..\temp\cmr\ta_SQRT.obj \ ++..\..\..\..\..\temp\cmr\ta_STDDEV.obj \ ++..\..\..\..\..\temp\cmr\ta_STOCH.obj \ ++..\..\..\..\..\temp\cmr\ta_STOCHF.obj \ ++..\..\..\..\..\temp\cmr\ta_STOCHRSI.obj \ ++..\..\..\..\..\temp\cmr\ta_SUB.obj \ ++..\..\..\..\..\temp\cmr\ta_SUM.obj \ ++..\..\..\..\..\temp\cmr\ta_T3.obj \ ++..\..\..\..\..\temp\cmr\ta_TAN.obj \ ++..\..\..\..\..\temp\cmr\ta_TANH.obj \ ++..\..\..\..\..\temp\cmr\ta_TEMA.obj \ ++..\..\..\..\..\temp\cmr\ta_TRANGE.obj \ ++..\..\..\..\..\temp\cmr\ta_TRIMA.obj \ ++..\..\..\..\..\temp\cmr\ta_TRIX.obj \ ++..\..\..\..\..\temp\cmr\ta_TSF.obj \ ++..\..\..\..\..\temp\cmr\ta_TYPPRICE.obj \ ++..\..\..\..\..\temp\cmr\ta_ULTOSC.obj \ ++..\..\..\..\..\temp\cmr\ta_VAR.obj \ ++..\..\..\..\..\temp\cmr\ta_WCLPRICE.obj \ ++..\..\..\..\..\temp\cmr\ta_WILLR.obj \ ++..\..\..\..\..\temp\cmr\ta_WMA.obj \ ++,; + +moc: $(SRCMOC) + +tmake: ../cmr/win32/symantec/ta_libc/Makefile + +../cmr/win32/symantec/ta_libc/Makefile: ta_libc/ta_libc.pro + tmake ta_libc/ta_libc.pro -o ../cmr/win32/symantec/ta_libc/Makefile + +dist: + $(ZIP) ta_libc/ta_libc.zip ta_libc/ta_libc.pro $(SOURCES) $(HEADERS) $(DIST) + +clean: + -del ..\..\..\..\..\temp\cmr\ta_global.obj + -del ..\..\..\..\..\temp\cmr\ta_retcode.obj + -del ..\..\..\..\..\temp\cmr\ta_version.obj + -del ..\..\..\..\..\temp\cmr\ta_abstract.obj + -del ..\..\..\..\..\temp\cmr\ta_def_ui.obj + -del ..\..\..\..\..\temp\cmr\ta_func_api.obj + -del ..\..\..\..\..\temp\cmr\ta_group_idx.obj + -del ..\..\..\..\..\temp\cmr\ta_frame.obj + -del ..\..\..\..\..\temp\cmr\table_a.obj + -del ..\..\..\..\..\temp\cmr\table_b.obj + -del ..\..\..\..\..\temp\cmr\table_c.obj + -del ..\..\..\..\..\temp\cmr\table_d.obj + -del ..\..\..\..\..\temp\cmr\table_e.obj + -del ..\..\..\..\..\temp\cmr\table_f.obj + -del ..\..\..\..\..\temp\cmr\table_g.obj + -del ..\..\..\..\..\temp\cmr\table_h.obj + -del ..\..\..\..\..\temp\cmr\table_i.obj + -del ..\..\..\..\..\temp\cmr\table_j.obj + -del ..\..\..\..\..\temp\cmr\table_k.obj + -del ..\..\..\..\..\temp\cmr\table_l.obj + -del ..\..\..\..\..\temp\cmr\table_m.obj + -del ..\..\..\..\..\temp\cmr\table_n.obj + -del ..\..\..\..\..\temp\cmr\table_o.obj + -del ..\..\..\..\..\temp\cmr\table_p.obj + -del ..\..\..\..\..\temp\cmr\table_q.obj + -del ..\..\..\..\..\temp\cmr\table_r.obj + -del ..\..\..\..\..\temp\cmr\table_s.obj + -del ..\..\..\..\..\temp\cmr\table_t.obj + -del ..\..\..\..\..\temp\cmr\table_u.obj + -del ..\..\..\..\..\temp\cmr\table_v.obj + -del ..\..\..\..\..\temp\cmr\table_w.obj + -del ..\..\..\..\..\temp\cmr\table_x.obj + -del ..\..\..\..\..\temp\cmr\table_y.obj + -del ..\..\..\..\..\temp\cmr\table_z.obj + -del ..\..\..\..\..\temp\cmr\ta_utility.obj + -del ..\..\..\..\..\temp\cmr\ta_ACOS.obj + -del ..\..\..\..\..\temp\cmr\ta_AD.obj + -del ..\..\..\..\..\temp\cmr\ta_ADD.obj + -del ..\..\..\..\..\temp\cmr\ta_ADOSC.obj + -del ..\..\..\..\..\temp\cmr\ta_ADX.obj + -del ..\..\..\..\..\temp\cmr\ta_ADXR.obj + -del ..\..\..\..\..\temp\cmr\ta_APO.obj + -del ..\..\..\..\..\temp\cmr\ta_AROON.obj + -del ..\..\..\..\..\temp\cmr\ta_AROONOSC.obj + -del ..\..\..\..\..\temp\cmr\ta_ASIN.obj + -del ..\..\..\..\..\temp\cmr\ta_ATAN.obj + -del ..\..\..\..\..\temp\cmr\ta_ATR.obj + -del ..\..\..\..\..\temp\cmr\ta_AVGPRICE.obj + -del ..\..\..\..\..\temp\cmr\ta_BBANDS.obj + -del ..\..\..\..\..\temp\cmr\ta_BETA.obj + -del ..\..\..\..\..\temp\cmr\ta_BOP.obj + -del ..\..\..\..\..\temp\cmr\ta_CCI.obj + -del ..\..\..\..\..\temp\cmr\ta_CDL2CROWS.obj + -del ..\..\..\..\..\temp\cmr\ta_CDL3BLACKCROWS.obj + -del ..\..\..\..\..\temp\cmr\ta_CDL3INSIDE.obj + -del ..\..\..\..\..\temp\cmr\ta_CDL3LINESTRIKE.obj + -del ..\..\..\..\..\temp\cmr\ta_CDL3OUTSIDE.obj + -del ..\..\..\..\..\temp\cmr\ta_CDL3STARSINSOUTH.obj + -del ..\..\..\..\..\temp\cmr\ta_CDL3WHITESOLDIERS.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLABANDONEDBABY.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLADVANCEBLOCK.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLBELTHOLD.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLBREAKAWAY.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLCLOSINGMARUBOZU.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLCONCEALBABYSWALL.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLCOUNTERATTACK.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLDARKCLOUDCOVER.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLDOJI.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLDOJISTAR.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLDRAGONFLYDOJI.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLENGULFING.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLEVENINGDOJISTAR.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLEVENINGSTAR.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLGAPSIDESIDEWHITE.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLGRAVESTONEDOJI.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLHAMMER.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLHANGINGMAN.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLHARAMI.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLHARAMICROSS.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLHIGHWAVE.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLHIKKAKE.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLHIKKAKEMOD.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLHOMINGPIGEON.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLIDENTICAL3CROWS.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLINNECK.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLINVERTEDHAMMER.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLKICKING.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLKICKINGBYLENGTH.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLLADDERBOTTOM.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLLONGLEGGEDDOJI.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLLONGLINE.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLMARUBOZU.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLMATCHINGLOW.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLMATHOLD.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLMORNINGDOJISTAR.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLMORNINGSTAR.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLONNECK.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLPIERCING.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLRICKSHAWMAN.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLRISEFALL3METHODS.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLSEPARATINGLINES.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLSHOOTINGSTAR.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLSHORTLINE.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLSPINNINGTOP.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLSTALLEDPATTERN.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLSTICKSANDWICH.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLTAKURI.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLTASUKIGAP.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLTHRUSTING.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLTRISTAR.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLUNIQUE3RIVER.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLUPSIDEGAP2CROWS.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLXSIDEGAP3METHODS.obj + -del ..\..\..\..\..\temp\cmr\ta_CEIL.obj + -del ..\..\..\..\..\temp\cmr\ta_CMO.obj + -del ..\..\..\..\..\temp\cmr\ta_CORREL.obj + -del ..\..\..\..\..\temp\cmr\ta_COS.obj + -del ..\..\..\..\..\temp\cmr\ta_COSH.obj + -del ..\..\..\..\..\temp\cmr\ta_DEMA.obj + -del ..\..\..\..\..\temp\cmr\ta_DIV.obj + -del ..\..\..\..\..\temp\cmr\ta_DX.obj + -del ..\..\..\..\..\temp\cmr\ta_EMA.obj + -del ..\..\..\..\..\temp\cmr\ta_EXP.obj + -del ..\..\..\..\..\temp\cmr\ta_FLOOR.obj + -del ..\..\..\..\..\temp\cmr\ta_HT_DCPERIOD.obj + -del ..\..\..\..\..\temp\cmr\ta_HT_DCPHASE.obj + -del ..\..\..\..\..\temp\cmr\ta_HT_PHASOR.obj + -del ..\..\..\..\..\temp\cmr\ta_HT_SINE.obj + -del ..\..\..\..\..\temp\cmr\ta_HT_TRENDLINE.obj + -del ..\..\..\..\..\temp\cmr\ta_HT_TRENDMODE.obj + -del ..\..\..\..\..\temp\cmr\ta_KAMA.obj + -del ..\..\..\..\..\temp\cmr\ta_LINEARREG.obj + -del ..\..\..\..\..\temp\cmr\ta_LINEARREG_ANGLE.obj + -del ..\..\..\..\..\temp\cmr\ta_LINEARREG_INTERCEPT.obj + -del ..\..\..\..\..\temp\cmr\ta_LINEARREG_SLOPE.obj + -del ..\..\..\..\..\temp\cmr\ta_LN.obj + -del ..\..\..\..\..\temp\cmr\ta_LOG10.obj + -del ..\..\..\..\..\temp\cmr\ta_MA.obj + -del ..\..\..\..\..\temp\cmr\ta_MACD.obj + -del ..\..\..\..\..\temp\cmr\ta_MACDEXT.obj + -del ..\..\..\..\..\temp\cmr\ta_MACDFIX.obj + -del ..\..\..\..\..\temp\cmr\ta_MAMA.obj + -del ..\..\..\..\..\temp\cmr\ta_MAVP.obj + -del ..\..\..\..\..\temp\cmr\ta_MAX.obj + -del ..\..\..\..\..\temp\cmr\ta_MAXINDEX.obj + -del ..\..\..\..\..\temp\cmr\ta_MEDPRICE.obj + -del ..\..\..\..\..\temp\cmr\ta_MFI.obj + -del ..\..\..\..\..\temp\cmr\ta_MIDPOINT.obj + -del ..\..\..\..\..\temp\cmr\ta_MIDPRICE.obj + -del ..\..\..\..\..\temp\cmr\ta_MIN.obj + -del ..\..\..\..\..\temp\cmr\ta_MININDEX.obj + -del ..\..\..\..\..\temp\cmr\ta_MINMAX.obj + -del ..\..\..\..\..\temp\cmr\ta_MINMAXINDEX.obj + -del ..\..\..\..\..\temp\cmr\ta_MINUS_DI.obj + -del ..\..\..\..\..\temp\cmr\ta_MINUS_DM.obj + -del ..\..\..\..\..\temp\cmr\ta_MOM.obj + -del ..\..\..\..\..\temp\cmr\ta_MULT.obj + -del ..\..\..\..\..\temp\cmr\ta_NATR.obj + -del ..\..\..\..\..\temp\cmr\ta_OBV.obj + -del ..\..\..\..\..\temp\cmr\ta_PLUS_DI.obj + -del ..\..\..\..\..\temp\cmr\ta_PLUS_DM.obj + -del ..\..\..\..\..\temp\cmr\ta_PPO.obj + -del ..\..\..\..\..\temp\cmr\ta_ROC.obj + -del ..\..\..\..\..\temp\cmr\ta_ROCP.obj + -del ..\..\..\..\..\temp\cmr\ta_ROCR.obj + -del ..\..\..\..\..\temp\cmr\ta_ROCR100.obj + -del ..\..\..\..\..\temp\cmr\ta_RSI.obj + -del ..\..\..\..\..\temp\cmr\ta_SAR.obj + -del ..\..\..\..\..\temp\cmr\ta_SAREXT.obj + -del ..\..\..\..\..\temp\cmr\ta_SIN.obj + -del ..\..\..\..\..\temp\cmr\ta_SINH.obj + -del ..\..\..\..\..\temp\cmr\ta_SMA.obj + -del ..\..\..\..\..\temp\cmr\ta_SQRT.obj + -del ..\..\..\..\..\temp\cmr\ta_STDDEV.obj + -del ..\..\..\..\..\temp\cmr\ta_STOCH.obj + -del ..\..\..\..\..\temp\cmr\ta_STOCHF.obj + -del ..\..\..\..\..\temp\cmr\ta_STOCHRSI.obj + -del ..\..\..\..\..\temp\cmr\ta_SUB.obj + -del ..\..\..\..\..\temp\cmr\ta_SUM.obj + -del ..\..\..\..\..\temp\cmr\ta_T3.obj + -del ..\..\..\..\..\temp\cmr\ta_TAN.obj + -del ..\..\..\..\..\temp\cmr\ta_TANH.obj + -del ..\..\..\..\..\temp\cmr\ta_TEMA.obj + -del ..\..\..\..\..\temp\cmr\ta_TRANGE.obj + -del ..\..\..\..\..\temp\cmr\ta_TRIMA.obj + -del ..\..\..\..\..\temp\cmr\ta_TRIX.obj + -del ..\..\..\..\..\temp\cmr\ta_TSF.obj + -del ..\..\..\..\..\temp\cmr\ta_TYPPRICE.obj + -del ..\..\..\..\..\temp\cmr\ta_ULTOSC.obj + -del ..\..\..\..\..\temp\cmr\ta_VAR.obj + -del ..\..\..\..\..\temp\cmr\ta_WCLPRICE.obj + -del ..\..\..\..\..\temp\cmr\ta_WILLR.obj + -del ..\..\..\..\..\temp\cmr\ta_WMA.obj + -del $(TARGET) + -del ../../../../../bin/*.map + -del ../../../../../bin/*._xe + -del ../../../../../bin/*.tds + -del ../../../../../bin/*.pdb + -del ../../../../../bin/*.pbo + -del ../../../../../bin/*.pbi + -del ../../../../../bin/*.pbt + +####### Compile + +..\..\..\..\..\temp\cmr\ta_global.obj: ..\..\..\..\..\src\ta_common\ta_global.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_global.obj ..\..\..\..\..\src\ta_common\ta_global.c + +..\..\..\..\..\temp\cmr\ta_retcode.obj: ..\..\..\..\..\src\ta_common\ta_retcode.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_retcode.obj ..\..\..\..\..\src\ta_common\ta_retcode.c + +..\..\..\..\..\temp\cmr\ta_version.obj: ..\..\..\..\..\src\ta_common\ta_version.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_version.obj ..\..\..\..\..\src\ta_common\ta_version.c + +..\..\..\..\..\temp\cmr\ta_abstract.obj: ..\..\..\..\..\src\ta_abstract\ta_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_abstract.obj ..\..\..\..\..\src\ta_abstract\ta_abstract.c + +..\..\..\..\..\temp\cmr\ta_def_ui.obj: ..\..\..\..\..\src\ta_abstract\ta_def_ui.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_def_ui.obj ..\..\..\..\..\src\ta_abstract\ta_def_ui.c + +..\..\..\..\..\temp\cmr\ta_func_api.obj: ..\..\..\..\..\src\ta_abstract\ta_func_api.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_func_api.obj ..\..\..\..\..\src\ta_abstract\ta_func_api.c + +..\..\..\..\..\temp\cmr\ta_group_idx.obj: ..\..\..\..\..\src\ta_abstract\ta_group_idx.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_group_idx.obj ..\..\..\..\..\src\ta_abstract\ta_group_idx.c + +..\..\..\..\..\temp\cmr\ta_frame.obj: ..\..\..\..\..\src\ta_abstract\frames\ta_frame.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_frame.obj ..\..\..\..\..\src\ta_abstract\frames\ta_frame.c + +..\..\..\..\..\temp\cmr\table_a.obj: ..\..\..\..\..\src\ta_abstract\tables\table_a.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\table_a.obj ..\..\..\..\..\src\ta_abstract\tables\table_a.c + +..\..\..\..\..\temp\cmr\table_b.obj: ..\..\..\..\..\src\ta_abstract\tables\table_b.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\table_b.obj ..\..\..\..\..\src\ta_abstract\tables\table_b.c + +..\..\..\..\..\temp\cmr\table_c.obj: ..\..\..\..\..\src\ta_abstract\tables\table_c.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\table_c.obj ..\..\..\..\..\src\ta_abstract\tables\table_c.c + +..\..\..\..\..\temp\cmr\table_d.obj: ..\..\..\..\..\src\ta_abstract\tables\table_d.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\table_d.obj ..\..\..\..\..\src\ta_abstract\tables\table_d.c + +..\..\..\..\..\temp\cmr\table_e.obj: ..\..\..\..\..\src\ta_abstract\tables\table_e.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\table_e.obj ..\..\..\..\..\src\ta_abstract\tables\table_e.c + +..\..\..\..\..\temp\cmr\table_f.obj: ..\..\..\..\..\src\ta_abstract\tables\table_f.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\table_f.obj ..\..\..\..\..\src\ta_abstract\tables\table_f.c + +..\..\..\..\..\temp\cmr\table_g.obj: ..\..\..\..\..\src\ta_abstract\tables\table_g.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\table_g.obj ..\..\..\..\..\src\ta_abstract\tables\table_g.c + +..\..\..\..\..\temp\cmr\table_h.obj: ..\..\..\..\..\src\ta_abstract\tables\table_h.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\table_h.obj ..\..\..\..\..\src\ta_abstract\tables\table_h.c + +..\..\..\..\..\temp\cmr\table_i.obj: ..\..\..\..\..\src\ta_abstract\tables\table_i.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\table_i.obj ..\..\..\..\..\src\ta_abstract\tables\table_i.c + +..\..\..\..\..\temp\cmr\table_j.obj: ..\..\..\..\..\src\ta_abstract\tables\table_j.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\table_j.obj ..\..\..\..\..\src\ta_abstract\tables\table_j.c + +..\..\..\..\..\temp\cmr\table_k.obj: ..\..\..\..\..\src\ta_abstract\tables\table_k.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\table_k.obj ..\..\..\..\..\src\ta_abstract\tables\table_k.c + +..\..\..\..\..\temp\cmr\table_l.obj: ..\..\..\..\..\src\ta_abstract\tables\table_l.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\table_l.obj ..\..\..\..\..\src\ta_abstract\tables\table_l.c + +..\..\..\..\..\temp\cmr\table_m.obj: ..\..\..\..\..\src\ta_abstract\tables\table_m.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\table_m.obj ..\..\..\..\..\src\ta_abstract\tables\table_m.c + +..\..\..\..\..\temp\cmr\table_n.obj: ..\..\..\..\..\src\ta_abstract\tables\table_n.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\table_n.obj ..\..\..\..\..\src\ta_abstract\tables\table_n.c + +..\..\..\..\..\temp\cmr\table_o.obj: ..\..\..\..\..\src\ta_abstract\tables\table_o.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\table_o.obj ..\..\..\..\..\src\ta_abstract\tables\table_o.c + +..\..\..\..\..\temp\cmr\table_p.obj: ..\..\..\..\..\src\ta_abstract\tables\table_p.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\table_p.obj ..\..\..\..\..\src\ta_abstract\tables\table_p.c + +..\..\..\..\..\temp\cmr\table_q.obj: ..\..\..\..\..\src\ta_abstract\tables\table_q.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\table_q.obj ..\..\..\..\..\src\ta_abstract\tables\table_q.c + +..\..\..\..\..\temp\cmr\table_r.obj: ..\..\..\..\..\src\ta_abstract\tables\table_r.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\table_r.obj ..\..\..\..\..\src\ta_abstract\tables\table_r.c + +..\..\..\..\..\temp\cmr\table_s.obj: ..\..\..\..\..\src\ta_abstract\tables\table_s.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\table_s.obj ..\..\..\..\..\src\ta_abstract\tables\table_s.c + +..\..\..\..\..\temp\cmr\table_t.obj: ..\..\..\..\..\src\ta_abstract\tables\table_t.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\table_t.obj ..\..\..\..\..\src\ta_abstract\tables\table_t.c + +..\..\..\..\..\temp\cmr\table_u.obj: ..\..\..\..\..\src\ta_abstract\tables\table_u.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\table_u.obj ..\..\..\..\..\src\ta_abstract\tables\table_u.c + +..\..\..\..\..\temp\cmr\table_v.obj: ..\..\..\..\..\src\ta_abstract\tables\table_v.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\table_v.obj ..\..\..\..\..\src\ta_abstract\tables\table_v.c + +..\..\..\..\..\temp\cmr\table_w.obj: ..\..\..\..\..\src\ta_abstract\tables\table_w.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\table_w.obj ..\..\..\..\..\src\ta_abstract\tables\table_w.c + +..\..\..\..\..\temp\cmr\table_x.obj: ..\..\..\..\..\src\ta_abstract\tables\table_x.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\table_x.obj ..\..\..\..\..\src\ta_abstract\tables\table_x.c + +..\..\..\..\..\temp\cmr\table_y.obj: ..\..\..\..\..\src\ta_abstract\tables\table_y.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\table_y.obj ..\..\..\..\..\src\ta_abstract\tables\table_y.c + +..\..\..\..\..\temp\cmr\table_z.obj: ..\..\..\..\..\src\ta_abstract\tables\table_z.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\table_z.obj ..\..\..\..\..\src\ta_abstract\tables\table_z.c + +..\..\..\..\..\temp\cmr\ta_utility.obj: ..\..\..\..\..\src\ta_func\ta_utility.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_utility.obj ..\..\..\..\..\src\ta_func\ta_utility.c + +..\..\..\..\..\temp\cmr\ta_ACOS.obj: ..\..\..\..\..\src\ta_func\ta_ACOS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_ACOS.obj ..\..\..\..\..\src\ta_func\ta_ACOS.c + +..\..\..\..\..\temp\cmr\ta_AD.obj: ..\..\..\..\..\src\ta_func\ta_AD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_AD.obj ..\..\..\..\..\src\ta_func\ta_AD.c + +..\..\..\..\..\temp\cmr\ta_ADD.obj: ..\..\..\..\..\src\ta_func\ta_ADD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_ADD.obj ..\..\..\..\..\src\ta_func\ta_ADD.c + +..\..\..\..\..\temp\cmr\ta_ADOSC.obj: ..\..\..\..\..\src\ta_func\ta_ADOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_ADOSC.obj ..\..\..\..\..\src\ta_func\ta_ADOSC.c + +..\..\..\..\..\temp\cmr\ta_ADX.obj: ..\..\..\..\..\src\ta_func\ta_ADX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_ADX.obj ..\..\..\..\..\src\ta_func\ta_ADX.c + +..\..\..\..\..\temp\cmr\ta_ADXR.obj: ..\..\..\..\..\src\ta_func\ta_ADXR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_ADXR.obj ..\..\..\..\..\src\ta_func\ta_ADXR.c + +..\..\..\..\..\temp\cmr\ta_APO.obj: ..\..\..\..\..\src\ta_func\ta_APO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_APO.obj ..\..\..\..\..\src\ta_func\ta_APO.c + +..\..\..\..\..\temp\cmr\ta_AROON.obj: ..\..\..\..\..\src\ta_func\ta_AROON.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_AROON.obj ..\..\..\..\..\src\ta_func\ta_AROON.c + +..\..\..\..\..\temp\cmr\ta_AROONOSC.obj: ..\..\..\..\..\src\ta_func\ta_AROONOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_AROONOSC.obj ..\..\..\..\..\src\ta_func\ta_AROONOSC.c + +..\..\..\..\..\temp\cmr\ta_ASIN.obj: ..\..\..\..\..\src\ta_func\ta_ASIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_ASIN.obj ..\..\..\..\..\src\ta_func\ta_ASIN.c + +..\..\..\..\..\temp\cmr\ta_ATAN.obj: ..\..\..\..\..\src\ta_func\ta_ATAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_ATAN.obj ..\..\..\..\..\src\ta_func\ta_ATAN.c + +..\..\..\..\..\temp\cmr\ta_ATR.obj: ..\..\..\..\..\src\ta_func\ta_ATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_ATR.obj ..\..\..\..\..\src\ta_func\ta_ATR.c + +..\..\..\..\..\temp\cmr\ta_AVGPRICE.obj: ..\..\..\..\..\src\ta_func\ta_AVGPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_AVGPRICE.obj ..\..\..\..\..\src\ta_func\ta_AVGPRICE.c + +..\..\..\..\..\temp\cmr\ta_BBANDS.obj: ..\..\..\..\..\src\ta_func\ta_BBANDS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_BBANDS.obj ..\..\..\..\..\src\ta_func\ta_BBANDS.c + +..\..\..\..\..\temp\cmr\ta_BETA.obj: ..\..\..\..\..\src\ta_func\ta_BETA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_BETA.obj ..\..\..\..\..\src\ta_func\ta_BETA.c + +..\..\..\..\..\temp\cmr\ta_BOP.obj: ..\..\..\..\..\src\ta_func\ta_BOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_BOP.obj ..\..\..\..\..\src\ta_func\ta_BOP.c + +..\..\..\..\..\temp\cmr\ta_CCI.obj: ..\..\..\..\..\src\ta_func\ta_CCI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CCI.obj ..\..\..\..\..\src\ta_func\ta_CCI.c + +..\..\..\..\..\temp\cmr\ta_CDL2CROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDL2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDL2CROWS.obj ..\..\..\..\..\src\ta_func\ta_CDL2CROWS.c + +..\..\..\..\..\temp\cmr\ta_CDL3BLACKCROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDL3BLACKCROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDL3BLACKCROWS.obj ..\..\..\..\..\src\ta_func\ta_CDL3BLACKCROWS.c + +..\..\..\..\..\temp\cmr\ta_CDL3INSIDE.obj: ..\..\..\..\..\src\ta_func\ta_CDL3INSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDL3INSIDE.obj ..\..\..\..\..\src\ta_func\ta_CDL3INSIDE.c + +..\..\..\..\..\temp\cmr\ta_CDL3LINESTRIKE.obj: ..\..\..\..\..\src\ta_func\ta_CDL3LINESTRIKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDL3LINESTRIKE.obj ..\..\..\..\..\src\ta_func\ta_CDL3LINESTRIKE.c + +..\..\..\..\..\temp\cmr\ta_CDL3OUTSIDE.obj: ..\..\..\..\..\src\ta_func\ta_CDL3OUTSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDL3OUTSIDE.obj ..\..\..\..\..\src\ta_func\ta_CDL3OUTSIDE.c + +..\..\..\..\..\temp\cmr\ta_CDL3STARSINSOUTH.obj: ..\..\..\..\..\src\ta_func\ta_CDL3STARSINSOUTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDL3STARSINSOUTH.obj ..\..\..\..\..\src\ta_func\ta_CDL3STARSINSOUTH.c + +..\..\..\..\..\temp\cmr\ta_CDL3WHITESOLDIERS.obj: ..\..\..\..\..\src\ta_func\ta_CDL3WHITESOLDIERS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDL3WHITESOLDIERS.obj ..\..\..\..\..\src\ta_func\ta_CDL3WHITESOLDIERS.c + +..\..\..\..\..\temp\cmr\ta_CDLABANDONEDBABY.obj: ..\..\..\..\..\src\ta_func\ta_CDLABANDONEDBABY.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLABANDONEDBABY.obj ..\..\..\..\..\src\ta_func\ta_CDLABANDONEDBABY.c + +..\..\..\..\..\temp\cmr\ta_CDLADVANCEBLOCK.obj: ..\..\..\..\..\src\ta_func\ta_CDLADVANCEBLOCK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLADVANCEBLOCK.obj ..\..\..\..\..\src\ta_func\ta_CDLADVANCEBLOCK.c + +..\..\..\..\..\temp\cmr\ta_CDLBELTHOLD.obj: ..\..\..\..\..\src\ta_func\ta_CDLBELTHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLBELTHOLD.obj ..\..\..\..\..\src\ta_func\ta_CDLBELTHOLD.c + +..\..\..\..\..\temp\cmr\ta_CDLBREAKAWAY.obj: ..\..\..\..\..\src\ta_func\ta_CDLBREAKAWAY.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLBREAKAWAY.obj ..\..\..\..\..\src\ta_func\ta_CDLBREAKAWAY.c + +..\..\..\..\..\temp\cmr\ta_CDLCLOSINGMARUBOZU.obj: ..\..\..\..\..\src\ta_func\ta_CDLCLOSINGMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLCLOSINGMARUBOZU.obj ..\..\..\..\..\src\ta_func\ta_CDLCLOSINGMARUBOZU.c + +..\..\..\..\..\temp\cmr\ta_CDLCONCEALBABYSWALL.obj: ..\..\..\..\..\src\ta_func\ta_CDLCONCEALBABYSWALL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLCONCEALBABYSWALL.obj ..\..\..\..\..\src\ta_func\ta_CDLCONCEALBABYSWALL.c + +..\..\..\..\..\temp\cmr\ta_CDLCOUNTERATTACK.obj: ..\..\..\..\..\src\ta_func\ta_CDLCOUNTERATTACK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLCOUNTERATTACK.obj ..\..\..\..\..\src\ta_func\ta_CDLCOUNTERATTACK.c + +..\..\..\..\..\temp\cmr\ta_CDLDARKCLOUDCOVER.obj: ..\..\..\..\..\src\ta_func\ta_CDLDARKCLOUDCOVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLDARKCLOUDCOVER.obj ..\..\..\..\..\src\ta_func\ta_CDLDARKCLOUDCOVER.c + +..\..\..\..\..\temp\cmr\ta_CDLDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLDOJI.c + +..\..\..\..\..\temp\cmr\ta_CDLDOJISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLDOJISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLDOJISTAR.c + +..\..\..\..\..\temp\cmr\ta_CDLDRAGONFLYDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLDRAGONFLYDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLDRAGONFLYDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLDRAGONFLYDOJI.c + +..\..\..\..\..\temp\cmr\ta_CDLENGULFING.obj: ..\..\..\..\..\src\ta_func\ta_CDLENGULFING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLENGULFING.obj ..\..\..\..\..\src\ta_func\ta_CDLENGULFING.c + +..\..\..\..\..\temp\cmr\ta_CDLEVENINGDOJISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLEVENINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLEVENINGDOJISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLEVENINGDOJISTAR.c + +..\..\..\..\..\temp\cmr\ta_CDLEVENINGSTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLEVENINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLEVENINGSTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLEVENINGSTAR.c + +..\..\..\..\..\temp\cmr\ta_CDLGAPSIDESIDEWHITE.obj: ..\..\..\..\..\src\ta_func\ta_CDLGAPSIDESIDEWHITE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLGAPSIDESIDEWHITE.obj ..\..\..\..\..\src\ta_func\ta_CDLGAPSIDESIDEWHITE.c + +..\..\..\..\..\temp\cmr\ta_CDLGRAVESTONEDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLGRAVESTONEDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLGRAVESTONEDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLGRAVESTONEDOJI.c + +..\..\..\..\..\temp\cmr\ta_CDLHAMMER.obj: ..\..\..\..\..\src\ta_func\ta_CDLHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLHAMMER.obj ..\..\..\..\..\src\ta_func\ta_CDLHAMMER.c + +..\..\..\..\..\temp\cmr\ta_CDLHANGINGMAN.obj: ..\..\..\..\..\src\ta_func\ta_CDLHANGINGMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLHANGINGMAN.obj ..\..\..\..\..\src\ta_func\ta_CDLHANGINGMAN.c + +..\..\..\..\..\temp\cmr\ta_CDLHARAMI.obj: ..\..\..\..\..\src\ta_func\ta_CDLHARAMI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLHARAMI.obj ..\..\..\..\..\src\ta_func\ta_CDLHARAMI.c + +..\..\..\..\..\temp\cmr\ta_CDLHARAMICROSS.obj: ..\..\..\..\..\src\ta_func\ta_CDLHARAMICROSS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLHARAMICROSS.obj ..\..\..\..\..\src\ta_func\ta_CDLHARAMICROSS.c + +..\..\..\..\..\temp\cmr\ta_CDLHIGHWAVE.obj: ..\..\..\..\..\src\ta_func\ta_CDLHIGHWAVE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLHIGHWAVE.obj ..\..\..\..\..\src\ta_func\ta_CDLHIGHWAVE.c + +..\..\..\..\..\temp\cmr\ta_CDLHIKKAKE.obj: ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLHIKKAKE.obj ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKE.c + +..\..\..\..\..\temp\cmr\ta_CDLHIKKAKEMOD.obj: ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKEMOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLHIKKAKEMOD.obj ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKEMOD.c + +..\..\..\..\..\temp\cmr\ta_CDLHOMINGPIGEON.obj: ..\..\..\..\..\src\ta_func\ta_CDLHOMINGPIGEON.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLHOMINGPIGEON.obj ..\..\..\..\..\src\ta_func\ta_CDLHOMINGPIGEON.c + +..\..\..\..\..\temp\cmr\ta_CDLIDENTICAL3CROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDLIDENTICAL3CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLIDENTICAL3CROWS.obj ..\..\..\..\..\src\ta_func\ta_CDLIDENTICAL3CROWS.c + +..\..\..\..\..\temp\cmr\ta_CDLINNECK.obj: ..\..\..\..\..\src\ta_func\ta_CDLINNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLINNECK.obj ..\..\..\..\..\src\ta_func\ta_CDLINNECK.c + +..\..\..\..\..\temp\cmr\ta_CDLINVERTEDHAMMER.obj: ..\..\..\..\..\src\ta_func\ta_CDLINVERTEDHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLINVERTEDHAMMER.obj ..\..\..\..\..\src\ta_func\ta_CDLINVERTEDHAMMER.c + +..\..\..\..\..\temp\cmr\ta_CDLKICKING.obj: ..\..\..\..\..\src\ta_func\ta_CDLKICKING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLKICKING.obj ..\..\..\..\..\src\ta_func\ta_CDLKICKING.c + +..\..\..\..\..\temp\cmr\ta_CDLKICKINGBYLENGTH.obj: ..\..\..\..\..\src\ta_func\ta_CDLKICKINGBYLENGTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLKICKINGBYLENGTH.obj ..\..\..\..\..\src\ta_func\ta_CDLKICKINGBYLENGTH.c + +..\..\..\..\..\temp\cmr\ta_CDLLADDERBOTTOM.obj: ..\..\..\..\..\src\ta_func\ta_CDLLADDERBOTTOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLLADDERBOTTOM.obj ..\..\..\..\..\src\ta_func\ta_CDLLADDERBOTTOM.c + +..\..\..\..\..\temp\cmr\ta_CDLLONGLEGGEDDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLLONGLEGGEDDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLLONGLEGGEDDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLLONGLEGGEDDOJI.c + +..\..\..\..\..\temp\cmr\ta_CDLLONGLINE.obj: ..\..\..\..\..\src\ta_func\ta_CDLLONGLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLLONGLINE.obj ..\..\..\..\..\src\ta_func\ta_CDLLONGLINE.c + +..\..\..\..\..\temp\cmr\ta_CDLMARUBOZU.obj: ..\..\..\..\..\src\ta_func\ta_CDLMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLMARUBOZU.obj ..\..\..\..\..\src\ta_func\ta_CDLMARUBOZU.c + +..\..\..\..\..\temp\cmr\ta_CDLMATCHINGLOW.obj: ..\..\..\..\..\src\ta_func\ta_CDLMATCHINGLOW.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLMATCHINGLOW.obj ..\..\..\..\..\src\ta_func\ta_CDLMATCHINGLOW.c + +..\..\..\..\..\temp\cmr\ta_CDLMATHOLD.obj: ..\..\..\..\..\src\ta_func\ta_CDLMATHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLMATHOLD.obj ..\..\..\..\..\src\ta_func\ta_CDLMATHOLD.c + +..\..\..\..\..\temp\cmr\ta_CDLMORNINGDOJISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLMORNINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLMORNINGDOJISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLMORNINGDOJISTAR.c + +..\..\..\..\..\temp\cmr\ta_CDLMORNINGSTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLMORNINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLMORNINGSTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLMORNINGSTAR.c + +..\..\..\..\..\temp\cmr\ta_CDLONNECK.obj: ..\..\..\..\..\src\ta_func\ta_CDLONNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLONNECK.obj ..\..\..\..\..\src\ta_func\ta_CDLONNECK.c + +..\..\..\..\..\temp\cmr\ta_CDLPIERCING.obj: ..\..\..\..\..\src\ta_func\ta_CDLPIERCING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLPIERCING.obj ..\..\..\..\..\src\ta_func\ta_CDLPIERCING.c + +..\..\..\..\..\temp\cmr\ta_CDLRICKSHAWMAN.obj: ..\..\..\..\..\src\ta_func\ta_CDLRICKSHAWMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLRICKSHAWMAN.obj ..\..\..\..\..\src\ta_func\ta_CDLRICKSHAWMAN.c + +..\..\..\..\..\temp\cmr\ta_CDLRISEFALL3METHODS.obj: ..\..\..\..\..\src\ta_func\ta_CDLRISEFALL3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLRISEFALL3METHODS.obj ..\..\..\..\..\src\ta_func\ta_CDLRISEFALL3METHODS.c + +..\..\..\..\..\temp\cmr\ta_CDLSEPARATINGLINES.obj: ..\..\..\..\..\src\ta_func\ta_CDLSEPARATINGLINES.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLSEPARATINGLINES.obj ..\..\..\..\..\src\ta_func\ta_CDLSEPARATINGLINES.c + +..\..\..\..\..\temp\cmr\ta_CDLSHOOTINGSTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLSHOOTINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLSHOOTINGSTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLSHOOTINGSTAR.c + +..\..\..\..\..\temp\cmr\ta_CDLSHORTLINE.obj: ..\..\..\..\..\src\ta_func\ta_CDLSHORTLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLSHORTLINE.obj ..\..\..\..\..\src\ta_func\ta_CDLSHORTLINE.c + +..\..\..\..\..\temp\cmr\ta_CDLSPINNINGTOP.obj: ..\..\..\..\..\src\ta_func\ta_CDLSPINNINGTOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLSPINNINGTOP.obj ..\..\..\..\..\src\ta_func\ta_CDLSPINNINGTOP.c + +..\..\..\..\..\temp\cmr\ta_CDLSTALLEDPATTERN.obj: ..\..\..\..\..\src\ta_func\ta_CDLSTALLEDPATTERN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLSTALLEDPATTERN.obj ..\..\..\..\..\src\ta_func\ta_CDLSTALLEDPATTERN.c + +..\..\..\..\..\temp\cmr\ta_CDLSTICKSANDWICH.obj: ..\..\..\..\..\src\ta_func\ta_CDLSTICKSANDWICH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLSTICKSANDWICH.obj ..\..\..\..\..\src\ta_func\ta_CDLSTICKSANDWICH.c + +..\..\..\..\..\temp\cmr\ta_CDLTAKURI.obj: ..\..\..\..\..\src\ta_func\ta_CDLTAKURI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLTAKURI.obj ..\..\..\..\..\src\ta_func\ta_CDLTAKURI.c + +..\..\..\..\..\temp\cmr\ta_CDLTASUKIGAP.obj: ..\..\..\..\..\src\ta_func\ta_CDLTASUKIGAP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLTASUKIGAP.obj ..\..\..\..\..\src\ta_func\ta_CDLTASUKIGAP.c + +..\..\..\..\..\temp\cmr\ta_CDLTHRUSTING.obj: ..\..\..\..\..\src\ta_func\ta_CDLTHRUSTING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLTHRUSTING.obj ..\..\..\..\..\src\ta_func\ta_CDLTHRUSTING.c + +..\..\..\..\..\temp\cmr\ta_CDLTRISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLTRISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLTRISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLTRISTAR.c + +..\..\..\..\..\temp\cmr\ta_CDLUNIQUE3RIVER.obj: ..\..\..\..\..\src\ta_func\ta_CDLUNIQUE3RIVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLUNIQUE3RIVER.obj ..\..\..\..\..\src\ta_func\ta_CDLUNIQUE3RIVER.c + +..\..\..\..\..\temp\cmr\ta_CDLUPSIDEGAP2CROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDLUPSIDEGAP2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLUPSIDEGAP2CROWS.obj ..\..\..\..\..\src\ta_func\ta_CDLUPSIDEGAP2CROWS.c + +..\..\..\..\..\temp\cmr\ta_CDLXSIDEGAP3METHODS.obj: ..\..\..\..\..\src\ta_func\ta_CDLXSIDEGAP3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CDLXSIDEGAP3METHODS.obj ..\..\..\..\..\src\ta_func\ta_CDLXSIDEGAP3METHODS.c + +..\..\..\..\..\temp\cmr\ta_CEIL.obj: ..\..\..\..\..\src\ta_func\ta_CEIL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CEIL.obj ..\..\..\..\..\src\ta_func\ta_CEIL.c + +..\..\..\..\..\temp\cmr\ta_CMO.obj: ..\..\..\..\..\src\ta_func\ta_CMO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CMO.obj ..\..\..\..\..\src\ta_func\ta_CMO.c + +..\..\..\..\..\temp\cmr\ta_CORREL.obj: ..\..\..\..\..\src\ta_func\ta_CORREL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_CORREL.obj ..\..\..\..\..\src\ta_func\ta_CORREL.c + +..\..\..\..\..\temp\cmr\ta_COS.obj: ..\..\..\..\..\src\ta_func\ta_COS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_COS.obj ..\..\..\..\..\src\ta_func\ta_COS.c + +..\..\..\..\..\temp\cmr\ta_COSH.obj: ..\..\..\..\..\src\ta_func\ta_COSH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_COSH.obj ..\..\..\..\..\src\ta_func\ta_COSH.c + +..\..\..\..\..\temp\cmr\ta_DEMA.obj: ..\..\..\..\..\src\ta_func\ta_DEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_DEMA.obj ..\..\..\..\..\src\ta_func\ta_DEMA.c + +..\..\..\..\..\temp\cmr\ta_DIV.obj: ..\..\..\..\..\src\ta_func\ta_DIV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_DIV.obj ..\..\..\..\..\src\ta_func\ta_DIV.c + +..\..\..\..\..\temp\cmr\ta_DX.obj: ..\..\..\..\..\src\ta_func\ta_DX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_DX.obj ..\..\..\..\..\src\ta_func\ta_DX.c + +..\..\..\..\..\temp\cmr\ta_EMA.obj: ..\..\..\..\..\src\ta_func\ta_EMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_EMA.obj ..\..\..\..\..\src\ta_func\ta_EMA.c + +..\..\..\..\..\temp\cmr\ta_EXP.obj: ..\..\..\..\..\src\ta_func\ta_EXP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_EXP.obj ..\..\..\..\..\src\ta_func\ta_EXP.c + +..\..\..\..\..\temp\cmr\ta_FLOOR.obj: ..\..\..\..\..\src\ta_func\ta_FLOOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_FLOOR.obj ..\..\..\..\..\src\ta_func\ta_FLOOR.c + +..\..\..\..\..\temp\cmr\ta_HT_DCPERIOD.obj: ..\..\..\..\..\src\ta_func\ta_HT_DCPERIOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_HT_DCPERIOD.obj ..\..\..\..\..\src\ta_func\ta_HT_DCPERIOD.c + +..\..\..\..\..\temp\cmr\ta_HT_DCPHASE.obj: ..\..\..\..\..\src\ta_func\ta_HT_DCPHASE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_HT_DCPHASE.obj ..\..\..\..\..\src\ta_func\ta_HT_DCPHASE.c + +..\..\..\..\..\temp\cmr\ta_HT_PHASOR.obj: ..\..\..\..\..\src\ta_func\ta_HT_PHASOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_HT_PHASOR.obj ..\..\..\..\..\src\ta_func\ta_HT_PHASOR.c + +..\..\..\..\..\temp\cmr\ta_HT_SINE.obj: ..\..\..\..\..\src\ta_func\ta_HT_SINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_HT_SINE.obj ..\..\..\..\..\src\ta_func\ta_HT_SINE.c + +..\..\..\..\..\temp\cmr\ta_HT_TRENDLINE.obj: ..\..\..\..\..\src\ta_func\ta_HT_TRENDLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_HT_TRENDLINE.obj ..\..\..\..\..\src\ta_func\ta_HT_TRENDLINE.c + +..\..\..\..\..\temp\cmr\ta_HT_TRENDMODE.obj: ..\..\..\..\..\src\ta_func\ta_HT_TRENDMODE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_HT_TRENDMODE.obj ..\..\..\..\..\src\ta_func\ta_HT_TRENDMODE.c + +..\..\..\..\..\temp\cmr\ta_KAMA.obj: ..\..\..\..\..\src\ta_func\ta_KAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_KAMA.obj ..\..\..\..\..\src\ta_func\ta_KAMA.c + +..\..\..\..\..\temp\cmr\ta_LINEARREG.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_LINEARREG.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG.c + +..\..\..\..\..\temp\cmr\ta_LINEARREG_ANGLE.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG_ANGLE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_LINEARREG_ANGLE.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG_ANGLE.c + +..\..\..\..\..\temp\cmr\ta_LINEARREG_INTERCEPT.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG_INTERCEPT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_LINEARREG_INTERCEPT.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG_INTERCEPT.c + +..\..\..\..\..\temp\cmr\ta_LINEARREG_SLOPE.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG_SLOPE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_LINEARREG_SLOPE.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG_SLOPE.c + +..\..\..\..\..\temp\cmr\ta_LN.obj: ..\..\..\..\..\src\ta_func\ta_LN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_LN.obj ..\..\..\..\..\src\ta_func\ta_LN.c + +..\..\..\..\..\temp\cmr\ta_LOG10.obj: ..\..\..\..\..\src\ta_func\ta_LOG10.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_LOG10.obj ..\..\..\..\..\src\ta_func\ta_LOG10.c + +..\..\..\..\..\temp\cmr\ta_MA.obj: ..\..\..\..\..\src\ta_func\ta_MA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_MA.obj ..\..\..\..\..\src\ta_func\ta_MA.c + +..\..\..\..\..\temp\cmr\ta_MACD.obj: ..\..\..\..\..\src\ta_func\ta_MACD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_MACD.obj ..\..\..\..\..\src\ta_func\ta_MACD.c + +..\..\..\..\..\temp\cmr\ta_MACDEXT.obj: ..\..\..\..\..\src\ta_func\ta_MACDEXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_MACDEXT.obj ..\..\..\..\..\src\ta_func\ta_MACDEXT.c + +..\..\..\..\..\temp\cmr\ta_MACDFIX.obj: ..\..\..\..\..\src\ta_func\ta_MACDFIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_MACDFIX.obj ..\..\..\..\..\src\ta_func\ta_MACDFIX.c + +..\..\..\..\..\temp\cmr\ta_MAMA.obj: ..\..\..\..\..\src\ta_func\ta_MAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_MAMA.obj ..\..\..\..\..\src\ta_func\ta_MAMA.c + +..\..\..\..\..\temp\cmr\ta_MAVP.obj: ..\..\..\..\..\src\ta_func\ta_MAVP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_MAVP.obj ..\..\..\..\..\src\ta_func\ta_MAVP.c + +..\..\..\..\..\temp\cmr\ta_MAX.obj: ..\..\..\..\..\src\ta_func\ta_MAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_MAX.obj ..\..\..\..\..\src\ta_func\ta_MAX.c + +..\..\..\..\..\temp\cmr\ta_MAXINDEX.obj: ..\..\..\..\..\src\ta_func\ta_MAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_MAXINDEX.obj ..\..\..\..\..\src\ta_func\ta_MAXINDEX.c + +..\..\..\..\..\temp\cmr\ta_MEDPRICE.obj: ..\..\..\..\..\src\ta_func\ta_MEDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_MEDPRICE.obj ..\..\..\..\..\src\ta_func\ta_MEDPRICE.c + +..\..\..\..\..\temp\cmr\ta_MFI.obj: ..\..\..\..\..\src\ta_func\ta_MFI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_MFI.obj ..\..\..\..\..\src\ta_func\ta_MFI.c + +..\..\..\..\..\temp\cmr\ta_MIDPOINT.obj: ..\..\..\..\..\src\ta_func\ta_MIDPOINT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_MIDPOINT.obj ..\..\..\..\..\src\ta_func\ta_MIDPOINT.c + +..\..\..\..\..\temp\cmr\ta_MIDPRICE.obj: ..\..\..\..\..\src\ta_func\ta_MIDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_MIDPRICE.obj ..\..\..\..\..\src\ta_func\ta_MIDPRICE.c + +..\..\..\..\..\temp\cmr\ta_MIN.obj: ..\..\..\..\..\src\ta_func\ta_MIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_MIN.obj ..\..\..\..\..\src\ta_func\ta_MIN.c + +..\..\..\..\..\temp\cmr\ta_MININDEX.obj: ..\..\..\..\..\src\ta_func\ta_MININDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_MININDEX.obj ..\..\..\..\..\src\ta_func\ta_MININDEX.c + +..\..\..\..\..\temp\cmr\ta_MINMAX.obj: ..\..\..\..\..\src\ta_func\ta_MINMAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_MINMAX.obj ..\..\..\..\..\src\ta_func\ta_MINMAX.c + +..\..\..\..\..\temp\cmr\ta_MINMAXINDEX.obj: ..\..\..\..\..\src\ta_func\ta_MINMAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_MINMAXINDEX.obj ..\..\..\..\..\src\ta_func\ta_MINMAXINDEX.c + +..\..\..\..\..\temp\cmr\ta_MINUS_DI.obj: ..\..\..\..\..\src\ta_func\ta_MINUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_MINUS_DI.obj ..\..\..\..\..\src\ta_func\ta_MINUS_DI.c + +..\..\..\..\..\temp\cmr\ta_MINUS_DM.obj: ..\..\..\..\..\src\ta_func\ta_MINUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_MINUS_DM.obj ..\..\..\..\..\src\ta_func\ta_MINUS_DM.c + +..\..\..\..\..\temp\cmr\ta_MOM.obj: ..\..\..\..\..\src\ta_func\ta_MOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_MOM.obj ..\..\..\..\..\src\ta_func\ta_MOM.c + +..\..\..\..\..\temp\cmr\ta_MULT.obj: ..\..\..\..\..\src\ta_func\ta_MULT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_MULT.obj ..\..\..\..\..\src\ta_func\ta_MULT.c + +..\..\..\..\..\temp\cmr\ta_NATR.obj: ..\..\..\..\..\src\ta_func\ta_NATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_NATR.obj ..\..\..\..\..\src\ta_func\ta_NATR.c + +..\..\..\..\..\temp\cmr\ta_OBV.obj: ..\..\..\..\..\src\ta_func\ta_OBV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_OBV.obj ..\..\..\..\..\src\ta_func\ta_OBV.c + +..\..\..\..\..\temp\cmr\ta_PLUS_DI.obj: ..\..\..\..\..\src\ta_func\ta_PLUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_PLUS_DI.obj ..\..\..\..\..\src\ta_func\ta_PLUS_DI.c + +..\..\..\..\..\temp\cmr\ta_PLUS_DM.obj: ..\..\..\..\..\src\ta_func\ta_PLUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_PLUS_DM.obj ..\..\..\..\..\src\ta_func\ta_PLUS_DM.c + +..\..\..\..\..\temp\cmr\ta_PPO.obj: ..\..\..\..\..\src\ta_func\ta_PPO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_PPO.obj ..\..\..\..\..\src\ta_func\ta_PPO.c + +..\..\..\..\..\temp\cmr\ta_ROC.obj: ..\..\..\..\..\src\ta_func\ta_ROC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_ROC.obj ..\..\..\..\..\src\ta_func\ta_ROC.c + +..\..\..\..\..\temp\cmr\ta_ROCP.obj: ..\..\..\..\..\src\ta_func\ta_ROCP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_ROCP.obj ..\..\..\..\..\src\ta_func\ta_ROCP.c + +..\..\..\..\..\temp\cmr\ta_ROCR.obj: ..\..\..\..\..\src\ta_func\ta_ROCR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_ROCR.obj ..\..\..\..\..\src\ta_func\ta_ROCR.c + +..\..\..\..\..\temp\cmr\ta_ROCR100.obj: ..\..\..\..\..\src\ta_func\ta_ROCR100.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_ROCR100.obj ..\..\..\..\..\src\ta_func\ta_ROCR100.c + +..\..\..\..\..\temp\cmr\ta_RSI.obj: ..\..\..\..\..\src\ta_func\ta_RSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_RSI.obj ..\..\..\..\..\src\ta_func\ta_RSI.c + +..\..\..\..\..\temp\cmr\ta_SAR.obj: ..\..\..\..\..\src\ta_func\ta_SAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_SAR.obj ..\..\..\..\..\src\ta_func\ta_SAR.c + +..\..\..\..\..\temp\cmr\ta_SAREXT.obj: ..\..\..\..\..\src\ta_func\ta_SAREXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_SAREXT.obj ..\..\..\..\..\src\ta_func\ta_SAREXT.c + +..\..\..\..\..\temp\cmr\ta_SIN.obj: ..\..\..\..\..\src\ta_func\ta_SIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_SIN.obj ..\..\..\..\..\src\ta_func\ta_SIN.c + +..\..\..\..\..\temp\cmr\ta_SINH.obj: ..\..\..\..\..\src\ta_func\ta_SINH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_SINH.obj ..\..\..\..\..\src\ta_func\ta_SINH.c + +..\..\..\..\..\temp\cmr\ta_SMA.obj: ..\..\..\..\..\src\ta_func\ta_SMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_SMA.obj ..\..\..\..\..\src\ta_func\ta_SMA.c + +..\..\..\..\..\temp\cmr\ta_SQRT.obj: ..\..\..\..\..\src\ta_func\ta_SQRT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_SQRT.obj ..\..\..\..\..\src\ta_func\ta_SQRT.c + +..\..\..\..\..\temp\cmr\ta_STDDEV.obj: ..\..\..\..\..\src\ta_func\ta_STDDEV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_STDDEV.obj ..\..\..\..\..\src\ta_func\ta_STDDEV.c + +..\..\..\..\..\temp\cmr\ta_STOCH.obj: ..\..\..\..\..\src\ta_func\ta_STOCH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_STOCH.obj ..\..\..\..\..\src\ta_func\ta_STOCH.c + +..\..\..\..\..\temp\cmr\ta_STOCHF.obj: ..\..\..\..\..\src\ta_func\ta_STOCHF.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_STOCHF.obj ..\..\..\..\..\src\ta_func\ta_STOCHF.c + +..\..\..\..\..\temp\cmr\ta_STOCHRSI.obj: ..\..\..\..\..\src\ta_func\ta_STOCHRSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_STOCHRSI.obj ..\..\..\..\..\src\ta_func\ta_STOCHRSI.c + +..\..\..\..\..\temp\cmr\ta_SUB.obj: ..\..\..\..\..\src\ta_func\ta_SUB.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_SUB.obj ..\..\..\..\..\src\ta_func\ta_SUB.c + +..\..\..\..\..\temp\cmr\ta_SUM.obj: ..\..\..\..\..\src\ta_func\ta_SUM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_SUM.obj ..\..\..\..\..\src\ta_func\ta_SUM.c + +..\..\..\..\..\temp\cmr\ta_T3.obj: ..\..\..\..\..\src\ta_func\ta_T3.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_T3.obj ..\..\..\..\..\src\ta_func\ta_T3.c + +..\..\..\..\..\temp\cmr\ta_TAN.obj: ..\..\..\..\..\src\ta_func\ta_TAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_TAN.obj ..\..\..\..\..\src\ta_func\ta_TAN.c + +..\..\..\..\..\temp\cmr\ta_TANH.obj: ..\..\..\..\..\src\ta_func\ta_TANH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_TANH.obj ..\..\..\..\..\src\ta_func\ta_TANH.c + +..\..\..\..\..\temp\cmr\ta_TEMA.obj: ..\..\..\..\..\src\ta_func\ta_TEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_TEMA.obj ..\..\..\..\..\src\ta_func\ta_TEMA.c + +..\..\..\..\..\temp\cmr\ta_TRANGE.obj: ..\..\..\..\..\src\ta_func\ta_TRANGE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_TRANGE.obj ..\..\..\..\..\src\ta_func\ta_TRANGE.c + +..\..\..\..\..\temp\cmr\ta_TRIMA.obj: ..\..\..\..\..\src\ta_func\ta_TRIMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_TRIMA.obj ..\..\..\..\..\src\ta_func\ta_TRIMA.c + +..\..\..\..\..\temp\cmr\ta_TRIX.obj: ..\..\..\..\..\src\ta_func\ta_TRIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_TRIX.obj ..\..\..\..\..\src\ta_func\ta_TRIX.c + +..\..\..\..\..\temp\cmr\ta_TSF.obj: ..\..\..\..\..\src\ta_func\ta_TSF.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_TSF.obj ..\..\..\..\..\src\ta_func\ta_TSF.c + +..\..\..\..\..\temp\cmr\ta_TYPPRICE.obj: ..\..\..\..\..\src\ta_func\ta_TYPPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_TYPPRICE.obj ..\..\..\..\..\src\ta_func\ta_TYPPRICE.c + +..\..\..\..\..\temp\cmr\ta_ULTOSC.obj: ..\..\..\..\..\src\ta_func\ta_ULTOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_ULTOSC.obj ..\..\..\..\..\src\ta_func\ta_ULTOSC.c + +..\..\..\..\..\temp\cmr\ta_VAR.obj: ..\..\..\..\..\src\ta_func\ta_VAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_VAR.obj ..\..\..\..\..\src\ta_func\ta_VAR.c + +..\..\..\..\..\temp\cmr\ta_WCLPRICE.obj: ..\..\..\..\..\src\ta_func\ta_WCLPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_WCLPRICE.obj ..\..\..\..\..\src\ta_func\ta_WCLPRICE.c + +..\..\..\..\..\temp\cmr\ta_WILLR.obj: ..\..\..\..\..\src\ta_func\ta_WILLR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_WILLR.obj ..\..\..\..\..\src\ta_func\ta_WILLR.c + +..\..\..\..\..\temp\cmr\ta_WMA.obj: ..\..\..\..\..\src\ta_func\ta_WMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_WMA.obj ..\..\..\..\..\src\ta_func\ta_WMA.c + diff --git a/make/cmr/win32/symantec/ta_regtest/Makefile b/make/cmr/win32/symantec/ta_regtest/Makefile new file mode 100644 index 000000000..1efb1416a --- /dev/null +++ b/make/cmr/win32/symantec/ta_regtest/Makefile @@ -0,0 +1,229 @@ +############################################################################# +# Makefile for building ta_regtest +# Generated by tmake; +# Project: ta_regtest/ta_regtest +# Template: app +############################################################################# + +####### Compiler, tools and options + +CC = sc +CXX = sc +CFLAGS = -mn -w2 -o -DWIN32 +CXXFLAGS= -mn -w2 -o -DWIN32 +INCPATH = -I"..\..\..\..\..\src\ta_common" -I"..\..\..\..\..\src\tools\ta_regtest" -I"..\..\..\..\..\src\ta_func" -I"..\..\..\..\..\include" +LINK = link +LFLAGS = /NOLOGO /NOI /SUBSYSTEM:console +LIBS = ..\..\..\..\..\lib\ta_libc_cmr.lib +MOC = moc + +ZIP = zip -r -9 + +####### Files + +HEADERS = +SOURCES = ..\..\..\..\..\src\tools\ta_regtest\ta_regtest.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_candlestick.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_1in_1out.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_1in_2out.c \ + ..\..\..\..\..\src\tools\ta_regtest\test_internals.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_adx.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_bbands.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_ma.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_macd.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_minmax.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_mom.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_ema.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hl.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hlc.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hlcv.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_ohlc.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_po.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_rsi.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_sar.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_stddev.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_stoch.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_trange.c \ + ..\..\..\..\..\src\tools\ta_regtest\test_util.c \ + ..\..\..\..\..\src\tools\ta_regtest\test_data.c \ + ..\..\..\..\..\src\tools\ta_regtest\test_abstract.c +OBJECTS = ..\..\..\..\..\temp\cmr\ta_regtest.obj \ + ..\..\..\..\..\temp\cmr\test_candlestick.obj \ + ..\..\..\..\..\temp\cmr\test_1in_1out.obj \ + ..\..\..\..\..\temp\cmr\test_1in_2out.obj \ + ..\..\..\..\..\temp\cmr\test_internals.obj \ + ..\..\..\..\..\temp\cmr\test_adx.obj \ + ..\..\..\..\..\temp\cmr\test_bbands.obj \ + ..\..\..\..\..\temp\cmr\test_ma.obj \ + ..\..\..\..\..\temp\cmr\test_macd.obj \ + ..\..\..\..\..\temp\cmr\test_minmax.obj \ + ..\..\..\..\..\temp\cmr\test_mom.obj \ + ..\..\..\..\..\temp\cmr\test_per_ema.obj \ + ..\..\..\..\..\temp\cmr\test_per_hl.obj \ + ..\..\..\..\..\temp\cmr\test_per_hlc.obj \ + ..\..\..\..\..\temp\cmr\test_per_hlcv.obj \ + ..\..\..\..\..\temp\cmr\test_per_ohlc.obj \ + ..\..\..\..\..\temp\cmr\test_po.obj \ + ..\..\..\..\..\temp\cmr\test_rsi.obj \ + ..\..\..\..\..\temp\cmr\test_sar.obj \ + ..\..\..\..\..\temp\cmr\test_stddev.obj \ + ..\..\..\..\..\temp\cmr\test_stoch.obj \ + ..\..\..\..\..\temp\cmr\test_trange.obj \ + ..\..\..\..\..\temp\cmr\test_util.obj \ + ..\..\..\..\..\temp\cmr\test_data.obj \ + ..\..\..\..\..\temp\cmr\test_abstract.obj +SRCMOC = +OBJMOC = +DIST = +TARGET = ..\..\..\..\..\bin\ta_regtest.exe + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .c + +.cpp.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.cxx.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.cc.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.c.obj: + $(CC) -c $(CFLAGS) $(INCPATH) -o$@ $< + +####### Build rules + +all: $(TARGET) + +$(TARGET): $(OBJECTS) $(OBJMOC) + $(LINK) $(LFLAGS) $(OBJECTS) $(OBJMOC), $(TARGET),, $(LIBS) + +moc: $(SRCMOC) + +tmake: ../cmr/win32/symantec/ta_regtest/Makefile + +../cmr/win32/symantec/ta_regtest/Makefile: ta_regtest/ta_regtest.pro + tmake ta_regtest/ta_regtest.pro -o ../cmr/win32/symantec/ta_regtest/Makefile + +dist: + $(ZIP) ta_regtest/ta_regtest.zip ta_regtest/ta_regtest.pro $(SOURCES) $(HEADERS) $(DIST) + +clean: + -del ..\..\..\..\..\temp\cmr\ta_regtest.obj + -del ..\..\..\..\..\temp\cmr\test_candlestick.obj + -del ..\..\..\..\..\temp\cmr\test_1in_1out.obj + -del ..\..\..\..\..\temp\cmr\test_1in_2out.obj + -del ..\..\..\..\..\temp\cmr\test_internals.obj + -del ..\..\..\..\..\temp\cmr\test_adx.obj + -del ..\..\..\..\..\temp\cmr\test_bbands.obj + -del ..\..\..\..\..\temp\cmr\test_ma.obj + -del ..\..\..\..\..\temp\cmr\test_macd.obj + -del ..\..\..\..\..\temp\cmr\test_minmax.obj + -del ..\..\..\..\..\temp\cmr\test_mom.obj + -del ..\..\..\..\..\temp\cmr\test_per_ema.obj + -del ..\..\..\..\..\temp\cmr\test_per_hl.obj + -del ..\..\..\..\..\temp\cmr\test_per_hlc.obj + -del ..\..\..\..\..\temp\cmr\test_per_hlcv.obj + -del ..\..\..\..\..\temp\cmr\test_per_ohlc.obj + -del ..\..\..\..\..\temp\cmr\test_po.obj + -del ..\..\..\..\..\temp\cmr\test_rsi.obj + -del ..\..\..\..\..\temp\cmr\test_sar.obj + -del ..\..\..\..\..\temp\cmr\test_stddev.obj + -del ..\..\..\..\..\temp\cmr\test_stoch.obj + -del ..\..\..\..\..\temp\cmr\test_trange.obj + -del ..\..\..\..\..\temp\cmr\test_util.obj + -del ..\..\..\..\..\temp\cmr\test_data.obj + -del ..\..\..\..\..\temp\cmr\test_abstract.obj + -del $(TARGET) + -del ../../../../../bin/*.map + -del ../../../../../bin/*._xe + -del ../../../../../bin/*.tds + -del ../../../../../bin/*.pdb + -del ../../../../../bin/*.pbo + -del ../../../../../bin/*.pbi + -del ../../../../../bin/*.pbt + -del ../../../../../temp/cmr/*.pch + -del ../../../../../temp/cmr/*.idb + -del ../../../../../temp/cmr/ta_regtest/*.pch + -del ../../../../../temp/cmr/ta_regtest/*.idb + -del ../../../../../temp/cmr/ta_regtest/*.obj + +####### Compile + +..\..\..\..\..\temp\cmr\ta_regtest.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_regtest.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\ta_regtest.obj ..\..\..\..\..\src\tools\ta_regtest\ta_regtest.c + +..\..\..\..\..\temp\cmr\test_candlestick.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_candlestick.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\test_candlestick.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_candlestick.c + +..\..\..\..\..\temp\cmr\test_1in_1out.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_1in_1out.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\test_1in_1out.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_1in_1out.c + +..\..\..\..\..\temp\cmr\test_1in_2out.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_1in_2out.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\test_1in_2out.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_1in_2out.c + +..\..\..\..\..\temp\cmr\test_internals.obj: ..\..\..\..\..\src\tools\ta_regtest\test_internals.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\test_internals.obj ..\..\..\..\..\src\tools\ta_regtest\test_internals.c + +..\..\..\..\..\temp\cmr\test_adx.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_adx.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\test_adx.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_adx.c + +..\..\..\..\..\temp\cmr\test_bbands.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_bbands.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\test_bbands.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_bbands.c + +..\..\..\..\..\temp\cmr\test_ma.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_ma.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\test_ma.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_ma.c + +..\..\..\..\..\temp\cmr\test_macd.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_macd.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\test_macd.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_macd.c + +..\..\..\..\..\temp\cmr\test_minmax.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_minmax.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\test_minmax.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_minmax.c + +..\..\..\..\..\temp\cmr\test_mom.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_mom.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\test_mom.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_mom.c + +..\..\..\..\..\temp\cmr\test_per_ema.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_ema.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\test_per_ema.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_ema.c + +..\..\..\..\..\temp\cmr\test_per_hl.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hl.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\test_per_hl.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hl.c + +..\..\..\..\..\temp\cmr\test_per_hlc.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hlc.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\test_per_hlc.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hlc.c + +..\..\..\..\..\temp\cmr\test_per_hlcv.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hlcv.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\test_per_hlcv.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hlcv.c + +..\..\..\..\..\temp\cmr\test_per_ohlc.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_ohlc.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\test_per_ohlc.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_ohlc.c + +..\..\..\..\..\temp\cmr\test_po.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_po.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\test_po.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_po.c + +..\..\..\..\..\temp\cmr\test_rsi.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_rsi.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\test_rsi.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_rsi.c + +..\..\..\..\..\temp\cmr\test_sar.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_sar.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\test_sar.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_sar.c + +..\..\..\..\..\temp\cmr\test_stddev.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_stddev.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\test_stddev.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_stddev.c + +..\..\..\..\..\temp\cmr\test_stoch.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_stoch.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\test_stoch.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_stoch.c + +..\..\..\..\..\temp\cmr\test_trange.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_trange.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\test_trange.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_trange.c + +..\..\..\..\..\temp\cmr\test_util.obj: ..\..\..\..\..\src\tools\ta_regtest\test_util.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\test_util.obj ..\..\..\..\..\src\tools\ta_regtest\test_util.c + +..\..\..\..\..\temp\cmr\test_data.obj: ..\..\..\..\..\src\tools\ta_regtest\test_data.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\test_data.obj ..\..\..\..\..\src\tools\ta_regtest\test_data.c + +..\..\..\..\..\temp\cmr\test_abstract.obj: ..\..\..\..\..\src\tools\ta_regtest\test_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\cmr\test_abstract.obj ..\..\..\..\..\src\tools\ta_regtest\test_abstract.c + diff --git a/make/cmr/win32/watcom/Makefile b/make/cmr/win32/watcom/Makefile new file mode 100644 index 000000000..8bc58ca8b --- /dev/null +++ b/make/cmr/win32/watcom/Makefile @@ -0,0 +1,97 @@ +############################################################################# +# Makefile for building targets in sub directories. +# Generated by tmake; +# Project: rootmake +# Template: subdirs +############################################################################# + +MAKEFILE= Makefile +TMAKE = tmake + +SUBDIRS = ta_common \ + ta_func \ + ta_abstract \ + ta_libc \ + gen_code \ + ta_regtest + +all: $(SUBDIRS) + +ta_common: FORCE + cd ta_common + $(MAKE) + @cd .. + +ta_func: FORCE + cd ta_func + $(MAKE) + @cd .. + +ta_abstract: FORCE + cd ta_abstract + $(MAKE) + @cd .. + +ta_libc: FORCE + cd ta_libc + $(MAKE) + @cd .. + +gen_code: FORCE + cd gen_code + $(MAKE) + @cd .. + +ta_regtest: FORCE + cd ta_regtest + $(MAKE) + @cd .. + + +tmake: ../cmr/win32/watcom/Makefile + +../cmr/win32/watcom/Makefile: rootmake.pro + tmake rootmake.pro -o ../cmr/win32/watcom/Makefile + +tmake_all: + cd ta_common + $(TMAKE) ta_common.pro -o $(MAKEFILE) + @cd .. + cd ta_func + $(TMAKE) ta_func.pro -o $(MAKEFILE) + @cd .. + cd ta_abstract + $(TMAKE) ta_abstract.pro -o $(MAKEFILE) + @cd .. + cd ta_libc + $(TMAKE) ta_libc.pro -o $(MAKEFILE) + @cd .. + cd gen_code + $(TMAKE) gen_code.pro -o $(MAKEFILE) + @cd .. + cd ta_regtest + $(TMAKE) ta_regtest.pro -o $(MAKEFILE) + @cd .. + + +clean: + cd ta_common + $(MAKE) clean + @cd .. + cd ta_func + $(MAKE) clean + @cd .. + cd ta_abstract + $(MAKE) clean + @cd .. + cd ta_libc + $(MAKE) clean + @cd .. + cd gen_code + $(MAKE) clean + @cd .. + cd ta_regtest + $(MAKE) clean + @cd .. + +FORCE: diff --git a/make/cmr/win32/watcom/gen_code/Makefile b/make/cmr/win32/watcom/gen_code/Makefile new file mode 100644 index 000000000..168e7a797 --- /dev/null +++ b/make/cmr/win32/watcom/gen_code/Makefile @@ -0,0 +1,243 @@ +############################################################################# +# Makefile for building gen_code +# Generated by tmake; +# Project: gen_code/gen_code +# Template: app +############################################################################# + +####### Compiler, tools and options + +CC = wcl386 +CXX = wcl386 +CFLAGS = -zq -w2 -ox -d=TA_GEN_CODE -d=WIN32 +CXXFLAGS= -zq -w2 -ox -d=TA_GEN_CODE -d=WIN32 +INCPATH = -i="..\..\..\..\..\include" -i="..\..\..\..\..\src\ta_common" -i="..\..\..\..\..\src\ta_abstract" -i="..\..\..\..\..\src\ta_abstract\tables" -i="..\..\..\..\..\src\ta_abstract\frames" +LINK = wlink +LFLAGS = op quiet op c sys nt +LIBS = ..\..\..\..\..\lib\ta_common_cmr.lib +MOC = moc + +ZIP = zip -r -9 + +####### Files + +HEADERS = +SOURCES = ..\..\..\..\..\src\tools\gen_code\gen_code.c & + ..\..\..\..\..\src\ta_abstract\ta_abstract.c & + ..\..\..\..\..\src\ta_abstract\ta_def_ui.c & + ..\..\..\..\..\src\ta_abstract\tables\table_a.c & + ..\..\..\..\..\src\ta_abstract\tables\table_b.c & + ..\..\..\..\..\src\ta_abstract\tables\table_c.c & + ..\..\..\..\..\src\ta_abstract\tables\table_d.c & + ..\..\..\..\..\src\ta_abstract\tables\table_e.c & + ..\..\..\..\..\src\ta_abstract\tables\table_f.c & + ..\..\..\..\..\src\ta_abstract\tables\table_g.c & + ..\..\..\..\..\src\ta_abstract\tables\table_h.c & + ..\..\..\..\..\src\ta_abstract\tables\table_i.c & + ..\..\..\..\..\src\ta_abstract\tables\table_j.c & + ..\..\..\..\..\src\ta_abstract\tables\table_k.c & + ..\..\..\..\..\src\ta_abstract\tables\table_l.c & + ..\..\..\..\..\src\ta_abstract\tables\table_m.c & + ..\..\..\..\..\src\ta_abstract\tables\table_n.c & + ..\..\..\..\..\src\ta_abstract\tables\table_o.c & + ..\..\..\..\..\src\ta_abstract\tables\table_p.c & + ..\..\..\..\..\src\ta_abstract\tables\table_q.c & + ..\..\..\..\..\src\ta_abstract\tables\table_r.c & + ..\..\..\..\..\src\ta_abstract\tables\table_s.c & + ..\..\..\..\..\src\ta_abstract\tables\table_t.c & + ..\..\..\..\..\src\ta_abstract\tables\table_u.c & + ..\..\..\..\..\src\ta_abstract\tables\table_v.c & + ..\..\..\..\..\src\ta_abstract\tables\table_w.c & + ..\..\..\..\..\src\ta_abstract\tables\table_x.c & + ..\..\..\..\..\src\ta_abstract\tables\table_y.c & + ..\..\..\..\..\src\ta_abstract\tables\table_z.c +OBJECTS = ..\..\..\..\..\temp\cmr\gen_code\gen_code.obj & + ..\..\..\..\..\temp\cmr\gen_code\ta_abstract.obj & + ..\..\..\..\..\temp\cmr\gen_code\ta_def_ui.obj & + ..\..\..\..\..\temp\cmr\gen_code\table_a.obj & + ..\..\..\..\..\temp\cmr\gen_code\table_b.obj & + ..\..\..\..\..\temp\cmr\gen_code\table_c.obj & + ..\..\..\..\..\temp\cmr\gen_code\table_d.obj & + ..\..\..\..\..\temp\cmr\gen_code\table_e.obj & + ..\..\..\..\..\temp\cmr\gen_code\table_f.obj & + ..\..\..\..\..\temp\cmr\gen_code\table_g.obj & + ..\..\..\..\..\temp\cmr\gen_code\table_h.obj & + ..\..\..\..\..\temp\cmr\gen_code\table_i.obj & + ..\..\..\..\..\temp\cmr\gen_code\table_j.obj & + ..\..\..\..\..\temp\cmr\gen_code\table_k.obj & + ..\..\..\..\..\temp\cmr\gen_code\table_l.obj & + ..\..\..\..\..\temp\cmr\gen_code\table_m.obj & + ..\..\..\..\..\temp\cmr\gen_code\table_n.obj & + ..\..\..\..\..\temp\cmr\gen_code\table_o.obj & + ..\..\..\..\..\temp\cmr\gen_code\table_p.obj & + ..\..\..\..\..\temp\cmr\gen_code\table_q.obj & + ..\..\..\..\..\temp\cmr\gen_code\table_r.obj & + ..\..\..\..\..\temp\cmr\gen_code\table_s.obj & + ..\..\..\..\..\temp\cmr\gen_code\table_t.obj & + ..\..\..\..\..\temp\cmr\gen_code\table_u.obj & + ..\..\..\..\..\temp\cmr\gen_code\table_v.obj & + ..\..\..\..\..\temp\cmr\gen_code\table_w.obj & + ..\..\..\..\..\temp\cmr\gen_code\table_x.obj & + ..\..\..\..\..\temp\cmr\gen_code\table_y.obj & + ..\..\..\..\..\temp\cmr\gen_code\table_z.obj +SRCMOC = +OBJMOC = +DIST = +TARGET = ..\..\..\..\..\bin\gen_code.exe +TMPLIST = gen_code.lst + +####### Build rules + +all: $(TARGET) + +$(TARGET): $(OBJECTS) $(OBJMOC) + @%create $(TMPLIST) + @%append $(TMPLIST) NAME gen_code + @%append $(TMPLIST) FIL ..\..\..\..\..\temp\cmr\gen_code\gen_code.obj,..\..\..\..\..\temp\cmr\gen_code\ta_abstract.obj,..\..\..\..\..\temp\cmr\gen_code\ta_def_ui.obj,..\..\..\..\..\temp\cmr\gen_code\table_a.obj,..\..\..\..\..\temp\cmr\gen_code\table_b.obj,..\..\..\..\..\temp\cmr\gen_code\table_c.obj,..\..\..\..\..\temp\cmr\gen_code\table_d.obj,..\..\..\..\..\temp\cmr\gen_code\table_e.obj,..\..\..\..\..\temp\cmr\gen_code\table_f.obj,..\..\..\..\..\temp\cmr\gen_code\table_g.obj,..\..\..\..\..\temp\cmr\gen_code\table_h.obj,..\..\..\..\..\temp\cmr\gen_code\table_i.obj,..\..\..\..\..\temp\cmr\gen_code\table_j.obj,..\..\..\..\..\temp\cmr\gen_code\table_k.obj,..\..\..\..\..\temp\cmr\gen_code\table_l.obj,..\..\..\..\..\temp\cmr\gen_code\table_m.obj,..\..\..\..\..\temp\cmr\gen_code\table_n.obj,..\..\..\..\..\temp\cmr\gen_code\table_o.obj,..\..\..\..\..\temp\cmr\gen_code\table_p.obj,..\..\..\..\..\temp\cmr\gen_code\table_q.obj,..\..\..\..\..\temp\cmr\gen_code\table_r.obj,..\..\..\..\..\temp\cmr\gen_code\table_s.obj,..\..\..\..\..\temp\cmr\gen_code\table_t.obj,..\..\..\..\..\temp\cmr\gen_code\table_u.obj,..\..\..\..\..\temp\cmr\gen_code\table_v.obj,..\..\..\..\..\temp\cmr\gen_code\table_w.obj,..\..\..\..\..\temp\cmr\gen_code\table_x.obj,..\..\..\..\..\temp\cmr\gen_code\table_y.obj,..\..\..\..\..\temp\cmr\gen_code\table_z.obj + @%append $(TMPLIST) LIBR ..\..\..\..\..\lib\ta_common_cmr.lib + $(LINK) $(LFLAGS) @$(TMPLIST) + del $(TMPLIST) + +moc: $(SRCMOC) + +tmake: ../cmr/win32/watcom/gen_code/Makefile + +../cmr/win32/watcom/gen_code/Makefile: gen_code/gen_code.pro + tmake gen_code/gen_code.pro -o ../cmr/win32/watcom/gen_code/Makefile + +dist: + $(ZIP) gen_code/gen_code.zip gen_code/gen_code.pro $(SOURCES) $(HEADERS) $(DIST) + +clean: + -del ..\..\..\..\..\temp\cmr\gen_code\gen_code.obj + -del ..\..\..\..\..\temp\cmr\gen_code\ta_abstract.obj + -del ..\..\..\..\..\temp\cmr\gen_code\ta_def_ui.obj + -del ..\..\..\..\..\temp\cmr\gen_code\table_a.obj + -del ..\..\..\..\..\temp\cmr\gen_code\table_b.obj + -del ..\..\..\..\..\temp\cmr\gen_code\table_c.obj + -del ..\..\..\..\..\temp\cmr\gen_code\table_d.obj + -del ..\..\..\..\..\temp\cmr\gen_code\table_e.obj + -del ..\..\..\..\..\temp\cmr\gen_code\table_f.obj + -del ..\..\..\..\..\temp\cmr\gen_code\table_g.obj + -del ..\..\..\..\..\temp\cmr\gen_code\table_h.obj + -del ..\..\..\..\..\temp\cmr\gen_code\table_i.obj + -del ..\..\..\..\..\temp\cmr\gen_code\table_j.obj + -del ..\..\..\..\..\temp\cmr\gen_code\table_k.obj + -del ..\..\..\..\..\temp\cmr\gen_code\table_l.obj + -del ..\..\..\..\..\temp\cmr\gen_code\table_m.obj + -del ..\..\..\..\..\temp\cmr\gen_code\table_n.obj + -del ..\..\..\..\..\temp\cmr\gen_code\table_o.obj + -del ..\..\..\..\..\temp\cmr\gen_code\table_p.obj + -del ..\..\..\..\..\temp\cmr\gen_code\table_q.obj + -del ..\..\..\..\..\temp\cmr\gen_code\table_r.obj + -del ..\..\..\..\..\temp\cmr\gen_code\table_s.obj + -del ..\..\..\..\..\temp\cmr\gen_code\table_t.obj + -del ..\..\..\..\..\temp\cmr\gen_code\table_u.obj + -del ..\..\..\..\..\temp\cmr\gen_code\table_v.obj + -del ..\..\..\..\..\temp\cmr\gen_code\table_w.obj + -del ..\..\..\..\..\temp\cmr\gen_code\table_x.obj + -del ..\..\..\..\..\temp\cmr\gen_code\table_y.obj + -del ..\..\..\..\..\temp\cmr\gen_code\table_z.obj + -del $(TARGET) + -del ../../../../../bin/*.map + -del ../../../../../bin/*._xe + -del ../../../../../bin/*.tds + -del ../../../../../bin/*.pdb + -del ../../../../../bin/*.pbo + -del ../../../../../bin/*.pbi + -del ../../../../../bin/*.pbt + -del ../../../../../temp/cmr/*.pch + -del ../../../../../temp/cmr/*.idb + -del ../../../../../temp/cmr/gen_code/*.pch + -del ../../../../../temp/cmr/gen_code/*.idb + -del ../../../../../temp/cmr/gen_code/*.obj + +####### Compile + +..\..\..\..\..\temp\cmr\gen_code\gen_code.obj: ..\..\..\..\..\src\tools\gen_code\gen_code.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\gen_code\gen_code.obj ..\..\..\..\..\src\tools\gen_code\gen_code.c + +..\..\..\..\..\temp\cmr\gen_code\ta_abstract.obj: ..\..\..\..\..\src\ta_abstract\ta_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\gen_code\ta_abstract.obj ..\..\..\..\..\src\ta_abstract\ta_abstract.c + +..\..\..\..\..\temp\cmr\gen_code\ta_def_ui.obj: ..\..\..\..\..\src\ta_abstract\ta_def_ui.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\gen_code\ta_def_ui.obj ..\..\..\..\..\src\ta_abstract\ta_def_ui.c + +..\..\..\..\..\temp\cmr\gen_code\table_a.obj: ..\..\..\..\..\src\ta_abstract\tables\table_a.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\gen_code\table_a.obj ..\..\..\..\..\src\ta_abstract\tables\table_a.c + +..\..\..\..\..\temp\cmr\gen_code\table_b.obj: ..\..\..\..\..\src\ta_abstract\tables\table_b.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\gen_code\table_b.obj ..\..\..\..\..\src\ta_abstract\tables\table_b.c + +..\..\..\..\..\temp\cmr\gen_code\table_c.obj: ..\..\..\..\..\src\ta_abstract\tables\table_c.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\gen_code\table_c.obj ..\..\..\..\..\src\ta_abstract\tables\table_c.c + +..\..\..\..\..\temp\cmr\gen_code\table_d.obj: ..\..\..\..\..\src\ta_abstract\tables\table_d.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\gen_code\table_d.obj ..\..\..\..\..\src\ta_abstract\tables\table_d.c + +..\..\..\..\..\temp\cmr\gen_code\table_e.obj: ..\..\..\..\..\src\ta_abstract\tables\table_e.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\gen_code\table_e.obj ..\..\..\..\..\src\ta_abstract\tables\table_e.c + +..\..\..\..\..\temp\cmr\gen_code\table_f.obj: ..\..\..\..\..\src\ta_abstract\tables\table_f.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\gen_code\table_f.obj ..\..\..\..\..\src\ta_abstract\tables\table_f.c + +..\..\..\..\..\temp\cmr\gen_code\table_g.obj: ..\..\..\..\..\src\ta_abstract\tables\table_g.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\gen_code\table_g.obj ..\..\..\..\..\src\ta_abstract\tables\table_g.c + +..\..\..\..\..\temp\cmr\gen_code\table_h.obj: ..\..\..\..\..\src\ta_abstract\tables\table_h.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\gen_code\table_h.obj ..\..\..\..\..\src\ta_abstract\tables\table_h.c + +..\..\..\..\..\temp\cmr\gen_code\table_i.obj: ..\..\..\..\..\src\ta_abstract\tables\table_i.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\gen_code\table_i.obj ..\..\..\..\..\src\ta_abstract\tables\table_i.c + +..\..\..\..\..\temp\cmr\gen_code\table_j.obj: ..\..\..\..\..\src\ta_abstract\tables\table_j.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\gen_code\table_j.obj ..\..\..\..\..\src\ta_abstract\tables\table_j.c + +..\..\..\..\..\temp\cmr\gen_code\table_k.obj: ..\..\..\..\..\src\ta_abstract\tables\table_k.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\gen_code\table_k.obj ..\..\..\..\..\src\ta_abstract\tables\table_k.c + +..\..\..\..\..\temp\cmr\gen_code\table_l.obj: ..\..\..\..\..\src\ta_abstract\tables\table_l.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\gen_code\table_l.obj ..\..\..\..\..\src\ta_abstract\tables\table_l.c + +..\..\..\..\..\temp\cmr\gen_code\table_m.obj: ..\..\..\..\..\src\ta_abstract\tables\table_m.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\gen_code\table_m.obj ..\..\..\..\..\src\ta_abstract\tables\table_m.c + +..\..\..\..\..\temp\cmr\gen_code\table_n.obj: ..\..\..\..\..\src\ta_abstract\tables\table_n.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\gen_code\table_n.obj ..\..\..\..\..\src\ta_abstract\tables\table_n.c + +..\..\..\..\..\temp\cmr\gen_code\table_o.obj: ..\..\..\..\..\src\ta_abstract\tables\table_o.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\gen_code\table_o.obj ..\..\..\..\..\src\ta_abstract\tables\table_o.c + +..\..\..\..\..\temp\cmr\gen_code\table_p.obj: ..\..\..\..\..\src\ta_abstract\tables\table_p.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\gen_code\table_p.obj ..\..\..\..\..\src\ta_abstract\tables\table_p.c + +..\..\..\..\..\temp\cmr\gen_code\table_q.obj: ..\..\..\..\..\src\ta_abstract\tables\table_q.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\gen_code\table_q.obj ..\..\..\..\..\src\ta_abstract\tables\table_q.c + +..\..\..\..\..\temp\cmr\gen_code\table_r.obj: ..\..\..\..\..\src\ta_abstract\tables\table_r.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\gen_code\table_r.obj ..\..\..\..\..\src\ta_abstract\tables\table_r.c + +..\..\..\..\..\temp\cmr\gen_code\table_s.obj: ..\..\..\..\..\src\ta_abstract\tables\table_s.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\gen_code\table_s.obj ..\..\..\..\..\src\ta_abstract\tables\table_s.c + +..\..\..\..\..\temp\cmr\gen_code\table_t.obj: ..\..\..\..\..\src\ta_abstract\tables\table_t.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\gen_code\table_t.obj ..\..\..\..\..\src\ta_abstract\tables\table_t.c + +..\..\..\..\..\temp\cmr\gen_code\table_u.obj: ..\..\..\..\..\src\ta_abstract\tables\table_u.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\gen_code\table_u.obj ..\..\..\..\..\src\ta_abstract\tables\table_u.c + +..\..\..\..\..\temp\cmr\gen_code\table_v.obj: ..\..\..\..\..\src\ta_abstract\tables\table_v.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\gen_code\table_v.obj ..\..\..\..\..\src\ta_abstract\tables\table_v.c + +..\..\..\..\..\temp\cmr\gen_code\table_w.obj: ..\..\..\..\..\src\ta_abstract\tables\table_w.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\gen_code\table_w.obj ..\..\..\..\..\src\ta_abstract\tables\table_w.c + +..\..\..\..\..\temp\cmr\gen_code\table_x.obj: ..\..\..\..\..\src\ta_abstract\tables\table_x.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\gen_code\table_x.obj ..\..\..\..\..\src\ta_abstract\tables\table_x.c + +..\..\..\..\..\temp\cmr\gen_code\table_y.obj: ..\..\..\..\..\src\ta_abstract\tables\table_y.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\gen_code\table_y.obj ..\..\..\..\..\src\ta_abstract\tables\table_y.c + +..\..\..\..\..\temp\cmr\gen_code\table_z.obj: ..\..\..\..\..\src\ta_abstract\tables\table_z.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\gen_code\table_z.obj ..\..\..\..\..\src\ta_abstract\tables\table_z.c + diff --git a/make/cmr/win32/watcom/ta_abstract/Makefile b/make/cmr/win32/watcom/ta_abstract/Makefile new file mode 100644 index 000000000..272497a29 --- /dev/null +++ b/make/cmr/win32/watcom/ta_abstract/Makefile @@ -0,0 +1,251 @@ +############################################################################# +# Makefile for building ta_abstract_cmr +# Generated by tmake; +# Project: ta_abstract/ta_abstract +# Template: lib +############################################################################# + +####### Compiler, tools and options + +CC = wcl386 +CXX = wcl386 +CFLAGS = -zq -w2 -ox -d=WIN32 +CXXFLAGS= -zq -w2 -ox -d=WIN32 +INCPATH = -i="..\..\..\..\..\src\ta_common" -i="..\..\..\..\..\src\ta_abstract" -i="..\..\..\..\..\src\ta_abstract\tables" -i="..\..\..\..\..\src\ta_abstract\frames" -i="..\..\..\..\..\include" +LIB = wlib -b -c -n -q -p=512 +MOC = moc + +ZIP = zip -r -9 + +####### Files + +HEADERS = +SOURCES = ..\..\..\..\..\src\ta_abstract\ta_abstract.c & + ..\..\..\..\..\src\ta_abstract\ta_def_ui.c & + ..\..\..\..\..\src\ta_abstract\ta_func_api.c & + ..\..\..\..\..\src\ta_abstract\ta_group_idx.c & + ..\..\..\..\..\src\ta_abstract\frames\ta_frame.c & + ..\..\..\..\..\src\ta_abstract\tables\table_a.c & + ..\..\..\..\..\src\ta_abstract\tables\table_b.c & + ..\..\..\..\..\src\ta_abstract\tables\table_c.c & + ..\..\..\..\..\src\ta_abstract\tables\table_d.c & + ..\..\..\..\..\src\ta_abstract\tables\table_e.c & + ..\..\..\..\..\src\ta_abstract\tables\table_f.c & + ..\..\..\..\..\src\ta_abstract\tables\table_g.c & + ..\..\..\..\..\src\ta_abstract\tables\table_h.c & + ..\..\..\..\..\src\ta_abstract\tables\table_i.c & + ..\..\..\..\..\src\ta_abstract\tables\table_j.c & + ..\..\..\..\..\src\ta_abstract\tables\table_k.c & + ..\..\..\..\..\src\ta_abstract\tables\table_l.c & + ..\..\..\..\..\src\ta_abstract\tables\table_m.c & + ..\..\..\..\..\src\ta_abstract\tables\table_n.c & + ..\..\..\..\..\src\ta_abstract\tables\table_o.c & + ..\..\..\..\..\src\ta_abstract\tables\table_p.c & + ..\..\..\..\..\src\ta_abstract\tables\table_q.c & + ..\..\..\..\..\src\ta_abstract\tables\table_r.c & + ..\..\..\..\..\src\ta_abstract\tables\table_s.c & + ..\..\..\..\..\src\ta_abstract\tables\table_t.c & + ..\..\..\..\..\src\ta_abstract\tables\table_u.c & + ..\..\..\..\..\src\ta_abstract\tables\table_v.c & + ..\..\..\..\..\src\ta_abstract\tables\table_w.c & + ..\..\..\..\..\src\ta_abstract\tables\table_x.c & + ..\..\..\..\..\src\ta_abstract\tables\table_y.c & + ..\..\..\..\..\src\ta_abstract\tables\table_z.c +OBJECTS = ..\..\..\..\..\temp\cmr\ta_abstract.obj & + ..\..\..\..\..\temp\cmr\ta_def_ui.obj & + ..\..\..\..\..\temp\cmr\ta_func_api.obj & + ..\..\..\..\..\temp\cmr\ta_group_idx.obj & + ..\..\..\..\..\temp\cmr\ta_frame.obj & + ..\..\..\..\..\temp\cmr\table_a.obj & + ..\..\..\..\..\temp\cmr\table_b.obj & + ..\..\..\..\..\temp\cmr\table_c.obj & + ..\..\..\..\..\temp\cmr\table_d.obj & + ..\..\..\..\..\temp\cmr\table_e.obj & + ..\..\..\..\..\temp\cmr\table_f.obj & + ..\..\..\..\..\temp\cmr\table_g.obj & + ..\..\..\..\..\temp\cmr\table_h.obj & + ..\..\..\..\..\temp\cmr\table_i.obj & + ..\..\..\..\..\temp\cmr\table_j.obj & + ..\..\..\..\..\temp\cmr\table_k.obj & + ..\..\..\..\..\temp\cmr\table_l.obj & + ..\..\..\..\..\temp\cmr\table_m.obj & + ..\..\..\..\..\temp\cmr\table_n.obj & + ..\..\..\..\..\temp\cmr\table_o.obj & + ..\..\..\..\..\temp\cmr\table_p.obj & + ..\..\..\..\..\temp\cmr\table_q.obj & + ..\..\..\..\..\temp\cmr\table_r.obj & + ..\..\..\..\..\temp\cmr\table_s.obj & + ..\..\..\..\..\temp\cmr\table_t.obj & + ..\..\..\..\..\temp\cmr\table_u.obj & + ..\..\..\..\..\temp\cmr\table_v.obj & + ..\..\..\..\..\temp\cmr\table_w.obj & + ..\..\..\..\..\temp\cmr\table_x.obj & + ..\..\..\..\..\temp\cmr\table_y.obj & + ..\..\..\..\..\temp\cmr\table_z.obj +SRCMOC = +OBJMOC = +DIST = +TARGET = ..\..\..\..\..\lib\ta_abstract_cmr.lib +TMPLIST = ta_abstract_cmr.lst + +####### Build rules + +all: $(TARGET) + +$(TARGET): $(OBJECTS) $(OBJMOC) + @%create $(TMPLIST) + @for %i in ( $(OBJECTS) $(OBJMOC) ) do @%append $(TMPLIST) +'%i' + $(LIB) $(TARGET) @$(TMPLIST) + del $(TMPLIST) + +moc: $(SRCMOC) + +tmake: ../cmr/win32/watcom/ta_abstract/Makefile + +../cmr/win32/watcom/ta_abstract/Makefile: ta_abstract/ta_abstract.pro + tmake ta_abstract/ta_abstract.pro -o ../cmr/win32/watcom/ta_abstract/Makefile + +dist: + $(ZIP) ta_abstract/ta_abstract.zip ta_abstract/ta_abstract.pro $(SOURCES) $(HEADERS) $(DIST) + +clean: + -del ..\..\..\..\..\temp\cmr\ta_abstract.obj + -del ..\..\..\..\..\temp\cmr\ta_def_ui.obj + -del ..\..\..\..\..\temp\cmr\ta_func_api.obj + -del ..\..\..\..\..\temp\cmr\ta_group_idx.obj + -del ..\..\..\..\..\temp\cmr\ta_frame.obj + -del ..\..\..\..\..\temp\cmr\table_a.obj + -del ..\..\..\..\..\temp\cmr\table_b.obj + -del ..\..\..\..\..\temp\cmr\table_c.obj + -del ..\..\..\..\..\temp\cmr\table_d.obj + -del ..\..\..\..\..\temp\cmr\table_e.obj + -del ..\..\..\..\..\temp\cmr\table_f.obj + -del ..\..\..\..\..\temp\cmr\table_g.obj + -del ..\..\..\..\..\temp\cmr\table_h.obj + -del ..\..\..\..\..\temp\cmr\table_i.obj + -del ..\..\..\..\..\temp\cmr\table_j.obj + -del ..\..\..\..\..\temp\cmr\table_k.obj + -del ..\..\..\..\..\temp\cmr\table_l.obj + -del ..\..\..\..\..\temp\cmr\table_m.obj + -del ..\..\..\..\..\temp\cmr\table_n.obj + -del ..\..\..\..\..\temp\cmr\table_o.obj + -del ..\..\..\..\..\temp\cmr\table_p.obj + -del ..\..\..\..\..\temp\cmr\table_q.obj + -del ..\..\..\..\..\temp\cmr\table_r.obj + -del ..\..\..\..\..\temp\cmr\table_s.obj + -del ..\..\..\..\..\temp\cmr\table_t.obj + -del ..\..\..\..\..\temp\cmr\table_u.obj + -del ..\..\..\..\..\temp\cmr\table_v.obj + -del ..\..\..\..\..\temp\cmr\table_w.obj + -del ..\..\..\..\..\temp\cmr\table_x.obj + -del ..\..\..\..\..\temp\cmr\table_y.obj + -del ..\..\..\..\..\temp\cmr\table_z.obj + -del $(TARGET) + -del ../../../../../bin/*.map + -del ../../../../../bin/*._xe + -del ../../../../../bin/*.tds + -del ../../../../../bin/*.pdb + -del ../../../../../bin/*.pbo + -del ../../../../../bin/*.pbi + -del ../../../../../bin/*.pbt + -del ../../../../../temp/cmr/*.pch + -del ../../../../../temp/cmr/*.idb + -del ../../../../../temp/cmr/ta_abstract/*.pch + -del ../../../../../temp/cmr/ta_abstract/*.idb + -del ../../../../../temp/cmr/ta_abstract/*.obj + +####### Compile + +..\..\..\..\..\temp\cmr\ta_abstract.obj: ..\..\..\..\..\src\ta_abstract\ta_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_abstract.obj ..\..\..\..\..\src\ta_abstract\ta_abstract.c + +..\..\..\..\..\temp\cmr\ta_def_ui.obj: ..\..\..\..\..\src\ta_abstract\ta_def_ui.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_def_ui.obj ..\..\..\..\..\src\ta_abstract\ta_def_ui.c + +..\..\..\..\..\temp\cmr\ta_func_api.obj: ..\..\..\..\..\src\ta_abstract\ta_func_api.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_func_api.obj ..\..\..\..\..\src\ta_abstract\ta_func_api.c + +..\..\..\..\..\temp\cmr\ta_group_idx.obj: ..\..\..\..\..\src\ta_abstract\ta_group_idx.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_group_idx.obj ..\..\..\..\..\src\ta_abstract\ta_group_idx.c + +..\..\..\..\..\temp\cmr\ta_frame.obj: ..\..\..\..\..\src\ta_abstract\frames\ta_frame.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_frame.obj ..\..\..\..\..\src\ta_abstract\frames\ta_frame.c + +..\..\..\..\..\temp\cmr\table_a.obj: ..\..\..\..\..\src\ta_abstract\tables\table_a.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\table_a.obj ..\..\..\..\..\src\ta_abstract\tables\table_a.c + +..\..\..\..\..\temp\cmr\table_b.obj: ..\..\..\..\..\src\ta_abstract\tables\table_b.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\table_b.obj ..\..\..\..\..\src\ta_abstract\tables\table_b.c + +..\..\..\..\..\temp\cmr\table_c.obj: ..\..\..\..\..\src\ta_abstract\tables\table_c.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\table_c.obj ..\..\..\..\..\src\ta_abstract\tables\table_c.c + +..\..\..\..\..\temp\cmr\table_d.obj: ..\..\..\..\..\src\ta_abstract\tables\table_d.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\table_d.obj ..\..\..\..\..\src\ta_abstract\tables\table_d.c + +..\..\..\..\..\temp\cmr\table_e.obj: ..\..\..\..\..\src\ta_abstract\tables\table_e.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\table_e.obj ..\..\..\..\..\src\ta_abstract\tables\table_e.c + +..\..\..\..\..\temp\cmr\table_f.obj: ..\..\..\..\..\src\ta_abstract\tables\table_f.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\table_f.obj ..\..\..\..\..\src\ta_abstract\tables\table_f.c + +..\..\..\..\..\temp\cmr\table_g.obj: ..\..\..\..\..\src\ta_abstract\tables\table_g.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\table_g.obj ..\..\..\..\..\src\ta_abstract\tables\table_g.c + +..\..\..\..\..\temp\cmr\table_h.obj: ..\..\..\..\..\src\ta_abstract\tables\table_h.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\table_h.obj ..\..\..\..\..\src\ta_abstract\tables\table_h.c + +..\..\..\..\..\temp\cmr\table_i.obj: ..\..\..\..\..\src\ta_abstract\tables\table_i.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\table_i.obj ..\..\..\..\..\src\ta_abstract\tables\table_i.c + +..\..\..\..\..\temp\cmr\table_j.obj: ..\..\..\..\..\src\ta_abstract\tables\table_j.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\table_j.obj ..\..\..\..\..\src\ta_abstract\tables\table_j.c + +..\..\..\..\..\temp\cmr\table_k.obj: ..\..\..\..\..\src\ta_abstract\tables\table_k.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\table_k.obj ..\..\..\..\..\src\ta_abstract\tables\table_k.c + +..\..\..\..\..\temp\cmr\table_l.obj: ..\..\..\..\..\src\ta_abstract\tables\table_l.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\table_l.obj ..\..\..\..\..\src\ta_abstract\tables\table_l.c + +..\..\..\..\..\temp\cmr\table_m.obj: ..\..\..\..\..\src\ta_abstract\tables\table_m.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\table_m.obj ..\..\..\..\..\src\ta_abstract\tables\table_m.c + +..\..\..\..\..\temp\cmr\table_n.obj: ..\..\..\..\..\src\ta_abstract\tables\table_n.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\table_n.obj ..\..\..\..\..\src\ta_abstract\tables\table_n.c + +..\..\..\..\..\temp\cmr\table_o.obj: ..\..\..\..\..\src\ta_abstract\tables\table_o.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\table_o.obj ..\..\..\..\..\src\ta_abstract\tables\table_o.c + +..\..\..\..\..\temp\cmr\table_p.obj: ..\..\..\..\..\src\ta_abstract\tables\table_p.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\table_p.obj ..\..\..\..\..\src\ta_abstract\tables\table_p.c + +..\..\..\..\..\temp\cmr\table_q.obj: ..\..\..\..\..\src\ta_abstract\tables\table_q.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\table_q.obj ..\..\..\..\..\src\ta_abstract\tables\table_q.c + +..\..\..\..\..\temp\cmr\table_r.obj: ..\..\..\..\..\src\ta_abstract\tables\table_r.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\table_r.obj ..\..\..\..\..\src\ta_abstract\tables\table_r.c + +..\..\..\..\..\temp\cmr\table_s.obj: ..\..\..\..\..\src\ta_abstract\tables\table_s.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\table_s.obj ..\..\..\..\..\src\ta_abstract\tables\table_s.c + +..\..\..\..\..\temp\cmr\table_t.obj: ..\..\..\..\..\src\ta_abstract\tables\table_t.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\table_t.obj ..\..\..\..\..\src\ta_abstract\tables\table_t.c + +..\..\..\..\..\temp\cmr\table_u.obj: ..\..\..\..\..\src\ta_abstract\tables\table_u.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\table_u.obj ..\..\..\..\..\src\ta_abstract\tables\table_u.c + +..\..\..\..\..\temp\cmr\table_v.obj: ..\..\..\..\..\src\ta_abstract\tables\table_v.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\table_v.obj ..\..\..\..\..\src\ta_abstract\tables\table_v.c + +..\..\..\..\..\temp\cmr\table_w.obj: ..\..\..\..\..\src\ta_abstract\tables\table_w.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\table_w.obj ..\..\..\..\..\src\ta_abstract\tables\table_w.c + +..\..\..\..\..\temp\cmr\table_x.obj: ..\..\..\..\..\src\ta_abstract\tables\table_x.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\table_x.obj ..\..\..\..\..\src\ta_abstract\tables\table_x.c + +..\..\..\..\..\temp\cmr\table_y.obj: ..\..\..\..\..\src\ta_abstract\tables\table_y.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\table_y.obj ..\..\..\..\..\src\ta_abstract\tables\table_y.c + +..\..\..\..\..\temp\cmr\table_z.obj: ..\..\..\..\..\src\ta_abstract\tables\table_z.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\table_z.obj ..\..\..\..\..\src\ta_abstract\tables\table_z.c + diff --git a/make/cmr/win32/watcom/ta_common/Makefile b/make/cmr/win32/watcom/ta_common/Makefile new file mode 100644 index 000000000..6e3dfa16f --- /dev/null +++ b/make/cmr/win32/watcom/ta_common/Makefile @@ -0,0 +1,83 @@ +############################################################################# +# Makefile for building ta_common_cmr +# Generated by tmake; +# Project: ta_common/ta_common +# Template: lib +############################################################################# + +####### Compiler, tools and options + +CC = wcl386 +CXX = wcl386 +CFLAGS = -zq -w2 -ox -d=WIN32 +CXXFLAGS= -zq -w2 -ox -d=WIN32 +INCPATH = -i="..\..\..\..\..\src\ta_common" -i="..\..\..\..\..\include" +LIB = wlib -b -c -n -q -p=512 +MOC = moc + +ZIP = zip -r -9 + +####### Files + +HEADERS = +SOURCES = ..\..\..\..\..\src\ta_common\ta_global.c & + ..\..\..\..\..\src\ta_common\ta_retcode.c & + ..\..\..\..\..\src\ta_common\ta_version.c +OBJECTS = ..\..\..\..\..\temp\cmr\ta_global.obj & + ..\..\..\..\..\temp\cmr\ta_retcode.obj & + ..\..\..\..\..\temp\cmr\ta_version.obj +SRCMOC = +OBJMOC = +DIST = +TARGET = ..\..\..\..\..\lib\ta_common_cmr.lib +TMPLIST = ta_common_cmr.lst + +####### Build rules + +all: $(TARGET) + +$(TARGET): $(OBJECTS) $(OBJMOC) + @%create $(TMPLIST) + @for %i in ( $(OBJECTS) $(OBJMOC) ) do @%append $(TMPLIST) +'%i' + $(LIB) $(TARGET) @$(TMPLIST) + del $(TMPLIST) + +moc: $(SRCMOC) + +tmake: ../cmr/win32/watcom/ta_common/Makefile + +../cmr/win32/watcom/ta_common/Makefile: ta_common/ta_common.pro + tmake ta_common/ta_common.pro -o ../cmr/win32/watcom/ta_common/Makefile + +dist: + $(ZIP) ta_common/ta_common.zip ta_common/ta_common.pro $(SOURCES) $(HEADERS) $(DIST) + +clean: + -del ..\..\..\..\..\temp\cmr\ta_global.obj + -del ..\..\..\..\..\temp\cmr\ta_retcode.obj + -del ..\..\..\..\..\temp\cmr\ta_version.obj + -del $(TARGET) + -del ../../../../../bin/*.map + -del ../../../../../bin/*._xe + -del ../../../../../bin/*.tds + -del ../../../../../bin/*.pdb + -del ../../../../../bin/*.pbo + -del ../../../../../bin/*.pbi + -del ../../../../../bin/*.pbt + -del ../../../../../temp/cmr/*.pch + -del ../../../../../temp/cmr/*.idb + -del ../../../../../temp/cmr/ta_common_cmr/*.pch + -del ../../../../../temp/cmr/ta_common_cmr/*.idb + -del ../../../../../temp/cmr/ta_common_cmr/*.obj + +####### Compile + +..\..\..\..\..\temp\cmr\ta_global.obj: ..\..\..\..\..\src\ta_common\ta_global.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_global.obj ..\..\..\..\..\src\ta_common\ta_global.c + +..\..\..\..\..\temp\cmr\ta_retcode.obj: ..\..\..\..\..\src\ta_common\ta_retcode.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_retcode.obj ..\..\..\..\..\src\ta_common\ta_retcode.c + +..\..\..\..\..\temp\cmr\ta_version.obj: ..\..\..\..\..\src\ta_common\ta_version.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_version.obj ..\..\..\..\..\src\ta_common\ta_version.c + diff --git a/make/cmr/win32/watcom/ta_func/Makefile b/make/cmr/win32/watcom/ta_func/Makefile new file mode 100644 index 000000000..b364f9887 --- /dev/null +++ b/make/cmr/win32/watcom/ta_func/Makefile @@ -0,0 +1,1019 @@ +############################################################################# +# Makefile for building ta_func_cmr +# Generated by tmake; +# Project: ta_func/ta_func +# Template: lib +############################################################################# + +####### Compiler, tools and options + +CC = wcl386 +CXX = wcl386 +CFLAGS = -zq -w2 -ox -d=WIN32 +CXXFLAGS= -zq -w2 -ox -d=WIN32 +INCPATH = -i="..\..\..\..\..\src\ta_common" -i="\n" -i="..\..\..\..\..\include" +LIB = wlib -b -c -n -q -p=512 +MOC = moc + +ZIP = zip -r -9 + +####### Files + +HEADERS = +SOURCES = ..\..\..\..\..\src\ta_func\ta_utility.c & + ..\..\..\..\..\src\ta_func\ta_ACOS.c & + ..\..\..\..\..\src\ta_func\ta_AD.c & + ..\..\..\..\..\src\ta_func\ta_ADD.c & + ..\..\..\..\..\src\ta_func\ta_ADOSC.c & + ..\..\..\..\..\src\ta_func\ta_ADX.c & + ..\..\..\..\..\src\ta_func\ta_ADXR.c & + ..\..\..\..\..\src\ta_func\ta_APO.c & + ..\..\..\..\..\src\ta_func\ta_AROON.c & + ..\..\..\..\..\src\ta_func\ta_AROONOSC.c & + ..\..\..\..\..\src\ta_func\ta_ASIN.c & + ..\..\..\..\..\src\ta_func\ta_ATAN.c & + ..\..\..\..\..\src\ta_func\ta_ATR.c & + ..\..\..\..\..\src\ta_func\ta_AVGPRICE.c & + ..\..\..\..\..\src\ta_func\ta_BBANDS.c & + ..\..\..\..\..\src\ta_func\ta_BETA.c & + ..\..\..\..\..\src\ta_func\ta_BOP.c & + ..\..\..\..\..\src\ta_func\ta_CCI.c & + ..\..\..\..\..\src\ta_func\ta_CDL2CROWS.c & + ..\..\..\..\..\src\ta_func\ta_CDL3BLACKCROWS.c & + ..\..\..\..\..\src\ta_func\ta_CDL3INSIDE.c & + ..\..\..\..\..\src\ta_func\ta_CDL3LINESTRIKE.c & + ..\..\..\..\..\src\ta_func\ta_CDL3OUTSIDE.c & + ..\..\..\..\..\src\ta_func\ta_CDL3STARSINSOUTH.c & + ..\..\..\..\..\src\ta_func\ta_CDL3WHITESOLDIERS.c & + ..\..\..\..\..\src\ta_func\ta_CDLABANDONEDBABY.c & + ..\..\..\..\..\src\ta_func\ta_CDLADVANCEBLOCK.c & + ..\..\..\..\..\src\ta_func\ta_CDLBELTHOLD.c & + ..\..\..\..\..\src\ta_func\ta_CDLBREAKAWAY.c & + ..\..\..\..\..\src\ta_func\ta_CDLCLOSINGMARUBOZU.c & + ..\..\..\..\..\src\ta_func\ta_CDLCONCEALBABYSWALL.c & + ..\..\..\..\..\src\ta_func\ta_CDLCOUNTERATTACK.c & + ..\..\..\..\..\src\ta_func\ta_CDLDARKCLOUDCOVER.c & + ..\..\..\..\..\src\ta_func\ta_CDLDOJI.c & + ..\..\..\..\..\src\ta_func\ta_CDLDOJISTAR.c & + ..\..\..\..\..\src\ta_func\ta_CDLDRAGONFLYDOJI.c & + ..\..\..\..\..\src\ta_func\ta_CDLENGULFING.c & + ..\..\..\..\..\src\ta_func\ta_CDLEVENINGDOJISTAR.c & + ..\..\..\..\..\src\ta_func\ta_CDLEVENINGSTAR.c & + ..\..\..\..\..\src\ta_func\ta_CDLGAPSIDESIDEWHITE.c & + ..\..\..\..\..\src\ta_func\ta_CDLGRAVESTONEDOJI.c & + ..\..\..\..\..\src\ta_func\ta_CDLHAMMER.c & + ..\..\..\..\..\src\ta_func\ta_CDLHANGINGMAN.c & + ..\..\..\..\..\src\ta_func\ta_CDLHARAMI.c & + ..\..\..\..\..\src\ta_func\ta_CDLHARAMICROSS.c & + ..\..\..\..\..\src\ta_func\ta_CDLHIGHWAVE.c & + ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKE.c & + ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKEMOD.c & + ..\..\..\..\..\src\ta_func\ta_CDLHOMINGPIGEON.c & + ..\..\..\..\..\src\ta_func\ta_CDLIDENTICAL3CROWS.c & + ..\..\..\..\..\src\ta_func\ta_CDLINNECK.c & + ..\..\..\..\..\src\ta_func\ta_CDLINVERTEDHAMMER.c & + ..\..\..\..\..\src\ta_func\ta_CDLKICKING.c & + ..\..\..\..\..\src\ta_func\ta_CDLKICKINGBYLENGTH.c & + ..\..\..\..\..\src\ta_func\ta_CDLLADDERBOTTOM.c & + ..\..\..\..\..\src\ta_func\ta_CDLLONGLEGGEDDOJI.c & + ..\..\..\..\..\src\ta_func\ta_CDLLONGLINE.c & + ..\..\..\..\..\src\ta_func\ta_CDLMARUBOZU.c & + ..\..\..\..\..\src\ta_func\ta_CDLMATCHINGLOW.c & + ..\..\..\..\..\src\ta_func\ta_CDLMATHOLD.c & + ..\..\..\..\..\src\ta_func\ta_CDLMORNINGDOJISTAR.c & + ..\..\..\..\..\src\ta_func\ta_CDLMORNINGSTAR.c & + ..\..\..\..\..\src\ta_func\ta_CDLONNECK.c & + ..\..\..\..\..\src\ta_func\ta_CDLPIERCING.c & + ..\..\..\..\..\src\ta_func\ta_CDLRICKSHAWMAN.c & + ..\..\..\..\..\src\ta_func\ta_CDLRISEFALL3METHODS.c & + ..\..\..\..\..\src\ta_func\ta_CDLSEPARATINGLINES.c & + ..\..\..\..\..\src\ta_func\ta_CDLSHOOTINGSTAR.c & + ..\..\..\..\..\src\ta_func\ta_CDLSHORTLINE.c & + ..\..\..\..\..\src\ta_func\ta_CDLSPINNINGTOP.c & + ..\..\..\..\..\src\ta_func\ta_CDLSTALLEDPATTERN.c & + ..\..\..\..\..\src\ta_func\ta_CDLSTICKSANDWICH.c & + ..\..\..\..\..\src\ta_func\ta_CDLTAKURI.c & + ..\..\..\..\..\src\ta_func\ta_CDLTASUKIGAP.c & + ..\..\..\..\..\src\ta_func\ta_CDLTHRUSTING.c & + ..\..\..\..\..\src\ta_func\ta_CDLTRISTAR.c & + ..\..\..\..\..\src\ta_func\ta_CDLUNIQUE3RIVER.c & + ..\..\..\..\..\src\ta_func\ta_CDLUPSIDEGAP2CROWS.c & + ..\..\..\..\..\src\ta_func\ta_CDLXSIDEGAP3METHODS.c & + ..\..\..\..\..\src\ta_func\ta_CEIL.c & + ..\..\..\..\..\src\ta_func\ta_CMO.c & + ..\..\..\..\..\src\ta_func\ta_CORREL.c & + ..\..\..\..\..\src\ta_func\ta_COS.c & + ..\..\..\..\..\src\ta_func\ta_COSH.c & + ..\..\..\..\..\src\ta_func\ta_DEMA.c & + ..\..\..\..\..\src\ta_func\ta_DIV.c & + ..\..\..\..\..\src\ta_func\ta_DX.c & + ..\..\..\..\..\src\ta_func\ta_EMA.c & + ..\..\..\..\..\src\ta_func\ta_EXP.c & + ..\..\..\..\..\src\ta_func\ta_FLOOR.c & + ..\..\..\..\..\src\ta_func\ta_HT_DCPERIOD.c & + ..\..\..\..\..\src\ta_func\ta_HT_DCPHASE.c & + ..\..\..\..\..\src\ta_func\ta_HT_PHASOR.c & + ..\..\..\..\..\src\ta_func\ta_HT_SINE.c & + ..\..\..\..\..\src\ta_func\ta_HT_TRENDLINE.c & + ..\..\..\..\..\src\ta_func\ta_HT_TRENDMODE.c & + ..\..\..\..\..\src\ta_func\ta_KAMA.c & + ..\..\..\..\..\src\ta_func\ta_LINEARREG.c & + ..\..\..\..\..\src\ta_func\ta_LINEARREG_ANGLE.c & + ..\..\..\..\..\src\ta_func\ta_LINEARREG_INTERCEPT.c & + ..\..\..\..\..\src\ta_func\ta_LINEARREG_SLOPE.c & + ..\..\..\..\..\src\ta_func\ta_LN.c & + ..\..\..\..\..\src\ta_func\ta_LOG10.c & + ..\..\..\..\..\src\ta_func\ta_MA.c & + ..\..\..\..\..\src\ta_func\ta_MACD.c & + ..\..\..\..\..\src\ta_func\ta_MACDEXT.c & + ..\..\..\..\..\src\ta_func\ta_MACDFIX.c & + ..\..\..\..\..\src\ta_func\ta_MAMA.c & + ..\..\..\..\..\src\ta_func\ta_MAVP.c & + ..\..\..\..\..\src\ta_func\ta_MAX.c & + ..\..\..\..\..\src\ta_func\ta_MAXINDEX.c & + ..\..\..\..\..\src\ta_func\ta_MEDPRICE.c & + ..\..\..\..\..\src\ta_func\ta_MFI.c & + ..\..\..\..\..\src\ta_func\ta_MIDPOINT.c & + ..\..\..\..\..\src\ta_func\ta_MIDPRICE.c & + ..\..\..\..\..\src\ta_func\ta_MIN.c & + ..\..\..\..\..\src\ta_func\ta_MININDEX.c & + ..\..\..\..\..\src\ta_func\ta_MINMAX.c & + ..\..\..\..\..\src\ta_func\ta_MINMAXINDEX.c & + ..\..\..\..\..\src\ta_func\ta_MINUS_DI.c & + ..\..\..\..\..\src\ta_func\ta_MINUS_DM.c & + ..\..\..\..\..\src\ta_func\ta_MOM.c & + ..\..\..\..\..\src\ta_func\ta_MULT.c & + ..\..\..\..\..\src\ta_func\ta_NATR.c & + ..\..\..\..\..\src\ta_func\ta_OBV.c & + ..\..\..\..\..\src\ta_func\ta_PLUS_DI.c & + ..\..\..\..\..\src\ta_func\ta_PLUS_DM.c & + ..\..\..\..\..\src\ta_func\ta_PPO.c & + ..\..\..\..\..\src\ta_func\ta_ROC.c & + ..\..\..\..\..\src\ta_func\ta_ROCP.c & + ..\..\..\..\..\src\ta_func\ta_ROCR.c & + ..\..\..\..\..\src\ta_func\ta_ROCR100.c & + ..\..\..\..\..\src\ta_func\ta_RSI.c & + ..\..\..\..\..\src\ta_func\ta_SAR.c & + ..\..\..\..\..\src\ta_func\ta_SAREXT.c & + ..\..\..\..\..\src\ta_func\ta_SIN.c & + ..\..\..\..\..\src\ta_func\ta_SINH.c & + ..\..\..\..\..\src\ta_func\ta_SMA.c & + ..\..\..\..\..\src\ta_func\ta_SQRT.c & + ..\..\..\..\..\src\ta_func\ta_STDDEV.c & + ..\..\..\..\..\src\ta_func\ta_STOCH.c & + ..\..\..\..\..\src\ta_func\ta_STOCHF.c & + ..\..\..\..\..\src\ta_func\ta_STOCHRSI.c & + ..\..\..\..\..\src\ta_func\ta_SUB.c & + ..\..\..\..\..\src\ta_func\ta_SUM.c & + ..\..\..\..\..\src\ta_func\ta_T3.c & + ..\..\..\..\..\src\ta_func\ta_TAN.c & + ..\..\..\..\..\src\ta_func\ta_TANH.c & + ..\..\..\..\..\src\ta_func\ta_TEMA.c & + ..\..\..\..\..\src\ta_func\ta_TRANGE.c & + ..\..\..\..\..\src\ta_func\ta_TRIMA.c & + ..\..\..\..\..\src\ta_func\ta_TRIX.c & + ..\..\..\..\..\src\ta_func\ta_TSF.c & + ..\..\..\..\..\src\ta_func\ta_TYPPRICE.c & + ..\..\..\..\..\src\ta_func\ta_ULTOSC.c & + ..\..\..\..\..\src\ta_func\ta_VAR.c & + ..\..\..\..\..\src\ta_func\ta_WCLPRICE.c & + ..\..\..\..\..\src\ta_func\ta_WILLR.c & + ..\..\..\..\..\src\ta_func\ta_WMA.c +OBJECTS = ..\..\..\..\..\temp\cmr\ta_utility.obj & + ..\..\..\..\..\temp\cmr\ta_ACOS.obj & + ..\..\..\..\..\temp\cmr\ta_AD.obj & + ..\..\..\..\..\temp\cmr\ta_ADD.obj & + ..\..\..\..\..\temp\cmr\ta_ADOSC.obj & + ..\..\..\..\..\temp\cmr\ta_ADX.obj & + ..\..\..\..\..\temp\cmr\ta_ADXR.obj & + ..\..\..\..\..\temp\cmr\ta_APO.obj & + ..\..\..\..\..\temp\cmr\ta_AROON.obj & + ..\..\..\..\..\temp\cmr\ta_AROONOSC.obj & + ..\..\..\..\..\temp\cmr\ta_ASIN.obj & + ..\..\..\..\..\temp\cmr\ta_ATAN.obj & + ..\..\..\..\..\temp\cmr\ta_ATR.obj & + ..\..\..\..\..\temp\cmr\ta_AVGPRICE.obj & + ..\..\..\..\..\temp\cmr\ta_BBANDS.obj & + ..\..\..\..\..\temp\cmr\ta_BETA.obj & + ..\..\..\..\..\temp\cmr\ta_BOP.obj & + ..\..\..\..\..\temp\cmr\ta_CCI.obj & + ..\..\..\..\..\temp\cmr\ta_CDL2CROWS.obj & + ..\..\..\..\..\temp\cmr\ta_CDL3BLACKCROWS.obj & + ..\..\..\..\..\temp\cmr\ta_CDL3INSIDE.obj & + ..\..\..\..\..\temp\cmr\ta_CDL3LINESTRIKE.obj & + ..\..\..\..\..\temp\cmr\ta_CDL3OUTSIDE.obj & + ..\..\..\..\..\temp\cmr\ta_CDL3STARSINSOUTH.obj & + ..\..\..\..\..\temp\cmr\ta_CDL3WHITESOLDIERS.obj & + ..\..\..\..\..\temp\cmr\ta_CDLABANDONEDBABY.obj & + ..\..\..\..\..\temp\cmr\ta_CDLADVANCEBLOCK.obj & + ..\..\..\..\..\temp\cmr\ta_CDLBELTHOLD.obj & + ..\..\..\..\..\temp\cmr\ta_CDLBREAKAWAY.obj & + ..\..\..\..\..\temp\cmr\ta_CDLCLOSINGMARUBOZU.obj & + ..\..\..\..\..\temp\cmr\ta_CDLCONCEALBABYSWALL.obj & + ..\..\..\..\..\temp\cmr\ta_CDLCOUNTERATTACK.obj & + ..\..\..\..\..\temp\cmr\ta_CDLDARKCLOUDCOVER.obj & + ..\..\..\..\..\temp\cmr\ta_CDLDOJI.obj & + ..\..\..\..\..\temp\cmr\ta_CDLDOJISTAR.obj & + ..\..\..\..\..\temp\cmr\ta_CDLDRAGONFLYDOJI.obj & + ..\..\..\..\..\temp\cmr\ta_CDLENGULFING.obj & + ..\..\..\..\..\temp\cmr\ta_CDLEVENINGDOJISTAR.obj & + ..\..\..\..\..\temp\cmr\ta_CDLEVENINGSTAR.obj & + ..\..\..\..\..\temp\cmr\ta_CDLGAPSIDESIDEWHITE.obj & + ..\..\..\..\..\temp\cmr\ta_CDLGRAVESTONEDOJI.obj & + ..\..\..\..\..\temp\cmr\ta_CDLHAMMER.obj & + ..\..\..\..\..\temp\cmr\ta_CDLHANGINGMAN.obj & + ..\..\..\..\..\temp\cmr\ta_CDLHARAMI.obj & + ..\..\..\..\..\temp\cmr\ta_CDLHARAMICROSS.obj & + ..\..\..\..\..\temp\cmr\ta_CDLHIGHWAVE.obj & + ..\..\..\..\..\temp\cmr\ta_CDLHIKKAKE.obj & + ..\..\..\..\..\temp\cmr\ta_CDLHIKKAKEMOD.obj & + ..\..\..\..\..\temp\cmr\ta_CDLHOMINGPIGEON.obj & + ..\..\..\..\..\temp\cmr\ta_CDLIDENTICAL3CROWS.obj & + ..\..\..\..\..\temp\cmr\ta_CDLINNECK.obj & + ..\..\..\..\..\temp\cmr\ta_CDLINVERTEDHAMMER.obj & + ..\..\..\..\..\temp\cmr\ta_CDLKICKING.obj & + ..\..\..\..\..\temp\cmr\ta_CDLKICKINGBYLENGTH.obj & + ..\..\..\..\..\temp\cmr\ta_CDLLADDERBOTTOM.obj & + ..\..\..\..\..\temp\cmr\ta_CDLLONGLEGGEDDOJI.obj & + ..\..\..\..\..\temp\cmr\ta_CDLLONGLINE.obj & + ..\..\..\..\..\temp\cmr\ta_CDLMARUBOZU.obj & + ..\..\..\..\..\temp\cmr\ta_CDLMATCHINGLOW.obj & + ..\..\..\..\..\temp\cmr\ta_CDLMATHOLD.obj & + ..\..\..\..\..\temp\cmr\ta_CDLMORNINGDOJISTAR.obj & + ..\..\..\..\..\temp\cmr\ta_CDLMORNINGSTAR.obj & + ..\..\..\..\..\temp\cmr\ta_CDLONNECK.obj & + ..\..\..\..\..\temp\cmr\ta_CDLPIERCING.obj & + ..\..\..\..\..\temp\cmr\ta_CDLRICKSHAWMAN.obj & + ..\..\..\..\..\temp\cmr\ta_CDLRISEFALL3METHODS.obj & + ..\..\..\..\..\temp\cmr\ta_CDLSEPARATINGLINES.obj & + ..\..\..\..\..\temp\cmr\ta_CDLSHOOTINGSTAR.obj & + ..\..\..\..\..\temp\cmr\ta_CDLSHORTLINE.obj & + ..\..\..\..\..\temp\cmr\ta_CDLSPINNINGTOP.obj & + ..\..\..\..\..\temp\cmr\ta_CDLSTALLEDPATTERN.obj & + ..\..\..\..\..\temp\cmr\ta_CDLSTICKSANDWICH.obj & + ..\..\..\..\..\temp\cmr\ta_CDLTAKURI.obj & + ..\..\..\..\..\temp\cmr\ta_CDLTASUKIGAP.obj & + ..\..\..\..\..\temp\cmr\ta_CDLTHRUSTING.obj & + ..\..\..\..\..\temp\cmr\ta_CDLTRISTAR.obj & + ..\..\..\..\..\temp\cmr\ta_CDLUNIQUE3RIVER.obj & + ..\..\..\..\..\temp\cmr\ta_CDLUPSIDEGAP2CROWS.obj & + ..\..\..\..\..\temp\cmr\ta_CDLXSIDEGAP3METHODS.obj & + ..\..\..\..\..\temp\cmr\ta_CEIL.obj & + ..\..\..\..\..\temp\cmr\ta_CMO.obj & + ..\..\..\..\..\temp\cmr\ta_CORREL.obj & + ..\..\..\..\..\temp\cmr\ta_COS.obj & + ..\..\..\..\..\temp\cmr\ta_COSH.obj & + ..\..\..\..\..\temp\cmr\ta_DEMA.obj & + ..\..\..\..\..\temp\cmr\ta_DIV.obj & + ..\..\..\..\..\temp\cmr\ta_DX.obj & + ..\..\..\..\..\temp\cmr\ta_EMA.obj & + ..\..\..\..\..\temp\cmr\ta_EXP.obj & + ..\..\..\..\..\temp\cmr\ta_FLOOR.obj & + ..\..\..\..\..\temp\cmr\ta_HT_DCPERIOD.obj & + ..\..\..\..\..\temp\cmr\ta_HT_DCPHASE.obj & + ..\..\..\..\..\temp\cmr\ta_HT_PHASOR.obj & + ..\..\..\..\..\temp\cmr\ta_HT_SINE.obj & + ..\..\..\..\..\temp\cmr\ta_HT_TRENDLINE.obj & + ..\..\..\..\..\temp\cmr\ta_HT_TRENDMODE.obj & + ..\..\..\..\..\temp\cmr\ta_KAMA.obj & + ..\..\..\..\..\temp\cmr\ta_LINEARREG.obj & + ..\..\..\..\..\temp\cmr\ta_LINEARREG_ANGLE.obj & + ..\..\..\..\..\temp\cmr\ta_LINEARREG_INTERCEPT.obj & + ..\..\..\..\..\temp\cmr\ta_LINEARREG_SLOPE.obj & + ..\..\..\..\..\temp\cmr\ta_LN.obj & + ..\..\..\..\..\temp\cmr\ta_LOG10.obj & + ..\..\..\..\..\temp\cmr\ta_MA.obj & + ..\..\..\..\..\temp\cmr\ta_MACD.obj & + ..\..\..\..\..\temp\cmr\ta_MACDEXT.obj & + ..\..\..\..\..\temp\cmr\ta_MACDFIX.obj & + ..\..\..\..\..\temp\cmr\ta_MAMA.obj & + ..\..\..\..\..\temp\cmr\ta_MAVP.obj & + ..\..\..\..\..\temp\cmr\ta_MAX.obj & + ..\..\..\..\..\temp\cmr\ta_MAXINDEX.obj & + ..\..\..\..\..\temp\cmr\ta_MEDPRICE.obj & + ..\..\..\..\..\temp\cmr\ta_MFI.obj & + ..\..\..\..\..\temp\cmr\ta_MIDPOINT.obj & + ..\..\..\..\..\temp\cmr\ta_MIDPRICE.obj & + ..\..\..\..\..\temp\cmr\ta_MIN.obj & + ..\..\..\..\..\temp\cmr\ta_MININDEX.obj & + ..\..\..\..\..\temp\cmr\ta_MINMAX.obj & + ..\..\..\..\..\temp\cmr\ta_MINMAXINDEX.obj & + ..\..\..\..\..\temp\cmr\ta_MINUS_DI.obj & + ..\..\..\..\..\temp\cmr\ta_MINUS_DM.obj & + ..\..\..\..\..\temp\cmr\ta_MOM.obj & + ..\..\..\..\..\temp\cmr\ta_MULT.obj & + ..\..\..\..\..\temp\cmr\ta_NATR.obj & + ..\..\..\..\..\temp\cmr\ta_OBV.obj & + ..\..\..\..\..\temp\cmr\ta_PLUS_DI.obj & + ..\..\..\..\..\temp\cmr\ta_PLUS_DM.obj & + ..\..\..\..\..\temp\cmr\ta_PPO.obj & + ..\..\..\..\..\temp\cmr\ta_ROC.obj & + ..\..\..\..\..\temp\cmr\ta_ROCP.obj & + ..\..\..\..\..\temp\cmr\ta_ROCR.obj & + ..\..\..\..\..\temp\cmr\ta_ROCR100.obj & + ..\..\..\..\..\temp\cmr\ta_RSI.obj & + ..\..\..\..\..\temp\cmr\ta_SAR.obj & + ..\..\..\..\..\temp\cmr\ta_SAREXT.obj & + ..\..\..\..\..\temp\cmr\ta_SIN.obj & + ..\..\..\..\..\temp\cmr\ta_SINH.obj & + ..\..\..\..\..\temp\cmr\ta_SMA.obj & + ..\..\..\..\..\temp\cmr\ta_SQRT.obj & + ..\..\..\..\..\temp\cmr\ta_STDDEV.obj & + ..\..\..\..\..\temp\cmr\ta_STOCH.obj & + ..\..\..\..\..\temp\cmr\ta_STOCHF.obj & + ..\..\..\..\..\temp\cmr\ta_STOCHRSI.obj & + ..\..\..\..\..\temp\cmr\ta_SUB.obj & + ..\..\..\..\..\temp\cmr\ta_SUM.obj & + ..\..\..\..\..\temp\cmr\ta_T3.obj & + ..\..\..\..\..\temp\cmr\ta_TAN.obj & + ..\..\..\..\..\temp\cmr\ta_TANH.obj & + ..\..\..\..\..\temp\cmr\ta_TEMA.obj & + ..\..\..\..\..\temp\cmr\ta_TRANGE.obj & + ..\..\..\..\..\temp\cmr\ta_TRIMA.obj & + ..\..\..\..\..\temp\cmr\ta_TRIX.obj & + ..\..\..\..\..\temp\cmr\ta_TSF.obj & + ..\..\..\..\..\temp\cmr\ta_TYPPRICE.obj & + ..\..\..\..\..\temp\cmr\ta_ULTOSC.obj & + ..\..\..\..\..\temp\cmr\ta_VAR.obj & + ..\..\..\..\..\temp\cmr\ta_WCLPRICE.obj & + ..\..\..\..\..\temp\cmr\ta_WILLR.obj & + ..\..\..\..\..\temp\cmr\ta_WMA.obj +SRCMOC = +OBJMOC = +DIST = +TARGET = ..\..\..\..\..\lib\ta_func_cmr.lib +TMPLIST = ta_func_cmr.lst + +####### Build rules + +all: $(TARGET) + +$(TARGET): $(OBJECTS) $(OBJMOC) + @%create $(TMPLIST) + @for %i in ( $(OBJECTS) $(OBJMOC) ) do @%append $(TMPLIST) +'%i' + $(LIB) $(TARGET) @$(TMPLIST) + del $(TMPLIST) + +moc: $(SRCMOC) + +tmake: ../cmr/win32/watcom/ta_func/Makefile + +../cmr/win32/watcom/ta_func/Makefile: ta_func/ta_func.pro + tmake ta_func/ta_func.pro -o ../cmr/win32/watcom/ta_func/Makefile + +dist: + $(ZIP) ta_func/ta_func.zip ta_func/ta_func.pro $(SOURCES) $(HEADERS) $(DIST) + +clean: + -del ..\..\..\..\..\temp\cmr\ta_utility.obj + -del ..\..\..\..\..\temp\cmr\ta_ACOS.obj + -del ..\..\..\..\..\temp\cmr\ta_AD.obj + -del ..\..\..\..\..\temp\cmr\ta_ADD.obj + -del ..\..\..\..\..\temp\cmr\ta_ADOSC.obj + -del ..\..\..\..\..\temp\cmr\ta_ADX.obj + -del ..\..\..\..\..\temp\cmr\ta_ADXR.obj + -del ..\..\..\..\..\temp\cmr\ta_APO.obj + -del ..\..\..\..\..\temp\cmr\ta_AROON.obj + -del ..\..\..\..\..\temp\cmr\ta_AROONOSC.obj + -del ..\..\..\..\..\temp\cmr\ta_ASIN.obj + -del ..\..\..\..\..\temp\cmr\ta_ATAN.obj + -del ..\..\..\..\..\temp\cmr\ta_ATR.obj + -del ..\..\..\..\..\temp\cmr\ta_AVGPRICE.obj + -del ..\..\..\..\..\temp\cmr\ta_BBANDS.obj + -del ..\..\..\..\..\temp\cmr\ta_BETA.obj + -del ..\..\..\..\..\temp\cmr\ta_BOP.obj + -del ..\..\..\..\..\temp\cmr\ta_CCI.obj + -del ..\..\..\..\..\temp\cmr\ta_CDL2CROWS.obj + -del ..\..\..\..\..\temp\cmr\ta_CDL3BLACKCROWS.obj + -del ..\..\..\..\..\temp\cmr\ta_CDL3INSIDE.obj + -del ..\..\..\..\..\temp\cmr\ta_CDL3LINESTRIKE.obj + -del ..\..\..\..\..\temp\cmr\ta_CDL3OUTSIDE.obj + -del ..\..\..\..\..\temp\cmr\ta_CDL3STARSINSOUTH.obj + -del ..\..\..\..\..\temp\cmr\ta_CDL3WHITESOLDIERS.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLABANDONEDBABY.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLADVANCEBLOCK.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLBELTHOLD.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLBREAKAWAY.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLCLOSINGMARUBOZU.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLCONCEALBABYSWALL.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLCOUNTERATTACK.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLDARKCLOUDCOVER.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLDOJI.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLDOJISTAR.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLDRAGONFLYDOJI.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLENGULFING.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLEVENINGDOJISTAR.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLEVENINGSTAR.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLGAPSIDESIDEWHITE.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLGRAVESTONEDOJI.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLHAMMER.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLHANGINGMAN.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLHARAMI.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLHARAMICROSS.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLHIGHWAVE.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLHIKKAKE.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLHIKKAKEMOD.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLHOMINGPIGEON.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLIDENTICAL3CROWS.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLINNECK.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLINVERTEDHAMMER.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLKICKING.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLKICKINGBYLENGTH.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLLADDERBOTTOM.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLLONGLEGGEDDOJI.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLLONGLINE.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLMARUBOZU.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLMATCHINGLOW.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLMATHOLD.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLMORNINGDOJISTAR.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLMORNINGSTAR.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLONNECK.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLPIERCING.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLRICKSHAWMAN.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLRISEFALL3METHODS.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLSEPARATINGLINES.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLSHOOTINGSTAR.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLSHORTLINE.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLSPINNINGTOP.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLSTALLEDPATTERN.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLSTICKSANDWICH.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLTAKURI.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLTASUKIGAP.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLTHRUSTING.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLTRISTAR.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLUNIQUE3RIVER.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLUPSIDEGAP2CROWS.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLXSIDEGAP3METHODS.obj + -del ..\..\..\..\..\temp\cmr\ta_CEIL.obj + -del ..\..\..\..\..\temp\cmr\ta_CMO.obj + -del ..\..\..\..\..\temp\cmr\ta_CORREL.obj + -del ..\..\..\..\..\temp\cmr\ta_COS.obj + -del ..\..\..\..\..\temp\cmr\ta_COSH.obj + -del ..\..\..\..\..\temp\cmr\ta_DEMA.obj + -del ..\..\..\..\..\temp\cmr\ta_DIV.obj + -del ..\..\..\..\..\temp\cmr\ta_DX.obj + -del ..\..\..\..\..\temp\cmr\ta_EMA.obj + -del ..\..\..\..\..\temp\cmr\ta_EXP.obj + -del ..\..\..\..\..\temp\cmr\ta_FLOOR.obj + -del ..\..\..\..\..\temp\cmr\ta_HT_DCPERIOD.obj + -del ..\..\..\..\..\temp\cmr\ta_HT_DCPHASE.obj + -del ..\..\..\..\..\temp\cmr\ta_HT_PHASOR.obj + -del ..\..\..\..\..\temp\cmr\ta_HT_SINE.obj + -del ..\..\..\..\..\temp\cmr\ta_HT_TRENDLINE.obj + -del ..\..\..\..\..\temp\cmr\ta_HT_TRENDMODE.obj + -del ..\..\..\..\..\temp\cmr\ta_KAMA.obj + -del ..\..\..\..\..\temp\cmr\ta_LINEARREG.obj + -del ..\..\..\..\..\temp\cmr\ta_LINEARREG_ANGLE.obj + -del ..\..\..\..\..\temp\cmr\ta_LINEARREG_INTERCEPT.obj + -del ..\..\..\..\..\temp\cmr\ta_LINEARREG_SLOPE.obj + -del ..\..\..\..\..\temp\cmr\ta_LN.obj + -del ..\..\..\..\..\temp\cmr\ta_LOG10.obj + -del ..\..\..\..\..\temp\cmr\ta_MA.obj + -del ..\..\..\..\..\temp\cmr\ta_MACD.obj + -del ..\..\..\..\..\temp\cmr\ta_MACDEXT.obj + -del ..\..\..\..\..\temp\cmr\ta_MACDFIX.obj + -del ..\..\..\..\..\temp\cmr\ta_MAMA.obj + -del ..\..\..\..\..\temp\cmr\ta_MAVP.obj + -del ..\..\..\..\..\temp\cmr\ta_MAX.obj + -del ..\..\..\..\..\temp\cmr\ta_MAXINDEX.obj + -del ..\..\..\..\..\temp\cmr\ta_MEDPRICE.obj + -del ..\..\..\..\..\temp\cmr\ta_MFI.obj + -del ..\..\..\..\..\temp\cmr\ta_MIDPOINT.obj + -del ..\..\..\..\..\temp\cmr\ta_MIDPRICE.obj + -del ..\..\..\..\..\temp\cmr\ta_MIN.obj + -del ..\..\..\..\..\temp\cmr\ta_MININDEX.obj + -del ..\..\..\..\..\temp\cmr\ta_MINMAX.obj + -del ..\..\..\..\..\temp\cmr\ta_MINMAXINDEX.obj + -del ..\..\..\..\..\temp\cmr\ta_MINUS_DI.obj + -del ..\..\..\..\..\temp\cmr\ta_MINUS_DM.obj + -del ..\..\..\..\..\temp\cmr\ta_MOM.obj + -del ..\..\..\..\..\temp\cmr\ta_MULT.obj + -del ..\..\..\..\..\temp\cmr\ta_NATR.obj + -del ..\..\..\..\..\temp\cmr\ta_OBV.obj + -del ..\..\..\..\..\temp\cmr\ta_PLUS_DI.obj + -del ..\..\..\..\..\temp\cmr\ta_PLUS_DM.obj + -del ..\..\..\..\..\temp\cmr\ta_PPO.obj + -del ..\..\..\..\..\temp\cmr\ta_ROC.obj + -del ..\..\..\..\..\temp\cmr\ta_ROCP.obj + -del ..\..\..\..\..\temp\cmr\ta_ROCR.obj + -del ..\..\..\..\..\temp\cmr\ta_ROCR100.obj + -del ..\..\..\..\..\temp\cmr\ta_RSI.obj + -del ..\..\..\..\..\temp\cmr\ta_SAR.obj + -del ..\..\..\..\..\temp\cmr\ta_SAREXT.obj + -del ..\..\..\..\..\temp\cmr\ta_SIN.obj + -del ..\..\..\..\..\temp\cmr\ta_SINH.obj + -del ..\..\..\..\..\temp\cmr\ta_SMA.obj + -del ..\..\..\..\..\temp\cmr\ta_SQRT.obj + -del ..\..\..\..\..\temp\cmr\ta_STDDEV.obj + -del ..\..\..\..\..\temp\cmr\ta_STOCH.obj + -del ..\..\..\..\..\temp\cmr\ta_STOCHF.obj + -del ..\..\..\..\..\temp\cmr\ta_STOCHRSI.obj + -del ..\..\..\..\..\temp\cmr\ta_SUB.obj + -del ..\..\..\..\..\temp\cmr\ta_SUM.obj + -del ..\..\..\..\..\temp\cmr\ta_T3.obj + -del ..\..\..\..\..\temp\cmr\ta_TAN.obj + -del ..\..\..\..\..\temp\cmr\ta_TANH.obj + -del ..\..\..\..\..\temp\cmr\ta_TEMA.obj + -del ..\..\..\..\..\temp\cmr\ta_TRANGE.obj + -del ..\..\..\..\..\temp\cmr\ta_TRIMA.obj + -del ..\..\..\..\..\temp\cmr\ta_TRIX.obj + -del ..\..\..\..\..\temp\cmr\ta_TSF.obj + -del ..\..\..\..\..\temp\cmr\ta_TYPPRICE.obj + -del ..\..\..\..\..\temp\cmr\ta_ULTOSC.obj + -del ..\..\..\..\..\temp\cmr\ta_VAR.obj + -del ..\..\..\..\..\temp\cmr\ta_WCLPRICE.obj + -del ..\..\..\..\..\temp\cmr\ta_WILLR.obj + -del ..\..\..\..\..\temp\cmr\ta_WMA.obj + -del $(TARGET) + -del ../../../../../bin/*.map + -del ../../../../../bin/*._xe + -del ../../../../../bin/*.tds + -del ../../../../../bin/*.pdb + -del ../../../../../bin/*.pbo + -del ../../../../../bin/*.pbi + -del ../../../../../bin/*.pbt + -del ../../../../../temp/cmr/*.pch + -del ../../../../../temp/cmr/*.idb + -del ../../../../../temp/cmr/ta_func/*.pch + -del ../../../../../temp/cmr/ta_func/*.idb + -del ../../../../../temp/cmr/ta_func/*.obj + +####### Compile + +..\..\..\..\..\temp\cmr\ta_utility.obj: ..\..\..\..\..\src\ta_func\ta_utility.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_utility.obj ..\..\..\..\..\src\ta_func\ta_utility.c + +..\..\..\..\..\temp\cmr\ta_ACOS.obj: ..\..\..\..\..\src\ta_func\ta_ACOS.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_ACOS.obj ..\..\..\..\..\src\ta_func\ta_ACOS.c + +..\..\..\..\..\temp\cmr\ta_AD.obj: ..\..\..\..\..\src\ta_func\ta_AD.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_AD.obj ..\..\..\..\..\src\ta_func\ta_AD.c + +..\..\..\..\..\temp\cmr\ta_ADD.obj: ..\..\..\..\..\src\ta_func\ta_ADD.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_ADD.obj ..\..\..\..\..\src\ta_func\ta_ADD.c + +..\..\..\..\..\temp\cmr\ta_ADOSC.obj: ..\..\..\..\..\src\ta_func\ta_ADOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_ADOSC.obj ..\..\..\..\..\src\ta_func\ta_ADOSC.c + +..\..\..\..\..\temp\cmr\ta_ADX.obj: ..\..\..\..\..\src\ta_func\ta_ADX.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_ADX.obj ..\..\..\..\..\src\ta_func\ta_ADX.c + +..\..\..\..\..\temp\cmr\ta_ADXR.obj: ..\..\..\..\..\src\ta_func\ta_ADXR.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_ADXR.obj ..\..\..\..\..\src\ta_func\ta_ADXR.c + +..\..\..\..\..\temp\cmr\ta_APO.obj: ..\..\..\..\..\src\ta_func\ta_APO.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_APO.obj ..\..\..\..\..\src\ta_func\ta_APO.c + +..\..\..\..\..\temp\cmr\ta_AROON.obj: ..\..\..\..\..\src\ta_func\ta_AROON.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_AROON.obj ..\..\..\..\..\src\ta_func\ta_AROON.c + +..\..\..\..\..\temp\cmr\ta_AROONOSC.obj: ..\..\..\..\..\src\ta_func\ta_AROONOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_AROONOSC.obj ..\..\..\..\..\src\ta_func\ta_AROONOSC.c + +..\..\..\..\..\temp\cmr\ta_ASIN.obj: ..\..\..\..\..\src\ta_func\ta_ASIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_ASIN.obj ..\..\..\..\..\src\ta_func\ta_ASIN.c + +..\..\..\..\..\temp\cmr\ta_ATAN.obj: ..\..\..\..\..\src\ta_func\ta_ATAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_ATAN.obj ..\..\..\..\..\src\ta_func\ta_ATAN.c + +..\..\..\..\..\temp\cmr\ta_ATR.obj: ..\..\..\..\..\src\ta_func\ta_ATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_ATR.obj ..\..\..\..\..\src\ta_func\ta_ATR.c + +..\..\..\..\..\temp\cmr\ta_AVGPRICE.obj: ..\..\..\..\..\src\ta_func\ta_AVGPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_AVGPRICE.obj ..\..\..\..\..\src\ta_func\ta_AVGPRICE.c + +..\..\..\..\..\temp\cmr\ta_BBANDS.obj: ..\..\..\..\..\src\ta_func\ta_BBANDS.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_BBANDS.obj ..\..\..\..\..\src\ta_func\ta_BBANDS.c + +..\..\..\..\..\temp\cmr\ta_BETA.obj: ..\..\..\..\..\src\ta_func\ta_BETA.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_BETA.obj ..\..\..\..\..\src\ta_func\ta_BETA.c + +..\..\..\..\..\temp\cmr\ta_BOP.obj: ..\..\..\..\..\src\ta_func\ta_BOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_BOP.obj ..\..\..\..\..\src\ta_func\ta_BOP.c + +..\..\..\..\..\temp\cmr\ta_CCI.obj: ..\..\..\..\..\src\ta_func\ta_CCI.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CCI.obj ..\..\..\..\..\src\ta_func\ta_CCI.c + +..\..\..\..\..\temp\cmr\ta_CDL2CROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDL2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CDL2CROWS.obj ..\..\..\..\..\src\ta_func\ta_CDL2CROWS.c + +..\..\..\..\..\temp\cmr\ta_CDL3BLACKCROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDL3BLACKCROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CDL3BLACKCROWS.obj ..\..\..\..\..\src\ta_func\ta_CDL3BLACKCROWS.c + +..\..\..\..\..\temp\cmr\ta_CDL3INSIDE.obj: ..\..\..\..\..\src\ta_func\ta_CDL3INSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CDL3INSIDE.obj ..\..\..\..\..\src\ta_func\ta_CDL3INSIDE.c + +..\..\..\..\..\temp\cmr\ta_CDL3LINESTRIKE.obj: ..\..\..\..\..\src\ta_func\ta_CDL3LINESTRIKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CDL3LINESTRIKE.obj ..\..\..\..\..\src\ta_func\ta_CDL3LINESTRIKE.c + +..\..\..\..\..\temp\cmr\ta_CDL3OUTSIDE.obj: ..\..\..\..\..\src\ta_func\ta_CDL3OUTSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CDL3OUTSIDE.obj ..\..\..\..\..\src\ta_func\ta_CDL3OUTSIDE.c + +..\..\..\..\..\temp\cmr\ta_CDL3STARSINSOUTH.obj: ..\..\..\..\..\src\ta_func\ta_CDL3STARSINSOUTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CDL3STARSINSOUTH.obj ..\..\..\..\..\src\ta_func\ta_CDL3STARSINSOUTH.c + +..\..\..\..\..\temp\cmr\ta_CDL3WHITESOLDIERS.obj: ..\..\..\..\..\src\ta_func\ta_CDL3WHITESOLDIERS.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CDL3WHITESOLDIERS.obj ..\..\..\..\..\src\ta_func\ta_CDL3WHITESOLDIERS.c + +..\..\..\..\..\temp\cmr\ta_CDLABANDONEDBABY.obj: ..\..\..\..\..\src\ta_func\ta_CDLABANDONEDBABY.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CDLABANDONEDBABY.obj ..\..\..\..\..\src\ta_func\ta_CDLABANDONEDBABY.c + +..\..\..\..\..\temp\cmr\ta_CDLADVANCEBLOCK.obj: ..\..\..\..\..\src\ta_func\ta_CDLADVANCEBLOCK.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CDLADVANCEBLOCK.obj ..\..\..\..\..\src\ta_func\ta_CDLADVANCEBLOCK.c + +..\..\..\..\..\temp\cmr\ta_CDLBELTHOLD.obj: ..\..\..\..\..\src\ta_func\ta_CDLBELTHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CDLBELTHOLD.obj ..\..\..\..\..\src\ta_func\ta_CDLBELTHOLD.c + +..\..\..\..\..\temp\cmr\ta_CDLBREAKAWAY.obj: ..\..\..\..\..\src\ta_func\ta_CDLBREAKAWAY.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CDLBREAKAWAY.obj ..\..\..\..\..\src\ta_func\ta_CDLBREAKAWAY.c + +..\..\..\..\..\temp\cmr\ta_CDLCLOSINGMARUBOZU.obj: ..\..\..\..\..\src\ta_func\ta_CDLCLOSINGMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CDLCLOSINGMARUBOZU.obj ..\..\..\..\..\src\ta_func\ta_CDLCLOSINGMARUBOZU.c + +..\..\..\..\..\temp\cmr\ta_CDLCONCEALBABYSWALL.obj: ..\..\..\..\..\src\ta_func\ta_CDLCONCEALBABYSWALL.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CDLCONCEALBABYSWALL.obj ..\..\..\..\..\src\ta_func\ta_CDLCONCEALBABYSWALL.c + +..\..\..\..\..\temp\cmr\ta_CDLCOUNTERATTACK.obj: ..\..\..\..\..\src\ta_func\ta_CDLCOUNTERATTACK.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CDLCOUNTERATTACK.obj ..\..\..\..\..\src\ta_func\ta_CDLCOUNTERATTACK.c + +..\..\..\..\..\temp\cmr\ta_CDLDARKCLOUDCOVER.obj: ..\..\..\..\..\src\ta_func\ta_CDLDARKCLOUDCOVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CDLDARKCLOUDCOVER.obj ..\..\..\..\..\src\ta_func\ta_CDLDARKCLOUDCOVER.c + +..\..\..\..\..\temp\cmr\ta_CDLDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CDLDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLDOJI.c + +..\..\..\..\..\temp\cmr\ta_CDLDOJISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CDLDOJISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLDOJISTAR.c + +..\..\..\..\..\temp\cmr\ta_CDLDRAGONFLYDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLDRAGONFLYDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CDLDRAGONFLYDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLDRAGONFLYDOJI.c + +..\..\..\..\..\temp\cmr\ta_CDLENGULFING.obj: ..\..\..\..\..\src\ta_func\ta_CDLENGULFING.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CDLENGULFING.obj ..\..\..\..\..\src\ta_func\ta_CDLENGULFING.c + +..\..\..\..\..\temp\cmr\ta_CDLEVENINGDOJISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLEVENINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CDLEVENINGDOJISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLEVENINGDOJISTAR.c + +..\..\..\..\..\temp\cmr\ta_CDLEVENINGSTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLEVENINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CDLEVENINGSTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLEVENINGSTAR.c + +..\..\..\..\..\temp\cmr\ta_CDLGAPSIDESIDEWHITE.obj: ..\..\..\..\..\src\ta_func\ta_CDLGAPSIDESIDEWHITE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CDLGAPSIDESIDEWHITE.obj ..\..\..\..\..\src\ta_func\ta_CDLGAPSIDESIDEWHITE.c + +..\..\..\..\..\temp\cmr\ta_CDLGRAVESTONEDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLGRAVESTONEDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CDLGRAVESTONEDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLGRAVESTONEDOJI.c + +..\..\..\..\..\temp\cmr\ta_CDLHAMMER.obj: ..\..\..\..\..\src\ta_func\ta_CDLHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CDLHAMMER.obj ..\..\..\..\..\src\ta_func\ta_CDLHAMMER.c + +..\..\..\..\..\temp\cmr\ta_CDLHANGINGMAN.obj: ..\..\..\..\..\src\ta_func\ta_CDLHANGINGMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CDLHANGINGMAN.obj ..\..\..\..\..\src\ta_func\ta_CDLHANGINGMAN.c + +..\..\..\..\..\temp\cmr\ta_CDLHARAMI.obj: ..\..\..\..\..\src\ta_func\ta_CDLHARAMI.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CDLHARAMI.obj ..\..\..\..\..\src\ta_func\ta_CDLHARAMI.c + +..\..\..\..\..\temp\cmr\ta_CDLHARAMICROSS.obj: ..\..\..\..\..\src\ta_func\ta_CDLHARAMICROSS.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CDLHARAMICROSS.obj ..\..\..\..\..\src\ta_func\ta_CDLHARAMICROSS.c + +..\..\..\..\..\temp\cmr\ta_CDLHIGHWAVE.obj: ..\..\..\..\..\src\ta_func\ta_CDLHIGHWAVE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CDLHIGHWAVE.obj ..\..\..\..\..\src\ta_func\ta_CDLHIGHWAVE.c + +..\..\..\..\..\temp\cmr\ta_CDLHIKKAKE.obj: ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CDLHIKKAKE.obj ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKE.c + +..\..\..\..\..\temp\cmr\ta_CDLHIKKAKEMOD.obj: ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKEMOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CDLHIKKAKEMOD.obj ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKEMOD.c + +..\..\..\..\..\temp\cmr\ta_CDLHOMINGPIGEON.obj: ..\..\..\..\..\src\ta_func\ta_CDLHOMINGPIGEON.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CDLHOMINGPIGEON.obj ..\..\..\..\..\src\ta_func\ta_CDLHOMINGPIGEON.c + +..\..\..\..\..\temp\cmr\ta_CDLIDENTICAL3CROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDLIDENTICAL3CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CDLIDENTICAL3CROWS.obj ..\..\..\..\..\src\ta_func\ta_CDLIDENTICAL3CROWS.c + +..\..\..\..\..\temp\cmr\ta_CDLINNECK.obj: ..\..\..\..\..\src\ta_func\ta_CDLINNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CDLINNECK.obj ..\..\..\..\..\src\ta_func\ta_CDLINNECK.c + +..\..\..\..\..\temp\cmr\ta_CDLINVERTEDHAMMER.obj: ..\..\..\..\..\src\ta_func\ta_CDLINVERTEDHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CDLINVERTEDHAMMER.obj ..\..\..\..\..\src\ta_func\ta_CDLINVERTEDHAMMER.c + +..\..\..\..\..\temp\cmr\ta_CDLKICKING.obj: ..\..\..\..\..\src\ta_func\ta_CDLKICKING.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CDLKICKING.obj ..\..\..\..\..\src\ta_func\ta_CDLKICKING.c + +..\..\..\..\..\temp\cmr\ta_CDLKICKINGBYLENGTH.obj: ..\..\..\..\..\src\ta_func\ta_CDLKICKINGBYLENGTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CDLKICKINGBYLENGTH.obj ..\..\..\..\..\src\ta_func\ta_CDLKICKINGBYLENGTH.c + +..\..\..\..\..\temp\cmr\ta_CDLLADDERBOTTOM.obj: ..\..\..\..\..\src\ta_func\ta_CDLLADDERBOTTOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CDLLADDERBOTTOM.obj ..\..\..\..\..\src\ta_func\ta_CDLLADDERBOTTOM.c + +..\..\..\..\..\temp\cmr\ta_CDLLONGLEGGEDDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLLONGLEGGEDDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CDLLONGLEGGEDDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLLONGLEGGEDDOJI.c + +..\..\..\..\..\temp\cmr\ta_CDLLONGLINE.obj: ..\..\..\..\..\src\ta_func\ta_CDLLONGLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CDLLONGLINE.obj ..\..\..\..\..\src\ta_func\ta_CDLLONGLINE.c + +..\..\..\..\..\temp\cmr\ta_CDLMARUBOZU.obj: ..\..\..\..\..\src\ta_func\ta_CDLMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CDLMARUBOZU.obj ..\..\..\..\..\src\ta_func\ta_CDLMARUBOZU.c + +..\..\..\..\..\temp\cmr\ta_CDLMATCHINGLOW.obj: ..\..\..\..\..\src\ta_func\ta_CDLMATCHINGLOW.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CDLMATCHINGLOW.obj ..\..\..\..\..\src\ta_func\ta_CDLMATCHINGLOW.c + +..\..\..\..\..\temp\cmr\ta_CDLMATHOLD.obj: ..\..\..\..\..\src\ta_func\ta_CDLMATHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CDLMATHOLD.obj ..\..\..\..\..\src\ta_func\ta_CDLMATHOLD.c + +..\..\..\..\..\temp\cmr\ta_CDLMORNINGDOJISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLMORNINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CDLMORNINGDOJISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLMORNINGDOJISTAR.c + +..\..\..\..\..\temp\cmr\ta_CDLMORNINGSTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLMORNINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CDLMORNINGSTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLMORNINGSTAR.c + +..\..\..\..\..\temp\cmr\ta_CDLONNECK.obj: ..\..\..\..\..\src\ta_func\ta_CDLONNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CDLONNECK.obj ..\..\..\..\..\src\ta_func\ta_CDLONNECK.c + +..\..\..\..\..\temp\cmr\ta_CDLPIERCING.obj: ..\..\..\..\..\src\ta_func\ta_CDLPIERCING.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CDLPIERCING.obj ..\..\..\..\..\src\ta_func\ta_CDLPIERCING.c + +..\..\..\..\..\temp\cmr\ta_CDLRICKSHAWMAN.obj: ..\..\..\..\..\src\ta_func\ta_CDLRICKSHAWMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CDLRICKSHAWMAN.obj ..\..\..\..\..\src\ta_func\ta_CDLRICKSHAWMAN.c + +..\..\..\..\..\temp\cmr\ta_CDLRISEFALL3METHODS.obj: ..\..\..\..\..\src\ta_func\ta_CDLRISEFALL3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CDLRISEFALL3METHODS.obj ..\..\..\..\..\src\ta_func\ta_CDLRISEFALL3METHODS.c + +..\..\..\..\..\temp\cmr\ta_CDLSEPARATINGLINES.obj: ..\..\..\..\..\src\ta_func\ta_CDLSEPARATINGLINES.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CDLSEPARATINGLINES.obj ..\..\..\..\..\src\ta_func\ta_CDLSEPARATINGLINES.c + +..\..\..\..\..\temp\cmr\ta_CDLSHOOTINGSTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLSHOOTINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CDLSHOOTINGSTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLSHOOTINGSTAR.c + +..\..\..\..\..\temp\cmr\ta_CDLSHORTLINE.obj: ..\..\..\..\..\src\ta_func\ta_CDLSHORTLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CDLSHORTLINE.obj ..\..\..\..\..\src\ta_func\ta_CDLSHORTLINE.c + +..\..\..\..\..\temp\cmr\ta_CDLSPINNINGTOP.obj: ..\..\..\..\..\src\ta_func\ta_CDLSPINNINGTOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CDLSPINNINGTOP.obj ..\..\..\..\..\src\ta_func\ta_CDLSPINNINGTOP.c + +..\..\..\..\..\temp\cmr\ta_CDLSTALLEDPATTERN.obj: ..\..\..\..\..\src\ta_func\ta_CDLSTALLEDPATTERN.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CDLSTALLEDPATTERN.obj ..\..\..\..\..\src\ta_func\ta_CDLSTALLEDPATTERN.c + +..\..\..\..\..\temp\cmr\ta_CDLSTICKSANDWICH.obj: ..\..\..\..\..\src\ta_func\ta_CDLSTICKSANDWICH.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CDLSTICKSANDWICH.obj ..\..\..\..\..\src\ta_func\ta_CDLSTICKSANDWICH.c + +..\..\..\..\..\temp\cmr\ta_CDLTAKURI.obj: ..\..\..\..\..\src\ta_func\ta_CDLTAKURI.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CDLTAKURI.obj ..\..\..\..\..\src\ta_func\ta_CDLTAKURI.c + +..\..\..\..\..\temp\cmr\ta_CDLTASUKIGAP.obj: ..\..\..\..\..\src\ta_func\ta_CDLTASUKIGAP.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CDLTASUKIGAP.obj ..\..\..\..\..\src\ta_func\ta_CDLTASUKIGAP.c + +..\..\..\..\..\temp\cmr\ta_CDLTHRUSTING.obj: ..\..\..\..\..\src\ta_func\ta_CDLTHRUSTING.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CDLTHRUSTING.obj ..\..\..\..\..\src\ta_func\ta_CDLTHRUSTING.c + +..\..\..\..\..\temp\cmr\ta_CDLTRISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLTRISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CDLTRISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLTRISTAR.c + +..\..\..\..\..\temp\cmr\ta_CDLUNIQUE3RIVER.obj: ..\..\..\..\..\src\ta_func\ta_CDLUNIQUE3RIVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CDLUNIQUE3RIVER.obj ..\..\..\..\..\src\ta_func\ta_CDLUNIQUE3RIVER.c + +..\..\..\..\..\temp\cmr\ta_CDLUPSIDEGAP2CROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDLUPSIDEGAP2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CDLUPSIDEGAP2CROWS.obj ..\..\..\..\..\src\ta_func\ta_CDLUPSIDEGAP2CROWS.c + +..\..\..\..\..\temp\cmr\ta_CDLXSIDEGAP3METHODS.obj: ..\..\..\..\..\src\ta_func\ta_CDLXSIDEGAP3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CDLXSIDEGAP3METHODS.obj ..\..\..\..\..\src\ta_func\ta_CDLXSIDEGAP3METHODS.c + +..\..\..\..\..\temp\cmr\ta_CEIL.obj: ..\..\..\..\..\src\ta_func\ta_CEIL.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CEIL.obj ..\..\..\..\..\src\ta_func\ta_CEIL.c + +..\..\..\..\..\temp\cmr\ta_CMO.obj: ..\..\..\..\..\src\ta_func\ta_CMO.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CMO.obj ..\..\..\..\..\src\ta_func\ta_CMO.c + +..\..\..\..\..\temp\cmr\ta_CORREL.obj: ..\..\..\..\..\src\ta_func\ta_CORREL.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CORREL.obj ..\..\..\..\..\src\ta_func\ta_CORREL.c + +..\..\..\..\..\temp\cmr\ta_COS.obj: ..\..\..\..\..\src\ta_func\ta_COS.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_COS.obj ..\..\..\..\..\src\ta_func\ta_COS.c + +..\..\..\..\..\temp\cmr\ta_COSH.obj: ..\..\..\..\..\src\ta_func\ta_COSH.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_COSH.obj ..\..\..\..\..\src\ta_func\ta_COSH.c + +..\..\..\..\..\temp\cmr\ta_DEMA.obj: ..\..\..\..\..\src\ta_func\ta_DEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_DEMA.obj ..\..\..\..\..\src\ta_func\ta_DEMA.c + +..\..\..\..\..\temp\cmr\ta_DIV.obj: ..\..\..\..\..\src\ta_func\ta_DIV.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_DIV.obj ..\..\..\..\..\src\ta_func\ta_DIV.c + +..\..\..\..\..\temp\cmr\ta_DX.obj: ..\..\..\..\..\src\ta_func\ta_DX.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_DX.obj ..\..\..\..\..\src\ta_func\ta_DX.c + +..\..\..\..\..\temp\cmr\ta_EMA.obj: ..\..\..\..\..\src\ta_func\ta_EMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_EMA.obj ..\..\..\..\..\src\ta_func\ta_EMA.c + +..\..\..\..\..\temp\cmr\ta_EXP.obj: ..\..\..\..\..\src\ta_func\ta_EXP.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_EXP.obj ..\..\..\..\..\src\ta_func\ta_EXP.c + +..\..\..\..\..\temp\cmr\ta_FLOOR.obj: ..\..\..\..\..\src\ta_func\ta_FLOOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_FLOOR.obj ..\..\..\..\..\src\ta_func\ta_FLOOR.c + +..\..\..\..\..\temp\cmr\ta_HT_DCPERIOD.obj: ..\..\..\..\..\src\ta_func\ta_HT_DCPERIOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_HT_DCPERIOD.obj ..\..\..\..\..\src\ta_func\ta_HT_DCPERIOD.c + +..\..\..\..\..\temp\cmr\ta_HT_DCPHASE.obj: ..\..\..\..\..\src\ta_func\ta_HT_DCPHASE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_HT_DCPHASE.obj ..\..\..\..\..\src\ta_func\ta_HT_DCPHASE.c + +..\..\..\..\..\temp\cmr\ta_HT_PHASOR.obj: ..\..\..\..\..\src\ta_func\ta_HT_PHASOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_HT_PHASOR.obj ..\..\..\..\..\src\ta_func\ta_HT_PHASOR.c + +..\..\..\..\..\temp\cmr\ta_HT_SINE.obj: ..\..\..\..\..\src\ta_func\ta_HT_SINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_HT_SINE.obj ..\..\..\..\..\src\ta_func\ta_HT_SINE.c + +..\..\..\..\..\temp\cmr\ta_HT_TRENDLINE.obj: ..\..\..\..\..\src\ta_func\ta_HT_TRENDLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_HT_TRENDLINE.obj ..\..\..\..\..\src\ta_func\ta_HT_TRENDLINE.c + +..\..\..\..\..\temp\cmr\ta_HT_TRENDMODE.obj: ..\..\..\..\..\src\ta_func\ta_HT_TRENDMODE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_HT_TRENDMODE.obj ..\..\..\..\..\src\ta_func\ta_HT_TRENDMODE.c + +..\..\..\..\..\temp\cmr\ta_KAMA.obj: ..\..\..\..\..\src\ta_func\ta_KAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_KAMA.obj ..\..\..\..\..\src\ta_func\ta_KAMA.c + +..\..\..\..\..\temp\cmr\ta_LINEARREG.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_LINEARREG.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG.c + +..\..\..\..\..\temp\cmr\ta_LINEARREG_ANGLE.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG_ANGLE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_LINEARREG_ANGLE.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG_ANGLE.c + +..\..\..\..\..\temp\cmr\ta_LINEARREG_INTERCEPT.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG_INTERCEPT.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_LINEARREG_INTERCEPT.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG_INTERCEPT.c + +..\..\..\..\..\temp\cmr\ta_LINEARREG_SLOPE.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG_SLOPE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_LINEARREG_SLOPE.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG_SLOPE.c + +..\..\..\..\..\temp\cmr\ta_LN.obj: ..\..\..\..\..\src\ta_func\ta_LN.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_LN.obj ..\..\..\..\..\src\ta_func\ta_LN.c + +..\..\..\..\..\temp\cmr\ta_LOG10.obj: ..\..\..\..\..\src\ta_func\ta_LOG10.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_LOG10.obj ..\..\..\..\..\src\ta_func\ta_LOG10.c + +..\..\..\..\..\temp\cmr\ta_MA.obj: ..\..\..\..\..\src\ta_func\ta_MA.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_MA.obj ..\..\..\..\..\src\ta_func\ta_MA.c + +..\..\..\..\..\temp\cmr\ta_MACD.obj: ..\..\..\..\..\src\ta_func\ta_MACD.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_MACD.obj ..\..\..\..\..\src\ta_func\ta_MACD.c + +..\..\..\..\..\temp\cmr\ta_MACDEXT.obj: ..\..\..\..\..\src\ta_func\ta_MACDEXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_MACDEXT.obj ..\..\..\..\..\src\ta_func\ta_MACDEXT.c + +..\..\..\..\..\temp\cmr\ta_MACDFIX.obj: ..\..\..\..\..\src\ta_func\ta_MACDFIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_MACDFIX.obj ..\..\..\..\..\src\ta_func\ta_MACDFIX.c + +..\..\..\..\..\temp\cmr\ta_MAMA.obj: ..\..\..\..\..\src\ta_func\ta_MAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_MAMA.obj ..\..\..\..\..\src\ta_func\ta_MAMA.c + +..\..\..\..\..\temp\cmr\ta_MAVP.obj: ..\..\..\..\..\src\ta_func\ta_MAVP.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_MAVP.obj ..\..\..\..\..\src\ta_func\ta_MAVP.c + +..\..\..\..\..\temp\cmr\ta_MAX.obj: ..\..\..\..\..\src\ta_func\ta_MAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_MAX.obj ..\..\..\..\..\src\ta_func\ta_MAX.c + +..\..\..\..\..\temp\cmr\ta_MAXINDEX.obj: ..\..\..\..\..\src\ta_func\ta_MAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_MAXINDEX.obj ..\..\..\..\..\src\ta_func\ta_MAXINDEX.c + +..\..\..\..\..\temp\cmr\ta_MEDPRICE.obj: ..\..\..\..\..\src\ta_func\ta_MEDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_MEDPRICE.obj ..\..\..\..\..\src\ta_func\ta_MEDPRICE.c + +..\..\..\..\..\temp\cmr\ta_MFI.obj: ..\..\..\..\..\src\ta_func\ta_MFI.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_MFI.obj ..\..\..\..\..\src\ta_func\ta_MFI.c + +..\..\..\..\..\temp\cmr\ta_MIDPOINT.obj: ..\..\..\..\..\src\ta_func\ta_MIDPOINT.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_MIDPOINT.obj ..\..\..\..\..\src\ta_func\ta_MIDPOINT.c + +..\..\..\..\..\temp\cmr\ta_MIDPRICE.obj: ..\..\..\..\..\src\ta_func\ta_MIDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_MIDPRICE.obj ..\..\..\..\..\src\ta_func\ta_MIDPRICE.c + +..\..\..\..\..\temp\cmr\ta_MIN.obj: ..\..\..\..\..\src\ta_func\ta_MIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_MIN.obj ..\..\..\..\..\src\ta_func\ta_MIN.c + +..\..\..\..\..\temp\cmr\ta_MININDEX.obj: ..\..\..\..\..\src\ta_func\ta_MININDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_MININDEX.obj ..\..\..\..\..\src\ta_func\ta_MININDEX.c + +..\..\..\..\..\temp\cmr\ta_MINMAX.obj: ..\..\..\..\..\src\ta_func\ta_MINMAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_MINMAX.obj ..\..\..\..\..\src\ta_func\ta_MINMAX.c + +..\..\..\..\..\temp\cmr\ta_MINMAXINDEX.obj: ..\..\..\..\..\src\ta_func\ta_MINMAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_MINMAXINDEX.obj ..\..\..\..\..\src\ta_func\ta_MINMAXINDEX.c + +..\..\..\..\..\temp\cmr\ta_MINUS_DI.obj: ..\..\..\..\..\src\ta_func\ta_MINUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_MINUS_DI.obj ..\..\..\..\..\src\ta_func\ta_MINUS_DI.c + +..\..\..\..\..\temp\cmr\ta_MINUS_DM.obj: ..\..\..\..\..\src\ta_func\ta_MINUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_MINUS_DM.obj ..\..\..\..\..\src\ta_func\ta_MINUS_DM.c + +..\..\..\..\..\temp\cmr\ta_MOM.obj: ..\..\..\..\..\src\ta_func\ta_MOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_MOM.obj ..\..\..\..\..\src\ta_func\ta_MOM.c + +..\..\..\..\..\temp\cmr\ta_MULT.obj: ..\..\..\..\..\src\ta_func\ta_MULT.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_MULT.obj ..\..\..\..\..\src\ta_func\ta_MULT.c + +..\..\..\..\..\temp\cmr\ta_NATR.obj: ..\..\..\..\..\src\ta_func\ta_NATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_NATR.obj ..\..\..\..\..\src\ta_func\ta_NATR.c + +..\..\..\..\..\temp\cmr\ta_OBV.obj: ..\..\..\..\..\src\ta_func\ta_OBV.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_OBV.obj ..\..\..\..\..\src\ta_func\ta_OBV.c + +..\..\..\..\..\temp\cmr\ta_PLUS_DI.obj: ..\..\..\..\..\src\ta_func\ta_PLUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_PLUS_DI.obj ..\..\..\..\..\src\ta_func\ta_PLUS_DI.c + +..\..\..\..\..\temp\cmr\ta_PLUS_DM.obj: ..\..\..\..\..\src\ta_func\ta_PLUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_PLUS_DM.obj ..\..\..\..\..\src\ta_func\ta_PLUS_DM.c + +..\..\..\..\..\temp\cmr\ta_PPO.obj: ..\..\..\..\..\src\ta_func\ta_PPO.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_PPO.obj ..\..\..\..\..\src\ta_func\ta_PPO.c + +..\..\..\..\..\temp\cmr\ta_ROC.obj: ..\..\..\..\..\src\ta_func\ta_ROC.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_ROC.obj ..\..\..\..\..\src\ta_func\ta_ROC.c + +..\..\..\..\..\temp\cmr\ta_ROCP.obj: ..\..\..\..\..\src\ta_func\ta_ROCP.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_ROCP.obj ..\..\..\..\..\src\ta_func\ta_ROCP.c + +..\..\..\..\..\temp\cmr\ta_ROCR.obj: ..\..\..\..\..\src\ta_func\ta_ROCR.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_ROCR.obj ..\..\..\..\..\src\ta_func\ta_ROCR.c + +..\..\..\..\..\temp\cmr\ta_ROCR100.obj: ..\..\..\..\..\src\ta_func\ta_ROCR100.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_ROCR100.obj ..\..\..\..\..\src\ta_func\ta_ROCR100.c + +..\..\..\..\..\temp\cmr\ta_RSI.obj: ..\..\..\..\..\src\ta_func\ta_RSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_RSI.obj ..\..\..\..\..\src\ta_func\ta_RSI.c + +..\..\..\..\..\temp\cmr\ta_SAR.obj: ..\..\..\..\..\src\ta_func\ta_SAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_SAR.obj ..\..\..\..\..\src\ta_func\ta_SAR.c + +..\..\..\..\..\temp\cmr\ta_SAREXT.obj: ..\..\..\..\..\src\ta_func\ta_SAREXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_SAREXT.obj ..\..\..\..\..\src\ta_func\ta_SAREXT.c + +..\..\..\..\..\temp\cmr\ta_SIN.obj: ..\..\..\..\..\src\ta_func\ta_SIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_SIN.obj ..\..\..\..\..\src\ta_func\ta_SIN.c + +..\..\..\..\..\temp\cmr\ta_SINH.obj: ..\..\..\..\..\src\ta_func\ta_SINH.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_SINH.obj ..\..\..\..\..\src\ta_func\ta_SINH.c + +..\..\..\..\..\temp\cmr\ta_SMA.obj: ..\..\..\..\..\src\ta_func\ta_SMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_SMA.obj ..\..\..\..\..\src\ta_func\ta_SMA.c + +..\..\..\..\..\temp\cmr\ta_SQRT.obj: ..\..\..\..\..\src\ta_func\ta_SQRT.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_SQRT.obj ..\..\..\..\..\src\ta_func\ta_SQRT.c + +..\..\..\..\..\temp\cmr\ta_STDDEV.obj: ..\..\..\..\..\src\ta_func\ta_STDDEV.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_STDDEV.obj ..\..\..\..\..\src\ta_func\ta_STDDEV.c + +..\..\..\..\..\temp\cmr\ta_STOCH.obj: ..\..\..\..\..\src\ta_func\ta_STOCH.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_STOCH.obj ..\..\..\..\..\src\ta_func\ta_STOCH.c + +..\..\..\..\..\temp\cmr\ta_STOCHF.obj: ..\..\..\..\..\src\ta_func\ta_STOCHF.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_STOCHF.obj ..\..\..\..\..\src\ta_func\ta_STOCHF.c + +..\..\..\..\..\temp\cmr\ta_STOCHRSI.obj: ..\..\..\..\..\src\ta_func\ta_STOCHRSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_STOCHRSI.obj ..\..\..\..\..\src\ta_func\ta_STOCHRSI.c + +..\..\..\..\..\temp\cmr\ta_SUB.obj: ..\..\..\..\..\src\ta_func\ta_SUB.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_SUB.obj ..\..\..\..\..\src\ta_func\ta_SUB.c + +..\..\..\..\..\temp\cmr\ta_SUM.obj: ..\..\..\..\..\src\ta_func\ta_SUM.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_SUM.obj ..\..\..\..\..\src\ta_func\ta_SUM.c + +..\..\..\..\..\temp\cmr\ta_T3.obj: ..\..\..\..\..\src\ta_func\ta_T3.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_T3.obj ..\..\..\..\..\src\ta_func\ta_T3.c + +..\..\..\..\..\temp\cmr\ta_TAN.obj: ..\..\..\..\..\src\ta_func\ta_TAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_TAN.obj ..\..\..\..\..\src\ta_func\ta_TAN.c + +..\..\..\..\..\temp\cmr\ta_TANH.obj: ..\..\..\..\..\src\ta_func\ta_TANH.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_TANH.obj ..\..\..\..\..\src\ta_func\ta_TANH.c + +..\..\..\..\..\temp\cmr\ta_TEMA.obj: ..\..\..\..\..\src\ta_func\ta_TEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_TEMA.obj ..\..\..\..\..\src\ta_func\ta_TEMA.c + +..\..\..\..\..\temp\cmr\ta_TRANGE.obj: ..\..\..\..\..\src\ta_func\ta_TRANGE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_TRANGE.obj ..\..\..\..\..\src\ta_func\ta_TRANGE.c + +..\..\..\..\..\temp\cmr\ta_TRIMA.obj: ..\..\..\..\..\src\ta_func\ta_TRIMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_TRIMA.obj ..\..\..\..\..\src\ta_func\ta_TRIMA.c + +..\..\..\..\..\temp\cmr\ta_TRIX.obj: ..\..\..\..\..\src\ta_func\ta_TRIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_TRIX.obj ..\..\..\..\..\src\ta_func\ta_TRIX.c + +..\..\..\..\..\temp\cmr\ta_TSF.obj: ..\..\..\..\..\src\ta_func\ta_TSF.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_TSF.obj ..\..\..\..\..\src\ta_func\ta_TSF.c + +..\..\..\..\..\temp\cmr\ta_TYPPRICE.obj: ..\..\..\..\..\src\ta_func\ta_TYPPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_TYPPRICE.obj ..\..\..\..\..\src\ta_func\ta_TYPPRICE.c + +..\..\..\..\..\temp\cmr\ta_ULTOSC.obj: ..\..\..\..\..\src\ta_func\ta_ULTOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_ULTOSC.obj ..\..\..\..\..\src\ta_func\ta_ULTOSC.c + +..\..\..\..\..\temp\cmr\ta_VAR.obj: ..\..\..\..\..\src\ta_func\ta_VAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_VAR.obj ..\..\..\..\..\src\ta_func\ta_VAR.c + +..\..\..\..\..\temp\cmr\ta_WCLPRICE.obj: ..\..\..\..\..\src\ta_func\ta_WCLPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_WCLPRICE.obj ..\..\..\..\..\src\ta_func\ta_WCLPRICE.c + +..\..\..\..\..\temp\cmr\ta_WILLR.obj: ..\..\..\..\..\src\ta_func\ta_WILLR.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_WILLR.obj ..\..\..\..\..\src\ta_func\ta_WILLR.c + +..\..\..\..\..\temp\cmr\ta_WMA.obj: ..\..\..\..\..\src\ta_func\ta_WMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_WMA.obj ..\..\..\..\..\src\ta_func\ta_WMA.c + diff --git a/make/cmr/win32/watcom/ta_libc/Makefile b/make/cmr/win32/watcom/ta_libc/Makefile new file mode 100644 index 000000000..00c2e6873 --- /dev/null +++ b/make/cmr/win32/watcom/ta_libc/Makefile @@ -0,0 +1,1219 @@ +############################################################################# +# Makefile for building ta_libc_cmr +# Generated by tmake; +# Project: ta_libc/ta_libc +# Template: lib +############################################################################# + +####### Compiler, tools and options + +QTDIR = +CC = wcl386 +CXX = wcl386 +CFLAGS = -zq -w2 -ox -d=WIN32 -d=NO_DEBUG +CXXFLAGS= -zq -w2 -ox -d=WIN32 -d=NO_DEBUG +INCPATH = -i="..\..\..\..\..\src\ta_common" -i="..\..\..\..\..\include" -i="..\..\..\..\..\src\ta_abstract" -i="..\..\..\..\..\src\ta_abstract\tables" -i="..\..\..\..\..\src\ta_abstract\frames" -i="$(QTDIR)\include" +LIB = wlib -b -c -n -q -p=512 +MOC = moc + +ZIP = zip -r -9 + +####### Files + +HEADERS = +SOURCES = ..\..\..\..\..\src\ta_common\ta_global.c & + ..\..\..\..\..\src\ta_common\ta_retcode.c & + ..\..\..\..\..\src\ta_common\ta_version.c & + ..\..\..\..\..\src\ta_abstract\ta_abstract.c & + ..\..\..\..\..\src\ta_abstract\ta_def_ui.c & + ..\..\..\..\..\src\ta_abstract\ta_func_api.c & + ..\..\..\..\..\src\ta_abstract\ta_group_idx.c & + ..\..\..\..\..\src\ta_abstract\frames\ta_frame.c & + ..\..\..\..\..\src\ta_abstract\tables\table_a.c & + ..\..\..\..\..\src\ta_abstract\tables\table_b.c & + ..\..\..\..\..\src\ta_abstract\tables\table_c.c & + ..\..\..\..\..\src\ta_abstract\tables\table_d.c & + ..\..\..\..\..\src\ta_abstract\tables\table_e.c & + ..\..\..\..\..\src\ta_abstract\tables\table_f.c & + ..\..\..\..\..\src\ta_abstract\tables\table_g.c & + ..\..\..\..\..\src\ta_abstract\tables\table_h.c & + ..\..\..\..\..\src\ta_abstract\tables\table_i.c & + ..\..\..\..\..\src\ta_abstract\tables\table_j.c & + ..\..\..\..\..\src\ta_abstract\tables\table_k.c & + ..\..\..\..\..\src\ta_abstract\tables\table_l.c & + ..\..\..\..\..\src\ta_abstract\tables\table_m.c & + ..\..\..\..\..\src\ta_abstract\tables\table_n.c & + ..\..\..\..\..\src\ta_abstract\tables\table_o.c & + ..\..\..\..\..\src\ta_abstract\tables\table_p.c & + ..\..\..\..\..\src\ta_abstract\tables\table_q.c & + ..\..\..\..\..\src\ta_abstract\tables\table_r.c & + ..\..\..\..\..\src\ta_abstract\tables\table_s.c & + ..\..\..\..\..\src\ta_abstract\tables\table_t.c & + ..\..\..\..\..\src\ta_abstract\tables\table_u.c & + ..\..\..\..\..\src\ta_abstract\tables\table_v.c & + ..\..\..\..\..\src\ta_abstract\tables\table_w.c & + ..\..\..\..\..\src\ta_abstract\tables\table_x.c & + ..\..\..\..\..\src\ta_abstract\tables\table_y.c & + ..\..\..\..\..\src\ta_abstract\tables\table_z.c & + ..\..\..\..\..\src\ta_func\ta_utility.c & + ..\..\..\..\..\src\ta_func\ta_ACOS.c & + ..\..\..\..\..\src\ta_func\ta_AD.c & + ..\..\..\..\..\src\ta_func\ta_ADD.c & + ..\..\..\..\..\src\ta_func\ta_ADOSC.c & + ..\..\..\..\..\src\ta_func\ta_ADX.c & + ..\..\..\..\..\src\ta_func\ta_ADXR.c & + ..\..\..\..\..\src\ta_func\ta_APO.c & + ..\..\..\..\..\src\ta_func\ta_AROON.c & + ..\..\..\..\..\src\ta_func\ta_AROONOSC.c & + ..\..\..\..\..\src\ta_func\ta_ASIN.c & + ..\..\..\..\..\src\ta_func\ta_ATAN.c & + ..\..\..\..\..\src\ta_func\ta_ATR.c & + ..\..\..\..\..\src\ta_func\ta_AVGPRICE.c & + ..\..\..\..\..\src\ta_func\ta_BBANDS.c & + ..\..\..\..\..\src\ta_func\ta_BETA.c & + ..\..\..\..\..\src\ta_func\ta_BOP.c & + ..\..\..\..\..\src\ta_func\ta_CCI.c & + ..\..\..\..\..\src\ta_func\ta_CDL2CROWS.c & + ..\..\..\..\..\src\ta_func\ta_CDL3BLACKCROWS.c & + ..\..\..\..\..\src\ta_func\ta_CDL3INSIDE.c & + ..\..\..\..\..\src\ta_func\ta_CDL3LINESTRIKE.c & + ..\..\..\..\..\src\ta_func\ta_CDL3OUTSIDE.c & + ..\..\..\..\..\src\ta_func\ta_CDL3STARSINSOUTH.c & + ..\..\..\..\..\src\ta_func\ta_CDL3WHITESOLDIERS.c & + ..\..\..\..\..\src\ta_func\ta_CDLABANDONEDBABY.c & + ..\..\..\..\..\src\ta_func\ta_CDLADVANCEBLOCK.c & + ..\..\..\..\..\src\ta_func\ta_CDLBELTHOLD.c & + ..\..\..\..\..\src\ta_func\ta_CDLBREAKAWAY.c & + ..\..\..\..\..\src\ta_func\ta_CDLCLOSINGMARUBOZU.c & + ..\..\..\..\..\src\ta_func\ta_CDLCONCEALBABYSWALL.c & + ..\..\..\..\..\src\ta_func\ta_CDLCOUNTERATTACK.c & + ..\..\..\..\..\src\ta_func\ta_CDLDARKCLOUDCOVER.c & + ..\..\..\..\..\src\ta_func\ta_CDLDOJI.c & + ..\..\..\..\..\src\ta_func\ta_CDLDOJISTAR.c & + ..\..\..\..\..\src\ta_func\ta_CDLDRAGONFLYDOJI.c & + ..\..\..\..\..\src\ta_func\ta_CDLENGULFING.c & + ..\..\..\..\..\src\ta_func\ta_CDLEVENINGDOJISTAR.c & + ..\..\..\..\..\src\ta_func\ta_CDLEVENINGSTAR.c & + ..\..\..\..\..\src\ta_func\ta_CDLGAPSIDESIDEWHITE.c & + ..\..\..\..\..\src\ta_func\ta_CDLGRAVESTONEDOJI.c & + ..\..\..\..\..\src\ta_func\ta_CDLHAMMER.c & + ..\..\..\..\..\src\ta_func\ta_CDLHANGINGMAN.c & + ..\..\..\..\..\src\ta_func\ta_CDLHARAMI.c & + ..\..\..\..\..\src\ta_func\ta_CDLHARAMICROSS.c & + ..\..\..\..\..\src\ta_func\ta_CDLHIGHWAVE.c & + ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKE.c & + ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKEMOD.c & + ..\..\..\..\..\src\ta_func\ta_CDLHOMINGPIGEON.c & + ..\..\..\..\..\src\ta_func\ta_CDLIDENTICAL3CROWS.c & + ..\..\..\..\..\src\ta_func\ta_CDLINNECK.c & + ..\..\..\..\..\src\ta_func\ta_CDLINVERTEDHAMMER.c & + ..\..\..\..\..\src\ta_func\ta_CDLKICKING.c & + ..\..\..\..\..\src\ta_func\ta_CDLKICKINGBYLENGTH.c & + ..\..\..\..\..\src\ta_func\ta_CDLLADDERBOTTOM.c & + ..\..\..\..\..\src\ta_func\ta_CDLLONGLEGGEDDOJI.c & + ..\..\..\..\..\src\ta_func\ta_CDLLONGLINE.c & + ..\..\..\..\..\src\ta_func\ta_CDLMARUBOZU.c & + ..\..\..\..\..\src\ta_func\ta_CDLMATCHINGLOW.c & + ..\..\..\..\..\src\ta_func\ta_CDLMATHOLD.c & + ..\..\..\..\..\src\ta_func\ta_CDLMORNINGDOJISTAR.c & + ..\..\..\..\..\src\ta_func\ta_CDLMORNINGSTAR.c & + ..\..\..\..\..\src\ta_func\ta_CDLONNECK.c & + ..\..\..\..\..\src\ta_func\ta_CDLPIERCING.c & + ..\..\..\..\..\src\ta_func\ta_CDLRICKSHAWMAN.c & + ..\..\..\..\..\src\ta_func\ta_CDLRISEFALL3METHODS.c & + ..\..\..\..\..\src\ta_func\ta_CDLSEPARATINGLINES.c & + ..\..\..\..\..\src\ta_func\ta_CDLSHOOTINGSTAR.c & + ..\..\..\..\..\src\ta_func\ta_CDLSHORTLINE.c & + ..\..\..\..\..\src\ta_func\ta_CDLSPINNINGTOP.c & + ..\..\..\..\..\src\ta_func\ta_CDLSTALLEDPATTERN.c & + ..\..\..\..\..\src\ta_func\ta_CDLSTICKSANDWICH.c & + ..\..\..\..\..\src\ta_func\ta_CDLTAKURI.c & + ..\..\..\..\..\src\ta_func\ta_CDLTASUKIGAP.c & + ..\..\..\..\..\src\ta_func\ta_CDLTHRUSTING.c & + ..\..\..\..\..\src\ta_func\ta_CDLTRISTAR.c & + ..\..\..\..\..\src\ta_func\ta_CDLUNIQUE3RIVER.c & + ..\..\..\..\..\src\ta_func\ta_CDLUPSIDEGAP2CROWS.c & + ..\..\..\..\..\src\ta_func\ta_CDLXSIDEGAP3METHODS.c & + ..\..\..\..\..\src\ta_func\ta_CEIL.c & + ..\..\..\..\..\src\ta_func\ta_CMO.c & + ..\..\..\..\..\src\ta_func\ta_CORREL.c & + ..\..\..\..\..\src\ta_func\ta_COS.c & + ..\..\..\..\..\src\ta_func\ta_COSH.c & + ..\..\..\..\..\src\ta_func\ta_DEMA.c & + ..\..\..\..\..\src\ta_func\ta_DIV.c & + ..\..\..\..\..\src\ta_func\ta_DX.c & + ..\..\..\..\..\src\ta_func\ta_EMA.c & + ..\..\..\..\..\src\ta_func\ta_EXP.c & + ..\..\..\..\..\src\ta_func\ta_FLOOR.c & + ..\..\..\..\..\src\ta_func\ta_HT_DCPERIOD.c & + ..\..\..\..\..\src\ta_func\ta_HT_DCPHASE.c & + ..\..\..\..\..\src\ta_func\ta_HT_PHASOR.c & + ..\..\..\..\..\src\ta_func\ta_HT_SINE.c & + ..\..\..\..\..\src\ta_func\ta_HT_TRENDLINE.c & + ..\..\..\..\..\src\ta_func\ta_HT_TRENDMODE.c & + ..\..\..\..\..\src\ta_func\ta_KAMA.c & + ..\..\..\..\..\src\ta_func\ta_LINEARREG.c & + ..\..\..\..\..\src\ta_func\ta_LINEARREG_ANGLE.c & + ..\..\..\..\..\src\ta_func\ta_LINEARREG_INTERCEPT.c & + ..\..\..\..\..\src\ta_func\ta_LINEARREG_SLOPE.c & + ..\..\..\..\..\src\ta_func\ta_LN.c & + ..\..\..\..\..\src\ta_func\ta_LOG10.c & + ..\..\..\..\..\src\ta_func\ta_MA.c & + ..\..\..\..\..\src\ta_func\ta_MACD.c & + ..\..\..\..\..\src\ta_func\ta_MACDEXT.c & + ..\..\..\..\..\src\ta_func\ta_MACDFIX.c & + ..\..\..\..\..\src\ta_func\ta_MAMA.c & + ..\..\..\..\..\src\ta_func\ta_MAVP.c & + ..\..\..\..\..\src\ta_func\ta_MAX.c & + ..\..\..\..\..\src\ta_func\ta_MAXINDEX.c & + ..\..\..\..\..\src\ta_func\ta_MEDPRICE.c & + ..\..\..\..\..\src\ta_func\ta_MFI.c & + ..\..\..\..\..\src\ta_func\ta_MIDPOINT.c & + ..\..\..\..\..\src\ta_func\ta_MIDPRICE.c & + ..\..\..\..\..\src\ta_func\ta_MIN.c & + ..\..\..\..\..\src\ta_func\ta_MININDEX.c & + ..\..\..\..\..\src\ta_func\ta_MINMAX.c & + ..\..\..\..\..\src\ta_func\ta_MINMAXINDEX.c & + ..\..\..\..\..\src\ta_func\ta_MINUS_DI.c & + ..\..\..\..\..\src\ta_func\ta_MINUS_DM.c & + ..\..\..\..\..\src\ta_func\ta_MOM.c & + ..\..\..\..\..\src\ta_func\ta_MULT.c & + ..\..\..\..\..\src\ta_func\ta_NATR.c & + ..\..\..\..\..\src\ta_func\ta_OBV.c & + ..\..\..\..\..\src\ta_func\ta_PLUS_DI.c & + ..\..\..\..\..\src\ta_func\ta_PLUS_DM.c & + ..\..\..\..\..\src\ta_func\ta_PPO.c & + ..\..\..\..\..\src\ta_func\ta_ROC.c & + ..\..\..\..\..\src\ta_func\ta_ROCP.c & + ..\..\..\..\..\src\ta_func\ta_ROCR.c & + ..\..\..\..\..\src\ta_func\ta_ROCR100.c & + ..\..\..\..\..\src\ta_func\ta_RSI.c & + ..\..\..\..\..\src\ta_func\ta_SAR.c & + ..\..\..\..\..\src\ta_func\ta_SAREXT.c & + ..\..\..\..\..\src\ta_func\ta_SIN.c & + ..\..\..\..\..\src\ta_func\ta_SINH.c & + ..\..\..\..\..\src\ta_func\ta_SMA.c & + ..\..\..\..\..\src\ta_func\ta_SQRT.c & + ..\..\..\..\..\src\ta_func\ta_STDDEV.c & + ..\..\..\..\..\src\ta_func\ta_STOCH.c & + ..\..\..\..\..\src\ta_func\ta_STOCHF.c & + ..\..\..\..\..\src\ta_func\ta_STOCHRSI.c & + ..\..\..\..\..\src\ta_func\ta_SUB.c & + ..\..\..\..\..\src\ta_func\ta_SUM.c & + ..\..\..\..\..\src\ta_func\ta_T3.c & + ..\..\..\..\..\src\ta_func\ta_TAN.c & + ..\..\..\..\..\src\ta_func\ta_TANH.c & + ..\..\..\..\..\src\ta_func\ta_TEMA.c & + ..\..\..\..\..\src\ta_func\ta_TRANGE.c & + ..\..\..\..\..\src\ta_func\ta_TRIMA.c & + ..\..\..\..\..\src\ta_func\ta_TRIX.c & + ..\..\..\..\..\src\ta_func\ta_TSF.c & + ..\..\..\..\..\src\ta_func\ta_TYPPRICE.c & + ..\..\..\..\..\src\ta_func\ta_ULTOSC.c & + ..\..\..\..\..\src\ta_func\ta_VAR.c & + ..\..\..\..\..\src\ta_func\ta_WCLPRICE.c & + ..\..\..\..\..\src\ta_func\ta_WILLR.c & + ..\..\..\..\..\src\ta_func\ta_WMA.c +OBJECTS = ..\..\..\..\..\temp\cmr\ta_global.obj & + ..\..\..\..\..\temp\cmr\ta_retcode.obj & + ..\..\..\..\..\temp\cmr\ta_version.obj & + ..\..\..\..\..\temp\cmr\ta_abstract.obj & + ..\..\..\..\..\temp\cmr\ta_def_ui.obj & + ..\..\..\..\..\temp\cmr\ta_func_api.obj & + ..\..\..\..\..\temp\cmr\ta_group_idx.obj & + ..\..\..\..\..\temp\cmr\ta_frame.obj & + ..\..\..\..\..\temp\cmr\table_a.obj & + ..\..\..\..\..\temp\cmr\table_b.obj & + ..\..\..\..\..\temp\cmr\table_c.obj & + ..\..\..\..\..\temp\cmr\table_d.obj & + ..\..\..\..\..\temp\cmr\table_e.obj & + ..\..\..\..\..\temp\cmr\table_f.obj & + ..\..\..\..\..\temp\cmr\table_g.obj & + ..\..\..\..\..\temp\cmr\table_h.obj & + ..\..\..\..\..\temp\cmr\table_i.obj & + ..\..\..\..\..\temp\cmr\table_j.obj & + ..\..\..\..\..\temp\cmr\table_k.obj & + ..\..\..\..\..\temp\cmr\table_l.obj & + ..\..\..\..\..\temp\cmr\table_m.obj & + ..\..\..\..\..\temp\cmr\table_n.obj & + ..\..\..\..\..\temp\cmr\table_o.obj & + ..\..\..\..\..\temp\cmr\table_p.obj & + ..\..\..\..\..\temp\cmr\table_q.obj & + ..\..\..\..\..\temp\cmr\table_r.obj & + ..\..\..\..\..\temp\cmr\table_s.obj & + ..\..\..\..\..\temp\cmr\table_t.obj & + ..\..\..\..\..\temp\cmr\table_u.obj & + ..\..\..\..\..\temp\cmr\table_v.obj & + ..\..\..\..\..\temp\cmr\table_w.obj & + ..\..\..\..\..\temp\cmr\table_x.obj & + ..\..\..\..\..\temp\cmr\table_y.obj & + ..\..\..\..\..\temp\cmr\table_z.obj & + ..\..\..\..\..\temp\cmr\ta_utility.obj & + ..\..\..\..\..\temp\cmr\ta_ACOS.obj & + ..\..\..\..\..\temp\cmr\ta_AD.obj & + ..\..\..\..\..\temp\cmr\ta_ADD.obj & + ..\..\..\..\..\temp\cmr\ta_ADOSC.obj & + ..\..\..\..\..\temp\cmr\ta_ADX.obj & + ..\..\..\..\..\temp\cmr\ta_ADXR.obj & + ..\..\..\..\..\temp\cmr\ta_APO.obj & + ..\..\..\..\..\temp\cmr\ta_AROON.obj & + ..\..\..\..\..\temp\cmr\ta_AROONOSC.obj & + ..\..\..\..\..\temp\cmr\ta_ASIN.obj & + ..\..\..\..\..\temp\cmr\ta_ATAN.obj & + ..\..\..\..\..\temp\cmr\ta_ATR.obj & + ..\..\..\..\..\temp\cmr\ta_AVGPRICE.obj & + ..\..\..\..\..\temp\cmr\ta_BBANDS.obj & + ..\..\..\..\..\temp\cmr\ta_BETA.obj & + ..\..\..\..\..\temp\cmr\ta_BOP.obj & + ..\..\..\..\..\temp\cmr\ta_CCI.obj & + ..\..\..\..\..\temp\cmr\ta_CDL2CROWS.obj & + ..\..\..\..\..\temp\cmr\ta_CDL3BLACKCROWS.obj & + ..\..\..\..\..\temp\cmr\ta_CDL3INSIDE.obj & + ..\..\..\..\..\temp\cmr\ta_CDL3LINESTRIKE.obj & + ..\..\..\..\..\temp\cmr\ta_CDL3OUTSIDE.obj & + ..\..\..\..\..\temp\cmr\ta_CDL3STARSINSOUTH.obj & + ..\..\..\..\..\temp\cmr\ta_CDL3WHITESOLDIERS.obj & + ..\..\..\..\..\temp\cmr\ta_CDLABANDONEDBABY.obj & + ..\..\..\..\..\temp\cmr\ta_CDLADVANCEBLOCK.obj & + ..\..\..\..\..\temp\cmr\ta_CDLBELTHOLD.obj & + ..\..\..\..\..\temp\cmr\ta_CDLBREAKAWAY.obj & + ..\..\..\..\..\temp\cmr\ta_CDLCLOSINGMARUBOZU.obj & + ..\..\..\..\..\temp\cmr\ta_CDLCONCEALBABYSWALL.obj & + ..\..\..\..\..\temp\cmr\ta_CDLCOUNTERATTACK.obj & + ..\..\..\..\..\temp\cmr\ta_CDLDARKCLOUDCOVER.obj & + ..\..\..\..\..\temp\cmr\ta_CDLDOJI.obj & + ..\..\..\..\..\temp\cmr\ta_CDLDOJISTAR.obj & + ..\..\..\..\..\temp\cmr\ta_CDLDRAGONFLYDOJI.obj & + ..\..\..\..\..\temp\cmr\ta_CDLENGULFING.obj & + ..\..\..\..\..\temp\cmr\ta_CDLEVENINGDOJISTAR.obj & + ..\..\..\..\..\temp\cmr\ta_CDLEVENINGSTAR.obj & + ..\..\..\..\..\temp\cmr\ta_CDLGAPSIDESIDEWHITE.obj & + ..\..\..\..\..\temp\cmr\ta_CDLGRAVESTONEDOJI.obj & + ..\..\..\..\..\temp\cmr\ta_CDLHAMMER.obj & + ..\..\..\..\..\temp\cmr\ta_CDLHANGINGMAN.obj & + ..\..\..\..\..\temp\cmr\ta_CDLHARAMI.obj & + ..\..\..\..\..\temp\cmr\ta_CDLHARAMICROSS.obj & + ..\..\..\..\..\temp\cmr\ta_CDLHIGHWAVE.obj & + ..\..\..\..\..\temp\cmr\ta_CDLHIKKAKE.obj & + ..\..\..\..\..\temp\cmr\ta_CDLHIKKAKEMOD.obj & + ..\..\..\..\..\temp\cmr\ta_CDLHOMINGPIGEON.obj & + ..\..\..\..\..\temp\cmr\ta_CDLIDENTICAL3CROWS.obj & + ..\..\..\..\..\temp\cmr\ta_CDLINNECK.obj & + ..\..\..\..\..\temp\cmr\ta_CDLINVERTEDHAMMER.obj & + ..\..\..\..\..\temp\cmr\ta_CDLKICKING.obj & + ..\..\..\..\..\temp\cmr\ta_CDLKICKINGBYLENGTH.obj & + ..\..\..\..\..\temp\cmr\ta_CDLLADDERBOTTOM.obj & + ..\..\..\..\..\temp\cmr\ta_CDLLONGLEGGEDDOJI.obj & + ..\..\..\..\..\temp\cmr\ta_CDLLONGLINE.obj & + ..\..\..\..\..\temp\cmr\ta_CDLMARUBOZU.obj & + ..\..\..\..\..\temp\cmr\ta_CDLMATCHINGLOW.obj & + ..\..\..\..\..\temp\cmr\ta_CDLMATHOLD.obj & + ..\..\..\..\..\temp\cmr\ta_CDLMORNINGDOJISTAR.obj & + ..\..\..\..\..\temp\cmr\ta_CDLMORNINGSTAR.obj & + ..\..\..\..\..\temp\cmr\ta_CDLONNECK.obj & + ..\..\..\..\..\temp\cmr\ta_CDLPIERCING.obj & + ..\..\..\..\..\temp\cmr\ta_CDLRICKSHAWMAN.obj & + ..\..\..\..\..\temp\cmr\ta_CDLRISEFALL3METHODS.obj & + ..\..\..\..\..\temp\cmr\ta_CDLSEPARATINGLINES.obj & + ..\..\..\..\..\temp\cmr\ta_CDLSHOOTINGSTAR.obj & + ..\..\..\..\..\temp\cmr\ta_CDLSHORTLINE.obj & + ..\..\..\..\..\temp\cmr\ta_CDLSPINNINGTOP.obj & + ..\..\..\..\..\temp\cmr\ta_CDLSTALLEDPATTERN.obj & + ..\..\..\..\..\temp\cmr\ta_CDLSTICKSANDWICH.obj & + ..\..\..\..\..\temp\cmr\ta_CDLTAKURI.obj & + ..\..\..\..\..\temp\cmr\ta_CDLTASUKIGAP.obj & + ..\..\..\..\..\temp\cmr\ta_CDLTHRUSTING.obj & + ..\..\..\..\..\temp\cmr\ta_CDLTRISTAR.obj & + ..\..\..\..\..\temp\cmr\ta_CDLUNIQUE3RIVER.obj & + ..\..\..\..\..\temp\cmr\ta_CDLUPSIDEGAP2CROWS.obj & + ..\..\..\..\..\temp\cmr\ta_CDLXSIDEGAP3METHODS.obj & + ..\..\..\..\..\temp\cmr\ta_CEIL.obj & + ..\..\..\..\..\temp\cmr\ta_CMO.obj & + ..\..\..\..\..\temp\cmr\ta_CORREL.obj & + ..\..\..\..\..\temp\cmr\ta_COS.obj & + ..\..\..\..\..\temp\cmr\ta_COSH.obj & + ..\..\..\..\..\temp\cmr\ta_DEMA.obj & + ..\..\..\..\..\temp\cmr\ta_DIV.obj & + ..\..\..\..\..\temp\cmr\ta_DX.obj & + ..\..\..\..\..\temp\cmr\ta_EMA.obj & + ..\..\..\..\..\temp\cmr\ta_EXP.obj & + ..\..\..\..\..\temp\cmr\ta_FLOOR.obj & + ..\..\..\..\..\temp\cmr\ta_HT_DCPERIOD.obj & + ..\..\..\..\..\temp\cmr\ta_HT_DCPHASE.obj & + ..\..\..\..\..\temp\cmr\ta_HT_PHASOR.obj & + ..\..\..\..\..\temp\cmr\ta_HT_SINE.obj & + ..\..\..\..\..\temp\cmr\ta_HT_TRENDLINE.obj & + ..\..\..\..\..\temp\cmr\ta_HT_TRENDMODE.obj & + ..\..\..\..\..\temp\cmr\ta_KAMA.obj & + ..\..\..\..\..\temp\cmr\ta_LINEARREG.obj & + ..\..\..\..\..\temp\cmr\ta_LINEARREG_ANGLE.obj & + ..\..\..\..\..\temp\cmr\ta_LINEARREG_INTERCEPT.obj & + ..\..\..\..\..\temp\cmr\ta_LINEARREG_SLOPE.obj & + ..\..\..\..\..\temp\cmr\ta_LN.obj & + ..\..\..\..\..\temp\cmr\ta_LOG10.obj & + ..\..\..\..\..\temp\cmr\ta_MA.obj & + ..\..\..\..\..\temp\cmr\ta_MACD.obj & + ..\..\..\..\..\temp\cmr\ta_MACDEXT.obj & + ..\..\..\..\..\temp\cmr\ta_MACDFIX.obj & + ..\..\..\..\..\temp\cmr\ta_MAMA.obj & + ..\..\..\..\..\temp\cmr\ta_MAVP.obj & + ..\..\..\..\..\temp\cmr\ta_MAX.obj & + ..\..\..\..\..\temp\cmr\ta_MAXINDEX.obj & + ..\..\..\..\..\temp\cmr\ta_MEDPRICE.obj & + ..\..\..\..\..\temp\cmr\ta_MFI.obj & + ..\..\..\..\..\temp\cmr\ta_MIDPOINT.obj & + ..\..\..\..\..\temp\cmr\ta_MIDPRICE.obj & + ..\..\..\..\..\temp\cmr\ta_MIN.obj & + ..\..\..\..\..\temp\cmr\ta_MININDEX.obj & + ..\..\..\..\..\temp\cmr\ta_MINMAX.obj & + ..\..\..\..\..\temp\cmr\ta_MINMAXINDEX.obj & + ..\..\..\..\..\temp\cmr\ta_MINUS_DI.obj & + ..\..\..\..\..\temp\cmr\ta_MINUS_DM.obj & + ..\..\..\..\..\temp\cmr\ta_MOM.obj & + ..\..\..\..\..\temp\cmr\ta_MULT.obj & + ..\..\..\..\..\temp\cmr\ta_NATR.obj & + ..\..\..\..\..\temp\cmr\ta_OBV.obj & + ..\..\..\..\..\temp\cmr\ta_PLUS_DI.obj & + ..\..\..\..\..\temp\cmr\ta_PLUS_DM.obj & + ..\..\..\..\..\temp\cmr\ta_PPO.obj & + ..\..\..\..\..\temp\cmr\ta_ROC.obj & + ..\..\..\..\..\temp\cmr\ta_ROCP.obj & + ..\..\..\..\..\temp\cmr\ta_ROCR.obj & + ..\..\..\..\..\temp\cmr\ta_ROCR100.obj & + ..\..\..\..\..\temp\cmr\ta_RSI.obj & + ..\..\..\..\..\temp\cmr\ta_SAR.obj & + ..\..\..\..\..\temp\cmr\ta_SAREXT.obj & + ..\..\..\..\..\temp\cmr\ta_SIN.obj & + ..\..\..\..\..\temp\cmr\ta_SINH.obj & + ..\..\..\..\..\temp\cmr\ta_SMA.obj & + ..\..\..\..\..\temp\cmr\ta_SQRT.obj & + ..\..\..\..\..\temp\cmr\ta_STDDEV.obj & + ..\..\..\..\..\temp\cmr\ta_STOCH.obj & + ..\..\..\..\..\temp\cmr\ta_STOCHF.obj & + ..\..\..\..\..\temp\cmr\ta_STOCHRSI.obj & + ..\..\..\..\..\temp\cmr\ta_SUB.obj & + ..\..\..\..\..\temp\cmr\ta_SUM.obj & + ..\..\..\..\..\temp\cmr\ta_T3.obj & + ..\..\..\..\..\temp\cmr\ta_TAN.obj & + ..\..\..\..\..\temp\cmr\ta_TANH.obj & + ..\..\..\..\..\temp\cmr\ta_TEMA.obj & + ..\..\..\..\..\temp\cmr\ta_TRANGE.obj & + ..\..\..\..\..\temp\cmr\ta_TRIMA.obj & + ..\..\..\..\..\temp\cmr\ta_TRIX.obj & + ..\..\..\..\..\temp\cmr\ta_TSF.obj & + ..\..\..\..\..\temp\cmr\ta_TYPPRICE.obj & + ..\..\..\..\..\temp\cmr\ta_ULTOSC.obj & + ..\..\..\..\..\temp\cmr\ta_VAR.obj & + ..\..\..\..\..\temp\cmr\ta_WCLPRICE.obj & + ..\..\..\..\..\temp\cmr\ta_WILLR.obj & + ..\..\..\..\..\temp\cmr\ta_WMA.obj +SRCMOC = +OBJMOC = +DIST = +TARGET = ..\..\..\..\..\lib\ta_libc_cmr.lib +TMPLIST = ta_libc_cmr.lst + +####### Build rules + +all: $(TARGET) + +$(TARGET): $(OBJECTS) $(OBJMOC) + @%create $(TMPLIST) + @for %i in ( $(OBJECTS) $(OBJMOC) ) do @%append $(TMPLIST) +'%i' + $(LIB) $(TARGET) @$(TMPLIST) + del $(TMPLIST) + +moc: $(SRCMOC) + +tmake: ../cmr/win32/watcom/ta_libc/Makefile + +../cmr/win32/watcom/ta_libc/Makefile: ta_libc/ta_libc.pro + tmake ta_libc/ta_libc.pro -o ../cmr/win32/watcom/ta_libc/Makefile + +dist: + $(ZIP) ta_libc/ta_libc.zip ta_libc/ta_libc.pro $(SOURCES) $(HEADERS) $(DIST) + +clean: + -del ..\..\..\..\..\temp\cmr\ta_global.obj + -del ..\..\..\..\..\temp\cmr\ta_retcode.obj + -del ..\..\..\..\..\temp\cmr\ta_version.obj + -del ..\..\..\..\..\temp\cmr\ta_abstract.obj + -del ..\..\..\..\..\temp\cmr\ta_def_ui.obj + -del ..\..\..\..\..\temp\cmr\ta_func_api.obj + -del ..\..\..\..\..\temp\cmr\ta_group_idx.obj + -del ..\..\..\..\..\temp\cmr\ta_frame.obj + -del ..\..\..\..\..\temp\cmr\table_a.obj + -del ..\..\..\..\..\temp\cmr\table_b.obj + -del ..\..\..\..\..\temp\cmr\table_c.obj + -del ..\..\..\..\..\temp\cmr\table_d.obj + -del ..\..\..\..\..\temp\cmr\table_e.obj + -del ..\..\..\..\..\temp\cmr\table_f.obj + -del ..\..\..\..\..\temp\cmr\table_g.obj + -del ..\..\..\..\..\temp\cmr\table_h.obj + -del ..\..\..\..\..\temp\cmr\table_i.obj + -del ..\..\..\..\..\temp\cmr\table_j.obj + -del ..\..\..\..\..\temp\cmr\table_k.obj + -del ..\..\..\..\..\temp\cmr\table_l.obj + -del ..\..\..\..\..\temp\cmr\table_m.obj + -del ..\..\..\..\..\temp\cmr\table_n.obj + -del ..\..\..\..\..\temp\cmr\table_o.obj + -del ..\..\..\..\..\temp\cmr\table_p.obj + -del ..\..\..\..\..\temp\cmr\table_q.obj + -del ..\..\..\..\..\temp\cmr\table_r.obj + -del ..\..\..\..\..\temp\cmr\table_s.obj + -del ..\..\..\..\..\temp\cmr\table_t.obj + -del ..\..\..\..\..\temp\cmr\table_u.obj + -del ..\..\..\..\..\temp\cmr\table_v.obj + -del ..\..\..\..\..\temp\cmr\table_w.obj + -del ..\..\..\..\..\temp\cmr\table_x.obj + -del ..\..\..\..\..\temp\cmr\table_y.obj + -del ..\..\..\..\..\temp\cmr\table_z.obj + -del ..\..\..\..\..\temp\cmr\ta_utility.obj + -del ..\..\..\..\..\temp\cmr\ta_ACOS.obj + -del ..\..\..\..\..\temp\cmr\ta_AD.obj + -del ..\..\..\..\..\temp\cmr\ta_ADD.obj + -del ..\..\..\..\..\temp\cmr\ta_ADOSC.obj + -del ..\..\..\..\..\temp\cmr\ta_ADX.obj + -del ..\..\..\..\..\temp\cmr\ta_ADXR.obj + -del ..\..\..\..\..\temp\cmr\ta_APO.obj + -del ..\..\..\..\..\temp\cmr\ta_AROON.obj + -del ..\..\..\..\..\temp\cmr\ta_AROONOSC.obj + -del ..\..\..\..\..\temp\cmr\ta_ASIN.obj + -del ..\..\..\..\..\temp\cmr\ta_ATAN.obj + -del ..\..\..\..\..\temp\cmr\ta_ATR.obj + -del ..\..\..\..\..\temp\cmr\ta_AVGPRICE.obj + -del ..\..\..\..\..\temp\cmr\ta_BBANDS.obj + -del ..\..\..\..\..\temp\cmr\ta_BETA.obj + -del ..\..\..\..\..\temp\cmr\ta_BOP.obj + -del ..\..\..\..\..\temp\cmr\ta_CCI.obj + -del ..\..\..\..\..\temp\cmr\ta_CDL2CROWS.obj + -del ..\..\..\..\..\temp\cmr\ta_CDL3BLACKCROWS.obj + -del ..\..\..\..\..\temp\cmr\ta_CDL3INSIDE.obj + -del ..\..\..\..\..\temp\cmr\ta_CDL3LINESTRIKE.obj + -del ..\..\..\..\..\temp\cmr\ta_CDL3OUTSIDE.obj + -del ..\..\..\..\..\temp\cmr\ta_CDL3STARSINSOUTH.obj + -del ..\..\..\..\..\temp\cmr\ta_CDL3WHITESOLDIERS.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLABANDONEDBABY.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLADVANCEBLOCK.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLBELTHOLD.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLBREAKAWAY.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLCLOSINGMARUBOZU.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLCONCEALBABYSWALL.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLCOUNTERATTACK.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLDARKCLOUDCOVER.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLDOJI.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLDOJISTAR.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLDRAGONFLYDOJI.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLENGULFING.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLEVENINGDOJISTAR.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLEVENINGSTAR.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLGAPSIDESIDEWHITE.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLGRAVESTONEDOJI.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLHAMMER.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLHANGINGMAN.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLHARAMI.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLHARAMICROSS.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLHIGHWAVE.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLHIKKAKE.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLHIKKAKEMOD.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLHOMINGPIGEON.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLIDENTICAL3CROWS.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLINNECK.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLINVERTEDHAMMER.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLKICKING.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLKICKINGBYLENGTH.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLLADDERBOTTOM.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLLONGLEGGEDDOJI.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLLONGLINE.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLMARUBOZU.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLMATCHINGLOW.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLMATHOLD.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLMORNINGDOJISTAR.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLMORNINGSTAR.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLONNECK.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLPIERCING.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLRICKSHAWMAN.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLRISEFALL3METHODS.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLSEPARATINGLINES.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLSHOOTINGSTAR.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLSHORTLINE.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLSPINNINGTOP.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLSTALLEDPATTERN.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLSTICKSANDWICH.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLTAKURI.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLTASUKIGAP.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLTHRUSTING.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLTRISTAR.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLUNIQUE3RIVER.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLUPSIDEGAP2CROWS.obj + -del ..\..\..\..\..\temp\cmr\ta_CDLXSIDEGAP3METHODS.obj + -del ..\..\..\..\..\temp\cmr\ta_CEIL.obj + -del ..\..\..\..\..\temp\cmr\ta_CMO.obj + -del ..\..\..\..\..\temp\cmr\ta_CORREL.obj + -del ..\..\..\..\..\temp\cmr\ta_COS.obj + -del ..\..\..\..\..\temp\cmr\ta_COSH.obj + -del ..\..\..\..\..\temp\cmr\ta_DEMA.obj + -del ..\..\..\..\..\temp\cmr\ta_DIV.obj + -del ..\..\..\..\..\temp\cmr\ta_DX.obj + -del ..\..\..\..\..\temp\cmr\ta_EMA.obj + -del ..\..\..\..\..\temp\cmr\ta_EXP.obj + -del ..\..\..\..\..\temp\cmr\ta_FLOOR.obj + -del ..\..\..\..\..\temp\cmr\ta_HT_DCPERIOD.obj + -del ..\..\..\..\..\temp\cmr\ta_HT_DCPHASE.obj + -del ..\..\..\..\..\temp\cmr\ta_HT_PHASOR.obj + -del ..\..\..\..\..\temp\cmr\ta_HT_SINE.obj + -del ..\..\..\..\..\temp\cmr\ta_HT_TRENDLINE.obj + -del ..\..\..\..\..\temp\cmr\ta_HT_TRENDMODE.obj + -del ..\..\..\..\..\temp\cmr\ta_KAMA.obj + -del ..\..\..\..\..\temp\cmr\ta_LINEARREG.obj + -del ..\..\..\..\..\temp\cmr\ta_LINEARREG_ANGLE.obj + -del ..\..\..\..\..\temp\cmr\ta_LINEARREG_INTERCEPT.obj + -del ..\..\..\..\..\temp\cmr\ta_LINEARREG_SLOPE.obj + -del ..\..\..\..\..\temp\cmr\ta_LN.obj + -del ..\..\..\..\..\temp\cmr\ta_LOG10.obj + -del ..\..\..\..\..\temp\cmr\ta_MA.obj + -del ..\..\..\..\..\temp\cmr\ta_MACD.obj + -del ..\..\..\..\..\temp\cmr\ta_MACDEXT.obj + -del ..\..\..\..\..\temp\cmr\ta_MACDFIX.obj + -del ..\..\..\..\..\temp\cmr\ta_MAMA.obj + -del ..\..\..\..\..\temp\cmr\ta_MAVP.obj + -del ..\..\..\..\..\temp\cmr\ta_MAX.obj + -del ..\..\..\..\..\temp\cmr\ta_MAXINDEX.obj + -del ..\..\..\..\..\temp\cmr\ta_MEDPRICE.obj + -del ..\..\..\..\..\temp\cmr\ta_MFI.obj + -del ..\..\..\..\..\temp\cmr\ta_MIDPOINT.obj + -del ..\..\..\..\..\temp\cmr\ta_MIDPRICE.obj + -del ..\..\..\..\..\temp\cmr\ta_MIN.obj + -del ..\..\..\..\..\temp\cmr\ta_MININDEX.obj + -del ..\..\..\..\..\temp\cmr\ta_MINMAX.obj + -del ..\..\..\..\..\temp\cmr\ta_MINMAXINDEX.obj + -del ..\..\..\..\..\temp\cmr\ta_MINUS_DI.obj + -del ..\..\..\..\..\temp\cmr\ta_MINUS_DM.obj + -del ..\..\..\..\..\temp\cmr\ta_MOM.obj + -del ..\..\..\..\..\temp\cmr\ta_MULT.obj + -del ..\..\..\..\..\temp\cmr\ta_NATR.obj + -del ..\..\..\..\..\temp\cmr\ta_OBV.obj + -del ..\..\..\..\..\temp\cmr\ta_PLUS_DI.obj + -del ..\..\..\..\..\temp\cmr\ta_PLUS_DM.obj + -del ..\..\..\..\..\temp\cmr\ta_PPO.obj + -del ..\..\..\..\..\temp\cmr\ta_ROC.obj + -del ..\..\..\..\..\temp\cmr\ta_ROCP.obj + -del ..\..\..\..\..\temp\cmr\ta_ROCR.obj + -del ..\..\..\..\..\temp\cmr\ta_ROCR100.obj + -del ..\..\..\..\..\temp\cmr\ta_RSI.obj + -del ..\..\..\..\..\temp\cmr\ta_SAR.obj + -del ..\..\..\..\..\temp\cmr\ta_SAREXT.obj + -del ..\..\..\..\..\temp\cmr\ta_SIN.obj + -del ..\..\..\..\..\temp\cmr\ta_SINH.obj + -del ..\..\..\..\..\temp\cmr\ta_SMA.obj + -del ..\..\..\..\..\temp\cmr\ta_SQRT.obj + -del ..\..\..\..\..\temp\cmr\ta_STDDEV.obj + -del ..\..\..\..\..\temp\cmr\ta_STOCH.obj + -del ..\..\..\..\..\temp\cmr\ta_STOCHF.obj + -del ..\..\..\..\..\temp\cmr\ta_STOCHRSI.obj + -del ..\..\..\..\..\temp\cmr\ta_SUB.obj + -del ..\..\..\..\..\temp\cmr\ta_SUM.obj + -del ..\..\..\..\..\temp\cmr\ta_T3.obj + -del ..\..\..\..\..\temp\cmr\ta_TAN.obj + -del ..\..\..\..\..\temp\cmr\ta_TANH.obj + -del ..\..\..\..\..\temp\cmr\ta_TEMA.obj + -del ..\..\..\..\..\temp\cmr\ta_TRANGE.obj + -del ..\..\..\..\..\temp\cmr\ta_TRIMA.obj + -del ..\..\..\..\..\temp\cmr\ta_TRIX.obj + -del ..\..\..\..\..\temp\cmr\ta_TSF.obj + -del ..\..\..\..\..\temp\cmr\ta_TYPPRICE.obj + -del ..\..\..\..\..\temp\cmr\ta_ULTOSC.obj + -del ..\..\..\..\..\temp\cmr\ta_VAR.obj + -del ..\..\..\..\..\temp\cmr\ta_WCLPRICE.obj + -del ..\..\..\..\..\temp\cmr\ta_WILLR.obj + -del ..\..\..\..\..\temp\cmr\ta_WMA.obj + -del $(TARGET) + -del ../../../../../bin/*.map + -del ../../../../../bin/*._xe + -del ../../../../../bin/*.tds + -del ../../../../../bin/*.pdb + -del ../../../../../bin/*.pbo + -del ../../../../../bin/*.pbi + -del ../../../../../bin/*.pbt + +####### Compile + +..\..\..\..\..\temp\cmr\ta_global.obj: ..\..\..\..\..\src\ta_common\ta_global.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_global.obj ..\..\..\..\..\src\ta_common\ta_global.c + +..\..\..\..\..\temp\cmr\ta_retcode.obj: ..\..\..\..\..\src\ta_common\ta_retcode.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_retcode.obj ..\..\..\..\..\src\ta_common\ta_retcode.c + +..\..\..\..\..\temp\cmr\ta_version.obj: ..\..\..\..\..\src\ta_common\ta_version.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_version.obj ..\..\..\..\..\src\ta_common\ta_version.c + +..\..\..\..\..\temp\cmr\ta_abstract.obj: ..\..\..\..\..\src\ta_abstract\ta_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_abstract.obj ..\..\..\..\..\src\ta_abstract\ta_abstract.c + +..\..\..\..\..\temp\cmr\ta_def_ui.obj: ..\..\..\..\..\src\ta_abstract\ta_def_ui.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_def_ui.obj ..\..\..\..\..\src\ta_abstract\ta_def_ui.c + +..\..\..\..\..\temp\cmr\ta_func_api.obj: ..\..\..\..\..\src\ta_abstract\ta_func_api.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_func_api.obj ..\..\..\..\..\src\ta_abstract\ta_func_api.c + +..\..\..\..\..\temp\cmr\ta_group_idx.obj: ..\..\..\..\..\src\ta_abstract\ta_group_idx.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_group_idx.obj ..\..\..\..\..\src\ta_abstract\ta_group_idx.c + +..\..\..\..\..\temp\cmr\ta_frame.obj: ..\..\..\..\..\src\ta_abstract\frames\ta_frame.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_frame.obj ..\..\..\..\..\src\ta_abstract\frames\ta_frame.c + +..\..\..\..\..\temp\cmr\table_a.obj: ..\..\..\..\..\src\ta_abstract\tables\table_a.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\table_a.obj ..\..\..\..\..\src\ta_abstract\tables\table_a.c + +..\..\..\..\..\temp\cmr\table_b.obj: ..\..\..\..\..\src\ta_abstract\tables\table_b.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\table_b.obj ..\..\..\..\..\src\ta_abstract\tables\table_b.c + +..\..\..\..\..\temp\cmr\table_c.obj: ..\..\..\..\..\src\ta_abstract\tables\table_c.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\table_c.obj ..\..\..\..\..\src\ta_abstract\tables\table_c.c + +..\..\..\..\..\temp\cmr\table_d.obj: ..\..\..\..\..\src\ta_abstract\tables\table_d.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\table_d.obj ..\..\..\..\..\src\ta_abstract\tables\table_d.c + +..\..\..\..\..\temp\cmr\table_e.obj: ..\..\..\..\..\src\ta_abstract\tables\table_e.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\table_e.obj ..\..\..\..\..\src\ta_abstract\tables\table_e.c + +..\..\..\..\..\temp\cmr\table_f.obj: ..\..\..\..\..\src\ta_abstract\tables\table_f.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\table_f.obj ..\..\..\..\..\src\ta_abstract\tables\table_f.c + +..\..\..\..\..\temp\cmr\table_g.obj: ..\..\..\..\..\src\ta_abstract\tables\table_g.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\table_g.obj ..\..\..\..\..\src\ta_abstract\tables\table_g.c + +..\..\..\..\..\temp\cmr\table_h.obj: ..\..\..\..\..\src\ta_abstract\tables\table_h.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\table_h.obj ..\..\..\..\..\src\ta_abstract\tables\table_h.c + +..\..\..\..\..\temp\cmr\table_i.obj: ..\..\..\..\..\src\ta_abstract\tables\table_i.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\table_i.obj ..\..\..\..\..\src\ta_abstract\tables\table_i.c + +..\..\..\..\..\temp\cmr\table_j.obj: ..\..\..\..\..\src\ta_abstract\tables\table_j.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\table_j.obj ..\..\..\..\..\src\ta_abstract\tables\table_j.c + +..\..\..\..\..\temp\cmr\table_k.obj: ..\..\..\..\..\src\ta_abstract\tables\table_k.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\table_k.obj ..\..\..\..\..\src\ta_abstract\tables\table_k.c + +..\..\..\..\..\temp\cmr\table_l.obj: ..\..\..\..\..\src\ta_abstract\tables\table_l.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\table_l.obj ..\..\..\..\..\src\ta_abstract\tables\table_l.c + +..\..\..\..\..\temp\cmr\table_m.obj: ..\..\..\..\..\src\ta_abstract\tables\table_m.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\table_m.obj ..\..\..\..\..\src\ta_abstract\tables\table_m.c + +..\..\..\..\..\temp\cmr\table_n.obj: ..\..\..\..\..\src\ta_abstract\tables\table_n.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\table_n.obj ..\..\..\..\..\src\ta_abstract\tables\table_n.c + +..\..\..\..\..\temp\cmr\table_o.obj: ..\..\..\..\..\src\ta_abstract\tables\table_o.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\table_o.obj ..\..\..\..\..\src\ta_abstract\tables\table_o.c + +..\..\..\..\..\temp\cmr\table_p.obj: ..\..\..\..\..\src\ta_abstract\tables\table_p.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\table_p.obj ..\..\..\..\..\src\ta_abstract\tables\table_p.c + +..\..\..\..\..\temp\cmr\table_q.obj: ..\..\..\..\..\src\ta_abstract\tables\table_q.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\table_q.obj ..\..\..\..\..\src\ta_abstract\tables\table_q.c + +..\..\..\..\..\temp\cmr\table_r.obj: ..\..\..\..\..\src\ta_abstract\tables\table_r.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\table_r.obj ..\..\..\..\..\src\ta_abstract\tables\table_r.c + +..\..\..\..\..\temp\cmr\table_s.obj: ..\..\..\..\..\src\ta_abstract\tables\table_s.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\table_s.obj ..\..\..\..\..\src\ta_abstract\tables\table_s.c + +..\..\..\..\..\temp\cmr\table_t.obj: ..\..\..\..\..\src\ta_abstract\tables\table_t.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\table_t.obj ..\..\..\..\..\src\ta_abstract\tables\table_t.c + +..\..\..\..\..\temp\cmr\table_u.obj: ..\..\..\..\..\src\ta_abstract\tables\table_u.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\table_u.obj ..\..\..\..\..\src\ta_abstract\tables\table_u.c + +..\..\..\..\..\temp\cmr\table_v.obj: ..\..\..\..\..\src\ta_abstract\tables\table_v.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\table_v.obj ..\..\..\..\..\src\ta_abstract\tables\table_v.c + +..\..\..\..\..\temp\cmr\table_w.obj: ..\..\..\..\..\src\ta_abstract\tables\table_w.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\table_w.obj ..\..\..\..\..\src\ta_abstract\tables\table_w.c + +..\..\..\..\..\temp\cmr\table_x.obj: ..\..\..\..\..\src\ta_abstract\tables\table_x.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\table_x.obj ..\..\..\..\..\src\ta_abstract\tables\table_x.c + +..\..\..\..\..\temp\cmr\table_y.obj: ..\..\..\..\..\src\ta_abstract\tables\table_y.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\table_y.obj ..\..\..\..\..\src\ta_abstract\tables\table_y.c + +..\..\..\..\..\temp\cmr\table_z.obj: ..\..\..\..\..\src\ta_abstract\tables\table_z.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\table_z.obj ..\..\..\..\..\src\ta_abstract\tables\table_z.c + +..\..\..\..\..\temp\cmr\ta_utility.obj: ..\..\..\..\..\src\ta_func\ta_utility.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_utility.obj ..\..\..\..\..\src\ta_func\ta_utility.c + +..\..\..\..\..\temp\cmr\ta_ACOS.obj: ..\..\..\..\..\src\ta_func\ta_ACOS.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_ACOS.obj ..\..\..\..\..\src\ta_func\ta_ACOS.c + +..\..\..\..\..\temp\cmr\ta_AD.obj: ..\..\..\..\..\src\ta_func\ta_AD.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_AD.obj ..\..\..\..\..\src\ta_func\ta_AD.c + +..\..\..\..\..\temp\cmr\ta_ADD.obj: ..\..\..\..\..\src\ta_func\ta_ADD.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_ADD.obj ..\..\..\..\..\src\ta_func\ta_ADD.c + +..\..\..\..\..\temp\cmr\ta_ADOSC.obj: ..\..\..\..\..\src\ta_func\ta_ADOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_ADOSC.obj ..\..\..\..\..\src\ta_func\ta_ADOSC.c + +..\..\..\..\..\temp\cmr\ta_ADX.obj: ..\..\..\..\..\src\ta_func\ta_ADX.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_ADX.obj ..\..\..\..\..\src\ta_func\ta_ADX.c + +..\..\..\..\..\temp\cmr\ta_ADXR.obj: ..\..\..\..\..\src\ta_func\ta_ADXR.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_ADXR.obj ..\..\..\..\..\src\ta_func\ta_ADXR.c + +..\..\..\..\..\temp\cmr\ta_APO.obj: ..\..\..\..\..\src\ta_func\ta_APO.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_APO.obj ..\..\..\..\..\src\ta_func\ta_APO.c + +..\..\..\..\..\temp\cmr\ta_AROON.obj: ..\..\..\..\..\src\ta_func\ta_AROON.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_AROON.obj ..\..\..\..\..\src\ta_func\ta_AROON.c + +..\..\..\..\..\temp\cmr\ta_AROONOSC.obj: ..\..\..\..\..\src\ta_func\ta_AROONOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_AROONOSC.obj ..\..\..\..\..\src\ta_func\ta_AROONOSC.c + +..\..\..\..\..\temp\cmr\ta_ASIN.obj: ..\..\..\..\..\src\ta_func\ta_ASIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_ASIN.obj ..\..\..\..\..\src\ta_func\ta_ASIN.c + +..\..\..\..\..\temp\cmr\ta_ATAN.obj: ..\..\..\..\..\src\ta_func\ta_ATAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_ATAN.obj ..\..\..\..\..\src\ta_func\ta_ATAN.c + +..\..\..\..\..\temp\cmr\ta_ATR.obj: ..\..\..\..\..\src\ta_func\ta_ATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_ATR.obj ..\..\..\..\..\src\ta_func\ta_ATR.c + +..\..\..\..\..\temp\cmr\ta_AVGPRICE.obj: ..\..\..\..\..\src\ta_func\ta_AVGPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_AVGPRICE.obj ..\..\..\..\..\src\ta_func\ta_AVGPRICE.c + +..\..\..\..\..\temp\cmr\ta_BBANDS.obj: ..\..\..\..\..\src\ta_func\ta_BBANDS.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_BBANDS.obj ..\..\..\..\..\src\ta_func\ta_BBANDS.c + +..\..\..\..\..\temp\cmr\ta_BETA.obj: ..\..\..\..\..\src\ta_func\ta_BETA.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_BETA.obj ..\..\..\..\..\src\ta_func\ta_BETA.c + +..\..\..\..\..\temp\cmr\ta_BOP.obj: ..\..\..\..\..\src\ta_func\ta_BOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_BOP.obj ..\..\..\..\..\src\ta_func\ta_BOP.c + +..\..\..\..\..\temp\cmr\ta_CCI.obj: ..\..\..\..\..\src\ta_func\ta_CCI.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CCI.obj ..\..\..\..\..\src\ta_func\ta_CCI.c + +..\..\..\..\..\temp\cmr\ta_CDL2CROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDL2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CDL2CROWS.obj ..\..\..\..\..\src\ta_func\ta_CDL2CROWS.c + +..\..\..\..\..\temp\cmr\ta_CDL3BLACKCROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDL3BLACKCROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CDL3BLACKCROWS.obj ..\..\..\..\..\src\ta_func\ta_CDL3BLACKCROWS.c + +..\..\..\..\..\temp\cmr\ta_CDL3INSIDE.obj: ..\..\..\..\..\src\ta_func\ta_CDL3INSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CDL3INSIDE.obj ..\..\..\..\..\src\ta_func\ta_CDL3INSIDE.c + +..\..\..\..\..\temp\cmr\ta_CDL3LINESTRIKE.obj: ..\..\..\..\..\src\ta_func\ta_CDL3LINESTRIKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CDL3LINESTRIKE.obj ..\..\..\..\..\src\ta_func\ta_CDL3LINESTRIKE.c + +..\..\..\..\..\temp\cmr\ta_CDL3OUTSIDE.obj: ..\..\..\..\..\src\ta_func\ta_CDL3OUTSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CDL3OUTSIDE.obj ..\..\..\..\..\src\ta_func\ta_CDL3OUTSIDE.c + +..\..\..\..\..\temp\cmr\ta_CDL3STARSINSOUTH.obj: ..\..\..\..\..\src\ta_func\ta_CDL3STARSINSOUTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CDL3STARSINSOUTH.obj ..\..\..\..\..\src\ta_func\ta_CDL3STARSINSOUTH.c + +..\..\..\..\..\temp\cmr\ta_CDL3WHITESOLDIERS.obj: ..\..\..\..\..\src\ta_func\ta_CDL3WHITESOLDIERS.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CDL3WHITESOLDIERS.obj ..\..\..\..\..\src\ta_func\ta_CDL3WHITESOLDIERS.c + +..\..\..\..\..\temp\cmr\ta_CDLABANDONEDBABY.obj: ..\..\..\..\..\src\ta_func\ta_CDLABANDONEDBABY.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CDLABANDONEDBABY.obj ..\..\..\..\..\src\ta_func\ta_CDLABANDONEDBABY.c + +..\..\..\..\..\temp\cmr\ta_CDLADVANCEBLOCK.obj: ..\..\..\..\..\src\ta_func\ta_CDLADVANCEBLOCK.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CDLADVANCEBLOCK.obj ..\..\..\..\..\src\ta_func\ta_CDLADVANCEBLOCK.c + +..\..\..\..\..\temp\cmr\ta_CDLBELTHOLD.obj: ..\..\..\..\..\src\ta_func\ta_CDLBELTHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CDLBELTHOLD.obj ..\..\..\..\..\src\ta_func\ta_CDLBELTHOLD.c + +..\..\..\..\..\temp\cmr\ta_CDLBREAKAWAY.obj: ..\..\..\..\..\src\ta_func\ta_CDLBREAKAWAY.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CDLBREAKAWAY.obj ..\..\..\..\..\src\ta_func\ta_CDLBREAKAWAY.c + +..\..\..\..\..\temp\cmr\ta_CDLCLOSINGMARUBOZU.obj: ..\..\..\..\..\src\ta_func\ta_CDLCLOSINGMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CDLCLOSINGMARUBOZU.obj ..\..\..\..\..\src\ta_func\ta_CDLCLOSINGMARUBOZU.c + +..\..\..\..\..\temp\cmr\ta_CDLCONCEALBABYSWALL.obj: ..\..\..\..\..\src\ta_func\ta_CDLCONCEALBABYSWALL.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CDLCONCEALBABYSWALL.obj ..\..\..\..\..\src\ta_func\ta_CDLCONCEALBABYSWALL.c + +..\..\..\..\..\temp\cmr\ta_CDLCOUNTERATTACK.obj: ..\..\..\..\..\src\ta_func\ta_CDLCOUNTERATTACK.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CDLCOUNTERATTACK.obj ..\..\..\..\..\src\ta_func\ta_CDLCOUNTERATTACK.c + +..\..\..\..\..\temp\cmr\ta_CDLDARKCLOUDCOVER.obj: ..\..\..\..\..\src\ta_func\ta_CDLDARKCLOUDCOVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CDLDARKCLOUDCOVER.obj ..\..\..\..\..\src\ta_func\ta_CDLDARKCLOUDCOVER.c + +..\..\..\..\..\temp\cmr\ta_CDLDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CDLDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLDOJI.c + +..\..\..\..\..\temp\cmr\ta_CDLDOJISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CDLDOJISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLDOJISTAR.c + +..\..\..\..\..\temp\cmr\ta_CDLDRAGONFLYDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLDRAGONFLYDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CDLDRAGONFLYDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLDRAGONFLYDOJI.c + +..\..\..\..\..\temp\cmr\ta_CDLENGULFING.obj: ..\..\..\..\..\src\ta_func\ta_CDLENGULFING.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CDLENGULFING.obj ..\..\..\..\..\src\ta_func\ta_CDLENGULFING.c + +..\..\..\..\..\temp\cmr\ta_CDLEVENINGDOJISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLEVENINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CDLEVENINGDOJISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLEVENINGDOJISTAR.c + +..\..\..\..\..\temp\cmr\ta_CDLEVENINGSTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLEVENINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CDLEVENINGSTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLEVENINGSTAR.c + +..\..\..\..\..\temp\cmr\ta_CDLGAPSIDESIDEWHITE.obj: ..\..\..\..\..\src\ta_func\ta_CDLGAPSIDESIDEWHITE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CDLGAPSIDESIDEWHITE.obj ..\..\..\..\..\src\ta_func\ta_CDLGAPSIDESIDEWHITE.c + +..\..\..\..\..\temp\cmr\ta_CDLGRAVESTONEDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLGRAVESTONEDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CDLGRAVESTONEDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLGRAVESTONEDOJI.c + +..\..\..\..\..\temp\cmr\ta_CDLHAMMER.obj: ..\..\..\..\..\src\ta_func\ta_CDLHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CDLHAMMER.obj ..\..\..\..\..\src\ta_func\ta_CDLHAMMER.c + +..\..\..\..\..\temp\cmr\ta_CDLHANGINGMAN.obj: ..\..\..\..\..\src\ta_func\ta_CDLHANGINGMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CDLHANGINGMAN.obj ..\..\..\..\..\src\ta_func\ta_CDLHANGINGMAN.c + +..\..\..\..\..\temp\cmr\ta_CDLHARAMI.obj: ..\..\..\..\..\src\ta_func\ta_CDLHARAMI.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CDLHARAMI.obj ..\..\..\..\..\src\ta_func\ta_CDLHARAMI.c + +..\..\..\..\..\temp\cmr\ta_CDLHARAMICROSS.obj: ..\..\..\..\..\src\ta_func\ta_CDLHARAMICROSS.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CDLHARAMICROSS.obj ..\..\..\..\..\src\ta_func\ta_CDLHARAMICROSS.c + +..\..\..\..\..\temp\cmr\ta_CDLHIGHWAVE.obj: ..\..\..\..\..\src\ta_func\ta_CDLHIGHWAVE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CDLHIGHWAVE.obj ..\..\..\..\..\src\ta_func\ta_CDLHIGHWAVE.c + +..\..\..\..\..\temp\cmr\ta_CDLHIKKAKE.obj: ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CDLHIKKAKE.obj ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKE.c + +..\..\..\..\..\temp\cmr\ta_CDLHIKKAKEMOD.obj: ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKEMOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CDLHIKKAKEMOD.obj ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKEMOD.c + +..\..\..\..\..\temp\cmr\ta_CDLHOMINGPIGEON.obj: ..\..\..\..\..\src\ta_func\ta_CDLHOMINGPIGEON.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CDLHOMINGPIGEON.obj ..\..\..\..\..\src\ta_func\ta_CDLHOMINGPIGEON.c + +..\..\..\..\..\temp\cmr\ta_CDLIDENTICAL3CROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDLIDENTICAL3CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CDLIDENTICAL3CROWS.obj ..\..\..\..\..\src\ta_func\ta_CDLIDENTICAL3CROWS.c + +..\..\..\..\..\temp\cmr\ta_CDLINNECK.obj: ..\..\..\..\..\src\ta_func\ta_CDLINNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CDLINNECK.obj ..\..\..\..\..\src\ta_func\ta_CDLINNECK.c + +..\..\..\..\..\temp\cmr\ta_CDLINVERTEDHAMMER.obj: ..\..\..\..\..\src\ta_func\ta_CDLINVERTEDHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CDLINVERTEDHAMMER.obj ..\..\..\..\..\src\ta_func\ta_CDLINVERTEDHAMMER.c + +..\..\..\..\..\temp\cmr\ta_CDLKICKING.obj: ..\..\..\..\..\src\ta_func\ta_CDLKICKING.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CDLKICKING.obj ..\..\..\..\..\src\ta_func\ta_CDLKICKING.c + +..\..\..\..\..\temp\cmr\ta_CDLKICKINGBYLENGTH.obj: ..\..\..\..\..\src\ta_func\ta_CDLKICKINGBYLENGTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CDLKICKINGBYLENGTH.obj ..\..\..\..\..\src\ta_func\ta_CDLKICKINGBYLENGTH.c + +..\..\..\..\..\temp\cmr\ta_CDLLADDERBOTTOM.obj: ..\..\..\..\..\src\ta_func\ta_CDLLADDERBOTTOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CDLLADDERBOTTOM.obj ..\..\..\..\..\src\ta_func\ta_CDLLADDERBOTTOM.c + +..\..\..\..\..\temp\cmr\ta_CDLLONGLEGGEDDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLLONGLEGGEDDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CDLLONGLEGGEDDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLLONGLEGGEDDOJI.c + +..\..\..\..\..\temp\cmr\ta_CDLLONGLINE.obj: ..\..\..\..\..\src\ta_func\ta_CDLLONGLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CDLLONGLINE.obj ..\..\..\..\..\src\ta_func\ta_CDLLONGLINE.c + +..\..\..\..\..\temp\cmr\ta_CDLMARUBOZU.obj: ..\..\..\..\..\src\ta_func\ta_CDLMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CDLMARUBOZU.obj ..\..\..\..\..\src\ta_func\ta_CDLMARUBOZU.c + +..\..\..\..\..\temp\cmr\ta_CDLMATCHINGLOW.obj: ..\..\..\..\..\src\ta_func\ta_CDLMATCHINGLOW.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CDLMATCHINGLOW.obj ..\..\..\..\..\src\ta_func\ta_CDLMATCHINGLOW.c + +..\..\..\..\..\temp\cmr\ta_CDLMATHOLD.obj: ..\..\..\..\..\src\ta_func\ta_CDLMATHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CDLMATHOLD.obj ..\..\..\..\..\src\ta_func\ta_CDLMATHOLD.c + +..\..\..\..\..\temp\cmr\ta_CDLMORNINGDOJISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLMORNINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CDLMORNINGDOJISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLMORNINGDOJISTAR.c + +..\..\..\..\..\temp\cmr\ta_CDLMORNINGSTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLMORNINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CDLMORNINGSTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLMORNINGSTAR.c + +..\..\..\..\..\temp\cmr\ta_CDLONNECK.obj: ..\..\..\..\..\src\ta_func\ta_CDLONNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CDLONNECK.obj ..\..\..\..\..\src\ta_func\ta_CDLONNECK.c + +..\..\..\..\..\temp\cmr\ta_CDLPIERCING.obj: ..\..\..\..\..\src\ta_func\ta_CDLPIERCING.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CDLPIERCING.obj ..\..\..\..\..\src\ta_func\ta_CDLPIERCING.c + +..\..\..\..\..\temp\cmr\ta_CDLRICKSHAWMAN.obj: ..\..\..\..\..\src\ta_func\ta_CDLRICKSHAWMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CDLRICKSHAWMAN.obj ..\..\..\..\..\src\ta_func\ta_CDLRICKSHAWMAN.c + +..\..\..\..\..\temp\cmr\ta_CDLRISEFALL3METHODS.obj: ..\..\..\..\..\src\ta_func\ta_CDLRISEFALL3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CDLRISEFALL3METHODS.obj ..\..\..\..\..\src\ta_func\ta_CDLRISEFALL3METHODS.c + +..\..\..\..\..\temp\cmr\ta_CDLSEPARATINGLINES.obj: ..\..\..\..\..\src\ta_func\ta_CDLSEPARATINGLINES.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CDLSEPARATINGLINES.obj ..\..\..\..\..\src\ta_func\ta_CDLSEPARATINGLINES.c + +..\..\..\..\..\temp\cmr\ta_CDLSHOOTINGSTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLSHOOTINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CDLSHOOTINGSTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLSHOOTINGSTAR.c + +..\..\..\..\..\temp\cmr\ta_CDLSHORTLINE.obj: ..\..\..\..\..\src\ta_func\ta_CDLSHORTLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CDLSHORTLINE.obj ..\..\..\..\..\src\ta_func\ta_CDLSHORTLINE.c + +..\..\..\..\..\temp\cmr\ta_CDLSPINNINGTOP.obj: ..\..\..\..\..\src\ta_func\ta_CDLSPINNINGTOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CDLSPINNINGTOP.obj ..\..\..\..\..\src\ta_func\ta_CDLSPINNINGTOP.c + +..\..\..\..\..\temp\cmr\ta_CDLSTALLEDPATTERN.obj: ..\..\..\..\..\src\ta_func\ta_CDLSTALLEDPATTERN.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CDLSTALLEDPATTERN.obj ..\..\..\..\..\src\ta_func\ta_CDLSTALLEDPATTERN.c + +..\..\..\..\..\temp\cmr\ta_CDLSTICKSANDWICH.obj: ..\..\..\..\..\src\ta_func\ta_CDLSTICKSANDWICH.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CDLSTICKSANDWICH.obj ..\..\..\..\..\src\ta_func\ta_CDLSTICKSANDWICH.c + +..\..\..\..\..\temp\cmr\ta_CDLTAKURI.obj: ..\..\..\..\..\src\ta_func\ta_CDLTAKURI.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CDLTAKURI.obj ..\..\..\..\..\src\ta_func\ta_CDLTAKURI.c + +..\..\..\..\..\temp\cmr\ta_CDLTASUKIGAP.obj: ..\..\..\..\..\src\ta_func\ta_CDLTASUKIGAP.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CDLTASUKIGAP.obj ..\..\..\..\..\src\ta_func\ta_CDLTASUKIGAP.c + +..\..\..\..\..\temp\cmr\ta_CDLTHRUSTING.obj: ..\..\..\..\..\src\ta_func\ta_CDLTHRUSTING.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CDLTHRUSTING.obj ..\..\..\..\..\src\ta_func\ta_CDLTHRUSTING.c + +..\..\..\..\..\temp\cmr\ta_CDLTRISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLTRISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CDLTRISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLTRISTAR.c + +..\..\..\..\..\temp\cmr\ta_CDLUNIQUE3RIVER.obj: ..\..\..\..\..\src\ta_func\ta_CDLUNIQUE3RIVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CDLUNIQUE3RIVER.obj ..\..\..\..\..\src\ta_func\ta_CDLUNIQUE3RIVER.c + +..\..\..\..\..\temp\cmr\ta_CDLUPSIDEGAP2CROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDLUPSIDEGAP2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CDLUPSIDEGAP2CROWS.obj ..\..\..\..\..\src\ta_func\ta_CDLUPSIDEGAP2CROWS.c + +..\..\..\..\..\temp\cmr\ta_CDLXSIDEGAP3METHODS.obj: ..\..\..\..\..\src\ta_func\ta_CDLXSIDEGAP3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CDLXSIDEGAP3METHODS.obj ..\..\..\..\..\src\ta_func\ta_CDLXSIDEGAP3METHODS.c + +..\..\..\..\..\temp\cmr\ta_CEIL.obj: ..\..\..\..\..\src\ta_func\ta_CEIL.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CEIL.obj ..\..\..\..\..\src\ta_func\ta_CEIL.c + +..\..\..\..\..\temp\cmr\ta_CMO.obj: ..\..\..\..\..\src\ta_func\ta_CMO.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CMO.obj ..\..\..\..\..\src\ta_func\ta_CMO.c + +..\..\..\..\..\temp\cmr\ta_CORREL.obj: ..\..\..\..\..\src\ta_func\ta_CORREL.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_CORREL.obj ..\..\..\..\..\src\ta_func\ta_CORREL.c + +..\..\..\..\..\temp\cmr\ta_COS.obj: ..\..\..\..\..\src\ta_func\ta_COS.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_COS.obj ..\..\..\..\..\src\ta_func\ta_COS.c + +..\..\..\..\..\temp\cmr\ta_COSH.obj: ..\..\..\..\..\src\ta_func\ta_COSH.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_COSH.obj ..\..\..\..\..\src\ta_func\ta_COSH.c + +..\..\..\..\..\temp\cmr\ta_DEMA.obj: ..\..\..\..\..\src\ta_func\ta_DEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_DEMA.obj ..\..\..\..\..\src\ta_func\ta_DEMA.c + +..\..\..\..\..\temp\cmr\ta_DIV.obj: ..\..\..\..\..\src\ta_func\ta_DIV.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_DIV.obj ..\..\..\..\..\src\ta_func\ta_DIV.c + +..\..\..\..\..\temp\cmr\ta_DX.obj: ..\..\..\..\..\src\ta_func\ta_DX.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_DX.obj ..\..\..\..\..\src\ta_func\ta_DX.c + +..\..\..\..\..\temp\cmr\ta_EMA.obj: ..\..\..\..\..\src\ta_func\ta_EMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_EMA.obj ..\..\..\..\..\src\ta_func\ta_EMA.c + +..\..\..\..\..\temp\cmr\ta_EXP.obj: ..\..\..\..\..\src\ta_func\ta_EXP.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_EXP.obj ..\..\..\..\..\src\ta_func\ta_EXP.c + +..\..\..\..\..\temp\cmr\ta_FLOOR.obj: ..\..\..\..\..\src\ta_func\ta_FLOOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_FLOOR.obj ..\..\..\..\..\src\ta_func\ta_FLOOR.c + +..\..\..\..\..\temp\cmr\ta_HT_DCPERIOD.obj: ..\..\..\..\..\src\ta_func\ta_HT_DCPERIOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_HT_DCPERIOD.obj ..\..\..\..\..\src\ta_func\ta_HT_DCPERIOD.c + +..\..\..\..\..\temp\cmr\ta_HT_DCPHASE.obj: ..\..\..\..\..\src\ta_func\ta_HT_DCPHASE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_HT_DCPHASE.obj ..\..\..\..\..\src\ta_func\ta_HT_DCPHASE.c + +..\..\..\..\..\temp\cmr\ta_HT_PHASOR.obj: ..\..\..\..\..\src\ta_func\ta_HT_PHASOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_HT_PHASOR.obj ..\..\..\..\..\src\ta_func\ta_HT_PHASOR.c + +..\..\..\..\..\temp\cmr\ta_HT_SINE.obj: ..\..\..\..\..\src\ta_func\ta_HT_SINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_HT_SINE.obj ..\..\..\..\..\src\ta_func\ta_HT_SINE.c + +..\..\..\..\..\temp\cmr\ta_HT_TRENDLINE.obj: ..\..\..\..\..\src\ta_func\ta_HT_TRENDLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_HT_TRENDLINE.obj ..\..\..\..\..\src\ta_func\ta_HT_TRENDLINE.c + +..\..\..\..\..\temp\cmr\ta_HT_TRENDMODE.obj: ..\..\..\..\..\src\ta_func\ta_HT_TRENDMODE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_HT_TRENDMODE.obj ..\..\..\..\..\src\ta_func\ta_HT_TRENDMODE.c + +..\..\..\..\..\temp\cmr\ta_KAMA.obj: ..\..\..\..\..\src\ta_func\ta_KAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_KAMA.obj ..\..\..\..\..\src\ta_func\ta_KAMA.c + +..\..\..\..\..\temp\cmr\ta_LINEARREG.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_LINEARREG.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG.c + +..\..\..\..\..\temp\cmr\ta_LINEARREG_ANGLE.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG_ANGLE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_LINEARREG_ANGLE.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG_ANGLE.c + +..\..\..\..\..\temp\cmr\ta_LINEARREG_INTERCEPT.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG_INTERCEPT.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_LINEARREG_INTERCEPT.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG_INTERCEPT.c + +..\..\..\..\..\temp\cmr\ta_LINEARREG_SLOPE.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG_SLOPE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_LINEARREG_SLOPE.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG_SLOPE.c + +..\..\..\..\..\temp\cmr\ta_LN.obj: ..\..\..\..\..\src\ta_func\ta_LN.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_LN.obj ..\..\..\..\..\src\ta_func\ta_LN.c + +..\..\..\..\..\temp\cmr\ta_LOG10.obj: ..\..\..\..\..\src\ta_func\ta_LOG10.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_LOG10.obj ..\..\..\..\..\src\ta_func\ta_LOG10.c + +..\..\..\..\..\temp\cmr\ta_MA.obj: ..\..\..\..\..\src\ta_func\ta_MA.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_MA.obj ..\..\..\..\..\src\ta_func\ta_MA.c + +..\..\..\..\..\temp\cmr\ta_MACD.obj: ..\..\..\..\..\src\ta_func\ta_MACD.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_MACD.obj ..\..\..\..\..\src\ta_func\ta_MACD.c + +..\..\..\..\..\temp\cmr\ta_MACDEXT.obj: ..\..\..\..\..\src\ta_func\ta_MACDEXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_MACDEXT.obj ..\..\..\..\..\src\ta_func\ta_MACDEXT.c + +..\..\..\..\..\temp\cmr\ta_MACDFIX.obj: ..\..\..\..\..\src\ta_func\ta_MACDFIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_MACDFIX.obj ..\..\..\..\..\src\ta_func\ta_MACDFIX.c + +..\..\..\..\..\temp\cmr\ta_MAMA.obj: ..\..\..\..\..\src\ta_func\ta_MAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_MAMA.obj ..\..\..\..\..\src\ta_func\ta_MAMA.c + +..\..\..\..\..\temp\cmr\ta_MAVP.obj: ..\..\..\..\..\src\ta_func\ta_MAVP.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_MAVP.obj ..\..\..\..\..\src\ta_func\ta_MAVP.c + +..\..\..\..\..\temp\cmr\ta_MAX.obj: ..\..\..\..\..\src\ta_func\ta_MAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_MAX.obj ..\..\..\..\..\src\ta_func\ta_MAX.c + +..\..\..\..\..\temp\cmr\ta_MAXINDEX.obj: ..\..\..\..\..\src\ta_func\ta_MAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_MAXINDEX.obj ..\..\..\..\..\src\ta_func\ta_MAXINDEX.c + +..\..\..\..\..\temp\cmr\ta_MEDPRICE.obj: ..\..\..\..\..\src\ta_func\ta_MEDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_MEDPRICE.obj ..\..\..\..\..\src\ta_func\ta_MEDPRICE.c + +..\..\..\..\..\temp\cmr\ta_MFI.obj: ..\..\..\..\..\src\ta_func\ta_MFI.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_MFI.obj ..\..\..\..\..\src\ta_func\ta_MFI.c + +..\..\..\..\..\temp\cmr\ta_MIDPOINT.obj: ..\..\..\..\..\src\ta_func\ta_MIDPOINT.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_MIDPOINT.obj ..\..\..\..\..\src\ta_func\ta_MIDPOINT.c + +..\..\..\..\..\temp\cmr\ta_MIDPRICE.obj: ..\..\..\..\..\src\ta_func\ta_MIDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_MIDPRICE.obj ..\..\..\..\..\src\ta_func\ta_MIDPRICE.c + +..\..\..\..\..\temp\cmr\ta_MIN.obj: ..\..\..\..\..\src\ta_func\ta_MIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_MIN.obj ..\..\..\..\..\src\ta_func\ta_MIN.c + +..\..\..\..\..\temp\cmr\ta_MININDEX.obj: ..\..\..\..\..\src\ta_func\ta_MININDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_MININDEX.obj ..\..\..\..\..\src\ta_func\ta_MININDEX.c + +..\..\..\..\..\temp\cmr\ta_MINMAX.obj: ..\..\..\..\..\src\ta_func\ta_MINMAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_MINMAX.obj ..\..\..\..\..\src\ta_func\ta_MINMAX.c + +..\..\..\..\..\temp\cmr\ta_MINMAXINDEX.obj: ..\..\..\..\..\src\ta_func\ta_MINMAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_MINMAXINDEX.obj ..\..\..\..\..\src\ta_func\ta_MINMAXINDEX.c + +..\..\..\..\..\temp\cmr\ta_MINUS_DI.obj: ..\..\..\..\..\src\ta_func\ta_MINUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_MINUS_DI.obj ..\..\..\..\..\src\ta_func\ta_MINUS_DI.c + +..\..\..\..\..\temp\cmr\ta_MINUS_DM.obj: ..\..\..\..\..\src\ta_func\ta_MINUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_MINUS_DM.obj ..\..\..\..\..\src\ta_func\ta_MINUS_DM.c + +..\..\..\..\..\temp\cmr\ta_MOM.obj: ..\..\..\..\..\src\ta_func\ta_MOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_MOM.obj ..\..\..\..\..\src\ta_func\ta_MOM.c + +..\..\..\..\..\temp\cmr\ta_MULT.obj: ..\..\..\..\..\src\ta_func\ta_MULT.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_MULT.obj ..\..\..\..\..\src\ta_func\ta_MULT.c + +..\..\..\..\..\temp\cmr\ta_NATR.obj: ..\..\..\..\..\src\ta_func\ta_NATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_NATR.obj ..\..\..\..\..\src\ta_func\ta_NATR.c + +..\..\..\..\..\temp\cmr\ta_OBV.obj: ..\..\..\..\..\src\ta_func\ta_OBV.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_OBV.obj ..\..\..\..\..\src\ta_func\ta_OBV.c + +..\..\..\..\..\temp\cmr\ta_PLUS_DI.obj: ..\..\..\..\..\src\ta_func\ta_PLUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_PLUS_DI.obj ..\..\..\..\..\src\ta_func\ta_PLUS_DI.c + +..\..\..\..\..\temp\cmr\ta_PLUS_DM.obj: ..\..\..\..\..\src\ta_func\ta_PLUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_PLUS_DM.obj ..\..\..\..\..\src\ta_func\ta_PLUS_DM.c + +..\..\..\..\..\temp\cmr\ta_PPO.obj: ..\..\..\..\..\src\ta_func\ta_PPO.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_PPO.obj ..\..\..\..\..\src\ta_func\ta_PPO.c + +..\..\..\..\..\temp\cmr\ta_ROC.obj: ..\..\..\..\..\src\ta_func\ta_ROC.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_ROC.obj ..\..\..\..\..\src\ta_func\ta_ROC.c + +..\..\..\..\..\temp\cmr\ta_ROCP.obj: ..\..\..\..\..\src\ta_func\ta_ROCP.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_ROCP.obj ..\..\..\..\..\src\ta_func\ta_ROCP.c + +..\..\..\..\..\temp\cmr\ta_ROCR.obj: ..\..\..\..\..\src\ta_func\ta_ROCR.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_ROCR.obj ..\..\..\..\..\src\ta_func\ta_ROCR.c + +..\..\..\..\..\temp\cmr\ta_ROCR100.obj: ..\..\..\..\..\src\ta_func\ta_ROCR100.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_ROCR100.obj ..\..\..\..\..\src\ta_func\ta_ROCR100.c + +..\..\..\..\..\temp\cmr\ta_RSI.obj: ..\..\..\..\..\src\ta_func\ta_RSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_RSI.obj ..\..\..\..\..\src\ta_func\ta_RSI.c + +..\..\..\..\..\temp\cmr\ta_SAR.obj: ..\..\..\..\..\src\ta_func\ta_SAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_SAR.obj ..\..\..\..\..\src\ta_func\ta_SAR.c + +..\..\..\..\..\temp\cmr\ta_SAREXT.obj: ..\..\..\..\..\src\ta_func\ta_SAREXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_SAREXT.obj ..\..\..\..\..\src\ta_func\ta_SAREXT.c + +..\..\..\..\..\temp\cmr\ta_SIN.obj: ..\..\..\..\..\src\ta_func\ta_SIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_SIN.obj ..\..\..\..\..\src\ta_func\ta_SIN.c + +..\..\..\..\..\temp\cmr\ta_SINH.obj: ..\..\..\..\..\src\ta_func\ta_SINH.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_SINH.obj ..\..\..\..\..\src\ta_func\ta_SINH.c + +..\..\..\..\..\temp\cmr\ta_SMA.obj: ..\..\..\..\..\src\ta_func\ta_SMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_SMA.obj ..\..\..\..\..\src\ta_func\ta_SMA.c + +..\..\..\..\..\temp\cmr\ta_SQRT.obj: ..\..\..\..\..\src\ta_func\ta_SQRT.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_SQRT.obj ..\..\..\..\..\src\ta_func\ta_SQRT.c + +..\..\..\..\..\temp\cmr\ta_STDDEV.obj: ..\..\..\..\..\src\ta_func\ta_STDDEV.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_STDDEV.obj ..\..\..\..\..\src\ta_func\ta_STDDEV.c + +..\..\..\..\..\temp\cmr\ta_STOCH.obj: ..\..\..\..\..\src\ta_func\ta_STOCH.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_STOCH.obj ..\..\..\..\..\src\ta_func\ta_STOCH.c + +..\..\..\..\..\temp\cmr\ta_STOCHF.obj: ..\..\..\..\..\src\ta_func\ta_STOCHF.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_STOCHF.obj ..\..\..\..\..\src\ta_func\ta_STOCHF.c + +..\..\..\..\..\temp\cmr\ta_STOCHRSI.obj: ..\..\..\..\..\src\ta_func\ta_STOCHRSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_STOCHRSI.obj ..\..\..\..\..\src\ta_func\ta_STOCHRSI.c + +..\..\..\..\..\temp\cmr\ta_SUB.obj: ..\..\..\..\..\src\ta_func\ta_SUB.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_SUB.obj ..\..\..\..\..\src\ta_func\ta_SUB.c + +..\..\..\..\..\temp\cmr\ta_SUM.obj: ..\..\..\..\..\src\ta_func\ta_SUM.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_SUM.obj ..\..\..\..\..\src\ta_func\ta_SUM.c + +..\..\..\..\..\temp\cmr\ta_T3.obj: ..\..\..\..\..\src\ta_func\ta_T3.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_T3.obj ..\..\..\..\..\src\ta_func\ta_T3.c + +..\..\..\..\..\temp\cmr\ta_TAN.obj: ..\..\..\..\..\src\ta_func\ta_TAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_TAN.obj ..\..\..\..\..\src\ta_func\ta_TAN.c + +..\..\..\..\..\temp\cmr\ta_TANH.obj: ..\..\..\..\..\src\ta_func\ta_TANH.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_TANH.obj ..\..\..\..\..\src\ta_func\ta_TANH.c + +..\..\..\..\..\temp\cmr\ta_TEMA.obj: ..\..\..\..\..\src\ta_func\ta_TEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_TEMA.obj ..\..\..\..\..\src\ta_func\ta_TEMA.c + +..\..\..\..\..\temp\cmr\ta_TRANGE.obj: ..\..\..\..\..\src\ta_func\ta_TRANGE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_TRANGE.obj ..\..\..\..\..\src\ta_func\ta_TRANGE.c + +..\..\..\..\..\temp\cmr\ta_TRIMA.obj: ..\..\..\..\..\src\ta_func\ta_TRIMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_TRIMA.obj ..\..\..\..\..\src\ta_func\ta_TRIMA.c + +..\..\..\..\..\temp\cmr\ta_TRIX.obj: ..\..\..\..\..\src\ta_func\ta_TRIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_TRIX.obj ..\..\..\..\..\src\ta_func\ta_TRIX.c + +..\..\..\..\..\temp\cmr\ta_TSF.obj: ..\..\..\..\..\src\ta_func\ta_TSF.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_TSF.obj ..\..\..\..\..\src\ta_func\ta_TSF.c + +..\..\..\..\..\temp\cmr\ta_TYPPRICE.obj: ..\..\..\..\..\src\ta_func\ta_TYPPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_TYPPRICE.obj ..\..\..\..\..\src\ta_func\ta_TYPPRICE.c + +..\..\..\..\..\temp\cmr\ta_ULTOSC.obj: ..\..\..\..\..\src\ta_func\ta_ULTOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_ULTOSC.obj ..\..\..\..\..\src\ta_func\ta_ULTOSC.c + +..\..\..\..\..\temp\cmr\ta_VAR.obj: ..\..\..\..\..\src\ta_func\ta_VAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_VAR.obj ..\..\..\..\..\src\ta_func\ta_VAR.c + +..\..\..\..\..\temp\cmr\ta_WCLPRICE.obj: ..\..\..\..\..\src\ta_func\ta_WCLPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_WCLPRICE.obj ..\..\..\..\..\src\ta_func\ta_WCLPRICE.c + +..\..\..\..\..\temp\cmr\ta_WILLR.obj: ..\..\..\..\..\src\ta_func\ta_WILLR.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_WILLR.obj ..\..\..\..\..\src\ta_func\ta_WILLR.c + +..\..\..\..\..\temp\cmr\ta_WMA.obj: ..\..\..\..\..\src\ta_func\ta_WMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_WMA.obj ..\..\..\..\..\src\ta_func\ta_WMA.c + diff --git a/make/cmr/win32/watcom/ta_regtest/Makefile b/make/cmr/win32/watcom/ta_regtest/Makefile new file mode 100644 index 000000000..f2e488d15 --- /dev/null +++ b/make/cmr/win32/watcom/ta_regtest/Makefile @@ -0,0 +1,219 @@ +############################################################################# +# Makefile for building ta_regtest +# Generated by tmake; +# Project: ta_regtest/ta_regtest +# Template: app +############################################################################# + +####### Compiler, tools and options + +CC = wcl386 +CXX = wcl386 +CFLAGS = -zq -w2 -ox -d=WIN32 +CXXFLAGS= -zq -w2 -ox -d=WIN32 +INCPATH = -i="..\..\..\..\..\src\ta_common" -i="..\..\..\..\..\src\tools\ta_regtest" -i="..\..\..\..\..\src\ta_func" -i="..\..\..\..\..\include" +LINK = wlink +LFLAGS = op quiet op c sys nt +LIBS = ..\..\..\..\..\lib\ta_libc_cmr.lib +MOC = moc + +ZIP = zip -r -9 + +####### Files + +HEADERS = +SOURCES = ..\..\..\..\..\src\tools\ta_regtest\ta_regtest.c & + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_candlestick.c & + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_1in_1out.c & + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_1in_2out.c & + ..\..\..\..\..\src\tools\ta_regtest\test_internals.c & + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_adx.c & + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_bbands.c & + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_ma.c & + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_macd.c & + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_minmax.c & + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_mom.c & + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_ema.c & + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hl.c & + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hlc.c & + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hlcv.c & + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_ohlc.c & + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_po.c & + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_rsi.c & + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_sar.c & + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_stddev.c & + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_stoch.c & + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_trange.c & + ..\..\..\..\..\src\tools\ta_regtest\test_util.c & + ..\..\..\..\..\src\tools\ta_regtest\test_data.c & + ..\..\..\..\..\src\tools\ta_regtest\test_abstract.c +OBJECTS = ..\..\..\..\..\temp\cmr\ta_regtest.obj & + ..\..\..\..\..\temp\cmr\test_candlestick.obj & + ..\..\..\..\..\temp\cmr\test_1in_1out.obj & + ..\..\..\..\..\temp\cmr\test_1in_2out.obj & + ..\..\..\..\..\temp\cmr\test_internals.obj & + ..\..\..\..\..\temp\cmr\test_adx.obj & + ..\..\..\..\..\temp\cmr\test_bbands.obj & + ..\..\..\..\..\temp\cmr\test_ma.obj & + ..\..\..\..\..\temp\cmr\test_macd.obj & + ..\..\..\..\..\temp\cmr\test_minmax.obj & + ..\..\..\..\..\temp\cmr\test_mom.obj & + ..\..\..\..\..\temp\cmr\test_per_ema.obj & + ..\..\..\..\..\temp\cmr\test_per_hl.obj & + ..\..\..\..\..\temp\cmr\test_per_hlc.obj & + ..\..\..\..\..\temp\cmr\test_per_hlcv.obj & + ..\..\..\..\..\temp\cmr\test_per_ohlc.obj & + ..\..\..\..\..\temp\cmr\test_po.obj & + ..\..\..\..\..\temp\cmr\test_rsi.obj & + ..\..\..\..\..\temp\cmr\test_sar.obj & + ..\..\..\..\..\temp\cmr\test_stddev.obj & + ..\..\..\..\..\temp\cmr\test_stoch.obj & + ..\..\..\..\..\temp\cmr\test_trange.obj & + ..\..\..\..\..\temp\cmr\test_util.obj & + ..\..\..\..\..\temp\cmr\test_data.obj & + ..\..\..\..\..\temp\cmr\test_abstract.obj +SRCMOC = +OBJMOC = +DIST = +TARGET = ..\..\..\..\..\bin\ta_regtest.exe +TMPLIST = ta_regtest.lst + +####### Build rules + +all: $(TARGET) + +$(TARGET): $(OBJECTS) $(OBJMOC) + @%create $(TMPLIST) + @%append $(TMPLIST) NAME ta_regtest + @%append $(TMPLIST) FIL ..\..\..\..\..\temp\cmr\ta_regtest.obj,..\..\..\..\..\temp\cmr\test_candlestick.obj,..\..\..\..\..\temp\cmr\test_1in_1out.obj,..\..\..\..\..\temp\cmr\test_1in_2out.obj,..\..\..\..\..\temp\cmr\test_internals.obj,..\..\..\..\..\temp\cmr\test_adx.obj,..\..\..\..\..\temp\cmr\test_bbands.obj,..\..\..\..\..\temp\cmr\test_ma.obj,..\..\..\..\..\temp\cmr\test_macd.obj,..\..\..\..\..\temp\cmr\test_minmax.obj,..\..\..\..\..\temp\cmr\test_mom.obj,..\..\..\..\..\temp\cmr\test_per_ema.obj,..\..\..\..\..\temp\cmr\test_per_hl.obj,..\..\..\..\..\temp\cmr\test_per_hlc.obj,..\..\..\..\..\temp\cmr\test_per_hlcv.obj,..\..\..\..\..\temp\cmr\test_per_ohlc.obj,..\..\..\..\..\temp\cmr\test_po.obj,..\..\..\..\..\temp\cmr\test_rsi.obj,..\..\..\..\..\temp\cmr\test_sar.obj,..\..\..\..\..\temp\cmr\test_stddev.obj,..\..\..\..\..\temp\cmr\test_stoch.obj,..\..\..\..\..\temp\cmr\test_trange.obj,..\..\..\..\..\temp\cmr\test_util.obj,..\..\..\..\..\temp\cmr\test_data.obj,..\..\..\..\..\temp\cmr\test_abstract.obj + @%append $(TMPLIST) LIBR ..\..\..\..\..\lib\ta_libc_cmr.lib + $(LINK) $(LFLAGS) @$(TMPLIST) + del $(TMPLIST) + +moc: $(SRCMOC) + +tmake: ../cmr/win32/watcom/ta_regtest/Makefile + +../cmr/win32/watcom/ta_regtest/Makefile: ta_regtest/ta_regtest.pro + tmake ta_regtest/ta_regtest.pro -o ../cmr/win32/watcom/ta_regtest/Makefile + +dist: + $(ZIP) ta_regtest/ta_regtest.zip ta_regtest/ta_regtest.pro $(SOURCES) $(HEADERS) $(DIST) + +clean: + -del ..\..\..\..\..\temp\cmr\ta_regtest.obj + -del ..\..\..\..\..\temp\cmr\test_candlestick.obj + -del ..\..\..\..\..\temp\cmr\test_1in_1out.obj + -del ..\..\..\..\..\temp\cmr\test_1in_2out.obj + -del ..\..\..\..\..\temp\cmr\test_internals.obj + -del ..\..\..\..\..\temp\cmr\test_adx.obj + -del ..\..\..\..\..\temp\cmr\test_bbands.obj + -del ..\..\..\..\..\temp\cmr\test_ma.obj + -del ..\..\..\..\..\temp\cmr\test_macd.obj + -del ..\..\..\..\..\temp\cmr\test_minmax.obj + -del ..\..\..\..\..\temp\cmr\test_mom.obj + -del ..\..\..\..\..\temp\cmr\test_per_ema.obj + -del ..\..\..\..\..\temp\cmr\test_per_hl.obj + -del ..\..\..\..\..\temp\cmr\test_per_hlc.obj + -del ..\..\..\..\..\temp\cmr\test_per_hlcv.obj + -del ..\..\..\..\..\temp\cmr\test_per_ohlc.obj + -del ..\..\..\..\..\temp\cmr\test_po.obj + -del ..\..\..\..\..\temp\cmr\test_rsi.obj + -del ..\..\..\..\..\temp\cmr\test_sar.obj + -del ..\..\..\..\..\temp\cmr\test_stddev.obj + -del ..\..\..\..\..\temp\cmr\test_stoch.obj + -del ..\..\..\..\..\temp\cmr\test_trange.obj + -del ..\..\..\..\..\temp\cmr\test_util.obj + -del ..\..\..\..\..\temp\cmr\test_data.obj + -del ..\..\..\..\..\temp\cmr\test_abstract.obj + -del $(TARGET) + -del ../../../../../bin/*.map + -del ../../../../../bin/*._xe + -del ../../../../../bin/*.tds + -del ../../../../../bin/*.pdb + -del ../../../../../bin/*.pbo + -del ../../../../../bin/*.pbi + -del ../../../../../bin/*.pbt + -del ../../../../../temp/cmr/*.pch + -del ../../../../../temp/cmr/*.idb + -del ../../../../../temp/cmr/ta_regtest/*.pch + -del ../../../../../temp/cmr/ta_regtest/*.idb + -del ../../../../../temp/cmr/ta_regtest/*.obj + +####### Compile + +..\..\..\..\..\temp\cmr\ta_regtest.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_regtest.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\ta_regtest.obj ..\..\..\..\..\src\tools\ta_regtest\ta_regtest.c + +..\..\..\..\..\temp\cmr\test_candlestick.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_candlestick.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\test_candlestick.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_candlestick.c + +..\..\..\..\..\temp\cmr\test_1in_1out.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_1in_1out.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\test_1in_1out.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_1in_1out.c + +..\..\..\..\..\temp\cmr\test_1in_2out.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_1in_2out.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\test_1in_2out.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_1in_2out.c + +..\..\..\..\..\temp\cmr\test_internals.obj: ..\..\..\..\..\src\tools\ta_regtest\test_internals.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\test_internals.obj ..\..\..\..\..\src\tools\ta_regtest\test_internals.c + +..\..\..\..\..\temp\cmr\test_adx.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_adx.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\test_adx.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_adx.c + +..\..\..\..\..\temp\cmr\test_bbands.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_bbands.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\test_bbands.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_bbands.c + +..\..\..\..\..\temp\cmr\test_ma.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_ma.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\test_ma.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_ma.c + +..\..\..\..\..\temp\cmr\test_macd.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_macd.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\test_macd.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_macd.c + +..\..\..\..\..\temp\cmr\test_minmax.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_minmax.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\test_minmax.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_minmax.c + +..\..\..\..\..\temp\cmr\test_mom.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_mom.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\test_mom.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_mom.c + +..\..\..\..\..\temp\cmr\test_per_ema.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_ema.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\test_per_ema.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_ema.c + +..\..\..\..\..\temp\cmr\test_per_hl.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hl.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\test_per_hl.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hl.c + +..\..\..\..\..\temp\cmr\test_per_hlc.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hlc.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\test_per_hlc.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hlc.c + +..\..\..\..\..\temp\cmr\test_per_hlcv.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hlcv.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\test_per_hlcv.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hlcv.c + +..\..\..\..\..\temp\cmr\test_per_ohlc.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_ohlc.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\test_per_ohlc.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_ohlc.c + +..\..\..\..\..\temp\cmr\test_po.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_po.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\test_po.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_po.c + +..\..\..\..\..\temp\cmr\test_rsi.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_rsi.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\test_rsi.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_rsi.c + +..\..\..\..\..\temp\cmr\test_sar.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_sar.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\test_sar.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_sar.c + +..\..\..\..\..\temp\cmr\test_stddev.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_stddev.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\test_stddev.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_stddev.c + +..\..\..\..\..\temp\cmr\test_stoch.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_stoch.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\test_stoch.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_stoch.c + +..\..\..\..\..\temp\cmr\test_trange.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_trange.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\test_trange.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_trange.c + +..\..\..\..\..\temp\cmr\test_util.obj: ..\..\..\..\..\src\tools\ta_regtest\test_util.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\test_util.obj ..\..\..\..\..\src\tools\ta_regtest\test_util.c + +..\..\..\..\..\temp\cmr\test_data.obj: ..\..\..\..\..\src\tools\ta_regtest\test_data.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\test_data.obj ..\..\..\..\..\src\tools\ta_regtest\test_data.c + +..\..\..\..\..\temp\cmr\test_abstract.obj: ..\..\..\..\..\src\tools\ta_regtest\test_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\cmr\test_abstract.obj ..\..\..\..\..\src\tools\ta_regtest\test_abstract.c + diff --git a/make/csd/cygwin/g++/Makefile b/make/csd/cygwin/g++/Makefile new file mode 100644 index 000000000..b59a6f4f7 --- /dev/null +++ b/make/csd/cygwin/g++/Makefile @@ -0,0 +1,36 @@ +############################################################################# +# Makefile for building targets in sub directories. +# Generated by tmake; +# Project: rootmake +# Template: subdirs +############################################################################# + +MAKEFILE= Makefile +TMAKE = tmake + +SUBDIRS = ta_common \ + ta_func \ + ta_abstract \ + ta_libc \ + gen_code \ + ta_regtest + +all: $(SUBDIRS) + +$(SUBDIRS): FORCE + cd $@; $(MAKE) + +tmake: ../csd/cygwin/g++/Makefile + +../csd/cygwin/g++/Makefile: rootmake.pro + tmake rootmake.pro -o ../csd/cygwin/g++/Makefile + +tmake_all: + for i in $(SUBDIRS); do ( if [ -d $$i ]; then cd $$i ; $(MAKE) -f $(MAKEFILE) tmake_all || true; fi; ) ; done + +#### $text = "\t" . 'for i in $(SUBDIRS); do ( if [ -d $$i ]; then cd $$i ; pro=`basename $$i`.pro ; $(TMAKE) $$pro -o $(MAKEFILE); grep "TEMPLATE.*subdirs" $$pro 2>/dev/null >/dev/null && $(MAKE) -f $(MAKEFILE) tmake_all || true; fi; ) ; done'; + +clean release debug: + for i in $(SUBDIRS); do ( if [ -d $$i ]; then cd $$i ; $(MAKE) $@; fi; ) ; done + +FORCE: diff --git a/make/csd/cygwin/g++/gen_code/Makefile b/make/csd/cygwin/g++/gen_code/Makefile new file mode 100644 index 000000000..7b418e3d5 --- /dev/null +++ b/make/csd/cygwin/g++/gen_code/Makefile @@ -0,0 +1,231 @@ +############################################################################# +# Makefile for building ../../../../../bin/gen_code +# Generated by tmake; +# Project: gen_code/gen_code +# Template: app +############################################################################# + +####### Compiler, tools and options + +CC = gcc +CXX = g++ +CFLAGS = -pipe -Wall -W -g -DTA_GEN_CODE -DTA_DEBUG -D_DEBUG -DTA_SINGLE_THREAD +CXXFLAGS= -pipe -Wall -W -g -DTA_GEN_CODE -DTA_DEBUG -D_DEBUG -DTA_SINGLE_THREAD +INCPATH = -I../../../../../include -I../../../../../src/ta_common -I../../../../../src/ta_abstract -I../../../../../src/ta_abstract/tables -I../../../../../src/ta_abstract/frames +LINK = g++ +LFLAGS = +LIBS = $(SUBLIBS) ../../../../../lib/libta_common_csd.a +MOC = $(QTDIR)/bin/moc +UIC = $(QTDIR)/bin/uic + +TAR = tar -cf +GZIP = gzip -9f + +####### Support for 64-bit systems +ifeq ($(shell uname -m), x86_64) + CFLAGS += -march=x86-64 -m64 -D__64BIT__ + CXXFLAGS += -march=x86-64 -m64 -D__64BIT__ +endif + +####### Apply additional overruling user flags, if any +CFLAGS += $(CUSERFLAGS) +CXXFLAGS += $(CUSERFLAGS) + +####### Files + +HEADERS = +SOURCES = ../../../../../src/tools/gen_code/gen_code.c \ + ../../../../../src/ta_abstract/ta_abstract.c \ + ../../../../../src/ta_abstract/ta_def_ui.c \ + ../../../../../src/ta_abstract/tables/table_a.c \ + ../../../../../src/ta_abstract/tables/table_b.c \ + ../../../../../src/ta_abstract/tables/table_c.c \ + ../../../../../src/ta_abstract/tables/table_d.c \ + ../../../../../src/ta_abstract/tables/table_e.c \ + ../../../../../src/ta_abstract/tables/table_f.c \ + ../../../../../src/ta_abstract/tables/table_g.c \ + ../../../../../src/ta_abstract/tables/table_h.c \ + ../../../../../src/ta_abstract/tables/table_i.c \ + ../../../../../src/ta_abstract/tables/table_j.c \ + ../../../../../src/ta_abstract/tables/table_k.c \ + ../../../../../src/ta_abstract/tables/table_l.c \ + ../../../../../src/ta_abstract/tables/table_m.c \ + ../../../../../src/ta_abstract/tables/table_n.c \ + ../../../../../src/ta_abstract/tables/table_o.c \ + ../../../../../src/ta_abstract/tables/table_p.c \ + ../../../../../src/ta_abstract/tables/table_q.c \ + ../../../../../src/ta_abstract/tables/table_r.c \ + ../../../../../src/ta_abstract/tables/table_s.c \ + ../../../../../src/ta_abstract/tables/table_t.c \ + ../../../../../src/ta_abstract/tables/table_u.c \ + ../../../../../src/ta_abstract/tables/table_v.c \ + ../../../../../src/ta_abstract/tables/table_w.c \ + ../../../../../src/ta_abstract/tables/table_x.c \ + ../../../../../src/ta_abstract/tables/table_y.c \ + ../../../../../src/ta_abstract/tables/table_z.c +OBJECTS = ../../../../../temp/csd/gen_code/gen_code.o \ + ../../../../../temp/csd/gen_code/ta_abstract.o \ + ../../../../../temp/csd/gen_code/ta_def_ui.o \ + ../../../../../temp/csd/gen_code/table_a.o \ + ../../../../../temp/csd/gen_code/table_b.o \ + ../../../../../temp/csd/gen_code/table_c.o \ + ../../../../../temp/csd/gen_code/table_d.o \ + ../../../../../temp/csd/gen_code/table_e.o \ + ../../../../../temp/csd/gen_code/table_f.o \ + ../../../../../temp/csd/gen_code/table_g.o \ + ../../../../../temp/csd/gen_code/table_h.o \ + ../../../../../temp/csd/gen_code/table_i.o \ + ../../../../../temp/csd/gen_code/table_j.o \ + ../../../../../temp/csd/gen_code/table_k.o \ + ../../../../../temp/csd/gen_code/table_l.o \ + ../../../../../temp/csd/gen_code/table_m.o \ + ../../../../../temp/csd/gen_code/table_n.o \ + ../../../../../temp/csd/gen_code/table_o.o \ + ../../../../../temp/csd/gen_code/table_p.o \ + ../../../../../temp/csd/gen_code/table_q.o \ + ../../../../../temp/csd/gen_code/table_r.o \ + ../../../../../temp/csd/gen_code/table_s.o \ + ../../../../../temp/csd/gen_code/table_t.o \ + ../../../../../temp/csd/gen_code/table_u.o \ + ../../../../../temp/csd/gen_code/table_v.o \ + ../../../../../temp/csd/gen_code/table_w.o \ + ../../../../../temp/csd/gen_code/table_x.o \ + ../../../../../temp/csd/gen_code/table_y.o \ + ../../../../../temp/csd/gen_code/table_z.o +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ../../../../../bin/gen_code +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .C .c + +.cpp.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cxx.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cc.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.C.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.c.o: + $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $< + +####### Build rules + + +all: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS) + +moc: $(SRCMOC) + +clean: + -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) + -rm -f *~ core + +####### Sub-libraries + + +###### Combined headers + + +####### Compile + +../../../../../temp/csd/gen_code/gen_code.o: ../../../../../src/tools/gen_code/gen_code.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/gen_code/gen_code.o ../../../../../src/tools/gen_code/gen_code.c + +../../../../../temp/csd/gen_code/ta_abstract.o: ../../../../../src/ta_abstract/ta_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/gen_code/ta_abstract.o ../../../../../src/ta_abstract/ta_abstract.c + +../../../../../temp/csd/gen_code/ta_def_ui.o: ../../../../../src/ta_abstract/ta_def_ui.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/gen_code/ta_def_ui.o ../../../../../src/ta_abstract/ta_def_ui.c + +../../../../../temp/csd/gen_code/table_a.o: ../../../../../src/ta_abstract/tables/table_a.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/gen_code/table_a.o ../../../../../src/ta_abstract/tables/table_a.c + +../../../../../temp/csd/gen_code/table_b.o: ../../../../../src/ta_abstract/tables/table_b.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/gen_code/table_b.o ../../../../../src/ta_abstract/tables/table_b.c + +../../../../../temp/csd/gen_code/table_c.o: ../../../../../src/ta_abstract/tables/table_c.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/gen_code/table_c.o ../../../../../src/ta_abstract/tables/table_c.c + +../../../../../temp/csd/gen_code/table_d.o: ../../../../../src/ta_abstract/tables/table_d.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/gen_code/table_d.o ../../../../../src/ta_abstract/tables/table_d.c + +../../../../../temp/csd/gen_code/table_e.o: ../../../../../src/ta_abstract/tables/table_e.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/gen_code/table_e.o ../../../../../src/ta_abstract/tables/table_e.c + +../../../../../temp/csd/gen_code/table_f.o: ../../../../../src/ta_abstract/tables/table_f.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/gen_code/table_f.o ../../../../../src/ta_abstract/tables/table_f.c + +../../../../../temp/csd/gen_code/table_g.o: ../../../../../src/ta_abstract/tables/table_g.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/gen_code/table_g.o ../../../../../src/ta_abstract/tables/table_g.c + +../../../../../temp/csd/gen_code/table_h.o: ../../../../../src/ta_abstract/tables/table_h.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/gen_code/table_h.o ../../../../../src/ta_abstract/tables/table_h.c + +../../../../../temp/csd/gen_code/table_i.o: ../../../../../src/ta_abstract/tables/table_i.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/gen_code/table_i.o ../../../../../src/ta_abstract/tables/table_i.c + +../../../../../temp/csd/gen_code/table_j.o: ../../../../../src/ta_abstract/tables/table_j.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/gen_code/table_j.o ../../../../../src/ta_abstract/tables/table_j.c + +../../../../../temp/csd/gen_code/table_k.o: ../../../../../src/ta_abstract/tables/table_k.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/gen_code/table_k.o ../../../../../src/ta_abstract/tables/table_k.c + +../../../../../temp/csd/gen_code/table_l.o: ../../../../../src/ta_abstract/tables/table_l.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/gen_code/table_l.o ../../../../../src/ta_abstract/tables/table_l.c + +../../../../../temp/csd/gen_code/table_m.o: ../../../../../src/ta_abstract/tables/table_m.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/gen_code/table_m.o ../../../../../src/ta_abstract/tables/table_m.c + +../../../../../temp/csd/gen_code/table_n.o: ../../../../../src/ta_abstract/tables/table_n.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/gen_code/table_n.o ../../../../../src/ta_abstract/tables/table_n.c + +../../../../../temp/csd/gen_code/table_o.o: ../../../../../src/ta_abstract/tables/table_o.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/gen_code/table_o.o ../../../../../src/ta_abstract/tables/table_o.c + +../../../../../temp/csd/gen_code/table_p.o: ../../../../../src/ta_abstract/tables/table_p.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/gen_code/table_p.o ../../../../../src/ta_abstract/tables/table_p.c + +../../../../../temp/csd/gen_code/table_q.o: ../../../../../src/ta_abstract/tables/table_q.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/gen_code/table_q.o ../../../../../src/ta_abstract/tables/table_q.c + +../../../../../temp/csd/gen_code/table_r.o: ../../../../../src/ta_abstract/tables/table_r.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/gen_code/table_r.o ../../../../../src/ta_abstract/tables/table_r.c + +../../../../../temp/csd/gen_code/table_s.o: ../../../../../src/ta_abstract/tables/table_s.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/gen_code/table_s.o ../../../../../src/ta_abstract/tables/table_s.c + +../../../../../temp/csd/gen_code/table_t.o: ../../../../../src/ta_abstract/tables/table_t.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/gen_code/table_t.o ../../../../../src/ta_abstract/tables/table_t.c + +../../../../../temp/csd/gen_code/table_u.o: ../../../../../src/ta_abstract/tables/table_u.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/gen_code/table_u.o ../../../../../src/ta_abstract/tables/table_u.c + +../../../../../temp/csd/gen_code/table_v.o: ../../../../../src/ta_abstract/tables/table_v.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/gen_code/table_v.o ../../../../../src/ta_abstract/tables/table_v.c + +../../../../../temp/csd/gen_code/table_w.o: ../../../../../src/ta_abstract/tables/table_w.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/gen_code/table_w.o ../../../../../src/ta_abstract/tables/table_w.c + +../../../../../temp/csd/gen_code/table_x.o: ../../../../../src/ta_abstract/tables/table_x.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/gen_code/table_x.o ../../../../../src/ta_abstract/tables/table_x.c + +../../../../../temp/csd/gen_code/table_y.o: ../../../../../src/ta_abstract/tables/table_y.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/gen_code/table_y.o ../../../../../src/ta_abstract/tables/table_y.c + +../../../../../temp/csd/gen_code/table_z.o: ../../../../../src/ta_abstract/tables/table_z.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/gen_code/table_z.o ../../../../../src/ta_abstract/tables/table_z.c + diff --git a/make/csd/cygwin/g++/ta_abstract/Makefile b/make/csd/cygwin/g++/ta_abstract/Makefile new file mode 100644 index 000000000..27f5e69a4 --- /dev/null +++ b/make/csd/cygwin/g++/ta_abstract/Makefile @@ -0,0 +1,243 @@ +############################################################################# +# Makefile for building ../../../../../lib/libta_abstract_csd.a +# Generated by tmake; +# Project: ta_abstract/ta_abstract +# Template: lib +############################################################################# + +####### Compiler, tools and options + +CC = gcc +CXX = g++ +CFLAGS = -pipe -Wall -W -g -DTA_DEBUG -D_DEBUG -DTA_SINGLE_THREAD +CXXFLAGS= -pipe -Wall -W -g -DTA_DEBUG -D_DEBUG -DTA_SINGLE_THREAD +INCPATH = -I../../../../../src/ta_common -I../../../../../src/ta_abstract -I../../../../../src/ta_abstract/tables -I../../../../../src/ta_abstract/frames -I../../../../../include +AR = ar cqs +RANLIB = +MOC = $(QTDIR)/bin/moc +UIC = $(QTDIR)/bin/uic + +TAR = tar -cf +GZIP = gzip -9f + +####### Support for 64-bit systems +ifeq ($(shell uname -m), x86_64) + CFLAGS += -march=x86-64 -m64 -D__64BIT__ + CXXFLAGS += -march=x86-64 -m64 -D__64BIT__ +endif + +####### Apply additional overruling user flags, if any +CFLAGS += $(CUSERFLAGS) +CXXFLAGS += $(CUSERFLAGS) + +####### Files + +HEADERS = +SOURCES = ../../../../../src/ta_abstract/ta_abstract.c \ + ../../../../../src/ta_abstract/ta_def_ui.c \ + ../../../../../src/ta_abstract/ta_func_api.c \ + ../../../../../src/ta_abstract/ta_group_idx.c \ + ../../../../../src/ta_abstract/frames/ta_frame.c \ + ../../../../../src/ta_abstract/tables/table_a.c \ + ../../../../../src/ta_abstract/tables/table_b.c \ + ../../../../../src/ta_abstract/tables/table_c.c \ + ../../../../../src/ta_abstract/tables/table_d.c \ + ../../../../../src/ta_abstract/tables/table_e.c \ + ../../../../../src/ta_abstract/tables/table_f.c \ + ../../../../../src/ta_abstract/tables/table_g.c \ + ../../../../../src/ta_abstract/tables/table_h.c \ + ../../../../../src/ta_abstract/tables/table_i.c \ + ../../../../../src/ta_abstract/tables/table_j.c \ + ../../../../../src/ta_abstract/tables/table_k.c \ + ../../../../../src/ta_abstract/tables/table_l.c \ + ../../../../../src/ta_abstract/tables/table_m.c \ + ../../../../../src/ta_abstract/tables/table_n.c \ + ../../../../../src/ta_abstract/tables/table_o.c \ + ../../../../../src/ta_abstract/tables/table_p.c \ + ../../../../../src/ta_abstract/tables/table_q.c \ + ../../../../../src/ta_abstract/tables/table_r.c \ + ../../../../../src/ta_abstract/tables/table_s.c \ + ../../../../../src/ta_abstract/tables/table_t.c \ + ../../../../../src/ta_abstract/tables/table_u.c \ + ../../../../../src/ta_abstract/tables/table_v.c \ + ../../../../../src/ta_abstract/tables/table_w.c \ + ../../../../../src/ta_abstract/tables/table_x.c \ + ../../../../../src/ta_abstract/tables/table_y.c \ + ../../../../../src/ta_abstract/tables/table_z.c +OBJECTS = ../../../../../temp/csd/ta_abstract.o \ + ../../../../../temp/csd/ta_def_ui.o \ + ../../../../../temp/csd/ta_func_api.o \ + ../../../../../temp/csd/ta_group_idx.o \ + ../../../../../temp/csd/ta_frame.o \ + ../../../../../temp/csd/table_a.o \ + ../../../../../temp/csd/table_b.o \ + ../../../../../temp/csd/table_c.o \ + ../../../../../temp/csd/table_d.o \ + ../../../../../temp/csd/table_e.o \ + ../../../../../temp/csd/table_f.o \ + ../../../../../temp/csd/table_g.o \ + ../../../../../temp/csd/table_h.o \ + ../../../../../temp/csd/table_i.o \ + ../../../../../temp/csd/table_j.o \ + ../../../../../temp/csd/table_k.o \ + ../../../../../temp/csd/table_l.o \ + ../../../../../temp/csd/table_m.o \ + ../../../../../temp/csd/table_n.o \ + ../../../../../temp/csd/table_o.o \ + ../../../../../temp/csd/table_p.o \ + ../../../../../temp/csd/table_q.o \ + ../../../../../temp/csd/table_r.o \ + ../../../../../temp/csd/table_s.o \ + ../../../../../temp/csd/table_t.o \ + ../../../../../temp/csd/table_u.o \ + ../../../../../temp/csd/table_v.o \ + ../../../../../temp/csd/table_w.o \ + ../../../../../temp/csd/table_x.o \ + ../../../../../temp/csd/table_y.o \ + ../../../../../temp/csd/table_z.o +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ../../../../../lib/libta_abstract_csd.a +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .C .c + +.cpp.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cxx.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cc.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.C.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.c.o: + $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $< + +####### Build rules + + +all: $(TARGET) + +staticlib: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + -rm -f $(TARGET) + $(AR) $(TARGET) $(OBJECTS) $(OBJMOC) + +moc: $(SRCMOC) + +clean: + -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) + -rm -f *~ core + +####### Sub-libraries + + +###### Combined headers + + +####### Compile + +../../../../../temp/csd/ta_abstract.o: ../../../../../src/ta_abstract/ta_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_abstract.o ../../../../../src/ta_abstract/ta_abstract.c + +../../../../../temp/csd/ta_def_ui.o: ../../../../../src/ta_abstract/ta_def_ui.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_def_ui.o ../../../../../src/ta_abstract/ta_def_ui.c + +../../../../../temp/csd/ta_func_api.o: ../../../../../src/ta_abstract/ta_func_api.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_func_api.o ../../../../../src/ta_abstract/ta_func_api.c + +../../../../../temp/csd/ta_group_idx.o: ../../../../../src/ta_abstract/ta_group_idx.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_group_idx.o ../../../../../src/ta_abstract/ta_group_idx.c + +../../../../../temp/csd/ta_frame.o: ../../../../../src/ta_abstract/frames/ta_frame.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_frame.o ../../../../../src/ta_abstract/frames/ta_frame.c + +../../../../../temp/csd/table_a.o: ../../../../../src/ta_abstract/tables/table_a.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_a.o ../../../../../src/ta_abstract/tables/table_a.c + +../../../../../temp/csd/table_b.o: ../../../../../src/ta_abstract/tables/table_b.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_b.o ../../../../../src/ta_abstract/tables/table_b.c + +../../../../../temp/csd/table_c.o: ../../../../../src/ta_abstract/tables/table_c.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_c.o ../../../../../src/ta_abstract/tables/table_c.c + +../../../../../temp/csd/table_d.o: ../../../../../src/ta_abstract/tables/table_d.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_d.o ../../../../../src/ta_abstract/tables/table_d.c + +../../../../../temp/csd/table_e.o: ../../../../../src/ta_abstract/tables/table_e.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_e.o ../../../../../src/ta_abstract/tables/table_e.c + +../../../../../temp/csd/table_f.o: ../../../../../src/ta_abstract/tables/table_f.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_f.o ../../../../../src/ta_abstract/tables/table_f.c + +../../../../../temp/csd/table_g.o: ../../../../../src/ta_abstract/tables/table_g.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_g.o ../../../../../src/ta_abstract/tables/table_g.c + +../../../../../temp/csd/table_h.o: ../../../../../src/ta_abstract/tables/table_h.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_h.o ../../../../../src/ta_abstract/tables/table_h.c + +../../../../../temp/csd/table_i.o: ../../../../../src/ta_abstract/tables/table_i.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_i.o ../../../../../src/ta_abstract/tables/table_i.c + +../../../../../temp/csd/table_j.o: ../../../../../src/ta_abstract/tables/table_j.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_j.o ../../../../../src/ta_abstract/tables/table_j.c + +../../../../../temp/csd/table_k.o: ../../../../../src/ta_abstract/tables/table_k.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_k.o ../../../../../src/ta_abstract/tables/table_k.c + +../../../../../temp/csd/table_l.o: ../../../../../src/ta_abstract/tables/table_l.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_l.o ../../../../../src/ta_abstract/tables/table_l.c + +../../../../../temp/csd/table_m.o: ../../../../../src/ta_abstract/tables/table_m.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_m.o ../../../../../src/ta_abstract/tables/table_m.c + +../../../../../temp/csd/table_n.o: ../../../../../src/ta_abstract/tables/table_n.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_n.o ../../../../../src/ta_abstract/tables/table_n.c + +../../../../../temp/csd/table_o.o: ../../../../../src/ta_abstract/tables/table_o.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_o.o ../../../../../src/ta_abstract/tables/table_o.c + +../../../../../temp/csd/table_p.o: ../../../../../src/ta_abstract/tables/table_p.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_p.o ../../../../../src/ta_abstract/tables/table_p.c + +../../../../../temp/csd/table_q.o: ../../../../../src/ta_abstract/tables/table_q.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_q.o ../../../../../src/ta_abstract/tables/table_q.c + +../../../../../temp/csd/table_r.o: ../../../../../src/ta_abstract/tables/table_r.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_r.o ../../../../../src/ta_abstract/tables/table_r.c + +../../../../../temp/csd/table_s.o: ../../../../../src/ta_abstract/tables/table_s.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_s.o ../../../../../src/ta_abstract/tables/table_s.c + +../../../../../temp/csd/table_t.o: ../../../../../src/ta_abstract/tables/table_t.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_t.o ../../../../../src/ta_abstract/tables/table_t.c + +../../../../../temp/csd/table_u.o: ../../../../../src/ta_abstract/tables/table_u.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_u.o ../../../../../src/ta_abstract/tables/table_u.c + +../../../../../temp/csd/table_v.o: ../../../../../src/ta_abstract/tables/table_v.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_v.o ../../../../../src/ta_abstract/tables/table_v.c + +../../../../../temp/csd/table_w.o: ../../../../../src/ta_abstract/tables/table_w.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_w.o ../../../../../src/ta_abstract/tables/table_w.c + +../../../../../temp/csd/table_x.o: ../../../../../src/ta_abstract/tables/table_x.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_x.o ../../../../../src/ta_abstract/tables/table_x.c + +../../../../../temp/csd/table_y.o: ../../../../../src/ta_abstract/tables/table_y.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_y.o ../../../../../src/ta_abstract/tables/table_y.c + +../../../../../temp/csd/table_z.o: ../../../../../src/ta_abstract/tables/table_z.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_z.o ../../../../../src/ta_abstract/tables/table_z.c + diff --git a/make/csd/cygwin/g++/ta_common/Makefile b/make/csd/cygwin/g++/ta_common/Makefile new file mode 100644 index 000000000..44013cfdb --- /dev/null +++ b/make/csd/cygwin/g++/ta_common/Makefile @@ -0,0 +1,103 @@ +############################################################################# +# Makefile for building ../../../../../lib/libta_common_csd.a +# Generated by tmake; +# Project: ta_common/ta_common +# Template: lib +############################################################################# + +####### Compiler, tools and options + +CC = gcc +CXX = g++ +CFLAGS = -pipe -Wall -W -g -DTA_DEBUG -D_DEBUG -DTA_SINGLE_THREAD +CXXFLAGS= -pipe -Wall -W -g -DTA_DEBUG -D_DEBUG -DTA_SINGLE_THREAD +INCPATH = -I../../../../../src/ta_common -I../../../../../include +AR = ar cqs +RANLIB = +MOC = $(QTDIR)/bin/moc +UIC = $(QTDIR)/bin/uic + +TAR = tar -cf +GZIP = gzip -9f + +####### Support for 64-bit systems +ifeq ($(shell uname -m), x86_64) + CFLAGS += -march=x86-64 -m64 -D__64BIT__ + CXXFLAGS += -march=x86-64 -m64 -D__64BIT__ +endif + +####### Apply additional overruling user flags, if any +CFLAGS += $(CUSERFLAGS) +CXXFLAGS += $(CUSERFLAGS) + +####### Files + +HEADERS = +SOURCES = ../../../../../src/ta_common/ta_global.c \ + ../../../../../src/ta_common/ta_retcode.c \ + ../../../../../src/ta_common/ta_version.c +OBJECTS = ../../../../../temp/csd/ta_global.o \ + ../../../../../temp/csd/ta_retcode.o \ + ../../../../../temp/csd/ta_version.o +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ../../../../../lib/libta_common_csd.a +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .C .c + +.cpp.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cxx.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cc.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.C.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.c.o: + $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $< + +####### Build rules + + +all: $(TARGET) + +staticlib: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + -rm -f $(TARGET) + $(AR) $(TARGET) $(OBJECTS) $(OBJMOC) + +moc: $(SRCMOC) + +clean: + -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) + -rm -f *~ core + +####### Sub-libraries + + +###### Combined headers + + +####### Compile + +../../../../../temp/csd/ta_global.o: ../../../../../src/ta_common/ta_global.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_global.o ../../../../../src/ta_common/ta_global.c + +../../../../../temp/csd/ta_retcode.o: ../../../../../src/ta_common/ta_retcode.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_retcode.o ../../../../../src/ta_common/ta_retcode.c + +../../../../../temp/csd/ta_version.o: ../../../../../src/ta_common/ta_version.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_version.o ../../../../../src/ta_common/ta_version.c + diff --git a/make/csd/cygwin/g++/ta_func/Makefile b/make/csd/cygwin/g++/ta_func/Makefile new file mode 100644 index 000000000..7740c1a6c --- /dev/null +++ b/make/csd/cygwin/g++/ta_func/Makefile @@ -0,0 +1,883 @@ +############################################################################# +# Makefile for building ../../../../../lib/libta_func_csd.a +# Generated by tmake; +# Project: ta_func/ta_func +# Template: lib +############################################################################# + +####### Compiler, tools and options + +CC = gcc +CXX = g++ +CFLAGS = -pipe -Wall -W -g -DTA_DEBUG -D_DEBUG -DTA_SINGLE_THREAD +CXXFLAGS= -pipe -Wall -W -g -DTA_DEBUG -D_DEBUG -DTA_SINGLE_THREAD +INCPATH = -I../../../../../src/ta_common -I/n -I../../../../../include +AR = ar cqs +RANLIB = +MOC = $(QTDIR)/bin/moc +UIC = $(QTDIR)/bin/uic + +TAR = tar -cf +GZIP = gzip -9f + +####### Support for 64-bit systems +ifeq ($(shell uname -m), x86_64) + CFLAGS += -march=x86-64 -m64 -D__64BIT__ + CXXFLAGS += -march=x86-64 -m64 -D__64BIT__ +endif + +####### Apply additional overruling user flags, if any +CFLAGS += $(CUSERFLAGS) +CXXFLAGS += $(CUSERFLAGS) + +####### Files + +HEADERS = +SOURCES = ../../../../../src/ta_func/ta_utility.c \ + ../../../../../src/ta_func/ta_ACOS.c \ + ../../../../../src/ta_func/ta_AD.c \ + ../../../../../src/ta_func/ta_ADD.c \ + ../../../../../src/ta_func/ta_ADOSC.c \ + ../../../../../src/ta_func/ta_ADX.c \ + ../../../../../src/ta_func/ta_ADXR.c \ + ../../../../../src/ta_func/ta_APO.c \ + ../../../../../src/ta_func/ta_AROON.c \ + ../../../../../src/ta_func/ta_AROONOSC.c \ + ../../../../../src/ta_func/ta_ASIN.c \ + ../../../../../src/ta_func/ta_ATAN.c \ + ../../../../../src/ta_func/ta_ATR.c \ + ../../../../../src/ta_func/ta_AVGPRICE.c \ + ../../../../../src/ta_func/ta_BBANDS.c \ + ../../../../../src/ta_func/ta_BETA.c \ + ../../../../../src/ta_func/ta_BOP.c \ + ../../../../../src/ta_func/ta_CCI.c \ + ../../../../../src/ta_func/ta_CDL2CROWS.c \ + ../../../../../src/ta_func/ta_CDL3BLACKCROWS.c \ + ../../../../../src/ta_func/ta_CDL3INSIDE.c \ + ../../../../../src/ta_func/ta_CDL3LINESTRIKE.c \ + ../../../../../src/ta_func/ta_CDL3OUTSIDE.c \ + ../../../../../src/ta_func/ta_CDL3STARSINSOUTH.c \ + ../../../../../src/ta_func/ta_CDL3WHITESOLDIERS.c \ + ../../../../../src/ta_func/ta_CDLABANDONEDBABY.c \ + ../../../../../src/ta_func/ta_CDLADVANCEBLOCK.c \ + ../../../../../src/ta_func/ta_CDLBELTHOLD.c \ + ../../../../../src/ta_func/ta_CDLBREAKAWAY.c \ + ../../../../../src/ta_func/ta_CDLCLOSINGMARUBOZU.c \ + ../../../../../src/ta_func/ta_CDLCONCEALBABYSWALL.c \ + ../../../../../src/ta_func/ta_CDLCOUNTERATTACK.c \ + ../../../../../src/ta_func/ta_CDLDARKCLOUDCOVER.c \ + ../../../../../src/ta_func/ta_CDLDOJI.c \ + ../../../../../src/ta_func/ta_CDLDOJISTAR.c \ + ../../../../../src/ta_func/ta_CDLDRAGONFLYDOJI.c \ + ../../../../../src/ta_func/ta_CDLENGULFING.c \ + ../../../../../src/ta_func/ta_CDLEVENINGDOJISTAR.c \ + ../../../../../src/ta_func/ta_CDLEVENINGSTAR.c \ + ../../../../../src/ta_func/ta_CDLGAPSIDESIDEWHITE.c \ + ../../../../../src/ta_func/ta_CDLGRAVESTONEDOJI.c \ + ../../../../../src/ta_func/ta_CDLHAMMER.c \ + ../../../../../src/ta_func/ta_CDLHANGINGMAN.c \ + ../../../../../src/ta_func/ta_CDLHARAMI.c \ + ../../../../../src/ta_func/ta_CDLHARAMICROSS.c \ + ../../../../../src/ta_func/ta_CDLHIGHWAVE.c \ + ../../../../../src/ta_func/ta_CDLHIKKAKE.c \ + ../../../../../src/ta_func/ta_CDLHIKKAKEMOD.c \ + ../../../../../src/ta_func/ta_CDLHOMINGPIGEON.c \ + ../../../../../src/ta_func/ta_CDLIDENTICAL3CROWS.c \ + ../../../../../src/ta_func/ta_CDLINNECK.c \ + ../../../../../src/ta_func/ta_CDLINVERTEDHAMMER.c \ + ../../../../../src/ta_func/ta_CDLKICKING.c \ + ../../../../../src/ta_func/ta_CDLKICKINGBYLENGTH.c \ + ../../../../../src/ta_func/ta_CDLLADDERBOTTOM.c \ + ../../../../../src/ta_func/ta_CDLLONGLEGGEDDOJI.c \ + ../../../../../src/ta_func/ta_CDLLONGLINE.c \ + ../../../../../src/ta_func/ta_CDLMARUBOZU.c \ + ../../../../../src/ta_func/ta_CDLMATCHINGLOW.c \ + ../../../../../src/ta_func/ta_CDLMATHOLD.c \ + ../../../../../src/ta_func/ta_CDLMORNINGDOJISTAR.c \ + ../../../../../src/ta_func/ta_CDLMORNINGSTAR.c \ + ../../../../../src/ta_func/ta_CDLONNECK.c \ + ../../../../../src/ta_func/ta_CDLPIERCING.c \ + ../../../../../src/ta_func/ta_CDLRICKSHAWMAN.c \ + ../../../../../src/ta_func/ta_CDLRISEFALL3METHODS.c \ + ../../../../../src/ta_func/ta_CDLSEPARATINGLINES.c \ + ../../../../../src/ta_func/ta_CDLSHOOTINGSTAR.c \ + ../../../../../src/ta_func/ta_CDLSHORTLINE.c \ + ../../../../../src/ta_func/ta_CDLSPINNINGTOP.c \ + ../../../../../src/ta_func/ta_CDLSTALLEDPATTERN.c \ + ../../../../../src/ta_func/ta_CDLSTICKSANDWICH.c \ + ../../../../../src/ta_func/ta_CDLTAKURI.c \ + ../../../../../src/ta_func/ta_CDLTASUKIGAP.c \ + ../../../../../src/ta_func/ta_CDLTHRUSTING.c \ + ../../../../../src/ta_func/ta_CDLTRISTAR.c \ + ../../../../../src/ta_func/ta_CDLUNIQUE3RIVER.c \ + ../../../../../src/ta_func/ta_CDLUPSIDEGAP2CROWS.c \ + ../../../../../src/ta_func/ta_CDLXSIDEGAP3METHODS.c \ + ../../../../../src/ta_func/ta_CEIL.c \ + ../../../../../src/ta_func/ta_CMO.c \ + ../../../../../src/ta_func/ta_CORREL.c \ + ../../../../../src/ta_func/ta_COS.c \ + ../../../../../src/ta_func/ta_COSH.c \ + ../../../../../src/ta_func/ta_DEMA.c \ + ../../../../../src/ta_func/ta_DIV.c \ + ../../../../../src/ta_func/ta_DX.c \ + ../../../../../src/ta_func/ta_EMA.c \ + ../../../../../src/ta_func/ta_EXP.c \ + ../../../../../src/ta_func/ta_FLOOR.c \ + ../../../../../src/ta_func/ta_HT_DCPERIOD.c \ + ../../../../../src/ta_func/ta_HT_DCPHASE.c \ + ../../../../../src/ta_func/ta_HT_PHASOR.c \ + ../../../../../src/ta_func/ta_HT_SINE.c \ + ../../../../../src/ta_func/ta_HT_TRENDLINE.c \ + ../../../../../src/ta_func/ta_HT_TRENDMODE.c \ + ../../../../../src/ta_func/ta_KAMA.c \ + ../../../../../src/ta_func/ta_LINEARREG.c \ + ../../../../../src/ta_func/ta_LINEARREG_ANGLE.c \ + ../../../../../src/ta_func/ta_LINEARREG_INTERCEPT.c \ + ../../../../../src/ta_func/ta_LINEARREG_SLOPE.c \ + ../../../../../src/ta_func/ta_LN.c \ + ../../../../../src/ta_func/ta_LOG10.c \ + ../../../../../src/ta_func/ta_MA.c \ + ../../../../../src/ta_func/ta_MACD.c \ + ../../../../../src/ta_func/ta_MACDEXT.c \ + ../../../../../src/ta_func/ta_MACDFIX.c \ + ../../../../../src/ta_func/ta_MAMA.c \ + ../../../../../src/ta_func/ta_MAVP.c \ + ../../../../../src/ta_func/ta_MAX.c \ + ../../../../../src/ta_func/ta_MAXINDEX.c \ + ../../../../../src/ta_func/ta_MEDPRICE.c \ + ../../../../../src/ta_func/ta_MFI.c \ + ../../../../../src/ta_func/ta_MIDPOINT.c \ + ../../../../../src/ta_func/ta_MIDPRICE.c \ + ../../../../../src/ta_func/ta_MIN.c \ + ../../../../../src/ta_func/ta_MININDEX.c \ + ../../../../../src/ta_func/ta_MINMAX.c \ + ../../../../../src/ta_func/ta_MINMAXINDEX.c \ + ../../../../../src/ta_func/ta_MINUS_DI.c \ + ../../../../../src/ta_func/ta_MINUS_DM.c \ + ../../../../../src/ta_func/ta_MOM.c \ + ../../../../../src/ta_func/ta_MULT.c \ + ../../../../../src/ta_func/ta_NATR.c \ + ../../../../../src/ta_func/ta_OBV.c \ + ../../../../../src/ta_func/ta_PLUS_DI.c \ + ../../../../../src/ta_func/ta_PLUS_DM.c \ + ../../../../../src/ta_func/ta_PPO.c \ + ../../../../../src/ta_func/ta_ROC.c \ + ../../../../../src/ta_func/ta_ROCP.c \ + ../../../../../src/ta_func/ta_ROCR.c \ + ../../../../../src/ta_func/ta_ROCR100.c \ + ../../../../../src/ta_func/ta_RSI.c \ + ../../../../../src/ta_func/ta_SAR.c \ + ../../../../../src/ta_func/ta_SAREXT.c \ + ../../../../../src/ta_func/ta_SIN.c \ + ../../../../../src/ta_func/ta_SINH.c \ + ../../../../../src/ta_func/ta_SMA.c \ + ../../../../../src/ta_func/ta_SQRT.c \ + ../../../../../src/ta_func/ta_STDDEV.c \ + ../../../../../src/ta_func/ta_STOCH.c \ + ../../../../../src/ta_func/ta_STOCHF.c \ + ../../../../../src/ta_func/ta_STOCHRSI.c \ + ../../../../../src/ta_func/ta_SUB.c \ + ../../../../../src/ta_func/ta_SUM.c \ + ../../../../../src/ta_func/ta_T3.c \ + ../../../../../src/ta_func/ta_TAN.c \ + ../../../../../src/ta_func/ta_TANH.c \ + ../../../../../src/ta_func/ta_TEMA.c \ + ../../../../../src/ta_func/ta_TRANGE.c \ + ../../../../../src/ta_func/ta_TRIMA.c \ + ../../../../../src/ta_func/ta_TRIX.c \ + ../../../../../src/ta_func/ta_TSF.c \ + ../../../../../src/ta_func/ta_TYPPRICE.c \ + ../../../../../src/ta_func/ta_ULTOSC.c \ + ../../../../../src/ta_func/ta_VAR.c \ + ../../../../../src/ta_func/ta_WCLPRICE.c \ + ../../../../../src/ta_func/ta_WILLR.c \ + ../../../../../src/ta_func/ta_WMA.c +OBJECTS = ../../../../../temp/csd/ta_utility.o \ + ../../../../../temp/csd/ta_ACOS.o \ + ../../../../../temp/csd/ta_AD.o \ + ../../../../../temp/csd/ta_ADD.o \ + ../../../../../temp/csd/ta_ADOSC.o \ + ../../../../../temp/csd/ta_ADX.o \ + ../../../../../temp/csd/ta_ADXR.o \ + ../../../../../temp/csd/ta_APO.o \ + ../../../../../temp/csd/ta_AROON.o \ + ../../../../../temp/csd/ta_AROONOSC.o \ + ../../../../../temp/csd/ta_ASIN.o \ + ../../../../../temp/csd/ta_ATAN.o \ + ../../../../../temp/csd/ta_ATR.o \ + ../../../../../temp/csd/ta_AVGPRICE.o \ + ../../../../../temp/csd/ta_BBANDS.o \ + ../../../../../temp/csd/ta_BETA.o \ + ../../../../../temp/csd/ta_BOP.o \ + ../../../../../temp/csd/ta_CCI.o \ + ../../../../../temp/csd/ta_CDL2CROWS.o \ + ../../../../../temp/csd/ta_CDL3BLACKCROWS.o \ + ../../../../../temp/csd/ta_CDL3INSIDE.o \ + ../../../../../temp/csd/ta_CDL3LINESTRIKE.o \ + ../../../../../temp/csd/ta_CDL3OUTSIDE.o \ + ../../../../../temp/csd/ta_CDL3STARSINSOUTH.o \ + ../../../../../temp/csd/ta_CDL3WHITESOLDIERS.o \ + ../../../../../temp/csd/ta_CDLABANDONEDBABY.o \ + ../../../../../temp/csd/ta_CDLADVANCEBLOCK.o \ + ../../../../../temp/csd/ta_CDLBELTHOLD.o \ + ../../../../../temp/csd/ta_CDLBREAKAWAY.o \ + ../../../../../temp/csd/ta_CDLCLOSINGMARUBOZU.o \ + ../../../../../temp/csd/ta_CDLCONCEALBABYSWALL.o \ + ../../../../../temp/csd/ta_CDLCOUNTERATTACK.o \ + ../../../../../temp/csd/ta_CDLDARKCLOUDCOVER.o \ + ../../../../../temp/csd/ta_CDLDOJI.o \ + ../../../../../temp/csd/ta_CDLDOJISTAR.o \ + ../../../../../temp/csd/ta_CDLDRAGONFLYDOJI.o \ + ../../../../../temp/csd/ta_CDLENGULFING.o \ + ../../../../../temp/csd/ta_CDLEVENINGDOJISTAR.o \ + ../../../../../temp/csd/ta_CDLEVENINGSTAR.o \ + ../../../../../temp/csd/ta_CDLGAPSIDESIDEWHITE.o \ + ../../../../../temp/csd/ta_CDLGRAVESTONEDOJI.o \ + ../../../../../temp/csd/ta_CDLHAMMER.o \ + ../../../../../temp/csd/ta_CDLHANGINGMAN.o \ + ../../../../../temp/csd/ta_CDLHARAMI.o \ + ../../../../../temp/csd/ta_CDLHARAMICROSS.o \ + ../../../../../temp/csd/ta_CDLHIGHWAVE.o \ + ../../../../../temp/csd/ta_CDLHIKKAKE.o \ + ../../../../../temp/csd/ta_CDLHIKKAKEMOD.o \ + ../../../../../temp/csd/ta_CDLHOMINGPIGEON.o \ + ../../../../../temp/csd/ta_CDLIDENTICAL3CROWS.o \ + ../../../../../temp/csd/ta_CDLINNECK.o \ + ../../../../../temp/csd/ta_CDLINVERTEDHAMMER.o \ + ../../../../../temp/csd/ta_CDLKICKING.o \ + ../../../../../temp/csd/ta_CDLKICKINGBYLENGTH.o \ + ../../../../../temp/csd/ta_CDLLADDERBOTTOM.o \ + ../../../../../temp/csd/ta_CDLLONGLEGGEDDOJI.o \ + ../../../../../temp/csd/ta_CDLLONGLINE.o \ + ../../../../../temp/csd/ta_CDLMARUBOZU.o \ + ../../../../../temp/csd/ta_CDLMATCHINGLOW.o \ + ../../../../../temp/csd/ta_CDLMATHOLD.o \ + ../../../../../temp/csd/ta_CDLMORNINGDOJISTAR.o \ + ../../../../../temp/csd/ta_CDLMORNINGSTAR.o \ + ../../../../../temp/csd/ta_CDLONNECK.o \ + ../../../../../temp/csd/ta_CDLPIERCING.o \ + ../../../../../temp/csd/ta_CDLRICKSHAWMAN.o \ + ../../../../../temp/csd/ta_CDLRISEFALL3METHODS.o \ + ../../../../../temp/csd/ta_CDLSEPARATINGLINES.o \ + ../../../../../temp/csd/ta_CDLSHOOTINGSTAR.o \ + ../../../../../temp/csd/ta_CDLSHORTLINE.o \ + ../../../../../temp/csd/ta_CDLSPINNINGTOP.o \ + ../../../../../temp/csd/ta_CDLSTALLEDPATTERN.o \ + ../../../../../temp/csd/ta_CDLSTICKSANDWICH.o \ + ../../../../../temp/csd/ta_CDLTAKURI.o \ + ../../../../../temp/csd/ta_CDLTASUKIGAP.o \ + ../../../../../temp/csd/ta_CDLTHRUSTING.o \ + ../../../../../temp/csd/ta_CDLTRISTAR.o \ + ../../../../../temp/csd/ta_CDLUNIQUE3RIVER.o \ + ../../../../../temp/csd/ta_CDLUPSIDEGAP2CROWS.o \ + ../../../../../temp/csd/ta_CDLXSIDEGAP3METHODS.o \ + ../../../../../temp/csd/ta_CEIL.o \ + ../../../../../temp/csd/ta_CMO.o \ + ../../../../../temp/csd/ta_CORREL.o \ + ../../../../../temp/csd/ta_COS.o \ + ../../../../../temp/csd/ta_COSH.o \ + ../../../../../temp/csd/ta_DEMA.o \ + ../../../../../temp/csd/ta_DIV.o \ + ../../../../../temp/csd/ta_DX.o \ + ../../../../../temp/csd/ta_EMA.o \ + ../../../../../temp/csd/ta_EXP.o \ + ../../../../../temp/csd/ta_FLOOR.o \ + ../../../../../temp/csd/ta_HT_DCPERIOD.o \ + ../../../../../temp/csd/ta_HT_DCPHASE.o \ + ../../../../../temp/csd/ta_HT_PHASOR.o \ + ../../../../../temp/csd/ta_HT_SINE.o \ + ../../../../../temp/csd/ta_HT_TRENDLINE.o \ + ../../../../../temp/csd/ta_HT_TRENDMODE.o \ + ../../../../../temp/csd/ta_KAMA.o \ + ../../../../../temp/csd/ta_LINEARREG.o \ + ../../../../../temp/csd/ta_LINEARREG_ANGLE.o \ + ../../../../../temp/csd/ta_LINEARREG_INTERCEPT.o \ + ../../../../../temp/csd/ta_LINEARREG_SLOPE.o \ + ../../../../../temp/csd/ta_LN.o \ + ../../../../../temp/csd/ta_LOG10.o \ + ../../../../../temp/csd/ta_MA.o \ + ../../../../../temp/csd/ta_MACD.o \ + ../../../../../temp/csd/ta_MACDEXT.o \ + ../../../../../temp/csd/ta_MACDFIX.o \ + ../../../../../temp/csd/ta_MAMA.o \ + ../../../../../temp/csd/ta_MAVP.o \ + ../../../../../temp/csd/ta_MAX.o \ + ../../../../../temp/csd/ta_MAXINDEX.o \ + ../../../../../temp/csd/ta_MEDPRICE.o \ + ../../../../../temp/csd/ta_MFI.o \ + ../../../../../temp/csd/ta_MIDPOINT.o \ + ../../../../../temp/csd/ta_MIDPRICE.o \ + ../../../../../temp/csd/ta_MIN.o \ + ../../../../../temp/csd/ta_MININDEX.o \ + ../../../../../temp/csd/ta_MINMAX.o \ + ../../../../../temp/csd/ta_MINMAXINDEX.o \ + ../../../../../temp/csd/ta_MINUS_DI.o \ + ../../../../../temp/csd/ta_MINUS_DM.o \ + ../../../../../temp/csd/ta_MOM.o \ + ../../../../../temp/csd/ta_MULT.o \ + ../../../../../temp/csd/ta_NATR.o \ + ../../../../../temp/csd/ta_OBV.o \ + ../../../../../temp/csd/ta_PLUS_DI.o \ + ../../../../../temp/csd/ta_PLUS_DM.o \ + ../../../../../temp/csd/ta_PPO.o \ + ../../../../../temp/csd/ta_ROC.o \ + ../../../../../temp/csd/ta_ROCP.o \ + ../../../../../temp/csd/ta_ROCR.o \ + ../../../../../temp/csd/ta_ROCR100.o \ + ../../../../../temp/csd/ta_RSI.o \ + ../../../../../temp/csd/ta_SAR.o \ + ../../../../../temp/csd/ta_SAREXT.o \ + ../../../../../temp/csd/ta_SIN.o \ + ../../../../../temp/csd/ta_SINH.o \ + ../../../../../temp/csd/ta_SMA.o \ + ../../../../../temp/csd/ta_SQRT.o \ + ../../../../../temp/csd/ta_STDDEV.o \ + ../../../../../temp/csd/ta_STOCH.o \ + ../../../../../temp/csd/ta_STOCHF.o \ + ../../../../../temp/csd/ta_STOCHRSI.o \ + ../../../../../temp/csd/ta_SUB.o \ + ../../../../../temp/csd/ta_SUM.o \ + ../../../../../temp/csd/ta_T3.o \ + ../../../../../temp/csd/ta_TAN.o \ + ../../../../../temp/csd/ta_TANH.o \ + ../../../../../temp/csd/ta_TEMA.o \ + ../../../../../temp/csd/ta_TRANGE.o \ + ../../../../../temp/csd/ta_TRIMA.o \ + ../../../../../temp/csd/ta_TRIX.o \ + ../../../../../temp/csd/ta_TSF.o \ + ../../../../../temp/csd/ta_TYPPRICE.o \ + ../../../../../temp/csd/ta_ULTOSC.o \ + ../../../../../temp/csd/ta_VAR.o \ + ../../../../../temp/csd/ta_WCLPRICE.o \ + ../../../../../temp/csd/ta_WILLR.o \ + ../../../../../temp/csd/ta_WMA.o +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ../../../../../lib/libta_func_csd.a +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .C .c + +.cpp.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cxx.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cc.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.C.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.c.o: + $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $< + +####### Build rules + + +all: $(TARGET) + +staticlib: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + -rm -f $(TARGET) + $(AR) $(TARGET) $(OBJECTS) $(OBJMOC) + +moc: $(SRCMOC) + +clean: + -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) + -rm -f *~ core + +####### Sub-libraries + + +###### Combined headers + + +####### Compile + +../../../../../temp/csd/ta_utility.o: ../../../../../src/ta_func/ta_utility.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_utility.o ../../../../../src/ta_func/ta_utility.c + +../../../../../temp/csd/ta_ACOS.o: ../../../../../src/ta_func/ta_ACOS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_ACOS.o ../../../../../src/ta_func/ta_ACOS.c + +../../../../../temp/csd/ta_AD.o: ../../../../../src/ta_func/ta_AD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_AD.o ../../../../../src/ta_func/ta_AD.c + +../../../../../temp/csd/ta_ADD.o: ../../../../../src/ta_func/ta_ADD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_ADD.o ../../../../../src/ta_func/ta_ADD.c + +../../../../../temp/csd/ta_ADOSC.o: ../../../../../src/ta_func/ta_ADOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_ADOSC.o ../../../../../src/ta_func/ta_ADOSC.c + +../../../../../temp/csd/ta_ADX.o: ../../../../../src/ta_func/ta_ADX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_ADX.o ../../../../../src/ta_func/ta_ADX.c + +../../../../../temp/csd/ta_ADXR.o: ../../../../../src/ta_func/ta_ADXR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_ADXR.o ../../../../../src/ta_func/ta_ADXR.c + +../../../../../temp/csd/ta_APO.o: ../../../../../src/ta_func/ta_APO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_APO.o ../../../../../src/ta_func/ta_APO.c + +../../../../../temp/csd/ta_AROON.o: ../../../../../src/ta_func/ta_AROON.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_AROON.o ../../../../../src/ta_func/ta_AROON.c + +../../../../../temp/csd/ta_AROONOSC.o: ../../../../../src/ta_func/ta_AROONOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_AROONOSC.o ../../../../../src/ta_func/ta_AROONOSC.c + +../../../../../temp/csd/ta_ASIN.o: ../../../../../src/ta_func/ta_ASIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_ASIN.o ../../../../../src/ta_func/ta_ASIN.c + +../../../../../temp/csd/ta_ATAN.o: ../../../../../src/ta_func/ta_ATAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_ATAN.o ../../../../../src/ta_func/ta_ATAN.c + +../../../../../temp/csd/ta_ATR.o: ../../../../../src/ta_func/ta_ATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_ATR.o ../../../../../src/ta_func/ta_ATR.c + +../../../../../temp/csd/ta_AVGPRICE.o: ../../../../../src/ta_func/ta_AVGPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_AVGPRICE.o ../../../../../src/ta_func/ta_AVGPRICE.c + +../../../../../temp/csd/ta_BBANDS.o: ../../../../../src/ta_func/ta_BBANDS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_BBANDS.o ../../../../../src/ta_func/ta_BBANDS.c + +../../../../../temp/csd/ta_BETA.o: ../../../../../src/ta_func/ta_BETA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_BETA.o ../../../../../src/ta_func/ta_BETA.c + +../../../../../temp/csd/ta_BOP.o: ../../../../../src/ta_func/ta_BOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_BOP.o ../../../../../src/ta_func/ta_BOP.c + +../../../../../temp/csd/ta_CCI.o: ../../../../../src/ta_func/ta_CCI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CCI.o ../../../../../src/ta_func/ta_CCI.c + +../../../../../temp/csd/ta_CDL2CROWS.o: ../../../../../src/ta_func/ta_CDL2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDL2CROWS.o ../../../../../src/ta_func/ta_CDL2CROWS.c + +../../../../../temp/csd/ta_CDL3BLACKCROWS.o: ../../../../../src/ta_func/ta_CDL3BLACKCROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDL3BLACKCROWS.o ../../../../../src/ta_func/ta_CDL3BLACKCROWS.c + +../../../../../temp/csd/ta_CDL3INSIDE.o: ../../../../../src/ta_func/ta_CDL3INSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDL3INSIDE.o ../../../../../src/ta_func/ta_CDL3INSIDE.c + +../../../../../temp/csd/ta_CDL3LINESTRIKE.o: ../../../../../src/ta_func/ta_CDL3LINESTRIKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDL3LINESTRIKE.o ../../../../../src/ta_func/ta_CDL3LINESTRIKE.c + +../../../../../temp/csd/ta_CDL3OUTSIDE.o: ../../../../../src/ta_func/ta_CDL3OUTSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDL3OUTSIDE.o ../../../../../src/ta_func/ta_CDL3OUTSIDE.c + +../../../../../temp/csd/ta_CDL3STARSINSOUTH.o: ../../../../../src/ta_func/ta_CDL3STARSINSOUTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDL3STARSINSOUTH.o ../../../../../src/ta_func/ta_CDL3STARSINSOUTH.c + +../../../../../temp/csd/ta_CDL3WHITESOLDIERS.o: ../../../../../src/ta_func/ta_CDL3WHITESOLDIERS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDL3WHITESOLDIERS.o ../../../../../src/ta_func/ta_CDL3WHITESOLDIERS.c + +../../../../../temp/csd/ta_CDLABANDONEDBABY.o: ../../../../../src/ta_func/ta_CDLABANDONEDBABY.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLABANDONEDBABY.o ../../../../../src/ta_func/ta_CDLABANDONEDBABY.c + +../../../../../temp/csd/ta_CDLADVANCEBLOCK.o: ../../../../../src/ta_func/ta_CDLADVANCEBLOCK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLADVANCEBLOCK.o ../../../../../src/ta_func/ta_CDLADVANCEBLOCK.c + +../../../../../temp/csd/ta_CDLBELTHOLD.o: ../../../../../src/ta_func/ta_CDLBELTHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLBELTHOLD.o ../../../../../src/ta_func/ta_CDLBELTHOLD.c + +../../../../../temp/csd/ta_CDLBREAKAWAY.o: ../../../../../src/ta_func/ta_CDLBREAKAWAY.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLBREAKAWAY.o ../../../../../src/ta_func/ta_CDLBREAKAWAY.c + +../../../../../temp/csd/ta_CDLCLOSINGMARUBOZU.o: ../../../../../src/ta_func/ta_CDLCLOSINGMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLCLOSINGMARUBOZU.o ../../../../../src/ta_func/ta_CDLCLOSINGMARUBOZU.c + +../../../../../temp/csd/ta_CDLCONCEALBABYSWALL.o: ../../../../../src/ta_func/ta_CDLCONCEALBABYSWALL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLCONCEALBABYSWALL.o ../../../../../src/ta_func/ta_CDLCONCEALBABYSWALL.c + +../../../../../temp/csd/ta_CDLCOUNTERATTACK.o: ../../../../../src/ta_func/ta_CDLCOUNTERATTACK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLCOUNTERATTACK.o ../../../../../src/ta_func/ta_CDLCOUNTERATTACK.c + +../../../../../temp/csd/ta_CDLDARKCLOUDCOVER.o: ../../../../../src/ta_func/ta_CDLDARKCLOUDCOVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLDARKCLOUDCOVER.o ../../../../../src/ta_func/ta_CDLDARKCLOUDCOVER.c + +../../../../../temp/csd/ta_CDLDOJI.o: ../../../../../src/ta_func/ta_CDLDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLDOJI.o ../../../../../src/ta_func/ta_CDLDOJI.c + +../../../../../temp/csd/ta_CDLDOJISTAR.o: ../../../../../src/ta_func/ta_CDLDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLDOJISTAR.o ../../../../../src/ta_func/ta_CDLDOJISTAR.c + +../../../../../temp/csd/ta_CDLDRAGONFLYDOJI.o: ../../../../../src/ta_func/ta_CDLDRAGONFLYDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLDRAGONFLYDOJI.o ../../../../../src/ta_func/ta_CDLDRAGONFLYDOJI.c + +../../../../../temp/csd/ta_CDLENGULFING.o: ../../../../../src/ta_func/ta_CDLENGULFING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLENGULFING.o ../../../../../src/ta_func/ta_CDLENGULFING.c + +../../../../../temp/csd/ta_CDLEVENINGDOJISTAR.o: ../../../../../src/ta_func/ta_CDLEVENINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLEVENINGDOJISTAR.o ../../../../../src/ta_func/ta_CDLEVENINGDOJISTAR.c + +../../../../../temp/csd/ta_CDLEVENINGSTAR.o: ../../../../../src/ta_func/ta_CDLEVENINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLEVENINGSTAR.o ../../../../../src/ta_func/ta_CDLEVENINGSTAR.c + +../../../../../temp/csd/ta_CDLGAPSIDESIDEWHITE.o: ../../../../../src/ta_func/ta_CDLGAPSIDESIDEWHITE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLGAPSIDESIDEWHITE.o ../../../../../src/ta_func/ta_CDLGAPSIDESIDEWHITE.c + +../../../../../temp/csd/ta_CDLGRAVESTONEDOJI.o: ../../../../../src/ta_func/ta_CDLGRAVESTONEDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLGRAVESTONEDOJI.o ../../../../../src/ta_func/ta_CDLGRAVESTONEDOJI.c + +../../../../../temp/csd/ta_CDLHAMMER.o: ../../../../../src/ta_func/ta_CDLHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLHAMMER.o ../../../../../src/ta_func/ta_CDLHAMMER.c + +../../../../../temp/csd/ta_CDLHANGINGMAN.o: ../../../../../src/ta_func/ta_CDLHANGINGMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLHANGINGMAN.o ../../../../../src/ta_func/ta_CDLHANGINGMAN.c + +../../../../../temp/csd/ta_CDLHARAMI.o: ../../../../../src/ta_func/ta_CDLHARAMI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLHARAMI.o ../../../../../src/ta_func/ta_CDLHARAMI.c + +../../../../../temp/csd/ta_CDLHARAMICROSS.o: ../../../../../src/ta_func/ta_CDLHARAMICROSS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLHARAMICROSS.o ../../../../../src/ta_func/ta_CDLHARAMICROSS.c + +../../../../../temp/csd/ta_CDLHIGHWAVE.o: ../../../../../src/ta_func/ta_CDLHIGHWAVE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLHIGHWAVE.o ../../../../../src/ta_func/ta_CDLHIGHWAVE.c + +../../../../../temp/csd/ta_CDLHIKKAKE.o: ../../../../../src/ta_func/ta_CDLHIKKAKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLHIKKAKE.o ../../../../../src/ta_func/ta_CDLHIKKAKE.c + +../../../../../temp/csd/ta_CDLHIKKAKEMOD.o: ../../../../../src/ta_func/ta_CDLHIKKAKEMOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLHIKKAKEMOD.o ../../../../../src/ta_func/ta_CDLHIKKAKEMOD.c + +../../../../../temp/csd/ta_CDLHOMINGPIGEON.o: ../../../../../src/ta_func/ta_CDLHOMINGPIGEON.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLHOMINGPIGEON.o ../../../../../src/ta_func/ta_CDLHOMINGPIGEON.c + +../../../../../temp/csd/ta_CDLIDENTICAL3CROWS.o: ../../../../../src/ta_func/ta_CDLIDENTICAL3CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLIDENTICAL3CROWS.o ../../../../../src/ta_func/ta_CDLIDENTICAL3CROWS.c + +../../../../../temp/csd/ta_CDLINNECK.o: ../../../../../src/ta_func/ta_CDLINNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLINNECK.o ../../../../../src/ta_func/ta_CDLINNECK.c + +../../../../../temp/csd/ta_CDLINVERTEDHAMMER.o: ../../../../../src/ta_func/ta_CDLINVERTEDHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLINVERTEDHAMMER.o ../../../../../src/ta_func/ta_CDLINVERTEDHAMMER.c + +../../../../../temp/csd/ta_CDLKICKING.o: ../../../../../src/ta_func/ta_CDLKICKING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLKICKING.o ../../../../../src/ta_func/ta_CDLKICKING.c + +../../../../../temp/csd/ta_CDLKICKINGBYLENGTH.o: ../../../../../src/ta_func/ta_CDLKICKINGBYLENGTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLKICKINGBYLENGTH.o ../../../../../src/ta_func/ta_CDLKICKINGBYLENGTH.c + +../../../../../temp/csd/ta_CDLLADDERBOTTOM.o: ../../../../../src/ta_func/ta_CDLLADDERBOTTOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLLADDERBOTTOM.o ../../../../../src/ta_func/ta_CDLLADDERBOTTOM.c + +../../../../../temp/csd/ta_CDLLONGLEGGEDDOJI.o: ../../../../../src/ta_func/ta_CDLLONGLEGGEDDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLLONGLEGGEDDOJI.o ../../../../../src/ta_func/ta_CDLLONGLEGGEDDOJI.c + +../../../../../temp/csd/ta_CDLLONGLINE.o: ../../../../../src/ta_func/ta_CDLLONGLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLLONGLINE.o ../../../../../src/ta_func/ta_CDLLONGLINE.c + +../../../../../temp/csd/ta_CDLMARUBOZU.o: ../../../../../src/ta_func/ta_CDLMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLMARUBOZU.o ../../../../../src/ta_func/ta_CDLMARUBOZU.c + +../../../../../temp/csd/ta_CDLMATCHINGLOW.o: ../../../../../src/ta_func/ta_CDLMATCHINGLOW.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLMATCHINGLOW.o ../../../../../src/ta_func/ta_CDLMATCHINGLOW.c + +../../../../../temp/csd/ta_CDLMATHOLD.o: ../../../../../src/ta_func/ta_CDLMATHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLMATHOLD.o ../../../../../src/ta_func/ta_CDLMATHOLD.c + +../../../../../temp/csd/ta_CDLMORNINGDOJISTAR.o: ../../../../../src/ta_func/ta_CDLMORNINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLMORNINGDOJISTAR.o ../../../../../src/ta_func/ta_CDLMORNINGDOJISTAR.c + +../../../../../temp/csd/ta_CDLMORNINGSTAR.o: ../../../../../src/ta_func/ta_CDLMORNINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLMORNINGSTAR.o ../../../../../src/ta_func/ta_CDLMORNINGSTAR.c + +../../../../../temp/csd/ta_CDLONNECK.o: ../../../../../src/ta_func/ta_CDLONNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLONNECK.o ../../../../../src/ta_func/ta_CDLONNECK.c + +../../../../../temp/csd/ta_CDLPIERCING.o: ../../../../../src/ta_func/ta_CDLPIERCING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLPIERCING.o ../../../../../src/ta_func/ta_CDLPIERCING.c + +../../../../../temp/csd/ta_CDLRICKSHAWMAN.o: ../../../../../src/ta_func/ta_CDLRICKSHAWMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLRICKSHAWMAN.o ../../../../../src/ta_func/ta_CDLRICKSHAWMAN.c + +../../../../../temp/csd/ta_CDLRISEFALL3METHODS.o: ../../../../../src/ta_func/ta_CDLRISEFALL3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLRISEFALL3METHODS.o ../../../../../src/ta_func/ta_CDLRISEFALL3METHODS.c + +../../../../../temp/csd/ta_CDLSEPARATINGLINES.o: ../../../../../src/ta_func/ta_CDLSEPARATINGLINES.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLSEPARATINGLINES.o ../../../../../src/ta_func/ta_CDLSEPARATINGLINES.c + +../../../../../temp/csd/ta_CDLSHOOTINGSTAR.o: ../../../../../src/ta_func/ta_CDLSHOOTINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLSHOOTINGSTAR.o ../../../../../src/ta_func/ta_CDLSHOOTINGSTAR.c + +../../../../../temp/csd/ta_CDLSHORTLINE.o: ../../../../../src/ta_func/ta_CDLSHORTLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLSHORTLINE.o ../../../../../src/ta_func/ta_CDLSHORTLINE.c + +../../../../../temp/csd/ta_CDLSPINNINGTOP.o: ../../../../../src/ta_func/ta_CDLSPINNINGTOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLSPINNINGTOP.o ../../../../../src/ta_func/ta_CDLSPINNINGTOP.c + +../../../../../temp/csd/ta_CDLSTALLEDPATTERN.o: ../../../../../src/ta_func/ta_CDLSTALLEDPATTERN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLSTALLEDPATTERN.o ../../../../../src/ta_func/ta_CDLSTALLEDPATTERN.c + +../../../../../temp/csd/ta_CDLSTICKSANDWICH.o: ../../../../../src/ta_func/ta_CDLSTICKSANDWICH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLSTICKSANDWICH.o ../../../../../src/ta_func/ta_CDLSTICKSANDWICH.c + +../../../../../temp/csd/ta_CDLTAKURI.o: ../../../../../src/ta_func/ta_CDLTAKURI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLTAKURI.o ../../../../../src/ta_func/ta_CDLTAKURI.c + +../../../../../temp/csd/ta_CDLTASUKIGAP.o: ../../../../../src/ta_func/ta_CDLTASUKIGAP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLTASUKIGAP.o ../../../../../src/ta_func/ta_CDLTASUKIGAP.c + +../../../../../temp/csd/ta_CDLTHRUSTING.o: ../../../../../src/ta_func/ta_CDLTHRUSTING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLTHRUSTING.o ../../../../../src/ta_func/ta_CDLTHRUSTING.c + +../../../../../temp/csd/ta_CDLTRISTAR.o: ../../../../../src/ta_func/ta_CDLTRISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLTRISTAR.o ../../../../../src/ta_func/ta_CDLTRISTAR.c + +../../../../../temp/csd/ta_CDLUNIQUE3RIVER.o: ../../../../../src/ta_func/ta_CDLUNIQUE3RIVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLUNIQUE3RIVER.o ../../../../../src/ta_func/ta_CDLUNIQUE3RIVER.c + +../../../../../temp/csd/ta_CDLUPSIDEGAP2CROWS.o: ../../../../../src/ta_func/ta_CDLUPSIDEGAP2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLUPSIDEGAP2CROWS.o ../../../../../src/ta_func/ta_CDLUPSIDEGAP2CROWS.c + +../../../../../temp/csd/ta_CDLXSIDEGAP3METHODS.o: ../../../../../src/ta_func/ta_CDLXSIDEGAP3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLXSIDEGAP3METHODS.o ../../../../../src/ta_func/ta_CDLXSIDEGAP3METHODS.c + +../../../../../temp/csd/ta_CEIL.o: ../../../../../src/ta_func/ta_CEIL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CEIL.o ../../../../../src/ta_func/ta_CEIL.c + +../../../../../temp/csd/ta_CMO.o: ../../../../../src/ta_func/ta_CMO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CMO.o ../../../../../src/ta_func/ta_CMO.c + +../../../../../temp/csd/ta_CORREL.o: ../../../../../src/ta_func/ta_CORREL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CORREL.o ../../../../../src/ta_func/ta_CORREL.c + +../../../../../temp/csd/ta_COS.o: ../../../../../src/ta_func/ta_COS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_COS.o ../../../../../src/ta_func/ta_COS.c + +../../../../../temp/csd/ta_COSH.o: ../../../../../src/ta_func/ta_COSH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_COSH.o ../../../../../src/ta_func/ta_COSH.c + +../../../../../temp/csd/ta_DEMA.o: ../../../../../src/ta_func/ta_DEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_DEMA.o ../../../../../src/ta_func/ta_DEMA.c + +../../../../../temp/csd/ta_DIV.o: ../../../../../src/ta_func/ta_DIV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_DIV.o ../../../../../src/ta_func/ta_DIV.c + +../../../../../temp/csd/ta_DX.o: ../../../../../src/ta_func/ta_DX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_DX.o ../../../../../src/ta_func/ta_DX.c + +../../../../../temp/csd/ta_EMA.o: ../../../../../src/ta_func/ta_EMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_EMA.o ../../../../../src/ta_func/ta_EMA.c + +../../../../../temp/csd/ta_EXP.o: ../../../../../src/ta_func/ta_EXP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_EXP.o ../../../../../src/ta_func/ta_EXP.c + +../../../../../temp/csd/ta_FLOOR.o: ../../../../../src/ta_func/ta_FLOOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_FLOOR.o ../../../../../src/ta_func/ta_FLOOR.c + +../../../../../temp/csd/ta_HT_DCPERIOD.o: ../../../../../src/ta_func/ta_HT_DCPERIOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_HT_DCPERIOD.o ../../../../../src/ta_func/ta_HT_DCPERIOD.c + +../../../../../temp/csd/ta_HT_DCPHASE.o: ../../../../../src/ta_func/ta_HT_DCPHASE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_HT_DCPHASE.o ../../../../../src/ta_func/ta_HT_DCPHASE.c + +../../../../../temp/csd/ta_HT_PHASOR.o: ../../../../../src/ta_func/ta_HT_PHASOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_HT_PHASOR.o ../../../../../src/ta_func/ta_HT_PHASOR.c + +../../../../../temp/csd/ta_HT_SINE.o: ../../../../../src/ta_func/ta_HT_SINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_HT_SINE.o ../../../../../src/ta_func/ta_HT_SINE.c + +../../../../../temp/csd/ta_HT_TRENDLINE.o: ../../../../../src/ta_func/ta_HT_TRENDLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_HT_TRENDLINE.o ../../../../../src/ta_func/ta_HT_TRENDLINE.c + +../../../../../temp/csd/ta_HT_TRENDMODE.o: ../../../../../src/ta_func/ta_HT_TRENDMODE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_HT_TRENDMODE.o ../../../../../src/ta_func/ta_HT_TRENDMODE.c + +../../../../../temp/csd/ta_KAMA.o: ../../../../../src/ta_func/ta_KAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_KAMA.o ../../../../../src/ta_func/ta_KAMA.c + +../../../../../temp/csd/ta_LINEARREG.o: ../../../../../src/ta_func/ta_LINEARREG.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_LINEARREG.o ../../../../../src/ta_func/ta_LINEARREG.c + +../../../../../temp/csd/ta_LINEARREG_ANGLE.o: ../../../../../src/ta_func/ta_LINEARREG_ANGLE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_LINEARREG_ANGLE.o ../../../../../src/ta_func/ta_LINEARREG_ANGLE.c + +../../../../../temp/csd/ta_LINEARREG_INTERCEPT.o: ../../../../../src/ta_func/ta_LINEARREG_INTERCEPT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_LINEARREG_INTERCEPT.o ../../../../../src/ta_func/ta_LINEARREG_INTERCEPT.c + +../../../../../temp/csd/ta_LINEARREG_SLOPE.o: ../../../../../src/ta_func/ta_LINEARREG_SLOPE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_LINEARREG_SLOPE.o ../../../../../src/ta_func/ta_LINEARREG_SLOPE.c + +../../../../../temp/csd/ta_LN.o: ../../../../../src/ta_func/ta_LN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_LN.o ../../../../../src/ta_func/ta_LN.c + +../../../../../temp/csd/ta_LOG10.o: ../../../../../src/ta_func/ta_LOG10.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_LOG10.o ../../../../../src/ta_func/ta_LOG10.c + +../../../../../temp/csd/ta_MA.o: ../../../../../src/ta_func/ta_MA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_MA.o ../../../../../src/ta_func/ta_MA.c + +../../../../../temp/csd/ta_MACD.o: ../../../../../src/ta_func/ta_MACD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_MACD.o ../../../../../src/ta_func/ta_MACD.c + +../../../../../temp/csd/ta_MACDEXT.o: ../../../../../src/ta_func/ta_MACDEXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_MACDEXT.o ../../../../../src/ta_func/ta_MACDEXT.c + +../../../../../temp/csd/ta_MACDFIX.o: ../../../../../src/ta_func/ta_MACDFIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_MACDFIX.o ../../../../../src/ta_func/ta_MACDFIX.c + +../../../../../temp/csd/ta_MAMA.o: ../../../../../src/ta_func/ta_MAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_MAMA.o ../../../../../src/ta_func/ta_MAMA.c + +../../../../../temp/csd/ta_MAVP.o: ../../../../../src/ta_func/ta_MAVP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_MAVP.o ../../../../../src/ta_func/ta_MAVP.c + +../../../../../temp/csd/ta_MAX.o: ../../../../../src/ta_func/ta_MAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_MAX.o ../../../../../src/ta_func/ta_MAX.c + +../../../../../temp/csd/ta_MAXINDEX.o: ../../../../../src/ta_func/ta_MAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_MAXINDEX.o ../../../../../src/ta_func/ta_MAXINDEX.c + +../../../../../temp/csd/ta_MEDPRICE.o: ../../../../../src/ta_func/ta_MEDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_MEDPRICE.o ../../../../../src/ta_func/ta_MEDPRICE.c + +../../../../../temp/csd/ta_MFI.o: ../../../../../src/ta_func/ta_MFI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_MFI.o ../../../../../src/ta_func/ta_MFI.c + +../../../../../temp/csd/ta_MIDPOINT.o: ../../../../../src/ta_func/ta_MIDPOINT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_MIDPOINT.o ../../../../../src/ta_func/ta_MIDPOINT.c + +../../../../../temp/csd/ta_MIDPRICE.o: ../../../../../src/ta_func/ta_MIDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_MIDPRICE.o ../../../../../src/ta_func/ta_MIDPRICE.c + +../../../../../temp/csd/ta_MIN.o: ../../../../../src/ta_func/ta_MIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_MIN.o ../../../../../src/ta_func/ta_MIN.c + +../../../../../temp/csd/ta_MININDEX.o: ../../../../../src/ta_func/ta_MININDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_MININDEX.o ../../../../../src/ta_func/ta_MININDEX.c + +../../../../../temp/csd/ta_MINMAX.o: ../../../../../src/ta_func/ta_MINMAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_MINMAX.o ../../../../../src/ta_func/ta_MINMAX.c + +../../../../../temp/csd/ta_MINMAXINDEX.o: ../../../../../src/ta_func/ta_MINMAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_MINMAXINDEX.o ../../../../../src/ta_func/ta_MINMAXINDEX.c + +../../../../../temp/csd/ta_MINUS_DI.o: ../../../../../src/ta_func/ta_MINUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_MINUS_DI.o ../../../../../src/ta_func/ta_MINUS_DI.c + +../../../../../temp/csd/ta_MINUS_DM.o: ../../../../../src/ta_func/ta_MINUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_MINUS_DM.o ../../../../../src/ta_func/ta_MINUS_DM.c + +../../../../../temp/csd/ta_MOM.o: ../../../../../src/ta_func/ta_MOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_MOM.o ../../../../../src/ta_func/ta_MOM.c + +../../../../../temp/csd/ta_MULT.o: ../../../../../src/ta_func/ta_MULT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_MULT.o ../../../../../src/ta_func/ta_MULT.c + +../../../../../temp/csd/ta_NATR.o: ../../../../../src/ta_func/ta_NATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_NATR.o ../../../../../src/ta_func/ta_NATR.c + +../../../../../temp/csd/ta_OBV.o: ../../../../../src/ta_func/ta_OBV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_OBV.o ../../../../../src/ta_func/ta_OBV.c + +../../../../../temp/csd/ta_PLUS_DI.o: ../../../../../src/ta_func/ta_PLUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_PLUS_DI.o ../../../../../src/ta_func/ta_PLUS_DI.c + +../../../../../temp/csd/ta_PLUS_DM.o: ../../../../../src/ta_func/ta_PLUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_PLUS_DM.o ../../../../../src/ta_func/ta_PLUS_DM.c + +../../../../../temp/csd/ta_PPO.o: ../../../../../src/ta_func/ta_PPO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_PPO.o ../../../../../src/ta_func/ta_PPO.c + +../../../../../temp/csd/ta_ROC.o: ../../../../../src/ta_func/ta_ROC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_ROC.o ../../../../../src/ta_func/ta_ROC.c + +../../../../../temp/csd/ta_ROCP.o: ../../../../../src/ta_func/ta_ROCP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_ROCP.o ../../../../../src/ta_func/ta_ROCP.c + +../../../../../temp/csd/ta_ROCR.o: ../../../../../src/ta_func/ta_ROCR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_ROCR.o ../../../../../src/ta_func/ta_ROCR.c + +../../../../../temp/csd/ta_ROCR100.o: ../../../../../src/ta_func/ta_ROCR100.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_ROCR100.o ../../../../../src/ta_func/ta_ROCR100.c + +../../../../../temp/csd/ta_RSI.o: ../../../../../src/ta_func/ta_RSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_RSI.o ../../../../../src/ta_func/ta_RSI.c + +../../../../../temp/csd/ta_SAR.o: ../../../../../src/ta_func/ta_SAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_SAR.o ../../../../../src/ta_func/ta_SAR.c + +../../../../../temp/csd/ta_SAREXT.o: ../../../../../src/ta_func/ta_SAREXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_SAREXT.o ../../../../../src/ta_func/ta_SAREXT.c + +../../../../../temp/csd/ta_SIN.o: ../../../../../src/ta_func/ta_SIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_SIN.o ../../../../../src/ta_func/ta_SIN.c + +../../../../../temp/csd/ta_SINH.o: ../../../../../src/ta_func/ta_SINH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_SINH.o ../../../../../src/ta_func/ta_SINH.c + +../../../../../temp/csd/ta_SMA.o: ../../../../../src/ta_func/ta_SMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_SMA.o ../../../../../src/ta_func/ta_SMA.c + +../../../../../temp/csd/ta_SQRT.o: ../../../../../src/ta_func/ta_SQRT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_SQRT.o ../../../../../src/ta_func/ta_SQRT.c + +../../../../../temp/csd/ta_STDDEV.o: ../../../../../src/ta_func/ta_STDDEV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_STDDEV.o ../../../../../src/ta_func/ta_STDDEV.c + +../../../../../temp/csd/ta_STOCH.o: ../../../../../src/ta_func/ta_STOCH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_STOCH.o ../../../../../src/ta_func/ta_STOCH.c + +../../../../../temp/csd/ta_STOCHF.o: ../../../../../src/ta_func/ta_STOCHF.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_STOCHF.o ../../../../../src/ta_func/ta_STOCHF.c + +../../../../../temp/csd/ta_STOCHRSI.o: ../../../../../src/ta_func/ta_STOCHRSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_STOCHRSI.o ../../../../../src/ta_func/ta_STOCHRSI.c + +../../../../../temp/csd/ta_SUB.o: ../../../../../src/ta_func/ta_SUB.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_SUB.o ../../../../../src/ta_func/ta_SUB.c + +../../../../../temp/csd/ta_SUM.o: ../../../../../src/ta_func/ta_SUM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_SUM.o ../../../../../src/ta_func/ta_SUM.c + +../../../../../temp/csd/ta_T3.o: ../../../../../src/ta_func/ta_T3.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_T3.o ../../../../../src/ta_func/ta_T3.c + +../../../../../temp/csd/ta_TAN.o: ../../../../../src/ta_func/ta_TAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_TAN.o ../../../../../src/ta_func/ta_TAN.c + +../../../../../temp/csd/ta_TANH.o: ../../../../../src/ta_func/ta_TANH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_TANH.o ../../../../../src/ta_func/ta_TANH.c + +../../../../../temp/csd/ta_TEMA.o: ../../../../../src/ta_func/ta_TEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_TEMA.o ../../../../../src/ta_func/ta_TEMA.c + +../../../../../temp/csd/ta_TRANGE.o: ../../../../../src/ta_func/ta_TRANGE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_TRANGE.o ../../../../../src/ta_func/ta_TRANGE.c + +../../../../../temp/csd/ta_TRIMA.o: ../../../../../src/ta_func/ta_TRIMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_TRIMA.o ../../../../../src/ta_func/ta_TRIMA.c + +../../../../../temp/csd/ta_TRIX.o: ../../../../../src/ta_func/ta_TRIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_TRIX.o ../../../../../src/ta_func/ta_TRIX.c + +../../../../../temp/csd/ta_TSF.o: ../../../../../src/ta_func/ta_TSF.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_TSF.o ../../../../../src/ta_func/ta_TSF.c + +../../../../../temp/csd/ta_TYPPRICE.o: ../../../../../src/ta_func/ta_TYPPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_TYPPRICE.o ../../../../../src/ta_func/ta_TYPPRICE.c + +../../../../../temp/csd/ta_ULTOSC.o: ../../../../../src/ta_func/ta_ULTOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_ULTOSC.o ../../../../../src/ta_func/ta_ULTOSC.c + +../../../../../temp/csd/ta_VAR.o: ../../../../../src/ta_func/ta_VAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_VAR.o ../../../../../src/ta_func/ta_VAR.c + +../../../../../temp/csd/ta_WCLPRICE.o: ../../../../../src/ta_func/ta_WCLPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_WCLPRICE.o ../../../../../src/ta_func/ta_WCLPRICE.c + +../../../../../temp/csd/ta_WILLR.o: ../../../../../src/ta_func/ta_WILLR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_WILLR.o ../../../../../src/ta_func/ta_WILLR.c + +../../../../../temp/csd/ta_WMA.o: ../../../../../src/ta_func/ta_WMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_WMA.o ../../../../../src/ta_func/ta_WMA.c + diff --git a/make/csd/cygwin/g++/ta_libc/Makefile b/make/csd/cygwin/g++/ta_libc/Makefile new file mode 100644 index 000000000..12e20364a --- /dev/null +++ b/make/csd/cygwin/g++/ta_libc/Makefile @@ -0,0 +1,1053 @@ +############################################################################# +# Makefile for building ../../../../../lib/libta_libc_csd.a +# Generated by tmake; +# Project: ta_libc/ta_libc +# Template: lib +############################################################################# + +####### Compiler, tools and options + +CC = gcc +CXX = g++ +CFLAGS = -pipe -Wall -W -g -DTA_DEBUG -D_DEBUG -DTA_SINGLE_THREAD +CXXFLAGS= -pipe -Wall -W -g -DTA_DEBUG -D_DEBUG -DTA_SINGLE_THREAD +INCPATH = -I../../../../../src/ta_common -I../../../../../include -I../../../../../src/ta_abstract -I../../../../../src/ta_abstract/tables -I../../../../../src/ta_abstract/frames -I$(QTDIR)/include +AR = ar cqs +RANLIB = +MOC = $(QTDIR)/bin/moc +UIC = $(QTDIR)/bin/uic + +TAR = tar -cf +GZIP = gzip -9f + +####### Support for 64-bit systems +ifeq ($(shell uname -m), x86_64) + CFLAGS += -march=x86-64 -m64 -D__64BIT__ + CXXFLAGS += -march=x86-64 -m64 -D__64BIT__ +endif + +####### Apply additional overruling user flags, if any +CFLAGS += $(CUSERFLAGS) +CXXFLAGS += $(CUSERFLAGS) + +####### Files + +HEADERS = +SOURCES = ../../../../../src/ta_common/ta_global.c \ + ../../../../../src/ta_common/ta_retcode.c \ + ../../../../../src/ta_common/ta_version.c \ + ../../../../../src/ta_abstract/ta_abstract.c \ + ../../../../../src/ta_abstract/ta_def_ui.c \ + ../../../../../src/ta_abstract/ta_func_api.c \ + ../../../../../src/ta_abstract/ta_group_idx.c \ + ../../../../../src/ta_abstract/frames/ta_frame.c \ + ../../../../../src/ta_abstract/tables/table_a.c \ + ../../../../../src/ta_abstract/tables/table_b.c \ + ../../../../../src/ta_abstract/tables/table_c.c \ + ../../../../../src/ta_abstract/tables/table_d.c \ + ../../../../../src/ta_abstract/tables/table_e.c \ + ../../../../../src/ta_abstract/tables/table_f.c \ + ../../../../../src/ta_abstract/tables/table_g.c \ + ../../../../../src/ta_abstract/tables/table_h.c \ + ../../../../../src/ta_abstract/tables/table_i.c \ + ../../../../../src/ta_abstract/tables/table_j.c \ + ../../../../../src/ta_abstract/tables/table_k.c \ + ../../../../../src/ta_abstract/tables/table_l.c \ + ../../../../../src/ta_abstract/tables/table_m.c \ + ../../../../../src/ta_abstract/tables/table_n.c \ + ../../../../../src/ta_abstract/tables/table_o.c \ + ../../../../../src/ta_abstract/tables/table_p.c \ + ../../../../../src/ta_abstract/tables/table_q.c \ + ../../../../../src/ta_abstract/tables/table_r.c \ + ../../../../../src/ta_abstract/tables/table_s.c \ + ../../../../../src/ta_abstract/tables/table_t.c \ + ../../../../../src/ta_abstract/tables/table_u.c \ + ../../../../../src/ta_abstract/tables/table_v.c \ + ../../../../../src/ta_abstract/tables/table_w.c \ + ../../../../../src/ta_abstract/tables/table_x.c \ + ../../../../../src/ta_abstract/tables/table_y.c \ + ../../../../../src/ta_abstract/tables/table_z.c \ + ../../../../../src/ta_func/ta_utility.c \ + ../../../../../src/ta_func/ta_ACOS.c \ + ../../../../../src/ta_func/ta_AD.c \ + ../../../../../src/ta_func/ta_ADD.c \ + ../../../../../src/ta_func/ta_ADOSC.c \ + ../../../../../src/ta_func/ta_ADX.c \ + ../../../../../src/ta_func/ta_ADXR.c \ + ../../../../../src/ta_func/ta_APO.c \ + ../../../../../src/ta_func/ta_AROON.c \ + ../../../../../src/ta_func/ta_AROONOSC.c \ + ../../../../../src/ta_func/ta_ASIN.c \ + ../../../../../src/ta_func/ta_ATAN.c \ + ../../../../../src/ta_func/ta_ATR.c \ + ../../../../../src/ta_func/ta_AVGPRICE.c \ + ../../../../../src/ta_func/ta_BBANDS.c \ + ../../../../../src/ta_func/ta_BETA.c \ + ../../../../../src/ta_func/ta_BOP.c \ + ../../../../../src/ta_func/ta_CCI.c \ + ../../../../../src/ta_func/ta_CDL2CROWS.c \ + ../../../../../src/ta_func/ta_CDL3BLACKCROWS.c \ + ../../../../../src/ta_func/ta_CDL3INSIDE.c \ + ../../../../../src/ta_func/ta_CDL3LINESTRIKE.c \ + ../../../../../src/ta_func/ta_CDL3OUTSIDE.c \ + ../../../../../src/ta_func/ta_CDL3STARSINSOUTH.c \ + ../../../../../src/ta_func/ta_CDL3WHITESOLDIERS.c \ + ../../../../../src/ta_func/ta_CDLABANDONEDBABY.c \ + ../../../../../src/ta_func/ta_CDLADVANCEBLOCK.c \ + ../../../../../src/ta_func/ta_CDLBELTHOLD.c \ + ../../../../../src/ta_func/ta_CDLBREAKAWAY.c \ + ../../../../../src/ta_func/ta_CDLCLOSINGMARUBOZU.c \ + ../../../../../src/ta_func/ta_CDLCONCEALBABYSWALL.c \ + ../../../../../src/ta_func/ta_CDLCOUNTERATTACK.c \ + ../../../../../src/ta_func/ta_CDLDARKCLOUDCOVER.c \ + ../../../../../src/ta_func/ta_CDLDOJI.c \ + ../../../../../src/ta_func/ta_CDLDOJISTAR.c \ + ../../../../../src/ta_func/ta_CDLDRAGONFLYDOJI.c \ + ../../../../../src/ta_func/ta_CDLENGULFING.c \ + ../../../../../src/ta_func/ta_CDLEVENINGDOJISTAR.c \ + ../../../../../src/ta_func/ta_CDLEVENINGSTAR.c \ + ../../../../../src/ta_func/ta_CDLGAPSIDESIDEWHITE.c \ + ../../../../../src/ta_func/ta_CDLGRAVESTONEDOJI.c \ + ../../../../../src/ta_func/ta_CDLHAMMER.c \ + ../../../../../src/ta_func/ta_CDLHANGINGMAN.c \ + ../../../../../src/ta_func/ta_CDLHARAMI.c \ + ../../../../../src/ta_func/ta_CDLHARAMICROSS.c \ + ../../../../../src/ta_func/ta_CDLHIGHWAVE.c \ + ../../../../../src/ta_func/ta_CDLHIKKAKE.c \ + ../../../../../src/ta_func/ta_CDLHIKKAKEMOD.c \ + ../../../../../src/ta_func/ta_CDLHOMINGPIGEON.c \ + ../../../../../src/ta_func/ta_CDLIDENTICAL3CROWS.c \ + ../../../../../src/ta_func/ta_CDLINNECK.c \ + ../../../../../src/ta_func/ta_CDLINVERTEDHAMMER.c \ + ../../../../../src/ta_func/ta_CDLKICKING.c \ + ../../../../../src/ta_func/ta_CDLKICKINGBYLENGTH.c \ + ../../../../../src/ta_func/ta_CDLLADDERBOTTOM.c \ + ../../../../../src/ta_func/ta_CDLLONGLEGGEDDOJI.c \ + ../../../../../src/ta_func/ta_CDLLONGLINE.c \ + ../../../../../src/ta_func/ta_CDLMARUBOZU.c \ + ../../../../../src/ta_func/ta_CDLMATCHINGLOW.c \ + ../../../../../src/ta_func/ta_CDLMATHOLD.c \ + ../../../../../src/ta_func/ta_CDLMORNINGDOJISTAR.c \ + ../../../../../src/ta_func/ta_CDLMORNINGSTAR.c \ + ../../../../../src/ta_func/ta_CDLONNECK.c \ + ../../../../../src/ta_func/ta_CDLPIERCING.c \ + ../../../../../src/ta_func/ta_CDLRICKSHAWMAN.c \ + ../../../../../src/ta_func/ta_CDLRISEFALL3METHODS.c \ + ../../../../../src/ta_func/ta_CDLSEPARATINGLINES.c \ + ../../../../../src/ta_func/ta_CDLSHOOTINGSTAR.c \ + ../../../../../src/ta_func/ta_CDLSHORTLINE.c \ + ../../../../../src/ta_func/ta_CDLSPINNINGTOP.c \ + ../../../../../src/ta_func/ta_CDLSTALLEDPATTERN.c \ + ../../../../../src/ta_func/ta_CDLSTICKSANDWICH.c \ + ../../../../../src/ta_func/ta_CDLTAKURI.c \ + ../../../../../src/ta_func/ta_CDLTASUKIGAP.c \ + ../../../../../src/ta_func/ta_CDLTHRUSTING.c \ + ../../../../../src/ta_func/ta_CDLTRISTAR.c \ + ../../../../../src/ta_func/ta_CDLUNIQUE3RIVER.c \ + ../../../../../src/ta_func/ta_CDLUPSIDEGAP2CROWS.c \ + ../../../../../src/ta_func/ta_CDLXSIDEGAP3METHODS.c \ + ../../../../../src/ta_func/ta_CEIL.c \ + ../../../../../src/ta_func/ta_CMO.c \ + ../../../../../src/ta_func/ta_CORREL.c \ + ../../../../../src/ta_func/ta_COS.c \ + ../../../../../src/ta_func/ta_COSH.c \ + ../../../../../src/ta_func/ta_DEMA.c \ + ../../../../../src/ta_func/ta_DIV.c \ + ../../../../../src/ta_func/ta_DX.c \ + ../../../../../src/ta_func/ta_EMA.c \ + ../../../../../src/ta_func/ta_EXP.c \ + ../../../../../src/ta_func/ta_FLOOR.c \ + ../../../../../src/ta_func/ta_HT_DCPERIOD.c \ + ../../../../../src/ta_func/ta_HT_DCPHASE.c \ + ../../../../../src/ta_func/ta_HT_PHASOR.c \ + ../../../../../src/ta_func/ta_HT_SINE.c \ + ../../../../../src/ta_func/ta_HT_TRENDLINE.c \ + ../../../../../src/ta_func/ta_HT_TRENDMODE.c \ + ../../../../../src/ta_func/ta_KAMA.c \ + ../../../../../src/ta_func/ta_LINEARREG.c \ + ../../../../../src/ta_func/ta_LINEARREG_ANGLE.c \ + ../../../../../src/ta_func/ta_LINEARREG_INTERCEPT.c \ + ../../../../../src/ta_func/ta_LINEARREG_SLOPE.c \ + ../../../../../src/ta_func/ta_LN.c \ + ../../../../../src/ta_func/ta_LOG10.c \ + ../../../../../src/ta_func/ta_MA.c \ + ../../../../../src/ta_func/ta_MACD.c \ + ../../../../../src/ta_func/ta_MACDEXT.c \ + ../../../../../src/ta_func/ta_MACDFIX.c \ + ../../../../../src/ta_func/ta_MAMA.c \ + ../../../../../src/ta_func/ta_MAVP.c \ + ../../../../../src/ta_func/ta_MAX.c \ + ../../../../../src/ta_func/ta_MAXINDEX.c \ + ../../../../../src/ta_func/ta_MEDPRICE.c \ + ../../../../../src/ta_func/ta_MFI.c \ + ../../../../../src/ta_func/ta_MIDPOINT.c \ + ../../../../../src/ta_func/ta_MIDPRICE.c \ + ../../../../../src/ta_func/ta_MIN.c \ + ../../../../../src/ta_func/ta_MININDEX.c \ + ../../../../../src/ta_func/ta_MINMAX.c \ + ../../../../../src/ta_func/ta_MINMAXINDEX.c \ + ../../../../../src/ta_func/ta_MINUS_DI.c \ + ../../../../../src/ta_func/ta_MINUS_DM.c \ + ../../../../../src/ta_func/ta_MOM.c \ + ../../../../../src/ta_func/ta_MULT.c \ + ../../../../../src/ta_func/ta_NATR.c \ + ../../../../../src/ta_func/ta_OBV.c \ + ../../../../../src/ta_func/ta_PLUS_DI.c \ + ../../../../../src/ta_func/ta_PLUS_DM.c \ + ../../../../../src/ta_func/ta_PPO.c \ + ../../../../../src/ta_func/ta_ROC.c \ + ../../../../../src/ta_func/ta_ROCP.c \ + ../../../../../src/ta_func/ta_ROCR.c \ + ../../../../../src/ta_func/ta_ROCR100.c \ + ../../../../../src/ta_func/ta_RSI.c \ + ../../../../../src/ta_func/ta_SAR.c \ + ../../../../../src/ta_func/ta_SAREXT.c \ + ../../../../../src/ta_func/ta_SIN.c \ + ../../../../../src/ta_func/ta_SINH.c \ + ../../../../../src/ta_func/ta_SMA.c \ + ../../../../../src/ta_func/ta_SQRT.c \ + ../../../../../src/ta_func/ta_STDDEV.c \ + ../../../../../src/ta_func/ta_STOCH.c \ + ../../../../../src/ta_func/ta_STOCHF.c \ + ../../../../../src/ta_func/ta_STOCHRSI.c \ + ../../../../../src/ta_func/ta_SUB.c \ + ../../../../../src/ta_func/ta_SUM.c \ + ../../../../../src/ta_func/ta_T3.c \ + ../../../../../src/ta_func/ta_TAN.c \ + ../../../../../src/ta_func/ta_TANH.c \ + ../../../../../src/ta_func/ta_TEMA.c \ + ../../../../../src/ta_func/ta_TRANGE.c \ + ../../../../../src/ta_func/ta_TRIMA.c \ + ../../../../../src/ta_func/ta_TRIX.c \ + ../../../../../src/ta_func/ta_TSF.c \ + ../../../../../src/ta_func/ta_TYPPRICE.c \ + ../../../../../src/ta_func/ta_ULTOSC.c \ + ../../../../../src/ta_func/ta_VAR.c \ + ../../../../../src/ta_func/ta_WCLPRICE.c \ + ../../../../../src/ta_func/ta_WILLR.c \ + ../../../../../src/ta_func/ta_WMA.c +OBJECTS = ../../../../../temp/csd/ta_global.o \ + ../../../../../temp/csd/ta_retcode.o \ + ../../../../../temp/csd/ta_version.o \ + ../../../../../temp/csd/ta_abstract.o \ + ../../../../../temp/csd/ta_def_ui.o \ + ../../../../../temp/csd/ta_func_api.o \ + ../../../../../temp/csd/ta_group_idx.o \ + ../../../../../temp/csd/ta_frame.o \ + ../../../../../temp/csd/table_a.o \ + ../../../../../temp/csd/table_b.o \ + ../../../../../temp/csd/table_c.o \ + ../../../../../temp/csd/table_d.o \ + ../../../../../temp/csd/table_e.o \ + ../../../../../temp/csd/table_f.o \ + ../../../../../temp/csd/table_g.o \ + ../../../../../temp/csd/table_h.o \ + ../../../../../temp/csd/table_i.o \ + ../../../../../temp/csd/table_j.o \ + ../../../../../temp/csd/table_k.o \ + ../../../../../temp/csd/table_l.o \ + ../../../../../temp/csd/table_m.o \ + ../../../../../temp/csd/table_n.o \ + ../../../../../temp/csd/table_o.o \ + ../../../../../temp/csd/table_p.o \ + ../../../../../temp/csd/table_q.o \ + ../../../../../temp/csd/table_r.o \ + ../../../../../temp/csd/table_s.o \ + ../../../../../temp/csd/table_t.o \ + ../../../../../temp/csd/table_u.o \ + ../../../../../temp/csd/table_v.o \ + ../../../../../temp/csd/table_w.o \ + ../../../../../temp/csd/table_x.o \ + ../../../../../temp/csd/table_y.o \ + ../../../../../temp/csd/table_z.o \ + ../../../../../temp/csd/ta_utility.o \ + ../../../../../temp/csd/ta_ACOS.o \ + ../../../../../temp/csd/ta_AD.o \ + ../../../../../temp/csd/ta_ADD.o \ + ../../../../../temp/csd/ta_ADOSC.o \ + ../../../../../temp/csd/ta_ADX.o \ + ../../../../../temp/csd/ta_ADXR.o \ + ../../../../../temp/csd/ta_APO.o \ + ../../../../../temp/csd/ta_AROON.o \ + ../../../../../temp/csd/ta_AROONOSC.o \ + ../../../../../temp/csd/ta_ASIN.o \ + ../../../../../temp/csd/ta_ATAN.o \ + ../../../../../temp/csd/ta_ATR.o \ + ../../../../../temp/csd/ta_AVGPRICE.o \ + ../../../../../temp/csd/ta_BBANDS.o \ + ../../../../../temp/csd/ta_BETA.o \ + ../../../../../temp/csd/ta_BOP.o \ + ../../../../../temp/csd/ta_CCI.o \ + ../../../../../temp/csd/ta_CDL2CROWS.o \ + ../../../../../temp/csd/ta_CDL3BLACKCROWS.o \ + ../../../../../temp/csd/ta_CDL3INSIDE.o \ + ../../../../../temp/csd/ta_CDL3LINESTRIKE.o \ + ../../../../../temp/csd/ta_CDL3OUTSIDE.o \ + ../../../../../temp/csd/ta_CDL3STARSINSOUTH.o \ + ../../../../../temp/csd/ta_CDL3WHITESOLDIERS.o \ + ../../../../../temp/csd/ta_CDLABANDONEDBABY.o \ + ../../../../../temp/csd/ta_CDLADVANCEBLOCK.o \ + ../../../../../temp/csd/ta_CDLBELTHOLD.o \ + ../../../../../temp/csd/ta_CDLBREAKAWAY.o \ + ../../../../../temp/csd/ta_CDLCLOSINGMARUBOZU.o \ + ../../../../../temp/csd/ta_CDLCONCEALBABYSWALL.o \ + ../../../../../temp/csd/ta_CDLCOUNTERATTACK.o \ + ../../../../../temp/csd/ta_CDLDARKCLOUDCOVER.o \ + ../../../../../temp/csd/ta_CDLDOJI.o \ + ../../../../../temp/csd/ta_CDLDOJISTAR.o \ + ../../../../../temp/csd/ta_CDLDRAGONFLYDOJI.o \ + ../../../../../temp/csd/ta_CDLENGULFING.o \ + ../../../../../temp/csd/ta_CDLEVENINGDOJISTAR.o \ + ../../../../../temp/csd/ta_CDLEVENINGSTAR.o \ + ../../../../../temp/csd/ta_CDLGAPSIDESIDEWHITE.o \ + ../../../../../temp/csd/ta_CDLGRAVESTONEDOJI.o \ + ../../../../../temp/csd/ta_CDLHAMMER.o \ + ../../../../../temp/csd/ta_CDLHANGINGMAN.o \ + ../../../../../temp/csd/ta_CDLHARAMI.o \ + ../../../../../temp/csd/ta_CDLHARAMICROSS.o \ + ../../../../../temp/csd/ta_CDLHIGHWAVE.o \ + ../../../../../temp/csd/ta_CDLHIKKAKE.o \ + ../../../../../temp/csd/ta_CDLHIKKAKEMOD.o \ + ../../../../../temp/csd/ta_CDLHOMINGPIGEON.o \ + ../../../../../temp/csd/ta_CDLIDENTICAL3CROWS.o \ + ../../../../../temp/csd/ta_CDLINNECK.o \ + ../../../../../temp/csd/ta_CDLINVERTEDHAMMER.o \ + ../../../../../temp/csd/ta_CDLKICKING.o \ + ../../../../../temp/csd/ta_CDLKICKINGBYLENGTH.o \ + ../../../../../temp/csd/ta_CDLLADDERBOTTOM.o \ + ../../../../../temp/csd/ta_CDLLONGLEGGEDDOJI.o \ + ../../../../../temp/csd/ta_CDLLONGLINE.o \ + ../../../../../temp/csd/ta_CDLMARUBOZU.o \ + ../../../../../temp/csd/ta_CDLMATCHINGLOW.o \ + ../../../../../temp/csd/ta_CDLMATHOLD.o \ + ../../../../../temp/csd/ta_CDLMORNINGDOJISTAR.o \ + ../../../../../temp/csd/ta_CDLMORNINGSTAR.o \ + ../../../../../temp/csd/ta_CDLONNECK.o \ + ../../../../../temp/csd/ta_CDLPIERCING.o \ + ../../../../../temp/csd/ta_CDLRICKSHAWMAN.o \ + ../../../../../temp/csd/ta_CDLRISEFALL3METHODS.o \ + ../../../../../temp/csd/ta_CDLSEPARATINGLINES.o \ + ../../../../../temp/csd/ta_CDLSHOOTINGSTAR.o \ + ../../../../../temp/csd/ta_CDLSHORTLINE.o \ + ../../../../../temp/csd/ta_CDLSPINNINGTOP.o \ + ../../../../../temp/csd/ta_CDLSTALLEDPATTERN.o \ + ../../../../../temp/csd/ta_CDLSTICKSANDWICH.o \ + ../../../../../temp/csd/ta_CDLTAKURI.o \ + ../../../../../temp/csd/ta_CDLTASUKIGAP.o \ + ../../../../../temp/csd/ta_CDLTHRUSTING.o \ + ../../../../../temp/csd/ta_CDLTRISTAR.o \ + ../../../../../temp/csd/ta_CDLUNIQUE3RIVER.o \ + ../../../../../temp/csd/ta_CDLUPSIDEGAP2CROWS.o \ + ../../../../../temp/csd/ta_CDLXSIDEGAP3METHODS.o \ + ../../../../../temp/csd/ta_CEIL.o \ + ../../../../../temp/csd/ta_CMO.o \ + ../../../../../temp/csd/ta_CORREL.o \ + ../../../../../temp/csd/ta_COS.o \ + ../../../../../temp/csd/ta_COSH.o \ + ../../../../../temp/csd/ta_DEMA.o \ + ../../../../../temp/csd/ta_DIV.o \ + ../../../../../temp/csd/ta_DX.o \ + ../../../../../temp/csd/ta_EMA.o \ + ../../../../../temp/csd/ta_EXP.o \ + ../../../../../temp/csd/ta_FLOOR.o \ + ../../../../../temp/csd/ta_HT_DCPERIOD.o \ + ../../../../../temp/csd/ta_HT_DCPHASE.o \ + ../../../../../temp/csd/ta_HT_PHASOR.o \ + ../../../../../temp/csd/ta_HT_SINE.o \ + ../../../../../temp/csd/ta_HT_TRENDLINE.o \ + ../../../../../temp/csd/ta_HT_TRENDMODE.o \ + ../../../../../temp/csd/ta_KAMA.o \ + ../../../../../temp/csd/ta_LINEARREG.o \ + ../../../../../temp/csd/ta_LINEARREG_ANGLE.o \ + ../../../../../temp/csd/ta_LINEARREG_INTERCEPT.o \ + ../../../../../temp/csd/ta_LINEARREG_SLOPE.o \ + ../../../../../temp/csd/ta_LN.o \ + ../../../../../temp/csd/ta_LOG10.o \ + ../../../../../temp/csd/ta_MA.o \ + ../../../../../temp/csd/ta_MACD.o \ + ../../../../../temp/csd/ta_MACDEXT.o \ + ../../../../../temp/csd/ta_MACDFIX.o \ + ../../../../../temp/csd/ta_MAMA.o \ + ../../../../../temp/csd/ta_MAVP.o \ + ../../../../../temp/csd/ta_MAX.o \ + ../../../../../temp/csd/ta_MAXINDEX.o \ + ../../../../../temp/csd/ta_MEDPRICE.o \ + ../../../../../temp/csd/ta_MFI.o \ + ../../../../../temp/csd/ta_MIDPOINT.o \ + ../../../../../temp/csd/ta_MIDPRICE.o \ + ../../../../../temp/csd/ta_MIN.o \ + ../../../../../temp/csd/ta_MININDEX.o \ + ../../../../../temp/csd/ta_MINMAX.o \ + ../../../../../temp/csd/ta_MINMAXINDEX.o \ + ../../../../../temp/csd/ta_MINUS_DI.o \ + ../../../../../temp/csd/ta_MINUS_DM.o \ + ../../../../../temp/csd/ta_MOM.o \ + ../../../../../temp/csd/ta_MULT.o \ + ../../../../../temp/csd/ta_NATR.o \ + ../../../../../temp/csd/ta_OBV.o \ + ../../../../../temp/csd/ta_PLUS_DI.o \ + ../../../../../temp/csd/ta_PLUS_DM.o \ + ../../../../../temp/csd/ta_PPO.o \ + ../../../../../temp/csd/ta_ROC.o \ + ../../../../../temp/csd/ta_ROCP.o \ + ../../../../../temp/csd/ta_ROCR.o \ + ../../../../../temp/csd/ta_ROCR100.o \ + ../../../../../temp/csd/ta_RSI.o \ + ../../../../../temp/csd/ta_SAR.o \ + ../../../../../temp/csd/ta_SAREXT.o \ + ../../../../../temp/csd/ta_SIN.o \ + ../../../../../temp/csd/ta_SINH.o \ + ../../../../../temp/csd/ta_SMA.o \ + ../../../../../temp/csd/ta_SQRT.o \ + ../../../../../temp/csd/ta_STDDEV.o \ + ../../../../../temp/csd/ta_STOCH.o \ + ../../../../../temp/csd/ta_STOCHF.o \ + ../../../../../temp/csd/ta_STOCHRSI.o \ + ../../../../../temp/csd/ta_SUB.o \ + ../../../../../temp/csd/ta_SUM.o \ + ../../../../../temp/csd/ta_T3.o \ + ../../../../../temp/csd/ta_TAN.o \ + ../../../../../temp/csd/ta_TANH.o \ + ../../../../../temp/csd/ta_TEMA.o \ + ../../../../../temp/csd/ta_TRANGE.o \ + ../../../../../temp/csd/ta_TRIMA.o \ + ../../../../../temp/csd/ta_TRIX.o \ + ../../../../../temp/csd/ta_TSF.o \ + ../../../../../temp/csd/ta_TYPPRICE.o \ + ../../../../../temp/csd/ta_ULTOSC.o \ + ../../../../../temp/csd/ta_VAR.o \ + ../../../../../temp/csd/ta_WCLPRICE.o \ + ../../../../../temp/csd/ta_WILLR.o \ + ../../../../../temp/csd/ta_WMA.o +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ../../../../../lib/libta_libc_csd.a +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .C .c + +.cpp.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cxx.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cc.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.C.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.c.o: + $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $< + +####### Build rules + + +all: $(TARGET) + +staticlib: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + -rm -f $(TARGET) + $(AR) $(TARGET) $(OBJECTS) $(OBJMOC) + +moc: $(SRCMOC) + +clean: + -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) + -rm -f *~ core + +####### Sub-libraries + + +###### Combined headers + + +####### Compile + +../../../../../temp/csd/ta_global.o: ../../../../../src/ta_common/ta_global.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_global.o ../../../../../src/ta_common/ta_global.c + +../../../../../temp/csd/ta_retcode.o: ../../../../../src/ta_common/ta_retcode.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_retcode.o ../../../../../src/ta_common/ta_retcode.c + +../../../../../temp/csd/ta_version.o: ../../../../../src/ta_common/ta_version.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_version.o ../../../../../src/ta_common/ta_version.c + +../../../../../temp/csd/ta_abstract.o: ../../../../../src/ta_abstract/ta_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_abstract.o ../../../../../src/ta_abstract/ta_abstract.c + +../../../../../temp/csd/ta_def_ui.o: ../../../../../src/ta_abstract/ta_def_ui.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_def_ui.o ../../../../../src/ta_abstract/ta_def_ui.c + +../../../../../temp/csd/ta_func_api.o: ../../../../../src/ta_abstract/ta_func_api.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_func_api.o ../../../../../src/ta_abstract/ta_func_api.c + +../../../../../temp/csd/ta_group_idx.o: ../../../../../src/ta_abstract/ta_group_idx.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_group_idx.o ../../../../../src/ta_abstract/ta_group_idx.c + +../../../../../temp/csd/ta_frame.o: ../../../../../src/ta_abstract/frames/ta_frame.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_frame.o ../../../../../src/ta_abstract/frames/ta_frame.c + +../../../../../temp/csd/table_a.o: ../../../../../src/ta_abstract/tables/table_a.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_a.o ../../../../../src/ta_abstract/tables/table_a.c + +../../../../../temp/csd/table_b.o: ../../../../../src/ta_abstract/tables/table_b.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_b.o ../../../../../src/ta_abstract/tables/table_b.c + +../../../../../temp/csd/table_c.o: ../../../../../src/ta_abstract/tables/table_c.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_c.o ../../../../../src/ta_abstract/tables/table_c.c + +../../../../../temp/csd/table_d.o: ../../../../../src/ta_abstract/tables/table_d.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_d.o ../../../../../src/ta_abstract/tables/table_d.c + +../../../../../temp/csd/table_e.o: ../../../../../src/ta_abstract/tables/table_e.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_e.o ../../../../../src/ta_abstract/tables/table_e.c + +../../../../../temp/csd/table_f.o: ../../../../../src/ta_abstract/tables/table_f.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_f.o ../../../../../src/ta_abstract/tables/table_f.c + +../../../../../temp/csd/table_g.o: ../../../../../src/ta_abstract/tables/table_g.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_g.o ../../../../../src/ta_abstract/tables/table_g.c + +../../../../../temp/csd/table_h.o: ../../../../../src/ta_abstract/tables/table_h.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_h.o ../../../../../src/ta_abstract/tables/table_h.c + +../../../../../temp/csd/table_i.o: ../../../../../src/ta_abstract/tables/table_i.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_i.o ../../../../../src/ta_abstract/tables/table_i.c + +../../../../../temp/csd/table_j.o: ../../../../../src/ta_abstract/tables/table_j.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_j.o ../../../../../src/ta_abstract/tables/table_j.c + +../../../../../temp/csd/table_k.o: ../../../../../src/ta_abstract/tables/table_k.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_k.o ../../../../../src/ta_abstract/tables/table_k.c + +../../../../../temp/csd/table_l.o: ../../../../../src/ta_abstract/tables/table_l.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_l.o ../../../../../src/ta_abstract/tables/table_l.c + +../../../../../temp/csd/table_m.o: ../../../../../src/ta_abstract/tables/table_m.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_m.o ../../../../../src/ta_abstract/tables/table_m.c + +../../../../../temp/csd/table_n.o: ../../../../../src/ta_abstract/tables/table_n.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_n.o ../../../../../src/ta_abstract/tables/table_n.c + +../../../../../temp/csd/table_o.o: ../../../../../src/ta_abstract/tables/table_o.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_o.o ../../../../../src/ta_abstract/tables/table_o.c + +../../../../../temp/csd/table_p.o: ../../../../../src/ta_abstract/tables/table_p.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_p.o ../../../../../src/ta_abstract/tables/table_p.c + +../../../../../temp/csd/table_q.o: ../../../../../src/ta_abstract/tables/table_q.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_q.o ../../../../../src/ta_abstract/tables/table_q.c + +../../../../../temp/csd/table_r.o: ../../../../../src/ta_abstract/tables/table_r.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_r.o ../../../../../src/ta_abstract/tables/table_r.c + +../../../../../temp/csd/table_s.o: ../../../../../src/ta_abstract/tables/table_s.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_s.o ../../../../../src/ta_abstract/tables/table_s.c + +../../../../../temp/csd/table_t.o: ../../../../../src/ta_abstract/tables/table_t.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_t.o ../../../../../src/ta_abstract/tables/table_t.c + +../../../../../temp/csd/table_u.o: ../../../../../src/ta_abstract/tables/table_u.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_u.o ../../../../../src/ta_abstract/tables/table_u.c + +../../../../../temp/csd/table_v.o: ../../../../../src/ta_abstract/tables/table_v.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_v.o ../../../../../src/ta_abstract/tables/table_v.c + +../../../../../temp/csd/table_w.o: ../../../../../src/ta_abstract/tables/table_w.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_w.o ../../../../../src/ta_abstract/tables/table_w.c + +../../../../../temp/csd/table_x.o: ../../../../../src/ta_abstract/tables/table_x.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_x.o ../../../../../src/ta_abstract/tables/table_x.c + +../../../../../temp/csd/table_y.o: ../../../../../src/ta_abstract/tables/table_y.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_y.o ../../../../../src/ta_abstract/tables/table_y.c + +../../../../../temp/csd/table_z.o: ../../../../../src/ta_abstract/tables/table_z.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_z.o ../../../../../src/ta_abstract/tables/table_z.c + +../../../../../temp/csd/ta_utility.o: ../../../../../src/ta_func/ta_utility.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_utility.o ../../../../../src/ta_func/ta_utility.c + +../../../../../temp/csd/ta_ACOS.o: ../../../../../src/ta_func/ta_ACOS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_ACOS.o ../../../../../src/ta_func/ta_ACOS.c + +../../../../../temp/csd/ta_AD.o: ../../../../../src/ta_func/ta_AD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_AD.o ../../../../../src/ta_func/ta_AD.c + +../../../../../temp/csd/ta_ADD.o: ../../../../../src/ta_func/ta_ADD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_ADD.o ../../../../../src/ta_func/ta_ADD.c + +../../../../../temp/csd/ta_ADOSC.o: ../../../../../src/ta_func/ta_ADOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_ADOSC.o ../../../../../src/ta_func/ta_ADOSC.c + +../../../../../temp/csd/ta_ADX.o: ../../../../../src/ta_func/ta_ADX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_ADX.o ../../../../../src/ta_func/ta_ADX.c + +../../../../../temp/csd/ta_ADXR.o: ../../../../../src/ta_func/ta_ADXR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_ADXR.o ../../../../../src/ta_func/ta_ADXR.c + +../../../../../temp/csd/ta_APO.o: ../../../../../src/ta_func/ta_APO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_APO.o ../../../../../src/ta_func/ta_APO.c + +../../../../../temp/csd/ta_AROON.o: ../../../../../src/ta_func/ta_AROON.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_AROON.o ../../../../../src/ta_func/ta_AROON.c + +../../../../../temp/csd/ta_AROONOSC.o: ../../../../../src/ta_func/ta_AROONOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_AROONOSC.o ../../../../../src/ta_func/ta_AROONOSC.c + +../../../../../temp/csd/ta_ASIN.o: ../../../../../src/ta_func/ta_ASIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_ASIN.o ../../../../../src/ta_func/ta_ASIN.c + +../../../../../temp/csd/ta_ATAN.o: ../../../../../src/ta_func/ta_ATAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_ATAN.o ../../../../../src/ta_func/ta_ATAN.c + +../../../../../temp/csd/ta_ATR.o: ../../../../../src/ta_func/ta_ATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_ATR.o ../../../../../src/ta_func/ta_ATR.c + +../../../../../temp/csd/ta_AVGPRICE.o: ../../../../../src/ta_func/ta_AVGPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_AVGPRICE.o ../../../../../src/ta_func/ta_AVGPRICE.c + +../../../../../temp/csd/ta_BBANDS.o: ../../../../../src/ta_func/ta_BBANDS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_BBANDS.o ../../../../../src/ta_func/ta_BBANDS.c + +../../../../../temp/csd/ta_BETA.o: ../../../../../src/ta_func/ta_BETA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_BETA.o ../../../../../src/ta_func/ta_BETA.c + +../../../../../temp/csd/ta_BOP.o: ../../../../../src/ta_func/ta_BOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_BOP.o ../../../../../src/ta_func/ta_BOP.c + +../../../../../temp/csd/ta_CCI.o: ../../../../../src/ta_func/ta_CCI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CCI.o ../../../../../src/ta_func/ta_CCI.c + +../../../../../temp/csd/ta_CDL2CROWS.o: ../../../../../src/ta_func/ta_CDL2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDL2CROWS.o ../../../../../src/ta_func/ta_CDL2CROWS.c + +../../../../../temp/csd/ta_CDL3BLACKCROWS.o: ../../../../../src/ta_func/ta_CDL3BLACKCROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDL3BLACKCROWS.o ../../../../../src/ta_func/ta_CDL3BLACKCROWS.c + +../../../../../temp/csd/ta_CDL3INSIDE.o: ../../../../../src/ta_func/ta_CDL3INSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDL3INSIDE.o ../../../../../src/ta_func/ta_CDL3INSIDE.c + +../../../../../temp/csd/ta_CDL3LINESTRIKE.o: ../../../../../src/ta_func/ta_CDL3LINESTRIKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDL3LINESTRIKE.o ../../../../../src/ta_func/ta_CDL3LINESTRIKE.c + +../../../../../temp/csd/ta_CDL3OUTSIDE.o: ../../../../../src/ta_func/ta_CDL3OUTSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDL3OUTSIDE.o ../../../../../src/ta_func/ta_CDL3OUTSIDE.c + +../../../../../temp/csd/ta_CDL3STARSINSOUTH.o: ../../../../../src/ta_func/ta_CDL3STARSINSOUTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDL3STARSINSOUTH.o ../../../../../src/ta_func/ta_CDL3STARSINSOUTH.c + +../../../../../temp/csd/ta_CDL3WHITESOLDIERS.o: ../../../../../src/ta_func/ta_CDL3WHITESOLDIERS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDL3WHITESOLDIERS.o ../../../../../src/ta_func/ta_CDL3WHITESOLDIERS.c + +../../../../../temp/csd/ta_CDLABANDONEDBABY.o: ../../../../../src/ta_func/ta_CDLABANDONEDBABY.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLABANDONEDBABY.o ../../../../../src/ta_func/ta_CDLABANDONEDBABY.c + +../../../../../temp/csd/ta_CDLADVANCEBLOCK.o: ../../../../../src/ta_func/ta_CDLADVANCEBLOCK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLADVANCEBLOCK.o ../../../../../src/ta_func/ta_CDLADVANCEBLOCK.c + +../../../../../temp/csd/ta_CDLBELTHOLD.o: ../../../../../src/ta_func/ta_CDLBELTHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLBELTHOLD.o ../../../../../src/ta_func/ta_CDLBELTHOLD.c + +../../../../../temp/csd/ta_CDLBREAKAWAY.o: ../../../../../src/ta_func/ta_CDLBREAKAWAY.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLBREAKAWAY.o ../../../../../src/ta_func/ta_CDLBREAKAWAY.c + +../../../../../temp/csd/ta_CDLCLOSINGMARUBOZU.o: ../../../../../src/ta_func/ta_CDLCLOSINGMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLCLOSINGMARUBOZU.o ../../../../../src/ta_func/ta_CDLCLOSINGMARUBOZU.c + +../../../../../temp/csd/ta_CDLCONCEALBABYSWALL.o: ../../../../../src/ta_func/ta_CDLCONCEALBABYSWALL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLCONCEALBABYSWALL.o ../../../../../src/ta_func/ta_CDLCONCEALBABYSWALL.c + +../../../../../temp/csd/ta_CDLCOUNTERATTACK.o: ../../../../../src/ta_func/ta_CDLCOUNTERATTACK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLCOUNTERATTACK.o ../../../../../src/ta_func/ta_CDLCOUNTERATTACK.c + +../../../../../temp/csd/ta_CDLDARKCLOUDCOVER.o: ../../../../../src/ta_func/ta_CDLDARKCLOUDCOVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLDARKCLOUDCOVER.o ../../../../../src/ta_func/ta_CDLDARKCLOUDCOVER.c + +../../../../../temp/csd/ta_CDLDOJI.o: ../../../../../src/ta_func/ta_CDLDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLDOJI.o ../../../../../src/ta_func/ta_CDLDOJI.c + +../../../../../temp/csd/ta_CDLDOJISTAR.o: ../../../../../src/ta_func/ta_CDLDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLDOJISTAR.o ../../../../../src/ta_func/ta_CDLDOJISTAR.c + +../../../../../temp/csd/ta_CDLDRAGONFLYDOJI.o: ../../../../../src/ta_func/ta_CDLDRAGONFLYDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLDRAGONFLYDOJI.o ../../../../../src/ta_func/ta_CDLDRAGONFLYDOJI.c + +../../../../../temp/csd/ta_CDLENGULFING.o: ../../../../../src/ta_func/ta_CDLENGULFING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLENGULFING.o ../../../../../src/ta_func/ta_CDLENGULFING.c + +../../../../../temp/csd/ta_CDLEVENINGDOJISTAR.o: ../../../../../src/ta_func/ta_CDLEVENINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLEVENINGDOJISTAR.o ../../../../../src/ta_func/ta_CDLEVENINGDOJISTAR.c + +../../../../../temp/csd/ta_CDLEVENINGSTAR.o: ../../../../../src/ta_func/ta_CDLEVENINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLEVENINGSTAR.o ../../../../../src/ta_func/ta_CDLEVENINGSTAR.c + +../../../../../temp/csd/ta_CDLGAPSIDESIDEWHITE.o: ../../../../../src/ta_func/ta_CDLGAPSIDESIDEWHITE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLGAPSIDESIDEWHITE.o ../../../../../src/ta_func/ta_CDLGAPSIDESIDEWHITE.c + +../../../../../temp/csd/ta_CDLGRAVESTONEDOJI.o: ../../../../../src/ta_func/ta_CDLGRAVESTONEDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLGRAVESTONEDOJI.o ../../../../../src/ta_func/ta_CDLGRAVESTONEDOJI.c + +../../../../../temp/csd/ta_CDLHAMMER.o: ../../../../../src/ta_func/ta_CDLHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLHAMMER.o ../../../../../src/ta_func/ta_CDLHAMMER.c + +../../../../../temp/csd/ta_CDLHANGINGMAN.o: ../../../../../src/ta_func/ta_CDLHANGINGMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLHANGINGMAN.o ../../../../../src/ta_func/ta_CDLHANGINGMAN.c + +../../../../../temp/csd/ta_CDLHARAMI.o: ../../../../../src/ta_func/ta_CDLHARAMI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLHARAMI.o ../../../../../src/ta_func/ta_CDLHARAMI.c + +../../../../../temp/csd/ta_CDLHARAMICROSS.o: ../../../../../src/ta_func/ta_CDLHARAMICROSS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLHARAMICROSS.o ../../../../../src/ta_func/ta_CDLHARAMICROSS.c + +../../../../../temp/csd/ta_CDLHIGHWAVE.o: ../../../../../src/ta_func/ta_CDLHIGHWAVE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLHIGHWAVE.o ../../../../../src/ta_func/ta_CDLHIGHWAVE.c + +../../../../../temp/csd/ta_CDLHIKKAKE.o: ../../../../../src/ta_func/ta_CDLHIKKAKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLHIKKAKE.o ../../../../../src/ta_func/ta_CDLHIKKAKE.c + +../../../../../temp/csd/ta_CDLHIKKAKEMOD.o: ../../../../../src/ta_func/ta_CDLHIKKAKEMOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLHIKKAKEMOD.o ../../../../../src/ta_func/ta_CDLHIKKAKEMOD.c + +../../../../../temp/csd/ta_CDLHOMINGPIGEON.o: ../../../../../src/ta_func/ta_CDLHOMINGPIGEON.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLHOMINGPIGEON.o ../../../../../src/ta_func/ta_CDLHOMINGPIGEON.c + +../../../../../temp/csd/ta_CDLIDENTICAL3CROWS.o: ../../../../../src/ta_func/ta_CDLIDENTICAL3CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLIDENTICAL3CROWS.o ../../../../../src/ta_func/ta_CDLIDENTICAL3CROWS.c + +../../../../../temp/csd/ta_CDLINNECK.o: ../../../../../src/ta_func/ta_CDLINNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLINNECK.o ../../../../../src/ta_func/ta_CDLINNECK.c + +../../../../../temp/csd/ta_CDLINVERTEDHAMMER.o: ../../../../../src/ta_func/ta_CDLINVERTEDHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLINVERTEDHAMMER.o ../../../../../src/ta_func/ta_CDLINVERTEDHAMMER.c + +../../../../../temp/csd/ta_CDLKICKING.o: ../../../../../src/ta_func/ta_CDLKICKING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLKICKING.o ../../../../../src/ta_func/ta_CDLKICKING.c + +../../../../../temp/csd/ta_CDLKICKINGBYLENGTH.o: ../../../../../src/ta_func/ta_CDLKICKINGBYLENGTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLKICKINGBYLENGTH.o ../../../../../src/ta_func/ta_CDLKICKINGBYLENGTH.c + +../../../../../temp/csd/ta_CDLLADDERBOTTOM.o: ../../../../../src/ta_func/ta_CDLLADDERBOTTOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLLADDERBOTTOM.o ../../../../../src/ta_func/ta_CDLLADDERBOTTOM.c + +../../../../../temp/csd/ta_CDLLONGLEGGEDDOJI.o: ../../../../../src/ta_func/ta_CDLLONGLEGGEDDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLLONGLEGGEDDOJI.o ../../../../../src/ta_func/ta_CDLLONGLEGGEDDOJI.c + +../../../../../temp/csd/ta_CDLLONGLINE.o: ../../../../../src/ta_func/ta_CDLLONGLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLLONGLINE.o ../../../../../src/ta_func/ta_CDLLONGLINE.c + +../../../../../temp/csd/ta_CDLMARUBOZU.o: ../../../../../src/ta_func/ta_CDLMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLMARUBOZU.o ../../../../../src/ta_func/ta_CDLMARUBOZU.c + +../../../../../temp/csd/ta_CDLMATCHINGLOW.o: ../../../../../src/ta_func/ta_CDLMATCHINGLOW.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLMATCHINGLOW.o ../../../../../src/ta_func/ta_CDLMATCHINGLOW.c + +../../../../../temp/csd/ta_CDLMATHOLD.o: ../../../../../src/ta_func/ta_CDLMATHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLMATHOLD.o ../../../../../src/ta_func/ta_CDLMATHOLD.c + +../../../../../temp/csd/ta_CDLMORNINGDOJISTAR.o: ../../../../../src/ta_func/ta_CDLMORNINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLMORNINGDOJISTAR.o ../../../../../src/ta_func/ta_CDLMORNINGDOJISTAR.c + +../../../../../temp/csd/ta_CDLMORNINGSTAR.o: ../../../../../src/ta_func/ta_CDLMORNINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLMORNINGSTAR.o ../../../../../src/ta_func/ta_CDLMORNINGSTAR.c + +../../../../../temp/csd/ta_CDLONNECK.o: ../../../../../src/ta_func/ta_CDLONNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLONNECK.o ../../../../../src/ta_func/ta_CDLONNECK.c + +../../../../../temp/csd/ta_CDLPIERCING.o: ../../../../../src/ta_func/ta_CDLPIERCING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLPIERCING.o ../../../../../src/ta_func/ta_CDLPIERCING.c + +../../../../../temp/csd/ta_CDLRICKSHAWMAN.o: ../../../../../src/ta_func/ta_CDLRICKSHAWMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLRICKSHAWMAN.o ../../../../../src/ta_func/ta_CDLRICKSHAWMAN.c + +../../../../../temp/csd/ta_CDLRISEFALL3METHODS.o: ../../../../../src/ta_func/ta_CDLRISEFALL3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLRISEFALL3METHODS.o ../../../../../src/ta_func/ta_CDLRISEFALL3METHODS.c + +../../../../../temp/csd/ta_CDLSEPARATINGLINES.o: ../../../../../src/ta_func/ta_CDLSEPARATINGLINES.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLSEPARATINGLINES.o ../../../../../src/ta_func/ta_CDLSEPARATINGLINES.c + +../../../../../temp/csd/ta_CDLSHOOTINGSTAR.o: ../../../../../src/ta_func/ta_CDLSHOOTINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLSHOOTINGSTAR.o ../../../../../src/ta_func/ta_CDLSHOOTINGSTAR.c + +../../../../../temp/csd/ta_CDLSHORTLINE.o: ../../../../../src/ta_func/ta_CDLSHORTLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLSHORTLINE.o ../../../../../src/ta_func/ta_CDLSHORTLINE.c + +../../../../../temp/csd/ta_CDLSPINNINGTOP.o: ../../../../../src/ta_func/ta_CDLSPINNINGTOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLSPINNINGTOP.o ../../../../../src/ta_func/ta_CDLSPINNINGTOP.c + +../../../../../temp/csd/ta_CDLSTALLEDPATTERN.o: ../../../../../src/ta_func/ta_CDLSTALLEDPATTERN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLSTALLEDPATTERN.o ../../../../../src/ta_func/ta_CDLSTALLEDPATTERN.c + +../../../../../temp/csd/ta_CDLSTICKSANDWICH.o: ../../../../../src/ta_func/ta_CDLSTICKSANDWICH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLSTICKSANDWICH.o ../../../../../src/ta_func/ta_CDLSTICKSANDWICH.c + +../../../../../temp/csd/ta_CDLTAKURI.o: ../../../../../src/ta_func/ta_CDLTAKURI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLTAKURI.o ../../../../../src/ta_func/ta_CDLTAKURI.c + +../../../../../temp/csd/ta_CDLTASUKIGAP.o: ../../../../../src/ta_func/ta_CDLTASUKIGAP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLTASUKIGAP.o ../../../../../src/ta_func/ta_CDLTASUKIGAP.c + +../../../../../temp/csd/ta_CDLTHRUSTING.o: ../../../../../src/ta_func/ta_CDLTHRUSTING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLTHRUSTING.o ../../../../../src/ta_func/ta_CDLTHRUSTING.c + +../../../../../temp/csd/ta_CDLTRISTAR.o: ../../../../../src/ta_func/ta_CDLTRISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLTRISTAR.o ../../../../../src/ta_func/ta_CDLTRISTAR.c + +../../../../../temp/csd/ta_CDLUNIQUE3RIVER.o: ../../../../../src/ta_func/ta_CDLUNIQUE3RIVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLUNIQUE3RIVER.o ../../../../../src/ta_func/ta_CDLUNIQUE3RIVER.c + +../../../../../temp/csd/ta_CDLUPSIDEGAP2CROWS.o: ../../../../../src/ta_func/ta_CDLUPSIDEGAP2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLUPSIDEGAP2CROWS.o ../../../../../src/ta_func/ta_CDLUPSIDEGAP2CROWS.c + +../../../../../temp/csd/ta_CDLXSIDEGAP3METHODS.o: ../../../../../src/ta_func/ta_CDLXSIDEGAP3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLXSIDEGAP3METHODS.o ../../../../../src/ta_func/ta_CDLXSIDEGAP3METHODS.c + +../../../../../temp/csd/ta_CEIL.o: ../../../../../src/ta_func/ta_CEIL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CEIL.o ../../../../../src/ta_func/ta_CEIL.c + +../../../../../temp/csd/ta_CMO.o: ../../../../../src/ta_func/ta_CMO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CMO.o ../../../../../src/ta_func/ta_CMO.c + +../../../../../temp/csd/ta_CORREL.o: ../../../../../src/ta_func/ta_CORREL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CORREL.o ../../../../../src/ta_func/ta_CORREL.c + +../../../../../temp/csd/ta_COS.o: ../../../../../src/ta_func/ta_COS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_COS.o ../../../../../src/ta_func/ta_COS.c + +../../../../../temp/csd/ta_COSH.o: ../../../../../src/ta_func/ta_COSH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_COSH.o ../../../../../src/ta_func/ta_COSH.c + +../../../../../temp/csd/ta_DEMA.o: ../../../../../src/ta_func/ta_DEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_DEMA.o ../../../../../src/ta_func/ta_DEMA.c + +../../../../../temp/csd/ta_DIV.o: ../../../../../src/ta_func/ta_DIV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_DIV.o ../../../../../src/ta_func/ta_DIV.c + +../../../../../temp/csd/ta_DX.o: ../../../../../src/ta_func/ta_DX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_DX.o ../../../../../src/ta_func/ta_DX.c + +../../../../../temp/csd/ta_EMA.o: ../../../../../src/ta_func/ta_EMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_EMA.o ../../../../../src/ta_func/ta_EMA.c + +../../../../../temp/csd/ta_EXP.o: ../../../../../src/ta_func/ta_EXP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_EXP.o ../../../../../src/ta_func/ta_EXP.c + +../../../../../temp/csd/ta_FLOOR.o: ../../../../../src/ta_func/ta_FLOOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_FLOOR.o ../../../../../src/ta_func/ta_FLOOR.c + +../../../../../temp/csd/ta_HT_DCPERIOD.o: ../../../../../src/ta_func/ta_HT_DCPERIOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_HT_DCPERIOD.o ../../../../../src/ta_func/ta_HT_DCPERIOD.c + +../../../../../temp/csd/ta_HT_DCPHASE.o: ../../../../../src/ta_func/ta_HT_DCPHASE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_HT_DCPHASE.o ../../../../../src/ta_func/ta_HT_DCPHASE.c + +../../../../../temp/csd/ta_HT_PHASOR.o: ../../../../../src/ta_func/ta_HT_PHASOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_HT_PHASOR.o ../../../../../src/ta_func/ta_HT_PHASOR.c + +../../../../../temp/csd/ta_HT_SINE.o: ../../../../../src/ta_func/ta_HT_SINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_HT_SINE.o ../../../../../src/ta_func/ta_HT_SINE.c + +../../../../../temp/csd/ta_HT_TRENDLINE.o: ../../../../../src/ta_func/ta_HT_TRENDLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_HT_TRENDLINE.o ../../../../../src/ta_func/ta_HT_TRENDLINE.c + +../../../../../temp/csd/ta_HT_TRENDMODE.o: ../../../../../src/ta_func/ta_HT_TRENDMODE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_HT_TRENDMODE.o ../../../../../src/ta_func/ta_HT_TRENDMODE.c + +../../../../../temp/csd/ta_KAMA.o: ../../../../../src/ta_func/ta_KAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_KAMA.o ../../../../../src/ta_func/ta_KAMA.c + +../../../../../temp/csd/ta_LINEARREG.o: ../../../../../src/ta_func/ta_LINEARREG.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_LINEARREG.o ../../../../../src/ta_func/ta_LINEARREG.c + +../../../../../temp/csd/ta_LINEARREG_ANGLE.o: ../../../../../src/ta_func/ta_LINEARREG_ANGLE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_LINEARREG_ANGLE.o ../../../../../src/ta_func/ta_LINEARREG_ANGLE.c + +../../../../../temp/csd/ta_LINEARREG_INTERCEPT.o: ../../../../../src/ta_func/ta_LINEARREG_INTERCEPT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_LINEARREG_INTERCEPT.o ../../../../../src/ta_func/ta_LINEARREG_INTERCEPT.c + +../../../../../temp/csd/ta_LINEARREG_SLOPE.o: ../../../../../src/ta_func/ta_LINEARREG_SLOPE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_LINEARREG_SLOPE.o ../../../../../src/ta_func/ta_LINEARREG_SLOPE.c + +../../../../../temp/csd/ta_LN.o: ../../../../../src/ta_func/ta_LN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_LN.o ../../../../../src/ta_func/ta_LN.c + +../../../../../temp/csd/ta_LOG10.o: ../../../../../src/ta_func/ta_LOG10.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_LOG10.o ../../../../../src/ta_func/ta_LOG10.c + +../../../../../temp/csd/ta_MA.o: ../../../../../src/ta_func/ta_MA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_MA.o ../../../../../src/ta_func/ta_MA.c + +../../../../../temp/csd/ta_MACD.o: ../../../../../src/ta_func/ta_MACD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_MACD.o ../../../../../src/ta_func/ta_MACD.c + +../../../../../temp/csd/ta_MACDEXT.o: ../../../../../src/ta_func/ta_MACDEXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_MACDEXT.o ../../../../../src/ta_func/ta_MACDEXT.c + +../../../../../temp/csd/ta_MACDFIX.o: ../../../../../src/ta_func/ta_MACDFIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_MACDFIX.o ../../../../../src/ta_func/ta_MACDFIX.c + +../../../../../temp/csd/ta_MAMA.o: ../../../../../src/ta_func/ta_MAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_MAMA.o ../../../../../src/ta_func/ta_MAMA.c + +../../../../../temp/csd/ta_MAVP.o: ../../../../../src/ta_func/ta_MAVP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_MAVP.o ../../../../../src/ta_func/ta_MAVP.c + +../../../../../temp/csd/ta_MAX.o: ../../../../../src/ta_func/ta_MAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_MAX.o ../../../../../src/ta_func/ta_MAX.c + +../../../../../temp/csd/ta_MAXINDEX.o: ../../../../../src/ta_func/ta_MAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_MAXINDEX.o ../../../../../src/ta_func/ta_MAXINDEX.c + +../../../../../temp/csd/ta_MEDPRICE.o: ../../../../../src/ta_func/ta_MEDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_MEDPRICE.o ../../../../../src/ta_func/ta_MEDPRICE.c + +../../../../../temp/csd/ta_MFI.o: ../../../../../src/ta_func/ta_MFI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_MFI.o ../../../../../src/ta_func/ta_MFI.c + +../../../../../temp/csd/ta_MIDPOINT.o: ../../../../../src/ta_func/ta_MIDPOINT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_MIDPOINT.o ../../../../../src/ta_func/ta_MIDPOINT.c + +../../../../../temp/csd/ta_MIDPRICE.o: ../../../../../src/ta_func/ta_MIDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_MIDPRICE.o ../../../../../src/ta_func/ta_MIDPRICE.c + +../../../../../temp/csd/ta_MIN.o: ../../../../../src/ta_func/ta_MIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_MIN.o ../../../../../src/ta_func/ta_MIN.c + +../../../../../temp/csd/ta_MININDEX.o: ../../../../../src/ta_func/ta_MININDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_MININDEX.o ../../../../../src/ta_func/ta_MININDEX.c + +../../../../../temp/csd/ta_MINMAX.o: ../../../../../src/ta_func/ta_MINMAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_MINMAX.o ../../../../../src/ta_func/ta_MINMAX.c + +../../../../../temp/csd/ta_MINMAXINDEX.o: ../../../../../src/ta_func/ta_MINMAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_MINMAXINDEX.o ../../../../../src/ta_func/ta_MINMAXINDEX.c + +../../../../../temp/csd/ta_MINUS_DI.o: ../../../../../src/ta_func/ta_MINUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_MINUS_DI.o ../../../../../src/ta_func/ta_MINUS_DI.c + +../../../../../temp/csd/ta_MINUS_DM.o: ../../../../../src/ta_func/ta_MINUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_MINUS_DM.o ../../../../../src/ta_func/ta_MINUS_DM.c + +../../../../../temp/csd/ta_MOM.o: ../../../../../src/ta_func/ta_MOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_MOM.o ../../../../../src/ta_func/ta_MOM.c + +../../../../../temp/csd/ta_MULT.o: ../../../../../src/ta_func/ta_MULT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_MULT.o ../../../../../src/ta_func/ta_MULT.c + +../../../../../temp/csd/ta_NATR.o: ../../../../../src/ta_func/ta_NATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_NATR.o ../../../../../src/ta_func/ta_NATR.c + +../../../../../temp/csd/ta_OBV.o: ../../../../../src/ta_func/ta_OBV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_OBV.o ../../../../../src/ta_func/ta_OBV.c + +../../../../../temp/csd/ta_PLUS_DI.o: ../../../../../src/ta_func/ta_PLUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_PLUS_DI.o ../../../../../src/ta_func/ta_PLUS_DI.c + +../../../../../temp/csd/ta_PLUS_DM.o: ../../../../../src/ta_func/ta_PLUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_PLUS_DM.o ../../../../../src/ta_func/ta_PLUS_DM.c + +../../../../../temp/csd/ta_PPO.o: ../../../../../src/ta_func/ta_PPO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_PPO.o ../../../../../src/ta_func/ta_PPO.c + +../../../../../temp/csd/ta_ROC.o: ../../../../../src/ta_func/ta_ROC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_ROC.o ../../../../../src/ta_func/ta_ROC.c + +../../../../../temp/csd/ta_ROCP.o: ../../../../../src/ta_func/ta_ROCP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_ROCP.o ../../../../../src/ta_func/ta_ROCP.c + +../../../../../temp/csd/ta_ROCR.o: ../../../../../src/ta_func/ta_ROCR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_ROCR.o ../../../../../src/ta_func/ta_ROCR.c + +../../../../../temp/csd/ta_ROCR100.o: ../../../../../src/ta_func/ta_ROCR100.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_ROCR100.o ../../../../../src/ta_func/ta_ROCR100.c + +../../../../../temp/csd/ta_RSI.o: ../../../../../src/ta_func/ta_RSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_RSI.o ../../../../../src/ta_func/ta_RSI.c + +../../../../../temp/csd/ta_SAR.o: ../../../../../src/ta_func/ta_SAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_SAR.o ../../../../../src/ta_func/ta_SAR.c + +../../../../../temp/csd/ta_SAREXT.o: ../../../../../src/ta_func/ta_SAREXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_SAREXT.o ../../../../../src/ta_func/ta_SAREXT.c + +../../../../../temp/csd/ta_SIN.o: ../../../../../src/ta_func/ta_SIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_SIN.o ../../../../../src/ta_func/ta_SIN.c + +../../../../../temp/csd/ta_SINH.o: ../../../../../src/ta_func/ta_SINH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_SINH.o ../../../../../src/ta_func/ta_SINH.c + +../../../../../temp/csd/ta_SMA.o: ../../../../../src/ta_func/ta_SMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_SMA.o ../../../../../src/ta_func/ta_SMA.c + +../../../../../temp/csd/ta_SQRT.o: ../../../../../src/ta_func/ta_SQRT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_SQRT.o ../../../../../src/ta_func/ta_SQRT.c + +../../../../../temp/csd/ta_STDDEV.o: ../../../../../src/ta_func/ta_STDDEV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_STDDEV.o ../../../../../src/ta_func/ta_STDDEV.c + +../../../../../temp/csd/ta_STOCH.o: ../../../../../src/ta_func/ta_STOCH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_STOCH.o ../../../../../src/ta_func/ta_STOCH.c + +../../../../../temp/csd/ta_STOCHF.o: ../../../../../src/ta_func/ta_STOCHF.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_STOCHF.o ../../../../../src/ta_func/ta_STOCHF.c + +../../../../../temp/csd/ta_STOCHRSI.o: ../../../../../src/ta_func/ta_STOCHRSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_STOCHRSI.o ../../../../../src/ta_func/ta_STOCHRSI.c + +../../../../../temp/csd/ta_SUB.o: ../../../../../src/ta_func/ta_SUB.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_SUB.o ../../../../../src/ta_func/ta_SUB.c + +../../../../../temp/csd/ta_SUM.o: ../../../../../src/ta_func/ta_SUM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_SUM.o ../../../../../src/ta_func/ta_SUM.c + +../../../../../temp/csd/ta_T3.o: ../../../../../src/ta_func/ta_T3.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_T3.o ../../../../../src/ta_func/ta_T3.c + +../../../../../temp/csd/ta_TAN.o: ../../../../../src/ta_func/ta_TAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_TAN.o ../../../../../src/ta_func/ta_TAN.c + +../../../../../temp/csd/ta_TANH.o: ../../../../../src/ta_func/ta_TANH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_TANH.o ../../../../../src/ta_func/ta_TANH.c + +../../../../../temp/csd/ta_TEMA.o: ../../../../../src/ta_func/ta_TEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_TEMA.o ../../../../../src/ta_func/ta_TEMA.c + +../../../../../temp/csd/ta_TRANGE.o: ../../../../../src/ta_func/ta_TRANGE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_TRANGE.o ../../../../../src/ta_func/ta_TRANGE.c + +../../../../../temp/csd/ta_TRIMA.o: ../../../../../src/ta_func/ta_TRIMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_TRIMA.o ../../../../../src/ta_func/ta_TRIMA.c + +../../../../../temp/csd/ta_TRIX.o: ../../../../../src/ta_func/ta_TRIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_TRIX.o ../../../../../src/ta_func/ta_TRIX.c + +../../../../../temp/csd/ta_TSF.o: ../../../../../src/ta_func/ta_TSF.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_TSF.o ../../../../../src/ta_func/ta_TSF.c + +../../../../../temp/csd/ta_TYPPRICE.o: ../../../../../src/ta_func/ta_TYPPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_TYPPRICE.o ../../../../../src/ta_func/ta_TYPPRICE.c + +../../../../../temp/csd/ta_ULTOSC.o: ../../../../../src/ta_func/ta_ULTOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_ULTOSC.o ../../../../../src/ta_func/ta_ULTOSC.c + +../../../../../temp/csd/ta_VAR.o: ../../../../../src/ta_func/ta_VAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_VAR.o ../../../../../src/ta_func/ta_VAR.c + +../../../../../temp/csd/ta_WCLPRICE.o: ../../../../../src/ta_func/ta_WCLPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_WCLPRICE.o ../../../../../src/ta_func/ta_WCLPRICE.c + +../../../../../temp/csd/ta_WILLR.o: ../../../../../src/ta_func/ta_WILLR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_WILLR.o ../../../../../src/ta_func/ta_WILLR.c + +../../../../../temp/csd/ta_WMA.o: ../../../../../src/ta_func/ta_WMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_WMA.o ../../../../../src/ta_func/ta_WMA.c + diff --git a/make/csd/cygwin/g++/ta_regtest/Makefile b/make/csd/cygwin/g++/ta_regtest/Makefile new file mode 100644 index 000000000..7f59ebf68 --- /dev/null +++ b/make/csd/cygwin/g++/ta_regtest/Makefile @@ -0,0 +1,211 @@ +############################################################################# +# Makefile for building ../../../../../bin/ta_regtest +# Generated by tmake; +# Project: ta_regtest/ta_regtest +# Template: app +############################################################################# + +####### Compiler, tools and options + +CC = gcc +CXX = g++ +CFLAGS = -pipe -Wall -W -g -DTA_DEBUG -D_DEBUG -DTA_SINGLE_THREAD +CXXFLAGS= -pipe -Wall -W -g -DTA_DEBUG -D_DEBUG -DTA_SINGLE_THREAD +INCPATH = -I../../../../../src/ta_common -I../../../../../src/tools/ta_regtest -I../../../../../src/ta_func -I../../../../../include +LINK = g++ +LFLAGS = +LIBS = $(SUBLIBS) ../../../../../lib/libta_libc_csd.a +MOC = $(QTDIR)/bin/moc +UIC = $(QTDIR)/bin/uic + +TAR = tar -cf +GZIP = gzip -9f + +####### Support for 64-bit systems +ifeq ($(shell uname -m), x86_64) + CFLAGS += -march=x86-64 -m64 -D__64BIT__ + CXXFLAGS += -march=x86-64 -m64 -D__64BIT__ +endif + +####### Apply additional overruling user flags, if any +CFLAGS += $(CUSERFLAGS) +CXXFLAGS += $(CUSERFLAGS) + +####### Files + +HEADERS = +SOURCES = ../../../../../src/tools/ta_regtest/ta_regtest.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_candlestick.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_1in_1out.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_1in_2out.c \ + ../../../../../src/tools/ta_regtest/test_internals.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_adx.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_bbands.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_ma.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_macd.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_minmax.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_mom.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_per_ema.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hl.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hlc.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hlcv.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_per_ohlc.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_po.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_rsi.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_sar.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_stddev.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_stoch.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_trange.c \ + ../../../../../src/tools/ta_regtest/test_util.c \ + ../../../../../src/tools/ta_regtest/test_data.c \ + ../../../../../src/tools/ta_regtest/test_abstract.c +OBJECTS = ../../../../../temp/csd/ta_regtest.o \ + ../../../../../temp/csd/test_candlestick.o \ + ../../../../../temp/csd/test_1in_1out.o \ + ../../../../../temp/csd/test_1in_2out.o \ + ../../../../../temp/csd/test_internals.o \ + ../../../../../temp/csd/test_adx.o \ + ../../../../../temp/csd/test_bbands.o \ + ../../../../../temp/csd/test_ma.o \ + ../../../../../temp/csd/test_macd.o \ + ../../../../../temp/csd/test_minmax.o \ + ../../../../../temp/csd/test_mom.o \ + ../../../../../temp/csd/test_per_ema.o \ + ../../../../../temp/csd/test_per_hl.o \ + ../../../../../temp/csd/test_per_hlc.o \ + ../../../../../temp/csd/test_per_hlcv.o \ + ../../../../../temp/csd/test_per_ohlc.o \ + ../../../../../temp/csd/test_po.o \ + ../../../../../temp/csd/test_rsi.o \ + ../../../../../temp/csd/test_sar.o \ + ../../../../../temp/csd/test_stddev.o \ + ../../../../../temp/csd/test_stoch.o \ + ../../../../../temp/csd/test_trange.o \ + ../../../../../temp/csd/test_util.o \ + ../../../../../temp/csd/test_data.o \ + ../../../../../temp/csd/test_abstract.o +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ../../../../../bin/ta_regtest +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .C .c + +.cpp.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cxx.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cc.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.C.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.c.o: + $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $< + +####### Build rules + + +all: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS) + +moc: $(SRCMOC) + +clean: + -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) + -rm -f *~ core + +####### Sub-libraries + + +###### Combined headers + + +####### Compile + +../../../../../temp/csd/ta_regtest.o: ../../../../../src/tools/ta_regtest/ta_regtest.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_regtest.o ../../../../../src/tools/ta_regtest/ta_regtest.c + +../../../../../temp/csd/test_candlestick.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_candlestick.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/test_candlestick.o ../../../../../src/tools/ta_regtest/ta_test_func/test_candlestick.c + +../../../../../temp/csd/test_1in_1out.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_1in_1out.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/test_1in_1out.o ../../../../../src/tools/ta_regtest/ta_test_func/test_1in_1out.c + +../../../../../temp/csd/test_1in_2out.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_1in_2out.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/test_1in_2out.o ../../../../../src/tools/ta_regtest/ta_test_func/test_1in_2out.c + +../../../../../temp/csd/test_internals.o: ../../../../../src/tools/ta_regtest/test_internals.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/test_internals.o ../../../../../src/tools/ta_regtest/test_internals.c + +../../../../../temp/csd/test_adx.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_adx.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/test_adx.o ../../../../../src/tools/ta_regtest/ta_test_func/test_adx.c + +../../../../../temp/csd/test_bbands.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_bbands.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/test_bbands.o ../../../../../src/tools/ta_regtest/ta_test_func/test_bbands.c + +../../../../../temp/csd/test_ma.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_ma.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/test_ma.o ../../../../../src/tools/ta_regtest/ta_test_func/test_ma.c + +../../../../../temp/csd/test_macd.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_macd.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/test_macd.o ../../../../../src/tools/ta_regtest/ta_test_func/test_macd.c + +../../../../../temp/csd/test_minmax.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_minmax.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/test_minmax.o ../../../../../src/tools/ta_regtest/ta_test_func/test_minmax.c + +../../../../../temp/csd/test_mom.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_mom.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/test_mom.o ../../../../../src/tools/ta_regtest/ta_test_func/test_mom.c + +../../../../../temp/csd/test_per_ema.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_per_ema.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/test_per_ema.o ../../../../../src/tools/ta_regtest/ta_test_func/test_per_ema.c + +../../../../../temp/csd/test_per_hl.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hl.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/test_per_hl.o ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hl.c + +../../../../../temp/csd/test_per_hlc.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hlc.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/test_per_hlc.o ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hlc.c + +../../../../../temp/csd/test_per_hlcv.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hlcv.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/test_per_hlcv.o ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hlcv.c + +../../../../../temp/csd/test_per_ohlc.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_per_ohlc.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/test_per_ohlc.o ../../../../../src/tools/ta_regtest/ta_test_func/test_per_ohlc.c + +../../../../../temp/csd/test_po.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_po.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/test_po.o ../../../../../src/tools/ta_regtest/ta_test_func/test_po.c + +../../../../../temp/csd/test_rsi.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_rsi.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/test_rsi.o ../../../../../src/tools/ta_regtest/ta_test_func/test_rsi.c + +../../../../../temp/csd/test_sar.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_sar.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/test_sar.o ../../../../../src/tools/ta_regtest/ta_test_func/test_sar.c + +../../../../../temp/csd/test_stddev.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_stddev.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/test_stddev.o ../../../../../src/tools/ta_regtest/ta_test_func/test_stddev.c + +../../../../../temp/csd/test_stoch.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_stoch.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/test_stoch.o ../../../../../src/tools/ta_regtest/ta_test_func/test_stoch.c + +../../../../../temp/csd/test_trange.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_trange.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/test_trange.o ../../../../../src/tools/ta_regtest/ta_test_func/test_trange.c + +../../../../../temp/csd/test_util.o: ../../../../../src/tools/ta_regtest/test_util.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/test_util.o ../../../../../src/tools/ta_regtest/test_util.c + +../../../../../temp/csd/test_data.o: ../../../../../src/tools/ta_regtest/test_data.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/test_data.o ../../../../../src/tools/ta_regtest/test_data.c + +../../../../../temp/csd/test_abstract.o: ../../../../../src/tools/ta_regtest/test_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/test_abstract.o ../../../../../src/tools/ta_regtest/test_abstract.c + diff --git a/make/csd/freebsd/g++/Makefile b/make/csd/freebsd/g++/Makefile new file mode 100644 index 000000000..d07b6c51d --- /dev/null +++ b/make/csd/freebsd/g++/Makefile @@ -0,0 +1,36 @@ +############################################################################# +# Makefile for building targets in sub directories. +# Generated by tmake; +# Project: rootmake +# Template: subdirs +############################################################################# + +MAKEFILE= Makefile +TMAKE = tmake + +SUBDIRS = ta_common \ + ta_func \ + ta_abstract \ + ta_libc \ + gen_code \ + ta_regtest + +all: $(SUBDIRS) + +$(SUBDIRS): FORCE + cd $@; $(MAKE) + +tmake: ../csd/freebsd/g++/Makefile + +../csd/freebsd/g++/Makefile: rootmake.pro + tmake rootmake.pro -o ../csd/freebsd/g++/Makefile + +tmake_all: + for i in $(SUBDIRS); do ( if [ -d $$i ]; then cd $$i ; $(MAKE) -f $(MAKEFILE) tmake_all || true; fi; ) ; done + +#### $text = "\t" . 'for i in $(SUBDIRS); do ( if [ -d $$i ]; then cd $$i ; pro=`basename $$i`.pro ; $(TMAKE) $$pro -o $(MAKEFILE); grep "TEMPLATE.*subdirs" $$pro 2>/dev/null >/dev/null && $(MAKE) -f $(MAKEFILE) tmake_all || true; fi; ) ; done'; + +clean release debug: + for i in $(SUBDIRS); do ( if [ -d $$i ]; then cd $$i ; $(MAKE) $@; fi; ) ; done + +FORCE: diff --git a/make/csd/freebsd/g++/gen_code/Makefile b/make/csd/freebsd/g++/gen_code/Makefile new file mode 100644 index 000000000..d21be7c60 --- /dev/null +++ b/make/csd/freebsd/g++/gen_code/Makefile @@ -0,0 +1,225 @@ +############################################################################# +# Makefile for building ../../../../../bin/gen_code +# Generated by tmake; +# Project: gen_code/gen_code +# Template: app +############################################################################# + +####### Compiler, tools and options + +CC = gcc +CXX = g++ +CFLAGS = -pipe -Wall -W -g -DTA_GEN_CODE -DTA_DEBUG -D_DEBUG -DTA_SINGLE_THREAD +CXXFLAGS= -pipe -Wall -W -g -DTA_GEN_CODE -DTA_DEBUG -D_DEBUG -DTA_SINGLE_THREAD +INCPATH = -I../../../../../include -I../../../../../src/ta_common -I../../../../../src/ta_abstract -I../../../../../src/ta_abstract/tables -I../../../../../src/ta_abstract/frames -I/usr/local/include +LINK = g++ +LFLAGS = -L/usr/local/lib +LIBS = $(SUBLIBS) ../../../../../lib/libta_common_csd.a +MOC = $(QTDIR)/bin/moc +UIC = $(QTDIR)/bin/uic + +TAR = tar -cf +GZIP = gzip -9f + +####### Apply additional overruling user flags, if any +CFLAGS += $(CUSERFLAGS) +CXXFLAGS += $(CUSERFLAGS) + +####### Files + +HEADERS = +SOURCES = ../../../../../src/tools/gen_code/gen_code.c \ + ../../../../../src/ta_abstract/ta_abstract.c \ + ../../../../../src/ta_abstract/ta_def_ui.c \ + ../../../../../src/ta_abstract/tables/table_a.c \ + ../../../../../src/ta_abstract/tables/table_b.c \ + ../../../../../src/ta_abstract/tables/table_c.c \ + ../../../../../src/ta_abstract/tables/table_d.c \ + ../../../../../src/ta_abstract/tables/table_e.c \ + ../../../../../src/ta_abstract/tables/table_f.c \ + ../../../../../src/ta_abstract/tables/table_g.c \ + ../../../../../src/ta_abstract/tables/table_h.c \ + ../../../../../src/ta_abstract/tables/table_i.c \ + ../../../../../src/ta_abstract/tables/table_j.c \ + ../../../../../src/ta_abstract/tables/table_k.c \ + ../../../../../src/ta_abstract/tables/table_l.c \ + ../../../../../src/ta_abstract/tables/table_m.c \ + ../../../../../src/ta_abstract/tables/table_n.c \ + ../../../../../src/ta_abstract/tables/table_o.c \ + ../../../../../src/ta_abstract/tables/table_p.c \ + ../../../../../src/ta_abstract/tables/table_q.c \ + ../../../../../src/ta_abstract/tables/table_r.c \ + ../../../../../src/ta_abstract/tables/table_s.c \ + ../../../../../src/ta_abstract/tables/table_t.c \ + ../../../../../src/ta_abstract/tables/table_u.c \ + ../../../../../src/ta_abstract/tables/table_v.c \ + ../../../../../src/ta_abstract/tables/table_w.c \ + ../../../../../src/ta_abstract/tables/table_x.c \ + ../../../../../src/ta_abstract/tables/table_y.c \ + ../../../../../src/ta_abstract/tables/table_z.c +OBJECTS = ../../../../../temp/csd/gen_code/gen_code.o \ + ../../../../../temp/csd/gen_code/ta_abstract.o \ + ../../../../../temp/csd/gen_code/ta_def_ui.o \ + ../../../../../temp/csd/gen_code/table_a.o \ + ../../../../../temp/csd/gen_code/table_b.o \ + ../../../../../temp/csd/gen_code/table_c.o \ + ../../../../../temp/csd/gen_code/table_d.o \ + ../../../../../temp/csd/gen_code/table_e.o \ + ../../../../../temp/csd/gen_code/table_f.o \ + ../../../../../temp/csd/gen_code/table_g.o \ + ../../../../../temp/csd/gen_code/table_h.o \ + ../../../../../temp/csd/gen_code/table_i.o \ + ../../../../../temp/csd/gen_code/table_j.o \ + ../../../../../temp/csd/gen_code/table_k.o \ + ../../../../../temp/csd/gen_code/table_l.o \ + ../../../../../temp/csd/gen_code/table_m.o \ + ../../../../../temp/csd/gen_code/table_n.o \ + ../../../../../temp/csd/gen_code/table_o.o \ + ../../../../../temp/csd/gen_code/table_p.o \ + ../../../../../temp/csd/gen_code/table_q.o \ + ../../../../../temp/csd/gen_code/table_r.o \ + ../../../../../temp/csd/gen_code/table_s.o \ + ../../../../../temp/csd/gen_code/table_t.o \ + ../../../../../temp/csd/gen_code/table_u.o \ + ../../../../../temp/csd/gen_code/table_v.o \ + ../../../../../temp/csd/gen_code/table_w.o \ + ../../../../../temp/csd/gen_code/table_x.o \ + ../../../../../temp/csd/gen_code/table_y.o \ + ../../../../../temp/csd/gen_code/table_z.o +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ../../../../../bin/gen_code +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .C .c + +.cpp.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cxx.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cc.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.C.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.c.o: + $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $< + +####### Build rules + + +all: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS) + +moc: $(SRCMOC) + +clean: + -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) + -rm -f *~ core + +####### Sub-libraries + + +###### Combined headers + + +####### Compile + +../../../../../temp/csd/gen_code/gen_code.o: ../../../../../src/tools/gen_code/gen_code.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/gen_code/gen_code.o ../../../../../src/tools/gen_code/gen_code.c + +../../../../../temp/csd/gen_code/ta_abstract.o: ../../../../../src/ta_abstract/ta_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/gen_code/ta_abstract.o ../../../../../src/ta_abstract/ta_abstract.c + +../../../../../temp/csd/gen_code/ta_def_ui.o: ../../../../../src/ta_abstract/ta_def_ui.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/gen_code/ta_def_ui.o ../../../../../src/ta_abstract/ta_def_ui.c + +../../../../../temp/csd/gen_code/table_a.o: ../../../../../src/ta_abstract/tables/table_a.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/gen_code/table_a.o ../../../../../src/ta_abstract/tables/table_a.c + +../../../../../temp/csd/gen_code/table_b.o: ../../../../../src/ta_abstract/tables/table_b.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/gen_code/table_b.o ../../../../../src/ta_abstract/tables/table_b.c + +../../../../../temp/csd/gen_code/table_c.o: ../../../../../src/ta_abstract/tables/table_c.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/gen_code/table_c.o ../../../../../src/ta_abstract/tables/table_c.c + +../../../../../temp/csd/gen_code/table_d.o: ../../../../../src/ta_abstract/tables/table_d.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/gen_code/table_d.o ../../../../../src/ta_abstract/tables/table_d.c + +../../../../../temp/csd/gen_code/table_e.o: ../../../../../src/ta_abstract/tables/table_e.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/gen_code/table_e.o ../../../../../src/ta_abstract/tables/table_e.c + +../../../../../temp/csd/gen_code/table_f.o: ../../../../../src/ta_abstract/tables/table_f.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/gen_code/table_f.o ../../../../../src/ta_abstract/tables/table_f.c + +../../../../../temp/csd/gen_code/table_g.o: ../../../../../src/ta_abstract/tables/table_g.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/gen_code/table_g.o ../../../../../src/ta_abstract/tables/table_g.c + +../../../../../temp/csd/gen_code/table_h.o: ../../../../../src/ta_abstract/tables/table_h.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/gen_code/table_h.o ../../../../../src/ta_abstract/tables/table_h.c + +../../../../../temp/csd/gen_code/table_i.o: ../../../../../src/ta_abstract/tables/table_i.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/gen_code/table_i.o ../../../../../src/ta_abstract/tables/table_i.c + +../../../../../temp/csd/gen_code/table_j.o: ../../../../../src/ta_abstract/tables/table_j.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/gen_code/table_j.o ../../../../../src/ta_abstract/tables/table_j.c + +../../../../../temp/csd/gen_code/table_k.o: ../../../../../src/ta_abstract/tables/table_k.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/gen_code/table_k.o ../../../../../src/ta_abstract/tables/table_k.c + +../../../../../temp/csd/gen_code/table_l.o: ../../../../../src/ta_abstract/tables/table_l.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/gen_code/table_l.o ../../../../../src/ta_abstract/tables/table_l.c + +../../../../../temp/csd/gen_code/table_m.o: ../../../../../src/ta_abstract/tables/table_m.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/gen_code/table_m.o ../../../../../src/ta_abstract/tables/table_m.c + +../../../../../temp/csd/gen_code/table_n.o: ../../../../../src/ta_abstract/tables/table_n.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/gen_code/table_n.o ../../../../../src/ta_abstract/tables/table_n.c + +../../../../../temp/csd/gen_code/table_o.o: ../../../../../src/ta_abstract/tables/table_o.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/gen_code/table_o.o ../../../../../src/ta_abstract/tables/table_o.c + +../../../../../temp/csd/gen_code/table_p.o: ../../../../../src/ta_abstract/tables/table_p.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/gen_code/table_p.o ../../../../../src/ta_abstract/tables/table_p.c + +../../../../../temp/csd/gen_code/table_q.o: ../../../../../src/ta_abstract/tables/table_q.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/gen_code/table_q.o ../../../../../src/ta_abstract/tables/table_q.c + +../../../../../temp/csd/gen_code/table_r.o: ../../../../../src/ta_abstract/tables/table_r.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/gen_code/table_r.o ../../../../../src/ta_abstract/tables/table_r.c + +../../../../../temp/csd/gen_code/table_s.o: ../../../../../src/ta_abstract/tables/table_s.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/gen_code/table_s.o ../../../../../src/ta_abstract/tables/table_s.c + +../../../../../temp/csd/gen_code/table_t.o: ../../../../../src/ta_abstract/tables/table_t.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/gen_code/table_t.o ../../../../../src/ta_abstract/tables/table_t.c + +../../../../../temp/csd/gen_code/table_u.o: ../../../../../src/ta_abstract/tables/table_u.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/gen_code/table_u.o ../../../../../src/ta_abstract/tables/table_u.c + +../../../../../temp/csd/gen_code/table_v.o: ../../../../../src/ta_abstract/tables/table_v.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/gen_code/table_v.o ../../../../../src/ta_abstract/tables/table_v.c + +../../../../../temp/csd/gen_code/table_w.o: ../../../../../src/ta_abstract/tables/table_w.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/gen_code/table_w.o ../../../../../src/ta_abstract/tables/table_w.c + +../../../../../temp/csd/gen_code/table_x.o: ../../../../../src/ta_abstract/tables/table_x.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/gen_code/table_x.o ../../../../../src/ta_abstract/tables/table_x.c + +../../../../../temp/csd/gen_code/table_y.o: ../../../../../src/ta_abstract/tables/table_y.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/gen_code/table_y.o ../../../../../src/ta_abstract/tables/table_y.c + +../../../../../temp/csd/gen_code/table_z.o: ../../../../../src/ta_abstract/tables/table_z.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/gen_code/table_z.o ../../../../../src/ta_abstract/tables/table_z.c + diff --git a/make/csd/freebsd/g++/ta_abstract/Makefile b/make/csd/freebsd/g++/ta_abstract/Makefile new file mode 100644 index 000000000..926157df2 --- /dev/null +++ b/make/csd/freebsd/g++/ta_abstract/Makefile @@ -0,0 +1,243 @@ +############################################################################# +# Makefile for building ../../../../../lib/libta_abstract_csd.a +# Generated by tmake; +# Project: ta_abstract/ta_abstract +# Template: lib +############################################################################# + +####### Compiler, tools and options + +CC = gcc +CXX = g++ +CFLAGS = -pipe -Wall -W -g -DTA_DEBUG -D_DEBUG -DTA_SINGLE_THREAD +CXXFLAGS= -pipe -Wall -W -g -DTA_DEBUG -D_DEBUG -DTA_SINGLE_THREAD +INCPATH = -I../../../../../src/ta_common -I../../../../../src/ta_abstract -I../../../../../src/ta_abstract/tables -I../../../../../src/ta_abstract/frames -I../../../../../include -I/usr/local/include +AR = ar cqs +RANLIB = +MOC = $(QTDIR)/bin/moc +UIC = $(QTDIR)/bin/uic + +TAR = tar -cf +GZIP = gzip -9f + +####### Support for 64-bit systems +ifeq ($(shell uname -m), x86_64) + CFLAGS += -march=x86-64 -m64 -D__64BIT__ + CXXFLAGS += -march=x86-64 -m64 -D__64BIT__ +endif + +####### Apply additional overruling user flags, if any +CFLAGS += $(CUSERFLAGS) +CXXFLAGS += $(CUSERFLAGS) + +####### Files + +HEADERS = +SOURCES = ../../../../../src/ta_abstract/ta_abstract.c \ + ../../../../../src/ta_abstract/ta_def_ui.c \ + ../../../../../src/ta_abstract/ta_func_api.c \ + ../../../../../src/ta_abstract/ta_group_idx.c \ + ../../../../../src/ta_abstract/frames/ta_frame.c \ + ../../../../../src/ta_abstract/tables/table_a.c \ + ../../../../../src/ta_abstract/tables/table_b.c \ + ../../../../../src/ta_abstract/tables/table_c.c \ + ../../../../../src/ta_abstract/tables/table_d.c \ + ../../../../../src/ta_abstract/tables/table_e.c \ + ../../../../../src/ta_abstract/tables/table_f.c \ + ../../../../../src/ta_abstract/tables/table_g.c \ + ../../../../../src/ta_abstract/tables/table_h.c \ + ../../../../../src/ta_abstract/tables/table_i.c \ + ../../../../../src/ta_abstract/tables/table_j.c \ + ../../../../../src/ta_abstract/tables/table_k.c \ + ../../../../../src/ta_abstract/tables/table_l.c \ + ../../../../../src/ta_abstract/tables/table_m.c \ + ../../../../../src/ta_abstract/tables/table_n.c \ + ../../../../../src/ta_abstract/tables/table_o.c \ + ../../../../../src/ta_abstract/tables/table_p.c \ + ../../../../../src/ta_abstract/tables/table_q.c \ + ../../../../../src/ta_abstract/tables/table_r.c \ + ../../../../../src/ta_abstract/tables/table_s.c \ + ../../../../../src/ta_abstract/tables/table_t.c \ + ../../../../../src/ta_abstract/tables/table_u.c \ + ../../../../../src/ta_abstract/tables/table_v.c \ + ../../../../../src/ta_abstract/tables/table_w.c \ + ../../../../../src/ta_abstract/tables/table_x.c \ + ../../../../../src/ta_abstract/tables/table_y.c \ + ../../../../../src/ta_abstract/tables/table_z.c +OBJECTS = ../../../../../temp/csd/ta_abstract.o \ + ../../../../../temp/csd/ta_def_ui.o \ + ../../../../../temp/csd/ta_func_api.o \ + ../../../../../temp/csd/ta_group_idx.o \ + ../../../../../temp/csd/ta_frame.o \ + ../../../../../temp/csd/table_a.o \ + ../../../../../temp/csd/table_b.o \ + ../../../../../temp/csd/table_c.o \ + ../../../../../temp/csd/table_d.o \ + ../../../../../temp/csd/table_e.o \ + ../../../../../temp/csd/table_f.o \ + ../../../../../temp/csd/table_g.o \ + ../../../../../temp/csd/table_h.o \ + ../../../../../temp/csd/table_i.o \ + ../../../../../temp/csd/table_j.o \ + ../../../../../temp/csd/table_k.o \ + ../../../../../temp/csd/table_l.o \ + ../../../../../temp/csd/table_m.o \ + ../../../../../temp/csd/table_n.o \ + ../../../../../temp/csd/table_o.o \ + ../../../../../temp/csd/table_p.o \ + ../../../../../temp/csd/table_q.o \ + ../../../../../temp/csd/table_r.o \ + ../../../../../temp/csd/table_s.o \ + ../../../../../temp/csd/table_t.o \ + ../../../../../temp/csd/table_u.o \ + ../../../../../temp/csd/table_v.o \ + ../../../../../temp/csd/table_w.o \ + ../../../../../temp/csd/table_x.o \ + ../../../../../temp/csd/table_y.o \ + ../../../../../temp/csd/table_z.o +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ../../../../../lib/libta_abstract_csd.a +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .C .c + +.cpp.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cxx.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cc.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.C.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.c.o: + $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $< + +####### Build rules + + +all: $(TARGET) + +staticlib: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + -rm -f $(TARGET) + $(AR) $(TARGET) $(OBJECTS) $(OBJMOC) + +moc: $(SRCMOC) + +clean: + -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) + -rm -f *~ core + +####### Sub-libraries + + +###### Combined headers + + +####### Compile + +../../../../../temp/csd/ta_abstract.o: ../../../../../src/ta_abstract/ta_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_abstract.o ../../../../../src/ta_abstract/ta_abstract.c + +../../../../../temp/csd/ta_def_ui.o: ../../../../../src/ta_abstract/ta_def_ui.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_def_ui.o ../../../../../src/ta_abstract/ta_def_ui.c + +../../../../../temp/csd/ta_func_api.o: ../../../../../src/ta_abstract/ta_func_api.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_func_api.o ../../../../../src/ta_abstract/ta_func_api.c + +../../../../../temp/csd/ta_group_idx.o: ../../../../../src/ta_abstract/ta_group_idx.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_group_idx.o ../../../../../src/ta_abstract/ta_group_idx.c + +../../../../../temp/csd/ta_frame.o: ../../../../../src/ta_abstract/frames/ta_frame.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_frame.o ../../../../../src/ta_abstract/frames/ta_frame.c + +../../../../../temp/csd/table_a.o: ../../../../../src/ta_abstract/tables/table_a.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_a.o ../../../../../src/ta_abstract/tables/table_a.c + +../../../../../temp/csd/table_b.o: ../../../../../src/ta_abstract/tables/table_b.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_b.o ../../../../../src/ta_abstract/tables/table_b.c + +../../../../../temp/csd/table_c.o: ../../../../../src/ta_abstract/tables/table_c.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_c.o ../../../../../src/ta_abstract/tables/table_c.c + +../../../../../temp/csd/table_d.o: ../../../../../src/ta_abstract/tables/table_d.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_d.o ../../../../../src/ta_abstract/tables/table_d.c + +../../../../../temp/csd/table_e.o: ../../../../../src/ta_abstract/tables/table_e.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_e.o ../../../../../src/ta_abstract/tables/table_e.c + +../../../../../temp/csd/table_f.o: ../../../../../src/ta_abstract/tables/table_f.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_f.o ../../../../../src/ta_abstract/tables/table_f.c + +../../../../../temp/csd/table_g.o: ../../../../../src/ta_abstract/tables/table_g.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_g.o ../../../../../src/ta_abstract/tables/table_g.c + +../../../../../temp/csd/table_h.o: ../../../../../src/ta_abstract/tables/table_h.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_h.o ../../../../../src/ta_abstract/tables/table_h.c + +../../../../../temp/csd/table_i.o: ../../../../../src/ta_abstract/tables/table_i.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_i.o ../../../../../src/ta_abstract/tables/table_i.c + +../../../../../temp/csd/table_j.o: ../../../../../src/ta_abstract/tables/table_j.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_j.o ../../../../../src/ta_abstract/tables/table_j.c + +../../../../../temp/csd/table_k.o: ../../../../../src/ta_abstract/tables/table_k.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_k.o ../../../../../src/ta_abstract/tables/table_k.c + +../../../../../temp/csd/table_l.o: ../../../../../src/ta_abstract/tables/table_l.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_l.o ../../../../../src/ta_abstract/tables/table_l.c + +../../../../../temp/csd/table_m.o: ../../../../../src/ta_abstract/tables/table_m.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_m.o ../../../../../src/ta_abstract/tables/table_m.c + +../../../../../temp/csd/table_n.o: ../../../../../src/ta_abstract/tables/table_n.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_n.o ../../../../../src/ta_abstract/tables/table_n.c + +../../../../../temp/csd/table_o.o: ../../../../../src/ta_abstract/tables/table_o.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_o.o ../../../../../src/ta_abstract/tables/table_o.c + +../../../../../temp/csd/table_p.o: ../../../../../src/ta_abstract/tables/table_p.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_p.o ../../../../../src/ta_abstract/tables/table_p.c + +../../../../../temp/csd/table_q.o: ../../../../../src/ta_abstract/tables/table_q.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_q.o ../../../../../src/ta_abstract/tables/table_q.c + +../../../../../temp/csd/table_r.o: ../../../../../src/ta_abstract/tables/table_r.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_r.o ../../../../../src/ta_abstract/tables/table_r.c + +../../../../../temp/csd/table_s.o: ../../../../../src/ta_abstract/tables/table_s.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_s.o ../../../../../src/ta_abstract/tables/table_s.c + +../../../../../temp/csd/table_t.o: ../../../../../src/ta_abstract/tables/table_t.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_t.o ../../../../../src/ta_abstract/tables/table_t.c + +../../../../../temp/csd/table_u.o: ../../../../../src/ta_abstract/tables/table_u.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_u.o ../../../../../src/ta_abstract/tables/table_u.c + +../../../../../temp/csd/table_v.o: ../../../../../src/ta_abstract/tables/table_v.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_v.o ../../../../../src/ta_abstract/tables/table_v.c + +../../../../../temp/csd/table_w.o: ../../../../../src/ta_abstract/tables/table_w.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_w.o ../../../../../src/ta_abstract/tables/table_w.c + +../../../../../temp/csd/table_x.o: ../../../../../src/ta_abstract/tables/table_x.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_x.o ../../../../../src/ta_abstract/tables/table_x.c + +../../../../../temp/csd/table_y.o: ../../../../../src/ta_abstract/tables/table_y.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_y.o ../../../../../src/ta_abstract/tables/table_y.c + +../../../../../temp/csd/table_z.o: ../../../../../src/ta_abstract/tables/table_z.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_z.o ../../../../../src/ta_abstract/tables/table_z.c + diff --git a/make/csd/freebsd/g++/ta_common/Makefile b/make/csd/freebsd/g++/ta_common/Makefile new file mode 100644 index 000000000..334e85080 --- /dev/null +++ b/make/csd/freebsd/g++/ta_common/Makefile @@ -0,0 +1,103 @@ +############################################################################# +# Makefile for building ../../../../../lib/libta_common_csd.a +# Generated by tmake; +# Project: ta_common/ta_common +# Template: lib +############################################################################# + +####### Compiler, tools and options + +CC = gcc +CXX = g++ +CFLAGS = -pipe -Wall -W -g -DTA_DEBUG -D_DEBUG -DTA_SINGLE_THREAD +CXXFLAGS= -pipe -Wall -W -g -DTA_DEBUG -D_DEBUG -DTA_SINGLE_THREAD +INCPATH = -I../../../../../src/ta_common -I../../../../../include -I/usr/local/include +AR = ar cqs +RANLIB = +MOC = $(QTDIR)/bin/moc +UIC = $(QTDIR)/bin/uic + +TAR = tar -cf +GZIP = gzip -9f + +####### Support for 64-bit systems +ifeq ($(shell uname -m), x86_64) + CFLAGS += -march=x86-64 -m64 -D__64BIT__ + CXXFLAGS += -march=x86-64 -m64 -D__64BIT__ +endif + +####### Apply additional overruling user flags, if any +CFLAGS += $(CUSERFLAGS) +CXXFLAGS += $(CUSERFLAGS) + +####### Files + +HEADERS = +SOURCES = ../../../../../src/ta_common/ta_global.c \ + ../../../../../src/ta_common/ta_retcode.c \ + ../../../../../src/ta_common/ta_version.c +OBJECTS = ../../../../../temp/csd/ta_global.o \ + ../../../../../temp/csd/ta_retcode.o \ + ../../../../../temp/csd/ta_version.o +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ../../../../../lib/libta_common_csd.a +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .C .c + +.cpp.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cxx.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cc.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.C.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.c.o: + $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $< + +####### Build rules + + +all: $(TARGET) + +staticlib: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + -rm -f $(TARGET) + $(AR) $(TARGET) $(OBJECTS) $(OBJMOC) + +moc: $(SRCMOC) + +clean: + -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) + -rm -f *~ core + +####### Sub-libraries + + +###### Combined headers + + +####### Compile + +../../../../../temp/csd/ta_global.o: ../../../../../src/ta_common/ta_global.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_global.o ../../../../../src/ta_common/ta_global.c + +../../../../../temp/csd/ta_retcode.o: ../../../../../src/ta_common/ta_retcode.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_retcode.o ../../../../../src/ta_common/ta_retcode.c + +../../../../../temp/csd/ta_version.o: ../../../../../src/ta_common/ta_version.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_version.o ../../../../../src/ta_common/ta_version.c + diff --git a/make/csd/freebsd/g++/ta_func/Makefile b/make/csd/freebsd/g++/ta_func/Makefile new file mode 100644 index 000000000..1aae53b6d --- /dev/null +++ b/make/csd/freebsd/g++/ta_func/Makefile @@ -0,0 +1,883 @@ +############################################################################# +# Makefile for building ../../../../../lib/libta_func_csd.a +# Generated by tmake; +# Project: ta_func/ta_func +# Template: lib +############################################################################# + +####### Compiler, tools and options + +CC = gcc +CXX = g++ +CFLAGS = -pipe -Wall -W -g -DTA_DEBUG -D_DEBUG -DTA_SINGLE_THREAD +CXXFLAGS= -pipe -Wall -W -g -DTA_DEBUG -D_DEBUG -DTA_SINGLE_THREAD +INCPATH = -I../../../../../src/ta_common -I/n -I../../../../../include -I/usr/local/include +AR = ar cqs +RANLIB = +MOC = $(QTDIR)/bin/moc +UIC = $(QTDIR)/bin/uic + +TAR = tar -cf +GZIP = gzip -9f + +####### Support for 64-bit systems +ifeq ($(shell uname -m), x86_64) + CFLAGS += -march=x86-64 -m64 -D__64BIT__ + CXXFLAGS += -march=x86-64 -m64 -D__64BIT__ +endif + +####### Apply additional overruling user flags, if any +CFLAGS += $(CUSERFLAGS) +CXXFLAGS += $(CUSERFLAGS) + +####### Files + +HEADERS = +SOURCES = ../../../../../src/ta_func/ta_utility.c \ + ../../../../../src/ta_func/ta_ACOS.c \ + ../../../../../src/ta_func/ta_AD.c \ + ../../../../../src/ta_func/ta_ADD.c \ + ../../../../../src/ta_func/ta_ADOSC.c \ + ../../../../../src/ta_func/ta_ADX.c \ + ../../../../../src/ta_func/ta_ADXR.c \ + ../../../../../src/ta_func/ta_APO.c \ + ../../../../../src/ta_func/ta_AROON.c \ + ../../../../../src/ta_func/ta_AROONOSC.c \ + ../../../../../src/ta_func/ta_ASIN.c \ + ../../../../../src/ta_func/ta_ATAN.c \ + ../../../../../src/ta_func/ta_ATR.c \ + ../../../../../src/ta_func/ta_AVGPRICE.c \ + ../../../../../src/ta_func/ta_BBANDS.c \ + ../../../../../src/ta_func/ta_BETA.c \ + ../../../../../src/ta_func/ta_BOP.c \ + ../../../../../src/ta_func/ta_CCI.c \ + ../../../../../src/ta_func/ta_CDL2CROWS.c \ + ../../../../../src/ta_func/ta_CDL3BLACKCROWS.c \ + ../../../../../src/ta_func/ta_CDL3INSIDE.c \ + ../../../../../src/ta_func/ta_CDL3LINESTRIKE.c \ + ../../../../../src/ta_func/ta_CDL3OUTSIDE.c \ + ../../../../../src/ta_func/ta_CDL3STARSINSOUTH.c \ + ../../../../../src/ta_func/ta_CDL3WHITESOLDIERS.c \ + ../../../../../src/ta_func/ta_CDLABANDONEDBABY.c \ + ../../../../../src/ta_func/ta_CDLADVANCEBLOCK.c \ + ../../../../../src/ta_func/ta_CDLBELTHOLD.c \ + ../../../../../src/ta_func/ta_CDLBREAKAWAY.c \ + ../../../../../src/ta_func/ta_CDLCLOSINGMARUBOZU.c \ + ../../../../../src/ta_func/ta_CDLCONCEALBABYSWALL.c \ + ../../../../../src/ta_func/ta_CDLCOUNTERATTACK.c \ + ../../../../../src/ta_func/ta_CDLDARKCLOUDCOVER.c \ + ../../../../../src/ta_func/ta_CDLDOJI.c \ + ../../../../../src/ta_func/ta_CDLDOJISTAR.c \ + ../../../../../src/ta_func/ta_CDLDRAGONFLYDOJI.c \ + ../../../../../src/ta_func/ta_CDLENGULFING.c \ + ../../../../../src/ta_func/ta_CDLEVENINGDOJISTAR.c \ + ../../../../../src/ta_func/ta_CDLEVENINGSTAR.c \ + ../../../../../src/ta_func/ta_CDLGAPSIDESIDEWHITE.c \ + ../../../../../src/ta_func/ta_CDLGRAVESTONEDOJI.c \ + ../../../../../src/ta_func/ta_CDLHAMMER.c \ + ../../../../../src/ta_func/ta_CDLHANGINGMAN.c \ + ../../../../../src/ta_func/ta_CDLHARAMI.c \ + ../../../../../src/ta_func/ta_CDLHARAMICROSS.c \ + ../../../../../src/ta_func/ta_CDLHIGHWAVE.c \ + ../../../../../src/ta_func/ta_CDLHIKKAKE.c \ + ../../../../../src/ta_func/ta_CDLHIKKAKEMOD.c \ + ../../../../../src/ta_func/ta_CDLHOMINGPIGEON.c \ + ../../../../../src/ta_func/ta_CDLIDENTICAL3CROWS.c \ + ../../../../../src/ta_func/ta_CDLINNECK.c \ + ../../../../../src/ta_func/ta_CDLINVERTEDHAMMER.c \ + ../../../../../src/ta_func/ta_CDLKICKING.c \ + ../../../../../src/ta_func/ta_CDLKICKINGBYLENGTH.c \ + ../../../../../src/ta_func/ta_CDLLADDERBOTTOM.c \ + ../../../../../src/ta_func/ta_CDLLONGLEGGEDDOJI.c \ + ../../../../../src/ta_func/ta_CDLLONGLINE.c \ + ../../../../../src/ta_func/ta_CDLMARUBOZU.c \ + ../../../../../src/ta_func/ta_CDLMATCHINGLOW.c \ + ../../../../../src/ta_func/ta_CDLMATHOLD.c \ + ../../../../../src/ta_func/ta_CDLMORNINGDOJISTAR.c \ + ../../../../../src/ta_func/ta_CDLMORNINGSTAR.c \ + ../../../../../src/ta_func/ta_CDLONNECK.c \ + ../../../../../src/ta_func/ta_CDLPIERCING.c \ + ../../../../../src/ta_func/ta_CDLRICKSHAWMAN.c \ + ../../../../../src/ta_func/ta_CDLRISEFALL3METHODS.c \ + ../../../../../src/ta_func/ta_CDLSEPARATINGLINES.c \ + ../../../../../src/ta_func/ta_CDLSHOOTINGSTAR.c \ + ../../../../../src/ta_func/ta_CDLSHORTLINE.c \ + ../../../../../src/ta_func/ta_CDLSPINNINGTOP.c \ + ../../../../../src/ta_func/ta_CDLSTALLEDPATTERN.c \ + ../../../../../src/ta_func/ta_CDLSTICKSANDWICH.c \ + ../../../../../src/ta_func/ta_CDLTAKURI.c \ + ../../../../../src/ta_func/ta_CDLTASUKIGAP.c \ + ../../../../../src/ta_func/ta_CDLTHRUSTING.c \ + ../../../../../src/ta_func/ta_CDLTRISTAR.c \ + ../../../../../src/ta_func/ta_CDLUNIQUE3RIVER.c \ + ../../../../../src/ta_func/ta_CDLUPSIDEGAP2CROWS.c \ + ../../../../../src/ta_func/ta_CDLXSIDEGAP3METHODS.c \ + ../../../../../src/ta_func/ta_CEIL.c \ + ../../../../../src/ta_func/ta_CMO.c \ + ../../../../../src/ta_func/ta_CORREL.c \ + ../../../../../src/ta_func/ta_COS.c \ + ../../../../../src/ta_func/ta_COSH.c \ + ../../../../../src/ta_func/ta_DEMA.c \ + ../../../../../src/ta_func/ta_DIV.c \ + ../../../../../src/ta_func/ta_DX.c \ + ../../../../../src/ta_func/ta_EMA.c \ + ../../../../../src/ta_func/ta_EXP.c \ + ../../../../../src/ta_func/ta_FLOOR.c \ + ../../../../../src/ta_func/ta_HT_DCPERIOD.c \ + ../../../../../src/ta_func/ta_HT_DCPHASE.c \ + ../../../../../src/ta_func/ta_HT_PHASOR.c \ + ../../../../../src/ta_func/ta_HT_SINE.c \ + ../../../../../src/ta_func/ta_HT_TRENDLINE.c \ + ../../../../../src/ta_func/ta_HT_TRENDMODE.c \ + ../../../../../src/ta_func/ta_KAMA.c \ + ../../../../../src/ta_func/ta_LINEARREG.c \ + ../../../../../src/ta_func/ta_LINEARREG_ANGLE.c \ + ../../../../../src/ta_func/ta_LINEARREG_INTERCEPT.c \ + ../../../../../src/ta_func/ta_LINEARREG_SLOPE.c \ + ../../../../../src/ta_func/ta_LN.c \ + ../../../../../src/ta_func/ta_LOG10.c \ + ../../../../../src/ta_func/ta_MA.c \ + ../../../../../src/ta_func/ta_MACD.c \ + ../../../../../src/ta_func/ta_MACDEXT.c \ + ../../../../../src/ta_func/ta_MACDFIX.c \ + ../../../../../src/ta_func/ta_MAMA.c \ + ../../../../../src/ta_func/ta_MAVP.c \ + ../../../../../src/ta_func/ta_MAX.c \ + ../../../../../src/ta_func/ta_MAXINDEX.c \ + ../../../../../src/ta_func/ta_MEDPRICE.c \ + ../../../../../src/ta_func/ta_MFI.c \ + ../../../../../src/ta_func/ta_MIDPOINT.c \ + ../../../../../src/ta_func/ta_MIDPRICE.c \ + ../../../../../src/ta_func/ta_MIN.c \ + ../../../../../src/ta_func/ta_MININDEX.c \ + ../../../../../src/ta_func/ta_MINMAX.c \ + ../../../../../src/ta_func/ta_MINMAXINDEX.c \ + ../../../../../src/ta_func/ta_MINUS_DI.c \ + ../../../../../src/ta_func/ta_MINUS_DM.c \ + ../../../../../src/ta_func/ta_MOM.c \ + ../../../../../src/ta_func/ta_MULT.c \ + ../../../../../src/ta_func/ta_NATR.c \ + ../../../../../src/ta_func/ta_OBV.c \ + ../../../../../src/ta_func/ta_PLUS_DI.c \ + ../../../../../src/ta_func/ta_PLUS_DM.c \ + ../../../../../src/ta_func/ta_PPO.c \ + ../../../../../src/ta_func/ta_ROC.c \ + ../../../../../src/ta_func/ta_ROCP.c \ + ../../../../../src/ta_func/ta_ROCR.c \ + ../../../../../src/ta_func/ta_ROCR100.c \ + ../../../../../src/ta_func/ta_RSI.c \ + ../../../../../src/ta_func/ta_SAR.c \ + ../../../../../src/ta_func/ta_SAREXT.c \ + ../../../../../src/ta_func/ta_SIN.c \ + ../../../../../src/ta_func/ta_SINH.c \ + ../../../../../src/ta_func/ta_SMA.c \ + ../../../../../src/ta_func/ta_SQRT.c \ + ../../../../../src/ta_func/ta_STDDEV.c \ + ../../../../../src/ta_func/ta_STOCH.c \ + ../../../../../src/ta_func/ta_STOCHF.c \ + ../../../../../src/ta_func/ta_STOCHRSI.c \ + ../../../../../src/ta_func/ta_SUB.c \ + ../../../../../src/ta_func/ta_SUM.c \ + ../../../../../src/ta_func/ta_T3.c \ + ../../../../../src/ta_func/ta_TAN.c \ + ../../../../../src/ta_func/ta_TANH.c \ + ../../../../../src/ta_func/ta_TEMA.c \ + ../../../../../src/ta_func/ta_TRANGE.c \ + ../../../../../src/ta_func/ta_TRIMA.c \ + ../../../../../src/ta_func/ta_TRIX.c \ + ../../../../../src/ta_func/ta_TSF.c \ + ../../../../../src/ta_func/ta_TYPPRICE.c \ + ../../../../../src/ta_func/ta_ULTOSC.c \ + ../../../../../src/ta_func/ta_VAR.c \ + ../../../../../src/ta_func/ta_WCLPRICE.c \ + ../../../../../src/ta_func/ta_WILLR.c \ + ../../../../../src/ta_func/ta_WMA.c +OBJECTS = ../../../../../temp/csd/ta_utility.o \ + ../../../../../temp/csd/ta_ACOS.o \ + ../../../../../temp/csd/ta_AD.o \ + ../../../../../temp/csd/ta_ADD.o \ + ../../../../../temp/csd/ta_ADOSC.o \ + ../../../../../temp/csd/ta_ADX.o \ + ../../../../../temp/csd/ta_ADXR.o \ + ../../../../../temp/csd/ta_APO.o \ + ../../../../../temp/csd/ta_AROON.o \ + ../../../../../temp/csd/ta_AROONOSC.o \ + ../../../../../temp/csd/ta_ASIN.o \ + ../../../../../temp/csd/ta_ATAN.o \ + ../../../../../temp/csd/ta_ATR.o \ + ../../../../../temp/csd/ta_AVGPRICE.o \ + ../../../../../temp/csd/ta_BBANDS.o \ + ../../../../../temp/csd/ta_BETA.o \ + ../../../../../temp/csd/ta_BOP.o \ + ../../../../../temp/csd/ta_CCI.o \ + ../../../../../temp/csd/ta_CDL2CROWS.o \ + ../../../../../temp/csd/ta_CDL3BLACKCROWS.o \ + ../../../../../temp/csd/ta_CDL3INSIDE.o \ + ../../../../../temp/csd/ta_CDL3LINESTRIKE.o \ + ../../../../../temp/csd/ta_CDL3OUTSIDE.o \ + ../../../../../temp/csd/ta_CDL3STARSINSOUTH.o \ + ../../../../../temp/csd/ta_CDL3WHITESOLDIERS.o \ + ../../../../../temp/csd/ta_CDLABANDONEDBABY.o \ + ../../../../../temp/csd/ta_CDLADVANCEBLOCK.o \ + ../../../../../temp/csd/ta_CDLBELTHOLD.o \ + ../../../../../temp/csd/ta_CDLBREAKAWAY.o \ + ../../../../../temp/csd/ta_CDLCLOSINGMARUBOZU.o \ + ../../../../../temp/csd/ta_CDLCONCEALBABYSWALL.o \ + ../../../../../temp/csd/ta_CDLCOUNTERATTACK.o \ + ../../../../../temp/csd/ta_CDLDARKCLOUDCOVER.o \ + ../../../../../temp/csd/ta_CDLDOJI.o \ + ../../../../../temp/csd/ta_CDLDOJISTAR.o \ + ../../../../../temp/csd/ta_CDLDRAGONFLYDOJI.o \ + ../../../../../temp/csd/ta_CDLENGULFING.o \ + ../../../../../temp/csd/ta_CDLEVENINGDOJISTAR.o \ + ../../../../../temp/csd/ta_CDLEVENINGSTAR.o \ + ../../../../../temp/csd/ta_CDLGAPSIDESIDEWHITE.o \ + ../../../../../temp/csd/ta_CDLGRAVESTONEDOJI.o \ + ../../../../../temp/csd/ta_CDLHAMMER.o \ + ../../../../../temp/csd/ta_CDLHANGINGMAN.o \ + ../../../../../temp/csd/ta_CDLHARAMI.o \ + ../../../../../temp/csd/ta_CDLHARAMICROSS.o \ + ../../../../../temp/csd/ta_CDLHIGHWAVE.o \ + ../../../../../temp/csd/ta_CDLHIKKAKE.o \ + ../../../../../temp/csd/ta_CDLHIKKAKEMOD.o \ + ../../../../../temp/csd/ta_CDLHOMINGPIGEON.o \ + ../../../../../temp/csd/ta_CDLIDENTICAL3CROWS.o \ + ../../../../../temp/csd/ta_CDLINNECK.o \ + ../../../../../temp/csd/ta_CDLINVERTEDHAMMER.o \ + ../../../../../temp/csd/ta_CDLKICKING.o \ + ../../../../../temp/csd/ta_CDLKICKINGBYLENGTH.o \ + ../../../../../temp/csd/ta_CDLLADDERBOTTOM.o \ + ../../../../../temp/csd/ta_CDLLONGLEGGEDDOJI.o \ + ../../../../../temp/csd/ta_CDLLONGLINE.o \ + ../../../../../temp/csd/ta_CDLMARUBOZU.o \ + ../../../../../temp/csd/ta_CDLMATCHINGLOW.o \ + ../../../../../temp/csd/ta_CDLMATHOLD.o \ + ../../../../../temp/csd/ta_CDLMORNINGDOJISTAR.o \ + ../../../../../temp/csd/ta_CDLMORNINGSTAR.o \ + ../../../../../temp/csd/ta_CDLONNECK.o \ + ../../../../../temp/csd/ta_CDLPIERCING.o \ + ../../../../../temp/csd/ta_CDLRICKSHAWMAN.o \ + ../../../../../temp/csd/ta_CDLRISEFALL3METHODS.o \ + ../../../../../temp/csd/ta_CDLSEPARATINGLINES.o \ + ../../../../../temp/csd/ta_CDLSHOOTINGSTAR.o \ + ../../../../../temp/csd/ta_CDLSHORTLINE.o \ + ../../../../../temp/csd/ta_CDLSPINNINGTOP.o \ + ../../../../../temp/csd/ta_CDLSTALLEDPATTERN.o \ + ../../../../../temp/csd/ta_CDLSTICKSANDWICH.o \ + ../../../../../temp/csd/ta_CDLTAKURI.o \ + ../../../../../temp/csd/ta_CDLTASUKIGAP.o \ + ../../../../../temp/csd/ta_CDLTHRUSTING.o \ + ../../../../../temp/csd/ta_CDLTRISTAR.o \ + ../../../../../temp/csd/ta_CDLUNIQUE3RIVER.o \ + ../../../../../temp/csd/ta_CDLUPSIDEGAP2CROWS.o \ + ../../../../../temp/csd/ta_CDLXSIDEGAP3METHODS.o \ + ../../../../../temp/csd/ta_CEIL.o \ + ../../../../../temp/csd/ta_CMO.o \ + ../../../../../temp/csd/ta_CORREL.o \ + ../../../../../temp/csd/ta_COS.o \ + ../../../../../temp/csd/ta_COSH.o \ + ../../../../../temp/csd/ta_DEMA.o \ + ../../../../../temp/csd/ta_DIV.o \ + ../../../../../temp/csd/ta_DX.o \ + ../../../../../temp/csd/ta_EMA.o \ + ../../../../../temp/csd/ta_EXP.o \ + ../../../../../temp/csd/ta_FLOOR.o \ + ../../../../../temp/csd/ta_HT_DCPERIOD.o \ + ../../../../../temp/csd/ta_HT_DCPHASE.o \ + ../../../../../temp/csd/ta_HT_PHASOR.o \ + ../../../../../temp/csd/ta_HT_SINE.o \ + ../../../../../temp/csd/ta_HT_TRENDLINE.o \ + ../../../../../temp/csd/ta_HT_TRENDMODE.o \ + ../../../../../temp/csd/ta_KAMA.o \ + ../../../../../temp/csd/ta_LINEARREG.o \ + ../../../../../temp/csd/ta_LINEARREG_ANGLE.o \ + ../../../../../temp/csd/ta_LINEARREG_INTERCEPT.o \ + ../../../../../temp/csd/ta_LINEARREG_SLOPE.o \ + ../../../../../temp/csd/ta_LN.o \ + ../../../../../temp/csd/ta_LOG10.o \ + ../../../../../temp/csd/ta_MA.o \ + ../../../../../temp/csd/ta_MACD.o \ + ../../../../../temp/csd/ta_MACDEXT.o \ + ../../../../../temp/csd/ta_MACDFIX.o \ + ../../../../../temp/csd/ta_MAMA.o \ + ../../../../../temp/csd/ta_MAVP.o \ + ../../../../../temp/csd/ta_MAX.o \ + ../../../../../temp/csd/ta_MAXINDEX.o \ + ../../../../../temp/csd/ta_MEDPRICE.o \ + ../../../../../temp/csd/ta_MFI.o \ + ../../../../../temp/csd/ta_MIDPOINT.o \ + ../../../../../temp/csd/ta_MIDPRICE.o \ + ../../../../../temp/csd/ta_MIN.o \ + ../../../../../temp/csd/ta_MININDEX.o \ + ../../../../../temp/csd/ta_MINMAX.o \ + ../../../../../temp/csd/ta_MINMAXINDEX.o \ + ../../../../../temp/csd/ta_MINUS_DI.o \ + ../../../../../temp/csd/ta_MINUS_DM.o \ + ../../../../../temp/csd/ta_MOM.o \ + ../../../../../temp/csd/ta_MULT.o \ + ../../../../../temp/csd/ta_NATR.o \ + ../../../../../temp/csd/ta_OBV.o \ + ../../../../../temp/csd/ta_PLUS_DI.o \ + ../../../../../temp/csd/ta_PLUS_DM.o \ + ../../../../../temp/csd/ta_PPO.o \ + ../../../../../temp/csd/ta_ROC.o \ + ../../../../../temp/csd/ta_ROCP.o \ + ../../../../../temp/csd/ta_ROCR.o \ + ../../../../../temp/csd/ta_ROCR100.o \ + ../../../../../temp/csd/ta_RSI.o \ + ../../../../../temp/csd/ta_SAR.o \ + ../../../../../temp/csd/ta_SAREXT.o \ + ../../../../../temp/csd/ta_SIN.o \ + ../../../../../temp/csd/ta_SINH.o \ + ../../../../../temp/csd/ta_SMA.o \ + ../../../../../temp/csd/ta_SQRT.o \ + ../../../../../temp/csd/ta_STDDEV.o \ + ../../../../../temp/csd/ta_STOCH.o \ + ../../../../../temp/csd/ta_STOCHF.o \ + ../../../../../temp/csd/ta_STOCHRSI.o \ + ../../../../../temp/csd/ta_SUB.o \ + ../../../../../temp/csd/ta_SUM.o \ + ../../../../../temp/csd/ta_T3.o \ + ../../../../../temp/csd/ta_TAN.o \ + ../../../../../temp/csd/ta_TANH.o \ + ../../../../../temp/csd/ta_TEMA.o \ + ../../../../../temp/csd/ta_TRANGE.o \ + ../../../../../temp/csd/ta_TRIMA.o \ + ../../../../../temp/csd/ta_TRIX.o \ + ../../../../../temp/csd/ta_TSF.o \ + ../../../../../temp/csd/ta_TYPPRICE.o \ + ../../../../../temp/csd/ta_ULTOSC.o \ + ../../../../../temp/csd/ta_VAR.o \ + ../../../../../temp/csd/ta_WCLPRICE.o \ + ../../../../../temp/csd/ta_WILLR.o \ + ../../../../../temp/csd/ta_WMA.o +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ../../../../../lib/libta_func_csd.a +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .C .c + +.cpp.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cxx.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cc.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.C.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.c.o: + $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $< + +####### Build rules + + +all: $(TARGET) + +staticlib: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + -rm -f $(TARGET) + $(AR) $(TARGET) $(OBJECTS) $(OBJMOC) + +moc: $(SRCMOC) + +clean: + -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) + -rm -f *~ core + +####### Sub-libraries + + +###### Combined headers + + +####### Compile + +../../../../../temp/csd/ta_utility.o: ../../../../../src/ta_func/ta_utility.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_utility.o ../../../../../src/ta_func/ta_utility.c + +../../../../../temp/csd/ta_ACOS.o: ../../../../../src/ta_func/ta_ACOS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_ACOS.o ../../../../../src/ta_func/ta_ACOS.c + +../../../../../temp/csd/ta_AD.o: ../../../../../src/ta_func/ta_AD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_AD.o ../../../../../src/ta_func/ta_AD.c + +../../../../../temp/csd/ta_ADD.o: ../../../../../src/ta_func/ta_ADD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_ADD.o ../../../../../src/ta_func/ta_ADD.c + +../../../../../temp/csd/ta_ADOSC.o: ../../../../../src/ta_func/ta_ADOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_ADOSC.o ../../../../../src/ta_func/ta_ADOSC.c + +../../../../../temp/csd/ta_ADX.o: ../../../../../src/ta_func/ta_ADX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_ADX.o ../../../../../src/ta_func/ta_ADX.c + +../../../../../temp/csd/ta_ADXR.o: ../../../../../src/ta_func/ta_ADXR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_ADXR.o ../../../../../src/ta_func/ta_ADXR.c + +../../../../../temp/csd/ta_APO.o: ../../../../../src/ta_func/ta_APO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_APO.o ../../../../../src/ta_func/ta_APO.c + +../../../../../temp/csd/ta_AROON.o: ../../../../../src/ta_func/ta_AROON.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_AROON.o ../../../../../src/ta_func/ta_AROON.c + +../../../../../temp/csd/ta_AROONOSC.o: ../../../../../src/ta_func/ta_AROONOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_AROONOSC.o ../../../../../src/ta_func/ta_AROONOSC.c + +../../../../../temp/csd/ta_ASIN.o: ../../../../../src/ta_func/ta_ASIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_ASIN.o ../../../../../src/ta_func/ta_ASIN.c + +../../../../../temp/csd/ta_ATAN.o: ../../../../../src/ta_func/ta_ATAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_ATAN.o ../../../../../src/ta_func/ta_ATAN.c + +../../../../../temp/csd/ta_ATR.o: ../../../../../src/ta_func/ta_ATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_ATR.o ../../../../../src/ta_func/ta_ATR.c + +../../../../../temp/csd/ta_AVGPRICE.o: ../../../../../src/ta_func/ta_AVGPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_AVGPRICE.o ../../../../../src/ta_func/ta_AVGPRICE.c + +../../../../../temp/csd/ta_BBANDS.o: ../../../../../src/ta_func/ta_BBANDS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_BBANDS.o ../../../../../src/ta_func/ta_BBANDS.c + +../../../../../temp/csd/ta_BETA.o: ../../../../../src/ta_func/ta_BETA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_BETA.o ../../../../../src/ta_func/ta_BETA.c + +../../../../../temp/csd/ta_BOP.o: ../../../../../src/ta_func/ta_BOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_BOP.o ../../../../../src/ta_func/ta_BOP.c + +../../../../../temp/csd/ta_CCI.o: ../../../../../src/ta_func/ta_CCI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CCI.o ../../../../../src/ta_func/ta_CCI.c + +../../../../../temp/csd/ta_CDL2CROWS.o: ../../../../../src/ta_func/ta_CDL2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDL2CROWS.o ../../../../../src/ta_func/ta_CDL2CROWS.c + +../../../../../temp/csd/ta_CDL3BLACKCROWS.o: ../../../../../src/ta_func/ta_CDL3BLACKCROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDL3BLACKCROWS.o ../../../../../src/ta_func/ta_CDL3BLACKCROWS.c + +../../../../../temp/csd/ta_CDL3INSIDE.o: ../../../../../src/ta_func/ta_CDL3INSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDL3INSIDE.o ../../../../../src/ta_func/ta_CDL3INSIDE.c + +../../../../../temp/csd/ta_CDL3LINESTRIKE.o: ../../../../../src/ta_func/ta_CDL3LINESTRIKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDL3LINESTRIKE.o ../../../../../src/ta_func/ta_CDL3LINESTRIKE.c + +../../../../../temp/csd/ta_CDL3OUTSIDE.o: ../../../../../src/ta_func/ta_CDL3OUTSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDL3OUTSIDE.o ../../../../../src/ta_func/ta_CDL3OUTSIDE.c + +../../../../../temp/csd/ta_CDL3STARSINSOUTH.o: ../../../../../src/ta_func/ta_CDL3STARSINSOUTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDL3STARSINSOUTH.o ../../../../../src/ta_func/ta_CDL3STARSINSOUTH.c + +../../../../../temp/csd/ta_CDL3WHITESOLDIERS.o: ../../../../../src/ta_func/ta_CDL3WHITESOLDIERS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDL3WHITESOLDIERS.o ../../../../../src/ta_func/ta_CDL3WHITESOLDIERS.c + +../../../../../temp/csd/ta_CDLABANDONEDBABY.o: ../../../../../src/ta_func/ta_CDLABANDONEDBABY.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLABANDONEDBABY.o ../../../../../src/ta_func/ta_CDLABANDONEDBABY.c + +../../../../../temp/csd/ta_CDLADVANCEBLOCK.o: ../../../../../src/ta_func/ta_CDLADVANCEBLOCK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLADVANCEBLOCK.o ../../../../../src/ta_func/ta_CDLADVANCEBLOCK.c + +../../../../../temp/csd/ta_CDLBELTHOLD.o: ../../../../../src/ta_func/ta_CDLBELTHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLBELTHOLD.o ../../../../../src/ta_func/ta_CDLBELTHOLD.c + +../../../../../temp/csd/ta_CDLBREAKAWAY.o: ../../../../../src/ta_func/ta_CDLBREAKAWAY.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLBREAKAWAY.o ../../../../../src/ta_func/ta_CDLBREAKAWAY.c + +../../../../../temp/csd/ta_CDLCLOSINGMARUBOZU.o: ../../../../../src/ta_func/ta_CDLCLOSINGMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLCLOSINGMARUBOZU.o ../../../../../src/ta_func/ta_CDLCLOSINGMARUBOZU.c + +../../../../../temp/csd/ta_CDLCONCEALBABYSWALL.o: ../../../../../src/ta_func/ta_CDLCONCEALBABYSWALL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLCONCEALBABYSWALL.o ../../../../../src/ta_func/ta_CDLCONCEALBABYSWALL.c + +../../../../../temp/csd/ta_CDLCOUNTERATTACK.o: ../../../../../src/ta_func/ta_CDLCOUNTERATTACK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLCOUNTERATTACK.o ../../../../../src/ta_func/ta_CDLCOUNTERATTACK.c + +../../../../../temp/csd/ta_CDLDARKCLOUDCOVER.o: ../../../../../src/ta_func/ta_CDLDARKCLOUDCOVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLDARKCLOUDCOVER.o ../../../../../src/ta_func/ta_CDLDARKCLOUDCOVER.c + +../../../../../temp/csd/ta_CDLDOJI.o: ../../../../../src/ta_func/ta_CDLDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLDOJI.o ../../../../../src/ta_func/ta_CDLDOJI.c + +../../../../../temp/csd/ta_CDLDOJISTAR.o: ../../../../../src/ta_func/ta_CDLDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLDOJISTAR.o ../../../../../src/ta_func/ta_CDLDOJISTAR.c + +../../../../../temp/csd/ta_CDLDRAGONFLYDOJI.o: ../../../../../src/ta_func/ta_CDLDRAGONFLYDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLDRAGONFLYDOJI.o ../../../../../src/ta_func/ta_CDLDRAGONFLYDOJI.c + +../../../../../temp/csd/ta_CDLENGULFING.o: ../../../../../src/ta_func/ta_CDLENGULFING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLENGULFING.o ../../../../../src/ta_func/ta_CDLENGULFING.c + +../../../../../temp/csd/ta_CDLEVENINGDOJISTAR.o: ../../../../../src/ta_func/ta_CDLEVENINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLEVENINGDOJISTAR.o ../../../../../src/ta_func/ta_CDLEVENINGDOJISTAR.c + +../../../../../temp/csd/ta_CDLEVENINGSTAR.o: ../../../../../src/ta_func/ta_CDLEVENINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLEVENINGSTAR.o ../../../../../src/ta_func/ta_CDLEVENINGSTAR.c + +../../../../../temp/csd/ta_CDLGAPSIDESIDEWHITE.o: ../../../../../src/ta_func/ta_CDLGAPSIDESIDEWHITE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLGAPSIDESIDEWHITE.o ../../../../../src/ta_func/ta_CDLGAPSIDESIDEWHITE.c + +../../../../../temp/csd/ta_CDLGRAVESTONEDOJI.o: ../../../../../src/ta_func/ta_CDLGRAVESTONEDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLGRAVESTONEDOJI.o ../../../../../src/ta_func/ta_CDLGRAVESTONEDOJI.c + +../../../../../temp/csd/ta_CDLHAMMER.o: ../../../../../src/ta_func/ta_CDLHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLHAMMER.o ../../../../../src/ta_func/ta_CDLHAMMER.c + +../../../../../temp/csd/ta_CDLHANGINGMAN.o: ../../../../../src/ta_func/ta_CDLHANGINGMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLHANGINGMAN.o ../../../../../src/ta_func/ta_CDLHANGINGMAN.c + +../../../../../temp/csd/ta_CDLHARAMI.o: ../../../../../src/ta_func/ta_CDLHARAMI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLHARAMI.o ../../../../../src/ta_func/ta_CDLHARAMI.c + +../../../../../temp/csd/ta_CDLHARAMICROSS.o: ../../../../../src/ta_func/ta_CDLHARAMICROSS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLHARAMICROSS.o ../../../../../src/ta_func/ta_CDLHARAMICROSS.c + +../../../../../temp/csd/ta_CDLHIGHWAVE.o: ../../../../../src/ta_func/ta_CDLHIGHWAVE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLHIGHWAVE.o ../../../../../src/ta_func/ta_CDLHIGHWAVE.c + +../../../../../temp/csd/ta_CDLHIKKAKE.o: ../../../../../src/ta_func/ta_CDLHIKKAKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLHIKKAKE.o ../../../../../src/ta_func/ta_CDLHIKKAKE.c + +../../../../../temp/csd/ta_CDLHIKKAKEMOD.o: ../../../../../src/ta_func/ta_CDLHIKKAKEMOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLHIKKAKEMOD.o ../../../../../src/ta_func/ta_CDLHIKKAKEMOD.c + +../../../../../temp/csd/ta_CDLHOMINGPIGEON.o: ../../../../../src/ta_func/ta_CDLHOMINGPIGEON.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLHOMINGPIGEON.o ../../../../../src/ta_func/ta_CDLHOMINGPIGEON.c + +../../../../../temp/csd/ta_CDLIDENTICAL3CROWS.o: ../../../../../src/ta_func/ta_CDLIDENTICAL3CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLIDENTICAL3CROWS.o ../../../../../src/ta_func/ta_CDLIDENTICAL3CROWS.c + +../../../../../temp/csd/ta_CDLINNECK.o: ../../../../../src/ta_func/ta_CDLINNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLINNECK.o ../../../../../src/ta_func/ta_CDLINNECK.c + +../../../../../temp/csd/ta_CDLINVERTEDHAMMER.o: ../../../../../src/ta_func/ta_CDLINVERTEDHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLINVERTEDHAMMER.o ../../../../../src/ta_func/ta_CDLINVERTEDHAMMER.c + +../../../../../temp/csd/ta_CDLKICKING.o: ../../../../../src/ta_func/ta_CDLKICKING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLKICKING.o ../../../../../src/ta_func/ta_CDLKICKING.c + +../../../../../temp/csd/ta_CDLKICKINGBYLENGTH.o: ../../../../../src/ta_func/ta_CDLKICKINGBYLENGTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLKICKINGBYLENGTH.o ../../../../../src/ta_func/ta_CDLKICKINGBYLENGTH.c + +../../../../../temp/csd/ta_CDLLADDERBOTTOM.o: ../../../../../src/ta_func/ta_CDLLADDERBOTTOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLLADDERBOTTOM.o ../../../../../src/ta_func/ta_CDLLADDERBOTTOM.c + +../../../../../temp/csd/ta_CDLLONGLEGGEDDOJI.o: ../../../../../src/ta_func/ta_CDLLONGLEGGEDDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLLONGLEGGEDDOJI.o ../../../../../src/ta_func/ta_CDLLONGLEGGEDDOJI.c + +../../../../../temp/csd/ta_CDLLONGLINE.o: ../../../../../src/ta_func/ta_CDLLONGLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLLONGLINE.o ../../../../../src/ta_func/ta_CDLLONGLINE.c + +../../../../../temp/csd/ta_CDLMARUBOZU.o: ../../../../../src/ta_func/ta_CDLMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLMARUBOZU.o ../../../../../src/ta_func/ta_CDLMARUBOZU.c + +../../../../../temp/csd/ta_CDLMATCHINGLOW.o: ../../../../../src/ta_func/ta_CDLMATCHINGLOW.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLMATCHINGLOW.o ../../../../../src/ta_func/ta_CDLMATCHINGLOW.c + +../../../../../temp/csd/ta_CDLMATHOLD.o: ../../../../../src/ta_func/ta_CDLMATHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLMATHOLD.o ../../../../../src/ta_func/ta_CDLMATHOLD.c + +../../../../../temp/csd/ta_CDLMORNINGDOJISTAR.o: ../../../../../src/ta_func/ta_CDLMORNINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLMORNINGDOJISTAR.o ../../../../../src/ta_func/ta_CDLMORNINGDOJISTAR.c + +../../../../../temp/csd/ta_CDLMORNINGSTAR.o: ../../../../../src/ta_func/ta_CDLMORNINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLMORNINGSTAR.o ../../../../../src/ta_func/ta_CDLMORNINGSTAR.c + +../../../../../temp/csd/ta_CDLONNECK.o: ../../../../../src/ta_func/ta_CDLONNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLONNECK.o ../../../../../src/ta_func/ta_CDLONNECK.c + +../../../../../temp/csd/ta_CDLPIERCING.o: ../../../../../src/ta_func/ta_CDLPIERCING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLPIERCING.o ../../../../../src/ta_func/ta_CDLPIERCING.c + +../../../../../temp/csd/ta_CDLRICKSHAWMAN.o: ../../../../../src/ta_func/ta_CDLRICKSHAWMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLRICKSHAWMAN.o ../../../../../src/ta_func/ta_CDLRICKSHAWMAN.c + +../../../../../temp/csd/ta_CDLRISEFALL3METHODS.o: ../../../../../src/ta_func/ta_CDLRISEFALL3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLRISEFALL3METHODS.o ../../../../../src/ta_func/ta_CDLRISEFALL3METHODS.c + +../../../../../temp/csd/ta_CDLSEPARATINGLINES.o: ../../../../../src/ta_func/ta_CDLSEPARATINGLINES.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLSEPARATINGLINES.o ../../../../../src/ta_func/ta_CDLSEPARATINGLINES.c + +../../../../../temp/csd/ta_CDLSHOOTINGSTAR.o: ../../../../../src/ta_func/ta_CDLSHOOTINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLSHOOTINGSTAR.o ../../../../../src/ta_func/ta_CDLSHOOTINGSTAR.c + +../../../../../temp/csd/ta_CDLSHORTLINE.o: ../../../../../src/ta_func/ta_CDLSHORTLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLSHORTLINE.o ../../../../../src/ta_func/ta_CDLSHORTLINE.c + +../../../../../temp/csd/ta_CDLSPINNINGTOP.o: ../../../../../src/ta_func/ta_CDLSPINNINGTOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLSPINNINGTOP.o ../../../../../src/ta_func/ta_CDLSPINNINGTOP.c + +../../../../../temp/csd/ta_CDLSTALLEDPATTERN.o: ../../../../../src/ta_func/ta_CDLSTALLEDPATTERN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLSTALLEDPATTERN.o ../../../../../src/ta_func/ta_CDLSTALLEDPATTERN.c + +../../../../../temp/csd/ta_CDLSTICKSANDWICH.o: ../../../../../src/ta_func/ta_CDLSTICKSANDWICH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLSTICKSANDWICH.o ../../../../../src/ta_func/ta_CDLSTICKSANDWICH.c + +../../../../../temp/csd/ta_CDLTAKURI.o: ../../../../../src/ta_func/ta_CDLTAKURI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLTAKURI.o ../../../../../src/ta_func/ta_CDLTAKURI.c + +../../../../../temp/csd/ta_CDLTASUKIGAP.o: ../../../../../src/ta_func/ta_CDLTASUKIGAP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLTASUKIGAP.o ../../../../../src/ta_func/ta_CDLTASUKIGAP.c + +../../../../../temp/csd/ta_CDLTHRUSTING.o: ../../../../../src/ta_func/ta_CDLTHRUSTING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLTHRUSTING.o ../../../../../src/ta_func/ta_CDLTHRUSTING.c + +../../../../../temp/csd/ta_CDLTRISTAR.o: ../../../../../src/ta_func/ta_CDLTRISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLTRISTAR.o ../../../../../src/ta_func/ta_CDLTRISTAR.c + +../../../../../temp/csd/ta_CDLUNIQUE3RIVER.o: ../../../../../src/ta_func/ta_CDLUNIQUE3RIVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLUNIQUE3RIVER.o ../../../../../src/ta_func/ta_CDLUNIQUE3RIVER.c + +../../../../../temp/csd/ta_CDLUPSIDEGAP2CROWS.o: ../../../../../src/ta_func/ta_CDLUPSIDEGAP2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLUPSIDEGAP2CROWS.o ../../../../../src/ta_func/ta_CDLUPSIDEGAP2CROWS.c + +../../../../../temp/csd/ta_CDLXSIDEGAP3METHODS.o: ../../../../../src/ta_func/ta_CDLXSIDEGAP3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLXSIDEGAP3METHODS.o ../../../../../src/ta_func/ta_CDLXSIDEGAP3METHODS.c + +../../../../../temp/csd/ta_CEIL.o: ../../../../../src/ta_func/ta_CEIL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CEIL.o ../../../../../src/ta_func/ta_CEIL.c + +../../../../../temp/csd/ta_CMO.o: ../../../../../src/ta_func/ta_CMO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CMO.o ../../../../../src/ta_func/ta_CMO.c + +../../../../../temp/csd/ta_CORREL.o: ../../../../../src/ta_func/ta_CORREL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CORREL.o ../../../../../src/ta_func/ta_CORREL.c + +../../../../../temp/csd/ta_COS.o: ../../../../../src/ta_func/ta_COS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_COS.o ../../../../../src/ta_func/ta_COS.c + +../../../../../temp/csd/ta_COSH.o: ../../../../../src/ta_func/ta_COSH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_COSH.o ../../../../../src/ta_func/ta_COSH.c + +../../../../../temp/csd/ta_DEMA.o: ../../../../../src/ta_func/ta_DEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_DEMA.o ../../../../../src/ta_func/ta_DEMA.c + +../../../../../temp/csd/ta_DIV.o: ../../../../../src/ta_func/ta_DIV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_DIV.o ../../../../../src/ta_func/ta_DIV.c + +../../../../../temp/csd/ta_DX.o: ../../../../../src/ta_func/ta_DX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_DX.o ../../../../../src/ta_func/ta_DX.c + +../../../../../temp/csd/ta_EMA.o: ../../../../../src/ta_func/ta_EMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_EMA.o ../../../../../src/ta_func/ta_EMA.c + +../../../../../temp/csd/ta_EXP.o: ../../../../../src/ta_func/ta_EXP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_EXP.o ../../../../../src/ta_func/ta_EXP.c + +../../../../../temp/csd/ta_FLOOR.o: ../../../../../src/ta_func/ta_FLOOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_FLOOR.o ../../../../../src/ta_func/ta_FLOOR.c + +../../../../../temp/csd/ta_HT_DCPERIOD.o: ../../../../../src/ta_func/ta_HT_DCPERIOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_HT_DCPERIOD.o ../../../../../src/ta_func/ta_HT_DCPERIOD.c + +../../../../../temp/csd/ta_HT_DCPHASE.o: ../../../../../src/ta_func/ta_HT_DCPHASE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_HT_DCPHASE.o ../../../../../src/ta_func/ta_HT_DCPHASE.c + +../../../../../temp/csd/ta_HT_PHASOR.o: ../../../../../src/ta_func/ta_HT_PHASOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_HT_PHASOR.o ../../../../../src/ta_func/ta_HT_PHASOR.c + +../../../../../temp/csd/ta_HT_SINE.o: ../../../../../src/ta_func/ta_HT_SINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_HT_SINE.o ../../../../../src/ta_func/ta_HT_SINE.c + +../../../../../temp/csd/ta_HT_TRENDLINE.o: ../../../../../src/ta_func/ta_HT_TRENDLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_HT_TRENDLINE.o ../../../../../src/ta_func/ta_HT_TRENDLINE.c + +../../../../../temp/csd/ta_HT_TRENDMODE.o: ../../../../../src/ta_func/ta_HT_TRENDMODE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_HT_TRENDMODE.o ../../../../../src/ta_func/ta_HT_TRENDMODE.c + +../../../../../temp/csd/ta_KAMA.o: ../../../../../src/ta_func/ta_KAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_KAMA.o ../../../../../src/ta_func/ta_KAMA.c + +../../../../../temp/csd/ta_LINEARREG.o: ../../../../../src/ta_func/ta_LINEARREG.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_LINEARREG.o ../../../../../src/ta_func/ta_LINEARREG.c + +../../../../../temp/csd/ta_LINEARREG_ANGLE.o: ../../../../../src/ta_func/ta_LINEARREG_ANGLE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_LINEARREG_ANGLE.o ../../../../../src/ta_func/ta_LINEARREG_ANGLE.c + +../../../../../temp/csd/ta_LINEARREG_INTERCEPT.o: ../../../../../src/ta_func/ta_LINEARREG_INTERCEPT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_LINEARREG_INTERCEPT.o ../../../../../src/ta_func/ta_LINEARREG_INTERCEPT.c + +../../../../../temp/csd/ta_LINEARREG_SLOPE.o: ../../../../../src/ta_func/ta_LINEARREG_SLOPE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_LINEARREG_SLOPE.o ../../../../../src/ta_func/ta_LINEARREG_SLOPE.c + +../../../../../temp/csd/ta_LN.o: ../../../../../src/ta_func/ta_LN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_LN.o ../../../../../src/ta_func/ta_LN.c + +../../../../../temp/csd/ta_LOG10.o: ../../../../../src/ta_func/ta_LOG10.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_LOG10.o ../../../../../src/ta_func/ta_LOG10.c + +../../../../../temp/csd/ta_MA.o: ../../../../../src/ta_func/ta_MA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_MA.o ../../../../../src/ta_func/ta_MA.c + +../../../../../temp/csd/ta_MACD.o: ../../../../../src/ta_func/ta_MACD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_MACD.o ../../../../../src/ta_func/ta_MACD.c + +../../../../../temp/csd/ta_MACDEXT.o: ../../../../../src/ta_func/ta_MACDEXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_MACDEXT.o ../../../../../src/ta_func/ta_MACDEXT.c + +../../../../../temp/csd/ta_MACDFIX.o: ../../../../../src/ta_func/ta_MACDFIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_MACDFIX.o ../../../../../src/ta_func/ta_MACDFIX.c + +../../../../../temp/csd/ta_MAMA.o: ../../../../../src/ta_func/ta_MAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_MAMA.o ../../../../../src/ta_func/ta_MAMA.c + +../../../../../temp/csd/ta_MAVP.o: ../../../../../src/ta_func/ta_MAVP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_MAVP.o ../../../../../src/ta_func/ta_MAVP.c + +../../../../../temp/csd/ta_MAX.o: ../../../../../src/ta_func/ta_MAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_MAX.o ../../../../../src/ta_func/ta_MAX.c + +../../../../../temp/csd/ta_MAXINDEX.o: ../../../../../src/ta_func/ta_MAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_MAXINDEX.o ../../../../../src/ta_func/ta_MAXINDEX.c + +../../../../../temp/csd/ta_MEDPRICE.o: ../../../../../src/ta_func/ta_MEDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_MEDPRICE.o ../../../../../src/ta_func/ta_MEDPRICE.c + +../../../../../temp/csd/ta_MFI.o: ../../../../../src/ta_func/ta_MFI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_MFI.o ../../../../../src/ta_func/ta_MFI.c + +../../../../../temp/csd/ta_MIDPOINT.o: ../../../../../src/ta_func/ta_MIDPOINT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_MIDPOINT.o ../../../../../src/ta_func/ta_MIDPOINT.c + +../../../../../temp/csd/ta_MIDPRICE.o: ../../../../../src/ta_func/ta_MIDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_MIDPRICE.o ../../../../../src/ta_func/ta_MIDPRICE.c + +../../../../../temp/csd/ta_MIN.o: ../../../../../src/ta_func/ta_MIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_MIN.o ../../../../../src/ta_func/ta_MIN.c + +../../../../../temp/csd/ta_MININDEX.o: ../../../../../src/ta_func/ta_MININDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_MININDEX.o ../../../../../src/ta_func/ta_MININDEX.c + +../../../../../temp/csd/ta_MINMAX.o: ../../../../../src/ta_func/ta_MINMAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_MINMAX.o ../../../../../src/ta_func/ta_MINMAX.c + +../../../../../temp/csd/ta_MINMAXINDEX.o: ../../../../../src/ta_func/ta_MINMAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_MINMAXINDEX.o ../../../../../src/ta_func/ta_MINMAXINDEX.c + +../../../../../temp/csd/ta_MINUS_DI.o: ../../../../../src/ta_func/ta_MINUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_MINUS_DI.o ../../../../../src/ta_func/ta_MINUS_DI.c + +../../../../../temp/csd/ta_MINUS_DM.o: ../../../../../src/ta_func/ta_MINUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_MINUS_DM.o ../../../../../src/ta_func/ta_MINUS_DM.c + +../../../../../temp/csd/ta_MOM.o: ../../../../../src/ta_func/ta_MOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_MOM.o ../../../../../src/ta_func/ta_MOM.c + +../../../../../temp/csd/ta_MULT.o: ../../../../../src/ta_func/ta_MULT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_MULT.o ../../../../../src/ta_func/ta_MULT.c + +../../../../../temp/csd/ta_NATR.o: ../../../../../src/ta_func/ta_NATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_NATR.o ../../../../../src/ta_func/ta_NATR.c + +../../../../../temp/csd/ta_OBV.o: ../../../../../src/ta_func/ta_OBV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_OBV.o ../../../../../src/ta_func/ta_OBV.c + +../../../../../temp/csd/ta_PLUS_DI.o: ../../../../../src/ta_func/ta_PLUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_PLUS_DI.o ../../../../../src/ta_func/ta_PLUS_DI.c + +../../../../../temp/csd/ta_PLUS_DM.o: ../../../../../src/ta_func/ta_PLUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_PLUS_DM.o ../../../../../src/ta_func/ta_PLUS_DM.c + +../../../../../temp/csd/ta_PPO.o: ../../../../../src/ta_func/ta_PPO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_PPO.o ../../../../../src/ta_func/ta_PPO.c + +../../../../../temp/csd/ta_ROC.o: ../../../../../src/ta_func/ta_ROC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_ROC.o ../../../../../src/ta_func/ta_ROC.c + +../../../../../temp/csd/ta_ROCP.o: ../../../../../src/ta_func/ta_ROCP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_ROCP.o ../../../../../src/ta_func/ta_ROCP.c + +../../../../../temp/csd/ta_ROCR.o: ../../../../../src/ta_func/ta_ROCR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_ROCR.o ../../../../../src/ta_func/ta_ROCR.c + +../../../../../temp/csd/ta_ROCR100.o: ../../../../../src/ta_func/ta_ROCR100.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_ROCR100.o ../../../../../src/ta_func/ta_ROCR100.c + +../../../../../temp/csd/ta_RSI.o: ../../../../../src/ta_func/ta_RSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_RSI.o ../../../../../src/ta_func/ta_RSI.c + +../../../../../temp/csd/ta_SAR.o: ../../../../../src/ta_func/ta_SAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_SAR.o ../../../../../src/ta_func/ta_SAR.c + +../../../../../temp/csd/ta_SAREXT.o: ../../../../../src/ta_func/ta_SAREXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_SAREXT.o ../../../../../src/ta_func/ta_SAREXT.c + +../../../../../temp/csd/ta_SIN.o: ../../../../../src/ta_func/ta_SIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_SIN.o ../../../../../src/ta_func/ta_SIN.c + +../../../../../temp/csd/ta_SINH.o: ../../../../../src/ta_func/ta_SINH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_SINH.o ../../../../../src/ta_func/ta_SINH.c + +../../../../../temp/csd/ta_SMA.o: ../../../../../src/ta_func/ta_SMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_SMA.o ../../../../../src/ta_func/ta_SMA.c + +../../../../../temp/csd/ta_SQRT.o: ../../../../../src/ta_func/ta_SQRT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_SQRT.o ../../../../../src/ta_func/ta_SQRT.c + +../../../../../temp/csd/ta_STDDEV.o: ../../../../../src/ta_func/ta_STDDEV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_STDDEV.o ../../../../../src/ta_func/ta_STDDEV.c + +../../../../../temp/csd/ta_STOCH.o: ../../../../../src/ta_func/ta_STOCH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_STOCH.o ../../../../../src/ta_func/ta_STOCH.c + +../../../../../temp/csd/ta_STOCHF.o: ../../../../../src/ta_func/ta_STOCHF.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_STOCHF.o ../../../../../src/ta_func/ta_STOCHF.c + +../../../../../temp/csd/ta_STOCHRSI.o: ../../../../../src/ta_func/ta_STOCHRSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_STOCHRSI.o ../../../../../src/ta_func/ta_STOCHRSI.c + +../../../../../temp/csd/ta_SUB.o: ../../../../../src/ta_func/ta_SUB.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_SUB.o ../../../../../src/ta_func/ta_SUB.c + +../../../../../temp/csd/ta_SUM.o: ../../../../../src/ta_func/ta_SUM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_SUM.o ../../../../../src/ta_func/ta_SUM.c + +../../../../../temp/csd/ta_T3.o: ../../../../../src/ta_func/ta_T3.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_T3.o ../../../../../src/ta_func/ta_T3.c + +../../../../../temp/csd/ta_TAN.o: ../../../../../src/ta_func/ta_TAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_TAN.o ../../../../../src/ta_func/ta_TAN.c + +../../../../../temp/csd/ta_TANH.o: ../../../../../src/ta_func/ta_TANH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_TANH.o ../../../../../src/ta_func/ta_TANH.c + +../../../../../temp/csd/ta_TEMA.o: ../../../../../src/ta_func/ta_TEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_TEMA.o ../../../../../src/ta_func/ta_TEMA.c + +../../../../../temp/csd/ta_TRANGE.o: ../../../../../src/ta_func/ta_TRANGE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_TRANGE.o ../../../../../src/ta_func/ta_TRANGE.c + +../../../../../temp/csd/ta_TRIMA.o: ../../../../../src/ta_func/ta_TRIMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_TRIMA.o ../../../../../src/ta_func/ta_TRIMA.c + +../../../../../temp/csd/ta_TRIX.o: ../../../../../src/ta_func/ta_TRIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_TRIX.o ../../../../../src/ta_func/ta_TRIX.c + +../../../../../temp/csd/ta_TSF.o: ../../../../../src/ta_func/ta_TSF.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_TSF.o ../../../../../src/ta_func/ta_TSF.c + +../../../../../temp/csd/ta_TYPPRICE.o: ../../../../../src/ta_func/ta_TYPPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_TYPPRICE.o ../../../../../src/ta_func/ta_TYPPRICE.c + +../../../../../temp/csd/ta_ULTOSC.o: ../../../../../src/ta_func/ta_ULTOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_ULTOSC.o ../../../../../src/ta_func/ta_ULTOSC.c + +../../../../../temp/csd/ta_VAR.o: ../../../../../src/ta_func/ta_VAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_VAR.o ../../../../../src/ta_func/ta_VAR.c + +../../../../../temp/csd/ta_WCLPRICE.o: ../../../../../src/ta_func/ta_WCLPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_WCLPRICE.o ../../../../../src/ta_func/ta_WCLPRICE.c + +../../../../../temp/csd/ta_WILLR.o: ../../../../../src/ta_func/ta_WILLR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_WILLR.o ../../../../../src/ta_func/ta_WILLR.c + +../../../../../temp/csd/ta_WMA.o: ../../../../../src/ta_func/ta_WMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_WMA.o ../../../../../src/ta_func/ta_WMA.c + diff --git a/make/csd/freebsd/g++/ta_libc/Makefile b/make/csd/freebsd/g++/ta_libc/Makefile new file mode 100644 index 000000000..d191f2cd6 --- /dev/null +++ b/make/csd/freebsd/g++/ta_libc/Makefile @@ -0,0 +1,1053 @@ +############################################################################# +# Makefile for building ../../../../../lib/libta_libc_csd.a +# Generated by tmake; +# Project: ta_libc/ta_libc +# Template: lib +############################################################################# + +####### Compiler, tools and options + +CC = gcc +CXX = g++ +CFLAGS = -pipe -Wall -W -g -DTA_DEBUG -D_DEBUG -DTA_SINGLE_THREAD +CXXFLAGS= -pipe -Wall -W -g -DTA_DEBUG -D_DEBUG -DTA_SINGLE_THREAD +INCPATH = -I../../../../../src/ta_common -I../../../../../include -I../../../../../src/ta_abstract -I../../../../../src/ta_abstract/tables -I../../../../../src/ta_abstract/frames -I/usr/local/include -I$(QTDIR)/include +AR = ar cqs +RANLIB = +MOC = $(QTDIR)/bin/moc +UIC = $(QTDIR)/bin/uic + +TAR = tar -cf +GZIP = gzip -9f + +####### Support for 64-bit systems +ifeq ($(shell uname -m), x86_64) + CFLAGS += -march=x86-64 -m64 -D__64BIT__ + CXXFLAGS += -march=x86-64 -m64 -D__64BIT__ +endif + +####### Apply additional overruling user flags, if any +CFLAGS += $(CUSERFLAGS) +CXXFLAGS += $(CUSERFLAGS) + +####### Files + +HEADERS = +SOURCES = ../../../../../src/ta_common/ta_global.c \ + ../../../../../src/ta_common/ta_retcode.c \ + ../../../../../src/ta_common/ta_version.c \ + ../../../../../src/ta_abstract/ta_abstract.c \ + ../../../../../src/ta_abstract/ta_def_ui.c \ + ../../../../../src/ta_abstract/ta_func_api.c \ + ../../../../../src/ta_abstract/ta_group_idx.c \ + ../../../../../src/ta_abstract/frames/ta_frame.c \ + ../../../../../src/ta_abstract/tables/table_a.c \ + ../../../../../src/ta_abstract/tables/table_b.c \ + ../../../../../src/ta_abstract/tables/table_c.c \ + ../../../../../src/ta_abstract/tables/table_d.c \ + ../../../../../src/ta_abstract/tables/table_e.c \ + ../../../../../src/ta_abstract/tables/table_f.c \ + ../../../../../src/ta_abstract/tables/table_g.c \ + ../../../../../src/ta_abstract/tables/table_h.c \ + ../../../../../src/ta_abstract/tables/table_i.c \ + ../../../../../src/ta_abstract/tables/table_j.c \ + ../../../../../src/ta_abstract/tables/table_k.c \ + ../../../../../src/ta_abstract/tables/table_l.c \ + ../../../../../src/ta_abstract/tables/table_m.c \ + ../../../../../src/ta_abstract/tables/table_n.c \ + ../../../../../src/ta_abstract/tables/table_o.c \ + ../../../../../src/ta_abstract/tables/table_p.c \ + ../../../../../src/ta_abstract/tables/table_q.c \ + ../../../../../src/ta_abstract/tables/table_r.c \ + ../../../../../src/ta_abstract/tables/table_s.c \ + ../../../../../src/ta_abstract/tables/table_t.c \ + ../../../../../src/ta_abstract/tables/table_u.c \ + ../../../../../src/ta_abstract/tables/table_v.c \ + ../../../../../src/ta_abstract/tables/table_w.c \ + ../../../../../src/ta_abstract/tables/table_x.c \ + ../../../../../src/ta_abstract/tables/table_y.c \ + ../../../../../src/ta_abstract/tables/table_z.c \ + ../../../../../src/ta_func/ta_utility.c \ + ../../../../../src/ta_func/ta_ACOS.c \ + ../../../../../src/ta_func/ta_AD.c \ + ../../../../../src/ta_func/ta_ADD.c \ + ../../../../../src/ta_func/ta_ADOSC.c \ + ../../../../../src/ta_func/ta_ADX.c \ + ../../../../../src/ta_func/ta_ADXR.c \ + ../../../../../src/ta_func/ta_APO.c \ + ../../../../../src/ta_func/ta_AROON.c \ + ../../../../../src/ta_func/ta_AROONOSC.c \ + ../../../../../src/ta_func/ta_ASIN.c \ + ../../../../../src/ta_func/ta_ATAN.c \ + ../../../../../src/ta_func/ta_ATR.c \ + ../../../../../src/ta_func/ta_AVGPRICE.c \ + ../../../../../src/ta_func/ta_BBANDS.c \ + ../../../../../src/ta_func/ta_BETA.c \ + ../../../../../src/ta_func/ta_BOP.c \ + ../../../../../src/ta_func/ta_CCI.c \ + ../../../../../src/ta_func/ta_CDL2CROWS.c \ + ../../../../../src/ta_func/ta_CDL3BLACKCROWS.c \ + ../../../../../src/ta_func/ta_CDL3INSIDE.c \ + ../../../../../src/ta_func/ta_CDL3LINESTRIKE.c \ + ../../../../../src/ta_func/ta_CDL3OUTSIDE.c \ + ../../../../../src/ta_func/ta_CDL3STARSINSOUTH.c \ + ../../../../../src/ta_func/ta_CDL3WHITESOLDIERS.c \ + ../../../../../src/ta_func/ta_CDLABANDONEDBABY.c \ + ../../../../../src/ta_func/ta_CDLADVANCEBLOCK.c \ + ../../../../../src/ta_func/ta_CDLBELTHOLD.c \ + ../../../../../src/ta_func/ta_CDLBREAKAWAY.c \ + ../../../../../src/ta_func/ta_CDLCLOSINGMARUBOZU.c \ + ../../../../../src/ta_func/ta_CDLCONCEALBABYSWALL.c \ + ../../../../../src/ta_func/ta_CDLCOUNTERATTACK.c \ + ../../../../../src/ta_func/ta_CDLDARKCLOUDCOVER.c \ + ../../../../../src/ta_func/ta_CDLDOJI.c \ + ../../../../../src/ta_func/ta_CDLDOJISTAR.c \ + ../../../../../src/ta_func/ta_CDLDRAGONFLYDOJI.c \ + ../../../../../src/ta_func/ta_CDLENGULFING.c \ + ../../../../../src/ta_func/ta_CDLEVENINGDOJISTAR.c \ + ../../../../../src/ta_func/ta_CDLEVENINGSTAR.c \ + ../../../../../src/ta_func/ta_CDLGAPSIDESIDEWHITE.c \ + ../../../../../src/ta_func/ta_CDLGRAVESTONEDOJI.c \ + ../../../../../src/ta_func/ta_CDLHAMMER.c \ + ../../../../../src/ta_func/ta_CDLHANGINGMAN.c \ + ../../../../../src/ta_func/ta_CDLHARAMI.c \ + ../../../../../src/ta_func/ta_CDLHARAMICROSS.c \ + ../../../../../src/ta_func/ta_CDLHIGHWAVE.c \ + ../../../../../src/ta_func/ta_CDLHIKKAKE.c \ + ../../../../../src/ta_func/ta_CDLHIKKAKEMOD.c \ + ../../../../../src/ta_func/ta_CDLHOMINGPIGEON.c \ + ../../../../../src/ta_func/ta_CDLIDENTICAL3CROWS.c \ + ../../../../../src/ta_func/ta_CDLINNECK.c \ + ../../../../../src/ta_func/ta_CDLINVERTEDHAMMER.c \ + ../../../../../src/ta_func/ta_CDLKICKING.c \ + ../../../../../src/ta_func/ta_CDLKICKINGBYLENGTH.c \ + ../../../../../src/ta_func/ta_CDLLADDERBOTTOM.c \ + ../../../../../src/ta_func/ta_CDLLONGLEGGEDDOJI.c \ + ../../../../../src/ta_func/ta_CDLLONGLINE.c \ + ../../../../../src/ta_func/ta_CDLMARUBOZU.c \ + ../../../../../src/ta_func/ta_CDLMATCHINGLOW.c \ + ../../../../../src/ta_func/ta_CDLMATHOLD.c \ + ../../../../../src/ta_func/ta_CDLMORNINGDOJISTAR.c \ + ../../../../../src/ta_func/ta_CDLMORNINGSTAR.c \ + ../../../../../src/ta_func/ta_CDLONNECK.c \ + ../../../../../src/ta_func/ta_CDLPIERCING.c \ + ../../../../../src/ta_func/ta_CDLRICKSHAWMAN.c \ + ../../../../../src/ta_func/ta_CDLRISEFALL3METHODS.c \ + ../../../../../src/ta_func/ta_CDLSEPARATINGLINES.c \ + ../../../../../src/ta_func/ta_CDLSHOOTINGSTAR.c \ + ../../../../../src/ta_func/ta_CDLSHORTLINE.c \ + ../../../../../src/ta_func/ta_CDLSPINNINGTOP.c \ + ../../../../../src/ta_func/ta_CDLSTALLEDPATTERN.c \ + ../../../../../src/ta_func/ta_CDLSTICKSANDWICH.c \ + ../../../../../src/ta_func/ta_CDLTAKURI.c \ + ../../../../../src/ta_func/ta_CDLTASUKIGAP.c \ + ../../../../../src/ta_func/ta_CDLTHRUSTING.c \ + ../../../../../src/ta_func/ta_CDLTRISTAR.c \ + ../../../../../src/ta_func/ta_CDLUNIQUE3RIVER.c \ + ../../../../../src/ta_func/ta_CDLUPSIDEGAP2CROWS.c \ + ../../../../../src/ta_func/ta_CDLXSIDEGAP3METHODS.c \ + ../../../../../src/ta_func/ta_CEIL.c \ + ../../../../../src/ta_func/ta_CMO.c \ + ../../../../../src/ta_func/ta_CORREL.c \ + ../../../../../src/ta_func/ta_COS.c \ + ../../../../../src/ta_func/ta_COSH.c \ + ../../../../../src/ta_func/ta_DEMA.c \ + ../../../../../src/ta_func/ta_DIV.c \ + ../../../../../src/ta_func/ta_DX.c \ + ../../../../../src/ta_func/ta_EMA.c \ + ../../../../../src/ta_func/ta_EXP.c \ + ../../../../../src/ta_func/ta_FLOOR.c \ + ../../../../../src/ta_func/ta_HT_DCPERIOD.c \ + ../../../../../src/ta_func/ta_HT_DCPHASE.c \ + ../../../../../src/ta_func/ta_HT_PHASOR.c \ + ../../../../../src/ta_func/ta_HT_SINE.c \ + ../../../../../src/ta_func/ta_HT_TRENDLINE.c \ + ../../../../../src/ta_func/ta_HT_TRENDMODE.c \ + ../../../../../src/ta_func/ta_KAMA.c \ + ../../../../../src/ta_func/ta_LINEARREG.c \ + ../../../../../src/ta_func/ta_LINEARREG_ANGLE.c \ + ../../../../../src/ta_func/ta_LINEARREG_INTERCEPT.c \ + ../../../../../src/ta_func/ta_LINEARREG_SLOPE.c \ + ../../../../../src/ta_func/ta_LN.c \ + ../../../../../src/ta_func/ta_LOG10.c \ + ../../../../../src/ta_func/ta_MA.c \ + ../../../../../src/ta_func/ta_MACD.c \ + ../../../../../src/ta_func/ta_MACDEXT.c \ + ../../../../../src/ta_func/ta_MACDFIX.c \ + ../../../../../src/ta_func/ta_MAMA.c \ + ../../../../../src/ta_func/ta_MAVP.c \ + ../../../../../src/ta_func/ta_MAX.c \ + ../../../../../src/ta_func/ta_MAXINDEX.c \ + ../../../../../src/ta_func/ta_MEDPRICE.c \ + ../../../../../src/ta_func/ta_MFI.c \ + ../../../../../src/ta_func/ta_MIDPOINT.c \ + ../../../../../src/ta_func/ta_MIDPRICE.c \ + ../../../../../src/ta_func/ta_MIN.c \ + ../../../../../src/ta_func/ta_MININDEX.c \ + ../../../../../src/ta_func/ta_MINMAX.c \ + ../../../../../src/ta_func/ta_MINMAXINDEX.c \ + ../../../../../src/ta_func/ta_MINUS_DI.c \ + ../../../../../src/ta_func/ta_MINUS_DM.c \ + ../../../../../src/ta_func/ta_MOM.c \ + ../../../../../src/ta_func/ta_MULT.c \ + ../../../../../src/ta_func/ta_NATR.c \ + ../../../../../src/ta_func/ta_OBV.c \ + ../../../../../src/ta_func/ta_PLUS_DI.c \ + ../../../../../src/ta_func/ta_PLUS_DM.c \ + ../../../../../src/ta_func/ta_PPO.c \ + ../../../../../src/ta_func/ta_ROC.c \ + ../../../../../src/ta_func/ta_ROCP.c \ + ../../../../../src/ta_func/ta_ROCR.c \ + ../../../../../src/ta_func/ta_ROCR100.c \ + ../../../../../src/ta_func/ta_RSI.c \ + ../../../../../src/ta_func/ta_SAR.c \ + ../../../../../src/ta_func/ta_SAREXT.c \ + ../../../../../src/ta_func/ta_SIN.c \ + ../../../../../src/ta_func/ta_SINH.c \ + ../../../../../src/ta_func/ta_SMA.c \ + ../../../../../src/ta_func/ta_SQRT.c \ + ../../../../../src/ta_func/ta_STDDEV.c \ + ../../../../../src/ta_func/ta_STOCH.c \ + ../../../../../src/ta_func/ta_STOCHF.c \ + ../../../../../src/ta_func/ta_STOCHRSI.c \ + ../../../../../src/ta_func/ta_SUB.c \ + ../../../../../src/ta_func/ta_SUM.c \ + ../../../../../src/ta_func/ta_T3.c \ + ../../../../../src/ta_func/ta_TAN.c \ + ../../../../../src/ta_func/ta_TANH.c \ + ../../../../../src/ta_func/ta_TEMA.c \ + ../../../../../src/ta_func/ta_TRANGE.c \ + ../../../../../src/ta_func/ta_TRIMA.c \ + ../../../../../src/ta_func/ta_TRIX.c \ + ../../../../../src/ta_func/ta_TSF.c \ + ../../../../../src/ta_func/ta_TYPPRICE.c \ + ../../../../../src/ta_func/ta_ULTOSC.c \ + ../../../../../src/ta_func/ta_VAR.c \ + ../../../../../src/ta_func/ta_WCLPRICE.c \ + ../../../../../src/ta_func/ta_WILLR.c \ + ../../../../../src/ta_func/ta_WMA.c +OBJECTS = ../../../../../temp/csd/ta_global.o \ + ../../../../../temp/csd/ta_retcode.o \ + ../../../../../temp/csd/ta_version.o \ + ../../../../../temp/csd/ta_abstract.o \ + ../../../../../temp/csd/ta_def_ui.o \ + ../../../../../temp/csd/ta_func_api.o \ + ../../../../../temp/csd/ta_group_idx.o \ + ../../../../../temp/csd/ta_frame.o \ + ../../../../../temp/csd/table_a.o \ + ../../../../../temp/csd/table_b.o \ + ../../../../../temp/csd/table_c.o \ + ../../../../../temp/csd/table_d.o \ + ../../../../../temp/csd/table_e.o \ + ../../../../../temp/csd/table_f.o \ + ../../../../../temp/csd/table_g.o \ + ../../../../../temp/csd/table_h.o \ + ../../../../../temp/csd/table_i.o \ + ../../../../../temp/csd/table_j.o \ + ../../../../../temp/csd/table_k.o \ + ../../../../../temp/csd/table_l.o \ + ../../../../../temp/csd/table_m.o \ + ../../../../../temp/csd/table_n.o \ + ../../../../../temp/csd/table_o.o \ + ../../../../../temp/csd/table_p.o \ + ../../../../../temp/csd/table_q.o \ + ../../../../../temp/csd/table_r.o \ + ../../../../../temp/csd/table_s.o \ + ../../../../../temp/csd/table_t.o \ + ../../../../../temp/csd/table_u.o \ + ../../../../../temp/csd/table_v.o \ + ../../../../../temp/csd/table_w.o \ + ../../../../../temp/csd/table_x.o \ + ../../../../../temp/csd/table_y.o \ + ../../../../../temp/csd/table_z.o \ + ../../../../../temp/csd/ta_utility.o \ + ../../../../../temp/csd/ta_ACOS.o \ + ../../../../../temp/csd/ta_AD.o \ + ../../../../../temp/csd/ta_ADD.o \ + ../../../../../temp/csd/ta_ADOSC.o \ + ../../../../../temp/csd/ta_ADX.o \ + ../../../../../temp/csd/ta_ADXR.o \ + ../../../../../temp/csd/ta_APO.o \ + ../../../../../temp/csd/ta_AROON.o \ + ../../../../../temp/csd/ta_AROONOSC.o \ + ../../../../../temp/csd/ta_ASIN.o \ + ../../../../../temp/csd/ta_ATAN.o \ + ../../../../../temp/csd/ta_ATR.o \ + ../../../../../temp/csd/ta_AVGPRICE.o \ + ../../../../../temp/csd/ta_BBANDS.o \ + ../../../../../temp/csd/ta_BETA.o \ + ../../../../../temp/csd/ta_BOP.o \ + ../../../../../temp/csd/ta_CCI.o \ + ../../../../../temp/csd/ta_CDL2CROWS.o \ + ../../../../../temp/csd/ta_CDL3BLACKCROWS.o \ + ../../../../../temp/csd/ta_CDL3INSIDE.o \ + ../../../../../temp/csd/ta_CDL3LINESTRIKE.o \ + ../../../../../temp/csd/ta_CDL3OUTSIDE.o \ + ../../../../../temp/csd/ta_CDL3STARSINSOUTH.o \ + ../../../../../temp/csd/ta_CDL3WHITESOLDIERS.o \ + ../../../../../temp/csd/ta_CDLABANDONEDBABY.o \ + ../../../../../temp/csd/ta_CDLADVANCEBLOCK.o \ + ../../../../../temp/csd/ta_CDLBELTHOLD.o \ + ../../../../../temp/csd/ta_CDLBREAKAWAY.o \ + ../../../../../temp/csd/ta_CDLCLOSINGMARUBOZU.o \ + ../../../../../temp/csd/ta_CDLCONCEALBABYSWALL.o \ + ../../../../../temp/csd/ta_CDLCOUNTERATTACK.o \ + ../../../../../temp/csd/ta_CDLDARKCLOUDCOVER.o \ + ../../../../../temp/csd/ta_CDLDOJI.o \ + ../../../../../temp/csd/ta_CDLDOJISTAR.o \ + ../../../../../temp/csd/ta_CDLDRAGONFLYDOJI.o \ + ../../../../../temp/csd/ta_CDLENGULFING.o \ + ../../../../../temp/csd/ta_CDLEVENINGDOJISTAR.o \ + ../../../../../temp/csd/ta_CDLEVENINGSTAR.o \ + ../../../../../temp/csd/ta_CDLGAPSIDESIDEWHITE.o \ + ../../../../../temp/csd/ta_CDLGRAVESTONEDOJI.o \ + ../../../../../temp/csd/ta_CDLHAMMER.o \ + ../../../../../temp/csd/ta_CDLHANGINGMAN.o \ + ../../../../../temp/csd/ta_CDLHARAMI.o \ + ../../../../../temp/csd/ta_CDLHARAMICROSS.o \ + ../../../../../temp/csd/ta_CDLHIGHWAVE.o \ + ../../../../../temp/csd/ta_CDLHIKKAKE.o \ + ../../../../../temp/csd/ta_CDLHIKKAKEMOD.o \ + ../../../../../temp/csd/ta_CDLHOMINGPIGEON.o \ + ../../../../../temp/csd/ta_CDLIDENTICAL3CROWS.o \ + ../../../../../temp/csd/ta_CDLINNECK.o \ + ../../../../../temp/csd/ta_CDLINVERTEDHAMMER.o \ + ../../../../../temp/csd/ta_CDLKICKING.o \ + ../../../../../temp/csd/ta_CDLKICKINGBYLENGTH.o \ + ../../../../../temp/csd/ta_CDLLADDERBOTTOM.o \ + ../../../../../temp/csd/ta_CDLLONGLEGGEDDOJI.o \ + ../../../../../temp/csd/ta_CDLLONGLINE.o \ + ../../../../../temp/csd/ta_CDLMARUBOZU.o \ + ../../../../../temp/csd/ta_CDLMATCHINGLOW.o \ + ../../../../../temp/csd/ta_CDLMATHOLD.o \ + ../../../../../temp/csd/ta_CDLMORNINGDOJISTAR.o \ + ../../../../../temp/csd/ta_CDLMORNINGSTAR.o \ + ../../../../../temp/csd/ta_CDLONNECK.o \ + ../../../../../temp/csd/ta_CDLPIERCING.o \ + ../../../../../temp/csd/ta_CDLRICKSHAWMAN.o \ + ../../../../../temp/csd/ta_CDLRISEFALL3METHODS.o \ + ../../../../../temp/csd/ta_CDLSEPARATINGLINES.o \ + ../../../../../temp/csd/ta_CDLSHOOTINGSTAR.o \ + ../../../../../temp/csd/ta_CDLSHORTLINE.o \ + ../../../../../temp/csd/ta_CDLSPINNINGTOP.o \ + ../../../../../temp/csd/ta_CDLSTALLEDPATTERN.o \ + ../../../../../temp/csd/ta_CDLSTICKSANDWICH.o \ + ../../../../../temp/csd/ta_CDLTAKURI.o \ + ../../../../../temp/csd/ta_CDLTASUKIGAP.o \ + ../../../../../temp/csd/ta_CDLTHRUSTING.o \ + ../../../../../temp/csd/ta_CDLTRISTAR.o \ + ../../../../../temp/csd/ta_CDLUNIQUE3RIVER.o \ + ../../../../../temp/csd/ta_CDLUPSIDEGAP2CROWS.o \ + ../../../../../temp/csd/ta_CDLXSIDEGAP3METHODS.o \ + ../../../../../temp/csd/ta_CEIL.o \ + ../../../../../temp/csd/ta_CMO.o \ + ../../../../../temp/csd/ta_CORREL.o \ + ../../../../../temp/csd/ta_COS.o \ + ../../../../../temp/csd/ta_COSH.o \ + ../../../../../temp/csd/ta_DEMA.o \ + ../../../../../temp/csd/ta_DIV.o \ + ../../../../../temp/csd/ta_DX.o \ + ../../../../../temp/csd/ta_EMA.o \ + ../../../../../temp/csd/ta_EXP.o \ + ../../../../../temp/csd/ta_FLOOR.o \ + ../../../../../temp/csd/ta_HT_DCPERIOD.o \ + ../../../../../temp/csd/ta_HT_DCPHASE.o \ + ../../../../../temp/csd/ta_HT_PHASOR.o \ + ../../../../../temp/csd/ta_HT_SINE.o \ + ../../../../../temp/csd/ta_HT_TRENDLINE.o \ + ../../../../../temp/csd/ta_HT_TRENDMODE.o \ + ../../../../../temp/csd/ta_KAMA.o \ + ../../../../../temp/csd/ta_LINEARREG.o \ + ../../../../../temp/csd/ta_LINEARREG_ANGLE.o \ + ../../../../../temp/csd/ta_LINEARREG_INTERCEPT.o \ + ../../../../../temp/csd/ta_LINEARREG_SLOPE.o \ + ../../../../../temp/csd/ta_LN.o \ + ../../../../../temp/csd/ta_LOG10.o \ + ../../../../../temp/csd/ta_MA.o \ + ../../../../../temp/csd/ta_MACD.o \ + ../../../../../temp/csd/ta_MACDEXT.o \ + ../../../../../temp/csd/ta_MACDFIX.o \ + ../../../../../temp/csd/ta_MAMA.o \ + ../../../../../temp/csd/ta_MAVP.o \ + ../../../../../temp/csd/ta_MAX.o \ + ../../../../../temp/csd/ta_MAXINDEX.o \ + ../../../../../temp/csd/ta_MEDPRICE.o \ + ../../../../../temp/csd/ta_MFI.o \ + ../../../../../temp/csd/ta_MIDPOINT.o \ + ../../../../../temp/csd/ta_MIDPRICE.o \ + ../../../../../temp/csd/ta_MIN.o \ + ../../../../../temp/csd/ta_MININDEX.o \ + ../../../../../temp/csd/ta_MINMAX.o \ + ../../../../../temp/csd/ta_MINMAXINDEX.o \ + ../../../../../temp/csd/ta_MINUS_DI.o \ + ../../../../../temp/csd/ta_MINUS_DM.o \ + ../../../../../temp/csd/ta_MOM.o \ + ../../../../../temp/csd/ta_MULT.o \ + ../../../../../temp/csd/ta_NATR.o \ + ../../../../../temp/csd/ta_OBV.o \ + ../../../../../temp/csd/ta_PLUS_DI.o \ + ../../../../../temp/csd/ta_PLUS_DM.o \ + ../../../../../temp/csd/ta_PPO.o \ + ../../../../../temp/csd/ta_ROC.o \ + ../../../../../temp/csd/ta_ROCP.o \ + ../../../../../temp/csd/ta_ROCR.o \ + ../../../../../temp/csd/ta_ROCR100.o \ + ../../../../../temp/csd/ta_RSI.o \ + ../../../../../temp/csd/ta_SAR.o \ + ../../../../../temp/csd/ta_SAREXT.o \ + ../../../../../temp/csd/ta_SIN.o \ + ../../../../../temp/csd/ta_SINH.o \ + ../../../../../temp/csd/ta_SMA.o \ + ../../../../../temp/csd/ta_SQRT.o \ + ../../../../../temp/csd/ta_STDDEV.o \ + ../../../../../temp/csd/ta_STOCH.o \ + ../../../../../temp/csd/ta_STOCHF.o \ + ../../../../../temp/csd/ta_STOCHRSI.o \ + ../../../../../temp/csd/ta_SUB.o \ + ../../../../../temp/csd/ta_SUM.o \ + ../../../../../temp/csd/ta_T3.o \ + ../../../../../temp/csd/ta_TAN.o \ + ../../../../../temp/csd/ta_TANH.o \ + ../../../../../temp/csd/ta_TEMA.o \ + ../../../../../temp/csd/ta_TRANGE.o \ + ../../../../../temp/csd/ta_TRIMA.o \ + ../../../../../temp/csd/ta_TRIX.o \ + ../../../../../temp/csd/ta_TSF.o \ + ../../../../../temp/csd/ta_TYPPRICE.o \ + ../../../../../temp/csd/ta_ULTOSC.o \ + ../../../../../temp/csd/ta_VAR.o \ + ../../../../../temp/csd/ta_WCLPRICE.o \ + ../../../../../temp/csd/ta_WILLR.o \ + ../../../../../temp/csd/ta_WMA.o +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ../../../../../lib/libta_libc_csd.a +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .C .c + +.cpp.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cxx.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cc.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.C.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.c.o: + $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $< + +####### Build rules + + +all: $(TARGET) + +staticlib: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + -rm -f $(TARGET) + $(AR) $(TARGET) $(OBJECTS) $(OBJMOC) + +moc: $(SRCMOC) + +clean: + -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) + -rm -f *~ core + +####### Sub-libraries + + +###### Combined headers + + +####### Compile + +../../../../../temp/csd/ta_global.o: ../../../../../src/ta_common/ta_global.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_global.o ../../../../../src/ta_common/ta_global.c + +../../../../../temp/csd/ta_retcode.o: ../../../../../src/ta_common/ta_retcode.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_retcode.o ../../../../../src/ta_common/ta_retcode.c + +../../../../../temp/csd/ta_version.o: ../../../../../src/ta_common/ta_version.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_version.o ../../../../../src/ta_common/ta_version.c + +../../../../../temp/csd/ta_abstract.o: ../../../../../src/ta_abstract/ta_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_abstract.o ../../../../../src/ta_abstract/ta_abstract.c + +../../../../../temp/csd/ta_def_ui.o: ../../../../../src/ta_abstract/ta_def_ui.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_def_ui.o ../../../../../src/ta_abstract/ta_def_ui.c + +../../../../../temp/csd/ta_func_api.o: ../../../../../src/ta_abstract/ta_func_api.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_func_api.o ../../../../../src/ta_abstract/ta_func_api.c + +../../../../../temp/csd/ta_group_idx.o: ../../../../../src/ta_abstract/ta_group_idx.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_group_idx.o ../../../../../src/ta_abstract/ta_group_idx.c + +../../../../../temp/csd/ta_frame.o: ../../../../../src/ta_abstract/frames/ta_frame.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_frame.o ../../../../../src/ta_abstract/frames/ta_frame.c + +../../../../../temp/csd/table_a.o: ../../../../../src/ta_abstract/tables/table_a.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_a.o ../../../../../src/ta_abstract/tables/table_a.c + +../../../../../temp/csd/table_b.o: ../../../../../src/ta_abstract/tables/table_b.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_b.o ../../../../../src/ta_abstract/tables/table_b.c + +../../../../../temp/csd/table_c.o: ../../../../../src/ta_abstract/tables/table_c.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_c.o ../../../../../src/ta_abstract/tables/table_c.c + +../../../../../temp/csd/table_d.o: ../../../../../src/ta_abstract/tables/table_d.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_d.o ../../../../../src/ta_abstract/tables/table_d.c + +../../../../../temp/csd/table_e.o: ../../../../../src/ta_abstract/tables/table_e.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_e.o ../../../../../src/ta_abstract/tables/table_e.c + +../../../../../temp/csd/table_f.o: ../../../../../src/ta_abstract/tables/table_f.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_f.o ../../../../../src/ta_abstract/tables/table_f.c + +../../../../../temp/csd/table_g.o: ../../../../../src/ta_abstract/tables/table_g.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_g.o ../../../../../src/ta_abstract/tables/table_g.c + +../../../../../temp/csd/table_h.o: ../../../../../src/ta_abstract/tables/table_h.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_h.o ../../../../../src/ta_abstract/tables/table_h.c + +../../../../../temp/csd/table_i.o: ../../../../../src/ta_abstract/tables/table_i.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_i.o ../../../../../src/ta_abstract/tables/table_i.c + +../../../../../temp/csd/table_j.o: ../../../../../src/ta_abstract/tables/table_j.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_j.o ../../../../../src/ta_abstract/tables/table_j.c + +../../../../../temp/csd/table_k.o: ../../../../../src/ta_abstract/tables/table_k.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_k.o ../../../../../src/ta_abstract/tables/table_k.c + +../../../../../temp/csd/table_l.o: ../../../../../src/ta_abstract/tables/table_l.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_l.o ../../../../../src/ta_abstract/tables/table_l.c + +../../../../../temp/csd/table_m.o: ../../../../../src/ta_abstract/tables/table_m.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_m.o ../../../../../src/ta_abstract/tables/table_m.c + +../../../../../temp/csd/table_n.o: ../../../../../src/ta_abstract/tables/table_n.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_n.o ../../../../../src/ta_abstract/tables/table_n.c + +../../../../../temp/csd/table_o.o: ../../../../../src/ta_abstract/tables/table_o.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_o.o ../../../../../src/ta_abstract/tables/table_o.c + +../../../../../temp/csd/table_p.o: ../../../../../src/ta_abstract/tables/table_p.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_p.o ../../../../../src/ta_abstract/tables/table_p.c + +../../../../../temp/csd/table_q.o: ../../../../../src/ta_abstract/tables/table_q.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_q.o ../../../../../src/ta_abstract/tables/table_q.c + +../../../../../temp/csd/table_r.o: ../../../../../src/ta_abstract/tables/table_r.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_r.o ../../../../../src/ta_abstract/tables/table_r.c + +../../../../../temp/csd/table_s.o: ../../../../../src/ta_abstract/tables/table_s.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_s.o ../../../../../src/ta_abstract/tables/table_s.c + +../../../../../temp/csd/table_t.o: ../../../../../src/ta_abstract/tables/table_t.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_t.o ../../../../../src/ta_abstract/tables/table_t.c + +../../../../../temp/csd/table_u.o: ../../../../../src/ta_abstract/tables/table_u.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_u.o ../../../../../src/ta_abstract/tables/table_u.c + +../../../../../temp/csd/table_v.o: ../../../../../src/ta_abstract/tables/table_v.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_v.o ../../../../../src/ta_abstract/tables/table_v.c + +../../../../../temp/csd/table_w.o: ../../../../../src/ta_abstract/tables/table_w.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_w.o ../../../../../src/ta_abstract/tables/table_w.c + +../../../../../temp/csd/table_x.o: ../../../../../src/ta_abstract/tables/table_x.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_x.o ../../../../../src/ta_abstract/tables/table_x.c + +../../../../../temp/csd/table_y.o: ../../../../../src/ta_abstract/tables/table_y.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_y.o ../../../../../src/ta_abstract/tables/table_y.c + +../../../../../temp/csd/table_z.o: ../../../../../src/ta_abstract/tables/table_z.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_z.o ../../../../../src/ta_abstract/tables/table_z.c + +../../../../../temp/csd/ta_utility.o: ../../../../../src/ta_func/ta_utility.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_utility.o ../../../../../src/ta_func/ta_utility.c + +../../../../../temp/csd/ta_ACOS.o: ../../../../../src/ta_func/ta_ACOS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_ACOS.o ../../../../../src/ta_func/ta_ACOS.c + +../../../../../temp/csd/ta_AD.o: ../../../../../src/ta_func/ta_AD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_AD.o ../../../../../src/ta_func/ta_AD.c + +../../../../../temp/csd/ta_ADD.o: ../../../../../src/ta_func/ta_ADD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_ADD.o ../../../../../src/ta_func/ta_ADD.c + +../../../../../temp/csd/ta_ADOSC.o: ../../../../../src/ta_func/ta_ADOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_ADOSC.o ../../../../../src/ta_func/ta_ADOSC.c + +../../../../../temp/csd/ta_ADX.o: ../../../../../src/ta_func/ta_ADX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_ADX.o ../../../../../src/ta_func/ta_ADX.c + +../../../../../temp/csd/ta_ADXR.o: ../../../../../src/ta_func/ta_ADXR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_ADXR.o ../../../../../src/ta_func/ta_ADXR.c + +../../../../../temp/csd/ta_APO.o: ../../../../../src/ta_func/ta_APO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_APO.o ../../../../../src/ta_func/ta_APO.c + +../../../../../temp/csd/ta_AROON.o: ../../../../../src/ta_func/ta_AROON.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_AROON.o ../../../../../src/ta_func/ta_AROON.c + +../../../../../temp/csd/ta_AROONOSC.o: ../../../../../src/ta_func/ta_AROONOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_AROONOSC.o ../../../../../src/ta_func/ta_AROONOSC.c + +../../../../../temp/csd/ta_ASIN.o: ../../../../../src/ta_func/ta_ASIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_ASIN.o ../../../../../src/ta_func/ta_ASIN.c + +../../../../../temp/csd/ta_ATAN.o: ../../../../../src/ta_func/ta_ATAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_ATAN.o ../../../../../src/ta_func/ta_ATAN.c + +../../../../../temp/csd/ta_ATR.o: ../../../../../src/ta_func/ta_ATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_ATR.o ../../../../../src/ta_func/ta_ATR.c + +../../../../../temp/csd/ta_AVGPRICE.o: ../../../../../src/ta_func/ta_AVGPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_AVGPRICE.o ../../../../../src/ta_func/ta_AVGPRICE.c + +../../../../../temp/csd/ta_BBANDS.o: ../../../../../src/ta_func/ta_BBANDS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_BBANDS.o ../../../../../src/ta_func/ta_BBANDS.c + +../../../../../temp/csd/ta_BETA.o: ../../../../../src/ta_func/ta_BETA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_BETA.o ../../../../../src/ta_func/ta_BETA.c + +../../../../../temp/csd/ta_BOP.o: ../../../../../src/ta_func/ta_BOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_BOP.o ../../../../../src/ta_func/ta_BOP.c + +../../../../../temp/csd/ta_CCI.o: ../../../../../src/ta_func/ta_CCI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CCI.o ../../../../../src/ta_func/ta_CCI.c + +../../../../../temp/csd/ta_CDL2CROWS.o: ../../../../../src/ta_func/ta_CDL2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDL2CROWS.o ../../../../../src/ta_func/ta_CDL2CROWS.c + +../../../../../temp/csd/ta_CDL3BLACKCROWS.o: ../../../../../src/ta_func/ta_CDL3BLACKCROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDL3BLACKCROWS.o ../../../../../src/ta_func/ta_CDL3BLACKCROWS.c + +../../../../../temp/csd/ta_CDL3INSIDE.o: ../../../../../src/ta_func/ta_CDL3INSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDL3INSIDE.o ../../../../../src/ta_func/ta_CDL3INSIDE.c + +../../../../../temp/csd/ta_CDL3LINESTRIKE.o: ../../../../../src/ta_func/ta_CDL3LINESTRIKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDL3LINESTRIKE.o ../../../../../src/ta_func/ta_CDL3LINESTRIKE.c + +../../../../../temp/csd/ta_CDL3OUTSIDE.o: ../../../../../src/ta_func/ta_CDL3OUTSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDL3OUTSIDE.o ../../../../../src/ta_func/ta_CDL3OUTSIDE.c + +../../../../../temp/csd/ta_CDL3STARSINSOUTH.o: ../../../../../src/ta_func/ta_CDL3STARSINSOUTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDL3STARSINSOUTH.o ../../../../../src/ta_func/ta_CDL3STARSINSOUTH.c + +../../../../../temp/csd/ta_CDL3WHITESOLDIERS.o: ../../../../../src/ta_func/ta_CDL3WHITESOLDIERS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDL3WHITESOLDIERS.o ../../../../../src/ta_func/ta_CDL3WHITESOLDIERS.c + +../../../../../temp/csd/ta_CDLABANDONEDBABY.o: ../../../../../src/ta_func/ta_CDLABANDONEDBABY.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLABANDONEDBABY.o ../../../../../src/ta_func/ta_CDLABANDONEDBABY.c + +../../../../../temp/csd/ta_CDLADVANCEBLOCK.o: ../../../../../src/ta_func/ta_CDLADVANCEBLOCK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLADVANCEBLOCK.o ../../../../../src/ta_func/ta_CDLADVANCEBLOCK.c + +../../../../../temp/csd/ta_CDLBELTHOLD.o: ../../../../../src/ta_func/ta_CDLBELTHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLBELTHOLD.o ../../../../../src/ta_func/ta_CDLBELTHOLD.c + +../../../../../temp/csd/ta_CDLBREAKAWAY.o: ../../../../../src/ta_func/ta_CDLBREAKAWAY.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLBREAKAWAY.o ../../../../../src/ta_func/ta_CDLBREAKAWAY.c + +../../../../../temp/csd/ta_CDLCLOSINGMARUBOZU.o: ../../../../../src/ta_func/ta_CDLCLOSINGMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLCLOSINGMARUBOZU.o ../../../../../src/ta_func/ta_CDLCLOSINGMARUBOZU.c + +../../../../../temp/csd/ta_CDLCONCEALBABYSWALL.o: ../../../../../src/ta_func/ta_CDLCONCEALBABYSWALL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLCONCEALBABYSWALL.o ../../../../../src/ta_func/ta_CDLCONCEALBABYSWALL.c + +../../../../../temp/csd/ta_CDLCOUNTERATTACK.o: ../../../../../src/ta_func/ta_CDLCOUNTERATTACK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLCOUNTERATTACK.o ../../../../../src/ta_func/ta_CDLCOUNTERATTACK.c + +../../../../../temp/csd/ta_CDLDARKCLOUDCOVER.o: ../../../../../src/ta_func/ta_CDLDARKCLOUDCOVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLDARKCLOUDCOVER.o ../../../../../src/ta_func/ta_CDLDARKCLOUDCOVER.c + +../../../../../temp/csd/ta_CDLDOJI.o: ../../../../../src/ta_func/ta_CDLDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLDOJI.o ../../../../../src/ta_func/ta_CDLDOJI.c + +../../../../../temp/csd/ta_CDLDOJISTAR.o: ../../../../../src/ta_func/ta_CDLDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLDOJISTAR.o ../../../../../src/ta_func/ta_CDLDOJISTAR.c + +../../../../../temp/csd/ta_CDLDRAGONFLYDOJI.o: ../../../../../src/ta_func/ta_CDLDRAGONFLYDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLDRAGONFLYDOJI.o ../../../../../src/ta_func/ta_CDLDRAGONFLYDOJI.c + +../../../../../temp/csd/ta_CDLENGULFING.o: ../../../../../src/ta_func/ta_CDLENGULFING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLENGULFING.o ../../../../../src/ta_func/ta_CDLENGULFING.c + +../../../../../temp/csd/ta_CDLEVENINGDOJISTAR.o: ../../../../../src/ta_func/ta_CDLEVENINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLEVENINGDOJISTAR.o ../../../../../src/ta_func/ta_CDLEVENINGDOJISTAR.c + +../../../../../temp/csd/ta_CDLEVENINGSTAR.o: ../../../../../src/ta_func/ta_CDLEVENINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLEVENINGSTAR.o ../../../../../src/ta_func/ta_CDLEVENINGSTAR.c + +../../../../../temp/csd/ta_CDLGAPSIDESIDEWHITE.o: ../../../../../src/ta_func/ta_CDLGAPSIDESIDEWHITE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLGAPSIDESIDEWHITE.o ../../../../../src/ta_func/ta_CDLGAPSIDESIDEWHITE.c + +../../../../../temp/csd/ta_CDLGRAVESTONEDOJI.o: ../../../../../src/ta_func/ta_CDLGRAVESTONEDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLGRAVESTONEDOJI.o ../../../../../src/ta_func/ta_CDLGRAVESTONEDOJI.c + +../../../../../temp/csd/ta_CDLHAMMER.o: ../../../../../src/ta_func/ta_CDLHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLHAMMER.o ../../../../../src/ta_func/ta_CDLHAMMER.c + +../../../../../temp/csd/ta_CDLHANGINGMAN.o: ../../../../../src/ta_func/ta_CDLHANGINGMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLHANGINGMAN.o ../../../../../src/ta_func/ta_CDLHANGINGMAN.c + +../../../../../temp/csd/ta_CDLHARAMI.o: ../../../../../src/ta_func/ta_CDLHARAMI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLHARAMI.o ../../../../../src/ta_func/ta_CDLHARAMI.c + +../../../../../temp/csd/ta_CDLHARAMICROSS.o: ../../../../../src/ta_func/ta_CDLHARAMICROSS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLHARAMICROSS.o ../../../../../src/ta_func/ta_CDLHARAMICROSS.c + +../../../../../temp/csd/ta_CDLHIGHWAVE.o: ../../../../../src/ta_func/ta_CDLHIGHWAVE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLHIGHWAVE.o ../../../../../src/ta_func/ta_CDLHIGHWAVE.c + +../../../../../temp/csd/ta_CDLHIKKAKE.o: ../../../../../src/ta_func/ta_CDLHIKKAKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLHIKKAKE.o ../../../../../src/ta_func/ta_CDLHIKKAKE.c + +../../../../../temp/csd/ta_CDLHIKKAKEMOD.o: ../../../../../src/ta_func/ta_CDLHIKKAKEMOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLHIKKAKEMOD.o ../../../../../src/ta_func/ta_CDLHIKKAKEMOD.c + +../../../../../temp/csd/ta_CDLHOMINGPIGEON.o: ../../../../../src/ta_func/ta_CDLHOMINGPIGEON.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLHOMINGPIGEON.o ../../../../../src/ta_func/ta_CDLHOMINGPIGEON.c + +../../../../../temp/csd/ta_CDLIDENTICAL3CROWS.o: ../../../../../src/ta_func/ta_CDLIDENTICAL3CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLIDENTICAL3CROWS.o ../../../../../src/ta_func/ta_CDLIDENTICAL3CROWS.c + +../../../../../temp/csd/ta_CDLINNECK.o: ../../../../../src/ta_func/ta_CDLINNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLINNECK.o ../../../../../src/ta_func/ta_CDLINNECK.c + +../../../../../temp/csd/ta_CDLINVERTEDHAMMER.o: ../../../../../src/ta_func/ta_CDLINVERTEDHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLINVERTEDHAMMER.o ../../../../../src/ta_func/ta_CDLINVERTEDHAMMER.c + +../../../../../temp/csd/ta_CDLKICKING.o: ../../../../../src/ta_func/ta_CDLKICKING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLKICKING.o ../../../../../src/ta_func/ta_CDLKICKING.c + +../../../../../temp/csd/ta_CDLKICKINGBYLENGTH.o: ../../../../../src/ta_func/ta_CDLKICKINGBYLENGTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLKICKINGBYLENGTH.o ../../../../../src/ta_func/ta_CDLKICKINGBYLENGTH.c + +../../../../../temp/csd/ta_CDLLADDERBOTTOM.o: ../../../../../src/ta_func/ta_CDLLADDERBOTTOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLLADDERBOTTOM.o ../../../../../src/ta_func/ta_CDLLADDERBOTTOM.c + +../../../../../temp/csd/ta_CDLLONGLEGGEDDOJI.o: ../../../../../src/ta_func/ta_CDLLONGLEGGEDDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLLONGLEGGEDDOJI.o ../../../../../src/ta_func/ta_CDLLONGLEGGEDDOJI.c + +../../../../../temp/csd/ta_CDLLONGLINE.o: ../../../../../src/ta_func/ta_CDLLONGLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLLONGLINE.o ../../../../../src/ta_func/ta_CDLLONGLINE.c + +../../../../../temp/csd/ta_CDLMARUBOZU.o: ../../../../../src/ta_func/ta_CDLMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLMARUBOZU.o ../../../../../src/ta_func/ta_CDLMARUBOZU.c + +../../../../../temp/csd/ta_CDLMATCHINGLOW.o: ../../../../../src/ta_func/ta_CDLMATCHINGLOW.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLMATCHINGLOW.o ../../../../../src/ta_func/ta_CDLMATCHINGLOW.c + +../../../../../temp/csd/ta_CDLMATHOLD.o: ../../../../../src/ta_func/ta_CDLMATHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLMATHOLD.o ../../../../../src/ta_func/ta_CDLMATHOLD.c + +../../../../../temp/csd/ta_CDLMORNINGDOJISTAR.o: ../../../../../src/ta_func/ta_CDLMORNINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLMORNINGDOJISTAR.o ../../../../../src/ta_func/ta_CDLMORNINGDOJISTAR.c + +../../../../../temp/csd/ta_CDLMORNINGSTAR.o: ../../../../../src/ta_func/ta_CDLMORNINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLMORNINGSTAR.o ../../../../../src/ta_func/ta_CDLMORNINGSTAR.c + +../../../../../temp/csd/ta_CDLONNECK.o: ../../../../../src/ta_func/ta_CDLONNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLONNECK.o ../../../../../src/ta_func/ta_CDLONNECK.c + +../../../../../temp/csd/ta_CDLPIERCING.o: ../../../../../src/ta_func/ta_CDLPIERCING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLPIERCING.o ../../../../../src/ta_func/ta_CDLPIERCING.c + +../../../../../temp/csd/ta_CDLRICKSHAWMAN.o: ../../../../../src/ta_func/ta_CDLRICKSHAWMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLRICKSHAWMAN.o ../../../../../src/ta_func/ta_CDLRICKSHAWMAN.c + +../../../../../temp/csd/ta_CDLRISEFALL3METHODS.o: ../../../../../src/ta_func/ta_CDLRISEFALL3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLRISEFALL3METHODS.o ../../../../../src/ta_func/ta_CDLRISEFALL3METHODS.c + +../../../../../temp/csd/ta_CDLSEPARATINGLINES.o: ../../../../../src/ta_func/ta_CDLSEPARATINGLINES.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLSEPARATINGLINES.o ../../../../../src/ta_func/ta_CDLSEPARATINGLINES.c + +../../../../../temp/csd/ta_CDLSHOOTINGSTAR.o: ../../../../../src/ta_func/ta_CDLSHOOTINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLSHOOTINGSTAR.o ../../../../../src/ta_func/ta_CDLSHOOTINGSTAR.c + +../../../../../temp/csd/ta_CDLSHORTLINE.o: ../../../../../src/ta_func/ta_CDLSHORTLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLSHORTLINE.o ../../../../../src/ta_func/ta_CDLSHORTLINE.c + +../../../../../temp/csd/ta_CDLSPINNINGTOP.o: ../../../../../src/ta_func/ta_CDLSPINNINGTOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLSPINNINGTOP.o ../../../../../src/ta_func/ta_CDLSPINNINGTOP.c + +../../../../../temp/csd/ta_CDLSTALLEDPATTERN.o: ../../../../../src/ta_func/ta_CDLSTALLEDPATTERN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLSTALLEDPATTERN.o ../../../../../src/ta_func/ta_CDLSTALLEDPATTERN.c + +../../../../../temp/csd/ta_CDLSTICKSANDWICH.o: ../../../../../src/ta_func/ta_CDLSTICKSANDWICH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLSTICKSANDWICH.o ../../../../../src/ta_func/ta_CDLSTICKSANDWICH.c + +../../../../../temp/csd/ta_CDLTAKURI.o: ../../../../../src/ta_func/ta_CDLTAKURI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLTAKURI.o ../../../../../src/ta_func/ta_CDLTAKURI.c + +../../../../../temp/csd/ta_CDLTASUKIGAP.o: ../../../../../src/ta_func/ta_CDLTASUKIGAP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLTASUKIGAP.o ../../../../../src/ta_func/ta_CDLTASUKIGAP.c + +../../../../../temp/csd/ta_CDLTHRUSTING.o: ../../../../../src/ta_func/ta_CDLTHRUSTING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLTHRUSTING.o ../../../../../src/ta_func/ta_CDLTHRUSTING.c + +../../../../../temp/csd/ta_CDLTRISTAR.o: ../../../../../src/ta_func/ta_CDLTRISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLTRISTAR.o ../../../../../src/ta_func/ta_CDLTRISTAR.c + +../../../../../temp/csd/ta_CDLUNIQUE3RIVER.o: ../../../../../src/ta_func/ta_CDLUNIQUE3RIVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLUNIQUE3RIVER.o ../../../../../src/ta_func/ta_CDLUNIQUE3RIVER.c + +../../../../../temp/csd/ta_CDLUPSIDEGAP2CROWS.o: ../../../../../src/ta_func/ta_CDLUPSIDEGAP2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLUPSIDEGAP2CROWS.o ../../../../../src/ta_func/ta_CDLUPSIDEGAP2CROWS.c + +../../../../../temp/csd/ta_CDLXSIDEGAP3METHODS.o: ../../../../../src/ta_func/ta_CDLXSIDEGAP3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLXSIDEGAP3METHODS.o ../../../../../src/ta_func/ta_CDLXSIDEGAP3METHODS.c + +../../../../../temp/csd/ta_CEIL.o: ../../../../../src/ta_func/ta_CEIL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CEIL.o ../../../../../src/ta_func/ta_CEIL.c + +../../../../../temp/csd/ta_CMO.o: ../../../../../src/ta_func/ta_CMO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CMO.o ../../../../../src/ta_func/ta_CMO.c + +../../../../../temp/csd/ta_CORREL.o: ../../../../../src/ta_func/ta_CORREL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CORREL.o ../../../../../src/ta_func/ta_CORREL.c + +../../../../../temp/csd/ta_COS.o: ../../../../../src/ta_func/ta_COS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_COS.o ../../../../../src/ta_func/ta_COS.c + +../../../../../temp/csd/ta_COSH.o: ../../../../../src/ta_func/ta_COSH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_COSH.o ../../../../../src/ta_func/ta_COSH.c + +../../../../../temp/csd/ta_DEMA.o: ../../../../../src/ta_func/ta_DEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_DEMA.o ../../../../../src/ta_func/ta_DEMA.c + +../../../../../temp/csd/ta_DIV.o: ../../../../../src/ta_func/ta_DIV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_DIV.o ../../../../../src/ta_func/ta_DIV.c + +../../../../../temp/csd/ta_DX.o: ../../../../../src/ta_func/ta_DX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_DX.o ../../../../../src/ta_func/ta_DX.c + +../../../../../temp/csd/ta_EMA.o: ../../../../../src/ta_func/ta_EMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_EMA.o ../../../../../src/ta_func/ta_EMA.c + +../../../../../temp/csd/ta_EXP.o: ../../../../../src/ta_func/ta_EXP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_EXP.o ../../../../../src/ta_func/ta_EXP.c + +../../../../../temp/csd/ta_FLOOR.o: ../../../../../src/ta_func/ta_FLOOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_FLOOR.o ../../../../../src/ta_func/ta_FLOOR.c + +../../../../../temp/csd/ta_HT_DCPERIOD.o: ../../../../../src/ta_func/ta_HT_DCPERIOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_HT_DCPERIOD.o ../../../../../src/ta_func/ta_HT_DCPERIOD.c + +../../../../../temp/csd/ta_HT_DCPHASE.o: ../../../../../src/ta_func/ta_HT_DCPHASE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_HT_DCPHASE.o ../../../../../src/ta_func/ta_HT_DCPHASE.c + +../../../../../temp/csd/ta_HT_PHASOR.o: ../../../../../src/ta_func/ta_HT_PHASOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_HT_PHASOR.o ../../../../../src/ta_func/ta_HT_PHASOR.c + +../../../../../temp/csd/ta_HT_SINE.o: ../../../../../src/ta_func/ta_HT_SINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_HT_SINE.o ../../../../../src/ta_func/ta_HT_SINE.c + +../../../../../temp/csd/ta_HT_TRENDLINE.o: ../../../../../src/ta_func/ta_HT_TRENDLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_HT_TRENDLINE.o ../../../../../src/ta_func/ta_HT_TRENDLINE.c + +../../../../../temp/csd/ta_HT_TRENDMODE.o: ../../../../../src/ta_func/ta_HT_TRENDMODE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_HT_TRENDMODE.o ../../../../../src/ta_func/ta_HT_TRENDMODE.c + +../../../../../temp/csd/ta_KAMA.o: ../../../../../src/ta_func/ta_KAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_KAMA.o ../../../../../src/ta_func/ta_KAMA.c + +../../../../../temp/csd/ta_LINEARREG.o: ../../../../../src/ta_func/ta_LINEARREG.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_LINEARREG.o ../../../../../src/ta_func/ta_LINEARREG.c + +../../../../../temp/csd/ta_LINEARREG_ANGLE.o: ../../../../../src/ta_func/ta_LINEARREG_ANGLE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_LINEARREG_ANGLE.o ../../../../../src/ta_func/ta_LINEARREG_ANGLE.c + +../../../../../temp/csd/ta_LINEARREG_INTERCEPT.o: ../../../../../src/ta_func/ta_LINEARREG_INTERCEPT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_LINEARREG_INTERCEPT.o ../../../../../src/ta_func/ta_LINEARREG_INTERCEPT.c + +../../../../../temp/csd/ta_LINEARREG_SLOPE.o: ../../../../../src/ta_func/ta_LINEARREG_SLOPE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_LINEARREG_SLOPE.o ../../../../../src/ta_func/ta_LINEARREG_SLOPE.c + +../../../../../temp/csd/ta_LN.o: ../../../../../src/ta_func/ta_LN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_LN.o ../../../../../src/ta_func/ta_LN.c + +../../../../../temp/csd/ta_LOG10.o: ../../../../../src/ta_func/ta_LOG10.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_LOG10.o ../../../../../src/ta_func/ta_LOG10.c + +../../../../../temp/csd/ta_MA.o: ../../../../../src/ta_func/ta_MA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_MA.o ../../../../../src/ta_func/ta_MA.c + +../../../../../temp/csd/ta_MACD.o: ../../../../../src/ta_func/ta_MACD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_MACD.o ../../../../../src/ta_func/ta_MACD.c + +../../../../../temp/csd/ta_MACDEXT.o: ../../../../../src/ta_func/ta_MACDEXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_MACDEXT.o ../../../../../src/ta_func/ta_MACDEXT.c + +../../../../../temp/csd/ta_MACDFIX.o: ../../../../../src/ta_func/ta_MACDFIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_MACDFIX.o ../../../../../src/ta_func/ta_MACDFIX.c + +../../../../../temp/csd/ta_MAMA.o: ../../../../../src/ta_func/ta_MAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_MAMA.o ../../../../../src/ta_func/ta_MAMA.c + +../../../../../temp/csd/ta_MAVP.o: ../../../../../src/ta_func/ta_MAVP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_MAVP.o ../../../../../src/ta_func/ta_MAVP.c + +../../../../../temp/csd/ta_MAX.o: ../../../../../src/ta_func/ta_MAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_MAX.o ../../../../../src/ta_func/ta_MAX.c + +../../../../../temp/csd/ta_MAXINDEX.o: ../../../../../src/ta_func/ta_MAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_MAXINDEX.o ../../../../../src/ta_func/ta_MAXINDEX.c + +../../../../../temp/csd/ta_MEDPRICE.o: ../../../../../src/ta_func/ta_MEDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_MEDPRICE.o ../../../../../src/ta_func/ta_MEDPRICE.c + +../../../../../temp/csd/ta_MFI.o: ../../../../../src/ta_func/ta_MFI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_MFI.o ../../../../../src/ta_func/ta_MFI.c + +../../../../../temp/csd/ta_MIDPOINT.o: ../../../../../src/ta_func/ta_MIDPOINT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_MIDPOINT.o ../../../../../src/ta_func/ta_MIDPOINT.c + +../../../../../temp/csd/ta_MIDPRICE.o: ../../../../../src/ta_func/ta_MIDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_MIDPRICE.o ../../../../../src/ta_func/ta_MIDPRICE.c + +../../../../../temp/csd/ta_MIN.o: ../../../../../src/ta_func/ta_MIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_MIN.o ../../../../../src/ta_func/ta_MIN.c + +../../../../../temp/csd/ta_MININDEX.o: ../../../../../src/ta_func/ta_MININDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_MININDEX.o ../../../../../src/ta_func/ta_MININDEX.c + +../../../../../temp/csd/ta_MINMAX.o: ../../../../../src/ta_func/ta_MINMAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_MINMAX.o ../../../../../src/ta_func/ta_MINMAX.c + +../../../../../temp/csd/ta_MINMAXINDEX.o: ../../../../../src/ta_func/ta_MINMAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_MINMAXINDEX.o ../../../../../src/ta_func/ta_MINMAXINDEX.c + +../../../../../temp/csd/ta_MINUS_DI.o: ../../../../../src/ta_func/ta_MINUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_MINUS_DI.o ../../../../../src/ta_func/ta_MINUS_DI.c + +../../../../../temp/csd/ta_MINUS_DM.o: ../../../../../src/ta_func/ta_MINUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_MINUS_DM.o ../../../../../src/ta_func/ta_MINUS_DM.c + +../../../../../temp/csd/ta_MOM.o: ../../../../../src/ta_func/ta_MOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_MOM.o ../../../../../src/ta_func/ta_MOM.c + +../../../../../temp/csd/ta_MULT.o: ../../../../../src/ta_func/ta_MULT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_MULT.o ../../../../../src/ta_func/ta_MULT.c + +../../../../../temp/csd/ta_NATR.o: ../../../../../src/ta_func/ta_NATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_NATR.o ../../../../../src/ta_func/ta_NATR.c + +../../../../../temp/csd/ta_OBV.o: ../../../../../src/ta_func/ta_OBV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_OBV.o ../../../../../src/ta_func/ta_OBV.c + +../../../../../temp/csd/ta_PLUS_DI.o: ../../../../../src/ta_func/ta_PLUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_PLUS_DI.o ../../../../../src/ta_func/ta_PLUS_DI.c + +../../../../../temp/csd/ta_PLUS_DM.o: ../../../../../src/ta_func/ta_PLUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_PLUS_DM.o ../../../../../src/ta_func/ta_PLUS_DM.c + +../../../../../temp/csd/ta_PPO.o: ../../../../../src/ta_func/ta_PPO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_PPO.o ../../../../../src/ta_func/ta_PPO.c + +../../../../../temp/csd/ta_ROC.o: ../../../../../src/ta_func/ta_ROC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_ROC.o ../../../../../src/ta_func/ta_ROC.c + +../../../../../temp/csd/ta_ROCP.o: ../../../../../src/ta_func/ta_ROCP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_ROCP.o ../../../../../src/ta_func/ta_ROCP.c + +../../../../../temp/csd/ta_ROCR.o: ../../../../../src/ta_func/ta_ROCR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_ROCR.o ../../../../../src/ta_func/ta_ROCR.c + +../../../../../temp/csd/ta_ROCR100.o: ../../../../../src/ta_func/ta_ROCR100.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_ROCR100.o ../../../../../src/ta_func/ta_ROCR100.c + +../../../../../temp/csd/ta_RSI.o: ../../../../../src/ta_func/ta_RSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_RSI.o ../../../../../src/ta_func/ta_RSI.c + +../../../../../temp/csd/ta_SAR.o: ../../../../../src/ta_func/ta_SAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_SAR.o ../../../../../src/ta_func/ta_SAR.c + +../../../../../temp/csd/ta_SAREXT.o: ../../../../../src/ta_func/ta_SAREXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_SAREXT.o ../../../../../src/ta_func/ta_SAREXT.c + +../../../../../temp/csd/ta_SIN.o: ../../../../../src/ta_func/ta_SIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_SIN.o ../../../../../src/ta_func/ta_SIN.c + +../../../../../temp/csd/ta_SINH.o: ../../../../../src/ta_func/ta_SINH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_SINH.o ../../../../../src/ta_func/ta_SINH.c + +../../../../../temp/csd/ta_SMA.o: ../../../../../src/ta_func/ta_SMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_SMA.o ../../../../../src/ta_func/ta_SMA.c + +../../../../../temp/csd/ta_SQRT.o: ../../../../../src/ta_func/ta_SQRT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_SQRT.o ../../../../../src/ta_func/ta_SQRT.c + +../../../../../temp/csd/ta_STDDEV.o: ../../../../../src/ta_func/ta_STDDEV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_STDDEV.o ../../../../../src/ta_func/ta_STDDEV.c + +../../../../../temp/csd/ta_STOCH.o: ../../../../../src/ta_func/ta_STOCH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_STOCH.o ../../../../../src/ta_func/ta_STOCH.c + +../../../../../temp/csd/ta_STOCHF.o: ../../../../../src/ta_func/ta_STOCHF.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_STOCHF.o ../../../../../src/ta_func/ta_STOCHF.c + +../../../../../temp/csd/ta_STOCHRSI.o: ../../../../../src/ta_func/ta_STOCHRSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_STOCHRSI.o ../../../../../src/ta_func/ta_STOCHRSI.c + +../../../../../temp/csd/ta_SUB.o: ../../../../../src/ta_func/ta_SUB.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_SUB.o ../../../../../src/ta_func/ta_SUB.c + +../../../../../temp/csd/ta_SUM.o: ../../../../../src/ta_func/ta_SUM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_SUM.o ../../../../../src/ta_func/ta_SUM.c + +../../../../../temp/csd/ta_T3.o: ../../../../../src/ta_func/ta_T3.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_T3.o ../../../../../src/ta_func/ta_T3.c + +../../../../../temp/csd/ta_TAN.o: ../../../../../src/ta_func/ta_TAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_TAN.o ../../../../../src/ta_func/ta_TAN.c + +../../../../../temp/csd/ta_TANH.o: ../../../../../src/ta_func/ta_TANH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_TANH.o ../../../../../src/ta_func/ta_TANH.c + +../../../../../temp/csd/ta_TEMA.o: ../../../../../src/ta_func/ta_TEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_TEMA.o ../../../../../src/ta_func/ta_TEMA.c + +../../../../../temp/csd/ta_TRANGE.o: ../../../../../src/ta_func/ta_TRANGE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_TRANGE.o ../../../../../src/ta_func/ta_TRANGE.c + +../../../../../temp/csd/ta_TRIMA.o: ../../../../../src/ta_func/ta_TRIMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_TRIMA.o ../../../../../src/ta_func/ta_TRIMA.c + +../../../../../temp/csd/ta_TRIX.o: ../../../../../src/ta_func/ta_TRIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_TRIX.o ../../../../../src/ta_func/ta_TRIX.c + +../../../../../temp/csd/ta_TSF.o: ../../../../../src/ta_func/ta_TSF.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_TSF.o ../../../../../src/ta_func/ta_TSF.c + +../../../../../temp/csd/ta_TYPPRICE.o: ../../../../../src/ta_func/ta_TYPPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_TYPPRICE.o ../../../../../src/ta_func/ta_TYPPRICE.c + +../../../../../temp/csd/ta_ULTOSC.o: ../../../../../src/ta_func/ta_ULTOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_ULTOSC.o ../../../../../src/ta_func/ta_ULTOSC.c + +../../../../../temp/csd/ta_VAR.o: ../../../../../src/ta_func/ta_VAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_VAR.o ../../../../../src/ta_func/ta_VAR.c + +../../../../../temp/csd/ta_WCLPRICE.o: ../../../../../src/ta_func/ta_WCLPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_WCLPRICE.o ../../../../../src/ta_func/ta_WCLPRICE.c + +../../../../../temp/csd/ta_WILLR.o: ../../../../../src/ta_func/ta_WILLR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_WILLR.o ../../../../../src/ta_func/ta_WILLR.c + +../../../../../temp/csd/ta_WMA.o: ../../../../../src/ta_func/ta_WMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_WMA.o ../../../../../src/ta_func/ta_WMA.c + diff --git a/make/csd/freebsd/g++/ta_regtest/Makefile b/make/csd/freebsd/g++/ta_regtest/Makefile new file mode 100644 index 000000000..c3d45acbc --- /dev/null +++ b/make/csd/freebsd/g++/ta_regtest/Makefile @@ -0,0 +1,205 @@ +############################################################################# +# Makefile for building ../../../../../bin/ta_regtest +# Generated by tmake; +# Project: ta_regtest/ta_regtest +# Template: app +############################################################################# + +####### Compiler, tools and options + +CC = gcc +CXX = g++ +CFLAGS = -pipe -Wall -W -g -DTA_DEBUG -D_DEBUG -DTA_SINGLE_THREAD +CXXFLAGS= -pipe -Wall -W -g -DTA_DEBUG -D_DEBUG -DTA_SINGLE_THREAD +INCPATH = -I../../../../../src/ta_common -I../../../../../src/tools/ta_regtest -I../../../../../src/ta_func -I../../../../../include -I/usr/local/include +LINK = g++ +LFLAGS = -L/usr/local/lib +LIBS = $(SUBLIBS) ../../../../../lib/libta_libc_csd.a +MOC = $(QTDIR)/bin/moc +UIC = $(QTDIR)/bin/uic + +TAR = tar -cf +GZIP = gzip -9f + +####### Apply additional overruling user flags, if any +CFLAGS += $(CUSERFLAGS) +CXXFLAGS += $(CUSERFLAGS) + +####### Files + +HEADERS = +SOURCES = ../../../../../src/tools/ta_regtest/ta_regtest.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_candlestick.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_1in_1out.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_1in_2out.c \ + ../../../../../src/tools/ta_regtest/test_internals.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_adx.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_bbands.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_ma.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_macd.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_minmax.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_mom.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_per_ema.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hl.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hlc.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hlcv.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_per_ohlc.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_po.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_rsi.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_sar.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_stddev.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_stoch.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_trange.c \ + ../../../../../src/tools/ta_regtest/test_util.c \ + ../../../../../src/tools/ta_regtest/test_data.c \ + ../../../../../src/tools/ta_regtest/test_abstract.c +OBJECTS = ../../../../../temp/csd/ta_regtest.o \ + ../../../../../temp/csd/test_candlestick.o \ + ../../../../../temp/csd/test_1in_1out.o \ + ../../../../../temp/csd/test_1in_2out.o \ + ../../../../../temp/csd/test_internals.o \ + ../../../../../temp/csd/test_adx.o \ + ../../../../../temp/csd/test_bbands.o \ + ../../../../../temp/csd/test_ma.o \ + ../../../../../temp/csd/test_macd.o \ + ../../../../../temp/csd/test_minmax.o \ + ../../../../../temp/csd/test_mom.o \ + ../../../../../temp/csd/test_per_ema.o \ + ../../../../../temp/csd/test_per_hl.o \ + ../../../../../temp/csd/test_per_hlc.o \ + ../../../../../temp/csd/test_per_hlcv.o \ + ../../../../../temp/csd/test_per_ohlc.o \ + ../../../../../temp/csd/test_po.o \ + ../../../../../temp/csd/test_rsi.o \ + ../../../../../temp/csd/test_sar.o \ + ../../../../../temp/csd/test_stddev.o \ + ../../../../../temp/csd/test_stoch.o \ + ../../../../../temp/csd/test_trange.o \ + ../../../../../temp/csd/test_util.o \ + ../../../../../temp/csd/test_data.o \ + ../../../../../temp/csd/test_abstract.o +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ../../../../../bin/ta_regtest +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .C .c + +.cpp.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cxx.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cc.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.C.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.c.o: + $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $< + +####### Build rules + + +all: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS) + +moc: $(SRCMOC) + +clean: + -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) + -rm -f *~ core + +####### Sub-libraries + + +###### Combined headers + + +####### Compile + +../../../../../temp/csd/ta_regtest.o: ../../../../../src/tools/ta_regtest/ta_regtest.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_regtest.o ../../../../../src/tools/ta_regtest/ta_regtest.c + +../../../../../temp/csd/test_candlestick.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_candlestick.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/test_candlestick.o ../../../../../src/tools/ta_regtest/ta_test_func/test_candlestick.c + +../../../../../temp/csd/test_1in_1out.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_1in_1out.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/test_1in_1out.o ../../../../../src/tools/ta_regtest/ta_test_func/test_1in_1out.c + +../../../../../temp/csd/test_1in_2out.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_1in_2out.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/test_1in_2out.o ../../../../../src/tools/ta_regtest/ta_test_func/test_1in_2out.c + +../../../../../temp/csd/test_internals.o: ../../../../../src/tools/ta_regtest/test_internals.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/test_internals.o ../../../../../src/tools/ta_regtest/test_internals.c + +../../../../../temp/csd/test_adx.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_adx.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/test_adx.o ../../../../../src/tools/ta_regtest/ta_test_func/test_adx.c + +../../../../../temp/csd/test_bbands.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_bbands.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/test_bbands.o ../../../../../src/tools/ta_regtest/ta_test_func/test_bbands.c + +../../../../../temp/csd/test_ma.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_ma.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/test_ma.o ../../../../../src/tools/ta_regtest/ta_test_func/test_ma.c + +../../../../../temp/csd/test_macd.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_macd.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/test_macd.o ../../../../../src/tools/ta_regtest/ta_test_func/test_macd.c + +../../../../../temp/csd/test_minmax.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_minmax.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/test_minmax.o ../../../../../src/tools/ta_regtest/ta_test_func/test_minmax.c + +../../../../../temp/csd/test_mom.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_mom.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/test_mom.o ../../../../../src/tools/ta_regtest/ta_test_func/test_mom.c + +../../../../../temp/csd/test_per_ema.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_per_ema.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/test_per_ema.o ../../../../../src/tools/ta_regtest/ta_test_func/test_per_ema.c + +../../../../../temp/csd/test_per_hl.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hl.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/test_per_hl.o ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hl.c + +../../../../../temp/csd/test_per_hlc.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hlc.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/test_per_hlc.o ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hlc.c + +../../../../../temp/csd/test_per_hlcv.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hlcv.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/test_per_hlcv.o ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hlcv.c + +../../../../../temp/csd/test_per_ohlc.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_per_ohlc.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/test_per_ohlc.o ../../../../../src/tools/ta_regtest/ta_test_func/test_per_ohlc.c + +../../../../../temp/csd/test_po.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_po.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/test_po.o ../../../../../src/tools/ta_regtest/ta_test_func/test_po.c + +../../../../../temp/csd/test_rsi.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_rsi.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/test_rsi.o ../../../../../src/tools/ta_regtest/ta_test_func/test_rsi.c + +../../../../../temp/csd/test_sar.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_sar.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/test_sar.o ../../../../../src/tools/ta_regtest/ta_test_func/test_sar.c + +../../../../../temp/csd/test_stddev.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_stddev.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/test_stddev.o ../../../../../src/tools/ta_regtest/ta_test_func/test_stddev.c + +../../../../../temp/csd/test_stoch.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_stoch.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/test_stoch.o ../../../../../src/tools/ta_regtest/ta_test_func/test_stoch.c + +../../../../../temp/csd/test_trange.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_trange.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/test_trange.o ../../../../../src/tools/ta_regtest/ta_test_func/test_trange.c + +../../../../../temp/csd/test_util.o: ../../../../../src/tools/ta_regtest/test_util.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/test_util.o ../../../../../src/tools/ta_regtest/test_util.c + +../../../../../temp/csd/test_data.o: ../../../../../src/tools/ta_regtest/test_data.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/test_data.o ../../../../../src/tools/ta_regtest/test_data.c + +../../../../../temp/csd/test_abstract.o: ../../../../../src/tools/ta_regtest/test_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/test_abstract.o ../../../../../src/tools/ta_regtest/test_abstract.c + diff --git a/make/csd/linux/g++/Makefile b/make/csd/linux/g++/Makefile new file mode 100644 index 000000000..5e7342c2d --- /dev/null +++ b/make/csd/linux/g++/Makefile @@ -0,0 +1,36 @@ +############################################################################# +# Makefile for building targets in sub directories. +# Generated by tmake; +# Project: rootmake +# Template: subdirs +############################################################################# + +MAKEFILE= Makefile +TMAKE = tmake + +SUBDIRS = ta_common \ + ta_func \ + ta_abstract \ + ta_libc \ + gen_code \ + ta_regtest + +all: $(SUBDIRS) + +$(SUBDIRS): FORCE + cd $@; $(MAKE) + +tmake: ../csd/linux/g++/Makefile + +../csd/linux/g++/Makefile: rootmake.pro + tmake rootmake.pro -o ../csd/linux/g++/Makefile + +tmake_all: + for i in $(SUBDIRS); do ( if [ -d $$i ]; then cd $$i ; $(MAKE) -f $(MAKEFILE) tmake_all || true; fi; ) ; done + +#### $text = "\t" . 'for i in $(SUBDIRS); do ( if [ -d $$i ]; then cd $$i ; pro=`basename $$i`.pro ; $(TMAKE) $$pro -o $(MAKEFILE); grep "TEMPLATE.*subdirs" $$pro 2>/dev/null >/dev/null && $(MAKE) -f $(MAKEFILE) tmake_all || true; fi; ) ; done'; + +clean release debug: + for i in $(SUBDIRS); do ( if [ -d $$i ]; then cd $$i ; $(MAKE) $@; fi; ) ; done + +FORCE: diff --git a/make/csd/linux/g++/gen_code/Makefile b/make/csd/linux/g++/gen_code/Makefile new file mode 100644 index 000000000..a2637e4cd --- /dev/null +++ b/make/csd/linux/g++/gen_code/Makefile @@ -0,0 +1,231 @@ +############################################################################# +# Makefile for building ../../../../../bin/gen_code +# Generated by tmake; +# Project: gen_code/gen_code +# Template: app +############################################################################# + +####### Compiler, tools and options + +CC = gcc +CXX = g++ +CFLAGS = -pipe -fPIC -Wall -W -g -DTA_GEN_CODE -DTA_DEBUG -D_DEBUG -DTA_SINGLE_THREAD +CXXFLAGS= -pipe -fPIC -Wall -W -g -DTA_GEN_CODE -DTA_DEBUG -D_DEBUG -DTA_SINGLE_THREAD +INCPATH = -I../../../../../include -I../../../../../src/ta_common -I../../../../../src/ta_abstract -I../../../../../src/ta_abstract/tables -I../../../../../src/ta_abstract/frames +LINK = g++ +LFLAGS = +LIBS = $(SUBLIBS) ../../../../../lib/libta_common_csd.a -ldl +MOC = $(QTDIR)/bin/moc +UIC = $(QTDIR)/bin/uic + +TAR = tar -cf +GZIP = gzip -9f + +####### Support for 64-bit systems +ifeq ($(shell uname -m), x86_64) + CFLAGS += -march=x86-64 -m64 -D__64BIT__ + CXXFLAGS += -march=x86-64 -m64 -D__64BIT__ +endif + +####### Apply additional overruling user flags, if any +CFLAGS += $(CUSERFLAGS) +CXXFLAGS += $(CUSERFLAGS) + +####### Files + +HEADERS = +SOURCES = ../../../../../src/tools/gen_code/gen_code.c \ + ../../../../../src/ta_abstract/ta_abstract.c \ + ../../../../../src/ta_abstract/ta_def_ui.c \ + ../../../../../src/ta_abstract/tables/table_a.c \ + ../../../../../src/ta_abstract/tables/table_b.c \ + ../../../../../src/ta_abstract/tables/table_c.c \ + ../../../../../src/ta_abstract/tables/table_d.c \ + ../../../../../src/ta_abstract/tables/table_e.c \ + ../../../../../src/ta_abstract/tables/table_f.c \ + ../../../../../src/ta_abstract/tables/table_g.c \ + ../../../../../src/ta_abstract/tables/table_h.c \ + ../../../../../src/ta_abstract/tables/table_i.c \ + ../../../../../src/ta_abstract/tables/table_j.c \ + ../../../../../src/ta_abstract/tables/table_k.c \ + ../../../../../src/ta_abstract/tables/table_l.c \ + ../../../../../src/ta_abstract/tables/table_m.c \ + ../../../../../src/ta_abstract/tables/table_n.c \ + ../../../../../src/ta_abstract/tables/table_o.c \ + ../../../../../src/ta_abstract/tables/table_p.c \ + ../../../../../src/ta_abstract/tables/table_q.c \ + ../../../../../src/ta_abstract/tables/table_r.c \ + ../../../../../src/ta_abstract/tables/table_s.c \ + ../../../../../src/ta_abstract/tables/table_t.c \ + ../../../../../src/ta_abstract/tables/table_u.c \ + ../../../../../src/ta_abstract/tables/table_v.c \ + ../../../../../src/ta_abstract/tables/table_w.c \ + ../../../../../src/ta_abstract/tables/table_x.c \ + ../../../../../src/ta_abstract/tables/table_y.c \ + ../../../../../src/ta_abstract/tables/table_z.c +OBJECTS = ../../../../../temp/csd/gen_code/gen_code.o \ + ../../../../../temp/csd/gen_code/ta_abstract.o \ + ../../../../../temp/csd/gen_code/ta_def_ui.o \ + ../../../../../temp/csd/gen_code/table_a.o \ + ../../../../../temp/csd/gen_code/table_b.o \ + ../../../../../temp/csd/gen_code/table_c.o \ + ../../../../../temp/csd/gen_code/table_d.o \ + ../../../../../temp/csd/gen_code/table_e.o \ + ../../../../../temp/csd/gen_code/table_f.o \ + ../../../../../temp/csd/gen_code/table_g.o \ + ../../../../../temp/csd/gen_code/table_h.o \ + ../../../../../temp/csd/gen_code/table_i.o \ + ../../../../../temp/csd/gen_code/table_j.o \ + ../../../../../temp/csd/gen_code/table_k.o \ + ../../../../../temp/csd/gen_code/table_l.o \ + ../../../../../temp/csd/gen_code/table_m.o \ + ../../../../../temp/csd/gen_code/table_n.o \ + ../../../../../temp/csd/gen_code/table_o.o \ + ../../../../../temp/csd/gen_code/table_p.o \ + ../../../../../temp/csd/gen_code/table_q.o \ + ../../../../../temp/csd/gen_code/table_r.o \ + ../../../../../temp/csd/gen_code/table_s.o \ + ../../../../../temp/csd/gen_code/table_t.o \ + ../../../../../temp/csd/gen_code/table_u.o \ + ../../../../../temp/csd/gen_code/table_v.o \ + ../../../../../temp/csd/gen_code/table_w.o \ + ../../../../../temp/csd/gen_code/table_x.o \ + ../../../../../temp/csd/gen_code/table_y.o \ + ../../../../../temp/csd/gen_code/table_z.o +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ../../../../../bin/gen_code +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .C .c + +.cpp.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cxx.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cc.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.C.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.c.o: + $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $< + +####### Build rules + + +all: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS) + +moc: $(SRCMOC) + +clean: + -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) + -rm -f *~ core + +####### Sub-libraries + + +###### Combined headers + + +####### Compile + +../../../../../temp/csd/gen_code/gen_code.o: ../../../../../src/tools/gen_code/gen_code.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/gen_code/gen_code.o ../../../../../src/tools/gen_code/gen_code.c + +../../../../../temp/csd/gen_code/ta_abstract.o: ../../../../../src/ta_abstract/ta_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/gen_code/ta_abstract.o ../../../../../src/ta_abstract/ta_abstract.c + +../../../../../temp/csd/gen_code/ta_def_ui.o: ../../../../../src/ta_abstract/ta_def_ui.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/gen_code/ta_def_ui.o ../../../../../src/ta_abstract/ta_def_ui.c + +../../../../../temp/csd/gen_code/table_a.o: ../../../../../src/ta_abstract/tables/table_a.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/gen_code/table_a.o ../../../../../src/ta_abstract/tables/table_a.c + +../../../../../temp/csd/gen_code/table_b.o: ../../../../../src/ta_abstract/tables/table_b.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/gen_code/table_b.o ../../../../../src/ta_abstract/tables/table_b.c + +../../../../../temp/csd/gen_code/table_c.o: ../../../../../src/ta_abstract/tables/table_c.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/gen_code/table_c.o ../../../../../src/ta_abstract/tables/table_c.c + +../../../../../temp/csd/gen_code/table_d.o: ../../../../../src/ta_abstract/tables/table_d.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/gen_code/table_d.o ../../../../../src/ta_abstract/tables/table_d.c + +../../../../../temp/csd/gen_code/table_e.o: ../../../../../src/ta_abstract/tables/table_e.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/gen_code/table_e.o ../../../../../src/ta_abstract/tables/table_e.c + +../../../../../temp/csd/gen_code/table_f.o: ../../../../../src/ta_abstract/tables/table_f.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/gen_code/table_f.o ../../../../../src/ta_abstract/tables/table_f.c + +../../../../../temp/csd/gen_code/table_g.o: ../../../../../src/ta_abstract/tables/table_g.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/gen_code/table_g.o ../../../../../src/ta_abstract/tables/table_g.c + +../../../../../temp/csd/gen_code/table_h.o: ../../../../../src/ta_abstract/tables/table_h.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/gen_code/table_h.o ../../../../../src/ta_abstract/tables/table_h.c + +../../../../../temp/csd/gen_code/table_i.o: ../../../../../src/ta_abstract/tables/table_i.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/gen_code/table_i.o ../../../../../src/ta_abstract/tables/table_i.c + +../../../../../temp/csd/gen_code/table_j.o: ../../../../../src/ta_abstract/tables/table_j.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/gen_code/table_j.o ../../../../../src/ta_abstract/tables/table_j.c + +../../../../../temp/csd/gen_code/table_k.o: ../../../../../src/ta_abstract/tables/table_k.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/gen_code/table_k.o ../../../../../src/ta_abstract/tables/table_k.c + +../../../../../temp/csd/gen_code/table_l.o: ../../../../../src/ta_abstract/tables/table_l.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/gen_code/table_l.o ../../../../../src/ta_abstract/tables/table_l.c + +../../../../../temp/csd/gen_code/table_m.o: ../../../../../src/ta_abstract/tables/table_m.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/gen_code/table_m.o ../../../../../src/ta_abstract/tables/table_m.c + +../../../../../temp/csd/gen_code/table_n.o: ../../../../../src/ta_abstract/tables/table_n.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/gen_code/table_n.o ../../../../../src/ta_abstract/tables/table_n.c + +../../../../../temp/csd/gen_code/table_o.o: ../../../../../src/ta_abstract/tables/table_o.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/gen_code/table_o.o ../../../../../src/ta_abstract/tables/table_o.c + +../../../../../temp/csd/gen_code/table_p.o: ../../../../../src/ta_abstract/tables/table_p.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/gen_code/table_p.o ../../../../../src/ta_abstract/tables/table_p.c + +../../../../../temp/csd/gen_code/table_q.o: ../../../../../src/ta_abstract/tables/table_q.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/gen_code/table_q.o ../../../../../src/ta_abstract/tables/table_q.c + +../../../../../temp/csd/gen_code/table_r.o: ../../../../../src/ta_abstract/tables/table_r.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/gen_code/table_r.o ../../../../../src/ta_abstract/tables/table_r.c + +../../../../../temp/csd/gen_code/table_s.o: ../../../../../src/ta_abstract/tables/table_s.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/gen_code/table_s.o ../../../../../src/ta_abstract/tables/table_s.c + +../../../../../temp/csd/gen_code/table_t.o: ../../../../../src/ta_abstract/tables/table_t.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/gen_code/table_t.o ../../../../../src/ta_abstract/tables/table_t.c + +../../../../../temp/csd/gen_code/table_u.o: ../../../../../src/ta_abstract/tables/table_u.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/gen_code/table_u.o ../../../../../src/ta_abstract/tables/table_u.c + +../../../../../temp/csd/gen_code/table_v.o: ../../../../../src/ta_abstract/tables/table_v.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/gen_code/table_v.o ../../../../../src/ta_abstract/tables/table_v.c + +../../../../../temp/csd/gen_code/table_w.o: ../../../../../src/ta_abstract/tables/table_w.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/gen_code/table_w.o ../../../../../src/ta_abstract/tables/table_w.c + +../../../../../temp/csd/gen_code/table_x.o: ../../../../../src/ta_abstract/tables/table_x.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/gen_code/table_x.o ../../../../../src/ta_abstract/tables/table_x.c + +../../../../../temp/csd/gen_code/table_y.o: ../../../../../src/ta_abstract/tables/table_y.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/gen_code/table_y.o ../../../../../src/ta_abstract/tables/table_y.c + +../../../../../temp/csd/gen_code/table_z.o: ../../../../../src/ta_abstract/tables/table_z.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/gen_code/table_z.o ../../../../../src/ta_abstract/tables/table_z.c + diff --git a/make/csd/linux/g++/ta_abstract/Makefile b/make/csd/linux/g++/ta_abstract/Makefile new file mode 100644 index 000000000..35a7b3cc3 --- /dev/null +++ b/make/csd/linux/g++/ta_abstract/Makefile @@ -0,0 +1,243 @@ +############################################################################# +# Makefile for building ../../../../../lib/libta_abstract_csd.a +# Generated by tmake; +# Project: ta_abstract/ta_abstract +# Template: lib +############################################################################# + +####### Compiler, tools and options + +CC = gcc +CXX = g++ +CFLAGS = -pipe -fPIC -Wall -W -g -DTA_DEBUG -D_DEBUG -DTA_SINGLE_THREAD +CXXFLAGS= -pipe -fPIC -Wall -W -g -DTA_DEBUG -D_DEBUG -DTA_SINGLE_THREAD +INCPATH = -I../../../../../src/ta_common -I../../../../../src/ta_abstract -I../../../../../src/ta_abstract/tables -I../../../../../src/ta_abstract/frames -I../../../../../include +AR = ar cqs +RANLIB = +MOC = $(QTDIR)/bin/moc +UIC = $(QTDIR)/bin/uic + +TAR = tar -cf +GZIP = gzip -9f + +####### Support for 64-bit systems +ifeq ($(shell uname -m), x86_64) + CFLAGS += -march=x86-64 -m64 -D__64BIT__ + CXXFLAGS += -march=x86-64 -m64 -D__64BIT__ +endif + +####### Apply additional overruling user flags, if any +CFLAGS += $(CUSERFLAGS) +CXXFLAGS += $(CUSERFLAGS) + +####### Files + +HEADERS = +SOURCES = ../../../../../src/ta_abstract/ta_abstract.c \ + ../../../../../src/ta_abstract/ta_def_ui.c \ + ../../../../../src/ta_abstract/ta_func_api.c \ + ../../../../../src/ta_abstract/ta_group_idx.c \ + ../../../../../src/ta_abstract/frames/ta_frame.c \ + ../../../../../src/ta_abstract/tables/table_a.c \ + ../../../../../src/ta_abstract/tables/table_b.c \ + ../../../../../src/ta_abstract/tables/table_c.c \ + ../../../../../src/ta_abstract/tables/table_d.c \ + ../../../../../src/ta_abstract/tables/table_e.c \ + ../../../../../src/ta_abstract/tables/table_f.c \ + ../../../../../src/ta_abstract/tables/table_g.c \ + ../../../../../src/ta_abstract/tables/table_h.c \ + ../../../../../src/ta_abstract/tables/table_i.c \ + ../../../../../src/ta_abstract/tables/table_j.c \ + ../../../../../src/ta_abstract/tables/table_k.c \ + ../../../../../src/ta_abstract/tables/table_l.c \ + ../../../../../src/ta_abstract/tables/table_m.c \ + ../../../../../src/ta_abstract/tables/table_n.c \ + ../../../../../src/ta_abstract/tables/table_o.c \ + ../../../../../src/ta_abstract/tables/table_p.c \ + ../../../../../src/ta_abstract/tables/table_q.c \ + ../../../../../src/ta_abstract/tables/table_r.c \ + ../../../../../src/ta_abstract/tables/table_s.c \ + ../../../../../src/ta_abstract/tables/table_t.c \ + ../../../../../src/ta_abstract/tables/table_u.c \ + ../../../../../src/ta_abstract/tables/table_v.c \ + ../../../../../src/ta_abstract/tables/table_w.c \ + ../../../../../src/ta_abstract/tables/table_x.c \ + ../../../../../src/ta_abstract/tables/table_y.c \ + ../../../../../src/ta_abstract/tables/table_z.c +OBJECTS = ../../../../../temp/csd/ta_abstract.o \ + ../../../../../temp/csd/ta_def_ui.o \ + ../../../../../temp/csd/ta_func_api.o \ + ../../../../../temp/csd/ta_group_idx.o \ + ../../../../../temp/csd/ta_frame.o \ + ../../../../../temp/csd/table_a.o \ + ../../../../../temp/csd/table_b.o \ + ../../../../../temp/csd/table_c.o \ + ../../../../../temp/csd/table_d.o \ + ../../../../../temp/csd/table_e.o \ + ../../../../../temp/csd/table_f.o \ + ../../../../../temp/csd/table_g.o \ + ../../../../../temp/csd/table_h.o \ + ../../../../../temp/csd/table_i.o \ + ../../../../../temp/csd/table_j.o \ + ../../../../../temp/csd/table_k.o \ + ../../../../../temp/csd/table_l.o \ + ../../../../../temp/csd/table_m.o \ + ../../../../../temp/csd/table_n.o \ + ../../../../../temp/csd/table_o.o \ + ../../../../../temp/csd/table_p.o \ + ../../../../../temp/csd/table_q.o \ + ../../../../../temp/csd/table_r.o \ + ../../../../../temp/csd/table_s.o \ + ../../../../../temp/csd/table_t.o \ + ../../../../../temp/csd/table_u.o \ + ../../../../../temp/csd/table_v.o \ + ../../../../../temp/csd/table_w.o \ + ../../../../../temp/csd/table_x.o \ + ../../../../../temp/csd/table_y.o \ + ../../../../../temp/csd/table_z.o +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ../../../../../lib/libta_abstract_csd.a +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .C .c + +.cpp.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cxx.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cc.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.C.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.c.o: + $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $< + +####### Build rules + + +all: $(TARGET) + +staticlib: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + -rm -f $(TARGET) + $(AR) $(TARGET) $(OBJECTS) $(OBJMOC) + +moc: $(SRCMOC) + +clean: + -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) + -rm -f *~ core + +####### Sub-libraries + + +###### Combined headers + + +####### Compile + +../../../../../temp/csd/ta_abstract.o: ../../../../../src/ta_abstract/ta_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_abstract.o ../../../../../src/ta_abstract/ta_abstract.c + +../../../../../temp/csd/ta_def_ui.o: ../../../../../src/ta_abstract/ta_def_ui.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_def_ui.o ../../../../../src/ta_abstract/ta_def_ui.c + +../../../../../temp/csd/ta_func_api.o: ../../../../../src/ta_abstract/ta_func_api.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_func_api.o ../../../../../src/ta_abstract/ta_func_api.c + +../../../../../temp/csd/ta_group_idx.o: ../../../../../src/ta_abstract/ta_group_idx.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_group_idx.o ../../../../../src/ta_abstract/ta_group_idx.c + +../../../../../temp/csd/ta_frame.o: ../../../../../src/ta_abstract/frames/ta_frame.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_frame.o ../../../../../src/ta_abstract/frames/ta_frame.c + +../../../../../temp/csd/table_a.o: ../../../../../src/ta_abstract/tables/table_a.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_a.o ../../../../../src/ta_abstract/tables/table_a.c + +../../../../../temp/csd/table_b.o: ../../../../../src/ta_abstract/tables/table_b.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_b.o ../../../../../src/ta_abstract/tables/table_b.c + +../../../../../temp/csd/table_c.o: ../../../../../src/ta_abstract/tables/table_c.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_c.o ../../../../../src/ta_abstract/tables/table_c.c + +../../../../../temp/csd/table_d.o: ../../../../../src/ta_abstract/tables/table_d.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_d.o ../../../../../src/ta_abstract/tables/table_d.c + +../../../../../temp/csd/table_e.o: ../../../../../src/ta_abstract/tables/table_e.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_e.o ../../../../../src/ta_abstract/tables/table_e.c + +../../../../../temp/csd/table_f.o: ../../../../../src/ta_abstract/tables/table_f.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_f.o ../../../../../src/ta_abstract/tables/table_f.c + +../../../../../temp/csd/table_g.o: ../../../../../src/ta_abstract/tables/table_g.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_g.o ../../../../../src/ta_abstract/tables/table_g.c + +../../../../../temp/csd/table_h.o: ../../../../../src/ta_abstract/tables/table_h.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_h.o ../../../../../src/ta_abstract/tables/table_h.c + +../../../../../temp/csd/table_i.o: ../../../../../src/ta_abstract/tables/table_i.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_i.o ../../../../../src/ta_abstract/tables/table_i.c + +../../../../../temp/csd/table_j.o: ../../../../../src/ta_abstract/tables/table_j.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_j.o ../../../../../src/ta_abstract/tables/table_j.c + +../../../../../temp/csd/table_k.o: ../../../../../src/ta_abstract/tables/table_k.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_k.o ../../../../../src/ta_abstract/tables/table_k.c + +../../../../../temp/csd/table_l.o: ../../../../../src/ta_abstract/tables/table_l.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_l.o ../../../../../src/ta_abstract/tables/table_l.c + +../../../../../temp/csd/table_m.o: ../../../../../src/ta_abstract/tables/table_m.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_m.o ../../../../../src/ta_abstract/tables/table_m.c + +../../../../../temp/csd/table_n.o: ../../../../../src/ta_abstract/tables/table_n.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_n.o ../../../../../src/ta_abstract/tables/table_n.c + +../../../../../temp/csd/table_o.o: ../../../../../src/ta_abstract/tables/table_o.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_o.o ../../../../../src/ta_abstract/tables/table_o.c + +../../../../../temp/csd/table_p.o: ../../../../../src/ta_abstract/tables/table_p.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_p.o ../../../../../src/ta_abstract/tables/table_p.c + +../../../../../temp/csd/table_q.o: ../../../../../src/ta_abstract/tables/table_q.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_q.o ../../../../../src/ta_abstract/tables/table_q.c + +../../../../../temp/csd/table_r.o: ../../../../../src/ta_abstract/tables/table_r.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_r.o ../../../../../src/ta_abstract/tables/table_r.c + +../../../../../temp/csd/table_s.o: ../../../../../src/ta_abstract/tables/table_s.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_s.o ../../../../../src/ta_abstract/tables/table_s.c + +../../../../../temp/csd/table_t.o: ../../../../../src/ta_abstract/tables/table_t.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_t.o ../../../../../src/ta_abstract/tables/table_t.c + +../../../../../temp/csd/table_u.o: ../../../../../src/ta_abstract/tables/table_u.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_u.o ../../../../../src/ta_abstract/tables/table_u.c + +../../../../../temp/csd/table_v.o: ../../../../../src/ta_abstract/tables/table_v.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_v.o ../../../../../src/ta_abstract/tables/table_v.c + +../../../../../temp/csd/table_w.o: ../../../../../src/ta_abstract/tables/table_w.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_w.o ../../../../../src/ta_abstract/tables/table_w.c + +../../../../../temp/csd/table_x.o: ../../../../../src/ta_abstract/tables/table_x.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_x.o ../../../../../src/ta_abstract/tables/table_x.c + +../../../../../temp/csd/table_y.o: ../../../../../src/ta_abstract/tables/table_y.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_y.o ../../../../../src/ta_abstract/tables/table_y.c + +../../../../../temp/csd/table_z.o: ../../../../../src/ta_abstract/tables/table_z.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_z.o ../../../../../src/ta_abstract/tables/table_z.c + diff --git a/make/csd/linux/g++/ta_common/Makefile b/make/csd/linux/g++/ta_common/Makefile new file mode 100644 index 000000000..3e40842f8 --- /dev/null +++ b/make/csd/linux/g++/ta_common/Makefile @@ -0,0 +1,103 @@ +############################################################################# +# Makefile for building ../../../../../lib/libta_common_csd.a +# Generated by tmake; +# Project: ta_common/ta_common +# Template: lib +############################################################################# + +####### Compiler, tools and options + +CC = gcc +CXX = g++ +CFLAGS = -pipe -fPIC -Wall -W -g -DTA_DEBUG -D_DEBUG -DTA_SINGLE_THREAD +CXXFLAGS= -pipe -fPIC -Wall -W -g -DTA_DEBUG -D_DEBUG -DTA_SINGLE_THREAD +INCPATH = -I../../../../../src/ta_common -I../../../../../include +AR = ar cqs +RANLIB = +MOC = $(QTDIR)/bin/moc +UIC = $(QTDIR)/bin/uic + +TAR = tar -cf +GZIP = gzip -9f + +####### Support for 64-bit systems +ifeq ($(shell uname -m), x86_64) + CFLAGS += -march=x86-64 -m64 -D__64BIT__ + CXXFLAGS += -march=x86-64 -m64 -D__64BIT__ +endif + +####### Apply additional overruling user flags, if any +CFLAGS += $(CUSERFLAGS) +CXXFLAGS += $(CUSERFLAGS) + +####### Files + +HEADERS = +SOURCES = ../../../../../src/ta_common/ta_global.c \ + ../../../../../src/ta_common/ta_retcode.c \ + ../../../../../src/ta_common/ta_version.c +OBJECTS = ../../../../../temp/csd/ta_global.o \ + ../../../../../temp/csd/ta_retcode.o \ + ../../../../../temp/csd/ta_version.o +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ../../../../../lib/libta_common_csd.a +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .C .c + +.cpp.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cxx.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cc.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.C.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.c.o: + $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $< + +####### Build rules + + +all: $(TARGET) + +staticlib: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + -rm -f $(TARGET) + $(AR) $(TARGET) $(OBJECTS) $(OBJMOC) + +moc: $(SRCMOC) + +clean: + -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) + -rm -f *~ core + +####### Sub-libraries + + +###### Combined headers + + +####### Compile + +../../../../../temp/csd/ta_global.o: ../../../../../src/ta_common/ta_global.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_global.o ../../../../../src/ta_common/ta_global.c + +../../../../../temp/csd/ta_retcode.o: ../../../../../src/ta_common/ta_retcode.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_retcode.o ../../../../../src/ta_common/ta_retcode.c + +../../../../../temp/csd/ta_version.o: ../../../../../src/ta_common/ta_version.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_version.o ../../../../../src/ta_common/ta_version.c + diff --git a/make/csd/linux/g++/ta_func/Makefile b/make/csd/linux/g++/ta_func/Makefile new file mode 100644 index 000000000..121bbaf3b --- /dev/null +++ b/make/csd/linux/g++/ta_func/Makefile @@ -0,0 +1,883 @@ +############################################################################# +# Makefile for building ../../../../../lib/libta_func_csd.a +# Generated by tmake; +# Project: ta_func/ta_func +# Template: lib +############################################################################# + +####### Compiler, tools and options + +CC = gcc +CXX = g++ +CFLAGS = -pipe -fPIC -Wall -W -g -DTA_DEBUG -D_DEBUG -DTA_SINGLE_THREAD +CXXFLAGS= -pipe -fPIC -Wall -W -g -DTA_DEBUG -D_DEBUG -DTA_SINGLE_THREAD +INCPATH = -I../../../../../src/ta_common -I/n -I../../../../../include +AR = ar cqs +RANLIB = +MOC = $(QTDIR)/bin/moc +UIC = $(QTDIR)/bin/uic + +TAR = tar -cf +GZIP = gzip -9f + +####### Support for 64-bit systems +ifeq ($(shell uname -m), x86_64) + CFLAGS += -march=x86-64 -m64 -D__64BIT__ + CXXFLAGS += -march=x86-64 -m64 -D__64BIT__ +endif + +####### Apply additional overruling user flags, if any +CFLAGS += $(CUSERFLAGS) +CXXFLAGS += $(CUSERFLAGS) + +####### Files + +HEADERS = +SOURCES = ../../../../../src/ta_func/ta_utility.c \ + ../../../../../src/ta_func/ta_ACOS.c \ + ../../../../../src/ta_func/ta_AD.c \ + ../../../../../src/ta_func/ta_ADD.c \ + ../../../../../src/ta_func/ta_ADOSC.c \ + ../../../../../src/ta_func/ta_ADX.c \ + ../../../../../src/ta_func/ta_ADXR.c \ + ../../../../../src/ta_func/ta_APO.c \ + ../../../../../src/ta_func/ta_AROON.c \ + ../../../../../src/ta_func/ta_AROONOSC.c \ + ../../../../../src/ta_func/ta_ASIN.c \ + ../../../../../src/ta_func/ta_ATAN.c \ + ../../../../../src/ta_func/ta_ATR.c \ + ../../../../../src/ta_func/ta_AVGPRICE.c \ + ../../../../../src/ta_func/ta_BBANDS.c \ + ../../../../../src/ta_func/ta_BETA.c \ + ../../../../../src/ta_func/ta_BOP.c \ + ../../../../../src/ta_func/ta_CCI.c \ + ../../../../../src/ta_func/ta_CDL2CROWS.c \ + ../../../../../src/ta_func/ta_CDL3BLACKCROWS.c \ + ../../../../../src/ta_func/ta_CDL3INSIDE.c \ + ../../../../../src/ta_func/ta_CDL3LINESTRIKE.c \ + ../../../../../src/ta_func/ta_CDL3OUTSIDE.c \ + ../../../../../src/ta_func/ta_CDL3STARSINSOUTH.c \ + ../../../../../src/ta_func/ta_CDL3WHITESOLDIERS.c \ + ../../../../../src/ta_func/ta_CDLABANDONEDBABY.c \ + ../../../../../src/ta_func/ta_CDLADVANCEBLOCK.c \ + ../../../../../src/ta_func/ta_CDLBELTHOLD.c \ + ../../../../../src/ta_func/ta_CDLBREAKAWAY.c \ + ../../../../../src/ta_func/ta_CDLCLOSINGMARUBOZU.c \ + ../../../../../src/ta_func/ta_CDLCONCEALBABYSWALL.c \ + ../../../../../src/ta_func/ta_CDLCOUNTERATTACK.c \ + ../../../../../src/ta_func/ta_CDLDARKCLOUDCOVER.c \ + ../../../../../src/ta_func/ta_CDLDOJI.c \ + ../../../../../src/ta_func/ta_CDLDOJISTAR.c \ + ../../../../../src/ta_func/ta_CDLDRAGONFLYDOJI.c \ + ../../../../../src/ta_func/ta_CDLENGULFING.c \ + ../../../../../src/ta_func/ta_CDLEVENINGDOJISTAR.c \ + ../../../../../src/ta_func/ta_CDLEVENINGSTAR.c \ + ../../../../../src/ta_func/ta_CDLGAPSIDESIDEWHITE.c \ + ../../../../../src/ta_func/ta_CDLGRAVESTONEDOJI.c \ + ../../../../../src/ta_func/ta_CDLHAMMER.c \ + ../../../../../src/ta_func/ta_CDLHANGINGMAN.c \ + ../../../../../src/ta_func/ta_CDLHARAMI.c \ + ../../../../../src/ta_func/ta_CDLHARAMICROSS.c \ + ../../../../../src/ta_func/ta_CDLHIGHWAVE.c \ + ../../../../../src/ta_func/ta_CDLHIKKAKE.c \ + ../../../../../src/ta_func/ta_CDLHIKKAKEMOD.c \ + ../../../../../src/ta_func/ta_CDLHOMINGPIGEON.c \ + ../../../../../src/ta_func/ta_CDLIDENTICAL3CROWS.c \ + ../../../../../src/ta_func/ta_CDLINNECK.c \ + ../../../../../src/ta_func/ta_CDLINVERTEDHAMMER.c \ + ../../../../../src/ta_func/ta_CDLKICKING.c \ + ../../../../../src/ta_func/ta_CDLKICKINGBYLENGTH.c \ + ../../../../../src/ta_func/ta_CDLLADDERBOTTOM.c \ + ../../../../../src/ta_func/ta_CDLLONGLEGGEDDOJI.c \ + ../../../../../src/ta_func/ta_CDLLONGLINE.c \ + ../../../../../src/ta_func/ta_CDLMARUBOZU.c \ + ../../../../../src/ta_func/ta_CDLMATCHINGLOW.c \ + ../../../../../src/ta_func/ta_CDLMATHOLD.c \ + ../../../../../src/ta_func/ta_CDLMORNINGDOJISTAR.c \ + ../../../../../src/ta_func/ta_CDLMORNINGSTAR.c \ + ../../../../../src/ta_func/ta_CDLONNECK.c \ + ../../../../../src/ta_func/ta_CDLPIERCING.c \ + ../../../../../src/ta_func/ta_CDLRICKSHAWMAN.c \ + ../../../../../src/ta_func/ta_CDLRISEFALL3METHODS.c \ + ../../../../../src/ta_func/ta_CDLSEPARATINGLINES.c \ + ../../../../../src/ta_func/ta_CDLSHOOTINGSTAR.c \ + ../../../../../src/ta_func/ta_CDLSHORTLINE.c \ + ../../../../../src/ta_func/ta_CDLSPINNINGTOP.c \ + ../../../../../src/ta_func/ta_CDLSTALLEDPATTERN.c \ + ../../../../../src/ta_func/ta_CDLSTICKSANDWICH.c \ + ../../../../../src/ta_func/ta_CDLTAKURI.c \ + ../../../../../src/ta_func/ta_CDLTASUKIGAP.c \ + ../../../../../src/ta_func/ta_CDLTHRUSTING.c \ + ../../../../../src/ta_func/ta_CDLTRISTAR.c \ + ../../../../../src/ta_func/ta_CDLUNIQUE3RIVER.c \ + ../../../../../src/ta_func/ta_CDLUPSIDEGAP2CROWS.c \ + ../../../../../src/ta_func/ta_CDLXSIDEGAP3METHODS.c \ + ../../../../../src/ta_func/ta_CEIL.c \ + ../../../../../src/ta_func/ta_CMO.c \ + ../../../../../src/ta_func/ta_CORREL.c \ + ../../../../../src/ta_func/ta_COS.c \ + ../../../../../src/ta_func/ta_COSH.c \ + ../../../../../src/ta_func/ta_DEMA.c \ + ../../../../../src/ta_func/ta_DIV.c \ + ../../../../../src/ta_func/ta_DX.c \ + ../../../../../src/ta_func/ta_EMA.c \ + ../../../../../src/ta_func/ta_EXP.c \ + ../../../../../src/ta_func/ta_FLOOR.c \ + ../../../../../src/ta_func/ta_HT_DCPERIOD.c \ + ../../../../../src/ta_func/ta_HT_DCPHASE.c \ + ../../../../../src/ta_func/ta_HT_PHASOR.c \ + ../../../../../src/ta_func/ta_HT_SINE.c \ + ../../../../../src/ta_func/ta_HT_TRENDLINE.c \ + ../../../../../src/ta_func/ta_HT_TRENDMODE.c \ + ../../../../../src/ta_func/ta_KAMA.c \ + ../../../../../src/ta_func/ta_LINEARREG.c \ + ../../../../../src/ta_func/ta_LINEARREG_ANGLE.c \ + ../../../../../src/ta_func/ta_LINEARREG_INTERCEPT.c \ + ../../../../../src/ta_func/ta_LINEARREG_SLOPE.c \ + ../../../../../src/ta_func/ta_LN.c \ + ../../../../../src/ta_func/ta_LOG10.c \ + ../../../../../src/ta_func/ta_MA.c \ + ../../../../../src/ta_func/ta_MACD.c \ + ../../../../../src/ta_func/ta_MACDEXT.c \ + ../../../../../src/ta_func/ta_MACDFIX.c \ + ../../../../../src/ta_func/ta_MAMA.c \ + ../../../../../src/ta_func/ta_MAVP.c \ + ../../../../../src/ta_func/ta_MAX.c \ + ../../../../../src/ta_func/ta_MAXINDEX.c \ + ../../../../../src/ta_func/ta_MEDPRICE.c \ + ../../../../../src/ta_func/ta_MFI.c \ + ../../../../../src/ta_func/ta_MIDPOINT.c \ + ../../../../../src/ta_func/ta_MIDPRICE.c \ + ../../../../../src/ta_func/ta_MIN.c \ + ../../../../../src/ta_func/ta_MININDEX.c \ + ../../../../../src/ta_func/ta_MINMAX.c \ + ../../../../../src/ta_func/ta_MINMAXINDEX.c \ + ../../../../../src/ta_func/ta_MINUS_DI.c \ + ../../../../../src/ta_func/ta_MINUS_DM.c \ + ../../../../../src/ta_func/ta_MOM.c \ + ../../../../../src/ta_func/ta_MULT.c \ + ../../../../../src/ta_func/ta_NATR.c \ + ../../../../../src/ta_func/ta_OBV.c \ + ../../../../../src/ta_func/ta_PLUS_DI.c \ + ../../../../../src/ta_func/ta_PLUS_DM.c \ + ../../../../../src/ta_func/ta_PPO.c \ + ../../../../../src/ta_func/ta_ROC.c \ + ../../../../../src/ta_func/ta_ROCP.c \ + ../../../../../src/ta_func/ta_ROCR.c \ + ../../../../../src/ta_func/ta_ROCR100.c \ + ../../../../../src/ta_func/ta_RSI.c \ + ../../../../../src/ta_func/ta_SAR.c \ + ../../../../../src/ta_func/ta_SAREXT.c \ + ../../../../../src/ta_func/ta_SIN.c \ + ../../../../../src/ta_func/ta_SINH.c \ + ../../../../../src/ta_func/ta_SMA.c \ + ../../../../../src/ta_func/ta_SQRT.c \ + ../../../../../src/ta_func/ta_STDDEV.c \ + ../../../../../src/ta_func/ta_STOCH.c \ + ../../../../../src/ta_func/ta_STOCHF.c \ + ../../../../../src/ta_func/ta_STOCHRSI.c \ + ../../../../../src/ta_func/ta_SUB.c \ + ../../../../../src/ta_func/ta_SUM.c \ + ../../../../../src/ta_func/ta_T3.c \ + ../../../../../src/ta_func/ta_TAN.c \ + ../../../../../src/ta_func/ta_TANH.c \ + ../../../../../src/ta_func/ta_TEMA.c \ + ../../../../../src/ta_func/ta_TRANGE.c \ + ../../../../../src/ta_func/ta_TRIMA.c \ + ../../../../../src/ta_func/ta_TRIX.c \ + ../../../../../src/ta_func/ta_TSF.c \ + ../../../../../src/ta_func/ta_TYPPRICE.c \ + ../../../../../src/ta_func/ta_ULTOSC.c \ + ../../../../../src/ta_func/ta_VAR.c \ + ../../../../../src/ta_func/ta_WCLPRICE.c \ + ../../../../../src/ta_func/ta_WILLR.c \ + ../../../../../src/ta_func/ta_WMA.c +OBJECTS = ../../../../../temp/csd/ta_utility.o \ + ../../../../../temp/csd/ta_ACOS.o \ + ../../../../../temp/csd/ta_AD.o \ + ../../../../../temp/csd/ta_ADD.o \ + ../../../../../temp/csd/ta_ADOSC.o \ + ../../../../../temp/csd/ta_ADX.o \ + ../../../../../temp/csd/ta_ADXR.o \ + ../../../../../temp/csd/ta_APO.o \ + ../../../../../temp/csd/ta_AROON.o \ + ../../../../../temp/csd/ta_AROONOSC.o \ + ../../../../../temp/csd/ta_ASIN.o \ + ../../../../../temp/csd/ta_ATAN.o \ + ../../../../../temp/csd/ta_ATR.o \ + ../../../../../temp/csd/ta_AVGPRICE.o \ + ../../../../../temp/csd/ta_BBANDS.o \ + ../../../../../temp/csd/ta_BETA.o \ + ../../../../../temp/csd/ta_BOP.o \ + ../../../../../temp/csd/ta_CCI.o \ + ../../../../../temp/csd/ta_CDL2CROWS.o \ + ../../../../../temp/csd/ta_CDL3BLACKCROWS.o \ + ../../../../../temp/csd/ta_CDL3INSIDE.o \ + ../../../../../temp/csd/ta_CDL3LINESTRIKE.o \ + ../../../../../temp/csd/ta_CDL3OUTSIDE.o \ + ../../../../../temp/csd/ta_CDL3STARSINSOUTH.o \ + ../../../../../temp/csd/ta_CDL3WHITESOLDIERS.o \ + ../../../../../temp/csd/ta_CDLABANDONEDBABY.o \ + ../../../../../temp/csd/ta_CDLADVANCEBLOCK.o \ + ../../../../../temp/csd/ta_CDLBELTHOLD.o \ + ../../../../../temp/csd/ta_CDLBREAKAWAY.o \ + ../../../../../temp/csd/ta_CDLCLOSINGMARUBOZU.o \ + ../../../../../temp/csd/ta_CDLCONCEALBABYSWALL.o \ + ../../../../../temp/csd/ta_CDLCOUNTERATTACK.o \ + ../../../../../temp/csd/ta_CDLDARKCLOUDCOVER.o \ + ../../../../../temp/csd/ta_CDLDOJI.o \ + ../../../../../temp/csd/ta_CDLDOJISTAR.o \ + ../../../../../temp/csd/ta_CDLDRAGONFLYDOJI.o \ + ../../../../../temp/csd/ta_CDLENGULFING.o \ + ../../../../../temp/csd/ta_CDLEVENINGDOJISTAR.o \ + ../../../../../temp/csd/ta_CDLEVENINGSTAR.o \ + ../../../../../temp/csd/ta_CDLGAPSIDESIDEWHITE.o \ + ../../../../../temp/csd/ta_CDLGRAVESTONEDOJI.o \ + ../../../../../temp/csd/ta_CDLHAMMER.o \ + ../../../../../temp/csd/ta_CDLHANGINGMAN.o \ + ../../../../../temp/csd/ta_CDLHARAMI.o \ + ../../../../../temp/csd/ta_CDLHARAMICROSS.o \ + ../../../../../temp/csd/ta_CDLHIGHWAVE.o \ + ../../../../../temp/csd/ta_CDLHIKKAKE.o \ + ../../../../../temp/csd/ta_CDLHIKKAKEMOD.o \ + ../../../../../temp/csd/ta_CDLHOMINGPIGEON.o \ + ../../../../../temp/csd/ta_CDLIDENTICAL3CROWS.o \ + ../../../../../temp/csd/ta_CDLINNECK.o \ + ../../../../../temp/csd/ta_CDLINVERTEDHAMMER.o \ + ../../../../../temp/csd/ta_CDLKICKING.o \ + ../../../../../temp/csd/ta_CDLKICKINGBYLENGTH.o \ + ../../../../../temp/csd/ta_CDLLADDERBOTTOM.o \ + ../../../../../temp/csd/ta_CDLLONGLEGGEDDOJI.o \ + ../../../../../temp/csd/ta_CDLLONGLINE.o \ + ../../../../../temp/csd/ta_CDLMARUBOZU.o \ + ../../../../../temp/csd/ta_CDLMATCHINGLOW.o \ + ../../../../../temp/csd/ta_CDLMATHOLD.o \ + ../../../../../temp/csd/ta_CDLMORNINGDOJISTAR.o \ + ../../../../../temp/csd/ta_CDLMORNINGSTAR.o \ + ../../../../../temp/csd/ta_CDLONNECK.o \ + ../../../../../temp/csd/ta_CDLPIERCING.o \ + ../../../../../temp/csd/ta_CDLRICKSHAWMAN.o \ + ../../../../../temp/csd/ta_CDLRISEFALL3METHODS.o \ + ../../../../../temp/csd/ta_CDLSEPARATINGLINES.o \ + ../../../../../temp/csd/ta_CDLSHOOTINGSTAR.o \ + ../../../../../temp/csd/ta_CDLSHORTLINE.o \ + ../../../../../temp/csd/ta_CDLSPINNINGTOP.o \ + ../../../../../temp/csd/ta_CDLSTALLEDPATTERN.o \ + ../../../../../temp/csd/ta_CDLSTICKSANDWICH.o \ + ../../../../../temp/csd/ta_CDLTAKURI.o \ + ../../../../../temp/csd/ta_CDLTASUKIGAP.o \ + ../../../../../temp/csd/ta_CDLTHRUSTING.o \ + ../../../../../temp/csd/ta_CDLTRISTAR.o \ + ../../../../../temp/csd/ta_CDLUNIQUE3RIVER.o \ + ../../../../../temp/csd/ta_CDLUPSIDEGAP2CROWS.o \ + ../../../../../temp/csd/ta_CDLXSIDEGAP3METHODS.o \ + ../../../../../temp/csd/ta_CEIL.o \ + ../../../../../temp/csd/ta_CMO.o \ + ../../../../../temp/csd/ta_CORREL.o \ + ../../../../../temp/csd/ta_COS.o \ + ../../../../../temp/csd/ta_COSH.o \ + ../../../../../temp/csd/ta_DEMA.o \ + ../../../../../temp/csd/ta_DIV.o \ + ../../../../../temp/csd/ta_DX.o \ + ../../../../../temp/csd/ta_EMA.o \ + ../../../../../temp/csd/ta_EXP.o \ + ../../../../../temp/csd/ta_FLOOR.o \ + ../../../../../temp/csd/ta_HT_DCPERIOD.o \ + ../../../../../temp/csd/ta_HT_DCPHASE.o \ + ../../../../../temp/csd/ta_HT_PHASOR.o \ + ../../../../../temp/csd/ta_HT_SINE.o \ + ../../../../../temp/csd/ta_HT_TRENDLINE.o \ + ../../../../../temp/csd/ta_HT_TRENDMODE.o \ + ../../../../../temp/csd/ta_KAMA.o \ + ../../../../../temp/csd/ta_LINEARREG.o \ + ../../../../../temp/csd/ta_LINEARREG_ANGLE.o \ + ../../../../../temp/csd/ta_LINEARREG_INTERCEPT.o \ + ../../../../../temp/csd/ta_LINEARREG_SLOPE.o \ + ../../../../../temp/csd/ta_LN.o \ + ../../../../../temp/csd/ta_LOG10.o \ + ../../../../../temp/csd/ta_MA.o \ + ../../../../../temp/csd/ta_MACD.o \ + ../../../../../temp/csd/ta_MACDEXT.o \ + ../../../../../temp/csd/ta_MACDFIX.o \ + ../../../../../temp/csd/ta_MAMA.o \ + ../../../../../temp/csd/ta_MAVP.o \ + ../../../../../temp/csd/ta_MAX.o \ + ../../../../../temp/csd/ta_MAXINDEX.o \ + ../../../../../temp/csd/ta_MEDPRICE.o \ + ../../../../../temp/csd/ta_MFI.o \ + ../../../../../temp/csd/ta_MIDPOINT.o \ + ../../../../../temp/csd/ta_MIDPRICE.o \ + ../../../../../temp/csd/ta_MIN.o \ + ../../../../../temp/csd/ta_MININDEX.o \ + ../../../../../temp/csd/ta_MINMAX.o \ + ../../../../../temp/csd/ta_MINMAXINDEX.o \ + ../../../../../temp/csd/ta_MINUS_DI.o \ + ../../../../../temp/csd/ta_MINUS_DM.o \ + ../../../../../temp/csd/ta_MOM.o \ + ../../../../../temp/csd/ta_MULT.o \ + ../../../../../temp/csd/ta_NATR.o \ + ../../../../../temp/csd/ta_OBV.o \ + ../../../../../temp/csd/ta_PLUS_DI.o \ + ../../../../../temp/csd/ta_PLUS_DM.o \ + ../../../../../temp/csd/ta_PPO.o \ + ../../../../../temp/csd/ta_ROC.o \ + ../../../../../temp/csd/ta_ROCP.o \ + ../../../../../temp/csd/ta_ROCR.o \ + ../../../../../temp/csd/ta_ROCR100.o \ + ../../../../../temp/csd/ta_RSI.o \ + ../../../../../temp/csd/ta_SAR.o \ + ../../../../../temp/csd/ta_SAREXT.o \ + ../../../../../temp/csd/ta_SIN.o \ + ../../../../../temp/csd/ta_SINH.o \ + ../../../../../temp/csd/ta_SMA.o \ + ../../../../../temp/csd/ta_SQRT.o \ + ../../../../../temp/csd/ta_STDDEV.o \ + ../../../../../temp/csd/ta_STOCH.o \ + ../../../../../temp/csd/ta_STOCHF.o \ + ../../../../../temp/csd/ta_STOCHRSI.o \ + ../../../../../temp/csd/ta_SUB.o \ + ../../../../../temp/csd/ta_SUM.o \ + ../../../../../temp/csd/ta_T3.o \ + ../../../../../temp/csd/ta_TAN.o \ + ../../../../../temp/csd/ta_TANH.o \ + ../../../../../temp/csd/ta_TEMA.o \ + ../../../../../temp/csd/ta_TRANGE.o \ + ../../../../../temp/csd/ta_TRIMA.o \ + ../../../../../temp/csd/ta_TRIX.o \ + ../../../../../temp/csd/ta_TSF.o \ + ../../../../../temp/csd/ta_TYPPRICE.o \ + ../../../../../temp/csd/ta_ULTOSC.o \ + ../../../../../temp/csd/ta_VAR.o \ + ../../../../../temp/csd/ta_WCLPRICE.o \ + ../../../../../temp/csd/ta_WILLR.o \ + ../../../../../temp/csd/ta_WMA.o +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ../../../../../lib/libta_func_csd.a +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .C .c + +.cpp.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cxx.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cc.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.C.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.c.o: + $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $< + +####### Build rules + + +all: $(TARGET) + +staticlib: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + -rm -f $(TARGET) + $(AR) $(TARGET) $(OBJECTS) $(OBJMOC) + +moc: $(SRCMOC) + +clean: + -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) + -rm -f *~ core + +####### Sub-libraries + + +###### Combined headers + + +####### Compile + +../../../../../temp/csd/ta_utility.o: ../../../../../src/ta_func/ta_utility.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_utility.o ../../../../../src/ta_func/ta_utility.c + +../../../../../temp/csd/ta_ACOS.o: ../../../../../src/ta_func/ta_ACOS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_ACOS.o ../../../../../src/ta_func/ta_ACOS.c + +../../../../../temp/csd/ta_AD.o: ../../../../../src/ta_func/ta_AD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_AD.o ../../../../../src/ta_func/ta_AD.c + +../../../../../temp/csd/ta_ADD.o: ../../../../../src/ta_func/ta_ADD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_ADD.o ../../../../../src/ta_func/ta_ADD.c + +../../../../../temp/csd/ta_ADOSC.o: ../../../../../src/ta_func/ta_ADOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_ADOSC.o ../../../../../src/ta_func/ta_ADOSC.c + +../../../../../temp/csd/ta_ADX.o: ../../../../../src/ta_func/ta_ADX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_ADX.o ../../../../../src/ta_func/ta_ADX.c + +../../../../../temp/csd/ta_ADXR.o: ../../../../../src/ta_func/ta_ADXR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_ADXR.o ../../../../../src/ta_func/ta_ADXR.c + +../../../../../temp/csd/ta_APO.o: ../../../../../src/ta_func/ta_APO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_APO.o ../../../../../src/ta_func/ta_APO.c + +../../../../../temp/csd/ta_AROON.o: ../../../../../src/ta_func/ta_AROON.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_AROON.o ../../../../../src/ta_func/ta_AROON.c + +../../../../../temp/csd/ta_AROONOSC.o: ../../../../../src/ta_func/ta_AROONOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_AROONOSC.o ../../../../../src/ta_func/ta_AROONOSC.c + +../../../../../temp/csd/ta_ASIN.o: ../../../../../src/ta_func/ta_ASIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_ASIN.o ../../../../../src/ta_func/ta_ASIN.c + +../../../../../temp/csd/ta_ATAN.o: ../../../../../src/ta_func/ta_ATAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_ATAN.o ../../../../../src/ta_func/ta_ATAN.c + +../../../../../temp/csd/ta_ATR.o: ../../../../../src/ta_func/ta_ATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_ATR.o ../../../../../src/ta_func/ta_ATR.c + +../../../../../temp/csd/ta_AVGPRICE.o: ../../../../../src/ta_func/ta_AVGPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_AVGPRICE.o ../../../../../src/ta_func/ta_AVGPRICE.c + +../../../../../temp/csd/ta_BBANDS.o: ../../../../../src/ta_func/ta_BBANDS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_BBANDS.o ../../../../../src/ta_func/ta_BBANDS.c + +../../../../../temp/csd/ta_BETA.o: ../../../../../src/ta_func/ta_BETA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_BETA.o ../../../../../src/ta_func/ta_BETA.c + +../../../../../temp/csd/ta_BOP.o: ../../../../../src/ta_func/ta_BOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_BOP.o ../../../../../src/ta_func/ta_BOP.c + +../../../../../temp/csd/ta_CCI.o: ../../../../../src/ta_func/ta_CCI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CCI.o ../../../../../src/ta_func/ta_CCI.c + +../../../../../temp/csd/ta_CDL2CROWS.o: ../../../../../src/ta_func/ta_CDL2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDL2CROWS.o ../../../../../src/ta_func/ta_CDL2CROWS.c + +../../../../../temp/csd/ta_CDL3BLACKCROWS.o: ../../../../../src/ta_func/ta_CDL3BLACKCROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDL3BLACKCROWS.o ../../../../../src/ta_func/ta_CDL3BLACKCROWS.c + +../../../../../temp/csd/ta_CDL3INSIDE.o: ../../../../../src/ta_func/ta_CDL3INSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDL3INSIDE.o ../../../../../src/ta_func/ta_CDL3INSIDE.c + +../../../../../temp/csd/ta_CDL3LINESTRIKE.o: ../../../../../src/ta_func/ta_CDL3LINESTRIKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDL3LINESTRIKE.o ../../../../../src/ta_func/ta_CDL3LINESTRIKE.c + +../../../../../temp/csd/ta_CDL3OUTSIDE.o: ../../../../../src/ta_func/ta_CDL3OUTSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDL3OUTSIDE.o ../../../../../src/ta_func/ta_CDL3OUTSIDE.c + +../../../../../temp/csd/ta_CDL3STARSINSOUTH.o: ../../../../../src/ta_func/ta_CDL3STARSINSOUTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDL3STARSINSOUTH.o ../../../../../src/ta_func/ta_CDL3STARSINSOUTH.c + +../../../../../temp/csd/ta_CDL3WHITESOLDIERS.o: ../../../../../src/ta_func/ta_CDL3WHITESOLDIERS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDL3WHITESOLDIERS.o ../../../../../src/ta_func/ta_CDL3WHITESOLDIERS.c + +../../../../../temp/csd/ta_CDLABANDONEDBABY.o: ../../../../../src/ta_func/ta_CDLABANDONEDBABY.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLABANDONEDBABY.o ../../../../../src/ta_func/ta_CDLABANDONEDBABY.c + +../../../../../temp/csd/ta_CDLADVANCEBLOCK.o: ../../../../../src/ta_func/ta_CDLADVANCEBLOCK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLADVANCEBLOCK.o ../../../../../src/ta_func/ta_CDLADVANCEBLOCK.c + +../../../../../temp/csd/ta_CDLBELTHOLD.o: ../../../../../src/ta_func/ta_CDLBELTHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLBELTHOLD.o ../../../../../src/ta_func/ta_CDLBELTHOLD.c + +../../../../../temp/csd/ta_CDLBREAKAWAY.o: ../../../../../src/ta_func/ta_CDLBREAKAWAY.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLBREAKAWAY.o ../../../../../src/ta_func/ta_CDLBREAKAWAY.c + +../../../../../temp/csd/ta_CDLCLOSINGMARUBOZU.o: ../../../../../src/ta_func/ta_CDLCLOSINGMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLCLOSINGMARUBOZU.o ../../../../../src/ta_func/ta_CDLCLOSINGMARUBOZU.c + +../../../../../temp/csd/ta_CDLCONCEALBABYSWALL.o: ../../../../../src/ta_func/ta_CDLCONCEALBABYSWALL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLCONCEALBABYSWALL.o ../../../../../src/ta_func/ta_CDLCONCEALBABYSWALL.c + +../../../../../temp/csd/ta_CDLCOUNTERATTACK.o: ../../../../../src/ta_func/ta_CDLCOUNTERATTACK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLCOUNTERATTACK.o ../../../../../src/ta_func/ta_CDLCOUNTERATTACK.c + +../../../../../temp/csd/ta_CDLDARKCLOUDCOVER.o: ../../../../../src/ta_func/ta_CDLDARKCLOUDCOVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLDARKCLOUDCOVER.o ../../../../../src/ta_func/ta_CDLDARKCLOUDCOVER.c + +../../../../../temp/csd/ta_CDLDOJI.o: ../../../../../src/ta_func/ta_CDLDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLDOJI.o ../../../../../src/ta_func/ta_CDLDOJI.c + +../../../../../temp/csd/ta_CDLDOJISTAR.o: ../../../../../src/ta_func/ta_CDLDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLDOJISTAR.o ../../../../../src/ta_func/ta_CDLDOJISTAR.c + +../../../../../temp/csd/ta_CDLDRAGONFLYDOJI.o: ../../../../../src/ta_func/ta_CDLDRAGONFLYDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLDRAGONFLYDOJI.o ../../../../../src/ta_func/ta_CDLDRAGONFLYDOJI.c + +../../../../../temp/csd/ta_CDLENGULFING.o: ../../../../../src/ta_func/ta_CDLENGULFING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLENGULFING.o ../../../../../src/ta_func/ta_CDLENGULFING.c + +../../../../../temp/csd/ta_CDLEVENINGDOJISTAR.o: ../../../../../src/ta_func/ta_CDLEVENINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLEVENINGDOJISTAR.o ../../../../../src/ta_func/ta_CDLEVENINGDOJISTAR.c + +../../../../../temp/csd/ta_CDLEVENINGSTAR.o: ../../../../../src/ta_func/ta_CDLEVENINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLEVENINGSTAR.o ../../../../../src/ta_func/ta_CDLEVENINGSTAR.c + +../../../../../temp/csd/ta_CDLGAPSIDESIDEWHITE.o: ../../../../../src/ta_func/ta_CDLGAPSIDESIDEWHITE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLGAPSIDESIDEWHITE.o ../../../../../src/ta_func/ta_CDLGAPSIDESIDEWHITE.c + +../../../../../temp/csd/ta_CDLGRAVESTONEDOJI.o: ../../../../../src/ta_func/ta_CDLGRAVESTONEDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLGRAVESTONEDOJI.o ../../../../../src/ta_func/ta_CDLGRAVESTONEDOJI.c + +../../../../../temp/csd/ta_CDLHAMMER.o: ../../../../../src/ta_func/ta_CDLHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLHAMMER.o ../../../../../src/ta_func/ta_CDLHAMMER.c + +../../../../../temp/csd/ta_CDLHANGINGMAN.o: ../../../../../src/ta_func/ta_CDLHANGINGMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLHANGINGMAN.o ../../../../../src/ta_func/ta_CDLHANGINGMAN.c + +../../../../../temp/csd/ta_CDLHARAMI.o: ../../../../../src/ta_func/ta_CDLHARAMI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLHARAMI.o ../../../../../src/ta_func/ta_CDLHARAMI.c + +../../../../../temp/csd/ta_CDLHARAMICROSS.o: ../../../../../src/ta_func/ta_CDLHARAMICROSS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLHARAMICROSS.o ../../../../../src/ta_func/ta_CDLHARAMICROSS.c + +../../../../../temp/csd/ta_CDLHIGHWAVE.o: ../../../../../src/ta_func/ta_CDLHIGHWAVE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLHIGHWAVE.o ../../../../../src/ta_func/ta_CDLHIGHWAVE.c + +../../../../../temp/csd/ta_CDLHIKKAKE.o: ../../../../../src/ta_func/ta_CDLHIKKAKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLHIKKAKE.o ../../../../../src/ta_func/ta_CDLHIKKAKE.c + +../../../../../temp/csd/ta_CDLHIKKAKEMOD.o: ../../../../../src/ta_func/ta_CDLHIKKAKEMOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLHIKKAKEMOD.o ../../../../../src/ta_func/ta_CDLHIKKAKEMOD.c + +../../../../../temp/csd/ta_CDLHOMINGPIGEON.o: ../../../../../src/ta_func/ta_CDLHOMINGPIGEON.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLHOMINGPIGEON.o ../../../../../src/ta_func/ta_CDLHOMINGPIGEON.c + +../../../../../temp/csd/ta_CDLIDENTICAL3CROWS.o: ../../../../../src/ta_func/ta_CDLIDENTICAL3CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLIDENTICAL3CROWS.o ../../../../../src/ta_func/ta_CDLIDENTICAL3CROWS.c + +../../../../../temp/csd/ta_CDLINNECK.o: ../../../../../src/ta_func/ta_CDLINNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLINNECK.o ../../../../../src/ta_func/ta_CDLINNECK.c + +../../../../../temp/csd/ta_CDLINVERTEDHAMMER.o: ../../../../../src/ta_func/ta_CDLINVERTEDHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLINVERTEDHAMMER.o ../../../../../src/ta_func/ta_CDLINVERTEDHAMMER.c + +../../../../../temp/csd/ta_CDLKICKING.o: ../../../../../src/ta_func/ta_CDLKICKING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLKICKING.o ../../../../../src/ta_func/ta_CDLKICKING.c + +../../../../../temp/csd/ta_CDLKICKINGBYLENGTH.o: ../../../../../src/ta_func/ta_CDLKICKINGBYLENGTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLKICKINGBYLENGTH.o ../../../../../src/ta_func/ta_CDLKICKINGBYLENGTH.c + +../../../../../temp/csd/ta_CDLLADDERBOTTOM.o: ../../../../../src/ta_func/ta_CDLLADDERBOTTOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLLADDERBOTTOM.o ../../../../../src/ta_func/ta_CDLLADDERBOTTOM.c + +../../../../../temp/csd/ta_CDLLONGLEGGEDDOJI.o: ../../../../../src/ta_func/ta_CDLLONGLEGGEDDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLLONGLEGGEDDOJI.o ../../../../../src/ta_func/ta_CDLLONGLEGGEDDOJI.c + +../../../../../temp/csd/ta_CDLLONGLINE.o: ../../../../../src/ta_func/ta_CDLLONGLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLLONGLINE.o ../../../../../src/ta_func/ta_CDLLONGLINE.c + +../../../../../temp/csd/ta_CDLMARUBOZU.o: ../../../../../src/ta_func/ta_CDLMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLMARUBOZU.o ../../../../../src/ta_func/ta_CDLMARUBOZU.c + +../../../../../temp/csd/ta_CDLMATCHINGLOW.o: ../../../../../src/ta_func/ta_CDLMATCHINGLOW.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLMATCHINGLOW.o ../../../../../src/ta_func/ta_CDLMATCHINGLOW.c + +../../../../../temp/csd/ta_CDLMATHOLD.o: ../../../../../src/ta_func/ta_CDLMATHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLMATHOLD.o ../../../../../src/ta_func/ta_CDLMATHOLD.c + +../../../../../temp/csd/ta_CDLMORNINGDOJISTAR.o: ../../../../../src/ta_func/ta_CDLMORNINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLMORNINGDOJISTAR.o ../../../../../src/ta_func/ta_CDLMORNINGDOJISTAR.c + +../../../../../temp/csd/ta_CDLMORNINGSTAR.o: ../../../../../src/ta_func/ta_CDLMORNINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLMORNINGSTAR.o ../../../../../src/ta_func/ta_CDLMORNINGSTAR.c + +../../../../../temp/csd/ta_CDLONNECK.o: ../../../../../src/ta_func/ta_CDLONNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLONNECK.o ../../../../../src/ta_func/ta_CDLONNECK.c + +../../../../../temp/csd/ta_CDLPIERCING.o: ../../../../../src/ta_func/ta_CDLPIERCING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLPIERCING.o ../../../../../src/ta_func/ta_CDLPIERCING.c + +../../../../../temp/csd/ta_CDLRICKSHAWMAN.o: ../../../../../src/ta_func/ta_CDLRICKSHAWMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLRICKSHAWMAN.o ../../../../../src/ta_func/ta_CDLRICKSHAWMAN.c + +../../../../../temp/csd/ta_CDLRISEFALL3METHODS.o: ../../../../../src/ta_func/ta_CDLRISEFALL3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLRISEFALL3METHODS.o ../../../../../src/ta_func/ta_CDLRISEFALL3METHODS.c + +../../../../../temp/csd/ta_CDLSEPARATINGLINES.o: ../../../../../src/ta_func/ta_CDLSEPARATINGLINES.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLSEPARATINGLINES.o ../../../../../src/ta_func/ta_CDLSEPARATINGLINES.c + +../../../../../temp/csd/ta_CDLSHOOTINGSTAR.o: ../../../../../src/ta_func/ta_CDLSHOOTINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLSHOOTINGSTAR.o ../../../../../src/ta_func/ta_CDLSHOOTINGSTAR.c + +../../../../../temp/csd/ta_CDLSHORTLINE.o: ../../../../../src/ta_func/ta_CDLSHORTLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLSHORTLINE.o ../../../../../src/ta_func/ta_CDLSHORTLINE.c + +../../../../../temp/csd/ta_CDLSPINNINGTOP.o: ../../../../../src/ta_func/ta_CDLSPINNINGTOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLSPINNINGTOP.o ../../../../../src/ta_func/ta_CDLSPINNINGTOP.c + +../../../../../temp/csd/ta_CDLSTALLEDPATTERN.o: ../../../../../src/ta_func/ta_CDLSTALLEDPATTERN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLSTALLEDPATTERN.o ../../../../../src/ta_func/ta_CDLSTALLEDPATTERN.c + +../../../../../temp/csd/ta_CDLSTICKSANDWICH.o: ../../../../../src/ta_func/ta_CDLSTICKSANDWICH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLSTICKSANDWICH.o ../../../../../src/ta_func/ta_CDLSTICKSANDWICH.c + +../../../../../temp/csd/ta_CDLTAKURI.o: ../../../../../src/ta_func/ta_CDLTAKURI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLTAKURI.o ../../../../../src/ta_func/ta_CDLTAKURI.c + +../../../../../temp/csd/ta_CDLTASUKIGAP.o: ../../../../../src/ta_func/ta_CDLTASUKIGAP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLTASUKIGAP.o ../../../../../src/ta_func/ta_CDLTASUKIGAP.c + +../../../../../temp/csd/ta_CDLTHRUSTING.o: ../../../../../src/ta_func/ta_CDLTHRUSTING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLTHRUSTING.o ../../../../../src/ta_func/ta_CDLTHRUSTING.c + +../../../../../temp/csd/ta_CDLTRISTAR.o: ../../../../../src/ta_func/ta_CDLTRISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLTRISTAR.o ../../../../../src/ta_func/ta_CDLTRISTAR.c + +../../../../../temp/csd/ta_CDLUNIQUE3RIVER.o: ../../../../../src/ta_func/ta_CDLUNIQUE3RIVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLUNIQUE3RIVER.o ../../../../../src/ta_func/ta_CDLUNIQUE3RIVER.c + +../../../../../temp/csd/ta_CDLUPSIDEGAP2CROWS.o: ../../../../../src/ta_func/ta_CDLUPSIDEGAP2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLUPSIDEGAP2CROWS.o ../../../../../src/ta_func/ta_CDLUPSIDEGAP2CROWS.c + +../../../../../temp/csd/ta_CDLXSIDEGAP3METHODS.o: ../../../../../src/ta_func/ta_CDLXSIDEGAP3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLXSIDEGAP3METHODS.o ../../../../../src/ta_func/ta_CDLXSIDEGAP3METHODS.c + +../../../../../temp/csd/ta_CEIL.o: ../../../../../src/ta_func/ta_CEIL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CEIL.o ../../../../../src/ta_func/ta_CEIL.c + +../../../../../temp/csd/ta_CMO.o: ../../../../../src/ta_func/ta_CMO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CMO.o ../../../../../src/ta_func/ta_CMO.c + +../../../../../temp/csd/ta_CORREL.o: ../../../../../src/ta_func/ta_CORREL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CORREL.o ../../../../../src/ta_func/ta_CORREL.c + +../../../../../temp/csd/ta_COS.o: ../../../../../src/ta_func/ta_COS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_COS.o ../../../../../src/ta_func/ta_COS.c + +../../../../../temp/csd/ta_COSH.o: ../../../../../src/ta_func/ta_COSH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_COSH.o ../../../../../src/ta_func/ta_COSH.c + +../../../../../temp/csd/ta_DEMA.o: ../../../../../src/ta_func/ta_DEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_DEMA.o ../../../../../src/ta_func/ta_DEMA.c + +../../../../../temp/csd/ta_DIV.o: ../../../../../src/ta_func/ta_DIV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_DIV.o ../../../../../src/ta_func/ta_DIV.c + +../../../../../temp/csd/ta_DX.o: ../../../../../src/ta_func/ta_DX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_DX.o ../../../../../src/ta_func/ta_DX.c + +../../../../../temp/csd/ta_EMA.o: ../../../../../src/ta_func/ta_EMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_EMA.o ../../../../../src/ta_func/ta_EMA.c + +../../../../../temp/csd/ta_EXP.o: ../../../../../src/ta_func/ta_EXP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_EXP.o ../../../../../src/ta_func/ta_EXP.c + +../../../../../temp/csd/ta_FLOOR.o: ../../../../../src/ta_func/ta_FLOOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_FLOOR.o ../../../../../src/ta_func/ta_FLOOR.c + +../../../../../temp/csd/ta_HT_DCPERIOD.o: ../../../../../src/ta_func/ta_HT_DCPERIOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_HT_DCPERIOD.o ../../../../../src/ta_func/ta_HT_DCPERIOD.c + +../../../../../temp/csd/ta_HT_DCPHASE.o: ../../../../../src/ta_func/ta_HT_DCPHASE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_HT_DCPHASE.o ../../../../../src/ta_func/ta_HT_DCPHASE.c + +../../../../../temp/csd/ta_HT_PHASOR.o: ../../../../../src/ta_func/ta_HT_PHASOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_HT_PHASOR.o ../../../../../src/ta_func/ta_HT_PHASOR.c + +../../../../../temp/csd/ta_HT_SINE.o: ../../../../../src/ta_func/ta_HT_SINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_HT_SINE.o ../../../../../src/ta_func/ta_HT_SINE.c + +../../../../../temp/csd/ta_HT_TRENDLINE.o: ../../../../../src/ta_func/ta_HT_TRENDLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_HT_TRENDLINE.o ../../../../../src/ta_func/ta_HT_TRENDLINE.c + +../../../../../temp/csd/ta_HT_TRENDMODE.o: ../../../../../src/ta_func/ta_HT_TRENDMODE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_HT_TRENDMODE.o ../../../../../src/ta_func/ta_HT_TRENDMODE.c + +../../../../../temp/csd/ta_KAMA.o: ../../../../../src/ta_func/ta_KAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_KAMA.o ../../../../../src/ta_func/ta_KAMA.c + +../../../../../temp/csd/ta_LINEARREG.o: ../../../../../src/ta_func/ta_LINEARREG.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_LINEARREG.o ../../../../../src/ta_func/ta_LINEARREG.c + +../../../../../temp/csd/ta_LINEARREG_ANGLE.o: ../../../../../src/ta_func/ta_LINEARREG_ANGLE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_LINEARREG_ANGLE.o ../../../../../src/ta_func/ta_LINEARREG_ANGLE.c + +../../../../../temp/csd/ta_LINEARREG_INTERCEPT.o: ../../../../../src/ta_func/ta_LINEARREG_INTERCEPT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_LINEARREG_INTERCEPT.o ../../../../../src/ta_func/ta_LINEARREG_INTERCEPT.c + +../../../../../temp/csd/ta_LINEARREG_SLOPE.o: ../../../../../src/ta_func/ta_LINEARREG_SLOPE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_LINEARREG_SLOPE.o ../../../../../src/ta_func/ta_LINEARREG_SLOPE.c + +../../../../../temp/csd/ta_LN.o: ../../../../../src/ta_func/ta_LN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_LN.o ../../../../../src/ta_func/ta_LN.c + +../../../../../temp/csd/ta_LOG10.o: ../../../../../src/ta_func/ta_LOG10.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_LOG10.o ../../../../../src/ta_func/ta_LOG10.c + +../../../../../temp/csd/ta_MA.o: ../../../../../src/ta_func/ta_MA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_MA.o ../../../../../src/ta_func/ta_MA.c + +../../../../../temp/csd/ta_MACD.o: ../../../../../src/ta_func/ta_MACD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_MACD.o ../../../../../src/ta_func/ta_MACD.c + +../../../../../temp/csd/ta_MACDEXT.o: ../../../../../src/ta_func/ta_MACDEXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_MACDEXT.o ../../../../../src/ta_func/ta_MACDEXT.c + +../../../../../temp/csd/ta_MACDFIX.o: ../../../../../src/ta_func/ta_MACDFIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_MACDFIX.o ../../../../../src/ta_func/ta_MACDFIX.c + +../../../../../temp/csd/ta_MAMA.o: ../../../../../src/ta_func/ta_MAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_MAMA.o ../../../../../src/ta_func/ta_MAMA.c + +../../../../../temp/csd/ta_MAVP.o: ../../../../../src/ta_func/ta_MAVP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_MAVP.o ../../../../../src/ta_func/ta_MAVP.c + +../../../../../temp/csd/ta_MAX.o: ../../../../../src/ta_func/ta_MAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_MAX.o ../../../../../src/ta_func/ta_MAX.c + +../../../../../temp/csd/ta_MAXINDEX.o: ../../../../../src/ta_func/ta_MAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_MAXINDEX.o ../../../../../src/ta_func/ta_MAXINDEX.c + +../../../../../temp/csd/ta_MEDPRICE.o: ../../../../../src/ta_func/ta_MEDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_MEDPRICE.o ../../../../../src/ta_func/ta_MEDPRICE.c + +../../../../../temp/csd/ta_MFI.o: ../../../../../src/ta_func/ta_MFI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_MFI.o ../../../../../src/ta_func/ta_MFI.c + +../../../../../temp/csd/ta_MIDPOINT.o: ../../../../../src/ta_func/ta_MIDPOINT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_MIDPOINT.o ../../../../../src/ta_func/ta_MIDPOINT.c + +../../../../../temp/csd/ta_MIDPRICE.o: ../../../../../src/ta_func/ta_MIDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_MIDPRICE.o ../../../../../src/ta_func/ta_MIDPRICE.c + +../../../../../temp/csd/ta_MIN.o: ../../../../../src/ta_func/ta_MIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_MIN.o ../../../../../src/ta_func/ta_MIN.c + +../../../../../temp/csd/ta_MININDEX.o: ../../../../../src/ta_func/ta_MININDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_MININDEX.o ../../../../../src/ta_func/ta_MININDEX.c + +../../../../../temp/csd/ta_MINMAX.o: ../../../../../src/ta_func/ta_MINMAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_MINMAX.o ../../../../../src/ta_func/ta_MINMAX.c + +../../../../../temp/csd/ta_MINMAXINDEX.o: ../../../../../src/ta_func/ta_MINMAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_MINMAXINDEX.o ../../../../../src/ta_func/ta_MINMAXINDEX.c + +../../../../../temp/csd/ta_MINUS_DI.o: ../../../../../src/ta_func/ta_MINUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_MINUS_DI.o ../../../../../src/ta_func/ta_MINUS_DI.c + +../../../../../temp/csd/ta_MINUS_DM.o: ../../../../../src/ta_func/ta_MINUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_MINUS_DM.o ../../../../../src/ta_func/ta_MINUS_DM.c + +../../../../../temp/csd/ta_MOM.o: ../../../../../src/ta_func/ta_MOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_MOM.o ../../../../../src/ta_func/ta_MOM.c + +../../../../../temp/csd/ta_MULT.o: ../../../../../src/ta_func/ta_MULT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_MULT.o ../../../../../src/ta_func/ta_MULT.c + +../../../../../temp/csd/ta_NATR.o: ../../../../../src/ta_func/ta_NATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_NATR.o ../../../../../src/ta_func/ta_NATR.c + +../../../../../temp/csd/ta_OBV.o: ../../../../../src/ta_func/ta_OBV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_OBV.o ../../../../../src/ta_func/ta_OBV.c + +../../../../../temp/csd/ta_PLUS_DI.o: ../../../../../src/ta_func/ta_PLUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_PLUS_DI.o ../../../../../src/ta_func/ta_PLUS_DI.c + +../../../../../temp/csd/ta_PLUS_DM.o: ../../../../../src/ta_func/ta_PLUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_PLUS_DM.o ../../../../../src/ta_func/ta_PLUS_DM.c + +../../../../../temp/csd/ta_PPO.o: ../../../../../src/ta_func/ta_PPO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_PPO.o ../../../../../src/ta_func/ta_PPO.c + +../../../../../temp/csd/ta_ROC.o: ../../../../../src/ta_func/ta_ROC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_ROC.o ../../../../../src/ta_func/ta_ROC.c + +../../../../../temp/csd/ta_ROCP.o: ../../../../../src/ta_func/ta_ROCP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_ROCP.o ../../../../../src/ta_func/ta_ROCP.c + +../../../../../temp/csd/ta_ROCR.o: ../../../../../src/ta_func/ta_ROCR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_ROCR.o ../../../../../src/ta_func/ta_ROCR.c + +../../../../../temp/csd/ta_ROCR100.o: ../../../../../src/ta_func/ta_ROCR100.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_ROCR100.o ../../../../../src/ta_func/ta_ROCR100.c + +../../../../../temp/csd/ta_RSI.o: ../../../../../src/ta_func/ta_RSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_RSI.o ../../../../../src/ta_func/ta_RSI.c + +../../../../../temp/csd/ta_SAR.o: ../../../../../src/ta_func/ta_SAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_SAR.o ../../../../../src/ta_func/ta_SAR.c + +../../../../../temp/csd/ta_SAREXT.o: ../../../../../src/ta_func/ta_SAREXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_SAREXT.o ../../../../../src/ta_func/ta_SAREXT.c + +../../../../../temp/csd/ta_SIN.o: ../../../../../src/ta_func/ta_SIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_SIN.o ../../../../../src/ta_func/ta_SIN.c + +../../../../../temp/csd/ta_SINH.o: ../../../../../src/ta_func/ta_SINH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_SINH.o ../../../../../src/ta_func/ta_SINH.c + +../../../../../temp/csd/ta_SMA.o: ../../../../../src/ta_func/ta_SMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_SMA.o ../../../../../src/ta_func/ta_SMA.c + +../../../../../temp/csd/ta_SQRT.o: ../../../../../src/ta_func/ta_SQRT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_SQRT.o ../../../../../src/ta_func/ta_SQRT.c + +../../../../../temp/csd/ta_STDDEV.o: ../../../../../src/ta_func/ta_STDDEV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_STDDEV.o ../../../../../src/ta_func/ta_STDDEV.c + +../../../../../temp/csd/ta_STOCH.o: ../../../../../src/ta_func/ta_STOCH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_STOCH.o ../../../../../src/ta_func/ta_STOCH.c + +../../../../../temp/csd/ta_STOCHF.o: ../../../../../src/ta_func/ta_STOCHF.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_STOCHF.o ../../../../../src/ta_func/ta_STOCHF.c + +../../../../../temp/csd/ta_STOCHRSI.o: ../../../../../src/ta_func/ta_STOCHRSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_STOCHRSI.o ../../../../../src/ta_func/ta_STOCHRSI.c + +../../../../../temp/csd/ta_SUB.o: ../../../../../src/ta_func/ta_SUB.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_SUB.o ../../../../../src/ta_func/ta_SUB.c + +../../../../../temp/csd/ta_SUM.o: ../../../../../src/ta_func/ta_SUM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_SUM.o ../../../../../src/ta_func/ta_SUM.c + +../../../../../temp/csd/ta_T3.o: ../../../../../src/ta_func/ta_T3.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_T3.o ../../../../../src/ta_func/ta_T3.c + +../../../../../temp/csd/ta_TAN.o: ../../../../../src/ta_func/ta_TAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_TAN.o ../../../../../src/ta_func/ta_TAN.c + +../../../../../temp/csd/ta_TANH.o: ../../../../../src/ta_func/ta_TANH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_TANH.o ../../../../../src/ta_func/ta_TANH.c + +../../../../../temp/csd/ta_TEMA.o: ../../../../../src/ta_func/ta_TEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_TEMA.o ../../../../../src/ta_func/ta_TEMA.c + +../../../../../temp/csd/ta_TRANGE.o: ../../../../../src/ta_func/ta_TRANGE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_TRANGE.o ../../../../../src/ta_func/ta_TRANGE.c + +../../../../../temp/csd/ta_TRIMA.o: ../../../../../src/ta_func/ta_TRIMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_TRIMA.o ../../../../../src/ta_func/ta_TRIMA.c + +../../../../../temp/csd/ta_TRIX.o: ../../../../../src/ta_func/ta_TRIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_TRIX.o ../../../../../src/ta_func/ta_TRIX.c + +../../../../../temp/csd/ta_TSF.o: ../../../../../src/ta_func/ta_TSF.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_TSF.o ../../../../../src/ta_func/ta_TSF.c + +../../../../../temp/csd/ta_TYPPRICE.o: ../../../../../src/ta_func/ta_TYPPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_TYPPRICE.o ../../../../../src/ta_func/ta_TYPPRICE.c + +../../../../../temp/csd/ta_ULTOSC.o: ../../../../../src/ta_func/ta_ULTOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_ULTOSC.o ../../../../../src/ta_func/ta_ULTOSC.c + +../../../../../temp/csd/ta_VAR.o: ../../../../../src/ta_func/ta_VAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_VAR.o ../../../../../src/ta_func/ta_VAR.c + +../../../../../temp/csd/ta_WCLPRICE.o: ../../../../../src/ta_func/ta_WCLPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_WCLPRICE.o ../../../../../src/ta_func/ta_WCLPRICE.c + +../../../../../temp/csd/ta_WILLR.o: ../../../../../src/ta_func/ta_WILLR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_WILLR.o ../../../../../src/ta_func/ta_WILLR.c + +../../../../../temp/csd/ta_WMA.o: ../../../../../src/ta_func/ta_WMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_WMA.o ../../../../../src/ta_func/ta_WMA.c + diff --git a/make/csd/linux/g++/ta_libc/Makefile b/make/csd/linux/g++/ta_libc/Makefile new file mode 100644 index 000000000..bbd1c7ac5 --- /dev/null +++ b/make/csd/linux/g++/ta_libc/Makefile @@ -0,0 +1,1053 @@ +############################################################################# +# Makefile for building ../../../../../lib/libta_libc_csd.a +# Generated by tmake; +# Project: ta_libc/ta_libc +# Template: lib +############################################################################# + +####### Compiler, tools and options + +CC = gcc +CXX = g++ +CFLAGS = -pipe -fPIC -Wall -W -g -DTA_DEBUG -D_DEBUG -DTA_SINGLE_THREAD +CXXFLAGS= -pipe -fPIC -Wall -W -g -DTA_DEBUG -D_DEBUG -DTA_SINGLE_THREAD +INCPATH = -I../../../../../src/ta_common -I../../../../../include -I../../../../../src/ta_abstract -I../../../../../src/ta_abstract/tables -I../../../../../src/ta_abstract/frames -I$(QTDIR)/include +AR = ar cqs +RANLIB = +MOC = $(QTDIR)/bin/moc +UIC = $(QTDIR)/bin/uic + +TAR = tar -cf +GZIP = gzip -9f + +####### Support for 64-bit systems +ifeq ($(shell uname -m), x86_64) + CFLAGS += -march=x86-64 -m64 -D__64BIT__ + CXXFLAGS += -march=x86-64 -m64 -D__64BIT__ +endif + +####### Apply additional overruling user flags, if any +CFLAGS += $(CUSERFLAGS) +CXXFLAGS += $(CUSERFLAGS) + +####### Files + +HEADERS = +SOURCES = ../../../../../src/ta_common/ta_global.c \ + ../../../../../src/ta_common/ta_retcode.c \ + ../../../../../src/ta_common/ta_version.c \ + ../../../../../src/ta_abstract/ta_abstract.c \ + ../../../../../src/ta_abstract/ta_def_ui.c \ + ../../../../../src/ta_abstract/ta_func_api.c \ + ../../../../../src/ta_abstract/ta_group_idx.c \ + ../../../../../src/ta_abstract/frames/ta_frame.c \ + ../../../../../src/ta_abstract/tables/table_a.c \ + ../../../../../src/ta_abstract/tables/table_b.c \ + ../../../../../src/ta_abstract/tables/table_c.c \ + ../../../../../src/ta_abstract/tables/table_d.c \ + ../../../../../src/ta_abstract/tables/table_e.c \ + ../../../../../src/ta_abstract/tables/table_f.c \ + ../../../../../src/ta_abstract/tables/table_g.c \ + ../../../../../src/ta_abstract/tables/table_h.c \ + ../../../../../src/ta_abstract/tables/table_i.c \ + ../../../../../src/ta_abstract/tables/table_j.c \ + ../../../../../src/ta_abstract/tables/table_k.c \ + ../../../../../src/ta_abstract/tables/table_l.c \ + ../../../../../src/ta_abstract/tables/table_m.c \ + ../../../../../src/ta_abstract/tables/table_n.c \ + ../../../../../src/ta_abstract/tables/table_o.c \ + ../../../../../src/ta_abstract/tables/table_p.c \ + ../../../../../src/ta_abstract/tables/table_q.c \ + ../../../../../src/ta_abstract/tables/table_r.c \ + ../../../../../src/ta_abstract/tables/table_s.c \ + ../../../../../src/ta_abstract/tables/table_t.c \ + ../../../../../src/ta_abstract/tables/table_u.c \ + ../../../../../src/ta_abstract/tables/table_v.c \ + ../../../../../src/ta_abstract/tables/table_w.c \ + ../../../../../src/ta_abstract/tables/table_x.c \ + ../../../../../src/ta_abstract/tables/table_y.c \ + ../../../../../src/ta_abstract/tables/table_z.c \ + ../../../../../src/ta_func/ta_utility.c \ + ../../../../../src/ta_func/ta_ACOS.c \ + ../../../../../src/ta_func/ta_AD.c \ + ../../../../../src/ta_func/ta_ADD.c \ + ../../../../../src/ta_func/ta_ADOSC.c \ + ../../../../../src/ta_func/ta_ADX.c \ + ../../../../../src/ta_func/ta_ADXR.c \ + ../../../../../src/ta_func/ta_APO.c \ + ../../../../../src/ta_func/ta_AROON.c \ + ../../../../../src/ta_func/ta_AROONOSC.c \ + ../../../../../src/ta_func/ta_ASIN.c \ + ../../../../../src/ta_func/ta_ATAN.c \ + ../../../../../src/ta_func/ta_ATR.c \ + ../../../../../src/ta_func/ta_AVGPRICE.c \ + ../../../../../src/ta_func/ta_BBANDS.c \ + ../../../../../src/ta_func/ta_BETA.c \ + ../../../../../src/ta_func/ta_BOP.c \ + ../../../../../src/ta_func/ta_CCI.c \ + ../../../../../src/ta_func/ta_CDL2CROWS.c \ + ../../../../../src/ta_func/ta_CDL3BLACKCROWS.c \ + ../../../../../src/ta_func/ta_CDL3INSIDE.c \ + ../../../../../src/ta_func/ta_CDL3LINESTRIKE.c \ + ../../../../../src/ta_func/ta_CDL3OUTSIDE.c \ + ../../../../../src/ta_func/ta_CDL3STARSINSOUTH.c \ + ../../../../../src/ta_func/ta_CDL3WHITESOLDIERS.c \ + ../../../../../src/ta_func/ta_CDLABANDONEDBABY.c \ + ../../../../../src/ta_func/ta_CDLADVANCEBLOCK.c \ + ../../../../../src/ta_func/ta_CDLBELTHOLD.c \ + ../../../../../src/ta_func/ta_CDLBREAKAWAY.c \ + ../../../../../src/ta_func/ta_CDLCLOSINGMARUBOZU.c \ + ../../../../../src/ta_func/ta_CDLCONCEALBABYSWALL.c \ + ../../../../../src/ta_func/ta_CDLCOUNTERATTACK.c \ + ../../../../../src/ta_func/ta_CDLDARKCLOUDCOVER.c \ + ../../../../../src/ta_func/ta_CDLDOJI.c \ + ../../../../../src/ta_func/ta_CDLDOJISTAR.c \ + ../../../../../src/ta_func/ta_CDLDRAGONFLYDOJI.c \ + ../../../../../src/ta_func/ta_CDLENGULFING.c \ + ../../../../../src/ta_func/ta_CDLEVENINGDOJISTAR.c \ + ../../../../../src/ta_func/ta_CDLEVENINGSTAR.c \ + ../../../../../src/ta_func/ta_CDLGAPSIDESIDEWHITE.c \ + ../../../../../src/ta_func/ta_CDLGRAVESTONEDOJI.c \ + ../../../../../src/ta_func/ta_CDLHAMMER.c \ + ../../../../../src/ta_func/ta_CDLHANGINGMAN.c \ + ../../../../../src/ta_func/ta_CDLHARAMI.c \ + ../../../../../src/ta_func/ta_CDLHARAMICROSS.c \ + ../../../../../src/ta_func/ta_CDLHIGHWAVE.c \ + ../../../../../src/ta_func/ta_CDLHIKKAKE.c \ + ../../../../../src/ta_func/ta_CDLHIKKAKEMOD.c \ + ../../../../../src/ta_func/ta_CDLHOMINGPIGEON.c \ + ../../../../../src/ta_func/ta_CDLIDENTICAL3CROWS.c \ + ../../../../../src/ta_func/ta_CDLINNECK.c \ + ../../../../../src/ta_func/ta_CDLINVERTEDHAMMER.c \ + ../../../../../src/ta_func/ta_CDLKICKING.c \ + ../../../../../src/ta_func/ta_CDLKICKINGBYLENGTH.c \ + ../../../../../src/ta_func/ta_CDLLADDERBOTTOM.c \ + ../../../../../src/ta_func/ta_CDLLONGLEGGEDDOJI.c \ + ../../../../../src/ta_func/ta_CDLLONGLINE.c \ + ../../../../../src/ta_func/ta_CDLMARUBOZU.c \ + ../../../../../src/ta_func/ta_CDLMATCHINGLOW.c \ + ../../../../../src/ta_func/ta_CDLMATHOLD.c \ + ../../../../../src/ta_func/ta_CDLMORNINGDOJISTAR.c \ + ../../../../../src/ta_func/ta_CDLMORNINGSTAR.c \ + ../../../../../src/ta_func/ta_CDLONNECK.c \ + ../../../../../src/ta_func/ta_CDLPIERCING.c \ + ../../../../../src/ta_func/ta_CDLRICKSHAWMAN.c \ + ../../../../../src/ta_func/ta_CDLRISEFALL3METHODS.c \ + ../../../../../src/ta_func/ta_CDLSEPARATINGLINES.c \ + ../../../../../src/ta_func/ta_CDLSHOOTINGSTAR.c \ + ../../../../../src/ta_func/ta_CDLSHORTLINE.c \ + ../../../../../src/ta_func/ta_CDLSPINNINGTOP.c \ + ../../../../../src/ta_func/ta_CDLSTALLEDPATTERN.c \ + ../../../../../src/ta_func/ta_CDLSTICKSANDWICH.c \ + ../../../../../src/ta_func/ta_CDLTAKURI.c \ + ../../../../../src/ta_func/ta_CDLTASUKIGAP.c \ + ../../../../../src/ta_func/ta_CDLTHRUSTING.c \ + ../../../../../src/ta_func/ta_CDLTRISTAR.c \ + ../../../../../src/ta_func/ta_CDLUNIQUE3RIVER.c \ + ../../../../../src/ta_func/ta_CDLUPSIDEGAP2CROWS.c \ + ../../../../../src/ta_func/ta_CDLXSIDEGAP3METHODS.c \ + ../../../../../src/ta_func/ta_CEIL.c \ + ../../../../../src/ta_func/ta_CMO.c \ + ../../../../../src/ta_func/ta_CORREL.c \ + ../../../../../src/ta_func/ta_COS.c \ + ../../../../../src/ta_func/ta_COSH.c \ + ../../../../../src/ta_func/ta_DEMA.c \ + ../../../../../src/ta_func/ta_DIV.c \ + ../../../../../src/ta_func/ta_DX.c \ + ../../../../../src/ta_func/ta_EMA.c \ + ../../../../../src/ta_func/ta_EXP.c \ + ../../../../../src/ta_func/ta_FLOOR.c \ + ../../../../../src/ta_func/ta_HT_DCPERIOD.c \ + ../../../../../src/ta_func/ta_HT_DCPHASE.c \ + ../../../../../src/ta_func/ta_HT_PHASOR.c \ + ../../../../../src/ta_func/ta_HT_SINE.c \ + ../../../../../src/ta_func/ta_HT_TRENDLINE.c \ + ../../../../../src/ta_func/ta_HT_TRENDMODE.c \ + ../../../../../src/ta_func/ta_KAMA.c \ + ../../../../../src/ta_func/ta_LINEARREG.c \ + ../../../../../src/ta_func/ta_LINEARREG_ANGLE.c \ + ../../../../../src/ta_func/ta_LINEARREG_INTERCEPT.c \ + ../../../../../src/ta_func/ta_LINEARREG_SLOPE.c \ + ../../../../../src/ta_func/ta_LN.c \ + ../../../../../src/ta_func/ta_LOG10.c \ + ../../../../../src/ta_func/ta_MA.c \ + ../../../../../src/ta_func/ta_MACD.c \ + ../../../../../src/ta_func/ta_MACDEXT.c \ + ../../../../../src/ta_func/ta_MACDFIX.c \ + ../../../../../src/ta_func/ta_MAMA.c \ + ../../../../../src/ta_func/ta_MAVP.c \ + ../../../../../src/ta_func/ta_MAX.c \ + ../../../../../src/ta_func/ta_MAXINDEX.c \ + ../../../../../src/ta_func/ta_MEDPRICE.c \ + ../../../../../src/ta_func/ta_MFI.c \ + ../../../../../src/ta_func/ta_MIDPOINT.c \ + ../../../../../src/ta_func/ta_MIDPRICE.c \ + ../../../../../src/ta_func/ta_MIN.c \ + ../../../../../src/ta_func/ta_MININDEX.c \ + ../../../../../src/ta_func/ta_MINMAX.c \ + ../../../../../src/ta_func/ta_MINMAXINDEX.c \ + ../../../../../src/ta_func/ta_MINUS_DI.c \ + ../../../../../src/ta_func/ta_MINUS_DM.c \ + ../../../../../src/ta_func/ta_MOM.c \ + ../../../../../src/ta_func/ta_MULT.c \ + ../../../../../src/ta_func/ta_NATR.c \ + ../../../../../src/ta_func/ta_OBV.c \ + ../../../../../src/ta_func/ta_PLUS_DI.c \ + ../../../../../src/ta_func/ta_PLUS_DM.c \ + ../../../../../src/ta_func/ta_PPO.c \ + ../../../../../src/ta_func/ta_ROC.c \ + ../../../../../src/ta_func/ta_ROCP.c \ + ../../../../../src/ta_func/ta_ROCR.c \ + ../../../../../src/ta_func/ta_ROCR100.c \ + ../../../../../src/ta_func/ta_RSI.c \ + ../../../../../src/ta_func/ta_SAR.c \ + ../../../../../src/ta_func/ta_SAREXT.c \ + ../../../../../src/ta_func/ta_SIN.c \ + ../../../../../src/ta_func/ta_SINH.c \ + ../../../../../src/ta_func/ta_SMA.c \ + ../../../../../src/ta_func/ta_SQRT.c \ + ../../../../../src/ta_func/ta_STDDEV.c \ + ../../../../../src/ta_func/ta_STOCH.c \ + ../../../../../src/ta_func/ta_STOCHF.c \ + ../../../../../src/ta_func/ta_STOCHRSI.c \ + ../../../../../src/ta_func/ta_SUB.c \ + ../../../../../src/ta_func/ta_SUM.c \ + ../../../../../src/ta_func/ta_T3.c \ + ../../../../../src/ta_func/ta_TAN.c \ + ../../../../../src/ta_func/ta_TANH.c \ + ../../../../../src/ta_func/ta_TEMA.c \ + ../../../../../src/ta_func/ta_TRANGE.c \ + ../../../../../src/ta_func/ta_TRIMA.c \ + ../../../../../src/ta_func/ta_TRIX.c \ + ../../../../../src/ta_func/ta_TSF.c \ + ../../../../../src/ta_func/ta_TYPPRICE.c \ + ../../../../../src/ta_func/ta_ULTOSC.c \ + ../../../../../src/ta_func/ta_VAR.c \ + ../../../../../src/ta_func/ta_WCLPRICE.c \ + ../../../../../src/ta_func/ta_WILLR.c \ + ../../../../../src/ta_func/ta_WMA.c +OBJECTS = ../../../../../temp/csd/ta_global.o \ + ../../../../../temp/csd/ta_retcode.o \ + ../../../../../temp/csd/ta_version.o \ + ../../../../../temp/csd/ta_abstract.o \ + ../../../../../temp/csd/ta_def_ui.o \ + ../../../../../temp/csd/ta_func_api.o \ + ../../../../../temp/csd/ta_group_idx.o \ + ../../../../../temp/csd/ta_frame.o \ + ../../../../../temp/csd/table_a.o \ + ../../../../../temp/csd/table_b.o \ + ../../../../../temp/csd/table_c.o \ + ../../../../../temp/csd/table_d.o \ + ../../../../../temp/csd/table_e.o \ + ../../../../../temp/csd/table_f.o \ + ../../../../../temp/csd/table_g.o \ + ../../../../../temp/csd/table_h.o \ + ../../../../../temp/csd/table_i.o \ + ../../../../../temp/csd/table_j.o \ + ../../../../../temp/csd/table_k.o \ + ../../../../../temp/csd/table_l.o \ + ../../../../../temp/csd/table_m.o \ + ../../../../../temp/csd/table_n.o \ + ../../../../../temp/csd/table_o.o \ + ../../../../../temp/csd/table_p.o \ + ../../../../../temp/csd/table_q.o \ + ../../../../../temp/csd/table_r.o \ + ../../../../../temp/csd/table_s.o \ + ../../../../../temp/csd/table_t.o \ + ../../../../../temp/csd/table_u.o \ + ../../../../../temp/csd/table_v.o \ + ../../../../../temp/csd/table_w.o \ + ../../../../../temp/csd/table_x.o \ + ../../../../../temp/csd/table_y.o \ + ../../../../../temp/csd/table_z.o \ + ../../../../../temp/csd/ta_utility.o \ + ../../../../../temp/csd/ta_ACOS.o \ + ../../../../../temp/csd/ta_AD.o \ + ../../../../../temp/csd/ta_ADD.o \ + ../../../../../temp/csd/ta_ADOSC.o \ + ../../../../../temp/csd/ta_ADX.o \ + ../../../../../temp/csd/ta_ADXR.o \ + ../../../../../temp/csd/ta_APO.o \ + ../../../../../temp/csd/ta_AROON.o \ + ../../../../../temp/csd/ta_AROONOSC.o \ + ../../../../../temp/csd/ta_ASIN.o \ + ../../../../../temp/csd/ta_ATAN.o \ + ../../../../../temp/csd/ta_ATR.o \ + ../../../../../temp/csd/ta_AVGPRICE.o \ + ../../../../../temp/csd/ta_BBANDS.o \ + ../../../../../temp/csd/ta_BETA.o \ + ../../../../../temp/csd/ta_BOP.o \ + ../../../../../temp/csd/ta_CCI.o \ + ../../../../../temp/csd/ta_CDL2CROWS.o \ + ../../../../../temp/csd/ta_CDL3BLACKCROWS.o \ + ../../../../../temp/csd/ta_CDL3INSIDE.o \ + ../../../../../temp/csd/ta_CDL3LINESTRIKE.o \ + ../../../../../temp/csd/ta_CDL3OUTSIDE.o \ + ../../../../../temp/csd/ta_CDL3STARSINSOUTH.o \ + ../../../../../temp/csd/ta_CDL3WHITESOLDIERS.o \ + ../../../../../temp/csd/ta_CDLABANDONEDBABY.o \ + ../../../../../temp/csd/ta_CDLADVANCEBLOCK.o \ + ../../../../../temp/csd/ta_CDLBELTHOLD.o \ + ../../../../../temp/csd/ta_CDLBREAKAWAY.o \ + ../../../../../temp/csd/ta_CDLCLOSINGMARUBOZU.o \ + ../../../../../temp/csd/ta_CDLCONCEALBABYSWALL.o \ + ../../../../../temp/csd/ta_CDLCOUNTERATTACK.o \ + ../../../../../temp/csd/ta_CDLDARKCLOUDCOVER.o \ + ../../../../../temp/csd/ta_CDLDOJI.o \ + ../../../../../temp/csd/ta_CDLDOJISTAR.o \ + ../../../../../temp/csd/ta_CDLDRAGONFLYDOJI.o \ + ../../../../../temp/csd/ta_CDLENGULFING.o \ + ../../../../../temp/csd/ta_CDLEVENINGDOJISTAR.o \ + ../../../../../temp/csd/ta_CDLEVENINGSTAR.o \ + ../../../../../temp/csd/ta_CDLGAPSIDESIDEWHITE.o \ + ../../../../../temp/csd/ta_CDLGRAVESTONEDOJI.o \ + ../../../../../temp/csd/ta_CDLHAMMER.o \ + ../../../../../temp/csd/ta_CDLHANGINGMAN.o \ + ../../../../../temp/csd/ta_CDLHARAMI.o \ + ../../../../../temp/csd/ta_CDLHARAMICROSS.o \ + ../../../../../temp/csd/ta_CDLHIGHWAVE.o \ + ../../../../../temp/csd/ta_CDLHIKKAKE.o \ + ../../../../../temp/csd/ta_CDLHIKKAKEMOD.o \ + ../../../../../temp/csd/ta_CDLHOMINGPIGEON.o \ + ../../../../../temp/csd/ta_CDLIDENTICAL3CROWS.o \ + ../../../../../temp/csd/ta_CDLINNECK.o \ + ../../../../../temp/csd/ta_CDLINVERTEDHAMMER.o \ + ../../../../../temp/csd/ta_CDLKICKING.o \ + ../../../../../temp/csd/ta_CDLKICKINGBYLENGTH.o \ + ../../../../../temp/csd/ta_CDLLADDERBOTTOM.o \ + ../../../../../temp/csd/ta_CDLLONGLEGGEDDOJI.o \ + ../../../../../temp/csd/ta_CDLLONGLINE.o \ + ../../../../../temp/csd/ta_CDLMARUBOZU.o \ + ../../../../../temp/csd/ta_CDLMATCHINGLOW.o \ + ../../../../../temp/csd/ta_CDLMATHOLD.o \ + ../../../../../temp/csd/ta_CDLMORNINGDOJISTAR.o \ + ../../../../../temp/csd/ta_CDLMORNINGSTAR.o \ + ../../../../../temp/csd/ta_CDLONNECK.o \ + ../../../../../temp/csd/ta_CDLPIERCING.o \ + ../../../../../temp/csd/ta_CDLRICKSHAWMAN.o \ + ../../../../../temp/csd/ta_CDLRISEFALL3METHODS.o \ + ../../../../../temp/csd/ta_CDLSEPARATINGLINES.o \ + ../../../../../temp/csd/ta_CDLSHOOTINGSTAR.o \ + ../../../../../temp/csd/ta_CDLSHORTLINE.o \ + ../../../../../temp/csd/ta_CDLSPINNINGTOP.o \ + ../../../../../temp/csd/ta_CDLSTALLEDPATTERN.o \ + ../../../../../temp/csd/ta_CDLSTICKSANDWICH.o \ + ../../../../../temp/csd/ta_CDLTAKURI.o \ + ../../../../../temp/csd/ta_CDLTASUKIGAP.o \ + ../../../../../temp/csd/ta_CDLTHRUSTING.o \ + ../../../../../temp/csd/ta_CDLTRISTAR.o \ + ../../../../../temp/csd/ta_CDLUNIQUE3RIVER.o \ + ../../../../../temp/csd/ta_CDLUPSIDEGAP2CROWS.o \ + ../../../../../temp/csd/ta_CDLXSIDEGAP3METHODS.o \ + ../../../../../temp/csd/ta_CEIL.o \ + ../../../../../temp/csd/ta_CMO.o \ + ../../../../../temp/csd/ta_CORREL.o \ + ../../../../../temp/csd/ta_COS.o \ + ../../../../../temp/csd/ta_COSH.o \ + ../../../../../temp/csd/ta_DEMA.o \ + ../../../../../temp/csd/ta_DIV.o \ + ../../../../../temp/csd/ta_DX.o \ + ../../../../../temp/csd/ta_EMA.o \ + ../../../../../temp/csd/ta_EXP.o \ + ../../../../../temp/csd/ta_FLOOR.o \ + ../../../../../temp/csd/ta_HT_DCPERIOD.o \ + ../../../../../temp/csd/ta_HT_DCPHASE.o \ + ../../../../../temp/csd/ta_HT_PHASOR.o \ + ../../../../../temp/csd/ta_HT_SINE.o \ + ../../../../../temp/csd/ta_HT_TRENDLINE.o \ + ../../../../../temp/csd/ta_HT_TRENDMODE.o \ + ../../../../../temp/csd/ta_KAMA.o \ + ../../../../../temp/csd/ta_LINEARREG.o \ + ../../../../../temp/csd/ta_LINEARREG_ANGLE.o \ + ../../../../../temp/csd/ta_LINEARREG_INTERCEPT.o \ + ../../../../../temp/csd/ta_LINEARREG_SLOPE.o \ + ../../../../../temp/csd/ta_LN.o \ + ../../../../../temp/csd/ta_LOG10.o \ + ../../../../../temp/csd/ta_MA.o \ + ../../../../../temp/csd/ta_MACD.o \ + ../../../../../temp/csd/ta_MACDEXT.o \ + ../../../../../temp/csd/ta_MACDFIX.o \ + ../../../../../temp/csd/ta_MAMA.o \ + ../../../../../temp/csd/ta_MAVP.o \ + ../../../../../temp/csd/ta_MAX.o \ + ../../../../../temp/csd/ta_MAXINDEX.o \ + ../../../../../temp/csd/ta_MEDPRICE.o \ + ../../../../../temp/csd/ta_MFI.o \ + ../../../../../temp/csd/ta_MIDPOINT.o \ + ../../../../../temp/csd/ta_MIDPRICE.o \ + ../../../../../temp/csd/ta_MIN.o \ + ../../../../../temp/csd/ta_MININDEX.o \ + ../../../../../temp/csd/ta_MINMAX.o \ + ../../../../../temp/csd/ta_MINMAXINDEX.o \ + ../../../../../temp/csd/ta_MINUS_DI.o \ + ../../../../../temp/csd/ta_MINUS_DM.o \ + ../../../../../temp/csd/ta_MOM.o \ + ../../../../../temp/csd/ta_MULT.o \ + ../../../../../temp/csd/ta_NATR.o \ + ../../../../../temp/csd/ta_OBV.o \ + ../../../../../temp/csd/ta_PLUS_DI.o \ + ../../../../../temp/csd/ta_PLUS_DM.o \ + ../../../../../temp/csd/ta_PPO.o \ + ../../../../../temp/csd/ta_ROC.o \ + ../../../../../temp/csd/ta_ROCP.o \ + ../../../../../temp/csd/ta_ROCR.o \ + ../../../../../temp/csd/ta_ROCR100.o \ + ../../../../../temp/csd/ta_RSI.o \ + ../../../../../temp/csd/ta_SAR.o \ + ../../../../../temp/csd/ta_SAREXT.o \ + ../../../../../temp/csd/ta_SIN.o \ + ../../../../../temp/csd/ta_SINH.o \ + ../../../../../temp/csd/ta_SMA.o \ + ../../../../../temp/csd/ta_SQRT.o \ + ../../../../../temp/csd/ta_STDDEV.o \ + ../../../../../temp/csd/ta_STOCH.o \ + ../../../../../temp/csd/ta_STOCHF.o \ + ../../../../../temp/csd/ta_STOCHRSI.o \ + ../../../../../temp/csd/ta_SUB.o \ + ../../../../../temp/csd/ta_SUM.o \ + ../../../../../temp/csd/ta_T3.o \ + ../../../../../temp/csd/ta_TAN.o \ + ../../../../../temp/csd/ta_TANH.o \ + ../../../../../temp/csd/ta_TEMA.o \ + ../../../../../temp/csd/ta_TRANGE.o \ + ../../../../../temp/csd/ta_TRIMA.o \ + ../../../../../temp/csd/ta_TRIX.o \ + ../../../../../temp/csd/ta_TSF.o \ + ../../../../../temp/csd/ta_TYPPRICE.o \ + ../../../../../temp/csd/ta_ULTOSC.o \ + ../../../../../temp/csd/ta_VAR.o \ + ../../../../../temp/csd/ta_WCLPRICE.o \ + ../../../../../temp/csd/ta_WILLR.o \ + ../../../../../temp/csd/ta_WMA.o +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ../../../../../lib/libta_libc_csd.a +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .C .c + +.cpp.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cxx.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cc.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.C.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.c.o: + $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $< + +####### Build rules + + +all: $(TARGET) + +staticlib: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + -rm -f $(TARGET) + $(AR) $(TARGET) $(OBJECTS) $(OBJMOC) + +moc: $(SRCMOC) + +clean: + -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) + -rm -f *~ core + +####### Sub-libraries + + +###### Combined headers + + +####### Compile + +../../../../../temp/csd/ta_global.o: ../../../../../src/ta_common/ta_global.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_global.o ../../../../../src/ta_common/ta_global.c + +../../../../../temp/csd/ta_retcode.o: ../../../../../src/ta_common/ta_retcode.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_retcode.o ../../../../../src/ta_common/ta_retcode.c + +../../../../../temp/csd/ta_version.o: ../../../../../src/ta_common/ta_version.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_version.o ../../../../../src/ta_common/ta_version.c + +../../../../../temp/csd/ta_abstract.o: ../../../../../src/ta_abstract/ta_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_abstract.o ../../../../../src/ta_abstract/ta_abstract.c + +../../../../../temp/csd/ta_def_ui.o: ../../../../../src/ta_abstract/ta_def_ui.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_def_ui.o ../../../../../src/ta_abstract/ta_def_ui.c + +../../../../../temp/csd/ta_func_api.o: ../../../../../src/ta_abstract/ta_func_api.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_func_api.o ../../../../../src/ta_abstract/ta_func_api.c + +../../../../../temp/csd/ta_group_idx.o: ../../../../../src/ta_abstract/ta_group_idx.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_group_idx.o ../../../../../src/ta_abstract/ta_group_idx.c + +../../../../../temp/csd/ta_frame.o: ../../../../../src/ta_abstract/frames/ta_frame.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_frame.o ../../../../../src/ta_abstract/frames/ta_frame.c + +../../../../../temp/csd/table_a.o: ../../../../../src/ta_abstract/tables/table_a.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_a.o ../../../../../src/ta_abstract/tables/table_a.c + +../../../../../temp/csd/table_b.o: ../../../../../src/ta_abstract/tables/table_b.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_b.o ../../../../../src/ta_abstract/tables/table_b.c + +../../../../../temp/csd/table_c.o: ../../../../../src/ta_abstract/tables/table_c.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_c.o ../../../../../src/ta_abstract/tables/table_c.c + +../../../../../temp/csd/table_d.o: ../../../../../src/ta_abstract/tables/table_d.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_d.o ../../../../../src/ta_abstract/tables/table_d.c + +../../../../../temp/csd/table_e.o: ../../../../../src/ta_abstract/tables/table_e.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_e.o ../../../../../src/ta_abstract/tables/table_e.c + +../../../../../temp/csd/table_f.o: ../../../../../src/ta_abstract/tables/table_f.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_f.o ../../../../../src/ta_abstract/tables/table_f.c + +../../../../../temp/csd/table_g.o: ../../../../../src/ta_abstract/tables/table_g.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_g.o ../../../../../src/ta_abstract/tables/table_g.c + +../../../../../temp/csd/table_h.o: ../../../../../src/ta_abstract/tables/table_h.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_h.o ../../../../../src/ta_abstract/tables/table_h.c + +../../../../../temp/csd/table_i.o: ../../../../../src/ta_abstract/tables/table_i.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_i.o ../../../../../src/ta_abstract/tables/table_i.c + +../../../../../temp/csd/table_j.o: ../../../../../src/ta_abstract/tables/table_j.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_j.o ../../../../../src/ta_abstract/tables/table_j.c + +../../../../../temp/csd/table_k.o: ../../../../../src/ta_abstract/tables/table_k.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_k.o ../../../../../src/ta_abstract/tables/table_k.c + +../../../../../temp/csd/table_l.o: ../../../../../src/ta_abstract/tables/table_l.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_l.o ../../../../../src/ta_abstract/tables/table_l.c + +../../../../../temp/csd/table_m.o: ../../../../../src/ta_abstract/tables/table_m.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_m.o ../../../../../src/ta_abstract/tables/table_m.c + +../../../../../temp/csd/table_n.o: ../../../../../src/ta_abstract/tables/table_n.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_n.o ../../../../../src/ta_abstract/tables/table_n.c + +../../../../../temp/csd/table_o.o: ../../../../../src/ta_abstract/tables/table_o.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_o.o ../../../../../src/ta_abstract/tables/table_o.c + +../../../../../temp/csd/table_p.o: ../../../../../src/ta_abstract/tables/table_p.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_p.o ../../../../../src/ta_abstract/tables/table_p.c + +../../../../../temp/csd/table_q.o: ../../../../../src/ta_abstract/tables/table_q.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_q.o ../../../../../src/ta_abstract/tables/table_q.c + +../../../../../temp/csd/table_r.o: ../../../../../src/ta_abstract/tables/table_r.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_r.o ../../../../../src/ta_abstract/tables/table_r.c + +../../../../../temp/csd/table_s.o: ../../../../../src/ta_abstract/tables/table_s.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_s.o ../../../../../src/ta_abstract/tables/table_s.c + +../../../../../temp/csd/table_t.o: ../../../../../src/ta_abstract/tables/table_t.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_t.o ../../../../../src/ta_abstract/tables/table_t.c + +../../../../../temp/csd/table_u.o: ../../../../../src/ta_abstract/tables/table_u.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_u.o ../../../../../src/ta_abstract/tables/table_u.c + +../../../../../temp/csd/table_v.o: ../../../../../src/ta_abstract/tables/table_v.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_v.o ../../../../../src/ta_abstract/tables/table_v.c + +../../../../../temp/csd/table_w.o: ../../../../../src/ta_abstract/tables/table_w.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_w.o ../../../../../src/ta_abstract/tables/table_w.c + +../../../../../temp/csd/table_x.o: ../../../../../src/ta_abstract/tables/table_x.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_x.o ../../../../../src/ta_abstract/tables/table_x.c + +../../../../../temp/csd/table_y.o: ../../../../../src/ta_abstract/tables/table_y.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_y.o ../../../../../src/ta_abstract/tables/table_y.c + +../../../../../temp/csd/table_z.o: ../../../../../src/ta_abstract/tables/table_z.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/table_z.o ../../../../../src/ta_abstract/tables/table_z.c + +../../../../../temp/csd/ta_utility.o: ../../../../../src/ta_func/ta_utility.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_utility.o ../../../../../src/ta_func/ta_utility.c + +../../../../../temp/csd/ta_ACOS.o: ../../../../../src/ta_func/ta_ACOS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_ACOS.o ../../../../../src/ta_func/ta_ACOS.c + +../../../../../temp/csd/ta_AD.o: ../../../../../src/ta_func/ta_AD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_AD.o ../../../../../src/ta_func/ta_AD.c + +../../../../../temp/csd/ta_ADD.o: ../../../../../src/ta_func/ta_ADD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_ADD.o ../../../../../src/ta_func/ta_ADD.c + +../../../../../temp/csd/ta_ADOSC.o: ../../../../../src/ta_func/ta_ADOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_ADOSC.o ../../../../../src/ta_func/ta_ADOSC.c + +../../../../../temp/csd/ta_ADX.o: ../../../../../src/ta_func/ta_ADX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_ADX.o ../../../../../src/ta_func/ta_ADX.c + +../../../../../temp/csd/ta_ADXR.o: ../../../../../src/ta_func/ta_ADXR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_ADXR.o ../../../../../src/ta_func/ta_ADXR.c + +../../../../../temp/csd/ta_APO.o: ../../../../../src/ta_func/ta_APO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_APO.o ../../../../../src/ta_func/ta_APO.c + +../../../../../temp/csd/ta_AROON.o: ../../../../../src/ta_func/ta_AROON.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_AROON.o ../../../../../src/ta_func/ta_AROON.c + +../../../../../temp/csd/ta_AROONOSC.o: ../../../../../src/ta_func/ta_AROONOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_AROONOSC.o ../../../../../src/ta_func/ta_AROONOSC.c + +../../../../../temp/csd/ta_ASIN.o: ../../../../../src/ta_func/ta_ASIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_ASIN.o ../../../../../src/ta_func/ta_ASIN.c + +../../../../../temp/csd/ta_ATAN.o: ../../../../../src/ta_func/ta_ATAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_ATAN.o ../../../../../src/ta_func/ta_ATAN.c + +../../../../../temp/csd/ta_ATR.o: ../../../../../src/ta_func/ta_ATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_ATR.o ../../../../../src/ta_func/ta_ATR.c + +../../../../../temp/csd/ta_AVGPRICE.o: ../../../../../src/ta_func/ta_AVGPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_AVGPRICE.o ../../../../../src/ta_func/ta_AVGPRICE.c + +../../../../../temp/csd/ta_BBANDS.o: ../../../../../src/ta_func/ta_BBANDS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_BBANDS.o ../../../../../src/ta_func/ta_BBANDS.c + +../../../../../temp/csd/ta_BETA.o: ../../../../../src/ta_func/ta_BETA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_BETA.o ../../../../../src/ta_func/ta_BETA.c + +../../../../../temp/csd/ta_BOP.o: ../../../../../src/ta_func/ta_BOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_BOP.o ../../../../../src/ta_func/ta_BOP.c + +../../../../../temp/csd/ta_CCI.o: ../../../../../src/ta_func/ta_CCI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CCI.o ../../../../../src/ta_func/ta_CCI.c + +../../../../../temp/csd/ta_CDL2CROWS.o: ../../../../../src/ta_func/ta_CDL2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDL2CROWS.o ../../../../../src/ta_func/ta_CDL2CROWS.c + +../../../../../temp/csd/ta_CDL3BLACKCROWS.o: ../../../../../src/ta_func/ta_CDL3BLACKCROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDL3BLACKCROWS.o ../../../../../src/ta_func/ta_CDL3BLACKCROWS.c + +../../../../../temp/csd/ta_CDL3INSIDE.o: ../../../../../src/ta_func/ta_CDL3INSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDL3INSIDE.o ../../../../../src/ta_func/ta_CDL3INSIDE.c + +../../../../../temp/csd/ta_CDL3LINESTRIKE.o: ../../../../../src/ta_func/ta_CDL3LINESTRIKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDL3LINESTRIKE.o ../../../../../src/ta_func/ta_CDL3LINESTRIKE.c + +../../../../../temp/csd/ta_CDL3OUTSIDE.o: ../../../../../src/ta_func/ta_CDL3OUTSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDL3OUTSIDE.o ../../../../../src/ta_func/ta_CDL3OUTSIDE.c + +../../../../../temp/csd/ta_CDL3STARSINSOUTH.o: ../../../../../src/ta_func/ta_CDL3STARSINSOUTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDL3STARSINSOUTH.o ../../../../../src/ta_func/ta_CDL3STARSINSOUTH.c + +../../../../../temp/csd/ta_CDL3WHITESOLDIERS.o: ../../../../../src/ta_func/ta_CDL3WHITESOLDIERS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDL3WHITESOLDIERS.o ../../../../../src/ta_func/ta_CDL3WHITESOLDIERS.c + +../../../../../temp/csd/ta_CDLABANDONEDBABY.o: ../../../../../src/ta_func/ta_CDLABANDONEDBABY.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLABANDONEDBABY.o ../../../../../src/ta_func/ta_CDLABANDONEDBABY.c + +../../../../../temp/csd/ta_CDLADVANCEBLOCK.o: ../../../../../src/ta_func/ta_CDLADVANCEBLOCK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLADVANCEBLOCK.o ../../../../../src/ta_func/ta_CDLADVANCEBLOCK.c + +../../../../../temp/csd/ta_CDLBELTHOLD.o: ../../../../../src/ta_func/ta_CDLBELTHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLBELTHOLD.o ../../../../../src/ta_func/ta_CDLBELTHOLD.c + +../../../../../temp/csd/ta_CDLBREAKAWAY.o: ../../../../../src/ta_func/ta_CDLBREAKAWAY.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLBREAKAWAY.o ../../../../../src/ta_func/ta_CDLBREAKAWAY.c + +../../../../../temp/csd/ta_CDLCLOSINGMARUBOZU.o: ../../../../../src/ta_func/ta_CDLCLOSINGMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLCLOSINGMARUBOZU.o ../../../../../src/ta_func/ta_CDLCLOSINGMARUBOZU.c + +../../../../../temp/csd/ta_CDLCONCEALBABYSWALL.o: ../../../../../src/ta_func/ta_CDLCONCEALBABYSWALL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLCONCEALBABYSWALL.o ../../../../../src/ta_func/ta_CDLCONCEALBABYSWALL.c + +../../../../../temp/csd/ta_CDLCOUNTERATTACK.o: ../../../../../src/ta_func/ta_CDLCOUNTERATTACK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLCOUNTERATTACK.o ../../../../../src/ta_func/ta_CDLCOUNTERATTACK.c + +../../../../../temp/csd/ta_CDLDARKCLOUDCOVER.o: ../../../../../src/ta_func/ta_CDLDARKCLOUDCOVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLDARKCLOUDCOVER.o ../../../../../src/ta_func/ta_CDLDARKCLOUDCOVER.c + +../../../../../temp/csd/ta_CDLDOJI.o: ../../../../../src/ta_func/ta_CDLDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLDOJI.o ../../../../../src/ta_func/ta_CDLDOJI.c + +../../../../../temp/csd/ta_CDLDOJISTAR.o: ../../../../../src/ta_func/ta_CDLDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLDOJISTAR.o ../../../../../src/ta_func/ta_CDLDOJISTAR.c + +../../../../../temp/csd/ta_CDLDRAGONFLYDOJI.o: ../../../../../src/ta_func/ta_CDLDRAGONFLYDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLDRAGONFLYDOJI.o ../../../../../src/ta_func/ta_CDLDRAGONFLYDOJI.c + +../../../../../temp/csd/ta_CDLENGULFING.o: ../../../../../src/ta_func/ta_CDLENGULFING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLENGULFING.o ../../../../../src/ta_func/ta_CDLENGULFING.c + +../../../../../temp/csd/ta_CDLEVENINGDOJISTAR.o: ../../../../../src/ta_func/ta_CDLEVENINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLEVENINGDOJISTAR.o ../../../../../src/ta_func/ta_CDLEVENINGDOJISTAR.c + +../../../../../temp/csd/ta_CDLEVENINGSTAR.o: ../../../../../src/ta_func/ta_CDLEVENINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLEVENINGSTAR.o ../../../../../src/ta_func/ta_CDLEVENINGSTAR.c + +../../../../../temp/csd/ta_CDLGAPSIDESIDEWHITE.o: ../../../../../src/ta_func/ta_CDLGAPSIDESIDEWHITE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLGAPSIDESIDEWHITE.o ../../../../../src/ta_func/ta_CDLGAPSIDESIDEWHITE.c + +../../../../../temp/csd/ta_CDLGRAVESTONEDOJI.o: ../../../../../src/ta_func/ta_CDLGRAVESTONEDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLGRAVESTONEDOJI.o ../../../../../src/ta_func/ta_CDLGRAVESTONEDOJI.c + +../../../../../temp/csd/ta_CDLHAMMER.o: ../../../../../src/ta_func/ta_CDLHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLHAMMER.o ../../../../../src/ta_func/ta_CDLHAMMER.c + +../../../../../temp/csd/ta_CDLHANGINGMAN.o: ../../../../../src/ta_func/ta_CDLHANGINGMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLHANGINGMAN.o ../../../../../src/ta_func/ta_CDLHANGINGMAN.c + +../../../../../temp/csd/ta_CDLHARAMI.o: ../../../../../src/ta_func/ta_CDLHARAMI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLHARAMI.o ../../../../../src/ta_func/ta_CDLHARAMI.c + +../../../../../temp/csd/ta_CDLHARAMICROSS.o: ../../../../../src/ta_func/ta_CDLHARAMICROSS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLHARAMICROSS.o ../../../../../src/ta_func/ta_CDLHARAMICROSS.c + +../../../../../temp/csd/ta_CDLHIGHWAVE.o: ../../../../../src/ta_func/ta_CDLHIGHWAVE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLHIGHWAVE.o ../../../../../src/ta_func/ta_CDLHIGHWAVE.c + +../../../../../temp/csd/ta_CDLHIKKAKE.o: ../../../../../src/ta_func/ta_CDLHIKKAKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLHIKKAKE.o ../../../../../src/ta_func/ta_CDLHIKKAKE.c + +../../../../../temp/csd/ta_CDLHIKKAKEMOD.o: ../../../../../src/ta_func/ta_CDLHIKKAKEMOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLHIKKAKEMOD.o ../../../../../src/ta_func/ta_CDLHIKKAKEMOD.c + +../../../../../temp/csd/ta_CDLHOMINGPIGEON.o: ../../../../../src/ta_func/ta_CDLHOMINGPIGEON.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLHOMINGPIGEON.o ../../../../../src/ta_func/ta_CDLHOMINGPIGEON.c + +../../../../../temp/csd/ta_CDLIDENTICAL3CROWS.o: ../../../../../src/ta_func/ta_CDLIDENTICAL3CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLIDENTICAL3CROWS.o ../../../../../src/ta_func/ta_CDLIDENTICAL3CROWS.c + +../../../../../temp/csd/ta_CDLINNECK.o: ../../../../../src/ta_func/ta_CDLINNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLINNECK.o ../../../../../src/ta_func/ta_CDLINNECK.c + +../../../../../temp/csd/ta_CDLINVERTEDHAMMER.o: ../../../../../src/ta_func/ta_CDLINVERTEDHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLINVERTEDHAMMER.o ../../../../../src/ta_func/ta_CDLINVERTEDHAMMER.c + +../../../../../temp/csd/ta_CDLKICKING.o: ../../../../../src/ta_func/ta_CDLKICKING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLKICKING.o ../../../../../src/ta_func/ta_CDLKICKING.c + +../../../../../temp/csd/ta_CDLKICKINGBYLENGTH.o: ../../../../../src/ta_func/ta_CDLKICKINGBYLENGTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLKICKINGBYLENGTH.o ../../../../../src/ta_func/ta_CDLKICKINGBYLENGTH.c + +../../../../../temp/csd/ta_CDLLADDERBOTTOM.o: ../../../../../src/ta_func/ta_CDLLADDERBOTTOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLLADDERBOTTOM.o ../../../../../src/ta_func/ta_CDLLADDERBOTTOM.c + +../../../../../temp/csd/ta_CDLLONGLEGGEDDOJI.o: ../../../../../src/ta_func/ta_CDLLONGLEGGEDDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLLONGLEGGEDDOJI.o ../../../../../src/ta_func/ta_CDLLONGLEGGEDDOJI.c + +../../../../../temp/csd/ta_CDLLONGLINE.o: ../../../../../src/ta_func/ta_CDLLONGLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLLONGLINE.o ../../../../../src/ta_func/ta_CDLLONGLINE.c + +../../../../../temp/csd/ta_CDLMARUBOZU.o: ../../../../../src/ta_func/ta_CDLMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLMARUBOZU.o ../../../../../src/ta_func/ta_CDLMARUBOZU.c + +../../../../../temp/csd/ta_CDLMATCHINGLOW.o: ../../../../../src/ta_func/ta_CDLMATCHINGLOW.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLMATCHINGLOW.o ../../../../../src/ta_func/ta_CDLMATCHINGLOW.c + +../../../../../temp/csd/ta_CDLMATHOLD.o: ../../../../../src/ta_func/ta_CDLMATHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLMATHOLD.o ../../../../../src/ta_func/ta_CDLMATHOLD.c + +../../../../../temp/csd/ta_CDLMORNINGDOJISTAR.o: ../../../../../src/ta_func/ta_CDLMORNINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLMORNINGDOJISTAR.o ../../../../../src/ta_func/ta_CDLMORNINGDOJISTAR.c + +../../../../../temp/csd/ta_CDLMORNINGSTAR.o: ../../../../../src/ta_func/ta_CDLMORNINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLMORNINGSTAR.o ../../../../../src/ta_func/ta_CDLMORNINGSTAR.c + +../../../../../temp/csd/ta_CDLONNECK.o: ../../../../../src/ta_func/ta_CDLONNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLONNECK.o ../../../../../src/ta_func/ta_CDLONNECK.c + +../../../../../temp/csd/ta_CDLPIERCING.o: ../../../../../src/ta_func/ta_CDLPIERCING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLPIERCING.o ../../../../../src/ta_func/ta_CDLPIERCING.c + +../../../../../temp/csd/ta_CDLRICKSHAWMAN.o: ../../../../../src/ta_func/ta_CDLRICKSHAWMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLRICKSHAWMAN.o ../../../../../src/ta_func/ta_CDLRICKSHAWMAN.c + +../../../../../temp/csd/ta_CDLRISEFALL3METHODS.o: ../../../../../src/ta_func/ta_CDLRISEFALL3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLRISEFALL3METHODS.o ../../../../../src/ta_func/ta_CDLRISEFALL3METHODS.c + +../../../../../temp/csd/ta_CDLSEPARATINGLINES.o: ../../../../../src/ta_func/ta_CDLSEPARATINGLINES.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLSEPARATINGLINES.o ../../../../../src/ta_func/ta_CDLSEPARATINGLINES.c + +../../../../../temp/csd/ta_CDLSHOOTINGSTAR.o: ../../../../../src/ta_func/ta_CDLSHOOTINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLSHOOTINGSTAR.o ../../../../../src/ta_func/ta_CDLSHOOTINGSTAR.c + +../../../../../temp/csd/ta_CDLSHORTLINE.o: ../../../../../src/ta_func/ta_CDLSHORTLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLSHORTLINE.o ../../../../../src/ta_func/ta_CDLSHORTLINE.c + +../../../../../temp/csd/ta_CDLSPINNINGTOP.o: ../../../../../src/ta_func/ta_CDLSPINNINGTOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLSPINNINGTOP.o ../../../../../src/ta_func/ta_CDLSPINNINGTOP.c + +../../../../../temp/csd/ta_CDLSTALLEDPATTERN.o: ../../../../../src/ta_func/ta_CDLSTALLEDPATTERN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLSTALLEDPATTERN.o ../../../../../src/ta_func/ta_CDLSTALLEDPATTERN.c + +../../../../../temp/csd/ta_CDLSTICKSANDWICH.o: ../../../../../src/ta_func/ta_CDLSTICKSANDWICH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLSTICKSANDWICH.o ../../../../../src/ta_func/ta_CDLSTICKSANDWICH.c + +../../../../../temp/csd/ta_CDLTAKURI.o: ../../../../../src/ta_func/ta_CDLTAKURI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLTAKURI.o ../../../../../src/ta_func/ta_CDLTAKURI.c + +../../../../../temp/csd/ta_CDLTASUKIGAP.o: ../../../../../src/ta_func/ta_CDLTASUKIGAP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLTASUKIGAP.o ../../../../../src/ta_func/ta_CDLTASUKIGAP.c + +../../../../../temp/csd/ta_CDLTHRUSTING.o: ../../../../../src/ta_func/ta_CDLTHRUSTING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLTHRUSTING.o ../../../../../src/ta_func/ta_CDLTHRUSTING.c + +../../../../../temp/csd/ta_CDLTRISTAR.o: ../../../../../src/ta_func/ta_CDLTRISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLTRISTAR.o ../../../../../src/ta_func/ta_CDLTRISTAR.c + +../../../../../temp/csd/ta_CDLUNIQUE3RIVER.o: ../../../../../src/ta_func/ta_CDLUNIQUE3RIVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLUNIQUE3RIVER.o ../../../../../src/ta_func/ta_CDLUNIQUE3RIVER.c + +../../../../../temp/csd/ta_CDLUPSIDEGAP2CROWS.o: ../../../../../src/ta_func/ta_CDLUPSIDEGAP2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLUPSIDEGAP2CROWS.o ../../../../../src/ta_func/ta_CDLUPSIDEGAP2CROWS.c + +../../../../../temp/csd/ta_CDLXSIDEGAP3METHODS.o: ../../../../../src/ta_func/ta_CDLXSIDEGAP3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CDLXSIDEGAP3METHODS.o ../../../../../src/ta_func/ta_CDLXSIDEGAP3METHODS.c + +../../../../../temp/csd/ta_CEIL.o: ../../../../../src/ta_func/ta_CEIL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CEIL.o ../../../../../src/ta_func/ta_CEIL.c + +../../../../../temp/csd/ta_CMO.o: ../../../../../src/ta_func/ta_CMO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CMO.o ../../../../../src/ta_func/ta_CMO.c + +../../../../../temp/csd/ta_CORREL.o: ../../../../../src/ta_func/ta_CORREL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_CORREL.o ../../../../../src/ta_func/ta_CORREL.c + +../../../../../temp/csd/ta_COS.o: ../../../../../src/ta_func/ta_COS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_COS.o ../../../../../src/ta_func/ta_COS.c + +../../../../../temp/csd/ta_COSH.o: ../../../../../src/ta_func/ta_COSH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_COSH.o ../../../../../src/ta_func/ta_COSH.c + +../../../../../temp/csd/ta_DEMA.o: ../../../../../src/ta_func/ta_DEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_DEMA.o ../../../../../src/ta_func/ta_DEMA.c + +../../../../../temp/csd/ta_DIV.o: ../../../../../src/ta_func/ta_DIV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_DIV.o ../../../../../src/ta_func/ta_DIV.c + +../../../../../temp/csd/ta_DX.o: ../../../../../src/ta_func/ta_DX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_DX.o ../../../../../src/ta_func/ta_DX.c + +../../../../../temp/csd/ta_EMA.o: ../../../../../src/ta_func/ta_EMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_EMA.o ../../../../../src/ta_func/ta_EMA.c + +../../../../../temp/csd/ta_EXP.o: ../../../../../src/ta_func/ta_EXP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_EXP.o ../../../../../src/ta_func/ta_EXP.c + +../../../../../temp/csd/ta_FLOOR.o: ../../../../../src/ta_func/ta_FLOOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_FLOOR.o ../../../../../src/ta_func/ta_FLOOR.c + +../../../../../temp/csd/ta_HT_DCPERIOD.o: ../../../../../src/ta_func/ta_HT_DCPERIOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_HT_DCPERIOD.o ../../../../../src/ta_func/ta_HT_DCPERIOD.c + +../../../../../temp/csd/ta_HT_DCPHASE.o: ../../../../../src/ta_func/ta_HT_DCPHASE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_HT_DCPHASE.o ../../../../../src/ta_func/ta_HT_DCPHASE.c + +../../../../../temp/csd/ta_HT_PHASOR.o: ../../../../../src/ta_func/ta_HT_PHASOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_HT_PHASOR.o ../../../../../src/ta_func/ta_HT_PHASOR.c + +../../../../../temp/csd/ta_HT_SINE.o: ../../../../../src/ta_func/ta_HT_SINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_HT_SINE.o ../../../../../src/ta_func/ta_HT_SINE.c + +../../../../../temp/csd/ta_HT_TRENDLINE.o: ../../../../../src/ta_func/ta_HT_TRENDLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_HT_TRENDLINE.o ../../../../../src/ta_func/ta_HT_TRENDLINE.c + +../../../../../temp/csd/ta_HT_TRENDMODE.o: ../../../../../src/ta_func/ta_HT_TRENDMODE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_HT_TRENDMODE.o ../../../../../src/ta_func/ta_HT_TRENDMODE.c + +../../../../../temp/csd/ta_KAMA.o: ../../../../../src/ta_func/ta_KAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_KAMA.o ../../../../../src/ta_func/ta_KAMA.c + +../../../../../temp/csd/ta_LINEARREG.o: ../../../../../src/ta_func/ta_LINEARREG.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_LINEARREG.o ../../../../../src/ta_func/ta_LINEARREG.c + +../../../../../temp/csd/ta_LINEARREG_ANGLE.o: ../../../../../src/ta_func/ta_LINEARREG_ANGLE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_LINEARREG_ANGLE.o ../../../../../src/ta_func/ta_LINEARREG_ANGLE.c + +../../../../../temp/csd/ta_LINEARREG_INTERCEPT.o: ../../../../../src/ta_func/ta_LINEARREG_INTERCEPT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_LINEARREG_INTERCEPT.o ../../../../../src/ta_func/ta_LINEARREG_INTERCEPT.c + +../../../../../temp/csd/ta_LINEARREG_SLOPE.o: ../../../../../src/ta_func/ta_LINEARREG_SLOPE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_LINEARREG_SLOPE.o ../../../../../src/ta_func/ta_LINEARREG_SLOPE.c + +../../../../../temp/csd/ta_LN.o: ../../../../../src/ta_func/ta_LN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_LN.o ../../../../../src/ta_func/ta_LN.c + +../../../../../temp/csd/ta_LOG10.o: ../../../../../src/ta_func/ta_LOG10.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_LOG10.o ../../../../../src/ta_func/ta_LOG10.c + +../../../../../temp/csd/ta_MA.o: ../../../../../src/ta_func/ta_MA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_MA.o ../../../../../src/ta_func/ta_MA.c + +../../../../../temp/csd/ta_MACD.o: ../../../../../src/ta_func/ta_MACD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_MACD.o ../../../../../src/ta_func/ta_MACD.c + +../../../../../temp/csd/ta_MACDEXT.o: ../../../../../src/ta_func/ta_MACDEXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_MACDEXT.o ../../../../../src/ta_func/ta_MACDEXT.c + +../../../../../temp/csd/ta_MACDFIX.o: ../../../../../src/ta_func/ta_MACDFIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_MACDFIX.o ../../../../../src/ta_func/ta_MACDFIX.c + +../../../../../temp/csd/ta_MAMA.o: ../../../../../src/ta_func/ta_MAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_MAMA.o ../../../../../src/ta_func/ta_MAMA.c + +../../../../../temp/csd/ta_MAVP.o: ../../../../../src/ta_func/ta_MAVP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_MAVP.o ../../../../../src/ta_func/ta_MAVP.c + +../../../../../temp/csd/ta_MAX.o: ../../../../../src/ta_func/ta_MAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_MAX.o ../../../../../src/ta_func/ta_MAX.c + +../../../../../temp/csd/ta_MAXINDEX.o: ../../../../../src/ta_func/ta_MAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_MAXINDEX.o ../../../../../src/ta_func/ta_MAXINDEX.c + +../../../../../temp/csd/ta_MEDPRICE.o: ../../../../../src/ta_func/ta_MEDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_MEDPRICE.o ../../../../../src/ta_func/ta_MEDPRICE.c + +../../../../../temp/csd/ta_MFI.o: ../../../../../src/ta_func/ta_MFI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_MFI.o ../../../../../src/ta_func/ta_MFI.c + +../../../../../temp/csd/ta_MIDPOINT.o: ../../../../../src/ta_func/ta_MIDPOINT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_MIDPOINT.o ../../../../../src/ta_func/ta_MIDPOINT.c + +../../../../../temp/csd/ta_MIDPRICE.o: ../../../../../src/ta_func/ta_MIDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_MIDPRICE.o ../../../../../src/ta_func/ta_MIDPRICE.c + +../../../../../temp/csd/ta_MIN.o: ../../../../../src/ta_func/ta_MIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_MIN.o ../../../../../src/ta_func/ta_MIN.c + +../../../../../temp/csd/ta_MININDEX.o: ../../../../../src/ta_func/ta_MININDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_MININDEX.o ../../../../../src/ta_func/ta_MININDEX.c + +../../../../../temp/csd/ta_MINMAX.o: ../../../../../src/ta_func/ta_MINMAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_MINMAX.o ../../../../../src/ta_func/ta_MINMAX.c + +../../../../../temp/csd/ta_MINMAXINDEX.o: ../../../../../src/ta_func/ta_MINMAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_MINMAXINDEX.o ../../../../../src/ta_func/ta_MINMAXINDEX.c + +../../../../../temp/csd/ta_MINUS_DI.o: ../../../../../src/ta_func/ta_MINUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_MINUS_DI.o ../../../../../src/ta_func/ta_MINUS_DI.c + +../../../../../temp/csd/ta_MINUS_DM.o: ../../../../../src/ta_func/ta_MINUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_MINUS_DM.o ../../../../../src/ta_func/ta_MINUS_DM.c + +../../../../../temp/csd/ta_MOM.o: ../../../../../src/ta_func/ta_MOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_MOM.o ../../../../../src/ta_func/ta_MOM.c + +../../../../../temp/csd/ta_MULT.o: ../../../../../src/ta_func/ta_MULT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_MULT.o ../../../../../src/ta_func/ta_MULT.c + +../../../../../temp/csd/ta_NATR.o: ../../../../../src/ta_func/ta_NATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_NATR.o ../../../../../src/ta_func/ta_NATR.c + +../../../../../temp/csd/ta_OBV.o: ../../../../../src/ta_func/ta_OBV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_OBV.o ../../../../../src/ta_func/ta_OBV.c + +../../../../../temp/csd/ta_PLUS_DI.o: ../../../../../src/ta_func/ta_PLUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_PLUS_DI.o ../../../../../src/ta_func/ta_PLUS_DI.c + +../../../../../temp/csd/ta_PLUS_DM.o: ../../../../../src/ta_func/ta_PLUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_PLUS_DM.o ../../../../../src/ta_func/ta_PLUS_DM.c + +../../../../../temp/csd/ta_PPO.o: ../../../../../src/ta_func/ta_PPO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_PPO.o ../../../../../src/ta_func/ta_PPO.c + +../../../../../temp/csd/ta_ROC.o: ../../../../../src/ta_func/ta_ROC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_ROC.o ../../../../../src/ta_func/ta_ROC.c + +../../../../../temp/csd/ta_ROCP.o: ../../../../../src/ta_func/ta_ROCP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_ROCP.o ../../../../../src/ta_func/ta_ROCP.c + +../../../../../temp/csd/ta_ROCR.o: ../../../../../src/ta_func/ta_ROCR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_ROCR.o ../../../../../src/ta_func/ta_ROCR.c + +../../../../../temp/csd/ta_ROCR100.o: ../../../../../src/ta_func/ta_ROCR100.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_ROCR100.o ../../../../../src/ta_func/ta_ROCR100.c + +../../../../../temp/csd/ta_RSI.o: ../../../../../src/ta_func/ta_RSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_RSI.o ../../../../../src/ta_func/ta_RSI.c + +../../../../../temp/csd/ta_SAR.o: ../../../../../src/ta_func/ta_SAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_SAR.o ../../../../../src/ta_func/ta_SAR.c + +../../../../../temp/csd/ta_SAREXT.o: ../../../../../src/ta_func/ta_SAREXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_SAREXT.o ../../../../../src/ta_func/ta_SAREXT.c + +../../../../../temp/csd/ta_SIN.o: ../../../../../src/ta_func/ta_SIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_SIN.o ../../../../../src/ta_func/ta_SIN.c + +../../../../../temp/csd/ta_SINH.o: ../../../../../src/ta_func/ta_SINH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_SINH.o ../../../../../src/ta_func/ta_SINH.c + +../../../../../temp/csd/ta_SMA.o: ../../../../../src/ta_func/ta_SMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_SMA.o ../../../../../src/ta_func/ta_SMA.c + +../../../../../temp/csd/ta_SQRT.o: ../../../../../src/ta_func/ta_SQRT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_SQRT.o ../../../../../src/ta_func/ta_SQRT.c + +../../../../../temp/csd/ta_STDDEV.o: ../../../../../src/ta_func/ta_STDDEV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_STDDEV.o ../../../../../src/ta_func/ta_STDDEV.c + +../../../../../temp/csd/ta_STOCH.o: ../../../../../src/ta_func/ta_STOCH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_STOCH.o ../../../../../src/ta_func/ta_STOCH.c + +../../../../../temp/csd/ta_STOCHF.o: ../../../../../src/ta_func/ta_STOCHF.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_STOCHF.o ../../../../../src/ta_func/ta_STOCHF.c + +../../../../../temp/csd/ta_STOCHRSI.o: ../../../../../src/ta_func/ta_STOCHRSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_STOCHRSI.o ../../../../../src/ta_func/ta_STOCHRSI.c + +../../../../../temp/csd/ta_SUB.o: ../../../../../src/ta_func/ta_SUB.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_SUB.o ../../../../../src/ta_func/ta_SUB.c + +../../../../../temp/csd/ta_SUM.o: ../../../../../src/ta_func/ta_SUM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_SUM.o ../../../../../src/ta_func/ta_SUM.c + +../../../../../temp/csd/ta_T3.o: ../../../../../src/ta_func/ta_T3.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_T3.o ../../../../../src/ta_func/ta_T3.c + +../../../../../temp/csd/ta_TAN.o: ../../../../../src/ta_func/ta_TAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_TAN.o ../../../../../src/ta_func/ta_TAN.c + +../../../../../temp/csd/ta_TANH.o: ../../../../../src/ta_func/ta_TANH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_TANH.o ../../../../../src/ta_func/ta_TANH.c + +../../../../../temp/csd/ta_TEMA.o: ../../../../../src/ta_func/ta_TEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_TEMA.o ../../../../../src/ta_func/ta_TEMA.c + +../../../../../temp/csd/ta_TRANGE.o: ../../../../../src/ta_func/ta_TRANGE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_TRANGE.o ../../../../../src/ta_func/ta_TRANGE.c + +../../../../../temp/csd/ta_TRIMA.o: ../../../../../src/ta_func/ta_TRIMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_TRIMA.o ../../../../../src/ta_func/ta_TRIMA.c + +../../../../../temp/csd/ta_TRIX.o: ../../../../../src/ta_func/ta_TRIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_TRIX.o ../../../../../src/ta_func/ta_TRIX.c + +../../../../../temp/csd/ta_TSF.o: ../../../../../src/ta_func/ta_TSF.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_TSF.o ../../../../../src/ta_func/ta_TSF.c + +../../../../../temp/csd/ta_TYPPRICE.o: ../../../../../src/ta_func/ta_TYPPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_TYPPRICE.o ../../../../../src/ta_func/ta_TYPPRICE.c + +../../../../../temp/csd/ta_ULTOSC.o: ../../../../../src/ta_func/ta_ULTOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_ULTOSC.o ../../../../../src/ta_func/ta_ULTOSC.c + +../../../../../temp/csd/ta_VAR.o: ../../../../../src/ta_func/ta_VAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_VAR.o ../../../../../src/ta_func/ta_VAR.c + +../../../../../temp/csd/ta_WCLPRICE.o: ../../../../../src/ta_func/ta_WCLPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_WCLPRICE.o ../../../../../src/ta_func/ta_WCLPRICE.c + +../../../../../temp/csd/ta_WILLR.o: ../../../../../src/ta_func/ta_WILLR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_WILLR.o ../../../../../src/ta_func/ta_WILLR.c + +../../../../../temp/csd/ta_WMA.o: ../../../../../src/ta_func/ta_WMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_WMA.o ../../../../../src/ta_func/ta_WMA.c + diff --git a/make/csd/linux/g++/ta_regtest/Makefile b/make/csd/linux/g++/ta_regtest/Makefile new file mode 100644 index 000000000..82e0206fd --- /dev/null +++ b/make/csd/linux/g++/ta_regtest/Makefile @@ -0,0 +1,211 @@ +############################################################################# +# Makefile for building ../../../../../bin/ta_regtest +# Generated by tmake; +# Project: ta_regtest/ta_regtest +# Template: app +############################################################################# + +####### Compiler, tools and options + +CC = gcc +CXX = g++ +CFLAGS = -pipe -fPIC -Wall -W -g -DTA_DEBUG -D_DEBUG -DTA_SINGLE_THREAD +CXXFLAGS= -pipe -fPIC -Wall -W -g -DTA_DEBUG -D_DEBUG -DTA_SINGLE_THREAD +INCPATH = -I../../../../../src/ta_common -I../../../../../src/tools/ta_regtest -I../../../../../src/ta_func -I../../../../../include +LINK = g++ +LFLAGS = +LIBS = $(SUBLIBS) ../../../../../lib/libta_libc_csd.a -ldl +MOC = $(QTDIR)/bin/moc +UIC = $(QTDIR)/bin/uic + +TAR = tar -cf +GZIP = gzip -9f + +####### Support for 64-bit systems +ifeq ($(shell uname -m), x86_64) + CFLAGS += -march=x86-64 -m64 -D__64BIT__ + CXXFLAGS += -march=x86-64 -m64 -D__64BIT__ +endif + +####### Apply additional overruling user flags, if any +CFLAGS += $(CUSERFLAGS) +CXXFLAGS += $(CUSERFLAGS) + +####### Files + +HEADERS = +SOURCES = ../../../../../src/tools/ta_regtest/ta_regtest.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_candlestick.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_1in_1out.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_1in_2out.c \ + ../../../../../src/tools/ta_regtest/test_internals.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_adx.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_bbands.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_ma.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_macd.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_minmax.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_mom.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_per_ema.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hl.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hlc.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hlcv.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_per_ohlc.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_po.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_rsi.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_sar.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_stddev.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_stoch.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_trange.c \ + ../../../../../src/tools/ta_regtest/test_util.c \ + ../../../../../src/tools/ta_regtest/test_data.c \ + ../../../../../src/tools/ta_regtest/test_abstract.c +OBJECTS = ../../../../../temp/csd/ta_regtest.o \ + ../../../../../temp/csd/test_candlestick.o \ + ../../../../../temp/csd/test_1in_1out.o \ + ../../../../../temp/csd/test_1in_2out.o \ + ../../../../../temp/csd/test_internals.o \ + ../../../../../temp/csd/test_adx.o \ + ../../../../../temp/csd/test_bbands.o \ + ../../../../../temp/csd/test_ma.o \ + ../../../../../temp/csd/test_macd.o \ + ../../../../../temp/csd/test_minmax.o \ + ../../../../../temp/csd/test_mom.o \ + ../../../../../temp/csd/test_per_ema.o \ + ../../../../../temp/csd/test_per_hl.o \ + ../../../../../temp/csd/test_per_hlc.o \ + ../../../../../temp/csd/test_per_hlcv.o \ + ../../../../../temp/csd/test_per_ohlc.o \ + ../../../../../temp/csd/test_po.o \ + ../../../../../temp/csd/test_rsi.o \ + ../../../../../temp/csd/test_sar.o \ + ../../../../../temp/csd/test_stddev.o \ + ../../../../../temp/csd/test_stoch.o \ + ../../../../../temp/csd/test_trange.o \ + ../../../../../temp/csd/test_util.o \ + ../../../../../temp/csd/test_data.o \ + ../../../../../temp/csd/test_abstract.o +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ../../../../../bin/ta_regtest +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .C .c + +.cpp.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cxx.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cc.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.C.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.c.o: + $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $< + +####### Build rules + + +all: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS) + +moc: $(SRCMOC) + +clean: + -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) + -rm -f *~ core + +####### Sub-libraries + + +###### Combined headers + + +####### Compile + +../../../../../temp/csd/ta_regtest.o: ../../../../../src/tools/ta_regtest/ta_regtest.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/ta_regtest.o ../../../../../src/tools/ta_regtest/ta_regtest.c + +../../../../../temp/csd/test_candlestick.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_candlestick.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/test_candlestick.o ../../../../../src/tools/ta_regtest/ta_test_func/test_candlestick.c + +../../../../../temp/csd/test_1in_1out.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_1in_1out.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/test_1in_1out.o ../../../../../src/tools/ta_regtest/ta_test_func/test_1in_1out.c + +../../../../../temp/csd/test_1in_2out.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_1in_2out.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/test_1in_2out.o ../../../../../src/tools/ta_regtest/ta_test_func/test_1in_2out.c + +../../../../../temp/csd/test_internals.o: ../../../../../src/tools/ta_regtest/test_internals.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/test_internals.o ../../../../../src/tools/ta_regtest/test_internals.c + +../../../../../temp/csd/test_adx.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_adx.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/test_adx.o ../../../../../src/tools/ta_regtest/ta_test_func/test_adx.c + +../../../../../temp/csd/test_bbands.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_bbands.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/test_bbands.o ../../../../../src/tools/ta_regtest/ta_test_func/test_bbands.c + +../../../../../temp/csd/test_ma.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_ma.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/test_ma.o ../../../../../src/tools/ta_regtest/ta_test_func/test_ma.c + +../../../../../temp/csd/test_macd.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_macd.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/test_macd.o ../../../../../src/tools/ta_regtest/ta_test_func/test_macd.c + +../../../../../temp/csd/test_minmax.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_minmax.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/test_minmax.o ../../../../../src/tools/ta_regtest/ta_test_func/test_minmax.c + +../../../../../temp/csd/test_mom.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_mom.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/test_mom.o ../../../../../src/tools/ta_regtest/ta_test_func/test_mom.c + +../../../../../temp/csd/test_per_ema.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_per_ema.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/test_per_ema.o ../../../../../src/tools/ta_regtest/ta_test_func/test_per_ema.c + +../../../../../temp/csd/test_per_hl.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hl.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/test_per_hl.o ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hl.c + +../../../../../temp/csd/test_per_hlc.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hlc.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/test_per_hlc.o ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hlc.c + +../../../../../temp/csd/test_per_hlcv.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hlcv.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/test_per_hlcv.o ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hlcv.c + +../../../../../temp/csd/test_per_ohlc.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_per_ohlc.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/test_per_ohlc.o ../../../../../src/tools/ta_regtest/ta_test_func/test_per_ohlc.c + +../../../../../temp/csd/test_po.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_po.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/test_po.o ../../../../../src/tools/ta_regtest/ta_test_func/test_po.c + +../../../../../temp/csd/test_rsi.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_rsi.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/test_rsi.o ../../../../../src/tools/ta_regtest/ta_test_func/test_rsi.c + +../../../../../temp/csd/test_sar.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_sar.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/test_sar.o ../../../../../src/tools/ta_regtest/ta_test_func/test_sar.c + +../../../../../temp/csd/test_stddev.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_stddev.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/test_stddev.o ../../../../../src/tools/ta_regtest/ta_test_func/test_stddev.c + +../../../../../temp/csd/test_stoch.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_stoch.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/test_stoch.o ../../../../../src/tools/ta_regtest/ta_test_func/test_stoch.c + +../../../../../temp/csd/test_trange.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_trange.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/test_trange.o ../../../../../src/tools/ta_regtest/ta_test_func/test_trange.c + +../../../../../temp/csd/test_util.o: ../../../../../src/tools/ta_regtest/test_util.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/test_util.o ../../../../../src/tools/ta_regtest/test_util.c + +../../../../../temp/csd/test_data.o: ../../../../../src/tools/ta_regtest/test_data.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/test_data.o ../../../../../src/tools/ta_regtest/test_data.c + +../../../../../temp/csd/test_abstract.o: ../../../../../src/tools/ta_regtest/test_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csd/test_abstract.o ../../../../../src/tools/ta_regtest/test_abstract.c + diff --git a/make/csd/win32/borland/Makefile b/make/csd/win32/borland/Makefile new file mode 100644 index 000000000..fa715e18e --- /dev/null +++ b/make/csd/win32/borland/Makefile @@ -0,0 +1,96 @@ +############################################################################# +# Makefile for building targets in sub directories. +# Generated by tmake; +# Project: rootmake +# Template: subdirs +############################################################################# + +MAKEFILE= Makefile +TMAKE = tmake + +SUBDIRS = ta_common \ + ta_func \ + ta_abstract \ + ta_libc \ + gen_code \ + ta_regtest + +all: $(SUBDIRS) + +ta_common: + cd ta_common + $(MAKE) + @cd .. + +ta_func: + cd ta_func + $(MAKE) + @cd .. + +ta_abstract: + cd ta_abstract + $(MAKE) + @cd .. + +ta_libc: + cd ta_libc + $(MAKE) + @cd .. + +gen_code: + cd gen_code + $(MAKE) + @cd .. + +ta_regtest: + cd ta_regtest + $(MAKE) + @cd .. + + +tmake: ../csd/win32/borland/Makefile + +../csd/win32/borland/Makefile: rootmake.pro + tmake rootmake.pro -o ../csd/win32/borland/Makefile + +tmake_all: + cd ta_common + $(TMAKE) ta_common.pro -o $(MAKEFILE) + @cd .. + cd ta_func + $(TMAKE) ta_func.pro -o $(MAKEFILE) + @cd .. + cd ta_abstract + $(TMAKE) ta_abstract.pro -o $(MAKEFILE) + @cd .. + cd ta_libc + $(TMAKE) ta_libc.pro -o $(MAKEFILE) + @cd .. + cd gen_code + $(TMAKE) gen_code.pro -o $(MAKEFILE) + @cd .. + cd ta_regtest + $(TMAKE) ta_regtest.pro -o $(MAKEFILE) + @cd .. + + +clean: + cd ta_common + $(MAKE) clean + @cd .. + cd ta_func + $(MAKE) clean + @cd .. + cd ta_abstract + $(MAKE) clean + @cd .. + cd ta_libc + $(MAKE) clean + @cd .. + cd gen_code + $(MAKE) clean + @cd .. + cd ta_regtest + $(MAKE) clean + @cd .. + diff --git a/make/csd/win32/borland/gen_code/Makefile b/make/csd/win32/borland/gen_code/Makefile new file mode 100644 index 000000000..dc1180161 --- /dev/null +++ b/make/csd/win32/borland/gen_code/Makefile @@ -0,0 +1,267 @@ +############################################################################# +# Makefile for building gen_code +# Generated by tmake; +# Project: gen_code/gen_code +# Template: app +############################################################################# + +!if !$d(BCB) +BCB = $(MAKEDIR)\.. +!endif + +####### Compiler, tools and options + +CC = bcc32 +CXX = bcc32 +CFLAGS = -x- -RT- -tWR -w -w-8004 -w-8071 -w-8057 -w-8080 -v -DTA_GEN_CODE -DTA_DEBUG -D_DEBUG -DTA_SINGLE_THREAD -DWIN32 +CXXFLAGS= -x- -RT- -tWR -w -w-8004 -w-8071 -w-8057 -w-8080 -v -DTA_GEN_CODE -DTA_DEBUG -D_DEBUG -DTA_SINGLE_THREAD -DWIN32 +INCPATH = -I"..\..\..\..\..\include" -I"..\..\..\..\..\src\ta_common" -I"..\..\..\..\..\src\ta_abstract" -I"..\..\..\..\..\src\ta_abstract\tables" -I"..\..\..\..\..\src\ta_abstract\frames" +LINK = ilink32 +LFLAGS = -L$(BCB)\lib -L$(BCB)\lib\PSDK -c -x -Gn -v -ap -Tpe c0x32.obj +LIBS = import32.lib cw32i.lib ..\..\..\..\..\lib\ta_common_csd.lib +MOC = moc +UIC = uic + +ZIP = zip -r -9 +DEF_FILE = +RES_FILE = + +####### Files + +HEADERS = +SOURCES = ..\..\..\..\..\src\tools\gen_code\gen_code.c \ + ..\..\..\..\..\src\ta_abstract\ta_abstract.c \ + ..\..\..\..\..\src\ta_abstract\ta_def_ui.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_a.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_b.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_c.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_d.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_e.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_f.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_g.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_h.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_i.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_j.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_k.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_l.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_m.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_n.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_o.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_p.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_q.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_r.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_s.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_t.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_u.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_v.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_w.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_x.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_y.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_z.c +OBJECTS = ..\..\..\..\..\temp\csd\gen_code\gen_code.obj \ + ..\..\..\..\..\temp\csd\gen_code\ta_abstract.obj \ + ..\..\..\..\..\temp\csd\gen_code\ta_def_ui.obj \ + ..\..\..\..\..\temp\csd\gen_code\table_a.obj \ + ..\..\..\..\..\temp\csd\gen_code\table_b.obj \ + ..\..\..\..\..\temp\csd\gen_code\table_c.obj \ + ..\..\..\..\..\temp\csd\gen_code\table_d.obj \ + ..\..\..\..\..\temp\csd\gen_code\table_e.obj \ + ..\..\..\..\..\temp\csd\gen_code\table_f.obj \ + ..\..\..\..\..\temp\csd\gen_code\table_g.obj \ + ..\..\..\..\..\temp\csd\gen_code\table_h.obj \ + ..\..\..\..\..\temp\csd\gen_code\table_i.obj \ + ..\..\..\..\..\temp\csd\gen_code\table_j.obj \ + ..\..\..\..\..\temp\csd\gen_code\table_k.obj \ + ..\..\..\..\..\temp\csd\gen_code\table_l.obj \ + ..\..\..\..\..\temp\csd\gen_code\table_m.obj \ + ..\..\..\..\..\temp\csd\gen_code\table_n.obj \ + ..\..\..\..\..\temp\csd\gen_code\table_o.obj \ + ..\..\..\..\..\temp\csd\gen_code\table_p.obj \ + ..\..\..\..\..\temp\csd\gen_code\table_q.obj \ + ..\..\..\..\..\temp\csd\gen_code\table_r.obj \ + ..\..\..\..\..\temp\csd\gen_code\table_s.obj \ + ..\..\..\..\..\temp\csd\gen_code\table_t.obj \ + ..\..\..\..\..\temp\csd\gen_code\table_u.obj \ + ..\..\..\..\..\temp\csd\gen_code\table_v.obj \ + ..\..\..\..\..\temp\csd\gen_code\table_w.obj \ + ..\..\..\..\..\temp\csd\gen_code\table_x.obj \ + ..\..\..\..\..\temp\csd\gen_code\table_y.obj \ + ..\..\..\..\..\temp\csd\gen_code\table_z.obj +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ..\..\..\..\..\bin\gen_code.exe +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .c + +.cpp.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.cxx.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.cc.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.c.obj: + $(CC) -c $(CFLAGS) $(INCPATH) -o$@ $< + +####### Build rules + +all: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + $(LINK) @&&| + $(LFLAGS) $(OBJECTS) $(OBJMOC),$(TARGET),,$(LIBS),$(DEF_FILE),$(RES_FILE) +| + +moc: $(SRCMOC) + +tmake: ../csd/win32/borland/gen_code/Makefile + +../csd/win32/borland/gen_code/Makefile: gen_code/gen_code.pro + tmake gen_code/gen_code.pro -o ../csd/win32/borland/gen_code/Makefile + +dist: + $(ZIP) gen_code/gen_code.zip gen_code/gen_code.pro $(SOURCES) $(HEADERS) $(DIST) + +clean: + -del ..\..\..\..\..\temp\csd\gen_code\gen_code.obj + -del ..\..\..\..\..\temp\csd\gen_code\ta_abstract.obj + -del ..\..\..\..\..\temp\csd\gen_code\ta_def_ui.obj + -del ..\..\..\..\..\temp\csd\gen_code\table_a.obj + -del ..\..\..\..\..\temp\csd\gen_code\table_b.obj + -del ..\..\..\..\..\temp\csd\gen_code\table_c.obj + -del ..\..\..\..\..\temp\csd\gen_code\table_d.obj + -del ..\..\..\..\..\temp\csd\gen_code\table_e.obj + -del ..\..\..\..\..\temp\csd\gen_code\table_f.obj + -del ..\..\..\..\..\temp\csd\gen_code\table_g.obj + -del ..\..\..\..\..\temp\csd\gen_code\table_h.obj + -del ..\..\..\..\..\temp\csd\gen_code\table_i.obj + -del ..\..\..\..\..\temp\csd\gen_code\table_j.obj + -del ..\..\..\..\..\temp\csd\gen_code\table_k.obj + -del ..\..\..\..\..\temp\csd\gen_code\table_l.obj + -del ..\..\..\..\..\temp\csd\gen_code\table_m.obj + -del ..\..\..\..\..\temp\csd\gen_code\table_n.obj + -del ..\..\..\..\..\temp\csd\gen_code\table_o.obj + -del ..\..\..\..\..\temp\csd\gen_code\table_p.obj + -del ..\..\..\..\..\temp\csd\gen_code\table_q.obj + -del ..\..\..\..\..\temp\csd\gen_code\table_r.obj + -del ..\..\..\..\..\temp\csd\gen_code\table_s.obj + -del ..\..\..\..\..\temp\csd\gen_code\table_t.obj + -del ..\..\..\..\..\temp\csd\gen_code\table_u.obj + -del ..\..\..\..\..\temp\csd\gen_code\table_v.obj + -del ..\..\..\..\..\temp\csd\gen_code\table_w.obj + -del ..\..\..\..\..\temp\csd\gen_code\table_x.obj + -del ..\..\..\..\..\temp\csd\gen_code\table_y.obj + -del ..\..\..\..\..\temp\csd\gen_code\table_z.obj + -del $(TARGET) + -del gen_code.tds + -del ../../../../../bin/*.map + -del ../../../../../bin/*._xe + -del ../../../../../bin/*.tds + -del ../../../../../bin/*.pdb + -del ../../../../../bin/*.pbo + -del ../../../../../bin/*.pbi + -del ../../../../../bin/*.pbt + -del ../../../../../temp/csd/*.pch + -del ../../../../../temp/csd/*.idb + -del ../../../../../temp/csd/gen_code/*.pch + -del ../../../../../temp/csd/gen_code/*.idb + -del ../../../../../temp/csd/gen_code/*.obj + +####### Compile + +..\..\..\..\..\temp\csd\gen_code\gen_code.obj: ..\..\..\..\..\src\tools\gen_code\gen_code.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\gen_code\gen_code.obj ..\..\..\..\..\src\tools\gen_code\gen_code.c + +..\..\..\..\..\temp\csd\gen_code\ta_abstract.obj: ..\..\..\..\..\src\ta_abstract\ta_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\gen_code\ta_abstract.obj ..\..\..\..\..\src\ta_abstract\ta_abstract.c + +..\..\..\..\..\temp\csd\gen_code\ta_def_ui.obj: ..\..\..\..\..\src\ta_abstract\ta_def_ui.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\gen_code\ta_def_ui.obj ..\..\..\..\..\src\ta_abstract\ta_def_ui.c + +..\..\..\..\..\temp\csd\gen_code\table_a.obj: ..\..\..\..\..\src\ta_abstract\tables\table_a.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\gen_code\table_a.obj ..\..\..\..\..\src\ta_abstract\tables\table_a.c + +..\..\..\..\..\temp\csd\gen_code\table_b.obj: ..\..\..\..\..\src\ta_abstract\tables\table_b.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\gen_code\table_b.obj ..\..\..\..\..\src\ta_abstract\tables\table_b.c + +..\..\..\..\..\temp\csd\gen_code\table_c.obj: ..\..\..\..\..\src\ta_abstract\tables\table_c.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\gen_code\table_c.obj ..\..\..\..\..\src\ta_abstract\tables\table_c.c + +..\..\..\..\..\temp\csd\gen_code\table_d.obj: ..\..\..\..\..\src\ta_abstract\tables\table_d.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\gen_code\table_d.obj ..\..\..\..\..\src\ta_abstract\tables\table_d.c + +..\..\..\..\..\temp\csd\gen_code\table_e.obj: ..\..\..\..\..\src\ta_abstract\tables\table_e.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\gen_code\table_e.obj ..\..\..\..\..\src\ta_abstract\tables\table_e.c + +..\..\..\..\..\temp\csd\gen_code\table_f.obj: ..\..\..\..\..\src\ta_abstract\tables\table_f.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\gen_code\table_f.obj ..\..\..\..\..\src\ta_abstract\tables\table_f.c + +..\..\..\..\..\temp\csd\gen_code\table_g.obj: ..\..\..\..\..\src\ta_abstract\tables\table_g.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\gen_code\table_g.obj ..\..\..\..\..\src\ta_abstract\tables\table_g.c + +..\..\..\..\..\temp\csd\gen_code\table_h.obj: ..\..\..\..\..\src\ta_abstract\tables\table_h.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\gen_code\table_h.obj ..\..\..\..\..\src\ta_abstract\tables\table_h.c + +..\..\..\..\..\temp\csd\gen_code\table_i.obj: ..\..\..\..\..\src\ta_abstract\tables\table_i.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\gen_code\table_i.obj ..\..\..\..\..\src\ta_abstract\tables\table_i.c + +..\..\..\..\..\temp\csd\gen_code\table_j.obj: ..\..\..\..\..\src\ta_abstract\tables\table_j.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\gen_code\table_j.obj ..\..\..\..\..\src\ta_abstract\tables\table_j.c + +..\..\..\..\..\temp\csd\gen_code\table_k.obj: ..\..\..\..\..\src\ta_abstract\tables\table_k.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\gen_code\table_k.obj ..\..\..\..\..\src\ta_abstract\tables\table_k.c + +..\..\..\..\..\temp\csd\gen_code\table_l.obj: ..\..\..\..\..\src\ta_abstract\tables\table_l.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\gen_code\table_l.obj ..\..\..\..\..\src\ta_abstract\tables\table_l.c + +..\..\..\..\..\temp\csd\gen_code\table_m.obj: ..\..\..\..\..\src\ta_abstract\tables\table_m.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\gen_code\table_m.obj ..\..\..\..\..\src\ta_abstract\tables\table_m.c + +..\..\..\..\..\temp\csd\gen_code\table_n.obj: ..\..\..\..\..\src\ta_abstract\tables\table_n.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\gen_code\table_n.obj ..\..\..\..\..\src\ta_abstract\tables\table_n.c + +..\..\..\..\..\temp\csd\gen_code\table_o.obj: ..\..\..\..\..\src\ta_abstract\tables\table_o.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\gen_code\table_o.obj ..\..\..\..\..\src\ta_abstract\tables\table_o.c + +..\..\..\..\..\temp\csd\gen_code\table_p.obj: ..\..\..\..\..\src\ta_abstract\tables\table_p.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\gen_code\table_p.obj ..\..\..\..\..\src\ta_abstract\tables\table_p.c + +..\..\..\..\..\temp\csd\gen_code\table_q.obj: ..\..\..\..\..\src\ta_abstract\tables\table_q.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\gen_code\table_q.obj ..\..\..\..\..\src\ta_abstract\tables\table_q.c + +..\..\..\..\..\temp\csd\gen_code\table_r.obj: ..\..\..\..\..\src\ta_abstract\tables\table_r.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\gen_code\table_r.obj ..\..\..\..\..\src\ta_abstract\tables\table_r.c + +..\..\..\..\..\temp\csd\gen_code\table_s.obj: ..\..\..\..\..\src\ta_abstract\tables\table_s.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\gen_code\table_s.obj ..\..\..\..\..\src\ta_abstract\tables\table_s.c + +..\..\..\..\..\temp\csd\gen_code\table_t.obj: ..\..\..\..\..\src\ta_abstract\tables\table_t.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\gen_code\table_t.obj ..\..\..\..\..\src\ta_abstract\tables\table_t.c + +..\..\..\..\..\temp\csd\gen_code\table_u.obj: ..\..\..\..\..\src\ta_abstract\tables\table_u.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\gen_code\table_u.obj ..\..\..\..\..\src\ta_abstract\tables\table_u.c + +..\..\..\..\..\temp\csd\gen_code\table_v.obj: ..\..\..\..\..\src\ta_abstract\tables\table_v.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\gen_code\table_v.obj ..\..\..\..\..\src\ta_abstract\tables\table_v.c + +..\..\..\..\..\temp\csd\gen_code\table_w.obj: ..\..\..\..\..\src\ta_abstract\tables\table_w.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\gen_code\table_w.obj ..\..\..\..\..\src\ta_abstract\tables\table_w.c + +..\..\..\..\..\temp\csd\gen_code\table_x.obj: ..\..\..\..\..\src\ta_abstract\tables\table_x.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\gen_code\table_x.obj ..\..\..\..\..\src\ta_abstract\tables\table_x.c + +..\..\..\..\..\temp\csd\gen_code\table_y.obj: ..\..\..\..\..\src\ta_abstract\tables\table_y.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\gen_code\table_y.obj ..\..\..\..\..\src\ta_abstract\tables\table_y.c + +..\..\..\..\..\temp\csd\gen_code\table_z.obj: ..\..\..\..\..\src\ta_abstract\tables\table_z.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\gen_code\table_z.obj ..\..\..\..\..\src\ta_abstract\tables\table_z.c + diff --git a/make/csd/win32/borland/ta_abstract/Makefile b/make/csd/win32/borland/ta_abstract/Makefile new file mode 100644 index 000000000..c3e97ac6f --- /dev/null +++ b/make/csd/win32/borland/ta_abstract/Makefile @@ -0,0 +1,309 @@ +############################################################################# +# Makefile for building ta_abstract_csd +# Generated by tmake; +# Project: ta_abstract/ta_abstract +# Template: lib +############################################################################# + +!if !$d(BCB) +BCB = $(MAKEDIR)\.. +!endif + +####### Compiler, tools and options + +CC = bcc32 +CXX = bcc32 +CFLAGS = -x- -RT- -tWR -w -w-8004 -w-8071 -w-8057 -w-8080 -v -DTA_DEBUG -D_DEBUG -DTA_SINGLE_THREAD -DWIN32 +CXXFLAGS= -x- -RT- -tWR -w -w-8004 -w-8071 -w-8057 -w-8080 -v -DTA_DEBUG -D_DEBUG -DTA_SINGLE_THREAD -DWIN32 +INCPATH = -I"..\..\..\..\..\src\ta_common" -I"..\..\..\..\..\src\ta_abstract" -I"..\..\..\..\..\src\ta_abstract\tables" -I"..\..\..\..\..\src\ta_abstract\frames" -I"..\..\..\..\..\include" +LIB = tlib /C /P256 +MOC = moc +UIC = uic + +ZIP = zip -r -9 +DEF_FILE = +RES_FILE = + +####### Files + +HEADERS = +SOURCES = ..\..\..\..\..\src\ta_abstract\ta_abstract.c \ + ..\..\..\..\..\src\ta_abstract\ta_def_ui.c \ + ..\..\..\..\..\src\ta_abstract\ta_func_api.c \ + ..\..\..\..\..\src\ta_abstract\ta_group_idx.c \ + ..\..\..\..\..\src\ta_abstract\frames\ta_frame.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_a.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_b.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_c.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_d.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_e.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_f.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_g.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_h.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_i.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_j.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_k.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_l.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_m.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_n.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_o.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_p.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_q.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_r.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_s.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_t.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_u.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_v.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_w.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_x.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_y.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_z.c +OBJECTS = ..\..\..\..\..\temp\csd\ta_abstract.obj \ + ..\..\..\..\..\temp\csd\ta_def_ui.obj \ + ..\..\..\..\..\temp\csd\ta_func_api.obj \ + ..\..\..\..\..\temp\csd\ta_group_idx.obj \ + ..\..\..\..\..\temp\csd\ta_frame.obj \ + ..\..\..\..\..\temp\csd\table_a.obj \ + ..\..\..\..\..\temp\csd\table_b.obj \ + ..\..\..\..\..\temp\csd\table_c.obj \ + ..\..\..\..\..\temp\csd\table_d.obj \ + ..\..\..\..\..\temp\csd\table_e.obj \ + ..\..\..\..\..\temp\csd\table_f.obj \ + ..\..\..\..\..\temp\csd\table_g.obj \ + ..\..\..\..\..\temp\csd\table_h.obj \ + ..\..\..\..\..\temp\csd\table_i.obj \ + ..\..\..\..\..\temp\csd\table_j.obj \ + ..\..\..\..\..\temp\csd\table_k.obj \ + ..\..\..\..\..\temp\csd\table_l.obj \ + ..\..\..\..\..\temp\csd\table_m.obj \ + ..\..\..\..\..\temp\csd\table_n.obj \ + ..\..\..\..\..\temp\csd\table_o.obj \ + ..\..\..\..\..\temp\csd\table_p.obj \ + ..\..\..\..\..\temp\csd\table_q.obj \ + ..\..\..\..\..\temp\csd\table_r.obj \ + ..\..\..\..\..\temp\csd\table_s.obj \ + ..\..\..\..\..\temp\csd\table_t.obj \ + ..\..\..\..\..\temp\csd\table_u.obj \ + ..\..\..\..\..\temp\csd\table_v.obj \ + ..\..\..\..\..\temp\csd\table_w.obj \ + ..\..\..\..\..\temp\csd\table_x.obj \ + ..\..\..\..\..\temp\csd\table_y.obj \ + ..\..\..\..\..\temp\csd\table_z.obj +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ..\..\..\..\..\lib\ta_abstract_csd.lib +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .c + +.cpp.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.cxx.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.cc.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.c.obj: + $(CC) -c $(CFLAGS) $(INCPATH) -o$@ $< + +####### Build rules + +all: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + -del $(TARGET) + $(LIB) $(TARGET) @&&| ++..\..\..\..\..\temp\csd\ta_abstract.obj \ ++..\..\..\..\..\temp\csd\ta_def_ui.obj \ ++..\..\..\..\..\temp\csd\ta_func_api.obj \ ++..\..\..\..\..\temp\csd\ta_group_idx.obj \ ++..\..\..\..\..\temp\csd\ta_frame.obj \ ++..\..\..\..\..\temp\csd\table_a.obj \ ++..\..\..\..\..\temp\csd\table_b.obj \ ++..\..\..\..\..\temp\csd\table_c.obj \ ++..\..\..\..\..\temp\csd\table_d.obj \ ++..\..\..\..\..\temp\csd\table_e.obj \ ++..\..\..\..\..\temp\csd\table_f.obj \ ++..\..\..\..\..\temp\csd\table_g.obj \ ++..\..\..\..\..\temp\csd\table_h.obj \ ++..\..\..\..\..\temp\csd\table_i.obj \ ++..\..\..\..\..\temp\csd\table_j.obj \ ++..\..\..\..\..\temp\csd\table_k.obj \ ++..\..\..\..\..\temp\csd\table_l.obj \ ++..\..\..\..\..\temp\csd\table_m.obj \ ++..\..\..\..\..\temp\csd\table_n.obj \ ++..\..\..\..\..\temp\csd\table_o.obj \ ++..\..\..\..\..\temp\csd\table_p.obj \ ++..\..\..\..\..\temp\csd\table_q.obj \ ++..\..\..\..\..\temp\csd\table_r.obj \ ++..\..\..\..\..\temp\csd\table_s.obj \ ++..\..\..\..\..\temp\csd\table_t.obj \ ++..\..\..\..\..\temp\csd\table_u.obj \ ++..\..\..\..\..\temp\csd\table_v.obj \ ++..\..\..\..\..\temp\csd\table_w.obj \ ++..\..\..\..\..\temp\csd\table_x.obj \ ++..\..\..\..\..\temp\csd\table_y.obj \ ++..\..\..\..\..\temp\csd\table_z.obj \ ++ +| + +moc: $(SRCMOC) + +tmake: ../csd/win32/borland/ta_abstract/Makefile + +../csd/win32/borland/ta_abstract/Makefile: ta_abstract/ta_abstract.pro + tmake ta_abstract/ta_abstract.pro -o ../csd/win32/borland/ta_abstract/Makefile + +dist: + $(ZIP) ta_abstract/ta_abstract.zip ta_abstract/ta_abstract.pro $(SOURCES) $(HEADERS) $(DIST) + +clean: + -del ..\..\..\..\..\temp\csd\ta_abstract.obj + -del ..\..\..\..\..\temp\csd\ta_def_ui.obj + -del ..\..\..\..\..\temp\csd\ta_func_api.obj + -del ..\..\..\..\..\temp\csd\ta_group_idx.obj + -del ..\..\..\..\..\temp\csd\ta_frame.obj + -del ..\..\..\..\..\temp\csd\table_a.obj + -del ..\..\..\..\..\temp\csd\table_b.obj + -del ..\..\..\..\..\temp\csd\table_c.obj + -del ..\..\..\..\..\temp\csd\table_d.obj + -del ..\..\..\..\..\temp\csd\table_e.obj + -del ..\..\..\..\..\temp\csd\table_f.obj + -del ..\..\..\..\..\temp\csd\table_g.obj + -del ..\..\..\..\..\temp\csd\table_h.obj + -del ..\..\..\..\..\temp\csd\table_i.obj + -del ..\..\..\..\..\temp\csd\table_j.obj + -del ..\..\..\..\..\temp\csd\table_k.obj + -del ..\..\..\..\..\temp\csd\table_l.obj + -del ..\..\..\..\..\temp\csd\table_m.obj + -del ..\..\..\..\..\temp\csd\table_n.obj + -del ..\..\..\..\..\temp\csd\table_o.obj + -del ..\..\..\..\..\temp\csd\table_p.obj + -del ..\..\..\..\..\temp\csd\table_q.obj + -del ..\..\..\..\..\temp\csd\table_r.obj + -del ..\..\..\..\..\temp\csd\table_s.obj + -del ..\..\..\..\..\temp\csd\table_t.obj + -del ..\..\..\..\..\temp\csd\table_u.obj + -del ..\..\..\..\..\temp\csd\table_v.obj + -del ..\..\..\..\..\temp\csd\table_w.obj + -del ..\..\..\..\..\temp\csd\table_x.obj + -del ..\..\..\..\..\temp\csd\table_y.obj + -del ..\..\..\..\..\temp\csd\table_z.obj + -del $(TARGET) + -del ta_abstract_csd.tds + -del ../../../../../bin/*.map + -del ../../../../../bin/*._xe + -del ../../../../../bin/*.tds + -del ../../../../../bin/*.pdb + -del ../../../../../bin/*.pbo + -del ../../../../../bin/*.pbi + -del ../../../../../bin/*.pbt + -del ../../../../../temp/csd/*.pch + -del ../../../../../temp/csd/*.idb + -del ../../../../../temp/csd/ta_abstract/*.pch + -del ../../../../../temp/csd/ta_abstract/*.idb + -del ../../../../../temp/csd/ta_abstract/*.obj + +####### Compile + +..\..\..\..\..\temp\csd\ta_abstract.obj: ..\..\..\..\..\src\ta_abstract\ta_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_abstract.obj ..\..\..\..\..\src\ta_abstract\ta_abstract.c + +..\..\..\..\..\temp\csd\ta_def_ui.obj: ..\..\..\..\..\src\ta_abstract\ta_def_ui.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_def_ui.obj ..\..\..\..\..\src\ta_abstract\ta_def_ui.c + +..\..\..\..\..\temp\csd\ta_func_api.obj: ..\..\..\..\..\src\ta_abstract\ta_func_api.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_func_api.obj ..\..\..\..\..\src\ta_abstract\ta_func_api.c + +..\..\..\..\..\temp\csd\ta_group_idx.obj: ..\..\..\..\..\src\ta_abstract\ta_group_idx.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_group_idx.obj ..\..\..\..\..\src\ta_abstract\ta_group_idx.c + +..\..\..\..\..\temp\csd\ta_frame.obj: ..\..\..\..\..\src\ta_abstract\frames\ta_frame.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_frame.obj ..\..\..\..\..\src\ta_abstract\frames\ta_frame.c + +..\..\..\..\..\temp\csd\table_a.obj: ..\..\..\..\..\src\ta_abstract\tables\table_a.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\table_a.obj ..\..\..\..\..\src\ta_abstract\tables\table_a.c + +..\..\..\..\..\temp\csd\table_b.obj: ..\..\..\..\..\src\ta_abstract\tables\table_b.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\table_b.obj ..\..\..\..\..\src\ta_abstract\tables\table_b.c + +..\..\..\..\..\temp\csd\table_c.obj: ..\..\..\..\..\src\ta_abstract\tables\table_c.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\table_c.obj ..\..\..\..\..\src\ta_abstract\tables\table_c.c + +..\..\..\..\..\temp\csd\table_d.obj: ..\..\..\..\..\src\ta_abstract\tables\table_d.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\table_d.obj ..\..\..\..\..\src\ta_abstract\tables\table_d.c + +..\..\..\..\..\temp\csd\table_e.obj: ..\..\..\..\..\src\ta_abstract\tables\table_e.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\table_e.obj ..\..\..\..\..\src\ta_abstract\tables\table_e.c + +..\..\..\..\..\temp\csd\table_f.obj: ..\..\..\..\..\src\ta_abstract\tables\table_f.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\table_f.obj ..\..\..\..\..\src\ta_abstract\tables\table_f.c + +..\..\..\..\..\temp\csd\table_g.obj: ..\..\..\..\..\src\ta_abstract\tables\table_g.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\table_g.obj ..\..\..\..\..\src\ta_abstract\tables\table_g.c + +..\..\..\..\..\temp\csd\table_h.obj: ..\..\..\..\..\src\ta_abstract\tables\table_h.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\table_h.obj ..\..\..\..\..\src\ta_abstract\tables\table_h.c + +..\..\..\..\..\temp\csd\table_i.obj: ..\..\..\..\..\src\ta_abstract\tables\table_i.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\table_i.obj ..\..\..\..\..\src\ta_abstract\tables\table_i.c + +..\..\..\..\..\temp\csd\table_j.obj: ..\..\..\..\..\src\ta_abstract\tables\table_j.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\table_j.obj ..\..\..\..\..\src\ta_abstract\tables\table_j.c + +..\..\..\..\..\temp\csd\table_k.obj: ..\..\..\..\..\src\ta_abstract\tables\table_k.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\table_k.obj ..\..\..\..\..\src\ta_abstract\tables\table_k.c + +..\..\..\..\..\temp\csd\table_l.obj: ..\..\..\..\..\src\ta_abstract\tables\table_l.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\table_l.obj ..\..\..\..\..\src\ta_abstract\tables\table_l.c + +..\..\..\..\..\temp\csd\table_m.obj: ..\..\..\..\..\src\ta_abstract\tables\table_m.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\table_m.obj ..\..\..\..\..\src\ta_abstract\tables\table_m.c + +..\..\..\..\..\temp\csd\table_n.obj: ..\..\..\..\..\src\ta_abstract\tables\table_n.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\table_n.obj ..\..\..\..\..\src\ta_abstract\tables\table_n.c + +..\..\..\..\..\temp\csd\table_o.obj: ..\..\..\..\..\src\ta_abstract\tables\table_o.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\table_o.obj ..\..\..\..\..\src\ta_abstract\tables\table_o.c + +..\..\..\..\..\temp\csd\table_p.obj: ..\..\..\..\..\src\ta_abstract\tables\table_p.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\table_p.obj ..\..\..\..\..\src\ta_abstract\tables\table_p.c + +..\..\..\..\..\temp\csd\table_q.obj: ..\..\..\..\..\src\ta_abstract\tables\table_q.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\table_q.obj ..\..\..\..\..\src\ta_abstract\tables\table_q.c + +..\..\..\..\..\temp\csd\table_r.obj: ..\..\..\..\..\src\ta_abstract\tables\table_r.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\table_r.obj ..\..\..\..\..\src\ta_abstract\tables\table_r.c + +..\..\..\..\..\temp\csd\table_s.obj: ..\..\..\..\..\src\ta_abstract\tables\table_s.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\table_s.obj ..\..\..\..\..\src\ta_abstract\tables\table_s.c + +..\..\..\..\..\temp\csd\table_t.obj: ..\..\..\..\..\src\ta_abstract\tables\table_t.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\table_t.obj ..\..\..\..\..\src\ta_abstract\tables\table_t.c + +..\..\..\..\..\temp\csd\table_u.obj: ..\..\..\..\..\src\ta_abstract\tables\table_u.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\table_u.obj ..\..\..\..\..\src\ta_abstract\tables\table_u.c + +..\..\..\..\..\temp\csd\table_v.obj: ..\..\..\..\..\src\ta_abstract\tables\table_v.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\table_v.obj ..\..\..\..\..\src\ta_abstract\tables\table_v.c + +..\..\..\..\..\temp\csd\table_w.obj: ..\..\..\..\..\src\ta_abstract\tables\table_w.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\table_w.obj ..\..\..\..\..\src\ta_abstract\tables\table_w.c + +..\..\..\..\..\temp\csd\table_x.obj: ..\..\..\..\..\src\ta_abstract\tables\table_x.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\table_x.obj ..\..\..\..\..\src\ta_abstract\tables\table_x.c + +..\..\..\..\..\temp\csd\table_y.obj: ..\..\..\..\..\src\ta_abstract\tables\table_y.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\table_y.obj ..\..\..\..\..\src\ta_abstract\tables\table_y.c + +..\..\..\..\..\temp\csd\table_z.obj: ..\..\..\..\..\src\ta_abstract\tables\table_z.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\table_z.obj ..\..\..\..\..\src\ta_abstract\tables\table_z.c + diff --git a/make/csd/win32/borland/ta_common/Makefile b/make/csd/win32/borland/ta_common/Makefile new file mode 100644 index 000000000..e47f49804 --- /dev/null +++ b/make/csd/win32/borland/ta_common/Makefile @@ -0,0 +1,113 @@ +############################################################################# +# Makefile for building ta_common_csd +# Generated by tmake; +# Project: ta_common/ta_common +# Template: lib +############################################################################# + +!if !$d(BCB) +BCB = $(MAKEDIR)\.. +!endif + +####### Compiler, tools and options + +CC = bcc32 +CXX = bcc32 +CFLAGS = -x- -RT- -tWR -w -w-8004 -w-8071 -w-8057 -w-8080 -v -DTA_DEBUG -D_DEBUG -DTA_SINGLE_THREAD -DWIN32 +CXXFLAGS= -x- -RT- -tWR -w -w-8004 -w-8071 -w-8057 -w-8080 -v -DTA_DEBUG -D_DEBUG -DTA_SINGLE_THREAD -DWIN32 +INCPATH = -I"..\..\..\..\..\src\ta_common" -I"..\..\..\..\..\include" +LIB = tlib /C /P256 +MOC = moc +UIC = uic + +ZIP = zip -r -9 +DEF_FILE = +RES_FILE = + +####### Files + +HEADERS = +SOURCES = ..\..\..\..\..\src\ta_common\ta_global.c \ + ..\..\..\..\..\src\ta_common\ta_retcode.c \ + ..\..\..\..\..\src\ta_common\ta_version.c +OBJECTS = ..\..\..\..\..\temp\csd\ta_global.obj \ + ..\..\..\..\..\temp\csd\ta_retcode.obj \ + ..\..\..\..\..\temp\csd\ta_version.obj +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ..\..\..\..\..\lib\ta_common_csd.lib +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .c + +.cpp.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.cxx.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.cc.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.c.obj: + $(CC) -c $(CFLAGS) $(INCPATH) -o$@ $< + +####### Build rules + +all: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + -del $(TARGET) + $(LIB) $(TARGET) @&&| ++..\..\..\..\..\temp\csd\ta_global.obj \ ++..\..\..\..\..\temp\csd\ta_retcode.obj \ ++..\..\..\..\..\temp\csd\ta_version.obj \ ++ +| + +moc: $(SRCMOC) + +tmake: ../csd/win32/borland/ta_common/Makefile + +../csd/win32/borland/ta_common/Makefile: ta_common/ta_common.pro + tmake ta_common/ta_common.pro -o ../csd/win32/borland/ta_common/Makefile + +dist: + $(ZIP) ta_common/ta_common.zip ta_common/ta_common.pro $(SOURCES) $(HEADERS) $(DIST) + +clean: + -del ..\..\..\..\..\temp\csd\ta_global.obj + -del ..\..\..\..\..\temp\csd\ta_retcode.obj + -del ..\..\..\..\..\temp\csd\ta_version.obj + -del $(TARGET) + -del ta_common_csd.tds + -del ../../../../../bin/*.map + -del ../../../../../bin/*._xe + -del ../../../../../bin/*.tds + -del ../../../../../bin/*.pdb + -del ../../../../../bin/*.pbo + -del ../../../../../bin/*.pbi + -del ../../../../../bin/*.pbt + -del ../../../../../temp/csd/*.pch + -del ../../../../../temp/csd/*.idb + -del ../../../../../temp/csd/ta_common_csd/*.pch + -del ../../../../../temp/csd/ta_common_csd/*.idb + -del ../../../../../temp/csd/ta_common_csd/*.obj + +####### Compile + +..\..\..\..\..\temp\csd\ta_global.obj: ..\..\..\..\..\src\ta_common\ta_global.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_global.obj ..\..\..\..\..\src\ta_common\ta_global.c + +..\..\..\..\..\temp\csd\ta_retcode.obj: ..\..\..\..\..\src\ta_common\ta_retcode.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_retcode.obj ..\..\..\..\..\src\ta_common\ta_retcode.c + +..\..\..\..\..\temp\csd\ta_version.obj: ..\..\..\..\..\src\ta_common\ta_version.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_version.obj ..\..\..\..\..\src\ta_common\ta_version.c + diff --git a/make/csd/win32/borland/ta_func/Makefile b/make/csd/win32/borland/ta_func/Makefile new file mode 100644 index 000000000..291bbefe9 --- /dev/null +++ b/make/csd/win32/borland/ta_func/Makefile @@ -0,0 +1,1205 @@ +############################################################################# +# Makefile for building ta_func_csd +# Generated by tmake; +# Project: ta_func/ta_func +# Template: lib +############################################################################# + +!if !$d(BCB) +BCB = $(MAKEDIR)\.. +!endif + +####### Compiler, tools and options + +CC = bcc32 +CXX = bcc32 +CFLAGS = -x- -RT- -tWR -w -w-8004 -w-8071 -w-8057 -w-8080 -v -DTA_DEBUG -D_DEBUG -DTA_SINGLE_THREAD -DWIN32 +CXXFLAGS= -x- -RT- -tWR -w -w-8004 -w-8071 -w-8057 -w-8080 -v -DTA_DEBUG -D_DEBUG -DTA_SINGLE_THREAD -DWIN32 +INCPATH = -I"..\..\..\..\..\src\ta_common" -I"\n" -I"..\..\..\..\..\include" +LIB = tlib /C /P256 +MOC = moc +UIC = uic + +ZIP = zip -r -9 +DEF_FILE = +RES_FILE = + +####### Files + +HEADERS = +SOURCES = ..\..\..\..\..\src\ta_func\ta_utility.c \ + ..\..\..\..\..\src\ta_func\ta_ACOS.c \ + ..\..\..\..\..\src\ta_func\ta_AD.c \ + ..\..\..\..\..\src\ta_func\ta_ADD.c \ + ..\..\..\..\..\src\ta_func\ta_ADOSC.c \ + ..\..\..\..\..\src\ta_func\ta_ADX.c \ + ..\..\..\..\..\src\ta_func\ta_ADXR.c \ + ..\..\..\..\..\src\ta_func\ta_APO.c \ + ..\..\..\..\..\src\ta_func\ta_AROON.c \ + ..\..\..\..\..\src\ta_func\ta_AROONOSC.c \ + ..\..\..\..\..\src\ta_func\ta_ASIN.c \ + ..\..\..\..\..\src\ta_func\ta_ATAN.c \ + ..\..\..\..\..\src\ta_func\ta_ATR.c \ + ..\..\..\..\..\src\ta_func\ta_AVGPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_BBANDS.c \ + ..\..\..\..\..\src\ta_func\ta_BETA.c \ + ..\..\..\..\..\src\ta_func\ta_BOP.c \ + ..\..\..\..\..\src\ta_func\ta_CCI.c \ + ..\..\..\..\..\src\ta_func\ta_CDL2CROWS.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3BLACKCROWS.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3INSIDE.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3LINESTRIKE.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3OUTSIDE.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3STARSINSOUTH.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3WHITESOLDIERS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLABANDONEDBABY.c \ + ..\..\..\..\..\src\ta_func\ta_CDLADVANCEBLOCK.c \ + ..\..\..\..\..\src\ta_func\ta_CDLBELTHOLD.c \ + ..\..\..\..\..\src\ta_func\ta_CDLBREAKAWAY.c \ + ..\..\..\..\..\src\ta_func\ta_CDLCLOSINGMARUBOZU.c \ + ..\..\..\..\..\src\ta_func\ta_CDLCONCEALBABYSWALL.c \ + ..\..\..\..\..\src\ta_func\ta_CDLCOUNTERATTACK.c \ + ..\..\..\..\..\src\ta_func\ta_CDLDARKCLOUDCOVER.c \ + ..\..\..\..\..\src\ta_func\ta_CDLDOJI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLDOJISTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLDRAGONFLYDOJI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLENGULFING.c \ + ..\..\..\..\..\src\ta_func\ta_CDLEVENINGDOJISTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLEVENINGSTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLGAPSIDESIDEWHITE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLGRAVESTONEDOJI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHAMMER.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHANGINGMAN.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHARAMI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHARAMICROSS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHIGHWAVE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKEMOD.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHOMINGPIGEON.c \ + ..\..\..\..\..\src\ta_func\ta_CDLIDENTICAL3CROWS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLINNECK.c \ + ..\..\..\..\..\src\ta_func\ta_CDLINVERTEDHAMMER.c \ + ..\..\..\..\..\src\ta_func\ta_CDLKICKING.c \ + ..\..\..\..\..\src\ta_func\ta_CDLKICKINGBYLENGTH.c \ + ..\..\..\..\..\src\ta_func\ta_CDLLADDERBOTTOM.c \ + ..\..\..\..\..\src\ta_func\ta_CDLLONGLEGGEDDOJI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLLONGLINE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMARUBOZU.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMATCHINGLOW.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMATHOLD.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMORNINGDOJISTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMORNINGSTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLONNECK.c \ + ..\..\..\..\..\src\ta_func\ta_CDLPIERCING.c \ + ..\..\..\..\..\src\ta_func\ta_CDLRICKSHAWMAN.c \ + ..\..\..\..\..\src\ta_func\ta_CDLRISEFALL3METHODS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSEPARATINGLINES.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSHOOTINGSTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSHORTLINE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSPINNINGTOP.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSTALLEDPATTERN.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSTICKSANDWICH.c \ + ..\..\..\..\..\src\ta_func\ta_CDLTAKURI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLTASUKIGAP.c \ + ..\..\..\..\..\src\ta_func\ta_CDLTHRUSTING.c \ + ..\..\..\..\..\src\ta_func\ta_CDLTRISTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLUNIQUE3RIVER.c \ + ..\..\..\..\..\src\ta_func\ta_CDLUPSIDEGAP2CROWS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLXSIDEGAP3METHODS.c \ + ..\..\..\..\..\src\ta_func\ta_CEIL.c \ + ..\..\..\..\..\src\ta_func\ta_CMO.c \ + ..\..\..\..\..\src\ta_func\ta_CORREL.c \ + ..\..\..\..\..\src\ta_func\ta_COS.c \ + ..\..\..\..\..\src\ta_func\ta_COSH.c \ + ..\..\..\..\..\src\ta_func\ta_DEMA.c \ + ..\..\..\..\..\src\ta_func\ta_DIV.c \ + ..\..\..\..\..\src\ta_func\ta_DX.c \ + ..\..\..\..\..\src\ta_func\ta_EMA.c \ + ..\..\..\..\..\src\ta_func\ta_EXP.c \ + ..\..\..\..\..\src\ta_func\ta_FLOOR.c \ + ..\..\..\..\..\src\ta_func\ta_HT_DCPERIOD.c \ + ..\..\..\..\..\src\ta_func\ta_HT_DCPHASE.c \ + ..\..\..\..\..\src\ta_func\ta_HT_PHASOR.c \ + ..\..\..\..\..\src\ta_func\ta_HT_SINE.c \ + ..\..\..\..\..\src\ta_func\ta_HT_TRENDLINE.c \ + ..\..\..\..\..\src\ta_func\ta_HT_TRENDMODE.c \ + ..\..\..\..\..\src\ta_func\ta_KAMA.c \ + ..\..\..\..\..\src\ta_func\ta_LINEARREG.c \ + ..\..\..\..\..\src\ta_func\ta_LINEARREG_ANGLE.c \ + ..\..\..\..\..\src\ta_func\ta_LINEARREG_INTERCEPT.c \ + ..\..\..\..\..\src\ta_func\ta_LINEARREG_SLOPE.c \ + ..\..\..\..\..\src\ta_func\ta_LN.c \ + ..\..\..\..\..\src\ta_func\ta_LOG10.c \ + ..\..\..\..\..\src\ta_func\ta_MA.c \ + ..\..\..\..\..\src\ta_func\ta_MACD.c \ + ..\..\..\..\..\src\ta_func\ta_MACDEXT.c \ + ..\..\..\..\..\src\ta_func\ta_MACDFIX.c \ + ..\..\..\..\..\src\ta_func\ta_MAMA.c \ + ..\..\..\..\..\src\ta_func\ta_MAVP.c \ + ..\..\..\..\..\src\ta_func\ta_MAX.c \ + ..\..\..\..\..\src\ta_func\ta_MAXINDEX.c \ + ..\..\..\..\..\src\ta_func\ta_MEDPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_MFI.c \ + ..\..\..\..\..\src\ta_func\ta_MIDPOINT.c \ + ..\..\..\..\..\src\ta_func\ta_MIDPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_MIN.c \ + ..\..\..\..\..\src\ta_func\ta_MININDEX.c \ + ..\..\..\..\..\src\ta_func\ta_MINMAX.c \ + ..\..\..\..\..\src\ta_func\ta_MINMAXINDEX.c \ + ..\..\..\..\..\src\ta_func\ta_MINUS_DI.c \ + ..\..\..\..\..\src\ta_func\ta_MINUS_DM.c \ + ..\..\..\..\..\src\ta_func\ta_MOM.c \ + ..\..\..\..\..\src\ta_func\ta_MULT.c \ + ..\..\..\..\..\src\ta_func\ta_NATR.c \ + ..\..\..\..\..\src\ta_func\ta_OBV.c \ + ..\..\..\..\..\src\ta_func\ta_PLUS_DI.c \ + ..\..\..\..\..\src\ta_func\ta_PLUS_DM.c \ + ..\..\..\..\..\src\ta_func\ta_PPO.c \ + ..\..\..\..\..\src\ta_func\ta_ROC.c \ + ..\..\..\..\..\src\ta_func\ta_ROCP.c \ + ..\..\..\..\..\src\ta_func\ta_ROCR.c \ + ..\..\..\..\..\src\ta_func\ta_ROCR100.c \ + ..\..\..\..\..\src\ta_func\ta_RSI.c \ + ..\..\..\..\..\src\ta_func\ta_SAR.c \ + ..\..\..\..\..\src\ta_func\ta_SAREXT.c \ + ..\..\..\..\..\src\ta_func\ta_SIN.c \ + ..\..\..\..\..\src\ta_func\ta_SINH.c \ + ..\..\..\..\..\src\ta_func\ta_SMA.c \ + ..\..\..\..\..\src\ta_func\ta_SQRT.c \ + ..\..\..\..\..\src\ta_func\ta_STDDEV.c \ + ..\..\..\..\..\src\ta_func\ta_STOCH.c \ + ..\..\..\..\..\src\ta_func\ta_STOCHF.c \ + ..\..\..\..\..\src\ta_func\ta_STOCHRSI.c \ + ..\..\..\..\..\src\ta_func\ta_SUB.c \ + ..\..\..\..\..\src\ta_func\ta_SUM.c \ + ..\..\..\..\..\src\ta_func\ta_T3.c \ + ..\..\..\..\..\src\ta_func\ta_TAN.c \ + ..\..\..\..\..\src\ta_func\ta_TANH.c \ + ..\..\..\..\..\src\ta_func\ta_TEMA.c \ + ..\..\..\..\..\src\ta_func\ta_TRANGE.c \ + ..\..\..\..\..\src\ta_func\ta_TRIMA.c \ + ..\..\..\..\..\src\ta_func\ta_TRIX.c \ + ..\..\..\..\..\src\ta_func\ta_TSF.c \ + ..\..\..\..\..\src\ta_func\ta_TYPPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_ULTOSC.c \ + ..\..\..\..\..\src\ta_func\ta_VAR.c \ + ..\..\..\..\..\src\ta_func\ta_WCLPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_WILLR.c \ + ..\..\..\..\..\src\ta_func\ta_WMA.c +OBJECTS = ..\..\..\..\..\temp\csd\ta_utility.obj \ + ..\..\..\..\..\temp\csd\ta_ACOS.obj \ + ..\..\..\..\..\temp\csd\ta_AD.obj \ + ..\..\..\..\..\temp\csd\ta_ADD.obj \ + ..\..\..\..\..\temp\csd\ta_ADOSC.obj \ + ..\..\..\..\..\temp\csd\ta_ADX.obj \ + ..\..\..\..\..\temp\csd\ta_ADXR.obj \ + ..\..\..\..\..\temp\csd\ta_APO.obj \ + ..\..\..\..\..\temp\csd\ta_AROON.obj \ + ..\..\..\..\..\temp\csd\ta_AROONOSC.obj \ + ..\..\..\..\..\temp\csd\ta_ASIN.obj \ + ..\..\..\..\..\temp\csd\ta_ATAN.obj \ + ..\..\..\..\..\temp\csd\ta_ATR.obj \ + ..\..\..\..\..\temp\csd\ta_AVGPRICE.obj \ + ..\..\..\..\..\temp\csd\ta_BBANDS.obj \ + ..\..\..\..\..\temp\csd\ta_BETA.obj \ + ..\..\..\..\..\temp\csd\ta_BOP.obj \ + ..\..\..\..\..\temp\csd\ta_CCI.obj \ + ..\..\..\..\..\temp\csd\ta_CDL2CROWS.obj \ + ..\..\..\..\..\temp\csd\ta_CDL3BLACKCROWS.obj \ + ..\..\..\..\..\temp\csd\ta_CDL3INSIDE.obj \ + ..\..\..\..\..\temp\csd\ta_CDL3LINESTRIKE.obj \ + ..\..\..\..\..\temp\csd\ta_CDL3OUTSIDE.obj \ + ..\..\..\..\..\temp\csd\ta_CDL3STARSINSOUTH.obj \ + ..\..\..\..\..\temp\csd\ta_CDL3WHITESOLDIERS.obj \ + ..\..\..\..\..\temp\csd\ta_CDLABANDONEDBABY.obj \ + ..\..\..\..\..\temp\csd\ta_CDLADVANCEBLOCK.obj \ + ..\..\..\..\..\temp\csd\ta_CDLBELTHOLD.obj \ + ..\..\..\..\..\temp\csd\ta_CDLBREAKAWAY.obj \ + ..\..\..\..\..\temp\csd\ta_CDLCLOSINGMARUBOZU.obj \ + ..\..\..\..\..\temp\csd\ta_CDLCONCEALBABYSWALL.obj \ + ..\..\..\..\..\temp\csd\ta_CDLCOUNTERATTACK.obj \ + ..\..\..\..\..\temp\csd\ta_CDLDARKCLOUDCOVER.obj \ + ..\..\..\..\..\temp\csd\ta_CDLDOJI.obj \ + ..\..\..\..\..\temp\csd\ta_CDLDOJISTAR.obj \ + ..\..\..\..\..\temp\csd\ta_CDLDRAGONFLYDOJI.obj \ + ..\..\..\..\..\temp\csd\ta_CDLENGULFING.obj \ + ..\..\..\..\..\temp\csd\ta_CDLEVENINGDOJISTAR.obj \ + ..\..\..\..\..\temp\csd\ta_CDLEVENINGSTAR.obj \ + ..\..\..\..\..\temp\csd\ta_CDLGAPSIDESIDEWHITE.obj \ + ..\..\..\..\..\temp\csd\ta_CDLGRAVESTONEDOJI.obj \ + ..\..\..\..\..\temp\csd\ta_CDLHAMMER.obj \ + ..\..\..\..\..\temp\csd\ta_CDLHANGINGMAN.obj \ + ..\..\..\..\..\temp\csd\ta_CDLHARAMI.obj \ + ..\..\..\..\..\temp\csd\ta_CDLHARAMICROSS.obj \ + ..\..\..\..\..\temp\csd\ta_CDLHIGHWAVE.obj \ + ..\..\..\..\..\temp\csd\ta_CDLHIKKAKE.obj \ + ..\..\..\..\..\temp\csd\ta_CDLHIKKAKEMOD.obj \ + ..\..\..\..\..\temp\csd\ta_CDLHOMINGPIGEON.obj \ + ..\..\..\..\..\temp\csd\ta_CDLIDENTICAL3CROWS.obj \ + ..\..\..\..\..\temp\csd\ta_CDLINNECK.obj \ + ..\..\..\..\..\temp\csd\ta_CDLINVERTEDHAMMER.obj \ + ..\..\..\..\..\temp\csd\ta_CDLKICKING.obj \ + ..\..\..\..\..\temp\csd\ta_CDLKICKINGBYLENGTH.obj \ + ..\..\..\..\..\temp\csd\ta_CDLLADDERBOTTOM.obj \ + ..\..\..\..\..\temp\csd\ta_CDLLONGLEGGEDDOJI.obj \ + ..\..\..\..\..\temp\csd\ta_CDLLONGLINE.obj \ + ..\..\..\..\..\temp\csd\ta_CDLMARUBOZU.obj \ + ..\..\..\..\..\temp\csd\ta_CDLMATCHINGLOW.obj \ + ..\..\..\..\..\temp\csd\ta_CDLMATHOLD.obj \ + ..\..\..\..\..\temp\csd\ta_CDLMORNINGDOJISTAR.obj \ + ..\..\..\..\..\temp\csd\ta_CDLMORNINGSTAR.obj \ + ..\..\..\..\..\temp\csd\ta_CDLONNECK.obj \ + ..\..\..\..\..\temp\csd\ta_CDLPIERCING.obj \ + ..\..\..\..\..\temp\csd\ta_CDLRICKSHAWMAN.obj \ + ..\..\..\..\..\temp\csd\ta_CDLRISEFALL3METHODS.obj \ + ..\..\..\..\..\temp\csd\ta_CDLSEPARATINGLINES.obj \ + ..\..\..\..\..\temp\csd\ta_CDLSHOOTINGSTAR.obj \ + ..\..\..\..\..\temp\csd\ta_CDLSHORTLINE.obj \ + ..\..\..\..\..\temp\csd\ta_CDLSPINNINGTOP.obj \ + ..\..\..\..\..\temp\csd\ta_CDLSTALLEDPATTERN.obj \ + ..\..\..\..\..\temp\csd\ta_CDLSTICKSANDWICH.obj \ + ..\..\..\..\..\temp\csd\ta_CDLTAKURI.obj \ + ..\..\..\..\..\temp\csd\ta_CDLTASUKIGAP.obj \ + ..\..\..\..\..\temp\csd\ta_CDLTHRUSTING.obj \ + ..\..\..\..\..\temp\csd\ta_CDLTRISTAR.obj \ + ..\..\..\..\..\temp\csd\ta_CDLUNIQUE3RIVER.obj \ + ..\..\..\..\..\temp\csd\ta_CDLUPSIDEGAP2CROWS.obj \ + ..\..\..\..\..\temp\csd\ta_CDLXSIDEGAP3METHODS.obj \ + ..\..\..\..\..\temp\csd\ta_CEIL.obj \ + ..\..\..\..\..\temp\csd\ta_CMO.obj \ + ..\..\..\..\..\temp\csd\ta_CORREL.obj \ + ..\..\..\..\..\temp\csd\ta_COS.obj \ + ..\..\..\..\..\temp\csd\ta_COSH.obj \ + ..\..\..\..\..\temp\csd\ta_DEMA.obj \ + ..\..\..\..\..\temp\csd\ta_DIV.obj \ + ..\..\..\..\..\temp\csd\ta_DX.obj \ + ..\..\..\..\..\temp\csd\ta_EMA.obj \ + ..\..\..\..\..\temp\csd\ta_EXP.obj \ + ..\..\..\..\..\temp\csd\ta_FLOOR.obj \ + ..\..\..\..\..\temp\csd\ta_HT_DCPERIOD.obj \ + ..\..\..\..\..\temp\csd\ta_HT_DCPHASE.obj \ + ..\..\..\..\..\temp\csd\ta_HT_PHASOR.obj \ + ..\..\..\..\..\temp\csd\ta_HT_SINE.obj \ + ..\..\..\..\..\temp\csd\ta_HT_TRENDLINE.obj \ + ..\..\..\..\..\temp\csd\ta_HT_TRENDMODE.obj \ + ..\..\..\..\..\temp\csd\ta_KAMA.obj \ + ..\..\..\..\..\temp\csd\ta_LINEARREG.obj \ + ..\..\..\..\..\temp\csd\ta_LINEARREG_ANGLE.obj \ + ..\..\..\..\..\temp\csd\ta_LINEARREG_INTERCEPT.obj \ + ..\..\..\..\..\temp\csd\ta_LINEARREG_SLOPE.obj \ + ..\..\..\..\..\temp\csd\ta_LN.obj \ + ..\..\..\..\..\temp\csd\ta_LOG10.obj \ + ..\..\..\..\..\temp\csd\ta_MA.obj \ + ..\..\..\..\..\temp\csd\ta_MACD.obj \ + ..\..\..\..\..\temp\csd\ta_MACDEXT.obj \ + ..\..\..\..\..\temp\csd\ta_MACDFIX.obj \ + ..\..\..\..\..\temp\csd\ta_MAMA.obj \ + ..\..\..\..\..\temp\csd\ta_MAVP.obj \ + ..\..\..\..\..\temp\csd\ta_MAX.obj \ + ..\..\..\..\..\temp\csd\ta_MAXINDEX.obj \ + ..\..\..\..\..\temp\csd\ta_MEDPRICE.obj \ + ..\..\..\..\..\temp\csd\ta_MFI.obj \ + ..\..\..\..\..\temp\csd\ta_MIDPOINT.obj \ + ..\..\..\..\..\temp\csd\ta_MIDPRICE.obj \ + ..\..\..\..\..\temp\csd\ta_MIN.obj \ + ..\..\..\..\..\temp\csd\ta_MININDEX.obj \ + ..\..\..\..\..\temp\csd\ta_MINMAX.obj \ + ..\..\..\..\..\temp\csd\ta_MINMAXINDEX.obj \ + ..\..\..\..\..\temp\csd\ta_MINUS_DI.obj \ + ..\..\..\..\..\temp\csd\ta_MINUS_DM.obj \ + ..\..\..\..\..\temp\csd\ta_MOM.obj \ + ..\..\..\..\..\temp\csd\ta_MULT.obj \ + ..\..\..\..\..\temp\csd\ta_NATR.obj \ + ..\..\..\..\..\temp\csd\ta_OBV.obj \ + ..\..\..\..\..\temp\csd\ta_PLUS_DI.obj \ + ..\..\..\..\..\temp\csd\ta_PLUS_DM.obj \ + ..\..\..\..\..\temp\csd\ta_PPO.obj \ + ..\..\..\..\..\temp\csd\ta_ROC.obj \ + ..\..\..\..\..\temp\csd\ta_ROCP.obj \ + ..\..\..\..\..\temp\csd\ta_ROCR.obj \ + ..\..\..\..\..\temp\csd\ta_ROCR100.obj \ + ..\..\..\..\..\temp\csd\ta_RSI.obj \ + ..\..\..\..\..\temp\csd\ta_SAR.obj \ + ..\..\..\..\..\temp\csd\ta_SAREXT.obj \ + ..\..\..\..\..\temp\csd\ta_SIN.obj \ + ..\..\..\..\..\temp\csd\ta_SINH.obj \ + ..\..\..\..\..\temp\csd\ta_SMA.obj \ + ..\..\..\..\..\temp\csd\ta_SQRT.obj \ + ..\..\..\..\..\temp\csd\ta_STDDEV.obj \ + ..\..\..\..\..\temp\csd\ta_STOCH.obj \ + ..\..\..\..\..\temp\csd\ta_STOCHF.obj \ + ..\..\..\..\..\temp\csd\ta_STOCHRSI.obj \ + ..\..\..\..\..\temp\csd\ta_SUB.obj \ + ..\..\..\..\..\temp\csd\ta_SUM.obj \ + ..\..\..\..\..\temp\csd\ta_T3.obj \ + ..\..\..\..\..\temp\csd\ta_TAN.obj \ + ..\..\..\..\..\temp\csd\ta_TANH.obj \ + ..\..\..\..\..\temp\csd\ta_TEMA.obj \ + ..\..\..\..\..\temp\csd\ta_TRANGE.obj \ + ..\..\..\..\..\temp\csd\ta_TRIMA.obj \ + ..\..\..\..\..\temp\csd\ta_TRIX.obj \ + ..\..\..\..\..\temp\csd\ta_TSF.obj \ + ..\..\..\..\..\temp\csd\ta_TYPPRICE.obj \ + ..\..\..\..\..\temp\csd\ta_ULTOSC.obj \ + ..\..\..\..\..\temp\csd\ta_VAR.obj \ + ..\..\..\..\..\temp\csd\ta_WCLPRICE.obj \ + ..\..\..\..\..\temp\csd\ta_WILLR.obj \ + ..\..\..\..\..\temp\csd\ta_WMA.obj +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ..\..\..\..\..\lib\ta_func_csd.lib +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .c + +.cpp.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.cxx.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.cc.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.c.obj: + $(CC) -c $(CFLAGS) $(INCPATH) -o$@ $< + +####### Build rules + +all: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + -del $(TARGET) + $(LIB) $(TARGET) @&&| ++..\..\..\..\..\temp\csd\ta_utility.obj \ ++..\..\..\..\..\temp\csd\ta_ACOS.obj \ ++..\..\..\..\..\temp\csd\ta_AD.obj \ ++..\..\..\..\..\temp\csd\ta_ADD.obj \ ++..\..\..\..\..\temp\csd\ta_ADOSC.obj \ ++..\..\..\..\..\temp\csd\ta_ADX.obj \ ++..\..\..\..\..\temp\csd\ta_ADXR.obj \ ++..\..\..\..\..\temp\csd\ta_APO.obj \ ++..\..\..\..\..\temp\csd\ta_AROON.obj \ ++..\..\..\..\..\temp\csd\ta_AROONOSC.obj \ ++..\..\..\..\..\temp\csd\ta_ASIN.obj \ ++..\..\..\..\..\temp\csd\ta_ATAN.obj \ ++..\..\..\..\..\temp\csd\ta_ATR.obj \ ++..\..\..\..\..\temp\csd\ta_AVGPRICE.obj \ ++..\..\..\..\..\temp\csd\ta_BBANDS.obj \ ++..\..\..\..\..\temp\csd\ta_BETA.obj \ ++..\..\..\..\..\temp\csd\ta_BOP.obj \ ++..\..\..\..\..\temp\csd\ta_CCI.obj \ ++..\..\..\..\..\temp\csd\ta_CDL2CROWS.obj \ ++..\..\..\..\..\temp\csd\ta_CDL3BLACKCROWS.obj \ ++..\..\..\..\..\temp\csd\ta_CDL3INSIDE.obj \ ++..\..\..\..\..\temp\csd\ta_CDL3LINESTRIKE.obj \ ++..\..\..\..\..\temp\csd\ta_CDL3OUTSIDE.obj \ ++..\..\..\..\..\temp\csd\ta_CDL3STARSINSOUTH.obj \ ++..\..\..\..\..\temp\csd\ta_CDL3WHITESOLDIERS.obj \ ++..\..\..\..\..\temp\csd\ta_CDLABANDONEDBABY.obj \ ++..\..\..\..\..\temp\csd\ta_CDLADVANCEBLOCK.obj \ ++..\..\..\..\..\temp\csd\ta_CDLBELTHOLD.obj \ ++..\..\..\..\..\temp\csd\ta_CDLBREAKAWAY.obj \ ++..\..\..\..\..\temp\csd\ta_CDLCLOSINGMARUBOZU.obj \ ++..\..\..\..\..\temp\csd\ta_CDLCONCEALBABYSWALL.obj \ ++..\..\..\..\..\temp\csd\ta_CDLCOUNTERATTACK.obj \ ++..\..\..\..\..\temp\csd\ta_CDLDARKCLOUDCOVER.obj \ ++..\..\..\..\..\temp\csd\ta_CDLDOJI.obj \ ++..\..\..\..\..\temp\csd\ta_CDLDOJISTAR.obj \ ++..\..\..\..\..\temp\csd\ta_CDLDRAGONFLYDOJI.obj \ ++..\..\..\..\..\temp\csd\ta_CDLENGULFING.obj \ ++..\..\..\..\..\temp\csd\ta_CDLEVENINGDOJISTAR.obj \ ++..\..\..\..\..\temp\csd\ta_CDLEVENINGSTAR.obj \ ++..\..\..\..\..\temp\csd\ta_CDLGAPSIDESIDEWHITE.obj \ ++..\..\..\..\..\temp\csd\ta_CDLGRAVESTONEDOJI.obj \ ++..\..\..\..\..\temp\csd\ta_CDLHAMMER.obj \ ++..\..\..\..\..\temp\csd\ta_CDLHANGINGMAN.obj \ ++..\..\..\..\..\temp\csd\ta_CDLHARAMI.obj \ ++..\..\..\..\..\temp\csd\ta_CDLHARAMICROSS.obj \ ++..\..\..\..\..\temp\csd\ta_CDLHIGHWAVE.obj \ ++..\..\..\..\..\temp\csd\ta_CDLHIKKAKE.obj \ ++..\..\..\..\..\temp\csd\ta_CDLHIKKAKEMOD.obj \ ++..\..\..\..\..\temp\csd\ta_CDLHOMINGPIGEON.obj \ ++..\..\..\..\..\temp\csd\ta_CDLIDENTICAL3CROWS.obj \ ++..\..\..\..\..\temp\csd\ta_CDLINNECK.obj \ ++..\..\..\..\..\temp\csd\ta_CDLINVERTEDHAMMER.obj \ ++..\..\..\..\..\temp\csd\ta_CDLKICKING.obj \ ++..\..\..\..\..\temp\csd\ta_CDLKICKINGBYLENGTH.obj \ ++..\..\..\..\..\temp\csd\ta_CDLLADDERBOTTOM.obj \ ++..\..\..\..\..\temp\csd\ta_CDLLONGLEGGEDDOJI.obj \ ++..\..\..\..\..\temp\csd\ta_CDLLONGLINE.obj \ ++..\..\..\..\..\temp\csd\ta_CDLMARUBOZU.obj \ ++..\..\..\..\..\temp\csd\ta_CDLMATCHINGLOW.obj \ ++..\..\..\..\..\temp\csd\ta_CDLMATHOLD.obj \ ++..\..\..\..\..\temp\csd\ta_CDLMORNINGDOJISTAR.obj \ ++..\..\..\..\..\temp\csd\ta_CDLMORNINGSTAR.obj \ ++..\..\..\..\..\temp\csd\ta_CDLONNECK.obj \ ++..\..\..\..\..\temp\csd\ta_CDLPIERCING.obj \ ++..\..\..\..\..\temp\csd\ta_CDLRICKSHAWMAN.obj \ ++..\..\..\..\..\temp\csd\ta_CDLRISEFALL3METHODS.obj \ ++..\..\..\..\..\temp\csd\ta_CDLSEPARATINGLINES.obj \ ++..\..\..\..\..\temp\csd\ta_CDLSHOOTINGSTAR.obj \ ++..\..\..\..\..\temp\csd\ta_CDLSHORTLINE.obj \ ++..\..\..\..\..\temp\csd\ta_CDLSPINNINGTOP.obj \ ++..\..\..\..\..\temp\csd\ta_CDLSTALLEDPATTERN.obj \ ++..\..\..\..\..\temp\csd\ta_CDLSTICKSANDWICH.obj \ ++..\..\..\..\..\temp\csd\ta_CDLTAKURI.obj \ ++..\..\..\..\..\temp\csd\ta_CDLTASUKIGAP.obj \ ++..\..\..\..\..\temp\csd\ta_CDLTHRUSTING.obj \ ++..\..\..\..\..\temp\csd\ta_CDLTRISTAR.obj \ ++..\..\..\..\..\temp\csd\ta_CDLUNIQUE3RIVER.obj \ ++..\..\..\..\..\temp\csd\ta_CDLUPSIDEGAP2CROWS.obj \ ++..\..\..\..\..\temp\csd\ta_CDLXSIDEGAP3METHODS.obj \ ++..\..\..\..\..\temp\csd\ta_CEIL.obj \ ++..\..\..\..\..\temp\csd\ta_CMO.obj \ ++..\..\..\..\..\temp\csd\ta_CORREL.obj \ ++..\..\..\..\..\temp\csd\ta_COS.obj \ ++..\..\..\..\..\temp\csd\ta_COSH.obj \ ++..\..\..\..\..\temp\csd\ta_DEMA.obj \ ++..\..\..\..\..\temp\csd\ta_DIV.obj \ ++..\..\..\..\..\temp\csd\ta_DX.obj \ ++..\..\..\..\..\temp\csd\ta_EMA.obj \ ++..\..\..\..\..\temp\csd\ta_EXP.obj \ ++..\..\..\..\..\temp\csd\ta_FLOOR.obj \ ++..\..\..\..\..\temp\csd\ta_HT_DCPERIOD.obj \ ++..\..\..\..\..\temp\csd\ta_HT_DCPHASE.obj \ ++..\..\..\..\..\temp\csd\ta_HT_PHASOR.obj \ ++..\..\..\..\..\temp\csd\ta_HT_SINE.obj \ ++..\..\..\..\..\temp\csd\ta_HT_TRENDLINE.obj \ ++..\..\..\..\..\temp\csd\ta_HT_TRENDMODE.obj \ ++..\..\..\..\..\temp\csd\ta_KAMA.obj \ ++..\..\..\..\..\temp\csd\ta_LINEARREG.obj \ ++..\..\..\..\..\temp\csd\ta_LINEARREG_ANGLE.obj \ ++..\..\..\..\..\temp\csd\ta_LINEARREG_INTERCEPT.obj \ ++..\..\..\..\..\temp\csd\ta_LINEARREG_SLOPE.obj \ ++..\..\..\..\..\temp\csd\ta_LN.obj \ ++..\..\..\..\..\temp\csd\ta_LOG10.obj \ ++..\..\..\..\..\temp\csd\ta_MA.obj \ ++..\..\..\..\..\temp\csd\ta_MACD.obj \ ++..\..\..\..\..\temp\csd\ta_MACDEXT.obj \ ++..\..\..\..\..\temp\csd\ta_MACDFIX.obj \ ++..\..\..\..\..\temp\csd\ta_MAMA.obj \ ++..\..\..\..\..\temp\csd\ta_MAVP.obj \ ++..\..\..\..\..\temp\csd\ta_MAX.obj \ ++..\..\..\..\..\temp\csd\ta_MAXINDEX.obj \ ++..\..\..\..\..\temp\csd\ta_MEDPRICE.obj \ ++..\..\..\..\..\temp\csd\ta_MFI.obj \ ++..\..\..\..\..\temp\csd\ta_MIDPOINT.obj \ ++..\..\..\..\..\temp\csd\ta_MIDPRICE.obj \ ++..\..\..\..\..\temp\csd\ta_MIN.obj \ ++..\..\..\..\..\temp\csd\ta_MININDEX.obj \ ++..\..\..\..\..\temp\csd\ta_MINMAX.obj \ ++..\..\..\..\..\temp\csd\ta_MINMAXINDEX.obj \ ++..\..\..\..\..\temp\csd\ta_MINUS_DI.obj \ ++..\..\..\..\..\temp\csd\ta_MINUS_DM.obj \ ++..\..\..\..\..\temp\csd\ta_MOM.obj \ ++..\..\..\..\..\temp\csd\ta_MULT.obj \ ++..\..\..\..\..\temp\csd\ta_NATR.obj \ ++..\..\..\..\..\temp\csd\ta_OBV.obj \ ++..\..\..\..\..\temp\csd\ta_PLUS_DI.obj \ ++..\..\..\..\..\temp\csd\ta_PLUS_DM.obj \ ++..\..\..\..\..\temp\csd\ta_PPO.obj \ ++..\..\..\..\..\temp\csd\ta_ROC.obj \ ++..\..\..\..\..\temp\csd\ta_ROCP.obj \ ++..\..\..\..\..\temp\csd\ta_ROCR.obj \ ++..\..\..\..\..\temp\csd\ta_ROCR100.obj \ ++..\..\..\..\..\temp\csd\ta_RSI.obj \ ++..\..\..\..\..\temp\csd\ta_SAR.obj \ ++..\..\..\..\..\temp\csd\ta_SAREXT.obj \ ++..\..\..\..\..\temp\csd\ta_SIN.obj \ ++..\..\..\..\..\temp\csd\ta_SINH.obj \ ++..\..\..\..\..\temp\csd\ta_SMA.obj \ ++..\..\..\..\..\temp\csd\ta_SQRT.obj \ ++..\..\..\..\..\temp\csd\ta_STDDEV.obj \ ++..\..\..\..\..\temp\csd\ta_STOCH.obj \ ++..\..\..\..\..\temp\csd\ta_STOCHF.obj \ ++..\..\..\..\..\temp\csd\ta_STOCHRSI.obj \ ++..\..\..\..\..\temp\csd\ta_SUB.obj \ ++..\..\..\..\..\temp\csd\ta_SUM.obj \ ++..\..\..\..\..\temp\csd\ta_T3.obj \ ++..\..\..\..\..\temp\csd\ta_TAN.obj \ ++..\..\..\..\..\temp\csd\ta_TANH.obj \ ++..\..\..\..\..\temp\csd\ta_TEMA.obj \ ++..\..\..\..\..\temp\csd\ta_TRANGE.obj \ ++..\..\..\..\..\temp\csd\ta_TRIMA.obj \ ++..\..\..\..\..\temp\csd\ta_TRIX.obj \ ++..\..\..\..\..\temp\csd\ta_TSF.obj \ ++..\..\..\..\..\temp\csd\ta_TYPPRICE.obj \ ++..\..\..\..\..\temp\csd\ta_ULTOSC.obj \ ++..\..\..\..\..\temp\csd\ta_VAR.obj \ ++..\..\..\..\..\temp\csd\ta_WCLPRICE.obj \ ++..\..\..\..\..\temp\csd\ta_WILLR.obj \ ++..\..\..\..\..\temp\csd\ta_WMA.obj \ ++ +| + +moc: $(SRCMOC) + +tmake: ../csd/win32/borland/ta_func/Makefile + +../csd/win32/borland/ta_func/Makefile: ta_func/ta_func.pro + tmake ta_func/ta_func.pro -o ../csd/win32/borland/ta_func/Makefile + +dist: + $(ZIP) ta_func/ta_func.zip ta_func/ta_func.pro $(SOURCES) $(HEADERS) $(DIST) + +clean: + -del ..\..\..\..\..\temp\csd\ta_utility.obj + -del ..\..\..\..\..\temp\csd\ta_ACOS.obj + -del ..\..\..\..\..\temp\csd\ta_AD.obj + -del ..\..\..\..\..\temp\csd\ta_ADD.obj + -del ..\..\..\..\..\temp\csd\ta_ADOSC.obj + -del ..\..\..\..\..\temp\csd\ta_ADX.obj + -del ..\..\..\..\..\temp\csd\ta_ADXR.obj + -del ..\..\..\..\..\temp\csd\ta_APO.obj + -del ..\..\..\..\..\temp\csd\ta_AROON.obj + -del ..\..\..\..\..\temp\csd\ta_AROONOSC.obj + -del ..\..\..\..\..\temp\csd\ta_ASIN.obj + -del ..\..\..\..\..\temp\csd\ta_ATAN.obj + -del ..\..\..\..\..\temp\csd\ta_ATR.obj + -del ..\..\..\..\..\temp\csd\ta_AVGPRICE.obj + -del ..\..\..\..\..\temp\csd\ta_BBANDS.obj + -del ..\..\..\..\..\temp\csd\ta_BETA.obj + -del ..\..\..\..\..\temp\csd\ta_BOP.obj + -del ..\..\..\..\..\temp\csd\ta_CCI.obj + -del ..\..\..\..\..\temp\csd\ta_CDL2CROWS.obj + -del ..\..\..\..\..\temp\csd\ta_CDL3BLACKCROWS.obj + -del ..\..\..\..\..\temp\csd\ta_CDL3INSIDE.obj + -del ..\..\..\..\..\temp\csd\ta_CDL3LINESTRIKE.obj + -del ..\..\..\..\..\temp\csd\ta_CDL3OUTSIDE.obj + -del ..\..\..\..\..\temp\csd\ta_CDL3STARSINSOUTH.obj + -del ..\..\..\..\..\temp\csd\ta_CDL3WHITESOLDIERS.obj + -del ..\..\..\..\..\temp\csd\ta_CDLABANDONEDBABY.obj + -del ..\..\..\..\..\temp\csd\ta_CDLADVANCEBLOCK.obj + -del ..\..\..\..\..\temp\csd\ta_CDLBELTHOLD.obj + -del ..\..\..\..\..\temp\csd\ta_CDLBREAKAWAY.obj + -del ..\..\..\..\..\temp\csd\ta_CDLCLOSINGMARUBOZU.obj + -del ..\..\..\..\..\temp\csd\ta_CDLCONCEALBABYSWALL.obj + -del ..\..\..\..\..\temp\csd\ta_CDLCOUNTERATTACK.obj + -del ..\..\..\..\..\temp\csd\ta_CDLDARKCLOUDCOVER.obj + -del ..\..\..\..\..\temp\csd\ta_CDLDOJI.obj + -del ..\..\..\..\..\temp\csd\ta_CDLDOJISTAR.obj + -del ..\..\..\..\..\temp\csd\ta_CDLDRAGONFLYDOJI.obj + -del ..\..\..\..\..\temp\csd\ta_CDLENGULFING.obj + -del ..\..\..\..\..\temp\csd\ta_CDLEVENINGDOJISTAR.obj + -del ..\..\..\..\..\temp\csd\ta_CDLEVENINGSTAR.obj + -del ..\..\..\..\..\temp\csd\ta_CDLGAPSIDESIDEWHITE.obj + -del ..\..\..\..\..\temp\csd\ta_CDLGRAVESTONEDOJI.obj + -del ..\..\..\..\..\temp\csd\ta_CDLHAMMER.obj + -del ..\..\..\..\..\temp\csd\ta_CDLHANGINGMAN.obj + -del ..\..\..\..\..\temp\csd\ta_CDLHARAMI.obj + -del ..\..\..\..\..\temp\csd\ta_CDLHARAMICROSS.obj + -del ..\..\..\..\..\temp\csd\ta_CDLHIGHWAVE.obj + -del ..\..\..\..\..\temp\csd\ta_CDLHIKKAKE.obj + -del ..\..\..\..\..\temp\csd\ta_CDLHIKKAKEMOD.obj + -del ..\..\..\..\..\temp\csd\ta_CDLHOMINGPIGEON.obj + -del ..\..\..\..\..\temp\csd\ta_CDLIDENTICAL3CROWS.obj + -del ..\..\..\..\..\temp\csd\ta_CDLINNECK.obj + -del ..\..\..\..\..\temp\csd\ta_CDLINVERTEDHAMMER.obj + -del ..\..\..\..\..\temp\csd\ta_CDLKICKING.obj + -del ..\..\..\..\..\temp\csd\ta_CDLKICKINGBYLENGTH.obj + -del ..\..\..\..\..\temp\csd\ta_CDLLADDERBOTTOM.obj + -del ..\..\..\..\..\temp\csd\ta_CDLLONGLEGGEDDOJI.obj + -del ..\..\..\..\..\temp\csd\ta_CDLLONGLINE.obj + -del ..\..\..\..\..\temp\csd\ta_CDLMARUBOZU.obj + -del ..\..\..\..\..\temp\csd\ta_CDLMATCHINGLOW.obj + -del ..\..\..\..\..\temp\csd\ta_CDLMATHOLD.obj + -del ..\..\..\..\..\temp\csd\ta_CDLMORNINGDOJISTAR.obj + -del ..\..\..\..\..\temp\csd\ta_CDLMORNINGSTAR.obj + -del ..\..\..\..\..\temp\csd\ta_CDLONNECK.obj + -del ..\..\..\..\..\temp\csd\ta_CDLPIERCING.obj + -del ..\..\..\..\..\temp\csd\ta_CDLRICKSHAWMAN.obj + -del ..\..\..\..\..\temp\csd\ta_CDLRISEFALL3METHODS.obj + -del ..\..\..\..\..\temp\csd\ta_CDLSEPARATINGLINES.obj + -del ..\..\..\..\..\temp\csd\ta_CDLSHOOTINGSTAR.obj + -del ..\..\..\..\..\temp\csd\ta_CDLSHORTLINE.obj + -del ..\..\..\..\..\temp\csd\ta_CDLSPINNINGTOP.obj + -del ..\..\..\..\..\temp\csd\ta_CDLSTALLEDPATTERN.obj + -del ..\..\..\..\..\temp\csd\ta_CDLSTICKSANDWICH.obj + -del ..\..\..\..\..\temp\csd\ta_CDLTAKURI.obj + -del ..\..\..\..\..\temp\csd\ta_CDLTASUKIGAP.obj + -del ..\..\..\..\..\temp\csd\ta_CDLTHRUSTING.obj + -del ..\..\..\..\..\temp\csd\ta_CDLTRISTAR.obj + -del ..\..\..\..\..\temp\csd\ta_CDLUNIQUE3RIVER.obj + -del ..\..\..\..\..\temp\csd\ta_CDLUPSIDEGAP2CROWS.obj + -del ..\..\..\..\..\temp\csd\ta_CDLXSIDEGAP3METHODS.obj + -del ..\..\..\..\..\temp\csd\ta_CEIL.obj + -del ..\..\..\..\..\temp\csd\ta_CMO.obj + -del ..\..\..\..\..\temp\csd\ta_CORREL.obj + -del ..\..\..\..\..\temp\csd\ta_COS.obj + -del ..\..\..\..\..\temp\csd\ta_COSH.obj + -del ..\..\..\..\..\temp\csd\ta_DEMA.obj + -del ..\..\..\..\..\temp\csd\ta_DIV.obj + -del ..\..\..\..\..\temp\csd\ta_DX.obj + -del ..\..\..\..\..\temp\csd\ta_EMA.obj + -del ..\..\..\..\..\temp\csd\ta_EXP.obj + -del ..\..\..\..\..\temp\csd\ta_FLOOR.obj + -del ..\..\..\..\..\temp\csd\ta_HT_DCPERIOD.obj + -del ..\..\..\..\..\temp\csd\ta_HT_DCPHASE.obj + -del ..\..\..\..\..\temp\csd\ta_HT_PHASOR.obj + -del ..\..\..\..\..\temp\csd\ta_HT_SINE.obj + -del ..\..\..\..\..\temp\csd\ta_HT_TRENDLINE.obj + -del ..\..\..\..\..\temp\csd\ta_HT_TRENDMODE.obj + -del ..\..\..\..\..\temp\csd\ta_KAMA.obj + -del ..\..\..\..\..\temp\csd\ta_LINEARREG.obj + -del ..\..\..\..\..\temp\csd\ta_LINEARREG_ANGLE.obj + -del ..\..\..\..\..\temp\csd\ta_LINEARREG_INTERCEPT.obj + -del ..\..\..\..\..\temp\csd\ta_LINEARREG_SLOPE.obj + -del ..\..\..\..\..\temp\csd\ta_LN.obj + -del ..\..\..\..\..\temp\csd\ta_LOG10.obj + -del ..\..\..\..\..\temp\csd\ta_MA.obj + -del ..\..\..\..\..\temp\csd\ta_MACD.obj + -del ..\..\..\..\..\temp\csd\ta_MACDEXT.obj + -del ..\..\..\..\..\temp\csd\ta_MACDFIX.obj + -del ..\..\..\..\..\temp\csd\ta_MAMA.obj + -del ..\..\..\..\..\temp\csd\ta_MAVP.obj + -del ..\..\..\..\..\temp\csd\ta_MAX.obj + -del ..\..\..\..\..\temp\csd\ta_MAXINDEX.obj + -del ..\..\..\..\..\temp\csd\ta_MEDPRICE.obj + -del ..\..\..\..\..\temp\csd\ta_MFI.obj + -del ..\..\..\..\..\temp\csd\ta_MIDPOINT.obj + -del ..\..\..\..\..\temp\csd\ta_MIDPRICE.obj + -del ..\..\..\..\..\temp\csd\ta_MIN.obj + -del ..\..\..\..\..\temp\csd\ta_MININDEX.obj + -del ..\..\..\..\..\temp\csd\ta_MINMAX.obj + -del ..\..\..\..\..\temp\csd\ta_MINMAXINDEX.obj + -del ..\..\..\..\..\temp\csd\ta_MINUS_DI.obj + -del ..\..\..\..\..\temp\csd\ta_MINUS_DM.obj + -del ..\..\..\..\..\temp\csd\ta_MOM.obj + -del ..\..\..\..\..\temp\csd\ta_MULT.obj + -del ..\..\..\..\..\temp\csd\ta_NATR.obj + -del ..\..\..\..\..\temp\csd\ta_OBV.obj + -del ..\..\..\..\..\temp\csd\ta_PLUS_DI.obj + -del ..\..\..\..\..\temp\csd\ta_PLUS_DM.obj + -del ..\..\..\..\..\temp\csd\ta_PPO.obj + -del ..\..\..\..\..\temp\csd\ta_ROC.obj + -del ..\..\..\..\..\temp\csd\ta_ROCP.obj + -del ..\..\..\..\..\temp\csd\ta_ROCR.obj + -del ..\..\..\..\..\temp\csd\ta_ROCR100.obj + -del ..\..\..\..\..\temp\csd\ta_RSI.obj + -del ..\..\..\..\..\temp\csd\ta_SAR.obj + -del ..\..\..\..\..\temp\csd\ta_SAREXT.obj + -del ..\..\..\..\..\temp\csd\ta_SIN.obj + -del ..\..\..\..\..\temp\csd\ta_SINH.obj + -del ..\..\..\..\..\temp\csd\ta_SMA.obj + -del ..\..\..\..\..\temp\csd\ta_SQRT.obj + -del ..\..\..\..\..\temp\csd\ta_STDDEV.obj + -del ..\..\..\..\..\temp\csd\ta_STOCH.obj + -del ..\..\..\..\..\temp\csd\ta_STOCHF.obj + -del ..\..\..\..\..\temp\csd\ta_STOCHRSI.obj + -del ..\..\..\..\..\temp\csd\ta_SUB.obj + -del ..\..\..\..\..\temp\csd\ta_SUM.obj + -del ..\..\..\..\..\temp\csd\ta_T3.obj + -del ..\..\..\..\..\temp\csd\ta_TAN.obj + -del ..\..\..\..\..\temp\csd\ta_TANH.obj + -del ..\..\..\..\..\temp\csd\ta_TEMA.obj + -del ..\..\..\..\..\temp\csd\ta_TRANGE.obj + -del ..\..\..\..\..\temp\csd\ta_TRIMA.obj + -del ..\..\..\..\..\temp\csd\ta_TRIX.obj + -del ..\..\..\..\..\temp\csd\ta_TSF.obj + -del ..\..\..\..\..\temp\csd\ta_TYPPRICE.obj + -del ..\..\..\..\..\temp\csd\ta_ULTOSC.obj + -del ..\..\..\..\..\temp\csd\ta_VAR.obj + -del ..\..\..\..\..\temp\csd\ta_WCLPRICE.obj + -del ..\..\..\..\..\temp\csd\ta_WILLR.obj + -del ..\..\..\..\..\temp\csd\ta_WMA.obj + -del $(TARGET) + -del ta_func_csd.tds + -del ../../../../../bin/*.map + -del ../../../../../bin/*._xe + -del ../../../../../bin/*.tds + -del ../../../../../bin/*.pdb + -del ../../../../../bin/*.pbo + -del ../../../../../bin/*.pbi + -del ../../../../../bin/*.pbt + -del ../../../../../temp/csd/*.pch + -del ../../../../../temp/csd/*.idb + -del ../../../../../temp/csd/ta_func/*.pch + -del ../../../../../temp/csd/ta_func/*.idb + -del ../../../../../temp/csd/ta_func/*.obj + +####### Compile + +..\..\..\..\..\temp\csd\ta_utility.obj: ..\..\..\..\..\src\ta_func\ta_utility.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_utility.obj ..\..\..\..\..\src\ta_func\ta_utility.c + +..\..\..\..\..\temp\csd\ta_ACOS.obj: ..\..\..\..\..\src\ta_func\ta_ACOS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_ACOS.obj ..\..\..\..\..\src\ta_func\ta_ACOS.c + +..\..\..\..\..\temp\csd\ta_AD.obj: ..\..\..\..\..\src\ta_func\ta_AD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_AD.obj ..\..\..\..\..\src\ta_func\ta_AD.c + +..\..\..\..\..\temp\csd\ta_ADD.obj: ..\..\..\..\..\src\ta_func\ta_ADD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_ADD.obj ..\..\..\..\..\src\ta_func\ta_ADD.c + +..\..\..\..\..\temp\csd\ta_ADOSC.obj: ..\..\..\..\..\src\ta_func\ta_ADOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_ADOSC.obj ..\..\..\..\..\src\ta_func\ta_ADOSC.c + +..\..\..\..\..\temp\csd\ta_ADX.obj: ..\..\..\..\..\src\ta_func\ta_ADX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_ADX.obj ..\..\..\..\..\src\ta_func\ta_ADX.c + +..\..\..\..\..\temp\csd\ta_ADXR.obj: ..\..\..\..\..\src\ta_func\ta_ADXR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_ADXR.obj ..\..\..\..\..\src\ta_func\ta_ADXR.c + +..\..\..\..\..\temp\csd\ta_APO.obj: ..\..\..\..\..\src\ta_func\ta_APO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_APO.obj ..\..\..\..\..\src\ta_func\ta_APO.c + +..\..\..\..\..\temp\csd\ta_AROON.obj: ..\..\..\..\..\src\ta_func\ta_AROON.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_AROON.obj ..\..\..\..\..\src\ta_func\ta_AROON.c + +..\..\..\..\..\temp\csd\ta_AROONOSC.obj: ..\..\..\..\..\src\ta_func\ta_AROONOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_AROONOSC.obj ..\..\..\..\..\src\ta_func\ta_AROONOSC.c + +..\..\..\..\..\temp\csd\ta_ASIN.obj: ..\..\..\..\..\src\ta_func\ta_ASIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_ASIN.obj ..\..\..\..\..\src\ta_func\ta_ASIN.c + +..\..\..\..\..\temp\csd\ta_ATAN.obj: ..\..\..\..\..\src\ta_func\ta_ATAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_ATAN.obj ..\..\..\..\..\src\ta_func\ta_ATAN.c + +..\..\..\..\..\temp\csd\ta_ATR.obj: ..\..\..\..\..\src\ta_func\ta_ATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_ATR.obj ..\..\..\..\..\src\ta_func\ta_ATR.c + +..\..\..\..\..\temp\csd\ta_AVGPRICE.obj: ..\..\..\..\..\src\ta_func\ta_AVGPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_AVGPRICE.obj ..\..\..\..\..\src\ta_func\ta_AVGPRICE.c + +..\..\..\..\..\temp\csd\ta_BBANDS.obj: ..\..\..\..\..\src\ta_func\ta_BBANDS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_BBANDS.obj ..\..\..\..\..\src\ta_func\ta_BBANDS.c + +..\..\..\..\..\temp\csd\ta_BETA.obj: ..\..\..\..\..\src\ta_func\ta_BETA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_BETA.obj ..\..\..\..\..\src\ta_func\ta_BETA.c + +..\..\..\..\..\temp\csd\ta_BOP.obj: ..\..\..\..\..\src\ta_func\ta_BOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_BOP.obj ..\..\..\..\..\src\ta_func\ta_BOP.c + +..\..\..\..\..\temp\csd\ta_CCI.obj: ..\..\..\..\..\src\ta_func\ta_CCI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CCI.obj ..\..\..\..\..\src\ta_func\ta_CCI.c + +..\..\..\..\..\temp\csd\ta_CDL2CROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDL2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDL2CROWS.obj ..\..\..\..\..\src\ta_func\ta_CDL2CROWS.c + +..\..\..\..\..\temp\csd\ta_CDL3BLACKCROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDL3BLACKCROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDL3BLACKCROWS.obj ..\..\..\..\..\src\ta_func\ta_CDL3BLACKCROWS.c + +..\..\..\..\..\temp\csd\ta_CDL3INSIDE.obj: ..\..\..\..\..\src\ta_func\ta_CDL3INSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDL3INSIDE.obj ..\..\..\..\..\src\ta_func\ta_CDL3INSIDE.c + +..\..\..\..\..\temp\csd\ta_CDL3LINESTRIKE.obj: ..\..\..\..\..\src\ta_func\ta_CDL3LINESTRIKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDL3LINESTRIKE.obj ..\..\..\..\..\src\ta_func\ta_CDL3LINESTRIKE.c + +..\..\..\..\..\temp\csd\ta_CDL3OUTSIDE.obj: ..\..\..\..\..\src\ta_func\ta_CDL3OUTSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDL3OUTSIDE.obj ..\..\..\..\..\src\ta_func\ta_CDL3OUTSIDE.c + +..\..\..\..\..\temp\csd\ta_CDL3STARSINSOUTH.obj: ..\..\..\..\..\src\ta_func\ta_CDL3STARSINSOUTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDL3STARSINSOUTH.obj ..\..\..\..\..\src\ta_func\ta_CDL3STARSINSOUTH.c + +..\..\..\..\..\temp\csd\ta_CDL3WHITESOLDIERS.obj: ..\..\..\..\..\src\ta_func\ta_CDL3WHITESOLDIERS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDL3WHITESOLDIERS.obj ..\..\..\..\..\src\ta_func\ta_CDL3WHITESOLDIERS.c + +..\..\..\..\..\temp\csd\ta_CDLABANDONEDBABY.obj: ..\..\..\..\..\src\ta_func\ta_CDLABANDONEDBABY.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLABANDONEDBABY.obj ..\..\..\..\..\src\ta_func\ta_CDLABANDONEDBABY.c + +..\..\..\..\..\temp\csd\ta_CDLADVANCEBLOCK.obj: ..\..\..\..\..\src\ta_func\ta_CDLADVANCEBLOCK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLADVANCEBLOCK.obj ..\..\..\..\..\src\ta_func\ta_CDLADVANCEBLOCK.c + +..\..\..\..\..\temp\csd\ta_CDLBELTHOLD.obj: ..\..\..\..\..\src\ta_func\ta_CDLBELTHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLBELTHOLD.obj ..\..\..\..\..\src\ta_func\ta_CDLBELTHOLD.c + +..\..\..\..\..\temp\csd\ta_CDLBREAKAWAY.obj: ..\..\..\..\..\src\ta_func\ta_CDLBREAKAWAY.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLBREAKAWAY.obj ..\..\..\..\..\src\ta_func\ta_CDLBREAKAWAY.c + +..\..\..\..\..\temp\csd\ta_CDLCLOSINGMARUBOZU.obj: ..\..\..\..\..\src\ta_func\ta_CDLCLOSINGMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLCLOSINGMARUBOZU.obj ..\..\..\..\..\src\ta_func\ta_CDLCLOSINGMARUBOZU.c + +..\..\..\..\..\temp\csd\ta_CDLCONCEALBABYSWALL.obj: ..\..\..\..\..\src\ta_func\ta_CDLCONCEALBABYSWALL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLCONCEALBABYSWALL.obj ..\..\..\..\..\src\ta_func\ta_CDLCONCEALBABYSWALL.c + +..\..\..\..\..\temp\csd\ta_CDLCOUNTERATTACK.obj: ..\..\..\..\..\src\ta_func\ta_CDLCOUNTERATTACK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLCOUNTERATTACK.obj ..\..\..\..\..\src\ta_func\ta_CDLCOUNTERATTACK.c + +..\..\..\..\..\temp\csd\ta_CDLDARKCLOUDCOVER.obj: ..\..\..\..\..\src\ta_func\ta_CDLDARKCLOUDCOVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLDARKCLOUDCOVER.obj ..\..\..\..\..\src\ta_func\ta_CDLDARKCLOUDCOVER.c + +..\..\..\..\..\temp\csd\ta_CDLDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLDOJI.c + +..\..\..\..\..\temp\csd\ta_CDLDOJISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLDOJISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLDOJISTAR.c + +..\..\..\..\..\temp\csd\ta_CDLDRAGONFLYDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLDRAGONFLYDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLDRAGONFLYDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLDRAGONFLYDOJI.c + +..\..\..\..\..\temp\csd\ta_CDLENGULFING.obj: ..\..\..\..\..\src\ta_func\ta_CDLENGULFING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLENGULFING.obj ..\..\..\..\..\src\ta_func\ta_CDLENGULFING.c + +..\..\..\..\..\temp\csd\ta_CDLEVENINGDOJISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLEVENINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLEVENINGDOJISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLEVENINGDOJISTAR.c + +..\..\..\..\..\temp\csd\ta_CDLEVENINGSTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLEVENINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLEVENINGSTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLEVENINGSTAR.c + +..\..\..\..\..\temp\csd\ta_CDLGAPSIDESIDEWHITE.obj: ..\..\..\..\..\src\ta_func\ta_CDLGAPSIDESIDEWHITE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLGAPSIDESIDEWHITE.obj ..\..\..\..\..\src\ta_func\ta_CDLGAPSIDESIDEWHITE.c + +..\..\..\..\..\temp\csd\ta_CDLGRAVESTONEDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLGRAVESTONEDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLGRAVESTONEDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLGRAVESTONEDOJI.c + +..\..\..\..\..\temp\csd\ta_CDLHAMMER.obj: ..\..\..\..\..\src\ta_func\ta_CDLHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLHAMMER.obj ..\..\..\..\..\src\ta_func\ta_CDLHAMMER.c + +..\..\..\..\..\temp\csd\ta_CDLHANGINGMAN.obj: ..\..\..\..\..\src\ta_func\ta_CDLHANGINGMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLHANGINGMAN.obj ..\..\..\..\..\src\ta_func\ta_CDLHANGINGMAN.c + +..\..\..\..\..\temp\csd\ta_CDLHARAMI.obj: ..\..\..\..\..\src\ta_func\ta_CDLHARAMI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLHARAMI.obj ..\..\..\..\..\src\ta_func\ta_CDLHARAMI.c + +..\..\..\..\..\temp\csd\ta_CDLHARAMICROSS.obj: ..\..\..\..\..\src\ta_func\ta_CDLHARAMICROSS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLHARAMICROSS.obj ..\..\..\..\..\src\ta_func\ta_CDLHARAMICROSS.c + +..\..\..\..\..\temp\csd\ta_CDLHIGHWAVE.obj: ..\..\..\..\..\src\ta_func\ta_CDLHIGHWAVE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLHIGHWAVE.obj ..\..\..\..\..\src\ta_func\ta_CDLHIGHWAVE.c + +..\..\..\..\..\temp\csd\ta_CDLHIKKAKE.obj: ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLHIKKAKE.obj ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKE.c + +..\..\..\..\..\temp\csd\ta_CDLHIKKAKEMOD.obj: ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKEMOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLHIKKAKEMOD.obj ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKEMOD.c + +..\..\..\..\..\temp\csd\ta_CDLHOMINGPIGEON.obj: ..\..\..\..\..\src\ta_func\ta_CDLHOMINGPIGEON.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLHOMINGPIGEON.obj ..\..\..\..\..\src\ta_func\ta_CDLHOMINGPIGEON.c + +..\..\..\..\..\temp\csd\ta_CDLIDENTICAL3CROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDLIDENTICAL3CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLIDENTICAL3CROWS.obj ..\..\..\..\..\src\ta_func\ta_CDLIDENTICAL3CROWS.c + +..\..\..\..\..\temp\csd\ta_CDLINNECK.obj: ..\..\..\..\..\src\ta_func\ta_CDLINNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLINNECK.obj ..\..\..\..\..\src\ta_func\ta_CDLINNECK.c + +..\..\..\..\..\temp\csd\ta_CDLINVERTEDHAMMER.obj: ..\..\..\..\..\src\ta_func\ta_CDLINVERTEDHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLINVERTEDHAMMER.obj ..\..\..\..\..\src\ta_func\ta_CDLINVERTEDHAMMER.c + +..\..\..\..\..\temp\csd\ta_CDLKICKING.obj: ..\..\..\..\..\src\ta_func\ta_CDLKICKING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLKICKING.obj ..\..\..\..\..\src\ta_func\ta_CDLKICKING.c + +..\..\..\..\..\temp\csd\ta_CDLKICKINGBYLENGTH.obj: ..\..\..\..\..\src\ta_func\ta_CDLKICKINGBYLENGTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLKICKINGBYLENGTH.obj ..\..\..\..\..\src\ta_func\ta_CDLKICKINGBYLENGTH.c + +..\..\..\..\..\temp\csd\ta_CDLLADDERBOTTOM.obj: ..\..\..\..\..\src\ta_func\ta_CDLLADDERBOTTOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLLADDERBOTTOM.obj ..\..\..\..\..\src\ta_func\ta_CDLLADDERBOTTOM.c + +..\..\..\..\..\temp\csd\ta_CDLLONGLEGGEDDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLLONGLEGGEDDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLLONGLEGGEDDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLLONGLEGGEDDOJI.c + +..\..\..\..\..\temp\csd\ta_CDLLONGLINE.obj: ..\..\..\..\..\src\ta_func\ta_CDLLONGLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLLONGLINE.obj ..\..\..\..\..\src\ta_func\ta_CDLLONGLINE.c + +..\..\..\..\..\temp\csd\ta_CDLMARUBOZU.obj: ..\..\..\..\..\src\ta_func\ta_CDLMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLMARUBOZU.obj ..\..\..\..\..\src\ta_func\ta_CDLMARUBOZU.c + +..\..\..\..\..\temp\csd\ta_CDLMATCHINGLOW.obj: ..\..\..\..\..\src\ta_func\ta_CDLMATCHINGLOW.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLMATCHINGLOW.obj ..\..\..\..\..\src\ta_func\ta_CDLMATCHINGLOW.c + +..\..\..\..\..\temp\csd\ta_CDLMATHOLD.obj: ..\..\..\..\..\src\ta_func\ta_CDLMATHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLMATHOLD.obj ..\..\..\..\..\src\ta_func\ta_CDLMATHOLD.c + +..\..\..\..\..\temp\csd\ta_CDLMORNINGDOJISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLMORNINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLMORNINGDOJISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLMORNINGDOJISTAR.c + +..\..\..\..\..\temp\csd\ta_CDLMORNINGSTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLMORNINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLMORNINGSTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLMORNINGSTAR.c + +..\..\..\..\..\temp\csd\ta_CDLONNECK.obj: ..\..\..\..\..\src\ta_func\ta_CDLONNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLONNECK.obj ..\..\..\..\..\src\ta_func\ta_CDLONNECK.c + +..\..\..\..\..\temp\csd\ta_CDLPIERCING.obj: ..\..\..\..\..\src\ta_func\ta_CDLPIERCING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLPIERCING.obj ..\..\..\..\..\src\ta_func\ta_CDLPIERCING.c + +..\..\..\..\..\temp\csd\ta_CDLRICKSHAWMAN.obj: ..\..\..\..\..\src\ta_func\ta_CDLRICKSHAWMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLRICKSHAWMAN.obj ..\..\..\..\..\src\ta_func\ta_CDLRICKSHAWMAN.c + +..\..\..\..\..\temp\csd\ta_CDLRISEFALL3METHODS.obj: ..\..\..\..\..\src\ta_func\ta_CDLRISEFALL3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLRISEFALL3METHODS.obj ..\..\..\..\..\src\ta_func\ta_CDLRISEFALL3METHODS.c + +..\..\..\..\..\temp\csd\ta_CDLSEPARATINGLINES.obj: ..\..\..\..\..\src\ta_func\ta_CDLSEPARATINGLINES.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLSEPARATINGLINES.obj ..\..\..\..\..\src\ta_func\ta_CDLSEPARATINGLINES.c + +..\..\..\..\..\temp\csd\ta_CDLSHOOTINGSTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLSHOOTINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLSHOOTINGSTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLSHOOTINGSTAR.c + +..\..\..\..\..\temp\csd\ta_CDLSHORTLINE.obj: ..\..\..\..\..\src\ta_func\ta_CDLSHORTLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLSHORTLINE.obj ..\..\..\..\..\src\ta_func\ta_CDLSHORTLINE.c + +..\..\..\..\..\temp\csd\ta_CDLSPINNINGTOP.obj: ..\..\..\..\..\src\ta_func\ta_CDLSPINNINGTOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLSPINNINGTOP.obj ..\..\..\..\..\src\ta_func\ta_CDLSPINNINGTOP.c + +..\..\..\..\..\temp\csd\ta_CDLSTALLEDPATTERN.obj: ..\..\..\..\..\src\ta_func\ta_CDLSTALLEDPATTERN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLSTALLEDPATTERN.obj ..\..\..\..\..\src\ta_func\ta_CDLSTALLEDPATTERN.c + +..\..\..\..\..\temp\csd\ta_CDLSTICKSANDWICH.obj: ..\..\..\..\..\src\ta_func\ta_CDLSTICKSANDWICH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLSTICKSANDWICH.obj ..\..\..\..\..\src\ta_func\ta_CDLSTICKSANDWICH.c + +..\..\..\..\..\temp\csd\ta_CDLTAKURI.obj: ..\..\..\..\..\src\ta_func\ta_CDLTAKURI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLTAKURI.obj ..\..\..\..\..\src\ta_func\ta_CDLTAKURI.c + +..\..\..\..\..\temp\csd\ta_CDLTASUKIGAP.obj: ..\..\..\..\..\src\ta_func\ta_CDLTASUKIGAP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLTASUKIGAP.obj ..\..\..\..\..\src\ta_func\ta_CDLTASUKIGAP.c + +..\..\..\..\..\temp\csd\ta_CDLTHRUSTING.obj: ..\..\..\..\..\src\ta_func\ta_CDLTHRUSTING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLTHRUSTING.obj ..\..\..\..\..\src\ta_func\ta_CDLTHRUSTING.c + +..\..\..\..\..\temp\csd\ta_CDLTRISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLTRISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLTRISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLTRISTAR.c + +..\..\..\..\..\temp\csd\ta_CDLUNIQUE3RIVER.obj: ..\..\..\..\..\src\ta_func\ta_CDLUNIQUE3RIVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLUNIQUE3RIVER.obj ..\..\..\..\..\src\ta_func\ta_CDLUNIQUE3RIVER.c + +..\..\..\..\..\temp\csd\ta_CDLUPSIDEGAP2CROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDLUPSIDEGAP2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLUPSIDEGAP2CROWS.obj ..\..\..\..\..\src\ta_func\ta_CDLUPSIDEGAP2CROWS.c + +..\..\..\..\..\temp\csd\ta_CDLXSIDEGAP3METHODS.obj: ..\..\..\..\..\src\ta_func\ta_CDLXSIDEGAP3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLXSIDEGAP3METHODS.obj ..\..\..\..\..\src\ta_func\ta_CDLXSIDEGAP3METHODS.c + +..\..\..\..\..\temp\csd\ta_CEIL.obj: ..\..\..\..\..\src\ta_func\ta_CEIL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CEIL.obj ..\..\..\..\..\src\ta_func\ta_CEIL.c + +..\..\..\..\..\temp\csd\ta_CMO.obj: ..\..\..\..\..\src\ta_func\ta_CMO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CMO.obj ..\..\..\..\..\src\ta_func\ta_CMO.c + +..\..\..\..\..\temp\csd\ta_CORREL.obj: ..\..\..\..\..\src\ta_func\ta_CORREL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CORREL.obj ..\..\..\..\..\src\ta_func\ta_CORREL.c + +..\..\..\..\..\temp\csd\ta_COS.obj: ..\..\..\..\..\src\ta_func\ta_COS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_COS.obj ..\..\..\..\..\src\ta_func\ta_COS.c + +..\..\..\..\..\temp\csd\ta_COSH.obj: ..\..\..\..\..\src\ta_func\ta_COSH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_COSH.obj ..\..\..\..\..\src\ta_func\ta_COSH.c + +..\..\..\..\..\temp\csd\ta_DEMA.obj: ..\..\..\..\..\src\ta_func\ta_DEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_DEMA.obj ..\..\..\..\..\src\ta_func\ta_DEMA.c + +..\..\..\..\..\temp\csd\ta_DIV.obj: ..\..\..\..\..\src\ta_func\ta_DIV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_DIV.obj ..\..\..\..\..\src\ta_func\ta_DIV.c + +..\..\..\..\..\temp\csd\ta_DX.obj: ..\..\..\..\..\src\ta_func\ta_DX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_DX.obj ..\..\..\..\..\src\ta_func\ta_DX.c + +..\..\..\..\..\temp\csd\ta_EMA.obj: ..\..\..\..\..\src\ta_func\ta_EMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_EMA.obj ..\..\..\..\..\src\ta_func\ta_EMA.c + +..\..\..\..\..\temp\csd\ta_EXP.obj: ..\..\..\..\..\src\ta_func\ta_EXP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_EXP.obj ..\..\..\..\..\src\ta_func\ta_EXP.c + +..\..\..\..\..\temp\csd\ta_FLOOR.obj: ..\..\..\..\..\src\ta_func\ta_FLOOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_FLOOR.obj ..\..\..\..\..\src\ta_func\ta_FLOOR.c + +..\..\..\..\..\temp\csd\ta_HT_DCPERIOD.obj: ..\..\..\..\..\src\ta_func\ta_HT_DCPERIOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_HT_DCPERIOD.obj ..\..\..\..\..\src\ta_func\ta_HT_DCPERIOD.c + +..\..\..\..\..\temp\csd\ta_HT_DCPHASE.obj: ..\..\..\..\..\src\ta_func\ta_HT_DCPHASE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_HT_DCPHASE.obj ..\..\..\..\..\src\ta_func\ta_HT_DCPHASE.c + +..\..\..\..\..\temp\csd\ta_HT_PHASOR.obj: ..\..\..\..\..\src\ta_func\ta_HT_PHASOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_HT_PHASOR.obj ..\..\..\..\..\src\ta_func\ta_HT_PHASOR.c + +..\..\..\..\..\temp\csd\ta_HT_SINE.obj: ..\..\..\..\..\src\ta_func\ta_HT_SINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_HT_SINE.obj ..\..\..\..\..\src\ta_func\ta_HT_SINE.c + +..\..\..\..\..\temp\csd\ta_HT_TRENDLINE.obj: ..\..\..\..\..\src\ta_func\ta_HT_TRENDLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_HT_TRENDLINE.obj ..\..\..\..\..\src\ta_func\ta_HT_TRENDLINE.c + +..\..\..\..\..\temp\csd\ta_HT_TRENDMODE.obj: ..\..\..\..\..\src\ta_func\ta_HT_TRENDMODE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_HT_TRENDMODE.obj ..\..\..\..\..\src\ta_func\ta_HT_TRENDMODE.c + +..\..\..\..\..\temp\csd\ta_KAMA.obj: ..\..\..\..\..\src\ta_func\ta_KAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_KAMA.obj ..\..\..\..\..\src\ta_func\ta_KAMA.c + +..\..\..\..\..\temp\csd\ta_LINEARREG.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_LINEARREG.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG.c + +..\..\..\..\..\temp\csd\ta_LINEARREG_ANGLE.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG_ANGLE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_LINEARREG_ANGLE.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG_ANGLE.c + +..\..\..\..\..\temp\csd\ta_LINEARREG_INTERCEPT.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG_INTERCEPT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_LINEARREG_INTERCEPT.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG_INTERCEPT.c + +..\..\..\..\..\temp\csd\ta_LINEARREG_SLOPE.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG_SLOPE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_LINEARREG_SLOPE.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG_SLOPE.c + +..\..\..\..\..\temp\csd\ta_LN.obj: ..\..\..\..\..\src\ta_func\ta_LN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_LN.obj ..\..\..\..\..\src\ta_func\ta_LN.c + +..\..\..\..\..\temp\csd\ta_LOG10.obj: ..\..\..\..\..\src\ta_func\ta_LOG10.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_LOG10.obj ..\..\..\..\..\src\ta_func\ta_LOG10.c + +..\..\..\..\..\temp\csd\ta_MA.obj: ..\..\..\..\..\src\ta_func\ta_MA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_MA.obj ..\..\..\..\..\src\ta_func\ta_MA.c + +..\..\..\..\..\temp\csd\ta_MACD.obj: ..\..\..\..\..\src\ta_func\ta_MACD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_MACD.obj ..\..\..\..\..\src\ta_func\ta_MACD.c + +..\..\..\..\..\temp\csd\ta_MACDEXT.obj: ..\..\..\..\..\src\ta_func\ta_MACDEXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_MACDEXT.obj ..\..\..\..\..\src\ta_func\ta_MACDEXT.c + +..\..\..\..\..\temp\csd\ta_MACDFIX.obj: ..\..\..\..\..\src\ta_func\ta_MACDFIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_MACDFIX.obj ..\..\..\..\..\src\ta_func\ta_MACDFIX.c + +..\..\..\..\..\temp\csd\ta_MAMA.obj: ..\..\..\..\..\src\ta_func\ta_MAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_MAMA.obj ..\..\..\..\..\src\ta_func\ta_MAMA.c + +..\..\..\..\..\temp\csd\ta_MAVP.obj: ..\..\..\..\..\src\ta_func\ta_MAVP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_MAVP.obj ..\..\..\..\..\src\ta_func\ta_MAVP.c + +..\..\..\..\..\temp\csd\ta_MAX.obj: ..\..\..\..\..\src\ta_func\ta_MAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_MAX.obj ..\..\..\..\..\src\ta_func\ta_MAX.c + +..\..\..\..\..\temp\csd\ta_MAXINDEX.obj: ..\..\..\..\..\src\ta_func\ta_MAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_MAXINDEX.obj ..\..\..\..\..\src\ta_func\ta_MAXINDEX.c + +..\..\..\..\..\temp\csd\ta_MEDPRICE.obj: ..\..\..\..\..\src\ta_func\ta_MEDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_MEDPRICE.obj ..\..\..\..\..\src\ta_func\ta_MEDPRICE.c + +..\..\..\..\..\temp\csd\ta_MFI.obj: ..\..\..\..\..\src\ta_func\ta_MFI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_MFI.obj ..\..\..\..\..\src\ta_func\ta_MFI.c + +..\..\..\..\..\temp\csd\ta_MIDPOINT.obj: ..\..\..\..\..\src\ta_func\ta_MIDPOINT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_MIDPOINT.obj ..\..\..\..\..\src\ta_func\ta_MIDPOINT.c + +..\..\..\..\..\temp\csd\ta_MIDPRICE.obj: ..\..\..\..\..\src\ta_func\ta_MIDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_MIDPRICE.obj ..\..\..\..\..\src\ta_func\ta_MIDPRICE.c + +..\..\..\..\..\temp\csd\ta_MIN.obj: ..\..\..\..\..\src\ta_func\ta_MIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_MIN.obj ..\..\..\..\..\src\ta_func\ta_MIN.c + +..\..\..\..\..\temp\csd\ta_MININDEX.obj: ..\..\..\..\..\src\ta_func\ta_MININDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_MININDEX.obj ..\..\..\..\..\src\ta_func\ta_MININDEX.c + +..\..\..\..\..\temp\csd\ta_MINMAX.obj: ..\..\..\..\..\src\ta_func\ta_MINMAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_MINMAX.obj ..\..\..\..\..\src\ta_func\ta_MINMAX.c + +..\..\..\..\..\temp\csd\ta_MINMAXINDEX.obj: ..\..\..\..\..\src\ta_func\ta_MINMAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_MINMAXINDEX.obj ..\..\..\..\..\src\ta_func\ta_MINMAXINDEX.c + +..\..\..\..\..\temp\csd\ta_MINUS_DI.obj: ..\..\..\..\..\src\ta_func\ta_MINUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_MINUS_DI.obj ..\..\..\..\..\src\ta_func\ta_MINUS_DI.c + +..\..\..\..\..\temp\csd\ta_MINUS_DM.obj: ..\..\..\..\..\src\ta_func\ta_MINUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_MINUS_DM.obj ..\..\..\..\..\src\ta_func\ta_MINUS_DM.c + +..\..\..\..\..\temp\csd\ta_MOM.obj: ..\..\..\..\..\src\ta_func\ta_MOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_MOM.obj ..\..\..\..\..\src\ta_func\ta_MOM.c + +..\..\..\..\..\temp\csd\ta_MULT.obj: ..\..\..\..\..\src\ta_func\ta_MULT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_MULT.obj ..\..\..\..\..\src\ta_func\ta_MULT.c + +..\..\..\..\..\temp\csd\ta_NATR.obj: ..\..\..\..\..\src\ta_func\ta_NATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_NATR.obj ..\..\..\..\..\src\ta_func\ta_NATR.c + +..\..\..\..\..\temp\csd\ta_OBV.obj: ..\..\..\..\..\src\ta_func\ta_OBV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_OBV.obj ..\..\..\..\..\src\ta_func\ta_OBV.c + +..\..\..\..\..\temp\csd\ta_PLUS_DI.obj: ..\..\..\..\..\src\ta_func\ta_PLUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_PLUS_DI.obj ..\..\..\..\..\src\ta_func\ta_PLUS_DI.c + +..\..\..\..\..\temp\csd\ta_PLUS_DM.obj: ..\..\..\..\..\src\ta_func\ta_PLUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_PLUS_DM.obj ..\..\..\..\..\src\ta_func\ta_PLUS_DM.c + +..\..\..\..\..\temp\csd\ta_PPO.obj: ..\..\..\..\..\src\ta_func\ta_PPO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_PPO.obj ..\..\..\..\..\src\ta_func\ta_PPO.c + +..\..\..\..\..\temp\csd\ta_ROC.obj: ..\..\..\..\..\src\ta_func\ta_ROC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_ROC.obj ..\..\..\..\..\src\ta_func\ta_ROC.c + +..\..\..\..\..\temp\csd\ta_ROCP.obj: ..\..\..\..\..\src\ta_func\ta_ROCP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_ROCP.obj ..\..\..\..\..\src\ta_func\ta_ROCP.c + +..\..\..\..\..\temp\csd\ta_ROCR.obj: ..\..\..\..\..\src\ta_func\ta_ROCR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_ROCR.obj ..\..\..\..\..\src\ta_func\ta_ROCR.c + +..\..\..\..\..\temp\csd\ta_ROCR100.obj: ..\..\..\..\..\src\ta_func\ta_ROCR100.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_ROCR100.obj ..\..\..\..\..\src\ta_func\ta_ROCR100.c + +..\..\..\..\..\temp\csd\ta_RSI.obj: ..\..\..\..\..\src\ta_func\ta_RSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_RSI.obj ..\..\..\..\..\src\ta_func\ta_RSI.c + +..\..\..\..\..\temp\csd\ta_SAR.obj: ..\..\..\..\..\src\ta_func\ta_SAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_SAR.obj ..\..\..\..\..\src\ta_func\ta_SAR.c + +..\..\..\..\..\temp\csd\ta_SAREXT.obj: ..\..\..\..\..\src\ta_func\ta_SAREXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_SAREXT.obj ..\..\..\..\..\src\ta_func\ta_SAREXT.c + +..\..\..\..\..\temp\csd\ta_SIN.obj: ..\..\..\..\..\src\ta_func\ta_SIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_SIN.obj ..\..\..\..\..\src\ta_func\ta_SIN.c + +..\..\..\..\..\temp\csd\ta_SINH.obj: ..\..\..\..\..\src\ta_func\ta_SINH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_SINH.obj ..\..\..\..\..\src\ta_func\ta_SINH.c + +..\..\..\..\..\temp\csd\ta_SMA.obj: ..\..\..\..\..\src\ta_func\ta_SMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_SMA.obj ..\..\..\..\..\src\ta_func\ta_SMA.c + +..\..\..\..\..\temp\csd\ta_SQRT.obj: ..\..\..\..\..\src\ta_func\ta_SQRT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_SQRT.obj ..\..\..\..\..\src\ta_func\ta_SQRT.c + +..\..\..\..\..\temp\csd\ta_STDDEV.obj: ..\..\..\..\..\src\ta_func\ta_STDDEV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_STDDEV.obj ..\..\..\..\..\src\ta_func\ta_STDDEV.c + +..\..\..\..\..\temp\csd\ta_STOCH.obj: ..\..\..\..\..\src\ta_func\ta_STOCH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_STOCH.obj ..\..\..\..\..\src\ta_func\ta_STOCH.c + +..\..\..\..\..\temp\csd\ta_STOCHF.obj: ..\..\..\..\..\src\ta_func\ta_STOCHF.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_STOCHF.obj ..\..\..\..\..\src\ta_func\ta_STOCHF.c + +..\..\..\..\..\temp\csd\ta_STOCHRSI.obj: ..\..\..\..\..\src\ta_func\ta_STOCHRSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_STOCHRSI.obj ..\..\..\..\..\src\ta_func\ta_STOCHRSI.c + +..\..\..\..\..\temp\csd\ta_SUB.obj: ..\..\..\..\..\src\ta_func\ta_SUB.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_SUB.obj ..\..\..\..\..\src\ta_func\ta_SUB.c + +..\..\..\..\..\temp\csd\ta_SUM.obj: ..\..\..\..\..\src\ta_func\ta_SUM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_SUM.obj ..\..\..\..\..\src\ta_func\ta_SUM.c + +..\..\..\..\..\temp\csd\ta_T3.obj: ..\..\..\..\..\src\ta_func\ta_T3.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_T3.obj ..\..\..\..\..\src\ta_func\ta_T3.c + +..\..\..\..\..\temp\csd\ta_TAN.obj: ..\..\..\..\..\src\ta_func\ta_TAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_TAN.obj ..\..\..\..\..\src\ta_func\ta_TAN.c + +..\..\..\..\..\temp\csd\ta_TANH.obj: ..\..\..\..\..\src\ta_func\ta_TANH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_TANH.obj ..\..\..\..\..\src\ta_func\ta_TANH.c + +..\..\..\..\..\temp\csd\ta_TEMA.obj: ..\..\..\..\..\src\ta_func\ta_TEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_TEMA.obj ..\..\..\..\..\src\ta_func\ta_TEMA.c + +..\..\..\..\..\temp\csd\ta_TRANGE.obj: ..\..\..\..\..\src\ta_func\ta_TRANGE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_TRANGE.obj ..\..\..\..\..\src\ta_func\ta_TRANGE.c + +..\..\..\..\..\temp\csd\ta_TRIMA.obj: ..\..\..\..\..\src\ta_func\ta_TRIMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_TRIMA.obj ..\..\..\..\..\src\ta_func\ta_TRIMA.c + +..\..\..\..\..\temp\csd\ta_TRIX.obj: ..\..\..\..\..\src\ta_func\ta_TRIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_TRIX.obj ..\..\..\..\..\src\ta_func\ta_TRIX.c + +..\..\..\..\..\temp\csd\ta_TSF.obj: ..\..\..\..\..\src\ta_func\ta_TSF.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_TSF.obj ..\..\..\..\..\src\ta_func\ta_TSF.c + +..\..\..\..\..\temp\csd\ta_TYPPRICE.obj: ..\..\..\..\..\src\ta_func\ta_TYPPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_TYPPRICE.obj ..\..\..\..\..\src\ta_func\ta_TYPPRICE.c + +..\..\..\..\..\temp\csd\ta_ULTOSC.obj: ..\..\..\..\..\src\ta_func\ta_ULTOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_ULTOSC.obj ..\..\..\..\..\src\ta_func\ta_ULTOSC.c + +..\..\..\..\..\temp\csd\ta_VAR.obj: ..\..\..\..\..\src\ta_func\ta_VAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_VAR.obj ..\..\..\..\..\src\ta_func\ta_VAR.c + +..\..\..\..\..\temp\csd\ta_WCLPRICE.obj: ..\..\..\..\..\src\ta_func\ta_WCLPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_WCLPRICE.obj ..\..\..\..\..\src\ta_func\ta_WCLPRICE.c + +..\..\..\..\..\temp\csd\ta_WILLR.obj: ..\..\..\..\..\src\ta_func\ta_WILLR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_WILLR.obj ..\..\..\..\..\src\ta_func\ta_WILLR.c + +..\..\..\..\..\temp\csd\ta_WMA.obj: ..\..\..\..\..\src\ta_func\ta_WMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_WMA.obj ..\..\..\..\..\src\ta_func\ta_WMA.c + diff --git a/make/csd/win32/borland/ta_libc/Makefile b/make/csd/win32/borland/ta_libc/Makefile new file mode 100644 index 000000000..8c9206ba7 --- /dev/null +++ b/make/csd/win32/borland/ta_libc/Makefile @@ -0,0 +1,1438 @@ +############################################################################# +# Makefile for building ta_libc_csd +# Generated by tmake; +# Project: ta_libc/ta_libc +# Template: lib +############################################################################# + +!if !$d(BCB) +BCB = $(MAKEDIR)\.. +!endif + +####### Compiler, tools and options + +CC = bcc32 +CXX = bcc32 +CFLAGS = -x- -RT- -tWR -w -w-8004 -w-8071 -w-8057 -w-8080 -v -DTA_DEBUG -D_DEBUG -DTA_SINGLE_THREAD -DWIN32 +CXXFLAGS= -x- -RT- -tWR -w -w-8004 -w-8071 -w-8057 -w-8080 -v -DTA_DEBUG -D_DEBUG -DTA_SINGLE_THREAD -DWIN32 +INCPATH = -I"..\..\..\..\..\src\ta_common" -I"..\..\..\..\..\include" -I"..\..\..\..\..\src\ta_abstract" -I"..\..\..\..\..\src\ta_abstract\tables" -I"..\..\..\..\..\src\ta_abstract\frames" -I"$(QTDIR)\include" +LIB = tlib /C /P256 +MOC = moc +UIC = uic + +ZIP = zip -r -9 +DEF_FILE = +RES_FILE = + +####### Files + +HEADERS = +SOURCES = ..\..\..\..\..\src\ta_common\ta_global.c \ + ..\..\..\..\..\src\ta_common\ta_retcode.c \ + ..\..\..\..\..\src\ta_common\ta_version.c \ + ..\..\..\..\..\src\ta_abstract\ta_abstract.c \ + ..\..\..\..\..\src\ta_abstract\ta_def_ui.c \ + ..\..\..\..\..\src\ta_abstract\ta_func_api.c \ + ..\..\..\..\..\src\ta_abstract\ta_group_idx.c \ + ..\..\..\..\..\src\ta_abstract\frames\ta_frame.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_a.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_b.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_c.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_d.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_e.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_f.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_g.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_h.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_i.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_j.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_k.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_l.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_m.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_n.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_o.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_p.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_q.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_r.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_s.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_t.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_u.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_v.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_w.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_x.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_y.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_z.c \ + ..\..\..\..\..\src\ta_func\ta_utility.c \ + ..\..\..\..\..\src\ta_func\ta_ACOS.c \ + ..\..\..\..\..\src\ta_func\ta_AD.c \ + ..\..\..\..\..\src\ta_func\ta_ADD.c \ + ..\..\..\..\..\src\ta_func\ta_ADOSC.c \ + ..\..\..\..\..\src\ta_func\ta_ADX.c \ + ..\..\..\..\..\src\ta_func\ta_ADXR.c \ + ..\..\..\..\..\src\ta_func\ta_APO.c \ + ..\..\..\..\..\src\ta_func\ta_AROON.c \ + ..\..\..\..\..\src\ta_func\ta_AROONOSC.c \ + ..\..\..\..\..\src\ta_func\ta_ASIN.c \ + ..\..\..\..\..\src\ta_func\ta_ATAN.c \ + ..\..\..\..\..\src\ta_func\ta_ATR.c \ + ..\..\..\..\..\src\ta_func\ta_AVGPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_BBANDS.c \ + ..\..\..\..\..\src\ta_func\ta_BETA.c \ + ..\..\..\..\..\src\ta_func\ta_BOP.c \ + ..\..\..\..\..\src\ta_func\ta_CCI.c \ + ..\..\..\..\..\src\ta_func\ta_CDL2CROWS.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3BLACKCROWS.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3INSIDE.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3LINESTRIKE.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3OUTSIDE.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3STARSINSOUTH.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3WHITESOLDIERS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLABANDONEDBABY.c \ + ..\..\..\..\..\src\ta_func\ta_CDLADVANCEBLOCK.c \ + ..\..\..\..\..\src\ta_func\ta_CDLBELTHOLD.c \ + ..\..\..\..\..\src\ta_func\ta_CDLBREAKAWAY.c \ + ..\..\..\..\..\src\ta_func\ta_CDLCLOSINGMARUBOZU.c \ + ..\..\..\..\..\src\ta_func\ta_CDLCONCEALBABYSWALL.c \ + ..\..\..\..\..\src\ta_func\ta_CDLCOUNTERATTACK.c \ + ..\..\..\..\..\src\ta_func\ta_CDLDARKCLOUDCOVER.c \ + ..\..\..\..\..\src\ta_func\ta_CDLDOJI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLDOJISTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLDRAGONFLYDOJI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLENGULFING.c \ + ..\..\..\..\..\src\ta_func\ta_CDLEVENINGDOJISTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLEVENINGSTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLGAPSIDESIDEWHITE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLGRAVESTONEDOJI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHAMMER.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHANGINGMAN.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHARAMI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHARAMICROSS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHIGHWAVE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKEMOD.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHOMINGPIGEON.c \ + ..\..\..\..\..\src\ta_func\ta_CDLIDENTICAL3CROWS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLINNECK.c \ + ..\..\..\..\..\src\ta_func\ta_CDLINVERTEDHAMMER.c \ + ..\..\..\..\..\src\ta_func\ta_CDLKICKING.c \ + ..\..\..\..\..\src\ta_func\ta_CDLKICKINGBYLENGTH.c \ + ..\..\..\..\..\src\ta_func\ta_CDLLADDERBOTTOM.c \ + ..\..\..\..\..\src\ta_func\ta_CDLLONGLEGGEDDOJI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLLONGLINE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMARUBOZU.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMATCHINGLOW.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMATHOLD.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMORNINGDOJISTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMORNINGSTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLONNECK.c \ + ..\..\..\..\..\src\ta_func\ta_CDLPIERCING.c \ + ..\..\..\..\..\src\ta_func\ta_CDLRICKSHAWMAN.c \ + ..\..\..\..\..\src\ta_func\ta_CDLRISEFALL3METHODS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSEPARATINGLINES.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSHOOTINGSTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSHORTLINE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSPINNINGTOP.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSTALLEDPATTERN.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSTICKSANDWICH.c \ + ..\..\..\..\..\src\ta_func\ta_CDLTAKURI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLTASUKIGAP.c \ + ..\..\..\..\..\src\ta_func\ta_CDLTHRUSTING.c \ + ..\..\..\..\..\src\ta_func\ta_CDLTRISTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLUNIQUE3RIVER.c \ + ..\..\..\..\..\src\ta_func\ta_CDLUPSIDEGAP2CROWS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLXSIDEGAP3METHODS.c \ + ..\..\..\..\..\src\ta_func\ta_CEIL.c \ + ..\..\..\..\..\src\ta_func\ta_CMO.c \ + ..\..\..\..\..\src\ta_func\ta_CORREL.c \ + ..\..\..\..\..\src\ta_func\ta_COS.c \ + ..\..\..\..\..\src\ta_func\ta_COSH.c \ + ..\..\..\..\..\src\ta_func\ta_DEMA.c \ + ..\..\..\..\..\src\ta_func\ta_DIV.c \ + ..\..\..\..\..\src\ta_func\ta_DX.c \ + ..\..\..\..\..\src\ta_func\ta_EMA.c \ + ..\..\..\..\..\src\ta_func\ta_EXP.c \ + ..\..\..\..\..\src\ta_func\ta_FLOOR.c \ + ..\..\..\..\..\src\ta_func\ta_HT_DCPERIOD.c \ + ..\..\..\..\..\src\ta_func\ta_HT_DCPHASE.c \ + ..\..\..\..\..\src\ta_func\ta_HT_PHASOR.c \ + ..\..\..\..\..\src\ta_func\ta_HT_SINE.c \ + ..\..\..\..\..\src\ta_func\ta_HT_TRENDLINE.c \ + ..\..\..\..\..\src\ta_func\ta_HT_TRENDMODE.c \ + ..\..\..\..\..\src\ta_func\ta_KAMA.c \ + ..\..\..\..\..\src\ta_func\ta_LINEARREG.c \ + ..\..\..\..\..\src\ta_func\ta_LINEARREG_ANGLE.c \ + ..\..\..\..\..\src\ta_func\ta_LINEARREG_INTERCEPT.c \ + ..\..\..\..\..\src\ta_func\ta_LINEARREG_SLOPE.c \ + ..\..\..\..\..\src\ta_func\ta_LN.c \ + ..\..\..\..\..\src\ta_func\ta_LOG10.c \ + ..\..\..\..\..\src\ta_func\ta_MA.c \ + ..\..\..\..\..\src\ta_func\ta_MACD.c \ + ..\..\..\..\..\src\ta_func\ta_MACDEXT.c \ + ..\..\..\..\..\src\ta_func\ta_MACDFIX.c \ + ..\..\..\..\..\src\ta_func\ta_MAMA.c \ + ..\..\..\..\..\src\ta_func\ta_MAVP.c \ + ..\..\..\..\..\src\ta_func\ta_MAX.c \ + ..\..\..\..\..\src\ta_func\ta_MAXINDEX.c \ + ..\..\..\..\..\src\ta_func\ta_MEDPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_MFI.c \ + ..\..\..\..\..\src\ta_func\ta_MIDPOINT.c \ + ..\..\..\..\..\src\ta_func\ta_MIDPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_MIN.c \ + ..\..\..\..\..\src\ta_func\ta_MININDEX.c \ + ..\..\..\..\..\src\ta_func\ta_MINMAX.c \ + ..\..\..\..\..\src\ta_func\ta_MINMAXINDEX.c \ + ..\..\..\..\..\src\ta_func\ta_MINUS_DI.c \ + ..\..\..\..\..\src\ta_func\ta_MINUS_DM.c \ + ..\..\..\..\..\src\ta_func\ta_MOM.c \ + ..\..\..\..\..\src\ta_func\ta_MULT.c \ + ..\..\..\..\..\src\ta_func\ta_NATR.c \ + ..\..\..\..\..\src\ta_func\ta_OBV.c \ + ..\..\..\..\..\src\ta_func\ta_PLUS_DI.c \ + ..\..\..\..\..\src\ta_func\ta_PLUS_DM.c \ + ..\..\..\..\..\src\ta_func\ta_PPO.c \ + ..\..\..\..\..\src\ta_func\ta_ROC.c \ + ..\..\..\..\..\src\ta_func\ta_ROCP.c \ + ..\..\..\..\..\src\ta_func\ta_ROCR.c \ + ..\..\..\..\..\src\ta_func\ta_ROCR100.c \ + ..\..\..\..\..\src\ta_func\ta_RSI.c \ + ..\..\..\..\..\src\ta_func\ta_SAR.c \ + ..\..\..\..\..\src\ta_func\ta_SAREXT.c \ + ..\..\..\..\..\src\ta_func\ta_SIN.c \ + ..\..\..\..\..\src\ta_func\ta_SINH.c \ + ..\..\..\..\..\src\ta_func\ta_SMA.c \ + ..\..\..\..\..\src\ta_func\ta_SQRT.c \ + ..\..\..\..\..\src\ta_func\ta_STDDEV.c \ + ..\..\..\..\..\src\ta_func\ta_STOCH.c \ + ..\..\..\..\..\src\ta_func\ta_STOCHF.c \ + ..\..\..\..\..\src\ta_func\ta_STOCHRSI.c \ + ..\..\..\..\..\src\ta_func\ta_SUB.c \ + ..\..\..\..\..\src\ta_func\ta_SUM.c \ + ..\..\..\..\..\src\ta_func\ta_T3.c \ + ..\..\..\..\..\src\ta_func\ta_TAN.c \ + ..\..\..\..\..\src\ta_func\ta_TANH.c \ + ..\..\..\..\..\src\ta_func\ta_TEMA.c \ + ..\..\..\..\..\src\ta_func\ta_TRANGE.c \ + ..\..\..\..\..\src\ta_func\ta_TRIMA.c \ + ..\..\..\..\..\src\ta_func\ta_TRIX.c \ + ..\..\..\..\..\src\ta_func\ta_TSF.c \ + ..\..\..\..\..\src\ta_func\ta_TYPPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_ULTOSC.c \ + ..\..\..\..\..\src\ta_func\ta_VAR.c \ + ..\..\..\..\..\src\ta_func\ta_WCLPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_WILLR.c \ + ..\..\..\..\..\src\ta_func\ta_WMA.c +OBJECTS = ..\..\..\..\..\temp\csd\ta_global.obj \ + ..\..\..\..\..\temp\csd\ta_retcode.obj \ + ..\..\..\..\..\temp\csd\ta_version.obj \ + ..\..\..\..\..\temp\csd\ta_abstract.obj \ + ..\..\..\..\..\temp\csd\ta_def_ui.obj \ + ..\..\..\..\..\temp\csd\ta_func_api.obj \ + ..\..\..\..\..\temp\csd\ta_group_idx.obj \ + ..\..\..\..\..\temp\csd\ta_frame.obj \ + ..\..\..\..\..\temp\csd\table_a.obj \ + ..\..\..\..\..\temp\csd\table_b.obj \ + ..\..\..\..\..\temp\csd\table_c.obj \ + ..\..\..\..\..\temp\csd\table_d.obj \ + ..\..\..\..\..\temp\csd\table_e.obj \ + ..\..\..\..\..\temp\csd\table_f.obj \ + ..\..\..\..\..\temp\csd\table_g.obj \ + ..\..\..\..\..\temp\csd\table_h.obj \ + ..\..\..\..\..\temp\csd\table_i.obj \ + ..\..\..\..\..\temp\csd\table_j.obj \ + ..\..\..\..\..\temp\csd\table_k.obj \ + ..\..\..\..\..\temp\csd\table_l.obj \ + ..\..\..\..\..\temp\csd\table_m.obj \ + ..\..\..\..\..\temp\csd\table_n.obj \ + ..\..\..\..\..\temp\csd\table_o.obj \ + ..\..\..\..\..\temp\csd\table_p.obj \ + ..\..\..\..\..\temp\csd\table_q.obj \ + ..\..\..\..\..\temp\csd\table_r.obj \ + ..\..\..\..\..\temp\csd\table_s.obj \ + ..\..\..\..\..\temp\csd\table_t.obj \ + ..\..\..\..\..\temp\csd\table_u.obj \ + ..\..\..\..\..\temp\csd\table_v.obj \ + ..\..\..\..\..\temp\csd\table_w.obj \ + ..\..\..\..\..\temp\csd\table_x.obj \ + ..\..\..\..\..\temp\csd\table_y.obj \ + ..\..\..\..\..\temp\csd\table_z.obj \ + ..\..\..\..\..\temp\csd\ta_utility.obj \ + ..\..\..\..\..\temp\csd\ta_ACOS.obj \ + ..\..\..\..\..\temp\csd\ta_AD.obj \ + ..\..\..\..\..\temp\csd\ta_ADD.obj \ + ..\..\..\..\..\temp\csd\ta_ADOSC.obj \ + ..\..\..\..\..\temp\csd\ta_ADX.obj \ + ..\..\..\..\..\temp\csd\ta_ADXR.obj \ + ..\..\..\..\..\temp\csd\ta_APO.obj \ + ..\..\..\..\..\temp\csd\ta_AROON.obj \ + ..\..\..\..\..\temp\csd\ta_AROONOSC.obj \ + ..\..\..\..\..\temp\csd\ta_ASIN.obj \ + ..\..\..\..\..\temp\csd\ta_ATAN.obj \ + ..\..\..\..\..\temp\csd\ta_ATR.obj \ + ..\..\..\..\..\temp\csd\ta_AVGPRICE.obj \ + ..\..\..\..\..\temp\csd\ta_BBANDS.obj \ + ..\..\..\..\..\temp\csd\ta_BETA.obj \ + ..\..\..\..\..\temp\csd\ta_BOP.obj \ + ..\..\..\..\..\temp\csd\ta_CCI.obj \ + ..\..\..\..\..\temp\csd\ta_CDL2CROWS.obj \ + ..\..\..\..\..\temp\csd\ta_CDL3BLACKCROWS.obj \ + ..\..\..\..\..\temp\csd\ta_CDL3INSIDE.obj \ + ..\..\..\..\..\temp\csd\ta_CDL3LINESTRIKE.obj \ + ..\..\..\..\..\temp\csd\ta_CDL3OUTSIDE.obj \ + ..\..\..\..\..\temp\csd\ta_CDL3STARSINSOUTH.obj \ + ..\..\..\..\..\temp\csd\ta_CDL3WHITESOLDIERS.obj \ + ..\..\..\..\..\temp\csd\ta_CDLABANDONEDBABY.obj \ + ..\..\..\..\..\temp\csd\ta_CDLADVANCEBLOCK.obj \ + ..\..\..\..\..\temp\csd\ta_CDLBELTHOLD.obj \ + ..\..\..\..\..\temp\csd\ta_CDLBREAKAWAY.obj \ + ..\..\..\..\..\temp\csd\ta_CDLCLOSINGMARUBOZU.obj \ + ..\..\..\..\..\temp\csd\ta_CDLCONCEALBABYSWALL.obj \ + ..\..\..\..\..\temp\csd\ta_CDLCOUNTERATTACK.obj \ + ..\..\..\..\..\temp\csd\ta_CDLDARKCLOUDCOVER.obj \ + ..\..\..\..\..\temp\csd\ta_CDLDOJI.obj \ + ..\..\..\..\..\temp\csd\ta_CDLDOJISTAR.obj \ + ..\..\..\..\..\temp\csd\ta_CDLDRAGONFLYDOJI.obj \ + ..\..\..\..\..\temp\csd\ta_CDLENGULFING.obj \ + ..\..\..\..\..\temp\csd\ta_CDLEVENINGDOJISTAR.obj \ + ..\..\..\..\..\temp\csd\ta_CDLEVENINGSTAR.obj \ + ..\..\..\..\..\temp\csd\ta_CDLGAPSIDESIDEWHITE.obj \ + ..\..\..\..\..\temp\csd\ta_CDLGRAVESTONEDOJI.obj \ + ..\..\..\..\..\temp\csd\ta_CDLHAMMER.obj \ + ..\..\..\..\..\temp\csd\ta_CDLHANGINGMAN.obj \ + ..\..\..\..\..\temp\csd\ta_CDLHARAMI.obj \ + ..\..\..\..\..\temp\csd\ta_CDLHARAMICROSS.obj \ + ..\..\..\..\..\temp\csd\ta_CDLHIGHWAVE.obj \ + ..\..\..\..\..\temp\csd\ta_CDLHIKKAKE.obj \ + ..\..\..\..\..\temp\csd\ta_CDLHIKKAKEMOD.obj \ + ..\..\..\..\..\temp\csd\ta_CDLHOMINGPIGEON.obj \ + ..\..\..\..\..\temp\csd\ta_CDLIDENTICAL3CROWS.obj \ + ..\..\..\..\..\temp\csd\ta_CDLINNECK.obj \ + ..\..\..\..\..\temp\csd\ta_CDLINVERTEDHAMMER.obj \ + ..\..\..\..\..\temp\csd\ta_CDLKICKING.obj \ + ..\..\..\..\..\temp\csd\ta_CDLKICKINGBYLENGTH.obj \ + ..\..\..\..\..\temp\csd\ta_CDLLADDERBOTTOM.obj \ + ..\..\..\..\..\temp\csd\ta_CDLLONGLEGGEDDOJI.obj \ + ..\..\..\..\..\temp\csd\ta_CDLLONGLINE.obj \ + ..\..\..\..\..\temp\csd\ta_CDLMARUBOZU.obj \ + ..\..\..\..\..\temp\csd\ta_CDLMATCHINGLOW.obj \ + ..\..\..\..\..\temp\csd\ta_CDLMATHOLD.obj \ + ..\..\..\..\..\temp\csd\ta_CDLMORNINGDOJISTAR.obj \ + ..\..\..\..\..\temp\csd\ta_CDLMORNINGSTAR.obj \ + ..\..\..\..\..\temp\csd\ta_CDLONNECK.obj \ + ..\..\..\..\..\temp\csd\ta_CDLPIERCING.obj \ + ..\..\..\..\..\temp\csd\ta_CDLRICKSHAWMAN.obj \ + ..\..\..\..\..\temp\csd\ta_CDLRISEFALL3METHODS.obj \ + ..\..\..\..\..\temp\csd\ta_CDLSEPARATINGLINES.obj \ + ..\..\..\..\..\temp\csd\ta_CDLSHOOTINGSTAR.obj \ + ..\..\..\..\..\temp\csd\ta_CDLSHORTLINE.obj \ + ..\..\..\..\..\temp\csd\ta_CDLSPINNINGTOP.obj \ + ..\..\..\..\..\temp\csd\ta_CDLSTALLEDPATTERN.obj \ + ..\..\..\..\..\temp\csd\ta_CDLSTICKSANDWICH.obj \ + ..\..\..\..\..\temp\csd\ta_CDLTAKURI.obj \ + ..\..\..\..\..\temp\csd\ta_CDLTASUKIGAP.obj \ + ..\..\..\..\..\temp\csd\ta_CDLTHRUSTING.obj \ + ..\..\..\..\..\temp\csd\ta_CDLTRISTAR.obj \ + ..\..\..\..\..\temp\csd\ta_CDLUNIQUE3RIVER.obj \ + ..\..\..\..\..\temp\csd\ta_CDLUPSIDEGAP2CROWS.obj \ + ..\..\..\..\..\temp\csd\ta_CDLXSIDEGAP3METHODS.obj \ + ..\..\..\..\..\temp\csd\ta_CEIL.obj \ + ..\..\..\..\..\temp\csd\ta_CMO.obj \ + ..\..\..\..\..\temp\csd\ta_CORREL.obj \ + ..\..\..\..\..\temp\csd\ta_COS.obj \ + ..\..\..\..\..\temp\csd\ta_COSH.obj \ + ..\..\..\..\..\temp\csd\ta_DEMA.obj \ + ..\..\..\..\..\temp\csd\ta_DIV.obj \ + ..\..\..\..\..\temp\csd\ta_DX.obj \ + ..\..\..\..\..\temp\csd\ta_EMA.obj \ + ..\..\..\..\..\temp\csd\ta_EXP.obj \ + ..\..\..\..\..\temp\csd\ta_FLOOR.obj \ + ..\..\..\..\..\temp\csd\ta_HT_DCPERIOD.obj \ + ..\..\..\..\..\temp\csd\ta_HT_DCPHASE.obj \ + ..\..\..\..\..\temp\csd\ta_HT_PHASOR.obj \ + ..\..\..\..\..\temp\csd\ta_HT_SINE.obj \ + ..\..\..\..\..\temp\csd\ta_HT_TRENDLINE.obj \ + ..\..\..\..\..\temp\csd\ta_HT_TRENDMODE.obj \ + ..\..\..\..\..\temp\csd\ta_KAMA.obj \ + ..\..\..\..\..\temp\csd\ta_LINEARREG.obj \ + ..\..\..\..\..\temp\csd\ta_LINEARREG_ANGLE.obj \ + ..\..\..\..\..\temp\csd\ta_LINEARREG_INTERCEPT.obj \ + ..\..\..\..\..\temp\csd\ta_LINEARREG_SLOPE.obj \ + ..\..\..\..\..\temp\csd\ta_LN.obj \ + ..\..\..\..\..\temp\csd\ta_LOG10.obj \ + ..\..\..\..\..\temp\csd\ta_MA.obj \ + ..\..\..\..\..\temp\csd\ta_MACD.obj \ + ..\..\..\..\..\temp\csd\ta_MACDEXT.obj \ + ..\..\..\..\..\temp\csd\ta_MACDFIX.obj \ + ..\..\..\..\..\temp\csd\ta_MAMA.obj \ + ..\..\..\..\..\temp\csd\ta_MAVP.obj \ + ..\..\..\..\..\temp\csd\ta_MAX.obj \ + ..\..\..\..\..\temp\csd\ta_MAXINDEX.obj \ + ..\..\..\..\..\temp\csd\ta_MEDPRICE.obj \ + ..\..\..\..\..\temp\csd\ta_MFI.obj \ + ..\..\..\..\..\temp\csd\ta_MIDPOINT.obj \ + ..\..\..\..\..\temp\csd\ta_MIDPRICE.obj \ + ..\..\..\..\..\temp\csd\ta_MIN.obj \ + ..\..\..\..\..\temp\csd\ta_MININDEX.obj \ + ..\..\..\..\..\temp\csd\ta_MINMAX.obj \ + ..\..\..\..\..\temp\csd\ta_MINMAXINDEX.obj \ + ..\..\..\..\..\temp\csd\ta_MINUS_DI.obj \ + ..\..\..\..\..\temp\csd\ta_MINUS_DM.obj \ + ..\..\..\..\..\temp\csd\ta_MOM.obj \ + ..\..\..\..\..\temp\csd\ta_MULT.obj \ + ..\..\..\..\..\temp\csd\ta_NATR.obj \ + ..\..\..\..\..\temp\csd\ta_OBV.obj \ + ..\..\..\..\..\temp\csd\ta_PLUS_DI.obj \ + ..\..\..\..\..\temp\csd\ta_PLUS_DM.obj \ + ..\..\..\..\..\temp\csd\ta_PPO.obj \ + ..\..\..\..\..\temp\csd\ta_ROC.obj \ + ..\..\..\..\..\temp\csd\ta_ROCP.obj \ + ..\..\..\..\..\temp\csd\ta_ROCR.obj \ + ..\..\..\..\..\temp\csd\ta_ROCR100.obj \ + ..\..\..\..\..\temp\csd\ta_RSI.obj \ + ..\..\..\..\..\temp\csd\ta_SAR.obj \ + ..\..\..\..\..\temp\csd\ta_SAREXT.obj \ + ..\..\..\..\..\temp\csd\ta_SIN.obj \ + ..\..\..\..\..\temp\csd\ta_SINH.obj \ + ..\..\..\..\..\temp\csd\ta_SMA.obj \ + ..\..\..\..\..\temp\csd\ta_SQRT.obj \ + ..\..\..\..\..\temp\csd\ta_STDDEV.obj \ + ..\..\..\..\..\temp\csd\ta_STOCH.obj \ + ..\..\..\..\..\temp\csd\ta_STOCHF.obj \ + ..\..\..\..\..\temp\csd\ta_STOCHRSI.obj \ + ..\..\..\..\..\temp\csd\ta_SUB.obj \ + ..\..\..\..\..\temp\csd\ta_SUM.obj \ + ..\..\..\..\..\temp\csd\ta_T3.obj \ + ..\..\..\..\..\temp\csd\ta_TAN.obj \ + ..\..\..\..\..\temp\csd\ta_TANH.obj \ + ..\..\..\..\..\temp\csd\ta_TEMA.obj \ + ..\..\..\..\..\temp\csd\ta_TRANGE.obj \ + ..\..\..\..\..\temp\csd\ta_TRIMA.obj \ + ..\..\..\..\..\temp\csd\ta_TRIX.obj \ + ..\..\..\..\..\temp\csd\ta_TSF.obj \ + ..\..\..\..\..\temp\csd\ta_TYPPRICE.obj \ + ..\..\..\..\..\temp\csd\ta_ULTOSC.obj \ + ..\..\..\..\..\temp\csd\ta_VAR.obj \ + ..\..\..\..\..\temp\csd\ta_WCLPRICE.obj \ + ..\..\..\..\..\temp\csd\ta_WILLR.obj \ + ..\..\..\..\..\temp\csd\ta_WMA.obj +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ..\..\..\..\..\lib\ta_libc_csd.lib +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .c + +.cpp.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.cxx.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.cc.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.c.obj: + $(CC) -c $(CFLAGS) $(INCPATH) -o$@ $< + +####### Build rules + +all: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + -del $(TARGET) + $(LIB) $(TARGET) @&&| ++..\..\..\..\..\temp\csd\ta_global.obj \ ++..\..\..\..\..\temp\csd\ta_retcode.obj \ ++..\..\..\..\..\temp\csd\ta_version.obj \ ++..\..\..\..\..\temp\csd\ta_abstract.obj \ ++..\..\..\..\..\temp\csd\ta_def_ui.obj \ ++..\..\..\..\..\temp\csd\ta_func_api.obj \ ++..\..\..\..\..\temp\csd\ta_group_idx.obj \ ++..\..\..\..\..\temp\csd\ta_frame.obj \ ++..\..\..\..\..\temp\csd\table_a.obj \ ++..\..\..\..\..\temp\csd\table_b.obj \ ++..\..\..\..\..\temp\csd\table_c.obj \ ++..\..\..\..\..\temp\csd\table_d.obj \ ++..\..\..\..\..\temp\csd\table_e.obj \ ++..\..\..\..\..\temp\csd\table_f.obj \ ++..\..\..\..\..\temp\csd\table_g.obj \ ++..\..\..\..\..\temp\csd\table_h.obj \ ++..\..\..\..\..\temp\csd\table_i.obj \ ++..\..\..\..\..\temp\csd\table_j.obj \ ++..\..\..\..\..\temp\csd\table_k.obj \ ++..\..\..\..\..\temp\csd\table_l.obj \ ++..\..\..\..\..\temp\csd\table_m.obj \ ++..\..\..\..\..\temp\csd\table_n.obj \ ++..\..\..\..\..\temp\csd\table_o.obj \ ++..\..\..\..\..\temp\csd\table_p.obj \ ++..\..\..\..\..\temp\csd\table_q.obj \ ++..\..\..\..\..\temp\csd\table_r.obj \ ++..\..\..\..\..\temp\csd\table_s.obj \ ++..\..\..\..\..\temp\csd\table_t.obj \ ++..\..\..\..\..\temp\csd\table_u.obj \ ++..\..\..\..\..\temp\csd\table_v.obj \ ++..\..\..\..\..\temp\csd\table_w.obj \ ++..\..\..\..\..\temp\csd\table_x.obj \ ++..\..\..\..\..\temp\csd\table_y.obj \ ++..\..\..\..\..\temp\csd\table_z.obj \ ++..\..\..\..\..\temp\csd\ta_utility.obj \ ++..\..\..\..\..\temp\csd\ta_ACOS.obj \ ++..\..\..\..\..\temp\csd\ta_AD.obj \ ++..\..\..\..\..\temp\csd\ta_ADD.obj \ ++..\..\..\..\..\temp\csd\ta_ADOSC.obj \ ++..\..\..\..\..\temp\csd\ta_ADX.obj \ ++..\..\..\..\..\temp\csd\ta_ADXR.obj \ ++..\..\..\..\..\temp\csd\ta_APO.obj \ ++..\..\..\..\..\temp\csd\ta_AROON.obj \ ++..\..\..\..\..\temp\csd\ta_AROONOSC.obj \ ++..\..\..\..\..\temp\csd\ta_ASIN.obj \ ++..\..\..\..\..\temp\csd\ta_ATAN.obj \ ++..\..\..\..\..\temp\csd\ta_ATR.obj \ ++..\..\..\..\..\temp\csd\ta_AVGPRICE.obj \ ++..\..\..\..\..\temp\csd\ta_BBANDS.obj \ ++..\..\..\..\..\temp\csd\ta_BETA.obj \ ++..\..\..\..\..\temp\csd\ta_BOP.obj \ ++..\..\..\..\..\temp\csd\ta_CCI.obj \ ++..\..\..\..\..\temp\csd\ta_CDL2CROWS.obj \ ++..\..\..\..\..\temp\csd\ta_CDL3BLACKCROWS.obj \ ++..\..\..\..\..\temp\csd\ta_CDL3INSIDE.obj \ ++..\..\..\..\..\temp\csd\ta_CDL3LINESTRIKE.obj \ ++..\..\..\..\..\temp\csd\ta_CDL3OUTSIDE.obj \ ++..\..\..\..\..\temp\csd\ta_CDL3STARSINSOUTH.obj \ ++..\..\..\..\..\temp\csd\ta_CDL3WHITESOLDIERS.obj \ ++..\..\..\..\..\temp\csd\ta_CDLABANDONEDBABY.obj \ ++..\..\..\..\..\temp\csd\ta_CDLADVANCEBLOCK.obj \ ++..\..\..\..\..\temp\csd\ta_CDLBELTHOLD.obj \ ++..\..\..\..\..\temp\csd\ta_CDLBREAKAWAY.obj \ ++..\..\..\..\..\temp\csd\ta_CDLCLOSINGMARUBOZU.obj \ ++..\..\..\..\..\temp\csd\ta_CDLCONCEALBABYSWALL.obj \ ++..\..\..\..\..\temp\csd\ta_CDLCOUNTERATTACK.obj \ ++..\..\..\..\..\temp\csd\ta_CDLDARKCLOUDCOVER.obj \ ++..\..\..\..\..\temp\csd\ta_CDLDOJI.obj \ ++..\..\..\..\..\temp\csd\ta_CDLDOJISTAR.obj \ ++..\..\..\..\..\temp\csd\ta_CDLDRAGONFLYDOJI.obj \ ++..\..\..\..\..\temp\csd\ta_CDLENGULFING.obj \ ++..\..\..\..\..\temp\csd\ta_CDLEVENINGDOJISTAR.obj \ ++..\..\..\..\..\temp\csd\ta_CDLEVENINGSTAR.obj \ ++..\..\..\..\..\temp\csd\ta_CDLGAPSIDESIDEWHITE.obj \ ++..\..\..\..\..\temp\csd\ta_CDLGRAVESTONEDOJI.obj \ ++..\..\..\..\..\temp\csd\ta_CDLHAMMER.obj \ ++..\..\..\..\..\temp\csd\ta_CDLHANGINGMAN.obj \ ++..\..\..\..\..\temp\csd\ta_CDLHARAMI.obj \ ++..\..\..\..\..\temp\csd\ta_CDLHARAMICROSS.obj \ ++..\..\..\..\..\temp\csd\ta_CDLHIGHWAVE.obj \ ++..\..\..\..\..\temp\csd\ta_CDLHIKKAKE.obj \ ++..\..\..\..\..\temp\csd\ta_CDLHIKKAKEMOD.obj \ ++..\..\..\..\..\temp\csd\ta_CDLHOMINGPIGEON.obj \ ++..\..\..\..\..\temp\csd\ta_CDLIDENTICAL3CROWS.obj \ ++..\..\..\..\..\temp\csd\ta_CDLINNECK.obj \ ++..\..\..\..\..\temp\csd\ta_CDLINVERTEDHAMMER.obj \ ++..\..\..\..\..\temp\csd\ta_CDLKICKING.obj \ ++..\..\..\..\..\temp\csd\ta_CDLKICKINGBYLENGTH.obj \ ++..\..\..\..\..\temp\csd\ta_CDLLADDERBOTTOM.obj \ ++..\..\..\..\..\temp\csd\ta_CDLLONGLEGGEDDOJI.obj \ ++..\..\..\..\..\temp\csd\ta_CDLLONGLINE.obj \ ++..\..\..\..\..\temp\csd\ta_CDLMARUBOZU.obj \ ++..\..\..\..\..\temp\csd\ta_CDLMATCHINGLOW.obj \ ++..\..\..\..\..\temp\csd\ta_CDLMATHOLD.obj \ ++..\..\..\..\..\temp\csd\ta_CDLMORNINGDOJISTAR.obj \ ++..\..\..\..\..\temp\csd\ta_CDLMORNINGSTAR.obj \ ++..\..\..\..\..\temp\csd\ta_CDLONNECK.obj \ ++..\..\..\..\..\temp\csd\ta_CDLPIERCING.obj \ ++..\..\..\..\..\temp\csd\ta_CDLRICKSHAWMAN.obj \ ++..\..\..\..\..\temp\csd\ta_CDLRISEFALL3METHODS.obj \ ++..\..\..\..\..\temp\csd\ta_CDLSEPARATINGLINES.obj \ ++..\..\..\..\..\temp\csd\ta_CDLSHOOTINGSTAR.obj \ ++..\..\..\..\..\temp\csd\ta_CDLSHORTLINE.obj \ ++..\..\..\..\..\temp\csd\ta_CDLSPINNINGTOP.obj \ ++..\..\..\..\..\temp\csd\ta_CDLSTALLEDPATTERN.obj \ ++..\..\..\..\..\temp\csd\ta_CDLSTICKSANDWICH.obj \ ++..\..\..\..\..\temp\csd\ta_CDLTAKURI.obj \ ++..\..\..\..\..\temp\csd\ta_CDLTASUKIGAP.obj \ ++..\..\..\..\..\temp\csd\ta_CDLTHRUSTING.obj \ ++..\..\..\..\..\temp\csd\ta_CDLTRISTAR.obj \ ++..\..\..\..\..\temp\csd\ta_CDLUNIQUE3RIVER.obj \ ++..\..\..\..\..\temp\csd\ta_CDLUPSIDEGAP2CROWS.obj \ ++..\..\..\..\..\temp\csd\ta_CDLXSIDEGAP3METHODS.obj \ ++..\..\..\..\..\temp\csd\ta_CEIL.obj \ ++..\..\..\..\..\temp\csd\ta_CMO.obj \ ++..\..\..\..\..\temp\csd\ta_CORREL.obj \ ++..\..\..\..\..\temp\csd\ta_COS.obj \ ++..\..\..\..\..\temp\csd\ta_COSH.obj \ ++..\..\..\..\..\temp\csd\ta_DEMA.obj \ ++..\..\..\..\..\temp\csd\ta_DIV.obj \ ++..\..\..\..\..\temp\csd\ta_DX.obj \ ++..\..\..\..\..\temp\csd\ta_EMA.obj \ ++..\..\..\..\..\temp\csd\ta_EXP.obj \ ++..\..\..\..\..\temp\csd\ta_FLOOR.obj \ ++..\..\..\..\..\temp\csd\ta_HT_DCPERIOD.obj \ ++..\..\..\..\..\temp\csd\ta_HT_DCPHASE.obj \ ++..\..\..\..\..\temp\csd\ta_HT_PHASOR.obj \ ++..\..\..\..\..\temp\csd\ta_HT_SINE.obj \ ++..\..\..\..\..\temp\csd\ta_HT_TRENDLINE.obj \ ++..\..\..\..\..\temp\csd\ta_HT_TRENDMODE.obj \ ++..\..\..\..\..\temp\csd\ta_KAMA.obj \ ++..\..\..\..\..\temp\csd\ta_LINEARREG.obj \ ++..\..\..\..\..\temp\csd\ta_LINEARREG_ANGLE.obj \ ++..\..\..\..\..\temp\csd\ta_LINEARREG_INTERCEPT.obj \ ++..\..\..\..\..\temp\csd\ta_LINEARREG_SLOPE.obj \ ++..\..\..\..\..\temp\csd\ta_LN.obj \ ++..\..\..\..\..\temp\csd\ta_LOG10.obj \ ++..\..\..\..\..\temp\csd\ta_MA.obj \ ++..\..\..\..\..\temp\csd\ta_MACD.obj \ ++..\..\..\..\..\temp\csd\ta_MACDEXT.obj \ ++..\..\..\..\..\temp\csd\ta_MACDFIX.obj \ ++..\..\..\..\..\temp\csd\ta_MAMA.obj \ ++..\..\..\..\..\temp\csd\ta_MAVP.obj \ ++..\..\..\..\..\temp\csd\ta_MAX.obj \ ++..\..\..\..\..\temp\csd\ta_MAXINDEX.obj \ ++..\..\..\..\..\temp\csd\ta_MEDPRICE.obj \ ++..\..\..\..\..\temp\csd\ta_MFI.obj \ ++..\..\..\..\..\temp\csd\ta_MIDPOINT.obj \ ++..\..\..\..\..\temp\csd\ta_MIDPRICE.obj \ ++..\..\..\..\..\temp\csd\ta_MIN.obj \ ++..\..\..\..\..\temp\csd\ta_MININDEX.obj \ ++..\..\..\..\..\temp\csd\ta_MINMAX.obj \ ++..\..\..\..\..\temp\csd\ta_MINMAXINDEX.obj \ ++..\..\..\..\..\temp\csd\ta_MINUS_DI.obj \ ++..\..\..\..\..\temp\csd\ta_MINUS_DM.obj \ ++..\..\..\..\..\temp\csd\ta_MOM.obj \ ++..\..\..\..\..\temp\csd\ta_MULT.obj \ ++..\..\..\..\..\temp\csd\ta_NATR.obj \ ++..\..\..\..\..\temp\csd\ta_OBV.obj \ ++..\..\..\..\..\temp\csd\ta_PLUS_DI.obj \ ++..\..\..\..\..\temp\csd\ta_PLUS_DM.obj \ ++..\..\..\..\..\temp\csd\ta_PPO.obj \ ++..\..\..\..\..\temp\csd\ta_ROC.obj \ ++..\..\..\..\..\temp\csd\ta_ROCP.obj \ ++..\..\..\..\..\temp\csd\ta_ROCR.obj \ ++..\..\..\..\..\temp\csd\ta_ROCR100.obj \ ++..\..\..\..\..\temp\csd\ta_RSI.obj \ ++..\..\..\..\..\temp\csd\ta_SAR.obj \ ++..\..\..\..\..\temp\csd\ta_SAREXT.obj \ ++..\..\..\..\..\temp\csd\ta_SIN.obj \ ++..\..\..\..\..\temp\csd\ta_SINH.obj \ ++..\..\..\..\..\temp\csd\ta_SMA.obj \ ++..\..\..\..\..\temp\csd\ta_SQRT.obj \ ++..\..\..\..\..\temp\csd\ta_STDDEV.obj \ ++..\..\..\..\..\temp\csd\ta_STOCH.obj \ ++..\..\..\..\..\temp\csd\ta_STOCHF.obj \ ++..\..\..\..\..\temp\csd\ta_STOCHRSI.obj \ ++..\..\..\..\..\temp\csd\ta_SUB.obj \ ++..\..\..\..\..\temp\csd\ta_SUM.obj \ ++..\..\..\..\..\temp\csd\ta_T3.obj \ ++..\..\..\..\..\temp\csd\ta_TAN.obj \ ++..\..\..\..\..\temp\csd\ta_TANH.obj \ ++..\..\..\..\..\temp\csd\ta_TEMA.obj \ ++..\..\..\..\..\temp\csd\ta_TRANGE.obj \ ++..\..\..\..\..\temp\csd\ta_TRIMA.obj \ ++..\..\..\..\..\temp\csd\ta_TRIX.obj \ ++..\..\..\..\..\temp\csd\ta_TSF.obj \ ++..\..\..\..\..\temp\csd\ta_TYPPRICE.obj \ ++..\..\..\..\..\temp\csd\ta_ULTOSC.obj \ ++..\..\..\..\..\temp\csd\ta_VAR.obj \ ++..\..\..\..\..\temp\csd\ta_WCLPRICE.obj \ ++..\..\..\..\..\temp\csd\ta_WILLR.obj \ ++..\..\..\..\..\temp\csd\ta_WMA.obj \ ++ +| + +moc: $(SRCMOC) + +tmake: ../csd/win32/borland/ta_libc/Makefile + +../csd/win32/borland/ta_libc/Makefile: ta_libc/ta_libc.pro + tmake ta_libc/ta_libc.pro -o ../csd/win32/borland/ta_libc/Makefile + +dist: + $(ZIP) ta_libc/ta_libc.zip ta_libc/ta_libc.pro $(SOURCES) $(HEADERS) $(DIST) + +clean: + -del ..\..\..\..\..\temp\csd\ta_global.obj + -del ..\..\..\..\..\temp\csd\ta_retcode.obj + -del ..\..\..\..\..\temp\csd\ta_version.obj + -del ..\..\..\..\..\temp\csd\ta_abstract.obj + -del ..\..\..\..\..\temp\csd\ta_def_ui.obj + -del ..\..\..\..\..\temp\csd\ta_func_api.obj + -del ..\..\..\..\..\temp\csd\ta_group_idx.obj + -del ..\..\..\..\..\temp\csd\ta_frame.obj + -del ..\..\..\..\..\temp\csd\table_a.obj + -del ..\..\..\..\..\temp\csd\table_b.obj + -del ..\..\..\..\..\temp\csd\table_c.obj + -del ..\..\..\..\..\temp\csd\table_d.obj + -del ..\..\..\..\..\temp\csd\table_e.obj + -del ..\..\..\..\..\temp\csd\table_f.obj + -del ..\..\..\..\..\temp\csd\table_g.obj + -del ..\..\..\..\..\temp\csd\table_h.obj + -del ..\..\..\..\..\temp\csd\table_i.obj + -del ..\..\..\..\..\temp\csd\table_j.obj + -del ..\..\..\..\..\temp\csd\table_k.obj + -del ..\..\..\..\..\temp\csd\table_l.obj + -del ..\..\..\..\..\temp\csd\table_m.obj + -del ..\..\..\..\..\temp\csd\table_n.obj + -del ..\..\..\..\..\temp\csd\table_o.obj + -del ..\..\..\..\..\temp\csd\table_p.obj + -del ..\..\..\..\..\temp\csd\table_q.obj + -del ..\..\..\..\..\temp\csd\table_r.obj + -del ..\..\..\..\..\temp\csd\table_s.obj + -del ..\..\..\..\..\temp\csd\table_t.obj + -del ..\..\..\..\..\temp\csd\table_u.obj + -del ..\..\..\..\..\temp\csd\table_v.obj + -del ..\..\..\..\..\temp\csd\table_w.obj + -del ..\..\..\..\..\temp\csd\table_x.obj + -del ..\..\..\..\..\temp\csd\table_y.obj + -del ..\..\..\..\..\temp\csd\table_z.obj + -del ..\..\..\..\..\temp\csd\ta_utility.obj + -del ..\..\..\..\..\temp\csd\ta_ACOS.obj + -del ..\..\..\..\..\temp\csd\ta_AD.obj + -del ..\..\..\..\..\temp\csd\ta_ADD.obj + -del ..\..\..\..\..\temp\csd\ta_ADOSC.obj + -del ..\..\..\..\..\temp\csd\ta_ADX.obj + -del ..\..\..\..\..\temp\csd\ta_ADXR.obj + -del ..\..\..\..\..\temp\csd\ta_APO.obj + -del ..\..\..\..\..\temp\csd\ta_AROON.obj + -del ..\..\..\..\..\temp\csd\ta_AROONOSC.obj + -del ..\..\..\..\..\temp\csd\ta_ASIN.obj + -del ..\..\..\..\..\temp\csd\ta_ATAN.obj + -del ..\..\..\..\..\temp\csd\ta_ATR.obj + -del ..\..\..\..\..\temp\csd\ta_AVGPRICE.obj + -del ..\..\..\..\..\temp\csd\ta_BBANDS.obj + -del ..\..\..\..\..\temp\csd\ta_BETA.obj + -del ..\..\..\..\..\temp\csd\ta_BOP.obj + -del ..\..\..\..\..\temp\csd\ta_CCI.obj + -del ..\..\..\..\..\temp\csd\ta_CDL2CROWS.obj + -del ..\..\..\..\..\temp\csd\ta_CDL3BLACKCROWS.obj + -del ..\..\..\..\..\temp\csd\ta_CDL3INSIDE.obj + -del ..\..\..\..\..\temp\csd\ta_CDL3LINESTRIKE.obj + -del ..\..\..\..\..\temp\csd\ta_CDL3OUTSIDE.obj + -del ..\..\..\..\..\temp\csd\ta_CDL3STARSINSOUTH.obj + -del ..\..\..\..\..\temp\csd\ta_CDL3WHITESOLDIERS.obj + -del ..\..\..\..\..\temp\csd\ta_CDLABANDONEDBABY.obj + -del ..\..\..\..\..\temp\csd\ta_CDLADVANCEBLOCK.obj + -del ..\..\..\..\..\temp\csd\ta_CDLBELTHOLD.obj + -del ..\..\..\..\..\temp\csd\ta_CDLBREAKAWAY.obj + -del ..\..\..\..\..\temp\csd\ta_CDLCLOSINGMARUBOZU.obj + -del ..\..\..\..\..\temp\csd\ta_CDLCONCEALBABYSWALL.obj + -del ..\..\..\..\..\temp\csd\ta_CDLCOUNTERATTACK.obj + -del ..\..\..\..\..\temp\csd\ta_CDLDARKCLOUDCOVER.obj + -del ..\..\..\..\..\temp\csd\ta_CDLDOJI.obj + -del ..\..\..\..\..\temp\csd\ta_CDLDOJISTAR.obj + -del ..\..\..\..\..\temp\csd\ta_CDLDRAGONFLYDOJI.obj + -del ..\..\..\..\..\temp\csd\ta_CDLENGULFING.obj + -del ..\..\..\..\..\temp\csd\ta_CDLEVENINGDOJISTAR.obj + -del ..\..\..\..\..\temp\csd\ta_CDLEVENINGSTAR.obj + -del ..\..\..\..\..\temp\csd\ta_CDLGAPSIDESIDEWHITE.obj + -del ..\..\..\..\..\temp\csd\ta_CDLGRAVESTONEDOJI.obj + -del ..\..\..\..\..\temp\csd\ta_CDLHAMMER.obj + -del ..\..\..\..\..\temp\csd\ta_CDLHANGINGMAN.obj + -del ..\..\..\..\..\temp\csd\ta_CDLHARAMI.obj + -del ..\..\..\..\..\temp\csd\ta_CDLHARAMICROSS.obj + -del ..\..\..\..\..\temp\csd\ta_CDLHIGHWAVE.obj + -del ..\..\..\..\..\temp\csd\ta_CDLHIKKAKE.obj + -del ..\..\..\..\..\temp\csd\ta_CDLHIKKAKEMOD.obj + -del ..\..\..\..\..\temp\csd\ta_CDLHOMINGPIGEON.obj + -del ..\..\..\..\..\temp\csd\ta_CDLIDENTICAL3CROWS.obj + -del ..\..\..\..\..\temp\csd\ta_CDLINNECK.obj + -del ..\..\..\..\..\temp\csd\ta_CDLINVERTEDHAMMER.obj + -del ..\..\..\..\..\temp\csd\ta_CDLKICKING.obj + -del ..\..\..\..\..\temp\csd\ta_CDLKICKINGBYLENGTH.obj + -del ..\..\..\..\..\temp\csd\ta_CDLLADDERBOTTOM.obj + -del ..\..\..\..\..\temp\csd\ta_CDLLONGLEGGEDDOJI.obj + -del ..\..\..\..\..\temp\csd\ta_CDLLONGLINE.obj + -del ..\..\..\..\..\temp\csd\ta_CDLMARUBOZU.obj + -del ..\..\..\..\..\temp\csd\ta_CDLMATCHINGLOW.obj + -del ..\..\..\..\..\temp\csd\ta_CDLMATHOLD.obj + -del ..\..\..\..\..\temp\csd\ta_CDLMORNINGDOJISTAR.obj + -del ..\..\..\..\..\temp\csd\ta_CDLMORNINGSTAR.obj + -del ..\..\..\..\..\temp\csd\ta_CDLONNECK.obj + -del ..\..\..\..\..\temp\csd\ta_CDLPIERCING.obj + -del ..\..\..\..\..\temp\csd\ta_CDLRICKSHAWMAN.obj + -del ..\..\..\..\..\temp\csd\ta_CDLRISEFALL3METHODS.obj + -del ..\..\..\..\..\temp\csd\ta_CDLSEPARATINGLINES.obj + -del ..\..\..\..\..\temp\csd\ta_CDLSHOOTINGSTAR.obj + -del ..\..\..\..\..\temp\csd\ta_CDLSHORTLINE.obj + -del ..\..\..\..\..\temp\csd\ta_CDLSPINNINGTOP.obj + -del ..\..\..\..\..\temp\csd\ta_CDLSTALLEDPATTERN.obj + -del ..\..\..\..\..\temp\csd\ta_CDLSTICKSANDWICH.obj + -del ..\..\..\..\..\temp\csd\ta_CDLTAKURI.obj + -del ..\..\..\..\..\temp\csd\ta_CDLTASUKIGAP.obj + -del ..\..\..\..\..\temp\csd\ta_CDLTHRUSTING.obj + -del ..\..\..\..\..\temp\csd\ta_CDLTRISTAR.obj + -del ..\..\..\..\..\temp\csd\ta_CDLUNIQUE3RIVER.obj + -del ..\..\..\..\..\temp\csd\ta_CDLUPSIDEGAP2CROWS.obj + -del ..\..\..\..\..\temp\csd\ta_CDLXSIDEGAP3METHODS.obj + -del ..\..\..\..\..\temp\csd\ta_CEIL.obj + -del ..\..\..\..\..\temp\csd\ta_CMO.obj + -del ..\..\..\..\..\temp\csd\ta_CORREL.obj + -del ..\..\..\..\..\temp\csd\ta_COS.obj + -del ..\..\..\..\..\temp\csd\ta_COSH.obj + -del ..\..\..\..\..\temp\csd\ta_DEMA.obj + -del ..\..\..\..\..\temp\csd\ta_DIV.obj + -del ..\..\..\..\..\temp\csd\ta_DX.obj + -del ..\..\..\..\..\temp\csd\ta_EMA.obj + -del ..\..\..\..\..\temp\csd\ta_EXP.obj + -del ..\..\..\..\..\temp\csd\ta_FLOOR.obj + -del ..\..\..\..\..\temp\csd\ta_HT_DCPERIOD.obj + -del ..\..\..\..\..\temp\csd\ta_HT_DCPHASE.obj + -del ..\..\..\..\..\temp\csd\ta_HT_PHASOR.obj + -del ..\..\..\..\..\temp\csd\ta_HT_SINE.obj + -del ..\..\..\..\..\temp\csd\ta_HT_TRENDLINE.obj + -del ..\..\..\..\..\temp\csd\ta_HT_TRENDMODE.obj + -del ..\..\..\..\..\temp\csd\ta_KAMA.obj + -del ..\..\..\..\..\temp\csd\ta_LINEARREG.obj + -del ..\..\..\..\..\temp\csd\ta_LINEARREG_ANGLE.obj + -del ..\..\..\..\..\temp\csd\ta_LINEARREG_INTERCEPT.obj + -del ..\..\..\..\..\temp\csd\ta_LINEARREG_SLOPE.obj + -del ..\..\..\..\..\temp\csd\ta_LN.obj + -del ..\..\..\..\..\temp\csd\ta_LOG10.obj + -del ..\..\..\..\..\temp\csd\ta_MA.obj + -del ..\..\..\..\..\temp\csd\ta_MACD.obj + -del ..\..\..\..\..\temp\csd\ta_MACDEXT.obj + -del ..\..\..\..\..\temp\csd\ta_MACDFIX.obj + -del ..\..\..\..\..\temp\csd\ta_MAMA.obj + -del ..\..\..\..\..\temp\csd\ta_MAVP.obj + -del ..\..\..\..\..\temp\csd\ta_MAX.obj + -del ..\..\..\..\..\temp\csd\ta_MAXINDEX.obj + -del ..\..\..\..\..\temp\csd\ta_MEDPRICE.obj + -del ..\..\..\..\..\temp\csd\ta_MFI.obj + -del ..\..\..\..\..\temp\csd\ta_MIDPOINT.obj + -del ..\..\..\..\..\temp\csd\ta_MIDPRICE.obj + -del ..\..\..\..\..\temp\csd\ta_MIN.obj + -del ..\..\..\..\..\temp\csd\ta_MININDEX.obj + -del ..\..\..\..\..\temp\csd\ta_MINMAX.obj + -del ..\..\..\..\..\temp\csd\ta_MINMAXINDEX.obj + -del ..\..\..\..\..\temp\csd\ta_MINUS_DI.obj + -del ..\..\..\..\..\temp\csd\ta_MINUS_DM.obj + -del ..\..\..\..\..\temp\csd\ta_MOM.obj + -del ..\..\..\..\..\temp\csd\ta_MULT.obj + -del ..\..\..\..\..\temp\csd\ta_NATR.obj + -del ..\..\..\..\..\temp\csd\ta_OBV.obj + -del ..\..\..\..\..\temp\csd\ta_PLUS_DI.obj + -del ..\..\..\..\..\temp\csd\ta_PLUS_DM.obj + -del ..\..\..\..\..\temp\csd\ta_PPO.obj + -del ..\..\..\..\..\temp\csd\ta_ROC.obj + -del ..\..\..\..\..\temp\csd\ta_ROCP.obj + -del ..\..\..\..\..\temp\csd\ta_ROCR.obj + -del ..\..\..\..\..\temp\csd\ta_ROCR100.obj + -del ..\..\..\..\..\temp\csd\ta_RSI.obj + -del ..\..\..\..\..\temp\csd\ta_SAR.obj + -del ..\..\..\..\..\temp\csd\ta_SAREXT.obj + -del ..\..\..\..\..\temp\csd\ta_SIN.obj + -del ..\..\..\..\..\temp\csd\ta_SINH.obj + -del ..\..\..\..\..\temp\csd\ta_SMA.obj + -del ..\..\..\..\..\temp\csd\ta_SQRT.obj + -del ..\..\..\..\..\temp\csd\ta_STDDEV.obj + -del ..\..\..\..\..\temp\csd\ta_STOCH.obj + -del ..\..\..\..\..\temp\csd\ta_STOCHF.obj + -del ..\..\..\..\..\temp\csd\ta_STOCHRSI.obj + -del ..\..\..\..\..\temp\csd\ta_SUB.obj + -del ..\..\..\..\..\temp\csd\ta_SUM.obj + -del ..\..\..\..\..\temp\csd\ta_T3.obj + -del ..\..\..\..\..\temp\csd\ta_TAN.obj + -del ..\..\..\..\..\temp\csd\ta_TANH.obj + -del ..\..\..\..\..\temp\csd\ta_TEMA.obj + -del ..\..\..\..\..\temp\csd\ta_TRANGE.obj + -del ..\..\..\..\..\temp\csd\ta_TRIMA.obj + -del ..\..\..\..\..\temp\csd\ta_TRIX.obj + -del ..\..\..\..\..\temp\csd\ta_TSF.obj + -del ..\..\..\..\..\temp\csd\ta_TYPPRICE.obj + -del ..\..\..\..\..\temp\csd\ta_ULTOSC.obj + -del ..\..\..\..\..\temp\csd\ta_VAR.obj + -del ..\..\..\..\..\temp\csd\ta_WCLPRICE.obj + -del ..\..\..\..\..\temp\csd\ta_WILLR.obj + -del ..\..\..\..\..\temp\csd\ta_WMA.obj + -del $(TARGET) + -del ta_libc_csd.tds + -del ../../../../../bin/*.map + -del ../../../../../bin/*._xe + -del ../../../../../bin/*.tds + -del ../../../../../bin/*.pdb + -del ../../../../../bin/*.pbo + -del ../../../../../bin/*.pbi + -del ../../../../../bin/*.pbt + +####### Compile + +..\..\..\..\..\temp\csd\ta_global.obj: ..\..\..\..\..\src\ta_common\ta_global.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_global.obj ..\..\..\..\..\src\ta_common\ta_global.c + +..\..\..\..\..\temp\csd\ta_retcode.obj: ..\..\..\..\..\src\ta_common\ta_retcode.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_retcode.obj ..\..\..\..\..\src\ta_common\ta_retcode.c + +..\..\..\..\..\temp\csd\ta_version.obj: ..\..\..\..\..\src\ta_common\ta_version.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_version.obj ..\..\..\..\..\src\ta_common\ta_version.c + +..\..\..\..\..\temp\csd\ta_abstract.obj: ..\..\..\..\..\src\ta_abstract\ta_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_abstract.obj ..\..\..\..\..\src\ta_abstract\ta_abstract.c + +..\..\..\..\..\temp\csd\ta_def_ui.obj: ..\..\..\..\..\src\ta_abstract\ta_def_ui.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_def_ui.obj ..\..\..\..\..\src\ta_abstract\ta_def_ui.c + +..\..\..\..\..\temp\csd\ta_func_api.obj: ..\..\..\..\..\src\ta_abstract\ta_func_api.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_func_api.obj ..\..\..\..\..\src\ta_abstract\ta_func_api.c + +..\..\..\..\..\temp\csd\ta_group_idx.obj: ..\..\..\..\..\src\ta_abstract\ta_group_idx.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_group_idx.obj ..\..\..\..\..\src\ta_abstract\ta_group_idx.c + +..\..\..\..\..\temp\csd\ta_frame.obj: ..\..\..\..\..\src\ta_abstract\frames\ta_frame.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_frame.obj ..\..\..\..\..\src\ta_abstract\frames\ta_frame.c + +..\..\..\..\..\temp\csd\table_a.obj: ..\..\..\..\..\src\ta_abstract\tables\table_a.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\table_a.obj ..\..\..\..\..\src\ta_abstract\tables\table_a.c + +..\..\..\..\..\temp\csd\table_b.obj: ..\..\..\..\..\src\ta_abstract\tables\table_b.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\table_b.obj ..\..\..\..\..\src\ta_abstract\tables\table_b.c + +..\..\..\..\..\temp\csd\table_c.obj: ..\..\..\..\..\src\ta_abstract\tables\table_c.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\table_c.obj ..\..\..\..\..\src\ta_abstract\tables\table_c.c + +..\..\..\..\..\temp\csd\table_d.obj: ..\..\..\..\..\src\ta_abstract\tables\table_d.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\table_d.obj ..\..\..\..\..\src\ta_abstract\tables\table_d.c + +..\..\..\..\..\temp\csd\table_e.obj: ..\..\..\..\..\src\ta_abstract\tables\table_e.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\table_e.obj ..\..\..\..\..\src\ta_abstract\tables\table_e.c + +..\..\..\..\..\temp\csd\table_f.obj: ..\..\..\..\..\src\ta_abstract\tables\table_f.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\table_f.obj ..\..\..\..\..\src\ta_abstract\tables\table_f.c + +..\..\..\..\..\temp\csd\table_g.obj: ..\..\..\..\..\src\ta_abstract\tables\table_g.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\table_g.obj ..\..\..\..\..\src\ta_abstract\tables\table_g.c + +..\..\..\..\..\temp\csd\table_h.obj: ..\..\..\..\..\src\ta_abstract\tables\table_h.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\table_h.obj ..\..\..\..\..\src\ta_abstract\tables\table_h.c + +..\..\..\..\..\temp\csd\table_i.obj: ..\..\..\..\..\src\ta_abstract\tables\table_i.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\table_i.obj ..\..\..\..\..\src\ta_abstract\tables\table_i.c + +..\..\..\..\..\temp\csd\table_j.obj: ..\..\..\..\..\src\ta_abstract\tables\table_j.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\table_j.obj ..\..\..\..\..\src\ta_abstract\tables\table_j.c + +..\..\..\..\..\temp\csd\table_k.obj: ..\..\..\..\..\src\ta_abstract\tables\table_k.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\table_k.obj ..\..\..\..\..\src\ta_abstract\tables\table_k.c + +..\..\..\..\..\temp\csd\table_l.obj: ..\..\..\..\..\src\ta_abstract\tables\table_l.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\table_l.obj ..\..\..\..\..\src\ta_abstract\tables\table_l.c + +..\..\..\..\..\temp\csd\table_m.obj: ..\..\..\..\..\src\ta_abstract\tables\table_m.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\table_m.obj ..\..\..\..\..\src\ta_abstract\tables\table_m.c + +..\..\..\..\..\temp\csd\table_n.obj: ..\..\..\..\..\src\ta_abstract\tables\table_n.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\table_n.obj ..\..\..\..\..\src\ta_abstract\tables\table_n.c + +..\..\..\..\..\temp\csd\table_o.obj: ..\..\..\..\..\src\ta_abstract\tables\table_o.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\table_o.obj ..\..\..\..\..\src\ta_abstract\tables\table_o.c + +..\..\..\..\..\temp\csd\table_p.obj: ..\..\..\..\..\src\ta_abstract\tables\table_p.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\table_p.obj ..\..\..\..\..\src\ta_abstract\tables\table_p.c + +..\..\..\..\..\temp\csd\table_q.obj: ..\..\..\..\..\src\ta_abstract\tables\table_q.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\table_q.obj ..\..\..\..\..\src\ta_abstract\tables\table_q.c + +..\..\..\..\..\temp\csd\table_r.obj: ..\..\..\..\..\src\ta_abstract\tables\table_r.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\table_r.obj ..\..\..\..\..\src\ta_abstract\tables\table_r.c + +..\..\..\..\..\temp\csd\table_s.obj: ..\..\..\..\..\src\ta_abstract\tables\table_s.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\table_s.obj ..\..\..\..\..\src\ta_abstract\tables\table_s.c + +..\..\..\..\..\temp\csd\table_t.obj: ..\..\..\..\..\src\ta_abstract\tables\table_t.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\table_t.obj ..\..\..\..\..\src\ta_abstract\tables\table_t.c + +..\..\..\..\..\temp\csd\table_u.obj: ..\..\..\..\..\src\ta_abstract\tables\table_u.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\table_u.obj ..\..\..\..\..\src\ta_abstract\tables\table_u.c + +..\..\..\..\..\temp\csd\table_v.obj: ..\..\..\..\..\src\ta_abstract\tables\table_v.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\table_v.obj ..\..\..\..\..\src\ta_abstract\tables\table_v.c + +..\..\..\..\..\temp\csd\table_w.obj: ..\..\..\..\..\src\ta_abstract\tables\table_w.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\table_w.obj ..\..\..\..\..\src\ta_abstract\tables\table_w.c + +..\..\..\..\..\temp\csd\table_x.obj: ..\..\..\..\..\src\ta_abstract\tables\table_x.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\table_x.obj ..\..\..\..\..\src\ta_abstract\tables\table_x.c + +..\..\..\..\..\temp\csd\table_y.obj: ..\..\..\..\..\src\ta_abstract\tables\table_y.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\table_y.obj ..\..\..\..\..\src\ta_abstract\tables\table_y.c + +..\..\..\..\..\temp\csd\table_z.obj: ..\..\..\..\..\src\ta_abstract\tables\table_z.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\table_z.obj ..\..\..\..\..\src\ta_abstract\tables\table_z.c + +..\..\..\..\..\temp\csd\ta_utility.obj: ..\..\..\..\..\src\ta_func\ta_utility.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_utility.obj ..\..\..\..\..\src\ta_func\ta_utility.c + +..\..\..\..\..\temp\csd\ta_ACOS.obj: ..\..\..\..\..\src\ta_func\ta_ACOS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_ACOS.obj ..\..\..\..\..\src\ta_func\ta_ACOS.c + +..\..\..\..\..\temp\csd\ta_AD.obj: ..\..\..\..\..\src\ta_func\ta_AD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_AD.obj ..\..\..\..\..\src\ta_func\ta_AD.c + +..\..\..\..\..\temp\csd\ta_ADD.obj: ..\..\..\..\..\src\ta_func\ta_ADD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_ADD.obj ..\..\..\..\..\src\ta_func\ta_ADD.c + +..\..\..\..\..\temp\csd\ta_ADOSC.obj: ..\..\..\..\..\src\ta_func\ta_ADOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_ADOSC.obj ..\..\..\..\..\src\ta_func\ta_ADOSC.c + +..\..\..\..\..\temp\csd\ta_ADX.obj: ..\..\..\..\..\src\ta_func\ta_ADX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_ADX.obj ..\..\..\..\..\src\ta_func\ta_ADX.c + +..\..\..\..\..\temp\csd\ta_ADXR.obj: ..\..\..\..\..\src\ta_func\ta_ADXR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_ADXR.obj ..\..\..\..\..\src\ta_func\ta_ADXR.c + +..\..\..\..\..\temp\csd\ta_APO.obj: ..\..\..\..\..\src\ta_func\ta_APO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_APO.obj ..\..\..\..\..\src\ta_func\ta_APO.c + +..\..\..\..\..\temp\csd\ta_AROON.obj: ..\..\..\..\..\src\ta_func\ta_AROON.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_AROON.obj ..\..\..\..\..\src\ta_func\ta_AROON.c + +..\..\..\..\..\temp\csd\ta_AROONOSC.obj: ..\..\..\..\..\src\ta_func\ta_AROONOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_AROONOSC.obj ..\..\..\..\..\src\ta_func\ta_AROONOSC.c + +..\..\..\..\..\temp\csd\ta_ASIN.obj: ..\..\..\..\..\src\ta_func\ta_ASIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_ASIN.obj ..\..\..\..\..\src\ta_func\ta_ASIN.c + +..\..\..\..\..\temp\csd\ta_ATAN.obj: ..\..\..\..\..\src\ta_func\ta_ATAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_ATAN.obj ..\..\..\..\..\src\ta_func\ta_ATAN.c + +..\..\..\..\..\temp\csd\ta_ATR.obj: ..\..\..\..\..\src\ta_func\ta_ATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_ATR.obj ..\..\..\..\..\src\ta_func\ta_ATR.c + +..\..\..\..\..\temp\csd\ta_AVGPRICE.obj: ..\..\..\..\..\src\ta_func\ta_AVGPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_AVGPRICE.obj ..\..\..\..\..\src\ta_func\ta_AVGPRICE.c + +..\..\..\..\..\temp\csd\ta_BBANDS.obj: ..\..\..\..\..\src\ta_func\ta_BBANDS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_BBANDS.obj ..\..\..\..\..\src\ta_func\ta_BBANDS.c + +..\..\..\..\..\temp\csd\ta_BETA.obj: ..\..\..\..\..\src\ta_func\ta_BETA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_BETA.obj ..\..\..\..\..\src\ta_func\ta_BETA.c + +..\..\..\..\..\temp\csd\ta_BOP.obj: ..\..\..\..\..\src\ta_func\ta_BOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_BOP.obj ..\..\..\..\..\src\ta_func\ta_BOP.c + +..\..\..\..\..\temp\csd\ta_CCI.obj: ..\..\..\..\..\src\ta_func\ta_CCI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CCI.obj ..\..\..\..\..\src\ta_func\ta_CCI.c + +..\..\..\..\..\temp\csd\ta_CDL2CROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDL2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDL2CROWS.obj ..\..\..\..\..\src\ta_func\ta_CDL2CROWS.c + +..\..\..\..\..\temp\csd\ta_CDL3BLACKCROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDL3BLACKCROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDL3BLACKCROWS.obj ..\..\..\..\..\src\ta_func\ta_CDL3BLACKCROWS.c + +..\..\..\..\..\temp\csd\ta_CDL3INSIDE.obj: ..\..\..\..\..\src\ta_func\ta_CDL3INSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDL3INSIDE.obj ..\..\..\..\..\src\ta_func\ta_CDL3INSIDE.c + +..\..\..\..\..\temp\csd\ta_CDL3LINESTRIKE.obj: ..\..\..\..\..\src\ta_func\ta_CDL3LINESTRIKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDL3LINESTRIKE.obj ..\..\..\..\..\src\ta_func\ta_CDL3LINESTRIKE.c + +..\..\..\..\..\temp\csd\ta_CDL3OUTSIDE.obj: ..\..\..\..\..\src\ta_func\ta_CDL3OUTSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDL3OUTSIDE.obj ..\..\..\..\..\src\ta_func\ta_CDL3OUTSIDE.c + +..\..\..\..\..\temp\csd\ta_CDL3STARSINSOUTH.obj: ..\..\..\..\..\src\ta_func\ta_CDL3STARSINSOUTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDL3STARSINSOUTH.obj ..\..\..\..\..\src\ta_func\ta_CDL3STARSINSOUTH.c + +..\..\..\..\..\temp\csd\ta_CDL3WHITESOLDIERS.obj: ..\..\..\..\..\src\ta_func\ta_CDL3WHITESOLDIERS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDL3WHITESOLDIERS.obj ..\..\..\..\..\src\ta_func\ta_CDL3WHITESOLDIERS.c + +..\..\..\..\..\temp\csd\ta_CDLABANDONEDBABY.obj: ..\..\..\..\..\src\ta_func\ta_CDLABANDONEDBABY.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLABANDONEDBABY.obj ..\..\..\..\..\src\ta_func\ta_CDLABANDONEDBABY.c + +..\..\..\..\..\temp\csd\ta_CDLADVANCEBLOCK.obj: ..\..\..\..\..\src\ta_func\ta_CDLADVANCEBLOCK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLADVANCEBLOCK.obj ..\..\..\..\..\src\ta_func\ta_CDLADVANCEBLOCK.c + +..\..\..\..\..\temp\csd\ta_CDLBELTHOLD.obj: ..\..\..\..\..\src\ta_func\ta_CDLBELTHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLBELTHOLD.obj ..\..\..\..\..\src\ta_func\ta_CDLBELTHOLD.c + +..\..\..\..\..\temp\csd\ta_CDLBREAKAWAY.obj: ..\..\..\..\..\src\ta_func\ta_CDLBREAKAWAY.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLBREAKAWAY.obj ..\..\..\..\..\src\ta_func\ta_CDLBREAKAWAY.c + +..\..\..\..\..\temp\csd\ta_CDLCLOSINGMARUBOZU.obj: ..\..\..\..\..\src\ta_func\ta_CDLCLOSINGMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLCLOSINGMARUBOZU.obj ..\..\..\..\..\src\ta_func\ta_CDLCLOSINGMARUBOZU.c + +..\..\..\..\..\temp\csd\ta_CDLCONCEALBABYSWALL.obj: ..\..\..\..\..\src\ta_func\ta_CDLCONCEALBABYSWALL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLCONCEALBABYSWALL.obj ..\..\..\..\..\src\ta_func\ta_CDLCONCEALBABYSWALL.c + +..\..\..\..\..\temp\csd\ta_CDLCOUNTERATTACK.obj: ..\..\..\..\..\src\ta_func\ta_CDLCOUNTERATTACK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLCOUNTERATTACK.obj ..\..\..\..\..\src\ta_func\ta_CDLCOUNTERATTACK.c + +..\..\..\..\..\temp\csd\ta_CDLDARKCLOUDCOVER.obj: ..\..\..\..\..\src\ta_func\ta_CDLDARKCLOUDCOVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLDARKCLOUDCOVER.obj ..\..\..\..\..\src\ta_func\ta_CDLDARKCLOUDCOVER.c + +..\..\..\..\..\temp\csd\ta_CDLDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLDOJI.c + +..\..\..\..\..\temp\csd\ta_CDLDOJISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLDOJISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLDOJISTAR.c + +..\..\..\..\..\temp\csd\ta_CDLDRAGONFLYDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLDRAGONFLYDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLDRAGONFLYDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLDRAGONFLYDOJI.c + +..\..\..\..\..\temp\csd\ta_CDLENGULFING.obj: ..\..\..\..\..\src\ta_func\ta_CDLENGULFING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLENGULFING.obj ..\..\..\..\..\src\ta_func\ta_CDLENGULFING.c + +..\..\..\..\..\temp\csd\ta_CDLEVENINGDOJISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLEVENINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLEVENINGDOJISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLEVENINGDOJISTAR.c + +..\..\..\..\..\temp\csd\ta_CDLEVENINGSTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLEVENINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLEVENINGSTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLEVENINGSTAR.c + +..\..\..\..\..\temp\csd\ta_CDLGAPSIDESIDEWHITE.obj: ..\..\..\..\..\src\ta_func\ta_CDLGAPSIDESIDEWHITE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLGAPSIDESIDEWHITE.obj ..\..\..\..\..\src\ta_func\ta_CDLGAPSIDESIDEWHITE.c + +..\..\..\..\..\temp\csd\ta_CDLGRAVESTONEDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLGRAVESTONEDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLGRAVESTONEDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLGRAVESTONEDOJI.c + +..\..\..\..\..\temp\csd\ta_CDLHAMMER.obj: ..\..\..\..\..\src\ta_func\ta_CDLHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLHAMMER.obj ..\..\..\..\..\src\ta_func\ta_CDLHAMMER.c + +..\..\..\..\..\temp\csd\ta_CDLHANGINGMAN.obj: ..\..\..\..\..\src\ta_func\ta_CDLHANGINGMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLHANGINGMAN.obj ..\..\..\..\..\src\ta_func\ta_CDLHANGINGMAN.c + +..\..\..\..\..\temp\csd\ta_CDLHARAMI.obj: ..\..\..\..\..\src\ta_func\ta_CDLHARAMI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLHARAMI.obj ..\..\..\..\..\src\ta_func\ta_CDLHARAMI.c + +..\..\..\..\..\temp\csd\ta_CDLHARAMICROSS.obj: ..\..\..\..\..\src\ta_func\ta_CDLHARAMICROSS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLHARAMICROSS.obj ..\..\..\..\..\src\ta_func\ta_CDLHARAMICROSS.c + +..\..\..\..\..\temp\csd\ta_CDLHIGHWAVE.obj: ..\..\..\..\..\src\ta_func\ta_CDLHIGHWAVE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLHIGHWAVE.obj ..\..\..\..\..\src\ta_func\ta_CDLHIGHWAVE.c + +..\..\..\..\..\temp\csd\ta_CDLHIKKAKE.obj: ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLHIKKAKE.obj ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKE.c + +..\..\..\..\..\temp\csd\ta_CDLHIKKAKEMOD.obj: ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKEMOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLHIKKAKEMOD.obj ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKEMOD.c + +..\..\..\..\..\temp\csd\ta_CDLHOMINGPIGEON.obj: ..\..\..\..\..\src\ta_func\ta_CDLHOMINGPIGEON.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLHOMINGPIGEON.obj ..\..\..\..\..\src\ta_func\ta_CDLHOMINGPIGEON.c + +..\..\..\..\..\temp\csd\ta_CDLIDENTICAL3CROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDLIDENTICAL3CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLIDENTICAL3CROWS.obj ..\..\..\..\..\src\ta_func\ta_CDLIDENTICAL3CROWS.c + +..\..\..\..\..\temp\csd\ta_CDLINNECK.obj: ..\..\..\..\..\src\ta_func\ta_CDLINNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLINNECK.obj ..\..\..\..\..\src\ta_func\ta_CDLINNECK.c + +..\..\..\..\..\temp\csd\ta_CDLINVERTEDHAMMER.obj: ..\..\..\..\..\src\ta_func\ta_CDLINVERTEDHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLINVERTEDHAMMER.obj ..\..\..\..\..\src\ta_func\ta_CDLINVERTEDHAMMER.c + +..\..\..\..\..\temp\csd\ta_CDLKICKING.obj: ..\..\..\..\..\src\ta_func\ta_CDLKICKING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLKICKING.obj ..\..\..\..\..\src\ta_func\ta_CDLKICKING.c + +..\..\..\..\..\temp\csd\ta_CDLKICKINGBYLENGTH.obj: ..\..\..\..\..\src\ta_func\ta_CDLKICKINGBYLENGTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLKICKINGBYLENGTH.obj ..\..\..\..\..\src\ta_func\ta_CDLKICKINGBYLENGTH.c + +..\..\..\..\..\temp\csd\ta_CDLLADDERBOTTOM.obj: ..\..\..\..\..\src\ta_func\ta_CDLLADDERBOTTOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLLADDERBOTTOM.obj ..\..\..\..\..\src\ta_func\ta_CDLLADDERBOTTOM.c + +..\..\..\..\..\temp\csd\ta_CDLLONGLEGGEDDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLLONGLEGGEDDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLLONGLEGGEDDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLLONGLEGGEDDOJI.c + +..\..\..\..\..\temp\csd\ta_CDLLONGLINE.obj: ..\..\..\..\..\src\ta_func\ta_CDLLONGLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLLONGLINE.obj ..\..\..\..\..\src\ta_func\ta_CDLLONGLINE.c + +..\..\..\..\..\temp\csd\ta_CDLMARUBOZU.obj: ..\..\..\..\..\src\ta_func\ta_CDLMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLMARUBOZU.obj ..\..\..\..\..\src\ta_func\ta_CDLMARUBOZU.c + +..\..\..\..\..\temp\csd\ta_CDLMATCHINGLOW.obj: ..\..\..\..\..\src\ta_func\ta_CDLMATCHINGLOW.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLMATCHINGLOW.obj ..\..\..\..\..\src\ta_func\ta_CDLMATCHINGLOW.c + +..\..\..\..\..\temp\csd\ta_CDLMATHOLD.obj: ..\..\..\..\..\src\ta_func\ta_CDLMATHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLMATHOLD.obj ..\..\..\..\..\src\ta_func\ta_CDLMATHOLD.c + +..\..\..\..\..\temp\csd\ta_CDLMORNINGDOJISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLMORNINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLMORNINGDOJISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLMORNINGDOJISTAR.c + +..\..\..\..\..\temp\csd\ta_CDLMORNINGSTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLMORNINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLMORNINGSTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLMORNINGSTAR.c + +..\..\..\..\..\temp\csd\ta_CDLONNECK.obj: ..\..\..\..\..\src\ta_func\ta_CDLONNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLONNECK.obj ..\..\..\..\..\src\ta_func\ta_CDLONNECK.c + +..\..\..\..\..\temp\csd\ta_CDLPIERCING.obj: ..\..\..\..\..\src\ta_func\ta_CDLPIERCING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLPIERCING.obj ..\..\..\..\..\src\ta_func\ta_CDLPIERCING.c + +..\..\..\..\..\temp\csd\ta_CDLRICKSHAWMAN.obj: ..\..\..\..\..\src\ta_func\ta_CDLRICKSHAWMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLRICKSHAWMAN.obj ..\..\..\..\..\src\ta_func\ta_CDLRICKSHAWMAN.c + +..\..\..\..\..\temp\csd\ta_CDLRISEFALL3METHODS.obj: ..\..\..\..\..\src\ta_func\ta_CDLRISEFALL3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLRISEFALL3METHODS.obj ..\..\..\..\..\src\ta_func\ta_CDLRISEFALL3METHODS.c + +..\..\..\..\..\temp\csd\ta_CDLSEPARATINGLINES.obj: ..\..\..\..\..\src\ta_func\ta_CDLSEPARATINGLINES.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLSEPARATINGLINES.obj ..\..\..\..\..\src\ta_func\ta_CDLSEPARATINGLINES.c + +..\..\..\..\..\temp\csd\ta_CDLSHOOTINGSTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLSHOOTINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLSHOOTINGSTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLSHOOTINGSTAR.c + +..\..\..\..\..\temp\csd\ta_CDLSHORTLINE.obj: ..\..\..\..\..\src\ta_func\ta_CDLSHORTLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLSHORTLINE.obj ..\..\..\..\..\src\ta_func\ta_CDLSHORTLINE.c + +..\..\..\..\..\temp\csd\ta_CDLSPINNINGTOP.obj: ..\..\..\..\..\src\ta_func\ta_CDLSPINNINGTOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLSPINNINGTOP.obj ..\..\..\..\..\src\ta_func\ta_CDLSPINNINGTOP.c + +..\..\..\..\..\temp\csd\ta_CDLSTALLEDPATTERN.obj: ..\..\..\..\..\src\ta_func\ta_CDLSTALLEDPATTERN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLSTALLEDPATTERN.obj ..\..\..\..\..\src\ta_func\ta_CDLSTALLEDPATTERN.c + +..\..\..\..\..\temp\csd\ta_CDLSTICKSANDWICH.obj: ..\..\..\..\..\src\ta_func\ta_CDLSTICKSANDWICH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLSTICKSANDWICH.obj ..\..\..\..\..\src\ta_func\ta_CDLSTICKSANDWICH.c + +..\..\..\..\..\temp\csd\ta_CDLTAKURI.obj: ..\..\..\..\..\src\ta_func\ta_CDLTAKURI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLTAKURI.obj ..\..\..\..\..\src\ta_func\ta_CDLTAKURI.c + +..\..\..\..\..\temp\csd\ta_CDLTASUKIGAP.obj: ..\..\..\..\..\src\ta_func\ta_CDLTASUKIGAP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLTASUKIGAP.obj ..\..\..\..\..\src\ta_func\ta_CDLTASUKIGAP.c + +..\..\..\..\..\temp\csd\ta_CDLTHRUSTING.obj: ..\..\..\..\..\src\ta_func\ta_CDLTHRUSTING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLTHRUSTING.obj ..\..\..\..\..\src\ta_func\ta_CDLTHRUSTING.c + +..\..\..\..\..\temp\csd\ta_CDLTRISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLTRISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLTRISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLTRISTAR.c + +..\..\..\..\..\temp\csd\ta_CDLUNIQUE3RIVER.obj: ..\..\..\..\..\src\ta_func\ta_CDLUNIQUE3RIVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLUNIQUE3RIVER.obj ..\..\..\..\..\src\ta_func\ta_CDLUNIQUE3RIVER.c + +..\..\..\..\..\temp\csd\ta_CDLUPSIDEGAP2CROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDLUPSIDEGAP2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLUPSIDEGAP2CROWS.obj ..\..\..\..\..\src\ta_func\ta_CDLUPSIDEGAP2CROWS.c + +..\..\..\..\..\temp\csd\ta_CDLXSIDEGAP3METHODS.obj: ..\..\..\..\..\src\ta_func\ta_CDLXSIDEGAP3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLXSIDEGAP3METHODS.obj ..\..\..\..\..\src\ta_func\ta_CDLXSIDEGAP3METHODS.c + +..\..\..\..\..\temp\csd\ta_CEIL.obj: ..\..\..\..\..\src\ta_func\ta_CEIL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CEIL.obj ..\..\..\..\..\src\ta_func\ta_CEIL.c + +..\..\..\..\..\temp\csd\ta_CMO.obj: ..\..\..\..\..\src\ta_func\ta_CMO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CMO.obj ..\..\..\..\..\src\ta_func\ta_CMO.c + +..\..\..\..\..\temp\csd\ta_CORREL.obj: ..\..\..\..\..\src\ta_func\ta_CORREL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CORREL.obj ..\..\..\..\..\src\ta_func\ta_CORREL.c + +..\..\..\..\..\temp\csd\ta_COS.obj: ..\..\..\..\..\src\ta_func\ta_COS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_COS.obj ..\..\..\..\..\src\ta_func\ta_COS.c + +..\..\..\..\..\temp\csd\ta_COSH.obj: ..\..\..\..\..\src\ta_func\ta_COSH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_COSH.obj ..\..\..\..\..\src\ta_func\ta_COSH.c + +..\..\..\..\..\temp\csd\ta_DEMA.obj: ..\..\..\..\..\src\ta_func\ta_DEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_DEMA.obj ..\..\..\..\..\src\ta_func\ta_DEMA.c + +..\..\..\..\..\temp\csd\ta_DIV.obj: ..\..\..\..\..\src\ta_func\ta_DIV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_DIV.obj ..\..\..\..\..\src\ta_func\ta_DIV.c + +..\..\..\..\..\temp\csd\ta_DX.obj: ..\..\..\..\..\src\ta_func\ta_DX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_DX.obj ..\..\..\..\..\src\ta_func\ta_DX.c + +..\..\..\..\..\temp\csd\ta_EMA.obj: ..\..\..\..\..\src\ta_func\ta_EMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_EMA.obj ..\..\..\..\..\src\ta_func\ta_EMA.c + +..\..\..\..\..\temp\csd\ta_EXP.obj: ..\..\..\..\..\src\ta_func\ta_EXP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_EXP.obj ..\..\..\..\..\src\ta_func\ta_EXP.c + +..\..\..\..\..\temp\csd\ta_FLOOR.obj: ..\..\..\..\..\src\ta_func\ta_FLOOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_FLOOR.obj ..\..\..\..\..\src\ta_func\ta_FLOOR.c + +..\..\..\..\..\temp\csd\ta_HT_DCPERIOD.obj: ..\..\..\..\..\src\ta_func\ta_HT_DCPERIOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_HT_DCPERIOD.obj ..\..\..\..\..\src\ta_func\ta_HT_DCPERIOD.c + +..\..\..\..\..\temp\csd\ta_HT_DCPHASE.obj: ..\..\..\..\..\src\ta_func\ta_HT_DCPHASE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_HT_DCPHASE.obj ..\..\..\..\..\src\ta_func\ta_HT_DCPHASE.c + +..\..\..\..\..\temp\csd\ta_HT_PHASOR.obj: ..\..\..\..\..\src\ta_func\ta_HT_PHASOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_HT_PHASOR.obj ..\..\..\..\..\src\ta_func\ta_HT_PHASOR.c + +..\..\..\..\..\temp\csd\ta_HT_SINE.obj: ..\..\..\..\..\src\ta_func\ta_HT_SINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_HT_SINE.obj ..\..\..\..\..\src\ta_func\ta_HT_SINE.c + +..\..\..\..\..\temp\csd\ta_HT_TRENDLINE.obj: ..\..\..\..\..\src\ta_func\ta_HT_TRENDLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_HT_TRENDLINE.obj ..\..\..\..\..\src\ta_func\ta_HT_TRENDLINE.c + +..\..\..\..\..\temp\csd\ta_HT_TRENDMODE.obj: ..\..\..\..\..\src\ta_func\ta_HT_TRENDMODE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_HT_TRENDMODE.obj ..\..\..\..\..\src\ta_func\ta_HT_TRENDMODE.c + +..\..\..\..\..\temp\csd\ta_KAMA.obj: ..\..\..\..\..\src\ta_func\ta_KAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_KAMA.obj ..\..\..\..\..\src\ta_func\ta_KAMA.c + +..\..\..\..\..\temp\csd\ta_LINEARREG.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_LINEARREG.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG.c + +..\..\..\..\..\temp\csd\ta_LINEARREG_ANGLE.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG_ANGLE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_LINEARREG_ANGLE.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG_ANGLE.c + +..\..\..\..\..\temp\csd\ta_LINEARREG_INTERCEPT.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG_INTERCEPT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_LINEARREG_INTERCEPT.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG_INTERCEPT.c + +..\..\..\..\..\temp\csd\ta_LINEARREG_SLOPE.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG_SLOPE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_LINEARREG_SLOPE.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG_SLOPE.c + +..\..\..\..\..\temp\csd\ta_LN.obj: ..\..\..\..\..\src\ta_func\ta_LN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_LN.obj ..\..\..\..\..\src\ta_func\ta_LN.c + +..\..\..\..\..\temp\csd\ta_LOG10.obj: ..\..\..\..\..\src\ta_func\ta_LOG10.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_LOG10.obj ..\..\..\..\..\src\ta_func\ta_LOG10.c + +..\..\..\..\..\temp\csd\ta_MA.obj: ..\..\..\..\..\src\ta_func\ta_MA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_MA.obj ..\..\..\..\..\src\ta_func\ta_MA.c + +..\..\..\..\..\temp\csd\ta_MACD.obj: ..\..\..\..\..\src\ta_func\ta_MACD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_MACD.obj ..\..\..\..\..\src\ta_func\ta_MACD.c + +..\..\..\..\..\temp\csd\ta_MACDEXT.obj: ..\..\..\..\..\src\ta_func\ta_MACDEXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_MACDEXT.obj ..\..\..\..\..\src\ta_func\ta_MACDEXT.c + +..\..\..\..\..\temp\csd\ta_MACDFIX.obj: ..\..\..\..\..\src\ta_func\ta_MACDFIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_MACDFIX.obj ..\..\..\..\..\src\ta_func\ta_MACDFIX.c + +..\..\..\..\..\temp\csd\ta_MAMA.obj: ..\..\..\..\..\src\ta_func\ta_MAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_MAMA.obj ..\..\..\..\..\src\ta_func\ta_MAMA.c + +..\..\..\..\..\temp\csd\ta_MAVP.obj: ..\..\..\..\..\src\ta_func\ta_MAVP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_MAVP.obj ..\..\..\..\..\src\ta_func\ta_MAVP.c + +..\..\..\..\..\temp\csd\ta_MAX.obj: ..\..\..\..\..\src\ta_func\ta_MAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_MAX.obj ..\..\..\..\..\src\ta_func\ta_MAX.c + +..\..\..\..\..\temp\csd\ta_MAXINDEX.obj: ..\..\..\..\..\src\ta_func\ta_MAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_MAXINDEX.obj ..\..\..\..\..\src\ta_func\ta_MAXINDEX.c + +..\..\..\..\..\temp\csd\ta_MEDPRICE.obj: ..\..\..\..\..\src\ta_func\ta_MEDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_MEDPRICE.obj ..\..\..\..\..\src\ta_func\ta_MEDPRICE.c + +..\..\..\..\..\temp\csd\ta_MFI.obj: ..\..\..\..\..\src\ta_func\ta_MFI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_MFI.obj ..\..\..\..\..\src\ta_func\ta_MFI.c + +..\..\..\..\..\temp\csd\ta_MIDPOINT.obj: ..\..\..\..\..\src\ta_func\ta_MIDPOINT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_MIDPOINT.obj ..\..\..\..\..\src\ta_func\ta_MIDPOINT.c + +..\..\..\..\..\temp\csd\ta_MIDPRICE.obj: ..\..\..\..\..\src\ta_func\ta_MIDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_MIDPRICE.obj ..\..\..\..\..\src\ta_func\ta_MIDPRICE.c + +..\..\..\..\..\temp\csd\ta_MIN.obj: ..\..\..\..\..\src\ta_func\ta_MIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_MIN.obj ..\..\..\..\..\src\ta_func\ta_MIN.c + +..\..\..\..\..\temp\csd\ta_MININDEX.obj: ..\..\..\..\..\src\ta_func\ta_MININDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_MININDEX.obj ..\..\..\..\..\src\ta_func\ta_MININDEX.c + +..\..\..\..\..\temp\csd\ta_MINMAX.obj: ..\..\..\..\..\src\ta_func\ta_MINMAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_MINMAX.obj ..\..\..\..\..\src\ta_func\ta_MINMAX.c + +..\..\..\..\..\temp\csd\ta_MINMAXINDEX.obj: ..\..\..\..\..\src\ta_func\ta_MINMAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_MINMAXINDEX.obj ..\..\..\..\..\src\ta_func\ta_MINMAXINDEX.c + +..\..\..\..\..\temp\csd\ta_MINUS_DI.obj: ..\..\..\..\..\src\ta_func\ta_MINUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_MINUS_DI.obj ..\..\..\..\..\src\ta_func\ta_MINUS_DI.c + +..\..\..\..\..\temp\csd\ta_MINUS_DM.obj: ..\..\..\..\..\src\ta_func\ta_MINUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_MINUS_DM.obj ..\..\..\..\..\src\ta_func\ta_MINUS_DM.c + +..\..\..\..\..\temp\csd\ta_MOM.obj: ..\..\..\..\..\src\ta_func\ta_MOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_MOM.obj ..\..\..\..\..\src\ta_func\ta_MOM.c + +..\..\..\..\..\temp\csd\ta_MULT.obj: ..\..\..\..\..\src\ta_func\ta_MULT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_MULT.obj ..\..\..\..\..\src\ta_func\ta_MULT.c + +..\..\..\..\..\temp\csd\ta_NATR.obj: ..\..\..\..\..\src\ta_func\ta_NATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_NATR.obj ..\..\..\..\..\src\ta_func\ta_NATR.c + +..\..\..\..\..\temp\csd\ta_OBV.obj: ..\..\..\..\..\src\ta_func\ta_OBV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_OBV.obj ..\..\..\..\..\src\ta_func\ta_OBV.c + +..\..\..\..\..\temp\csd\ta_PLUS_DI.obj: ..\..\..\..\..\src\ta_func\ta_PLUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_PLUS_DI.obj ..\..\..\..\..\src\ta_func\ta_PLUS_DI.c + +..\..\..\..\..\temp\csd\ta_PLUS_DM.obj: ..\..\..\..\..\src\ta_func\ta_PLUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_PLUS_DM.obj ..\..\..\..\..\src\ta_func\ta_PLUS_DM.c + +..\..\..\..\..\temp\csd\ta_PPO.obj: ..\..\..\..\..\src\ta_func\ta_PPO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_PPO.obj ..\..\..\..\..\src\ta_func\ta_PPO.c + +..\..\..\..\..\temp\csd\ta_ROC.obj: ..\..\..\..\..\src\ta_func\ta_ROC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_ROC.obj ..\..\..\..\..\src\ta_func\ta_ROC.c + +..\..\..\..\..\temp\csd\ta_ROCP.obj: ..\..\..\..\..\src\ta_func\ta_ROCP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_ROCP.obj ..\..\..\..\..\src\ta_func\ta_ROCP.c + +..\..\..\..\..\temp\csd\ta_ROCR.obj: ..\..\..\..\..\src\ta_func\ta_ROCR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_ROCR.obj ..\..\..\..\..\src\ta_func\ta_ROCR.c + +..\..\..\..\..\temp\csd\ta_ROCR100.obj: ..\..\..\..\..\src\ta_func\ta_ROCR100.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_ROCR100.obj ..\..\..\..\..\src\ta_func\ta_ROCR100.c + +..\..\..\..\..\temp\csd\ta_RSI.obj: ..\..\..\..\..\src\ta_func\ta_RSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_RSI.obj ..\..\..\..\..\src\ta_func\ta_RSI.c + +..\..\..\..\..\temp\csd\ta_SAR.obj: ..\..\..\..\..\src\ta_func\ta_SAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_SAR.obj ..\..\..\..\..\src\ta_func\ta_SAR.c + +..\..\..\..\..\temp\csd\ta_SAREXT.obj: ..\..\..\..\..\src\ta_func\ta_SAREXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_SAREXT.obj ..\..\..\..\..\src\ta_func\ta_SAREXT.c + +..\..\..\..\..\temp\csd\ta_SIN.obj: ..\..\..\..\..\src\ta_func\ta_SIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_SIN.obj ..\..\..\..\..\src\ta_func\ta_SIN.c + +..\..\..\..\..\temp\csd\ta_SINH.obj: ..\..\..\..\..\src\ta_func\ta_SINH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_SINH.obj ..\..\..\..\..\src\ta_func\ta_SINH.c + +..\..\..\..\..\temp\csd\ta_SMA.obj: ..\..\..\..\..\src\ta_func\ta_SMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_SMA.obj ..\..\..\..\..\src\ta_func\ta_SMA.c + +..\..\..\..\..\temp\csd\ta_SQRT.obj: ..\..\..\..\..\src\ta_func\ta_SQRT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_SQRT.obj ..\..\..\..\..\src\ta_func\ta_SQRT.c + +..\..\..\..\..\temp\csd\ta_STDDEV.obj: ..\..\..\..\..\src\ta_func\ta_STDDEV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_STDDEV.obj ..\..\..\..\..\src\ta_func\ta_STDDEV.c + +..\..\..\..\..\temp\csd\ta_STOCH.obj: ..\..\..\..\..\src\ta_func\ta_STOCH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_STOCH.obj ..\..\..\..\..\src\ta_func\ta_STOCH.c + +..\..\..\..\..\temp\csd\ta_STOCHF.obj: ..\..\..\..\..\src\ta_func\ta_STOCHF.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_STOCHF.obj ..\..\..\..\..\src\ta_func\ta_STOCHF.c + +..\..\..\..\..\temp\csd\ta_STOCHRSI.obj: ..\..\..\..\..\src\ta_func\ta_STOCHRSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_STOCHRSI.obj ..\..\..\..\..\src\ta_func\ta_STOCHRSI.c + +..\..\..\..\..\temp\csd\ta_SUB.obj: ..\..\..\..\..\src\ta_func\ta_SUB.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_SUB.obj ..\..\..\..\..\src\ta_func\ta_SUB.c + +..\..\..\..\..\temp\csd\ta_SUM.obj: ..\..\..\..\..\src\ta_func\ta_SUM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_SUM.obj ..\..\..\..\..\src\ta_func\ta_SUM.c + +..\..\..\..\..\temp\csd\ta_T3.obj: ..\..\..\..\..\src\ta_func\ta_T3.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_T3.obj ..\..\..\..\..\src\ta_func\ta_T3.c + +..\..\..\..\..\temp\csd\ta_TAN.obj: ..\..\..\..\..\src\ta_func\ta_TAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_TAN.obj ..\..\..\..\..\src\ta_func\ta_TAN.c + +..\..\..\..\..\temp\csd\ta_TANH.obj: ..\..\..\..\..\src\ta_func\ta_TANH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_TANH.obj ..\..\..\..\..\src\ta_func\ta_TANH.c + +..\..\..\..\..\temp\csd\ta_TEMA.obj: ..\..\..\..\..\src\ta_func\ta_TEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_TEMA.obj ..\..\..\..\..\src\ta_func\ta_TEMA.c + +..\..\..\..\..\temp\csd\ta_TRANGE.obj: ..\..\..\..\..\src\ta_func\ta_TRANGE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_TRANGE.obj ..\..\..\..\..\src\ta_func\ta_TRANGE.c + +..\..\..\..\..\temp\csd\ta_TRIMA.obj: ..\..\..\..\..\src\ta_func\ta_TRIMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_TRIMA.obj ..\..\..\..\..\src\ta_func\ta_TRIMA.c + +..\..\..\..\..\temp\csd\ta_TRIX.obj: ..\..\..\..\..\src\ta_func\ta_TRIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_TRIX.obj ..\..\..\..\..\src\ta_func\ta_TRIX.c + +..\..\..\..\..\temp\csd\ta_TSF.obj: ..\..\..\..\..\src\ta_func\ta_TSF.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_TSF.obj ..\..\..\..\..\src\ta_func\ta_TSF.c + +..\..\..\..\..\temp\csd\ta_TYPPRICE.obj: ..\..\..\..\..\src\ta_func\ta_TYPPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_TYPPRICE.obj ..\..\..\..\..\src\ta_func\ta_TYPPRICE.c + +..\..\..\..\..\temp\csd\ta_ULTOSC.obj: ..\..\..\..\..\src\ta_func\ta_ULTOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_ULTOSC.obj ..\..\..\..\..\src\ta_func\ta_ULTOSC.c + +..\..\..\..\..\temp\csd\ta_VAR.obj: ..\..\..\..\..\src\ta_func\ta_VAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_VAR.obj ..\..\..\..\..\src\ta_func\ta_VAR.c + +..\..\..\..\..\temp\csd\ta_WCLPRICE.obj: ..\..\..\..\..\src\ta_func\ta_WCLPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_WCLPRICE.obj ..\..\..\..\..\src\ta_func\ta_WCLPRICE.c + +..\..\..\..\..\temp\csd\ta_WILLR.obj: ..\..\..\..\..\src\ta_func\ta_WILLR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_WILLR.obj ..\..\..\..\..\src\ta_func\ta_WILLR.c + +..\..\..\..\..\temp\csd\ta_WMA.obj: ..\..\..\..\..\src\ta_func\ta_WMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_WMA.obj ..\..\..\..\..\src\ta_func\ta_WMA.c + diff --git a/make/csd/win32/borland/ta_regtest/Makefile b/make/csd/win32/borland/ta_regtest/Makefile new file mode 100644 index 000000000..8c11ffc83 --- /dev/null +++ b/make/csd/win32/borland/ta_regtest/Makefile @@ -0,0 +1,243 @@ +############################################################################# +# Makefile for building ta_regtest +# Generated by tmake; +# Project: ta_regtest/ta_regtest +# Template: app +############################################################################# + +!if !$d(BCB) +BCB = $(MAKEDIR)\.. +!endif + +####### Compiler, tools and options + +CC = bcc32 +CXX = bcc32 +CFLAGS = -x- -RT- -tWR -w -w-8004 -w-8071 -w-8057 -w-8080 -v -DTA_DEBUG -D_DEBUG -DTA_SINGLE_THREAD -DWIN32 +CXXFLAGS= -x- -RT- -tWR -w -w-8004 -w-8071 -w-8057 -w-8080 -v -DTA_DEBUG -D_DEBUG -DTA_SINGLE_THREAD -DWIN32 +INCPATH = -I"..\..\..\..\..\src\ta_common" -I"..\..\..\..\..\src\tools\ta_regtest" -I"..\..\..\..\..\src\ta_func" -I"..\..\..\..\..\include" +LINK = ilink32 +LFLAGS = -L$(BCB)\lib -L$(BCB)\lib\PSDK -c -x -Gn -v -ap -Tpe c0x32.obj +LIBS = import32.lib cw32i.lib ..\..\..\..\..\lib\ta_libc_csd.lib +MOC = moc +UIC = uic + +ZIP = zip -r -9 +DEF_FILE = +RES_FILE = + +####### Files + +HEADERS = +SOURCES = ..\..\..\..\..\src\tools\ta_regtest\ta_regtest.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_candlestick.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_1in_1out.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_1in_2out.c \ + ..\..\..\..\..\src\tools\ta_regtest\test_internals.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_adx.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_bbands.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_ma.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_macd.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_minmax.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_mom.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_ema.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hl.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hlc.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hlcv.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_ohlc.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_po.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_rsi.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_sar.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_stddev.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_stoch.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_trange.c \ + ..\..\..\..\..\src\tools\ta_regtest\test_util.c \ + ..\..\..\..\..\src\tools\ta_regtest\test_data.c \ + ..\..\..\..\..\src\tools\ta_regtest\test_abstract.c +OBJECTS = ..\..\..\..\..\temp\csd\ta_regtest.obj \ + ..\..\..\..\..\temp\csd\test_candlestick.obj \ + ..\..\..\..\..\temp\csd\test_1in_1out.obj \ + ..\..\..\..\..\temp\csd\test_1in_2out.obj \ + ..\..\..\..\..\temp\csd\test_internals.obj \ + ..\..\..\..\..\temp\csd\test_adx.obj \ + ..\..\..\..\..\temp\csd\test_bbands.obj \ + ..\..\..\..\..\temp\csd\test_ma.obj \ + ..\..\..\..\..\temp\csd\test_macd.obj \ + ..\..\..\..\..\temp\csd\test_minmax.obj \ + ..\..\..\..\..\temp\csd\test_mom.obj \ + ..\..\..\..\..\temp\csd\test_per_ema.obj \ + ..\..\..\..\..\temp\csd\test_per_hl.obj \ + ..\..\..\..\..\temp\csd\test_per_hlc.obj \ + ..\..\..\..\..\temp\csd\test_per_hlcv.obj \ + ..\..\..\..\..\temp\csd\test_per_ohlc.obj \ + ..\..\..\..\..\temp\csd\test_po.obj \ + ..\..\..\..\..\temp\csd\test_rsi.obj \ + ..\..\..\..\..\temp\csd\test_sar.obj \ + ..\..\..\..\..\temp\csd\test_stddev.obj \ + ..\..\..\..\..\temp\csd\test_stoch.obj \ + ..\..\..\..\..\temp\csd\test_trange.obj \ + ..\..\..\..\..\temp\csd\test_util.obj \ + ..\..\..\..\..\temp\csd\test_data.obj \ + ..\..\..\..\..\temp\csd\test_abstract.obj +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ..\..\..\..\..\bin\ta_regtest.exe +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .c + +.cpp.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.cxx.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.cc.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.c.obj: + $(CC) -c $(CFLAGS) $(INCPATH) -o$@ $< + +####### Build rules + +all: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + $(LINK) @&&| + $(LFLAGS) $(OBJECTS) $(OBJMOC),$(TARGET),,$(LIBS),$(DEF_FILE),$(RES_FILE) +| + +moc: $(SRCMOC) + +tmake: ../csd/win32/borland/ta_regtest/Makefile + +../csd/win32/borland/ta_regtest/Makefile: ta_regtest/ta_regtest.pro + tmake ta_regtest/ta_regtest.pro -o ../csd/win32/borland/ta_regtest/Makefile + +dist: + $(ZIP) ta_regtest/ta_regtest.zip ta_regtest/ta_regtest.pro $(SOURCES) $(HEADERS) $(DIST) + +clean: + -del ..\..\..\..\..\temp\csd\ta_regtest.obj + -del ..\..\..\..\..\temp\csd\test_candlestick.obj + -del ..\..\..\..\..\temp\csd\test_1in_1out.obj + -del ..\..\..\..\..\temp\csd\test_1in_2out.obj + -del ..\..\..\..\..\temp\csd\test_internals.obj + -del ..\..\..\..\..\temp\csd\test_adx.obj + -del ..\..\..\..\..\temp\csd\test_bbands.obj + -del ..\..\..\..\..\temp\csd\test_ma.obj + -del ..\..\..\..\..\temp\csd\test_macd.obj + -del ..\..\..\..\..\temp\csd\test_minmax.obj + -del ..\..\..\..\..\temp\csd\test_mom.obj + -del ..\..\..\..\..\temp\csd\test_per_ema.obj + -del ..\..\..\..\..\temp\csd\test_per_hl.obj + -del ..\..\..\..\..\temp\csd\test_per_hlc.obj + -del ..\..\..\..\..\temp\csd\test_per_hlcv.obj + -del ..\..\..\..\..\temp\csd\test_per_ohlc.obj + -del ..\..\..\..\..\temp\csd\test_po.obj + -del ..\..\..\..\..\temp\csd\test_rsi.obj + -del ..\..\..\..\..\temp\csd\test_sar.obj + -del ..\..\..\..\..\temp\csd\test_stddev.obj + -del ..\..\..\..\..\temp\csd\test_stoch.obj + -del ..\..\..\..\..\temp\csd\test_trange.obj + -del ..\..\..\..\..\temp\csd\test_util.obj + -del ..\..\..\..\..\temp\csd\test_data.obj + -del ..\..\..\..\..\temp\csd\test_abstract.obj + -del $(TARGET) + -del ta_regtest.tds + -del ../../../../../bin/*.map + -del ../../../../../bin/*._xe + -del ../../../../../bin/*.tds + -del ../../../../../bin/*.pdb + -del ../../../../../bin/*.pbo + -del ../../../../../bin/*.pbi + -del ../../../../../bin/*.pbt + -del ../../../../../temp/csd/*.pch + -del ../../../../../temp/csd/*.idb + -del ../../../../../temp/csd/ta_regtest/*.pch + -del ../../../../../temp/csd/ta_regtest/*.idb + -del ../../../../../temp/csd/ta_regtest/*.obj + +####### Compile + +..\..\..\..\..\temp\csd\ta_regtest.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_regtest.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_regtest.obj ..\..\..\..\..\src\tools\ta_regtest\ta_regtest.c + +..\..\..\..\..\temp\csd\test_candlestick.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_candlestick.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\test_candlestick.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_candlestick.c + +..\..\..\..\..\temp\csd\test_1in_1out.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_1in_1out.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\test_1in_1out.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_1in_1out.c + +..\..\..\..\..\temp\csd\test_1in_2out.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_1in_2out.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\test_1in_2out.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_1in_2out.c + +..\..\..\..\..\temp\csd\test_internals.obj: ..\..\..\..\..\src\tools\ta_regtest\test_internals.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\test_internals.obj ..\..\..\..\..\src\tools\ta_regtest\test_internals.c + +..\..\..\..\..\temp\csd\test_adx.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_adx.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\test_adx.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_adx.c + +..\..\..\..\..\temp\csd\test_bbands.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_bbands.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\test_bbands.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_bbands.c + +..\..\..\..\..\temp\csd\test_ma.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_ma.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\test_ma.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_ma.c + +..\..\..\..\..\temp\csd\test_macd.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_macd.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\test_macd.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_macd.c + +..\..\..\..\..\temp\csd\test_minmax.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_minmax.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\test_minmax.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_minmax.c + +..\..\..\..\..\temp\csd\test_mom.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_mom.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\test_mom.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_mom.c + +..\..\..\..\..\temp\csd\test_per_ema.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_ema.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\test_per_ema.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_ema.c + +..\..\..\..\..\temp\csd\test_per_hl.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hl.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\test_per_hl.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hl.c + +..\..\..\..\..\temp\csd\test_per_hlc.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hlc.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\test_per_hlc.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hlc.c + +..\..\..\..\..\temp\csd\test_per_hlcv.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hlcv.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\test_per_hlcv.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hlcv.c + +..\..\..\..\..\temp\csd\test_per_ohlc.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_ohlc.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\test_per_ohlc.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_ohlc.c + +..\..\..\..\..\temp\csd\test_po.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_po.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\test_po.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_po.c + +..\..\..\..\..\temp\csd\test_rsi.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_rsi.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\test_rsi.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_rsi.c + +..\..\..\..\..\temp\csd\test_sar.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_sar.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\test_sar.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_sar.c + +..\..\..\..\..\temp\csd\test_stddev.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_stddev.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\test_stddev.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_stddev.c + +..\..\..\..\..\temp\csd\test_stoch.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_stoch.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\test_stoch.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_stoch.c + +..\..\..\..\..\temp\csd\test_trange.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_trange.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\test_trange.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_trange.c + +..\..\..\..\..\temp\csd\test_util.obj: ..\..\..\..\..\src\tools\ta_regtest\test_util.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\test_util.obj ..\..\..\..\..\src\tools\ta_regtest\test_util.c + +..\..\..\..\..\temp\csd\test_data.obj: ..\..\..\..\..\src\tools\ta_regtest\test_data.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\test_data.obj ..\..\..\..\..\src\tools\ta_regtest\test_data.c + +..\..\..\..\..\temp\csd\test_abstract.obj: ..\..\..\..\..\src\tools\ta_regtest\test_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\test_abstract.obj ..\..\..\..\..\src\tools\ta_regtest\test_abstract.c + diff --git a/make/csd/win32/msvc/Makefile b/make/csd/win32/msvc/Makefile new file mode 100644 index 000000000..4f6b9db08 --- /dev/null +++ b/make/csd/win32/msvc/Makefile @@ -0,0 +1,97 @@ +############################################################################# +# Makefile for building targets in sub directories. +# Generated by tmake; +# Project: rootmake +# Template: subdirs +############################################################################# + +MAKEFILE= Makefile +TMAKE = tmake + +SUBDIRS = ta_common \ + ta_func \ + ta_abstract \ + ta_libc \ + gen_code \ + ta_regtest + +all: $(SUBDIRS) + +ta_common: FORCE + cd ta_common + $(MAKE) /nologo + @cd .. + +ta_func: FORCE + cd ta_func + $(MAKE) /nologo + @cd .. + +ta_abstract: FORCE + cd ta_abstract + $(MAKE) /nologo + @cd .. + +ta_libc: FORCE + cd ta_libc + $(MAKE) /nologo + @cd .. + +gen_code: FORCE + cd gen_code + $(MAKE) /nologo + @cd .. + +ta_regtest: FORCE + cd ta_regtest + $(MAKE) /nologo + @cd .. + + +tmake: ../csd/win32/msvc/Makefile + +../csd/win32/msvc/Makefile: rootmake.pro + tmake rootmake.pro -o ../csd/win32/msvc/Makefile + +tmake_all: + cd ta_common + $(TMAKE) ta_common.pro -o $(MAKEFILE) + @cd .. + cd ta_func + $(TMAKE) ta_func.pro -o $(MAKEFILE) + @cd .. + cd ta_abstract + $(TMAKE) ta_abstract.pro -o $(MAKEFILE) + @cd .. + cd ta_libc + $(TMAKE) ta_libc.pro -o $(MAKEFILE) + @cd .. + cd gen_code + $(TMAKE) gen_code.pro -o $(MAKEFILE) + @cd .. + cd ta_regtest + $(TMAKE) ta_regtest.pro -o $(MAKEFILE) + @cd .. + + +clean: + cd ta_common + $(MAKE) clean + @cd .. + cd ta_func + $(MAKE) clean + @cd .. + cd ta_abstract + $(MAKE) clean + @cd .. + cd ta_libc + $(MAKE) clean + @cd .. + cd gen_code + $(MAKE) clean + @cd .. + cd ta_regtest + $(MAKE) clean + @cd .. + +FORCE: diff --git a/make/csd/win32/msvc/gen_code/Makefile b/make/csd/win32/msvc/gen_code/Makefile new file mode 100644 index 000000000..eb7078910 --- /dev/null +++ b/make/csd/win32/msvc/gen_code/Makefile @@ -0,0 +1,263 @@ +############################################################################# +# Makefile for building gen_code +# Generated by tmake; +# Project: gen_code/gen_code +# Template: app +############################################################################# + +####### Compiler, tools and options + +CC = cl +CXX = cl +CFLAGS = -nologo -W3 -Zi -DTA_GEN_CODE -DTA_DEBUG -D_DEBUG -DTA_SINGLE_THREAD -DWIN32 -D_MBCS -D_LIB +CXXFLAGS= -nologo -W3 -Zi -DTA_GEN_CODE -DTA_DEBUG -D_DEBUG -DTA_SINGLE_THREAD -DWIN32 -D_MBCS -D_LIB +INCPATH = -I"..\..\..\..\..\include" -I"..\..\..\..\..\src\ta_common" -I"..\..\..\..\..\src\ta_abstract" -I"..\..\..\..\..\src\ta_abstract\tables" -I"..\..\..\..\..\src\ta_abstract\frames" +LINK = link +LFLAGS = /NOLOGO /DEBUG /SUBSYSTEM:console +LIBS = ..\..\..\..\..\lib\ta_common_csd.lib +MOC = moc +UIC = uic + +ZIP = zip -r -9 + +####### Files + +HEADERS = +SOURCES = ..\..\..\..\..\src\tools\gen_code\gen_code.c \ + ..\..\..\..\..\src\ta_abstract\ta_abstract.c \ + ..\..\..\..\..\src\ta_abstract\ta_def_ui.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_a.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_b.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_c.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_d.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_e.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_f.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_g.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_h.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_i.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_j.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_k.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_l.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_m.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_n.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_o.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_p.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_q.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_r.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_s.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_t.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_u.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_v.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_w.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_x.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_y.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_z.c +OBJECTS = ..\..\..\..\..\temp\csd\gen_code\gen_code.obj \ + ..\..\..\..\..\temp\csd\gen_code\ta_abstract.obj \ + ..\..\..\..\..\temp\csd\gen_code\ta_def_ui.obj \ + ..\..\..\..\..\temp\csd\gen_code\table_a.obj \ + ..\..\..\..\..\temp\csd\gen_code\table_b.obj \ + ..\..\..\..\..\temp\csd\gen_code\table_c.obj \ + ..\..\..\..\..\temp\csd\gen_code\table_d.obj \ + ..\..\..\..\..\temp\csd\gen_code\table_e.obj \ + ..\..\..\..\..\temp\csd\gen_code\table_f.obj \ + ..\..\..\..\..\temp\csd\gen_code\table_g.obj \ + ..\..\..\..\..\temp\csd\gen_code\table_h.obj \ + ..\..\..\..\..\temp\csd\gen_code\table_i.obj \ + ..\..\..\..\..\temp\csd\gen_code\table_j.obj \ + ..\..\..\..\..\temp\csd\gen_code\table_k.obj \ + ..\..\..\..\..\temp\csd\gen_code\table_l.obj \ + ..\..\..\..\..\temp\csd\gen_code\table_m.obj \ + ..\..\..\..\..\temp\csd\gen_code\table_n.obj \ + ..\..\..\..\..\temp\csd\gen_code\table_o.obj \ + ..\..\..\..\..\temp\csd\gen_code\table_p.obj \ + ..\..\..\..\..\temp\csd\gen_code\table_q.obj \ + ..\..\..\..\..\temp\csd\gen_code\table_r.obj \ + ..\..\..\..\..\temp\csd\gen_code\table_s.obj \ + ..\..\..\..\..\temp\csd\gen_code\table_t.obj \ + ..\..\..\..\..\temp\csd\gen_code\table_u.obj \ + ..\..\..\..\..\temp\csd\gen_code\table_v.obj \ + ..\..\..\..\..\temp\csd\gen_code\table_w.obj \ + ..\..\..\..\..\temp\csd\gen_code\table_x.obj \ + ..\..\..\..\..\temp\csd\gen_code\table_y.obj \ + ..\..\..\..\..\temp\csd\gen_code\table_z.obj +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ..\..\..\..\..\bin\gen_code.exe +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .c + +.cpp.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $< + +.cxx.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $< + +.cc.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $< + +.c.obj: + $(CC) -c $(CFLAGS) $(INCPATH) -Fo$@ $< + +####### Build rules + +all: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + $(LINK) $(LFLAGS) /OUT:$(TARGET) @<< + $(OBJECTS) $(OBJMOC) $(LIBS) +<< + +moc: $(SRCMOC) + +tmake: ../csd/win32/msvc/gen_code/Makefile + +../csd/win32/msvc/gen_code/Makefile: gen_code/gen_code.pro + tmake gen_code/gen_code.pro -o ../csd/win32/msvc/gen_code/Makefile + +dist: + $(ZIP) gen_code/gen_code.zip gen_code/gen_code.pro $(SOURCES) $(HEADERS) $(DIST) $(INTERFACES) + +clean: + -del ..\..\..\..\..\temp\csd\gen_code\gen_code.obj + -del ..\..\..\..\..\temp\csd\gen_code\ta_abstract.obj + -del ..\..\..\..\..\temp\csd\gen_code\ta_def_ui.obj + -del ..\..\..\..\..\temp\csd\gen_code\table_a.obj + -del ..\..\..\..\..\temp\csd\gen_code\table_b.obj + -del ..\..\..\..\..\temp\csd\gen_code\table_c.obj + -del ..\..\..\..\..\temp\csd\gen_code\table_d.obj + -del ..\..\..\..\..\temp\csd\gen_code\table_e.obj + -del ..\..\..\..\..\temp\csd\gen_code\table_f.obj + -del ..\..\..\..\..\temp\csd\gen_code\table_g.obj + -del ..\..\..\..\..\temp\csd\gen_code\table_h.obj + -del ..\..\..\..\..\temp\csd\gen_code\table_i.obj + -del ..\..\..\..\..\temp\csd\gen_code\table_j.obj + -del ..\..\..\..\..\temp\csd\gen_code\table_k.obj + -del ..\..\..\..\..\temp\csd\gen_code\table_l.obj + -del ..\..\..\..\..\temp\csd\gen_code\table_m.obj + -del ..\..\..\..\..\temp\csd\gen_code\table_n.obj + -del ..\..\..\..\..\temp\csd\gen_code\table_o.obj + -del ..\..\..\..\..\temp\csd\gen_code\table_p.obj + -del ..\..\..\..\..\temp\csd\gen_code\table_q.obj + -del ..\..\..\..\..\temp\csd\gen_code\table_r.obj + -del ..\..\..\..\..\temp\csd\gen_code\table_s.obj + -del ..\..\..\..\..\temp\csd\gen_code\table_t.obj + -del ..\..\..\..\..\temp\csd\gen_code\table_u.obj + -del ..\..\..\..\..\temp\csd\gen_code\table_v.obj + -del ..\..\..\..\..\temp\csd\gen_code\table_w.obj + -del ..\..\..\..\..\temp\csd\gen_code\table_x.obj + -del ..\..\..\..\..\temp\csd\gen_code\table_y.obj + -del ..\..\..\..\..\temp\csd\gen_code\table_z.obj + -del $(TARGET) + -del ../../../../../bin/*.map + -del ../../../../../bin/*._xe + -del ../../../../../bin/*.tds + -del ../../../../../bin/*.pdb + -del ../../../../../bin/*.pbo + -del ../../../../../bin/*.pbi + -del ../../../../../bin/*.pbt + -del ../../../../../temp/csd/*.pch + -del ../../../../../temp/csd/*.idb + -del ../../../../../temp/csd/gen_code/*.pch + -del ../../../../../temp/csd/gen_code/*.idb + -del ../../../../../temp/csd/gen_code/*.obj + -del gen_code.pdb + -del vc*.pdb + -del gen_code.ilk + +####### Compile + +..\..\..\..\..\temp\csd\gen_code\gen_code.obj: ..\..\..\..\..\src\tools\gen_code\gen_code.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\gen_code\gen_code.obj ..\..\..\..\..\src\tools\gen_code\gen_code.c + +..\..\..\..\..\temp\csd\gen_code\ta_abstract.obj: ..\..\..\..\..\src\ta_abstract\ta_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\gen_code\ta_abstract.obj ..\..\..\..\..\src\ta_abstract\ta_abstract.c + +..\..\..\..\..\temp\csd\gen_code\ta_def_ui.obj: ..\..\..\..\..\src\ta_abstract\ta_def_ui.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\gen_code\ta_def_ui.obj ..\..\..\..\..\src\ta_abstract\ta_def_ui.c + +..\..\..\..\..\temp\csd\gen_code\table_a.obj: ..\..\..\..\..\src\ta_abstract\tables\table_a.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\gen_code\table_a.obj ..\..\..\..\..\src\ta_abstract\tables\table_a.c + +..\..\..\..\..\temp\csd\gen_code\table_b.obj: ..\..\..\..\..\src\ta_abstract\tables\table_b.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\gen_code\table_b.obj ..\..\..\..\..\src\ta_abstract\tables\table_b.c + +..\..\..\..\..\temp\csd\gen_code\table_c.obj: ..\..\..\..\..\src\ta_abstract\tables\table_c.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\gen_code\table_c.obj ..\..\..\..\..\src\ta_abstract\tables\table_c.c + +..\..\..\..\..\temp\csd\gen_code\table_d.obj: ..\..\..\..\..\src\ta_abstract\tables\table_d.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\gen_code\table_d.obj ..\..\..\..\..\src\ta_abstract\tables\table_d.c + +..\..\..\..\..\temp\csd\gen_code\table_e.obj: ..\..\..\..\..\src\ta_abstract\tables\table_e.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\gen_code\table_e.obj ..\..\..\..\..\src\ta_abstract\tables\table_e.c + +..\..\..\..\..\temp\csd\gen_code\table_f.obj: ..\..\..\..\..\src\ta_abstract\tables\table_f.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\gen_code\table_f.obj ..\..\..\..\..\src\ta_abstract\tables\table_f.c + +..\..\..\..\..\temp\csd\gen_code\table_g.obj: ..\..\..\..\..\src\ta_abstract\tables\table_g.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\gen_code\table_g.obj ..\..\..\..\..\src\ta_abstract\tables\table_g.c + +..\..\..\..\..\temp\csd\gen_code\table_h.obj: ..\..\..\..\..\src\ta_abstract\tables\table_h.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\gen_code\table_h.obj ..\..\..\..\..\src\ta_abstract\tables\table_h.c + +..\..\..\..\..\temp\csd\gen_code\table_i.obj: ..\..\..\..\..\src\ta_abstract\tables\table_i.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\gen_code\table_i.obj ..\..\..\..\..\src\ta_abstract\tables\table_i.c + +..\..\..\..\..\temp\csd\gen_code\table_j.obj: ..\..\..\..\..\src\ta_abstract\tables\table_j.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\gen_code\table_j.obj ..\..\..\..\..\src\ta_abstract\tables\table_j.c + +..\..\..\..\..\temp\csd\gen_code\table_k.obj: ..\..\..\..\..\src\ta_abstract\tables\table_k.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\gen_code\table_k.obj ..\..\..\..\..\src\ta_abstract\tables\table_k.c + +..\..\..\..\..\temp\csd\gen_code\table_l.obj: ..\..\..\..\..\src\ta_abstract\tables\table_l.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\gen_code\table_l.obj ..\..\..\..\..\src\ta_abstract\tables\table_l.c + +..\..\..\..\..\temp\csd\gen_code\table_m.obj: ..\..\..\..\..\src\ta_abstract\tables\table_m.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\gen_code\table_m.obj ..\..\..\..\..\src\ta_abstract\tables\table_m.c + +..\..\..\..\..\temp\csd\gen_code\table_n.obj: ..\..\..\..\..\src\ta_abstract\tables\table_n.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\gen_code\table_n.obj ..\..\..\..\..\src\ta_abstract\tables\table_n.c + +..\..\..\..\..\temp\csd\gen_code\table_o.obj: ..\..\..\..\..\src\ta_abstract\tables\table_o.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\gen_code\table_o.obj ..\..\..\..\..\src\ta_abstract\tables\table_o.c + +..\..\..\..\..\temp\csd\gen_code\table_p.obj: ..\..\..\..\..\src\ta_abstract\tables\table_p.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\gen_code\table_p.obj ..\..\..\..\..\src\ta_abstract\tables\table_p.c + +..\..\..\..\..\temp\csd\gen_code\table_q.obj: ..\..\..\..\..\src\ta_abstract\tables\table_q.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\gen_code\table_q.obj ..\..\..\..\..\src\ta_abstract\tables\table_q.c + +..\..\..\..\..\temp\csd\gen_code\table_r.obj: ..\..\..\..\..\src\ta_abstract\tables\table_r.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\gen_code\table_r.obj ..\..\..\..\..\src\ta_abstract\tables\table_r.c + +..\..\..\..\..\temp\csd\gen_code\table_s.obj: ..\..\..\..\..\src\ta_abstract\tables\table_s.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\gen_code\table_s.obj ..\..\..\..\..\src\ta_abstract\tables\table_s.c + +..\..\..\..\..\temp\csd\gen_code\table_t.obj: ..\..\..\..\..\src\ta_abstract\tables\table_t.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\gen_code\table_t.obj ..\..\..\..\..\src\ta_abstract\tables\table_t.c + +..\..\..\..\..\temp\csd\gen_code\table_u.obj: ..\..\..\..\..\src\ta_abstract\tables\table_u.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\gen_code\table_u.obj ..\..\..\..\..\src\ta_abstract\tables\table_u.c + +..\..\..\..\..\temp\csd\gen_code\table_v.obj: ..\..\..\..\..\src\ta_abstract\tables\table_v.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\gen_code\table_v.obj ..\..\..\..\..\src\ta_abstract\tables\table_v.c + +..\..\..\..\..\temp\csd\gen_code\table_w.obj: ..\..\..\..\..\src\ta_abstract\tables\table_w.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\gen_code\table_w.obj ..\..\..\..\..\src\ta_abstract\tables\table_w.c + +..\..\..\..\..\temp\csd\gen_code\table_x.obj: ..\..\..\..\..\src\ta_abstract\tables\table_x.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\gen_code\table_x.obj ..\..\..\..\..\src\ta_abstract\tables\table_x.c + +..\..\..\..\..\temp\csd\gen_code\table_y.obj: ..\..\..\..\..\src\ta_abstract\tables\table_y.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\gen_code\table_y.obj ..\..\..\..\..\src\ta_abstract\tables\table_y.c + +..\..\..\..\..\temp\csd\gen_code\table_z.obj: ..\..\..\..\..\src\ta_abstract\tables\table_z.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\gen_code\table_z.obj ..\..\..\..\..\src\ta_abstract\tables\table_z.c + diff --git a/make/csd/win32/msvc/ta_abstract/Makefile b/make/csd/win32/msvc/ta_abstract/Makefile new file mode 100644 index 000000000..b9b6f89ac --- /dev/null +++ b/make/csd/win32/msvc/ta_abstract/Makefile @@ -0,0 +1,273 @@ +############################################################################# +# Makefile for building ta_abstract_csd +# Generated by tmake; +# Project: ta_abstract/ta_abstract +# Template: lib +############################################################################# + +####### Compiler, tools and options + +CC = cl +CXX = cl +CFLAGS = -nologo -W3 -Zi -DTA_DEBUG -D_DEBUG -DTA_SINGLE_THREAD -DWIN32 -D_MBCS -D_LIB +CXXFLAGS= -nologo -W3 -Zi -DTA_DEBUG -D_DEBUG -DTA_SINGLE_THREAD -DWIN32 -D_MBCS -D_LIB +INCPATH = -I"..\..\..\..\..\src\ta_common" -I"..\..\..\..\..\src\ta_abstract" -I"..\..\..\..\..\src\ta_abstract\tables" -I"..\..\..\..\..\src\ta_abstract\frames" -I"..\..\..\..\..\include" +LIB = lib /NOLOGO +MOC = moc +UIC = uic + +ZIP = zip -r -9 + +####### Files + +HEADERS = +SOURCES = ..\..\..\..\..\src\ta_abstract\ta_abstract.c \ + ..\..\..\..\..\src\ta_abstract\ta_def_ui.c \ + ..\..\..\..\..\src\ta_abstract\ta_func_api.c \ + ..\..\..\..\..\src\ta_abstract\ta_group_idx.c \ + ..\..\..\..\..\src\ta_abstract\frames\ta_frame.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_a.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_b.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_c.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_d.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_e.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_f.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_g.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_h.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_i.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_j.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_k.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_l.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_m.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_n.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_o.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_p.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_q.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_r.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_s.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_t.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_u.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_v.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_w.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_x.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_y.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_z.c +OBJECTS = ..\..\..\..\..\temp\csd\ta_abstract.obj \ + ..\..\..\..\..\temp\csd\ta_def_ui.obj \ + ..\..\..\..\..\temp\csd\ta_func_api.obj \ + ..\..\..\..\..\temp\csd\ta_group_idx.obj \ + ..\..\..\..\..\temp\csd\ta_frame.obj \ + ..\..\..\..\..\temp\csd\table_a.obj \ + ..\..\..\..\..\temp\csd\table_b.obj \ + ..\..\..\..\..\temp\csd\table_c.obj \ + ..\..\..\..\..\temp\csd\table_d.obj \ + ..\..\..\..\..\temp\csd\table_e.obj \ + ..\..\..\..\..\temp\csd\table_f.obj \ + ..\..\..\..\..\temp\csd\table_g.obj \ + ..\..\..\..\..\temp\csd\table_h.obj \ + ..\..\..\..\..\temp\csd\table_i.obj \ + ..\..\..\..\..\temp\csd\table_j.obj \ + ..\..\..\..\..\temp\csd\table_k.obj \ + ..\..\..\..\..\temp\csd\table_l.obj \ + ..\..\..\..\..\temp\csd\table_m.obj \ + ..\..\..\..\..\temp\csd\table_n.obj \ + ..\..\..\..\..\temp\csd\table_o.obj \ + ..\..\..\..\..\temp\csd\table_p.obj \ + ..\..\..\..\..\temp\csd\table_q.obj \ + ..\..\..\..\..\temp\csd\table_r.obj \ + ..\..\..\..\..\temp\csd\table_s.obj \ + ..\..\..\..\..\temp\csd\table_t.obj \ + ..\..\..\..\..\temp\csd\table_u.obj \ + ..\..\..\..\..\temp\csd\table_v.obj \ + ..\..\..\..\..\temp\csd\table_w.obj \ + ..\..\..\..\..\temp\csd\table_x.obj \ + ..\..\..\..\..\temp\csd\table_y.obj \ + ..\..\..\..\..\temp\csd\table_z.obj +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ..\..\..\..\..\lib\ta_abstract_csd.lib +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .c + +.cpp.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $< + +.cxx.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $< + +.cc.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $< + +.c.obj: + $(CC) -c $(CFLAGS) $(INCPATH) -Fo$@ $< + +####### Build rules + +all: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + $(LIB) /OUT:$(TARGET) @<< + $(OBJECTS) $(OBJMOC) +<< + +moc: $(SRCMOC) + +tmake: ../csd/win32/msvc/ta_abstract/Makefile + +../csd/win32/msvc/ta_abstract/Makefile: ta_abstract/ta_abstract.pro + tmake ta_abstract/ta_abstract.pro -o ../csd/win32/msvc/ta_abstract/Makefile + +dist: + $(ZIP) ta_abstract/ta_abstract.zip ta_abstract/ta_abstract.pro $(SOURCES) $(HEADERS) $(DIST) $(INTERFACES) + +clean: + -del ..\..\..\..\..\temp\csd\ta_abstract.obj + -del ..\..\..\..\..\temp\csd\ta_def_ui.obj + -del ..\..\..\..\..\temp\csd\ta_func_api.obj + -del ..\..\..\..\..\temp\csd\ta_group_idx.obj + -del ..\..\..\..\..\temp\csd\ta_frame.obj + -del ..\..\..\..\..\temp\csd\table_a.obj + -del ..\..\..\..\..\temp\csd\table_b.obj + -del ..\..\..\..\..\temp\csd\table_c.obj + -del ..\..\..\..\..\temp\csd\table_d.obj + -del ..\..\..\..\..\temp\csd\table_e.obj + -del ..\..\..\..\..\temp\csd\table_f.obj + -del ..\..\..\..\..\temp\csd\table_g.obj + -del ..\..\..\..\..\temp\csd\table_h.obj + -del ..\..\..\..\..\temp\csd\table_i.obj + -del ..\..\..\..\..\temp\csd\table_j.obj + -del ..\..\..\..\..\temp\csd\table_k.obj + -del ..\..\..\..\..\temp\csd\table_l.obj + -del ..\..\..\..\..\temp\csd\table_m.obj + -del ..\..\..\..\..\temp\csd\table_n.obj + -del ..\..\..\..\..\temp\csd\table_o.obj + -del ..\..\..\..\..\temp\csd\table_p.obj + -del ..\..\..\..\..\temp\csd\table_q.obj + -del ..\..\..\..\..\temp\csd\table_r.obj + -del ..\..\..\..\..\temp\csd\table_s.obj + -del ..\..\..\..\..\temp\csd\table_t.obj + -del ..\..\..\..\..\temp\csd\table_u.obj + -del ..\..\..\..\..\temp\csd\table_v.obj + -del ..\..\..\..\..\temp\csd\table_w.obj + -del ..\..\..\..\..\temp\csd\table_x.obj + -del ..\..\..\..\..\temp\csd\table_y.obj + -del ..\..\..\..\..\temp\csd\table_z.obj + -del $(TARGET) + -del ../../../../../bin/*.map + -del ../../../../../bin/*._xe + -del ../../../../../bin/*.tds + -del ../../../../../bin/*.pdb + -del ../../../../../bin/*.pbo + -del ../../../../../bin/*.pbi + -del ../../../../../bin/*.pbt + -del ../../../../../temp/csd/*.pch + -del ../../../../../temp/csd/*.idb + -del ../../../../../temp/csd/ta_abstract/*.pch + -del ../../../../../temp/csd/ta_abstract/*.idb + -del ../../../../../temp/csd/ta_abstract/*.obj + -del ta_abstract_csd.pdb + -del vc*.pdb + -del ta_abstract_csd.ilk + +####### Compile + +..\..\..\..\..\temp\csd\ta_abstract.obj: ..\..\..\..\..\src\ta_abstract\ta_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_abstract.obj ..\..\..\..\..\src\ta_abstract\ta_abstract.c + +..\..\..\..\..\temp\csd\ta_def_ui.obj: ..\..\..\..\..\src\ta_abstract\ta_def_ui.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_def_ui.obj ..\..\..\..\..\src\ta_abstract\ta_def_ui.c + +..\..\..\..\..\temp\csd\ta_func_api.obj: ..\..\..\..\..\src\ta_abstract\ta_func_api.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_func_api.obj ..\..\..\..\..\src\ta_abstract\ta_func_api.c + +..\..\..\..\..\temp\csd\ta_group_idx.obj: ..\..\..\..\..\src\ta_abstract\ta_group_idx.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_group_idx.obj ..\..\..\..\..\src\ta_abstract\ta_group_idx.c + +..\..\..\..\..\temp\csd\ta_frame.obj: ..\..\..\..\..\src\ta_abstract\frames\ta_frame.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_frame.obj ..\..\..\..\..\src\ta_abstract\frames\ta_frame.c + +..\..\..\..\..\temp\csd\table_a.obj: ..\..\..\..\..\src\ta_abstract\tables\table_a.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\table_a.obj ..\..\..\..\..\src\ta_abstract\tables\table_a.c + +..\..\..\..\..\temp\csd\table_b.obj: ..\..\..\..\..\src\ta_abstract\tables\table_b.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\table_b.obj ..\..\..\..\..\src\ta_abstract\tables\table_b.c + +..\..\..\..\..\temp\csd\table_c.obj: ..\..\..\..\..\src\ta_abstract\tables\table_c.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\table_c.obj ..\..\..\..\..\src\ta_abstract\tables\table_c.c + +..\..\..\..\..\temp\csd\table_d.obj: ..\..\..\..\..\src\ta_abstract\tables\table_d.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\table_d.obj ..\..\..\..\..\src\ta_abstract\tables\table_d.c + +..\..\..\..\..\temp\csd\table_e.obj: ..\..\..\..\..\src\ta_abstract\tables\table_e.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\table_e.obj ..\..\..\..\..\src\ta_abstract\tables\table_e.c + +..\..\..\..\..\temp\csd\table_f.obj: ..\..\..\..\..\src\ta_abstract\tables\table_f.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\table_f.obj ..\..\..\..\..\src\ta_abstract\tables\table_f.c + +..\..\..\..\..\temp\csd\table_g.obj: ..\..\..\..\..\src\ta_abstract\tables\table_g.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\table_g.obj ..\..\..\..\..\src\ta_abstract\tables\table_g.c + +..\..\..\..\..\temp\csd\table_h.obj: ..\..\..\..\..\src\ta_abstract\tables\table_h.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\table_h.obj ..\..\..\..\..\src\ta_abstract\tables\table_h.c + +..\..\..\..\..\temp\csd\table_i.obj: ..\..\..\..\..\src\ta_abstract\tables\table_i.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\table_i.obj ..\..\..\..\..\src\ta_abstract\tables\table_i.c + +..\..\..\..\..\temp\csd\table_j.obj: ..\..\..\..\..\src\ta_abstract\tables\table_j.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\table_j.obj ..\..\..\..\..\src\ta_abstract\tables\table_j.c + +..\..\..\..\..\temp\csd\table_k.obj: ..\..\..\..\..\src\ta_abstract\tables\table_k.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\table_k.obj ..\..\..\..\..\src\ta_abstract\tables\table_k.c + +..\..\..\..\..\temp\csd\table_l.obj: ..\..\..\..\..\src\ta_abstract\tables\table_l.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\table_l.obj ..\..\..\..\..\src\ta_abstract\tables\table_l.c + +..\..\..\..\..\temp\csd\table_m.obj: ..\..\..\..\..\src\ta_abstract\tables\table_m.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\table_m.obj ..\..\..\..\..\src\ta_abstract\tables\table_m.c + +..\..\..\..\..\temp\csd\table_n.obj: ..\..\..\..\..\src\ta_abstract\tables\table_n.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\table_n.obj ..\..\..\..\..\src\ta_abstract\tables\table_n.c + +..\..\..\..\..\temp\csd\table_o.obj: ..\..\..\..\..\src\ta_abstract\tables\table_o.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\table_o.obj ..\..\..\..\..\src\ta_abstract\tables\table_o.c + +..\..\..\..\..\temp\csd\table_p.obj: ..\..\..\..\..\src\ta_abstract\tables\table_p.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\table_p.obj ..\..\..\..\..\src\ta_abstract\tables\table_p.c + +..\..\..\..\..\temp\csd\table_q.obj: ..\..\..\..\..\src\ta_abstract\tables\table_q.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\table_q.obj ..\..\..\..\..\src\ta_abstract\tables\table_q.c + +..\..\..\..\..\temp\csd\table_r.obj: ..\..\..\..\..\src\ta_abstract\tables\table_r.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\table_r.obj ..\..\..\..\..\src\ta_abstract\tables\table_r.c + +..\..\..\..\..\temp\csd\table_s.obj: ..\..\..\..\..\src\ta_abstract\tables\table_s.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\table_s.obj ..\..\..\..\..\src\ta_abstract\tables\table_s.c + +..\..\..\..\..\temp\csd\table_t.obj: ..\..\..\..\..\src\ta_abstract\tables\table_t.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\table_t.obj ..\..\..\..\..\src\ta_abstract\tables\table_t.c + +..\..\..\..\..\temp\csd\table_u.obj: ..\..\..\..\..\src\ta_abstract\tables\table_u.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\table_u.obj ..\..\..\..\..\src\ta_abstract\tables\table_u.c + +..\..\..\..\..\temp\csd\table_v.obj: ..\..\..\..\..\src\ta_abstract\tables\table_v.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\table_v.obj ..\..\..\..\..\src\ta_abstract\tables\table_v.c + +..\..\..\..\..\temp\csd\table_w.obj: ..\..\..\..\..\src\ta_abstract\tables\table_w.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\table_w.obj ..\..\..\..\..\src\ta_abstract\tables\table_w.c + +..\..\..\..\..\temp\csd\table_x.obj: ..\..\..\..\..\src\ta_abstract\tables\table_x.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\table_x.obj ..\..\..\..\..\src\ta_abstract\tables\table_x.c + +..\..\..\..\..\temp\csd\table_y.obj: ..\..\..\..\..\src\ta_abstract\tables\table_y.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\table_y.obj ..\..\..\..\..\src\ta_abstract\tables\table_y.c + +..\..\..\..\..\temp\csd\table_z.obj: ..\..\..\..\..\src\ta_abstract\tables\table_z.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\table_z.obj ..\..\..\..\..\src\ta_abstract\tables\table_z.c + diff --git a/make/csd/win32/msvc/ta_common/Makefile b/make/csd/win32/msvc/ta_common/Makefile new file mode 100644 index 000000000..7ecf1d635 --- /dev/null +++ b/make/csd/win32/msvc/ta_common/Makefile @@ -0,0 +1,105 @@ +############################################################################# +# Makefile for building ta_common_csd +# Generated by tmake; +# Project: ta_common/ta_common +# Template: lib +############################################################################# + +####### Compiler, tools and options + +CC = cl +CXX = cl +CFLAGS = -nologo -W3 -Zi -DTA_DEBUG -D_DEBUG -DTA_SINGLE_THREAD -DWIN32 -D_MBCS -D_LIB +CXXFLAGS= -nologo -W3 -Zi -DTA_DEBUG -D_DEBUG -DTA_SINGLE_THREAD -DWIN32 -D_MBCS -D_LIB +INCPATH = -I"..\..\..\..\..\src\ta_common" -I"..\..\..\..\..\include" +LIB = lib /NOLOGO +MOC = moc +UIC = uic + +ZIP = zip -r -9 + +####### Files + +HEADERS = +SOURCES = ..\..\..\..\..\src\ta_common\ta_global.c \ + ..\..\..\..\..\src\ta_common\ta_retcode.c \ + ..\..\..\..\..\src\ta_common\ta_version.c +OBJECTS = ..\..\..\..\..\temp\csd\ta_global.obj \ + ..\..\..\..\..\temp\csd\ta_retcode.obj \ + ..\..\..\..\..\temp\csd\ta_version.obj +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ..\..\..\..\..\lib\ta_common_csd.lib +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .c + +.cpp.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $< + +.cxx.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $< + +.cc.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $< + +.c.obj: + $(CC) -c $(CFLAGS) $(INCPATH) -Fo$@ $< + +####### Build rules + +all: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + $(LIB) /OUT:$(TARGET) @<< + $(OBJECTS) $(OBJMOC) +<< + +moc: $(SRCMOC) + +tmake: ../csd/win32/msvc/ta_common/Makefile + +../csd/win32/msvc/ta_common/Makefile: ta_common/ta_common.pro + tmake ta_common/ta_common.pro -o ../csd/win32/msvc/ta_common/Makefile + +dist: + $(ZIP) ta_common/ta_common.zip ta_common/ta_common.pro $(SOURCES) $(HEADERS) $(DIST) $(INTERFACES) + +clean: + -del ..\..\..\..\..\temp\csd\ta_global.obj + -del ..\..\..\..\..\temp\csd\ta_retcode.obj + -del ..\..\..\..\..\temp\csd\ta_version.obj + -del $(TARGET) + -del ../../../../../bin/*.map + -del ../../../../../bin/*._xe + -del ../../../../../bin/*.tds + -del ../../../../../bin/*.pdb + -del ../../../../../bin/*.pbo + -del ../../../../../bin/*.pbi + -del ../../../../../bin/*.pbt + -del ../../../../../temp/csd/*.pch + -del ../../../../../temp/csd/*.idb + -del ../../../../../temp/csd/ta_common_csd/*.pch + -del ../../../../../temp/csd/ta_common_csd/*.idb + -del ../../../../../temp/csd/ta_common_csd/*.obj + -del ta_common_csd.pdb + -del vc*.pdb + -del ta_common_csd.ilk + +####### Compile + +..\..\..\..\..\temp\csd\ta_global.obj: ..\..\..\..\..\src\ta_common\ta_global.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_global.obj ..\..\..\..\..\src\ta_common\ta_global.c + +..\..\..\..\..\temp\csd\ta_retcode.obj: ..\..\..\..\..\src\ta_common\ta_retcode.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_retcode.obj ..\..\..\..\..\src\ta_common\ta_retcode.c + +..\..\..\..\..\temp\csd\ta_version.obj: ..\..\..\..\..\src\ta_common\ta_version.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_version.obj ..\..\..\..\..\src\ta_common\ta_version.c + diff --git a/make/csd/win32/msvc/ta_func/Makefile b/make/csd/win32/msvc/ta_func/Makefile new file mode 100644 index 000000000..50cbfd938 --- /dev/null +++ b/make/csd/win32/msvc/ta_func/Makefile @@ -0,0 +1,1041 @@ +############################################################################# +# Makefile for building ta_func_csd +# Generated by tmake; +# Project: ta_func/ta_func +# Template: lib +############################################################################# + +####### Compiler, tools and options + +CC = cl +CXX = cl +CFLAGS = -nologo -W3 -Zi -DTA_DEBUG -D_DEBUG -DTA_SINGLE_THREAD -DWIN32 -D_MBCS -D_LIB +CXXFLAGS= -nologo -W3 -Zi -DTA_DEBUG -D_DEBUG -DTA_SINGLE_THREAD -DWIN32 -D_MBCS -D_LIB +INCPATH = -I"..\..\..\..\..\src\ta_common" -I"\n" -I"..\..\..\..\..\include" +LIB = lib /NOLOGO +MOC = moc +UIC = uic + +ZIP = zip -r -9 + +####### Files + +HEADERS = +SOURCES = ..\..\..\..\..\src\ta_func\ta_utility.c \ + ..\..\..\..\..\src\ta_func\ta_ACOS.c \ + ..\..\..\..\..\src\ta_func\ta_AD.c \ + ..\..\..\..\..\src\ta_func\ta_ADD.c \ + ..\..\..\..\..\src\ta_func\ta_ADOSC.c \ + ..\..\..\..\..\src\ta_func\ta_ADX.c \ + ..\..\..\..\..\src\ta_func\ta_ADXR.c \ + ..\..\..\..\..\src\ta_func\ta_APO.c \ + ..\..\..\..\..\src\ta_func\ta_AROON.c \ + ..\..\..\..\..\src\ta_func\ta_AROONOSC.c \ + ..\..\..\..\..\src\ta_func\ta_ASIN.c \ + ..\..\..\..\..\src\ta_func\ta_ATAN.c \ + ..\..\..\..\..\src\ta_func\ta_ATR.c \ + ..\..\..\..\..\src\ta_func\ta_AVGPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_BBANDS.c \ + ..\..\..\..\..\src\ta_func\ta_BETA.c \ + ..\..\..\..\..\src\ta_func\ta_BOP.c \ + ..\..\..\..\..\src\ta_func\ta_CCI.c \ + ..\..\..\..\..\src\ta_func\ta_CDL2CROWS.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3BLACKCROWS.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3INSIDE.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3LINESTRIKE.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3OUTSIDE.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3STARSINSOUTH.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3WHITESOLDIERS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLABANDONEDBABY.c \ + ..\..\..\..\..\src\ta_func\ta_CDLADVANCEBLOCK.c \ + ..\..\..\..\..\src\ta_func\ta_CDLBELTHOLD.c \ + ..\..\..\..\..\src\ta_func\ta_CDLBREAKAWAY.c \ + ..\..\..\..\..\src\ta_func\ta_CDLCLOSINGMARUBOZU.c \ + ..\..\..\..\..\src\ta_func\ta_CDLCONCEALBABYSWALL.c \ + ..\..\..\..\..\src\ta_func\ta_CDLCOUNTERATTACK.c \ + ..\..\..\..\..\src\ta_func\ta_CDLDARKCLOUDCOVER.c \ + ..\..\..\..\..\src\ta_func\ta_CDLDOJI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLDOJISTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLDRAGONFLYDOJI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLENGULFING.c \ + ..\..\..\..\..\src\ta_func\ta_CDLEVENINGDOJISTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLEVENINGSTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLGAPSIDESIDEWHITE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLGRAVESTONEDOJI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHAMMER.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHANGINGMAN.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHARAMI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHARAMICROSS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHIGHWAVE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKEMOD.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHOMINGPIGEON.c \ + ..\..\..\..\..\src\ta_func\ta_CDLIDENTICAL3CROWS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLINNECK.c \ + ..\..\..\..\..\src\ta_func\ta_CDLINVERTEDHAMMER.c \ + ..\..\..\..\..\src\ta_func\ta_CDLKICKING.c \ + ..\..\..\..\..\src\ta_func\ta_CDLKICKINGBYLENGTH.c \ + ..\..\..\..\..\src\ta_func\ta_CDLLADDERBOTTOM.c \ + ..\..\..\..\..\src\ta_func\ta_CDLLONGLEGGEDDOJI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLLONGLINE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMARUBOZU.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMATCHINGLOW.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMATHOLD.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMORNINGDOJISTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMORNINGSTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLONNECK.c \ + ..\..\..\..\..\src\ta_func\ta_CDLPIERCING.c \ + ..\..\..\..\..\src\ta_func\ta_CDLRICKSHAWMAN.c \ + ..\..\..\..\..\src\ta_func\ta_CDLRISEFALL3METHODS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSEPARATINGLINES.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSHOOTINGSTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSHORTLINE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSPINNINGTOP.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSTALLEDPATTERN.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSTICKSANDWICH.c \ + ..\..\..\..\..\src\ta_func\ta_CDLTAKURI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLTASUKIGAP.c \ + ..\..\..\..\..\src\ta_func\ta_CDLTHRUSTING.c \ + ..\..\..\..\..\src\ta_func\ta_CDLTRISTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLUNIQUE3RIVER.c \ + ..\..\..\..\..\src\ta_func\ta_CDLUPSIDEGAP2CROWS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLXSIDEGAP3METHODS.c \ + ..\..\..\..\..\src\ta_func\ta_CEIL.c \ + ..\..\..\..\..\src\ta_func\ta_CMO.c \ + ..\..\..\..\..\src\ta_func\ta_CORREL.c \ + ..\..\..\..\..\src\ta_func\ta_COS.c \ + ..\..\..\..\..\src\ta_func\ta_COSH.c \ + ..\..\..\..\..\src\ta_func\ta_DEMA.c \ + ..\..\..\..\..\src\ta_func\ta_DIV.c \ + ..\..\..\..\..\src\ta_func\ta_DX.c \ + ..\..\..\..\..\src\ta_func\ta_EMA.c \ + ..\..\..\..\..\src\ta_func\ta_EXP.c \ + ..\..\..\..\..\src\ta_func\ta_FLOOR.c \ + ..\..\..\..\..\src\ta_func\ta_HT_DCPERIOD.c \ + ..\..\..\..\..\src\ta_func\ta_HT_DCPHASE.c \ + ..\..\..\..\..\src\ta_func\ta_HT_PHASOR.c \ + ..\..\..\..\..\src\ta_func\ta_HT_SINE.c \ + ..\..\..\..\..\src\ta_func\ta_HT_TRENDLINE.c \ + ..\..\..\..\..\src\ta_func\ta_HT_TRENDMODE.c \ + ..\..\..\..\..\src\ta_func\ta_KAMA.c \ + ..\..\..\..\..\src\ta_func\ta_LINEARREG.c \ + ..\..\..\..\..\src\ta_func\ta_LINEARREG_ANGLE.c \ + ..\..\..\..\..\src\ta_func\ta_LINEARREG_INTERCEPT.c \ + ..\..\..\..\..\src\ta_func\ta_LINEARREG_SLOPE.c \ + ..\..\..\..\..\src\ta_func\ta_LN.c \ + ..\..\..\..\..\src\ta_func\ta_LOG10.c \ + ..\..\..\..\..\src\ta_func\ta_MA.c \ + ..\..\..\..\..\src\ta_func\ta_MACD.c \ + ..\..\..\..\..\src\ta_func\ta_MACDEXT.c \ + ..\..\..\..\..\src\ta_func\ta_MACDFIX.c \ + ..\..\..\..\..\src\ta_func\ta_MAMA.c \ + ..\..\..\..\..\src\ta_func\ta_MAVP.c \ + ..\..\..\..\..\src\ta_func\ta_MAX.c \ + ..\..\..\..\..\src\ta_func\ta_MAXINDEX.c \ + ..\..\..\..\..\src\ta_func\ta_MEDPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_MFI.c \ + ..\..\..\..\..\src\ta_func\ta_MIDPOINT.c \ + ..\..\..\..\..\src\ta_func\ta_MIDPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_MIN.c \ + ..\..\..\..\..\src\ta_func\ta_MININDEX.c \ + ..\..\..\..\..\src\ta_func\ta_MINMAX.c \ + ..\..\..\..\..\src\ta_func\ta_MINMAXINDEX.c \ + ..\..\..\..\..\src\ta_func\ta_MINUS_DI.c \ + ..\..\..\..\..\src\ta_func\ta_MINUS_DM.c \ + ..\..\..\..\..\src\ta_func\ta_MOM.c \ + ..\..\..\..\..\src\ta_func\ta_MULT.c \ + ..\..\..\..\..\src\ta_func\ta_NATR.c \ + ..\..\..\..\..\src\ta_func\ta_OBV.c \ + ..\..\..\..\..\src\ta_func\ta_PLUS_DI.c \ + ..\..\..\..\..\src\ta_func\ta_PLUS_DM.c \ + ..\..\..\..\..\src\ta_func\ta_PPO.c \ + ..\..\..\..\..\src\ta_func\ta_ROC.c \ + ..\..\..\..\..\src\ta_func\ta_ROCP.c \ + ..\..\..\..\..\src\ta_func\ta_ROCR.c \ + ..\..\..\..\..\src\ta_func\ta_ROCR100.c \ + ..\..\..\..\..\src\ta_func\ta_RSI.c \ + ..\..\..\..\..\src\ta_func\ta_SAR.c \ + ..\..\..\..\..\src\ta_func\ta_SAREXT.c \ + ..\..\..\..\..\src\ta_func\ta_SIN.c \ + ..\..\..\..\..\src\ta_func\ta_SINH.c \ + ..\..\..\..\..\src\ta_func\ta_SMA.c \ + ..\..\..\..\..\src\ta_func\ta_SQRT.c \ + ..\..\..\..\..\src\ta_func\ta_STDDEV.c \ + ..\..\..\..\..\src\ta_func\ta_STOCH.c \ + ..\..\..\..\..\src\ta_func\ta_STOCHF.c \ + ..\..\..\..\..\src\ta_func\ta_STOCHRSI.c \ + ..\..\..\..\..\src\ta_func\ta_SUB.c \ + ..\..\..\..\..\src\ta_func\ta_SUM.c \ + ..\..\..\..\..\src\ta_func\ta_T3.c \ + ..\..\..\..\..\src\ta_func\ta_TAN.c \ + ..\..\..\..\..\src\ta_func\ta_TANH.c \ + ..\..\..\..\..\src\ta_func\ta_TEMA.c \ + ..\..\..\..\..\src\ta_func\ta_TRANGE.c \ + ..\..\..\..\..\src\ta_func\ta_TRIMA.c \ + ..\..\..\..\..\src\ta_func\ta_TRIX.c \ + ..\..\..\..\..\src\ta_func\ta_TSF.c \ + ..\..\..\..\..\src\ta_func\ta_TYPPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_ULTOSC.c \ + ..\..\..\..\..\src\ta_func\ta_VAR.c \ + ..\..\..\..\..\src\ta_func\ta_WCLPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_WILLR.c \ + ..\..\..\..\..\src\ta_func\ta_WMA.c +OBJECTS = ..\..\..\..\..\temp\csd\ta_utility.obj \ + ..\..\..\..\..\temp\csd\ta_ACOS.obj \ + ..\..\..\..\..\temp\csd\ta_AD.obj \ + ..\..\..\..\..\temp\csd\ta_ADD.obj \ + ..\..\..\..\..\temp\csd\ta_ADOSC.obj \ + ..\..\..\..\..\temp\csd\ta_ADX.obj \ + ..\..\..\..\..\temp\csd\ta_ADXR.obj \ + ..\..\..\..\..\temp\csd\ta_APO.obj \ + ..\..\..\..\..\temp\csd\ta_AROON.obj \ + ..\..\..\..\..\temp\csd\ta_AROONOSC.obj \ + ..\..\..\..\..\temp\csd\ta_ASIN.obj \ + ..\..\..\..\..\temp\csd\ta_ATAN.obj \ + ..\..\..\..\..\temp\csd\ta_ATR.obj \ + ..\..\..\..\..\temp\csd\ta_AVGPRICE.obj \ + ..\..\..\..\..\temp\csd\ta_BBANDS.obj \ + ..\..\..\..\..\temp\csd\ta_BETA.obj \ + ..\..\..\..\..\temp\csd\ta_BOP.obj \ + ..\..\..\..\..\temp\csd\ta_CCI.obj \ + ..\..\..\..\..\temp\csd\ta_CDL2CROWS.obj \ + ..\..\..\..\..\temp\csd\ta_CDL3BLACKCROWS.obj \ + ..\..\..\..\..\temp\csd\ta_CDL3INSIDE.obj \ + ..\..\..\..\..\temp\csd\ta_CDL3LINESTRIKE.obj \ + ..\..\..\..\..\temp\csd\ta_CDL3OUTSIDE.obj \ + ..\..\..\..\..\temp\csd\ta_CDL3STARSINSOUTH.obj \ + ..\..\..\..\..\temp\csd\ta_CDL3WHITESOLDIERS.obj \ + ..\..\..\..\..\temp\csd\ta_CDLABANDONEDBABY.obj \ + ..\..\..\..\..\temp\csd\ta_CDLADVANCEBLOCK.obj \ + ..\..\..\..\..\temp\csd\ta_CDLBELTHOLD.obj \ + ..\..\..\..\..\temp\csd\ta_CDLBREAKAWAY.obj \ + ..\..\..\..\..\temp\csd\ta_CDLCLOSINGMARUBOZU.obj \ + ..\..\..\..\..\temp\csd\ta_CDLCONCEALBABYSWALL.obj \ + ..\..\..\..\..\temp\csd\ta_CDLCOUNTERATTACK.obj \ + ..\..\..\..\..\temp\csd\ta_CDLDARKCLOUDCOVER.obj \ + ..\..\..\..\..\temp\csd\ta_CDLDOJI.obj \ + ..\..\..\..\..\temp\csd\ta_CDLDOJISTAR.obj \ + ..\..\..\..\..\temp\csd\ta_CDLDRAGONFLYDOJI.obj \ + ..\..\..\..\..\temp\csd\ta_CDLENGULFING.obj \ + ..\..\..\..\..\temp\csd\ta_CDLEVENINGDOJISTAR.obj \ + ..\..\..\..\..\temp\csd\ta_CDLEVENINGSTAR.obj \ + ..\..\..\..\..\temp\csd\ta_CDLGAPSIDESIDEWHITE.obj \ + ..\..\..\..\..\temp\csd\ta_CDLGRAVESTONEDOJI.obj \ + ..\..\..\..\..\temp\csd\ta_CDLHAMMER.obj \ + ..\..\..\..\..\temp\csd\ta_CDLHANGINGMAN.obj \ + ..\..\..\..\..\temp\csd\ta_CDLHARAMI.obj \ + ..\..\..\..\..\temp\csd\ta_CDLHARAMICROSS.obj \ + ..\..\..\..\..\temp\csd\ta_CDLHIGHWAVE.obj \ + ..\..\..\..\..\temp\csd\ta_CDLHIKKAKE.obj \ + ..\..\..\..\..\temp\csd\ta_CDLHIKKAKEMOD.obj \ + ..\..\..\..\..\temp\csd\ta_CDLHOMINGPIGEON.obj \ + ..\..\..\..\..\temp\csd\ta_CDLIDENTICAL3CROWS.obj \ + ..\..\..\..\..\temp\csd\ta_CDLINNECK.obj \ + ..\..\..\..\..\temp\csd\ta_CDLINVERTEDHAMMER.obj \ + ..\..\..\..\..\temp\csd\ta_CDLKICKING.obj \ + ..\..\..\..\..\temp\csd\ta_CDLKICKINGBYLENGTH.obj \ + ..\..\..\..\..\temp\csd\ta_CDLLADDERBOTTOM.obj \ + ..\..\..\..\..\temp\csd\ta_CDLLONGLEGGEDDOJI.obj \ + ..\..\..\..\..\temp\csd\ta_CDLLONGLINE.obj \ + ..\..\..\..\..\temp\csd\ta_CDLMARUBOZU.obj \ + ..\..\..\..\..\temp\csd\ta_CDLMATCHINGLOW.obj \ + ..\..\..\..\..\temp\csd\ta_CDLMATHOLD.obj \ + ..\..\..\..\..\temp\csd\ta_CDLMORNINGDOJISTAR.obj \ + ..\..\..\..\..\temp\csd\ta_CDLMORNINGSTAR.obj \ + ..\..\..\..\..\temp\csd\ta_CDLONNECK.obj \ + ..\..\..\..\..\temp\csd\ta_CDLPIERCING.obj \ + ..\..\..\..\..\temp\csd\ta_CDLRICKSHAWMAN.obj \ + ..\..\..\..\..\temp\csd\ta_CDLRISEFALL3METHODS.obj \ + ..\..\..\..\..\temp\csd\ta_CDLSEPARATINGLINES.obj \ + ..\..\..\..\..\temp\csd\ta_CDLSHOOTINGSTAR.obj \ + ..\..\..\..\..\temp\csd\ta_CDLSHORTLINE.obj \ + ..\..\..\..\..\temp\csd\ta_CDLSPINNINGTOP.obj \ + ..\..\..\..\..\temp\csd\ta_CDLSTALLEDPATTERN.obj \ + ..\..\..\..\..\temp\csd\ta_CDLSTICKSANDWICH.obj \ + ..\..\..\..\..\temp\csd\ta_CDLTAKURI.obj \ + ..\..\..\..\..\temp\csd\ta_CDLTASUKIGAP.obj \ + ..\..\..\..\..\temp\csd\ta_CDLTHRUSTING.obj \ + ..\..\..\..\..\temp\csd\ta_CDLTRISTAR.obj \ + ..\..\..\..\..\temp\csd\ta_CDLUNIQUE3RIVER.obj \ + ..\..\..\..\..\temp\csd\ta_CDLUPSIDEGAP2CROWS.obj \ + ..\..\..\..\..\temp\csd\ta_CDLXSIDEGAP3METHODS.obj \ + ..\..\..\..\..\temp\csd\ta_CEIL.obj \ + ..\..\..\..\..\temp\csd\ta_CMO.obj \ + ..\..\..\..\..\temp\csd\ta_CORREL.obj \ + ..\..\..\..\..\temp\csd\ta_COS.obj \ + ..\..\..\..\..\temp\csd\ta_COSH.obj \ + ..\..\..\..\..\temp\csd\ta_DEMA.obj \ + ..\..\..\..\..\temp\csd\ta_DIV.obj \ + ..\..\..\..\..\temp\csd\ta_DX.obj \ + ..\..\..\..\..\temp\csd\ta_EMA.obj \ + ..\..\..\..\..\temp\csd\ta_EXP.obj \ + ..\..\..\..\..\temp\csd\ta_FLOOR.obj \ + ..\..\..\..\..\temp\csd\ta_HT_DCPERIOD.obj \ + ..\..\..\..\..\temp\csd\ta_HT_DCPHASE.obj \ + ..\..\..\..\..\temp\csd\ta_HT_PHASOR.obj \ + ..\..\..\..\..\temp\csd\ta_HT_SINE.obj \ + ..\..\..\..\..\temp\csd\ta_HT_TRENDLINE.obj \ + ..\..\..\..\..\temp\csd\ta_HT_TRENDMODE.obj \ + ..\..\..\..\..\temp\csd\ta_KAMA.obj \ + ..\..\..\..\..\temp\csd\ta_LINEARREG.obj \ + ..\..\..\..\..\temp\csd\ta_LINEARREG_ANGLE.obj \ + ..\..\..\..\..\temp\csd\ta_LINEARREG_INTERCEPT.obj \ + ..\..\..\..\..\temp\csd\ta_LINEARREG_SLOPE.obj \ + ..\..\..\..\..\temp\csd\ta_LN.obj \ + ..\..\..\..\..\temp\csd\ta_LOG10.obj \ + ..\..\..\..\..\temp\csd\ta_MA.obj \ + ..\..\..\..\..\temp\csd\ta_MACD.obj \ + ..\..\..\..\..\temp\csd\ta_MACDEXT.obj \ + ..\..\..\..\..\temp\csd\ta_MACDFIX.obj \ + ..\..\..\..\..\temp\csd\ta_MAMA.obj \ + ..\..\..\..\..\temp\csd\ta_MAVP.obj \ + ..\..\..\..\..\temp\csd\ta_MAX.obj \ + ..\..\..\..\..\temp\csd\ta_MAXINDEX.obj \ + ..\..\..\..\..\temp\csd\ta_MEDPRICE.obj \ + ..\..\..\..\..\temp\csd\ta_MFI.obj \ + ..\..\..\..\..\temp\csd\ta_MIDPOINT.obj \ + ..\..\..\..\..\temp\csd\ta_MIDPRICE.obj \ + ..\..\..\..\..\temp\csd\ta_MIN.obj \ + ..\..\..\..\..\temp\csd\ta_MININDEX.obj \ + ..\..\..\..\..\temp\csd\ta_MINMAX.obj \ + ..\..\..\..\..\temp\csd\ta_MINMAXINDEX.obj \ + ..\..\..\..\..\temp\csd\ta_MINUS_DI.obj \ + ..\..\..\..\..\temp\csd\ta_MINUS_DM.obj \ + ..\..\..\..\..\temp\csd\ta_MOM.obj \ + ..\..\..\..\..\temp\csd\ta_MULT.obj \ + ..\..\..\..\..\temp\csd\ta_NATR.obj \ + ..\..\..\..\..\temp\csd\ta_OBV.obj \ + ..\..\..\..\..\temp\csd\ta_PLUS_DI.obj \ + ..\..\..\..\..\temp\csd\ta_PLUS_DM.obj \ + ..\..\..\..\..\temp\csd\ta_PPO.obj \ + ..\..\..\..\..\temp\csd\ta_ROC.obj \ + ..\..\..\..\..\temp\csd\ta_ROCP.obj \ + ..\..\..\..\..\temp\csd\ta_ROCR.obj \ + ..\..\..\..\..\temp\csd\ta_ROCR100.obj \ + ..\..\..\..\..\temp\csd\ta_RSI.obj \ + ..\..\..\..\..\temp\csd\ta_SAR.obj \ + ..\..\..\..\..\temp\csd\ta_SAREXT.obj \ + ..\..\..\..\..\temp\csd\ta_SIN.obj \ + ..\..\..\..\..\temp\csd\ta_SINH.obj \ + ..\..\..\..\..\temp\csd\ta_SMA.obj \ + ..\..\..\..\..\temp\csd\ta_SQRT.obj \ + ..\..\..\..\..\temp\csd\ta_STDDEV.obj \ + ..\..\..\..\..\temp\csd\ta_STOCH.obj \ + ..\..\..\..\..\temp\csd\ta_STOCHF.obj \ + ..\..\..\..\..\temp\csd\ta_STOCHRSI.obj \ + ..\..\..\..\..\temp\csd\ta_SUB.obj \ + ..\..\..\..\..\temp\csd\ta_SUM.obj \ + ..\..\..\..\..\temp\csd\ta_T3.obj \ + ..\..\..\..\..\temp\csd\ta_TAN.obj \ + ..\..\..\..\..\temp\csd\ta_TANH.obj \ + ..\..\..\..\..\temp\csd\ta_TEMA.obj \ + ..\..\..\..\..\temp\csd\ta_TRANGE.obj \ + ..\..\..\..\..\temp\csd\ta_TRIMA.obj \ + ..\..\..\..\..\temp\csd\ta_TRIX.obj \ + ..\..\..\..\..\temp\csd\ta_TSF.obj \ + ..\..\..\..\..\temp\csd\ta_TYPPRICE.obj \ + ..\..\..\..\..\temp\csd\ta_ULTOSC.obj \ + ..\..\..\..\..\temp\csd\ta_VAR.obj \ + ..\..\..\..\..\temp\csd\ta_WCLPRICE.obj \ + ..\..\..\..\..\temp\csd\ta_WILLR.obj \ + ..\..\..\..\..\temp\csd\ta_WMA.obj +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ..\..\..\..\..\lib\ta_func_csd.lib +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .c + +.cpp.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $< + +.cxx.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $< + +.cc.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $< + +.c.obj: + $(CC) -c $(CFLAGS) $(INCPATH) -Fo$@ $< + +####### Build rules + +all: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + $(LIB) /OUT:$(TARGET) @<< + $(OBJECTS) $(OBJMOC) +<< + +moc: $(SRCMOC) + +tmake: ../csd/win32/msvc/ta_func/Makefile + +../csd/win32/msvc/ta_func/Makefile: ta_func/ta_func.pro + tmake ta_func/ta_func.pro -o ../csd/win32/msvc/ta_func/Makefile + +dist: + $(ZIP) ta_func/ta_func.zip ta_func/ta_func.pro $(SOURCES) $(HEADERS) $(DIST) $(INTERFACES) + +clean: + -del ..\..\..\..\..\temp\csd\ta_utility.obj + -del ..\..\..\..\..\temp\csd\ta_ACOS.obj + -del ..\..\..\..\..\temp\csd\ta_AD.obj + -del ..\..\..\..\..\temp\csd\ta_ADD.obj + -del ..\..\..\..\..\temp\csd\ta_ADOSC.obj + -del ..\..\..\..\..\temp\csd\ta_ADX.obj + -del ..\..\..\..\..\temp\csd\ta_ADXR.obj + -del ..\..\..\..\..\temp\csd\ta_APO.obj + -del ..\..\..\..\..\temp\csd\ta_AROON.obj + -del ..\..\..\..\..\temp\csd\ta_AROONOSC.obj + -del ..\..\..\..\..\temp\csd\ta_ASIN.obj + -del ..\..\..\..\..\temp\csd\ta_ATAN.obj + -del ..\..\..\..\..\temp\csd\ta_ATR.obj + -del ..\..\..\..\..\temp\csd\ta_AVGPRICE.obj + -del ..\..\..\..\..\temp\csd\ta_BBANDS.obj + -del ..\..\..\..\..\temp\csd\ta_BETA.obj + -del ..\..\..\..\..\temp\csd\ta_BOP.obj + -del ..\..\..\..\..\temp\csd\ta_CCI.obj + -del ..\..\..\..\..\temp\csd\ta_CDL2CROWS.obj + -del ..\..\..\..\..\temp\csd\ta_CDL3BLACKCROWS.obj + -del ..\..\..\..\..\temp\csd\ta_CDL3INSIDE.obj + -del ..\..\..\..\..\temp\csd\ta_CDL3LINESTRIKE.obj + -del ..\..\..\..\..\temp\csd\ta_CDL3OUTSIDE.obj + -del ..\..\..\..\..\temp\csd\ta_CDL3STARSINSOUTH.obj + -del ..\..\..\..\..\temp\csd\ta_CDL3WHITESOLDIERS.obj + -del ..\..\..\..\..\temp\csd\ta_CDLABANDONEDBABY.obj + -del ..\..\..\..\..\temp\csd\ta_CDLADVANCEBLOCK.obj + -del ..\..\..\..\..\temp\csd\ta_CDLBELTHOLD.obj + -del ..\..\..\..\..\temp\csd\ta_CDLBREAKAWAY.obj + -del ..\..\..\..\..\temp\csd\ta_CDLCLOSINGMARUBOZU.obj + -del ..\..\..\..\..\temp\csd\ta_CDLCONCEALBABYSWALL.obj + -del ..\..\..\..\..\temp\csd\ta_CDLCOUNTERATTACK.obj + -del ..\..\..\..\..\temp\csd\ta_CDLDARKCLOUDCOVER.obj + -del ..\..\..\..\..\temp\csd\ta_CDLDOJI.obj + -del ..\..\..\..\..\temp\csd\ta_CDLDOJISTAR.obj + -del ..\..\..\..\..\temp\csd\ta_CDLDRAGONFLYDOJI.obj + -del ..\..\..\..\..\temp\csd\ta_CDLENGULFING.obj + -del ..\..\..\..\..\temp\csd\ta_CDLEVENINGDOJISTAR.obj + -del ..\..\..\..\..\temp\csd\ta_CDLEVENINGSTAR.obj + -del ..\..\..\..\..\temp\csd\ta_CDLGAPSIDESIDEWHITE.obj + -del ..\..\..\..\..\temp\csd\ta_CDLGRAVESTONEDOJI.obj + -del ..\..\..\..\..\temp\csd\ta_CDLHAMMER.obj + -del ..\..\..\..\..\temp\csd\ta_CDLHANGINGMAN.obj + -del ..\..\..\..\..\temp\csd\ta_CDLHARAMI.obj + -del ..\..\..\..\..\temp\csd\ta_CDLHARAMICROSS.obj + -del ..\..\..\..\..\temp\csd\ta_CDLHIGHWAVE.obj + -del ..\..\..\..\..\temp\csd\ta_CDLHIKKAKE.obj + -del ..\..\..\..\..\temp\csd\ta_CDLHIKKAKEMOD.obj + -del ..\..\..\..\..\temp\csd\ta_CDLHOMINGPIGEON.obj + -del ..\..\..\..\..\temp\csd\ta_CDLIDENTICAL3CROWS.obj + -del ..\..\..\..\..\temp\csd\ta_CDLINNECK.obj + -del ..\..\..\..\..\temp\csd\ta_CDLINVERTEDHAMMER.obj + -del ..\..\..\..\..\temp\csd\ta_CDLKICKING.obj + -del ..\..\..\..\..\temp\csd\ta_CDLKICKINGBYLENGTH.obj + -del ..\..\..\..\..\temp\csd\ta_CDLLADDERBOTTOM.obj + -del ..\..\..\..\..\temp\csd\ta_CDLLONGLEGGEDDOJI.obj + -del ..\..\..\..\..\temp\csd\ta_CDLLONGLINE.obj + -del ..\..\..\..\..\temp\csd\ta_CDLMARUBOZU.obj + -del ..\..\..\..\..\temp\csd\ta_CDLMATCHINGLOW.obj + -del ..\..\..\..\..\temp\csd\ta_CDLMATHOLD.obj + -del ..\..\..\..\..\temp\csd\ta_CDLMORNINGDOJISTAR.obj + -del ..\..\..\..\..\temp\csd\ta_CDLMORNINGSTAR.obj + -del ..\..\..\..\..\temp\csd\ta_CDLONNECK.obj + -del ..\..\..\..\..\temp\csd\ta_CDLPIERCING.obj + -del ..\..\..\..\..\temp\csd\ta_CDLRICKSHAWMAN.obj + -del ..\..\..\..\..\temp\csd\ta_CDLRISEFALL3METHODS.obj + -del ..\..\..\..\..\temp\csd\ta_CDLSEPARATINGLINES.obj + -del ..\..\..\..\..\temp\csd\ta_CDLSHOOTINGSTAR.obj + -del ..\..\..\..\..\temp\csd\ta_CDLSHORTLINE.obj + -del ..\..\..\..\..\temp\csd\ta_CDLSPINNINGTOP.obj + -del ..\..\..\..\..\temp\csd\ta_CDLSTALLEDPATTERN.obj + -del ..\..\..\..\..\temp\csd\ta_CDLSTICKSANDWICH.obj + -del ..\..\..\..\..\temp\csd\ta_CDLTAKURI.obj + -del ..\..\..\..\..\temp\csd\ta_CDLTASUKIGAP.obj + -del ..\..\..\..\..\temp\csd\ta_CDLTHRUSTING.obj + -del ..\..\..\..\..\temp\csd\ta_CDLTRISTAR.obj + -del ..\..\..\..\..\temp\csd\ta_CDLUNIQUE3RIVER.obj + -del ..\..\..\..\..\temp\csd\ta_CDLUPSIDEGAP2CROWS.obj + -del ..\..\..\..\..\temp\csd\ta_CDLXSIDEGAP3METHODS.obj + -del ..\..\..\..\..\temp\csd\ta_CEIL.obj + -del ..\..\..\..\..\temp\csd\ta_CMO.obj + -del ..\..\..\..\..\temp\csd\ta_CORREL.obj + -del ..\..\..\..\..\temp\csd\ta_COS.obj + -del ..\..\..\..\..\temp\csd\ta_COSH.obj + -del ..\..\..\..\..\temp\csd\ta_DEMA.obj + -del ..\..\..\..\..\temp\csd\ta_DIV.obj + -del ..\..\..\..\..\temp\csd\ta_DX.obj + -del ..\..\..\..\..\temp\csd\ta_EMA.obj + -del ..\..\..\..\..\temp\csd\ta_EXP.obj + -del ..\..\..\..\..\temp\csd\ta_FLOOR.obj + -del ..\..\..\..\..\temp\csd\ta_HT_DCPERIOD.obj + -del ..\..\..\..\..\temp\csd\ta_HT_DCPHASE.obj + -del ..\..\..\..\..\temp\csd\ta_HT_PHASOR.obj + -del ..\..\..\..\..\temp\csd\ta_HT_SINE.obj + -del ..\..\..\..\..\temp\csd\ta_HT_TRENDLINE.obj + -del ..\..\..\..\..\temp\csd\ta_HT_TRENDMODE.obj + -del ..\..\..\..\..\temp\csd\ta_KAMA.obj + -del ..\..\..\..\..\temp\csd\ta_LINEARREG.obj + -del ..\..\..\..\..\temp\csd\ta_LINEARREG_ANGLE.obj + -del ..\..\..\..\..\temp\csd\ta_LINEARREG_INTERCEPT.obj + -del ..\..\..\..\..\temp\csd\ta_LINEARREG_SLOPE.obj + -del ..\..\..\..\..\temp\csd\ta_LN.obj + -del ..\..\..\..\..\temp\csd\ta_LOG10.obj + -del ..\..\..\..\..\temp\csd\ta_MA.obj + -del ..\..\..\..\..\temp\csd\ta_MACD.obj + -del ..\..\..\..\..\temp\csd\ta_MACDEXT.obj + -del ..\..\..\..\..\temp\csd\ta_MACDFIX.obj + -del ..\..\..\..\..\temp\csd\ta_MAMA.obj + -del ..\..\..\..\..\temp\csd\ta_MAVP.obj + -del ..\..\..\..\..\temp\csd\ta_MAX.obj + -del ..\..\..\..\..\temp\csd\ta_MAXINDEX.obj + -del ..\..\..\..\..\temp\csd\ta_MEDPRICE.obj + -del ..\..\..\..\..\temp\csd\ta_MFI.obj + -del ..\..\..\..\..\temp\csd\ta_MIDPOINT.obj + -del ..\..\..\..\..\temp\csd\ta_MIDPRICE.obj + -del ..\..\..\..\..\temp\csd\ta_MIN.obj + -del ..\..\..\..\..\temp\csd\ta_MININDEX.obj + -del ..\..\..\..\..\temp\csd\ta_MINMAX.obj + -del ..\..\..\..\..\temp\csd\ta_MINMAXINDEX.obj + -del ..\..\..\..\..\temp\csd\ta_MINUS_DI.obj + -del ..\..\..\..\..\temp\csd\ta_MINUS_DM.obj + -del ..\..\..\..\..\temp\csd\ta_MOM.obj + -del ..\..\..\..\..\temp\csd\ta_MULT.obj + -del ..\..\..\..\..\temp\csd\ta_NATR.obj + -del ..\..\..\..\..\temp\csd\ta_OBV.obj + -del ..\..\..\..\..\temp\csd\ta_PLUS_DI.obj + -del ..\..\..\..\..\temp\csd\ta_PLUS_DM.obj + -del ..\..\..\..\..\temp\csd\ta_PPO.obj + -del ..\..\..\..\..\temp\csd\ta_ROC.obj + -del ..\..\..\..\..\temp\csd\ta_ROCP.obj + -del ..\..\..\..\..\temp\csd\ta_ROCR.obj + -del ..\..\..\..\..\temp\csd\ta_ROCR100.obj + -del ..\..\..\..\..\temp\csd\ta_RSI.obj + -del ..\..\..\..\..\temp\csd\ta_SAR.obj + -del ..\..\..\..\..\temp\csd\ta_SAREXT.obj + -del ..\..\..\..\..\temp\csd\ta_SIN.obj + -del ..\..\..\..\..\temp\csd\ta_SINH.obj + -del ..\..\..\..\..\temp\csd\ta_SMA.obj + -del ..\..\..\..\..\temp\csd\ta_SQRT.obj + -del ..\..\..\..\..\temp\csd\ta_STDDEV.obj + -del ..\..\..\..\..\temp\csd\ta_STOCH.obj + -del ..\..\..\..\..\temp\csd\ta_STOCHF.obj + -del ..\..\..\..\..\temp\csd\ta_STOCHRSI.obj + -del ..\..\..\..\..\temp\csd\ta_SUB.obj + -del ..\..\..\..\..\temp\csd\ta_SUM.obj + -del ..\..\..\..\..\temp\csd\ta_T3.obj + -del ..\..\..\..\..\temp\csd\ta_TAN.obj + -del ..\..\..\..\..\temp\csd\ta_TANH.obj + -del ..\..\..\..\..\temp\csd\ta_TEMA.obj + -del ..\..\..\..\..\temp\csd\ta_TRANGE.obj + -del ..\..\..\..\..\temp\csd\ta_TRIMA.obj + -del ..\..\..\..\..\temp\csd\ta_TRIX.obj + -del ..\..\..\..\..\temp\csd\ta_TSF.obj + -del ..\..\..\..\..\temp\csd\ta_TYPPRICE.obj + -del ..\..\..\..\..\temp\csd\ta_ULTOSC.obj + -del ..\..\..\..\..\temp\csd\ta_VAR.obj + -del ..\..\..\..\..\temp\csd\ta_WCLPRICE.obj + -del ..\..\..\..\..\temp\csd\ta_WILLR.obj + -del ..\..\..\..\..\temp\csd\ta_WMA.obj + -del $(TARGET) + -del ../../../../../bin/*.map + -del ../../../../../bin/*._xe + -del ../../../../../bin/*.tds + -del ../../../../../bin/*.pdb + -del ../../../../../bin/*.pbo + -del ../../../../../bin/*.pbi + -del ../../../../../bin/*.pbt + -del ../../../../../temp/csd/*.pch + -del ../../../../../temp/csd/*.idb + -del ../../../../../temp/csd/ta_func/*.pch + -del ../../../../../temp/csd/ta_func/*.idb + -del ../../../../../temp/csd/ta_func/*.obj + -del ta_func_csd.pdb + -del vc*.pdb + -del ta_func_csd.ilk + +####### Compile + +..\..\..\..\..\temp\csd\ta_utility.obj: ..\..\..\..\..\src\ta_func\ta_utility.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_utility.obj ..\..\..\..\..\src\ta_func\ta_utility.c + +..\..\..\..\..\temp\csd\ta_ACOS.obj: ..\..\..\..\..\src\ta_func\ta_ACOS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_ACOS.obj ..\..\..\..\..\src\ta_func\ta_ACOS.c + +..\..\..\..\..\temp\csd\ta_AD.obj: ..\..\..\..\..\src\ta_func\ta_AD.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_AD.obj ..\..\..\..\..\src\ta_func\ta_AD.c + +..\..\..\..\..\temp\csd\ta_ADD.obj: ..\..\..\..\..\src\ta_func\ta_ADD.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_ADD.obj ..\..\..\..\..\src\ta_func\ta_ADD.c + +..\..\..\..\..\temp\csd\ta_ADOSC.obj: ..\..\..\..\..\src\ta_func\ta_ADOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_ADOSC.obj ..\..\..\..\..\src\ta_func\ta_ADOSC.c + +..\..\..\..\..\temp\csd\ta_ADX.obj: ..\..\..\..\..\src\ta_func\ta_ADX.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_ADX.obj ..\..\..\..\..\src\ta_func\ta_ADX.c + +..\..\..\..\..\temp\csd\ta_ADXR.obj: ..\..\..\..\..\src\ta_func\ta_ADXR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_ADXR.obj ..\..\..\..\..\src\ta_func\ta_ADXR.c + +..\..\..\..\..\temp\csd\ta_APO.obj: ..\..\..\..\..\src\ta_func\ta_APO.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_APO.obj ..\..\..\..\..\src\ta_func\ta_APO.c + +..\..\..\..\..\temp\csd\ta_AROON.obj: ..\..\..\..\..\src\ta_func\ta_AROON.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_AROON.obj ..\..\..\..\..\src\ta_func\ta_AROON.c + +..\..\..\..\..\temp\csd\ta_AROONOSC.obj: ..\..\..\..\..\src\ta_func\ta_AROONOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_AROONOSC.obj ..\..\..\..\..\src\ta_func\ta_AROONOSC.c + +..\..\..\..\..\temp\csd\ta_ASIN.obj: ..\..\..\..\..\src\ta_func\ta_ASIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_ASIN.obj ..\..\..\..\..\src\ta_func\ta_ASIN.c + +..\..\..\..\..\temp\csd\ta_ATAN.obj: ..\..\..\..\..\src\ta_func\ta_ATAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_ATAN.obj ..\..\..\..\..\src\ta_func\ta_ATAN.c + +..\..\..\..\..\temp\csd\ta_ATR.obj: ..\..\..\..\..\src\ta_func\ta_ATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_ATR.obj ..\..\..\..\..\src\ta_func\ta_ATR.c + +..\..\..\..\..\temp\csd\ta_AVGPRICE.obj: ..\..\..\..\..\src\ta_func\ta_AVGPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_AVGPRICE.obj ..\..\..\..\..\src\ta_func\ta_AVGPRICE.c + +..\..\..\..\..\temp\csd\ta_BBANDS.obj: ..\..\..\..\..\src\ta_func\ta_BBANDS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_BBANDS.obj ..\..\..\..\..\src\ta_func\ta_BBANDS.c + +..\..\..\..\..\temp\csd\ta_BETA.obj: ..\..\..\..\..\src\ta_func\ta_BETA.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_BETA.obj ..\..\..\..\..\src\ta_func\ta_BETA.c + +..\..\..\..\..\temp\csd\ta_BOP.obj: ..\..\..\..\..\src\ta_func\ta_BOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_BOP.obj ..\..\..\..\..\src\ta_func\ta_BOP.c + +..\..\..\..\..\temp\csd\ta_CCI.obj: ..\..\..\..\..\src\ta_func\ta_CCI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CCI.obj ..\..\..\..\..\src\ta_func\ta_CCI.c + +..\..\..\..\..\temp\csd\ta_CDL2CROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDL2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CDL2CROWS.obj ..\..\..\..\..\src\ta_func\ta_CDL2CROWS.c + +..\..\..\..\..\temp\csd\ta_CDL3BLACKCROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDL3BLACKCROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CDL3BLACKCROWS.obj ..\..\..\..\..\src\ta_func\ta_CDL3BLACKCROWS.c + +..\..\..\..\..\temp\csd\ta_CDL3INSIDE.obj: ..\..\..\..\..\src\ta_func\ta_CDL3INSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CDL3INSIDE.obj ..\..\..\..\..\src\ta_func\ta_CDL3INSIDE.c + +..\..\..\..\..\temp\csd\ta_CDL3LINESTRIKE.obj: ..\..\..\..\..\src\ta_func\ta_CDL3LINESTRIKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CDL3LINESTRIKE.obj ..\..\..\..\..\src\ta_func\ta_CDL3LINESTRIKE.c + +..\..\..\..\..\temp\csd\ta_CDL3OUTSIDE.obj: ..\..\..\..\..\src\ta_func\ta_CDL3OUTSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CDL3OUTSIDE.obj ..\..\..\..\..\src\ta_func\ta_CDL3OUTSIDE.c + +..\..\..\..\..\temp\csd\ta_CDL3STARSINSOUTH.obj: ..\..\..\..\..\src\ta_func\ta_CDL3STARSINSOUTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CDL3STARSINSOUTH.obj ..\..\..\..\..\src\ta_func\ta_CDL3STARSINSOUTH.c + +..\..\..\..\..\temp\csd\ta_CDL3WHITESOLDIERS.obj: ..\..\..\..\..\src\ta_func\ta_CDL3WHITESOLDIERS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CDL3WHITESOLDIERS.obj ..\..\..\..\..\src\ta_func\ta_CDL3WHITESOLDIERS.c + +..\..\..\..\..\temp\csd\ta_CDLABANDONEDBABY.obj: ..\..\..\..\..\src\ta_func\ta_CDLABANDONEDBABY.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CDLABANDONEDBABY.obj ..\..\..\..\..\src\ta_func\ta_CDLABANDONEDBABY.c + +..\..\..\..\..\temp\csd\ta_CDLADVANCEBLOCK.obj: ..\..\..\..\..\src\ta_func\ta_CDLADVANCEBLOCK.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CDLADVANCEBLOCK.obj ..\..\..\..\..\src\ta_func\ta_CDLADVANCEBLOCK.c + +..\..\..\..\..\temp\csd\ta_CDLBELTHOLD.obj: ..\..\..\..\..\src\ta_func\ta_CDLBELTHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CDLBELTHOLD.obj ..\..\..\..\..\src\ta_func\ta_CDLBELTHOLD.c + +..\..\..\..\..\temp\csd\ta_CDLBREAKAWAY.obj: ..\..\..\..\..\src\ta_func\ta_CDLBREAKAWAY.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CDLBREAKAWAY.obj ..\..\..\..\..\src\ta_func\ta_CDLBREAKAWAY.c + +..\..\..\..\..\temp\csd\ta_CDLCLOSINGMARUBOZU.obj: ..\..\..\..\..\src\ta_func\ta_CDLCLOSINGMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CDLCLOSINGMARUBOZU.obj ..\..\..\..\..\src\ta_func\ta_CDLCLOSINGMARUBOZU.c + +..\..\..\..\..\temp\csd\ta_CDLCONCEALBABYSWALL.obj: ..\..\..\..\..\src\ta_func\ta_CDLCONCEALBABYSWALL.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CDLCONCEALBABYSWALL.obj ..\..\..\..\..\src\ta_func\ta_CDLCONCEALBABYSWALL.c + +..\..\..\..\..\temp\csd\ta_CDLCOUNTERATTACK.obj: ..\..\..\..\..\src\ta_func\ta_CDLCOUNTERATTACK.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CDLCOUNTERATTACK.obj ..\..\..\..\..\src\ta_func\ta_CDLCOUNTERATTACK.c + +..\..\..\..\..\temp\csd\ta_CDLDARKCLOUDCOVER.obj: ..\..\..\..\..\src\ta_func\ta_CDLDARKCLOUDCOVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CDLDARKCLOUDCOVER.obj ..\..\..\..\..\src\ta_func\ta_CDLDARKCLOUDCOVER.c + +..\..\..\..\..\temp\csd\ta_CDLDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CDLDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLDOJI.c + +..\..\..\..\..\temp\csd\ta_CDLDOJISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CDLDOJISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLDOJISTAR.c + +..\..\..\..\..\temp\csd\ta_CDLDRAGONFLYDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLDRAGONFLYDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CDLDRAGONFLYDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLDRAGONFLYDOJI.c + +..\..\..\..\..\temp\csd\ta_CDLENGULFING.obj: ..\..\..\..\..\src\ta_func\ta_CDLENGULFING.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CDLENGULFING.obj ..\..\..\..\..\src\ta_func\ta_CDLENGULFING.c + +..\..\..\..\..\temp\csd\ta_CDLEVENINGDOJISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLEVENINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CDLEVENINGDOJISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLEVENINGDOJISTAR.c + +..\..\..\..\..\temp\csd\ta_CDLEVENINGSTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLEVENINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CDLEVENINGSTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLEVENINGSTAR.c + +..\..\..\..\..\temp\csd\ta_CDLGAPSIDESIDEWHITE.obj: ..\..\..\..\..\src\ta_func\ta_CDLGAPSIDESIDEWHITE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CDLGAPSIDESIDEWHITE.obj ..\..\..\..\..\src\ta_func\ta_CDLGAPSIDESIDEWHITE.c + +..\..\..\..\..\temp\csd\ta_CDLGRAVESTONEDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLGRAVESTONEDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CDLGRAVESTONEDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLGRAVESTONEDOJI.c + +..\..\..\..\..\temp\csd\ta_CDLHAMMER.obj: ..\..\..\..\..\src\ta_func\ta_CDLHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CDLHAMMER.obj ..\..\..\..\..\src\ta_func\ta_CDLHAMMER.c + +..\..\..\..\..\temp\csd\ta_CDLHANGINGMAN.obj: ..\..\..\..\..\src\ta_func\ta_CDLHANGINGMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CDLHANGINGMAN.obj ..\..\..\..\..\src\ta_func\ta_CDLHANGINGMAN.c + +..\..\..\..\..\temp\csd\ta_CDLHARAMI.obj: ..\..\..\..\..\src\ta_func\ta_CDLHARAMI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CDLHARAMI.obj ..\..\..\..\..\src\ta_func\ta_CDLHARAMI.c + +..\..\..\..\..\temp\csd\ta_CDLHARAMICROSS.obj: ..\..\..\..\..\src\ta_func\ta_CDLHARAMICROSS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CDLHARAMICROSS.obj ..\..\..\..\..\src\ta_func\ta_CDLHARAMICROSS.c + +..\..\..\..\..\temp\csd\ta_CDLHIGHWAVE.obj: ..\..\..\..\..\src\ta_func\ta_CDLHIGHWAVE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CDLHIGHWAVE.obj ..\..\..\..\..\src\ta_func\ta_CDLHIGHWAVE.c + +..\..\..\..\..\temp\csd\ta_CDLHIKKAKE.obj: ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CDLHIKKAKE.obj ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKE.c + +..\..\..\..\..\temp\csd\ta_CDLHIKKAKEMOD.obj: ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKEMOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CDLHIKKAKEMOD.obj ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKEMOD.c + +..\..\..\..\..\temp\csd\ta_CDLHOMINGPIGEON.obj: ..\..\..\..\..\src\ta_func\ta_CDLHOMINGPIGEON.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CDLHOMINGPIGEON.obj ..\..\..\..\..\src\ta_func\ta_CDLHOMINGPIGEON.c + +..\..\..\..\..\temp\csd\ta_CDLIDENTICAL3CROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDLIDENTICAL3CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CDLIDENTICAL3CROWS.obj ..\..\..\..\..\src\ta_func\ta_CDLIDENTICAL3CROWS.c + +..\..\..\..\..\temp\csd\ta_CDLINNECK.obj: ..\..\..\..\..\src\ta_func\ta_CDLINNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CDLINNECK.obj ..\..\..\..\..\src\ta_func\ta_CDLINNECK.c + +..\..\..\..\..\temp\csd\ta_CDLINVERTEDHAMMER.obj: ..\..\..\..\..\src\ta_func\ta_CDLINVERTEDHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CDLINVERTEDHAMMER.obj ..\..\..\..\..\src\ta_func\ta_CDLINVERTEDHAMMER.c + +..\..\..\..\..\temp\csd\ta_CDLKICKING.obj: ..\..\..\..\..\src\ta_func\ta_CDLKICKING.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CDLKICKING.obj ..\..\..\..\..\src\ta_func\ta_CDLKICKING.c + +..\..\..\..\..\temp\csd\ta_CDLKICKINGBYLENGTH.obj: ..\..\..\..\..\src\ta_func\ta_CDLKICKINGBYLENGTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CDLKICKINGBYLENGTH.obj ..\..\..\..\..\src\ta_func\ta_CDLKICKINGBYLENGTH.c + +..\..\..\..\..\temp\csd\ta_CDLLADDERBOTTOM.obj: ..\..\..\..\..\src\ta_func\ta_CDLLADDERBOTTOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CDLLADDERBOTTOM.obj ..\..\..\..\..\src\ta_func\ta_CDLLADDERBOTTOM.c + +..\..\..\..\..\temp\csd\ta_CDLLONGLEGGEDDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLLONGLEGGEDDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CDLLONGLEGGEDDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLLONGLEGGEDDOJI.c + +..\..\..\..\..\temp\csd\ta_CDLLONGLINE.obj: ..\..\..\..\..\src\ta_func\ta_CDLLONGLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CDLLONGLINE.obj ..\..\..\..\..\src\ta_func\ta_CDLLONGLINE.c + +..\..\..\..\..\temp\csd\ta_CDLMARUBOZU.obj: ..\..\..\..\..\src\ta_func\ta_CDLMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CDLMARUBOZU.obj ..\..\..\..\..\src\ta_func\ta_CDLMARUBOZU.c + +..\..\..\..\..\temp\csd\ta_CDLMATCHINGLOW.obj: ..\..\..\..\..\src\ta_func\ta_CDLMATCHINGLOW.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CDLMATCHINGLOW.obj ..\..\..\..\..\src\ta_func\ta_CDLMATCHINGLOW.c + +..\..\..\..\..\temp\csd\ta_CDLMATHOLD.obj: ..\..\..\..\..\src\ta_func\ta_CDLMATHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CDLMATHOLD.obj ..\..\..\..\..\src\ta_func\ta_CDLMATHOLD.c + +..\..\..\..\..\temp\csd\ta_CDLMORNINGDOJISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLMORNINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CDLMORNINGDOJISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLMORNINGDOJISTAR.c + +..\..\..\..\..\temp\csd\ta_CDLMORNINGSTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLMORNINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CDLMORNINGSTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLMORNINGSTAR.c + +..\..\..\..\..\temp\csd\ta_CDLONNECK.obj: ..\..\..\..\..\src\ta_func\ta_CDLONNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CDLONNECK.obj ..\..\..\..\..\src\ta_func\ta_CDLONNECK.c + +..\..\..\..\..\temp\csd\ta_CDLPIERCING.obj: ..\..\..\..\..\src\ta_func\ta_CDLPIERCING.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CDLPIERCING.obj ..\..\..\..\..\src\ta_func\ta_CDLPIERCING.c + +..\..\..\..\..\temp\csd\ta_CDLRICKSHAWMAN.obj: ..\..\..\..\..\src\ta_func\ta_CDLRICKSHAWMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CDLRICKSHAWMAN.obj ..\..\..\..\..\src\ta_func\ta_CDLRICKSHAWMAN.c + +..\..\..\..\..\temp\csd\ta_CDLRISEFALL3METHODS.obj: ..\..\..\..\..\src\ta_func\ta_CDLRISEFALL3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CDLRISEFALL3METHODS.obj ..\..\..\..\..\src\ta_func\ta_CDLRISEFALL3METHODS.c + +..\..\..\..\..\temp\csd\ta_CDLSEPARATINGLINES.obj: ..\..\..\..\..\src\ta_func\ta_CDLSEPARATINGLINES.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CDLSEPARATINGLINES.obj ..\..\..\..\..\src\ta_func\ta_CDLSEPARATINGLINES.c + +..\..\..\..\..\temp\csd\ta_CDLSHOOTINGSTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLSHOOTINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CDLSHOOTINGSTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLSHOOTINGSTAR.c + +..\..\..\..\..\temp\csd\ta_CDLSHORTLINE.obj: ..\..\..\..\..\src\ta_func\ta_CDLSHORTLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CDLSHORTLINE.obj ..\..\..\..\..\src\ta_func\ta_CDLSHORTLINE.c + +..\..\..\..\..\temp\csd\ta_CDLSPINNINGTOP.obj: ..\..\..\..\..\src\ta_func\ta_CDLSPINNINGTOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CDLSPINNINGTOP.obj ..\..\..\..\..\src\ta_func\ta_CDLSPINNINGTOP.c + +..\..\..\..\..\temp\csd\ta_CDLSTALLEDPATTERN.obj: ..\..\..\..\..\src\ta_func\ta_CDLSTALLEDPATTERN.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CDLSTALLEDPATTERN.obj ..\..\..\..\..\src\ta_func\ta_CDLSTALLEDPATTERN.c + +..\..\..\..\..\temp\csd\ta_CDLSTICKSANDWICH.obj: ..\..\..\..\..\src\ta_func\ta_CDLSTICKSANDWICH.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CDLSTICKSANDWICH.obj ..\..\..\..\..\src\ta_func\ta_CDLSTICKSANDWICH.c + +..\..\..\..\..\temp\csd\ta_CDLTAKURI.obj: ..\..\..\..\..\src\ta_func\ta_CDLTAKURI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CDLTAKURI.obj ..\..\..\..\..\src\ta_func\ta_CDLTAKURI.c + +..\..\..\..\..\temp\csd\ta_CDLTASUKIGAP.obj: ..\..\..\..\..\src\ta_func\ta_CDLTASUKIGAP.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CDLTASUKIGAP.obj ..\..\..\..\..\src\ta_func\ta_CDLTASUKIGAP.c + +..\..\..\..\..\temp\csd\ta_CDLTHRUSTING.obj: ..\..\..\..\..\src\ta_func\ta_CDLTHRUSTING.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CDLTHRUSTING.obj ..\..\..\..\..\src\ta_func\ta_CDLTHRUSTING.c + +..\..\..\..\..\temp\csd\ta_CDLTRISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLTRISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CDLTRISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLTRISTAR.c + +..\..\..\..\..\temp\csd\ta_CDLUNIQUE3RIVER.obj: ..\..\..\..\..\src\ta_func\ta_CDLUNIQUE3RIVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CDLUNIQUE3RIVER.obj ..\..\..\..\..\src\ta_func\ta_CDLUNIQUE3RIVER.c + +..\..\..\..\..\temp\csd\ta_CDLUPSIDEGAP2CROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDLUPSIDEGAP2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CDLUPSIDEGAP2CROWS.obj ..\..\..\..\..\src\ta_func\ta_CDLUPSIDEGAP2CROWS.c + +..\..\..\..\..\temp\csd\ta_CDLXSIDEGAP3METHODS.obj: ..\..\..\..\..\src\ta_func\ta_CDLXSIDEGAP3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CDLXSIDEGAP3METHODS.obj ..\..\..\..\..\src\ta_func\ta_CDLXSIDEGAP3METHODS.c + +..\..\..\..\..\temp\csd\ta_CEIL.obj: ..\..\..\..\..\src\ta_func\ta_CEIL.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CEIL.obj ..\..\..\..\..\src\ta_func\ta_CEIL.c + +..\..\..\..\..\temp\csd\ta_CMO.obj: ..\..\..\..\..\src\ta_func\ta_CMO.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CMO.obj ..\..\..\..\..\src\ta_func\ta_CMO.c + +..\..\..\..\..\temp\csd\ta_CORREL.obj: ..\..\..\..\..\src\ta_func\ta_CORREL.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CORREL.obj ..\..\..\..\..\src\ta_func\ta_CORREL.c + +..\..\..\..\..\temp\csd\ta_COS.obj: ..\..\..\..\..\src\ta_func\ta_COS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_COS.obj ..\..\..\..\..\src\ta_func\ta_COS.c + +..\..\..\..\..\temp\csd\ta_COSH.obj: ..\..\..\..\..\src\ta_func\ta_COSH.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_COSH.obj ..\..\..\..\..\src\ta_func\ta_COSH.c + +..\..\..\..\..\temp\csd\ta_DEMA.obj: ..\..\..\..\..\src\ta_func\ta_DEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_DEMA.obj ..\..\..\..\..\src\ta_func\ta_DEMA.c + +..\..\..\..\..\temp\csd\ta_DIV.obj: ..\..\..\..\..\src\ta_func\ta_DIV.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_DIV.obj ..\..\..\..\..\src\ta_func\ta_DIV.c + +..\..\..\..\..\temp\csd\ta_DX.obj: ..\..\..\..\..\src\ta_func\ta_DX.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_DX.obj ..\..\..\..\..\src\ta_func\ta_DX.c + +..\..\..\..\..\temp\csd\ta_EMA.obj: ..\..\..\..\..\src\ta_func\ta_EMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_EMA.obj ..\..\..\..\..\src\ta_func\ta_EMA.c + +..\..\..\..\..\temp\csd\ta_EXP.obj: ..\..\..\..\..\src\ta_func\ta_EXP.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_EXP.obj ..\..\..\..\..\src\ta_func\ta_EXP.c + +..\..\..\..\..\temp\csd\ta_FLOOR.obj: ..\..\..\..\..\src\ta_func\ta_FLOOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_FLOOR.obj ..\..\..\..\..\src\ta_func\ta_FLOOR.c + +..\..\..\..\..\temp\csd\ta_HT_DCPERIOD.obj: ..\..\..\..\..\src\ta_func\ta_HT_DCPERIOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_HT_DCPERIOD.obj ..\..\..\..\..\src\ta_func\ta_HT_DCPERIOD.c + +..\..\..\..\..\temp\csd\ta_HT_DCPHASE.obj: ..\..\..\..\..\src\ta_func\ta_HT_DCPHASE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_HT_DCPHASE.obj ..\..\..\..\..\src\ta_func\ta_HT_DCPHASE.c + +..\..\..\..\..\temp\csd\ta_HT_PHASOR.obj: ..\..\..\..\..\src\ta_func\ta_HT_PHASOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_HT_PHASOR.obj ..\..\..\..\..\src\ta_func\ta_HT_PHASOR.c + +..\..\..\..\..\temp\csd\ta_HT_SINE.obj: ..\..\..\..\..\src\ta_func\ta_HT_SINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_HT_SINE.obj ..\..\..\..\..\src\ta_func\ta_HT_SINE.c + +..\..\..\..\..\temp\csd\ta_HT_TRENDLINE.obj: ..\..\..\..\..\src\ta_func\ta_HT_TRENDLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_HT_TRENDLINE.obj ..\..\..\..\..\src\ta_func\ta_HT_TRENDLINE.c + +..\..\..\..\..\temp\csd\ta_HT_TRENDMODE.obj: ..\..\..\..\..\src\ta_func\ta_HT_TRENDMODE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_HT_TRENDMODE.obj ..\..\..\..\..\src\ta_func\ta_HT_TRENDMODE.c + +..\..\..\..\..\temp\csd\ta_KAMA.obj: ..\..\..\..\..\src\ta_func\ta_KAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_KAMA.obj ..\..\..\..\..\src\ta_func\ta_KAMA.c + +..\..\..\..\..\temp\csd\ta_LINEARREG.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_LINEARREG.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG.c + +..\..\..\..\..\temp\csd\ta_LINEARREG_ANGLE.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG_ANGLE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_LINEARREG_ANGLE.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG_ANGLE.c + +..\..\..\..\..\temp\csd\ta_LINEARREG_INTERCEPT.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG_INTERCEPT.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_LINEARREG_INTERCEPT.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG_INTERCEPT.c + +..\..\..\..\..\temp\csd\ta_LINEARREG_SLOPE.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG_SLOPE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_LINEARREG_SLOPE.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG_SLOPE.c + +..\..\..\..\..\temp\csd\ta_LN.obj: ..\..\..\..\..\src\ta_func\ta_LN.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_LN.obj ..\..\..\..\..\src\ta_func\ta_LN.c + +..\..\..\..\..\temp\csd\ta_LOG10.obj: ..\..\..\..\..\src\ta_func\ta_LOG10.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_LOG10.obj ..\..\..\..\..\src\ta_func\ta_LOG10.c + +..\..\..\..\..\temp\csd\ta_MA.obj: ..\..\..\..\..\src\ta_func\ta_MA.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_MA.obj ..\..\..\..\..\src\ta_func\ta_MA.c + +..\..\..\..\..\temp\csd\ta_MACD.obj: ..\..\..\..\..\src\ta_func\ta_MACD.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_MACD.obj ..\..\..\..\..\src\ta_func\ta_MACD.c + +..\..\..\..\..\temp\csd\ta_MACDEXT.obj: ..\..\..\..\..\src\ta_func\ta_MACDEXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_MACDEXT.obj ..\..\..\..\..\src\ta_func\ta_MACDEXT.c + +..\..\..\..\..\temp\csd\ta_MACDFIX.obj: ..\..\..\..\..\src\ta_func\ta_MACDFIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_MACDFIX.obj ..\..\..\..\..\src\ta_func\ta_MACDFIX.c + +..\..\..\..\..\temp\csd\ta_MAMA.obj: ..\..\..\..\..\src\ta_func\ta_MAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_MAMA.obj ..\..\..\..\..\src\ta_func\ta_MAMA.c + +..\..\..\..\..\temp\csd\ta_MAVP.obj: ..\..\..\..\..\src\ta_func\ta_MAVP.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_MAVP.obj ..\..\..\..\..\src\ta_func\ta_MAVP.c + +..\..\..\..\..\temp\csd\ta_MAX.obj: ..\..\..\..\..\src\ta_func\ta_MAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_MAX.obj ..\..\..\..\..\src\ta_func\ta_MAX.c + +..\..\..\..\..\temp\csd\ta_MAXINDEX.obj: ..\..\..\..\..\src\ta_func\ta_MAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_MAXINDEX.obj ..\..\..\..\..\src\ta_func\ta_MAXINDEX.c + +..\..\..\..\..\temp\csd\ta_MEDPRICE.obj: ..\..\..\..\..\src\ta_func\ta_MEDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_MEDPRICE.obj ..\..\..\..\..\src\ta_func\ta_MEDPRICE.c + +..\..\..\..\..\temp\csd\ta_MFI.obj: ..\..\..\..\..\src\ta_func\ta_MFI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_MFI.obj ..\..\..\..\..\src\ta_func\ta_MFI.c + +..\..\..\..\..\temp\csd\ta_MIDPOINT.obj: ..\..\..\..\..\src\ta_func\ta_MIDPOINT.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_MIDPOINT.obj ..\..\..\..\..\src\ta_func\ta_MIDPOINT.c + +..\..\..\..\..\temp\csd\ta_MIDPRICE.obj: ..\..\..\..\..\src\ta_func\ta_MIDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_MIDPRICE.obj ..\..\..\..\..\src\ta_func\ta_MIDPRICE.c + +..\..\..\..\..\temp\csd\ta_MIN.obj: ..\..\..\..\..\src\ta_func\ta_MIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_MIN.obj ..\..\..\..\..\src\ta_func\ta_MIN.c + +..\..\..\..\..\temp\csd\ta_MININDEX.obj: ..\..\..\..\..\src\ta_func\ta_MININDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_MININDEX.obj ..\..\..\..\..\src\ta_func\ta_MININDEX.c + +..\..\..\..\..\temp\csd\ta_MINMAX.obj: ..\..\..\..\..\src\ta_func\ta_MINMAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_MINMAX.obj ..\..\..\..\..\src\ta_func\ta_MINMAX.c + +..\..\..\..\..\temp\csd\ta_MINMAXINDEX.obj: ..\..\..\..\..\src\ta_func\ta_MINMAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_MINMAXINDEX.obj ..\..\..\..\..\src\ta_func\ta_MINMAXINDEX.c + +..\..\..\..\..\temp\csd\ta_MINUS_DI.obj: ..\..\..\..\..\src\ta_func\ta_MINUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_MINUS_DI.obj ..\..\..\..\..\src\ta_func\ta_MINUS_DI.c + +..\..\..\..\..\temp\csd\ta_MINUS_DM.obj: ..\..\..\..\..\src\ta_func\ta_MINUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_MINUS_DM.obj ..\..\..\..\..\src\ta_func\ta_MINUS_DM.c + +..\..\..\..\..\temp\csd\ta_MOM.obj: ..\..\..\..\..\src\ta_func\ta_MOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_MOM.obj ..\..\..\..\..\src\ta_func\ta_MOM.c + +..\..\..\..\..\temp\csd\ta_MULT.obj: ..\..\..\..\..\src\ta_func\ta_MULT.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_MULT.obj ..\..\..\..\..\src\ta_func\ta_MULT.c + +..\..\..\..\..\temp\csd\ta_NATR.obj: ..\..\..\..\..\src\ta_func\ta_NATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_NATR.obj ..\..\..\..\..\src\ta_func\ta_NATR.c + +..\..\..\..\..\temp\csd\ta_OBV.obj: ..\..\..\..\..\src\ta_func\ta_OBV.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_OBV.obj ..\..\..\..\..\src\ta_func\ta_OBV.c + +..\..\..\..\..\temp\csd\ta_PLUS_DI.obj: ..\..\..\..\..\src\ta_func\ta_PLUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_PLUS_DI.obj ..\..\..\..\..\src\ta_func\ta_PLUS_DI.c + +..\..\..\..\..\temp\csd\ta_PLUS_DM.obj: ..\..\..\..\..\src\ta_func\ta_PLUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_PLUS_DM.obj ..\..\..\..\..\src\ta_func\ta_PLUS_DM.c + +..\..\..\..\..\temp\csd\ta_PPO.obj: ..\..\..\..\..\src\ta_func\ta_PPO.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_PPO.obj ..\..\..\..\..\src\ta_func\ta_PPO.c + +..\..\..\..\..\temp\csd\ta_ROC.obj: ..\..\..\..\..\src\ta_func\ta_ROC.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_ROC.obj ..\..\..\..\..\src\ta_func\ta_ROC.c + +..\..\..\..\..\temp\csd\ta_ROCP.obj: ..\..\..\..\..\src\ta_func\ta_ROCP.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_ROCP.obj ..\..\..\..\..\src\ta_func\ta_ROCP.c + +..\..\..\..\..\temp\csd\ta_ROCR.obj: ..\..\..\..\..\src\ta_func\ta_ROCR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_ROCR.obj ..\..\..\..\..\src\ta_func\ta_ROCR.c + +..\..\..\..\..\temp\csd\ta_ROCR100.obj: ..\..\..\..\..\src\ta_func\ta_ROCR100.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_ROCR100.obj ..\..\..\..\..\src\ta_func\ta_ROCR100.c + +..\..\..\..\..\temp\csd\ta_RSI.obj: ..\..\..\..\..\src\ta_func\ta_RSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_RSI.obj ..\..\..\..\..\src\ta_func\ta_RSI.c + +..\..\..\..\..\temp\csd\ta_SAR.obj: ..\..\..\..\..\src\ta_func\ta_SAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_SAR.obj ..\..\..\..\..\src\ta_func\ta_SAR.c + +..\..\..\..\..\temp\csd\ta_SAREXT.obj: ..\..\..\..\..\src\ta_func\ta_SAREXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_SAREXT.obj ..\..\..\..\..\src\ta_func\ta_SAREXT.c + +..\..\..\..\..\temp\csd\ta_SIN.obj: ..\..\..\..\..\src\ta_func\ta_SIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_SIN.obj ..\..\..\..\..\src\ta_func\ta_SIN.c + +..\..\..\..\..\temp\csd\ta_SINH.obj: ..\..\..\..\..\src\ta_func\ta_SINH.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_SINH.obj ..\..\..\..\..\src\ta_func\ta_SINH.c + +..\..\..\..\..\temp\csd\ta_SMA.obj: ..\..\..\..\..\src\ta_func\ta_SMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_SMA.obj ..\..\..\..\..\src\ta_func\ta_SMA.c + +..\..\..\..\..\temp\csd\ta_SQRT.obj: ..\..\..\..\..\src\ta_func\ta_SQRT.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_SQRT.obj ..\..\..\..\..\src\ta_func\ta_SQRT.c + +..\..\..\..\..\temp\csd\ta_STDDEV.obj: ..\..\..\..\..\src\ta_func\ta_STDDEV.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_STDDEV.obj ..\..\..\..\..\src\ta_func\ta_STDDEV.c + +..\..\..\..\..\temp\csd\ta_STOCH.obj: ..\..\..\..\..\src\ta_func\ta_STOCH.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_STOCH.obj ..\..\..\..\..\src\ta_func\ta_STOCH.c + +..\..\..\..\..\temp\csd\ta_STOCHF.obj: ..\..\..\..\..\src\ta_func\ta_STOCHF.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_STOCHF.obj ..\..\..\..\..\src\ta_func\ta_STOCHF.c + +..\..\..\..\..\temp\csd\ta_STOCHRSI.obj: ..\..\..\..\..\src\ta_func\ta_STOCHRSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_STOCHRSI.obj ..\..\..\..\..\src\ta_func\ta_STOCHRSI.c + +..\..\..\..\..\temp\csd\ta_SUB.obj: ..\..\..\..\..\src\ta_func\ta_SUB.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_SUB.obj ..\..\..\..\..\src\ta_func\ta_SUB.c + +..\..\..\..\..\temp\csd\ta_SUM.obj: ..\..\..\..\..\src\ta_func\ta_SUM.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_SUM.obj ..\..\..\..\..\src\ta_func\ta_SUM.c + +..\..\..\..\..\temp\csd\ta_T3.obj: ..\..\..\..\..\src\ta_func\ta_T3.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_T3.obj ..\..\..\..\..\src\ta_func\ta_T3.c + +..\..\..\..\..\temp\csd\ta_TAN.obj: ..\..\..\..\..\src\ta_func\ta_TAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_TAN.obj ..\..\..\..\..\src\ta_func\ta_TAN.c + +..\..\..\..\..\temp\csd\ta_TANH.obj: ..\..\..\..\..\src\ta_func\ta_TANH.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_TANH.obj ..\..\..\..\..\src\ta_func\ta_TANH.c + +..\..\..\..\..\temp\csd\ta_TEMA.obj: ..\..\..\..\..\src\ta_func\ta_TEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_TEMA.obj ..\..\..\..\..\src\ta_func\ta_TEMA.c + +..\..\..\..\..\temp\csd\ta_TRANGE.obj: ..\..\..\..\..\src\ta_func\ta_TRANGE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_TRANGE.obj ..\..\..\..\..\src\ta_func\ta_TRANGE.c + +..\..\..\..\..\temp\csd\ta_TRIMA.obj: ..\..\..\..\..\src\ta_func\ta_TRIMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_TRIMA.obj ..\..\..\..\..\src\ta_func\ta_TRIMA.c + +..\..\..\..\..\temp\csd\ta_TRIX.obj: ..\..\..\..\..\src\ta_func\ta_TRIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_TRIX.obj ..\..\..\..\..\src\ta_func\ta_TRIX.c + +..\..\..\..\..\temp\csd\ta_TSF.obj: ..\..\..\..\..\src\ta_func\ta_TSF.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_TSF.obj ..\..\..\..\..\src\ta_func\ta_TSF.c + +..\..\..\..\..\temp\csd\ta_TYPPRICE.obj: ..\..\..\..\..\src\ta_func\ta_TYPPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_TYPPRICE.obj ..\..\..\..\..\src\ta_func\ta_TYPPRICE.c + +..\..\..\..\..\temp\csd\ta_ULTOSC.obj: ..\..\..\..\..\src\ta_func\ta_ULTOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_ULTOSC.obj ..\..\..\..\..\src\ta_func\ta_ULTOSC.c + +..\..\..\..\..\temp\csd\ta_VAR.obj: ..\..\..\..\..\src\ta_func\ta_VAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_VAR.obj ..\..\..\..\..\src\ta_func\ta_VAR.c + +..\..\..\..\..\temp\csd\ta_WCLPRICE.obj: ..\..\..\..\..\src\ta_func\ta_WCLPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_WCLPRICE.obj ..\..\..\..\..\src\ta_func\ta_WCLPRICE.c + +..\..\..\..\..\temp\csd\ta_WILLR.obj: ..\..\..\..\..\src\ta_func\ta_WILLR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_WILLR.obj ..\..\..\..\..\src\ta_func\ta_WILLR.c + +..\..\..\..\..\temp\csd\ta_WMA.obj: ..\..\..\..\..\src\ta_func\ta_WMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_WMA.obj ..\..\..\..\..\src\ta_func\ta_WMA.c + diff --git a/make/csd/win32/msvc/ta_libc/Makefile b/make/csd/win32/msvc/ta_libc/Makefile new file mode 100644 index 000000000..63711ea20 --- /dev/null +++ b/make/csd/win32/msvc/ta_libc/Makefile @@ -0,0 +1,1240 @@ +############################################################################# +# Makefile for building ta_libc_csd +# Generated by tmake; +# Project: ta_libc/ta_libc +# Template: lib +############################################################################# + +####### Compiler, tools and options + +CC = cl +CXX = cl +CFLAGS = -nologo -W3 -Zi -DTA_DEBUG -D_DEBUG -DTA_SINGLE_THREAD -DWIN32 -D_MBCS -D_LIB +CXXFLAGS= -nologo -W3 -Zi -DTA_DEBUG -D_DEBUG -DTA_SINGLE_THREAD -DWIN32 -D_MBCS -D_LIB +INCPATH = -I"..\..\..\..\..\src\ta_common" -I"..\..\..\..\..\include" -I"..\..\..\..\..\src\ta_abstract" -I"..\..\..\..\..\src\ta_abstract\tables" -I"..\..\..\..\..\src\ta_abstract\frames" -I"$(QTDIR)\include" +LIB = lib /NOLOGO +MOC = moc +UIC = uic + +ZIP = zip -r -9 + +####### Files + +HEADERS = +SOURCES = ..\..\..\..\..\src\ta_common\ta_global.c \ + ..\..\..\..\..\src\ta_common\ta_retcode.c \ + ..\..\..\..\..\src\ta_common\ta_version.c \ + ..\..\..\..\..\src\ta_abstract\ta_abstract.c \ + ..\..\..\..\..\src\ta_abstract\ta_def_ui.c \ + ..\..\..\..\..\src\ta_abstract\ta_func_api.c \ + ..\..\..\..\..\src\ta_abstract\ta_group_idx.c \ + ..\..\..\..\..\src\ta_abstract\frames\ta_frame.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_a.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_b.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_c.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_d.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_e.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_f.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_g.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_h.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_i.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_j.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_k.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_l.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_m.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_n.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_o.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_p.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_q.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_r.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_s.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_t.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_u.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_v.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_w.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_x.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_y.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_z.c \ + ..\..\..\..\..\src\ta_func\ta_utility.c \ + ..\..\..\..\..\src\ta_func\ta_ACOS.c \ + ..\..\..\..\..\src\ta_func\ta_AD.c \ + ..\..\..\..\..\src\ta_func\ta_ADD.c \ + ..\..\..\..\..\src\ta_func\ta_ADOSC.c \ + ..\..\..\..\..\src\ta_func\ta_ADX.c \ + ..\..\..\..\..\src\ta_func\ta_ADXR.c \ + ..\..\..\..\..\src\ta_func\ta_APO.c \ + ..\..\..\..\..\src\ta_func\ta_AROON.c \ + ..\..\..\..\..\src\ta_func\ta_AROONOSC.c \ + ..\..\..\..\..\src\ta_func\ta_ASIN.c \ + ..\..\..\..\..\src\ta_func\ta_ATAN.c \ + ..\..\..\..\..\src\ta_func\ta_ATR.c \ + ..\..\..\..\..\src\ta_func\ta_AVGPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_BBANDS.c \ + ..\..\..\..\..\src\ta_func\ta_BETA.c \ + ..\..\..\..\..\src\ta_func\ta_BOP.c \ + ..\..\..\..\..\src\ta_func\ta_CCI.c \ + ..\..\..\..\..\src\ta_func\ta_CDL2CROWS.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3BLACKCROWS.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3INSIDE.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3LINESTRIKE.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3OUTSIDE.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3STARSINSOUTH.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3WHITESOLDIERS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLABANDONEDBABY.c \ + ..\..\..\..\..\src\ta_func\ta_CDLADVANCEBLOCK.c \ + ..\..\..\..\..\src\ta_func\ta_CDLBELTHOLD.c \ + ..\..\..\..\..\src\ta_func\ta_CDLBREAKAWAY.c \ + ..\..\..\..\..\src\ta_func\ta_CDLCLOSINGMARUBOZU.c \ + ..\..\..\..\..\src\ta_func\ta_CDLCONCEALBABYSWALL.c \ + ..\..\..\..\..\src\ta_func\ta_CDLCOUNTERATTACK.c \ + ..\..\..\..\..\src\ta_func\ta_CDLDARKCLOUDCOVER.c \ + ..\..\..\..\..\src\ta_func\ta_CDLDOJI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLDOJISTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLDRAGONFLYDOJI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLENGULFING.c \ + ..\..\..\..\..\src\ta_func\ta_CDLEVENINGDOJISTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLEVENINGSTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLGAPSIDESIDEWHITE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLGRAVESTONEDOJI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHAMMER.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHANGINGMAN.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHARAMI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHARAMICROSS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHIGHWAVE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKEMOD.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHOMINGPIGEON.c \ + ..\..\..\..\..\src\ta_func\ta_CDLIDENTICAL3CROWS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLINNECK.c \ + ..\..\..\..\..\src\ta_func\ta_CDLINVERTEDHAMMER.c \ + ..\..\..\..\..\src\ta_func\ta_CDLKICKING.c \ + ..\..\..\..\..\src\ta_func\ta_CDLKICKINGBYLENGTH.c \ + ..\..\..\..\..\src\ta_func\ta_CDLLADDERBOTTOM.c \ + ..\..\..\..\..\src\ta_func\ta_CDLLONGLEGGEDDOJI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLLONGLINE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMARUBOZU.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMATCHINGLOW.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMATHOLD.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMORNINGDOJISTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMORNINGSTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLONNECK.c \ + ..\..\..\..\..\src\ta_func\ta_CDLPIERCING.c \ + ..\..\..\..\..\src\ta_func\ta_CDLRICKSHAWMAN.c \ + ..\..\..\..\..\src\ta_func\ta_CDLRISEFALL3METHODS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSEPARATINGLINES.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSHOOTINGSTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSHORTLINE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSPINNINGTOP.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSTALLEDPATTERN.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSTICKSANDWICH.c \ + ..\..\..\..\..\src\ta_func\ta_CDLTAKURI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLTASUKIGAP.c \ + ..\..\..\..\..\src\ta_func\ta_CDLTHRUSTING.c \ + ..\..\..\..\..\src\ta_func\ta_CDLTRISTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLUNIQUE3RIVER.c \ + ..\..\..\..\..\src\ta_func\ta_CDLUPSIDEGAP2CROWS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLXSIDEGAP3METHODS.c \ + ..\..\..\..\..\src\ta_func\ta_CEIL.c \ + ..\..\..\..\..\src\ta_func\ta_CMO.c \ + ..\..\..\..\..\src\ta_func\ta_CORREL.c \ + ..\..\..\..\..\src\ta_func\ta_COS.c \ + ..\..\..\..\..\src\ta_func\ta_COSH.c \ + ..\..\..\..\..\src\ta_func\ta_DEMA.c \ + ..\..\..\..\..\src\ta_func\ta_DIV.c \ + ..\..\..\..\..\src\ta_func\ta_DX.c \ + ..\..\..\..\..\src\ta_func\ta_EMA.c \ + ..\..\..\..\..\src\ta_func\ta_EXP.c \ + ..\..\..\..\..\src\ta_func\ta_FLOOR.c \ + ..\..\..\..\..\src\ta_func\ta_HT_DCPERIOD.c \ + ..\..\..\..\..\src\ta_func\ta_HT_DCPHASE.c \ + ..\..\..\..\..\src\ta_func\ta_HT_PHASOR.c \ + ..\..\..\..\..\src\ta_func\ta_HT_SINE.c \ + ..\..\..\..\..\src\ta_func\ta_HT_TRENDLINE.c \ + ..\..\..\..\..\src\ta_func\ta_HT_TRENDMODE.c \ + ..\..\..\..\..\src\ta_func\ta_KAMA.c \ + ..\..\..\..\..\src\ta_func\ta_LINEARREG.c \ + ..\..\..\..\..\src\ta_func\ta_LINEARREG_ANGLE.c \ + ..\..\..\..\..\src\ta_func\ta_LINEARREG_INTERCEPT.c \ + ..\..\..\..\..\src\ta_func\ta_LINEARREG_SLOPE.c \ + ..\..\..\..\..\src\ta_func\ta_LN.c \ + ..\..\..\..\..\src\ta_func\ta_LOG10.c \ + ..\..\..\..\..\src\ta_func\ta_MA.c \ + ..\..\..\..\..\src\ta_func\ta_MACD.c \ + ..\..\..\..\..\src\ta_func\ta_MACDEXT.c \ + ..\..\..\..\..\src\ta_func\ta_MACDFIX.c \ + ..\..\..\..\..\src\ta_func\ta_MAMA.c \ + ..\..\..\..\..\src\ta_func\ta_MAVP.c \ + ..\..\..\..\..\src\ta_func\ta_MAX.c \ + ..\..\..\..\..\src\ta_func\ta_MAXINDEX.c \ + ..\..\..\..\..\src\ta_func\ta_MEDPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_MFI.c \ + ..\..\..\..\..\src\ta_func\ta_MIDPOINT.c \ + ..\..\..\..\..\src\ta_func\ta_MIDPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_MIN.c \ + ..\..\..\..\..\src\ta_func\ta_MININDEX.c \ + ..\..\..\..\..\src\ta_func\ta_MINMAX.c \ + ..\..\..\..\..\src\ta_func\ta_MINMAXINDEX.c \ + ..\..\..\..\..\src\ta_func\ta_MINUS_DI.c \ + ..\..\..\..\..\src\ta_func\ta_MINUS_DM.c \ + ..\..\..\..\..\src\ta_func\ta_MOM.c \ + ..\..\..\..\..\src\ta_func\ta_MULT.c \ + ..\..\..\..\..\src\ta_func\ta_NATR.c \ + ..\..\..\..\..\src\ta_func\ta_OBV.c \ + ..\..\..\..\..\src\ta_func\ta_PLUS_DI.c \ + ..\..\..\..\..\src\ta_func\ta_PLUS_DM.c \ + ..\..\..\..\..\src\ta_func\ta_PPO.c \ + ..\..\..\..\..\src\ta_func\ta_ROC.c \ + ..\..\..\..\..\src\ta_func\ta_ROCP.c \ + ..\..\..\..\..\src\ta_func\ta_ROCR.c \ + ..\..\..\..\..\src\ta_func\ta_ROCR100.c \ + ..\..\..\..\..\src\ta_func\ta_RSI.c \ + ..\..\..\..\..\src\ta_func\ta_SAR.c \ + ..\..\..\..\..\src\ta_func\ta_SAREXT.c \ + ..\..\..\..\..\src\ta_func\ta_SIN.c \ + ..\..\..\..\..\src\ta_func\ta_SINH.c \ + ..\..\..\..\..\src\ta_func\ta_SMA.c \ + ..\..\..\..\..\src\ta_func\ta_SQRT.c \ + ..\..\..\..\..\src\ta_func\ta_STDDEV.c \ + ..\..\..\..\..\src\ta_func\ta_STOCH.c \ + ..\..\..\..\..\src\ta_func\ta_STOCHF.c \ + ..\..\..\..\..\src\ta_func\ta_STOCHRSI.c \ + ..\..\..\..\..\src\ta_func\ta_SUB.c \ + ..\..\..\..\..\src\ta_func\ta_SUM.c \ + ..\..\..\..\..\src\ta_func\ta_T3.c \ + ..\..\..\..\..\src\ta_func\ta_TAN.c \ + ..\..\..\..\..\src\ta_func\ta_TANH.c \ + ..\..\..\..\..\src\ta_func\ta_TEMA.c \ + ..\..\..\..\..\src\ta_func\ta_TRANGE.c \ + ..\..\..\..\..\src\ta_func\ta_TRIMA.c \ + ..\..\..\..\..\src\ta_func\ta_TRIX.c \ + ..\..\..\..\..\src\ta_func\ta_TSF.c \ + ..\..\..\..\..\src\ta_func\ta_TYPPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_ULTOSC.c \ + ..\..\..\..\..\src\ta_func\ta_VAR.c \ + ..\..\..\..\..\src\ta_func\ta_WCLPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_WILLR.c \ + ..\..\..\..\..\src\ta_func\ta_WMA.c +OBJECTS = ..\..\..\..\..\temp\csd\ta_global.obj \ + ..\..\..\..\..\temp\csd\ta_retcode.obj \ + ..\..\..\..\..\temp\csd\ta_version.obj \ + ..\..\..\..\..\temp\csd\ta_abstract.obj \ + ..\..\..\..\..\temp\csd\ta_def_ui.obj \ + ..\..\..\..\..\temp\csd\ta_func_api.obj \ + ..\..\..\..\..\temp\csd\ta_group_idx.obj \ + ..\..\..\..\..\temp\csd\ta_frame.obj \ + ..\..\..\..\..\temp\csd\table_a.obj \ + ..\..\..\..\..\temp\csd\table_b.obj \ + ..\..\..\..\..\temp\csd\table_c.obj \ + ..\..\..\..\..\temp\csd\table_d.obj \ + ..\..\..\..\..\temp\csd\table_e.obj \ + ..\..\..\..\..\temp\csd\table_f.obj \ + ..\..\..\..\..\temp\csd\table_g.obj \ + ..\..\..\..\..\temp\csd\table_h.obj \ + ..\..\..\..\..\temp\csd\table_i.obj \ + ..\..\..\..\..\temp\csd\table_j.obj \ + ..\..\..\..\..\temp\csd\table_k.obj \ + ..\..\..\..\..\temp\csd\table_l.obj \ + ..\..\..\..\..\temp\csd\table_m.obj \ + ..\..\..\..\..\temp\csd\table_n.obj \ + ..\..\..\..\..\temp\csd\table_o.obj \ + ..\..\..\..\..\temp\csd\table_p.obj \ + ..\..\..\..\..\temp\csd\table_q.obj \ + ..\..\..\..\..\temp\csd\table_r.obj \ + ..\..\..\..\..\temp\csd\table_s.obj \ + ..\..\..\..\..\temp\csd\table_t.obj \ + ..\..\..\..\..\temp\csd\table_u.obj \ + ..\..\..\..\..\temp\csd\table_v.obj \ + ..\..\..\..\..\temp\csd\table_w.obj \ + ..\..\..\..\..\temp\csd\table_x.obj \ + ..\..\..\..\..\temp\csd\table_y.obj \ + ..\..\..\..\..\temp\csd\table_z.obj \ + ..\..\..\..\..\temp\csd\ta_utility.obj \ + ..\..\..\..\..\temp\csd\ta_ACOS.obj \ + ..\..\..\..\..\temp\csd\ta_AD.obj \ + ..\..\..\..\..\temp\csd\ta_ADD.obj \ + ..\..\..\..\..\temp\csd\ta_ADOSC.obj \ + ..\..\..\..\..\temp\csd\ta_ADX.obj \ + ..\..\..\..\..\temp\csd\ta_ADXR.obj \ + ..\..\..\..\..\temp\csd\ta_APO.obj \ + ..\..\..\..\..\temp\csd\ta_AROON.obj \ + ..\..\..\..\..\temp\csd\ta_AROONOSC.obj \ + ..\..\..\..\..\temp\csd\ta_ASIN.obj \ + ..\..\..\..\..\temp\csd\ta_ATAN.obj \ + ..\..\..\..\..\temp\csd\ta_ATR.obj \ + ..\..\..\..\..\temp\csd\ta_AVGPRICE.obj \ + ..\..\..\..\..\temp\csd\ta_BBANDS.obj \ + ..\..\..\..\..\temp\csd\ta_BETA.obj \ + ..\..\..\..\..\temp\csd\ta_BOP.obj \ + ..\..\..\..\..\temp\csd\ta_CCI.obj \ + ..\..\..\..\..\temp\csd\ta_CDL2CROWS.obj \ + ..\..\..\..\..\temp\csd\ta_CDL3BLACKCROWS.obj \ + ..\..\..\..\..\temp\csd\ta_CDL3INSIDE.obj \ + ..\..\..\..\..\temp\csd\ta_CDL3LINESTRIKE.obj \ + ..\..\..\..\..\temp\csd\ta_CDL3OUTSIDE.obj \ + ..\..\..\..\..\temp\csd\ta_CDL3STARSINSOUTH.obj \ + ..\..\..\..\..\temp\csd\ta_CDL3WHITESOLDIERS.obj \ + ..\..\..\..\..\temp\csd\ta_CDLABANDONEDBABY.obj \ + ..\..\..\..\..\temp\csd\ta_CDLADVANCEBLOCK.obj \ + ..\..\..\..\..\temp\csd\ta_CDLBELTHOLD.obj \ + ..\..\..\..\..\temp\csd\ta_CDLBREAKAWAY.obj \ + ..\..\..\..\..\temp\csd\ta_CDLCLOSINGMARUBOZU.obj \ + ..\..\..\..\..\temp\csd\ta_CDLCONCEALBABYSWALL.obj \ + ..\..\..\..\..\temp\csd\ta_CDLCOUNTERATTACK.obj \ + ..\..\..\..\..\temp\csd\ta_CDLDARKCLOUDCOVER.obj \ + ..\..\..\..\..\temp\csd\ta_CDLDOJI.obj \ + ..\..\..\..\..\temp\csd\ta_CDLDOJISTAR.obj \ + ..\..\..\..\..\temp\csd\ta_CDLDRAGONFLYDOJI.obj \ + ..\..\..\..\..\temp\csd\ta_CDLENGULFING.obj \ + ..\..\..\..\..\temp\csd\ta_CDLEVENINGDOJISTAR.obj \ + ..\..\..\..\..\temp\csd\ta_CDLEVENINGSTAR.obj \ + ..\..\..\..\..\temp\csd\ta_CDLGAPSIDESIDEWHITE.obj \ + ..\..\..\..\..\temp\csd\ta_CDLGRAVESTONEDOJI.obj \ + ..\..\..\..\..\temp\csd\ta_CDLHAMMER.obj \ + ..\..\..\..\..\temp\csd\ta_CDLHANGINGMAN.obj \ + ..\..\..\..\..\temp\csd\ta_CDLHARAMI.obj \ + ..\..\..\..\..\temp\csd\ta_CDLHARAMICROSS.obj \ + ..\..\..\..\..\temp\csd\ta_CDLHIGHWAVE.obj \ + ..\..\..\..\..\temp\csd\ta_CDLHIKKAKE.obj \ + ..\..\..\..\..\temp\csd\ta_CDLHIKKAKEMOD.obj \ + ..\..\..\..\..\temp\csd\ta_CDLHOMINGPIGEON.obj \ + ..\..\..\..\..\temp\csd\ta_CDLIDENTICAL3CROWS.obj \ + ..\..\..\..\..\temp\csd\ta_CDLINNECK.obj \ + ..\..\..\..\..\temp\csd\ta_CDLINVERTEDHAMMER.obj \ + ..\..\..\..\..\temp\csd\ta_CDLKICKING.obj \ + ..\..\..\..\..\temp\csd\ta_CDLKICKINGBYLENGTH.obj \ + ..\..\..\..\..\temp\csd\ta_CDLLADDERBOTTOM.obj \ + ..\..\..\..\..\temp\csd\ta_CDLLONGLEGGEDDOJI.obj \ + ..\..\..\..\..\temp\csd\ta_CDLLONGLINE.obj \ + ..\..\..\..\..\temp\csd\ta_CDLMARUBOZU.obj \ + ..\..\..\..\..\temp\csd\ta_CDLMATCHINGLOW.obj \ + ..\..\..\..\..\temp\csd\ta_CDLMATHOLD.obj \ + ..\..\..\..\..\temp\csd\ta_CDLMORNINGDOJISTAR.obj \ + ..\..\..\..\..\temp\csd\ta_CDLMORNINGSTAR.obj \ + ..\..\..\..\..\temp\csd\ta_CDLONNECK.obj \ + ..\..\..\..\..\temp\csd\ta_CDLPIERCING.obj \ + ..\..\..\..\..\temp\csd\ta_CDLRICKSHAWMAN.obj \ + ..\..\..\..\..\temp\csd\ta_CDLRISEFALL3METHODS.obj \ + ..\..\..\..\..\temp\csd\ta_CDLSEPARATINGLINES.obj \ + ..\..\..\..\..\temp\csd\ta_CDLSHOOTINGSTAR.obj \ + ..\..\..\..\..\temp\csd\ta_CDLSHORTLINE.obj \ + ..\..\..\..\..\temp\csd\ta_CDLSPINNINGTOP.obj \ + ..\..\..\..\..\temp\csd\ta_CDLSTALLEDPATTERN.obj \ + ..\..\..\..\..\temp\csd\ta_CDLSTICKSANDWICH.obj \ + ..\..\..\..\..\temp\csd\ta_CDLTAKURI.obj \ + ..\..\..\..\..\temp\csd\ta_CDLTASUKIGAP.obj \ + ..\..\..\..\..\temp\csd\ta_CDLTHRUSTING.obj \ + ..\..\..\..\..\temp\csd\ta_CDLTRISTAR.obj \ + ..\..\..\..\..\temp\csd\ta_CDLUNIQUE3RIVER.obj \ + ..\..\..\..\..\temp\csd\ta_CDLUPSIDEGAP2CROWS.obj \ + ..\..\..\..\..\temp\csd\ta_CDLXSIDEGAP3METHODS.obj \ + ..\..\..\..\..\temp\csd\ta_CEIL.obj \ + ..\..\..\..\..\temp\csd\ta_CMO.obj \ + ..\..\..\..\..\temp\csd\ta_CORREL.obj \ + ..\..\..\..\..\temp\csd\ta_COS.obj \ + ..\..\..\..\..\temp\csd\ta_COSH.obj \ + ..\..\..\..\..\temp\csd\ta_DEMA.obj \ + ..\..\..\..\..\temp\csd\ta_DIV.obj \ + ..\..\..\..\..\temp\csd\ta_DX.obj \ + ..\..\..\..\..\temp\csd\ta_EMA.obj \ + ..\..\..\..\..\temp\csd\ta_EXP.obj \ + ..\..\..\..\..\temp\csd\ta_FLOOR.obj \ + ..\..\..\..\..\temp\csd\ta_HT_DCPERIOD.obj \ + ..\..\..\..\..\temp\csd\ta_HT_DCPHASE.obj \ + ..\..\..\..\..\temp\csd\ta_HT_PHASOR.obj \ + ..\..\..\..\..\temp\csd\ta_HT_SINE.obj \ + ..\..\..\..\..\temp\csd\ta_HT_TRENDLINE.obj \ + ..\..\..\..\..\temp\csd\ta_HT_TRENDMODE.obj \ + ..\..\..\..\..\temp\csd\ta_KAMA.obj \ + ..\..\..\..\..\temp\csd\ta_LINEARREG.obj \ + ..\..\..\..\..\temp\csd\ta_LINEARREG_ANGLE.obj \ + ..\..\..\..\..\temp\csd\ta_LINEARREG_INTERCEPT.obj \ + ..\..\..\..\..\temp\csd\ta_LINEARREG_SLOPE.obj \ + ..\..\..\..\..\temp\csd\ta_LN.obj \ + ..\..\..\..\..\temp\csd\ta_LOG10.obj \ + ..\..\..\..\..\temp\csd\ta_MA.obj \ + ..\..\..\..\..\temp\csd\ta_MACD.obj \ + ..\..\..\..\..\temp\csd\ta_MACDEXT.obj \ + ..\..\..\..\..\temp\csd\ta_MACDFIX.obj \ + ..\..\..\..\..\temp\csd\ta_MAMA.obj \ + ..\..\..\..\..\temp\csd\ta_MAVP.obj \ + ..\..\..\..\..\temp\csd\ta_MAX.obj \ + ..\..\..\..\..\temp\csd\ta_MAXINDEX.obj \ + ..\..\..\..\..\temp\csd\ta_MEDPRICE.obj \ + ..\..\..\..\..\temp\csd\ta_MFI.obj \ + ..\..\..\..\..\temp\csd\ta_MIDPOINT.obj \ + ..\..\..\..\..\temp\csd\ta_MIDPRICE.obj \ + ..\..\..\..\..\temp\csd\ta_MIN.obj \ + ..\..\..\..\..\temp\csd\ta_MININDEX.obj \ + ..\..\..\..\..\temp\csd\ta_MINMAX.obj \ + ..\..\..\..\..\temp\csd\ta_MINMAXINDEX.obj \ + ..\..\..\..\..\temp\csd\ta_MINUS_DI.obj \ + ..\..\..\..\..\temp\csd\ta_MINUS_DM.obj \ + ..\..\..\..\..\temp\csd\ta_MOM.obj \ + ..\..\..\..\..\temp\csd\ta_MULT.obj \ + ..\..\..\..\..\temp\csd\ta_NATR.obj \ + ..\..\..\..\..\temp\csd\ta_OBV.obj \ + ..\..\..\..\..\temp\csd\ta_PLUS_DI.obj \ + ..\..\..\..\..\temp\csd\ta_PLUS_DM.obj \ + ..\..\..\..\..\temp\csd\ta_PPO.obj \ + ..\..\..\..\..\temp\csd\ta_ROC.obj \ + ..\..\..\..\..\temp\csd\ta_ROCP.obj \ + ..\..\..\..\..\temp\csd\ta_ROCR.obj \ + ..\..\..\..\..\temp\csd\ta_ROCR100.obj \ + ..\..\..\..\..\temp\csd\ta_RSI.obj \ + ..\..\..\..\..\temp\csd\ta_SAR.obj \ + ..\..\..\..\..\temp\csd\ta_SAREXT.obj \ + ..\..\..\..\..\temp\csd\ta_SIN.obj \ + ..\..\..\..\..\temp\csd\ta_SINH.obj \ + ..\..\..\..\..\temp\csd\ta_SMA.obj \ + ..\..\..\..\..\temp\csd\ta_SQRT.obj \ + ..\..\..\..\..\temp\csd\ta_STDDEV.obj \ + ..\..\..\..\..\temp\csd\ta_STOCH.obj \ + ..\..\..\..\..\temp\csd\ta_STOCHF.obj \ + ..\..\..\..\..\temp\csd\ta_STOCHRSI.obj \ + ..\..\..\..\..\temp\csd\ta_SUB.obj \ + ..\..\..\..\..\temp\csd\ta_SUM.obj \ + ..\..\..\..\..\temp\csd\ta_T3.obj \ + ..\..\..\..\..\temp\csd\ta_TAN.obj \ + ..\..\..\..\..\temp\csd\ta_TANH.obj \ + ..\..\..\..\..\temp\csd\ta_TEMA.obj \ + ..\..\..\..\..\temp\csd\ta_TRANGE.obj \ + ..\..\..\..\..\temp\csd\ta_TRIMA.obj \ + ..\..\..\..\..\temp\csd\ta_TRIX.obj \ + ..\..\..\..\..\temp\csd\ta_TSF.obj \ + ..\..\..\..\..\temp\csd\ta_TYPPRICE.obj \ + ..\..\..\..\..\temp\csd\ta_ULTOSC.obj \ + ..\..\..\..\..\temp\csd\ta_VAR.obj \ + ..\..\..\..\..\temp\csd\ta_WCLPRICE.obj \ + ..\..\..\..\..\temp\csd\ta_WILLR.obj \ + ..\..\..\..\..\temp\csd\ta_WMA.obj +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ..\..\..\..\..\lib\ta_libc_csd.lib +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .c + +.cpp.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $< + +.cxx.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $< + +.cc.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $< + +.c.obj: + $(CC) -c $(CFLAGS) $(INCPATH) -Fo$@ $< + +####### Build rules + +all: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + $(LIB) /OUT:$(TARGET) @<< + $(OBJECTS) $(OBJMOC) +<< + +moc: $(SRCMOC) + +tmake: ../csd/win32/msvc/ta_libc/Makefile + +../csd/win32/msvc/ta_libc/Makefile: ta_libc/ta_libc.pro + tmake ta_libc/ta_libc.pro -o ../csd/win32/msvc/ta_libc/Makefile + +dist: + $(ZIP) ta_libc/ta_libc.zip ta_libc/ta_libc.pro $(SOURCES) $(HEADERS) $(DIST) $(INTERFACES) + +clean: + -del ..\..\..\..\..\temp\csd\ta_global.obj + -del ..\..\..\..\..\temp\csd\ta_retcode.obj + -del ..\..\..\..\..\temp\csd\ta_version.obj + -del ..\..\..\..\..\temp\csd\ta_abstract.obj + -del ..\..\..\..\..\temp\csd\ta_def_ui.obj + -del ..\..\..\..\..\temp\csd\ta_func_api.obj + -del ..\..\..\..\..\temp\csd\ta_group_idx.obj + -del ..\..\..\..\..\temp\csd\ta_frame.obj + -del ..\..\..\..\..\temp\csd\table_a.obj + -del ..\..\..\..\..\temp\csd\table_b.obj + -del ..\..\..\..\..\temp\csd\table_c.obj + -del ..\..\..\..\..\temp\csd\table_d.obj + -del ..\..\..\..\..\temp\csd\table_e.obj + -del ..\..\..\..\..\temp\csd\table_f.obj + -del ..\..\..\..\..\temp\csd\table_g.obj + -del ..\..\..\..\..\temp\csd\table_h.obj + -del ..\..\..\..\..\temp\csd\table_i.obj + -del ..\..\..\..\..\temp\csd\table_j.obj + -del ..\..\..\..\..\temp\csd\table_k.obj + -del ..\..\..\..\..\temp\csd\table_l.obj + -del ..\..\..\..\..\temp\csd\table_m.obj + -del ..\..\..\..\..\temp\csd\table_n.obj + -del ..\..\..\..\..\temp\csd\table_o.obj + -del ..\..\..\..\..\temp\csd\table_p.obj + -del ..\..\..\..\..\temp\csd\table_q.obj + -del ..\..\..\..\..\temp\csd\table_r.obj + -del ..\..\..\..\..\temp\csd\table_s.obj + -del ..\..\..\..\..\temp\csd\table_t.obj + -del ..\..\..\..\..\temp\csd\table_u.obj + -del ..\..\..\..\..\temp\csd\table_v.obj + -del ..\..\..\..\..\temp\csd\table_w.obj + -del ..\..\..\..\..\temp\csd\table_x.obj + -del ..\..\..\..\..\temp\csd\table_y.obj + -del ..\..\..\..\..\temp\csd\table_z.obj + -del ..\..\..\..\..\temp\csd\ta_utility.obj + -del ..\..\..\..\..\temp\csd\ta_ACOS.obj + -del ..\..\..\..\..\temp\csd\ta_AD.obj + -del ..\..\..\..\..\temp\csd\ta_ADD.obj + -del ..\..\..\..\..\temp\csd\ta_ADOSC.obj + -del ..\..\..\..\..\temp\csd\ta_ADX.obj + -del ..\..\..\..\..\temp\csd\ta_ADXR.obj + -del ..\..\..\..\..\temp\csd\ta_APO.obj + -del ..\..\..\..\..\temp\csd\ta_AROON.obj + -del ..\..\..\..\..\temp\csd\ta_AROONOSC.obj + -del ..\..\..\..\..\temp\csd\ta_ASIN.obj + -del ..\..\..\..\..\temp\csd\ta_ATAN.obj + -del ..\..\..\..\..\temp\csd\ta_ATR.obj + -del ..\..\..\..\..\temp\csd\ta_AVGPRICE.obj + -del ..\..\..\..\..\temp\csd\ta_BBANDS.obj + -del ..\..\..\..\..\temp\csd\ta_BETA.obj + -del ..\..\..\..\..\temp\csd\ta_BOP.obj + -del ..\..\..\..\..\temp\csd\ta_CCI.obj + -del ..\..\..\..\..\temp\csd\ta_CDL2CROWS.obj + -del ..\..\..\..\..\temp\csd\ta_CDL3BLACKCROWS.obj + -del ..\..\..\..\..\temp\csd\ta_CDL3INSIDE.obj + -del ..\..\..\..\..\temp\csd\ta_CDL3LINESTRIKE.obj + -del ..\..\..\..\..\temp\csd\ta_CDL3OUTSIDE.obj + -del ..\..\..\..\..\temp\csd\ta_CDL3STARSINSOUTH.obj + -del ..\..\..\..\..\temp\csd\ta_CDL3WHITESOLDIERS.obj + -del ..\..\..\..\..\temp\csd\ta_CDLABANDONEDBABY.obj + -del ..\..\..\..\..\temp\csd\ta_CDLADVANCEBLOCK.obj + -del ..\..\..\..\..\temp\csd\ta_CDLBELTHOLD.obj + -del ..\..\..\..\..\temp\csd\ta_CDLBREAKAWAY.obj + -del ..\..\..\..\..\temp\csd\ta_CDLCLOSINGMARUBOZU.obj + -del ..\..\..\..\..\temp\csd\ta_CDLCONCEALBABYSWALL.obj + -del ..\..\..\..\..\temp\csd\ta_CDLCOUNTERATTACK.obj + -del ..\..\..\..\..\temp\csd\ta_CDLDARKCLOUDCOVER.obj + -del ..\..\..\..\..\temp\csd\ta_CDLDOJI.obj + -del ..\..\..\..\..\temp\csd\ta_CDLDOJISTAR.obj + -del ..\..\..\..\..\temp\csd\ta_CDLDRAGONFLYDOJI.obj + -del ..\..\..\..\..\temp\csd\ta_CDLENGULFING.obj + -del ..\..\..\..\..\temp\csd\ta_CDLEVENINGDOJISTAR.obj + -del ..\..\..\..\..\temp\csd\ta_CDLEVENINGSTAR.obj + -del ..\..\..\..\..\temp\csd\ta_CDLGAPSIDESIDEWHITE.obj + -del ..\..\..\..\..\temp\csd\ta_CDLGRAVESTONEDOJI.obj + -del ..\..\..\..\..\temp\csd\ta_CDLHAMMER.obj + -del ..\..\..\..\..\temp\csd\ta_CDLHANGINGMAN.obj + -del ..\..\..\..\..\temp\csd\ta_CDLHARAMI.obj + -del ..\..\..\..\..\temp\csd\ta_CDLHARAMICROSS.obj + -del ..\..\..\..\..\temp\csd\ta_CDLHIGHWAVE.obj + -del ..\..\..\..\..\temp\csd\ta_CDLHIKKAKE.obj + -del ..\..\..\..\..\temp\csd\ta_CDLHIKKAKEMOD.obj + -del ..\..\..\..\..\temp\csd\ta_CDLHOMINGPIGEON.obj + -del ..\..\..\..\..\temp\csd\ta_CDLIDENTICAL3CROWS.obj + -del ..\..\..\..\..\temp\csd\ta_CDLINNECK.obj + -del ..\..\..\..\..\temp\csd\ta_CDLINVERTEDHAMMER.obj + -del ..\..\..\..\..\temp\csd\ta_CDLKICKING.obj + -del ..\..\..\..\..\temp\csd\ta_CDLKICKINGBYLENGTH.obj + -del ..\..\..\..\..\temp\csd\ta_CDLLADDERBOTTOM.obj + -del ..\..\..\..\..\temp\csd\ta_CDLLONGLEGGEDDOJI.obj + -del ..\..\..\..\..\temp\csd\ta_CDLLONGLINE.obj + -del ..\..\..\..\..\temp\csd\ta_CDLMARUBOZU.obj + -del ..\..\..\..\..\temp\csd\ta_CDLMATCHINGLOW.obj + -del ..\..\..\..\..\temp\csd\ta_CDLMATHOLD.obj + -del ..\..\..\..\..\temp\csd\ta_CDLMORNINGDOJISTAR.obj + -del ..\..\..\..\..\temp\csd\ta_CDLMORNINGSTAR.obj + -del ..\..\..\..\..\temp\csd\ta_CDLONNECK.obj + -del ..\..\..\..\..\temp\csd\ta_CDLPIERCING.obj + -del ..\..\..\..\..\temp\csd\ta_CDLRICKSHAWMAN.obj + -del ..\..\..\..\..\temp\csd\ta_CDLRISEFALL3METHODS.obj + -del ..\..\..\..\..\temp\csd\ta_CDLSEPARATINGLINES.obj + -del ..\..\..\..\..\temp\csd\ta_CDLSHOOTINGSTAR.obj + -del ..\..\..\..\..\temp\csd\ta_CDLSHORTLINE.obj + -del ..\..\..\..\..\temp\csd\ta_CDLSPINNINGTOP.obj + -del ..\..\..\..\..\temp\csd\ta_CDLSTALLEDPATTERN.obj + -del ..\..\..\..\..\temp\csd\ta_CDLSTICKSANDWICH.obj + -del ..\..\..\..\..\temp\csd\ta_CDLTAKURI.obj + -del ..\..\..\..\..\temp\csd\ta_CDLTASUKIGAP.obj + -del ..\..\..\..\..\temp\csd\ta_CDLTHRUSTING.obj + -del ..\..\..\..\..\temp\csd\ta_CDLTRISTAR.obj + -del ..\..\..\..\..\temp\csd\ta_CDLUNIQUE3RIVER.obj + -del ..\..\..\..\..\temp\csd\ta_CDLUPSIDEGAP2CROWS.obj + -del ..\..\..\..\..\temp\csd\ta_CDLXSIDEGAP3METHODS.obj + -del ..\..\..\..\..\temp\csd\ta_CEIL.obj + -del ..\..\..\..\..\temp\csd\ta_CMO.obj + -del ..\..\..\..\..\temp\csd\ta_CORREL.obj + -del ..\..\..\..\..\temp\csd\ta_COS.obj + -del ..\..\..\..\..\temp\csd\ta_COSH.obj + -del ..\..\..\..\..\temp\csd\ta_DEMA.obj + -del ..\..\..\..\..\temp\csd\ta_DIV.obj + -del ..\..\..\..\..\temp\csd\ta_DX.obj + -del ..\..\..\..\..\temp\csd\ta_EMA.obj + -del ..\..\..\..\..\temp\csd\ta_EXP.obj + -del ..\..\..\..\..\temp\csd\ta_FLOOR.obj + -del ..\..\..\..\..\temp\csd\ta_HT_DCPERIOD.obj + -del ..\..\..\..\..\temp\csd\ta_HT_DCPHASE.obj + -del ..\..\..\..\..\temp\csd\ta_HT_PHASOR.obj + -del ..\..\..\..\..\temp\csd\ta_HT_SINE.obj + -del ..\..\..\..\..\temp\csd\ta_HT_TRENDLINE.obj + -del ..\..\..\..\..\temp\csd\ta_HT_TRENDMODE.obj + -del ..\..\..\..\..\temp\csd\ta_KAMA.obj + -del ..\..\..\..\..\temp\csd\ta_LINEARREG.obj + -del ..\..\..\..\..\temp\csd\ta_LINEARREG_ANGLE.obj + -del ..\..\..\..\..\temp\csd\ta_LINEARREG_INTERCEPT.obj + -del ..\..\..\..\..\temp\csd\ta_LINEARREG_SLOPE.obj + -del ..\..\..\..\..\temp\csd\ta_LN.obj + -del ..\..\..\..\..\temp\csd\ta_LOG10.obj + -del ..\..\..\..\..\temp\csd\ta_MA.obj + -del ..\..\..\..\..\temp\csd\ta_MACD.obj + -del ..\..\..\..\..\temp\csd\ta_MACDEXT.obj + -del ..\..\..\..\..\temp\csd\ta_MACDFIX.obj + -del ..\..\..\..\..\temp\csd\ta_MAMA.obj + -del ..\..\..\..\..\temp\csd\ta_MAVP.obj + -del ..\..\..\..\..\temp\csd\ta_MAX.obj + -del ..\..\..\..\..\temp\csd\ta_MAXINDEX.obj + -del ..\..\..\..\..\temp\csd\ta_MEDPRICE.obj + -del ..\..\..\..\..\temp\csd\ta_MFI.obj + -del ..\..\..\..\..\temp\csd\ta_MIDPOINT.obj + -del ..\..\..\..\..\temp\csd\ta_MIDPRICE.obj + -del ..\..\..\..\..\temp\csd\ta_MIN.obj + -del ..\..\..\..\..\temp\csd\ta_MININDEX.obj + -del ..\..\..\..\..\temp\csd\ta_MINMAX.obj + -del ..\..\..\..\..\temp\csd\ta_MINMAXINDEX.obj + -del ..\..\..\..\..\temp\csd\ta_MINUS_DI.obj + -del ..\..\..\..\..\temp\csd\ta_MINUS_DM.obj + -del ..\..\..\..\..\temp\csd\ta_MOM.obj + -del ..\..\..\..\..\temp\csd\ta_MULT.obj + -del ..\..\..\..\..\temp\csd\ta_NATR.obj + -del ..\..\..\..\..\temp\csd\ta_OBV.obj + -del ..\..\..\..\..\temp\csd\ta_PLUS_DI.obj + -del ..\..\..\..\..\temp\csd\ta_PLUS_DM.obj + -del ..\..\..\..\..\temp\csd\ta_PPO.obj + -del ..\..\..\..\..\temp\csd\ta_ROC.obj + -del ..\..\..\..\..\temp\csd\ta_ROCP.obj + -del ..\..\..\..\..\temp\csd\ta_ROCR.obj + -del ..\..\..\..\..\temp\csd\ta_ROCR100.obj + -del ..\..\..\..\..\temp\csd\ta_RSI.obj + -del ..\..\..\..\..\temp\csd\ta_SAR.obj + -del ..\..\..\..\..\temp\csd\ta_SAREXT.obj + -del ..\..\..\..\..\temp\csd\ta_SIN.obj + -del ..\..\..\..\..\temp\csd\ta_SINH.obj + -del ..\..\..\..\..\temp\csd\ta_SMA.obj + -del ..\..\..\..\..\temp\csd\ta_SQRT.obj + -del ..\..\..\..\..\temp\csd\ta_STDDEV.obj + -del ..\..\..\..\..\temp\csd\ta_STOCH.obj + -del ..\..\..\..\..\temp\csd\ta_STOCHF.obj + -del ..\..\..\..\..\temp\csd\ta_STOCHRSI.obj + -del ..\..\..\..\..\temp\csd\ta_SUB.obj + -del ..\..\..\..\..\temp\csd\ta_SUM.obj + -del ..\..\..\..\..\temp\csd\ta_T3.obj + -del ..\..\..\..\..\temp\csd\ta_TAN.obj + -del ..\..\..\..\..\temp\csd\ta_TANH.obj + -del ..\..\..\..\..\temp\csd\ta_TEMA.obj + -del ..\..\..\..\..\temp\csd\ta_TRANGE.obj + -del ..\..\..\..\..\temp\csd\ta_TRIMA.obj + -del ..\..\..\..\..\temp\csd\ta_TRIX.obj + -del ..\..\..\..\..\temp\csd\ta_TSF.obj + -del ..\..\..\..\..\temp\csd\ta_TYPPRICE.obj + -del ..\..\..\..\..\temp\csd\ta_ULTOSC.obj + -del ..\..\..\..\..\temp\csd\ta_VAR.obj + -del ..\..\..\..\..\temp\csd\ta_WCLPRICE.obj + -del ..\..\..\..\..\temp\csd\ta_WILLR.obj + -del ..\..\..\..\..\temp\csd\ta_WMA.obj + -del $(TARGET) + -del ../../../../../bin/*.map + -del ../../../../../bin/*._xe + -del ../../../../../bin/*.tds + -del ../../../../../bin/*.pdb + -del ../../../../../bin/*.pbo + -del ../../../../../bin/*.pbi + -del ../../../../../bin/*.pbt + -del ta_libc_csd.pdb + -del vc*.pdb + -del ta_libc_csd.ilk + +####### Compile + +..\..\..\..\..\temp\csd\ta_global.obj: ..\..\..\..\..\src\ta_common\ta_global.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_global.obj ..\..\..\..\..\src\ta_common\ta_global.c + +..\..\..\..\..\temp\csd\ta_retcode.obj: ..\..\..\..\..\src\ta_common\ta_retcode.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_retcode.obj ..\..\..\..\..\src\ta_common\ta_retcode.c + +..\..\..\..\..\temp\csd\ta_version.obj: ..\..\..\..\..\src\ta_common\ta_version.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_version.obj ..\..\..\..\..\src\ta_common\ta_version.c + +..\..\..\..\..\temp\csd\ta_abstract.obj: ..\..\..\..\..\src\ta_abstract\ta_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_abstract.obj ..\..\..\..\..\src\ta_abstract\ta_abstract.c + +..\..\..\..\..\temp\csd\ta_def_ui.obj: ..\..\..\..\..\src\ta_abstract\ta_def_ui.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_def_ui.obj ..\..\..\..\..\src\ta_abstract\ta_def_ui.c + +..\..\..\..\..\temp\csd\ta_func_api.obj: ..\..\..\..\..\src\ta_abstract\ta_func_api.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_func_api.obj ..\..\..\..\..\src\ta_abstract\ta_func_api.c + +..\..\..\..\..\temp\csd\ta_group_idx.obj: ..\..\..\..\..\src\ta_abstract\ta_group_idx.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_group_idx.obj ..\..\..\..\..\src\ta_abstract\ta_group_idx.c + +..\..\..\..\..\temp\csd\ta_frame.obj: ..\..\..\..\..\src\ta_abstract\frames\ta_frame.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_frame.obj ..\..\..\..\..\src\ta_abstract\frames\ta_frame.c + +..\..\..\..\..\temp\csd\table_a.obj: ..\..\..\..\..\src\ta_abstract\tables\table_a.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\table_a.obj ..\..\..\..\..\src\ta_abstract\tables\table_a.c + +..\..\..\..\..\temp\csd\table_b.obj: ..\..\..\..\..\src\ta_abstract\tables\table_b.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\table_b.obj ..\..\..\..\..\src\ta_abstract\tables\table_b.c + +..\..\..\..\..\temp\csd\table_c.obj: ..\..\..\..\..\src\ta_abstract\tables\table_c.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\table_c.obj ..\..\..\..\..\src\ta_abstract\tables\table_c.c + +..\..\..\..\..\temp\csd\table_d.obj: ..\..\..\..\..\src\ta_abstract\tables\table_d.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\table_d.obj ..\..\..\..\..\src\ta_abstract\tables\table_d.c + +..\..\..\..\..\temp\csd\table_e.obj: ..\..\..\..\..\src\ta_abstract\tables\table_e.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\table_e.obj ..\..\..\..\..\src\ta_abstract\tables\table_e.c + +..\..\..\..\..\temp\csd\table_f.obj: ..\..\..\..\..\src\ta_abstract\tables\table_f.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\table_f.obj ..\..\..\..\..\src\ta_abstract\tables\table_f.c + +..\..\..\..\..\temp\csd\table_g.obj: ..\..\..\..\..\src\ta_abstract\tables\table_g.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\table_g.obj ..\..\..\..\..\src\ta_abstract\tables\table_g.c + +..\..\..\..\..\temp\csd\table_h.obj: ..\..\..\..\..\src\ta_abstract\tables\table_h.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\table_h.obj ..\..\..\..\..\src\ta_abstract\tables\table_h.c + +..\..\..\..\..\temp\csd\table_i.obj: ..\..\..\..\..\src\ta_abstract\tables\table_i.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\table_i.obj ..\..\..\..\..\src\ta_abstract\tables\table_i.c + +..\..\..\..\..\temp\csd\table_j.obj: ..\..\..\..\..\src\ta_abstract\tables\table_j.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\table_j.obj ..\..\..\..\..\src\ta_abstract\tables\table_j.c + +..\..\..\..\..\temp\csd\table_k.obj: ..\..\..\..\..\src\ta_abstract\tables\table_k.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\table_k.obj ..\..\..\..\..\src\ta_abstract\tables\table_k.c + +..\..\..\..\..\temp\csd\table_l.obj: ..\..\..\..\..\src\ta_abstract\tables\table_l.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\table_l.obj ..\..\..\..\..\src\ta_abstract\tables\table_l.c + +..\..\..\..\..\temp\csd\table_m.obj: ..\..\..\..\..\src\ta_abstract\tables\table_m.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\table_m.obj ..\..\..\..\..\src\ta_abstract\tables\table_m.c + +..\..\..\..\..\temp\csd\table_n.obj: ..\..\..\..\..\src\ta_abstract\tables\table_n.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\table_n.obj ..\..\..\..\..\src\ta_abstract\tables\table_n.c + +..\..\..\..\..\temp\csd\table_o.obj: ..\..\..\..\..\src\ta_abstract\tables\table_o.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\table_o.obj ..\..\..\..\..\src\ta_abstract\tables\table_o.c + +..\..\..\..\..\temp\csd\table_p.obj: ..\..\..\..\..\src\ta_abstract\tables\table_p.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\table_p.obj ..\..\..\..\..\src\ta_abstract\tables\table_p.c + +..\..\..\..\..\temp\csd\table_q.obj: ..\..\..\..\..\src\ta_abstract\tables\table_q.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\table_q.obj ..\..\..\..\..\src\ta_abstract\tables\table_q.c + +..\..\..\..\..\temp\csd\table_r.obj: ..\..\..\..\..\src\ta_abstract\tables\table_r.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\table_r.obj ..\..\..\..\..\src\ta_abstract\tables\table_r.c + +..\..\..\..\..\temp\csd\table_s.obj: ..\..\..\..\..\src\ta_abstract\tables\table_s.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\table_s.obj ..\..\..\..\..\src\ta_abstract\tables\table_s.c + +..\..\..\..\..\temp\csd\table_t.obj: ..\..\..\..\..\src\ta_abstract\tables\table_t.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\table_t.obj ..\..\..\..\..\src\ta_abstract\tables\table_t.c + +..\..\..\..\..\temp\csd\table_u.obj: ..\..\..\..\..\src\ta_abstract\tables\table_u.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\table_u.obj ..\..\..\..\..\src\ta_abstract\tables\table_u.c + +..\..\..\..\..\temp\csd\table_v.obj: ..\..\..\..\..\src\ta_abstract\tables\table_v.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\table_v.obj ..\..\..\..\..\src\ta_abstract\tables\table_v.c + +..\..\..\..\..\temp\csd\table_w.obj: ..\..\..\..\..\src\ta_abstract\tables\table_w.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\table_w.obj ..\..\..\..\..\src\ta_abstract\tables\table_w.c + +..\..\..\..\..\temp\csd\table_x.obj: ..\..\..\..\..\src\ta_abstract\tables\table_x.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\table_x.obj ..\..\..\..\..\src\ta_abstract\tables\table_x.c + +..\..\..\..\..\temp\csd\table_y.obj: ..\..\..\..\..\src\ta_abstract\tables\table_y.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\table_y.obj ..\..\..\..\..\src\ta_abstract\tables\table_y.c + +..\..\..\..\..\temp\csd\table_z.obj: ..\..\..\..\..\src\ta_abstract\tables\table_z.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\table_z.obj ..\..\..\..\..\src\ta_abstract\tables\table_z.c + +..\..\..\..\..\temp\csd\ta_utility.obj: ..\..\..\..\..\src\ta_func\ta_utility.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_utility.obj ..\..\..\..\..\src\ta_func\ta_utility.c + +..\..\..\..\..\temp\csd\ta_ACOS.obj: ..\..\..\..\..\src\ta_func\ta_ACOS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_ACOS.obj ..\..\..\..\..\src\ta_func\ta_ACOS.c + +..\..\..\..\..\temp\csd\ta_AD.obj: ..\..\..\..\..\src\ta_func\ta_AD.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_AD.obj ..\..\..\..\..\src\ta_func\ta_AD.c + +..\..\..\..\..\temp\csd\ta_ADD.obj: ..\..\..\..\..\src\ta_func\ta_ADD.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_ADD.obj ..\..\..\..\..\src\ta_func\ta_ADD.c + +..\..\..\..\..\temp\csd\ta_ADOSC.obj: ..\..\..\..\..\src\ta_func\ta_ADOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_ADOSC.obj ..\..\..\..\..\src\ta_func\ta_ADOSC.c + +..\..\..\..\..\temp\csd\ta_ADX.obj: ..\..\..\..\..\src\ta_func\ta_ADX.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_ADX.obj ..\..\..\..\..\src\ta_func\ta_ADX.c + +..\..\..\..\..\temp\csd\ta_ADXR.obj: ..\..\..\..\..\src\ta_func\ta_ADXR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_ADXR.obj ..\..\..\..\..\src\ta_func\ta_ADXR.c + +..\..\..\..\..\temp\csd\ta_APO.obj: ..\..\..\..\..\src\ta_func\ta_APO.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_APO.obj ..\..\..\..\..\src\ta_func\ta_APO.c + +..\..\..\..\..\temp\csd\ta_AROON.obj: ..\..\..\..\..\src\ta_func\ta_AROON.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_AROON.obj ..\..\..\..\..\src\ta_func\ta_AROON.c + +..\..\..\..\..\temp\csd\ta_AROONOSC.obj: ..\..\..\..\..\src\ta_func\ta_AROONOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_AROONOSC.obj ..\..\..\..\..\src\ta_func\ta_AROONOSC.c + +..\..\..\..\..\temp\csd\ta_ASIN.obj: ..\..\..\..\..\src\ta_func\ta_ASIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_ASIN.obj ..\..\..\..\..\src\ta_func\ta_ASIN.c + +..\..\..\..\..\temp\csd\ta_ATAN.obj: ..\..\..\..\..\src\ta_func\ta_ATAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_ATAN.obj ..\..\..\..\..\src\ta_func\ta_ATAN.c + +..\..\..\..\..\temp\csd\ta_ATR.obj: ..\..\..\..\..\src\ta_func\ta_ATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_ATR.obj ..\..\..\..\..\src\ta_func\ta_ATR.c + +..\..\..\..\..\temp\csd\ta_AVGPRICE.obj: ..\..\..\..\..\src\ta_func\ta_AVGPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_AVGPRICE.obj ..\..\..\..\..\src\ta_func\ta_AVGPRICE.c + +..\..\..\..\..\temp\csd\ta_BBANDS.obj: ..\..\..\..\..\src\ta_func\ta_BBANDS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_BBANDS.obj ..\..\..\..\..\src\ta_func\ta_BBANDS.c + +..\..\..\..\..\temp\csd\ta_BETA.obj: ..\..\..\..\..\src\ta_func\ta_BETA.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_BETA.obj ..\..\..\..\..\src\ta_func\ta_BETA.c + +..\..\..\..\..\temp\csd\ta_BOP.obj: ..\..\..\..\..\src\ta_func\ta_BOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_BOP.obj ..\..\..\..\..\src\ta_func\ta_BOP.c + +..\..\..\..\..\temp\csd\ta_CCI.obj: ..\..\..\..\..\src\ta_func\ta_CCI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CCI.obj ..\..\..\..\..\src\ta_func\ta_CCI.c + +..\..\..\..\..\temp\csd\ta_CDL2CROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDL2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CDL2CROWS.obj ..\..\..\..\..\src\ta_func\ta_CDL2CROWS.c + +..\..\..\..\..\temp\csd\ta_CDL3BLACKCROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDL3BLACKCROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CDL3BLACKCROWS.obj ..\..\..\..\..\src\ta_func\ta_CDL3BLACKCROWS.c + +..\..\..\..\..\temp\csd\ta_CDL3INSIDE.obj: ..\..\..\..\..\src\ta_func\ta_CDL3INSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CDL3INSIDE.obj ..\..\..\..\..\src\ta_func\ta_CDL3INSIDE.c + +..\..\..\..\..\temp\csd\ta_CDL3LINESTRIKE.obj: ..\..\..\..\..\src\ta_func\ta_CDL3LINESTRIKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CDL3LINESTRIKE.obj ..\..\..\..\..\src\ta_func\ta_CDL3LINESTRIKE.c + +..\..\..\..\..\temp\csd\ta_CDL3OUTSIDE.obj: ..\..\..\..\..\src\ta_func\ta_CDL3OUTSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CDL3OUTSIDE.obj ..\..\..\..\..\src\ta_func\ta_CDL3OUTSIDE.c + +..\..\..\..\..\temp\csd\ta_CDL3STARSINSOUTH.obj: ..\..\..\..\..\src\ta_func\ta_CDL3STARSINSOUTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CDL3STARSINSOUTH.obj ..\..\..\..\..\src\ta_func\ta_CDL3STARSINSOUTH.c + +..\..\..\..\..\temp\csd\ta_CDL3WHITESOLDIERS.obj: ..\..\..\..\..\src\ta_func\ta_CDL3WHITESOLDIERS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CDL3WHITESOLDIERS.obj ..\..\..\..\..\src\ta_func\ta_CDL3WHITESOLDIERS.c + +..\..\..\..\..\temp\csd\ta_CDLABANDONEDBABY.obj: ..\..\..\..\..\src\ta_func\ta_CDLABANDONEDBABY.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CDLABANDONEDBABY.obj ..\..\..\..\..\src\ta_func\ta_CDLABANDONEDBABY.c + +..\..\..\..\..\temp\csd\ta_CDLADVANCEBLOCK.obj: ..\..\..\..\..\src\ta_func\ta_CDLADVANCEBLOCK.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CDLADVANCEBLOCK.obj ..\..\..\..\..\src\ta_func\ta_CDLADVANCEBLOCK.c + +..\..\..\..\..\temp\csd\ta_CDLBELTHOLD.obj: ..\..\..\..\..\src\ta_func\ta_CDLBELTHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CDLBELTHOLD.obj ..\..\..\..\..\src\ta_func\ta_CDLBELTHOLD.c + +..\..\..\..\..\temp\csd\ta_CDLBREAKAWAY.obj: ..\..\..\..\..\src\ta_func\ta_CDLBREAKAWAY.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CDLBREAKAWAY.obj ..\..\..\..\..\src\ta_func\ta_CDLBREAKAWAY.c + +..\..\..\..\..\temp\csd\ta_CDLCLOSINGMARUBOZU.obj: ..\..\..\..\..\src\ta_func\ta_CDLCLOSINGMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CDLCLOSINGMARUBOZU.obj ..\..\..\..\..\src\ta_func\ta_CDLCLOSINGMARUBOZU.c + +..\..\..\..\..\temp\csd\ta_CDLCONCEALBABYSWALL.obj: ..\..\..\..\..\src\ta_func\ta_CDLCONCEALBABYSWALL.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CDLCONCEALBABYSWALL.obj ..\..\..\..\..\src\ta_func\ta_CDLCONCEALBABYSWALL.c + +..\..\..\..\..\temp\csd\ta_CDLCOUNTERATTACK.obj: ..\..\..\..\..\src\ta_func\ta_CDLCOUNTERATTACK.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CDLCOUNTERATTACK.obj ..\..\..\..\..\src\ta_func\ta_CDLCOUNTERATTACK.c + +..\..\..\..\..\temp\csd\ta_CDLDARKCLOUDCOVER.obj: ..\..\..\..\..\src\ta_func\ta_CDLDARKCLOUDCOVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CDLDARKCLOUDCOVER.obj ..\..\..\..\..\src\ta_func\ta_CDLDARKCLOUDCOVER.c + +..\..\..\..\..\temp\csd\ta_CDLDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CDLDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLDOJI.c + +..\..\..\..\..\temp\csd\ta_CDLDOJISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CDLDOJISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLDOJISTAR.c + +..\..\..\..\..\temp\csd\ta_CDLDRAGONFLYDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLDRAGONFLYDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CDLDRAGONFLYDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLDRAGONFLYDOJI.c + +..\..\..\..\..\temp\csd\ta_CDLENGULFING.obj: ..\..\..\..\..\src\ta_func\ta_CDLENGULFING.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CDLENGULFING.obj ..\..\..\..\..\src\ta_func\ta_CDLENGULFING.c + +..\..\..\..\..\temp\csd\ta_CDLEVENINGDOJISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLEVENINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CDLEVENINGDOJISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLEVENINGDOJISTAR.c + +..\..\..\..\..\temp\csd\ta_CDLEVENINGSTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLEVENINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CDLEVENINGSTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLEVENINGSTAR.c + +..\..\..\..\..\temp\csd\ta_CDLGAPSIDESIDEWHITE.obj: ..\..\..\..\..\src\ta_func\ta_CDLGAPSIDESIDEWHITE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CDLGAPSIDESIDEWHITE.obj ..\..\..\..\..\src\ta_func\ta_CDLGAPSIDESIDEWHITE.c + +..\..\..\..\..\temp\csd\ta_CDLGRAVESTONEDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLGRAVESTONEDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CDLGRAVESTONEDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLGRAVESTONEDOJI.c + +..\..\..\..\..\temp\csd\ta_CDLHAMMER.obj: ..\..\..\..\..\src\ta_func\ta_CDLHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CDLHAMMER.obj ..\..\..\..\..\src\ta_func\ta_CDLHAMMER.c + +..\..\..\..\..\temp\csd\ta_CDLHANGINGMAN.obj: ..\..\..\..\..\src\ta_func\ta_CDLHANGINGMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CDLHANGINGMAN.obj ..\..\..\..\..\src\ta_func\ta_CDLHANGINGMAN.c + +..\..\..\..\..\temp\csd\ta_CDLHARAMI.obj: ..\..\..\..\..\src\ta_func\ta_CDLHARAMI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CDLHARAMI.obj ..\..\..\..\..\src\ta_func\ta_CDLHARAMI.c + +..\..\..\..\..\temp\csd\ta_CDLHARAMICROSS.obj: ..\..\..\..\..\src\ta_func\ta_CDLHARAMICROSS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CDLHARAMICROSS.obj ..\..\..\..\..\src\ta_func\ta_CDLHARAMICROSS.c + +..\..\..\..\..\temp\csd\ta_CDLHIGHWAVE.obj: ..\..\..\..\..\src\ta_func\ta_CDLHIGHWAVE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CDLHIGHWAVE.obj ..\..\..\..\..\src\ta_func\ta_CDLHIGHWAVE.c + +..\..\..\..\..\temp\csd\ta_CDLHIKKAKE.obj: ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CDLHIKKAKE.obj ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKE.c + +..\..\..\..\..\temp\csd\ta_CDLHIKKAKEMOD.obj: ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKEMOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CDLHIKKAKEMOD.obj ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKEMOD.c + +..\..\..\..\..\temp\csd\ta_CDLHOMINGPIGEON.obj: ..\..\..\..\..\src\ta_func\ta_CDLHOMINGPIGEON.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CDLHOMINGPIGEON.obj ..\..\..\..\..\src\ta_func\ta_CDLHOMINGPIGEON.c + +..\..\..\..\..\temp\csd\ta_CDLIDENTICAL3CROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDLIDENTICAL3CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CDLIDENTICAL3CROWS.obj ..\..\..\..\..\src\ta_func\ta_CDLIDENTICAL3CROWS.c + +..\..\..\..\..\temp\csd\ta_CDLINNECK.obj: ..\..\..\..\..\src\ta_func\ta_CDLINNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CDLINNECK.obj ..\..\..\..\..\src\ta_func\ta_CDLINNECK.c + +..\..\..\..\..\temp\csd\ta_CDLINVERTEDHAMMER.obj: ..\..\..\..\..\src\ta_func\ta_CDLINVERTEDHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CDLINVERTEDHAMMER.obj ..\..\..\..\..\src\ta_func\ta_CDLINVERTEDHAMMER.c + +..\..\..\..\..\temp\csd\ta_CDLKICKING.obj: ..\..\..\..\..\src\ta_func\ta_CDLKICKING.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CDLKICKING.obj ..\..\..\..\..\src\ta_func\ta_CDLKICKING.c + +..\..\..\..\..\temp\csd\ta_CDLKICKINGBYLENGTH.obj: ..\..\..\..\..\src\ta_func\ta_CDLKICKINGBYLENGTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CDLKICKINGBYLENGTH.obj ..\..\..\..\..\src\ta_func\ta_CDLKICKINGBYLENGTH.c + +..\..\..\..\..\temp\csd\ta_CDLLADDERBOTTOM.obj: ..\..\..\..\..\src\ta_func\ta_CDLLADDERBOTTOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CDLLADDERBOTTOM.obj ..\..\..\..\..\src\ta_func\ta_CDLLADDERBOTTOM.c + +..\..\..\..\..\temp\csd\ta_CDLLONGLEGGEDDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLLONGLEGGEDDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CDLLONGLEGGEDDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLLONGLEGGEDDOJI.c + +..\..\..\..\..\temp\csd\ta_CDLLONGLINE.obj: ..\..\..\..\..\src\ta_func\ta_CDLLONGLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CDLLONGLINE.obj ..\..\..\..\..\src\ta_func\ta_CDLLONGLINE.c + +..\..\..\..\..\temp\csd\ta_CDLMARUBOZU.obj: ..\..\..\..\..\src\ta_func\ta_CDLMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CDLMARUBOZU.obj ..\..\..\..\..\src\ta_func\ta_CDLMARUBOZU.c + +..\..\..\..\..\temp\csd\ta_CDLMATCHINGLOW.obj: ..\..\..\..\..\src\ta_func\ta_CDLMATCHINGLOW.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CDLMATCHINGLOW.obj ..\..\..\..\..\src\ta_func\ta_CDLMATCHINGLOW.c + +..\..\..\..\..\temp\csd\ta_CDLMATHOLD.obj: ..\..\..\..\..\src\ta_func\ta_CDLMATHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CDLMATHOLD.obj ..\..\..\..\..\src\ta_func\ta_CDLMATHOLD.c + +..\..\..\..\..\temp\csd\ta_CDLMORNINGDOJISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLMORNINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CDLMORNINGDOJISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLMORNINGDOJISTAR.c + +..\..\..\..\..\temp\csd\ta_CDLMORNINGSTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLMORNINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CDLMORNINGSTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLMORNINGSTAR.c + +..\..\..\..\..\temp\csd\ta_CDLONNECK.obj: ..\..\..\..\..\src\ta_func\ta_CDLONNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CDLONNECK.obj ..\..\..\..\..\src\ta_func\ta_CDLONNECK.c + +..\..\..\..\..\temp\csd\ta_CDLPIERCING.obj: ..\..\..\..\..\src\ta_func\ta_CDLPIERCING.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CDLPIERCING.obj ..\..\..\..\..\src\ta_func\ta_CDLPIERCING.c + +..\..\..\..\..\temp\csd\ta_CDLRICKSHAWMAN.obj: ..\..\..\..\..\src\ta_func\ta_CDLRICKSHAWMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CDLRICKSHAWMAN.obj ..\..\..\..\..\src\ta_func\ta_CDLRICKSHAWMAN.c + +..\..\..\..\..\temp\csd\ta_CDLRISEFALL3METHODS.obj: ..\..\..\..\..\src\ta_func\ta_CDLRISEFALL3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CDLRISEFALL3METHODS.obj ..\..\..\..\..\src\ta_func\ta_CDLRISEFALL3METHODS.c + +..\..\..\..\..\temp\csd\ta_CDLSEPARATINGLINES.obj: ..\..\..\..\..\src\ta_func\ta_CDLSEPARATINGLINES.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CDLSEPARATINGLINES.obj ..\..\..\..\..\src\ta_func\ta_CDLSEPARATINGLINES.c + +..\..\..\..\..\temp\csd\ta_CDLSHOOTINGSTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLSHOOTINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CDLSHOOTINGSTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLSHOOTINGSTAR.c + +..\..\..\..\..\temp\csd\ta_CDLSHORTLINE.obj: ..\..\..\..\..\src\ta_func\ta_CDLSHORTLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CDLSHORTLINE.obj ..\..\..\..\..\src\ta_func\ta_CDLSHORTLINE.c + +..\..\..\..\..\temp\csd\ta_CDLSPINNINGTOP.obj: ..\..\..\..\..\src\ta_func\ta_CDLSPINNINGTOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CDLSPINNINGTOP.obj ..\..\..\..\..\src\ta_func\ta_CDLSPINNINGTOP.c + +..\..\..\..\..\temp\csd\ta_CDLSTALLEDPATTERN.obj: ..\..\..\..\..\src\ta_func\ta_CDLSTALLEDPATTERN.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CDLSTALLEDPATTERN.obj ..\..\..\..\..\src\ta_func\ta_CDLSTALLEDPATTERN.c + +..\..\..\..\..\temp\csd\ta_CDLSTICKSANDWICH.obj: ..\..\..\..\..\src\ta_func\ta_CDLSTICKSANDWICH.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CDLSTICKSANDWICH.obj ..\..\..\..\..\src\ta_func\ta_CDLSTICKSANDWICH.c + +..\..\..\..\..\temp\csd\ta_CDLTAKURI.obj: ..\..\..\..\..\src\ta_func\ta_CDLTAKURI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CDLTAKURI.obj ..\..\..\..\..\src\ta_func\ta_CDLTAKURI.c + +..\..\..\..\..\temp\csd\ta_CDLTASUKIGAP.obj: ..\..\..\..\..\src\ta_func\ta_CDLTASUKIGAP.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CDLTASUKIGAP.obj ..\..\..\..\..\src\ta_func\ta_CDLTASUKIGAP.c + +..\..\..\..\..\temp\csd\ta_CDLTHRUSTING.obj: ..\..\..\..\..\src\ta_func\ta_CDLTHRUSTING.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CDLTHRUSTING.obj ..\..\..\..\..\src\ta_func\ta_CDLTHRUSTING.c + +..\..\..\..\..\temp\csd\ta_CDLTRISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLTRISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CDLTRISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLTRISTAR.c + +..\..\..\..\..\temp\csd\ta_CDLUNIQUE3RIVER.obj: ..\..\..\..\..\src\ta_func\ta_CDLUNIQUE3RIVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CDLUNIQUE3RIVER.obj ..\..\..\..\..\src\ta_func\ta_CDLUNIQUE3RIVER.c + +..\..\..\..\..\temp\csd\ta_CDLUPSIDEGAP2CROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDLUPSIDEGAP2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CDLUPSIDEGAP2CROWS.obj ..\..\..\..\..\src\ta_func\ta_CDLUPSIDEGAP2CROWS.c + +..\..\..\..\..\temp\csd\ta_CDLXSIDEGAP3METHODS.obj: ..\..\..\..\..\src\ta_func\ta_CDLXSIDEGAP3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CDLXSIDEGAP3METHODS.obj ..\..\..\..\..\src\ta_func\ta_CDLXSIDEGAP3METHODS.c + +..\..\..\..\..\temp\csd\ta_CEIL.obj: ..\..\..\..\..\src\ta_func\ta_CEIL.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CEIL.obj ..\..\..\..\..\src\ta_func\ta_CEIL.c + +..\..\..\..\..\temp\csd\ta_CMO.obj: ..\..\..\..\..\src\ta_func\ta_CMO.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CMO.obj ..\..\..\..\..\src\ta_func\ta_CMO.c + +..\..\..\..\..\temp\csd\ta_CORREL.obj: ..\..\..\..\..\src\ta_func\ta_CORREL.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_CORREL.obj ..\..\..\..\..\src\ta_func\ta_CORREL.c + +..\..\..\..\..\temp\csd\ta_COS.obj: ..\..\..\..\..\src\ta_func\ta_COS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_COS.obj ..\..\..\..\..\src\ta_func\ta_COS.c + +..\..\..\..\..\temp\csd\ta_COSH.obj: ..\..\..\..\..\src\ta_func\ta_COSH.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_COSH.obj ..\..\..\..\..\src\ta_func\ta_COSH.c + +..\..\..\..\..\temp\csd\ta_DEMA.obj: ..\..\..\..\..\src\ta_func\ta_DEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_DEMA.obj ..\..\..\..\..\src\ta_func\ta_DEMA.c + +..\..\..\..\..\temp\csd\ta_DIV.obj: ..\..\..\..\..\src\ta_func\ta_DIV.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_DIV.obj ..\..\..\..\..\src\ta_func\ta_DIV.c + +..\..\..\..\..\temp\csd\ta_DX.obj: ..\..\..\..\..\src\ta_func\ta_DX.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_DX.obj ..\..\..\..\..\src\ta_func\ta_DX.c + +..\..\..\..\..\temp\csd\ta_EMA.obj: ..\..\..\..\..\src\ta_func\ta_EMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_EMA.obj ..\..\..\..\..\src\ta_func\ta_EMA.c + +..\..\..\..\..\temp\csd\ta_EXP.obj: ..\..\..\..\..\src\ta_func\ta_EXP.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_EXP.obj ..\..\..\..\..\src\ta_func\ta_EXP.c + +..\..\..\..\..\temp\csd\ta_FLOOR.obj: ..\..\..\..\..\src\ta_func\ta_FLOOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_FLOOR.obj ..\..\..\..\..\src\ta_func\ta_FLOOR.c + +..\..\..\..\..\temp\csd\ta_HT_DCPERIOD.obj: ..\..\..\..\..\src\ta_func\ta_HT_DCPERIOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_HT_DCPERIOD.obj ..\..\..\..\..\src\ta_func\ta_HT_DCPERIOD.c + +..\..\..\..\..\temp\csd\ta_HT_DCPHASE.obj: ..\..\..\..\..\src\ta_func\ta_HT_DCPHASE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_HT_DCPHASE.obj ..\..\..\..\..\src\ta_func\ta_HT_DCPHASE.c + +..\..\..\..\..\temp\csd\ta_HT_PHASOR.obj: ..\..\..\..\..\src\ta_func\ta_HT_PHASOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_HT_PHASOR.obj ..\..\..\..\..\src\ta_func\ta_HT_PHASOR.c + +..\..\..\..\..\temp\csd\ta_HT_SINE.obj: ..\..\..\..\..\src\ta_func\ta_HT_SINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_HT_SINE.obj ..\..\..\..\..\src\ta_func\ta_HT_SINE.c + +..\..\..\..\..\temp\csd\ta_HT_TRENDLINE.obj: ..\..\..\..\..\src\ta_func\ta_HT_TRENDLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_HT_TRENDLINE.obj ..\..\..\..\..\src\ta_func\ta_HT_TRENDLINE.c + +..\..\..\..\..\temp\csd\ta_HT_TRENDMODE.obj: ..\..\..\..\..\src\ta_func\ta_HT_TRENDMODE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_HT_TRENDMODE.obj ..\..\..\..\..\src\ta_func\ta_HT_TRENDMODE.c + +..\..\..\..\..\temp\csd\ta_KAMA.obj: ..\..\..\..\..\src\ta_func\ta_KAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_KAMA.obj ..\..\..\..\..\src\ta_func\ta_KAMA.c + +..\..\..\..\..\temp\csd\ta_LINEARREG.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_LINEARREG.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG.c + +..\..\..\..\..\temp\csd\ta_LINEARREG_ANGLE.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG_ANGLE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_LINEARREG_ANGLE.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG_ANGLE.c + +..\..\..\..\..\temp\csd\ta_LINEARREG_INTERCEPT.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG_INTERCEPT.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_LINEARREG_INTERCEPT.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG_INTERCEPT.c + +..\..\..\..\..\temp\csd\ta_LINEARREG_SLOPE.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG_SLOPE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_LINEARREG_SLOPE.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG_SLOPE.c + +..\..\..\..\..\temp\csd\ta_LN.obj: ..\..\..\..\..\src\ta_func\ta_LN.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_LN.obj ..\..\..\..\..\src\ta_func\ta_LN.c + +..\..\..\..\..\temp\csd\ta_LOG10.obj: ..\..\..\..\..\src\ta_func\ta_LOG10.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_LOG10.obj ..\..\..\..\..\src\ta_func\ta_LOG10.c + +..\..\..\..\..\temp\csd\ta_MA.obj: ..\..\..\..\..\src\ta_func\ta_MA.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_MA.obj ..\..\..\..\..\src\ta_func\ta_MA.c + +..\..\..\..\..\temp\csd\ta_MACD.obj: ..\..\..\..\..\src\ta_func\ta_MACD.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_MACD.obj ..\..\..\..\..\src\ta_func\ta_MACD.c + +..\..\..\..\..\temp\csd\ta_MACDEXT.obj: ..\..\..\..\..\src\ta_func\ta_MACDEXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_MACDEXT.obj ..\..\..\..\..\src\ta_func\ta_MACDEXT.c + +..\..\..\..\..\temp\csd\ta_MACDFIX.obj: ..\..\..\..\..\src\ta_func\ta_MACDFIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_MACDFIX.obj ..\..\..\..\..\src\ta_func\ta_MACDFIX.c + +..\..\..\..\..\temp\csd\ta_MAMA.obj: ..\..\..\..\..\src\ta_func\ta_MAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_MAMA.obj ..\..\..\..\..\src\ta_func\ta_MAMA.c + +..\..\..\..\..\temp\csd\ta_MAVP.obj: ..\..\..\..\..\src\ta_func\ta_MAVP.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_MAVP.obj ..\..\..\..\..\src\ta_func\ta_MAVP.c + +..\..\..\..\..\temp\csd\ta_MAX.obj: ..\..\..\..\..\src\ta_func\ta_MAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_MAX.obj ..\..\..\..\..\src\ta_func\ta_MAX.c + +..\..\..\..\..\temp\csd\ta_MAXINDEX.obj: ..\..\..\..\..\src\ta_func\ta_MAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_MAXINDEX.obj ..\..\..\..\..\src\ta_func\ta_MAXINDEX.c + +..\..\..\..\..\temp\csd\ta_MEDPRICE.obj: ..\..\..\..\..\src\ta_func\ta_MEDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_MEDPRICE.obj ..\..\..\..\..\src\ta_func\ta_MEDPRICE.c + +..\..\..\..\..\temp\csd\ta_MFI.obj: ..\..\..\..\..\src\ta_func\ta_MFI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_MFI.obj ..\..\..\..\..\src\ta_func\ta_MFI.c + +..\..\..\..\..\temp\csd\ta_MIDPOINT.obj: ..\..\..\..\..\src\ta_func\ta_MIDPOINT.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_MIDPOINT.obj ..\..\..\..\..\src\ta_func\ta_MIDPOINT.c + +..\..\..\..\..\temp\csd\ta_MIDPRICE.obj: ..\..\..\..\..\src\ta_func\ta_MIDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_MIDPRICE.obj ..\..\..\..\..\src\ta_func\ta_MIDPRICE.c + +..\..\..\..\..\temp\csd\ta_MIN.obj: ..\..\..\..\..\src\ta_func\ta_MIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_MIN.obj ..\..\..\..\..\src\ta_func\ta_MIN.c + +..\..\..\..\..\temp\csd\ta_MININDEX.obj: ..\..\..\..\..\src\ta_func\ta_MININDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_MININDEX.obj ..\..\..\..\..\src\ta_func\ta_MININDEX.c + +..\..\..\..\..\temp\csd\ta_MINMAX.obj: ..\..\..\..\..\src\ta_func\ta_MINMAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_MINMAX.obj ..\..\..\..\..\src\ta_func\ta_MINMAX.c + +..\..\..\..\..\temp\csd\ta_MINMAXINDEX.obj: ..\..\..\..\..\src\ta_func\ta_MINMAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_MINMAXINDEX.obj ..\..\..\..\..\src\ta_func\ta_MINMAXINDEX.c + +..\..\..\..\..\temp\csd\ta_MINUS_DI.obj: ..\..\..\..\..\src\ta_func\ta_MINUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_MINUS_DI.obj ..\..\..\..\..\src\ta_func\ta_MINUS_DI.c + +..\..\..\..\..\temp\csd\ta_MINUS_DM.obj: ..\..\..\..\..\src\ta_func\ta_MINUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_MINUS_DM.obj ..\..\..\..\..\src\ta_func\ta_MINUS_DM.c + +..\..\..\..\..\temp\csd\ta_MOM.obj: ..\..\..\..\..\src\ta_func\ta_MOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_MOM.obj ..\..\..\..\..\src\ta_func\ta_MOM.c + +..\..\..\..\..\temp\csd\ta_MULT.obj: ..\..\..\..\..\src\ta_func\ta_MULT.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_MULT.obj ..\..\..\..\..\src\ta_func\ta_MULT.c + +..\..\..\..\..\temp\csd\ta_NATR.obj: ..\..\..\..\..\src\ta_func\ta_NATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_NATR.obj ..\..\..\..\..\src\ta_func\ta_NATR.c + +..\..\..\..\..\temp\csd\ta_OBV.obj: ..\..\..\..\..\src\ta_func\ta_OBV.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_OBV.obj ..\..\..\..\..\src\ta_func\ta_OBV.c + +..\..\..\..\..\temp\csd\ta_PLUS_DI.obj: ..\..\..\..\..\src\ta_func\ta_PLUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_PLUS_DI.obj ..\..\..\..\..\src\ta_func\ta_PLUS_DI.c + +..\..\..\..\..\temp\csd\ta_PLUS_DM.obj: ..\..\..\..\..\src\ta_func\ta_PLUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_PLUS_DM.obj ..\..\..\..\..\src\ta_func\ta_PLUS_DM.c + +..\..\..\..\..\temp\csd\ta_PPO.obj: ..\..\..\..\..\src\ta_func\ta_PPO.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_PPO.obj ..\..\..\..\..\src\ta_func\ta_PPO.c + +..\..\..\..\..\temp\csd\ta_ROC.obj: ..\..\..\..\..\src\ta_func\ta_ROC.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_ROC.obj ..\..\..\..\..\src\ta_func\ta_ROC.c + +..\..\..\..\..\temp\csd\ta_ROCP.obj: ..\..\..\..\..\src\ta_func\ta_ROCP.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_ROCP.obj ..\..\..\..\..\src\ta_func\ta_ROCP.c + +..\..\..\..\..\temp\csd\ta_ROCR.obj: ..\..\..\..\..\src\ta_func\ta_ROCR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_ROCR.obj ..\..\..\..\..\src\ta_func\ta_ROCR.c + +..\..\..\..\..\temp\csd\ta_ROCR100.obj: ..\..\..\..\..\src\ta_func\ta_ROCR100.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_ROCR100.obj ..\..\..\..\..\src\ta_func\ta_ROCR100.c + +..\..\..\..\..\temp\csd\ta_RSI.obj: ..\..\..\..\..\src\ta_func\ta_RSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_RSI.obj ..\..\..\..\..\src\ta_func\ta_RSI.c + +..\..\..\..\..\temp\csd\ta_SAR.obj: ..\..\..\..\..\src\ta_func\ta_SAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_SAR.obj ..\..\..\..\..\src\ta_func\ta_SAR.c + +..\..\..\..\..\temp\csd\ta_SAREXT.obj: ..\..\..\..\..\src\ta_func\ta_SAREXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_SAREXT.obj ..\..\..\..\..\src\ta_func\ta_SAREXT.c + +..\..\..\..\..\temp\csd\ta_SIN.obj: ..\..\..\..\..\src\ta_func\ta_SIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_SIN.obj ..\..\..\..\..\src\ta_func\ta_SIN.c + +..\..\..\..\..\temp\csd\ta_SINH.obj: ..\..\..\..\..\src\ta_func\ta_SINH.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_SINH.obj ..\..\..\..\..\src\ta_func\ta_SINH.c + +..\..\..\..\..\temp\csd\ta_SMA.obj: ..\..\..\..\..\src\ta_func\ta_SMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_SMA.obj ..\..\..\..\..\src\ta_func\ta_SMA.c + +..\..\..\..\..\temp\csd\ta_SQRT.obj: ..\..\..\..\..\src\ta_func\ta_SQRT.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_SQRT.obj ..\..\..\..\..\src\ta_func\ta_SQRT.c + +..\..\..\..\..\temp\csd\ta_STDDEV.obj: ..\..\..\..\..\src\ta_func\ta_STDDEV.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_STDDEV.obj ..\..\..\..\..\src\ta_func\ta_STDDEV.c + +..\..\..\..\..\temp\csd\ta_STOCH.obj: ..\..\..\..\..\src\ta_func\ta_STOCH.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_STOCH.obj ..\..\..\..\..\src\ta_func\ta_STOCH.c + +..\..\..\..\..\temp\csd\ta_STOCHF.obj: ..\..\..\..\..\src\ta_func\ta_STOCHF.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_STOCHF.obj ..\..\..\..\..\src\ta_func\ta_STOCHF.c + +..\..\..\..\..\temp\csd\ta_STOCHRSI.obj: ..\..\..\..\..\src\ta_func\ta_STOCHRSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_STOCHRSI.obj ..\..\..\..\..\src\ta_func\ta_STOCHRSI.c + +..\..\..\..\..\temp\csd\ta_SUB.obj: ..\..\..\..\..\src\ta_func\ta_SUB.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_SUB.obj ..\..\..\..\..\src\ta_func\ta_SUB.c + +..\..\..\..\..\temp\csd\ta_SUM.obj: ..\..\..\..\..\src\ta_func\ta_SUM.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_SUM.obj ..\..\..\..\..\src\ta_func\ta_SUM.c + +..\..\..\..\..\temp\csd\ta_T3.obj: ..\..\..\..\..\src\ta_func\ta_T3.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_T3.obj ..\..\..\..\..\src\ta_func\ta_T3.c + +..\..\..\..\..\temp\csd\ta_TAN.obj: ..\..\..\..\..\src\ta_func\ta_TAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_TAN.obj ..\..\..\..\..\src\ta_func\ta_TAN.c + +..\..\..\..\..\temp\csd\ta_TANH.obj: ..\..\..\..\..\src\ta_func\ta_TANH.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_TANH.obj ..\..\..\..\..\src\ta_func\ta_TANH.c + +..\..\..\..\..\temp\csd\ta_TEMA.obj: ..\..\..\..\..\src\ta_func\ta_TEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_TEMA.obj ..\..\..\..\..\src\ta_func\ta_TEMA.c + +..\..\..\..\..\temp\csd\ta_TRANGE.obj: ..\..\..\..\..\src\ta_func\ta_TRANGE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_TRANGE.obj ..\..\..\..\..\src\ta_func\ta_TRANGE.c + +..\..\..\..\..\temp\csd\ta_TRIMA.obj: ..\..\..\..\..\src\ta_func\ta_TRIMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_TRIMA.obj ..\..\..\..\..\src\ta_func\ta_TRIMA.c + +..\..\..\..\..\temp\csd\ta_TRIX.obj: ..\..\..\..\..\src\ta_func\ta_TRIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_TRIX.obj ..\..\..\..\..\src\ta_func\ta_TRIX.c + +..\..\..\..\..\temp\csd\ta_TSF.obj: ..\..\..\..\..\src\ta_func\ta_TSF.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_TSF.obj ..\..\..\..\..\src\ta_func\ta_TSF.c + +..\..\..\..\..\temp\csd\ta_TYPPRICE.obj: ..\..\..\..\..\src\ta_func\ta_TYPPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_TYPPRICE.obj ..\..\..\..\..\src\ta_func\ta_TYPPRICE.c + +..\..\..\..\..\temp\csd\ta_ULTOSC.obj: ..\..\..\..\..\src\ta_func\ta_ULTOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_ULTOSC.obj ..\..\..\..\..\src\ta_func\ta_ULTOSC.c + +..\..\..\..\..\temp\csd\ta_VAR.obj: ..\..\..\..\..\src\ta_func\ta_VAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_VAR.obj ..\..\..\..\..\src\ta_func\ta_VAR.c + +..\..\..\..\..\temp\csd\ta_WCLPRICE.obj: ..\..\..\..\..\src\ta_func\ta_WCLPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_WCLPRICE.obj ..\..\..\..\..\src\ta_func\ta_WCLPRICE.c + +..\..\..\..\..\temp\csd\ta_WILLR.obj: ..\..\..\..\..\src\ta_func\ta_WILLR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_WILLR.obj ..\..\..\..\..\src\ta_func\ta_WILLR.c + +..\..\..\..\..\temp\csd\ta_WMA.obj: ..\..\..\..\..\src\ta_func\ta_WMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_WMA.obj ..\..\..\..\..\src\ta_func\ta_WMA.c + diff --git a/make/csd/win32/msvc/ta_regtest/Makefile b/make/csd/win32/msvc/ta_regtest/Makefile new file mode 100644 index 000000000..e3c410530 --- /dev/null +++ b/make/csd/win32/msvc/ta_regtest/Makefile @@ -0,0 +1,239 @@ +############################################################################# +# Makefile for building ta_regtest +# Generated by tmake; +# Project: ta_regtest/ta_regtest +# Template: app +############################################################################# + +####### Compiler, tools and options + +CC = cl +CXX = cl +CFLAGS = -nologo -W3 -Zi -DTA_DEBUG -D_DEBUG -DTA_SINGLE_THREAD -DWIN32 -D_MBCS -D_LIB +CXXFLAGS= -nologo -W3 -Zi -DTA_DEBUG -D_DEBUG -DTA_SINGLE_THREAD -DWIN32 -D_MBCS -D_LIB +INCPATH = -I"..\..\..\..\..\src\ta_common" -I"..\..\..\..\..\src\tools\ta_regtest" -I"..\..\..\..\..\src\ta_func" -I"..\..\..\..\..\include" +LINK = link +LFLAGS = /NOLOGO /DEBUG /SUBSYSTEM:console +LIBS = ..\..\..\..\..\lib\ta_libc_csd.lib +MOC = moc +UIC = uic + +ZIP = zip -r -9 + +####### Files + +HEADERS = +SOURCES = ..\..\..\..\..\src\tools\ta_regtest\ta_regtest.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_candlestick.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_1in_1out.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_1in_2out.c \ + ..\..\..\..\..\src\tools\ta_regtest\test_internals.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_adx.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_bbands.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_ma.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_macd.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_minmax.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_mom.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_ema.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hl.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hlc.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hlcv.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_ohlc.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_po.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_rsi.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_sar.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_stddev.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_stoch.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_trange.c \ + ..\..\..\..\..\src\tools\ta_regtest\test_util.c \ + ..\..\..\..\..\src\tools\ta_regtest\test_data.c \ + ..\..\..\..\..\src\tools\ta_regtest\test_abstract.c +OBJECTS = ..\..\..\..\..\temp\csd\ta_regtest.obj \ + ..\..\..\..\..\temp\csd\test_candlestick.obj \ + ..\..\..\..\..\temp\csd\test_1in_1out.obj \ + ..\..\..\..\..\temp\csd\test_1in_2out.obj \ + ..\..\..\..\..\temp\csd\test_internals.obj \ + ..\..\..\..\..\temp\csd\test_adx.obj \ + ..\..\..\..\..\temp\csd\test_bbands.obj \ + ..\..\..\..\..\temp\csd\test_ma.obj \ + ..\..\..\..\..\temp\csd\test_macd.obj \ + ..\..\..\..\..\temp\csd\test_minmax.obj \ + ..\..\..\..\..\temp\csd\test_mom.obj \ + ..\..\..\..\..\temp\csd\test_per_ema.obj \ + ..\..\..\..\..\temp\csd\test_per_hl.obj \ + ..\..\..\..\..\temp\csd\test_per_hlc.obj \ + ..\..\..\..\..\temp\csd\test_per_hlcv.obj \ + ..\..\..\..\..\temp\csd\test_per_ohlc.obj \ + ..\..\..\..\..\temp\csd\test_po.obj \ + ..\..\..\..\..\temp\csd\test_rsi.obj \ + ..\..\..\..\..\temp\csd\test_sar.obj \ + ..\..\..\..\..\temp\csd\test_stddev.obj \ + ..\..\..\..\..\temp\csd\test_stoch.obj \ + ..\..\..\..\..\temp\csd\test_trange.obj \ + ..\..\..\..\..\temp\csd\test_util.obj \ + ..\..\..\..\..\temp\csd\test_data.obj \ + ..\..\..\..\..\temp\csd\test_abstract.obj +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ..\..\..\..\..\bin\ta_regtest.exe +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .c + +.cpp.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $< + +.cxx.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $< + +.cc.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $< + +.c.obj: + $(CC) -c $(CFLAGS) $(INCPATH) -Fo$@ $< + +####### Build rules + +all: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + $(LINK) $(LFLAGS) /OUT:$(TARGET) @<< + $(OBJECTS) $(OBJMOC) $(LIBS) +<< + +moc: $(SRCMOC) + +tmake: ../csd/win32/msvc/ta_regtest/Makefile + +../csd/win32/msvc/ta_regtest/Makefile: ta_regtest/ta_regtest.pro + tmake ta_regtest/ta_regtest.pro -o ../csd/win32/msvc/ta_regtest/Makefile + +dist: + $(ZIP) ta_regtest/ta_regtest.zip ta_regtest/ta_regtest.pro $(SOURCES) $(HEADERS) $(DIST) $(INTERFACES) + +clean: + -del ..\..\..\..\..\temp\csd\ta_regtest.obj + -del ..\..\..\..\..\temp\csd\test_candlestick.obj + -del ..\..\..\..\..\temp\csd\test_1in_1out.obj + -del ..\..\..\..\..\temp\csd\test_1in_2out.obj + -del ..\..\..\..\..\temp\csd\test_internals.obj + -del ..\..\..\..\..\temp\csd\test_adx.obj + -del ..\..\..\..\..\temp\csd\test_bbands.obj + -del ..\..\..\..\..\temp\csd\test_ma.obj + -del ..\..\..\..\..\temp\csd\test_macd.obj + -del ..\..\..\..\..\temp\csd\test_minmax.obj + -del ..\..\..\..\..\temp\csd\test_mom.obj + -del ..\..\..\..\..\temp\csd\test_per_ema.obj + -del ..\..\..\..\..\temp\csd\test_per_hl.obj + -del ..\..\..\..\..\temp\csd\test_per_hlc.obj + -del ..\..\..\..\..\temp\csd\test_per_hlcv.obj + -del ..\..\..\..\..\temp\csd\test_per_ohlc.obj + -del ..\..\..\..\..\temp\csd\test_po.obj + -del ..\..\..\..\..\temp\csd\test_rsi.obj + -del ..\..\..\..\..\temp\csd\test_sar.obj + -del ..\..\..\..\..\temp\csd\test_stddev.obj + -del ..\..\..\..\..\temp\csd\test_stoch.obj + -del ..\..\..\..\..\temp\csd\test_trange.obj + -del ..\..\..\..\..\temp\csd\test_util.obj + -del ..\..\..\..\..\temp\csd\test_data.obj + -del ..\..\..\..\..\temp\csd\test_abstract.obj + -del $(TARGET) + -del ../../../../../bin/*.map + -del ../../../../../bin/*._xe + -del ../../../../../bin/*.tds + -del ../../../../../bin/*.pdb + -del ../../../../../bin/*.pbo + -del ../../../../../bin/*.pbi + -del ../../../../../bin/*.pbt + -del ../../../../../temp/csd/*.pch + -del ../../../../../temp/csd/*.idb + -del ../../../../../temp/csd/ta_regtest/*.pch + -del ../../../../../temp/csd/ta_regtest/*.idb + -del ../../../../../temp/csd/ta_regtest/*.obj + -del ta_regtest.pdb + -del vc*.pdb + -del ta_regtest.ilk + +####### Compile + +..\..\..\..\..\temp\csd\ta_regtest.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_regtest.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\ta_regtest.obj ..\..\..\..\..\src\tools\ta_regtest\ta_regtest.c + +..\..\..\..\..\temp\csd\test_candlestick.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_candlestick.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\test_candlestick.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_candlestick.c + +..\..\..\..\..\temp\csd\test_1in_1out.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_1in_1out.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\test_1in_1out.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_1in_1out.c + +..\..\..\..\..\temp\csd\test_1in_2out.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_1in_2out.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\test_1in_2out.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_1in_2out.c + +..\..\..\..\..\temp\csd\test_internals.obj: ..\..\..\..\..\src\tools\ta_regtest\test_internals.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\test_internals.obj ..\..\..\..\..\src\tools\ta_regtest\test_internals.c + +..\..\..\..\..\temp\csd\test_adx.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_adx.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\test_adx.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_adx.c + +..\..\..\..\..\temp\csd\test_bbands.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_bbands.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\test_bbands.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_bbands.c + +..\..\..\..\..\temp\csd\test_ma.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_ma.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\test_ma.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_ma.c + +..\..\..\..\..\temp\csd\test_macd.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_macd.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\test_macd.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_macd.c + +..\..\..\..\..\temp\csd\test_minmax.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_minmax.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\test_minmax.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_minmax.c + +..\..\..\..\..\temp\csd\test_mom.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_mom.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\test_mom.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_mom.c + +..\..\..\..\..\temp\csd\test_per_ema.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_ema.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\test_per_ema.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_ema.c + +..\..\..\..\..\temp\csd\test_per_hl.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hl.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\test_per_hl.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hl.c + +..\..\..\..\..\temp\csd\test_per_hlc.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hlc.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\test_per_hlc.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hlc.c + +..\..\..\..\..\temp\csd\test_per_hlcv.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hlcv.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\test_per_hlcv.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hlcv.c + +..\..\..\..\..\temp\csd\test_per_ohlc.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_ohlc.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\test_per_ohlc.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_ohlc.c + +..\..\..\..\..\temp\csd\test_po.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_po.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\test_po.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_po.c + +..\..\..\..\..\temp\csd\test_rsi.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_rsi.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\test_rsi.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_rsi.c + +..\..\..\..\..\temp\csd\test_sar.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_sar.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\test_sar.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_sar.c + +..\..\..\..\..\temp\csd\test_stddev.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_stddev.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\test_stddev.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_stddev.c + +..\..\..\..\..\temp\csd\test_stoch.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_stoch.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\test_stoch.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_stoch.c + +..\..\..\..\..\temp\csd\test_trange.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_trange.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\test_trange.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_trange.c + +..\..\..\..\..\temp\csd\test_util.obj: ..\..\..\..\..\src\tools\ta_regtest\test_util.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\test_util.obj ..\..\..\..\..\src\tools\ta_regtest\test_util.c + +..\..\..\..\..\temp\csd\test_data.obj: ..\..\..\..\..\src\tools\ta_regtest\test_data.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\test_data.obj ..\..\..\..\..\src\tools\ta_regtest\test_data.c + +..\..\..\..\..\temp\csd\test_abstract.obj: ..\..\..\..\..\src\tools\ta_regtest\test_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csd\test_abstract.obj ..\..\..\..\..\src\tools\ta_regtest\test_abstract.c + diff --git a/make/csd/win32/symantec/Makefile b/make/csd/win32/symantec/Makefile new file mode 100644 index 000000000..7551bc4f7 --- /dev/null +++ b/make/csd/win32/symantec/Makefile @@ -0,0 +1,97 @@ +############################################################################# +# Makefile for building targets in sub directories. +# Generated by tmake; +# Project: rootmake +# Template: subdirs +############################################################################# + +MAKEFILE= Makefile +TMAKE = tmake + +SUBDIRS = ta_common \ + ta_func \ + ta_abstract \ + ta_libc \ + gen_code \ + ta_regtest + +all: $(SUBDIRS) + +ta_common: FORCE + cd ta_common + $(MAKE) + @cd .. + +ta_func: FORCE + cd ta_func + $(MAKE) + @cd .. + +ta_abstract: FORCE + cd ta_abstract + $(MAKE) + @cd .. + +ta_libc: FORCE + cd ta_libc + $(MAKE) + @cd .. + +gen_code: FORCE + cd gen_code + $(MAKE) + @cd .. + +ta_regtest: FORCE + cd ta_regtest + $(MAKE) + @cd .. + + +tmake: ../csd/win32/symantec/Makefile + +../csd/win32/symantec/Makefile: rootmake.pro + tmake rootmake.pro -o ../csd/win32/symantec/Makefile + +tmake_all: + cd ta_common + $(TMAKE) ta_common.pro -o $(MAKEFILE) + @cd .. + cd ta_func + $(TMAKE) ta_func.pro -o $(MAKEFILE) + @cd .. + cd ta_abstract + $(TMAKE) ta_abstract.pro -o $(MAKEFILE) + @cd .. + cd ta_libc + $(TMAKE) ta_libc.pro -o $(MAKEFILE) + @cd .. + cd gen_code + $(TMAKE) gen_code.pro -o $(MAKEFILE) + @cd .. + cd ta_regtest + $(TMAKE) ta_regtest.pro -o $(MAKEFILE) + @cd .. + + +clean: + cd ta_common + $(MAKE) clean + @cd .. + cd ta_func + $(MAKE) clean + @cd .. + cd ta_abstract + $(MAKE) clean + @cd .. + cd ta_libc + $(MAKE) clean + @cd .. + cd gen_code + $(MAKE) clean + @cd .. + cd ta_regtest + $(MAKE) clean + @cd .. + +FORCE: diff --git a/make/csd/win32/symantec/gen_code/Makefile b/make/csd/win32/symantec/gen_code/Makefile new file mode 100644 index 000000000..efd6da26f --- /dev/null +++ b/make/csd/win32/symantec/gen_code/Makefile @@ -0,0 +1,253 @@ +############################################################################# +# Makefile for building gen_code +# Generated by tmake; +# Project: gen_code/gen_code +# Template: app +############################################################################# + +####### Compiler, tools and options + +CC = sc +CXX = sc +CFLAGS = -mn -w2 -g -DTA_GEN_CODE -DTA_DEBUG -D_DEBUG -DTA_SINGLE_THREAD -DWIN32 +CXXFLAGS= -mn -w2 -g -DTA_GEN_CODE -DTA_DEBUG -D_DEBUG -DTA_SINGLE_THREAD -DWIN32 +INCPATH = -I"..\..\..\..\..\include" -I"..\..\..\..\..\src\ta_common" -I"..\..\..\..\..\src\ta_abstract" -I"..\..\..\..\..\src\ta_abstract\tables" -I"..\..\..\..\..\src\ta_abstract\frames" +LINK = link +LFLAGS = /NOLOGO /NOI /DEBUG /SUBSYSTEM:console +LIBS = ..\..\..\..\..\lib\ta_common_csd.lib +MOC = moc + +ZIP = zip -r -9 + +####### Files + +HEADERS = +SOURCES = ..\..\..\..\..\src\tools\gen_code\gen_code.c \ + ..\..\..\..\..\src\ta_abstract\ta_abstract.c \ + ..\..\..\..\..\src\ta_abstract\ta_def_ui.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_a.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_b.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_c.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_d.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_e.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_f.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_g.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_h.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_i.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_j.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_k.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_l.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_m.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_n.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_o.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_p.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_q.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_r.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_s.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_t.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_u.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_v.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_w.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_x.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_y.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_z.c +OBJECTS = ..\..\..\..\..\temp\csd\gen_code\gen_code.obj \ + ..\..\..\..\..\temp\csd\gen_code\ta_abstract.obj \ + ..\..\..\..\..\temp\csd\gen_code\ta_def_ui.obj \ + ..\..\..\..\..\temp\csd\gen_code\table_a.obj \ + ..\..\..\..\..\temp\csd\gen_code\table_b.obj \ + ..\..\..\..\..\temp\csd\gen_code\table_c.obj \ + ..\..\..\..\..\temp\csd\gen_code\table_d.obj \ + ..\..\..\..\..\temp\csd\gen_code\table_e.obj \ + ..\..\..\..\..\temp\csd\gen_code\table_f.obj \ + ..\..\..\..\..\temp\csd\gen_code\table_g.obj \ + ..\..\..\..\..\temp\csd\gen_code\table_h.obj \ + ..\..\..\..\..\temp\csd\gen_code\table_i.obj \ + ..\..\..\..\..\temp\csd\gen_code\table_j.obj \ + ..\..\..\..\..\temp\csd\gen_code\table_k.obj \ + ..\..\..\..\..\temp\csd\gen_code\table_l.obj \ + ..\..\..\..\..\temp\csd\gen_code\table_m.obj \ + ..\..\..\..\..\temp\csd\gen_code\table_n.obj \ + ..\..\..\..\..\temp\csd\gen_code\table_o.obj \ + ..\..\..\..\..\temp\csd\gen_code\table_p.obj \ + ..\..\..\..\..\temp\csd\gen_code\table_q.obj \ + ..\..\..\..\..\temp\csd\gen_code\table_r.obj \ + ..\..\..\..\..\temp\csd\gen_code\table_s.obj \ + ..\..\..\..\..\temp\csd\gen_code\table_t.obj \ + ..\..\..\..\..\temp\csd\gen_code\table_u.obj \ + ..\..\..\..\..\temp\csd\gen_code\table_v.obj \ + ..\..\..\..\..\temp\csd\gen_code\table_w.obj \ + ..\..\..\..\..\temp\csd\gen_code\table_x.obj \ + ..\..\..\..\..\temp\csd\gen_code\table_y.obj \ + ..\..\..\..\..\temp\csd\gen_code\table_z.obj +SRCMOC = +OBJMOC = +DIST = +TARGET = ..\..\..\..\..\bin\gen_code.exe + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .c + +.cpp.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.cxx.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.cc.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.c.obj: + $(CC) -c $(CFLAGS) $(INCPATH) -o$@ $< + +####### Build rules + +all: $(TARGET) + +$(TARGET): $(OBJECTS) $(OBJMOC) + $(LINK) $(LFLAGS) $(OBJECTS) $(OBJMOC), $(TARGET),, $(LIBS) + +moc: $(SRCMOC) + +tmake: ../csd/win32/symantec/gen_code/Makefile + +../csd/win32/symantec/gen_code/Makefile: gen_code/gen_code.pro + tmake gen_code/gen_code.pro -o ../csd/win32/symantec/gen_code/Makefile + +dist: + $(ZIP) gen_code/gen_code.zip gen_code/gen_code.pro $(SOURCES) $(HEADERS) $(DIST) + +clean: + -del ..\..\..\..\..\temp\csd\gen_code\gen_code.obj + -del ..\..\..\..\..\temp\csd\gen_code\ta_abstract.obj + -del ..\..\..\..\..\temp\csd\gen_code\ta_def_ui.obj + -del ..\..\..\..\..\temp\csd\gen_code\table_a.obj + -del ..\..\..\..\..\temp\csd\gen_code\table_b.obj + -del ..\..\..\..\..\temp\csd\gen_code\table_c.obj + -del ..\..\..\..\..\temp\csd\gen_code\table_d.obj + -del ..\..\..\..\..\temp\csd\gen_code\table_e.obj + -del ..\..\..\..\..\temp\csd\gen_code\table_f.obj + -del ..\..\..\..\..\temp\csd\gen_code\table_g.obj + -del ..\..\..\..\..\temp\csd\gen_code\table_h.obj + -del ..\..\..\..\..\temp\csd\gen_code\table_i.obj + -del ..\..\..\..\..\temp\csd\gen_code\table_j.obj + -del ..\..\..\..\..\temp\csd\gen_code\table_k.obj + -del ..\..\..\..\..\temp\csd\gen_code\table_l.obj + -del ..\..\..\..\..\temp\csd\gen_code\table_m.obj + -del ..\..\..\..\..\temp\csd\gen_code\table_n.obj + -del ..\..\..\..\..\temp\csd\gen_code\table_o.obj + -del ..\..\..\..\..\temp\csd\gen_code\table_p.obj + -del ..\..\..\..\..\temp\csd\gen_code\table_q.obj + -del ..\..\..\..\..\temp\csd\gen_code\table_r.obj + -del ..\..\..\..\..\temp\csd\gen_code\table_s.obj + -del ..\..\..\..\..\temp\csd\gen_code\table_t.obj + -del ..\..\..\..\..\temp\csd\gen_code\table_u.obj + -del ..\..\..\..\..\temp\csd\gen_code\table_v.obj + -del ..\..\..\..\..\temp\csd\gen_code\table_w.obj + -del ..\..\..\..\..\temp\csd\gen_code\table_x.obj + -del ..\..\..\..\..\temp\csd\gen_code\table_y.obj + -del ..\..\..\..\..\temp\csd\gen_code\table_z.obj + -del $(TARGET) + -del ../../../../../bin/*.map + -del ../../../../../bin/*._xe + -del ../../../../../bin/*.tds + -del ../../../../../bin/*.pdb + -del ../../../../../bin/*.pbo + -del ../../../../../bin/*.pbi + -del ../../../../../bin/*.pbt + -del ../../../../../temp/csd/*.pch + -del ../../../../../temp/csd/*.idb + -del ../../../../../temp/csd/gen_code/*.pch + -del ../../../../../temp/csd/gen_code/*.idb + -del ../../../../../temp/csd/gen_code/*.obj + +####### Compile + +..\..\..\..\..\temp\csd\gen_code\gen_code.obj: ..\..\..\..\..\src\tools\gen_code\gen_code.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\gen_code\gen_code.obj ..\..\..\..\..\src\tools\gen_code\gen_code.c + +..\..\..\..\..\temp\csd\gen_code\ta_abstract.obj: ..\..\..\..\..\src\ta_abstract\ta_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\gen_code\ta_abstract.obj ..\..\..\..\..\src\ta_abstract\ta_abstract.c + +..\..\..\..\..\temp\csd\gen_code\ta_def_ui.obj: ..\..\..\..\..\src\ta_abstract\ta_def_ui.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\gen_code\ta_def_ui.obj ..\..\..\..\..\src\ta_abstract\ta_def_ui.c + +..\..\..\..\..\temp\csd\gen_code\table_a.obj: ..\..\..\..\..\src\ta_abstract\tables\table_a.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\gen_code\table_a.obj ..\..\..\..\..\src\ta_abstract\tables\table_a.c + +..\..\..\..\..\temp\csd\gen_code\table_b.obj: ..\..\..\..\..\src\ta_abstract\tables\table_b.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\gen_code\table_b.obj ..\..\..\..\..\src\ta_abstract\tables\table_b.c + +..\..\..\..\..\temp\csd\gen_code\table_c.obj: ..\..\..\..\..\src\ta_abstract\tables\table_c.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\gen_code\table_c.obj ..\..\..\..\..\src\ta_abstract\tables\table_c.c + +..\..\..\..\..\temp\csd\gen_code\table_d.obj: ..\..\..\..\..\src\ta_abstract\tables\table_d.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\gen_code\table_d.obj ..\..\..\..\..\src\ta_abstract\tables\table_d.c + +..\..\..\..\..\temp\csd\gen_code\table_e.obj: ..\..\..\..\..\src\ta_abstract\tables\table_e.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\gen_code\table_e.obj ..\..\..\..\..\src\ta_abstract\tables\table_e.c + +..\..\..\..\..\temp\csd\gen_code\table_f.obj: ..\..\..\..\..\src\ta_abstract\tables\table_f.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\gen_code\table_f.obj ..\..\..\..\..\src\ta_abstract\tables\table_f.c + +..\..\..\..\..\temp\csd\gen_code\table_g.obj: ..\..\..\..\..\src\ta_abstract\tables\table_g.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\gen_code\table_g.obj ..\..\..\..\..\src\ta_abstract\tables\table_g.c + +..\..\..\..\..\temp\csd\gen_code\table_h.obj: ..\..\..\..\..\src\ta_abstract\tables\table_h.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\gen_code\table_h.obj ..\..\..\..\..\src\ta_abstract\tables\table_h.c + +..\..\..\..\..\temp\csd\gen_code\table_i.obj: ..\..\..\..\..\src\ta_abstract\tables\table_i.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\gen_code\table_i.obj ..\..\..\..\..\src\ta_abstract\tables\table_i.c + +..\..\..\..\..\temp\csd\gen_code\table_j.obj: ..\..\..\..\..\src\ta_abstract\tables\table_j.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\gen_code\table_j.obj ..\..\..\..\..\src\ta_abstract\tables\table_j.c + +..\..\..\..\..\temp\csd\gen_code\table_k.obj: ..\..\..\..\..\src\ta_abstract\tables\table_k.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\gen_code\table_k.obj ..\..\..\..\..\src\ta_abstract\tables\table_k.c + +..\..\..\..\..\temp\csd\gen_code\table_l.obj: ..\..\..\..\..\src\ta_abstract\tables\table_l.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\gen_code\table_l.obj ..\..\..\..\..\src\ta_abstract\tables\table_l.c + +..\..\..\..\..\temp\csd\gen_code\table_m.obj: ..\..\..\..\..\src\ta_abstract\tables\table_m.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\gen_code\table_m.obj ..\..\..\..\..\src\ta_abstract\tables\table_m.c + +..\..\..\..\..\temp\csd\gen_code\table_n.obj: ..\..\..\..\..\src\ta_abstract\tables\table_n.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\gen_code\table_n.obj ..\..\..\..\..\src\ta_abstract\tables\table_n.c + +..\..\..\..\..\temp\csd\gen_code\table_o.obj: ..\..\..\..\..\src\ta_abstract\tables\table_o.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\gen_code\table_o.obj ..\..\..\..\..\src\ta_abstract\tables\table_o.c + +..\..\..\..\..\temp\csd\gen_code\table_p.obj: ..\..\..\..\..\src\ta_abstract\tables\table_p.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\gen_code\table_p.obj ..\..\..\..\..\src\ta_abstract\tables\table_p.c + +..\..\..\..\..\temp\csd\gen_code\table_q.obj: ..\..\..\..\..\src\ta_abstract\tables\table_q.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\gen_code\table_q.obj ..\..\..\..\..\src\ta_abstract\tables\table_q.c + +..\..\..\..\..\temp\csd\gen_code\table_r.obj: ..\..\..\..\..\src\ta_abstract\tables\table_r.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\gen_code\table_r.obj ..\..\..\..\..\src\ta_abstract\tables\table_r.c + +..\..\..\..\..\temp\csd\gen_code\table_s.obj: ..\..\..\..\..\src\ta_abstract\tables\table_s.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\gen_code\table_s.obj ..\..\..\..\..\src\ta_abstract\tables\table_s.c + +..\..\..\..\..\temp\csd\gen_code\table_t.obj: ..\..\..\..\..\src\ta_abstract\tables\table_t.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\gen_code\table_t.obj ..\..\..\..\..\src\ta_abstract\tables\table_t.c + +..\..\..\..\..\temp\csd\gen_code\table_u.obj: ..\..\..\..\..\src\ta_abstract\tables\table_u.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\gen_code\table_u.obj ..\..\..\..\..\src\ta_abstract\tables\table_u.c + +..\..\..\..\..\temp\csd\gen_code\table_v.obj: ..\..\..\..\..\src\ta_abstract\tables\table_v.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\gen_code\table_v.obj ..\..\..\..\..\src\ta_abstract\tables\table_v.c + +..\..\..\..\..\temp\csd\gen_code\table_w.obj: ..\..\..\..\..\src\ta_abstract\tables\table_w.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\gen_code\table_w.obj ..\..\..\..\..\src\ta_abstract\tables\table_w.c + +..\..\..\..\..\temp\csd\gen_code\table_x.obj: ..\..\..\..\..\src\ta_abstract\tables\table_x.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\gen_code\table_x.obj ..\..\..\..\..\src\ta_abstract\tables\table_x.c + +..\..\..\..\..\temp\csd\gen_code\table_y.obj: ..\..\..\..\..\src\ta_abstract\tables\table_y.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\gen_code\table_y.obj ..\..\..\..\..\src\ta_abstract\tables\table_y.c + +..\..\..\..\..\temp\csd\gen_code\table_z.obj: ..\..\..\..\..\src\ta_abstract\tables\table_z.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\gen_code\table_z.obj ..\..\..\..\..\src\ta_abstract\tables\table_z.c + diff --git a/make/csd/win32/symantec/ta_abstract/Makefile b/make/csd/win32/symantec/ta_abstract/Makefile new file mode 100644 index 000000000..bc143fcc9 --- /dev/null +++ b/make/csd/win32/symantec/ta_abstract/Makefile @@ -0,0 +1,295 @@ +############################################################################# +# Makefile for building ta_abstract_csd +# Generated by tmake; +# Project: ta_abstract/ta_abstract +# Template: lib +############################################################################# + +####### Compiler, tools and options + +CC = sc +CXX = sc +CFLAGS = -mn -w2 -g -DTA_DEBUG -D_DEBUG -DTA_SINGLE_THREAD -DWIN32 +CXXFLAGS= -mn -w2 -g -DTA_DEBUG -D_DEBUG -DTA_SINGLE_THREAD -DWIN32 +INCPATH = -I"..\..\..\..\..\src\ta_common" -I"..\..\..\..\..\src\ta_abstract" -I"..\..\..\..\..\src\ta_abstract\tables" -I"..\..\..\..\..\src\ta_abstract\frames" -I"..\..\..\..\..\include" +LIB = lib /C /N /NOI /P:32 +MOC = moc + +ZIP = zip -r -9 + +####### Files + +HEADERS = +SOURCES = ..\..\..\..\..\src\ta_abstract\ta_abstract.c \ + ..\..\..\..\..\src\ta_abstract\ta_def_ui.c \ + ..\..\..\..\..\src\ta_abstract\ta_func_api.c \ + ..\..\..\..\..\src\ta_abstract\ta_group_idx.c \ + ..\..\..\..\..\src\ta_abstract\frames\ta_frame.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_a.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_b.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_c.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_d.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_e.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_f.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_g.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_h.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_i.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_j.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_k.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_l.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_m.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_n.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_o.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_p.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_q.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_r.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_s.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_t.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_u.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_v.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_w.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_x.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_y.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_z.c +OBJECTS = ..\..\..\..\..\temp\csd\ta_abstract.obj \ + ..\..\..\..\..\temp\csd\ta_def_ui.obj \ + ..\..\..\..\..\temp\csd\ta_func_api.obj \ + ..\..\..\..\..\temp\csd\ta_group_idx.obj \ + ..\..\..\..\..\temp\csd\ta_frame.obj \ + ..\..\..\..\..\temp\csd\table_a.obj \ + ..\..\..\..\..\temp\csd\table_b.obj \ + ..\..\..\..\..\temp\csd\table_c.obj \ + ..\..\..\..\..\temp\csd\table_d.obj \ + ..\..\..\..\..\temp\csd\table_e.obj \ + ..\..\..\..\..\temp\csd\table_f.obj \ + ..\..\..\..\..\temp\csd\table_g.obj \ + ..\..\..\..\..\temp\csd\table_h.obj \ + ..\..\..\..\..\temp\csd\table_i.obj \ + ..\..\..\..\..\temp\csd\table_j.obj \ + ..\..\..\..\..\temp\csd\table_k.obj \ + ..\..\..\..\..\temp\csd\table_l.obj \ + ..\..\..\..\..\temp\csd\table_m.obj \ + ..\..\..\..\..\temp\csd\table_n.obj \ + ..\..\..\..\..\temp\csd\table_o.obj \ + ..\..\..\..\..\temp\csd\table_p.obj \ + ..\..\..\..\..\temp\csd\table_q.obj \ + ..\..\..\..\..\temp\csd\table_r.obj \ + ..\..\..\..\..\temp\csd\table_s.obj \ + ..\..\..\..\..\temp\csd\table_t.obj \ + ..\..\..\..\..\temp\csd\table_u.obj \ + ..\..\..\..\..\temp\csd\table_v.obj \ + ..\..\..\..\..\temp\csd\table_w.obj \ + ..\..\..\..\..\temp\csd\table_x.obj \ + ..\..\..\..\..\temp\csd\table_y.obj \ + ..\..\..\..\..\temp\csd\table_z.obj +SRCMOC = +OBJMOC = +DIST = +TARGET = ..\..\..\..\..\lib\ta_abstract_csd.lib + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .c + +.cpp.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.cxx.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.cc.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.c.obj: + $(CC) -c $(CFLAGS) $(INCPATH) -o$@ $< + +####### Build rules + +all: $(TARGET) + +$(TARGET): $(OBJECTS) $(OBJMOC) + -del $(TARGET) + $(LIB) $(TARGET) ..\..\..\..\..\temp\csd\ta_abstract.obj \ ++..\..\..\..\..\temp\csd\ta_def_ui.obj \ ++..\..\..\..\..\temp\csd\ta_func_api.obj \ ++..\..\..\..\..\temp\csd\ta_group_idx.obj \ ++..\..\..\..\..\temp\csd\ta_frame.obj \ ++..\..\..\..\..\temp\csd\table_a.obj \ ++..\..\..\..\..\temp\csd\table_b.obj \ ++..\..\..\..\..\temp\csd\table_c.obj \ ++..\..\..\..\..\temp\csd\table_d.obj \ ++..\..\..\..\..\temp\csd\table_e.obj \ ++..\..\..\..\..\temp\csd\table_f.obj \ ++..\..\..\..\..\temp\csd\table_g.obj \ ++..\..\..\..\..\temp\csd\table_h.obj \ ++..\..\..\..\..\temp\csd\table_i.obj \ ++..\..\..\..\..\temp\csd\table_j.obj \ ++..\..\..\..\..\temp\csd\table_k.obj \ ++..\..\..\..\..\temp\csd\table_l.obj \ ++..\..\..\..\..\temp\csd\table_m.obj \ ++..\..\..\..\..\temp\csd\table_n.obj \ ++..\..\..\..\..\temp\csd\table_o.obj \ ++..\..\..\..\..\temp\csd\table_p.obj \ ++..\..\..\..\..\temp\csd\table_q.obj \ ++..\..\..\..\..\temp\csd\table_r.obj \ ++..\..\..\..\..\temp\csd\table_s.obj \ ++..\..\..\..\..\temp\csd\table_t.obj \ ++..\..\..\..\..\temp\csd\table_u.obj \ ++..\..\..\..\..\temp\csd\table_v.obj \ ++..\..\..\..\..\temp\csd\table_w.obj \ ++..\..\..\..\..\temp\csd\table_x.obj \ ++..\..\..\..\..\temp\csd\table_y.obj \ ++..\..\..\..\..\temp\csd\table_z.obj \ ++,; + +moc: $(SRCMOC) + +tmake: ../csd/win32/symantec/ta_abstract/Makefile + +../csd/win32/symantec/ta_abstract/Makefile: ta_abstract/ta_abstract.pro + tmake ta_abstract/ta_abstract.pro -o ../csd/win32/symantec/ta_abstract/Makefile + +dist: + $(ZIP) ta_abstract/ta_abstract.zip ta_abstract/ta_abstract.pro $(SOURCES) $(HEADERS) $(DIST) + +clean: + -del ..\..\..\..\..\temp\csd\ta_abstract.obj + -del ..\..\..\..\..\temp\csd\ta_def_ui.obj + -del ..\..\..\..\..\temp\csd\ta_func_api.obj + -del ..\..\..\..\..\temp\csd\ta_group_idx.obj + -del ..\..\..\..\..\temp\csd\ta_frame.obj + -del ..\..\..\..\..\temp\csd\table_a.obj + -del ..\..\..\..\..\temp\csd\table_b.obj + -del ..\..\..\..\..\temp\csd\table_c.obj + -del ..\..\..\..\..\temp\csd\table_d.obj + -del ..\..\..\..\..\temp\csd\table_e.obj + -del ..\..\..\..\..\temp\csd\table_f.obj + -del ..\..\..\..\..\temp\csd\table_g.obj + -del ..\..\..\..\..\temp\csd\table_h.obj + -del ..\..\..\..\..\temp\csd\table_i.obj + -del ..\..\..\..\..\temp\csd\table_j.obj + -del ..\..\..\..\..\temp\csd\table_k.obj + -del ..\..\..\..\..\temp\csd\table_l.obj + -del ..\..\..\..\..\temp\csd\table_m.obj + -del ..\..\..\..\..\temp\csd\table_n.obj + -del ..\..\..\..\..\temp\csd\table_o.obj + -del ..\..\..\..\..\temp\csd\table_p.obj + -del ..\..\..\..\..\temp\csd\table_q.obj + -del ..\..\..\..\..\temp\csd\table_r.obj + -del ..\..\..\..\..\temp\csd\table_s.obj + -del ..\..\..\..\..\temp\csd\table_t.obj + -del ..\..\..\..\..\temp\csd\table_u.obj + -del ..\..\..\..\..\temp\csd\table_v.obj + -del ..\..\..\..\..\temp\csd\table_w.obj + -del ..\..\..\..\..\temp\csd\table_x.obj + -del ..\..\..\..\..\temp\csd\table_y.obj + -del ..\..\..\..\..\temp\csd\table_z.obj + -del $(TARGET) + -del ../../../../../bin/*.map + -del ../../../../../bin/*._xe + -del ../../../../../bin/*.tds + -del ../../../../../bin/*.pdb + -del ../../../../../bin/*.pbo + -del ../../../../../bin/*.pbi + -del ../../../../../bin/*.pbt + -del ../../../../../temp/csd/*.pch + -del ../../../../../temp/csd/*.idb + -del ../../../../../temp/csd/ta_abstract/*.pch + -del ../../../../../temp/csd/ta_abstract/*.idb + -del ../../../../../temp/csd/ta_abstract/*.obj + +####### Compile + +..\..\..\..\..\temp\csd\ta_abstract.obj: ..\..\..\..\..\src\ta_abstract\ta_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_abstract.obj ..\..\..\..\..\src\ta_abstract\ta_abstract.c + +..\..\..\..\..\temp\csd\ta_def_ui.obj: ..\..\..\..\..\src\ta_abstract\ta_def_ui.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_def_ui.obj ..\..\..\..\..\src\ta_abstract\ta_def_ui.c + +..\..\..\..\..\temp\csd\ta_func_api.obj: ..\..\..\..\..\src\ta_abstract\ta_func_api.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_func_api.obj ..\..\..\..\..\src\ta_abstract\ta_func_api.c + +..\..\..\..\..\temp\csd\ta_group_idx.obj: ..\..\..\..\..\src\ta_abstract\ta_group_idx.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_group_idx.obj ..\..\..\..\..\src\ta_abstract\ta_group_idx.c + +..\..\..\..\..\temp\csd\ta_frame.obj: ..\..\..\..\..\src\ta_abstract\frames\ta_frame.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_frame.obj ..\..\..\..\..\src\ta_abstract\frames\ta_frame.c + +..\..\..\..\..\temp\csd\table_a.obj: ..\..\..\..\..\src\ta_abstract\tables\table_a.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\table_a.obj ..\..\..\..\..\src\ta_abstract\tables\table_a.c + +..\..\..\..\..\temp\csd\table_b.obj: ..\..\..\..\..\src\ta_abstract\tables\table_b.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\table_b.obj ..\..\..\..\..\src\ta_abstract\tables\table_b.c + +..\..\..\..\..\temp\csd\table_c.obj: ..\..\..\..\..\src\ta_abstract\tables\table_c.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\table_c.obj ..\..\..\..\..\src\ta_abstract\tables\table_c.c + +..\..\..\..\..\temp\csd\table_d.obj: ..\..\..\..\..\src\ta_abstract\tables\table_d.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\table_d.obj ..\..\..\..\..\src\ta_abstract\tables\table_d.c + +..\..\..\..\..\temp\csd\table_e.obj: ..\..\..\..\..\src\ta_abstract\tables\table_e.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\table_e.obj ..\..\..\..\..\src\ta_abstract\tables\table_e.c + +..\..\..\..\..\temp\csd\table_f.obj: ..\..\..\..\..\src\ta_abstract\tables\table_f.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\table_f.obj ..\..\..\..\..\src\ta_abstract\tables\table_f.c + +..\..\..\..\..\temp\csd\table_g.obj: ..\..\..\..\..\src\ta_abstract\tables\table_g.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\table_g.obj ..\..\..\..\..\src\ta_abstract\tables\table_g.c + +..\..\..\..\..\temp\csd\table_h.obj: ..\..\..\..\..\src\ta_abstract\tables\table_h.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\table_h.obj ..\..\..\..\..\src\ta_abstract\tables\table_h.c + +..\..\..\..\..\temp\csd\table_i.obj: ..\..\..\..\..\src\ta_abstract\tables\table_i.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\table_i.obj ..\..\..\..\..\src\ta_abstract\tables\table_i.c + +..\..\..\..\..\temp\csd\table_j.obj: ..\..\..\..\..\src\ta_abstract\tables\table_j.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\table_j.obj ..\..\..\..\..\src\ta_abstract\tables\table_j.c + +..\..\..\..\..\temp\csd\table_k.obj: ..\..\..\..\..\src\ta_abstract\tables\table_k.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\table_k.obj ..\..\..\..\..\src\ta_abstract\tables\table_k.c + +..\..\..\..\..\temp\csd\table_l.obj: ..\..\..\..\..\src\ta_abstract\tables\table_l.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\table_l.obj ..\..\..\..\..\src\ta_abstract\tables\table_l.c + +..\..\..\..\..\temp\csd\table_m.obj: ..\..\..\..\..\src\ta_abstract\tables\table_m.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\table_m.obj ..\..\..\..\..\src\ta_abstract\tables\table_m.c + +..\..\..\..\..\temp\csd\table_n.obj: ..\..\..\..\..\src\ta_abstract\tables\table_n.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\table_n.obj ..\..\..\..\..\src\ta_abstract\tables\table_n.c + +..\..\..\..\..\temp\csd\table_o.obj: ..\..\..\..\..\src\ta_abstract\tables\table_o.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\table_o.obj ..\..\..\..\..\src\ta_abstract\tables\table_o.c + +..\..\..\..\..\temp\csd\table_p.obj: ..\..\..\..\..\src\ta_abstract\tables\table_p.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\table_p.obj ..\..\..\..\..\src\ta_abstract\tables\table_p.c + +..\..\..\..\..\temp\csd\table_q.obj: ..\..\..\..\..\src\ta_abstract\tables\table_q.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\table_q.obj ..\..\..\..\..\src\ta_abstract\tables\table_q.c + +..\..\..\..\..\temp\csd\table_r.obj: ..\..\..\..\..\src\ta_abstract\tables\table_r.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\table_r.obj ..\..\..\..\..\src\ta_abstract\tables\table_r.c + +..\..\..\..\..\temp\csd\table_s.obj: ..\..\..\..\..\src\ta_abstract\tables\table_s.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\table_s.obj ..\..\..\..\..\src\ta_abstract\tables\table_s.c + +..\..\..\..\..\temp\csd\table_t.obj: ..\..\..\..\..\src\ta_abstract\tables\table_t.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\table_t.obj ..\..\..\..\..\src\ta_abstract\tables\table_t.c + +..\..\..\..\..\temp\csd\table_u.obj: ..\..\..\..\..\src\ta_abstract\tables\table_u.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\table_u.obj ..\..\..\..\..\src\ta_abstract\tables\table_u.c + +..\..\..\..\..\temp\csd\table_v.obj: ..\..\..\..\..\src\ta_abstract\tables\table_v.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\table_v.obj ..\..\..\..\..\src\ta_abstract\tables\table_v.c + +..\..\..\..\..\temp\csd\table_w.obj: ..\..\..\..\..\src\ta_abstract\tables\table_w.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\table_w.obj ..\..\..\..\..\src\ta_abstract\tables\table_w.c + +..\..\..\..\..\temp\csd\table_x.obj: ..\..\..\..\..\src\ta_abstract\tables\table_x.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\table_x.obj ..\..\..\..\..\src\ta_abstract\tables\table_x.c + +..\..\..\..\..\temp\csd\table_y.obj: ..\..\..\..\..\src\ta_abstract\tables\table_y.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\table_y.obj ..\..\..\..\..\src\ta_abstract\tables\table_y.c + +..\..\..\..\..\temp\csd\table_z.obj: ..\..\..\..\..\src\ta_abstract\tables\table_z.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\table_z.obj ..\..\..\..\..\src\ta_abstract\tables\table_z.c + diff --git a/make/csd/win32/symantec/ta_common/Makefile b/make/csd/win32/symantec/ta_common/Makefile new file mode 100644 index 000000000..8d6b37e85 --- /dev/null +++ b/make/csd/win32/symantec/ta_common/Makefile @@ -0,0 +1,99 @@ +############################################################################# +# Makefile for building ta_common_csd +# Generated by tmake; +# Project: ta_common/ta_common +# Template: lib +############################################################################# + +####### Compiler, tools and options + +CC = sc +CXX = sc +CFLAGS = -mn -w2 -g -DTA_DEBUG -D_DEBUG -DTA_SINGLE_THREAD -DWIN32 +CXXFLAGS= -mn -w2 -g -DTA_DEBUG -D_DEBUG -DTA_SINGLE_THREAD -DWIN32 +INCPATH = -I"..\..\..\..\..\src\ta_common" -I"..\..\..\..\..\include" +LIB = lib /C /N /NOI /P:32 +MOC = moc + +ZIP = zip -r -9 + +####### Files + +HEADERS = +SOURCES = ..\..\..\..\..\src\ta_common\ta_global.c \ + ..\..\..\..\..\src\ta_common\ta_retcode.c \ + ..\..\..\..\..\src\ta_common\ta_version.c +OBJECTS = ..\..\..\..\..\temp\csd\ta_global.obj \ + ..\..\..\..\..\temp\csd\ta_retcode.obj \ + ..\..\..\..\..\temp\csd\ta_version.obj +SRCMOC = +OBJMOC = +DIST = +TARGET = ..\..\..\..\..\lib\ta_common_csd.lib + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .c + +.cpp.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.cxx.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.cc.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.c.obj: + $(CC) -c $(CFLAGS) $(INCPATH) -o$@ $< + +####### Build rules + +all: $(TARGET) + +$(TARGET): $(OBJECTS) $(OBJMOC) + -del $(TARGET) + $(LIB) $(TARGET) ..\..\..\..\..\temp\csd\ta_global.obj \ ++..\..\..\..\..\temp\csd\ta_retcode.obj \ ++..\..\..\..\..\temp\csd\ta_version.obj \ ++,; + +moc: $(SRCMOC) + +tmake: ../csd/win32/symantec/ta_common/Makefile + +../csd/win32/symantec/ta_common/Makefile: ta_common/ta_common.pro + tmake ta_common/ta_common.pro -o ../csd/win32/symantec/ta_common/Makefile + +dist: + $(ZIP) ta_common/ta_common.zip ta_common/ta_common.pro $(SOURCES) $(HEADERS) $(DIST) + +clean: + -del ..\..\..\..\..\temp\csd\ta_global.obj + -del ..\..\..\..\..\temp\csd\ta_retcode.obj + -del ..\..\..\..\..\temp\csd\ta_version.obj + -del $(TARGET) + -del ../../../../../bin/*.map + -del ../../../../../bin/*._xe + -del ../../../../../bin/*.tds + -del ../../../../../bin/*.pdb + -del ../../../../../bin/*.pbo + -del ../../../../../bin/*.pbi + -del ../../../../../bin/*.pbt + -del ../../../../../temp/csd/*.pch + -del ../../../../../temp/csd/*.idb + -del ../../../../../temp/csd/ta_common_csd/*.pch + -del ../../../../../temp/csd/ta_common_csd/*.idb + -del ../../../../../temp/csd/ta_common_csd/*.obj + +####### Compile + +..\..\..\..\..\temp\csd\ta_global.obj: ..\..\..\..\..\src\ta_common\ta_global.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_global.obj ..\..\..\..\..\src\ta_common\ta_global.c + +..\..\..\..\..\temp\csd\ta_retcode.obj: ..\..\..\..\..\src\ta_common\ta_retcode.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_retcode.obj ..\..\..\..\..\src\ta_common\ta_retcode.c + +..\..\..\..\..\temp\csd\ta_version.obj: ..\..\..\..\..\src\ta_common\ta_version.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_version.obj ..\..\..\..\..\src\ta_common\ta_version.c + diff --git a/make/csd/win32/symantec/ta_func/Makefile b/make/csd/win32/symantec/ta_func/Makefile new file mode 100644 index 000000000..657e82a29 --- /dev/null +++ b/make/csd/win32/symantec/ta_func/Makefile @@ -0,0 +1,1191 @@ +############################################################################# +# Makefile for building ta_func_csd +# Generated by tmake; +# Project: ta_func/ta_func +# Template: lib +############################################################################# + +####### Compiler, tools and options + +CC = sc +CXX = sc +CFLAGS = -mn -w2 -g -DTA_DEBUG -D_DEBUG -DTA_SINGLE_THREAD -DWIN32 +CXXFLAGS= -mn -w2 -g -DTA_DEBUG -D_DEBUG -DTA_SINGLE_THREAD -DWIN32 +INCPATH = -I"..\..\..\..\..\src\ta_common" -I"\n" -I"..\..\..\..\..\include" +LIB = lib /C /N /NOI /P:32 +MOC = moc + +ZIP = zip -r -9 + +####### Files + +HEADERS = +SOURCES = ..\..\..\..\..\src\ta_func\ta_utility.c \ + ..\..\..\..\..\src\ta_func\ta_ACOS.c \ + ..\..\..\..\..\src\ta_func\ta_AD.c \ + ..\..\..\..\..\src\ta_func\ta_ADD.c \ + ..\..\..\..\..\src\ta_func\ta_ADOSC.c \ + ..\..\..\..\..\src\ta_func\ta_ADX.c \ + ..\..\..\..\..\src\ta_func\ta_ADXR.c \ + ..\..\..\..\..\src\ta_func\ta_APO.c \ + ..\..\..\..\..\src\ta_func\ta_AROON.c \ + ..\..\..\..\..\src\ta_func\ta_AROONOSC.c \ + ..\..\..\..\..\src\ta_func\ta_ASIN.c \ + ..\..\..\..\..\src\ta_func\ta_ATAN.c \ + ..\..\..\..\..\src\ta_func\ta_ATR.c \ + ..\..\..\..\..\src\ta_func\ta_AVGPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_BBANDS.c \ + ..\..\..\..\..\src\ta_func\ta_BETA.c \ + ..\..\..\..\..\src\ta_func\ta_BOP.c \ + ..\..\..\..\..\src\ta_func\ta_CCI.c \ + ..\..\..\..\..\src\ta_func\ta_CDL2CROWS.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3BLACKCROWS.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3INSIDE.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3LINESTRIKE.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3OUTSIDE.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3STARSINSOUTH.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3WHITESOLDIERS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLABANDONEDBABY.c \ + ..\..\..\..\..\src\ta_func\ta_CDLADVANCEBLOCK.c \ + ..\..\..\..\..\src\ta_func\ta_CDLBELTHOLD.c \ + ..\..\..\..\..\src\ta_func\ta_CDLBREAKAWAY.c \ + ..\..\..\..\..\src\ta_func\ta_CDLCLOSINGMARUBOZU.c \ + ..\..\..\..\..\src\ta_func\ta_CDLCONCEALBABYSWALL.c \ + ..\..\..\..\..\src\ta_func\ta_CDLCOUNTERATTACK.c \ + ..\..\..\..\..\src\ta_func\ta_CDLDARKCLOUDCOVER.c \ + ..\..\..\..\..\src\ta_func\ta_CDLDOJI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLDOJISTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLDRAGONFLYDOJI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLENGULFING.c \ + ..\..\..\..\..\src\ta_func\ta_CDLEVENINGDOJISTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLEVENINGSTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLGAPSIDESIDEWHITE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLGRAVESTONEDOJI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHAMMER.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHANGINGMAN.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHARAMI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHARAMICROSS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHIGHWAVE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKEMOD.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHOMINGPIGEON.c \ + ..\..\..\..\..\src\ta_func\ta_CDLIDENTICAL3CROWS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLINNECK.c \ + ..\..\..\..\..\src\ta_func\ta_CDLINVERTEDHAMMER.c \ + ..\..\..\..\..\src\ta_func\ta_CDLKICKING.c \ + ..\..\..\..\..\src\ta_func\ta_CDLKICKINGBYLENGTH.c \ + ..\..\..\..\..\src\ta_func\ta_CDLLADDERBOTTOM.c \ + ..\..\..\..\..\src\ta_func\ta_CDLLONGLEGGEDDOJI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLLONGLINE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMARUBOZU.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMATCHINGLOW.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMATHOLD.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMORNINGDOJISTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMORNINGSTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLONNECK.c \ + ..\..\..\..\..\src\ta_func\ta_CDLPIERCING.c \ + ..\..\..\..\..\src\ta_func\ta_CDLRICKSHAWMAN.c \ + ..\..\..\..\..\src\ta_func\ta_CDLRISEFALL3METHODS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSEPARATINGLINES.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSHOOTINGSTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSHORTLINE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSPINNINGTOP.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSTALLEDPATTERN.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSTICKSANDWICH.c \ + ..\..\..\..\..\src\ta_func\ta_CDLTAKURI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLTASUKIGAP.c \ + ..\..\..\..\..\src\ta_func\ta_CDLTHRUSTING.c \ + ..\..\..\..\..\src\ta_func\ta_CDLTRISTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLUNIQUE3RIVER.c \ + ..\..\..\..\..\src\ta_func\ta_CDLUPSIDEGAP2CROWS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLXSIDEGAP3METHODS.c \ + ..\..\..\..\..\src\ta_func\ta_CEIL.c \ + ..\..\..\..\..\src\ta_func\ta_CMO.c \ + ..\..\..\..\..\src\ta_func\ta_CORREL.c \ + ..\..\..\..\..\src\ta_func\ta_COS.c \ + ..\..\..\..\..\src\ta_func\ta_COSH.c \ + ..\..\..\..\..\src\ta_func\ta_DEMA.c \ + ..\..\..\..\..\src\ta_func\ta_DIV.c \ + ..\..\..\..\..\src\ta_func\ta_DX.c \ + ..\..\..\..\..\src\ta_func\ta_EMA.c \ + ..\..\..\..\..\src\ta_func\ta_EXP.c \ + ..\..\..\..\..\src\ta_func\ta_FLOOR.c \ + ..\..\..\..\..\src\ta_func\ta_HT_DCPERIOD.c \ + ..\..\..\..\..\src\ta_func\ta_HT_DCPHASE.c \ + ..\..\..\..\..\src\ta_func\ta_HT_PHASOR.c \ + ..\..\..\..\..\src\ta_func\ta_HT_SINE.c \ + ..\..\..\..\..\src\ta_func\ta_HT_TRENDLINE.c \ + ..\..\..\..\..\src\ta_func\ta_HT_TRENDMODE.c \ + ..\..\..\..\..\src\ta_func\ta_KAMA.c \ + ..\..\..\..\..\src\ta_func\ta_LINEARREG.c \ + ..\..\..\..\..\src\ta_func\ta_LINEARREG_ANGLE.c \ + ..\..\..\..\..\src\ta_func\ta_LINEARREG_INTERCEPT.c \ + ..\..\..\..\..\src\ta_func\ta_LINEARREG_SLOPE.c \ + ..\..\..\..\..\src\ta_func\ta_LN.c \ + ..\..\..\..\..\src\ta_func\ta_LOG10.c \ + ..\..\..\..\..\src\ta_func\ta_MA.c \ + ..\..\..\..\..\src\ta_func\ta_MACD.c \ + ..\..\..\..\..\src\ta_func\ta_MACDEXT.c \ + ..\..\..\..\..\src\ta_func\ta_MACDFIX.c \ + ..\..\..\..\..\src\ta_func\ta_MAMA.c \ + ..\..\..\..\..\src\ta_func\ta_MAVP.c \ + ..\..\..\..\..\src\ta_func\ta_MAX.c \ + ..\..\..\..\..\src\ta_func\ta_MAXINDEX.c \ + ..\..\..\..\..\src\ta_func\ta_MEDPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_MFI.c \ + ..\..\..\..\..\src\ta_func\ta_MIDPOINT.c \ + ..\..\..\..\..\src\ta_func\ta_MIDPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_MIN.c \ + ..\..\..\..\..\src\ta_func\ta_MININDEX.c \ + ..\..\..\..\..\src\ta_func\ta_MINMAX.c \ + ..\..\..\..\..\src\ta_func\ta_MINMAXINDEX.c \ + ..\..\..\..\..\src\ta_func\ta_MINUS_DI.c \ + ..\..\..\..\..\src\ta_func\ta_MINUS_DM.c \ + ..\..\..\..\..\src\ta_func\ta_MOM.c \ + ..\..\..\..\..\src\ta_func\ta_MULT.c \ + ..\..\..\..\..\src\ta_func\ta_NATR.c \ + ..\..\..\..\..\src\ta_func\ta_OBV.c \ + ..\..\..\..\..\src\ta_func\ta_PLUS_DI.c \ + ..\..\..\..\..\src\ta_func\ta_PLUS_DM.c \ + ..\..\..\..\..\src\ta_func\ta_PPO.c \ + ..\..\..\..\..\src\ta_func\ta_ROC.c \ + ..\..\..\..\..\src\ta_func\ta_ROCP.c \ + ..\..\..\..\..\src\ta_func\ta_ROCR.c \ + ..\..\..\..\..\src\ta_func\ta_ROCR100.c \ + ..\..\..\..\..\src\ta_func\ta_RSI.c \ + ..\..\..\..\..\src\ta_func\ta_SAR.c \ + ..\..\..\..\..\src\ta_func\ta_SAREXT.c \ + ..\..\..\..\..\src\ta_func\ta_SIN.c \ + ..\..\..\..\..\src\ta_func\ta_SINH.c \ + ..\..\..\..\..\src\ta_func\ta_SMA.c \ + ..\..\..\..\..\src\ta_func\ta_SQRT.c \ + ..\..\..\..\..\src\ta_func\ta_STDDEV.c \ + ..\..\..\..\..\src\ta_func\ta_STOCH.c \ + ..\..\..\..\..\src\ta_func\ta_STOCHF.c \ + ..\..\..\..\..\src\ta_func\ta_STOCHRSI.c \ + ..\..\..\..\..\src\ta_func\ta_SUB.c \ + ..\..\..\..\..\src\ta_func\ta_SUM.c \ + ..\..\..\..\..\src\ta_func\ta_T3.c \ + ..\..\..\..\..\src\ta_func\ta_TAN.c \ + ..\..\..\..\..\src\ta_func\ta_TANH.c \ + ..\..\..\..\..\src\ta_func\ta_TEMA.c \ + ..\..\..\..\..\src\ta_func\ta_TRANGE.c \ + ..\..\..\..\..\src\ta_func\ta_TRIMA.c \ + ..\..\..\..\..\src\ta_func\ta_TRIX.c \ + ..\..\..\..\..\src\ta_func\ta_TSF.c \ + ..\..\..\..\..\src\ta_func\ta_TYPPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_ULTOSC.c \ + ..\..\..\..\..\src\ta_func\ta_VAR.c \ + ..\..\..\..\..\src\ta_func\ta_WCLPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_WILLR.c \ + ..\..\..\..\..\src\ta_func\ta_WMA.c +OBJECTS = ..\..\..\..\..\temp\csd\ta_utility.obj \ + ..\..\..\..\..\temp\csd\ta_ACOS.obj \ + ..\..\..\..\..\temp\csd\ta_AD.obj \ + ..\..\..\..\..\temp\csd\ta_ADD.obj \ + ..\..\..\..\..\temp\csd\ta_ADOSC.obj \ + ..\..\..\..\..\temp\csd\ta_ADX.obj \ + ..\..\..\..\..\temp\csd\ta_ADXR.obj \ + ..\..\..\..\..\temp\csd\ta_APO.obj \ + ..\..\..\..\..\temp\csd\ta_AROON.obj \ + ..\..\..\..\..\temp\csd\ta_AROONOSC.obj \ + ..\..\..\..\..\temp\csd\ta_ASIN.obj \ + ..\..\..\..\..\temp\csd\ta_ATAN.obj \ + ..\..\..\..\..\temp\csd\ta_ATR.obj \ + ..\..\..\..\..\temp\csd\ta_AVGPRICE.obj \ + ..\..\..\..\..\temp\csd\ta_BBANDS.obj \ + ..\..\..\..\..\temp\csd\ta_BETA.obj \ + ..\..\..\..\..\temp\csd\ta_BOP.obj \ + ..\..\..\..\..\temp\csd\ta_CCI.obj \ + ..\..\..\..\..\temp\csd\ta_CDL2CROWS.obj \ + ..\..\..\..\..\temp\csd\ta_CDL3BLACKCROWS.obj \ + ..\..\..\..\..\temp\csd\ta_CDL3INSIDE.obj \ + ..\..\..\..\..\temp\csd\ta_CDL3LINESTRIKE.obj \ + ..\..\..\..\..\temp\csd\ta_CDL3OUTSIDE.obj \ + ..\..\..\..\..\temp\csd\ta_CDL3STARSINSOUTH.obj \ + ..\..\..\..\..\temp\csd\ta_CDL3WHITESOLDIERS.obj \ + ..\..\..\..\..\temp\csd\ta_CDLABANDONEDBABY.obj \ + ..\..\..\..\..\temp\csd\ta_CDLADVANCEBLOCK.obj \ + ..\..\..\..\..\temp\csd\ta_CDLBELTHOLD.obj \ + ..\..\..\..\..\temp\csd\ta_CDLBREAKAWAY.obj \ + ..\..\..\..\..\temp\csd\ta_CDLCLOSINGMARUBOZU.obj \ + ..\..\..\..\..\temp\csd\ta_CDLCONCEALBABYSWALL.obj \ + ..\..\..\..\..\temp\csd\ta_CDLCOUNTERATTACK.obj \ + ..\..\..\..\..\temp\csd\ta_CDLDARKCLOUDCOVER.obj \ + ..\..\..\..\..\temp\csd\ta_CDLDOJI.obj \ + ..\..\..\..\..\temp\csd\ta_CDLDOJISTAR.obj \ + ..\..\..\..\..\temp\csd\ta_CDLDRAGONFLYDOJI.obj \ + ..\..\..\..\..\temp\csd\ta_CDLENGULFING.obj \ + ..\..\..\..\..\temp\csd\ta_CDLEVENINGDOJISTAR.obj \ + ..\..\..\..\..\temp\csd\ta_CDLEVENINGSTAR.obj \ + ..\..\..\..\..\temp\csd\ta_CDLGAPSIDESIDEWHITE.obj \ + ..\..\..\..\..\temp\csd\ta_CDLGRAVESTONEDOJI.obj \ + ..\..\..\..\..\temp\csd\ta_CDLHAMMER.obj \ + ..\..\..\..\..\temp\csd\ta_CDLHANGINGMAN.obj \ + ..\..\..\..\..\temp\csd\ta_CDLHARAMI.obj \ + ..\..\..\..\..\temp\csd\ta_CDLHARAMICROSS.obj \ + ..\..\..\..\..\temp\csd\ta_CDLHIGHWAVE.obj \ + ..\..\..\..\..\temp\csd\ta_CDLHIKKAKE.obj \ + ..\..\..\..\..\temp\csd\ta_CDLHIKKAKEMOD.obj \ + ..\..\..\..\..\temp\csd\ta_CDLHOMINGPIGEON.obj \ + ..\..\..\..\..\temp\csd\ta_CDLIDENTICAL3CROWS.obj \ + ..\..\..\..\..\temp\csd\ta_CDLINNECK.obj \ + ..\..\..\..\..\temp\csd\ta_CDLINVERTEDHAMMER.obj \ + ..\..\..\..\..\temp\csd\ta_CDLKICKING.obj \ + ..\..\..\..\..\temp\csd\ta_CDLKICKINGBYLENGTH.obj \ + ..\..\..\..\..\temp\csd\ta_CDLLADDERBOTTOM.obj \ + ..\..\..\..\..\temp\csd\ta_CDLLONGLEGGEDDOJI.obj \ + ..\..\..\..\..\temp\csd\ta_CDLLONGLINE.obj \ + ..\..\..\..\..\temp\csd\ta_CDLMARUBOZU.obj \ + ..\..\..\..\..\temp\csd\ta_CDLMATCHINGLOW.obj \ + ..\..\..\..\..\temp\csd\ta_CDLMATHOLD.obj \ + ..\..\..\..\..\temp\csd\ta_CDLMORNINGDOJISTAR.obj \ + ..\..\..\..\..\temp\csd\ta_CDLMORNINGSTAR.obj \ + ..\..\..\..\..\temp\csd\ta_CDLONNECK.obj \ + ..\..\..\..\..\temp\csd\ta_CDLPIERCING.obj \ + ..\..\..\..\..\temp\csd\ta_CDLRICKSHAWMAN.obj \ + ..\..\..\..\..\temp\csd\ta_CDLRISEFALL3METHODS.obj \ + ..\..\..\..\..\temp\csd\ta_CDLSEPARATINGLINES.obj \ + ..\..\..\..\..\temp\csd\ta_CDLSHOOTINGSTAR.obj \ + ..\..\..\..\..\temp\csd\ta_CDLSHORTLINE.obj \ + ..\..\..\..\..\temp\csd\ta_CDLSPINNINGTOP.obj \ + ..\..\..\..\..\temp\csd\ta_CDLSTALLEDPATTERN.obj \ + ..\..\..\..\..\temp\csd\ta_CDLSTICKSANDWICH.obj \ + ..\..\..\..\..\temp\csd\ta_CDLTAKURI.obj \ + ..\..\..\..\..\temp\csd\ta_CDLTASUKIGAP.obj \ + ..\..\..\..\..\temp\csd\ta_CDLTHRUSTING.obj \ + ..\..\..\..\..\temp\csd\ta_CDLTRISTAR.obj \ + ..\..\..\..\..\temp\csd\ta_CDLUNIQUE3RIVER.obj \ + ..\..\..\..\..\temp\csd\ta_CDLUPSIDEGAP2CROWS.obj \ + ..\..\..\..\..\temp\csd\ta_CDLXSIDEGAP3METHODS.obj \ + ..\..\..\..\..\temp\csd\ta_CEIL.obj \ + ..\..\..\..\..\temp\csd\ta_CMO.obj \ + ..\..\..\..\..\temp\csd\ta_CORREL.obj \ + ..\..\..\..\..\temp\csd\ta_COS.obj \ + ..\..\..\..\..\temp\csd\ta_COSH.obj \ + ..\..\..\..\..\temp\csd\ta_DEMA.obj \ + ..\..\..\..\..\temp\csd\ta_DIV.obj \ + ..\..\..\..\..\temp\csd\ta_DX.obj \ + ..\..\..\..\..\temp\csd\ta_EMA.obj \ + ..\..\..\..\..\temp\csd\ta_EXP.obj \ + ..\..\..\..\..\temp\csd\ta_FLOOR.obj \ + ..\..\..\..\..\temp\csd\ta_HT_DCPERIOD.obj \ + ..\..\..\..\..\temp\csd\ta_HT_DCPHASE.obj \ + ..\..\..\..\..\temp\csd\ta_HT_PHASOR.obj \ + ..\..\..\..\..\temp\csd\ta_HT_SINE.obj \ + ..\..\..\..\..\temp\csd\ta_HT_TRENDLINE.obj \ + ..\..\..\..\..\temp\csd\ta_HT_TRENDMODE.obj \ + ..\..\..\..\..\temp\csd\ta_KAMA.obj \ + ..\..\..\..\..\temp\csd\ta_LINEARREG.obj \ + ..\..\..\..\..\temp\csd\ta_LINEARREG_ANGLE.obj \ + ..\..\..\..\..\temp\csd\ta_LINEARREG_INTERCEPT.obj \ + ..\..\..\..\..\temp\csd\ta_LINEARREG_SLOPE.obj \ + ..\..\..\..\..\temp\csd\ta_LN.obj \ + ..\..\..\..\..\temp\csd\ta_LOG10.obj \ + ..\..\..\..\..\temp\csd\ta_MA.obj \ + ..\..\..\..\..\temp\csd\ta_MACD.obj \ + ..\..\..\..\..\temp\csd\ta_MACDEXT.obj \ + ..\..\..\..\..\temp\csd\ta_MACDFIX.obj \ + ..\..\..\..\..\temp\csd\ta_MAMA.obj \ + ..\..\..\..\..\temp\csd\ta_MAVP.obj \ + ..\..\..\..\..\temp\csd\ta_MAX.obj \ + ..\..\..\..\..\temp\csd\ta_MAXINDEX.obj \ + ..\..\..\..\..\temp\csd\ta_MEDPRICE.obj \ + ..\..\..\..\..\temp\csd\ta_MFI.obj \ + ..\..\..\..\..\temp\csd\ta_MIDPOINT.obj \ + ..\..\..\..\..\temp\csd\ta_MIDPRICE.obj \ + ..\..\..\..\..\temp\csd\ta_MIN.obj \ + ..\..\..\..\..\temp\csd\ta_MININDEX.obj \ + ..\..\..\..\..\temp\csd\ta_MINMAX.obj \ + ..\..\..\..\..\temp\csd\ta_MINMAXINDEX.obj \ + ..\..\..\..\..\temp\csd\ta_MINUS_DI.obj \ + ..\..\..\..\..\temp\csd\ta_MINUS_DM.obj \ + ..\..\..\..\..\temp\csd\ta_MOM.obj \ + ..\..\..\..\..\temp\csd\ta_MULT.obj \ + ..\..\..\..\..\temp\csd\ta_NATR.obj \ + ..\..\..\..\..\temp\csd\ta_OBV.obj \ + ..\..\..\..\..\temp\csd\ta_PLUS_DI.obj \ + ..\..\..\..\..\temp\csd\ta_PLUS_DM.obj \ + ..\..\..\..\..\temp\csd\ta_PPO.obj \ + ..\..\..\..\..\temp\csd\ta_ROC.obj \ + ..\..\..\..\..\temp\csd\ta_ROCP.obj \ + ..\..\..\..\..\temp\csd\ta_ROCR.obj \ + ..\..\..\..\..\temp\csd\ta_ROCR100.obj \ + ..\..\..\..\..\temp\csd\ta_RSI.obj \ + ..\..\..\..\..\temp\csd\ta_SAR.obj \ + ..\..\..\..\..\temp\csd\ta_SAREXT.obj \ + ..\..\..\..\..\temp\csd\ta_SIN.obj \ + ..\..\..\..\..\temp\csd\ta_SINH.obj \ + ..\..\..\..\..\temp\csd\ta_SMA.obj \ + ..\..\..\..\..\temp\csd\ta_SQRT.obj \ + ..\..\..\..\..\temp\csd\ta_STDDEV.obj \ + ..\..\..\..\..\temp\csd\ta_STOCH.obj \ + ..\..\..\..\..\temp\csd\ta_STOCHF.obj \ + ..\..\..\..\..\temp\csd\ta_STOCHRSI.obj \ + ..\..\..\..\..\temp\csd\ta_SUB.obj \ + ..\..\..\..\..\temp\csd\ta_SUM.obj \ + ..\..\..\..\..\temp\csd\ta_T3.obj \ + ..\..\..\..\..\temp\csd\ta_TAN.obj \ + ..\..\..\..\..\temp\csd\ta_TANH.obj \ + ..\..\..\..\..\temp\csd\ta_TEMA.obj \ + ..\..\..\..\..\temp\csd\ta_TRANGE.obj \ + ..\..\..\..\..\temp\csd\ta_TRIMA.obj \ + ..\..\..\..\..\temp\csd\ta_TRIX.obj \ + ..\..\..\..\..\temp\csd\ta_TSF.obj \ + ..\..\..\..\..\temp\csd\ta_TYPPRICE.obj \ + ..\..\..\..\..\temp\csd\ta_ULTOSC.obj \ + ..\..\..\..\..\temp\csd\ta_VAR.obj \ + ..\..\..\..\..\temp\csd\ta_WCLPRICE.obj \ + ..\..\..\..\..\temp\csd\ta_WILLR.obj \ + ..\..\..\..\..\temp\csd\ta_WMA.obj +SRCMOC = +OBJMOC = +DIST = +TARGET = ..\..\..\..\..\lib\ta_func_csd.lib + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .c + +.cpp.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.cxx.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.cc.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.c.obj: + $(CC) -c $(CFLAGS) $(INCPATH) -o$@ $< + +####### Build rules + +all: $(TARGET) + +$(TARGET): $(OBJECTS) $(OBJMOC) + -del $(TARGET) + $(LIB) $(TARGET) ..\..\..\..\..\temp\csd\ta_utility.obj \ ++..\..\..\..\..\temp\csd\ta_ACOS.obj \ ++..\..\..\..\..\temp\csd\ta_AD.obj \ ++..\..\..\..\..\temp\csd\ta_ADD.obj \ ++..\..\..\..\..\temp\csd\ta_ADOSC.obj \ ++..\..\..\..\..\temp\csd\ta_ADX.obj \ ++..\..\..\..\..\temp\csd\ta_ADXR.obj \ ++..\..\..\..\..\temp\csd\ta_APO.obj \ ++..\..\..\..\..\temp\csd\ta_AROON.obj \ ++..\..\..\..\..\temp\csd\ta_AROONOSC.obj \ ++..\..\..\..\..\temp\csd\ta_ASIN.obj \ ++..\..\..\..\..\temp\csd\ta_ATAN.obj \ ++..\..\..\..\..\temp\csd\ta_ATR.obj \ ++..\..\..\..\..\temp\csd\ta_AVGPRICE.obj \ ++..\..\..\..\..\temp\csd\ta_BBANDS.obj \ ++..\..\..\..\..\temp\csd\ta_BETA.obj \ ++..\..\..\..\..\temp\csd\ta_BOP.obj \ ++..\..\..\..\..\temp\csd\ta_CCI.obj \ ++..\..\..\..\..\temp\csd\ta_CDL2CROWS.obj \ ++..\..\..\..\..\temp\csd\ta_CDL3BLACKCROWS.obj \ ++..\..\..\..\..\temp\csd\ta_CDL3INSIDE.obj \ ++..\..\..\..\..\temp\csd\ta_CDL3LINESTRIKE.obj \ ++..\..\..\..\..\temp\csd\ta_CDL3OUTSIDE.obj \ ++..\..\..\..\..\temp\csd\ta_CDL3STARSINSOUTH.obj \ ++..\..\..\..\..\temp\csd\ta_CDL3WHITESOLDIERS.obj \ ++..\..\..\..\..\temp\csd\ta_CDLABANDONEDBABY.obj \ ++..\..\..\..\..\temp\csd\ta_CDLADVANCEBLOCK.obj \ ++..\..\..\..\..\temp\csd\ta_CDLBELTHOLD.obj \ ++..\..\..\..\..\temp\csd\ta_CDLBREAKAWAY.obj \ ++..\..\..\..\..\temp\csd\ta_CDLCLOSINGMARUBOZU.obj \ ++..\..\..\..\..\temp\csd\ta_CDLCONCEALBABYSWALL.obj \ ++..\..\..\..\..\temp\csd\ta_CDLCOUNTERATTACK.obj \ ++..\..\..\..\..\temp\csd\ta_CDLDARKCLOUDCOVER.obj \ ++..\..\..\..\..\temp\csd\ta_CDLDOJI.obj \ ++..\..\..\..\..\temp\csd\ta_CDLDOJISTAR.obj \ ++..\..\..\..\..\temp\csd\ta_CDLDRAGONFLYDOJI.obj \ ++..\..\..\..\..\temp\csd\ta_CDLENGULFING.obj \ ++..\..\..\..\..\temp\csd\ta_CDLEVENINGDOJISTAR.obj \ ++..\..\..\..\..\temp\csd\ta_CDLEVENINGSTAR.obj \ ++..\..\..\..\..\temp\csd\ta_CDLGAPSIDESIDEWHITE.obj \ ++..\..\..\..\..\temp\csd\ta_CDLGRAVESTONEDOJI.obj \ ++..\..\..\..\..\temp\csd\ta_CDLHAMMER.obj \ ++..\..\..\..\..\temp\csd\ta_CDLHANGINGMAN.obj \ ++..\..\..\..\..\temp\csd\ta_CDLHARAMI.obj \ ++..\..\..\..\..\temp\csd\ta_CDLHARAMICROSS.obj \ ++..\..\..\..\..\temp\csd\ta_CDLHIGHWAVE.obj \ ++..\..\..\..\..\temp\csd\ta_CDLHIKKAKE.obj \ ++..\..\..\..\..\temp\csd\ta_CDLHIKKAKEMOD.obj \ ++..\..\..\..\..\temp\csd\ta_CDLHOMINGPIGEON.obj \ ++..\..\..\..\..\temp\csd\ta_CDLIDENTICAL3CROWS.obj \ ++..\..\..\..\..\temp\csd\ta_CDLINNECK.obj \ ++..\..\..\..\..\temp\csd\ta_CDLINVERTEDHAMMER.obj \ ++..\..\..\..\..\temp\csd\ta_CDLKICKING.obj \ ++..\..\..\..\..\temp\csd\ta_CDLKICKINGBYLENGTH.obj \ ++..\..\..\..\..\temp\csd\ta_CDLLADDERBOTTOM.obj \ ++..\..\..\..\..\temp\csd\ta_CDLLONGLEGGEDDOJI.obj \ ++..\..\..\..\..\temp\csd\ta_CDLLONGLINE.obj \ ++..\..\..\..\..\temp\csd\ta_CDLMARUBOZU.obj \ ++..\..\..\..\..\temp\csd\ta_CDLMATCHINGLOW.obj \ ++..\..\..\..\..\temp\csd\ta_CDLMATHOLD.obj \ ++..\..\..\..\..\temp\csd\ta_CDLMORNINGDOJISTAR.obj \ ++..\..\..\..\..\temp\csd\ta_CDLMORNINGSTAR.obj \ ++..\..\..\..\..\temp\csd\ta_CDLONNECK.obj \ ++..\..\..\..\..\temp\csd\ta_CDLPIERCING.obj \ ++..\..\..\..\..\temp\csd\ta_CDLRICKSHAWMAN.obj \ ++..\..\..\..\..\temp\csd\ta_CDLRISEFALL3METHODS.obj \ ++..\..\..\..\..\temp\csd\ta_CDLSEPARATINGLINES.obj \ ++..\..\..\..\..\temp\csd\ta_CDLSHOOTINGSTAR.obj \ ++..\..\..\..\..\temp\csd\ta_CDLSHORTLINE.obj \ ++..\..\..\..\..\temp\csd\ta_CDLSPINNINGTOP.obj \ ++..\..\..\..\..\temp\csd\ta_CDLSTALLEDPATTERN.obj \ ++..\..\..\..\..\temp\csd\ta_CDLSTICKSANDWICH.obj \ ++..\..\..\..\..\temp\csd\ta_CDLTAKURI.obj \ ++..\..\..\..\..\temp\csd\ta_CDLTASUKIGAP.obj \ ++..\..\..\..\..\temp\csd\ta_CDLTHRUSTING.obj \ ++..\..\..\..\..\temp\csd\ta_CDLTRISTAR.obj \ ++..\..\..\..\..\temp\csd\ta_CDLUNIQUE3RIVER.obj \ ++..\..\..\..\..\temp\csd\ta_CDLUPSIDEGAP2CROWS.obj \ ++..\..\..\..\..\temp\csd\ta_CDLXSIDEGAP3METHODS.obj \ ++..\..\..\..\..\temp\csd\ta_CEIL.obj \ ++..\..\..\..\..\temp\csd\ta_CMO.obj \ ++..\..\..\..\..\temp\csd\ta_CORREL.obj \ ++..\..\..\..\..\temp\csd\ta_COS.obj \ ++..\..\..\..\..\temp\csd\ta_COSH.obj \ ++..\..\..\..\..\temp\csd\ta_DEMA.obj \ ++..\..\..\..\..\temp\csd\ta_DIV.obj \ ++..\..\..\..\..\temp\csd\ta_DX.obj \ ++..\..\..\..\..\temp\csd\ta_EMA.obj \ ++..\..\..\..\..\temp\csd\ta_EXP.obj \ ++..\..\..\..\..\temp\csd\ta_FLOOR.obj \ ++..\..\..\..\..\temp\csd\ta_HT_DCPERIOD.obj \ ++..\..\..\..\..\temp\csd\ta_HT_DCPHASE.obj \ ++..\..\..\..\..\temp\csd\ta_HT_PHASOR.obj \ ++..\..\..\..\..\temp\csd\ta_HT_SINE.obj \ ++..\..\..\..\..\temp\csd\ta_HT_TRENDLINE.obj \ ++..\..\..\..\..\temp\csd\ta_HT_TRENDMODE.obj \ ++..\..\..\..\..\temp\csd\ta_KAMA.obj \ ++..\..\..\..\..\temp\csd\ta_LINEARREG.obj \ ++..\..\..\..\..\temp\csd\ta_LINEARREG_ANGLE.obj \ ++..\..\..\..\..\temp\csd\ta_LINEARREG_INTERCEPT.obj \ ++..\..\..\..\..\temp\csd\ta_LINEARREG_SLOPE.obj \ ++..\..\..\..\..\temp\csd\ta_LN.obj \ ++..\..\..\..\..\temp\csd\ta_LOG10.obj \ ++..\..\..\..\..\temp\csd\ta_MA.obj \ ++..\..\..\..\..\temp\csd\ta_MACD.obj \ ++..\..\..\..\..\temp\csd\ta_MACDEXT.obj \ ++..\..\..\..\..\temp\csd\ta_MACDFIX.obj \ ++..\..\..\..\..\temp\csd\ta_MAMA.obj \ ++..\..\..\..\..\temp\csd\ta_MAVP.obj \ ++..\..\..\..\..\temp\csd\ta_MAX.obj \ ++..\..\..\..\..\temp\csd\ta_MAXINDEX.obj \ ++..\..\..\..\..\temp\csd\ta_MEDPRICE.obj \ ++..\..\..\..\..\temp\csd\ta_MFI.obj \ ++..\..\..\..\..\temp\csd\ta_MIDPOINT.obj \ ++..\..\..\..\..\temp\csd\ta_MIDPRICE.obj \ ++..\..\..\..\..\temp\csd\ta_MIN.obj \ ++..\..\..\..\..\temp\csd\ta_MININDEX.obj \ ++..\..\..\..\..\temp\csd\ta_MINMAX.obj \ ++..\..\..\..\..\temp\csd\ta_MINMAXINDEX.obj \ ++..\..\..\..\..\temp\csd\ta_MINUS_DI.obj \ ++..\..\..\..\..\temp\csd\ta_MINUS_DM.obj \ ++..\..\..\..\..\temp\csd\ta_MOM.obj \ ++..\..\..\..\..\temp\csd\ta_MULT.obj \ ++..\..\..\..\..\temp\csd\ta_NATR.obj \ ++..\..\..\..\..\temp\csd\ta_OBV.obj \ ++..\..\..\..\..\temp\csd\ta_PLUS_DI.obj \ ++..\..\..\..\..\temp\csd\ta_PLUS_DM.obj \ ++..\..\..\..\..\temp\csd\ta_PPO.obj \ ++..\..\..\..\..\temp\csd\ta_ROC.obj \ ++..\..\..\..\..\temp\csd\ta_ROCP.obj \ ++..\..\..\..\..\temp\csd\ta_ROCR.obj \ ++..\..\..\..\..\temp\csd\ta_ROCR100.obj \ ++..\..\..\..\..\temp\csd\ta_RSI.obj \ ++..\..\..\..\..\temp\csd\ta_SAR.obj \ ++..\..\..\..\..\temp\csd\ta_SAREXT.obj \ ++..\..\..\..\..\temp\csd\ta_SIN.obj \ ++..\..\..\..\..\temp\csd\ta_SINH.obj \ ++..\..\..\..\..\temp\csd\ta_SMA.obj \ ++..\..\..\..\..\temp\csd\ta_SQRT.obj \ ++..\..\..\..\..\temp\csd\ta_STDDEV.obj \ ++..\..\..\..\..\temp\csd\ta_STOCH.obj \ ++..\..\..\..\..\temp\csd\ta_STOCHF.obj \ ++..\..\..\..\..\temp\csd\ta_STOCHRSI.obj \ ++..\..\..\..\..\temp\csd\ta_SUB.obj \ ++..\..\..\..\..\temp\csd\ta_SUM.obj \ ++..\..\..\..\..\temp\csd\ta_T3.obj \ ++..\..\..\..\..\temp\csd\ta_TAN.obj \ ++..\..\..\..\..\temp\csd\ta_TANH.obj \ ++..\..\..\..\..\temp\csd\ta_TEMA.obj \ ++..\..\..\..\..\temp\csd\ta_TRANGE.obj \ ++..\..\..\..\..\temp\csd\ta_TRIMA.obj \ ++..\..\..\..\..\temp\csd\ta_TRIX.obj \ ++..\..\..\..\..\temp\csd\ta_TSF.obj \ ++..\..\..\..\..\temp\csd\ta_TYPPRICE.obj \ ++..\..\..\..\..\temp\csd\ta_ULTOSC.obj \ ++..\..\..\..\..\temp\csd\ta_VAR.obj \ ++..\..\..\..\..\temp\csd\ta_WCLPRICE.obj \ ++..\..\..\..\..\temp\csd\ta_WILLR.obj \ ++..\..\..\..\..\temp\csd\ta_WMA.obj \ ++,; + +moc: $(SRCMOC) + +tmake: ../csd/win32/symantec/ta_func/Makefile + +../csd/win32/symantec/ta_func/Makefile: ta_func/ta_func.pro + tmake ta_func/ta_func.pro -o ../csd/win32/symantec/ta_func/Makefile + +dist: + $(ZIP) ta_func/ta_func.zip ta_func/ta_func.pro $(SOURCES) $(HEADERS) $(DIST) + +clean: + -del ..\..\..\..\..\temp\csd\ta_utility.obj + -del ..\..\..\..\..\temp\csd\ta_ACOS.obj + -del ..\..\..\..\..\temp\csd\ta_AD.obj + -del ..\..\..\..\..\temp\csd\ta_ADD.obj + -del ..\..\..\..\..\temp\csd\ta_ADOSC.obj + -del ..\..\..\..\..\temp\csd\ta_ADX.obj + -del ..\..\..\..\..\temp\csd\ta_ADXR.obj + -del ..\..\..\..\..\temp\csd\ta_APO.obj + -del ..\..\..\..\..\temp\csd\ta_AROON.obj + -del ..\..\..\..\..\temp\csd\ta_AROONOSC.obj + -del ..\..\..\..\..\temp\csd\ta_ASIN.obj + -del ..\..\..\..\..\temp\csd\ta_ATAN.obj + -del ..\..\..\..\..\temp\csd\ta_ATR.obj + -del ..\..\..\..\..\temp\csd\ta_AVGPRICE.obj + -del ..\..\..\..\..\temp\csd\ta_BBANDS.obj + -del ..\..\..\..\..\temp\csd\ta_BETA.obj + -del ..\..\..\..\..\temp\csd\ta_BOP.obj + -del ..\..\..\..\..\temp\csd\ta_CCI.obj + -del ..\..\..\..\..\temp\csd\ta_CDL2CROWS.obj + -del ..\..\..\..\..\temp\csd\ta_CDL3BLACKCROWS.obj + -del ..\..\..\..\..\temp\csd\ta_CDL3INSIDE.obj + -del ..\..\..\..\..\temp\csd\ta_CDL3LINESTRIKE.obj + -del ..\..\..\..\..\temp\csd\ta_CDL3OUTSIDE.obj + -del ..\..\..\..\..\temp\csd\ta_CDL3STARSINSOUTH.obj + -del ..\..\..\..\..\temp\csd\ta_CDL3WHITESOLDIERS.obj + -del ..\..\..\..\..\temp\csd\ta_CDLABANDONEDBABY.obj + -del ..\..\..\..\..\temp\csd\ta_CDLADVANCEBLOCK.obj + -del ..\..\..\..\..\temp\csd\ta_CDLBELTHOLD.obj + -del ..\..\..\..\..\temp\csd\ta_CDLBREAKAWAY.obj + -del ..\..\..\..\..\temp\csd\ta_CDLCLOSINGMARUBOZU.obj + -del ..\..\..\..\..\temp\csd\ta_CDLCONCEALBABYSWALL.obj + -del ..\..\..\..\..\temp\csd\ta_CDLCOUNTERATTACK.obj + -del ..\..\..\..\..\temp\csd\ta_CDLDARKCLOUDCOVER.obj + -del ..\..\..\..\..\temp\csd\ta_CDLDOJI.obj + -del ..\..\..\..\..\temp\csd\ta_CDLDOJISTAR.obj + -del ..\..\..\..\..\temp\csd\ta_CDLDRAGONFLYDOJI.obj + -del ..\..\..\..\..\temp\csd\ta_CDLENGULFING.obj + -del ..\..\..\..\..\temp\csd\ta_CDLEVENINGDOJISTAR.obj + -del ..\..\..\..\..\temp\csd\ta_CDLEVENINGSTAR.obj + -del ..\..\..\..\..\temp\csd\ta_CDLGAPSIDESIDEWHITE.obj + -del ..\..\..\..\..\temp\csd\ta_CDLGRAVESTONEDOJI.obj + -del ..\..\..\..\..\temp\csd\ta_CDLHAMMER.obj + -del ..\..\..\..\..\temp\csd\ta_CDLHANGINGMAN.obj + -del ..\..\..\..\..\temp\csd\ta_CDLHARAMI.obj + -del ..\..\..\..\..\temp\csd\ta_CDLHARAMICROSS.obj + -del ..\..\..\..\..\temp\csd\ta_CDLHIGHWAVE.obj + -del ..\..\..\..\..\temp\csd\ta_CDLHIKKAKE.obj + -del ..\..\..\..\..\temp\csd\ta_CDLHIKKAKEMOD.obj + -del ..\..\..\..\..\temp\csd\ta_CDLHOMINGPIGEON.obj + -del ..\..\..\..\..\temp\csd\ta_CDLIDENTICAL3CROWS.obj + -del ..\..\..\..\..\temp\csd\ta_CDLINNECK.obj + -del ..\..\..\..\..\temp\csd\ta_CDLINVERTEDHAMMER.obj + -del ..\..\..\..\..\temp\csd\ta_CDLKICKING.obj + -del ..\..\..\..\..\temp\csd\ta_CDLKICKINGBYLENGTH.obj + -del ..\..\..\..\..\temp\csd\ta_CDLLADDERBOTTOM.obj + -del ..\..\..\..\..\temp\csd\ta_CDLLONGLEGGEDDOJI.obj + -del ..\..\..\..\..\temp\csd\ta_CDLLONGLINE.obj + -del ..\..\..\..\..\temp\csd\ta_CDLMARUBOZU.obj + -del ..\..\..\..\..\temp\csd\ta_CDLMATCHINGLOW.obj + -del ..\..\..\..\..\temp\csd\ta_CDLMATHOLD.obj + -del ..\..\..\..\..\temp\csd\ta_CDLMORNINGDOJISTAR.obj + -del ..\..\..\..\..\temp\csd\ta_CDLMORNINGSTAR.obj + -del ..\..\..\..\..\temp\csd\ta_CDLONNECK.obj + -del ..\..\..\..\..\temp\csd\ta_CDLPIERCING.obj + -del ..\..\..\..\..\temp\csd\ta_CDLRICKSHAWMAN.obj + -del ..\..\..\..\..\temp\csd\ta_CDLRISEFALL3METHODS.obj + -del ..\..\..\..\..\temp\csd\ta_CDLSEPARATINGLINES.obj + -del ..\..\..\..\..\temp\csd\ta_CDLSHOOTINGSTAR.obj + -del ..\..\..\..\..\temp\csd\ta_CDLSHORTLINE.obj + -del ..\..\..\..\..\temp\csd\ta_CDLSPINNINGTOP.obj + -del ..\..\..\..\..\temp\csd\ta_CDLSTALLEDPATTERN.obj + -del ..\..\..\..\..\temp\csd\ta_CDLSTICKSANDWICH.obj + -del ..\..\..\..\..\temp\csd\ta_CDLTAKURI.obj + -del ..\..\..\..\..\temp\csd\ta_CDLTASUKIGAP.obj + -del ..\..\..\..\..\temp\csd\ta_CDLTHRUSTING.obj + -del ..\..\..\..\..\temp\csd\ta_CDLTRISTAR.obj + -del ..\..\..\..\..\temp\csd\ta_CDLUNIQUE3RIVER.obj + -del ..\..\..\..\..\temp\csd\ta_CDLUPSIDEGAP2CROWS.obj + -del ..\..\..\..\..\temp\csd\ta_CDLXSIDEGAP3METHODS.obj + -del ..\..\..\..\..\temp\csd\ta_CEIL.obj + -del ..\..\..\..\..\temp\csd\ta_CMO.obj + -del ..\..\..\..\..\temp\csd\ta_CORREL.obj + -del ..\..\..\..\..\temp\csd\ta_COS.obj + -del ..\..\..\..\..\temp\csd\ta_COSH.obj + -del ..\..\..\..\..\temp\csd\ta_DEMA.obj + -del ..\..\..\..\..\temp\csd\ta_DIV.obj + -del ..\..\..\..\..\temp\csd\ta_DX.obj + -del ..\..\..\..\..\temp\csd\ta_EMA.obj + -del ..\..\..\..\..\temp\csd\ta_EXP.obj + -del ..\..\..\..\..\temp\csd\ta_FLOOR.obj + -del ..\..\..\..\..\temp\csd\ta_HT_DCPERIOD.obj + -del ..\..\..\..\..\temp\csd\ta_HT_DCPHASE.obj + -del ..\..\..\..\..\temp\csd\ta_HT_PHASOR.obj + -del ..\..\..\..\..\temp\csd\ta_HT_SINE.obj + -del ..\..\..\..\..\temp\csd\ta_HT_TRENDLINE.obj + -del ..\..\..\..\..\temp\csd\ta_HT_TRENDMODE.obj + -del ..\..\..\..\..\temp\csd\ta_KAMA.obj + -del ..\..\..\..\..\temp\csd\ta_LINEARREG.obj + -del ..\..\..\..\..\temp\csd\ta_LINEARREG_ANGLE.obj + -del ..\..\..\..\..\temp\csd\ta_LINEARREG_INTERCEPT.obj + -del ..\..\..\..\..\temp\csd\ta_LINEARREG_SLOPE.obj + -del ..\..\..\..\..\temp\csd\ta_LN.obj + -del ..\..\..\..\..\temp\csd\ta_LOG10.obj + -del ..\..\..\..\..\temp\csd\ta_MA.obj + -del ..\..\..\..\..\temp\csd\ta_MACD.obj + -del ..\..\..\..\..\temp\csd\ta_MACDEXT.obj + -del ..\..\..\..\..\temp\csd\ta_MACDFIX.obj + -del ..\..\..\..\..\temp\csd\ta_MAMA.obj + -del ..\..\..\..\..\temp\csd\ta_MAVP.obj + -del ..\..\..\..\..\temp\csd\ta_MAX.obj + -del ..\..\..\..\..\temp\csd\ta_MAXINDEX.obj + -del ..\..\..\..\..\temp\csd\ta_MEDPRICE.obj + -del ..\..\..\..\..\temp\csd\ta_MFI.obj + -del ..\..\..\..\..\temp\csd\ta_MIDPOINT.obj + -del ..\..\..\..\..\temp\csd\ta_MIDPRICE.obj + -del ..\..\..\..\..\temp\csd\ta_MIN.obj + -del ..\..\..\..\..\temp\csd\ta_MININDEX.obj + -del ..\..\..\..\..\temp\csd\ta_MINMAX.obj + -del ..\..\..\..\..\temp\csd\ta_MINMAXINDEX.obj + -del ..\..\..\..\..\temp\csd\ta_MINUS_DI.obj + -del ..\..\..\..\..\temp\csd\ta_MINUS_DM.obj + -del ..\..\..\..\..\temp\csd\ta_MOM.obj + -del ..\..\..\..\..\temp\csd\ta_MULT.obj + -del ..\..\..\..\..\temp\csd\ta_NATR.obj + -del ..\..\..\..\..\temp\csd\ta_OBV.obj + -del ..\..\..\..\..\temp\csd\ta_PLUS_DI.obj + -del ..\..\..\..\..\temp\csd\ta_PLUS_DM.obj + -del ..\..\..\..\..\temp\csd\ta_PPO.obj + -del ..\..\..\..\..\temp\csd\ta_ROC.obj + -del ..\..\..\..\..\temp\csd\ta_ROCP.obj + -del ..\..\..\..\..\temp\csd\ta_ROCR.obj + -del ..\..\..\..\..\temp\csd\ta_ROCR100.obj + -del ..\..\..\..\..\temp\csd\ta_RSI.obj + -del ..\..\..\..\..\temp\csd\ta_SAR.obj + -del ..\..\..\..\..\temp\csd\ta_SAREXT.obj + -del ..\..\..\..\..\temp\csd\ta_SIN.obj + -del ..\..\..\..\..\temp\csd\ta_SINH.obj + -del ..\..\..\..\..\temp\csd\ta_SMA.obj + -del ..\..\..\..\..\temp\csd\ta_SQRT.obj + -del ..\..\..\..\..\temp\csd\ta_STDDEV.obj + -del ..\..\..\..\..\temp\csd\ta_STOCH.obj + -del ..\..\..\..\..\temp\csd\ta_STOCHF.obj + -del ..\..\..\..\..\temp\csd\ta_STOCHRSI.obj + -del ..\..\..\..\..\temp\csd\ta_SUB.obj + -del ..\..\..\..\..\temp\csd\ta_SUM.obj + -del ..\..\..\..\..\temp\csd\ta_T3.obj + -del ..\..\..\..\..\temp\csd\ta_TAN.obj + -del ..\..\..\..\..\temp\csd\ta_TANH.obj + -del ..\..\..\..\..\temp\csd\ta_TEMA.obj + -del ..\..\..\..\..\temp\csd\ta_TRANGE.obj + -del ..\..\..\..\..\temp\csd\ta_TRIMA.obj + -del ..\..\..\..\..\temp\csd\ta_TRIX.obj + -del ..\..\..\..\..\temp\csd\ta_TSF.obj + -del ..\..\..\..\..\temp\csd\ta_TYPPRICE.obj + -del ..\..\..\..\..\temp\csd\ta_ULTOSC.obj + -del ..\..\..\..\..\temp\csd\ta_VAR.obj + -del ..\..\..\..\..\temp\csd\ta_WCLPRICE.obj + -del ..\..\..\..\..\temp\csd\ta_WILLR.obj + -del ..\..\..\..\..\temp\csd\ta_WMA.obj + -del $(TARGET) + -del ../../../../../bin/*.map + -del ../../../../../bin/*._xe + -del ../../../../../bin/*.tds + -del ../../../../../bin/*.pdb + -del ../../../../../bin/*.pbo + -del ../../../../../bin/*.pbi + -del ../../../../../bin/*.pbt + -del ../../../../../temp/csd/*.pch + -del ../../../../../temp/csd/*.idb + -del ../../../../../temp/csd/ta_func/*.pch + -del ../../../../../temp/csd/ta_func/*.idb + -del ../../../../../temp/csd/ta_func/*.obj + +####### Compile + +..\..\..\..\..\temp\csd\ta_utility.obj: ..\..\..\..\..\src\ta_func\ta_utility.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_utility.obj ..\..\..\..\..\src\ta_func\ta_utility.c + +..\..\..\..\..\temp\csd\ta_ACOS.obj: ..\..\..\..\..\src\ta_func\ta_ACOS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_ACOS.obj ..\..\..\..\..\src\ta_func\ta_ACOS.c + +..\..\..\..\..\temp\csd\ta_AD.obj: ..\..\..\..\..\src\ta_func\ta_AD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_AD.obj ..\..\..\..\..\src\ta_func\ta_AD.c + +..\..\..\..\..\temp\csd\ta_ADD.obj: ..\..\..\..\..\src\ta_func\ta_ADD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_ADD.obj ..\..\..\..\..\src\ta_func\ta_ADD.c + +..\..\..\..\..\temp\csd\ta_ADOSC.obj: ..\..\..\..\..\src\ta_func\ta_ADOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_ADOSC.obj ..\..\..\..\..\src\ta_func\ta_ADOSC.c + +..\..\..\..\..\temp\csd\ta_ADX.obj: ..\..\..\..\..\src\ta_func\ta_ADX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_ADX.obj ..\..\..\..\..\src\ta_func\ta_ADX.c + +..\..\..\..\..\temp\csd\ta_ADXR.obj: ..\..\..\..\..\src\ta_func\ta_ADXR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_ADXR.obj ..\..\..\..\..\src\ta_func\ta_ADXR.c + +..\..\..\..\..\temp\csd\ta_APO.obj: ..\..\..\..\..\src\ta_func\ta_APO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_APO.obj ..\..\..\..\..\src\ta_func\ta_APO.c + +..\..\..\..\..\temp\csd\ta_AROON.obj: ..\..\..\..\..\src\ta_func\ta_AROON.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_AROON.obj ..\..\..\..\..\src\ta_func\ta_AROON.c + +..\..\..\..\..\temp\csd\ta_AROONOSC.obj: ..\..\..\..\..\src\ta_func\ta_AROONOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_AROONOSC.obj ..\..\..\..\..\src\ta_func\ta_AROONOSC.c + +..\..\..\..\..\temp\csd\ta_ASIN.obj: ..\..\..\..\..\src\ta_func\ta_ASIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_ASIN.obj ..\..\..\..\..\src\ta_func\ta_ASIN.c + +..\..\..\..\..\temp\csd\ta_ATAN.obj: ..\..\..\..\..\src\ta_func\ta_ATAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_ATAN.obj ..\..\..\..\..\src\ta_func\ta_ATAN.c + +..\..\..\..\..\temp\csd\ta_ATR.obj: ..\..\..\..\..\src\ta_func\ta_ATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_ATR.obj ..\..\..\..\..\src\ta_func\ta_ATR.c + +..\..\..\..\..\temp\csd\ta_AVGPRICE.obj: ..\..\..\..\..\src\ta_func\ta_AVGPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_AVGPRICE.obj ..\..\..\..\..\src\ta_func\ta_AVGPRICE.c + +..\..\..\..\..\temp\csd\ta_BBANDS.obj: ..\..\..\..\..\src\ta_func\ta_BBANDS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_BBANDS.obj ..\..\..\..\..\src\ta_func\ta_BBANDS.c + +..\..\..\..\..\temp\csd\ta_BETA.obj: ..\..\..\..\..\src\ta_func\ta_BETA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_BETA.obj ..\..\..\..\..\src\ta_func\ta_BETA.c + +..\..\..\..\..\temp\csd\ta_BOP.obj: ..\..\..\..\..\src\ta_func\ta_BOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_BOP.obj ..\..\..\..\..\src\ta_func\ta_BOP.c + +..\..\..\..\..\temp\csd\ta_CCI.obj: ..\..\..\..\..\src\ta_func\ta_CCI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CCI.obj ..\..\..\..\..\src\ta_func\ta_CCI.c + +..\..\..\..\..\temp\csd\ta_CDL2CROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDL2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDL2CROWS.obj ..\..\..\..\..\src\ta_func\ta_CDL2CROWS.c + +..\..\..\..\..\temp\csd\ta_CDL3BLACKCROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDL3BLACKCROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDL3BLACKCROWS.obj ..\..\..\..\..\src\ta_func\ta_CDL3BLACKCROWS.c + +..\..\..\..\..\temp\csd\ta_CDL3INSIDE.obj: ..\..\..\..\..\src\ta_func\ta_CDL3INSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDL3INSIDE.obj ..\..\..\..\..\src\ta_func\ta_CDL3INSIDE.c + +..\..\..\..\..\temp\csd\ta_CDL3LINESTRIKE.obj: ..\..\..\..\..\src\ta_func\ta_CDL3LINESTRIKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDL3LINESTRIKE.obj ..\..\..\..\..\src\ta_func\ta_CDL3LINESTRIKE.c + +..\..\..\..\..\temp\csd\ta_CDL3OUTSIDE.obj: ..\..\..\..\..\src\ta_func\ta_CDL3OUTSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDL3OUTSIDE.obj ..\..\..\..\..\src\ta_func\ta_CDL3OUTSIDE.c + +..\..\..\..\..\temp\csd\ta_CDL3STARSINSOUTH.obj: ..\..\..\..\..\src\ta_func\ta_CDL3STARSINSOUTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDL3STARSINSOUTH.obj ..\..\..\..\..\src\ta_func\ta_CDL3STARSINSOUTH.c + +..\..\..\..\..\temp\csd\ta_CDL3WHITESOLDIERS.obj: ..\..\..\..\..\src\ta_func\ta_CDL3WHITESOLDIERS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDL3WHITESOLDIERS.obj ..\..\..\..\..\src\ta_func\ta_CDL3WHITESOLDIERS.c + +..\..\..\..\..\temp\csd\ta_CDLABANDONEDBABY.obj: ..\..\..\..\..\src\ta_func\ta_CDLABANDONEDBABY.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLABANDONEDBABY.obj ..\..\..\..\..\src\ta_func\ta_CDLABANDONEDBABY.c + +..\..\..\..\..\temp\csd\ta_CDLADVANCEBLOCK.obj: ..\..\..\..\..\src\ta_func\ta_CDLADVANCEBLOCK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLADVANCEBLOCK.obj ..\..\..\..\..\src\ta_func\ta_CDLADVANCEBLOCK.c + +..\..\..\..\..\temp\csd\ta_CDLBELTHOLD.obj: ..\..\..\..\..\src\ta_func\ta_CDLBELTHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLBELTHOLD.obj ..\..\..\..\..\src\ta_func\ta_CDLBELTHOLD.c + +..\..\..\..\..\temp\csd\ta_CDLBREAKAWAY.obj: ..\..\..\..\..\src\ta_func\ta_CDLBREAKAWAY.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLBREAKAWAY.obj ..\..\..\..\..\src\ta_func\ta_CDLBREAKAWAY.c + +..\..\..\..\..\temp\csd\ta_CDLCLOSINGMARUBOZU.obj: ..\..\..\..\..\src\ta_func\ta_CDLCLOSINGMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLCLOSINGMARUBOZU.obj ..\..\..\..\..\src\ta_func\ta_CDLCLOSINGMARUBOZU.c + +..\..\..\..\..\temp\csd\ta_CDLCONCEALBABYSWALL.obj: ..\..\..\..\..\src\ta_func\ta_CDLCONCEALBABYSWALL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLCONCEALBABYSWALL.obj ..\..\..\..\..\src\ta_func\ta_CDLCONCEALBABYSWALL.c + +..\..\..\..\..\temp\csd\ta_CDLCOUNTERATTACK.obj: ..\..\..\..\..\src\ta_func\ta_CDLCOUNTERATTACK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLCOUNTERATTACK.obj ..\..\..\..\..\src\ta_func\ta_CDLCOUNTERATTACK.c + +..\..\..\..\..\temp\csd\ta_CDLDARKCLOUDCOVER.obj: ..\..\..\..\..\src\ta_func\ta_CDLDARKCLOUDCOVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLDARKCLOUDCOVER.obj ..\..\..\..\..\src\ta_func\ta_CDLDARKCLOUDCOVER.c + +..\..\..\..\..\temp\csd\ta_CDLDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLDOJI.c + +..\..\..\..\..\temp\csd\ta_CDLDOJISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLDOJISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLDOJISTAR.c + +..\..\..\..\..\temp\csd\ta_CDLDRAGONFLYDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLDRAGONFLYDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLDRAGONFLYDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLDRAGONFLYDOJI.c + +..\..\..\..\..\temp\csd\ta_CDLENGULFING.obj: ..\..\..\..\..\src\ta_func\ta_CDLENGULFING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLENGULFING.obj ..\..\..\..\..\src\ta_func\ta_CDLENGULFING.c + +..\..\..\..\..\temp\csd\ta_CDLEVENINGDOJISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLEVENINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLEVENINGDOJISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLEVENINGDOJISTAR.c + +..\..\..\..\..\temp\csd\ta_CDLEVENINGSTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLEVENINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLEVENINGSTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLEVENINGSTAR.c + +..\..\..\..\..\temp\csd\ta_CDLGAPSIDESIDEWHITE.obj: ..\..\..\..\..\src\ta_func\ta_CDLGAPSIDESIDEWHITE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLGAPSIDESIDEWHITE.obj ..\..\..\..\..\src\ta_func\ta_CDLGAPSIDESIDEWHITE.c + +..\..\..\..\..\temp\csd\ta_CDLGRAVESTONEDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLGRAVESTONEDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLGRAVESTONEDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLGRAVESTONEDOJI.c + +..\..\..\..\..\temp\csd\ta_CDLHAMMER.obj: ..\..\..\..\..\src\ta_func\ta_CDLHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLHAMMER.obj ..\..\..\..\..\src\ta_func\ta_CDLHAMMER.c + +..\..\..\..\..\temp\csd\ta_CDLHANGINGMAN.obj: ..\..\..\..\..\src\ta_func\ta_CDLHANGINGMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLHANGINGMAN.obj ..\..\..\..\..\src\ta_func\ta_CDLHANGINGMAN.c + +..\..\..\..\..\temp\csd\ta_CDLHARAMI.obj: ..\..\..\..\..\src\ta_func\ta_CDLHARAMI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLHARAMI.obj ..\..\..\..\..\src\ta_func\ta_CDLHARAMI.c + +..\..\..\..\..\temp\csd\ta_CDLHARAMICROSS.obj: ..\..\..\..\..\src\ta_func\ta_CDLHARAMICROSS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLHARAMICROSS.obj ..\..\..\..\..\src\ta_func\ta_CDLHARAMICROSS.c + +..\..\..\..\..\temp\csd\ta_CDLHIGHWAVE.obj: ..\..\..\..\..\src\ta_func\ta_CDLHIGHWAVE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLHIGHWAVE.obj ..\..\..\..\..\src\ta_func\ta_CDLHIGHWAVE.c + +..\..\..\..\..\temp\csd\ta_CDLHIKKAKE.obj: ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLHIKKAKE.obj ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKE.c + +..\..\..\..\..\temp\csd\ta_CDLHIKKAKEMOD.obj: ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKEMOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLHIKKAKEMOD.obj ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKEMOD.c + +..\..\..\..\..\temp\csd\ta_CDLHOMINGPIGEON.obj: ..\..\..\..\..\src\ta_func\ta_CDLHOMINGPIGEON.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLHOMINGPIGEON.obj ..\..\..\..\..\src\ta_func\ta_CDLHOMINGPIGEON.c + +..\..\..\..\..\temp\csd\ta_CDLIDENTICAL3CROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDLIDENTICAL3CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLIDENTICAL3CROWS.obj ..\..\..\..\..\src\ta_func\ta_CDLIDENTICAL3CROWS.c + +..\..\..\..\..\temp\csd\ta_CDLINNECK.obj: ..\..\..\..\..\src\ta_func\ta_CDLINNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLINNECK.obj ..\..\..\..\..\src\ta_func\ta_CDLINNECK.c + +..\..\..\..\..\temp\csd\ta_CDLINVERTEDHAMMER.obj: ..\..\..\..\..\src\ta_func\ta_CDLINVERTEDHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLINVERTEDHAMMER.obj ..\..\..\..\..\src\ta_func\ta_CDLINVERTEDHAMMER.c + +..\..\..\..\..\temp\csd\ta_CDLKICKING.obj: ..\..\..\..\..\src\ta_func\ta_CDLKICKING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLKICKING.obj ..\..\..\..\..\src\ta_func\ta_CDLKICKING.c + +..\..\..\..\..\temp\csd\ta_CDLKICKINGBYLENGTH.obj: ..\..\..\..\..\src\ta_func\ta_CDLKICKINGBYLENGTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLKICKINGBYLENGTH.obj ..\..\..\..\..\src\ta_func\ta_CDLKICKINGBYLENGTH.c + +..\..\..\..\..\temp\csd\ta_CDLLADDERBOTTOM.obj: ..\..\..\..\..\src\ta_func\ta_CDLLADDERBOTTOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLLADDERBOTTOM.obj ..\..\..\..\..\src\ta_func\ta_CDLLADDERBOTTOM.c + +..\..\..\..\..\temp\csd\ta_CDLLONGLEGGEDDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLLONGLEGGEDDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLLONGLEGGEDDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLLONGLEGGEDDOJI.c + +..\..\..\..\..\temp\csd\ta_CDLLONGLINE.obj: ..\..\..\..\..\src\ta_func\ta_CDLLONGLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLLONGLINE.obj ..\..\..\..\..\src\ta_func\ta_CDLLONGLINE.c + +..\..\..\..\..\temp\csd\ta_CDLMARUBOZU.obj: ..\..\..\..\..\src\ta_func\ta_CDLMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLMARUBOZU.obj ..\..\..\..\..\src\ta_func\ta_CDLMARUBOZU.c + +..\..\..\..\..\temp\csd\ta_CDLMATCHINGLOW.obj: ..\..\..\..\..\src\ta_func\ta_CDLMATCHINGLOW.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLMATCHINGLOW.obj ..\..\..\..\..\src\ta_func\ta_CDLMATCHINGLOW.c + +..\..\..\..\..\temp\csd\ta_CDLMATHOLD.obj: ..\..\..\..\..\src\ta_func\ta_CDLMATHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLMATHOLD.obj ..\..\..\..\..\src\ta_func\ta_CDLMATHOLD.c + +..\..\..\..\..\temp\csd\ta_CDLMORNINGDOJISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLMORNINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLMORNINGDOJISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLMORNINGDOJISTAR.c + +..\..\..\..\..\temp\csd\ta_CDLMORNINGSTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLMORNINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLMORNINGSTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLMORNINGSTAR.c + +..\..\..\..\..\temp\csd\ta_CDLONNECK.obj: ..\..\..\..\..\src\ta_func\ta_CDLONNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLONNECK.obj ..\..\..\..\..\src\ta_func\ta_CDLONNECK.c + +..\..\..\..\..\temp\csd\ta_CDLPIERCING.obj: ..\..\..\..\..\src\ta_func\ta_CDLPIERCING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLPIERCING.obj ..\..\..\..\..\src\ta_func\ta_CDLPIERCING.c + +..\..\..\..\..\temp\csd\ta_CDLRICKSHAWMAN.obj: ..\..\..\..\..\src\ta_func\ta_CDLRICKSHAWMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLRICKSHAWMAN.obj ..\..\..\..\..\src\ta_func\ta_CDLRICKSHAWMAN.c + +..\..\..\..\..\temp\csd\ta_CDLRISEFALL3METHODS.obj: ..\..\..\..\..\src\ta_func\ta_CDLRISEFALL3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLRISEFALL3METHODS.obj ..\..\..\..\..\src\ta_func\ta_CDLRISEFALL3METHODS.c + +..\..\..\..\..\temp\csd\ta_CDLSEPARATINGLINES.obj: ..\..\..\..\..\src\ta_func\ta_CDLSEPARATINGLINES.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLSEPARATINGLINES.obj ..\..\..\..\..\src\ta_func\ta_CDLSEPARATINGLINES.c + +..\..\..\..\..\temp\csd\ta_CDLSHOOTINGSTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLSHOOTINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLSHOOTINGSTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLSHOOTINGSTAR.c + +..\..\..\..\..\temp\csd\ta_CDLSHORTLINE.obj: ..\..\..\..\..\src\ta_func\ta_CDLSHORTLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLSHORTLINE.obj ..\..\..\..\..\src\ta_func\ta_CDLSHORTLINE.c + +..\..\..\..\..\temp\csd\ta_CDLSPINNINGTOP.obj: ..\..\..\..\..\src\ta_func\ta_CDLSPINNINGTOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLSPINNINGTOP.obj ..\..\..\..\..\src\ta_func\ta_CDLSPINNINGTOP.c + +..\..\..\..\..\temp\csd\ta_CDLSTALLEDPATTERN.obj: ..\..\..\..\..\src\ta_func\ta_CDLSTALLEDPATTERN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLSTALLEDPATTERN.obj ..\..\..\..\..\src\ta_func\ta_CDLSTALLEDPATTERN.c + +..\..\..\..\..\temp\csd\ta_CDLSTICKSANDWICH.obj: ..\..\..\..\..\src\ta_func\ta_CDLSTICKSANDWICH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLSTICKSANDWICH.obj ..\..\..\..\..\src\ta_func\ta_CDLSTICKSANDWICH.c + +..\..\..\..\..\temp\csd\ta_CDLTAKURI.obj: ..\..\..\..\..\src\ta_func\ta_CDLTAKURI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLTAKURI.obj ..\..\..\..\..\src\ta_func\ta_CDLTAKURI.c + +..\..\..\..\..\temp\csd\ta_CDLTASUKIGAP.obj: ..\..\..\..\..\src\ta_func\ta_CDLTASUKIGAP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLTASUKIGAP.obj ..\..\..\..\..\src\ta_func\ta_CDLTASUKIGAP.c + +..\..\..\..\..\temp\csd\ta_CDLTHRUSTING.obj: ..\..\..\..\..\src\ta_func\ta_CDLTHRUSTING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLTHRUSTING.obj ..\..\..\..\..\src\ta_func\ta_CDLTHRUSTING.c + +..\..\..\..\..\temp\csd\ta_CDLTRISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLTRISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLTRISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLTRISTAR.c + +..\..\..\..\..\temp\csd\ta_CDLUNIQUE3RIVER.obj: ..\..\..\..\..\src\ta_func\ta_CDLUNIQUE3RIVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLUNIQUE3RIVER.obj ..\..\..\..\..\src\ta_func\ta_CDLUNIQUE3RIVER.c + +..\..\..\..\..\temp\csd\ta_CDLUPSIDEGAP2CROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDLUPSIDEGAP2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLUPSIDEGAP2CROWS.obj ..\..\..\..\..\src\ta_func\ta_CDLUPSIDEGAP2CROWS.c + +..\..\..\..\..\temp\csd\ta_CDLXSIDEGAP3METHODS.obj: ..\..\..\..\..\src\ta_func\ta_CDLXSIDEGAP3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLXSIDEGAP3METHODS.obj ..\..\..\..\..\src\ta_func\ta_CDLXSIDEGAP3METHODS.c + +..\..\..\..\..\temp\csd\ta_CEIL.obj: ..\..\..\..\..\src\ta_func\ta_CEIL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CEIL.obj ..\..\..\..\..\src\ta_func\ta_CEIL.c + +..\..\..\..\..\temp\csd\ta_CMO.obj: ..\..\..\..\..\src\ta_func\ta_CMO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CMO.obj ..\..\..\..\..\src\ta_func\ta_CMO.c + +..\..\..\..\..\temp\csd\ta_CORREL.obj: ..\..\..\..\..\src\ta_func\ta_CORREL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CORREL.obj ..\..\..\..\..\src\ta_func\ta_CORREL.c + +..\..\..\..\..\temp\csd\ta_COS.obj: ..\..\..\..\..\src\ta_func\ta_COS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_COS.obj ..\..\..\..\..\src\ta_func\ta_COS.c + +..\..\..\..\..\temp\csd\ta_COSH.obj: ..\..\..\..\..\src\ta_func\ta_COSH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_COSH.obj ..\..\..\..\..\src\ta_func\ta_COSH.c + +..\..\..\..\..\temp\csd\ta_DEMA.obj: ..\..\..\..\..\src\ta_func\ta_DEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_DEMA.obj ..\..\..\..\..\src\ta_func\ta_DEMA.c + +..\..\..\..\..\temp\csd\ta_DIV.obj: ..\..\..\..\..\src\ta_func\ta_DIV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_DIV.obj ..\..\..\..\..\src\ta_func\ta_DIV.c + +..\..\..\..\..\temp\csd\ta_DX.obj: ..\..\..\..\..\src\ta_func\ta_DX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_DX.obj ..\..\..\..\..\src\ta_func\ta_DX.c + +..\..\..\..\..\temp\csd\ta_EMA.obj: ..\..\..\..\..\src\ta_func\ta_EMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_EMA.obj ..\..\..\..\..\src\ta_func\ta_EMA.c + +..\..\..\..\..\temp\csd\ta_EXP.obj: ..\..\..\..\..\src\ta_func\ta_EXP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_EXP.obj ..\..\..\..\..\src\ta_func\ta_EXP.c + +..\..\..\..\..\temp\csd\ta_FLOOR.obj: ..\..\..\..\..\src\ta_func\ta_FLOOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_FLOOR.obj ..\..\..\..\..\src\ta_func\ta_FLOOR.c + +..\..\..\..\..\temp\csd\ta_HT_DCPERIOD.obj: ..\..\..\..\..\src\ta_func\ta_HT_DCPERIOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_HT_DCPERIOD.obj ..\..\..\..\..\src\ta_func\ta_HT_DCPERIOD.c + +..\..\..\..\..\temp\csd\ta_HT_DCPHASE.obj: ..\..\..\..\..\src\ta_func\ta_HT_DCPHASE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_HT_DCPHASE.obj ..\..\..\..\..\src\ta_func\ta_HT_DCPHASE.c + +..\..\..\..\..\temp\csd\ta_HT_PHASOR.obj: ..\..\..\..\..\src\ta_func\ta_HT_PHASOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_HT_PHASOR.obj ..\..\..\..\..\src\ta_func\ta_HT_PHASOR.c + +..\..\..\..\..\temp\csd\ta_HT_SINE.obj: ..\..\..\..\..\src\ta_func\ta_HT_SINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_HT_SINE.obj ..\..\..\..\..\src\ta_func\ta_HT_SINE.c + +..\..\..\..\..\temp\csd\ta_HT_TRENDLINE.obj: ..\..\..\..\..\src\ta_func\ta_HT_TRENDLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_HT_TRENDLINE.obj ..\..\..\..\..\src\ta_func\ta_HT_TRENDLINE.c + +..\..\..\..\..\temp\csd\ta_HT_TRENDMODE.obj: ..\..\..\..\..\src\ta_func\ta_HT_TRENDMODE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_HT_TRENDMODE.obj ..\..\..\..\..\src\ta_func\ta_HT_TRENDMODE.c + +..\..\..\..\..\temp\csd\ta_KAMA.obj: ..\..\..\..\..\src\ta_func\ta_KAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_KAMA.obj ..\..\..\..\..\src\ta_func\ta_KAMA.c + +..\..\..\..\..\temp\csd\ta_LINEARREG.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_LINEARREG.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG.c + +..\..\..\..\..\temp\csd\ta_LINEARREG_ANGLE.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG_ANGLE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_LINEARREG_ANGLE.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG_ANGLE.c + +..\..\..\..\..\temp\csd\ta_LINEARREG_INTERCEPT.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG_INTERCEPT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_LINEARREG_INTERCEPT.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG_INTERCEPT.c + +..\..\..\..\..\temp\csd\ta_LINEARREG_SLOPE.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG_SLOPE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_LINEARREG_SLOPE.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG_SLOPE.c + +..\..\..\..\..\temp\csd\ta_LN.obj: ..\..\..\..\..\src\ta_func\ta_LN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_LN.obj ..\..\..\..\..\src\ta_func\ta_LN.c + +..\..\..\..\..\temp\csd\ta_LOG10.obj: ..\..\..\..\..\src\ta_func\ta_LOG10.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_LOG10.obj ..\..\..\..\..\src\ta_func\ta_LOG10.c + +..\..\..\..\..\temp\csd\ta_MA.obj: ..\..\..\..\..\src\ta_func\ta_MA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_MA.obj ..\..\..\..\..\src\ta_func\ta_MA.c + +..\..\..\..\..\temp\csd\ta_MACD.obj: ..\..\..\..\..\src\ta_func\ta_MACD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_MACD.obj ..\..\..\..\..\src\ta_func\ta_MACD.c + +..\..\..\..\..\temp\csd\ta_MACDEXT.obj: ..\..\..\..\..\src\ta_func\ta_MACDEXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_MACDEXT.obj ..\..\..\..\..\src\ta_func\ta_MACDEXT.c + +..\..\..\..\..\temp\csd\ta_MACDFIX.obj: ..\..\..\..\..\src\ta_func\ta_MACDFIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_MACDFIX.obj ..\..\..\..\..\src\ta_func\ta_MACDFIX.c + +..\..\..\..\..\temp\csd\ta_MAMA.obj: ..\..\..\..\..\src\ta_func\ta_MAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_MAMA.obj ..\..\..\..\..\src\ta_func\ta_MAMA.c + +..\..\..\..\..\temp\csd\ta_MAVP.obj: ..\..\..\..\..\src\ta_func\ta_MAVP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_MAVP.obj ..\..\..\..\..\src\ta_func\ta_MAVP.c + +..\..\..\..\..\temp\csd\ta_MAX.obj: ..\..\..\..\..\src\ta_func\ta_MAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_MAX.obj ..\..\..\..\..\src\ta_func\ta_MAX.c + +..\..\..\..\..\temp\csd\ta_MAXINDEX.obj: ..\..\..\..\..\src\ta_func\ta_MAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_MAXINDEX.obj ..\..\..\..\..\src\ta_func\ta_MAXINDEX.c + +..\..\..\..\..\temp\csd\ta_MEDPRICE.obj: ..\..\..\..\..\src\ta_func\ta_MEDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_MEDPRICE.obj ..\..\..\..\..\src\ta_func\ta_MEDPRICE.c + +..\..\..\..\..\temp\csd\ta_MFI.obj: ..\..\..\..\..\src\ta_func\ta_MFI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_MFI.obj ..\..\..\..\..\src\ta_func\ta_MFI.c + +..\..\..\..\..\temp\csd\ta_MIDPOINT.obj: ..\..\..\..\..\src\ta_func\ta_MIDPOINT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_MIDPOINT.obj ..\..\..\..\..\src\ta_func\ta_MIDPOINT.c + +..\..\..\..\..\temp\csd\ta_MIDPRICE.obj: ..\..\..\..\..\src\ta_func\ta_MIDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_MIDPRICE.obj ..\..\..\..\..\src\ta_func\ta_MIDPRICE.c + +..\..\..\..\..\temp\csd\ta_MIN.obj: ..\..\..\..\..\src\ta_func\ta_MIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_MIN.obj ..\..\..\..\..\src\ta_func\ta_MIN.c + +..\..\..\..\..\temp\csd\ta_MININDEX.obj: ..\..\..\..\..\src\ta_func\ta_MININDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_MININDEX.obj ..\..\..\..\..\src\ta_func\ta_MININDEX.c + +..\..\..\..\..\temp\csd\ta_MINMAX.obj: ..\..\..\..\..\src\ta_func\ta_MINMAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_MINMAX.obj ..\..\..\..\..\src\ta_func\ta_MINMAX.c + +..\..\..\..\..\temp\csd\ta_MINMAXINDEX.obj: ..\..\..\..\..\src\ta_func\ta_MINMAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_MINMAXINDEX.obj ..\..\..\..\..\src\ta_func\ta_MINMAXINDEX.c + +..\..\..\..\..\temp\csd\ta_MINUS_DI.obj: ..\..\..\..\..\src\ta_func\ta_MINUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_MINUS_DI.obj ..\..\..\..\..\src\ta_func\ta_MINUS_DI.c + +..\..\..\..\..\temp\csd\ta_MINUS_DM.obj: ..\..\..\..\..\src\ta_func\ta_MINUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_MINUS_DM.obj ..\..\..\..\..\src\ta_func\ta_MINUS_DM.c + +..\..\..\..\..\temp\csd\ta_MOM.obj: ..\..\..\..\..\src\ta_func\ta_MOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_MOM.obj ..\..\..\..\..\src\ta_func\ta_MOM.c + +..\..\..\..\..\temp\csd\ta_MULT.obj: ..\..\..\..\..\src\ta_func\ta_MULT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_MULT.obj ..\..\..\..\..\src\ta_func\ta_MULT.c + +..\..\..\..\..\temp\csd\ta_NATR.obj: ..\..\..\..\..\src\ta_func\ta_NATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_NATR.obj ..\..\..\..\..\src\ta_func\ta_NATR.c + +..\..\..\..\..\temp\csd\ta_OBV.obj: ..\..\..\..\..\src\ta_func\ta_OBV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_OBV.obj ..\..\..\..\..\src\ta_func\ta_OBV.c + +..\..\..\..\..\temp\csd\ta_PLUS_DI.obj: ..\..\..\..\..\src\ta_func\ta_PLUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_PLUS_DI.obj ..\..\..\..\..\src\ta_func\ta_PLUS_DI.c + +..\..\..\..\..\temp\csd\ta_PLUS_DM.obj: ..\..\..\..\..\src\ta_func\ta_PLUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_PLUS_DM.obj ..\..\..\..\..\src\ta_func\ta_PLUS_DM.c + +..\..\..\..\..\temp\csd\ta_PPO.obj: ..\..\..\..\..\src\ta_func\ta_PPO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_PPO.obj ..\..\..\..\..\src\ta_func\ta_PPO.c + +..\..\..\..\..\temp\csd\ta_ROC.obj: ..\..\..\..\..\src\ta_func\ta_ROC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_ROC.obj ..\..\..\..\..\src\ta_func\ta_ROC.c + +..\..\..\..\..\temp\csd\ta_ROCP.obj: ..\..\..\..\..\src\ta_func\ta_ROCP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_ROCP.obj ..\..\..\..\..\src\ta_func\ta_ROCP.c + +..\..\..\..\..\temp\csd\ta_ROCR.obj: ..\..\..\..\..\src\ta_func\ta_ROCR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_ROCR.obj ..\..\..\..\..\src\ta_func\ta_ROCR.c + +..\..\..\..\..\temp\csd\ta_ROCR100.obj: ..\..\..\..\..\src\ta_func\ta_ROCR100.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_ROCR100.obj ..\..\..\..\..\src\ta_func\ta_ROCR100.c + +..\..\..\..\..\temp\csd\ta_RSI.obj: ..\..\..\..\..\src\ta_func\ta_RSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_RSI.obj ..\..\..\..\..\src\ta_func\ta_RSI.c + +..\..\..\..\..\temp\csd\ta_SAR.obj: ..\..\..\..\..\src\ta_func\ta_SAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_SAR.obj ..\..\..\..\..\src\ta_func\ta_SAR.c + +..\..\..\..\..\temp\csd\ta_SAREXT.obj: ..\..\..\..\..\src\ta_func\ta_SAREXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_SAREXT.obj ..\..\..\..\..\src\ta_func\ta_SAREXT.c + +..\..\..\..\..\temp\csd\ta_SIN.obj: ..\..\..\..\..\src\ta_func\ta_SIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_SIN.obj ..\..\..\..\..\src\ta_func\ta_SIN.c + +..\..\..\..\..\temp\csd\ta_SINH.obj: ..\..\..\..\..\src\ta_func\ta_SINH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_SINH.obj ..\..\..\..\..\src\ta_func\ta_SINH.c + +..\..\..\..\..\temp\csd\ta_SMA.obj: ..\..\..\..\..\src\ta_func\ta_SMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_SMA.obj ..\..\..\..\..\src\ta_func\ta_SMA.c + +..\..\..\..\..\temp\csd\ta_SQRT.obj: ..\..\..\..\..\src\ta_func\ta_SQRT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_SQRT.obj ..\..\..\..\..\src\ta_func\ta_SQRT.c + +..\..\..\..\..\temp\csd\ta_STDDEV.obj: ..\..\..\..\..\src\ta_func\ta_STDDEV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_STDDEV.obj ..\..\..\..\..\src\ta_func\ta_STDDEV.c + +..\..\..\..\..\temp\csd\ta_STOCH.obj: ..\..\..\..\..\src\ta_func\ta_STOCH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_STOCH.obj ..\..\..\..\..\src\ta_func\ta_STOCH.c + +..\..\..\..\..\temp\csd\ta_STOCHF.obj: ..\..\..\..\..\src\ta_func\ta_STOCHF.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_STOCHF.obj ..\..\..\..\..\src\ta_func\ta_STOCHF.c + +..\..\..\..\..\temp\csd\ta_STOCHRSI.obj: ..\..\..\..\..\src\ta_func\ta_STOCHRSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_STOCHRSI.obj ..\..\..\..\..\src\ta_func\ta_STOCHRSI.c + +..\..\..\..\..\temp\csd\ta_SUB.obj: ..\..\..\..\..\src\ta_func\ta_SUB.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_SUB.obj ..\..\..\..\..\src\ta_func\ta_SUB.c + +..\..\..\..\..\temp\csd\ta_SUM.obj: ..\..\..\..\..\src\ta_func\ta_SUM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_SUM.obj ..\..\..\..\..\src\ta_func\ta_SUM.c + +..\..\..\..\..\temp\csd\ta_T3.obj: ..\..\..\..\..\src\ta_func\ta_T3.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_T3.obj ..\..\..\..\..\src\ta_func\ta_T3.c + +..\..\..\..\..\temp\csd\ta_TAN.obj: ..\..\..\..\..\src\ta_func\ta_TAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_TAN.obj ..\..\..\..\..\src\ta_func\ta_TAN.c + +..\..\..\..\..\temp\csd\ta_TANH.obj: ..\..\..\..\..\src\ta_func\ta_TANH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_TANH.obj ..\..\..\..\..\src\ta_func\ta_TANH.c + +..\..\..\..\..\temp\csd\ta_TEMA.obj: ..\..\..\..\..\src\ta_func\ta_TEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_TEMA.obj ..\..\..\..\..\src\ta_func\ta_TEMA.c + +..\..\..\..\..\temp\csd\ta_TRANGE.obj: ..\..\..\..\..\src\ta_func\ta_TRANGE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_TRANGE.obj ..\..\..\..\..\src\ta_func\ta_TRANGE.c + +..\..\..\..\..\temp\csd\ta_TRIMA.obj: ..\..\..\..\..\src\ta_func\ta_TRIMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_TRIMA.obj ..\..\..\..\..\src\ta_func\ta_TRIMA.c + +..\..\..\..\..\temp\csd\ta_TRIX.obj: ..\..\..\..\..\src\ta_func\ta_TRIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_TRIX.obj ..\..\..\..\..\src\ta_func\ta_TRIX.c + +..\..\..\..\..\temp\csd\ta_TSF.obj: ..\..\..\..\..\src\ta_func\ta_TSF.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_TSF.obj ..\..\..\..\..\src\ta_func\ta_TSF.c + +..\..\..\..\..\temp\csd\ta_TYPPRICE.obj: ..\..\..\..\..\src\ta_func\ta_TYPPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_TYPPRICE.obj ..\..\..\..\..\src\ta_func\ta_TYPPRICE.c + +..\..\..\..\..\temp\csd\ta_ULTOSC.obj: ..\..\..\..\..\src\ta_func\ta_ULTOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_ULTOSC.obj ..\..\..\..\..\src\ta_func\ta_ULTOSC.c + +..\..\..\..\..\temp\csd\ta_VAR.obj: ..\..\..\..\..\src\ta_func\ta_VAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_VAR.obj ..\..\..\..\..\src\ta_func\ta_VAR.c + +..\..\..\..\..\temp\csd\ta_WCLPRICE.obj: ..\..\..\..\..\src\ta_func\ta_WCLPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_WCLPRICE.obj ..\..\..\..\..\src\ta_func\ta_WCLPRICE.c + +..\..\..\..\..\temp\csd\ta_WILLR.obj: ..\..\..\..\..\src\ta_func\ta_WILLR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_WILLR.obj ..\..\..\..\..\src\ta_func\ta_WILLR.c + +..\..\..\..\..\temp\csd\ta_WMA.obj: ..\..\..\..\..\src\ta_func\ta_WMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_WMA.obj ..\..\..\..\..\src\ta_func\ta_WMA.c + diff --git a/make/csd/win32/symantec/ta_libc/Makefile b/make/csd/win32/symantec/ta_libc/Makefile new file mode 100644 index 000000000..47be13581 --- /dev/null +++ b/make/csd/win32/symantec/ta_libc/Makefile @@ -0,0 +1,1424 @@ +############################################################################# +# Makefile for building ta_libc_csd +# Generated by tmake; +# Project: ta_libc/ta_libc +# Template: lib +############################################################################# + +####### Compiler, tools and options + +CC = sc +CXX = sc +CFLAGS = -mn -w2 -g -DTA_DEBUG -D_DEBUG -DTA_SINGLE_THREAD -DWIN32 +CXXFLAGS= -mn -w2 -g -DTA_DEBUG -D_DEBUG -DTA_SINGLE_THREAD -DWIN32 +INCPATH = -I"..\..\..\..\..\src\ta_common" -I"..\..\..\..\..\include" -I"..\..\..\..\..\src\ta_abstract" -I"..\..\..\..\..\src\ta_abstract\tables" -I"..\..\..\..\..\src\ta_abstract\frames" -I"$(QTDIR)\include" +LIB = lib /C /N /NOI /P:32 +MOC = moc + +ZIP = zip -r -9 + +####### Files + +HEADERS = +SOURCES = ..\..\..\..\..\src\ta_common\ta_global.c \ + ..\..\..\..\..\src\ta_common\ta_retcode.c \ + ..\..\..\..\..\src\ta_common\ta_version.c \ + ..\..\..\..\..\src\ta_abstract\ta_abstract.c \ + ..\..\..\..\..\src\ta_abstract\ta_def_ui.c \ + ..\..\..\..\..\src\ta_abstract\ta_func_api.c \ + ..\..\..\..\..\src\ta_abstract\ta_group_idx.c \ + ..\..\..\..\..\src\ta_abstract\frames\ta_frame.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_a.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_b.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_c.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_d.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_e.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_f.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_g.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_h.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_i.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_j.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_k.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_l.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_m.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_n.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_o.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_p.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_q.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_r.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_s.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_t.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_u.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_v.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_w.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_x.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_y.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_z.c \ + ..\..\..\..\..\src\ta_func\ta_utility.c \ + ..\..\..\..\..\src\ta_func\ta_ACOS.c \ + ..\..\..\..\..\src\ta_func\ta_AD.c \ + ..\..\..\..\..\src\ta_func\ta_ADD.c \ + ..\..\..\..\..\src\ta_func\ta_ADOSC.c \ + ..\..\..\..\..\src\ta_func\ta_ADX.c \ + ..\..\..\..\..\src\ta_func\ta_ADXR.c \ + ..\..\..\..\..\src\ta_func\ta_APO.c \ + ..\..\..\..\..\src\ta_func\ta_AROON.c \ + ..\..\..\..\..\src\ta_func\ta_AROONOSC.c \ + ..\..\..\..\..\src\ta_func\ta_ASIN.c \ + ..\..\..\..\..\src\ta_func\ta_ATAN.c \ + ..\..\..\..\..\src\ta_func\ta_ATR.c \ + ..\..\..\..\..\src\ta_func\ta_AVGPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_BBANDS.c \ + ..\..\..\..\..\src\ta_func\ta_BETA.c \ + ..\..\..\..\..\src\ta_func\ta_BOP.c \ + ..\..\..\..\..\src\ta_func\ta_CCI.c \ + ..\..\..\..\..\src\ta_func\ta_CDL2CROWS.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3BLACKCROWS.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3INSIDE.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3LINESTRIKE.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3OUTSIDE.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3STARSINSOUTH.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3WHITESOLDIERS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLABANDONEDBABY.c \ + ..\..\..\..\..\src\ta_func\ta_CDLADVANCEBLOCK.c \ + ..\..\..\..\..\src\ta_func\ta_CDLBELTHOLD.c \ + ..\..\..\..\..\src\ta_func\ta_CDLBREAKAWAY.c \ + ..\..\..\..\..\src\ta_func\ta_CDLCLOSINGMARUBOZU.c \ + ..\..\..\..\..\src\ta_func\ta_CDLCONCEALBABYSWALL.c \ + ..\..\..\..\..\src\ta_func\ta_CDLCOUNTERATTACK.c \ + ..\..\..\..\..\src\ta_func\ta_CDLDARKCLOUDCOVER.c \ + ..\..\..\..\..\src\ta_func\ta_CDLDOJI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLDOJISTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLDRAGONFLYDOJI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLENGULFING.c \ + ..\..\..\..\..\src\ta_func\ta_CDLEVENINGDOJISTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLEVENINGSTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLGAPSIDESIDEWHITE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLGRAVESTONEDOJI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHAMMER.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHANGINGMAN.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHARAMI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHARAMICROSS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHIGHWAVE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKEMOD.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHOMINGPIGEON.c \ + ..\..\..\..\..\src\ta_func\ta_CDLIDENTICAL3CROWS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLINNECK.c \ + ..\..\..\..\..\src\ta_func\ta_CDLINVERTEDHAMMER.c \ + ..\..\..\..\..\src\ta_func\ta_CDLKICKING.c \ + ..\..\..\..\..\src\ta_func\ta_CDLKICKINGBYLENGTH.c \ + ..\..\..\..\..\src\ta_func\ta_CDLLADDERBOTTOM.c \ + ..\..\..\..\..\src\ta_func\ta_CDLLONGLEGGEDDOJI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLLONGLINE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMARUBOZU.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMATCHINGLOW.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMATHOLD.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMORNINGDOJISTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMORNINGSTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLONNECK.c \ + ..\..\..\..\..\src\ta_func\ta_CDLPIERCING.c \ + ..\..\..\..\..\src\ta_func\ta_CDLRICKSHAWMAN.c \ + ..\..\..\..\..\src\ta_func\ta_CDLRISEFALL3METHODS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSEPARATINGLINES.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSHOOTINGSTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSHORTLINE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSPINNINGTOP.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSTALLEDPATTERN.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSTICKSANDWICH.c \ + ..\..\..\..\..\src\ta_func\ta_CDLTAKURI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLTASUKIGAP.c \ + ..\..\..\..\..\src\ta_func\ta_CDLTHRUSTING.c \ + ..\..\..\..\..\src\ta_func\ta_CDLTRISTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLUNIQUE3RIVER.c \ + ..\..\..\..\..\src\ta_func\ta_CDLUPSIDEGAP2CROWS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLXSIDEGAP3METHODS.c \ + ..\..\..\..\..\src\ta_func\ta_CEIL.c \ + ..\..\..\..\..\src\ta_func\ta_CMO.c \ + ..\..\..\..\..\src\ta_func\ta_CORREL.c \ + ..\..\..\..\..\src\ta_func\ta_COS.c \ + ..\..\..\..\..\src\ta_func\ta_COSH.c \ + ..\..\..\..\..\src\ta_func\ta_DEMA.c \ + ..\..\..\..\..\src\ta_func\ta_DIV.c \ + ..\..\..\..\..\src\ta_func\ta_DX.c \ + ..\..\..\..\..\src\ta_func\ta_EMA.c \ + ..\..\..\..\..\src\ta_func\ta_EXP.c \ + ..\..\..\..\..\src\ta_func\ta_FLOOR.c \ + ..\..\..\..\..\src\ta_func\ta_HT_DCPERIOD.c \ + ..\..\..\..\..\src\ta_func\ta_HT_DCPHASE.c \ + ..\..\..\..\..\src\ta_func\ta_HT_PHASOR.c \ + ..\..\..\..\..\src\ta_func\ta_HT_SINE.c \ + ..\..\..\..\..\src\ta_func\ta_HT_TRENDLINE.c \ + ..\..\..\..\..\src\ta_func\ta_HT_TRENDMODE.c \ + ..\..\..\..\..\src\ta_func\ta_KAMA.c \ + ..\..\..\..\..\src\ta_func\ta_LINEARREG.c \ + ..\..\..\..\..\src\ta_func\ta_LINEARREG_ANGLE.c \ + ..\..\..\..\..\src\ta_func\ta_LINEARREG_INTERCEPT.c \ + ..\..\..\..\..\src\ta_func\ta_LINEARREG_SLOPE.c \ + ..\..\..\..\..\src\ta_func\ta_LN.c \ + ..\..\..\..\..\src\ta_func\ta_LOG10.c \ + ..\..\..\..\..\src\ta_func\ta_MA.c \ + ..\..\..\..\..\src\ta_func\ta_MACD.c \ + ..\..\..\..\..\src\ta_func\ta_MACDEXT.c \ + ..\..\..\..\..\src\ta_func\ta_MACDFIX.c \ + ..\..\..\..\..\src\ta_func\ta_MAMA.c \ + ..\..\..\..\..\src\ta_func\ta_MAVP.c \ + ..\..\..\..\..\src\ta_func\ta_MAX.c \ + ..\..\..\..\..\src\ta_func\ta_MAXINDEX.c \ + ..\..\..\..\..\src\ta_func\ta_MEDPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_MFI.c \ + ..\..\..\..\..\src\ta_func\ta_MIDPOINT.c \ + ..\..\..\..\..\src\ta_func\ta_MIDPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_MIN.c \ + ..\..\..\..\..\src\ta_func\ta_MININDEX.c \ + ..\..\..\..\..\src\ta_func\ta_MINMAX.c \ + ..\..\..\..\..\src\ta_func\ta_MINMAXINDEX.c \ + ..\..\..\..\..\src\ta_func\ta_MINUS_DI.c \ + ..\..\..\..\..\src\ta_func\ta_MINUS_DM.c \ + ..\..\..\..\..\src\ta_func\ta_MOM.c \ + ..\..\..\..\..\src\ta_func\ta_MULT.c \ + ..\..\..\..\..\src\ta_func\ta_NATR.c \ + ..\..\..\..\..\src\ta_func\ta_OBV.c \ + ..\..\..\..\..\src\ta_func\ta_PLUS_DI.c \ + ..\..\..\..\..\src\ta_func\ta_PLUS_DM.c \ + ..\..\..\..\..\src\ta_func\ta_PPO.c \ + ..\..\..\..\..\src\ta_func\ta_ROC.c \ + ..\..\..\..\..\src\ta_func\ta_ROCP.c \ + ..\..\..\..\..\src\ta_func\ta_ROCR.c \ + ..\..\..\..\..\src\ta_func\ta_ROCR100.c \ + ..\..\..\..\..\src\ta_func\ta_RSI.c \ + ..\..\..\..\..\src\ta_func\ta_SAR.c \ + ..\..\..\..\..\src\ta_func\ta_SAREXT.c \ + ..\..\..\..\..\src\ta_func\ta_SIN.c \ + ..\..\..\..\..\src\ta_func\ta_SINH.c \ + ..\..\..\..\..\src\ta_func\ta_SMA.c \ + ..\..\..\..\..\src\ta_func\ta_SQRT.c \ + ..\..\..\..\..\src\ta_func\ta_STDDEV.c \ + ..\..\..\..\..\src\ta_func\ta_STOCH.c \ + ..\..\..\..\..\src\ta_func\ta_STOCHF.c \ + ..\..\..\..\..\src\ta_func\ta_STOCHRSI.c \ + ..\..\..\..\..\src\ta_func\ta_SUB.c \ + ..\..\..\..\..\src\ta_func\ta_SUM.c \ + ..\..\..\..\..\src\ta_func\ta_T3.c \ + ..\..\..\..\..\src\ta_func\ta_TAN.c \ + ..\..\..\..\..\src\ta_func\ta_TANH.c \ + ..\..\..\..\..\src\ta_func\ta_TEMA.c \ + ..\..\..\..\..\src\ta_func\ta_TRANGE.c \ + ..\..\..\..\..\src\ta_func\ta_TRIMA.c \ + ..\..\..\..\..\src\ta_func\ta_TRIX.c \ + ..\..\..\..\..\src\ta_func\ta_TSF.c \ + ..\..\..\..\..\src\ta_func\ta_TYPPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_ULTOSC.c \ + ..\..\..\..\..\src\ta_func\ta_VAR.c \ + ..\..\..\..\..\src\ta_func\ta_WCLPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_WILLR.c \ + ..\..\..\..\..\src\ta_func\ta_WMA.c +OBJECTS = ..\..\..\..\..\temp\csd\ta_global.obj \ + ..\..\..\..\..\temp\csd\ta_retcode.obj \ + ..\..\..\..\..\temp\csd\ta_version.obj \ + ..\..\..\..\..\temp\csd\ta_abstract.obj \ + ..\..\..\..\..\temp\csd\ta_def_ui.obj \ + ..\..\..\..\..\temp\csd\ta_func_api.obj \ + ..\..\..\..\..\temp\csd\ta_group_idx.obj \ + ..\..\..\..\..\temp\csd\ta_frame.obj \ + ..\..\..\..\..\temp\csd\table_a.obj \ + ..\..\..\..\..\temp\csd\table_b.obj \ + ..\..\..\..\..\temp\csd\table_c.obj \ + ..\..\..\..\..\temp\csd\table_d.obj \ + ..\..\..\..\..\temp\csd\table_e.obj \ + ..\..\..\..\..\temp\csd\table_f.obj \ + ..\..\..\..\..\temp\csd\table_g.obj \ + ..\..\..\..\..\temp\csd\table_h.obj \ + ..\..\..\..\..\temp\csd\table_i.obj \ + ..\..\..\..\..\temp\csd\table_j.obj \ + ..\..\..\..\..\temp\csd\table_k.obj \ + ..\..\..\..\..\temp\csd\table_l.obj \ + ..\..\..\..\..\temp\csd\table_m.obj \ + ..\..\..\..\..\temp\csd\table_n.obj \ + ..\..\..\..\..\temp\csd\table_o.obj \ + ..\..\..\..\..\temp\csd\table_p.obj \ + ..\..\..\..\..\temp\csd\table_q.obj \ + ..\..\..\..\..\temp\csd\table_r.obj \ + ..\..\..\..\..\temp\csd\table_s.obj \ + ..\..\..\..\..\temp\csd\table_t.obj \ + ..\..\..\..\..\temp\csd\table_u.obj \ + ..\..\..\..\..\temp\csd\table_v.obj \ + ..\..\..\..\..\temp\csd\table_w.obj \ + ..\..\..\..\..\temp\csd\table_x.obj \ + ..\..\..\..\..\temp\csd\table_y.obj \ + ..\..\..\..\..\temp\csd\table_z.obj \ + ..\..\..\..\..\temp\csd\ta_utility.obj \ + ..\..\..\..\..\temp\csd\ta_ACOS.obj \ + ..\..\..\..\..\temp\csd\ta_AD.obj \ + ..\..\..\..\..\temp\csd\ta_ADD.obj \ + ..\..\..\..\..\temp\csd\ta_ADOSC.obj \ + ..\..\..\..\..\temp\csd\ta_ADX.obj \ + ..\..\..\..\..\temp\csd\ta_ADXR.obj \ + ..\..\..\..\..\temp\csd\ta_APO.obj \ + ..\..\..\..\..\temp\csd\ta_AROON.obj \ + ..\..\..\..\..\temp\csd\ta_AROONOSC.obj \ + ..\..\..\..\..\temp\csd\ta_ASIN.obj \ + ..\..\..\..\..\temp\csd\ta_ATAN.obj \ + ..\..\..\..\..\temp\csd\ta_ATR.obj \ + ..\..\..\..\..\temp\csd\ta_AVGPRICE.obj \ + ..\..\..\..\..\temp\csd\ta_BBANDS.obj \ + ..\..\..\..\..\temp\csd\ta_BETA.obj \ + ..\..\..\..\..\temp\csd\ta_BOP.obj \ + ..\..\..\..\..\temp\csd\ta_CCI.obj \ + ..\..\..\..\..\temp\csd\ta_CDL2CROWS.obj \ + ..\..\..\..\..\temp\csd\ta_CDL3BLACKCROWS.obj \ + ..\..\..\..\..\temp\csd\ta_CDL3INSIDE.obj \ + ..\..\..\..\..\temp\csd\ta_CDL3LINESTRIKE.obj \ + ..\..\..\..\..\temp\csd\ta_CDL3OUTSIDE.obj \ + ..\..\..\..\..\temp\csd\ta_CDL3STARSINSOUTH.obj \ + ..\..\..\..\..\temp\csd\ta_CDL3WHITESOLDIERS.obj \ + ..\..\..\..\..\temp\csd\ta_CDLABANDONEDBABY.obj \ + ..\..\..\..\..\temp\csd\ta_CDLADVANCEBLOCK.obj \ + ..\..\..\..\..\temp\csd\ta_CDLBELTHOLD.obj \ + ..\..\..\..\..\temp\csd\ta_CDLBREAKAWAY.obj \ + ..\..\..\..\..\temp\csd\ta_CDLCLOSINGMARUBOZU.obj \ + ..\..\..\..\..\temp\csd\ta_CDLCONCEALBABYSWALL.obj \ + ..\..\..\..\..\temp\csd\ta_CDLCOUNTERATTACK.obj \ + ..\..\..\..\..\temp\csd\ta_CDLDARKCLOUDCOVER.obj \ + ..\..\..\..\..\temp\csd\ta_CDLDOJI.obj \ + ..\..\..\..\..\temp\csd\ta_CDLDOJISTAR.obj \ + ..\..\..\..\..\temp\csd\ta_CDLDRAGONFLYDOJI.obj \ + ..\..\..\..\..\temp\csd\ta_CDLENGULFING.obj \ + ..\..\..\..\..\temp\csd\ta_CDLEVENINGDOJISTAR.obj \ + ..\..\..\..\..\temp\csd\ta_CDLEVENINGSTAR.obj \ + ..\..\..\..\..\temp\csd\ta_CDLGAPSIDESIDEWHITE.obj \ + ..\..\..\..\..\temp\csd\ta_CDLGRAVESTONEDOJI.obj \ + ..\..\..\..\..\temp\csd\ta_CDLHAMMER.obj \ + ..\..\..\..\..\temp\csd\ta_CDLHANGINGMAN.obj \ + ..\..\..\..\..\temp\csd\ta_CDLHARAMI.obj \ + ..\..\..\..\..\temp\csd\ta_CDLHARAMICROSS.obj \ + ..\..\..\..\..\temp\csd\ta_CDLHIGHWAVE.obj \ + ..\..\..\..\..\temp\csd\ta_CDLHIKKAKE.obj \ + ..\..\..\..\..\temp\csd\ta_CDLHIKKAKEMOD.obj \ + ..\..\..\..\..\temp\csd\ta_CDLHOMINGPIGEON.obj \ + ..\..\..\..\..\temp\csd\ta_CDLIDENTICAL3CROWS.obj \ + ..\..\..\..\..\temp\csd\ta_CDLINNECK.obj \ + ..\..\..\..\..\temp\csd\ta_CDLINVERTEDHAMMER.obj \ + ..\..\..\..\..\temp\csd\ta_CDLKICKING.obj \ + ..\..\..\..\..\temp\csd\ta_CDLKICKINGBYLENGTH.obj \ + ..\..\..\..\..\temp\csd\ta_CDLLADDERBOTTOM.obj \ + ..\..\..\..\..\temp\csd\ta_CDLLONGLEGGEDDOJI.obj \ + ..\..\..\..\..\temp\csd\ta_CDLLONGLINE.obj \ + ..\..\..\..\..\temp\csd\ta_CDLMARUBOZU.obj \ + ..\..\..\..\..\temp\csd\ta_CDLMATCHINGLOW.obj \ + ..\..\..\..\..\temp\csd\ta_CDLMATHOLD.obj \ + ..\..\..\..\..\temp\csd\ta_CDLMORNINGDOJISTAR.obj \ + ..\..\..\..\..\temp\csd\ta_CDLMORNINGSTAR.obj \ + ..\..\..\..\..\temp\csd\ta_CDLONNECK.obj \ + ..\..\..\..\..\temp\csd\ta_CDLPIERCING.obj \ + ..\..\..\..\..\temp\csd\ta_CDLRICKSHAWMAN.obj \ + ..\..\..\..\..\temp\csd\ta_CDLRISEFALL3METHODS.obj \ + ..\..\..\..\..\temp\csd\ta_CDLSEPARATINGLINES.obj \ + ..\..\..\..\..\temp\csd\ta_CDLSHOOTINGSTAR.obj \ + ..\..\..\..\..\temp\csd\ta_CDLSHORTLINE.obj \ + ..\..\..\..\..\temp\csd\ta_CDLSPINNINGTOP.obj \ + ..\..\..\..\..\temp\csd\ta_CDLSTALLEDPATTERN.obj \ + ..\..\..\..\..\temp\csd\ta_CDLSTICKSANDWICH.obj \ + ..\..\..\..\..\temp\csd\ta_CDLTAKURI.obj \ + ..\..\..\..\..\temp\csd\ta_CDLTASUKIGAP.obj \ + ..\..\..\..\..\temp\csd\ta_CDLTHRUSTING.obj \ + ..\..\..\..\..\temp\csd\ta_CDLTRISTAR.obj \ + ..\..\..\..\..\temp\csd\ta_CDLUNIQUE3RIVER.obj \ + ..\..\..\..\..\temp\csd\ta_CDLUPSIDEGAP2CROWS.obj \ + ..\..\..\..\..\temp\csd\ta_CDLXSIDEGAP3METHODS.obj \ + ..\..\..\..\..\temp\csd\ta_CEIL.obj \ + ..\..\..\..\..\temp\csd\ta_CMO.obj \ + ..\..\..\..\..\temp\csd\ta_CORREL.obj \ + ..\..\..\..\..\temp\csd\ta_COS.obj \ + ..\..\..\..\..\temp\csd\ta_COSH.obj \ + ..\..\..\..\..\temp\csd\ta_DEMA.obj \ + ..\..\..\..\..\temp\csd\ta_DIV.obj \ + ..\..\..\..\..\temp\csd\ta_DX.obj \ + ..\..\..\..\..\temp\csd\ta_EMA.obj \ + ..\..\..\..\..\temp\csd\ta_EXP.obj \ + ..\..\..\..\..\temp\csd\ta_FLOOR.obj \ + ..\..\..\..\..\temp\csd\ta_HT_DCPERIOD.obj \ + ..\..\..\..\..\temp\csd\ta_HT_DCPHASE.obj \ + ..\..\..\..\..\temp\csd\ta_HT_PHASOR.obj \ + ..\..\..\..\..\temp\csd\ta_HT_SINE.obj \ + ..\..\..\..\..\temp\csd\ta_HT_TRENDLINE.obj \ + ..\..\..\..\..\temp\csd\ta_HT_TRENDMODE.obj \ + ..\..\..\..\..\temp\csd\ta_KAMA.obj \ + ..\..\..\..\..\temp\csd\ta_LINEARREG.obj \ + ..\..\..\..\..\temp\csd\ta_LINEARREG_ANGLE.obj \ + ..\..\..\..\..\temp\csd\ta_LINEARREG_INTERCEPT.obj \ + ..\..\..\..\..\temp\csd\ta_LINEARREG_SLOPE.obj \ + ..\..\..\..\..\temp\csd\ta_LN.obj \ + ..\..\..\..\..\temp\csd\ta_LOG10.obj \ + ..\..\..\..\..\temp\csd\ta_MA.obj \ + ..\..\..\..\..\temp\csd\ta_MACD.obj \ + ..\..\..\..\..\temp\csd\ta_MACDEXT.obj \ + ..\..\..\..\..\temp\csd\ta_MACDFIX.obj \ + ..\..\..\..\..\temp\csd\ta_MAMA.obj \ + ..\..\..\..\..\temp\csd\ta_MAVP.obj \ + ..\..\..\..\..\temp\csd\ta_MAX.obj \ + ..\..\..\..\..\temp\csd\ta_MAXINDEX.obj \ + ..\..\..\..\..\temp\csd\ta_MEDPRICE.obj \ + ..\..\..\..\..\temp\csd\ta_MFI.obj \ + ..\..\..\..\..\temp\csd\ta_MIDPOINT.obj \ + ..\..\..\..\..\temp\csd\ta_MIDPRICE.obj \ + ..\..\..\..\..\temp\csd\ta_MIN.obj \ + ..\..\..\..\..\temp\csd\ta_MININDEX.obj \ + ..\..\..\..\..\temp\csd\ta_MINMAX.obj \ + ..\..\..\..\..\temp\csd\ta_MINMAXINDEX.obj \ + ..\..\..\..\..\temp\csd\ta_MINUS_DI.obj \ + ..\..\..\..\..\temp\csd\ta_MINUS_DM.obj \ + ..\..\..\..\..\temp\csd\ta_MOM.obj \ + ..\..\..\..\..\temp\csd\ta_MULT.obj \ + ..\..\..\..\..\temp\csd\ta_NATR.obj \ + ..\..\..\..\..\temp\csd\ta_OBV.obj \ + ..\..\..\..\..\temp\csd\ta_PLUS_DI.obj \ + ..\..\..\..\..\temp\csd\ta_PLUS_DM.obj \ + ..\..\..\..\..\temp\csd\ta_PPO.obj \ + ..\..\..\..\..\temp\csd\ta_ROC.obj \ + ..\..\..\..\..\temp\csd\ta_ROCP.obj \ + ..\..\..\..\..\temp\csd\ta_ROCR.obj \ + ..\..\..\..\..\temp\csd\ta_ROCR100.obj \ + ..\..\..\..\..\temp\csd\ta_RSI.obj \ + ..\..\..\..\..\temp\csd\ta_SAR.obj \ + ..\..\..\..\..\temp\csd\ta_SAREXT.obj \ + ..\..\..\..\..\temp\csd\ta_SIN.obj \ + ..\..\..\..\..\temp\csd\ta_SINH.obj \ + ..\..\..\..\..\temp\csd\ta_SMA.obj \ + ..\..\..\..\..\temp\csd\ta_SQRT.obj \ + ..\..\..\..\..\temp\csd\ta_STDDEV.obj \ + ..\..\..\..\..\temp\csd\ta_STOCH.obj \ + ..\..\..\..\..\temp\csd\ta_STOCHF.obj \ + ..\..\..\..\..\temp\csd\ta_STOCHRSI.obj \ + ..\..\..\..\..\temp\csd\ta_SUB.obj \ + ..\..\..\..\..\temp\csd\ta_SUM.obj \ + ..\..\..\..\..\temp\csd\ta_T3.obj \ + ..\..\..\..\..\temp\csd\ta_TAN.obj \ + ..\..\..\..\..\temp\csd\ta_TANH.obj \ + ..\..\..\..\..\temp\csd\ta_TEMA.obj \ + ..\..\..\..\..\temp\csd\ta_TRANGE.obj \ + ..\..\..\..\..\temp\csd\ta_TRIMA.obj \ + ..\..\..\..\..\temp\csd\ta_TRIX.obj \ + ..\..\..\..\..\temp\csd\ta_TSF.obj \ + ..\..\..\..\..\temp\csd\ta_TYPPRICE.obj \ + ..\..\..\..\..\temp\csd\ta_ULTOSC.obj \ + ..\..\..\..\..\temp\csd\ta_VAR.obj \ + ..\..\..\..\..\temp\csd\ta_WCLPRICE.obj \ + ..\..\..\..\..\temp\csd\ta_WILLR.obj \ + ..\..\..\..\..\temp\csd\ta_WMA.obj +SRCMOC = +OBJMOC = +DIST = +TARGET = ..\..\..\..\..\lib\ta_libc_csd.lib + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .c + +.cpp.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.cxx.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.cc.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.c.obj: + $(CC) -c $(CFLAGS) $(INCPATH) -o$@ $< + +####### Build rules + +all: $(TARGET) + +$(TARGET): $(OBJECTS) $(OBJMOC) + -del $(TARGET) + $(LIB) $(TARGET) ..\..\..\..\..\temp\csd\ta_global.obj \ ++..\..\..\..\..\temp\csd\ta_retcode.obj \ ++..\..\..\..\..\temp\csd\ta_version.obj \ ++..\..\..\..\..\temp\csd\ta_abstract.obj \ ++..\..\..\..\..\temp\csd\ta_def_ui.obj \ ++..\..\..\..\..\temp\csd\ta_func_api.obj \ ++..\..\..\..\..\temp\csd\ta_group_idx.obj \ ++..\..\..\..\..\temp\csd\ta_frame.obj \ ++..\..\..\..\..\temp\csd\table_a.obj \ ++..\..\..\..\..\temp\csd\table_b.obj \ ++..\..\..\..\..\temp\csd\table_c.obj \ ++..\..\..\..\..\temp\csd\table_d.obj \ ++..\..\..\..\..\temp\csd\table_e.obj \ ++..\..\..\..\..\temp\csd\table_f.obj \ ++..\..\..\..\..\temp\csd\table_g.obj \ ++..\..\..\..\..\temp\csd\table_h.obj \ ++..\..\..\..\..\temp\csd\table_i.obj \ ++..\..\..\..\..\temp\csd\table_j.obj \ ++..\..\..\..\..\temp\csd\table_k.obj \ ++..\..\..\..\..\temp\csd\table_l.obj \ ++..\..\..\..\..\temp\csd\table_m.obj \ ++..\..\..\..\..\temp\csd\table_n.obj \ ++..\..\..\..\..\temp\csd\table_o.obj \ ++..\..\..\..\..\temp\csd\table_p.obj \ ++..\..\..\..\..\temp\csd\table_q.obj \ ++..\..\..\..\..\temp\csd\table_r.obj \ ++..\..\..\..\..\temp\csd\table_s.obj \ ++..\..\..\..\..\temp\csd\table_t.obj \ ++..\..\..\..\..\temp\csd\table_u.obj \ ++..\..\..\..\..\temp\csd\table_v.obj \ ++..\..\..\..\..\temp\csd\table_w.obj \ ++..\..\..\..\..\temp\csd\table_x.obj \ ++..\..\..\..\..\temp\csd\table_y.obj \ ++..\..\..\..\..\temp\csd\table_z.obj \ ++..\..\..\..\..\temp\csd\ta_utility.obj \ ++..\..\..\..\..\temp\csd\ta_ACOS.obj \ ++..\..\..\..\..\temp\csd\ta_AD.obj \ ++..\..\..\..\..\temp\csd\ta_ADD.obj \ ++..\..\..\..\..\temp\csd\ta_ADOSC.obj \ ++..\..\..\..\..\temp\csd\ta_ADX.obj \ ++..\..\..\..\..\temp\csd\ta_ADXR.obj \ ++..\..\..\..\..\temp\csd\ta_APO.obj \ ++..\..\..\..\..\temp\csd\ta_AROON.obj \ ++..\..\..\..\..\temp\csd\ta_AROONOSC.obj \ ++..\..\..\..\..\temp\csd\ta_ASIN.obj \ ++..\..\..\..\..\temp\csd\ta_ATAN.obj \ ++..\..\..\..\..\temp\csd\ta_ATR.obj \ ++..\..\..\..\..\temp\csd\ta_AVGPRICE.obj \ ++..\..\..\..\..\temp\csd\ta_BBANDS.obj \ ++..\..\..\..\..\temp\csd\ta_BETA.obj \ ++..\..\..\..\..\temp\csd\ta_BOP.obj \ ++..\..\..\..\..\temp\csd\ta_CCI.obj \ ++..\..\..\..\..\temp\csd\ta_CDL2CROWS.obj \ ++..\..\..\..\..\temp\csd\ta_CDL3BLACKCROWS.obj \ ++..\..\..\..\..\temp\csd\ta_CDL3INSIDE.obj \ ++..\..\..\..\..\temp\csd\ta_CDL3LINESTRIKE.obj \ ++..\..\..\..\..\temp\csd\ta_CDL3OUTSIDE.obj \ ++..\..\..\..\..\temp\csd\ta_CDL3STARSINSOUTH.obj \ ++..\..\..\..\..\temp\csd\ta_CDL3WHITESOLDIERS.obj \ ++..\..\..\..\..\temp\csd\ta_CDLABANDONEDBABY.obj \ ++..\..\..\..\..\temp\csd\ta_CDLADVANCEBLOCK.obj \ ++..\..\..\..\..\temp\csd\ta_CDLBELTHOLD.obj \ ++..\..\..\..\..\temp\csd\ta_CDLBREAKAWAY.obj \ ++..\..\..\..\..\temp\csd\ta_CDLCLOSINGMARUBOZU.obj \ ++..\..\..\..\..\temp\csd\ta_CDLCONCEALBABYSWALL.obj \ ++..\..\..\..\..\temp\csd\ta_CDLCOUNTERATTACK.obj \ ++..\..\..\..\..\temp\csd\ta_CDLDARKCLOUDCOVER.obj \ ++..\..\..\..\..\temp\csd\ta_CDLDOJI.obj \ ++..\..\..\..\..\temp\csd\ta_CDLDOJISTAR.obj \ ++..\..\..\..\..\temp\csd\ta_CDLDRAGONFLYDOJI.obj \ ++..\..\..\..\..\temp\csd\ta_CDLENGULFING.obj \ ++..\..\..\..\..\temp\csd\ta_CDLEVENINGDOJISTAR.obj \ ++..\..\..\..\..\temp\csd\ta_CDLEVENINGSTAR.obj \ ++..\..\..\..\..\temp\csd\ta_CDLGAPSIDESIDEWHITE.obj \ ++..\..\..\..\..\temp\csd\ta_CDLGRAVESTONEDOJI.obj \ ++..\..\..\..\..\temp\csd\ta_CDLHAMMER.obj \ ++..\..\..\..\..\temp\csd\ta_CDLHANGINGMAN.obj \ ++..\..\..\..\..\temp\csd\ta_CDLHARAMI.obj \ ++..\..\..\..\..\temp\csd\ta_CDLHARAMICROSS.obj \ ++..\..\..\..\..\temp\csd\ta_CDLHIGHWAVE.obj \ ++..\..\..\..\..\temp\csd\ta_CDLHIKKAKE.obj \ ++..\..\..\..\..\temp\csd\ta_CDLHIKKAKEMOD.obj \ ++..\..\..\..\..\temp\csd\ta_CDLHOMINGPIGEON.obj \ ++..\..\..\..\..\temp\csd\ta_CDLIDENTICAL3CROWS.obj \ ++..\..\..\..\..\temp\csd\ta_CDLINNECK.obj \ ++..\..\..\..\..\temp\csd\ta_CDLINVERTEDHAMMER.obj \ ++..\..\..\..\..\temp\csd\ta_CDLKICKING.obj \ ++..\..\..\..\..\temp\csd\ta_CDLKICKINGBYLENGTH.obj \ ++..\..\..\..\..\temp\csd\ta_CDLLADDERBOTTOM.obj \ ++..\..\..\..\..\temp\csd\ta_CDLLONGLEGGEDDOJI.obj \ ++..\..\..\..\..\temp\csd\ta_CDLLONGLINE.obj \ ++..\..\..\..\..\temp\csd\ta_CDLMARUBOZU.obj \ ++..\..\..\..\..\temp\csd\ta_CDLMATCHINGLOW.obj \ ++..\..\..\..\..\temp\csd\ta_CDLMATHOLD.obj \ ++..\..\..\..\..\temp\csd\ta_CDLMORNINGDOJISTAR.obj \ ++..\..\..\..\..\temp\csd\ta_CDLMORNINGSTAR.obj \ ++..\..\..\..\..\temp\csd\ta_CDLONNECK.obj \ ++..\..\..\..\..\temp\csd\ta_CDLPIERCING.obj \ ++..\..\..\..\..\temp\csd\ta_CDLRICKSHAWMAN.obj \ ++..\..\..\..\..\temp\csd\ta_CDLRISEFALL3METHODS.obj \ ++..\..\..\..\..\temp\csd\ta_CDLSEPARATINGLINES.obj \ ++..\..\..\..\..\temp\csd\ta_CDLSHOOTINGSTAR.obj \ ++..\..\..\..\..\temp\csd\ta_CDLSHORTLINE.obj \ ++..\..\..\..\..\temp\csd\ta_CDLSPINNINGTOP.obj \ ++..\..\..\..\..\temp\csd\ta_CDLSTALLEDPATTERN.obj \ ++..\..\..\..\..\temp\csd\ta_CDLSTICKSANDWICH.obj \ ++..\..\..\..\..\temp\csd\ta_CDLTAKURI.obj \ ++..\..\..\..\..\temp\csd\ta_CDLTASUKIGAP.obj \ ++..\..\..\..\..\temp\csd\ta_CDLTHRUSTING.obj \ ++..\..\..\..\..\temp\csd\ta_CDLTRISTAR.obj \ ++..\..\..\..\..\temp\csd\ta_CDLUNIQUE3RIVER.obj \ ++..\..\..\..\..\temp\csd\ta_CDLUPSIDEGAP2CROWS.obj \ ++..\..\..\..\..\temp\csd\ta_CDLXSIDEGAP3METHODS.obj \ ++..\..\..\..\..\temp\csd\ta_CEIL.obj \ ++..\..\..\..\..\temp\csd\ta_CMO.obj \ ++..\..\..\..\..\temp\csd\ta_CORREL.obj \ ++..\..\..\..\..\temp\csd\ta_COS.obj \ ++..\..\..\..\..\temp\csd\ta_COSH.obj \ ++..\..\..\..\..\temp\csd\ta_DEMA.obj \ ++..\..\..\..\..\temp\csd\ta_DIV.obj \ ++..\..\..\..\..\temp\csd\ta_DX.obj \ ++..\..\..\..\..\temp\csd\ta_EMA.obj \ ++..\..\..\..\..\temp\csd\ta_EXP.obj \ ++..\..\..\..\..\temp\csd\ta_FLOOR.obj \ ++..\..\..\..\..\temp\csd\ta_HT_DCPERIOD.obj \ ++..\..\..\..\..\temp\csd\ta_HT_DCPHASE.obj \ ++..\..\..\..\..\temp\csd\ta_HT_PHASOR.obj \ ++..\..\..\..\..\temp\csd\ta_HT_SINE.obj \ ++..\..\..\..\..\temp\csd\ta_HT_TRENDLINE.obj \ ++..\..\..\..\..\temp\csd\ta_HT_TRENDMODE.obj \ ++..\..\..\..\..\temp\csd\ta_KAMA.obj \ ++..\..\..\..\..\temp\csd\ta_LINEARREG.obj \ ++..\..\..\..\..\temp\csd\ta_LINEARREG_ANGLE.obj \ ++..\..\..\..\..\temp\csd\ta_LINEARREG_INTERCEPT.obj \ ++..\..\..\..\..\temp\csd\ta_LINEARREG_SLOPE.obj \ ++..\..\..\..\..\temp\csd\ta_LN.obj \ ++..\..\..\..\..\temp\csd\ta_LOG10.obj \ ++..\..\..\..\..\temp\csd\ta_MA.obj \ ++..\..\..\..\..\temp\csd\ta_MACD.obj \ ++..\..\..\..\..\temp\csd\ta_MACDEXT.obj \ ++..\..\..\..\..\temp\csd\ta_MACDFIX.obj \ ++..\..\..\..\..\temp\csd\ta_MAMA.obj \ ++..\..\..\..\..\temp\csd\ta_MAVP.obj \ ++..\..\..\..\..\temp\csd\ta_MAX.obj \ ++..\..\..\..\..\temp\csd\ta_MAXINDEX.obj \ ++..\..\..\..\..\temp\csd\ta_MEDPRICE.obj \ ++..\..\..\..\..\temp\csd\ta_MFI.obj \ ++..\..\..\..\..\temp\csd\ta_MIDPOINT.obj \ ++..\..\..\..\..\temp\csd\ta_MIDPRICE.obj \ ++..\..\..\..\..\temp\csd\ta_MIN.obj \ ++..\..\..\..\..\temp\csd\ta_MININDEX.obj \ ++..\..\..\..\..\temp\csd\ta_MINMAX.obj \ ++..\..\..\..\..\temp\csd\ta_MINMAXINDEX.obj \ ++..\..\..\..\..\temp\csd\ta_MINUS_DI.obj \ ++..\..\..\..\..\temp\csd\ta_MINUS_DM.obj \ ++..\..\..\..\..\temp\csd\ta_MOM.obj \ ++..\..\..\..\..\temp\csd\ta_MULT.obj \ ++..\..\..\..\..\temp\csd\ta_NATR.obj \ ++..\..\..\..\..\temp\csd\ta_OBV.obj \ ++..\..\..\..\..\temp\csd\ta_PLUS_DI.obj \ ++..\..\..\..\..\temp\csd\ta_PLUS_DM.obj \ ++..\..\..\..\..\temp\csd\ta_PPO.obj \ ++..\..\..\..\..\temp\csd\ta_ROC.obj \ ++..\..\..\..\..\temp\csd\ta_ROCP.obj \ ++..\..\..\..\..\temp\csd\ta_ROCR.obj \ ++..\..\..\..\..\temp\csd\ta_ROCR100.obj \ ++..\..\..\..\..\temp\csd\ta_RSI.obj \ ++..\..\..\..\..\temp\csd\ta_SAR.obj \ ++..\..\..\..\..\temp\csd\ta_SAREXT.obj \ ++..\..\..\..\..\temp\csd\ta_SIN.obj \ ++..\..\..\..\..\temp\csd\ta_SINH.obj \ ++..\..\..\..\..\temp\csd\ta_SMA.obj \ ++..\..\..\..\..\temp\csd\ta_SQRT.obj \ ++..\..\..\..\..\temp\csd\ta_STDDEV.obj \ ++..\..\..\..\..\temp\csd\ta_STOCH.obj \ ++..\..\..\..\..\temp\csd\ta_STOCHF.obj \ ++..\..\..\..\..\temp\csd\ta_STOCHRSI.obj \ ++..\..\..\..\..\temp\csd\ta_SUB.obj \ ++..\..\..\..\..\temp\csd\ta_SUM.obj \ ++..\..\..\..\..\temp\csd\ta_T3.obj \ ++..\..\..\..\..\temp\csd\ta_TAN.obj \ ++..\..\..\..\..\temp\csd\ta_TANH.obj \ ++..\..\..\..\..\temp\csd\ta_TEMA.obj \ ++..\..\..\..\..\temp\csd\ta_TRANGE.obj \ ++..\..\..\..\..\temp\csd\ta_TRIMA.obj \ ++..\..\..\..\..\temp\csd\ta_TRIX.obj \ ++..\..\..\..\..\temp\csd\ta_TSF.obj \ ++..\..\..\..\..\temp\csd\ta_TYPPRICE.obj \ ++..\..\..\..\..\temp\csd\ta_ULTOSC.obj \ ++..\..\..\..\..\temp\csd\ta_VAR.obj \ ++..\..\..\..\..\temp\csd\ta_WCLPRICE.obj \ ++..\..\..\..\..\temp\csd\ta_WILLR.obj \ ++..\..\..\..\..\temp\csd\ta_WMA.obj \ ++,; + +moc: $(SRCMOC) + +tmake: ../csd/win32/symantec/ta_libc/Makefile + +../csd/win32/symantec/ta_libc/Makefile: ta_libc/ta_libc.pro + tmake ta_libc/ta_libc.pro -o ../csd/win32/symantec/ta_libc/Makefile + +dist: + $(ZIP) ta_libc/ta_libc.zip ta_libc/ta_libc.pro $(SOURCES) $(HEADERS) $(DIST) + +clean: + -del ..\..\..\..\..\temp\csd\ta_global.obj + -del ..\..\..\..\..\temp\csd\ta_retcode.obj + -del ..\..\..\..\..\temp\csd\ta_version.obj + -del ..\..\..\..\..\temp\csd\ta_abstract.obj + -del ..\..\..\..\..\temp\csd\ta_def_ui.obj + -del ..\..\..\..\..\temp\csd\ta_func_api.obj + -del ..\..\..\..\..\temp\csd\ta_group_idx.obj + -del ..\..\..\..\..\temp\csd\ta_frame.obj + -del ..\..\..\..\..\temp\csd\table_a.obj + -del ..\..\..\..\..\temp\csd\table_b.obj + -del ..\..\..\..\..\temp\csd\table_c.obj + -del ..\..\..\..\..\temp\csd\table_d.obj + -del ..\..\..\..\..\temp\csd\table_e.obj + -del ..\..\..\..\..\temp\csd\table_f.obj + -del ..\..\..\..\..\temp\csd\table_g.obj + -del ..\..\..\..\..\temp\csd\table_h.obj + -del ..\..\..\..\..\temp\csd\table_i.obj + -del ..\..\..\..\..\temp\csd\table_j.obj + -del ..\..\..\..\..\temp\csd\table_k.obj + -del ..\..\..\..\..\temp\csd\table_l.obj + -del ..\..\..\..\..\temp\csd\table_m.obj + -del ..\..\..\..\..\temp\csd\table_n.obj + -del ..\..\..\..\..\temp\csd\table_o.obj + -del ..\..\..\..\..\temp\csd\table_p.obj + -del ..\..\..\..\..\temp\csd\table_q.obj + -del ..\..\..\..\..\temp\csd\table_r.obj + -del ..\..\..\..\..\temp\csd\table_s.obj + -del ..\..\..\..\..\temp\csd\table_t.obj + -del ..\..\..\..\..\temp\csd\table_u.obj + -del ..\..\..\..\..\temp\csd\table_v.obj + -del ..\..\..\..\..\temp\csd\table_w.obj + -del ..\..\..\..\..\temp\csd\table_x.obj + -del ..\..\..\..\..\temp\csd\table_y.obj + -del ..\..\..\..\..\temp\csd\table_z.obj + -del ..\..\..\..\..\temp\csd\ta_utility.obj + -del ..\..\..\..\..\temp\csd\ta_ACOS.obj + -del ..\..\..\..\..\temp\csd\ta_AD.obj + -del ..\..\..\..\..\temp\csd\ta_ADD.obj + -del ..\..\..\..\..\temp\csd\ta_ADOSC.obj + -del ..\..\..\..\..\temp\csd\ta_ADX.obj + -del ..\..\..\..\..\temp\csd\ta_ADXR.obj + -del ..\..\..\..\..\temp\csd\ta_APO.obj + -del ..\..\..\..\..\temp\csd\ta_AROON.obj + -del ..\..\..\..\..\temp\csd\ta_AROONOSC.obj + -del ..\..\..\..\..\temp\csd\ta_ASIN.obj + -del ..\..\..\..\..\temp\csd\ta_ATAN.obj + -del ..\..\..\..\..\temp\csd\ta_ATR.obj + -del ..\..\..\..\..\temp\csd\ta_AVGPRICE.obj + -del ..\..\..\..\..\temp\csd\ta_BBANDS.obj + -del ..\..\..\..\..\temp\csd\ta_BETA.obj + -del ..\..\..\..\..\temp\csd\ta_BOP.obj + -del ..\..\..\..\..\temp\csd\ta_CCI.obj + -del ..\..\..\..\..\temp\csd\ta_CDL2CROWS.obj + -del ..\..\..\..\..\temp\csd\ta_CDL3BLACKCROWS.obj + -del ..\..\..\..\..\temp\csd\ta_CDL3INSIDE.obj + -del ..\..\..\..\..\temp\csd\ta_CDL3LINESTRIKE.obj + -del ..\..\..\..\..\temp\csd\ta_CDL3OUTSIDE.obj + -del ..\..\..\..\..\temp\csd\ta_CDL3STARSINSOUTH.obj + -del ..\..\..\..\..\temp\csd\ta_CDL3WHITESOLDIERS.obj + -del ..\..\..\..\..\temp\csd\ta_CDLABANDONEDBABY.obj + -del ..\..\..\..\..\temp\csd\ta_CDLADVANCEBLOCK.obj + -del ..\..\..\..\..\temp\csd\ta_CDLBELTHOLD.obj + -del ..\..\..\..\..\temp\csd\ta_CDLBREAKAWAY.obj + -del ..\..\..\..\..\temp\csd\ta_CDLCLOSINGMARUBOZU.obj + -del ..\..\..\..\..\temp\csd\ta_CDLCONCEALBABYSWALL.obj + -del ..\..\..\..\..\temp\csd\ta_CDLCOUNTERATTACK.obj + -del ..\..\..\..\..\temp\csd\ta_CDLDARKCLOUDCOVER.obj + -del ..\..\..\..\..\temp\csd\ta_CDLDOJI.obj + -del ..\..\..\..\..\temp\csd\ta_CDLDOJISTAR.obj + -del ..\..\..\..\..\temp\csd\ta_CDLDRAGONFLYDOJI.obj + -del ..\..\..\..\..\temp\csd\ta_CDLENGULFING.obj + -del ..\..\..\..\..\temp\csd\ta_CDLEVENINGDOJISTAR.obj + -del ..\..\..\..\..\temp\csd\ta_CDLEVENINGSTAR.obj + -del ..\..\..\..\..\temp\csd\ta_CDLGAPSIDESIDEWHITE.obj + -del ..\..\..\..\..\temp\csd\ta_CDLGRAVESTONEDOJI.obj + -del ..\..\..\..\..\temp\csd\ta_CDLHAMMER.obj + -del ..\..\..\..\..\temp\csd\ta_CDLHANGINGMAN.obj + -del ..\..\..\..\..\temp\csd\ta_CDLHARAMI.obj + -del ..\..\..\..\..\temp\csd\ta_CDLHARAMICROSS.obj + -del ..\..\..\..\..\temp\csd\ta_CDLHIGHWAVE.obj + -del ..\..\..\..\..\temp\csd\ta_CDLHIKKAKE.obj + -del ..\..\..\..\..\temp\csd\ta_CDLHIKKAKEMOD.obj + -del ..\..\..\..\..\temp\csd\ta_CDLHOMINGPIGEON.obj + -del ..\..\..\..\..\temp\csd\ta_CDLIDENTICAL3CROWS.obj + -del ..\..\..\..\..\temp\csd\ta_CDLINNECK.obj + -del ..\..\..\..\..\temp\csd\ta_CDLINVERTEDHAMMER.obj + -del ..\..\..\..\..\temp\csd\ta_CDLKICKING.obj + -del ..\..\..\..\..\temp\csd\ta_CDLKICKINGBYLENGTH.obj + -del ..\..\..\..\..\temp\csd\ta_CDLLADDERBOTTOM.obj + -del ..\..\..\..\..\temp\csd\ta_CDLLONGLEGGEDDOJI.obj + -del ..\..\..\..\..\temp\csd\ta_CDLLONGLINE.obj + -del ..\..\..\..\..\temp\csd\ta_CDLMARUBOZU.obj + -del ..\..\..\..\..\temp\csd\ta_CDLMATCHINGLOW.obj + -del ..\..\..\..\..\temp\csd\ta_CDLMATHOLD.obj + -del ..\..\..\..\..\temp\csd\ta_CDLMORNINGDOJISTAR.obj + -del ..\..\..\..\..\temp\csd\ta_CDLMORNINGSTAR.obj + -del ..\..\..\..\..\temp\csd\ta_CDLONNECK.obj + -del ..\..\..\..\..\temp\csd\ta_CDLPIERCING.obj + -del ..\..\..\..\..\temp\csd\ta_CDLRICKSHAWMAN.obj + -del ..\..\..\..\..\temp\csd\ta_CDLRISEFALL3METHODS.obj + -del ..\..\..\..\..\temp\csd\ta_CDLSEPARATINGLINES.obj + -del ..\..\..\..\..\temp\csd\ta_CDLSHOOTINGSTAR.obj + -del ..\..\..\..\..\temp\csd\ta_CDLSHORTLINE.obj + -del ..\..\..\..\..\temp\csd\ta_CDLSPINNINGTOP.obj + -del ..\..\..\..\..\temp\csd\ta_CDLSTALLEDPATTERN.obj + -del ..\..\..\..\..\temp\csd\ta_CDLSTICKSANDWICH.obj + -del ..\..\..\..\..\temp\csd\ta_CDLTAKURI.obj + -del ..\..\..\..\..\temp\csd\ta_CDLTASUKIGAP.obj + -del ..\..\..\..\..\temp\csd\ta_CDLTHRUSTING.obj + -del ..\..\..\..\..\temp\csd\ta_CDLTRISTAR.obj + -del ..\..\..\..\..\temp\csd\ta_CDLUNIQUE3RIVER.obj + -del ..\..\..\..\..\temp\csd\ta_CDLUPSIDEGAP2CROWS.obj + -del ..\..\..\..\..\temp\csd\ta_CDLXSIDEGAP3METHODS.obj + -del ..\..\..\..\..\temp\csd\ta_CEIL.obj + -del ..\..\..\..\..\temp\csd\ta_CMO.obj + -del ..\..\..\..\..\temp\csd\ta_CORREL.obj + -del ..\..\..\..\..\temp\csd\ta_COS.obj + -del ..\..\..\..\..\temp\csd\ta_COSH.obj + -del ..\..\..\..\..\temp\csd\ta_DEMA.obj + -del ..\..\..\..\..\temp\csd\ta_DIV.obj + -del ..\..\..\..\..\temp\csd\ta_DX.obj + -del ..\..\..\..\..\temp\csd\ta_EMA.obj + -del ..\..\..\..\..\temp\csd\ta_EXP.obj + -del ..\..\..\..\..\temp\csd\ta_FLOOR.obj + -del ..\..\..\..\..\temp\csd\ta_HT_DCPERIOD.obj + -del ..\..\..\..\..\temp\csd\ta_HT_DCPHASE.obj + -del ..\..\..\..\..\temp\csd\ta_HT_PHASOR.obj + -del ..\..\..\..\..\temp\csd\ta_HT_SINE.obj + -del ..\..\..\..\..\temp\csd\ta_HT_TRENDLINE.obj + -del ..\..\..\..\..\temp\csd\ta_HT_TRENDMODE.obj + -del ..\..\..\..\..\temp\csd\ta_KAMA.obj + -del ..\..\..\..\..\temp\csd\ta_LINEARREG.obj + -del ..\..\..\..\..\temp\csd\ta_LINEARREG_ANGLE.obj + -del ..\..\..\..\..\temp\csd\ta_LINEARREG_INTERCEPT.obj + -del ..\..\..\..\..\temp\csd\ta_LINEARREG_SLOPE.obj + -del ..\..\..\..\..\temp\csd\ta_LN.obj + -del ..\..\..\..\..\temp\csd\ta_LOG10.obj + -del ..\..\..\..\..\temp\csd\ta_MA.obj + -del ..\..\..\..\..\temp\csd\ta_MACD.obj + -del ..\..\..\..\..\temp\csd\ta_MACDEXT.obj + -del ..\..\..\..\..\temp\csd\ta_MACDFIX.obj + -del ..\..\..\..\..\temp\csd\ta_MAMA.obj + -del ..\..\..\..\..\temp\csd\ta_MAVP.obj + -del ..\..\..\..\..\temp\csd\ta_MAX.obj + -del ..\..\..\..\..\temp\csd\ta_MAXINDEX.obj + -del ..\..\..\..\..\temp\csd\ta_MEDPRICE.obj + -del ..\..\..\..\..\temp\csd\ta_MFI.obj + -del ..\..\..\..\..\temp\csd\ta_MIDPOINT.obj + -del ..\..\..\..\..\temp\csd\ta_MIDPRICE.obj + -del ..\..\..\..\..\temp\csd\ta_MIN.obj + -del ..\..\..\..\..\temp\csd\ta_MININDEX.obj + -del ..\..\..\..\..\temp\csd\ta_MINMAX.obj + -del ..\..\..\..\..\temp\csd\ta_MINMAXINDEX.obj + -del ..\..\..\..\..\temp\csd\ta_MINUS_DI.obj + -del ..\..\..\..\..\temp\csd\ta_MINUS_DM.obj + -del ..\..\..\..\..\temp\csd\ta_MOM.obj + -del ..\..\..\..\..\temp\csd\ta_MULT.obj + -del ..\..\..\..\..\temp\csd\ta_NATR.obj + -del ..\..\..\..\..\temp\csd\ta_OBV.obj + -del ..\..\..\..\..\temp\csd\ta_PLUS_DI.obj + -del ..\..\..\..\..\temp\csd\ta_PLUS_DM.obj + -del ..\..\..\..\..\temp\csd\ta_PPO.obj + -del ..\..\..\..\..\temp\csd\ta_ROC.obj + -del ..\..\..\..\..\temp\csd\ta_ROCP.obj + -del ..\..\..\..\..\temp\csd\ta_ROCR.obj + -del ..\..\..\..\..\temp\csd\ta_ROCR100.obj + -del ..\..\..\..\..\temp\csd\ta_RSI.obj + -del ..\..\..\..\..\temp\csd\ta_SAR.obj + -del ..\..\..\..\..\temp\csd\ta_SAREXT.obj + -del ..\..\..\..\..\temp\csd\ta_SIN.obj + -del ..\..\..\..\..\temp\csd\ta_SINH.obj + -del ..\..\..\..\..\temp\csd\ta_SMA.obj + -del ..\..\..\..\..\temp\csd\ta_SQRT.obj + -del ..\..\..\..\..\temp\csd\ta_STDDEV.obj + -del ..\..\..\..\..\temp\csd\ta_STOCH.obj + -del ..\..\..\..\..\temp\csd\ta_STOCHF.obj + -del ..\..\..\..\..\temp\csd\ta_STOCHRSI.obj + -del ..\..\..\..\..\temp\csd\ta_SUB.obj + -del ..\..\..\..\..\temp\csd\ta_SUM.obj + -del ..\..\..\..\..\temp\csd\ta_T3.obj + -del ..\..\..\..\..\temp\csd\ta_TAN.obj + -del ..\..\..\..\..\temp\csd\ta_TANH.obj + -del ..\..\..\..\..\temp\csd\ta_TEMA.obj + -del ..\..\..\..\..\temp\csd\ta_TRANGE.obj + -del ..\..\..\..\..\temp\csd\ta_TRIMA.obj + -del ..\..\..\..\..\temp\csd\ta_TRIX.obj + -del ..\..\..\..\..\temp\csd\ta_TSF.obj + -del ..\..\..\..\..\temp\csd\ta_TYPPRICE.obj + -del ..\..\..\..\..\temp\csd\ta_ULTOSC.obj + -del ..\..\..\..\..\temp\csd\ta_VAR.obj + -del ..\..\..\..\..\temp\csd\ta_WCLPRICE.obj + -del ..\..\..\..\..\temp\csd\ta_WILLR.obj + -del ..\..\..\..\..\temp\csd\ta_WMA.obj + -del $(TARGET) + -del ../../../../../bin/*.map + -del ../../../../../bin/*._xe + -del ../../../../../bin/*.tds + -del ../../../../../bin/*.pdb + -del ../../../../../bin/*.pbo + -del ../../../../../bin/*.pbi + -del ../../../../../bin/*.pbt + +####### Compile + +..\..\..\..\..\temp\csd\ta_global.obj: ..\..\..\..\..\src\ta_common\ta_global.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_global.obj ..\..\..\..\..\src\ta_common\ta_global.c + +..\..\..\..\..\temp\csd\ta_retcode.obj: ..\..\..\..\..\src\ta_common\ta_retcode.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_retcode.obj ..\..\..\..\..\src\ta_common\ta_retcode.c + +..\..\..\..\..\temp\csd\ta_version.obj: ..\..\..\..\..\src\ta_common\ta_version.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_version.obj ..\..\..\..\..\src\ta_common\ta_version.c + +..\..\..\..\..\temp\csd\ta_abstract.obj: ..\..\..\..\..\src\ta_abstract\ta_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_abstract.obj ..\..\..\..\..\src\ta_abstract\ta_abstract.c + +..\..\..\..\..\temp\csd\ta_def_ui.obj: ..\..\..\..\..\src\ta_abstract\ta_def_ui.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_def_ui.obj ..\..\..\..\..\src\ta_abstract\ta_def_ui.c + +..\..\..\..\..\temp\csd\ta_func_api.obj: ..\..\..\..\..\src\ta_abstract\ta_func_api.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_func_api.obj ..\..\..\..\..\src\ta_abstract\ta_func_api.c + +..\..\..\..\..\temp\csd\ta_group_idx.obj: ..\..\..\..\..\src\ta_abstract\ta_group_idx.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_group_idx.obj ..\..\..\..\..\src\ta_abstract\ta_group_idx.c + +..\..\..\..\..\temp\csd\ta_frame.obj: ..\..\..\..\..\src\ta_abstract\frames\ta_frame.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_frame.obj ..\..\..\..\..\src\ta_abstract\frames\ta_frame.c + +..\..\..\..\..\temp\csd\table_a.obj: ..\..\..\..\..\src\ta_abstract\tables\table_a.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\table_a.obj ..\..\..\..\..\src\ta_abstract\tables\table_a.c + +..\..\..\..\..\temp\csd\table_b.obj: ..\..\..\..\..\src\ta_abstract\tables\table_b.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\table_b.obj ..\..\..\..\..\src\ta_abstract\tables\table_b.c + +..\..\..\..\..\temp\csd\table_c.obj: ..\..\..\..\..\src\ta_abstract\tables\table_c.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\table_c.obj ..\..\..\..\..\src\ta_abstract\tables\table_c.c + +..\..\..\..\..\temp\csd\table_d.obj: ..\..\..\..\..\src\ta_abstract\tables\table_d.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\table_d.obj ..\..\..\..\..\src\ta_abstract\tables\table_d.c + +..\..\..\..\..\temp\csd\table_e.obj: ..\..\..\..\..\src\ta_abstract\tables\table_e.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\table_e.obj ..\..\..\..\..\src\ta_abstract\tables\table_e.c + +..\..\..\..\..\temp\csd\table_f.obj: ..\..\..\..\..\src\ta_abstract\tables\table_f.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\table_f.obj ..\..\..\..\..\src\ta_abstract\tables\table_f.c + +..\..\..\..\..\temp\csd\table_g.obj: ..\..\..\..\..\src\ta_abstract\tables\table_g.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\table_g.obj ..\..\..\..\..\src\ta_abstract\tables\table_g.c + +..\..\..\..\..\temp\csd\table_h.obj: ..\..\..\..\..\src\ta_abstract\tables\table_h.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\table_h.obj ..\..\..\..\..\src\ta_abstract\tables\table_h.c + +..\..\..\..\..\temp\csd\table_i.obj: ..\..\..\..\..\src\ta_abstract\tables\table_i.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\table_i.obj ..\..\..\..\..\src\ta_abstract\tables\table_i.c + +..\..\..\..\..\temp\csd\table_j.obj: ..\..\..\..\..\src\ta_abstract\tables\table_j.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\table_j.obj ..\..\..\..\..\src\ta_abstract\tables\table_j.c + +..\..\..\..\..\temp\csd\table_k.obj: ..\..\..\..\..\src\ta_abstract\tables\table_k.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\table_k.obj ..\..\..\..\..\src\ta_abstract\tables\table_k.c + +..\..\..\..\..\temp\csd\table_l.obj: ..\..\..\..\..\src\ta_abstract\tables\table_l.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\table_l.obj ..\..\..\..\..\src\ta_abstract\tables\table_l.c + +..\..\..\..\..\temp\csd\table_m.obj: ..\..\..\..\..\src\ta_abstract\tables\table_m.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\table_m.obj ..\..\..\..\..\src\ta_abstract\tables\table_m.c + +..\..\..\..\..\temp\csd\table_n.obj: ..\..\..\..\..\src\ta_abstract\tables\table_n.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\table_n.obj ..\..\..\..\..\src\ta_abstract\tables\table_n.c + +..\..\..\..\..\temp\csd\table_o.obj: ..\..\..\..\..\src\ta_abstract\tables\table_o.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\table_o.obj ..\..\..\..\..\src\ta_abstract\tables\table_o.c + +..\..\..\..\..\temp\csd\table_p.obj: ..\..\..\..\..\src\ta_abstract\tables\table_p.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\table_p.obj ..\..\..\..\..\src\ta_abstract\tables\table_p.c + +..\..\..\..\..\temp\csd\table_q.obj: ..\..\..\..\..\src\ta_abstract\tables\table_q.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\table_q.obj ..\..\..\..\..\src\ta_abstract\tables\table_q.c + +..\..\..\..\..\temp\csd\table_r.obj: ..\..\..\..\..\src\ta_abstract\tables\table_r.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\table_r.obj ..\..\..\..\..\src\ta_abstract\tables\table_r.c + +..\..\..\..\..\temp\csd\table_s.obj: ..\..\..\..\..\src\ta_abstract\tables\table_s.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\table_s.obj ..\..\..\..\..\src\ta_abstract\tables\table_s.c + +..\..\..\..\..\temp\csd\table_t.obj: ..\..\..\..\..\src\ta_abstract\tables\table_t.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\table_t.obj ..\..\..\..\..\src\ta_abstract\tables\table_t.c + +..\..\..\..\..\temp\csd\table_u.obj: ..\..\..\..\..\src\ta_abstract\tables\table_u.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\table_u.obj ..\..\..\..\..\src\ta_abstract\tables\table_u.c + +..\..\..\..\..\temp\csd\table_v.obj: ..\..\..\..\..\src\ta_abstract\tables\table_v.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\table_v.obj ..\..\..\..\..\src\ta_abstract\tables\table_v.c + +..\..\..\..\..\temp\csd\table_w.obj: ..\..\..\..\..\src\ta_abstract\tables\table_w.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\table_w.obj ..\..\..\..\..\src\ta_abstract\tables\table_w.c + +..\..\..\..\..\temp\csd\table_x.obj: ..\..\..\..\..\src\ta_abstract\tables\table_x.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\table_x.obj ..\..\..\..\..\src\ta_abstract\tables\table_x.c + +..\..\..\..\..\temp\csd\table_y.obj: ..\..\..\..\..\src\ta_abstract\tables\table_y.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\table_y.obj ..\..\..\..\..\src\ta_abstract\tables\table_y.c + +..\..\..\..\..\temp\csd\table_z.obj: ..\..\..\..\..\src\ta_abstract\tables\table_z.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\table_z.obj ..\..\..\..\..\src\ta_abstract\tables\table_z.c + +..\..\..\..\..\temp\csd\ta_utility.obj: ..\..\..\..\..\src\ta_func\ta_utility.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_utility.obj ..\..\..\..\..\src\ta_func\ta_utility.c + +..\..\..\..\..\temp\csd\ta_ACOS.obj: ..\..\..\..\..\src\ta_func\ta_ACOS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_ACOS.obj ..\..\..\..\..\src\ta_func\ta_ACOS.c + +..\..\..\..\..\temp\csd\ta_AD.obj: ..\..\..\..\..\src\ta_func\ta_AD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_AD.obj ..\..\..\..\..\src\ta_func\ta_AD.c + +..\..\..\..\..\temp\csd\ta_ADD.obj: ..\..\..\..\..\src\ta_func\ta_ADD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_ADD.obj ..\..\..\..\..\src\ta_func\ta_ADD.c + +..\..\..\..\..\temp\csd\ta_ADOSC.obj: ..\..\..\..\..\src\ta_func\ta_ADOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_ADOSC.obj ..\..\..\..\..\src\ta_func\ta_ADOSC.c + +..\..\..\..\..\temp\csd\ta_ADX.obj: ..\..\..\..\..\src\ta_func\ta_ADX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_ADX.obj ..\..\..\..\..\src\ta_func\ta_ADX.c + +..\..\..\..\..\temp\csd\ta_ADXR.obj: ..\..\..\..\..\src\ta_func\ta_ADXR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_ADXR.obj ..\..\..\..\..\src\ta_func\ta_ADXR.c + +..\..\..\..\..\temp\csd\ta_APO.obj: ..\..\..\..\..\src\ta_func\ta_APO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_APO.obj ..\..\..\..\..\src\ta_func\ta_APO.c + +..\..\..\..\..\temp\csd\ta_AROON.obj: ..\..\..\..\..\src\ta_func\ta_AROON.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_AROON.obj ..\..\..\..\..\src\ta_func\ta_AROON.c + +..\..\..\..\..\temp\csd\ta_AROONOSC.obj: ..\..\..\..\..\src\ta_func\ta_AROONOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_AROONOSC.obj ..\..\..\..\..\src\ta_func\ta_AROONOSC.c + +..\..\..\..\..\temp\csd\ta_ASIN.obj: ..\..\..\..\..\src\ta_func\ta_ASIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_ASIN.obj ..\..\..\..\..\src\ta_func\ta_ASIN.c + +..\..\..\..\..\temp\csd\ta_ATAN.obj: ..\..\..\..\..\src\ta_func\ta_ATAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_ATAN.obj ..\..\..\..\..\src\ta_func\ta_ATAN.c + +..\..\..\..\..\temp\csd\ta_ATR.obj: ..\..\..\..\..\src\ta_func\ta_ATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_ATR.obj ..\..\..\..\..\src\ta_func\ta_ATR.c + +..\..\..\..\..\temp\csd\ta_AVGPRICE.obj: ..\..\..\..\..\src\ta_func\ta_AVGPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_AVGPRICE.obj ..\..\..\..\..\src\ta_func\ta_AVGPRICE.c + +..\..\..\..\..\temp\csd\ta_BBANDS.obj: ..\..\..\..\..\src\ta_func\ta_BBANDS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_BBANDS.obj ..\..\..\..\..\src\ta_func\ta_BBANDS.c + +..\..\..\..\..\temp\csd\ta_BETA.obj: ..\..\..\..\..\src\ta_func\ta_BETA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_BETA.obj ..\..\..\..\..\src\ta_func\ta_BETA.c + +..\..\..\..\..\temp\csd\ta_BOP.obj: ..\..\..\..\..\src\ta_func\ta_BOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_BOP.obj ..\..\..\..\..\src\ta_func\ta_BOP.c + +..\..\..\..\..\temp\csd\ta_CCI.obj: ..\..\..\..\..\src\ta_func\ta_CCI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CCI.obj ..\..\..\..\..\src\ta_func\ta_CCI.c + +..\..\..\..\..\temp\csd\ta_CDL2CROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDL2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDL2CROWS.obj ..\..\..\..\..\src\ta_func\ta_CDL2CROWS.c + +..\..\..\..\..\temp\csd\ta_CDL3BLACKCROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDL3BLACKCROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDL3BLACKCROWS.obj ..\..\..\..\..\src\ta_func\ta_CDL3BLACKCROWS.c + +..\..\..\..\..\temp\csd\ta_CDL3INSIDE.obj: ..\..\..\..\..\src\ta_func\ta_CDL3INSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDL3INSIDE.obj ..\..\..\..\..\src\ta_func\ta_CDL3INSIDE.c + +..\..\..\..\..\temp\csd\ta_CDL3LINESTRIKE.obj: ..\..\..\..\..\src\ta_func\ta_CDL3LINESTRIKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDL3LINESTRIKE.obj ..\..\..\..\..\src\ta_func\ta_CDL3LINESTRIKE.c + +..\..\..\..\..\temp\csd\ta_CDL3OUTSIDE.obj: ..\..\..\..\..\src\ta_func\ta_CDL3OUTSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDL3OUTSIDE.obj ..\..\..\..\..\src\ta_func\ta_CDL3OUTSIDE.c + +..\..\..\..\..\temp\csd\ta_CDL3STARSINSOUTH.obj: ..\..\..\..\..\src\ta_func\ta_CDL3STARSINSOUTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDL3STARSINSOUTH.obj ..\..\..\..\..\src\ta_func\ta_CDL3STARSINSOUTH.c + +..\..\..\..\..\temp\csd\ta_CDL3WHITESOLDIERS.obj: ..\..\..\..\..\src\ta_func\ta_CDL3WHITESOLDIERS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDL3WHITESOLDIERS.obj ..\..\..\..\..\src\ta_func\ta_CDL3WHITESOLDIERS.c + +..\..\..\..\..\temp\csd\ta_CDLABANDONEDBABY.obj: ..\..\..\..\..\src\ta_func\ta_CDLABANDONEDBABY.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLABANDONEDBABY.obj ..\..\..\..\..\src\ta_func\ta_CDLABANDONEDBABY.c + +..\..\..\..\..\temp\csd\ta_CDLADVANCEBLOCK.obj: ..\..\..\..\..\src\ta_func\ta_CDLADVANCEBLOCK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLADVANCEBLOCK.obj ..\..\..\..\..\src\ta_func\ta_CDLADVANCEBLOCK.c + +..\..\..\..\..\temp\csd\ta_CDLBELTHOLD.obj: ..\..\..\..\..\src\ta_func\ta_CDLBELTHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLBELTHOLD.obj ..\..\..\..\..\src\ta_func\ta_CDLBELTHOLD.c + +..\..\..\..\..\temp\csd\ta_CDLBREAKAWAY.obj: ..\..\..\..\..\src\ta_func\ta_CDLBREAKAWAY.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLBREAKAWAY.obj ..\..\..\..\..\src\ta_func\ta_CDLBREAKAWAY.c + +..\..\..\..\..\temp\csd\ta_CDLCLOSINGMARUBOZU.obj: ..\..\..\..\..\src\ta_func\ta_CDLCLOSINGMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLCLOSINGMARUBOZU.obj ..\..\..\..\..\src\ta_func\ta_CDLCLOSINGMARUBOZU.c + +..\..\..\..\..\temp\csd\ta_CDLCONCEALBABYSWALL.obj: ..\..\..\..\..\src\ta_func\ta_CDLCONCEALBABYSWALL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLCONCEALBABYSWALL.obj ..\..\..\..\..\src\ta_func\ta_CDLCONCEALBABYSWALL.c + +..\..\..\..\..\temp\csd\ta_CDLCOUNTERATTACK.obj: ..\..\..\..\..\src\ta_func\ta_CDLCOUNTERATTACK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLCOUNTERATTACK.obj ..\..\..\..\..\src\ta_func\ta_CDLCOUNTERATTACK.c + +..\..\..\..\..\temp\csd\ta_CDLDARKCLOUDCOVER.obj: ..\..\..\..\..\src\ta_func\ta_CDLDARKCLOUDCOVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLDARKCLOUDCOVER.obj ..\..\..\..\..\src\ta_func\ta_CDLDARKCLOUDCOVER.c + +..\..\..\..\..\temp\csd\ta_CDLDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLDOJI.c + +..\..\..\..\..\temp\csd\ta_CDLDOJISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLDOJISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLDOJISTAR.c + +..\..\..\..\..\temp\csd\ta_CDLDRAGONFLYDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLDRAGONFLYDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLDRAGONFLYDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLDRAGONFLYDOJI.c + +..\..\..\..\..\temp\csd\ta_CDLENGULFING.obj: ..\..\..\..\..\src\ta_func\ta_CDLENGULFING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLENGULFING.obj ..\..\..\..\..\src\ta_func\ta_CDLENGULFING.c + +..\..\..\..\..\temp\csd\ta_CDLEVENINGDOJISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLEVENINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLEVENINGDOJISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLEVENINGDOJISTAR.c + +..\..\..\..\..\temp\csd\ta_CDLEVENINGSTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLEVENINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLEVENINGSTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLEVENINGSTAR.c + +..\..\..\..\..\temp\csd\ta_CDLGAPSIDESIDEWHITE.obj: ..\..\..\..\..\src\ta_func\ta_CDLGAPSIDESIDEWHITE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLGAPSIDESIDEWHITE.obj ..\..\..\..\..\src\ta_func\ta_CDLGAPSIDESIDEWHITE.c + +..\..\..\..\..\temp\csd\ta_CDLGRAVESTONEDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLGRAVESTONEDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLGRAVESTONEDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLGRAVESTONEDOJI.c + +..\..\..\..\..\temp\csd\ta_CDLHAMMER.obj: ..\..\..\..\..\src\ta_func\ta_CDLHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLHAMMER.obj ..\..\..\..\..\src\ta_func\ta_CDLHAMMER.c + +..\..\..\..\..\temp\csd\ta_CDLHANGINGMAN.obj: ..\..\..\..\..\src\ta_func\ta_CDLHANGINGMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLHANGINGMAN.obj ..\..\..\..\..\src\ta_func\ta_CDLHANGINGMAN.c + +..\..\..\..\..\temp\csd\ta_CDLHARAMI.obj: ..\..\..\..\..\src\ta_func\ta_CDLHARAMI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLHARAMI.obj ..\..\..\..\..\src\ta_func\ta_CDLHARAMI.c + +..\..\..\..\..\temp\csd\ta_CDLHARAMICROSS.obj: ..\..\..\..\..\src\ta_func\ta_CDLHARAMICROSS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLHARAMICROSS.obj ..\..\..\..\..\src\ta_func\ta_CDLHARAMICROSS.c + +..\..\..\..\..\temp\csd\ta_CDLHIGHWAVE.obj: ..\..\..\..\..\src\ta_func\ta_CDLHIGHWAVE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLHIGHWAVE.obj ..\..\..\..\..\src\ta_func\ta_CDLHIGHWAVE.c + +..\..\..\..\..\temp\csd\ta_CDLHIKKAKE.obj: ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLHIKKAKE.obj ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKE.c + +..\..\..\..\..\temp\csd\ta_CDLHIKKAKEMOD.obj: ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKEMOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLHIKKAKEMOD.obj ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKEMOD.c + +..\..\..\..\..\temp\csd\ta_CDLHOMINGPIGEON.obj: ..\..\..\..\..\src\ta_func\ta_CDLHOMINGPIGEON.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLHOMINGPIGEON.obj ..\..\..\..\..\src\ta_func\ta_CDLHOMINGPIGEON.c + +..\..\..\..\..\temp\csd\ta_CDLIDENTICAL3CROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDLIDENTICAL3CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLIDENTICAL3CROWS.obj ..\..\..\..\..\src\ta_func\ta_CDLIDENTICAL3CROWS.c + +..\..\..\..\..\temp\csd\ta_CDLINNECK.obj: ..\..\..\..\..\src\ta_func\ta_CDLINNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLINNECK.obj ..\..\..\..\..\src\ta_func\ta_CDLINNECK.c + +..\..\..\..\..\temp\csd\ta_CDLINVERTEDHAMMER.obj: ..\..\..\..\..\src\ta_func\ta_CDLINVERTEDHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLINVERTEDHAMMER.obj ..\..\..\..\..\src\ta_func\ta_CDLINVERTEDHAMMER.c + +..\..\..\..\..\temp\csd\ta_CDLKICKING.obj: ..\..\..\..\..\src\ta_func\ta_CDLKICKING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLKICKING.obj ..\..\..\..\..\src\ta_func\ta_CDLKICKING.c + +..\..\..\..\..\temp\csd\ta_CDLKICKINGBYLENGTH.obj: ..\..\..\..\..\src\ta_func\ta_CDLKICKINGBYLENGTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLKICKINGBYLENGTH.obj ..\..\..\..\..\src\ta_func\ta_CDLKICKINGBYLENGTH.c + +..\..\..\..\..\temp\csd\ta_CDLLADDERBOTTOM.obj: ..\..\..\..\..\src\ta_func\ta_CDLLADDERBOTTOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLLADDERBOTTOM.obj ..\..\..\..\..\src\ta_func\ta_CDLLADDERBOTTOM.c + +..\..\..\..\..\temp\csd\ta_CDLLONGLEGGEDDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLLONGLEGGEDDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLLONGLEGGEDDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLLONGLEGGEDDOJI.c + +..\..\..\..\..\temp\csd\ta_CDLLONGLINE.obj: ..\..\..\..\..\src\ta_func\ta_CDLLONGLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLLONGLINE.obj ..\..\..\..\..\src\ta_func\ta_CDLLONGLINE.c + +..\..\..\..\..\temp\csd\ta_CDLMARUBOZU.obj: ..\..\..\..\..\src\ta_func\ta_CDLMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLMARUBOZU.obj ..\..\..\..\..\src\ta_func\ta_CDLMARUBOZU.c + +..\..\..\..\..\temp\csd\ta_CDLMATCHINGLOW.obj: ..\..\..\..\..\src\ta_func\ta_CDLMATCHINGLOW.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLMATCHINGLOW.obj ..\..\..\..\..\src\ta_func\ta_CDLMATCHINGLOW.c + +..\..\..\..\..\temp\csd\ta_CDLMATHOLD.obj: ..\..\..\..\..\src\ta_func\ta_CDLMATHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLMATHOLD.obj ..\..\..\..\..\src\ta_func\ta_CDLMATHOLD.c + +..\..\..\..\..\temp\csd\ta_CDLMORNINGDOJISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLMORNINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLMORNINGDOJISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLMORNINGDOJISTAR.c + +..\..\..\..\..\temp\csd\ta_CDLMORNINGSTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLMORNINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLMORNINGSTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLMORNINGSTAR.c + +..\..\..\..\..\temp\csd\ta_CDLONNECK.obj: ..\..\..\..\..\src\ta_func\ta_CDLONNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLONNECK.obj ..\..\..\..\..\src\ta_func\ta_CDLONNECK.c + +..\..\..\..\..\temp\csd\ta_CDLPIERCING.obj: ..\..\..\..\..\src\ta_func\ta_CDLPIERCING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLPIERCING.obj ..\..\..\..\..\src\ta_func\ta_CDLPIERCING.c + +..\..\..\..\..\temp\csd\ta_CDLRICKSHAWMAN.obj: ..\..\..\..\..\src\ta_func\ta_CDLRICKSHAWMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLRICKSHAWMAN.obj ..\..\..\..\..\src\ta_func\ta_CDLRICKSHAWMAN.c + +..\..\..\..\..\temp\csd\ta_CDLRISEFALL3METHODS.obj: ..\..\..\..\..\src\ta_func\ta_CDLRISEFALL3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLRISEFALL3METHODS.obj ..\..\..\..\..\src\ta_func\ta_CDLRISEFALL3METHODS.c + +..\..\..\..\..\temp\csd\ta_CDLSEPARATINGLINES.obj: ..\..\..\..\..\src\ta_func\ta_CDLSEPARATINGLINES.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLSEPARATINGLINES.obj ..\..\..\..\..\src\ta_func\ta_CDLSEPARATINGLINES.c + +..\..\..\..\..\temp\csd\ta_CDLSHOOTINGSTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLSHOOTINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLSHOOTINGSTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLSHOOTINGSTAR.c + +..\..\..\..\..\temp\csd\ta_CDLSHORTLINE.obj: ..\..\..\..\..\src\ta_func\ta_CDLSHORTLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLSHORTLINE.obj ..\..\..\..\..\src\ta_func\ta_CDLSHORTLINE.c + +..\..\..\..\..\temp\csd\ta_CDLSPINNINGTOP.obj: ..\..\..\..\..\src\ta_func\ta_CDLSPINNINGTOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLSPINNINGTOP.obj ..\..\..\..\..\src\ta_func\ta_CDLSPINNINGTOP.c + +..\..\..\..\..\temp\csd\ta_CDLSTALLEDPATTERN.obj: ..\..\..\..\..\src\ta_func\ta_CDLSTALLEDPATTERN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLSTALLEDPATTERN.obj ..\..\..\..\..\src\ta_func\ta_CDLSTALLEDPATTERN.c + +..\..\..\..\..\temp\csd\ta_CDLSTICKSANDWICH.obj: ..\..\..\..\..\src\ta_func\ta_CDLSTICKSANDWICH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLSTICKSANDWICH.obj ..\..\..\..\..\src\ta_func\ta_CDLSTICKSANDWICH.c + +..\..\..\..\..\temp\csd\ta_CDLTAKURI.obj: ..\..\..\..\..\src\ta_func\ta_CDLTAKURI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLTAKURI.obj ..\..\..\..\..\src\ta_func\ta_CDLTAKURI.c + +..\..\..\..\..\temp\csd\ta_CDLTASUKIGAP.obj: ..\..\..\..\..\src\ta_func\ta_CDLTASUKIGAP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLTASUKIGAP.obj ..\..\..\..\..\src\ta_func\ta_CDLTASUKIGAP.c + +..\..\..\..\..\temp\csd\ta_CDLTHRUSTING.obj: ..\..\..\..\..\src\ta_func\ta_CDLTHRUSTING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLTHRUSTING.obj ..\..\..\..\..\src\ta_func\ta_CDLTHRUSTING.c + +..\..\..\..\..\temp\csd\ta_CDLTRISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLTRISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLTRISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLTRISTAR.c + +..\..\..\..\..\temp\csd\ta_CDLUNIQUE3RIVER.obj: ..\..\..\..\..\src\ta_func\ta_CDLUNIQUE3RIVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLUNIQUE3RIVER.obj ..\..\..\..\..\src\ta_func\ta_CDLUNIQUE3RIVER.c + +..\..\..\..\..\temp\csd\ta_CDLUPSIDEGAP2CROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDLUPSIDEGAP2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLUPSIDEGAP2CROWS.obj ..\..\..\..\..\src\ta_func\ta_CDLUPSIDEGAP2CROWS.c + +..\..\..\..\..\temp\csd\ta_CDLXSIDEGAP3METHODS.obj: ..\..\..\..\..\src\ta_func\ta_CDLXSIDEGAP3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CDLXSIDEGAP3METHODS.obj ..\..\..\..\..\src\ta_func\ta_CDLXSIDEGAP3METHODS.c + +..\..\..\..\..\temp\csd\ta_CEIL.obj: ..\..\..\..\..\src\ta_func\ta_CEIL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CEIL.obj ..\..\..\..\..\src\ta_func\ta_CEIL.c + +..\..\..\..\..\temp\csd\ta_CMO.obj: ..\..\..\..\..\src\ta_func\ta_CMO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CMO.obj ..\..\..\..\..\src\ta_func\ta_CMO.c + +..\..\..\..\..\temp\csd\ta_CORREL.obj: ..\..\..\..\..\src\ta_func\ta_CORREL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_CORREL.obj ..\..\..\..\..\src\ta_func\ta_CORREL.c + +..\..\..\..\..\temp\csd\ta_COS.obj: ..\..\..\..\..\src\ta_func\ta_COS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_COS.obj ..\..\..\..\..\src\ta_func\ta_COS.c + +..\..\..\..\..\temp\csd\ta_COSH.obj: ..\..\..\..\..\src\ta_func\ta_COSH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_COSH.obj ..\..\..\..\..\src\ta_func\ta_COSH.c + +..\..\..\..\..\temp\csd\ta_DEMA.obj: ..\..\..\..\..\src\ta_func\ta_DEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_DEMA.obj ..\..\..\..\..\src\ta_func\ta_DEMA.c + +..\..\..\..\..\temp\csd\ta_DIV.obj: ..\..\..\..\..\src\ta_func\ta_DIV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_DIV.obj ..\..\..\..\..\src\ta_func\ta_DIV.c + +..\..\..\..\..\temp\csd\ta_DX.obj: ..\..\..\..\..\src\ta_func\ta_DX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_DX.obj ..\..\..\..\..\src\ta_func\ta_DX.c + +..\..\..\..\..\temp\csd\ta_EMA.obj: ..\..\..\..\..\src\ta_func\ta_EMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_EMA.obj ..\..\..\..\..\src\ta_func\ta_EMA.c + +..\..\..\..\..\temp\csd\ta_EXP.obj: ..\..\..\..\..\src\ta_func\ta_EXP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_EXP.obj ..\..\..\..\..\src\ta_func\ta_EXP.c + +..\..\..\..\..\temp\csd\ta_FLOOR.obj: ..\..\..\..\..\src\ta_func\ta_FLOOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_FLOOR.obj ..\..\..\..\..\src\ta_func\ta_FLOOR.c + +..\..\..\..\..\temp\csd\ta_HT_DCPERIOD.obj: ..\..\..\..\..\src\ta_func\ta_HT_DCPERIOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_HT_DCPERIOD.obj ..\..\..\..\..\src\ta_func\ta_HT_DCPERIOD.c + +..\..\..\..\..\temp\csd\ta_HT_DCPHASE.obj: ..\..\..\..\..\src\ta_func\ta_HT_DCPHASE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_HT_DCPHASE.obj ..\..\..\..\..\src\ta_func\ta_HT_DCPHASE.c + +..\..\..\..\..\temp\csd\ta_HT_PHASOR.obj: ..\..\..\..\..\src\ta_func\ta_HT_PHASOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_HT_PHASOR.obj ..\..\..\..\..\src\ta_func\ta_HT_PHASOR.c + +..\..\..\..\..\temp\csd\ta_HT_SINE.obj: ..\..\..\..\..\src\ta_func\ta_HT_SINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_HT_SINE.obj ..\..\..\..\..\src\ta_func\ta_HT_SINE.c + +..\..\..\..\..\temp\csd\ta_HT_TRENDLINE.obj: ..\..\..\..\..\src\ta_func\ta_HT_TRENDLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_HT_TRENDLINE.obj ..\..\..\..\..\src\ta_func\ta_HT_TRENDLINE.c + +..\..\..\..\..\temp\csd\ta_HT_TRENDMODE.obj: ..\..\..\..\..\src\ta_func\ta_HT_TRENDMODE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_HT_TRENDMODE.obj ..\..\..\..\..\src\ta_func\ta_HT_TRENDMODE.c + +..\..\..\..\..\temp\csd\ta_KAMA.obj: ..\..\..\..\..\src\ta_func\ta_KAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_KAMA.obj ..\..\..\..\..\src\ta_func\ta_KAMA.c + +..\..\..\..\..\temp\csd\ta_LINEARREG.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_LINEARREG.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG.c + +..\..\..\..\..\temp\csd\ta_LINEARREG_ANGLE.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG_ANGLE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_LINEARREG_ANGLE.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG_ANGLE.c + +..\..\..\..\..\temp\csd\ta_LINEARREG_INTERCEPT.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG_INTERCEPT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_LINEARREG_INTERCEPT.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG_INTERCEPT.c + +..\..\..\..\..\temp\csd\ta_LINEARREG_SLOPE.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG_SLOPE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_LINEARREG_SLOPE.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG_SLOPE.c + +..\..\..\..\..\temp\csd\ta_LN.obj: ..\..\..\..\..\src\ta_func\ta_LN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_LN.obj ..\..\..\..\..\src\ta_func\ta_LN.c + +..\..\..\..\..\temp\csd\ta_LOG10.obj: ..\..\..\..\..\src\ta_func\ta_LOG10.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_LOG10.obj ..\..\..\..\..\src\ta_func\ta_LOG10.c + +..\..\..\..\..\temp\csd\ta_MA.obj: ..\..\..\..\..\src\ta_func\ta_MA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_MA.obj ..\..\..\..\..\src\ta_func\ta_MA.c + +..\..\..\..\..\temp\csd\ta_MACD.obj: ..\..\..\..\..\src\ta_func\ta_MACD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_MACD.obj ..\..\..\..\..\src\ta_func\ta_MACD.c + +..\..\..\..\..\temp\csd\ta_MACDEXT.obj: ..\..\..\..\..\src\ta_func\ta_MACDEXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_MACDEXT.obj ..\..\..\..\..\src\ta_func\ta_MACDEXT.c + +..\..\..\..\..\temp\csd\ta_MACDFIX.obj: ..\..\..\..\..\src\ta_func\ta_MACDFIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_MACDFIX.obj ..\..\..\..\..\src\ta_func\ta_MACDFIX.c + +..\..\..\..\..\temp\csd\ta_MAMA.obj: ..\..\..\..\..\src\ta_func\ta_MAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_MAMA.obj ..\..\..\..\..\src\ta_func\ta_MAMA.c + +..\..\..\..\..\temp\csd\ta_MAVP.obj: ..\..\..\..\..\src\ta_func\ta_MAVP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_MAVP.obj ..\..\..\..\..\src\ta_func\ta_MAVP.c + +..\..\..\..\..\temp\csd\ta_MAX.obj: ..\..\..\..\..\src\ta_func\ta_MAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_MAX.obj ..\..\..\..\..\src\ta_func\ta_MAX.c + +..\..\..\..\..\temp\csd\ta_MAXINDEX.obj: ..\..\..\..\..\src\ta_func\ta_MAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_MAXINDEX.obj ..\..\..\..\..\src\ta_func\ta_MAXINDEX.c + +..\..\..\..\..\temp\csd\ta_MEDPRICE.obj: ..\..\..\..\..\src\ta_func\ta_MEDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_MEDPRICE.obj ..\..\..\..\..\src\ta_func\ta_MEDPRICE.c + +..\..\..\..\..\temp\csd\ta_MFI.obj: ..\..\..\..\..\src\ta_func\ta_MFI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_MFI.obj ..\..\..\..\..\src\ta_func\ta_MFI.c + +..\..\..\..\..\temp\csd\ta_MIDPOINT.obj: ..\..\..\..\..\src\ta_func\ta_MIDPOINT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_MIDPOINT.obj ..\..\..\..\..\src\ta_func\ta_MIDPOINT.c + +..\..\..\..\..\temp\csd\ta_MIDPRICE.obj: ..\..\..\..\..\src\ta_func\ta_MIDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_MIDPRICE.obj ..\..\..\..\..\src\ta_func\ta_MIDPRICE.c + +..\..\..\..\..\temp\csd\ta_MIN.obj: ..\..\..\..\..\src\ta_func\ta_MIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_MIN.obj ..\..\..\..\..\src\ta_func\ta_MIN.c + +..\..\..\..\..\temp\csd\ta_MININDEX.obj: ..\..\..\..\..\src\ta_func\ta_MININDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_MININDEX.obj ..\..\..\..\..\src\ta_func\ta_MININDEX.c + +..\..\..\..\..\temp\csd\ta_MINMAX.obj: ..\..\..\..\..\src\ta_func\ta_MINMAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_MINMAX.obj ..\..\..\..\..\src\ta_func\ta_MINMAX.c + +..\..\..\..\..\temp\csd\ta_MINMAXINDEX.obj: ..\..\..\..\..\src\ta_func\ta_MINMAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_MINMAXINDEX.obj ..\..\..\..\..\src\ta_func\ta_MINMAXINDEX.c + +..\..\..\..\..\temp\csd\ta_MINUS_DI.obj: ..\..\..\..\..\src\ta_func\ta_MINUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_MINUS_DI.obj ..\..\..\..\..\src\ta_func\ta_MINUS_DI.c + +..\..\..\..\..\temp\csd\ta_MINUS_DM.obj: ..\..\..\..\..\src\ta_func\ta_MINUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_MINUS_DM.obj ..\..\..\..\..\src\ta_func\ta_MINUS_DM.c + +..\..\..\..\..\temp\csd\ta_MOM.obj: ..\..\..\..\..\src\ta_func\ta_MOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_MOM.obj ..\..\..\..\..\src\ta_func\ta_MOM.c + +..\..\..\..\..\temp\csd\ta_MULT.obj: ..\..\..\..\..\src\ta_func\ta_MULT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_MULT.obj ..\..\..\..\..\src\ta_func\ta_MULT.c + +..\..\..\..\..\temp\csd\ta_NATR.obj: ..\..\..\..\..\src\ta_func\ta_NATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_NATR.obj ..\..\..\..\..\src\ta_func\ta_NATR.c + +..\..\..\..\..\temp\csd\ta_OBV.obj: ..\..\..\..\..\src\ta_func\ta_OBV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_OBV.obj ..\..\..\..\..\src\ta_func\ta_OBV.c + +..\..\..\..\..\temp\csd\ta_PLUS_DI.obj: ..\..\..\..\..\src\ta_func\ta_PLUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_PLUS_DI.obj ..\..\..\..\..\src\ta_func\ta_PLUS_DI.c + +..\..\..\..\..\temp\csd\ta_PLUS_DM.obj: ..\..\..\..\..\src\ta_func\ta_PLUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_PLUS_DM.obj ..\..\..\..\..\src\ta_func\ta_PLUS_DM.c + +..\..\..\..\..\temp\csd\ta_PPO.obj: ..\..\..\..\..\src\ta_func\ta_PPO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_PPO.obj ..\..\..\..\..\src\ta_func\ta_PPO.c + +..\..\..\..\..\temp\csd\ta_ROC.obj: ..\..\..\..\..\src\ta_func\ta_ROC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_ROC.obj ..\..\..\..\..\src\ta_func\ta_ROC.c + +..\..\..\..\..\temp\csd\ta_ROCP.obj: ..\..\..\..\..\src\ta_func\ta_ROCP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_ROCP.obj ..\..\..\..\..\src\ta_func\ta_ROCP.c + +..\..\..\..\..\temp\csd\ta_ROCR.obj: ..\..\..\..\..\src\ta_func\ta_ROCR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_ROCR.obj ..\..\..\..\..\src\ta_func\ta_ROCR.c + +..\..\..\..\..\temp\csd\ta_ROCR100.obj: ..\..\..\..\..\src\ta_func\ta_ROCR100.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_ROCR100.obj ..\..\..\..\..\src\ta_func\ta_ROCR100.c + +..\..\..\..\..\temp\csd\ta_RSI.obj: ..\..\..\..\..\src\ta_func\ta_RSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_RSI.obj ..\..\..\..\..\src\ta_func\ta_RSI.c + +..\..\..\..\..\temp\csd\ta_SAR.obj: ..\..\..\..\..\src\ta_func\ta_SAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_SAR.obj ..\..\..\..\..\src\ta_func\ta_SAR.c + +..\..\..\..\..\temp\csd\ta_SAREXT.obj: ..\..\..\..\..\src\ta_func\ta_SAREXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_SAREXT.obj ..\..\..\..\..\src\ta_func\ta_SAREXT.c + +..\..\..\..\..\temp\csd\ta_SIN.obj: ..\..\..\..\..\src\ta_func\ta_SIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_SIN.obj ..\..\..\..\..\src\ta_func\ta_SIN.c + +..\..\..\..\..\temp\csd\ta_SINH.obj: ..\..\..\..\..\src\ta_func\ta_SINH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_SINH.obj ..\..\..\..\..\src\ta_func\ta_SINH.c + +..\..\..\..\..\temp\csd\ta_SMA.obj: ..\..\..\..\..\src\ta_func\ta_SMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_SMA.obj ..\..\..\..\..\src\ta_func\ta_SMA.c + +..\..\..\..\..\temp\csd\ta_SQRT.obj: ..\..\..\..\..\src\ta_func\ta_SQRT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_SQRT.obj ..\..\..\..\..\src\ta_func\ta_SQRT.c + +..\..\..\..\..\temp\csd\ta_STDDEV.obj: ..\..\..\..\..\src\ta_func\ta_STDDEV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_STDDEV.obj ..\..\..\..\..\src\ta_func\ta_STDDEV.c + +..\..\..\..\..\temp\csd\ta_STOCH.obj: ..\..\..\..\..\src\ta_func\ta_STOCH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_STOCH.obj ..\..\..\..\..\src\ta_func\ta_STOCH.c + +..\..\..\..\..\temp\csd\ta_STOCHF.obj: ..\..\..\..\..\src\ta_func\ta_STOCHF.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_STOCHF.obj ..\..\..\..\..\src\ta_func\ta_STOCHF.c + +..\..\..\..\..\temp\csd\ta_STOCHRSI.obj: ..\..\..\..\..\src\ta_func\ta_STOCHRSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_STOCHRSI.obj ..\..\..\..\..\src\ta_func\ta_STOCHRSI.c + +..\..\..\..\..\temp\csd\ta_SUB.obj: ..\..\..\..\..\src\ta_func\ta_SUB.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_SUB.obj ..\..\..\..\..\src\ta_func\ta_SUB.c + +..\..\..\..\..\temp\csd\ta_SUM.obj: ..\..\..\..\..\src\ta_func\ta_SUM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_SUM.obj ..\..\..\..\..\src\ta_func\ta_SUM.c + +..\..\..\..\..\temp\csd\ta_T3.obj: ..\..\..\..\..\src\ta_func\ta_T3.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_T3.obj ..\..\..\..\..\src\ta_func\ta_T3.c + +..\..\..\..\..\temp\csd\ta_TAN.obj: ..\..\..\..\..\src\ta_func\ta_TAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_TAN.obj ..\..\..\..\..\src\ta_func\ta_TAN.c + +..\..\..\..\..\temp\csd\ta_TANH.obj: ..\..\..\..\..\src\ta_func\ta_TANH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_TANH.obj ..\..\..\..\..\src\ta_func\ta_TANH.c + +..\..\..\..\..\temp\csd\ta_TEMA.obj: ..\..\..\..\..\src\ta_func\ta_TEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_TEMA.obj ..\..\..\..\..\src\ta_func\ta_TEMA.c + +..\..\..\..\..\temp\csd\ta_TRANGE.obj: ..\..\..\..\..\src\ta_func\ta_TRANGE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_TRANGE.obj ..\..\..\..\..\src\ta_func\ta_TRANGE.c + +..\..\..\..\..\temp\csd\ta_TRIMA.obj: ..\..\..\..\..\src\ta_func\ta_TRIMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_TRIMA.obj ..\..\..\..\..\src\ta_func\ta_TRIMA.c + +..\..\..\..\..\temp\csd\ta_TRIX.obj: ..\..\..\..\..\src\ta_func\ta_TRIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_TRIX.obj ..\..\..\..\..\src\ta_func\ta_TRIX.c + +..\..\..\..\..\temp\csd\ta_TSF.obj: ..\..\..\..\..\src\ta_func\ta_TSF.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_TSF.obj ..\..\..\..\..\src\ta_func\ta_TSF.c + +..\..\..\..\..\temp\csd\ta_TYPPRICE.obj: ..\..\..\..\..\src\ta_func\ta_TYPPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_TYPPRICE.obj ..\..\..\..\..\src\ta_func\ta_TYPPRICE.c + +..\..\..\..\..\temp\csd\ta_ULTOSC.obj: ..\..\..\..\..\src\ta_func\ta_ULTOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_ULTOSC.obj ..\..\..\..\..\src\ta_func\ta_ULTOSC.c + +..\..\..\..\..\temp\csd\ta_VAR.obj: ..\..\..\..\..\src\ta_func\ta_VAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_VAR.obj ..\..\..\..\..\src\ta_func\ta_VAR.c + +..\..\..\..\..\temp\csd\ta_WCLPRICE.obj: ..\..\..\..\..\src\ta_func\ta_WCLPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_WCLPRICE.obj ..\..\..\..\..\src\ta_func\ta_WCLPRICE.c + +..\..\..\..\..\temp\csd\ta_WILLR.obj: ..\..\..\..\..\src\ta_func\ta_WILLR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_WILLR.obj ..\..\..\..\..\src\ta_func\ta_WILLR.c + +..\..\..\..\..\temp\csd\ta_WMA.obj: ..\..\..\..\..\src\ta_func\ta_WMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_WMA.obj ..\..\..\..\..\src\ta_func\ta_WMA.c + diff --git a/make/csd/win32/symantec/ta_regtest/Makefile b/make/csd/win32/symantec/ta_regtest/Makefile new file mode 100644 index 000000000..2a1b06da0 --- /dev/null +++ b/make/csd/win32/symantec/ta_regtest/Makefile @@ -0,0 +1,229 @@ +############################################################################# +# Makefile for building ta_regtest +# Generated by tmake; +# Project: ta_regtest/ta_regtest +# Template: app +############################################################################# + +####### Compiler, tools and options + +CC = sc +CXX = sc +CFLAGS = -mn -w2 -g -DTA_DEBUG -D_DEBUG -DTA_SINGLE_THREAD -DWIN32 +CXXFLAGS= -mn -w2 -g -DTA_DEBUG -D_DEBUG -DTA_SINGLE_THREAD -DWIN32 +INCPATH = -I"..\..\..\..\..\src\ta_common" -I"..\..\..\..\..\src\tools\ta_regtest" -I"..\..\..\..\..\src\ta_func" -I"..\..\..\..\..\include" +LINK = link +LFLAGS = /NOLOGO /NOI /DEBUG /SUBSYSTEM:console +LIBS = ..\..\..\..\..\lib\ta_libc_csd.lib +MOC = moc + +ZIP = zip -r -9 + +####### Files + +HEADERS = +SOURCES = ..\..\..\..\..\src\tools\ta_regtest\ta_regtest.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_candlestick.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_1in_1out.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_1in_2out.c \ + ..\..\..\..\..\src\tools\ta_regtest\test_internals.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_adx.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_bbands.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_ma.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_macd.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_minmax.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_mom.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_ema.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hl.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hlc.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hlcv.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_ohlc.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_po.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_rsi.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_sar.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_stddev.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_stoch.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_trange.c \ + ..\..\..\..\..\src\tools\ta_regtest\test_util.c \ + ..\..\..\..\..\src\tools\ta_regtest\test_data.c \ + ..\..\..\..\..\src\tools\ta_regtest\test_abstract.c +OBJECTS = ..\..\..\..\..\temp\csd\ta_regtest.obj \ + ..\..\..\..\..\temp\csd\test_candlestick.obj \ + ..\..\..\..\..\temp\csd\test_1in_1out.obj \ + ..\..\..\..\..\temp\csd\test_1in_2out.obj \ + ..\..\..\..\..\temp\csd\test_internals.obj \ + ..\..\..\..\..\temp\csd\test_adx.obj \ + ..\..\..\..\..\temp\csd\test_bbands.obj \ + ..\..\..\..\..\temp\csd\test_ma.obj \ + ..\..\..\..\..\temp\csd\test_macd.obj \ + ..\..\..\..\..\temp\csd\test_minmax.obj \ + ..\..\..\..\..\temp\csd\test_mom.obj \ + ..\..\..\..\..\temp\csd\test_per_ema.obj \ + ..\..\..\..\..\temp\csd\test_per_hl.obj \ + ..\..\..\..\..\temp\csd\test_per_hlc.obj \ + ..\..\..\..\..\temp\csd\test_per_hlcv.obj \ + ..\..\..\..\..\temp\csd\test_per_ohlc.obj \ + ..\..\..\..\..\temp\csd\test_po.obj \ + ..\..\..\..\..\temp\csd\test_rsi.obj \ + ..\..\..\..\..\temp\csd\test_sar.obj \ + ..\..\..\..\..\temp\csd\test_stddev.obj \ + ..\..\..\..\..\temp\csd\test_stoch.obj \ + ..\..\..\..\..\temp\csd\test_trange.obj \ + ..\..\..\..\..\temp\csd\test_util.obj \ + ..\..\..\..\..\temp\csd\test_data.obj \ + ..\..\..\..\..\temp\csd\test_abstract.obj +SRCMOC = +OBJMOC = +DIST = +TARGET = ..\..\..\..\..\bin\ta_regtest.exe + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .c + +.cpp.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.cxx.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.cc.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.c.obj: + $(CC) -c $(CFLAGS) $(INCPATH) -o$@ $< + +####### Build rules + +all: $(TARGET) + +$(TARGET): $(OBJECTS) $(OBJMOC) + $(LINK) $(LFLAGS) $(OBJECTS) $(OBJMOC), $(TARGET),, $(LIBS) + +moc: $(SRCMOC) + +tmake: ../csd/win32/symantec/ta_regtest/Makefile + +../csd/win32/symantec/ta_regtest/Makefile: ta_regtest/ta_regtest.pro + tmake ta_regtest/ta_regtest.pro -o ../csd/win32/symantec/ta_regtest/Makefile + +dist: + $(ZIP) ta_regtest/ta_regtest.zip ta_regtest/ta_regtest.pro $(SOURCES) $(HEADERS) $(DIST) + +clean: + -del ..\..\..\..\..\temp\csd\ta_regtest.obj + -del ..\..\..\..\..\temp\csd\test_candlestick.obj + -del ..\..\..\..\..\temp\csd\test_1in_1out.obj + -del ..\..\..\..\..\temp\csd\test_1in_2out.obj + -del ..\..\..\..\..\temp\csd\test_internals.obj + -del ..\..\..\..\..\temp\csd\test_adx.obj + -del ..\..\..\..\..\temp\csd\test_bbands.obj + -del ..\..\..\..\..\temp\csd\test_ma.obj + -del ..\..\..\..\..\temp\csd\test_macd.obj + -del ..\..\..\..\..\temp\csd\test_minmax.obj + -del ..\..\..\..\..\temp\csd\test_mom.obj + -del ..\..\..\..\..\temp\csd\test_per_ema.obj + -del ..\..\..\..\..\temp\csd\test_per_hl.obj + -del ..\..\..\..\..\temp\csd\test_per_hlc.obj + -del ..\..\..\..\..\temp\csd\test_per_hlcv.obj + -del ..\..\..\..\..\temp\csd\test_per_ohlc.obj + -del ..\..\..\..\..\temp\csd\test_po.obj + -del ..\..\..\..\..\temp\csd\test_rsi.obj + -del ..\..\..\..\..\temp\csd\test_sar.obj + -del ..\..\..\..\..\temp\csd\test_stddev.obj + -del ..\..\..\..\..\temp\csd\test_stoch.obj + -del ..\..\..\..\..\temp\csd\test_trange.obj + -del ..\..\..\..\..\temp\csd\test_util.obj + -del ..\..\..\..\..\temp\csd\test_data.obj + -del ..\..\..\..\..\temp\csd\test_abstract.obj + -del $(TARGET) + -del ../../../../../bin/*.map + -del ../../../../../bin/*._xe + -del ../../../../../bin/*.tds + -del ../../../../../bin/*.pdb + -del ../../../../../bin/*.pbo + -del ../../../../../bin/*.pbi + -del ../../../../../bin/*.pbt + -del ../../../../../temp/csd/*.pch + -del ../../../../../temp/csd/*.idb + -del ../../../../../temp/csd/ta_regtest/*.pch + -del ../../../../../temp/csd/ta_regtest/*.idb + -del ../../../../../temp/csd/ta_regtest/*.obj + +####### Compile + +..\..\..\..\..\temp\csd\ta_regtest.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_regtest.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\ta_regtest.obj ..\..\..\..\..\src\tools\ta_regtest\ta_regtest.c + +..\..\..\..\..\temp\csd\test_candlestick.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_candlestick.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\test_candlestick.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_candlestick.c + +..\..\..\..\..\temp\csd\test_1in_1out.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_1in_1out.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\test_1in_1out.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_1in_1out.c + +..\..\..\..\..\temp\csd\test_1in_2out.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_1in_2out.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\test_1in_2out.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_1in_2out.c + +..\..\..\..\..\temp\csd\test_internals.obj: ..\..\..\..\..\src\tools\ta_regtest\test_internals.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\test_internals.obj ..\..\..\..\..\src\tools\ta_regtest\test_internals.c + +..\..\..\..\..\temp\csd\test_adx.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_adx.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\test_adx.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_adx.c + +..\..\..\..\..\temp\csd\test_bbands.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_bbands.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\test_bbands.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_bbands.c + +..\..\..\..\..\temp\csd\test_ma.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_ma.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\test_ma.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_ma.c + +..\..\..\..\..\temp\csd\test_macd.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_macd.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\test_macd.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_macd.c + +..\..\..\..\..\temp\csd\test_minmax.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_minmax.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\test_minmax.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_minmax.c + +..\..\..\..\..\temp\csd\test_mom.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_mom.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\test_mom.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_mom.c + +..\..\..\..\..\temp\csd\test_per_ema.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_ema.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\test_per_ema.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_ema.c + +..\..\..\..\..\temp\csd\test_per_hl.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hl.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\test_per_hl.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hl.c + +..\..\..\..\..\temp\csd\test_per_hlc.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hlc.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\test_per_hlc.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hlc.c + +..\..\..\..\..\temp\csd\test_per_hlcv.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hlcv.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\test_per_hlcv.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hlcv.c + +..\..\..\..\..\temp\csd\test_per_ohlc.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_ohlc.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\test_per_ohlc.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_ohlc.c + +..\..\..\..\..\temp\csd\test_po.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_po.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\test_po.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_po.c + +..\..\..\..\..\temp\csd\test_rsi.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_rsi.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\test_rsi.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_rsi.c + +..\..\..\..\..\temp\csd\test_sar.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_sar.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\test_sar.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_sar.c + +..\..\..\..\..\temp\csd\test_stddev.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_stddev.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\test_stddev.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_stddev.c + +..\..\..\..\..\temp\csd\test_stoch.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_stoch.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\test_stoch.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_stoch.c + +..\..\..\..\..\temp\csd\test_trange.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_trange.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\test_trange.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_trange.c + +..\..\..\..\..\temp\csd\test_util.obj: ..\..\..\..\..\src\tools\ta_regtest\test_util.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\test_util.obj ..\..\..\..\..\src\tools\ta_regtest\test_util.c + +..\..\..\..\..\temp\csd\test_data.obj: ..\..\..\..\..\src\tools\ta_regtest\test_data.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\test_data.obj ..\..\..\..\..\src\tools\ta_regtest\test_data.c + +..\..\..\..\..\temp\csd\test_abstract.obj: ..\..\..\..\..\src\tools\ta_regtest\test_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csd\test_abstract.obj ..\..\..\..\..\src\tools\ta_regtest\test_abstract.c + diff --git a/make/csd/win32/watcom/Makefile b/make/csd/win32/watcom/Makefile new file mode 100644 index 000000000..37e08bee6 --- /dev/null +++ b/make/csd/win32/watcom/Makefile @@ -0,0 +1,97 @@ +############################################################################# +# Makefile for building targets in sub directories. +# Generated by tmake; +# Project: rootmake +# Template: subdirs +############################################################################# + +MAKEFILE= Makefile +TMAKE = tmake + +SUBDIRS = ta_common \ + ta_func \ + ta_abstract \ + ta_libc \ + gen_code \ + ta_regtest + +all: $(SUBDIRS) + +ta_common: FORCE + cd ta_common + $(MAKE) + @cd .. + +ta_func: FORCE + cd ta_func + $(MAKE) + @cd .. + +ta_abstract: FORCE + cd ta_abstract + $(MAKE) + @cd .. + +ta_libc: FORCE + cd ta_libc + $(MAKE) + @cd .. + +gen_code: FORCE + cd gen_code + $(MAKE) + @cd .. + +ta_regtest: FORCE + cd ta_regtest + $(MAKE) + @cd .. + + +tmake: ../csd/win32/watcom/Makefile + +../csd/win32/watcom/Makefile: rootmake.pro + tmake rootmake.pro -o ../csd/win32/watcom/Makefile + +tmake_all: + cd ta_common + $(TMAKE) ta_common.pro -o $(MAKEFILE) + @cd .. + cd ta_func + $(TMAKE) ta_func.pro -o $(MAKEFILE) + @cd .. + cd ta_abstract + $(TMAKE) ta_abstract.pro -o $(MAKEFILE) + @cd .. + cd ta_libc + $(TMAKE) ta_libc.pro -o $(MAKEFILE) + @cd .. + cd gen_code + $(TMAKE) gen_code.pro -o $(MAKEFILE) + @cd .. + cd ta_regtest + $(TMAKE) ta_regtest.pro -o $(MAKEFILE) + @cd .. + + +clean: + cd ta_common + $(MAKE) clean + @cd .. + cd ta_func + $(MAKE) clean + @cd .. + cd ta_abstract + $(MAKE) clean + @cd .. + cd ta_libc + $(MAKE) clean + @cd .. + cd gen_code + $(MAKE) clean + @cd .. + cd ta_regtest + $(MAKE) clean + @cd .. + +FORCE: diff --git a/make/csd/win32/watcom/gen_code/Makefile b/make/csd/win32/watcom/gen_code/Makefile new file mode 100644 index 000000000..16a31235f --- /dev/null +++ b/make/csd/win32/watcom/gen_code/Makefile @@ -0,0 +1,243 @@ +############################################################################# +# Makefile for building gen_code +# Generated by tmake; +# Project: gen_code/gen_code +# Template: app +############################################################################# + +####### Compiler, tools and options + +CC = wcl386 +CXX = wcl386 +CFLAGS = -zq -w2 -d2 -d=TA_GEN_CODE -d=TA_DEBUG -d=_DEBUG -d=TA_SINGLE_THREAD -d=WIN32 +CXXFLAGS= -zq -w2 -d2 -d=TA_GEN_CODE -d=TA_DEBUG -d=_DEBUG -d=TA_SINGLE_THREAD -d=WIN32 +INCPATH = -i="..\..\..\..\..\include" -i="..\..\..\..\..\src\ta_common" -i="..\..\..\..\..\src\ta_abstract" -i="..\..\..\..\..\src\ta_abstract\tables" -i="..\..\..\..\..\src\ta_abstract\frames" +LINK = wlink +LFLAGS = op quiet op c d all sys nt +LIBS = ..\..\..\..\..\lib\ta_common_csd.lib +MOC = moc + +ZIP = zip -r -9 + +####### Files + +HEADERS = +SOURCES = ..\..\..\..\..\src\tools\gen_code\gen_code.c & + ..\..\..\..\..\src\ta_abstract\ta_abstract.c & + ..\..\..\..\..\src\ta_abstract\ta_def_ui.c & + ..\..\..\..\..\src\ta_abstract\tables\table_a.c & + ..\..\..\..\..\src\ta_abstract\tables\table_b.c & + ..\..\..\..\..\src\ta_abstract\tables\table_c.c & + ..\..\..\..\..\src\ta_abstract\tables\table_d.c & + ..\..\..\..\..\src\ta_abstract\tables\table_e.c & + ..\..\..\..\..\src\ta_abstract\tables\table_f.c & + ..\..\..\..\..\src\ta_abstract\tables\table_g.c & + ..\..\..\..\..\src\ta_abstract\tables\table_h.c & + ..\..\..\..\..\src\ta_abstract\tables\table_i.c & + ..\..\..\..\..\src\ta_abstract\tables\table_j.c & + ..\..\..\..\..\src\ta_abstract\tables\table_k.c & + ..\..\..\..\..\src\ta_abstract\tables\table_l.c & + ..\..\..\..\..\src\ta_abstract\tables\table_m.c & + ..\..\..\..\..\src\ta_abstract\tables\table_n.c & + ..\..\..\..\..\src\ta_abstract\tables\table_o.c & + ..\..\..\..\..\src\ta_abstract\tables\table_p.c & + ..\..\..\..\..\src\ta_abstract\tables\table_q.c & + ..\..\..\..\..\src\ta_abstract\tables\table_r.c & + ..\..\..\..\..\src\ta_abstract\tables\table_s.c & + ..\..\..\..\..\src\ta_abstract\tables\table_t.c & + ..\..\..\..\..\src\ta_abstract\tables\table_u.c & + ..\..\..\..\..\src\ta_abstract\tables\table_v.c & + ..\..\..\..\..\src\ta_abstract\tables\table_w.c & + ..\..\..\..\..\src\ta_abstract\tables\table_x.c & + ..\..\..\..\..\src\ta_abstract\tables\table_y.c & + ..\..\..\..\..\src\ta_abstract\tables\table_z.c +OBJECTS = ..\..\..\..\..\temp\csd\gen_code\gen_code.obj & + ..\..\..\..\..\temp\csd\gen_code\ta_abstract.obj & + ..\..\..\..\..\temp\csd\gen_code\ta_def_ui.obj & + ..\..\..\..\..\temp\csd\gen_code\table_a.obj & + ..\..\..\..\..\temp\csd\gen_code\table_b.obj & + ..\..\..\..\..\temp\csd\gen_code\table_c.obj & + ..\..\..\..\..\temp\csd\gen_code\table_d.obj & + ..\..\..\..\..\temp\csd\gen_code\table_e.obj & + ..\..\..\..\..\temp\csd\gen_code\table_f.obj & + ..\..\..\..\..\temp\csd\gen_code\table_g.obj & + ..\..\..\..\..\temp\csd\gen_code\table_h.obj & + ..\..\..\..\..\temp\csd\gen_code\table_i.obj & + ..\..\..\..\..\temp\csd\gen_code\table_j.obj & + ..\..\..\..\..\temp\csd\gen_code\table_k.obj & + ..\..\..\..\..\temp\csd\gen_code\table_l.obj & + ..\..\..\..\..\temp\csd\gen_code\table_m.obj & + ..\..\..\..\..\temp\csd\gen_code\table_n.obj & + ..\..\..\..\..\temp\csd\gen_code\table_o.obj & + ..\..\..\..\..\temp\csd\gen_code\table_p.obj & + ..\..\..\..\..\temp\csd\gen_code\table_q.obj & + ..\..\..\..\..\temp\csd\gen_code\table_r.obj & + ..\..\..\..\..\temp\csd\gen_code\table_s.obj & + ..\..\..\..\..\temp\csd\gen_code\table_t.obj & + ..\..\..\..\..\temp\csd\gen_code\table_u.obj & + ..\..\..\..\..\temp\csd\gen_code\table_v.obj & + ..\..\..\..\..\temp\csd\gen_code\table_w.obj & + ..\..\..\..\..\temp\csd\gen_code\table_x.obj & + ..\..\..\..\..\temp\csd\gen_code\table_y.obj & + ..\..\..\..\..\temp\csd\gen_code\table_z.obj +SRCMOC = +OBJMOC = +DIST = +TARGET = ..\..\..\..\..\bin\gen_code.exe +TMPLIST = gen_code.lst + +####### Build rules + +all: $(TARGET) + +$(TARGET): $(OBJECTS) $(OBJMOC) + @%create $(TMPLIST) + @%append $(TMPLIST) NAME gen_code + @%append $(TMPLIST) FIL ..\..\..\..\..\temp\csd\gen_code\gen_code.obj,..\..\..\..\..\temp\csd\gen_code\ta_abstract.obj,..\..\..\..\..\temp\csd\gen_code\ta_def_ui.obj,..\..\..\..\..\temp\csd\gen_code\table_a.obj,..\..\..\..\..\temp\csd\gen_code\table_b.obj,..\..\..\..\..\temp\csd\gen_code\table_c.obj,..\..\..\..\..\temp\csd\gen_code\table_d.obj,..\..\..\..\..\temp\csd\gen_code\table_e.obj,..\..\..\..\..\temp\csd\gen_code\table_f.obj,..\..\..\..\..\temp\csd\gen_code\table_g.obj,..\..\..\..\..\temp\csd\gen_code\table_h.obj,..\..\..\..\..\temp\csd\gen_code\table_i.obj,..\..\..\..\..\temp\csd\gen_code\table_j.obj,..\..\..\..\..\temp\csd\gen_code\table_k.obj,..\..\..\..\..\temp\csd\gen_code\table_l.obj,..\..\..\..\..\temp\csd\gen_code\table_m.obj,..\..\..\..\..\temp\csd\gen_code\table_n.obj,..\..\..\..\..\temp\csd\gen_code\table_o.obj,..\..\..\..\..\temp\csd\gen_code\table_p.obj,..\..\..\..\..\temp\csd\gen_code\table_q.obj,..\..\..\..\..\temp\csd\gen_code\table_r.obj,..\..\..\..\..\temp\csd\gen_code\table_s.obj,..\..\..\..\..\temp\csd\gen_code\table_t.obj,..\..\..\..\..\temp\csd\gen_code\table_u.obj,..\..\..\..\..\temp\csd\gen_code\table_v.obj,..\..\..\..\..\temp\csd\gen_code\table_w.obj,..\..\..\..\..\temp\csd\gen_code\table_x.obj,..\..\..\..\..\temp\csd\gen_code\table_y.obj,..\..\..\..\..\temp\csd\gen_code\table_z.obj + @%append $(TMPLIST) LIBR ..\..\..\..\..\lib\ta_common_csd.lib + $(LINK) $(LFLAGS) @$(TMPLIST) + del $(TMPLIST) + +moc: $(SRCMOC) + +tmake: ../csd/win32/watcom/gen_code/Makefile + +../csd/win32/watcom/gen_code/Makefile: gen_code/gen_code.pro + tmake gen_code/gen_code.pro -o ../csd/win32/watcom/gen_code/Makefile + +dist: + $(ZIP) gen_code/gen_code.zip gen_code/gen_code.pro $(SOURCES) $(HEADERS) $(DIST) + +clean: + -del ..\..\..\..\..\temp\csd\gen_code\gen_code.obj + -del ..\..\..\..\..\temp\csd\gen_code\ta_abstract.obj + -del ..\..\..\..\..\temp\csd\gen_code\ta_def_ui.obj + -del ..\..\..\..\..\temp\csd\gen_code\table_a.obj + -del ..\..\..\..\..\temp\csd\gen_code\table_b.obj + -del ..\..\..\..\..\temp\csd\gen_code\table_c.obj + -del ..\..\..\..\..\temp\csd\gen_code\table_d.obj + -del ..\..\..\..\..\temp\csd\gen_code\table_e.obj + -del ..\..\..\..\..\temp\csd\gen_code\table_f.obj + -del ..\..\..\..\..\temp\csd\gen_code\table_g.obj + -del ..\..\..\..\..\temp\csd\gen_code\table_h.obj + -del ..\..\..\..\..\temp\csd\gen_code\table_i.obj + -del ..\..\..\..\..\temp\csd\gen_code\table_j.obj + -del ..\..\..\..\..\temp\csd\gen_code\table_k.obj + -del ..\..\..\..\..\temp\csd\gen_code\table_l.obj + -del ..\..\..\..\..\temp\csd\gen_code\table_m.obj + -del ..\..\..\..\..\temp\csd\gen_code\table_n.obj + -del ..\..\..\..\..\temp\csd\gen_code\table_o.obj + -del ..\..\..\..\..\temp\csd\gen_code\table_p.obj + -del ..\..\..\..\..\temp\csd\gen_code\table_q.obj + -del ..\..\..\..\..\temp\csd\gen_code\table_r.obj + -del ..\..\..\..\..\temp\csd\gen_code\table_s.obj + -del ..\..\..\..\..\temp\csd\gen_code\table_t.obj + -del ..\..\..\..\..\temp\csd\gen_code\table_u.obj + -del ..\..\..\..\..\temp\csd\gen_code\table_v.obj + -del ..\..\..\..\..\temp\csd\gen_code\table_w.obj + -del ..\..\..\..\..\temp\csd\gen_code\table_x.obj + -del ..\..\..\..\..\temp\csd\gen_code\table_y.obj + -del ..\..\..\..\..\temp\csd\gen_code\table_z.obj + -del $(TARGET) + -del ../../../../../bin/*.map + -del ../../../../../bin/*._xe + -del ../../../../../bin/*.tds + -del ../../../../../bin/*.pdb + -del ../../../../../bin/*.pbo + -del ../../../../../bin/*.pbi + -del ../../../../../bin/*.pbt + -del ../../../../../temp/csd/*.pch + -del ../../../../../temp/csd/*.idb + -del ../../../../../temp/csd/gen_code/*.pch + -del ../../../../../temp/csd/gen_code/*.idb + -del ../../../../../temp/csd/gen_code/*.obj + +####### Compile + +..\..\..\..\..\temp\csd\gen_code\gen_code.obj: ..\..\..\..\..\src\tools\gen_code\gen_code.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\gen_code\gen_code.obj ..\..\..\..\..\src\tools\gen_code\gen_code.c + +..\..\..\..\..\temp\csd\gen_code\ta_abstract.obj: ..\..\..\..\..\src\ta_abstract\ta_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\gen_code\ta_abstract.obj ..\..\..\..\..\src\ta_abstract\ta_abstract.c + +..\..\..\..\..\temp\csd\gen_code\ta_def_ui.obj: ..\..\..\..\..\src\ta_abstract\ta_def_ui.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\gen_code\ta_def_ui.obj ..\..\..\..\..\src\ta_abstract\ta_def_ui.c + +..\..\..\..\..\temp\csd\gen_code\table_a.obj: ..\..\..\..\..\src\ta_abstract\tables\table_a.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\gen_code\table_a.obj ..\..\..\..\..\src\ta_abstract\tables\table_a.c + +..\..\..\..\..\temp\csd\gen_code\table_b.obj: ..\..\..\..\..\src\ta_abstract\tables\table_b.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\gen_code\table_b.obj ..\..\..\..\..\src\ta_abstract\tables\table_b.c + +..\..\..\..\..\temp\csd\gen_code\table_c.obj: ..\..\..\..\..\src\ta_abstract\tables\table_c.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\gen_code\table_c.obj ..\..\..\..\..\src\ta_abstract\tables\table_c.c + +..\..\..\..\..\temp\csd\gen_code\table_d.obj: ..\..\..\..\..\src\ta_abstract\tables\table_d.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\gen_code\table_d.obj ..\..\..\..\..\src\ta_abstract\tables\table_d.c + +..\..\..\..\..\temp\csd\gen_code\table_e.obj: ..\..\..\..\..\src\ta_abstract\tables\table_e.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\gen_code\table_e.obj ..\..\..\..\..\src\ta_abstract\tables\table_e.c + +..\..\..\..\..\temp\csd\gen_code\table_f.obj: ..\..\..\..\..\src\ta_abstract\tables\table_f.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\gen_code\table_f.obj ..\..\..\..\..\src\ta_abstract\tables\table_f.c + +..\..\..\..\..\temp\csd\gen_code\table_g.obj: ..\..\..\..\..\src\ta_abstract\tables\table_g.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\gen_code\table_g.obj ..\..\..\..\..\src\ta_abstract\tables\table_g.c + +..\..\..\..\..\temp\csd\gen_code\table_h.obj: ..\..\..\..\..\src\ta_abstract\tables\table_h.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\gen_code\table_h.obj ..\..\..\..\..\src\ta_abstract\tables\table_h.c + +..\..\..\..\..\temp\csd\gen_code\table_i.obj: ..\..\..\..\..\src\ta_abstract\tables\table_i.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\gen_code\table_i.obj ..\..\..\..\..\src\ta_abstract\tables\table_i.c + +..\..\..\..\..\temp\csd\gen_code\table_j.obj: ..\..\..\..\..\src\ta_abstract\tables\table_j.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\gen_code\table_j.obj ..\..\..\..\..\src\ta_abstract\tables\table_j.c + +..\..\..\..\..\temp\csd\gen_code\table_k.obj: ..\..\..\..\..\src\ta_abstract\tables\table_k.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\gen_code\table_k.obj ..\..\..\..\..\src\ta_abstract\tables\table_k.c + +..\..\..\..\..\temp\csd\gen_code\table_l.obj: ..\..\..\..\..\src\ta_abstract\tables\table_l.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\gen_code\table_l.obj ..\..\..\..\..\src\ta_abstract\tables\table_l.c + +..\..\..\..\..\temp\csd\gen_code\table_m.obj: ..\..\..\..\..\src\ta_abstract\tables\table_m.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\gen_code\table_m.obj ..\..\..\..\..\src\ta_abstract\tables\table_m.c + +..\..\..\..\..\temp\csd\gen_code\table_n.obj: ..\..\..\..\..\src\ta_abstract\tables\table_n.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\gen_code\table_n.obj ..\..\..\..\..\src\ta_abstract\tables\table_n.c + +..\..\..\..\..\temp\csd\gen_code\table_o.obj: ..\..\..\..\..\src\ta_abstract\tables\table_o.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\gen_code\table_o.obj ..\..\..\..\..\src\ta_abstract\tables\table_o.c + +..\..\..\..\..\temp\csd\gen_code\table_p.obj: ..\..\..\..\..\src\ta_abstract\tables\table_p.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\gen_code\table_p.obj ..\..\..\..\..\src\ta_abstract\tables\table_p.c + +..\..\..\..\..\temp\csd\gen_code\table_q.obj: ..\..\..\..\..\src\ta_abstract\tables\table_q.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\gen_code\table_q.obj ..\..\..\..\..\src\ta_abstract\tables\table_q.c + +..\..\..\..\..\temp\csd\gen_code\table_r.obj: ..\..\..\..\..\src\ta_abstract\tables\table_r.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\gen_code\table_r.obj ..\..\..\..\..\src\ta_abstract\tables\table_r.c + +..\..\..\..\..\temp\csd\gen_code\table_s.obj: ..\..\..\..\..\src\ta_abstract\tables\table_s.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\gen_code\table_s.obj ..\..\..\..\..\src\ta_abstract\tables\table_s.c + +..\..\..\..\..\temp\csd\gen_code\table_t.obj: ..\..\..\..\..\src\ta_abstract\tables\table_t.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\gen_code\table_t.obj ..\..\..\..\..\src\ta_abstract\tables\table_t.c + +..\..\..\..\..\temp\csd\gen_code\table_u.obj: ..\..\..\..\..\src\ta_abstract\tables\table_u.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\gen_code\table_u.obj ..\..\..\..\..\src\ta_abstract\tables\table_u.c + +..\..\..\..\..\temp\csd\gen_code\table_v.obj: ..\..\..\..\..\src\ta_abstract\tables\table_v.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\gen_code\table_v.obj ..\..\..\..\..\src\ta_abstract\tables\table_v.c + +..\..\..\..\..\temp\csd\gen_code\table_w.obj: ..\..\..\..\..\src\ta_abstract\tables\table_w.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\gen_code\table_w.obj ..\..\..\..\..\src\ta_abstract\tables\table_w.c + +..\..\..\..\..\temp\csd\gen_code\table_x.obj: ..\..\..\..\..\src\ta_abstract\tables\table_x.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\gen_code\table_x.obj ..\..\..\..\..\src\ta_abstract\tables\table_x.c + +..\..\..\..\..\temp\csd\gen_code\table_y.obj: ..\..\..\..\..\src\ta_abstract\tables\table_y.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\gen_code\table_y.obj ..\..\..\..\..\src\ta_abstract\tables\table_y.c + +..\..\..\..\..\temp\csd\gen_code\table_z.obj: ..\..\..\..\..\src\ta_abstract\tables\table_z.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\gen_code\table_z.obj ..\..\..\..\..\src\ta_abstract\tables\table_z.c + diff --git a/make/csd/win32/watcom/ta_abstract/Makefile b/make/csd/win32/watcom/ta_abstract/Makefile new file mode 100644 index 000000000..a69ee4899 --- /dev/null +++ b/make/csd/win32/watcom/ta_abstract/Makefile @@ -0,0 +1,251 @@ +############################################################################# +# Makefile for building ta_abstract_csd +# Generated by tmake; +# Project: ta_abstract/ta_abstract +# Template: lib +############################################################################# + +####### Compiler, tools and options + +CC = wcl386 +CXX = wcl386 +CFLAGS = -zq -w2 -d2 -d=TA_DEBUG -d=_DEBUG -d=TA_SINGLE_THREAD -d=WIN32 +CXXFLAGS= -zq -w2 -d2 -d=TA_DEBUG -d=_DEBUG -d=TA_SINGLE_THREAD -d=WIN32 +INCPATH = -i="..\..\..\..\..\src\ta_common" -i="..\..\..\..\..\src\ta_abstract" -i="..\..\..\..\..\src\ta_abstract\tables" -i="..\..\..\..\..\src\ta_abstract\frames" -i="..\..\..\..\..\include" +LIB = wlib -b -c -n -q -p=512 +MOC = moc + +ZIP = zip -r -9 + +####### Files + +HEADERS = +SOURCES = ..\..\..\..\..\src\ta_abstract\ta_abstract.c & + ..\..\..\..\..\src\ta_abstract\ta_def_ui.c & + ..\..\..\..\..\src\ta_abstract\ta_func_api.c & + ..\..\..\..\..\src\ta_abstract\ta_group_idx.c & + ..\..\..\..\..\src\ta_abstract\frames\ta_frame.c & + ..\..\..\..\..\src\ta_abstract\tables\table_a.c & + ..\..\..\..\..\src\ta_abstract\tables\table_b.c & + ..\..\..\..\..\src\ta_abstract\tables\table_c.c & + ..\..\..\..\..\src\ta_abstract\tables\table_d.c & + ..\..\..\..\..\src\ta_abstract\tables\table_e.c & + ..\..\..\..\..\src\ta_abstract\tables\table_f.c & + ..\..\..\..\..\src\ta_abstract\tables\table_g.c & + ..\..\..\..\..\src\ta_abstract\tables\table_h.c & + ..\..\..\..\..\src\ta_abstract\tables\table_i.c & + ..\..\..\..\..\src\ta_abstract\tables\table_j.c & + ..\..\..\..\..\src\ta_abstract\tables\table_k.c & + ..\..\..\..\..\src\ta_abstract\tables\table_l.c & + ..\..\..\..\..\src\ta_abstract\tables\table_m.c & + ..\..\..\..\..\src\ta_abstract\tables\table_n.c & + ..\..\..\..\..\src\ta_abstract\tables\table_o.c & + ..\..\..\..\..\src\ta_abstract\tables\table_p.c & + ..\..\..\..\..\src\ta_abstract\tables\table_q.c & + ..\..\..\..\..\src\ta_abstract\tables\table_r.c & + ..\..\..\..\..\src\ta_abstract\tables\table_s.c & + ..\..\..\..\..\src\ta_abstract\tables\table_t.c & + ..\..\..\..\..\src\ta_abstract\tables\table_u.c & + ..\..\..\..\..\src\ta_abstract\tables\table_v.c & + ..\..\..\..\..\src\ta_abstract\tables\table_w.c & + ..\..\..\..\..\src\ta_abstract\tables\table_x.c & + ..\..\..\..\..\src\ta_abstract\tables\table_y.c & + ..\..\..\..\..\src\ta_abstract\tables\table_z.c +OBJECTS = ..\..\..\..\..\temp\csd\ta_abstract.obj & + ..\..\..\..\..\temp\csd\ta_def_ui.obj & + ..\..\..\..\..\temp\csd\ta_func_api.obj & + ..\..\..\..\..\temp\csd\ta_group_idx.obj & + ..\..\..\..\..\temp\csd\ta_frame.obj & + ..\..\..\..\..\temp\csd\table_a.obj & + ..\..\..\..\..\temp\csd\table_b.obj & + ..\..\..\..\..\temp\csd\table_c.obj & + ..\..\..\..\..\temp\csd\table_d.obj & + ..\..\..\..\..\temp\csd\table_e.obj & + ..\..\..\..\..\temp\csd\table_f.obj & + ..\..\..\..\..\temp\csd\table_g.obj & + ..\..\..\..\..\temp\csd\table_h.obj & + ..\..\..\..\..\temp\csd\table_i.obj & + ..\..\..\..\..\temp\csd\table_j.obj & + ..\..\..\..\..\temp\csd\table_k.obj & + ..\..\..\..\..\temp\csd\table_l.obj & + ..\..\..\..\..\temp\csd\table_m.obj & + ..\..\..\..\..\temp\csd\table_n.obj & + ..\..\..\..\..\temp\csd\table_o.obj & + ..\..\..\..\..\temp\csd\table_p.obj & + ..\..\..\..\..\temp\csd\table_q.obj & + ..\..\..\..\..\temp\csd\table_r.obj & + ..\..\..\..\..\temp\csd\table_s.obj & + ..\..\..\..\..\temp\csd\table_t.obj & + ..\..\..\..\..\temp\csd\table_u.obj & + ..\..\..\..\..\temp\csd\table_v.obj & + ..\..\..\..\..\temp\csd\table_w.obj & + ..\..\..\..\..\temp\csd\table_x.obj & + ..\..\..\..\..\temp\csd\table_y.obj & + ..\..\..\..\..\temp\csd\table_z.obj +SRCMOC = +OBJMOC = +DIST = +TARGET = ..\..\..\..\..\lib\ta_abstract_csd.lib +TMPLIST = ta_abstract_csd.lst + +####### Build rules + +all: $(TARGET) + +$(TARGET): $(OBJECTS) $(OBJMOC) + @%create $(TMPLIST) + @for %i in ( $(OBJECTS) $(OBJMOC) ) do @%append $(TMPLIST) +'%i' + $(LIB) $(TARGET) @$(TMPLIST) + del $(TMPLIST) + +moc: $(SRCMOC) + +tmake: ../csd/win32/watcom/ta_abstract/Makefile + +../csd/win32/watcom/ta_abstract/Makefile: ta_abstract/ta_abstract.pro + tmake ta_abstract/ta_abstract.pro -o ../csd/win32/watcom/ta_abstract/Makefile + +dist: + $(ZIP) ta_abstract/ta_abstract.zip ta_abstract/ta_abstract.pro $(SOURCES) $(HEADERS) $(DIST) + +clean: + -del ..\..\..\..\..\temp\csd\ta_abstract.obj + -del ..\..\..\..\..\temp\csd\ta_def_ui.obj + -del ..\..\..\..\..\temp\csd\ta_func_api.obj + -del ..\..\..\..\..\temp\csd\ta_group_idx.obj + -del ..\..\..\..\..\temp\csd\ta_frame.obj + -del ..\..\..\..\..\temp\csd\table_a.obj + -del ..\..\..\..\..\temp\csd\table_b.obj + -del ..\..\..\..\..\temp\csd\table_c.obj + -del ..\..\..\..\..\temp\csd\table_d.obj + -del ..\..\..\..\..\temp\csd\table_e.obj + -del ..\..\..\..\..\temp\csd\table_f.obj + -del ..\..\..\..\..\temp\csd\table_g.obj + -del ..\..\..\..\..\temp\csd\table_h.obj + -del ..\..\..\..\..\temp\csd\table_i.obj + -del ..\..\..\..\..\temp\csd\table_j.obj + -del ..\..\..\..\..\temp\csd\table_k.obj + -del ..\..\..\..\..\temp\csd\table_l.obj + -del ..\..\..\..\..\temp\csd\table_m.obj + -del ..\..\..\..\..\temp\csd\table_n.obj + -del ..\..\..\..\..\temp\csd\table_o.obj + -del ..\..\..\..\..\temp\csd\table_p.obj + -del ..\..\..\..\..\temp\csd\table_q.obj + -del ..\..\..\..\..\temp\csd\table_r.obj + -del ..\..\..\..\..\temp\csd\table_s.obj + -del ..\..\..\..\..\temp\csd\table_t.obj + -del ..\..\..\..\..\temp\csd\table_u.obj + -del ..\..\..\..\..\temp\csd\table_v.obj + -del ..\..\..\..\..\temp\csd\table_w.obj + -del ..\..\..\..\..\temp\csd\table_x.obj + -del ..\..\..\..\..\temp\csd\table_y.obj + -del ..\..\..\..\..\temp\csd\table_z.obj + -del $(TARGET) + -del ../../../../../bin/*.map + -del ../../../../../bin/*._xe + -del ../../../../../bin/*.tds + -del ../../../../../bin/*.pdb + -del ../../../../../bin/*.pbo + -del ../../../../../bin/*.pbi + -del ../../../../../bin/*.pbt + -del ../../../../../temp/csd/*.pch + -del ../../../../../temp/csd/*.idb + -del ../../../../../temp/csd/ta_abstract/*.pch + -del ../../../../../temp/csd/ta_abstract/*.idb + -del ../../../../../temp/csd/ta_abstract/*.obj + +####### Compile + +..\..\..\..\..\temp\csd\ta_abstract.obj: ..\..\..\..\..\src\ta_abstract\ta_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_abstract.obj ..\..\..\..\..\src\ta_abstract\ta_abstract.c + +..\..\..\..\..\temp\csd\ta_def_ui.obj: ..\..\..\..\..\src\ta_abstract\ta_def_ui.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_def_ui.obj ..\..\..\..\..\src\ta_abstract\ta_def_ui.c + +..\..\..\..\..\temp\csd\ta_func_api.obj: ..\..\..\..\..\src\ta_abstract\ta_func_api.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_func_api.obj ..\..\..\..\..\src\ta_abstract\ta_func_api.c + +..\..\..\..\..\temp\csd\ta_group_idx.obj: ..\..\..\..\..\src\ta_abstract\ta_group_idx.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_group_idx.obj ..\..\..\..\..\src\ta_abstract\ta_group_idx.c + +..\..\..\..\..\temp\csd\ta_frame.obj: ..\..\..\..\..\src\ta_abstract\frames\ta_frame.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_frame.obj ..\..\..\..\..\src\ta_abstract\frames\ta_frame.c + +..\..\..\..\..\temp\csd\table_a.obj: ..\..\..\..\..\src\ta_abstract\tables\table_a.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\table_a.obj ..\..\..\..\..\src\ta_abstract\tables\table_a.c + +..\..\..\..\..\temp\csd\table_b.obj: ..\..\..\..\..\src\ta_abstract\tables\table_b.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\table_b.obj ..\..\..\..\..\src\ta_abstract\tables\table_b.c + +..\..\..\..\..\temp\csd\table_c.obj: ..\..\..\..\..\src\ta_abstract\tables\table_c.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\table_c.obj ..\..\..\..\..\src\ta_abstract\tables\table_c.c + +..\..\..\..\..\temp\csd\table_d.obj: ..\..\..\..\..\src\ta_abstract\tables\table_d.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\table_d.obj ..\..\..\..\..\src\ta_abstract\tables\table_d.c + +..\..\..\..\..\temp\csd\table_e.obj: ..\..\..\..\..\src\ta_abstract\tables\table_e.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\table_e.obj ..\..\..\..\..\src\ta_abstract\tables\table_e.c + +..\..\..\..\..\temp\csd\table_f.obj: ..\..\..\..\..\src\ta_abstract\tables\table_f.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\table_f.obj ..\..\..\..\..\src\ta_abstract\tables\table_f.c + +..\..\..\..\..\temp\csd\table_g.obj: ..\..\..\..\..\src\ta_abstract\tables\table_g.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\table_g.obj ..\..\..\..\..\src\ta_abstract\tables\table_g.c + +..\..\..\..\..\temp\csd\table_h.obj: ..\..\..\..\..\src\ta_abstract\tables\table_h.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\table_h.obj ..\..\..\..\..\src\ta_abstract\tables\table_h.c + +..\..\..\..\..\temp\csd\table_i.obj: ..\..\..\..\..\src\ta_abstract\tables\table_i.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\table_i.obj ..\..\..\..\..\src\ta_abstract\tables\table_i.c + +..\..\..\..\..\temp\csd\table_j.obj: ..\..\..\..\..\src\ta_abstract\tables\table_j.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\table_j.obj ..\..\..\..\..\src\ta_abstract\tables\table_j.c + +..\..\..\..\..\temp\csd\table_k.obj: ..\..\..\..\..\src\ta_abstract\tables\table_k.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\table_k.obj ..\..\..\..\..\src\ta_abstract\tables\table_k.c + +..\..\..\..\..\temp\csd\table_l.obj: ..\..\..\..\..\src\ta_abstract\tables\table_l.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\table_l.obj ..\..\..\..\..\src\ta_abstract\tables\table_l.c + +..\..\..\..\..\temp\csd\table_m.obj: ..\..\..\..\..\src\ta_abstract\tables\table_m.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\table_m.obj ..\..\..\..\..\src\ta_abstract\tables\table_m.c + +..\..\..\..\..\temp\csd\table_n.obj: ..\..\..\..\..\src\ta_abstract\tables\table_n.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\table_n.obj ..\..\..\..\..\src\ta_abstract\tables\table_n.c + +..\..\..\..\..\temp\csd\table_o.obj: ..\..\..\..\..\src\ta_abstract\tables\table_o.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\table_o.obj ..\..\..\..\..\src\ta_abstract\tables\table_o.c + +..\..\..\..\..\temp\csd\table_p.obj: ..\..\..\..\..\src\ta_abstract\tables\table_p.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\table_p.obj ..\..\..\..\..\src\ta_abstract\tables\table_p.c + +..\..\..\..\..\temp\csd\table_q.obj: ..\..\..\..\..\src\ta_abstract\tables\table_q.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\table_q.obj ..\..\..\..\..\src\ta_abstract\tables\table_q.c + +..\..\..\..\..\temp\csd\table_r.obj: ..\..\..\..\..\src\ta_abstract\tables\table_r.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\table_r.obj ..\..\..\..\..\src\ta_abstract\tables\table_r.c + +..\..\..\..\..\temp\csd\table_s.obj: ..\..\..\..\..\src\ta_abstract\tables\table_s.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\table_s.obj ..\..\..\..\..\src\ta_abstract\tables\table_s.c + +..\..\..\..\..\temp\csd\table_t.obj: ..\..\..\..\..\src\ta_abstract\tables\table_t.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\table_t.obj ..\..\..\..\..\src\ta_abstract\tables\table_t.c + +..\..\..\..\..\temp\csd\table_u.obj: ..\..\..\..\..\src\ta_abstract\tables\table_u.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\table_u.obj ..\..\..\..\..\src\ta_abstract\tables\table_u.c + +..\..\..\..\..\temp\csd\table_v.obj: ..\..\..\..\..\src\ta_abstract\tables\table_v.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\table_v.obj ..\..\..\..\..\src\ta_abstract\tables\table_v.c + +..\..\..\..\..\temp\csd\table_w.obj: ..\..\..\..\..\src\ta_abstract\tables\table_w.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\table_w.obj ..\..\..\..\..\src\ta_abstract\tables\table_w.c + +..\..\..\..\..\temp\csd\table_x.obj: ..\..\..\..\..\src\ta_abstract\tables\table_x.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\table_x.obj ..\..\..\..\..\src\ta_abstract\tables\table_x.c + +..\..\..\..\..\temp\csd\table_y.obj: ..\..\..\..\..\src\ta_abstract\tables\table_y.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\table_y.obj ..\..\..\..\..\src\ta_abstract\tables\table_y.c + +..\..\..\..\..\temp\csd\table_z.obj: ..\..\..\..\..\src\ta_abstract\tables\table_z.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\table_z.obj ..\..\..\..\..\src\ta_abstract\tables\table_z.c + diff --git a/make/csd/win32/watcom/ta_common/Makefile b/make/csd/win32/watcom/ta_common/Makefile new file mode 100644 index 000000000..0e5215101 --- /dev/null +++ b/make/csd/win32/watcom/ta_common/Makefile @@ -0,0 +1,83 @@ +############################################################################# +# Makefile for building ta_common_csd +# Generated by tmake; +# Project: ta_common/ta_common +# Template: lib +############################################################################# + +####### Compiler, tools and options + +CC = wcl386 +CXX = wcl386 +CFLAGS = -zq -w2 -d2 -d=TA_DEBUG -d=_DEBUG -d=TA_SINGLE_THREAD -d=WIN32 +CXXFLAGS= -zq -w2 -d2 -d=TA_DEBUG -d=_DEBUG -d=TA_SINGLE_THREAD -d=WIN32 +INCPATH = -i="..\..\..\..\..\src\ta_common" -i="..\..\..\..\..\include" +LIB = wlib -b -c -n -q -p=512 +MOC = moc + +ZIP = zip -r -9 + +####### Files + +HEADERS = +SOURCES = ..\..\..\..\..\src\ta_common\ta_global.c & + ..\..\..\..\..\src\ta_common\ta_retcode.c & + ..\..\..\..\..\src\ta_common\ta_version.c +OBJECTS = ..\..\..\..\..\temp\csd\ta_global.obj & + ..\..\..\..\..\temp\csd\ta_retcode.obj & + ..\..\..\..\..\temp\csd\ta_version.obj +SRCMOC = +OBJMOC = +DIST = +TARGET = ..\..\..\..\..\lib\ta_common_csd.lib +TMPLIST = ta_common_csd.lst + +####### Build rules + +all: $(TARGET) + +$(TARGET): $(OBJECTS) $(OBJMOC) + @%create $(TMPLIST) + @for %i in ( $(OBJECTS) $(OBJMOC) ) do @%append $(TMPLIST) +'%i' + $(LIB) $(TARGET) @$(TMPLIST) + del $(TMPLIST) + +moc: $(SRCMOC) + +tmake: ../csd/win32/watcom/ta_common/Makefile + +../csd/win32/watcom/ta_common/Makefile: ta_common/ta_common.pro + tmake ta_common/ta_common.pro -o ../csd/win32/watcom/ta_common/Makefile + +dist: + $(ZIP) ta_common/ta_common.zip ta_common/ta_common.pro $(SOURCES) $(HEADERS) $(DIST) + +clean: + -del ..\..\..\..\..\temp\csd\ta_global.obj + -del ..\..\..\..\..\temp\csd\ta_retcode.obj + -del ..\..\..\..\..\temp\csd\ta_version.obj + -del $(TARGET) + -del ../../../../../bin/*.map + -del ../../../../../bin/*._xe + -del ../../../../../bin/*.tds + -del ../../../../../bin/*.pdb + -del ../../../../../bin/*.pbo + -del ../../../../../bin/*.pbi + -del ../../../../../bin/*.pbt + -del ../../../../../temp/csd/*.pch + -del ../../../../../temp/csd/*.idb + -del ../../../../../temp/csd/ta_common_csd/*.pch + -del ../../../../../temp/csd/ta_common_csd/*.idb + -del ../../../../../temp/csd/ta_common_csd/*.obj + +####### Compile + +..\..\..\..\..\temp\csd\ta_global.obj: ..\..\..\..\..\src\ta_common\ta_global.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_global.obj ..\..\..\..\..\src\ta_common\ta_global.c + +..\..\..\..\..\temp\csd\ta_retcode.obj: ..\..\..\..\..\src\ta_common\ta_retcode.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_retcode.obj ..\..\..\..\..\src\ta_common\ta_retcode.c + +..\..\..\..\..\temp\csd\ta_version.obj: ..\..\..\..\..\src\ta_common\ta_version.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_version.obj ..\..\..\..\..\src\ta_common\ta_version.c + diff --git a/make/csd/win32/watcom/ta_func/Makefile b/make/csd/win32/watcom/ta_func/Makefile new file mode 100644 index 000000000..219e26149 --- /dev/null +++ b/make/csd/win32/watcom/ta_func/Makefile @@ -0,0 +1,1019 @@ +############################################################################# +# Makefile for building ta_func_csd +# Generated by tmake; +# Project: ta_func/ta_func +# Template: lib +############################################################################# + +####### Compiler, tools and options + +CC = wcl386 +CXX = wcl386 +CFLAGS = -zq -w2 -d2 -d=TA_DEBUG -d=_DEBUG -d=TA_SINGLE_THREAD -d=WIN32 +CXXFLAGS= -zq -w2 -d2 -d=TA_DEBUG -d=_DEBUG -d=TA_SINGLE_THREAD -d=WIN32 +INCPATH = -i="..\..\..\..\..\src\ta_common" -i="\n" -i="..\..\..\..\..\include" +LIB = wlib -b -c -n -q -p=512 +MOC = moc + +ZIP = zip -r -9 + +####### Files + +HEADERS = +SOURCES = ..\..\..\..\..\src\ta_func\ta_utility.c & + ..\..\..\..\..\src\ta_func\ta_ACOS.c & + ..\..\..\..\..\src\ta_func\ta_AD.c & + ..\..\..\..\..\src\ta_func\ta_ADD.c & + ..\..\..\..\..\src\ta_func\ta_ADOSC.c & + ..\..\..\..\..\src\ta_func\ta_ADX.c & + ..\..\..\..\..\src\ta_func\ta_ADXR.c & + ..\..\..\..\..\src\ta_func\ta_APO.c & + ..\..\..\..\..\src\ta_func\ta_AROON.c & + ..\..\..\..\..\src\ta_func\ta_AROONOSC.c & + ..\..\..\..\..\src\ta_func\ta_ASIN.c & + ..\..\..\..\..\src\ta_func\ta_ATAN.c & + ..\..\..\..\..\src\ta_func\ta_ATR.c & + ..\..\..\..\..\src\ta_func\ta_AVGPRICE.c & + ..\..\..\..\..\src\ta_func\ta_BBANDS.c & + ..\..\..\..\..\src\ta_func\ta_BETA.c & + ..\..\..\..\..\src\ta_func\ta_BOP.c & + ..\..\..\..\..\src\ta_func\ta_CCI.c & + ..\..\..\..\..\src\ta_func\ta_CDL2CROWS.c & + ..\..\..\..\..\src\ta_func\ta_CDL3BLACKCROWS.c & + ..\..\..\..\..\src\ta_func\ta_CDL3INSIDE.c & + ..\..\..\..\..\src\ta_func\ta_CDL3LINESTRIKE.c & + ..\..\..\..\..\src\ta_func\ta_CDL3OUTSIDE.c & + ..\..\..\..\..\src\ta_func\ta_CDL3STARSINSOUTH.c & + ..\..\..\..\..\src\ta_func\ta_CDL3WHITESOLDIERS.c & + ..\..\..\..\..\src\ta_func\ta_CDLABANDONEDBABY.c & + ..\..\..\..\..\src\ta_func\ta_CDLADVANCEBLOCK.c & + ..\..\..\..\..\src\ta_func\ta_CDLBELTHOLD.c & + ..\..\..\..\..\src\ta_func\ta_CDLBREAKAWAY.c & + ..\..\..\..\..\src\ta_func\ta_CDLCLOSINGMARUBOZU.c & + ..\..\..\..\..\src\ta_func\ta_CDLCONCEALBABYSWALL.c & + ..\..\..\..\..\src\ta_func\ta_CDLCOUNTERATTACK.c & + ..\..\..\..\..\src\ta_func\ta_CDLDARKCLOUDCOVER.c & + ..\..\..\..\..\src\ta_func\ta_CDLDOJI.c & + ..\..\..\..\..\src\ta_func\ta_CDLDOJISTAR.c & + ..\..\..\..\..\src\ta_func\ta_CDLDRAGONFLYDOJI.c & + ..\..\..\..\..\src\ta_func\ta_CDLENGULFING.c & + ..\..\..\..\..\src\ta_func\ta_CDLEVENINGDOJISTAR.c & + ..\..\..\..\..\src\ta_func\ta_CDLEVENINGSTAR.c & + ..\..\..\..\..\src\ta_func\ta_CDLGAPSIDESIDEWHITE.c & + ..\..\..\..\..\src\ta_func\ta_CDLGRAVESTONEDOJI.c & + ..\..\..\..\..\src\ta_func\ta_CDLHAMMER.c & + ..\..\..\..\..\src\ta_func\ta_CDLHANGINGMAN.c & + ..\..\..\..\..\src\ta_func\ta_CDLHARAMI.c & + ..\..\..\..\..\src\ta_func\ta_CDLHARAMICROSS.c & + ..\..\..\..\..\src\ta_func\ta_CDLHIGHWAVE.c & + ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKE.c & + ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKEMOD.c & + ..\..\..\..\..\src\ta_func\ta_CDLHOMINGPIGEON.c & + ..\..\..\..\..\src\ta_func\ta_CDLIDENTICAL3CROWS.c & + ..\..\..\..\..\src\ta_func\ta_CDLINNECK.c & + ..\..\..\..\..\src\ta_func\ta_CDLINVERTEDHAMMER.c & + ..\..\..\..\..\src\ta_func\ta_CDLKICKING.c & + ..\..\..\..\..\src\ta_func\ta_CDLKICKINGBYLENGTH.c & + ..\..\..\..\..\src\ta_func\ta_CDLLADDERBOTTOM.c & + ..\..\..\..\..\src\ta_func\ta_CDLLONGLEGGEDDOJI.c & + ..\..\..\..\..\src\ta_func\ta_CDLLONGLINE.c & + ..\..\..\..\..\src\ta_func\ta_CDLMARUBOZU.c & + ..\..\..\..\..\src\ta_func\ta_CDLMATCHINGLOW.c & + ..\..\..\..\..\src\ta_func\ta_CDLMATHOLD.c & + ..\..\..\..\..\src\ta_func\ta_CDLMORNINGDOJISTAR.c & + ..\..\..\..\..\src\ta_func\ta_CDLMORNINGSTAR.c & + ..\..\..\..\..\src\ta_func\ta_CDLONNECK.c & + ..\..\..\..\..\src\ta_func\ta_CDLPIERCING.c & + ..\..\..\..\..\src\ta_func\ta_CDLRICKSHAWMAN.c & + ..\..\..\..\..\src\ta_func\ta_CDLRISEFALL3METHODS.c & + ..\..\..\..\..\src\ta_func\ta_CDLSEPARATINGLINES.c & + ..\..\..\..\..\src\ta_func\ta_CDLSHOOTINGSTAR.c & + ..\..\..\..\..\src\ta_func\ta_CDLSHORTLINE.c & + ..\..\..\..\..\src\ta_func\ta_CDLSPINNINGTOP.c & + ..\..\..\..\..\src\ta_func\ta_CDLSTALLEDPATTERN.c & + ..\..\..\..\..\src\ta_func\ta_CDLSTICKSANDWICH.c & + ..\..\..\..\..\src\ta_func\ta_CDLTAKURI.c & + ..\..\..\..\..\src\ta_func\ta_CDLTASUKIGAP.c & + ..\..\..\..\..\src\ta_func\ta_CDLTHRUSTING.c & + ..\..\..\..\..\src\ta_func\ta_CDLTRISTAR.c & + ..\..\..\..\..\src\ta_func\ta_CDLUNIQUE3RIVER.c & + ..\..\..\..\..\src\ta_func\ta_CDLUPSIDEGAP2CROWS.c & + ..\..\..\..\..\src\ta_func\ta_CDLXSIDEGAP3METHODS.c & + ..\..\..\..\..\src\ta_func\ta_CEIL.c & + ..\..\..\..\..\src\ta_func\ta_CMO.c & + ..\..\..\..\..\src\ta_func\ta_CORREL.c & + ..\..\..\..\..\src\ta_func\ta_COS.c & + ..\..\..\..\..\src\ta_func\ta_COSH.c & + ..\..\..\..\..\src\ta_func\ta_DEMA.c & + ..\..\..\..\..\src\ta_func\ta_DIV.c & + ..\..\..\..\..\src\ta_func\ta_DX.c & + ..\..\..\..\..\src\ta_func\ta_EMA.c & + ..\..\..\..\..\src\ta_func\ta_EXP.c & + ..\..\..\..\..\src\ta_func\ta_FLOOR.c & + ..\..\..\..\..\src\ta_func\ta_HT_DCPERIOD.c & + ..\..\..\..\..\src\ta_func\ta_HT_DCPHASE.c & + ..\..\..\..\..\src\ta_func\ta_HT_PHASOR.c & + ..\..\..\..\..\src\ta_func\ta_HT_SINE.c & + ..\..\..\..\..\src\ta_func\ta_HT_TRENDLINE.c & + ..\..\..\..\..\src\ta_func\ta_HT_TRENDMODE.c & + ..\..\..\..\..\src\ta_func\ta_KAMA.c & + ..\..\..\..\..\src\ta_func\ta_LINEARREG.c & + ..\..\..\..\..\src\ta_func\ta_LINEARREG_ANGLE.c & + ..\..\..\..\..\src\ta_func\ta_LINEARREG_INTERCEPT.c & + ..\..\..\..\..\src\ta_func\ta_LINEARREG_SLOPE.c & + ..\..\..\..\..\src\ta_func\ta_LN.c & + ..\..\..\..\..\src\ta_func\ta_LOG10.c & + ..\..\..\..\..\src\ta_func\ta_MA.c & + ..\..\..\..\..\src\ta_func\ta_MACD.c & + ..\..\..\..\..\src\ta_func\ta_MACDEXT.c & + ..\..\..\..\..\src\ta_func\ta_MACDFIX.c & + ..\..\..\..\..\src\ta_func\ta_MAMA.c & + ..\..\..\..\..\src\ta_func\ta_MAVP.c & + ..\..\..\..\..\src\ta_func\ta_MAX.c & + ..\..\..\..\..\src\ta_func\ta_MAXINDEX.c & + ..\..\..\..\..\src\ta_func\ta_MEDPRICE.c & + ..\..\..\..\..\src\ta_func\ta_MFI.c & + ..\..\..\..\..\src\ta_func\ta_MIDPOINT.c & + ..\..\..\..\..\src\ta_func\ta_MIDPRICE.c & + ..\..\..\..\..\src\ta_func\ta_MIN.c & + ..\..\..\..\..\src\ta_func\ta_MININDEX.c & + ..\..\..\..\..\src\ta_func\ta_MINMAX.c & + ..\..\..\..\..\src\ta_func\ta_MINMAXINDEX.c & + ..\..\..\..\..\src\ta_func\ta_MINUS_DI.c & + ..\..\..\..\..\src\ta_func\ta_MINUS_DM.c & + ..\..\..\..\..\src\ta_func\ta_MOM.c & + ..\..\..\..\..\src\ta_func\ta_MULT.c & + ..\..\..\..\..\src\ta_func\ta_NATR.c & + ..\..\..\..\..\src\ta_func\ta_OBV.c & + ..\..\..\..\..\src\ta_func\ta_PLUS_DI.c & + ..\..\..\..\..\src\ta_func\ta_PLUS_DM.c & + ..\..\..\..\..\src\ta_func\ta_PPO.c & + ..\..\..\..\..\src\ta_func\ta_ROC.c & + ..\..\..\..\..\src\ta_func\ta_ROCP.c & + ..\..\..\..\..\src\ta_func\ta_ROCR.c & + ..\..\..\..\..\src\ta_func\ta_ROCR100.c & + ..\..\..\..\..\src\ta_func\ta_RSI.c & + ..\..\..\..\..\src\ta_func\ta_SAR.c & + ..\..\..\..\..\src\ta_func\ta_SAREXT.c & + ..\..\..\..\..\src\ta_func\ta_SIN.c & + ..\..\..\..\..\src\ta_func\ta_SINH.c & + ..\..\..\..\..\src\ta_func\ta_SMA.c & + ..\..\..\..\..\src\ta_func\ta_SQRT.c & + ..\..\..\..\..\src\ta_func\ta_STDDEV.c & + ..\..\..\..\..\src\ta_func\ta_STOCH.c & + ..\..\..\..\..\src\ta_func\ta_STOCHF.c & + ..\..\..\..\..\src\ta_func\ta_STOCHRSI.c & + ..\..\..\..\..\src\ta_func\ta_SUB.c & + ..\..\..\..\..\src\ta_func\ta_SUM.c & + ..\..\..\..\..\src\ta_func\ta_T3.c & + ..\..\..\..\..\src\ta_func\ta_TAN.c & + ..\..\..\..\..\src\ta_func\ta_TANH.c & + ..\..\..\..\..\src\ta_func\ta_TEMA.c & + ..\..\..\..\..\src\ta_func\ta_TRANGE.c & + ..\..\..\..\..\src\ta_func\ta_TRIMA.c & + ..\..\..\..\..\src\ta_func\ta_TRIX.c & + ..\..\..\..\..\src\ta_func\ta_TSF.c & + ..\..\..\..\..\src\ta_func\ta_TYPPRICE.c & + ..\..\..\..\..\src\ta_func\ta_ULTOSC.c & + ..\..\..\..\..\src\ta_func\ta_VAR.c & + ..\..\..\..\..\src\ta_func\ta_WCLPRICE.c & + ..\..\..\..\..\src\ta_func\ta_WILLR.c & + ..\..\..\..\..\src\ta_func\ta_WMA.c +OBJECTS = ..\..\..\..\..\temp\csd\ta_utility.obj & + ..\..\..\..\..\temp\csd\ta_ACOS.obj & + ..\..\..\..\..\temp\csd\ta_AD.obj & + ..\..\..\..\..\temp\csd\ta_ADD.obj & + ..\..\..\..\..\temp\csd\ta_ADOSC.obj & + ..\..\..\..\..\temp\csd\ta_ADX.obj & + ..\..\..\..\..\temp\csd\ta_ADXR.obj & + ..\..\..\..\..\temp\csd\ta_APO.obj & + ..\..\..\..\..\temp\csd\ta_AROON.obj & + ..\..\..\..\..\temp\csd\ta_AROONOSC.obj & + ..\..\..\..\..\temp\csd\ta_ASIN.obj & + ..\..\..\..\..\temp\csd\ta_ATAN.obj & + ..\..\..\..\..\temp\csd\ta_ATR.obj & + ..\..\..\..\..\temp\csd\ta_AVGPRICE.obj & + ..\..\..\..\..\temp\csd\ta_BBANDS.obj & + ..\..\..\..\..\temp\csd\ta_BETA.obj & + ..\..\..\..\..\temp\csd\ta_BOP.obj & + ..\..\..\..\..\temp\csd\ta_CCI.obj & + ..\..\..\..\..\temp\csd\ta_CDL2CROWS.obj & + ..\..\..\..\..\temp\csd\ta_CDL3BLACKCROWS.obj & + ..\..\..\..\..\temp\csd\ta_CDL3INSIDE.obj & + ..\..\..\..\..\temp\csd\ta_CDL3LINESTRIKE.obj & + ..\..\..\..\..\temp\csd\ta_CDL3OUTSIDE.obj & + ..\..\..\..\..\temp\csd\ta_CDL3STARSINSOUTH.obj & + ..\..\..\..\..\temp\csd\ta_CDL3WHITESOLDIERS.obj & + ..\..\..\..\..\temp\csd\ta_CDLABANDONEDBABY.obj & + ..\..\..\..\..\temp\csd\ta_CDLADVANCEBLOCK.obj & + ..\..\..\..\..\temp\csd\ta_CDLBELTHOLD.obj & + ..\..\..\..\..\temp\csd\ta_CDLBREAKAWAY.obj & + ..\..\..\..\..\temp\csd\ta_CDLCLOSINGMARUBOZU.obj & + ..\..\..\..\..\temp\csd\ta_CDLCONCEALBABYSWALL.obj & + ..\..\..\..\..\temp\csd\ta_CDLCOUNTERATTACK.obj & + ..\..\..\..\..\temp\csd\ta_CDLDARKCLOUDCOVER.obj & + ..\..\..\..\..\temp\csd\ta_CDLDOJI.obj & + ..\..\..\..\..\temp\csd\ta_CDLDOJISTAR.obj & + ..\..\..\..\..\temp\csd\ta_CDLDRAGONFLYDOJI.obj & + ..\..\..\..\..\temp\csd\ta_CDLENGULFING.obj & + ..\..\..\..\..\temp\csd\ta_CDLEVENINGDOJISTAR.obj & + ..\..\..\..\..\temp\csd\ta_CDLEVENINGSTAR.obj & + ..\..\..\..\..\temp\csd\ta_CDLGAPSIDESIDEWHITE.obj & + ..\..\..\..\..\temp\csd\ta_CDLGRAVESTONEDOJI.obj & + ..\..\..\..\..\temp\csd\ta_CDLHAMMER.obj & + ..\..\..\..\..\temp\csd\ta_CDLHANGINGMAN.obj & + ..\..\..\..\..\temp\csd\ta_CDLHARAMI.obj & + ..\..\..\..\..\temp\csd\ta_CDLHARAMICROSS.obj & + ..\..\..\..\..\temp\csd\ta_CDLHIGHWAVE.obj & + ..\..\..\..\..\temp\csd\ta_CDLHIKKAKE.obj & + ..\..\..\..\..\temp\csd\ta_CDLHIKKAKEMOD.obj & + ..\..\..\..\..\temp\csd\ta_CDLHOMINGPIGEON.obj & + ..\..\..\..\..\temp\csd\ta_CDLIDENTICAL3CROWS.obj & + ..\..\..\..\..\temp\csd\ta_CDLINNECK.obj & + ..\..\..\..\..\temp\csd\ta_CDLINVERTEDHAMMER.obj & + ..\..\..\..\..\temp\csd\ta_CDLKICKING.obj & + ..\..\..\..\..\temp\csd\ta_CDLKICKINGBYLENGTH.obj & + ..\..\..\..\..\temp\csd\ta_CDLLADDERBOTTOM.obj & + ..\..\..\..\..\temp\csd\ta_CDLLONGLEGGEDDOJI.obj & + ..\..\..\..\..\temp\csd\ta_CDLLONGLINE.obj & + ..\..\..\..\..\temp\csd\ta_CDLMARUBOZU.obj & + ..\..\..\..\..\temp\csd\ta_CDLMATCHINGLOW.obj & + ..\..\..\..\..\temp\csd\ta_CDLMATHOLD.obj & + ..\..\..\..\..\temp\csd\ta_CDLMORNINGDOJISTAR.obj & + ..\..\..\..\..\temp\csd\ta_CDLMORNINGSTAR.obj & + ..\..\..\..\..\temp\csd\ta_CDLONNECK.obj & + ..\..\..\..\..\temp\csd\ta_CDLPIERCING.obj & + ..\..\..\..\..\temp\csd\ta_CDLRICKSHAWMAN.obj & + ..\..\..\..\..\temp\csd\ta_CDLRISEFALL3METHODS.obj & + ..\..\..\..\..\temp\csd\ta_CDLSEPARATINGLINES.obj & + ..\..\..\..\..\temp\csd\ta_CDLSHOOTINGSTAR.obj & + ..\..\..\..\..\temp\csd\ta_CDLSHORTLINE.obj & + ..\..\..\..\..\temp\csd\ta_CDLSPINNINGTOP.obj & + ..\..\..\..\..\temp\csd\ta_CDLSTALLEDPATTERN.obj & + ..\..\..\..\..\temp\csd\ta_CDLSTICKSANDWICH.obj & + ..\..\..\..\..\temp\csd\ta_CDLTAKURI.obj & + ..\..\..\..\..\temp\csd\ta_CDLTASUKIGAP.obj & + ..\..\..\..\..\temp\csd\ta_CDLTHRUSTING.obj & + ..\..\..\..\..\temp\csd\ta_CDLTRISTAR.obj & + ..\..\..\..\..\temp\csd\ta_CDLUNIQUE3RIVER.obj & + ..\..\..\..\..\temp\csd\ta_CDLUPSIDEGAP2CROWS.obj & + ..\..\..\..\..\temp\csd\ta_CDLXSIDEGAP3METHODS.obj & + ..\..\..\..\..\temp\csd\ta_CEIL.obj & + ..\..\..\..\..\temp\csd\ta_CMO.obj & + ..\..\..\..\..\temp\csd\ta_CORREL.obj & + ..\..\..\..\..\temp\csd\ta_COS.obj & + ..\..\..\..\..\temp\csd\ta_COSH.obj & + ..\..\..\..\..\temp\csd\ta_DEMA.obj & + ..\..\..\..\..\temp\csd\ta_DIV.obj & + ..\..\..\..\..\temp\csd\ta_DX.obj & + ..\..\..\..\..\temp\csd\ta_EMA.obj & + ..\..\..\..\..\temp\csd\ta_EXP.obj & + ..\..\..\..\..\temp\csd\ta_FLOOR.obj & + ..\..\..\..\..\temp\csd\ta_HT_DCPERIOD.obj & + ..\..\..\..\..\temp\csd\ta_HT_DCPHASE.obj & + ..\..\..\..\..\temp\csd\ta_HT_PHASOR.obj & + ..\..\..\..\..\temp\csd\ta_HT_SINE.obj & + ..\..\..\..\..\temp\csd\ta_HT_TRENDLINE.obj & + ..\..\..\..\..\temp\csd\ta_HT_TRENDMODE.obj & + ..\..\..\..\..\temp\csd\ta_KAMA.obj & + ..\..\..\..\..\temp\csd\ta_LINEARREG.obj & + ..\..\..\..\..\temp\csd\ta_LINEARREG_ANGLE.obj & + ..\..\..\..\..\temp\csd\ta_LINEARREG_INTERCEPT.obj & + ..\..\..\..\..\temp\csd\ta_LINEARREG_SLOPE.obj & + ..\..\..\..\..\temp\csd\ta_LN.obj & + ..\..\..\..\..\temp\csd\ta_LOG10.obj & + ..\..\..\..\..\temp\csd\ta_MA.obj & + ..\..\..\..\..\temp\csd\ta_MACD.obj & + ..\..\..\..\..\temp\csd\ta_MACDEXT.obj & + ..\..\..\..\..\temp\csd\ta_MACDFIX.obj & + ..\..\..\..\..\temp\csd\ta_MAMA.obj & + ..\..\..\..\..\temp\csd\ta_MAVP.obj & + ..\..\..\..\..\temp\csd\ta_MAX.obj & + ..\..\..\..\..\temp\csd\ta_MAXINDEX.obj & + ..\..\..\..\..\temp\csd\ta_MEDPRICE.obj & + ..\..\..\..\..\temp\csd\ta_MFI.obj & + ..\..\..\..\..\temp\csd\ta_MIDPOINT.obj & + ..\..\..\..\..\temp\csd\ta_MIDPRICE.obj & + ..\..\..\..\..\temp\csd\ta_MIN.obj & + ..\..\..\..\..\temp\csd\ta_MININDEX.obj & + ..\..\..\..\..\temp\csd\ta_MINMAX.obj & + ..\..\..\..\..\temp\csd\ta_MINMAXINDEX.obj & + ..\..\..\..\..\temp\csd\ta_MINUS_DI.obj & + ..\..\..\..\..\temp\csd\ta_MINUS_DM.obj & + ..\..\..\..\..\temp\csd\ta_MOM.obj & + ..\..\..\..\..\temp\csd\ta_MULT.obj & + ..\..\..\..\..\temp\csd\ta_NATR.obj & + ..\..\..\..\..\temp\csd\ta_OBV.obj & + ..\..\..\..\..\temp\csd\ta_PLUS_DI.obj & + ..\..\..\..\..\temp\csd\ta_PLUS_DM.obj & + ..\..\..\..\..\temp\csd\ta_PPO.obj & + ..\..\..\..\..\temp\csd\ta_ROC.obj & + ..\..\..\..\..\temp\csd\ta_ROCP.obj & + ..\..\..\..\..\temp\csd\ta_ROCR.obj & + ..\..\..\..\..\temp\csd\ta_ROCR100.obj & + ..\..\..\..\..\temp\csd\ta_RSI.obj & + ..\..\..\..\..\temp\csd\ta_SAR.obj & + ..\..\..\..\..\temp\csd\ta_SAREXT.obj & + ..\..\..\..\..\temp\csd\ta_SIN.obj & + ..\..\..\..\..\temp\csd\ta_SINH.obj & + ..\..\..\..\..\temp\csd\ta_SMA.obj & + ..\..\..\..\..\temp\csd\ta_SQRT.obj & + ..\..\..\..\..\temp\csd\ta_STDDEV.obj & + ..\..\..\..\..\temp\csd\ta_STOCH.obj & + ..\..\..\..\..\temp\csd\ta_STOCHF.obj & + ..\..\..\..\..\temp\csd\ta_STOCHRSI.obj & + ..\..\..\..\..\temp\csd\ta_SUB.obj & + ..\..\..\..\..\temp\csd\ta_SUM.obj & + ..\..\..\..\..\temp\csd\ta_T3.obj & + ..\..\..\..\..\temp\csd\ta_TAN.obj & + ..\..\..\..\..\temp\csd\ta_TANH.obj & + ..\..\..\..\..\temp\csd\ta_TEMA.obj & + ..\..\..\..\..\temp\csd\ta_TRANGE.obj & + ..\..\..\..\..\temp\csd\ta_TRIMA.obj & + ..\..\..\..\..\temp\csd\ta_TRIX.obj & + ..\..\..\..\..\temp\csd\ta_TSF.obj & + ..\..\..\..\..\temp\csd\ta_TYPPRICE.obj & + ..\..\..\..\..\temp\csd\ta_ULTOSC.obj & + ..\..\..\..\..\temp\csd\ta_VAR.obj & + ..\..\..\..\..\temp\csd\ta_WCLPRICE.obj & + ..\..\..\..\..\temp\csd\ta_WILLR.obj & + ..\..\..\..\..\temp\csd\ta_WMA.obj +SRCMOC = +OBJMOC = +DIST = +TARGET = ..\..\..\..\..\lib\ta_func_csd.lib +TMPLIST = ta_func_csd.lst + +####### Build rules + +all: $(TARGET) + +$(TARGET): $(OBJECTS) $(OBJMOC) + @%create $(TMPLIST) + @for %i in ( $(OBJECTS) $(OBJMOC) ) do @%append $(TMPLIST) +'%i' + $(LIB) $(TARGET) @$(TMPLIST) + del $(TMPLIST) + +moc: $(SRCMOC) + +tmake: ../csd/win32/watcom/ta_func/Makefile + +../csd/win32/watcom/ta_func/Makefile: ta_func/ta_func.pro + tmake ta_func/ta_func.pro -o ../csd/win32/watcom/ta_func/Makefile + +dist: + $(ZIP) ta_func/ta_func.zip ta_func/ta_func.pro $(SOURCES) $(HEADERS) $(DIST) + +clean: + -del ..\..\..\..\..\temp\csd\ta_utility.obj + -del ..\..\..\..\..\temp\csd\ta_ACOS.obj + -del ..\..\..\..\..\temp\csd\ta_AD.obj + -del ..\..\..\..\..\temp\csd\ta_ADD.obj + -del ..\..\..\..\..\temp\csd\ta_ADOSC.obj + -del ..\..\..\..\..\temp\csd\ta_ADX.obj + -del ..\..\..\..\..\temp\csd\ta_ADXR.obj + -del ..\..\..\..\..\temp\csd\ta_APO.obj + -del ..\..\..\..\..\temp\csd\ta_AROON.obj + -del ..\..\..\..\..\temp\csd\ta_AROONOSC.obj + -del ..\..\..\..\..\temp\csd\ta_ASIN.obj + -del ..\..\..\..\..\temp\csd\ta_ATAN.obj + -del ..\..\..\..\..\temp\csd\ta_ATR.obj + -del ..\..\..\..\..\temp\csd\ta_AVGPRICE.obj + -del ..\..\..\..\..\temp\csd\ta_BBANDS.obj + -del ..\..\..\..\..\temp\csd\ta_BETA.obj + -del ..\..\..\..\..\temp\csd\ta_BOP.obj + -del ..\..\..\..\..\temp\csd\ta_CCI.obj + -del ..\..\..\..\..\temp\csd\ta_CDL2CROWS.obj + -del ..\..\..\..\..\temp\csd\ta_CDL3BLACKCROWS.obj + -del ..\..\..\..\..\temp\csd\ta_CDL3INSIDE.obj + -del ..\..\..\..\..\temp\csd\ta_CDL3LINESTRIKE.obj + -del ..\..\..\..\..\temp\csd\ta_CDL3OUTSIDE.obj + -del ..\..\..\..\..\temp\csd\ta_CDL3STARSINSOUTH.obj + -del ..\..\..\..\..\temp\csd\ta_CDL3WHITESOLDIERS.obj + -del ..\..\..\..\..\temp\csd\ta_CDLABANDONEDBABY.obj + -del ..\..\..\..\..\temp\csd\ta_CDLADVANCEBLOCK.obj + -del ..\..\..\..\..\temp\csd\ta_CDLBELTHOLD.obj + -del ..\..\..\..\..\temp\csd\ta_CDLBREAKAWAY.obj + -del ..\..\..\..\..\temp\csd\ta_CDLCLOSINGMARUBOZU.obj + -del ..\..\..\..\..\temp\csd\ta_CDLCONCEALBABYSWALL.obj + -del ..\..\..\..\..\temp\csd\ta_CDLCOUNTERATTACK.obj + -del ..\..\..\..\..\temp\csd\ta_CDLDARKCLOUDCOVER.obj + -del ..\..\..\..\..\temp\csd\ta_CDLDOJI.obj + -del ..\..\..\..\..\temp\csd\ta_CDLDOJISTAR.obj + -del ..\..\..\..\..\temp\csd\ta_CDLDRAGONFLYDOJI.obj + -del ..\..\..\..\..\temp\csd\ta_CDLENGULFING.obj + -del ..\..\..\..\..\temp\csd\ta_CDLEVENINGDOJISTAR.obj + -del ..\..\..\..\..\temp\csd\ta_CDLEVENINGSTAR.obj + -del ..\..\..\..\..\temp\csd\ta_CDLGAPSIDESIDEWHITE.obj + -del ..\..\..\..\..\temp\csd\ta_CDLGRAVESTONEDOJI.obj + -del ..\..\..\..\..\temp\csd\ta_CDLHAMMER.obj + -del ..\..\..\..\..\temp\csd\ta_CDLHANGINGMAN.obj + -del ..\..\..\..\..\temp\csd\ta_CDLHARAMI.obj + -del ..\..\..\..\..\temp\csd\ta_CDLHARAMICROSS.obj + -del ..\..\..\..\..\temp\csd\ta_CDLHIGHWAVE.obj + -del ..\..\..\..\..\temp\csd\ta_CDLHIKKAKE.obj + -del ..\..\..\..\..\temp\csd\ta_CDLHIKKAKEMOD.obj + -del ..\..\..\..\..\temp\csd\ta_CDLHOMINGPIGEON.obj + -del ..\..\..\..\..\temp\csd\ta_CDLIDENTICAL3CROWS.obj + -del ..\..\..\..\..\temp\csd\ta_CDLINNECK.obj + -del ..\..\..\..\..\temp\csd\ta_CDLINVERTEDHAMMER.obj + -del ..\..\..\..\..\temp\csd\ta_CDLKICKING.obj + -del ..\..\..\..\..\temp\csd\ta_CDLKICKINGBYLENGTH.obj + -del ..\..\..\..\..\temp\csd\ta_CDLLADDERBOTTOM.obj + -del ..\..\..\..\..\temp\csd\ta_CDLLONGLEGGEDDOJI.obj + -del ..\..\..\..\..\temp\csd\ta_CDLLONGLINE.obj + -del ..\..\..\..\..\temp\csd\ta_CDLMARUBOZU.obj + -del ..\..\..\..\..\temp\csd\ta_CDLMATCHINGLOW.obj + -del ..\..\..\..\..\temp\csd\ta_CDLMATHOLD.obj + -del ..\..\..\..\..\temp\csd\ta_CDLMORNINGDOJISTAR.obj + -del ..\..\..\..\..\temp\csd\ta_CDLMORNINGSTAR.obj + -del ..\..\..\..\..\temp\csd\ta_CDLONNECK.obj + -del ..\..\..\..\..\temp\csd\ta_CDLPIERCING.obj + -del ..\..\..\..\..\temp\csd\ta_CDLRICKSHAWMAN.obj + -del ..\..\..\..\..\temp\csd\ta_CDLRISEFALL3METHODS.obj + -del ..\..\..\..\..\temp\csd\ta_CDLSEPARATINGLINES.obj + -del ..\..\..\..\..\temp\csd\ta_CDLSHOOTINGSTAR.obj + -del ..\..\..\..\..\temp\csd\ta_CDLSHORTLINE.obj + -del ..\..\..\..\..\temp\csd\ta_CDLSPINNINGTOP.obj + -del ..\..\..\..\..\temp\csd\ta_CDLSTALLEDPATTERN.obj + -del ..\..\..\..\..\temp\csd\ta_CDLSTICKSANDWICH.obj + -del ..\..\..\..\..\temp\csd\ta_CDLTAKURI.obj + -del ..\..\..\..\..\temp\csd\ta_CDLTASUKIGAP.obj + -del ..\..\..\..\..\temp\csd\ta_CDLTHRUSTING.obj + -del ..\..\..\..\..\temp\csd\ta_CDLTRISTAR.obj + -del ..\..\..\..\..\temp\csd\ta_CDLUNIQUE3RIVER.obj + -del ..\..\..\..\..\temp\csd\ta_CDLUPSIDEGAP2CROWS.obj + -del ..\..\..\..\..\temp\csd\ta_CDLXSIDEGAP3METHODS.obj + -del ..\..\..\..\..\temp\csd\ta_CEIL.obj + -del ..\..\..\..\..\temp\csd\ta_CMO.obj + -del ..\..\..\..\..\temp\csd\ta_CORREL.obj + -del ..\..\..\..\..\temp\csd\ta_COS.obj + -del ..\..\..\..\..\temp\csd\ta_COSH.obj + -del ..\..\..\..\..\temp\csd\ta_DEMA.obj + -del ..\..\..\..\..\temp\csd\ta_DIV.obj + -del ..\..\..\..\..\temp\csd\ta_DX.obj + -del ..\..\..\..\..\temp\csd\ta_EMA.obj + -del ..\..\..\..\..\temp\csd\ta_EXP.obj + -del ..\..\..\..\..\temp\csd\ta_FLOOR.obj + -del ..\..\..\..\..\temp\csd\ta_HT_DCPERIOD.obj + -del ..\..\..\..\..\temp\csd\ta_HT_DCPHASE.obj + -del ..\..\..\..\..\temp\csd\ta_HT_PHASOR.obj + -del ..\..\..\..\..\temp\csd\ta_HT_SINE.obj + -del ..\..\..\..\..\temp\csd\ta_HT_TRENDLINE.obj + -del ..\..\..\..\..\temp\csd\ta_HT_TRENDMODE.obj + -del ..\..\..\..\..\temp\csd\ta_KAMA.obj + -del ..\..\..\..\..\temp\csd\ta_LINEARREG.obj + -del ..\..\..\..\..\temp\csd\ta_LINEARREG_ANGLE.obj + -del ..\..\..\..\..\temp\csd\ta_LINEARREG_INTERCEPT.obj + -del ..\..\..\..\..\temp\csd\ta_LINEARREG_SLOPE.obj + -del ..\..\..\..\..\temp\csd\ta_LN.obj + -del ..\..\..\..\..\temp\csd\ta_LOG10.obj + -del ..\..\..\..\..\temp\csd\ta_MA.obj + -del ..\..\..\..\..\temp\csd\ta_MACD.obj + -del ..\..\..\..\..\temp\csd\ta_MACDEXT.obj + -del ..\..\..\..\..\temp\csd\ta_MACDFIX.obj + -del ..\..\..\..\..\temp\csd\ta_MAMA.obj + -del ..\..\..\..\..\temp\csd\ta_MAVP.obj + -del ..\..\..\..\..\temp\csd\ta_MAX.obj + -del ..\..\..\..\..\temp\csd\ta_MAXINDEX.obj + -del ..\..\..\..\..\temp\csd\ta_MEDPRICE.obj + -del ..\..\..\..\..\temp\csd\ta_MFI.obj + -del ..\..\..\..\..\temp\csd\ta_MIDPOINT.obj + -del ..\..\..\..\..\temp\csd\ta_MIDPRICE.obj + -del ..\..\..\..\..\temp\csd\ta_MIN.obj + -del ..\..\..\..\..\temp\csd\ta_MININDEX.obj + -del ..\..\..\..\..\temp\csd\ta_MINMAX.obj + -del ..\..\..\..\..\temp\csd\ta_MINMAXINDEX.obj + -del ..\..\..\..\..\temp\csd\ta_MINUS_DI.obj + -del ..\..\..\..\..\temp\csd\ta_MINUS_DM.obj + -del ..\..\..\..\..\temp\csd\ta_MOM.obj + -del ..\..\..\..\..\temp\csd\ta_MULT.obj + -del ..\..\..\..\..\temp\csd\ta_NATR.obj + -del ..\..\..\..\..\temp\csd\ta_OBV.obj + -del ..\..\..\..\..\temp\csd\ta_PLUS_DI.obj + -del ..\..\..\..\..\temp\csd\ta_PLUS_DM.obj + -del ..\..\..\..\..\temp\csd\ta_PPO.obj + -del ..\..\..\..\..\temp\csd\ta_ROC.obj + -del ..\..\..\..\..\temp\csd\ta_ROCP.obj + -del ..\..\..\..\..\temp\csd\ta_ROCR.obj + -del ..\..\..\..\..\temp\csd\ta_ROCR100.obj + -del ..\..\..\..\..\temp\csd\ta_RSI.obj + -del ..\..\..\..\..\temp\csd\ta_SAR.obj + -del ..\..\..\..\..\temp\csd\ta_SAREXT.obj + -del ..\..\..\..\..\temp\csd\ta_SIN.obj + -del ..\..\..\..\..\temp\csd\ta_SINH.obj + -del ..\..\..\..\..\temp\csd\ta_SMA.obj + -del ..\..\..\..\..\temp\csd\ta_SQRT.obj + -del ..\..\..\..\..\temp\csd\ta_STDDEV.obj + -del ..\..\..\..\..\temp\csd\ta_STOCH.obj + -del ..\..\..\..\..\temp\csd\ta_STOCHF.obj + -del ..\..\..\..\..\temp\csd\ta_STOCHRSI.obj + -del ..\..\..\..\..\temp\csd\ta_SUB.obj + -del ..\..\..\..\..\temp\csd\ta_SUM.obj + -del ..\..\..\..\..\temp\csd\ta_T3.obj + -del ..\..\..\..\..\temp\csd\ta_TAN.obj + -del ..\..\..\..\..\temp\csd\ta_TANH.obj + -del ..\..\..\..\..\temp\csd\ta_TEMA.obj + -del ..\..\..\..\..\temp\csd\ta_TRANGE.obj + -del ..\..\..\..\..\temp\csd\ta_TRIMA.obj + -del ..\..\..\..\..\temp\csd\ta_TRIX.obj + -del ..\..\..\..\..\temp\csd\ta_TSF.obj + -del ..\..\..\..\..\temp\csd\ta_TYPPRICE.obj + -del ..\..\..\..\..\temp\csd\ta_ULTOSC.obj + -del ..\..\..\..\..\temp\csd\ta_VAR.obj + -del ..\..\..\..\..\temp\csd\ta_WCLPRICE.obj + -del ..\..\..\..\..\temp\csd\ta_WILLR.obj + -del ..\..\..\..\..\temp\csd\ta_WMA.obj + -del $(TARGET) + -del ../../../../../bin/*.map + -del ../../../../../bin/*._xe + -del ../../../../../bin/*.tds + -del ../../../../../bin/*.pdb + -del ../../../../../bin/*.pbo + -del ../../../../../bin/*.pbi + -del ../../../../../bin/*.pbt + -del ../../../../../temp/csd/*.pch + -del ../../../../../temp/csd/*.idb + -del ../../../../../temp/csd/ta_func/*.pch + -del ../../../../../temp/csd/ta_func/*.idb + -del ../../../../../temp/csd/ta_func/*.obj + +####### Compile + +..\..\..\..\..\temp\csd\ta_utility.obj: ..\..\..\..\..\src\ta_func\ta_utility.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_utility.obj ..\..\..\..\..\src\ta_func\ta_utility.c + +..\..\..\..\..\temp\csd\ta_ACOS.obj: ..\..\..\..\..\src\ta_func\ta_ACOS.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_ACOS.obj ..\..\..\..\..\src\ta_func\ta_ACOS.c + +..\..\..\..\..\temp\csd\ta_AD.obj: ..\..\..\..\..\src\ta_func\ta_AD.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_AD.obj ..\..\..\..\..\src\ta_func\ta_AD.c + +..\..\..\..\..\temp\csd\ta_ADD.obj: ..\..\..\..\..\src\ta_func\ta_ADD.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_ADD.obj ..\..\..\..\..\src\ta_func\ta_ADD.c + +..\..\..\..\..\temp\csd\ta_ADOSC.obj: ..\..\..\..\..\src\ta_func\ta_ADOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_ADOSC.obj ..\..\..\..\..\src\ta_func\ta_ADOSC.c + +..\..\..\..\..\temp\csd\ta_ADX.obj: ..\..\..\..\..\src\ta_func\ta_ADX.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_ADX.obj ..\..\..\..\..\src\ta_func\ta_ADX.c + +..\..\..\..\..\temp\csd\ta_ADXR.obj: ..\..\..\..\..\src\ta_func\ta_ADXR.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_ADXR.obj ..\..\..\..\..\src\ta_func\ta_ADXR.c + +..\..\..\..\..\temp\csd\ta_APO.obj: ..\..\..\..\..\src\ta_func\ta_APO.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_APO.obj ..\..\..\..\..\src\ta_func\ta_APO.c + +..\..\..\..\..\temp\csd\ta_AROON.obj: ..\..\..\..\..\src\ta_func\ta_AROON.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_AROON.obj ..\..\..\..\..\src\ta_func\ta_AROON.c + +..\..\..\..\..\temp\csd\ta_AROONOSC.obj: ..\..\..\..\..\src\ta_func\ta_AROONOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_AROONOSC.obj ..\..\..\..\..\src\ta_func\ta_AROONOSC.c + +..\..\..\..\..\temp\csd\ta_ASIN.obj: ..\..\..\..\..\src\ta_func\ta_ASIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_ASIN.obj ..\..\..\..\..\src\ta_func\ta_ASIN.c + +..\..\..\..\..\temp\csd\ta_ATAN.obj: ..\..\..\..\..\src\ta_func\ta_ATAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_ATAN.obj ..\..\..\..\..\src\ta_func\ta_ATAN.c + +..\..\..\..\..\temp\csd\ta_ATR.obj: ..\..\..\..\..\src\ta_func\ta_ATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_ATR.obj ..\..\..\..\..\src\ta_func\ta_ATR.c + +..\..\..\..\..\temp\csd\ta_AVGPRICE.obj: ..\..\..\..\..\src\ta_func\ta_AVGPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_AVGPRICE.obj ..\..\..\..\..\src\ta_func\ta_AVGPRICE.c + +..\..\..\..\..\temp\csd\ta_BBANDS.obj: ..\..\..\..\..\src\ta_func\ta_BBANDS.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_BBANDS.obj ..\..\..\..\..\src\ta_func\ta_BBANDS.c + +..\..\..\..\..\temp\csd\ta_BETA.obj: ..\..\..\..\..\src\ta_func\ta_BETA.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_BETA.obj ..\..\..\..\..\src\ta_func\ta_BETA.c + +..\..\..\..\..\temp\csd\ta_BOP.obj: ..\..\..\..\..\src\ta_func\ta_BOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_BOP.obj ..\..\..\..\..\src\ta_func\ta_BOP.c + +..\..\..\..\..\temp\csd\ta_CCI.obj: ..\..\..\..\..\src\ta_func\ta_CCI.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CCI.obj ..\..\..\..\..\src\ta_func\ta_CCI.c + +..\..\..\..\..\temp\csd\ta_CDL2CROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDL2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CDL2CROWS.obj ..\..\..\..\..\src\ta_func\ta_CDL2CROWS.c + +..\..\..\..\..\temp\csd\ta_CDL3BLACKCROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDL3BLACKCROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CDL3BLACKCROWS.obj ..\..\..\..\..\src\ta_func\ta_CDL3BLACKCROWS.c + +..\..\..\..\..\temp\csd\ta_CDL3INSIDE.obj: ..\..\..\..\..\src\ta_func\ta_CDL3INSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CDL3INSIDE.obj ..\..\..\..\..\src\ta_func\ta_CDL3INSIDE.c + +..\..\..\..\..\temp\csd\ta_CDL3LINESTRIKE.obj: ..\..\..\..\..\src\ta_func\ta_CDL3LINESTRIKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CDL3LINESTRIKE.obj ..\..\..\..\..\src\ta_func\ta_CDL3LINESTRIKE.c + +..\..\..\..\..\temp\csd\ta_CDL3OUTSIDE.obj: ..\..\..\..\..\src\ta_func\ta_CDL3OUTSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CDL3OUTSIDE.obj ..\..\..\..\..\src\ta_func\ta_CDL3OUTSIDE.c + +..\..\..\..\..\temp\csd\ta_CDL3STARSINSOUTH.obj: ..\..\..\..\..\src\ta_func\ta_CDL3STARSINSOUTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CDL3STARSINSOUTH.obj ..\..\..\..\..\src\ta_func\ta_CDL3STARSINSOUTH.c + +..\..\..\..\..\temp\csd\ta_CDL3WHITESOLDIERS.obj: ..\..\..\..\..\src\ta_func\ta_CDL3WHITESOLDIERS.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CDL3WHITESOLDIERS.obj ..\..\..\..\..\src\ta_func\ta_CDL3WHITESOLDIERS.c + +..\..\..\..\..\temp\csd\ta_CDLABANDONEDBABY.obj: ..\..\..\..\..\src\ta_func\ta_CDLABANDONEDBABY.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CDLABANDONEDBABY.obj ..\..\..\..\..\src\ta_func\ta_CDLABANDONEDBABY.c + +..\..\..\..\..\temp\csd\ta_CDLADVANCEBLOCK.obj: ..\..\..\..\..\src\ta_func\ta_CDLADVANCEBLOCK.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CDLADVANCEBLOCK.obj ..\..\..\..\..\src\ta_func\ta_CDLADVANCEBLOCK.c + +..\..\..\..\..\temp\csd\ta_CDLBELTHOLD.obj: ..\..\..\..\..\src\ta_func\ta_CDLBELTHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CDLBELTHOLD.obj ..\..\..\..\..\src\ta_func\ta_CDLBELTHOLD.c + +..\..\..\..\..\temp\csd\ta_CDLBREAKAWAY.obj: ..\..\..\..\..\src\ta_func\ta_CDLBREAKAWAY.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CDLBREAKAWAY.obj ..\..\..\..\..\src\ta_func\ta_CDLBREAKAWAY.c + +..\..\..\..\..\temp\csd\ta_CDLCLOSINGMARUBOZU.obj: ..\..\..\..\..\src\ta_func\ta_CDLCLOSINGMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CDLCLOSINGMARUBOZU.obj ..\..\..\..\..\src\ta_func\ta_CDLCLOSINGMARUBOZU.c + +..\..\..\..\..\temp\csd\ta_CDLCONCEALBABYSWALL.obj: ..\..\..\..\..\src\ta_func\ta_CDLCONCEALBABYSWALL.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CDLCONCEALBABYSWALL.obj ..\..\..\..\..\src\ta_func\ta_CDLCONCEALBABYSWALL.c + +..\..\..\..\..\temp\csd\ta_CDLCOUNTERATTACK.obj: ..\..\..\..\..\src\ta_func\ta_CDLCOUNTERATTACK.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CDLCOUNTERATTACK.obj ..\..\..\..\..\src\ta_func\ta_CDLCOUNTERATTACK.c + +..\..\..\..\..\temp\csd\ta_CDLDARKCLOUDCOVER.obj: ..\..\..\..\..\src\ta_func\ta_CDLDARKCLOUDCOVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CDLDARKCLOUDCOVER.obj ..\..\..\..\..\src\ta_func\ta_CDLDARKCLOUDCOVER.c + +..\..\..\..\..\temp\csd\ta_CDLDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CDLDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLDOJI.c + +..\..\..\..\..\temp\csd\ta_CDLDOJISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CDLDOJISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLDOJISTAR.c + +..\..\..\..\..\temp\csd\ta_CDLDRAGONFLYDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLDRAGONFLYDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CDLDRAGONFLYDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLDRAGONFLYDOJI.c + +..\..\..\..\..\temp\csd\ta_CDLENGULFING.obj: ..\..\..\..\..\src\ta_func\ta_CDLENGULFING.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CDLENGULFING.obj ..\..\..\..\..\src\ta_func\ta_CDLENGULFING.c + +..\..\..\..\..\temp\csd\ta_CDLEVENINGDOJISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLEVENINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CDLEVENINGDOJISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLEVENINGDOJISTAR.c + +..\..\..\..\..\temp\csd\ta_CDLEVENINGSTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLEVENINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CDLEVENINGSTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLEVENINGSTAR.c + +..\..\..\..\..\temp\csd\ta_CDLGAPSIDESIDEWHITE.obj: ..\..\..\..\..\src\ta_func\ta_CDLGAPSIDESIDEWHITE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CDLGAPSIDESIDEWHITE.obj ..\..\..\..\..\src\ta_func\ta_CDLGAPSIDESIDEWHITE.c + +..\..\..\..\..\temp\csd\ta_CDLGRAVESTONEDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLGRAVESTONEDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CDLGRAVESTONEDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLGRAVESTONEDOJI.c + +..\..\..\..\..\temp\csd\ta_CDLHAMMER.obj: ..\..\..\..\..\src\ta_func\ta_CDLHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CDLHAMMER.obj ..\..\..\..\..\src\ta_func\ta_CDLHAMMER.c + +..\..\..\..\..\temp\csd\ta_CDLHANGINGMAN.obj: ..\..\..\..\..\src\ta_func\ta_CDLHANGINGMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CDLHANGINGMAN.obj ..\..\..\..\..\src\ta_func\ta_CDLHANGINGMAN.c + +..\..\..\..\..\temp\csd\ta_CDLHARAMI.obj: ..\..\..\..\..\src\ta_func\ta_CDLHARAMI.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CDLHARAMI.obj ..\..\..\..\..\src\ta_func\ta_CDLHARAMI.c + +..\..\..\..\..\temp\csd\ta_CDLHARAMICROSS.obj: ..\..\..\..\..\src\ta_func\ta_CDLHARAMICROSS.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CDLHARAMICROSS.obj ..\..\..\..\..\src\ta_func\ta_CDLHARAMICROSS.c + +..\..\..\..\..\temp\csd\ta_CDLHIGHWAVE.obj: ..\..\..\..\..\src\ta_func\ta_CDLHIGHWAVE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CDLHIGHWAVE.obj ..\..\..\..\..\src\ta_func\ta_CDLHIGHWAVE.c + +..\..\..\..\..\temp\csd\ta_CDLHIKKAKE.obj: ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CDLHIKKAKE.obj ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKE.c + +..\..\..\..\..\temp\csd\ta_CDLHIKKAKEMOD.obj: ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKEMOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CDLHIKKAKEMOD.obj ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKEMOD.c + +..\..\..\..\..\temp\csd\ta_CDLHOMINGPIGEON.obj: ..\..\..\..\..\src\ta_func\ta_CDLHOMINGPIGEON.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CDLHOMINGPIGEON.obj ..\..\..\..\..\src\ta_func\ta_CDLHOMINGPIGEON.c + +..\..\..\..\..\temp\csd\ta_CDLIDENTICAL3CROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDLIDENTICAL3CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CDLIDENTICAL3CROWS.obj ..\..\..\..\..\src\ta_func\ta_CDLIDENTICAL3CROWS.c + +..\..\..\..\..\temp\csd\ta_CDLINNECK.obj: ..\..\..\..\..\src\ta_func\ta_CDLINNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CDLINNECK.obj ..\..\..\..\..\src\ta_func\ta_CDLINNECK.c + +..\..\..\..\..\temp\csd\ta_CDLINVERTEDHAMMER.obj: ..\..\..\..\..\src\ta_func\ta_CDLINVERTEDHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CDLINVERTEDHAMMER.obj ..\..\..\..\..\src\ta_func\ta_CDLINVERTEDHAMMER.c + +..\..\..\..\..\temp\csd\ta_CDLKICKING.obj: ..\..\..\..\..\src\ta_func\ta_CDLKICKING.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CDLKICKING.obj ..\..\..\..\..\src\ta_func\ta_CDLKICKING.c + +..\..\..\..\..\temp\csd\ta_CDLKICKINGBYLENGTH.obj: ..\..\..\..\..\src\ta_func\ta_CDLKICKINGBYLENGTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CDLKICKINGBYLENGTH.obj ..\..\..\..\..\src\ta_func\ta_CDLKICKINGBYLENGTH.c + +..\..\..\..\..\temp\csd\ta_CDLLADDERBOTTOM.obj: ..\..\..\..\..\src\ta_func\ta_CDLLADDERBOTTOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CDLLADDERBOTTOM.obj ..\..\..\..\..\src\ta_func\ta_CDLLADDERBOTTOM.c + +..\..\..\..\..\temp\csd\ta_CDLLONGLEGGEDDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLLONGLEGGEDDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CDLLONGLEGGEDDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLLONGLEGGEDDOJI.c + +..\..\..\..\..\temp\csd\ta_CDLLONGLINE.obj: ..\..\..\..\..\src\ta_func\ta_CDLLONGLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CDLLONGLINE.obj ..\..\..\..\..\src\ta_func\ta_CDLLONGLINE.c + +..\..\..\..\..\temp\csd\ta_CDLMARUBOZU.obj: ..\..\..\..\..\src\ta_func\ta_CDLMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CDLMARUBOZU.obj ..\..\..\..\..\src\ta_func\ta_CDLMARUBOZU.c + +..\..\..\..\..\temp\csd\ta_CDLMATCHINGLOW.obj: ..\..\..\..\..\src\ta_func\ta_CDLMATCHINGLOW.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CDLMATCHINGLOW.obj ..\..\..\..\..\src\ta_func\ta_CDLMATCHINGLOW.c + +..\..\..\..\..\temp\csd\ta_CDLMATHOLD.obj: ..\..\..\..\..\src\ta_func\ta_CDLMATHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CDLMATHOLD.obj ..\..\..\..\..\src\ta_func\ta_CDLMATHOLD.c + +..\..\..\..\..\temp\csd\ta_CDLMORNINGDOJISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLMORNINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CDLMORNINGDOJISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLMORNINGDOJISTAR.c + +..\..\..\..\..\temp\csd\ta_CDLMORNINGSTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLMORNINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CDLMORNINGSTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLMORNINGSTAR.c + +..\..\..\..\..\temp\csd\ta_CDLONNECK.obj: ..\..\..\..\..\src\ta_func\ta_CDLONNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CDLONNECK.obj ..\..\..\..\..\src\ta_func\ta_CDLONNECK.c + +..\..\..\..\..\temp\csd\ta_CDLPIERCING.obj: ..\..\..\..\..\src\ta_func\ta_CDLPIERCING.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CDLPIERCING.obj ..\..\..\..\..\src\ta_func\ta_CDLPIERCING.c + +..\..\..\..\..\temp\csd\ta_CDLRICKSHAWMAN.obj: ..\..\..\..\..\src\ta_func\ta_CDLRICKSHAWMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CDLRICKSHAWMAN.obj ..\..\..\..\..\src\ta_func\ta_CDLRICKSHAWMAN.c + +..\..\..\..\..\temp\csd\ta_CDLRISEFALL3METHODS.obj: ..\..\..\..\..\src\ta_func\ta_CDLRISEFALL3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CDLRISEFALL3METHODS.obj ..\..\..\..\..\src\ta_func\ta_CDLRISEFALL3METHODS.c + +..\..\..\..\..\temp\csd\ta_CDLSEPARATINGLINES.obj: ..\..\..\..\..\src\ta_func\ta_CDLSEPARATINGLINES.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CDLSEPARATINGLINES.obj ..\..\..\..\..\src\ta_func\ta_CDLSEPARATINGLINES.c + +..\..\..\..\..\temp\csd\ta_CDLSHOOTINGSTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLSHOOTINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CDLSHOOTINGSTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLSHOOTINGSTAR.c + +..\..\..\..\..\temp\csd\ta_CDLSHORTLINE.obj: ..\..\..\..\..\src\ta_func\ta_CDLSHORTLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CDLSHORTLINE.obj ..\..\..\..\..\src\ta_func\ta_CDLSHORTLINE.c + +..\..\..\..\..\temp\csd\ta_CDLSPINNINGTOP.obj: ..\..\..\..\..\src\ta_func\ta_CDLSPINNINGTOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CDLSPINNINGTOP.obj ..\..\..\..\..\src\ta_func\ta_CDLSPINNINGTOP.c + +..\..\..\..\..\temp\csd\ta_CDLSTALLEDPATTERN.obj: ..\..\..\..\..\src\ta_func\ta_CDLSTALLEDPATTERN.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CDLSTALLEDPATTERN.obj ..\..\..\..\..\src\ta_func\ta_CDLSTALLEDPATTERN.c + +..\..\..\..\..\temp\csd\ta_CDLSTICKSANDWICH.obj: ..\..\..\..\..\src\ta_func\ta_CDLSTICKSANDWICH.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CDLSTICKSANDWICH.obj ..\..\..\..\..\src\ta_func\ta_CDLSTICKSANDWICH.c + +..\..\..\..\..\temp\csd\ta_CDLTAKURI.obj: ..\..\..\..\..\src\ta_func\ta_CDLTAKURI.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CDLTAKURI.obj ..\..\..\..\..\src\ta_func\ta_CDLTAKURI.c + +..\..\..\..\..\temp\csd\ta_CDLTASUKIGAP.obj: ..\..\..\..\..\src\ta_func\ta_CDLTASUKIGAP.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CDLTASUKIGAP.obj ..\..\..\..\..\src\ta_func\ta_CDLTASUKIGAP.c + +..\..\..\..\..\temp\csd\ta_CDLTHRUSTING.obj: ..\..\..\..\..\src\ta_func\ta_CDLTHRUSTING.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CDLTHRUSTING.obj ..\..\..\..\..\src\ta_func\ta_CDLTHRUSTING.c + +..\..\..\..\..\temp\csd\ta_CDLTRISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLTRISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CDLTRISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLTRISTAR.c + +..\..\..\..\..\temp\csd\ta_CDLUNIQUE3RIVER.obj: ..\..\..\..\..\src\ta_func\ta_CDLUNIQUE3RIVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CDLUNIQUE3RIVER.obj ..\..\..\..\..\src\ta_func\ta_CDLUNIQUE3RIVER.c + +..\..\..\..\..\temp\csd\ta_CDLUPSIDEGAP2CROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDLUPSIDEGAP2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CDLUPSIDEGAP2CROWS.obj ..\..\..\..\..\src\ta_func\ta_CDLUPSIDEGAP2CROWS.c + +..\..\..\..\..\temp\csd\ta_CDLXSIDEGAP3METHODS.obj: ..\..\..\..\..\src\ta_func\ta_CDLXSIDEGAP3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CDLXSIDEGAP3METHODS.obj ..\..\..\..\..\src\ta_func\ta_CDLXSIDEGAP3METHODS.c + +..\..\..\..\..\temp\csd\ta_CEIL.obj: ..\..\..\..\..\src\ta_func\ta_CEIL.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CEIL.obj ..\..\..\..\..\src\ta_func\ta_CEIL.c + +..\..\..\..\..\temp\csd\ta_CMO.obj: ..\..\..\..\..\src\ta_func\ta_CMO.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CMO.obj ..\..\..\..\..\src\ta_func\ta_CMO.c + +..\..\..\..\..\temp\csd\ta_CORREL.obj: ..\..\..\..\..\src\ta_func\ta_CORREL.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CORREL.obj ..\..\..\..\..\src\ta_func\ta_CORREL.c + +..\..\..\..\..\temp\csd\ta_COS.obj: ..\..\..\..\..\src\ta_func\ta_COS.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_COS.obj ..\..\..\..\..\src\ta_func\ta_COS.c + +..\..\..\..\..\temp\csd\ta_COSH.obj: ..\..\..\..\..\src\ta_func\ta_COSH.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_COSH.obj ..\..\..\..\..\src\ta_func\ta_COSH.c + +..\..\..\..\..\temp\csd\ta_DEMA.obj: ..\..\..\..\..\src\ta_func\ta_DEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_DEMA.obj ..\..\..\..\..\src\ta_func\ta_DEMA.c + +..\..\..\..\..\temp\csd\ta_DIV.obj: ..\..\..\..\..\src\ta_func\ta_DIV.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_DIV.obj ..\..\..\..\..\src\ta_func\ta_DIV.c + +..\..\..\..\..\temp\csd\ta_DX.obj: ..\..\..\..\..\src\ta_func\ta_DX.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_DX.obj ..\..\..\..\..\src\ta_func\ta_DX.c + +..\..\..\..\..\temp\csd\ta_EMA.obj: ..\..\..\..\..\src\ta_func\ta_EMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_EMA.obj ..\..\..\..\..\src\ta_func\ta_EMA.c + +..\..\..\..\..\temp\csd\ta_EXP.obj: ..\..\..\..\..\src\ta_func\ta_EXP.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_EXP.obj ..\..\..\..\..\src\ta_func\ta_EXP.c + +..\..\..\..\..\temp\csd\ta_FLOOR.obj: ..\..\..\..\..\src\ta_func\ta_FLOOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_FLOOR.obj ..\..\..\..\..\src\ta_func\ta_FLOOR.c + +..\..\..\..\..\temp\csd\ta_HT_DCPERIOD.obj: ..\..\..\..\..\src\ta_func\ta_HT_DCPERIOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_HT_DCPERIOD.obj ..\..\..\..\..\src\ta_func\ta_HT_DCPERIOD.c + +..\..\..\..\..\temp\csd\ta_HT_DCPHASE.obj: ..\..\..\..\..\src\ta_func\ta_HT_DCPHASE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_HT_DCPHASE.obj ..\..\..\..\..\src\ta_func\ta_HT_DCPHASE.c + +..\..\..\..\..\temp\csd\ta_HT_PHASOR.obj: ..\..\..\..\..\src\ta_func\ta_HT_PHASOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_HT_PHASOR.obj ..\..\..\..\..\src\ta_func\ta_HT_PHASOR.c + +..\..\..\..\..\temp\csd\ta_HT_SINE.obj: ..\..\..\..\..\src\ta_func\ta_HT_SINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_HT_SINE.obj ..\..\..\..\..\src\ta_func\ta_HT_SINE.c + +..\..\..\..\..\temp\csd\ta_HT_TRENDLINE.obj: ..\..\..\..\..\src\ta_func\ta_HT_TRENDLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_HT_TRENDLINE.obj ..\..\..\..\..\src\ta_func\ta_HT_TRENDLINE.c + +..\..\..\..\..\temp\csd\ta_HT_TRENDMODE.obj: ..\..\..\..\..\src\ta_func\ta_HT_TRENDMODE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_HT_TRENDMODE.obj ..\..\..\..\..\src\ta_func\ta_HT_TRENDMODE.c + +..\..\..\..\..\temp\csd\ta_KAMA.obj: ..\..\..\..\..\src\ta_func\ta_KAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_KAMA.obj ..\..\..\..\..\src\ta_func\ta_KAMA.c + +..\..\..\..\..\temp\csd\ta_LINEARREG.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_LINEARREG.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG.c + +..\..\..\..\..\temp\csd\ta_LINEARREG_ANGLE.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG_ANGLE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_LINEARREG_ANGLE.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG_ANGLE.c + +..\..\..\..\..\temp\csd\ta_LINEARREG_INTERCEPT.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG_INTERCEPT.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_LINEARREG_INTERCEPT.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG_INTERCEPT.c + +..\..\..\..\..\temp\csd\ta_LINEARREG_SLOPE.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG_SLOPE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_LINEARREG_SLOPE.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG_SLOPE.c + +..\..\..\..\..\temp\csd\ta_LN.obj: ..\..\..\..\..\src\ta_func\ta_LN.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_LN.obj ..\..\..\..\..\src\ta_func\ta_LN.c + +..\..\..\..\..\temp\csd\ta_LOG10.obj: ..\..\..\..\..\src\ta_func\ta_LOG10.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_LOG10.obj ..\..\..\..\..\src\ta_func\ta_LOG10.c + +..\..\..\..\..\temp\csd\ta_MA.obj: ..\..\..\..\..\src\ta_func\ta_MA.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_MA.obj ..\..\..\..\..\src\ta_func\ta_MA.c + +..\..\..\..\..\temp\csd\ta_MACD.obj: ..\..\..\..\..\src\ta_func\ta_MACD.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_MACD.obj ..\..\..\..\..\src\ta_func\ta_MACD.c + +..\..\..\..\..\temp\csd\ta_MACDEXT.obj: ..\..\..\..\..\src\ta_func\ta_MACDEXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_MACDEXT.obj ..\..\..\..\..\src\ta_func\ta_MACDEXT.c + +..\..\..\..\..\temp\csd\ta_MACDFIX.obj: ..\..\..\..\..\src\ta_func\ta_MACDFIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_MACDFIX.obj ..\..\..\..\..\src\ta_func\ta_MACDFIX.c + +..\..\..\..\..\temp\csd\ta_MAMA.obj: ..\..\..\..\..\src\ta_func\ta_MAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_MAMA.obj ..\..\..\..\..\src\ta_func\ta_MAMA.c + +..\..\..\..\..\temp\csd\ta_MAVP.obj: ..\..\..\..\..\src\ta_func\ta_MAVP.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_MAVP.obj ..\..\..\..\..\src\ta_func\ta_MAVP.c + +..\..\..\..\..\temp\csd\ta_MAX.obj: ..\..\..\..\..\src\ta_func\ta_MAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_MAX.obj ..\..\..\..\..\src\ta_func\ta_MAX.c + +..\..\..\..\..\temp\csd\ta_MAXINDEX.obj: ..\..\..\..\..\src\ta_func\ta_MAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_MAXINDEX.obj ..\..\..\..\..\src\ta_func\ta_MAXINDEX.c + +..\..\..\..\..\temp\csd\ta_MEDPRICE.obj: ..\..\..\..\..\src\ta_func\ta_MEDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_MEDPRICE.obj ..\..\..\..\..\src\ta_func\ta_MEDPRICE.c + +..\..\..\..\..\temp\csd\ta_MFI.obj: ..\..\..\..\..\src\ta_func\ta_MFI.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_MFI.obj ..\..\..\..\..\src\ta_func\ta_MFI.c + +..\..\..\..\..\temp\csd\ta_MIDPOINT.obj: ..\..\..\..\..\src\ta_func\ta_MIDPOINT.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_MIDPOINT.obj ..\..\..\..\..\src\ta_func\ta_MIDPOINT.c + +..\..\..\..\..\temp\csd\ta_MIDPRICE.obj: ..\..\..\..\..\src\ta_func\ta_MIDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_MIDPRICE.obj ..\..\..\..\..\src\ta_func\ta_MIDPRICE.c + +..\..\..\..\..\temp\csd\ta_MIN.obj: ..\..\..\..\..\src\ta_func\ta_MIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_MIN.obj ..\..\..\..\..\src\ta_func\ta_MIN.c + +..\..\..\..\..\temp\csd\ta_MININDEX.obj: ..\..\..\..\..\src\ta_func\ta_MININDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_MININDEX.obj ..\..\..\..\..\src\ta_func\ta_MININDEX.c + +..\..\..\..\..\temp\csd\ta_MINMAX.obj: ..\..\..\..\..\src\ta_func\ta_MINMAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_MINMAX.obj ..\..\..\..\..\src\ta_func\ta_MINMAX.c + +..\..\..\..\..\temp\csd\ta_MINMAXINDEX.obj: ..\..\..\..\..\src\ta_func\ta_MINMAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_MINMAXINDEX.obj ..\..\..\..\..\src\ta_func\ta_MINMAXINDEX.c + +..\..\..\..\..\temp\csd\ta_MINUS_DI.obj: ..\..\..\..\..\src\ta_func\ta_MINUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_MINUS_DI.obj ..\..\..\..\..\src\ta_func\ta_MINUS_DI.c + +..\..\..\..\..\temp\csd\ta_MINUS_DM.obj: ..\..\..\..\..\src\ta_func\ta_MINUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_MINUS_DM.obj ..\..\..\..\..\src\ta_func\ta_MINUS_DM.c + +..\..\..\..\..\temp\csd\ta_MOM.obj: ..\..\..\..\..\src\ta_func\ta_MOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_MOM.obj ..\..\..\..\..\src\ta_func\ta_MOM.c + +..\..\..\..\..\temp\csd\ta_MULT.obj: ..\..\..\..\..\src\ta_func\ta_MULT.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_MULT.obj ..\..\..\..\..\src\ta_func\ta_MULT.c + +..\..\..\..\..\temp\csd\ta_NATR.obj: ..\..\..\..\..\src\ta_func\ta_NATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_NATR.obj ..\..\..\..\..\src\ta_func\ta_NATR.c + +..\..\..\..\..\temp\csd\ta_OBV.obj: ..\..\..\..\..\src\ta_func\ta_OBV.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_OBV.obj ..\..\..\..\..\src\ta_func\ta_OBV.c + +..\..\..\..\..\temp\csd\ta_PLUS_DI.obj: ..\..\..\..\..\src\ta_func\ta_PLUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_PLUS_DI.obj ..\..\..\..\..\src\ta_func\ta_PLUS_DI.c + +..\..\..\..\..\temp\csd\ta_PLUS_DM.obj: ..\..\..\..\..\src\ta_func\ta_PLUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_PLUS_DM.obj ..\..\..\..\..\src\ta_func\ta_PLUS_DM.c + +..\..\..\..\..\temp\csd\ta_PPO.obj: ..\..\..\..\..\src\ta_func\ta_PPO.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_PPO.obj ..\..\..\..\..\src\ta_func\ta_PPO.c + +..\..\..\..\..\temp\csd\ta_ROC.obj: ..\..\..\..\..\src\ta_func\ta_ROC.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_ROC.obj ..\..\..\..\..\src\ta_func\ta_ROC.c + +..\..\..\..\..\temp\csd\ta_ROCP.obj: ..\..\..\..\..\src\ta_func\ta_ROCP.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_ROCP.obj ..\..\..\..\..\src\ta_func\ta_ROCP.c + +..\..\..\..\..\temp\csd\ta_ROCR.obj: ..\..\..\..\..\src\ta_func\ta_ROCR.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_ROCR.obj ..\..\..\..\..\src\ta_func\ta_ROCR.c + +..\..\..\..\..\temp\csd\ta_ROCR100.obj: ..\..\..\..\..\src\ta_func\ta_ROCR100.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_ROCR100.obj ..\..\..\..\..\src\ta_func\ta_ROCR100.c + +..\..\..\..\..\temp\csd\ta_RSI.obj: ..\..\..\..\..\src\ta_func\ta_RSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_RSI.obj ..\..\..\..\..\src\ta_func\ta_RSI.c + +..\..\..\..\..\temp\csd\ta_SAR.obj: ..\..\..\..\..\src\ta_func\ta_SAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_SAR.obj ..\..\..\..\..\src\ta_func\ta_SAR.c + +..\..\..\..\..\temp\csd\ta_SAREXT.obj: ..\..\..\..\..\src\ta_func\ta_SAREXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_SAREXT.obj ..\..\..\..\..\src\ta_func\ta_SAREXT.c + +..\..\..\..\..\temp\csd\ta_SIN.obj: ..\..\..\..\..\src\ta_func\ta_SIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_SIN.obj ..\..\..\..\..\src\ta_func\ta_SIN.c + +..\..\..\..\..\temp\csd\ta_SINH.obj: ..\..\..\..\..\src\ta_func\ta_SINH.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_SINH.obj ..\..\..\..\..\src\ta_func\ta_SINH.c + +..\..\..\..\..\temp\csd\ta_SMA.obj: ..\..\..\..\..\src\ta_func\ta_SMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_SMA.obj ..\..\..\..\..\src\ta_func\ta_SMA.c + +..\..\..\..\..\temp\csd\ta_SQRT.obj: ..\..\..\..\..\src\ta_func\ta_SQRT.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_SQRT.obj ..\..\..\..\..\src\ta_func\ta_SQRT.c + +..\..\..\..\..\temp\csd\ta_STDDEV.obj: ..\..\..\..\..\src\ta_func\ta_STDDEV.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_STDDEV.obj ..\..\..\..\..\src\ta_func\ta_STDDEV.c + +..\..\..\..\..\temp\csd\ta_STOCH.obj: ..\..\..\..\..\src\ta_func\ta_STOCH.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_STOCH.obj ..\..\..\..\..\src\ta_func\ta_STOCH.c + +..\..\..\..\..\temp\csd\ta_STOCHF.obj: ..\..\..\..\..\src\ta_func\ta_STOCHF.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_STOCHF.obj ..\..\..\..\..\src\ta_func\ta_STOCHF.c + +..\..\..\..\..\temp\csd\ta_STOCHRSI.obj: ..\..\..\..\..\src\ta_func\ta_STOCHRSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_STOCHRSI.obj ..\..\..\..\..\src\ta_func\ta_STOCHRSI.c + +..\..\..\..\..\temp\csd\ta_SUB.obj: ..\..\..\..\..\src\ta_func\ta_SUB.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_SUB.obj ..\..\..\..\..\src\ta_func\ta_SUB.c + +..\..\..\..\..\temp\csd\ta_SUM.obj: ..\..\..\..\..\src\ta_func\ta_SUM.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_SUM.obj ..\..\..\..\..\src\ta_func\ta_SUM.c + +..\..\..\..\..\temp\csd\ta_T3.obj: ..\..\..\..\..\src\ta_func\ta_T3.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_T3.obj ..\..\..\..\..\src\ta_func\ta_T3.c + +..\..\..\..\..\temp\csd\ta_TAN.obj: ..\..\..\..\..\src\ta_func\ta_TAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_TAN.obj ..\..\..\..\..\src\ta_func\ta_TAN.c + +..\..\..\..\..\temp\csd\ta_TANH.obj: ..\..\..\..\..\src\ta_func\ta_TANH.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_TANH.obj ..\..\..\..\..\src\ta_func\ta_TANH.c + +..\..\..\..\..\temp\csd\ta_TEMA.obj: ..\..\..\..\..\src\ta_func\ta_TEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_TEMA.obj ..\..\..\..\..\src\ta_func\ta_TEMA.c + +..\..\..\..\..\temp\csd\ta_TRANGE.obj: ..\..\..\..\..\src\ta_func\ta_TRANGE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_TRANGE.obj ..\..\..\..\..\src\ta_func\ta_TRANGE.c + +..\..\..\..\..\temp\csd\ta_TRIMA.obj: ..\..\..\..\..\src\ta_func\ta_TRIMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_TRIMA.obj ..\..\..\..\..\src\ta_func\ta_TRIMA.c + +..\..\..\..\..\temp\csd\ta_TRIX.obj: ..\..\..\..\..\src\ta_func\ta_TRIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_TRIX.obj ..\..\..\..\..\src\ta_func\ta_TRIX.c + +..\..\..\..\..\temp\csd\ta_TSF.obj: ..\..\..\..\..\src\ta_func\ta_TSF.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_TSF.obj ..\..\..\..\..\src\ta_func\ta_TSF.c + +..\..\..\..\..\temp\csd\ta_TYPPRICE.obj: ..\..\..\..\..\src\ta_func\ta_TYPPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_TYPPRICE.obj ..\..\..\..\..\src\ta_func\ta_TYPPRICE.c + +..\..\..\..\..\temp\csd\ta_ULTOSC.obj: ..\..\..\..\..\src\ta_func\ta_ULTOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_ULTOSC.obj ..\..\..\..\..\src\ta_func\ta_ULTOSC.c + +..\..\..\..\..\temp\csd\ta_VAR.obj: ..\..\..\..\..\src\ta_func\ta_VAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_VAR.obj ..\..\..\..\..\src\ta_func\ta_VAR.c + +..\..\..\..\..\temp\csd\ta_WCLPRICE.obj: ..\..\..\..\..\src\ta_func\ta_WCLPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_WCLPRICE.obj ..\..\..\..\..\src\ta_func\ta_WCLPRICE.c + +..\..\..\..\..\temp\csd\ta_WILLR.obj: ..\..\..\..\..\src\ta_func\ta_WILLR.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_WILLR.obj ..\..\..\..\..\src\ta_func\ta_WILLR.c + +..\..\..\..\..\temp\csd\ta_WMA.obj: ..\..\..\..\..\src\ta_func\ta_WMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_WMA.obj ..\..\..\..\..\src\ta_func\ta_WMA.c + diff --git a/make/csd/win32/watcom/ta_libc/Makefile b/make/csd/win32/watcom/ta_libc/Makefile new file mode 100644 index 000000000..df2a44259 --- /dev/null +++ b/make/csd/win32/watcom/ta_libc/Makefile @@ -0,0 +1,1219 @@ +############################################################################# +# Makefile for building ta_libc_csd +# Generated by tmake; +# Project: ta_libc/ta_libc +# Template: lib +############################################################################# + +####### Compiler, tools and options + +QTDIR = +CC = wcl386 +CXX = wcl386 +CFLAGS = -zq -w2 -d2 -d=TA_DEBUG -d=_DEBUG -d=TA_SINGLE_THREAD -d=WIN32 +CXXFLAGS= -zq -w2 -d2 -d=TA_DEBUG -d=_DEBUG -d=TA_SINGLE_THREAD -d=WIN32 +INCPATH = -i="..\..\..\..\..\src\ta_common" -i="..\..\..\..\..\include" -i="..\..\..\..\..\src\ta_abstract" -i="..\..\..\..\..\src\ta_abstract\tables" -i="..\..\..\..\..\src\ta_abstract\frames" -i="$(QTDIR)\include" +LIB = wlib -b -c -n -q -p=512 +MOC = moc + +ZIP = zip -r -9 + +####### Files + +HEADERS = +SOURCES = ..\..\..\..\..\src\ta_common\ta_global.c & + ..\..\..\..\..\src\ta_common\ta_retcode.c & + ..\..\..\..\..\src\ta_common\ta_version.c & + ..\..\..\..\..\src\ta_abstract\ta_abstract.c & + ..\..\..\..\..\src\ta_abstract\ta_def_ui.c & + ..\..\..\..\..\src\ta_abstract\ta_func_api.c & + ..\..\..\..\..\src\ta_abstract\ta_group_idx.c & + ..\..\..\..\..\src\ta_abstract\frames\ta_frame.c & + ..\..\..\..\..\src\ta_abstract\tables\table_a.c & + ..\..\..\..\..\src\ta_abstract\tables\table_b.c & + ..\..\..\..\..\src\ta_abstract\tables\table_c.c & + ..\..\..\..\..\src\ta_abstract\tables\table_d.c & + ..\..\..\..\..\src\ta_abstract\tables\table_e.c & + ..\..\..\..\..\src\ta_abstract\tables\table_f.c & + ..\..\..\..\..\src\ta_abstract\tables\table_g.c & + ..\..\..\..\..\src\ta_abstract\tables\table_h.c & + ..\..\..\..\..\src\ta_abstract\tables\table_i.c & + ..\..\..\..\..\src\ta_abstract\tables\table_j.c & + ..\..\..\..\..\src\ta_abstract\tables\table_k.c & + ..\..\..\..\..\src\ta_abstract\tables\table_l.c & + ..\..\..\..\..\src\ta_abstract\tables\table_m.c & + ..\..\..\..\..\src\ta_abstract\tables\table_n.c & + ..\..\..\..\..\src\ta_abstract\tables\table_o.c & + ..\..\..\..\..\src\ta_abstract\tables\table_p.c & + ..\..\..\..\..\src\ta_abstract\tables\table_q.c & + ..\..\..\..\..\src\ta_abstract\tables\table_r.c & + ..\..\..\..\..\src\ta_abstract\tables\table_s.c & + ..\..\..\..\..\src\ta_abstract\tables\table_t.c & + ..\..\..\..\..\src\ta_abstract\tables\table_u.c & + ..\..\..\..\..\src\ta_abstract\tables\table_v.c & + ..\..\..\..\..\src\ta_abstract\tables\table_w.c & + ..\..\..\..\..\src\ta_abstract\tables\table_x.c & + ..\..\..\..\..\src\ta_abstract\tables\table_y.c & + ..\..\..\..\..\src\ta_abstract\tables\table_z.c & + ..\..\..\..\..\src\ta_func\ta_utility.c & + ..\..\..\..\..\src\ta_func\ta_ACOS.c & + ..\..\..\..\..\src\ta_func\ta_AD.c & + ..\..\..\..\..\src\ta_func\ta_ADD.c & + ..\..\..\..\..\src\ta_func\ta_ADOSC.c & + ..\..\..\..\..\src\ta_func\ta_ADX.c & + ..\..\..\..\..\src\ta_func\ta_ADXR.c & + ..\..\..\..\..\src\ta_func\ta_APO.c & + ..\..\..\..\..\src\ta_func\ta_AROON.c & + ..\..\..\..\..\src\ta_func\ta_AROONOSC.c & + ..\..\..\..\..\src\ta_func\ta_ASIN.c & + ..\..\..\..\..\src\ta_func\ta_ATAN.c & + ..\..\..\..\..\src\ta_func\ta_ATR.c & + ..\..\..\..\..\src\ta_func\ta_AVGPRICE.c & + ..\..\..\..\..\src\ta_func\ta_BBANDS.c & + ..\..\..\..\..\src\ta_func\ta_BETA.c & + ..\..\..\..\..\src\ta_func\ta_BOP.c & + ..\..\..\..\..\src\ta_func\ta_CCI.c & + ..\..\..\..\..\src\ta_func\ta_CDL2CROWS.c & + ..\..\..\..\..\src\ta_func\ta_CDL3BLACKCROWS.c & + ..\..\..\..\..\src\ta_func\ta_CDL3INSIDE.c & + ..\..\..\..\..\src\ta_func\ta_CDL3LINESTRIKE.c & + ..\..\..\..\..\src\ta_func\ta_CDL3OUTSIDE.c & + ..\..\..\..\..\src\ta_func\ta_CDL3STARSINSOUTH.c & + ..\..\..\..\..\src\ta_func\ta_CDL3WHITESOLDIERS.c & + ..\..\..\..\..\src\ta_func\ta_CDLABANDONEDBABY.c & + ..\..\..\..\..\src\ta_func\ta_CDLADVANCEBLOCK.c & + ..\..\..\..\..\src\ta_func\ta_CDLBELTHOLD.c & + ..\..\..\..\..\src\ta_func\ta_CDLBREAKAWAY.c & + ..\..\..\..\..\src\ta_func\ta_CDLCLOSINGMARUBOZU.c & + ..\..\..\..\..\src\ta_func\ta_CDLCONCEALBABYSWALL.c & + ..\..\..\..\..\src\ta_func\ta_CDLCOUNTERATTACK.c & + ..\..\..\..\..\src\ta_func\ta_CDLDARKCLOUDCOVER.c & + ..\..\..\..\..\src\ta_func\ta_CDLDOJI.c & + ..\..\..\..\..\src\ta_func\ta_CDLDOJISTAR.c & + ..\..\..\..\..\src\ta_func\ta_CDLDRAGONFLYDOJI.c & + ..\..\..\..\..\src\ta_func\ta_CDLENGULFING.c & + ..\..\..\..\..\src\ta_func\ta_CDLEVENINGDOJISTAR.c & + ..\..\..\..\..\src\ta_func\ta_CDLEVENINGSTAR.c & + ..\..\..\..\..\src\ta_func\ta_CDLGAPSIDESIDEWHITE.c & + ..\..\..\..\..\src\ta_func\ta_CDLGRAVESTONEDOJI.c & + ..\..\..\..\..\src\ta_func\ta_CDLHAMMER.c & + ..\..\..\..\..\src\ta_func\ta_CDLHANGINGMAN.c & + ..\..\..\..\..\src\ta_func\ta_CDLHARAMI.c & + ..\..\..\..\..\src\ta_func\ta_CDLHARAMICROSS.c & + ..\..\..\..\..\src\ta_func\ta_CDLHIGHWAVE.c & + ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKE.c & + ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKEMOD.c & + ..\..\..\..\..\src\ta_func\ta_CDLHOMINGPIGEON.c & + ..\..\..\..\..\src\ta_func\ta_CDLIDENTICAL3CROWS.c & + ..\..\..\..\..\src\ta_func\ta_CDLINNECK.c & + ..\..\..\..\..\src\ta_func\ta_CDLINVERTEDHAMMER.c & + ..\..\..\..\..\src\ta_func\ta_CDLKICKING.c & + ..\..\..\..\..\src\ta_func\ta_CDLKICKINGBYLENGTH.c & + ..\..\..\..\..\src\ta_func\ta_CDLLADDERBOTTOM.c & + ..\..\..\..\..\src\ta_func\ta_CDLLONGLEGGEDDOJI.c & + ..\..\..\..\..\src\ta_func\ta_CDLLONGLINE.c & + ..\..\..\..\..\src\ta_func\ta_CDLMARUBOZU.c & + ..\..\..\..\..\src\ta_func\ta_CDLMATCHINGLOW.c & + ..\..\..\..\..\src\ta_func\ta_CDLMATHOLD.c & + ..\..\..\..\..\src\ta_func\ta_CDLMORNINGDOJISTAR.c & + ..\..\..\..\..\src\ta_func\ta_CDLMORNINGSTAR.c & + ..\..\..\..\..\src\ta_func\ta_CDLONNECK.c & + ..\..\..\..\..\src\ta_func\ta_CDLPIERCING.c & + ..\..\..\..\..\src\ta_func\ta_CDLRICKSHAWMAN.c & + ..\..\..\..\..\src\ta_func\ta_CDLRISEFALL3METHODS.c & + ..\..\..\..\..\src\ta_func\ta_CDLSEPARATINGLINES.c & + ..\..\..\..\..\src\ta_func\ta_CDLSHOOTINGSTAR.c & + ..\..\..\..\..\src\ta_func\ta_CDLSHORTLINE.c & + ..\..\..\..\..\src\ta_func\ta_CDLSPINNINGTOP.c & + ..\..\..\..\..\src\ta_func\ta_CDLSTALLEDPATTERN.c & + ..\..\..\..\..\src\ta_func\ta_CDLSTICKSANDWICH.c & + ..\..\..\..\..\src\ta_func\ta_CDLTAKURI.c & + ..\..\..\..\..\src\ta_func\ta_CDLTASUKIGAP.c & + ..\..\..\..\..\src\ta_func\ta_CDLTHRUSTING.c & + ..\..\..\..\..\src\ta_func\ta_CDLTRISTAR.c & + ..\..\..\..\..\src\ta_func\ta_CDLUNIQUE3RIVER.c & + ..\..\..\..\..\src\ta_func\ta_CDLUPSIDEGAP2CROWS.c & + ..\..\..\..\..\src\ta_func\ta_CDLXSIDEGAP3METHODS.c & + ..\..\..\..\..\src\ta_func\ta_CEIL.c & + ..\..\..\..\..\src\ta_func\ta_CMO.c & + ..\..\..\..\..\src\ta_func\ta_CORREL.c & + ..\..\..\..\..\src\ta_func\ta_COS.c & + ..\..\..\..\..\src\ta_func\ta_COSH.c & + ..\..\..\..\..\src\ta_func\ta_DEMA.c & + ..\..\..\..\..\src\ta_func\ta_DIV.c & + ..\..\..\..\..\src\ta_func\ta_DX.c & + ..\..\..\..\..\src\ta_func\ta_EMA.c & + ..\..\..\..\..\src\ta_func\ta_EXP.c & + ..\..\..\..\..\src\ta_func\ta_FLOOR.c & + ..\..\..\..\..\src\ta_func\ta_HT_DCPERIOD.c & + ..\..\..\..\..\src\ta_func\ta_HT_DCPHASE.c & + ..\..\..\..\..\src\ta_func\ta_HT_PHASOR.c & + ..\..\..\..\..\src\ta_func\ta_HT_SINE.c & + ..\..\..\..\..\src\ta_func\ta_HT_TRENDLINE.c & + ..\..\..\..\..\src\ta_func\ta_HT_TRENDMODE.c & + ..\..\..\..\..\src\ta_func\ta_KAMA.c & + ..\..\..\..\..\src\ta_func\ta_LINEARREG.c & + ..\..\..\..\..\src\ta_func\ta_LINEARREG_ANGLE.c & + ..\..\..\..\..\src\ta_func\ta_LINEARREG_INTERCEPT.c & + ..\..\..\..\..\src\ta_func\ta_LINEARREG_SLOPE.c & + ..\..\..\..\..\src\ta_func\ta_LN.c & + ..\..\..\..\..\src\ta_func\ta_LOG10.c & + ..\..\..\..\..\src\ta_func\ta_MA.c & + ..\..\..\..\..\src\ta_func\ta_MACD.c & + ..\..\..\..\..\src\ta_func\ta_MACDEXT.c & + ..\..\..\..\..\src\ta_func\ta_MACDFIX.c & + ..\..\..\..\..\src\ta_func\ta_MAMA.c & + ..\..\..\..\..\src\ta_func\ta_MAVP.c & + ..\..\..\..\..\src\ta_func\ta_MAX.c & + ..\..\..\..\..\src\ta_func\ta_MAXINDEX.c & + ..\..\..\..\..\src\ta_func\ta_MEDPRICE.c & + ..\..\..\..\..\src\ta_func\ta_MFI.c & + ..\..\..\..\..\src\ta_func\ta_MIDPOINT.c & + ..\..\..\..\..\src\ta_func\ta_MIDPRICE.c & + ..\..\..\..\..\src\ta_func\ta_MIN.c & + ..\..\..\..\..\src\ta_func\ta_MININDEX.c & + ..\..\..\..\..\src\ta_func\ta_MINMAX.c & + ..\..\..\..\..\src\ta_func\ta_MINMAXINDEX.c & + ..\..\..\..\..\src\ta_func\ta_MINUS_DI.c & + ..\..\..\..\..\src\ta_func\ta_MINUS_DM.c & + ..\..\..\..\..\src\ta_func\ta_MOM.c & + ..\..\..\..\..\src\ta_func\ta_MULT.c & + ..\..\..\..\..\src\ta_func\ta_NATR.c & + ..\..\..\..\..\src\ta_func\ta_OBV.c & + ..\..\..\..\..\src\ta_func\ta_PLUS_DI.c & + ..\..\..\..\..\src\ta_func\ta_PLUS_DM.c & + ..\..\..\..\..\src\ta_func\ta_PPO.c & + ..\..\..\..\..\src\ta_func\ta_ROC.c & + ..\..\..\..\..\src\ta_func\ta_ROCP.c & + ..\..\..\..\..\src\ta_func\ta_ROCR.c & + ..\..\..\..\..\src\ta_func\ta_ROCR100.c & + ..\..\..\..\..\src\ta_func\ta_RSI.c & + ..\..\..\..\..\src\ta_func\ta_SAR.c & + ..\..\..\..\..\src\ta_func\ta_SAREXT.c & + ..\..\..\..\..\src\ta_func\ta_SIN.c & + ..\..\..\..\..\src\ta_func\ta_SINH.c & + ..\..\..\..\..\src\ta_func\ta_SMA.c & + ..\..\..\..\..\src\ta_func\ta_SQRT.c & + ..\..\..\..\..\src\ta_func\ta_STDDEV.c & + ..\..\..\..\..\src\ta_func\ta_STOCH.c & + ..\..\..\..\..\src\ta_func\ta_STOCHF.c & + ..\..\..\..\..\src\ta_func\ta_STOCHRSI.c & + ..\..\..\..\..\src\ta_func\ta_SUB.c & + ..\..\..\..\..\src\ta_func\ta_SUM.c & + ..\..\..\..\..\src\ta_func\ta_T3.c & + ..\..\..\..\..\src\ta_func\ta_TAN.c & + ..\..\..\..\..\src\ta_func\ta_TANH.c & + ..\..\..\..\..\src\ta_func\ta_TEMA.c & + ..\..\..\..\..\src\ta_func\ta_TRANGE.c & + ..\..\..\..\..\src\ta_func\ta_TRIMA.c & + ..\..\..\..\..\src\ta_func\ta_TRIX.c & + ..\..\..\..\..\src\ta_func\ta_TSF.c & + ..\..\..\..\..\src\ta_func\ta_TYPPRICE.c & + ..\..\..\..\..\src\ta_func\ta_ULTOSC.c & + ..\..\..\..\..\src\ta_func\ta_VAR.c & + ..\..\..\..\..\src\ta_func\ta_WCLPRICE.c & + ..\..\..\..\..\src\ta_func\ta_WILLR.c & + ..\..\..\..\..\src\ta_func\ta_WMA.c +OBJECTS = ..\..\..\..\..\temp\csd\ta_global.obj & + ..\..\..\..\..\temp\csd\ta_retcode.obj & + ..\..\..\..\..\temp\csd\ta_version.obj & + ..\..\..\..\..\temp\csd\ta_abstract.obj & + ..\..\..\..\..\temp\csd\ta_def_ui.obj & + ..\..\..\..\..\temp\csd\ta_func_api.obj & + ..\..\..\..\..\temp\csd\ta_group_idx.obj & + ..\..\..\..\..\temp\csd\ta_frame.obj & + ..\..\..\..\..\temp\csd\table_a.obj & + ..\..\..\..\..\temp\csd\table_b.obj & + ..\..\..\..\..\temp\csd\table_c.obj & + ..\..\..\..\..\temp\csd\table_d.obj & + ..\..\..\..\..\temp\csd\table_e.obj & + ..\..\..\..\..\temp\csd\table_f.obj & + ..\..\..\..\..\temp\csd\table_g.obj & + ..\..\..\..\..\temp\csd\table_h.obj & + ..\..\..\..\..\temp\csd\table_i.obj & + ..\..\..\..\..\temp\csd\table_j.obj & + ..\..\..\..\..\temp\csd\table_k.obj & + ..\..\..\..\..\temp\csd\table_l.obj & + ..\..\..\..\..\temp\csd\table_m.obj & + ..\..\..\..\..\temp\csd\table_n.obj & + ..\..\..\..\..\temp\csd\table_o.obj & + ..\..\..\..\..\temp\csd\table_p.obj & + ..\..\..\..\..\temp\csd\table_q.obj & + ..\..\..\..\..\temp\csd\table_r.obj & + ..\..\..\..\..\temp\csd\table_s.obj & + ..\..\..\..\..\temp\csd\table_t.obj & + ..\..\..\..\..\temp\csd\table_u.obj & + ..\..\..\..\..\temp\csd\table_v.obj & + ..\..\..\..\..\temp\csd\table_w.obj & + ..\..\..\..\..\temp\csd\table_x.obj & + ..\..\..\..\..\temp\csd\table_y.obj & + ..\..\..\..\..\temp\csd\table_z.obj & + ..\..\..\..\..\temp\csd\ta_utility.obj & + ..\..\..\..\..\temp\csd\ta_ACOS.obj & + ..\..\..\..\..\temp\csd\ta_AD.obj & + ..\..\..\..\..\temp\csd\ta_ADD.obj & + ..\..\..\..\..\temp\csd\ta_ADOSC.obj & + ..\..\..\..\..\temp\csd\ta_ADX.obj & + ..\..\..\..\..\temp\csd\ta_ADXR.obj & + ..\..\..\..\..\temp\csd\ta_APO.obj & + ..\..\..\..\..\temp\csd\ta_AROON.obj & + ..\..\..\..\..\temp\csd\ta_AROONOSC.obj & + ..\..\..\..\..\temp\csd\ta_ASIN.obj & + ..\..\..\..\..\temp\csd\ta_ATAN.obj & + ..\..\..\..\..\temp\csd\ta_ATR.obj & + ..\..\..\..\..\temp\csd\ta_AVGPRICE.obj & + ..\..\..\..\..\temp\csd\ta_BBANDS.obj & + ..\..\..\..\..\temp\csd\ta_BETA.obj & + ..\..\..\..\..\temp\csd\ta_BOP.obj & + ..\..\..\..\..\temp\csd\ta_CCI.obj & + ..\..\..\..\..\temp\csd\ta_CDL2CROWS.obj & + ..\..\..\..\..\temp\csd\ta_CDL3BLACKCROWS.obj & + ..\..\..\..\..\temp\csd\ta_CDL3INSIDE.obj & + ..\..\..\..\..\temp\csd\ta_CDL3LINESTRIKE.obj & + ..\..\..\..\..\temp\csd\ta_CDL3OUTSIDE.obj & + ..\..\..\..\..\temp\csd\ta_CDL3STARSINSOUTH.obj & + ..\..\..\..\..\temp\csd\ta_CDL3WHITESOLDIERS.obj & + ..\..\..\..\..\temp\csd\ta_CDLABANDONEDBABY.obj & + ..\..\..\..\..\temp\csd\ta_CDLADVANCEBLOCK.obj & + ..\..\..\..\..\temp\csd\ta_CDLBELTHOLD.obj & + ..\..\..\..\..\temp\csd\ta_CDLBREAKAWAY.obj & + ..\..\..\..\..\temp\csd\ta_CDLCLOSINGMARUBOZU.obj & + ..\..\..\..\..\temp\csd\ta_CDLCONCEALBABYSWALL.obj & + ..\..\..\..\..\temp\csd\ta_CDLCOUNTERATTACK.obj & + ..\..\..\..\..\temp\csd\ta_CDLDARKCLOUDCOVER.obj & + ..\..\..\..\..\temp\csd\ta_CDLDOJI.obj & + ..\..\..\..\..\temp\csd\ta_CDLDOJISTAR.obj & + ..\..\..\..\..\temp\csd\ta_CDLDRAGONFLYDOJI.obj & + ..\..\..\..\..\temp\csd\ta_CDLENGULFING.obj & + ..\..\..\..\..\temp\csd\ta_CDLEVENINGDOJISTAR.obj & + ..\..\..\..\..\temp\csd\ta_CDLEVENINGSTAR.obj & + ..\..\..\..\..\temp\csd\ta_CDLGAPSIDESIDEWHITE.obj & + ..\..\..\..\..\temp\csd\ta_CDLGRAVESTONEDOJI.obj & + ..\..\..\..\..\temp\csd\ta_CDLHAMMER.obj & + ..\..\..\..\..\temp\csd\ta_CDLHANGINGMAN.obj & + ..\..\..\..\..\temp\csd\ta_CDLHARAMI.obj & + ..\..\..\..\..\temp\csd\ta_CDLHARAMICROSS.obj & + ..\..\..\..\..\temp\csd\ta_CDLHIGHWAVE.obj & + ..\..\..\..\..\temp\csd\ta_CDLHIKKAKE.obj & + ..\..\..\..\..\temp\csd\ta_CDLHIKKAKEMOD.obj & + ..\..\..\..\..\temp\csd\ta_CDLHOMINGPIGEON.obj & + ..\..\..\..\..\temp\csd\ta_CDLIDENTICAL3CROWS.obj & + ..\..\..\..\..\temp\csd\ta_CDLINNECK.obj & + ..\..\..\..\..\temp\csd\ta_CDLINVERTEDHAMMER.obj & + ..\..\..\..\..\temp\csd\ta_CDLKICKING.obj & + ..\..\..\..\..\temp\csd\ta_CDLKICKINGBYLENGTH.obj & + ..\..\..\..\..\temp\csd\ta_CDLLADDERBOTTOM.obj & + ..\..\..\..\..\temp\csd\ta_CDLLONGLEGGEDDOJI.obj & + ..\..\..\..\..\temp\csd\ta_CDLLONGLINE.obj & + ..\..\..\..\..\temp\csd\ta_CDLMARUBOZU.obj & + ..\..\..\..\..\temp\csd\ta_CDLMATCHINGLOW.obj & + ..\..\..\..\..\temp\csd\ta_CDLMATHOLD.obj & + ..\..\..\..\..\temp\csd\ta_CDLMORNINGDOJISTAR.obj & + ..\..\..\..\..\temp\csd\ta_CDLMORNINGSTAR.obj & + ..\..\..\..\..\temp\csd\ta_CDLONNECK.obj & + ..\..\..\..\..\temp\csd\ta_CDLPIERCING.obj & + ..\..\..\..\..\temp\csd\ta_CDLRICKSHAWMAN.obj & + ..\..\..\..\..\temp\csd\ta_CDLRISEFALL3METHODS.obj & + ..\..\..\..\..\temp\csd\ta_CDLSEPARATINGLINES.obj & + ..\..\..\..\..\temp\csd\ta_CDLSHOOTINGSTAR.obj & + ..\..\..\..\..\temp\csd\ta_CDLSHORTLINE.obj & + ..\..\..\..\..\temp\csd\ta_CDLSPINNINGTOP.obj & + ..\..\..\..\..\temp\csd\ta_CDLSTALLEDPATTERN.obj & + ..\..\..\..\..\temp\csd\ta_CDLSTICKSANDWICH.obj & + ..\..\..\..\..\temp\csd\ta_CDLTAKURI.obj & + ..\..\..\..\..\temp\csd\ta_CDLTASUKIGAP.obj & + ..\..\..\..\..\temp\csd\ta_CDLTHRUSTING.obj & + ..\..\..\..\..\temp\csd\ta_CDLTRISTAR.obj & + ..\..\..\..\..\temp\csd\ta_CDLUNIQUE3RIVER.obj & + ..\..\..\..\..\temp\csd\ta_CDLUPSIDEGAP2CROWS.obj & + ..\..\..\..\..\temp\csd\ta_CDLXSIDEGAP3METHODS.obj & + ..\..\..\..\..\temp\csd\ta_CEIL.obj & + ..\..\..\..\..\temp\csd\ta_CMO.obj & + ..\..\..\..\..\temp\csd\ta_CORREL.obj & + ..\..\..\..\..\temp\csd\ta_COS.obj & + ..\..\..\..\..\temp\csd\ta_COSH.obj & + ..\..\..\..\..\temp\csd\ta_DEMA.obj & + ..\..\..\..\..\temp\csd\ta_DIV.obj & + ..\..\..\..\..\temp\csd\ta_DX.obj & + ..\..\..\..\..\temp\csd\ta_EMA.obj & + ..\..\..\..\..\temp\csd\ta_EXP.obj & + ..\..\..\..\..\temp\csd\ta_FLOOR.obj & + ..\..\..\..\..\temp\csd\ta_HT_DCPERIOD.obj & + ..\..\..\..\..\temp\csd\ta_HT_DCPHASE.obj & + ..\..\..\..\..\temp\csd\ta_HT_PHASOR.obj & + ..\..\..\..\..\temp\csd\ta_HT_SINE.obj & + ..\..\..\..\..\temp\csd\ta_HT_TRENDLINE.obj & + ..\..\..\..\..\temp\csd\ta_HT_TRENDMODE.obj & + ..\..\..\..\..\temp\csd\ta_KAMA.obj & + ..\..\..\..\..\temp\csd\ta_LINEARREG.obj & + ..\..\..\..\..\temp\csd\ta_LINEARREG_ANGLE.obj & + ..\..\..\..\..\temp\csd\ta_LINEARREG_INTERCEPT.obj & + ..\..\..\..\..\temp\csd\ta_LINEARREG_SLOPE.obj & + ..\..\..\..\..\temp\csd\ta_LN.obj & + ..\..\..\..\..\temp\csd\ta_LOG10.obj & + ..\..\..\..\..\temp\csd\ta_MA.obj & + ..\..\..\..\..\temp\csd\ta_MACD.obj & + ..\..\..\..\..\temp\csd\ta_MACDEXT.obj & + ..\..\..\..\..\temp\csd\ta_MACDFIX.obj & + ..\..\..\..\..\temp\csd\ta_MAMA.obj & + ..\..\..\..\..\temp\csd\ta_MAVP.obj & + ..\..\..\..\..\temp\csd\ta_MAX.obj & + ..\..\..\..\..\temp\csd\ta_MAXINDEX.obj & + ..\..\..\..\..\temp\csd\ta_MEDPRICE.obj & + ..\..\..\..\..\temp\csd\ta_MFI.obj & + ..\..\..\..\..\temp\csd\ta_MIDPOINT.obj & + ..\..\..\..\..\temp\csd\ta_MIDPRICE.obj & + ..\..\..\..\..\temp\csd\ta_MIN.obj & + ..\..\..\..\..\temp\csd\ta_MININDEX.obj & + ..\..\..\..\..\temp\csd\ta_MINMAX.obj & + ..\..\..\..\..\temp\csd\ta_MINMAXINDEX.obj & + ..\..\..\..\..\temp\csd\ta_MINUS_DI.obj & + ..\..\..\..\..\temp\csd\ta_MINUS_DM.obj & + ..\..\..\..\..\temp\csd\ta_MOM.obj & + ..\..\..\..\..\temp\csd\ta_MULT.obj & + ..\..\..\..\..\temp\csd\ta_NATR.obj & + ..\..\..\..\..\temp\csd\ta_OBV.obj & + ..\..\..\..\..\temp\csd\ta_PLUS_DI.obj & + ..\..\..\..\..\temp\csd\ta_PLUS_DM.obj & + ..\..\..\..\..\temp\csd\ta_PPO.obj & + ..\..\..\..\..\temp\csd\ta_ROC.obj & + ..\..\..\..\..\temp\csd\ta_ROCP.obj & + ..\..\..\..\..\temp\csd\ta_ROCR.obj & + ..\..\..\..\..\temp\csd\ta_ROCR100.obj & + ..\..\..\..\..\temp\csd\ta_RSI.obj & + ..\..\..\..\..\temp\csd\ta_SAR.obj & + ..\..\..\..\..\temp\csd\ta_SAREXT.obj & + ..\..\..\..\..\temp\csd\ta_SIN.obj & + ..\..\..\..\..\temp\csd\ta_SINH.obj & + ..\..\..\..\..\temp\csd\ta_SMA.obj & + ..\..\..\..\..\temp\csd\ta_SQRT.obj & + ..\..\..\..\..\temp\csd\ta_STDDEV.obj & + ..\..\..\..\..\temp\csd\ta_STOCH.obj & + ..\..\..\..\..\temp\csd\ta_STOCHF.obj & + ..\..\..\..\..\temp\csd\ta_STOCHRSI.obj & + ..\..\..\..\..\temp\csd\ta_SUB.obj & + ..\..\..\..\..\temp\csd\ta_SUM.obj & + ..\..\..\..\..\temp\csd\ta_T3.obj & + ..\..\..\..\..\temp\csd\ta_TAN.obj & + ..\..\..\..\..\temp\csd\ta_TANH.obj & + ..\..\..\..\..\temp\csd\ta_TEMA.obj & + ..\..\..\..\..\temp\csd\ta_TRANGE.obj & + ..\..\..\..\..\temp\csd\ta_TRIMA.obj & + ..\..\..\..\..\temp\csd\ta_TRIX.obj & + ..\..\..\..\..\temp\csd\ta_TSF.obj & + ..\..\..\..\..\temp\csd\ta_TYPPRICE.obj & + ..\..\..\..\..\temp\csd\ta_ULTOSC.obj & + ..\..\..\..\..\temp\csd\ta_VAR.obj & + ..\..\..\..\..\temp\csd\ta_WCLPRICE.obj & + ..\..\..\..\..\temp\csd\ta_WILLR.obj & + ..\..\..\..\..\temp\csd\ta_WMA.obj +SRCMOC = +OBJMOC = +DIST = +TARGET = ..\..\..\..\..\lib\ta_libc_csd.lib +TMPLIST = ta_libc_csd.lst + +####### Build rules + +all: $(TARGET) + +$(TARGET): $(OBJECTS) $(OBJMOC) + @%create $(TMPLIST) + @for %i in ( $(OBJECTS) $(OBJMOC) ) do @%append $(TMPLIST) +'%i' + $(LIB) $(TARGET) @$(TMPLIST) + del $(TMPLIST) + +moc: $(SRCMOC) + +tmake: ../csd/win32/watcom/ta_libc/Makefile + +../csd/win32/watcom/ta_libc/Makefile: ta_libc/ta_libc.pro + tmake ta_libc/ta_libc.pro -o ../csd/win32/watcom/ta_libc/Makefile + +dist: + $(ZIP) ta_libc/ta_libc.zip ta_libc/ta_libc.pro $(SOURCES) $(HEADERS) $(DIST) + +clean: + -del ..\..\..\..\..\temp\csd\ta_global.obj + -del ..\..\..\..\..\temp\csd\ta_retcode.obj + -del ..\..\..\..\..\temp\csd\ta_version.obj + -del ..\..\..\..\..\temp\csd\ta_abstract.obj + -del ..\..\..\..\..\temp\csd\ta_def_ui.obj + -del ..\..\..\..\..\temp\csd\ta_func_api.obj + -del ..\..\..\..\..\temp\csd\ta_group_idx.obj + -del ..\..\..\..\..\temp\csd\ta_frame.obj + -del ..\..\..\..\..\temp\csd\table_a.obj + -del ..\..\..\..\..\temp\csd\table_b.obj + -del ..\..\..\..\..\temp\csd\table_c.obj + -del ..\..\..\..\..\temp\csd\table_d.obj + -del ..\..\..\..\..\temp\csd\table_e.obj + -del ..\..\..\..\..\temp\csd\table_f.obj + -del ..\..\..\..\..\temp\csd\table_g.obj + -del ..\..\..\..\..\temp\csd\table_h.obj + -del ..\..\..\..\..\temp\csd\table_i.obj + -del ..\..\..\..\..\temp\csd\table_j.obj + -del ..\..\..\..\..\temp\csd\table_k.obj + -del ..\..\..\..\..\temp\csd\table_l.obj + -del ..\..\..\..\..\temp\csd\table_m.obj + -del ..\..\..\..\..\temp\csd\table_n.obj + -del ..\..\..\..\..\temp\csd\table_o.obj + -del ..\..\..\..\..\temp\csd\table_p.obj + -del ..\..\..\..\..\temp\csd\table_q.obj + -del ..\..\..\..\..\temp\csd\table_r.obj + -del ..\..\..\..\..\temp\csd\table_s.obj + -del ..\..\..\..\..\temp\csd\table_t.obj + -del ..\..\..\..\..\temp\csd\table_u.obj + -del ..\..\..\..\..\temp\csd\table_v.obj + -del ..\..\..\..\..\temp\csd\table_w.obj + -del ..\..\..\..\..\temp\csd\table_x.obj + -del ..\..\..\..\..\temp\csd\table_y.obj + -del ..\..\..\..\..\temp\csd\table_z.obj + -del ..\..\..\..\..\temp\csd\ta_utility.obj + -del ..\..\..\..\..\temp\csd\ta_ACOS.obj + -del ..\..\..\..\..\temp\csd\ta_AD.obj + -del ..\..\..\..\..\temp\csd\ta_ADD.obj + -del ..\..\..\..\..\temp\csd\ta_ADOSC.obj + -del ..\..\..\..\..\temp\csd\ta_ADX.obj + -del ..\..\..\..\..\temp\csd\ta_ADXR.obj + -del ..\..\..\..\..\temp\csd\ta_APO.obj + -del ..\..\..\..\..\temp\csd\ta_AROON.obj + -del ..\..\..\..\..\temp\csd\ta_AROONOSC.obj + -del ..\..\..\..\..\temp\csd\ta_ASIN.obj + -del ..\..\..\..\..\temp\csd\ta_ATAN.obj + -del ..\..\..\..\..\temp\csd\ta_ATR.obj + -del ..\..\..\..\..\temp\csd\ta_AVGPRICE.obj + -del ..\..\..\..\..\temp\csd\ta_BBANDS.obj + -del ..\..\..\..\..\temp\csd\ta_BETA.obj + -del ..\..\..\..\..\temp\csd\ta_BOP.obj + -del ..\..\..\..\..\temp\csd\ta_CCI.obj + -del ..\..\..\..\..\temp\csd\ta_CDL2CROWS.obj + -del ..\..\..\..\..\temp\csd\ta_CDL3BLACKCROWS.obj + -del ..\..\..\..\..\temp\csd\ta_CDL3INSIDE.obj + -del ..\..\..\..\..\temp\csd\ta_CDL3LINESTRIKE.obj + -del ..\..\..\..\..\temp\csd\ta_CDL3OUTSIDE.obj + -del ..\..\..\..\..\temp\csd\ta_CDL3STARSINSOUTH.obj + -del ..\..\..\..\..\temp\csd\ta_CDL3WHITESOLDIERS.obj + -del ..\..\..\..\..\temp\csd\ta_CDLABANDONEDBABY.obj + -del ..\..\..\..\..\temp\csd\ta_CDLADVANCEBLOCK.obj + -del ..\..\..\..\..\temp\csd\ta_CDLBELTHOLD.obj + -del ..\..\..\..\..\temp\csd\ta_CDLBREAKAWAY.obj + -del ..\..\..\..\..\temp\csd\ta_CDLCLOSINGMARUBOZU.obj + -del ..\..\..\..\..\temp\csd\ta_CDLCONCEALBABYSWALL.obj + -del ..\..\..\..\..\temp\csd\ta_CDLCOUNTERATTACK.obj + -del ..\..\..\..\..\temp\csd\ta_CDLDARKCLOUDCOVER.obj + -del ..\..\..\..\..\temp\csd\ta_CDLDOJI.obj + -del ..\..\..\..\..\temp\csd\ta_CDLDOJISTAR.obj + -del ..\..\..\..\..\temp\csd\ta_CDLDRAGONFLYDOJI.obj + -del ..\..\..\..\..\temp\csd\ta_CDLENGULFING.obj + -del ..\..\..\..\..\temp\csd\ta_CDLEVENINGDOJISTAR.obj + -del ..\..\..\..\..\temp\csd\ta_CDLEVENINGSTAR.obj + -del ..\..\..\..\..\temp\csd\ta_CDLGAPSIDESIDEWHITE.obj + -del ..\..\..\..\..\temp\csd\ta_CDLGRAVESTONEDOJI.obj + -del ..\..\..\..\..\temp\csd\ta_CDLHAMMER.obj + -del ..\..\..\..\..\temp\csd\ta_CDLHANGINGMAN.obj + -del ..\..\..\..\..\temp\csd\ta_CDLHARAMI.obj + -del ..\..\..\..\..\temp\csd\ta_CDLHARAMICROSS.obj + -del ..\..\..\..\..\temp\csd\ta_CDLHIGHWAVE.obj + -del ..\..\..\..\..\temp\csd\ta_CDLHIKKAKE.obj + -del ..\..\..\..\..\temp\csd\ta_CDLHIKKAKEMOD.obj + -del ..\..\..\..\..\temp\csd\ta_CDLHOMINGPIGEON.obj + -del ..\..\..\..\..\temp\csd\ta_CDLIDENTICAL3CROWS.obj + -del ..\..\..\..\..\temp\csd\ta_CDLINNECK.obj + -del ..\..\..\..\..\temp\csd\ta_CDLINVERTEDHAMMER.obj + -del ..\..\..\..\..\temp\csd\ta_CDLKICKING.obj + -del ..\..\..\..\..\temp\csd\ta_CDLKICKINGBYLENGTH.obj + -del ..\..\..\..\..\temp\csd\ta_CDLLADDERBOTTOM.obj + -del ..\..\..\..\..\temp\csd\ta_CDLLONGLEGGEDDOJI.obj + -del ..\..\..\..\..\temp\csd\ta_CDLLONGLINE.obj + -del ..\..\..\..\..\temp\csd\ta_CDLMARUBOZU.obj + -del ..\..\..\..\..\temp\csd\ta_CDLMATCHINGLOW.obj + -del ..\..\..\..\..\temp\csd\ta_CDLMATHOLD.obj + -del ..\..\..\..\..\temp\csd\ta_CDLMORNINGDOJISTAR.obj + -del ..\..\..\..\..\temp\csd\ta_CDLMORNINGSTAR.obj + -del ..\..\..\..\..\temp\csd\ta_CDLONNECK.obj + -del ..\..\..\..\..\temp\csd\ta_CDLPIERCING.obj + -del ..\..\..\..\..\temp\csd\ta_CDLRICKSHAWMAN.obj + -del ..\..\..\..\..\temp\csd\ta_CDLRISEFALL3METHODS.obj + -del ..\..\..\..\..\temp\csd\ta_CDLSEPARATINGLINES.obj + -del ..\..\..\..\..\temp\csd\ta_CDLSHOOTINGSTAR.obj + -del ..\..\..\..\..\temp\csd\ta_CDLSHORTLINE.obj + -del ..\..\..\..\..\temp\csd\ta_CDLSPINNINGTOP.obj + -del ..\..\..\..\..\temp\csd\ta_CDLSTALLEDPATTERN.obj + -del ..\..\..\..\..\temp\csd\ta_CDLSTICKSANDWICH.obj + -del ..\..\..\..\..\temp\csd\ta_CDLTAKURI.obj + -del ..\..\..\..\..\temp\csd\ta_CDLTASUKIGAP.obj + -del ..\..\..\..\..\temp\csd\ta_CDLTHRUSTING.obj + -del ..\..\..\..\..\temp\csd\ta_CDLTRISTAR.obj + -del ..\..\..\..\..\temp\csd\ta_CDLUNIQUE3RIVER.obj + -del ..\..\..\..\..\temp\csd\ta_CDLUPSIDEGAP2CROWS.obj + -del ..\..\..\..\..\temp\csd\ta_CDLXSIDEGAP3METHODS.obj + -del ..\..\..\..\..\temp\csd\ta_CEIL.obj + -del ..\..\..\..\..\temp\csd\ta_CMO.obj + -del ..\..\..\..\..\temp\csd\ta_CORREL.obj + -del ..\..\..\..\..\temp\csd\ta_COS.obj + -del ..\..\..\..\..\temp\csd\ta_COSH.obj + -del ..\..\..\..\..\temp\csd\ta_DEMA.obj + -del ..\..\..\..\..\temp\csd\ta_DIV.obj + -del ..\..\..\..\..\temp\csd\ta_DX.obj + -del ..\..\..\..\..\temp\csd\ta_EMA.obj + -del ..\..\..\..\..\temp\csd\ta_EXP.obj + -del ..\..\..\..\..\temp\csd\ta_FLOOR.obj + -del ..\..\..\..\..\temp\csd\ta_HT_DCPERIOD.obj + -del ..\..\..\..\..\temp\csd\ta_HT_DCPHASE.obj + -del ..\..\..\..\..\temp\csd\ta_HT_PHASOR.obj + -del ..\..\..\..\..\temp\csd\ta_HT_SINE.obj + -del ..\..\..\..\..\temp\csd\ta_HT_TRENDLINE.obj + -del ..\..\..\..\..\temp\csd\ta_HT_TRENDMODE.obj + -del ..\..\..\..\..\temp\csd\ta_KAMA.obj + -del ..\..\..\..\..\temp\csd\ta_LINEARREG.obj + -del ..\..\..\..\..\temp\csd\ta_LINEARREG_ANGLE.obj + -del ..\..\..\..\..\temp\csd\ta_LINEARREG_INTERCEPT.obj + -del ..\..\..\..\..\temp\csd\ta_LINEARREG_SLOPE.obj + -del ..\..\..\..\..\temp\csd\ta_LN.obj + -del ..\..\..\..\..\temp\csd\ta_LOG10.obj + -del ..\..\..\..\..\temp\csd\ta_MA.obj + -del ..\..\..\..\..\temp\csd\ta_MACD.obj + -del ..\..\..\..\..\temp\csd\ta_MACDEXT.obj + -del ..\..\..\..\..\temp\csd\ta_MACDFIX.obj + -del ..\..\..\..\..\temp\csd\ta_MAMA.obj + -del ..\..\..\..\..\temp\csd\ta_MAVP.obj + -del ..\..\..\..\..\temp\csd\ta_MAX.obj + -del ..\..\..\..\..\temp\csd\ta_MAXINDEX.obj + -del ..\..\..\..\..\temp\csd\ta_MEDPRICE.obj + -del ..\..\..\..\..\temp\csd\ta_MFI.obj + -del ..\..\..\..\..\temp\csd\ta_MIDPOINT.obj + -del ..\..\..\..\..\temp\csd\ta_MIDPRICE.obj + -del ..\..\..\..\..\temp\csd\ta_MIN.obj + -del ..\..\..\..\..\temp\csd\ta_MININDEX.obj + -del ..\..\..\..\..\temp\csd\ta_MINMAX.obj + -del ..\..\..\..\..\temp\csd\ta_MINMAXINDEX.obj + -del ..\..\..\..\..\temp\csd\ta_MINUS_DI.obj + -del ..\..\..\..\..\temp\csd\ta_MINUS_DM.obj + -del ..\..\..\..\..\temp\csd\ta_MOM.obj + -del ..\..\..\..\..\temp\csd\ta_MULT.obj + -del ..\..\..\..\..\temp\csd\ta_NATR.obj + -del ..\..\..\..\..\temp\csd\ta_OBV.obj + -del ..\..\..\..\..\temp\csd\ta_PLUS_DI.obj + -del ..\..\..\..\..\temp\csd\ta_PLUS_DM.obj + -del ..\..\..\..\..\temp\csd\ta_PPO.obj + -del ..\..\..\..\..\temp\csd\ta_ROC.obj + -del ..\..\..\..\..\temp\csd\ta_ROCP.obj + -del ..\..\..\..\..\temp\csd\ta_ROCR.obj + -del ..\..\..\..\..\temp\csd\ta_ROCR100.obj + -del ..\..\..\..\..\temp\csd\ta_RSI.obj + -del ..\..\..\..\..\temp\csd\ta_SAR.obj + -del ..\..\..\..\..\temp\csd\ta_SAREXT.obj + -del ..\..\..\..\..\temp\csd\ta_SIN.obj + -del ..\..\..\..\..\temp\csd\ta_SINH.obj + -del ..\..\..\..\..\temp\csd\ta_SMA.obj + -del ..\..\..\..\..\temp\csd\ta_SQRT.obj + -del ..\..\..\..\..\temp\csd\ta_STDDEV.obj + -del ..\..\..\..\..\temp\csd\ta_STOCH.obj + -del ..\..\..\..\..\temp\csd\ta_STOCHF.obj + -del ..\..\..\..\..\temp\csd\ta_STOCHRSI.obj + -del ..\..\..\..\..\temp\csd\ta_SUB.obj + -del ..\..\..\..\..\temp\csd\ta_SUM.obj + -del ..\..\..\..\..\temp\csd\ta_T3.obj + -del ..\..\..\..\..\temp\csd\ta_TAN.obj + -del ..\..\..\..\..\temp\csd\ta_TANH.obj + -del ..\..\..\..\..\temp\csd\ta_TEMA.obj + -del ..\..\..\..\..\temp\csd\ta_TRANGE.obj + -del ..\..\..\..\..\temp\csd\ta_TRIMA.obj + -del ..\..\..\..\..\temp\csd\ta_TRIX.obj + -del ..\..\..\..\..\temp\csd\ta_TSF.obj + -del ..\..\..\..\..\temp\csd\ta_TYPPRICE.obj + -del ..\..\..\..\..\temp\csd\ta_ULTOSC.obj + -del ..\..\..\..\..\temp\csd\ta_VAR.obj + -del ..\..\..\..\..\temp\csd\ta_WCLPRICE.obj + -del ..\..\..\..\..\temp\csd\ta_WILLR.obj + -del ..\..\..\..\..\temp\csd\ta_WMA.obj + -del $(TARGET) + -del ../../../../../bin/*.map + -del ../../../../../bin/*._xe + -del ../../../../../bin/*.tds + -del ../../../../../bin/*.pdb + -del ../../../../../bin/*.pbo + -del ../../../../../bin/*.pbi + -del ../../../../../bin/*.pbt + +####### Compile + +..\..\..\..\..\temp\csd\ta_global.obj: ..\..\..\..\..\src\ta_common\ta_global.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_global.obj ..\..\..\..\..\src\ta_common\ta_global.c + +..\..\..\..\..\temp\csd\ta_retcode.obj: ..\..\..\..\..\src\ta_common\ta_retcode.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_retcode.obj ..\..\..\..\..\src\ta_common\ta_retcode.c + +..\..\..\..\..\temp\csd\ta_version.obj: ..\..\..\..\..\src\ta_common\ta_version.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_version.obj ..\..\..\..\..\src\ta_common\ta_version.c + +..\..\..\..\..\temp\csd\ta_abstract.obj: ..\..\..\..\..\src\ta_abstract\ta_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_abstract.obj ..\..\..\..\..\src\ta_abstract\ta_abstract.c + +..\..\..\..\..\temp\csd\ta_def_ui.obj: ..\..\..\..\..\src\ta_abstract\ta_def_ui.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_def_ui.obj ..\..\..\..\..\src\ta_abstract\ta_def_ui.c + +..\..\..\..\..\temp\csd\ta_func_api.obj: ..\..\..\..\..\src\ta_abstract\ta_func_api.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_func_api.obj ..\..\..\..\..\src\ta_abstract\ta_func_api.c + +..\..\..\..\..\temp\csd\ta_group_idx.obj: ..\..\..\..\..\src\ta_abstract\ta_group_idx.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_group_idx.obj ..\..\..\..\..\src\ta_abstract\ta_group_idx.c + +..\..\..\..\..\temp\csd\ta_frame.obj: ..\..\..\..\..\src\ta_abstract\frames\ta_frame.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_frame.obj ..\..\..\..\..\src\ta_abstract\frames\ta_frame.c + +..\..\..\..\..\temp\csd\table_a.obj: ..\..\..\..\..\src\ta_abstract\tables\table_a.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\table_a.obj ..\..\..\..\..\src\ta_abstract\tables\table_a.c + +..\..\..\..\..\temp\csd\table_b.obj: ..\..\..\..\..\src\ta_abstract\tables\table_b.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\table_b.obj ..\..\..\..\..\src\ta_abstract\tables\table_b.c + +..\..\..\..\..\temp\csd\table_c.obj: ..\..\..\..\..\src\ta_abstract\tables\table_c.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\table_c.obj ..\..\..\..\..\src\ta_abstract\tables\table_c.c + +..\..\..\..\..\temp\csd\table_d.obj: ..\..\..\..\..\src\ta_abstract\tables\table_d.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\table_d.obj ..\..\..\..\..\src\ta_abstract\tables\table_d.c + +..\..\..\..\..\temp\csd\table_e.obj: ..\..\..\..\..\src\ta_abstract\tables\table_e.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\table_e.obj ..\..\..\..\..\src\ta_abstract\tables\table_e.c + +..\..\..\..\..\temp\csd\table_f.obj: ..\..\..\..\..\src\ta_abstract\tables\table_f.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\table_f.obj ..\..\..\..\..\src\ta_abstract\tables\table_f.c + +..\..\..\..\..\temp\csd\table_g.obj: ..\..\..\..\..\src\ta_abstract\tables\table_g.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\table_g.obj ..\..\..\..\..\src\ta_abstract\tables\table_g.c + +..\..\..\..\..\temp\csd\table_h.obj: ..\..\..\..\..\src\ta_abstract\tables\table_h.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\table_h.obj ..\..\..\..\..\src\ta_abstract\tables\table_h.c + +..\..\..\..\..\temp\csd\table_i.obj: ..\..\..\..\..\src\ta_abstract\tables\table_i.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\table_i.obj ..\..\..\..\..\src\ta_abstract\tables\table_i.c + +..\..\..\..\..\temp\csd\table_j.obj: ..\..\..\..\..\src\ta_abstract\tables\table_j.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\table_j.obj ..\..\..\..\..\src\ta_abstract\tables\table_j.c + +..\..\..\..\..\temp\csd\table_k.obj: ..\..\..\..\..\src\ta_abstract\tables\table_k.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\table_k.obj ..\..\..\..\..\src\ta_abstract\tables\table_k.c + +..\..\..\..\..\temp\csd\table_l.obj: ..\..\..\..\..\src\ta_abstract\tables\table_l.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\table_l.obj ..\..\..\..\..\src\ta_abstract\tables\table_l.c + +..\..\..\..\..\temp\csd\table_m.obj: ..\..\..\..\..\src\ta_abstract\tables\table_m.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\table_m.obj ..\..\..\..\..\src\ta_abstract\tables\table_m.c + +..\..\..\..\..\temp\csd\table_n.obj: ..\..\..\..\..\src\ta_abstract\tables\table_n.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\table_n.obj ..\..\..\..\..\src\ta_abstract\tables\table_n.c + +..\..\..\..\..\temp\csd\table_o.obj: ..\..\..\..\..\src\ta_abstract\tables\table_o.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\table_o.obj ..\..\..\..\..\src\ta_abstract\tables\table_o.c + +..\..\..\..\..\temp\csd\table_p.obj: ..\..\..\..\..\src\ta_abstract\tables\table_p.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\table_p.obj ..\..\..\..\..\src\ta_abstract\tables\table_p.c + +..\..\..\..\..\temp\csd\table_q.obj: ..\..\..\..\..\src\ta_abstract\tables\table_q.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\table_q.obj ..\..\..\..\..\src\ta_abstract\tables\table_q.c + +..\..\..\..\..\temp\csd\table_r.obj: ..\..\..\..\..\src\ta_abstract\tables\table_r.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\table_r.obj ..\..\..\..\..\src\ta_abstract\tables\table_r.c + +..\..\..\..\..\temp\csd\table_s.obj: ..\..\..\..\..\src\ta_abstract\tables\table_s.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\table_s.obj ..\..\..\..\..\src\ta_abstract\tables\table_s.c + +..\..\..\..\..\temp\csd\table_t.obj: ..\..\..\..\..\src\ta_abstract\tables\table_t.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\table_t.obj ..\..\..\..\..\src\ta_abstract\tables\table_t.c + +..\..\..\..\..\temp\csd\table_u.obj: ..\..\..\..\..\src\ta_abstract\tables\table_u.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\table_u.obj ..\..\..\..\..\src\ta_abstract\tables\table_u.c + +..\..\..\..\..\temp\csd\table_v.obj: ..\..\..\..\..\src\ta_abstract\tables\table_v.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\table_v.obj ..\..\..\..\..\src\ta_abstract\tables\table_v.c + +..\..\..\..\..\temp\csd\table_w.obj: ..\..\..\..\..\src\ta_abstract\tables\table_w.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\table_w.obj ..\..\..\..\..\src\ta_abstract\tables\table_w.c + +..\..\..\..\..\temp\csd\table_x.obj: ..\..\..\..\..\src\ta_abstract\tables\table_x.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\table_x.obj ..\..\..\..\..\src\ta_abstract\tables\table_x.c + +..\..\..\..\..\temp\csd\table_y.obj: ..\..\..\..\..\src\ta_abstract\tables\table_y.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\table_y.obj ..\..\..\..\..\src\ta_abstract\tables\table_y.c + +..\..\..\..\..\temp\csd\table_z.obj: ..\..\..\..\..\src\ta_abstract\tables\table_z.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\table_z.obj ..\..\..\..\..\src\ta_abstract\tables\table_z.c + +..\..\..\..\..\temp\csd\ta_utility.obj: ..\..\..\..\..\src\ta_func\ta_utility.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_utility.obj ..\..\..\..\..\src\ta_func\ta_utility.c + +..\..\..\..\..\temp\csd\ta_ACOS.obj: ..\..\..\..\..\src\ta_func\ta_ACOS.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_ACOS.obj ..\..\..\..\..\src\ta_func\ta_ACOS.c + +..\..\..\..\..\temp\csd\ta_AD.obj: ..\..\..\..\..\src\ta_func\ta_AD.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_AD.obj ..\..\..\..\..\src\ta_func\ta_AD.c + +..\..\..\..\..\temp\csd\ta_ADD.obj: ..\..\..\..\..\src\ta_func\ta_ADD.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_ADD.obj ..\..\..\..\..\src\ta_func\ta_ADD.c + +..\..\..\..\..\temp\csd\ta_ADOSC.obj: ..\..\..\..\..\src\ta_func\ta_ADOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_ADOSC.obj ..\..\..\..\..\src\ta_func\ta_ADOSC.c + +..\..\..\..\..\temp\csd\ta_ADX.obj: ..\..\..\..\..\src\ta_func\ta_ADX.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_ADX.obj ..\..\..\..\..\src\ta_func\ta_ADX.c + +..\..\..\..\..\temp\csd\ta_ADXR.obj: ..\..\..\..\..\src\ta_func\ta_ADXR.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_ADXR.obj ..\..\..\..\..\src\ta_func\ta_ADXR.c + +..\..\..\..\..\temp\csd\ta_APO.obj: ..\..\..\..\..\src\ta_func\ta_APO.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_APO.obj ..\..\..\..\..\src\ta_func\ta_APO.c + +..\..\..\..\..\temp\csd\ta_AROON.obj: ..\..\..\..\..\src\ta_func\ta_AROON.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_AROON.obj ..\..\..\..\..\src\ta_func\ta_AROON.c + +..\..\..\..\..\temp\csd\ta_AROONOSC.obj: ..\..\..\..\..\src\ta_func\ta_AROONOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_AROONOSC.obj ..\..\..\..\..\src\ta_func\ta_AROONOSC.c + +..\..\..\..\..\temp\csd\ta_ASIN.obj: ..\..\..\..\..\src\ta_func\ta_ASIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_ASIN.obj ..\..\..\..\..\src\ta_func\ta_ASIN.c + +..\..\..\..\..\temp\csd\ta_ATAN.obj: ..\..\..\..\..\src\ta_func\ta_ATAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_ATAN.obj ..\..\..\..\..\src\ta_func\ta_ATAN.c + +..\..\..\..\..\temp\csd\ta_ATR.obj: ..\..\..\..\..\src\ta_func\ta_ATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_ATR.obj ..\..\..\..\..\src\ta_func\ta_ATR.c + +..\..\..\..\..\temp\csd\ta_AVGPRICE.obj: ..\..\..\..\..\src\ta_func\ta_AVGPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_AVGPRICE.obj ..\..\..\..\..\src\ta_func\ta_AVGPRICE.c + +..\..\..\..\..\temp\csd\ta_BBANDS.obj: ..\..\..\..\..\src\ta_func\ta_BBANDS.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_BBANDS.obj ..\..\..\..\..\src\ta_func\ta_BBANDS.c + +..\..\..\..\..\temp\csd\ta_BETA.obj: ..\..\..\..\..\src\ta_func\ta_BETA.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_BETA.obj ..\..\..\..\..\src\ta_func\ta_BETA.c + +..\..\..\..\..\temp\csd\ta_BOP.obj: ..\..\..\..\..\src\ta_func\ta_BOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_BOP.obj ..\..\..\..\..\src\ta_func\ta_BOP.c + +..\..\..\..\..\temp\csd\ta_CCI.obj: ..\..\..\..\..\src\ta_func\ta_CCI.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CCI.obj ..\..\..\..\..\src\ta_func\ta_CCI.c + +..\..\..\..\..\temp\csd\ta_CDL2CROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDL2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CDL2CROWS.obj ..\..\..\..\..\src\ta_func\ta_CDL2CROWS.c + +..\..\..\..\..\temp\csd\ta_CDL3BLACKCROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDL3BLACKCROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CDL3BLACKCROWS.obj ..\..\..\..\..\src\ta_func\ta_CDL3BLACKCROWS.c + +..\..\..\..\..\temp\csd\ta_CDL3INSIDE.obj: ..\..\..\..\..\src\ta_func\ta_CDL3INSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CDL3INSIDE.obj ..\..\..\..\..\src\ta_func\ta_CDL3INSIDE.c + +..\..\..\..\..\temp\csd\ta_CDL3LINESTRIKE.obj: ..\..\..\..\..\src\ta_func\ta_CDL3LINESTRIKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CDL3LINESTRIKE.obj ..\..\..\..\..\src\ta_func\ta_CDL3LINESTRIKE.c + +..\..\..\..\..\temp\csd\ta_CDL3OUTSIDE.obj: ..\..\..\..\..\src\ta_func\ta_CDL3OUTSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CDL3OUTSIDE.obj ..\..\..\..\..\src\ta_func\ta_CDL3OUTSIDE.c + +..\..\..\..\..\temp\csd\ta_CDL3STARSINSOUTH.obj: ..\..\..\..\..\src\ta_func\ta_CDL3STARSINSOUTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CDL3STARSINSOUTH.obj ..\..\..\..\..\src\ta_func\ta_CDL3STARSINSOUTH.c + +..\..\..\..\..\temp\csd\ta_CDL3WHITESOLDIERS.obj: ..\..\..\..\..\src\ta_func\ta_CDL3WHITESOLDIERS.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CDL3WHITESOLDIERS.obj ..\..\..\..\..\src\ta_func\ta_CDL3WHITESOLDIERS.c + +..\..\..\..\..\temp\csd\ta_CDLABANDONEDBABY.obj: ..\..\..\..\..\src\ta_func\ta_CDLABANDONEDBABY.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CDLABANDONEDBABY.obj ..\..\..\..\..\src\ta_func\ta_CDLABANDONEDBABY.c + +..\..\..\..\..\temp\csd\ta_CDLADVANCEBLOCK.obj: ..\..\..\..\..\src\ta_func\ta_CDLADVANCEBLOCK.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CDLADVANCEBLOCK.obj ..\..\..\..\..\src\ta_func\ta_CDLADVANCEBLOCK.c + +..\..\..\..\..\temp\csd\ta_CDLBELTHOLD.obj: ..\..\..\..\..\src\ta_func\ta_CDLBELTHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CDLBELTHOLD.obj ..\..\..\..\..\src\ta_func\ta_CDLBELTHOLD.c + +..\..\..\..\..\temp\csd\ta_CDLBREAKAWAY.obj: ..\..\..\..\..\src\ta_func\ta_CDLBREAKAWAY.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CDLBREAKAWAY.obj ..\..\..\..\..\src\ta_func\ta_CDLBREAKAWAY.c + +..\..\..\..\..\temp\csd\ta_CDLCLOSINGMARUBOZU.obj: ..\..\..\..\..\src\ta_func\ta_CDLCLOSINGMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CDLCLOSINGMARUBOZU.obj ..\..\..\..\..\src\ta_func\ta_CDLCLOSINGMARUBOZU.c + +..\..\..\..\..\temp\csd\ta_CDLCONCEALBABYSWALL.obj: ..\..\..\..\..\src\ta_func\ta_CDLCONCEALBABYSWALL.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CDLCONCEALBABYSWALL.obj ..\..\..\..\..\src\ta_func\ta_CDLCONCEALBABYSWALL.c + +..\..\..\..\..\temp\csd\ta_CDLCOUNTERATTACK.obj: ..\..\..\..\..\src\ta_func\ta_CDLCOUNTERATTACK.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CDLCOUNTERATTACK.obj ..\..\..\..\..\src\ta_func\ta_CDLCOUNTERATTACK.c + +..\..\..\..\..\temp\csd\ta_CDLDARKCLOUDCOVER.obj: ..\..\..\..\..\src\ta_func\ta_CDLDARKCLOUDCOVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CDLDARKCLOUDCOVER.obj ..\..\..\..\..\src\ta_func\ta_CDLDARKCLOUDCOVER.c + +..\..\..\..\..\temp\csd\ta_CDLDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CDLDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLDOJI.c + +..\..\..\..\..\temp\csd\ta_CDLDOJISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CDLDOJISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLDOJISTAR.c + +..\..\..\..\..\temp\csd\ta_CDLDRAGONFLYDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLDRAGONFLYDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CDLDRAGONFLYDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLDRAGONFLYDOJI.c + +..\..\..\..\..\temp\csd\ta_CDLENGULFING.obj: ..\..\..\..\..\src\ta_func\ta_CDLENGULFING.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CDLENGULFING.obj ..\..\..\..\..\src\ta_func\ta_CDLENGULFING.c + +..\..\..\..\..\temp\csd\ta_CDLEVENINGDOJISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLEVENINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CDLEVENINGDOJISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLEVENINGDOJISTAR.c + +..\..\..\..\..\temp\csd\ta_CDLEVENINGSTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLEVENINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CDLEVENINGSTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLEVENINGSTAR.c + +..\..\..\..\..\temp\csd\ta_CDLGAPSIDESIDEWHITE.obj: ..\..\..\..\..\src\ta_func\ta_CDLGAPSIDESIDEWHITE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CDLGAPSIDESIDEWHITE.obj ..\..\..\..\..\src\ta_func\ta_CDLGAPSIDESIDEWHITE.c + +..\..\..\..\..\temp\csd\ta_CDLGRAVESTONEDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLGRAVESTONEDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CDLGRAVESTONEDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLGRAVESTONEDOJI.c + +..\..\..\..\..\temp\csd\ta_CDLHAMMER.obj: ..\..\..\..\..\src\ta_func\ta_CDLHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CDLHAMMER.obj ..\..\..\..\..\src\ta_func\ta_CDLHAMMER.c + +..\..\..\..\..\temp\csd\ta_CDLHANGINGMAN.obj: ..\..\..\..\..\src\ta_func\ta_CDLHANGINGMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CDLHANGINGMAN.obj ..\..\..\..\..\src\ta_func\ta_CDLHANGINGMAN.c + +..\..\..\..\..\temp\csd\ta_CDLHARAMI.obj: ..\..\..\..\..\src\ta_func\ta_CDLHARAMI.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CDLHARAMI.obj ..\..\..\..\..\src\ta_func\ta_CDLHARAMI.c + +..\..\..\..\..\temp\csd\ta_CDLHARAMICROSS.obj: ..\..\..\..\..\src\ta_func\ta_CDLHARAMICROSS.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CDLHARAMICROSS.obj ..\..\..\..\..\src\ta_func\ta_CDLHARAMICROSS.c + +..\..\..\..\..\temp\csd\ta_CDLHIGHWAVE.obj: ..\..\..\..\..\src\ta_func\ta_CDLHIGHWAVE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CDLHIGHWAVE.obj ..\..\..\..\..\src\ta_func\ta_CDLHIGHWAVE.c + +..\..\..\..\..\temp\csd\ta_CDLHIKKAKE.obj: ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CDLHIKKAKE.obj ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKE.c + +..\..\..\..\..\temp\csd\ta_CDLHIKKAKEMOD.obj: ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKEMOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CDLHIKKAKEMOD.obj ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKEMOD.c + +..\..\..\..\..\temp\csd\ta_CDLHOMINGPIGEON.obj: ..\..\..\..\..\src\ta_func\ta_CDLHOMINGPIGEON.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CDLHOMINGPIGEON.obj ..\..\..\..\..\src\ta_func\ta_CDLHOMINGPIGEON.c + +..\..\..\..\..\temp\csd\ta_CDLIDENTICAL3CROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDLIDENTICAL3CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CDLIDENTICAL3CROWS.obj ..\..\..\..\..\src\ta_func\ta_CDLIDENTICAL3CROWS.c + +..\..\..\..\..\temp\csd\ta_CDLINNECK.obj: ..\..\..\..\..\src\ta_func\ta_CDLINNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CDLINNECK.obj ..\..\..\..\..\src\ta_func\ta_CDLINNECK.c + +..\..\..\..\..\temp\csd\ta_CDLINVERTEDHAMMER.obj: ..\..\..\..\..\src\ta_func\ta_CDLINVERTEDHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CDLINVERTEDHAMMER.obj ..\..\..\..\..\src\ta_func\ta_CDLINVERTEDHAMMER.c + +..\..\..\..\..\temp\csd\ta_CDLKICKING.obj: ..\..\..\..\..\src\ta_func\ta_CDLKICKING.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CDLKICKING.obj ..\..\..\..\..\src\ta_func\ta_CDLKICKING.c + +..\..\..\..\..\temp\csd\ta_CDLKICKINGBYLENGTH.obj: ..\..\..\..\..\src\ta_func\ta_CDLKICKINGBYLENGTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CDLKICKINGBYLENGTH.obj ..\..\..\..\..\src\ta_func\ta_CDLKICKINGBYLENGTH.c + +..\..\..\..\..\temp\csd\ta_CDLLADDERBOTTOM.obj: ..\..\..\..\..\src\ta_func\ta_CDLLADDERBOTTOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CDLLADDERBOTTOM.obj ..\..\..\..\..\src\ta_func\ta_CDLLADDERBOTTOM.c + +..\..\..\..\..\temp\csd\ta_CDLLONGLEGGEDDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLLONGLEGGEDDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CDLLONGLEGGEDDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLLONGLEGGEDDOJI.c + +..\..\..\..\..\temp\csd\ta_CDLLONGLINE.obj: ..\..\..\..\..\src\ta_func\ta_CDLLONGLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CDLLONGLINE.obj ..\..\..\..\..\src\ta_func\ta_CDLLONGLINE.c + +..\..\..\..\..\temp\csd\ta_CDLMARUBOZU.obj: ..\..\..\..\..\src\ta_func\ta_CDLMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CDLMARUBOZU.obj ..\..\..\..\..\src\ta_func\ta_CDLMARUBOZU.c + +..\..\..\..\..\temp\csd\ta_CDLMATCHINGLOW.obj: ..\..\..\..\..\src\ta_func\ta_CDLMATCHINGLOW.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CDLMATCHINGLOW.obj ..\..\..\..\..\src\ta_func\ta_CDLMATCHINGLOW.c + +..\..\..\..\..\temp\csd\ta_CDLMATHOLD.obj: ..\..\..\..\..\src\ta_func\ta_CDLMATHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CDLMATHOLD.obj ..\..\..\..\..\src\ta_func\ta_CDLMATHOLD.c + +..\..\..\..\..\temp\csd\ta_CDLMORNINGDOJISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLMORNINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CDLMORNINGDOJISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLMORNINGDOJISTAR.c + +..\..\..\..\..\temp\csd\ta_CDLMORNINGSTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLMORNINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CDLMORNINGSTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLMORNINGSTAR.c + +..\..\..\..\..\temp\csd\ta_CDLONNECK.obj: ..\..\..\..\..\src\ta_func\ta_CDLONNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CDLONNECK.obj ..\..\..\..\..\src\ta_func\ta_CDLONNECK.c + +..\..\..\..\..\temp\csd\ta_CDLPIERCING.obj: ..\..\..\..\..\src\ta_func\ta_CDLPIERCING.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CDLPIERCING.obj ..\..\..\..\..\src\ta_func\ta_CDLPIERCING.c + +..\..\..\..\..\temp\csd\ta_CDLRICKSHAWMAN.obj: ..\..\..\..\..\src\ta_func\ta_CDLRICKSHAWMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CDLRICKSHAWMAN.obj ..\..\..\..\..\src\ta_func\ta_CDLRICKSHAWMAN.c + +..\..\..\..\..\temp\csd\ta_CDLRISEFALL3METHODS.obj: ..\..\..\..\..\src\ta_func\ta_CDLRISEFALL3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CDLRISEFALL3METHODS.obj ..\..\..\..\..\src\ta_func\ta_CDLRISEFALL3METHODS.c + +..\..\..\..\..\temp\csd\ta_CDLSEPARATINGLINES.obj: ..\..\..\..\..\src\ta_func\ta_CDLSEPARATINGLINES.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CDLSEPARATINGLINES.obj ..\..\..\..\..\src\ta_func\ta_CDLSEPARATINGLINES.c + +..\..\..\..\..\temp\csd\ta_CDLSHOOTINGSTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLSHOOTINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CDLSHOOTINGSTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLSHOOTINGSTAR.c + +..\..\..\..\..\temp\csd\ta_CDLSHORTLINE.obj: ..\..\..\..\..\src\ta_func\ta_CDLSHORTLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CDLSHORTLINE.obj ..\..\..\..\..\src\ta_func\ta_CDLSHORTLINE.c + +..\..\..\..\..\temp\csd\ta_CDLSPINNINGTOP.obj: ..\..\..\..\..\src\ta_func\ta_CDLSPINNINGTOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CDLSPINNINGTOP.obj ..\..\..\..\..\src\ta_func\ta_CDLSPINNINGTOP.c + +..\..\..\..\..\temp\csd\ta_CDLSTALLEDPATTERN.obj: ..\..\..\..\..\src\ta_func\ta_CDLSTALLEDPATTERN.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CDLSTALLEDPATTERN.obj ..\..\..\..\..\src\ta_func\ta_CDLSTALLEDPATTERN.c + +..\..\..\..\..\temp\csd\ta_CDLSTICKSANDWICH.obj: ..\..\..\..\..\src\ta_func\ta_CDLSTICKSANDWICH.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CDLSTICKSANDWICH.obj ..\..\..\..\..\src\ta_func\ta_CDLSTICKSANDWICH.c + +..\..\..\..\..\temp\csd\ta_CDLTAKURI.obj: ..\..\..\..\..\src\ta_func\ta_CDLTAKURI.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CDLTAKURI.obj ..\..\..\..\..\src\ta_func\ta_CDLTAKURI.c + +..\..\..\..\..\temp\csd\ta_CDLTASUKIGAP.obj: ..\..\..\..\..\src\ta_func\ta_CDLTASUKIGAP.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CDLTASUKIGAP.obj ..\..\..\..\..\src\ta_func\ta_CDLTASUKIGAP.c + +..\..\..\..\..\temp\csd\ta_CDLTHRUSTING.obj: ..\..\..\..\..\src\ta_func\ta_CDLTHRUSTING.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CDLTHRUSTING.obj ..\..\..\..\..\src\ta_func\ta_CDLTHRUSTING.c + +..\..\..\..\..\temp\csd\ta_CDLTRISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLTRISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CDLTRISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLTRISTAR.c + +..\..\..\..\..\temp\csd\ta_CDLUNIQUE3RIVER.obj: ..\..\..\..\..\src\ta_func\ta_CDLUNIQUE3RIVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CDLUNIQUE3RIVER.obj ..\..\..\..\..\src\ta_func\ta_CDLUNIQUE3RIVER.c + +..\..\..\..\..\temp\csd\ta_CDLUPSIDEGAP2CROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDLUPSIDEGAP2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CDLUPSIDEGAP2CROWS.obj ..\..\..\..\..\src\ta_func\ta_CDLUPSIDEGAP2CROWS.c + +..\..\..\..\..\temp\csd\ta_CDLXSIDEGAP3METHODS.obj: ..\..\..\..\..\src\ta_func\ta_CDLXSIDEGAP3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CDLXSIDEGAP3METHODS.obj ..\..\..\..\..\src\ta_func\ta_CDLXSIDEGAP3METHODS.c + +..\..\..\..\..\temp\csd\ta_CEIL.obj: ..\..\..\..\..\src\ta_func\ta_CEIL.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CEIL.obj ..\..\..\..\..\src\ta_func\ta_CEIL.c + +..\..\..\..\..\temp\csd\ta_CMO.obj: ..\..\..\..\..\src\ta_func\ta_CMO.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CMO.obj ..\..\..\..\..\src\ta_func\ta_CMO.c + +..\..\..\..\..\temp\csd\ta_CORREL.obj: ..\..\..\..\..\src\ta_func\ta_CORREL.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_CORREL.obj ..\..\..\..\..\src\ta_func\ta_CORREL.c + +..\..\..\..\..\temp\csd\ta_COS.obj: ..\..\..\..\..\src\ta_func\ta_COS.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_COS.obj ..\..\..\..\..\src\ta_func\ta_COS.c + +..\..\..\..\..\temp\csd\ta_COSH.obj: ..\..\..\..\..\src\ta_func\ta_COSH.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_COSH.obj ..\..\..\..\..\src\ta_func\ta_COSH.c + +..\..\..\..\..\temp\csd\ta_DEMA.obj: ..\..\..\..\..\src\ta_func\ta_DEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_DEMA.obj ..\..\..\..\..\src\ta_func\ta_DEMA.c + +..\..\..\..\..\temp\csd\ta_DIV.obj: ..\..\..\..\..\src\ta_func\ta_DIV.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_DIV.obj ..\..\..\..\..\src\ta_func\ta_DIV.c + +..\..\..\..\..\temp\csd\ta_DX.obj: ..\..\..\..\..\src\ta_func\ta_DX.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_DX.obj ..\..\..\..\..\src\ta_func\ta_DX.c + +..\..\..\..\..\temp\csd\ta_EMA.obj: ..\..\..\..\..\src\ta_func\ta_EMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_EMA.obj ..\..\..\..\..\src\ta_func\ta_EMA.c + +..\..\..\..\..\temp\csd\ta_EXP.obj: ..\..\..\..\..\src\ta_func\ta_EXP.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_EXP.obj ..\..\..\..\..\src\ta_func\ta_EXP.c + +..\..\..\..\..\temp\csd\ta_FLOOR.obj: ..\..\..\..\..\src\ta_func\ta_FLOOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_FLOOR.obj ..\..\..\..\..\src\ta_func\ta_FLOOR.c + +..\..\..\..\..\temp\csd\ta_HT_DCPERIOD.obj: ..\..\..\..\..\src\ta_func\ta_HT_DCPERIOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_HT_DCPERIOD.obj ..\..\..\..\..\src\ta_func\ta_HT_DCPERIOD.c + +..\..\..\..\..\temp\csd\ta_HT_DCPHASE.obj: ..\..\..\..\..\src\ta_func\ta_HT_DCPHASE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_HT_DCPHASE.obj ..\..\..\..\..\src\ta_func\ta_HT_DCPHASE.c + +..\..\..\..\..\temp\csd\ta_HT_PHASOR.obj: ..\..\..\..\..\src\ta_func\ta_HT_PHASOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_HT_PHASOR.obj ..\..\..\..\..\src\ta_func\ta_HT_PHASOR.c + +..\..\..\..\..\temp\csd\ta_HT_SINE.obj: ..\..\..\..\..\src\ta_func\ta_HT_SINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_HT_SINE.obj ..\..\..\..\..\src\ta_func\ta_HT_SINE.c + +..\..\..\..\..\temp\csd\ta_HT_TRENDLINE.obj: ..\..\..\..\..\src\ta_func\ta_HT_TRENDLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_HT_TRENDLINE.obj ..\..\..\..\..\src\ta_func\ta_HT_TRENDLINE.c + +..\..\..\..\..\temp\csd\ta_HT_TRENDMODE.obj: ..\..\..\..\..\src\ta_func\ta_HT_TRENDMODE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_HT_TRENDMODE.obj ..\..\..\..\..\src\ta_func\ta_HT_TRENDMODE.c + +..\..\..\..\..\temp\csd\ta_KAMA.obj: ..\..\..\..\..\src\ta_func\ta_KAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_KAMA.obj ..\..\..\..\..\src\ta_func\ta_KAMA.c + +..\..\..\..\..\temp\csd\ta_LINEARREG.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_LINEARREG.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG.c + +..\..\..\..\..\temp\csd\ta_LINEARREG_ANGLE.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG_ANGLE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_LINEARREG_ANGLE.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG_ANGLE.c + +..\..\..\..\..\temp\csd\ta_LINEARREG_INTERCEPT.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG_INTERCEPT.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_LINEARREG_INTERCEPT.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG_INTERCEPT.c + +..\..\..\..\..\temp\csd\ta_LINEARREG_SLOPE.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG_SLOPE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_LINEARREG_SLOPE.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG_SLOPE.c + +..\..\..\..\..\temp\csd\ta_LN.obj: ..\..\..\..\..\src\ta_func\ta_LN.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_LN.obj ..\..\..\..\..\src\ta_func\ta_LN.c + +..\..\..\..\..\temp\csd\ta_LOG10.obj: ..\..\..\..\..\src\ta_func\ta_LOG10.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_LOG10.obj ..\..\..\..\..\src\ta_func\ta_LOG10.c + +..\..\..\..\..\temp\csd\ta_MA.obj: ..\..\..\..\..\src\ta_func\ta_MA.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_MA.obj ..\..\..\..\..\src\ta_func\ta_MA.c + +..\..\..\..\..\temp\csd\ta_MACD.obj: ..\..\..\..\..\src\ta_func\ta_MACD.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_MACD.obj ..\..\..\..\..\src\ta_func\ta_MACD.c + +..\..\..\..\..\temp\csd\ta_MACDEXT.obj: ..\..\..\..\..\src\ta_func\ta_MACDEXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_MACDEXT.obj ..\..\..\..\..\src\ta_func\ta_MACDEXT.c + +..\..\..\..\..\temp\csd\ta_MACDFIX.obj: ..\..\..\..\..\src\ta_func\ta_MACDFIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_MACDFIX.obj ..\..\..\..\..\src\ta_func\ta_MACDFIX.c + +..\..\..\..\..\temp\csd\ta_MAMA.obj: ..\..\..\..\..\src\ta_func\ta_MAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_MAMA.obj ..\..\..\..\..\src\ta_func\ta_MAMA.c + +..\..\..\..\..\temp\csd\ta_MAVP.obj: ..\..\..\..\..\src\ta_func\ta_MAVP.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_MAVP.obj ..\..\..\..\..\src\ta_func\ta_MAVP.c + +..\..\..\..\..\temp\csd\ta_MAX.obj: ..\..\..\..\..\src\ta_func\ta_MAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_MAX.obj ..\..\..\..\..\src\ta_func\ta_MAX.c + +..\..\..\..\..\temp\csd\ta_MAXINDEX.obj: ..\..\..\..\..\src\ta_func\ta_MAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_MAXINDEX.obj ..\..\..\..\..\src\ta_func\ta_MAXINDEX.c + +..\..\..\..\..\temp\csd\ta_MEDPRICE.obj: ..\..\..\..\..\src\ta_func\ta_MEDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_MEDPRICE.obj ..\..\..\..\..\src\ta_func\ta_MEDPRICE.c + +..\..\..\..\..\temp\csd\ta_MFI.obj: ..\..\..\..\..\src\ta_func\ta_MFI.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_MFI.obj ..\..\..\..\..\src\ta_func\ta_MFI.c + +..\..\..\..\..\temp\csd\ta_MIDPOINT.obj: ..\..\..\..\..\src\ta_func\ta_MIDPOINT.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_MIDPOINT.obj ..\..\..\..\..\src\ta_func\ta_MIDPOINT.c + +..\..\..\..\..\temp\csd\ta_MIDPRICE.obj: ..\..\..\..\..\src\ta_func\ta_MIDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_MIDPRICE.obj ..\..\..\..\..\src\ta_func\ta_MIDPRICE.c + +..\..\..\..\..\temp\csd\ta_MIN.obj: ..\..\..\..\..\src\ta_func\ta_MIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_MIN.obj ..\..\..\..\..\src\ta_func\ta_MIN.c + +..\..\..\..\..\temp\csd\ta_MININDEX.obj: ..\..\..\..\..\src\ta_func\ta_MININDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_MININDEX.obj ..\..\..\..\..\src\ta_func\ta_MININDEX.c + +..\..\..\..\..\temp\csd\ta_MINMAX.obj: ..\..\..\..\..\src\ta_func\ta_MINMAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_MINMAX.obj ..\..\..\..\..\src\ta_func\ta_MINMAX.c + +..\..\..\..\..\temp\csd\ta_MINMAXINDEX.obj: ..\..\..\..\..\src\ta_func\ta_MINMAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_MINMAXINDEX.obj ..\..\..\..\..\src\ta_func\ta_MINMAXINDEX.c + +..\..\..\..\..\temp\csd\ta_MINUS_DI.obj: ..\..\..\..\..\src\ta_func\ta_MINUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_MINUS_DI.obj ..\..\..\..\..\src\ta_func\ta_MINUS_DI.c + +..\..\..\..\..\temp\csd\ta_MINUS_DM.obj: ..\..\..\..\..\src\ta_func\ta_MINUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_MINUS_DM.obj ..\..\..\..\..\src\ta_func\ta_MINUS_DM.c + +..\..\..\..\..\temp\csd\ta_MOM.obj: ..\..\..\..\..\src\ta_func\ta_MOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_MOM.obj ..\..\..\..\..\src\ta_func\ta_MOM.c + +..\..\..\..\..\temp\csd\ta_MULT.obj: ..\..\..\..\..\src\ta_func\ta_MULT.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_MULT.obj ..\..\..\..\..\src\ta_func\ta_MULT.c + +..\..\..\..\..\temp\csd\ta_NATR.obj: ..\..\..\..\..\src\ta_func\ta_NATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_NATR.obj ..\..\..\..\..\src\ta_func\ta_NATR.c + +..\..\..\..\..\temp\csd\ta_OBV.obj: ..\..\..\..\..\src\ta_func\ta_OBV.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_OBV.obj ..\..\..\..\..\src\ta_func\ta_OBV.c + +..\..\..\..\..\temp\csd\ta_PLUS_DI.obj: ..\..\..\..\..\src\ta_func\ta_PLUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_PLUS_DI.obj ..\..\..\..\..\src\ta_func\ta_PLUS_DI.c + +..\..\..\..\..\temp\csd\ta_PLUS_DM.obj: ..\..\..\..\..\src\ta_func\ta_PLUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_PLUS_DM.obj ..\..\..\..\..\src\ta_func\ta_PLUS_DM.c + +..\..\..\..\..\temp\csd\ta_PPO.obj: ..\..\..\..\..\src\ta_func\ta_PPO.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_PPO.obj ..\..\..\..\..\src\ta_func\ta_PPO.c + +..\..\..\..\..\temp\csd\ta_ROC.obj: ..\..\..\..\..\src\ta_func\ta_ROC.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_ROC.obj ..\..\..\..\..\src\ta_func\ta_ROC.c + +..\..\..\..\..\temp\csd\ta_ROCP.obj: ..\..\..\..\..\src\ta_func\ta_ROCP.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_ROCP.obj ..\..\..\..\..\src\ta_func\ta_ROCP.c + +..\..\..\..\..\temp\csd\ta_ROCR.obj: ..\..\..\..\..\src\ta_func\ta_ROCR.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_ROCR.obj ..\..\..\..\..\src\ta_func\ta_ROCR.c + +..\..\..\..\..\temp\csd\ta_ROCR100.obj: ..\..\..\..\..\src\ta_func\ta_ROCR100.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_ROCR100.obj ..\..\..\..\..\src\ta_func\ta_ROCR100.c + +..\..\..\..\..\temp\csd\ta_RSI.obj: ..\..\..\..\..\src\ta_func\ta_RSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_RSI.obj ..\..\..\..\..\src\ta_func\ta_RSI.c + +..\..\..\..\..\temp\csd\ta_SAR.obj: ..\..\..\..\..\src\ta_func\ta_SAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_SAR.obj ..\..\..\..\..\src\ta_func\ta_SAR.c + +..\..\..\..\..\temp\csd\ta_SAREXT.obj: ..\..\..\..\..\src\ta_func\ta_SAREXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_SAREXT.obj ..\..\..\..\..\src\ta_func\ta_SAREXT.c + +..\..\..\..\..\temp\csd\ta_SIN.obj: ..\..\..\..\..\src\ta_func\ta_SIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_SIN.obj ..\..\..\..\..\src\ta_func\ta_SIN.c + +..\..\..\..\..\temp\csd\ta_SINH.obj: ..\..\..\..\..\src\ta_func\ta_SINH.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_SINH.obj ..\..\..\..\..\src\ta_func\ta_SINH.c + +..\..\..\..\..\temp\csd\ta_SMA.obj: ..\..\..\..\..\src\ta_func\ta_SMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_SMA.obj ..\..\..\..\..\src\ta_func\ta_SMA.c + +..\..\..\..\..\temp\csd\ta_SQRT.obj: ..\..\..\..\..\src\ta_func\ta_SQRT.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_SQRT.obj ..\..\..\..\..\src\ta_func\ta_SQRT.c + +..\..\..\..\..\temp\csd\ta_STDDEV.obj: ..\..\..\..\..\src\ta_func\ta_STDDEV.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_STDDEV.obj ..\..\..\..\..\src\ta_func\ta_STDDEV.c + +..\..\..\..\..\temp\csd\ta_STOCH.obj: ..\..\..\..\..\src\ta_func\ta_STOCH.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_STOCH.obj ..\..\..\..\..\src\ta_func\ta_STOCH.c + +..\..\..\..\..\temp\csd\ta_STOCHF.obj: ..\..\..\..\..\src\ta_func\ta_STOCHF.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_STOCHF.obj ..\..\..\..\..\src\ta_func\ta_STOCHF.c + +..\..\..\..\..\temp\csd\ta_STOCHRSI.obj: ..\..\..\..\..\src\ta_func\ta_STOCHRSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_STOCHRSI.obj ..\..\..\..\..\src\ta_func\ta_STOCHRSI.c + +..\..\..\..\..\temp\csd\ta_SUB.obj: ..\..\..\..\..\src\ta_func\ta_SUB.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_SUB.obj ..\..\..\..\..\src\ta_func\ta_SUB.c + +..\..\..\..\..\temp\csd\ta_SUM.obj: ..\..\..\..\..\src\ta_func\ta_SUM.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_SUM.obj ..\..\..\..\..\src\ta_func\ta_SUM.c + +..\..\..\..\..\temp\csd\ta_T3.obj: ..\..\..\..\..\src\ta_func\ta_T3.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_T3.obj ..\..\..\..\..\src\ta_func\ta_T3.c + +..\..\..\..\..\temp\csd\ta_TAN.obj: ..\..\..\..\..\src\ta_func\ta_TAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_TAN.obj ..\..\..\..\..\src\ta_func\ta_TAN.c + +..\..\..\..\..\temp\csd\ta_TANH.obj: ..\..\..\..\..\src\ta_func\ta_TANH.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_TANH.obj ..\..\..\..\..\src\ta_func\ta_TANH.c + +..\..\..\..\..\temp\csd\ta_TEMA.obj: ..\..\..\..\..\src\ta_func\ta_TEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_TEMA.obj ..\..\..\..\..\src\ta_func\ta_TEMA.c + +..\..\..\..\..\temp\csd\ta_TRANGE.obj: ..\..\..\..\..\src\ta_func\ta_TRANGE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_TRANGE.obj ..\..\..\..\..\src\ta_func\ta_TRANGE.c + +..\..\..\..\..\temp\csd\ta_TRIMA.obj: ..\..\..\..\..\src\ta_func\ta_TRIMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_TRIMA.obj ..\..\..\..\..\src\ta_func\ta_TRIMA.c + +..\..\..\..\..\temp\csd\ta_TRIX.obj: ..\..\..\..\..\src\ta_func\ta_TRIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_TRIX.obj ..\..\..\..\..\src\ta_func\ta_TRIX.c + +..\..\..\..\..\temp\csd\ta_TSF.obj: ..\..\..\..\..\src\ta_func\ta_TSF.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_TSF.obj ..\..\..\..\..\src\ta_func\ta_TSF.c + +..\..\..\..\..\temp\csd\ta_TYPPRICE.obj: ..\..\..\..\..\src\ta_func\ta_TYPPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_TYPPRICE.obj ..\..\..\..\..\src\ta_func\ta_TYPPRICE.c + +..\..\..\..\..\temp\csd\ta_ULTOSC.obj: ..\..\..\..\..\src\ta_func\ta_ULTOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_ULTOSC.obj ..\..\..\..\..\src\ta_func\ta_ULTOSC.c + +..\..\..\..\..\temp\csd\ta_VAR.obj: ..\..\..\..\..\src\ta_func\ta_VAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_VAR.obj ..\..\..\..\..\src\ta_func\ta_VAR.c + +..\..\..\..\..\temp\csd\ta_WCLPRICE.obj: ..\..\..\..\..\src\ta_func\ta_WCLPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_WCLPRICE.obj ..\..\..\..\..\src\ta_func\ta_WCLPRICE.c + +..\..\..\..\..\temp\csd\ta_WILLR.obj: ..\..\..\..\..\src\ta_func\ta_WILLR.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_WILLR.obj ..\..\..\..\..\src\ta_func\ta_WILLR.c + +..\..\..\..\..\temp\csd\ta_WMA.obj: ..\..\..\..\..\src\ta_func\ta_WMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_WMA.obj ..\..\..\..\..\src\ta_func\ta_WMA.c + diff --git a/make/csd/win32/watcom/ta_regtest/Makefile b/make/csd/win32/watcom/ta_regtest/Makefile new file mode 100644 index 000000000..d99a25d97 --- /dev/null +++ b/make/csd/win32/watcom/ta_regtest/Makefile @@ -0,0 +1,219 @@ +############################################################################# +# Makefile for building ta_regtest +# Generated by tmake; +# Project: ta_regtest/ta_regtest +# Template: app +############################################################################# + +####### Compiler, tools and options + +CC = wcl386 +CXX = wcl386 +CFLAGS = -zq -w2 -d2 -d=TA_DEBUG -d=_DEBUG -d=TA_SINGLE_THREAD -d=WIN32 +CXXFLAGS= -zq -w2 -d2 -d=TA_DEBUG -d=_DEBUG -d=TA_SINGLE_THREAD -d=WIN32 +INCPATH = -i="..\..\..\..\..\src\ta_common" -i="..\..\..\..\..\src\tools\ta_regtest" -i="..\..\..\..\..\src\ta_func" -i="..\..\..\..\..\include" +LINK = wlink +LFLAGS = op quiet op c d all sys nt +LIBS = ..\..\..\..\..\lib\ta_libc_csd.lib +MOC = moc + +ZIP = zip -r -9 + +####### Files + +HEADERS = +SOURCES = ..\..\..\..\..\src\tools\ta_regtest\ta_regtest.c & + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_candlestick.c & + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_1in_1out.c & + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_1in_2out.c & + ..\..\..\..\..\src\tools\ta_regtest\test_internals.c & + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_adx.c & + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_bbands.c & + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_ma.c & + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_macd.c & + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_minmax.c & + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_mom.c & + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_ema.c & + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hl.c & + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hlc.c & + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hlcv.c & + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_ohlc.c & + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_po.c & + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_rsi.c & + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_sar.c & + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_stddev.c & + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_stoch.c & + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_trange.c & + ..\..\..\..\..\src\tools\ta_regtest\test_util.c & + ..\..\..\..\..\src\tools\ta_regtest\test_data.c & + ..\..\..\..\..\src\tools\ta_regtest\test_abstract.c +OBJECTS = ..\..\..\..\..\temp\csd\ta_regtest.obj & + ..\..\..\..\..\temp\csd\test_candlestick.obj & + ..\..\..\..\..\temp\csd\test_1in_1out.obj & + ..\..\..\..\..\temp\csd\test_1in_2out.obj & + ..\..\..\..\..\temp\csd\test_internals.obj & + ..\..\..\..\..\temp\csd\test_adx.obj & + ..\..\..\..\..\temp\csd\test_bbands.obj & + ..\..\..\..\..\temp\csd\test_ma.obj & + ..\..\..\..\..\temp\csd\test_macd.obj & + ..\..\..\..\..\temp\csd\test_minmax.obj & + ..\..\..\..\..\temp\csd\test_mom.obj & + ..\..\..\..\..\temp\csd\test_per_ema.obj & + ..\..\..\..\..\temp\csd\test_per_hl.obj & + ..\..\..\..\..\temp\csd\test_per_hlc.obj & + ..\..\..\..\..\temp\csd\test_per_hlcv.obj & + ..\..\..\..\..\temp\csd\test_per_ohlc.obj & + ..\..\..\..\..\temp\csd\test_po.obj & + ..\..\..\..\..\temp\csd\test_rsi.obj & + ..\..\..\..\..\temp\csd\test_sar.obj & + ..\..\..\..\..\temp\csd\test_stddev.obj & + ..\..\..\..\..\temp\csd\test_stoch.obj & + ..\..\..\..\..\temp\csd\test_trange.obj & + ..\..\..\..\..\temp\csd\test_util.obj & + ..\..\..\..\..\temp\csd\test_data.obj & + ..\..\..\..\..\temp\csd\test_abstract.obj +SRCMOC = +OBJMOC = +DIST = +TARGET = ..\..\..\..\..\bin\ta_regtest.exe +TMPLIST = ta_regtest.lst + +####### Build rules + +all: $(TARGET) + +$(TARGET): $(OBJECTS) $(OBJMOC) + @%create $(TMPLIST) + @%append $(TMPLIST) NAME ta_regtest + @%append $(TMPLIST) FIL ..\..\..\..\..\temp\csd\ta_regtest.obj,..\..\..\..\..\temp\csd\test_candlestick.obj,..\..\..\..\..\temp\csd\test_1in_1out.obj,..\..\..\..\..\temp\csd\test_1in_2out.obj,..\..\..\..\..\temp\csd\test_internals.obj,..\..\..\..\..\temp\csd\test_adx.obj,..\..\..\..\..\temp\csd\test_bbands.obj,..\..\..\..\..\temp\csd\test_ma.obj,..\..\..\..\..\temp\csd\test_macd.obj,..\..\..\..\..\temp\csd\test_minmax.obj,..\..\..\..\..\temp\csd\test_mom.obj,..\..\..\..\..\temp\csd\test_per_ema.obj,..\..\..\..\..\temp\csd\test_per_hl.obj,..\..\..\..\..\temp\csd\test_per_hlc.obj,..\..\..\..\..\temp\csd\test_per_hlcv.obj,..\..\..\..\..\temp\csd\test_per_ohlc.obj,..\..\..\..\..\temp\csd\test_po.obj,..\..\..\..\..\temp\csd\test_rsi.obj,..\..\..\..\..\temp\csd\test_sar.obj,..\..\..\..\..\temp\csd\test_stddev.obj,..\..\..\..\..\temp\csd\test_stoch.obj,..\..\..\..\..\temp\csd\test_trange.obj,..\..\..\..\..\temp\csd\test_util.obj,..\..\..\..\..\temp\csd\test_data.obj,..\..\..\..\..\temp\csd\test_abstract.obj + @%append $(TMPLIST) LIBR ..\..\..\..\..\lib\ta_libc_csd.lib + $(LINK) $(LFLAGS) @$(TMPLIST) + del $(TMPLIST) + +moc: $(SRCMOC) + +tmake: ../csd/win32/watcom/ta_regtest/Makefile + +../csd/win32/watcom/ta_regtest/Makefile: ta_regtest/ta_regtest.pro + tmake ta_regtest/ta_regtest.pro -o ../csd/win32/watcom/ta_regtest/Makefile + +dist: + $(ZIP) ta_regtest/ta_regtest.zip ta_regtest/ta_regtest.pro $(SOURCES) $(HEADERS) $(DIST) + +clean: + -del ..\..\..\..\..\temp\csd\ta_regtest.obj + -del ..\..\..\..\..\temp\csd\test_candlestick.obj + -del ..\..\..\..\..\temp\csd\test_1in_1out.obj + -del ..\..\..\..\..\temp\csd\test_1in_2out.obj + -del ..\..\..\..\..\temp\csd\test_internals.obj + -del ..\..\..\..\..\temp\csd\test_adx.obj + -del ..\..\..\..\..\temp\csd\test_bbands.obj + -del ..\..\..\..\..\temp\csd\test_ma.obj + -del ..\..\..\..\..\temp\csd\test_macd.obj + -del ..\..\..\..\..\temp\csd\test_minmax.obj + -del ..\..\..\..\..\temp\csd\test_mom.obj + -del ..\..\..\..\..\temp\csd\test_per_ema.obj + -del ..\..\..\..\..\temp\csd\test_per_hl.obj + -del ..\..\..\..\..\temp\csd\test_per_hlc.obj + -del ..\..\..\..\..\temp\csd\test_per_hlcv.obj + -del ..\..\..\..\..\temp\csd\test_per_ohlc.obj + -del ..\..\..\..\..\temp\csd\test_po.obj + -del ..\..\..\..\..\temp\csd\test_rsi.obj + -del ..\..\..\..\..\temp\csd\test_sar.obj + -del ..\..\..\..\..\temp\csd\test_stddev.obj + -del ..\..\..\..\..\temp\csd\test_stoch.obj + -del ..\..\..\..\..\temp\csd\test_trange.obj + -del ..\..\..\..\..\temp\csd\test_util.obj + -del ..\..\..\..\..\temp\csd\test_data.obj + -del ..\..\..\..\..\temp\csd\test_abstract.obj + -del $(TARGET) + -del ../../../../../bin/*.map + -del ../../../../../bin/*._xe + -del ../../../../../bin/*.tds + -del ../../../../../bin/*.pdb + -del ../../../../../bin/*.pbo + -del ../../../../../bin/*.pbi + -del ../../../../../bin/*.pbt + -del ../../../../../temp/csd/*.pch + -del ../../../../../temp/csd/*.idb + -del ../../../../../temp/csd/ta_regtest/*.pch + -del ../../../../../temp/csd/ta_regtest/*.idb + -del ../../../../../temp/csd/ta_regtest/*.obj + +####### Compile + +..\..\..\..\..\temp\csd\ta_regtest.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_regtest.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\ta_regtest.obj ..\..\..\..\..\src\tools\ta_regtest\ta_regtest.c + +..\..\..\..\..\temp\csd\test_candlestick.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_candlestick.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\test_candlestick.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_candlestick.c + +..\..\..\..\..\temp\csd\test_1in_1out.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_1in_1out.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\test_1in_1out.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_1in_1out.c + +..\..\..\..\..\temp\csd\test_1in_2out.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_1in_2out.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\test_1in_2out.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_1in_2out.c + +..\..\..\..\..\temp\csd\test_internals.obj: ..\..\..\..\..\src\tools\ta_regtest\test_internals.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\test_internals.obj ..\..\..\..\..\src\tools\ta_regtest\test_internals.c + +..\..\..\..\..\temp\csd\test_adx.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_adx.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\test_adx.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_adx.c + +..\..\..\..\..\temp\csd\test_bbands.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_bbands.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\test_bbands.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_bbands.c + +..\..\..\..\..\temp\csd\test_ma.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_ma.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\test_ma.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_ma.c + +..\..\..\..\..\temp\csd\test_macd.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_macd.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\test_macd.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_macd.c + +..\..\..\..\..\temp\csd\test_minmax.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_minmax.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\test_minmax.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_minmax.c + +..\..\..\..\..\temp\csd\test_mom.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_mom.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\test_mom.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_mom.c + +..\..\..\..\..\temp\csd\test_per_ema.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_ema.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\test_per_ema.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_ema.c + +..\..\..\..\..\temp\csd\test_per_hl.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hl.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\test_per_hl.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hl.c + +..\..\..\..\..\temp\csd\test_per_hlc.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hlc.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\test_per_hlc.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hlc.c + +..\..\..\..\..\temp\csd\test_per_hlcv.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hlcv.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\test_per_hlcv.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hlcv.c + +..\..\..\..\..\temp\csd\test_per_ohlc.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_ohlc.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\test_per_ohlc.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_ohlc.c + +..\..\..\..\..\temp\csd\test_po.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_po.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\test_po.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_po.c + +..\..\..\..\..\temp\csd\test_rsi.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_rsi.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\test_rsi.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_rsi.c + +..\..\..\..\..\temp\csd\test_sar.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_sar.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\test_sar.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_sar.c + +..\..\..\..\..\temp\csd\test_stddev.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_stddev.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\test_stddev.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_stddev.c + +..\..\..\..\..\temp\csd\test_stoch.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_stoch.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\test_stoch.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_stoch.c + +..\..\..\..\..\temp\csd\test_trange.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_trange.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\test_trange.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_trange.c + +..\..\..\..\..\temp\csd\test_util.obj: ..\..\..\..\..\src\tools\ta_regtest\test_util.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\test_util.obj ..\..\..\..\..\src\tools\ta_regtest\test_util.c + +..\..\..\..\..\temp\csd\test_data.obj: ..\..\..\..\..\src\tools\ta_regtest\test_data.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\test_data.obj ..\..\..\..\..\src\tools\ta_regtest\test_data.c + +..\..\..\..\..\temp\csd\test_abstract.obj: ..\..\..\..\..\src\tools\ta_regtest\test_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csd\test_abstract.obj ..\..\..\..\..\src\tools\ta_regtest\test_abstract.c + diff --git a/make/csp/cygwin/g++/Makefile b/make/csp/cygwin/g++/Makefile new file mode 100644 index 000000000..dfb351cad --- /dev/null +++ b/make/csp/cygwin/g++/Makefile @@ -0,0 +1,36 @@ +############################################################################# +# Makefile for building targets in sub directories. +# Generated by tmake; +# Project: rootmake +# Template: subdirs +############################################################################# + +MAKEFILE= Makefile +TMAKE = tmake + +SUBDIRS = ta_common \ + ta_func \ + ta_abstract \ + ta_libc \ + gen_code \ + ta_regtest + +all: $(SUBDIRS) + +$(SUBDIRS): FORCE + cd $@; $(MAKE) + +tmake: ../csp/cygwin/g++/Makefile + +../csp/cygwin/g++/Makefile: rootmake.pro + tmake rootmake.pro -o ../csp/cygwin/g++/Makefile + +tmake_all: + for i in $(SUBDIRS); do ( if [ -d $$i ]; then cd $$i ; $(MAKE) -f $(MAKEFILE) tmake_all || true; fi; ) ; done + +#### $text = "\t" . 'for i in $(SUBDIRS); do ( if [ -d $$i ]; then cd $$i ; pro=`basename $$i`.pro ; $(TMAKE) $$pro -o $(MAKEFILE); grep "TEMPLATE.*subdirs" $$pro 2>/dev/null >/dev/null && $(MAKE) -f $(MAKEFILE) tmake_all || true; fi; ) ; done'; + +clean release debug: + for i in $(SUBDIRS); do ( if [ -d $$i ]; then cd $$i ; $(MAKE) $@; fi; ) ; done + +FORCE: diff --git a/make/csp/cygwin/g++/gen_code/Makefile b/make/csp/cygwin/g++/gen_code/Makefile new file mode 100644 index 000000000..b627d3c40 --- /dev/null +++ b/make/csp/cygwin/g++/gen_code/Makefile @@ -0,0 +1,231 @@ +############################################################################# +# Makefile for building ../../../../../bin/gen_code +# Generated by tmake; +# Project: gen_code/gen_code +# Template: app +############################################################################# + +####### Compiler, tools and options + +CC = gcc +CXX = g++ +CFLAGS = -pipe -Wall -W -g -O -pg -DTA_GEN_CODE -DTA_DEBUG -D_DEBUG -DTA_SINGLE_THREAD +CXXFLAGS= -pipe -Wall -W -g -DTA_GEN_CODE -DTA_DEBUG -D_DEBUG -DTA_SINGLE_THREAD +INCPATH = -I../../../../../include -I../../../../../src/ta_common -I../../../../../src/ta_abstract -I../../../../../src/ta_abstract/tables -I../../../../../src/ta_abstract/frames +LINK = g++ +LFLAGS = -pg +LIBS = $(SUBLIBS) ../../../../../lib/libta_common_csp.a +MOC = $(QTDIR)/bin/moc +UIC = $(QTDIR)/bin/uic + +TAR = tar -cf +GZIP = gzip -9f + +####### Support for 64-bit systems +ifeq ($(shell uname -m), x86_64) + CFLAGS += -march=x86-64 -m64 -D__64BIT__ + CXXFLAGS += -march=x86-64 -m64 -D__64BIT__ +endif + +####### Apply additional overruling user flags, if any +CFLAGS += $(CUSERFLAGS) +CXXFLAGS += $(CUSERFLAGS) + +####### Files + +HEADERS = +SOURCES = ../../../../../src/tools/gen_code/gen_code.c \ + ../../../../../src/ta_abstract/ta_abstract.c \ + ../../../../../src/ta_abstract/ta_def_ui.c \ + ../../../../../src/ta_abstract/tables/table_a.c \ + ../../../../../src/ta_abstract/tables/table_b.c \ + ../../../../../src/ta_abstract/tables/table_c.c \ + ../../../../../src/ta_abstract/tables/table_d.c \ + ../../../../../src/ta_abstract/tables/table_e.c \ + ../../../../../src/ta_abstract/tables/table_f.c \ + ../../../../../src/ta_abstract/tables/table_g.c \ + ../../../../../src/ta_abstract/tables/table_h.c \ + ../../../../../src/ta_abstract/tables/table_i.c \ + ../../../../../src/ta_abstract/tables/table_j.c \ + ../../../../../src/ta_abstract/tables/table_k.c \ + ../../../../../src/ta_abstract/tables/table_l.c \ + ../../../../../src/ta_abstract/tables/table_m.c \ + ../../../../../src/ta_abstract/tables/table_n.c \ + ../../../../../src/ta_abstract/tables/table_o.c \ + ../../../../../src/ta_abstract/tables/table_p.c \ + ../../../../../src/ta_abstract/tables/table_q.c \ + ../../../../../src/ta_abstract/tables/table_r.c \ + ../../../../../src/ta_abstract/tables/table_s.c \ + ../../../../../src/ta_abstract/tables/table_t.c \ + ../../../../../src/ta_abstract/tables/table_u.c \ + ../../../../../src/ta_abstract/tables/table_v.c \ + ../../../../../src/ta_abstract/tables/table_w.c \ + ../../../../../src/ta_abstract/tables/table_x.c \ + ../../../../../src/ta_abstract/tables/table_y.c \ + ../../../../../src/ta_abstract/tables/table_z.c +OBJECTS = ../../../../../temp/csp/gen_code/gen_code.o \ + ../../../../../temp/csp/gen_code/ta_abstract.o \ + ../../../../../temp/csp/gen_code/ta_def_ui.o \ + ../../../../../temp/csp/gen_code/table_a.o \ + ../../../../../temp/csp/gen_code/table_b.o \ + ../../../../../temp/csp/gen_code/table_c.o \ + ../../../../../temp/csp/gen_code/table_d.o \ + ../../../../../temp/csp/gen_code/table_e.o \ + ../../../../../temp/csp/gen_code/table_f.o \ + ../../../../../temp/csp/gen_code/table_g.o \ + ../../../../../temp/csp/gen_code/table_h.o \ + ../../../../../temp/csp/gen_code/table_i.o \ + ../../../../../temp/csp/gen_code/table_j.o \ + ../../../../../temp/csp/gen_code/table_k.o \ + ../../../../../temp/csp/gen_code/table_l.o \ + ../../../../../temp/csp/gen_code/table_m.o \ + ../../../../../temp/csp/gen_code/table_n.o \ + ../../../../../temp/csp/gen_code/table_o.o \ + ../../../../../temp/csp/gen_code/table_p.o \ + ../../../../../temp/csp/gen_code/table_q.o \ + ../../../../../temp/csp/gen_code/table_r.o \ + ../../../../../temp/csp/gen_code/table_s.o \ + ../../../../../temp/csp/gen_code/table_t.o \ + ../../../../../temp/csp/gen_code/table_u.o \ + ../../../../../temp/csp/gen_code/table_v.o \ + ../../../../../temp/csp/gen_code/table_w.o \ + ../../../../../temp/csp/gen_code/table_x.o \ + ../../../../../temp/csp/gen_code/table_y.o \ + ../../../../../temp/csp/gen_code/table_z.o +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ../../../../../bin/gen_code +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .C .c + +.cpp.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cxx.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cc.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.C.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.c.o: + $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $< + +####### Build rules + + +all: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS) + +moc: $(SRCMOC) + +clean: + -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) + -rm -f *~ core + +####### Sub-libraries + + +###### Combined headers + + +####### Compile + +../../../../../temp/csp/gen_code/gen_code.o: ../../../../../src/tools/gen_code/gen_code.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/gen_code/gen_code.o ../../../../../src/tools/gen_code/gen_code.c + +../../../../../temp/csp/gen_code/ta_abstract.o: ../../../../../src/ta_abstract/ta_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/gen_code/ta_abstract.o ../../../../../src/ta_abstract/ta_abstract.c + +../../../../../temp/csp/gen_code/ta_def_ui.o: ../../../../../src/ta_abstract/ta_def_ui.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/gen_code/ta_def_ui.o ../../../../../src/ta_abstract/ta_def_ui.c + +../../../../../temp/csp/gen_code/table_a.o: ../../../../../src/ta_abstract/tables/table_a.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/gen_code/table_a.o ../../../../../src/ta_abstract/tables/table_a.c + +../../../../../temp/csp/gen_code/table_b.o: ../../../../../src/ta_abstract/tables/table_b.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/gen_code/table_b.o ../../../../../src/ta_abstract/tables/table_b.c + +../../../../../temp/csp/gen_code/table_c.o: ../../../../../src/ta_abstract/tables/table_c.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/gen_code/table_c.o ../../../../../src/ta_abstract/tables/table_c.c + +../../../../../temp/csp/gen_code/table_d.o: ../../../../../src/ta_abstract/tables/table_d.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/gen_code/table_d.o ../../../../../src/ta_abstract/tables/table_d.c + +../../../../../temp/csp/gen_code/table_e.o: ../../../../../src/ta_abstract/tables/table_e.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/gen_code/table_e.o ../../../../../src/ta_abstract/tables/table_e.c + +../../../../../temp/csp/gen_code/table_f.o: ../../../../../src/ta_abstract/tables/table_f.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/gen_code/table_f.o ../../../../../src/ta_abstract/tables/table_f.c + +../../../../../temp/csp/gen_code/table_g.o: ../../../../../src/ta_abstract/tables/table_g.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/gen_code/table_g.o ../../../../../src/ta_abstract/tables/table_g.c + +../../../../../temp/csp/gen_code/table_h.o: ../../../../../src/ta_abstract/tables/table_h.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/gen_code/table_h.o ../../../../../src/ta_abstract/tables/table_h.c + +../../../../../temp/csp/gen_code/table_i.o: ../../../../../src/ta_abstract/tables/table_i.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/gen_code/table_i.o ../../../../../src/ta_abstract/tables/table_i.c + +../../../../../temp/csp/gen_code/table_j.o: ../../../../../src/ta_abstract/tables/table_j.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/gen_code/table_j.o ../../../../../src/ta_abstract/tables/table_j.c + +../../../../../temp/csp/gen_code/table_k.o: ../../../../../src/ta_abstract/tables/table_k.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/gen_code/table_k.o ../../../../../src/ta_abstract/tables/table_k.c + +../../../../../temp/csp/gen_code/table_l.o: ../../../../../src/ta_abstract/tables/table_l.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/gen_code/table_l.o ../../../../../src/ta_abstract/tables/table_l.c + +../../../../../temp/csp/gen_code/table_m.o: ../../../../../src/ta_abstract/tables/table_m.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/gen_code/table_m.o ../../../../../src/ta_abstract/tables/table_m.c + +../../../../../temp/csp/gen_code/table_n.o: ../../../../../src/ta_abstract/tables/table_n.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/gen_code/table_n.o ../../../../../src/ta_abstract/tables/table_n.c + +../../../../../temp/csp/gen_code/table_o.o: ../../../../../src/ta_abstract/tables/table_o.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/gen_code/table_o.o ../../../../../src/ta_abstract/tables/table_o.c + +../../../../../temp/csp/gen_code/table_p.o: ../../../../../src/ta_abstract/tables/table_p.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/gen_code/table_p.o ../../../../../src/ta_abstract/tables/table_p.c + +../../../../../temp/csp/gen_code/table_q.o: ../../../../../src/ta_abstract/tables/table_q.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/gen_code/table_q.o ../../../../../src/ta_abstract/tables/table_q.c + +../../../../../temp/csp/gen_code/table_r.o: ../../../../../src/ta_abstract/tables/table_r.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/gen_code/table_r.o ../../../../../src/ta_abstract/tables/table_r.c + +../../../../../temp/csp/gen_code/table_s.o: ../../../../../src/ta_abstract/tables/table_s.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/gen_code/table_s.o ../../../../../src/ta_abstract/tables/table_s.c + +../../../../../temp/csp/gen_code/table_t.o: ../../../../../src/ta_abstract/tables/table_t.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/gen_code/table_t.o ../../../../../src/ta_abstract/tables/table_t.c + +../../../../../temp/csp/gen_code/table_u.o: ../../../../../src/ta_abstract/tables/table_u.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/gen_code/table_u.o ../../../../../src/ta_abstract/tables/table_u.c + +../../../../../temp/csp/gen_code/table_v.o: ../../../../../src/ta_abstract/tables/table_v.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/gen_code/table_v.o ../../../../../src/ta_abstract/tables/table_v.c + +../../../../../temp/csp/gen_code/table_w.o: ../../../../../src/ta_abstract/tables/table_w.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/gen_code/table_w.o ../../../../../src/ta_abstract/tables/table_w.c + +../../../../../temp/csp/gen_code/table_x.o: ../../../../../src/ta_abstract/tables/table_x.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/gen_code/table_x.o ../../../../../src/ta_abstract/tables/table_x.c + +../../../../../temp/csp/gen_code/table_y.o: ../../../../../src/ta_abstract/tables/table_y.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/gen_code/table_y.o ../../../../../src/ta_abstract/tables/table_y.c + +../../../../../temp/csp/gen_code/table_z.o: ../../../../../src/ta_abstract/tables/table_z.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/gen_code/table_z.o ../../../../../src/ta_abstract/tables/table_z.c + diff --git a/make/csp/cygwin/g++/ta_abstract/Makefile b/make/csp/cygwin/g++/ta_abstract/Makefile new file mode 100644 index 000000000..123645311 --- /dev/null +++ b/make/csp/cygwin/g++/ta_abstract/Makefile @@ -0,0 +1,243 @@ +############################################################################# +# Makefile for building ../../../../../lib/libta_abstract_csp.a +# Generated by tmake; +# Project: ta_abstract/ta_abstract +# Template: lib +############################################################################# + +####### Compiler, tools and options + +CC = gcc +CXX = g++ +CFLAGS = -pipe -Wall -W -g -O -pg -DTA_DEBUG -D_DEBUG -DTA_SINGLE_THREAD +CXXFLAGS= -pipe -Wall -W -g -DTA_DEBUG -D_DEBUG -DTA_SINGLE_THREAD +INCPATH = -I../../../../../src/ta_common -I../../../../../src/ta_abstract -I../../../../../src/ta_abstract/tables -I../../../../../src/ta_abstract/frames -I../../../../../include +AR = ar cqs +RANLIB = +MOC = $(QTDIR)/bin/moc +UIC = $(QTDIR)/bin/uic + +TAR = tar -cf +GZIP = gzip -9f + +####### Support for 64-bit systems +ifeq ($(shell uname -m), x86_64) + CFLAGS += -march=x86-64 -m64 -D__64BIT__ + CXXFLAGS += -march=x86-64 -m64 -D__64BIT__ +endif + +####### Apply additional overruling user flags, if any +CFLAGS += $(CUSERFLAGS) +CXXFLAGS += $(CUSERFLAGS) + +####### Files + +HEADERS = +SOURCES = ../../../../../src/ta_abstract/ta_abstract.c \ + ../../../../../src/ta_abstract/ta_def_ui.c \ + ../../../../../src/ta_abstract/ta_func_api.c \ + ../../../../../src/ta_abstract/ta_group_idx.c \ + ../../../../../src/ta_abstract/frames/ta_frame.c \ + ../../../../../src/ta_abstract/tables/table_a.c \ + ../../../../../src/ta_abstract/tables/table_b.c \ + ../../../../../src/ta_abstract/tables/table_c.c \ + ../../../../../src/ta_abstract/tables/table_d.c \ + ../../../../../src/ta_abstract/tables/table_e.c \ + ../../../../../src/ta_abstract/tables/table_f.c \ + ../../../../../src/ta_abstract/tables/table_g.c \ + ../../../../../src/ta_abstract/tables/table_h.c \ + ../../../../../src/ta_abstract/tables/table_i.c \ + ../../../../../src/ta_abstract/tables/table_j.c \ + ../../../../../src/ta_abstract/tables/table_k.c \ + ../../../../../src/ta_abstract/tables/table_l.c \ + ../../../../../src/ta_abstract/tables/table_m.c \ + ../../../../../src/ta_abstract/tables/table_n.c \ + ../../../../../src/ta_abstract/tables/table_o.c \ + ../../../../../src/ta_abstract/tables/table_p.c \ + ../../../../../src/ta_abstract/tables/table_q.c \ + ../../../../../src/ta_abstract/tables/table_r.c \ + ../../../../../src/ta_abstract/tables/table_s.c \ + ../../../../../src/ta_abstract/tables/table_t.c \ + ../../../../../src/ta_abstract/tables/table_u.c \ + ../../../../../src/ta_abstract/tables/table_v.c \ + ../../../../../src/ta_abstract/tables/table_w.c \ + ../../../../../src/ta_abstract/tables/table_x.c \ + ../../../../../src/ta_abstract/tables/table_y.c \ + ../../../../../src/ta_abstract/tables/table_z.c +OBJECTS = ../../../../../temp/csp/ta_abstract.o \ + ../../../../../temp/csp/ta_def_ui.o \ + ../../../../../temp/csp/ta_func_api.o \ + ../../../../../temp/csp/ta_group_idx.o \ + ../../../../../temp/csp/ta_frame.o \ + ../../../../../temp/csp/table_a.o \ + ../../../../../temp/csp/table_b.o \ + ../../../../../temp/csp/table_c.o \ + ../../../../../temp/csp/table_d.o \ + ../../../../../temp/csp/table_e.o \ + ../../../../../temp/csp/table_f.o \ + ../../../../../temp/csp/table_g.o \ + ../../../../../temp/csp/table_h.o \ + ../../../../../temp/csp/table_i.o \ + ../../../../../temp/csp/table_j.o \ + ../../../../../temp/csp/table_k.o \ + ../../../../../temp/csp/table_l.o \ + ../../../../../temp/csp/table_m.o \ + ../../../../../temp/csp/table_n.o \ + ../../../../../temp/csp/table_o.o \ + ../../../../../temp/csp/table_p.o \ + ../../../../../temp/csp/table_q.o \ + ../../../../../temp/csp/table_r.o \ + ../../../../../temp/csp/table_s.o \ + ../../../../../temp/csp/table_t.o \ + ../../../../../temp/csp/table_u.o \ + ../../../../../temp/csp/table_v.o \ + ../../../../../temp/csp/table_w.o \ + ../../../../../temp/csp/table_x.o \ + ../../../../../temp/csp/table_y.o \ + ../../../../../temp/csp/table_z.o +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ../../../../../lib/libta_abstract_csp.a +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .C .c + +.cpp.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cxx.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cc.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.C.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.c.o: + $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $< + +####### Build rules + + +all: $(TARGET) + +staticlib: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + -rm -f $(TARGET) + $(AR) $(TARGET) $(OBJECTS) $(OBJMOC) + +moc: $(SRCMOC) + +clean: + -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) + -rm -f *~ core + +####### Sub-libraries + + +###### Combined headers + + +####### Compile + +../../../../../temp/csp/ta_abstract.o: ../../../../../src/ta_abstract/ta_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_abstract.o ../../../../../src/ta_abstract/ta_abstract.c + +../../../../../temp/csp/ta_def_ui.o: ../../../../../src/ta_abstract/ta_def_ui.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_def_ui.o ../../../../../src/ta_abstract/ta_def_ui.c + +../../../../../temp/csp/ta_func_api.o: ../../../../../src/ta_abstract/ta_func_api.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_func_api.o ../../../../../src/ta_abstract/ta_func_api.c + +../../../../../temp/csp/ta_group_idx.o: ../../../../../src/ta_abstract/ta_group_idx.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_group_idx.o ../../../../../src/ta_abstract/ta_group_idx.c + +../../../../../temp/csp/ta_frame.o: ../../../../../src/ta_abstract/frames/ta_frame.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_frame.o ../../../../../src/ta_abstract/frames/ta_frame.c + +../../../../../temp/csp/table_a.o: ../../../../../src/ta_abstract/tables/table_a.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_a.o ../../../../../src/ta_abstract/tables/table_a.c + +../../../../../temp/csp/table_b.o: ../../../../../src/ta_abstract/tables/table_b.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_b.o ../../../../../src/ta_abstract/tables/table_b.c + +../../../../../temp/csp/table_c.o: ../../../../../src/ta_abstract/tables/table_c.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_c.o ../../../../../src/ta_abstract/tables/table_c.c + +../../../../../temp/csp/table_d.o: ../../../../../src/ta_abstract/tables/table_d.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_d.o ../../../../../src/ta_abstract/tables/table_d.c + +../../../../../temp/csp/table_e.o: ../../../../../src/ta_abstract/tables/table_e.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_e.o ../../../../../src/ta_abstract/tables/table_e.c + +../../../../../temp/csp/table_f.o: ../../../../../src/ta_abstract/tables/table_f.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_f.o ../../../../../src/ta_abstract/tables/table_f.c + +../../../../../temp/csp/table_g.o: ../../../../../src/ta_abstract/tables/table_g.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_g.o ../../../../../src/ta_abstract/tables/table_g.c + +../../../../../temp/csp/table_h.o: ../../../../../src/ta_abstract/tables/table_h.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_h.o ../../../../../src/ta_abstract/tables/table_h.c + +../../../../../temp/csp/table_i.o: ../../../../../src/ta_abstract/tables/table_i.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_i.o ../../../../../src/ta_abstract/tables/table_i.c + +../../../../../temp/csp/table_j.o: ../../../../../src/ta_abstract/tables/table_j.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_j.o ../../../../../src/ta_abstract/tables/table_j.c + +../../../../../temp/csp/table_k.o: ../../../../../src/ta_abstract/tables/table_k.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_k.o ../../../../../src/ta_abstract/tables/table_k.c + +../../../../../temp/csp/table_l.o: ../../../../../src/ta_abstract/tables/table_l.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_l.o ../../../../../src/ta_abstract/tables/table_l.c + +../../../../../temp/csp/table_m.o: ../../../../../src/ta_abstract/tables/table_m.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_m.o ../../../../../src/ta_abstract/tables/table_m.c + +../../../../../temp/csp/table_n.o: ../../../../../src/ta_abstract/tables/table_n.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_n.o ../../../../../src/ta_abstract/tables/table_n.c + +../../../../../temp/csp/table_o.o: ../../../../../src/ta_abstract/tables/table_o.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_o.o ../../../../../src/ta_abstract/tables/table_o.c + +../../../../../temp/csp/table_p.o: ../../../../../src/ta_abstract/tables/table_p.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_p.o ../../../../../src/ta_abstract/tables/table_p.c + +../../../../../temp/csp/table_q.o: ../../../../../src/ta_abstract/tables/table_q.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_q.o ../../../../../src/ta_abstract/tables/table_q.c + +../../../../../temp/csp/table_r.o: ../../../../../src/ta_abstract/tables/table_r.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_r.o ../../../../../src/ta_abstract/tables/table_r.c + +../../../../../temp/csp/table_s.o: ../../../../../src/ta_abstract/tables/table_s.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_s.o ../../../../../src/ta_abstract/tables/table_s.c + +../../../../../temp/csp/table_t.o: ../../../../../src/ta_abstract/tables/table_t.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_t.o ../../../../../src/ta_abstract/tables/table_t.c + +../../../../../temp/csp/table_u.o: ../../../../../src/ta_abstract/tables/table_u.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_u.o ../../../../../src/ta_abstract/tables/table_u.c + +../../../../../temp/csp/table_v.o: ../../../../../src/ta_abstract/tables/table_v.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_v.o ../../../../../src/ta_abstract/tables/table_v.c + +../../../../../temp/csp/table_w.o: ../../../../../src/ta_abstract/tables/table_w.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_w.o ../../../../../src/ta_abstract/tables/table_w.c + +../../../../../temp/csp/table_x.o: ../../../../../src/ta_abstract/tables/table_x.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_x.o ../../../../../src/ta_abstract/tables/table_x.c + +../../../../../temp/csp/table_y.o: ../../../../../src/ta_abstract/tables/table_y.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_y.o ../../../../../src/ta_abstract/tables/table_y.c + +../../../../../temp/csp/table_z.o: ../../../../../src/ta_abstract/tables/table_z.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_z.o ../../../../../src/ta_abstract/tables/table_z.c + diff --git a/make/csp/cygwin/g++/ta_common/Makefile b/make/csp/cygwin/g++/ta_common/Makefile new file mode 100644 index 000000000..0b611daf3 --- /dev/null +++ b/make/csp/cygwin/g++/ta_common/Makefile @@ -0,0 +1,103 @@ +############################################################################# +# Makefile for building ../../../../../lib/libta_common_csp.a +# Generated by tmake; +# Project: ta_common/ta_common +# Template: lib +############################################################################# + +####### Compiler, tools and options + +CC = gcc +CXX = g++ +CFLAGS = -pipe -Wall -W -g -O -pg -DTA_DEBUG -D_DEBUG -DTA_SINGLE_THREAD +CXXFLAGS= -pipe -Wall -W -g -DTA_DEBUG -D_DEBUG -DTA_SINGLE_THREAD +INCPATH = -I../../../../../src/ta_common -I../../../../../include +AR = ar cqs +RANLIB = +MOC = $(QTDIR)/bin/moc +UIC = $(QTDIR)/bin/uic + +TAR = tar -cf +GZIP = gzip -9f + +####### Support for 64-bit systems +ifeq ($(shell uname -m), x86_64) + CFLAGS += -march=x86-64 -m64 -D__64BIT__ + CXXFLAGS += -march=x86-64 -m64 -D__64BIT__ +endif + +####### Apply additional overruling user flags, if any +CFLAGS += $(CUSERFLAGS) +CXXFLAGS += $(CUSERFLAGS) + +####### Files + +HEADERS = +SOURCES = ../../../../../src/ta_common/ta_global.c \ + ../../../../../src/ta_common/ta_retcode.c \ + ../../../../../src/ta_common/ta_version.c +OBJECTS = ../../../../../temp/csp/ta_global.o \ + ../../../../../temp/csp/ta_retcode.o \ + ../../../../../temp/csp/ta_version.o +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ../../../../../lib/libta_common_csp.a +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .C .c + +.cpp.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cxx.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cc.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.C.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.c.o: + $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $< + +####### Build rules + + +all: $(TARGET) + +staticlib: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + -rm -f $(TARGET) + $(AR) $(TARGET) $(OBJECTS) $(OBJMOC) + +moc: $(SRCMOC) + +clean: + -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) + -rm -f *~ core + +####### Sub-libraries + + +###### Combined headers + + +####### Compile + +../../../../../temp/csp/ta_global.o: ../../../../../src/ta_common/ta_global.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_global.o ../../../../../src/ta_common/ta_global.c + +../../../../../temp/csp/ta_retcode.o: ../../../../../src/ta_common/ta_retcode.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_retcode.o ../../../../../src/ta_common/ta_retcode.c + +../../../../../temp/csp/ta_version.o: ../../../../../src/ta_common/ta_version.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_version.o ../../../../../src/ta_common/ta_version.c + diff --git a/make/csp/cygwin/g++/ta_func/Makefile b/make/csp/cygwin/g++/ta_func/Makefile new file mode 100644 index 000000000..26eada8e7 --- /dev/null +++ b/make/csp/cygwin/g++/ta_func/Makefile @@ -0,0 +1,883 @@ +############################################################################# +# Makefile for building ../../../../../lib/libta_func_csp.a +# Generated by tmake; +# Project: ta_func/ta_func +# Template: lib +############################################################################# + +####### Compiler, tools and options + +CC = gcc +CXX = g++ +CFLAGS = -pipe -Wall -W -g -O -pg -DTA_DEBUG -D_DEBUG -DTA_SINGLE_THREAD +CXXFLAGS= -pipe -Wall -W -g -DTA_DEBUG -D_DEBUG -DTA_SINGLE_THREAD +INCPATH = -I../../../../../src/ta_common -I/n -I../../../../../include +AR = ar cqs +RANLIB = +MOC = $(QTDIR)/bin/moc +UIC = $(QTDIR)/bin/uic + +TAR = tar -cf +GZIP = gzip -9f + +####### Support for 64-bit systems +ifeq ($(shell uname -m), x86_64) + CFLAGS += -march=x86-64 -m64 -D__64BIT__ + CXXFLAGS += -march=x86-64 -m64 -D__64BIT__ +endif + +####### Apply additional overruling user flags, if any +CFLAGS += $(CUSERFLAGS) +CXXFLAGS += $(CUSERFLAGS) + +####### Files + +HEADERS = +SOURCES = ../../../../../src/ta_func/ta_utility.c \ + ../../../../../src/ta_func/ta_ACOS.c \ + ../../../../../src/ta_func/ta_AD.c \ + ../../../../../src/ta_func/ta_ADD.c \ + ../../../../../src/ta_func/ta_ADOSC.c \ + ../../../../../src/ta_func/ta_ADX.c \ + ../../../../../src/ta_func/ta_ADXR.c \ + ../../../../../src/ta_func/ta_APO.c \ + ../../../../../src/ta_func/ta_AROON.c \ + ../../../../../src/ta_func/ta_AROONOSC.c \ + ../../../../../src/ta_func/ta_ASIN.c \ + ../../../../../src/ta_func/ta_ATAN.c \ + ../../../../../src/ta_func/ta_ATR.c \ + ../../../../../src/ta_func/ta_AVGPRICE.c \ + ../../../../../src/ta_func/ta_BBANDS.c \ + ../../../../../src/ta_func/ta_BETA.c \ + ../../../../../src/ta_func/ta_BOP.c \ + ../../../../../src/ta_func/ta_CCI.c \ + ../../../../../src/ta_func/ta_CDL2CROWS.c \ + ../../../../../src/ta_func/ta_CDL3BLACKCROWS.c \ + ../../../../../src/ta_func/ta_CDL3INSIDE.c \ + ../../../../../src/ta_func/ta_CDL3LINESTRIKE.c \ + ../../../../../src/ta_func/ta_CDL3OUTSIDE.c \ + ../../../../../src/ta_func/ta_CDL3STARSINSOUTH.c \ + ../../../../../src/ta_func/ta_CDL3WHITESOLDIERS.c \ + ../../../../../src/ta_func/ta_CDLABANDONEDBABY.c \ + ../../../../../src/ta_func/ta_CDLADVANCEBLOCK.c \ + ../../../../../src/ta_func/ta_CDLBELTHOLD.c \ + ../../../../../src/ta_func/ta_CDLBREAKAWAY.c \ + ../../../../../src/ta_func/ta_CDLCLOSINGMARUBOZU.c \ + ../../../../../src/ta_func/ta_CDLCONCEALBABYSWALL.c \ + ../../../../../src/ta_func/ta_CDLCOUNTERATTACK.c \ + ../../../../../src/ta_func/ta_CDLDARKCLOUDCOVER.c \ + ../../../../../src/ta_func/ta_CDLDOJI.c \ + ../../../../../src/ta_func/ta_CDLDOJISTAR.c \ + ../../../../../src/ta_func/ta_CDLDRAGONFLYDOJI.c \ + ../../../../../src/ta_func/ta_CDLENGULFING.c \ + ../../../../../src/ta_func/ta_CDLEVENINGDOJISTAR.c \ + ../../../../../src/ta_func/ta_CDLEVENINGSTAR.c \ + ../../../../../src/ta_func/ta_CDLGAPSIDESIDEWHITE.c \ + ../../../../../src/ta_func/ta_CDLGRAVESTONEDOJI.c \ + ../../../../../src/ta_func/ta_CDLHAMMER.c \ + ../../../../../src/ta_func/ta_CDLHANGINGMAN.c \ + ../../../../../src/ta_func/ta_CDLHARAMI.c \ + ../../../../../src/ta_func/ta_CDLHARAMICROSS.c \ + ../../../../../src/ta_func/ta_CDLHIGHWAVE.c \ + ../../../../../src/ta_func/ta_CDLHIKKAKE.c \ + ../../../../../src/ta_func/ta_CDLHIKKAKEMOD.c \ + ../../../../../src/ta_func/ta_CDLHOMINGPIGEON.c \ + ../../../../../src/ta_func/ta_CDLIDENTICAL3CROWS.c \ + ../../../../../src/ta_func/ta_CDLINNECK.c \ + ../../../../../src/ta_func/ta_CDLINVERTEDHAMMER.c \ + ../../../../../src/ta_func/ta_CDLKICKING.c \ + ../../../../../src/ta_func/ta_CDLKICKINGBYLENGTH.c \ + ../../../../../src/ta_func/ta_CDLLADDERBOTTOM.c \ + ../../../../../src/ta_func/ta_CDLLONGLEGGEDDOJI.c \ + ../../../../../src/ta_func/ta_CDLLONGLINE.c \ + ../../../../../src/ta_func/ta_CDLMARUBOZU.c \ + ../../../../../src/ta_func/ta_CDLMATCHINGLOW.c \ + ../../../../../src/ta_func/ta_CDLMATHOLD.c \ + ../../../../../src/ta_func/ta_CDLMORNINGDOJISTAR.c \ + ../../../../../src/ta_func/ta_CDLMORNINGSTAR.c \ + ../../../../../src/ta_func/ta_CDLONNECK.c \ + ../../../../../src/ta_func/ta_CDLPIERCING.c \ + ../../../../../src/ta_func/ta_CDLRICKSHAWMAN.c \ + ../../../../../src/ta_func/ta_CDLRISEFALL3METHODS.c \ + ../../../../../src/ta_func/ta_CDLSEPARATINGLINES.c \ + ../../../../../src/ta_func/ta_CDLSHOOTINGSTAR.c \ + ../../../../../src/ta_func/ta_CDLSHORTLINE.c \ + ../../../../../src/ta_func/ta_CDLSPINNINGTOP.c \ + ../../../../../src/ta_func/ta_CDLSTALLEDPATTERN.c \ + ../../../../../src/ta_func/ta_CDLSTICKSANDWICH.c \ + ../../../../../src/ta_func/ta_CDLTAKURI.c \ + ../../../../../src/ta_func/ta_CDLTASUKIGAP.c \ + ../../../../../src/ta_func/ta_CDLTHRUSTING.c \ + ../../../../../src/ta_func/ta_CDLTRISTAR.c \ + ../../../../../src/ta_func/ta_CDLUNIQUE3RIVER.c \ + ../../../../../src/ta_func/ta_CDLUPSIDEGAP2CROWS.c \ + ../../../../../src/ta_func/ta_CDLXSIDEGAP3METHODS.c \ + ../../../../../src/ta_func/ta_CEIL.c \ + ../../../../../src/ta_func/ta_CMO.c \ + ../../../../../src/ta_func/ta_CORREL.c \ + ../../../../../src/ta_func/ta_COS.c \ + ../../../../../src/ta_func/ta_COSH.c \ + ../../../../../src/ta_func/ta_DEMA.c \ + ../../../../../src/ta_func/ta_DIV.c \ + ../../../../../src/ta_func/ta_DX.c \ + ../../../../../src/ta_func/ta_EMA.c \ + ../../../../../src/ta_func/ta_EXP.c \ + ../../../../../src/ta_func/ta_FLOOR.c \ + ../../../../../src/ta_func/ta_HT_DCPERIOD.c \ + ../../../../../src/ta_func/ta_HT_DCPHASE.c \ + ../../../../../src/ta_func/ta_HT_PHASOR.c \ + ../../../../../src/ta_func/ta_HT_SINE.c \ + ../../../../../src/ta_func/ta_HT_TRENDLINE.c \ + ../../../../../src/ta_func/ta_HT_TRENDMODE.c \ + ../../../../../src/ta_func/ta_KAMA.c \ + ../../../../../src/ta_func/ta_LINEARREG.c \ + ../../../../../src/ta_func/ta_LINEARREG_ANGLE.c \ + ../../../../../src/ta_func/ta_LINEARREG_INTERCEPT.c \ + ../../../../../src/ta_func/ta_LINEARREG_SLOPE.c \ + ../../../../../src/ta_func/ta_LN.c \ + ../../../../../src/ta_func/ta_LOG10.c \ + ../../../../../src/ta_func/ta_MA.c \ + ../../../../../src/ta_func/ta_MACD.c \ + ../../../../../src/ta_func/ta_MACDEXT.c \ + ../../../../../src/ta_func/ta_MACDFIX.c \ + ../../../../../src/ta_func/ta_MAMA.c \ + ../../../../../src/ta_func/ta_MAVP.c \ + ../../../../../src/ta_func/ta_MAX.c \ + ../../../../../src/ta_func/ta_MAXINDEX.c \ + ../../../../../src/ta_func/ta_MEDPRICE.c \ + ../../../../../src/ta_func/ta_MFI.c \ + ../../../../../src/ta_func/ta_MIDPOINT.c \ + ../../../../../src/ta_func/ta_MIDPRICE.c \ + ../../../../../src/ta_func/ta_MIN.c \ + ../../../../../src/ta_func/ta_MININDEX.c \ + ../../../../../src/ta_func/ta_MINMAX.c \ + ../../../../../src/ta_func/ta_MINMAXINDEX.c \ + ../../../../../src/ta_func/ta_MINUS_DI.c \ + ../../../../../src/ta_func/ta_MINUS_DM.c \ + ../../../../../src/ta_func/ta_MOM.c \ + ../../../../../src/ta_func/ta_MULT.c \ + ../../../../../src/ta_func/ta_NATR.c \ + ../../../../../src/ta_func/ta_OBV.c \ + ../../../../../src/ta_func/ta_PLUS_DI.c \ + ../../../../../src/ta_func/ta_PLUS_DM.c \ + ../../../../../src/ta_func/ta_PPO.c \ + ../../../../../src/ta_func/ta_ROC.c \ + ../../../../../src/ta_func/ta_ROCP.c \ + ../../../../../src/ta_func/ta_ROCR.c \ + ../../../../../src/ta_func/ta_ROCR100.c \ + ../../../../../src/ta_func/ta_RSI.c \ + ../../../../../src/ta_func/ta_SAR.c \ + ../../../../../src/ta_func/ta_SAREXT.c \ + ../../../../../src/ta_func/ta_SIN.c \ + ../../../../../src/ta_func/ta_SINH.c \ + ../../../../../src/ta_func/ta_SMA.c \ + ../../../../../src/ta_func/ta_SQRT.c \ + ../../../../../src/ta_func/ta_STDDEV.c \ + ../../../../../src/ta_func/ta_STOCH.c \ + ../../../../../src/ta_func/ta_STOCHF.c \ + ../../../../../src/ta_func/ta_STOCHRSI.c \ + ../../../../../src/ta_func/ta_SUB.c \ + ../../../../../src/ta_func/ta_SUM.c \ + ../../../../../src/ta_func/ta_T3.c \ + ../../../../../src/ta_func/ta_TAN.c \ + ../../../../../src/ta_func/ta_TANH.c \ + ../../../../../src/ta_func/ta_TEMA.c \ + ../../../../../src/ta_func/ta_TRANGE.c \ + ../../../../../src/ta_func/ta_TRIMA.c \ + ../../../../../src/ta_func/ta_TRIX.c \ + ../../../../../src/ta_func/ta_TSF.c \ + ../../../../../src/ta_func/ta_TYPPRICE.c \ + ../../../../../src/ta_func/ta_ULTOSC.c \ + ../../../../../src/ta_func/ta_VAR.c \ + ../../../../../src/ta_func/ta_WCLPRICE.c \ + ../../../../../src/ta_func/ta_WILLR.c \ + ../../../../../src/ta_func/ta_WMA.c +OBJECTS = ../../../../../temp/csp/ta_utility.o \ + ../../../../../temp/csp/ta_ACOS.o \ + ../../../../../temp/csp/ta_AD.o \ + ../../../../../temp/csp/ta_ADD.o \ + ../../../../../temp/csp/ta_ADOSC.o \ + ../../../../../temp/csp/ta_ADX.o \ + ../../../../../temp/csp/ta_ADXR.o \ + ../../../../../temp/csp/ta_APO.o \ + ../../../../../temp/csp/ta_AROON.o \ + ../../../../../temp/csp/ta_AROONOSC.o \ + ../../../../../temp/csp/ta_ASIN.o \ + ../../../../../temp/csp/ta_ATAN.o \ + ../../../../../temp/csp/ta_ATR.o \ + ../../../../../temp/csp/ta_AVGPRICE.o \ + ../../../../../temp/csp/ta_BBANDS.o \ + ../../../../../temp/csp/ta_BETA.o \ + ../../../../../temp/csp/ta_BOP.o \ + ../../../../../temp/csp/ta_CCI.o \ + ../../../../../temp/csp/ta_CDL2CROWS.o \ + ../../../../../temp/csp/ta_CDL3BLACKCROWS.o \ + ../../../../../temp/csp/ta_CDL3INSIDE.o \ + ../../../../../temp/csp/ta_CDL3LINESTRIKE.o \ + ../../../../../temp/csp/ta_CDL3OUTSIDE.o \ + ../../../../../temp/csp/ta_CDL3STARSINSOUTH.o \ + ../../../../../temp/csp/ta_CDL3WHITESOLDIERS.o \ + ../../../../../temp/csp/ta_CDLABANDONEDBABY.o \ + ../../../../../temp/csp/ta_CDLADVANCEBLOCK.o \ + ../../../../../temp/csp/ta_CDLBELTHOLD.o \ + ../../../../../temp/csp/ta_CDLBREAKAWAY.o \ + ../../../../../temp/csp/ta_CDLCLOSINGMARUBOZU.o \ + ../../../../../temp/csp/ta_CDLCONCEALBABYSWALL.o \ + ../../../../../temp/csp/ta_CDLCOUNTERATTACK.o \ + ../../../../../temp/csp/ta_CDLDARKCLOUDCOVER.o \ + ../../../../../temp/csp/ta_CDLDOJI.o \ + ../../../../../temp/csp/ta_CDLDOJISTAR.o \ + ../../../../../temp/csp/ta_CDLDRAGONFLYDOJI.o \ + ../../../../../temp/csp/ta_CDLENGULFING.o \ + ../../../../../temp/csp/ta_CDLEVENINGDOJISTAR.o \ + ../../../../../temp/csp/ta_CDLEVENINGSTAR.o \ + ../../../../../temp/csp/ta_CDLGAPSIDESIDEWHITE.o \ + ../../../../../temp/csp/ta_CDLGRAVESTONEDOJI.o \ + ../../../../../temp/csp/ta_CDLHAMMER.o \ + ../../../../../temp/csp/ta_CDLHANGINGMAN.o \ + ../../../../../temp/csp/ta_CDLHARAMI.o \ + ../../../../../temp/csp/ta_CDLHARAMICROSS.o \ + ../../../../../temp/csp/ta_CDLHIGHWAVE.o \ + ../../../../../temp/csp/ta_CDLHIKKAKE.o \ + ../../../../../temp/csp/ta_CDLHIKKAKEMOD.o \ + ../../../../../temp/csp/ta_CDLHOMINGPIGEON.o \ + ../../../../../temp/csp/ta_CDLIDENTICAL3CROWS.o \ + ../../../../../temp/csp/ta_CDLINNECK.o \ + ../../../../../temp/csp/ta_CDLINVERTEDHAMMER.o \ + ../../../../../temp/csp/ta_CDLKICKING.o \ + ../../../../../temp/csp/ta_CDLKICKINGBYLENGTH.o \ + ../../../../../temp/csp/ta_CDLLADDERBOTTOM.o \ + ../../../../../temp/csp/ta_CDLLONGLEGGEDDOJI.o \ + ../../../../../temp/csp/ta_CDLLONGLINE.o \ + ../../../../../temp/csp/ta_CDLMARUBOZU.o \ + ../../../../../temp/csp/ta_CDLMATCHINGLOW.o \ + ../../../../../temp/csp/ta_CDLMATHOLD.o \ + ../../../../../temp/csp/ta_CDLMORNINGDOJISTAR.o \ + ../../../../../temp/csp/ta_CDLMORNINGSTAR.o \ + ../../../../../temp/csp/ta_CDLONNECK.o \ + ../../../../../temp/csp/ta_CDLPIERCING.o \ + ../../../../../temp/csp/ta_CDLRICKSHAWMAN.o \ + ../../../../../temp/csp/ta_CDLRISEFALL3METHODS.o \ + ../../../../../temp/csp/ta_CDLSEPARATINGLINES.o \ + ../../../../../temp/csp/ta_CDLSHOOTINGSTAR.o \ + ../../../../../temp/csp/ta_CDLSHORTLINE.o \ + ../../../../../temp/csp/ta_CDLSPINNINGTOP.o \ + ../../../../../temp/csp/ta_CDLSTALLEDPATTERN.o \ + ../../../../../temp/csp/ta_CDLSTICKSANDWICH.o \ + ../../../../../temp/csp/ta_CDLTAKURI.o \ + ../../../../../temp/csp/ta_CDLTASUKIGAP.o \ + ../../../../../temp/csp/ta_CDLTHRUSTING.o \ + ../../../../../temp/csp/ta_CDLTRISTAR.o \ + ../../../../../temp/csp/ta_CDLUNIQUE3RIVER.o \ + ../../../../../temp/csp/ta_CDLUPSIDEGAP2CROWS.o \ + ../../../../../temp/csp/ta_CDLXSIDEGAP3METHODS.o \ + ../../../../../temp/csp/ta_CEIL.o \ + ../../../../../temp/csp/ta_CMO.o \ + ../../../../../temp/csp/ta_CORREL.o \ + ../../../../../temp/csp/ta_COS.o \ + ../../../../../temp/csp/ta_COSH.o \ + ../../../../../temp/csp/ta_DEMA.o \ + ../../../../../temp/csp/ta_DIV.o \ + ../../../../../temp/csp/ta_DX.o \ + ../../../../../temp/csp/ta_EMA.o \ + ../../../../../temp/csp/ta_EXP.o \ + ../../../../../temp/csp/ta_FLOOR.o \ + ../../../../../temp/csp/ta_HT_DCPERIOD.o \ + ../../../../../temp/csp/ta_HT_DCPHASE.o \ + ../../../../../temp/csp/ta_HT_PHASOR.o \ + ../../../../../temp/csp/ta_HT_SINE.o \ + ../../../../../temp/csp/ta_HT_TRENDLINE.o \ + ../../../../../temp/csp/ta_HT_TRENDMODE.o \ + ../../../../../temp/csp/ta_KAMA.o \ + ../../../../../temp/csp/ta_LINEARREG.o \ + ../../../../../temp/csp/ta_LINEARREG_ANGLE.o \ + ../../../../../temp/csp/ta_LINEARREG_INTERCEPT.o \ + ../../../../../temp/csp/ta_LINEARREG_SLOPE.o \ + ../../../../../temp/csp/ta_LN.o \ + ../../../../../temp/csp/ta_LOG10.o \ + ../../../../../temp/csp/ta_MA.o \ + ../../../../../temp/csp/ta_MACD.o \ + ../../../../../temp/csp/ta_MACDEXT.o \ + ../../../../../temp/csp/ta_MACDFIX.o \ + ../../../../../temp/csp/ta_MAMA.o \ + ../../../../../temp/csp/ta_MAVP.o \ + ../../../../../temp/csp/ta_MAX.o \ + ../../../../../temp/csp/ta_MAXINDEX.o \ + ../../../../../temp/csp/ta_MEDPRICE.o \ + ../../../../../temp/csp/ta_MFI.o \ + ../../../../../temp/csp/ta_MIDPOINT.o \ + ../../../../../temp/csp/ta_MIDPRICE.o \ + ../../../../../temp/csp/ta_MIN.o \ + ../../../../../temp/csp/ta_MININDEX.o \ + ../../../../../temp/csp/ta_MINMAX.o \ + ../../../../../temp/csp/ta_MINMAXINDEX.o \ + ../../../../../temp/csp/ta_MINUS_DI.o \ + ../../../../../temp/csp/ta_MINUS_DM.o \ + ../../../../../temp/csp/ta_MOM.o \ + ../../../../../temp/csp/ta_MULT.o \ + ../../../../../temp/csp/ta_NATR.o \ + ../../../../../temp/csp/ta_OBV.o \ + ../../../../../temp/csp/ta_PLUS_DI.o \ + ../../../../../temp/csp/ta_PLUS_DM.o \ + ../../../../../temp/csp/ta_PPO.o \ + ../../../../../temp/csp/ta_ROC.o \ + ../../../../../temp/csp/ta_ROCP.o \ + ../../../../../temp/csp/ta_ROCR.o \ + ../../../../../temp/csp/ta_ROCR100.o \ + ../../../../../temp/csp/ta_RSI.o \ + ../../../../../temp/csp/ta_SAR.o \ + ../../../../../temp/csp/ta_SAREXT.o \ + ../../../../../temp/csp/ta_SIN.o \ + ../../../../../temp/csp/ta_SINH.o \ + ../../../../../temp/csp/ta_SMA.o \ + ../../../../../temp/csp/ta_SQRT.o \ + ../../../../../temp/csp/ta_STDDEV.o \ + ../../../../../temp/csp/ta_STOCH.o \ + ../../../../../temp/csp/ta_STOCHF.o \ + ../../../../../temp/csp/ta_STOCHRSI.o \ + ../../../../../temp/csp/ta_SUB.o \ + ../../../../../temp/csp/ta_SUM.o \ + ../../../../../temp/csp/ta_T3.o \ + ../../../../../temp/csp/ta_TAN.o \ + ../../../../../temp/csp/ta_TANH.o \ + ../../../../../temp/csp/ta_TEMA.o \ + ../../../../../temp/csp/ta_TRANGE.o \ + ../../../../../temp/csp/ta_TRIMA.o \ + ../../../../../temp/csp/ta_TRIX.o \ + ../../../../../temp/csp/ta_TSF.o \ + ../../../../../temp/csp/ta_TYPPRICE.o \ + ../../../../../temp/csp/ta_ULTOSC.o \ + ../../../../../temp/csp/ta_VAR.o \ + ../../../../../temp/csp/ta_WCLPRICE.o \ + ../../../../../temp/csp/ta_WILLR.o \ + ../../../../../temp/csp/ta_WMA.o +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ../../../../../lib/libta_func_csp.a +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .C .c + +.cpp.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cxx.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cc.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.C.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.c.o: + $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $< + +####### Build rules + + +all: $(TARGET) + +staticlib: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + -rm -f $(TARGET) + $(AR) $(TARGET) $(OBJECTS) $(OBJMOC) + +moc: $(SRCMOC) + +clean: + -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) + -rm -f *~ core + +####### Sub-libraries + + +###### Combined headers + + +####### Compile + +../../../../../temp/csp/ta_utility.o: ../../../../../src/ta_func/ta_utility.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_utility.o ../../../../../src/ta_func/ta_utility.c + +../../../../../temp/csp/ta_ACOS.o: ../../../../../src/ta_func/ta_ACOS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_ACOS.o ../../../../../src/ta_func/ta_ACOS.c + +../../../../../temp/csp/ta_AD.o: ../../../../../src/ta_func/ta_AD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_AD.o ../../../../../src/ta_func/ta_AD.c + +../../../../../temp/csp/ta_ADD.o: ../../../../../src/ta_func/ta_ADD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_ADD.o ../../../../../src/ta_func/ta_ADD.c + +../../../../../temp/csp/ta_ADOSC.o: ../../../../../src/ta_func/ta_ADOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_ADOSC.o ../../../../../src/ta_func/ta_ADOSC.c + +../../../../../temp/csp/ta_ADX.o: ../../../../../src/ta_func/ta_ADX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_ADX.o ../../../../../src/ta_func/ta_ADX.c + +../../../../../temp/csp/ta_ADXR.o: ../../../../../src/ta_func/ta_ADXR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_ADXR.o ../../../../../src/ta_func/ta_ADXR.c + +../../../../../temp/csp/ta_APO.o: ../../../../../src/ta_func/ta_APO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_APO.o ../../../../../src/ta_func/ta_APO.c + +../../../../../temp/csp/ta_AROON.o: ../../../../../src/ta_func/ta_AROON.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_AROON.o ../../../../../src/ta_func/ta_AROON.c + +../../../../../temp/csp/ta_AROONOSC.o: ../../../../../src/ta_func/ta_AROONOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_AROONOSC.o ../../../../../src/ta_func/ta_AROONOSC.c + +../../../../../temp/csp/ta_ASIN.o: ../../../../../src/ta_func/ta_ASIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_ASIN.o ../../../../../src/ta_func/ta_ASIN.c + +../../../../../temp/csp/ta_ATAN.o: ../../../../../src/ta_func/ta_ATAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_ATAN.o ../../../../../src/ta_func/ta_ATAN.c + +../../../../../temp/csp/ta_ATR.o: ../../../../../src/ta_func/ta_ATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_ATR.o ../../../../../src/ta_func/ta_ATR.c + +../../../../../temp/csp/ta_AVGPRICE.o: ../../../../../src/ta_func/ta_AVGPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_AVGPRICE.o ../../../../../src/ta_func/ta_AVGPRICE.c + +../../../../../temp/csp/ta_BBANDS.o: ../../../../../src/ta_func/ta_BBANDS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_BBANDS.o ../../../../../src/ta_func/ta_BBANDS.c + +../../../../../temp/csp/ta_BETA.o: ../../../../../src/ta_func/ta_BETA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_BETA.o ../../../../../src/ta_func/ta_BETA.c + +../../../../../temp/csp/ta_BOP.o: ../../../../../src/ta_func/ta_BOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_BOP.o ../../../../../src/ta_func/ta_BOP.c + +../../../../../temp/csp/ta_CCI.o: ../../../../../src/ta_func/ta_CCI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CCI.o ../../../../../src/ta_func/ta_CCI.c + +../../../../../temp/csp/ta_CDL2CROWS.o: ../../../../../src/ta_func/ta_CDL2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDL2CROWS.o ../../../../../src/ta_func/ta_CDL2CROWS.c + +../../../../../temp/csp/ta_CDL3BLACKCROWS.o: ../../../../../src/ta_func/ta_CDL3BLACKCROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDL3BLACKCROWS.o ../../../../../src/ta_func/ta_CDL3BLACKCROWS.c + +../../../../../temp/csp/ta_CDL3INSIDE.o: ../../../../../src/ta_func/ta_CDL3INSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDL3INSIDE.o ../../../../../src/ta_func/ta_CDL3INSIDE.c + +../../../../../temp/csp/ta_CDL3LINESTRIKE.o: ../../../../../src/ta_func/ta_CDL3LINESTRIKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDL3LINESTRIKE.o ../../../../../src/ta_func/ta_CDL3LINESTRIKE.c + +../../../../../temp/csp/ta_CDL3OUTSIDE.o: ../../../../../src/ta_func/ta_CDL3OUTSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDL3OUTSIDE.o ../../../../../src/ta_func/ta_CDL3OUTSIDE.c + +../../../../../temp/csp/ta_CDL3STARSINSOUTH.o: ../../../../../src/ta_func/ta_CDL3STARSINSOUTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDL3STARSINSOUTH.o ../../../../../src/ta_func/ta_CDL3STARSINSOUTH.c + +../../../../../temp/csp/ta_CDL3WHITESOLDIERS.o: ../../../../../src/ta_func/ta_CDL3WHITESOLDIERS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDL3WHITESOLDIERS.o ../../../../../src/ta_func/ta_CDL3WHITESOLDIERS.c + +../../../../../temp/csp/ta_CDLABANDONEDBABY.o: ../../../../../src/ta_func/ta_CDLABANDONEDBABY.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLABANDONEDBABY.o ../../../../../src/ta_func/ta_CDLABANDONEDBABY.c + +../../../../../temp/csp/ta_CDLADVANCEBLOCK.o: ../../../../../src/ta_func/ta_CDLADVANCEBLOCK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLADVANCEBLOCK.o ../../../../../src/ta_func/ta_CDLADVANCEBLOCK.c + +../../../../../temp/csp/ta_CDLBELTHOLD.o: ../../../../../src/ta_func/ta_CDLBELTHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLBELTHOLD.o ../../../../../src/ta_func/ta_CDLBELTHOLD.c + +../../../../../temp/csp/ta_CDLBREAKAWAY.o: ../../../../../src/ta_func/ta_CDLBREAKAWAY.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLBREAKAWAY.o ../../../../../src/ta_func/ta_CDLBREAKAWAY.c + +../../../../../temp/csp/ta_CDLCLOSINGMARUBOZU.o: ../../../../../src/ta_func/ta_CDLCLOSINGMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLCLOSINGMARUBOZU.o ../../../../../src/ta_func/ta_CDLCLOSINGMARUBOZU.c + +../../../../../temp/csp/ta_CDLCONCEALBABYSWALL.o: ../../../../../src/ta_func/ta_CDLCONCEALBABYSWALL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLCONCEALBABYSWALL.o ../../../../../src/ta_func/ta_CDLCONCEALBABYSWALL.c + +../../../../../temp/csp/ta_CDLCOUNTERATTACK.o: ../../../../../src/ta_func/ta_CDLCOUNTERATTACK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLCOUNTERATTACK.o ../../../../../src/ta_func/ta_CDLCOUNTERATTACK.c + +../../../../../temp/csp/ta_CDLDARKCLOUDCOVER.o: ../../../../../src/ta_func/ta_CDLDARKCLOUDCOVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLDARKCLOUDCOVER.o ../../../../../src/ta_func/ta_CDLDARKCLOUDCOVER.c + +../../../../../temp/csp/ta_CDLDOJI.o: ../../../../../src/ta_func/ta_CDLDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLDOJI.o ../../../../../src/ta_func/ta_CDLDOJI.c + +../../../../../temp/csp/ta_CDLDOJISTAR.o: ../../../../../src/ta_func/ta_CDLDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLDOJISTAR.o ../../../../../src/ta_func/ta_CDLDOJISTAR.c + +../../../../../temp/csp/ta_CDLDRAGONFLYDOJI.o: ../../../../../src/ta_func/ta_CDLDRAGONFLYDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLDRAGONFLYDOJI.o ../../../../../src/ta_func/ta_CDLDRAGONFLYDOJI.c + +../../../../../temp/csp/ta_CDLENGULFING.o: ../../../../../src/ta_func/ta_CDLENGULFING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLENGULFING.o ../../../../../src/ta_func/ta_CDLENGULFING.c + +../../../../../temp/csp/ta_CDLEVENINGDOJISTAR.o: ../../../../../src/ta_func/ta_CDLEVENINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLEVENINGDOJISTAR.o ../../../../../src/ta_func/ta_CDLEVENINGDOJISTAR.c + +../../../../../temp/csp/ta_CDLEVENINGSTAR.o: ../../../../../src/ta_func/ta_CDLEVENINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLEVENINGSTAR.o ../../../../../src/ta_func/ta_CDLEVENINGSTAR.c + +../../../../../temp/csp/ta_CDLGAPSIDESIDEWHITE.o: ../../../../../src/ta_func/ta_CDLGAPSIDESIDEWHITE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLGAPSIDESIDEWHITE.o ../../../../../src/ta_func/ta_CDLGAPSIDESIDEWHITE.c + +../../../../../temp/csp/ta_CDLGRAVESTONEDOJI.o: ../../../../../src/ta_func/ta_CDLGRAVESTONEDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLGRAVESTONEDOJI.o ../../../../../src/ta_func/ta_CDLGRAVESTONEDOJI.c + +../../../../../temp/csp/ta_CDLHAMMER.o: ../../../../../src/ta_func/ta_CDLHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLHAMMER.o ../../../../../src/ta_func/ta_CDLHAMMER.c + +../../../../../temp/csp/ta_CDLHANGINGMAN.o: ../../../../../src/ta_func/ta_CDLHANGINGMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLHANGINGMAN.o ../../../../../src/ta_func/ta_CDLHANGINGMAN.c + +../../../../../temp/csp/ta_CDLHARAMI.o: ../../../../../src/ta_func/ta_CDLHARAMI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLHARAMI.o ../../../../../src/ta_func/ta_CDLHARAMI.c + +../../../../../temp/csp/ta_CDLHARAMICROSS.o: ../../../../../src/ta_func/ta_CDLHARAMICROSS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLHARAMICROSS.o ../../../../../src/ta_func/ta_CDLHARAMICROSS.c + +../../../../../temp/csp/ta_CDLHIGHWAVE.o: ../../../../../src/ta_func/ta_CDLHIGHWAVE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLHIGHWAVE.o ../../../../../src/ta_func/ta_CDLHIGHWAVE.c + +../../../../../temp/csp/ta_CDLHIKKAKE.o: ../../../../../src/ta_func/ta_CDLHIKKAKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLHIKKAKE.o ../../../../../src/ta_func/ta_CDLHIKKAKE.c + +../../../../../temp/csp/ta_CDLHIKKAKEMOD.o: ../../../../../src/ta_func/ta_CDLHIKKAKEMOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLHIKKAKEMOD.o ../../../../../src/ta_func/ta_CDLHIKKAKEMOD.c + +../../../../../temp/csp/ta_CDLHOMINGPIGEON.o: ../../../../../src/ta_func/ta_CDLHOMINGPIGEON.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLHOMINGPIGEON.o ../../../../../src/ta_func/ta_CDLHOMINGPIGEON.c + +../../../../../temp/csp/ta_CDLIDENTICAL3CROWS.o: ../../../../../src/ta_func/ta_CDLIDENTICAL3CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLIDENTICAL3CROWS.o ../../../../../src/ta_func/ta_CDLIDENTICAL3CROWS.c + +../../../../../temp/csp/ta_CDLINNECK.o: ../../../../../src/ta_func/ta_CDLINNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLINNECK.o ../../../../../src/ta_func/ta_CDLINNECK.c + +../../../../../temp/csp/ta_CDLINVERTEDHAMMER.o: ../../../../../src/ta_func/ta_CDLINVERTEDHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLINVERTEDHAMMER.o ../../../../../src/ta_func/ta_CDLINVERTEDHAMMER.c + +../../../../../temp/csp/ta_CDLKICKING.o: ../../../../../src/ta_func/ta_CDLKICKING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLKICKING.o ../../../../../src/ta_func/ta_CDLKICKING.c + +../../../../../temp/csp/ta_CDLKICKINGBYLENGTH.o: ../../../../../src/ta_func/ta_CDLKICKINGBYLENGTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLKICKINGBYLENGTH.o ../../../../../src/ta_func/ta_CDLKICKINGBYLENGTH.c + +../../../../../temp/csp/ta_CDLLADDERBOTTOM.o: ../../../../../src/ta_func/ta_CDLLADDERBOTTOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLLADDERBOTTOM.o ../../../../../src/ta_func/ta_CDLLADDERBOTTOM.c + +../../../../../temp/csp/ta_CDLLONGLEGGEDDOJI.o: ../../../../../src/ta_func/ta_CDLLONGLEGGEDDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLLONGLEGGEDDOJI.o ../../../../../src/ta_func/ta_CDLLONGLEGGEDDOJI.c + +../../../../../temp/csp/ta_CDLLONGLINE.o: ../../../../../src/ta_func/ta_CDLLONGLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLLONGLINE.o ../../../../../src/ta_func/ta_CDLLONGLINE.c + +../../../../../temp/csp/ta_CDLMARUBOZU.o: ../../../../../src/ta_func/ta_CDLMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLMARUBOZU.o ../../../../../src/ta_func/ta_CDLMARUBOZU.c + +../../../../../temp/csp/ta_CDLMATCHINGLOW.o: ../../../../../src/ta_func/ta_CDLMATCHINGLOW.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLMATCHINGLOW.o ../../../../../src/ta_func/ta_CDLMATCHINGLOW.c + +../../../../../temp/csp/ta_CDLMATHOLD.o: ../../../../../src/ta_func/ta_CDLMATHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLMATHOLD.o ../../../../../src/ta_func/ta_CDLMATHOLD.c + +../../../../../temp/csp/ta_CDLMORNINGDOJISTAR.o: ../../../../../src/ta_func/ta_CDLMORNINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLMORNINGDOJISTAR.o ../../../../../src/ta_func/ta_CDLMORNINGDOJISTAR.c + +../../../../../temp/csp/ta_CDLMORNINGSTAR.o: ../../../../../src/ta_func/ta_CDLMORNINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLMORNINGSTAR.o ../../../../../src/ta_func/ta_CDLMORNINGSTAR.c + +../../../../../temp/csp/ta_CDLONNECK.o: ../../../../../src/ta_func/ta_CDLONNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLONNECK.o ../../../../../src/ta_func/ta_CDLONNECK.c + +../../../../../temp/csp/ta_CDLPIERCING.o: ../../../../../src/ta_func/ta_CDLPIERCING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLPIERCING.o ../../../../../src/ta_func/ta_CDLPIERCING.c + +../../../../../temp/csp/ta_CDLRICKSHAWMAN.o: ../../../../../src/ta_func/ta_CDLRICKSHAWMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLRICKSHAWMAN.o ../../../../../src/ta_func/ta_CDLRICKSHAWMAN.c + +../../../../../temp/csp/ta_CDLRISEFALL3METHODS.o: ../../../../../src/ta_func/ta_CDLRISEFALL3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLRISEFALL3METHODS.o ../../../../../src/ta_func/ta_CDLRISEFALL3METHODS.c + +../../../../../temp/csp/ta_CDLSEPARATINGLINES.o: ../../../../../src/ta_func/ta_CDLSEPARATINGLINES.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLSEPARATINGLINES.o ../../../../../src/ta_func/ta_CDLSEPARATINGLINES.c + +../../../../../temp/csp/ta_CDLSHOOTINGSTAR.o: ../../../../../src/ta_func/ta_CDLSHOOTINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLSHOOTINGSTAR.o ../../../../../src/ta_func/ta_CDLSHOOTINGSTAR.c + +../../../../../temp/csp/ta_CDLSHORTLINE.o: ../../../../../src/ta_func/ta_CDLSHORTLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLSHORTLINE.o ../../../../../src/ta_func/ta_CDLSHORTLINE.c + +../../../../../temp/csp/ta_CDLSPINNINGTOP.o: ../../../../../src/ta_func/ta_CDLSPINNINGTOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLSPINNINGTOP.o ../../../../../src/ta_func/ta_CDLSPINNINGTOP.c + +../../../../../temp/csp/ta_CDLSTALLEDPATTERN.o: ../../../../../src/ta_func/ta_CDLSTALLEDPATTERN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLSTALLEDPATTERN.o ../../../../../src/ta_func/ta_CDLSTALLEDPATTERN.c + +../../../../../temp/csp/ta_CDLSTICKSANDWICH.o: ../../../../../src/ta_func/ta_CDLSTICKSANDWICH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLSTICKSANDWICH.o ../../../../../src/ta_func/ta_CDLSTICKSANDWICH.c + +../../../../../temp/csp/ta_CDLTAKURI.o: ../../../../../src/ta_func/ta_CDLTAKURI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLTAKURI.o ../../../../../src/ta_func/ta_CDLTAKURI.c + +../../../../../temp/csp/ta_CDLTASUKIGAP.o: ../../../../../src/ta_func/ta_CDLTASUKIGAP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLTASUKIGAP.o ../../../../../src/ta_func/ta_CDLTASUKIGAP.c + +../../../../../temp/csp/ta_CDLTHRUSTING.o: ../../../../../src/ta_func/ta_CDLTHRUSTING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLTHRUSTING.o ../../../../../src/ta_func/ta_CDLTHRUSTING.c + +../../../../../temp/csp/ta_CDLTRISTAR.o: ../../../../../src/ta_func/ta_CDLTRISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLTRISTAR.o ../../../../../src/ta_func/ta_CDLTRISTAR.c + +../../../../../temp/csp/ta_CDLUNIQUE3RIVER.o: ../../../../../src/ta_func/ta_CDLUNIQUE3RIVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLUNIQUE3RIVER.o ../../../../../src/ta_func/ta_CDLUNIQUE3RIVER.c + +../../../../../temp/csp/ta_CDLUPSIDEGAP2CROWS.o: ../../../../../src/ta_func/ta_CDLUPSIDEGAP2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLUPSIDEGAP2CROWS.o ../../../../../src/ta_func/ta_CDLUPSIDEGAP2CROWS.c + +../../../../../temp/csp/ta_CDLXSIDEGAP3METHODS.o: ../../../../../src/ta_func/ta_CDLXSIDEGAP3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLXSIDEGAP3METHODS.o ../../../../../src/ta_func/ta_CDLXSIDEGAP3METHODS.c + +../../../../../temp/csp/ta_CEIL.o: ../../../../../src/ta_func/ta_CEIL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CEIL.o ../../../../../src/ta_func/ta_CEIL.c + +../../../../../temp/csp/ta_CMO.o: ../../../../../src/ta_func/ta_CMO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CMO.o ../../../../../src/ta_func/ta_CMO.c + +../../../../../temp/csp/ta_CORREL.o: ../../../../../src/ta_func/ta_CORREL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CORREL.o ../../../../../src/ta_func/ta_CORREL.c + +../../../../../temp/csp/ta_COS.o: ../../../../../src/ta_func/ta_COS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_COS.o ../../../../../src/ta_func/ta_COS.c + +../../../../../temp/csp/ta_COSH.o: ../../../../../src/ta_func/ta_COSH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_COSH.o ../../../../../src/ta_func/ta_COSH.c + +../../../../../temp/csp/ta_DEMA.o: ../../../../../src/ta_func/ta_DEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_DEMA.o ../../../../../src/ta_func/ta_DEMA.c + +../../../../../temp/csp/ta_DIV.o: ../../../../../src/ta_func/ta_DIV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_DIV.o ../../../../../src/ta_func/ta_DIV.c + +../../../../../temp/csp/ta_DX.o: ../../../../../src/ta_func/ta_DX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_DX.o ../../../../../src/ta_func/ta_DX.c + +../../../../../temp/csp/ta_EMA.o: ../../../../../src/ta_func/ta_EMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_EMA.o ../../../../../src/ta_func/ta_EMA.c + +../../../../../temp/csp/ta_EXP.o: ../../../../../src/ta_func/ta_EXP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_EXP.o ../../../../../src/ta_func/ta_EXP.c + +../../../../../temp/csp/ta_FLOOR.o: ../../../../../src/ta_func/ta_FLOOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_FLOOR.o ../../../../../src/ta_func/ta_FLOOR.c + +../../../../../temp/csp/ta_HT_DCPERIOD.o: ../../../../../src/ta_func/ta_HT_DCPERIOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_HT_DCPERIOD.o ../../../../../src/ta_func/ta_HT_DCPERIOD.c + +../../../../../temp/csp/ta_HT_DCPHASE.o: ../../../../../src/ta_func/ta_HT_DCPHASE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_HT_DCPHASE.o ../../../../../src/ta_func/ta_HT_DCPHASE.c + +../../../../../temp/csp/ta_HT_PHASOR.o: ../../../../../src/ta_func/ta_HT_PHASOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_HT_PHASOR.o ../../../../../src/ta_func/ta_HT_PHASOR.c + +../../../../../temp/csp/ta_HT_SINE.o: ../../../../../src/ta_func/ta_HT_SINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_HT_SINE.o ../../../../../src/ta_func/ta_HT_SINE.c + +../../../../../temp/csp/ta_HT_TRENDLINE.o: ../../../../../src/ta_func/ta_HT_TRENDLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_HT_TRENDLINE.o ../../../../../src/ta_func/ta_HT_TRENDLINE.c + +../../../../../temp/csp/ta_HT_TRENDMODE.o: ../../../../../src/ta_func/ta_HT_TRENDMODE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_HT_TRENDMODE.o ../../../../../src/ta_func/ta_HT_TRENDMODE.c + +../../../../../temp/csp/ta_KAMA.o: ../../../../../src/ta_func/ta_KAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_KAMA.o ../../../../../src/ta_func/ta_KAMA.c + +../../../../../temp/csp/ta_LINEARREG.o: ../../../../../src/ta_func/ta_LINEARREG.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_LINEARREG.o ../../../../../src/ta_func/ta_LINEARREG.c + +../../../../../temp/csp/ta_LINEARREG_ANGLE.o: ../../../../../src/ta_func/ta_LINEARREG_ANGLE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_LINEARREG_ANGLE.o ../../../../../src/ta_func/ta_LINEARREG_ANGLE.c + +../../../../../temp/csp/ta_LINEARREG_INTERCEPT.o: ../../../../../src/ta_func/ta_LINEARREG_INTERCEPT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_LINEARREG_INTERCEPT.o ../../../../../src/ta_func/ta_LINEARREG_INTERCEPT.c + +../../../../../temp/csp/ta_LINEARREG_SLOPE.o: ../../../../../src/ta_func/ta_LINEARREG_SLOPE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_LINEARREG_SLOPE.o ../../../../../src/ta_func/ta_LINEARREG_SLOPE.c + +../../../../../temp/csp/ta_LN.o: ../../../../../src/ta_func/ta_LN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_LN.o ../../../../../src/ta_func/ta_LN.c + +../../../../../temp/csp/ta_LOG10.o: ../../../../../src/ta_func/ta_LOG10.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_LOG10.o ../../../../../src/ta_func/ta_LOG10.c + +../../../../../temp/csp/ta_MA.o: ../../../../../src/ta_func/ta_MA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_MA.o ../../../../../src/ta_func/ta_MA.c + +../../../../../temp/csp/ta_MACD.o: ../../../../../src/ta_func/ta_MACD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_MACD.o ../../../../../src/ta_func/ta_MACD.c + +../../../../../temp/csp/ta_MACDEXT.o: ../../../../../src/ta_func/ta_MACDEXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_MACDEXT.o ../../../../../src/ta_func/ta_MACDEXT.c + +../../../../../temp/csp/ta_MACDFIX.o: ../../../../../src/ta_func/ta_MACDFIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_MACDFIX.o ../../../../../src/ta_func/ta_MACDFIX.c + +../../../../../temp/csp/ta_MAMA.o: ../../../../../src/ta_func/ta_MAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_MAMA.o ../../../../../src/ta_func/ta_MAMA.c + +../../../../../temp/csp/ta_MAVP.o: ../../../../../src/ta_func/ta_MAVP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_MAVP.o ../../../../../src/ta_func/ta_MAVP.c + +../../../../../temp/csp/ta_MAX.o: ../../../../../src/ta_func/ta_MAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_MAX.o ../../../../../src/ta_func/ta_MAX.c + +../../../../../temp/csp/ta_MAXINDEX.o: ../../../../../src/ta_func/ta_MAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_MAXINDEX.o ../../../../../src/ta_func/ta_MAXINDEX.c + +../../../../../temp/csp/ta_MEDPRICE.o: ../../../../../src/ta_func/ta_MEDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_MEDPRICE.o ../../../../../src/ta_func/ta_MEDPRICE.c + +../../../../../temp/csp/ta_MFI.o: ../../../../../src/ta_func/ta_MFI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_MFI.o ../../../../../src/ta_func/ta_MFI.c + +../../../../../temp/csp/ta_MIDPOINT.o: ../../../../../src/ta_func/ta_MIDPOINT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_MIDPOINT.o ../../../../../src/ta_func/ta_MIDPOINT.c + +../../../../../temp/csp/ta_MIDPRICE.o: ../../../../../src/ta_func/ta_MIDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_MIDPRICE.o ../../../../../src/ta_func/ta_MIDPRICE.c + +../../../../../temp/csp/ta_MIN.o: ../../../../../src/ta_func/ta_MIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_MIN.o ../../../../../src/ta_func/ta_MIN.c + +../../../../../temp/csp/ta_MININDEX.o: ../../../../../src/ta_func/ta_MININDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_MININDEX.o ../../../../../src/ta_func/ta_MININDEX.c + +../../../../../temp/csp/ta_MINMAX.o: ../../../../../src/ta_func/ta_MINMAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_MINMAX.o ../../../../../src/ta_func/ta_MINMAX.c + +../../../../../temp/csp/ta_MINMAXINDEX.o: ../../../../../src/ta_func/ta_MINMAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_MINMAXINDEX.o ../../../../../src/ta_func/ta_MINMAXINDEX.c + +../../../../../temp/csp/ta_MINUS_DI.o: ../../../../../src/ta_func/ta_MINUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_MINUS_DI.o ../../../../../src/ta_func/ta_MINUS_DI.c + +../../../../../temp/csp/ta_MINUS_DM.o: ../../../../../src/ta_func/ta_MINUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_MINUS_DM.o ../../../../../src/ta_func/ta_MINUS_DM.c + +../../../../../temp/csp/ta_MOM.o: ../../../../../src/ta_func/ta_MOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_MOM.o ../../../../../src/ta_func/ta_MOM.c + +../../../../../temp/csp/ta_MULT.o: ../../../../../src/ta_func/ta_MULT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_MULT.o ../../../../../src/ta_func/ta_MULT.c + +../../../../../temp/csp/ta_NATR.o: ../../../../../src/ta_func/ta_NATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_NATR.o ../../../../../src/ta_func/ta_NATR.c + +../../../../../temp/csp/ta_OBV.o: ../../../../../src/ta_func/ta_OBV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_OBV.o ../../../../../src/ta_func/ta_OBV.c + +../../../../../temp/csp/ta_PLUS_DI.o: ../../../../../src/ta_func/ta_PLUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_PLUS_DI.o ../../../../../src/ta_func/ta_PLUS_DI.c + +../../../../../temp/csp/ta_PLUS_DM.o: ../../../../../src/ta_func/ta_PLUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_PLUS_DM.o ../../../../../src/ta_func/ta_PLUS_DM.c + +../../../../../temp/csp/ta_PPO.o: ../../../../../src/ta_func/ta_PPO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_PPO.o ../../../../../src/ta_func/ta_PPO.c + +../../../../../temp/csp/ta_ROC.o: ../../../../../src/ta_func/ta_ROC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_ROC.o ../../../../../src/ta_func/ta_ROC.c + +../../../../../temp/csp/ta_ROCP.o: ../../../../../src/ta_func/ta_ROCP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_ROCP.o ../../../../../src/ta_func/ta_ROCP.c + +../../../../../temp/csp/ta_ROCR.o: ../../../../../src/ta_func/ta_ROCR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_ROCR.o ../../../../../src/ta_func/ta_ROCR.c + +../../../../../temp/csp/ta_ROCR100.o: ../../../../../src/ta_func/ta_ROCR100.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_ROCR100.o ../../../../../src/ta_func/ta_ROCR100.c + +../../../../../temp/csp/ta_RSI.o: ../../../../../src/ta_func/ta_RSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_RSI.o ../../../../../src/ta_func/ta_RSI.c + +../../../../../temp/csp/ta_SAR.o: ../../../../../src/ta_func/ta_SAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_SAR.o ../../../../../src/ta_func/ta_SAR.c + +../../../../../temp/csp/ta_SAREXT.o: ../../../../../src/ta_func/ta_SAREXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_SAREXT.o ../../../../../src/ta_func/ta_SAREXT.c + +../../../../../temp/csp/ta_SIN.o: ../../../../../src/ta_func/ta_SIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_SIN.o ../../../../../src/ta_func/ta_SIN.c + +../../../../../temp/csp/ta_SINH.o: ../../../../../src/ta_func/ta_SINH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_SINH.o ../../../../../src/ta_func/ta_SINH.c + +../../../../../temp/csp/ta_SMA.o: ../../../../../src/ta_func/ta_SMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_SMA.o ../../../../../src/ta_func/ta_SMA.c + +../../../../../temp/csp/ta_SQRT.o: ../../../../../src/ta_func/ta_SQRT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_SQRT.o ../../../../../src/ta_func/ta_SQRT.c + +../../../../../temp/csp/ta_STDDEV.o: ../../../../../src/ta_func/ta_STDDEV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_STDDEV.o ../../../../../src/ta_func/ta_STDDEV.c + +../../../../../temp/csp/ta_STOCH.o: ../../../../../src/ta_func/ta_STOCH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_STOCH.o ../../../../../src/ta_func/ta_STOCH.c + +../../../../../temp/csp/ta_STOCHF.o: ../../../../../src/ta_func/ta_STOCHF.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_STOCHF.o ../../../../../src/ta_func/ta_STOCHF.c + +../../../../../temp/csp/ta_STOCHRSI.o: ../../../../../src/ta_func/ta_STOCHRSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_STOCHRSI.o ../../../../../src/ta_func/ta_STOCHRSI.c + +../../../../../temp/csp/ta_SUB.o: ../../../../../src/ta_func/ta_SUB.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_SUB.o ../../../../../src/ta_func/ta_SUB.c + +../../../../../temp/csp/ta_SUM.o: ../../../../../src/ta_func/ta_SUM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_SUM.o ../../../../../src/ta_func/ta_SUM.c + +../../../../../temp/csp/ta_T3.o: ../../../../../src/ta_func/ta_T3.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_T3.o ../../../../../src/ta_func/ta_T3.c + +../../../../../temp/csp/ta_TAN.o: ../../../../../src/ta_func/ta_TAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_TAN.o ../../../../../src/ta_func/ta_TAN.c + +../../../../../temp/csp/ta_TANH.o: ../../../../../src/ta_func/ta_TANH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_TANH.o ../../../../../src/ta_func/ta_TANH.c + +../../../../../temp/csp/ta_TEMA.o: ../../../../../src/ta_func/ta_TEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_TEMA.o ../../../../../src/ta_func/ta_TEMA.c + +../../../../../temp/csp/ta_TRANGE.o: ../../../../../src/ta_func/ta_TRANGE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_TRANGE.o ../../../../../src/ta_func/ta_TRANGE.c + +../../../../../temp/csp/ta_TRIMA.o: ../../../../../src/ta_func/ta_TRIMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_TRIMA.o ../../../../../src/ta_func/ta_TRIMA.c + +../../../../../temp/csp/ta_TRIX.o: ../../../../../src/ta_func/ta_TRIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_TRIX.o ../../../../../src/ta_func/ta_TRIX.c + +../../../../../temp/csp/ta_TSF.o: ../../../../../src/ta_func/ta_TSF.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_TSF.o ../../../../../src/ta_func/ta_TSF.c + +../../../../../temp/csp/ta_TYPPRICE.o: ../../../../../src/ta_func/ta_TYPPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_TYPPRICE.o ../../../../../src/ta_func/ta_TYPPRICE.c + +../../../../../temp/csp/ta_ULTOSC.o: ../../../../../src/ta_func/ta_ULTOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_ULTOSC.o ../../../../../src/ta_func/ta_ULTOSC.c + +../../../../../temp/csp/ta_VAR.o: ../../../../../src/ta_func/ta_VAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_VAR.o ../../../../../src/ta_func/ta_VAR.c + +../../../../../temp/csp/ta_WCLPRICE.o: ../../../../../src/ta_func/ta_WCLPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_WCLPRICE.o ../../../../../src/ta_func/ta_WCLPRICE.c + +../../../../../temp/csp/ta_WILLR.o: ../../../../../src/ta_func/ta_WILLR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_WILLR.o ../../../../../src/ta_func/ta_WILLR.c + +../../../../../temp/csp/ta_WMA.o: ../../../../../src/ta_func/ta_WMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_WMA.o ../../../../../src/ta_func/ta_WMA.c + diff --git a/make/csp/cygwin/g++/ta_libc/Makefile b/make/csp/cygwin/g++/ta_libc/Makefile new file mode 100644 index 000000000..ec8d7d390 --- /dev/null +++ b/make/csp/cygwin/g++/ta_libc/Makefile @@ -0,0 +1,1053 @@ +############################################################################# +# Makefile for building ../../../../../lib/libta_libc_csp.a +# Generated by tmake; +# Project: ta_libc/ta_libc +# Template: lib +############################################################################# + +####### Compiler, tools and options + +CC = gcc +CXX = g++ +CFLAGS = -pipe -Wall -W -g -O -pg -DTA_DEBUG -D_DEBUG -DTA_SINGLE_THREAD +CXXFLAGS= -pipe -Wall -W -g -DTA_DEBUG -D_DEBUG -DTA_SINGLE_THREAD +INCPATH = -I../../../../../src/ta_common -I../../../../../include -I../../../../../src/ta_abstract -I../../../../../src/ta_abstract/tables -I../../../../../src/ta_abstract/frames -I$(QTDIR)/include +AR = ar cqs +RANLIB = +MOC = $(QTDIR)/bin/moc +UIC = $(QTDIR)/bin/uic + +TAR = tar -cf +GZIP = gzip -9f + +####### Support for 64-bit systems +ifeq ($(shell uname -m), x86_64) + CFLAGS += -march=x86-64 -m64 -D__64BIT__ + CXXFLAGS += -march=x86-64 -m64 -D__64BIT__ +endif + +####### Apply additional overruling user flags, if any +CFLAGS += $(CUSERFLAGS) +CXXFLAGS += $(CUSERFLAGS) + +####### Files + +HEADERS = +SOURCES = ../../../../../src/ta_common/ta_global.c \ + ../../../../../src/ta_common/ta_retcode.c \ + ../../../../../src/ta_common/ta_version.c \ + ../../../../../src/ta_abstract/ta_abstract.c \ + ../../../../../src/ta_abstract/ta_def_ui.c \ + ../../../../../src/ta_abstract/ta_func_api.c \ + ../../../../../src/ta_abstract/ta_group_idx.c \ + ../../../../../src/ta_abstract/frames/ta_frame.c \ + ../../../../../src/ta_abstract/tables/table_a.c \ + ../../../../../src/ta_abstract/tables/table_b.c \ + ../../../../../src/ta_abstract/tables/table_c.c \ + ../../../../../src/ta_abstract/tables/table_d.c \ + ../../../../../src/ta_abstract/tables/table_e.c \ + ../../../../../src/ta_abstract/tables/table_f.c \ + ../../../../../src/ta_abstract/tables/table_g.c \ + ../../../../../src/ta_abstract/tables/table_h.c \ + ../../../../../src/ta_abstract/tables/table_i.c \ + ../../../../../src/ta_abstract/tables/table_j.c \ + ../../../../../src/ta_abstract/tables/table_k.c \ + ../../../../../src/ta_abstract/tables/table_l.c \ + ../../../../../src/ta_abstract/tables/table_m.c \ + ../../../../../src/ta_abstract/tables/table_n.c \ + ../../../../../src/ta_abstract/tables/table_o.c \ + ../../../../../src/ta_abstract/tables/table_p.c \ + ../../../../../src/ta_abstract/tables/table_q.c \ + ../../../../../src/ta_abstract/tables/table_r.c \ + ../../../../../src/ta_abstract/tables/table_s.c \ + ../../../../../src/ta_abstract/tables/table_t.c \ + ../../../../../src/ta_abstract/tables/table_u.c \ + ../../../../../src/ta_abstract/tables/table_v.c \ + ../../../../../src/ta_abstract/tables/table_w.c \ + ../../../../../src/ta_abstract/tables/table_x.c \ + ../../../../../src/ta_abstract/tables/table_y.c \ + ../../../../../src/ta_abstract/tables/table_z.c \ + ../../../../../src/ta_func/ta_utility.c \ + ../../../../../src/ta_func/ta_ACOS.c \ + ../../../../../src/ta_func/ta_AD.c \ + ../../../../../src/ta_func/ta_ADD.c \ + ../../../../../src/ta_func/ta_ADOSC.c \ + ../../../../../src/ta_func/ta_ADX.c \ + ../../../../../src/ta_func/ta_ADXR.c \ + ../../../../../src/ta_func/ta_APO.c \ + ../../../../../src/ta_func/ta_AROON.c \ + ../../../../../src/ta_func/ta_AROONOSC.c \ + ../../../../../src/ta_func/ta_ASIN.c \ + ../../../../../src/ta_func/ta_ATAN.c \ + ../../../../../src/ta_func/ta_ATR.c \ + ../../../../../src/ta_func/ta_AVGPRICE.c \ + ../../../../../src/ta_func/ta_BBANDS.c \ + ../../../../../src/ta_func/ta_BETA.c \ + ../../../../../src/ta_func/ta_BOP.c \ + ../../../../../src/ta_func/ta_CCI.c \ + ../../../../../src/ta_func/ta_CDL2CROWS.c \ + ../../../../../src/ta_func/ta_CDL3BLACKCROWS.c \ + ../../../../../src/ta_func/ta_CDL3INSIDE.c \ + ../../../../../src/ta_func/ta_CDL3LINESTRIKE.c \ + ../../../../../src/ta_func/ta_CDL3OUTSIDE.c \ + ../../../../../src/ta_func/ta_CDL3STARSINSOUTH.c \ + ../../../../../src/ta_func/ta_CDL3WHITESOLDIERS.c \ + ../../../../../src/ta_func/ta_CDLABANDONEDBABY.c \ + ../../../../../src/ta_func/ta_CDLADVANCEBLOCK.c \ + ../../../../../src/ta_func/ta_CDLBELTHOLD.c \ + ../../../../../src/ta_func/ta_CDLBREAKAWAY.c \ + ../../../../../src/ta_func/ta_CDLCLOSINGMARUBOZU.c \ + ../../../../../src/ta_func/ta_CDLCONCEALBABYSWALL.c \ + ../../../../../src/ta_func/ta_CDLCOUNTERATTACK.c \ + ../../../../../src/ta_func/ta_CDLDARKCLOUDCOVER.c \ + ../../../../../src/ta_func/ta_CDLDOJI.c \ + ../../../../../src/ta_func/ta_CDLDOJISTAR.c \ + ../../../../../src/ta_func/ta_CDLDRAGONFLYDOJI.c \ + ../../../../../src/ta_func/ta_CDLENGULFING.c \ + ../../../../../src/ta_func/ta_CDLEVENINGDOJISTAR.c \ + ../../../../../src/ta_func/ta_CDLEVENINGSTAR.c \ + ../../../../../src/ta_func/ta_CDLGAPSIDESIDEWHITE.c \ + ../../../../../src/ta_func/ta_CDLGRAVESTONEDOJI.c \ + ../../../../../src/ta_func/ta_CDLHAMMER.c \ + ../../../../../src/ta_func/ta_CDLHANGINGMAN.c \ + ../../../../../src/ta_func/ta_CDLHARAMI.c \ + ../../../../../src/ta_func/ta_CDLHARAMICROSS.c \ + ../../../../../src/ta_func/ta_CDLHIGHWAVE.c \ + ../../../../../src/ta_func/ta_CDLHIKKAKE.c \ + ../../../../../src/ta_func/ta_CDLHIKKAKEMOD.c \ + ../../../../../src/ta_func/ta_CDLHOMINGPIGEON.c \ + ../../../../../src/ta_func/ta_CDLIDENTICAL3CROWS.c \ + ../../../../../src/ta_func/ta_CDLINNECK.c \ + ../../../../../src/ta_func/ta_CDLINVERTEDHAMMER.c \ + ../../../../../src/ta_func/ta_CDLKICKING.c \ + ../../../../../src/ta_func/ta_CDLKICKINGBYLENGTH.c \ + ../../../../../src/ta_func/ta_CDLLADDERBOTTOM.c \ + ../../../../../src/ta_func/ta_CDLLONGLEGGEDDOJI.c \ + ../../../../../src/ta_func/ta_CDLLONGLINE.c \ + ../../../../../src/ta_func/ta_CDLMARUBOZU.c \ + ../../../../../src/ta_func/ta_CDLMATCHINGLOW.c \ + ../../../../../src/ta_func/ta_CDLMATHOLD.c \ + ../../../../../src/ta_func/ta_CDLMORNINGDOJISTAR.c \ + ../../../../../src/ta_func/ta_CDLMORNINGSTAR.c \ + ../../../../../src/ta_func/ta_CDLONNECK.c \ + ../../../../../src/ta_func/ta_CDLPIERCING.c \ + ../../../../../src/ta_func/ta_CDLRICKSHAWMAN.c \ + ../../../../../src/ta_func/ta_CDLRISEFALL3METHODS.c \ + ../../../../../src/ta_func/ta_CDLSEPARATINGLINES.c \ + ../../../../../src/ta_func/ta_CDLSHOOTINGSTAR.c \ + ../../../../../src/ta_func/ta_CDLSHORTLINE.c \ + ../../../../../src/ta_func/ta_CDLSPINNINGTOP.c \ + ../../../../../src/ta_func/ta_CDLSTALLEDPATTERN.c \ + ../../../../../src/ta_func/ta_CDLSTICKSANDWICH.c \ + ../../../../../src/ta_func/ta_CDLTAKURI.c \ + ../../../../../src/ta_func/ta_CDLTASUKIGAP.c \ + ../../../../../src/ta_func/ta_CDLTHRUSTING.c \ + ../../../../../src/ta_func/ta_CDLTRISTAR.c \ + ../../../../../src/ta_func/ta_CDLUNIQUE3RIVER.c \ + ../../../../../src/ta_func/ta_CDLUPSIDEGAP2CROWS.c \ + ../../../../../src/ta_func/ta_CDLXSIDEGAP3METHODS.c \ + ../../../../../src/ta_func/ta_CEIL.c \ + ../../../../../src/ta_func/ta_CMO.c \ + ../../../../../src/ta_func/ta_CORREL.c \ + ../../../../../src/ta_func/ta_COS.c \ + ../../../../../src/ta_func/ta_COSH.c \ + ../../../../../src/ta_func/ta_DEMA.c \ + ../../../../../src/ta_func/ta_DIV.c \ + ../../../../../src/ta_func/ta_DX.c \ + ../../../../../src/ta_func/ta_EMA.c \ + ../../../../../src/ta_func/ta_EXP.c \ + ../../../../../src/ta_func/ta_FLOOR.c \ + ../../../../../src/ta_func/ta_HT_DCPERIOD.c \ + ../../../../../src/ta_func/ta_HT_DCPHASE.c \ + ../../../../../src/ta_func/ta_HT_PHASOR.c \ + ../../../../../src/ta_func/ta_HT_SINE.c \ + ../../../../../src/ta_func/ta_HT_TRENDLINE.c \ + ../../../../../src/ta_func/ta_HT_TRENDMODE.c \ + ../../../../../src/ta_func/ta_KAMA.c \ + ../../../../../src/ta_func/ta_LINEARREG.c \ + ../../../../../src/ta_func/ta_LINEARREG_ANGLE.c \ + ../../../../../src/ta_func/ta_LINEARREG_INTERCEPT.c \ + ../../../../../src/ta_func/ta_LINEARREG_SLOPE.c \ + ../../../../../src/ta_func/ta_LN.c \ + ../../../../../src/ta_func/ta_LOG10.c \ + ../../../../../src/ta_func/ta_MA.c \ + ../../../../../src/ta_func/ta_MACD.c \ + ../../../../../src/ta_func/ta_MACDEXT.c \ + ../../../../../src/ta_func/ta_MACDFIX.c \ + ../../../../../src/ta_func/ta_MAMA.c \ + ../../../../../src/ta_func/ta_MAVP.c \ + ../../../../../src/ta_func/ta_MAX.c \ + ../../../../../src/ta_func/ta_MAXINDEX.c \ + ../../../../../src/ta_func/ta_MEDPRICE.c \ + ../../../../../src/ta_func/ta_MFI.c \ + ../../../../../src/ta_func/ta_MIDPOINT.c \ + ../../../../../src/ta_func/ta_MIDPRICE.c \ + ../../../../../src/ta_func/ta_MIN.c \ + ../../../../../src/ta_func/ta_MININDEX.c \ + ../../../../../src/ta_func/ta_MINMAX.c \ + ../../../../../src/ta_func/ta_MINMAXINDEX.c \ + ../../../../../src/ta_func/ta_MINUS_DI.c \ + ../../../../../src/ta_func/ta_MINUS_DM.c \ + ../../../../../src/ta_func/ta_MOM.c \ + ../../../../../src/ta_func/ta_MULT.c \ + ../../../../../src/ta_func/ta_NATR.c \ + ../../../../../src/ta_func/ta_OBV.c \ + ../../../../../src/ta_func/ta_PLUS_DI.c \ + ../../../../../src/ta_func/ta_PLUS_DM.c \ + ../../../../../src/ta_func/ta_PPO.c \ + ../../../../../src/ta_func/ta_ROC.c \ + ../../../../../src/ta_func/ta_ROCP.c \ + ../../../../../src/ta_func/ta_ROCR.c \ + ../../../../../src/ta_func/ta_ROCR100.c \ + ../../../../../src/ta_func/ta_RSI.c \ + ../../../../../src/ta_func/ta_SAR.c \ + ../../../../../src/ta_func/ta_SAREXT.c \ + ../../../../../src/ta_func/ta_SIN.c \ + ../../../../../src/ta_func/ta_SINH.c \ + ../../../../../src/ta_func/ta_SMA.c \ + ../../../../../src/ta_func/ta_SQRT.c \ + ../../../../../src/ta_func/ta_STDDEV.c \ + ../../../../../src/ta_func/ta_STOCH.c \ + ../../../../../src/ta_func/ta_STOCHF.c \ + ../../../../../src/ta_func/ta_STOCHRSI.c \ + ../../../../../src/ta_func/ta_SUB.c \ + ../../../../../src/ta_func/ta_SUM.c \ + ../../../../../src/ta_func/ta_T3.c \ + ../../../../../src/ta_func/ta_TAN.c \ + ../../../../../src/ta_func/ta_TANH.c \ + ../../../../../src/ta_func/ta_TEMA.c \ + ../../../../../src/ta_func/ta_TRANGE.c \ + ../../../../../src/ta_func/ta_TRIMA.c \ + ../../../../../src/ta_func/ta_TRIX.c \ + ../../../../../src/ta_func/ta_TSF.c \ + ../../../../../src/ta_func/ta_TYPPRICE.c \ + ../../../../../src/ta_func/ta_ULTOSC.c \ + ../../../../../src/ta_func/ta_VAR.c \ + ../../../../../src/ta_func/ta_WCLPRICE.c \ + ../../../../../src/ta_func/ta_WILLR.c \ + ../../../../../src/ta_func/ta_WMA.c +OBJECTS = ../../../../../temp/csp/ta_global.o \ + ../../../../../temp/csp/ta_retcode.o \ + ../../../../../temp/csp/ta_version.o \ + ../../../../../temp/csp/ta_abstract.o \ + ../../../../../temp/csp/ta_def_ui.o \ + ../../../../../temp/csp/ta_func_api.o \ + ../../../../../temp/csp/ta_group_idx.o \ + ../../../../../temp/csp/ta_frame.o \ + ../../../../../temp/csp/table_a.o \ + ../../../../../temp/csp/table_b.o \ + ../../../../../temp/csp/table_c.o \ + ../../../../../temp/csp/table_d.o \ + ../../../../../temp/csp/table_e.o \ + ../../../../../temp/csp/table_f.o \ + ../../../../../temp/csp/table_g.o \ + ../../../../../temp/csp/table_h.o \ + ../../../../../temp/csp/table_i.o \ + ../../../../../temp/csp/table_j.o \ + ../../../../../temp/csp/table_k.o \ + ../../../../../temp/csp/table_l.o \ + ../../../../../temp/csp/table_m.o \ + ../../../../../temp/csp/table_n.o \ + ../../../../../temp/csp/table_o.o \ + ../../../../../temp/csp/table_p.o \ + ../../../../../temp/csp/table_q.o \ + ../../../../../temp/csp/table_r.o \ + ../../../../../temp/csp/table_s.o \ + ../../../../../temp/csp/table_t.o \ + ../../../../../temp/csp/table_u.o \ + ../../../../../temp/csp/table_v.o \ + ../../../../../temp/csp/table_w.o \ + ../../../../../temp/csp/table_x.o \ + ../../../../../temp/csp/table_y.o \ + ../../../../../temp/csp/table_z.o \ + ../../../../../temp/csp/ta_utility.o \ + ../../../../../temp/csp/ta_ACOS.o \ + ../../../../../temp/csp/ta_AD.o \ + ../../../../../temp/csp/ta_ADD.o \ + ../../../../../temp/csp/ta_ADOSC.o \ + ../../../../../temp/csp/ta_ADX.o \ + ../../../../../temp/csp/ta_ADXR.o \ + ../../../../../temp/csp/ta_APO.o \ + ../../../../../temp/csp/ta_AROON.o \ + ../../../../../temp/csp/ta_AROONOSC.o \ + ../../../../../temp/csp/ta_ASIN.o \ + ../../../../../temp/csp/ta_ATAN.o \ + ../../../../../temp/csp/ta_ATR.o \ + ../../../../../temp/csp/ta_AVGPRICE.o \ + ../../../../../temp/csp/ta_BBANDS.o \ + ../../../../../temp/csp/ta_BETA.o \ + ../../../../../temp/csp/ta_BOP.o \ + ../../../../../temp/csp/ta_CCI.o \ + ../../../../../temp/csp/ta_CDL2CROWS.o \ + ../../../../../temp/csp/ta_CDL3BLACKCROWS.o \ + ../../../../../temp/csp/ta_CDL3INSIDE.o \ + ../../../../../temp/csp/ta_CDL3LINESTRIKE.o \ + ../../../../../temp/csp/ta_CDL3OUTSIDE.o \ + ../../../../../temp/csp/ta_CDL3STARSINSOUTH.o \ + ../../../../../temp/csp/ta_CDL3WHITESOLDIERS.o \ + ../../../../../temp/csp/ta_CDLABANDONEDBABY.o \ + ../../../../../temp/csp/ta_CDLADVANCEBLOCK.o \ + ../../../../../temp/csp/ta_CDLBELTHOLD.o \ + ../../../../../temp/csp/ta_CDLBREAKAWAY.o \ + ../../../../../temp/csp/ta_CDLCLOSINGMARUBOZU.o \ + ../../../../../temp/csp/ta_CDLCONCEALBABYSWALL.o \ + ../../../../../temp/csp/ta_CDLCOUNTERATTACK.o \ + ../../../../../temp/csp/ta_CDLDARKCLOUDCOVER.o \ + ../../../../../temp/csp/ta_CDLDOJI.o \ + ../../../../../temp/csp/ta_CDLDOJISTAR.o \ + ../../../../../temp/csp/ta_CDLDRAGONFLYDOJI.o \ + ../../../../../temp/csp/ta_CDLENGULFING.o \ + ../../../../../temp/csp/ta_CDLEVENINGDOJISTAR.o \ + ../../../../../temp/csp/ta_CDLEVENINGSTAR.o \ + ../../../../../temp/csp/ta_CDLGAPSIDESIDEWHITE.o \ + ../../../../../temp/csp/ta_CDLGRAVESTONEDOJI.o \ + ../../../../../temp/csp/ta_CDLHAMMER.o \ + ../../../../../temp/csp/ta_CDLHANGINGMAN.o \ + ../../../../../temp/csp/ta_CDLHARAMI.o \ + ../../../../../temp/csp/ta_CDLHARAMICROSS.o \ + ../../../../../temp/csp/ta_CDLHIGHWAVE.o \ + ../../../../../temp/csp/ta_CDLHIKKAKE.o \ + ../../../../../temp/csp/ta_CDLHIKKAKEMOD.o \ + ../../../../../temp/csp/ta_CDLHOMINGPIGEON.o \ + ../../../../../temp/csp/ta_CDLIDENTICAL3CROWS.o \ + ../../../../../temp/csp/ta_CDLINNECK.o \ + ../../../../../temp/csp/ta_CDLINVERTEDHAMMER.o \ + ../../../../../temp/csp/ta_CDLKICKING.o \ + ../../../../../temp/csp/ta_CDLKICKINGBYLENGTH.o \ + ../../../../../temp/csp/ta_CDLLADDERBOTTOM.o \ + ../../../../../temp/csp/ta_CDLLONGLEGGEDDOJI.o \ + ../../../../../temp/csp/ta_CDLLONGLINE.o \ + ../../../../../temp/csp/ta_CDLMARUBOZU.o \ + ../../../../../temp/csp/ta_CDLMATCHINGLOW.o \ + ../../../../../temp/csp/ta_CDLMATHOLD.o \ + ../../../../../temp/csp/ta_CDLMORNINGDOJISTAR.o \ + ../../../../../temp/csp/ta_CDLMORNINGSTAR.o \ + ../../../../../temp/csp/ta_CDLONNECK.o \ + ../../../../../temp/csp/ta_CDLPIERCING.o \ + ../../../../../temp/csp/ta_CDLRICKSHAWMAN.o \ + ../../../../../temp/csp/ta_CDLRISEFALL3METHODS.o \ + ../../../../../temp/csp/ta_CDLSEPARATINGLINES.o \ + ../../../../../temp/csp/ta_CDLSHOOTINGSTAR.o \ + ../../../../../temp/csp/ta_CDLSHORTLINE.o \ + ../../../../../temp/csp/ta_CDLSPINNINGTOP.o \ + ../../../../../temp/csp/ta_CDLSTALLEDPATTERN.o \ + ../../../../../temp/csp/ta_CDLSTICKSANDWICH.o \ + ../../../../../temp/csp/ta_CDLTAKURI.o \ + ../../../../../temp/csp/ta_CDLTASUKIGAP.o \ + ../../../../../temp/csp/ta_CDLTHRUSTING.o \ + ../../../../../temp/csp/ta_CDLTRISTAR.o \ + ../../../../../temp/csp/ta_CDLUNIQUE3RIVER.o \ + ../../../../../temp/csp/ta_CDLUPSIDEGAP2CROWS.o \ + ../../../../../temp/csp/ta_CDLXSIDEGAP3METHODS.o \ + ../../../../../temp/csp/ta_CEIL.o \ + ../../../../../temp/csp/ta_CMO.o \ + ../../../../../temp/csp/ta_CORREL.o \ + ../../../../../temp/csp/ta_COS.o \ + ../../../../../temp/csp/ta_COSH.o \ + ../../../../../temp/csp/ta_DEMA.o \ + ../../../../../temp/csp/ta_DIV.o \ + ../../../../../temp/csp/ta_DX.o \ + ../../../../../temp/csp/ta_EMA.o \ + ../../../../../temp/csp/ta_EXP.o \ + ../../../../../temp/csp/ta_FLOOR.o \ + ../../../../../temp/csp/ta_HT_DCPERIOD.o \ + ../../../../../temp/csp/ta_HT_DCPHASE.o \ + ../../../../../temp/csp/ta_HT_PHASOR.o \ + ../../../../../temp/csp/ta_HT_SINE.o \ + ../../../../../temp/csp/ta_HT_TRENDLINE.o \ + ../../../../../temp/csp/ta_HT_TRENDMODE.o \ + ../../../../../temp/csp/ta_KAMA.o \ + ../../../../../temp/csp/ta_LINEARREG.o \ + ../../../../../temp/csp/ta_LINEARREG_ANGLE.o \ + ../../../../../temp/csp/ta_LINEARREG_INTERCEPT.o \ + ../../../../../temp/csp/ta_LINEARREG_SLOPE.o \ + ../../../../../temp/csp/ta_LN.o \ + ../../../../../temp/csp/ta_LOG10.o \ + ../../../../../temp/csp/ta_MA.o \ + ../../../../../temp/csp/ta_MACD.o \ + ../../../../../temp/csp/ta_MACDEXT.o \ + ../../../../../temp/csp/ta_MACDFIX.o \ + ../../../../../temp/csp/ta_MAMA.o \ + ../../../../../temp/csp/ta_MAVP.o \ + ../../../../../temp/csp/ta_MAX.o \ + ../../../../../temp/csp/ta_MAXINDEX.o \ + ../../../../../temp/csp/ta_MEDPRICE.o \ + ../../../../../temp/csp/ta_MFI.o \ + ../../../../../temp/csp/ta_MIDPOINT.o \ + ../../../../../temp/csp/ta_MIDPRICE.o \ + ../../../../../temp/csp/ta_MIN.o \ + ../../../../../temp/csp/ta_MININDEX.o \ + ../../../../../temp/csp/ta_MINMAX.o \ + ../../../../../temp/csp/ta_MINMAXINDEX.o \ + ../../../../../temp/csp/ta_MINUS_DI.o \ + ../../../../../temp/csp/ta_MINUS_DM.o \ + ../../../../../temp/csp/ta_MOM.o \ + ../../../../../temp/csp/ta_MULT.o \ + ../../../../../temp/csp/ta_NATR.o \ + ../../../../../temp/csp/ta_OBV.o \ + ../../../../../temp/csp/ta_PLUS_DI.o \ + ../../../../../temp/csp/ta_PLUS_DM.o \ + ../../../../../temp/csp/ta_PPO.o \ + ../../../../../temp/csp/ta_ROC.o \ + ../../../../../temp/csp/ta_ROCP.o \ + ../../../../../temp/csp/ta_ROCR.o \ + ../../../../../temp/csp/ta_ROCR100.o \ + ../../../../../temp/csp/ta_RSI.o \ + ../../../../../temp/csp/ta_SAR.o \ + ../../../../../temp/csp/ta_SAREXT.o \ + ../../../../../temp/csp/ta_SIN.o \ + ../../../../../temp/csp/ta_SINH.o \ + ../../../../../temp/csp/ta_SMA.o \ + ../../../../../temp/csp/ta_SQRT.o \ + ../../../../../temp/csp/ta_STDDEV.o \ + ../../../../../temp/csp/ta_STOCH.o \ + ../../../../../temp/csp/ta_STOCHF.o \ + ../../../../../temp/csp/ta_STOCHRSI.o \ + ../../../../../temp/csp/ta_SUB.o \ + ../../../../../temp/csp/ta_SUM.o \ + ../../../../../temp/csp/ta_T3.o \ + ../../../../../temp/csp/ta_TAN.o \ + ../../../../../temp/csp/ta_TANH.o \ + ../../../../../temp/csp/ta_TEMA.o \ + ../../../../../temp/csp/ta_TRANGE.o \ + ../../../../../temp/csp/ta_TRIMA.o \ + ../../../../../temp/csp/ta_TRIX.o \ + ../../../../../temp/csp/ta_TSF.o \ + ../../../../../temp/csp/ta_TYPPRICE.o \ + ../../../../../temp/csp/ta_ULTOSC.o \ + ../../../../../temp/csp/ta_VAR.o \ + ../../../../../temp/csp/ta_WCLPRICE.o \ + ../../../../../temp/csp/ta_WILLR.o \ + ../../../../../temp/csp/ta_WMA.o +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ../../../../../lib/libta_libc_csp.a +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .C .c + +.cpp.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cxx.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cc.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.C.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.c.o: + $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $< + +####### Build rules + + +all: $(TARGET) + +staticlib: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + -rm -f $(TARGET) + $(AR) $(TARGET) $(OBJECTS) $(OBJMOC) + +moc: $(SRCMOC) + +clean: + -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) + -rm -f *~ core + +####### Sub-libraries + + +###### Combined headers + + +####### Compile + +../../../../../temp/csp/ta_global.o: ../../../../../src/ta_common/ta_global.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_global.o ../../../../../src/ta_common/ta_global.c + +../../../../../temp/csp/ta_retcode.o: ../../../../../src/ta_common/ta_retcode.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_retcode.o ../../../../../src/ta_common/ta_retcode.c + +../../../../../temp/csp/ta_version.o: ../../../../../src/ta_common/ta_version.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_version.o ../../../../../src/ta_common/ta_version.c + +../../../../../temp/csp/ta_abstract.o: ../../../../../src/ta_abstract/ta_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_abstract.o ../../../../../src/ta_abstract/ta_abstract.c + +../../../../../temp/csp/ta_def_ui.o: ../../../../../src/ta_abstract/ta_def_ui.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_def_ui.o ../../../../../src/ta_abstract/ta_def_ui.c + +../../../../../temp/csp/ta_func_api.o: ../../../../../src/ta_abstract/ta_func_api.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_func_api.o ../../../../../src/ta_abstract/ta_func_api.c + +../../../../../temp/csp/ta_group_idx.o: ../../../../../src/ta_abstract/ta_group_idx.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_group_idx.o ../../../../../src/ta_abstract/ta_group_idx.c + +../../../../../temp/csp/ta_frame.o: ../../../../../src/ta_abstract/frames/ta_frame.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_frame.o ../../../../../src/ta_abstract/frames/ta_frame.c + +../../../../../temp/csp/table_a.o: ../../../../../src/ta_abstract/tables/table_a.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_a.o ../../../../../src/ta_abstract/tables/table_a.c + +../../../../../temp/csp/table_b.o: ../../../../../src/ta_abstract/tables/table_b.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_b.o ../../../../../src/ta_abstract/tables/table_b.c + +../../../../../temp/csp/table_c.o: ../../../../../src/ta_abstract/tables/table_c.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_c.o ../../../../../src/ta_abstract/tables/table_c.c + +../../../../../temp/csp/table_d.o: ../../../../../src/ta_abstract/tables/table_d.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_d.o ../../../../../src/ta_abstract/tables/table_d.c + +../../../../../temp/csp/table_e.o: ../../../../../src/ta_abstract/tables/table_e.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_e.o ../../../../../src/ta_abstract/tables/table_e.c + +../../../../../temp/csp/table_f.o: ../../../../../src/ta_abstract/tables/table_f.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_f.o ../../../../../src/ta_abstract/tables/table_f.c + +../../../../../temp/csp/table_g.o: ../../../../../src/ta_abstract/tables/table_g.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_g.o ../../../../../src/ta_abstract/tables/table_g.c + +../../../../../temp/csp/table_h.o: ../../../../../src/ta_abstract/tables/table_h.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_h.o ../../../../../src/ta_abstract/tables/table_h.c + +../../../../../temp/csp/table_i.o: ../../../../../src/ta_abstract/tables/table_i.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_i.o ../../../../../src/ta_abstract/tables/table_i.c + +../../../../../temp/csp/table_j.o: ../../../../../src/ta_abstract/tables/table_j.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_j.o ../../../../../src/ta_abstract/tables/table_j.c + +../../../../../temp/csp/table_k.o: ../../../../../src/ta_abstract/tables/table_k.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_k.o ../../../../../src/ta_abstract/tables/table_k.c + +../../../../../temp/csp/table_l.o: ../../../../../src/ta_abstract/tables/table_l.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_l.o ../../../../../src/ta_abstract/tables/table_l.c + +../../../../../temp/csp/table_m.o: ../../../../../src/ta_abstract/tables/table_m.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_m.o ../../../../../src/ta_abstract/tables/table_m.c + +../../../../../temp/csp/table_n.o: ../../../../../src/ta_abstract/tables/table_n.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_n.o ../../../../../src/ta_abstract/tables/table_n.c + +../../../../../temp/csp/table_o.o: ../../../../../src/ta_abstract/tables/table_o.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_o.o ../../../../../src/ta_abstract/tables/table_o.c + +../../../../../temp/csp/table_p.o: ../../../../../src/ta_abstract/tables/table_p.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_p.o ../../../../../src/ta_abstract/tables/table_p.c + +../../../../../temp/csp/table_q.o: ../../../../../src/ta_abstract/tables/table_q.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_q.o ../../../../../src/ta_abstract/tables/table_q.c + +../../../../../temp/csp/table_r.o: ../../../../../src/ta_abstract/tables/table_r.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_r.o ../../../../../src/ta_abstract/tables/table_r.c + +../../../../../temp/csp/table_s.o: ../../../../../src/ta_abstract/tables/table_s.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_s.o ../../../../../src/ta_abstract/tables/table_s.c + +../../../../../temp/csp/table_t.o: ../../../../../src/ta_abstract/tables/table_t.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_t.o ../../../../../src/ta_abstract/tables/table_t.c + +../../../../../temp/csp/table_u.o: ../../../../../src/ta_abstract/tables/table_u.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_u.o ../../../../../src/ta_abstract/tables/table_u.c + +../../../../../temp/csp/table_v.o: ../../../../../src/ta_abstract/tables/table_v.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_v.o ../../../../../src/ta_abstract/tables/table_v.c + +../../../../../temp/csp/table_w.o: ../../../../../src/ta_abstract/tables/table_w.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_w.o ../../../../../src/ta_abstract/tables/table_w.c + +../../../../../temp/csp/table_x.o: ../../../../../src/ta_abstract/tables/table_x.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_x.o ../../../../../src/ta_abstract/tables/table_x.c + +../../../../../temp/csp/table_y.o: ../../../../../src/ta_abstract/tables/table_y.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_y.o ../../../../../src/ta_abstract/tables/table_y.c + +../../../../../temp/csp/table_z.o: ../../../../../src/ta_abstract/tables/table_z.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_z.o ../../../../../src/ta_abstract/tables/table_z.c + +../../../../../temp/csp/ta_utility.o: ../../../../../src/ta_func/ta_utility.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_utility.o ../../../../../src/ta_func/ta_utility.c + +../../../../../temp/csp/ta_ACOS.o: ../../../../../src/ta_func/ta_ACOS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_ACOS.o ../../../../../src/ta_func/ta_ACOS.c + +../../../../../temp/csp/ta_AD.o: ../../../../../src/ta_func/ta_AD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_AD.o ../../../../../src/ta_func/ta_AD.c + +../../../../../temp/csp/ta_ADD.o: ../../../../../src/ta_func/ta_ADD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_ADD.o ../../../../../src/ta_func/ta_ADD.c + +../../../../../temp/csp/ta_ADOSC.o: ../../../../../src/ta_func/ta_ADOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_ADOSC.o ../../../../../src/ta_func/ta_ADOSC.c + +../../../../../temp/csp/ta_ADX.o: ../../../../../src/ta_func/ta_ADX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_ADX.o ../../../../../src/ta_func/ta_ADX.c + +../../../../../temp/csp/ta_ADXR.o: ../../../../../src/ta_func/ta_ADXR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_ADXR.o ../../../../../src/ta_func/ta_ADXR.c + +../../../../../temp/csp/ta_APO.o: ../../../../../src/ta_func/ta_APO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_APO.o ../../../../../src/ta_func/ta_APO.c + +../../../../../temp/csp/ta_AROON.o: ../../../../../src/ta_func/ta_AROON.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_AROON.o ../../../../../src/ta_func/ta_AROON.c + +../../../../../temp/csp/ta_AROONOSC.o: ../../../../../src/ta_func/ta_AROONOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_AROONOSC.o ../../../../../src/ta_func/ta_AROONOSC.c + +../../../../../temp/csp/ta_ASIN.o: ../../../../../src/ta_func/ta_ASIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_ASIN.o ../../../../../src/ta_func/ta_ASIN.c + +../../../../../temp/csp/ta_ATAN.o: ../../../../../src/ta_func/ta_ATAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_ATAN.o ../../../../../src/ta_func/ta_ATAN.c + +../../../../../temp/csp/ta_ATR.o: ../../../../../src/ta_func/ta_ATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_ATR.o ../../../../../src/ta_func/ta_ATR.c + +../../../../../temp/csp/ta_AVGPRICE.o: ../../../../../src/ta_func/ta_AVGPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_AVGPRICE.o ../../../../../src/ta_func/ta_AVGPRICE.c + +../../../../../temp/csp/ta_BBANDS.o: ../../../../../src/ta_func/ta_BBANDS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_BBANDS.o ../../../../../src/ta_func/ta_BBANDS.c + +../../../../../temp/csp/ta_BETA.o: ../../../../../src/ta_func/ta_BETA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_BETA.o ../../../../../src/ta_func/ta_BETA.c + +../../../../../temp/csp/ta_BOP.o: ../../../../../src/ta_func/ta_BOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_BOP.o ../../../../../src/ta_func/ta_BOP.c + +../../../../../temp/csp/ta_CCI.o: ../../../../../src/ta_func/ta_CCI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CCI.o ../../../../../src/ta_func/ta_CCI.c + +../../../../../temp/csp/ta_CDL2CROWS.o: ../../../../../src/ta_func/ta_CDL2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDL2CROWS.o ../../../../../src/ta_func/ta_CDL2CROWS.c + +../../../../../temp/csp/ta_CDL3BLACKCROWS.o: ../../../../../src/ta_func/ta_CDL3BLACKCROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDL3BLACKCROWS.o ../../../../../src/ta_func/ta_CDL3BLACKCROWS.c + +../../../../../temp/csp/ta_CDL3INSIDE.o: ../../../../../src/ta_func/ta_CDL3INSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDL3INSIDE.o ../../../../../src/ta_func/ta_CDL3INSIDE.c + +../../../../../temp/csp/ta_CDL3LINESTRIKE.o: ../../../../../src/ta_func/ta_CDL3LINESTRIKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDL3LINESTRIKE.o ../../../../../src/ta_func/ta_CDL3LINESTRIKE.c + +../../../../../temp/csp/ta_CDL3OUTSIDE.o: ../../../../../src/ta_func/ta_CDL3OUTSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDL3OUTSIDE.o ../../../../../src/ta_func/ta_CDL3OUTSIDE.c + +../../../../../temp/csp/ta_CDL3STARSINSOUTH.o: ../../../../../src/ta_func/ta_CDL3STARSINSOUTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDL3STARSINSOUTH.o ../../../../../src/ta_func/ta_CDL3STARSINSOUTH.c + +../../../../../temp/csp/ta_CDL3WHITESOLDIERS.o: ../../../../../src/ta_func/ta_CDL3WHITESOLDIERS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDL3WHITESOLDIERS.o ../../../../../src/ta_func/ta_CDL3WHITESOLDIERS.c + +../../../../../temp/csp/ta_CDLABANDONEDBABY.o: ../../../../../src/ta_func/ta_CDLABANDONEDBABY.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLABANDONEDBABY.o ../../../../../src/ta_func/ta_CDLABANDONEDBABY.c + +../../../../../temp/csp/ta_CDLADVANCEBLOCK.o: ../../../../../src/ta_func/ta_CDLADVANCEBLOCK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLADVANCEBLOCK.o ../../../../../src/ta_func/ta_CDLADVANCEBLOCK.c + +../../../../../temp/csp/ta_CDLBELTHOLD.o: ../../../../../src/ta_func/ta_CDLBELTHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLBELTHOLD.o ../../../../../src/ta_func/ta_CDLBELTHOLD.c + +../../../../../temp/csp/ta_CDLBREAKAWAY.o: ../../../../../src/ta_func/ta_CDLBREAKAWAY.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLBREAKAWAY.o ../../../../../src/ta_func/ta_CDLBREAKAWAY.c + +../../../../../temp/csp/ta_CDLCLOSINGMARUBOZU.o: ../../../../../src/ta_func/ta_CDLCLOSINGMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLCLOSINGMARUBOZU.o ../../../../../src/ta_func/ta_CDLCLOSINGMARUBOZU.c + +../../../../../temp/csp/ta_CDLCONCEALBABYSWALL.o: ../../../../../src/ta_func/ta_CDLCONCEALBABYSWALL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLCONCEALBABYSWALL.o ../../../../../src/ta_func/ta_CDLCONCEALBABYSWALL.c + +../../../../../temp/csp/ta_CDLCOUNTERATTACK.o: ../../../../../src/ta_func/ta_CDLCOUNTERATTACK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLCOUNTERATTACK.o ../../../../../src/ta_func/ta_CDLCOUNTERATTACK.c + +../../../../../temp/csp/ta_CDLDARKCLOUDCOVER.o: ../../../../../src/ta_func/ta_CDLDARKCLOUDCOVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLDARKCLOUDCOVER.o ../../../../../src/ta_func/ta_CDLDARKCLOUDCOVER.c + +../../../../../temp/csp/ta_CDLDOJI.o: ../../../../../src/ta_func/ta_CDLDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLDOJI.o ../../../../../src/ta_func/ta_CDLDOJI.c + +../../../../../temp/csp/ta_CDLDOJISTAR.o: ../../../../../src/ta_func/ta_CDLDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLDOJISTAR.o ../../../../../src/ta_func/ta_CDLDOJISTAR.c + +../../../../../temp/csp/ta_CDLDRAGONFLYDOJI.o: ../../../../../src/ta_func/ta_CDLDRAGONFLYDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLDRAGONFLYDOJI.o ../../../../../src/ta_func/ta_CDLDRAGONFLYDOJI.c + +../../../../../temp/csp/ta_CDLENGULFING.o: ../../../../../src/ta_func/ta_CDLENGULFING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLENGULFING.o ../../../../../src/ta_func/ta_CDLENGULFING.c + +../../../../../temp/csp/ta_CDLEVENINGDOJISTAR.o: ../../../../../src/ta_func/ta_CDLEVENINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLEVENINGDOJISTAR.o ../../../../../src/ta_func/ta_CDLEVENINGDOJISTAR.c + +../../../../../temp/csp/ta_CDLEVENINGSTAR.o: ../../../../../src/ta_func/ta_CDLEVENINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLEVENINGSTAR.o ../../../../../src/ta_func/ta_CDLEVENINGSTAR.c + +../../../../../temp/csp/ta_CDLGAPSIDESIDEWHITE.o: ../../../../../src/ta_func/ta_CDLGAPSIDESIDEWHITE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLGAPSIDESIDEWHITE.o ../../../../../src/ta_func/ta_CDLGAPSIDESIDEWHITE.c + +../../../../../temp/csp/ta_CDLGRAVESTONEDOJI.o: ../../../../../src/ta_func/ta_CDLGRAVESTONEDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLGRAVESTONEDOJI.o ../../../../../src/ta_func/ta_CDLGRAVESTONEDOJI.c + +../../../../../temp/csp/ta_CDLHAMMER.o: ../../../../../src/ta_func/ta_CDLHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLHAMMER.o ../../../../../src/ta_func/ta_CDLHAMMER.c + +../../../../../temp/csp/ta_CDLHANGINGMAN.o: ../../../../../src/ta_func/ta_CDLHANGINGMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLHANGINGMAN.o ../../../../../src/ta_func/ta_CDLHANGINGMAN.c + +../../../../../temp/csp/ta_CDLHARAMI.o: ../../../../../src/ta_func/ta_CDLHARAMI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLHARAMI.o ../../../../../src/ta_func/ta_CDLHARAMI.c + +../../../../../temp/csp/ta_CDLHARAMICROSS.o: ../../../../../src/ta_func/ta_CDLHARAMICROSS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLHARAMICROSS.o ../../../../../src/ta_func/ta_CDLHARAMICROSS.c + +../../../../../temp/csp/ta_CDLHIGHWAVE.o: ../../../../../src/ta_func/ta_CDLHIGHWAVE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLHIGHWAVE.o ../../../../../src/ta_func/ta_CDLHIGHWAVE.c + +../../../../../temp/csp/ta_CDLHIKKAKE.o: ../../../../../src/ta_func/ta_CDLHIKKAKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLHIKKAKE.o ../../../../../src/ta_func/ta_CDLHIKKAKE.c + +../../../../../temp/csp/ta_CDLHIKKAKEMOD.o: ../../../../../src/ta_func/ta_CDLHIKKAKEMOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLHIKKAKEMOD.o ../../../../../src/ta_func/ta_CDLHIKKAKEMOD.c + +../../../../../temp/csp/ta_CDLHOMINGPIGEON.o: ../../../../../src/ta_func/ta_CDLHOMINGPIGEON.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLHOMINGPIGEON.o ../../../../../src/ta_func/ta_CDLHOMINGPIGEON.c + +../../../../../temp/csp/ta_CDLIDENTICAL3CROWS.o: ../../../../../src/ta_func/ta_CDLIDENTICAL3CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLIDENTICAL3CROWS.o ../../../../../src/ta_func/ta_CDLIDENTICAL3CROWS.c + +../../../../../temp/csp/ta_CDLINNECK.o: ../../../../../src/ta_func/ta_CDLINNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLINNECK.o ../../../../../src/ta_func/ta_CDLINNECK.c + +../../../../../temp/csp/ta_CDLINVERTEDHAMMER.o: ../../../../../src/ta_func/ta_CDLINVERTEDHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLINVERTEDHAMMER.o ../../../../../src/ta_func/ta_CDLINVERTEDHAMMER.c + +../../../../../temp/csp/ta_CDLKICKING.o: ../../../../../src/ta_func/ta_CDLKICKING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLKICKING.o ../../../../../src/ta_func/ta_CDLKICKING.c + +../../../../../temp/csp/ta_CDLKICKINGBYLENGTH.o: ../../../../../src/ta_func/ta_CDLKICKINGBYLENGTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLKICKINGBYLENGTH.o ../../../../../src/ta_func/ta_CDLKICKINGBYLENGTH.c + +../../../../../temp/csp/ta_CDLLADDERBOTTOM.o: ../../../../../src/ta_func/ta_CDLLADDERBOTTOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLLADDERBOTTOM.o ../../../../../src/ta_func/ta_CDLLADDERBOTTOM.c + +../../../../../temp/csp/ta_CDLLONGLEGGEDDOJI.o: ../../../../../src/ta_func/ta_CDLLONGLEGGEDDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLLONGLEGGEDDOJI.o ../../../../../src/ta_func/ta_CDLLONGLEGGEDDOJI.c + +../../../../../temp/csp/ta_CDLLONGLINE.o: ../../../../../src/ta_func/ta_CDLLONGLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLLONGLINE.o ../../../../../src/ta_func/ta_CDLLONGLINE.c + +../../../../../temp/csp/ta_CDLMARUBOZU.o: ../../../../../src/ta_func/ta_CDLMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLMARUBOZU.o ../../../../../src/ta_func/ta_CDLMARUBOZU.c + +../../../../../temp/csp/ta_CDLMATCHINGLOW.o: ../../../../../src/ta_func/ta_CDLMATCHINGLOW.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLMATCHINGLOW.o ../../../../../src/ta_func/ta_CDLMATCHINGLOW.c + +../../../../../temp/csp/ta_CDLMATHOLD.o: ../../../../../src/ta_func/ta_CDLMATHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLMATHOLD.o ../../../../../src/ta_func/ta_CDLMATHOLD.c + +../../../../../temp/csp/ta_CDLMORNINGDOJISTAR.o: ../../../../../src/ta_func/ta_CDLMORNINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLMORNINGDOJISTAR.o ../../../../../src/ta_func/ta_CDLMORNINGDOJISTAR.c + +../../../../../temp/csp/ta_CDLMORNINGSTAR.o: ../../../../../src/ta_func/ta_CDLMORNINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLMORNINGSTAR.o ../../../../../src/ta_func/ta_CDLMORNINGSTAR.c + +../../../../../temp/csp/ta_CDLONNECK.o: ../../../../../src/ta_func/ta_CDLONNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLONNECK.o ../../../../../src/ta_func/ta_CDLONNECK.c + +../../../../../temp/csp/ta_CDLPIERCING.o: ../../../../../src/ta_func/ta_CDLPIERCING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLPIERCING.o ../../../../../src/ta_func/ta_CDLPIERCING.c + +../../../../../temp/csp/ta_CDLRICKSHAWMAN.o: ../../../../../src/ta_func/ta_CDLRICKSHAWMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLRICKSHAWMAN.o ../../../../../src/ta_func/ta_CDLRICKSHAWMAN.c + +../../../../../temp/csp/ta_CDLRISEFALL3METHODS.o: ../../../../../src/ta_func/ta_CDLRISEFALL3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLRISEFALL3METHODS.o ../../../../../src/ta_func/ta_CDLRISEFALL3METHODS.c + +../../../../../temp/csp/ta_CDLSEPARATINGLINES.o: ../../../../../src/ta_func/ta_CDLSEPARATINGLINES.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLSEPARATINGLINES.o ../../../../../src/ta_func/ta_CDLSEPARATINGLINES.c + +../../../../../temp/csp/ta_CDLSHOOTINGSTAR.o: ../../../../../src/ta_func/ta_CDLSHOOTINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLSHOOTINGSTAR.o ../../../../../src/ta_func/ta_CDLSHOOTINGSTAR.c + +../../../../../temp/csp/ta_CDLSHORTLINE.o: ../../../../../src/ta_func/ta_CDLSHORTLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLSHORTLINE.o ../../../../../src/ta_func/ta_CDLSHORTLINE.c + +../../../../../temp/csp/ta_CDLSPINNINGTOP.o: ../../../../../src/ta_func/ta_CDLSPINNINGTOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLSPINNINGTOP.o ../../../../../src/ta_func/ta_CDLSPINNINGTOP.c + +../../../../../temp/csp/ta_CDLSTALLEDPATTERN.o: ../../../../../src/ta_func/ta_CDLSTALLEDPATTERN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLSTALLEDPATTERN.o ../../../../../src/ta_func/ta_CDLSTALLEDPATTERN.c + +../../../../../temp/csp/ta_CDLSTICKSANDWICH.o: ../../../../../src/ta_func/ta_CDLSTICKSANDWICH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLSTICKSANDWICH.o ../../../../../src/ta_func/ta_CDLSTICKSANDWICH.c + +../../../../../temp/csp/ta_CDLTAKURI.o: ../../../../../src/ta_func/ta_CDLTAKURI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLTAKURI.o ../../../../../src/ta_func/ta_CDLTAKURI.c + +../../../../../temp/csp/ta_CDLTASUKIGAP.o: ../../../../../src/ta_func/ta_CDLTASUKIGAP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLTASUKIGAP.o ../../../../../src/ta_func/ta_CDLTASUKIGAP.c + +../../../../../temp/csp/ta_CDLTHRUSTING.o: ../../../../../src/ta_func/ta_CDLTHRUSTING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLTHRUSTING.o ../../../../../src/ta_func/ta_CDLTHRUSTING.c + +../../../../../temp/csp/ta_CDLTRISTAR.o: ../../../../../src/ta_func/ta_CDLTRISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLTRISTAR.o ../../../../../src/ta_func/ta_CDLTRISTAR.c + +../../../../../temp/csp/ta_CDLUNIQUE3RIVER.o: ../../../../../src/ta_func/ta_CDLUNIQUE3RIVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLUNIQUE3RIVER.o ../../../../../src/ta_func/ta_CDLUNIQUE3RIVER.c + +../../../../../temp/csp/ta_CDLUPSIDEGAP2CROWS.o: ../../../../../src/ta_func/ta_CDLUPSIDEGAP2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLUPSIDEGAP2CROWS.o ../../../../../src/ta_func/ta_CDLUPSIDEGAP2CROWS.c + +../../../../../temp/csp/ta_CDLXSIDEGAP3METHODS.o: ../../../../../src/ta_func/ta_CDLXSIDEGAP3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLXSIDEGAP3METHODS.o ../../../../../src/ta_func/ta_CDLXSIDEGAP3METHODS.c + +../../../../../temp/csp/ta_CEIL.o: ../../../../../src/ta_func/ta_CEIL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CEIL.o ../../../../../src/ta_func/ta_CEIL.c + +../../../../../temp/csp/ta_CMO.o: ../../../../../src/ta_func/ta_CMO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CMO.o ../../../../../src/ta_func/ta_CMO.c + +../../../../../temp/csp/ta_CORREL.o: ../../../../../src/ta_func/ta_CORREL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CORREL.o ../../../../../src/ta_func/ta_CORREL.c + +../../../../../temp/csp/ta_COS.o: ../../../../../src/ta_func/ta_COS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_COS.o ../../../../../src/ta_func/ta_COS.c + +../../../../../temp/csp/ta_COSH.o: ../../../../../src/ta_func/ta_COSH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_COSH.o ../../../../../src/ta_func/ta_COSH.c + +../../../../../temp/csp/ta_DEMA.o: ../../../../../src/ta_func/ta_DEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_DEMA.o ../../../../../src/ta_func/ta_DEMA.c + +../../../../../temp/csp/ta_DIV.o: ../../../../../src/ta_func/ta_DIV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_DIV.o ../../../../../src/ta_func/ta_DIV.c + +../../../../../temp/csp/ta_DX.o: ../../../../../src/ta_func/ta_DX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_DX.o ../../../../../src/ta_func/ta_DX.c + +../../../../../temp/csp/ta_EMA.o: ../../../../../src/ta_func/ta_EMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_EMA.o ../../../../../src/ta_func/ta_EMA.c + +../../../../../temp/csp/ta_EXP.o: ../../../../../src/ta_func/ta_EXP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_EXP.o ../../../../../src/ta_func/ta_EXP.c + +../../../../../temp/csp/ta_FLOOR.o: ../../../../../src/ta_func/ta_FLOOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_FLOOR.o ../../../../../src/ta_func/ta_FLOOR.c + +../../../../../temp/csp/ta_HT_DCPERIOD.o: ../../../../../src/ta_func/ta_HT_DCPERIOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_HT_DCPERIOD.o ../../../../../src/ta_func/ta_HT_DCPERIOD.c + +../../../../../temp/csp/ta_HT_DCPHASE.o: ../../../../../src/ta_func/ta_HT_DCPHASE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_HT_DCPHASE.o ../../../../../src/ta_func/ta_HT_DCPHASE.c + +../../../../../temp/csp/ta_HT_PHASOR.o: ../../../../../src/ta_func/ta_HT_PHASOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_HT_PHASOR.o ../../../../../src/ta_func/ta_HT_PHASOR.c + +../../../../../temp/csp/ta_HT_SINE.o: ../../../../../src/ta_func/ta_HT_SINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_HT_SINE.o ../../../../../src/ta_func/ta_HT_SINE.c + +../../../../../temp/csp/ta_HT_TRENDLINE.o: ../../../../../src/ta_func/ta_HT_TRENDLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_HT_TRENDLINE.o ../../../../../src/ta_func/ta_HT_TRENDLINE.c + +../../../../../temp/csp/ta_HT_TRENDMODE.o: ../../../../../src/ta_func/ta_HT_TRENDMODE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_HT_TRENDMODE.o ../../../../../src/ta_func/ta_HT_TRENDMODE.c + +../../../../../temp/csp/ta_KAMA.o: ../../../../../src/ta_func/ta_KAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_KAMA.o ../../../../../src/ta_func/ta_KAMA.c + +../../../../../temp/csp/ta_LINEARREG.o: ../../../../../src/ta_func/ta_LINEARREG.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_LINEARREG.o ../../../../../src/ta_func/ta_LINEARREG.c + +../../../../../temp/csp/ta_LINEARREG_ANGLE.o: ../../../../../src/ta_func/ta_LINEARREG_ANGLE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_LINEARREG_ANGLE.o ../../../../../src/ta_func/ta_LINEARREG_ANGLE.c + +../../../../../temp/csp/ta_LINEARREG_INTERCEPT.o: ../../../../../src/ta_func/ta_LINEARREG_INTERCEPT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_LINEARREG_INTERCEPT.o ../../../../../src/ta_func/ta_LINEARREG_INTERCEPT.c + +../../../../../temp/csp/ta_LINEARREG_SLOPE.o: ../../../../../src/ta_func/ta_LINEARREG_SLOPE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_LINEARREG_SLOPE.o ../../../../../src/ta_func/ta_LINEARREG_SLOPE.c + +../../../../../temp/csp/ta_LN.o: ../../../../../src/ta_func/ta_LN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_LN.o ../../../../../src/ta_func/ta_LN.c + +../../../../../temp/csp/ta_LOG10.o: ../../../../../src/ta_func/ta_LOG10.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_LOG10.o ../../../../../src/ta_func/ta_LOG10.c + +../../../../../temp/csp/ta_MA.o: ../../../../../src/ta_func/ta_MA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_MA.o ../../../../../src/ta_func/ta_MA.c + +../../../../../temp/csp/ta_MACD.o: ../../../../../src/ta_func/ta_MACD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_MACD.o ../../../../../src/ta_func/ta_MACD.c + +../../../../../temp/csp/ta_MACDEXT.o: ../../../../../src/ta_func/ta_MACDEXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_MACDEXT.o ../../../../../src/ta_func/ta_MACDEXT.c + +../../../../../temp/csp/ta_MACDFIX.o: ../../../../../src/ta_func/ta_MACDFIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_MACDFIX.o ../../../../../src/ta_func/ta_MACDFIX.c + +../../../../../temp/csp/ta_MAMA.o: ../../../../../src/ta_func/ta_MAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_MAMA.o ../../../../../src/ta_func/ta_MAMA.c + +../../../../../temp/csp/ta_MAVP.o: ../../../../../src/ta_func/ta_MAVP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_MAVP.o ../../../../../src/ta_func/ta_MAVP.c + +../../../../../temp/csp/ta_MAX.o: ../../../../../src/ta_func/ta_MAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_MAX.o ../../../../../src/ta_func/ta_MAX.c + +../../../../../temp/csp/ta_MAXINDEX.o: ../../../../../src/ta_func/ta_MAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_MAXINDEX.o ../../../../../src/ta_func/ta_MAXINDEX.c + +../../../../../temp/csp/ta_MEDPRICE.o: ../../../../../src/ta_func/ta_MEDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_MEDPRICE.o ../../../../../src/ta_func/ta_MEDPRICE.c + +../../../../../temp/csp/ta_MFI.o: ../../../../../src/ta_func/ta_MFI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_MFI.o ../../../../../src/ta_func/ta_MFI.c + +../../../../../temp/csp/ta_MIDPOINT.o: ../../../../../src/ta_func/ta_MIDPOINT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_MIDPOINT.o ../../../../../src/ta_func/ta_MIDPOINT.c + +../../../../../temp/csp/ta_MIDPRICE.o: ../../../../../src/ta_func/ta_MIDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_MIDPRICE.o ../../../../../src/ta_func/ta_MIDPRICE.c + +../../../../../temp/csp/ta_MIN.o: ../../../../../src/ta_func/ta_MIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_MIN.o ../../../../../src/ta_func/ta_MIN.c + +../../../../../temp/csp/ta_MININDEX.o: ../../../../../src/ta_func/ta_MININDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_MININDEX.o ../../../../../src/ta_func/ta_MININDEX.c + +../../../../../temp/csp/ta_MINMAX.o: ../../../../../src/ta_func/ta_MINMAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_MINMAX.o ../../../../../src/ta_func/ta_MINMAX.c + +../../../../../temp/csp/ta_MINMAXINDEX.o: ../../../../../src/ta_func/ta_MINMAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_MINMAXINDEX.o ../../../../../src/ta_func/ta_MINMAXINDEX.c + +../../../../../temp/csp/ta_MINUS_DI.o: ../../../../../src/ta_func/ta_MINUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_MINUS_DI.o ../../../../../src/ta_func/ta_MINUS_DI.c + +../../../../../temp/csp/ta_MINUS_DM.o: ../../../../../src/ta_func/ta_MINUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_MINUS_DM.o ../../../../../src/ta_func/ta_MINUS_DM.c + +../../../../../temp/csp/ta_MOM.o: ../../../../../src/ta_func/ta_MOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_MOM.o ../../../../../src/ta_func/ta_MOM.c + +../../../../../temp/csp/ta_MULT.o: ../../../../../src/ta_func/ta_MULT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_MULT.o ../../../../../src/ta_func/ta_MULT.c + +../../../../../temp/csp/ta_NATR.o: ../../../../../src/ta_func/ta_NATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_NATR.o ../../../../../src/ta_func/ta_NATR.c + +../../../../../temp/csp/ta_OBV.o: ../../../../../src/ta_func/ta_OBV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_OBV.o ../../../../../src/ta_func/ta_OBV.c + +../../../../../temp/csp/ta_PLUS_DI.o: ../../../../../src/ta_func/ta_PLUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_PLUS_DI.o ../../../../../src/ta_func/ta_PLUS_DI.c + +../../../../../temp/csp/ta_PLUS_DM.o: ../../../../../src/ta_func/ta_PLUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_PLUS_DM.o ../../../../../src/ta_func/ta_PLUS_DM.c + +../../../../../temp/csp/ta_PPO.o: ../../../../../src/ta_func/ta_PPO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_PPO.o ../../../../../src/ta_func/ta_PPO.c + +../../../../../temp/csp/ta_ROC.o: ../../../../../src/ta_func/ta_ROC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_ROC.o ../../../../../src/ta_func/ta_ROC.c + +../../../../../temp/csp/ta_ROCP.o: ../../../../../src/ta_func/ta_ROCP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_ROCP.o ../../../../../src/ta_func/ta_ROCP.c + +../../../../../temp/csp/ta_ROCR.o: ../../../../../src/ta_func/ta_ROCR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_ROCR.o ../../../../../src/ta_func/ta_ROCR.c + +../../../../../temp/csp/ta_ROCR100.o: ../../../../../src/ta_func/ta_ROCR100.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_ROCR100.o ../../../../../src/ta_func/ta_ROCR100.c + +../../../../../temp/csp/ta_RSI.o: ../../../../../src/ta_func/ta_RSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_RSI.o ../../../../../src/ta_func/ta_RSI.c + +../../../../../temp/csp/ta_SAR.o: ../../../../../src/ta_func/ta_SAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_SAR.o ../../../../../src/ta_func/ta_SAR.c + +../../../../../temp/csp/ta_SAREXT.o: ../../../../../src/ta_func/ta_SAREXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_SAREXT.o ../../../../../src/ta_func/ta_SAREXT.c + +../../../../../temp/csp/ta_SIN.o: ../../../../../src/ta_func/ta_SIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_SIN.o ../../../../../src/ta_func/ta_SIN.c + +../../../../../temp/csp/ta_SINH.o: ../../../../../src/ta_func/ta_SINH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_SINH.o ../../../../../src/ta_func/ta_SINH.c + +../../../../../temp/csp/ta_SMA.o: ../../../../../src/ta_func/ta_SMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_SMA.o ../../../../../src/ta_func/ta_SMA.c + +../../../../../temp/csp/ta_SQRT.o: ../../../../../src/ta_func/ta_SQRT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_SQRT.o ../../../../../src/ta_func/ta_SQRT.c + +../../../../../temp/csp/ta_STDDEV.o: ../../../../../src/ta_func/ta_STDDEV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_STDDEV.o ../../../../../src/ta_func/ta_STDDEV.c + +../../../../../temp/csp/ta_STOCH.o: ../../../../../src/ta_func/ta_STOCH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_STOCH.o ../../../../../src/ta_func/ta_STOCH.c + +../../../../../temp/csp/ta_STOCHF.o: ../../../../../src/ta_func/ta_STOCHF.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_STOCHF.o ../../../../../src/ta_func/ta_STOCHF.c + +../../../../../temp/csp/ta_STOCHRSI.o: ../../../../../src/ta_func/ta_STOCHRSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_STOCHRSI.o ../../../../../src/ta_func/ta_STOCHRSI.c + +../../../../../temp/csp/ta_SUB.o: ../../../../../src/ta_func/ta_SUB.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_SUB.o ../../../../../src/ta_func/ta_SUB.c + +../../../../../temp/csp/ta_SUM.o: ../../../../../src/ta_func/ta_SUM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_SUM.o ../../../../../src/ta_func/ta_SUM.c + +../../../../../temp/csp/ta_T3.o: ../../../../../src/ta_func/ta_T3.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_T3.o ../../../../../src/ta_func/ta_T3.c + +../../../../../temp/csp/ta_TAN.o: ../../../../../src/ta_func/ta_TAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_TAN.o ../../../../../src/ta_func/ta_TAN.c + +../../../../../temp/csp/ta_TANH.o: ../../../../../src/ta_func/ta_TANH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_TANH.o ../../../../../src/ta_func/ta_TANH.c + +../../../../../temp/csp/ta_TEMA.o: ../../../../../src/ta_func/ta_TEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_TEMA.o ../../../../../src/ta_func/ta_TEMA.c + +../../../../../temp/csp/ta_TRANGE.o: ../../../../../src/ta_func/ta_TRANGE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_TRANGE.o ../../../../../src/ta_func/ta_TRANGE.c + +../../../../../temp/csp/ta_TRIMA.o: ../../../../../src/ta_func/ta_TRIMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_TRIMA.o ../../../../../src/ta_func/ta_TRIMA.c + +../../../../../temp/csp/ta_TRIX.o: ../../../../../src/ta_func/ta_TRIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_TRIX.o ../../../../../src/ta_func/ta_TRIX.c + +../../../../../temp/csp/ta_TSF.o: ../../../../../src/ta_func/ta_TSF.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_TSF.o ../../../../../src/ta_func/ta_TSF.c + +../../../../../temp/csp/ta_TYPPRICE.o: ../../../../../src/ta_func/ta_TYPPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_TYPPRICE.o ../../../../../src/ta_func/ta_TYPPRICE.c + +../../../../../temp/csp/ta_ULTOSC.o: ../../../../../src/ta_func/ta_ULTOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_ULTOSC.o ../../../../../src/ta_func/ta_ULTOSC.c + +../../../../../temp/csp/ta_VAR.o: ../../../../../src/ta_func/ta_VAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_VAR.o ../../../../../src/ta_func/ta_VAR.c + +../../../../../temp/csp/ta_WCLPRICE.o: ../../../../../src/ta_func/ta_WCLPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_WCLPRICE.o ../../../../../src/ta_func/ta_WCLPRICE.c + +../../../../../temp/csp/ta_WILLR.o: ../../../../../src/ta_func/ta_WILLR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_WILLR.o ../../../../../src/ta_func/ta_WILLR.c + +../../../../../temp/csp/ta_WMA.o: ../../../../../src/ta_func/ta_WMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_WMA.o ../../../../../src/ta_func/ta_WMA.c + diff --git a/make/csp/cygwin/g++/ta_regtest/Makefile b/make/csp/cygwin/g++/ta_regtest/Makefile new file mode 100644 index 000000000..7878c6e95 --- /dev/null +++ b/make/csp/cygwin/g++/ta_regtest/Makefile @@ -0,0 +1,211 @@ +############################################################################# +# Makefile for building ../../../../../bin/ta_regtest +# Generated by tmake; +# Project: ta_regtest/ta_regtest +# Template: app +############################################################################# + +####### Compiler, tools and options + +CC = gcc +CXX = g++ +CFLAGS = -pipe -Wall -W -g -O -pg -DTA_DEBUG -D_DEBUG -DTA_SINGLE_THREAD +CXXFLAGS= -pipe -Wall -W -g -DTA_DEBUG -D_DEBUG -DTA_SINGLE_THREAD +INCPATH = -I../../../../../src/ta_common -I../../../../../src/tools/ta_regtest -I../../../../../src/ta_func -I../../../../../include +LINK = g++ +LFLAGS = -pg +LIBS = $(SUBLIBS) ../../../../../lib/libta_libc_csp.a +MOC = $(QTDIR)/bin/moc +UIC = $(QTDIR)/bin/uic + +TAR = tar -cf +GZIP = gzip -9f + +####### Support for 64-bit systems +ifeq ($(shell uname -m), x86_64) + CFLAGS += -march=x86-64 -m64 -D__64BIT__ + CXXFLAGS += -march=x86-64 -m64 -D__64BIT__ +endif + +####### Apply additional overruling user flags, if any +CFLAGS += $(CUSERFLAGS) +CXXFLAGS += $(CUSERFLAGS) + +####### Files + +HEADERS = +SOURCES = ../../../../../src/tools/ta_regtest/ta_regtest.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_candlestick.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_1in_1out.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_1in_2out.c \ + ../../../../../src/tools/ta_regtest/test_internals.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_adx.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_bbands.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_ma.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_macd.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_minmax.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_mom.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_per_ema.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hl.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hlc.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hlcv.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_per_ohlc.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_po.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_rsi.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_sar.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_stddev.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_stoch.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_trange.c \ + ../../../../../src/tools/ta_regtest/test_util.c \ + ../../../../../src/tools/ta_regtest/test_data.c \ + ../../../../../src/tools/ta_regtest/test_abstract.c +OBJECTS = ../../../../../temp/csp/ta_regtest.o \ + ../../../../../temp/csp/test_candlestick.o \ + ../../../../../temp/csp/test_1in_1out.o \ + ../../../../../temp/csp/test_1in_2out.o \ + ../../../../../temp/csp/test_internals.o \ + ../../../../../temp/csp/test_adx.o \ + ../../../../../temp/csp/test_bbands.o \ + ../../../../../temp/csp/test_ma.o \ + ../../../../../temp/csp/test_macd.o \ + ../../../../../temp/csp/test_minmax.o \ + ../../../../../temp/csp/test_mom.o \ + ../../../../../temp/csp/test_per_ema.o \ + ../../../../../temp/csp/test_per_hl.o \ + ../../../../../temp/csp/test_per_hlc.o \ + ../../../../../temp/csp/test_per_hlcv.o \ + ../../../../../temp/csp/test_per_ohlc.o \ + ../../../../../temp/csp/test_po.o \ + ../../../../../temp/csp/test_rsi.o \ + ../../../../../temp/csp/test_sar.o \ + ../../../../../temp/csp/test_stddev.o \ + ../../../../../temp/csp/test_stoch.o \ + ../../../../../temp/csp/test_trange.o \ + ../../../../../temp/csp/test_util.o \ + ../../../../../temp/csp/test_data.o \ + ../../../../../temp/csp/test_abstract.o +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ../../../../../bin/ta_regtest +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .C .c + +.cpp.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cxx.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cc.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.C.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.c.o: + $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $< + +####### Build rules + + +all: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS) + +moc: $(SRCMOC) + +clean: + -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) + -rm -f *~ core + +####### Sub-libraries + + +###### Combined headers + + +####### Compile + +../../../../../temp/csp/ta_regtest.o: ../../../../../src/tools/ta_regtest/ta_regtest.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_regtest.o ../../../../../src/tools/ta_regtest/ta_regtest.c + +../../../../../temp/csp/test_candlestick.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_candlestick.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/test_candlestick.o ../../../../../src/tools/ta_regtest/ta_test_func/test_candlestick.c + +../../../../../temp/csp/test_1in_1out.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_1in_1out.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/test_1in_1out.o ../../../../../src/tools/ta_regtest/ta_test_func/test_1in_1out.c + +../../../../../temp/csp/test_1in_2out.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_1in_2out.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/test_1in_2out.o ../../../../../src/tools/ta_regtest/ta_test_func/test_1in_2out.c + +../../../../../temp/csp/test_internals.o: ../../../../../src/tools/ta_regtest/test_internals.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/test_internals.o ../../../../../src/tools/ta_regtest/test_internals.c + +../../../../../temp/csp/test_adx.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_adx.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/test_adx.o ../../../../../src/tools/ta_regtest/ta_test_func/test_adx.c + +../../../../../temp/csp/test_bbands.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_bbands.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/test_bbands.o ../../../../../src/tools/ta_regtest/ta_test_func/test_bbands.c + +../../../../../temp/csp/test_ma.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_ma.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/test_ma.o ../../../../../src/tools/ta_regtest/ta_test_func/test_ma.c + +../../../../../temp/csp/test_macd.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_macd.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/test_macd.o ../../../../../src/tools/ta_regtest/ta_test_func/test_macd.c + +../../../../../temp/csp/test_minmax.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_minmax.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/test_minmax.o ../../../../../src/tools/ta_regtest/ta_test_func/test_minmax.c + +../../../../../temp/csp/test_mom.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_mom.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/test_mom.o ../../../../../src/tools/ta_regtest/ta_test_func/test_mom.c + +../../../../../temp/csp/test_per_ema.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_per_ema.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/test_per_ema.o ../../../../../src/tools/ta_regtest/ta_test_func/test_per_ema.c + +../../../../../temp/csp/test_per_hl.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hl.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/test_per_hl.o ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hl.c + +../../../../../temp/csp/test_per_hlc.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hlc.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/test_per_hlc.o ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hlc.c + +../../../../../temp/csp/test_per_hlcv.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hlcv.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/test_per_hlcv.o ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hlcv.c + +../../../../../temp/csp/test_per_ohlc.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_per_ohlc.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/test_per_ohlc.o ../../../../../src/tools/ta_regtest/ta_test_func/test_per_ohlc.c + +../../../../../temp/csp/test_po.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_po.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/test_po.o ../../../../../src/tools/ta_regtest/ta_test_func/test_po.c + +../../../../../temp/csp/test_rsi.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_rsi.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/test_rsi.o ../../../../../src/tools/ta_regtest/ta_test_func/test_rsi.c + +../../../../../temp/csp/test_sar.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_sar.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/test_sar.o ../../../../../src/tools/ta_regtest/ta_test_func/test_sar.c + +../../../../../temp/csp/test_stddev.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_stddev.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/test_stddev.o ../../../../../src/tools/ta_regtest/ta_test_func/test_stddev.c + +../../../../../temp/csp/test_stoch.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_stoch.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/test_stoch.o ../../../../../src/tools/ta_regtest/ta_test_func/test_stoch.c + +../../../../../temp/csp/test_trange.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_trange.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/test_trange.o ../../../../../src/tools/ta_regtest/ta_test_func/test_trange.c + +../../../../../temp/csp/test_util.o: ../../../../../src/tools/ta_regtest/test_util.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/test_util.o ../../../../../src/tools/ta_regtest/test_util.c + +../../../../../temp/csp/test_data.o: ../../../../../src/tools/ta_regtest/test_data.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/test_data.o ../../../../../src/tools/ta_regtest/test_data.c + +../../../../../temp/csp/test_abstract.o: ../../../../../src/tools/ta_regtest/test_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/test_abstract.o ../../../../../src/tools/ta_regtest/test_abstract.c + diff --git a/make/csp/freebsd/g++/Makefile b/make/csp/freebsd/g++/Makefile new file mode 100644 index 000000000..254f26ea7 --- /dev/null +++ b/make/csp/freebsd/g++/Makefile @@ -0,0 +1,36 @@ +############################################################################# +# Makefile for building targets in sub directories. +# Generated by tmake; +# Project: rootmake +# Template: subdirs +############################################################################# + +MAKEFILE= Makefile +TMAKE = tmake + +SUBDIRS = ta_common \ + ta_func \ + ta_abstract \ + ta_libc \ + gen_code \ + ta_regtest + +all: $(SUBDIRS) + +$(SUBDIRS): FORCE + cd $@; $(MAKE) + +tmake: ../csp/freebsd/g++/Makefile + +../csp/freebsd/g++/Makefile: rootmake.pro + tmake rootmake.pro -o ../csp/freebsd/g++/Makefile + +tmake_all: + for i in $(SUBDIRS); do ( if [ -d $$i ]; then cd $$i ; $(MAKE) -f $(MAKEFILE) tmake_all || true; fi; ) ; done + +#### $text = "\t" . 'for i in $(SUBDIRS); do ( if [ -d $$i ]; then cd $$i ; pro=`basename $$i`.pro ; $(TMAKE) $$pro -o $(MAKEFILE); grep "TEMPLATE.*subdirs" $$pro 2>/dev/null >/dev/null && $(MAKE) -f $(MAKEFILE) tmake_all || true; fi; ) ; done'; + +clean release debug: + for i in $(SUBDIRS); do ( if [ -d $$i ]; then cd $$i ; $(MAKE) $@; fi; ) ; done + +FORCE: diff --git a/make/csp/freebsd/g++/gen_code/Makefile b/make/csp/freebsd/g++/gen_code/Makefile new file mode 100644 index 000000000..fe121e0e4 --- /dev/null +++ b/make/csp/freebsd/g++/gen_code/Makefile @@ -0,0 +1,225 @@ +############################################################################# +# Makefile for building ../../../../../bin/gen_code +# Generated by tmake; +# Project: gen_code/gen_code +# Template: app +############################################################################# + +####### Compiler, tools and options + +CC = gcc +CXX = g++ +CFLAGS = -pipe -Wall -W -g -O -pg -DTA_GEN_CODE -DTA_DEBUG -D_DEBUG -DTA_SINGLE_THREAD +CXXFLAGS= -pipe -Wall -W -g -DTA_GEN_CODE -DTA_DEBUG -D_DEBUG -DTA_SINGLE_THREAD +INCPATH = -I../../../../../include -I../../../../../src/ta_common -I../../../../../src/ta_abstract -I../../../../../src/ta_abstract/tables -I../../../../../src/ta_abstract/frames -I/usr/local/include +LINK = g++ +LFLAGS = -L/usr/local/lib -pg +LIBS = $(SUBLIBS) ../../../../../lib/libta_common_csp.a +MOC = $(QTDIR)/bin/moc +UIC = $(QTDIR)/bin/uic + +TAR = tar -cf +GZIP = gzip -9f + +####### Apply additional overruling user flags, if any +CFLAGS += $(CUSERFLAGS) +CXXFLAGS += $(CUSERFLAGS) + +####### Files + +HEADERS = +SOURCES = ../../../../../src/tools/gen_code/gen_code.c \ + ../../../../../src/ta_abstract/ta_abstract.c \ + ../../../../../src/ta_abstract/ta_def_ui.c \ + ../../../../../src/ta_abstract/tables/table_a.c \ + ../../../../../src/ta_abstract/tables/table_b.c \ + ../../../../../src/ta_abstract/tables/table_c.c \ + ../../../../../src/ta_abstract/tables/table_d.c \ + ../../../../../src/ta_abstract/tables/table_e.c \ + ../../../../../src/ta_abstract/tables/table_f.c \ + ../../../../../src/ta_abstract/tables/table_g.c \ + ../../../../../src/ta_abstract/tables/table_h.c \ + ../../../../../src/ta_abstract/tables/table_i.c \ + ../../../../../src/ta_abstract/tables/table_j.c \ + ../../../../../src/ta_abstract/tables/table_k.c \ + ../../../../../src/ta_abstract/tables/table_l.c \ + ../../../../../src/ta_abstract/tables/table_m.c \ + ../../../../../src/ta_abstract/tables/table_n.c \ + ../../../../../src/ta_abstract/tables/table_o.c \ + ../../../../../src/ta_abstract/tables/table_p.c \ + ../../../../../src/ta_abstract/tables/table_q.c \ + ../../../../../src/ta_abstract/tables/table_r.c \ + ../../../../../src/ta_abstract/tables/table_s.c \ + ../../../../../src/ta_abstract/tables/table_t.c \ + ../../../../../src/ta_abstract/tables/table_u.c \ + ../../../../../src/ta_abstract/tables/table_v.c \ + ../../../../../src/ta_abstract/tables/table_w.c \ + ../../../../../src/ta_abstract/tables/table_x.c \ + ../../../../../src/ta_abstract/tables/table_y.c \ + ../../../../../src/ta_abstract/tables/table_z.c +OBJECTS = ../../../../../temp/csp/gen_code/gen_code.o \ + ../../../../../temp/csp/gen_code/ta_abstract.o \ + ../../../../../temp/csp/gen_code/ta_def_ui.o \ + ../../../../../temp/csp/gen_code/table_a.o \ + ../../../../../temp/csp/gen_code/table_b.o \ + ../../../../../temp/csp/gen_code/table_c.o \ + ../../../../../temp/csp/gen_code/table_d.o \ + ../../../../../temp/csp/gen_code/table_e.o \ + ../../../../../temp/csp/gen_code/table_f.o \ + ../../../../../temp/csp/gen_code/table_g.o \ + ../../../../../temp/csp/gen_code/table_h.o \ + ../../../../../temp/csp/gen_code/table_i.o \ + ../../../../../temp/csp/gen_code/table_j.o \ + ../../../../../temp/csp/gen_code/table_k.o \ + ../../../../../temp/csp/gen_code/table_l.o \ + ../../../../../temp/csp/gen_code/table_m.o \ + ../../../../../temp/csp/gen_code/table_n.o \ + ../../../../../temp/csp/gen_code/table_o.o \ + ../../../../../temp/csp/gen_code/table_p.o \ + ../../../../../temp/csp/gen_code/table_q.o \ + ../../../../../temp/csp/gen_code/table_r.o \ + ../../../../../temp/csp/gen_code/table_s.o \ + ../../../../../temp/csp/gen_code/table_t.o \ + ../../../../../temp/csp/gen_code/table_u.o \ + ../../../../../temp/csp/gen_code/table_v.o \ + ../../../../../temp/csp/gen_code/table_w.o \ + ../../../../../temp/csp/gen_code/table_x.o \ + ../../../../../temp/csp/gen_code/table_y.o \ + ../../../../../temp/csp/gen_code/table_z.o +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ../../../../../bin/gen_code +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .C .c + +.cpp.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cxx.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cc.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.C.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.c.o: + $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $< + +####### Build rules + + +all: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS) + +moc: $(SRCMOC) + +clean: + -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) + -rm -f *~ core + +####### Sub-libraries + + +###### Combined headers + + +####### Compile + +../../../../../temp/csp/gen_code/gen_code.o: ../../../../../src/tools/gen_code/gen_code.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/gen_code/gen_code.o ../../../../../src/tools/gen_code/gen_code.c + +../../../../../temp/csp/gen_code/ta_abstract.o: ../../../../../src/ta_abstract/ta_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/gen_code/ta_abstract.o ../../../../../src/ta_abstract/ta_abstract.c + +../../../../../temp/csp/gen_code/ta_def_ui.o: ../../../../../src/ta_abstract/ta_def_ui.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/gen_code/ta_def_ui.o ../../../../../src/ta_abstract/ta_def_ui.c + +../../../../../temp/csp/gen_code/table_a.o: ../../../../../src/ta_abstract/tables/table_a.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/gen_code/table_a.o ../../../../../src/ta_abstract/tables/table_a.c + +../../../../../temp/csp/gen_code/table_b.o: ../../../../../src/ta_abstract/tables/table_b.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/gen_code/table_b.o ../../../../../src/ta_abstract/tables/table_b.c + +../../../../../temp/csp/gen_code/table_c.o: ../../../../../src/ta_abstract/tables/table_c.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/gen_code/table_c.o ../../../../../src/ta_abstract/tables/table_c.c + +../../../../../temp/csp/gen_code/table_d.o: ../../../../../src/ta_abstract/tables/table_d.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/gen_code/table_d.o ../../../../../src/ta_abstract/tables/table_d.c + +../../../../../temp/csp/gen_code/table_e.o: ../../../../../src/ta_abstract/tables/table_e.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/gen_code/table_e.o ../../../../../src/ta_abstract/tables/table_e.c + +../../../../../temp/csp/gen_code/table_f.o: ../../../../../src/ta_abstract/tables/table_f.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/gen_code/table_f.o ../../../../../src/ta_abstract/tables/table_f.c + +../../../../../temp/csp/gen_code/table_g.o: ../../../../../src/ta_abstract/tables/table_g.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/gen_code/table_g.o ../../../../../src/ta_abstract/tables/table_g.c + +../../../../../temp/csp/gen_code/table_h.o: ../../../../../src/ta_abstract/tables/table_h.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/gen_code/table_h.o ../../../../../src/ta_abstract/tables/table_h.c + +../../../../../temp/csp/gen_code/table_i.o: ../../../../../src/ta_abstract/tables/table_i.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/gen_code/table_i.o ../../../../../src/ta_abstract/tables/table_i.c + +../../../../../temp/csp/gen_code/table_j.o: ../../../../../src/ta_abstract/tables/table_j.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/gen_code/table_j.o ../../../../../src/ta_abstract/tables/table_j.c + +../../../../../temp/csp/gen_code/table_k.o: ../../../../../src/ta_abstract/tables/table_k.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/gen_code/table_k.o ../../../../../src/ta_abstract/tables/table_k.c + +../../../../../temp/csp/gen_code/table_l.o: ../../../../../src/ta_abstract/tables/table_l.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/gen_code/table_l.o ../../../../../src/ta_abstract/tables/table_l.c + +../../../../../temp/csp/gen_code/table_m.o: ../../../../../src/ta_abstract/tables/table_m.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/gen_code/table_m.o ../../../../../src/ta_abstract/tables/table_m.c + +../../../../../temp/csp/gen_code/table_n.o: ../../../../../src/ta_abstract/tables/table_n.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/gen_code/table_n.o ../../../../../src/ta_abstract/tables/table_n.c + +../../../../../temp/csp/gen_code/table_o.o: ../../../../../src/ta_abstract/tables/table_o.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/gen_code/table_o.o ../../../../../src/ta_abstract/tables/table_o.c + +../../../../../temp/csp/gen_code/table_p.o: ../../../../../src/ta_abstract/tables/table_p.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/gen_code/table_p.o ../../../../../src/ta_abstract/tables/table_p.c + +../../../../../temp/csp/gen_code/table_q.o: ../../../../../src/ta_abstract/tables/table_q.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/gen_code/table_q.o ../../../../../src/ta_abstract/tables/table_q.c + +../../../../../temp/csp/gen_code/table_r.o: ../../../../../src/ta_abstract/tables/table_r.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/gen_code/table_r.o ../../../../../src/ta_abstract/tables/table_r.c + +../../../../../temp/csp/gen_code/table_s.o: ../../../../../src/ta_abstract/tables/table_s.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/gen_code/table_s.o ../../../../../src/ta_abstract/tables/table_s.c + +../../../../../temp/csp/gen_code/table_t.o: ../../../../../src/ta_abstract/tables/table_t.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/gen_code/table_t.o ../../../../../src/ta_abstract/tables/table_t.c + +../../../../../temp/csp/gen_code/table_u.o: ../../../../../src/ta_abstract/tables/table_u.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/gen_code/table_u.o ../../../../../src/ta_abstract/tables/table_u.c + +../../../../../temp/csp/gen_code/table_v.o: ../../../../../src/ta_abstract/tables/table_v.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/gen_code/table_v.o ../../../../../src/ta_abstract/tables/table_v.c + +../../../../../temp/csp/gen_code/table_w.o: ../../../../../src/ta_abstract/tables/table_w.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/gen_code/table_w.o ../../../../../src/ta_abstract/tables/table_w.c + +../../../../../temp/csp/gen_code/table_x.o: ../../../../../src/ta_abstract/tables/table_x.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/gen_code/table_x.o ../../../../../src/ta_abstract/tables/table_x.c + +../../../../../temp/csp/gen_code/table_y.o: ../../../../../src/ta_abstract/tables/table_y.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/gen_code/table_y.o ../../../../../src/ta_abstract/tables/table_y.c + +../../../../../temp/csp/gen_code/table_z.o: ../../../../../src/ta_abstract/tables/table_z.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/gen_code/table_z.o ../../../../../src/ta_abstract/tables/table_z.c + diff --git a/make/csp/freebsd/g++/ta_abstract/Makefile b/make/csp/freebsd/g++/ta_abstract/Makefile new file mode 100644 index 000000000..c695b83f6 --- /dev/null +++ b/make/csp/freebsd/g++/ta_abstract/Makefile @@ -0,0 +1,243 @@ +############################################################################# +# Makefile for building ../../../../../lib/libta_abstract_csp.a +# Generated by tmake; +# Project: ta_abstract/ta_abstract +# Template: lib +############################################################################# + +####### Compiler, tools and options + +CC = gcc +CXX = g++ +CFLAGS = -pipe -Wall -W -g -O -pg -DTA_DEBUG -D_DEBUG -DTA_SINGLE_THREAD +CXXFLAGS= -pipe -Wall -W -g -DTA_DEBUG -D_DEBUG -DTA_SINGLE_THREAD +INCPATH = -I../../../../../src/ta_common -I../../../../../src/ta_abstract -I../../../../../src/ta_abstract/tables -I../../../../../src/ta_abstract/frames -I../../../../../include -I/usr/local/include +AR = ar cqs +RANLIB = +MOC = $(QTDIR)/bin/moc +UIC = $(QTDIR)/bin/uic + +TAR = tar -cf +GZIP = gzip -9f + +####### Support for 64-bit systems +ifeq ($(shell uname -m), x86_64) + CFLAGS += -march=x86-64 -m64 -D__64BIT__ + CXXFLAGS += -march=x86-64 -m64 -D__64BIT__ +endif + +####### Apply additional overruling user flags, if any +CFLAGS += $(CUSERFLAGS) +CXXFLAGS += $(CUSERFLAGS) + +####### Files + +HEADERS = +SOURCES = ../../../../../src/ta_abstract/ta_abstract.c \ + ../../../../../src/ta_abstract/ta_def_ui.c \ + ../../../../../src/ta_abstract/ta_func_api.c \ + ../../../../../src/ta_abstract/ta_group_idx.c \ + ../../../../../src/ta_abstract/frames/ta_frame.c \ + ../../../../../src/ta_abstract/tables/table_a.c \ + ../../../../../src/ta_abstract/tables/table_b.c \ + ../../../../../src/ta_abstract/tables/table_c.c \ + ../../../../../src/ta_abstract/tables/table_d.c \ + ../../../../../src/ta_abstract/tables/table_e.c \ + ../../../../../src/ta_abstract/tables/table_f.c \ + ../../../../../src/ta_abstract/tables/table_g.c \ + ../../../../../src/ta_abstract/tables/table_h.c \ + ../../../../../src/ta_abstract/tables/table_i.c \ + ../../../../../src/ta_abstract/tables/table_j.c \ + ../../../../../src/ta_abstract/tables/table_k.c \ + ../../../../../src/ta_abstract/tables/table_l.c \ + ../../../../../src/ta_abstract/tables/table_m.c \ + ../../../../../src/ta_abstract/tables/table_n.c \ + ../../../../../src/ta_abstract/tables/table_o.c \ + ../../../../../src/ta_abstract/tables/table_p.c \ + ../../../../../src/ta_abstract/tables/table_q.c \ + ../../../../../src/ta_abstract/tables/table_r.c \ + ../../../../../src/ta_abstract/tables/table_s.c \ + ../../../../../src/ta_abstract/tables/table_t.c \ + ../../../../../src/ta_abstract/tables/table_u.c \ + ../../../../../src/ta_abstract/tables/table_v.c \ + ../../../../../src/ta_abstract/tables/table_w.c \ + ../../../../../src/ta_abstract/tables/table_x.c \ + ../../../../../src/ta_abstract/tables/table_y.c \ + ../../../../../src/ta_abstract/tables/table_z.c +OBJECTS = ../../../../../temp/csp/ta_abstract.o \ + ../../../../../temp/csp/ta_def_ui.o \ + ../../../../../temp/csp/ta_func_api.o \ + ../../../../../temp/csp/ta_group_idx.o \ + ../../../../../temp/csp/ta_frame.o \ + ../../../../../temp/csp/table_a.o \ + ../../../../../temp/csp/table_b.o \ + ../../../../../temp/csp/table_c.o \ + ../../../../../temp/csp/table_d.o \ + ../../../../../temp/csp/table_e.o \ + ../../../../../temp/csp/table_f.o \ + ../../../../../temp/csp/table_g.o \ + ../../../../../temp/csp/table_h.o \ + ../../../../../temp/csp/table_i.o \ + ../../../../../temp/csp/table_j.o \ + ../../../../../temp/csp/table_k.o \ + ../../../../../temp/csp/table_l.o \ + ../../../../../temp/csp/table_m.o \ + ../../../../../temp/csp/table_n.o \ + ../../../../../temp/csp/table_o.o \ + ../../../../../temp/csp/table_p.o \ + ../../../../../temp/csp/table_q.o \ + ../../../../../temp/csp/table_r.o \ + ../../../../../temp/csp/table_s.o \ + ../../../../../temp/csp/table_t.o \ + ../../../../../temp/csp/table_u.o \ + ../../../../../temp/csp/table_v.o \ + ../../../../../temp/csp/table_w.o \ + ../../../../../temp/csp/table_x.o \ + ../../../../../temp/csp/table_y.o \ + ../../../../../temp/csp/table_z.o +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ../../../../../lib/libta_abstract_csp.a +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .C .c + +.cpp.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cxx.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cc.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.C.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.c.o: + $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $< + +####### Build rules + + +all: $(TARGET) + +staticlib: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + -rm -f $(TARGET) + $(AR) $(TARGET) $(OBJECTS) $(OBJMOC) + +moc: $(SRCMOC) + +clean: + -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) + -rm -f *~ core + +####### Sub-libraries + + +###### Combined headers + + +####### Compile + +../../../../../temp/csp/ta_abstract.o: ../../../../../src/ta_abstract/ta_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_abstract.o ../../../../../src/ta_abstract/ta_abstract.c + +../../../../../temp/csp/ta_def_ui.o: ../../../../../src/ta_abstract/ta_def_ui.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_def_ui.o ../../../../../src/ta_abstract/ta_def_ui.c + +../../../../../temp/csp/ta_func_api.o: ../../../../../src/ta_abstract/ta_func_api.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_func_api.o ../../../../../src/ta_abstract/ta_func_api.c + +../../../../../temp/csp/ta_group_idx.o: ../../../../../src/ta_abstract/ta_group_idx.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_group_idx.o ../../../../../src/ta_abstract/ta_group_idx.c + +../../../../../temp/csp/ta_frame.o: ../../../../../src/ta_abstract/frames/ta_frame.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_frame.o ../../../../../src/ta_abstract/frames/ta_frame.c + +../../../../../temp/csp/table_a.o: ../../../../../src/ta_abstract/tables/table_a.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_a.o ../../../../../src/ta_abstract/tables/table_a.c + +../../../../../temp/csp/table_b.o: ../../../../../src/ta_abstract/tables/table_b.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_b.o ../../../../../src/ta_abstract/tables/table_b.c + +../../../../../temp/csp/table_c.o: ../../../../../src/ta_abstract/tables/table_c.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_c.o ../../../../../src/ta_abstract/tables/table_c.c + +../../../../../temp/csp/table_d.o: ../../../../../src/ta_abstract/tables/table_d.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_d.o ../../../../../src/ta_abstract/tables/table_d.c + +../../../../../temp/csp/table_e.o: ../../../../../src/ta_abstract/tables/table_e.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_e.o ../../../../../src/ta_abstract/tables/table_e.c + +../../../../../temp/csp/table_f.o: ../../../../../src/ta_abstract/tables/table_f.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_f.o ../../../../../src/ta_abstract/tables/table_f.c + +../../../../../temp/csp/table_g.o: ../../../../../src/ta_abstract/tables/table_g.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_g.o ../../../../../src/ta_abstract/tables/table_g.c + +../../../../../temp/csp/table_h.o: ../../../../../src/ta_abstract/tables/table_h.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_h.o ../../../../../src/ta_abstract/tables/table_h.c + +../../../../../temp/csp/table_i.o: ../../../../../src/ta_abstract/tables/table_i.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_i.o ../../../../../src/ta_abstract/tables/table_i.c + +../../../../../temp/csp/table_j.o: ../../../../../src/ta_abstract/tables/table_j.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_j.o ../../../../../src/ta_abstract/tables/table_j.c + +../../../../../temp/csp/table_k.o: ../../../../../src/ta_abstract/tables/table_k.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_k.o ../../../../../src/ta_abstract/tables/table_k.c + +../../../../../temp/csp/table_l.o: ../../../../../src/ta_abstract/tables/table_l.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_l.o ../../../../../src/ta_abstract/tables/table_l.c + +../../../../../temp/csp/table_m.o: ../../../../../src/ta_abstract/tables/table_m.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_m.o ../../../../../src/ta_abstract/tables/table_m.c + +../../../../../temp/csp/table_n.o: ../../../../../src/ta_abstract/tables/table_n.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_n.o ../../../../../src/ta_abstract/tables/table_n.c + +../../../../../temp/csp/table_o.o: ../../../../../src/ta_abstract/tables/table_o.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_o.o ../../../../../src/ta_abstract/tables/table_o.c + +../../../../../temp/csp/table_p.o: ../../../../../src/ta_abstract/tables/table_p.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_p.o ../../../../../src/ta_abstract/tables/table_p.c + +../../../../../temp/csp/table_q.o: ../../../../../src/ta_abstract/tables/table_q.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_q.o ../../../../../src/ta_abstract/tables/table_q.c + +../../../../../temp/csp/table_r.o: ../../../../../src/ta_abstract/tables/table_r.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_r.o ../../../../../src/ta_abstract/tables/table_r.c + +../../../../../temp/csp/table_s.o: ../../../../../src/ta_abstract/tables/table_s.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_s.o ../../../../../src/ta_abstract/tables/table_s.c + +../../../../../temp/csp/table_t.o: ../../../../../src/ta_abstract/tables/table_t.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_t.o ../../../../../src/ta_abstract/tables/table_t.c + +../../../../../temp/csp/table_u.o: ../../../../../src/ta_abstract/tables/table_u.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_u.o ../../../../../src/ta_abstract/tables/table_u.c + +../../../../../temp/csp/table_v.o: ../../../../../src/ta_abstract/tables/table_v.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_v.o ../../../../../src/ta_abstract/tables/table_v.c + +../../../../../temp/csp/table_w.o: ../../../../../src/ta_abstract/tables/table_w.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_w.o ../../../../../src/ta_abstract/tables/table_w.c + +../../../../../temp/csp/table_x.o: ../../../../../src/ta_abstract/tables/table_x.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_x.o ../../../../../src/ta_abstract/tables/table_x.c + +../../../../../temp/csp/table_y.o: ../../../../../src/ta_abstract/tables/table_y.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_y.o ../../../../../src/ta_abstract/tables/table_y.c + +../../../../../temp/csp/table_z.o: ../../../../../src/ta_abstract/tables/table_z.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_z.o ../../../../../src/ta_abstract/tables/table_z.c + diff --git a/make/csp/freebsd/g++/ta_common/Makefile b/make/csp/freebsd/g++/ta_common/Makefile new file mode 100644 index 000000000..93e198962 --- /dev/null +++ b/make/csp/freebsd/g++/ta_common/Makefile @@ -0,0 +1,103 @@ +############################################################################# +# Makefile for building ../../../../../lib/libta_common_csp.a +# Generated by tmake; +# Project: ta_common/ta_common +# Template: lib +############################################################################# + +####### Compiler, tools and options + +CC = gcc +CXX = g++ +CFLAGS = -pipe -Wall -W -g -O -pg -DTA_DEBUG -D_DEBUG -DTA_SINGLE_THREAD +CXXFLAGS= -pipe -Wall -W -g -DTA_DEBUG -D_DEBUG -DTA_SINGLE_THREAD +INCPATH = -I../../../../../src/ta_common -I../../../../../include -I/usr/local/include +AR = ar cqs +RANLIB = +MOC = $(QTDIR)/bin/moc +UIC = $(QTDIR)/bin/uic + +TAR = tar -cf +GZIP = gzip -9f + +####### Support for 64-bit systems +ifeq ($(shell uname -m), x86_64) + CFLAGS += -march=x86-64 -m64 -D__64BIT__ + CXXFLAGS += -march=x86-64 -m64 -D__64BIT__ +endif + +####### Apply additional overruling user flags, if any +CFLAGS += $(CUSERFLAGS) +CXXFLAGS += $(CUSERFLAGS) + +####### Files + +HEADERS = +SOURCES = ../../../../../src/ta_common/ta_global.c \ + ../../../../../src/ta_common/ta_retcode.c \ + ../../../../../src/ta_common/ta_version.c +OBJECTS = ../../../../../temp/csp/ta_global.o \ + ../../../../../temp/csp/ta_retcode.o \ + ../../../../../temp/csp/ta_version.o +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ../../../../../lib/libta_common_csp.a +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .C .c + +.cpp.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cxx.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cc.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.C.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.c.o: + $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $< + +####### Build rules + + +all: $(TARGET) + +staticlib: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + -rm -f $(TARGET) + $(AR) $(TARGET) $(OBJECTS) $(OBJMOC) + +moc: $(SRCMOC) + +clean: + -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) + -rm -f *~ core + +####### Sub-libraries + + +###### Combined headers + + +####### Compile + +../../../../../temp/csp/ta_global.o: ../../../../../src/ta_common/ta_global.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_global.o ../../../../../src/ta_common/ta_global.c + +../../../../../temp/csp/ta_retcode.o: ../../../../../src/ta_common/ta_retcode.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_retcode.o ../../../../../src/ta_common/ta_retcode.c + +../../../../../temp/csp/ta_version.o: ../../../../../src/ta_common/ta_version.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_version.o ../../../../../src/ta_common/ta_version.c + diff --git a/make/csp/freebsd/g++/ta_func/Makefile b/make/csp/freebsd/g++/ta_func/Makefile new file mode 100644 index 000000000..342fd4bab --- /dev/null +++ b/make/csp/freebsd/g++/ta_func/Makefile @@ -0,0 +1,883 @@ +############################################################################# +# Makefile for building ../../../../../lib/libta_func_csp.a +# Generated by tmake; +# Project: ta_func/ta_func +# Template: lib +############################################################################# + +####### Compiler, tools and options + +CC = gcc +CXX = g++ +CFLAGS = -pipe -Wall -W -g -O -pg -DTA_DEBUG -D_DEBUG -DTA_SINGLE_THREAD +CXXFLAGS= -pipe -Wall -W -g -DTA_DEBUG -D_DEBUG -DTA_SINGLE_THREAD +INCPATH = -I../../../../../src/ta_common -I/n -I../../../../../include -I/usr/local/include +AR = ar cqs +RANLIB = +MOC = $(QTDIR)/bin/moc +UIC = $(QTDIR)/bin/uic + +TAR = tar -cf +GZIP = gzip -9f + +####### Support for 64-bit systems +ifeq ($(shell uname -m), x86_64) + CFLAGS += -march=x86-64 -m64 -D__64BIT__ + CXXFLAGS += -march=x86-64 -m64 -D__64BIT__ +endif + +####### Apply additional overruling user flags, if any +CFLAGS += $(CUSERFLAGS) +CXXFLAGS += $(CUSERFLAGS) + +####### Files + +HEADERS = +SOURCES = ../../../../../src/ta_func/ta_utility.c \ + ../../../../../src/ta_func/ta_ACOS.c \ + ../../../../../src/ta_func/ta_AD.c \ + ../../../../../src/ta_func/ta_ADD.c \ + ../../../../../src/ta_func/ta_ADOSC.c \ + ../../../../../src/ta_func/ta_ADX.c \ + ../../../../../src/ta_func/ta_ADXR.c \ + ../../../../../src/ta_func/ta_APO.c \ + ../../../../../src/ta_func/ta_AROON.c \ + ../../../../../src/ta_func/ta_AROONOSC.c \ + ../../../../../src/ta_func/ta_ASIN.c \ + ../../../../../src/ta_func/ta_ATAN.c \ + ../../../../../src/ta_func/ta_ATR.c \ + ../../../../../src/ta_func/ta_AVGPRICE.c \ + ../../../../../src/ta_func/ta_BBANDS.c \ + ../../../../../src/ta_func/ta_BETA.c \ + ../../../../../src/ta_func/ta_BOP.c \ + ../../../../../src/ta_func/ta_CCI.c \ + ../../../../../src/ta_func/ta_CDL2CROWS.c \ + ../../../../../src/ta_func/ta_CDL3BLACKCROWS.c \ + ../../../../../src/ta_func/ta_CDL3INSIDE.c \ + ../../../../../src/ta_func/ta_CDL3LINESTRIKE.c \ + ../../../../../src/ta_func/ta_CDL3OUTSIDE.c \ + ../../../../../src/ta_func/ta_CDL3STARSINSOUTH.c \ + ../../../../../src/ta_func/ta_CDL3WHITESOLDIERS.c \ + ../../../../../src/ta_func/ta_CDLABANDONEDBABY.c \ + ../../../../../src/ta_func/ta_CDLADVANCEBLOCK.c \ + ../../../../../src/ta_func/ta_CDLBELTHOLD.c \ + ../../../../../src/ta_func/ta_CDLBREAKAWAY.c \ + ../../../../../src/ta_func/ta_CDLCLOSINGMARUBOZU.c \ + ../../../../../src/ta_func/ta_CDLCONCEALBABYSWALL.c \ + ../../../../../src/ta_func/ta_CDLCOUNTERATTACK.c \ + ../../../../../src/ta_func/ta_CDLDARKCLOUDCOVER.c \ + ../../../../../src/ta_func/ta_CDLDOJI.c \ + ../../../../../src/ta_func/ta_CDLDOJISTAR.c \ + ../../../../../src/ta_func/ta_CDLDRAGONFLYDOJI.c \ + ../../../../../src/ta_func/ta_CDLENGULFING.c \ + ../../../../../src/ta_func/ta_CDLEVENINGDOJISTAR.c \ + ../../../../../src/ta_func/ta_CDLEVENINGSTAR.c \ + ../../../../../src/ta_func/ta_CDLGAPSIDESIDEWHITE.c \ + ../../../../../src/ta_func/ta_CDLGRAVESTONEDOJI.c \ + ../../../../../src/ta_func/ta_CDLHAMMER.c \ + ../../../../../src/ta_func/ta_CDLHANGINGMAN.c \ + ../../../../../src/ta_func/ta_CDLHARAMI.c \ + ../../../../../src/ta_func/ta_CDLHARAMICROSS.c \ + ../../../../../src/ta_func/ta_CDLHIGHWAVE.c \ + ../../../../../src/ta_func/ta_CDLHIKKAKE.c \ + ../../../../../src/ta_func/ta_CDLHIKKAKEMOD.c \ + ../../../../../src/ta_func/ta_CDLHOMINGPIGEON.c \ + ../../../../../src/ta_func/ta_CDLIDENTICAL3CROWS.c \ + ../../../../../src/ta_func/ta_CDLINNECK.c \ + ../../../../../src/ta_func/ta_CDLINVERTEDHAMMER.c \ + ../../../../../src/ta_func/ta_CDLKICKING.c \ + ../../../../../src/ta_func/ta_CDLKICKINGBYLENGTH.c \ + ../../../../../src/ta_func/ta_CDLLADDERBOTTOM.c \ + ../../../../../src/ta_func/ta_CDLLONGLEGGEDDOJI.c \ + ../../../../../src/ta_func/ta_CDLLONGLINE.c \ + ../../../../../src/ta_func/ta_CDLMARUBOZU.c \ + ../../../../../src/ta_func/ta_CDLMATCHINGLOW.c \ + ../../../../../src/ta_func/ta_CDLMATHOLD.c \ + ../../../../../src/ta_func/ta_CDLMORNINGDOJISTAR.c \ + ../../../../../src/ta_func/ta_CDLMORNINGSTAR.c \ + ../../../../../src/ta_func/ta_CDLONNECK.c \ + ../../../../../src/ta_func/ta_CDLPIERCING.c \ + ../../../../../src/ta_func/ta_CDLRICKSHAWMAN.c \ + ../../../../../src/ta_func/ta_CDLRISEFALL3METHODS.c \ + ../../../../../src/ta_func/ta_CDLSEPARATINGLINES.c \ + ../../../../../src/ta_func/ta_CDLSHOOTINGSTAR.c \ + ../../../../../src/ta_func/ta_CDLSHORTLINE.c \ + ../../../../../src/ta_func/ta_CDLSPINNINGTOP.c \ + ../../../../../src/ta_func/ta_CDLSTALLEDPATTERN.c \ + ../../../../../src/ta_func/ta_CDLSTICKSANDWICH.c \ + ../../../../../src/ta_func/ta_CDLTAKURI.c \ + ../../../../../src/ta_func/ta_CDLTASUKIGAP.c \ + ../../../../../src/ta_func/ta_CDLTHRUSTING.c \ + ../../../../../src/ta_func/ta_CDLTRISTAR.c \ + ../../../../../src/ta_func/ta_CDLUNIQUE3RIVER.c \ + ../../../../../src/ta_func/ta_CDLUPSIDEGAP2CROWS.c \ + ../../../../../src/ta_func/ta_CDLXSIDEGAP3METHODS.c \ + ../../../../../src/ta_func/ta_CEIL.c \ + ../../../../../src/ta_func/ta_CMO.c \ + ../../../../../src/ta_func/ta_CORREL.c \ + ../../../../../src/ta_func/ta_COS.c \ + ../../../../../src/ta_func/ta_COSH.c \ + ../../../../../src/ta_func/ta_DEMA.c \ + ../../../../../src/ta_func/ta_DIV.c \ + ../../../../../src/ta_func/ta_DX.c \ + ../../../../../src/ta_func/ta_EMA.c \ + ../../../../../src/ta_func/ta_EXP.c \ + ../../../../../src/ta_func/ta_FLOOR.c \ + ../../../../../src/ta_func/ta_HT_DCPERIOD.c \ + ../../../../../src/ta_func/ta_HT_DCPHASE.c \ + ../../../../../src/ta_func/ta_HT_PHASOR.c \ + ../../../../../src/ta_func/ta_HT_SINE.c \ + ../../../../../src/ta_func/ta_HT_TRENDLINE.c \ + ../../../../../src/ta_func/ta_HT_TRENDMODE.c \ + ../../../../../src/ta_func/ta_KAMA.c \ + ../../../../../src/ta_func/ta_LINEARREG.c \ + ../../../../../src/ta_func/ta_LINEARREG_ANGLE.c \ + ../../../../../src/ta_func/ta_LINEARREG_INTERCEPT.c \ + ../../../../../src/ta_func/ta_LINEARREG_SLOPE.c \ + ../../../../../src/ta_func/ta_LN.c \ + ../../../../../src/ta_func/ta_LOG10.c \ + ../../../../../src/ta_func/ta_MA.c \ + ../../../../../src/ta_func/ta_MACD.c \ + ../../../../../src/ta_func/ta_MACDEXT.c \ + ../../../../../src/ta_func/ta_MACDFIX.c \ + ../../../../../src/ta_func/ta_MAMA.c \ + ../../../../../src/ta_func/ta_MAVP.c \ + ../../../../../src/ta_func/ta_MAX.c \ + ../../../../../src/ta_func/ta_MAXINDEX.c \ + ../../../../../src/ta_func/ta_MEDPRICE.c \ + ../../../../../src/ta_func/ta_MFI.c \ + ../../../../../src/ta_func/ta_MIDPOINT.c \ + ../../../../../src/ta_func/ta_MIDPRICE.c \ + ../../../../../src/ta_func/ta_MIN.c \ + ../../../../../src/ta_func/ta_MININDEX.c \ + ../../../../../src/ta_func/ta_MINMAX.c \ + ../../../../../src/ta_func/ta_MINMAXINDEX.c \ + ../../../../../src/ta_func/ta_MINUS_DI.c \ + ../../../../../src/ta_func/ta_MINUS_DM.c \ + ../../../../../src/ta_func/ta_MOM.c \ + ../../../../../src/ta_func/ta_MULT.c \ + ../../../../../src/ta_func/ta_NATR.c \ + ../../../../../src/ta_func/ta_OBV.c \ + ../../../../../src/ta_func/ta_PLUS_DI.c \ + ../../../../../src/ta_func/ta_PLUS_DM.c \ + ../../../../../src/ta_func/ta_PPO.c \ + ../../../../../src/ta_func/ta_ROC.c \ + ../../../../../src/ta_func/ta_ROCP.c \ + ../../../../../src/ta_func/ta_ROCR.c \ + ../../../../../src/ta_func/ta_ROCR100.c \ + ../../../../../src/ta_func/ta_RSI.c \ + ../../../../../src/ta_func/ta_SAR.c \ + ../../../../../src/ta_func/ta_SAREXT.c \ + ../../../../../src/ta_func/ta_SIN.c \ + ../../../../../src/ta_func/ta_SINH.c \ + ../../../../../src/ta_func/ta_SMA.c \ + ../../../../../src/ta_func/ta_SQRT.c \ + ../../../../../src/ta_func/ta_STDDEV.c \ + ../../../../../src/ta_func/ta_STOCH.c \ + ../../../../../src/ta_func/ta_STOCHF.c \ + ../../../../../src/ta_func/ta_STOCHRSI.c \ + ../../../../../src/ta_func/ta_SUB.c \ + ../../../../../src/ta_func/ta_SUM.c \ + ../../../../../src/ta_func/ta_T3.c \ + ../../../../../src/ta_func/ta_TAN.c \ + ../../../../../src/ta_func/ta_TANH.c \ + ../../../../../src/ta_func/ta_TEMA.c \ + ../../../../../src/ta_func/ta_TRANGE.c \ + ../../../../../src/ta_func/ta_TRIMA.c \ + ../../../../../src/ta_func/ta_TRIX.c \ + ../../../../../src/ta_func/ta_TSF.c \ + ../../../../../src/ta_func/ta_TYPPRICE.c \ + ../../../../../src/ta_func/ta_ULTOSC.c \ + ../../../../../src/ta_func/ta_VAR.c \ + ../../../../../src/ta_func/ta_WCLPRICE.c \ + ../../../../../src/ta_func/ta_WILLR.c \ + ../../../../../src/ta_func/ta_WMA.c +OBJECTS = ../../../../../temp/csp/ta_utility.o \ + ../../../../../temp/csp/ta_ACOS.o \ + ../../../../../temp/csp/ta_AD.o \ + ../../../../../temp/csp/ta_ADD.o \ + ../../../../../temp/csp/ta_ADOSC.o \ + ../../../../../temp/csp/ta_ADX.o \ + ../../../../../temp/csp/ta_ADXR.o \ + ../../../../../temp/csp/ta_APO.o \ + ../../../../../temp/csp/ta_AROON.o \ + ../../../../../temp/csp/ta_AROONOSC.o \ + ../../../../../temp/csp/ta_ASIN.o \ + ../../../../../temp/csp/ta_ATAN.o \ + ../../../../../temp/csp/ta_ATR.o \ + ../../../../../temp/csp/ta_AVGPRICE.o \ + ../../../../../temp/csp/ta_BBANDS.o \ + ../../../../../temp/csp/ta_BETA.o \ + ../../../../../temp/csp/ta_BOP.o \ + ../../../../../temp/csp/ta_CCI.o \ + ../../../../../temp/csp/ta_CDL2CROWS.o \ + ../../../../../temp/csp/ta_CDL3BLACKCROWS.o \ + ../../../../../temp/csp/ta_CDL3INSIDE.o \ + ../../../../../temp/csp/ta_CDL3LINESTRIKE.o \ + ../../../../../temp/csp/ta_CDL3OUTSIDE.o \ + ../../../../../temp/csp/ta_CDL3STARSINSOUTH.o \ + ../../../../../temp/csp/ta_CDL3WHITESOLDIERS.o \ + ../../../../../temp/csp/ta_CDLABANDONEDBABY.o \ + ../../../../../temp/csp/ta_CDLADVANCEBLOCK.o \ + ../../../../../temp/csp/ta_CDLBELTHOLD.o \ + ../../../../../temp/csp/ta_CDLBREAKAWAY.o \ + ../../../../../temp/csp/ta_CDLCLOSINGMARUBOZU.o \ + ../../../../../temp/csp/ta_CDLCONCEALBABYSWALL.o \ + ../../../../../temp/csp/ta_CDLCOUNTERATTACK.o \ + ../../../../../temp/csp/ta_CDLDARKCLOUDCOVER.o \ + ../../../../../temp/csp/ta_CDLDOJI.o \ + ../../../../../temp/csp/ta_CDLDOJISTAR.o \ + ../../../../../temp/csp/ta_CDLDRAGONFLYDOJI.o \ + ../../../../../temp/csp/ta_CDLENGULFING.o \ + ../../../../../temp/csp/ta_CDLEVENINGDOJISTAR.o \ + ../../../../../temp/csp/ta_CDLEVENINGSTAR.o \ + ../../../../../temp/csp/ta_CDLGAPSIDESIDEWHITE.o \ + ../../../../../temp/csp/ta_CDLGRAVESTONEDOJI.o \ + ../../../../../temp/csp/ta_CDLHAMMER.o \ + ../../../../../temp/csp/ta_CDLHANGINGMAN.o \ + ../../../../../temp/csp/ta_CDLHARAMI.o \ + ../../../../../temp/csp/ta_CDLHARAMICROSS.o \ + ../../../../../temp/csp/ta_CDLHIGHWAVE.o \ + ../../../../../temp/csp/ta_CDLHIKKAKE.o \ + ../../../../../temp/csp/ta_CDLHIKKAKEMOD.o \ + ../../../../../temp/csp/ta_CDLHOMINGPIGEON.o \ + ../../../../../temp/csp/ta_CDLIDENTICAL3CROWS.o \ + ../../../../../temp/csp/ta_CDLINNECK.o \ + ../../../../../temp/csp/ta_CDLINVERTEDHAMMER.o \ + ../../../../../temp/csp/ta_CDLKICKING.o \ + ../../../../../temp/csp/ta_CDLKICKINGBYLENGTH.o \ + ../../../../../temp/csp/ta_CDLLADDERBOTTOM.o \ + ../../../../../temp/csp/ta_CDLLONGLEGGEDDOJI.o \ + ../../../../../temp/csp/ta_CDLLONGLINE.o \ + ../../../../../temp/csp/ta_CDLMARUBOZU.o \ + ../../../../../temp/csp/ta_CDLMATCHINGLOW.o \ + ../../../../../temp/csp/ta_CDLMATHOLD.o \ + ../../../../../temp/csp/ta_CDLMORNINGDOJISTAR.o \ + ../../../../../temp/csp/ta_CDLMORNINGSTAR.o \ + ../../../../../temp/csp/ta_CDLONNECK.o \ + ../../../../../temp/csp/ta_CDLPIERCING.o \ + ../../../../../temp/csp/ta_CDLRICKSHAWMAN.o \ + ../../../../../temp/csp/ta_CDLRISEFALL3METHODS.o \ + ../../../../../temp/csp/ta_CDLSEPARATINGLINES.o \ + ../../../../../temp/csp/ta_CDLSHOOTINGSTAR.o \ + ../../../../../temp/csp/ta_CDLSHORTLINE.o \ + ../../../../../temp/csp/ta_CDLSPINNINGTOP.o \ + ../../../../../temp/csp/ta_CDLSTALLEDPATTERN.o \ + ../../../../../temp/csp/ta_CDLSTICKSANDWICH.o \ + ../../../../../temp/csp/ta_CDLTAKURI.o \ + ../../../../../temp/csp/ta_CDLTASUKIGAP.o \ + ../../../../../temp/csp/ta_CDLTHRUSTING.o \ + ../../../../../temp/csp/ta_CDLTRISTAR.o \ + ../../../../../temp/csp/ta_CDLUNIQUE3RIVER.o \ + ../../../../../temp/csp/ta_CDLUPSIDEGAP2CROWS.o \ + ../../../../../temp/csp/ta_CDLXSIDEGAP3METHODS.o \ + ../../../../../temp/csp/ta_CEIL.o \ + ../../../../../temp/csp/ta_CMO.o \ + ../../../../../temp/csp/ta_CORREL.o \ + ../../../../../temp/csp/ta_COS.o \ + ../../../../../temp/csp/ta_COSH.o \ + ../../../../../temp/csp/ta_DEMA.o \ + ../../../../../temp/csp/ta_DIV.o \ + ../../../../../temp/csp/ta_DX.o \ + ../../../../../temp/csp/ta_EMA.o \ + ../../../../../temp/csp/ta_EXP.o \ + ../../../../../temp/csp/ta_FLOOR.o \ + ../../../../../temp/csp/ta_HT_DCPERIOD.o \ + ../../../../../temp/csp/ta_HT_DCPHASE.o \ + ../../../../../temp/csp/ta_HT_PHASOR.o \ + ../../../../../temp/csp/ta_HT_SINE.o \ + ../../../../../temp/csp/ta_HT_TRENDLINE.o \ + ../../../../../temp/csp/ta_HT_TRENDMODE.o \ + ../../../../../temp/csp/ta_KAMA.o \ + ../../../../../temp/csp/ta_LINEARREG.o \ + ../../../../../temp/csp/ta_LINEARREG_ANGLE.o \ + ../../../../../temp/csp/ta_LINEARREG_INTERCEPT.o \ + ../../../../../temp/csp/ta_LINEARREG_SLOPE.o \ + ../../../../../temp/csp/ta_LN.o \ + ../../../../../temp/csp/ta_LOG10.o \ + ../../../../../temp/csp/ta_MA.o \ + ../../../../../temp/csp/ta_MACD.o \ + ../../../../../temp/csp/ta_MACDEXT.o \ + ../../../../../temp/csp/ta_MACDFIX.o \ + ../../../../../temp/csp/ta_MAMA.o \ + ../../../../../temp/csp/ta_MAVP.o \ + ../../../../../temp/csp/ta_MAX.o \ + ../../../../../temp/csp/ta_MAXINDEX.o \ + ../../../../../temp/csp/ta_MEDPRICE.o \ + ../../../../../temp/csp/ta_MFI.o \ + ../../../../../temp/csp/ta_MIDPOINT.o \ + ../../../../../temp/csp/ta_MIDPRICE.o \ + ../../../../../temp/csp/ta_MIN.o \ + ../../../../../temp/csp/ta_MININDEX.o \ + ../../../../../temp/csp/ta_MINMAX.o \ + ../../../../../temp/csp/ta_MINMAXINDEX.o \ + ../../../../../temp/csp/ta_MINUS_DI.o \ + ../../../../../temp/csp/ta_MINUS_DM.o \ + ../../../../../temp/csp/ta_MOM.o \ + ../../../../../temp/csp/ta_MULT.o \ + ../../../../../temp/csp/ta_NATR.o \ + ../../../../../temp/csp/ta_OBV.o \ + ../../../../../temp/csp/ta_PLUS_DI.o \ + ../../../../../temp/csp/ta_PLUS_DM.o \ + ../../../../../temp/csp/ta_PPO.o \ + ../../../../../temp/csp/ta_ROC.o \ + ../../../../../temp/csp/ta_ROCP.o \ + ../../../../../temp/csp/ta_ROCR.o \ + ../../../../../temp/csp/ta_ROCR100.o \ + ../../../../../temp/csp/ta_RSI.o \ + ../../../../../temp/csp/ta_SAR.o \ + ../../../../../temp/csp/ta_SAREXT.o \ + ../../../../../temp/csp/ta_SIN.o \ + ../../../../../temp/csp/ta_SINH.o \ + ../../../../../temp/csp/ta_SMA.o \ + ../../../../../temp/csp/ta_SQRT.o \ + ../../../../../temp/csp/ta_STDDEV.o \ + ../../../../../temp/csp/ta_STOCH.o \ + ../../../../../temp/csp/ta_STOCHF.o \ + ../../../../../temp/csp/ta_STOCHRSI.o \ + ../../../../../temp/csp/ta_SUB.o \ + ../../../../../temp/csp/ta_SUM.o \ + ../../../../../temp/csp/ta_T3.o \ + ../../../../../temp/csp/ta_TAN.o \ + ../../../../../temp/csp/ta_TANH.o \ + ../../../../../temp/csp/ta_TEMA.o \ + ../../../../../temp/csp/ta_TRANGE.o \ + ../../../../../temp/csp/ta_TRIMA.o \ + ../../../../../temp/csp/ta_TRIX.o \ + ../../../../../temp/csp/ta_TSF.o \ + ../../../../../temp/csp/ta_TYPPRICE.o \ + ../../../../../temp/csp/ta_ULTOSC.o \ + ../../../../../temp/csp/ta_VAR.o \ + ../../../../../temp/csp/ta_WCLPRICE.o \ + ../../../../../temp/csp/ta_WILLR.o \ + ../../../../../temp/csp/ta_WMA.o +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ../../../../../lib/libta_func_csp.a +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .C .c + +.cpp.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cxx.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cc.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.C.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.c.o: + $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $< + +####### Build rules + + +all: $(TARGET) + +staticlib: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + -rm -f $(TARGET) + $(AR) $(TARGET) $(OBJECTS) $(OBJMOC) + +moc: $(SRCMOC) + +clean: + -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) + -rm -f *~ core + +####### Sub-libraries + + +###### Combined headers + + +####### Compile + +../../../../../temp/csp/ta_utility.o: ../../../../../src/ta_func/ta_utility.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_utility.o ../../../../../src/ta_func/ta_utility.c + +../../../../../temp/csp/ta_ACOS.o: ../../../../../src/ta_func/ta_ACOS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_ACOS.o ../../../../../src/ta_func/ta_ACOS.c + +../../../../../temp/csp/ta_AD.o: ../../../../../src/ta_func/ta_AD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_AD.o ../../../../../src/ta_func/ta_AD.c + +../../../../../temp/csp/ta_ADD.o: ../../../../../src/ta_func/ta_ADD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_ADD.o ../../../../../src/ta_func/ta_ADD.c + +../../../../../temp/csp/ta_ADOSC.o: ../../../../../src/ta_func/ta_ADOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_ADOSC.o ../../../../../src/ta_func/ta_ADOSC.c + +../../../../../temp/csp/ta_ADX.o: ../../../../../src/ta_func/ta_ADX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_ADX.o ../../../../../src/ta_func/ta_ADX.c + +../../../../../temp/csp/ta_ADXR.o: ../../../../../src/ta_func/ta_ADXR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_ADXR.o ../../../../../src/ta_func/ta_ADXR.c + +../../../../../temp/csp/ta_APO.o: ../../../../../src/ta_func/ta_APO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_APO.o ../../../../../src/ta_func/ta_APO.c + +../../../../../temp/csp/ta_AROON.o: ../../../../../src/ta_func/ta_AROON.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_AROON.o ../../../../../src/ta_func/ta_AROON.c + +../../../../../temp/csp/ta_AROONOSC.o: ../../../../../src/ta_func/ta_AROONOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_AROONOSC.o ../../../../../src/ta_func/ta_AROONOSC.c + +../../../../../temp/csp/ta_ASIN.o: ../../../../../src/ta_func/ta_ASIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_ASIN.o ../../../../../src/ta_func/ta_ASIN.c + +../../../../../temp/csp/ta_ATAN.o: ../../../../../src/ta_func/ta_ATAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_ATAN.o ../../../../../src/ta_func/ta_ATAN.c + +../../../../../temp/csp/ta_ATR.o: ../../../../../src/ta_func/ta_ATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_ATR.o ../../../../../src/ta_func/ta_ATR.c + +../../../../../temp/csp/ta_AVGPRICE.o: ../../../../../src/ta_func/ta_AVGPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_AVGPRICE.o ../../../../../src/ta_func/ta_AVGPRICE.c + +../../../../../temp/csp/ta_BBANDS.o: ../../../../../src/ta_func/ta_BBANDS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_BBANDS.o ../../../../../src/ta_func/ta_BBANDS.c + +../../../../../temp/csp/ta_BETA.o: ../../../../../src/ta_func/ta_BETA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_BETA.o ../../../../../src/ta_func/ta_BETA.c + +../../../../../temp/csp/ta_BOP.o: ../../../../../src/ta_func/ta_BOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_BOP.o ../../../../../src/ta_func/ta_BOP.c + +../../../../../temp/csp/ta_CCI.o: ../../../../../src/ta_func/ta_CCI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CCI.o ../../../../../src/ta_func/ta_CCI.c + +../../../../../temp/csp/ta_CDL2CROWS.o: ../../../../../src/ta_func/ta_CDL2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDL2CROWS.o ../../../../../src/ta_func/ta_CDL2CROWS.c + +../../../../../temp/csp/ta_CDL3BLACKCROWS.o: ../../../../../src/ta_func/ta_CDL3BLACKCROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDL3BLACKCROWS.o ../../../../../src/ta_func/ta_CDL3BLACKCROWS.c + +../../../../../temp/csp/ta_CDL3INSIDE.o: ../../../../../src/ta_func/ta_CDL3INSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDL3INSIDE.o ../../../../../src/ta_func/ta_CDL3INSIDE.c + +../../../../../temp/csp/ta_CDL3LINESTRIKE.o: ../../../../../src/ta_func/ta_CDL3LINESTRIKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDL3LINESTRIKE.o ../../../../../src/ta_func/ta_CDL3LINESTRIKE.c + +../../../../../temp/csp/ta_CDL3OUTSIDE.o: ../../../../../src/ta_func/ta_CDL3OUTSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDL3OUTSIDE.o ../../../../../src/ta_func/ta_CDL3OUTSIDE.c + +../../../../../temp/csp/ta_CDL3STARSINSOUTH.o: ../../../../../src/ta_func/ta_CDL3STARSINSOUTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDL3STARSINSOUTH.o ../../../../../src/ta_func/ta_CDL3STARSINSOUTH.c + +../../../../../temp/csp/ta_CDL3WHITESOLDIERS.o: ../../../../../src/ta_func/ta_CDL3WHITESOLDIERS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDL3WHITESOLDIERS.o ../../../../../src/ta_func/ta_CDL3WHITESOLDIERS.c + +../../../../../temp/csp/ta_CDLABANDONEDBABY.o: ../../../../../src/ta_func/ta_CDLABANDONEDBABY.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLABANDONEDBABY.o ../../../../../src/ta_func/ta_CDLABANDONEDBABY.c + +../../../../../temp/csp/ta_CDLADVANCEBLOCK.o: ../../../../../src/ta_func/ta_CDLADVANCEBLOCK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLADVANCEBLOCK.o ../../../../../src/ta_func/ta_CDLADVANCEBLOCK.c + +../../../../../temp/csp/ta_CDLBELTHOLD.o: ../../../../../src/ta_func/ta_CDLBELTHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLBELTHOLD.o ../../../../../src/ta_func/ta_CDLBELTHOLD.c + +../../../../../temp/csp/ta_CDLBREAKAWAY.o: ../../../../../src/ta_func/ta_CDLBREAKAWAY.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLBREAKAWAY.o ../../../../../src/ta_func/ta_CDLBREAKAWAY.c + +../../../../../temp/csp/ta_CDLCLOSINGMARUBOZU.o: ../../../../../src/ta_func/ta_CDLCLOSINGMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLCLOSINGMARUBOZU.o ../../../../../src/ta_func/ta_CDLCLOSINGMARUBOZU.c + +../../../../../temp/csp/ta_CDLCONCEALBABYSWALL.o: ../../../../../src/ta_func/ta_CDLCONCEALBABYSWALL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLCONCEALBABYSWALL.o ../../../../../src/ta_func/ta_CDLCONCEALBABYSWALL.c + +../../../../../temp/csp/ta_CDLCOUNTERATTACK.o: ../../../../../src/ta_func/ta_CDLCOUNTERATTACK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLCOUNTERATTACK.o ../../../../../src/ta_func/ta_CDLCOUNTERATTACK.c + +../../../../../temp/csp/ta_CDLDARKCLOUDCOVER.o: ../../../../../src/ta_func/ta_CDLDARKCLOUDCOVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLDARKCLOUDCOVER.o ../../../../../src/ta_func/ta_CDLDARKCLOUDCOVER.c + +../../../../../temp/csp/ta_CDLDOJI.o: ../../../../../src/ta_func/ta_CDLDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLDOJI.o ../../../../../src/ta_func/ta_CDLDOJI.c + +../../../../../temp/csp/ta_CDLDOJISTAR.o: ../../../../../src/ta_func/ta_CDLDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLDOJISTAR.o ../../../../../src/ta_func/ta_CDLDOJISTAR.c + +../../../../../temp/csp/ta_CDLDRAGONFLYDOJI.o: ../../../../../src/ta_func/ta_CDLDRAGONFLYDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLDRAGONFLYDOJI.o ../../../../../src/ta_func/ta_CDLDRAGONFLYDOJI.c + +../../../../../temp/csp/ta_CDLENGULFING.o: ../../../../../src/ta_func/ta_CDLENGULFING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLENGULFING.o ../../../../../src/ta_func/ta_CDLENGULFING.c + +../../../../../temp/csp/ta_CDLEVENINGDOJISTAR.o: ../../../../../src/ta_func/ta_CDLEVENINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLEVENINGDOJISTAR.o ../../../../../src/ta_func/ta_CDLEVENINGDOJISTAR.c + +../../../../../temp/csp/ta_CDLEVENINGSTAR.o: ../../../../../src/ta_func/ta_CDLEVENINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLEVENINGSTAR.o ../../../../../src/ta_func/ta_CDLEVENINGSTAR.c + +../../../../../temp/csp/ta_CDLGAPSIDESIDEWHITE.o: ../../../../../src/ta_func/ta_CDLGAPSIDESIDEWHITE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLGAPSIDESIDEWHITE.o ../../../../../src/ta_func/ta_CDLGAPSIDESIDEWHITE.c + +../../../../../temp/csp/ta_CDLGRAVESTONEDOJI.o: ../../../../../src/ta_func/ta_CDLGRAVESTONEDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLGRAVESTONEDOJI.o ../../../../../src/ta_func/ta_CDLGRAVESTONEDOJI.c + +../../../../../temp/csp/ta_CDLHAMMER.o: ../../../../../src/ta_func/ta_CDLHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLHAMMER.o ../../../../../src/ta_func/ta_CDLHAMMER.c + +../../../../../temp/csp/ta_CDLHANGINGMAN.o: ../../../../../src/ta_func/ta_CDLHANGINGMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLHANGINGMAN.o ../../../../../src/ta_func/ta_CDLHANGINGMAN.c + +../../../../../temp/csp/ta_CDLHARAMI.o: ../../../../../src/ta_func/ta_CDLHARAMI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLHARAMI.o ../../../../../src/ta_func/ta_CDLHARAMI.c + +../../../../../temp/csp/ta_CDLHARAMICROSS.o: ../../../../../src/ta_func/ta_CDLHARAMICROSS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLHARAMICROSS.o ../../../../../src/ta_func/ta_CDLHARAMICROSS.c + +../../../../../temp/csp/ta_CDLHIGHWAVE.o: ../../../../../src/ta_func/ta_CDLHIGHWAVE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLHIGHWAVE.o ../../../../../src/ta_func/ta_CDLHIGHWAVE.c + +../../../../../temp/csp/ta_CDLHIKKAKE.o: ../../../../../src/ta_func/ta_CDLHIKKAKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLHIKKAKE.o ../../../../../src/ta_func/ta_CDLHIKKAKE.c + +../../../../../temp/csp/ta_CDLHIKKAKEMOD.o: ../../../../../src/ta_func/ta_CDLHIKKAKEMOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLHIKKAKEMOD.o ../../../../../src/ta_func/ta_CDLHIKKAKEMOD.c + +../../../../../temp/csp/ta_CDLHOMINGPIGEON.o: ../../../../../src/ta_func/ta_CDLHOMINGPIGEON.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLHOMINGPIGEON.o ../../../../../src/ta_func/ta_CDLHOMINGPIGEON.c + +../../../../../temp/csp/ta_CDLIDENTICAL3CROWS.o: ../../../../../src/ta_func/ta_CDLIDENTICAL3CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLIDENTICAL3CROWS.o ../../../../../src/ta_func/ta_CDLIDENTICAL3CROWS.c + +../../../../../temp/csp/ta_CDLINNECK.o: ../../../../../src/ta_func/ta_CDLINNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLINNECK.o ../../../../../src/ta_func/ta_CDLINNECK.c + +../../../../../temp/csp/ta_CDLINVERTEDHAMMER.o: ../../../../../src/ta_func/ta_CDLINVERTEDHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLINVERTEDHAMMER.o ../../../../../src/ta_func/ta_CDLINVERTEDHAMMER.c + +../../../../../temp/csp/ta_CDLKICKING.o: ../../../../../src/ta_func/ta_CDLKICKING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLKICKING.o ../../../../../src/ta_func/ta_CDLKICKING.c + +../../../../../temp/csp/ta_CDLKICKINGBYLENGTH.o: ../../../../../src/ta_func/ta_CDLKICKINGBYLENGTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLKICKINGBYLENGTH.o ../../../../../src/ta_func/ta_CDLKICKINGBYLENGTH.c + +../../../../../temp/csp/ta_CDLLADDERBOTTOM.o: ../../../../../src/ta_func/ta_CDLLADDERBOTTOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLLADDERBOTTOM.o ../../../../../src/ta_func/ta_CDLLADDERBOTTOM.c + +../../../../../temp/csp/ta_CDLLONGLEGGEDDOJI.o: ../../../../../src/ta_func/ta_CDLLONGLEGGEDDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLLONGLEGGEDDOJI.o ../../../../../src/ta_func/ta_CDLLONGLEGGEDDOJI.c + +../../../../../temp/csp/ta_CDLLONGLINE.o: ../../../../../src/ta_func/ta_CDLLONGLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLLONGLINE.o ../../../../../src/ta_func/ta_CDLLONGLINE.c + +../../../../../temp/csp/ta_CDLMARUBOZU.o: ../../../../../src/ta_func/ta_CDLMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLMARUBOZU.o ../../../../../src/ta_func/ta_CDLMARUBOZU.c + +../../../../../temp/csp/ta_CDLMATCHINGLOW.o: ../../../../../src/ta_func/ta_CDLMATCHINGLOW.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLMATCHINGLOW.o ../../../../../src/ta_func/ta_CDLMATCHINGLOW.c + +../../../../../temp/csp/ta_CDLMATHOLD.o: ../../../../../src/ta_func/ta_CDLMATHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLMATHOLD.o ../../../../../src/ta_func/ta_CDLMATHOLD.c + +../../../../../temp/csp/ta_CDLMORNINGDOJISTAR.o: ../../../../../src/ta_func/ta_CDLMORNINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLMORNINGDOJISTAR.o ../../../../../src/ta_func/ta_CDLMORNINGDOJISTAR.c + +../../../../../temp/csp/ta_CDLMORNINGSTAR.o: ../../../../../src/ta_func/ta_CDLMORNINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLMORNINGSTAR.o ../../../../../src/ta_func/ta_CDLMORNINGSTAR.c + +../../../../../temp/csp/ta_CDLONNECK.o: ../../../../../src/ta_func/ta_CDLONNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLONNECK.o ../../../../../src/ta_func/ta_CDLONNECK.c + +../../../../../temp/csp/ta_CDLPIERCING.o: ../../../../../src/ta_func/ta_CDLPIERCING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLPIERCING.o ../../../../../src/ta_func/ta_CDLPIERCING.c + +../../../../../temp/csp/ta_CDLRICKSHAWMAN.o: ../../../../../src/ta_func/ta_CDLRICKSHAWMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLRICKSHAWMAN.o ../../../../../src/ta_func/ta_CDLRICKSHAWMAN.c + +../../../../../temp/csp/ta_CDLRISEFALL3METHODS.o: ../../../../../src/ta_func/ta_CDLRISEFALL3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLRISEFALL3METHODS.o ../../../../../src/ta_func/ta_CDLRISEFALL3METHODS.c + +../../../../../temp/csp/ta_CDLSEPARATINGLINES.o: ../../../../../src/ta_func/ta_CDLSEPARATINGLINES.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLSEPARATINGLINES.o ../../../../../src/ta_func/ta_CDLSEPARATINGLINES.c + +../../../../../temp/csp/ta_CDLSHOOTINGSTAR.o: ../../../../../src/ta_func/ta_CDLSHOOTINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLSHOOTINGSTAR.o ../../../../../src/ta_func/ta_CDLSHOOTINGSTAR.c + +../../../../../temp/csp/ta_CDLSHORTLINE.o: ../../../../../src/ta_func/ta_CDLSHORTLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLSHORTLINE.o ../../../../../src/ta_func/ta_CDLSHORTLINE.c + +../../../../../temp/csp/ta_CDLSPINNINGTOP.o: ../../../../../src/ta_func/ta_CDLSPINNINGTOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLSPINNINGTOP.o ../../../../../src/ta_func/ta_CDLSPINNINGTOP.c + +../../../../../temp/csp/ta_CDLSTALLEDPATTERN.o: ../../../../../src/ta_func/ta_CDLSTALLEDPATTERN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLSTALLEDPATTERN.o ../../../../../src/ta_func/ta_CDLSTALLEDPATTERN.c + +../../../../../temp/csp/ta_CDLSTICKSANDWICH.o: ../../../../../src/ta_func/ta_CDLSTICKSANDWICH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLSTICKSANDWICH.o ../../../../../src/ta_func/ta_CDLSTICKSANDWICH.c + +../../../../../temp/csp/ta_CDLTAKURI.o: ../../../../../src/ta_func/ta_CDLTAKURI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLTAKURI.o ../../../../../src/ta_func/ta_CDLTAKURI.c + +../../../../../temp/csp/ta_CDLTASUKIGAP.o: ../../../../../src/ta_func/ta_CDLTASUKIGAP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLTASUKIGAP.o ../../../../../src/ta_func/ta_CDLTASUKIGAP.c + +../../../../../temp/csp/ta_CDLTHRUSTING.o: ../../../../../src/ta_func/ta_CDLTHRUSTING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLTHRUSTING.o ../../../../../src/ta_func/ta_CDLTHRUSTING.c + +../../../../../temp/csp/ta_CDLTRISTAR.o: ../../../../../src/ta_func/ta_CDLTRISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLTRISTAR.o ../../../../../src/ta_func/ta_CDLTRISTAR.c + +../../../../../temp/csp/ta_CDLUNIQUE3RIVER.o: ../../../../../src/ta_func/ta_CDLUNIQUE3RIVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLUNIQUE3RIVER.o ../../../../../src/ta_func/ta_CDLUNIQUE3RIVER.c + +../../../../../temp/csp/ta_CDLUPSIDEGAP2CROWS.o: ../../../../../src/ta_func/ta_CDLUPSIDEGAP2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLUPSIDEGAP2CROWS.o ../../../../../src/ta_func/ta_CDLUPSIDEGAP2CROWS.c + +../../../../../temp/csp/ta_CDLXSIDEGAP3METHODS.o: ../../../../../src/ta_func/ta_CDLXSIDEGAP3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLXSIDEGAP3METHODS.o ../../../../../src/ta_func/ta_CDLXSIDEGAP3METHODS.c + +../../../../../temp/csp/ta_CEIL.o: ../../../../../src/ta_func/ta_CEIL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CEIL.o ../../../../../src/ta_func/ta_CEIL.c + +../../../../../temp/csp/ta_CMO.o: ../../../../../src/ta_func/ta_CMO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CMO.o ../../../../../src/ta_func/ta_CMO.c + +../../../../../temp/csp/ta_CORREL.o: ../../../../../src/ta_func/ta_CORREL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CORREL.o ../../../../../src/ta_func/ta_CORREL.c + +../../../../../temp/csp/ta_COS.o: ../../../../../src/ta_func/ta_COS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_COS.o ../../../../../src/ta_func/ta_COS.c + +../../../../../temp/csp/ta_COSH.o: ../../../../../src/ta_func/ta_COSH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_COSH.o ../../../../../src/ta_func/ta_COSH.c + +../../../../../temp/csp/ta_DEMA.o: ../../../../../src/ta_func/ta_DEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_DEMA.o ../../../../../src/ta_func/ta_DEMA.c + +../../../../../temp/csp/ta_DIV.o: ../../../../../src/ta_func/ta_DIV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_DIV.o ../../../../../src/ta_func/ta_DIV.c + +../../../../../temp/csp/ta_DX.o: ../../../../../src/ta_func/ta_DX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_DX.o ../../../../../src/ta_func/ta_DX.c + +../../../../../temp/csp/ta_EMA.o: ../../../../../src/ta_func/ta_EMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_EMA.o ../../../../../src/ta_func/ta_EMA.c + +../../../../../temp/csp/ta_EXP.o: ../../../../../src/ta_func/ta_EXP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_EXP.o ../../../../../src/ta_func/ta_EXP.c + +../../../../../temp/csp/ta_FLOOR.o: ../../../../../src/ta_func/ta_FLOOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_FLOOR.o ../../../../../src/ta_func/ta_FLOOR.c + +../../../../../temp/csp/ta_HT_DCPERIOD.o: ../../../../../src/ta_func/ta_HT_DCPERIOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_HT_DCPERIOD.o ../../../../../src/ta_func/ta_HT_DCPERIOD.c + +../../../../../temp/csp/ta_HT_DCPHASE.o: ../../../../../src/ta_func/ta_HT_DCPHASE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_HT_DCPHASE.o ../../../../../src/ta_func/ta_HT_DCPHASE.c + +../../../../../temp/csp/ta_HT_PHASOR.o: ../../../../../src/ta_func/ta_HT_PHASOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_HT_PHASOR.o ../../../../../src/ta_func/ta_HT_PHASOR.c + +../../../../../temp/csp/ta_HT_SINE.o: ../../../../../src/ta_func/ta_HT_SINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_HT_SINE.o ../../../../../src/ta_func/ta_HT_SINE.c + +../../../../../temp/csp/ta_HT_TRENDLINE.o: ../../../../../src/ta_func/ta_HT_TRENDLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_HT_TRENDLINE.o ../../../../../src/ta_func/ta_HT_TRENDLINE.c + +../../../../../temp/csp/ta_HT_TRENDMODE.o: ../../../../../src/ta_func/ta_HT_TRENDMODE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_HT_TRENDMODE.o ../../../../../src/ta_func/ta_HT_TRENDMODE.c + +../../../../../temp/csp/ta_KAMA.o: ../../../../../src/ta_func/ta_KAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_KAMA.o ../../../../../src/ta_func/ta_KAMA.c + +../../../../../temp/csp/ta_LINEARREG.o: ../../../../../src/ta_func/ta_LINEARREG.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_LINEARREG.o ../../../../../src/ta_func/ta_LINEARREG.c + +../../../../../temp/csp/ta_LINEARREG_ANGLE.o: ../../../../../src/ta_func/ta_LINEARREG_ANGLE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_LINEARREG_ANGLE.o ../../../../../src/ta_func/ta_LINEARREG_ANGLE.c + +../../../../../temp/csp/ta_LINEARREG_INTERCEPT.o: ../../../../../src/ta_func/ta_LINEARREG_INTERCEPT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_LINEARREG_INTERCEPT.o ../../../../../src/ta_func/ta_LINEARREG_INTERCEPT.c + +../../../../../temp/csp/ta_LINEARREG_SLOPE.o: ../../../../../src/ta_func/ta_LINEARREG_SLOPE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_LINEARREG_SLOPE.o ../../../../../src/ta_func/ta_LINEARREG_SLOPE.c + +../../../../../temp/csp/ta_LN.o: ../../../../../src/ta_func/ta_LN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_LN.o ../../../../../src/ta_func/ta_LN.c + +../../../../../temp/csp/ta_LOG10.o: ../../../../../src/ta_func/ta_LOG10.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_LOG10.o ../../../../../src/ta_func/ta_LOG10.c + +../../../../../temp/csp/ta_MA.o: ../../../../../src/ta_func/ta_MA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_MA.o ../../../../../src/ta_func/ta_MA.c + +../../../../../temp/csp/ta_MACD.o: ../../../../../src/ta_func/ta_MACD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_MACD.o ../../../../../src/ta_func/ta_MACD.c + +../../../../../temp/csp/ta_MACDEXT.o: ../../../../../src/ta_func/ta_MACDEXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_MACDEXT.o ../../../../../src/ta_func/ta_MACDEXT.c + +../../../../../temp/csp/ta_MACDFIX.o: ../../../../../src/ta_func/ta_MACDFIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_MACDFIX.o ../../../../../src/ta_func/ta_MACDFIX.c + +../../../../../temp/csp/ta_MAMA.o: ../../../../../src/ta_func/ta_MAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_MAMA.o ../../../../../src/ta_func/ta_MAMA.c + +../../../../../temp/csp/ta_MAVP.o: ../../../../../src/ta_func/ta_MAVP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_MAVP.o ../../../../../src/ta_func/ta_MAVP.c + +../../../../../temp/csp/ta_MAX.o: ../../../../../src/ta_func/ta_MAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_MAX.o ../../../../../src/ta_func/ta_MAX.c + +../../../../../temp/csp/ta_MAXINDEX.o: ../../../../../src/ta_func/ta_MAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_MAXINDEX.o ../../../../../src/ta_func/ta_MAXINDEX.c + +../../../../../temp/csp/ta_MEDPRICE.o: ../../../../../src/ta_func/ta_MEDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_MEDPRICE.o ../../../../../src/ta_func/ta_MEDPRICE.c + +../../../../../temp/csp/ta_MFI.o: ../../../../../src/ta_func/ta_MFI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_MFI.o ../../../../../src/ta_func/ta_MFI.c + +../../../../../temp/csp/ta_MIDPOINT.o: ../../../../../src/ta_func/ta_MIDPOINT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_MIDPOINT.o ../../../../../src/ta_func/ta_MIDPOINT.c + +../../../../../temp/csp/ta_MIDPRICE.o: ../../../../../src/ta_func/ta_MIDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_MIDPRICE.o ../../../../../src/ta_func/ta_MIDPRICE.c + +../../../../../temp/csp/ta_MIN.o: ../../../../../src/ta_func/ta_MIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_MIN.o ../../../../../src/ta_func/ta_MIN.c + +../../../../../temp/csp/ta_MININDEX.o: ../../../../../src/ta_func/ta_MININDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_MININDEX.o ../../../../../src/ta_func/ta_MININDEX.c + +../../../../../temp/csp/ta_MINMAX.o: ../../../../../src/ta_func/ta_MINMAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_MINMAX.o ../../../../../src/ta_func/ta_MINMAX.c + +../../../../../temp/csp/ta_MINMAXINDEX.o: ../../../../../src/ta_func/ta_MINMAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_MINMAXINDEX.o ../../../../../src/ta_func/ta_MINMAXINDEX.c + +../../../../../temp/csp/ta_MINUS_DI.o: ../../../../../src/ta_func/ta_MINUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_MINUS_DI.o ../../../../../src/ta_func/ta_MINUS_DI.c + +../../../../../temp/csp/ta_MINUS_DM.o: ../../../../../src/ta_func/ta_MINUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_MINUS_DM.o ../../../../../src/ta_func/ta_MINUS_DM.c + +../../../../../temp/csp/ta_MOM.o: ../../../../../src/ta_func/ta_MOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_MOM.o ../../../../../src/ta_func/ta_MOM.c + +../../../../../temp/csp/ta_MULT.o: ../../../../../src/ta_func/ta_MULT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_MULT.o ../../../../../src/ta_func/ta_MULT.c + +../../../../../temp/csp/ta_NATR.o: ../../../../../src/ta_func/ta_NATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_NATR.o ../../../../../src/ta_func/ta_NATR.c + +../../../../../temp/csp/ta_OBV.o: ../../../../../src/ta_func/ta_OBV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_OBV.o ../../../../../src/ta_func/ta_OBV.c + +../../../../../temp/csp/ta_PLUS_DI.o: ../../../../../src/ta_func/ta_PLUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_PLUS_DI.o ../../../../../src/ta_func/ta_PLUS_DI.c + +../../../../../temp/csp/ta_PLUS_DM.o: ../../../../../src/ta_func/ta_PLUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_PLUS_DM.o ../../../../../src/ta_func/ta_PLUS_DM.c + +../../../../../temp/csp/ta_PPO.o: ../../../../../src/ta_func/ta_PPO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_PPO.o ../../../../../src/ta_func/ta_PPO.c + +../../../../../temp/csp/ta_ROC.o: ../../../../../src/ta_func/ta_ROC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_ROC.o ../../../../../src/ta_func/ta_ROC.c + +../../../../../temp/csp/ta_ROCP.o: ../../../../../src/ta_func/ta_ROCP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_ROCP.o ../../../../../src/ta_func/ta_ROCP.c + +../../../../../temp/csp/ta_ROCR.o: ../../../../../src/ta_func/ta_ROCR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_ROCR.o ../../../../../src/ta_func/ta_ROCR.c + +../../../../../temp/csp/ta_ROCR100.o: ../../../../../src/ta_func/ta_ROCR100.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_ROCR100.o ../../../../../src/ta_func/ta_ROCR100.c + +../../../../../temp/csp/ta_RSI.o: ../../../../../src/ta_func/ta_RSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_RSI.o ../../../../../src/ta_func/ta_RSI.c + +../../../../../temp/csp/ta_SAR.o: ../../../../../src/ta_func/ta_SAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_SAR.o ../../../../../src/ta_func/ta_SAR.c + +../../../../../temp/csp/ta_SAREXT.o: ../../../../../src/ta_func/ta_SAREXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_SAREXT.o ../../../../../src/ta_func/ta_SAREXT.c + +../../../../../temp/csp/ta_SIN.o: ../../../../../src/ta_func/ta_SIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_SIN.o ../../../../../src/ta_func/ta_SIN.c + +../../../../../temp/csp/ta_SINH.o: ../../../../../src/ta_func/ta_SINH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_SINH.o ../../../../../src/ta_func/ta_SINH.c + +../../../../../temp/csp/ta_SMA.o: ../../../../../src/ta_func/ta_SMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_SMA.o ../../../../../src/ta_func/ta_SMA.c + +../../../../../temp/csp/ta_SQRT.o: ../../../../../src/ta_func/ta_SQRT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_SQRT.o ../../../../../src/ta_func/ta_SQRT.c + +../../../../../temp/csp/ta_STDDEV.o: ../../../../../src/ta_func/ta_STDDEV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_STDDEV.o ../../../../../src/ta_func/ta_STDDEV.c + +../../../../../temp/csp/ta_STOCH.o: ../../../../../src/ta_func/ta_STOCH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_STOCH.o ../../../../../src/ta_func/ta_STOCH.c + +../../../../../temp/csp/ta_STOCHF.o: ../../../../../src/ta_func/ta_STOCHF.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_STOCHF.o ../../../../../src/ta_func/ta_STOCHF.c + +../../../../../temp/csp/ta_STOCHRSI.o: ../../../../../src/ta_func/ta_STOCHRSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_STOCHRSI.o ../../../../../src/ta_func/ta_STOCHRSI.c + +../../../../../temp/csp/ta_SUB.o: ../../../../../src/ta_func/ta_SUB.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_SUB.o ../../../../../src/ta_func/ta_SUB.c + +../../../../../temp/csp/ta_SUM.o: ../../../../../src/ta_func/ta_SUM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_SUM.o ../../../../../src/ta_func/ta_SUM.c + +../../../../../temp/csp/ta_T3.o: ../../../../../src/ta_func/ta_T3.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_T3.o ../../../../../src/ta_func/ta_T3.c + +../../../../../temp/csp/ta_TAN.o: ../../../../../src/ta_func/ta_TAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_TAN.o ../../../../../src/ta_func/ta_TAN.c + +../../../../../temp/csp/ta_TANH.o: ../../../../../src/ta_func/ta_TANH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_TANH.o ../../../../../src/ta_func/ta_TANH.c + +../../../../../temp/csp/ta_TEMA.o: ../../../../../src/ta_func/ta_TEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_TEMA.o ../../../../../src/ta_func/ta_TEMA.c + +../../../../../temp/csp/ta_TRANGE.o: ../../../../../src/ta_func/ta_TRANGE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_TRANGE.o ../../../../../src/ta_func/ta_TRANGE.c + +../../../../../temp/csp/ta_TRIMA.o: ../../../../../src/ta_func/ta_TRIMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_TRIMA.o ../../../../../src/ta_func/ta_TRIMA.c + +../../../../../temp/csp/ta_TRIX.o: ../../../../../src/ta_func/ta_TRIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_TRIX.o ../../../../../src/ta_func/ta_TRIX.c + +../../../../../temp/csp/ta_TSF.o: ../../../../../src/ta_func/ta_TSF.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_TSF.o ../../../../../src/ta_func/ta_TSF.c + +../../../../../temp/csp/ta_TYPPRICE.o: ../../../../../src/ta_func/ta_TYPPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_TYPPRICE.o ../../../../../src/ta_func/ta_TYPPRICE.c + +../../../../../temp/csp/ta_ULTOSC.o: ../../../../../src/ta_func/ta_ULTOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_ULTOSC.o ../../../../../src/ta_func/ta_ULTOSC.c + +../../../../../temp/csp/ta_VAR.o: ../../../../../src/ta_func/ta_VAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_VAR.o ../../../../../src/ta_func/ta_VAR.c + +../../../../../temp/csp/ta_WCLPRICE.o: ../../../../../src/ta_func/ta_WCLPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_WCLPRICE.o ../../../../../src/ta_func/ta_WCLPRICE.c + +../../../../../temp/csp/ta_WILLR.o: ../../../../../src/ta_func/ta_WILLR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_WILLR.o ../../../../../src/ta_func/ta_WILLR.c + +../../../../../temp/csp/ta_WMA.o: ../../../../../src/ta_func/ta_WMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_WMA.o ../../../../../src/ta_func/ta_WMA.c + diff --git a/make/csp/freebsd/g++/ta_libc/Makefile b/make/csp/freebsd/g++/ta_libc/Makefile new file mode 100644 index 000000000..076a6b1de --- /dev/null +++ b/make/csp/freebsd/g++/ta_libc/Makefile @@ -0,0 +1,1053 @@ +############################################################################# +# Makefile for building ../../../../../lib/libta_libc_csp.a +# Generated by tmake; +# Project: ta_libc/ta_libc +# Template: lib +############################################################################# + +####### Compiler, tools and options + +CC = gcc +CXX = g++ +CFLAGS = -pipe -Wall -W -g -O -pg -DTA_DEBUG -D_DEBUG -DTA_SINGLE_THREAD +CXXFLAGS= -pipe -Wall -W -g -DTA_DEBUG -D_DEBUG -DTA_SINGLE_THREAD +INCPATH = -I../../../../../src/ta_common -I../../../../../include -I../../../../../src/ta_abstract -I../../../../../src/ta_abstract/tables -I../../../../../src/ta_abstract/frames -I/usr/local/include -I$(QTDIR)/include +AR = ar cqs +RANLIB = +MOC = $(QTDIR)/bin/moc +UIC = $(QTDIR)/bin/uic + +TAR = tar -cf +GZIP = gzip -9f + +####### Support for 64-bit systems +ifeq ($(shell uname -m), x86_64) + CFLAGS += -march=x86-64 -m64 -D__64BIT__ + CXXFLAGS += -march=x86-64 -m64 -D__64BIT__ +endif + +####### Apply additional overruling user flags, if any +CFLAGS += $(CUSERFLAGS) +CXXFLAGS += $(CUSERFLAGS) + +####### Files + +HEADERS = +SOURCES = ../../../../../src/ta_common/ta_global.c \ + ../../../../../src/ta_common/ta_retcode.c \ + ../../../../../src/ta_common/ta_version.c \ + ../../../../../src/ta_abstract/ta_abstract.c \ + ../../../../../src/ta_abstract/ta_def_ui.c \ + ../../../../../src/ta_abstract/ta_func_api.c \ + ../../../../../src/ta_abstract/ta_group_idx.c \ + ../../../../../src/ta_abstract/frames/ta_frame.c \ + ../../../../../src/ta_abstract/tables/table_a.c \ + ../../../../../src/ta_abstract/tables/table_b.c \ + ../../../../../src/ta_abstract/tables/table_c.c \ + ../../../../../src/ta_abstract/tables/table_d.c \ + ../../../../../src/ta_abstract/tables/table_e.c \ + ../../../../../src/ta_abstract/tables/table_f.c \ + ../../../../../src/ta_abstract/tables/table_g.c \ + ../../../../../src/ta_abstract/tables/table_h.c \ + ../../../../../src/ta_abstract/tables/table_i.c \ + ../../../../../src/ta_abstract/tables/table_j.c \ + ../../../../../src/ta_abstract/tables/table_k.c \ + ../../../../../src/ta_abstract/tables/table_l.c \ + ../../../../../src/ta_abstract/tables/table_m.c \ + ../../../../../src/ta_abstract/tables/table_n.c \ + ../../../../../src/ta_abstract/tables/table_o.c \ + ../../../../../src/ta_abstract/tables/table_p.c \ + ../../../../../src/ta_abstract/tables/table_q.c \ + ../../../../../src/ta_abstract/tables/table_r.c \ + ../../../../../src/ta_abstract/tables/table_s.c \ + ../../../../../src/ta_abstract/tables/table_t.c \ + ../../../../../src/ta_abstract/tables/table_u.c \ + ../../../../../src/ta_abstract/tables/table_v.c \ + ../../../../../src/ta_abstract/tables/table_w.c \ + ../../../../../src/ta_abstract/tables/table_x.c \ + ../../../../../src/ta_abstract/tables/table_y.c \ + ../../../../../src/ta_abstract/tables/table_z.c \ + ../../../../../src/ta_func/ta_utility.c \ + ../../../../../src/ta_func/ta_ACOS.c \ + ../../../../../src/ta_func/ta_AD.c \ + ../../../../../src/ta_func/ta_ADD.c \ + ../../../../../src/ta_func/ta_ADOSC.c \ + ../../../../../src/ta_func/ta_ADX.c \ + ../../../../../src/ta_func/ta_ADXR.c \ + ../../../../../src/ta_func/ta_APO.c \ + ../../../../../src/ta_func/ta_AROON.c \ + ../../../../../src/ta_func/ta_AROONOSC.c \ + ../../../../../src/ta_func/ta_ASIN.c \ + ../../../../../src/ta_func/ta_ATAN.c \ + ../../../../../src/ta_func/ta_ATR.c \ + ../../../../../src/ta_func/ta_AVGPRICE.c \ + ../../../../../src/ta_func/ta_BBANDS.c \ + ../../../../../src/ta_func/ta_BETA.c \ + ../../../../../src/ta_func/ta_BOP.c \ + ../../../../../src/ta_func/ta_CCI.c \ + ../../../../../src/ta_func/ta_CDL2CROWS.c \ + ../../../../../src/ta_func/ta_CDL3BLACKCROWS.c \ + ../../../../../src/ta_func/ta_CDL3INSIDE.c \ + ../../../../../src/ta_func/ta_CDL3LINESTRIKE.c \ + ../../../../../src/ta_func/ta_CDL3OUTSIDE.c \ + ../../../../../src/ta_func/ta_CDL3STARSINSOUTH.c \ + ../../../../../src/ta_func/ta_CDL3WHITESOLDIERS.c \ + ../../../../../src/ta_func/ta_CDLABANDONEDBABY.c \ + ../../../../../src/ta_func/ta_CDLADVANCEBLOCK.c \ + ../../../../../src/ta_func/ta_CDLBELTHOLD.c \ + ../../../../../src/ta_func/ta_CDLBREAKAWAY.c \ + ../../../../../src/ta_func/ta_CDLCLOSINGMARUBOZU.c \ + ../../../../../src/ta_func/ta_CDLCONCEALBABYSWALL.c \ + ../../../../../src/ta_func/ta_CDLCOUNTERATTACK.c \ + ../../../../../src/ta_func/ta_CDLDARKCLOUDCOVER.c \ + ../../../../../src/ta_func/ta_CDLDOJI.c \ + ../../../../../src/ta_func/ta_CDLDOJISTAR.c \ + ../../../../../src/ta_func/ta_CDLDRAGONFLYDOJI.c \ + ../../../../../src/ta_func/ta_CDLENGULFING.c \ + ../../../../../src/ta_func/ta_CDLEVENINGDOJISTAR.c \ + ../../../../../src/ta_func/ta_CDLEVENINGSTAR.c \ + ../../../../../src/ta_func/ta_CDLGAPSIDESIDEWHITE.c \ + ../../../../../src/ta_func/ta_CDLGRAVESTONEDOJI.c \ + ../../../../../src/ta_func/ta_CDLHAMMER.c \ + ../../../../../src/ta_func/ta_CDLHANGINGMAN.c \ + ../../../../../src/ta_func/ta_CDLHARAMI.c \ + ../../../../../src/ta_func/ta_CDLHARAMICROSS.c \ + ../../../../../src/ta_func/ta_CDLHIGHWAVE.c \ + ../../../../../src/ta_func/ta_CDLHIKKAKE.c \ + ../../../../../src/ta_func/ta_CDLHIKKAKEMOD.c \ + ../../../../../src/ta_func/ta_CDLHOMINGPIGEON.c \ + ../../../../../src/ta_func/ta_CDLIDENTICAL3CROWS.c \ + ../../../../../src/ta_func/ta_CDLINNECK.c \ + ../../../../../src/ta_func/ta_CDLINVERTEDHAMMER.c \ + ../../../../../src/ta_func/ta_CDLKICKING.c \ + ../../../../../src/ta_func/ta_CDLKICKINGBYLENGTH.c \ + ../../../../../src/ta_func/ta_CDLLADDERBOTTOM.c \ + ../../../../../src/ta_func/ta_CDLLONGLEGGEDDOJI.c \ + ../../../../../src/ta_func/ta_CDLLONGLINE.c \ + ../../../../../src/ta_func/ta_CDLMARUBOZU.c \ + ../../../../../src/ta_func/ta_CDLMATCHINGLOW.c \ + ../../../../../src/ta_func/ta_CDLMATHOLD.c \ + ../../../../../src/ta_func/ta_CDLMORNINGDOJISTAR.c \ + ../../../../../src/ta_func/ta_CDLMORNINGSTAR.c \ + ../../../../../src/ta_func/ta_CDLONNECK.c \ + ../../../../../src/ta_func/ta_CDLPIERCING.c \ + ../../../../../src/ta_func/ta_CDLRICKSHAWMAN.c \ + ../../../../../src/ta_func/ta_CDLRISEFALL3METHODS.c \ + ../../../../../src/ta_func/ta_CDLSEPARATINGLINES.c \ + ../../../../../src/ta_func/ta_CDLSHOOTINGSTAR.c \ + ../../../../../src/ta_func/ta_CDLSHORTLINE.c \ + ../../../../../src/ta_func/ta_CDLSPINNINGTOP.c \ + ../../../../../src/ta_func/ta_CDLSTALLEDPATTERN.c \ + ../../../../../src/ta_func/ta_CDLSTICKSANDWICH.c \ + ../../../../../src/ta_func/ta_CDLTAKURI.c \ + ../../../../../src/ta_func/ta_CDLTASUKIGAP.c \ + ../../../../../src/ta_func/ta_CDLTHRUSTING.c \ + ../../../../../src/ta_func/ta_CDLTRISTAR.c \ + ../../../../../src/ta_func/ta_CDLUNIQUE3RIVER.c \ + ../../../../../src/ta_func/ta_CDLUPSIDEGAP2CROWS.c \ + ../../../../../src/ta_func/ta_CDLXSIDEGAP3METHODS.c \ + ../../../../../src/ta_func/ta_CEIL.c \ + ../../../../../src/ta_func/ta_CMO.c \ + ../../../../../src/ta_func/ta_CORREL.c \ + ../../../../../src/ta_func/ta_COS.c \ + ../../../../../src/ta_func/ta_COSH.c \ + ../../../../../src/ta_func/ta_DEMA.c \ + ../../../../../src/ta_func/ta_DIV.c \ + ../../../../../src/ta_func/ta_DX.c \ + ../../../../../src/ta_func/ta_EMA.c \ + ../../../../../src/ta_func/ta_EXP.c \ + ../../../../../src/ta_func/ta_FLOOR.c \ + ../../../../../src/ta_func/ta_HT_DCPERIOD.c \ + ../../../../../src/ta_func/ta_HT_DCPHASE.c \ + ../../../../../src/ta_func/ta_HT_PHASOR.c \ + ../../../../../src/ta_func/ta_HT_SINE.c \ + ../../../../../src/ta_func/ta_HT_TRENDLINE.c \ + ../../../../../src/ta_func/ta_HT_TRENDMODE.c \ + ../../../../../src/ta_func/ta_KAMA.c \ + ../../../../../src/ta_func/ta_LINEARREG.c \ + ../../../../../src/ta_func/ta_LINEARREG_ANGLE.c \ + ../../../../../src/ta_func/ta_LINEARREG_INTERCEPT.c \ + ../../../../../src/ta_func/ta_LINEARREG_SLOPE.c \ + ../../../../../src/ta_func/ta_LN.c \ + ../../../../../src/ta_func/ta_LOG10.c \ + ../../../../../src/ta_func/ta_MA.c \ + ../../../../../src/ta_func/ta_MACD.c \ + ../../../../../src/ta_func/ta_MACDEXT.c \ + ../../../../../src/ta_func/ta_MACDFIX.c \ + ../../../../../src/ta_func/ta_MAMA.c \ + ../../../../../src/ta_func/ta_MAVP.c \ + ../../../../../src/ta_func/ta_MAX.c \ + ../../../../../src/ta_func/ta_MAXINDEX.c \ + ../../../../../src/ta_func/ta_MEDPRICE.c \ + ../../../../../src/ta_func/ta_MFI.c \ + ../../../../../src/ta_func/ta_MIDPOINT.c \ + ../../../../../src/ta_func/ta_MIDPRICE.c \ + ../../../../../src/ta_func/ta_MIN.c \ + ../../../../../src/ta_func/ta_MININDEX.c \ + ../../../../../src/ta_func/ta_MINMAX.c \ + ../../../../../src/ta_func/ta_MINMAXINDEX.c \ + ../../../../../src/ta_func/ta_MINUS_DI.c \ + ../../../../../src/ta_func/ta_MINUS_DM.c \ + ../../../../../src/ta_func/ta_MOM.c \ + ../../../../../src/ta_func/ta_MULT.c \ + ../../../../../src/ta_func/ta_NATR.c \ + ../../../../../src/ta_func/ta_OBV.c \ + ../../../../../src/ta_func/ta_PLUS_DI.c \ + ../../../../../src/ta_func/ta_PLUS_DM.c \ + ../../../../../src/ta_func/ta_PPO.c \ + ../../../../../src/ta_func/ta_ROC.c \ + ../../../../../src/ta_func/ta_ROCP.c \ + ../../../../../src/ta_func/ta_ROCR.c \ + ../../../../../src/ta_func/ta_ROCR100.c \ + ../../../../../src/ta_func/ta_RSI.c \ + ../../../../../src/ta_func/ta_SAR.c \ + ../../../../../src/ta_func/ta_SAREXT.c \ + ../../../../../src/ta_func/ta_SIN.c \ + ../../../../../src/ta_func/ta_SINH.c \ + ../../../../../src/ta_func/ta_SMA.c \ + ../../../../../src/ta_func/ta_SQRT.c \ + ../../../../../src/ta_func/ta_STDDEV.c \ + ../../../../../src/ta_func/ta_STOCH.c \ + ../../../../../src/ta_func/ta_STOCHF.c \ + ../../../../../src/ta_func/ta_STOCHRSI.c \ + ../../../../../src/ta_func/ta_SUB.c \ + ../../../../../src/ta_func/ta_SUM.c \ + ../../../../../src/ta_func/ta_T3.c \ + ../../../../../src/ta_func/ta_TAN.c \ + ../../../../../src/ta_func/ta_TANH.c \ + ../../../../../src/ta_func/ta_TEMA.c \ + ../../../../../src/ta_func/ta_TRANGE.c \ + ../../../../../src/ta_func/ta_TRIMA.c \ + ../../../../../src/ta_func/ta_TRIX.c \ + ../../../../../src/ta_func/ta_TSF.c \ + ../../../../../src/ta_func/ta_TYPPRICE.c \ + ../../../../../src/ta_func/ta_ULTOSC.c \ + ../../../../../src/ta_func/ta_VAR.c \ + ../../../../../src/ta_func/ta_WCLPRICE.c \ + ../../../../../src/ta_func/ta_WILLR.c \ + ../../../../../src/ta_func/ta_WMA.c +OBJECTS = ../../../../../temp/csp/ta_global.o \ + ../../../../../temp/csp/ta_retcode.o \ + ../../../../../temp/csp/ta_version.o \ + ../../../../../temp/csp/ta_abstract.o \ + ../../../../../temp/csp/ta_def_ui.o \ + ../../../../../temp/csp/ta_func_api.o \ + ../../../../../temp/csp/ta_group_idx.o \ + ../../../../../temp/csp/ta_frame.o \ + ../../../../../temp/csp/table_a.o \ + ../../../../../temp/csp/table_b.o \ + ../../../../../temp/csp/table_c.o \ + ../../../../../temp/csp/table_d.o \ + ../../../../../temp/csp/table_e.o \ + ../../../../../temp/csp/table_f.o \ + ../../../../../temp/csp/table_g.o \ + ../../../../../temp/csp/table_h.o \ + ../../../../../temp/csp/table_i.o \ + ../../../../../temp/csp/table_j.o \ + ../../../../../temp/csp/table_k.o \ + ../../../../../temp/csp/table_l.o \ + ../../../../../temp/csp/table_m.o \ + ../../../../../temp/csp/table_n.o \ + ../../../../../temp/csp/table_o.o \ + ../../../../../temp/csp/table_p.o \ + ../../../../../temp/csp/table_q.o \ + ../../../../../temp/csp/table_r.o \ + ../../../../../temp/csp/table_s.o \ + ../../../../../temp/csp/table_t.o \ + ../../../../../temp/csp/table_u.o \ + ../../../../../temp/csp/table_v.o \ + ../../../../../temp/csp/table_w.o \ + ../../../../../temp/csp/table_x.o \ + ../../../../../temp/csp/table_y.o \ + ../../../../../temp/csp/table_z.o \ + ../../../../../temp/csp/ta_utility.o \ + ../../../../../temp/csp/ta_ACOS.o \ + ../../../../../temp/csp/ta_AD.o \ + ../../../../../temp/csp/ta_ADD.o \ + ../../../../../temp/csp/ta_ADOSC.o \ + ../../../../../temp/csp/ta_ADX.o \ + ../../../../../temp/csp/ta_ADXR.o \ + ../../../../../temp/csp/ta_APO.o \ + ../../../../../temp/csp/ta_AROON.o \ + ../../../../../temp/csp/ta_AROONOSC.o \ + ../../../../../temp/csp/ta_ASIN.o \ + ../../../../../temp/csp/ta_ATAN.o \ + ../../../../../temp/csp/ta_ATR.o \ + ../../../../../temp/csp/ta_AVGPRICE.o \ + ../../../../../temp/csp/ta_BBANDS.o \ + ../../../../../temp/csp/ta_BETA.o \ + ../../../../../temp/csp/ta_BOP.o \ + ../../../../../temp/csp/ta_CCI.o \ + ../../../../../temp/csp/ta_CDL2CROWS.o \ + ../../../../../temp/csp/ta_CDL3BLACKCROWS.o \ + ../../../../../temp/csp/ta_CDL3INSIDE.o \ + ../../../../../temp/csp/ta_CDL3LINESTRIKE.o \ + ../../../../../temp/csp/ta_CDL3OUTSIDE.o \ + ../../../../../temp/csp/ta_CDL3STARSINSOUTH.o \ + ../../../../../temp/csp/ta_CDL3WHITESOLDIERS.o \ + ../../../../../temp/csp/ta_CDLABANDONEDBABY.o \ + ../../../../../temp/csp/ta_CDLADVANCEBLOCK.o \ + ../../../../../temp/csp/ta_CDLBELTHOLD.o \ + ../../../../../temp/csp/ta_CDLBREAKAWAY.o \ + ../../../../../temp/csp/ta_CDLCLOSINGMARUBOZU.o \ + ../../../../../temp/csp/ta_CDLCONCEALBABYSWALL.o \ + ../../../../../temp/csp/ta_CDLCOUNTERATTACK.o \ + ../../../../../temp/csp/ta_CDLDARKCLOUDCOVER.o \ + ../../../../../temp/csp/ta_CDLDOJI.o \ + ../../../../../temp/csp/ta_CDLDOJISTAR.o \ + ../../../../../temp/csp/ta_CDLDRAGONFLYDOJI.o \ + ../../../../../temp/csp/ta_CDLENGULFING.o \ + ../../../../../temp/csp/ta_CDLEVENINGDOJISTAR.o \ + ../../../../../temp/csp/ta_CDLEVENINGSTAR.o \ + ../../../../../temp/csp/ta_CDLGAPSIDESIDEWHITE.o \ + ../../../../../temp/csp/ta_CDLGRAVESTONEDOJI.o \ + ../../../../../temp/csp/ta_CDLHAMMER.o \ + ../../../../../temp/csp/ta_CDLHANGINGMAN.o \ + ../../../../../temp/csp/ta_CDLHARAMI.o \ + ../../../../../temp/csp/ta_CDLHARAMICROSS.o \ + ../../../../../temp/csp/ta_CDLHIGHWAVE.o \ + ../../../../../temp/csp/ta_CDLHIKKAKE.o \ + ../../../../../temp/csp/ta_CDLHIKKAKEMOD.o \ + ../../../../../temp/csp/ta_CDLHOMINGPIGEON.o \ + ../../../../../temp/csp/ta_CDLIDENTICAL3CROWS.o \ + ../../../../../temp/csp/ta_CDLINNECK.o \ + ../../../../../temp/csp/ta_CDLINVERTEDHAMMER.o \ + ../../../../../temp/csp/ta_CDLKICKING.o \ + ../../../../../temp/csp/ta_CDLKICKINGBYLENGTH.o \ + ../../../../../temp/csp/ta_CDLLADDERBOTTOM.o \ + ../../../../../temp/csp/ta_CDLLONGLEGGEDDOJI.o \ + ../../../../../temp/csp/ta_CDLLONGLINE.o \ + ../../../../../temp/csp/ta_CDLMARUBOZU.o \ + ../../../../../temp/csp/ta_CDLMATCHINGLOW.o \ + ../../../../../temp/csp/ta_CDLMATHOLD.o \ + ../../../../../temp/csp/ta_CDLMORNINGDOJISTAR.o \ + ../../../../../temp/csp/ta_CDLMORNINGSTAR.o \ + ../../../../../temp/csp/ta_CDLONNECK.o \ + ../../../../../temp/csp/ta_CDLPIERCING.o \ + ../../../../../temp/csp/ta_CDLRICKSHAWMAN.o \ + ../../../../../temp/csp/ta_CDLRISEFALL3METHODS.o \ + ../../../../../temp/csp/ta_CDLSEPARATINGLINES.o \ + ../../../../../temp/csp/ta_CDLSHOOTINGSTAR.o \ + ../../../../../temp/csp/ta_CDLSHORTLINE.o \ + ../../../../../temp/csp/ta_CDLSPINNINGTOP.o \ + ../../../../../temp/csp/ta_CDLSTALLEDPATTERN.o \ + ../../../../../temp/csp/ta_CDLSTICKSANDWICH.o \ + ../../../../../temp/csp/ta_CDLTAKURI.o \ + ../../../../../temp/csp/ta_CDLTASUKIGAP.o \ + ../../../../../temp/csp/ta_CDLTHRUSTING.o \ + ../../../../../temp/csp/ta_CDLTRISTAR.o \ + ../../../../../temp/csp/ta_CDLUNIQUE3RIVER.o \ + ../../../../../temp/csp/ta_CDLUPSIDEGAP2CROWS.o \ + ../../../../../temp/csp/ta_CDLXSIDEGAP3METHODS.o \ + ../../../../../temp/csp/ta_CEIL.o \ + ../../../../../temp/csp/ta_CMO.o \ + ../../../../../temp/csp/ta_CORREL.o \ + ../../../../../temp/csp/ta_COS.o \ + ../../../../../temp/csp/ta_COSH.o \ + ../../../../../temp/csp/ta_DEMA.o \ + ../../../../../temp/csp/ta_DIV.o \ + ../../../../../temp/csp/ta_DX.o \ + ../../../../../temp/csp/ta_EMA.o \ + ../../../../../temp/csp/ta_EXP.o \ + ../../../../../temp/csp/ta_FLOOR.o \ + ../../../../../temp/csp/ta_HT_DCPERIOD.o \ + ../../../../../temp/csp/ta_HT_DCPHASE.o \ + ../../../../../temp/csp/ta_HT_PHASOR.o \ + ../../../../../temp/csp/ta_HT_SINE.o \ + ../../../../../temp/csp/ta_HT_TRENDLINE.o \ + ../../../../../temp/csp/ta_HT_TRENDMODE.o \ + ../../../../../temp/csp/ta_KAMA.o \ + ../../../../../temp/csp/ta_LINEARREG.o \ + ../../../../../temp/csp/ta_LINEARREG_ANGLE.o \ + ../../../../../temp/csp/ta_LINEARREG_INTERCEPT.o \ + ../../../../../temp/csp/ta_LINEARREG_SLOPE.o \ + ../../../../../temp/csp/ta_LN.o \ + ../../../../../temp/csp/ta_LOG10.o \ + ../../../../../temp/csp/ta_MA.o \ + ../../../../../temp/csp/ta_MACD.o \ + ../../../../../temp/csp/ta_MACDEXT.o \ + ../../../../../temp/csp/ta_MACDFIX.o \ + ../../../../../temp/csp/ta_MAMA.o \ + ../../../../../temp/csp/ta_MAVP.o \ + ../../../../../temp/csp/ta_MAX.o \ + ../../../../../temp/csp/ta_MAXINDEX.o \ + ../../../../../temp/csp/ta_MEDPRICE.o \ + ../../../../../temp/csp/ta_MFI.o \ + ../../../../../temp/csp/ta_MIDPOINT.o \ + ../../../../../temp/csp/ta_MIDPRICE.o \ + ../../../../../temp/csp/ta_MIN.o \ + ../../../../../temp/csp/ta_MININDEX.o \ + ../../../../../temp/csp/ta_MINMAX.o \ + ../../../../../temp/csp/ta_MINMAXINDEX.o \ + ../../../../../temp/csp/ta_MINUS_DI.o \ + ../../../../../temp/csp/ta_MINUS_DM.o \ + ../../../../../temp/csp/ta_MOM.o \ + ../../../../../temp/csp/ta_MULT.o \ + ../../../../../temp/csp/ta_NATR.o \ + ../../../../../temp/csp/ta_OBV.o \ + ../../../../../temp/csp/ta_PLUS_DI.o \ + ../../../../../temp/csp/ta_PLUS_DM.o \ + ../../../../../temp/csp/ta_PPO.o \ + ../../../../../temp/csp/ta_ROC.o \ + ../../../../../temp/csp/ta_ROCP.o \ + ../../../../../temp/csp/ta_ROCR.o \ + ../../../../../temp/csp/ta_ROCR100.o \ + ../../../../../temp/csp/ta_RSI.o \ + ../../../../../temp/csp/ta_SAR.o \ + ../../../../../temp/csp/ta_SAREXT.o \ + ../../../../../temp/csp/ta_SIN.o \ + ../../../../../temp/csp/ta_SINH.o \ + ../../../../../temp/csp/ta_SMA.o \ + ../../../../../temp/csp/ta_SQRT.o \ + ../../../../../temp/csp/ta_STDDEV.o \ + ../../../../../temp/csp/ta_STOCH.o \ + ../../../../../temp/csp/ta_STOCHF.o \ + ../../../../../temp/csp/ta_STOCHRSI.o \ + ../../../../../temp/csp/ta_SUB.o \ + ../../../../../temp/csp/ta_SUM.o \ + ../../../../../temp/csp/ta_T3.o \ + ../../../../../temp/csp/ta_TAN.o \ + ../../../../../temp/csp/ta_TANH.o \ + ../../../../../temp/csp/ta_TEMA.o \ + ../../../../../temp/csp/ta_TRANGE.o \ + ../../../../../temp/csp/ta_TRIMA.o \ + ../../../../../temp/csp/ta_TRIX.o \ + ../../../../../temp/csp/ta_TSF.o \ + ../../../../../temp/csp/ta_TYPPRICE.o \ + ../../../../../temp/csp/ta_ULTOSC.o \ + ../../../../../temp/csp/ta_VAR.o \ + ../../../../../temp/csp/ta_WCLPRICE.o \ + ../../../../../temp/csp/ta_WILLR.o \ + ../../../../../temp/csp/ta_WMA.o +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ../../../../../lib/libta_libc_csp.a +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .C .c + +.cpp.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cxx.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cc.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.C.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.c.o: + $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $< + +####### Build rules + + +all: $(TARGET) + +staticlib: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + -rm -f $(TARGET) + $(AR) $(TARGET) $(OBJECTS) $(OBJMOC) + +moc: $(SRCMOC) + +clean: + -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) + -rm -f *~ core + +####### Sub-libraries + + +###### Combined headers + + +####### Compile + +../../../../../temp/csp/ta_global.o: ../../../../../src/ta_common/ta_global.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_global.o ../../../../../src/ta_common/ta_global.c + +../../../../../temp/csp/ta_retcode.o: ../../../../../src/ta_common/ta_retcode.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_retcode.o ../../../../../src/ta_common/ta_retcode.c + +../../../../../temp/csp/ta_version.o: ../../../../../src/ta_common/ta_version.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_version.o ../../../../../src/ta_common/ta_version.c + +../../../../../temp/csp/ta_abstract.o: ../../../../../src/ta_abstract/ta_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_abstract.o ../../../../../src/ta_abstract/ta_abstract.c + +../../../../../temp/csp/ta_def_ui.o: ../../../../../src/ta_abstract/ta_def_ui.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_def_ui.o ../../../../../src/ta_abstract/ta_def_ui.c + +../../../../../temp/csp/ta_func_api.o: ../../../../../src/ta_abstract/ta_func_api.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_func_api.o ../../../../../src/ta_abstract/ta_func_api.c + +../../../../../temp/csp/ta_group_idx.o: ../../../../../src/ta_abstract/ta_group_idx.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_group_idx.o ../../../../../src/ta_abstract/ta_group_idx.c + +../../../../../temp/csp/ta_frame.o: ../../../../../src/ta_abstract/frames/ta_frame.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_frame.o ../../../../../src/ta_abstract/frames/ta_frame.c + +../../../../../temp/csp/table_a.o: ../../../../../src/ta_abstract/tables/table_a.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_a.o ../../../../../src/ta_abstract/tables/table_a.c + +../../../../../temp/csp/table_b.o: ../../../../../src/ta_abstract/tables/table_b.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_b.o ../../../../../src/ta_abstract/tables/table_b.c + +../../../../../temp/csp/table_c.o: ../../../../../src/ta_abstract/tables/table_c.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_c.o ../../../../../src/ta_abstract/tables/table_c.c + +../../../../../temp/csp/table_d.o: ../../../../../src/ta_abstract/tables/table_d.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_d.o ../../../../../src/ta_abstract/tables/table_d.c + +../../../../../temp/csp/table_e.o: ../../../../../src/ta_abstract/tables/table_e.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_e.o ../../../../../src/ta_abstract/tables/table_e.c + +../../../../../temp/csp/table_f.o: ../../../../../src/ta_abstract/tables/table_f.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_f.o ../../../../../src/ta_abstract/tables/table_f.c + +../../../../../temp/csp/table_g.o: ../../../../../src/ta_abstract/tables/table_g.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_g.o ../../../../../src/ta_abstract/tables/table_g.c + +../../../../../temp/csp/table_h.o: ../../../../../src/ta_abstract/tables/table_h.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_h.o ../../../../../src/ta_abstract/tables/table_h.c + +../../../../../temp/csp/table_i.o: ../../../../../src/ta_abstract/tables/table_i.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_i.o ../../../../../src/ta_abstract/tables/table_i.c + +../../../../../temp/csp/table_j.o: ../../../../../src/ta_abstract/tables/table_j.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_j.o ../../../../../src/ta_abstract/tables/table_j.c + +../../../../../temp/csp/table_k.o: ../../../../../src/ta_abstract/tables/table_k.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_k.o ../../../../../src/ta_abstract/tables/table_k.c + +../../../../../temp/csp/table_l.o: ../../../../../src/ta_abstract/tables/table_l.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_l.o ../../../../../src/ta_abstract/tables/table_l.c + +../../../../../temp/csp/table_m.o: ../../../../../src/ta_abstract/tables/table_m.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_m.o ../../../../../src/ta_abstract/tables/table_m.c + +../../../../../temp/csp/table_n.o: ../../../../../src/ta_abstract/tables/table_n.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_n.o ../../../../../src/ta_abstract/tables/table_n.c + +../../../../../temp/csp/table_o.o: ../../../../../src/ta_abstract/tables/table_o.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_o.o ../../../../../src/ta_abstract/tables/table_o.c + +../../../../../temp/csp/table_p.o: ../../../../../src/ta_abstract/tables/table_p.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_p.o ../../../../../src/ta_abstract/tables/table_p.c + +../../../../../temp/csp/table_q.o: ../../../../../src/ta_abstract/tables/table_q.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_q.o ../../../../../src/ta_abstract/tables/table_q.c + +../../../../../temp/csp/table_r.o: ../../../../../src/ta_abstract/tables/table_r.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_r.o ../../../../../src/ta_abstract/tables/table_r.c + +../../../../../temp/csp/table_s.o: ../../../../../src/ta_abstract/tables/table_s.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_s.o ../../../../../src/ta_abstract/tables/table_s.c + +../../../../../temp/csp/table_t.o: ../../../../../src/ta_abstract/tables/table_t.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_t.o ../../../../../src/ta_abstract/tables/table_t.c + +../../../../../temp/csp/table_u.o: ../../../../../src/ta_abstract/tables/table_u.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_u.o ../../../../../src/ta_abstract/tables/table_u.c + +../../../../../temp/csp/table_v.o: ../../../../../src/ta_abstract/tables/table_v.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_v.o ../../../../../src/ta_abstract/tables/table_v.c + +../../../../../temp/csp/table_w.o: ../../../../../src/ta_abstract/tables/table_w.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_w.o ../../../../../src/ta_abstract/tables/table_w.c + +../../../../../temp/csp/table_x.o: ../../../../../src/ta_abstract/tables/table_x.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_x.o ../../../../../src/ta_abstract/tables/table_x.c + +../../../../../temp/csp/table_y.o: ../../../../../src/ta_abstract/tables/table_y.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_y.o ../../../../../src/ta_abstract/tables/table_y.c + +../../../../../temp/csp/table_z.o: ../../../../../src/ta_abstract/tables/table_z.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_z.o ../../../../../src/ta_abstract/tables/table_z.c + +../../../../../temp/csp/ta_utility.o: ../../../../../src/ta_func/ta_utility.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_utility.o ../../../../../src/ta_func/ta_utility.c + +../../../../../temp/csp/ta_ACOS.o: ../../../../../src/ta_func/ta_ACOS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_ACOS.o ../../../../../src/ta_func/ta_ACOS.c + +../../../../../temp/csp/ta_AD.o: ../../../../../src/ta_func/ta_AD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_AD.o ../../../../../src/ta_func/ta_AD.c + +../../../../../temp/csp/ta_ADD.o: ../../../../../src/ta_func/ta_ADD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_ADD.o ../../../../../src/ta_func/ta_ADD.c + +../../../../../temp/csp/ta_ADOSC.o: ../../../../../src/ta_func/ta_ADOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_ADOSC.o ../../../../../src/ta_func/ta_ADOSC.c + +../../../../../temp/csp/ta_ADX.o: ../../../../../src/ta_func/ta_ADX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_ADX.o ../../../../../src/ta_func/ta_ADX.c + +../../../../../temp/csp/ta_ADXR.o: ../../../../../src/ta_func/ta_ADXR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_ADXR.o ../../../../../src/ta_func/ta_ADXR.c + +../../../../../temp/csp/ta_APO.o: ../../../../../src/ta_func/ta_APO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_APO.o ../../../../../src/ta_func/ta_APO.c + +../../../../../temp/csp/ta_AROON.o: ../../../../../src/ta_func/ta_AROON.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_AROON.o ../../../../../src/ta_func/ta_AROON.c + +../../../../../temp/csp/ta_AROONOSC.o: ../../../../../src/ta_func/ta_AROONOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_AROONOSC.o ../../../../../src/ta_func/ta_AROONOSC.c + +../../../../../temp/csp/ta_ASIN.o: ../../../../../src/ta_func/ta_ASIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_ASIN.o ../../../../../src/ta_func/ta_ASIN.c + +../../../../../temp/csp/ta_ATAN.o: ../../../../../src/ta_func/ta_ATAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_ATAN.o ../../../../../src/ta_func/ta_ATAN.c + +../../../../../temp/csp/ta_ATR.o: ../../../../../src/ta_func/ta_ATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_ATR.o ../../../../../src/ta_func/ta_ATR.c + +../../../../../temp/csp/ta_AVGPRICE.o: ../../../../../src/ta_func/ta_AVGPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_AVGPRICE.o ../../../../../src/ta_func/ta_AVGPRICE.c + +../../../../../temp/csp/ta_BBANDS.o: ../../../../../src/ta_func/ta_BBANDS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_BBANDS.o ../../../../../src/ta_func/ta_BBANDS.c + +../../../../../temp/csp/ta_BETA.o: ../../../../../src/ta_func/ta_BETA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_BETA.o ../../../../../src/ta_func/ta_BETA.c + +../../../../../temp/csp/ta_BOP.o: ../../../../../src/ta_func/ta_BOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_BOP.o ../../../../../src/ta_func/ta_BOP.c + +../../../../../temp/csp/ta_CCI.o: ../../../../../src/ta_func/ta_CCI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CCI.o ../../../../../src/ta_func/ta_CCI.c + +../../../../../temp/csp/ta_CDL2CROWS.o: ../../../../../src/ta_func/ta_CDL2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDL2CROWS.o ../../../../../src/ta_func/ta_CDL2CROWS.c + +../../../../../temp/csp/ta_CDL3BLACKCROWS.o: ../../../../../src/ta_func/ta_CDL3BLACKCROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDL3BLACKCROWS.o ../../../../../src/ta_func/ta_CDL3BLACKCROWS.c + +../../../../../temp/csp/ta_CDL3INSIDE.o: ../../../../../src/ta_func/ta_CDL3INSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDL3INSIDE.o ../../../../../src/ta_func/ta_CDL3INSIDE.c + +../../../../../temp/csp/ta_CDL3LINESTRIKE.o: ../../../../../src/ta_func/ta_CDL3LINESTRIKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDL3LINESTRIKE.o ../../../../../src/ta_func/ta_CDL3LINESTRIKE.c + +../../../../../temp/csp/ta_CDL3OUTSIDE.o: ../../../../../src/ta_func/ta_CDL3OUTSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDL3OUTSIDE.o ../../../../../src/ta_func/ta_CDL3OUTSIDE.c + +../../../../../temp/csp/ta_CDL3STARSINSOUTH.o: ../../../../../src/ta_func/ta_CDL3STARSINSOUTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDL3STARSINSOUTH.o ../../../../../src/ta_func/ta_CDL3STARSINSOUTH.c + +../../../../../temp/csp/ta_CDL3WHITESOLDIERS.o: ../../../../../src/ta_func/ta_CDL3WHITESOLDIERS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDL3WHITESOLDIERS.o ../../../../../src/ta_func/ta_CDL3WHITESOLDIERS.c + +../../../../../temp/csp/ta_CDLABANDONEDBABY.o: ../../../../../src/ta_func/ta_CDLABANDONEDBABY.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLABANDONEDBABY.o ../../../../../src/ta_func/ta_CDLABANDONEDBABY.c + +../../../../../temp/csp/ta_CDLADVANCEBLOCK.o: ../../../../../src/ta_func/ta_CDLADVANCEBLOCK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLADVANCEBLOCK.o ../../../../../src/ta_func/ta_CDLADVANCEBLOCK.c + +../../../../../temp/csp/ta_CDLBELTHOLD.o: ../../../../../src/ta_func/ta_CDLBELTHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLBELTHOLD.o ../../../../../src/ta_func/ta_CDLBELTHOLD.c + +../../../../../temp/csp/ta_CDLBREAKAWAY.o: ../../../../../src/ta_func/ta_CDLBREAKAWAY.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLBREAKAWAY.o ../../../../../src/ta_func/ta_CDLBREAKAWAY.c + +../../../../../temp/csp/ta_CDLCLOSINGMARUBOZU.o: ../../../../../src/ta_func/ta_CDLCLOSINGMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLCLOSINGMARUBOZU.o ../../../../../src/ta_func/ta_CDLCLOSINGMARUBOZU.c + +../../../../../temp/csp/ta_CDLCONCEALBABYSWALL.o: ../../../../../src/ta_func/ta_CDLCONCEALBABYSWALL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLCONCEALBABYSWALL.o ../../../../../src/ta_func/ta_CDLCONCEALBABYSWALL.c + +../../../../../temp/csp/ta_CDLCOUNTERATTACK.o: ../../../../../src/ta_func/ta_CDLCOUNTERATTACK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLCOUNTERATTACK.o ../../../../../src/ta_func/ta_CDLCOUNTERATTACK.c + +../../../../../temp/csp/ta_CDLDARKCLOUDCOVER.o: ../../../../../src/ta_func/ta_CDLDARKCLOUDCOVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLDARKCLOUDCOVER.o ../../../../../src/ta_func/ta_CDLDARKCLOUDCOVER.c + +../../../../../temp/csp/ta_CDLDOJI.o: ../../../../../src/ta_func/ta_CDLDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLDOJI.o ../../../../../src/ta_func/ta_CDLDOJI.c + +../../../../../temp/csp/ta_CDLDOJISTAR.o: ../../../../../src/ta_func/ta_CDLDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLDOJISTAR.o ../../../../../src/ta_func/ta_CDLDOJISTAR.c + +../../../../../temp/csp/ta_CDLDRAGONFLYDOJI.o: ../../../../../src/ta_func/ta_CDLDRAGONFLYDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLDRAGONFLYDOJI.o ../../../../../src/ta_func/ta_CDLDRAGONFLYDOJI.c + +../../../../../temp/csp/ta_CDLENGULFING.o: ../../../../../src/ta_func/ta_CDLENGULFING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLENGULFING.o ../../../../../src/ta_func/ta_CDLENGULFING.c + +../../../../../temp/csp/ta_CDLEVENINGDOJISTAR.o: ../../../../../src/ta_func/ta_CDLEVENINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLEVENINGDOJISTAR.o ../../../../../src/ta_func/ta_CDLEVENINGDOJISTAR.c + +../../../../../temp/csp/ta_CDLEVENINGSTAR.o: ../../../../../src/ta_func/ta_CDLEVENINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLEVENINGSTAR.o ../../../../../src/ta_func/ta_CDLEVENINGSTAR.c + +../../../../../temp/csp/ta_CDLGAPSIDESIDEWHITE.o: ../../../../../src/ta_func/ta_CDLGAPSIDESIDEWHITE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLGAPSIDESIDEWHITE.o ../../../../../src/ta_func/ta_CDLGAPSIDESIDEWHITE.c + +../../../../../temp/csp/ta_CDLGRAVESTONEDOJI.o: ../../../../../src/ta_func/ta_CDLGRAVESTONEDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLGRAVESTONEDOJI.o ../../../../../src/ta_func/ta_CDLGRAVESTONEDOJI.c + +../../../../../temp/csp/ta_CDLHAMMER.o: ../../../../../src/ta_func/ta_CDLHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLHAMMER.o ../../../../../src/ta_func/ta_CDLHAMMER.c + +../../../../../temp/csp/ta_CDLHANGINGMAN.o: ../../../../../src/ta_func/ta_CDLHANGINGMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLHANGINGMAN.o ../../../../../src/ta_func/ta_CDLHANGINGMAN.c + +../../../../../temp/csp/ta_CDLHARAMI.o: ../../../../../src/ta_func/ta_CDLHARAMI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLHARAMI.o ../../../../../src/ta_func/ta_CDLHARAMI.c + +../../../../../temp/csp/ta_CDLHARAMICROSS.o: ../../../../../src/ta_func/ta_CDLHARAMICROSS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLHARAMICROSS.o ../../../../../src/ta_func/ta_CDLHARAMICROSS.c + +../../../../../temp/csp/ta_CDLHIGHWAVE.o: ../../../../../src/ta_func/ta_CDLHIGHWAVE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLHIGHWAVE.o ../../../../../src/ta_func/ta_CDLHIGHWAVE.c + +../../../../../temp/csp/ta_CDLHIKKAKE.o: ../../../../../src/ta_func/ta_CDLHIKKAKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLHIKKAKE.o ../../../../../src/ta_func/ta_CDLHIKKAKE.c + +../../../../../temp/csp/ta_CDLHIKKAKEMOD.o: ../../../../../src/ta_func/ta_CDLHIKKAKEMOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLHIKKAKEMOD.o ../../../../../src/ta_func/ta_CDLHIKKAKEMOD.c + +../../../../../temp/csp/ta_CDLHOMINGPIGEON.o: ../../../../../src/ta_func/ta_CDLHOMINGPIGEON.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLHOMINGPIGEON.o ../../../../../src/ta_func/ta_CDLHOMINGPIGEON.c + +../../../../../temp/csp/ta_CDLIDENTICAL3CROWS.o: ../../../../../src/ta_func/ta_CDLIDENTICAL3CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLIDENTICAL3CROWS.o ../../../../../src/ta_func/ta_CDLIDENTICAL3CROWS.c + +../../../../../temp/csp/ta_CDLINNECK.o: ../../../../../src/ta_func/ta_CDLINNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLINNECK.o ../../../../../src/ta_func/ta_CDLINNECK.c + +../../../../../temp/csp/ta_CDLINVERTEDHAMMER.o: ../../../../../src/ta_func/ta_CDLINVERTEDHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLINVERTEDHAMMER.o ../../../../../src/ta_func/ta_CDLINVERTEDHAMMER.c + +../../../../../temp/csp/ta_CDLKICKING.o: ../../../../../src/ta_func/ta_CDLKICKING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLKICKING.o ../../../../../src/ta_func/ta_CDLKICKING.c + +../../../../../temp/csp/ta_CDLKICKINGBYLENGTH.o: ../../../../../src/ta_func/ta_CDLKICKINGBYLENGTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLKICKINGBYLENGTH.o ../../../../../src/ta_func/ta_CDLKICKINGBYLENGTH.c + +../../../../../temp/csp/ta_CDLLADDERBOTTOM.o: ../../../../../src/ta_func/ta_CDLLADDERBOTTOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLLADDERBOTTOM.o ../../../../../src/ta_func/ta_CDLLADDERBOTTOM.c + +../../../../../temp/csp/ta_CDLLONGLEGGEDDOJI.o: ../../../../../src/ta_func/ta_CDLLONGLEGGEDDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLLONGLEGGEDDOJI.o ../../../../../src/ta_func/ta_CDLLONGLEGGEDDOJI.c + +../../../../../temp/csp/ta_CDLLONGLINE.o: ../../../../../src/ta_func/ta_CDLLONGLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLLONGLINE.o ../../../../../src/ta_func/ta_CDLLONGLINE.c + +../../../../../temp/csp/ta_CDLMARUBOZU.o: ../../../../../src/ta_func/ta_CDLMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLMARUBOZU.o ../../../../../src/ta_func/ta_CDLMARUBOZU.c + +../../../../../temp/csp/ta_CDLMATCHINGLOW.o: ../../../../../src/ta_func/ta_CDLMATCHINGLOW.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLMATCHINGLOW.o ../../../../../src/ta_func/ta_CDLMATCHINGLOW.c + +../../../../../temp/csp/ta_CDLMATHOLD.o: ../../../../../src/ta_func/ta_CDLMATHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLMATHOLD.o ../../../../../src/ta_func/ta_CDLMATHOLD.c + +../../../../../temp/csp/ta_CDLMORNINGDOJISTAR.o: ../../../../../src/ta_func/ta_CDLMORNINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLMORNINGDOJISTAR.o ../../../../../src/ta_func/ta_CDLMORNINGDOJISTAR.c + +../../../../../temp/csp/ta_CDLMORNINGSTAR.o: ../../../../../src/ta_func/ta_CDLMORNINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLMORNINGSTAR.o ../../../../../src/ta_func/ta_CDLMORNINGSTAR.c + +../../../../../temp/csp/ta_CDLONNECK.o: ../../../../../src/ta_func/ta_CDLONNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLONNECK.o ../../../../../src/ta_func/ta_CDLONNECK.c + +../../../../../temp/csp/ta_CDLPIERCING.o: ../../../../../src/ta_func/ta_CDLPIERCING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLPIERCING.o ../../../../../src/ta_func/ta_CDLPIERCING.c + +../../../../../temp/csp/ta_CDLRICKSHAWMAN.o: ../../../../../src/ta_func/ta_CDLRICKSHAWMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLRICKSHAWMAN.o ../../../../../src/ta_func/ta_CDLRICKSHAWMAN.c + +../../../../../temp/csp/ta_CDLRISEFALL3METHODS.o: ../../../../../src/ta_func/ta_CDLRISEFALL3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLRISEFALL3METHODS.o ../../../../../src/ta_func/ta_CDLRISEFALL3METHODS.c + +../../../../../temp/csp/ta_CDLSEPARATINGLINES.o: ../../../../../src/ta_func/ta_CDLSEPARATINGLINES.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLSEPARATINGLINES.o ../../../../../src/ta_func/ta_CDLSEPARATINGLINES.c + +../../../../../temp/csp/ta_CDLSHOOTINGSTAR.o: ../../../../../src/ta_func/ta_CDLSHOOTINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLSHOOTINGSTAR.o ../../../../../src/ta_func/ta_CDLSHOOTINGSTAR.c + +../../../../../temp/csp/ta_CDLSHORTLINE.o: ../../../../../src/ta_func/ta_CDLSHORTLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLSHORTLINE.o ../../../../../src/ta_func/ta_CDLSHORTLINE.c + +../../../../../temp/csp/ta_CDLSPINNINGTOP.o: ../../../../../src/ta_func/ta_CDLSPINNINGTOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLSPINNINGTOP.o ../../../../../src/ta_func/ta_CDLSPINNINGTOP.c + +../../../../../temp/csp/ta_CDLSTALLEDPATTERN.o: ../../../../../src/ta_func/ta_CDLSTALLEDPATTERN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLSTALLEDPATTERN.o ../../../../../src/ta_func/ta_CDLSTALLEDPATTERN.c + +../../../../../temp/csp/ta_CDLSTICKSANDWICH.o: ../../../../../src/ta_func/ta_CDLSTICKSANDWICH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLSTICKSANDWICH.o ../../../../../src/ta_func/ta_CDLSTICKSANDWICH.c + +../../../../../temp/csp/ta_CDLTAKURI.o: ../../../../../src/ta_func/ta_CDLTAKURI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLTAKURI.o ../../../../../src/ta_func/ta_CDLTAKURI.c + +../../../../../temp/csp/ta_CDLTASUKIGAP.o: ../../../../../src/ta_func/ta_CDLTASUKIGAP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLTASUKIGAP.o ../../../../../src/ta_func/ta_CDLTASUKIGAP.c + +../../../../../temp/csp/ta_CDLTHRUSTING.o: ../../../../../src/ta_func/ta_CDLTHRUSTING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLTHRUSTING.o ../../../../../src/ta_func/ta_CDLTHRUSTING.c + +../../../../../temp/csp/ta_CDLTRISTAR.o: ../../../../../src/ta_func/ta_CDLTRISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLTRISTAR.o ../../../../../src/ta_func/ta_CDLTRISTAR.c + +../../../../../temp/csp/ta_CDLUNIQUE3RIVER.o: ../../../../../src/ta_func/ta_CDLUNIQUE3RIVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLUNIQUE3RIVER.o ../../../../../src/ta_func/ta_CDLUNIQUE3RIVER.c + +../../../../../temp/csp/ta_CDLUPSIDEGAP2CROWS.o: ../../../../../src/ta_func/ta_CDLUPSIDEGAP2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLUPSIDEGAP2CROWS.o ../../../../../src/ta_func/ta_CDLUPSIDEGAP2CROWS.c + +../../../../../temp/csp/ta_CDLXSIDEGAP3METHODS.o: ../../../../../src/ta_func/ta_CDLXSIDEGAP3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLXSIDEGAP3METHODS.o ../../../../../src/ta_func/ta_CDLXSIDEGAP3METHODS.c + +../../../../../temp/csp/ta_CEIL.o: ../../../../../src/ta_func/ta_CEIL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CEIL.o ../../../../../src/ta_func/ta_CEIL.c + +../../../../../temp/csp/ta_CMO.o: ../../../../../src/ta_func/ta_CMO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CMO.o ../../../../../src/ta_func/ta_CMO.c + +../../../../../temp/csp/ta_CORREL.o: ../../../../../src/ta_func/ta_CORREL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CORREL.o ../../../../../src/ta_func/ta_CORREL.c + +../../../../../temp/csp/ta_COS.o: ../../../../../src/ta_func/ta_COS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_COS.o ../../../../../src/ta_func/ta_COS.c + +../../../../../temp/csp/ta_COSH.o: ../../../../../src/ta_func/ta_COSH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_COSH.o ../../../../../src/ta_func/ta_COSH.c + +../../../../../temp/csp/ta_DEMA.o: ../../../../../src/ta_func/ta_DEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_DEMA.o ../../../../../src/ta_func/ta_DEMA.c + +../../../../../temp/csp/ta_DIV.o: ../../../../../src/ta_func/ta_DIV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_DIV.o ../../../../../src/ta_func/ta_DIV.c + +../../../../../temp/csp/ta_DX.o: ../../../../../src/ta_func/ta_DX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_DX.o ../../../../../src/ta_func/ta_DX.c + +../../../../../temp/csp/ta_EMA.o: ../../../../../src/ta_func/ta_EMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_EMA.o ../../../../../src/ta_func/ta_EMA.c + +../../../../../temp/csp/ta_EXP.o: ../../../../../src/ta_func/ta_EXP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_EXP.o ../../../../../src/ta_func/ta_EXP.c + +../../../../../temp/csp/ta_FLOOR.o: ../../../../../src/ta_func/ta_FLOOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_FLOOR.o ../../../../../src/ta_func/ta_FLOOR.c + +../../../../../temp/csp/ta_HT_DCPERIOD.o: ../../../../../src/ta_func/ta_HT_DCPERIOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_HT_DCPERIOD.o ../../../../../src/ta_func/ta_HT_DCPERIOD.c + +../../../../../temp/csp/ta_HT_DCPHASE.o: ../../../../../src/ta_func/ta_HT_DCPHASE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_HT_DCPHASE.o ../../../../../src/ta_func/ta_HT_DCPHASE.c + +../../../../../temp/csp/ta_HT_PHASOR.o: ../../../../../src/ta_func/ta_HT_PHASOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_HT_PHASOR.o ../../../../../src/ta_func/ta_HT_PHASOR.c + +../../../../../temp/csp/ta_HT_SINE.o: ../../../../../src/ta_func/ta_HT_SINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_HT_SINE.o ../../../../../src/ta_func/ta_HT_SINE.c + +../../../../../temp/csp/ta_HT_TRENDLINE.o: ../../../../../src/ta_func/ta_HT_TRENDLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_HT_TRENDLINE.o ../../../../../src/ta_func/ta_HT_TRENDLINE.c + +../../../../../temp/csp/ta_HT_TRENDMODE.o: ../../../../../src/ta_func/ta_HT_TRENDMODE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_HT_TRENDMODE.o ../../../../../src/ta_func/ta_HT_TRENDMODE.c + +../../../../../temp/csp/ta_KAMA.o: ../../../../../src/ta_func/ta_KAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_KAMA.o ../../../../../src/ta_func/ta_KAMA.c + +../../../../../temp/csp/ta_LINEARREG.o: ../../../../../src/ta_func/ta_LINEARREG.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_LINEARREG.o ../../../../../src/ta_func/ta_LINEARREG.c + +../../../../../temp/csp/ta_LINEARREG_ANGLE.o: ../../../../../src/ta_func/ta_LINEARREG_ANGLE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_LINEARREG_ANGLE.o ../../../../../src/ta_func/ta_LINEARREG_ANGLE.c + +../../../../../temp/csp/ta_LINEARREG_INTERCEPT.o: ../../../../../src/ta_func/ta_LINEARREG_INTERCEPT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_LINEARREG_INTERCEPT.o ../../../../../src/ta_func/ta_LINEARREG_INTERCEPT.c + +../../../../../temp/csp/ta_LINEARREG_SLOPE.o: ../../../../../src/ta_func/ta_LINEARREG_SLOPE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_LINEARREG_SLOPE.o ../../../../../src/ta_func/ta_LINEARREG_SLOPE.c + +../../../../../temp/csp/ta_LN.o: ../../../../../src/ta_func/ta_LN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_LN.o ../../../../../src/ta_func/ta_LN.c + +../../../../../temp/csp/ta_LOG10.o: ../../../../../src/ta_func/ta_LOG10.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_LOG10.o ../../../../../src/ta_func/ta_LOG10.c + +../../../../../temp/csp/ta_MA.o: ../../../../../src/ta_func/ta_MA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_MA.o ../../../../../src/ta_func/ta_MA.c + +../../../../../temp/csp/ta_MACD.o: ../../../../../src/ta_func/ta_MACD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_MACD.o ../../../../../src/ta_func/ta_MACD.c + +../../../../../temp/csp/ta_MACDEXT.o: ../../../../../src/ta_func/ta_MACDEXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_MACDEXT.o ../../../../../src/ta_func/ta_MACDEXT.c + +../../../../../temp/csp/ta_MACDFIX.o: ../../../../../src/ta_func/ta_MACDFIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_MACDFIX.o ../../../../../src/ta_func/ta_MACDFIX.c + +../../../../../temp/csp/ta_MAMA.o: ../../../../../src/ta_func/ta_MAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_MAMA.o ../../../../../src/ta_func/ta_MAMA.c + +../../../../../temp/csp/ta_MAVP.o: ../../../../../src/ta_func/ta_MAVP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_MAVP.o ../../../../../src/ta_func/ta_MAVP.c + +../../../../../temp/csp/ta_MAX.o: ../../../../../src/ta_func/ta_MAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_MAX.o ../../../../../src/ta_func/ta_MAX.c + +../../../../../temp/csp/ta_MAXINDEX.o: ../../../../../src/ta_func/ta_MAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_MAXINDEX.o ../../../../../src/ta_func/ta_MAXINDEX.c + +../../../../../temp/csp/ta_MEDPRICE.o: ../../../../../src/ta_func/ta_MEDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_MEDPRICE.o ../../../../../src/ta_func/ta_MEDPRICE.c + +../../../../../temp/csp/ta_MFI.o: ../../../../../src/ta_func/ta_MFI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_MFI.o ../../../../../src/ta_func/ta_MFI.c + +../../../../../temp/csp/ta_MIDPOINT.o: ../../../../../src/ta_func/ta_MIDPOINT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_MIDPOINT.o ../../../../../src/ta_func/ta_MIDPOINT.c + +../../../../../temp/csp/ta_MIDPRICE.o: ../../../../../src/ta_func/ta_MIDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_MIDPRICE.o ../../../../../src/ta_func/ta_MIDPRICE.c + +../../../../../temp/csp/ta_MIN.o: ../../../../../src/ta_func/ta_MIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_MIN.o ../../../../../src/ta_func/ta_MIN.c + +../../../../../temp/csp/ta_MININDEX.o: ../../../../../src/ta_func/ta_MININDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_MININDEX.o ../../../../../src/ta_func/ta_MININDEX.c + +../../../../../temp/csp/ta_MINMAX.o: ../../../../../src/ta_func/ta_MINMAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_MINMAX.o ../../../../../src/ta_func/ta_MINMAX.c + +../../../../../temp/csp/ta_MINMAXINDEX.o: ../../../../../src/ta_func/ta_MINMAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_MINMAXINDEX.o ../../../../../src/ta_func/ta_MINMAXINDEX.c + +../../../../../temp/csp/ta_MINUS_DI.o: ../../../../../src/ta_func/ta_MINUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_MINUS_DI.o ../../../../../src/ta_func/ta_MINUS_DI.c + +../../../../../temp/csp/ta_MINUS_DM.o: ../../../../../src/ta_func/ta_MINUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_MINUS_DM.o ../../../../../src/ta_func/ta_MINUS_DM.c + +../../../../../temp/csp/ta_MOM.o: ../../../../../src/ta_func/ta_MOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_MOM.o ../../../../../src/ta_func/ta_MOM.c + +../../../../../temp/csp/ta_MULT.o: ../../../../../src/ta_func/ta_MULT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_MULT.o ../../../../../src/ta_func/ta_MULT.c + +../../../../../temp/csp/ta_NATR.o: ../../../../../src/ta_func/ta_NATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_NATR.o ../../../../../src/ta_func/ta_NATR.c + +../../../../../temp/csp/ta_OBV.o: ../../../../../src/ta_func/ta_OBV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_OBV.o ../../../../../src/ta_func/ta_OBV.c + +../../../../../temp/csp/ta_PLUS_DI.o: ../../../../../src/ta_func/ta_PLUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_PLUS_DI.o ../../../../../src/ta_func/ta_PLUS_DI.c + +../../../../../temp/csp/ta_PLUS_DM.o: ../../../../../src/ta_func/ta_PLUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_PLUS_DM.o ../../../../../src/ta_func/ta_PLUS_DM.c + +../../../../../temp/csp/ta_PPO.o: ../../../../../src/ta_func/ta_PPO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_PPO.o ../../../../../src/ta_func/ta_PPO.c + +../../../../../temp/csp/ta_ROC.o: ../../../../../src/ta_func/ta_ROC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_ROC.o ../../../../../src/ta_func/ta_ROC.c + +../../../../../temp/csp/ta_ROCP.o: ../../../../../src/ta_func/ta_ROCP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_ROCP.o ../../../../../src/ta_func/ta_ROCP.c + +../../../../../temp/csp/ta_ROCR.o: ../../../../../src/ta_func/ta_ROCR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_ROCR.o ../../../../../src/ta_func/ta_ROCR.c + +../../../../../temp/csp/ta_ROCR100.o: ../../../../../src/ta_func/ta_ROCR100.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_ROCR100.o ../../../../../src/ta_func/ta_ROCR100.c + +../../../../../temp/csp/ta_RSI.o: ../../../../../src/ta_func/ta_RSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_RSI.o ../../../../../src/ta_func/ta_RSI.c + +../../../../../temp/csp/ta_SAR.o: ../../../../../src/ta_func/ta_SAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_SAR.o ../../../../../src/ta_func/ta_SAR.c + +../../../../../temp/csp/ta_SAREXT.o: ../../../../../src/ta_func/ta_SAREXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_SAREXT.o ../../../../../src/ta_func/ta_SAREXT.c + +../../../../../temp/csp/ta_SIN.o: ../../../../../src/ta_func/ta_SIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_SIN.o ../../../../../src/ta_func/ta_SIN.c + +../../../../../temp/csp/ta_SINH.o: ../../../../../src/ta_func/ta_SINH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_SINH.o ../../../../../src/ta_func/ta_SINH.c + +../../../../../temp/csp/ta_SMA.o: ../../../../../src/ta_func/ta_SMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_SMA.o ../../../../../src/ta_func/ta_SMA.c + +../../../../../temp/csp/ta_SQRT.o: ../../../../../src/ta_func/ta_SQRT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_SQRT.o ../../../../../src/ta_func/ta_SQRT.c + +../../../../../temp/csp/ta_STDDEV.o: ../../../../../src/ta_func/ta_STDDEV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_STDDEV.o ../../../../../src/ta_func/ta_STDDEV.c + +../../../../../temp/csp/ta_STOCH.o: ../../../../../src/ta_func/ta_STOCH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_STOCH.o ../../../../../src/ta_func/ta_STOCH.c + +../../../../../temp/csp/ta_STOCHF.o: ../../../../../src/ta_func/ta_STOCHF.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_STOCHF.o ../../../../../src/ta_func/ta_STOCHF.c + +../../../../../temp/csp/ta_STOCHRSI.o: ../../../../../src/ta_func/ta_STOCHRSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_STOCHRSI.o ../../../../../src/ta_func/ta_STOCHRSI.c + +../../../../../temp/csp/ta_SUB.o: ../../../../../src/ta_func/ta_SUB.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_SUB.o ../../../../../src/ta_func/ta_SUB.c + +../../../../../temp/csp/ta_SUM.o: ../../../../../src/ta_func/ta_SUM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_SUM.o ../../../../../src/ta_func/ta_SUM.c + +../../../../../temp/csp/ta_T3.o: ../../../../../src/ta_func/ta_T3.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_T3.o ../../../../../src/ta_func/ta_T3.c + +../../../../../temp/csp/ta_TAN.o: ../../../../../src/ta_func/ta_TAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_TAN.o ../../../../../src/ta_func/ta_TAN.c + +../../../../../temp/csp/ta_TANH.o: ../../../../../src/ta_func/ta_TANH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_TANH.o ../../../../../src/ta_func/ta_TANH.c + +../../../../../temp/csp/ta_TEMA.o: ../../../../../src/ta_func/ta_TEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_TEMA.o ../../../../../src/ta_func/ta_TEMA.c + +../../../../../temp/csp/ta_TRANGE.o: ../../../../../src/ta_func/ta_TRANGE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_TRANGE.o ../../../../../src/ta_func/ta_TRANGE.c + +../../../../../temp/csp/ta_TRIMA.o: ../../../../../src/ta_func/ta_TRIMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_TRIMA.o ../../../../../src/ta_func/ta_TRIMA.c + +../../../../../temp/csp/ta_TRIX.o: ../../../../../src/ta_func/ta_TRIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_TRIX.o ../../../../../src/ta_func/ta_TRIX.c + +../../../../../temp/csp/ta_TSF.o: ../../../../../src/ta_func/ta_TSF.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_TSF.o ../../../../../src/ta_func/ta_TSF.c + +../../../../../temp/csp/ta_TYPPRICE.o: ../../../../../src/ta_func/ta_TYPPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_TYPPRICE.o ../../../../../src/ta_func/ta_TYPPRICE.c + +../../../../../temp/csp/ta_ULTOSC.o: ../../../../../src/ta_func/ta_ULTOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_ULTOSC.o ../../../../../src/ta_func/ta_ULTOSC.c + +../../../../../temp/csp/ta_VAR.o: ../../../../../src/ta_func/ta_VAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_VAR.o ../../../../../src/ta_func/ta_VAR.c + +../../../../../temp/csp/ta_WCLPRICE.o: ../../../../../src/ta_func/ta_WCLPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_WCLPRICE.o ../../../../../src/ta_func/ta_WCLPRICE.c + +../../../../../temp/csp/ta_WILLR.o: ../../../../../src/ta_func/ta_WILLR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_WILLR.o ../../../../../src/ta_func/ta_WILLR.c + +../../../../../temp/csp/ta_WMA.o: ../../../../../src/ta_func/ta_WMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_WMA.o ../../../../../src/ta_func/ta_WMA.c + diff --git a/make/csp/freebsd/g++/ta_regtest/Makefile b/make/csp/freebsd/g++/ta_regtest/Makefile new file mode 100644 index 000000000..1c75921d5 --- /dev/null +++ b/make/csp/freebsd/g++/ta_regtest/Makefile @@ -0,0 +1,205 @@ +############################################################################# +# Makefile for building ../../../../../bin/ta_regtest +# Generated by tmake; +# Project: ta_regtest/ta_regtest +# Template: app +############################################################################# + +####### Compiler, tools and options + +CC = gcc +CXX = g++ +CFLAGS = -pipe -Wall -W -g -O -pg -DTA_DEBUG -D_DEBUG -DTA_SINGLE_THREAD +CXXFLAGS= -pipe -Wall -W -g -DTA_DEBUG -D_DEBUG -DTA_SINGLE_THREAD +INCPATH = -I../../../../../src/ta_common -I../../../../../src/tools/ta_regtest -I../../../../../src/ta_func -I../../../../../include -I/usr/local/include +LINK = g++ +LFLAGS = -L/usr/local/lib -pg +LIBS = $(SUBLIBS) ../../../../../lib/libta_libc_csp.a +MOC = $(QTDIR)/bin/moc +UIC = $(QTDIR)/bin/uic + +TAR = tar -cf +GZIP = gzip -9f + +####### Apply additional overruling user flags, if any +CFLAGS += $(CUSERFLAGS) +CXXFLAGS += $(CUSERFLAGS) + +####### Files + +HEADERS = +SOURCES = ../../../../../src/tools/ta_regtest/ta_regtest.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_candlestick.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_1in_1out.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_1in_2out.c \ + ../../../../../src/tools/ta_regtest/test_internals.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_adx.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_bbands.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_ma.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_macd.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_minmax.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_mom.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_per_ema.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hl.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hlc.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hlcv.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_per_ohlc.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_po.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_rsi.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_sar.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_stddev.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_stoch.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_trange.c \ + ../../../../../src/tools/ta_regtest/test_util.c \ + ../../../../../src/tools/ta_regtest/test_data.c \ + ../../../../../src/tools/ta_regtest/test_abstract.c +OBJECTS = ../../../../../temp/csp/ta_regtest.o \ + ../../../../../temp/csp/test_candlestick.o \ + ../../../../../temp/csp/test_1in_1out.o \ + ../../../../../temp/csp/test_1in_2out.o \ + ../../../../../temp/csp/test_internals.o \ + ../../../../../temp/csp/test_adx.o \ + ../../../../../temp/csp/test_bbands.o \ + ../../../../../temp/csp/test_ma.o \ + ../../../../../temp/csp/test_macd.o \ + ../../../../../temp/csp/test_minmax.o \ + ../../../../../temp/csp/test_mom.o \ + ../../../../../temp/csp/test_per_ema.o \ + ../../../../../temp/csp/test_per_hl.o \ + ../../../../../temp/csp/test_per_hlc.o \ + ../../../../../temp/csp/test_per_hlcv.o \ + ../../../../../temp/csp/test_per_ohlc.o \ + ../../../../../temp/csp/test_po.o \ + ../../../../../temp/csp/test_rsi.o \ + ../../../../../temp/csp/test_sar.o \ + ../../../../../temp/csp/test_stddev.o \ + ../../../../../temp/csp/test_stoch.o \ + ../../../../../temp/csp/test_trange.o \ + ../../../../../temp/csp/test_util.o \ + ../../../../../temp/csp/test_data.o \ + ../../../../../temp/csp/test_abstract.o +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ../../../../../bin/ta_regtest +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .C .c + +.cpp.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cxx.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cc.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.C.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.c.o: + $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $< + +####### Build rules + + +all: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS) + +moc: $(SRCMOC) + +clean: + -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) + -rm -f *~ core + +####### Sub-libraries + + +###### Combined headers + + +####### Compile + +../../../../../temp/csp/ta_regtest.o: ../../../../../src/tools/ta_regtest/ta_regtest.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_regtest.o ../../../../../src/tools/ta_regtest/ta_regtest.c + +../../../../../temp/csp/test_candlestick.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_candlestick.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/test_candlestick.o ../../../../../src/tools/ta_regtest/ta_test_func/test_candlestick.c + +../../../../../temp/csp/test_1in_1out.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_1in_1out.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/test_1in_1out.o ../../../../../src/tools/ta_regtest/ta_test_func/test_1in_1out.c + +../../../../../temp/csp/test_1in_2out.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_1in_2out.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/test_1in_2out.o ../../../../../src/tools/ta_regtest/ta_test_func/test_1in_2out.c + +../../../../../temp/csp/test_internals.o: ../../../../../src/tools/ta_regtest/test_internals.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/test_internals.o ../../../../../src/tools/ta_regtest/test_internals.c + +../../../../../temp/csp/test_adx.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_adx.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/test_adx.o ../../../../../src/tools/ta_regtest/ta_test_func/test_adx.c + +../../../../../temp/csp/test_bbands.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_bbands.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/test_bbands.o ../../../../../src/tools/ta_regtest/ta_test_func/test_bbands.c + +../../../../../temp/csp/test_ma.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_ma.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/test_ma.o ../../../../../src/tools/ta_regtest/ta_test_func/test_ma.c + +../../../../../temp/csp/test_macd.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_macd.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/test_macd.o ../../../../../src/tools/ta_regtest/ta_test_func/test_macd.c + +../../../../../temp/csp/test_minmax.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_minmax.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/test_minmax.o ../../../../../src/tools/ta_regtest/ta_test_func/test_minmax.c + +../../../../../temp/csp/test_mom.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_mom.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/test_mom.o ../../../../../src/tools/ta_regtest/ta_test_func/test_mom.c + +../../../../../temp/csp/test_per_ema.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_per_ema.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/test_per_ema.o ../../../../../src/tools/ta_regtest/ta_test_func/test_per_ema.c + +../../../../../temp/csp/test_per_hl.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hl.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/test_per_hl.o ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hl.c + +../../../../../temp/csp/test_per_hlc.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hlc.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/test_per_hlc.o ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hlc.c + +../../../../../temp/csp/test_per_hlcv.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hlcv.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/test_per_hlcv.o ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hlcv.c + +../../../../../temp/csp/test_per_ohlc.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_per_ohlc.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/test_per_ohlc.o ../../../../../src/tools/ta_regtest/ta_test_func/test_per_ohlc.c + +../../../../../temp/csp/test_po.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_po.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/test_po.o ../../../../../src/tools/ta_regtest/ta_test_func/test_po.c + +../../../../../temp/csp/test_rsi.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_rsi.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/test_rsi.o ../../../../../src/tools/ta_regtest/ta_test_func/test_rsi.c + +../../../../../temp/csp/test_sar.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_sar.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/test_sar.o ../../../../../src/tools/ta_regtest/ta_test_func/test_sar.c + +../../../../../temp/csp/test_stddev.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_stddev.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/test_stddev.o ../../../../../src/tools/ta_regtest/ta_test_func/test_stddev.c + +../../../../../temp/csp/test_stoch.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_stoch.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/test_stoch.o ../../../../../src/tools/ta_regtest/ta_test_func/test_stoch.c + +../../../../../temp/csp/test_trange.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_trange.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/test_trange.o ../../../../../src/tools/ta_regtest/ta_test_func/test_trange.c + +../../../../../temp/csp/test_util.o: ../../../../../src/tools/ta_regtest/test_util.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/test_util.o ../../../../../src/tools/ta_regtest/test_util.c + +../../../../../temp/csp/test_data.o: ../../../../../src/tools/ta_regtest/test_data.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/test_data.o ../../../../../src/tools/ta_regtest/test_data.c + +../../../../../temp/csp/test_abstract.o: ../../../../../src/tools/ta_regtest/test_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/test_abstract.o ../../../../../src/tools/ta_regtest/test_abstract.c + diff --git a/make/csp/linux/g++/Makefile b/make/csp/linux/g++/Makefile new file mode 100644 index 000000000..1d8de8a6b --- /dev/null +++ b/make/csp/linux/g++/Makefile @@ -0,0 +1,36 @@ +############################################################################# +# Makefile for building targets in sub directories. +# Generated by tmake; +# Project: rootmake +# Template: subdirs +############################################################################# + +MAKEFILE= Makefile +TMAKE = tmake + +SUBDIRS = ta_common \ + ta_func \ + ta_abstract \ + ta_libc \ + gen_code \ + ta_regtest + +all: $(SUBDIRS) + +$(SUBDIRS): FORCE + cd $@; $(MAKE) + +tmake: ../csp/linux/g++/Makefile + +../csp/linux/g++/Makefile: rootmake.pro + tmake rootmake.pro -o ../csp/linux/g++/Makefile + +tmake_all: + for i in $(SUBDIRS); do ( if [ -d $$i ]; then cd $$i ; $(MAKE) -f $(MAKEFILE) tmake_all || true; fi; ) ; done + +#### $text = "\t" . 'for i in $(SUBDIRS); do ( if [ -d $$i ]; then cd $$i ; pro=`basename $$i`.pro ; $(TMAKE) $$pro -o $(MAKEFILE); grep "TEMPLATE.*subdirs" $$pro 2>/dev/null >/dev/null && $(MAKE) -f $(MAKEFILE) tmake_all || true; fi; ) ; done'; + +clean release debug: + for i in $(SUBDIRS); do ( if [ -d $$i ]; then cd $$i ; $(MAKE) $@; fi; ) ; done + +FORCE: diff --git a/make/csp/linux/g++/gen_code/Makefile b/make/csp/linux/g++/gen_code/Makefile new file mode 100644 index 000000000..58d298f7c --- /dev/null +++ b/make/csp/linux/g++/gen_code/Makefile @@ -0,0 +1,231 @@ +############################################################################# +# Makefile for building ../../../../../bin/gen_code +# Generated by tmake; +# Project: gen_code/gen_code +# Template: app +############################################################################# + +####### Compiler, tools and options + +CC = gcc +CXX = g++ +CFLAGS = -pipe -fPIC -Wall -W -g -O -pg -DTA_GEN_CODE -DTA_DEBUG -D_DEBUG -DTA_SINGLE_THREAD +CXXFLAGS= -pipe -fPIC -Wall -W -g -DTA_GEN_CODE -DTA_DEBUG -D_DEBUG -DTA_SINGLE_THREAD +INCPATH = -I../../../../../include -I../../../../../src/ta_common -I../../../../../src/ta_abstract -I../../../../../src/ta_abstract/tables -I../../../../../src/ta_abstract/frames +LINK = g++ +LFLAGS = -pg +LIBS = $(SUBLIBS) ../../../../../lib/libta_common_csp.a -ldl +MOC = $(QTDIR)/bin/moc +UIC = $(QTDIR)/bin/uic + +TAR = tar -cf +GZIP = gzip -9f + +####### Support for 64-bit systems +ifeq ($(shell uname -m), x86_64) + CFLAGS += -march=x86-64 -m64 -D__64BIT__ + CXXFLAGS += -march=x86-64 -m64 -D__64BIT__ +endif + +####### Apply additional overruling user flags, if any +CFLAGS += $(CUSERFLAGS) +CXXFLAGS += $(CUSERFLAGS) + +####### Files + +HEADERS = +SOURCES = ../../../../../src/tools/gen_code/gen_code.c \ + ../../../../../src/ta_abstract/ta_abstract.c \ + ../../../../../src/ta_abstract/ta_def_ui.c \ + ../../../../../src/ta_abstract/tables/table_a.c \ + ../../../../../src/ta_abstract/tables/table_b.c \ + ../../../../../src/ta_abstract/tables/table_c.c \ + ../../../../../src/ta_abstract/tables/table_d.c \ + ../../../../../src/ta_abstract/tables/table_e.c \ + ../../../../../src/ta_abstract/tables/table_f.c \ + ../../../../../src/ta_abstract/tables/table_g.c \ + ../../../../../src/ta_abstract/tables/table_h.c \ + ../../../../../src/ta_abstract/tables/table_i.c \ + ../../../../../src/ta_abstract/tables/table_j.c \ + ../../../../../src/ta_abstract/tables/table_k.c \ + ../../../../../src/ta_abstract/tables/table_l.c \ + ../../../../../src/ta_abstract/tables/table_m.c \ + ../../../../../src/ta_abstract/tables/table_n.c \ + ../../../../../src/ta_abstract/tables/table_o.c \ + ../../../../../src/ta_abstract/tables/table_p.c \ + ../../../../../src/ta_abstract/tables/table_q.c \ + ../../../../../src/ta_abstract/tables/table_r.c \ + ../../../../../src/ta_abstract/tables/table_s.c \ + ../../../../../src/ta_abstract/tables/table_t.c \ + ../../../../../src/ta_abstract/tables/table_u.c \ + ../../../../../src/ta_abstract/tables/table_v.c \ + ../../../../../src/ta_abstract/tables/table_w.c \ + ../../../../../src/ta_abstract/tables/table_x.c \ + ../../../../../src/ta_abstract/tables/table_y.c \ + ../../../../../src/ta_abstract/tables/table_z.c +OBJECTS = ../../../../../temp/csp/gen_code/gen_code.o \ + ../../../../../temp/csp/gen_code/ta_abstract.o \ + ../../../../../temp/csp/gen_code/ta_def_ui.o \ + ../../../../../temp/csp/gen_code/table_a.o \ + ../../../../../temp/csp/gen_code/table_b.o \ + ../../../../../temp/csp/gen_code/table_c.o \ + ../../../../../temp/csp/gen_code/table_d.o \ + ../../../../../temp/csp/gen_code/table_e.o \ + ../../../../../temp/csp/gen_code/table_f.o \ + ../../../../../temp/csp/gen_code/table_g.o \ + ../../../../../temp/csp/gen_code/table_h.o \ + ../../../../../temp/csp/gen_code/table_i.o \ + ../../../../../temp/csp/gen_code/table_j.o \ + ../../../../../temp/csp/gen_code/table_k.o \ + ../../../../../temp/csp/gen_code/table_l.o \ + ../../../../../temp/csp/gen_code/table_m.o \ + ../../../../../temp/csp/gen_code/table_n.o \ + ../../../../../temp/csp/gen_code/table_o.o \ + ../../../../../temp/csp/gen_code/table_p.o \ + ../../../../../temp/csp/gen_code/table_q.o \ + ../../../../../temp/csp/gen_code/table_r.o \ + ../../../../../temp/csp/gen_code/table_s.o \ + ../../../../../temp/csp/gen_code/table_t.o \ + ../../../../../temp/csp/gen_code/table_u.o \ + ../../../../../temp/csp/gen_code/table_v.o \ + ../../../../../temp/csp/gen_code/table_w.o \ + ../../../../../temp/csp/gen_code/table_x.o \ + ../../../../../temp/csp/gen_code/table_y.o \ + ../../../../../temp/csp/gen_code/table_z.o +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ../../../../../bin/gen_code +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .C .c + +.cpp.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cxx.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cc.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.C.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.c.o: + $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $< + +####### Build rules + + +all: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS) + +moc: $(SRCMOC) + +clean: + -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) + -rm -f *~ core + +####### Sub-libraries + + +###### Combined headers + + +####### Compile + +../../../../../temp/csp/gen_code/gen_code.o: ../../../../../src/tools/gen_code/gen_code.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/gen_code/gen_code.o ../../../../../src/tools/gen_code/gen_code.c + +../../../../../temp/csp/gen_code/ta_abstract.o: ../../../../../src/ta_abstract/ta_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/gen_code/ta_abstract.o ../../../../../src/ta_abstract/ta_abstract.c + +../../../../../temp/csp/gen_code/ta_def_ui.o: ../../../../../src/ta_abstract/ta_def_ui.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/gen_code/ta_def_ui.o ../../../../../src/ta_abstract/ta_def_ui.c + +../../../../../temp/csp/gen_code/table_a.o: ../../../../../src/ta_abstract/tables/table_a.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/gen_code/table_a.o ../../../../../src/ta_abstract/tables/table_a.c + +../../../../../temp/csp/gen_code/table_b.o: ../../../../../src/ta_abstract/tables/table_b.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/gen_code/table_b.o ../../../../../src/ta_abstract/tables/table_b.c + +../../../../../temp/csp/gen_code/table_c.o: ../../../../../src/ta_abstract/tables/table_c.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/gen_code/table_c.o ../../../../../src/ta_abstract/tables/table_c.c + +../../../../../temp/csp/gen_code/table_d.o: ../../../../../src/ta_abstract/tables/table_d.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/gen_code/table_d.o ../../../../../src/ta_abstract/tables/table_d.c + +../../../../../temp/csp/gen_code/table_e.o: ../../../../../src/ta_abstract/tables/table_e.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/gen_code/table_e.o ../../../../../src/ta_abstract/tables/table_e.c + +../../../../../temp/csp/gen_code/table_f.o: ../../../../../src/ta_abstract/tables/table_f.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/gen_code/table_f.o ../../../../../src/ta_abstract/tables/table_f.c + +../../../../../temp/csp/gen_code/table_g.o: ../../../../../src/ta_abstract/tables/table_g.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/gen_code/table_g.o ../../../../../src/ta_abstract/tables/table_g.c + +../../../../../temp/csp/gen_code/table_h.o: ../../../../../src/ta_abstract/tables/table_h.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/gen_code/table_h.o ../../../../../src/ta_abstract/tables/table_h.c + +../../../../../temp/csp/gen_code/table_i.o: ../../../../../src/ta_abstract/tables/table_i.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/gen_code/table_i.o ../../../../../src/ta_abstract/tables/table_i.c + +../../../../../temp/csp/gen_code/table_j.o: ../../../../../src/ta_abstract/tables/table_j.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/gen_code/table_j.o ../../../../../src/ta_abstract/tables/table_j.c + +../../../../../temp/csp/gen_code/table_k.o: ../../../../../src/ta_abstract/tables/table_k.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/gen_code/table_k.o ../../../../../src/ta_abstract/tables/table_k.c + +../../../../../temp/csp/gen_code/table_l.o: ../../../../../src/ta_abstract/tables/table_l.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/gen_code/table_l.o ../../../../../src/ta_abstract/tables/table_l.c + +../../../../../temp/csp/gen_code/table_m.o: ../../../../../src/ta_abstract/tables/table_m.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/gen_code/table_m.o ../../../../../src/ta_abstract/tables/table_m.c + +../../../../../temp/csp/gen_code/table_n.o: ../../../../../src/ta_abstract/tables/table_n.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/gen_code/table_n.o ../../../../../src/ta_abstract/tables/table_n.c + +../../../../../temp/csp/gen_code/table_o.o: ../../../../../src/ta_abstract/tables/table_o.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/gen_code/table_o.o ../../../../../src/ta_abstract/tables/table_o.c + +../../../../../temp/csp/gen_code/table_p.o: ../../../../../src/ta_abstract/tables/table_p.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/gen_code/table_p.o ../../../../../src/ta_abstract/tables/table_p.c + +../../../../../temp/csp/gen_code/table_q.o: ../../../../../src/ta_abstract/tables/table_q.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/gen_code/table_q.o ../../../../../src/ta_abstract/tables/table_q.c + +../../../../../temp/csp/gen_code/table_r.o: ../../../../../src/ta_abstract/tables/table_r.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/gen_code/table_r.o ../../../../../src/ta_abstract/tables/table_r.c + +../../../../../temp/csp/gen_code/table_s.o: ../../../../../src/ta_abstract/tables/table_s.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/gen_code/table_s.o ../../../../../src/ta_abstract/tables/table_s.c + +../../../../../temp/csp/gen_code/table_t.o: ../../../../../src/ta_abstract/tables/table_t.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/gen_code/table_t.o ../../../../../src/ta_abstract/tables/table_t.c + +../../../../../temp/csp/gen_code/table_u.o: ../../../../../src/ta_abstract/tables/table_u.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/gen_code/table_u.o ../../../../../src/ta_abstract/tables/table_u.c + +../../../../../temp/csp/gen_code/table_v.o: ../../../../../src/ta_abstract/tables/table_v.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/gen_code/table_v.o ../../../../../src/ta_abstract/tables/table_v.c + +../../../../../temp/csp/gen_code/table_w.o: ../../../../../src/ta_abstract/tables/table_w.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/gen_code/table_w.o ../../../../../src/ta_abstract/tables/table_w.c + +../../../../../temp/csp/gen_code/table_x.o: ../../../../../src/ta_abstract/tables/table_x.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/gen_code/table_x.o ../../../../../src/ta_abstract/tables/table_x.c + +../../../../../temp/csp/gen_code/table_y.o: ../../../../../src/ta_abstract/tables/table_y.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/gen_code/table_y.o ../../../../../src/ta_abstract/tables/table_y.c + +../../../../../temp/csp/gen_code/table_z.o: ../../../../../src/ta_abstract/tables/table_z.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/gen_code/table_z.o ../../../../../src/ta_abstract/tables/table_z.c + diff --git a/make/csp/linux/g++/ta_abstract/Makefile b/make/csp/linux/g++/ta_abstract/Makefile new file mode 100644 index 000000000..17c50dfd6 --- /dev/null +++ b/make/csp/linux/g++/ta_abstract/Makefile @@ -0,0 +1,243 @@ +############################################################################# +# Makefile for building ../../../../../lib/libta_abstract_csp.a +# Generated by tmake; +# Project: ta_abstract/ta_abstract +# Template: lib +############################################################################# + +####### Compiler, tools and options + +CC = gcc +CXX = g++ +CFLAGS = -pipe -fPIC -Wall -W -g -O -pg -DTA_DEBUG -D_DEBUG -DTA_SINGLE_THREAD +CXXFLAGS= -pipe -fPIC -Wall -W -g -DTA_DEBUG -D_DEBUG -DTA_SINGLE_THREAD +INCPATH = -I../../../../../src/ta_common -I../../../../../src/ta_abstract -I../../../../../src/ta_abstract/tables -I../../../../../src/ta_abstract/frames -I../../../../../include +AR = ar cqs +RANLIB = +MOC = $(QTDIR)/bin/moc +UIC = $(QTDIR)/bin/uic + +TAR = tar -cf +GZIP = gzip -9f + +####### Support for 64-bit systems +ifeq ($(shell uname -m), x86_64) + CFLAGS += -march=x86-64 -m64 -D__64BIT__ + CXXFLAGS += -march=x86-64 -m64 -D__64BIT__ +endif + +####### Apply additional overruling user flags, if any +CFLAGS += $(CUSERFLAGS) +CXXFLAGS += $(CUSERFLAGS) + +####### Files + +HEADERS = +SOURCES = ../../../../../src/ta_abstract/ta_abstract.c \ + ../../../../../src/ta_abstract/ta_def_ui.c \ + ../../../../../src/ta_abstract/ta_func_api.c \ + ../../../../../src/ta_abstract/ta_group_idx.c \ + ../../../../../src/ta_abstract/frames/ta_frame.c \ + ../../../../../src/ta_abstract/tables/table_a.c \ + ../../../../../src/ta_abstract/tables/table_b.c \ + ../../../../../src/ta_abstract/tables/table_c.c \ + ../../../../../src/ta_abstract/tables/table_d.c \ + ../../../../../src/ta_abstract/tables/table_e.c \ + ../../../../../src/ta_abstract/tables/table_f.c \ + ../../../../../src/ta_abstract/tables/table_g.c \ + ../../../../../src/ta_abstract/tables/table_h.c \ + ../../../../../src/ta_abstract/tables/table_i.c \ + ../../../../../src/ta_abstract/tables/table_j.c \ + ../../../../../src/ta_abstract/tables/table_k.c \ + ../../../../../src/ta_abstract/tables/table_l.c \ + ../../../../../src/ta_abstract/tables/table_m.c \ + ../../../../../src/ta_abstract/tables/table_n.c \ + ../../../../../src/ta_abstract/tables/table_o.c \ + ../../../../../src/ta_abstract/tables/table_p.c \ + ../../../../../src/ta_abstract/tables/table_q.c \ + ../../../../../src/ta_abstract/tables/table_r.c \ + ../../../../../src/ta_abstract/tables/table_s.c \ + ../../../../../src/ta_abstract/tables/table_t.c \ + ../../../../../src/ta_abstract/tables/table_u.c \ + ../../../../../src/ta_abstract/tables/table_v.c \ + ../../../../../src/ta_abstract/tables/table_w.c \ + ../../../../../src/ta_abstract/tables/table_x.c \ + ../../../../../src/ta_abstract/tables/table_y.c \ + ../../../../../src/ta_abstract/tables/table_z.c +OBJECTS = ../../../../../temp/csp/ta_abstract.o \ + ../../../../../temp/csp/ta_def_ui.o \ + ../../../../../temp/csp/ta_func_api.o \ + ../../../../../temp/csp/ta_group_idx.o \ + ../../../../../temp/csp/ta_frame.o \ + ../../../../../temp/csp/table_a.o \ + ../../../../../temp/csp/table_b.o \ + ../../../../../temp/csp/table_c.o \ + ../../../../../temp/csp/table_d.o \ + ../../../../../temp/csp/table_e.o \ + ../../../../../temp/csp/table_f.o \ + ../../../../../temp/csp/table_g.o \ + ../../../../../temp/csp/table_h.o \ + ../../../../../temp/csp/table_i.o \ + ../../../../../temp/csp/table_j.o \ + ../../../../../temp/csp/table_k.o \ + ../../../../../temp/csp/table_l.o \ + ../../../../../temp/csp/table_m.o \ + ../../../../../temp/csp/table_n.o \ + ../../../../../temp/csp/table_o.o \ + ../../../../../temp/csp/table_p.o \ + ../../../../../temp/csp/table_q.o \ + ../../../../../temp/csp/table_r.o \ + ../../../../../temp/csp/table_s.o \ + ../../../../../temp/csp/table_t.o \ + ../../../../../temp/csp/table_u.o \ + ../../../../../temp/csp/table_v.o \ + ../../../../../temp/csp/table_w.o \ + ../../../../../temp/csp/table_x.o \ + ../../../../../temp/csp/table_y.o \ + ../../../../../temp/csp/table_z.o +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ../../../../../lib/libta_abstract_csp.a +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .C .c + +.cpp.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cxx.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cc.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.C.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.c.o: + $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $< + +####### Build rules + + +all: $(TARGET) + +staticlib: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + -rm -f $(TARGET) + $(AR) $(TARGET) $(OBJECTS) $(OBJMOC) + +moc: $(SRCMOC) + +clean: + -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) + -rm -f *~ core + +####### Sub-libraries + + +###### Combined headers + + +####### Compile + +../../../../../temp/csp/ta_abstract.o: ../../../../../src/ta_abstract/ta_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_abstract.o ../../../../../src/ta_abstract/ta_abstract.c + +../../../../../temp/csp/ta_def_ui.o: ../../../../../src/ta_abstract/ta_def_ui.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_def_ui.o ../../../../../src/ta_abstract/ta_def_ui.c + +../../../../../temp/csp/ta_func_api.o: ../../../../../src/ta_abstract/ta_func_api.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_func_api.o ../../../../../src/ta_abstract/ta_func_api.c + +../../../../../temp/csp/ta_group_idx.o: ../../../../../src/ta_abstract/ta_group_idx.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_group_idx.o ../../../../../src/ta_abstract/ta_group_idx.c + +../../../../../temp/csp/ta_frame.o: ../../../../../src/ta_abstract/frames/ta_frame.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_frame.o ../../../../../src/ta_abstract/frames/ta_frame.c + +../../../../../temp/csp/table_a.o: ../../../../../src/ta_abstract/tables/table_a.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_a.o ../../../../../src/ta_abstract/tables/table_a.c + +../../../../../temp/csp/table_b.o: ../../../../../src/ta_abstract/tables/table_b.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_b.o ../../../../../src/ta_abstract/tables/table_b.c + +../../../../../temp/csp/table_c.o: ../../../../../src/ta_abstract/tables/table_c.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_c.o ../../../../../src/ta_abstract/tables/table_c.c + +../../../../../temp/csp/table_d.o: ../../../../../src/ta_abstract/tables/table_d.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_d.o ../../../../../src/ta_abstract/tables/table_d.c + +../../../../../temp/csp/table_e.o: ../../../../../src/ta_abstract/tables/table_e.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_e.o ../../../../../src/ta_abstract/tables/table_e.c + +../../../../../temp/csp/table_f.o: ../../../../../src/ta_abstract/tables/table_f.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_f.o ../../../../../src/ta_abstract/tables/table_f.c + +../../../../../temp/csp/table_g.o: ../../../../../src/ta_abstract/tables/table_g.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_g.o ../../../../../src/ta_abstract/tables/table_g.c + +../../../../../temp/csp/table_h.o: ../../../../../src/ta_abstract/tables/table_h.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_h.o ../../../../../src/ta_abstract/tables/table_h.c + +../../../../../temp/csp/table_i.o: ../../../../../src/ta_abstract/tables/table_i.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_i.o ../../../../../src/ta_abstract/tables/table_i.c + +../../../../../temp/csp/table_j.o: ../../../../../src/ta_abstract/tables/table_j.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_j.o ../../../../../src/ta_abstract/tables/table_j.c + +../../../../../temp/csp/table_k.o: ../../../../../src/ta_abstract/tables/table_k.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_k.o ../../../../../src/ta_abstract/tables/table_k.c + +../../../../../temp/csp/table_l.o: ../../../../../src/ta_abstract/tables/table_l.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_l.o ../../../../../src/ta_abstract/tables/table_l.c + +../../../../../temp/csp/table_m.o: ../../../../../src/ta_abstract/tables/table_m.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_m.o ../../../../../src/ta_abstract/tables/table_m.c + +../../../../../temp/csp/table_n.o: ../../../../../src/ta_abstract/tables/table_n.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_n.o ../../../../../src/ta_abstract/tables/table_n.c + +../../../../../temp/csp/table_o.o: ../../../../../src/ta_abstract/tables/table_o.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_o.o ../../../../../src/ta_abstract/tables/table_o.c + +../../../../../temp/csp/table_p.o: ../../../../../src/ta_abstract/tables/table_p.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_p.o ../../../../../src/ta_abstract/tables/table_p.c + +../../../../../temp/csp/table_q.o: ../../../../../src/ta_abstract/tables/table_q.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_q.o ../../../../../src/ta_abstract/tables/table_q.c + +../../../../../temp/csp/table_r.o: ../../../../../src/ta_abstract/tables/table_r.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_r.o ../../../../../src/ta_abstract/tables/table_r.c + +../../../../../temp/csp/table_s.o: ../../../../../src/ta_abstract/tables/table_s.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_s.o ../../../../../src/ta_abstract/tables/table_s.c + +../../../../../temp/csp/table_t.o: ../../../../../src/ta_abstract/tables/table_t.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_t.o ../../../../../src/ta_abstract/tables/table_t.c + +../../../../../temp/csp/table_u.o: ../../../../../src/ta_abstract/tables/table_u.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_u.o ../../../../../src/ta_abstract/tables/table_u.c + +../../../../../temp/csp/table_v.o: ../../../../../src/ta_abstract/tables/table_v.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_v.o ../../../../../src/ta_abstract/tables/table_v.c + +../../../../../temp/csp/table_w.o: ../../../../../src/ta_abstract/tables/table_w.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_w.o ../../../../../src/ta_abstract/tables/table_w.c + +../../../../../temp/csp/table_x.o: ../../../../../src/ta_abstract/tables/table_x.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_x.o ../../../../../src/ta_abstract/tables/table_x.c + +../../../../../temp/csp/table_y.o: ../../../../../src/ta_abstract/tables/table_y.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_y.o ../../../../../src/ta_abstract/tables/table_y.c + +../../../../../temp/csp/table_z.o: ../../../../../src/ta_abstract/tables/table_z.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_z.o ../../../../../src/ta_abstract/tables/table_z.c + diff --git a/make/csp/linux/g++/ta_common/Makefile b/make/csp/linux/g++/ta_common/Makefile new file mode 100644 index 000000000..d4c55f13b --- /dev/null +++ b/make/csp/linux/g++/ta_common/Makefile @@ -0,0 +1,103 @@ +############################################################################# +# Makefile for building ../../../../../lib/libta_common_csp.a +# Generated by tmake; +# Project: ta_common/ta_common +# Template: lib +############################################################################# + +####### Compiler, tools and options + +CC = gcc +CXX = g++ +CFLAGS = -pipe -fPIC -Wall -W -g -O -pg -DTA_DEBUG -D_DEBUG -DTA_SINGLE_THREAD +CXXFLAGS= -pipe -fPIC -Wall -W -g -DTA_DEBUG -D_DEBUG -DTA_SINGLE_THREAD +INCPATH = -I../../../../../src/ta_common -I../../../../../include +AR = ar cqs +RANLIB = +MOC = $(QTDIR)/bin/moc +UIC = $(QTDIR)/bin/uic + +TAR = tar -cf +GZIP = gzip -9f + +####### Support for 64-bit systems +ifeq ($(shell uname -m), x86_64) + CFLAGS += -march=x86-64 -m64 -D__64BIT__ + CXXFLAGS += -march=x86-64 -m64 -D__64BIT__ +endif + +####### Apply additional overruling user flags, if any +CFLAGS += $(CUSERFLAGS) +CXXFLAGS += $(CUSERFLAGS) + +####### Files + +HEADERS = +SOURCES = ../../../../../src/ta_common/ta_global.c \ + ../../../../../src/ta_common/ta_retcode.c \ + ../../../../../src/ta_common/ta_version.c +OBJECTS = ../../../../../temp/csp/ta_global.o \ + ../../../../../temp/csp/ta_retcode.o \ + ../../../../../temp/csp/ta_version.o +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ../../../../../lib/libta_common_csp.a +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .C .c + +.cpp.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cxx.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cc.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.C.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.c.o: + $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $< + +####### Build rules + + +all: $(TARGET) + +staticlib: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + -rm -f $(TARGET) + $(AR) $(TARGET) $(OBJECTS) $(OBJMOC) + +moc: $(SRCMOC) + +clean: + -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) + -rm -f *~ core + +####### Sub-libraries + + +###### Combined headers + + +####### Compile + +../../../../../temp/csp/ta_global.o: ../../../../../src/ta_common/ta_global.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_global.o ../../../../../src/ta_common/ta_global.c + +../../../../../temp/csp/ta_retcode.o: ../../../../../src/ta_common/ta_retcode.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_retcode.o ../../../../../src/ta_common/ta_retcode.c + +../../../../../temp/csp/ta_version.o: ../../../../../src/ta_common/ta_version.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_version.o ../../../../../src/ta_common/ta_version.c + diff --git a/make/csp/linux/g++/ta_func/Makefile b/make/csp/linux/g++/ta_func/Makefile new file mode 100644 index 000000000..fd318a2c4 --- /dev/null +++ b/make/csp/linux/g++/ta_func/Makefile @@ -0,0 +1,883 @@ +############################################################################# +# Makefile for building ../../../../../lib/libta_func_csp.a +# Generated by tmake; +# Project: ta_func/ta_func +# Template: lib +############################################################################# + +####### Compiler, tools and options + +CC = gcc +CXX = g++ +CFLAGS = -pipe -fPIC -Wall -W -g -O -pg -DTA_DEBUG -D_DEBUG -DTA_SINGLE_THREAD +CXXFLAGS= -pipe -fPIC -Wall -W -g -DTA_DEBUG -D_DEBUG -DTA_SINGLE_THREAD +INCPATH = -I../../../../../src/ta_common -I/n -I../../../../../include +AR = ar cqs +RANLIB = +MOC = $(QTDIR)/bin/moc +UIC = $(QTDIR)/bin/uic + +TAR = tar -cf +GZIP = gzip -9f + +####### Support for 64-bit systems +ifeq ($(shell uname -m), x86_64) + CFLAGS += -march=x86-64 -m64 -D__64BIT__ + CXXFLAGS += -march=x86-64 -m64 -D__64BIT__ +endif + +####### Apply additional overruling user flags, if any +CFLAGS += $(CUSERFLAGS) +CXXFLAGS += $(CUSERFLAGS) + +####### Files + +HEADERS = +SOURCES = ../../../../../src/ta_func/ta_utility.c \ + ../../../../../src/ta_func/ta_ACOS.c \ + ../../../../../src/ta_func/ta_AD.c \ + ../../../../../src/ta_func/ta_ADD.c \ + ../../../../../src/ta_func/ta_ADOSC.c \ + ../../../../../src/ta_func/ta_ADX.c \ + ../../../../../src/ta_func/ta_ADXR.c \ + ../../../../../src/ta_func/ta_APO.c \ + ../../../../../src/ta_func/ta_AROON.c \ + ../../../../../src/ta_func/ta_AROONOSC.c \ + ../../../../../src/ta_func/ta_ASIN.c \ + ../../../../../src/ta_func/ta_ATAN.c \ + ../../../../../src/ta_func/ta_ATR.c \ + ../../../../../src/ta_func/ta_AVGPRICE.c \ + ../../../../../src/ta_func/ta_BBANDS.c \ + ../../../../../src/ta_func/ta_BETA.c \ + ../../../../../src/ta_func/ta_BOP.c \ + ../../../../../src/ta_func/ta_CCI.c \ + ../../../../../src/ta_func/ta_CDL2CROWS.c \ + ../../../../../src/ta_func/ta_CDL3BLACKCROWS.c \ + ../../../../../src/ta_func/ta_CDL3INSIDE.c \ + ../../../../../src/ta_func/ta_CDL3LINESTRIKE.c \ + ../../../../../src/ta_func/ta_CDL3OUTSIDE.c \ + ../../../../../src/ta_func/ta_CDL3STARSINSOUTH.c \ + ../../../../../src/ta_func/ta_CDL3WHITESOLDIERS.c \ + ../../../../../src/ta_func/ta_CDLABANDONEDBABY.c \ + ../../../../../src/ta_func/ta_CDLADVANCEBLOCK.c \ + ../../../../../src/ta_func/ta_CDLBELTHOLD.c \ + ../../../../../src/ta_func/ta_CDLBREAKAWAY.c \ + ../../../../../src/ta_func/ta_CDLCLOSINGMARUBOZU.c \ + ../../../../../src/ta_func/ta_CDLCONCEALBABYSWALL.c \ + ../../../../../src/ta_func/ta_CDLCOUNTERATTACK.c \ + ../../../../../src/ta_func/ta_CDLDARKCLOUDCOVER.c \ + ../../../../../src/ta_func/ta_CDLDOJI.c \ + ../../../../../src/ta_func/ta_CDLDOJISTAR.c \ + ../../../../../src/ta_func/ta_CDLDRAGONFLYDOJI.c \ + ../../../../../src/ta_func/ta_CDLENGULFING.c \ + ../../../../../src/ta_func/ta_CDLEVENINGDOJISTAR.c \ + ../../../../../src/ta_func/ta_CDLEVENINGSTAR.c \ + ../../../../../src/ta_func/ta_CDLGAPSIDESIDEWHITE.c \ + ../../../../../src/ta_func/ta_CDLGRAVESTONEDOJI.c \ + ../../../../../src/ta_func/ta_CDLHAMMER.c \ + ../../../../../src/ta_func/ta_CDLHANGINGMAN.c \ + ../../../../../src/ta_func/ta_CDLHARAMI.c \ + ../../../../../src/ta_func/ta_CDLHARAMICROSS.c \ + ../../../../../src/ta_func/ta_CDLHIGHWAVE.c \ + ../../../../../src/ta_func/ta_CDLHIKKAKE.c \ + ../../../../../src/ta_func/ta_CDLHIKKAKEMOD.c \ + ../../../../../src/ta_func/ta_CDLHOMINGPIGEON.c \ + ../../../../../src/ta_func/ta_CDLIDENTICAL3CROWS.c \ + ../../../../../src/ta_func/ta_CDLINNECK.c \ + ../../../../../src/ta_func/ta_CDLINVERTEDHAMMER.c \ + ../../../../../src/ta_func/ta_CDLKICKING.c \ + ../../../../../src/ta_func/ta_CDLKICKINGBYLENGTH.c \ + ../../../../../src/ta_func/ta_CDLLADDERBOTTOM.c \ + ../../../../../src/ta_func/ta_CDLLONGLEGGEDDOJI.c \ + ../../../../../src/ta_func/ta_CDLLONGLINE.c \ + ../../../../../src/ta_func/ta_CDLMARUBOZU.c \ + ../../../../../src/ta_func/ta_CDLMATCHINGLOW.c \ + ../../../../../src/ta_func/ta_CDLMATHOLD.c \ + ../../../../../src/ta_func/ta_CDLMORNINGDOJISTAR.c \ + ../../../../../src/ta_func/ta_CDLMORNINGSTAR.c \ + ../../../../../src/ta_func/ta_CDLONNECK.c \ + ../../../../../src/ta_func/ta_CDLPIERCING.c \ + ../../../../../src/ta_func/ta_CDLRICKSHAWMAN.c \ + ../../../../../src/ta_func/ta_CDLRISEFALL3METHODS.c \ + ../../../../../src/ta_func/ta_CDLSEPARATINGLINES.c \ + ../../../../../src/ta_func/ta_CDLSHOOTINGSTAR.c \ + ../../../../../src/ta_func/ta_CDLSHORTLINE.c \ + ../../../../../src/ta_func/ta_CDLSPINNINGTOP.c \ + ../../../../../src/ta_func/ta_CDLSTALLEDPATTERN.c \ + ../../../../../src/ta_func/ta_CDLSTICKSANDWICH.c \ + ../../../../../src/ta_func/ta_CDLTAKURI.c \ + ../../../../../src/ta_func/ta_CDLTASUKIGAP.c \ + ../../../../../src/ta_func/ta_CDLTHRUSTING.c \ + ../../../../../src/ta_func/ta_CDLTRISTAR.c \ + ../../../../../src/ta_func/ta_CDLUNIQUE3RIVER.c \ + ../../../../../src/ta_func/ta_CDLUPSIDEGAP2CROWS.c \ + ../../../../../src/ta_func/ta_CDLXSIDEGAP3METHODS.c \ + ../../../../../src/ta_func/ta_CEIL.c \ + ../../../../../src/ta_func/ta_CMO.c \ + ../../../../../src/ta_func/ta_CORREL.c \ + ../../../../../src/ta_func/ta_COS.c \ + ../../../../../src/ta_func/ta_COSH.c \ + ../../../../../src/ta_func/ta_DEMA.c \ + ../../../../../src/ta_func/ta_DIV.c \ + ../../../../../src/ta_func/ta_DX.c \ + ../../../../../src/ta_func/ta_EMA.c \ + ../../../../../src/ta_func/ta_EXP.c \ + ../../../../../src/ta_func/ta_FLOOR.c \ + ../../../../../src/ta_func/ta_HT_DCPERIOD.c \ + ../../../../../src/ta_func/ta_HT_DCPHASE.c \ + ../../../../../src/ta_func/ta_HT_PHASOR.c \ + ../../../../../src/ta_func/ta_HT_SINE.c \ + ../../../../../src/ta_func/ta_HT_TRENDLINE.c \ + ../../../../../src/ta_func/ta_HT_TRENDMODE.c \ + ../../../../../src/ta_func/ta_KAMA.c \ + ../../../../../src/ta_func/ta_LINEARREG.c \ + ../../../../../src/ta_func/ta_LINEARREG_ANGLE.c \ + ../../../../../src/ta_func/ta_LINEARREG_INTERCEPT.c \ + ../../../../../src/ta_func/ta_LINEARREG_SLOPE.c \ + ../../../../../src/ta_func/ta_LN.c \ + ../../../../../src/ta_func/ta_LOG10.c \ + ../../../../../src/ta_func/ta_MA.c \ + ../../../../../src/ta_func/ta_MACD.c \ + ../../../../../src/ta_func/ta_MACDEXT.c \ + ../../../../../src/ta_func/ta_MACDFIX.c \ + ../../../../../src/ta_func/ta_MAMA.c \ + ../../../../../src/ta_func/ta_MAVP.c \ + ../../../../../src/ta_func/ta_MAX.c \ + ../../../../../src/ta_func/ta_MAXINDEX.c \ + ../../../../../src/ta_func/ta_MEDPRICE.c \ + ../../../../../src/ta_func/ta_MFI.c \ + ../../../../../src/ta_func/ta_MIDPOINT.c \ + ../../../../../src/ta_func/ta_MIDPRICE.c \ + ../../../../../src/ta_func/ta_MIN.c \ + ../../../../../src/ta_func/ta_MININDEX.c \ + ../../../../../src/ta_func/ta_MINMAX.c \ + ../../../../../src/ta_func/ta_MINMAXINDEX.c \ + ../../../../../src/ta_func/ta_MINUS_DI.c \ + ../../../../../src/ta_func/ta_MINUS_DM.c \ + ../../../../../src/ta_func/ta_MOM.c \ + ../../../../../src/ta_func/ta_MULT.c \ + ../../../../../src/ta_func/ta_NATR.c \ + ../../../../../src/ta_func/ta_OBV.c \ + ../../../../../src/ta_func/ta_PLUS_DI.c \ + ../../../../../src/ta_func/ta_PLUS_DM.c \ + ../../../../../src/ta_func/ta_PPO.c \ + ../../../../../src/ta_func/ta_ROC.c \ + ../../../../../src/ta_func/ta_ROCP.c \ + ../../../../../src/ta_func/ta_ROCR.c \ + ../../../../../src/ta_func/ta_ROCR100.c \ + ../../../../../src/ta_func/ta_RSI.c \ + ../../../../../src/ta_func/ta_SAR.c \ + ../../../../../src/ta_func/ta_SAREXT.c \ + ../../../../../src/ta_func/ta_SIN.c \ + ../../../../../src/ta_func/ta_SINH.c \ + ../../../../../src/ta_func/ta_SMA.c \ + ../../../../../src/ta_func/ta_SQRT.c \ + ../../../../../src/ta_func/ta_STDDEV.c \ + ../../../../../src/ta_func/ta_STOCH.c \ + ../../../../../src/ta_func/ta_STOCHF.c \ + ../../../../../src/ta_func/ta_STOCHRSI.c \ + ../../../../../src/ta_func/ta_SUB.c \ + ../../../../../src/ta_func/ta_SUM.c \ + ../../../../../src/ta_func/ta_T3.c \ + ../../../../../src/ta_func/ta_TAN.c \ + ../../../../../src/ta_func/ta_TANH.c \ + ../../../../../src/ta_func/ta_TEMA.c \ + ../../../../../src/ta_func/ta_TRANGE.c \ + ../../../../../src/ta_func/ta_TRIMA.c \ + ../../../../../src/ta_func/ta_TRIX.c \ + ../../../../../src/ta_func/ta_TSF.c \ + ../../../../../src/ta_func/ta_TYPPRICE.c \ + ../../../../../src/ta_func/ta_ULTOSC.c \ + ../../../../../src/ta_func/ta_VAR.c \ + ../../../../../src/ta_func/ta_WCLPRICE.c \ + ../../../../../src/ta_func/ta_WILLR.c \ + ../../../../../src/ta_func/ta_WMA.c +OBJECTS = ../../../../../temp/csp/ta_utility.o \ + ../../../../../temp/csp/ta_ACOS.o \ + ../../../../../temp/csp/ta_AD.o \ + ../../../../../temp/csp/ta_ADD.o \ + ../../../../../temp/csp/ta_ADOSC.o \ + ../../../../../temp/csp/ta_ADX.o \ + ../../../../../temp/csp/ta_ADXR.o \ + ../../../../../temp/csp/ta_APO.o \ + ../../../../../temp/csp/ta_AROON.o \ + ../../../../../temp/csp/ta_AROONOSC.o \ + ../../../../../temp/csp/ta_ASIN.o \ + ../../../../../temp/csp/ta_ATAN.o \ + ../../../../../temp/csp/ta_ATR.o \ + ../../../../../temp/csp/ta_AVGPRICE.o \ + ../../../../../temp/csp/ta_BBANDS.o \ + ../../../../../temp/csp/ta_BETA.o \ + ../../../../../temp/csp/ta_BOP.o \ + ../../../../../temp/csp/ta_CCI.o \ + ../../../../../temp/csp/ta_CDL2CROWS.o \ + ../../../../../temp/csp/ta_CDL3BLACKCROWS.o \ + ../../../../../temp/csp/ta_CDL3INSIDE.o \ + ../../../../../temp/csp/ta_CDL3LINESTRIKE.o \ + ../../../../../temp/csp/ta_CDL3OUTSIDE.o \ + ../../../../../temp/csp/ta_CDL3STARSINSOUTH.o \ + ../../../../../temp/csp/ta_CDL3WHITESOLDIERS.o \ + ../../../../../temp/csp/ta_CDLABANDONEDBABY.o \ + ../../../../../temp/csp/ta_CDLADVANCEBLOCK.o \ + ../../../../../temp/csp/ta_CDLBELTHOLD.o \ + ../../../../../temp/csp/ta_CDLBREAKAWAY.o \ + ../../../../../temp/csp/ta_CDLCLOSINGMARUBOZU.o \ + ../../../../../temp/csp/ta_CDLCONCEALBABYSWALL.o \ + ../../../../../temp/csp/ta_CDLCOUNTERATTACK.o \ + ../../../../../temp/csp/ta_CDLDARKCLOUDCOVER.o \ + ../../../../../temp/csp/ta_CDLDOJI.o \ + ../../../../../temp/csp/ta_CDLDOJISTAR.o \ + ../../../../../temp/csp/ta_CDLDRAGONFLYDOJI.o \ + ../../../../../temp/csp/ta_CDLENGULFING.o \ + ../../../../../temp/csp/ta_CDLEVENINGDOJISTAR.o \ + ../../../../../temp/csp/ta_CDLEVENINGSTAR.o \ + ../../../../../temp/csp/ta_CDLGAPSIDESIDEWHITE.o \ + ../../../../../temp/csp/ta_CDLGRAVESTONEDOJI.o \ + ../../../../../temp/csp/ta_CDLHAMMER.o \ + ../../../../../temp/csp/ta_CDLHANGINGMAN.o \ + ../../../../../temp/csp/ta_CDLHARAMI.o \ + ../../../../../temp/csp/ta_CDLHARAMICROSS.o \ + ../../../../../temp/csp/ta_CDLHIGHWAVE.o \ + ../../../../../temp/csp/ta_CDLHIKKAKE.o \ + ../../../../../temp/csp/ta_CDLHIKKAKEMOD.o \ + ../../../../../temp/csp/ta_CDLHOMINGPIGEON.o \ + ../../../../../temp/csp/ta_CDLIDENTICAL3CROWS.o \ + ../../../../../temp/csp/ta_CDLINNECK.o \ + ../../../../../temp/csp/ta_CDLINVERTEDHAMMER.o \ + ../../../../../temp/csp/ta_CDLKICKING.o \ + ../../../../../temp/csp/ta_CDLKICKINGBYLENGTH.o \ + ../../../../../temp/csp/ta_CDLLADDERBOTTOM.o \ + ../../../../../temp/csp/ta_CDLLONGLEGGEDDOJI.o \ + ../../../../../temp/csp/ta_CDLLONGLINE.o \ + ../../../../../temp/csp/ta_CDLMARUBOZU.o \ + ../../../../../temp/csp/ta_CDLMATCHINGLOW.o \ + ../../../../../temp/csp/ta_CDLMATHOLD.o \ + ../../../../../temp/csp/ta_CDLMORNINGDOJISTAR.o \ + ../../../../../temp/csp/ta_CDLMORNINGSTAR.o \ + ../../../../../temp/csp/ta_CDLONNECK.o \ + ../../../../../temp/csp/ta_CDLPIERCING.o \ + ../../../../../temp/csp/ta_CDLRICKSHAWMAN.o \ + ../../../../../temp/csp/ta_CDLRISEFALL3METHODS.o \ + ../../../../../temp/csp/ta_CDLSEPARATINGLINES.o \ + ../../../../../temp/csp/ta_CDLSHOOTINGSTAR.o \ + ../../../../../temp/csp/ta_CDLSHORTLINE.o \ + ../../../../../temp/csp/ta_CDLSPINNINGTOP.o \ + ../../../../../temp/csp/ta_CDLSTALLEDPATTERN.o \ + ../../../../../temp/csp/ta_CDLSTICKSANDWICH.o \ + ../../../../../temp/csp/ta_CDLTAKURI.o \ + ../../../../../temp/csp/ta_CDLTASUKIGAP.o \ + ../../../../../temp/csp/ta_CDLTHRUSTING.o \ + ../../../../../temp/csp/ta_CDLTRISTAR.o \ + ../../../../../temp/csp/ta_CDLUNIQUE3RIVER.o \ + ../../../../../temp/csp/ta_CDLUPSIDEGAP2CROWS.o \ + ../../../../../temp/csp/ta_CDLXSIDEGAP3METHODS.o \ + ../../../../../temp/csp/ta_CEIL.o \ + ../../../../../temp/csp/ta_CMO.o \ + ../../../../../temp/csp/ta_CORREL.o \ + ../../../../../temp/csp/ta_COS.o \ + ../../../../../temp/csp/ta_COSH.o \ + ../../../../../temp/csp/ta_DEMA.o \ + ../../../../../temp/csp/ta_DIV.o \ + ../../../../../temp/csp/ta_DX.o \ + ../../../../../temp/csp/ta_EMA.o \ + ../../../../../temp/csp/ta_EXP.o \ + ../../../../../temp/csp/ta_FLOOR.o \ + ../../../../../temp/csp/ta_HT_DCPERIOD.o \ + ../../../../../temp/csp/ta_HT_DCPHASE.o \ + ../../../../../temp/csp/ta_HT_PHASOR.o \ + ../../../../../temp/csp/ta_HT_SINE.o \ + ../../../../../temp/csp/ta_HT_TRENDLINE.o \ + ../../../../../temp/csp/ta_HT_TRENDMODE.o \ + ../../../../../temp/csp/ta_KAMA.o \ + ../../../../../temp/csp/ta_LINEARREG.o \ + ../../../../../temp/csp/ta_LINEARREG_ANGLE.o \ + ../../../../../temp/csp/ta_LINEARREG_INTERCEPT.o \ + ../../../../../temp/csp/ta_LINEARREG_SLOPE.o \ + ../../../../../temp/csp/ta_LN.o \ + ../../../../../temp/csp/ta_LOG10.o \ + ../../../../../temp/csp/ta_MA.o \ + ../../../../../temp/csp/ta_MACD.o \ + ../../../../../temp/csp/ta_MACDEXT.o \ + ../../../../../temp/csp/ta_MACDFIX.o \ + ../../../../../temp/csp/ta_MAMA.o \ + ../../../../../temp/csp/ta_MAVP.o \ + ../../../../../temp/csp/ta_MAX.o \ + ../../../../../temp/csp/ta_MAXINDEX.o \ + ../../../../../temp/csp/ta_MEDPRICE.o \ + ../../../../../temp/csp/ta_MFI.o \ + ../../../../../temp/csp/ta_MIDPOINT.o \ + ../../../../../temp/csp/ta_MIDPRICE.o \ + ../../../../../temp/csp/ta_MIN.o \ + ../../../../../temp/csp/ta_MININDEX.o \ + ../../../../../temp/csp/ta_MINMAX.o \ + ../../../../../temp/csp/ta_MINMAXINDEX.o \ + ../../../../../temp/csp/ta_MINUS_DI.o \ + ../../../../../temp/csp/ta_MINUS_DM.o \ + ../../../../../temp/csp/ta_MOM.o \ + ../../../../../temp/csp/ta_MULT.o \ + ../../../../../temp/csp/ta_NATR.o \ + ../../../../../temp/csp/ta_OBV.o \ + ../../../../../temp/csp/ta_PLUS_DI.o \ + ../../../../../temp/csp/ta_PLUS_DM.o \ + ../../../../../temp/csp/ta_PPO.o \ + ../../../../../temp/csp/ta_ROC.o \ + ../../../../../temp/csp/ta_ROCP.o \ + ../../../../../temp/csp/ta_ROCR.o \ + ../../../../../temp/csp/ta_ROCR100.o \ + ../../../../../temp/csp/ta_RSI.o \ + ../../../../../temp/csp/ta_SAR.o \ + ../../../../../temp/csp/ta_SAREXT.o \ + ../../../../../temp/csp/ta_SIN.o \ + ../../../../../temp/csp/ta_SINH.o \ + ../../../../../temp/csp/ta_SMA.o \ + ../../../../../temp/csp/ta_SQRT.o \ + ../../../../../temp/csp/ta_STDDEV.o \ + ../../../../../temp/csp/ta_STOCH.o \ + ../../../../../temp/csp/ta_STOCHF.o \ + ../../../../../temp/csp/ta_STOCHRSI.o \ + ../../../../../temp/csp/ta_SUB.o \ + ../../../../../temp/csp/ta_SUM.o \ + ../../../../../temp/csp/ta_T3.o \ + ../../../../../temp/csp/ta_TAN.o \ + ../../../../../temp/csp/ta_TANH.o \ + ../../../../../temp/csp/ta_TEMA.o \ + ../../../../../temp/csp/ta_TRANGE.o \ + ../../../../../temp/csp/ta_TRIMA.o \ + ../../../../../temp/csp/ta_TRIX.o \ + ../../../../../temp/csp/ta_TSF.o \ + ../../../../../temp/csp/ta_TYPPRICE.o \ + ../../../../../temp/csp/ta_ULTOSC.o \ + ../../../../../temp/csp/ta_VAR.o \ + ../../../../../temp/csp/ta_WCLPRICE.o \ + ../../../../../temp/csp/ta_WILLR.o \ + ../../../../../temp/csp/ta_WMA.o +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ../../../../../lib/libta_func_csp.a +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .C .c + +.cpp.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cxx.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cc.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.C.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.c.o: + $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $< + +####### Build rules + + +all: $(TARGET) + +staticlib: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + -rm -f $(TARGET) + $(AR) $(TARGET) $(OBJECTS) $(OBJMOC) + +moc: $(SRCMOC) + +clean: + -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) + -rm -f *~ core + +####### Sub-libraries + + +###### Combined headers + + +####### Compile + +../../../../../temp/csp/ta_utility.o: ../../../../../src/ta_func/ta_utility.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_utility.o ../../../../../src/ta_func/ta_utility.c + +../../../../../temp/csp/ta_ACOS.o: ../../../../../src/ta_func/ta_ACOS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_ACOS.o ../../../../../src/ta_func/ta_ACOS.c + +../../../../../temp/csp/ta_AD.o: ../../../../../src/ta_func/ta_AD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_AD.o ../../../../../src/ta_func/ta_AD.c + +../../../../../temp/csp/ta_ADD.o: ../../../../../src/ta_func/ta_ADD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_ADD.o ../../../../../src/ta_func/ta_ADD.c + +../../../../../temp/csp/ta_ADOSC.o: ../../../../../src/ta_func/ta_ADOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_ADOSC.o ../../../../../src/ta_func/ta_ADOSC.c + +../../../../../temp/csp/ta_ADX.o: ../../../../../src/ta_func/ta_ADX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_ADX.o ../../../../../src/ta_func/ta_ADX.c + +../../../../../temp/csp/ta_ADXR.o: ../../../../../src/ta_func/ta_ADXR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_ADXR.o ../../../../../src/ta_func/ta_ADXR.c + +../../../../../temp/csp/ta_APO.o: ../../../../../src/ta_func/ta_APO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_APO.o ../../../../../src/ta_func/ta_APO.c + +../../../../../temp/csp/ta_AROON.o: ../../../../../src/ta_func/ta_AROON.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_AROON.o ../../../../../src/ta_func/ta_AROON.c + +../../../../../temp/csp/ta_AROONOSC.o: ../../../../../src/ta_func/ta_AROONOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_AROONOSC.o ../../../../../src/ta_func/ta_AROONOSC.c + +../../../../../temp/csp/ta_ASIN.o: ../../../../../src/ta_func/ta_ASIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_ASIN.o ../../../../../src/ta_func/ta_ASIN.c + +../../../../../temp/csp/ta_ATAN.o: ../../../../../src/ta_func/ta_ATAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_ATAN.o ../../../../../src/ta_func/ta_ATAN.c + +../../../../../temp/csp/ta_ATR.o: ../../../../../src/ta_func/ta_ATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_ATR.o ../../../../../src/ta_func/ta_ATR.c + +../../../../../temp/csp/ta_AVGPRICE.o: ../../../../../src/ta_func/ta_AVGPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_AVGPRICE.o ../../../../../src/ta_func/ta_AVGPRICE.c + +../../../../../temp/csp/ta_BBANDS.o: ../../../../../src/ta_func/ta_BBANDS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_BBANDS.o ../../../../../src/ta_func/ta_BBANDS.c + +../../../../../temp/csp/ta_BETA.o: ../../../../../src/ta_func/ta_BETA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_BETA.o ../../../../../src/ta_func/ta_BETA.c + +../../../../../temp/csp/ta_BOP.o: ../../../../../src/ta_func/ta_BOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_BOP.o ../../../../../src/ta_func/ta_BOP.c + +../../../../../temp/csp/ta_CCI.o: ../../../../../src/ta_func/ta_CCI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CCI.o ../../../../../src/ta_func/ta_CCI.c + +../../../../../temp/csp/ta_CDL2CROWS.o: ../../../../../src/ta_func/ta_CDL2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDL2CROWS.o ../../../../../src/ta_func/ta_CDL2CROWS.c + +../../../../../temp/csp/ta_CDL3BLACKCROWS.o: ../../../../../src/ta_func/ta_CDL3BLACKCROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDL3BLACKCROWS.o ../../../../../src/ta_func/ta_CDL3BLACKCROWS.c + +../../../../../temp/csp/ta_CDL3INSIDE.o: ../../../../../src/ta_func/ta_CDL3INSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDL3INSIDE.o ../../../../../src/ta_func/ta_CDL3INSIDE.c + +../../../../../temp/csp/ta_CDL3LINESTRIKE.o: ../../../../../src/ta_func/ta_CDL3LINESTRIKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDL3LINESTRIKE.o ../../../../../src/ta_func/ta_CDL3LINESTRIKE.c + +../../../../../temp/csp/ta_CDL3OUTSIDE.o: ../../../../../src/ta_func/ta_CDL3OUTSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDL3OUTSIDE.o ../../../../../src/ta_func/ta_CDL3OUTSIDE.c + +../../../../../temp/csp/ta_CDL3STARSINSOUTH.o: ../../../../../src/ta_func/ta_CDL3STARSINSOUTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDL3STARSINSOUTH.o ../../../../../src/ta_func/ta_CDL3STARSINSOUTH.c + +../../../../../temp/csp/ta_CDL3WHITESOLDIERS.o: ../../../../../src/ta_func/ta_CDL3WHITESOLDIERS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDL3WHITESOLDIERS.o ../../../../../src/ta_func/ta_CDL3WHITESOLDIERS.c + +../../../../../temp/csp/ta_CDLABANDONEDBABY.o: ../../../../../src/ta_func/ta_CDLABANDONEDBABY.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLABANDONEDBABY.o ../../../../../src/ta_func/ta_CDLABANDONEDBABY.c + +../../../../../temp/csp/ta_CDLADVANCEBLOCK.o: ../../../../../src/ta_func/ta_CDLADVANCEBLOCK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLADVANCEBLOCK.o ../../../../../src/ta_func/ta_CDLADVANCEBLOCK.c + +../../../../../temp/csp/ta_CDLBELTHOLD.o: ../../../../../src/ta_func/ta_CDLBELTHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLBELTHOLD.o ../../../../../src/ta_func/ta_CDLBELTHOLD.c + +../../../../../temp/csp/ta_CDLBREAKAWAY.o: ../../../../../src/ta_func/ta_CDLBREAKAWAY.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLBREAKAWAY.o ../../../../../src/ta_func/ta_CDLBREAKAWAY.c + +../../../../../temp/csp/ta_CDLCLOSINGMARUBOZU.o: ../../../../../src/ta_func/ta_CDLCLOSINGMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLCLOSINGMARUBOZU.o ../../../../../src/ta_func/ta_CDLCLOSINGMARUBOZU.c + +../../../../../temp/csp/ta_CDLCONCEALBABYSWALL.o: ../../../../../src/ta_func/ta_CDLCONCEALBABYSWALL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLCONCEALBABYSWALL.o ../../../../../src/ta_func/ta_CDLCONCEALBABYSWALL.c + +../../../../../temp/csp/ta_CDLCOUNTERATTACK.o: ../../../../../src/ta_func/ta_CDLCOUNTERATTACK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLCOUNTERATTACK.o ../../../../../src/ta_func/ta_CDLCOUNTERATTACK.c + +../../../../../temp/csp/ta_CDLDARKCLOUDCOVER.o: ../../../../../src/ta_func/ta_CDLDARKCLOUDCOVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLDARKCLOUDCOVER.o ../../../../../src/ta_func/ta_CDLDARKCLOUDCOVER.c + +../../../../../temp/csp/ta_CDLDOJI.o: ../../../../../src/ta_func/ta_CDLDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLDOJI.o ../../../../../src/ta_func/ta_CDLDOJI.c + +../../../../../temp/csp/ta_CDLDOJISTAR.o: ../../../../../src/ta_func/ta_CDLDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLDOJISTAR.o ../../../../../src/ta_func/ta_CDLDOJISTAR.c + +../../../../../temp/csp/ta_CDLDRAGONFLYDOJI.o: ../../../../../src/ta_func/ta_CDLDRAGONFLYDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLDRAGONFLYDOJI.o ../../../../../src/ta_func/ta_CDLDRAGONFLYDOJI.c + +../../../../../temp/csp/ta_CDLENGULFING.o: ../../../../../src/ta_func/ta_CDLENGULFING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLENGULFING.o ../../../../../src/ta_func/ta_CDLENGULFING.c + +../../../../../temp/csp/ta_CDLEVENINGDOJISTAR.o: ../../../../../src/ta_func/ta_CDLEVENINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLEVENINGDOJISTAR.o ../../../../../src/ta_func/ta_CDLEVENINGDOJISTAR.c + +../../../../../temp/csp/ta_CDLEVENINGSTAR.o: ../../../../../src/ta_func/ta_CDLEVENINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLEVENINGSTAR.o ../../../../../src/ta_func/ta_CDLEVENINGSTAR.c + +../../../../../temp/csp/ta_CDLGAPSIDESIDEWHITE.o: ../../../../../src/ta_func/ta_CDLGAPSIDESIDEWHITE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLGAPSIDESIDEWHITE.o ../../../../../src/ta_func/ta_CDLGAPSIDESIDEWHITE.c + +../../../../../temp/csp/ta_CDLGRAVESTONEDOJI.o: ../../../../../src/ta_func/ta_CDLGRAVESTONEDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLGRAVESTONEDOJI.o ../../../../../src/ta_func/ta_CDLGRAVESTONEDOJI.c + +../../../../../temp/csp/ta_CDLHAMMER.o: ../../../../../src/ta_func/ta_CDLHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLHAMMER.o ../../../../../src/ta_func/ta_CDLHAMMER.c + +../../../../../temp/csp/ta_CDLHANGINGMAN.o: ../../../../../src/ta_func/ta_CDLHANGINGMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLHANGINGMAN.o ../../../../../src/ta_func/ta_CDLHANGINGMAN.c + +../../../../../temp/csp/ta_CDLHARAMI.o: ../../../../../src/ta_func/ta_CDLHARAMI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLHARAMI.o ../../../../../src/ta_func/ta_CDLHARAMI.c + +../../../../../temp/csp/ta_CDLHARAMICROSS.o: ../../../../../src/ta_func/ta_CDLHARAMICROSS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLHARAMICROSS.o ../../../../../src/ta_func/ta_CDLHARAMICROSS.c + +../../../../../temp/csp/ta_CDLHIGHWAVE.o: ../../../../../src/ta_func/ta_CDLHIGHWAVE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLHIGHWAVE.o ../../../../../src/ta_func/ta_CDLHIGHWAVE.c + +../../../../../temp/csp/ta_CDLHIKKAKE.o: ../../../../../src/ta_func/ta_CDLHIKKAKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLHIKKAKE.o ../../../../../src/ta_func/ta_CDLHIKKAKE.c + +../../../../../temp/csp/ta_CDLHIKKAKEMOD.o: ../../../../../src/ta_func/ta_CDLHIKKAKEMOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLHIKKAKEMOD.o ../../../../../src/ta_func/ta_CDLHIKKAKEMOD.c + +../../../../../temp/csp/ta_CDLHOMINGPIGEON.o: ../../../../../src/ta_func/ta_CDLHOMINGPIGEON.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLHOMINGPIGEON.o ../../../../../src/ta_func/ta_CDLHOMINGPIGEON.c + +../../../../../temp/csp/ta_CDLIDENTICAL3CROWS.o: ../../../../../src/ta_func/ta_CDLIDENTICAL3CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLIDENTICAL3CROWS.o ../../../../../src/ta_func/ta_CDLIDENTICAL3CROWS.c + +../../../../../temp/csp/ta_CDLINNECK.o: ../../../../../src/ta_func/ta_CDLINNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLINNECK.o ../../../../../src/ta_func/ta_CDLINNECK.c + +../../../../../temp/csp/ta_CDLINVERTEDHAMMER.o: ../../../../../src/ta_func/ta_CDLINVERTEDHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLINVERTEDHAMMER.o ../../../../../src/ta_func/ta_CDLINVERTEDHAMMER.c + +../../../../../temp/csp/ta_CDLKICKING.o: ../../../../../src/ta_func/ta_CDLKICKING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLKICKING.o ../../../../../src/ta_func/ta_CDLKICKING.c + +../../../../../temp/csp/ta_CDLKICKINGBYLENGTH.o: ../../../../../src/ta_func/ta_CDLKICKINGBYLENGTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLKICKINGBYLENGTH.o ../../../../../src/ta_func/ta_CDLKICKINGBYLENGTH.c + +../../../../../temp/csp/ta_CDLLADDERBOTTOM.o: ../../../../../src/ta_func/ta_CDLLADDERBOTTOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLLADDERBOTTOM.o ../../../../../src/ta_func/ta_CDLLADDERBOTTOM.c + +../../../../../temp/csp/ta_CDLLONGLEGGEDDOJI.o: ../../../../../src/ta_func/ta_CDLLONGLEGGEDDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLLONGLEGGEDDOJI.o ../../../../../src/ta_func/ta_CDLLONGLEGGEDDOJI.c + +../../../../../temp/csp/ta_CDLLONGLINE.o: ../../../../../src/ta_func/ta_CDLLONGLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLLONGLINE.o ../../../../../src/ta_func/ta_CDLLONGLINE.c + +../../../../../temp/csp/ta_CDLMARUBOZU.o: ../../../../../src/ta_func/ta_CDLMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLMARUBOZU.o ../../../../../src/ta_func/ta_CDLMARUBOZU.c + +../../../../../temp/csp/ta_CDLMATCHINGLOW.o: ../../../../../src/ta_func/ta_CDLMATCHINGLOW.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLMATCHINGLOW.o ../../../../../src/ta_func/ta_CDLMATCHINGLOW.c + +../../../../../temp/csp/ta_CDLMATHOLD.o: ../../../../../src/ta_func/ta_CDLMATHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLMATHOLD.o ../../../../../src/ta_func/ta_CDLMATHOLD.c + +../../../../../temp/csp/ta_CDLMORNINGDOJISTAR.o: ../../../../../src/ta_func/ta_CDLMORNINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLMORNINGDOJISTAR.o ../../../../../src/ta_func/ta_CDLMORNINGDOJISTAR.c + +../../../../../temp/csp/ta_CDLMORNINGSTAR.o: ../../../../../src/ta_func/ta_CDLMORNINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLMORNINGSTAR.o ../../../../../src/ta_func/ta_CDLMORNINGSTAR.c + +../../../../../temp/csp/ta_CDLONNECK.o: ../../../../../src/ta_func/ta_CDLONNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLONNECK.o ../../../../../src/ta_func/ta_CDLONNECK.c + +../../../../../temp/csp/ta_CDLPIERCING.o: ../../../../../src/ta_func/ta_CDLPIERCING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLPIERCING.o ../../../../../src/ta_func/ta_CDLPIERCING.c + +../../../../../temp/csp/ta_CDLRICKSHAWMAN.o: ../../../../../src/ta_func/ta_CDLRICKSHAWMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLRICKSHAWMAN.o ../../../../../src/ta_func/ta_CDLRICKSHAWMAN.c + +../../../../../temp/csp/ta_CDLRISEFALL3METHODS.o: ../../../../../src/ta_func/ta_CDLRISEFALL3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLRISEFALL3METHODS.o ../../../../../src/ta_func/ta_CDLRISEFALL3METHODS.c + +../../../../../temp/csp/ta_CDLSEPARATINGLINES.o: ../../../../../src/ta_func/ta_CDLSEPARATINGLINES.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLSEPARATINGLINES.o ../../../../../src/ta_func/ta_CDLSEPARATINGLINES.c + +../../../../../temp/csp/ta_CDLSHOOTINGSTAR.o: ../../../../../src/ta_func/ta_CDLSHOOTINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLSHOOTINGSTAR.o ../../../../../src/ta_func/ta_CDLSHOOTINGSTAR.c + +../../../../../temp/csp/ta_CDLSHORTLINE.o: ../../../../../src/ta_func/ta_CDLSHORTLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLSHORTLINE.o ../../../../../src/ta_func/ta_CDLSHORTLINE.c + +../../../../../temp/csp/ta_CDLSPINNINGTOP.o: ../../../../../src/ta_func/ta_CDLSPINNINGTOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLSPINNINGTOP.o ../../../../../src/ta_func/ta_CDLSPINNINGTOP.c + +../../../../../temp/csp/ta_CDLSTALLEDPATTERN.o: ../../../../../src/ta_func/ta_CDLSTALLEDPATTERN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLSTALLEDPATTERN.o ../../../../../src/ta_func/ta_CDLSTALLEDPATTERN.c + +../../../../../temp/csp/ta_CDLSTICKSANDWICH.o: ../../../../../src/ta_func/ta_CDLSTICKSANDWICH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLSTICKSANDWICH.o ../../../../../src/ta_func/ta_CDLSTICKSANDWICH.c + +../../../../../temp/csp/ta_CDLTAKURI.o: ../../../../../src/ta_func/ta_CDLTAKURI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLTAKURI.o ../../../../../src/ta_func/ta_CDLTAKURI.c + +../../../../../temp/csp/ta_CDLTASUKIGAP.o: ../../../../../src/ta_func/ta_CDLTASUKIGAP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLTASUKIGAP.o ../../../../../src/ta_func/ta_CDLTASUKIGAP.c + +../../../../../temp/csp/ta_CDLTHRUSTING.o: ../../../../../src/ta_func/ta_CDLTHRUSTING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLTHRUSTING.o ../../../../../src/ta_func/ta_CDLTHRUSTING.c + +../../../../../temp/csp/ta_CDLTRISTAR.o: ../../../../../src/ta_func/ta_CDLTRISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLTRISTAR.o ../../../../../src/ta_func/ta_CDLTRISTAR.c + +../../../../../temp/csp/ta_CDLUNIQUE3RIVER.o: ../../../../../src/ta_func/ta_CDLUNIQUE3RIVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLUNIQUE3RIVER.o ../../../../../src/ta_func/ta_CDLUNIQUE3RIVER.c + +../../../../../temp/csp/ta_CDLUPSIDEGAP2CROWS.o: ../../../../../src/ta_func/ta_CDLUPSIDEGAP2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLUPSIDEGAP2CROWS.o ../../../../../src/ta_func/ta_CDLUPSIDEGAP2CROWS.c + +../../../../../temp/csp/ta_CDLXSIDEGAP3METHODS.o: ../../../../../src/ta_func/ta_CDLXSIDEGAP3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLXSIDEGAP3METHODS.o ../../../../../src/ta_func/ta_CDLXSIDEGAP3METHODS.c + +../../../../../temp/csp/ta_CEIL.o: ../../../../../src/ta_func/ta_CEIL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CEIL.o ../../../../../src/ta_func/ta_CEIL.c + +../../../../../temp/csp/ta_CMO.o: ../../../../../src/ta_func/ta_CMO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CMO.o ../../../../../src/ta_func/ta_CMO.c + +../../../../../temp/csp/ta_CORREL.o: ../../../../../src/ta_func/ta_CORREL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CORREL.o ../../../../../src/ta_func/ta_CORREL.c + +../../../../../temp/csp/ta_COS.o: ../../../../../src/ta_func/ta_COS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_COS.o ../../../../../src/ta_func/ta_COS.c + +../../../../../temp/csp/ta_COSH.o: ../../../../../src/ta_func/ta_COSH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_COSH.o ../../../../../src/ta_func/ta_COSH.c + +../../../../../temp/csp/ta_DEMA.o: ../../../../../src/ta_func/ta_DEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_DEMA.o ../../../../../src/ta_func/ta_DEMA.c + +../../../../../temp/csp/ta_DIV.o: ../../../../../src/ta_func/ta_DIV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_DIV.o ../../../../../src/ta_func/ta_DIV.c + +../../../../../temp/csp/ta_DX.o: ../../../../../src/ta_func/ta_DX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_DX.o ../../../../../src/ta_func/ta_DX.c + +../../../../../temp/csp/ta_EMA.o: ../../../../../src/ta_func/ta_EMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_EMA.o ../../../../../src/ta_func/ta_EMA.c + +../../../../../temp/csp/ta_EXP.o: ../../../../../src/ta_func/ta_EXP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_EXP.o ../../../../../src/ta_func/ta_EXP.c + +../../../../../temp/csp/ta_FLOOR.o: ../../../../../src/ta_func/ta_FLOOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_FLOOR.o ../../../../../src/ta_func/ta_FLOOR.c + +../../../../../temp/csp/ta_HT_DCPERIOD.o: ../../../../../src/ta_func/ta_HT_DCPERIOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_HT_DCPERIOD.o ../../../../../src/ta_func/ta_HT_DCPERIOD.c + +../../../../../temp/csp/ta_HT_DCPHASE.o: ../../../../../src/ta_func/ta_HT_DCPHASE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_HT_DCPHASE.o ../../../../../src/ta_func/ta_HT_DCPHASE.c + +../../../../../temp/csp/ta_HT_PHASOR.o: ../../../../../src/ta_func/ta_HT_PHASOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_HT_PHASOR.o ../../../../../src/ta_func/ta_HT_PHASOR.c + +../../../../../temp/csp/ta_HT_SINE.o: ../../../../../src/ta_func/ta_HT_SINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_HT_SINE.o ../../../../../src/ta_func/ta_HT_SINE.c + +../../../../../temp/csp/ta_HT_TRENDLINE.o: ../../../../../src/ta_func/ta_HT_TRENDLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_HT_TRENDLINE.o ../../../../../src/ta_func/ta_HT_TRENDLINE.c + +../../../../../temp/csp/ta_HT_TRENDMODE.o: ../../../../../src/ta_func/ta_HT_TRENDMODE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_HT_TRENDMODE.o ../../../../../src/ta_func/ta_HT_TRENDMODE.c + +../../../../../temp/csp/ta_KAMA.o: ../../../../../src/ta_func/ta_KAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_KAMA.o ../../../../../src/ta_func/ta_KAMA.c + +../../../../../temp/csp/ta_LINEARREG.o: ../../../../../src/ta_func/ta_LINEARREG.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_LINEARREG.o ../../../../../src/ta_func/ta_LINEARREG.c + +../../../../../temp/csp/ta_LINEARREG_ANGLE.o: ../../../../../src/ta_func/ta_LINEARREG_ANGLE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_LINEARREG_ANGLE.o ../../../../../src/ta_func/ta_LINEARREG_ANGLE.c + +../../../../../temp/csp/ta_LINEARREG_INTERCEPT.o: ../../../../../src/ta_func/ta_LINEARREG_INTERCEPT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_LINEARREG_INTERCEPT.o ../../../../../src/ta_func/ta_LINEARREG_INTERCEPT.c + +../../../../../temp/csp/ta_LINEARREG_SLOPE.o: ../../../../../src/ta_func/ta_LINEARREG_SLOPE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_LINEARREG_SLOPE.o ../../../../../src/ta_func/ta_LINEARREG_SLOPE.c + +../../../../../temp/csp/ta_LN.o: ../../../../../src/ta_func/ta_LN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_LN.o ../../../../../src/ta_func/ta_LN.c + +../../../../../temp/csp/ta_LOG10.o: ../../../../../src/ta_func/ta_LOG10.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_LOG10.o ../../../../../src/ta_func/ta_LOG10.c + +../../../../../temp/csp/ta_MA.o: ../../../../../src/ta_func/ta_MA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_MA.o ../../../../../src/ta_func/ta_MA.c + +../../../../../temp/csp/ta_MACD.o: ../../../../../src/ta_func/ta_MACD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_MACD.o ../../../../../src/ta_func/ta_MACD.c + +../../../../../temp/csp/ta_MACDEXT.o: ../../../../../src/ta_func/ta_MACDEXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_MACDEXT.o ../../../../../src/ta_func/ta_MACDEXT.c + +../../../../../temp/csp/ta_MACDFIX.o: ../../../../../src/ta_func/ta_MACDFIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_MACDFIX.o ../../../../../src/ta_func/ta_MACDFIX.c + +../../../../../temp/csp/ta_MAMA.o: ../../../../../src/ta_func/ta_MAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_MAMA.o ../../../../../src/ta_func/ta_MAMA.c + +../../../../../temp/csp/ta_MAVP.o: ../../../../../src/ta_func/ta_MAVP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_MAVP.o ../../../../../src/ta_func/ta_MAVP.c + +../../../../../temp/csp/ta_MAX.o: ../../../../../src/ta_func/ta_MAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_MAX.o ../../../../../src/ta_func/ta_MAX.c + +../../../../../temp/csp/ta_MAXINDEX.o: ../../../../../src/ta_func/ta_MAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_MAXINDEX.o ../../../../../src/ta_func/ta_MAXINDEX.c + +../../../../../temp/csp/ta_MEDPRICE.o: ../../../../../src/ta_func/ta_MEDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_MEDPRICE.o ../../../../../src/ta_func/ta_MEDPRICE.c + +../../../../../temp/csp/ta_MFI.o: ../../../../../src/ta_func/ta_MFI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_MFI.o ../../../../../src/ta_func/ta_MFI.c + +../../../../../temp/csp/ta_MIDPOINT.o: ../../../../../src/ta_func/ta_MIDPOINT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_MIDPOINT.o ../../../../../src/ta_func/ta_MIDPOINT.c + +../../../../../temp/csp/ta_MIDPRICE.o: ../../../../../src/ta_func/ta_MIDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_MIDPRICE.o ../../../../../src/ta_func/ta_MIDPRICE.c + +../../../../../temp/csp/ta_MIN.o: ../../../../../src/ta_func/ta_MIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_MIN.o ../../../../../src/ta_func/ta_MIN.c + +../../../../../temp/csp/ta_MININDEX.o: ../../../../../src/ta_func/ta_MININDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_MININDEX.o ../../../../../src/ta_func/ta_MININDEX.c + +../../../../../temp/csp/ta_MINMAX.o: ../../../../../src/ta_func/ta_MINMAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_MINMAX.o ../../../../../src/ta_func/ta_MINMAX.c + +../../../../../temp/csp/ta_MINMAXINDEX.o: ../../../../../src/ta_func/ta_MINMAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_MINMAXINDEX.o ../../../../../src/ta_func/ta_MINMAXINDEX.c + +../../../../../temp/csp/ta_MINUS_DI.o: ../../../../../src/ta_func/ta_MINUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_MINUS_DI.o ../../../../../src/ta_func/ta_MINUS_DI.c + +../../../../../temp/csp/ta_MINUS_DM.o: ../../../../../src/ta_func/ta_MINUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_MINUS_DM.o ../../../../../src/ta_func/ta_MINUS_DM.c + +../../../../../temp/csp/ta_MOM.o: ../../../../../src/ta_func/ta_MOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_MOM.o ../../../../../src/ta_func/ta_MOM.c + +../../../../../temp/csp/ta_MULT.o: ../../../../../src/ta_func/ta_MULT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_MULT.o ../../../../../src/ta_func/ta_MULT.c + +../../../../../temp/csp/ta_NATR.o: ../../../../../src/ta_func/ta_NATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_NATR.o ../../../../../src/ta_func/ta_NATR.c + +../../../../../temp/csp/ta_OBV.o: ../../../../../src/ta_func/ta_OBV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_OBV.o ../../../../../src/ta_func/ta_OBV.c + +../../../../../temp/csp/ta_PLUS_DI.o: ../../../../../src/ta_func/ta_PLUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_PLUS_DI.o ../../../../../src/ta_func/ta_PLUS_DI.c + +../../../../../temp/csp/ta_PLUS_DM.o: ../../../../../src/ta_func/ta_PLUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_PLUS_DM.o ../../../../../src/ta_func/ta_PLUS_DM.c + +../../../../../temp/csp/ta_PPO.o: ../../../../../src/ta_func/ta_PPO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_PPO.o ../../../../../src/ta_func/ta_PPO.c + +../../../../../temp/csp/ta_ROC.o: ../../../../../src/ta_func/ta_ROC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_ROC.o ../../../../../src/ta_func/ta_ROC.c + +../../../../../temp/csp/ta_ROCP.o: ../../../../../src/ta_func/ta_ROCP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_ROCP.o ../../../../../src/ta_func/ta_ROCP.c + +../../../../../temp/csp/ta_ROCR.o: ../../../../../src/ta_func/ta_ROCR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_ROCR.o ../../../../../src/ta_func/ta_ROCR.c + +../../../../../temp/csp/ta_ROCR100.o: ../../../../../src/ta_func/ta_ROCR100.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_ROCR100.o ../../../../../src/ta_func/ta_ROCR100.c + +../../../../../temp/csp/ta_RSI.o: ../../../../../src/ta_func/ta_RSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_RSI.o ../../../../../src/ta_func/ta_RSI.c + +../../../../../temp/csp/ta_SAR.o: ../../../../../src/ta_func/ta_SAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_SAR.o ../../../../../src/ta_func/ta_SAR.c + +../../../../../temp/csp/ta_SAREXT.o: ../../../../../src/ta_func/ta_SAREXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_SAREXT.o ../../../../../src/ta_func/ta_SAREXT.c + +../../../../../temp/csp/ta_SIN.o: ../../../../../src/ta_func/ta_SIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_SIN.o ../../../../../src/ta_func/ta_SIN.c + +../../../../../temp/csp/ta_SINH.o: ../../../../../src/ta_func/ta_SINH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_SINH.o ../../../../../src/ta_func/ta_SINH.c + +../../../../../temp/csp/ta_SMA.o: ../../../../../src/ta_func/ta_SMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_SMA.o ../../../../../src/ta_func/ta_SMA.c + +../../../../../temp/csp/ta_SQRT.o: ../../../../../src/ta_func/ta_SQRT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_SQRT.o ../../../../../src/ta_func/ta_SQRT.c + +../../../../../temp/csp/ta_STDDEV.o: ../../../../../src/ta_func/ta_STDDEV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_STDDEV.o ../../../../../src/ta_func/ta_STDDEV.c + +../../../../../temp/csp/ta_STOCH.o: ../../../../../src/ta_func/ta_STOCH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_STOCH.o ../../../../../src/ta_func/ta_STOCH.c + +../../../../../temp/csp/ta_STOCHF.o: ../../../../../src/ta_func/ta_STOCHF.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_STOCHF.o ../../../../../src/ta_func/ta_STOCHF.c + +../../../../../temp/csp/ta_STOCHRSI.o: ../../../../../src/ta_func/ta_STOCHRSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_STOCHRSI.o ../../../../../src/ta_func/ta_STOCHRSI.c + +../../../../../temp/csp/ta_SUB.o: ../../../../../src/ta_func/ta_SUB.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_SUB.o ../../../../../src/ta_func/ta_SUB.c + +../../../../../temp/csp/ta_SUM.o: ../../../../../src/ta_func/ta_SUM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_SUM.o ../../../../../src/ta_func/ta_SUM.c + +../../../../../temp/csp/ta_T3.o: ../../../../../src/ta_func/ta_T3.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_T3.o ../../../../../src/ta_func/ta_T3.c + +../../../../../temp/csp/ta_TAN.o: ../../../../../src/ta_func/ta_TAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_TAN.o ../../../../../src/ta_func/ta_TAN.c + +../../../../../temp/csp/ta_TANH.o: ../../../../../src/ta_func/ta_TANH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_TANH.o ../../../../../src/ta_func/ta_TANH.c + +../../../../../temp/csp/ta_TEMA.o: ../../../../../src/ta_func/ta_TEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_TEMA.o ../../../../../src/ta_func/ta_TEMA.c + +../../../../../temp/csp/ta_TRANGE.o: ../../../../../src/ta_func/ta_TRANGE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_TRANGE.o ../../../../../src/ta_func/ta_TRANGE.c + +../../../../../temp/csp/ta_TRIMA.o: ../../../../../src/ta_func/ta_TRIMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_TRIMA.o ../../../../../src/ta_func/ta_TRIMA.c + +../../../../../temp/csp/ta_TRIX.o: ../../../../../src/ta_func/ta_TRIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_TRIX.o ../../../../../src/ta_func/ta_TRIX.c + +../../../../../temp/csp/ta_TSF.o: ../../../../../src/ta_func/ta_TSF.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_TSF.o ../../../../../src/ta_func/ta_TSF.c + +../../../../../temp/csp/ta_TYPPRICE.o: ../../../../../src/ta_func/ta_TYPPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_TYPPRICE.o ../../../../../src/ta_func/ta_TYPPRICE.c + +../../../../../temp/csp/ta_ULTOSC.o: ../../../../../src/ta_func/ta_ULTOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_ULTOSC.o ../../../../../src/ta_func/ta_ULTOSC.c + +../../../../../temp/csp/ta_VAR.o: ../../../../../src/ta_func/ta_VAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_VAR.o ../../../../../src/ta_func/ta_VAR.c + +../../../../../temp/csp/ta_WCLPRICE.o: ../../../../../src/ta_func/ta_WCLPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_WCLPRICE.o ../../../../../src/ta_func/ta_WCLPRICE.c + +../../../../../temp/csp/ta_WILLR.o: ../../../../../src/ta_func/ta_WILLR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_WILLR.o ../../../../../src/ta_func/ta_WILLR.c + +../../../../../temp/csp/ta_WMA.o: ../../../../../src/ta_func/ta_WMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_WMA.o ../../../../../src/ta_func/ta_WMA.c + diff --git a/make/csp/linux/g++/ta_libc/Makefile b/make/csp/linux/g++/ta_libc/Makefile new file mode 100644 index 000000000..2dc87138c --- /dev/null +++ b/make/csp/linux/g++/ta_libc/Makefile @@ -0,0 +1,1053 @@ +############################################################################# +# Makefile for building ../../../../../lib/libta_libc_csp.a +# Generated by tmake; +# Project: ta_libc/ta_libc +# Template: lib +############################################################################# + +####### Compiler, tools and options + +CC = gcc +CXX = g++ +CFLAGS = -pipe -fPIC -Wall -W -g -O -pg -DTA_DEBUG -D_DEBUG -DTA_SINGLE_THREAD +CXXFLAGS= -pipe -fPIC -Wall -W -g -DTA_DEBUG -D_DEBUG -DTA_SINGLE_THREAD +INCPATH = -I../../../../../src/ta_common -I../../../../../include -I../../../../../src/ta_abstract -I../../../../../src/ta_abstract/tables -I../../../../../src/ta_abstract/frames -I$(QTDIR)/include +AR = ar cqs +RANLIB = +MOC = $(QTDIR)/bin/moc +UIC = $(QTDIR)/bin/uic + +TAR = tar -cf +GZIP = gzip -9f + +####### Support for 64-bit systems +ifeq ($(shell uname -m), x86_64) + CFLAGS += -march=x86-64 -m64 -D__64BIT__ + CXXFLAGS += -march=x86-64 -m64 -D__64BIT__ +endif + +####### Apply additional overruling user flags, if any +CFLAGS += $(CUSERFLAGS) +CXXFLAGS += $(CUSERFLAGS) + +####### Files + +HEADERS = +SOURCES = ../../../../../src/ta_common/ta_global.c \ + ../../../../../src/ta_common/ta_retcode.c \ + ../../../../../src/ta_common/ta_version.c \ + ../../../../../src/ta_abstract/ta_abstract.c \ + ../../../../../src/ta_abstract/ta_def_ui.c \ + ../../../../../src/ta_abstract/ta_func_api.c \ + ../../../../../src/ta_abstract/ta_group_idx.c \ + ../../../../../src/ta_abstract/frames/ta_frame.c \ + ../../../../../src/ta_abstract/tables/table_a.c \ + ../../../../../src/ta_abstract/tables/table_b.c \ + ../../../../../src/ta_abstract/tables/table_c.c \ + ../../../../../src/ta_abstract/tables/table_d.c \ + ../../../../../src/ta_abstract/tables/table_e.c \ + ../../../../../src/ta_abstract/tables/table_f.c \ + ../../../../../src/ta_abstract/tables/table_g.c \ + ../../../../../src/ta_abstract/tables/table_h.c \ + ../../../../../src/ta_abstract/tables/table_i.c \ + ../../../../../src/ta_abstract/tables/table_j.c \ + ../../../../../src/ta_abstract/tables/table_k.c \ + ../../../../../src/ta_abstract/tables/table_l.c \ + ../../../../../src/ta_abstract/tables/table_m.c \ + ../../../../../src/ta_abstract/tables/table_n.c \ + ../../../../../src/ta_abstract/tables/table_o.c \ + ../../../../../src/ta_abstract/tables/table_p.c \ + ../../../../../src/ta_abstract/tables/table_q.c \ + ../../../../../src/ta_abstract/tables/table_r.c \ + ../../../../../src/ta_abstract/tables/table_s.c \ + ../../../../../src/ta_abstract/tables/table_t.c \ + ../../../../../src/ta_abstract/tables/table_u.c \ + ../../../../../src/ta_abstract/tables/table_v.c \ + ../../../../../src/ta_abstract/tables/table_w.c \ + ../../../../../src/ta_abstract/tables/table_x.c \ + ../../../../../src/ta_abstract/tables/table_y.c \ + ../../../../../src/ta_abstract/tables/table_z.c \ + ../../../../../src/ta_func/ta_utility.c \ + ../../../../../src/ta_func/ta_ACOS.c \ + ../../../../../src/ta_func/ta_AD.c \ + ../../../../../src/ta_func/ta_ADD.c \ + ../../../../../src/ta_func/ta_ADOSC.c \ + ../../../../../src/ta_func/ta_ADX.c \ + ../../../../../src/ta_func/ta_ADXR.c \ + ../../../../../src/ta_func/ta_APO.c \ + ../../../../../src/ta_func/ta_AROON.c \ + ../../../../../src/ta_func/ta_AROONOSC.c \ + ../../../../../src/ta_func/ta_ASIN.c \ + ../../../../../src/ta_func/ta_ATAN.c \ + ../../../../../src/ta_func/ta_ATR.c \ + ../../../../../src/ta_func/ta_AVGPRICE.c \ + ../../../../../src/ta_func/ta_BBANDS.c \ + ../../../../../src/ta_func/ta_BETA.c \ + ../../../../../src/ta_func/ta_BOP.c \ + ../../../../../src/ta_func/ta_CCI.c \ + ../../../../../src/ta_func/ta_CDL2CROWS.c \ + ../../../../../src/ta_func/ta_CDL3BLACKCROWS.c \ + ../../../../../src/ta_func/ta_CDL3INSIDE.c \ + ../../../../../src/ta_func/ta_CDL3LINESTRIKE.c \ + ../../../../../src/ta_func/ta_CDL3OUTSIDE.c \ + ../../../../../src/ta_func/ta_CDL3STARSINSOUTH.c \ + ../../../../../src/ta_func/ta_CDL3WHITESOLDIERS.c \ + ../../../../../src/ta_func/ta_CDLABANDONEDBABY.c \ + ../../../../../src/ta_func/ta_CDLADVANCEBLOCK.c \ + ../../../../../src/ta_func/ta_CDLBELTHOLD.c \ + ../../../../../src/ta_func/ta_CDLBREAKAWAY.c \ + ../../../../../src/ta_func/ta_CDLCLOSINGMARUBOZU.c \ + ../../../../../src/ta_func/ta_CDLCONCEALBABYSWALL.c \ + ../../../../../src/ta_func/ta_CDLCOUNTERATTACK.c \ + ../../../../../src/ta_func/ta_CDLDARKCLOUDCOVER.c \ + ../../../../../src/ta_func/ta_CDLDOJI.c \ + ../../../../../src/ta_func/ta_CDLDOJISTAR.c \ + ../../../../../src/ta_func/ta_CDLDRAGONFLYDOJI.c \ + ../../../../../src/ta_func/ta_CDLENGULFING.c \ + ../../../../../src/ta_func/ta_CDLEVENINGDOJISTAR.c \ + ../../../../../src/ta_func/ta_CDLEVENINGSTAR.c \ + ../../../../../src/ta_func/ta_CDLGAPSIDESIDEWHITE.c \ + ../../../../../src/ta_func/ta_CDLGRAVESTONEDOJI.c \ + ../../../../../src/ta_func/ta_CDLHAMMER.c \ + ../../../../../src/ta_func/ta_CDLHANGINGMAN.c \ + ../../../../../src/ta_func/ta_CDLHARAMI.c \ + ../../../../../src/ta_func/ta_CDLHARAMICROSS.c \ + ../../../../../src/ta_func/ta_CDLHIGHWAVE.c \ + ../../../../../src/ta_func/ta_CDLHIKKAKE.c \ + ../../../../../src/ta_func/ta_CDLHIKKAKEMOD.c \ + ../../../../../src/ta_func/ta_CDLHOMINGPIGEON.c \ + ../../../../../src/ta_func/ta_CDLIDENTICAL3CROWS.c \ + ../../../../../src/ta_func/ta_CDLINNECK.c \ + ../../../../../src/ta_func/ta_CDLINVERTEDHAMMER.c \ + ../../../../../src/ta_func/ta_CDLKICKING.c \ + ../../../../../src/ta_func/ta_CDLKICKINGBYLENGTH.c \ + ../../../../../src/ta_func/ta_CDLLADDERBOTTOM.c \ + ../../../../../src/ta_func/ta_CDLLONGLEGGEDDOJI.c \ + ../../../../../src/ta_func/ta_CDLLONGLINE.c \ + ../../../../../src/ta_func/ta_CDLMARUBOZU.c \ + ../../../../../src/ta_func/ta_CDLMATCHINGLOW.c \ + ../../../../../src/ta_func/ta_CDLMATHOLD.c \ + ../../../../../src/ta_func/ta_CDLMORNINGDOJISTAR.c \ + ../../../../../src/ta_func/ta_CDLMORNINGSTAR.c \ + ../../../../../src/ta_func/ta_CDLONNECK.c \ + ../../../../../src/ta_func/ta_CDLPIERCING.c \ + ../../../../../src/ta_func/ta_CDLRICKSHAWMAN.c \ + ../../../../../src/ta_func/ta_CDLRISEFALL3METHODS.c \ + ../../../../../src/ta_func/ta_CDLSEPARATINGLINES.c \ + ../../../../../src/ta_func/ta_CDLSHOOTINGSTAR.c \ + ../../../../../src/ta_func/ta_CDLSHORTLINE.c \ + ../../../../../src/ta_func/ta_CDLSPINNINGTOP.c \ + ../../../../../src/ta_func/ta_CDLSTALLEDPATTERN.c \ + ../../../../../src/ta_func/ta_CDLSTICKSANDWICH.c \ + ../../../../../src/ta_func/ta_CDLTAKURI.c \ + ../../../../../src/ta_func/ta_CDLTASUKIGAP.c \ + ../../../../../src/ta_func/ta_CDLTHRUSTING.c \ + ../../../../../src/ta_func/ta_CDLTRISTAR.c \ + ../../../../../src/ta_func/ta_CDLUNIQUE3RIVER.c \ + ../../../../../src/ta_func/ta_CDLUPSIDEGAP2CROWS.c \ + ../../../../../src/ta_func/ta_CDLXSIDEGAP3METHODS.c \ + ../../../../../src/ta_func/ta_CEIL.c \ + ../../../../../src/ta_func/ta_CMO.c \ + ../../../../../src/ta_func/ta_CORREL.c \ + ../../../../../src/ta_func/ta_COS.c \ + ../../../../../src/ta_func/ta_COSH.c \ + ../../../../../src/ta_func/ta_DEMA.c \ + ../../../../../src/ta_func/ta_DIV.c \ + ../../../../../src/ta_func/ta_DX.c \ + ../../../../../src/ta_func/ta_EMA.c \ + ../../../../../src/ta_func/ta_EXP.c \ + ../../../../../src/ta_func/ta_FLOOR.c \ + ../../../../../src/ta_func/ta_HT_DCPERIOD.c \ + ../../../../../src/ta_func/ta_HT_DCPHASE.c \ + ../../../../../src/ta_func/ta_HT_PHASOR.c \ + ../../../../../src/ta_func/ta_HT_SINE.c \ + ../../../../../src/ta_func/ta_HT_TRENDLINE.c \ + ../../../../../src/ta_func/ta_HT_TRENDMODE.c \ + ../../../../../src/ta_func/ta_KAMA.c \ + ../../../../../src/ta_func/ta_LINEARREG.c \ + ../../../../../src/ta_func/ta_LINEARREG_ANGLE.c \ + ../../../../../src/ta_func/ta_LINEARREG_INTERCEPT.c \ + ../../../../../src/ta_func/ta_LINEARREG_SLOPE.c \ + ../../../../../src/ta_func/ta_LN.c \ + ../../../../../src/ta_func/ta_LOG10.c \ + ../../../../../src/ta_func/ta_MA.c \ + ../../../../../src/ta_func/ta_MACD.c \ + ../../../../../src/ta_func/ta_MACDEXT.c \ + ../../../../../src/ta_func/ta_MACDFIX.c \ + ../../../../../src/ta_func/ta_MAMA.c \ + ../../../../../src/ta_func/ta_MAVP.c \ + ../../../../../src/ta_func/ta_MAX.c \ + ../../../../../src/ta_func/ta_MAXINDEX.c \ + ../../../../../src/ta_func/ta_MEDPRICE.c \ + ../../../../../src/ta_func/ta_MFI.c \ + ../../../../../src/ta_func/ta_MIDPOINT.c \ + ../../../../../src/ta_func/ta_MIDPRICE.c \ + ../../../../../src/ta_func/ta_MIN.c \ + ../../../../../src/ta_func/ta_MININDEX.c \ + ../../../../../src/ta_func/ta_MINMAX.c \ + ../../../../../src/ta_func/ta_MINMAXINDEX.c \ + ../../../../../src/ta_func/ta_MINUS_DI.c \ + ../../../../../src/ta_func/ta_MINUS_DM.c \ + ../../../../../src/ta_func/ta_MOM.c \ + ../../../../../src/ta_func/ta_MULT.c \ + ../../../../../src/ta_func/ta_NATR.c \ + ../../../../../src/ta_func/ta_OBV.c \ + ../../../../../src/ta_func/ta_PLUS_DI.c \ + ../../../../../src/ta_func/ta_PLUS_DM.c \ + ../../../../../src/ta_func/ta_PPO.c \ + ../../../../../src/ta_func/ta_ROC.c \ + ../../../../../src/ta_func/ta_ROCP.c \ + ../../../../../src/ta_func/ta_ROCR.c \ + ../../../../../src/ta_func/ta_ROCR100.c \ + ../../../../../src/ta_func/ta_RSI.c \ + ../../../../../src/ta_func/ta_SAR.c \ + ../../../../../src/ta_func/ta_SAREXT.c \ + ../../../../../src/ta_func/ta_SIN.c \ + ../../../../../src/ta_func/ta_SINH.c \ + ../../../../../src/ta_func/ta_SMA.c \ + ../../../../../src/ta_func/ta_SQRT.c \ + ../../../../../src/ta_func/ta_STDDEV.c \ + ../../../../../src/ta_func/ta_STOCH.c \ + ../../../../../src/ta_func/ta_STOCHF.c \ + ../../../../../src/ta_func/ta_STOCHRSI.c \ + ../../../../../src/ta_func/ta_SUB.c \ + ../../../../../src/ta_func/ta_SUM.c \ + ../../../../../src/ta_func/ta_T3.c \ + ../../../../../src/ta_func/ta_TAN.c \ + ../../../../../src/ta_func/ta_TANH.c \ + ../../../../../src/ta_func/ta_TEMA.c \ + ../../../../../src/ta_func/ta_TRANGE.c \ + ../../../../../src/ta_func/ta_TRIMA.c \ + ../../../../../src/ta_func/ta_TRIX.c \ + ../../../../../src/ta_func/ta_TSF.c \ + ../../../../../src/ta_func/ta_TYPPRICE.c \ + ../../../../../src/ta_func/ta_ULTOSC.c \ + ../../../../../src/ta_func/ta_VAR.c \ + ../../../../../src/ta_func/ta_WCLPRICE.c \ + ../../../../../src/ta_func/ta_WILLR.c \ + ../../../../../src/ta_func/ta_WMA.c +OBJECTS = ../../../../../temp/csp/ta_global.o \ + ../../../../../temp/csp/ta_retcode.o \ + ../../../../../temp/csp/ta_version.o \ + ../../../../../temp/csp/ta_abstract.o \ + ../../../../../temp/csp/ta_def_ui.o \ + ../../../../../temp/csp/ta_func_api.o \ + ../../../../../temp/csp/ta_group_idx.o \ + ../../../../../temp/csp/ta_frame.o \ + ../../../../../temp/csp/table_a.o \ + ../../../../../temp/csp/table_b.o \ + ../../../../../temp/csp/table_c.o \ + ../../../../../temp/csp/table_d.o \ + ../../../../../temp/csp/table_e.o \ + ../../../../../temp/csp/table_f.o \ + ../../../../../temp/csp/table_g.o \ + ../../../../../temp/csp/table_h.o \ + ../../../../../temp/csp/table_i.o \ + ../../../../../temp/csp/table_j.o \ + ../../../../../temp/csp/table_k.o \ + ../../../../../temp/csp/table_l.o \ + ../../../../../temp/csp/table_m.o \ + ../../../../../temp/csp/table_n.o \ + ../../../../../temp/csp/table_o.o \ + ../../../../../temp/csp/table_p.o \ + ../../../../../temp/csp/table_q.o \ + ../../../../../temp/csp/table_r.o \ + ../../../../../temp/csp/table_s.o \ + ../../../../../temp/csp/table_t.o \ + ../../../../../temp/csp/table_u.o \ + ../../../../../temp/csp/table_v.o \ + ../../../../../temp/csp/table_w.o \ + ../../../../../temp/csp/table_x.o \ + ../../../../../temp/csp/table_y.o \ + ../../../../../temp/csp/table_z.o \ + ../../../../../temp/csp/ta_utility.o \ + ../../../../../temp/csp/ta_ACOS.o \ + ../../../../../temp/csp/ta_AD.o \ + ../../../../../temp/csp/ta_ADD.o \ + ../../../../../temp/csp/ta_ADOSC.o \ + ../../../../../temp/csp/ta_ADX.o \ + ../../../../../temp/csp/ta_ADXR.o \ + ../../../../../temp/csp/ta_APO.o \ + ../../../../../temp/csp/ta_AROON.o \ + ../../../../../temp/csp/ta_AROONOSC.o \ + ../../../../../temp/csp/ta_ASIN.o \ + ../../../../../temp/csp/ta_ATAN.o \ + ../../../../../temp/csp/ta_ATR.o \ + ../../../../../temp/csp/ta_AVGPRICE.o \ + ../../../../../temp/csp/ta_BBANDS.o \ + ../../../../../temp/csp/ta_BETA.o \ + ../../../../../temp/csp/ta_BOP.o \ + ../../../../../temp/csp/ta_CCI.o \ + ../../../../../temp/csp/ta_CDL2CROWS.o \ + ../../../../../temp/csp/ta_CDL3BLACKCROWS.o \ + ../../../../../temp/csp/ta_CDL3INSIDE.o \ + ../../../../../temp/csp/ta_CDL3LINESTRIKE.o \ + ../../../../../temp/csp/ta_CDL3OUTSIDE.o \ + ../../../../../temp/csp/ta_CDL3STARSINSOUTH.o \ + ../../../../../temp/csp/ta_CDL3WHITESOLDIERS.o \ + ../../../../../temp/csp/ta_CDLABANDONEDBABY.o \ + ../../../../../temp/csp/ta_CDLADVANCEBLOCK.o \ + ../../../../../temp/csp/ta_CDLBELTHOLD.o \ + ../../../../../temp/csp/ta_CDLBREAKAWAY.o \ + ../../../../../temp/csp/ta_CDLCLOSINGMARUBOZU.o \ + ../../../../../temp/csp/ta_CDLCONCEALBABYSWALL.o \ + ../../../../../temp/csp/ta_CDLCOUNTERATTACK.o \ + ../../../../../temp/csp/ta_CDLDARKCLOUDCOVER.o \ + ../../../../../temp/csp/ta_CDLDOJI.o \ + ../../../../../temp/csp/ta_CDLDOJISTAR.o \ + ../../../../../temp/csp/ta_CDLDRAGONFLYDOJI.o \ + ../../../../../temp/csp/ta_CDLENGULFING.o \ + ../../../../../temp/csp/ta_CDLEVENINGDOJISTAR.o \ + ../../../../../temp/csp/ta_CDLEVENINGSTAR.o \ + ../../../../../temp/csp/ta_CDLGAPSIDESIDEWHITE.o \ + ../../../../../temp/csp/ta_CDLGRAVESTONEDOJI.o \ + ../../../../../temp/csp/ta_CDLHAMMER.o \ + ../../../../../temp/csp/ta_CDLHANGINGMAN.o \ + ../../../../../temp/csp/ta_CDLHARAMI.o \ + ../../../../../temp/csp/ta_CDLHARAMICROSS.o \ + ../../../../../temp/csp/ta_CDLHIGHWAVE.o \ + ../../../../../temp/csp/ta_CDLHIKKAKE.o \ + ../../../../../temp/csp/ta_CDLHIKKAKEMOD.o \ + ../../../../../temp/csp/ta_CDLHOMINGPIGEON.o \ + ../../../../../temp/csp/ta_CDLIDENTICAL3CROWS.o \ + ../../../../../temp/csp/ta_CDLINNECK.o \ + ../../../../../temp/csp/ta_CDLINVERTEDHAMMER.o \ + ../../../../../temp/csp/ta_CDLKICKING.o \ + ../../../../../temp/csp/ta_CDLKICKINGBYLENGTH.o \ + ../../../../../temp/csp/ta_CDLLADDERBOTTOM.o \ + ../../../../../temp/csp/ta_CDLLONGLEGGEDDOJI.o \ + ../../../../../temp/csp/ta_CDLLONGLINE.o \ + ../../../../../temp/csp/ta_CDLMARUBOZU.o \ + ../../../../../temp/csp/ta_CDLMATCHINGLOW.o \ + ../../../../../temp/csp/ta_CDLMATHOLD.o \ + ../../../../../temp/csp/ta_CDLMORNINGDOJISTAR.o \ + ../../../../../temp/csp/ta_CDLMORNINGSTAR.o \ + ../../../../../temp/csp/ta_CDLONNECK.o \ + ../../../../../temp/csp/ta_CDLPIERCING.o \ + ../../../../../temp/csp/ta_CDLRICKSHAWMAN.o \ + ../../../../../temp/csp/ta_CDLRISEFALL3METHODS.o \ + ../../../../../temp/csp/ta_CDLSEPARATINGLINES.o \ + ../../../../../temp/csp/ta_CDLSHOOTINGSTAR.o \ + ../../../../../temp/csp/ta_CDLSHORTLINE.o \ + ../../../../../temp/csp/ta_CDLSPINNINGTOP.o \ + ../../../../../temp/csp/ta_CDLSTALLEDPATTERN.o \ + ../../../../../temp/csp/ta_CDLSTICKSANDWICH.o \ + ../../../../../temp/csp/ta_CDLTAKURI.o \ + ../../../../../temp/csp/ta_CDLTASUKIGAP.o \ + ../../../../../temp/csp/ta_CDLTHRUSTING.o \ + ../../../../../temp/csp/ta_CDLTRISTAR.o \ + ../../../../../temp/csp/ta_CDLUNIQUE3RIVER.o \ + ../../../../../temp/csp/ta_CDLUPSIDEGAP2CROWS.o \ + ../../../../../temp/csp/ta_CDLXSIDEGAP3METHODS.o \ + ../../../../../temp/csp/ta_CEIL.o \ + ../../../../../temp/csp/ta_CMO.o \ + ../../../../../temp/csp/ta_CORREL.o \ + ../../../../../temp/csp/ta_COS.o \ + ../../../../../temp/csp/ta_COSH.o \ + ../../../../../temp/csp/ta_DEMA.o \ + ../../../../../temp/csp/ta_DIV.o \ + ../../../../../temp/csp/ta_DX.o \ + ../../../../../temp/csp/ta_EMA.o \ + ../../../../../temp/csp/ta_EXP.o \ + ../../../../../temp/csp/ta_FLOOR.o \ + ../../../../../temp/csp/ta_HT_DCPERIOD.o \ + ../../../../../temp/csp/ta_HT_DCPHASE.o \ + ../../../../../temp/csp/ta_HT_PHASOR.o \ + ../../../../../temp/csp/ta_HT_SINE.o \ + ../../../../../temp/csp/ta_HT_TRENDLINE.o \ + ../../../../../temp/csp/ta_HT_TRENDMODE.o \ + ../../../../../temp/csp/ta_KAMA.o \ + ../../../../../temp/csp/ta_LINEARREG.o \ + ../../../../../temp/csp/ta_LINEARREG_ANGLE.o \ + ../../../../../temp/csp/ta_LINEARREG_INTERCEPT.o \ + ../../../../../temp/csp/ta_LINEARREG_SLOPE.o \ + ../../../../../temp/csp/ta_LN.o \ + ../../../../../temp/csp/ta_LOG10.o \ + ../../../../../temp/csp/ta_MA.o \ + ../../../../../temp/csp/ta_MACD.o \ + ../../../../../temp/csp/ta_MACDEXT.o \ + ../../../../../temp/csp/ta_MACDFIX.o \ + ../../../../../temp/csp/ta_MAMA.o \ + ../../../../../temp/csp/ta_MAVP.o \ + ../../../../../temp/csp/ta_MAX.o \ + ../../../../../temp/csp/ta_MAXINDEX.o \ + ../../../../../temp/csp/ta_MEDPRICE.o \ + ../../../../../temp/csp/ta_MFI.o \ + ../../../../../temp/csp/ta_MIDPOINT.o \ + ../../../../../temp/csp/ta_MIDPRICE.o \ + ../../../../../temp/csp/ta_MIN.o \ + ../../../../../temp/csp/ta_MININDEX.o \ + ../../../../../temp/csp/ta_MINMAX.o \ + ../../../../../temp/csp/ta_MINMAXINDEX.o \ + ../../../../../temp/csp/ta_MINUS_DI.o \ + ../../../../../temp/csp/ta_MINUS_DM.o \ + ../../../../../temp/csp/ta_MOM.o \ + ../../../../../temp/csp/ta_MULT.o \ + ../../../../../temp/csp/ta_NATR.o \ + ../../../../../temp/csp/ta_OBV.o \ + ../../../../../temp/csp/ta_PLUS_DI.o \ + ../../../../../temp/csp/ta_PLUS_DM.o \ + ../../../../../temp/csp/ta_PPO.o \ + ../../../../../temp/csp/ta_ROC.o \ + ../../../../../temp/csp/ta_ROCP.o \ + ../../../../../temp/csp/ta_ROCR.o \ + ../../../../../temp/csp/ta_ROCR100.o \ + ../../../../../temp/csp/ta_RSI.o \ + ../../../../../temp/csp/ta_SAR.o \ + ../../../../../temp/csp/ta_SAREXT.o \ + ../../../../../temp/csp/ta_SIN.o \ + ../../../../../temp/csp/ta_SINH.o \ + ../../../../../temp/csp/ta_SMA.o \ + ../../../../../temp/csp/ta_SQRT.o \ + ../../../../../temp/csp/ta_STDDEV.o \ + ../../../../../temp/csp/ta_STOCH.o \ + ../../../../../temp/csp/ta_STOCHF.o \ + ../../../../../temp/csp/ta_STOCHRSI.o \ + ../../../../../temp/csp/ta_SUB.o \ + ../../../../../temp/csp/ta_SUM.o \ + ../../../../../temp/csp/ta_T3.o \ + ../../../../../temp/csp/ta_TAN.o \ + ../../../../../temp/csp/ta_TANH.o \ + ../../../../../temp/csp/ta_TEMA.o \ + ../../../../../temp/csp/ta_TRANGE.o \ + ../../../../../temp/csp/ta_TRIMA.o \ + ../../../../../temp/csp/ta_TRIX.o \ + ../../../../../temp/csp/ta_TSF.o \ + ../../../../../temp/csp/ta_TYPPRICE.o \ + ../../../../../temp/csp/ta_ULTOSC.o \ + ../../../../../temp/csp/ta_VAR.o \ + ../../../../../temp/csp/ta_WCLPRICE.o \ + ../../../../../temp/csp/ta_WILLR.o \ + ../../../../../temp/csp/ta_WMA.o +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ../../../../../lib/libta_libc_csp.a +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .C .c + +.cpp.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cxx.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cc.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.C.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.c.o: + $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $< + +####### Build rules + + +all: $(TARGET) + +staticlib: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + -rm -f $(TARGET) + $(AR) $(TARGET) $(OBJECTS) $(OBJMOC) + +moc: $(SRCMOC) + +clean: + -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) + -rm -f *~ core + +####### Sub-libraries + + +###### Combined headers + + +####### Compile + +../../../../../temp/csp/ta_global.o: ../../../../../src/ta_common/ta_global.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_global.o ../../../../../src/ta_common/ta_global.c + +../../../../../temp/csp/ta_retcode.o: ../../../../../src/ta_common/ta_retcode.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_retcode.o ../../../../../src/ta_common/ta_retcode.c + +../../../../../temp/csp/ta_version.o: ../../../../../src/ta_common/ta_version.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_version.o ../../../../../src/ta_common/ta_version.c + +../../../../../temp/csp/ta_abstract.o: ../../../../../src/ta_abstract/ta_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_abstract.o ../../../../../src/ta_abstract/ta_abstract.c + +../../../../../temp/csp/ta_def_ui.o: ../../../../../src/ta_abstract/ta_def_ui.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_def_ui.o ../../../../../src/ta_abstract/ta_def_ui.c + +../../../../../temp/csp/ta_func_api.o: ../../../../../src/ta_abstract/ta_func_api.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_func_api.o ../../../../../src/ta_abstract/ta_func_api.c + +../../../../../temp/csp/ta_group_idx.o: ../../../../../src/ta_abstract/ta_group_idx.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_group_idx.o ../../../../../src/ta_abstract/ta_group_idx.c + +../../../../../temp/csp/ta_frame.o: ../../../../../src/ta_abstract/frames/ta_frame.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_frame.o ../../../../../src/ta_abstract/frames/ta_frame.c + +../../../../../temp/csp/table_a.o: ../../../../../src/ta_abstract/tables/table_a.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_a.o ../../../../../src/ta_abstract/tables/table_a.c + +../../../../../temp/csp/table_b.o: ../../../../../src/ta_abstract/tables/table_b.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_b.o ../../../../../src/ta_abstract/tables/table_b.c + +../../../../../temp/csp/table_c.o: ../../../../../src/ta_abstract/tables/table_c.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_c.o ../../../../../src/ta_abstract/tables/table_c.c + +../../../../../temp/csp/table_d.o: ../../../../../src/ta_abstract/tables/table_d.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_d.o ../../../../../src/ta_abstract/tables/table_d.c + +../../../../../temp/csp/table_e.o: ../../../../../src/ta_abstract/tables/table_e.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_e.o ../../../../../src/ta_abstract/tables/table_e.c + +../../../../../temp/csp/table_f.o: ../../../../../src/ta_abstract/tables/table_f.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_f.o ../../../../../src/ta_abstract/tables/table_f.c + +../../../../../temp/csp/table_g.o: ../../../../../src/ta_abstract/tables/table_g.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_g.o ../../../../../src/ta_abstract/tables/table_g.c + +../../../../../temp/csp/table_h.o: ../../../../../src/ta_abstract/tables/table_h.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_h.o ../../../../../src/ta_abstract/tables/table_h.c + +../../../../../temp/csp/table_i.o: ../../../../../src/ta_abstract/tables/table_i.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_i.o ../../../../../src/ta_abstract/tables/table_i.c + +../../../../../temp/csp/table_j.o: ../../../../../src/ta_abstract/tables/table_j.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_j.o ../../../../../src/ta_abstract/tables/table_j.c + +../../../../../temp/csp/table_k.o: ../../../../../src/ta_abstract/tables/table_k.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_k.o ../../../../../src/ta_abstract/tables/table_k.c + +../../../../../temp/csp/table_l.o: ../../../../../src/ta_abstract/tables/table_l.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_l.o ../../../../../src/ta_abstract/tables/table_l.c + +../../../../../temp/csp/table_m.o: ../../../../../src/ta_abstract/tables/table_m.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_m.o ../../../../../src/ta_abstract/tables/table_m.c + +../../../../../temp/csp/table_n.o: ../../../../../src/ta_abstract/tables/table_n.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_n.o ../../../../../src/ta_abstract/tables/table_n.c + +../../../../../temp/csp/table_o.o: ../../../../../src/ta_abstract/tables/table_o.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_o.o ../../../../../src/ta_abstract/tables/table_o.c + +../../../../../temp/csp/table_p.o: ../../../../../src/ta_abstract/tables/table_p.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_p.o ../../../../../src/ta_abstract/tables/table_p.c + +../../../../../temp/csp/table_q.o: ../../../../../src/ta_abstract/tables/table_q.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_q.o ../../../../../src/ta_abstract/tables/table_q.c + +../../../../../temp/csp/table_r.o: ../../../../../src/ta_abstract/tables/table_r.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_r.o ../../../../../src/ta_abstract/tables/table_r.c + +../../../../../temp/csp/table_s.o: ../../../../../src/ta_abstract/tables/table_s.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_s.o ../../../../../src/ta_abstract/tables/table_s.c + +../../../../../temp/csp/table_t.o: ../../../../../src/ta_abstract/tables/table_t.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_t.o ../../../../../src/ta_abstract/tables/table_t.c + +../../../../../temp/csp/table_u.o: ../../../../../src/ta_abstract/tables/table_u.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_u.o ../../../../../src/ta_abstract/tables/table_u.c + +../../../../../temp/csp/table_v.o: ../../../../../src/ta_abstract/tables/table_v.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_v.o ../../../../../src/ta_abstract/tables/table_v.c + +../../../../../temp/csp/table_w.o: ../../../../../src/ta_abstract/tables/table_w.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_w.o ../../../../../src/ta_abstract/tables/table_w.c + +../../../../../temp/csp/table_x.o: ../../../../../src/ta_abstract/tables/table_x.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_x.o ../../../../../src/ta_abstract/tables/table_x.c + +../../../../../temp/csp/table_y.o: ../../../../../src/ta_abstract/tables/table_y.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_y.o ../../../../../src/ta_abstract/tables/table_y.c + +../../../../../temp/csp/table_z.o: ../../../../../src/ta_abstract/tables/table_z.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/table_z.o ../../../../../src/ta_abstract/tables/table_z.c + +../../../../../temp/csp/ta_utility.o: ../../../../../src/ta_func/ta_utility.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_utility.o ../../../../../src/ta_func/ta_utility.c + +../../../../../temp/csp/ta_ACOS.o: ../../../../../src/ta_func/ta_ACOS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_ACOS.o ../../../../../src/ta_func/ta_ACOS.c + +../../../../../temp/csp/ta_AD.o: ../../../../../src/ta_func/ta_AD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_AD.o ../../../../../src/ta_func/ta_AD.c + +../../../../../temp/csp/ta_ADD.o: ../../../../../src/ta_func/ta_ADD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_ADD.o ../../../../../src/ta_func/ta_ADD.c + +../../../../../temp/csp/ta_ADOSC.o: ../../../../../src/ta_func/ta_ADOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_ADOSC.o ../../../../../src/ta_func/ta_ADOSC.c + +../../../../../temp/csp/ta_ADX.o: ../../../../../src/ta_func/ta_ADX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_ADX.o ../../../../../src/ta_func/ta_ADX.c + +../../../../../temp/csp/ta_ADXR.o: ../../../../../src/ta_func/ta_ADXR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_ADXR.o ../../../../../src/ta_func/ta_ADXR.c + +../../../../../temp/csp/ta_APO.o: ../../../../../src/ta_func/ta_APO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_APO.o ../../../../../src/ta_func/ta_APO.c + +../../../../../temp/csp/ta_AROON.o: ../../../../../src/ta_func/ta_AROON.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_AROON.o ../../../../../src/ta_func/ta_AROON.c + +../../../../../temp/csp/ta_AROONOSC.o: ../../../../../src/ta_func/ta_AROONOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_AROONOSC.o ../../../../../src/ta_func/ta_AROONOSC.c + +../../../../../temp/csp/ta_ASIN.o: ../../../../../src/ta_func/ta_ASIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_ASIN.o ../../../../../src/ta_func/ta_ASIN.c + +../../../../../temp/csp/ta_ATAN.o: ../../../../../src/ta_func/ta_ATAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_ATAN.o ../../../../../src/ta_func/ta_ATAN.c + +../../../../../temp/csp/ta_ATR.o: ../../../../../src/ta_func/ta_ATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_ATR.o ../../../../../src/ta_func/ta_ATR.c + +../../../../../temp/csp/ta_AVGPRICE.o: ../../../../../src/ta_func/ta_AVGPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_AVGPRICE.o ../../../../../src/ta_func/ta_AVGPRICE.c + +../../../../../temp/csp/ta_BBANDS.o: ../../../../../src/ta_func/ta_BBANDS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_BBANDS.o ../../../../../src/ta_func/ta_BBANDS.c + +../../../../../temp/csp/ta_BETA.o: ../../../../../src/ta_func/ta_BETA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_BETA.o ../../../../../src/ta_func/ta_BETA.c + +../../../../../temp/csp/ta_BOP.o: ../../../../../src/ta_func/ta_BOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_BOP.o ../../../../../src/ta_func/ta_BOP.c + +../../../../../temp/csp/ta_CCI.o: ../../../../../src/ta_func/ta_CCI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CCI.o ../../../../../src/ta_func/ta_CCI.c + +../../../../../temp/csp/ta_CDL2CROWS.o: ../../../../../src/ta_func/ta_CDL2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDL2CROWS.o ../../../../../src/ta_func/ta_CDL2CROWS.c + +../../../../../temp/csp/ta_CDL3BLACKCROWS.o: ../../../../../src/ta_func/ta_CDL3BLACKCROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDL3BLACKCROWS.o ../../../../../src/ta_func/ta_CDL3BLACKCROWS.c + +../../../../../temp/csp/ta_CDL3INSIDE.o: ../../../../../src/ta_func/ta_CDL3INSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDL3INSIDE.o ../../../../../src/ta_func/ta_CDL3INSIDE.c + +../../../../../temp/csp/ta_CDL3LINESTRIKE.o: ../../../../../src/ta_func/ta_CDL3LINESTRIKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDL3LINESTRIKE.o ../../../../../src/ta_func/ta_CDL3LINESTRIKE.c + +../../../../../temp/csp/ta_CDL3OUTSIDE.o: ../../../../../src/ta_func/ta_CDL3OUTSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDL3OUTSIDE.o ../../../../../src/ta_func/ta_CDL3OUTSIDE.c + +../../../../../temp/csp/ta_CDL3STARSINSOUTH.o: ../../../../../src/ta_func/ta_CDL3STARSINSOUTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDL3STARSINSOUTH.o ../../../../../src/ta_func/ta_CDL3STARSINSOUTH.c + +../../../../../temp/csp/ta_CDL3WHITESOLDIERS.o: ../../../../../src/ta_func/ta_CDL3WHITESOLDIERS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDL3WHITESOLDIERS.o ../../../../../src/ta_func/ta_CDL3WHITESOLDIERS.c + +../../../../../temp/csp/ta_CDLABANDONEDBABY.o: ../../../../../src/ta_func/ta_CDLABANDONEDBABY.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLABANDONEDBABY.o ../../../../../src/ta_func/ta_CDLABANDONEDBABY.c + +../../../../../temp/csp/ta_CDLADVANCEBLOCK.o: ../../../../../src/ta_func/ta_CDLADVANCEBLOCK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLADVANCEBLOCK.o ../../../../../src/ta_func/ta_CDLADVANCEBLOCK.c + +../../../../../temp/csp/ta_CDLBELTHOLD.o: ../../../../../src/ta_func/ta_CDLBELTHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLBELTHOLD.o ../../../../../src/ta_func/ta_CDLBELTHOLD.c + +../../../../../temp/csp/ta_CDLBREAKAWAY.o: ../../../../../src/ta_func/ta_CDLBREAKAWAY.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLBREAKAWAY.o ../../../../../src/ta_func/ta_CDLBREAKAWAY.c + +../../../../../temp/csp/ta_CDLCLOSINGMARUBOZU.o: ../../../../../src/ta_func/ta_CDLCLOSINGMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLCLOSINGMARUBOZU.o ../../../../../src/ta_func/ta_CDLCLOSINGMARUBOZU.c + +../../../../../temp/csp/ta_CDLCONCEALBABYSWALL.o: ../../../../../src/ta_func/ta_CDLCONCEALBABYSWALL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLCONCEALBABYSWALL.o ../../../../../src/ta_func/ta_CDLCONCEALBABYSWALL.c + +../../../../../temp/csp/ta_CDLCOUNTERATTACK.o: ../../../../../src/ta_func/ta_CDLCOUNTERATTACK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLCOUNTERATTACK.o ../../../../../src/ta_func/ta_CDLCOUNTERATTACK.c + +../../../../../temp/csp/ta_CDLDARKCLOUDCOVER.o: ../../../../../src/ta_func/ta_CDLDARKCLOUDCOVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLDARKCLOUDCOVER.o ../../../../../src/ta_func/ta_CDLDARKCLOUDCOVER.c + +../../../../../temp/csp/ta_CDLDOJI.o: ../../../../../src/ta_func/ta_CDLDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLDOJI.o ../../../../../src/ta_func/ta_CDLDOJI.c + +../../../../../temp/csp/ta_CDLDOJISTAR.o: ../../../../../src/ta_func/ta_CDLDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLDOJISTAR.o ../../../../../src/ta_func/ta_CDLDOJISTAR.c + +../../../../../temp/csp/ta_CDLDRAGONFLYDOJI.o: ../../../../../src/ta_func/ta_CDLDRAGONFLYDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLDRAGONFLYDOJI.o ../../../../../src/ta_func/ta_CDLDRAGONFLYDOJI.c + +../../../../../temp/csp/ta_CDLENGULFING.o: ../../../../../src/ta_func/ta_CDLENGULFING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLENGULFING.o ../../../../../src/ta_func/ta_CDLENGULFING.c + +../../../../../temp/csp/ta_CDLEVENINGDOJISTAR.o: ../../../../../src/ta_func/ta_CDLEVENINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLEVENINGDOJISTAR.o ../../../../../src/ta_func/ta_CDLEVENINGDOJISTAR.c + +../../../../../temp/csp/ta_CDLEVENINGSTAR.o: ../../../../../src/ta_func/ta_CDLEVENINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLEVENINGSTAR.o ../../../../../src/ta_func/ta_CDLEVENINGSTAR.c + +../../../../../temp/csp/ta_CDLGAPSIDESIDEWHITE.o: ../../../../../src/ta_func/ta_CDLGAPSIDESIDEWHITE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLGAPSIDESIDEWHITE.o ../../../../../src/ta_func/ta_CDLGAPSIDESIDEWHITE.c + +../../../../../temp/csp/ta_CDLGRAVESTONEDOJI.o: ../../../../../src/ta_func/ta_CDLGRAVESTONEDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLGRAVESTONEDOJI.o ../../../../../src/ta_func/ta_CDLGRAVESTONEDOJI.c + +../../../../../temp/csp/ta_CDLHAMMER.o: ../../../../../src/ta_func/ta_CDLHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLHAMMER.o ../../../../../src/ta_func/ta_CDLHAMMER.c + +../../../../../temp/csp/ta_CDLHANGINGMAN.o: ../../../../../src/ta_func/ta_CDLHANGINGMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLHANGINGMAN.o ../../../../../src/ta_func/ta_CDLHANGINGMAN.c + +../../../../../temp/csp/ta_CDLHARAMI.o: ../../../../../src/ta_func/ta_CDLHARAMI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLHARAMI.o ../../../../../src/ta_func/ta_CDLHARAMI.c + +../../../../../temp/csp/ta_CDLHARAMICROSS.o: ../../../../../src/ta_func/ta_CDLHARAMICROSS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLHARAMICROSS.o ../../../../../src/ta_func/ta_CDLHARAMICROSS.c + +../../../../../temp/csp/ta_CDLHIGHWAVE.o: ../../../../../src/ta_func/ta_CDLHIGHWAVE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLHIGHWAVE.o ../../../../../src/ta_func/ta_CDLHIGHWAVE.c + +../../../../../temp/csp/ta_CDLHIKKAKE.o: ../../../../../src/ta_func/ta_CDLHIKKAKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLHIKKAKE.o ../../../../../src/ta_func/ta_CDLHIKKAKE.c + +../../../../../temp/csp/ta_CDLHIKKAKEMOD.o: ../../../../../src/ta_func/ta_CDLHIKKAKEMOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLHIKKAKEMOD.o ../../../../../src/ta_func/ta_CDLHIKKAKEMOD.c + +../../../../../temp/csp/ta_CDLHOMINGPIGEON.o: ../../../../../src/ta_func/ta_CDLHOMINGPIGEON.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLHOMINGPIGEON.o ../../../../../src/ta_func/ta_CDLHOMINGPIGEON.c + +../../../../../temp/csp/ta_CDLIDENTICAL3CROWS.o: ../../../../../src/ta_func/ta_CDLIDENTICAL3CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLIDENTICAL3CROWS.o ../../../../../src/ta_func/ta_CDLIDENTICAL3CROWS.c + +../../../../../temp/csp/ta_CDLINNECK.o: ../../../../../src/ta_func/ta_CDLINNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLINNECK.o ../../../../../src/ta_func/ta_CDLINNECK.c + +../../../../../temp/csp/ta_CDLINVERTEDHAMMER.o: ../../../../../src/ta_func/ta_CDLINVERTEDHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLINVERTEDHAMMER.o ../../../../../src/ta_func/ta_CDLINVERTEDHAMMER.c + +../../../../../temp/csp/ta_CDLKICKING.o: ../../../../../src/ta_func/ta_CDLKICKING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLKICKING.o ../../../../../src/ta_func/ta_CDLKICKING.c + +../../../../../temp/csp/ta_CDLKICKINGBYLENGTH.o: ../../../../../src/ta_func/ta_CDLKICKINGBYLENGTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLKICKINGBYLENGTH.o ../../../../../src/ta_func/ta_CDLKICKINGBYLENGTH.c + +../../../../../temp/csp/ta_CDLLADDERBOTTOM.o: ../../../../../src/ta_func/ta_CDLLADDERBOTTOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLLADDERBOTTOM.o ../../../../../src/ta_func/ta_CDLLADDERBOTTOM.c + +../../../../../temp/csp/ta_CDLLONGLEGGEDDOJI.o: ../../../../../src/ta_func/ta_CDLLONGLEGGEDDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLLONGLEGGEDDOJI.o ../../../../../src/ta_func/ta_CDLLONGLEGGEDDOJI.c + +../../../../../temp/csp/ta_CDLLONGLINE.o: ../../../../../src/ta_func/ta_CDLLONGLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLLONGLINE.o ../../../../../src/ta_func/ta_CDLLONGLINE.c + +../../../../../temp/csp/ta_CDLMARUBOZU.o: ../../../../../src/ta_func/ta_CDLMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLMARUBOZU.o ../../../../../src/ta_func/ta_CDLMARUBOZU.c + +../../../../../temp/csp/ta_CDLMATCHINGLOW.o: ../../../../../src/ta_func/ta_CDLMATCHINGLOW.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLMATCHINGLOW.o ../../../../../src/ta_func/ta_CDLMATCHINGLOW.c + +../../../../../temp/csp/ta_CDLMATHOLD.o: ../../../../../src/ta_func/ta_CDLMATHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLMATHOLD.o ../../../../../src/ta_func/ta_CDLMATHOLD.c + +../../../../../temp/csp/ta_CDLMORNINGDOJISTAR.o: ../../../../../src/ta_func/ta_CDLMORNINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLMORNINGDOJISTAR.o ../../../../../src/ta_func/ta_CDLMORNINGDOJISTAR.c + +../../../../../temp/csp/ta_CDLMORNINGSTAR.o: ../../../../../src/ta_func/ta_CDLMORNINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLMORNINGSTAR.o ../../../../../src/ta_func/ta_CDLMORNINGSTAR.c + +../../../../../temp/csp/ta_CDLONNECK.o: ../../../../../src/ta_func/ta_CDLONNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLONNECK.o ../../../../../src/ta_func/ta_CDLONNECK.c + +../../../../../temp/csp/ta_CDLPIERCING.o: ../../../../../src/ta_func/ta_CDLPIERCING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLPIERCING.o ../../../../../src/ta_func/ta_CDLPIERCING.c + +../../../../../temp/csp/ta_CDLRICKSHAWMAN.o: ../../../../../src/ta_func/ta_CDLRICKSHAWMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLRICKSHAWMAN.o ../../../../../src/ta_func/ta_CDLRICKSHAWMAN.c + +../../../../../temp/csp/ta_CDLRISEFALL3METHODS.o: ../../../../../src/ta_func/ta_CDLRISEFALL3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLRISEFALL3METHODS.o ../../../../../src/ta_func/ta_CDLRISEFALL3METHODS.c + +../../../../../temp/csp/ta_CDLSEPARATINGLINES.o: ../../../../../src/ta_func/ta_CDLSEPARATINGLINES.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLSEPARATINGLINES.o ../../../../../src/ta_func/ta_CDLSEPARATINGLINES.c + +../../../../../temp/csp/ta_CDLSHOOTINGSTAR.o: ../../../../../src/ta_func/ta_CDLSHOOTINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLSHOOTINGSTAR.o ../../../../../src/ta_func/ta_CDLSHOOTINGSTAR.c + +../../../../../temp/csp/ta_CDLSHORTLINE.o: ../../../../../src/ta_func/ta_CDLSHORTLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLSHORTLINE.o ../../../../../src/ta_func/ta_CDLSHORTLINE.c + +../../../../../temp/csp/ta_CDLSPINNINGTOP.o: ../../../../../src/ta_func/ta_CDLSPINNINGTOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLSPINNINGTOP.o ../../../../../src/ta_func/ta_CDLSPINNINGTOP.c + +../../../../../temp/csp/ta_CDLSTALLEDPATTERN.o: ../../../../../src/ta_func/ta_CDLSTALLEDPATTERN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLSTALLEDPATTERN.o ../../../../../src/ta_func/ta_CDLSTALLEDPATTERN.c + +../../../../../temp/csp/ta_CDLSTICKSANDWICH.o: ../../../../../src/ta_func/ta_CDLSTICKSANDWICH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLSTICKSANDWICH.o ../../../../../src/ta_func/ta_CDLSTICKSANDWICH.c + +../../../../../temp/csp/ta_CDLTAKURI.o: ../../../../../src/ta_func/ta_CDLTAKURI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLTAKURI.o ../../../../../src/ta_func/ta_CDLTAKURI.c + +../../../../../temp/csp/ta_CDLTASUKIGAP.o: ../../../../../src/ta_func/ta_CDLTASUKIGAP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLTASUKIGAP.o ../../../../../src/ta_func/ta_CDLTASUKIGAP.c + +../../../../../temp/csp/ta_CDLTHRUSTING.o: ../../../../../src/ta_func/ta_CDLTHRUSTING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLTHRUSTING.o ../../../../../src/ta_func/ta_CDLTHRUSTING.c + +../../../../../temp/csp/ta_CDLTRISTAR.o: ../../../../../src/ta_func/ta_CDLTRISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLTRISTAR.o ../../../../../src/ta_func/ta_CDLTRISTAR.c + +../../../../../temp/csp/ta_CDLUNIQUE3RIVER.o: ../../../../../src/ta_func/ta_CDLUNIQUE3RIVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLUNIQUE3RIVER.o ../../../../../src/ta_func/ta_CDLUNIQUE3RIVER.c + +../../../../../temp/csp/ta_CDLUPSIDEGAP2CROWS.o: ../../../../../src/ta_func/ta_CDLUPSIDEGAP2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLUPSIDEGAP2CROWS.o ../../../../../src/ta_func/ta_CDLUPSIDEGAP2CROWS.c + +../../../../../temp/csp/ta_CDLXSIDEGAP3METHODS.o: ../../../../../src/ta_func/ta_CDLXSIDEGAP3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CDLXSIDEGAP3METHODS.o ../../../../../src/ta_func/ta_CDLXSIDEGAP3METHODS.c + +../../../../../temp/csp/ta_CEIL.o: ../../../../../src/ta_func/ta_CEIL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CEIL.o ../../../../../src/ta_func/ta_CEIL.c + +../../../../../temp/csp/ta_CMO.o: ../../../../../src/ta_func/ta_CMO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CMO.o ../../../../../src/ta_func/ta_CMO.c + +../../../../../temp/csp/ta_CORREL.o: ../../../../../src/ta_func/ta_CORREL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_CORREL.o ../../../../../src/ta_func/ta_CORREL.c + +../../../../../temp/csp/ta_COS.o: ../../../../../src/ta_func/ta_COS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_COS.o ../../../../../src/ta_func/ta_COS.c + +../../../../../temp/csp/ta_COSH.o: ../../../../../src/ta_func/ta_COSH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_COSH.o ../../../../../src/ta_func/ta_COSH.c + +../../../../../temp/csp/ta_DEMA.o: ../../../../../src/ta_func/ta_DEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_DEMA.o ../../../../../src/ta_func/ta_DEMA.c + +../../../../../temp/csp/ta_DIV.o: ../../../../../src/ta_func/ta_DIV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_DIV.o ../../../../../src/ta_func/ta_DIV.c + +../../../../../temp/csp/ta_DX.o: ../../../../../src/ta_func/ta_DX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_DX.o ../../../../../src/ta_func/ta_DX.c + +../../../../../temp/csp/ta_EMA.o: ../../../../../src/ta_func/ta_EMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_EMA.o ../../../../../src/ta_func/ta_EMA.c + +../../../../../temp/csp/ta_EXP.o: ../../../../../src/ta_func/ta_EXP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_EXP.o ../../../../../src/ta_func/ta_EXP.c + +../../../../../temp/csp/ta_FLOOR.o: ../../../../../src/ta_func/ta_FLOOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_FLOOR.o ../../../../../src/ta_func/ta_FLOOR.c + +../../../../../temp/csp/ta_HT_DCPERIOD.o: ../../../../../src/ta_func/ta_HT_DCPERIOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_HT_DCPERIOD.o ../../../../../src/ta_func/ta_HT_DCPERIOD.c + +../../../../../temp/csp/ta_HT_DCPHASE.o: ../../../../../src/ta_func/ta_HT_DCPHASE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_HT_DCPHASE.o ../../../../../src/ta_func/ta_HT_DCPHASE.c + +../../../../../temp/csp/ta_HT_PHASOR.o: ../../../../../src/ta_func/ta_HT_PHASOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_HT_PHASOR.o ../../../../../src/ta_func/ta_HT_PHASOR.c + +../../../../../temp/csp/ta_HT_SINE.o: ../../../../../src/ta_func/ta_HT_SINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_HT_SINE.o ../../../../../src/ta_func/ta_HT_SINE.c + +../../../../../temp/csp/ta_HT_TRENDLINE.o: ../../../../../src/ta_func/ta_HT_TRENDLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_HT_TRENDLINE.o ../../../../../src/ta_func/ta_HT_TRENDLINE.c + +../../../../../temp/csp/ta_HT_TRENDMODE.o: ../../../../../src/ta_func/ta_HT_TRENDMODE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_HT_TRENDMODE.o ../../../../../src/ta_func/ta_HT_TRENDMODE.c + +../../../../../temp/csp/ta_KAMA.o: ../../../../../src/ta_func/ta_KAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_KAMA.o ../../../../../src/ta_func/ta_KAMA.c + +../../../../../temp/csp/ta_LINEARREG.o: ../../../../../src/ta_func/ta_LINEARREG.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_LINEARREG.o ../../../../../src/ta_func/ta_LINEARREG.c + +../../../../../temp/csp/ta_LINEARREG_ANGLE.o: ../../../../../src/ta_func/ta_LINEARREG_ANGLE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_LINEARREG_ANGLE.o ../../../../../src/ta_func/ta_LINEARREG_ANGLE.c + +../../../../../temp/csp/ta_LINEARREG_INTERCEPT.o: ../../../../../src/ta_func/ta_LINEARREG_INTERCEPT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_LINEARREG_INTERCEPT.o ../../../../../src/ta_func/ta_LINEARREG_INTERCEPT.c + +../../../../../temp/csp/ta_LINEARREG_SLOPE.o: ../../../../../src/ta_func/ta_LINEARREG_SLOPE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_LINEARREG_SLOPE.o ../../../../../src/ta_func/ta_LINEARREG_SLOPE.c + +../../../../../temp/csp/ta_LN.o: ../../../../../src/ta_func/ta_LN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_LN.o ../../../../../src/ta_func/ta_LN.c + +../../../../../temp/csp/ta_LOG10.o: ../../../../../src/ta_func/ta_LOG10.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_LOG10.o ../../../../../src/ta_func/ta_LOG10.c + +../../../../../temp/csp/ta_MA.o: ../../../../../src/ta_func/ta_MA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_MA.o ../../../../../src/ta_func/ta_MA.c + +../../../../../temp/csp/ta_MACD.o: ../../../../../src/ta_func/ta_MACD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_MACD.o ../../../../../src/ta_func/ta_MACD.c + +../../../../../temp/csp/ta_MACDEXT.o: ../../../../../src/ta_func/ta_MACDEXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_MACDEXT.o ../../../../../src/ta_func/ta_MACDEXT.c + +../../../../../temp/csp/ta_MACDFIX.o: ../../../../../src/ta_func/ta_MACDFIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_MACDFIX.o ../../../../../src/ta_func/ta_MACDFIX.c + +../../../../../temp/csp/ta_MAMA.o: ../../../../../src/ta_func/ta_MAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_MAMA.o ../../../../../src/ta_func/ta_MAMA.c + +../../../../../temp/csp/ta_MAVP.o: ../../../../../src/ta_func/ta_MAVP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_MAVP.o ../../../../../src/ta_func/ta_MAVP.c + +../../../../../temp/csp/ta_MAX.o: ../../../../../src/ta_func/ta_MAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_MAX.o ../../../../../src/ta_func/ta_MAX.c + +../../../../../temp/csp/ta_MAXINDEX.o: ../../../../../src/ta_func/ta_MAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_MAXINDEX.o ../../../../../src/ta_func/ta_MAXINDEX.c + +../../../../../temp/csp/ta_MEDPRICE.o: ../../../../../src/ta_func/ta_MEDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_MEDPRICE.o ../../../../../src/ta_func/ta_MEDPRICE.c + +../../../../../temp/csp/ta_MFI.o: ../../../../../src/ta_func/ta_MFI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_MFI.o ../../../../../src/ta_func/ta_MFI.c + +../../../../../temp/csp/ta_MIDPOINT.o: ../../../../../src/ta_func/ta_MIDPOINT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_MIDPOINT.o ../../../../../src/ta_func/ta_MIDPOINT.c + +../../../../../temp/csp/ta_MIDPRICE.o: ../../../../../src/ta_func/ta_MIDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_MIDPRICE.o ../../../../../src/ta_func/ta_MIDPRICE.c + +../../../../../temp/csp/ta_MIN.o: ../../../../../src/ta_func/ta_MIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_MIN.o ../../../../../src/ta_func/ta_MIN.c + +../../../../../temp/csp/ta_MININDEX.o: ../../../../../src/ta_func/ta_MININDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_MININDEX.o ../../../../../src/ta_func/ta_MININDEX.c + +../../../../../temp/csp/ta_MINMAX.o: ../../../../../src/ta_func/ta_MINMAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_MINMAX.o ../../../../../src/ta_func/ta_MINMAX.c + +../../../../../temp/csp/ta_MINMAXINDEX.o: ../../../../../src/ta_func/ta_MINMAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_MINMAXINDEX.o ../../../../../src/ta_func/ta_MINMAXINDEX.c + +../../../../../temp/csp/ta_MINUS_DI.o: ../../../../../src/ta_func/ta_MINUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_MINUS_DI.o ../../../../../src/ta_func/ta_MINUS_DI.c + +../../../../../temp/csp/ta_MINUS_DM.o: ../../../../../src/ta_func/ta_MINUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_MINUS_DM.o ../../../../../src/ta_func/ta_MINUS_DM.c + +../../../../../temp/csp/ta_MOM.o: ../../../../../src/ta_func/ta_MOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_MOM.o ../../../../../src/ta_func/ta_MOM.c + +../../../../../temp/csp/ta_MULT.o: ../../../../../src/ta_func/ta_MULT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_MULT.o ../../../../../src/ta_func/ta_MULT.c + +../../../../../temp/csp/ta_NATR.o: ../../../../../src/ta_func/ta_NATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_NATR.o ../../../../../src/ta_func/ta_NATR.c + +../../../../../temp/csp/ta_OBV.o: ../../../../../src/ta_func/ta_OBV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_OBV.o ../../../../../src/ta_func/ta_OBV.c + +../../../../../temp/csp/ta_PLUS_DI.o: ../../../../../src/ta_func/ta_PLUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_PLUS_DI.o ../../../../../src/ta_func/ta_PLUS_DI.c + +../../../../../temp/csp/ta_PLUS_DM.o: ../../../../../src/ta_func/ta_PLUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_PLUS_DM.o ../../../../../src/ta_func/ta_PLUS_DM.c + +../../../../../temp/csp/ta_PPO.o: ../../../../../src/ta_func/ta_PPO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_PPO.o ../../../../../src/ta_func/ta_PPO.c + +../../../../../temp/csp/ta_ROC.o: ../../../../../src/ta_func/ta_ROC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_ROC.o ../../../../../src/ta_func/ta_ROC.c + +../../../../../temp/csp/ta_ROCP.o: ../../../../../src/ta_func/ta_ROCP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_ROCP.o ../../../../../src/ta_func/ta_ROCP.c + +../../../../../temp/csp/ta_ROCR.o: ../../../../../src/ta_func/ta_ROCR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_ROCR.o ../../../../../src/ta_func/ta_ROCR.c + +../../../../../temp/csp/ta_ROCR100.o: ../../../../../src/ta_func/ta_ROCR100.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_ROCR100.o ../../../../../src/ta_func/ta_ROCR100.c + +../../../../../temp/csp/ta_RSI.o: ../../../../../src/ta_func/ta_RSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_RSI.o ../../../../../src/ta_func/ta_RSI.c + +../../../../../temp/csp/ta_SAR.o: ../../../../../src/ta_func/ta_SAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_SAR.o ../../../../../src/ta_func/ta_SAR.c + +../../../../../temp/csp/ta_SAREXT.o: ../../../../../src/ta_func/ta_SAREXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_SAREXT.o ../../../../../src/ta_func/ta_SAREXT.c + +../../../../../temp/csp/ta_SIN.o: ../../../../../src/ta_func/ta_SIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_SIN.o ../../../../../src/ta_func/ta_SIN.c + +../../../../../temp/csp/ta_SINH.o: ../../../../../src/ta_func/ta_SINH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_SINH.o ../../../../../src/ta_func/ta_SINH.c + +../../../../../temp/csp/ta_SMA.o: ../../../../../src/ta_func/ta_SMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_SMA.o ../../../../../src/ta_func/ta_SMA.c + +../../../../../temp/csp/ta_SQRT.o: ../../../../../src/ta_func/ta_SQRT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_SQRT.o ../../../../../src/ta_func/ta_SQRT.c + +../../../../../temp/csp/ta_STDDEV.o: ../../../../../src/ta_func/ta_STDDEV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_STDDEV.o ../../../../../src/ta_func/ta_STDDEV.c + +../../../../../temp/csp/ta_STOCH.o: ../../../../../src/ta_func/ta_STOCH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_STOCH.o ../../../../../src/ta_func/ta_STOCH.c + +../../../../../temp/csp/ta_STOCHF.o: ../../../../../src/ta_func/ta_STOCHF.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_STOCHF.o ../../../../../src/ta_func/ta_STOCHF.c + +../../../../../temp/csp/ta_STOCHRSI.o: ../../../../../src/ta_func/ta_STOCHRSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_STOCHRSI.o ../../../../../src/ta_func/ta_STOCHRSI.c + +../../../../../temp/csp/ta_SUB.o: ../../../../../src/ta_func/ta_SUB.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_SUB.o ../../../../../src/ta_func/ta_SUB.c + +../../../../../temp/csp/ta_SUM.o: ../../../../../src/ta_func/ta_SUM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_SUM.o ../../../../../src/ta_func/ta_SUM.c + +../../../../../temp/csp/ta_T3.o: ../../../../../src/ta_func/ta_T3.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_T3.o ../../../../../src/ta_func/ta_T3.c + +../../../../../temp/csp/ta_TAN.o: ../../../../../src/ta_func/ta_TAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_TAN.o ../../../../../src/ta_func/ta_TAN.c + +../../../../../temp/csp/ta_TANH.o: ../../../../../src/ta_func/ta_TANH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_TANH.o ../../../../../src/ta_func/ta_TANH.c + +../../../../../temp/csp/ta_TEMA.o: ../../../../../src/ta_func/ta_TEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_TEMA.o ../../../../../src/ta_func/ta_TEMA.c + +../../../../../temp/csp/ta_TRANGE.o: ../../../../../src/ta_func/ta_TRANGE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_TRANGE.o ../../../../../src/ta_func/ta_TRANGE.c + +../../../../../temp/csp/ta_TRIMA.o: ../../../../../src/ta_func/ta_TRIMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_TRIMA.o ../../../../../src/ta_func/ta_TRIMA.c + +../../../../../temp/csp/ta_TRIX.o: ../../../../../src/ta_func/ta_TRIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_TRIX.o ../../../../../src/ta_func/ta_TRIX.c + +../../../../../temp/csp/ta_TSF.o: ../../../../../src/ta_func/ta_TSF.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_TSF.o ../../../../../src/ta_func/ta_TSF.c + +../../../../../temp/csp/ta_TYPPRICE.o: ../../../../../src/ta_func/ta_TYPPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_TYPPRICE.o ../../../../../src/ta_func/ta_TYPPRICE.c + +../../../../../temp/csp/ta_ULTOSC.o: ../../../../../src/ta_func/ta_ULTOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_ULTOSC.o ../../../../../src/ta_func/ta_ULTOSC.c + +../../../../../temp/csp/ta_VAR.o: ../../../../../src/ta_func/ta_VAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_VAR.o ../../../../../src/ta_func/ta_VAR.c + +../../../../../temp/csp/ta_WCLPRICE.o: ../../../../../src/ta_func/ta_WCLPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_WCLPRICE.o ../../../../../src/ta_func/ta_WCLPRICE.c + +../../../../../temp/csp/ta_WILLR.o: ../../../../../src/ta_func/ta_WILLR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_WILLR.o ../../../../../src/ta_func/ta_WILLR.c + +../../../../../temp/csp/ta_WMA.o: ../../../../../src/ta_func/ta_WMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_WMA.o ../../../../../src/ta_func/ta_WMA.c + diff --git a/make/csp/linux/g++/ta_regtest/Makefile b/make/csp/linux/g++/ta_regtest/Makefile new file mode 100644 index 000000000..cb8b2fa78 --- /dev/null +++ b/make/csp/linux/g++/ta_regtest/Makefile @@ -0,0 +1,211 @@ +############################################################################# +# Makefile for building ../../../../../bin/ta_regtest +# Generated by tmake; +# Project: ta_regtest/ta_regtest +# Template: app +############################################################################# + +####### Compiler, tools and options + +CC = gcc +CXX = g++ +CFLAGS = -pipe -fPIC -Wall -W -g -O -pg -DTA_DEBUG -D_DEBUG -DTA_SINGLE_THREAD +CXXFLAGS= -pipe -fPIC -Wall -W -g -DTA_DEBUG -D_DEBUG -DTA_SINGLE_THREAD +INCPATH = -I../../../../../src/ta_common -I../../../../../src/tools/ta_regtest -I../../../../../src/ta_func -I../../../../../include +LINK = g++ +LFLAGS = -pg +LIBS = $(SUBLIBS) ../../../../../lib/libta_libc_csp.a -ldl +MOC = $(QTDIR)/bin/moc +UIC = $(QTDIR)/bin/uic + +TAR = tar -cf +GZIP = gzip -9f + +####### Support for 64-bit systems +ifeq ($(shell uname -m), x86_64) + CFLAGS += -march=x86-64 -m64 -D__64BIT__ + CXXFLAGS += -march=x86-64 -m64 -D__64BIT__ +endif + +####### Apply additional overruling user flags, if any +CFLAGS += $(CUSERFLAGS) +CXXFLAGS += $(CUSERFLAGS) + +####### Files + +HEADERS = +SOURCES = ../../../../../src/tools/ta_regtest/ta_regtest.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_candlestick.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_1in_1out.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_1in_2out.c \ + ../../../../../src/tools/ta_regtest/test_internals.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_adx.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_bbands.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_ma.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_macd.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_minmax.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_mom.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_per_ema.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hl.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hlc.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hlcv.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_per_ohlc.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_po.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_rsi.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_sar.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_stddev.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_stoch.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_trange.c \ + ../../../../../src/tools/ta_regtest/test_util.c \ + ../../../../../src/tools/ta_regtest/test_data.c \ + ../../../../../src/tools/ta_regtest/test_abstract.c +OBJECTS = ../../../../../temp/csp/ta_regtest.o \ + ../../../../../temp/csp/test_candlestick.o \ + ../../../../../temp/csp/test_1in_1out.o \ + ../../../../../temp/csp/test_1in_2out.o \ + ../../../../../temp/csp/test_internals.o \ + ../../../../../temp/csp/test_adx.o \ + ../../../../../temp/csp/test_bbands.o \ + ../../../../../temp/csp/test_ma.o \ + ../../../../../temp/csp/test_macd.o \ + ../../../../../temp/csp/test_minmax.o \ + ../../../../../temp/csp/test_mom.o \ + ../../../../../temp/csp/test_per_ema.o \ + ../../../../../temp/csp/test_per_hl.o \ + ../../../../../temp/csp/test_per_hlc.o \ + ../../../../../temp/csp/test_per_hlcv.o \ + ../../../../../temp/csp/test_per_ohlc.o \ + ../../../../../temp/csp/test_po.o \ + ../../../../../temp/csp/test_rsi.o \ + ../../../../../temp/csp/test_sar.o \ + ../../../../../temp/csp/test_stddev.o \ + ../../../../../temp/csp/test_stoch.o \ + ../../../../../temp/csp/test_trange.o \ + ../../../../../temp/csp/test_util.o \ + ../../../../../temp/csp/test_data.o \ + ../../../../../temp/csp/test_abstract.o +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ../../../../../bin/ta_regtest +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .C .c + +.cpp.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cxx.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cc.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.C.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.c.o: + $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $< + +####### Build rules + + +all: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS) + +moc: $(SRCMOC) + +clean: + -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) + -rm -f *~ core + +####### Sub-libraries + + +###### Combined headers + + +####### Compile + +../../../../../temp/csp/ta_regtest.o: ../../../../../src/tools/ta_regtest/ta_regtest.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/ta_regtest.o ../../../../../src/tools/ta_regtest/ta_regtest.c + +../../../../../temp/csp/test_candlestick.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_candlestick.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/test_candlestick.o ../../../../../src/tools/ta_regtest/ta_test_func/test_candlestick.c + +../../../../../temp/csp/test_1in_1out.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_1in_1out.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/test_1in_1out.o ../../../../../src/tools/ta_regtest/ta_test_func/test_1in_1out.c + +../../../../../temp/csp/test_1in_2out.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_1in_2out.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/test_1in_2out.o ../../../../../src/tools/ta_regtest/ta_test_func/test_1in_2out.c + +../../../../../temp/csp/test_internals.o: ../../../../../src/tools/ta_regtest/test_internals.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/test_internals.o ../../../../../src/tools/ta_regtest/test_internals.c + +../../../../../temp/csp/test_adx.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_adx.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/test_adx.o ../../../../../src/tools/ta_regtest/ta_test_func/test_adx.c + +../../../../../temp/csp/test_bbands.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_bbands.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/test_bbands.o ../../../../../src/tools/ta_regtest/ta_test_func/test_bbands.c + +../../../../../temp/csp/test_ma.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_ma.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/test_ma.o ../../../../../src/tools/ta_regtest/ta_test_func/test_ma.c + +../../../../../temp/csp/test_macd.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_macd.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/test_macd.o ../../../../../src/tools/ta_regtest/ta_test_func/test_macd.c + +../../../../../temp/csp/test_minmax.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_minmax.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/test_minmax.o ../../../../../src/tools/ta_regtest/ta_test_func/test_minmax.c + +../../../../../temp/csp/test_mom.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_mom.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/test_mom.o ../../../../../src/tools/ta_regtest/ta_test_func/test_mom.c + +../../../../../temp/csp/test_per_ema.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_per_ema.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/test_per_ema.o ../../../../../src/tools/ta_regtest/ta_test_func/test_per_ema.c + +../../../../../temp/csp/test_per_hl.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hl.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/test_per_hl.o ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hl.c + +../../../../../temp/csp/test_per_hlc.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hlc.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/test_per_hlc.o ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hlc.c + +../../../../../temp/csp/test_per_hlcv.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hlcv.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/test_per_hlcv.o ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hlcv.c + +../../../../../temp/csp/test_per_ohlc.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_per_ohlc.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/test_per_ohlc.o ../../../../../src/tools/ta_regtest/ta_test_func/test_per_ohlc.c + +../../../../../temp/csp/test_po.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_po.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/test_po.o ../../../../../src/tools/ta_regtest/ta_test_func/test_po.c + +../../../../../temp/csp/test_rsi.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_rsi.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/test_rsi.o ../../../../../src/tools/ta_regtest/ta_test_func/test_rsi.c + +../../../../../temp/csp/test_sar.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_sar.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/test_sar.o ../../../../../src/tools/ta_regtest/ta_test_func/test_sar.c + +../../../../../temp/csp/test_stddev.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_stddev.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/test_stddev.o ../../../../../src/tools/ta_regtest/ta_test_func/test_stddev.c + +../../../../../temp/csp/test_stoch.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_stoch.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/test_stoch.o ../../../../../src/tools/ta_regtest/ta_test_func/test_stoch.c + +../../../../../temp/csp/test_trange.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_trange.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/test_trange.o ../../../../../src/tools/ta_regtest/ta_test_func/test_trange.c + +../../../../../temp/csp/test_util.o: ../../../../../src/tools/ta_regtest/test_util.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/test_util.o ../../../../../src/tools/ta_regtest/test_util.c + +../../../../../temp/csp/test_data.o: ../../../../../src/tools/ta_regtest/test_data.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/test_data.o ../../../../../src/tools/ta_regtest/test_data.c + +../../../../../temp/csp/test_abstract.o: ../../../../../src/tools/ta_regtest/test_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csp/test_abstract.o ../../../../../src/tools/ta_regtest/test_abstract.c + diff --git a/make/csr/cygwin/g++/Makefile b/make/csr/cygwin/g++/Makefile new file mode 100644 index 000000000..2f005e756 --- /dev/null +++ b/make/csr/cygwin/g++/Makefile @@ -0,0 +1,36 @@ +############################################################################# +# Makefile for building targets in sub directories. +# Generated by tmake; +# Project: rootmake +# Template: subdirs +############################################################################# + +MAKEFILE= Makefile +TMAKE = tmake + +SUBDIRS = ta_common \ + ta_func \ + ta_abstract \ + ta_libc \ + gen_code \ + ta_regtest + +all: $(SUBDIRS) + +$(SUBDIRS): FORCE + cd $@; $(MAKE) + +tmake: ../csr/cygwin/g++/Makefile + +../csr/cygwin/g++/Makefile: rootmake.pro + tmake rootmake.pro -o ../csr/cygwin/g++/Makefile + +tmake_all: + for i in $(SUBDIRS); do ( if [ -d $$i ]; then cd $$i ; $(MAKE) -f $(MAKEFILE) tmake_all || true; fi; ) ; done + +#### $text = "\t" . 'for i in $(SUBDIRS); do ( if [ -d $$i ]; then cd $$i ; pro=`basename $$i`.pro ; $(TMAKE) $$pro -o $(MAKEFILE); grep "TEMPLATE.*subdirs" $$pro 2>/dev/null >/dev/null && $(MAKE) -f $(MAKEFILE) tmake_all || true; fi; ) ; done'; + +clean release debug: + for i in $(SUBDIRS); do ( if [ -d $$i ]; then cd $$i ; $(MAKE) $@; fi; ) ; done + +FORCE: diff --git a/make/csr/cygwin/g++/gen_code/Makefile b/make/csr/cygwin/g++/gen_code/Makefile new file mode 100644 index 000000000..e265d7c42 --- /dev/null +++ b/make/csr/cygwin/g++/gen_code/Makefile @@ -0,0 +1,231 @@ +############################################################################# +# Makefile for building ../../../../../bin/gen_code +# Generated by tmake; +# Project: gen_code/gen_code +# Template: app +############################################################################# + +####### Compiler, tools and options + +CC = gcc +CXX = g++ +CFLAGS = -pipe -Wall -W -O2 -fno-strict-aliasing -DTA_GEN_CODE -DTA_SINGLE_THREAD +CXXFLAGS= -pipe -Wall -W -O2 -fno-strict-aliasing -DTA_GEN_CODE -DTA_SINGLE_THREAD +INCPATH = -I../../../../../include -I../../../../../src/ta_common -I../../../../../src/ta_abstract -I../../../../../src/ta_abstract/tables -I../../../../../src/ta_abstract/frames +LINK = g++ +LFLAGS = +LIBS = $(SUBLIBS) ../../../../../lib/libta_common_csr.a +MOC = $(QTDIR)/bin/moc +UIC = $(QTDIR)/bin/uic + +TAR = tar -cf +GZIP = gzip -9f + +####### Support for 64-bit systems +ifeq ($(shell uname -m), x86_64) + CFLAGS += -march=x86-64 -m64 -D__64BIT__ + CXXFLAGS += -march=x86-64 -m64 -D__64BIT__ +endif + +####### Apply additional overruling user flags, if any +CFLAGS += $(CUSERFLAGS) +CXXFLAGS += $(CUSERFLAGS) + +####### Files + +HEADERS = +SOURCES = ../../../../../src/tools/gen_code/gen_code.c \ + ../../../../../src/ta_abstract/ta_abstract.c \ + ../../../../../src/ta_abstract/ta_def_ui.c \ + ../../../../../src/ta_abstract/tables/table_a.c \ + ../../../../../src/ta_abstract/tables/table_b.c \ + ../../../../../src/ta_abstract/tables/table_c.c \ + ../../../../../src/ta_abstract/tables/table_d.c \ + ../../../../../src/ta_abstract/tables/table_e.c \ + ../../../../../src/ta_abstract/tables/table_f.c \ + ../../../../../src/ta_abstract/tables/table_g.c \ + ../../../../../src/ta_abstract/tables/table_h.c \ + ../../../../../src/ta_abstract/tables/table_i.c \ + ../../../../../src/ta_abstract/tables/table_j.c \ + ../../../../../src/ta_abstract/tables/table_k.c \ + ../../../../../src/ta_abstract/tables/table_l.c \ + ../../../../../src/ta_abstract/tables/table_m.c \ + ../../../../../src/ta_abstract/tables/table_n.c \ + ../../../../../src/ta_abstract/tables/table_o.c \ + ../../../../../src/ta_abstract/tables/table_p.c \ + ../../../../../src/ta_abstract/tables/table_q.c \ + ../../../../../src/ta_abstract/tables/table_r.c \ + ../../../../../src/ta_abstract/tables/table_s.c \ + ../../../../../src/ta_abstract/tables/table_t.c \ + ../../../../../src/ta_abstract/tables/table_u.c \ + ../../../../../src/ta_abstract/tables/table_v.c \ + ../../../../../src/ta_abstract/tables/table_w.c \ + ../../../../../src/ta_abstract/tables/table_x.c \ + ../../../../../src/ta_abstract/tables/table_y.c \ + ../../../../../src/ta_abstract/tables/table_z.c +OBJECTS = ../../../../../temp/csr/gen_code/gen_code.o \ + ../../../../../temp/csr/gen_code/ta_abstract.o \ + ../../../../../temp/csr/gen_code/ta_def_ui.o \ + ../../../../../temp/csr/gen_code/table_a.o \ + ../../../../../temp/csr/gen_code/table_b.o \ + ../../../../../temp/csr/gen_code/table_c.o \ + ../../../../../temp/csr/gen_code/table_d.o \ + ../../../../../temp/csr/gen_code/table_e.o \ + ../../../../../temp/csr/gen_code/table_f.o \ + ../../../../../temp/csr/gen_code/table_g.o \ + ../../../../../temp/csr/gen_code/table_h.o \ + ../../../../../temp/csr/gen_code/table_i.o \ + ../../../../../temp/csr/gen_code/table_j.o \ + ../../../../../temp/csr/gen_code/table_k.o \ + ../../../../../temp/csr/gen_code/table_l.o \ + ../../../../../temp/csr/gen_code/table_m.o \ + ../../../../../temp/csr/gen_code/table_n.o \ + ../../../../../temp/csr/gen_code/table_o.o \ + ../../../../../temp/csr/gen_code/table_p.o \ + ../../../../../temp/csr/gen_code/table_q.o \ + ../../../../../temp/csr/gen_code/table_r.o \ + ../../../../../temp/csr/gen_code/table_s.o \ + ../../../../../temp/csr/gen_code/table_t.o \ + ../../../../../temp/csr/gen_code/table_u.o \ + ../../../../../temp/csr/gen_code/table_v.o \ + ../../../../../temp/csr/gen_code/table_w.o \ + ../../../../../temp/csr/gen_code/table_x.o \ + ../../../../../temp/csr/gen_code/table_y.o \ + ../../../../../temp/csr/gen_code/table_z.o +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ../../../../../bin/gen_code +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .C .c + +.cpp.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cxx.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cc.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.C.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.c.o: + $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $< + +####### Build rules + + +all: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS) + +moc: $(SRCMOC) + +clean: + -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) + -rm -f *~ core + +####### Sub-libraries + + +###### Combined headers + + +####### Compile + +../../../../../temp/csr/gen_code/gen_code.o: ../../../../../src/tools/gen_code/gen_code.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/gen_code/gen_code.o ../../../../../src/tools/gen_code/gen_code.c + +../../../../../temp/csr/gen_code/ta_abstract.o: ../../../../../src/ta_abstract/ta_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/gen_code/ta_abstract.o ../../../../../src/ta_abstract/ta_abstract.c + +../../../../../temp/csr/gen_code/ta_def_ui.o: ../../../../../src/ta_abstract/ta_def_ui.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/gen_code/ta_def_ui.o ../../../../../src/ta_abstract/ta_def_ui.c + +../../../../../temp/csr/gen_code/table_a.o: ../../../../../src/ta_abstract/tables/table_a.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/gen_code/table_a.o ../../../../../src/ta_abstract/tables/table_a.c + +../../../../../temp/csr/gen_code/table_b.o: ../../../../../src/ta_abstract/tables/table_b.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/gen_code/table_b.o ../../../../../src/ta_abstract/tables/table_b.c + +../../../../../temp/csr/gen_code/table_c.o: ../../../../../src/ta_abstract/tables/table_c.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/gen_code/table_c.o ../../../../../src/ta_abstract/tables/table_c.c + +../../../../../temp/csr/gen_code/table_d.o: ../../../../../src/ta_abstract/tables/table_d.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/gen_code/table_d.o ../../../../../src/ta_abstract/tables/table_d.c + +../../../../../temp/csr/gen_code/table_e.o: ../../../../../src/ta_abstract/tables/table_e.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/gen_code/table_e.o ../../../../../src/ta_abstract/tables/table_e.c + +../../../../../temp/csr/gen_code/table_f.o: ../../../../../src/ta_abstract/tables/table_f.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/gen_code/table_f.o ../../../../../src/ta_abstract/tables/table_f.c + +../../../../../temp/csr/gen_code/table_g.o: ../../../../../src/ta_abstract/tables/table_g.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/gen_code/table_g.o ../../../../../src/ta_abstract/tables/table_g.c + +../../../../../temp/csr/gen_code/table_h.o: ../../../../../src/ta_abstract/tables/table_h.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/gen_code/table_h.o ../../../../../src/ta_abstract/tables/table_h.c + +../../../../../temp/csr/gen_code/table_i.o: ../../../../../src/ta_abstract/tables/table_i.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/gen_code/table_i.o ../../../../../src/ta_abstract/tables/table_i.c + +../../../../../temp/csr/gen_code/table_j.o: ../../../../../src/ta_abstract/tables/table_j.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/gen_code/table_j.o ../../../../../src/ta_abstract/tables/table_j.c + +../../../../../temp/csr/gen_code/table_k.o: ../../../../../src/ta_abstract/tables/table_k.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/gen_code/table_k.o ../../../../../src/ta_abstract/tables/table_k.c + +../../../../../temp/csr/gen_code/table_l.o: ../../../../../src/ta_abstract/tables/table_l.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/gen_code/table_l.o ../../../../../src/ta_abstract/tables/table_l.c + +../../../../../temp/csr/gen_code/table_m.o: ../../../../../src/ta_abstract/tables/table_m.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/gen_code/table_m.o ../../../../../src/ta_abstract/tables/table_m.c + +../../../../../temp/csr/gen_code/table_n.o: ../../../../../src/ta_abstract/tables/table_n.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/gen_code/table_n.o ../../../../../src/ta_abstract/tables/table_n.c + +../../../../../temp/csr/gen_code/table_o.o: ../../../../../src/ta_abstract/tables/table_o.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/gen_code/table_o.o ../../../../../src/ta_abstract/tables/table_o.c + +../../../../../temp/csr/gen_code/table_p.o: ../../../../../src/ta_abstract/tables/table_p.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/gen_code/table_p.o ../../../../../src/ta_abstract/tables/table_p.c + +../../../../../temp/csr/gen_code/table_q.o: ../../../../../src/ta_abstract/tables/table_q.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/gen_code/table_q.o ../../../../../src/ta_abstract/tables/table_q.c + +../../../../../temp/csr/gen_code/table_r.o: ../../../../../src/ta_abstract/tables/table_r.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/gen_code/table_r.o ../../../../../src/ta_abstract/tables/table_r.c + +../../../../../temp/csr/gen_code/table_s.o: ../../../../../src/ta_abstract/tables/table_s.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/gen_code/table_s.o ../../../../../src/ta_abstract/tables/table_s.c + +../../../../../temp/csr/gen_code/table_t.o: ../../../../../src/ta_abstract/tables/table_t.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/gen_code/table_t.o ../../../../../src/ta_abstract/tables/table_t.c + +../../../../../temp/csr/gen_code/table_u.o: ../../../../../src/ta_abstract/tables/table_u.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/gen_code/table_u.o ../../../../../src/ta_abstract/tables/table_u.c + +../../../../../temp/csr/gen_code/table_v.o: ../../../../../src/ta_abstract/tables/table_v.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/gen_code/table_v.o ../../../../../src/ta_abstract/tables/table_v.c + +../../../../../temp/csr/gen_code/table_w.o: ../../../../../src/ta_abstract/tables/table_w.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/gen_code/table_w.o ../../../../../src/ta_abstract/tables/table_w.c + +../../../../../temp/csr/gen_code/table_x.o: ../../../../../src/ta_abstract/tables/table_x.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/gen_code/table_x.o ../../../../../src/ta_abstract/tables/table_x.c + +../../../../../temp/csr/gen_code/table_y.o: ../../../../../src/ta_abstract/tables/table_y.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/gen_code/table_y.o ../../../../../src/ta_abstract/tables/table_y.c + +../../../../../temp/csr/gen_code/table_z.o: ../../../../../src/ta_abstract/tables/table_z.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/gen_code/table_z.o ../../../../../src/ta_abstract/tables/table_z.c + diff --git a/make/csr/cygwin/g++/ta_abstract/Makefile b/make/csr/cygwin/g++/ta_abstract/Makefile new file mode 100644 index 000000000..9811ba791 --- /dev/null +++ b/make/csr/cygwin/g++/ta_abstract/Makefile @@ -0,0 +1,243 @@ +############################################################################# +# Makefile for building ../../../../../lib/libta_abstract_csr.a +# Generated by tmake; +# Project: ta_abstract/ta_abstract +# Template: lib +############################################################################# + +####### Compiler, tools and options + +CC = gcc +CXX = g++ +CFLAGS = -pipe -Wall -W -O2 -fno-strict-aliasing -DTA_SINGLE_THREAD +CXXFLAGS= -pipe -Wall -W -O2 -fno-strict-aliasing -DTA_SINGLE_THREAD +INCPATH = -I../../../../../src/ta_common -I../../../../../src/ta_abstract -I../../../../../src/ta_abstract/tables -I../../../../../src/ta_abstract/frames -I../../../../../include +AR = ar cqs +RANLIB = +MOC = $(QTDIR)/bin/moc +UIC = $(QTDIR)/bin/uic + +TAR = tar -cf +GZIP = gzip -9f + +####### Support for 64-bit systems +ifeq ($(shell uname -m), x86_64) + CFLAGS += -march=x86-64 -m64 -D__64BIT__ + CXXFLAGS += -march=x86-64 -m64 -D__64BIT__ +endif + +####### Apply additional overruling user flags, if any +CFLAGS += $(CUSERFLAGS) +CXXFLAGS += $(CUSERFLAGS) + +####### Files + +HEADERS = +SOURCES = ../../../../../src/ta_abstract/ta_abstract.c \ + ../../../../../src/ta_abstract/ta_def_ui.c \ + ../../../../../src/ta_abstract/ta_func_api.c \ + ../../../../../src/ta_abstract/ta_group_idx.c \ + ../../../../../src/ta_abstract/frames/ta_frame.c \ + ../../../../../src/ta_abstract/tables/table_a.c \ + ../../../../../src/ta_abstract/tables/table_b.c \ + ../../../../../src/ta_abstract/tables/table_c.c \ + ../../../../../src/ta_abstract/tables/table_d.c \ + ../../../../../src/ta_abstract/tables/table_e.c \ + ../../../../../src/ta_abstract/tables/table_f.c \ + ../../../../../src/ta_abstract/tables/table_g.c \ + ../../../../../src/ta_abstract/tables/table_h.c \ + ../../../../../src/ta_abstract/tables/table_i.c \ + ../../../../../src/ta_abstract/tables/table_j.c \ + ../../../../../src/ta_abstract/tables/table_k.c \ + ../../../../../src/ta_abstract/tables/table_l.c \ + ../../../../../src/ta_abstract/tables/table_m.c \ + ../../../../../src/ta_abstract/tables/table_n.c \ + ../../../../../src/ta_abstract/tables/table_o.c \ + ../../../../../src/ta_abstract/tables/table_p.c \ + ../../../../../src/ta_abstract/tables/table_q.c \ + ../../../../../src/ta_abstract/tables/table_r.c \ + ../../../../../src/ta_abstract/tables/table_s.c \ + ../../../../../src/ta_abstract/tables/table_t.c \ + ../../../../../src/ta_abstract/tables/table_u.c \ + ../../../../../src/ta_abstract/tables/table_v.c \ + ../../../../../src/ta_abstract/tables/table_w.c \ + ../../../../../src/ta_abstract/tables/table_x.c \ + ../../../../../src/ta_abstract/tables/table_y.c \ + ../../../../../src/ta_abstract/tables/table_z.c +OBJECTS = ../../../../../temp/csr/ta_abstract.o \ + ../../../../../temp/csr/ta_def_ui.o \ + ../../../../../temp/csr/ta_func_api.o \ + ../../../../../temp/csr/ta_group_idx.o \ + ../../../../../temp/csr/ta_frame.o \ + ../../../../../temp/csr/table_a.o \ + ../../../../../temp/csr/table_b.o \ + ../../../../../temp/csr/table_c.o \ + ../../../../../temp/csr/table_d.o \ + ../../../../../temp/csr/table_e.o \ + ../../../../../temp/csr/table_f.o \ + ../../../../../temp/csr/table_g.o \ + ../../../../../temp/csr/table_h.o \ + ../../../../../temp/csr/table_i.o \ + ../../../../../temp/csr/table_j.o \ + ../../../../../temp/csr/table_k.o \ + ../../../../../temp/csr/table_l.o \ + ../../../../../temp/csr/table_m.o \ + ../../../../../temp/csr/table_n.o \ + ../../../../../temp/csr/table_o.o \ + ../../../../../temp/csr/table_p.o \ + ../../../../../temp/csr/table_q.o \ + ../../../../../temp/csr/table_r.o \ + ../../../../../temp/csr/table_s.o \ + ../../../../../temp/csr/table_t.o \ + ../../../../../temp/csr/table_u.o \ + ../../../../../temp/csr/table_v.o \ + ../../../../../temp/csr/table_w.o \ + ../../../../../temp/csr/table_x.o \ + ../../../../../temp/csr/table_y.o \ + ../../../../../temp/csr/table_z.o +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ../../../../../lib/libta_abstract_csr.a +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .C .c + +.cpp.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cxx.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cc.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.C.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.c.o: + $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $< + +####### Build rules + + +all: $(TARGET) + +staticlib: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + -rm -f $(TARGET) + $(AR) $(TARGET) $(OBJECTS) $(OBJMOC) + +moc: $(SRCMOC) + +clean: + -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) + -rm -f *~ core + +####### Sub-libraries + + +###### Combined headers + + +####### Compile + +../../../../../temp/csr/ta_abstract.o: ../../../../../src/ta_abstract/ta_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_abstract.o ../../../../../src/ta_abstract/ta_abstract.c + +../../../../../temp/csr/ta_def_ui.o: ../../../../../src/ta_abstract/ta_def_ui.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_def_ui.o ../../../../../src/ta_abstract/ta_def_ui.c + +../../../../../temp/csr/ta_func_api.o: ../../../../../src/ta_abstract/ta_func_api.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_func_api.o ../../../../../src/ta_abstract/ta_func_api.c + +../../../../../temp/csr/ta_group_idx.o: ../../../../../src/ta_abstract/ta_group_idx.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_group_idx.o ../../../../../src/ta_abstract/ta_group_idx.c + +../../../../../temp/csr/ta_frame.o: ../../../../../src/ta_abstract/frames/ta_frame.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_frame.o ../../../../../src/ta_abstract/frames/ta_frame.c + +../../../../../temp/csr/table_a.o: ../../../../../src/ta_abstract/tables/table_a.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_a.o ../../../../../src/ta_abstract/tables/table_a.c + +../../../../../temp/csr/table_b.o: ../../../../../src/ta_abstract/tables/table_b.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_b.o ../../../../../src/ta_abstract/tables/table_b.c + +../../../../../temp/csr/table_c.o: ../../../../../src/ta_abstract/tables/table_c.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_c.o ../../../../../src/ta_abstract/tables/table_c.c + +../../../../../temp/csr/table_d.o: ../../../../../src/ta_abstract/tables/table_d.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_d.o ../../../../../src/ta_abstract/tables/table_d.c + +../../../../../temp/csr/table_e.o: ../../../../../src/ta_abstract/tables/table_e.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_e.o ../../../../../src/ta_abstract/tables/table_e.c + +../../../../../temp/csr/table_f.o: ../../../../../src/ta_abstract/tables/table_f.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_f.o ../../../../../src/ta_abstract/tables/table_f.c + +../../../../../temp/csr/table_g.o: ../../../../../src/ta_abstract/tables/table_g.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_g.o ../../../../../src/ta_abstract/tables/table_g.c + +../../../../../temp/csr/table_h.o: ../../../../../src/ta_abstract/tables/table_h.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_h.o ../../../../../src/ta_abstract/tables/table_h.c + +../../../../../temp/csr/table_i.o: ../../../../../src/ta_abstract/tables/table_i.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_i.o ../../../../../src/ta_abstract/tables/table_i.c + +../../../../../temp/csr/table_j.o: ../../../../../src/ta_abstract/tables/table_j.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_j.o ../../../../../src/ta_abstract/tables/table_j.c + +../../../../../temp/csr/table_k.o: ../../../../../src/ta_abstract/tables/table_k.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_k.o ../../../../../src/ta_abstract/tables/table_k.c + +../../../../../temp/csr/table_l.o: ../../../../../src/ta_abstract/tables/table_l.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_l.o ../../../../../src/ta_abstract/tables/table_l.c + +../../../../../temp/csr/table_m.o: ../../../../../src/ta_abstract/tables/table_m.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_m.o ../../../../../src/ta_abstract/tables/table_m.c + +../../../../../temp/csr/table_n.o: ../../../../../src/ta_abstract/tables/table_n.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_n.o ../../../../../src/ta_abstract/tables/table_n.c + +../../../../../temp/csr/table_o.o: ../../../../../src/ta_abstract/tables/table_o.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_o.o ../../../../../src/ta_abstract/tables/table_o.c + +../../../../../temp/csr/table_p.o: ../../../../../src/ta_abstract/tables/table_p.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_p.o ../../../../../src/ta_abstract/tables/table_p.c + +../../../../../temp/csr/table_q.o: ../../../../../src/ta_abstract/tables/table_q.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_q.o ../../../../../src/ta_abstract/tables/table_q.c + +../../../../../temp/csr/table_r.o: ../../../../../src/ta_abstract/tables/table_r.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_r.o ../../../../../src/ta_abstract/tables/table_r.c + +../../../../../temp/csr/table_s.o: ../../../../../src/ta_abstract/tables/table_s.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_s.o ../../../../../src/ta_abstract/tables/table_s.c + +../../../../../temp/csr/table_t.o: ../../../../../src/ta_abstract/tables/table_t.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_t.o ../../../../../src/ta_abstract/tables/table_t.c + +../../../../../temp/csr/table_u.o: ../../../../../src/ta_abstract/tables/table_u.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_u.o ../../../../../src/ta_abstract/tables/table_u.c + +../../../../../temp/csr/table_v.o: ../../../../../src/ta_abstract/tables/table_v.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_v.o ../../../../../src/ta_abstract/tables/table_v.c + +../../../../../temp/csr/table_w.o: ../../../../../src/ta_abstract/tables/table_w.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_w.o ../../../../../src/ta_abstract/tables/table_w.c + +../../../../../temp/csr/table_x.o: ../../../../../src/ta_abstract/tables/table_x.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_x.o ../../../../../src/ta_abstract/tables/table_x.c + +../../../../../temp/csr/table_y.o: ../../../../../src/ta_abstract/tables/table_y.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_y.o ../../../../../src/ta_abstract/tables/table_y.c + +../../../../../temp/csr/table_z.o: ../../../../../src/ta_abstract/tables/table_z.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_z.o ../../../../../src/ta_abstract/tables/table_z.c + diff --git a/make/csr/cygwin/g++/ta_common/Makefile b/make/csr/cygwin/g++/ta_common/Makefile new file mode 100644 index 000000000..6b0530957 --- /dev/null +++ b/make/csr/cygwin/g++/ta_common/Makefile @@ -0,0 +1,103 @@ +############################################################################# +# Makefile for building ../../../../../lib/libta_common_csr.a +# Generated by tmake; +# Project: ta_common/ta_common +# Template: lib +############################################################################# + +####### Compiler, tools and options + +CC = gcc +CXX = g++ +CFLAGS = -pipe -Wall -W -O2 -fno-strict-aliasing -DTA_SINGLE_THREAD +CXXFLAGS= -pipe -Wall -W -O2 -fno-strict-aliasing -DTA_SINGLE_THREAD +INCPATH = -I../../../../../src/ta_common -I../../../../../include +AR = ar cqs +RANLIB = +MOC = $(QTDIR)/bin/moc +UIC = $(QTDIR)/bin/uic + +TAR = tar -cf +GZIP = gzip -9f + +####### Support for 64-bit systems +ifeq ($(shell uname -m), x86_64) + CFLAGS += -march=x86-64 -m64 -D__64BIT__ + CXXFLAGS += -march=x86-64 -m64 -D__64BIT__ +endif + +####### Apply additional overruling user flags, if any +CFLAGS += $(CUSERFLAGS) +CXXFLAGS += $(CUSERFLAGS) + +####### Files + +HEADERS = +SOURCES = ../../../../../src/ta_common/ta_global.c \ + ../../../../../src/ta_common/ta_retcode.c \ + ../../../../../src/ta_common/ta_version.c +OBJECTS = ../../../../../temp/csr/ta_global.o \ + ../../../../../temp/csr/ta_retcode.o \ + ../../../../../temp/csr/ta_version.o +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ../../../../../lib/libta_common_csr.a +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .C .c + +.cpp.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cxx.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cc.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.C.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.c.o: + $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $< + +####### Build rules + + +all: $(TARGET) + +staticlib: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + -rm -f $(TARGET) + $(AR) $(TARGET) $(OBJECTS) $(OBJMOC) + +moc: $(SRCMOC) + +clean: + -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) + -rm -f *~ core + +####### Sub-libraries + + +###### Combined headers + + +####### Compile + +../../../../../temp/csr/ta_global.o: ../../../../../src/ta_common/ta_global.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_global.o ../../../../../src/ta_common/ta_global.c + +../../../../../temp/csr/ta_retcode.o: ../../../../../src/ta_common/ta_retcode.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_retcode.o ../../../../../src/ta_common/ta_retcode.c + +../../../../../temp/csr/ta_version.o: ../../../../../src/ta_common/ta_version.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_version.o ../../../../../src/ta_common/ta_version.c + diff --git a/make/csr/cygwin/g++/ta_func/Makefile b/make/csr/cygwin/g++/ta_func/Makefile new file mode 100644 index 000000000..e9aec79fc --- /dev/null +++ b/make/csr/cygwin/g++/ta_func/Makefile @@ -0,0 +1,883 @@ +############################################################################# +# Makefile for building ../../../../../lib/libta_func_csr.a +# Generated by tmake; +# Project: ta_func/ta_func +# Template: lib +############################################################################# + +####### Compiler, tools and options + +CC = gcc +CXX = g++ +CFLAGS = -pipe -Wall -W -O2 -fno-strict-aliasing -DTA_SINGLE_THREAD +CXXFLAGS= -pipe -Wall -W -O2 -fno-strict-aliasing -DTA_SINGLE_THREAD +INCPATH = -I../../../../../src/ta_common -I/n -I../../../../../include +AR = ar cqs +RANLIB = +MOC = $(QTDIR)/bin/moc +UIC = $(QTDIR)/bin/uic + +TAR = tar -cf +GZIP = gzip -9f + +####### Support for 64-bit systems +ifeq ($(shell uname -m), x86_64) + CFLAGS += -march=x86-64 -m64 -D__64BIT__ + CXXFLAGS += -march=x86-64 -m64 -D__64BIT__ +endif + +####### Apply additional overruling user flags, if any +CFLAGS += $(CUSERFLAGS) +CXXFLAGS += $(CUSERFLAGS) + +####### Files + +HEADERS = +SOURCES = ../../../../../src/ta_func/ta_utility.c \ + ../../../../../src/ta_func/ta_ACOS.c \ + ../../../../../src/ta_func/ta_AD.c \ + ../../../../../src/ta_func/ta_ADD.c \ + ../../../../../src/ta_func/ta_ADOSC.c \ + ../../../../../src/ta_func/ta_ADX.c \ + ../../../../../src/ta_func/ta_ADXR.c \ + ../../../../../src/ta_func/ta_APO.c \ + ../../../../../src/ta_func/ta_AROON.c \ + ../../../../../src/ta_func/ta_AROONOSC.c \ + ../../../../../src/ta_func/ta_ASIN.c \ + ../../../../../src/ta_func/ta_ATAN.c \ + ../../../../../src/ta_func/ta_ATR.c \ + ../../../../../src/ta_func/ta_AVGPRICE.c \ + ../../../../../src/ta_func/ta_BBANDS.c \ + ../../../../../src/ta_func/ta_BETA.c \ + ../../../../../src/ta_func/ta_BOP.c \ + ../../../../../src/ta_func/ta_CCI.c \ + ../../../../../src/ta_func/ta_CDL2CROWS.c \ + ../../../../../src/ta_func/ta_CDL3BLACKCROWS.c \ + ../../../../../src/ta_func/ta_CDL3INSIDE.c \ + ../../../../../src/ta_func/ta_CDL3LINESTRIKE.c \ + ../../../../../src/ta_func/ta_CDL3OUTSIDE.c \ + ../../../../../src/ta_func/ta_CDL3STARSINSOUTH.c \ + ../../../../../src/ta_func/ta_CDL3WHITESOLDIERS.c \ + ../../../../../src/ta_func/ta_CDLABANDONEDBABY.c \ + ../../../../../src/ta_func/ta_CDLADVANCEBLOCK.c \ + ../../../../../src/ta_func/ta_CDLBELTHOLD.c \ + ../../../../../src/ta_func/ta_CDLBREAKAWAY.c \ + ../../../../../src/ta_func/ta_CDLCLOSINGMARUBOZU.c \ + ../../../../../src/ta_func/ta_CDLCONCEALBABYSWALL.c \ + ../../../../../src/ta_func/ta_CDLCOUNTERATTACK.c \ + ../../../../../src/ta_func/ta_CDLDARKCLOUDCOVER.c \ + ../../../../../src/ta_func/ta_CDLDOJI.c \ + ../../../../../src/ta_func/ta_CDLDOJISTAR.c \ + ../../../../../src/ta_func/ta_CDLDRAGONFLYDOJI.c \ + ../../../../../src/ta_func/ta_CDLENGULFING.c \ + ../../../../../src/ta_func/ta_CDLEVENINGDOJISTAR.c \ + ../../../../../src/ta_func/ta_CDLEVENINGSTAR.c \ + ../../../../../src/ta_func/ta_CDLGAPSIDESIDEWHITE.c \ + ../../../../../src/ta_func/ta_CDLGRAVESTONEDOJI.c \ + ../../../../../src/ta_func/ta_CDLHAMMER.c \ + ../../../../../src/ta_func/ta_CDLHANGINGMAN.c \ + ../../../../../src/ta_func/ta_CDLHARAMI.c \ + ../../../../../src/ta_func/ta_CDLHARAMICROSS.c \ + ../../../../../src/ta_func/ta_CDLHIGHWAVE.c \ + ../../../../../src/ta_func/ta_CDLHIKKAKE.c \ + ../../../../../src/ta_func/ta_CDLHIKKAKEMOD.c \ + ../../../../../src/ta_func/ta_CDLHOMINGPIGEON.c \ + ../../../../../src/ta_func/ta_CDLIDENTICAL3CROWS.c \ + ../../../../../src/ta_func/ta_CDLINNECK.c \ + ../../../../../src/ta_func/ta_CDLINVERTEDHAMMER.c \ + ../../../../../src/ta_func/ta_CDLKICKING.c \ + ../../../../../src/ta_func/ta_CDLKICKINGBYLENGTH.c \ + ../../../../../src/ta_func/ta_CDLLADDERBOTTOM.c \ + ../../../../../src/ta_func/ta_CDLLONGLEGGEDDOJI.c \ + ../../../../../src/ta_func/ta_CDLLONGLINE.c \ + ../../../../../src/ta_func/ta_CDLMARUBOZU.c \ + ../../../../../src/ta_func/ta_CDLMATCHINGLOW.c \ + ../../../../../src/ta_func/ta_CDLMATHOLD.c \ + ../../../../../src/ta_func/ta_CDLMORNINGDOJISTAR.c \ + ../../../../../src/ta_func/ta_CDLMORNINGSTAR.c \ + ../../../../../src/ta_func/ta_CDLONNECK.c \ + ../../../../../src/ta_func/ta_CDLPIERCING.c \ + ../../../../../src/ta_func/ta_CDLRICKSHAWMAN.c \ + ../../../../../src/ta_func/ta_CDLRISEFALL3METHODS.c \ + ../../../../../src/ta_func/ta_CDLSEPARATINGLINES.c \ + ../../../../../src/ta_func/ta_CDLSHOOTINGSTAR.c \ + ../../../../../src/ta_func/ta_CDLSHORTLINE.c \ + ../../../../../src/ta_func/ta_CDLSPINNINGTOP.c \ + ../../../../../src/ta_func/ta_CDLSTALLEDPATTERN.c \ + ../../../../../src/ta_func/ta_CDLSTICKSANDWICH.c \ + ../../../../../src/ta_func/ta_CDLTAKURI.c \ + ../../../../../src/ta_func/ta_CDLTASUKIGAP.c \ + ../../../../../src/ta_func/ta_CDLTHRUSTING.c \ + ../../../../../src/ta_func/ta_CDLTRISTAR.c \ + ../../../../../src/ta_func/ta_CDLUNIQUE3RIVER.c \ + ../../../../../src/ta_func/ta_CDLUPSIDEGAP2CROWS.c \ + ../../../../../src/ta_func/ta_CDLXSIDEGAP3METHODS.c \ + ../../../../../src/ta_func/ta_CEIL.c \ + ../../../../../src/ta_func/ta_CMO.c \ + ../../../../../src/ta_func/ta_CORREL.c \ + ../../../../../src/ta_func/ta_COS.c \ + ../../../../../src/ta_func/ta_COSH.c \ + ../../../../../src/ta_func/ta_DEMA.c \ + ../../../../../src/ta_func/ta_DIV.c \ + ../../../../../src/ta_func/ta_DX.c \ + ../../../../../src/ta_func/ta_EMA.c \ + ../../../../../src/ta_func/ta_EXP.c \ + ../../../../../src/ta_func/ta_FLOOR.c \ + ../../../../../src/ta_func/ta_HT_DCPERIOD.c \ + ../../../../../src/ta_func/ta_HT_DCPHASE.c \ + ../../../../../src/ta_func/ta_HT_PHASOR.c \ + ../../../../../src/ta_func/ta_HT_SINE.c \ + ../../../../../src/ta_func/ta_HT_TRENDLINE.c \ + ../../../../../src/ta_func/ta_HT_TRENDMODE.c \ + ../../../../../src/ta_func/ta_KAMA.c \ + ../../../../../src/ta_func/ta_LINEARREG.c \ + ../../../../../src/ta_func/ta_LINEARREG_ANGLE.c \ + ../../../../../src/ta_func/ta_LINEARREG_INTERCEPT.c \ + ../../../../../src/ta_func/ta_LINEARREG_SLOPE.c \ + ../../../../../src/ta_func/ta_LN.c \ + ../../../../../src/ta_func/ta_LOG10.c \ + ../../../../../src/ta_func/ta_MA.c \ + ../../../../../src/ta_func/ta_MACD.c \ + ../../../../../src/ta_func/ta_MACDEXT.c \ + ../../../../../src/ta_func/ta_MACDFIX.c \ + ../../../../../src/ta_func/ta_MAMA.c \ + ../../../../../src/ta_func/ta_MAVP.c \ + ../../../../../src/ta_func/ta_MAX.c \ + ../../../../../src/ta_func/ta_MAXINDEX.c \ + ../../../../../src/ta_func/ta_MEDPRICE.c \ + ../../../../../src/ta_func/ta_MFI.c \ + ../../../../../src/ta_func/ta_MIDPOINT.c \ + ../../../../../src/ta_func/ta_MIDPRICE.c \ + ../../../../../src/ta_func/ta_MIN.c \ + ../../../../../src/ta_func/ta_MININDEX.c \ + ../../../../../src/ta_func/ta_MINMAX.c \ + ../../../../../src/ta_func/ta_MINMAXINDEX.c \ + ../../../../../src/ta_func/ta_MINUS_DI.c \ + ../../../../../src/ta_func/ta_MINUS_DM.c \ + ../../../../../src/ta_func/ta_MOM.c \ + ../../../../../src/ta_func/ta_MULT.c \ + ../../../../../src/ta_func/ta_NATR.c \ + ../../../../../src/ta_func/ta_OBV.c \ + ../../../../../src/ta_func/ta_PLUS_DI.c \ + ../../../../../src/ta_func/ta_PLUS_DM.c \ + ../../../../../src/ta_func/ta_PPO.c \ + ../../../../../src/ta_func/ta_ROC.c \ + ../../../../../src/ta_func/ta_ROCP.c \ + ../../../../../src/ta_func/ta_ROCR.c \ + ../../../../../src/ta_func/ta_ROCR100.c \ + ../../../../../src/ta_func/ta_RSI.c \ + ../../../../../src/ta_func/ta_SAR.c \ + ../../../../../src/ta_func/ta_SAREXT.c \ + ../../../../../src/ta_func/ta_SIN.c \ + ../../../../../src/ta_func/ta_SINH.c \ + ../../../../../src/ta_func/ta_SMA.c \ + ../../../../../src/ta_func/ta_SQRT.c \ + ../../../../../src/ta_func/ta_STDDEV.c \ + ../../../../../src/ta_func/ta_STOCH.c \ + ../../../../../src/ta_func/ta_STOCHF.c \ + ../../../../../src/ta_func/ta_STOCHRSI.c \ + ../../../../../src/ta_func/ta_SUB.c \ + ../../../../../src/ta_func/ta_SUM.c \ + ../../../../../src/ta_func/ta_T3.c \ + ../../../../../src/ta_func/ta_TAN.c \ + ../../../../../src/ta_func/ta_TANH.c \ + ../../../../../src/ta_func/ta_TEMA.c \ + ../../../../../src/ta_func/ta_TRANGE.c \ + ../../../../../src/ta_func/ta_TRIMA.c \ + ../../../../../src/ta_func/ta_TRIX.c \ + ../../../../../src/ta_func/ta_TSF.c \ + ../../../../../src/ta_func/ta_TYPPRICE.c \ + ../../../../../src/ta_func/ta_ULTOSC.c \ + ../../../../../src/ta_func/ta_VAR.c \ + ../../../../../src/ta_func/ta_WCLPRICE.c \ + ../../../../../src/ta_func/ta_WILLR.c \ + ../../../../../src/ta_func/ta_WMA.c +OBJECTS = ../../../../../temp/csr/ta_utility.o \ + ../../../../../temp/csr/ta_ACOS.o \ + ../../../../../temp/csr/ta_AD.o \ + ../../../../../temp/csr/ta_ADD.o \ + ../../../../../temp/csr/ta_ADOSC.o \ + ../../../../../temp/csr/ta_ADX.o \ + ../../../../../temp/csr/ta_ADXR.o \ + ../../../../../temp/csr/ta_APO.o \ + ../../../../../temp/csr/ta_AROON.o \ + ../../../../../temp/csr/ta_AROONOSC.o \ + ../../../../../temp/csr/ta_ASIN.o \ + ../../../../../temp/csr/ta_ATAN.o \ + ../../../../../temp/csr/ta_ATR.o \ + ../../../../../temp/csr/ta_AVGPRICE.o \ + ../../../../../temp/csr/ta_BBANDS.o \ + ../../../../../temp/csr/ta_BETA.o \ + ../../../../../temp/csr/ta_BOP.o \ + ../../../../../temp/csr/ta_CCI.o \ + ../../../../../temp/csr/ta_CDL2CROWS.o \ + ../../../../../temp/csr/ta_CDL3BLACKCROWS.o \ + ../../../../../temp/csr/ta_CDL3INSIDE.o \ + ../../../../../temp/csr/ta_CDL3LINESTRIKE.o \ + ../../../../../temp/csr/ta_CDL3OUTSIDE.o \ + ../../../../../temp/csr/ta_CDL3STARSINSOUTH.o \ + ../../../../../temp/csr/ta_CDL3WHITESOLDIERS.o \ + ../../../../../temp/csr/ta_CDLABANDONEDBABY.o \ + ../../../../../temp/csr/ta_CDLADVANCEBLOCK.o \ + ../../../../../temp/csr/ta_CDLBELTHOLD.o \ + ../../../../../temp/csr/ta_CDLBREAKAWAY.o \ + ../../../../../temp/csr/ta_CDLCLOSINGMARUBOZU.o \ + ../../../../../temp/csr/ta_CDLCONCEALBABYSWALL.o \ + ../../../../../temp/csr/ta_CDLCOUNTERATTACK.o \ + ../../../../../temp/csr/ta_CDLDARKCLOUDCOVER.o \ + ../../../../../temp/csr/ta_CDLDOJI.o \ + ../../../../../temp/csr/ta_CDLDOJISTAR.o \ + ../../../../../temp/csr/ta_CDLDRAGONFLYDOJI.o \ + ../../../../../temp/csr/ta_CDLENGULFING.o \ + ../../../../../temp/csr/ta_CDLEVENINGDOJISTAR.o \ + ../../../../../temp/csr/ta_CDLEVENINGSTAR.o \ + ../../../../../temp/csr/ta_CDLGAPSIDESIDEWHITE.o \ + ../../../../../temp/csr/ta_CDLGRAVESTONEDOJI.o \ + ../../../../../temp/csr/ta_CDLHAMMER.o \ + ../../../../../temp/csr/ta_CDLHANGINGMAN.o \ + ../../../../../temp/csr/ta_CDLHARAMI.o \ + ../../../../../temp/csr/ta_CDLHARAMICROSS.o \ + ../../../../../temp/csr/ta_CDLHIGHWAVE.o \ + ../../../../../temp/csr/ta_CDLHIKKAKE.o \ + ../../../../../temp/csr/ta_CDLHIKKAKEMOD.o \ + ../../../../../temp/csr/ta_CDLHOMINGPIGEON.o \ + ../../../../../temp/csr/ta_CDLIDENTICAL3CROWS.o \ + ../../../../../temp/csr/ta_CDLINNECK.o \ + ../../../../../temp/csr/ta_CDLINVERTEDHAMMER.o \ + ../../../../../temp/csr/ta_CDLKICKING.o \ + ../../../../../temp/csr/ta_CDLKICKINGBYLENGTH.o \ + ../../../../../temp/csr/ta_CDLLADDERBOTTOM.o \ + ../../../../../temp/csr/ta_CDLLONGLEGGEDDOJI.o \ + ../../../../../temp/csr/ta_CDLLONGLINE.o \ + ../../../../../temp/csr/ta_CDLMARUBOZU.o \ + ../../../../../temp/csr/ta_CDLMATCHINGLOW.o \ + ../../../../../temp/csr/ta_CDLMATHOLD.o \ + ../../../../../temp/csr/ta_CDLMORNINGDOJISTAR.o \ + ../../../../../temp/csr/ta_CDLMORNINGSTAR.o \ + ../../../../../temp/csr/ta_CDLONNECK.o \ + ../../../../../temp/csr/ta_CDLPIERCING.o \ + ../../../../../temp/csr/ta_CDLRICKSHAWMAN.o \ + ../../../../../temp/csr/ta_CDLRISEFALL3METHODS.o \ + ../../../../../temp/csr/ta_CDLSEPARATINGLINES.o \ + ../../../../../temp/csr/ta_CDLSHOOTINGSTAR.o \ + ../../../../../temp/csr/ta_CDLSHORTLINE.o \ + ../../../../../temp/csr/ta_CDLSPINNINGTOP.o \ + ../../../../../temp/csr/ta_CDLSTALLEDPATTERN.o \ + ../../../../../temp/csr/ta_CDLSTICKSANDWICH.o \ + ../../../../../temp/csr/ta_CDLTAKURI.o \ + ../../../../../temp/csr/ta_CDLTASUKIGAP.o \ + ../../../../../temp/csr/ta_CDLTHRUSTING.o \ + ../../../../../temp/csr/ta_CDLTRISTAR.o \ + ../../../../../temp/csr/ta_CDLUNIQUE3RIVER.o \ + ../../../../../temp/csr/ta_CDLUPSIDEGAP2CROWS.o \ + ../../../../../temp/csr/ta_CDLXSIDEGAP3METHODS.o \ + ../../../../../temp/csr/ta_CEIL.o \ + ../../../../../temp/csr/ta_CMO.o \ + ../../../../../temp/csr/ta_CORREL.o \ + ../../../../../temp/csr/ta_COS.o \ + ../../../../../temp/csr/ta_COSH.o \ + ../../../../../temp/csr/ta_DEMA.o \ + ../../../../../temp/csr/ta_DIV.o \ + ../../../../../temp/csr/ta_DX.o \ + ../../../../../temp/csr/ta_EMA.o \ + ../../../../../temp/csr/ta_EXP.o \ + ../../../../../temp/csr/ta_FLOOR.o \ + ../../../../../temp/csr/ta_HT_DCPERIOD.o \ + ../../../../../temp/csr/ta_HT_DCPHASE.o \ + ../../../../../temp/csr/ta_HT_PHASOR.o \ + ../../../../../temp/csr/ta_HT_SINE.o \ + ../../../../../temp/csr/ta_HT_TRENDLINE.o \ + ../../../../../temp/csr/ta_HT_TRENDMODE.o \ + ../../../../../temp/csr/ta_KAMA.o \ + ../../../../../temp/csr/ta_LINEARREG.o \ + ../../../../../temp/csr/ta_LINEARREG_ANGLE.o \ + ../../../../../temp/csr/ta_LINEARREG_INTERCEPT.o \ + ../../../../../temp/csr/ta_LINEARREG_SLOPE.o \ + ../../../../../temp/csr/ta_LN.o \ + ../../../../../temp/csr/ta_LOG10.o \ + ../../../../../temp/csr/ta_MA.o \ + ../../../../../temp/csr/ta_MACD.o \ + ../../../../../temp/csr/ta_MACDEXT.o \ + ../../../../../temp/csr/ta_MACDFIX.o \ + ../../../../../temp/csr/ta_MAMA.o \ + ../../../../../temp/csr/ta_MAVP.o \ + ../../../../../temp/csr/ta_MAX.o \ + ../../../../../temp/csr/ta_MAXINDEX.o \ + ../../../../../temp/csr/ta_MEDPRICE.o \ + ../../../../../temp/csr/ta_MFI.o \ + ../../../../../temp/csr/ta_MIDPOINT.o \ + ../../../../../temp/csr/ta_MIDPRICE.o \ + ../../../../../temp/csr/ta_MIN.o \ + ../../../../../temp/csr/ta_MININDEX.o \ + ../../../../../temp/csr/ta_MINMAX.o \ + ../../../../../temp/csr/ta_MINMAXINDEX.o \ + ../../../../../temp/csr/ta_MINUS_DI.o \ + ../../../../../temp/csr/ta_MINUS_DM.o \ + ../../../../../temp/csr/ta_MOM.o \ + ../../../../../temp/csr/ta_MULT.o \ + ../../../../../temp/csr/ta_NATR.o \ + ../../../../../temp/csr/ta_OBV.o \ + ../../../../../temp/csr/ta_PLUS_DI.o \ + ../../../../../temp/csr/ta_PLUS_DM.o \ + ../../../../../temp/csr/ta_PPO.o \ + ../../../../../temp/csr/ta_ROC.o \ + ../../../../../temp/csr/ta_ROCP.o \ + ../../../../../temp/csr/ta_ROCR.o \ + ../../../../../temp/csr/ta_ROCR100.o \ + ../../../../../temp/csr/ta_RSI.o \ + ../../../../../temp/csr/ta_SAR.o \ + ../../../../../temp/csr/ta_SAREXT.o \ + ../../../../../temp/csr/ta_SIN.o \ + ../../../../../temp/csr/ta_SINH.o \ + ../../../../../temp/csr/ta_SMA.o \ + ../../../../../temp/csr/ta_SQRT.o \ + ../../../../../temp/csr/ta_STDDEV.o \ + ../../../../../temp/csr/ta_STOCH.o \ + ../../../../../temp/csr/ta_STOCHF.o \ + ../../../../../temp/csr/ta_STOCHRSI.o \ + ../../../../../temp/csr/ta_SUB.o \ + ../../../../../temp/csr/ta_SUM.o \ + ../../../../../temp/csr/ta_T3.o \ + ../../../../../temp/csr/ta_TAN.o \ + ../../../../../temp/csr/ta_TANH.o \ + ../../../../../temp/csr/ta_TEMA.o \ + ../../../../../temp/csr/ta_TRANGE.o \ + ../../../../../temp/csr/ta_TRIMA.o \ + ../../../../../temp/csr/ta_TRIX.o \ + ../../../../../temp/csr/ta_TSF.o \ + ../../../../../temp/csr/ta_TYPPRICE.o \ + ../../../../../temp/csr/ta_ULTOSC.o \ + ../../../../../temp/csr/ta_VAR.o \ + ../../../../../temp/csr/ta_WCLPRICE.o \ + ../../../../../temp/csr/ta_WILLR.o \ + ../../../../../temp/csr/ta_WMA.o +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ../../../../../lib/libta_func_csr.a +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .C .c + +.cpp.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cxx.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cc.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.C.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.c.o: + $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $< + +####### Build rules + + +all: $(TARGET) + +staticlib: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + -rm -f $(TARGET) + $(AR) $(TARGET) $(OBJECTS) $(OBJMOC) + +moc: $(SRCMOC) + +clean: + -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) + -rm -f *~ core + +####### Sub-libraries + + +###### Combined headers + + +####### Compile + +../../../../../temp/csr/ta_utility.o: ../../../../../src/ta_func/ta_utility.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_utility.o ../../../../../src/ta_func/ta_utility.c + +../../../../../temp/csr/ta_ACOS.o: ../../../../../src/ta_func/ta_ACOS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_ACOS.o ../../../../../src/ta_func/ta_ACOS.c + +../../../../../temp/csr/ta_AD.o: ../../../../../src/ta_func/ta_AD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_AD.o ../../../../../src/ta_func/ta_AD.c + +../../../../../temp/csr/ta_ADD.o: ../../../../../src/ta_func/ta_ADD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_ADD.o ../../../../../src/ta_func/ta_ADD.c + +../../../../../temp/csr/ta_ADOSC.o: ../../../../../src/ta_func/ta_ADOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_ADOSC.o ../../../../../src/ta_func/ta_ADOSC.c + +../../../../../temp/csr/ta_ADX.o: ../../../../../src/ta_func/ta_ADX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_ADX.o ../../../../../src/ta_func/ta_ADX.c + +../../../../../temp/csr/ta_ADXR.o: ../../../../../src/ta_func/ta_ADXR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_ADXR.o ../../../../../src/ta_func/ta_ADXR.c + +../../../../../temp/csr/ta_APO.o: ../../../../../src/ta_func/ta_APO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_APO.o ../../../../../src/ta_func/ta_APO.c + +../../../../../temp/csr/ta_AROON.o: ../../../../../src/ta_func/ta_AROON.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_AROON.o ../../../../../src/ta_func/ta_AROON.c + +../../../../../temp/csr/ta_AROONOSC.o: ../../../../../src/ta_func/ta_AROONOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_AROONOSC.o ../../../../../src/ta_func/ta_AROONOSC.c + +../../../../../temp/csr/ta_ASIN.o: ../../../../../src/ta_func/ta_ASIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_ASIN.o ../../../../../src/ta_func/ta_ASIN.c + +../../../../../temp/csr/ta_ATAN.o: ../../../../../src/ta_func/ta_ATAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_ATAN.o ../../../../../src/ta_func/ta_ATAN.c + +../../../../../temp/csr/ta_ATR.o: ../../../../../src/ta_func/ta_ATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_ATR.o ../../../../../src/ta_func/ta_ATR.c + +../../../../../temp/csr/ta_AVGPRICE.o: ../../../../../src/ta_func/ta_AVGPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_AVGPRICE.o ../../../../../src/ta_func/ta_AVGPRICE.c + +../../../../../temp/csr/ta_BBANDS.o: ../../../../../src/ta_func/ta_BBANDS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_BBANDS.o ../../../../../src/ta_func/ta_BBANDS.c + +../../../../../temp/csr/ta_BETA.o: ../../../../../src/ta_func/ta_BETA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_BETA.o ../../../../../src/ta_func/ta_BETA.c + +../../../../../temp/csr/ta_BOP.o: ../../../../../src/ta_func/ta_BOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_BOP.o ../../../../../src/ta_func/ta_BOP.c + +../../../../../temp/csr/ta_CCI.o: ../../../../../src/ta_func/ta_CCI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CCI.o ../../../../../src/ta_func/ta_CCI.c + +../../../../../temp/csr/ta_CDL2CROWS.o: ../../../../../src/ta_func/ta_CDL2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDL2CROWS.o ../../../../../src/ta_func/ta_CDL2CROWS.c + +../../../../../temp/csr/ta_CDL3BLACKCROWS.o: ../../../../../src/ta_func/ta_CDL3BLACKCROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDL3BLACKCROWS.o ../../../../../src/ta_func/ta_CDL3BLACKCROWS.c + +../../../../../temp/csr/ta_CDL3INSIDE.o: ../../../../../src/ta_func/ta_CDL3INSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDL3INSIDE.o ../../../../../src/ta_func/ta_CDL3INSIDE.c + +../../../../../temp/csr/ta_CDL3LINESTRIKE.o: ../../../../../src/ta_func/ta_CDL3LINESTRIKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDL3LINESTRIKE.o ../../../../../src/ta_func/ta_CDL3LINESTRIKE.c + +../../../../../temp/csr/ta_CDL3OUTSIDE.o: ../../../../../src/ta_func/ta_CDL3OUTSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDL3OUTSIDE.o ../../../../../src/ta_func/ta_CDL3OUTSIDE.c + +../../../../../temp/csr/ta_CDL3STARSINSOUTH.o: ../../../../../src/ta_func/ta_CDL3STARSINSOUTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDL3STARSINSOUTH.o ../../../../../src/ta_func/ta_CDL3STARSINSOUTH.c + +../../../../../temp/csr/ta_CDL3WHITESOLDIERS.o: ../../../../../src/ta_func/ta_CDL3WHITESOLDIERS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDL3WHITESOLDIERS.o ../../../../../src/ta_func/ta_CDL3WHITESOLDIERS.c + +../../../../../temp/csr/ta_CDLABANDONEDBABY.o: ../../../../../src/ta_func/ta_CDLABANDONEDBABY.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLABANDONEDBABY.o ../../../../../src/ta_func/ta_CDLABANDONEDBABY.c + +../../../../../temp/csr/ta_CDLADVANCEBLOCK.o: ../../../../../src/ta_func/ta_CDLADVANCEBLOCK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLADVANCEBLOCK.o ../../../../../src/ta_func/ta_CDLADVANCEBLOCK.c + +../../../../../temp/csr/ta_CDLBELTHOLD.o: ../../../../../src/ta_func/ta_CDLBELTHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLBELTHOLD.o ../../../../../src/ta_func/ta_CDLBELTHOLD.c + +../../../../../temp/csr/ta_CDLBREAKAWAY.o: ../../../../../src/ta_func/ta_CDLBREAKAWAY.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLBREAKAWAY.o ../../../../../src/ta_func/ta_CDLBREAKAWAY.c + +../../../../../temp/csr/ta_CDLCLOSINGMARUBOZU.o: ../../../../../src/ta_func/ta_CDLCLOSINGMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLCLOSINGMARUBOZU.o ../../../../../src/ta_func/ta_CDLCLOSINGMARUBOZU.c + +../../../../../temp/csr/ta_CDLCONCEALBABYSWALL.o: ../../../../../src/ta_func/ta_CDLCONCEALBABYSWALL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLCONCEALBABYSWALL.o ../../../../../src/ta_func/ta_CDLCONCEALBABYSWALL.c + +../../../../../temp/csr/ta_CDLCOUNTERATTACK.o: ../../../../../src/ta_func/ta_CDLCOUNTERATTACK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLCOUNTERATTACK.o ../../../../../src/ta_func/ta_CDLCOUNTERATTACK.c + +../../../../../temp/csr/ta_CDLDARKCLOUDCOVER.o: ../../../../../src/ta_func/ta_CDLDARKCLOUDCOVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLDARKCLOUDCOVER.o ../../../../../src/ta_func/ta_CDLDARKCLOUDCOVER.c + +../../../../../temp/csr/ta_CDLDOJI.o: ../../../../../src/ta_func/ta_CDLDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLDOJI.o ../../../../../src/ta_func/ta_CDLDOJI.c + +../../../../../temp/csr/ta_CDLDOJISTAR.o: ../../../../../src/ta_func/ta_CDLDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLDOJISTAR.o ../../../../../src/ta_func/ta_CDLDOJISTAR.c + +../../../../../temp/csr/ta_CDLDRAGONFLYDOJI.o: ../../../../../src/ta_func/ta_CDLDRAGONFLYDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLDRAGONFLYDOJI.o ../../../../../src/ta_func/ta_CDLDRAGONFLYDOJI.c + +../../../../../temp/csr/ta_CDLENGULFING.o: ../../../../../src/ta_func/ta_CDLENGULFING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLENGULFING.o ../../../../../src/ta_func/ta_CDLENGULFING.c + +../../../../../temp/csr/ta_CDLEVENINGDOJISTAR.o: ../../../../../src/ta_func/ta_CDLEVENINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLEVENINGDOJISTAR.o ../../../../../src/ta_func/ta_CDLEVENINGDOJISTAR.c + +../../../../../temp/csr/ta_CDLEVENINGSTAR.o: ../../../../../src/ta_func/ta_CDLEVENINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLEVENINGSTAR.o ../../../../../src/ta_func/ta_CDLEVENINGSTAR.c + +../../../../../temp/csr/ta_CDLGAPSIDESIDEWHITE.o: ../../../../../src/ta_func/ta_CDLGAPSIDESIDEWHITE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLGAPSIDESIDEWHITE.o ../../../../../src/ta_func/ta_CDLGAPSIDESIDEWHITE.c + +../../../../../temp/csr/ta_CDLGRAVESTONEDOJI.o: ../../../../../src/ta_func/ta_CDLGRAVESTONEDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLGRAVESTONEDOJI.o ../../../../../src/ta_func/ta_CDLGRAVESTONEDOJI.c + +../../../../../temp/csr/ta_CDLHAMMER.o: ../../../../../src/ta_func/ta_CDLHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLHAMMER.o ../../../../../src/ta_func/ta_CDLHAMMER.c + +../../../../../temp/csr/ta_CDLHANGINGMAN.o: ../../../../../src/ta_func/ta_CDLHANGINGMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLHANGINGMAN.o ../../../../../src/ta_func/ta_CDLHANGINGMAN.c + +../../../../../temp/csr/ta_CDLHARAMI.o: ../../../../../src/ta_func/ta_CDLHARAMI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLHARAMI.o ../../../../../src/ta_func/ta_CDLHARAMI.c + +../../../../../temp/csr/ta_CDLHARAMICROSS.o: ../../../../../src/ta_func/ta_CDLHARAMICROSS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLHARAMICROSS.o ../../../../../src/ta_func/ta_CDLHARAMICROSS.c + +../../../../../temp/csr/ta_CDLHIGHWAVE.o: ../../../../../src/ta_func/ta_CDLHIGHWAVE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLHIGHWAVE.o ../../../../../src/ta_func/ta_CDLHIGHWAVE.c + +../../../../../temp/csr/ta_CDLHIKKAKE.o: ../../../../../src/ta_func/ta_CDLHIKKAKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLHIKKAKE.o ../../../../../src/ta_func/ta_CDLHIKKAKE.c + +../../../../../temp/csr/ta_CDLHIKKAKEMOD.o: ../../../../../src/ta_func/ta_CDLHIKKAKEMOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLHIKKAKEMOD.o ../../../../../src/ta_func/ta_CDLHIKKAKEMOD.c + +../../../../../temp/csr/ta_CDLHOMINGPIGEON.o: ../../../../../src/ta_func/ta_CDLHOMINGPIGEON.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLHOMINGPIGEON.o ../../../../../src/ta_func/ta_CDLHOMINGPIGEON.c + +../../../../../temp/csr/ta_CDLIDENTICAL3CROWS.o: ../../../../../src/ta_func/ta_CDLIDENTICAL3CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLIDENTICAL3CROWS.o ../../../../../src/ta_func/ta_CDLIDENTICAL3CROWS.c + +../../../../../temp/csr/ta_CDLINNECK.o: ../../../../../src/ta_func/ta_CDLINNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLINNECK.o ../../../../../src/ta_func/ta_CDLINNECK.c + +../../../../../temp/csr/ta_CDLINVERTEDHAMMER.o: ../../../../../src/ta_func/ta_CDLINVERTEDHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLINVERTEDHAMMER.o ../../../../../src/ta_func/ta_CDLINVERTEDHAMMER.c + +../../../../../temp/csr/ta_CDLKICKING.o: ../../../../../src/ta_func/ta_CDLKICKING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLKICKING.o ../../../../../src/ta_func/ta_CDLKICKING.c + +../../../../../temp/csr/ta_CDLKICKINGBYLENGTH.o: ../../../../../src/ta_func/ta_CDLKICKINGBYLENGTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLKICKINGBYLENGTH.o ../../../../../src/ta_func/ta_CDLKICKINGBYLENGTH.c + +../../../../../temp/csr/ta_CDLLADDERBOTTOM.o: ../../../../../src/ta_func/ta_CDLLADDERBOTTOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLLADDERBOTTOM.o ../../../../../src/ta_func/ta_CDLLADDERBOTTOM.c + +../../../../../temp/csr/ta_CDLLONGLEGGEDDOJI.o: ../../../../../src/ta_func/ta_CDLLONGLEGGEDDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLLONGLEGGEDDOJI.o ../../../../../src/ta_func/ta_CDLLONGLEGGEDDOJI.c + +../../../../../temp/csr/ta_CDLLONGLINE.o: ../../../../../src/ta_func/ta_CDLLONGLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLLONGLINE.o ../../../../../src/ta_func/ta_CDLLONGLINE.c + +../../../../../temp/csr/ta_CDLMARUBOZU.o: ../../../../../src/ta_func/ta_CDLMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLMARUBOZU.o ../../../../../src/ta_func/ta_CDLMARUBOZU.c + +../../../../../temp/csr/ta_CDLMATCHINGLOW.o: ../../../../../src/ta_func/ta_CDLMATCHINGLOW.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLMATCHINGLOW.o ../../../../../src/ta_func/ta_CDLMATCHINGLOW.c + +../../../../../temp/csr/ta_CDLMATHOLD.o: ../../../../../src/ta_func/ta_CDLMATHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLMATHOLD.o ../../../../../src/ta_func/ta_CDLMATHOLD.c + +../../../../../temp/csr/ta_CDLMORNINGDOJISTAR.o: ../../../../../src/ta_func/ta_CDLMORNINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLMORNINGDOJISTAR.o ../../../../../src/ta_func/ta_CDLMORNINGDOJISTAR.c + +../../../../../temp/csr/ta_CDLMORNINGSTAR.o: ../../../../../src/ta_func/ta_CDLMORNINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLMORNINGSTAR.o ../../../../../src/ta_func/ta_CDLMORNINGSTAR.c + +../../../../../temp/csr/ta_CDLONNECK.o: ../../../../../src/ta_func/ta_CDLONNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLONNECK.o ../../../../../src/ta_func/ta_CDLONNECK.c + +../../../../../temp/csr/ta_CDLPIERCING.o: ../../../../../src/ta_func/ta_CDLPIERCING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLPIERCING.o ../../../../../src/ta_func/ta_CDLPIERCING.c + +../../../../../temp/csr/ta_CDLRICKSHAWMAN.o: ../../../../../src/ta_func/ta_CDLRICKSHAWMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLRICKSHAWMAN.o ../../../../../src/ta_func/ta_CDLRICKSHAWMAN.c + +../../../../../temp/csr/ta_CDLRISEFALL3METHODS.o: ../../../../../src/ta_func/ta_CDLRISEFALL3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLRISEFALL3METHODS.o ../../../../../src/ta_func/ta_CDLRISEFALL3METHODS.c + +../../../../../temp/csr/ta_CDLSEPARATINGLINES.o: ../../../../../src/ta_func/ta_CDLSEPARATINGLINES.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLSEPARATINGLINES.o ../../../../../src/ta_func/ta_CDLSEPARATINGLINES.c + +../../../../../temp/csr/ta_CDLSHOOTINGSTAR.o: ../../../../../src/ta_func/ta_CDLSHOOTINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLSHOOTINGSTAR.o ../../../../../src/ta_func/ta_CDLSHOOTINGSTAR.c + +../../../../../temp/csr/ta_CDLSHORTLINE.o: ../../../../../src/ta_func/ta_CDLSHORTLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLSHORTLINE.o ../../../../../src/ta_func/ta_CDLSHORTLINE.c + +../../../../../temp/csr/ta_CDLSPINNINGTOP.o: ../../../../../src/ta_func/ta_CDLSPINNINGTOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLSPINNINGTOP.o ../../../../../src/ta_func/ta_CDLSPINNINGTOP.c + +../../../../../temp/csr/ta_CDLSTALLEDPATTERN.o: ../../../../../src/ta_func/ta_CDLSTALLEDPATTERN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLSTALLEDPATTERN.o ../../../../../src/ta_func/ta_CDLSTALLEDPATTERN.c + +../../../../../temp/csr/ta_CDLSTICKSANDWICH.o: ../../../../../src/ta_func/ta_CDLSTICKSANDWICH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLSTICKSANDWICH.o ../../../../../src/ta_func/ta_CDLSTICKSANDWICH.c + +../../../../../temp/csr/ta_CDLTAKURI.o: ../../../../../src/ta_func/ta_CDLTAKURI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLTAKURI.o ../../../../../src/ta_func/ta_CDLTAKURI.c + +../../../../../temp/csr/ta_CDLTASUKIGAP.o: ../../../../../src/ta_func/ta_CDLTASUKIGAP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLTASUKIGAP.o ../../../../../src/ta_func/ta_CDLTASUKIGAP.c + +../../../../../temp/csr/ta_CDLTHRUSTING.o: ../../../../../src/ta_func/ta_CDLTHRUSTING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLTHRUSTING.o ../../../../../src/ta_func/ta_CDLTHRUSTING.c + +../../../../../temp/csr/ta_CDLTRISTAR.o: ../../../../../src/ta_func/ta_CDLTRISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLTRISTAR.o ../../../../../src/ta_func/ta_CDLTRISTAR.c + +../../../../../temp/csr/ta_CDLUNIQUE3RIVER.o: ../../../../../src/ta_func/ta_CDLUNIQUE3RIVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLUNIQUE3RIVER.o ../../../../../src/ta_func/ta_CDLUNIQUE3RIVER.c + +../../../../../temp/csr/ta_CDLUPSIDEGAP2CROWS.o: ../../../../../src/ta_func/ta_CDLUPSIDEGAP2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLUPSIDEGAP2CROWS.o ../../../../../src/ta_func/ta_CDLUPSIDEGAP2CROWS.c + +../../../../../temp/csr/ta_CDLXSIDEGAP3METHODS.o: ../../../../../src/ta_func/ta_CDLXSIDEGAP3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLXSIDEGAP3METHODS.o ../../../../../src/ta_func/ta_CDLXSIDEGAP3METHODS.c + +../../../../../temp/csr/ta_CEIL.o: ../../../../../src/ta_func/ta_CEIL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CEIL.o ../../../../../src/ta_func/ta_CEIL.c + +../../../../../temp/csr/ta_CMO.o: ../../../../../src/ta_func/ta_CMO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CMO.o ../../../../../src/ta_func/ta_CMO.c + +../../../../../temp/csr/ta_CORREL.o: ../../../../../src/ta_func/ta_CORREL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CORREL.o ../../../../../src/ta_func/ta_CORREL.c + +../../../../../temp/csr/ta_COS.o: ../../../../../src/ta_func/ta_COS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_COS.o ../../../../../src/ta_func/ta_COS.c + +../../../../../temp/csr/ta_COSH.o: ../../../../../src/ta_func/ta_COSH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_COSH.o ../../../../../src/ta_func/ta_COSH.c + +../../../../../temp/csr/ta_DEMA.o: ../../../../../src/ta_func/ta_DEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_DEMA.o ../../../../../src/ta_func/ta_DEMA.c + +../../../../../temp/csr/ta_DIV.o: ../../../../../src/ta_func/ta_DIV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_DIV.o ../../../../../src/ta_func/ta_DIV.c + +../../../../../temp/csr/ta_DX.o: ../../../../../src/ta_func/ta_DX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_DX.o ../../../../../src/ta_func/ta_DX.c + +../../../../../temp/csr/ta_EMA.o: ../../../../../src/ta_func/ta_EMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_EMA.o ../../../../../src/ta_func/ta_EMA.c + +../../../../../temp/csr/ta_EXP.o: ../../../../../src/ta_func/ta_EXP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_EXP.o ../../../../../src/ta_func/ta_EXP.c + +../../../../../temp/csr/ta_FLOOR.o: ../../../../../src/ta_func/ta_FLOOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_FLOOR.o ../../../../../src/ta_func/ta_FLOOR.c + +../../../../../temp/csr/ta_HT_DCPERIOD.o: ../../../../../src/ta_func/ta_HT_DCPERIOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_HT_DCPERIOD.o ../../../../../src/ta_func/ta_HT_DCPERIOD.c + +../../../../../temp/csr/ta_HT_DCPHASE.o: ../../../../../src/ta_func/ta_HT_DCPHASE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_HT_DCPHASE.o ../../../../../src/ta_func/ta_HT_DCPHASE.c + +../../../../../temp/csr/ta_HT_PHASOR.o: ../../../../../src/ta_func/ta_HT_PHASOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_HT_PHASOR.o ../../../../../src/ta_func/ta_HT_PHASOR.c + +../../../../../temp/csr/ta_HT_SINE.o: ../../../../../src/ta_func/ta_HT_SINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_HT_SINE.o ../../../../../src/ta_func/ta_HT_SINE.c + +../../../../../temp/csr/ta_HT_TRENDLINE.o: ../../../../../src/ta_func/ta_HT_TRENDLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_HT_TRENDLINE.o ../../../../../src/ta_func/ta_HT_TRENDLINE.c + +../../../../../temp/csr/ta_HT_TRENDMODE.o: ../../../../../src/ta_func/ta_HT_TRENDMODE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_HT_TRENDMODE.o ../../../../../src/ta_func/ta_HT_TRENDMODE.c + +../../../../../temp/csr/ta_KAMA.o: ../../../../../src/ta_func/ta_KAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_KAMA.o ../../../../../src/ta_func/ta_KAMA.c + +../../../../../temp/csr/ta_LINEARREG.o: ../../../../../src/ta_func/ta_LINEARREG.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_LINEARREG.o ../../../../../src/ta_func/ta_LINEARREG.c + +../../../../../temp/csr/ta_LINEARREG_ANGLE.o: ../../../../../src/ta_func/ta_LINEARREG_ANGLE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_LINEARREG_ANGLE.o ../../../../../src/ta_func/ta_LINEARREG_ANGLE.c + +../../../../../temp/csr/ta_LINEARREG_INTERCEPT.o: ../../../../../src/ta_func/ta_LINEARREG_INTERCEPT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_LINEARREG_INTERCEPT.o ../../../../../src/ta_func/ta_LINEARREG_INTERCEPT.c + +../../../../../temp/csr/ta_LINEARREG_SLOPE.o: ../../../../../src/ta_func/ta_LINEARREG_SLOPE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_LINEARREG_SLOPE.o ../../../../../src/ta_func/ta_LINEARREG_SLOPE.c + +../../../../../temp/csr/ta_LN.o: ../../../../../src/ta_func/ta_LN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_LN.o ../../../../../src/ta_func/ta_LN.c + +../../../../../temp/csr/ta_LOG10.o: ../../../../../src/ta_func/ta_LOG10.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_LOG10.o ../../../../../src/ta_func/ta_LOG10.c + +../../../../../temp/csr/ta_MA.o: ../../../../../src/ta_func/ta_MA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_MA.o ../../../../../src/ta_func/ta_MA.c + +../../../../../temp/csr/ta_MACD.o: ../../../../../src/ta_func/ta_MACD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_MACD.o ../../../../../src/ta_func/ta_MACD.c + +../../../../../temp/csr/ta_MACDEXT.o: ../../../../../src/ta_func/ta_MACDEXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_MACDEXT.o ../../../../../src/ta_func/ta_MACDEXT.c + +../../../../../temp/csr/ta_MACDFIX.o: ../../../../../src/ta_func/ta_MACDFIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_MACDFIX.o ../../../../../src/ta_func/ta_MACDFIX.c + +../../../../../temp/csr/ta_MAMA.o: ../../../../../src/ta_func/ta_MAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_MAMA.o ../../../../../src/ta_func/ta_MAMA.c + +../../../../../temp/csr/ta_MAVP.o: ../../../../../src/ta_func/ta_MAVP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_MAVP.o ../../../../../src/ta_func/ta_MAVP.c + +../../../../../temp/csr/ta_MAX.o: ../../../../../src/ta_func/ta_MAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_MAX.o ../../../../../src/ta_func/ta_MAX.c + +../../../../../temp/csr/ta_MAXINDEX.o: ../../../../../src/ta_func/ta_MAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_MAXINDEX.o ../../../../../src/ta_func/ta_MAXINDEX.c + +../../../../../temp/csr/ta_MEDPRICE.o: ../../../../../src/ta_func/ta_MEDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_MEDPRICE.o ../../../../../src/ta_func/ta_MEDPRICE.c + +../../../../../temp/csr/ta_MFI.o: ../../../../../src/ta_func/ta_MFI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_MFI.o ../../../../../src/ta_func/ta_MFI.c + +../../../../../temp/csr/ta_MIDPOINT.o: ../../../../../src/ta_func/ta_MIDPOINT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_MIDPOINT.o ../../../../../src/ta_func/ta_MIDPOINT.c + +../../../../../temp/csr/ta_MIDPRICE.o: ../../../../../src/ta_func/ta_MIDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_MIDPRICE.o ../../../../../src/ta_func/ta_MIDPRICE.c + +../../../../../temp/csr/ta_MIN.o: ../../../../../src/ta_func/ta_MIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_MIN.o ../../../../../src/ta_func/ta_MIN.c + +../../../../../temp/csr/ta_MININDEX.o: ../../../../../src/ta_func/ta_MININDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_MININDEX.o ../../../../../src/ta_func/ta_MININDEX.c + +../../../../../temp/csr/ta_MINMAX.o: ../../../../../src/ta_func/ta_MINMAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_MINMAX.o ../../../../../src/ta_func/ta_MINMAX.c + +../../../../../temp/csr/ta_MINMAXINDEX.o: ../../../../../src/ta_func/ta_MINMAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_MINMAXINDEX.o ../../../../../src/ta_func/ta_MINMAXINDEX.c + +../../../../../temp/csr/ta_MINUS_DI.o: ../../../../../src/ta_func/ta_MINUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_MINUS_DI.o ../../../../../src/ta_func/ta_MINUS_DI.c + +../../../../../temp/csr/ta_MINUS_DM.o: ../../../../../src/ta_func/ta_MINUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_MINUS_DM.o ../../../../../src/ta_func/ta_MINUS_DM.c + +../../../../../temp/csr/ta_MOM.o: ../../../../../src/ta_func/ta_MOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_MOM.o ../../../../../src/ta_func/ta_MOM.c + +../../../../../temp/csr/ta_MULT.o: ../../../../../src/ta_func/ta_MULT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_MULT.o ../../../../../src/ta_func/ta_MULT.c + +../../../../../temp/csr/ta_NATR.o: ../../../../../src/ta_func/ta_NATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_NATR.o ../../../../../src/ta_func/ta_NATR.c + +../../../../../temp/csr/ta_OBV.o: ../../../../../src/ta_func/ta_OBV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_OBV.o ../../../../../src/ta_func/ta_OBV.c + +../../../../../temp/csr/ta_PLUS_DI.o: ../../../../../src/ta_func/ta_PLUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_PLUS_DI.o ../../../../../src/ta_func/ta_PLUS_DI.c + +../../../../../temp/csr/ta_PLUS_DM.o: ../../../../../src/ta_func/ta_PLUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_PLUS_DM.o ../../../../../src/ta_func/ta_PLUS_DM.c + +../../../../../temp/csr/ta_PPO.o: ../../../../../src/ta_func/ta_PPO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_PPO.o ../../../../../src/ta_func/ta_PPO.c + +../../../../../temp/csr/ta_ROC.o: ../../../../../src/ta_func/ta_ROC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_ROC.o ../../../../../src/ta_func/ta_ROC.c + +../../../../../temp/csr/ta_ROCP.o: ../../../../../src/ta_func/ta_ROCP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_ROCP.o ../../../../../src/ta_func/ta_ROCP.c + +../../../../../temp/csr/ta_ROCR.o: ../../../../../src/ta_func/ta_ROCR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_ROCR.o ../../../../../src/ta_func/ta_ROCR.c + +../../../../../temp/csr/ta_ROCR100.o: ../../../../../src/ta_func/ta_ROCR100.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_ROCR100.o ../../../../../src/ta_func/ta_ROCR100.c + +../../../../../temp/csr/ta_RSI.o: ../../../../../src/ta_func/ta_RSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_RSI.o ../../../../../src/ta_func/ta_RSI.c + +../../../../../temp/csr/ta_SAR.o: ../../../../../src/ta_func/ta_SAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_SAR.o ../../../../../src/ta_func/ta_SAR.c + +../../../../../temp/csr/ta_SAREXT.o: ../../../../../src/ta_func/ta_SAREXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_SAREXT.o ../../../../../src/ta_func/ta_SAREXT.c + +../../../../../temp/csr/ta_SIN.o: ../../../../../src/ta_func/ta_SIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_SIN.o ../../../../../src/ta_func/ta_SIN.c + +../../../../../temp/csr/ta_SINH.o: ../../../../../src/ta_func/ta_SINH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_SINH.o ../../../../../src/ta_func/ta_SINH.c + +../../../../../temp/csr/ta_SMA.o: ../../../../../src/ta_func/ta_SMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_SMA.o ../../../../../src/ta_func/ta_SMA.c + +../../../../../temp/csr/ta_SQRT.o: ../../../../../src/ta_func/ta_SQRT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_SQRT.o ../../../../../src/ta_func/ta_SQRT.c + +../../../../../temp/csr/ta_STDDEV.o: ../../../../../src/ta_func/ta_STDDEV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_STDDEV.o ../../../../../src/ta_func/ta_STDDEV.c + +../../../../../temp/csr/ta_STOCH.o: ../../../../../src/ta_func/ta_STOCH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_STOCH.o ../../../../../src/ta_func/ta_STOCH.c + +../../../../../temp/csr/ta_STOCHF.o: ../../../../../src/ta_func/ta_STOCHF.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_STOCHF.o ../../../../../src/ta_func/ta_STOCHF.c + +../../../../../temp/csr/ta_STOCHRSI.o: ../../../../../src/ta_func/ta_STOCHRSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_STOCHRSI.o ../../../../../src/ta_func/ta_STOCHRSI.c + +../../../../../temp/csr/ta_SUB.o: ../../../../../src/ta_func/ta_SUB.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_SUB.o ../../../../../src/ta_func/ta_SUB.c + +../../../../../temp/csr/ta_SUM.o: ../../../../../src/ta_func/ta_SUM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_SUM.o ../../../../../src/ta_func/ta_SUM.c + +../../../../../temp/csr/ta_T3.o: ../../../../../src/ta_func/ta_T3.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_T3.o ../../../../../src/ta_func/ta_T3.c + +../../../../../temp/csr/ta_TAN.o: ../../../../../src/ta_func/ta_TAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_TAN.o ../../../../../src/ta_func/ta_TAN.c + +../../../../../temp/csr/ta_TANH.o: ../../../../../src/ta_func/ta_TANH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_TANH.o ../../../../../src/ta_func/ta_TANH.c + +../../../../../temp/csr/ta_TEMA.o: ../../../../../src/ta_func/ta_TEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_TEMA.o ../../../../../src/ta_func/ta_TEMA.c + +../../../../../temp/csr/ta_TRANGE.o: ../../../../../src/ta_func/ta_TRANGE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_TRANGE.o ../../../../../src/ta_func/ta_TRANGE.c + +../../../../../temp/csr/ta_TRIMA.o: ../../../../../src/ta_func/ta_TRIMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_TRIMA.o ../../../../../src/ta_func/ta_TRIMA.c + +../../../../../temp/csr/ta_TRIX.o: ../../../../../src/ta_func/ta_TRIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_TRIX.o ../../../../../src/ta_func/ta_TRIX.c + +../../../../../temp/csr/ta_TSF.o: ../../../../../src/ta_func/ta_TSF.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_TSF.o ../../../../../src/ta_func/ta_TSF.c + +../../../../../temp/csr/ta_TYPPRICE.o: ../../../../../src/ta_func/ta_TYPPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_TYPPRICE.o ../../../../../src/ta_func/ta_TYPPRICE.c + +../../../../../temp/csr/ta_ULTOSC.o: ../../../../../src/ta_func/ta_ULTOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_ULTOSC.o ../../../../../src/ta_func/ta_ULTOSC.c + +../../../../../temp/csr/ta_VAR.o: ../../../../../src/ta_func/ta_VAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_VAR.o ../../../../../src/ta_func/ta_VAR.c + +../../../../../temp/csr/ta_WCLPRICE.o: ../../../../../src/ta_func/ta_WCLPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_WCLPRICE.o ../../../../../src/ta_func/ta_WCLPRICE.c + +../../../../../temp/csr/ta_WILLR.o: ../../../../../src/ta_func/ta_WILLR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_WILLR.o ../../../../../src/ta_func/ta_WILLR.c + +../../../../../temp/csr/ta_WMA.o: ../../../../../src/ta_func/ta_WMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_WMA.o ../../../../../src/ta_func/ta_WMA.c + diff --git a/make/csr/cygwin/g++/ta_libc/Makefile b/make/csr/cygwin/g++/ta_libc/Makefile new file mode 100644 index 000000000..3fbe5d2dd --- /dev/null +++ b/make/csr/cygwin/g++/ta_libc/Makefile @@ -0,0 +1,1053 @@ +############################################################################# +# Makefile for building ../../../../../lib/libta_libc_csr.a +# Generated by tmake; +# Project: ta_libc/ta_libc +# Template: lib +############################################################################# + +####### Compiler, tools and options + +CC = gcc +CXX = g++ +CFLAGS = -pipe -Wall -W -O2 -fno-strict-aliasing -DTA_SINGLE_THREAD -DNO_DEBUG +CXXFLAGS= -pipe -Wall -W -O2 -fno-strict-aliasing -DTA_SINGLE_THREAD -DNO_DEBUG +INCPATH = -I../../../../../src/ta_common -I../../../../../include -I../../../../../src/ta_abstract -I../../../../../src/ta_abstract/tables -I../../../../../src/ta_abstract/frames -I$(QTDIR)/include +AR = ar cqs +RANLIB = +MOC = $(QTDIR)/bin/moc +UIC = $(QTDIR)/bin/uic + +TAR = tar -cf +GZIP = gzip -9f + +####### Support for 64-bit systems +ifeq ($(shell uname -m), x86_64) + CFLAGS += -march=x86-64 -m64 -D__64BIT__ + CXXFLAGS += -march=x86-64 -m64 -D__64BIT__ +endif + +####### Apply additional overruling user flags, if any +CFLAGS += $(CUSERFLAGS) +CXXFLAGS += $(CUSERFLAGS) + +####### Files + +HEADERS = +SOURCES = ../../../../../src/ta_common/ta_global.c \ + ../../../../../src/ta_common/ta_retcode.c \ + ../../../../../src/ta_common/ta_version.c \ + ../../../../../src/ta_abstract/ta_abstract.c \ + ../../../../../src/ta_abstract/ta_def_ui.c \ + ../../../../../src/ta_abstract/ta_func_api.c \ + ../../../../../src/ta_abstract/ta_group_idx.c \ + ../../../../../src/ta_abstract/frames/ta_frame.c \ + ../../../../../src/ta_abstract/tables/table_a.c \ + ../../../../../src/ta_abstract/tables/table_b.c \ + ../../../../../src/ta_abstract/tables/table_c.c \ + ../../../../../src/ta_abstract/tables/table_d.c \ + ../../../../../src/ta_abstract/tables/table_e.c \ + ../../../../../src/ta_abstract/tables/table_f.c \ + ../../../../../src/ta_abstract/tables/table_g.c \ + ../../../../../src/ta_abstract/tables/table_h.c \ + ../../../../../src/ta_abstract/tables/table_i.c \ + ../../../../../src/ta_abstract/tables/table_j.c \ + ../../../../../src/ta_abstract/tables/table_k.c \ + ../../../../../src/ta_abstract/tables/table_l.c \ + ../../../../../src/ta_abstract/tables/table_m.c \ + ../../../../../src/ta_abstract/tables/table_n.c \ + ../../../../../src/ta_abstract/tables/table_o.c \ + ../../../../../src/ta_abstract/tables/table_p.c \ + ../../../../../src/ta_abstract/tables/table_q.c \ + ../../../../../src/ta_abstract/tables/table_r.c \ + ../../../../../src/ta_abstract/tables/table_s.c \ + ../../../../../src/ta_abstract/tables/table_t.c \ + ../../../../../src/ta_abstract/tables/table_u.c \ + ../../../../../src/ta_abstract/tables/table_v.c \ + ../../../../../src/ta_abstract/tables/table_w.c \ + ../../../../../src/ta_abstract/tables/table_x.c \ + ../../../../../src/ta_abstract/tables/table_y.c \ + ../../../../../src/ta_abstract/tables/table_z.c \ + ../../../../../src/ta_func/ta_utility.c \ + ../../../../../src/ta_func/ta_ACOS.c \ + ../../../../../src/ta_func/ta_AD.c \ + ../../../../../src/ta_func/ta_ADD.c \ + ../../../../../src/ta_func/ta_ADOSC.c \ + ../../../../../src/ta_func/ta_ADX.c \ + ../../../../../src/ta_func/ta_ADXR.c \ + ../../../../../src/ta_func/ta_APO.c \ + ../../../../../src/ta_func/ta_AROON.c \ + ../../../../../src/ta_func/ta_AROONOSC.c \ + ../../../../../src/ta_func/ta_ASIN.c \ + ../../../../../src/ta_func/ta_ATAN.c \ + ../../../../../src/ta_func/ta_ATR.c \ + ../../../../../src/ta_func/ta_AVGPRICE.c \ + ../../../../../src/ta_func/ta_BBANDS.c \ + ../../../../../src/ta_func/ta_BETA.c \ + ../../../../../src/ta_func/ta_BOP.c \ + ../../../../../src/ta_func/ta_CCI.c \ + ../../../../../src/ta_func/ta_CDL2CROWS.c \ + ../../../../../src/ta_func/ta_CDL3BLACKCROWS.c \ + ../../../../../src/ta_func/ta_CDL3INSIDE.c \ + ../../../../../src/ta_func/ta_CDL3LINESTRIKE.c \ + ../../../../../src/ta_func/ta_CDL3OUTSIDE.c \ + ../../../../../src/ta_func/ta_CDL3STARSINSOUTH.c \ + ../../../../../src/ta_func/ta_CDL3WHITESOLDIERS.c \ + ../../../../../src/ta_func/ta_CDLABANDONEDBABY.c \ + ../../../../../src/ta_func/ta_CDLADVANCEBLOCK.c \ + ../../../../../src/ta_func/ta_CDLBELTHOLD.c \ + ../../../../../src/ta_func/ta_CDLBREAKAWAY.c \ + ../../../../../src/ta_func/ta_CDLCLOSINGMARUBOZU.c \ + ../../../../../src/ta_func/ta_CDLCONCEALBABYSWALL.c \ + ../../../../../src/ta_func/ta_CDLCOUNTERATTACK.c \ + ../../../../../src/ta_func/ta_CDLDARKCLOUDCOVER.c \ + ../../../../../src/ta_func/ta_CDLDOJI.c \ + ../../../../../src/ta_func/ta_CDLDOJISTAR.c \ + ../../../../../src/ta_func/ta_CDLDRAGONFLYDOJI.c \ + ../../../../../src/ta_func/ta_CDLENGULFING.c \ + ../../../../../src/ta_func/ta_CDLEVENINGDOJISTAR.c \ + ../../../../../src/ta_func/ta_CDLEVENINGSTAR.c \ + ../../../../../src/ta_func/ta_CDLGAPSIDESIDEWHITE.c \ + ../../../../../src/ta_func/ta_CDLGRAVESTONEDOJI.c \ + ../../../../../src/ta_func/ta_CDLHAMMER.c \ + ../../../../../src/ta_func/ta_CDLHANGINGMAN.c \ + ../../../../../src/ta_func/ta_CDLHARAMI.c \ + ../../../../../src/ta_func/ta_CDLHARAMICROSS.c \ + ../../../../../src/ta_func/ta_CDLHIGHWAVE.c \ + ../../../../../src/ta_func/ta_CDLHIKKAKE.c \ + ../../../../../src/ta_func/ta_CDLHIKKAKEMOD.c \ + ../../../../../src/ta_func/ta_CDLHOMINGPIGEON.c \ + ../../../../../src/ta_func/ta_CDLIDENTICAL3CROWS.c \ + ../../../../../src/ta_func/ta_CDLINNECK.c \ + ../../../../../src/ta_func/ta_CDLINVERTEDHAMMER.c \ + ../../../../../src/ta_func/ta_CDLKICKING.c \ + ../../../../../src/ta_func/ta_CDLKICKINGBYLENGTH.c \ + ../../../../../src/ta_func/ta_CDLLADDERBOTTOM.c \ + ../../../../../src/ta_func/ta_CDLLONGLEGGEDDOJI.c \ + ../../../../../src/ta_func/ta_CDLLONGLINE.c \ + ../../../../../src/ta_func/ta_CDLMARUBOZU.c \ + ../../../../../src/ta_func/ta_CDLMATCHINGLOW.c \ + ../../../../../src/ta_func/ta_CDLMATHOLD.c \ + ../../../../../src/ta_func/ta_CDLMORNINGDOJISTAR.c \ + ../../../../../src/ta_func/ta_CDLMORNINGSTAR.c \ + ../../../../../src/ta_func/ta_CDLONNECK.c \ + ../../../../../src/ta_func/ta_CDLPIERCING.c \ + ../../../../../src/ta_func/ta_CDLRICKSHAWMAN.c \ + ../../../../../src/ta_func/ta_CDLRISEFALL3METHODS.c \ + ../../../../../src/ta_func/ta_CDLSEPARATINGLINES.c \ + ../../../../../src/ta_func/ta_CDLSHOOTINGSTAR.c \ + ../../../../../src/ta_func/ta_CDLSHORTLINE.c \ + ../../../../../src/ta_func/ta_CDLSPINNINGTOP.c \ + ../../../../../src/ta_func/ta_CDLSTALLEDPATTERN.c \ + ../../../../../src/ta_func/ta_CDLSTICKSANDWICH.c \ + ../../../../../src/ta_func/ta_CDLTAKURI.c \ + ../../../../../src/ta_func/ta_CDLTASUKIGAP.c \ + ../../../../../src/ta_func/ta_CDLTHRUSTING.c \ + ../../../../../src/ta_func/ta_CDLTRISTAR.c \ + ../../../../../src/ta_func/ta_CDLUNIQUE3RIVER.c \ + ../../../../../src/ta_func/ta_CDLUPSIDEGAP2CROWS.c \ + ../../../../../src/ta_func/ta_CDLXSIDEGAP3METHODS.c \ + ../../../../../src/ta_func/ta_CEIL.c \ + ../../../../../src/ta_func/ta_CMO.c \ + ../../../../../src/ta_func/ta_CORREL.c \ + ../../../../../src/ta_func/ta_COS.c \ + ../../../../../src/ta_func/ta_COSH.c \ + ../../../../../src/ta_func/ta_DEMA.c \ + ../../../../../src/ta_func/ta_DIV.c \ + ../../../../../src/ta_func/ta_DX.c \ + ../../../../../src/ta_func/ta_EMA.c \ + ../../../../../src/ta_func/ta_EXP.c \ + ../../../../../src/ta_func/ta_FLOOR.c \ + ../../../../../src/ta_func/ta_HT_DCPERIOD.c \ + ../../../../../src/ta_func/ta_HT_DCPHASE.c \ + ../../../../../src/ta_func/ta_HT_PHASOR.c \ + ../../../../../src/ta_func/ta_HT_SINE.c \ + ../../../../../src/ta_func/ta_HT_TRENDLINE.c \ + ../../../../../src/ta_func/ta_HT_TRENDMODE.c \ + ../../../../../src/ta_func/ta_KAMA.c \ + ../../../../../src/ta_func/ta_LINEARREG.c \ + ../../../../../src/ta_func/ta_LINEARREG_ANGLE.c \ + ../../../../../src/ta_func/ta_LINEARREG_INTERCEPT.c \ + ../../../../../src/ta_func/ta_LINEARREG_SLOPE.c \ + ../../../../../src/ta_func/ta_LN.c \ + ../../../../../src/ta_func/ta_LOG10.c \ + ../../../../../src/ta_func/ta_MA.c \ + ../../../../../src/ta_func/ta_MACD.c \ + ../../../../../src/ta_func/ta_MACDEXT.c \ + ../../../../../src/ta_func/ta_MACDFIX.c \ + ../../../../../src/ta_func/ta_MAMA.c \ + ../../../../../src/ta_func/ta_MAVP.c \ + ../../../../../src/ta_func/ta_MAX.c \ + ../../../../../src/ta_func/ta_MAXINDEX.c \ + ../../../../../src/ta_func/ta_MEDPRICE.c \ + ../../../../../src/ta_func/ta_MFI.c \ + ../../../../../src/ta_func/ta_MIDPOINT.c \ + ../../../../../src/ta_func/ta_MIDPRICE.c \ + ../../../../../src/ta_func/ta_MIN.c \ + ../../../../../src/ta_func/ta_MININDEX.c \ + ../../../../../src/ta_func/ta_MINMAX.c \ + ../../../../../src/ta_func/ta_MINMAXINDEX.c \ + ../../../../../src/ta_func/ta_MINUS_DI.c \ + ../../../../../src/ta_func/ta_MINUS_DM.c \ + ../../../../../src/ta_func/ta_MOM.c \ + ../../../../../src/ta_func/ta_MULT.c \ + ../../../../../src/ta_func/ta_NATR.c \ + ../../../../../src/ta_func/ta_OBV.c \ + ../../../../../src/ta_func/ta_PLUS_DI.c \ + ../../../../../src/ta_func/ta_PLUS_DM.c \ + ../../../../../src/ta_func/ta_PPO.c \ + ../../../../../src/ta_func/ta_ROC.c \ + ../../../../../src/ta_func/ta_ROCP.c \ + ../../../../../src/ta_func/ta_ROCR.c \ + ../../../../../src/ta_func/ta_ROCR100.c \ + ../../../../../src/ta_func/ta_RSI.c \ + ../../../../../src/ta_func/ta_SAR.c \ + ../../../../../src/ta_func/ta_SAREXT.c \ + ../../../../../src/ta_func/ta_SIN.c \ + ../../../../../src/ta_func/ta_SINH.c \ + ../../../../../src/ta_func/ta_SMA.c \ + ../../../../../src/ta_func/ta_SQRT.c \ + ../../../../../src/ta_func/ta_STDDEV.c \ + ../../../../../src/ta_func/ta_STOCH.c \ + ../../../../../src/ta_func/ta_STOCHF.c \ + ../../../../../src/ta_func/ta_STOCHRSI.c \ + ../../../../../src/ta_func/ta_SUB.c \ + ../../../../../src/ta_func/ta_SUM.c \ + ../../../../../src/ta_func/ta_T3.c \ + ../../../../../src/ta_func/ta_TAN.c \ + ../../../../../src/ta_func/ta_TANH.c \ + ../../../../../src/ta_func/ta_TEMA.c \ + ../../../../../src/ta_func/ta_TRANGE.c \ + ../../../../../src/ta_func/ta_TRIMA.c \ + ../../../../../src/ta_func/ta_TRIX.c \ + ../../../../../src/ta_func/ta_TSF.c \ + ../../../../../src/ta_func/ta_TYPPRICE.c \ + ../../../../../src/ta_func/ta_ULTOSC.c \ + ../../../../../src/ta_func/ta_VAR.c \ + ../../../../../src/ta_func/ta_WCLPRICE.c \ + ../../../../../src/ta_func/ta_WILLR.c \ + ../../../../../src/ta_func/ta_WMA.c +OBJECTS = ../../../../../temp/csr/ta_global.o \ + ../../../../../temp/csr/ta_retcode.o \ + ../../../../../temp/csr/ta_version.o \ + ../../../../../temp/csr/ta_abstract.o \ + ../../../../../temp/csr/ta_def_ui.o \ + ../../../../../temp/csr/ta_func_api.o \ + ../../../../../temp/csr/ta_group_idx.o \ + ../../../../../temp/csr/ta_frame.o \ + ../../../../../temp/csr/table_a.o \ + ../../../../../temp/csr/table_b.o \ + ../../../../../temp/csr/table_c.o \ + ../../../../../temp/csr/table_d.o \ + ../../../../../temp/csr/table_e.o \ + ../../../../../temp/csr/table_f.o \ + ../../../../../temp/csr/table_g.o \ + ../../../../../temp/csr/table_h.o \ + ../../../../../temp/csr/table_i.o \ + ../../../../../temp/csr/table_j.o \ + ../../../../../temp/csr/table_k.o \ + ../../../../../temp/csr/table_l.o \ + ../../../../../temp/csr/table_m.o \ + ../../../../../temp/csr/table_n.o \ + ../../../../../temp/csr/table_o.o \ + ../../../../../temp/csr/table_p.o \ + ../../../../../temp/csr/table_q.o \ + ../../../../../temp/csr/table_r.o \ + ../../../../../temp/csr/table_s.o \ + ../../../../../temp/csr/table_t.o \ + ../../../../../temp/csr/table_u.o \ + ../../../../../temp/csr/table_v.o \ + ../../../../../temp/csr/table_w.o \ + ../../../../../temp/csr/table_x.o \ + ../../../../../temp/csr/table_y.o \ + ../../../../../temp/csr/table_z.o \ + ../../../../../temp/csr/ta_utility.o \ + ../../../../../temp/csr/ta_ACOS.o \ + ../../../../../temp/csr/ta_AD.o \ + ../../../../../temp/csr/ta_ADD.o \ + ../../../../../temp/csr/ta_ADOSC.o \ + ../../../../../temp/csr/ta_ADX.o \ + ../../../../../temp/csr/ta_ADXR.o \ + ../../../../../temp/csr/ta_APO.o \ + ../../../../../temp/csr/ta_AROON.o \ + ../../../../../temp/csr/ta_AROONOSC.o \ + ../../../../../temp/csr/ta_ASIN.o \ + ../../../../../temp/csr/ta_ATAN.o \ + ../../../../../temp/csr/ta_ATR.o \ + ../../../../../temp/csr/ta_AVGPRICE.o \ + ../../../../../temp/csr/ta_BBANDS.o \ + ../../../../../temp/csr/ta_BETA.o \ + ../../../../../temp/csr/ta_BOP.o \ + ../../../../../temp/csr/ta_CCI.o \ + ../../../../../temp/csr/ta_CDL2CROWS.o \ + ../../../../../temp/csr/ta_CDL3BLACKCROWS.o \ + ../../../../../temp/csr/ta_CDL3INSIDE.o \ + ../../../../../temp/csr/ta_CDL3LINESTRIKE.o \ + ../../../../../temp/csr/ta_CDL3OUTSIDE.o \ + ../../../../../temp/csr/ta_CDL3STARSINSOUTH.o \ + ../../../../../temp/csr/ta_CDL3WHITESOLDIERS.o \ + ../../../../../temp/csr/ta_CDLABANDONEDBABY.o \ + ../../../../../temp/csr/ta_CDLADVANCEBLOCK.o \ + ../../../../../temp/csr/ta_CDLBELTHOLD.o \ + ../../../../../temp/csr/ta_CDLBREAKAWAY.o \ + ../../../../../temp/csr/ta_CDLCLOSINGMARUBOZU.o \ + ../../../../../temp/csr/ta_CDLCONCEALBABYSWALL.o \ + ../../../../../temp/csr/ta_CDLCOUNTERATTACK.o \ + ../../../../../temp/csr/ta_CDLDARKCLOUDCOVER.o \ + ../../../../../temp/csr/ta_CDLDOJI.o \ + ../../../../../temp/csr/ta_CDLDOJISTAR.o \ + ../../../../../temp/csr/ta_CDLDRAGONFLYDOJI.o \ + ../../../../../temp/csr/ta_CDLENGULFING.o \ + ../../../../../temp/csr/ta_CDLEVENINGDOJISTAR.o \ + ../../../../../temp/csr/ta_CDLEVENINGSTAR.o \ + ../../../../../temp/csr/ta_CDLGAPSIDESIDEWHITE.o \ + ../../../../../temp/csr/ta_CDLGRAVESTONEDOJI.o \ + ../../../../../temp/csr/ta_CDLHAMMER.o \ + ../../../../../temp/csr/ta_CDLHANGINGMAN.o \ + ../../../../../temp/csr/ta_CDLHARAMI.o \ + ../../../../../temp/csr/ta_CDLHARAMICROSS.o \ + ../../../../../temp/csr/ta_CDLHIGHWAVE.o \ + ../../../../../temp/csr/ta_CDLHIKKAKE.o \ + ../../../../../temp/csr/ta_CDLHIKKAKEMOD.o \ + ../../../../../temp/csr/ta_CDLHOMINGPIGEON.o \ + ../../../../../temp/csr/ta_CDLIDENTICAL3CROWS.o \ + ../../../../../temp/csr/ta_CDLINNECK.o \ + ../../../../../temp/csr/ta_CDLINVERTEDHAMMER.o \ + ../../../../../temp/csr/ta_CDLKICKING.o \ + ../../../../../temp/csr/ta_CDLKICKINGBYLENGTH.o \ + ../../../../../temp/csr/ta_CDLLADDERBOTTOM.o \ + ../../../../../temp/csr/ta_CDLLONGLEGGEDDOJI.o \ + ../../../../../temp/csr/ta_CDLLONGLINE.o \ + ../../../../../temp/csr/ta_CDLMARUBOZU.o \ + ../../../../../temp/csr/ta_CDLMATCHINGLOW.o \ + ../../../../../temp/csr/ta_CDLMATHOLD.o \ + ../../../../../temp/csr/ta_CDLMORNINGDOJISTAR.o \ + ../../../../../temp/csr/ta_CDLMORNINGSTAR.o \ + ../../../../../temp/csr/ta_CDLONNECK.o \ + ../../../../../temp/csr/ta_CDLPIERCING.o \ + ../../../../../temp/csr/ta_CDLRICKSHAWMAN.o \ + ../../../../../temp/csr/ta_CDLRISEFALL3METHODS.o \ + ../../../../../temp/csr/ta_CDLSEPARATINGLINES.o \ + ../../../../../temp/csr/ta_CDLSHOOTINGSTAR.o \ + ../../../../../temp/csr/ta_CDLSHORTLINE.o \ + ../../../../../temp/csr/ta_CDLSPINNINGTOP.o \ + ../../../../../temp/csr/ta_CDLSTALLEDPATTERN.o \ + ../../../../../temp/csr/ta_CDLSTICKSANDWICH.o \ + ../../../../../temp/csr/ta_CDLTAKURI.o \ + ../../../../../temp/csr/ta_CDLTASUKIGAP.o \ + ../../../../../temp/csr/ta_CDLTHRUSTING.o \ + ../../../../../temp/csr/ta_CDLTRISTAR.o \ + ../../../../../temp/csr/ta_CDLUNIQUE3RIVER.o \ + ../../../../../temp/csr/ta_CDLUPSIDEGAP2CROWS.o \ + ../../../../../temp/csr/ta_CDLXSIDEGAP3METHODS.o \ + ../../../../../temp/csr/ta_CEIL.o \ + ../../../../../temp/csr/ta_CMO.o \ + ../../../../../temp/csr/ta_CORREL.o \ + ../../../../../temp/csr/ta_COS.o \ + ../../../../../temp/csr/ta_COSH.o \ + ../../../../../temp/csr/ta_DEMA.o \ + ../../../../../temp/csr/ta_DIV.o \ + ../../../../../temp/csr/ta_DX.o \ + ../../../../../temp/csr/ta_EMA.o \ + ../../../../../temp/csr/ta_EXP.o \ + ../../../../../temp/csr/ta_FLOOR.o \ + ../../../../../temp/csr/ta_HT_DCPERIOD.o \ + ../../../../../temp/csr/ta_HT_DCPHASE.o \ + ../../../../../temp/csr/ta_HT_PHASOR.o \ + ../../../../../temp/csr/ta_HT_SINE.o \ + ../../../../../temp/csr/ta_HT_TRENDLINE.o \ + ../../../../../temp/csr/ta_HT_TRENDMODE.o \ + ../../../../../temp/csr/ta_KAMA.o \ + ../../../../../temp/csr/ta_LINEARREG.o \ + ../../../../../temp/csr/ta_LINEARREG_ANGLE.o \ + ../../../../../temp/csr/ta_LINEARREG_INTERCEPT.o \ + ../../../../../temp/csr/ta_LINEARREG_SLOPE.o \ + ../../../../../temp/csr/ta_LN.o \ + ../../../../../temp/csr/ta_LOG10.o \ + ../../../../../temp/csr/ta_MA.o \ + ../../../../../temp/csr/ta_MACD.o \ + ../../../../../temp/csr/ta_MACDEXT.o \ + ../../../../../temp/csr/ta_MACDFIX.o \ + ../../../../../temp/csr/ta_MAMA.o \ + ../../../../../temp/csr/ta_MAVP.o \ + ../../../../../temp/csr/ta_MAX.o \ + ../../../../../temp/csr/ta_MAXINDEX.o \ + ../../../../../temp/csr/ta_MEDPRICE.o \ + ../../../../../temp/csr/ta_MFI.o \ + ../../../../../temp/csr/ta_MIDPOINT.o \ + ../../../../../temp/csr/ta_MIDPRICE.o \ + ../../../../../temp/csr/ta_MIN.o \ + ../../../../../temp/csr/ta_MININDEX.o \ + ../../../../../temp/csr/ta_MINMAX.o \ + ../../../../../temp/csr/ta_MINMAXINDEX.o \ + ../../../../../temp/csr/ta_MINUS_DI.o \ + ../../../../../temp/csr/ta_MINUS_DM.o \ + ../../../../../temp/csr/ta_MOM.o \ + ../../../../../temp/csr/ta_MULT.o \ + ../../../../../temp/csr/ta_NATR.o \ + ../../../../../temp/csr/ta_OBV.o \ + ../../../../../temp/csr/ta_PLUS_DI.o \ + ../../../../../temp/csr/ta_PLUS_DM.o \ + ../../../../../temp/csr/ta_PPO.o \ + ../../../../../temp/csr/ta_ROC.o \ + ../../../../../temp/csr/ta_ROCP.o \ + ../../../../../temp/csr/ta_ROCR.o \ + ../../../../../temp/csr/ta_ROCR100.o \ + ../../../../../temp/csr/ta_RSI.o \ + ../../../../../temp/csr/ta_SAR.o \ + ../../../../../temp/csr/ta_SAREXT.o \ + ../../../../../temp/csr/ta_SIN.o \ + ../../../../../temp/csr/ta_SINH.o \ + ../../../../../temp/csr/ta_SMA.o \ + ../../../../../temp/csr/ta_SQRT.o \ + ../../../../../temp/csr/ta_STDDEV.o \ + ../../../../../temp/csr/ta_STOCH.o \ + ../../../../../temp/csr/ta_STOCHF.o \ + ../../../../../temp/csr/ta_STOCHRSI.o \ + ../../../../../temp/csr/ta_SUB.o \ + ../../../../../temp/csr/ta_SUM.o \ + ../../../../../temp/csr/ta_T3.o \ + ../../../../../temp/csr/ta_TAN.o \ + ../../../../../temp/csr/ta_TANH.o \ + ../../../../../temp/csr/ta_TEMA.o \ + ../../../../../temp/csr/ta_TRANGE.o \ + ../../../../../temp/csr/ta_TRIMA.o \ + ../../../../../temp/csr/ta_TRIX.o \ + ../../../../../temp/csr/ta_TSF.o \ + ../../../../../temp/csr/ta_TYPPRICE.o \ + ../../../../../temp/csr/ta_ULTOSC.o \ + ../../../../../temp/csr/ta_VAR.o \ + ../../../../../temp/csr/ta_WCLPRICE.o \ + ../../../../../temp/csr/ta_WILLR.o \ + ../../../../../temp/csr/ta_WMA.o +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ../../../../../lib/libta_libc_csr.a +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .C .c + +.cpp.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cxx.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cc.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.C.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.c.o: + $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $< + +####### Build rules + + +all: $(TARGET) + +staticlib: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + -rm -f $(TARGET) + $(AR) $(TARGET) $(OBJECTS) $(OBJMOC) + +moc: $(SRCMOC) + +clean: + -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) + -rm -f *~ core + +####### Sub-libraries + + +###### Combined headers + + +####### Compile + +../../../../../temp/csr/ta_global.o: ../../../../../src/ta_common/ta_global.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_global.o ../../../../../src/ta_common/ta_global.c + +../../../../../temp/csr/ta_retcode.o: ../../../../../src/ta_common/ta_retcode.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_retcode.o ../../../../../src/ta_common/ta_retcode.c + +../../../../../temp/csr/ta_version.o: ../../../../../src/ta_common/ta_version.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_version.o ../../../../../src/ta_common/ta_version.c + +../../../../../temp/csr/ta_abstract.o: ../../../../../src/ta_abstract/ta_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_abstract.o ../../../../../src/ta_abstract/ta_abstract.c + +../../../../../temp/csr/ta_def_ui.o: ../../../../../src/ta_abstract/ta_def_ui.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_def_ui.o ../../../../../src/ta_abstract/ta_def_ui.c + +../../../../../temp/csr/ta_func_api.o: ../../../../../src/ta_abstract/ta_func_api.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_func_api.o ../../../../../src/ta_abstract/ta_func_api.c + +../../../../../temp/csr/ta_group_idx.o: ../../../../../src/ta_abstract/ta_group_idx.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_group_idx.o ../../../../../src/ta_abstract/ta_group_idx.c + +../../../../../temp/csr/ta_frame.o: ../../../../../src/ta_abstract/frames/ta_frame.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_frame.o ../../../../../src/ta_abstract/frames/ta_frame.c + +../../../../../temp/csr/table_a.o: ../../../../../src/ta_abstract/tables/table_a.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_a.o ../../../../../src/ta_abstract/tables/table_a.c + +../../../../../temp/csr/table_b.o: ../../../../../src/ta_abstract/tables/table_b.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_b.o ../../../../../src/ta_abstract/tables/table_b.c + +../../../../../temp/csr/table_c.o: ../../../../../src/ta_abstract/tables/table_c.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_c.o ../../../../../src/ta_abstract/tables/table_c.c + +../../../../../temp/csr/table_d.o: ../../../../../src/ta_abstract/tables/table_d.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_d.o ../../../../../src/ta_abstract/tables/table_d.c + +../../../../../temp/csr/table_e.o: ../../../../../src/ta_abstract/tables/table_e.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_e.o ../../../../../src/ta_abstract/tables/table_e.c + +../../../../../temp/csr/table_f.o: ../../../../../src/ta_abstract/tables/table_f.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_f.o ../../../../../src/ta_abstract/tables/table_f.c + +../../../../../temp/csr/table_g.o: ../../../../../src/ta_abstract/tables/table_g.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_g.o ../../../../../src/ta_abstract/tables/table_g.c + +../../../../../temp/csr/table_h.o: ../../../../../src/ta_abstract/tables/table_h.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_h.o ../../../../../src/ta_abstract/tables/table_h.c + +../../../../../temp/csr/table_i.o: ../../../../../src/ta_abstract/tables/table_i.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_i.o ../../../../../src/ta_abstract/tables/table_i.c + +../../../../../temp/csr/table_j.o: ../../../../../src/ta_abstract/tables/table_j.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_j.o ../../../../../src/ta_abstract/tables/table_j.c + +../../../../../temp/csr/table_k.o: ../../../../../src/ta_abstract/tables/table_k.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_k.o ../../../../../src/ta_abstract/tables/table_k.c + +../../../../../temp/csr/table_l.o: ../../../../../src/ta_abstract/tables/table_l.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_l.o ../../../../../src/ta_abstract/tables/table_l.c + +../../../../../temp/csr/table_m.o: ../../../../../src/ta_abstract/tables/table_m.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_m.o ../../../../../src/ta_abstract/tables/table_m.c + +../../../../../temp/csr/table_n.o: ../../../../../src/ta_abstract/tables/table_n.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_n.o ../../../../../src/ta_abstract/tables/table_n.c + +../../../../../temp/csr/table_o.o: ../../../../../src/ta_abstract/tables/table_o.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_o.o ../../../../../src/ta_abstract/tables/table_o.c + +../../../../../temp/csr/table_p.o: ../../../../../src/ta_abstract/tables/table_p.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_p.o ../../../../../src/ta_abstract/tables/table_p.c + +../../../../../temp/csr/table_q.o: ../../../../../src/ta_abstract/tables/table_q.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_q.o ../../../../../src/ta_abstract/tables/table_q.c + +../../../../../temp/csr/table_r.o: ../../../../../src/ta_abstract/tables/table_r.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_r.o ../../../../../src/ta_abstract/tables/table_r.c + +../../../../../temp/csr/table_s.o: ../../../../../src/ta_abstract/tables/table_s.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_s.o ../../../../../src/ta_abstract/tables/table_s.c + +../../../../../temp/csr/table_t.o: ../../../../../src/ta_abstract/tables/table_t.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_t.o ../../../../../src/ta_abstract/tables/table_t.c + +../../../../../temp/csr/table_u.o: ../../../../../src/ta_abstract/tables/table_u.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_u.o ../../../../../src/ta_abstract/tables/table_u.c + +../../../../../temp/csr/table_v.o: ../../../../../src/ta_abstract/tables/table_v.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_v.o ../../../../../src/ta_abstract/tables/table_v.c + +../../../../../temp/csr/table_w.o: ../../../../../src/ta_abstract/tables/table_w.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_w.o ../../../../../src/ta_abstract/tables/table_w.c + +../../../../../temp/csr/table_x.o: ../../../../../src/ta_abstract/tables/table_x.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_x.o ../../../../../src/ta_abstract/tables/table_x.c + +../../../../../temp/csr/table_y.o: ../../../../../src/ta_abstract/tables/table_y.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_y.o ../../../../../src/ta_abstract/tables/table_y.c + +../../../../../temp/csr/table_z.o: ../../../../../src/ta_abstract/tables/table_z.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_z.o ../../../../../src/ta_abstract/tables/table_z.c + +../../../../../temp/csr/ta_utility.o: ../../../../../src/ta_func/ta_utility.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_utility.o ../../../../../src/ta_func/ta_utility.c + +../../../../../temp/csr/ta_ACOS.o: ../../../../../src/ta_func/ta_ACOS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_ACOS.o ../../../../../src/ta_func/ta_ACOS.c + +../../../../../temp/csr/ta_AD.o: ../../../../../src/ta_func/ta_AD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_AD.o ../../../../../src/ta_func/ta_AD.c + +../../../../../temp/csr/ta_ADD.o: ../../../../../src/ta_func/ta_ADD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_ADD.o ../../../../../src/ta_func/ta_ADD.c + +../../../../../temp/csr/ta_ADOSC.o: ../../../../../src/ta_func/ta_ADOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_ADOSC.o ../../../../../src/ta_func/ta_ADOSC.c + +../../../../../temp/csr/ta_ADX.o: ../../../../../src/ta_func/ta_ADX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_ADX.o ../../../../../src/ta_func/ta_ADX.c + +../../../../../temp/csr/ta_ADXR.o: ../../../../../src/ta_func/ta_ADXR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_ADXR.o ../../../../../src/ta_func/ta_ADXR.c + +../../../../../temp/csr/ta_APO.o: ../../../../../src/ta_func/ta_APO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_APO.o ../../../../../src/ta_func/ta_APO.c + +../../../../../temp/csr/ta_AROON.o: ../../../../../src/ta_func/ta_AROON.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_AROON.o ../../../../../src/ta_func/ta_AROON.c + +../../../../../temp/csr/ta_AROONOSC.o: ../../../../../src/ta_func/ta_AROONOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_AROONOSC.o ../../../../../src/ta_func/ta_AROONOSC.c + +../../../../../temp/csr/ta_ASIN.o: ../../../../../src/ta_func/ta_ASIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_ASIN.o ../../../../../src/ta_func/ta_ASIN.c + +../../../../../temp/csr/ta_ATAN.o: ../../../../../src/ta_func/ta_ATAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_ATAN.o ../../../../../src/ta_func/ta_ATAN.c + +../../../../../temp/csr/ta_ATR.o: ../../../../../src/ta_func/ta_ATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_ATR.o ../../../../../src/ta_func/ta_ATR.c + +../../../../../temp/csr/ta_AVGPRICE.o: ../../../../../src/ta_func/ta_AVGPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_AVGPRICE.o ../../../../../src/ta_func/ta_AVGPRICE.c + +../../../../../temp/csr/ta_BBANDS.o: ../../../../../src/ta_func/ta_BBANDS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_BBANDS.o ../../../../../src/ta_func/ta_BBANDS.c + +../../../../../temp/csr/ta_BETA.o: ../../../../../src/ta_func/ta_BETA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_BETA.o ../../../../../src/ta_func/ta_BETA.c + +../../../../../temp/csr/ta_BOP.o: ../../../../../src/ta_func/ta_BOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_BOP.o ../../../../../src/ta_func/ta_BOP.c + +../../../../../temp/csr/ta_CCI.o: ../../../../../src/ta_func/ta_CCI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CCI.o ../../../../../src/ta_func/ta_CCI.c + +../../../../../temp/csr/ta_CDL2CROWS.o: ../../../../../src/ta_func/ta_CDL2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDL2CROWS.o ../../../../../src/ta_func/ta_CDL2CROWS.c + +../../../../../temp/csr/ta_CDL3BLACKCROWS.o: ../../../../../src/ta_func/ta_CDL3BLACKCROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDL3BLACKCROWS.o ../../../../../src/ta_func/ta_CDL3BLACKCROWS.c + +../../../../../temp/csr/ta_CDL3INSIDE.o: ../../../../../src/ta_func/ta_CDL3INSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDL3INSIDE.o ../../../../../src/ta_func/ta_CDL3INSIDE.c + +../../../../../temp/csr/ta_CDL3LINESTRIKE.o: ../../../../../src/ta_func/ta_CDL3LINESTRIKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDL3LINESTRIKE.o ../../../../../src/ta_func/ta_CDL3LINESTRIKE.c + +../../../../../temp/csr/ta_CDL3OUTSIDE.o: ../../../../../src/ta_func/ta_CDL3OUTSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDL3OUTSIDE.o ../../../../../src/ta_func/ta_CDL3OUTSIDE.c + +../../../../../temp/csr/ta_CDL3STARSINSOUTH.o: ../../../../../src/ta_func/ta_CDL3STARSINSOUTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDL3STARSINSOUTH.o ../../../../../src/ta_func/ta_CDL3STARSINSOUTH.c + +../../../../../temp/csr/ta_CDL3WHITESOLDIERS.o: ../../../../../src/ta_func/ta_CDL3WHITESOLDIERS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDL3WHITESOLDIERS.o ../../../../../src/ta_func/ta_CDL3WHITESOLDIERS.c + +../../../../../temp/csr/ta_CDLABANDONEDBABY.o: ../../../../../src/ta_func/ta_CDLABANDONEDBABY.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLABANDONEDBABY.o ../../../../../src/ta_func/ta_CDLABANDONEDBABY.c + +../../../../../temp/csr/ta_CDLADVANCEBLOCK.o: ../../../../../src/ta_func/ta_CDLADVANCEBLOCK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLADVANCEBLOCK.o ../../../../../src/ta_func/ta_CDLADVANCEBLOCK.c + +../../../../../temp/csr/ta_CDLBELTHOLD.o: ../../../../../src/ta_func/ta_CDLBELTHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLBELTHOLD.o ../../../../../src/ta_func/ta_CDLBELTHOLD.c + +../../../../../temp/csr/ta_CDLBREAKAWAY.o: ../../../../../src/ta_func/ta_CDLBREAKAWAY.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLBREAKAWAY.o ../../../../../src/ta_func/ta_CDLBREAKAWAY.c + +../../../../../temp/csr/ta_CDLCLOSINGMARUBOZU.o: ../../../../../src/ta_func/ta_CDLCLOSINGMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLCLOSINGMARUBOZU.o ../../../../../src/ta_func/ta_CDLCLOSINGMARUBOZU.c + +../../../../../temp/csr/ta_CDLCONCEALBABYSWALL.o: ../../../../../src/ta_func/ta_CDLCONCEALBABYSWALL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLCONCEALBABYSWALL.o ../../../../../src/ta_func/ta_CDLCONCEALBABYSWALL.c + +../../../../../temp/csr/ta_CDLCOUNTERATTACK.o: ../../../../../src/ta_func/ta_CDLCOUNTERATTACK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLCOUNTERATTACK.o ../../../../../src/ta_func/ta_CDLCOUNTERATTACK.c + +../../../../../temp/csr/ta_CDLDARKCLOUDCOVER.o: ../../../../../src/ta_func/ta_CDLDARKCLOUDCOVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLDARKCLOUDCOVER.o ../../../../../src/ta_func/ta_CDLDARKCLOUDCOVER.c + +../../../../../temp/csr/ta_CDLDOJI.o: ../../../../../src/ta_func/ta_CDLDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLDOJI.o ../../../../../src/ta_func/ta_CDLDOJI.c + +../../../../../temp/csr/ta_CDLDOJISTAR.o: ../../../../../src/ta_func/ta_CDLDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLDOJISTAR.o ../../../../../src/ta_func/ta_CDLDOJISTAR.c + +../../../../../temp/csr/ta_CDLDRAGONFLYDOJI.o: ../../../../../src/ta_func/ta_CDLDRAGONFLYDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLDRAGONFLYDOJI.o ../../../../../src/ta_func/ta_CDLDRAGONFLYDOJI.c + +../../../../../temp/csr/ta_CDLENGULFING.o: ../../../../../src/ta_func/ta_CDLENGULFING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLENGULFING.o ../../../../../src/ta_func/ta_CDLENGULFING.c + +../../../../../temp/csr/ta_CDLEVENINGDOJISTAR.o: ../../../../../src/ta_func/ta_CDLEVENINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLEVENINGDOJISTAR.o ../../../../../src/ta_func/ta_CDLEVENINGDOJISTAR.c + +../../../../../temp/csr/ta_CDLEVENINGSTAR.o: ../../../../../src/ta_func/ta_CDLEVENINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLEVENINGSTAR.o ../../../../../src/ta_func/ta_CDLEVENINGSTAR.c + +../../../../../temp/csr/ta_CDLGAPSIDESIDEWHITE.o: ../../../../../src/ta_func/ta_CDLGAPSIDESIDEWHITE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLGAPSIDESIDEWHITE.o ../../../../../src/ta_func/ta_CDLGAPSIDESIDEWHITE.c + +../../../../../temp/csr/ta_CDLGRAVESTONEDOJI.o: ../../../../../src/ta_func/ta_CDLGRAVESTONEDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLGRAVESTONEDOJI.o ../../../../../src/ta_func/ta_CDLGRAVESTONEDOJI.c + +../../../../../temp/csr/ta_CDLHAMMER.o: ../../../../../src/ta_func/ta_CDLHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLHAMMER.o ../../../../../src/ta_func/ta_CDLHAMMER.c + +../../../../../temp/csr/ta_CDLHANGINGMAN.o: ../../../../../src/ta_func/ta_CDLHANGINGMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLHANGINGMAN.o ../../../../../src/ta_func/ta_CDLHANGINGMAN.c + +../../../../../temp/csr/ta_CDLHARAMI.o: ../../../../../src/ta_func/ta_CDLHARAMI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLHARAMI.o ../../../../../src/ta_func/ta_CDLHARAMI.c + +../../../../../temp/csr/ta_CDLHARAMICROSS.o: ../../../../../src/ta_func/ta_CDLHARAMICROSS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLHARAMICROSS.o ../../../../../src/ta_func/ta_CDLHARAMICROSS.c + +../../../../../temp/csr/ta_CDLHIGHWAVE.o: ../../../../../src/ta_func/ta_CDLHIGHWAVE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLHIGHWAVE.o ../../../../../src/ta_func/ta_CDLHIGHWAVE.c + +../../../../../temp/csr/ta_CDLHIKKAKE.o: ../../../../../src/ta_func/ta_CDLHIKKAKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLHIKKAKE.o ../../../../../src/ta_func/ta_CDLHIKKAKE.c + +../../../../../temp/csr/ta_CDLHIKKAKEMOD.o: ../../../../../src/ta_func/ta_CDLHIKKAKEMOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLHIKKAKEMOD.o ../../../../../src/ta_func/ta_CDLHIKKAKEMOD.c + +../../../../../temp/csr/ta_CDLHOMINGPIGEON.o: ../../../../../src/ta_func/ta_CDLHOMINGPIGEON.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLHOMINGPIGEON.o ../../../../../src/ta_func/ta_CDLHOMINGPIGEON.c + +../../../../../temp/csr/ta_CDLIDENTICAL3CROWS.o: ../../../../../src/ta_func/ta_CDLIDENTICAL3CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLIDENTICAL3CROWS.o ../../../../../src/ta_func/ta_CDLIDENTICAL3CROWS.c + +../../../../../temp/csr/ta_CDLINNECK.o: ../../../../../src/ta_func/ta_CDLINNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLINNECK.o ../../../../../src/ta_func/ta_CDLINNECK.c + +../../../../../temp/csr/ta_CDLINVERTEDHAMMER.o: ../../../../../src/ta_func/ta_CDLINVERTEDHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLINVERTEDHAMMER.o ../../../../../src/ta_func/ta_CDLINVERTEDHAMMER.c + +../../../../../temp/csr/ta_CDLKICKING.o: ../../../../../src/ta_func/ta_CDLKICKING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLKICKING.o ../../../../../src/ta_func/ta_CDLKICKING.c + +../../../../../temp/csr/ta_CDLKICKINGBYLENGTH.o: ../../../../../src/ta_func/ta_CDLKICKINGBYLENGTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLKICKINGBYLENGTH.o ../../../../../src/ta_func/ta_CDLKICKINGBYLENGTH.c + +../../../../../temp/csr/ta_CDLLADDERBOTTOM.o: ../../../../../src/ta_func/ta_CDLLADDERBOTTOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLLADDERBOTTOM.o ../../../../../src/ta_func/ta_CDLLADDERBOTTOM.c + +../../../../../temp/csr/ta_CDLLONGLEGGEDDOJI.o: ../../../../../src/ta_func/ta_CDLLONGLEGGEDDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLLONGLEGGEDDOJI.o ../../../../../src/ta_func/ta_CDLLONGLEGGEDDOJI.c + +../../../../../temp/csr/ta_CDLLONGLINE.o: ../../../../../src/ta_func/ta_CDLLONGLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLLONGLINE.o ../../../../../src/ta_func/ta_CDLLONGLINE.c + +../../../../../temp/csr/ta_CDLMARUBOZU.o: ../../../../../src/ta_func/ta_CDLMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLMARUBOZU.o ../../../../../src/ta_func/ta_CDLMARUBOZU.c + +../../../../../temp/csr/ta_CDLMATCHINGLOW.o: ../../../../../src/ta_func/ta_CDLMATCHINGLOW.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLMATCHINGLOW.o ../../../../../src/ta_func/ta_CDLMATCHINGLOW.c + +../../../../../temp/csr/ta_CDLMATHOLD.o: ../../../../../src/ta_func/ta_CDLMATHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLMATHOLD.o ../../../../../src/ta_func/ta_CDLMATHOLD.c + +../../../../../temp/csr/ta_CDLMORNINGDOJISTAR.o: ../../../../../src/ta_func/ta_CDLMORNINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLMORNINGDOJISTAR.o ../../../../../src/ta_func/ta_CDLMORNINGDOJISTAR.c + +../../../../../temp/csr/ta_CDLMORNINGSTAR.o: ../../../../../src/ta_func/ta_CDLMORNINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLMORNINGSTAR.o ../../../../../src/ta_func/ta_CDLMORNINGSTAR.c + +../../../../../temp/csr/ta_CDLONNECK.o: ../../../../../src/ta_func/ta_CDLONNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLONNECK.o ../../../../../src/ta_func/ta_CDLONNECK.c + +../../../../../temp/csr/ta_CDLPIERCING.o: ../../../../../src/ta_func/ta_CDLPIERCING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLPIERCING.o ../../../../../src/ta_func/ta_CDLPIERCING.c + +../../../../../temp/csr/ta_CDLRICKSHAWMAN.o: ../../../../../src/ta_func/ta_CDLRICKSHAWMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLRICKSHAWMAN.o ../../../../../src/ta_func/ta_CDLRICKSHAWMAN.c + +../../../../../temp/csr/ta_CDLRISEFALL3METHODS.o: ../../../../../src/ta_func/ta_CDLRISEFALL3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLRISEFALL3METHODS.o ../../../../../src/ta_func/ta_CDLRISEFALL3METHODS.c + +../../../../../temp/csr/ta_CDLSEPARATINGLINES.o: ../../../../../src/ta_func/ta_CDLSEPARATINGLINES.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLSEPARATINGLINES.o ../../../../../src/ta_func/ta_CDLSEPARATINGLINES.c + +../../../../../temp/csr/ta_CDLSHOOTINGSTAR.o: ../../../../../src/ta_func/ta_CDLSHOOTINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLSHOOTINGSTAR.o ../../../../../src/ta_func/ta_CDLSHOOTINGSTAR.c + +../../../../../temp/csr/ta_CDLSHORTLINE.o: ../../../../../src/ta_func/ta_CDLSHORTLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLSHORTLINE.o ../../../../../src/ta_func/ta_CDLSHORTLINE.c + +../../../../../temp/csr/ta_CDLSPINNINGTOP.o: ../../../../../src/ta_func/ta_CDLSPINNINGTOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLSPINNINGTOP.o ../../../../../src/ta_func/ta_CDLSPINNINGTOP.c + +../../../../../temp/csr/ta_CDLSTALLEDPATTERN.o: ../../../../../src/ta_func/ta_CDLSTALLEDPATTERN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLSTALLEDPATTERN.o ../../../../../src/ta_func/ta_CDLSTALLEDPATTERN.c + +../../../../../temp/csr/ta_CDLSTICKSANDWICH.o: ../../../../../src/ta_func/ta_CDLSTICKSANDWICH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLSTICKSANDWICH.o ../../../../../src/ta_func/ta_CDLSTICKSANDWICH.c + +../../../../../temp/csr/ta_CDLTAKURI.o: ../../../../../src/ta_func/ta_CDLTAKURI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLTAKURI.o ../../../../../src/ta_func/ta_CDLTAKURI.c + +../../../../../temp/csr/ta_CDLTASUKIGAP.o: ../../../../../src/ta_func/ta_CDLTASUKIGAP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLTASUKIGAP.o ../../../../../src/ta_func/ta_CDLTASUKIGAP.c + +../../../../../temp/csr/ta_CDLTHRUSTING.o: ../../../../../src/ta_func/ta_CDLTHRUSTING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLTHRUSTING.o ../../../../../src/ta_func/ta_CDLTHRUSTING.c + +../../../../../temp/csr/ta_CDLTRISTAR.o: ../../../../../src/ta_func/ta_CDLTRISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLTRISTAR.o ../../../../../src/ta_func/ta_CDLTRISTAR.c + +../../../../../temp/csr/ta_CDLUNIQUE3RIVER.o: ../../../../../src/ta_func/ta_CDLUNIQUE3RIVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLUNIQUE3RIVER.o ../../../../../src/ta_func/ta_CDLUNIQUE3RIVER.c + +../../../../../temp/csr/ta_CDLUPSIDEGAP2CROWS.o: ../../../../../src/ta_func/ta_CDLUPSIDEGAP2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLUPSIDEGAP2CROWS.o ../../../../../src/ta_func/ta_CDLUPSIDEGAP2CROWS.c + +../../../../../temp/csr/ta_CDLXSIDEGAP3METHODS.o: ../../../../../src/ta_func/ta_CDLXSIDEGAP3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLXSIDEGAP3METHODS.o ../../../../../src/ta_func/ta_CDLXSIDEGAP3METHODS.c + +../../../../../temp/csr/ta_CEIL.o: ../../../../../src/ta_func/ta_CEIL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CEIL.o ../../../../../src/ta_func/ta_CEIL.c + +../../../../../temp/csr/ta_CMO.o: ../../../../../src/ta_func/ta_CMO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CMO.o ../../../../../src/ta_func/ta_CMO.c + +../../../../../temp/csr/ta_CORREL.o: ../../../../../src/ta_func/ta_CORREL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CORREL.o ../../../../../src/ta_func/ta_CORREL.c + +../../../../../temp/csr/ta_COS.o: ../../../../../src/ta_func/ta_COS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_COS.o ../../../../../src/ta_func/ta_COS.c + +../../../../../temp/csr/ta_COSH.o: ../../../../../src/ta_func/ta_COSH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_COSH.o ../../../../../src/ta_func/ta_COSH.c + +../../../../../temp/csr/ta_DEMA.o: ../../../../../src/ta_func/ta_DEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_DEMA.o ../../../../../src/ta_func/ta_DEMA.c + +../../../../../temp/csr/ta_DIV.o: ../../../../../src/ta_func/ta_DIV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_DIV.o ../../../../../src/ta_func/ta_DIV.c + +../../../../../temp/csr/ta_DX.o: ../../../../../src/ta_func/ta_DX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_DX.o ../../../../../src/ta_func/ta_DX.c + +../../../../../temp/csr/ta_EMA.o: ../../../../../src/ta_func/ta_EMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_EMA.o ../../../../../src/ta_func/ta_EMA.c + +../../../../../temp/csr/ta_EXP.o: ../../../../../src/ta_func/ta_EXP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_EXP.o ../../../../../src/ta_func/ta_EXP.c + +../../../../../temp/csr/ta_FLOOR.o: ../../../../../src/ta_func/ta_FLOOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_FLOOR.o ../../../../../src/ta_func/ta_FLOOR.c + +../../../../../temp/csr/ta_HT_DCPERIOD.o: ../../../../../src/ta_func/ta_HT_DCPERIOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_HT_DCPERIOD.o ../../../../../src/ta_func/ta_HT_DCPERIOD.c + +../../../../../temp/csr/ta_HT_DCPHASE.o: ../../../../../src/ta_func/ta_HT_DCPHASE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_HT_DCPHASE.o ../../../../../src/ta_func/ta_HT_DCPHASE.c + +../../../../../temp/csr/ta_HT_PHASOR.o: ../../../../../src/ta_func/ta_HT_PHASOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_HT_PHASOR.o ../../../../../src/ta_func/ta_HT_PHASOR.c + +../../../../../temp/csr/ta_HT_SINE.o: ../../../../../src/ta_func/ta_HT_SINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_HT_SINE.o ../../../../../src/ta_func/ta_HT_SINE.c + +../../../../../temp/csr/ta_HT_TRENDLINE.o: ../../../../../src/ta_func/ta_HT_TRENDLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_HT_TRENDLINE.o ../../../../../src/ta_func/ta_HT_TRENDLINE.c + +../../../../../temp/csr/ta_HT_TRENDMODE.o: ../../../../../src/ta_func/ta_HT_TRENDMODE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_HT_TRENDMODE.o ../../../../../src/ta_func/ta_HT_TRENDMODE.c + +../../../../../temp/csr/ta_KAMA.o: ../../../../../src/ta_func/ta_KAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_KAMA.o ../../../../../src/ta_func/ta_KAMA.c + +../../../../../temp/csr/ta_LINEARREG.o: ../../../../../src/ta_func/ta_LINEARREG.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_LINEARREG.o ../../../../../src/ta_func/ta_LINEARREG.c + +../../../../../temp/csr/ta_LINEARREG_ANGLE.o: ../../../../../src/ta_func/ta_LINEARREG_ANGLE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_LINEARREG_ANGLE.o ../../../../../src/ta_func/ta_LINEARREG_ANGLE.c + +../../../../../temp/csr/ta_LINEARREG_INTERCEPT.o: ../../../../../src/ta_func/ta_LINEARREG_INTERCEPT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_LINEARREG_INTERCEPT.o ../../../../../src/ta_func/ta_LINEARREG_INTERCEPT.c + +../../../../../temp/csr/ta_LINEARREG_SLOPE.o: ../../../../../src/ta_func/ta_LINEARREG_SLOPE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_LINEARREG_SLOPE.o ../../../../../src/ta_func/ta_LINEARREG_SLOPE.c + +../../../../../temp/csr/ta_LN.o: ../../../../../src/ta_func/ta_LN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_LN.o ../../../../../src/ta_func/ta_LN.c + +../../../../../temp/csr/ta_LOG10.o: ../../../../../src/ta_func/ta_LOG10.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_LOG10.o ../../../../../src/ta_func/ta_LOG10.c + +../../../../../temp/csr/ta_MA.o: ../../../../../src/ta_func/ta_MA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_MA.o ../../../../../src/ta_func/ta_MA.c + +../../../../../temp/csr/ta_MACD.o: ../../../../../src/ta_func/ta_MACD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_MACD.o ../../../../../src/ta_func/ta_MACD.c + +../../../../../temp/csr/ta_MACDEXT.o: ../../../../../src/ta_func/ta_MACDEXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_MACDEXT.o ../../../../../src/ta_func/ta_MACDEXT.c + +../../../../../temp/csr/ta_MACDFIX.o: ../../../../../src/ta_func/ta_MACDFIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_MACDFIX.o ../../../../../src/ta_func/ta_MACDFIX.c + +../../../../../temp/csr/ta_MAMA.o: ../../../../../src/ta_func/ta_MAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_MAMA.o ../../../../../src/ta_func/ta_MAMA.c + +../../../../../temp/csr/ta_MAVP.o: ../../../../../src/ta_func/ta_MAVP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_MAVP.o ../../../../../src/ta_func/ta_MAVP.c + +../../../../../temp/csr/ta_MAX.o: ../../../../../src/ta_func/ta_MAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_MAX.o ../../../../../src/ta_func/ta_MAX.c + +../../../../../temp/csr/ta_MAXINDEX.o: ../../../../../src/ta_func/ta_MAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_MAXINDEX.o ../../../../../src/ta_func/ta_MAXINDEX.c + +../../../../../temp/csr/ta_MEDPRICE.o: ../../../../../src/ta_func/ta_MEDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_MEDPRICE.o ../../../../../src/ta_func/ta_MEDPRICE.c + +../../../../../temp/csr/ta_MFI.o: ../../../../../src/ta_func/ta_MFI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_MFI.o ../../../../../src/ta_func/ta_MFI.c + +../../../../../temp/csr/ta_MIDPOINT.o: ../../../../../src/ta_func/ta_MIDPOINT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_MIDPOINT.o ../../../../../src/ta_func/ta_MIDPOINT.c + +../../../../../temp/csr/ta_MIDPRICE.o: ../../../../../src/ta_func/ta_MIDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_MIDPRICE.o ../../../../../src/ta_func/ta_MIDPRICE.c + +../../../../../temp/csr/ta_MIN.o: ../../../../../src/ta_func/ta_MIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_MIN.o ../../../../../src/ta_func/ta_MIN.c + +../../../../../temp/csr/ta_MININDEX.o: ../../../../../src/ta_func/ta_MININDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_MININDEX.o ../../../../../src/ta_func/ta_MININDEX.c + +../../../../../temp/csr/ta_MINMAX.o: ../../../../../src/ta_func/ta_MINMAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_MINMAX.o ../../../../../src/ta_func/ta_MINMAX.c + +../../../../../temp/csr/ta_MINMAXINDEX.o: ../../../../../src/ta_func/ta_MINMAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_MINMAXINDEX.o ../../../../../src/ta_func/ta_MINMAXINDEX.c + +../../../../../temp/csr/ta_MINUS_DI.o: ../../../../../src/ta_func/ta_MINUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_MINUS_DI.o ../../../../../src/ta_func/ta_MINUS_DI.c + +../../../../../temp/csr/ta_MINUS_DM.o: ../../../../../src/ta_func/ta_MINUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_MINUS_DM.o ../../../../../src/ta_func/ta_MINUS_DM.c + +../../../../../temp/csr/ta_MOM.o: ../../../../../src/ta_func/ta_MOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_MOM.o ../../../../../src/ta_func/ta_MOM.c + +../../../../../temp/csr/ta_MULT.o: ../../../../../src/ta_func/ta_MULT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_MULT.o ../../../../../src/ta_func/ta_MULT.c + +../../../../../temp/csr/ta_NATR.o: ../../../../../src/ta_func/ta_NATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_NATR.o ../../../../../src/ta_func/ta_NATR.c + +../../../../../temp/csr/ta_OBV.o: ../../../../../src/ta_func/ta_OBV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_OBV.o ../../../../../src/ta_func/ta_OBV.c + +../../../../../temp/csr/ta_PLUS_DI.o: ../../../../../src/ta_func/ta_PLUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_PLUS_DI.o ../../../../../src/ta_func/ta_PLUS_DI.c + +../../../../../temp/csr/ta_PLUS_DM.o: ../../../../../src/ta_func/ta_PLUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_PLUS_DM.o ../../../../../src/ta_func/ta_PLUS_DM.c + +../../../../../temp/csr/ta_PPO.o: ../../../../../src/ta_func/ta_PPO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_PPO.o ../../../../../src/ta_func/ta_PPO.c + +../../../../../temp/csr/ta_ROC.o: ../../../../../src/ta_func/ta_ROC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_ROC.o ../../../../../src/ta_func/ta_ROC.c + +../../../../../temp/csr/ta_ROCP.o: ../../../../../src/ta_func/ta_ROCP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_ROCP.o ../../../../../src/ta_func/ta_ROCP.c + +../../../../../temp/csr/ta_ROCR.o: ../../../../../src/ta_func/ta_ROCR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_ROCR.o ../../../../../src/ta_func/ta_ROCR.c + +../../../../../temp/csr/ta_ROCR100.o: ../../../../../src/ta_func/ta_ROCR100.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_ROCR100.o ../../../../../src/ta_func/ta_ROCR100.c + +../../../../../temp/csr/ta_RSI.o: ../../../../../src/ta_func/ta_RSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_RSI.o ../../../../../src/ta_func/ta_RSI.c + +../../../../../temp/csr/ta_SAR.o: ../../../../../src/ta_func/ta_SAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_SAR.o ../../../../../src/ta_func/ta_SAR.c + +../../../../../temp/csr/ta_SAREXT.o: ../../../../../src/ta_func/ta_SAREXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_SAREXT.o ../../../../../src/ta_func/ta_SAREXT.c + +../../../../../temp/csr/ta_SIN.o: ../../../../../src/ta_func/ta_SIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_SIN.o ../../../../../src/ta_func/ta_SIN.c + +../../../../../temp/csr/ta_SINH.o: ../../../../../src/ta_func/ta_SINH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_SINH.o ../../../../../src/ta_func/ta_SINH.c + +../../../../../temp/csr/ta_SMA.o: ../../../../../src/ta_func/ta_SMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_SMA.o ../../../../../src/ta_func/ta_SMA.c + +../../../../../temp/csr/ta_SQRT.o: ../../../../../src/ta_func/ta_SQRT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_SQRT.o ../../../../../src/ta_func/ta_SQRT.c + +../../../../../temp/csr/ta_STDDEV.o: ../../../../../src/ta_func/ta_STDDEV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_STDDEV.o ../../../../../src/ta_func/ta_STDDEV.c + +../../../../../temp/csr/ta_STOCH.o: ../../../../../src/ta_func/ta_STOCH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_STOCH.o ../../../../../src/ta_func/ta_STOCH.c + +../../../../../temp/csr/ta_STOCHF.o: ../../../../../src/ta_func/ta_STOCHF.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_STOCHF.o ../../../../../src/ta_func/ta_STOCHF.c + +../../../../../temp/csr/ta_STOCHRSI.o: ../../../../../src/ta_func/ta_STOCHRSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_STOCHRSI.o ../../../../../src/ta_func/ta_STOCHRSI.c + +../../../../../temp/csr/ta_SUB.o: ../../../../../src/ta_func/ta_SUB.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_SUB.o ../../../../../src/ta_func/ta_SUB.c + +../../../../../temp/csr/ta_SUM.o: ../../../../../src/ta_func/ta_SUM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_SUM.o ../../../../../src/ta_func/ta_SUM.c + +../../../../../temp/csr/ta_T3.o: ../../../../../src/ta_func/ta_T3.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_T3.o ../../../../../src/ta_func/ta_T3.c + +../../../../../temp/csr/ta_TAN.o: ../../../../../src/ta_func/ta_TAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_TAN.o ../../../../../src/ta_func/ta_TAN.c + +../../../../../temp/csr/ta_TANH.o: ../../../../../src/ta_func/ta_TANH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_TANH.o ../../../../../src/ta_func/ta_TANH.c + +../../../../../temp/csr/ta_TEMA.o: ../../../../../src/ta_func/ta_TEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_TEMA.o ../../../../../src/ta_func/ta_TEMA.c + +../../../../../temp/csr/ta_TRANGE.o: ../../../../../src/ta_func/ta_TRANGE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_TRANGE.o ../../../../../src/ta_func/ta_TRANGE.c + +../../../../../temp/csr/ta_TRIMA.o: ../../../../../src/ta_func/ta_TRIMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_TRIMA.o ../../../../../src/ta_func/ta_TRIMA.c + +../../../../../temp/csr/ta_TRIX.o: ../../../../../src/ta_func/ta_TRIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_TRIX.o ../../../../../src/ta_func/ta_TRIX.c + +../../../../../temp/csr/ta_TSF.o: ../../../../../src/ta_func/ta_TSF.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_TSF.o ../../../../../src/ta_func/ta_TSF.c + +../../../../../temp/csr/ta_TYPPRICE.o: ../../../../../src/ta_func/ta_TYPPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_TYPPRICE.o ../../../../../src/ta_func/ta_TYPPRICE.c + +../../../../../temp/csr/ta_ULTOSC.o: ../../../../../src/ta_func/ta_ULTOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_ULTOSC.o ../../../../../src/ta_func/ta_ULTOSC.c + +../../../../../temp/csr/ta_VAR.o: ../../../../../src/ta_func/ta_VAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_VAR.o ../../../../../src/ta_func/ta_VAR.c + +../../../../../temp/csr/ta_WCLPRICE.o: ../../../../../src/ta_func/ta_WCLPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_WCLPRICE.o ../../../../../src/ta_func/ta_WCLPRICE.c + +../../../../../temp/csr/ta_WILLR.o: ../../../../../src/ta_func/ta_WILLR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_WILLR.o ../../../../../src/ta_func/ta_WILLR.c + +../../../../../temp/csr/ta_WMA.o: ../../../../../src/ta_func/ta_WMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_WMA.o ../../../../../src/ta_func/ta_WMA.c + diff --git a/make/csr/cygwin/g++/ta_regtest/Makefile b/make/csr/cygwin/g++/ta_regtest/Makefile new file mode 100644 index 000000000..3692683d9 --- /dev/null +++ b/make/csr/cygwin/g++/ta_regtest/Makefile @@ -0,0 +1,211 @@ +############################################################################# +# Makefile for building ../../../../../bin/ta_regtest +# Generated by tmake; +# Project: ta_regtest/ta_regtest +# Template: app +############################################################################# + +####### Compiler, tools and options + +CC = gcc +CXX = g++ +CFLAGS = -pipe -Wall -W -O2 -fno-strict-aliasing -DTA_SINGLE_THREAD +CXXFLAGS= -pipe -Wall -W -O2 -fno-strict-aliasing -DTA_SINGLE_THREAD +INCPATH = -I../../../../../src/ta_common -I../../../../../src/tools/ta_regtest -I../../../../../src/ta_func -I../../../../../include +LINK = g++ +LFLAGS = +LIBS = $(SUBLIBS) ../../../../../lib/libta_libc_csr.a +MOC = $(QTDIR)/bin/moc +UIC = $(QTDIR)/bin/uic + +TAR = tar -cf +GZIP = gzip -9f + +####### Support for 64-bit systems +ifeq ($(shell uname -m), x86_64) + CFLAGS += -march=x86-64 -m64 -D__64BIT__ + CXXFLAGS += -march=x86-64 -m64 -D__64BIT__ +endif + +####### Apply additional overruling user flags, if any +CFLAGS += $(CUSERFLAGS) +CXXFLAGS += $(CUSERFLAGS) + +####### Files + +HEADERS = +SOURCES = ../../../../../src/tools/ta_regtest/ta_regtest.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_candlestick.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_1in_1out.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_1in_2out.c \ + ../../../../../src/tools/ta_regtest/test_internals.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_adx.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_bbands.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_ma.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_macd.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_minmax.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_mom.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_per_ema.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hl.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hlc.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hlcv.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_per_ohlc.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_po.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_rsi.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_sar.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_stddev.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_stoch.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_trange.c \ + ../../../../../src/tools/ta_regtest/test_util.c \ + ../../../../../src/tools/ta_regtest/test_data.c \ + ../../../../../src/tools/ta_regtest/test_abstract.c +OBJECTS = ../../../../../temp/csr/ta_regtest.o \ + ../../../../../temp/csr/test_candlestick.o \ + ../../../../../temp/csr/test_1in_1out.o \ + ../../../../../temp/csr/test_1in_2out.o \ + ../../../../../temp/csr/test_internals.o \ + ../../../../../temp/csr/test_adx.o \ + ../../../../../temp/csr/test_bbands.o \ + ../../../../../temp/csr/test_ma.o \ + ../../../../../temp/csr/test_macd.o \ + ../../../../../temp/csr/test_minmax.o \ + ../../../../../temp/csr/test_mom.o \ + ../../../../../temp/csr/test_per_ema.o \ + ../../../../../temp/csr/test_per_hl.o \ + ../../../../../temp/csr/test_per_hlc.o \ + ../../../../../temp/csr/test_per_hlcv.o \ + ../../../../../temp/csr/test_per_ohlc.o \ + ../../../../../temp/csr/test_po.o \ + ../../../../../temp/csr/test_rsi.o \ + ../../../../../temp/csr/test_sar.o \ + ../../../../../temp/csr/test_stddev.o \ + ../../../../../temp/csr/test_stoch.o \ + ../../../../../temp/csr/test_trange.o \ + ../../../../../temp/csr/test_util.o \ + ../../../../../temp/csr/test_data.o \ + ../../../../../temp/csr/test_abstract.o +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ../../../../../bin/ta_regtest +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .C .c + +.cpp.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cxx.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cc.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.C.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.c.o: + $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $< + +####### Build rules + + +all: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS) + +moc: $(SRCMOC) + +clean: + -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) + -rm -f *~ core + +####### Sub-libraries + + +###### Combined headers + + +####### Compile + +../../../../../temp/csr/ta_regtest.o: ../../../../../src/tools/ta_regtest/ta_regtest.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_regtest.o ../../../../../src/tools/ta_regtest/ta_regtest.c + +../../../../../temp/csr/test_candlestick.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_candlestick.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/test_candlestick.o ../../../../../src/tools/ta_regtest/ta_test_func/test_candlestick.c + +../../../../../temp/csr/test_1in_1out.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_1in_1out.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/test_1in_1out.o ../../../../../src/tools/ta_regtest/ta_test_func/test_1in_1out.c + +../../../../../temp/csr/test_1in_2out.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_1in_2out.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/test_1in_2out.o ../../../../../src/tools/ta_regtest/ta_test_func/test_1in_2out.c + +../../../../../temp/csr/test_internals.o: ../../../../../src/tools/ta_regtest/test_internals.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/test_internals.o ../../../../../src/tools/ta_regtest/test_internals.c + +../../../../../temp/csr/test_adx.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_adx.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/test_adx.o ../../../../../src/tools/ta_regtest/ta_test_func/test_adx.c + +../../../../../temp/csr/test_bbands.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_bbands.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/test_bbands.o ../../../../../src/tools/ta_regtest/ta_test_func/test_bbands.c + +../../../../../temp/csr/test_ma.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_ma.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/test_ma.o ../../../../../src/tools/ta_regtest/ta_test_func/test_ma.c + +../../../../../temp/csr/test_macd.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_macd.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/test_macd.o ../../../../../src/tools/ta_regtest/ta_test_func/test_macd.c + +../../../../../temp/csr/test_minmax.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_minmax.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/test_minmax.o ../../../../../src/tools/ta_regtest/ta_test_func/test_minmax.c + +../../../../../temp/csr/test_mom.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_mom.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/test_mom.o ../../../../../src/tools/ta_regtest/ta_test_func/test_mom.c + +../../../../../temp/csr/test_per_ema.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_per_ema.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/test_per_ema.o ../../../../../src/tools/ta_regtest/ta_test_func/test_per_ema.c + +../../../../../temp/csr/test_per_hl.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hl.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/test_per_hl.o ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hl.c + +../../../../../temp/csr/test_per_hlc.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hlc.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/test_per_hlc.o ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hlc.c + +../../../../../temp/csr/test_per_hlcv.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hlcv.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/test_per_hlcv.o ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hlcv.c + +../../../../../temp/csr/test_per_ohlc.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_per_ohlc.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/test_per_ohlc.o ../../../../../src/tools/ta_regtest/ta_test_func/test_per_ohlc.c + +../../../../../temp/csr/test_po.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_po.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/test_po.o ../../../../../src/tools/ta_regtest/ta_test_func/test_po.c + +../../../../../temp/csr/test_rsi.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_rsi.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/test_rsi.o ../../../../../src/tools/ta_regtest/ta_test_func/test_rsi.c + +../../../../../temp/csr/test_sar.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_sar.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/test_sar.o ../../../../../src/tools/ta_regtest/ta_test_func/test_sar.c + +../../../../../temp/csr/test_stddev.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_stddev.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/test_stddev.o ../../../../../src/tools/ta_regtest/ta_test_func/test_stddev.c + +../../../../../temp/csr/test_stoch.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_stoch.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/test_stoch.o ../../../../../src/tools/ta_regtest/ta_test_func/test_stoch.c + +../../../../../temp/csr/test_trange.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_trange.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/test_trange.o ../../../../../src/tools/ta_regtest/ta_test_func/test_trange.c + +../../../../../temp/csr/test_util.o: ../../../../../src/tools/ta_regtest/test_util.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/test_util.o ../../../../../src/tools/ta_regtest/test_util.c + +../../../../../temp/csr/test_data.o: ../../../../../src/tools/ta_regtest/test_data.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/test_data.o ../../../../../src/tools/ta_regtest/test_data.c + +../../../../../temp/csr/test_abstract.o: ../../../../../src/tools/ta_regtest/test_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/test_abstract.o ../../../../../src/tools/ta_regtest/test_abstract.c + diff --git a/make/csr/freebsd/g++/Makefile b/make/csr/freebsd/g++/Makefile new file mode 100644 index 000000000..b07e03f6a --- /dev/null +++ b/make/csr/freebsd/g++/Makefile @@ -0,0 +1,36 @@ +############################################################################# +# Makefile for building targets in sub directories. +# Generated by tmake; +# Project: rootmake +# Template: subdirs +############################################################################# + +MAKEFILE= Makefile +TMAKE = tmake + +SUBDIRS = ta_common \ + ta_func \ + ta_abstract \ + ta_libc \ + gen_code \ + ta_regtest + +all: $(SUBDIRS) + +$(SUBDIRS): FORCE + cd $@; $(MAKE) + +tmake: ../csr/freebsd/g++/Makefile + +../csr/freebsd/g++/Makefile: rootmake.pro + tmake rootmake.pro -o ../csr/freebsd/g++/Makefile + +tmake_all: + for i in $(SUBDIRS); do ( if [ -d $$i ]; then cd $$i ; $(MAKE) -f $(MAKEFILE) tmake_all || true; fi; ) ; done + +#### $text = "\t" . 'for i in $(SUBDIRS); do ( if [ -d $$i ]; then cd $$i ; pro=`basename $$i`.pro ; $(TMAKE) $$pro -o $(MAKEFILE); grep "TEMPLATE.*subdirs" $$pro 2>/dev/null >/dev/null && $(MAKE) -f $(MAKEFILE) tmake_all || true; fi; ) ; done'; + +clean release debug: + for i in $(SUBDIRS); do ( if [ -d $$i ]; then cd $$i ; $(MAKE) $@; fi; ) ; done + +FORCE: diff --git a/make/csr/freebsd/g++/gen_code/Makefile b/make/csr/freebsd/g++/gen_code/Makefile new file mode 100644 index 000000000..2147ff430 --- /dev/null +++ b/make/csr/freebsd/g++/gen_code/Makefile @@ -0,0 +1,225 @@ +############################################################################# +# Makefile for building ../../../../../bin/gen_code +# Generated by tmake; +# Project: gen_code/gen_code +# Template: app +############################################################################# + +####### Compiler, tools and options + +CC = gcc +CXX = g++ +CFLAGS = -pipe -Wall -W -O2 -fno-strict-aliasing -DTA_GEN_CODE -DTA_SINGLE_THREAD +CXXFLAGS= -pipe -Wall -W -O2 -fno-strict-aliasing -DTA_GEN_CODE -DTA_SINGLE_THREAD +INCPATH = -I../../../../../include -I../../../../../src/ta_common -I../../../../../src/ta_abstract -I../../../../../src/ta_abstract/tables -I../../../../../src/ta_abstract/frames -I/usr/local/include +LINK = g++ +LFLAGS = -L/usr/local/lib +LIBS = $(SUBLIBS) ../../../../../lib/libta_common_csr.a +MOC = $(QTDIR)/bin/moc +UIC = $(QTDIR)/bin/uic + +TAR = tar -cf +GZIP = gzip -9f + +####### Apply additional overruling user flags, if any +CFLAGS += $(CUSERFLAGS) +CXXFLAGS += $(CUSERFLAGS) + +####### Files + +HEADERS = +SOURCES = ../../../../../src/tools/gen_code/gen_code.c \ + ../../../../../src/ta_abstract/ta_abstract.c \ + ../../../../../src/ta_abstract/ta_def_ui.c \ + ../../../../../src/ta_abstract/tables/table_a.c \ + ../../../../../src/ta_abstract/tables/table_b.c \ + ../../../../../src/ta_abstract/tables/table_c.c \ + ../../../../../src/ta_abstract/tables/table_d.c \ + ../../../../../src/ta_abstract/tables/table_e.c \ + ../../../../../src/ta_abstract/tables/table_f.c \ + ../../../../../src/ta_abstract/tables/table_g.c \ + ../../../../../src/ta_abstract/tables/table_h.c \ + ../../../../../src/ta_abstract/tables/table_i.c \ + ../../../../../src/ta_abstract/tables/table_j.c \ + ../../../../../src/ta_abstract/tables/table_k.c \ + ../../../../../src/ta_abstract/tables/table_l.c \ + ../../../../../src/ta_abstract/tables/table_m.c \ + ../../../../../src/ta_abstract/tables/table_n.c \ + ../../../../../src/ta_abstract/tables/table_o.c \ + ../../../../../src/ta_abstract/tables/table_p.c \ + ../../../../../src/ta_abstract/tables/table_q.c \ + ../../../../../src/ta_abstract/tables/table_r.c \ + ../../../../../src/ta_abstract/tables/table_s.c \ + ../../../../../src/ta_abstract/tables/table_t.c \ + ../../../../../src/ta_abstract/tables/table_u.c \ + ../../../../../src/ta_abstract/tables/table_v.c \ + ../../../../../src/ta_abstract/tables/table_w.c \ + ../../../../../src/ta_abstract/tables/table_x.c \ + ../../../../../src/ta_abstract/tables/table_y.c \ + ../../../../../src/ta_abstract/tables/table_z.c +OBJECTS = ../../../../../temp/csr/gen_code/gen_code.o \ + ../../../../../temp/csr/gen_code/ta_abstract.o \ + ../../../../../temp/csr/gen_code/ta_def_ui.o \ + ../../../../../temp/csr/gen_code/table_a.o \ + ../../../../../temp/csr/gen_code/table_b.o \ + ../../../../../temp/csr/gen_code/table_c.o \ + ../../../../../temp/csr/gen_code/table_d.o \ + ../../../../../temp/csr/gen_code/table_e.o \ + ../../../../../temp/csr/gen_code/table_f.o \ + ../../../../../temp/csr/gen_code/table_g.o \ + ../../../../../temp/csr/gen_code/table_h.o \ + ../../../../../temp/csr/gen_code/table_i.o \ + ../../../../../temp/csr/gen_code/table_j.o \ + ../../../../../temp/csr/gen_code/table_k.o \ + ../../../../../temp/csr/gen_code/table_l.o \ + ../../../../../temp/csr/gen_code/table_m.o \ + ../../../../../temp/csr/gen_code/table_n.o \ + ../../../../../temp/csr/gen_code/table_o.o \ + ../../../../../temp/csr/gen_code/table_p.o \ + ../../../../../temp/csr/gen_code/table_q.o \ + ../../../../../temp/csr/gen_code/table_r.o \ + ../../../../../temp/csr/gen_code/table_s.o \ + ../../../../../temp/csr/gen_code/table_t.o \ + ../../../../../temp/csr/gen_code/table_u.o \ + ../../../../../temp/csr/gen_code/table_v.o \ + ../../../../../temp/csr/gen_code/table_w.o \ + ../../../../../temp/csr/gen_code/table_x.o \ + ../../../../../temp/csr/gen_code/table_y.o \ + ../../../../../temp/csr/gen_code/table_z.o +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ../../../../../bin/gen_code +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .C .c + +.cpp.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cxx.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cc.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.C.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.c.o: + $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $< + +####### Build rules + + +all: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS) + +moc: $(SRCMOC) + +clean: + -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) + -rm -f *~ core + +####### Sub-libraries + + +###### Combined headers + + +####### Compile + +../../../../../temp/csr/gen_code/gen_code.o: ../../../../../src/tools/gen_code/gen_code.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/gen_code/gen_code.o ../../../../../src/tools/gen_code/gen_code.c + +../../../../../temp/csr/gen_code/ta_abstract.o: ../../../../../src/ta_abstract/ta_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/gen_code/ta_abstract.o ../../../../../src/ta_abstract/ta_abstract.c + +../../../../../temp/csr/gen_code/ta_def_ui.o: ../../../../../src/ta_abstract/ta_def_ui.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/gen_code/ta_def_ui.o ../../../../../src/ta_abstract/ta_def_ui.c + +../../../../../temp/csr/gen_code/table_a.o: ../../../../../src/ta_abstract/tables/table_a.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/gen_code/table_a.o ../../../../../src/ta_abstract/tables/table_a.c + +../../../../../temp/csr/gen_code/table_b.o: ../../../../../src/ta_abstract/tables/table_b.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/gen_code/table_b.o ../../../../../src/ta_abstract/tables/table_b.c + +../../../../../temp/csr/gen_code/table_c.o: ../../../../../src/ta_abstract/tables/table_c.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/gen_code/table_c.o ../../../../../src/ta_abstract/tables/table_c.c + +../../../../../temp/csr/gen_code/table_d.o: ../../../../../src/ta_abstract/tables/table_d.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/gen_code/table_d.o ../../../../../src/ta_abstract/tables/table_d.c + +../../../../../temp/csr/gen_code/table_e.o: ../../../../../src/ta_abstract/tables/table_e.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/gen_code/table_e.o ../../../../../src/ta_abstract/tables/table_e.c + +../../../../../temp/csr/gen_code/table_f.o: ../../../../../src/ta_abstract/tables/table_f.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/gen_code/table_f.o ../../../../../src/ta_abstract/tables/table_f.c + +../../../../../temp/csr/gen_code/table_g.o: ../../../../../src/ta_abstract/tables/table_g.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/gen_code/table_g.o ../../../../../src/ta_abstract/tables/table_g.c + +../../../../../temp/csr/gen_code/table_h.o: ../../../../../src/ta_abstract/tables/table_h.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/gen_code/table_h.o ../../../../../src/ta_abstract/tables/table_h.c + +../../../../../temp/csr/gen_code/table_i.o: ../../../../../src/ta_abstract/tables/table_i.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/gen_code/table_i.o ../../../../../src/ta_abstract/tables/table_i.c + +../../../../../temp/csr/gen_code/table_j.o: ../../../../../src/ta_abstract/tables/table_j.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/gen_code/table_j.o ../../../../../src/ta_abstract/tables/table_j.c + +../../../../../temp/csr/gen_code/table_k.o: ../../../../../src/ta_abstract/tables/table_k.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/gen_code/table_k.o ../../../../../src/ta_abstract/tables/table_k.c + +../../../../../temp/csr/gen_code/table_l.o: ../../../../../src/ta_abstract/tables/table_l.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/gen_code/table_l.o ../../../../../src/ta_abstract/tables/table_l.c + +../../../../../temp/csr/gen_code/table_m.o: ../../../../../src/ta_abstract/tables/table_m.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/gen_code/table_m.o ../../../../../src/ta_abstract/tables/table_m.c + +../../../../../temp/csr/gen_code/table_n.o: ../../../../../src/ta_abstract/tables/table_n.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/gen_code/table_n.o ../../../../../src/ta_abstract/tables/table_n.c + +../../../../../temp/csr/gen_code/table_o.o: ../../../../../src/ta_abstract/tables/table_o.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/gen_code/table_o.o ../../../../../src/ta_abstract/tables/table_o.c + +../../../../../temp/csr/gen_code/table_p.o: ../../../../../src/ta_abstract/tables/table_p.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/gen_code/table_p.o ../../../../../src/ta_abstract/tables/table_p.c + +../../../../../temp/csr/gen_code/table_q.o: ../../../../../src/ta_abstract/tables/table_q.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/gen_code/table_q.o ../../../../../src/ta_abstract/tables/table_q.c + +../../../../../temp/csr/gen_code/table_r.o: ../../../../../src/ta_abstract/tables/table_r.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/gen_code/table_r.o ../../../../../src/ta_abstract/tables/table_r.c + +../../../../../temp/csr/gen_code/table_s.o: ../../../../../src/ta_abstract/tables/table_s.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/gen_code/table_s.o ../../../../../src/ta_abstract/tables/table_s.c + +../../../../../temp/csr/gen_code/table_t.o: ../../../../../src/ta_abstract/tables/table_t.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/gen_code/table_t.o ../../../../../src/ta_abstract/tables/table_t.c + +../../../../../temp/csr/gen_code/table_u.o: ../../../../../src/ta_abstract/tables/table_u.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/gen_code/table_u.o ../../../../../src/ta_abstract/tables/table_u.c + +../../../../../temp/csr/gen_code/table_v.o: ../../../../../src/ta_abstract/tables/table_v.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/gen_code/table_v.o ../../../../../src/ta_abstract/tables/table_v.c + +../../../../../temp/csr/gen_code/table_w.o: ../../../../../src/ta_abstract/tables/table_w.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/gen_code/table_w.o ../../../../../src/ta_abstract/tables/table_w.c + +../../../../../temp/csr/gen_code/table_x.o: ../../../../../src/ta_abstract/tables/table_x.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/gen_code/table_x.o ../../../../../src/ta_abstract/tables/table_x.c + +../../../../../temp/csr/gen_code/table_y.o: ../../../../../src/ta_abstract/tables/table_y.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/gen_code/table_y.o ../../../../../src/ta_abstract/tables/table_y.c + +../../../../../temp/csr/gen_code/table_z.o: ../../../../../src/ta_abstract/tables/table_z.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/gen_code/table_z.o ../../../../../src/ta_abstract/tables/table_z.c + diff --git a/make/csr/freebsd/g++/ta_abstract/Makefile b/make/csr/freebsd/g++/ta_abstract/Makefile new file mode 100644 index 000000000..c8639ab3a --- /dev/null +++ b/make/csr/freebsd/g++/ta_abstract/Makefile @@ -0,0 +1,243 @@ +############################################################################# +# Makefile for building ../../../../../lib/libta_abstract_csr.a +# Generated by tmake; +# Project: ta_abstract/ta_abstract +# Template: lib +############################################################################# + +####### Compiler, tools and options + +CC = gcc +CXX = g++ +CFLAGS = -pipe -Wall -W -O2 -fno-strict-aliasing -DTA_SINGLE_THREAD +CXXFLAGS= -pipe -Wall -W -O2 -fno-strict-aliasing -DTA_SINGLE_THREAD +INCPATH = -I../../../../../src/ta_common -I../../../../../src/ta_abstract -I../../../../../src/ta_abstract/tables -I../../../../../src/ta_abstract/frames -I../../../../../include -I/usr/local/include +AR = ar cqs +RANLIB = +MOC = $(QTDIR)/bin/moc +UIC = $(QTDIR)/bin/uic + +TAR = tar -cf +GZIP = gzip -9f + +####### Support for 64-bit systems +ifeq ($(shell uname -m), x86_64) + CFLAGS += -march=x86-64 -m64 -D__64BIT__ + CXXFLAGS += -march=x86-64 -m64 -D__64BIT__ +endif + +####### Apply additional overruling user flags, if any +CFLAGS += $(CUSERFLAGS) +CXXFLAGS += $(CUSERFLAGS) + +####### Files + +HEADERS = +SOURCES = ../../../../../src/ta_abstract/ta_abstract.c \ + ../../../../../src/ta_abstract/ta_def_ui.c \ + ../../../../../src/ta_abstract/ta_func_api.c \ + ../../../../../src/ta_abstract/ta_group_idx.c \ + ../../../../../src/ta_abstract/frames/ta_frame.c \ + ../../../../../src/ta_abstract/tables/table_a.c \ + ../../../../../src/ta_abstract/tables/table_b.c \ + ../../../../../src/ta_abstract/tables/table_c.c \ + ../../../../../src/ta_abstract/tables/table_d.c \ + ../../../../../src/ta_abstract/tables/table_e.c \ + ../../../../../src/ta_abstract/tables/table_f.c \ + ../../../../../src/ta_abstract/tables/table_g.c \ + ../../../../../src/ta_abstract/tables/table_h.c \ + ../../../../../src/ta_abstract/tables/table_i.c \ + ../../../../../src/ta_abstract/tables/table_j.c \ + ../../../../../src/ta_abstract/tables/table_k.c \ + ../../../../../src/ta_abstract/tables/table_l.c \ + ../../../../../src/ta_abstract/tables/table_m.c \ + ../../../../../src/ta_abstract/tables/table_n.c \ + ../../../../../src/ta_abstract/tables/table_o.c \ + ../../../../../src/ta_abstract/tables/table_p.c \ + ../../../../../src/ta_abstract/tables/table_q.c \ + ../../../../../src/ta_abstract/tables/table_r.c \ + ../../../../../src/ta_abstract/tables/table_s.c \ + ../../../../../src/ta_abstract/tables/table_t.c \ + ../../../../../src/ta_abstract/tables/table_u.c \ + ../../../../../src/ta_abstract/tables/table_v.c \ + ../../../../../src/ta_abstract/tables/table_w.c \ + ../../../../../src/ta_abstract/tables/table_x.c \ + ../../../../../src/ta_abstract/tables/table_y.c \ + ../../../../../src/ta_abstract/tables/table_z.c +OBJECTS = ../../../../../temp/csr/ta_abstract.o \ + ../../../../../temp/csr/ta_def_ui.o \ + ../../../../../temp/csr/ta_func_api.o \ + ../../../../../temp/csr/ta_group_idx.o \ + ../../../../../temp/csr/ta_frame.o \ + ../../../../../temp/csr/table_a.o \ + ../../../../../temp/csr/table_b.o \ + ../../../../../temp/csr/table_c.o \ + ../../../../../temp/csr/table_d.o \ + ../../../../../temp/csr/table_e.o \ + ../../../../../temp/csr/table_f.o \ + ../../../../../temp/csr/table_g.o \ + ../../../../../temp/csr/table_h.o \ + ../../../../../temp/csr/table_i.o \ + ../../../../../temp/csr/table_j.o \ + ../../../../../temp/csr/table_k.o \ + ../../../../../temp/csr/table_l.o \ + ../../../../../temp/csr/table_m.o \ + ../../../../../temp/csr/table_n.o \ + ../../../../../temp/csr/table_o.o \ + ../../../../../temp/csr/table_p.o \ + ../../../../../temp/csr/table_q.o \ + ../../../../../temp/csr/table_r.o \ + ../../../../../temp/csr/table_s.o \ + ../../../../../temp/csr/table_t.o \ + ../../../../../temp/csr/table_u.o \ + ../../../../../temp/csr/table_v.o \ + ../../../../../temp/csr/table_w.o \ + ../../../../../temp/csr/table_x.o \ + ../../../../../temp/csr/table_y.o \ + ../../../../../temp/csr/table_z.o +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ../../../../../lib/libta_abstract_csr.a +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .C .c + +.cpp.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cxx.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cc.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.C.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.c.o: + $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $< + +####### Build rules + + +all: $(TARGET) + +staticlib: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + -rm -f $(TARGET) + $(AR) $(TARGET) $(OBJECTS) $(OBJMOC) + +moc: $(SRCMOC) + +clean: + -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) + -rm -f *~ core + +####### Sub-libraries + + +###### Combined headers + + +####### Compile + +../../../../../temp/csr/ta_abstract.o: ../../../../../src/ta_abstract/ta_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_abstract.o ../../../../../src/ta_abstract/ta_abstract.c + +../../../../../temp/csr/ta_def_ui.o: ../../../../../src/ta_abstract/ta_def_ui.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_def_ui.o ../../../../../src/ta_abstract/ta_def_ui.c + +../../../../../temp/csr/ta_func_api.o: ../../../../../src/ta_abstract/ta_func_api.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_func_api.o ../../../../../src/ta_abstract/ta_func_api.c + +../../../../../temp/csr/ta_group_idx.o: ../../../../../src/ta_abstract/ta_group_idx.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_group_idx.o ../../../../../src/ta_abstract/ta_group_idx.c + +../../../../../temp/csr/ta_frame.o: ../../../../../src/ta_abstract/frames/ta_frame.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_frame.o ../../../../../src/ta_abstract/frames/ta_frame.c + +../../../../../temp/csr/table_a.o: ../../../../../src/ta_abstract/tables/table_a.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_a.o ../../../../../src/ta_abstract/tables/table_a.c + +../../../../../temp/csr/table_b.o: ../../../../../src/ta_abstract/tables/table_b.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_b.o ../../../../../src/ta_abstract/tables/table_b.c + +../../../../../temp/csr/table_c.o: ../../../../../src/ta_abstract/tables/table_c.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_c.o ../../../../../src/ta_abstract/tables/table_c.c + +../../../../../temp/csr/table_d.o: ../../../../../src/ta_abstract/tables/table_d.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_d.o ../../../../../src/ta_abstract/tables/table_d.c + +../../../../../temp/csr/table_e.o: ../../../../../src/ta_abstract/tables/table_e.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_e.o ../../../../../src/ta_abstract/tables/table_e.c + +../../../../../temp/csr/table_f.o: ../../../../../src/ta_abstract/tables/table_f.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_f.o ../../../../../src/ta_abstract/tables/table_f.c + +../../../../../temp/csr/table_g.o: ../../../../../src/ta_abstract/tables/table_g.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_g.o ../../../../../src/ta_abstract/tables/table_g.c + +../../../../../temp/csr/table_h.o: ../../../../../src/ta_abstract/tables/table_h.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_h.o ../../../../../src/ta_abstract/tables/table_h.c + +../../../../../temp/csr/table_i.o: ../../../../../src/ta_abstract/tables/table_i.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_i.o ../../../../../src/ta_abstract/tables/table_i.c + +../../../../../temp/csr/table_j.o: ../../../../../src/ta_abstract/tables/table_j.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_j.o ../../../../../src/ta_abstract/tables/table_j.c + +../../../../../temp/csr/table_k.o: ../../../../../src/ta_abstract/tables/table_k.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_k.o ../../../../../src/ta_abstract/tables/table_k.c + +../../../../../temp/csr/table_l.o: ../../../../../src/ta_abstract/tables/table_l.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_l.o ../../../../../src/ta_abstract/tables/table_l.c + +../../../../../temp/csr/table_m.o: ../../../../../src/ta_abstract/tables/table_m.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_m.o ../../../../../src/ta_abstract/tables/table_m.c + +../../../../../temp/csr/table_n.o: ../../../../../src/ta_abstract/tables/table_n.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_n.o ../../../../../src/ta_abstract/tables/table_n.c + +../../../../../temp/csr/table_o.o: ../../../../../src/ta_abstract/tables/table_o.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_o.o ../../../../../src/ta_abstract/tables/table_o.c + +../../../../../temp/csr/table_p.o: ../../../../../src/ta_abstract/tables/table_p.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_p.o ../../../../../src/ta_abstract/tables/table_p.c + +../../../../../temp/csr/table_q.o: ../../../../../src/ta_abstract/tables/table_q.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_q.o ../../../../../src/ta_abstract/tables/table_q.c + +../../../../../temp/csr/table_r.o: ../../../../../src/ta_abstract/tables/table_r.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_r.o ../../../../../src/ta_abstract/tables/table_r.c + +../../../../../temp/csr/table_s.o: ../../../../../src/ta_abstract/tables/table_s.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_s.o ../../../../../src/ta_abstract/tables/table_s.c + +../../../../../temp/csr/table_t.o: ../../../../../src/ta_abstract/tables/table_t.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_t.o ../../../../../src/ta_abstract/tables/table_t.c + +../../../../../temp/csr/table_u.o: ../../../../../src/ta_abstract/tables/table_u.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_u.o ../../../../../src/ta_abstract/tables/table_u.c + +../../../../../temp/csr/table_v.o: ../../../../../src/ta_abstract/tables/table_v.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_v.o ../../../../../src/ta_abstract/tables/table_v.c + +../../../../../temp/csr/table_w.o: ../../../../../src/ta_abstract/tables/table_w.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_w.o ../../../../../src/ta_abstract/tables/table_w.c + +../../../../../temp/csr/table_x.o: ../../../../../src/ta_abstract/tables/table_x.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_x.o ../../../../../src/ta_abstract/tables/table_x.c + +../../../../../temp/csr/table_y.o: ../../../../../src/ta_abstract/tables/table_y.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_y.o ../../../../../src/ta_abstract/tables/table_y.c + +../../../../../temp/csr/table_z.o: ../../../../../src/ta_abstract/tables/table_z.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_z.o ../../../../../src/ta_abstract/tables/table_z.c + diff --git a/make/csr/freebsd/g++/ta_common/Makefile b/make/csr/freebsd/g++/ta_common/Makefile new file mode 100644 index 000000000..06ffa5e3a --- /dev/null +++ b/make/csr/freebsd/g++/ta_common/Makefile @@ -0,0 +1,103 @@ +############################################################################# +# Makefile for building ../../../../../lib/libta_common_csr.a +# Generated by tmake; +# Project: ta_common/ta_common +# Template: lib +############################################################################# + +####### Compiler, tools and options + +CC = gcc +CXX = g++ +CFLAGS = -pipe -Wall -W -O2 -fno-strict-aliasing -DTA_SINGLE_THREAD +CXXFLAGS= -pipe -Wall -W -O2 -fno-strict-aliasing -DTA_SINGLE_THREAD +INCPATH = -I../../../../../src/ta_common -I../../../../../include -I/usr/local/include +AR = ar cqs +RANLIB = +MOC = $(QTDIR)/bin/moc +UIC = $(QTDIR)/bin/uic + +TAR = tar -cf +GZIP = gzip -9f + +####### Support for 64-bit systems +ifeq ($(shell uname -m), x86_64) + CFLAGS += -march=x86-64 -m64 -D__64BIT__ + CXXFLAGS += -march=x86-64 -m64 -D__64BIT__ +endif + +####### Apply additional overruling user flags, if any +CFLAGS += $(CUSERFLAGS) +CXXFLAGS += $(CUSERFLAGS) + +####### Files + +HEADERS = +SOURCES = ../../../../../src/ta_common/ta_global.c \ + ../../../../../src/ta_common/ta_retcode.c \ + ../../../../../src/ta_common/ta_version.c +OBJECTS = ../../../../../temp/csr/ta_global.o \ + ../../../../../temp/csr/ta_retcode.o \ + ../../../../../temp/csr/ta_version.o +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ../../../../../lib/libta_common_csr.a +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .C .c + +.cpp.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cxx.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cc.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.C.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.c.o: + $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $< + +####### Build rules + + +all: $(TARGET) + +staticlib: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + -rm -f $(TARGET) + $(AR) $(TARGET) $(OBJECTS) $(OBJMOC) + +moc: $(SRCMOC) + +clean: + -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) + -rm -f *~ core + +####### Sub-libraries + + +###### Combined headers + + +####### Compile + +../../../../../temp/csr/ta_global.o: ../../../../../src/ta_common/ta_global.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_global.o ../../../../../src/ta_common/ta_global.c + +../../../../../temp/csr/ta_retcode.o: ../../../../../src/ta_common/ta_retcode.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_retcode.o ../../../../../src/ta_common/ta_retcode.c + +../../../../../temp/csr/ta_version.o: ../../../../../src/ta_common/ta_version.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_version.o ../../../../../src/ta_common/ta_version.c + diff --git a/make/csr/freebsd/g++/ta_func/Makefile b/make/csr/freebsd/g++/ta_func/Makefile new file mode 100644 index 000000000..1b9e927da --- /dev/null +++ b/make/csr/freebsd/g++/ta_func/Makefile @@ -0,0 +1,883 @@ +############################################################################# +# Makefile for building ../../../../../lib/libta_func_csr.a +# Generated by tmake; +# Project: ta_func/ta_func +# Template: lib +############################################################################# + +####### Compiler, tools and options + +CC = gcc +CXX = g++ +CFLAGS = -pipe -Wall -W -O2 -fno-strict-aliasing -DTA_SINGLE_THREAD +CXXFLAGS= -pipe -Wall -W -O2 -fno-strict-aliasing -DTA_SINGLE_THREAD +INCPATH = -I../../../../../src/ta_common -I/n -I../../../../../include -I/usr/local/include +AR = ar cqs +RANLIB = +MOC = $(QTDIR)/bin/moc +UIC = $(QTDIR)/bin/uic + +TAR = tar -cf +GZIP = gzip -9f + +####### Support for 64-bit systems +ifeq ($(shell uname -m), x86_64) + CFLAGS += -march=x86-64 -m64 -D__64BIT__ + CXXFLAGS += -march=x86-64 -m64 -D__64BIT__ +endif + +####### Apply additional overruling user flags, if any +CFLAGS += $(CUSERFLAGS) +CXXFLAGS += $(CUSERFLAGS) + +####### Files + +HEADERS = +SOURCES = ../../../../../src/ta_func/ta_utility.c \ + ../../../../../src/ta_func/ta_ACOS.c \ + ../../../../../src/ta_func/ta_AD.c \ + ../../../../../src/ta_func/ta_ADD.c \ + ../../../../../src/ta_func/ta_ADOSC.c \ + ../../../../../src/ta_func/ta_ADX.c \ + ../../../../../src/ta_func/ta_ADXR.c \ + ../../../../../src/ta_func/ta_APO.c \ + ../../../../../src/ta_func/ta_AROON.c \ + ../../../../../src/ta_func/ta_AROONOSC.c \ + ../../../../../src/ta_func/ta_ASIN.c \ + ../../../../../src/ta_func/ta_ATAN.c \ + ../../../../../src/ta_func/ta_ATR.c \ + ../../../../../src/ta_func/ta_AVGPRICE.c \ + ../../../../../src/ta_func/ta_BBANDS.c \ + ../../../../../src/ta_func/ta_BETA.c \ + ../../../../../src/ta_func/ta_BOP.c \ + ../../../../../src/ta_func/ta_CCI.c \ + ../../../../../src/ta_func/ta_CDL2CROWS.c \ + ../../../../../src/ta_func/ta_CDL3BLACKCROWS.c \ + ../../../../../src/ta_func/ta_CDL3INSIDE.c \ + ../../../../../src/ta_func/ta_CDL3LINESTRIKE.c \ + ../../../../../src/ta_func/ta_CDL3OUTSIDE.c \ + ../../../../../src/ta_func/ta_CDL3STARSINSOUTH.c \ + ../../../../../src/ta_func/ta_CDL3WHITESOLDIERS.c \ + ../../../../../src/ta_func/ta_CDLABANDONEDBABY.c \ + ../../../../../src/ta_func/ta_CDLADVANCEBLOCK.c \ + ../../../../../src/ta_func/ta_CDLBELTHOLD.c \ + ../../../../../src/ta_func/ta_CDLBREAKAWAY.c \ + ../../../../../src/ta_func/ta_CDLCLOSINGMARUBOZU.c \ + ../../../../../src/ta_func/ta_CDLCONCEALBABYSWALL.c \ + ../../../../../src/ta_func/ta_CDLCOUNTERATTACK.c \ + ../../../../../src/ta_func/ta_CDLDARKCLOUDCOVER.c \ + ../../../../../src/ta_func/ta_CDLDOJI.c \ + ../../../../../src/ta_func/ta_CDLDOJISTAR.c \ + ../../../../../src/ta_func/ta_CDLDRAGONFLYDOJI.c \ + ../../../../../src/ta_func/ta_CDLENGULFING.c \ + ../../../../../src/ta_func/ta_CDLEVENINGDOJISTAR.c \ + ../../../../../src/ta_func/ta_CDLEVENINGSTAR.c \ + ../../../../../src/ta_func/ta_CDLGAPSIDESIDEWHITE.c \ + ../../../../../src/ta_func/ta_CDLGRAVESTONEDOJI.c \ + ../../../../../src/ta_func/ta_CDLHAMMER.c \ + ../../../../../src/ta_func/ta_CDLHANGINGMAN.c \ + ../../../../../src/ta_func/ta_CDLHARAMI.c \ + ../../../../../src/ta_func/ta_CDLHARAMICROSS.c \ + ../../../../../src/ta_func/ta_CDLHIGHWAVE.c \ + ../../../../../src/ta_func/ta_CDLHIKKAKE.c \ + ../../../../../src/ta_func/ta_CDLHIKKAKEMOD.c \ + ../../../../../src/ta_func/ta_CDLHOMINGPIGEON.c \ + ../../../../../src/ta_func/ta_CDLIDENTICAL3CROWS.c \ + ../../../../../src/ta_func/ta_CDLINNECK.c \ + ../../../../../src/ta_func/ta_CDLINVERTEDHAMMER.c \ + ../../../../../src/ta_func/ta_CDLKICKING.c \ + ../../../../../src/ta_func/ta_CDLKICKINGBYLENGTH.c \ + ../../../../../src/ta_func/ta_CDLLADDERBOTTOM.c \ + ../../../../../src/ta_func/ta_CDLLONGLEGGEDDOJI.c \ + ../../../../../src/ta_func/ta_CDLLONGLINE.c \ + ../../../../../src/ta_func/ta_CDLMARUBOZU.c \ + ../../../../../src/ta_func/ta_CDLMATCHINGLOW.c \ + ../../../../../src/ta_func/ta_CDLMATHOLD.c \ + ../../../../../src/ta_func/ta_CDLMORNINGDOJISTAR.c \ + ../../../../../src/ta_func/ta_CDLMORNINGSTAR.c \ + ../../../../../src/ta_func/ta_CDLONNECK.c \ + ../../../../../src/ta_func/ta_CDLPIERCING.c \ + ../../../../../src/ta_func/ta_CDLRICKSHAWMAN.c \ + ../../../../../src/ta_func/ta_CDLRISEFALL3METHODS.c \ + ../../../../../src/ta_func/ta_CDLSEPARATINGLINES.c \ + ../../../../../src/ta_func/ta_CDLSHOOTINGSTAR.c \ + ../../../../../src/ta_func/ta_CDLSHORTLINE.c \ + ../../../../../src/ta_func/ta_CDLSPINNINGTOP.c \ + ../../../../../src/ta_func/ta_CDLSTALLEDPATTERN.c \ + ../../../../../src/ta_func/ta_CDLSTICKSANDWICH.c \ + ../../../../../src/ta_func/ta_CDLTAKURI.c \ + ../../../../../src/ta_func/ta_CDLTASUKIGAP.c \ + ../../../../../src/ta_func/ta_CDLTHRUSTING.c \ + ../../../../../src/ta_func/ta_CDLTRISTAR.c \ + ../../../../../src/ta_func/ta_CDLUNIQUE3RIVER.c \ + ../../../../../src/ta_func/ta_CDLUPSIDEGAP2CROWS.c \ + ../../../../../src/ta_func/ta_CDLXSIDEGAP3METHODS.c \ + ../../../../../src/ta_func/ta_CEIL.c \ + ../../../../../src/ta_func/ta_CMO.c \ + ../../../../../src/ta_func/ta_CORREL.c \ + ../../../../../src/ta_func/ta_COS.c \ + ../../../../../src/ta_func/ta_COSH.c \ + ../../../../../src/ta_func/ta_DEMA.c \ + ../../../../../src/ta_func/ta_DIV.c \ + ../../../../../src/ta_func/ta_DX.c \ + ../../../../../src/ta_func/ta_EMA.c \ + ../../../../../src/ta_func/ta_EXP.c \ + ../../../../../src/ta_func/ta_FLOOR.c \ + ../../../../../src/ta_func/ta_HT_DCPERIOD.c \ + ../../../../../src/ta_func/ta_HT_DCPHASE.c \ + ../../../../../src/ta_func/ta_HT_PHASOR.c \ + ../../../../../src/ta_func/ta_HT_SINE.c \ + ../../../../../src/ta_func/ta_HT_TRENDLINE.c \ + ../../../../../src/ta_func/ta_HT_TRENDMODE.c \ + ../../../../../src/ta_func/ta_KAMA.c \ + ../../../../../src/ta_func/ta_LINEARREG.c \ + ../../../../../src/ta_func/ta_LINEARREG_ANGLE.c \ + ../../../../../src/ta_func/ta_LINEARREG_INTERCEPT.c \ + ../../../../../src/ta_func/ta_LINEARREG_SLOPE.c \ + ../../../../../src/ta_func/ta_LN.c \ + ../../../../../src/ta_func/ta_LOG10.c \ + ../../../../../src/ta_func/ta_MA.c \ + ../../../../../src/ta_func/ta_MACD.c \ + ../../../../../src/ta_func/ta_MACDEXT.c \ + ../../../../../src/ta_func/ta_MACDFIX.c \ + ../../../../../src/ta_func/ta_MAMA.c \ + ../../../../../src/ta_func/ta_MAVP.c \ + ../../../../../src/ta_func/ta_MAX.c \ + ../../../../../src/ta_func/ta_MAXINDEX.c \ + ../../../../../src/ta_func/ta_MEDPRICE.c \ + ../../../../../src/ta_func/ta_MFI.c \ + ../../../../../src/ta_func/ta_MIDPOINT.c \ + ../../../../../src/ta_func/ta_MIDPRICE.c \ + ../../../../../src/ta_func/ta_MIN.c \ + ../../../../../src/ta_func/ta_MININDEX.c \ + ../../../../../src/ta_func/ta_MINMAX.c \ + ../../../../../src/ta_func/ta_MINMAXINDEX.c \ + ../../../../../src/ta_func/ta_MINUS_DI.c \ + ../../../../../src/ta_func/ta_MINUS_DM.c \ + ../../../../../src/ta_func/ta_MOM.c \ + ../../../../../src/ta_func/ta_MULT.c \ + ../../../../../src/ta_func/ta_NATR.c \ + ../../../../../src/ta_func/ta_OBV.c \ + ../../../../../src/ta_func/ta_PLUS_DI.c \ + ../../../../../src/ta_func/ta_PLUS_DM.c \ + ../../../../../src/ta_func/ta_PPO.c \ + ../../../../../src/ta_func/ta_ROC.c \ + ../../../../../src/ta_func/ta_ROCP.c \ + ../../../../../src/ta_func/ta_ROCR.c \ + ../../../../../src/ta_func/ta_ROCR100.c \ + ../../../../../src/ta_func/ta_RSI.c \ + ../../../../../src/ta_func/ta_SAR.c \ + ../../../../../src/ta_func/ta_SAREXT.c \ + ../../../../../src/ta_func/ta_SIN.c \ + ../../../../../src/ta_func/ta_SINH.c \ + ../../../../../src/ta_func/ta_SMA.c \ + ../../../../../src/ta_func/ta_SQRT.c \ + ../../../../../src/ta_func/ta_STDDEV.c \ + ../../../../../src/ta_func/ta_STOCH.c \ + ../../../../../src/ta_func/ta_STOCHF.c \ + ../../../../../src/ta_func/ta_STOCHRSI.c \ + ../../../../../src/ta_func/ta_SUB.c \ + ../../../../../src/ta_func/ta_SUM.c \ + ../../../../../src/ta_func/ta_T3.c \ + ../../../../../src/ta_func/ta_TAN.c \ + ../../../../../src/ta_func/ta_TANH.c \ + ../../../../../src/ta_func/ta_TEMA.c \ + ../../../../../src/ta_func/ta_TRANGE.c \ + ../../../../../src/ta_func/ta_TRIMA.c \ + ../../../../../src/ta_func/ta_TRIX.c \ + ../../../../../src/ta_func/ta_TSF.c \ + ../../../../../src/ta_func/ta_TYPPRICE.c \ + ../../../../../src/ta_func/ta_ULTOSC.c \ + ../../../../../src/ta_func/ta_VAR.c \ + ../../../../../src/ta_func/ta_WCLPRICE.c \ + ../../../../../src/ta_func/ta_WILLR.c \ + ../../../../../src/ta_func/ta_WMA.c +OBJECTS = ../../../../../temp/csr/ta_utility.o \ + ../../../../../temp/csr/ta_ACOS.o \ + ../../../../../temp/csr/ta_AD.o \ + ../../../../../temp/csr/ta_ADD.o \ + ../../../../../temp/csr/ta_ADOSC.o \ + ../../../../../temp/csr/ta_ADX.o \ + ../../../../../temp/csr/ta_ADXR.o \ + ../../../../../temp/csr/ta_APO.o \ + ../../../../../temp/csr/ta_AROON.o \ + ../../../../../temp/csr/ta_AROONOSC.o \ + ../../../../../temp/csr/ta_ASIN.o \ + ../../../../../temp/csr/ta_ATAN.o \ + ../../../../../temp/csr/ta_ATR.o \ + ../../../../../temp/csr/ta_AVGPRICE.o \ + ../../../../../temp/csr/ta_BBANDS.o \ + ../../../../../temp/csr/ta_BETA.o \ + ../../../../../temp/csr/ta_BOP.o \ + ../../../../../temp/csr/ta_CCI.o \ + ../../../../../temp/csr/ta_CDL2CROWS.o \ + ../../../../../temp/csr/ta_CDL3BLACKCROWS.o \ + ../../../../../temp/csr/ta_CDL3INSIDE.o \ + ../../../../../temp/csr/ta_CDL3LINESTRIKE.o \ + ../../../../../temp/csr/ta_CDL3OUTSIDE.o \ + ../../../../../temp/csr/ta_CDL3STARSINSOUTH.o \ + ../../../../../temp/csr/ta_CDL3WHITESOLDIERS.o \ + ../../../../../temp/csr/ta_CDLABANDONEDBABY.o \ + ../../../../../temp/csr/ta_CDLADVANCEBLOCK.o \ + ../../../../../temp/csr/ta_CDLBELTHOLD.o \ + ../../../../../temp/csr/ta_CDLBREAKAWAY.o \ + ../../../../../temp/csr/ta_CDLCLOSINGMARUBOZU.o \ + ../../../../../temp/csr/ta_CDLCONCEALBABYSWALL.o \ + ../../../../../temp/csr/ta_CDLCOUNTERATTACK.o \ + ../../../../../temp/csr/ta_CDLDARKCLOUDCOVER.o \ + ../../../../../temp/csr/ta_CDLDOJI.o \ + ../../../../../temp/csr/ta_CDLDOJISTAR.o \ + ../../../../../temp/csr/ta_CDLDRAGONFLYDOJI.o \ + ../../../../../temp/csr/ta_CDLENGULFING.o \ + ../../../../../temp/csr/ta_CDLEVENINGDOJISTAR.o \ + ../../../../../temp/csr/ta_CDLEVENINGSTAR.o \ + ../../../../../temp/csr/ta_CDLGAPSIDESIDEWHITE.o \ + ../../../../../temp/csr/ta_CDLGRAVESTONEDOJI.o \ + ../../../../../temp/csr/ta_CDLHAMMER.o \ + ../../../../../temp/csr/ta_CDLHANGINGMAN.o \ + ../../../../../temp/csr/ta_CDLHARAMI.o \ + ../../../../../temp/csr/ta_CDLHARAMICROSS.o \ + ../../../../../temp/csr/ta_CDLHIGHWAVE.o \ + ../../../../../temp/csr/ta_CDLHIKKAKE.o \ + ../../../../../temp/csr/ta_CDLHIKKAKEMOD.o \ + ../../../../../temp/csr/ta_CDLHOMINGPIGEON.o \ + ../../../../../temp/csr/ta_CDLIDENTICAL3CROWS.o \ + ../../../../../temp/csr/ta_CDLINNECK.o \ + ../../../../../temp/csr/ta_CDLINVERTEDHAMMER.o \ + ../../../../../temp/csr/ta_CDLKICKING.o \ + ../../../../../temp/csr/ta_CDLKICKINGBYLENGTH.o \ + ../../../../../temp/csr/ta_CDLLADDERBOTTOM.o \ + ../../../../../temp/csr/ta_CDLLONGLEGGEDDOJI.o \ + ../../../../../temp/csr/ta_CDLLONGLINE.o \ + ../../../../../temp/csr/ta_CDLMARUBOZU.o \ + ../../../../../temp/csr/ta_CDLMATCHINGLOW.o \ + ../../../../../temp/csr/ta_CDLMATHOLD.o \ + ../../../../../temp/csr/ta_CDLMORNINGDOJISTAR.o \ + ../../../../../temp/csr/ta_CDLMORNINGSTAR.o \ + ../../../../../temp/csr/ta_CDLONNECK.o \ + ../../../../../temp/csr/ta_CDLPIERCING.o \ + ../../../../../temp/csr/ta_CDLRICKSHAWMAN.o \ + ../../../../../temp/csr/ta_CDLRISEFALL3METHODS.o \ + ../../../../../temp/csr/ta_CDLSEPARATINGLINES.o \ + ../../../../../temp/csr/ta_CDLSHOOTINGSTAR.o \ + ../../../../../temp/csr/ta_CDLSHORTLINE.o \ + ../../../../../temp/csr/ta_CDLSPINNINGTOP.o \ + ../../../../../temp/csr/ta_CDLSTALLEDPATTERN.o \ + ../../../../../temp/csr/ta_CDLSTICKSANDWICH.o \ + ../../../../../temp/csr/ta_CDLTAKURI.o \ + ../../../../../temp/csr/ta_CDLTASUKIGAP.o \ + ../../../../../temp/csr/ta_CDLTHRUSTING.o \ + ../../../../../temp/csr/ta_CDLTRISTAR.o \ + ../../../../../temp/csr/ta_CDLUNIQUE3RIVER.o \ + ../../../../../temp/csr/ta_CDLUPSIDEGAP2CROWS.o \ + ../../../../../temp/csr/ta_CDLXSIDEGAP3METHODS.o \ + ../../../../../temp/csr/ta_CEIL.o \ + ../../../../../temp/csr/ta_CMO.o \ + ../../../../../temp/csr/ta_CORREL.o \ + ../../../../../temp/csr/ta_COS.o \ + ../../../../../temp/csr/ta_COSH.o \ + ../../../../../temp/csr/ta_DEMA.o \ + ../../../../../temp/csr/ta_DIV.o \ + ../../../../../temp/csr/ta_DX.o \ + ../../../../../temp/csr/ta_EMA.o \ + ../../../../../temp/csr/ta_EXP.o \ + ../../../../../temp/csr/ta_FLOOR.o \ + ../../../../../temp/csr/ta_HT_DCPERIOD.o \ + ../../../../../temp/csr/ta_HT_DCPHASE.o \ + ../../../../../temp/csr/ta_HT_PHASOR.o \ + ../../../../../temp/csr/ta_HT_SINE.o \ + ../../../../../temp/csr/ta_HT_TRENDLINE.o \ + ../../../../../temp/csr/ta_HT_TRENDMODE.o \ + ../../../../../temp/csr/ta_KAMA.o \ + ../../../../../temp/csr/ta_LINEARREG.o \ + ../../../../../temp/csr/ta_LINEARREG_ANGLE.o \ + ../../../../../temp/csr/ta_LINEARREG_INTERCEPT.o \ + ../../../../../temp/csr/ta_LINEARREG_SLOPE.o \ + ../../../../../temp/csr/ta_LN.o \ + ../../../../../temp/csr/ta_LOG10.o \ + ../../../../../temp/csr/ta_MA.o \ + ../../../../../temp/csr/ta_MACD.o \ + ../../../../../temp/csr/ta_MACDEXT.o \ + ../../../../../temp/csr/ta_MACDFIX.o \ + ../../../../../temp/csr/ta_MAMA.o \ + ../../../../../temp/csr/ta_MAVP.o \ + ../../../../../temp/csr/ta_MAX.o \ + ../../../../../temp/csr/ta_MAXINDEX.o \ + ../../../../../temp/csr/ta_MEDPRICE.o \ + ../../../../../temp/csr/ta_MFI.o \ + ../../../../../temp/csr/ta_MIDPOINT.o \ + ../../../../../temp/csr/ta_MIDPRICE.o \ + ../../../../../temp/csr/ta_MIN.o \ + ../../../../../temp/csr/ta_MININDEX.o \ + ../../../../../temp/csr/ta_MINMAX.o \ + ../../../../../temp/csr/ta_MINMAXINDEX.o \ + ../../../../../temp/csr/ta_MINUS_DI.o \ + ../../../../../temp/csr/ta_MINUS_DM.o \ + ../../../../../temp/csr/ta_MOM.o \ + ../../../../../temp/csr/ta_MULT.o \ + ../../../../../temp/csr/ta_NATR.o \ + ../../../../../temp/csr/ta_OBV.o \ + ../../../../../temp/csr/ta_PLUS_DI.o \ + ../../../../../temp/csr/ta_PLUS_DM.o \ + ../../../../../temp/csr/ta_PPO.o \ + ../../../../../temp/csr/ta_ROC.o \ + ../../../../../temp/csr/ta_ROCP.o \ + ../../../../../temp/csr/ta_ROCR.o \ + ../../../../../temp/csr/ta_ROCR100.o \ + ../../../../../temp/csr/ta_RSI.o \ + ../../../../../temp/csr/ta_SAR.o \ + ../../../../../temp/csr/ta_SAREXT.o \ + ../../../../../temp/csr/ta_SIN.o \ + ../../../../../temp/csr/ta_SINH.o \ + ../../../../../temp/csr/ta_SMA.o \ + ../../../../../temp/csr/ta_SQRT.o \ + ../../../../../temp/csr/ta_STDDEV.o \ + ../../../../../temp/csr/ta_STOCH.o \ + ../../../../../temp/csr/ta_STOCHF.o \ + ../../../../../temp/csr/ta_STOCHRSI.o \ + ../../../../../temp/csr/ta_SUB.o \ + ../../../../../temp/csr/ta_SUM.o \ + ../../../../../temp/csr/ta_T3.o \ + ../../../../../temp/csr/ta_TAN.o \ + ../../../../../temp/csr/ta_TANH.o \ + ../../../../../temp/csr/ta_TEMA.o \ + ../../../../../temp/csr/ta_TRANGE.o \ + ../../../../../temp/csr/ta_TRIMA.o \ + ../../../../../temp/csr/ta_TRIX.o \ + ../../../../../temp/csr/ta_TSF.o \ + ../../../../../temp/csr/ta_TYPPRICE.o \ + ../../../../../temp/csr/ta_ULTOSC.o \ + ../../../../../temp/csr/ta_VAR.o \ + ../../../../../temp/csr/ta_WCLPRICE.o \ + ../../../../../temp/csr/ta_WILLR.o \ + ../../../../../temp/csr/ta_WMA.o +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ../../../../../lib/libta_func_csr.a +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .C .c + +.cpp.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cxx.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cc.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.C.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.c.o: + $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $< + +####### Build rules + + +all: $(TARGET) + +staticlib: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + -rm -f $(TARGET) + $(AR) $(TARGET) $(OBJECTS) $(OBJMOC) + +moc: $(SRCMOC) + +clean: + -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) + -rm -f *~ core + +####### Sub-libraries + + +###### Combined headers + + +####### Compile + +../../../../../temp/csr/ta_utility.o: ../../../../../src/ta_func/ta_utility.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_utility.o ../../../../../src/ta_func/ta_utility.c + +../../../../../temp/csr/ta_ACOS.o: ../../../../../src/ta_func/ta_ACOS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_ACOS.o ../../../../../src/ta_func/ta_ACOS.c + +../../../../../temp/csr/ta_AD.o: ../../../../../src/ta_func/ta_AD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_AD.o ../../../../../src/ta_func/ta_AD.c + +../../../../../temp/csr/ta_ADD.o: ../../../../../src/ta_func/ta_ADD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_ADD.o ../../../../../src/ta_func/ta_ADD.c + +../../../../../temp/csr/ta_ADOSC.o: ../../../../../src/ta_func/ta_ADOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_ADOSC.o ../../../../../src/ta_func/ta_ADOSC.c + +../../../../../temp/csr/ta_ADX.o: ../../../../../src/ta_func/ta_ADX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_ADX.o ../../../../../src/ta_func/ta_ADX.c + +../../../../../temp/csr/ta_ADXR.o: ../../../../../src/ta_func/ta_ADXR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_ADXR.o ../../../../../src/ta_func/ta_ADXR.c + +../../../../../temp/csr/ta_APO.o: ../../../../../src/ta_func/ta_APO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_APO.o ../../../../../src/ta_func/ta_APO.c + +../../../../../temp/csr/ta_AROON.o: ../../../../../src/ta_func/ta_AROON.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_AROON.o ../../../../../src/ta_func/ta_AROON.c + +../../../../../temp/csr/ta_AROONOSC.o: ../../../../../src/ta_func/ta_AROONOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_AROONOSC.o ../../../../../src/ta_func/ta_AROONOSC.c + +../../../../../temp/csr/ta_ASIN.o: ../../../../../src/ta_func/ta_ASIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_ASIN.o ../../../../../src/ta_func/ta_ASIN.c + +../../../../../temp/csr/ta_ATAN.o: ../../../../../src/ta_func/ta_ATAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_ATAN.o ../../../../../src/ta_func/ta_ATAN.c + +../../../../../temp/csr/ta_ATR.o: ../../../../../src/ta_func/ta_ATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_ATR.o ../../../../../src/ta_func/ta_ATR.c + +../../../../../temp/csr/ta_AVGPRICE.o: ../../../../../src/ta_func/ta_AVGPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_AVGPRICE.o ../../../../../src/ta_func/ta_AVGPRICE.c + +../../../../../temp/csr/ta_BBANDS.o: ../../../../../src/ta_func/ta_BBANDS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_BBANDS.o ../../../../../src/ta_func/ta_BBANDS.c + +../../../../../temp/csr/ta_BETA.o: ../../../../../src/ta_func/ta_BETA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_BETA.o ../../../../../src/ta_func/ta_BETA.c + +../../../../../temp/csr/ta_BOP.o: ../../../../../src/ta_func/ta_BOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_BOP.o ../../../../../src/ta_func/ta_BOP.c + +../../../../../temp/csr/ta_CCI.o: ../../../../../src/ta_func/ta_CCI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CCI.o ../../../../../src/ta_func/ta_CCI.c + +../../../../../temp/csr/ta_CDL2CROWS.o: ../../../../../src/ta_func/ta_CDL2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDL2CROWS.o ../../../../../src/ta_func/ta_CDL2CROWS.c + +../../../../../temp/csr/ta_CDL3BLACKCROWS.o: ../../../../../src/ta_func/ta_CDL3BLACKCROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDL3BLACKCROWS.o ../../../../../src/ta_func/ta_CDL3BLACKCROWS.c + +../../../../../temp/csr/ta_CDL3INSIDE.o: ../../../../../src/ta_func/ta_CDL3INSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDL3INSIDE.o ../../../../../src/ta_func/ta_CDL3INSIDE.c + +../../../../../temp/csr/ta_CDL3LINESTRIKE.o: ../../../../../src/ta_func/ta_CDL3LINESTRIKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDL3LINESTRIKE.o ../../../../../src/ta_func/ta_CDL3LINESTRIKE.c + +../../../../../temp/csr/ta_CDL3OUTSIDE.o: ../../../../../src/ta_func/ta_CDL3OUTSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDL3OUTSIDE.o ../../../../../src/ta_func/ta_CDL3OUTSIDE.c + +../../../../../temp/csr/ta_CDL3STARSINSOUTH.o: ../../../../../src/ta_func/ta_CDL3STARSINSOUTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDL3STARSINSOUTH.o ../../../../../src/ta_func/ta_CDL3STARSINSOUTH.c + +../../../../../temp/csr/ta_CDL3WHITESOLDIERS.o: ../../../../../src/ta_func/ta_CDL3WHITESOLDIERS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDL3WHITESOLDIERS.o ../../../../../src/ta_func/ta_CDL3WHITESOLDIERS.c + +../../../../../temp/csr/ta_CDLABANDONEDBABY.o: ../../../../../src/ta_func/ta_CDLABANDONEDBABY.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLABANDONEDBABY.o ../../../../../src/ta_func/ta_CDLABANDONEDBABY.c + +../../../../../temp/csr/ta_CDLADVANCEBLOCK.o: ../../../../../src/ta_func/ta_CDLADVANCEBLOCK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLADVANCEBLOCK.o ../../../../../src/ta_func/ta_CDLADVANCEBLOCK.c + +../../../../../temp/csr/ta_CDLBELTHOLD.o: ../../../../../src/ta_func/ta_CDLBELTHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLBELTHOLD.o ../../../../../src/ta_func/ta_CDLBELTHOLD.c + +../../../../../temp/csr/ta_CDLBREAKAWAY.o: ../../../../../src/ta_func/ta_CDLBREAKAWAY.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLBREAKAWAY.o ../../../../../src/ta_func/ta_CDLBREAKAWAY.c + +../../../../../temp/csr/ta_CDLCLOSINGMARUBOZU.o: ../../../../../src/ta_func/ta_CDLCLOSINGMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLCLOSINGMARUBOZU.o ../../../../../src/ta_func/ta_CDLCLOSINGMARUBOZU.c + +../../../../../temp/csr/ta_CDLCONCEALBABYSWALL.o: ../../../../../src/ta_func/ta_CDLCONCEALBABYSWALL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLCONCEALBABYSWALL.o ../../../../../src/ta_func/ta_CDLCONCEALBABYSWALL.c + +../../../../../temp/csr/ta_CDLCOUNTERATTACK.o: ../../../../../src/ta_func/ta_CDLCOUNTERATTACK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLCOUNTERATTACK.o ../../../../../src/ta_func/ta_CDLCOUNTERATTACK.c + +../../../../../temp/csr/ta_CDLDARKCLOUDCOVER.o: ../../../../../src/ta_func/ta_CDLDARKCLOUDCOVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLDARKCLOUDCOVER.o ../../../../../src/ta_func/ta_CDLDARKCLOUDCOVER.c + +../../../../../temp/csr/ta_CDLDOJI.o: ../../../../../src/ta_func/ta_CDLDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLDOJI.o ../../../../../src/ta_func/ta_CDLDOJI.c + +../../../../../temp/csr/ta_CDLDOJISTAR.o: ../../../../../src/ta_func/ta_CDLDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLDOJISTAR.o ../../../../../src/ta_func/ta_CDLDOJISTAR.c + +../../../../../temp/csr/ta_CDLDRAGONFLYDOJI.o: ../../../../../src/ta_func/ta_CDLDRAGONFLYDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLDRAGONFLYDOJI.o ../../../../../src/ta_func/ta_CDLDRAGONFLYDOJI.c + +../../../../../temp/csr/ta_CDLENGULFING.o: ../../../../../src/ta_func/ta_CDLENGULFING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLENGULFING.o ../../../../../src/ta_func/ta_CDLENGULFING.c + +../../../../../temp/csr/ta_CDLEVENINGDOJISTAR.o: ../../../../../src/ta_func/ta_CDLEVENINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLEVENINGDOJISTAR.o ../../../../../src/ta_func/ta_CDLEVENINGDOJISTAR.c + +../../../../../temp/csr/ta_CDLEVENINGSTAR.o: ../../../../../src/ta_func/ta_CDLEVENINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLEVENINGSTAR.o ../../../../../src/ta_func/ta_CDLEVENINGSTAR.c + +../../../../../temp/csr/ta_CDLGAPSIDESIDEWHITE.o: ../../../../../src/ta_func/ta_CDLGAPSIDESIDEWHITE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLGAPSIDESIDEWHITE.o ../../../../../src/ta_func/ta_CDLGAPSIDESIDEWHITE.c + +../../../../../temp/csr/ta_CDLGRAVESTONEDOJI.o: ../../../../../src/ta_func/ta_CDLGRAVESTONEDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLGRAVESTONEDOJI.o ../../../../../src/ta_func/ta_CDLGRAVESTONEDOJI.c + +../../../../../temp/csr/ta_CDLHAMMER.o: ../../../../../src/ta_func/ta_CDLHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLHAMMER.o ../../../../../src/ta_func/ta_CDLHAMMER.c + +../../../../../temp/csr/ta_CDLHANGINGMAN.o: ../../../../../src/ta_func/ta_CDLHANGINGMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLHANGINGMAN.o ../../../../../src/ta_func/ta_CDLHANGINGMAN.c + +../../../../../temp/csr/ta_CDLHARAMI.o: ../../../../../src/ta_func/ta_CDLHARAMI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLHARAMI.o ../../../../../src/ta_func/ta_CDLHARAMI.c + +../../../../../temp/csr/ta_CDLHARAMICROSS.o: ../../../../../src/ta_func/ta_CDLHARAMICROSS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLHARAMICROSS.o ../../../../../src/ta_func/ta_CDLHARAMICROSS.c + +../../../../../temp/csr/ta_CDLHIGHWAVE.o: ../../../../../src/ta_func/ta_CDLHIGHWAVE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLHIGHWAVE.o ../../../../../src/ta_func/ta_CDLHIGHWAVE.c + +../../../../../temp/csr/ta_CDLHIKKAKE.o: ../../../../../src/ta_func/ta_CDLHIKKAKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLHIKKAKE.o ../../../../../src/ta_func/ta_CDLHIKKAKE.c + +../../../../../temp/csr/ta_CDLHIKKAKEMOD.o: ../../../../../src/ta_func/ta_CDLHIKKAKEMOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLHIKKAKEMOD.o ../../../../../src/ta_func/ta_CDLHIKKAKEMOD.c + +../../../../../temp/csr/ta_CDLHOMINGPIGEON.o: ../../../../../src/ta_func/ta_CDLHOMINGPIGEON.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLHOMINGPIGEON.o ../../../../../src/ta_func/ta_CDLHOMINGPIGEON.c + +../../../../../temp/csr/ta_CDLIDENTICAL3CROWS.o: ../../../../../src/ta_func/ta_CDLIDENTICAL3CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLIDENTICAL3CROWS.o ../../../../../src/ta_func/ta_CDLIDENTICAL3CROWS.c + +../../../../../temp/csr/ta_CDLINNECK.o: ../../../../../src/ta_func/ta_CDLINNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLINNECK.o ../../../../../src/ta_func/ta_CDLINNECK.c + +../../../../../temp/csr/ta_CDLINVERTEDHAMMER.o: ../../../../../src/ta_func/ta_CDLINVERTEDHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLINVERTEDHAMMER.o ../../../../../src/ta_func/ta_CDLINVERTEDHAMMER.c + +../../../../../temp/csr/ta_CDLKICKING.o: ../../../../../src/ta_func/ta_CDLKICKING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLKICKING.o ../../../../../src/ta_func/ta_CDLKICKING.c + +../../../../../temp/csr/ta_CDLKICKINGBYLENGTH.o: ../../../../../src/ta_func/ta_CDLKICKINGBYLENGTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLKICKINGBYLENGTH.o ../../../../../src/ta_func/ta_CDLKICKINGBYLENGTH.c + +../../../../../temp/csr/ta_CDLLADDERBOTTOM.o: ../../../../../src/ta_func/ta_CDLLADDERBOTTOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLLADDERBOTTOM.o ../../../../../src/ta_func/ta_CDLLADDERBOTTOM.c + +../../../../../temp/csr/ta_CDLLONGLEGGEDDOJI.o: ../../../../../src/ta_func/ta_CDLLONGLEGGEDDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLLONGLEGGEDDOJI.o ../../../../../src/ta_func/ta_CDLLONGLEGGEDDOJI.c + +../../../../../temp/csr/ta_CDLLONGLINE.o: ../../../../../src/ta_func/ta_CDLLONGLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLLONGLINE.o ../../../../../src/ta_func/ta_CDLLONGLINE.c + +../../../../../temp/csr/ta_CDLMARUBOZU.o: ../../../../../src/ta_func/ta_CDLMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLMARUBOZU.o ../../../../../src/ta_func/ta_CDLMARUBOZU.c + +../../../../../temp/csr/ta_CDLMATCHINGLOW.o: ../../../../../src/ta_func/ta_CDLMATCHINGLOW.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLMATCHINGLOW.o ../../../../../src/ta_func/ta_CDLMATCHINGLOW.c + +../../../../../temp/csr/ta_CDLMATHOLD.o: ../../../../../src/ta_func/ta_CDLMATHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLMATHOLD.o ../../../../../src/ta_func/ta_CDLMATHOLD.c + +../../../../../temp/csr/ta_CDLMORNINGDOJISTAR.o: ../../../../../src/ta_func/ta_CDLMORNINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLMORNINGDOJISTAR.o ../../../../../src/ta_func/ta_CDLMORNINGDOJISTAR.c + +../../../../../temp/csr/ta_CDLMORNINGSTAR.o: ../../../../../src/ta_func/ta_CDLMORNINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLMORNINGSTAR.o ../../../../../src/ta_func/ta_CDLMORNINGSTAR.c + +../../../../../temp/csr/ta_CDLONNECK.o: ../../../../../src/ta_func/ta_CDLONNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLONNECK.o ../../../../../src/ta_func/ta_CDLONNECK.c + +../../../../../temp/csr/ta_CDLPIERCING.o: ../../../../../src/ta_func/ta_CDLPIERCING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLPIERCING.o ../../../../../src/ta_func/ta_CDLPIERCING.c + +../../../../../temp/csr/ta_CDLRICKSHAWMAN.o: ../../../../../src/ta_func/ta_CDLRICKSHAWMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLRICKSHAWMAN.o ../../../../../src/ta_func/ta_CDLRICKSHAWMAN.c + +../../../../../temp/csr/ta_CDLRISEFALL3METHODS.o: ../../../../../src/ta_func/ta_CDLRISEFALL3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLRISEFALL3METHODS.o ../../../../../src/ta_func/ta_CDLRISEFALL3METHODS.c + +../../../../../temp/csr/ta_CDLSEPARATINGLINES.o: ../../../../../src/ta_func/ta_CDLSEPARATINGLINES.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLSEPARATINGLINES.o ../../../../../src/ta_func/ta_CDLSEPARATINGLINES.c + +../../../../../temp/csr/ta_CDLSHOOTINGSTAR.o: ../../../../../src/ta_func/ta_CDLSHOOTINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLSHOOTINGSTAR.o ../../../../../src/ta_func/ta_CDLSHOOTINGSTAR.c + +../../../../../temp/csr/ta_CDLSHORTLINE.o: ../../../../../src/ta_func/ta_CDLSHORTLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLSHORTLINE.o ../../../../../src/ta_func/ta_CDLSHORTLINE.c + +../../../../../temp/csr/ta_CDLSPINNINGTOP.o: ../../../../../src/ta_func/ta_CDLSPINNINGTOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLSPINNINGTOP.o ../../../../../src/ta_func/ta_CDLSPINNINGTOP.c + +../../../../../temp/csr/ta_CDLSTALLEDPATTERN.o: ../../../../../src/ta_func/ta_CDLSTALLEDPATTERN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLSTALLEDPATTERN.o ../../../../../src/ta_func/ta_CDLSTALLEDPATTERN.c + +../../../../../temp/csr/ta_CDLSTICKSANDWICH.o: ../../../../../src/ta_func/ta_CDLSTICKSANDWICH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLSTICKSANDWICH.o ../../../../../src/ta_func/ta_CDLSTICKSANDWICH.c + +../../../../../temp/csr/ta_CDLTAKURI.o: ../../../../../src/ta_func/ta_CDLTAKURI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLTAKURI.o ../../../../../src/ta_func/ta_CDLTAKURI.c + +../../../../../temp/csr/ta_CDLTASUKIGAP.o: ../../../../../src/ta_func/ta_CDLTASUKIGAP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLTASUKIGAP.o ../../../../../src/ta_func/ta_CDLTASUKIGAP.c + +../../../../../temp/csr/ta_CDLTHRUSTING.o: ../../../../../src/ta_func/ta_CDLTHRUSTING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLTHRUSTING.o ../../../../../src/ta_func/ta_CDLTHRUSTING.c + +../../../../../temp/csr/ta_CDLTRISTAR.o: ../../../../../src/ta_func/ta_CDLTRISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLTRISTAR.o ../../../../../src/ta_func/ta_CDLTRISTAR.c + +../../../../../temp/csr/ta_CDLUNIQUE3RIVER.o: ../../../../../src/ta_func/ta_CDLUNIQUE3RIVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLUNIQUE3RIVER.o ../../../../../src/ta_func/ta_CDLUNIQUE3RIVER.c + +../../../../../temp/csr/ta_CDLUPSIDEGAP2CROWS.o: ../../../../../src/ta_func/ta_CDLUPSIDEGAP2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLUPSIDEGAP2CROWS.o ../../../../../src/ta_func/ta_CDLUPSIDEGAP2CROWS.c + +../../../../../temp/csr/ta_CDLXSIDEGAP3METHODS.o: ../../../../../src/ta_func/ta_CDLXSIDEGAP3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLXSIDEGAP3METHODS.o ../../../../../src/ta_func/ta_CDLXSIDEGAP3METHODS.c + +../../../../../temp/csr/ta_CEIL.o: ../../../../../src/ta_func/ta_CEIL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CEIL.o ../../../../../src/ta_func/ta_CEIL.c + +../../../../../temp/csr/ta_CMO.o: ../../../../../src/ta_func/ta_CMO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CMO.o ../../../../../src/ta_func/ta_CMO.c + +../../../../../temp/csr/ta_CORREL.o: ../../../../../src/ta_func/ta_CORREL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CORREL.o ../../../../../src/ta_func/ta_CORREL.c + +../../../../../temp/csr/ta_COS.o: ../../../../../src/ta_func/ta_COS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_COS.o ../../../../../src/ta_func/ta_COS.c + +../../../../../temp/csr/ta_COSH.o: ../../../../../src/ta_func/ta_COSH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_COSH.o ../../../../../src/ta_func/ta_COSH.c + +../../../../../temp/csr/ta_DEMA.o: ../../../../../src/ta_func/ta_DEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_DEMA.o ../../../../../src/ta_func/ta_DEMA.c + +../../../../../temp/csr/ta_DIV.o: ../../../../../src/ta_func/ta_DIV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_DIV.o ../../../../../src/ta_func/ta_DIV.c + +../../../../../temp/csr/ta_DX.o: ../../../../../src/ta_func/ta_DX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_DX.o ../../../../../src/ta_func/ta_DX.c + +../../../../../temp/csr/ta_EMA.o: ../../../../../src/ta_func/ta_EMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_EMA.o ../../../../../src/ta_func/ta_EMA.c + +../../../../../temp/csr/ta_EXP.o: ../../../../../src/ta_func/ta_EXP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_EXP.o ../../../../../src/ta_func/ta_EXP.c + +../../../../../temp/csr/ta_FLOOR.o: ../../../../../src/ta_func/ta_FLOOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_FLOOR.o ../../../../../src/ta_func/ta_FLOOR.c + +../../../../../temp/csr/ta_HT_DCPERIOD.o: ../../../../../src/ta_func/ta_HT_DCPERIOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_HT_DCPERIOD.o ../../../../../src/ta_func/ta_HT_DCPERIOD.c + +../../../../../temp/csr/ta_HT_DCPHASE.o: ../../../../../src/ta_func/ta_HT_DCPHASE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_HT_DCPHASE.o ../../../../../src/ta_func/ta_HT_DCPHASE.c + +../../../../../temp/csr/ta_HT_PHASOR.o: ../../../../../src/ta_func/ta_HT_PHASOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_HT_PHASOR.o ../../../../../src/ta_func/ta_HT_PHASOR.c + +../../../../../temp/csr/ta_HT_SINE.o: ../../../../../src/ta_func/ta_HT_SINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_HT_SINE.o ../../../../../src/ta_func/ta_HT_SINE.c + +../../../../../temp/csr/ta_HT_TRENDLINE.o: ../../../../../src/ta_func/ta_HT_TRENDLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_HT_TRENDLINE.o ../../../../../src/ta_func/ta_HT_TRENDLINE.c + +../../../../../temp/csr/ta_HT_TRENDMODE.o: ../../../../../src/ta_func/ta_HT_TRENDMODE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_HT_TRENDMODE.o ../../../../../src/ta_func/ta_HT_TRENDMODE.c + +../../../../../temp/csr/ta_KAMA.o: ../../../../../src/ta_func/ta_KAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_KAMA.o ../../../../../src/ta_func/ta_KAMA.c + +../../../../../temp/csr/ta_LINEARREG.o: ../../../../../src/ta_func/ta_LINEARREG.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_LINEARREG.o ../../../../../src/ta_func/ta_LINEARREG.c + +../../../../../temp/csr/ta_LINEARREG_ANGLE.o: ../../../../../src/ta_func/ta_LINEARREG_ANGLE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_LINEARREG_ANGLE.o ../../../../../src/ta_func/ta_LINEARREG_ANGLE.c + +../../../../../temp/csr/ta_LINEARREG_INTERCEPT.o: ../../../../../src/ta_func/ta_LINEARREG_INTERCEPT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_LINEARREG_INTERCEPT.o ../../../../../src/ta_func/ta_LINEARREG_INTERCEPT.c + +../../../../../temp/csr/ta_LINEARREG_SLOPE.o: ../../../../../src/ta_func/ta_LINEARREG_SLOPE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_LINEARREG_SLOPE.o ../../../../../src/ta_func/ta_LINEARREG_SLOPE.c + +../../../../../temp/csr/ta_LN.o: ../../../../../src/ta_func/ta_LN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_LN.o ../../../../../src/ta_func/ta_LN.c + +../../../../../temp/csr/ta_LOG10.o: ../../../../../src/ta_func/ta_LOG10.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_LOG10.o ../../../../../src/ta_func/ta_LOG10.c + +../../../../../temp/csr/ta_MA.o: ../../../../../src/ta_func/ta_MA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_MA.o ../../../../../src/ta_func/ta_MA.c + +../../../../../temp/csr/ta_MACD.o: ../../../../../src/ta_func/ta_MACD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_MACD.o ../../../../../src/ta_func/ta_MACD.c + +../../../../../temp/csr/ta_MACDEXT.o: ../../../../../src/ta_func/ta_MACDEXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_MACDEXT.o ../../../../../src/ta_func/ta_MACDEXT.c + +../../../../../temp/csr/ta_MACDFIX.o: ../../../../../src/ta_func/ta_MACDFIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_MACDFIX.o ../../../../../src/ta_func/ta_MACDFIX.c + +../../../../../temp/csr/ta_MAMA.o: ../../../../../src/ta_func/ta_MAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_MAMA.o ../../../../../src/ta_func/ta_MAMA.c + +../../../../../temp/csr/ta_MAVP.o: ../../../../../src/ta_func/ta_MAVP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_MAVP.o ../../../../../src/ta_func/ta_MAVP.c + +../../../../../temp/csr/ta_MAX.o: ../../../../../src/ta_func/ta_MAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_MAX.o ../../../../../src/ta_func/ta_MAX.c + +../../../../../temp/csr/ta_MAXINDEX.o: ../../../../../src/ta_func/ta_MAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_MAXINDEX.o ../../../../../src/ta_func/ta_MAXINDEX.c + +../../../../../temp/csr/ta_MEDPRICE.o: ../../../../../src/ta_func/ta_MEDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_MEDPRICE.o ../../../../../src/ta_func/ta_MEDPRICE.c + +../../../../../temp/csr/ta_MFI.o: ../../../../../src/ta_func/ta_MFI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_MFI.o ../../../../../src/ta_func/ta_MFI.c + +../../../../../temp/csr/ta_MIDPOINT.o: ../../../../../src/ta_func/ta_MIDPOINT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_MIDPOINT.o ../../../../../src/ta_func/ta_MIDPOINT.c + +../../../../../temp/csr/ta_MIDPRICE.o: ../../../../../src/ta_func/ta_MIDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_MIDPRICE.o ../../../../../src/ta_func/ta_MIDPRICE.c + +../../../../../temp/csr/ta_MIN.o: ../../../../../src/ta_func/ta_MIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_MIN.o ../../../../../src/ta_func/ta_MIN.c + +../../../../../temp/csr/ta_MININDEX.o: ../../../../../src/ta_func/ta_MININDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_MININDEX.o ../../../../../src/ta_func/ta_MININDEX.c + +../../../../../temp/csr/ta_MINMAX.o: ../../../../../src/ta_func/ta_MINMAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_MINMAX.o ../../../../../src/ta_func/ta_MINMAX.c + +../../../../../temp/csr/ta_MINMAXINDEX.o: ../../../../../src/ta_func/ta_MINMAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_MINMAXINDEX.o ../../../../../src/ta_func/ta_MINMAXINDEX.c + +../../../../../temp/csr/ta_MINUS_DI.o: ../../../../../src/ta_func/ta_MINUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_MINUS_DI.o ../../../../../src/ta_func/ta_MINUS_DI.c + +../../../../../temp/csr/ta_MINUS_DM.o: ../../../../../src/ta_func/ta_MINUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_MINUS_DM.o ../../../../../src/ta_func/ta_MINUS_DM.c + +../../../../../temp/csr/ta_MOM.o: ../../../../../src/ta_func/ta_MOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_MOM.o ../../../../../src/ta_func/ta_MOM.c + +../../../../../temp/csr/ta_MULT.o: ../../../../../src/ta_func/ta_MULT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_MULT.o ../../../../../src/ta_func/ta_MULT.c + +../../../../../temp/csr/ta_NATR.o: ../../../../../src/ta_func/ta_NATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_NATR.o ../../../../../src/ta_func/ta_NATR.c + +../../../../../temp/csr/ta_OBV.o: ../../../../../src/ta_func/ta_OBV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_OBV.o ../../../../../src/ta_func/ta_OBV.c + +../../../../../temp/csr/ta_PLUS_DI.o: ../../../../../src/ta_func/ta_PLUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_PLUS_DI.o ../../../../../src/ta_func/ta_PLUS_DI.c + +../../../../../temp/csr/ta_PLUS_DM.o: ../../../../../src/ta_func/ta_PLUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_PLUS_DM.o ../../../../../src/ta_func/ta_PLUS_DM.c + +../../../../../temp/csr/ta_PPO.o: ../../../../../src/ta_func/ta_PPO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_PPO.o ../../../../../src/ta_func/ta_PPO.c + +../../../../../temp/csr/ta_ROC.o: ../../../../../src/ta_func/ta_ROC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_ROC.o ../../../../../src/ta_func/ta_ROC.c + +../../../../../temp/csr/ta_ROCP.o: ../../../../../src/ta_func/ta_ROCP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_ROCP.o ../../../../../src/ta_func/ta_ROCP.c + +../../../../../temp/csr/ta_ROCR.o: ../../../../../src/ta_func/ta_ROCR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_ROCR.o ../../../../../src/ta_func/ta_ROCR.c + +../../../../../temp/csr/ta_ROCR100.o: ../../../../../src/ta_func/ta_ROCR100.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_ROCR100.o ../../../../../src/ta_func/ta_ROCR100.c + +../../../../../temp/csr/ta_RSI.o: ../../../../../src/ta_func/ta_RSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_RSI.o ../../../../../src/ta_func/ta_RSI.c + +../../../../../temp/csr/ta_SAR.o: ../../../../../src/ta_func/ta_SAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_SAR.o ../../../../../src/ta_func/ta_SAR.c + +../../../../../temp/csr/ta_SAREXT.o: ../../../../../src/ta_func/ta_SAREXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_SAREXT.o ../../../../../src/ta_func/ta_SAREXT.c + +../../../../../temp/csr/ta_SIN.o: ../../../../../src/ta_func/ta_SIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_SIN.o ../../../../../src/ta_func/ta_SIN.c + +../../../../../temp/csr/ta_SINH.o: ../../../../../src/ta_func/ta_SINH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_SINH.o ../../../../../src/ta_func/ta_SINH.c + +../../../../../temp/csr/ta_SMA.o: ../../../../../src/ta_func/ta_SMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_SMA.o ../../../../../src/ta_func/ta_SMA.c + +../../../../../temp/csr/ta_SQRT.o: ../../../../../src/ta_func/ta_SQRT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_SQRT.o ../../../../../src/ta_func/ta_SQRT.c + +../../../../../temp/csr/ta_STDDEV.o: ../../../../../src/ta_func/ta_STDDEV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_STDDEV.o ../../../../../src/ta_func/ta_STDDEV.c + +../../../../../temp/csr/ta_STOCH.o: ../../../../../src/ta_func/ta_STOCH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_STOCH.o ../../../../../src/ta_func/ta_STOCH.c + +../../../../../temp/csr/ta_STOCHF.o: ../../../../../src/ta_func/ta_STOCHF.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_STOCHF.o ../../../../../src/ta_func/ta_STOCHF.c + +../../../../../temp/csr/ta_STOCHRSI.o: ../../../../../src/ta_func/ta_STOCHRSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_STOCHRSI.o ../../../../../src/ta_func/ta_STOCHRSI.c + +../../../../../temp/csr/ta_SUB.o: ../../../../../src/ta_func/ta_SUB.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_SUB.o ../../../../../src/ta_func/ta_SUB.c + +../../../../../temp/csr/ta_SUM.o: ../../../../../src/ta_func/ta_SUM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_SUM.o ../../../../../src/ta_func/ta_SUM.c + +../../../../../temp/csr/ta_T3.o: ../../../../../src/ta_func/ta_T3.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_T3.o ../../../../../src/ta_func/ta_T3.c + +../../../../../temp/csr/ta_TAN.o: ../../../../../src/ta_func/ta_TAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_TAN.o ../../../../../src/ta_func/ta_TAN.c + +../../../../../temp/csr/ta_TANH.o: ../../../../../src/ta_func/ta_TANH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_TANH.o ../../../../../src/ta_func/ta_TANH.c + +../../../../../temp/csr/ta_TEMA.o: ../../../../../src/ta_func/ta_TEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_TEMA.o ../../../../../src/ta_func/ta_TEMA.c + +../../../../../temp/csr/ta_TRANGE.o: ../../../../../src/ta_func/ta_TRANGE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_TRANGE.o ../../../../../src/ta_func/ta_TRANGE.c + +../../../../../temp/csr/ta_TRIMA.o: ../../../../../src/ta_func/ta_TRIMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_TRIMA.o ../../../../../src/ta_func/ta_TRIMA.c + +../../../../../temp/csr/ta_TRIX.o: ../../../../../src/ta_func/ta_TRIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_TRIX.o ../../../../../src/ta_func/ta_TRIX.c + +../../../../../temp/csr/ta_TSF.o: ../../../../../src/ta_func/ta_TSF.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_TSF.o ../../../../../src/ta_func/ta_TSF.c + +../../../../../temp/csr/ta_TYPPRICE.o: ../../../../../src/ta_func/ta_TYPPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_TYPPRICE.o ../../../../../src/ta_func/ta_TYPPRICE.c + +../../../../../temp/csr/ta_ULTOSC.o: ../../../../../src/ta_func/ta_ULTOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_ULTOSC.o ../../../../../src/ta_func/ta_ULTOSC.c + +../../../../../temp/csr/ta_VAR.o: ../../../../../src/ta_func/ta_VAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_VAR.o ../../../../../src/ta_func/ta_VAR.c + +../../../../../temp/csr/ta_WCLPRICE.o: ../../../../../src/ta_func/ta_WCLPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_WCLPRICE.o ../../../../../src/ta_func/ta_WCLPRICE.c + +../../../../../temp/csr/ta_WILLR.o: ../../../../../src/ta_func/ta_WILLR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_WILLR.o ../../../../../src/ta_func/ta_WILLR.c + +../../../../../temp/csr/ta_WMA.o: ../../../../../src/ta_func/ta_WMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_WMA.o ../../../../../src/ta_func/ta_WMA.c + diff --git a/make/csr/freebsd/g++/ta_libc/Makefile b/make/csr/freebsd/g++/ta_libc/Makefile new file mode 100644 index 000000000..84c8a4675 --- /dev/null +++ b/make/csr/freebsd/g++/ta_libc/Makefile @@ -0,0 +1,1053 @@ +############################################################################# +# Makefile for building ../../../../../lib/libta_libc_csr.a +# Generated by tmake; +# Project: ta_libc/ta_libc +# Template: lib +############################################################################# + +####### Compiler, tools and options + +CC = gcc +CXX = g++ +CFLAGS = -pipe -Wall -W -O2 -fno-strict-aliasing -DTA_SINGLE_THREAD -DNO_DEBUG +CXXFLAGS= -pipe -Wall -W -O2 -fno-strict-aliasing -DTA_SINGLE_THREAD -DNO_DEBUG +INCPATH = -I../../../../../src/ta_common -I../../../../../include -I../../../../../src/ta_abstract -I../../../../../src/ta_abstract/tables -I../../../../../src/ta_abstract/frames -I/usr/local/include -I$(QTDIR)/include +AR = ar cqs +RANLIB = +MOC = $(QTDIR)/bin/moc +UIC = $(QTDIR)/bin/uic + +TAR = tar -cf +GZIP = gzip -9f + +####### Support for 64-bit systems +ifeq ($(shell uname -m), x86_64) + CFLAGS += -march=x86-64 -m64 -D__64BIT__ + CXXFLAGS += -march=x86-64 -m64 -D__64BIT__ +endif + +####### Apply additional overruling user flags, if any +CFLAGS += $(CUSERFLAGS) +CXXFLAGS += $(CUSERFLAGS) + +####### Files + +HEADERS = +SOURCES = ../../../../../src/ta_common/ta_global.c \ + ../../../../../src/ta_common/ta_retcode.c \ + ../../../../../src/ta_common/ta_version.c \ + ../../../../../src/ta_abstract/ta_abstract.c \ + ../../../../../src/ta_abstract/ta_def_ui.c \ + ../../../../../src/ta_abstract/ta_func_api.c \ + ../../../../../src/ta_abstract/ta_group_idx.c \ + ../../../../../src/ta_abstract/frames/ta_frame.c \ + ../../../../../src/ta_abstract/tables/table_a.c \ + ../../../../../src/ta_abstract/tables/table_b.c \ + ../../../../../src/ta_abstract/tables/table_c.c \ + ../../../../../src/ta_abstract/tables/table_d.c \ + ../../../../../src/ta_abstract/tables/table_e.c \ + ../../../../../src/ta_abstract/tables/table_f.c \ + ../../../../../src/ta_abstract/tables/table_g.c \ + ../../../../../src/ta_abstract/tables/table_h.c \ + ../../../../../src/ta_abstract/tables/table_i.c \ + ../../../../../src/ta_abstract/tables/table_j.c \ + ../../../../../src/ta_abstract/tables/table_k.c \ + ../../../../../src/ta_abstract/tables/table_l.c \ + ../../../../../src/ta_abstract/tables/table_m.c \ + ../../../../../src/ta_abstract/tables/table_n.c \ + ../../../../../src/ta_abstract/tables/table_o.c \ + ../../../../../src/ta_abstract/tables/table_p.c \ + ../../../../../src/ta_abstract/tables/table_q.c \ + ../../../../../src/ta_abstract/tables/table_r.c \ + ../../../../../src/ta_abstract/tables/table_s.c \ + ../../../../../src/ta_abstract/tables/table_t.c \ + ../../../../../src/ta_abstract/tables/table_u.c \ + ../../../../../src/ta_abstract/tables/table_v.c \ + ../../../../../src/ta_abstract/tables/table_w.c \ + ../../../../../src/ta_abstract/tables/table_x.c \ + ../../../../../src/ta_abstract/tables/table_y.c \ + ../../../../../src/ta_abstract/tables/table_z.c \ + ../../../../../src/ta_func/ta_utility.c \ + ../../../../../src/ta_func/ta_ACOS.c \ + ../../../../../src/ta_func/ta_AD.c \ + ../../../../../src/ta_func/ta_ADD.c \ + ../../../../../src/ta_func/ta_ADOSC.c \ + ../../../../../src/ta_func/ta_ADX.c \ + ../../../../../src/ta_func/ta_ADXR.c \ + ../../../../../src/ta_func/ta_APO.c \ + ../../../../../src/ta_func/ta_AROON.c \ + ../../../../../src/ta_func/ta_AROONOSC.c \ + ../../../../../src/ta_func/ta_ASIN.c \ + ../../../../../src/ta_func/ta_ATAN.c \ + ../../../../../src/ta_func/ta_ATR.c \ + ../../../../../src/ta_func/ta_AVGPRICE.c \ + ../../../../../src/ta_func/ta_BBANDS.c \ + ../../../../../src/ta_func/ta_BETA.c \ + ../../../../../src/ta_func/ta_BOP.c \ + ../../../../../src/ta_func/ta_CCI.c \ + ../../../../../src/ta_func/ta_CDL2CROWS.c \ + ../../../../../src/ta_func/ta_CDL3BLACKCROWS.c \ + ../../../../../src/ta_func/ta_CDL3INSIDE.c \ + ../../../../../src/ta_func/ta_CDL3LINESTRIKE.c \ + ../../../../../src/ta_func/ta_CDL3OUTSIDE.c \ + ../../../../../src/ta_func/ta_CDL3STARSINSOUTH.c \ + ../../../../../src/ta_func/ta_CDL3WHITESOLDIERS.c \ + ../../../../../src/ta_func/ta_CDLABANDONEDBABY.c \ + ../../../../../src/ta_func/ta_CDLADVANCEBLOCK.c \ + ../../../../../src/ta_func/ta_CDLBELTHOLD.c \ + ../../../../../src/ta_func/ta_CDLBREAKAWAY.c \ + ../../../../../src/ta_func/ta_CDLCLOSINGMARUBOZU.c \ + ../../../../../src/ta_func/ta_CDLCONCEALBABYSWALL.c \ + ../../../../../src/ta_func/ta_CDLCOUNTERATTACK.c \ + ../../../../../src/ta_func/ta_CDLDARKCLOUDCOVER.c \ + ../../../../../src/ta_func/ta_CDLDOJI.c \ + ../../../../../src/ta_func/ta_CDLDOJISTAR.c \ + ../../../../../src/ta_func/ta_CDLDRAGONFLYDOJI.c \ + ../../../../../src/ta_func/ta_CDLENGULFING.c \ + ../../../../../src/ta_func/ta_CDLEVENINGDOJISTAR.c \ + ../../../../../src/ta_func/ta_CDLEVENINGSTAR.c \ + ../../../../../src/ta_func/ta_CDLGAPSIDESIDEWHITE.c \ + ../../../../../src/ta_func/ta_CDLGRAVESTONEDOJI.c \ + ../../../../../src/ta_func/ta_CDLHAMMER.c \ + ../../../../../src/ta_func/ta_CDLHANGINGMAN.c \ + ../../../../../src/ta_func/ta_CDLHARAMI.c \ + ../../../../../src/ta_func/ta_CDLHARAMICROSS.c \ + ../../../../../src/ta_func/ta_CDLHIGHWAVE.c \ + ../../../../../src/ta_func/ta_CDLHIKKAKE.c \ + ../../../../../src/ta_func/ta_CDLHIKKAKEMOD.c \ + ../../../../../src/ta_func/ta_CDLHOMINGPIGEON.c \ + ../../../../../src/ta_func/ta_CDLIDENTICAL3CROWS.c \ + ../../../../../src/ta_func/ta_CDLINNECK.c \ + ../../../../../src/ta_func/ta_CDLINVERTEDHAMMER.c \ + ../../../../../src/ta_func/ta_CDLKICKING.c \ + ../../../../../src/ta_func/ta_CDLKICKINGBYLENGTH.c \ + ../../../../../src/ta_func/ta_CDLLADDERBOTTOM.c \ + ../../../../../src/ta_func/ta_CDLLONGLEGGEDDOJI.c \ + ../../../../../src/ta_func/ta_CDLLONGLINE.c \ + ../../../../../src/ta_func/ta_CDLMARUBOZU.c \ + ../../../../../src/ta_func/ta_CDLMATCHINGLOW.c \ + ../../../../../src/ta_func/ta_CDLMATHOLD.c \ + ../../../../../src/ta_func/ta_CDLMORNINGDOJISTAR.c \ + ../../../../../src/ta_func/ta_CDLMORNINGSTAR.c \ + ../../../../../src/ta_func/ta_CDLONNECK.c \ + ../../../../../src/ta_func/ta_CDLPIERCING.c \ + ../../../../../src/ta_func/ta_CDLRICKSHAWMAN.c \ + ../../../../../src/ta_func/ta_CDLRISEFALL3METHODS.c \ + ../../../../../src/ta_func/ta_CDLSEPARATINGLINES.c \ + ../../../../../src/ta_func/ta_CDLSHOOTINGSTAR.c \ + ../../../../../src/ta_func/ta_CDLSHORTLINE.c \ + ../../../../../src/ta_func/ta_CDLSPINNINGTOP.c \ + ../../../../../src/ta_func/ta_CDLSTALLEDPATTERN.c \ + ../../../../../src/ta_func/ta_CDLSTICKSANDWICH.c \ + ../../../../../src/ta_func/ta_CDLTAKURI.c \ + ../../../../../src/ta_func/ta_CDLTASUKIGAP.c \ + ../../../../../src/ta_func/ta_CDLTHRUSTING.c \ + ../../../../../src/ta_func/ta_CDLTRISTAR.c \ + ../../../../../src/ta_func/ta_CDLUNIQUE3RIVER.c \ + ../../../../../src/ta_func/ta_CDLUPSIDEGAP2CROWS.c \ + ../../../../../src/ta_func/ta_CDLXSIDEGAP3METHODS.c \ + ../../../../../src/ta_func/ta_CEIL.c \ + ../../../../../src/ta_func/ta_CMO.c \ + ../../../../../src/ta_func/ta_CORREL.c \ + ../../../../../src/ta_func/ta_COS.c \ + ../../../../../src/ta_func/ta_COSH.c \ + ../../../../../src/ta_func/ta_DEMA.c \ + ../../../../../src/ta_func/ta_DIV.c \ + ../../../../../src/ta_func/ta_DX.c \ + ../../../../../src/ta_func/ta_EMA.c \ + ../../../../../src/ta_func/ta_EXP.c \ + ../../../../../src/ta_func/ta_FLOOR.c \ + ../../../../../src/ta_func/ta_HT_DCPERIOD.c \ + ../../../../../src/ta_func/ta_HT_DCPHASE.c \ + ../../../../../src/ta_func/ta_HT_PHASOR.c \ + ../../../../../src/ta_func/ta_HT_SINE.c \ + ../../../../../src/ta_func/ta_HT_TRENDLINE.c \ + ../../../../../src/ta_func/ta_HT_TRENDMODE.c \ + ../../../../../src/ta_func/ta_KAMA.c \ + ../../../../../src/ta_func/ta_LINEARREG.c \ + ../../../../../src/ta_func/ta_LINEARREG_ANGLE.c \ + ../../../../../src/ta_func/ta_LINEARREG_INTERCEPT.c \ + ../../../../../src/ta_func/ta_LINEARREG_SLOPE.c \ + ../../../../../src/ta_func/ta_LN.c \ + ../../../../../src/ta_func/ta_LOG10.c \ + ../../../../../src/ta_func/ta_MA.c \ + ../../../../../src/ta_func/ta_MACD.c \ + ../../../../../src/ta_func/ta_MACDEXT.c \ + ../../../../../src/ta_func/ta_MACDFIX.c \ + ../../../../../src/ta_func/ta_MAMA.c \ + ../../../../../src/ta_func/ta_MAVP.c \ + ../../../../../src/ta_func/ta_MAX.c \ + ../../../../../src/ta_func/ta_MAXINDEX.c \ + ../../../../../src/ta_func/ta_MEDPRICE.c \ + ../../../../../src/ta_func/ta_MFI.c \ + ../../../../../src/ta_func/ta_MIDPOINT.c \ + ../../../../../src/ta_func/ta_MIDPRICE.c \ + ../../../../../src/ta_func/ta_MIN.c \ + ../../../../../src/ta_func/ta_MININDEX.c \ + ../../../../../src/ta_func/ta_MINMAX.c \ + ../../../../../src/ta_func/ta_MINMAXINDEX.c \ + ../../../../../src/ta_func/ta_MINUS_DI.c \ + ../../../../../src/ta_func/ta_MINUS_DM.c \ + ../../../../../src/ta_func/ta_MOM.c \ + ../../../../../src/ta_func/ta_MULT.c \ + ../../../../../src/ta_func/ta_NATR.c \ + ../../../../../src/ta_func/ta_OBV.c \ + ../../../../../src/ta_func/ta_PLUS_DI.c \ + ../../../../../src/ta_func/ta_PLUS_DM.c \ + ../../../../../src/ta_func/ta_PPO.c \ + ../../../../../src/ta_func/ta_ROC.c \ + ../../../../../src/ta_func/ta_ROCP.c \ + ../../../../../src/ta_func/ta_ROCR.c \ + ../../../../../src/ta_func/ta_ROCR100.c \ + ../../../../../src/ta_func/ta_RSI.c \ + ../../../../../src/ta_func/ta_SAR.c \ + ../../../../../src/ta_func/ta_SAREXT.c \ + ../../../../../src/ta_func/ta_SIN.c \ + ../../../../../src/ta_func/ta_SINH.c \ + ../../../../../src/ta_func/ta_SMA.c \ + ../../../../../src/ta_func/ta_SQRT.c \ + ../../../../../src/ta_func/ta_STDDEV.c \ + ../../../../../src/ta_func/ta_STOCH.c \ + ../../../../../src/ta_func/ta_STOCHF.c \ + ../../../../../src/ta_func/ta_STOCHRSI.c \ + ../../../../../src/ta_func/ta_SUB.c \ + ../../../../../src/ta_func/ta_SUM.c \ + ../../../../../src/ta_func/ta_T3.c \ + ../../../../../src/ta_func/ta_TAN.c \ + ../../../../../src/ta_func/ta_TANH.c \ + ../../../../../src/ta_func/ta_TEMA.c \ + ../../../../../src/ta_func/ta_TRANGE.c \ + ../../../../../src/ta_func/ta_TRIMA.c \ + ../../../../../src/ta_func/ta_TRIX.c \ + ../../../../../src/ta_func/ta_TSF.c \ + ../../../../../src/ta_func/ta_TYPPRICE.c \ + ../../../../../src/ta_func/ta_ULTOSC.c \ + ../../../../../src/ta_func/ta_VAR.c \ + ../../../../../src/ta_func/ta_WCLPRICE.c \ + ../../../../../src/ta_func/ta_WILLR.c \ + ../../../../../src/ta_func/ta_WMA.c +OBJECTS = ../../../../../temp/csr/ta_global.o \ + ../../../../../temp/csr/ta_retcode.o \ + ../../../../../temp/csr/ta_version.o \ + ../../../../../temp/csr/ta_abstract.o \ + ../../../../../temp/csr/ta_def_ui.o \ + ../../../../../temp/csr/ta_func_api.o \ + ../../../../../temp/csr/ta_group_idx.o \ + ../../../../../temp/csr/ta_frame.o \ + ../../../../../temp/csr/table_a.o \ + ../../../../../temp/csr/table_b.o \ + ../../../../../temp/csr/table_c.o \ + ../../../../../temp/csr/table_d.o \ + ../../../../../temp/csr/table_e.o \ + ../../../../../temp/csr/table_f.o \ + ../../../../../temp/csr/table_g.o \ + ../../../../../temp/csr/table_h.o \ + ../../../../../temp/csr/table_i.o \ + ../../../../../temp/csr/table_j.o \ + ../../../../../temp/csr/table_k.o \ + ../../../../../temp/csr/table_l.o \ + ../../../../../temp/csr/table_m.o \ + ../../../../../temp/csr/table_n.o \ + ../../../../../temp/csr/table_o.o \ + ../../../../../temp/csr/table_p.o \ + ../../../../../temp/csr/table_q.o \ + ../../../../../temp/csr/table_r.o \ + ../../../../../temp/csr/table_s.o \ + ../../../../../temp/csr/table_t.o \ + ../../../../../temp/csr/table_u.o \ + ../../../../../temp/csr/table_v.o \ + ../../../../../temp/csr/table_w.o \ + ../../../../../temp/csr/table_x.o \ + ../../../../../temp/csr/table_y.o \ + ../../../../../temp/csr/table_z.o \ + ../../../../../temp/csr/ta_utility.o \ + ../../../../../temp/csr/ta_ACOS.o \ + ../../../../../temp/csr/ta_AD.o \ + ../../../../../temp/csr/ta_ADD.o \ + ../../../../../temp/csr/ta_ADOSC.o \ + ../../../../../temp/csr/ta_ADX.o \ + ../../../../../temp/csr/ta_ADXR.o \ + ../../../../../temp/csr/ta_APO.o \ + ../../../../../temp/csr/ta_AROON.o \ + ../../../../../temp/csr/ta_AROONOSC.o \ + ../../../../../temp/csr/ta_ASIN.o \ + ../../../../../temp/csr/ta_ATAN.o \ + ../../../../../temp/csr/ta_ATR.o \ + ../../../../../temp/csr/ta_AVGPRICE.o \ + ../../../../../temp/csr/ta_BBANDS.o \ + ../../../../../temp/csr/ta_BETA.o \ + ../../../../../temp/csr/ta_BOP.o \ + ../../../../../temp/csr/ta_CCI.o \ + ../../../../../temp/csr/ta_CDL2CROWS.o \ + ../../../../../temp/csr/ta_CDL3BLACKCROWS.o \ + ../../../../../temp/csr/ta_CDL3INSIDE.o \ + ../../../../../temp/csr/ta_CDL3LINESTRIKE.o \ + ../../../../../temp/csr/ta_CDL3OUTSIDE.o \ + ../../../../../temp/csr/ta_CDL3STARSINSOUTH.o \ + ../../../../../temp/csr/ta_CDL3WHITESOLDIERS.o \ + ../../../../../temp/csr/ta_CDLABANDONEDBABY.o \ + ../../../../../temp/csr/ta_CDLADVANCEBLOCK.o \ + ../../../../../temp/csr/ta_CDLBELTHOLD.o \ + ../../../../../temp/csr/ta_CDLBREAKAWAY.o \ + ../../../../../temp/csr/ta_CDLCLOSINGMARUBOZU.o \ + ../../../../../temp/csr/ta_CDLCONCEALBABYSWALL.o \ + ../../../../../temp/csr/ta_CDLCOUNTERATTACK.o \ + ../../../../../temp/csr/ta_CDLDARKCLOUDCOVER.o \ + ../../../../../temp/csr/ta_CDLDOJI.o \ + ../../../../../temp/csr/ta_CDLDOJISTAR.o \ + ../../../../../temp/csr/ta_CDLDRAGONFLYDOJI.o \ + ../../../../../temp/csr/ta_CDLENGULFING.o \ + ../../../../../temp/csr/ta_CDLEVENINGDOJISTAR.o \ + ../../../../../temp/csr/ta_CDLEVENINGSTAR.o \ + ../../../../../temp/csr/ta_CDLGAPSIDESIDEWHITE.o \ + ../../../../../temp/csr/ta_CDLGRAVESTONEDOJI.o \ + ../../../../../temp/csr/ta_CDLHAMMER.o \ + ../../../../../temp/csr/ta_CDLHANGINGMAN.o \ + ../../../../../temp/csr/ta_CDLHARAMI.o \ + ../../../../../temp/csr/ta_CDLHARAMICROSS.o \ + ../../../../../temp/csr/ta_CDLHIGHWAVE.o \ + ../../../../../temp/csr/ta_CDLHIKKAKE.o \ + ../../../../../temp/csr/ta_CDLHIKKAKEMOD.o \ + ../../../../../temp/csr/ta_CDLHOMINGPIGEON.o \ + ../../../../../temp/csr/ta_CDLIDENTICAL3CROWS.o \ + ../../../../../temp/csr/ta_CDLINNECK.o \ + ../../../../../temp/csr/ta_CDLINVERTEDHAMMER.o \ + ../../../../../temp/csr/ta_CDLKICKING.o \ + ../../../../../temp/csr/ta_CDLKICKINGBYLENGTH.o \ + ../../../../../temp/csr/ta_CDLLADDERBOTTOM.o \ + ../../../../../temp/csr/ta_CDLLONGLEGGEDDOJI.o \ + ../../../../../temp/csr/ta_CDLLONGLINE.o \ + ../../../../../temp/csr/ta_CDLMARUBOZU.o \ + ../../../../../temp/csr/ta_CDLMATCHINGLOW.o \ + ../../../../../temp/csr/ta_CDLMATHOLD.o \ + ../../../../../temp/csr/ta_CDLMORNINGDOJISTAR.o \ + ../../../../../temp/csr/ta_CDLMORNINGSTAR.o \ + ../../../../../temp/csr/ta_CDLONNECK.o \ + ../../../../../temp/csr/ta_CDLPIERCING.o \ + ../../../../../temp/csr/ta_CDLRICKSHAWMAN.o \ + ../../../../../temp/csr/ta_CDLRISEFALL3METHODS.o \ + ../../../../../temp/csr/ta_CDLSEPARATINGLINES.o \ + ../../../../../temp/csr/ta_CDLSHOOTINGSTAR.o \ + ../../../../../temp/csr/ta_CDLSHORTLINE.o \ + ../../../../../temp/csr/ta_CDLSPINNINGTOP.o \ + ../../../../../temp/csr/ta_CDLSTALLEDPATTERN.o \ + ../../../../../temp/csr/ta_CDLSTICKSANDWICH.o \ + ../../../../../temp/csr/ta_CDLTAKURI.o \ + ../../../../../temp/csr/ta_CDLTASUKIGAP.o \ + ../../../../../temp/csr/ta_CDLTHRUSTING.o \ + ../../../../../temp/csr/ta_CDLTRISTAR.o \ + ../../../../../temp/csr/ta_CDLUNIQUE3RIVER.o \ + ../../../../../temp/csr/ta_CDLUPSIDEGAP2CROWS.o \ + ../../../../../temp/csr/ta_CDLXSIDEGAP3METHODS.o \ + ../../../../../temp/csr/ta_CEIL.o \ + ../../../../../temp/csr/ta_CMO.o \ + ../../../../../temp/csr/ta_CORREL.o \ + ../../../../../temp/csr/ta_COS.o \ + ../../../../../temp/csr/ta_COSH.o \ + ../../../../../temp/csr/ta_DEMA.o \ + ../../../../../temp/csr/ta_DIV.o \ + ../../../../../temp/csr/ta_DX.o \ + ../../../../../temp/csr/ta_EMA.o \ + ../../../../../temp/csr/ta_EXP.o \ + ../../../../../temp/csr/ta_FLOOR.o \ + ../../../../../temp/csr/ta_HT_DCPERIOD.o \ + ../../../../../temp/csr/ta_HT_DCPHASE.o \ + ../../../../../temp/csr/ta_HT_PHASOR.o \ + ../../../../../temp/csr/ta_HT_SINE.o \ + ../../../../../temp/csr/ta_HT_TRENDLINE.o \ + ../../../../../temp/csr/ta_HT_TRENDMODE.o \ + ../../../../../temp/csr/ta_KAMA.o \ + ../../../../../temp/csr/ta_LINEARREG.o \ + ../../../../../temp/csr/ta_LINEARREG_ANGLE.o \ + ../../../../../temp/csr/ta_LINEARREG_INTERCEPT.o \ + ../../../../../temp/csr/ta_LINEARREG_SLOPE.o \ + ../../../../../temp/csr/ta_LN.o \ + ../../../../../temp/csr/ta_LOG10.o \ + ../../../../../temp/csr/ta_MA.o \ + ../../../../../temp/csr/ta_MACD.o \ + ../../../../../temp/csr/ta_MACDEXT.o \ + ../../../../../temp/csr/ta_MACDFIX.o \ + ../../../../../temp/csr/ta_MAMA.o \ + ../../../../../temp/csr/ta_MAVP.o \ + ../../../../../temp/csr/ta_MAX.o \ + ../../../../../temp/csr/ta_MAXINDEX.o \ + ../../../../../temp/csr/ta_MEDPRICE.o \ + ../../../../../temp/csr/ta_MFI.o \ + ../../../../../temp/csr/ta_MIDPOINT.o \ + ../../../../../temp/csr/ta_MIDPRICE.o \ + ../../../../../temp/csr/ta_MIN.o \ + ../../../../../temp/csr/ta_MININDEX.o \ + ../../../../../temp/csr/ta_MINMAX.o \ + ../../../../../temp/csr/ta_MINMAXINDEX.o \ + ../../../../../temp/csr/ta_MINUS_DI.o \ + ../../../../../temp/csr/ta_MINUS_DM.o \ + ../../../../../temp/csr/ta_MOM.o \ + ../../../../../temp/csr/ta_MULT.o \ + ../../../../../temp/csr/ta_NATR.o \ + ../../../../../temp/csr/ta_OBV.o \ + ../../../../../temp/csr/ta_PLUS_DI.o \ + ../../../../../temp/csr/ta_PLUS_DM.o \ + ../../../../../temp/csr/ta_PPO.o \ + ../../../../../temp/csr/ta_ROC.o \ + ../../../../../temp/csr/ta_ROCP.o \ + ../../../../../temp/csr/ta_ROCR.o \ + ../../../../../temp/csr/ta_ROCR100.o \ + ../../../../../temp/csr/ta_RSI.o \ + ../../../../../temp/csr/ta_SAR.o \ + ../../../../../temp/csr/ta_SAREXT.o \ + ../../../../../temp/csr/ta_SIN.o \ + ../../../../../temp/csr/ta_SINH.o \ + ../../../../../temp/csr/ta_SMA.o \ + ../../../../../temp/csr/ta_SQRT.o \ + ../../../../../temp/csr/ta_STDDEV.o \ + ../../../../../temp/csr/ta_STOCH.o \ + ../../../../../temp/csr/ta_STOCHF.o \ + ../../../../../temp/csr/ta_STOCHRSI.o \ + ../../../../../temp/csr/ta_SUB.o \ + ../../../../../temp/csr/ta_SUM.o \ + ../../../../../temp/csr/ta_T3.o \ + ../../../../../temp/csr/ta_TAN.o \ + ../../../../../temp/csr/ta_TANH.o \ + ../../../../../temp/csr/ta_TEMA.o \ + ../../../../../temp/csr/ta_TRANGE.o \ + ../../../../../temp/csr/ta_TRIMA.o \ + ../../../../../temp/csr/ta_TRIX.o \ + ../../../../../temp/csr/ta_TSF.o \ + ../../../../../temp/csr/ta_TYPPRICE.o \ + ../../../../../temp/csr/ta_ULTOSC.o \ + ../../../../../temp/csr/ta_VAR.o \ + ../../../../../temp/csr/ta_WCLPRICE.o \ + ../../../../../temp/csr/ta_WILLR.o \ + ../../../../../temp/csr/ta_WMA.o +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ../../../../../lib/libta_libc_csr.a +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .C .c + +.cpp.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cxx.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cc.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.C.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.c.o: + $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $< + +####### Build rules + + +all: $(TARGET) + +staticlib: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + -rm -f $(TARGET) + $(AR) $(TARGET) $(OBJECTS) $(OBJMOC) + +moc: $(SRCMOC) + +clean: + -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) + -rm -f *~ core + +####### Sub-libraries + + +###### Combined headers + + +####### Compile + +../../../../../temp/csr/ta_global.o: ../../../../../src/ta_common/ta_global.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_global.o ../../../../../src/ta_common/ta_global.c + +../../../../../temp/csr/ta_retcode.o: ../../../../../src/ta_common/ta_retcode.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_retcode.o ../../../../../src/ta_common/ta_retcode.c + +../../../../../temp/csr/ta_version.o: ../../../../../src/ta_common/ta_version.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_version.o ../../../../../src/ta_common/ta_version.c + +../../../../../temp/csr/ta_abstract.o: ../../../../../src/ta_abstract/ta_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_abstract.o ../../../../../src/ta_abstract/ta_abstract.c + +../../../../../temp/csr/ta_def_ui.o: ../../../../../src/ta_abstract/ta_def_ui.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_def_ui.o ../../../../../src/ta_abstract/ta_def_ui.c + +../../../../../temp/csr/ta_func_api.o: ../../../../../src/ta_abstract/ta_func_api.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_func_api.o ../../../../../src/ta_abstract/ta_func_api.c + +../../../../../temp/csr/ta_group_idx.o: ../../../../../src/ta_abstract/ta_group_idx.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_group_idx.o ../../../../../src/ta_abstract/ta_group_idx.c + +../../../../../temp/csr/ta_frame.o: ../../../../../src/ta_abstract/frames/ta_frame.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_frame.o ../../../../../src/ta_abstract/frames/ta_frame.c + +../../../../../temp/csr/table_a.o: ../../../../../src/ta_abstract/tables/table_a.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_a.o ../../../../../src/ta_abstract/tables/table_a.c + +../../../../../temp/csr/table_b.o: ../../../../../src/ta_abstract/tables/table_b.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_b.o ../../../../../src/ta_abstract/tables/table_b.c + +../../../../../temp/csr/table_c.o: ../../../../../src/ta_abstract/tables/table_c.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_c.o ../../../../../src/ta_abstract/tables/table_c.c + +../../../../../temp/csr/table_d.o: ../../../../../src/ta_abstract/tables/table_d.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_d.o ../../../../../src/ta_abstract/tables/table_d.c + +../../../../../temp/csr/table_e.o: ../../../../../src/ta_abstract/tables/table_e.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_e.o ../../../../../src/ta_abstract/tables/table_e.c + +../../../../../temp/csr/table_f.o: ../../../../../src/ta_abstract/tables/table_f.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_f.o ../../../../../src/ta_abstract/tables/table_f.c + +../../../../../temp/csr/table_g.o: ../../../../../src/ta_abstract/tables/table_g.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_g.o ../../../../../src/ta_abstract/tables/table_g.c + +../../../../../temp/csr/table_h.o: ../../../../../src/ta_abstract/tables/table_h.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_h.o ../../../../../src/ta_abstract/tables/table_h.c + +../../../../../temp/csr/table_i.o: ../../../../../src/ta_abstract/tables/table_i.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_i.o ../../../../../src/ta_abstract/tables/table_i.c + +../../../../../temp/csr/table_j.o: ../../../../../src/ta_abstract/tables/table_j.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_j.o ../../../../../src/ta_abstract/tables/table_j.c + +../../../../../temp/csr/table_k.o: ../../../../../src/ta_abstract/tables/table_k.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_k.o ../../../../../src/ta_abstract/tables/table_k.c + +../../../../../temp/csr/table_l.o: ../../../../../src/ta_abstract/tables/table_l.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_l.o ../../../../../src/ta_abstract/tables/table_l.c + +../../../../../temp/csr/table_m.o: ../../../../../src/ta_abstract/tables/table_m.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_m.o ../../../../../src/ta_abstract/tables/table_m.c + +../../../../../temp/csr/table_n.o: ../../../../../src/ta_abstract/tables/table_n.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_n.o ../../../../../src/ta_abstract/tables/table_n.c + +../../../../../temp/csr/table_o.o: ../../../../../src/ta_abstract/tables/table_o.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_o.o ../../../../../src/ta_abstract/tables/table_o.c + +../../../../../temp/csr/table_p.o: ../../../../../src/ta_abstract/tables/table_p.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_p.o ../../../../../src/ta_abstract/tables/table_p.c + +../../../../../temp/csr/table_q.o: ../../../../../src/ta_abstract/tables/table_q.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_q.o ../../../../../src/ta_abstract/tables/table_q.c + +../../../../../temp/csr/table_r.o: ../../../../../src/ta_abstract/tables/table_r.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_r.o ../../../../../src/ta_abstract/tables/table_r.c + +../../../../../temp/csr/table_s.o: ../../../../../src/ta_abstract/tables/table_s.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_s.o ../../../../../src/ta_abstract/tables/table_s.c + +../../../../../temp/csr/table_t.o: ../../../../../src/ta_abstract/tables/table_t.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_t.o ../../../../../src/ta_abstract/tables/table_t.c + +../../../../../temp/csr/table_u.o: ../../../../../src/ta_abstract/tables/table_u.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_u.o ../../../../../src/ta_abstract/tables/table_u.c + +../../../../../temp/csr/table_v.o: ../../../../../src/ta_abstract/tables/table_v.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_v.o ../../../../../src/ta_abstract/tables/table_v.c + +../../../../../temp/csr/table_w.o: ../../../../../src/ta_abstract/tables/table_w.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_w.o ../../../../../src/ta_abstract/tables/table_w.c + +../../../../../temp/csr/table_x.o: ../../../../../src/ta_abstract/tables/table_x.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_x.o ../../../../../src/ta_abstract/tables/table_x.c + +../../../../../temp/csr/table_y.o: ../../../../../src/ta_abstract/tables/table_y.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_y.o ../../../../../src/ta_abstract/tables/table_y.c + +../../../../../temp/csr/table_z.o: ../../../../../src/ta_abstract/tables/table_z.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_z.o ../../../../../src/ta_abstract/tables/table_z.c + +../../../../../temp/csr/ta_utility.o: ../../../../../src/ta_func/ta_utility.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_utility.o ../../../../../src/ta_func/ta_utility.c + +../../../../../temp/csr/ta_ACOS.o: ../../../../../src/ta_func/ta_ACOS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_ACOS.o ../../../../../src/ta_func/ta_ACOS.c + +../../../../../temp/csr/ta_AD.o: ../../../../../src/ta_func/ta_AD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_AD.o ../../../../../src/ta_func/ta_AD.c + +../../../../../temp/csr/ta_ADD.o: ../../../../../src/ta_func/ta_ADD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_ADD.o ../../../../../src/ta_func/ta_ADD.c + +../../../../../temp/csr/ta_ADOSC.o: ../../../../../src/ta_func/ta_ADOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_ADOSC.o ../../../../../src/ta_func/ta_ADOSC.c + +../../../../../temp/csr/ta_ADX.o: ../../../../../src/ta_func/ta_ADX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_ADX.o ../../../../../src/ta_func/ta_ADX.c + +../../../../../temp/csr/ta_ADXR.o: ../../../../../src/ta_func/ta_ADXR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_ADXR.o ../../../../../src/ta_func/ta_ADXR.c + +../../../../../temp/csr/ta_APO.o: ../../../../../src/ta_func/ta_APO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_APO.o ../../../../../src/ta_func/ta_APO.c + +../../../../../temp/csr/ta_AROON.o: ../../../../../src/ta_func/ta_AROON.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_AROON.o ../../../../../src/ta_func/ta_AROON.c + +../../../../../temp/csr/ta_AROONOSC.o: ../../../../../src/ta_func/ta_AROONOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_AROONOSC.o ../../../../../src/ta_func/ta_AROONOSC.c + +../../../../../temp/csr/ta_ASIN.o: ../../../../../src/ta_func/ta_ASIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_ASIN.o ../../../../../src/ta_func/ta_ASIN.c + +../../../../../temp/csr/ta_ATAN.o: ../../../../../src/ta_func/ta_ATAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_ATAN.o ../../../../../src/ta_func/ta_ATAN.c + +../../../../../temp/csr/ta_ATR.o: ../../../../../src/ta_func/ta_ATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_ATR.o ../../../../../src/ta_func/ta_ATR.c + +../../../../../temp/csr/ta_AVGPRICE.o: ../../../../../src/ta_func/ta_AVGPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_AVGPRICE.o ../../../../../src/ta_func/ta_AVGPRICE.c + +../../../../../temp/csr/ta_BBANDS.o: ../../../../../src/ta_func/ta_BBANDS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_BBANDS.o ../../../../../src/ta_func/ta_BBANDS.c + +../../../../../temp/csr/ta_BETA.o: ../../../../../src/ta_func/ta_BETA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_BETA.o ../../../../../src/ta_func/ta_BETA.c + +../../../../../temp/csr/ta_BOP.o: ../../../../../src/ta_func/ta_BOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_BOP.o ../../../../../src/ta_func/ta_BOP.c + +../../../../../temp/csr/ta_CCI.o: ../../../../../src/ta_func/ta_CCI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CCI.o ../../../../../src/ta_func/ta_CCI.c + +../../../../../temp/csr/ta_CDL2CROWS.o: ../../../../../src/ta_func/ta_CDL2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDL2CROWS.o ../../../../../src/ta_func/ta_CDL2CROWS.c + +../../../../../temp/csr/ta_CDL3BLACKCROWS.o: ../../../../../src/ta_func/ta_CDL3BLACKCROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDL3BLACKCROWS.o ../../../../../src/ta_func/ta_CDL3BLACKCROWS.c + +../../../../../temp/csr/ta_CDL3INSIDE.o: ../../../../../src/ta_func/ta_CDL3INSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDL3INSIDE.o ../../../../../src/ta_func/ta_CDL3INSIDE.c + +../../../../../temp/csr/ta_CDL3LINESTRIKE.o: ../../../../../src/ta_func/ta_CDL3LINESTRIKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDL3LINESTRIKE.o ../../../../../src/ta_func/ta_CDL3LINESTRIKE.c + +../../../../../temp/csr/ta_CDL3OUTSIDE.o: ../../../../../src/ta_func/ta_CDL3OUTSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDL3OUTSIDE.o ../../../../../src/ta_func/ta_CDL3OUTSIDE.c + +../../../../../temp/csr/ta_CDL3STARSINSOUTH.o: ../../../../../src/ta_func/ta_CDL3STARSINSOUTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDL3STARSINSOUTH.o ../../../../../src/ta_func/ta_CDL3STARSINSOUTH.c + +../../../../../temp/csr/ta_CDL3WHITESOLDIERS.o: ../../../../../src/ta_func/ta_CDL3WHITESOLDIERS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDL3WHITESOLDIERS.o ../../../../../src/ta_func/ta_CDL3WHITESOLDIERS.c + +../../../../../temp/csr/ta_CDLABANDONEDBABY.o: ../../../../../src/ta_func/ta_CDLABANDONEDBABY.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLABANDONEDBABY.o ../../../../../src/ta_func/ta_CDLABANDONEDBABY.c + +../../../../../temp/csr/ta_CDLADVANCEBLOCK.o: ../../../../../src/ta_func/ta_CDLADVANCEBLOCK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLADVANCEBLOCK.o ../../../../../src/ta_func/ta_CDLADVANCEBLOCK.c + +../../../../../temp/csr/ta_CDLBELTHOLD.o: ../../../../../src/ta_func/ta_CDLBELTHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLBELTHOLD.o ../../../../../src/ta_func/ta_CDLBELTHOLD.c + +../../../../../temp/csr/ta_CDLBREAKAWAY.o: ../../../../../src/ta_func/ta_CDLBREAKAWAY.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLBREAKAWAY.o ../../../../../src/ta_func/ta_CDLBREAKAWAY.c + +../../../../../temp/csr/ta_CDLCLOSINGMARUBOZU.o: ../../../../../src/ta_func/ta_CDLCLOSINGMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLCLOSINGMARUBOZU.o ../../../../../src/ta_func/ta_CDLCLOSINGMARUBOZU.c + +../../../../../temp/csr/ta_CDLCONCEALBABYSWALL.o: ../../../../../src/ta_func/ta_CDLCONCEALBABYSWALL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLCONCEALBABYSWALL.o ../../../../../src/ta_func/ta_CDLCONCEALBABYSWALL.c + +../../../../../temp/csr/ta_CDLCOUNTERATTACK.o: ../../../../../src/ta_func/ta_CDLCOUNTERATTACK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLCOUNTERATTACK.o ../../../../../src/ta_func/ta_CDLCOUNTERATTACK.c + +../../../../../temp/csr/ta_CDLDARKCLOUDCOVER.o: ../../../../../src/ta_func/ta_CDLDARKCLOUDCOVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLDARKCLOUDCOVER.o ../../../../../src/ta_func/ta_CDLDARKCLOUDCOVER.c + +../../../../../temp/csr/ta_CDLDOJI.o: ../../../../../src/ta_func/ta_CDLDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLDOJI.o ../../../../../src/ta_func/ta_CDLDOJI.c + +../../../../../temp/csr/ta_CDLDOJISTAR.o: ../../../../../src/ta_func/ta_CDLDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLDOJISTAR.o ../../../../../src/ta_func/ta_CDLDOJISTAR.c + +../../../../../temp/csr/ta_CDLDRAGONFLYDOJI.o: ../../../../../src/ta_func/ta_CDLDRAGONFLYDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLDRAGONFLYDOJI.o ../../../../../src/ta_func/ta_CDLDRAGONFLYDOJI.c + +../../../../../temp/csr/ta_CDLENGULFING.o: ../../../../../src/ta_func/ta_CDLENGULFING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLENGULFING.o ../../../../../src/ta_func/ta_CDLENGULFING.c + +../../../../../temp/csr/ta_CDLEVENINGDOJISTAR.o: ../../../../../src/ta_func/ta_CDLEVENINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLEVENINGDOJISTAR.o ../../../../../src/ta_func/ta_CDLEVENINGDOJISTAR.c + +../../../../../temp/csr/ta_CDLEVENINGSTAR.o: ../../../../../src/ta_func/ta_CDLEVENINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLEVENINGSTAR.o ../../../../../src/ta_func/ta_CDLEVENINGSTAR.c + +../../../../../temp/csr/ta_CDLGAPSIDESIDEWHITE.o: ../../../../../src/ta_func/ta_CDLGAPSIDESIDEWHITE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLGAPSIDESIDEWHITE.o ../../../../../src/ta_func/ta_CDLGAPSIDESIDEWHITE.c + +../../../../../temp/csr/ta_CDLGRAVESTONEDOJI.o: ../../../../../src/ta_func/ta_CDLGRAVESTONEDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLGRAVESTONEDOJI.o ../../../../../src/ta_func/ta_CDLGRAVESTONEDOJI.c + +../../../../../temp/csr/ta_CDLHAMMER.o: ../../../../../src/ta_func/ta_CDLHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLHAMMER.o ../../../../../src/ta_func/ta_CDLHAMMER.c + +../../../../../temp/csr/ta_CDLHANGINGMAN.o: ../../../../../src/ta_func/ta_CDLHANGINGMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLHANGINGMAN.o ../../../../../src/ta_func/ta_CDLHANGINGMAN.c + +../../../../../temp/csr/ta_CDLHARAMI.o: ../../../../../src/ta_func/ta_CDLHARAMI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLHARAMI.o ../../../../../src/ta_func/ta_CDLHARAMI.c + +../../../../../temp/csr/ta_CDLHARAMICROSS.o: ../../../../../src/ta_func/ta_CDLHARAMICROSS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLHARAMICROSS.o ../../../../../src/ta_func/ta_CDLHARAMICROSS.c + +../../../../../temp/csr/ta_CDLHIGHWAVE.o: ../../../../../src/ta_func/ta_CDLHIGHWAVE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLHIGHWAVE.o ../../../../../src/ta_func/ta_CDLHIGHWAVE.c + +../../../../../temp/csr/ta_CDLHIKKAKE.o: ../../../../../src/ta_func/ta_CDLHIKKAKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLHIKKAKE.o ../../../../../src/ta_func/ta_CDLHIKKAKE.c + +../../../../../temp/csr/ta_CDLHIKKAKEMOD.o: ../../../../../src/ta_func/ta_CDLHIKKAKEMOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLHIKKAKEMOD.o ../../../../../src/ta_func/ta_CDLHIKKAKEMOD.c + +../../../../../temp/csr/ta_CDLHOMINGPIGEON.o: ../../../../../src/ta_func/ta_CDLHOMINGPIGEON.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLHOMINGPIGEON.o ../../../../../src/ta_func/ta_CDLHOMINGPIGEON.c + +../../../../../temp/csr/ta_CDLIDENTICAL3CROWS.o: ../../../../../src/ta_func/ta_CDLIDENTICAL3CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLIDENTICAL3CROWS.o ../../../../../src/ta_func/ta_CDLIDENTICAL3CROWS.c + +../../../../../temp/csr/ta_CDLINNECK.o: ../../../../../src/ta_func/ta_CDLINNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLINNECK.o ../../../../../src/ta_func/ta_CDLINNECK.c + +../../../../../temp/csr/ta_CDLINVERTEDHAMMER.o: ../../../../../src/ta_func/ta_CDLINVERTEDHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLINVERTEDHAMMER.o ../../../../../src/ta_func/ta_CDLINVERTEDHAMMER.c + +../../../../../temp/csr/ta_CDLKICKING.o: ../../../../../src/ta_func/ta_CDLKICKING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLKICKING.o ../../../../../src/ta_func/ta_CDLKICKING.c + +../../../../../temp/csr/ta_CDLKICKINGBYLENGTH.o: ../../../../../src/ta_func/ta_CDLKICKINGBYLENGTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLKICKINGBYLENGTH.o ../../../../../src/ta_func/ta_CDLKICKINGBYLENGTH.c + +../../../../../temp/csr/ta_CDLLADDERBOTTOM.o: ../../../../../src/ta_func/ta_CDLLADDERBOTTOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLLADDERBOTTOM.o ../../../../../src/ta_func/ta_CDLLADDERBOTTOM.c + +../../../../../temp/csr/ta_CDLLONGLEGGEDDOJI.o: ../../../../../src/ta_func/ta_CDLLONGLEGGEDDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLLONGLEGGEDDOJI.o ../../../../../src/ta_func/ta_CDLLONGLEGGEDDOJI.c + +../../../../../temp/csr/ta_CDLLONGLINE.o: ../../../../../src/ta_func/ta_CDLLONGLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLLONGLINE.o ../../../../../src/ta_func/ta_CDLLONGLINE.c + +../../../../../temp/csr/ta_CDLMARUBOZU.o: ../../../../../src/ta_func/ta_CDLMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLMARUBOZU.o ../../../../../src/ta_func/ta_CDLMARUBOZU.c + +../../../../../temp/csr/ta_CDLMATCHINGLOW.o: ../../../../../src/ta_func/ta_CDLMATCHINGLOW.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLMATCHINGLOW.o ../../../../../src/ta_func/ta_CDLMATCHINGLOW.c + +../../../../../temp/csr/ta_CDLMATHOLD.o: ../../../../../src/ta_func/ta_CDLMATHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLMATHOLD.o ../../../../../src/ta_func/ta_CDLMATHOLD.c + +../../../../../temp/csr/ta_CDLMORNINGDOJISTAR.o: ../../../../../src/ta_func/ta_CDLMORNINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLMORNINGDOJISTAR.o ../../../../../src/ta_func/ta_CDLMORNINGDOJISTAR.c + +../../../../../temp/csr/ta_CDLMORNINGSTAR.o: ../../../../../src/ta_func/ta_CDLMORNINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLMORNINGSTAR.o ../../../../../src/ta_func/ta_CDLMORNINGSTAR.c + +../../../../../temp/csr/ta_CDLONNECK.o: ../../../../../src/ta_func/ta_CDLONNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLONNECK.o ../../../../../src/ta_func/ta_CDLONNECK.c + +../../../../../temp/csr/ta_CDLPIERCING.o: ../../../../../src/ta_func/ta_CDLPIERCING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLPIERCING.o ../../../../../src/ta_func/ta_CDLPIERCING.c + +../../../../../temp/csr/ta_CDLRICKSHAWMAN.o: ../../../../../src/ta_func/ta_CDLRICKSHAWMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLRICKSHAWMAN.o ../../../../../src/ta_func/ta_CDLRICKSHAWMAN.c + +../../../../../temp/csr/ta_CDLRISEFALL3METHODS.o: ../../../../../src/ta_func/ta_CDLRISEFALL3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLRISEFALL3METHODS.o ../../../../../src/ta_func/ta_CDLRISEFALL3METHODS.c + +../../../../../temp/csr/ta_CDLSEPARATINGLINES.o: ../../../../../src/ta_func/ta_CDLSEPARATINGLINES.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLSEPARATINGLINES.o ../../../../../src/ta_func/ta_CDLSEPARATINGLINES.c + +../../../../../temp/csr/ta_CDLSHOOTINGSTAR.o: ../../../../../src/ta_func/ta_CDLSHOOTINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLSHOOTINGSTAR.o ../../../../../src/ta_func/ta_CDLSHOOTINGSTAR.c + +../../../../../temp/csr/ta_CDLSHORTLINE.o: ../../../../../src/ta_func/ta_CDLSHORTLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLSHORTLINE.o ../../../../../src/ta_func/ta_CDLSHORTLINE.c + +../../../../../temp/csr/ta_CDLSPINNINGTOP.o: ../../../../../src/ta_func/ta_CDLSPINNINGTOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLSPINNINGTOP.o ../../../../../src/ta_func/ta_CDLSPINNINGTOP.c + +../../../../../temp/csr/ta_CDLSTALLEDPATTERN.o: ../../../../../src/ta_func/ta_CDLSTALLEDPATTERN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLSTALLEDPATTERN.o ../../../../../src/ta_func/ta_CDLSTALLEDPATTERN.c + +../../../../../temp/csr/ta_CDLSTICKSANDWICH.o: ../../../../../src/ta_func/ta_CDLSTICKSANDWICH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLSTICKSANDWICH.o ../../../../../src/ta_func/ta_CDLSTICKSANDWICH.c + +../../../../../temp/csr/ta_CDLTAKURI.o: ../../../../../src/ta_func/ta_CDLTAKURI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLTAKURI.o ../../../../../src/ta_func/ta_CDLTAKURI.c + +../../../../../temp/csr/ta_CDLTASUKIGAP.o: ../../../../../src/ta_func/ta_CDLTASUKIGAP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLTASUKIGAP.o ../../../../../src/ta_func/ta_CDLTASUKIGAP.c + +../../../../../temp/csr/ta_CDLTHRUSTING.o: ../../../../../src/ta_func/ta_CDLTHRUSTING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLTHRUSTING.o ../../../../../src/ta_func/ta_CDLTHRUSTING.c + +../../../../../temp/csr/ta_CDLTRISTAR.o: ../../../../../src/ta_func/ta_CDLTRISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLTRISTAR.o ../../../../../src/ta_func/ta_CDLTRISTAR.c + +../../../../../temp/csr/ta_CDLUNIQUE3RIVER.o: ../../../../../src/ta_func/ta_CDLUNIQUE3RIVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLUNIQUE3RIVER.o ../../../../../src/ta_func/ta_CDLUNIQUE3RIVER.c + +../../../../../temp/csr/ta_CDLUPSIDEGAP2CROWS.o: ../../../../../src/ta_func/ta_CDLUPSIDEGAP2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLUPSIDEGAP2CROWS.o ../../../../../src/ta_func/ta_CDLUPSIDEGAP2CROWS.c + +../../../../../temp/csr/ta_CDLXSIDEGAP3METHODS.o: ../../../../../src/ta_func/ta_CDLXSIDEGAP3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLXSIDEGAP3METHODS.o ../../../../../src/ta_func/ta_CDLXSIDEGAP3METHODS.c + +../../../../../temp/csr/ta_CEIL.o: ../../../../../src/ta_func/ta_CEIL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CEIL.o ../../../../../src/ta_func/ta_CEIL.c + +../../../../../temp/csr/ta_CMO.o: ../../../../../src/ta_func/ta_CMO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CMO.o ../../../../../src/ta_func/ta_CMO.c + +../../../../../temp/csr/ta_CORREL.o: ../../../../../src/ta_func/ta_CORREL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CORREL.o ../../../../../src/ta_func/ta_CORREL.c + +../../../../../temp/csr/ta_COS.o: ../../../../../src/ta_func/ta_COS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_COS.o ../../../../../src/ta_func/ta_COS.c + +../../../../../temp/csr/ta_COSH.o: ../../../../../src/ta_func/ta_COSH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_COSH.o ../../../../../src/ta_func/ta_COSH.c + +../../../../../temp/csr/ta_DEMA.o: ../../../../../src/ta_func/ta_DEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_DEMA.o ../../../../../src/ta_func/ta_DEMA.c + +../../../../../temp/csr/ta_DIV.o: ../../../../../src/ta_func/ta_DIV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_DIV.o ../../../../../src/ta_func/ta_DIV.c + +../../../../../temp/csr/ta_DX.o: ../../../../../src/ta_func/ta_DX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_DX.o ../../../../../src/ta_func/ta_DX.c + +../../../../../temp/csr/ta_EMA.o: ../../../../../src/ta_func/ta_EMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_EMA.o ../../../../../src/ta_func/ta_EMA.c + +../../../../../temp/csr/ta_EXP.o: ../../../../../src/ta_func/ta_EXP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_EXP.o ../../../../../src/ta_func/ta_EXP.c + +../../../../../temp/csr/ta_FLOOR.o: ../../../../../src/ta_func/ta_FLOOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_FLOOR.o ../../../../../src/ta_func/ta_FLOOR.c + +../../../../../temp/csr/ta_HT_DCPERIOD.o: ../../../../../src/ta_func/ta_HT_DCPERIOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_HT_DCPERIOD.o ../../../../../src/ta_func/ta_HT_DCPERIOD.c + +../../../../../temp/csr/ta_HT_DCPHASE.o: ../../../../../src/ta_func/ta_HT_DCPHASE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_HT_DCPHASE.o ../../../../../src/ta_func/ta_HT_DCPHASE.c + +../../../../../temp/csr/ta_HT_PHASOR.o: ../../../../../src/ta_func/ta_HT_PHASOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_HT_PHASOR.o ../../../../../src/ta_func/ta_HT_PHASOR.c + +../../../../../temp/csr/ta_HT_SINE.o: ../../../../../src/ta_func/ta_HT_SINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_HT_SINE.o ../../../../../src/ta_func/ta_HT_SINE.c + +../../../../../temp/csr/ta_HT_TRENDLINE.o: ../../../../../src/ta_func/ta_HT_TRENDLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_HT_TRENDLINE.o ../../../../../src/ta_func/ta_HT_TRENDLINE.c + +../../../../../temp/csr/ta_HT_TRENDMODE.o: ../../../../../src/ta_func/ta_HT_TRENDMODE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_HT_TRENDMODE.o ../../../../../src/ta_func/ta_HT_TRENDMODE.c + +../../../../../temp/csr/ta_KAMA.o: ../../../../../src/ta_func/ta_KAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_KAMA.o ../../../../../src/ta_func/ta_KAMA.c + +../../../../../temp/csr/ta_LINEARREG.o: ../../../../../src/ta_func/ta_LINEARREG.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_LINEARREG.o ../../../../../src/ta_func/ta_LINEARREG.c + +../../../../../temp/csr/ta_LINEARREG_ANGLE.o: ../../../../../src/ta_func/ta_LINEARREG_ANGLE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_LINEARREG_ANGLE.o ../../../../../src/ta_func/ta_LINEARREG_ANGLE.c + +../../../../../temp/csr/ta_LINEARREG_INTERCEPT.o: ../../../../../src/ta_func/ta_LINEARREG_INTERCEPT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_LINEARREG_INTERCEPT.o ../../../../../src/ta_func/ta_LINEARREG_INTERCEPT.c + +../../../../../temp/csr/ta_LINEARREG_SLOPE.o: ../../../../../src/ta_func/ta_LINEARREG_SLOPE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_LINEARREG_SLOPE.o ../../../../../src/ta_func/ta_LINEARREG_SLOPE.c + +../../../../../temp/csr/ta_LN.o: ../../../../../src/ta_func/ta_LN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_LN.o ../../../../../src/ta_func/ta_LN.c + +../../../../../temp/csr/ta_LOG10.o: ../../../../../src/ta_func/ta_LOG10.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_LOG10.o ../../../../../src/ta_func/ta_LOG10.c + +../../../../../temp/csr/ta_MA.o: ../../../../../src/ta_func/ta_MA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_MA.o ../../../../../src/ta_func/ta_MA.c + +../../../../../temp/csr/ta_MACD.o: ../../../../../src/ta_func/ta_MACD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_MACD.o ../../../../../src/ta_func/ta_MACD.c + +../../../../../temp/csr/ta_MACDEXT.o: ../../../../../src/ta_func/ta_MACDEXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_MACDEXT.o ../../../../../src/ta_func/ta_MACDEXT.c + +../../../../../temp/csr/ta_MACDFIX.o: ../../../../../src/ta_func/ta_MACDFIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_MACDFIX.o ../../../../../src/ta_func/ta_MACDFIX.c + +../../../../../temp/csr/ta_MAMA.o: ../../../../../src/ta_func/ta_MAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_MAMA.o ../../../../../src/ta_func/ta_MAMA.c + +../../../../../temp/csr/ta_MAVP.o: ../../../../../src/ta_func/ta_MAVP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_MAVP.o ../../../../../src/ta_func/ta_MAVP.c + +../../../../../temp/csr/ta_MAX.o: ../../../../../src/ta_func/ta_MAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_MAX.o ../../../../../src/ta_func/ta_MAX.c + +../../../../../temp/csr/ta_MAXINDEX.o: ../../../../../src/ta_func/ta_MAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_MAXINDEX.o ../../../../../src/ta_func/ta_MAXINDEX.c + +../../../../../temp/csr/ta_MEDPRICE.o: ../../../../../src/ta_func/ta_MEDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_MEDPRICE.o ../../../../../src/ta_func/ta_MEDPRICE.c + +../../../../../temp/csr/ta_MFI.o: ../../../../../src/ta_func/ta_MFI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_MFI.o ../../../../../src/ta_func/ta_MFI.c + +../../../../../temp/csr/ta_MIDPOINT.o: ../../../../../src/ta_func/ta_MIDPOINT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_MIDPOINT.o ../../../../../src/ta_func/ta_MIDPOINT.c + +../../../../../temp/csr/ta_MIDPRICE.o: ../../../../../src/ta_func/ta_MIDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_MIDPRICE.o ../../../../../src/ta_func/ta_MIDPRICE.c + +../../../../../temp/csr/ta_MIN.o: ../../../../../src/ta_func/ta_MIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_MIN.o ../../../../../src/ta_func/ta_MIN.c + +../../../../../temp/csr/ta_MININDEX.o: ../../../../../src/ta_func/ta_MININDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_MININDEX.o ../../../../../src/ta_func/ta_MININDEX.c + +../../../../../temp/csr/ta_MINMAX.o: ../../../../../src/ta_func/ta_MINMAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_MINMAX.o ../../../../../src/ta_func/ta_MINMAX.c + +../../../../../temp/csr/ta_MINMAXINDEX.o: ../../../../../src/ta_func/ta_MINMAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_MINMAXINDEX.o ../../../../../src/ta_func/ta_MINMAXINDEX.c + +../../../../../temp/csr/ta_MINUS_DI.o: ../../../../../src/ta_func/ta_MINUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_MINUS_DI.o ../../../../../src/ta_func/ta_MINUS_DI.c + +../../../../../temp/csr/ta_MINUS_DM.o: ../../../../../src/ta_func/ta_MINUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_MINUS_DM.o ../../../../../src/ta_func/ta_MINUS_DM.c + +../../../../../temp/csr/ta_MOM.o: ../../../../../src/ta_func/ta_MOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_MOM.o ../../../../../src/ta_func/ta_MOM.c + +../../../../../temp/csr/ta_MULT.o: ../../../../../src/ta_func/ta_MULT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_MULT.o ../../../../../src/ta_func/ta_MULT.c + +../../../../../temp/csr/ta_NATR.o: ../../../../../src/ta_func/ta_NATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_NATR.o ../../../../../src/ta_func/ta_NATR.c + +../../../../../temp/csr/ta_OBV.o: ../../../../../src/ta_func/ta_OBV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_OBV.o ../../../../../src/ta_func/ta_OBV.c + +../../../../../temp/csr/ta_PLUS_DI.o: ../../../../../src/ta_func/ta_PLUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_PLUS_DI.o ../../../../../src/ta_func/ta_PLUS_DI.c + +../../../../../temp/csr/ta_PLUS_DM.o: ../../../../../src/ta_func/ta_PLUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_PLUS_DM.o ../../../../../src/ta_func/ta_PLUS_DM.c + +../../../../../temp/csr/ta_PPO.o: ../../../../../src/ta_func/ta_PPO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_PPO.o ../../../../../src/ta_func/ta_PPO.c + +../../../../../temp/csr/ta_ROC.o: ../../../../../src/ta_func/ta_ROC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_ROC.o ../../../../../src/ta_func/ta_ROC.c + +../../../../../temp/csr/ta_ROCP.o: ../../../../../src/ta_func/ta_ROCP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_ROCP.o ../../../../../src/ta_func/ta_ROCP.c + +../../../../../temp/csr/ta_ROCR.o: ../../../../../src/ta_func/ta_ROCR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_ROCR.o ../../../../../src/ta_func/ta_ROCR.c + +../../../../../temp/csr/ta_ROCR100.o: ../../../../../src/ta_func/ta_ROCR100.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_ROCR100.o ../../../../../src/ta_func/ta_ROCR100.c + +../../../../../temp/csr/ta_RSI.o: ../../../../../src/ta_func/ta_RSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_RSI.o ../../../../../src/ta_func/ta_RSI.c + +../../../../../temp/csr/ta_SAR.o: ../../../../../src/ta_func/ta_SAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_SAR.o ../../../../../src/ta_func/ta_SAR.c + +../../../../../temp/csr/ta_SAREXT.o: ../../../../../src/ta_func/ta_SAREXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_SAREXT.o ../../../../../src/ta_func/ta_SAREXT.c + +../../../../../temp/csr/ta_SIN.o: ../../../../../src/ta_func/ta_SIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_SIN.o ../../../../../src/ta_func/ta_SIN.c + +../../../../../temp/csr/ta_SINH.o: ../../../../../src/ta_func/ta_SINH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_SINH.o ../../../../../src/ta_func/ta_SINH.c + +../../../../../temp/csr/ta_SMA.o: ../../../../../src/ta_func/ta_SMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_SMA.o ../../../../../src/ta_func/ta_SMA.c + +../../../../../temp/csr/ta_SQRT.o: ../../../../../src/ta_func/ta_SQRT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_SQRT.o ../../../../../src/ta_func/ta_SQRT.c + +../../../../../temp/csr/ta_STDDEV.o: ../../../../../src/ta_func/ta_STDDEV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_STDDEV.o ../../../../../src/ta_func/ta_STDDEV.c + +../../../../../temp/csr/ta_STOCH.o: ../../../../../src/ta_func/ta_STOCH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_STOCH.o ../../../../../src/ta_func/ta_STOCH.c + +../../../../../temp/csr/ta_STOCHF.o: ../../../../../src/ta_func/ta_STOCHF.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_STOCHF.o ../../../../../src/ta_func/ta_STOCHF.c + +../../../../../temp/csr/ta_STOCHRSI.o: ../../../../../src/ta_func/ta_STOCHRSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_STOCHRSI.o ../../../../../src/ta_func/ta_STOCHRSI.c + +../../../../../temp/csr/ta_SUB.o: ../../../../../src/ta_func/ta_SUB.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_SUB.o ../../../../../src/ta_func/ta_SUB.c + +../../../../../temp/csr/ta_SUM.o: ../../../../../src/ta_func/ta_SUM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_SUM.o ../../../../../src/ta_func/ta_SUM.c + +../../../../../temp/csr/ta_T3.o: ../../../../../src/ta_func/ta_T3.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_T3.o ../../../../../src/ta_func/ta_T3.c + +../../../../../temp/csr/ta_TAN.o: ../../../../../src/ta_func/ta_TAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_TAN.o ../../../../../src/ta_func/ta_TAN.c + +../../../../../temp/csr/ta_TANH.o: ../../../../../src/ta_func/ta_TANH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_TANH.o ../../../../../src/ta_func/ta_TANH.c + +../../../../../temp/csr/ta_TEMA.o: ../../../../../src/ta_func/ta_TEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_TEMA.o ../../../../../src/ta_func/ta_TEMA.c + +../../../../../temp/csr/ta_TRANGE.o: ../../../../../src/ta_func/ta_TRANGE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_TRANGE.o ../../../../../src/ta_func/ta_TRANGE.c + +../../../../../temp/csr/ta_TRIMA.o: ../../../../../src/ta_func/ta_TRIMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_TRIMA.o ../../../../../src/ta_func/ta_TRIMA.c + +../../../../../temp/csr/ta_TRIX.o: ../../../../../src/ta_func/ta_TRIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_TRIX.o ../../../../../src/ta_func/ta_TRIX.c + +../../../../../temp/csr/ta_TSF.o: ../../../../../src/ta_func/ta_TSF.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_TSF.o ../../../../../src/ta_func/ta_TSF.c + +../../../../../temp/csr/ta_TYPPRICE.o: ../../../../../src/ta_func/ta_TYPPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_TYPPRICE.o ../../../../../src/ta_func/ta_TYPPRICE.c + +../../../../../temp/csr/ta_ULTOSC.o: ../../../../../src/ta_func/ta_ULTOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_ULTOSC.o ../../../../../src/ta_func/ta_ULTOSC.c + +../../../../../temp/csr/ta_VAR.o: ../../../../../src/ta_func/ta_VAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_VAR.o ../../../../../src/ta_func/ta_VAR.c + +../../../../../temp/csr/ta_WCLPRICE.o: ../../../../../src/ta_func/ta_WCLPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_WCLPRICE.o ../../../../../src/ta_func/ta_WCLPRICE.c + +../../../../../temp/csr/ta_WILLR.o: ../../../../../src/ta_func/ta_WILLR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_WILLR.o ../../../../../src/ta_func/ta_WILLR.c + +../../../../../temp/csr/ta_WMA.o: ../../../../../src/ta_func/ta_WMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_WMA.o ../../../../../src/ta_func/ta_WMA.c + diff --git a/make/csr/freebsd/g++/ta_regtest/Makefile b/make/csr/freebsd/g++/ta_regtest/Makefile new file mode 100644 index 000000000..8a3b7e6d1 --- /dev/null +++ b/make/csr/freebsd/g++/ta_regtest/Makefile @@ -0,0 +1,205 @@ +############################################################################# +# Makefile for building ../../../../../bin/ta_regtest +# Generated by tmake; +# Project: ta_regtest/ta_regtest +# Template: app +############################################################################# + +####### Compiler, tools and options + +CC = gcc +CXX = g++ +CFLAGS = -pipe -Wall -W -O2 -fno-strict-aliasing -DTA_SINGLE_THREAD +CXXFLAGS= -pipe -Wall -W -O2 -fno-strict-aliasing -DTA_SINGLE_THREAD +INCPATH = -I../../../../../src/ta_common -I../../../../../src/tools/ta_regtest -I../../../../../src/ta_func -I../../../../../include -I/usr/local/include +LINK = g++ +LFLAGS = -L/usr/local/lib +LIBS = $(SUBLIBS) ../../../../../lib/libta_libc_csr.a +MOC = $(QTDIR)/bin/moc +UIC = $(QTDIR)/bin/uic + +TAR = tar -cf +GZIP = gzip -9f + +####### Apply additional overruling user flags, if any +CFLAGS += $(CUSERFLAGS) +CXXFLAGS += $(CUSERFLAGS) + +####### Files + +HEADERS = +SOURCES = ../../../../../src/tools/ta_regtest/ta_regtest.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_candlestick.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_1in_1out.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_1in_2out.c \ + ../../../../../src/tools/ta_regtest/test_internals.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_adx.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_bbands.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_ma.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_macd.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_minmax.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_mom.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_per_ema.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hl.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hlc.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hlcv.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_per_ohlc.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_po.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_rsi.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_sar.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_stddev.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_stoch.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_trange.c \ + ../../../../../src/tools/ta_regtest/test_util.c \ + ../../../../../src/tools/ta_regtest/test_data.c \ + ../../../../../src/tools/ta_regtest/test_abstract.c +OBJECTS = ../../../../../temp/csr/ta_regtest.o \ + ../../../../../temp/csr/test_candlestick.o \ + ../../../../../temp/csr/test_1in_1out.o \ + ../../../../../temp/csr/test_1in_2out.o \ + ../../../../../temp/csr/test_internals.o \ + ../../../../../temp/csr/test_adx.o \ + ../../../../../temp/csr/test_bbands.o \ + ../../../../../temp/csr/test_ma.o \ + ../../../../../temp/csr/test_macd.o \ + ../../../../../temp/csr/test_minmax.o \ + ../../../../../temp/csr/test_mom.o \ + ../../../../../temp/csr/test_per_ema.o \ + ../../../../../temp/csr/test_per_hl.o \ + ../../../../../temp/csr/test_per_hlc.o \ + ../../../../../temp/csr/test_per_hlcv.o \ + ../../../../../temp/csr/test_per_ohlc.o \ + ../../../../../temp/csr/test_po.o \ + ../../../../../temp/csr/test_rsi.o \ + ../../../../../temp/csr/test_sar.o \ + ../../../../../temp/csr/test_stddev.o \ + ../../../../../temp/csr/test_stoch.o \ + ../../../../../temp/csr/test_trange.o \ + ../../../../../temp/csr/test_util.o \ + ../../../../../temp/csr/test_data.o \ + ../../../../../temp/csr/test_abstract.o +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ../../../../../bin/ta_regtest +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .C .c + +.cpp.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cxx.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cc.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.C.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.c.o: + $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $< + +####### Build rules + + +all: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS) + +moc: $(SRCMOC) + +clean: + -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) + -rm -f *~ core + +####### Sub-libraries + + +###### Combined headers + + +####### Compile + +../../../../../temp/csr/ta_regtest.o: ../../../../../src/tools/ta_regtest/ta_regtest.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_regtest.o ../../../../../src/tools/ta_regtest/ta_regtest.c + +../../../../../temp/csr/test_candlestick.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_candlestick.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/test_candlestick.o ../../../../../src/tools/ta_regtest/ta_test_func/test_candlestick.c + +../../../../../temp/csr/test_1in_1out.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_1in_1out.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/test_1in_1out.o ../../../../../src/tools/ta_regtest/ta_test_func/test_1in_1out.c + +../../../../../temp/csr/test_1in_2out.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_1in_2out.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/test_1in_2out.o ../../../../../src/tools/ta_regtest/ta_test_func/test_1in_2out.c + +../../../../../temp/csr/test_internals.o: ../../../../../src/tools/ta_regtest/test_internals.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/test_internals.o ../../../../../src/tools/ta_regtest/test_internals.c + +../../../../../temp/csr/test_adx.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_adx.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/test_adx.o ../../../../../src/tools/ta_regtest/ta_test_func/test_adx.c + +../../../../../temp/csr/test_bbands.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_bbands.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/test_bbands.o ../../../../../src/tools/ta_regtest/ta_test_func/test_bbands.c + +../../../../../temp/csr/test_ma.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_ma.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/test_ma.o ../../../../../src/tools/ta_regtest/ta_test_func/test_ma.c + +../../../../../temp/csr/test_macd.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_macd.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/test_macd.o ../../../../../src/tools/ta_regtest/ta_test_func/test_macd.c + +../../../../../temp/csr/test_minmax.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_minmax.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/test_minmax.o ../../../../../src/tools/ta_regtest/ta_test_func/test_minmax.c + +../../../../../temp/csr/test_mom.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_mom.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/test_mom.o ../../../../../src/tools/ta_regtest/ta_test_func/test_mom.c + +../../../../../temp/csr/test_per_ema.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_per_ema.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/test_per_ema.o ../../../../../src/tools/ta_regtest/ta_test_func/test_per_ema.c + +../../../../../temp/csr/test_per_hl.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hl.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/test_per_hl.o ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hl.c + +../../../../../temp/csr/test_per_hlc.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hlc.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/test_per_hlc.o ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hlc.c + +../../../../../temp/csr/test_per_hlcv.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hlcv.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/test_per_hlcv.o ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hlcv.c + +../../../../../temp/csr/test_per_ohlc.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_per_ohlc.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/test_per_ohlc.o ../../../../../src/tools/ta_regtest/ta_test_func/test_per_ohlc.c + +../../../../../temp/csr/test_po.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_po.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/test_po.o ../../../../../src/tools/ta_regtest/ta_test_func/test_po.c + +../../../../../temp/csr/test_rsi.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_rsi.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/test_rsi.o ../../../../../src/tools/ta_regtest/ta_test_func/test_rsi.c + +../../../../../temp/csr/test_sar.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_sar.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/test_sar.o ../../../../../src/tools/ta_regtest/ta_test_func/test_sar.c + +../../../../../temp/csr/test_stddev.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_stddev.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/test_stddev.o ../../../../../src/tools/ta_regtest/ta_test_func/test_stddev.c + +../../../../../temp/csr/test_stoch.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_stoch.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/test_stoch.o ../../../../../src/tools/ta_regtest/ta_test_func/test_stoch.c + +../../../../../temp/csr/test_trange.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_trange.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/test_trange.o ../../../../../src/tools/ta_regtest/ta_test_func/test_trange.c + +../../../../../temp/csr/test_util.o: ../../../../../src/tools/ta_regtest/test_util.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/test_util.o ../../../../../src/tools/ta_regtest/test_util.c + +../../../../../temp/csr/test_data.o: ../../../../../src/tools/ta_regtest/test_data.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/test_data.o ../../../../../src/tools/ta_regtest/test_data.c + +../../../../../temp/csr/test_abstract.o: ../../../../../src/tools/ta_regtest/test_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/test_abstract.o ../../../../../src/tools/ta_regtest/test_abstract.c + diff --git a/make/csr/linux/g++/Makefile b/make/csr/linux/g++/Makefile new file mode 100644 index 000000000..804e39863 --- /dev/null +++ b/make/csr/linux/g++/Makefile @@ -0,0 +1,36 @@ +############################################################################# +# Makefile for building targets in sub directories. +# Generated by tmake; +# Project: rootmake +# Template: subdirs +############################################################################# + +MAKEFILE= Makefile +TMAKE = tmake + +SUBDIRS = ta_common \ + ta_func \ + ta_abstract \ + ta_libc \ + gen_code \ + ta_regtest + +all: $(SUBDIRS) + +$(SUBDIRS): FORCE + cd $@; $(MAKE) + +tmake: ../csr/linux/g++/Makefile + +../csr/linux/g++/Makefile: rootmake.pro + tmake rootmake.pro -o ../csr/linux/g++/Makefile + +tmake_all: + for i in $(SUBDIRS); do ( if [ -d $$i ]; then cd $$i ; $(MAKE) -f $(MAKEFILE) tmake_all || true; fi; ) ; done + +#### $text = "\t" . 'for i in $(SUBDIRS); do ( if [ -d $$i ]; then cd $$i ; pro=`basename $$i`.pro ; $(TMAKE) $$pro -o $(MAKEFILE); grep "TEMPLATE.*subdirs" $$pro 2>/dev/null >/dev/null && $(MAKE) -f $(MAKEFILE) tmake_all || true; fi; ) ; done'; + +clean release debug: + for i in $(SUBDIRS); do ( if [ -d $$i ]; then cd $$i ; $(MAKE) $@; fi; ) ; done + +FORCE: diff --git a/make/csr/linux/g++/gen_code/Makefile b/make/csr/linux/g++/gen_code/Makefile new file mode 100644 index 000000000..30b2afe75 --- /dev/null +++ b/make/csr/linux/g++/gen_code/Makefile @@ -0,0 +1,231 @@ +############################################################################# +# Makefile for building ../../../../../bin/gen_code +# Generated by tmake; +# Project: gen_code/gen_code +# Template: app +############################################################################# + +####### Compiler, tools and options + +CC = gcc +CXX = g++ +CFLAGS = -pipe -fPIC -Wall -W -O2 -fno-strict-aliasing -DTA_GEN_CODE -DTA_SINGLE_THREAD +CXXFLAGS= -pipe -fPIC -Wall -W -O2 -fno-strict-aliasing -DTA_GEN_CODE -DTA_SINGLE_THREAD +INCPATH = -I../../../../../include -I../../../../../src/ta_common -I../../../../../src/ta_abstract -I../../../../../src/ta_abstract/tables -I../../../../../src/ta_abstract/frames +LINK = g++ +LFLAGS = +LIBS = $(SUBLIBS) ../../../../../lib/libta_common_csr.a -ldl +MOC = $(QTDIR)/bin/moc +UIC = $(QTDIR)/bin/uic + +TAR = tar -cf +GZIP = gzip -9f + +####### Support for 64-bit systems +ifeq ($(shell uname -m), x86_64) + CFLAGS += -march=x86-64 -m64 -D__64BIT__ + CXXFLAGS += -march=x86-64 -m64 -D__64BIT__ +endif + +####### Apply additional overruling user flags, if any +CFLAGS += $(CUSERFLAGS) +CXXFLAGS += $(CUSERFLAGS) + +####### Files + +HEADERS = +SOURCES = ../../../../../src/tools/gen_code/gen_code.c \ + ../../../../../src/ta_abstract/ta_abstract.c \ + ../../../../../src/ta_abstract/ta_def_ui.c \ + ../../../../../src/ta_abstract/tables/table_a.c \ + ../../../../../src/ta_abstract/tables/table_b.c \ + ../../../../../src/ta_abstract/tables/table_c.c \ + ../../../../../src/ta_abstract/tables/table_d.c \ + ../../../../../src/ta_abstract/tables/table_e.c \ + ../../../../../src/ta_abstract/tables/table_f.c \ + ../../../../../src/ta_abstract/tables/table_g.c \ + ../../../../../src/ta_abstract/tables/table_h.c \ + ../../../../../src/ta_abstract/tables/table_i.c \ + ../../../../../src/ta_abstract/tables/table_j.c \ + ../../../../../src/ta_abstract/tables/table_k.c \ + ../../../../../src/ta_abstract/tables/table_l.c \ + ../../../../../src/ta_abstract/tables/table_m.c \ + ../../../../../src/ta_abstract/tables/table_n.c \ + ../../../../../src/ta_abstract/tables/table_o.c \ + ../../../../../src/ta_abstract/tables/table_p.c \ + ../../../../../src/ta_abstract/tables/table_q.c \ + ../../../../../src/ta_abstract/tables/table_r.c \ + ../../../../../src/ta_abstract/tables/table_s.c \ + ../../../../../src/ta_abstract/tables/table_t.c \ + ../../../../../src/ta_abstract/tables/table_u.c \ + ../../../../../src/ta_abstract/tables/table_v.c \ + ../../../../../src/ta_abstract/tables/table_w.c \ + ../../../../../src/ta_abstract/tables/table_x.c \ + ../../../../../src/ta_abstract/tables/table_y.c \ + ../../../../../src/ta_abstract/tables/table_z.c +OBJECTS = ../../../../../temp/csr/gen_code/gen_code.o \ + ../../../../../temp/csr/gen_code/ta_abstract.o \ + ../../../../../temp/csr/gen_code/ta_def_ui.o \ + ../../../../../temp/csr/gen_code/table_a.o \ + ../../../../../temp/csr/gen_code/table_b.o \ + ../../../../../temp/csr/gen_code/table_c.o \ + ../../../../../temp/csr/gen_code/table_d.o \ + ../../../../../temp/csr/gen_code/table_e.o \ + ../../../../../temp/csr/gen_code/table_f.o \ + ../../../../../temp/csr/gen_code/table_g.o \ + ../../../../../temp/csr/gen_code/table_h.o \ + ../../../../../temp/csr/gen_code/table_i.o \ + ../../../../../temp/csr/gen_code/table_j.o \ + ../../../../../temp/csr/gen_code/table_k.o \ + ../../../../../temp/csr/gen_code/table_l.o \ + ../../../../../temp/csr/gen_code/table_m.o \ + ../../../../../temp/csr/gen_code/table_n.o \ + ../../../../../temp/csr/gen_code/table_o.o \ + ../../../../../temp/csr/gen_code/table_p.o \ + ../../../../../temp/csr/gen_code/table_q.o \ + ../../../../../temp/csr/gen_code/table_r.o \ + ../../../../../temp/csr/gen_code/table_s.o \ + ../../../../../temp/csr/gen_code/table_t.o \ + ../../../../../temp/csr/gen_code/table_u.o \ + ../../../../../temp/csr/gen_code/table_v.o \ + ../../../../../temp/csr/gen_code/table_w.o \ + ../../../../../temp/csr/gen_code/table_x.o \ + ../../../../../temp/csr/gen_code/table_y.o \ + ../../../../../temp/csr/gen_code/table_z.o +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ../../../../../bin/gen_code +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .C .c + +.cpp.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cxx.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cc.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.C.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.c.o: + $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $< + +####### Build rules + + +all: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS) + +moc: $(SRCMOC) + +clean: + -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) + -rm -f *~ core + +####### Sub-libraries + + +###### Combined headers + + +####### Compile + +../../../../../temp/csr/gen_code/gen_code.o: ../../../../../src/tools/gen_code/gen_code.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/gen_code/gen_code.o ../../../../../src/tools/gen_code/gen_code.c + +../../../../../temp/csr/gen_code/ta_abstract.o: ../../../../../src/ta_abstract/ta_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/gen_code/ta_abstract.o ../../../../../src/ta_abstract/ta_abstract.c + +../../../../../temp/csr/gen_code/ta_def_ui.o: ../../../../../src/ta_abstract/ta_def_ui.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/gen_code/ta_def_ui.o ../../../../../src/ta_abstract/ta_def_ui.c + +../../../../../temp/csr/gen_code/table_a.o: ../../../../../src/ta_abstract/tables/table_a.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/gen_code/table_a.o ../../../../../src/ta_abstract/tables/table_a.c + +../../../../../temp/csr/gen_code/table_b.o: ../../../../../src/ta_abstract/tables/table_b.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/gen_code/table_b.o ../../../../../src/ta_abstract/tables/table_b.c + +../../../../../temp/csr/gen_code/table_c.o: ../../../../../src/ta_abstract/tables/table_c.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/gen_code/table_c.o ../../../../../src/ta_abstract/tables/table_c.c + +../../../../../temp/csr/gen_code/table_d.o: ../../../../../src/ta_abstract/tables/table_d.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/gen_code/table_d.o ../../../../../src/ta_abstract/tables/table_d.c + +../../../../../temp/csr/gen_code/table_e.o: ../../../../../src/ta_abstract/tables/table_e.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/gen_code/table_e.o ../../../../../src/ta_abstract/tables/table_e.c + +../../../../../temp/csr/gen_code/table_f.o: ../../../../../src/ta_abstract/tables/table_f.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/gen_code/table_f.o ../../../../../src/ta_abstract/tables/table_f.c + +../../../../../temp/csr/gen_code/table_g.o: ../../../../../src/ta_abstract/tables/table_g.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/gen_code/table_g.o ../../../../../src/ta_abstract/tables/table_g.c + +../../../../../temp/csr/gen_code/table_h.o: ../../../../../src/ta_abstract/tables/table_h.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/gen_code/table_h.o ../../../../../src/ta_abstract/tables/table_h.c + +../../../../../temp/csr/gen_code/table_i.o: ../../../../../src/ta_abstract/tables/table_i.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/gen_code/table_i.o ../../../../../src/ta_abstract/tables/table_i.c + +../../../../../temp/csr/gen_code/table_j.o: ../../../../../src/ta_abstract/tables/table_j.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/gen_code/table_j.o ../../../../../src/ta_abstract/tables/table_j.c + +../../../../../temp/csr/gen_code/table_k.o: ../../../../../src/ta_abstract/tables/table_k.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/gen_code/table_k.o ../../../../../src/ta_abstract/tables/table_k.c + +../../../../../temp/csr/gen_code/table_l.o: ../../../../../src/ta_abstract/tables/table_l.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/gen_code/table_l.o ../../../../../src/ta_abstract/tables/table_l.c + +../../../../../temp/csr/gen_code/table_m.o: ../../../../../src/ta_abstract/tables/table_m.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/gen_code/table_m.o ../../../../../src/ta_abstract/tables/table_m.c + +../../../../../temp/csr/gen_code/table_n.o: ../../../../../src/ta_abstract/tables/table_n.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/gen_code/table_n.o ../../../../../src/ta_abstract/tables/table_n.c + +../../../../../temp/csr/gen_code/table_o.o: ../../../../../src/ta_abstract/tables/table_o.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/gen_code/table_o.o ../../../../../src/ta_abstract/tables/table_o.c + +../../../../../temp/csr/gen_code/table_p.o: ../../../../../src/ta_abstract/tables/table_p.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/gen_code/table_p.o ../../../../../src/ta_abstract/tables/table_p.c + +../../../../../temp/csr/gen_code/table_q.o: ../../../../../src/ta_abstract/tables/table_q.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/gen_code/table_q.o ../../../../../src/ta_abstract/tables/table_q.c + +../../../../../temp/csr/gen_code/table_r.o: ../../../../../src/ta_abstract/tables/table_r.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/gen_code/table_r.o ../../../../../src/ta_abstract/tables/table_r.c + +../../../../../temp/csr/gen_code/table_s.o: ../../../../../src/ta_abstract/tables/table_s.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/gen_code/table_s.o ../../../../../src/ta_abstract/tables/table_s.c + +../../../../../temp/csr/gen_code/table_t.o: ../../../../../src/ta_abstract/tables/table_t.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/gen_code/table_t.o ../../../../../src/ta_abstract/tables/table_t.c + +../../../../../temp/csr/gen_code/table_u.o: ../../../../../src/ta_abstract/tables/table_u.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/gen_code/table_u.o ../../../../../src/ta_abstract/tables/table_u.c + +../../../../../temp/csr/gen_code/table_v.o: ../../../../../src/ta_abstract/tables/table_v.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/gen_code/table_v.o ../../../../../src/ta_abstract/tables/table_v.c + +../../../../../temp/csr/gen_code/table_w.o: ../../../../../src/ta_abstract/tables/table_w.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/gen_code/table_w.o ../../../../../src/ta_abstract/tables/table_w.c + +../../../../../temp/csr/gen_code/table_x.o: ../../../../../src/ta_abstract/tables/table_x.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/gen_code/table_x.o ../../../../../src/ta_abstract/tables/table_x.c + +../../../../../temp/csr/gen_code/table_y.o: ../../../../../src/ta_abstract/tables/table_y.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/gen_code/table_y.o ../../../../../src/ta_abstract/tables/table_y.c + +../../../../../temp/csr/gen_code/table_z.o: ../../../../../src/ta_abstract/tables/table_z.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/gen_code/table_z.o ../../../../../src/ta_abstract/tables/table_z.c + diff --git a/make/csr/linux/g++/ta_abstract/Makefile b/make/csr/linux/g++/ta_abstract/Makefile new file mode 100644 index 000000000..600520d85 --- /dev/null +++ b/make/csr/linux/g++/ta_abstract/Makefile @@ -0,0 +1,243 @@ +############################################################################# +# Makefile for building ../../../../../lib/libta_abstract_csr.a +# Generated by tmake; +# Project: ta_abstract/ta_abstract +# Template: lib +############################################################################# + +####### Compiler, tools and options + +CC = gcc +CXX = g++ +CFLAGS = -pipe -fPIC -Wall -W -O2 -fno-strict-aliasing -DTA_SINGLE_THREAD +CXXFLAGS= -pipe -fPIC -Wall -W -O2 -fno-strict-aliasing -DTA_SINGLE_THREAD +INCPATH = -I../../../../../src/ta_common -I../../../../../src/ta_abstract -I../../../../../src/ta_abstract/tables -I../../../../../src/ta_abstract/frames -I../../../../../include +AR = ar cqs +RANLIB = +MOC = $(QTDIR)/bin/moc +UIC = $(QTDIR)/bin/uic + +TAR = tar -cf +GZIP = gzip -9f + +####### Support for 64-bit systems +ifeq ($(shell uname -m), x86_64) + CFLAGS += -march=x86-64 -m64 -D__64BIT__ + CXXFLAGS += -march=x86-64 -m64 -D__64BIT__ +endif + +####### Apply additional overruling user flags, if any +CFLAGS += $(CUSERFLAGS) +CXXFLAGS += $(CUSERFLAGS) + +####### Files + +HEADERS = +SOURCES = ../../../../../src/ta_abstract/ta_abstract.c \ + ../../../../../src/ta_abstract/ta_def_ui.c \ + ../../../../../src/ta_abstract/ta_func_api.c \ + ../../../../../src/ta_abstract/ta_group_idx.c \ + ../../../../../src/ta_abstract/frames/ta_frame.c \ + ../../../../../src/ta_abstract/tables/table_a.c \ + ../../../../../src/ta_abstract/tables/table_b.c \ + ../../../../../src/ta_abstract/tables/table_c.c \ + ../../../../../src/ta_abstract/tables/table_d.c \ + ../../../../../src/ta_abstract/tables/table_e.c \ + ../../../../../src/ta_abstract/tables/table_f.c \ + ../../../../../src/ta_abstract/tables/table_g.c \ + ../../../../../src/ta_abstract/tables/table_h.c \ + ../../../../../src/ta_abstract/tables/table_i.c \ + ../../../../../src/ta_abstract/tables/table_j.c \ + ../../../../../src/ta_abstract/tables/table_k.c \ + ../../../../../src/ta_abstract/tables/table_l.c \ + ../../../../../src/ta_abstract/tables/table_m.c \ + ../../../../../src/ta_abstract/tables/table_n.c \ + ../../../../../src/ta_abstract/tables/table_o.c \ + ../../../../../src/ta_abstract/tables/table_p.c \ + ../../../../../src/ta_abstract/tables/table_q.c \ + ../../../../../src/ta_abstract/tables/table_r.c \ + ../../../../../src/ta_abstract/tables/table_s.c \ + ../../../../../src/ta_abstract/tables/table_t.c \ + ../../../../../src/ta_abstract/tables/table_u.c \ + ../../../../../src/ta_abstract/tables/table_v.c \ + ../../../../../src/ta_abstract/tables/table_w.c \ + ../../../../../src/ta_abstract/tables/table_x.c \ + ../../../../../src/ta_abstract/tables/table_y.c \ + ../../../../../src/ta_abstract/tables/table_z.c +OBJECTS = ../../../../../temp/csr/ta_abstract.o \ + ../../../../../temp/csr/ta_def_ui.o \ + ../../../../../temp/csr/ta_func_api.o \ + ../../../../../temp/csr/ta_group_idx.o \ + ../../../../../temp/csr/ta_frame.o \ + ../../../../../temp/csr/table_a.o \ + ../../../../../temp/csr/table_b.o \ + ../../../../../temp/csr/table_c.o \ + ../../../../../temp/csr/table_d.o \ + ../../../../../temp/csr/table_e.o \ + ../../../../../temp/csr/table_f.o \ + ../../../../../temp/csr/table_g.o \ + ../../../../../temp/csr/table_h.o \ + ../../../../../temp/csr/table_i.o \ + ../../../../../temp/csr/table_j.o \ + ../../../../../temp/csr/table_k.o \ + ../../../../../temp/csr/table_l.o \ + ../../../../../temp/csr/table_m.o \ + ../../../../../temp/csr/table_n.o \ + ../../../../../temp/csr/table_o.o \ + ../../../../../temp/csr/table_p.o \ + ../../../../../temp/csr/table_q.o \ + ../../../../../temp/csr/table_r.o \ + ../../../../../temp/csr/table_s.o \ + ../../../../../temp/csr/table_t.o \ + ../../../../../temp/csr/table_u.o \ + ../../../../../temp/csr/table_v.o \ + ../../../../../temp/csr/table_w.o \ + ../../../../../temp/csr/table_x.o \ + ../../../../../temp/csr/table_y.o \ + ../../../../../temp/csr/table_z.o +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ../../../../../lib/libta_abstract_csr.a +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .C .c + +.cpp.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cxx.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cc.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.C.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.c.o: + $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $< + +####### Build rules + + +all: $(TARGET) + +staticlib: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + -rm -f $(TARGET) + $(AR) $(TARGET) $(OBJECTS) $(OBJMOC) + +moc: $(SRCMOC) + +clean: + -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) + -rm -f *~ core + +####### Sub-libraries + + +###### Combined headers + + +####### Compile + +../../../../../temp/csr/ta_abstract.o: ../../../../../src/ta_abstract/ta_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_abstract.o ../../../../../src/ta_abstract/ta_abstract.c + +../../../../../temp/csr/ta_def_ui.o: ../../../../../src/ta_abstract/ta_def_ui.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_def_ui.o ../../../../../src/ta_abstract/ta_def_ui.c + +../../../../../temp/csr/ta_func_api.o: ../../../../../src/ta_abstract/ta_func_api.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_func_api.o ../../../../../src/ta_abstract/ta_func_api.c + +../../../../../temp/csr/ta_group_idx.o: ../../../../../src/ta_abstract/ta_group_idx.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_group_idx.o ../../../../../src/ta_abstract/ta_group_idx.c + +../../../../../temp/csr/ta_frame.o: ../../../../../src/ta_abstract/frames/ta_frame.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_frame.o ../../../../../src/ta_abstract/frames/ta_frame.c + +../../../../../temp/csr/table_a.o: ../../../../../src/ta_abstract/tables/table_a.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_a.o ../../../../../src/ta_abstract/tables/table_a.c + +../../../../../temp/csr/table_b.o: ../../../../../src/ta_abstract/tables/table_b.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_b.o ../../../../../src/ta_abstract/tables/table_b.c + +../../../../../temp/csr/table_c.o: ../../../../../src/ta_abstract/tables/table_c.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_c.o ../../../../../src/ta_abstract/tables/table_c.c + +../../../../../temp/csr/table_d.o: ../../../../../src/ta_abstract/tables/table_d.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_d.o ../../../../../src/ta_abstract/tables/table_d.c + +../../../../../temp/csr/table_e.o: ../../../../../src/ta_abstract/tables/table_e.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_e.o ../../../../../src/ta_abstract/tables/table_e.c + +../../../../../temp/csr/table_f.o: ../../../../../src/ta_abstract/tables/table_f.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_f.o ../../../../../src/ta_abstract/tables/table_f.c + +../../../../../temp/csr/table_g.o: ../../../../../src/ta_abstract/tables/table_g.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_g.o ../../../../../src/ta_abstract/tables/table_g.c + +../../../../../temp/csr/table_h.o: ../../../../../src/ta_abstract/tables/table_h.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_h.o ../../../../../src/ta_abstract/tables/table_h.c + +../../../../../temp/csr/table_i.o: ../../../../../src/ta_abstract/tables/table_i.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_i.o ../../../../../src/ta_abstract/tables/table_i.c + +../../../../../temp/csr/table_j.o: ../../../../../src/ta_abstract/tables/table_j.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_j.o ../../../../../src/ta_abstract/tables/table_j.c + +../../../../../temp/csr/table_k.o: ../../../../../src/ta_abstract/tables/table_k.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_k.o ../../../../../src/ta_abstract/tables/table_k.c + +../../../../../temp/csr/table_l.o: ../../../../../src/ta_abstract/tables/table_l.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_l.o ../../../../../src/ta_abstract/tables/table_l.c + +../../../../../temp/csr/table_m.o: ../../../../../src/ta_abstract/tables/table_m.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_m.o ../../../../../src/ta_abstract/tables/table_m.c + +../../../../../temp/csr/table_n.o: ../../../../../src/ta_abstract/tables/table_n.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_n.o ../../../../../src/ta_abstract/tables/table_n.c + +../../../../../temp/csr/table_o.o: ../../../../../src/ta_abstract/tables/table_o.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_o.o ../../../../../src/ta_abstract/tables/table_o.c + +../../../../../temp/csr/table_p.o: ../../../../../src/ta_abstract/tables/table_p.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_p.o ../../../../../src/ta_abstract/tables/table_p.c + +../../../../../temp/csr/table_q.o: ../../../../../src/ta_abstract/tables/table_q.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_q.o ../../../../../src/ta_abstract/tables/table_q.c + +../../../../../temp/csr/table_r.o: ../../../../../src/ta_abstract/tables/table_r.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_r.o ../../../../../src/ta_abstract/tables/table_r.c + +../../../../../temp/csr/table_s.o: ../../../../../src/ta_abstract/tables/table_s.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_s.o ../../../../../src/ta_abstract/tables/table_s.c + +../../../../../temp/csr/table_t.o: ../../../../../src/ta_abstract/tables/table_t.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_t.o ../../../../../src/ta_abstract/tables/table_t.c + +../../../../../temp/csr/table_u.o: ../../../../../src/ta_abstract/tables/table_u.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_u.o ../../../../../src/ta_abstract/tables/table_u.c + +../../../../../temp/csr/table_v.o: ../../../../../src/ta_abstract/tables/table_v.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_v.o ../../../../../src/ta_abstract/tables/table_v.c + +../../../../../temp/csr/table_w.o: ../../../../../src/ta_abstract/tables/table_w.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_w.o ../../../../../src/ta_abstract/tables/table_w.c + +../../../../../temp/csr/table_x.o: ../../../../../src/ta_abstract/tables/table_x.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_x.o ../../../../../src/ta_abstract/tables/table_x.c + +../../../../../temp/csr/table_y.o: ../../../../../src/ta_abstract/tables/table_y.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_y.o ../../../../../src/ta_abstract/tables/table_y.c + +../../../../../temp/csr/table_z.o: ../../../../../src/ta_abstract/tables/table_z.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_z.o ../../../../../src/ta_abstract/tables/table_z.c + diff --git a/make/csr/linux/g++/ta_common/Makefile b/make/csr/linux/g++/ta_common/Makefile new file mode 100644 index 000000000..6331d59cc --- /dev/null +++ b/make/csr/linux/g++/ta_common/Makefile @@ -0,0 +1,103 @@ +############################################################################# +# Makefile for building ../../../../../lib/libta_common_csr.a +# Generated by tmake; +# Project: ta_common/ta_common +# Template: lib +############################################################################# + +####### Compiler, tools and options + +CC = gcc +CXX = g++ +CFLAGS = -pipe -fPIC -Wall -W -O2 -fno-strict-aliasing -DTA_SINGLE_THREAD +CXXFLAGS= -pipe -fPIC -Wall -W -O2 -fno-strict-aliasing -DTA_SINGLE_THREAD +INCPATH = -I../../../../../src/ta_common -I../../../../../include +AR = ar cqs +RANLIB = +MOC = $(QTDIR)/bin/moc +UIC = $(QTDIR)/bin/uic + +TAR = tar -cf +GZIP = gzip -9f + +####### Support for 64-bit systems +ifeq ($(shell uname -m), x86_64) + CFLAGS += -march=x86-64 -m64 -D__64BIT__ + CXXFLAGS += -march=x86-64 -m64 -D__64BIT__ +endif + +####### Apply additional overruling user flags, if any +CFLAGS += $(CUSERFLAGS) +CXXFLAGS += $(CUSERFLAGS) + +####### Files + +HEADERS = +SOURCES = ../../../../../src/ta_common/ta_global.c \ + ../../../../../src/ta_common/ta_retcode.c \ + ../../../../../src/ta_common/ta_version.c +OBJECTS = ../../../../../temp/csr/ta_global.o \ + ../../../../../temp/csr/ta_retcode.o \ + ../../../../../temp/csr/ta_version.o +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ../../../../../lib/libta_common_csr.a +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .C .c + +.cpp.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cxx.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cc.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.C.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.c.o: + $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $< + +####### Build rules + + +all: $(TARGET) + +staticlib: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + -rm -f $(TARGET) + $(AR) $(TARGET) $(OBJECTS) $(OBJMOC) + +moc: $(SRCMOC) + +clean: + -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) + -rm -f *~ core + +####### Sub-libraries + + +###### Combined headers + + +####### Compile + +../../../../../temp/csr/ta_global.o: ../../../../../src/ta_common/ta_global.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_global.o ../../../../../src/ta_common/ta_global.c + +../../../../../temp/csr/ta_retcode.o: ../../../../../src/ta_common/ta_retcode.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_retcode.o ../../../../../src/ta_common/ta_retcode.c + +../../../../../temp/csr/ta_version.o: ../../../../../src/ta_common/ta_version.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_version.o ../../../../../src/ta_common/ta_version.c + diff --git a/make/csr/linux/g++/ta_func/Makefile b/make/csr/linux/g++/ta_func/Makefile new file mode 100644 index 000000000..b9f561190 --- /dev/null +++ b/make/csr/linux/g++/ta_func/Makefile @@ -0,0 +1,883 @@ +############################################################################# +# Makefile for building ../../../../../lib/libta_func_csr.a +# Generated by tmake; +# Project: ta_func/ta_func +# Template: lib +############################################################################# + +####### Compiler, tools and options + +CC = gcc +CXX = g++ +CFLAGS = -pipe -fPIC -Wall -W -O2 -fno-strict-aliasing -DTA_SINGLE_THREAD +CXXFLAGS= -pipe -fPIC -Wall -W -O2 -fno-strict-aliasing -DTA_SINGLE_THREAD +INCPATH = -I../../../../../src/ta_common -I/n -I../../../../../include +AR = ar cqs +RANLIB = +MOC = $(QTDIR)/bin/moc +UIC = $(QTDIR)/bin/uic + +TAR = tar -cf +GZIP = gzip -9f + +####### Support for 64-bit systems +ifeq ($(shell uname -m), x86_64) + CFLAGS += -march=x86-64 -m64 -D__64BIT__ + CXXFLAGS += -march=x86-64 -m64 -D__64BIT__ +endif + +####### Apply additional overruling user flags, if any +CFLAGS += $(CUSERFLAGS) +CXXFLAGS += $(CUSERFLAGS) + +####### Files + +HEADERS = +SOURCES = ../../../../../src/ta_func/ta_utility.c \ + ../../../../../src/ta_func/ta_ACOS.c \ + ../../../../../src/ta_func/ta_AD.c \ + ../../../../../src/ta_func/ta_ADD.c \ + ../../../../../src/ta_func/ta_ADOSC.c \ + ../../../../../src/ta_func/ta_ADX.c \ + ../../../../../src/ta_func/ta_ADXR.c \ + ../../../../../src/ta_func/ta_APO.c \ + ../../../../../src/ta_func/ta_AROON.c \ + ../../../../../src/ta_func/ta_AROONOSC.c \ + ../../../../../src/ta_func/ta_ASIN.c \ + ../../../../../src/ta_func/ta_ATAN.c \ + ../../../../../src/ta_func/ta_ATR.c \ + ../../../../../src/ta_func/ta_AVGPRICE.c \ + ../../../../../src/ta_func/ta_BBANDS.c \ + ../../../../../src/ta_func/ta_BETA.c \ + ../../../../../src/ta_func/ta_BOP.c \ + ../../../../../src/ta_func/ta_CCI.c \ + ../../../../../src/ta_func/ta_CDL2CROWS.c \ + ../../../../../src/ta_func/ta_CDL3BLACKCROWS.c \ + ../../../../../src/ta_func/ta_CDL3INSIDE.c \ + ../../../../../src/ta_func/ta_CDL3LINESTRIKE.c \ + ../../../../../src/ta_func/ta_CDL3OUTSIDE.c \ + ../../../../../src/ta_func/ta_CDL3STARSINSOUTH.c \ + ../../../../../src/ta_func/ta_CDL3WHITESOLDIERS.c \ + ../../../../../src/ta_func/ta_CDLABANDONEDBABY.c \ + ../../../../../src/ta_func/ta_CDLADVANCEBLOCK.c \ + ../../../../../src/ta_func/ta_CDLBELTHOLD.c \ + ../../../../../src/ta_func/ta_CDLBREAKAWAY.c \ + ../../../../../src/ta_func/ta_CDLCLOSINGMARUBOZU.c \ + ../../../../../src/ta_func/ta_CDLCONCEALBABYSWALL.c \ + ../../../../../src/ta_func/ta_CDLCOUNTERATTACK.c \ + ../../../../../src/ta_func/ta_CDLDARKCLOUDCOVER.c \ + ../../../../../src/ta_func/ta_CDLDOJI.c \ + ../../../../../src/ta_func/ta_CDLDOJISTAR.c \ + ../../../../../src/ta_func/ta_CDLDRAGONFLYDOJI.c \ + ../../../../../src/ta_func/ta_CDLENGULFING.c \ + ../../../../../src/ta_func/ta_CDLEVENINGDOJISTAR.c \ + ../../../../../src/ta_func/ta_CDLEVENINGSTAR.c \ + ../../../../../src/ta_func/ta_CDLGAPSIDESIDEWHITE.c \ + ../../../../../src/ta_func/ta_CDLGRAVESTONEDOJI.c \ + ../../../../../src/ta_func/ta_CDLHAMMER.c \ + ../../../../../src/ta_func/ta_CDLHANGINGMAN.c \ + ../../../../../src/ta_func/ta_CDLHARAMI.c \ + ../../../../../src/ta_func/ta_CDLHARAMICROSS.c \ + ../../../../../src/ta_func/ta_CDLHIGHWAVE.c \ + ../../../../../src/ta_func/ta_CDLHIKKAKE.c \ + ../../../../../src/ta_func/ta_CDLHIKKAKEMOD.c \ + ../../../../../src/ta_func/ta_CDLHOMINGPIGEON.c \ + ../../../../../src/ta_func/ta_CDLIDENTICAL3CROWS.c \ + ../../../../../src/ta_func/ta_CDLINNECK.c \ + ../../../../../src/ta_func/ta_CDLINVERTEDHAMMER.c \ + ../../../../../src/ta_func/ta_CDLKICKING.c \ + ../../../../../src/ta_func/ta_CDLKICKINGBYLENGTH.c \ + ../../../../../src/ta_func/ta_CDLLADDERBOTTOM.c \ + ../../../../../src/ta_func/ta_CDLLONGLEGGEDDOJI.c \ + ../../../../../src/ta_func/ta_CDLLONGLINE.c \ + ../../../../../src/ta_func/ta_CDLMARUBOZU.c \ + ../../../../../src/ta_func/ta_CDLMATCHINGLOW.c \ + ../../../../../src/ta_func/ta_CDLMATHOLD.c \ + ../../../../../src/ta_func/ta_CDLMORNINGDOJISTAR.c \ + ../../../../../src/ta_func/ta_CDLMORNINGSTAR.c \ + ../../../../../src/ta_func/ta_CDLONNECK.c \ + ../../../../../src/ta_func/ta_CDLPIERCING.c \ + ../../../../../src/ta_func/ta_CDLRICKSHAWMAN.c \ + ../../../../../src/ta_func/ta_CDLRISEFALL3METHODS.c \ + ../../../../../src/ta_func/ta_CDLSEPARATINGLINES.c \ + ../../../../../src/ta_func/ta_CDLSHOOTINGSTAR.c \ + ../../../../../src/ta_func/ta_CDLSHORTLINE.c \ + ../../../../../src/ta_func/ta_CDLSPINNINGTOP.c \ + ../../../../../src/ta_func/ta_CDLSTALLEDPATTERN.c \ + ../../../../../src/ta_func/ta_CDLSTICKSANDWICH.c \ + ../../../../../src/ta_func/ta_CDLTAKURI.c \ + ../../../../../src/ta_func/ta_CDLTASUKIGAP.c \ + ../../../../../src/ta_func/ta_CDLTHRUSTING.c \ + ../../../../../src/ta_func/ta_CDLTRISTAR.c \ + ../../../../../src/ta_func/ta_CDLUNIQUE3RIVER.c \ + ../../../../../src/ta_func/ta_CDLUPSIDEGAP2CROWS.c \ + ../../../../../src/ta_func/ta_CDLXSIDEGAP3METHODS.c \ + ../../../../../src/ta_func/ta_CEIL.c \ + ../../../../../src/ta_func/ta_CMO.c \ + ../../../../../src/ta_func/ta_CORREL.c \ + ../../../../../src/ta_func/ta_COS.c \ + ../../../../../src/ta_func/ta_COSH.c \ + ../../../../../src/ta_func/ta_DEMA.c \ + ../../../../../src/ta_func/ta_DIV.c \ + ../../../../../src/ta_func/ta_DX.c \ + ../../../../../src/ta_func/ta_EMA.c \ + ../../../../../src/ta_func/ta_EXP.c \ + ../../../../../src/ta_func/ta_FLOOR.c \ + ../../../../../src/ta_func/ta_HT_DCPERIOD.c \ + ../../../../../src/ta_func/ta_HT_DCPHASE.c \ + ../../../../../src/ta_func/ta_HT_PHASOR.c \ + ../../../../../src/ta_func/ta_HT_SINE.c \ + ../../../../../src/ta_func/ta_HT_TRENDLINE.c \ + ../../../../../src/ta_func/ta_HT_TRENDMODE.c \ + ../../../../../src/ta_func/ta_KAMA.c \ + ../../../../../src/ta_func/ta_LINEARREG.c \ + ../../../../../src/ta_func/ta_LINEARREG_ANGLE.c \ + ../../../../../src/ta_func/ta_LINEARREG_INTERCEPT.c \ + ../../../../../src/ta_func/ta_LINEARREG_SLOPE.c \ + ../../../../../src/ta_func/ta_LN.c \ + ../../../../../src/ta_func/ta_LOG10.c \ + ../../../../../src/ta_func/ta_MA.c \ + ../../../../../src/ta_func/ta_MACD.c \ + ../../../../../src/ta_func/ta_MACDEXT.c \ + ../../../../../src/ta_func/ta_MACDFIX.c \ + ../../../../../src/ta_func/ta_MAMA.c \ + ../../../../../src/ta_func/ta_MAVP.c \ + ../../../../../src/ta_func/ta_MAX.c \ + ../../../../../src/ta_func/ta_MAXINDEX.c \ + ../../../../../src/ta_func/ta_MEDPRICE.c \ + ../../../../../src/ta_func/ta_MFI.c \ + ../../../../../src/ta_func/ta_MIDPOINT.c \ + ../../../../../src/ta_func/ta_MIDPRICE.c \ + ../../../../../src/ta_func/ta_MIN.c \ + ../../../../../src/ta_func/ta_MININDEX.c \ + ../../../../../src/ta_func/ta_MINMAX.c \ + ../../../../../src/ta_func/ta_MINMAXINDEX.c \ + ../../../../../src/ta_func/ta_MINUS_DI.c \ + ../../../../../src/ta_func/ta_MINUS_DM.c \ + ../../../../../src/ta_func/ta_MOM.c \ + ../../../../../src/ta_func/ta_MULT.c \ + ../../../../../src/ta_func/ta_NATR.c \ + ../../../../../src/ta_func/ta_OBV.c \ + ../../../../../src/ta_func/ta_PLUS_DI.c \ + ../../../../../src/ta_func/ta_PLUS_DM.c \ + ../../../../../src/ta_func/ta_PPO.c \ + ../../../../../src/ta_func/ta_ROC.c \ + ../../../../../src/ta_func/ta_ROCP.c \ + ../../../../../src/ta_func/ta_ROCR.c \ + ../../../../../src/ta_func/ta_ROCR100.c \ + ../../../../../src/ta_func/ta_RSI.c \ + ../../../../../src/ta_func/ta_SAR.c \ + ../../../../../src/ta_func/ta_SAREXT.c \ + ../../../../../src/ta_func/ta_SIN.c \ + ../../../../../src/ta_func/ta_SINH.c \ + ../../../../../src/ta_func/ta_SMA.c \ + ../../../../../src/ta_func/ta_SQRT.c \ + ../../../../../src/ta_func/ta_STDDEV.c \ + ../../../../../src/ta_func/ta_STOCH.c \ + ../../../../../src/ta_func/ta_STOCHF.c \ + ../../../../../src/ta_func/ta_STOCHRSI.c \ + ../../../../../src/ta_func/ta_SUB.c \ + ../../../../../src/ta_func/ta_SUM.c \ + ../../../../../src/ta_func/ta_T3.c \ + ../../../../../src/ta_func/ta_TAN.c \ + ../../../../../src/ta_func/ta_TANH.c \ + ../../../../../src/ta_func/ta_TEMA.c \ + ../../../../../src/ta_func/ta_TRANGE.c \ + ../../../../../src/ta_func/ta_TRIMA.c \ + ../../../../../src/ta_func/ta_TRIX.c \ + ../../../../../src/ta_func/ta_TSF.c \ + ../../../../../src/ta_func/ta_TYPPRICE.c \ + ../../../../../src/ta_func/ta_ULTOSC.c \ + ../../../../../src/ta_func/ta_VAR.c \ + ../../../../../src/ta_func/ta_WCLPRICE.c \ + ../../../../../src/ta_func/ta_WILLR.c \ + ../../../../../src/ta_func/ta_WMA.c +OBJECTS = ../../../../../temp/csr/ta_utility.o \ + ../../../../../temp/csr/ta_ACOS.o \ + ../../../../../temp/csr/ta_AD.o \ + ../../../../../temp/csr/ta_ADD.o \ + ../../../../../temp/csr/ta_ADOSC.o \ + ../../../../../temp/csr/ta_ADX.o \ + ../../../../../temp/csr/ta_ADXR.o \ + ../../../../../temp/csr/ta_APO.o \ + ../../../../../temp/csr/ta_AROON.o \ + ../../../../../temp/csr/ta_AROONOSC.o \ + ../../../../../temp/csr/ta_ASIN.o \ + ../../../../../temp/csr/ta_ATAN.o \ + ../../../../../temp/csr/ta_ATR.o \ + ../../../../../temp/csr/ta_AVGPRICE.o \ + ../../../../../temp/csr/ta_BBANDS.o \ + ../../../../../temp/csr/ta_BETA.o \ + ../../../../../temp/csr/ta_BOP.o \ + ../../../../../temp/csr/ta_CCI.o \ + ../../../../../temp/csr/ta_CDL2CROWS.o \ + ../../../../../temp/csr/ta_CDL3BLACKCROWS.o \ + ../../../../../temp/csr/ta_CDL3INSIDE.o \ + ../../../../../temp/csr/ta_CDL3LINESTRIKE.o \ + ../../../../../temp/csr/ta_CDL3OUTSIDE.o \ + ../../../../../temp/csr/ta_CDL3STARSINSOUTH.o \ + ../../../../../temp/csr/ta_CDL3WHITESOLDIERS.o \ + ../../../../../temp/csr/ta_CDLABANDONEDBABY.o \ + ../../../../../temp/csr/ta_CDLADVANCEBLOCK.o \ + ../../../../../temp/csr/ta_CDLBELTHOLD.o \ + ../../../../../temp/csr/ta_CDLBREAKAWAY.o \ + ../../../../../temp/csr/ta_CDLCLOSINGMARUBOZU.o \ + ../../../../../temp/csr/ta_CDLCONCEALBABYSWALL.o \ + ../../../../../temp/csr/ta_CDLCOUNTERATTACK.o \ + ../../../../../temp/csr/ta_CDLDARKCLOUDCOVER.o \ + ../../../../../temp/csr/ta_CDLDOJI.o \ + ../../../../../temp/csr/ta_CDLDOJISTAR.o \ + ../../../../../temp/csr/ta_CDLDRAGONFLYDOJI.o \ + ../../../../../temp/csr/ta_CDLENGULFING.o \ + ../../../../../temp/csr/ta_CDLEVENINGDOJISTAR.o \ + ../../../../../temp/csr/ta_CDLEVENINGSTAR.o \ + ../../../../../temp/csr/ta_CDLGAPSIDESIDEWHITE.o \ + ../../../../../temp/csr/ta_CDLGRAVESTONEDOJI.o \ + ../../../../../temp/csr/ta_CDLHAMMER.o \ + ../../../../../temp/csr/ta_CDLHANGINGMAN.o \ + ../../../../../temp/csr/ta_CDLHARAMI.o \ + ../../../../../temp/csr/ta_CDLHARAMICROSS.o \ + ../../../../../temp/csr/ta_CDLHIGHWAVE.o \ + ../../../../../temp/csr/ta_CDLHIKKAKE.o \ + ../../../../../temp/csr/ta_CDLHIKKAKEMOD.o \ + ../../../../../temp/csr/ta_CDLHOMINGPIGEON.o \ + ../../../../../temp/csr/ta_CDLIDENTICAL3CROWS.o \ + ../../../../../temp/csr/ta_CDLINNECK.o \ + ../../../../../temp/csr/ta_CDLINVERTEDHAMMER.o \ + ../../../../../temp/csr/ta_CDLKICKING.o \ + ../../../../../temp/csr/ta_CDLKICKINGBYLENGTH.o \ + ../../../../../temp/csr/ta_CDLLADDERBOTTOM.o \ + ../../../../../temp/csr/ta_CDLLONGLEGGEDDOJI.o \ + ../../../../../temp/csr/ta_CDLLONGLINE.o \ + ../../../../../temp/csr/ta_CDLMARUBOZU.o \ + ../../../../../temp/csr/ta_CDLMATCHINGLOW.o \ + ../../../../../temp/csr/ta_CDLMATHOLD.o \ + ../../../../../temp/csr/ta_CDLMORNINGDOJISTAR.o \ + ../../../../../temp/csr/ta_CDLMORNINGSTAR.o \ + ../../../../../temp/csr/ta_CDLONNECK.o \ + ../../../../../temp/csr/ta_CDLPIERCING.o \ + ../../../../../temp/csr/ta_CDLRICKSHAWMAN.o \ + ../../../../../temp/csr/ta_CDLRISEFALL3METHODS.o \ + ../../../../../temp/csr/ta_CDLSEPARATINGLINES.o \ + ../../../../../temp/csr/ta_CDLSHOOTINGSTAR.o \ + ../../../../../temp/csr/ta_CDLSHORTLINE.o \ + ../../../../../temp/csr/ta_CDLSPINNINGTOP.o \ + ../../../../../temp/csr/ta_CDLSTALLEDPATTERN.o \ + ../../../../../temp/csr/ta_CDLSTICKSANDWICH.o \ + ../../../../../temp/csr/ta_CDLTAKURI.o \ + ../../../../../temp/csr/ta_CDLTASUKIGAP.o \ + ../../../../../temp/csr/ta_CDLTHRUSTING.o \ + ../../../../../temp/csr/ta_CDLTRISTAR.o \ + ../../../../../temp/csr/ta_CDLUNIQUE3RIVER.o \ + ../../../../../temp/csr/ta_CDLUPSIDEGAP2CROWS.o \ + ../../../../../temp/csr/ta_CDLXSIDEGAP3METHODS.o \ + ../../../../../temp/csr/ta_CEIL.o \ + ../../../../../temp/csr/ta_CMO.o \ + ../../../../../temp/csr/ta_CORREL.o \ + ../../../../../temp/csr/ta_COS.o \ + ../../../../../temp/csr/ta_COSH.o \ + ../../../../../temp/csr/ta_DEMA.o \ + ../../../../../temp/csr/ta_DIV.o \ + ../../../../../temp/csr/ta_DX.o \ + ../../../../../temp/csr/ta_EMA.o \ + ../../../../../temp/csr/ta_EXP.o \ + ../../../../../temp/csr/ta_FLOOR.o \ + ../../../../../temp/csr/ta_HT_DCPERIOD.o \ + ../../../../../temp/csr/ta_HT_DCPHASE.o \ + ../../../../../temp/csr/ta_HT_PHASOR.o \ + ../../../../../temp/csr/ta_HT_SINE.o \ + ../../../../../temp/csr/ta_HT_TRENDLINE.o \ + ../../../../../temp/csr/ta_HT_TRENDMODE.o \ + ../../../../../temp/csr/ta_KAMA.o \ + ../../../../../temp/csr/ta_LINEARREG.o \ + ../../../../../temp/csr/ta_LINEARREG_ANGLE.o \ + ../../../../../temp/csr/ta_LINEARREG_INTERCEPT.o \ + ../../../../../temp/csr/ta_LINEARREG_SLOPE.o \ + ../../../../../temp/csr/ta_LN.o \ + ../../../../../temp/csr/ta_LOG10.o \ + ../../../../../temp/csr/ta_MA.o \ + ../../../../../temp/csr/ta_MACD.o \ + ../../../../../temp/csr/ta_MACDEXT.o \ + ../../../../../temp/csr/ta_MACDFIX.o \ + ../../../../../temp/csr/ta_MAMA.o \ + ../../../../../temp/csr/ta_MAVP.o \ + ../../../../../temp/csr/ta_MAX.o \ + ../../../../../temp/csr/ta_MAXINDEX.o \ + ../../../../../temp/csr/ta_MEDPRICE.o \ + ../../../../../temp/csr/ta_MFI.o \ + ../../../../../temp/csr/ta_MIDPOINT.o \ + ../../../../../temp/csr/ta_MIDPRICE.o \ + ../../../../../temp/csr/ta_MIN.o \ + ../../../../../temp/csr/ta_MININDEX.o \ + ../../../../../temp/csr/ta_MINMAX.o \ + ../../../../../temp/csr/ta_MINMAXINDEX.o \ + ../../../../../temp/csr/ta_MINUS_DI.o \ + ../../../../../temp/csr/ta_MINUS_DM.o \ + ../../../../../temp/csr/ta_MOM.o \ + ../../../../../temp/csr/ta_MULT.o \ + ../../../../../temp/csr/ta_NATR.o \ + ../../../../../temp/csr/ta_OBV.o \ + ../../../../../temp/csr/ta_PLUS_DI.o \ + ../../../../../temp/csr/ta_PLUS_DM.o \ + ../../../../../temp/csr/ta_PPO.o \ + ../../../../../temp/csr/ta_ROC.o \ + ../../../../../temp/csr/ta_ROCP.o \ + ../../../../../temp/csr/ta_ROCR.o \ + ../../../../../temp/csr/ta_ROCR100.o \ + ../../../../../temp/csr/ta_RSI.o \ + ../../../../../temp/csr/ta_SAR.o \ + ../../../../../temp/csr/ta_SAREXT.o \ + ../../../../../temp/csr/ta_SIN.o \ + ../../../../../temp/csr/ta_SINH.o \ + ../../../../../temp/csr/ta_SMA.o \ + ../../../../../temp/csr/ta_SQRT.o \ + ../../../../../temp/csr/ta_STDDEV.o \ + ../../../../../temp/csr/ta_STOCH.o \ + ../../../../../temp/csr/ta_STOCHF.o \ + ../../../../../temp/csr/ta_STOCHRSI.o \ + ../../../../../temp/csr/ta_SUB.o \ + ../../../../../temp/csr/ta_SUM.o \ + ../../../../../temp/csr/ta_T3.o \ + ../../../../../temp/csr/ta_TAN.o \ + ../../../../../temp/csr/ta_TANH.o \ + ../../../../../temp/csr/ta_TEMA.o \ + ../../../../../temp/csr/ta_TRANGE.o \ + ../../../../../temp/csr/ta_TRIMA.o \ + ../../../../../temp/csr/ta_TRIX.o \ + ../../../../../temp/csr/ta_TSF.o \ + ../../../../../temp/csr/ta_TYPPRICE.o \ + ../../../../../temp/csr/ta_ULTOSC.o \ + ../../../../../temp/csr/ta_VAR.o \ + ../../../../../temp/csr/ta_WCLPRICE.o \ + ../../../../../temp/csr/ta_WILLR.o \ + ../../../../../temp/csr/ta_WMA.o +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ../../../../../lib/libta_func_csr.a +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .C .c + +.cpp.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cxx.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cc.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.C.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.c.o: + $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $< + +####### Build rules + + +all: $(TARGET) + +staticlib: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + -rm -f $(TARGET) + $(AR) $(TARGET) $(OBJECTS) $(OBJMOC) + +moc: $(SRCMOC) + +clean: + -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) + -rm -f *~ core + +####### Sub-libraries + + +###### Combined headers + + +####### Compile + +../../../../../temp/csr/ta_utility.o: ../../../../../src/ta_func/ta_utility.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_utility.o ../../../../../src/ta_func/ta_utility.c + +../../../../../temp/csr/ta_ACOS.o: ../../../../../src/ta_func/ta_ACOS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_ACOS.o ../../../../../src/ta_func/ta_ACOS.c + +../../../../../temp/csr/ta_AD.o: ../../../../../src/ta_func/ta_AD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_AD.o ../../../../../src/ta_func/ta_AD.c + +../../../../../temp/csr/ta_ADD.o: ../../../../../src/ta_func/ta_ADD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_ADD.o ../../../../../src/ta_func/ta_ADD.c + +../../../../../temp/csr/ta_ADOSC.o: ../../../../../src/ta_func/ta_ADOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_ADOSC.o ../../../../../src/ta_func/ta_ADOSC.c + +../../../../../temp/csr/ta_ADX.o: ../../../../../src/ta_func/ta_ADX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_ADX.o ../../../../../src/ta_func/ta_ADX.c + +../../../../../temp/csr/ta_ADXR.o: ../../../../../src/ta_func/ta_ADXR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_ADXR.o ../../../../../src/ta_func/ta_ADXR.c + +../../../../../temp/csr/ta_APO.o: ../../../../../src/ta_func/ta_APO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_APO.o ../../../../../src/ta_func/ta_APO.c + +../../../../../temp/csr/ta_AROON.o: ../../../../../src/ta_func/ta_AROON.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_AROON.o ../../../../../src/ta_func/ta_AROON.c + +../../../../../temp/csr/ta_AROONOSC.o: ../../../../../src/ta_func/ta_AROONOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_AROONOSC.o ../../../../../src/ta_func/ta_AROONOSC.c + +../../../../../temp/csr/ta_ASIN.o: ../../../../../src/ta_func/ta_ASIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_ASIN.o ../../../../../src/ta_func/ta_ASIN.c + +../../../../../temp/csr/ta_ATAN.o: ../../../../../src/ta_func/ta_ATAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_ATAN.o ../../../../../src/ta_func/ta_ATAN.c + +../../../../../temp/csr/ta_ATR.o: ../../../../../src/ta_func/ta_ATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_ATR.o ../../../../../src/ta_func/ta_ATR.c + +../../../../../temp/csr/ta_AVGPRICE.o: ../../../../../src/ta_func/ta_AVGPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_AVGPRICE.o ../../../../../src/ta_func/ta_AVGPRICE.c + +../../../../../temp/csr/ta_BBANDS.o: ../../../../../src/ta_func/ta_BBANDS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_BBANDS.o ../../../../../src/ta_func/ta_BBANDS.c + +../../../../../temp/csr/ta_BETA.o: ../../../../../src/ta_func/ta_BETA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_BETA.o ../../../../../src/ta_func/ta_BETA.c + +../../../../../temp/csr/ta_BOP.o: ../../../../../src/ta_func/ta_BOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_BOP.o ../../../../../src/ta_func/ta_BOP.c + +../../../../../temp/csr/ta_CCI.o: ../../../../../src/ta_func/ta_CCI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CCI.o ../../../../../src/ta_func/ta_CCI.c + +../../../../../temp/csr/ta_CDL2CROWS.o: ../../../../../src/ta_func/ta_CDL2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDL2CROWS.o ../../../../../src/ta_func/ta_CDL2CROWS.c + +../../../../../temp/csr/ta_CDL3BLACKCROWS.o: ../../../../../src/ta_func/ta_CDL3BLACKCROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDL3BLACKCROWS.o ../../../../../src/ta_func/ta_CDL3BLACKCROWS.c + +../../../../../temp/csr/ta_CDL3INSIDE.o: ../../../../../src/ta_func/ta_CDL3INSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDL3INSIDE.o ../../../../../src/ta_func/ta_CDL3INSIDE.c + +../../../../../temp/csr/ta_CDL3LINESTRIKE.o: ../../../../../src/ta_func/ta_CDL3LINESTRIKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDL3LINESTRIKE.o ../../../../../src/ta_func/ta_CDL3LINESTRIKE.c + +../../../../../temp/csr/ta_CDL3OUTSIDE.o: ../../../../../src/ta_func/ta_CDL3OUTSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDL3OUTSIDE.o ../../../../../src/ta_func/ta_CDL3OUTSIDE.c + +../../../../../temp/csr/ta_CDL3STARSINSOUTH.o: ../../../../../src/ta_func/ta_CDL3STARSINSOUTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDL3STARSINSOUTH.o ../../../../../src/ta_func/ta_CDL3STARSINSOUTH.c + +../../../../../temp/csr/ta_CDL3WHITESOLDIERS.o: ../../../../../src/ta_func/ta_CDL3WHITESOLDIERS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDL3WHITESOLDIERS.o ../../../../../src/ta_func/ta_CDL3WHITESOLDIERS.c + +../../../../../temp/csr/ta_CDLABANDONEDBABY.o: ../../../../../src/ta_func/ta_CDLABANDONEDBABY.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLABANDONEDBABY.o ../../../../../src/ta_func/ta_CDLABANDONEDBABY.c + +../../../../../temp/csr/ta_CDLADVANCEBLOCK.o: ../../../../../src/ta_func/ta_CDLADVANCEBLOCK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLADVANCEBLOCK.o ../../../../../src/ta_func/ta_CDLADVANCEBLOCK.c + +../../../../../temp/csr/ta_CDLBELTHOLD.o: ../../../../../src/ta_func/ta_CDLBELTHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLBELTHOLD.o ../../../../../src/ta_func/ta_CDLBELTHOLD.c + +../../../../../temp/csr/ta_CDLBREAKAWAY.o: ../../../../../src/ta_func/ta_CDLBREAKAWAY.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLBREAKAWAY.o ../../../../../src/ta_func/ta_CDLBREAKAWAY.c + +../../../../../temp/csr/ta_CDLCLOSINGMARUBOZU.o: ../../../../../src/ta_func/ta_CDLCLOSINGMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLCLOSINGMARUBOZU.o ../../../../../src/ta_func/ta_CDLCLOSINGMARUBOZU.c + +../../../../../temp/csr/ta_CDLCONCEALBABYSWALL.o: ../../../../../src/ta_func/ta_CDLCONCEALBABYSWALL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLCONCEALBABYSWALL.o ../../../../../src/ta_func/ta_CDLCONCEALBABYSWALL.c + +../../../../../temp/csr/ta_CDLCOUNTERATTACK.o: ../../../../../src/ta_func/ta_CDLCOUNTERATTACK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLCOUNTERATTACK.o ../../../../../src/ta_func/ta_CDLCOUNTERATTACK.c + +../../../../../temp/csr/ta_CDLDARKCLOUDCOVER.o: ../../../../../src/ta_func/ta_CDLDARKCLOUDCOVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLDARKCLOUDCOVER.o ../../../../../src/ta_func/ta_CDLDARKCLOUDCOVER.c + +../../../../../temp/csr/ta_CDLDOJI.o: ../../../../../src/ta_func/ta_CDLDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLDOJI.o ../../../../../src/ta_func/ta_CDLDOJI.c + +../../../../../temp/csr/ta_CDLDOJISTAR.o: ../../../../../src/ta_func/ta_CDLDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLDOJISTAR.o ../../../../../src/ta_func/ta_CDLDOJISTAR.c + +../../../../../temp/csr/ta_CDLDRAGONFLYDOJI.o: ../../../../../src/ta_func/ta_CDLDRAGONFLYDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLDRAGONFLYDOJI.o ../../../../../src/ta_func/ta_CDLDRAGONFLYDOJI.c + +../../../../../temp/csr/ta_CDLENGULFING.o: ../../../../../src/ta_func/ta_CDLENGULFING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLENGULFING.o ../../../../../src/ta_func/ta_CDLENGULFING.c + +../../../../../temp/csr/ta_CDLEVENINGDOJISTAR.o: ../../../../../src/ta_func/ta_CDLEVENINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLEVENINGDOJISTAR.o ../../../../../src/ta_func/ta_CDLEVENINGDOJISTAR.c + +../../../../../temp/csr/ta_CDLEVENINGSTAR.o: ../../../../../src/ta_func/ta_CDLEVENINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLEVENINGSTAR.o ../../../../../src/ta_func/ta_CDLEVENINGSTAR.c + +../../../../../temp/csr/ta_CDLGAPSIDESIDEWHITE.o: ../../../../../src/ta_func/ta_CDLGAPSIDESIDEWHITE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLGAPSIDESIDEWHITE.o ../../../../../src/ta_func/ta_CDLGAPSIDESIDEWHITE.c + +../../../../../temp/csr/ta_CDLGRAVESTONEDOJI.o: ../../../../../src/ta_func/ta_CDLGRAVESTONEDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLGRAVESTONEDOJI.o ../../../../../src/ta_func/ta_CDLGRAVESTONEDOJI.c + +../../../../../temp/csr/ta_CDLHAMMER.o: ../../../../../src/ta_func/ta_CDLHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLHAMMER.o ../../../../../src/ta_func/ta_CDLHAMMER.c + +../../../../../temp/csr/ta_CDLHANGINGMAN.o: ../../../../../src/ta_func/ta_CDLHANGINGMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLHANGINGMAN.o ../../../../../src/ta_func/ta_CDLHANGINGMAN.c + +../../../../../temp/csr/ta_CDLHARAMI.o: ../../../../../src/ta_func/ta_CDLHARAMI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLHARAMI.o ../../../../../src/ta_func/ta_CDLHARAMI.c + +../../../../../temp/csr/ta_CDLHARAMICROSS.o: ../../../../../src/ta_func/ta_CDLHARAMICROSS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLHARAMICROSS.o ../../../../../src/ta_func/ta_CDLHARAMICROSS.c + +../../../../../temp/csr/ta_CDLHIGHWAVE.o: ../../../../../src/ta_func/ta_CDLHIGHWAVE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLHIGHWAVE.o ../../../../../src/ta_func/ta_CDLHIGHWAVE.c + +../../../../../temp/csr/ta_CDLHIKKAKE.o: ../../../../../src/ta_func/ta_CDLHIKKAKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLHIKKAKE.o ../../../../../src/ta_func/ta_CDLHIKKAKE.c + +../../../../../temp/csr/ta_CDLHIKKAKEMOD.o: ../../../../../src/ta_func/ta_CDLHIKKAKEMOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLHIKKAKEMOD.o ../../../../../src/ta_func/ta_CDLHIKKAKEMOD.c + +../../../../../temp/csr/ta_CDLHOMINGPIGEON.o: ../../../../../src/ta_func/ta_CDLHOMINGPIGEON.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLHOMINGPIGEON.o ../../../../../src/ta_func/ta_CDLHOMINGPIGEON.c + +../../../../../temp/csr/ta_CDLIDENTICAL3CROWS.o: ../../../../../src/ta_func/ta_CDLIDENTICAL3CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLIDENTICAL3CROWS.o ../../../../../src/ta_func/ta_CDLIDENTICAL3CROWS.c + +../../../../../temp/csr/ta_CDLINNECK.o: ../../../../../src/ta_func/ta_CDLINNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLINNECK.o ../../../../../src/ta_func/ta_CDLINNECK.c + +../../../../../temp/csr/ta_CDLINVERTEDHAMMER.o: ../../../../../src/ta_func/ta_CDLINVERTEDHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLINVERTEDHAMMER.o ../../../../../src/ta_func/ta_CDLINVERTEDHAMMER.c + +../../../../../temp/csr/ta_CDLKICKING.o: ../../../../../src/ta_func/ta_CDLKICKING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLKICKING.o ../../../../../src/ta_func/ta_CDLKICKING.c + +../../../../../temp/csr/ta_CDLKICKINGBYLENGTH.o: ../../../../../src/ta_func/ta_CDLKICKINGBYLENGTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLKICKINGBYLENGTH.o ../../../../../src/ta_func/ta_CDLKICKINGBYLENGTH.c + +../../../../../temp/csr/ta_CDLLADDERBOTTOM.o: ../../../../../src/ta_func/ta_CDLLADDERBOTTOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLLADDERBOTTOM.o ../../../../../src/ta_func/ta_CDLLADDERBOTTOM.c + +../../../../../temp/csr/ta_CDLLONGLEGGEDDOJI.o: ../../../../../src/ta_func/ta_CDLLONGLEGGEDDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLLONGLEGGEDDOJI.o ../../../../../src/ta_func/ta_CDLLONGLEGGEDDOJI.c + +../../../../../temp/csr/ta_CDLLONGLINE.o: ../../../../../src/ta_func/ta_CDLLONGLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLLONGLINE.o ../../../../../src/ta_func/ta_CDLLONGLINE.c + +../../../../../temp/csr/ta_CDLMARUBOZU.o: ../../../../../src/ta_func/ta_CDLMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLMARUBOZU.o ../../../../../src/ta_func/ta_CDLMARUBOZU.c + +../../../../../temp/csr/ta_CDLMATCHINGLOW.o: ../../../../../src/ta_func/ta_CDLMATCHINGLOW.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLMATCHINGLOW.o ../../../../../src/ta_func/ta_CDLMATCHINGLOW.c + +../../../../../temp/csr/ta_CDLMATHOLD.o: ../../../../../src/ta_func/ta_CDLMATHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLMATHOLD.o ../../../../../src/ta_func/ta_CDLMATHOLD.c + +../../../../../temp/csr/ta_CDLMORNINGDOJISTAR.o: ../../../../../src/ta_func/ta_CDLMORNINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLMORNINGDOJISTAR.o ../../../../../src/ta_func/ta_CDLMORNINGDOJISTAR.c + +../../../../../temp/csr/ta_CDLMORNINGSTAR.o: ../../../../../src/ta_func/ta_CDLMORNINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLMORNINGSTAR.o ../../../../../src/ta_func/ta_CDLMORNINGSTAR.c + +../../../../../temp/csr/ta_CDLONNECK.o: ../../../../../src/ta_func/ta_CDLONNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLONNECK.o ../../../../../src/ta_func/ta_CDLONNECK.c + +../../../../../temp/csr/ta_CDLPIERCING.o: ../../../../../src/ta_func/ta_CDLPIERCING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLPIERCING.o ../../../../../src/ta_func/ta_CDLPIERCING.c + +../../../../../temp/csr/ta_CDLRICKSHAWMAN.o: ../../../../../src/ta_func/ta_CDLRICKSHAWMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLRICKSHAWMAN.o ../../../../../src/ta_func/ta_CDLRICKSHAWMAN.c + +../../../../../temp/csr/ta_CDLRISEFALL3METHODS.o: ../../../../../src/ta_func/ta_CDLRISEFALL3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLRISEFALL3METHODS.o ../../../../../src/ta_func/ta_CDLRISEFALL3METHODS.c + +../../../../../temp/csr/ta_CDLSEPARATINGLINES.o: ../../../../../src/ta_func/ta_CDLSEPARATINGLINES.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLSEPARATINGLINES.o ../../../../../src/ta_func/ta_CDLSEPARATINGLINES.c + +../../../../../temp/csr/ta_CDLSHOOTINGSTAR.o: ../../../../../src/ta_func/ta_CDLSHOOTINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLSHOOTINGSTAR.o ../../../../../src/ta_func/ta_CDLSHOOTINGSTAR.c + +../../../../../temp/csr/ta_CDLSHORTLINE.o: ../../../../../src/ta_func/ta_CDLSHORTLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLSHORTLINE.o ../../../../../src/ta_func/ta_CDLSHORTLINE.c + +../../../../../temp/csr/ta_CDLSPINNINGTOP.o: ../../../../../src/ta_func/ta_CDLSPINNINGTOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLSPINNINGTOP.o ../../../../../src/ta_func/ta_CDLSPINNINGTOP.c + +../../../../../temp/csr/ta_CDLSTALLEDPATTERN.o: ../../../../../src/ta_func/ta_CDLSTALLEDPATTERN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLSTALLEDPATTERN.o ../../../../../src/ta_func/ta_CDLSTALLEDPATTERN.c + +../../../../../temp/csr/ta_CDLSTICKSANDWICH.o: ../../../../../src/ta_func/ta_CDLSTICKSANDWICH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLSTICKSANDWICH.o ../../../../../src/ta_func/ta_CDLSTICKSANDWICH.c + +../../../../../temp/csr/ta_CDLTAKURI.o: ../../../../../src/ta_func/ta_CDLTAKURI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLTAKURI.o ../../../../../src/ta_func/ta_CDLTAKURI.c + +../../../../../temp/csr/ta_CDLTASUKIGAP.o: ../../../../../src/ta_func/ta_CDLTASUKIGAP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLTASUKIGAP.o ../../../../../src/ta_func/ta_CDLTASUKIGAP.c + +../../../../../temp/csr/ta_CDLTHRUSTING.o: ../../../../../src/ta_func/ta_CDLTHRUSTING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLTHRUSTING.o ../../../../../src/ta_func/ta_CDLTHRUSTING.c + +../../../../../temp/csr/ta_CDLTRISTAR.o: ../../../../../src/ta_func/ta_CDLTRISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLTRISTAR.o ../../../../../src/ta_func/ta_CDLTRISTAR.c + +../../../../../temp/csr/ta_CDLUNIQUE3RIVER.o: ../../../../../src/ta_func/ta_CDLUNIQUE3RIVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLUNIQUE3RIVER.o ../../../../../src/ta_func/ta_CDLUNIQUE3RIVER.c + +../../../../../temp/csr/ta_CDLUPSIDEGAP2CROWS.o: ../../../../../src/ta_func/ta_CDLUPSIDEGAP2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLUPSIDEGAP2CROWS.o ../../../../../src/ta_func/ta_CDLUPSIDEGAP2CROWS.c + +../../../../../temp/csr/ta_CDLXSIDEGAP3METHODS.o: ../../../../../src/ta_func/ta_CDLXSIDEGAP3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLXSIDEGAP3METHODS.o ../../../../../src/ta_func/ta_CDLXSIDEGAP3METHODS.c + +../../../../../temp/csr/ta_CEIL.o: ../../../../../src/ta_func/ta_CEIL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CEIL.o ../../../../../src/ta_func/ta_CEIL.c + +../../../../../temp/csr/ta_CMO.o: ../../../../../src/ta_func/ta_CMO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CMO.o ../../../../../src/ta_func/ta_CMO.c + +../../../../../temp/csr/ta_CORREL.o: ../../../../../src/ta_func/ta_CORREL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CORREL.o ../../../../../src/ta_func/ta_CORREL.c + +../../../../../temp/csr/ta_COS.o: ../../../../../src/ta_func/ta_COS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_COS.o ../../../../../src/ta_func/ta_COS.c + +../../../../../temp/csr/ta_COSH.o: ../../../../../src/ta_func/ta_COSH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_COSH.o ../../../../../src/ta_func/ta_COSH.c + +../../../../../temp/csr/ta_DEMA.o: ../../../../../src/ta_func/ta_DEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_DEMA.o ../../../../../src/ta_func/ta_DEMA.c + +../../../../../temp/csr/ta_DIV.o: ../../../../../src/ta_func/ta_DIV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_DIV.o ../../../../../src/ta_func/ta_DIV.c + +../../../../../temp/csr/ta_DX.o: ../../../../../src/ta_func/ta_DX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_DX.o ../../../../../src/ta_func/ta_DX.c + +../../../../../temp/csr/ta_EMA.o: ../../../../../src/ta_func/ta_EMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_EMA.o ../../../../../src/ta_func/ta_EMA.c + +../../../../../temp/csr/ta_EXP.o: ../../../../../src/ta_func/ta_EXP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_EXP.o ../../../../../src/ta_func/ta_EXP.c + +../../../../../temp/csr/ta_FLOOR.o: ../../../../../src/ta_func/ta_FLOOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_FLOOR.o ../../../../../src/ta_func/ta_FLOOR.c + +../../../../../temp/csr/ta_HT_DCPERIOD.o: ../../../../../src/ta_func/ta_HT_DCPERIOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_HT_DCPERIOD.o ../../../../../src/ta_func/ta_HT_DCPERIOD.c + +../../../../../temp/csr/ta_HT_DCPHASE.o: ../../../../../src/ta_func/ta_HT_DCPHASE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_HT_DCPHASE.o ../../../../../src/ta_func/ta_HT_DCPHASE.c + +../../../../../temp/csr/ta_HT_PHASOR.o: ../../../../../src/ta_func/ta_HT_PHASOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_HT_PHASOR.o ../../../../../src/ta_func/ta_HT_PHASOR.c + +../../../../../temp/csr/ta_HT_SINE.o: ../../../../../src/ta_func/ta_HT_SINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_HT_SINE.o ../../../../../src/ta_func/ta_HT_SINE.c + +../../../../../temp/csr/ta_HT_TRENDLINE.o: ../../../../../src/ta_func/ta_HT_TRENDLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_HT_TRENDLINE.o ../../../../../src/ta_func/ta_HT_TRENDLINE.c + +../../../../../temp/csr/ta_HT_TRENDMODE.o: ../../../../../src/ta_func/ta_HT_TRENDMODE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_HT_TRENDMODE.o ../../../../../src/ta_func/ta_HT_TRENDMODE.c + +../../../../../temp/csr/ta_KAMA.o: ../../../../../src/ta_func/ta_KAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_KAMA.o ../../../../../src/ta_func/ta_KAMA.c + +../../../../../temp/csr/ta_LINEARREG.o: ../../../../../src/ta_func/ta_LINEARREG.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_LINEARREG.o ../../../../../src/ta_func/ta_LINEARREG.c + +../../../../../temp/csr/ta_LINEARREG_ANGLE.o: ../../../../../src/ta_func/ta_LINEARREG_ANGLE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_LINEARREG_ANGLE.o ../../../../../src/ta_func/ta_LINEARREG_ANGLE.c + +../../../../../temp/csr/ta_LINEARREG_INTERCEPT.o: ../../../../../src/ta_func/ta_LINEARREG_INTERCEPT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_LINEARREG_INTERCEPT.o ../../../../../src/ta_func/ta_LINEARREG_INTERCEPT.c + +../../../../../temp/csr/ta_LINEARREG_SLOPE.o: ../../../../../src/ta_func/ta_LINEARREG_SLOPE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_LINEARREG_SLOPE.o ../../../../../src/ta_func/ta_LINEARREG_SLOPE.c + +../../../../../temp/csr/ta_LN.o: ../../../../../src/ta_func/ta_LN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_LN.o ../../../../../src/ta_func/ta_LN.c + +../../../../../temp/csr/ta_LOG10.o: ../../../../../src/ta_func/ta_LOG10.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_LOG10.o ../../../../../src/ta_func/ta_LOG10.c + +../../../../../temp/csr/ta_MA.o: ../../../../../src/ta_func/ta_MA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_MA.o ../../../../../src/ta_func/ta_MA.c + +../../../../../temp/csr/ta_MACD.o: ../../../../../src/ta_func/ta_MACD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_MACD.o ../../../../../src/ta_func/ta_MACD.c + +../../../../../temp/csr/ta_MACDEXT.o: ../../../../../src/ta_func/ta_MACDEXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_MACDEXT.o ../../../../../src/ta_func/ta_MACDEXT.c + +../../../../../temp/csr/ta_MACDFIX.o: ../../../../../src/ta_func/ta_MACDFIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_MACDFIX.o ../../../../../src/ta_func/ta_MACDFIX.c + +../../../../../temp/csr/ta_MAMA.o: ../../../../../src/ta_func/ta_MAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_MAMA.o ../../../../../src/ta_func/ta_MAMA.c + +../../../../../temp/csr/ta_MAVP.o: ../../../../../src/ta_func/ta_MAVP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_MAVP.o ../../../../../src/ta_func/ta_MAVP.c + +../../../../../temp/csr/ta_MAX.o: ../../../../../src/ta_func/ta_MAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_MAX.o ../../../../../src/ta_func/ta_MAX.c + +../../../../../temp/csr/ta_MAXINDEX.o: ../../../../../src/ta_func/ta_MAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_MAXINDEX.o ../../../../../src/ta_func/ta_MAXINDEX.c + +../../../../../temp/csr/ta_MEDPRICE.o: ../../../../../src/ta_func/ta_MEDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_MEDPRICE.o ../../../../../src/ta_func/ta_MEDPRICE.c + +../../../../../temp/csr/ta_MFI.o: ../../../../../src/ta_func/ta_MFI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_MFI.o ../../../../../src/ta_func/ta_MFI.c + +../../../../../temp/csr/ta_MIDPOINT.o: ../../../../../src/ta_func/ta_MIDPOINT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_MIDPOINT.o ../../../../../src/ta_func/ta_MIDPOINT.c + +../../../../../temp/csr/ta_MIDPRICE.o: ../../../../../src/ta_func/ta_MIDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_MIDPRICE.o ../../../../../src/ta_func/ta_MIDPRICE.c + +../../../../../temp/csr/ta_MIN.o: ../../../../../src/ta_func/ta_MIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_MIN.o ../../../../../src/ta_func/ta_MIN.c + +../../../../../temp/csr/ta_MININDEX.o: ../../../../../src/ta_func/ta_MININDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_MININDEX.o ../../../../../src/ta_func/ta_MININDEX.c + +../../../../../temp/csr/ta_MINMAX.o: ../../../../../src/ta_func/ta_MINMAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_MINMAX.o ../../../../../src/ta_func/ta_MINMAX.c + +../../../../../temp/csr/ta_MINMAXINDEX.o: ../../../../../src/ta_func/ta_MINMAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_MINMAXINDEX.o ../../../../../src/ta_func/ta_MINMAXINDEX.c + +../../../../../temp/csr/ta_MINUS_DI.o: ../../../../../src/ta_func/ta_MINUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_MINUS_DI.o ../../../../../src/ta_func/ta_MINUS_DI.c + +../../../../../temp/csr/ta_MINUS_DM.o: ../../../../../src/ta_func/ta_MINUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_MINUS_DM.o ../../../../../src/ta_func/ta_MINUS_DM.c + +../../../../../temp/csr/ta_MOM.o: ../../../../../src/ta_func/ta_MOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_MOM.o ../../../../../src/ta_func/ta_MOM.c + +../../../../../temp/csr/ta_MULT.o: ../../../../../src/ta_func/ta_MULT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_MULT.o ../../../../../src/ta_func/ta_MULT.c + +../../../../../temp/csr/ta_NATR.o: ../../../../../src/ta_func/ta_NATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_NATR.o ../../../../../src/ta_func/ta_NATR.c + +../../../../../temp/csr/ta_OBV.o: ../../../../../src/ta_func/ta_OBV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_OBV.o ../../../../../src/ta_func/ta_OBV.c + +../../../../../temp/csr/ta_PLUS_DI.o: ../../../../../src/ta_func/ta_PLUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_PLUS_DI.o ../../../../../src/ta_func/ta_PLUS_DI.c + +../../../../../temp/csr/ta_PLUS_DM.o: ../../../../../src/ta_func/ta_PLUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_PLUS_DM.o ../../../../../src/ta_func/ta_PLUS_DM.c + +../../../../../temp/csr/ta_PPO.o: ../../../../../src/ta_func/ta_PPO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_PPO.o ../../../../../src/ta_func/ta_PPO.c + +../../../../../temp/csr/ta_ROC.o: ../../../../../src/ta_func/ta_ROC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_ROC.o ../../../../../src/ta_func/ta_ROC.c + +../../../../../temp/csr/ta_ROCP.o: ../../../../../src/ta_func/ta_ROCP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_ROCP.o ../../../../../src/ta_func/ta_ROCP.c + +../../../../../temp/csr/ta_ROCR.o: ../../../../../src/ta_func/ta_ROCR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_ROCR.o ../../../../../src/ta_func/ta_ROCR.c + +../../../../../temp/csr/ta_ROCR100.o: ../../../../../src/ta_func/ta_ROCR100.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_ROCR100.o ../../../../../src/ta_func/ta_ROCR100.c + +../../../../../temp/csr/ta_RSI.o: ../../../../../src/ta_func/ta_RSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_RSI.o ../../../../../src/ta_func/ta_RSI.c + +../../../../../temp/csr/ta_SAR.o: ../../../../../src/ta_func/ta_SAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_SAR.o ../../../../../src/ta_func/ta_SAR.c + +../../../../../temp/csr/ta_SAREXT.o: ../../../../../src/ta_func/ta_SAREXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_SAREXT.o ../../../../../src/ta_func/ta_SAREXT.c + +../../../../../temp/csr/ta_SIN.o: ../../../../../src/ta_func/ta_SIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_SIN.o ../../../../../src/ta_func/ta_SIN.c + +../../../../../temp/csr/ta_SINH.o: ../../../../../src/ta_func/ta_SINH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_SINH.o ../../../../../src/ta_func/ta_SINH.c + +../../../../../temp/csr/ta_SMA.o: ../../../../../src/ta_func/ta_SMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_SMA.o ../../../../../src/ta_func/ta_SMA.c + +../../../../../temp/csr/ta_SQRT.o: ../../../../../src/ta_func/ta_SQRT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_SQRT.o ../../../../../src/ta_func/ta_SQRT.c + +../../../../../temp/csr/ta_STDDEV.o: ../../../../../src/ta_func/ta_STDDEV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_STDDEV.o ../../../../../src/ta_func/ta_STDDEV.c + +../../../../../temp/csr/ta_STOCH.o: ../../../../../src/ta_func/ta_STOCH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_STOCH.o ../../../../../src/ta_func/ta_STOCH.c + +../../../../../temp/csr/ta_STOCHF.o: ../../../../../src/ta_func/ta_STOCHF.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_STOCHF.o ../../../../../src/ta_func/ta_STOCHF.c + +../../../../../temp/csr/ta_STOCHRSI.o: ../../../../../src/ta_func/ta_STOCHRSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_STOCHRSI.o ../../../../../src/ta_func/ta_STOCHRSI.c + +../../../../../temp/csr/ta_SUB.o: ../../../../../src/ta_func/ta_SUB.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_SUB.o ../../../../../src/ta_func/ta_SUB.c + +../../../../../temp/csr/ta_SUM.o: ../../../../../src/ta_func/ta_SUM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_SUM.o ../../../../../src/ta_func/ta_SUM.c + +../../../../../temp/csr/ta_T3.o: ../../../../../src/ta_func/ta_T3.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_T3.o ../../../../../src/ta_func/ta_T3.c + +../../../../../temp/csr/ta_TAN.o: ../../../../../src/ta_func/ta_TAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_TAN.o ../../../../../src/ta_func/ta_TAN.c + +../../../../../temp/csr/ta_TANH.o: ../../../../../src/ta_func/ta_TANH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_TANH.o ../../../../../src/ta_func/ta_TANH.c + +../../../../../temp/csr/ta_TEMA.o: ../../../../../src/ta_func/ta_TEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_TEMA.o ../../../../../src/ta_func/ta_TEMA.c + +../../../../../temp/csr/ta_TRANGE.o: ../../../../../src/ta_func/ta_TRANGE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_TRANGE.o ../../../../../src/ta_func/ta_TRANGE.c + +../../../../../temp/csr/ta_TRIMA.o: ../../../../../src/ta_func/ta_TRIMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_TRIMA.o ../../../../../src/ta_func/ta_TRIMA.c + +../../../../../temp/csr/ta_TRIX.o: ../../../../../src/ta_func/ta_TRIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_TRIX.o ../../../../../src/ta_func/ta_TRIX.c + +../../../../../temp/csr/ta_TSF.o: ../../../../../src/ta_func/ta_TSF.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_TSF.o ../../../../../src/ta_func/ta_TSF.c + +../../../../../temp/csr/ta_TYPPRICE.o: ../../../../../src/ta_func/ta_TYPPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_TYPPRICE.o ../../../../../src/ta_func/ta_TYPPRICE.c + +../../../../../temp/csr/ta_ULTOSC.o: ../../../../../src/ta_func/ta_ULTOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_ULTOSC.o ../../../../../src/ta_func/ta_ULTOSC.c + +../../../../../temp/csr/ta_VAR.o: ../../../../../src/ta_func/ta_VAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_VAR.o ../../../../../src/ta_func/ta_VAR.c + +../../../../../temp/csr/ta_WCLPRICE.o: ../../../../../src/ta_func/ta_WCLPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_WCLPRICE.o ../../../../../src/ta_func/ta_WCLPRICE.c + +../../../../../temp/csr/ta_WILLR.o: ../../../../../src/ta_func/ta_WILLR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_WILLR.o ../../../../../src/ta_func/ta_WILLR.c + +../../../../../temp/csr/ta_WMA.o: ../../../../../src/ta_func/ta_WMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_WMA.o ../../../../../src/ta_func/ta_WMA.c + diff --git a/make/csr/linux/g++/ta_libc/Makefile b/make/csr/linux/g++/ta_libc/Makefile new file mode 100644 index 000000000..1502507c2 --- /dev/null +++ b/make/csr/linux/g++/ta_libc/Makefile @@ -0,0 +1,1053 @@ +############################################################################# +# Makefile for building ../../../../../lib/libta_libc_csr.a +# Generated by tmake; +# Project: ta_libc/ta_libc +# Template: lib +############################################################################# + +####### Compiler, tools and options + +CC = gcc +CXX = g++ +CFLAGS = -pipe -fPIC -Wall -W -O2 -fno-strict-aliasing -DTA_SINGLE_THREAD -DNO_DEBUG +CXXFLAGS= -pipe -fPIC -Wall -W -O2 -fno-strict-aliasing -DTA_SINGLE_THREAD -DNO_DEBUG +INCPATH = -I../../../../../src/ta_common -I../../../../../include -I../../../../../src/ta_abstract -I../../../../../src/ta_abstract/tables -I../../../../../src/ta_abstract/frames -I$(QTDIR)/include +AR = ar cqs +RANLIB = +MOC = $(QTDIR)/bin/moc +UIC = $(QTDIR)/bin/uic + +TAR = tar -cf +GZIP = gzip -9f + +####### Support for 64-bit systems +ifeq ($(shell uname -m), x86_64) + CFLAGS += -march=x86-64 -m64 -D__64BIT__ + CXXFLAGS += -march=x86-64 -m64 -D__64BIT__ +endif + +####### Apply additional overruling user flags, if any +CFLAGS += $(CUSERFLAGS) +CXXFLAGS += $(CUSERFLAGS) + +####### Files + +HEADERS = +SOURCES = ../../../../../src/ta_common/ta_global.c \ + ../../../../../src/ta_common/ta_retcode.c \ + ../../../../../src/ta_common/ta_version.c \ + ../../../../../src/ta_abstract/ta_abstract.c \ + ../../../../../src/ta_abstract/ta_def_ui.c \ + ../../../../../src/ta_abstract/ta_func_api.c \ + ../../../../../src/ta_abstract/ta_group_idx.c \ + ../../../../../src/ta_abstract/frames/ta_frame.c \ + ../../../../../src/ta_abstract/tables/table_a.c \ + ../../../../../src/ta_abstract/tables/table_b.c \ + ../../../../../src/ta_abstract/tables/table_c.c \ + ../../../../../src/ta_abstract/tables/table_d.c \ + ../../../../../src/ta_abstract/tables/table_e.c \ + ../../../../../src/ta_abstract/tables/table_f.c \ + ../../../../../src/ta_abstract/tables/table_g.c \ + ../../../../../src/ta_abstract/tables/table_h.c \ + ../../../../../src/ta_abstract/tables/table_i.c \ + ../../../../../src/ta_abstract/tables/table_j.c \ + ../../../../../src/ta_abstract/tables/table_k.c \ + ../../../../../src/ta_abstract/tables/table_l.c \ + ../../../../../src/ta_abstract/tables/table_m.c \ + ../../../../../src/ta_abstract/tables/table_n.c \ + ../../../../../src/ta_abstract/tables/table_o.c \ + ../../../../../src/ta_abstract/tables/table_p.c \ + ../../../../../src/ta_abstract/tables/table_q.c \ + ../../../../../src/ta_abstract/tables/table_r.c \ + ../../../../../src/ta_abstract/tables/table_s.c \ + ../../../../../src/ta_abstract/tables/table_t.c \ + ../../../../../src/ta_abstract/tables/table_u.c \ + ../../../../../src/ta_abstract/tables/table_v.c \ + ../../../../../src/ta_abstract/tables/table_w.c \ + ../../../../../src/ta_abstract/tables/table_x.c \ + ../../../../../src/ta_abstract/tables/table_y.c \ + ../../../../../src/ta_abstract/tables/table_z.c \ + ../../../../../src/ta_func/ta_utility.c \ + ../../../../../src/ta_func/ta_ACOS.c \ + ../../../../../src/ta_func/ta_AD.c \ + ../../../../../src/ta_func/ta_ADD.c \ + ../../../../../src/ta_func/ta_ADOSC.c \ + ../../../../../src/ta_func/ta_ADX.c \ + ../../../../../src/ta_func/ta_ADXR.c \ + ../../../../../src/ta_func/ta_APO.c \ + ../../../../../src/ta_func/ta_AROON.c \ + ../../../../../src/ta_func/ta_AROONOSC.c \ + ../../../../../src/ta_func/ta_ASIN.c \ + ../../../../../src/ta_func/ta_ATAN.c \ + ../../../../../src/ta_func/ta_ATR.c \ + ../../../../../src/ta_func/ta_AVGPRICE.c \ + ../../../../../src/ta_func/ta_BBANDS.c \ + ../../../../../src/ta_func/ta_BETA.c \ + ../../../../../src/ta_func/ta_BOP.c \ + ../../../../../src/ta_func/ta_CCI.c \ + ../../../../../src/ta_func/ta_CDL2CROWS.c \ + ../../../../../src/ta_func/ta_CDL3BLACKCROWS.c \ + ../../../../../src/ta_func/ta_CDL3INSIDE.c \ + ../../../../../src/ta_func/ta_CDL3LINESTRIKE.c \ + ../../../../../src/ta_func/ta_CDL3OUTSIDE.c \ + ../../../../../src/ta_func/ta_CDL3STARSINSOUTH.c \ + ../../../../../src/ta_func/ta_CDL3WHITESOLDIERS.c \ + ../../../../../src/ta_func/ta_CDLABANDONEDBABY.c \ + ../../../../../src/ta_func/ta_CDLADVANCEBLOCK.c \ + ../../../../../src/ta_func/ta_CDLBELTHOLD.c \ + ../../../../../src/ta_func/ta_CDLBREAKAWAY.c \ + ../../../../../src/ta_func/ta_CDLCLOSINGMARUBOZU.c \ + ../../../../../src/ta_func/ta_CDLCONCEALBABYSWALL.c \ + ../../../../../src/ta_func/ta_CDLCOUNTERATTACK.c \ + ../../../../../src/ta_func/ta_CDLDARKCLOUDCOVER.c \ + ../../../../../src/ta_func/ta_CDLDOJI.c \ + ../../../../../src/ta_func/ta_CDLDOJISTAR.c \ + ../../../../../src/ta_func/ta_CDLDRAGONFLYDOJI.c \ + ../../../../../src/ta_func/ta_CDLENGULFING.c \ + ../../../../../src/ta_func/ta_CDLEVENINGDOJISTAR.c \ + ../../../../../src/ta_func/ta_CDLEVENINGSTAR.c \ + ../../../../../src/ta_func/ta_CDLGAPSIDESIDEWHITE.c \ + ../../../../../src/ta_func/ta_CDLGRAVESTONEDOJI.c \ + ../../../../../src/ta_func/ta_CDLHAMMER.c \ + ../../../../../src/ta_func/ta_CDLHANGINGMAN.c \ + ../../../../../src/ta_func/ta_CDLHARAMI.c \ + ../../../../../src/ta_func/ta_CDLHARAMICROSS.c \ + ../../../../../src/ta_func/ta_CDLHIGHWAVE.c \ + ../../../../../src/ta_func/ta_CDLHIKKAKE.c \ + ../../../../../src/ta_func/ta_CDLHIKKAKEMOD.c \ + ../../../../../src/ta_func/ta_CDLHOMINGPIGEON.c \ + ../../../../../src/ta_func/ta_CDLIDENTICAL3CROWS.c \ + ../../../../../src/ta_func/ta_CDLINNECK.c \ + ../../../../../src/ta_func/ta_CDLINVERTEDHAMMER.c \ + ../../../../../src/ta_func/ta_CDLKICKING.c \ + ../../../../../src/ta_func/ta_CDLKICKINGBYLENGTH.c \ + ../../../../../src/ta_func/ta_CDLLADDERBOTTOM.c \ + ../../../../../src/ta_func/ta_CDLLONGLEGGEDDOJI.c \ + ../../../../../src/ta_func/ta_CDLLONGLINE.c \ + ../../../../../src/ta_func/ta_CDLMARUBOZU.c \ + ../../../../../src/ta_func/ta_CDLMATCHINGLOW.c \ + ../../../../../src/ta_func/ta_CDLMATHOLD.c \ + ../../../../../src/ta_func/ta_CDLMORNINGDOJISTAR.c \ + ../../../../../src/ta_func/ta_CDLMORNINGSTAR.c \ + ../../../../../src/ta_func/ta_CDLONNECK.c \ + ../../../../../src/ta_func/ta_CDLPIERCING.c \ + ../../../../../src/ta_func/ta_CDLRICKSHAWMAN.c \ + ../../../../../src/ta_func/ta_CDLRISEFALL3METHODS.c \ + ../../../../../src/ta_func/ta_CDLSEPARATINGLINES.c \ + ../../../../../src/ta_func/ta_CDLSHOOTINGSTAR.c \ + ../../../../../src/ta_func/ta_CDLSHORTLINE.c \ + ../../../../../src/ta_func/ta_CDLSPINNINGTOP.c \ + ../../../../../src/ta_func/ta_CDLSTALLEDPATTERN.c \ + ../../../../../src/ta_func/ta_CDLSTICKSANDWICH.c \ + ../../../../../src/ta_func/ta_CDLTAKURI.c \ + ../../../../../src/ta_func/ta_CDLTASUKIGAP.c \ + ../../../../../src/ta_func/ta_CDLTHRUSTING.c \ + ../../../../../src/ta_func/ta_CDLTRISTAR.c \ + ../../../../../src/ta_func/ta_CDLUNIQUE3RIVER.c \ + ../../../../../src/ta_func/ta_CDLUPSIDEGAP2CROWS.c \ + ../../../../../src/ta_func/ta_CDLXSIDEGAP3METHODS.c \ + ../../../../../src/ta_func/ta_CEIL.c \ + ../../../../../src/ta_func/ta_CMO.c \ + ../../../../../src/ta_func/ta_CORREL.c \ + ../../../../../src/ta_func/ta_COS.c \ + ../../../../../src/ta_func/ta_COSH.c \ + ../../../../../src/ta_func/ta_DEMA.c \ + ../../../../../src/ta_func/ta_DIV.c \ + ../../../../../src/ta_func/ta_DX.c \ + ../../../../../src/ta_func/ta_EMA.c \ + ../../../../../src/ta_func/ta_EXP.c \ + ../../../../../src/ta_func/ta_FLOOR.c \ + ../../../../../src/ta_func/ta_HT_DCPERIOD.c \ + ../../../../../src/ta_func/ta_HT_DCPHASE.c \ + ../../../../../src/ta_func/ta_HT_PHASOR.c \ + ../../../../../src/ta_func/ta_HT_SINE.c \ + ../../../../../src/ta_func/ta_HT_TRENDLINE.c \ + ../../../../../src/ta_func/ta_HT_TRENDMODE.c \ + ../../../../../src/ta_func/ta_KAMA.c \ + ../../../../../src/ta_func/ta_LINEARREG.c \ + ../../../../../src/ta_func/ta_LINEARREG_ANGLE.c \ + ../../../../../src/ta_func/ta_LINEARREG_INTERCEPT.c \ + ../../../../../src/ta_func/ta_LINEARREG_SLOPE.c \ + ../../../../../src/ta_func/ta_LN.c \ + ../../../../../src/ta_func/ta_LOG10.c \ + ../../../../../src/ta_func/ta_MA.c \ + ../../../../../src/ta_func/ta_MACD.c \ + ../../../../../src/ta_func/ta_MACDEXT.c \ + ../../../../../src/ta_func/ta_MACDFIX.c \ + ../../../../../src/ta_func/ta_MAMA.c \ + ../../../../../src/ta_func/ta_MAVP.c \ + ../../../../../src/ta_func/ta_MAX.c \ + ../../../../../src/ta_func/ta_MAXINDEX.c \ + ../../../../../src/ta_func/ta_MEDPRICE.c \ + ../../../../../src/ta_func/ta_MFI.c \ + ../../../../../src/ta_func/ta_MIDPOINT.c \ + ../../../../../src/ta_func/ta_MIDPRICE.c \ + ../../../../../src/ta_func/ta_MIN.c \ + ../../../../../src/ta_func/ta_MININDEX.c \ + ../../../../../src/ta_func/ta_MINMAX.c \ + ../../../../../src/ta_func/ta_MINMAXINDEX.c \ + ../../../../../src/ta_func/ta_MINUS_DI.c \ + ../../../../../src/ta_func/ta_MINUS_DM.c \ + ../../../../../src/ta_func/ta_MOM.c \ + ../../../../../src/ta_func/ta_MULT.c \ + ../../../../../src/ta_func/ta_NATR.c \ + ../../../../../src/ta_func/ta_OBV.c \ + ../../../../../src/ta_func/ta_PLUS_DI.c \ + ../../../../../src/ta_func/ta_PLUS_DM.c \ + ../../../../../src/ta_func/ta_PPO.c \ + ../../../../../src/ta_func/ta_ROC.c \ + ../../../../../src/ta_func/ta_ROCP.c \ + ../../../../../src/ta_func/ta_ROCR.c \ + ../../../../../src/ta_func/ta_ROCR100.c \ + ../../../../../src/ta_func/ta_RSI.c \ + ../../../../../src/ta_func/ta_SAR.c \ + ../../../../../src/ta_func/ta_SAREXT.c \ + ../../../../../src/ta_func/ta_SIN.c \ + ../../../../../src/ta_func/ta_SINH.c \ + ../../../../../src/ta_func/ta_SMA.c \ + ../../../../../src/ta_func/ta_SQRT.c \ + ../../../../../src/ta_func/ta_STDDEV.c \ + ../../../../../src/ta_func/ta_STOCH.c \ + ../../../../../src/ta_func/ta_STOCHF.c \ + ../../../../../src/ta_func/ta_STOCHRSI.c \ + ../../../../../src/ta_func/ta_SUB.c \ + ../../../../../src/ta_func/ta_SUM.c \ + ../../../../../src/ta_func/ta_T3.c \ + ../../../../../src/ta_func/ta_TAN.c \ + ../../../../../src/ta_func/ta_TANH.c \ + ../../../../../src/ta_func/ta_TEMA.c \ + ../../../../../src/ta_func/ta_TRANGE.c \ + ../../../../../src/ta_func/ta_TRIMA.c \ + ../../../../../src/ta_func/ta_TRIX.c \ + ../../../../../src/ta_func/ta_TSF.c \ + ../../../../../src/ta_func/ta_TYPPRICE.c \ + ../../../../../src/ta_func/ta_ULTOSC.c \ + ../../../../../src/ta_func/ta_VAR.c \ + ../../../../../src/ta_func/ta_WCLPRICE.c \ + ../../../../../src/ta_func/ta_WILLR.c \ + ../../../../../src/ta_func/ta_WMA.c +OBJECTS = ../../../../../temp/csr/ta_global.o \ + ../../../../../temp/csr/ta_retcode.o \ + ../../../../../temp/csr/ta_version.o \ + ../../../../../temp/csr/ta_abstract.o \ + ../../../../../temp/csr/ta_def_ui.o \ + ../../../../../temp/csr/ta_func_api.o \ + ../../../../../temp/csr/ta_group_idx.o \ + ../../../../../temp/csr/ta_frame.o \ + ../../../../../temp/csr/table_a.o \ + ../../../../../temp/csr/table_b.o \ + ../../../../../temp/csr/table_c.o \ + ../../../../../temp/csr/table_d.o \ + ../../../../../temp/csr/table_e.o \ + ../../../../../temp/csr/table_f.o \ + ../../../../../temp/csr/table_g.o \ + ../../../../../temp/csr/table_h.o \ + ../../../../../temp/csr/table_i.o \ + ../../../../../temp/csr/table_j.o \ + ../../../../../temp/csr/table_k.o \ + ../../../../../temp/csr/table_l.o \ + ../../../../../temp/csr/table_m.o \ + ../../../../../temp/csr/table_n.o \ + ../../../../../temp/csr/table_o.o \ + ../../../../../temp/csr/table_p.o \ + ../../../../../temp/csr/table_q.o \ + ../../../../../temp/csr/table_r.o \ + ../../../../../temp/csr/table_s.o \ + ../../../../../temp/csr/table_t.o \ + ../../../../../temp/csr/table_u.o \ + ../../../../../temp/csr/table_v.o \ + ../../../../../temp/csr/table_w.o \ + ../../../../../temp/csr/table_x.o \ + ../../../../../temp/csr/table_y.o \ + ../../../../../temp/csr/table_z.o \ + ../../../../../temp/csr/ta_utility.o \ + ../../../../../temp/csr/ta_ACOS.o \ + ../../../../../temp/csr/ta_AD.o \ + ../../../../../temp/csr/ta_ADD.o \ + ../../../../../temp/csr/ta_ADOSC.o \ + ../../../../../temp/csr/ta_ADX.o \ + ../../../../../temp/csr/ta_ADXR.o \ + ../../../../../temp/csr/ta_APO.o \ + ../../../../../temp/csr/ta_AROON.o \ + ../../../../../temp/csr/ta_AROONOSC.o \ + ../../../../../temp/csr/ta_ASIN.o \ + ../../../../../temp/csr/ta_ATAN.o \ + ../../../../../temp/csr/ta_ATR.o \ + ../../../../../temp/csr/ta_AVGPRICE.o \ + ../../../../../temp/csr/ta_BBANDS.o \ + ../../../../../temp/csr/ta_BETA.o \ + ../../../../../temp/csr/ta_BOP.o \ + ../../../../../temp/csr/ta_CCI.o \ + ../../../../../temp/csr/ta_CDL2CROWS.o \ + ../../../../../temp/csr/ta_CDL3BLACKCROWS.o \ + ../../../../../temp/csr/ta_CDL3INSIDE.o \ + ../../../../../temp/csr/ta_CDL3LINESTRIKE.o \ + ../../../../../temp/csr/ta_CDL3OUTSIDE.o \ + ../../../../../temp/csr/ta_CDL3STARSINSOUTH.o \ + ../../../../../temp/csr/ta_CDL3WHITESOLDIERS.o \ + ../../../../../temp/csr/ta_CDLABANDONEDBABY.o \ + ../../../../../temp/csr/ta_CDLADVANCEBLOCK.o \ + ../../../../../temp/csr/ta_CDLBELTHOLD.o \ + ../../../../../temp/csr/ta_CDLBREAKAWAY.o \ + ../../../../../temp/csr/ta_CDLCLOSINGMARUBOZU.o \ + ../../../../../temp/csr/ta_CDLCONCEALBABYSWALL.o \ + ../../../../../temp/csr/ta_CDLCOUNTERATTACK.o \ + ../../../../../temp/csr/ta_CDLDARKCLOUDCOVER.o \ + ../../../../../temp/csr/ta_CDLDOJI.o \ + ../../../../../temp/csr/ta_CDLDOJISTAR.o \ + ../../../../../temp/csr/ta_CDLDRAGONFLYDOJI.o \ + ../../../../../temp/csr/ta_CDLENGULFING.o \ + ../../../../../temp/csr/ta_CDLEVENINGDOJISTAR.o \ + ../../../../../temp/csr/ta_CDLEVENINGSTAR.o \ + ../../../../../temp/csr/ta_CDLGAPSIDESIDEWHITE.o \ + ../../../../../temp/csr/ta_CDLGRAVESTONEDOJI.o \ + ../../../../../temp/csr/ta_CDLHAMMER.o \ + ../../../../../temp/csr/ta_CDLHANGINGMAN.o \ + ../../../../../temp/csr/ta_CDLHARAMI.o \ + ../../../../../temp/csr/ta_CDLHARAMICROSS.o \ + ../../../../../temp/csr/ta_CDLHIGHWAVE.o \ + ../../../../../temp/csr/ta_CDLHIKKAKE.o \ + ../../../../../temp/csr/ta_CDLHIKKAKEMOD.o \ + ../../../../../temp/csr/ta_CDLHOMINGPIGEON.o \ + ../../../../../temp/csr/ta_CDLIDENTICAL3CROWS.o \ + ../../../../../temp/csr/ta_CDLINNECK.o \ + ../../../../../temp/csr/ta_CDLINVERTEDHAMMER.o \ + ../../../../../temp/csr/ta_CDLKICKING.o \ + ../../../../../temp/csr/ta_CDLKICKINGBYLENGTH.o \ + ../../../../../temp/csr/ta_CDLLADDERBOTTOM.o \ + ../../../../../temp/csr/ta_CDLLONGLEGGEDDOJI.o \ + ../../../../../temp/csr/ta_CDLLONGLINE.o \ + ../../../../../temp/csr/ta_CDLMARUBOZU.o \ + ../../../../../temp/csr/ta_CDLMATCHINGLOW.o \ + ../../../../../temp/csr/ta_CDLMATHOLD.o \ + ../../../../../temp/csr/ta_CDLMORNINGDOJISTAR.o \ + ../../../../../temp/csr/ta_CDLMORNINGSTAR.o \ + ../../../../../temp/csr/ta_CDLONNECK.o \ + ../../../../../temp/csr/ta_CDLPIERCING.o \ + ../../../../../temp/csr/ta_CDLRICKSHAWMAN.o \ + ../../../../../temp/csr/ta_CDLRISEFALL3METHODS.o \ + ../../../../../temp/csr/ta_CDLSEPARATINGLINES.o \ + ../../../../../temp/csr/ta_CDLSHOOTINGSTAR.o \ + ../../../../../temp/csr/ta_CDLSHORTLINE.o \ + ../../../../../temp/csr/ta_CDLSPINNINGTOP.o \ + ../../../../../temp/csr/ta_CDLSTALLEDPATTERN.o \ + ../../../../../temp/csr/ta_CDLSTICKSANDWICH.o \ + ../../../../../temp/csr/ta_CDLTAKURI.o \ + ../../../../../temp/csr/ta_CDLTASUKIGAP.o \ + ../../../../../temp/csr/ta_CDLTHRUSTING.o \ + ../../../../../temp/csr/ta_CDLTRISTAR.o \ + ../../../../../temp/csr/ta_CDLUNIQUE3RIVER.o \ + ../../../../../temp/csr/ta_CDLUPSIDEGAP2CROWS.o \ + ../../../../../temp/csr/ta_CDLXSIDEGAP3METHODS.o \ + ../../../../../temp/csr/ta_CEIL.o \ + ../../../../../temp/csr/ta_CMO.o \ + ../../../../../temp/csr/ta_CORREL.o \ + ../../../../../temp/csr/ta_COS.o \ + ../../../../../temp/csr/ta_COSH.o \ + ../../../../../temp/csr/ta_DEMA.o \ + ../../../../../temp/csr/ta_DIV.o \ + ../../../../../temp/csr/ta_DX.o \ + ../../../../../temp/csr/ta_EMA.o \ + ../../../../../temp/csr/ta_EXP.o \ + ../../../../../temp/csr/ta_FLOOR.o \ + ../../../../../temp/csr/ta_HT_DCPERIOD.o \ + ../../../../../temp/csr/ta_HT_DCPHASE.o \ + ../../../../../temp/csr/ta_HT_PHASOR.o \ + ../../../../../temp/csr/ta_HT_SINE.o \ + ../../../../../temp/csr/ta_HT_TRENDLINE.o \ + ../../../../../temp/csr/ta_HT_TRENDMODE.o \ + ../../../../../temp/csr/ta_KAMA.o \ + ../../../../../temp/csr/ta_LINEARREG.o \ + ../../../../../temp/csr/ta_LINEARREG_ANGLE.o \ + ../../../../../temp/csr/ta_LINEARREG_INTERCEPT.o \ + ../../../../../temp/csr/ta_LINEARREG_SLOPE.o \ + ../../../../../temp/csr/ta_LN.o \ + ../../../../../temp/csr/ta_LOG10.o \ + ../../../../../temp/csr/ta_MA.o \ + ../../../../../temp/csr/ta_MACD.o \ + ../../../../../temp/csr/ta_MACDEXT.o \ + ../../../../../temp/csr/ta_MACDFIX.o \ + ../../../../../temp/csr/ta_MAMA.o \ + ../../../../../temp/csr/ta_MAVP.o \ + ../../../../../temp/csr/ta_MAX.o \ + ../../../../../temp/csr/ta_MAXINDEX.o \ + ../../../../../temp/csr/ta_MEDPRICE.o \ + ../../../../../temp/csr/ta_MFI.o \ + ../../../../../temp/csr/ta_MIDPOINT.o \ + ../../../../../temp/csr/ta_MIDPRICE.o \ + ../../../../../temp/csr/ta_MIN.o \ + ../../../../../temp/csr/ta_MININDEX.o \ + ../../../../../temp/csr/ta_MINMAX.o \ + ../../../../../temp/csr/ta_MINMAXINDEX.o \ + ../../../../../temp/csr/ta_MINUS_DI.o \ + ../../../../../temp/csr/ta_MINUS_DM.o \ + ../../../../../temp/csr/ta_MOM.o \ + ../../../../../temp/csr/ta_MULT.o \ + ../../../../../temp/csr/ta_NATR.o \ + ../../../../../temp/csr/ta_OBV.o \ + ../../../../../temp/csr/ta_PLUS_DI.o \ + ../../../../../temp/csr/ta_PLUS_DM.o \ + ../../../../../temp/csr/ta_PPO.o \ + ../../../../../temp/csr/ta_ROC.o \ + ../../../../../temp/csr/ta_ROCP.o \ + ../../../../../temp/csr/ta_ROCR.o \ + ../../../../../temp/csr/ta_ROCR100.o \ + ../../../../../temp/csr/ta_RSI.o \ + ../../../../../temp/csr/ta_SAR.o \ + ../../../../../temp/csr/ta_SAREXT.o \ + ../../../../../temp/csr/ta_SIN.o \ + ../../../../../temp/csr/ta_SINH.o \ + ../../../../../temp/csr/ta_SMA.o \ + ../../../../../temp/csr/ta_SQRT.o \ + ../../../../../temp/csr/ta_STDDEV.o \ + ../../../../../temp/csr/ta_STOCH.o \ + ../../../../../temp/csr/ta_STOCHF.o \ + ../../../../../temp/csr/ta_STOCHRSI.o \ + ../../../../../temp/csr/ta_SUB.o \ + ../../../../../temp/csr/ta_SUM.o \ + ../../../../../temp/csr/ta_T3.o \ + ../../../../../temp/csr/ta_TAN.o \ + ../../../../../temp/csr/ta_TANH.o \ + ../../../../../temp/csr/ta_TEMA.o \ + ../../../../../temp/csr/ta_TRANGE.o \ + ../../../../../temp/csr/ta_TRIMA.o \ + ../../../../../temp/csr/ta_TRIX.o \ + ../../../../../temp/csr/ta_TSF.o \ + ../../../../../temp/csr/ta_TYPPRICE.o \ + ../../../../../temp/csr/ta_ULTOSC.o \ + ../../../../../temp/csr/ta_VAR.o \ + ../../../../../temp/csr/ta_WCLPRICE.o \ + ../../../../../temp/csr/ta_WILLR.o \ + ../../../../../temp/csr/ta_WMA.o +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ../../../../../lib/libta_libc_csr.a +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .C .c + +.cpp.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cxx.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cc.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.C.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.c.o: + $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $< + +####### Build rules + + +all: $(TARGET) + +staticlib: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + -rm -f $(TARGET) + $(AR) $(TARGET) $(OBJECTS) $(OBJMOC) + +moc: $(SRCMOC) + +clean: + -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) + -rm -f *~ core + +####### Sub-libraries + + +###### Combined headers + + +####### Compile + +../../../../../temp/csr/ta_global.o: ../../../../../src/ta_common/ta_global.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_global.o ../../../../../src/ta_common/ta_global.c + +../../../../../temp/csr/ta_retcode.o: ../../../../../src/ta_common/ta_retcode.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_retcode.o ../../../../../src/ta_common/ta_retcode.c + +../../../../../temp/csr/ta_version.o: ../../../../../src/ta_common/ta_version.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_version.o ../../../../../src/ta_common/ta_version.c + +../../../../../temp/csr/ta_abstract.o: ../../../../../src/ta_abstract/ta_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_abstract.o ../../../../../src/ta_abstract/ta_abstract.c + +../../../../../temp/csr/ta_def_ui.o: ../../../../../src/ta_abstract/ta_def_ui.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_def_ui.o ../../../../../src/ta_abstract/ta_def_ui.c + +../../../../../temp/csr/ta_func_api.o: ../../../../../src/ta_abstract/ta_func_api.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_func_api.o ../../../../../src/ta_abstract/ta_func_api.c + +../../../../../temp/csr/ta_group_idx.o: ../../../../../src/ta_abstract/ta_group_idx.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_group_idx.o ../../../../../src/ta_abstract/ta_group_idx.c + +../../../../../temp/csr/ta_frame.o: ../../../../../src/ta_abstract/frames/ta_frame.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_frame.o ../../../../../src/ta_abstract/frames/ta_frame.c + +../../../../../temp/csr/table_a.o: ../../../../../src/ta_abstract/tables/table_a.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_a.o ../../../../../src/ta_abstract/tables/table_a.c + +../../../../../temp/csr/table_b.o: ../../../../../src/ta_abstract/tables/table_b.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_b.o ../../../../../src/ta_abstract/tables/table_b.c + +../../../../../temp/csr/table_c.o: ../../../../../src/ta_abstract/tables/table_c.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_c.o ../../../../../src/ta_abstract/tables/table_c.c + +../../../../../temp/csr/table_d.o: ../../../../../src/ta_abstract/tables/table_d.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_d.o ../../../../../src/ta_abstract/tables/table_d.c + +../../../../../temp/csr/table_e.o: ../../../../../src/ta_abstract/tables/table_e.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_e.o ../../../../../src/ta_abstract/tables/table_e.c + +../../../../../temp/csr/table_f.o: ../../../../../src/ta_abstract/tables/table_f.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_f.o ../../../../../src/ta_abstract/tables/table_f.c + +../../../../../temp/csr/table_g.o: ../../../../../src/ta_abstract/tables/table_g.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_g.o ../../../../../src/ta_abstract/tables/table_g.c + +../../../../../temp/csr/table_h.o: ../../../../../src/ta_abstract/tables/table_h.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_h.o ../../../../../src/ta_abstract/tables/table_h.c + +../../../../../temp/csr/table_i.o: ../../../../../src/ta_abstract/tables/table_i.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_i.o ../../../../../src/ta_abstract/tables/table_i.c + +../../../../../temp/csr/table_j.o: ../../../../../src/ta_abstract/tables/table_j.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_j.o ../../../../../src/ta_abstract/tables/table_j.c + +../../../../../temp/csr/table_k.o: ../../../../../src/ta_abstract/tables/table_k.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_k.o ../../../../../src/ta_abstract/tables/table_k.c + +../../../../../temp/csr/table_l.o: ../../../../../src/ta_abstract/tables/table_l.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_l.o ../../../../../src/ta_abstract/tables/table_l.c + +../../../../../temp/csr/table_m.o: ../../../../../src/ta_abstract/tables/table_m.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_m.o ../../../../../src/ta_abstract/tables/table_m.c + +../../../../../temp/csr/table_n.o: ../../../../../src/ta_abstract/tables/table_n.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_n.o ../../../../../src/ta_abstract/tables/table_n.c + +../../../../../temp/csr/table_o.o: ../../../../../src/ta_abstract/tables/table_o.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_o.o ../../../../../src/ta_abstract/tables/table_o.c + +../../../../../temp/csr/table_p.o: ../../../../../src/ta_abstract/tables/table_p.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_p.o ../../../../../src/ta_abstract/tables/table_p.c + +../../../../../temp/csr/table_q.o: ../../../../../src/ta_abstract/tables/table_q.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_q.o ../../../../../src/ta_abstract/tables/table_q.c + +../../../../../temp/csr/table_r.o: ../../../../../src/ta_abstract/tables/table_r.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_r.o ../../../../../src/ta_abstract/tables/table_r.c + +../../../../../temp/csr/table_s.o: ../../../../../src/ta_abstract/tables/table_s.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_s.o ../../../../../src/ta_abstract/tables/table_s.c + +../../../../../temp/csr/table_t.o: ../../../../../src/ta_abstract/tables/table_t.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_t.o ../../../../../src/ta_abstract/tables/table_t.c + +../../../../../temp/csr/table_u.o: ../../../../../src/ta_abstract/tables/table_u.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_u.o ../../../../../src/ta_abstract/tables/table_u.c + +../../../../../temp/csr/table_v.o: ../../../../../src/ta_abstract/tables/table_v.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_v.o ../../../../../src/ta_abstract/tables/table_v.c + +../../../../../temp/csr/table_w.o: ../../../../../src/ta_abstract/tables/table_w.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_w.o ../../../../../src/ta_abstract/tables/table_w.c + +../../../../../temp/csr/table_x.o: ../../../../../src/ta_abstract/tables/table_x.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_x.o ../../../../../src/ta_abstract/tables/table_x.c + +../../../../../temp/csr/table_y.o: ../../../../../src/ta_abstract/tables/table_y.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_y.o ../../../../../src/ta_abstract/tables/table_y.c + +../../../../../temp/csr/table_z.o: ../../../../../src/ta_abstract/tables/table_z.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/table_z.o ../../../../../src/ta_abstract/tables/table_z.c + +../../../../../temp/csr/ta_utility.o: ../../../../../src/ta_func/ta_utility.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_utility.o ../../../../../src/ta_func/ta_utility.c + +../../../../../temp/csr/ta_ACOS.o: ../../../../../src/ta_func/ta_ACOS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_ACOS.o ../../../../../src/ta_func/ta_ACOS.c + +../../../../../temp/csr/ta_AD.o: ../../../../../src/ta_func/ta_AD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_AD.o ../../../../../src/ta_func/ta_AD.c + +../../../../../temp/csr/ta_ADD.o: ../../../../../src/ta_func/ta_ADD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_ADD.o ../../../../../src/ta_func/ta_ADD.c + +../../../../../temp/csr/ta_ADOSC.o: ../../../../../src/ta_func/ta_ADOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_ADOSC.o ../../../../../src/ta_func/ta_ADOSC.c + +../../../../../temp/csr/ta_ADX.o: ../../../../../src/ta_func/ta_ADX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_ADX.o ../../../../../src/ta_func/ta_ADX.c + +../../../../../temp/csr/ta_ADXR.o: ../../../../../src/ta_func/ta_ADXR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_ADXR.o ../../../../../src/ta_func/ta_ADXR.c + +../../../../../temp/csr/ta_APO.o: ../../../../../src/ta_func/ta_APO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_APO.o ../../../../../src/ta_func/ta_APO.c + +../../../../../temp/csr/ta_AROON.o: ../../../../../src/ta_func/ta_AROON.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_AROON.o ../../../../../src/ta_func/ta_AROON.c + +../../../../../temp/csr/ta_AROONOSC.o: ../../../../../src/ta_func/ta_AROONOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_AROONOSC.o ../../../../../src/ta_func/ta_AROONOSC.c + +../../../../../temp/csr/ta_ASIN.o: ../../../../../src/ta_func/ta_ASIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_ASIN.o ../../../../../src/ta_func/ta_ASIN.c + +../../../../../temp/csr/ta_ATAN.o: ../../../../../src/ta_func/ta_ATAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_ATAN.o ../../../../../src/ta_func/ta_ATAN.c + +../../../../../temp/csr/ta_ATR.o: ../../../../../src/ta_func/ta_ATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_ATR.o ../../../../../src/ta_func/ta_ATR.c + +../../../../../temp/csr/ta_AVGPRICE.o: ../../../../../src/ta_func/ta_AVGPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_AVGPRICE.o ../../../../../src/ta_func/ta_AVGPRICE.c + +../../../../../temp/csr/ta_BBANDS.o: ../../../../../src/ta_func/ta_BBANDS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_BBANDS.o ../../../../../src/ta_func/ta_BBANDS.c + +../../../../../temp/csr/ta_BETA.o: ../../../../../src/ta_func/ta_BETA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_BETA.o ../../../../../src/ta_func/ta_BETA.c + +../../../../../temp/csr/ta_BOP.o: ../../../../../src/ta_func/ta_BOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_BOP.o ../../../../../src/ta_func/ta_BOP.c + +../../../../../temp/csr/ta_CCI.o: ../../../../../src/ta_func/ta_CCI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CCI.o ../../../../../src/ta_func/ta_CCI.c + +../../../../../temp/csr/ta_CDL2CROWS.o: ../../../../../src/ta_func/ta_CDL2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDL2CROWS.o ../../../../../src/ta_func/ta_CDL2CROWS.c + +../../../../../temp/csr/ta_CDL3BLACKCROWS.o: ../../../../../src/ta_func/ta_CDL3BLACKCROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDL3BLACKCROWS.o ../../../../../src/ta_func/ta_CDL3BLACKCROWS.c + +../../../../../temp/csr/ta_CDL3INSIDE.o: ../../../../../src/ta_func/ta_CDL3INSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDL3INSIDE.o ../../../../../src/ta_func/ta_CDL3INSIDE.c + +../../../../../temp/csr/ta_CDL3LINESTRIKE.o: ../../../../../src/ta_func/ta_CDL3LINESTRIKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDL3LINESTRIKE.o ../../../../../src/ta_func/ta_CDL3LINESTRIKE.c + +../../../../../temp/csr/ta_CDL3OUTSIDE.o: ../../../../../src/ta_func/ta_CDL3OUTSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDL3OUTSIDE.o ../../../../../src/ta_func/ta_CDL3OUTSIDE.c + +../../../../../temp/csr/ta_CDL3STARSINSOUTH.o: ../../../../../src/ta_func/ta_CDL3STARSINSOUTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDL3STARSINSOUTH.o ../../../../../src/ta_func/ta_CDL3STARSINSOUTH.c + +../../../../../temp/csr/ta_CDL3WHITESOLDIERS.o: ../../../../../src/ta_func/ta_CDL3WHITESOLDIERS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDL3WHITESOLDIERS.o ../../../../../src/ta_func/ta_CDL3WHITESOLDIERS.c + +../../../../../temp/csr/ta_CDLABANDONEDBABY.o: ../../../../../src/ta_func/ta_CDLABANDONEDBABY.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLABANDONEDBABY.o ../../../../../src/ta_func/ta_CDLABANDONEDBABY.c + +../../../../../temp/csr/ta_CDLADVANCEBLOCK.o: ../../../../../src/ta_func/ta_CDLADVANCEBLOCK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLADVANCEBLOCK.o ../../../../../src/ta_func/ta_CDLADVANCEBLOCK.c + +../../../../../temp/csr/ta_CDLBELTHOLD.o: ../../../../../src/ta_func/ta_CDLBELTHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLBELTHOLD.o ../../../../../src/ta_func/ta_CDLBELTHOLD.c + +../../../../../temp/csr/ta_CDLBREAKAWAY.o: ../../../../../src/ta_func/ta_CDLBREAKAWAY.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLBREAKAWAY.o ../../../../../src/ta_func/ta_CDLBREAKAWAY.c + +../../../../../temp/csr/ta_CDLCLOSINGMARUBOZU.o: ../../../../../src/ta_func/ta_CDLCLOSINGMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLCLOSINGMARUBOZU.o ../../../../../src/ta_func/ta_CDLCLOSINGMARUBOZU.c + +../../../../../temp/csr/ta_CDLCONCEALBABYSWALL.o: ../../../../../src/ta_func/ta_CDLCONCEALBABYSWALL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLCONCEALBABYSWALL.o ../../../../../src/ta_func/ta_CDLCONCEALBABYSWALL.c + +../../../../../temp/csr/ta_CDLCOUNTERATTACK.o: ../../../../../src/ta_func/ta_CDLCOUNTERATTACK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLCOUNTERATTACK.o ../../../../../src/ta_func/ta_CDLCOUNTERATTACK.c + +../../../../../temp/csr/ta_CDLDARKCLOUDCOVER.o: ../../../../../src/ta_func/ta_CDLDARKCLOUDCOVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLDARKCLOUDCOVER.o ../../../../../src/ta_func/ta_CDLDARKCLOUDCOVER.c + +../../../../../temp/csr/ta_CDLDOJI.o: ../../../../../src/ta_func/ta_CDLDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLDOJI.o ../../../../../src/ta_func/ta_CDLDOJI.c + +../../../../../temp/csr/ta_CDLDOJISTAR.o: ../../../../../src/ta_func/ta_CDLDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLDOJISTAR.o ../../../../../src/ta_func/ta_CDLDOJISTAR.c + +../../../../../temp/csr/ta_CDLDRAGONFLYDOJI.o: ../../../../../src/ta_func/ta_CDLDRAGONFLYDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLDRAGONFLYDOJI.o ../../../../../src/ta_func/ta_CDLDRAGONFLYDOJI.c + +../../../../../temp/csr/ta_CDLENGULFING.o: ../../../../../src/ta_func/ta_CDLENGULFING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLENGULFING.o ../../../../../src/ta_func/ta_CDLENGULFING.c + +../../../../../temp/csr/ta_CDLEVENINGDOJISTAR.o: ../../../../../src/ta_func/ta_CDLEVENINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLEVENINGDOJISTAR.o ../../../../../src/ta_func/ta_CDLEVENINGDOJISTAR.c + +../../../../../temp/csr/ta_CDLEVENINGSTAR.o: ../../../../../src/ta_func/ta_CDLEVENINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLEVENINGSTAR.o ../../../../../src/ta_func/ta_CDLEVENINGSTAR.c + +../../../../../temp/csr/ta_CDLGAPSIDESIDEWHITE.o: ../../../../../src/ta_func/ta_CDLGAPSIDESIDEWHITE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLGAPSIDESIDEWHITE.o ../../../../../src/ta_func/ta_CDLGAPSIDESIDEWHITE.c + +../../../../../temp/csr/ta_CDLGRAVESTONEDOJI.o: ../../../../../src/ta_func/ta_CDLGRAVESTONEDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLGRAVESTONEDOJI.o ../../../../../src/ta_func/ta_CDLGRAVESTONEDOJI.c + +../../../../../temp/csr/ta_CDLHAMMER.o: ../../../../../src/ta_func/ta_CDLHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLHAMMER.o ../../../../../src/ta_func/ta_CDLHAMMER.c + +../../../../../temp/csr/ta_CDLHANGINGMAN.o: ../../../../../src/ta_func/ta_CDLHANGINGMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLHANGINGMAN.o ../../../../../src/ta_func/ta_CDLHANGINGMAN.c + +../../../../../temp/csr/ta_CDLHARAMI.o: ../../../../../src/ta_func/ta_CDLHARAMI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLHARAMI.o ../../../../../src/ta_func/ta_CDLHARAMI.c + +../../../../../temp/csr/ta_CDLHARAMICROSS.o: ../../../../../src/ta_func/ta_CDLHARAMICROSS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLHARAMICROSS.o ../../../../../src/ta_func/ta_CDLHARAMICROSS.c + +../../../../../temp/csr/ta_CDLHIGHWAVE.o: ../../../../../src/ta_func/ta_CDLHIGHWAVE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLHIGHWAVE.o ../../../../../src/ta_func/ta_CDLHIGHWAVE.c + +../../../../../temp/csr/ta_CDLHIKKAKE.o: ../../../../../src/ta_func/ta_CDLHIKKAKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLHIKKAKE.o ../../../../../src/ta_func/ta_CDLHIKKAKE.c + +../../../../../temp/csr/ta_CDLHIKKAKEMOD.o: ../../../../../src/ta_func/ta_CDLHIKKAKEMOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLHIKKAKEMOD.o ../../../../../src/ta_func/ta_CDLHIKKAKEMOD.c + +../../../../../temp/csr/ta_CDLHOMINGPIGEON.o: ../../../../../src/ta_func/ta_CDLHOMINGPIGEON.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLHOMINGPIGEON.o ../../../../../src/ta_func/ta_CDLHOMINGPIGEON.c + +../../../../../temp/csr/ta_CDLIDENTICAL3CROWS.o: ../../../../../src/ta_func/ta_CDLIDENTICAL3CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLIDENTICAL3CROWS.o ../../../../../src/ta_func/ta_CDLIDENTICAL3CROWS.c + +../../../../../temp/csr/ta_CDLINNECK.o: ../../../../../src/ta_func/ta_CDLINNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLINNECK.o ../../../../../src/ta_func/ta_CDLINNECK.c + +../../../../../temp/csr/ta_CDLINVERTEDHAMMER.o: ../../../../../src/ta_func/ta_CDLINVERTEDHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLINVERTEDHAMMER.o ../../../../../src/ta_func/ta_CDLINVERTEDHAMMER.c + +../../../../../temp/csr/ta_CDLKICKING.o: ../../../../../src/ta_func/ta_CDLKICKING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLKICKING.o ../../../../../src/ta_func/ta_CDLKICKING.c + +../../../../../temp/csr/ta_CDLKICKINGBYLENGTH.o: ../../../../../src/ta_func/ta_CDLKICKINGBYLENGTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLKICKINGBYLENGTH.o ../../../../../src/ta_func/ta_CDLKICKINGBYLENGTH.c + +../../../../../temp/csr/ta_CDLLADDERBOTTOM.o: ../../../../../src/ta_func/ta_CDLLADDERBOTTOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLLADDERBOTTOM.o ../../../../../src/ta_func/ta_CDLLADDERBOTTOM.c + +../../../../../temp/csr/ta_CDLLONGLEGGEDDOJI.o: ../../../../../src/ta_func/ta_CDLLONGLEGGEDDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLLONGLEGGEDDOJI.o ../../../../../src/ta_func/ta_CDLLONGLEGGEDDOJI.c + +../../../../../temp/csr/ta_CDLLONGLINE.o: ../../../../../src/ta_func/ta_CDLLONGLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLLONGLINE.o ../../../../../src/ta_func/ta_CDLLONGLINE.c + +../../../../../temp/csr/ta_CDLMARUBOZU.o: ../../../../../src/ta_func/ta_CDLMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLMARUBOZU.o ../../../../../src/ta_func/ta_CDLMARUBOZU.c + +../../../../../temp/csr/ta_CDLMATCHINGLOW.o: ../../../../../src/ta_func/ta_CDLMATCHINGLOW.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLMATCHINGLOW.o ../../../../../src/ta_func/ta_CDLMATCHINGLOW.c + +../../../../../temp/csr/ta_CDLMATHOLD.o: ../../../../../src/ta_func/ta_CDLMATHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLMATHOLD.o ../../../../../src/ta_func/ta_CDLMATHOLD.c + +../../../../../temp/csr/ta_CDLMORNINGDOJISTAR.o: ../../../../../src/ta_func/ta_CDLMORNINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLMORNINGDOJISTAR.o ../../../../../src/ta_func/ta_CDLMORNINGDOJISTAR.c + +../../../../../temp/csr/ta_CDLMORNINGSTAR.o: ../../../../../src/ta_func/ta_CDLMORNINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLMORNINGSTAR.o ../../../../../src/ta_func/ta_CDLMORNINGSTAR.c + +../../../../../temp/csr/ta_CDLONNECK.o: ../../../../../src/ta_func/ta_CDLONNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLONNECK.o ../../../../../src/ta_func/ta_CDLONNECK.c + +../../../../../temp/csr/ta_CDLPIERCING.o: ../../../../../src/ta_func/ta_CDLPIERCING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLPIERCING.o ../../../../../src/ta_func/ta_CDLPIERCING.c + +../../../../../temp/csr/ta_CDLRICKSHAWMAN.o: ../../../../../src/ta_func/ta_CDLRICKSHAWMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLRICKSHAWMAN.o ../../../../../src/ta_func/ta_CDLRICKSHAWMAN.c + +../../../../../temp/csr/ta_CDLRISEFALL3METHODS.o: ../../../../../src/ta_func/ta_CDLRISEFALL3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLRISEFALL3METHODS.o ../../../../../src/ta_func/ta_CDLRISEFALL3METHODS.c + +../../../../../temp/csr/ta_CDLSEPARATINGLINES.o: ../../../../../src/ta_func/ta_CDLSEPARATINGLINES.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLSEPARATINGLINES.o ../../../../../src/ta_func/ta_CDLSEPARATINGLINES.c + +../../../../../temp/csr/ta_CDLSHOOTINGSTAR.o: ../../../../../src/ta_func/ta_CDLSHOOTINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLSHOOTINGSTAR.o ../../../../../src/ta_func/ta_CDLSHOOTINGSTAR.c + +../../../../../temp/csr/ta_CDLSHORTLINE.o: ../../../../../src/ta_func/ta_CDLSHORTLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLSHORTLINE.o ../../../../../src/ta_func/ta_CDLSHORTLINE.c + +../../../../../temp/csr/ta_CDLSPINNINGTOP.o: ../../../../../src/ta_func/ta_CDLSPINNINGTOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLSPINNINGTOP.o ../../../../../src/ta_func/ta_CDLSPINNINGTOP.c + +../../../../../temp/csr/ta_CDLSTALLEDPATTERN.o: ../../../../../src/ta_func/ta_CDLSTALLEDPATTERN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLSTALLEDPATTERN.o ../../../../../src/ta_func/ta_CDLSTALLEDPATTERN.c + +../../../../../temp/csr/ta_CDLSTICKSANDWICH.o: ../../../../../src/ta_func/ta_CDLSTICKSANDWICH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLSTICKSANDWICH.o ../../../../../src/ta_func/ta_CDLSTICKSANDWICH.c + +../../../../../temp/csr/ta_CDLTAKURI.o: ../../../../../src/ta_func/ta_CDLTAKURI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLTAKURI.o ../../../../../src/ta_func/ta_CDLTAKURI.c + +../../../../../temp/csr/ta_CDLTASUKIGAP.o: ../../../../../src/ta_func/ta_CDLTASUKIGAP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLTASUKIGAP.o ../../../../../src/ta_func/ta_CDLTASUKIGAP.c + +../../../../../temp/csr/ta_CDLTHRUSTING.o: ../../../../../src/ta_func/ta_CDLTHRUSTING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLTHRUSTING.o ../../../../../src/ta_func/ta_CDLTHRUSTING.c + +../../../../../temp/csr/ta_CDLTRISTAR.o: ../../../../../src/ta_func/ta_CDLTRISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLTRISTAR.o ../../../../../src/ta_func/ta_CDLTRISTAR.c + +../../../../../temp/csr/ta_CDLUNIQUE3RIVER.o: ../../../../../src/ta_func/ta_CDLUNIQUE3RIVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLUNIQUE3RIVER.o ../../../../../src/ta_func/ta_CDLUNIQUE3RIVER.c + +../../../../../temp/csr/ta_CDLUPSIDEGAP2CROWS.o: ../../../../../src/ta_func/ta_CDLUPSIDEGAP2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLUPSIDEGAP2CROWS.o ../../../../../src/ta_func/ta_CDLUPSIDEGAP2CROWS.c + +../../../../../temp/csr/ta_CDLXSIDEGAP3METHODS.o: ../../../../../src/ta_func/ta_CDLXSIDEGAP3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CDLXSIDEGAP3METHODS.o ../../../../../src/ta_func/ta_CDLXSIDEGAP3METHODS.c + +../../../../../temp/csr/ta_CEIL.o: ../../../../../src/ta_func/ta_CEIL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CEIL.o ../../../../../src/ta_func/ta_CEIL.c + +../../../../../temp/csr/ta_CMO.o: ../../../../../src/ta_func/ta_CMO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CMO.o ../../../../../src/ta_func/ta_CMO.c + +../../../../../temp/csr/ta_CORREL.o: ../../../../../src/ta_func/ta_CORREL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_CORREL.o ../../../../../src/ta_func/ta_CORREL.c + +../../../../../temp/csr/ta_COS.o: ../../../../../src/ta_func/ta_COS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_COS.o ../../../../../src/ta_func/ta_COS.c + +../../../../../temp/csr/ta_COSH.o: ../../../../../src/ta_func/ta_COSH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_COSH.o ../../../../../src/ta_func/ta_COSH.c + +../../../../../temp/csr/ta_DEMA.o: ../../../../../src/ta_func/ta_DEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_DEMA.o ../../../../../src/ta_func/ta_DEMA.c + +../../../../../temp/csr/ta_DIV.o: ../../../../../src/ta_func/ta_DIV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_DIV.o ../../../../../src/ta_func/ta_DIV.c + +../../../../../temp/csr/ta_DX.o: ../../../../../src/ta_func/ta_DX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_DX.o ../../../../../src/ta_func/ta_DX.c + +../../../../../temp/csr/ta_EMA.o: ../../../../../src/ta_func/ta_EMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_EMA.o ../../../../../src/ta_func/ta_EMA.c + +../../../../../temp/csr/ta_EXP.o: ../../../../../src/ta_func/ta_EXP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_EXP.o ../../../../../src/ta_func/ta_EXP.c + +../../../../../temp/csr/ta_FLOOR.o: ../../../../../src/ta_func/ta_FLOOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_FLOOR.o ../../../../../src/ta_func/ta_FLOOR.c + +../../../../../temp/csr/ta_HT_DCPERIOD.o: ../../../../../src/ta_func/ta_HT_DCPERIOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_HT_DCPERIOD.o ../../../../../src/ta_func/ta_HT_DCPERIOD.c + +../../../../../temp/csr/ta_HT_DCPHASE.o: ../../../../../src/ta_func/ta_HT_DCPHASE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_HT_DCPHASE.o ../../../../../src/ta_func/ta_HT_DCPHASE.c + +../../../../../temp/csr/ta_HT_PHASOR.o: ../../../../../src/ta_func/ta_HT_PHASOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_HT_PHASOR.o ../../../../../src/ta_func/ta_HT_PHASOR.c + +../../../../../temp/csr/ta_HT_SINE.o: ../../../../../src/ta_func/ta_HT_SINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_HT_SINE.o ../../../../../src/ta_func/ta_HT_SINE.c + +../../../../../temp/csr/ta_HT_TRENDLINE.o: ../../../../../src/ta_func/ta_HT_TRENDLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_HT_TRENDLINE.o ../../../../../src/ta_func/ta_HT_TRENDLINE.c + +../../../../../temp/csr/ta_HT_TRENDMODE.o: ../../../../../src/ta_func/ta_HT_TRENDMODE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_HT_TRENDMODE.o ../../../../../src/ta_func/ta_HT_TRENDMODE.c + +../../../../../temp/csr/ta_KAMA.o: ../../../../../src/ta_func/ta_KAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_KAMA.o ../../../../../src/ta_func/ta_KAMA.c + +../../../../../temp/csr/ta_LINEARREG.o: ../../../../../src/ta_func/ta_LINEARREG.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_LINEARREG.o ../../../../../src/ta_func/ta_LINEARREG.c + +../../../../../temp/csr/ta_LINEARREG_ANGLE.o: ../../../../../src/ta_func/ta_LINEARREG_ANGLE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_LINEARREG_ANGLE.o ../../../../../src/ta_func/ta_LINEARREG_ANGLE.c + +../../../../../temp/csr/ta_LINEARREG_INTERCEPT.o: ../../../../../src/ta_func/ta_LINEARREG_INTERCEPT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_LINEARREG_INTERCEPT.o ../../../../../src/ta_func/ta_LINEARREG_INTERCEPT.c + +../../../../../temp/csr/ta_LINEARREG_SLOPE.o: ../../../../../src/ta_func/ta_LINEARREG_SLOPE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_LINEARREG_SLOPE.o ../../../../../src/ta_func/ta_LINEARREG_SLOPE.c + +../../../../../temp/csr/ta_LN.o: ../../../../../src/ta_func/ta_LN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_LN.o ../../../../../src/ta_func/ta_LN.c + +../../../../../temp/csr/ta_LOG10.o: ../../../../../src/ta_func/ta_LOG10.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_LOG10.o ../../../../../src/ta_func/ta_LOG10.c + +../../../../../temp/csr/ta_MA.o: ../../../../../src/ta_func/ta_MA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_MA.o ../../../../../src/ta_func/ta_MA.c + +../../../../../temp/csr/ta_MACD.o: ../../../../../src/ta_func/ta_MACD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_MACD.o ../../../../../src/ta_func/ta_MACD.c + +../../../../../temp/csr/ta_MACDEXT.o: ../../../../../src/ta_func/ta_MACDEXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_MACDEXT.o ../../../../../src/ta_func/ta_MACDEXT.c + +../../../../../temp/csr/ta_MACDFIX.o: ../../../../../src/ta_func/ta_MACDFIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_MACDFIX.o ../../../../../src/ta_func/ta_MACDFIX.c + +../../../../../temp/csr/ta_MAMA.o: ../../../../../src/ta_func/ta_MAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_MAMA.o ../../../../../src/ta_func/ta_MAMA.c + +../../../../../temp/csr/ta_MAVP.o: ../../../../../src/ta_func/ta_MAVP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_MAVP.o ../../../../../src/ta_func/ta_MAVP.c + +../../../../../temp/csr/ta_MAX.o: ../../../../../src/ta_func/ta_MAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_MAX.o ../../../../../src/ta_func/ta_MAX.c + +../../../../../temp/csr/ta_MAXINDEX.o: ../../../../../src/ta_func/ta_MAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_MAXINDEX.o ../../../../../src/ta_func/ta_MAXINDEX.c + +../../../../../temp/csr/ta_MEDPRICE.o: ../../../../../src/ta_func/ta_MEDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_MEDPRICE.o ../../../../../src/ta_func/ta_MEDPRICE.c + +../../../../../temp/csr/ta_MFI.o: ../../../../../src/ta_func/ta_MFI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_MFI.o ../../../../../src/ta_func/ta_MFI.c + +../../../../../temp/csr/ta_MIDPOINT.o: ../../../../../src/ta_func/ta_MIDPOINT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_MIDPOINT.o ../../../../../src/ta_func/ta_MIDPOINT.c + +../../../../../temp/csr/ta_MIDPRICE.o: ../../../../../src/ta_func/ta_MIDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_MIDPRICE.o ../../../../../src/ta_func/ta_MIDPRICE.c + +../../../../../temp/csr/ta_MIN.o: ../../../../../src/ta_func/ta_MIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_MIN.o ../../../../../src/ta_func/ta_MIN.c + +../../../../../temp/csr/ta_MININDEX.o: ../../../../../src/ta_func/ta_MININDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_MININDEX.o ../../../../../src/ta_func/ta_MININDEX.c + +../../../../../temp/csr/ta_MINMAX.o: ../../../../../src/ta_func/ta_MINMAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_MINMAX.o ../../../../../src/ta_func/ta_MINMAX.c + +../../../../../temp/csr/ta_MINMAXINDEX.o: ../../../../../src/ta_func/ta_MINMAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_MINMAXINDEX.o ../../../../../src/ta_func/ta_MINMAXINDEX.c + +../../../../../temp/csr/ta_MINUS_DI.o: ../../../../../src/ta_func/ta_MINUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_MINUS_DI.o ../../../../../src/ta_func/ta_MINUS_DI.c + +../../../../../temp/csr/ta_MINUS_DM.o: ../../../../../src/ta_func/ta_MINUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_MINUS_DM.o ../../../../../src/ta_func/ta_MINUS_DM.c + +../../../../../temp/csr/ta_MOM.o: ../../../../../src/ta_func/ta_MOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_MOM.o ../../../../../src/ta_func/ta_MOM.c + +../../../../../temp/csr/ta_MULT.o: ../../../../../src/ta_func/ta_MULT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_MULT.o ../../../../../src/ta_func/ta_MULT.c + +../../../../../temp/csr/ta_NATR.o: ../../../../../src/ta_func/ta_NATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_NATR.o ../../../../../src/ta_func/ta_NATR.c + +../../../../../temp/csr/ta_OBV.o: ../../../../../src/ta_func/ta_OBV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_OBV.o ../../../../../src/ta_func/ta_OBV.c + +../../../../../temp/csr/ta_PLUS_DI.o: ../../../../../src/ta_func/ta_PLUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_PLUS_DI.o ../../../../../src/ta_func/ta_PLUS_DI.c + +../../../../../temp/csr/ta_PLUS_DM.o: ../../../../../src/ta_func/ta_PLUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_PLUS_DM.o ../../../../../src/ta_func/ta_PLUS_DM.c + +../../../../../temp/csr/ta_PPO.o: ../../../../../src/ta_func/ta_PPO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_PPO.o ../../../../../src/ta_func/ta_PPO.c + +../../../../../temp/csr/ta_ROC.o: ../../../../../src/ta_func/ta_ROC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_ROC.o ../../../../../src/ta_func/ta_ROC.c + +../../../../../temp/csr/ta_ROCP.o: ../../../../../src/ta_func/ta_ROCP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_ROCP.o ../../../../../src/ta_func/ta_ROCP.c + +../../../../../temp/csr/ta_ROCR.o: ../../../../../src/ta_func/ta_ROCR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_ROCR.o ../../../../../src/ta_func/ta_ROCR.c + +../../../../../temp/csr/ta_ROCR100.o: ../../../../../src/ta_func/ta_ROCR100.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_ROCR100.o ../../../../../src/ta_func/ta_ROCR100.c + +../../../../../temp/csr/ta_RSI.o: ../../../../../src/ta_func/ta_RSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_RSI.o ../../../../../src/ta_func/ta_RSI.c + +../../../../../temp/csr/ta_SAR.o: ../../../../../src/ta_func/ta_SAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_SAR.o ../../../../../src/ta_func/ta_SAR.c + +../../../../../temp/csr/ta_SAREXT.o: ../../../../../src/ta_func/ta_SAREXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_SAREXT.o ../../../../../src/ta_func/ta_SAREXT.c + +../../../../../temp/csr/ta_SIN.o: ../../../../../src/ta_func/ta_SIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_SIN.o ../../../../../src/ta_func/ta_SIN.c + +../../../../../temp/csr/ta_SINH.o: ../../../../../src/ta_func/ta_SINH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_SINH.o ../../../../../src/ta_func/ta_SINH.c + +../../../../../temp/csr/ta_SMA.o: ../../../../../src/ta_func/ta_SMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_SMA.o ../../../../../src/ta_func/ta_SMA.c + +../../../../../temp/csr/ta_SQRT.o: ../../../../../src/ta_func/ta_SQRT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_SQRT.o ../../../../../src/ta_func/ta_SQRT.c + +../../../../../temp/csr/ta_STDDEV.o: ../../../../../src/ta_func/ta_STDDEV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_STDDEV.o ../../../../../src/ta_func/ta_STDDEV.c + +../../../../../temp/csr/ta_STOCH.o: ../../../../../src/ta_func/ta_STOCH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_STOCH.o ../../../../../src/ta_func/ta_STOCH.c + +../../../../../temp/csr/ta_STOCHF.o: ../../../../../src/ta_func/ta_STOCHF.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_STOCHF.o ../../../../../src/ta_func/ta_STOCHF.c + +../../../../../temp/csr/ta_STOCHRSI.o: ../../../../../src/ta_func/ta_STOCHRSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_STOCHRSI.o ../../../../../src/ta_func/ta_STOCHRSI.c + +../../../../../temp/csr/ta_SUB.o: ../../../../../src/ta_func/ta_SUB.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_SUB.o ../../../../../src/ta_func/ta_SUB.c + +../../../../../temp/csr/ta_SUM.o: ../../../../../src/ta_func/ta_SUM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_SUM.o ../../../../../src/ta_func/ta_SUM.c + +../../../../../temp/csr/ta_T3.o: ../../../../../src/ta_func/ta_T3.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_T3.o ../../../../../src/ta_func/ta_T3.c + +../../../../../temp/csr/ta_TAN.o: ../../../../../src/ta_func/ta_TAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_TAN.o ../../../../../src/ta_func/ta_TAN.c + +../../../../../temp/csr/ta_TANH.o: ../../../../../src/ta_func/ta_TANH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_TANH.o ../../../../../src/ta_func/ta_TANH.c + +../../../../../temp/csr/ta_TEMA.o: ../../../../../src/ta_func/ta_TEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_TEMA.o ../../../../../src/ta_func/ta_TEMA.c + +../../../../../temp/csr/ta_TRANGE.o: ../../../../../src/ta_func/ta_TRANGE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_TRANGE.o ../../../../../src/ta_func/ta_TRANGE.c + +../../../../../temp/csr/ta_TRIMA.o: ../../../../../src/ta_func/ta_TRIMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_TRIMA.o ../../../../../src/ta_func/ta_TRIMA.c + +../../../../../temp/csr/ta_TRIX.o: ../../../../../src/ta_func/ta_TRIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_TRIX.o ../../../../../src/ta_func/ta_TRIX.c + +../../../../../temp/csr/ta_TSF.o: ../../../../../src/ta_func/ta_TSF.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_TSF.o ../../../../../src/ta_func/ta_TSF.c + +../../../../../temp/csr/ta_TYPPRICE.o: ../../../../../src/ta_func/ta_TYPPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_TYPPRICE.o ../../../../../src/ta_func/ta_TYPPRICE.c + +../../../../../temp/csr/ta_ULTOSC.o: ../../../../../src/ta_func/ta_ULTOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_ULTOSC.o ../../../../../src/ta_func/ta_ULTOSC.c + +../../../../../temp/csr/ta_VAR.o: ../../../../../src/ta_func/ta_VAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_VAR.o ../../../../../src/ta_func/ta_VAR.c + +../../../../../temp/csr/ta_WCLPRICE.o: ../../../../../src/ta_func/ta_WCLPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_WCLPRICE.o ../../../../../src/ta_func/ta_WCLPRICE.c + +../../../../../temp/csr/ta_WILLR.o: ../../../../../src/ta_func/ta_WILLR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_WILLR.o ../../../../../src/ta_func/ta_WILLR.c + +../../../../../temp/csr/ta_WMA.o: ../../../../../src/ta_func/ta_WMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_WMA.o ../../../../../src/ta_func/ta_WMA.c + diff --git a/make/csr/linux/g++/ta_regtest/Makefile b/make/csr/linux/g++/ta_regtest/Makefile new file mode 100644 index 000000000..baf90a98d --- /dev/null +++ b/make/csr/linux/g++/ta_regtest/Makefile @@ -0,0 +1,211 @@ +############################################################################# +# Makefile for building ../../../../../bin/ta_regtest +# Generated by tmake; +# Project: ta_regtest/ta_regtest +# Template: app +############################################################################# + +####### Compiler, tools and options + +CC = gcc +CXX = g++ +CFLAGS = -pipe -fPIC -Wall -W -O2 -fno-strict-aliasing -DTA_SINGLE_THREAD +CXXFLAGS= -pipe -fPIC -Wall -W -O2 -fno-strict-aliasing -DTA_SINGLE_THREAD +INCPATH = -I../../../../../src/ta_common -I../../../../../src/tools/ta_regtest -I../../../../../src/ta_func -I../../../../../include +LINK = g++ +LFLAGS = +LIBS = $(SUBLIBS) ../../../../../lib/libta_libc_csr.a -ldl +MOC = $(QTDIR)/bin/moc +UIC = $(QTDIR)/bin/uic + +TAR = tar -cf +GZIP = gzip -9f + +####### Support for 64-bit systems +ifeq ($(shell uname -m), x86_64) + CFLAGS += -march=x86-64 -m64 -D__64BIT__ + CXXFLAGS += -march=x86-64 -m64 -D__64BIT__ +endif + +####### Apply additional overruling user flags, if any +CFLAGS += $(CUSERFLAGS) +CXXFLAGS += $(CUSERFLAGS) + +####### Files + +HEADERS = +SOURCES = ../../../../../src/tools/ta_regtest/ta_regtest.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_candlestick.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_1in_1out.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_1in_2out.c \ + ../../../../../src/tools/ta_regtest/test_internals.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_adx.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_bbands.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_ma.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_macd.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_minmax.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_mom.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_per_ema.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hl.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hlc.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hlcv.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_per_ohlc.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_po.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_rsi.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_sar.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_stddev.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_stoch.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_trange.c \ + ../../../../../src/tools/ta_regtest/test_util.c \ + ../../../../../src/tools/ta_regtest/test_data.c \ + ../../../../../src/tools/ta_regtest/test_abstract.c +OBJECTS = ../../../../../temp/csr/ta_regtest.o \ + ../../../../../temp/csr/test_candlestick.o \ + ../../../../../temp/csr/test_1in_1out.o \ + ../../../../../temp/csr/test_1in_2out.o \ + ../../../../../temp/csr/test_internals.o \ + ../../../../../temp/csr/test_adx.o \ + ../../../../../temp/csr/test_bbands.o \ + ../../../../../temp/csr/test_ma.o \ + ../../../../../temp/csr/test_macd.o \ + ../../../../../temp/csr/test_minmax.o \ + ../../../../../temp/csr/test_mom.o \ + ../../../../../temp/csr/test_per_ema.o \ + ../../../../../temp/csr/test_per_hl.o \ + ../../../../../temp/csr/test_per_hlc.o \ + ../../../../../temp/csr/test_per_hlcv.o \ + ../../../../../temp/csr/test_per_ohlc.o \ + ../../../../../temp/csr/test_po.o \ + ../../../../../temp/csr/test_rsi.o \ + ../../../../../temp/csr/test_sar.o \ + ../../../../../temp/csr/test_stddev.o \ + ../../../../../temp/csr/test_stoch.o \ + ../../../../../temp/csr/test_trange.o \ + ../../../../../temp/csr/test_util.o \ + ../../../../../temp/csr/test_data.o \ + ../../../../../temp/csr/test_abstract.o +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ../../../../../bin/ta_regtest +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .C .c + +.cpp.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cxx.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.cc.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.C.o: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $< + +.c.o: + $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $< + +####### Build rules + + +all: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS) + +moc: $(SRCMOC) + +clean: + -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) + -rm -f *~ core + +####### Sub-libraries + + +###### Combined headers + + +####### Compile + +../../../../../temp/csr/ta_regtest.o: ../../../../../src/tools/ta_regtest/ta_regtest.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/ta_regtest.o ../../../../../src/tools/ta_regtest/ta_regtest.c + +../../../../../temp/csr/test_candlestick.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_candlestick.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/test_candlestick.o ../../../../../src/tools/ta_regtest/ta_test_func/test_candlestick.c + +../../../../../temp/csr/test_1in_1out.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_1in_1out.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/test_1in_1out.o ../../../../../src/tools/ta_regtest/ta_test_func/test_1in_1out.c + +../../../../../temp/csr/test_1in_2out.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_1in_2out.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/test_1in_2out.o ../../../../../src/tools/ta_regtest/ta_test_func/test_1in_2out.c + +../../../../../temp/csr/test_internals.o: ../../../../../src/tools/ta_regtest/test_internals.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/test_internals.o ../../../../../src/tools/ta_regtest/test_internals.c + +../../../../../temp/csr/test_adx.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_adx.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/test_adx.o ../../../../../src/tools/ta_regtest/ta_test_func/test_adx.c + +../../../../../temp/csr/test_bbands.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_bbands.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/test_bbands.o ../../../../../src/tools/ta_regtest/ta_test_func/test_bbands.c + +../../../../../temp/csr/test_ma.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_ma.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/test_ma.o ../../../../../src/tools/ta_regtest/ta_test_func/test_ma.c + +../../../../../temp/csr/test_macd.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_macd.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/test_macd.o ../../../../../src/tools/ta_regtest/ta_test_func/test_macd.c + +../../../../../temp/csr/test_minmax.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_minmax.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/test_minmax.o ../../../../../src/tools/ta_regtest/ta_test_func/test_minmax.c + +../../../../../temp/csr/test_mom.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_mom.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/test_mom.o ../../../../../src/tools/ta_regtest/ta_test_func/test_mom.c + +../../../../../temp/csr/test_per_ema.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_per_ema.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/test_per_ema.o ../../../../../src/tools/ta_regtest/ta_test_func/test_per_ema.c + +../../../../../temp/csr/test_per_hl.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hl.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/test_per_hl.o ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hl.c + +../../../../../temp/csr/test_per_hlc.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hlc.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/test_per_hlc.o ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hlc.c + +../../../../../temp/csr/test_per_hlcv.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hlcv.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/test_per_hlcv.o ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hlcv.c + +../../../../../temp/csr/test_per_ohlc.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_per_ohlc.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/test_per_ohlc.o ../../../../../src/tools/ta_regtest/ta_test_func/test_per_ohlc.c + +../../../../../temp/csr/test_po.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_po.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/test_po.o ../../../../../src/tools/ta_regtest/ta_test_func/test_po.c + +../../../../../temp/csr/test_rsi.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_rsi.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/test_rsi.o ../../../../../src/tools/ta_regtest/ta_test_func/test_rsi.c + +../../../../../temp/csr/test_sar.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_sar.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/test_sar.o ../../../../../src/tools/ta_regtest/ta_test_func/test_sar.c + +../../../../../temp/csr/test_stddev.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_stddev.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/test_stddev.o ../../../../../src/tools/ta_regtest/ta_test_func/test_stddev.c + +../../../../../temp/csr/test_stoch.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_stoch.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/test_stoch.o ../../../../../src/tools/ta_regtest/ta_test_func/test_stoch.c + +../../../../../temp/csr/test_trange.o: ../../../../../src/tools/ta_regtest/ta_test_func/test_trange.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/test_trange.o ../../../../../src/tools/ta_regtest/ta_test_func/test_trange.c + +../../../../../temp/csr/test_util.o: ../../../../../src/tools/ta_regtest/test_util.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/test_util.o ../../../../../src/tools/ta_regtest/test_util.c + +../../../../../temp/csr/test_data.o: ../../../../../src/tools/ta_regtest/test_data.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/test_data.o ../../../../../src/tools/ta_regtest/test_data.c + +../../../../../temp/csr/test_abstract.o: ../../../../../src/tools/ta_regtest/test_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -o ../../../../../temp/csr/test_abstract.o ../../../../../src/tools/ta_regtest/test_abstract.c + diff --git a/make/csr/win32/borland/Makefile b/make/csr/win32/borland/Makefile new file mode 100644 index 000000000..cdfddc170 --- /dev/null +++ b/make/csr/win32/borland/Makefile @@ -0,0 +1,96 @@ +############################################################################# +# Makefile for building targets in sub directories. +# Generated by tmake; +# Project: rootmake +# Template: subdirs +############################################################################# + +MAKEFILE= Makefile +TMAKE = tmake + +SUBDIRS = ta_common \ + ta_func \ + ta_abstract \ + ta_libc \ + gen_code \ + ta_regtest + +all: $(SUBDIRS) + +ta_common: + cd ta_common + $(MAKE) + @cd .. + +ta_func: + cd ta_func + $(MAKE) + @cd .. + +ta_abstract: + cd ta_abstract + $(MAKE) + @cd .. + +ta_libc: + cd ta_libc + $(MAKE) + @cd .. + +gen_code: + cd gen_code + $(MAKE) + @cd .. + +ta_regtest: + cd ta_regtest + $(MAKE) + @cd .. + + +tmake: ../csr/win32/borland/Makefile + +../csr/win32/borland/Makefile: rootmake.pro + tmake rootmake.pro -o ../csr/win32/borland/Makefile + +tmake_all: + cd ta_common + $(TMAKE) ta_common.pro -o $(MAKEFILE) + @cd .. + cd ta_func + $(TMAKE) ta_func.pro -o $(MAKEFILE) + @cd .. + cd ta_abstract + $(TMAKE) ta_abstract.pro -o $(MAKEFILE) + @cd .. + cd ta_libc + $(TMAKE) ta_libc.pro -o $(MAKEFILE) + @cd .. + cd gen_code + $(TMAKE) gen_code.pro -o $(MAKEFILE) + @cd .. + cd ta_regtest + $(TMAKE) ta_regtest.pro -o $(MAKEFILE) + @cd .. + + +clean: + cd ta_common + $(MAKE) clean + @cd .. + cd ta_func + $(MAKE) clean + @cd .. + cd ta_abstract + $(MAKE) clean + @cd .. + cd ta_libc + $(MAKE) clean + @cd .. + cd gen_code + $(MAKE) clean + @cd .. + cd ta_regtest + $(MAKE) clean + @cd .. + diff --git a/make/csr/win32/borland/gen_code/Makefile b/make/csr/win32/borland/gen_code/Makefile new file mode 100644 index 000000000..92aeb3f5c --- /dev/null +++ b/make/csr/win32/borland/gen_code/Makefile @@ -0,0 +1,267 @@ +############################################################################# +# Makefile for building gen_code +# Generated by tmake; +# Project: gen_code/gen_code +# Template: app +############################################################################# + +!if !$d(BCB) +BCB = $(MAKEDIR)\.. +!endif + +####### Compiler, tools and options + +CC = bcc32 +CXX = bcc32 +CFLAGS = -x- -RT- -tWR -w -w-8004 -w-8071 -w-8057 -w-8080 -O2 -DTA_GEN_CODE -DTA_SINGLE_THREAD -DWIN32 +CXXFLAGS= -x- -RT- -tWR -w -w-8004 -w-8071 -w-8057 -w-8080 -O2 -DTA_GEN_CODE -DTA_SINGLE_THREAD -DWIN32 +INCPATH = -I"..\..\..\..\..\include" -I"..\..\..\..\..\src\ta_common" -I"..\..\..\..\..\src\ta_abstract" -I"..\..\..\..\..\src\ta_abstract\tables" -I"..\..\..\..\..\src\ta_abstract\frames" +LINK = ilink32 +LFLAGS = -L$(BCB)\lib -L$(BCB)\lib\PSDK -c -x -Gn -ap -Tpe c0x32.obj +LIBS = import32.lib cw32i.lib ..\..\..\..\..\lib\ta_common_csr.lib +MOC = moc +UIC = uic + +ZIP = zip -r -9 +DEF_FILE = +RES_FILE = + +####### Files + +HEADERS = +SOURCES = ..\..\..\..\..\src\tools\gen_code\gen_code.c \ + ..\..\..\..\..\src\ta_abstract\ta_abstract.c \ + ..\..\..\..\..\src\ta_abstract\ta_def_ui.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_a.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_b.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_c.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_d.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_e.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_f.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_g.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_h.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_i.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_j.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_k.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_l.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_m.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_n.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_o.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_p.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_q.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_r.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_s.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_t.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_u.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_v.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_w.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_x.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_y.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_z.c +OBJECTS = ..\..\..\..\..\temp\csr\gen_code\gen_code.obj \ + ..\..\..\..\..\temp\csr\gen_code\ta_abstract.obj \ + ..\..\..\..\..\temp\csr\gen_code\ta_def_ui.obj \ + ..\..\..\..\..\temp\csr\gen_code\table_a.obj \ + ..\..\..\..\..\temp\csr\gen_code\table_b.obj \ + ..\..\..\..\..\temp\csr\gen_code\table_c.obj \ + ..\..\..\..\..\temp\csr\gen_code\table_d.obj \ + ..\..\..\..\..\temp\csr\gen_code\table_e.obj \ + ..\..\..\..\..\temp\csr\gen_code\table_f.obj \ + ..\..\..\..\..\temp\csr\gen_code\table_g.obj \ + ..\..\..\..\..\temp\csr\gen_code\table_h.obj \ + ..\..\..\..\..\temp\csr\gen_code\table_i.obj \ + ..\..\..\..\..\temp\csr\gen_code\table_j.obj \ + ..\..\..\..\..\temp\csr\gen_code\table_k.obj \ + ..\..\..\..\..\temp\csr\gen_code\table_l.obj \ + ..\..\..\..\..\temp\csr\gen_code\table_m.obj \ + ..\..\..\..\..\temp\csr\gen_code\table_n.obj \ + ..\..\..\..\..\temp\csr\gen_code\table_o.obj \ + ..\..\..\..\..\temp\csr\gen_code\table_p.obj \ + ..\..\..\..\..\temp\csr\gen_code\table_q.obj \ + ..\..\..\..\..\temp\csr\gen_code\table_r.obj \ + ..\..\..\..\..\temp\csr\gen_code\table_s.obj \ + ..\..\..\..\..\temp\csr\gen_code\table_t.obj \ + ..\..\..\..\..\temp\csr\gen_code\table_u.obj \ + ..\..\..\..\..\temp\csr\gen_code\table_v.obj \ + ..\..\..\..\..\temp\csr\gen_code\table_w.obj \ + ..\..\..\..\..\temp\csr\gen_code\table_x.obj \ + ..\..\..\..\..\temp\csr\gen_code\table_y.obj \ + ..\..\..\..\..\temp\csr\gen_code\table_z.obj +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ..\..\..\..\..\bin\gen_code.exe +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .c + +.cpp.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.cxx.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.cc.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.c.obj: + $(CC) -c $(CFLAGS) $(INCPATH) -o$@ $< + +####### Build rules + +all: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + $(LINK) @&&| + $(LFLAGS) $(OBJECTS) $(OBJMOC),$(TARGET),,$(LIBS),$(DEF_FILE),$(RES_FILE) +| + +moc: $(SRCMOC) + +tmake: ../csr/win32/borland/gen_code/Makefile + +../csr/win32/borland/gen_code/Makefile: gen_code/gen_code.pro + tmake gen_code/gen_code.pro -o ../csr/win32/borland/gen_code/Makefile + +dist: + $(ZIP) gen_code/gen_code.zip gen_code/gen_code.pro $(SOURCES) $(HEADERS) $(DIST) + +clean: + -del ..\..\..\..\..\temp\csr\gen_code\gen_code.obj + -del ..\..\..\..\..\temp\csr\gen_code\ta_abstract.obj + -del ..\..\..\..\..\temp\csr\gen_code\ta_def_ui.obj + -del ..\..\..\..\..\temp\csr\gen_code\table_a.obj + -del ..\..\..\..\..\temp\csr\gen_code\table_b.obj + -del ..\..\..\..\..\temp\csr\gen_code\table_c.obj + -del ..\..\..\..\..\temp\csr\gen_code\table_d.obj + -del ..\..\..\..\..\temp\csr\gen_code\table_e.obj + -del ..\..\..\..\..\temp\csr\gen_code\table_f.obj + -del ..\..\..\..\..\temp\csr\gen_code\table_g.obj + -del ..\..\..\..\..\temp\csr\gen_code\table_h.obj + -del ..\..\..\..\..\temp\csr\gen_code\table_i.obj + -del ..\..\..\..\..\temp\csr\gen_code\table_j.obj + -del ..\..\..\..\..\temp\csr\gen_code\table_k.obj + -del ..\..\..\..\..\temp\csr\gen_code\table_l.obj + -del ..\..\..\..\..\temp\csr\gen_code\table_m.obj + -del ..\..\..\..\..\temp\csr\gen_code\table_n.obj + -del ..\..\..\..\..\temp\csr\gen_code\table_o.obj + -del ..\..\..\..\..\temp\csr\gen_code\table_p.obj + -del ..\..\..\..\..\temp\csr\gen_code\table_q.obj + -del ..\..\..\..\..\temp\csr\gen_code\table_r.obj + -del ..\..\..\..\..\temp\csr\gen_code\table_s.obj + -del ..\..\..\..\..\temp\csr\gen_code\table_t.obj + -del ..\..\..\..\..\temp\csr\gen_code\table_u.obj + -del ..\..\..\..\..\temp\csr\gen_code\table_v.obj + -del ..\..\..\..\..\temp\csr\gen_code\table_w.obj + -del ..\..\..\..\..\temp\csr\gen_code\table_x.obj + -del ..\..\..\..\..\temp\csr\gen_code\table_y.obj + -del ..\..\..\..\..\temp\csr\gen_code\table_z.obj + -del $(TARGET) + -del gen_code.tds + -del ../../../../../bin/*.map + -del ../../../../../bin/*._xe + -del ../../../../../bin/*.tds + -del ../../../../../bin/*.pdb + -del ../../../../../bin/*.pbo + -del ../../../../../bin/*.pbi + -del ../../../../../bin/*.pbt + -del ../../../../../temp/csr/*.pch + -del ../../../../../temp/csr/*.idb + -del ../../../../../temp/csr/gen_code/*.pch + -del ../../../../../temp/csr/gen_code/*.idb + -del ../../../../../temp/csr/gen_code/*.obj + +####### Compile + +..\..\..\..\..\temp\csr\gen_code\gen_code.obj: ..\..\..\..\..\src\tools\gen_code\gen_code.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\gen_code\gen_code.obj ..\..\..\..\..\src\tools\gen_code\gen_code.c + +..\..\..\..\..\temp\csr\gen_code\ta_abstract.obj: ..\..\..\..\..\src\ta_abstract\ta_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\gen_code\ta_abstract.obj ..\..\..\..\..\src\ta_abstract\ta_abstract.c + +..\..\..\..\..\temp\csr\gen_code\ta_def_ui.obj: ..\..\..\..\..\src\ta_abstract\ta_def_ui.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\gen_code\ta_def_ui.obj ..\..\..\..\..\src\ta_abstract\ta_def_ui.c + +..\..\..\..\..\temp\csr\gen_code\table_a.obj: ..\..\..\..\..\src\ta_abstract\tables\table_a.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\gen_code\table_a.obj ..\..\..\..\..\src\ta_abstract\tables\table_a.c + +..\..\..\..\..\temp\csr\gen_code\table_b.obj: ..\..\..\..\..\src\ta_abstract\tables\table_b.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\gen_code\table_b.obj ..\..\..\..\..\src\ta_abstract\tables\table_b.c + +..\..\..\..\..\temp\csr\gen_code\table_c.obj: ..\..\..\..\..\src\ta_abstract\tables\table_c.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\gen_code\table_c.obj ..\..\..\..\..\src\ta_abstract\tables\table_c.c + +..\..\..\..\..\temp\csr\gen_code\table_d.obj: ..\..\..\..\..\src\ta_abstract\tables\table_d.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\gen_code\table_d.obj ..\..\..\..\..\src\ta_abstract\tables\table_d.c + +..\..\..\..\..\temp\csr\gen_code\table_e.obj: ..\..\..\..\..\src\ta_abstract\tables\table_e.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\gen_code\table_e.obj ..\..\..\..\..\src\ta_abstract\tables\table_e.c + +..\..\..\..\..\temp\csr\gen_code\table_f.obj: ..\..\..\..\..\src\ta_abstract\tables\table_f.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\gen_code\table_f.obj ..\..\..\..\..\src\ta_abstract\tables\table_f.c + +..\..\..\..\..\temp\csr\gen_code\table_g.obj: ..\..\..\..\..\src\ta_abstract\tables\table_g.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\gen_code\table_g.obj ..\..\..\..\..\src\ta_abstract\tables\table_g.c + +..\..\..\..\..\temp\csr\gen_code\table_h.obj: ..\..\..\..\..\src\ta_abstract\tables\table_h.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\gen_code\table_h.obj ..\..\..\..\..\src\ta_abstract\tables\table_h.c + +..\..\..\..\..\temp\csr\gen_code\table_i.obj: ..\..\..\..\..\src\ta_abstract\tables\table_i.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\gen_code\table_i.obj ..\..\..\..\..\src\ta_abstract\tables\table_i.c + +..\..\..\..\..\temp\csr\gen_code\table_j.obj: ..\..\..\..\..\src\ta_abstract\tables\table_j.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\gen_code\table_j.obj ..\..\..\..\..\src\ta_abstract\tables\table_j.c + +..\..\..\..\..\temp\csr\gen_code\table_k.obj: ..\..\..\..\..\src\ta_abstract\tables\table_k.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\gen_code\table_k.obj ..\..\..\..\..\src\ta_abstract\tables\table_k.c + +..\..\..\..\..\temp\csr\gen_code\table_l.obj: ..\..\..\..\..\src\ta_abstract\tables\table_l.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\gen_code\table_l.obj ..\..\..\..\..\src\ta_abstract\tables\table_l.c + +..\..\..\..\..\temp\csr\gen_code\table_m.obj: ..\..\..\..\..\src\ta_abstract\tables\table_m.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\gen_code\table_m.obj ..\..\..\..\..\src\ta_abstract\tables\table_m.c + +..\..\..\..\..\temp\csr\gen_code\table_n.obj: ..\..\..\..\..\src\ta_abstract\tables\table_n.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\gen_code\table_n.obj ..\..\..\..\..\src\ta_abstract\tables\table_n.c + +..\..\..\..\..\temp\csr\gen_code\table_o.obj: ..\..\..\..\..\src\ta_abstract\tables\table_o.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\gen_code\table_o.obj ..\..\..\..\..\src\ta_abstract\tables\table_o.c + +..\..\..\..\..\temp\csr\gen_code\table_p.obj: ..\..\..\..\..\src\ta_abstract\tables\table_p.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\gen_code\table_p.obj ..\..\..\..\..\src\ta_abstract\tables\table_p.c + +..\..\..\..\..\temp\csr\gen_code\table_q.obj: ..\..\..\..\..\src\ta_abstract\tables\table_q.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\gen_code\table_q.obj ..\..\..\..\..\src\ta_abstract\tables\table_q.c + +..\..\..\..\..\temp\csr\gen_code\table_r.obj: ..\..\..\..\..\src\ta_abstract\tables\table_r.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\gen_code\table_r.obj ..\..\..\..\..\src\ta_abstract\tables\table_r.c + +..\..\..\..\..\temp\csr\gen_code\table_s.obj: ..\..\..\..\..\src\ta_abstract\tables\table_s.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\gen_code\table_s.obj ..\..\..\..\..\src\ta_abstract\tables\table_s.c + +..\..\..\..\..\temp\csr\gen_code\table_t.obj: ..\..\..\..\..\src\ta_abstract\tables\table_t.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\gen_code\table_t.obj ..\..\..\..\..\src\ta_abstract\tables\table_t.c + +..\..\..\..\..\temp\csr\gen_code\table_u.obj: ..\..\..\..\..\src\ta_abstract\tables\table_u.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\gen_code\table_u.obj ..\..\..\..\..\src\ta_abstract\tables\table_u.c + +..\..\..\..\..\temp\csr\gen_code\table_v.obj: ..\..\..\..\..\src\ta_abstract\tables\table_v.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\gen_code\table_v.obj ..\..\..\..\..\src\ta_abstract\tables\table_v.c + +..\..\..\..\..\temp\csr\gen_code\table_w.obj: ..\..\..\..\..\src\ta_abstract\tables\table_w.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\gen_code\table_w.obj ..\..\..\..\..\src\ta_abstract\tables\table_w.c + +..\..\..\..\..\temp\csr\gen_code\table_x.obj: ..\..\..\..\..\src\ta_abstract\tables\table_x.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\gen_code\table_x.obj ..\..\..\..\..\src\ta_abstract\tables\table_x.c + +..\..\..\..\..\temp\csr\gen_code\table_y.obj: ..\..\..\..\..\src\ta_abstract\tables\table_y.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\gen_code\table_y.obj ..\..\..\..\..\src\ta_abstract\tables\table_y.c + +..\..\..\..\..\temp\csr\gen_code\table_z.obj: ..\..\..\..\..\src\ta_abstract\tables\table_z.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\gen_code\table_z.obj ..\..\..\..\..\src\ta_abstract\tables\table_z.c + diff --git a/make/csr/win32/borland/ta_abstract/Makefile b/make/csr/win32/borland/ta_abstract/Makefile new file mode 100644 index 000000000..790d99bb5 --- /dev/null +++ b/make/csr/win32/borland/ta_abstract/Makefile @@ -0,0 +1,309 @@ +############################################################################# +# Makefile for building ta_abstract_csr +# Generated by tmake; +# Project: ta_abstract/ta_abstract +# Template: lib +############################################################################# + +!if !$d(BCB) +BCB = $(MAKEDIR)\.. +!endif + +####### Compiler, tools and options + +CC = bcc32 +CXX = bcc32 +CFLAGS = -x- -RT- -tWR -w -w-8004 -w-8071 -w-8057 -w-8080 -O2 -DTA_SINGLE_THREAD -DWIN32 +CXXFLAGS= -x- -RT- -tWR -w -w-8004 -w-8071 -w-8057 -w-8080 -O2 -DTA_SINGLE_THREAD -DWIN32 +INCPATH = -I"..\..\..\..\..\src\ta_common" -I"..\..\..\..\..\src\ta_abstract" -I"..\..\..\..\..\src\ta_abstract\tables" -I"..\..\..\..\..\src\ta_abstract\frames" -I"..\..\..\..\..\include" +LIB = tlib /C /P256 +MOC = moc +UIC = uic + +ZIP = zip -r -9 +DEF_FILE = +RES_FILE = + +####### Files + +HEADERS = +SOURCES = ..\..\..\..\..\src\ta_abstract\ta_abstract.c \ + ..\..\..\..\..\src\ta_abstract\ta_def_ui.c \ + ..\..\..\..\..\src\ta_abstract\ta_func_api.c \ + ..\..\..\..\..\src\ta_abstract\ta_group_idx.c \ + ..\..\..\..\..\src\ta_abstract\frames\ta_frame.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_a.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_b.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_c.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_d.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_e.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_f.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_g.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_h.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_i.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_j.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_k.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_l.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_m.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_n.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_o.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_p.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_q.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_r.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_s.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_t.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_u.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_v.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_w.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_x.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_y.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_z.c +OBJECTS = ..\..\..\..\..\temp\csr\ta_abstract.obj \ + ..\..\..\..\..\temp\csr\ta_def_ui.obj \ + ..\..\..\..\..\temp\csr\ta_func_api.obj \ + ..\..\..\..\..\temp\csr\ta_group_idx.obj \ + ..\..\..\..\..\temp\csr\ta_frame.obj \ + ..\..\..\..\..\temp\csr\table_a.obj \ + ..\..\..\..\..\temp\csr\table_b.obj \ + ..\..\..\..\..\temp\csr\table_c.obj \ + ..\..\..\..\..\temp\csr\table_d.obj \ + ..\..\..\..\..\temp\csr\table_e.obj \ + ..\..\..\..\..\temp\csr\table_f.obj \ + ..\..\..\..\..\temp\csr\table_g.obj \ + ..\..\..\..\..\temp\csr\table_h.obj \ + ..\..\..\..\..\temp\csr\table_i.obj \ + ..\..\..\..\..\temp\csr\table_j.obj \ + ..\..\..\..\..\temp\csr\table_k.obj \ + ..\..\..\..\..\temp\csr\table_l.obj \ + ..\..\..\..\..\temp\csr\table_m.obj \ + ..\..\..\..\..\temp\csr\table_n.obj \ + ..\..\..\..\..\temp\csr\table_o.obj \ + ..\..\..\..\..\temp\csr\table_p.obj \ + ..\..\..\..\..\temp\csr\table_q.obj \ + ..\..\..\..\..\temp\csr\table_r.obj \ + ..\..\..\..\..\temp\csr\table_s.obj \ + ..\..\..\..\..\temp\csr\table_t.obj \ + ..\..\..\..\..\temp\csr\table_u.obj \ + ..\..\..\..\..\temp\csr\table_v.obj \ + ..\..\..\..\..\temp\csr\table_w.obj \ + ..\..\..\..\..\temp\csr\table_x.obj \ + ..\..\..\..\..\temp\csr\table_y.obj \ + ..\..\..\..\..\temp\csr\table_z.obj +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ..\..\..\..\..\lib\ta_abstract_csr.lib +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .c + +.cpp.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.cxx.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.cc.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.c.obj: + $(CC) -c $(CFLAGS) $(INCPATH) -o$@ $< + +####### Build rules + +all: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + -del $(TARGET) + $(LIB) $(TARGET) @&&| ++..\..\..\..\..\temp\csr\ta_abstract.obj \ ++..\..\..\..\..\temp\csr\ta_def_ui.obj \ ++..\..\..\..\..\temp\csr\ta_func_api.obj \ ++..\..\..\..\..\temp\csr\ta_group_idx.obj \ ++..\..\..\..\..\temp\csr\ta_frame.obj \ ++..\..\..\..\..\temp\csr\table_a.obj \ ++..\..\..\..\..\temp\csr\table_b.obj \ ++..\..\..\..\..\temp\csr\table_c.obj \ ++..\..\..\..\..\temp\csr\table_d.obj \ ++..\..\..\..\..\temp\csr\table_e.obj \ ++..\..\..\..\..\temp\csr\table_f.obj \ ++..\..\..\..\..\temp\csr\table_g.obj \ ++..\..\..\..\..\temp\csr\table_h.obj \ ++..\..\..\..\..\temp\csr\table_i.obj \ ++..\..\..\..\..\temp\csr\table_j.obj \ ++..\..\..\..\..\temp\csr\table_k.obj \ ++..\..\..\..\..\temp\csr\table_l.obj \ ++..\..\..\..\..\temp\csr\table_m.obj \ ++..\..\..\..\..\temp\csr\table_n.obj \ ++..\..\..\..\..\temp\csr\table_o.obj \ ++..\..\..\..\..\temp\csr\table_p.obj \ ++..\..\..\..\..\temp\csr\table_q.obj \ ++..\..\..\..\..\temp\csr\table_r.obj \ ++..\..\..\..\..\temp\csr\table_s.obj \ ++..\..\..\..\..\temp\csr\table_t.obj \ ++..\..\..\..\..\temp\csr\table_u.obj \ ++..\..\..\..\..\temp\csr\table_v.obj \ ++..\..\..\..\..\temp\csr\table_w.obj \ ++..\..\..\..\..\temp\csr\table_x.obj \ ++..\..\..\..\..\temp\csr\table_y.obj \ ++..\..\..\..\..\temp\csr\table_z.obj \ ++ +| + +moc: $(SRCMOC) + +tmake: ../csr/win32/borland/ta_abstract/Makefile + +../csr/win32/borland/ta_abstract/Makefile: ta_abstract/ta_abstract.pro + tmake ta_abstract/ta_abstract.pro -o ../csr/win32/borland/ta_abstract/Makefile + +dist: + $(ZIP) ta_abstract/ta_abstract.zip ta_abstract/ta_abstract.pro $(SOURCES) $(HEADERS) $(DIST) + +clean: + -del ..\..\..\..\..\temp\csr\ta_abstract.obj + -del ..\..\..\..\..\temp\csr\ta_def_ui.obj + -del ..\..\..\..\..\temp\csr\ta_func_api.obj + -del ..\..\..\..\..\temp\csr\ta_group_idx.obj + -del ..\..\..\..\..\temp\csr\ta_frame.obj + -del ..\..\..\..\..\temp\csr\table_a.obj + -del ..\..\..\..\..\temp\csr\table_b.obj + -del ..\..\..\..\..\temp\csr\table_c.obj + -del ..\..\..\..\..\temp\csr\table_d.obj + -del ..\..\..\..\..\temp\csr\table_e.obj + -del ..\..\..\..\..\temp\csr\table_f.obj + -del ..\..\..\..\..\temp\csr\table_g.obj + -del ..\..\..\..\..\temp\csr\table_h.obj + -del ..\..\..\..\..\temp\csr\table_i.obj + -del ..\..\..\..\..\temp\csr\table_j.obj + -del ..\..\..\..\..\temp\csr\table_k.obj + -del ..\..\..\..\..\temp\csr\table_l.obj + -del ..\..\..\..\..\temp\csr\table_m.obj + -del ..\..\..\..\..\temp\csr\table_n.obj + -del ..\..\..\..\..\temp\csr\table_o.obj + -del ..\..\..\..\..\temp\csr\table_p.obj + -del ..\..\..\..\..\temp\csr\table_q.obj + -del ..\..\..\..\..\temp\csr\table_r.obj + -del ..\..\..\..\..\temp\csr\table_s.obj + -del ..\..\..\..\..\temp\csr\table_t.obj + -del ..\..\..\..\..\temp\csr\table_u.obj + -del ..\..\..\..\..\temp\csr\table_v.obj + -del ..\..\..\..\..\temp\csr\table_w.obj + -del ..\..\..\..\..\temp\csr\table_x.obj + -del ..\..\..\..\..\temp\csr\table_y.obj + -del ..\..\..\..\..\temp\csr\table_z.obj + -del $(TARGET) + -del ta_abstract_csr.tds + -del ../../../../../bin/*.map + -del ../../../../../bin/*._xe + -del ../../../../../bin/*.tds + -del ../../../../../bin/*.pdb + -del ../../../../../bin/*.pbo + -del ../../../../../bin/*.pbi + -del ../../../../../bin/*.pbt + -del ../../../../../temp/csr/*.pch + -del ../../../../../temp/csr/*.idb + -del ../../../../../temp/csr/ta_abstract/*.pch + -del ../../../../../temp/csr/ta_abstract/*.idb + -del ../../../../../temp/csr/ta_abstract/*.obj + +####### Compile + +..\..\..\..\..\temp\csr\ta_abstract.obj: ..\..\..\..\..\src\ta_abstract\ta_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_abstract.obj ..\..\..\..\..\src\ta_abstract\ta_abstract.c + +..\..\..\..\..\temp\csr\ta_def_ui.obj: ..\..\..\..\..\src\ta_abstract\ta_def_ui.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_def_ui.obj ..\..\..\..\..\src\ta_abstract\ta_def_ui.c + +..\..\..\..\..\temp\csr\ta_func_api.obj: ..\..\..\..\..\src\ta_abstract\ta_func_api.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_func_api.obj ..\..\..\..\..\src\ta_abstract\ta_func_api.c + +..\..\..\..\..\temp\csr\ta_group_idx.obj: ..\..\..\..\..\src\ta_abstract\ta_group_idx.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_group_idx.obj ..\..\..\..\..\src\ta_abstract\ta_group_idx.c + +..\..\..\..\..\temp\csr\ta_frame.obj: ..\..\..\..\..\src\ta_abstract\frames\ta_frame.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_frame.obj ..\..\..\..\..\src\ta_abstract\frames\ta_frame.c + +..\..\..\..\..\temp\csr\table_a.obj: ..\..\..\..\..\src\ta_abstract\tables\table_a.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\table_a.obj ..\..\..\..\..\src\ta_abstract\tables\table_a.c + +..\..\..\..\..\temp\csr\table_b.obj: ..\..\..\..\..\src\ta_abstract\tables\table_b.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\table_b.obj ..\..\..\..\..\src\ta_abstract\tables\table_b.c + +..\..\..\..\..\temp\csr\table_c.obj: ..\..\..\..\..\src\ta_abstract\tables\table_c.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\table_c.obj ..\..\..\..\..\src\ta_abstract\tables\table_c.c + +..\..\..\..\..\temp\csr\table_d.obj: ..\..\..\..\..\src\ta_abstract\tables\table_d.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\table_d.obj ..\..\..\..\..\src\ta_abstract\tables\table_d.c + +..\..\..\..\..\temp\csr\table_e.obj: ..\..\..\..\..\src\ta_abstract\tables\table_e.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\table_e.obj ..\..\..\..\..\src\ta_abstract\tables\table_e.c + +..\..\..\..\..\temp\csr\table_f.obj: ..\..\..\..\..\src\ta_abstract\tables\table_f.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\table_f.obj ..\..\..\..\..\src\ta_abstract\tables\table_f.c + +..\..\..\..\..\temp\csr\table_g.obj: ..\..\..\..\..\src\ta_abstract\tables\table_g.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\table_g.obj ..\..\..\..\..\src\ta_abstract\tables\table_g.c + +..\..\..\..\..\temp\csr\table_h.obj: ..\..\..\..\..\src\ta_abstract\tables\table_h.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\table_h.obj ..\..\..\..\..\src\ta_abstract\tables\table_h.c + +..\..\..\..\..\temp\csr\table_i.obj: ..\..\..\..\..\src\ta_abstract\tables\table_i.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\table_i.obj ..\..\..\..\..\src\ta_abstract\tables\table_i.c + +..\..\..\..\..\temp\csr\table_j.obj: ..\..\..\..\..\src\ta_abstract\tables\table_j.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\table_j.obj ..\..\..\..\..\src\ta_abstract\tables\table_j.c + +..\..\..\..\..\temp\csr\table_k.obj: ..\..\..\..\..\src\ta_abstract\tables\table_k.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\table_k.obj ..\..\..\..\..\src\ta_abstract\tables\table_k.c + +..\..\..\..\..\temp\csr\table_l.obj: ..\..\..\..\..\src\ta_abstract\tables\table_l.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\table_l.obj ..\..\..\..\..\src\ta_abstract\tables\table_l.c + +..\..\..\..\..\temp\csr\table_m.obj: ..\..\..\..\..\src\ta_abstract\tables\table_m.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\table_m.obj ..\..\..\..\..\src\ta_abstract\tables\table_m.c + +..\..\..\..\..\temp\csr\table_n.obj: ..\..\..\..\..\src\ta_abstract\tables\table_n.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\table_n.obj ..\..\..\..\..\src\ta_abstract\tables\table_n.c + +..\..\..\..\..\temp\csr\table_o.obj: ..\..\..\..\..\src\ta_abstract\tables\table_o.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\table_o.obj ..\..\..\..\..\src\ta_abstract\tables\table_o.c + +..\..\..\..\..\temp\csr\table_p.obj: ..\..\..\..\..\src\ta_abstract\tables\table_p.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\table_p.obj ..\..\..\..\..\src\ta_abstract\tables\table_p.c + +..\..\..\..\..\temp\csr\table_q.obj: ..\..\..\..\..\src\ta_abstract\tables\table_q.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\table_q.obj ..\..\..\..\..\src\ta_abstract\tables\table_q.c + +..\..\..\..\..\temp\csr\table_r.obj: ..\..\..\..\..\src\ta_abstract\tables\table_r.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\table_r.obj ..\..\..\..\..\src\ta_abstract\tables\table_r.c + +..\..\..\..\..\temp\csr\table_s.obj: ..\..\..\..\..\src\ta_abstract\tables\table_s.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\table_s.obj ..\..\..\..\..\src\ta_abstract\tables\table_s.c + +..\..\..\..\..\temp\csr\table_t.obj: ..\..\..\..\..\src\ta_abstract\tables\table_t.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\table_t.obj ..\..\..\..\..\src\ta_abstract\tables\table_t.c + +..\..\..\..\..\temp\csr\table_u.obj: ..\..\..\..\..\src\ta_abstract\tables\table_u.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\table_u.obj ..\..\..\..\..\src\ta_abstract\tables\table_u.c + +..\..\..\..\..\temp\csr\table_v.obj: ..\..\..\..\..\src\ta_abstract\tables\table_v.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\table_v.obj ..\..\..\..\..\src\ta_abstract\tables\table_v.c + +..\..\..\..\..\temp\csr\table_w.obj: ..\..\..\..\..\src\ta_abstract\tables\table_w.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\table_w.obj ..\..\..\..\..\src\ta_abstract\tables\table_w.c + +..\..\..\..\..\temp\csr\table_x.obj: ..\..\..\..\..\src\ta_abstract\tables\table_x.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\table_x.obj ..\..\..\..\..\src\ta_abstract\tables\table_x.c + +..\..\..\..\..\temp\csr\table_y.obj: ..\..\..\..\..\src\ta_abstract\tables\table_y.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\table_y.obj ..\..\..\..\..\src\ta_abstract\tables\table_y.c + +..\..\..\..\..\temp\csr\table_z.obj: ..\..\..\..\..\src\ta_abstract\tables\table_z.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\table_z.obj ..\..\..\..\..\src\ta_abstract\tables\table_z.c + diff --git a/make/csr/win32/borland/ta_common/Makefile b/make/csr/win32/borland/ta_common/Makefile new file mode 100644 index 000000000..7bad43bdc --- /dev/null +++ b/make/csr/win32/borland/ta_common/Makefile @@ -0,0 +1,113 @@ +############################################################################# +# Makefile for building ta_common_csr +# Generated by tmake; +# Project: ta_common/ta_common +# Template: lib +############################################################################# + +!if !$d(BCB) +BCB = $(MAKEDIR)\.. +!endif + +####### Compiler, tools and options + +CC = bcc32 +CXX = bcc32 +CFLAGS = -x- -RT- -tWR -w -w-8004 -w-8071 -w-8057 -w-8080 -O2 -DTA_SINGLE_THREAD -DWIN32 +CXXFLAGS= -x- -RT- -tWR -w -w-8004 -w-8071 -w-8057 -w-8080 -O2 -DTA_SINGLE_THREAD -DWIN32 +INCPATH = -I"..\..\..\..\..\src\ta_common" -I"..\..\..\..\..\include" +LIB = tlib /C /P256 +MOC = moc +UIC = uic + +ZIP = zip -r -9 +DEF_FILE = +RES_FILE = + +####### Files + +HEADERS = +SOURCES = ..\..\..\..\..\src\ta_common\ta_global.c \ + ..\..\..\..\..\src\ta_common\ta_retcode.c \ + ..\..\..\..\..\src\ta_common\ta_version.c +OBJECTS = ..\..\..\..\..\temp\csr\ta_global.obj \ + ..\..\..\..\..\temp\csr\ta_retcode.obj \ + ..\..\..\..\..\temp\csr\ta_version.obj +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ..\..\..\..\..\lib\ta_common_csr.lib +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .c + +.cpp.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.cxx.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.cc.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.c.obj: + $(CC) -c $(CFLAGS) $(INCPATH) -o$@ $< + +####### Build rules + +all: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + -del $(TARGET) + $(LIB) $(TARGET) @&&| ++..\..\..\..\..\temp\csr\ta_global.obj \ ++..\..\..\..\..\temp\csr\ta_retcode.obj \ ++..\..\..\..\..\temp\csr\ta_version.obj \ ++ +| + +moc: $(SRCMOC) + +tmake: ../csr/win32/borland/ta_common/Makefile + +../csr/win32/borland/ta_common/Makefile: ta_common/ta_common.pro + tmake ta_common/ta_common.pro -o ../csr/win32/borland/ta_common/Makefile + +dist: + $(ZIP) ta_common/ta_common.zip ta_common/ta_common.pro $(SOURCES) $(HEADERS) $(DIST) + +clean: + -del ..\..\..\..\..\temp\csr\ta_global.obj + -del ..\..\..\..\..\temp\csr\ta_retcode.obj + -del ..\..\..\..\..\temp\csr\ta_version.obj + -del $(TARGET) + -del ta_common_csr.tds + -del ../../../../../bin/*.map + -del ../../../../../bin/*._xe + -del ../../../../../bin/*.tds + -del ../../../../../bin/*.pdb + -del ../../../../../bin/*.pbo + -del ../../../../../bin/*.pbi + -del ../../../../../bin/*.pbt + -del ../../../../../temp/csr/*.pch + -del ../../../../../temp/csr/*.idb + -del ../../../../../temp/csr/ta_common_csr/*.pch + -del ../../../../../temp/csr/ta_common_csr/*.idb + -del ../../../../../temp/csr/ta_common_csr/*.obj + +####### Compile + +..\..\..\..\..\temp\csr\ta_global.obj: ..\..\..\..\..\src\ta_common\ta_global.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_global.obj ..\..\..\..\..\src\ta_common\ta_global.c + +..\..\..\..\..\temp\csr\ta_retcode.obj: ..\..\..\..\..\src\ta_common\ta_retcode.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_retcode.obj ..\..\..\..\..\src\ta_common\ta_retcode.c + +..\..\..\..\..\temp\csr\ta_version.obj: ..\..\..\..\..\src\ta_common\ta_version.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_version.obj ..\..\..\..\..\src\ta_common\ta_version.c + diff --git a/make/csr/win32/borland/ta_func/Makefile b/make/csr/win32/borland/ta_func/Makefile new file mode 100644 index 000000000..371c38a5d --- /dev/null +++ b/make/csr/win32/borland/ta_func/Makefile @@ -0,0 +1,1205 @@ +############################################################################# +# Makefile for building ta_func_csr +# Generated by tmake; +# Project: ta_func/ta_func +# Template: lib +############################################################################# + +!if !$d(BCB) +BCB = $(MAKEDIR)\.. +!endif + +####### Compiler, tools and options + +CC = bcc32 +CXX = bcc32 +CFLAGS = -x- -RT- -tWR -w -w-8004 -w-8071 -w-8057 -w-8080 -O2 -DTA_SINGLE_THREAD -DWIN32 +CXXFLAGS= -x- -RT- -tWR -w -w-8004 -w-8071 -w-8057 -w-8080 -O2 -DTA_SINGLE_THREAD -DWIN32 +INCPATH = -I"..\..\..\..\..\src\ta_common" -I"\n" -I"..\..\..\..\..\include" +LIB = tlib /C /P256 +MOC = moc +UIC = uic + +ZIP = zip -r -9 +DEF_FILE = +RES_FILE = + +####### Files + +HEADERS = +SOURCES = ..\..\..\..\..\src\ta_func\ta_utility.c \ + ..\..\..\..\..\src\ta_func\ta_ACOS.c \ + ..\..\..\..\..\src\ta_func\ta_AD.c \ + ..\..\..\..\..\src\ta_func\ta_ADD.c \ + ..\..\..\..\..\src\ta_func\ta_ADOSC.c \ + ..\..\..\..\..\src\ta_func\ta_ADX.c \ + ..\..\..\..\..\src\ta_func\ta_ADXR.c \ + ..\..\..\..\..\src\ta_func\ta_APO.c \ + ..\..\..\..\..\src\ta_func\ta_AROON.c \ + ..\..\..\..\..\src\ta_func\ta_AROONOSC.c \ + ..\..\..\..\..\src\ta_func\ta_ASIN.c \ + ..\..\..\..\..\src\ta_func\ta_ATAN.c \ + ..\..\..\..\..\src\ta_func\ta_ATR.c \ + ..\..\..\..\..\src\ta_func\ta_AVGPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_BBANDS.c \ + ..\..\..\..\..\src\ta_func\ta_BETA.c \ + ..\..\..\..\..\src\ta_func\ta_BOP.c \ + ..\..\..\..\..\src\ta_func\ta_CCI.c \ + ..\..\..\..\..\src\ta_func\ta_CDL2CROWS.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3BLACKCROWS.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3INSIDE.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3LINESTRIKE.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3OUTSIDE.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3STARSINSOUTH.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3WHITESOLDIERS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLABANDONEDBABY.c \ + ..\..\..\..\..\src\ta_func\ta_CDLADVANCEBLOCK.c \ + ..\..\..\..\..\src\ta_func\ta_CDLBELTHOLD.c \ + ..\..\..\..\..\src\ta_func\ta_CDLBREAKAWAY.c \ + ..\..\..\..\..\src\ta_func\ta_CDLCLOSINGMARUBOZU.c \ + ..\..\..\..\..\src\ta_func\ta_CDLCONCEALBABYSWALL.c \ + ..\..\..\..\..\src\ta_func\ta_CDLCOUNTERATTACK.c \ + ..\..\..\..\..\src\ta_func\ta_CDLDARKCLOUDCOVER.c \ + ..\..\..\..\..\src\ta_func\ta_CDLDOJI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLDOJISTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLDRAGONFLYDOJI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLENGULFING.c \ + ..\..\..\..\..\src\ta_func\ta_CDLEVENINGDOJISTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLEVENINGSTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLGAPSIDESIDEWHITE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLGRAVESTONEDOJI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHAMMER.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHANGINGMAN.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHARAMI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHARAMICROSS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHIGHWAVE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKEMOD.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHOMINGPIGEON.c \ + ..\..\..\..\..\src\ta_func\ta_CDLIDENTICAL3CROWS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLINNECK.c \ + ..\..\..\..\..\src\ta_func\ta_CDLINVERTEDHAMMER.c \ + ..\..\..\..\..\src\ta_func\ta_CDLKICKING.c \ + ..\..\..\..\..\src\ta_func\ta_CDLKICKINGBYLENGTH.c \ + ..\..\..\..\..\src\ta_func\ta_CDLLADDERBOTTOM.c \ + ..\..\..\..\..\src\ta_func\ta_CDLLONGLEGGEDDOJI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLLONGLINE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMARUBOZU.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMATCHINGLOW.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMATHOLD.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMORNINGDOJISTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMORNINGSTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLONNECK.c \ + ..\..\..\..\..\src\ta_func\ta_CDLPIERCING.c \ + ..\..\..\..\..\src\ta_func\ta_CDLRICKSHAWMAN.c \ + ..\..\..\..\..\src\ta_func\ta_CDLRISEFALL3METHODS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSEPARATINGLINES.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSHOOTINGSTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSHORTLINE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSPINNINGTOP.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSTALLEDPATTERN.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSTICKSANDWICH.c \ + ..\..\..\..\..\src\ta_func\ta_CDLTAKURI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLTASUKIGAP.c \ + ..\..\..\..\..\src\ta_func\ta_CDLTHRUSTING.c \ + ..\..\..\..\..\src\ta_func\ta_CDLTRISTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLUNIQUE3RIVER.c \ + ..\..\..\..\..\src\ta_func\ta_CDLUPSIDEGAP2CROWS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLXSIDEGAP3METHODS.c \ + ..\..\..\..\..\src\ta_func\ta_CEIL.c \ + ..\..\..\..\..\src\ta_func\ta_CMO.c \ + ..\..\..\..\..\src\ta_func\ta_CORREL.c \ + ..\..\..\..\..\src\ta_func\ta_COS.c \ + ..\..\..\..\..\src\ta_func\ta_COSH.c \ + ..\..\..\..\..\src\ta_func\ta_DEMA.c \ + ..\..\..\..\..\src\ta_func\ta_DIV.c \ + ..\..\..\..\..\src\ta_func\ta_DX.c \ + ..\..\..\..\..\src\ta_func\ta_EMA.c \ + ..\..\..\..\..\src\ta_func\ta_EXP.c \ + ..\..\..\..\..\src\ta_func\ta_FLOOR.c \ + ..\..\..\..\..\src\ta_func\ta_HT_DCPERIOD.c \ + ..\..\..\..\..\src\ta_func\ta_HT_DCPHASE.c \ + ..\..\..\..\..\src\ta_func\ta_HT_PHASOR.c \ + ..\..\..\..\..\src\ta_func\ta_HT_SINE.c \ + ..\..\..\..\..\src\ta_func\ta_HT_TRENDLINE.c \ + ..\..\..\..\..\src\ta_func\ta_HT_TRENDMODE.c \ + ..\..\..\..\..\src\ta_func\ta_KAMA.c \ + ..\..\..\..\..\src\ta_func\ta_LINEARREG.c \ + ..\..\..\..\..\src\ta_func\ta_LINEARREG_ANGLE.c \ + ..\..\..\..\..\src\ta_func\ta_LINEARREG_INTERCEPT.c \ + ..\..\..\..\..\src\ta_func\ta_LINEARREG_SLOPE.c \ + ..\..\..\..\..\src\ta_func\ta_LN.c \ + ..\..\..\..\..\src\ta_func\ta_LOG10.c \ + ..\..\..\..\..\src\ta_func\ta_MA.c \ + ..\..\..\..\..\src\ta_func\ta_MACD.c \ + ..\..\..\..\..\src\ta_func\ta_MACDEXT.c \ + ..\..\..\..\..\src\ta_func\ta_MACDFIX.c \ + ..\..\..\..\..\src\ta_func\ta_MAMA.c \ + ..\..\..\..\..\src\ta_func\ta_MAVP.c \ + ..\..\..\..\..\src\ta_func\ta_MAX.c \ + ..\..\..\..\..\src\ta_func\ta_MAXINDEX.c \ + ..\..\..\..\..\src\ta_func\ta_MEDPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_MFI.c \ + ..\..\..\..\..\src\ta_func\ta_MIDPOINT.c \ + ..\..\..\..\..\src\ta_func\ta_MIDPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_MIN.c \ + ..\..\..\..\..\src\ta_func\ta_MININDEX.c \ + ..\..\..\..\..\src\ta_func\ta_MINMAX.c \ + ..\..\..\..\..\src\ta_func\ta_MINMAXINDEX.c \ + ..\..\..\..\..\src\ta_func\ta_MINUS_DI.c \ + ..\..\..\..\..\src\ta_func\ta_MINUS_DM.c \ + ..\..\..\..\..\src\ta_func\ta_MOM.c \ + ..\..\..\..\..\src\ta_func\ta_MULT.c \ + ..\..\..\..\..\src\ta_func\ta_NATR.c \ + ..\..\..\..\..\src\ta_func\ta_OBV.c \ + ..\..\..\..\..\src\ta_func\ta_PLUS_DI.c \ + ..\..\..\..\..\src\ta_func\ta_PLUS_DM.c \ + ..\..\..\..\..\src\ta_func\ta_PPO.c \ + ..\..\..\..\..\src\ta_func\ta_ROC.c \ + ..\..\..\..\..\src\ta_func\ta_ROCP.c \ + ..\..\..\..\..\src\ta_func\ta_ROCR.c \ + ..\..\..\..\..\src\ta_func\ta_ROCR100.c \ + ..\..\..\..\..\src\ta_func\ta_RSI.c \ + ..\..\..\..\..\src\ta_func\ta_SAR.c \ + ..\..\..\..\..\src\ta_func\ta_SAREXT.c \ + ..\..\..\..\..\src\ta_func\ta_SIN.c \ + ..\..\..\..\..\src\ta_func\ta_SINH.c \ + ..\..\..\..\..\src\ta_func\ta_SMA.c \ + ..\..\..\..\..\src\ta_func\ta_SQRT.c \ + ..\..\..\..\..\src\ta_func\ta_STDDEV.c \ + ..\..\..\..\..\src\ta_func\ta_STOCH.c \ + ..\..\..\..\..\src\ta_func\ta_STOCHF.c \ + ..\..\..\..\..\src\ta_func\ta_STOCHRSI.c \ + ..\..\..\..\..\src\ta_func\ta_SUB.c \ + ..\..\..\..\..\src\ta_func\ta_SUM.c \ + ..\..\..\..\..\src\ta_func\ta_T3.c \ + ..\..\..\..\..\src\ta_func\ta_TAN.c \ + ..\..\..\..\..\src\ta_func\ta_TANH.c \ + ..\..\..\..\..\src\ta_func\ta_TEMA.c \ + ..\..\..\..\..\src\ta_func\ta_TRANGE.c \ + ..\..\..\..\..\src\ta_func\ta_TRIMA.c \ + ..\..\..\..\..\src\ta_func\ta_TRIX.c \ + ..\..\..\..\..\src\ta_func\ta_TSF.c \ + ..\..\..\..\..\src\ta_func\ta_TYPPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_ULTOSC.c \ + ..\..\..\..\..\src\ta_func\ta_VAR.c \ + ..\..\..\..\..\src\ta_func\ta_WCLPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_WILLR.c \ + ..\..\..\..\..\src\ta_func\ta_WMA.c +OBJECTS = ..\..\..\..\..\temp\csr\ta_utility.obj \ + ..\..\..\..\..\temp\csr\ta_ACOS.obj \ + ..\..\..\..\..\temp\csr\ta_AD.obj \ + ..\..\..\..\..\temp\csr\ta_ADD.obj \ + ..\..\..\..\..\temp\csr\ta_ADOSC.obj \ + ..\..\..\..\..\temp\csr\ta_ADX.obj \ + ..\..\..\..\..\temp\csr\ta_ADXR.obj \ + ..\..\..\..\..\temp\csr\ta_APO.obj \ + ..\..\..\..\..\temp\csr\ta_AROON.obj \ + ..\..\..\..\..\temp\csr\ta_AROONOSC.obj \ + ..\..\..\..\..\temp\csr\ta_ASIN.obj \ + ..\..\..\..\..\temp\csr\ta_ATAN.obj \ + ..\..\..\..\..\temp\csr\ta_ATR.obj \ + ..\..\..\..\..\temp\csr\ta_AVGPRICE.obj \ + ..\..\..\..\..\temp\csr\ta_BBANDS.obj \ + ..\..\..\..\..\temp\csr\ta_BETA.obj \ + ..\..\..\..\..\temp\csr\ta_BOP.obj \ + ..\..\..\..\..\temp\csr\ta_CCI.obj \ + ..\..\..\..\..\temp\csr\ta_CDL2CROWS.obj \ + ..\..\..\..\..\temp\csr\ta_CDL3BLACKCROWS.obj \ + ..\..\..\..\..\temp\csr\ta_CDL3INSIDE.obj \ + ..\..\..\..\..\temp\csr\ta_CDL3LINESTRIKE.obj \ + ..\..\..\..\..\temp\csr\ta_CDL3OUTSIDE.obj \ + ..\..\..\..\..\temp\csr\ta_CDL3STARSINSOUTH.obj \ + ..\..\..\..\..\temp\csr\ta_CDL3WHITESOLDIERS.obj \ + ..\..\..\..\..\temp\csr\ta_CDLABANDONEDBABY.obj \ + ..\..\..\..\..\temp\csr\ta_CDLADVANCEBLOCK.obj \ + ..\..\..\..\..\temp\csr\ta_CDLBELTHOLD.obj \ + ..\..\..\..\..\temp\csr\ta_CDLBREAKAWAY.obj \ + ..\..\..\..\..\temp\csr\ta_CDLCLOSINGMARUBOZU.obj \ + ..\..\..\..\..\temp\csr\ta_CDLCONCEALBABYSWALL.obj \ + ..\..\..\..\..\temp\csr\ta_CDLCOUNTERATTACK.obj \ + ..\..\..\..\..\temp\csr\ta_CDLDARKCLOUDCOVER.obj \ + ..\..\..\..\..\temp\csr\ta_CDLDOJI.obj \ + ..\..\..\..\..\temp\csr\ta_CDLDOJISTAR.obj \ + ..\..\..\..\..\temp\csr\ta_CDLDRAGONFLYDOJI.obj \ + ..\..\..\..\..\temp\csr\ta_CDLENGULFING.obj \ + ..\..\..\..\..\temp\csr\ta_CDLEVENINGDOJISTAR.obj \ + ..\..\..\..\..\temp\csr\ta_CDLEVENINGSTAR.obj \ + ..\..\..\..\..\temp\csr\ta_CDLGAPSIDESIDEWHITE.obj \ + ..\..\..\..\..\temp\csr\ta_CDLGRAVESTONEDOJI.obj \ + ..\..\..\..\..\temp\csr\ta_CDLHAMMER.obj \ + ..\..\..\..\..\temp\csr\ta_CDLHANGINGMAN.obj \ + ..\..\..\..\..\temp\csr\ta_CDLHARAMI.obj \ + ..\..\..\..\..\temp\csr\ta_CDLHARAMICROSS.obj \ + ..\..\..\..\..\temp\csr\ta_CDLHIGHWAVE.obj \ + ..\..\..\..\..\temp\csr\ta_CDLHIKKAKE.obj \ + ..\..\..\..\..\temp\csr\ta_CDLHIKKAKEMOD.obj \ + ..\..\..\..\..\temp\csr\ta_CDLHOMINGPIGEON.obj \ + ..\..\..\..\..\temp\csr\ta_CDLIDENTICAL3CROWS.obj \ + ..\..\..\..\..\temp\csr\ta_CDLINNECK.obj \ + ..\..\..\..\..\temp\csr\ta_CDLINVERTEDHAMMER.obj \ + ..\..\..\..\..\temp\csr\ta_CDLKICKING.obj \ + ..\..\..\..\..\temp\csr\ta_CDLKICKINGBYLENGTH.obj \ + ..\..\..\..\..\temp\csr\ta_CDLLADDERBOTTOM.obj \ + ..\..\..\..\..\temp\csr\ta_CDLLONGLEGGEDDOJI.obj \ + ..\..\..\..\..\temp\csr\ta_CDLLONGLINE.obj \ + ..\..\..\..\..\temp\csr\ta_CDLMARUBOZU.obj \ + ..\..\..\..\..\temp\csr\ta_CDLMATCHINGLOW.obj \ + ..\..\..\..\..\temp\csr\ta_CDLMATHOLD.obj \ + ..\..\..\..\..\temp\csr\ta_CDLMORNINGDOJISTAR.obj \ + ..\..\..\..\..\temp\csr\ta_CDLMORNINGSTAR.obj \ + ..\..\..\..\..\temp\csr\ta_CDLONNECK.obj \ + ..\..\..\..\..\temp\csr\ta_CDLPIERCING.obj \ + ..\..\..\..\..\temp\csr\ta_CDLRICKSHAWMAN.obj \ + ..\..\..\..\..\temp\csr\ta_CDLRISEFALL3METHODS.obj \ + ..\..\..\..\..\temp\csr\ta_CDLSEPARATINGLINES.obj \ + ..\..\..\..\..\temp\csr\ta_CDLSHOOTINGSTAR.obj \ + ..\..\..\..\..\temp\csr\ta_CDLSHORTLINE.obj \ + ..\..\..\..\..\temp\csr\ta_CDLSPINNINGTOP.obj \ + ..\..\..\..\..\temp\csr\ta_CDLSTALLEDPATTERN.obj \ + ..\..\..\..\..\temp\csr\ta_CDLSTICKSANDWICH.obj \ + ..\..\..\..\..\temp\csr\ta_CDLTAKURI.obj \ + ..\..\..\..\..\temp\csr\ta_CDLTASUKIGAP.obj \ + ..\..\..\..\..\temp\csr\ta_CDLTHRUSTING.obj \ + ..\..\..\..\..\temp\csr\ta_CDLTRISTAR.obj \ + ..\..\..\..\..\temp\csr\ta_CDLUNIQUE3RIVER.obj \ + ..\..\..\..\..\temp\csr\ta_CDLUPSIDEGAP2CROWS.obj \ + ..\..\..\..\..\temp\csr\ta_CDLXSIDEGAP3METHODS.obj \ + ..\..\..\..\..\temp\csr\ta_CEIL.obj \ + ..\..\..\..\..\temp\csr\ta_CMO.obj \ + ..\..\..\..\..\temp\csr\ta_CORREL.obj \ + ..\..\..\..\..\temp\csr\ta_COS.obj \ + ..\..\..\..\..\temp\csr\ta_COSH.obj \ + ..\..\..\..\..\temp\csr\ta_DEMA.obj \ + ..\..\..\..\..\temp\csr\ta_DIV.obj \ + ..\..\..\..\..\temp\csr\ta_DX.obj \ + ..\..\..\..\..\temp\csr\ta_EMA.obj \ + ..\..\..\..\..\temp\csr\ta_EXP.obj \ + ..\..\..\..\..\temp\csr\ta_FLOOR.obj \ + ..\..\..\..\..\temp\csr\ta_HT_DCPERIOD.obj \ + ..\..\..\..\..\temp\csr\ta_HT_DCPHASE.obj \ + ..\..\..\..\..\temp\csr\ta_HT_PHASOR.obj \ + ..\..\..\..\..\temp\csr\ta_HT_SINE.obj \ + ..\..\..\..\..\temp\csr\ta_HT_TRENDLINE.obj \ + ..\..\..\..\..\temp\csr\ta_HT_TRENDMODE.obj \ + ..\..\..\..\..\temp\csr\ta_KAMA.obj \ + ..\..\..\..\..\temp\csr\ta_LINEARREG.obj \ + ..\..\..\..\..\temp\csr\ta_LINEARREG_ANGLE.obj \ + ..\..\..\..\..\temp\csr\ta_LINEARREG_INTERCEPT.obj \ + ..\..\..\..\..\temp\csr\ta_LINEARREG_SLOPE.obj \ + ..\..\..\..\..\temp\csr\ta_LN.obj \ + ..\..\..\..\..\temp\csr\ta_LOG10.obj \ + ..\..\..\..\..\temp\csr\ta_MA.obj \ + ..\..\..\..\..\temp\csr\ta_MACD.obj \ + ..\..\..\..\..\temp\csr\ta_MACDEXT.obj \ + ..\..\..\..\..\temp\csr\ta_MACDFIX.obj \ + ..\..\..\..\..\temp\csr\ta_MAMA.obj \ + ..\..\..\..\..\temp\csr\ta_MAVP.obj \ + ..\..\..\..\..\temp\csr\ta_MAX.obj \ + ..\..\..\..\..\temp\csr\ta_MAXINDEX.obj \ + ..\..\..\..\..\temp\csr\ta_MEDPRICE.obj \ + ..\..\..\..\..\temp\csr\ta_MFI.obj \ + ..\..\..\..\..\temp\csr\ta_MIDPOINT.obj \ + ..\..\..\..\..\temp\csr\ta_MIDPRICE.obj \ + ..\..\..\..\..\temp\csr\ta_MIN.obj \ + ..\..\..\..\..\temp\csr\ta_MININDEX.obj \ + ..\..\..\..\..\temp\csr\ta_MINMAX.obj \ + ..\..\..\..\..\temp\csr\ta_MINMAXINDEX.obj \ + ..\..\..\..\..\temp\csr\ta_MINUS_DI.obj \ + ..\..\..\..\..\temp\csr\ta_MINUS_DM.obj \ + ..\..\..\..\..\temp\csr\ta_MOM.obj \ + ..\..\..\..\..\temp\csr\ta_MULT.obj \ + ..\..\..\..\..\temp\csr\ta_NATR.obj \ + ..\..\..\..\..\temp\csr\ta_OBV.obj \ + ..\..\..\..\..\temp\csr\ta_PLUS_DI.obj \ + ..\..\..\..\..\temp\csr\ta_PLUS_DM.obj \ + ..\..\..\..\..\temp\csr\ta_PPO.obj \ + ..\..\..\..\..\temp\csr\ta_ROC.obj \ + ..\..\..\..\..\temp\csr\ta_ROCP.obj \ + ..\..\..\..\..\temp\csr\ta_ROCR.obj \ + ..\..\..\..\..\temp\csr\ta_ROCR100.obj \ + ..\..\..\..\..\temp\csr\ta_RSI.obj \ + ..\..\..\..\..\temp\csr\ta_SAR.obj \ + ..\..\..\..\..\temp\csr\ta_SAREXT.obj \ + ..\..\..\..\..\temp\csr\ta_SIN.obj \ + ..\..\..\..\..\temp\csr\ta_SINH.obj \ + ..\..\..\..\..\temp\csr\ta_SMA.obj \ + ..\..\..\..\..\temp\csr\ta_SQRT.obj \ + ..\..\..\..\..\temp\csr\ta_STDDEV.obj \ + ..\..\..\..\..\temp\csr\ta_STOCH.obj \ + ..\..\..\..\..\temp\csr\ta_STOCHF.obj \ + ..\..\..\..\..\temp\csr\ta_STOCHRSI.obj \ + ..\..\..\..\..\temp\csr\ta_SUB.obj \ + ..\..\..\..\..\temp\csr\ta_SUM.obj \ + ..\..\..\..\..\temp\csr\ta_T3.obj \ + ..\..\..\..\..\temp\csr\ta_TAN.obj \ + ..\..\..\..\..\temp\csr\ta_TANH.obj \ + ..\..\..\..\..\temp\csr\ta_TEMA.obj \ + ..\..\..\..\..\temp\csr\ta_TRANGE.obj \ + ..\..\..\..\..\temp\csr\ta_TRIMA.obj \ + ..\..\..\..\..\temp\csr\ta_TRIX.obj \ + ..\..\..\..\..\temp\csr\ta_TSF.obj \ + ..\..\..\..\..\temp\csr\ta_TYPPRICE.obj \ + ..\..\..\..\..\temp\csr\ta_ULTOSC.obj \ + ..\..\..\..\..\temp\csr\ta_VAR.obj \ + ..\..\..\..\..\temp\csr\ta_WCLPRICE.obj \ + ..\..\..\..\..\temp\csr\ta_WILLR.obj \ + ..\..\..\..\..\temp\csr\ta_WMA.obj +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ..\..\..\..\..\lib\ta_func_csr.lib +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .c + +.cpp.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.cxx.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.cc.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.c.obj: + $(CC) -c $(CFLAGS) $(INCPATH) -o$@ $< + +####### Build rules + +all: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + -del $(TARGET) + $(LIB) $(TARGET) @&&| ++..\..\..\..\..\temp\csr\ta_utility.obj \ ++..\..\..\..\..\temp\csr\ta_ACOS.obj \ ++..\..\..\..\..\temp\csr\ta_AD.obj \ ++..\..\..\..\..\temp\csr\ta_ADD.obj \ ++..\..\..\..\..\temp\csr\ta_ADOSC.obj \ ++..\..\..\..\..\temp\csr\ta_ADX.obj \ ++..\..\..\..\..\temp\csr\ta_ADXR.obj \ ++..\..\..\..\..\temp\csr\ta_APO.obj \ ++..\..\..\..\..\temp\csr\ta_AROON.obj \ ++..\..\..\..\..\temp\csr\ta_AROONOSC.obj \ ++..\..\..\..\..\temp\csr\ta_ASIN.obj \ ++..\..\..\..\..\temp\csr\ta_ATAN.obj \ ++..\..\..\..\..\temp\csr\ta_ATR.obj \ ++..\..\..\..\..\temp\csr\ta_AVGPRICE.obj \ ++..\..\..\..\..\temp\csr\ta_BBANDS.obj \ ++..\..\..\..\..\temp\csr\ta_BETA.obj \ ++..\..\..\..\..\temp\csr\ta_BOP.obj \ ++..\..\..\..\..\temp\csr\ta_CCI.obj \ ++..\..\..\..\..\temp\csr\ta_CDL2CROWS.obj \ ++..\..\..\..\..\temp\csr\ta_CDL3BLACKCROWS.obj \ ++..\..\..\..\..\temp\csr\ta_CDL3INSIDE.obj \ ++..\..\..\..\..\temp\csr\ta_CDL3LINESTRIKE.obj \ ++..\..\..\..\..\temp\csr\ta_CDL3OUTSIDE.obj \ ++..\..\..\..\..\temp\csr\ta_CDL3STARSINSOUTH.obj \ ++..\..\..\..\..\temp\csr\ta_CDL3WHITESOLDIERS.obj \ ++..\..\..\..\..\temp\csr\ta_CDLABANDONEDBABY.obj \ ++..\..\..\..\..\temp\csr\ta_CDLADVANCEBLOCK.obj \ ++..\..\..\..\..\temp\csr\ta_CDLBELTHOLD.obj \ ++..\..\..\..\..\temp\csr\ta_CDLBREAKAWAY.obj \ ++..\..\..\..\..\temp\csr\ta_CDLCLOSINGMARUBOZU.obj \ ++..\..\..\..\..\temp\csr\ta_CDLCONCEALBABYSWALL.obj \ ++..\..\..\..\..\temp\csr\ta_CDLCOUNTERATTACK.obj \ ++..\..\..\..\..\temp\csr\ta_CDLDARKCLOUDCOVER.obj \ ++..\..\..\..\..\temp\csr\ta_CDLDOJI.obj \ ++..\..\..\..\..\temp\csr\ta_CDLDOJISTAR.obj \ ++..\..\..\..\..\temp\csr\ta_CDLDRAGONFLYDOJI.obj \ ++..\..\..\..\..\temp\csr\ta_CDLENGULFING.obj \ ++..\..\..\..\..\temp\csr\ta_CDLEVENINGDOJISTAR.obj \ ++..\..\..\..\..\temp\csr\ta_CDLEVENINGSTAR.obj \ ++..\..\..\..\..\temp\csr\ta_CDLGAPSIDESIDEWHITE.obj \ ++..\..\..\..\..\temp\csr\ta_CDLGRAVESTONEDOJI.obj \ ++..\..\..\..\..\temp\csr\ta_CDLHAMMER.obj \ ++..\..\..\..\..\temp\csr\ta_CDLHANGINGMAN.obj \ ++..\..\..\..\..\temp\csr\ta_CDLHARAMI.obj \ ++..\..\..\..\..\temp\csr\ta_CDLHARAMICROSS.obj \ ++..\..\..\..\..\temp\csr\ta_CDLHIGHWAVE.obj \ ++..\..\..\..\..\temp\csr\ta_CDLHIKKAKE.obj \ ++..\..\..\..\..\temp\csr\ta_CDLHIKKAKEMOD.obj \ ++..\..\..\..\..\temp\csr\ta_CDLHOMINGPIGEON.obj \ ++..\..\..\..\..\temp\csr\ta_CDLIDENTICAL3CROWS.obj \ ++..\..\..\..\..\temp\csr\ta_CDLINNECK.obj \ ++..\..\..\..\..\temp\csr\ta_CDLINVERTEDHAMMER.obj \ ++..\..\..\..\..\temp\csr\ta_CDLKICKING.obj \ ++..\..\..\..\..\temp\csr\ta_CDLKICKINGBYLENGTH.obj \ ++..\..\..\..\..\temp\csr\ta_CDLLADDERBOTTOM.obj \ ++..\..\..\..\..\temp\csr\ta_CDLLONGLEGGEDDOJI.obj \ ++..\..\..\..\..\temp\csr\ta_CDLLONGLINE.obj \ ++..\..\..\..\..\temp\csr\ta_CDLMARUBOZU.obj \ ++..\..\..\..\..\temp\csr\ta_CDLMATCHINGLOW.obj \ ++..\..\..\..\..\temp\csr\ta_CDLMATHOLD.obj \ ++..\..\..\..\..\temp\csr\ta_CDLMORNINGDOJISTAR.obj \ ++..\..\..\..\..\temp\csr\ta_CDLMORNINGSTAR.obj \ ++..\..\..\..\..\temp\csr\ta_CDLONNECK.obj \ ++..\..\..\..\..\temp\csr\ta_CDLPIERCING.obj \ ++..\..\..\..\..\temp\csr\ta_CDLRICKSHAWMAN.obj \ ++..\..\..\..\..\temp\csr\ta_CDLRISEFALL3METHODS.obj \ ++..\..\..\..\..\temp\csr\ta_CDLSEPARATINGLINES.obj \ ++..\..\..\..\..\temp\csr\ta_CDLSHOOTINGSTAR.obj \ ++..\..\..\..\..\temp\csr\ta_CDLSHORTLINE.obj \ ++..\..\..\..\..\temp\csr\ta_CDLSPINNINGTOP.obj \ ++..\..\..\..\..\temp\csr\ta_CDLSTALLEDPATTERN.obj \ ++..\..\..\..\..\temp\csr\ta_CDLSTICKSANDWICH.obj \ ++..\..\..\..\..\temp\csr\ta_CDLTAKURI.obj \ ++..\..\..\..\..\temp\csr\ta_CDLTASUKIGAP.obj \ ++..\..\..\..\..\temp\csr\ta_CDLTHRUSTING.obj \ ++..\..\..\..\..\temp\csr\ta_CDLTRISTAR.obj \ ++..\..\..\..\..\temp\csr\ta_CDLUNIQUE3RIVER.obj \ ++..\..\..\..\..\temp\csr\ta_CDLUPSIDEGAP2CROWS.obj \ ++..\..\..\..\..\temp\csr\ta_CDLXSIDEGAP3METHODS.obj \ ++..\..\..\..\..\temp\csr\ta_CEIL.obj \ ++..\..\..\..\..\temp\csr\ta_CMO.obj \ ++..\..\..\..\..\temp\csr\ta_CORREL.obj \ ++..\..\..\..\..\temp\csr\ta_COS.obj \ ++..\..\..\..\..\temp\csr\ta_COSH.obj \ ++..\..\..\..\..\temp\csr\ta_DEMA.obj \ ++..\..\..\..\..\temp\csr\ta_DIV.obj \ ++..\..\..\..\..\temp\csr\ta_DX.obj \ ++..\..\..\..\..\temp\csr\ta_EMA.obj \ ++..\..\..\..\..\temp\csr\ta_EXP.obj \ ++..\..\..\..\..\temp\csr\ta_FLOOR.obj \ ++..\..\..\..\..\temp\csr\ta_HT_DCPERIOD.obj \ ++..\..\..\..\..\temp\csr\ta_HT_DCPHASE.obj \ ++..\..\..\..\..\temp\csr\ta_HT_PHASOR.obj \ ++..\..\..\..\..\temp\csr\ta_HT_SINE.obj \ ++..\..\..\..\..\temp\csr\ta_HT_TRENDLINE.obj \ ++..\..\..\..\..\temp\csr\ta_HT_TRENDMODE.obj \ ++..\..\..\..\..\temp\csr\ta_KAMA.obj \ ++..\..\..\..\..\temp\csr\ta_LINEARREG.obj \ ++..\..\..\..\..\temp\csr\ta_LINEARREG_ANGLE.obj \ ++..\..\..\..\..\temp\csr\ta_LINEARREG_INTERCEPT.obj \ ++..\..\..\..\..\temp\csr\ta_LINEARREG_SLOPE.obj \ ++..\..\..\..\..\temp\csr\ta_LN.obj \ ++..\..\..\..\..\temp\csr\ta_LOG10.obj \ ++..\..\..\..\..\temp\csr\ta_MA.obj \ ++..\..\..\..\..\temp\csr\ta_MACD.obj \ ++..\..\..\..\..\temp\csr\ta_MACDEXT.obj \ ++..\..\..\..\..\temp\csr\ta_MACDFIX.obj \ ++..\..\..\..\..\temp\csr\ta_MAMA.obj \ ++..\..\..\..\..\temp\csr\ta_MAVP.obj \ ++..\..\..\..\..\temp\csr\ta_MAX.obj \ ++..\..\..\..\..\temp\csr\ta_MAXINDEX.obj \ ++..\..\..\..\..\temp\csr\ta_MEDPRICE.obj \ ++..\..\..\..\..\temp\csr\ta_MFI.obj \ ++..\..\..\..\..\temp\csr\ta_MIDPOINT.obj \ ++..\..\..\..\..\temp\csr\ta_MIDPRICE.obj \ ++..\..\..\..\..\temp\csr\ta_MIN.obj \ ++..\..\..\..\..\temp\csr\ta_MININDEX.obj \ ++..\..\..\..\..\temp\csr\ta_MINMAX.obj \ ++..\..\..\..\..\temp\csr\ta_MINMAXINDEX.obj \ ++..\..\..\..\..\temp\csr\ta_MINUS_DI.obj \ ++..\..\..\..\..\temp\csr\ta_MINUS_DM.obj \ ++..\..\..\..\..\temp\csr\ta_MOM.obj \ ++..\..\..\..\..\temp\csr\ta_MULT.obj \ ++..\..\..\..\..\temp\csr\ta_NATR.obj \ ++..\..\..\..\..\temp\csr\ta_OBV.obj \ ++..\..\..\..\..\temp\csr\ta_PLUS_DI.obj \ ++..\..\..\..\..\temp\csr\ta_PLUS_DM.obj \ ++..\..\..\..\..\temp\csr\ta_PPO.obj \ ++..\..\..\..\..\temp\csr\ta_ROC.obj \ ++..\..\..\..\..\temp\csr\ta_ROCP.obj \ ++..\..\..\..\..\temp\csr\ta_ROCR.obj \ ++..\..\..\..\..\temp\csr\ta_ROCR100.obj \ ++..\..\..\..\..\temp\csr\ta_RSI.obj \ ++..\..\..\..\..\temp\csr\ta_SAR.obj \ ++..\..\..\..\..\temp\csr\ta_SAREXT.obj \ ++..\..\..\..\..\temp\csr\ta_SIN.obj \ ++..\..\..\..\..\temp\csr\ta_SINH.obj \ ++..\..\..\..\..\temp\csr\ta_SMA.obj \ ++..\..\..\..\..\temp\csr\ta_SQRT.obj \ ++..\..\..\..\..\temp\csr\ta_STDDEV.obj \ ++..\..\..\..\..\temp\csr\ta_STOCH.obj \ ++..\..\..\..\..\temp\csr\ta_STOCHF.obj \ ++..\..\..\..\..\temp\csr\ta_STOCHRSI.obj \ ++..\..\..\..\..\temp\csr\ta_SUB.obj \ ++..\..\..\..\..\temp\csr\ta_SUM.obj \ ++..\..\..\..\..\temp\csr\ta_T3.obj \ ++..\..\..\..\..\temp\csr\ta_TAN.obj \ ++..\..\..\..\..\temp\csr\ta_TANH.obj \ ++..\..\..\..\..\temp\csr\ta_TEMA.obj \ ++..\..\..\..\..\temp\csr\ta_TRANGE.obj \ ++..\..\..\..\..\temp\csr\ta_TRIMA.obj \ ++..\..\..\..\..\temp\csr\ta_TRIX.obj \ ++..\..\..\..\..\temp\csr\ta_TSF.obj \ ++..\..\..\..\..\temp\csr\ta_TYPPRICE.obj \ ++..\..\..\..\..\temp\csr\ta_ULTOSC.obj \ ++..\..\..\..\..\temp\csr\ta_VAR.obj \ ++..\..\..\..\..\temp\csr\ta_WCLPRICE.obj \ ++..\..\..\..\..\temp\csr\ta_WILLR.obj \ ++..\..\..\..\..\temp\csr\ta_WMA.obj \ ++ +| + +moc: $(SRCMOC) + +tmake: ../csr/win32/borland/ta_func/Makefile + +../csr/win32/borland/ta_func/Makefile: ta_func/ta_func.pro + tmake ta_func/ta_func.pro -o ../csr/win32/borland/ta_func/Makefile + +dist: + $(ZIP) ta_func/ta_func.zip ta_func/ta_func.pro $(SOURCES) $(HEADERS) $(DIST) + +clean: + -del ..\..\..\..\..\temp\csr\ta_utility.obj + -del ..\..\..\..\..\temp\csr\ta_ACOS.obj + -del ..\..\..\..\..\temp\csr\ta_AD.obj + -del ..\..\..\..\..\temp\csr\ta_ADD.obj + -del ..\..\..\..\..\temp\csr\ta_ADOSC.obj + -del ..\..\..\..\..\temp\csr\ta_ADX.obj + -del ..\..\..\..\..\temp\csr\ta_ADXR.obj + -del ..\..\..\..\..\temp\csr\ta_APO.obj + -del ..\..\..\..\..\temp\csr\ta_AROON.obj + -del ..\..\..\..\..\temp\csr\ta_AROONOSC.obj + -del ..\..\..\..\..\temp\csr\ta_ASIN.obj + -del ..\..\..\..\..\temp\csr\ta_ATAN.obj + -del ..\..\..\..\..\temp\csr\ta_ATR.obj + -del ..\..\..\..\..\temp\csr\ta_AVGPRICE.obj + -del ..\..\..\..\..\temp\csr\ta_BBANDS.obj + -del ..\..\..\..\..\temp\csr\ta_BETA.obj + -del ..\..\..\..\..\temp\csr\ta_BOP.obj + -del ..\..\..\..\..\temp\csr\ta_CCI.obj + -del ..\..\..\..\..\temp\csr\ta_CDL2CROWS.obj + -del ..\..\..\..\..\temp\csr\ta_CDL3BLACKCROWS.obj + -del ..\..\..\..\..\temp\csr\ta_CDL3INSIDE.obj + -del ..\..\..\..\..\temp\csr\ta_CDL3LINESTRIKE.obj + -del ..\..\..\..\..\temp\csr\ta_CDL3OUTSIDE.obj + -del ..\..\..\..\..\temp\csr\ta_CDL3STARSINSOUTH.obj + -del ..\..\..\..\..\temp\csr\ta_CDL3WHITESOLDIERS.obj + -del ..\..\..\..\..\temp\csr\ta_CDLABANDONEDBABY.obj + -del ..\..\..\..\..\temp\csr\ta_CDLADVANCEBLOCK.obj + -del ..\..\..\..\..\temp\csr\ta_CDLBELTHOLD.obj + -del ..\..\..\..\..\temp\csr\ta_CDLBREAKAWAY.obj + -del ..\..\..\..\..\temp\csr\ta_CDLCLOSINGMARUBOZU.obj + -del ..\..\..\..\..\temp\csr\ta_CDLCONCEALBABYSWALL.obj + -del ..\..\..\..\..\temp\csr\ta_CDLCOUNTERATTACK.obj + -del ..\..\..\..\..\temp\csr\ta_CDLDARKCLOUDCOVER.obj + -del ..\..\..\..\..\temp\csr\ta_CDLDOJI.obj + -del ..\..\..\..\..\temp\csr\ta_CDLDOJISTAR.obj + -del ..\..\..\..\..\temp\csr\ta_CDLDRAGONFLYDOJI.obj + -del ..\..\..\..\..\temp\csr\ta_CDLENGULFING.obj + -del ..\..\..\..\..\temp\csr\ta_CDLEVENINGDOJISTAR.obj + -del ..\..\..\..\..\temp\csr\ta_CDLEVENINGSTAR.obj + -del ..\..\..\..\..\temp\csr\ta_CDLGAPSIDESIDEWHITE.obj + -del ..\..\..\..\..\temp\csr\ta_CDLGRAVESTONEDOJI.obj + -del ..\..\..\..\..\temp\csr\ta_CDLHAMMER.obj + -del ..\..\..\..\..\temp\csr\ta_CDLHANGINGMAN.obj + -del ..\..\..\..\..\temp\csr\ta_CDLHARAMI.obj + -del ..\..\..\..\..\temp\csr\ta_CDLHARAMICROSS.obj + -del ..\..\..\..\..\temp\csr\ta_CDLHIGHWAVE.obj + -del ..\..\..\..\..\temp\csr\ta_CDLHIKKAKE.obj + -del ..\..\..\..\..\temp\csr\ta_CDLHIKKAKEMOD.obj + -del ..\..\..\..\..\temp\csr\ta_CDLHOMINGPIGEON.obj + -del ..\..\..\..\..\temp\csr\ta_CDLIDENTICAL3CROWS.obj + -del ..\..\..\..\..\temp\csr\ta_CDLINNECK.obj + -del ..\..\..\..\..\temp\csr\ta_CDLINVERTEDHAMMER.obj + -del ..\..\..\..\..\temp\csr\ta_CDLKICKING.obj + -del ..\..\..\..\..\temp\csr\ta_CDLKICKINGBYLENGTH.obj + -del ..\..\..\..\..\temp\csr\ta_CDLLADDERBOTTOM.obj + -del ..\..\..\..\..\temp\csr\ta_CDLLONGLEGGEDDOJI.obj + -del ..\..\..\..\..\temp\csr\ta_CDLLONGLINE.obj + -del ..\..\..\..\..\temp\csr\ta_CDLMARUBOZU.obj + -del ..\..\..\..\..\temp\csr\ta_CDLMATCHINGLOW.obj + -del ..\..\..\..\..\temp\csr\ta_CDLMATHOLD.obj + -del ..\..\..\..\..\temp\csr\ta_CDLMORNINGDOJISTAR.obj + -del ..\..\..\..\..\temp\csr\ta_CDLMORNINGSTAR.obj + -del ..\..\..\..\..\temp\csr\ta_CDLONNECK.obj + -del ..\..\..\..\..\temp\csr\ta_CDLPIERCING.obj + -del ..\..\..\..\..\temp\csr\ta_CDLRICKSHAWMAN.obj + -del ..\..\..\..\..\temp\csr\ta_CDLRISEFALL3METHODS.obj + -del ..\..\..\..\..\temp\csr\ta_CDLSEPARATINGLINES.obj + -del ..\..\..\..\..\temp\csr\ta_CDLSHOOTINGSTAR.obj + -del ..\..\..\..\..\temp\csr\ta_CDLSHORTLINE.obj + -del ..\..\..\..\..\temp\csr\ta_CDLSPINNINGTOP.obj + -del ..\..\..\..\..\temp\csr\ta_CDLSTALLEDPATTERN.obj + -del ..\..\..\..\..\temp\csr\ta_CDLSTICKSANDWICH.obj + -del ..\..\..\..\..\temp\csr\ta_CDLTAKURI.obj + -del ..\..\..\..\..\temp\csr\ta_CDLTASUKIGAP.obj + -del ..\..\..\..\..\temp\csr\ta_CDLTHRUSTING.obj + -del ..\..\..\..\..\temp\csr\ta_CDLTRISTAR.obj + -del ..\..\..\..\..\temp\csr\ta_CDLUNIQUE3RIVER.obj + -del ..\..\..\..\..\temp\csr\ta_CDLUPSIDEGAP2CROWS.obj + -del ..\..\..\..\..\temp\csr\ta_CDLXSIDEGAP3METHODS.obj + -del ..\..\..\..\..\temp\csr\ta_CEIL.obj + -del ..\..\..\..\..\temp\csr\ta_CMO.obj + -del ..\..\..\..\..\temp\csr\ta_CORREL.obj + -del ..\..\..\..\..\temp\csr\ta_COS.obj + -del ..\..\..\..\..\temp\csr\ta_COSH.obj + -del ..\..\..\..\..\temp\csr\ta_DEMA.obj + -del ..\..\..\..\..\temp\csr\ta_DIV.obj + -del ..\..\..\..\..\temp\csr\ta_DX.obj + -del ..\..\..\..\..\temp\csr\ta_EMA.obj + -del ..\..\..\..\..\temp\csr\ta_EXP.obj + -del ..\..\..\..\..\temp\csr\ta_FLOOR.obj + -del ..\..\..\..\..\temp\csr\ta_HT_DCPERIOD.obj + -del ..\..\..\..\..\temp\csr\ta_HT_DCPHASE.obj + -del ..\..\..\..\..\temp\csr\ta_HT_PHASOR.obj + -del ..\..\..\..\..\temp\csr\ta_HT_SINE.obj + -del ..\..\..\..\..\temp\csr\ta_HT_TRENDLINE.obj + -del ..\..\..\..\..\temp\csr\ta_HT_TRENDMODE.obj + -del ..\..\..\..\..\temp\csr\ta_KAMA.obj + -del ..\..\..\..\..\temp\csr\ta_LINEARREG.obj + -del ..\..\..\..\..\temp\csr\ta_LINEARREG_ANGLE.obj + -del ..\..\..\..\..\temp\csr\ta_LINEARREG_INTERCEPT.obj + -del ..\..\..\..\..\temp\csr\ta_LINEARREG_SLOPE.obj + -del ..\..\..\..\..\temp\csr\ta_LN.obj + -del ..\..\..\..\..\temp\csr\ta_LOG10.obj + -del ..\..\..\..\..\temp\csr\ta_MA.obj + -del ..\..\..\..\..\temp\csr\ta_MACD.obj + -del ..\..\..\..\..\temp\csr\ta_MACDEXT.obj + -del ..\..\..\..\..\temp\csr\ta_MACDFIX.obj + -del ..\..\..\..\..\temp\csr\ta_MAMA.obj + -del ..\..\..\..\..\temp\csr\ta_MAVP.obj + -del ..\..\..\..\..\temp\csr\ta_MAX.obj + -del ..\..\..\..\..\temp\csr\ta_MAXINDEX.obj + -del ..\..\..\..\..\temp\csr\ta_MEDPRICE.obj + -del ..\..\..\..\..\temp\csr\ta_MFI.obj + -del ..\..\..\..\..\temp\csr\ta_MIDPOINT.obj + -del ..\..\..\..\..\temp\csr\ta_MIDPRICE.obj + -del ..\..\..\..\..\temp\csr\ta_MIN.obj + -del ..\..\..\..\..\temp\csr\ta_MININDEX.obj + -del ..\..\..\..\..\temp\csr\ta_MINMAX.obj + -del ..\..\..\..\..\temp\csr\ta_MINMAXINDEX.obj + -del ..\..\..\..\..\temp\csr\ta_MINUS_DI.obj + -del ..\..\..\..\..\temp\csr\ta_MINUS_DM.obj + -del ..\..\..\..\..\temp\csr\ta_MOM.obj + -del ..\..\..\..\..\temp\csr\ta_MULT.obj + -del ..\..\..\..\..\temp\csr\ta_NATR.obj + -del ..\..\..\..\..\temp\csr\ta_OBV.obj + -del ..\..\..\..\..\temp\csr\ta_PLUS_DI.obj + -del ..\..\..\..\..\temp\csr\ta_PLUS_DM.obj + -del ..\..\..\..\..\temp\csr\ta_PPO.obj + -del ..\..\..\..\..\temp\csr\ta_ROC.obj + -del ..\..\..\..\..\temp\csr\ta_ROCP.obj + -del ..\..\..\..\..\temp\csr\ta_ROCR.obj + -del ..\..\..\..\..\temp\csr\ta_ROCR100.obj + -del ..\..\..\..\..\temp\csr\ta_RSI.obj + -del ..\..\..\..\..\temp\csr\ta_SAR.obj + -del ..\..\..\..\..\temp\csr\ta_SAREXT.obj + -del ..\..\..\..\..\temp\csr\ta_SIN.obj + -del ..\..\..\..\..\temp\csr\ta_SINH.obj + -del ..\..\..\..\..\temp\csr\ta_SMA.obj + -del ..\..\..\..\..\temp\csr\ta_SQRT.obj + -del ..\..\..\..\..\temp\csr\ta_STDDEV.obj + -del ..\..\..\..\..\temp\csr\ta_STOCH.obj + -del ..\..\..\..\..\temp\csr\ta_STOCHF.obj + -del ..\..\..\..\..\temp\csr\ta_STOCHRSI.obj + -del ..\..\..\..\..\temp\csr\ta_SUB.obj + -del ..\..\..\..\..\temp\csr\ta_SUM.obj + -del ..\..\..\..\..\temp\csr\ta_T3.obj + -del ..\..\..\..\..\temp\csr\ta_TAN.obj + -del ..\..\..\..\..\temp\csr\ta_TANH.obj + -del ..\..\..\..\..\temp\csr\ta_TEMA.obj + -del ..\..\..\..\..\temp\csr\ta_TRANGE.obj + -del ..\..\..\..\..\temp\csr\ta_TRIMA.obj + -del ..\..\..\..\..\temp\csr\ta_TRIX.obj + -del ..\..\..\..\..\temp\csr\ta_TSF.obj + -del ..\..\..\..\..\temp\csr\ta_TYPPRICE.obj + -del ..\..\..\..\..\temp\csr\ta_ULTOSC.obj + -del ..\..\..\..\..\temp\csr\ta_VAR.obj + -del ..\..\..\..\..\temp\csr\ta_WCLPRICE.obj + -del ..\..\..\..\..\temp\csr\ta_WILLR.obj + -del ..\..\..\..\..\temp\csr\ta_WMA.obj + -del $(TARGET) + -del ta_func_csr.tds + -del ../../../../../bin/*.map + -del ../../../../../bin/*._xe + -del ../../../../../bin/*.tds + -del ../../../../../bin/*.pdb + -del ../../../../../bin/*.pbo + -del ../../../../../bin/*.pbi + -del ../../../../../bin/*.pbt + -del ../../../../../temp/csr/*.pch + -del ../../../../../temp/csr/*.idb + -del ../../../../../temp/csr/ta_func/*.pch + -del ../../../../../temp/csr/ta_func/*.idb + -del ../../../../../temp/csr/ta_func/*.obj + +####### Compile + +..\..\..\..\..\temp\csr\ta_utility.obj: ..\..\..\..\..\src\ta_func\ta_utility.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_utility.obj ..\..\..\..\..\src\ta_func\ta_utility.c + +..\..\..\..\..\temp\csr\ta_ACOS.obj: ..\..\..\..\..\src\ta_func\ta_ACOS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_ACOS.obj ..\..\..\..\..\src\ta_func\ta_ACOS.c + +..\..\..\..\..\temp\csr\ta_AD.obj: ..\..\..\..\..\src\ta_func\ta_AD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_AD.obj ..\..\..\..\..\src\ta_func\ta_AD.c + +..\..\..\..\..\temp\csr\ta_ADD.obj: ..\..\..\..\..\src\ta_func\ta_ADD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_ADD.obj ..\..\..\..\..\src\ta_func\ta_ADD.c + +..\..\..\..\..\temp\csr\ta_ADOSC.obj: ..\..\..\..\..\src\ta_func\ta_ADOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_ADOSC.obj ..\..\..\..\..\src\ta_func\ta_ADOSC.c + +..\..\..\..\..\temp\csr\ta_ADX.obj: ..\..\..\..\..\src\ta_func\ta_ADX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_ADX.obj ..\..\..\..\..\src\ta_func\ta_ADX.c + +..\..\..\..\..\temp\csr\ta_ADXR.obj: ..\..\..\..\..\src\ta_func\ta_ADXR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_ADXR.obj ..\..\..\..\..\src\ta_func\ta_ADXR.c + +..\..\..\..\..\temp\csr\ta_APO.obj: ..\..\..\..\..\src\ta_func\ta_APO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_APO.obj ..\..\..\..\..\src\ta_func\ta_APO.c + +..\..\..\..\..\temp\csr\ta_AROON.obj: ..\..\..\..\..\src\ta_func\ta_AROON.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_AROON.obj ..\..\..\..\..\src\ta_func\ta_AROON.c + +..\..\..\..\..\temp\csr\ta_AROONOSC.obj: ..\..\..\..\..\src\ta_func\ta_AROONOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_AROONOSC.obj ..\..\..\..\..\src\ta_func\ta_AROONOSC.c + +..\..\..\..\..\temp\csr\ta_ASIN.obj: ..\..\..\..\..\src\ta_func\ta_ASIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_ASIN.obj ..\..\..\..\..\src\ta_func\ta_ASIN.c + +..\..\..\..\..\temp\csr\ta_ATAN.obj: ..\..\..\..\..\src\ta_func\ta_ATAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_ATAN.obj ..\..\..\..\..\src\ta_func\ta_ATAN.c + +..\..\..\..\..\temp\csr\ta_ATR.obj: ..\..\..\..\..\src\ta_func\ta_ATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_ATR.obj ..\..\..\..\..\src\ta_func\ta_ATR.c + +..\..\..\..\..\temp\csr\ta_AVGPRICE.obj: ..\..\..\..\..\src\ta_func\ta_AVGPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_AVGPRICE.obj ..\..\..\..\..\src\ta_func\ta_AVGPRICE.c + +..\..\..\..\..\temp\csr\ta_BBANDS.obj: ..\..\..\..\..\src\ta_func\ta_BBANDS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_BBANDS.obj ..\..\..\..\..\src\ta_func\ta_BBANDS.c + +..\..\..\..\..\temp\csr\ta_BETA.obj: ..\..\..\..\..\src\ta_func\ta_BETA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_BETA.obj ..\..\..\..\..\src\ta_func\ta_BETA.c + +..\..\..\..\..\temp\csr\ta_BOP.obj: ..\..\..\..\..\src\ta_func\ta_BOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_BOP.obj ..\..\..\..\..\src\ta_func\ta_BOP.c + +..\..\..\..\..\temp\csr\ta_CCI.obj: ..\..\..\..\..\src\ta_func\ta_CCI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CCI.obj ..\..\..\..\..\src\ta_func\ta_CCI.c + +..\..\..\..\..\temp\csr\ta_CDL2CROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDL2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDL2CROWS.obj ..\..\..\..\..\src\ta_func\ta_CDL2CROWS.c + +..\..\..\..\..\temp\csr\ta_CDL3BLACKCROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDL3BLACKCROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDL3BLACKCROWS.obj ..\..\..\..\..\src\ta_func\ta_CDL3BLACKCROWS.c + +..\..\..\..\..\temp\csr\ta_CDL3INSIDE.obj: ..\..\..\..\..\src\ta_func\ta_CDL3INSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDL3INSIDE.obj ..\..\..\..\..\src\ta_func\ta_CDL3INSIDE.c + +..\..\..\..\..\temp\csr\ta_CDL3LINESTRIKE.obj: ..\..\..\..\..\src\ta_func\ta_CDL3LINESTRIKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDL3LINESTRIKE.obj ..\..\..\..\..\src\ta_func\ta_CDL3LINESTRIKE.c + +..\..\..\..\..\temp\csr\ta_CDL3OUTSIDE.obj: ..\..\..\..\..\src\ta_func\ta_CDL3OUTSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDL3OUTSIDE.obj ..\..\..\..\..\src\ta_func\ta_CDL3OUTSIDE.c + +..\..\..\..\..\temp\csr\ta_CDL3STARSINSOUTH.obj: ..\..\..\..\..\src\ta_func\ta_CDL3STARSINSOUTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDL3STARSINSOUTH.obj ..\..\..\..\..\src\ta_func\ta_CDL3STARSINSOUTH.c + +..\..\..\..\..\temp\csr\ta_CDL3WHITESOLDIERS.obj: ..\..\..\..\..\src\ta_func\ta_CDL3WHITESOLDIERS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDL3WHITESOLDIERS.obj ..\..\..\..\..\src\ta_func\ta_CDL3WHITESOLDIERS.c + +..\..\..\..\..\temp\csr\ta_CDLABANDONEDBABY.obj: ..\..\..\..\..\src\ta_func\ta_CDLABANDONEDBABY.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLABANDONEDBABY.obj ..\..\..\..\..\src\ta_func\ta_CDLABANDONEDBABY.c + +..\..\..\..\..\temp\csr\ta_CDLADVANCEBLOCK.obj: ..\..\..\..\..\src\ta_func\ta_CDLADVANCEBLOCK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLADVANCEBLOCK.obj ..\..\..\..\..\src\ta_func\ta_CDLADVANCEBLOCK.c + +..\..\..\..\..\temp\csr\ta_CDLBELTHOLD.obj: ..\..\..\..\..\src\ta_func\ta_CDLBELTHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLBELTHOLD.obj ..\..\..\..\..\src\ta_func\ta_CDLBELTHOLD.c + +..\..\..\..\..\temp\csr\ta_CDLBREAKAWAY.obj: ..\..\..\..\..\src\ta_func\ta_CDLBREAKAWAY.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLBREAKAWAY.obj ..\..\..\..\..\src\ta_func\ta_CDLBREAKAWAY.c + +..\..\..\..\..\temp\csr\ta_CDLCLOSINGMARUBOZU.obj: ..\..\..\..\..\src\ta_func\ta_CDLCLOSINGMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLCLOSINGMARUBOZU.obj ..\..\..\..\..\src\ta_func\ta_CDLCLOSINGMARUBOZU.c + +..\..\..\..\..\temp\csr\ta_CDLCONCEALBABYSWALL.obj: ..\..\..\..\..\src\ta_func\ta_CDLCONCEALBABYSWALL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLCONCEALBABYSWALL.obj ..\..\..\..\..\src\ta_func\ta_CDLCONCEALBABYSWALL.c + +..\..\..\..\..\temp\csr\ta_CDLCOUNTERATTACK.obj: ..\..\..\..\..\src\ta_func\ta_CDLCOUNTERATTACK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLCOUNTERATTACK.obj ..\..\..\..\..\src\ta_func\ta_CDLCOUNTERATTACK.c + +..\..\..\..\..\temp\csr\ta_CDLDARKCLOUDCOVER.obj: ..\..\..\..\..\src\ta_func\ta_CDLDARKCLOUDCOVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLDARKCLOUDCOVER.obj ..\..\..\..\..\src\ta_func\ta_CDLDARKCLOUDCOVER.c + +..\..\..\..\..\temp\csr\ta_CDLDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLDOJI.c + +..\..\..\..\..\temp\csr\ta_CDLDOJISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLDOJISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLDOJISTAR.c + +..\..\..\..\..\temp\csr\ta_CDLDRAGONFLYDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLDRAGONFLYDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLDRAGONFLYDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLDRAGONFLYDOJI.c + +..\..\..\..\..\temp\csr\ta_CDLENGULFING.obj: ..\..\..\..\..\src\ta_func\ta_CDLENGULFING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLENGULFING.obj ..\..\..\..\..\src\ta_func\ta_CDLENGULFING.c + +..\..\..\..\..\temp\csr\ta_CDLEVENINGDOJISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLEVENINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLEVENINGDOJISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLEVENINGDOJISTAR.c + +..\..\..\..\..\temp\csr\ta_CDLEVENINGSTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLEVENINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLEVENINGSTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLEVENINGSTAR.c + +..\..\..\..\..\temp\csr\ta_CDLGAPSIDESIDEWHITE.obj: ..\..\..\..\..\src\ta_func\ta_CDLGAPSIDESIDEWHITE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLGAPSIDESIDEWHITE.obj ..\..\..\..\..\src\ta_func\ta_CDLGAPSIDESIDEWHITE.c + +..\..\..\..\..\temp\csr\ta_CDLGRAVESTONEDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLGRAVESTONEDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLGRAVESTONEDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLGRAVESTONEDOJI.c + +..\..\..\..\..\temp\csr\ta_CDLHAMMER.obj: ..\..\..\..\..\src\ta_func\ta_CDLHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLHAMMER.obj ..\..\..\..\..\src\ta_func\ta_CDLHAMMER.c + +..\..\..\..\..\temp\csr\ta_CDLHANGINGMAN.obj: ..\..\..\..\..\src\ta_func\ta_CDLHANGINGMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLHANGINGMAN.obj ..\..\..\..\..\src\ta_func\ta_CDLHANGINGMAN.c + +..\..\..\..\..\temp\csr\ta_CDLHARAMI.obj: ..\..\..\..\..\src\ta_func\ta_CDLHARAMI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLHARAMI.obj ..\..\..\..\..\src\ta_func\ta_CDLHARAMI.c + +..\..\..\..\..\temp\csr\ta_CDLHARAMICROSS.obj: ..\..\..\..\..\src\ta_func\ta_CDLHARAMICROSS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLHARAMICROSS.obj ..\..\..\..\..\src\ta_func\ta_CDLHARAMICROSS.c + +..\..\..\..\..\temp\csr\ta_CDLHIGHWAVE.obj: ..\..\..\..\..\src\ta_func\ta_CDLHIGHWAVE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLHIGHWAVE.obj ..\..\..\..\..\src\ta_func\ta_CDLHIGHWAVE.c + +..\..\..\..\..\temp\csr\ta_CDLHIKKAKE.obj: ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLHIKKAKE.obj ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKE.c + +..\..\..\..\..\temp\csr\ta_CDLHIKKAKEMOD.obj: ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKEMOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLHIKKAKEMOD.obj ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKEMOD.c + +..\..\..\..\..\temp\csr\ta_CDLHOMINGPIGEON.obj: ..\..\..\..\..\src\ta_func\ta_CDLHOMINGPIGEON.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLHOMINGPIGEON.obj ..\..\..\..\..\src\ta_func\ta_CDLHOMINGPIGEON.c + +..\..\..\..\..\temp\csr\ta_CDLIDENTICAL3CROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDLIDENTICAL3CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLIDENTICAL3CROWS.obj ..\..\..\..\..\src\ta_func\ta_CDLIDENTICAL3CROWS.c + +..\..\..\..\..\temp\csr\ta_CDLINNECK.obj: ..\..\..\..\..\src\ta_func\ta_CDLINNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLINNECK.obj ..\..\..\..\..\src\ta_func\ta_CDLINNECK.c + +..\..\..\..\..\temp\csr\ta_CDLINVERTEDHAMMER.obj: ..\..\..\..\..\src\ta_func\ta_CDLINVERTEDHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLINVERTEDHAMMER.obj ..\..\..\..\..\src\ta_func\ta_CDLINVERTEDHAMMER.c + +..\..\..\..\..\temp\csr\ta_CDLKICKING.obj: ..\..\..\..\..\src\ta_func\ta_CDLKICKING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLKICKING.obj ..\..\..\..\..\src\ta_func\ta_CDLKICKING.c + +..\..\..\..\..\temp\csr\ta_CDLKICKINGBYLENGTH.obj: ..\..\..\..\..\src\ta_func\ta_CDLKICKINGBYLENGTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLKICKINGBYLENGTH.obj ..\..\..\..\..\src\ta_func\ta_CDLKICKINGBYLENGTH.c + +..\..\..\..\..\temp\csr\ta_CDLLADDERBOTTOM.obj: ..\..\..\..\..\src\ta_func\ta_CDLLADDERBOTTOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLLADDERBOTTOM.obj ..\..\..\..\..\src\ta_func\ta_CDLLADDERBOTTOM.c + +..\..\..\..\..\temp\csr\ta_CDLLONGLEGGEDDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLLONGLEGGEDDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLLONGLEGGEDDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLLONGLEGGEDDOJI.c + +..\..\..\..\..\temp\csr\ta_CDLLONGLINE.obj: ..\..\..\..\..\src\ta_func\ta_CDLLONGLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLLONGLINE.obj ..\..\..\..\..\src\ta_func\ta_CDLLONGLINE.c + +..\..\..\..\..\temp\csr\ta_CDLMARUBOZU.obj: ..\..\..\..\..\src\ta_func\ta_CDLMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLMARUBOZU.obj ..\..\..\..\..\src\ta_func\ta_CDLMARUBOZU.c + +..\..\..\..\..\temp\csr\ta_CDLMATCHINGLOW.obj: ..\..\..\..\..\src\ta_func\ta_CDLMATCHINGLOW.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLMATCHINGLOW.obj ..\..\..\..\..\src\ta_func\ta_CDLMATCHINGLOW.c + +..\..\..\..\..\temp\csr\ta_CDLMATHOLD.obj: ..\..\..\..\..\src\ta_func\ta_CDLMATHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLMATHOLD.obj ..\..\..\..\..\src\ta_func\ta_CDLMATHOLD.c + +..\..\..\..\..\temp\csr\ta_CDLMORNINGDOJISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLMORNINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLMORNINGDOJISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLMORNINGDOJISTAR.c + +..\..\..\..\..\temp\csr\ta_CDLMORNINGSTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLMORNINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLMORNINGSTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLMORNINGSTAR.c + +..\..\..\..\..\temp\csr\ta_CDLONNECK.obj: ..\..\..\..\..\src\ta_func\ta_CDLONNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLONNECK.obj ..\..\..\..\..\src\ta_func\ta_CDLONNECK.c + +..\..\..\..\..\temp\csr\ta_CDLPIERCING.obj: ..\..\..\..\..\src\ta_func\ta_CDLPIERCING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLPIERCING.obj ..\..\..\..\..\src\ta_func\ta_CDLPIERCING.c + +..\..\..\..\..\temp\csr\ta_CDLRICKSHAWMAN.obj: ..\..\..\..\..\src\ta_func\ta_CDLRICKSHAWMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLRICKSHAWMAN.obj ..\..\..\..\..\src\ta_func\ta_CDLRICKSHAWMAN.c + +..\..\..\..\..\temp\csr\ta_CDLRISEFALL3METHODS.obj: ..\..\..\..\..\src\ta_func\ta_CDLRISEFALL3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLRISEFALL3METHODS.obj ..\..\..\..\..\src\ta_func\ta_CDLRISEFALL3METHODS.c + +..\..\..\..\..\temp\csr\ta_CDLSEPARATINGLINES.obj: ..\..\..\..\..\src\ta_func\ta_CDLSEPARATINGLINES.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLSEPARATINGLINES.obj ..\..\..\..\..\src\ta_func\ta_CDLSEPARATINGLINES.c + +..\..\..\..\..\temp\csr\ta_CDLSHOOTINGSTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLSHOOTINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLSHOOTINGSTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLSHOOTINGSTAR.c + +..\..\..\..\..\temp\csr\ta_CDLSHORTLINE.obj: ..\..\..\..\..\src\ta_func\ta_CDLSHORTLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLSHORTLINE.obj ..\..\..\..\..\src\ta_func\ta_CDLSHORTLINE.c + +..\..\..\..\..\temp\csr\ta_CDLSPINNINGTOP.obj: ..\..\..\..\..\src\ta_func\ta_CDLSPINNINGTOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLSPINNINGTOP.obj ..\..\..\..\..\src\ta_func\ta_CDLSPINNINGTOP.c + +..\..\..\..\..\temp\csr\ta_CDLSTALLEDPATTERN.obj: ..\..\..\..\..\src\ta_func\ta_CDLSTALLEDPATTERN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLSTALLEDPATTERN.obj ..\..\..\..\..\src\ta_func\ta_CDLSTALLEDPATTERN.c + +..\..\..\..\..\temp\csr\ta_CDLSTICKSANDWICH.obj: ..\..\..\..\..\src\ta_func\ta_CDLSTICKSANDWICH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLSTICKSANDWICH.obj ..\..\..\..\..\src\ta_func\ta_CDLSTICKSANDWICH.c + +..\..\..\..\..\temp\csr\ta_CDLTAKURI.obj: ..\..\..\..\..\src\ta_func\ta_CDLTAKURI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLTAKURI.obj ..\..\..\..\..\src\ta_func\ta_CDLTAKURI.c + +..\..\..\..\..\temp\csr\ta_CDLTASUKIGAP.obj: ..\..\..\..\..\src\ta_func\ta_CDLTASUKIGAP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLTASUKIGAP.obj ..\..\..\..\..\src\ta_func\ta_CDLTASUKIGAP.c + +..\..\..\..\..\temp\csr\ta_CDLTHRUSTING.obj: ..\..\..\..\..\src\ta_func\ta_CDLTHRUSTING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLTHRUSTING.obj ..\..\..\..\..\src\ta_func\ta_CDLTHRUSTING.c + +..\..\..\..\..\temp\csr\ta_CDLTRISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLTRISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLTRISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLTRISTAR.c + +..\..\..\..\..\temp\csr\ta_CDLUNIQUE3RIVER.obj: ..\..\..\..\..\src\ta_func\ta_CDLUNIQUE3RIVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLUNIQUE3RIVER.obj ..\..\..\..\..\src\ta_func\ta_CDLUNIQUE3RIVER.c + +..\..\..\..\..\temp\csr\ta_CDLUPSIDEGAP2CROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDLUPSIDEGAP2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLUPSIDEGAP2CROWS.obj ..\..\..\..\..\src\ta_func\ta_CDLUPSIDEGAP2CROWS.c + +..\..\..\..\..\temp\csr\ta_CDLXSIDEGAP3METHODS.obj: ..\..\..\..\..\src\ta_func\ta_CDLXSIDEGAP3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLXSIDEGAP3METHODS.obj ..\..\..\..\..\src\ta_func\ta_CDLXSIDEGAP3METHODS.c + +..\..\..\..\..\temp\csr\ta_CEIL.obj: ..\..\..\..\..\src\ta_func\ta_CEIL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CEIL.obj ..\..\..\..\..\src\ta_func\ta_CEIL.c + +..\..\..\..\..\temp\csr\ta_CMO.obj: ..\..\..\..\..\src\ta_func\ta_CMO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CMO.obj ..\..\..\..\..\src\ta_func\ta_CMO.c + +..\..\..\..\..\temp\csr\ta_CORREL.obj: ..\..\..\..\..\src\ta_func\ta_CORREL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CORREL.obj ..\..\..\..\..\src\ta_func\ta_CORREL.c + +..\..\..\..\..\temp\csr\ta_COS.obj: ..\..\..\..\..\src\ta_func\ta_COS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_COS.obj ..\..\..\..\..\src\ta_func\ta_COS.c + +..\..\..\..\..\temp\csr\ta_COSH.obj: ..\..\..\..\..\src\ta_func\ta_COSH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_COSH.obj ..\..\..\..\..\src\ta_func\ta_COSH.c + +..\..\..\..\..\temp\csr\ta_DEMA.obj: ..\..\..\..\..\src\ta_func\ta_DEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_DEMA.obj ..\..\..\..\..\src\ta_func\ta_DEMA.c + +..\..\..\..\..\temp\csr\ta_DIV.obj: ..\..\..\..\..\src\ta_func\ta_DIV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_DIV.obj ..\..\..\..\..\src\ta_func\ta_DIV.c + +..\..\..\..\..\temp\csr\ta_DX.obj: ..\..\..\..\..\src\ta_func\ta_DX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_DX.obj ..\..\..\..\..\src\ta_func\ta_DX.c + +..\..\..\..\..\temp\csr\ta_EMA.obj: ..\..\..\..\..\src\ta_func\ta_EMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_EMA.obj ..\..\..\..\..\src\ta_func\ta_EMA.c + +..\..\..\..\..\temp\csr\ta_EXP.obj: ..\..\..\..\..\src\ta_func\ta_EXP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_EXP.obj ..\..\..\..\..\src\ta_func\ta_EXP.c + +..\..\..\..\..\temp\csr\ta_FLOOR.obj: ..\..\..\..\..\src\ta_func\ta_FLOOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_FLOOR.obj ..\..\..\..\..\src\ta_func\ta_FLOOR.c + +..\..\..\..\..\temp\csr\ta_HT_DCPERIOD.obj: ..\..\..\..\..\src\ta_func\ta_HT_DCPERIOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_HT_DCPERIOD.obj ..\..\..\..\..\src\ta_func\ta_HT_DCPERIOD.c + +..\..\..\..\..\temp\csr\ta_HT_DCPHASE.obj: ..\..\..\..\..\src\ta_func\ta_HT_DCPHASE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_HT_DCPHASE.obj ..\..\..\..\..\src\ta_func\ta_HT_DCPHASE.c + +..\..\..\..\..\temp\csr\ta_HT_PHASOR.obj: ..\..\..\..\..\src\ta_func\ta_HT_PHASOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_HT_PHASOR.obj ..\..\..\..\..\src\ta_func\ta_HT_PHASOR.c + +..\..\..\..\..\temp\csr\ta_HT_SINE.obj: ..\..\..\..\..\src\ta_func\ta_HT_SINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_HT_SINE.obj ..\..\..\..\..\src\ta_func\ta_HT_SINE.c + +..\..\..\..\..\temp\csr\ta_HT_TRENDLINE.obj: ..\..\..\..\..\src\ta_func\ta_HT_TRENDLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_HT_TRENDLINE.obj ..\..\..\..\..\src\ta_func\ta_HT_TRENDLINE.c + +..\..\..\..\..\temp\csr\ta_HT_TRENDMODE.obj: ..\..\..\..\..\src\ta_func\ta_HT_TRENDMODE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_HT_TRENDMODE.obj ..\..\..\..\..\src\ta_func\ta_HT_TRENDMODE.c + +..\..\..\..\..\temp\csr\ta_KAMA.obj: ..\..\..\..\..\src\ta_func\ta_KAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_KAMA.obj ..\..\..\..\..\src\ta_func\ta_KAMA.c + +..\..\..\..\..\temp\csr\ta_LINEARREG.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_LINEARREG.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG.c + +..\..\..\..\..\temp\csr\ta_LINEARREG_ANGLE.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG_ANGLE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_LINEARREG_ANGLE.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG_ANGLE.c + +..\..\..\..\..\temp\csr\ta_LINEARREG_INTERCEPT.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG_INTERCEPT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_LINEARREG_INTERCEPT.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG_INTERCEPT.c + +..\..\..\..\..\temp\csr\ta_LINEARREG_SLOPE.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG_SLOPE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_LINEARREG_SLOPE.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG_SLOPE.c + +..\..\..\..\..\temp\csr\ta_LN.obj: ..\..\..\..\..\src\ta_func\ta_LN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_LN.obj ..\..\..\..\..\src\ta_func\ta_LN.c + +..\..\..\..\..\temp\csr\ta_LOG10.obj: ..\..\..\..\..\src\ta_func\ta_LOG10.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_LOG10.obj ..\..\..\..\..\src\ta_func\ta_LOG10.c + +..\..\..\..\..\temp\csr\ta_MA.obj: ..\..\..\..\..\src\ta_func\ta_MA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_MA.obj ..\..\..\..\..\src\ta_func\ta_MA.c + +..\..\..\..\..\temp\csr\ta_MACD.obj: ..\..\..\..\..\src\ta_func\ta_MACD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_MACD.obj ..\..\..\..\..\src\ta_func\ta_MACD.c + +..\..\..\..\..\temp\csr\ta_MACDEXT.obj: ..\..\..\..\..\src\ta_func\ta_MACDEXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_MACDEXT.obj ..\..\..\..\..\src\ta_func\ta_MACDEXT.c + +..\..\..\..\..\temp\csr\ta_MACDFIX.obj: ..\..\..\..\..\src\ta_func\ta_MACDFIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_MACDFIX.obj ..\..\..\..\..\src\ta_func\ta_MACDFIX.c + +..\..\..\..\..\temp\csr\ta_MAMA.obj: ..\..\..\..\..\src\ta_func\ta_MAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_MAMA.obj ..\..\..\..\..\src\ta_func\ta_MAMA.c + +..\..\..\..\..\temp\csr\ta_MAVP.obj: ..\..\..\..\..\src\ta_func\ta_MAVP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_MAVP.obj ..\..\..\..\..\src\ta_func\ta_MAVP.c + +..\..\..\..\..\temp\csr\ta_MAX.obj: ..\..\..\..\..\src\ta_func\ta_MAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_MAX.obj ..\..\..\..\..\src\ta_func\ta_MAX.c + +..\..\..\..\..\temp\csr\ta_MAXINDEX.obj: ..\..\..\..\..\src\ta_func\ta_MAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_MAXINDEX.obj ..\..\..\..\..\src\ta_func\ta_MAXINDEX.c + +..\..\..\..\..\temp\csr\ta_MEDPRICE.obj: ..\..\..\..\..\src\ta_func\ta_MEDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_MEDPRICE.obj ..\..\..\..\..\src\ta_func\ta_MEDPRICE.c + +..\..\..\..\..\temp\csr\ta_MFI.obj: ..\..\..\..\..\src\ta_func\ta_MFI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_MFI.obj ..\..\..\..\..\src\ta_func\ta_MFI.c + +..\..\..\..\..\temp\csr\ta_MIDPOINT.obj: ..\..\..\..\..\src\ta_func\ta_MIDPOINT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_MIDPOINT.obj ..\..\..\..\..\src\ta_func\ta_MIDPOINT.c + +..\..\..\..\..\temp\csr\ta_MIDPRICE.obj: ..\..\..\..\..\src\ta_func\ta_MIDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_MIDPRICE.obj ..\..\..\..\..\src\ta_func\ta_MIDPRICE.c + +..\..\..\..\..\temp\csr\ta_MIN.obj: ..\..\..\..\..\src\ta_func\ta_MIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_MIN.obj ..\..\..\..\..\src\ta_func\ta_MIN.c + +..\..\..\..\..\temp\csr\ta_MININDEX.obj: ..\..\..\..\..\src\ta_func\ta_MININDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_MININDEX.obj ..\..\..\..\..\src\ta_func\ta_MININDEX.c + +..\..\..\..\..\temp\csr\ta_MINMAX.obj: ..\..\..\..\..\src\ta_func\ta_MINMAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_MINMAX.obj ..\..\..\..\..\src\ta_func\ta_MINMAX.c + +..\..\..\..\..\temp\csr\ta_MINMAXINDEX.obj: ..\..\..\..\..\src\ta_func\ta_MINMAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_MINMAXINDEX.obj ..\..\..\..\..\src\ta_func\ta_MINMAXINDEX.c + +..\..\..\..\..\temp\csr\ta_MINUS_DI.obj: ..\..\..\..\..\src\ta_func\ta_MINUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_MINUS_DI.obj ..\..\..\..\..\src\ta_func\ta_MINUS_DI.c + +..\..\..\..\..\temp\csr\ta_MINUS_DM.obj: ..\..\..\..\..\src\ta_func\ta_MINUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_MINUS_DM.obj ..\..\..\..\..\src\ta_func\ta_MINUS_DM.c + +..\..\..\..\..\temp\csr\ta_MOM.obj: ..\..\..\..\..\src\ta_func\ta_MOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_MOM.obj ..\..\..\..\..\src\ta_func\ta_MOM.c + +..\..\..\..\..\temp\csr\ta_MULT.obj: ..\..\..\..\..\src\ta_func\ta_MULT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_MULT.obj ..\..\..\..\..\src\ta_func\ta_MULT.c + +..\..\..\..\..\temp\csr\ta_NATR.obj: ..\..\..\..\..\src\ta_func\ta_NATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_NATR.obj ..\..\..\..\..\src\ta_func\ta_NATR.c + +..\..\..\..\..\temp\csr\ta_OBV.obj: ..\..\..\..\..\src\ta_func\ta_OBV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_OBV.obj ..\..\..\..\..\src\ta_func\ta_OBV.c + +..\..\..\..\..\temp\csr\ta_PLUS_DI.obj: ..\..\..\..\..\src\ta_func\ta_PLUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_PLUS_DI.obj ..\..\..\..\..\src\ta_func\ta_PLUS_DI.c + +..\..\..\..\..\temp\csr\ta_PLUS_DM.obj: ..\..\..\..\..\src\ta_func\ta_PLUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_PLUS_DM.obj ..\..\..\..\..\src\ta_func\ta_PLUS_DM.c + +..\..\..\..\..\temp\csr\ta_PPO.obj: ..\..\..\..\..\src\ta_func\ta_PPO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_PPO.obj ..\..\..\..\..\src\ta_func\ta_PPO.c + +..\..\..\..\..\temp\csr\ta_ROC.obj: ..\..\..\..\..\src\ta_func\ta_ROC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_ROC.obj ..\..\..\..\..\src\ta_func\ta_ROC.c + +..\..\..\..\..\temp\csr\ta_ROCP.obj: ..\..\..\..\..\src\ta_func\ta_ROCP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_ROCP.obj ..\..\..\..\..\src\ta_func\ta_ROCP.c + +..\..\..\..\..\temp\csr\ta_ROCR.obj: ..\..\..\..\..\src\ta_func\ta_ROCR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_ROCR.obj ..\..\..\..\..\src\ta_func\ta_ROCR.c + +..\..\..\..\..\temp\csr\ta_ROCR100.obj: ..\..\..\..\..\src\ta_func\ta_ROCR100.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_ROCR100.obj ..\..\..\..\..\src\ta_func\ta_ROCR100.c + +..\..\..\..\..\temp\csr\ta_RSI.obj: ..\..\..\..\..\src\ta_func\ta_RSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_RSI.obj ..\..\..\..\..\src\ta_func\ta_RSI.c + +..\..\..\..\..\temp\csr\ta_SAR.obj: ..\..\..\..\..\src\ta_func\ta_SAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_SAR.obj ..\..\..\..\..\src\ta_func\ta_SAR.c + +..\..\..\..\..\temp\csr\ta_SAREXT.obj: ..\..\..\..\..\src\ta_func\ta_SAREXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_SAREXT.obj ..\..\..\..\..\src\ta_func\ta_SAREXT.c + +..\..\..\..\..\temp\csr\ta_SIN.obj: ..\..\..\..\..\src\ta_func\ta_SIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_SIN.obj ..\..\..\..\..\src\ta_func\ta_SIN.c + +..\..\..\..\..\temp\csr\ta_SINH.obj: ..\..\..\..\..\src\ta_func\ta_SINH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_SINH.obj ..\..\..\..\..\src\ta_func\ta_SINH.c + +..\..\..\..\..\temp\csr\ta_SMA.obj: ..\..\..\..\..\src\ta_func\ta_SMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_SMA.obj ..\..\..\..\..\src\ta_func\ta_SMA.c + +..\..\..\..\..\temp\csr\ta_SQRT.obj: ..\..\..\..\..\src\ta_func\ta_SQRT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_SQRT.obj ..\..\..\..\..\src\ta_func\ta_SQRT.c + +..\..\..\..\..\temp\csr\ta_STDDEV.obj: ..\..\..\..\..\src\ta_func\ta_STDDEV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_STDDEV.obj ..\..\..\..\..\src\ta_func\ta_STDDEV.c + +..\..\..\..\..\temp\csr\ta_STOCH.obj: ..\..\..\..\..\src\ta_func\ta_STOCH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_STOCH.obj ..\..\..\..\..\src\ta_func\ta_STOCH.c + +..\..\..\..\..\temp\csr\ta_STOCHF.obj: ..\..\..\..\..\src\ta_func\ta_STOCHF.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_STOCHF.obj ..\..\..\..\..\src\ta_func\ta_STOCHF.c + +..\..\..\..\..\temp\csr\ta_STOCHRSI.obj: ..\..\..\..\..\src\ta_func\ta_STOCHRSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_STOCHRSI.obj ..\..\..\..\..\src\ta_func\ta_STOCHRSI.c + +..\..\..\..\..\temp\csr\ta_SUB.obj: ..\..\..\..\..\src\ta_func\ta_SUB.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_SUB.obj ..\..\..\..\..\src\ta_func\ta_SUB.c + +..\..\..\..\..\temp\csr\ta_SUM.obj: ..\..\..\..\..\src\ta_func\ta_SUM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_SUM.obj ..\..\..\..\..\src\ta_func\ta_SUM.c + +..\..\..\..\..\temp\csr\ta_T3.obj: ..\..\..\..\..\src\ta_func\ta_T3.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_T3.obj ..\..\..\..\..\src\ta_func\ta_T3.c + +..\..\..\..\..\temp\csr\ta_TAN.obj: ..\..\..\..\..\src\ta_func\ta_TAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_TAN.obj ..\..\..\..\..\src\ta_func\ta_TAN.c + +..\..\..\..\..\temp\csr\ta_TANH.obj: ..\..\..\..\..\src\ta_func\ta_TANH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_TANH.obj ..\..\..\..\..\src\ta_func\ta_TANH.c + +..\..\..\..\..\temp\csr\ta_TEMA.obj: ..\..\..\..\..\src\ta_func\ta_TEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_TEMA.obj ..\..\..\..\..\src\ta_func\ta_TEMA.c + +..\..\..\..\..\temp\csr\ta_TRANGE.obj: ..\..\..\..\..\src\ta_func\ta_TRANGE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_TRANGE.obj ..\..\..\..\..\src\ta_func\ta_TRANGE.c + +..\..\..\..\..\temp\csr\ta_TRIMA.obj: ..\..\..\..\..\src\ta_func\ta_TRIMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_TRIMA.obj ..\..\..\..\..\src\ta_func\ta_TRIMA.c + +..\..\..\..\..\temp\csr\ta_TRIX.obj: ..\..\..\..\..\src\ta_func\ta_TRIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_TRIX.obj ..\..\..\..\..\src\ta_func\ta_TRIX.c + +..\..\..\..\..\temp\csr\ta_TSF.obj: ..\..\..\..\..\src\ta_func\ta_TSF.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_TSF.obj ..\..\..\..\..\src\ta_func\ta_TSF.c + +..\..\..\..\..\temp\csr\ta_TYPPRICE.obj: ..\..\..\..\..\src\ta_func\ta_TYPPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_TYPPRICE.obj ..\..\..\..\..\src\ta_func\ta_TYPPRICE.c + +..\..\..\..\..\temp\csr\ta_ULTOSC.obj: ..\..\..\..\..\src\ta_func\ta_ULTOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_ULTOSC.obj ..\..\..\..\..\src\ta_func\ta_ULTOSC.c + +..\..\..\..\..\temp\csr\ta_VAR.obj: ..\..\..\..\..\src\ta_func\ta_VAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_VAR.obj ..\..\..\..\..\src\ta_func\ta_VAR.c + +..\..\..\..\..\temp\csr\ta_WCLPRICE.obj: ..\..\..\..\..\src\ta_func\ta_WCLPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_WCLPRICE.obj ..\..\..\..\..\src\ta_func\ta_WCLPRICE.c + +..\..\..\..\..\temp\csr\ta_WILLR.obj: ..\..\..\..\..\src\ta_func\ta_WILLR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_WILLR.obj ..\..\..\..\..\src\ta_func\ta_WILLR.c + +..\..\..\..\..\temp\csr\ta_WMA.obj: ..\..\..\..\..\src\ta_func\ta_WMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_WMA.obj ..\..\..\..\..\src\ta_func\ta_WMA.c + diff --git a/make/csr/win32/borland/ta_libc/Makefile b/make/csr/win32/borland/ta_libc/Makefile new file mode 100644 index 000000000..bd4418ff8 --- /dev/null +++ b/make/csr/win32/borland/ta_libc/Makefile @@ -0,0 +1,1438 @@ +############################################################################# +# Makefile for building ta_libc_csr +# Generated by tmake; +# Project: ta_libc/ta_libc +# Template: lib +############################################################################# + +!if !$d(BCB) +BCB = $(MAKEDIR)\.. +!endif + +####### Compiler, tools and options + +CC = bcc32 +CXX = bcc32 +CFLAGS = -x- -RT- -tWR -w -w-8004 -w-8071 -w-8057 -w-8080 -O2 -DTA_SINGLE_THREAD -DWIN32 -DNO_DEBUG +CXXFLAGS= -x- -RT- -tWR -w -w-8004 -w-8071 -w-8057 -w-8080 -O2 -DTA_SINGLE_THREAD -DWIN32 -DNO_DEBUG +INCPATH = -I"..\..\..\..\..\src\ta_common" -I"..\..\..\..\..\include" -I"..\..\..\..\..\src\ta_abstract" -I"..\..\..\..\..\src\ta_abstract\tables" -I"..\..\..\..\..\src\ta_abstract\frames" -I"$(QTDIR)\include" +LIB = tlib /C /P256 +MOC = moc +UIC = uic + +ZIP = zip -r -9 +DEF_FILE = +RES_FILE = + +####### Files + +HEADERS = +SOURCES = ..\..\..\..\..\src\ta_common\ta_global.c \ + ..\..\..\..\..\src\ta_common\ta_retcode.c \ + ..\..\..\..\..\src\ta_common\ta_version.c \ + ..\..\..\..\..\src\ta_abstract\ta_abstract.c \ + ..\..\..\..\..\src\ta_abstract\ta_def_ui.c \ + ..\..\..\..\..\src\ta_abstract\ta_func_api.c \ + ..\..\..\..\..\src\ta_abstract\ta_group_idx.c \ + ..\..\..\..\..\src\ta_abstract\frames\ta_frame.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_a.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_b.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_c.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_d.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_e.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_f.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_g.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_h.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_i.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_j.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_k.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_l.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_m.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_n.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_o.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_p.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_q.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_r.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_s.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_t.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_u.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_v.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_w.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_x.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_y.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_z.c \ + ..\..\..\..\..\src\ta_func\ta_utility.c \ + ..\..\..\..\..\src\ta_func\ta_ACOS.c \ + ..\..\..\..\..\src\ta_func\ta_AD.c \ + ..\..\..\..\..\src\ta_func\ta_ADD.c \ + ..\..\..\..\..\src\ta_func\ta_ADOSC.c \ + ..\..\..\..\..\src\ta_func\ta_ADX.c \ + ..\..\..\..\..\src\ta_func\ta_ADXR.c \ + ..\..\..\..\..\src\ta_func\ta_APO.c \ + ..\..\..\..\..\src\ta_func\ta_AROON.c \ + ..\..\..\..\..\src\ta_func\ta_AROONOSC.c \ + ..\..\..\..\..\src\ta_func\ta_ASIN.c \ + ..\..\..\..\..\src\ta_func\ta_ATAN.c \ + ..\..\..\..\..\src\ta_func\ta_ATR.c \ + ..\..\..\..\..\src\ta_func\ta_AVGPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_BBANDS.c \ + ..\..\..\..\..\src\ta_func\ta_BETA.c \ + ..\..\..\..\..\src\ta_func\ta_BOP.c \ + ..\..\..\..\..\src\ta_func\ta_CCI.c \ + ..\..\..\..\..\src\ta_func\ta_CDL2CROWS.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3BLACKCROWS.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3INSIDE.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3LINESTRIKE.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3OUTSIDE.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3STARSINSOUTH.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3WHITESOLDIERS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLABANDONEDBABY.c \ + ..\..\..\..\..\src\ta_func\ta_CDLADVANCEBLOCK.c \ + ..\..\..\..\..\src\ta_func\ta_CDLBELTHOLD.c \ + ..\..\..\..\..\src\ta_func\ta_CDLBREAKAWAY.c \ + ..\..\..\..\..\src\ta_func\ta_CDLCLOSINGMARUBOZU.c \ + ..\..\..\..\..\src\ta_func\ta_CDLCONCEALBABYSWALL.c \ + ..\..\..\..\..\src\ta_func\ta_CDLCOUNTERATTACK.c \ + ..\..\..\..\..\src\ta_func\ta_CDLDARKCLOUDCOVER.c \ + ..\..\..\..\..\src\ta_func\ta_CDLDOJI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLDOJISTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLDRAGONFLYDOJI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLENGULFING.c \ + ..\..\..\..\..\src\ta_func\ta_CDLEVENINGDOJISTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLEVENINGSTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLGAPSIDESIDEWHITE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLGRAVESTONEDOJI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHAMMER.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHANGINGMAN.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHARAMI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHARAMICROSS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHIGHWAVE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKEMOD.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHOMINGPIGEON.c \ + ..\..\..\..\..\src\ta_func\ta_CDLIDENTICAL3CROWS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLINNECK.c \ + ..\..\..\..\..\src\ta_func\ta_CDLINVERTEDHAMMER.c \ + ..\..\..\..\..\src\ta_func\ta_CDLKICKING.c \ + ..\..\..\..\..\src\ta_func\ta_CDLKICKINGBYLENGTH.c \ + ..\..\..\..\..\src\ta_func\ta_CDLLADDERBOTTOM.c \ + ..\..\..\..\..\src\ta_func\ta_CDLLONGLEGGEDDOJI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLLONGLINE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMARUBOZU.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMATCHINGLOW.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMATHOLD.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMORNINGDOJISTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMORNINGSTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLONNECK.c \ + ..\..\..\..\..\src\ta_func\ta_CDLPIERCING.c \ + ..\..\..\..\..\src\ta_func\ta_CDLRICKSHAWMAN.c \ + ..\..\..\..\..\src\ta_func\ta_CDLRISEFALL3METHODS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSEPARATINGLINES.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSHOOTINGSTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSHORTLINE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSPINNINGTOP.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSTALLEDPATTERN.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSTICKSANDWICH.c \ + ..\..\..\..\..\src\ta_func\ta_CDLTAKURI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLTASUKIGAP.c \ + ..\..\..\..\..\src\ta_func\ta_CDLTHRUSTING.c \ + ..\..\..\..\..\src\ta_func\ta_CDLTRISTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLUNIQUE3RIVER.c \ + ..\..\..\..\..\src\ta_func\ta_CDLUPSIDEGAP2CROWS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLXSIDEGAP3METHODS.c \ + ..\..\..\..\..\src\ta_func\ta_CEIL.c \ + ..\..\..\..\..\src\ta_func\ta_CMO.c \ + ..\..\..\..\..\src\ta_func\ta_CORREL.c \ + ..\..\..\..\..\src\ta_func\ta_COS.c \ + ..\..\..\..\..\src\ta_func\ta_COSH.c \ + ..\..\..\..\..\src\ta_func\ta_DEMA.c \ + ..\..\..\..\..\src\ta_func\ta_DIV.c \ + ..\..\..\..\..\src\ta_func\ta_DX.c \ + ..\..\..\..\..\src\ta_func\ta_EMA.c \ + ..\..\..\..\..\src\ta_func\ta_EXP.c \ + ..\..\..\..\..\src\ta_func\ta_FLOOR.c \ + ..\..\..\..\..\src\ta_func\ta_HT_DCPERIOD.c \ + ..\..\..\..\..\src\ta_func\ta_HT_DCPHASE.c \ + ..\..\..\..\..\src\ta_func\ta_HT_PHASOR.c \ + ..\..\..\..\..\src\ta_func\ta_HT_SINE.c \ + ..\..\..\..\..\src\ta_func\ta_HT_TRENDLINE.c \ + ..\..\..\..\..\src\ta_func\ta_HT_TRENDMODE.c \ + ..\..\..\..\..\src\ta_func\ta_KAMA.c \ + ..\..\..\..\..\src\ta_func\ta_LINEARREG.c \ + ..\..\..\..\..\src\ta_func\ta_LINEARREG_ANGLE.c \ + ..\..\..\..\..\src\ta_func\ta_LINEARREG_INTERCEPT.c \ + ..\..\..\..\..\src\ta_func\ta_LINEARREG_SLOPE.c \ + ..\..\..\..\..\src\ta_func\ta_LN.c \ + ..\..\..\..\..\src\ta_func\ta_LOG10.c \ + ..\..\..\..\..\src\ta_func\ta_MA.c \ + ..\..\..\..\..\src\ta_func\ta_MACD.c \ + ..\..\..\..\..\src\ta_func\ta_MACDEXT.c \ + ..\..\..\..\..\src\ta_func\ta_MACDFIX.c \ + ..\..\..\..\..\src\ta_func\ta_MAMA.c \ + ..\..\..\..\..\src\ta_func\ta_MAVP.c \ + ..\..\..\..\..\src\ta_func\ta_MAX.c \ + ..\..\..\..\..\src\ta_func\ta_MAXINDEX.c \ + ..\..\..\..\..\src\ta_func\ta_MEDPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_MFI.c \ + ..\..\..\..\..\src\ta_func\ta_MIDPOINT.c \ + ..\..\..\..\..\src\ta_func\ta_MIDPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_MIN.c \ + ..\..\..\..\..\src\ta_func\ta_MININDEX.c \ + ..\..\..\..\..\src\ta_func\ta_MINMAX.c \ + ..\..\..\..\..\src\ta_func\ta_MINMAXINDEX.c \ + ..\..\..\..\..\src\ta_func\ta_MINUS_DI.c \ + ..\..\..\..\..\src\ta_func\ta_MINUS_DM.c \ + ..\..\..\..\..\src\ta_func\ta_MOM.c \ + ..\..\..\..\..\src\ta_func\ta_MULT.c \ + ..\..\..\..\..\src\ta_func\ta_NATR.c \ + ..\..\..\..\..\src\ta_func\ta_OBV.c \ + ..\..\..\..\..\src\ta_func\ta_PLUS_DI.c \ + ..\..\..\..\..\src\ta_func\ta_PLUS_DM.c \ + ..\..\..\..\..\src\ta_func\ta_PPO.c \ + ..\..\..\..\..\src\ta_func\ta_ROC.c \ + ..\..\..\..\..\src\ta_func\ta_ROCP.c \ + ..\..\..\..\..\src\ta_func\ta_ROCR.c \ + ..\..\..\..\..\src\ta_func\ta_ROCR100.c \ + ..\..\..\..\..\src\ta_func\ta_RSI.c \ + ..\..\..\..\..\src\ta_func\ta_SAR.c \ + ..\..\..\..\..\src\ta_func\ta_SAREXT.c \ + ..\..\..\..\..\src\ta_func\ta_SIN.c \ + ..\..\..\..\..\src\ta_func\ta_SINH.c \ + ..\..\..\..\..\src\ta_func\ta_SMA.c \ + ..\..\..\..\..\src\ta_func\ta_SQRT.c \ + ..\..\..\..\..\src\ta_func\ta_STDDEV.c \ + ..\..\..\..\..\src\ta_func\ta_STOCH.c \ + ..\..\..\..\..\src\ta_func\ta_STOCHF.c \ + ..\..\..\..\..\src\ta_func\ta_STOCHRSI.c \ + ..\..\..\..\..\src\ta_func\ta_SUB.c \ + ..\..\..\..\..\src\ta_func\ta_SUM.c \ + ..\..\..\..\..\src\ta_func\ta_T3.c \ + ..\..\..\..\..\src\ta_func\ta_TAN.c \ + ..\..\..\..\..\src\ta_func\ta_TANH.c \ + ..\..\..\..\..\src\ta_func\ta_TEMA.c \ + ..\..\..\..\..\src\ta_func\ta_TRANGE.c \ + ..\..\..\..\..\src\ta_func\ta_TRIMA.c \ + ..\..\..\..\..\src\ta_func\ta_TRIX.c \ + ..\..\..\..\..\src\ta_func\ta_TSF.c \ + ..\..\..\..\..\src\ta_func\ta_TYPPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_ULTOSC.c \ + ..\..\..\..\..\src\ta_func\ta_VAR.c \ + ..\..\..\..\..\src\ta_func\ta_WCLPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_WILLR.c \ + ..\..\..\..\..\src\ta_func\ta_WMA.c +OBJECTS = ..\..\..\..\..\temp\csr\ta_global.obj \ + ..\..\..\..\..\temp\csr\ta_retcode.obj \ + ..\..\..\..\..\temp\csr\ta_version.obj \ + ..\..\..\..\..\temp\csr\ta_abstract.obj \ + ..\..\..\..\..\temp\csr\ta_def_ui.obj \ + ..\..\..\..\..\temp\csr\ta_func_api.obj \ + ..\..\..\..\..\temp\csr\ta_group_idx.obj \ + ..\..\..\..\..\temp\csr\ta_frame.obj \ + ..\..\..\..\..\temp\csr\table_a.obj \ + ..\..\..\..\..\temp\csr\table_b.obj \ + ..\..\..\..\..\temp\csr\table_c.obj \ + ..\..\..\..\..\temp\csr\table_d.obj \ + ..\..\..\..\..\temp\csr\table_e.obj \ + ..\..\..\..\..\temp\csr\table_f.obj \ + ..\..\..\..\..\temp\csr\table_g.obj \ + ..\..\..\..\..\temp\csr\table_h.obj \ + ..\..\..\..\..\temp\csr\table_i.obj \ + ..\..\..\..\..\temp\csr\table_j.obj \ + ..\..\..\..\..\temp\csr\table_k.obj \ + ..\..\..\..\..\temp\csr\table_l.obj \ + ..\..\..\..\..\temp\csr\table_m.obj \ + ..\..\..\..\..\temp\csr\table_n.obj \ + ..\..\..\..\..\temp\csr\table_o.obj \ + ..\..\..\..\..\temp\csr\table_p.obj \ + ..\..\..\..\..\temp\csr\table_q.obj \ + ..\..\..\..\..\temp\csr\table_r.obj \ + ..\..\..\..\..\temp\csr\table_s.obj \ + ..\..\..\..\..\temp\csr\table_t.obj \ + ..\..\..\..\..\temp\csr\table_u.obj \ + ..\..\..\..\..\temp\csr\table_v.obj \ + ..\..\..\..\..\temp\csr\table_w.obj \ + ..\..\..\..\..\temp\csr\table_x.obj \ + ..\..\..\..\..\temp\csr\table_y.obj \ + ..\..\..\..\..\temp\csr\table_z.obj \ + ..\..\..\..\..\temp\csr\ta_utility.obj \ + ..\..\..\..\..\temp\csr\ta_ACOS.obj \ + ..\..\..\..\..\temp\csr\ta_AD.obj \ + ..\..\..\..\..\temp\csr\ta_ADD.obj \ + ..\..\..\..\..\temp\csr\ta_ADOSC.obj \ + ..\..\..\..\..\temp\csr\ta_ADX.obj \ + ..\..\..\..\..\temp\csr\ta_ADXR.obj \ + ..\..\..\..\..\temp\csr\ta_APO.obj \ + ..\..\..\..\..\temp\csr\ta_AROON.obj \ + ..\..\..\..\..\temp\csr\ta_AROONOSC.obj \ + ..\..\..\..\..\temp\csr\ta_ASIN.obj \ + ..\..\..\..\..\temp\csr\ta_ATAN.obj \ + ..\..\..\..\..\temp\csr\ta_ATR.obj \ + ..\..\..\..\..\temp\csr\ta_AVGPRICE.obj \ + ..\..\..\..\..\temp\csr\ta_BBANDS.obj \ + ..\..\..\..\..\temp\csr\ta_BETA.obj \ + ..\..\..\..\..\temp\csr\ta_BOP.obj \ + ..\..\..\..\..\temp\csr\ta_CCI.obj \ + ..\..\..\..\..\temp\csr\ta_CDL2CROWS.obj \ + ..\..\..\..\..\temp\csr\ta_CDL3BLACKCROWS.obj \ + ..\..\..\..\..\temp\csr\ta_CDL3INSIDE.obj \ + ..\..\..\..\..\temp\csr\ta_CDL3LINESTRIKE.obj \ + ..\..\..\..\..\temp\csr\ta_CDL3OUTSIDE.obj \ + ..\..\..\..\..\temp\csr\ta_CDL3STARSINSOUTH.obj \ + ..\..\..\..\..\temp\csr\ta_CDL3WHITESOLDIERS.obj \ + ..\..\..\..\..\temp\csr\ta_CDLABANDONEDBABY.obj \ + ..\..\..\..\..\temp\csr\ta_CDLADVANCEBLOCK.obj \ + ..\..\..\..\..\temp\csr\ta_CDLBELTHOLD.obj \ + ..\..\..\..\..\temp\csr\ta_CDLBREAKAWAY.obj \ + ..\..\..\..\..\temp\csr\ta_CDLCLOSINGMARUBOZU.obj \ + ..\..\..\..\..\temp\csr\ta_CDLCONCEALBABYSWALL.obj \ + ..\..\..\..\..\temp\csr\ta_CDLCOUNTERATTACK.obj \ + ..\..\..\..\..\temp\csr\ta_CDLDARKCLOUDCOVER.obj \ + ..\..\..\..\..\temp\csr\ta_CDLDOJI.obj \ + ..\..\..\..\..\temp\csr\ta_CDLDOJISTAR.obj \ + ..\..\..\..\..\temp\csr\ta_CDLDRAGONFLYDOJI.obj \ + ..\..\..\..\..\temp\csr\ta_CDLENGULFING.obj \ + ..\..\..\..\..\temp\csr\ta_CDLEVENINGDOJISTAR.obj \ + ..\..\..\..\..\temp\csr\ta_CDLEVENINGSTAR.obj \ + ..\..\..\..\..\temp\csr\ta_CDLGAPSIDESIDEWHITE.obj \ + ..\..\..\..\..\temp\csr\ta_CDLGRAVESTONEDOJI.obj \ + ..\..\..\..\..\temp\csr\ta_CDLHAMMER.obj \ + ..\..\..\..\..\temp\csr\ta_CDLHANGINGMAN.obj \ + ..\..\..\..\..\temp\csr\ta_CDLHARAMI.obj \ + ..\..\..\..\..\temp\csr\ta_CDLHARAMICROSS.obj \ + ..\..\..\..\..\temp\csr\ta_CDLHIGHWAVE.obj \ + ..\..\..\..\..\temp\csr\ta_CDLHIKKAKE.obj \ + ..\..\..\..\..\temp\csr\ta_CDLHIKKAKEMOD.obj \ + ..\..\..\..\..\temp\csr\ta_CDLHOMINGPIGEON.obj \ + ..\..\..\..\..\temp\csr\ta_CDLIDENTICAL3CROWS.obj \ + ..\..\..\..\..\temp\csr\ta_CDLINNECK.obj \ + ..\..\..\..\..\temp\csr\ta_CDLINVERTEDHAMMER.obj \ + ..\..\..\..\..\temp\csr\ta_CDLKICKING.obj \ + ..\..\..\..\..\temp\csr\ta_CDLKICKINGBYLENGTH.obj \ + ..\..\..\..\..\temp\csr\ta_CDLLADDERBOTTOM.obj \ + ..\..\..\..\..\temp\csr\ta_CDLLONGLEGGEDDOJI.obj \ + ..\..\..\..\..\temp\csr\ta_CDLLONGLINE.obj \ + ..\..\..\..\..\temp\csr\ta_CDLMARUBOZU.obj \ + ..\..\..\..\..\temp\csr\ta_CDLMATCHINGLOW.obj \ + ..\..\..\..\..\temp\csr\ta_CDLMATHOLD.obj \ + ..\..\..\..\..\temp\csr\ta_CDLMORNINGDOJISTAR.obj \ + ..\..\..\..\..\temp\csr\ta_CDLMORNINGSTAR.obj \ + ..\..\..\..\..\temp\csr\ta_CDLONNECK.obj \ + ..\..\..\..\..\temp\csr\ta_CDLPIERCING.obj \ + ..\..\..\..\..\temp\csr\ta_CDLRICKSHAWMAN.obj \ + ..\..\..\..\..\temp\csr\ta_CDLRISEFALL3METHODS.obj \ + ..\..\..\..\..\temp\csr\ta_CDLSEPARATINGLINES.obj \ + ..\..\..\..\..\temp\csr\ta_CDLSHOOTINGSTAR.obj \ + ..\..\..\..\..\temp\csr\ta_CDLSHORTLINE.obj \ + ..\..\..\..\..\temp\csr\ta_CDLSPINNINGTOP.obj \ + ..\..\..\..\..\temp\csr\ta_CDLSTALLEDPATTERN.obj \ + ..\..\..\..\..\temp\csr\ta_CDLSTICKSANDWICH.obj \ + ..\..\..\..\..\temp\csr\ta_CDLTAKURI.obj \ + ..\..\..\..\..\temp\csr\ta_CDLTASUKIGAP.obj \ + ..\..\..\..\..\temp\csr\ta_CDLTHRUSTING.obj \ + ..\..\..\..\..\temp\csr\ta_CDLTRISTAR.obj \ + ..\..\..\..\..\temp\csr\ta_CDLUNIQUE3RIVER.obj \ + ..\..\..\..\..\temp\csr\ta_CDLUPSIDEGAP2CROWS.obj \ + ..\..\..\..\..\temp\csr\ta_CDLXSIDEGAP3METHODS.obj \ + ..\..\..\..\..\temp\csr\ta_CEIL.obj \ + ..\..\..\..\..\temp\csr\ta_CMO.obj \ + ..\..\..\..\..\temp\csr\ta_CORREL.obj \ + ..\..\..\..\..\temp\csr\ta_COS.obj \ + ..\..\..\..\..\temp\csr\ta_COSH.obj \ + ..\..\..\..\..\temp\csr\ta_DEMA.obj \ + ..\..\..\..\..\temp\csr\ta_DIV.obj \ + ..\..\..\..\..\temp\csr\ta_DX.obj \ + ..\..\..\..\..\temp\csr\ta_EMA.obj \ + ..\..\..\..\..\temp\csr\ta_EXP.obj \ + ..\..\..\..\..\temp\csr\ta_FLOOR.obj \ + ..\..\..\..\..\temp\csr\ta_HT_DCPERIOD.obj \ + ..\..\..\..\..\temp\csr\ta_HT_DCPHASE.obj \ + ..\..\..\..\..\temp\csr\ta_HT_PHASOR.obj \ + ..\..\..\..\..\temp\csr\ta_HT_SINE.obj \ + ..\..\..\..\..\temp\csr\ta_HT_TRENDLINE.obj \ + ..\..\..\..\..\temp\csr\ta_HT_TRENDMODE.obj \ + ..\..\..\..\..\temp\csr\ta_KAMA.obj \ + ..\..\..\..\..\temp\csr\ta_LINEARREG.obj \ + ..\..\..\..\..\temp\csr\ta_LINEARREG_ANGLE.obj \ + ..\..\..\..\..\temp\csr\ta_LINEARREG_INTERCEPT.obj \ + ..\..\..\..\..\temp\csr\ta_LINEARREG_SLOPE.obj \ + ..\..\..\..\..\temp\csr\ta_LN.obj \ + ..\..\..\..\..\temp\csr\ta_LOG10.obj \ + ..\..\..\..\..\temp\csr\ta_MA.obj \ + ..\..\..\..\..\temp\csr\ta_MACD.obj \ + ..\..\..\..\..\temp\csr\ta_MACDEXT.obj \ + ..\..\..\..\..\temp\csr\ta_MACDFIX.obj \ + ..\..\..\..\..\temp\csr\ta_MAMA.obj \ + ..\..\..\..\..\temp\csr\ta_MAVP.obj \ + ..\..\..\..\..\temp\csr\ta_MAX.obj \ + ..\..\..\..\..\temp\csr\ta_MAXINDEX.obj \ + ..\..\..\..\..\temp\csr\ta_MEDPRICE.obj \ + ..\..\..\..\..\temp\csr\ta_MFI.obj \ + ..\..\..\..\..\temp\csr\ta_MIDPOINT.obj \ + ..\..\..\..\..\temp\csr\ta_MIDPRICE.obj \ + ..\..\..\..\..\temp\csr\ta_MIN.obj \ + ..\..\..\..\..\temp\csr\ta_MININDEX.obj \ + ..\..\..\..\..\temp\csr\ta_MINMAX.obj \ + ..\..\..\..\..\temp\csr\ta_MINMAXINDEX.obj \ + ..\..\..\..\..\temp\csr\ta_MINUS_DI.obj \ + ..\..\..\..\..\temp\csr\ta_MINUS_DM.obj \ + ..\..\..\..\..\temp\csr\ta_MOM.obj \ + ..\..\..\..\..\temp\csr\ta_MULT.obj \ + ..\..\..\..\..\temp\csr\ta_NATR.obj \ + ..\..\..\..\..\temp\csr\ta_OBV.obj \ + ..\..\..\..\..\temp\csr\ta_PLUS_DI.obj \ + ..\..\..\..\..\temp\csr\ta_PLUS_DM.obj \ + ..\..\..\..\..\temp\csr\ta_PPO.obj \ + ..\..\..\..\..\temp\csr\ta_ROC.obj \ + ..\..\..\..\..\temp\csr\ta_ROCP.obj \ + ..\..\..\..\..\temp\csr\ta_ROCR.obj \ + ..\..\..\..\..\temp\csr\ta_ROCR100.obj \ + ..\..\..\..\..\temp\csr\ta_RSI.obj \ + ..\..\..\..\..\temp\csr\ta_SAR.obj \ + ..\..\..\..\..\temp\csr\ta_SAREXT.obj \ + ..\..\..\..\..\temp\csr\ta_SIN.obj \ + ..\..\..\..\..\temp\csr\ta_SINH.obj \ + ..\..\..\..\..\temp\csr\ta_SMA.obj \ + ..\..\..\..\..\temp\csr\ta_SQRT.obj \ + ..\..\..\..\..\temp\csr\ta_STDDEV.obj \ + ..\..\..\..\..\temp\csr\ta_STOCH.obj \ + ..\..\..\..\..\temp\csr\ta_STOCHF.obj \ + ..\..\..\..\..\temp\csr\ta_STOCHRSI.obj \ + ..\..\..\..\..\temp\csr\ta_SUB.obj \ + ..\..\..\..\..\temp\csr\ta_SUM.obj \ + ..\..\..\..\..\temp\csr\ta_T3.obj \ + ..\..\..\..\..\temp\csr\ta_TAN.obj \ + ..\..\..\..\..\temp\csr\ta_TANH.obj \ + ..\..\..\..\..\temp\csr\ta_TEMA.obj \ + ..\..\..\..\..\temp\csr\ta_TRANGE.obj \ + ..\..\..\..\..\temp\csr\ta_TRIMA.obj \ + ..\..\..\..\..\temp\csr\ta_TRIX.obj \ + ..\..\..\..\..\temp\csr\ta_TSF.obj \ + ..\..\..\..\..\temp\csr\ta_TYPPRICE.obj \ + ..\..\..\..\..\temp\csr\ta_ULTOSC.obj \ + ..\..\..\..\..\temp\csr\ta_VAR.obj \ + ..\..\..\..\..\temp\csr\ta_WCLPRICE.obj \ + ..\..\..\..\..\temp\csr\ta_WILLR.obj \ + ..\..\..\..\..\temp\csr\ta_WMA.obj +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ..\..\..\..\..\lib\ta_libc_csr.lib +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .c + +.cpp.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.cxx.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.cc.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.c.obj: + $(CC) -c $(CFLAGS) $(INCPATH) -o$@ $< + +####### Build rules + +all: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + -del $(TARGET) + $(LIB) $(TARGET) @&&| ++..\..\..\..\..\temp\csr\ta_global.obj \ ++..\..\..\..\..\temp\csr\ta_retcode.obj \ ++..\..\..\..\..\temp\csr\ta_version.obj \ ++..\..\..\..\..\temp\csr\ta_abstract.obj \ ++..\..\..\..\..\temp\csr\ta_def_ui.obj \ ++..\..\..\..\..\temp\csr\ta_func_api.obj \ ++..\..\..\..\..\temp\csr\ta_group_idx.obj \ ++..\..\..\..\..\temp\csr\ta_frame.obj \ ++..\..\..\..\..\temp\csr\table_a.obj \ ++..\..\..\..\..\temp\csr\table_b.obj \ ++..\..\..\..\..\temp\csr\table_c.obj \ ++..\..\..\..\..\temp\csr\table_d.obj \ ++..\..\..\..\..\temp\csr\table_e.obj \ ++..\..\..\..\..\temp\csr\table_f.obj \ ++..\..\..\..\..\temp\csr\table_g.obj \ ++..\..\..\..\..\temp\csr\table_h.obj \ ++..\..\..\..\..\temp\csr\table_i.obj \ ++..\..\..\..\..\temp\csr\table_j.obj \ ++..\..\..\..\..\temp\csr\table_k.obj \ ++..\..\..\..\..\temp\csr\table_l.obj \ ++..\..\..\..\..\temp\csr\table_m.obj \ ++..\..\..\..\..\temp\csr\table_n.obj \ ++..\..\..\..\..\temp\csr\table_o.obj \ ++..\..\..\..\..\temp\csr\table_p.obj \ ++..\..\..\..\..\temp\csr\table_q.obj \ ++..\..\..\..\..\temp\csr\table_r.obj \ ++..\..\..\..\..\temp\csr\table_s.obj \ ++..\..\..\..\..\temp\csr\table_t.obj \ ++..\..\..\..\..\temp\csr\table_u.obj \ ++..\..\..\..\..\temp\csr\table_v.obj \ ++..\..\..\..\..\temp\csr\table_w.obj \ ++..\..\..\..\..\temp\csr\table_x.obj \ ++..\..\..\..\..\temp\csr\table_y.obj \ ++..\..\..\..\..\temp\csr\table_z.obj \ ++..\..\..\..\..\temp\csr\ta_utility.obj \ ++..\..\..\..\..\temp\csr\ta_ACOS.obj \ ++..\..\..\..\..\temp\csr\ta_AD.obj \ ++..\..\..\..\..\temp\csr\ta_ADD.obj \ ++..\..\..\..\..\temp\csr\ta_ADOSC.obj \ ++..\..\..\..\..\temp\csr\ta_ADX.obj \ ++..\..\..\..\..\temp\csr\ta_ADXR.obj \ ++..\..\..\..\..\temp\csr\ta_APO.obj \ ++..\..\..\..\..\temp\csr\ta_AROON.obj \ ++..\..\..\..\..\temp\csr\ta_AROONOSC.obj \ ++..\..\..\..\..\temp\csr\ta_ASIN.obj \ ++..\..\..\..\..\temp\csr\ta_ATAN.obj \ ++..\..\..\..\..\temp\csr\ta_ATR.obj \ ++..\..\..\..\..\temp\csr\ta_AVGPRICE.obj \ ++..\..\..\..\..\temp\csr\ta_BBANDS.obj \ ++..\..\..\..\..\temp\csr\ta_BETA.obj \ ++..\..\..\..\..\temp\csr\ta_BOP.obj \ ++..\..\..\..\..\temp\csr\ta_CCI.obj \ ++..\..\..\..\..\temp\csr\ta_CDL2CROWS.obj \ ++..\..\..\..\..\temp\csr\ta_CDL3BLACKCROWS.obj \ ++..\..\..\..\..\temp\csr\ta_CDL3INSIDE.obj \ ++..\..\..\..\..\temp\csr\ta_CDL3LINESTRIKE.obj \ ++..\..\..\..\..\temp\csr\ta_CDL3OUTSIDE.obj \ ++..\..\..\..\..\temp\csr\ta_CDL3STARSINSOUTH.obj \ ++..\..\..\..\..\temp\csr\ta_CDL3WHITESOLDIERS.obj \ ++..\..\..\..\..\temp\csr\ta_CDLABANDONEDBABY.obj \ ++..\..\..\..\..\temp\csr\ta_CDLADVANCEBLOCK.obj \ ++..\..\..\..\..\temp\csr\ta_CDLBELTHOLD.obj \ ++..\..\..\..\..\temp\csr\ta_CDLBREAKAWAY.obj \ ++..\..\..\..\..\temp\csr\ta_CDLCLOSINGMARUBOZU.obj \ ++..\..\..\..\..\temp\csr\ta_CDLCONCEALBABYSWALL.obj \ ++..\..\..\..\..\temp\csr\ta_CDLCOUNTERATTACK.obj \ ++..\..\..\..\..\temp\csr\ta_CDLDARKCLOUDCOVER.obj \ ++..\..\..\..\..\temp\csr\ta_CDLDOJI.obj \ ++..\..\..\..\..\temp\csr\ta_CDLDOJISTAR.obj \ ++..\..\..\..\..\temp\csr\ta_CDLDRAGONFLYDOJI.obj \ ++..\..\..\..\..\temp\csr\ta_CDLENGULFING.obj \ ++..\..\..\..\..\temp\csr\ta_CDLEVENINGDOJISTAR.obj \ ++..\..\..\..\..\temp\csr\ta_CDLEVENINGSTAR.obj \ ++..\..\..\..\..\temp\csr\ta_CDLGAPSIDESIDEWHITE.obj \ ++..\..\..\..\..\temp\csr\ta_CDLGRAVESTONEDOJI.obj \ ++..\..\..\..\..\temp\csr\ta_CDLHAMMER.obj \ ++..\..\..\..\..\temp\csr\ta_CDLHANGINGMAN.obj \ ++..\..\..\..\..\temp\csr\ta_CDLHARAMI.obj \ ++..\..\..\..\..\temp\csr\ta_CDLHARAMICROSS.obj \ ++..\..\..\..\..\temp\csr\ta_CDLHIGHWAVE.obj \ ++..\..\..\..\..\temp\csr\ta_CDLHIKKAKE.obj \ ++..\..\..\..\..\temp\csr\ta_CDLHIKKAKEMOD.obj \ ++..\..\..\..\..\temp\csr\ta_CDLHOMINGPIGEON.obj \ ++..\..\..\..\..\temp\csr\ta_CDLIDENTICAL3CROWS.obj \ ++..\..\..\..\..\temp\csr\ta_CDLINNECK.obj \ ++..\..\..\..\..\temp\csr\ta_CDLINVERTEDHAMMER.obj \ ++..\..\..\..\..\temp\csr\ta_CDLKICKING.obj \ ++..\..\..\..\..\temp\csr\ta_CDLKICKINGBYLENGTH.obj \ ++..\..\..\..\..\temp\csr\ta_CDLLADDERBOTTOM.obj \ ++..\..\..\..\..\temp\csr\ta_CDLLONGLEGGEDDOJI.obj \ ++..\..\..\..\..\temp\csr\ta_CDLLONGLINE.obj \ ++..\..\..\..\..\temp\csr\ta_CDLMARUBOZU.obj \ ++..\..\..\..\..\temp\csr\ta_CDLMATCHINGLOW.obj \ ++..\..\..\..\..\temp\csr\ta_CDLMATHOLD.obj \ ++..\..\..\..\..\temp\csr\ta_CDLMORNINGDOJISTAR.obj \ ++..\..\..\..\..\temp\csr\ta_CDLMORNINGSTAR.obj \ ++..\..\..\..\..\temp\csr\ta_CDLONNECK.obj \ ++..\..\..\..\..\temp\csr\ta_CDLPIERCING.obj \ ++..\..\..\..\..\temp\csr\ta_CDLRICKSHAWMAN.obj \ ++..\..\..\..\..\temp\csr\ta_CDLRISEFALL3METHODS.obj \ ++..\..\..\..\..\temp\csr\ta_CDLSEPARATINGLINES.obj \ ++..\..\..\..\..\temp\csr\ta_CDLSHOOTINGSTAR.obj \ ++..\..\..\..\..\temp\csr\ta_CDLSHORTLINE.obj \ ++..\..\..\..\..\temp\csr\ta_CDLSPINNINGTOP.obj \ ++..\..\..\..\..\temp\csr\ta_CDLSTALLEDPATTERN.obj \ ++..\..\..\..\..\temp\csr\ta_CDLSTICKSANDWICH.obj \ ++..\..\..\..\..\temp\csr\ta_CDLTAKURI.obj \ ++..\..\..\..\..\temp\csr\ta_CDLTASUKIGAP.obj \ ++..\..\..\..\..\temp\csr\ta_CDLTHRUSTING.obj \ ++..\..\..\..\..\temp\csr\ta_CDLTRISTAR.obj \ ++..\..\..\..\..\temp\csr\ta_CDLUNIQUE3RIVER.obj \ ++..\..\..\..\..\temp\csr\ta_CDLUPSIDEGAP2CROWS.obj \ ++..\..\..\..\..\temp\csr\ta_CDLXSIDEGAP3METHODS.obj \ ++..\..\..\..\..\temp\csr\ta_CEIL.obj \ ++..\..\..\..\..\temp\csr\ta_CMO.obj \ ++..\..\..\..\..\temp\csr\ta_CORREL.obj \ ++..\..\..\..\..\temp\csr\ta_COS.obj \ ++..\..\..\..\..\temp\csr\ta_COSH.obj \ ++..\..\..\..\..\temp\csr\ta_DEMA.obj \ ++..\..\..\..\..\temp\csr\ta_DIV.obj \ ++..\..\..\..\..\temp\csr\ta_DX.obj \ ++..\..\..\..\..\temp\csr\ta_EMA.obj \ ++..\..\..\..\..\temp\csr\ta_EXP.obj \ ++..\..\..\..\..\temp\csr\ta_FLOOR.obj \ ++..\..\..\..\..\temp\csr\ta_HT_DCPERIOD.obj \ ++..\..\..\..\..\temp\csr\ta_HT_DCPHASE.obj \ ++..\..\..\..\..\temp\csr\ta_HT_PHASOR.obj \ ++..\..\..\..\..\temp\csr\ta_HT_SINE.obj \ ++..\..\..\..\..\temp\csr\ta_HT_TRENDLINE.obj \ ++..\..\..\..\..\temp\csr\ta_HT_TRENDMODE.obj \ ++..\..\..\..\..\temp\csr\ta_KAMA.obj \ ++..\..\..\..\..\temp\csr\ta_LINEARREG.obj \ ++..\..\..\..\..\temp\csr\ta_LINEARREG_ANGLE.obj \ ++..\..\..\..\..\temp\csr\ta_LINEARREG_INTERCEPT.obj \ ++..\..\..\..\..\temp\csr\ta_LINEARREG_SLOPE.obj \ ++..\..\..\..\..\temp\csr\ta_LN.obj \ ++..\..\..\..\..\temp\csr\ta_LOG10.obj \ ++..\..\..\..\..\temp\csr\ta_MA.obj \ ++..\..\..\..\..\temp\csr\ta_MACD.obj \ ++..\..\..\..\..\temp\csr\ta_MACDEXT.obj \ ++..\..\..\..\..\temp\csr\ta_MACDFIX.obj \ ++..\..\..\..\..\temp\csr\ta_MAMA.obj \ ++..\..\..\..\..\temp\csr\ta_MAVP.obj \ ++..\..\..\..\..\temp\csr\ta_MAX.obj \ ++..\..\..\..\..\temp\csr\ta_MAXINDEX.obj \ ++..\..\..\..\..\temp\csr\ta_MEDPRICE.obj \ ++..\..\..\..\..\temp\csr\ta_MFI.obj \ ++..\..\..\..\..\temp\csr\ta_MIDPOINT.obj \ ++..\..\..\..\..\temp\csr\ta_MIDPRICE.obj \ ++..\..\..\..\..\temp\csr\ta_MIN.obj \ ++..\..\..\..\..\temp\csr\ta_MININDEX.obj \ ++..\..\..\..\..\temp\csr\ta_MINMAX.obj \ ++..\..\..\..\..\temp\csr\ta_MINMAXINDEX.obj \ ++..\..\..\..\..\temp\csr\ta_MINUS_DI.obj \ ++..\..\..\..\..\temp\csr\ta_MINUS_DM.obj \ ++..\..\..\..\..\temp\csr\ta_MOM.obj \ ++..\..\..\..\..\temp\csr\ta_MULT.obj \ ++..\..\..\..\..\temp\csr\ta_NATR.obj \ ++..\..\..\..\..\temp\csr\ta_OBV.obj \ ++..\..\..\..\..\temp\csr\ta_PLUS_DI.obj \ ++..\..\..\..\..\temp\csr\ta_PLUS_DM.obj \ ++..\..\..\..\..\temp\csr\ta_PPO.obj \ ++..\..\..\..\..\temp\csr\ta_ROC.obj \ ++..\..\..\..\..\temp\csr\ta_ROCP.obj \ ++..\..\..\..\..\temp\csr\ta_ROCR.obj \ ++..\..\..\..\..\temp\csr\ta_ROCR100.obj \ ++..\..\..\..\..\temp\csr\ta_RSI.obj \ ++..\..\..\..\..\temp\csr\ta_SAR.obj \ ++..\..\..\..\..\temp\csr\ta_SAREXT.obj \ ++..\..\..\..\..\temp\csr\ta_SIN.obj \ ++..\..\..\..\..\temp\csr\ta_SINH.obj \ ++..\..\..\..\..\temp\csr\ta_SMA.obj \ ++..\..\..\..\..\temp\csr\ta_SQRT.obj \ ++..\..\..\..\..\temp\csr\ta_STDDEV.obj \ ++..\..\..\..\..\temp\csr\ta_STOCH.obj \ ++..\..\..\..\..\temp\csr\ta_STOCHF.obj \ ++..\..\..\..\..\temp\csr\ta_STOCHRSI.obj \ ++..\..\..\..\..\temp\csr\ta_SUB.obj \ ++..\..\..\..\..\temp\csr\ta_SUM.obj \ ++..\..\..\..\..\temp\csr\ta_T3.obj \ ++..\..\..\..\..\temp\csr\ta_TAN.obj \ ++..\..\..\..\..\temp\csr\ta_TANH.obj \ ++..\..\..\..\..\temp\csr\ta_TEMA.obj \ ++..\..\..\..\..\temp\csr\ta_TRANGE.obj \ ++..\..\..\..\..\temp\csr\ta_TRIMA.obj \ ++..\..\..\..\..\temp\csr\ta_TRIX.obj \ ++..\..\..\..\..\temp\csr\ta_TSF.obj \ ++..\..\..\..\..\temp\csr\ta_TYPPRICE.obj \ ++..\..\..\..\..\temp\csr\ta_ULTOSC.obj \ ++..\..\..\..\..\temp\csr\ta_VAR.obj \ ++..\..\..\..\..\temp\csr\ta_WCLPRICE.obj \ ++..\..\..\..\..\temp\csr\ta_WILLR.obj \ ++..\..\..\..\..\temp\csr\ta_WMA.obj \ ++ +| + +moc: $(SRCMOC) + +tmake: ../csr/win32/borland/ta_libc/Makefile + +../csr/win32/borland/ta_libc/Makefile: ta_libc/ta_libc.pro + tmake ta_libc/ta_libc.pro -o ../csr/win32/borland/ta_libc/Makefile + +dist: + $(ZIP) ta_libc/ta_libc.zip ta_libc/ta_libc.pro $(SOURCES) $(HEADERS) $(DIST) + +clean: + -del ..\..\..\..\..\temp\csr\ta_global.obj + -del ..\..\..\..\..\temp\csr\ta_retcode.obj + -del ..\..\..\..\..\temp\csr\ta_version.obj + -del ..\..\..\..\..\temp\csr\ta_abstract.obj + -del ..\..\..\..\..\temp\csr\ta_def_ui.obj + -del ..\..\..\..\..\temp\csr\ta_func_api.obj + -del ..\..\..\..\..\temp\csr\ta_group_idx.obj + -del ..\..\..\..\..\temp\csr\ta_frame.obj + -del ..\..\..\..\..\temp\csr\table_a.obj + -del ..\..\..\..\..\temp\csr\table_b.obj + -del ..\..\..\..\..\temp\csr\table_c.obj + -del ..\..\..\..\..\temp\csr\table_d.obj + -del ..\..\..\..\..\temp\csr\table_e.obj + -del ..\..\..\..\..\temp\csr\table_f.obj + -del ..\..\..\..\..\temp\csr\table_g.obj + -del ..\..\..\..\..\temp\csr\table_h.obj + -del ..\..\..\..\..\temp\csr\table_i.obj + -del ..\..\..\..\..\temp\csr\table_j.obj + -del ..\..\..\..\..\temp\csr\table_k.obj + -del ..\..\..\..\..\temp\csr\table_l.obj + -del ..\..\..\..\..\temp\csr\table_m.obj + -del ..\..\..\..\..\temp\csr\table_n.obj + -del ..\..\..\..\..\temp\csr\table_o.obj + -del ..\..\..\..\..\temp\csr\table_p.obj + -del ..\..\..\..\..\temp\csr\table_q.obj + -del ..\..\..\..\..\temp\csr\table_r.obj + -del ..\..\..\..\..\temp\csr\table_s.obj + -del ..\..\..\..\..\temp\csr\table_t.obj + -del ..\..\..\..\..\temp\csr\table_u.obj + -del ..\..\..\..\..\temp\csr\table_v.obj + -del ..\..\..\..\..\temp\csr\table_w.obj + -del ..\..\..\..\..\temp\csr\table_x.obj + -del ..\..\..\..\..\temp\csr\table_y.obj + -del ..\..\..\..\..\temp\csr\table_z.obj + -del ..\..\..\..\..\temp\csr\ta_utility.obj + -del ..\..\..\..\..\temp\csr\ta_ACOS.obj + -del ..\..\..\..\..\temp\csr\ta_AD.obj + -del ..\..\..\..\..\temp\csr\ta_ADD.obj + -del ..\..\..\..\..\temp\csr\ta_ADOSC.obj + -del ..\..\..\..\..\temp\csr\ta_ADX.obj + -del ..\..\..\..\..\temp\csr\ta_ADXR.obj + -del ..\..\..\..\..\temp\csr\ta_APO.obj + -del ..\..\..\..\..\temp\csr\ta_AROON.obj + -del ..\..\..\..\..\temp\csr\ta_AROONOSC.obj + -del ..\..\..\..\..\temp\csr\ta_ASIN.obj + -del ..\..\..\..\..\temp\csr\ta_ATAN.obj + -del ..\..\..\..\..\temp\csr\ta_ATR.obj + -del ..\..\..\..\..\temp\csr\ta_AVGPRICE.obj + -del ..\..\..\..\..\temp\csr\ta_BBANDS.obj + -del ..\..\..\..\..\temp\csr\ta_BETA.obj + -del ..\..\..\..\..\temp\csr\ta_BOP.obj + -del ..\..\..\..\..\temp\csr\ta_CCI.obj + -del ..\..\..\..\..\temp\csr\ta_CDL2CROWS.obj + -del ..\..\..\..\..\temp\csr\ta_CDL3BLACKCROWS.obj + -del ..\..\..\..\..\temp\csr\ta_CDL3INSIDE.obj + -del ..\..\..\..\..\temp\csr\ta_CDL3LINESTRIKE.obj + -del ..\..\..\..\..\temp\csr\ta_CDL3OUTSIDE.obj + -del ..\..\..\..\..\temp\csr\ta_CDL3STARSINSOUTH.obj + -del ..\..\..\..\..\temp\csr\ta_CDL3WHITESOLDIERS.obj + -del ..\..\..\..\..\temp\csr\ta_CDLABANDONEDBABY.obj + -del ..\..\..\..\..\temp\csr\ta_CDLADVANCEBLOCK.obj + -del ..\..\..\..\..\temp\csr\ta_CDLBELTHOLD.obj + -del ..\..\..\..\..\temp\csr\ta_CDLBREAKAWAY.obj + -del ..\..\..\..\..\temp\csr\ta_CDLCLOSINGMARUBOZU.obj + -del ..\..\..\..\..\temp\csr\ta_CDLCONCEALBABYSWALL.obj + -del ..\..\..\..\..\temp\csr\ta_CDLCOUNTERATTACK.obj + -del ..\..\..\..\..\temp\csr\ta_CDLDARKCLOUDCOVER.obj + -del ..\..\..\..\..\temp\csr\ta_CDLDOJI.obj + -del ..\..\..\..\..\temp\csr\ta_CDLDOJISTAR.obj + -del ..\..\..\..\..\temp\csr\ta_CDLDRAGONFLYDOJI.obj + -del ..\..\..\..\..\temp\csr\ta_CDLENGULFING.obj + -del ..\..\..\..\..\temp\csr\ta_CDLEVENINGDOJISTAR.obj + -del ..\..\..\..\..\temp\csr\ta_CDLEVENINGSTAR.obj + -del ..\..\..\..\..\temp\csr\ta_CDLGAPSIDESIDEWHITE.obj + -del ..\..\..\..\..\temp\csr\ta_CDLGRAVESTONEDOJI.obj + -del ..\..\..\..\..\temp\csr\ta_CDLHAMMER.obj + -del ..\..\..\..\..\temp\csr\ta_CDLHANGINGMAN.obj + -del ..\..\..\..\..\temp\csr\ta_CDLHARAMI.obj + -del ..\..\..\..\..\temp\csr\ta_CDLHARAMICROSS.obj + -del ..\..\..\..\..\temp\csr\ta_CDLHIGHWAVE.obj + -del ..\..\..\..\..\temp\csr\ta_CDLHIKKAKE.obj + -del ..\..\..\..\..\temp\csr\ta_CDLHIKKAKEMOD.obj + -del ..\..\..\..\..\temp\csr\ta_CDLHOMINGPIGEON.obj + -del ..\..\..\..\..\temp\csr\ta_CDLIDENTICAL3CROWS.obj + -del ..\..\..\..\..\temp\csr\ta_CDLINNECK.obj + -del ..\..\..\..\..\temp\csr\ta_CDLINVERTEDHAMMER.obj + -del ..\..\..\..\..\temp\csr\ta_CDLKICKING.obj + -del ..\..\..\..\..\temp\csr\ta_CDLKICKINGBYLENGTH.obj + -del ..\..\..\..\..\temp\csr\ta_CDLLADDERBOTTOM.obj + -del ..\..\..\..\..\temp\csr\ta_CDLLONGLEGGEDDOJI.obj + -del ..\..\..\..\..\temp\csr\ta_CDLLONGLINE.obj + -del ..\..\..\..\..\temp\csr\ta_CDLMARUBOZU.obj + -del ..\..\..\..\..\temp\csr\ta_CDLMATCHINGLOW.obj + -del ..\..\..\..\..\temp\csr\ta_CDLMATHOLD.obj + -del ..\..\..\..\..\temp\csr\ta_CDLMORNINGDOJISTAR.obj + -del ..\..\..\..\..\temp\csr\ta_CDLMORNINGSTAR.obj + -del ..\..\..\..\..\temp\csr\ta_CDLONNECK.obj + -del ..\..\..\..\..\temp\csr\ta_CDLPIERCING.obj + -del ..\..\..\..\..\temp\csr\ta_CDLRICKSHAWMAN.obj + -del ..\..\..\..\..\temp\csr\ta_CDLRISEFALL3METHODS.obj + -del ..\..\..\..\..\temp\csr\ta_CDLSEPARATINGLINES.obj + -del ..\..\..\..\..\temp\csr\ta_CDLSHOOTINGSTAR.obj + -del ..\..\..\..\..\temp\csr\ta_CDLSHORTLINE.obj + -del ..\..\..\..\..\temp\csr\ta_CDLSPINNINGTOP.obj + -del ..\..\..\..\..\temp\csr\ta_CDLSTALLEDPATTERN.obj + -del ..\..\..\..\..\temp\csr\ta_CDLSTICKSANDWICH.obj + -del ..\..\..\..\..\temp\csr\ta_CDLTAKURI.obj + -del ..\..\..\..\..\temp\csr\ta_CDLTASUKIGAP.obj + -del ..\..\..\..\..\temp\csr\ta_CDLTHRUSTING.obj + -del ..\..\..\..\..\temp\csr\ta_CDLTRISTAR.obj + -del ..\..\..\..\..\temp\csr\ta_CDLUNIQUE3RIVER.obj + -del ..\..\..\..\..\temp\csr\ta_CDLUPSIDEGAP2CROWS.obj + -del ..\..\..\..\..\temp\csr\ta_CDLXSIDEGAP3METHODS.obj + -del ..\..\..\..\..\temp\csr\ta_CEIL.obj + -del ..\..\..\..\..\temp\csr\ta_CMO.obj + -del ..\..\..\..\..\temp\csr\ta_CORREL.obj + -del ..\..\..\..\..\temp\csr\ta_COS.obj + -del ..\..\..\..\..\temp\csr\ta_COSH.obj + -del ..\..\..\..\..\temp\csr\ta_DEMA.obj + -del ..\..\..\..\..\temp\csr\ta_DIV.obj + -del ..\..\..\..\..\temp\csr\ta_DX.obj + -del ..\..\..\..\..\temp\csr\ta_EMA.obj + -del ..\..\..\..\..\temp\csr\ta_EXP.obj + -del ..\..\..\..\..\temp\csr\ta_FLOOR.obj + -del ..\..\..\..\..\temp\csr\ta_HT_DCPERIOD.obj + -del ..\..\..\..\..\temp\csr\ta_HT_DCPHASE.obj + -del ..\..\..\..\..\temp\csr\ta_HT_PHASOR.obj + -del ..\..\..\..\..\temp\csr\ta_HT_SINE.obj + -del ..\..\..\..\..\temp\csr\ta_HT_TRENDLINE.obj + -del ..\..\..\..\..\temp\csr\ta_HT_TRENDMODE.obj + -del ..\..\..\..\..\temp\csr\ta_KAMA.obj + -del ..\..\..\..\..\temp\csr\ta_LINEARREG.obj + -del ..\..\..\..\..\temp\csr\ta_LINEARREG_ANGLE.obj + -del ..\..\..\..\..\temp\csr\ta_LINEARREG_INTERCEPT.obj + -del ..\..\..\..\..\temp\csr\ta_LINEARREG_SLOPE.obj + -del ..\..\..\..\..\temp\csr\ta_LN.obj + -del ..\..\..\..\..\temp\csr\ta_LOG10.obj + -del ..\..\..\..\..\temp\csr\ta_MA.obj + -del ..\..\..\..\..\temp\csr\ta_MACD.obj + -del ..\..\..\..\..\temp\csr\ta_MACDEXT.obj + -del ..\..\..\..\..\temp\csr\ta_MACDFIX.obj + -del ..\..\..\..\..\temp\csr\ta_MAMA.obj + -del ..\..\..\..\..\temp\csr\ta_MAVP.obj + -del ..\..\..\..\..\temp\csr\ta_MAX.obj + -del ..\..\..\..\..\temp\csr\ta_MAXINDEX.obj + -del ..\..\..\..\..\temp\csr\ta_MEDPRICE.obj + -del ..\..\..\..\..\temp\csr\ta_MFI.obj + -del ..\..\..\..\..\temp\csr\ta_MIDPOINT.obj + -del ..\..\..\..\..\temp\csr\ta_MIDPRICE.obj + -del ..\..\..\..\..\temp\csr\ta_MIN.obj + -del ..\..\..\..\..\temp\csr\ta_MININDEX.obj + -del ..\..\..\..\..\temp\csr\ta_MINMAX.obj + -del ..\..\..\..\..\temp\csr\ta_MINMAXINDEX.obj + -del ..\..\..\..\..\temp\csr\ta_MINUS_DI.obj + -del ..\..\..\..\..\temp\csr\ta_MINUS_DM.obj + -del ..\..\..\..\..\temp\csr\ta_MOM.obj + -del ..\..\..\..\..\temp\csr\ta_MULT.obj + -del ..\..\..\..\..\temp\csr\ta_NATR.obj + -del ..\..\..\..\..\temp\csr\ta_OBV.obj + -del ..\..\..\..\..\temp\csr\ta_PLUS_DI.obj + -del ..\..\..\..\..\temp\csr\ta_PLUS_DM.obj + -del ..\..\..\..\..\temp\csr\ta_PPO.obj + -del ..\..\..\..\..\temp\csr\ta_ROC.obj + -del ..\..\..\..\..\temp\csr\ta_ROCP.obj + -del ..\..\..\..\..\temp\csr\ta_ROCR.obj + -del ..\..\..\..\..\temp\csr\ta_ROCR100.obj + -del ..\..\..\..\..\temp\csr\ta_RSI.obj + -del ..\..\..\..\..\temp\csr\ta_SAR.obj + -del ..\..\..\..\..\temp\csr\ta_SAREXT.obj + -del ..\..\..\..\..\temp\csr\ta_SIN.obj + -del ..\..\..\..\..\temp\csr\ta_SINH.obj + -del ..\..\..\..\..\temp\csr\ta_SMA.obj + -del ..\..\..\..\..\temp\csr\ta_SQRT.obj + -del ..\..\..\..\..\temp\csr\ta_STDDEV.obj + -del ..\..\..\..\..\temp\csr\ta_STOCH.obj + -del ..\..\..\..\..\temp\csr\ta_STOCHF.obj + -del ..\..\..\..\..\temp\csr\ta_STOCHRSI.obj + -del ..\..\..\..\..\temp\csr\ta_SUB.obj + -del ..\..\..\..\..\temp\csr\ta_SUM.obj + -del ..\..\..\..\..\temp\csr\ta_T3.obj + -del ..\..\..\..\..\temp\csr\ta_TAN.obj + -del ..\..\..\..\..\temp\csr\ta_TANH.obj + -del ..\..\..\..\..\temp\csr\ta_TEMA.obj + -del ..\..\..\..\..\temp\csr\ta_TRANGE.obj + -del ..\..\..\..\..\temp\csr\ta_TRIMA.obj + -del ..\..\..\..\..\temp\csr\ta_TRIX.obj + -del ..\..\..\..\..\temp\csr\ta_TSF.obj + -del ..\..\..\..\..\temp\csr\ta_TYPPRICE.obj + -del ..\..\..\..\..\temp\csr\ta_ULTOSC.obj + -del ..\..\..\..\..\temp\csr\ta_VAR.obj + -del ..\..\..\..\..\temp\csr\ta_WCLPRICE.obj + -del ..\..\..\..\..\temp\csr\ta_WILLR.obj + -del ..\..\..\..\..\temp\csr\ta_WMA.obj + -del $(TARGET) + -del ta_libc_csr.tds + -del ../../../../../bin/*.map + -del ../../../../../bin/*._xe + -del ../../../../../bin/*.tds + -del ../../../../../bin/*.pdb + -del ../../../../../bin/*.pbo + -del ../../../../../bin/*.pbi + -del ../../../../../bin/*.pbt + +####### Compile + +..\..\..\..\..\temp\csr\ta_global.obj: ..\..\..\..\..\src\ta_common\ta_global.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_global.obj ..\..\..\..\..\src\ta_common\ta_global.c + +..\..\..\..\..\temp\csr\ta_retcode.obj: ..\..\..\..\..\src\ta_common\ta_retcode.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_retcode.obj ..\..\..\..\..\src\ta_common\ta_retcode.c + +..\..\..\..\..\temp\csr\ta_version.obj: ..\..\..\..\..\src\ta_common\ta_version.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_version.obj ..\..\..\..\..\src\ta_common\ta_version.c + +..\..\..\..\..\temp\csr\ta_abstract.obj: ..\..\..\..\..\src\ta_abstract\ta_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_abstract.obj ..\..\..\..\..\src\ta_abstract\ta_abstract.c + +..\..\..\..\..\temp\csr\ta_def_ui.obj: ..\..\..\..\..\src\ta_abstract\ta_def_ui.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_def_ui.obj ..\..\..\..\..\src\ta_abstract\ta_def_ui.c + +..\..\..\..\..\temp\csr\ta_func_api.obj: ..\..\..\..\..\src\ta_abstract\ta_func_api.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_func_api.obj ..\..\..\..\..\src\ta_abstract\ta_func_api.c + +..\..\..\..\..\temp\csr\ta_group_idx.obj: ..\..\..\..\..\src\ta_abstract\ta_group_idx.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_group_idx.obj ..\..\..\..\..\src\ta_abstract\ta_group_idx.c + +..\..\..\..\..\temp\csr\ta_frame.obj: ..\..\..\..\..\src\ta_abstract\frames\ta_frame.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_frame.obj ..\..\..\..\..\src\ta_abstract\frames\ta_frame.c + +..\..\..\..\..\temp\csr\table_a.obj: ..\..\..\..\..\src\ta_abstract\tables\table_a.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\table_a.obj ..\..\..\..\..\src\ta_abstract\tables\table_a.c + +..\..\..\..\..\temp\csr\table_b.obj: ..\..\..\..\..\src\ta_abstract\tables\table_b.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\table_b.obj ..\..\..\..\..\src\ta_abstract\tables\table_b.c + +..\..\..\..\..\temp\csr\table_c.obj: ..\..\..\..\..\src\ta_abstract\tables\table_c.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\table_c.obj ..\..\..\..\..\src\ta_abstract\tables\table_c.c + +..\..\..\..\..\temp\csr\table_d.obj: ..\..\..\..\..\src\ta_abstract\tables\table_d.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\table_d.obj ..\..\..\..\..\src\ta_abstract\tables\table_d.c + +..\..\..\..\..\temp\csr\table_e.obj: ..\..\..\..\..\src\ta_abstract\tables\table_e.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\table_e.obj ..\..\..\..\..\src\ta_abstract\tables\table_e.c + +..\..\..\..\..\temp\csr\table_f.obj: ..\..\..\..\..\src\ta_abstract\tables\table_f.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\table_f.obj ..\..\..\..\..\src\ta_abstract\tables\table_f.c + +..\..\..\..\..\temp\csr\table_g.obj: ..\..\..\..\..\src\ta_abstract\tables\table_g.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\table_g.obj ..\..\..\..\..\src\ta_abstract\tables\table_g.c + +..\..\..\..\..\temp\csr\table_h.obj: ..\..\..\..\..\src\ta_abstract\tables\table_h.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\table_h.obj ..\..\..\..\..\src\ta_abstract\tables\table_h.c + +..\..\..\..\..\temp\csr\table_i.obj: ..\..\..\..\..\src\ta_abstract\tables\table_i.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\table_i.obj ..\..\..\..\..\src\ta_abstract\tables\table_i.c + +..\..\..\..\..\temp\csr\table_j.obj: ..\..\..\..\..\src\ta_abstract\tables\table_j.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\table_j.obj ..\..\..\..\..\src\ta_abstract\tables\table_j.c + +..\..\..\..\..\temp\csr\table_k.obj: ..\..\..\..\..\src\ta_abstract\tables\table_k.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\table_k.obj ..\..\..\..\..\src\ta_abstract\tables\table_k.c + +..\..\..\..\..\temp\csr\table_l.obj: ..\..\..\..\..\src\ta_abstract\tables\table_l.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\table_l.obj ..\..\..\..\..\src\ta_abstract\tables\table_l.c + +..\..\..\..\..\temp\csr\table_m.obj: ..\..\..\..\..\src\ta_abstract\tables\table_m.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\table_m.obj ..\..\..\..\..\src\ta_abstract\tables\table_m.c + +..\..\..\..\..\temp\csr\table_n.obj: ..\..\..\..\..\src\ta_abstract\tables\table_n.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\table_n.obj ..\..\..\..\..\src\ta_abstract\tables\table_n.c + +..\..\..\..\..\temp\csr\table_o.obj: ..\..\..\..\..\src\ta_abstract\tables\table_o.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\table_o.obj ..\..\..\..\..\src\ta_abstract\tables\table_o.c + +..\..\..\..\..\temp\csr\table_p.obj: ..\..\..\..\..\src\ta_abstract\tables\table_p.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\table_p.obj ..\..\..\..\..\src\ta_abstract\tables\table_p.c + +..\..\..\..\..\temp\csr\table_q.obj: ..\..\..\..\..\src\ta_abstract\tables\table_q.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\table_q.obj ..\..\..\..\..\src\ta_abstract\tables\table_q.c + +..\..\..\..\..\temp\csr\table_r.obj: ..\..\..\..\..\src\ta_abstract\tables\table_r.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\table_r.obj ..\..\..\..\..\src\ta_abstract\tables\table_r.c + +..\..\..\..\..\temp\csr\table_s.obj: ..\..\..\..\..\src\ta_abstract\tables\table_s.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\table_s.obj ..\..\..\..\..\src\ta_abstract\tables\table_s.c + +..\..\..\..\..\temp\csr\table_t.obj: ..\..\..\..\..\src\ta_abstract\tables\table_t.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\table_t.obj ..\..\..\..\..\src\ta_abstract\tables\table_t.c + +..\..\..\..\..\temp\csr\table_u.obj: ..\..\..\..\..\src\ta_abstract\tables\table_u.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\table_u.obj ..\..\..\..\..\src\ta_abstract\tables\table_u.c + +..\..\..\..\..\temp\csr\table_v.obj: ..\..\..\..\..\src\ta_abstract\tables\table_v.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\table_v.obj ..\..\..\..\..\src\ta_abstract\tables\table_v.c + +..\..\..\..\..\temp\csr\table_w.obj: ..\..\..\..\..\src\ta_abstract\tables\table_w.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\table_w.obj ..\..\..\..\..\src\ta_abstract\tables\table_w.c + +..\..\..\..\..\temp\csr\table_x.obj: ..\..\..\..\..\src\ta_abstract\tables\table_x.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\table_x.obj ..\..\..\..\..\src\ta_abstract\tables\table_x.c + +..\..\..\..\..\temp\csr\table_y.obj: ..\..\..\..\..\src\ta_abstract\tables\table_y.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\table_y.obj ..\..\..\..\..\src\ta_abstract\tables\table_y.c + +..\..\..\..\..\temp\csr\table_z.obj: ..\..\..\..\..\src\ta_abstract\tables\table_z.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\table_z.obj ..\..\..\..\..\src\ta_abstract\tables\table_z.c + +..\..\..\..\..\temp\csr\ta_utility.obj: ..\..\..\..\..\src\ta_func\ta_utility.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_utility.obj ..\..\..\..\..\src\ta_func\ta_utility.c + +..\..\..\..\..\temp\csr\ta_ACOS.obj: ..\..\..\..\..\src\ta_func\ta_ACOS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_ACOS.obj ..\..\..\..\..\src\ta_func\ta_ACOS.c + +..\..\..\..\..\temp\csr\ta_AD.obj: ..\..\..\..\..\src\ta_func\ta_AD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_AD.obj ..\..\..\..\..\src\ta_func\ta_AD.c + +..\..\..\..\..\temp\csr\ta_ADD.obj: ..\..\..\..\..\src\ta_func\ta_ADD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_ADD.obj ..\..\..\..\..\src\ta_func\ta_ADD.c + +..\..\..\..\..\temp\csr\ta_ADOSC.obj: ..\..\..\..\..\src\ta_func\ta_ADOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_ADOSC.obj ..\..\..\..\..\src\ta_func\ta_ADOSC.c + +..\..\..\..\..\temp\csr\ta_ADX.obj: ..\..\..\..\..\src\ta_func\ta_ADX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_ADX.obj ..\..\..\..\..\src\ta_func\ta_ADX.c + +..\..\..\..\..\temp\csr\ta_ADXR.obj: ..\..\..\..\..\src\ta_func\ta_ADXR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_ADXR.obj ..\..\..\..\..\src\ta_func\ta_ADXR.c + +..\..\..\..\..\temp\csr\ta_APO.obj: ..\..\..\..\..\src\ta_func\ta_APO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_APO.obj ..\..\..\..\..\src\ta_func\ta_APO.c + +..\..\..\..\..\temp\csr\ta_AROON.obj: ..\..\..\..\..\src\ta_func\ta_AROON.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_AROON.obj ..\..\..\..\..\src\ta_func\ta_AROON.c + +..\..\..\..\..\temp\csr\ta_AROONOSC.obj: ..\..\..\..\..\src\ta_func\ta_AROONOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_AROONOSC.obj ..\..\..\..\..\src\ta_func\ta_AROONOSC.c + +..\..\..\..\..\temp\csr\ta_ASIN.obj: ..\..\..\..\..\src\ta_func\ta_ASIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_ASIN.obj ..\..\..\..\..\src\ta_func\ta_ASIN.c + +..\..\..\..\..\temp\csr\ta_ATAN.obj: ..\..\..\..\..\src\ta_func\ta_ATAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_ATAN.obj ..\..\..\..\..\src\ta_func\ta_ATAN.c + +..\..\..\..\..\temp\csr\ta_ATR.obj: ..\..\..\..\..\src\ta_func\ta_ATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_ATR.obj ..\..\..\..\..\src\ta_func\ta_ATR.c + +..\..\..\..\..\temp\csr\ta_AVGPRICE.obj: ..\..\..\..\..\src\ta_func\ta_AVGPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_AVGPRICE.obj ..\..\..\..\..\src\ta_func\ta_AVGPRICE.c + +..\..\..\..\..\temp\csr\ta_BBANDS.obj: ..\..\..\..\..\src\ta_func\ta_BBANDS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_BBANDS.obj ..\..\..\..\..\src\ta_func\ta_BBANDS.c + +..\..\..\..\..\temp\csr\ta_BETA.obj: ..\..\..\..\..\src\ta_func\ta_BETA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_BETA.obj ..\..\..\..\..\src\ta_func\ta_BETA.c + +..\..\..\..\..\temp\csr\ta_BOP.obj: ..\..\..\..\..\src\ta_func\ta_BOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_BOP.obj ..\..\..\..\..\src\ta_func\ta_BOP.c + +..\..\..\..\..\temp\csr\ta_CCI.obj: ..\..\..\..\..\src\ta_func\ta_CCI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CCI.obj ..\..\..\..\..\src\ta_func\ta_CCI.c + +..\..\..\..\..\temp\csr\ta_CDL2CROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDL2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDL2CROWS.obj ..\..\..\..\..\src\ta_func\ta_CDL2CROWS.c + +..\..\..\..\..\temp\csr\ta_CDL3BLACKCROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDL3BLACKCROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDL3BLACKCROWS.obj ..\..\..\..\..\src\ta_func\ta_CDL3BLACKCROWS.c + +..\..\..\..\..\temp\csr\ta_CDL3INSIDE.obj: ..\..\..\..\..\src\ta_func\ta_CDL3INSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDL3INSIDE.obj ..\..\..\..\..\src\ta_func\ta_CDL3INSIDE.c + +..\..\..\..\..\temp\csr\ta_CDL3LINESTRIKE.obj: ..\..\..\..\..\src\ta_func\ta_CDL3LINESTRIKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDL3LINESTRIKE.obj ..\..\..\..\..\src\ta_func\ta_CDL3LINESTRIKE.c + +..\..\..\..\..\temp\csr\ta_CDL3OUTSIDE.obj: ..\..\..\..\..\src\ta_func\ta_CDL3OUTSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDL3OUTSIDE.obj ..\..\..\..\..\src\ta_func\ta_CDL3OUTSIDE.c + +..\..\..\..\..\temp\csr\ta_CDL3STARSINSOUTH.obj: ..\..\..\..\..\src\ta_func\ta_CDL3STARSINSOUTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDL3STARSINSOUTH.obj ..\..\..\..\..\src\ta_func\ta_CDL3STARSINSOUTH.c + +..\..\..\..\..\temp\csr\ta_CDL3WHITESOLDIERS.obj: ..\..\..\..\..\src\ta_func\ta_CDL3WHITESOLDIERS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDL3WHITESOLDIERS.obj ..\..\..\..\..\src\ta_func\ta_CDL3WHITESOLDIERS.c + +..\..\..\..\..\temp\csr\ta_CDLABANDONEDBABY.obj: ..\..\..\..\..\src\ta_func\ta_CDLABANDONEDBABY.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLABANDONEDBABY.obj ..\..\..\..\..\src\ta_func\ta_CDLABANDONEDBABY.c + +..\..\..\..\..\temp\csr\ta_CDLADVANCEBLOCK.obj: ..\..\..\..\..\src\ta_func\ta_CDLADVANCEBLOCK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLADVANCEBLOCK.obj ..\..\..\..\..\src\ta_func\ta_CDLADVANCEBLOCK.c + +..\..\..\..\..\temp\csr\ta_CDLBELTHOLD.obj: ..\..\..\..\..\src\ta_func\ta_CDLBELTHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLBELTHOLD.obj ..\..\..\..\..\src\ta_func\ta_CDLBELTHOLD.c + +..\..\..\..\..\temp\csr\ta_CDLBREAKAWAY.obj: ..\..\..\..\..\src\ta_func\ta_CDLBREAKAWAY.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLBREAKAWAY.obj ..\..\..\..\..\src\ta_func\ta_CDLBREAKAWAY.c + +..\..\..\..\..\temp\csr\ta_CDLCLOSINGMARUBOZU.obj: ..\..\..\..\..\src\ta_func\ta_CDLCLOSINGMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLCLOSINGMARUBOZU.obj ..\..\..\..\..\src\ta_func\ta_CDLCLOSINGMARUBOZU.c + +..\..\..\..\..\temp\csr\ta_CDLCONCEALBABYSWALL.obj: ..\..\..\..\..\src\ta_func\ta_CDLCONCEALBABYSWALL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLCONCEALBABYSWALL.obj ..\..\..\..\..\src\ta_func\ta_CDLCONCEALBABYSWALL.c + +..\..\..\..\..\temp\csr\ta_CDLCOUNTERATTACK.obj: ..\..\..\..\..\src\ta_func\ta_CDLCOUNTERATTACK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLCOUNTERATTACK.obj ..\..\..\..\..\src\ta_func\ta_CDLCOUNTERATTACK.c + +..\..\..\..\..\temp\csr\ta_CDLDARKCLOUDCOVER.obj: ..\..\..\..\..\src\ta_func\ta_CDLDARKCLOUDCOVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLDARKCLOUDCOVER.obj ..\..\..\..\..\src\ta_func\ta_CDLDARKCLOUDCOVER.c + +..\..\..\..\..\temp\csr\ta_CDLDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLDOJI.c + +..\..\..\..\..\temp\csr\ta_CDLDOJISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLDOJISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLDOJISTAR.c + +..\..\..\..\..\temp\csr\ta_CDLDRAGONFLYDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLDRAGONFLYDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLDRAGONFLYDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLDRAGONFLYDOJI.c + +..\..\..\..\..\temp\csr\ta_CDLENGULFING.obj: ..\..\..\..\..\src\ta_func\ta_CDLENGULFING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLENGULFING.obj ..\..\..\..\..\src\ta_func\ta_CDLENGULFING.c + +..\..\..\..\..\temp\csr\ta_CDLEVENINGDOJISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLEVENINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLEVENINGDOJISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLEVENINGDOJISTAR.c + +..\..\..\..\..\temp\csr\ta_CDLEVENINGSTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLEVENINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLEVENINGSTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLEVENINGSTAR.c + +..\..\..\..\..\temp\csr\ta_CDLGAPSIDESIDEWHITE.obj: ..\..\..\..\..\src\ta_func\ta_CDLGAPSIDESIDEWHITE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLGAPSIDESIDEWHITE.obj ..\..\..\..\..\src\ta_func\ta_CDLGAPSIDESIDEWHITE.c + +..\..\..\..\..\temp\csr\ta_CDLGRAVESTONEDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLGRAVESTONEDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLGRAVESTONEDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLGRAVESTONEDOJI.c + +..\..\..\..\..\temp\csr\ta_CDLHAMMER.obj: ..\..\..\..\..\src\ta_func\ta_CDLHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLHAMMER.obj ..\..\..\..\..\src\ta_func\ta_CDLHAMMER.c + +..\..\..\..\..\temp\csr\ta_CDLHANGINGMAN.obj: ..\..\..\..\..\src\ta_func\ta_CDLHANGINGMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLHANGINGMAN.obj ..\..\..\..\..\src\ta_func\ta_CDLHANGINGMAN.c + +..\..\..\..\..\temp\csr\ta_CDLHARAMI.obj: ..\..\..\..\..\src\ta_func\ta_CDLHARAMI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLHARAMI.obj ..\..\..\..\..\src\ta_func\ta_CDLHARAMI.c + +..\..\..\..\..\temp\csr\ta_CDLHARAMICROSS.obj: ..\..\..\..\..\src\ta_func\ta_CDLHARAMICROSS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLHARAMICROSS.obj ..\..\..\..\..\src\ta_func\ta_CDLHARAMICROSS.c + +..\..\..\..\..\temp\csr\ta_CDLHIGHWAVE.obj: ..\..\..\..\..\src\ta_func\ta_CDLHIGHWAVE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLHIGHWAVE.obj ..\..\..\..\..\src\ta_func\ta_CDLHIGHWAVE.c + +..\..\..\..\..\temp\csr\ta_CDLHIKKAKE.obj: ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLHIKKAKE.obj ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKE.c + +..\..\..\..\..\temp\csr\ta_CDLHIKKAKEMOD.obj: ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKEMOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLHIKKAKEMOD.obj ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKEMOD.c + +..\..\..\..\..\temp\csr\ta_CDLHOMINGPIGEON.obj: ..\..\..\..\..\src\ta_func\ta_CDLHOMINGPIGEON.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLHOMINGPIGEON.obj ..\..\..\..\..\src\ta_func\ta_CDLHOMINGPIGEON.c + +..\..\..\..\..\temp\csr\ta_CDLIDENTICAL3CROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDLIDENTICAL3CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLIDENTICAL3CROWS.obj ..\..\..\..\..\src\ta_func\ta_CDLIDENTICAL3CROWS.c + +..\..\..\..\..\temp\csr\ta_CDLINNECK.obj: ..\..\..\..\..\src\ta_func\ta_CDLINNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLINNECK.obj ..\..\..\..\..\src\ta_func\ta_CDLINNECK.c + +..\..\..\..\..\temp\csr\ta_CDLINVERTEDHAMMER.obj: ..\..\..\..\..\src\ta_func\ta_CDLINVERTEDHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLINVERTEDHAMMER.obj ..\..\..\..\..\src\ta_func\ta_CDLINVERTEDHAMMER.c + +..\..\..\..\..\temp\csr\ta_CDLKICKING.obj: ..\..\..\..\..\src\ta_func\ta_CDLKICKING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLKICKING.obj ..\..\..\..\..\src\ta_func\ta_CDLKICKING.c + +..\..\..\..\..\temp\csr\ta_CDLKICKINGBYLENGTH.obj: ..\..\..\..\..\src\ta_func\ta_CDLKICKINGBYLENGTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLKICKINGBYLENGTH.obj ..\..\..\..\..\src\ta_func\ta_CDLKICKINGBYLENGTH.c + +..\..\..\..\..\temp\csr\ta_CDLLADDERBOTTOM.obj: ..\..\..\..\..\src\ta_func\ta_CDLLADDERBOTTOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLLADDERBOTTOM.obj ..\..\..\..\..\src\ta_func\ta_CDLLADDERBOTTOM.c + +..\..\..\..\..\temp\csr\ta_CDLLONGLEGGEDDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLLONGLEGGEDDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLLONGLEGGEDDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLLONGLEGGEDDOJI.c + +..\..\..\..\..\temp\csr\ta_CDLLONGLINE.obj: ..\..\..\..\..\src\ta_func\ta_CDLLONGLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLLONGLINE.obj ..\..\..\..\..\src\ta_func\ta_CDLLONGLINE.c + +..\..\..\..\..\temp\csr\ta_CDLMARUBOZU.obj: ..\..\..\..\..\src\ta_func\ta_CDLMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLMARUBOZU.obj ..\..\..\..\..\src\ta_func\ta_CDLMARUBOZU.c + +..\..\..\..\..\temp\csr\ta_CDLMATCHINGLOW.obj: ..\..\..\..\..\src\ta_func\ta_CDLMATCHINGLOW.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLMATCHINGLOW.obj ..\..\..\..\..\src\ta_func\ta_CDLMATCHINGLOW.c + +..\..\..\..\..\temp\csr\ta_CDLMATHOLD.obj: ..\..\..\..\..\src\ta_func\ta_CDLMATHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLMATHOLD.obj ..\..\..\..\..\src\ta_func\ta_CDLMATHOLD.c + +..\..\..\..\..\temp\csr\ta_CDLMORNINGDOJISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLMORNINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLMORNINGDOJISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLMORNINGDOJISTAR.c + +..\..\..\..\..\temp\csr\ta_CDLMORNINGSTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLMORNINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLMORNINGSTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLMORNINGSTAR.c + +..\..\..\..\..\temp\csr\ta_CDLONNECK.obj: ..\..\..\..\..\src\ta_func\ta_CDLONNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLONNECK.obj ..\..\..\..\..\src\ta_func\ta_CDLONNECK.c + +..\..\..\..\..\temp\csr\ta_CDLPIERCING.obj: ..\..\..\..\..\src\ta_func\ta_CDLPIERCING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLPIERCING.obj ..\..\..\..\..\src\ta_func\ta_CDLPIERCING.c + +..\..\..\..\..\temp\csr\ta_CDLRICKSHAWMAN.obj: ..\..\..\..\..\src\ta_func\ta_CDLRICKSHAWMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLRICKSHAWMAN.obj ..\..\..\..\..\src\ta_func\ta_CDLRICKSHAWMAN.c + +..\..\..\..\..\temp\csr\ta_CDLRISEFALL3METHODS.obj: ..\..\..\..\..\src\ta_func\ta_CDLRISEFALL3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLRISEFALL3METHODS.obj ..\..\..\..\..\src\ta_func\ta_CDLRISEFALL3METHODS.c + +..\..\..\..\..\temp\csr\ta_CDLSEPARATINGLINES.obj: ..\..\..\..\..\src\ta_func\ta_CDLSEPARATINGLINES.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLSEPARATINGLINES.obj ..\..\..\..\..\src\ta_func\ta_CDLSEPARATINGLINES.c + +..\..\..\..\..\temp\csr\ta_CDLSHOOTINGSTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLSHOOTINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLSHOOTINGSTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLSHOOTINGSTAR.c + +..\..\..\..\..\temp\csr\ta_CDLSHORTLINE.obj: ..\..\..\..\..\src\ta_func\ta_CDLSHORTLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLSHORTLINE.obj ..\..\..\..\..\src\ta_func\ta_CDLSHORTLINE.c + +..\..\..\..\..\temp\csr\ta_CDLSPINNINGTOP.obj: ..\..\..\..\..\src\ta_func\ta_CDLSPINNINGTOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLSPINNINGTOP.obj ..\..\..\..\..\src\ta_func\ta_CDLSPINNINGTOP.c + +..\..\..\..\..\temp\csr\ta_CDLSTALLEDPATTERN.obj: ..\..\..\..\..\src\ta_func\ta_CDLSTALLEDPATTERN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLSTALLEDPATTERN.obj ..\..\..\..\..\src\ta_func\ta_CDLSTALLEDPATTERN.c + +..\..\..\..\..\temp\csr\ta_CDLSTICKSANDWICH.obj: ..\..\..\..\..\src\ta_func\ta_CDLSTICKSANDWICH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLSTICKSANDWICH.obj ..\..\..\..\..\src\ta_func\ta_CDLSTICKSANDWICH.c + +..\..\..\..\..\temp\csr\ta_CDLTAKURI.obj: ..\..\..\..\..\src\ta_func\ta_CDLTAKURI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLTAKURI.obj ..\..\..\..\..\src\ta_func\ta_CDLTAKURI.c + +..\..\..\..\..\temp\csr\ta_CDLTASUKIGAP.obj: ..\..\..\..\..\src\ta_func\ta_CDLTASUKIGAP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLTASUKIGAP.obj ..\..\..\..\..\src\ta_func\ta_CDLTASUKIGAP.c + +..\..\..\..\..\temp\csr\ta_CDLTHRUSTING.obj: ..\..\..\..\..\src\ta_func\ta_CDLTHRUSTING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLTHRUSTING.obj ..\..\..\..\..\src\ta_func\ta_CDLTHRUSTING.c + +..\..\..\..\..\temp\csr\ta_CDLTRISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLTRISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLTRISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLTRISTAR.c + +..\..\..\..\..\temp\csr\ta_CDLUNIQUE3RIVER.obj: ..\..\..\..\..\src\ta_func\ta_CDLUNIQUE3RIVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLUNIQUE3RIVER.obj ..\..\..\..\..\src\ta_func\ta_CDLUNIQUE3RIVER.c + +..\..\..\..\..\temp\csr\ta_CDLUPSIDEGAP2CROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDLUPSIDEGAP2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLUPSIDEGAP2CROWS.obj ..\..\..\..\..\src\ta_func\ta_CDLUPSIDEGAP2CROWS.c + +..\..\..\..\..\temp\csr\ta_CDLXSIDEGAP3METHODS.obj: ..\..\..\..\..\src\ta_func\ta_CDLXSIDEGAP3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLXSIDEGAP3METHODS.obj ..\..\..\..\..\src\ta_func\ta_CDLXSIDEGAP3METHODS.c + +..\..\..\..\..\temp\csr\ta_CEIL.obj: ..\..\..\..\..\src\ta_func\ta_CEIL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CEIL.obj ..\..\..\..\..\src\ta_func\ta_CEIL.c + +..\..\..\..\..\temp\csr\ta_CMO.obj: ..\..\..\..\..\src\ta_func\ta_CMO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CMO.obj ..\..\..\..\..\src\ta_func\ta_CMO.c + +..\..\..\..\..\temp\csr\ta_CORREL.obj: ..\..\..\..\..\src\ta_func\ta_CORREL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CORREL.obj ..\..\..\..\..\src\ta_func\ta_CORREL.c + +..\..\..\..\..\temp\csr\ta_COS.obj: ..\..\..\..\..\src\ta_func\ta_COS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_COS.obj ..\..\..\..\..\src\ta_func\ta_COS.c + +..\..\..\..\..\temp\csr\ta_COSH.obj: ..\..\..\..\..\src\ta_func\ta_COSH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_COSH.obj ..\..\..\..\..\src\ta_func\ta_COSH.c + +..\..\..\..\..\temp\csr\ta_DEMA.obj: ..\..\..\..\..\src\ta_func\ta_DEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_DEMA.obj ..\..\..\..\..\src\ta_func\ta_DEMA.c + +..\..\..\..\..\temp\csr\ta_DIV.obj: ..\..\..\..\..\src\ta_func\ta_DIV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_DIV.obj ..\..\..\..\..\src\ta_func\ta_DIV.c + +..\..\..\..\..\temp\csr\ta_DX.obj: ..\..\..\..\..\src\ta_func\ta_DX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_DX.obj ..\..\..\..\..\src\ta_func\ta_DX.c + +..\..\..\..\..\temp\csr\ta_EMA.obj: ..\..\..\..\..\src\ta_func\ta_EMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_EMA.obj ..\..\..\..\..\src\ta_func\ta_EMA.c + +..\..\..\..\..\temp\csr\ta_EXP.obj: ..\..\..\..\..\src\ta_func\ta_EXP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_EXP.obj ..\..\..\..\..\src\ta_func\ta_EXP.c + +..\..\..\..\..\temp\csr\ta_FLOOR.obj: ..\..\..\..\..\src\ta_func\ta_FLOOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_FLOOR.obj ..\..\..\..\..\src\ta_func\ta_FLOOR.c + +..\..\..\..\..\temp\csr\ta_HT_DCPERIOD.obj: ..\..\..\..\..\src\ta_func\ta_HT_DCPERIOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_HT_DCPERIOD.obj ..\..\..\..\..\src\ta_func\ta_HT_DCPERIOD.c + +..\..\..\..\..\temp\csr\ta_HT_DCPHASE.obj: ..\..\..\..\..\src\ta_func\ta_HT_DCPHASE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_HT_DCPHASE.obj ..\..\..\..\..\src\ta_func\ta_HT_DCPHASE.c + +..\..\..\..\..\temp\csr\ta_HT_PHASOR.obj: ..\..\..\..\..\src\ta_func\ta_HT_PHASOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_HT_PHASOR.obj ..\..\..\..\..\src\ta_func\ta_HT_PHASOR.c + +..\..\..\..\..\temp\csr\ta_HT_SINE.obj: ..\..\..\..\..\src\ta_func\ta_HT_SINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_HT_SINE.obj ..\..\..\..\..\src\ta_func\ta_HT_SINE.c + +..\..\..\..\..\temp\csr\ta_HT_TRENDLINE.obj: ..\..\..\..\..\src\ta_func\ta_HT_TRENDLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_HT_TRENDLINE.obj ..\..\..\..\..\src\ta_func\ta_HT_TRENDLINE.c + +..\..\..\..\..\temp\csr\ta_HT_TRENDMODE.obj: ..\..\..\..\..\src\ta_func\ta_HT_TRENDMODE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_HT_TRENDMODE.obj ..\..\..\..\..\src\ta_func\ta_HT_TRENDMODE.c + +..\..\..\..\..\temp\csr\ta_KAMA.obj: ..\..\..\..\..\src\ta_func\ta_KAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_KAMA.obj ..\..\..\..\..\src\ta_func\ta_KAMA.c + +..\..\..\..\..\temp\csr\ta_LINEARREG.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_LINEARREG.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG.c + +..\..\..\..\..\temp\csr\ta_LINEARREG_ANGLE.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG_ANGLE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_LINEARREG_ANGLE.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG_ANGLE.c + +..\..\..\..\..\temp\csr\ta_LINEARREG_INTERCEPT.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG_INTERCEPT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_LINEARREG_INTERCEPT.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG_INTERCEPT.c + +..\..\..\..\..\temp\csr\ta_LINEARREG_SLOPE.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG_SLOPE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_LINEARREG_SLOPE.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG_SLOPE.c + +..\..\..\..\..\temp\csr\ta_LN.obj: ..\..\..\..\..\src\ta_func\ta_LN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_LN.obj ..\..\..\..\..\src\ta_func\ta_LN.c + +..\..\..\..\..\temp\csr\ta_LOG10.obj: ..\..\..\..\..\src\ta_func\ta_LOG10.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_LOG10.obj ..\..\..\..\..\src\ta_func\ta_LOG10.c + +..\..\..\..\..\temp\csr\ta_MA.obj: ..\..\..\..\..\src\ta_func\ta_MA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_MA.obj ..\..\..\..\..\src\ta_func\ta_MA.c + +..\..\..\..\..\temp\csr\ta_MACD.obj: ..\..\..\..\..\src\ta_func\ta_MACD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_MACD.obj ..\..\..\..\..\src\ta_func\ta_MACD.c + +..\..\..\..\..\temp\csr\ta_MACDEXT.obj: ..\..\..\..\..\src\ta_func\ta_MACDEXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_MACDEXT.obj ..\..\..\..\..\src\ta_func\ta_MACDEXT.c + +..\..\..\..\..\temp\csr\ta_MACDFIX.obj: ..\..\..\..\..\src\ta_func\ta_MACDFIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_MACDFIX.obj ..\..\..\..\..\src\ta_func\ta_MACDFIX.c + +..\..\..\..\..\temp\csr\ta_MAMA.obj: ..\..\..\..\..\src\ta_func\ta_MAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_MAMA.obj ..\..\..\..\..\src\ta_func\ta_MAMA.c + +..\..\..\..\..\temp\csr\ta_MAVP.obj: ..\..\..\..\..\src\ta_func\ta_MAVP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_MAVP.obj ..\..\..\..\..\src\ta_func\ta_MAVP.c + +..\..\..\..\..\temp\csr\ta_MAX.obj: ..\..\..\..\..\src\ta_func\ta_MAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_MAX.obj ..\..\..\..\..\src\ta_func\ta_MAX.c + +..\..\..\..\..\temp\csr\ta_MAXINDEX.obj: ..\..\..\..\..\src\ta_func\ta_MAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_MAXINDEX.obj ..\..\..\..\..\src\ta_func\ta_MAXINDEX.c + +..\..\..\..\..\temp\csr\ta_MEDPRICE.obj: ..\..\..\..\..\src\ta_func\ta_MEDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_MEDPRICE.obj ..\..\..\..\..\src\ta_func\ta_MEDPRICE.c + +..\..\..\..\..\temp\csr\ta_MFI.obj: ..\..\..\..\..\src\ta_func\ta_MFI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_MFI.obj ..\..\..\..\..\src\ta_func\ta_MFI.c + +..\..\..\..\..\temp\csr\ta_MIDPOINT.obj: ..\..\..\..\..\src\ta_func\ta_MIDPOINT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_MIDPOINT.obj ..\..\..\..\..\src\ta_func\ta_MIDPOINT.c + +..\..\..\..\..\temp\csr\ta_MIDPRICE.obj: ..\..\..\..\..\src\ta_func\ta_MIDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_MIDPRICE.obj ..\..\..\..\..\src\ta_func\ta_MIDPRICE.c + +..\..\..\..\..\temp\csr\ta_MIN.obj: ..\..\..\..\..\src\ta_func\ta_MIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_MIN.obj ..\..\..\..\..\src\ta_func\ta_MIN.c + +..\..\..\..\..\temp\csr\ta_MININDEX.obj: ..\..\..\..\..\src\ta_func\ta_MININDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_MININDEX.obj ..\..\..\..\..\src\ta_func\ta_MININDEX.c + +..\..\..\..\..\temp\csr\ta_MINMAX.obj: ..\..\..\..\..\src\ta_func\ta_MINMAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_MINMAX.obj ..\..\..\..\..\src\ta_func\ta_MINMAX.c + +..\..\..\..\..\temp\csr\ta_MINMAXINDEX.obj: ..\..\..\..\..\src\ta_func\ta_MINMAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_MINMAXINDEX.obj ..\..\..\..\..\src\ta_func\ta_MINMAXINDEX.c + +..\..\..\..\..\temp\csr\ta_MINUS_DI.obj: ..\..\..\..\..\src\ta_func\ta_MINUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_MINUS_DI.obj ..\..\..\..\..\src\ta_func\ta_MINUS_DI.c + +..\..\..\..\..\temp\csr\ta_MINUS_DM.obj: ..\..\..\..\..\src\ta_func\ta_MINUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_MINUS_DM.obj ..\..\..\..\..\src\ta_func\ta_MINUS_DM.c + +..\..\..\..\..\temp\csr\ta_MOM.obj: ..\..\..\..\..\src\ta_func\ta_MOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_MOM.obj ..\..\..\..\..\src\ta_func\ta_MOM.c + +..\..\..\..\..\temp\csr\ta_MULT.obj: ..\..\..\..\..\src\ta_func\ta_MULT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_MULT.obj ..\..\..\..\..\src\ta_func\ta_MULT.c + +..\..\..\..\..\temp\csr\ta_NATR.obj: ..\..\..\..\..\src\ta_func\ta_NATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_NATR.obj ..\..\..\..\..\src\ta_func\ta_NATR.c + +..\..\..\..\..\temp\csr\ta_OBV.obj: ..\..\..\..\..\src\ta_func\ta_OBV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_OBV.obj ..\..\..\..\..\src\ta_func\ta_OBV.c + +..\..\..\..\..\temp\csr\ta_PLUS_DI.obj: ..\..\..\..\..\src\ta_func\ta_PLUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_PLUS_DI.obj ..\..\..\..\..\src\ta_func\ta_PLUS_DI.c + +..\..\..\..\..\temp\csr\ta_PLUS_DM.obj: ..\..\..\..\..\src\ta_func\ta_PLUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_PLUS_DM.obj ..\..\..\..\..\src\ta_func\ta_PLUS_DM.c + +..\..\..\..\..\temp\csr\ta_PPO.obj: ..\..\..\..\..\src\ta_func\ta_PPO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_PPO.obj ..\..\..\..\..\src\ta_func\ta_PPO.c + +..\..\..\..\..\temp\csr\ta_ROC.obj: ..\..\..\..\..\src\ta_func\ta_ROC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_ROC.obj ..\..\..\..\..\src\ta_func\ta_ROC.c + +..\..\..\..\..\temp\csr\ta_ROCP.obj: ..\..\..\..\..\src\ta_func\ta_ROCP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_ROCP.obj ..\..\..\..\..\src\ta_func\ta_ROCP.c + +..\..\..\..\..\temp\csr\ta_ROCR.obj: ..\..\..\..\..\src\ta_func\ta_ROCR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_ROCR.obj ..\..\..\..\..\src\ta_func\ta_ROCR.c + +..\..\..\..\..\temp\csr\ta_ROCR100.obj: ..\..\..\..\..\src\ta_func\ta_ROCR100.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_ROCR100.obj ..\..\..\..\..\src\ta_func\ta_ROCR100.c + +..\..\..\..\..\temp\csr\ta_RSI.obj: ..\..\..\..\..\src\ta_func\ta_RSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_RSI.obj ..\..\..\..\..\src\ta_func\ta_RSI.c + +..\..\..\..\..\temp\csr\ta_SAR.obj: ..\..\..\..\..\src\ta_func\ta_SAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_SAR.obj ..\..\..\..\..\src\ta_func\ta_SAR.c + +..\..\..\..\..\temp\csr\ta_SAREXT.obj: ..\..\..\..\..\src\ta_func\ta_SAREXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_SAREXT.obj ..\..\..\..\..\src\ta_func\ta_SAREXT.c + +..\..\..\..\..\temp\csr\ta_SIN.obj: ..\..\..\..\..\src\ta_func\ta_SIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_SIN.obj ..\..\..\..\..\src\ta_func\ta_SIN.c + +..\..\..\..\..\temp\csr\ta_SINH.obj: ..\..\..\..\..\src\ta_func\ta_SINH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_SINH.obj ..\..\..\..\..\src\ta_func\ta_SINH.c + +..\..\..\..\..\temp\csr\ta_SMA.obj: ..\..\..\..\..\src\ta_func\ta_SMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_SMA.obj ..\..\..\..\..\src\ta_func\ta_SMA.c + +..\..\..\..\..\temp\csr\ta_SQRT.obj: ..\..\..\..\..\src\ta_func\ta_SQRT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_SQRT.obj ..\..\..\..\..\src\ta_func\ta_SQRT.c + +..\..\..\..\..\temp\csr\ta_STDDEV.obj: ..\..\..\..\..\src\ta_func\ta_STDDEV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_STDDEV.obj ..\..\..\..\..\src\ta_func\ta_STDDEV.c + +..\..\..\..\..\temp\csr\ta_STOCH.obj: ..\..\..\..\..\src\ta_func\ta_STOCH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_STOCH.obj ..\..\..\..\..\src\ta_func\ta_STOCH.c + +..\..\..\..\..\temp\csr\ta_STOCHF.obj: ..\..\..\..\..\src\ta_func\ta_STOCHF.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_STOCHF.obj ..\..\..\..\..\src\ta_func\ta_STOCHF.c + +..\..\..\..\..\temp\csr\ta_STOCHRSI.obj: ..\..\..\..\..\src\ta_func\ta_STOCHRSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_STOCHRSI.obj ..\..\..\..\..\src\ta_func\ta_STOCHRSI.c + +..\..\..\..\..\temp\csr\ta_SUB.obj: ..\..\..\..\..\src\ta_func\ta_SUB.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_SUB.obj ..\..\..\..\..\src\ta_func\ta_SUB.c + +..\..\..\..\..\temp\csr\ta_SUM.obj: ..\..\..\..\..\src\ta_func\ta_SUM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_SUM.obj ..\..\..\..\..\src\ta_func\ta_SUM.c + +..\..\..\..\..\temp\csr\ta_T3.obj: ..\..\..\..\..\src\ta_func\ta_T3.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_T3.obj ..\..\..\..\..\src\ta_func\ta_T3.c + +..\..\..\..\..\temp\csr\ta_TAN.obj: ..\..\..\..\..\src\ta_func\ta_TAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_TAN.obj ..\..\..\..\..\src\ta_func\ta_TAN.c + +..\..\..\..\..\temp\csr\ta_TANH.obj: ..\..\..\..\..\src\ta_func\ta_TANH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_TANH.obj ..\..\..\..\..\src\ta_func\ta_TANH.c + +..\..\..\..\..\temp\csr\ta_TEMA.obj: ..\..\..\..\..\src\ta_func\ta_TEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_TEMA.obj ..\..\..\..\..\src\ta_func\ta_TEMA.c + +..\..\..\..\..\temp\csr\ta_TRANGE.obj: ..\..\..\..\..\src\ta_func\ta_TRANGE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_TRANGE.obj ..\..\..\..\..\src\ta_func\ta_TRANGE.c + +..\..\..\..\..\temp\csr\ta_TRIMA.obj: ..\..\..\..\..\src\ta_func\ta_TRIMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_TRIMA.obj ..\..\..\..\..\src\ta_func\ta_TRIMA.c + +..\..\..\..\..\temp\csr\ta_TRIX.obj: ..\..\..\..\..\src\ta_func\ta_TRIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_TRIX.obj ..\..\..\..\..\src\ta_func\ta_TRIX.c + +..\..\..\..\..\temp\csr\ta_TSF.obj: ..\..\..\..\..\src\ta_func\ta_TSF.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_TSF.obj ..\..\..\..\..\src\ta_func\ta_TSF.c + +..\..\..\..\..\temp\csr\ta_TYPPRICE.obj: ..\..\..\..\..\src\ta_func\ta_TYPPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_TYPPRICE.obj ..\..\..\..\..\src\ta_func\ta_TYPPRICE.c + +..\..\..\..\..\temp\csr\ta_ULTOSC.obj: ..\..\..\..\..\src\ta_func\ta_ULTOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_ULTOSC.obj ..\..\..\..\..\src\ta_func\ta_ULTOSC.c + +..\..\..\..\..\temp\csr\ta_VAR.obj: ..\..\..\..\..\src\ta_func\ta_VAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_VAR.obj ..\..\..\..\..\src\ta_func\ta_VAR.c + +..\..\..\..\..\temp\csr\ta_WCLPRICE.obj: ..\..\..\..\..\src\ta_func\ta_WCLPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_WCLPRICE.obj ..\..\..\..\..\src\ta_func\ta_WCLPRICE.c + +..\..\..\..\..\temp\csr\ta_WILLR.obj: ..\..\..\..\..\src\ta_func\ta_WILLR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_WILLR.obj ..\..\..\..\..\src\ta_func\ta_WILLR.c + +..\..\..\..\..\temp\csr\ta_WMA.obj: ..\..\..\..\..\src\ta_func\ta_WMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_WMA.obj ..\..\..\..\..\src\ta_func\ta_WMA.c + diff --git a/make/csr/win32/borland/ta_regtest/Makefile b/make/csr/win32/borland/ta_regtest/Makefile new file mode 100644 index 000000000..d9c8b5140 --- /dev/null +++ b/make/csr/win32/borland/ta_regtest/Makefile @@ -0,0 +1,243 @@ +############################################################################# +# Makefile for building ta_regtest +# Generated by tmake; +# Project: ta_regtest/ta_regtest +# Template: app +############################################################################# + +!if !$d(BCB) +BCB = $(MAKEDIR)\.. +!endif + +####### Compiler, tools and options + +CC = bcc32 +CXX = bcc32 +CFLAGS = -x- -RT- -tWR -w -w-8004 -w-8071 -w-8057 -w-8080 -O2 -DTA_SINGLE_THREAD -DWIN32 +CXXFLAGS= -x- -RT- -tWR -w -w-8004 -w-8071 -w-8057 -w-8080 -O2 -DTA_SINGLE_THREAD -DWIN32 +INCPATH = -I"..\..\..\..\..\src\ta_common" -I"..\..\..\..\..\src\tools\ta_regtest" -I"..\..\..\..\..\src\ta_func" -I"..\..\..\..\..\include" +LINK = ilink32 +LFLAGS = -L$(BCB)\lib -L$(BCB)\lib\PSDK -c -x -Gn -ap -Tpe c0x32.obj +LIBS = import32.lib cw32i.lib ..\..\..\..\..\lib\ta_libc_csr.lib +MOC = moc +UIC = uic + +ZIP = zip -r -9 +DEF_FILE = +RES_FILE = + +####### Files + +HEADERS = +SOURCES = ..\..\..\..\..\src\tools\ta_regtest\ta_regtest.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_candlestick.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_1in_1out.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_1in_2out.c \ + ..\..\..\..\..\src\tools\ta_regtest\test_internals.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_adx.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_bbands.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_ma.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_macd.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_minmax.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_mom.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_ema.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hl.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hlc.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hlcv.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_ohlc.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_po.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_rsi.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_sar.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_stddev.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_stoch.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_trange.c \ + ..\..\..\..\..\src\tools\ta_regtest\test_util.c \ + ..\..\..\..\..\src\tools\ta_regtest\test_data.c \ + ..\..\..\..\..\src\tools\ta_regtest\test_abstract.c +OBJECTS = ..\..\..\..\..\temp\csr\ta_regtest.obj \ + ..\..\..\..\..\temp\csr\test_candlestick.obj \ + ..\..\..\..\..\temp\csr\test_1in_1out.obj \ + ..\..\..\..\..\temp\csr\test_1in_2out.obj \ + ..\..\..\..\..\temp\csr\test_internals.obj \ + ..\..\..\..\..\temp\csr\test_adx.obj \ + ..\..\..\..\..\temp\csr\test_bbands.obj \ + ..\..\..\..\..\temp\csr\test_ma.obj \ + ..\..\..\..\..\temp\csr\test_macd.obj \ + ..\..\..\..\..\temp\csr\test_minmax.obj \ + ..\..\..\..\..\temp\csr\test_mom.obj \ + ..\..\..\..\..\temp\csr\test_per_ema.obj \ + ..\..\..\..\..\temp\csr\test_per_hl.obj \ + ..\..\..\..\..\temp\csr\test_per_hlc.obj \ + ..\..\..\..\..\temp\csr\test_per_hlcv.obj \ + ..\..\..\..\..\temp\csr\test_per_ohlc.obj \ + ..\..\..\..\..\temp\csr\test_po.obj \ + ..\..\..\..\..\temp\csr\test_rsi.obj \ + ..\..\..\..\..\temp\csr\test_sar.obj \ + ..\..\..\..\..\temp\csr\test_stddev.obj \ + ..\..\..\..\..\temp\csr\test_stoch.obj \ + ..\..\..\..\..\temp\csr\test_trange.obj \ + ..\..\..\..\..\temp\csr\test_util.obj \ + ..\..\..\..\..\temp\csr\test_data.obj \ + ..\..\..\..\..\temp\csr\test_abstract.obj +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ..\..\..\..\..\bin\ta_regtest.exe +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .c + +.cpp.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.cxx.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.cc.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.c.obj: + $(CC) -c $(CFLAGS) $(INCPATH) -o$@ $< + +####### Build rules + +all: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + $(LINK) @&&| + $(LFLAGS) $(OBJECTS) $(OBJMOC),$(TARGET),,$(LIBS),$(DEF_FILE),$(RES_FILE) +| + +moc: $(SRCMOC) + +tmake: ../csr/win32/borland/ta_regtest/Makefile + +../csr/win32/borland/ta_regtest/Makefile: ta_regtest/ta_regtest.pro + tmake ta_regtest/ta_regtest.pro -o ../csr/win32/borland/ta_regtest/Makefile + +dist: + $(ZIP) ta_regtest/ta_regtest.zip ta_regtest/ta_regtest.pro $(SOURCES) $(HEADERS) $(DIST) + +clean: + -del ..\..\..\..\..\temp\csr\ta_regtest.obj + -del ..\..\..\..\..\temp\csr\test_candlestick.obj + -del ..\..\..\..\..\temp\csr\test_1in_1out.obj + -del ..\..\..\..\..\temp\csr\test_1in_2out.obj + -del ..\..\..\..\..\temp\csr\test_internals.obj + -del ..\..\..\..\..\temp\csr\test_adx.obj + -del ..\..\..\..\..\temp\csr\test_bbands.obj + -del ..\..\..\..\..\temp\csr\test_ma.obj + -del ..\..\..\..\..\temp\csr\test_macd.obj + -del ..\..\..\..\..\temp\csr\test_minmax.obj + -del ..\..\..\..\..\temp\csr\test_mom.obj + -del ..\..\..\..\..\temp\csr\test_per_ema.obj + -del ..\..\..\..\..\temp\csr\test_per_hl.obj + -del ..\..\..\..\..\temp\csr\test_per_hlc.obj + -del ..\..\..\..\..\temp\csr\test_per_hlcv.obj + -del ..\..\..\..\..\temp\csr\test_per_ohlc.obj + -del ..\..\..\..\..\temp\csr\test_po.obj + -del ..\..\..\..\..\temp\csr\test_rsi.obj + -del ..\..\..\..\..\temp\csr\test_sar.obj + -del ..\..\..\..\..\temp\csr\test_stddev.obj + -del ..\..\..\..\..\temp\csr\test_stoch.obj + -del ..\..\..\..\..\temp\csr\test_trange.obj + -del ..\..\..\..\..\temp\csr\test_util.obj + -del ..\..\..\..\..\temp\csr\test_data.obj + -del ..\..\..\..\..\temp\csr\test_abstract.obj + -del $(TARGET) + -del ta_regtest.tds + -del ../../../../../bin/*.map + -del ../../../../../bin/*._xe + -del ../../../../../bin/*.tds + -del ../../../../../bin/*.pdb + -del ../../../../../bin/*.pbo + -del ../../../../../bin/*.pbi + -del ../../../../../bin/*.pbt + -del ../../../../../temp/csr/*.pch + -del ../../../../../temp/csr/*.idb + -del ../../../../../temp/csr/ta_regtest/*.pch + -del ../../../../../temp/csr/ta_regtest/*.idb + -del ../../../../../temp/csr/ta_regtest/*.obj + +####### Compile + +..\..\..\..\..\temp\csr\ta_regtest.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_regtest.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_regtest.obj ..\..\..\..\..\src\tools\ta_regtest\ta_regtest.c + +..\..\..\..\..\temp\csr\test_candlestick.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_candlestick.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\test_candlestick.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_candlestick.c + +..\..\..\..\..\temp\csr\test_1in_1out.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_1in_1out.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\test_1in_1out.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_1in_1out.c + +..\..\..\..\..\temp\csr\test_1in_2out.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_1in_2out.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\test_1in_2out.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_1in_2out.c + +..\..\..\..\..\temp\csr\test_internals.obj: ..\..\..\..\..\src\tools\ta_regtest\test_internals.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\test_internals.obj ..\..\..\..\..\src\tools\ta_regtest\test_internals.c + +..\..\..\..\..\temp\csr\test_adx.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_adx.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\test_adx.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_adx.c + +..\..\..\..\..\temp\csr\test_bbands.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_bbands.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\test_bbands.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_bbands.c + +..\..\..\..\..\temp\csr\test_ma.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_ma.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\test_ma.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_ma.c + +..\..\..\..\..\temp\csr\test_macd.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_macd.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\test_macd.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_macd.c + +..\..\..\..\..\temp\csr\test_minmax.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_minmax.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\test_minmax.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_minmax.c + +..\..\..\..\..\temp\csr\test_mom.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_mom.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\test_mom.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_mom.c + +..\..\..\..\..\temp\csr\test_per_ema.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_ema.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\test_per_ema.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_ema.c + +..\..\..\..\..\temp\csr\test_per_hl.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hl.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\test_per_hl.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hl.c + +..\..\..\..\..\temp\csr\test_per_hlc.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hlc.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\test_per_hlc.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hlc.c + +..\..\..\..\..\temp\csr\test_per_hlcv.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hlcv.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\test_per_hlcv.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hlcv.c + +..\..\..\..\..\temp\csr\test_per_ohlc.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_ohlc.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\test_per_ohlc.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_ohlc.c + +..\..\..\..\..\temp\csr\test_po.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_po.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\test_po.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_po.c + +..\..\..\..\..\temp\csr\test_rsi.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_rsi.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\test_rsi.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_rsi.c + +..\..\..\..\..\temp\csr\test_sar.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_sar.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\test_sar.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_sar.c + +..\..\..\..\..\temp\csr\test_stddev.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_stddev.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\test_stddev.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_stddev.c + +..\..\..\..\..\temp\csr\test_stoch.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_stoch.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\test_stoch.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_stoch.c + +..\..\..\..\..\temp\csr\test_trange.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_trange.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\test_trange.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_trange.c + +..\..\..\..\..\temp\csr\test_util.obj: ..\..\..\..\..\src\tools\ta_regtest\test_util.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\test_util.obj ..\..\..\..\..\src\tools\ta_regtest\test_util.c + +..\..\..\..\..\temp\csr\test_data.obj: ..\..\..\..\..\src\tools\ta_regtest\test_data.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\test_data.obj ..\..\..\..\..\src\tools\ta_regtest\test_data.c + +..\..\..\..\..\temp\csr\test_abstract.obj: ..\..\..\..\..\src\tools\ta_regtest\test_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\test_abstract.obj ..\..\..\..\..\src\tools\ta_regtest\test_abstract.c + diff --git a/make/csr/win32/msvc/Makefile b/make/csr/win32/msvc/Makefile new file mode 100644 index 000000000..1297e37f5 --- /dev/null +++ b/make/csr/win32/msvc/Makefile @@ -0,0 +1,97 @@ +############################################################################# +# Makefile for building targets in sub directories. +# Generated by tmake; +# Project: rootmake +# Template: subdirs +############################################################################# + +MAKEFILE= Makefile +TMAKE = tmake + +SUBDIRS = ta_common \ + ta_func \ + ta_abstract \ + ta_libc \ + gen_code \ + ta_regtest + +all: $(SUBDIRS) + +ta_common: FORCE + cd ta_common + $(MAKE) /nologo + @cd .. + +ta_func: FORCE + cd ta_func + $(MAKE) /nologo + @cd .. + +ta_abstract: FORCE + cd ta_abstract + $(MAKE) /nologo + @cd .. + +ta_libc: FORCE + cd ta_libc + $(MAKE) /nologo + @cd .. + +gen_code: FORCE + cd gen_code + $(MAKE) /nologo + @cd .. + +ta_regtest: FORCE + cd ta_regtest + $(MAKE) /nologo + @cd .. + + +tmake: ../csr/win32/msvc/Makefile + +../csr/win32/msvc/Makefile: rootmake.pro + tmake rootmake.pro -o ../csr/win32/msvc/Makefile + +tmake_all: + cd ta_common + $(TMAKE) ta_common.pro -o $(MAKEFILE) + @cd .. + cd ta_func + $(TMAKE) ta_func.pro -o $(MAKEFILE) + @cd .. + cd ta_abstract + $(TMAKE) ta_abstract.pro -o $(MAKEFILE) + @cd .. + cd ta_libc + $(TMAKE) ta_libc.pro -o $(MAKEFILE) + @cd .. + cd gen_code + $(TMAKE) gen_code.pro -o $(MAKEFILE) + @cd .. + cd ta_regtest + $(TMAKE) ta_regtest.pro -o $(MAKEFILE) + @cd .. + + +clean: + cd ta_common + $(MAKE) clean + @cd .. + cd ta_func + $(MAKE) clean + @cd .. + cd ta_abstract + $(MAKE) clean + @cd .. + cd ta_libc + $(MAKE) clean + @cd .. + cd gen_code + $(MAKE) clean + @cd .. + cd ta_regtest + $(MAKE) clean + @cd .. + +FORCE: diff --git a/make/csr/win32/msvc/gen_code/Makefile b/make/csr/win32/msvc/gen_code/Makefile new file mode 100644 index 000000000..3d27d82a6 --- /dev/null +++ b/make/csr/win32/msvc/gen_code/Makefile @@ -0,0 +1,260 @@ +############################################################################# +# Makefile for building gen_code +# Generated by tmake; +# Project: gen_code/gen_code +# Template: app +############################################################################# + +####### Compiler, tools and options + +CC = cl +CXX = cl +CFLAGS = -nologo -W3 -O2 -DTA_GEN_CODE -DTA_SINGLE_THREAD -DWIN32 -D_MBCS -D_LIB +CXXFLAGS= -nologo -W3 -O2 -DTA_GEN_CODE -DTA_SINGLE_THREAD -DWIN32 -D_MBCS -D_LIB +INCPATH = -I"..\..\..\..\..\include" -I"..\..\..\..\..\src\ta_common" -I"..\..\..\..\..\src\ta_abstract" -I"..\..\..\..\..\src\ta_abstract\tables" -I"..\..\..\..\..\src\ta_abstract\frames" +LINK = link +LFLAGS = /NOLOGO /SUBSYSTEM:console +LIBS = ..\..\..\..\..\lib\ta_common_csr.lib +MOC = moc +UIC = uic + +ZIP = zip -r -9 + +####### Files + +HEADERS = +SOURCES = ..\..\..\..\..\src\tools\gen_code\gen_code.c \ + ..\..\..\..\..\src\ta_abstract\ta_abstract.c \ + ..\..\..\..\..\src\ta_abstract\ta_def_ui.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_a.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_b.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_c.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_d.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_e.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_f.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_g.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_h.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_i.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_j.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_k.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_l.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_m.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_n.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_o.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_p.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_q.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_r.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_s.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_t.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_u.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_v.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_w.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_x.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_y.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_z.c +OBJECTS = ..\..\..\..\..\temp\csr\gen_code\gen_code.obj \ + ..\..\..\..\..\temp\csr\gen_code\ta_abstract.obj \ + ..\..\..\..\..\temp\csr\gen_code\ta_def_ui.obj \ + ..\..\..\..\..\temp\csr\gen_code\table_a.obj \ + ..\..\..\..\..\temp\csr\gen_code\table_b.obj \ + ..\..\..\..\..\temp\csr\gen_code\table_c.obj \ + ..\..\..\..\..\temp\csr\gen_code\table_d.obj \ + ..\..\..\..\..\temp\csr\gen_code\table_e.obj \ + ..\..\..\..\..\temp\csr\gen_code\table_f.obj \ + ..\..\..\..\..\temp\csr\gen_code\table_g.obj \ + ..\..\..\..\..\temp\csr\gen_code\table_h.obj \ + ..\..\..\..\..\temp\csr\gen_code\table_i.obj \ + ..\..\..\..\..\temp\csr\gen_code\table_j.obj \ + ..\..\..\..\..\temp\csr\gen_code\table_k.obj \ + ..\..\..\..\..\temp\csr\gen_code\table_l.obj \ + ..\..\..\..\..\temp\csr\gen_code\table_m.obj \ + ..\..\..\..\..\temp\csr\gen_code\table_n.obj \ + ..\..\..\..\..\temp\csr\gen_code\table_o.obj \ + ..\..\..\..\..\temp\csr\gen_code\table_p.obj \ + ..\..\..\..\..\temp\csr\gen_code\table_q.obj \ + ..\..\..\..\..\temp\csr\gen_code\table_r.obj \ + ..\..\..\..\..\temp\csr\gen_code\table_s.obj \ + ..\..\..\..\..\temp\csr\gen_code\table_t.obj \ + ..\..\..\..\..\temp\csr\gen_code\table_u.obj \ + ..\..\..\..\..\temp\csr\gen_code\table_v.obj \ + ..\..\..\..\..\temp\csr\gen_code\table_w.obj \ + ..\..\..\..\..\temp\csr\gen_code\table_x.obj \ + ..\..\..\..\..\temp\csr\gen_code\table_y.obj \ + ..\..\..\..\..\temp\csr\gen_code\table_z.obj +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ..\..\..\..\..\bin\gen_code.exe +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .c + +.cpp.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $< + +.cxx.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $< + +.cc.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $< + +.c.obj: + $(CC) -c $(CFLAGS) $(INCPATH) -Fo$@ $< + +####### Build rules + +all: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + $(LINK) $(LFLAGS) /OUT:$(TARGET) @<< + $(OBJECTS) $(OBJMOC) $(LIBS) +<< + +moc: $(SRCMOC) + +tmake: ../csr/win32/msvc/gen_code/Makefile + +../csr/win32/msvc/gen_code/Makefile: gen_code/gen_code.pro + tmake gen_code/gen_code.pro -o ../csr/win32/msvc/gen_code/Makefile + +dist: + $(ZIP) gen_code/gen_code.zip gen_code/gen_code.pro $(SOURCES) $(HEADERS) $(DIST) $(INTERFACES) + +clean: + -del ..\..\..\..\..\temp\csr\gen_code\gen_code.obj + -del ..\..\..\..\..\temp\csr\gen_code\ta_abstract.obj + -del ..\..\..\..\..\temp\csr\gen_code\ta_def_ui.obj + -del ..\..\..\..\..\temp\csr\gen_code\table_a.obj + -del ..\..\..\..\..\temp\csr\gen_code\table_b.obj + -del ..\..\..\..\..\temp\csr\gen_code\table_c.obj + -del ..\..\..\..\..\temp\csr\gen_code\table_d.obj + -del ..\..\..\..\..\temp\csr\gen_code\table_e.obj + -del ..\..\..\..\..\temp\csr\gen_code\table_f.obj + -del ..\..\..\..\..\temp\csr\gen_code\table_g.obj + -del ..\..\..\..\..\temp\csr\gen_code\table_h.obj + -del ..\..\..\..\..\temp\csr\gen_code\table_i.obj + -del ..\..\..\..\..\temp\csr\gen_code\table_j.obj + -del ..\..\..\..\..\temp\csr\gen_code\table_k.obj + -del ..\..\..\..\..\temp\csr\gen_code\table_l.obj + -del ..\..\..\..\..\temp\csr\gen_code\table_m.obj + -del ..\..\..\..\..\temp\csr\gen_code\table_n.obj + -del ..\..\..\..\..\temp\csr\gen_code\table_o.obj + -del ..\..\..\..\..\temp\csr\gen_code\table_p.obj + -del ..\..\..\..\..\temp\csr\gen_code\table_q.obj + -del ..\..\..\..\..\temp\csr\gen_code\table_r.obj + -del ..\..\..\..\..\temp\csr\gen_code\table_s.obj + -del ..\..\..\..\..\temp\csr\gen_code\table_t.obj + -del ..\..\..\..\..\temp\csr\gen_code\table_u.obj + -del ..\..\..\..\..\temp\csr\gen_code\table_v.obj + -del ..\..\..\..\..\temp\csr\gen_code\table_w.obj + -del ..\..\..\..\..\temp\csr\gen_code\table_x.obj + -del ..\..\..\..\..\temp\csr\gen_code\table_y.obj + -del ..\..\..\..\..\temp\csr\gen_code\table_z.obj + -del $(TARGET) + -del ../../../../../bin/*.map + -del ../../../../../bin/*._xe + -del ../../../../../bin/*.tds + -del ../../../../../bin/*.pdb + -del ../../../../../bin/*.pbo + -del ../../../../../bin/*.pbi + -del ../../../../../bin/*.pbt + -del ../../../../../temp/csr/*.pch + -del ../../../../../temp/csr/*.idb + -del ../../../../../temp/csr/gen_code/*.pch + -del ../../../../../temp/csr/gen_code/*.idb + -del ../../../../../temp/csr/gen_code/*.obj + +####### Compile + +..\..\..\..\..\temp\csr\gen_code\gen_code.obj: ..\..\..\..\..\src\tools\gen_code\gen_code.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\gen_code\gen_code.obj ..\..\..\..\..\src\tools\gen_code\gen_code.c + +..\..\..\..\..\temp\csr\gen_code\ta_abstract.obj: ..\..\..\..\..\src\ta_abstract\ta_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\gen_code\ta_abstract.obj ..\..\..\..\..\src\ta_abstract\ta_abstract.c + +..\..\..\..\..\temp\csr\gen_code\ta_def_ui.obj: ..\..\..\..\..\src\ta_abstract\ta_def_ui.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\gen_code\ta_def_ui.obj ..\..\..\..\..\src\ta_abstract\ta_def_ui.c + +..\..\..\..\..\temp\csr\gen_code\table_a.obj: ..\..\..\..\..\src\ta_abstract\tables\table_a.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\gen_code\table_a.obj ..\..\..\..\..\src\ta_abstract\tables\table_a.c + +..\..\..\..\..\temp\csr\gen_code\table_b.obj: ..\..\..\..\..\src\ta_abstract\tables\table_b.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\gen_code\table_b.obj ..\..\..\..\..\src\ta_abstract\tables\table_b.c + +..\..\..\..\..\temp\csr\gen_code\table_c.obj: ..\..\..\..\..\src\ta_abstract\tables\table_c.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\gen_code\table_c.obj ..\..\..\..\..\src\ta_abstract\tables\table_c.c + +..\..\..\..\..\temp\csr\gen_code\table_d.obj: ..\..\..\..\..\src\ta_abstract\tables\table_d.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\gen_code\table_d.obj ..\..\..\..\..\src\ta_abstract\tables\table_d.c + +..\..\..\..\..\temp\csr\gen_code\table_e.obj: ..\..\..\..\..\src\ta_abstract\tables\table_e.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\gen_code\table_e.obj ..\..\..\..\..\src\ta_abstract\tables\table_e.c + +..\..\..\..\..\temp\csr\gen_code\table_f.obj: ..\..\..\..\..\src\ta_abstract\tables\table_f.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\gen_code\table_f.obj ..\..\..\..\..\src\ta_abstract\tables\table_f.c + +..\..\..\..\..\temp\csr\gen_code\table_g.obj: ..\..\..\..\..\src\ta_abstract\tables\table_g.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\gen_code\table_g.obj ..\..\..\..\..\src\ta_abstract\tables\table_g.c + +..\..\..\..\..\temp\csr\gen_code\table_h.obj: ..\..\..\..\..\src\ta_abstract\tables\table_h.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\gen_code\table_h.obj ..\..\..\..\..\src\ta_abstract\tables\table_h.c + +..\..\..\..\..\temp\csr\gen_code\table_i.obj: ..\..\..\..\..\src\ta_abstract\tables\table_i.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\gen_code\table_i.obj ..\..\..\..\..\src\ta_abstract\tables\table_i.c + +..\..\..\..\..\temp\csr\gen_code\table_j.obj: ..\..\..\..\..\src\ta_abstract\tables\table_j.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\gen_code\table_j.obj ..\..\..\..\..\src\ta_abstract\tables\table_j.c + +..\..\..\..\..\temp\csr\gen_code\table_k.obj: ..\..\..\..\..\src\ta_abstract\tables\table_k.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\gen_code\table_k.obj ..\..\..\..\..\src\ta_abstract\tables\table_k.c + +..\..\..\..\..\temp\csr\gen_code\table_l.obj: ..\..\..\..\..\src\ta_abstract\tables\table_l.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\gen_code\table_l.obj ..\..\..\..\..\src\ta_abstract\tables\table_l.c + +..\..\..\..\..\temp\csr\gen_code\table_m.obj: ..\..\..\..\..\src\ta_abstract\tables\table_m.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\gen_code\table_m.obj ..\..\..\..\..\src\ta_abstract\tables\table_m.c + +..\..\..\..\..\temp\csr\gen_code\table_n.obj: ..\..\..\..\..\src\ta_abstract\tables\table_n.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\gen_code\table_n.obj ..\..\..\..\..\src\ta_abstract\tables\table_n.c + +..\..\..\..\..\temp\csr\gen_code\table_o.obj: ..\..\..\..\..\src\ta_abstract\tables\table_o.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\gen_code\table_o.obj ..\..\..\..\..\src\ta_abstract\tables\table_o.c + +..\..\..\..\..\temp\csr\gen_code\table_p.obj: ..\..\..\..\..\src\ta_abstract\tables\table_p.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\gen_code\table_p.obj ..\..\..\..\..\src\ta_abstract\tables\table_p.c + +..\..\..\..\..\temp\csr\gen_code\table_q.obj: ..\..\..\..\..\src\ta_abstract\tables\table_q.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\gen_code\table_q.obj ..\..\..\..\..\src\ta_abstract\tables\table_q.c + +..\..\..\..\..\temp\csr\gen_code\table_r.obj: ..\..\..\..\..\src\ta_abstract\tables\table_r.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\gen_code\table_r.obj ..\..\..\..\..\src\ta_abstract\tables\table_r.c + +..\..\..\..\..\temp\csr\gen_code\table_s.obj: ..\..\..\..\..\src\ta_abstract\tables\table_s.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\gen_code\table_s.obj ..\..\..\..\..\src\ta_abstract\tables\table_s.c + +..\..\..\..\..\temp\csr\gen_code\table_t.obj: ..\..\..\..\..\src\ta_abstract\tables\table_t.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\gen_code\table_t.obj ..\..\..\..\..\src\ta_abstract\tables\table_t.c + +..\..\..\..\..\temp\csr\gen_code\table_u.obj: ..\..\..\..\..\src\ta_abstract\tables\table_u.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\gen_code\table_u.obj ..\..\..\..\..\src\ta_abstract\tables\table_u.c + +..\..\..\..\..\temp\csr\gen_code\table_v.obj: ..\..\..\..\..\src\ta_abstract\tables\table_v.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\gen_code\table_v.obj ..\..\..\..\..\src\ta_abstract\tables\table_v.c + +..\..\..\..\..\temp\csr\gen_code\table_w.obj: ..\..\..\..\..\src\ta_abstract\tables\table_w.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\gen_code\table_w.obj ..\..\..\..\..\src\ta_abstract\tables\table_w.c + +..\..\..\..\..\temp\csr\gen_code\table_x.obj: ..\..\..\..\..\src\ta_abstract\tables\table_x.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\gen_code\table_x.obj ..\..\..\..\..\src\ta_abstract\tables\table_x.c + +..\..\..\..\..\temp\csr\gen_code\table_y.obj: ..\..\..\..\..\src\ta_abstract\tables\table_y.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\gen_code\table_y.obj ..\..\..\..\..\src\ta_abstract\tables\table_y.c + +..\..\..\..\..\temp\csr\gen_code\table_z.obj: ..\..\..\..\..\src\ta_abstract\tables\table_z.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\gen_code\table_z.obj ..\..\..\..\..\src\ta_abstract\tables\table_z.c + diff --git a/make/csr/win32/msvc/ta_abstract/Makefile b/make/csr/win32/msvc/ta_abstract/Makefile new file mode 100644 index 000000000..85707e823 --- /dev/null +++ b/make/csr/win32/msvc/ta_abstract/Makefile @@ -0,0 +1,270 @@ +############################################################################# +# Makefile for building ta_abstract_csr +# Generated by tmake; +# Project: ta_abstract/ta_abstract +# Template: lib +############################################################################# + +####### Compiler, tools and options + +CC = cl +CXX = cl +CFLAGS = -nologo -W3 -O2 -DTA_SINGLE_THREAD -DWIN32 -D_MBCS -D_LIB +CXXFLAGS= -nologo -W3 -O2 -DTA_SINGLE_THREAD -DWIN32 -D_MBCS -D_LIB +INCPATH = -I"..\..\..\..\..\src\ta_common" -I"..\..\..\..\..\src\ta_abstract" -I"..\..\..\..\..\src\ta_abstract\tables" -I"..\..\..\..\..\src\ta_abstract\frames" -I"..\..\..\..\..\include" +LIB = lib /NOLOGO +MOC = moc +UIC = uic + +ZIP = zip -r -9 + +####### Files + +HEADERS = +SOURCES = ..\..\..\..\..\src\ta_abstract\ta_abstract.c \ + ..\..\..\..\..\src\ta_abstract\ta_def_ui.c \ + ..\..\..\..\..\src\ta_abstract\ta_func_api.c \ + ..\..\..\..\..\src\ta_abstract\ta_group_idx.c \ + ..\..\..\..\..\src\ta_abstract\frames\ta_frame.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_a.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_b.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_c.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_d.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_e.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_f.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_g.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_h.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_i.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_j.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_k.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_l.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_m.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_n.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_o.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_p.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_q.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_r.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_s.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_t.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_u.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_v.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_w.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_x.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_y.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_z.c +OBJECTS = ..\..\..\..\..\temp\csr\ta_abstract.obj \ + ..\..\..\..\..\temp\csr\ta_def_ui.obj \ + ..\..\..\..\..\temp\csr\ta_func_api.obj \ + ..\..\..\..\..\temp\csr\ta_group_idx.obj \ + ..\..\..\..\..\temp\csr\ta_frame.obj \ + ..\..\..\..\..\temp\csr\table_a.obj \ + ..\..\..\..\..\temp\csr\table_b.obj \ + ..\..\..\..\..\temp\csr\table_c.obj \ + ..\..\..\..\..\temp\csr\table_d.obj \ + ..\..\..\..\..\temp\csr\table_e.obj \ + ..\..\..\..\..\temp\csr\table_f.obj \ + ..\..\..\..\..\temp\csr\table_g.obj \ + ..\..\..\..\..\temp\csr\table_h.obj \ + ..\..\..\..\..\temp\csr\table_i.obj \ + ..\..\..\..\..\temp\csr\table_j.obj \ + ..\..\..\..\..\temp\csr\table_k.obj \ + ..\..\..\..\..\temp\csr\table_l.obj \ + ..\..\..\..\..\temp\csr\table_m.obj \ + ..\..\..\..\..\temp\csr\table_n.obj \ + ..\..\..\..\..\temp\csr\table_o.obj \ + ..\..\..\..\..\temp\csr\table_p.obj \ + ..\..\..\..\..\temp\csr\table_q.obj \ + ..\..\..\..\..\temp\csr\table_r.obj \ + ..\..\..\..\..\temp\csr\table_s.obj \ + ..\..\..\..\..\temp\csr\table_t.obj \ + ..\..\..\..\..\temp\csr\table_u.obj \ + ..\..\..\..\..\temp\csr\table_v.obj \ + ..\..\..\..\..\temp\csr\table_w.obj \ + ..\..\..\..\..\temp\csr\table_x.obj \ + ..\..\..\..\..\temp\csr\table_y.obj \ + ..\..\..\..\..\temp\csr\table_z.obj +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ..\..\..\..\..\lib\ta_abstract_csr.lib +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .c + +.cpp.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $< + +.cxx.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $< + +.cc.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $< + +.c.obj: + $(CC) -c $(CFLAGS) $(INCPATH) -Fo$@ $< + +####### Build rules + +all: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + $(LIB) /OUT:$(TARGET) @<< + $(OBJECTS) $(OBJMOC) +<< + +moc: $(SRCMOC) + +tmake: ../csr/win32/msvc/ta_abstract/Makefile + +../csr/win32/msvc/ta_abstract/Makefile: ta_abstract/ta_abstract.pro + tmake ta_abstract/ta_abstract.pro -o ../csr/win32/msvc/ta_abstract/Makefile + +dist: + $(ZIP) ta_abstract/ta_abstract.zip ta_abstract/ta_abstract.pro $(SOURCES) $(HEADERS) $(DIST) $(INTERFACES) + +clean: + -del ..\..\..\..\..\temp\csr\ta_abstract.obj + -del ..\..\..\..\..\temp\csr\ta_def_ui.obj + -del ..\..\..\..\..\temp\csr\ta_func_api.obj + -del ..\..\..\..\..\temp\csr\ta_group_idx.obj + -del ..\..\..\..\..\temp\csr\ta_frame.obj + -del ..\..\..\..\..\temp\csr\table_a.obj + -del ..\..\..\..\..\temp\csr\table_b.obj + -del ..\..\..\..\..\temp\csr\table_c.obj + -del ..\..\..\..\..\temp\csr\table_d.obj + -del ..\..\..\..\..\temp\csr\table_e.obj + -del ..\..\..\..\..\temp\csr\table_f.obj + -del ..\..\..\..\..\temp\csr\table_g.obj + -del ..\..\..\..\..\temp\csr\table_h.obj + -del ..\..\..\..\..\temp\csr\table_i.obj + -del ..\..\..\..\..\temp\csr\table_j.obj + -del ..\..\..\..\..\temp\csr\table_k.obj + -del ..\..\..\..\..\temp\csr\table_l.obj + -del ..\..\..\..\..\temp\csr\table_m.obj + -del ..\..\..\..\..\temp\csr\table_n.obj + -del ..\..\..\..\..\temp\csr\table_o.obj + -del ..\..\..\..\..\temp\csr\table_p.obj + -del ..\..\..\..\..\temp\csr\table_q.obj + -del ..\..\..\..\..\temp\csr\table_r.obj + -del ..\..\..\..\..\temp\csr\table_s.obj + -del ..\..\..\..\..\temp\csr\table_t.obj + -del ..\..\..\..\..\temp\csr\table_u.obj + -del ..\..\..\..\..\temp\csr\table_v.obj + -del ..\..\..\..\..\temp\csr\table_w.obj + -del ..\..\..\..\..\temp\csr\table_x.obj + -del ..\..\..\..\..\temp\csr\table_y.obj + -del ..\..\..\..\..\temp\csr\table_z.obj + -del $(TARGET) + -del ../../../../../bin/*.map + -del ../../../../../bin/*._xe + -del ../../../../../bin/*.tds + -del ../../../../../bin/*.pdb + -del ../../../../../bin/*.pbo + -del ../../../../../bin/*.pbi + -del ../../../../../bin/*.pbt + -del ../../../../../temp/csr/*.pch + -del ../../../../../temp/csr/*.idb + -del ../../../../../temp/csr/ta_abstract/*.pch + -del ../../../../../temp/csr/ta_abstract/*.idb + -del ../../../../../temp/csr/ta_abstract/*.obj + +####### Compile + +..\..\..\..\..\temp\csr\ta_abstract.obj: ..\..\..\..\..\src\ta_abstract\ta_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_abstract.obj ..\..\..\..\..\src\ta_abstract\ta_abstract.c + +..\..\..\..\..\temp\csr\ta_def_ui.obj: ..\..\..\..\..\src\ta_abstract\ta_def_ui.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_def_ui.obj ..\..\..\..\..\src\ta_abstract\ta_def_ui.c + +..\..\..\..\..\temp\csr\ta_func_api.obj: ..\..\..\..\..\src\ta_abstract\ta_func_api.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_func_api.obj ..\..\..\..\..\src\ta_abstract\ta_func_api.c + +..\..\..\..\..\temp\csr\ta_group_idx.obj: ..\..\..\..\..\src\ta_abstract\ta_group_idx.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_group_idx.obj ..\..\..\..\..\src\ta_abstract\ta_group_idx.c + +..\..\..\..\..\temp\csr\ta_frame.obj: ..\..\..\..\..\src\ta_abstract\frames\ta_frame.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_frame.obj ..\..\..\..\..\src\ta_abstract\frames\ta_frame.c + +..\..\..\..\..\temp\csr\table_a.obj: ..\..\..\..\..\src\ta_abstract\tables\table_a.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\table_a.obj ..\..\..\..\..\src\ta_abstract\tables\table_a.c + +..\..\..\..\..\temp\csr\table_b.obj: ..\..\..\..\..\src\ta_abstract\tables\table_b.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\table_b.obj ..\..\..\..\..\src\ta_abstract\tables\table_b.c + +..\..\..\..\..\temp\csr\table_c.obj: ..\..\..\..\..\src\ta_abstract\tables\table_c.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\table_c.obj ..\..\..\..\..\src\ta_abstract\tables\table_c.c + +..\..\..\..\..\temp\csr\table_d.obj: ..\..\..\..\..\src\ta_abstract\tables\table_d.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\table_d.obj ..\..\..\..\..\src\ta_abstract\tables\table_d.c + +..\..\..\..\..\temp\csr\table_e.obj: ..\..\..\..\..\src\ta_abstract\tables\table_e.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\table_e.obj ..\..\..\..\..\src\ta_abstract\tables\table_e.c + +..\..\..\..\..\temp\csr\table_f.obj: ..\..\..\..\..\src\ta_abstract\tables\table_f.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\table_f.obj ..\..\..\..\..\src\ta_abstract\tables\table_f.c + +..\..\..\..\..\temp\csr\table_g.obj: ..\..\..\..\..\src\ta_abstract\tables\table_g.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\table_g.obj ..\..\..\..\..\src\ta_abstract\tables\table_g.c + +..\..\..\..\..\temp\csr\table_h.obj: ..\..\..\..\..\src\ta_abstract\tables\table_h.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\table_h.obj ..\..\..\..\..\src\ta_abstract\tables\table_h.c + +..\..\..\..\..\temp\csr\table_i.obj: ..\..\..\..\..\src\ta_abstract\tables\table_i.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\table_i.obj ..\..\..\..\..\src\ta_abstract\tables\table_i.c + +..\..\..\..\..\temp\csr\table_j.obj: ..\..\..\..\..\src\ta_abstract\tables\table_j.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\table_j.obj ..\..\..\..\..\src\ta_abstract\tables\table_j.c + +..\..\..\..\..\temp\csr\table_k.obj: ..\..\..\..\..\src\ta_abstract\tables\table_k.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\table_k.obj ..\..\..\..\..\src\ta_abstract\tables\table_k.c + +..\..\..\..\..\temp\csr\table_l.obj: ..\..\..\..\..\src\ta_abstract\tables\table_l.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\table_l.obj ..\..\..\..\..\src\ta_abstract\tables\table_l.c + +..\..\..\..\..\temp\csr\table_m.obj: ..\..\..\..\..\src\ta_abstract\tables\table_m.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\table_m.obj ..\..\..\..\..\src\ta_abstract\tables\table_m.c + +..\..\..\..\..\temp\csr\table_n.obj: ..\..\..\..\..\src\ta_abstract\tables\table_n.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\table_n.obj ..\..\..\..\..\src\ta_abstract\tables\table_n.c + +..\..\..\..\..\temp\csr\table_o.obj: ..\..\..\..\..\src\ta_abstract\tables\table_o.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\table_o.obj ..\..\..\..\..\src\ta_abstract\tables\table_o.c + +..\..\..\..\..\temp\csr\table_p.obj: ..\..\..\..\..\src\ta_abstract\tables\table_p.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\table_p.obj ..\..\..\..\..\src\ta_abstract\tables\table_p.c + +..\..\..\..\..\temp\csr\table_q.obj: ..\..\..\..\..\src\ta_abstract\tables\table_q.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\table_q.obj ..\..\..\..\..\src\ta_abstract\tables\table_q.c + +..\..\..\..\..\temp\csr\table_r.obj: ..\..\..\..\..\src\ta_abstract\tables\table_r.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\table_r.obj ..\..\..\..\..\src\ta_abstract\tables\table_r.c + +..\..\..\..\..\temp\csr\table_s.obj: ..\..\..\..\..\src\ta_abstract\tables\table_s.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\table_s.obj ..\..\..\..\..\src\ta_abstract\tables\table_s.c + +..\..\..\..\..\temp\csr\table_t.obj: ..\..\..\..\..\src\ta_abstract\tables\table_t.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\table_t.obj ..\..\..\..\..\src\ta_abstract\tables\table_t.c + +..\..\..\..\..\temp\csr\table_u.obj: ..\..\..\..\..\src\ta_abstract\tables\table_u.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\table_u.obj ..\..\..\..\..\src\ta_abstract\tables\table_u.c + +..\..\..\..\..\temp\csr\table_v.obj: ..\..\..\..\..\src\ta_abstract\tables\table_v.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\table_v.obj ..\..\..\..\..\src\ta_abstract\tables\table_v.c + +..\..\..\..\..\temp\csr\table_w.obj: ..\..\..\..\..\src\ta_abstract\tables\table_w.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\table_w.obj ..\..\..\..\..\src\ta_abstract\tables\table_w.c + +..\..\..\..\..\temp\csr\table_x.obj: ..\..\..\..\..\src\ta_abstract\tables\table_x.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\table_x.obj ..\..\..\..\..\src\ta_abstract\tables\table_x.c + +..\..\..\..\..\temp\csr\table_y.obj: ..\..\..\..\..\src\ta_abstract\tables\table_y.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\table_y.obj ..\..\..\..\..\src\ta_abstract\tables\table_y.c + +..\..\..\..\..\temp\csr\table_z.obj: ..\..\..\..\..\src\ta_abstract\tables\table_z.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\table_z.obj ..\..\..\..\..\src\ta_abstract\tables\table_z.c + diff --git a/make/csr/win32/msvc/ta_common/Makefile b/make/csr/win32/msvc/ta_common/Makefile new file mode 100644 index 000000000..70a8b3524 --- /dev/null +++ b/make/csr/win32/msvc/ta_common/Makefile @@ -0,0 +1,102 @@ +############################################################################# +# Makefile for building ta_common_csr +# Generated by tmake; +# Project: ta_common/ta_common +# Template: lib +############################################################################# + +####### Compiler, tools and options + +CC = cl +CXX = cl +CFLAGS = -nologo -W3 -O2 -DTA_SINGLE_THREAD -DWIN32 -D_MBCS -D_LIB +CXXFLAGS= -nologo -W3 -O2 -DTA_SINGLE_THREAD -DWIN32 -D_MBCS -D_LIB +INCPATH = -I"..\..\..\..\..\src\ta_common" -I"..\..\..\..\..\include" +LIB = lib /NOLOGO +MOC = moc +UIC = uic + +ZIP = zip -r -9 + +####### Files + +HEADERS = +SOURCES = ..\..\..\..\..\src\ta_common\ta_global.c \ + ..\..\..\..\..\src\ta_common\ta_retcode.c \ + ..\..\..\..\..\src\ta_common\ta_version.c +OBJECTS = ..\..\..\..\..\temp\csr\ta_global.obj \ + ..\..\..\..\..\temp\csr\ta_retcode.obj \ + ..\..\..\..\..\temp\csr\ta_version.obj +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ..\..\..\..\..\lib\ta_common_csr.lib +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .c + +.cpp.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $< + +.cxx.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $< + +.cc.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $< + +.c.obj: + $(CC) -c $(CFLAGS) $(INCPATH) -Fo$@ $< + +####### Build rules + +all: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + $(LIB) /OUT:$(TARGET) @<< + $(OBJECTS) $(OBJMOC) +<< + +moc: $(SRCMOC) + +tmake: ../csr/win32/msvc/ta_common/Makefile + +../csr/win32/msvc/ta_common/Makefile: ta_common/ta_common.pro + tmake ta_common/ta_common.pro -o ../csr/win32/msvc/ta_common/Makefile + +dist: + $(ZIP) ta_common/ta_common.zip ta_common/ta_common.pro $(SOURCES) $(HEADERS) $(DIST) $(INTERFACES) + +clean: + -del ..\..\..\..\..\temp\csr\ta_global.obj + -del ..\..\..\..\..\temp\csr\ta_retcode.obj + -del ..\..\..\..\..\temp\csr\ta_version.obj + -del $(TARGET) + -del ../../../../../bin/*.map + -del ../../../../../bin/*._xe + -del ../../../../../bin/*.tds + -del ../../../../../bin/*.pdb + -del ../../../../../bin/*.pbo + -del ../../../../../bin/*.pbi + -del ../../../../../bin/*.pbt + -del ../../../../../temp/csr/*.pch + -del ../../../../../temp/csr/*.idb + -del ../../../../../temp/csr/ta_common_csr/*.pch + -del ../../../../../temp/csr/ta_common_csr/*.idb + -del ../../../../../temp/csr/ta_common_csr/*.obj + +####### Compile + +..\..\..\..\..\temp\csr\ta_global.obj: ..\..\..\..\..\src\ta_common\ta_global.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_global.obj ..\..\..\..\..\src\ta_common\ta_global.c + +..\..\..\..\..\temp\csr\ta_retcode.obj: ..\..\..\..\..\src\ta_common\ta_retcode.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_retcode.obj ..\..\..\..\..\src\ta_common\ta_retcode.c + +..\..\..\..\..\temp\csr\ta_version.obj: ..\..\..\..\..\src\ta_common\ta_version.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_version.obj ..\..\..\..\..\src\ta_common\ta_version.c + diff --git a/make/csr/win32/msvc/ta_func/Makefile b/make/csr/win32/msvc/ta_func/Makefile new file mode 100644 index 000000000..237c33809 --- /dev/null +++ b/make/csr/win32/msvc/ta_func/Makefile @@ -0,0 +1,1038 @@ +############################################################################# +# Makefile for building ta_func_csr +# Generated by tmake; +# Project: ta_func/ta_func +# Template: lib +############################################################################# + +####### Compiler, tools and options + +CC = cl +CXX = cl +CFLAGS = -nologo -W3 -O2 -DTA_SINGLE_THREAD -DWIN32 -D_MBCS -D_LIB +CXXFLAGS= -nologo -W3 -O2 -DTA_SINGLE_THREAD -DWIN32 -D_MBCS -D_LIB +INCPATH = -I"..\..\..\..\..\src\ta_common" -I"\n" -I"..\..\..\..\..\include" +LIB = lib /NOLOGO +MOC = moc +UIC = uic + +ZIP = zip -r -9 + +####### Files + +HEADERS = +SOURCES = ..\..\..\..\..\src\ta_func\ta_utility.c \ + ..\..\..\..\..\src\ta_func\ta_ACOS.c \ + ..\..\..\..\..\src\ta_func\ta_AD.c \ + ..\..\..\..\..\src\ta_func\ta_ADD.c \ + ..\..\..\..\..\src\ta_func\ta_ADOSC.c \ + ..\..\..\..\..\src\ta_func\ta_ADX.c \ + ..\..\..\..\..\src\ta_func\ta_ADXR.c \ + ..\..\..\..\..\src\ta_func\ta_APO.c \ + ..\..\..\..\..\src\ta_func\ta_AROON.c \ + ..\..\..\..\..\src\ta_func\ta_AROONOSC.c \ + ..\..\..\..\..\src\ta_func\ta_ASIN.c \ + ..\..\..\..\..\src\ta_func\ta_ATAN.c \ + ..\..\..\..\..\src\ta_func\ta_ATR.c \ + ..\..\..\..\..\src\ta_func\ta_AVGPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_BBANDS.c \ + ..\..\..\..\..\src\ta_func\ta_BETA.c \ + ..\..\..\..\..\src\ta_func\ta_BOP.c \ + ..\..\..\..\..\src\ta_func\ta_CCI.c \ + ..\..\..\..\..\src\ta_func\ta_CDL2CROWS.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3BLACKCROWS.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3INSIDE.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3LINESTRIKE.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3OUTSIDE.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3STARSINSOUTH.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3WHITESOLDIERS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLABANDONEDBABY.c \ + ..\..\..\..\..\src\ta_func\ta_CDLADVANCEBLOCK.c \ + ..\..\..\..\..\src\ta_func\ta_CDLBELTHOLD.c \ + ..\..\..\..\..\src\ta_func\ta_CDLBREAKAWAY.c \ + ..\..\..\..\..\src\ta_func\ta_CDLCLOSINGMARUBOZU.c \ + ..\..\..\..\..\src\ta_func\ta_CDLCONCEALBABYSWALL.c \ + ..\..\..\..\..\src\ta_func\ta_CDLCOUNTERATTACK.c \ + ..\..\..\..\..\src\ta_func\ta_CDLDARKCLOUDCOVER.c \ + ..\..\..\..\..\src\ta_func\ta_CDLDOJI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLDOJISTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLDRAGONFLYDOJI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLENGULFING.c \ + ..\..\..\..\..\src\ta_func\ta_CDLEVENINGDOJISTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLEVENINGSTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLGAPSIDESIDEWHITE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLGRAVESTONEDOJI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHAMMER.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHANGINGMAN.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHARAMI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHARAMICROSS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHIGHWAVE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKEMOD.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHOMINGPIGEON.c \ + ..\..\..\..\..\src\ta_func\ta_CDLIDENTICAL3CROWS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLINNECK.c \ + ..\..\..\..\..\src\ta_func\ta_CDLINVERTEDHAMMER.c \ + ..\..\..\..\..\src\ta_func\ta_CDLKICKING.c \ + ..\..\..\..\..\src\ta_func\ta_CDLKICKINGBYLENGTH.c \ + ..\..\..\..\..\src\ta_func\ta_CDLLADDERBOTTOM.c \ + ..\..\..\..\..\src\ta_func\ta_CDLLONGLEGGEDDOJI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLLONGLINE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMARUBOZU.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMATCHINGLOW.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMATHOLD.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMORNINGDOJISTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMORNINGSTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLONNECK.c \ + ..\..\..\..\..\src\ta_func\ta_CDLPIERCING.c \ + ..\..\..\..\..\src\ta_func\ta_CDLRICKSHAWMAN.c \ + ..\..\..\..\..\src\ta_func\ta_CDLRISEFALL3METHODS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSEPARATINGLINES.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSHOOTINGSTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSHORTLINE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSPINNINGTOP.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSTALLEDPATTERN.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSTICKSANDWICH.c \ + ..\..\..\..\..\src\ta_func\ta_CDLTAKURI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLTASUKIGAP.c \ + ..\..\..\..\..\src\ta_func\ta_CDLTHRUSTING.c \ + ..\..\..\..\..\src\ta_func\ta_CDLTRISTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLUNIQUE3RIVER.c \ + ..\..\..\..\..\src\ta_func\ta_CDLUPSIDEGAP2CROWS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLXSIDEGAP3METHODS.c \ + ..\..\..\..\..\src\ta_func\ta_CEIL.c \ + ..\..\..\..\..\src\ta_func\ta_CMO.c \ + ..\..\..\..\..\src\ta_func\ta_CORREL.c \ + ..\..\..\..\..\src\ta_func\ta_COS.c \ + ..\..\..\..\..\src\ta_func\ta_COSH.c \ + ..\..\..\..\..\src\ta_func\ta_DEMA.c \ + ..\..\..\..\..\src\ta_func\ta_DIV.c \ + ..\..\..\..\..\src\ta_func\ta_DX.c \ + ..\..\..\..\..\src\ta_func\ta_EMA.c \ + ..\..\..\..\..\src\ta_func\ta_EXP.c \ + ..\..\..\..\..\src\ta_func\ta_FLOOR.c \ + ..\..\..\..\..\src\ta_func\ta_HT_DCPERIOD.c \ + ..\..\..\..\..\src\ta_func\ta_HT_DCPHASE.c \ + ..\..\..\..\..\src\ta_func\ta_HT_PHASOR.c \ + ..\..\..\..\..\src\ta_func\ta_HT_SINE.c \ + ..\..\..\..\..\src\ta_func\ta_HT_TRENDLINE.c \ + ..\..\..\..\..\src\ta_func\ta_HT_TRENDMODE.c \ + ..\..\..\..\..\src\ta_func\ta_KAMA.c \ + ..\..\..\..\..\src\ta_func\ta_LINEARREG.c \ + ..\..\..\..\..\src\ta_func\ta_LINEARREG_ANGLE.c \ + ..\..\..\..\..\src\ta_func\ta_LINEARREG_INTERCEPT.c \ + ..\..\..\..\..\src\ta_func\ta_LINEARREG_SLOPE.c \ + ..\..\..\..\..\src\ta_func\ta_LN.c \ + ..\..\..\..\..\src\ta_func\ta_LOG10.c \ + ..\..\..\..\..\src\ta_func\ta_MA.c \ + ..\..\..\..\..\src\ta_func\ta_MACD.c \ + ..\..\..\..\..\src\ta_func\ta_MACDEXT.c \ + ..\..\..\..\..\src\ta_func\ta_MACDFIX.c \ + ..\..\..\..\..\src\ta_func\ta_MAMA.c \ + ..\..\..\..\..\src\ta_func\ta_MAVP.c \ + ..\..\..\..\..\src\ta_func\ta_MAX.c \ + ..\..\..\..\..\src\ta_func\ta_MAXINDEX.c \ + ..\..\..\..\..\src\ta_func\ta_MEDPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_MFI.c \ + ..\..\..\..\..\src\ta_func\ta_MIDPOINT.c \ + ..\..\..\..\..\src\ta_func\ta_MIDPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_MIN.c \ + ..\..\..\..\..\src\ta_func\ta_MININDEX.c \ + ..\..\..\..\..\src\ta_func\ta_MINMAX.c \ + ..\..\..\..\..\src\ta_func\ta_MINMAXINDEX.c \ + ..\..\..\..\..\src\ta_func\ta_MINUS_DI.c \ + ..\..\..\..\..\src\ta_func\ta_MINUS_DM.c \ + ..\..\..\..\..\src\ta_func\ta_MOM.c \ + ..\..\..\..\..\src\ta_func\ta_MULT.c \ + ..\..\..\..\..\src\ta_func\ta_NATR.c \ + ..\..\..\..\..\src\ta_func\ta_OBV.c \ + ..\..\..\..\..\src\ta_func\ta_PLUS_DI.c \ + ..\..\..\..\..\src\ta_func\ta_PLUS_DM.c \ + ..\..\..\..\..\src\ta_func\ta_PPO.c \ + ..\..\..\..\..\src\ta_func\ta_ROC.c \ + ..\..\..\..\..\src\ta_func\ta_ROCP.c \ + ..\..\..\..\..\src\ta_func\ta_ROCR.c \ + ..\..\..\..\..\src\ta_func\ta_ROCR100.c \ + ..\..\..\..\..\src\ta_func\ta_RSI.c \ + ..\..\..\..\..\src\ta_func\ta_SAR.c \ + ..\..\..\..\..\src\ta_func\ta_SAREXT.c \ + ..\..\..\..\..\src\ta_func\ta_SIN.c \ + ..\..\..\..\..\src\ta_func\ta_SINH.c \ + ..\..\..\..\..\src\ta_func\ta_SMA.c \ + ..\..\..\..\..\src\ta_func\ta_SQRT.c \ + ..\..\..\..\..\src\ta_func\ta_STDDEV.c \ + ..\..\..\..\..\src\ta_func\ta_STOCH.c \ + ..\..\..\..\..\src\ta_func\ta_STOCHF.c \ + ..\..\..\..\..\src\ta_func\ta_STOCHRSI.c \ + ..\..\..\..\..\src\ta_func\ta_SUB.c \ + ..\..\..\..\..\src\ta_func\ta_SUM.c \ + ..\..\..\..\..\src\ta_func\ta_T3.c \ + ..\..\..\..\..\src\ta_func\ta_TAN.c \ + ..\..\..\..\..\src\ta_func\ta_TANH.c \ + ..\..\..\..\..\src\ta_func\ta_TEMA.c \ + ..\..\..\..\..\src\ta_func\ta_TRANGE.c \ + ..\..\..\..\..\src\ta_func\ta_TRIMA.c \ + ..\..\..\..\..\src\ta_func\ta_TRIX.c \ + ..\..\..\..\..\src\ta_func\ta_TSF.c \ + ..\..\..\..\..\src\ta_func\ta_TYPPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_ULTOSC.c \ + ..\..\..\..\..\src\ta_func\ta_VAR.c \ + ..\..\..\..\..\src\ta_func\ta_WCLPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_WILLR.c \ + ..\..\..\..\..\src\ta_func\ta_WMA.c +OBJECTS = ..\..\..\..\..\temp\csr\ta_utility.obj \ + ..\..\..\..\..\temp\csr\ta_ACOS.obj \ + ..\..\..\..\..\temp\csr\ta_AD.obj \ + ..\..\..\..\..\temp\csr\ta_ADD.obj \ + ..\..\..\..\..\temp\csr\ta_ADOSC.obj \ + ..\..\..\..\..\temp\csr\ta_ADX.obj \ + ..\..\..\..\..\temp\csr\ta_ADXR.obj \ + ..\..\..\..\..\temp\csr\ta_APO.obj \ + ..\..\..\..\..\temp\csr\ta_AROON.obj \ + ..\..\..\..\..\temp\csr\ta_AROONOSC.obj \ + ..\..\..\..\..\temp\csr\ta_ASIN.obj \ + ..\..\..\..\..\temp\csr\ta_ATAN.obj \ + ..\..\..\..\..\temp\csr\ta_ATR.obj \ + ..\..\..\..\..\temp\csr\ta_AVGPRICE.obj \ + ..\..\..\..\..\temp\csr\ta_BBANDS.obj \ + ..\..\..\..\..\temp\csr\ta_BETA.obj \ + ..\..\..\..\..\temp\csr\ta_BOP.obj \ + ..\..\..\..\..\temp\csr\ta_CCI.obj \ + ..\..\..\..\..\temp\csr\ta_CDL2CROWS.obj \ + ..\..\..\..\..\temp\csr\ta_CDL3BLACKCROWS.obj \ + ..\..\..\..\..\temp\csr\ta_CDL3INSIDE.obj \ + ..\..\..\..\..\temp\csr\ta_CDL3LINESTRIKE.obj \ + ..\..\..\..\..\temp\csr\ta_CDL3OUTSIDE.obj \ + ..\..\..\..\..\temp\csr\ta_CDL3STARSINSOUTH.obj \ + ..\..\..\..\..\temp\csr\ta_CDL3WHITESOLDIERS.obj \ + ..\..\..\..\..\temp\csr\ta_CDLABANDONEDBABY.obj \ + ..\..\..\..\..\temp\csr\ta_CDLADVANCEBLOCK.obj \ + ..\..\..\..\..\temp\csr\ta_CDLBELTHOLD.obj \ + ..\..\..\..\..\temp\csr\ta_CDLBREAKAWAY.obj \ + ..\..\..\..\..\temp\csr\ta_CDLCLOSINGMARUBOZU.obj \ + ..\..\..\..\..\temp\csr\ta_CDLCONCEALBABYSWALL.obj \ + ..\..\..\..\..\temp\csr\ta_CDLCOUNTERATTACK.obj \ + ..\..\..\..\..\temp\csr\ta_CDLDARKCLOUDCOVER.obj \ + ..\..\..\..\..\temp\csr\ta_CDLDOJI.obj \ + ..\..\..\..\..\temp\csr\ta_CDLDOJISTAR.obj \ + ..\..\..\..\..\temp\csr\ta_CDLDRAGONFLYDOJI.obj \ + ..\..\..\..\..\temp\csr\ta_CDLENGULFING.obj \ + ..\..\..\..\..\temp\csr\ta_CDLEVENINGDOJISTAR.obj \ + ..\..\..\..\..\temp\csr\ta_CDLEVENINGSTAR.obj \ + ..\..\..\..\..\temp\csr\ta_CDLGAPSIDESIDEWHITE.obj \ + ..\..\..\..\..\temp\csr\ta_CDLGRAVESTONEDOJI.obj \ + ..\..\..\..\..\temp\csr\ta_CDLHAMMER.obj \ + ..\..\..\..\..\temp\csr\ta_CDLHANGINGMAN.obj \ + ..\..\..\..\..\temp\csr\ta_CDLHARAMI.obj \ + ..\..\..\..\..\temp\csr\ta_CDLHARAMICROSS.obj \ + ..\..\..\..\..\temp\csr\ta_CDLHIGHWAVE.obj \ + ..\..\..\..\..\temp\csr\ta_CDLHIKKAKE.obj \ + ..\..\..\..\..\temp\csr\ta_CDLHIKKAKEMOD.obj \ + ..\..\..\..\..\temp\csr\ta_CDLHOMINGPIGEON.obj \ + ..\..\..\..\..\temp\csr\ta_CDLIDENTICAL3CROWS.obj \ + ..\..\..\..\..\temp\csr\ta_CDLINNECK.obj \ + ..\..\..\..\..\temp\csr\ta_CDLINVERTEDHAMMER.obj \ + ..\..\..\..\..\temp\csr\ta_CDLKICKING.obj \ + ..\..\..\..\..\temp\csr\ta_CDLKICKINGBYLENGTH.obj \ + ..\..\..\..\..\temp\csr\ta_CDLLADDERBOTTOM.obj \ + ..\..\..\..\..\temp\csr\ta_CDLLONGLEGGEDDOJI.obj \ + ..\..\..\..\..\temp\csr\ta_CDLLONGLINE.obj \ + ..\..\..\..\..\temp\csr\ta_CDLMARUBOZU.obj \ + ..\..\..\..\..\temp\csr\ta_CDLMATCHINGLOW.obj \ + ..\..\..\..\..\temp\csr\ta_CDLMATHOLD.obj \ + ..\..\..\..\..\temp\csr\ta_CDLMORNINGDOJISTAR.obj \ + ..\..\..\..\..\temp\csr\ta_CDLMORNINGSTAR.obj \ + ..\..\..\..\..\temp\csr\ta_CDLONNECK.obj \ + ..\..\..\..\..\temp\csr\ta_CDLPIERCING.obj \ + ..\..\..\..\..\temp\csr\ta_CDLRICKSHAWMAN.obj \ + ..\..\..\..\..\temp\csr\ta_CDLRISEFALL3METHODS.obj \ + ..\..\..\..\..\temp\csr\ta_CDLSEPARATINGLINES.obj \ + ..\..\..\..\..\temp\csr\ta_CDLSHOOTINGSTAR.obj \ + ..\..\..\..\..\temp\csr\ta_CDLSHORTLINE.obj \ + ..\..\..\..\..\temp\csr\ta_CDLSPINNINGTOP.obj \ + ..\..\..\..\..\temp\csr\ta_CDLSTALLEDPATTERN.obj \ + ..\..\..\..\..\temp\csr\ta_CDLSTICKSANDWICH.obj \ + ..\..\..\..\..\temp\csr\ta_CDLTAKURI.obj \ + ..\..\..\..\..\temp\csr\ta_CDLTASUKIGAP.obj \ + ..\..\..\..\..\temp\csr\ta_CDLTHRUSTING.obj \ + ..\..\..\..\..\temp\csr\ta_CDLTRISTAR.obj \ + ..\..\..\..\..\temp\csr\ta_CDLUNIQUE3RIVER.obj \ + ..\..\..\..\..\temp\csr\ta_CDLUPSIDEGAP2CROWS.obj \ + ..\..\..\..\..\temp\csr\ta_CDLXSIDEGAP3METHODS.obj \ + ..\..\..\..\..\temp\csr\ta_CEIL.obj \ + ..\..\..\..\..\temp\csr\ta_CMO.obj \ + ..\..\..\..\..\temp\csr\ta_CORREL.obj \ + ..\..\..\..\..\temp\csr\ta_COS.obj \ + ..\..\..\..\..\temp\csr\ta_COSH.obj \ + ..\..\..\..\..\temp\csr\ta_DEMA.obj \ + ..\..\..\..\..\temp\csr\ta_DIV.obj \ + ..\..\..\..\..\temp\csr\ta_DX.obj \ + ..\..\..\..\..\temp\csr\ta_EMA.obj \ + ..\..\..\..\..\temp\csr\ta_EXP.obj \ + ..\..\..\..\..\temp\csr\ta_FLOOR.obj \ + ..\..\..\..\..\temp\csr\ta_HT_DCPERIOD.obj \ + ..\..\..\..\..\temp\csr\ta_HT_DCPHASE.obj \ + ..\..\..\..\..\temp\csr\ta_HT_PHASOR.obj \ + ..\..\..\..\..\temp\csr\ta_HT_SINE.obj \ + ..\..\..\..\..\temp\csr\ta_HT_TRENDLINE.obj \ + ..\..\..\..\..\temp\csr\ta_HT_TRENDMODE.obj \ + ..\..\..\..\..\temp\csr\ta_KAMA.obj \ + ..\..\..\..\..\temp\csr\ta_LINEARREG.obj \ + ..\..\..\..\..\temp\csr\ta_LINEARREG_ANGLE.obj \ + ..\..\..\..\..\temp\csr\ta_LINEARREG_INTERCEPT.obj \ + ..\..\..\..\..\temp\csr\ta_LINEARREG_SLOPE.obj \ + ..\..\..\..\..\temp\csr\ta_LN.obj \ + ..\..\..\..\..\temp\csr\ta_LOG10.obj \ + ..\..\..\..\..\temp\csr\ta_MA.obj \ + ..\..\..\..\..\temp\csr\ta_MACD.obj \ + ..\..\..\..\..\temp\csr\ta_MACDEXT.obj \ + ..\..\..\..\..\temp\csr\ta_MACDFIX.obj \ + ..\..\..\..\..\temp\csr\ta_MAMA.obj \ + ..\..\..\..\..\temp\csr\ta_MAVP.obj \ + ..\..\..\..\..\temp\csr\ta_MAX.obj \ + ..\..\..\..\..\temp\csr\ta_MAXINDEX.obj \ + ..\..\..\..\..\temp\csr\ta_MEDPRICE.obj \ + ..\..\..\..\..\temp\csr\ta_MFI.obj \ + ..\..\..\..\..\temp\csr\ta_MIDPOINT.obj \ + ..\..\..\..\..\temp\csr\ta_MIDPRICE.obj \ + ..\..\..\..\..\temp\csr\ta_MIN.obj \ + ..\..\..\..\..\temp\csr\ta_MININDEX.obj \ + ..\..\..\..\..\temp\csr\ta_MINMAX.obj \ + ..\..\..\..\..\temp\csr\ta_MINMAXINDEX.obj \ + ..\..\..\..\..\temp\csr\ta_MINUS_DI.obj \ + ..\..\..\..\..\temp\csr\ta_MINUS_DM.obj \ + ..\..\..\..\..\temp\csr\ta_MOM.obj \ + ..\..\..\..\..\temp\csr\ta_MULT.obj \ + ..\..\..\..\..\temp\csr\ta_NATR.obj \ + ..\..\..\..\..\temp\csr\ta_OBV.obj \ + ..\..\..\..\..\temp\csr\ta_PLUS_DI.obj \ + ..\..\..\..\..\temp\csr\ta_PLUS_DM.obj \ + ..\..\..\..\..\temp\csr\ta_PPO.obj \ + ..\..\..\..\..\temp\csr\ta_ROC.obj \ + ..\..\..\..\..\temp\csr\ta_ROCP.obj \ + ..\..\..\..\..\temp\csr\ta_ROCR.obj \ + ..\..\..\..\..\temp\csr\ta_ROCR100.obj \ + ..\..\..\..\..\temp\csr\ta_RSI.obj \ + ..\..\..\..\..\temp\csr\ta_SAR.obj \ + ..\..\..\..\..\temp\csr\ta_SAREXT.obj \ + ..\..\..\..\..\temp\csr\ta_SIN.obj \ + ..\..\..\..\..\temp\csr\ta_SINH.obj \ + ..\..\..\..\..\temp\csr\ta_SMA.obj \ + ..\..\..\..\..\temp\csr\ta_SQRT.obj \ + ..\..\..\..\..\temp\csr\ta_STDDEV.obj \ + ..\..\..\..\..\temp\csr\ta_STOCH.obj \ + ..\..\..\..\..\temp\csr\ta_STOCHF.obj \ + ..\..\..\..\..\temp\csr\ta_STOCHRSI.obj \ + ..\..\..\..\..\temp\csr\ta_SUB.obj \ + ..\..\..\..\..\temp\csr\ta_SUM.obj \ + ..\..\..\..\..\temp\csr\ta_T3.obj \ + ..\..\..\..\..\temp\csr\ta_TAN.obj \ + ..\..\..\..\..\temp\csr\ta_TANH.obj \ + ..\..\..\..\..\temp\csr\ta_TEMA.obj \ + ..\..\..\..\..\temp\csr\ta_TRANGE.obj \ + ..\..\..\..\..\temp\csr\ta_TRIMA.obj \ + ..\..\..\..\..\temp\csr\ta_TRIX.obj \ + ..\..\..\..\..\temp\csr\ta_TSF.obj \ + ..\..\..\..\..\temp\csr\ta_TYPPRICE.obj \ + ..\..\..\..\..\temp\csr\ta_ULTOSC.obj \ + ..\..\..\..\..\temp\csr\ta_VAR.obj \ + ..\..\..\..\..\temp\csr\ta_WCLPRICE.obj \ + ..\..\..\..\..\temp\csr\ta_WILLR.obj \ + ..\..\..\..\..\temp\csr\ta_WMA.obj +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ..\..\..\..\..\lib\ta_func_csr.lib +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .c + +.cpp.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $< + +.cxx.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $< + +.cc.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $< + +.c.obj: + $(CC) -c $(CFLAGS) $(INCPATH) -Fo$@ $< + +####### Build rules + +all: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + $(LIB) /OUT:$(TARGET) @<< + $(OBJECTS) $(OBJMOC) +<< + +moc: $(SRCMOC) + +tmake: ../csr/win32/msvc/ta_func/Makefile + +../csr/win32/msvc/ta_func/Makefile: ta_func/ta_func.pro + tmake ta_func/ta_func.pro -o ../csr/win32/msvc/ta_func/Makefile + +dist: + $(ZIP) ta_func/ta_func.zip ta_func/ta_func.pro $(SOURCES) $(HEADERS) $(DIST) $(INTERFACES) + +clean: + -del ..\..\..\..\..\temp\csr\ta_utility.obj + -del ..\..\..\..\..\temp\csr\ta_ACOS.obj + -del ..\..\..\..\..\temp\csr\ta_AD.obj + -del ..\..\..\..\..\temp\csr\ta_ADD.obj + -del ..\..\..\..\..\temp\csr\ta_ADOSC.obj + -del ..\..\..\..\..\temp\csr\ta_ADX.obj + -del ..\..\..\..\..\temp\csr\ta_ADXR.obj + -del ..\..\..\..\..\temp\csr\ta_APO.obj + -del ..\..\..\..\..\temp\csr\ta_AROON.obj + -del ..\..\..\..\..\temp\csr\ta_AROONOSC.obj + -del ..\..\..\..\..\temp\csr\ta_ASIN.obj + -del ..\..\..\..\..\temp\csr\ta_ATAN.obj + -del ..\..\..\..\..\temp\csr\ta_ATR.obj + -del ..\..\..\..\..\temp\csr\ta_AVGPRICE.obj + -del ..\..\..\..\..\temp\csr\ta_BBANDS.obj + -del ..\..\..\..\..\temp\csr\ta_BETA.obj + -del ..\..\..\..\..\temp\csr\ta_BOP.obj + -del ..\..\..\..\..\temp\csr\ta_CCI.obj + -del ..\..\..\..\..\temp\csr\ta_CDL2CROWS.obj + -del ..\..\..\..\..\temp\csr\ta_CDL3BLACKCROWS.obj + -del ..\..\..\..\..\temp\csr\ta_CDL3INSIDE.obj + -del ..\..\..\..\..\temp\csr\ta_CDL3LINESTRIKE.obj + -del ..\..\..\..\..\temp\csr\ta_CDL3OUTSIDE.obj + -del ..\..\..\..\..\temp\csr\ta_CDL3STARSINSOUTH.obj + -del ..\..\..\..\..\temp\csr\ta_CDL3WHITESOLDIERS.obj + -del ..\..\..\..\..\temp\csr\ta_CDLABANDONEDBABY.obj + -del ..\..\..\..\..\temp\csr\ta_CDLADVANCEBLOCK.obj + -del ..\..\..\..\..\temp\csr\ta_CDLBELTHOLD.obj + -del ..\..\..\..\..\temp\csr\ta_CDLBREAKAWAY.obj + -del ..\..\..\..\..\temp\csr\ta_CDLCLOSINGMARUBOZU.obj + -del ..\..\..\..\..\temp\csr\ta_CDLCONCEALBABYSWALL.obj + -del ..\..\..\..\..\temp\csr\ta_CDLCOUNTERATTACK.obj + -del ..\..\..\..\..\temp\csr\ta_CDLDARKCLOUDCOVER.obj + -del ..\..\..\..\..\temp\csr\ta_CDLDOJI.obj + -del ..\..\..\..\..\temp\csr\ta_CDLDOJISTAR.obj + -del ..\..\..\..\..\temp\csr\ta_CDLDRAGONFLYDOJI.obj + -del ..\..\..\..\..\temp\csr\ta_CDLENGULFING.obj + -del ..\..\..\..\..\temp\csr\ta_CDLEVENINGDOJISTAR.obj + -del ..\..\..\..\..\temp\csr\ta_CDLEVENINGSTAR.obj + -del ..\..\..\..\..\temp\csr\ta_CDLGAPSIDESIDEWHITE.obj + -del ..\..\..\..\..\temp\csr\ta_CDLGRAVESTONEDOJI.obj + -del ..\..\..\..\..\temp\csr\ta_CDLHAMMER.obj + -del ..\..\..\..\..\temp\csr\ta_CDLHANGINGMAN.obj + -del ..\..\..\..\..\temp\csr\ta_CDLHARAMI.obj + -del ..\..\..\..\..\temp\csr\ta_CDLHARAMICROSS.obj + -del ..\..\..\..\..\temp\csr\ta_CDLHIGHWAVE.obj + -del ..\..\..\..\..\temp\csr\ta_CDLHIKKAKE.obj + -del ..\..\..\..\..\temp\csr\ta_CDLHIKKAKEMOD.obj + -del ..\..\..\..\..\temp\csr\ta_CDLHOMINGPIGEON.obj + -del ..\..\..\..\..\temp\csr\ta_CDLIDENTICAL3CROWS.obj + -del ..\..\..\..\..\temp\csr\ta_CDLINNECK.obj + -del ..\..\..\..\..\temp\csr\ta_CDLINVERTEDHAMMER.obj + -del ..\..\..\..\..\temp\csr\ta_CDLKICKING.obj + -del ..\..\..\..\..\temp\csr\ta_CDLKICKINGBYLENGTH.obj + -del ..\..\..\..\..\temp\csr\ta_CDLLADDERBOTTOM.obj + -del ..\..\..\..\..\temp\csr\ta_CDLLONGLEGGEDDOJI.obj + -del ..\..\..\..\..\temp\csr\ta_CDLLONGLINE.obj + -del ..\..\..\..\..\temp\csr\ta_CDLMARUBOZU.obj + -del ..\..\..\..\..\temp\csr\ta_CDLMATCHINGLOW.obj + -del ..\..\..\..\..\temp\csr\ta_CDLMATHOLD.obj + -del ..\..\..\..\..\temp\csr\ta_CDLMORNINGDOJISTAR.obj + -del ..\..\..\..\..\temp\csr\ta_CDLMORNINGSTAR.obj + -del ..\..\..\..\..\temp\csr\ta_CDLONNECK.obj + -del ..\..\..\..\..\temp\csr\ta_CDLPIERCING.obj + -del ..\..\..\..\..\temp\csr\ta_CDLRICKSHAWMAN.obj + -del ..\..\..\..\..\temp\csr\ta_CDLRISEFALL3METHODS.obj + -del ..\..\..\..\..\temp\csr\ta_CDLSEPARATINGLINES.obj + -del ..\..\..\..\..\temp\csr\ta_CDLSHOOTINGSTAR.obj + -del ..\..\..\..\..\temp\csr\ta_CDLSHORTLINE.obj + -del ..\..\..\..\..\temp\csr\ta_CDLSPINNINGTOP.obj + -del ..\..\..\..\..\temp\csr\ta_CDLSTALLEDPATTERN.obj + -del ..\..\..\..\..\temp\csr\ta_CDLSTICKSANDWICH.obj + -del ..\..\..\..\..\temp\csr\ta_CDLTAKURI.obj + -del ..\..\..\..\..\temp\csr\ta_CDLTASUKIGAP.obj + -del ..\..\..\..\..\temp\csr\ta_CDLTHRUSTING.obj + -del ..\..\..\..\..\temp\csr\ta_CDLTRISTAR.obj + -del ..\..\..\..\..\temp\csr\ta_CDLUNIQUE3RIVER.obj + -del ..\..\..\..\..\temp\csr\ta_CDLUPSIDEGAP2CROWS.obj + -del ..\..\..\..\..\temp\csr\ta_CDLXSIDEGAP3METHODS.obj + -del ..\..\..\..\..\temp\csr\ta_CEIL.obj + -del ..\..\..\..\..\temp\csr\ta_CMO.obj + -del ..\..\..\..\..\temp\csr\ta_CORREL.obj + -del ..\..\..\..\..\temp\csr\ta_COS.obj + -del ..\..\..\..\..\temp\csr\ta_COSH.obj + -del ..\..\..\..\..\temp\csr\ta_DEMA.obj + -del ..\..\..\..\..\temp\csr\ta_DIV.obj + -del ..\..\..\..\..\temp\csr\ta_DX.obj + -del ..\..\..\..\..\temp\csr\ta_EMA.obj + -del ..\..\..\..\..\temp\csr\ta_EXP.obj + -del ..\..\..\..\..\temp\csr\ta_FLOOR.obj + -del ..\..\..\..\..\temp\csr\ta_HT_DCPERIOD.obj + -del ..\..\..\..\..\temp\csr\ta_HT_DCPHASE.obj + -del ..\..\..\..\..\temp\csr\ta_HT_PHASOR.obj + -del ..\..\..\..\..\temp\csr\ta_HT_SINE.obj + -del ..\..\..\..\..\temp\csr\ta_HT_TRENDLINE.obj + -del ..\..\..\..\..\temp\csr\ta_HT_TRENDMODE.obj + -del ..\..\..\..\..\temp\csr\ta_KAMA.obj + -del ..\..\..\..\..\temp\csr\ta_LINEARREG.obj + -del ..\..\..\..\..\temp\csr\ta_LINEARREG_ANGLE.obj + -del ..\..\..\..\..\temp\csr\ta_LINEARREG_INTERCEPT.obj + -del ..\..\..\..\..\temp\csr\ta_LINEARREG_SLOPE.obj + -del ..\..\..\..\..\temp\csr\ta_LN.obj + -del ..\..\..\..\..\temp\csr\ta_LOG10.obj + -del ..\..\..\..\..\temp\csr\ta_MA.obj + -del ..\..\..\..\..\temp\csr\ta_MACD.obj + -del ..\..\..\..\..\temp\csr\ta_MACDEXT.obj + -del ..\..\..\..\..\temp\csr\ta_MACDFIX.obj + -del ..\..\..\..\..\temp\csr\ta_MAMA.obj + -del ..\..\..\..\..\temp\csr\ta_MAVP.obj + -del ..\..\..\..\..\temp\csr\ta_MAX.obj + -del ..\..\..\..\..\temp\csr\ta_MAXINDEX.obj + -del ..\..\..\..\..\temp\csr\ta_MEDPRICE.obj + -del ..\..\..\..\..\temp\csr\ta_MFI.obj + -del ..\..\..\..\..\temp\csr\ta_MIDPOINT.obj + -del ..\..\..\..\..\temp\csr\ta_MIDPRICE.obj + -del ..\..\..\..\..\temp\csr\ta_MIN.obj + -del ..\..\..\..\..\temp\csr\ta_MININDEX.obj + -del ..\..\..\..\..\temp\csr\ta_MINMAX.obj + -del ..\..\..\..\..\temp\csr\ta_MINMAXINDEX.obj + -del ..\..\..\..\..\temp\csr\ta_MINUS_DI.obj + -del ..\..\..\..\..\temp\csr\ta_MINUS_DM.obj + -del ..\..\..\..\..\temp\csr\ta_MOM.obj + -del ..\..\..\..\..\temp\csr\ta_MULT.obj + -del ..\..\..\..\..\temp\csr\ta_NATR.obj + -del ..\..\..\..\..\temp\csr\ta_OBV.obj + -del ..\..\..\..\..\temp\csr\ta_PLUS_DI.obj + -del ..\..\..\..\..\temp\csr\ta_PLUS_DM.obj + -del ..\..\..\..\..\temp\csr\ta_PPO.obj + -del ..\..\..\..\..\temp\csr\ta_ROC.obj + -del ..\..\..\..\..\temp\csr\ta_ROCP.obj + -del ..\..\..\..\..\temp\csr\ta_ROCR.obj + -del ..\..\..\..\..\temp\csr\ta_ROCR100.obj + -del ..\..\..\..\..\temp\csr\ta_RSI.obj + -del ..\..\..\..\..\temp\csr\ta_SAR.obj + -del ..\..\..\..\..\temp\csr\ta_SAREXT.obj + -del ..\..\..\..\..\temp\csr\ta_SIN.obj + -del ..\..\..\..\..\temp\csr\ta_SINH.obj + -del ..\..\..\..\..\temp\csr\ta_SMA.obj + -del ..\..\..\..\..\temp\csr\ta_SQRT.obj + -del ..\..\..\..\..\temp\csr\ta_STDDEV.obj + -del ..\..\..\..\..\temp\csr\ta_STOCH.obj + -del ..\..\..\..\..\temp\csr\ta_STOCHF.obj + -del ..\..\..\..\..\temp\csr\ta_STOCHRSI.obj + -del ..\..\..\..\..\temp\csr\ta_SUB.obj + -del ..\..\..\..\..\temp\csr\ta_SUM.obj + -del ..\..\..\..\..\temp\csr\ta_T3.obj + -del ..\..\..\..\..\temp\csr\ta_TAN.obj + -del ..\..\..\..\..\temp\csr\ta_TANH.obj + -del ..\..\..\..\..\temp\csr\ta_TEMA.obj + -del ..\..\..\..\..\temp\csr\ta_TRANGE.obj + -del ..\..\..\..\..\temp\csr\ta_TRIMA.obj + -del ..\..\..\..\..\temp\csr\ta_TRIX.obj + -del ..\..\..\..\..\temp\csr\ta_TSF.obj + -del ..\..\..\..\..\temp\csr\ta_TYPPRICE.obj + -del ..\..\..\..\..\temp\csr\ta_ULTOSC.obj + -del ..\..\..\..\..\temp\csr\ta_VAR.obj + -del ..\..\..\..\..\temp\csr\ta_WCLPRICE.obj + -del ..\..\..\..\..\temp\csr\ta_WILLR.obj + -del ..\..\..\..\..\temp\csr\ta_WMA.obj + -del $(TARGET) + -del ../../../../../bin/*.map + -del ../../../../../bin/*._xe + -del ../../../../../bin/*.tds + -del ../../../../../bin/*.pdb + -del ../../../../../bin/*.pbo + -del ../../../../../bin/*.pbi + -del ../../../../../bin/*.pbt + -del ../../../../../temp/csr/*.pch + -del ../../../../../temp/csr/*.idb + -del ../../../../../temp/csr/ta_func/*.pch + -del ../../../../../temp/csr/ta_func/*.idb + -del ../../../../../temp/csr/ta_func/*.obj + +####### Compile + +..\..\..\..\..\temp\csr\ta_utility.obj: ..\..\..\..\..\src\ta_func\ta_utility.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_utility.obj ..\..\..\..\..\src\ta_func\ta_utility.c + +..\..\..\..\..\temp\csr\ta_ACOS.obj: ..\..\..\..\..\src\ta_func\ta_ACOS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_ACOS.obj ..\..\..\..\..\src\ta_func\ta_ACOS.c + +..\..\..\..\..\temp\csr\ta_AD.obj: ..\..\..\..\..\src\ta_func\ta_AD.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_AD.obj ..\..\..\..\..\src\ta_func\ta_AD.c + +..\..\..\..\..\temp\csr\ta_ADD.obj: ..\..\..\..\..\src\ta_func\ta_ADD.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_ADD.obj ..\..\..\..\..\src\ta_func\ta_ADD.c + +..\..\..\..\..\temp\csr\ta_ADOSC.obj: ..\..\..\..\..\src\ta_func\ta_ADOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_ADOSC.obj ..\..\..\..\..\src\ta_func\ta_ADOSC.c + +..\..\..\..\..\temp\csr\ta_ADX.obj: ..\..\..\..\..\src\ta_func\ta_ADX.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_ADX.obj ..\..\..\..\..\src\ta_func\ta_ADX.c + +..\..\..\..\..\temp\csr\ta_ADXR.obj: ..\..\..\..\..\src\ta_func\ta_ADXR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_ADXR.obj ..\..\..\..\..\src\ta_func\ta_ADXR.c + +..\..\..\..\..\temp\csr\ta_APO.obj: ..\..\..\..\..\src\ta_func\ta_APO.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_APO.obj ..\..\..\..\..\src\ta_func\ta_APO.c + +..\..\..\..\..\temp\csr\ta_AROON.obj: ..\..\..\..\..\src\ta_func\ta_AROON.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_AROON.obj ..\..\..\..\..\src\ta_func\ta_AROON.c + +..\..\..\..\..\temp\csr\ta_AROONOSC.obj: ..\..\..\..\..\src\ta_func\ta_AROONOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_AROONOSC.obj ..\..\..\..\..\src\ta_func\ta_AROONOSC.c + +..\..\..\..\..\temp\csr\ta_ASIN.obj: ..\..\..\..\..\src\ta_func\ta_ASIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_ASIN.obj ..\..\..\..\..\src\ta_func\ta_ASIN.c + +..\..\..\..\..\temp\csr\ta_ATAN.obj: ..\..\..\..\..\src\ta_func\ta_ATAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_ATAN.obj ..\..\..\..\..\src\ta_func\ta_ATAN.c + +..\..\..\..\..\temp\csr\ta_ATR.obj: ..\..\..\..\..\src\ta_func\ta_ATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_ATR.obj ..\..\..\..\..\src\ta_func\ta_ATR.c + +..\..\..\..\..\temp\csr\ta_AVGPRICE.obj: ..\..\..\..\..\src\ta_func\ta_AVGPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_AVGPRICE.obj ..\..\..\..\..\src\ta_func\ta_AVGPRICE.c + +..\..\..\..\..\temp\csr\ta_BBANDS.obj: ..\..\..\..\..\src\ta_func\ta_BBANDS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_BBANDS.obj ..\..\..\..\..\src\ta_func\ta_BBANDS.c + +..\..\..\..\..\temp\csr\ta_BETA.obj: ..\..\..\..\..\src\ta_func\ta_BETA.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_BETA.obj ..\..\..\..\..\src\ta_func\ta_BETA.c + +..\..\..\..\..\temp\csr\ta_BOP.obj: ..\..\..\..\..\src\ta_func\ta_BOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_BOP.obj ..\..\..\..\..\src\ta_func\ta_BOP.c + +..\..\..\..\..\temp\csr\ta_CCI.obj: ..\..\..\..\..\src\ta_func\ta_CCI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CCI.obj ..\..\..\..\..\src\ta_func\ta_CCI.c + +..\..\..\..\..\temp\csr\ta_CDL2CROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDL2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CDL2CROWS.obj ..\..\..\..\..\src\ta_func\ta_CDL2CROWS.c + +..\..\..\..\..\temp\csr\ta_CDL3BLACKCROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDL3BLACKCROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CDL3BLACKCROWS.obj ..\..\..\..\..\src\ta_func\ta_CDL3BLACKCROWS.c + +..\..\..\..\..\temp\csr\ta_CDL3INSIDE.obj: ..\..\..\..\..\src\ta_func\ta_CDL3INSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CDL3INSIDE.obj ..\..\..\..\..\src\ta_func\ta_CDL3INSIDE.c + +..\..\..\..\..\temp\csr\ta_CDL3LINESTRIKE.obj: ..\..\..\..\..\src\ta_func\ta_CDL3LINESTRIKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CDL3LINESTRIKE.obj ..\..\..\..\..\src\ta_func\ta_CDL3LINESTRIKE.c + +..\..\..\..\..\temp\csr\ta_CDL3OUTSIDE.obj: ..\..\..\..\..\src\ta_func\ta_CDL3OUTSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CDL3OUTSIDE.obj ..\..\..\..\..\src\ta_func\ta_CDL3OUTSIDE.c + +..\..\..\..\..\temp\csr\ta_CDL3STARSINSOUTH.obj: ..\..\..\..\..\src\ta_func\ta_CDL3STARSINSOUTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CDL3STARSINSOUTH.obj ..\..\..\..\..\src\ta_func\ta_CDL3STARSINSOUTH.c + +..\..\..\..\..\temp\csr\ta_CDL3WHITESOLDIERS.obj: ..\..\..\..\..\src\ta_func\ta_CDL3WHITESOLDIERS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CDL3WHITESOLDIERS.obj ..\..\..\..\..\src\ta_func\ta_CDL3WHITESOLDIERS.c + +..\..\..\..\..\temp\csr\ta_CDLABANDONEDBABY.obj: ..\..\..\..\..\src\ta_func\ta_CDLABANDONEDBABY.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CDLABANDONEDBABY.obj ..\..\..\..\..\src\ta_func\ta_CDLABANDONEDBABY.c + +..\..\..\..\..\temp\csr\ta_CDLADVANCEBLOCK.obj: ..\..\..\..\..\src\ta_func\ta_CDLADVANCEBLOCK.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CDLADVANCEBLOCK.obj ..\..\..\..\..\src\ta_func\ta_CDLADVANCEBLOCK.c + +..\..\..\..\..\temp\csr\ta_CDLBELTHOLD.obj: ..\..\..\..\..\src\ta_func\ta_CDLBELTHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CDLBELTHOLD.obj ..\..\..\..\..\src\ta_func\ta_CDLBELTHOLD.c + +..\..\..\..\..\temp\csr\ta_CDLBREAKAWAY.obj: ..\..\..\..\..\src\ta_func\ta_CDLBREAKAWAY.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CDLBREAKAWAY.obj ..\..\..\..\..\src\ta_func\ta_CDLBREAKAWAY.c + +..\..\..\..\..\temp\csr\ta_CDLCLOSINGMARUBOZU.obj: ..\..\..\..\..\src\ta_func\ta_CDLCLOSINGMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CDLCLOSINGMARUBOZU.obj ..\..\..\..\..\src\ta_func\ta_CDLCLOSINGMARUBOZU.c + +..\..\..\..\..\temp\csr\ta_CDLCONCEALBABYSWALL.obj: ..\..\..\..\..\src\ta_func\ta_CDLCONCEALBABYSWALL.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CDLCONCEALBABYSWALL.obj ..\..\..\..\..\src\ta_func\ta_CDLCONCEALBABYSWALL.c + +..\..\..\..\..\temp\csr\ta_CDLCOUNTERATTACK.obj: ..\..\..\..\..\src\ta_func\ta_CDLCOUNTERATTACK.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CDLCOUNTERATTACK.obj ..\..\..\..\..\src\ta_func\ta_CDLCOUNTERATTACK.c + +..\..\..\..\..\temp\csr\ta_CDLDARKCLOUDCOVER.obj: ..\..\..\..\..\src\ta_func\ta_CDLDARKCLOUDCOVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CDLDARKCLOUDCOVER.obj ..\..\..\..\..\src\ta_func\ta_CDLDARKCLOUDCOVER.c + +..\..\..\..\..\temp\csr\ta_CDLDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CDLDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLDOJI.c + +..\..\..\..\..\temp\csr\ta_CDLDOJISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CDLDOJISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLDOJISTAR.c + +..\..\..\..\..\temp\csr\ta_CDLDRAGONFLYDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLDRAGONFLYDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CDLDRAGONFLYDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLDRAGONFLYDOJI.c + +..\..\..\..\..\temp\csr\ta_CDLENGULFING.obj: ..\..\..\..\..\src\ta_func\ta_CDLENGULFING.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CDLENGULFING.obj ..\..\..\..\..\src\ta_func\ta_CDLENGULFING.c + +..\..\..\..\..\temp\csr\ta_CDLEVENINGDOJISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLEVENINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CDLEVENINGDOJISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLEVENINGDOJISTAR.c + +..\..\..\..\..\temp\csr\ta_CDLEVENINGSTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLEVENINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CDLEVENINGSTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLEVENINGSTAR.c + +..\..\..\..\..\temp\csr\ta_CDLGAPSIDESIDEWHITE.obj: ..\..\..\..\..\src\ta_func\ta_CDLGAPSIDESIDEWHITE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CDLGAPSIDESIDEWHITE.obj ..\..\..\..\..\src\ta_func\ta_CDLGAPSIDESIDEWHITE.c + +..\..\..\..\..\temp\csr\ta_CDLGRAVESTONEDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLGRAVESTONEDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CDLGRAVESTONEDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLGRAVESTONEDOJI.c + +..\..\..\..\..\temp\csr\ta_CDLHAMMER.obj: ..\..\..\..\..\src\ta_func\ta_CDLHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CDLHAMMER.obj ..\..\..\..\..\src\ta_func\ta_CDLHAMMER.c + +..\..\..\..\..\temp\csr\ta_CDLHANGINGMAN.obj: ..\..\..\..\..\src\ta_func\ta_CDLHANGINGMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CDLHANGINGMAN.obj ..\..\..\..\..\src\ta_func\ta_CDLHANGINGMAN.c + +..\..\..\..\..\temp\csr\ta_CDLHARAMI.obj: ..\..\..\..\..\src\ta_func\ta_CDLHARAMI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CDLHARAMI.obj ..\..\..\..\..\src\ta_func\ta_CDLHARAMI.c + +..\..\..\..\..\temp\csr\ta_CDLHARAMICROSS.obj: ..\..\..\..\..\src\ta_func\ta_CDLHARAMICROSS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CDLHARAMICROSS.obj ..\..\..\..\..\src\ta_func\ta_CDLHARAMICROSS.c + +..\..\..\..\..\temp\csr\ta_CDLHIGHWAVE.obj: ..\..\..\..\..\src\ta_func\ta_CDLHIGHWAVE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CDLHIGHWAVE.obj ..\..\..\..\..\src\ta_func\ta_CDLHIGHWAVE.c + +..\..\..\..\..\temp\csr\ta_CDLHIKKAKE.obj: ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CDLHIKKAKE.obj ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKE.c + +..\..\..\..\..\temp\csr\ta_CDLHIKKAKEMOD.obj: ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKEMOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CDLHIKKAKEMOD.obj ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKEMOD.c + +..\..\..\..\..\temp\csr\ta_CDLHOMINGPIGEON.obj: ..\..\..\..\..\src\ta_func\ta_CDLHOMINGPIGEON.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CDLHOMINGPIGEON.obj ..\..\..\..\..\src\ta_func\ta_CDLHOMINGPIGEON.c + +..\..\..\..\..\temp\csr\ta_CDLIDENTICAL3CROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDLIDENTICAL3CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CDLIDENTICAL3CROWS.obj ..\..\..\..\..\src\ta_func\ta_CDLIDENTICAL3CROWS.c + +..\..\..\..\..\temp\csr\ta_CDLINNECK.obj: ..\..\..\..\..\src\ta_func\ta_CDLINNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CDLINNECK.obj ..\..\..\..\..\src\ta_func\ta_CDLINNECK.c + +..\..\..\..\..\temp\csr\ta_CDLINVERTEDHAMMER.obj: ..\..\..\..\..\src\ta_func\ta_CDLINVERTEDHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CDLINVERTEDHAMMER.obj ..\..\..\..\..\src\ta_func\ta_CDLINVERTEDHAMMER.c + +..\..\..\..\..\temp\csr\ta_CDLKICKING.obj: ..\..\..\..\..\src\ta_func\ta_CDLKICKING.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CDLKICKING.obj ..\..\..\..\..\src\ta_func\ta_CDLKICKING.c + +..\..\..\..\..\temp\csr\ta_CDLKICKINGBYLENGTH.obj: ..\..\..\..\..\src\ta_func\ta_CDLKICKINGBYLENGTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CDLKICKINGBYLENGTH.obj ..\..\..\..\..\src\ta_func\ta_CDLKICKINGBYLENGTH.c + +..\..\..\..\..\temp\csr\ta_CDLLADDERBOTTOM.obj: ..\..\..\..\..\src\ta_func\ta_CDLLADDERBOTTOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CDLLADDERBOTTOM.obj ..\..\..\..\..\src\ta_func\ta_CDLLADDERBOTTOM.c + +..\..\..\..\..\temp\csr\ta_CDLLONGLEGGEDDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLLONGLEGGEDDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CDLLONGLEGGEDDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLLONGLEGGEDDOJI.c + +..\..\..\..\..\temp\csr\ta_CDLLONGLINE.obj: ..\..\..\..\..\src\ta_func\ta_CDLLONGLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CDLLONGLINE.obj ..\..\..\..\..\src\ta_func\ta_CDLLONGLINE.c + +..\..\..\..\..\temp\csr\ta_CDLMARUBOZU.obj: ..\..\..\..\..\src\ta_func\ta_CDLMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CDLMARUBOZU.obj ..\..\..\..\..\src\ta_func\ta_CDLMARUBOZU.c + +..\..\..\..\..\temp\csr\ta_CDLMATCHINGLOW.obj: ..\..\..\..\..\src\ta_func\ta_CDLMATCHINGLOW.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CDLMATCHINGLOW.obj ..\..\..\..\..\src\ta_func\ta_CDLMATCHINGLOW.c + +..\..\..\..\..\temp\csr\ta_CDLMATHOLD.obj: ..\..\..\..\..\src\ta_func\ta_CDLMATHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CDLMATHOLD.obj ..\..\..\..\..\src\ta_func\ta_CDLMATHOLD.c + +..\..\..\..\..\temp\csr\ta_CDLMORNINGDOJISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLMORNINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CDLMORNINGDOJISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLMORNINGDOJISTAR.c + +..\..\..\..\..\temp\csr\ta_CDLMORNINGSTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLMORNINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CDLMORNINGSTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLMORNINGSTAR.c + +..\..\..\..\..\temp\csr\ta_CDLONNECK.obj: ..\..\..\..\..\src\ta_func\ta_CDLONNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CDLONNECK.obj ..\..\..\..\..\src\ta_func\ta_CDLONNECK.c + +..\..\..\..\..\temp\csr\ta_CDLPIERCING.obj: ..\..\..\..\..\src\ta_func\ta_CDLPIERCING.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CDLPIERCING.obj ..\..\..\..\..\src\ta_func\ta_CDLPIERCING.c + +..\..\..\..\..\temp\csr\ta_CDLRICKSHAWMAN.obj: ..\..\..\..\..\src\ta_func\ta_CDLRICKSHAWMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CDLRICKSHAWMAN.obj ..\..\..\..\..\src\ta_func\ta_CDLRICKSHAWMAN.c + +..\..\..\..\..\temp\csr\ta_CDLRISEFALL3METHODS.obj: ..\..\..\..\..\src\ta_func\ta_CDLRISEFALL3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CDLRISEFALL3METHODS.obj ..\..\..\..\..\src\ta_func\ta_CDLRISEFALL3METHODS.c + +..\..\..\..\..\temp\csr\ta_CDLSEPARATINGLINES.obj: ..\..\..\..\..\src\ta_func\ta_CDLSEPARATINGLINES.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CDLSEPARATINGLINES.obj ..\..\..\..\..\src\ta_func\ta_CDLSEPARATINGLINES.c + +..\..\..\..\..\temp\csr\ta_CDLSHOOTINGSTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLSHOOTINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CDLSHOOTINGSTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLSHOOTINGSTAR.c + +..\..\..\..\..\temp\csr\ta_CDLSHORTLINE.obj: ..\..\..\..\..\src\ta_func\ta_CDLSHORTLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CDLSHORTLINE.obj ..\..\..\..\..\src\ta_func\ta_CDLSHORTLINE.c + +..\..\..\..\..\temp\csr\ta_CDLSPINNINGTOP.obj: ..\..\..\..\..\src\ta_func\ta_CDLSPINNINGTOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CDLSPINNINGTOP.obj ..\..\..\..\..\src\ta_func\ta_CDLSPINNINGTOP.c + +..\..\..\..\..\temp\csr\ta_CDLSTALLEDPATTERN.obj: ..\..\..\..\..\src\ta_func\ta_CDLSTALLEDPATTERN.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CDLSTALLEDPATTERN.obj ..\..\..\..\..\src\ta_func\ta_CDLSTALLEDPATTERN.c + +..\..\..\..\..\temp\csr\ta_CDLSTICKSANDWICH.obj: ..\..\..\..\..\src\ta_func\ta_CDLSTICKSANDWICH.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CDLSTICKSANDWICH.obj ..\..\..\..\..\src\ta_func\ta_CDLSTICKSANDWICH.c + +..\..\..\..\..\temp\csr\ta_CDLTAKURI.obj: ..\..\..\..\..\src\ta_func\ta_CDLTAKURI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CDLTAKURI.obj ..\..\..\..\..\src\ta_func\ta_CDLTAKURI.c + +..\..\..\..\..\temp\csr\ta_CDLTASUKIGAP.obj: ..\..\..\..\..\src\ta_func\ta_CDLTASUKIGAP.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CDLTASUKIGAP.obj ..\..\..\..\..\src\ta_func\ta_CDLTASUKIGAP.c + +..\..\..\..\..\temp\csr\ta_CDLTHRUSTING.obj: ..\..\..\..\..\src\ta_func\ta_CDLTHRUSTING.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CDLTHRUSTING.obj ..\..\..\..\..\src\ta_func\ta_CDLTHRUSTING.c + +..\..\..\..\..\temp\csr\ta_CDLTRISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLTRISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CDLTRISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLTRISTAR.c + +..\..\..\..\..\temp\csr\ta_CDLUNIQUE3RIVER.obj: ..\..\..\..\..\src\ta_func\ta_CDLUNIQUE3RIVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CDLUNIQUE3RIVER.obj ..\..\..\..\..\src\ta_func\ta_CDLUNIQUE3RIVER.c + +..\..\..\..\..\temp\csr\ta_CDLUPSIDEGAP2CROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDLUPSIDEGAP2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CDLUPSIDEGAP2CROWS.obj ..\..\..\..\..\src\ta_func\ta_CDLUPSIDEGAP2CROWS.c + +..\..\..\..\..\temp\csr\ta_CDLXSIDEGAP3METHODS.obj: ..\..\..\..\..\src\ta_func\ta_CDLXSIDEGAP3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CDLXSIDEGAP3METHODS.obj ..\..\..\..\..\src\ta_func\ta_CDLXSIDEGAP3METHODS.c + +..\..\..\..\..\temp\csr\ta_CEIL.obj: ..\..\..\..\..\src\ta_func\ta_CEIL.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CEIL.obj ..\..\..\..\..\src\ta_func\ta_CEIL.c + +..\..\..\..\..\temp\csr\ta_CMO.obj: ..\..\..\..\..\src\ta_func\ta_CMO.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CMO.obj ..\..\..\..\..\src\ta_func\ta_CMO.c + +..\..\..\..\..\temp\csr\ta_CORREL.obj: ..\..\..\..\..\src\ta_func\ta_CORREL.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CORREL.obj ..\..\..\..\..\src\ta_func\ta_CORREL.c + +..\..\..\..\..\temp\csr\ta_COS.obj: ..\..\..\..\..\src\ta_func\ta_COS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_COS.obj ..\..\..\..\..\src\ta_func\ta_COS.c + +..\..\..\..\..\temp\csr\ta_COSH.obj: ..\..\..\..\..\src\ta_func\ta_COSH.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_COSH.obj ..\..\..\..\..\src\ta_func\ta_COSH.c + +..\..\..\..\..\temp\csr\ta_DEMA.obj: ..\..\..\..\..\src\ta_func\ta_DEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_DEMA.obj ..\..\..\..\..\src\ta_func\ta_DEMA.c + +..\..\..\..\..\temp\csr\ta_DIV.obj: ..\..\..\..\..\src\ta_func\ta_DIV.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_DIV.obj ..\..\..\..\..\src\ta_func\ta_DIV.c + +..\..\..\..\..\temp\csr\ta_DX.obj: ..\..\..\..\..\src\ta_func\ta_DX.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_DX.obj ..\..\..\..\..\src\ta_func\ta_DX.c + +..\..\..\..\..\temp\csr\ta_EMA.obj: ..\..\..\..\..\src\ta_func\ta_EMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_EMA.obj ..\..\..\..\..\src\ta_func\ta_EMA.c + +..\..\..\..\..\temp\csr\ta_EXP.obj: ..\..\..\..\..\src\ta_func\ta_EXP.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_EXP.obj ..\..\..\..\..\src\ta_func\ta_EXP.c + +..\..\..\..\..\temp\csr\ta_FLOOR.obj: ..\..\..\..\..\src\ta_func\ta_FLOOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_FLOOR.obj ..\..\..\..\..\src\ta_func\ta_FLOOR.c + +..\..\..\..\..\temp\csr\ta_HT_DCPERIOD.obj: ..\..\..\..\..\src\ta_func\ta_HT_DCPERIOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_HT_DCPERIOD.obj ..\..\..\..\..\src\ta_func\ta_HT_DCPERIOD.c + +..\..\..\..\..\temp\csr\ta_HT_DCPHASE.obj: ..\..\..\..\..\src\ta_func\ta_HT_DCPHASE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_HT_DCPHASE.obj ..\..\..\..\..\src\ta_func\ta_HT_DCPHASE.c + +..\..\..\..\..\temp\csr\ta_HT_PHASOR.obj: ..\..\..\..\..\src\ta_func\ta_HT_PHASOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_HT_PHASOR.obj ..\..\..\..\..\src\ta_func\ta_HT_PHASOR.c + +..\..\..\..\..\temp\csr\ta_HT_SINE.obj: ..\..\..\..\..\src\ta_func\ta_HT_SINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_HT_SINE.obj ..\..\..\..\..\src\ta_func\ta_HT_SINE.c + +..\..\..\..\..\temp\csr\ta_HT_TRENDLINE.obj: ..\..\..\..\..\src\ta_func\ta_HT_TRENDLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_HT_TRENDLINE.obj ..\..\..\..\..\src\ta_func\ta_HT_TRENDLINE.c + +..\..\..\..\..\temp\csr\ta_HT_TRENDMODE.obj: ..\..\..\..\..\src\ta_func\ta_HT_TRENDMODE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_HT_TRENDMODE.obj ..\..\..\..\..\src\ta_func\ta_HT_TRENDMODE.c + +..\..\..\..\..\temp\csr\ta_KAMA.obj: ..\..\..\..\..\src\ta_func\ta_KAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_KAMA.obj ..\..\..\..\..\src\ta_func\ta_KAMA.c + +..\..\..\..\..\temp\csr\ta_LINEARREG.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_LINEARREG.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG.c + +..\..\..\..\..\temp\csr\ta_LINEARREG_ANGLE.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG_ANGLE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_LINEARREG_ANGLE.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG_ANGLE.c + +..\..\..\..\..\temp\csr\ta_LINEARREG_INTERCEPT.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG_INTERCEPT.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_LINEARREG_INTERCEPT.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG_INTERCEPT.c + +..\..\..\..\..\temp\csr\ta_LINEARREG_SLOPE.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG_SLOPE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_LINEARREG_SLOPE.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG_SLOPE.c + +..\..\..\..\..\temp\csr\ta_LN.obj: ..\..\..\..\..\src\ta_func\ta_LN.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_LN.obj ..\..\..\..\..\src\ta_func\ta_LN.c + +..\..\..\..\..\temp\csr\ta_LOG10.obj: ..\..\..\..\..\src\ta_func\ta_LOG10.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_LOG10.obj ..\..\..\..\..\src\ta_func\ta_LOG10.c + +..\..\..\..\..\temp\csr\ta_MA.obj: ..\..\..\..\..\src\ta_func\ta_MA.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_MA.obj ..\..\..\..\..\src\ta_func\ta_MA.c + +..\..\..\..\..\temp\csr\ta_MACD.obj: ..\..\..\..\..\src\ta_func\ta_MACD.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_MACD.obj ..\..\..\..\..\src\ta_func\ta_MACD.c + +..\..\..\..\..\temp\csr\ta_MACDEXT.obj: ..\..\..\..\..\src\ta_func\ta_MACDEXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_MACDEXT.obj ..\..\..\..\..\src\ta_func\ta_MACDEXT.c + +..\..\..\..\..\temp\csr\ta_MACDFIX.obj: ..\..\..\..\..\src\ta_func\ta_MACDFIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_MACDFIX.obj ..\..\..\..\..\src\ta_func\ta_MACDFIX.c + +..\..\..\..\..\temp\csr\ta_MAMA.obj: ..\..\..\..\..\src\ta_func\ta_MAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_MAMA.obj ..\..\..\..\..\src\ta_func\ta_MAMA.c + +..\..\..\..\..\temp\csr\ta_MAVP.obj: ..\..\..\..\..\src\ta_func\ta_MAVP.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_MAVP.obj ..\..\..\..\..\src\ta_func\ta_MAVP.c + +..\..\..\..\..\temp\csr\ta_MAX.obj: ..\..\..\..\..\src\ta_func\ta_MAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_MAX.obj ..\..\..\..\..\src\ta_func\ta_MAX.c + +..\..\..\..\..\temp\csr\ta_MAXINDEX.obj: ..\..\..\..\..\src\ta_func\ta_MAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_MAXINDEX.obj ..\..\..\..\..\src\ta_func\ta_MAXINDEX.c + +..\..\..\..\..\temp\csr\ta_MEDPRICE.obj: ..\..\..\..\..\src\ta_func\ta_MEDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_MEDPRICE.obj ..\..\..\..\..\src\ta_func\ta_MEDPRICE.c + +..\..\..\..\..\temp\csr\ta_MFI.obj: ..\..\..\..\..\src\ta_func\ta_MFI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_MFI.obj ..\..\..\..\..\src\ta_func\ta_MFI.c + +..\..\..\..\..\temp\csr\ta_MIDPOINT.obj: ..\..\..\..\..\src\ta_func\ta_MIDPOINT.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_MIDPOINT.obj ..\..\..\..\..\src\ta_func\ta_MIDPOINT.c + +..\..\..\..\..\temp\csr\ta_MIDPRICE.obj: ..\..\..\..\..\src\ta_func\ta_MIDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_MIDPRICE.obj ..\..\..\..\..\src\ta_func\ta_MIDPRICE.c + +..\..\..\..\..\temp\csr\ta_MIN.obj: ..\..\..\..\..\src\ta_func\ta_MIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_MIN.obj ..\..\..\..\..\src\ta_func\ta_MIN.c + +..\..\..\..\..\temp\csr\ta_MININDEX.obj: ..\..\..\..\..\src\ta_func\ta_MININDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_MININDEX.obj ..\..\..\..\..\src\ta_func\ta_MININDEX.c + +..\..\..\..\..\temp\csr\ta_MINMAX.obj: ..\..\..\..\..\src\ta_func\ta_MINMAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_MINMAX.obj ..\..\..\..\..\src\ta_func\ta_MINMAX.c + +..\..\..\..\..\temp\csr\ta_MINMAXINDEX.obj: ..\..\..\..\..\src\ta_func\ta_MINMAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_MINMAXINDEX.obj ..\..\..\..\..\src\ta_func\ta_MINMAXINDEX.c + +..\..\..\..\..\temp\csr\ta_MINUS_DI.obj: ..\..\..\..\..\src\ta_func\ta_MINUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_MINUS_DI.obj ..\..\..\..\..\src\ta_func\ta_MINUS_DI.c + +..\..\..\..\..\temp\csr\ta_MINUS_DM.obj: ..\..\..\..\..\src\ta_func\ta_MINUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_MINUS_DM.obj ..\..\..\..\..\src\ta_func\ta_MINUS_DM.c + +..\..\..\..\..\temp\csr\ta_MOM.obj: ..\..\..\..\..\src\ta_func\ta_MOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_MOM.obj ..\..\..\..\..\src\ta_func\ta_MOM.c + +..\..\..\..\..\temp\csr\ta_MULT.obj: ..\..\..\..\..\src\ta_func\ta_MULT.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_MULT.obj ..\..\..\..\..\src\ta_func\ta_MULT.c + +..\..\..\..\..\temp\csr\ta_NATR.obj: ..\..\..\..\..\src\ta_func\ta_NATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_NATR.obj ..\..\..\..\..\src\ta_func\ta_NATR.c + +..\..\..\..\..\temp\csr\ta_OBV.obj: ..\..\..\..\..\src\ta_func\ta_OBV.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_OBV.obj ..\..\..\..\..\src\ta_func\ta_OBV.c + +..\..\..\..\..\temp\csr\ta_PLUS_DI.obj: ..\..\..\..\..\src\ta_func\ta_PLUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_PLUS_DI.obj ..\..\..\..\..\src\ta_func\ta_PLUS_DI.c + +..\..\..\..\..\temp\csr\ta_PLUS_DM.obj: ..\..\..\..\..\src\ta_func\ta_PLUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_PLUS_DM.obj ..\..\..\..\..\src\ta_func\ta_PLUS_DM.c + +..\..\..\..\..\temp\csr\ta_PPO.obj: ..\..\..\..\..\src\ta_func\ta_PPO.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_PPO.obj ..\..\..\..\..\src\ta_func\ta_PPO.c + +..\..\..\..\..\temp\csr\ta_ROC.obj: ..\..\..\..\..\src\ta_func\ta_ROC.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_ROC.obj ..\..\..\..\..\src\ta_func\ta_ROC.c + +..\..\..\..\..\temp\csr\ta_ROCP.obj: ..\..\..\..\..\src\ta_func\ta_ROCP.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_ROCP.obj ..\..\..\..\..\src\ta_func\ta_ROCP.c + +..\..\..\..\..\temp\csr\ta_ROCR.obj: ..\..\..\..\..\src\ta_func\ta_ROCR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_ROCR.obj ..\..\..\..\..\src\ta_func\ta_ROCR.c + +..\..\..\..\..\temp\csr\ta_ROCR100.obj: ..\..\..\..\..\src\ta_func\ta_ROCR100.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_ROCR100.obj ..\..\..\..\..\src\ta_func\ta_ROCR100.c + +..\..\..\..\..\temp\csr\ta_RSI.obj: ..\..\..\..\..\src\ta_func\ta_RSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_RSI.obj ..\..\..\..\..\src\ta_func\ta_RSI.c + +..\..\..\..\..\temp\csr\ta_SAR.obj: ..\..\..\..\..\src\ta_func\ta_SAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_SAR.obj ..\..\..\..\..\src\ta_func\ta_SAR.c + +..\..\..\..\..\temp\csr\ta_SAREXT.obj: ..\..\..\..\..\src\ta_func\ta_SAREXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_SAREXT.obj ..\..\..\..\..\src\ta_func\ta_SAREXT.c + +..\..\..\..\..\temp\csr\ta_SIN.obj: ..\..\..\..\..\src\ta_func\ta_SIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_SIN.obj ..\..\..\..\..\src\ta_func\ta_SIN.c + +..\..\..\..\..\temp\csr\ta_SINH.obj: ..\..\..\..\..\src\ta_func\ta_SINH.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_SINH.obj ..\..\..\..\..\src\ta_func\ta_SINH.c + +..\..\..\..\..\temp\csr\ta_SMA.obj: ..\..\..\..\..\src\ta_func\ta_SMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_SMA.obj ..\..\..\..\..\src\ta_func\ta_SMA.c + +..\..\..\..\..\temp\csr\ta_SQRT.obj: ..\..\..\..\..\src\ta_func\ta_SQRT.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_SQRT.obj ..\..\..\..\..\src\ta_func\ta_SQRT.c + +..\..\..\..\..\temp\csr\ta_STDDEV.obj: ..\..\..\..\..\src\ta_func\ta_STDDEV.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_STDDEV.obj ..\..\..\..\..\src\ta_func\ta_STDDEV.c + +..\..\..\..\..\temp\csr\ta_STOCH.obj: ..\..\..\..\..\src\ta_func\ta_STOCH.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_STOCH.obj ..\..\..\..\..\src\ta_func\ta_STOCH.c + +..\..\..\..\..\temp\csr\ta_STOCHF.obj: ..\..\..\..\..\src\ta_func\ta_STOCHF.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_STOCHF.obj ..\..\..\..\..\src\ta_func\ta_STOCHF.c + +..\..\..\..\..\temp\csr\ta_STOCHRSI.obj: ..\..\..\..\..\src\ta_func\ta_STOCHRSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_STOCHRSI.obj ..\..\..\..\..\src\ta_func\ta_STOCHRSI.c + +..\..\..\..\..\temp\csr\ta_SUB.obj: ..\..\..\..\..\src\ta_func\ta_SUB.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_SUB.obj ..\..\..\..\..\src\ta_func\ta_SUB.c + +..\..\..\..\..\temp\csr\ta_SUM.obj: ..\..\..\..\..\src\ta_func\ta_SUM.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_SUM.obj ..\..\..\..\..\src\ta_func\ta_SUM.c + +..\..\..\..\..\temp\csr\ta_T3.obj: ..\..\..\..\..\src\ta_func\ta_T3.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_T3.obj ..\..\..\..\..\src\ta_func\ta_T3.c + +..\..\..\..\..\temp\csr\ta_TAN.obj: ..\..\..\..\..\src\ta_func\ta_TAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_TAN.obj ..\..\..\..\..\src\ta_func\ta_TAN.c + +..\..\..\..\..\temp\csr\ta_TANH.obj: ..\..\..\..\..\src\ta_func\ta_TANH.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_TANH.obj ..\..\..\..\..\src\ta_func\ta_TANH.c + +..\..\..\..\..\temp\csr\ta_TEMA.obj: ..\..\..\..\..\src\ta_func\ta_TEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_TEMA.obj ..\..\..\..\..\src\ta_func\ta_TEMA.c + +..\..\..\..\..\temp\csr\ta_TRANGE.obj: ..\..\..\..\..\src\ta_func\ta_TRANGE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_TRANGE.obj ..\..\..\..\..\src\ta_func\ta_TRANGE.c + +..\..\..\..\..\temp\csr\ta_TRIMA.obj: ..\..\..\..\..\src\ta_func\ta_TRIMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_TRIMA.obj ..\..\..\..\..\src\ta_func\ta_TRIMA.c + +..\..\..\..\..\temp\csr\ta_TRIX.obj: ..\..\..\..\..\src\ta_func\ta_TRIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_TRIX.obj ..\..\..\..\..\src\ta_func\ta_TRIX.c + +..\..\..\..\..\temp\csr\ta_TSF.obj: ..\..\..\..\..\src\ta_func\ta_TSF.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_TSF.obj ..\..\..\..\..\src\ta_func\ta_TSF.c + +..\..\..\..\..\temp\csr\ta_TYPPRICE.obj: ..\..\..\..\..\src\ta_func\ta_TYPPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_TYPPRICE.obj ..\..\..\..\..\src\ta_func\ta_TYPPRICE.c + +..\..\..\..\..\temp\csr\ta_ULTOSC.obj: ..\..\..\..\..\src\ta_func\ta_ULTOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_ULTOSC.obj ..\..\..\..\..\src\ta_func\ta_ULTOSC.c + +..\..\..\..\..\temp\csr\ta_VAR.obj: ..\..\..\..\..\src\ta_func\ta_VAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_VAR.obj ..\..\..\..\..\src\ta_func\ta_VAR.c + +..\..\..\..\..\temp\csr\ta_WCLPRICE.obj: ..\..\..\..\..\src\ta_func\ta_WCLPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_WCLPRICE.obj ..\..\..\..\..\src\ta_func\ta_WCLPRICE.c + +..\..\..\..\..\temp\csr\ta_WILLR.obj: ..\..\..\..\..\src\ta_func\ta_WILLR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_WILLR.obj ..\..\..\..\..\src\ta_func\ta_WILLR.c + +..\..\..\..\..\temp\csr\ta_WMA.obj: ..\..\..\..\..\src\ta_func\ta_WMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_WMA.obj ..\..\..\..\..\src\ta_func\ta_WMA.c + diff --git a/make/csr/win32/msvc/ta_libc/Makefile b/make/csr/win32/msvc/ta_libc/Makefile new file mode 100644 index 000000000..847600882 --- /dev/null +++ b/make/csr/win32/msvc/ta_libc/Makefile @@ -0,0 +1,1237 @@ +############################################################################# +# Makefile for building ta_libc_csr +# Generated by tmake; +# Project: ta_libc/ta_libc +# Template: lib +############################################################################# + +####### Compiler, tools and options + +CC = cl +CXX = cl +CFLAGS = -nologo -W3 -O2 -DTA_SINGLE_THREAD -DWIN32 -D_MBCS -D_LIB -DNO_DEBUG +CXXFLAGS= -nologo -W3 -O2 -DTA_SINGLE_THREAD -DWIN32 -D_MBCS -D_LIB -DNO_DEBUG +INCPATH = -I"..\..\..\..\..\src\ta_common" -I"..\..\..\..\..\include" -I"..\..\..\..\..\src\ta_abstract" -I"..\..\..\..\..\src\ta_abstract\tables" -I"..\..\..\..\..\src\ta_abstract\frames" -I"$(QTDIR)\include" +LIB = lib /NOLOGO +MOC = moc +UIC = uic + +ZIP = zip -r -9 + +####### Files + +HEADERS = +SOURCES = ..\..\..\..\..\src\ta_common\ta_global.c \ + ..\..\..\..\..\src\ta_common\ta_retcode.c \ + ..\..\..\..\..\src\ta_common\ta_version.c \ + ..\..\..\..\..\src\ta_abstract\ta_abstract.c \ + ..\..\..\..\..\src\ta_abstract\ta_def_ui.c \ + ..\..\..\..\..\src\ta_abstract\ta_func_api.c \ + ..\..\..\..\..\src\ta_abstract\ta_group_idx.c \ + ..\..\..\..\..\src\ta_abstract\frames\ta_frame.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_a.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_b.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_c.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_d.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_e.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_f.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_g.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_h.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_i.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_j.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_k.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_l.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_m.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_n.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_o.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_p.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_q.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_r.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_s.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_t.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_u.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_v.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_w.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_x.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_y.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_z.c \ + ..\..\..\..\..\src\ta_func\ta_utility.c \ + ..\..\..\..\..\src\ta_func\ta_ACOS.c \ + ..\..\..\..\..\src\ta_func\ta_AD.c \ + ..\..\..\..\..\src\ta_func\ta_ADD.c \ + ..\..\..\..\..\src\ta_func\ta_ADOSC.c \ + ..\..\..\..\..\src\ta_func\ta_ADX.c \ + ..\..\..\..\..\src\ta_func\ta_ADXR.c \ + ..\..\..\..\..\src\ta_func\ta_APO.c \ + ..\..\..\..\..\src\ta_func\ta_AROON.c \ + ..\..\..\..\..\src\ta_func\ta_AROONOSC.c \ + ..\..\..\..\..\src\ta_func\ta_ASIN.c \ + ..\..\..\..\..\src\ta_func\ta_ATAN.c \ + ..\..\..\..\..\src\ta_func\ta_ATR.c \ + ..\..\..\..\..\src\ta_func\ta_AVGPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_BBANDS.c \ + ..\..\..\..\..\src\ta_func\ta_BETA.c \ + ..\..\..\..\..\src\ta_func\ta_BOP.c \ + ..\..\..\..\..\src\ta_func\ta_CCI.c \ + ..\..\..\..\..\src\ta_func\ta_CDL2CROWS.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3BLACKCROWS.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3INSIDE.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3LINESTRIKE.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3OUTSIDE.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3STARSINSOUTH.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3WHITESOLDIERS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLABANDONEDBABY.c \ + ..\..\..\..\..\src\ta_func\ta_CDLADVANCEBLOCK.c \ + ..\..\..\..\..\src\ta_func\ta_CDLBELTHOLD.c \ + ..\..\..\..\..\src\ta_func\ta_CDLBREAKAWAY.c \ + ..\..\..\..\..\src\ta_func\ta_CDLCLOSINGMARUBOZU.c \ + ..\..\..\..\..\src\ta_func\ta_CDLCONCEALBABYSWALL.c \ + ..\..\..\..\..\src\ta_func\ta_CDLCOUNTERATTACK.c \ + ..\..\..\..\..\src\ta_func\ta_CDLDARKCLOUDCOVER.c \ + ..\..\..\..\..\src\ta_func\ta_CDLDOJI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLDOJISTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLDRAGONFLYDOJI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLENGULFING.c \ + ..\..\..\..\..\src\ta_func\ta_CDLEVENINGDOJISTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLEVENINGSTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLGAPSIDESIDEWHITE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLGRAVESTONEDOJI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHAMMER.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHANGINGMAN.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHARAMI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHARAMICROSS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHIGHWAVE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKEMOD.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHOMINGPIGEON.c \ + ..\..\..\..\..\src\ta_func\ta_CDLIDENTICAL3CROWS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLINNECK.c \ + ..\..\..\..\..\src\ta_func\ta_CDLINVERTEDHAMMER.c \ + ..\..\..\..\..\src\ta_func\ta_CDLKICKING.c \ + ..\..\..\..\..\src\ta_func\ta_CDLKICKINGBYLENGTH.c \ + ..\..\..\..\..\src\ta_func\ta_CDLLADDERBOTTOM.c \ + ..\..\..\..\..\src\ta_func\ta_CDLLONGLEGGEDDOJI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLLONGLINE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMARUBOZU.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMATCHINGLOW.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMATHOLD.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMORNINGDOJISTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMORNINGSTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLONNECK.c \ + ..\..\..\..\..\src\ta_func\ta_CDLPIERCING.c \ + ..\..\..\..\..\src\ta_func\ta_CDLRICKSHAWMAN.c \ + ..\..\..\..\..\src\ta_func\ta_CDLRISEFALL3METHODS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSEPARATINGLINES.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSHOOTINGSTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSHORTLINE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSPINNINGTOP.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSTALLEDPATTERN.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSTICKSANDWICH.c \ + ..\..\..\..\..\src\ta_func\ta_CDLTAKURI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLTASUKIGAP.c \ + ..\..\..\..\..\src\ta_func\ta_CDLTHRUSTING.c \ + ..\..\..\..\..\src\ta_func\ta_CDLTRISTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLUNIQUE3RIVER.c \ + ..\..\..\..\..\src\ta_func\ta_CDLUPSIDEGAP2CROWS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLXSIDEGAP3METHODS.c \ + ..\..\..\..\..\src\ta_func\ta_CEIL.c \ + ..\..\..\..\..\src\ta_func\ta_CMO.c \ + ..\..\..\..\..\src\ta_func\ta_CORREL.c \ + ..\..\..\..\..\src\ta_func\ta_COS.c \ + ..\..\..\..\..\src\ta_func\ta_COSH.c \ + ..\..\..\..\..\src\ta_func\ta_DEMA.c \ + ..\..\..\..\..\src\ta_func\ta_DIV.c \ + ..\..\..\..\..\src\ta_func\ta_DX.c \ + ..\..\..\..\..\src\ta_func\ta_EMA.c \ + ..\..\..\..\..\src\ta_func\ta_EXP.c \ + ..\..\..\..\..\src\ta_func\ta_FLOOR.c \ + ..\..\..\..\..\src\ta_func\ta_HT_DCPERIOD.c \ + ..\..\..\..\..\src\ta_func\ta_HT_DCPHASE.c \ + ..\..\..\..\..\src\ta_func\ta_HT_PHASOR.c \ + ..\..\..\..\..\src\ta_func\ta_HT_SINE.c \ + ..\..\..\..\..\src\ta_func\ta_HT_TRENDLINE.c \ + ..\..\..\..\..\src\ta_func\ta_HT_TRENDMODE.c \ + ..\..\..\..\..\src\ta_func\ta_KAMA.c \ + ..\..\..\..\..\src\ta_func\ta_LINEARREG.c \ + ..\..\..\..\..\src\ta_func\ta_LINEARREG_ANGLE.c \ + ..\..\..\..\..\src\ta_func\ta_LINEARREG_INTERCEPT.c \ + ..\..\..\..\..\src\ta_func\ta_LINEARREG_SLOPE.c \ + ..\..\..\..\..\src\ta_func\ta_LN.c \ + ..\..\..\..\..\src\ta_func\ta_LOG10.c \ + ..\..\..\..\..\src\ta_func\ta_MA.c \ + ..\..\..\..\..\src\ta_func\ta_MACD.c \ + ..\..\..\..\..\src\ta_func\ta_MACDEXT.c \ + ..\..\..\..\..\src\ta_func\ta_MACDFIX.c \ + ..\..\..\..\..\src\ta_func\ta_MAMA.c \ + ..\..\..\..\..\src\ta_func\ta_MAVP.c \ + ..\..\..\..\..\src\ta_func\ta_MAX.c \ + ..\..\..\..\..\src\ta_func\ta_MAXINDEX.c \ + ..\..\..\..\..\src\ta_func\ta_MEDPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_MFI.c \ + ..\..\..\..\..\src\ta_func\ta_MIDPOINT.c \ + ..\..\..\..\..\src\ta_func\ta_MIDPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_MIN.c \ + ..\..\..\..\..\src\ta_func\ta_MININDEX.c \ + ..\..\..\..\..\src\ta_func\ta_MINMAX.c \ + ..\..\..\..\..\src\ta_func\ta_MINMAXINDEX.c \ + ..\..\..\..\..\src\ta_func\ta_MINUS_DI.c \ + ..\..\..\..\..\src\ta_func\ta_MINUS_DM.c \ + ..\..\..\..\..\src\ta_func\ta_MOM.c \ + ..\..\..\..\..\src\ta_func\ta_MULT.c \ + ..\..\..\..\..\src\ta_func\ta_NATR.c \ + ..\..\..\..\..\src\ta_func\ta_OBV.c \ + ..\..\..\..\..\src\ta_func\ta_PLUS_DI.c \ + ..\..\..\..\..\src\ta_func\ta_PLUS_DM.c \ + ..\..\..\..\..\src\ta_func\ta_PPO.c \ + ..\..\..\..\..\src\ta_func\ta_ROC.c \ + ..\..\..\..\..\src\ta_func\ta_ROCP.c \ + ..\..\..\..\..\src\ta_func\ta_ROCR.c \ + ..\..\..\..\..\src\ta_func\ta_ROCR100.c \ + ..\..\..\..\..\src\ta_func\ta_RSI.c \ + ..\..\..\..\..\src\ta_func\ta_SAR.c \ + ..\..\..\..\..\src\ta_func\ta_SAREXT.c \ + ..\..\..\..\..\src\ta_func\ta_SIN.c \ + ..\..\..\..\..\src\ta_func\ta_SINH.c \ + ..\..\..\..\..\src\ta_func\ta_SMA.c \ + ..\..\..\..\..\src\ta_func\ta_SQRT.c \ + ..\..\..\..\..\src\ta_func\ta_STDDEV.c \ + ..\..\..\..\..\src\ta_func\ta_STOCH.c \ + ..\..\..\..\..\src\ta_func\ta_STOCHF.c \ + ..\..\..\..\..\src\ta_func\ta_STOCHRSI.c \ + ..\..\..\..\..\src\ta_func\ta_SUB.c \ + ..\..\..\..\..\src\ta_func\ta_SUM.c \ + ..\..\..\..\..\src\ta_func\ta_T3.c \ + ..\..\..\..\..\src\ta_func\ta_TAN.c \ + ..\..\..\..\..\src\ta_func\ta_TANH.c \ + ..\..\..\..\..\src\ta_func\ta_TEMA.c \ + ..\..\..\..\..\src\ta_func\ta_TRANGE.c \ + ..\..\..\..\..\src\ta_func\ta_TRIMA.c \ + ..\..\..\..\..\src\ta_func\ta_TRIX.c \ + ..\..\..\..\..\src\ta_func\ta_TSF.c \ + ..\..\..\..\..\src\ta_func\ta_TYPPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_ULTOSC.c \ + ..\..\..\..\..\src\ta_func\ta_VAR.c \ + ..\..\..\..\..\src\ta_func\ta_WCLPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_WILLR.c \ + ..\..\..\..\..\src\ta_func\ta_WMA.c +OBJECTS = ..\..\..\..\..\temp\csr\ta_global.obj \ + ..\..\..\..\..\temp\csr\ta_retcode.obj \ + ..\..\..\..\..\temp\csr\ta_version.obj \ + ..\..\..\..\..\temp\csr\ta_abstract.obj \ + ..\..\..\..\..\temp\csr\ta_def_ui.obj \ + ..\..\..\..\..\temp\csr\ta_func_api.obj \ + ..\..\..\..\..\temp\csr\ta_group_idx.obj \ + ..\..\..\..\..\temp\csr\ta_frame.obj \ + ..\..\..\..\..\temp\csr\table_a.obj \ + ..\..\..\..\..\temp\csr\table_b.obj \ + ..\..\..\..\..\temp\csr\table_c.obj \ + ..\..\..\..\..\temp\csr\table_d.obj \ + ..\..\..\..\..\temp\csr\table_e.obj \ + ..\..\..\..\..\temp\csr\table_f.obj \ + ..\..\..\..\..\temp\csr\table_g.obj \ + ..\..\..\..\..\temp\csr\table_h.obj \ + ..\..\..\..\..\temp\csr\table_i.obj \ + ..\..\..\..\..\temp\csr\table_j.obj \ + ..\..\..\..\..\temp\csr\table_k.obj \ + ..\..\..\..\..\temp\csr\table_l.obj \ + ..\..\..\..\..\temp\csr\table_m.obj \ + ..\..\..\..\..\temp\csr\table_n.obj \ + ..\..\..\..\..\temp\csr\table_o.obj \ + ..\..\..\..\..\temp\csr\table_p.obj \ + ..\..\..\..\..\temp\csr\table_q.obj \ + ..\..\..\..\..\temp\csr\table_r.obj \ + ..\..\..\..\..\temp\csr\table_s.obj \ + ..\..\..\..\..\temp\csr\table_t.obj \ + ..\..\..\..\..\temp\csr\table_u.obj \ + ..\..\..\..\..\temp\csr\table_v.obj \ + ..\..\..\..\..\temp\csr\table_w.obj \ + ..\..\..\..\..\temp\csr\table_x.obj \ + ..\..\..\..\..\temp\csr\table_y.obj \ + ..\..\..\..\..\temp\csr\table_z.obj \ + ..\..\..\..\..\temp\csr\ta_utility.obj \ + ..\..\..\..\..\temp\csr\ta_ACOS.obj \ + ..\..\..\..\..\temp\csr\ta_AD.obj \ + ..\..\..\..\..\temp\csr\ta_ADD.obj \ + ..\..\..\..\..\temp\csr\ta_ADOSC.obj \ + ..\..\..\..\..\temp\csr\ta_ADX.obj \ + ..\..\..\..\..\temp\csr\ta_ADXR.obj \ + ..\..\..\..\..\temp\csr\ta_APO.obj \ + ..\..\..\..\..\temp\csr\ta_AROON.obj \ + ..\..\..\..\..\temp\csr\ta_AROONOSC.obj \ + ..\..\..\..\..\temp\csr\ta_ASIN.obj \ + ..\..\..\..\..\temp\csr\ta_ATAN.obj \ + ..\..\..\..\..\temp\csr\ta_ATR.obj \ + ..\..\..\..\..\temp\csr\ta_AVGPRICE.obj \ + ..\..\..\..\..\temp\csr\ta_BBANDS.obj \ + ..\..\..\..\..\temp\csr\ta_BETA.obj \ + ..\..\..\..\..\temp\csr\ta_BOP.obj \ + ..\..\..\..\..\temp\csr\ta_CCI.obj \ + ..\..\..\..\..\temp\csr\ta_CDL2CROWS.obj \ + ..\..\..\..\..\temp\csr\ta_CDL3BLACKCROWS.obj \ + ..\..\..\..\..\temp\csr\ta_CDL3INSIDE.obj \ + ..\..\..\..\..\temp\csr\ta_CDL3LINESTRIKE.obj \ + ..\..\..\..\..\temp\csr\ta_CDL3OUTSIDE.obj \ + ..\..\..\..\..\temp\csr\ta_CDL3STARSINSOUTH.obj \ + ..\..\..\..\..\temp\csr\ta_CDL3WHITESOLDIERS.obj \ + ..\..\..\..\..\temp\csr\ta_CDLABANDONEDBABY.obj \ + ..\..\..\..\..\temp\csr\ta_CDLADVANCEBLOCK.obj \ + ..\..\..\..\..\temp\csr\ta_CDLBELTHOLD.obj \ + ..\..\..\..\..\temp\csr\ta_CDLBREAKAWAY.obj \ + ..\..\..\..\..\temp\csr\ta_CDLCLOSINGMARUBOZU.obj \ + ..\..\..\..\..\temp\csr\ta_CDLCONCEALBABYSWALL.obj \ + ..\..\..\..\..\temp\csr\ta_CDLCOUNTERATTACK.obj \ + ..\..\..\..\..\temp\csr\ta_CDLDARKCLOUDCOVER.obj \ + ..\..\..\..\..\temp\csr\ta_CDLDOJI.obj \ + ..\..\..\..\..\temp\csr\ta_CDLDOJISTAR.obj \ + ..\..\..\..\..\temp\csr\ta_CDLDRAGONFLYDOJI.obj \ + ..\..\..\..\..\temp\csr\ta_CDLENGULFING.obj \ + ..\..\..\..\..\temp\csr\ta_CDLEVENINGDOJISTAR.obj \ + ..\..\..\..\..\temp\csr\ta_CDLEVENINGSTAR.obj \ + ..\..\..\..\..\temp\csr\ta_CDLGAPSIDESIDEWHITE.obj \ + ..\..\..\..\..\temp\csr\ta_CDLGRAVESTONEDOJI.obj \ + ..\..\..\..\..\temp\csr\ta_CDLHAMMER.obj \ + ..\..\..\..\..\temp\csr\ta_CDLHANGINGMAN.obj \ + ..\..\..\..\..\temp\csr\ta_CDLHARAMI.obj \ + ..\..\..\..\..\temp\csr\ta_CDLHARAMICROSS.obj \ + ..\..\..\..\..\temp\csr\ta_CDLHIGHWAVE.obj \ + ..\..\..\..\..\temp\csr\ta_CDLHIKKAKE.obj \ + ..\..\..\..\..\temp\csr\ta_CDLHIKKAKEMOD.obj \ + ..\..\..\..\..\temp\csr\ta_CDLHOMINGPIGEON.obj \ + ..\..\..\..\..\temp\csr\ta_CDLIDENTICAL3CROWS.obj \ + ..\..\..\..\..\temp\csr\ta_CDLINNECK.obj \ + ..\..\..\..\..\temp\csr\ta_CDLINVERTEDHAMMER.obj \ + ..\..\..\..\..\temp\csr\ta_CDLKICKING.obj \ + ..\..\..\..\..\temp\csr\ta_CDLKICKINGBYLENGTH.obj \ + ..\..\..\..\..\temp\csr\ta_CDLLADDERBOTTOM.obj \ + ..\..\..\..\..\temp\csr\ta_CDLLONGLEGGEDDOJI.obj \ + ..\..\..\..\..\temp\csr\ta_CDLLONGLINE.obj \ + ..\..\..\..\..\temp\csr\ta_CDLMARUBOZU.obj \ + ..\..\..\..\..\temp\csr\ta_CDLMATCHINGLOW.obj \ + ..\..\..\..\..\temp\csr\ta_CDLMATHOLD.obj \ + ..\..\..\..\..\temp\csr\ta_CDLMORNINGDOJISTAR.obj \ + ..\..\..\..\..\temp\csr\ta_CDLMORNINGSTAR.obj \ + ..\..\..\..\..\temp\csr\ta_CDLONNECK.obj \ + ..\..\..\..\..\temp\csr\ta_CDLPIERCING.obj \ + ..\..\..\..\..\temp\csr\ta_CDLRICKSHAWMAN.obj \ + ..\..\..\..\..\temp\csr\ta_CDLRISEFALL3METHODS.obj \ + ..\..\..\..\..\temp\csr\ta_CDLSEPARATINGLINES.obj \ + ..\..\..\..\..\temp\csr\ta_CDLSHOOTINGSTAR.obj \ + ..\..\..\..\..\temp\csr\ta_CDLSHORTLINE.obj \ + ..\..\..\..\..\temp\csr\ta_CDLSPINNINGTOP.obj \ + ..\..\..\..\..\temp\csr\ta_CDLSTALLEDPATTERN.obj \ + ..\..\..\..\..\temp\csr\ta_CDLSTICKSANDWICH.obj \ + ..\..\..\..\..\temp\csr\ta_CDLTAKURI.obj \ + ..\..\..\..\..\temp\csr\ta_CDLTASUKIGAP.obj \ + ..\..\..\..\..\temp\csr\ta_CDLTHRUSTING.obj \ + ..\..\..\..\..\temp\csr\ta_CDLTRISTAR.obj \ + ..\..\..\..\..\temp\csr\ta_CDLUNIQUE3RIVER.obj \ + ..\..\..\..\..\temp\csr\ta_CDLUPSIDEGAP2CROWS.obj \ + ..\..\..\..\..\temp\csr\ta_CDLXSIDEGAP3METHODS.obj \ + ..\..\..\..\..\temp\csr\ta_CEIL.obj \ + ..\..\..\..\..\temp\csr\ta_CMO.obj \ + ..\..\..\..\..\temp\csr\ta_CORREL.obj \ + ..\..\..\..\..\temp\csr\ta_COS.obj \ + ..\..\..\..\..\temp\csr\ta_COSH.obj \ + ..\..\..\..\..\temp\csr\ta_DEMA.obj \ + ..\..\..\..\..\temp\csr\ta_DIV.obj \ + ..\..\..\..\..\temp\csr\ta_DX.obj \ + ..\..\..\..\..\temp\csr\ta_EMA.obj \ + ..\..\..\..\..\temp\csr\ta_EXP.obj \ + ..\..\..\..\..\temp\csr\ta_FLOOR.obj \ + ..\..\..\..\..\temp\csr\ta_HT_DCPERIOD.obj \ + ..\..\..\..\..\temp\csr\ta_HT_DCPHASE.obj \ + ..\..\..\..\..\temp\csr\ta_HT_PHASOR.obj \ + ..\..\..\..\..\temp\csr\ta_HT_SINE.obj \ + ..\..\..\..\..\temp\csr\ta_HT_TRENDLINE.obj \ + ..\..\..\..\..\temp\csr\ta_HT_TRENDMODE.obj \ + ..\..\..\..\..\temp\csr\ta_KAMA.obj \ + ..\..\..\..\..\temp\csr\ta_LINEARREG.obj \ + ..\..\..\..\..\temp\csr\ta_LINEARREG_ANGLE.obj \ + ..\..\..\..\..\temp\csr\ta_LINEARREG_INTERCEPT.obj \ + ..\..\..\..\..\temp\csr\ta_LINEARREG_SLOPE.obj \ + ..\..\..\..\..\temp\csr\ta_LN.obj \ + ..\..\..\..\..\temp\csr\ta_LOG10.obj \ + ..\..\..\..\..\temp\csr\ta_MA.obj \ + ..\..\..\..\..\temp\csr\ta_MACD.obj \ + ..\..\..\..\..\temp\csr\ta_MACDEXT.obj \ + ..\..\..\..\..\temp\csr\ta_MACDFIX.obj \ + ..\..\..\..\..\temp\csr\ta_MAMA.obj \ + ..\..\..\..\..\temp\csr\ta_MAVP.obj \ + ..\..\..\..\..\temp\csr\ta_MAX.obj \ + ..\..\..\..\..\temp\csr\ta_MAXINDEX.obj \ + ..\..\..\..\..\temp\csr\ta_MEDPRICE.obj \ + ..\..\..\..\..\temp\csr\ta_MFI.obj \ + ..\..\..\..\..\temp\csr\ta_MIDPOINT.obj \ + ..\..\..\..\..\temp\csr\ta_MIDPRICE.obj \ + ..\..\..\..\..\temp\csr\ta_MIN.obj \ + ..\..\..\..\..\temp\csr\ta_MININDEX.obj \ + ..\..\..\..\..\temp\csr\ta_MINMAX.obj \ + ..\..\..\..\..\temp\csr\ta_MINMAXINDEX.obj \ + ..\..\..\..\..\temp\csr\ta_MINUS_DI.obj \ + ..\..\..\..\..\temp\csr\ta_MINUS_DM.obj \ + ..\..\..\..\..\temp\csr\ta_MOM.obj \ + ..\..\..\..\..\temp\csr\ta_MULT.obj \ + ..\..\..\..\..\temp\csr\ta_NATR.obj \ + ..\..\..\..\..\temp\csr\ta_OBV.obj \ + ..\..\..\..\..\temp\csr\ta_PLUS_DI.obj \ + ..\..\..\..\..\temp\csr\ta_PLUS_DM.obj \ + ..\..\..\..\..\temp\csr\ta_PPO.obj \ + ..\..\..\..\..\temp\csr\ta_ROC.obj \ + ..\..\..\..\..\temp\csr\ta_ROCP.obj \ + ..\..\..\..\..\temp\csr\ta_ROCR.obj \ + ..\..\..\..\..\temp\csr\ta_ROCR100.obj \ + ..\..\..\..\..\temp\csr\ta_RSI.obj \ + ..\..\..\..\..\temp\csr\ta_SAR.obj \ + ..\..\..\..\..\temp\csr\ta_SAREXT.obj \ + ..\..\..\..\..\temp\csr\ta_SIN.obj \ + ..\..\..\..\..\temp\csr\ta_SINH.obj \ + ..\..\..\..\..\temp\csr\ta_SMA.obj \ + ..\..\..\..\..\temp\csr\ta_SQRT.obj \ + ..\..\..\..\..\temp\csr\ta_STDDEV.obj \ + ..\..\..\..\..\temp\csr\ta_STOCH.obj \ + ..\..\..\..\..\temp\csr\ta_STOCHF.obj \ + ..\..\..\..\..\temp\csr\ta_STOCHRSI.obj \ + ..\..\..\..\..\temp\csr\ta_SUB.obj \ + ..\..\..\..\..\temp\csr\ta_SUM.obj \ + ..\..\..\..\..\temp\csr\ta_T3.obj \ + ..\..\..\..\..\temp\csr\ta_TAN.obj \ + ..\..\..\..\..\temp\csr\ta_TANH.obj \ + ..\..\..\..\..\temp\csr\ta_TEMA.obj \ + ..\..\..\..\..\temp\csr\ta_TRANGE.obj \ + ..\..\..\..\..\temp\csr\ta_TRIMA.obj \ + ..\..\..\..\..\temp\csr\ta_TRIX.obj \ + ..\..\..\..\..\temp\csr\ta_TSF.obj \ + ..\..\..\..\..\temp\csr\ta_TYPPRICE.obj \ + ..\..\..\..\..\temp\csr\ta_ULTOSC.obj \ + ..\..\..\..\..\temp\csr\ta_VAR.obj \ + ..\..\..\..\..\temp\csr\ta_WCLPRICE.obj \ + ..\..\..\..\..\temp\csr\ta_WILLR.obj \ + ..\..\..\..\..\temp\csr\ta_WMA.obj +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ..\..\..\..\..\lib\ta_libc_csr.lib +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .c + +.cpp.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $< + +.cxx.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $< + +.cc.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $< + +.c.obj: + $(CC) -c $(CFLAGS) $(INCPATH) -Fo$@ $< + +####### Build rules + +all: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + $(LIB) /OUT:$(TARGET) @<< + $(OBJECTS) $(OBJMOC) +<< + +moc: $(SRCMOC) + +tmake: ../csr/win32/msvc/ta_libc/Makefile + +../csr/win32/msvc/ta_libc/Makefile: ta_libc/ta_libc.pro + tmake ta_libc/ta_libc.pro -o ../csr/win32/msvc/ta_libc/Makefile + +dist: + $(ZIP) ta_libc/ta_libc.zip ta_libc/ta_libc.pro $(SOURCES) $(HEADERS) $(DIST) $(INTERFACES) + +clean: + -del ..\..\..\..\..\temp\csr\ta_global.obj + -del ..\..\..\..\..\temp\csr\ta_retcode.obj + -del ..\..\..\..\..\temp\csr\ta_version.obj + -del ..\..\..\..\..\temp\csr\ta_abstract.obj + -del ..\..\..\..\..\temp\csr\ta_def_ui.obj + -del ..\..\..\..\..\temp\csr\ta_func_api.obj + -del ..\..\..\..\..\temp\csr\ta_group_idx.obj + -del ..\..\..\..\..\temp\csr\ta_frame.obj + -del ..\..\..\..\..\temp\csr\table_a.obj + -del ..\..\..\..\..\temp\csr\table_b.obj + -del ..\..\..\..\..\temp\csr\table_c.obj + -del ..\..\..\..\..\temp\csr\table_d.obj + -del ..\..\..\..\..\temp\csr\table_e.obj + -del ..\..\..\..\..\temp\csr\table_f.obj + -del ..\..\..\..\..\temp\csr\table_g.obj + -del ..\..\..\..\..\temp\csr\table_h.obj + -del ..\..\..\..\..\temp\csr\table_i.obj + -del ..\..\..\..\..\temp\csr\table_j.obj + -del ..\..\..\..\..\temp\csr\table_k.obj + -del ..\..\..\..\..\temp\csr\table_l.obj + -del ..\..\..\..\..\temp\csr\table_m.obj + -del ..\..\..\..\..\temp\csr\table_n.obj + -del ..\..\..\..\..\temp\csr\table_o.obj + -del ..\..\..\..\..\temp\csr\table_p.obj + -del ..\..\..\..\..\temp\csr\table_q.obj + -del ..\..\..\..\..\temp\csr\table_r.obj + -del ..\..\..\..\..\temp\csr\table_s.obj + -del ..\..\..\..\..\temp\csr\table_t.obj + -del ..\..\..\..\..\temp\csr\table_u.obj + -del ..\..\..\..\..\temp\csr\table_v.obj + -del ..\..\..\..\..\temp\csr\table_w.obj + -del ..\..\..\..\..\temp\csr\table_x.obj + -del ..\..\..\..\..\temp\csr\table_y.obj + -del ..\..\..\..\..\temp\csr\table_z.obj + -del ..\..\..\..\..\temp\csr\ta_utility.obj + -del ..\..\..\..\..\temp\csr\ta_ACOS.obj + -del ..\..\..\..\..\temp\csr\ta_AD.obj + -del ..\..\..\..\..\temp\csr\ta_ADD.obj + -del ..\..\..\..\..\temp\csr\ta_ADOSC.obj + -del ..\..\..\..\..\temp\csr\ta_ADX.obj + -del ..\..\..\..\..\temp\csr\ta_ADXR.obj + -del ..\..\..\..\..\temp\csr\ta_APO.obj + -del ..\..\..\..\..\temp\csr\ta_AROON.obj + -del ..\..\..\..\..\temp\csr\ta_AROONOSC.obj + -del ..\..\..\..\..\temp\csr\ta_ASIN.obj + -del ..\..\..\..\..\temp\csr\ta_ATAN.obj + -del ..\..\..\..\..\temp\csr\ta_ATR.obj + -del ..\..\..\..\..\temp\csr\ta_AVGPRICE.obj + -del ..\..\..\..\..\temp\csr\ta_BBANDS.obj + -del ..\..\..\..\..\temp\csr\ta_BETA.obj + -del ..\..\..\..\..\temp\csr\ta_BOP.obj + -del ..\..\..\..\..\temp\csr\ta_CCI.obj + -del ..\..\..\..\..\temp\csr\ta_CDL2CROWS.obj + -del ..\..\..\..\..\temp\csr\ta_CDL3BLACKCROWS.obj + -del ..\..\..\..\..\temp\csr\ta_CDL3INSIDE.obj + -del ..\..\..\..\..\temp\csr\ta_CDL3LINESTRIKE.obj + -del ..\..\..\..\..\temp\csr\ta_CDL3OUTSIDE.obj + -del ..\..\..\..\..\temp\csr\ta_CDL3STARSINSOUTH.obj + -del ..\..\..\..\..\temp\csr\ta_CDL3WHITESOLDIERS.obj + -del ..\..\..\..\..\temp\csr\ta_CDLABANDONEDBABY.obj + -del ..\..\..\..\..\temp\csr\ta_CDLADVANCEBLOCK.obj + -del ..\..\..\..\..\temp\csr\ta_CDLBELTHOLD.obj + -del ..\..\..\..\..\temp\csr\ta_CDLBREAKAWAY.obj + -del ..\..\..\..\..\temp\csr\ta_CDLCLOSINGMARUBOZU.obj + -del ..\..\..\..\..\temp\csr\ta_CDLCONCEALBABYSWALL.obj + -del ..\..\..\..\..\temp\csr\ta_CDLCOUNTERATTACK.obj + -del ..\..\..\..\..\temp\csr\ta_CDLDARKCLOUDCOVER.obj + -del ..\..\..\..\..\temp\csr\ta_CDLDOJI.obj + -del ..\..\..\..\..\temp\csr\ta_CDLDOJISTAR.obj + -del ..\..\..\..\..\temp\csr\ta_CDLDRAGONFLYDOJI.obj + -del ..\..\..\..\..\temp\csr\ta_CDLENGULFING.obj + -del ..\..\..\..\..\temp\csr\ta_CDLEVENINGDOJISTAR.obj + -del ..\..\..\..\..\temp\csr\ta_CDLEVENINGSTAR.obj + -del ..\..\..\..\..\temp\csr\ta_CDLGAPSIDESIDEWHITE.obj + -del ..\..\..\..\..\temp\csr\ta_CDLGRAVESTONEDOJI.obj + -del ..\..\..\..\..\temp\csr\ta_CDLHAMMER.obj + -del ..\..\..\..\..\temp\csr\ta_CDLHANGINGMAN.obj + -del ..\..\..\..\..\temp\csr\ta_CDLHARAMI.obj + -del ..\..\..\..\..\temp\csr\ta_CDLHARAMICROSS.obj + -del ..\..\..\..\..\temp\csr\ta_CDLHIGHWAVE.obj + -del ..\..\..\..\..\temp\csr\ta_CDLHIKKAKE.obj + -del ..\..\..\..\..\temp\csr\ta_CDLHIKKAKEMOD.obj + -del ..\..\..\..\..\temp\csr\ta_CDLHOMINGPIGEON.obj + -del ..\..\..\..\..\temp\csr\ta_CDLIDENTICAL3CROWS.obj + -del ..\..\..\..\..\temp\csr\ta_CDLINNECK.obj + -del ..\..\..\..\..\temp\csr\ta_CDLINVERTEDHAMMER.obj + -del ..\..\..\..\..\temp\csr\ta_CDLKICKING.obj + -del ..\..\..\..\..\temp\csr\ta_CDLKICKINGBYLENGTH.obj + -del ..\..\..\..\..\temp\csr\ta_CDLLADDERBOTTOM.obj + -del ..\..\..\..\..\temp\csr\ta_CDLLONGLEGGEDDOJI.obj + -del ..\..\..\..\..\temp\csr\ta_CDLLONGLINE.obj + -del ..\..\..\..\..\temp\csr\ta_CDLMARUBOZU.obj + -del ..\..\..\..\..\temp\csr\ta_CDLMATCHINGLOW.obj + -del ..\..\..\..\..\temp\csr\ta_CDLMATHOLD.obj + -del ..\..\..\..\..\temp\csr\ta_CDLMORNINGDOJISTAR.obj + -del ..\..\..\..\..\temp\csr\ta_CDLMORNINGSTAR.obj + -del ..\..\..\..\..\temp\csr\ta_CDLONNECK.obj + -del ..\..\..\..\..\temp\csr\ta_CDLPIERCING.obj + -del ..\..\..\..\..\temp\csr\ta_CDLRICKSHAWMAN.obj + -del ..\..\..\..\..\temp\csr\ta_CDLRISEFALL3METHODS.obj + -del ..\..\..\..\..\temp\csr\ta_CDLSEPARATINGLINES.obj + -del ..\..\..\..\..\temp\csr\ta_CDLSHOOTINGSTAR.obj + -del ..\..\..\..\..\temp\csr\ta_CDLSHORTLINE.obj + -del ..\..\..\..\..\temp\csr\ta_CDLSPINNINGTOP.obj + -del ..\..\..\..\..\temp\csr\ta_CDLSTALLEDPATTERN.obj + -del ..\..\..\..\..\temp\csr\ta_CDLSTICKSANDWICH.obj + -del ..\..\..\..\..\temp\csr\ta_CDLTAKURI.obj + -del ..\..\..\..\..\temp\csr\ta_CDLTASUKIGAP.obj + -del ..\..\..\..\..\temp\csr\ta_CDLTHRUSTING.obj + -del ..\..\..\..\..\temp\csr\ta_CDLTRISTAR.obj + -del ..\..\..\..\..\temp\csr\ta_CDLUNIQUE3RIVER.obj + -del ..\..\..\..\..\temp\csr\ta_CDLUPSIDEGAP2CROWS.obj + -del ..\..\..\..\..\temp\csr\ta_CDLXSIDEGAP3METHODS.obj + -del ..\..\..\..\..\temp\csr\ta_CEIL.obj + -del ..\..\..\..\..\temp\csr\ta_CMO.obj + -del ..\..\..\..\..\temp\csr\ta_CORREL.obj + -del ..\..\..\..\..\temp\csr\ta_COS.obj + -del ..\..\..\..\..\temp\csr\ta_COSH.obj + -del ..\..\..\..\..\temp\csr\ta_DEMA.obj + -del ..\..\..\..\..\temp\csr\ta_DIV.obj + -del ..\..\..\..\..\temp\csr\ta_DX.obj + -del ..\..\..\..\..\temp\csr\ta_EMA.obj + -del ..\..\..\..\..\temp\csr\ta_EXP.obj + -del ..\..\..\..\..\temp\csr\ta_FLOOR.obj + -del ..\..\..\..\..\temp\csr\ta_HT_DCPERIOD.obj + -del ..\..\..\..\..\temp\csr\ta_HT_DCPHASE.obj + -del ..\..\..\..\..\temp\csr\ta_HT_PHASOR.obj + -del ..\..\..\..\..\temp\csr\ta_HT_SINE.obj + -del ..\..\..\..\..\temp\csr\ta_HT_TRENDLINE.obj + -del ..\..\..\..\..\temp\csr\ta_HT_TRENDMODE.obj + -del ..\..\..\..\..\temp\csr\ta_KAMA.obj + -del ..\..\..\..\..\temp\csr\ta_LINEARREG.obj + -del ..\..\..\..\..\temp\csr\ta_LINEARREG_ANGLE.obj + -del ..\..\..\..\..\temp\csr\ta_LINEARREG_INTERCEPT.obj + -del ..\..\..\..\..\temp\csr\ta_LINEARREG_SLOPE.obj + -del ..\..\..\..\..\temp\csr\ta_LN.obj + -del ..\..\..\..\..\temp\csr\ta_LOG10.obj + -del ..\..\..\..\..\temp\csr\ta_MA.obj + -del ..\..\..\..\..\temp\csr\ta_MACD.obj + -del ..\..\..\..\..\temp\csr\ta_MACDEXT.obj + -del ..\..\..\..\..\temp\csr\ta_MACDFIX.obj + -del ..\..\..\..\..\temp\csr\ta_MAMA.obj + -del ..\..\..\..\..\temp\csr\ta_MAVP.obj + -del ..\..\..\..\..\temp\csr\ta_MAX.obj + -del ..\..\..\..\..\temp\csr\ta_MAXINDEX.obj + -del ..\..\..\..\..\temp\csr\ta_MEDPRICE.obj + -del ..\..\..\..\..\temp\csr\ta_MFI.obj + -del ..\..\..\..\..\temp\csr\ta_MIDPOINT.obj + -del ..\..\..\..\..\temp\csr\ta_MIDPRICE.obj + -del ..\..\..\..\..\temp\csr\ta_MIN.obj + -del ..\..\..\..\..\temp\csr\ta_MININDEX.obj + -del ..\..\..\..\..\temp\csr\ta_MINMAX.obj + -del ..\..\..\..\..\temp\csr\ta_MINMAXINDEX.obj + -del ..\..\..\..\..\temp\csr\ta_MINUS_DI.obj + -del ..\..\..\..\..\temp\csr\ta_MINUS_DM.obj + -del ..\..\..\..\..\temp\csr\ta_MOM.obj + -del ..\..\..\..\..\temp\csr\ta_MULT.obj + -del ..\..\..\..\..\temp\csr\ta_NATR.obj + -del ..\..\..\..\..\temp\csr\ta_OBV.obj + -del ..\..\..\..\..\temp\csr\ta_PLUS_DI.obj + -del ..\..\..\..\..\temp\csr\ta_PLUS_DM.obj + -del ..\..\..\..\..\temp\csr\ta_PPO.obj + -del ..\..\..\..\..\temp\csr\ta_ROC.obj + -del ..\..\..\..\..\temp\csr\ta_ROCP.obj + -del ..\..\..\..\..\temp\csr\ta_ROCR.obj + -del ..\..\..\..\..\temp\csr\ta_ROCR100.obj + -del ..\..\..\..\..\temp\csr\ta_RSI.obj + -del ..\..\..\..\..\temp\csr\ta_SAR.obj + -del ..\..\..\..\..\temp\csr\ta_SAREXT.obj + -del ..\..\..\..\..\temp\csr\ta_SIN.obj + -del ..\..\..\..\..\temp\csr\ta_SINH.obj + -del ..\..\..\..\..\temp\csr\ta_SMA.obj + -del ..\..\..\..\..\temp\csr\ta_SQRT.obj + -del ..\..\..\..\..\temp\csr\ta_STDDEV.obj + -del ..\..\..\..\..\temp\csr\ta_STOCH.obj + -del ..\..\..\..\..\temp\csr\ta_STOCHF.obj + -del ..\..\..\..\..\temp\csr\ta_STOCHRSI.obj + -del ..\..\..\..\..\temp\csr\ta_SUB.obj + -del ..\..\..\..\..\temp\csr\ta_SUM.obj + -del ..\..\..\..\..\temp\csr\ta_T3.obj + -del ..\..\..\..\..\temp\csr\ta_TAN.obj + -del ..\..\..\..\..\temp\csr\ta_TANH.obj + -del ..\..\..\..\..\temp\csr\ta_TEMA.obj + -del ..\..\..\..\..\temp\csr\ta_TRANGE.obj + -del ..\..\..\..\..\temp\csr\ta_TRIMA.obj + -del ..\..\..\..\..\temp\csr\ta_TRIX.obj + -del ..\..\..\..\..\temp\csr\ta_TSF.obj + -del ..\..\..\..\..\temp\csr\ta_TYPPRICE.obj + -del ..\..\..\..\..\temp\csr\ta_ULTOSC.obj + -del ..\..\..\..\..\temp\csr\ta_VAR.obj + -del ..\..\..\..\..\temp\csr\ta_WCLPRICE.obj + -del ..\..\..\..\..\temp\csr\ta_WILLR.obj + -del ..\..\..\..\..\temp\csr\ta_WMA.obj + -del $(TARGET) + -del ../../../../../bin/*.map + -del ../../../../../bin/*._xe + -del ../../../../../bin/*.tds + -del ../../../../../bin/*.pdb + -del ../../../../../bin/*.pbo + -del ../../../../../bin/*.pbi + -del ../../../../../bin/*.pbt + +####### Compile + +..\..\..\..\..\temp\csr\ta_global.obj: ..\..\..\..\..\src\ta_common\ta_global.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_global.obj ..\..\..\..\..\src\ta_common\ta_global.c + +..\..\..\..\..\temp\csr\ta_retcode.obj: ..\..\..\..\..\src\ta_common\ta_retcode.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_retcode.obj ..\..\..\..\..\src\ta_common\ta_retcode.c + +..\..\..\..\..\temp\csr\ta_version.obj: ..\..\..\..\..\src\ta_common\ta_version.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_version.obj ..\..\..\..\..\src\ta_common\ta_version.c + +..\..\..\..\..\temp\csr\ta_abstract.obj: ..\..\..\..\..\src\ta_abstract\ta_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_abstract.obj ..\..\..\..\..\src\ta_abstract\ta_abstract.c + +..\..\..\..\..\temp\csr\ta_def_ui.obj: ..\..\..\..\..\src\ta_abstract\ta_def_ui.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_def_ui.obj ..\..\..\..\..\src\ta_abstract\ta_def_ui.c + +..\..\..\..\..\temp\csr\ta_func_api.obj: ..\..\..\..\..\src\ta_abstract\ta_func_api.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_func_api.obj ..\..\..\..\..\src\ta_abstract\ta_func_api.c + +..\..\..\..\..\temp\csr\ta_group_idx.obj: ..\..\..\..\..\src\ta_abstract\ta_group_idx.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_group_idx.obj ..\..\..\..\..\src\ta_abstract\ta_group_idx.c + +..\..\..\..\..\temp\csr\ta_frame.obj: ..\..\..\..\..\src\ta_abstract\frames\ta_frame.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_frame.obj ..\..\..\..\..\src\ta_abstract\frames\ta_frame.c + +..\..\..\..\..\temp\csr\table_a.obj: ..\..\..\..\..\src\ta_abstract\tables\table_a.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\table_a.obj ..\..\..\..\..\src\ta_abstract\tables\table_a.c + +..\..\..\..\..\temp\csr\table_b.obj: ..\..\..\..\..\src\ta_abstract\tables\table_b.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\table_b.obj ..\..\..\..\..\src\ta_abstract\tables\table_b.c + +..\..\..\..\..\temp\csr\table_c.obj: ..\..\..\..\..\src\ta_abstract\tables\table_c.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\table_c.obj ..\..\..\..\..\src\ta_abstract\tables\table_c.c + +..\..\..\..\..\temp\csr\table_d.obj: ..\..\..\..\..\src\ta_abstract\tables\table_d.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\table_d.obj ..\..\..\..\..\src\ta_abstract\tables\table_d.c + +..\..\..\..\..\temp\csr\table_e.obj: ..\..\..\..\..\src\ta_abstract\tables\table_e.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\table_e.obj ..\..\..\..\..\src\ta_abstract\tables\table_e.c + +..\..\..\..\..\temp\csr\table_f.obj: ..\..\..\..\..\src\ta_abstract\tables\table_f.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\table_f.obj ..\..\..\..\..\src\ta_abstract\tables\table_f.c + +..\..\..\..\..\temp\csr\table_g.obj: ..\..\..\..\..\src\ta_abstract\tables\table_g.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\table_g.obj ..\..\..\..\..\src\ta_abstract\tables\table_g.c + +..\..\..\..\..\temp\csr\table_h.obj: ..\..\..\..\..\src\ta_abstract\tables\table_h.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\table_h.obj ..\..\..\..\..\src\ta_abstract\tables\table_h.c + +..\..\..\..\..\temp\csr\table_i.obj: ..\..\..\..\..\src\ta_abstract\tables\table_i.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\table_i.obj ..\..\..\..\..\src\ta_abstract\tables\table_i.c + +..\..\..\..\..\temp\csr\table_j.obj: ..\..\..\..\..\src\ta_abstract\tables\table_j.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\table_j.obj ..\..\..\..\..\src\ta_abstract\tables\table_j.c + +..\..\..\..\..\temp\csr\table_k.obj: ..\..\..\..\..\src\ta_abstract\tables\table_k.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\table_k.obj ..\..\..\..\..\src\ta_abstract\tables\table_k.c + +..\..\..\..\..\temp\csr\table_l.obj: ..\..\..\..\..\src\ta_abstract\tables\table_l.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\table_l.obj ..\..\..\..\..\src\ta_abstract\tables\table_l.c + +..\..\..\..\..\temp\csr\table_m.obj: ..\..\..\..\..\src\ta_abstract\tables\table_m.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\table_m.obj ..\..\..\..\..\src\ta_abstract\tables\table_m.c + +..\..\..\..\..\temp\csr\table_n.obj: ..\..\..\..\..\src\ta_abstract\tables\table_n.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\table_n.obj ..\..\..\..\..\src\ta_abstract\tables\table_n.c + +..\..\..\..\..\temp\csr\table_o.obj: ..\..\..\..\..\src\ta_abstract\tables\table_o.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\table_o.obj ..\..\..\..\..\src\ta_abstract\tables\table_o.c + +..\..\..\..\..\temp\csr\table_p.obj: ..\..\..\..\..\src\ta_abstract\tables\table_p.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\table_p.obj ..\..\..\..\..\src\ta_abstract\tables\table_p.c + +..\..\..\..\..\temp\csr\table_q.obj: ..\..\..\..\..\src\ta_abstract\tables\table_q.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\table_q.obj ..\..\..\..\..\src\ta_abstract\tables\table_q.c + +..\..\..\..\..\temp\csr\table_r.obj: ..\..\..\..\..\src\ta_abstract\tables\table_r.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\table_r.obj ..\..\..\..\..\src\ta_abstract\tables\table_r.c + +..\..\..\..\..\temp\csr\table_s.obj: ..\..\..\..\..\src\ta_abstract\tables\table_s.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\table_s.obj ..\..\..\..\..\src\ta_abstract\tables\table_s.c + +..\..\..\..\..\temp\csr\table_t.obj: ..\..\..\..\..\src\ta_abstract\tables\table_t.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\table_t.obj ..\..\..\..\..\src\ta_abstract\tables\table_t.c + +..\..\..\..\..\temp\csr\table_u.obj: ..\..\..\..\..\src\ta_abstract\tables\table_u.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\table_u.obj ..\..\..\..\..\src\ta_abstract\tables\table_u.c + +..\..\..\..\..\temp\csr\table_v.obj: ..\..\..\..\..\src\ta_abstract\tables\table_v.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\table_v.obj ..\..\..\..\..\src\ta_abstract\tables\table_v.c + +..\..\..\..\..\temp\csr\table_w.obj: ..\..\..\..\..\src\ta_abstract\tables\table_w.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\table_w.obj ..\..\..\..\..\src\ta_abstract\tables\table_w.c + +..\..\..\..\..\temp\csr\table_x.obj: ..\..\..\..\..\src\ta_abstract\tables\table_x.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\table_x.obj ..\..\..\..\..\src\ta_abstract\tables\table_x.c + +..\..\..\..\..\temp\csr\table_y.obj: ..\..\..\..\..\src\ta_abstract\tables\table_y.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\table_y.obj ..\..\..\..\..\src\ta_abstract\tables\table_y.c + +..\..\..\..\..\temp\csr\table_z.obj: ..\..\..\..\..\src\ta_abstract\tables\table_z.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\table_z.obj ..\..\..\..\..\src\ta_abstract\tables\table_z.c + +..\..\..\..\..\temp\csr\ta_utility.obj: ..\..\..\..\..\src\ta_func\ta_utility.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_utility.obj ..\..\..\..\..\src\ta_func\ta_utility.c + +..\..\..\..\..\temp\csr\ta_ACOS.obj: ..\..\..\..\..\src\ta_func\ta_ACOS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_ACOS.obj ..\..\..\..\..\src\ta_func\ta_ACOS.c + +..\..\..\..\..\temp\csr\ta_AD.obj: ..\..\..\..\..\src\ta_func\ta_AD.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_AD.obj ..\..\..\..\..\src\ta_func\ta_AD.c + +..\..\..\..\..\temp\csr\ta_ADD.obj: ..\..\..\..\..\src\ta_func\ta_ADD.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_ADD.obj ..\..\..\..\..\src\ta_func\ta_ADD.c + +..\..\..\..\..\temp\csr\ta_ADOSC.obj: ..\..\..\..\..\src\ta_func\ta_ADOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_ADOSC.obj ..\..\..\..\..\src\ta_func\ta_ADOSC.c + +..\..\..\..\..\temp\csr\ta_ADX.obj: ..\..\..\..\..\src\ta_func\ta_ADX.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_ADX.obj ..\..\..\..\..\src\ta_func\ta_ADX.c + +..\..\..\..\..\temp\csr\ta_ADXR.obj: ..\..\..\..\..\src\ta_func\ta_ADXR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_ADXR.obj ..\..\..\..\..\src\ta_func\ta_ADXR.c + +..\..\..\..\..\temp\csr\ta_APO.obj: ..\..\..\..\..\src\ta_func\ta_APO.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_APO.obj ..\..\..\..\..\src\ta_func\ta_APO.c + +..\..\..\..\..\temp\csr\ta_AROON.obj: ..\..\..\..\..\src\ta_func\ta_AROON.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_AROON.obj ..\..\..\..\..\src\ta_func\ta_AROON.c + +..\..\..\..\..\temp\csr\ta_AROONOSC.obj: ..\..\..\..\..\src\ta_func\ta_AROONOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_AROONOSC.obj ..\..\..\..\..\src\ta_func\ta_AROONOSC.c + +..\..\..\..\..\temp\csr\ta_ASIN.obj: ..\..\..\..\..\src\ta_func\ta_ASIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_ASIN.obj ..\..\..\..\..\src\ta_func\ta_ASIN.c + +..\..\..\..\..\temp\csr\ta_ATAN.obj: ..\..\..\..\..\src\ta_func\ta_ATAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_ATAN.obj ..\..\..\..\..\src\ta_func\ta_ATAN.c + +..\..\..\..\..\temp\csr\ta_ATR.obj: ..\..\..\..\..\src\ta_func\ta_ATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_ATR.obj ..\..\..\..\..\src\ta_func\ta_ATR.c + +..\..\..\..\..\temp\csr\ta_AVGPRICE.obj: ..\..\..\..\..\src\ta_func\ta_AVGPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_AVGPRICE.obj ..\..\..\..\..\src\ta_func\ta_AVGPRICE.c + +..\..\..\..\..\temp\csr\ta_BBANDS.obj: ..\..\..\..\..\src\ta_func\ta_BBANDS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_BBANDS.obj ..\..\..\..\..\src\ta_func\ta_BBANDS.c + +..\..\..\..\..\temp\csr\ta_BETA.obj: ..\..\..\..\..\src\ta_func\ta_BETA.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_BETA.obj ..\..\..\..\..\src\ta_func\ta_BETA.c + +..\..\..\..\..\temp\csr\ta_BOP.obj: ..\..\..\..\..\src\ta_func\ta_BOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_BOP.obj ..\..\..\..\..\src\ta_func\ta_BOP.c + +..\..\..\..\..\temp\csr\ta_CCI.obj: ..\..\..\..\..\src\ta_func\ta_CCI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CCI.obj ..\..\..\..\..\src\ta_func\ta_CCI.c + +..\..\..\..\..\temp\csr\ta_CDL2CROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDL2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CDL2CROWS.obj ..\..\..\..\..\src\ta_func\ta_CDL2CROWS.c + +..\..\..\..\..\temp\csr\ta_CDL3BLACKCROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDL3BLACKCROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CDL3BLACKCROWS.obj ..\..\..\..\..\src\ta_func\ta_CDL3BLACKCROWS.c + +..\..\..\..\..\temp\csr\ta_CDL3INSIDE.obj: ..\..\..\..\..\src\ta_func\ta_CDL3INSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CDL3INSIDE.obj ..\..\..\..\..\src\ta_func\ta_CDL3INSIDE.c + +..\..\..\..\..\temp\csr\ta_CDL3LINESTRIKE.obj: ..\..\..\..\..\src\ta_func\ta_CDL3LINESTRIKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CDL3LINESTRIKE.obj ..\..\..\..\..\src\ta_func\ta_CDL3LINESTRIKE.c + +..\..\..\..\..\temp\csr\ta_CDL3OUTSIDE.obj: ..\..\..\..\..\src\ta_func\ta_CDL3OUTSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CDL3OUTSIDE.obj ..\..\..\..\..\src\ta_func\ta_CDL3OUTSIDE.c + +..\..\..\..\..\temp\csr\ta_CDL3STARSINSOUTH.obj: ..\..\..\..\..\src\ta_func\ta_CDL3STARSINSOUTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CDL3STARSINSOUTH.obj ..\..\..\..\..\src\ta_func\ta_CDL3STARSINSOUTH.c + +..\..\..\..\..\temp\csr\ta_CDL3WHITESOLDIERS.obj: ..\..\..\..\..\src\ta_func\ta_CDL3WHITESOLDIERS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CDL3WHITESOLDIERS.obj ..\..\..\..\..\src\ta_func\ta_CDL3WHITESOLDIERS.c + +..\..\..\..\..\temp\csr\ta_CDLABANDONEDBABY.obj: ..\..\..\..\..\src\ta_func\ta_CDLABANDONEDBABY.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CDLABANDONEDBABY.obj ..\..\..\..\..\src\ta_func\ta_CDLABANDONEDBABY.c + +..\..\..\..\..\temp\csr\ta_CDLADVANCEBLOCK.obj: ..\..\..\..\..\src\ta_func\ta_CDLADVANCEBLOCK.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CDLADVANCEBLOCK.obj ..\..\..\..\..\src\ta_func\ta_CDLADVANCEBLOCK.c + +..\..\..\..\..\temp\csr\ta_CDLBELTHOLD.obj: ..\..\..\..\..\src\ta_func\ta_CDLBELTHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CDLBELTHOLD.obj ..\..\..\..\..\src\ta_func\ta_CDLBELTHOLD.c + +..\..\..\..\..\temp\csr\ta_CDLBREAKAWAY.obj: ..\..\..\..\..\src\ta_func\ta_CDLBREAKAWAY.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CDLBREAKAWAY.obj ..\..\..\..\..\src\ta_func\ta_CDLBREAKAWAY.c + +..\..\..\..\..\temp\csr\ta_CDLCLOSINGMARUBOZU.obj: ..\..\..\..\..\src\ta_func\ta_CDLCLOSINGMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CDLCLOSINGMARUBOZU.obj ..\..\..\..\..\src\ta_func\ta_CDLCLOSINGMARUBOZU.c + +..\..\..\..\..\temp\csr\ta_CDLCONCEALBABYSWALL.obj: ..\..\..\..\..\src\ta_func\ta_CDLCONCEALBABYSWALL.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CDLCONCEALBABYSWALL.obj ..\..\..\..\..\src\ta_func\ta_CDLCONCEALBABYSWALL.c + +..\..\..\..\..\temp\csr\ta_CDLCOUNTERATTACK.obj: ..\..\..\..\..\src\ta_func\ta_CDLCOUNTERATTACK.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CDLCOUNTERATTACK.obj ..\..\..\..\..\src\ta_func\ta_CDLCOUNTERATTACK.c + +..\..\..\..\..\temp\csr\ta_CDLDARKCLOUDCOVER.obj: ..\..\..\..\..\src\ta_func\ta_CDLDARKCLOUDCOVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CDLDARKCLOUDCOVER.obj ..\..\..\..\..\src\ta_func\ta_CDLDARKCLOUDCOVER.c + +..\..\..\..\..\temp\csr\ta_CDLDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CDLDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLDOJI.c + +..\..\..\..\..\temp\csr\ta_CDLDOJISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CDLDOJISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLDOJISTAR.c + +..\..\..\..\..\temp\csr\ta_CDLDRAGONFLYDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLDRAGONFLYDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CDLDRAGONFLYDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLDRAGONFLYDOJI.c + +..\..\..\..\..\temp\csr\ta_CDLENGULFING.obj: ..\..\..\..\..\src\ta_func\ta_CDLENGULFING.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CDLENGULFING.obj ..\..\..\..\..\src\ta_func\ta_CDLENGULFING.c + +..\..\..\..\..\temp\csr\ta_CDLEVENINGDOJISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLEVENINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CDLEVENINGDOJISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLEVENINGDOJISTAR.c + +..\..\..\..\..\temp\csr\ta_CDLEVENINGSTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLEVENINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CDLEVENINGSTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLEVENINGSTAR.c + +..\..\..\..\..\temp\csr\ta_CDLGAPSIDESIDEWHITE.obj: ..\..\..\..\..\src\ta_func\ta_CDLGAPSIDESIDEWHITE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CDLGAPSIDESIDEWHITE.obj ..\..\..\..\..\src\ta_func\ta_CDLGAPSIDESIDEWHITE.c + +..\..\..\..\..\temp\csr\ta_CDLGRAVESTONEDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLGRAVESTONEDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CDLGRAVESTONEDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLGRAVESTONEDOJI.c + +..\..\..\..\..\temp\csr\ta_CDLHAMMER.obj: ..\..\..\..\..\src\ta_func\ta_CDLHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CDLHAMMER.obj ..\..\..\..\..\src\ta_func\ta_CDLHAMMER.c + +..\..\..\..\..\temp\csr\ta_CDLHANGINGMAN.obj: ..\..\..\..\..\src\ta_func\ta_CDLHANGINGMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CDLHANGINGMAN.obj ..\..\..\..\..\src\ta_func\ta_CDLHANGINGMAN.c + +..\..\..\..\..\temp\csr\ta_CDLHARAMI.obj: ..\..\..\..\..\src\ta_func\ta_CDLHARAMI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CDLHARAMI.obj ..\..\..\..\..\src\ta_func\ta_CDLHARAMI.c + +..\..\..\..\..\temp\csr\ta_CDLHARAMICROSS.obj: ..\..\..\..\..\src\ta_func\ta_CDLHARAMICROSS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CDLHARAMICROSS.obj ..\..\..\..\..\src\ta_func\ta_CDLHARAMICROSS.c + +..\..\..\..\..\temp\csr\ta_CDLHIGHWAVE.obj: ..\..\..\..\..\src\ta_func\ta_CDLHIGHWAVE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CDLHIGHWAVE.obj ..\..\..\..\..\src\ta_func\ta_CDLHIGHWAVE.c + +..\..\..\..\..\temp\csr\ta_CDLHIKKAKE.obj: ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CDLHIKKAKE.obj ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKE.c + +..\..\..\..\..\temp\csr\ta_CDLHIKKAKEMOD.obj: ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKEMOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CDLHIKKAKEMOD.obj ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKEMOD.c + +..\..\..\..\..\temp\csr\ta_CDLHOMINGPIGEON.obj: ..\..\..\..\..\src\ta_func\ta_CDLHOMINGPIGEON.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CDLHOMINGPIGEON.obj ..\..\..\..\..\src\ta_func\ta_CDLHOMINGPIGEON.c + +..\..\..\..\..\temp\csr\ta_CDLIDENTICAL3CROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDLIDENTICAL3CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CDLIDENTICAL3CROWS.obj ..\..\..\..\..\src\ta_func\ta_CDLIDENTICAL3CROWS.c + +..\..\..\..\..\temp\csr\ta_CDLINNECK.obj: ..\..\..\..\..\src\ta_func\ta_CDLINNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CDLINNECK.obj ..\..\..\..\..\src\ta_func\ta_CDLINNECK.c + +..\..\..\..\..\temp\csr\ta_CDLINVERTEDHAMMER.obj: ..\..\..\..\..\src\ta_func\ta_CDLINVERTEDHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CDLINVERTEDHAMMER.obj ..\..\..\..\..\src\ta_func\ta_CDLINVERTEDHAMMER.c + +..\..\..\..\..\temp\csr\ta_CDLKICKING.obj: ..\..\..\..\..\src\ta_func\ta_CDLKICKING.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CDLKICKING.obj ..\..\..\..\..\src\ta_func\ta_CDLKICKING.c + +..\..\..\..\..\temp\csr\ta_CDLKICKINGBYLENGTH.obj: ..\..\..\..\..\src\ta_func\ta_CDLKICKINGBYLENGTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CDLKICKINGBYLENGTH.obj ..\..\..\..\..\src\ta_func\ta_CDLKICKINGBYLENGTH.c + +..\..\..\..\..\temp\csr\ta_CDLLADDERBOTTOM.obj: ..\..\..\..\..\src\ta_func\ta_CDLLADDERBOTTOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CDLLADDERBOTTOM.obj ..\..\..\..\..\src\ta_func\ta_CDLLADDERBOTTOM.c + +..\..\..\..\..\temp\csr\ta_CDLLONGLEGGEDDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLLONGLEGGEDDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CDLLONGLEGGEDDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLLONGLEGGEDDOJI.c + +..\..\..\..\..\temp\csr\ta_CDLLONGLINE.obj: ..\..\..\..\..\src\ta_func\ta_CDLLONGLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CDLLONGLINE.obj ..\..\..\..\..\src\ta_func\ta_CDLLONGLINE.c + +..\..\..\..\..\temp\csr\ta_CDLMARUBOZU.obj: ..\..\..\..\..\src\ta_func\ta_CDLMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CDLMARUBOZU.obj ..\..\..\..\..\src\ta_func\ta_CDLMARUBOZU.c + +..\..\..\..\..\temp\csr\ta_CDLMATCHINGLOW.obj: ..\..\..\..\..\src\ta_func\ta_CDLMATCHINGLOW.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CDLMATCHINGLOW.obj ..\..\..\..\..\src\ta_func\ta_CDLMATCHINGLOW.c + +..\..\..\..\..\temp\csr\ta_CDLMATHOLD.obj: ..\..\..\..\..\src\ta_func\ta_CDLMATHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CDLMATHOLD.obj ..\..\..\..\..\src\ta_func\ta_CDLMATHOLD.c + +..\..\..\..\..\temp\csr\ta_CDLMORNINGDOJISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLMORNINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CDLMORNINGDOJISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLMORNINGDOJISTAR.c + +..\..\..\..\..\temp\csr\ta_CDLMORNINGSTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLMORNINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CDLMORNINGSTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLMORNINGSTAR.c + +..\..\..\..\..\temp\csr\ta_CDLONNECK.obj: ..\..\..\..\..\src\ta_func\ta_CDLONNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CDLONNECK.obj ..\..\..\..\..\src\ta_func\ta_CDLONNECK.c + +..\..\..\..\..\temp\csr\ta_CDLPIERCING.obj: ..\..\..\..\..\src\ta_func\ta_CDLPIERCING.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CDLPIERCING.obj ..\..\..\..\..\src\ta_func\ta_CDLPIERCING.c + +..\..\..\..\..\temp\csr\ta_CDLRICKSHAWMAN.obj: ..\..\..\..\..\src\ta_func\ta_CDLRICKSHAWMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CDLRICKSHAWMAN.obj ..\..\..\..\..\src\ta_func\ta_CDLRICKSHAWMAN.c + +..\..\..\..\..\temp\csr\ta_CDLRISEFALL3METHODS.obj: ..\..\..\..\..\src\ta_func\ta_CDLRISEFALL3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CDLRISEFALL3METHODS.obj ..\..\..\..\..\src\ta_func\ta_CDLRISEFALL3METHODS.c + +..\..\..\..\..\temp\csr\ta_CDLSEPARATINGLINES.obj: ..\..\..\..\..\src\ta_func\ta_CDLSEPARATINGLINES.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CDLSEPARATINGLINES.obj ..\..\..\..\..\src\ta_func\ta_CDLSEPARATINGLINES.c + +..\..\..\..\..\temp\csr\ta_CDLSHOOTINGSTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLSHOOTINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CDLSHOOTINGSTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLSHOOTINGSTAR.c + +..\..\..\..\..\temp\csr\ta_CDLSHORTLINE.obj: ..\..\..\..\..\src\ta_func\ta_CDLSHORTLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CDLSHORTLINE.obj ..\..\..\..\..\src\ta_func\ta_CDLSHORTLINE.c + +..\..\..\..\..\temp\csr\ta_CDLSPINNINGTOP.obj: ..\..\..\..\..\src\ta_func\ta_CDLSPINNINGTOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CDLSPINNINGTOP.obj ..\..\..\..\..\src\ta_func\ta_CDLSPINNINGTOP.c + +..\..\..\..\..\temp\csr\ta_CDLSTALLEDPATTERN.obj: ..\..\..\..\..\src\ta_func\ta_CDLSTALLEDPATTERN.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CDLSTALLEDPATTERN.obj ..\..\..\..\..\src\ta_func\ta_CDLSTALLEDPATTERN.c + +..\..\..\..\..\temp\csr\ta_CDLSTICKSANDWICH.obj: ..\..\..\..\..\src\ta_func\ta_CDLSTICKSANDWICH.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CDLSTICKSANDWICH.obj ..\..\..\..\..\src\ta_func\ta_CDLSTICKSANDWICH.c + +..\..\..\..\..\temp\csr\ta_CDLTAKURI.obj: ..\..\..\..\..\src\ta_func\ta_CDLTAKURI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CDLTAKURI.obj ..\..\..\..\..\src\ta_func\ta_CDLTAKURI.c + +..\..\..\..\..\temp\csr\ta_CDLTASUKIGAP.obj: ..\..\..\..\..\src\ta_func\ta_CDLTASUKIGAP.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CDLTASUKIGAP.obj ..\..\..\..\..\src\ta_func\ta_CDLTASUKIGAP.c + +..\..\..\..\..\temp\csr\ta_CDLTHRUSTING.obj: ..\..\..\..\..\src\ta_func\ta_CDLTHRUSTING.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CDLTHRUSTING.obj ..\..\..\..\..\src\ta_func\ta_CDLTHRUSTING.c + +..\..\..\..\..\temp\csr\ta_CDLTRISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLTRISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CDLTRISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLTRISTAR.c + +..\..\..\..\..\temp\csr\ta_CDLUNIQUE3RIVER.obj: ..\..\..\..\..\src\ta_func\ta_CDLUNIQUE3RIVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CDLUNIQUE3RIVER.obj ..\..\..\..\..\src\ta_func\ta_CDLUNIQUE3RIVER.c + +..\..\..\..\..\temp\csr\ta_CDLUPSIDEGAP2CROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDLUPSIDEGAP2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CDLUPSIDEGAP2CROWS.obj ..\..\..\..\..\src\ta_func\ta_CDLUPSIDEGAP2CROWS.c + +..\..\..\..\..\temp\csr\ta_CDLXSIDEGAP3METHODS.obj: ..\..\..\..\..\src\ta_func\ta_CDLXSIDEGAP3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CDLXSIDEGAP3METHODS.obj ..\..\..\..\..\src\ta_func\ta_CDLXSIDEGAP3METHODS.c + +..\..\..\..\..\temp\csr\ta_CEIL.obj: ..\..\..\..\..\src\ta_func\ta_CEIL.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CEIL.obj ..\..\..\..\..\src\ta_func\ta_CEIL.c + +..\..\..\..\..\temp\csr\ta_CMO.obj: ..\..\..\..\..\src\ta_func\ta_CMO.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CMO.obj ..\..\..\..\..\src\ta_func\ta_CMO.c + +..\..\..\..\..\temp\csr\ta_CORREL.obj: ..\..\..\..\..\src\ta_func\ta_CORREL.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_CORREL.obj ..\..\..\..\..\src\ta_func\ta_CORREL.c + +..\..\..\..\..\temp\csr\ta_COS.obj: ..\..\..\..\..\src\ta_func\ta_COS.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_COS.obj ..\..\..\..\..\src\ta_func\ta_COS.c + +..\..\..\..\..\temp\csr\ta_COSH.obj: ..\..\..\..\..\src\ta_func\ta_COSH.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_COSH.obj ..\..\..\..\..\src\ta_func\ta_COSH.c + +..\..\..\..\..\temp\csr\ta_DEMA.obj: ..\..\..\..\..\src\ta_func\ta_DEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_DEMA.obj ..\..\..\..\..\src\ta_func\ta_DEMA.c + +..\..\..\..\..\temp\csr\ta_DIV.obj: ..\..\..\..\..\src\ta_func\ta_DIV.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_DIV.obj ..\..\..\..\..\src\ta_func\ta_DIV.c + +..\..\..\..\..\temp\csr\ta_DX.obj: ..\..\..\..\..\src\ta_func\ta_DX.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_DX.obj ..\..\..\..\..\src\ta_func\ta_DX.c + +..\..\..\..\..\temp\csr\ta_EMA.obj: ..\..\..\..\..\src\ta_func\ta_EMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_EMA.obj ..\..\..\..\..\src\ta_func\ta_EMA.c + +..\..\..\..\..\temp\csr\ta_EXP.obj: ..\..\..\..\..\src\ta_func\ta_EXP.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_EXP.obj ..\..\..\..\..\src\ta_func\ta_EXP.c + +..\..\..\..\..\temp\csr\ta_FLOOR.obj: ..\..\..\..\..\src\ta_func\ta_FLOOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_FLOOR.obj ..\..\..\..\..\src\ta_func\ta_FLOOR.c + +..\..\..\..\..\temp\csr\ta_HT_DCPERIOD.obj: ..\..\..\..\..\src\ta_func\ta_HT_DCPERIOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_HT_DCPERIOD.obj ..\..\..\..\..\src\ta_func\ta_HT_DCPERIOD.c + +..\..\..\..\..\temp\csr\ta_HT_DCPHASE.obj: ..\..\..\..\..\src\ta_func\ta_HT_DCPHASE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_HT_DCPHASE.obj ..\..\..\..\..\src\ta_func\ta_HT_DCPHASE.c + +..\..\..\..\..\temp\csr\ta_HT_PHASOR.obj: ..\..\..\..\..\src\ta_func\ta_HT_PHASOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_HT_PHASOR.obj ..\..\..\..\..\src\ta_func\ta_HT_PHASOR.c + +..\..\..\..\..\temp\csr\ta_HT_SINE.obj: ..\..\..\..\..\src\ta_func\ta_HT_SINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_HT_SINE.obj ..\..\..\..\..\src\ta_func\ta_HT_SINE.c + +..\..\..\..\..\temp\csr\ta_HT_TRENDLINE.obj: ..\..\..\..\..\src\ta_func\ta_HT_TRENDLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_HT_TRENDLINE.obj ..\..\..\..\..\src\ta_func\ta_HT_TRENDLINE.c + +..\..\..\..\..\temp\csr\ta_HT_TRENDMODE.obj: ..\..\..\..\..\src\ta_func\ta_HT_TRENDMODE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_HT_TRENDMODE.obj ..\..\..\..\..\src\ta_func\ta_HT_TRENDMODE.c + +..\..\..\..\..\temp\csr\ta_KAMA.obj: ..\..\..\..\..\src\ta_func\ta_KAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_KAMA.obj ..\..\..\..\..\src\ta_func\ta_KAMA.c + +..\..\..\..\..\temp\csr\ta_LINEARREG.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_LINEARREG.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG.c + +..\..\..\..\..\temp\csr\ta_LINEARREG_ANGLE.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG_ANGLE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_LINEARREG_ANGLE.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG_ANGLE.c + +..\..\..\..\..\temp\csr\ta_LINEARREG_INTERCEPT.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG_INTERCEPT.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_LINEARREG_INTERCEPT.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG_INTERCEPT.c + +..\..\..\..\..\temp\csr\ta_LINEARREG_SLOPE.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG_SLOPE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_LINEARREG_SLOPE.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG_SLOPE.c + +..\..\..\..\..\temp\csr\ta_LN.obj: ..\..\..\..\..\src\ta_func\ta_LN.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_LN.obj ..\..\..\..\..\src\ta_func\ta_LN.c + +..\..\..\..\..\temp\csr\ta_LOG10.obj: ..\..\..\..\..\src\ta_func\ta_LOG10.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_LOG10.obj ..\..\..\..\..\src\ta_func\ta_LOG10.c + +..\..\..\..\..\temp\csr\ta_MA.obj: ..\..\..\..\..\src\ta_func\ta_MA.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_MA.obj ..\..\..\..\..\src\ta_func\ta_MA.c + +..\..\..\..\..\temp\csr\ta_MACD.obj: ..\..\..\..\..\src\ta_func\ta_MACD.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_MACD.obj ..\..\..\..\..\src\ta_func\ta_MACD.c + +..\..\..\..\..\temp\csr\ta_MACDEXT.obj: ..\..\..\..\..\src\ta_func\ta_MACDEXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_MACDEXT.obj ..\..\..\..\..\src\ta_func\ta_MACDEXT.c + +..\..\..\..\..\temp\csr\ta_MACDFIX.obj: ..\..\..\..\..\src\ta_func\ta_MACDFIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_MACDFIX.obj ..\..\..\..\..\src\ta_func\ta_MACDFIX.c + +..\..\..\..\..\temp\csr\ta_MAMA.obj: ..\..\..\..\..\src\ta_func\ta_MAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_MAMA.obj ..\..\..\..\..\src\ta_func\ta_MAMA.c + +..\..\..\..\..\temp\csr\ta_MAVP.obj: ..\..\..\..\..\src\ta_func\ta_MAVP.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_MAVP.obj ..\..\..\..\..\src\ta_func\ta_MAVP.c + +..\..\..\..\..\temp\csr\ta_MAX.obj: ..\..\..\..\..\src\ta_func\ta_MAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_MAX.obj ..\..\..\..\..\src\ta_func\ta_MAX.c + +..\..\..\..\..\temp\csr\ta_MAXINDEX.obj: ..\..\..\..\..\src\ta_func\ta_MAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_MAXINDEX.obj ..\..\..\..\..\src\ta_func\ta_MAXINDEX.c + +..\..\..\..\..\temp\csr\ta_MEDPRICE.obj: ..\..\..\..\..\src\ta_func\ta_MEDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_MEDPRICE.obj ..\..\..\..\..\src\ta_func\ta_MEDPRICE.c + +..\..\..\..\..\temp\csr\ta_MFI.obj: ..\..\..\..\..\src\ta_func\ta_MFI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_MFI.obj ..\..\..\..\..\src\ta_func\ta_MFI.c + +..\..\..\..\..\temp\csr\ta_MIDPOINT.obj: ..\..\..\..\..\src\ta_func\ta_MIDPOINT.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_MIDPOINT.obj ..\..\..\..\..\src\ta_func\ta_MIDPOINT.c + +..\..\..\..\..\temp\csr\ta_MIDPRICE.obj: ..\..\..\..\..\src\ta_func\ta_MIDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_MIDPRICE.obj ..\..\..\..\..\src\ta_func\ta_MIDPRICE.c + +..\..\..\..\..\temp\csr\ta_MIN.obj: ..\..\..\..\..\src\ta_func\ta_MIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_MIN.obj ..\..\..\..\..\src\ta_func\ta_MIN.c + +..\..\..\..\..\temp\csr\ta_MININDEX.obj: ..\..\..\..\..\src\ta_func\ta_MININDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_MININDEX.obj ..\..\..\..\..\src\ta_func\ta_MININDEX.c + +..\..\..\..\..\temp\csr\ta_MINMAX.obj: ..\..\..\..\..\src\ta_func\ta_MINMAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_MINMAX.obj ..\..\..\..\..\src\ta_func\ta_MINMAX.c + +..\..\..\..\..\temp\csr\ta_MINMAXINDEX.obj: ..\..\..\..\..\src\ta_func\ta_MINMAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_MINMAXINDEX.obj ..\..\..\..\..\src\ta_func\ta_MINMAXINDEX.c + +..\..\..\..\..\temp\csr\ta_MINUS_DI.obj: ..\..\..\..\..\src\ta_func\ta_MINUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_MINUS_DI.obj ..\..\..\..\..\src\ta_func\ta_MINUS_DI.c + +..\..\..\..\..\temp\csr\ta_MINUS_DM.obj: ..\..\..\..\..\src\ta_func\ta_MINUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_MINUS_DM.obj ..\..\..\..\..\src\ta_func\ta_MINUS_DM.c + +..\..\..\..\..\temp\csr\ta_MOM.obj: ..\..\..\..\..\src\ta_func\ta_MOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_MOM.obj ..\..\..\..\..\src\ta_func\ta_MOM.c + +..\..\..\..\..\temp\csr\ta_MULT.obj: ..\..\..\..\..\src\ta_func\ta_MULT.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_MULT.obj ..\..\..\..\..\src\ta_func\ta_MULT.c + +..\..\..\..\..\temp\csr\ta_NATR.obj: ..\..\..\..\..\src\ta_func\ta_NATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_NATR.obj ..\..\..\..\..\src\ta_func\ta_NATR.c + +..\..\..\..\..\temp\csr\ta_OBV.obj: ..\..\..\..\..\src\ta_func\ta_OBV.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_OBV.obj ..\..\..\..\..\src\ta_func\ta_OBV.c + +..\..\..\..\..\temp\csr\ta_PLUS_DI.obj: ..\..\..\..\..\src\ta_func\ta_PLUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_PLUS_DI.obj ..\..\..\..\..\src\ta_func\ta_PLUS_DI.c + +..\..\..\..\..\temp\csr\ta_PLUS_DM.obj: ..\..\..\..\..\src\ta_func\ta_PLUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_PLUS_DM.obj ..\..\..\..\..\src\ta_func\ta_PLUS_DM.c + +..\..\..\..\..\temp\csr\ta_PPO.obj: ..\..\..\..\..\src\ta_func\ta_PPO.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_PPO.obj ..\..\..\..\..\src\ta_func\ta_PPO.c + +..\..\..\..\..\temp\csr\ta_ROC.obj: ..\..\..\..\..\src\ta_func\ta_ROC.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_ROC.obj ..\..\..\..\..\src\ta_func\ta_ROC.c + +..\..\..\..\..\temp\csr\ta_ROCP.obj: ..\..\..\..\..\src\ta_func\ta_ROCP.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_ROCP.obj ..\..\..\..\..\src\ta_func\ta_ROCP.c + +..\..\..\..\..\temp\csr\ta_ROCR.obj: ..\..\..\..\..\src\ta_func\ta_ROCR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_ROCR.obj ..\..\..\..\..\src\ta_func\ta_ROCR.c + +..\..\..\..\..\temp\csr\ta_ROCR100.obj: ..\..\..\..\..\src\ta_func\ta_ROCR100.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_ROCR100.obj ..\..\..\..\..\src\ta_func\ta_ROCR100.c + +..\..\..\..\..\temp\csr\ta_RSI.obj: ..\..\..\..\..\src\ta_func\ta_RSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_RSI.obj ..\..\..\..\..\src\ta_func\ta_RSI.c + +..\..\..\..\..\temp\csr\ta_SAR.obj: ..\..\..\..\..\src\ta_func\ta_SAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_SAR.obj ..\..\..\..\..\src\ta_func\ta_SAR.c + +..\..\..\..\..\temp\csr\ta_SAREXT.obj: ..\..\..\..\..\src\ta_func\ta_SAREXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_SAREXT.obj ..\..\..\..\..\src\ta_func\ta_SAREXT.c + +..\..\..\..\..\temp\csr\ta_SIN.obj: ..\..\..\..\..\src\ta_func\ta_SIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_SIN.obj ..\..\..\..\..\src\ta_func\ta_SIN.c + +..\..\..\..\..\temp\csr\ta_SINH.obj: ..\..\..\..\..\src\ta_func\ta_SINH.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_SINH.obj ..\..\..\..\..\src\ta_func\ta_SINH.c + +..\..\..\..\..\temp\csr\ta_SMA.obj: ..\..\..\..\..\src\ta_func\ta_SMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_SMA.obj ..\..\..\..\..\src\ta_func\ta_SMA.c + +..\..\..\..\..\temp\csr\ta_SQRT.obj: ..\..\..\..\..\src\ta_func\ta_SQRT.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_SQRT.obj ..\..\..\..\..\src\ta_func\ta_SQRT.c + +..\..\..\..\..\temp\csr\ta_STDDEV.obj: ..\..\..\..\..\src\ta_func\ta_STDDEV.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_STDDEV.obj ..\..\..\..\..\src\ta_func\ta_STDDEV.c + +..\..\..\..\..\temp\csr\ta_STOCH.obj: ..\..\..\..\..\src\ta_func\ta_STOCH.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_STOCH.obj ..\..\..\..\..\src\ta_func\ta_STOCH.c + +..\..\..\..\..\temp\csr\ta_STOCHF.obj: ..\..\..\..\..\src\ta_func\ta_STOCHF.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_STOCHF.obj ..\..\..\..\..\src\ta_func\ta_STOCHF.c + +..\..\..\..\..\temp\csr\ta_STOCHRSI.obj: ..\..\..\..\..\src\ta_func\ta_STOCHRSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_STOCHRSI.obj ..\..\..\..\..\src\ta_func\ta_STOCHRSI.c + +..\..\..\..\..\temp\csr\ta_SUB.obj: ..\..\..\..\..\src\ta_func\ta_SUB.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_SUB.obj ..\..\..\..\..\src\ta_func\ta_SUB.c + +..\..\..\..\..\temp\csr\ta_SUM.obj: ..\..\..\..\..\src\ta_func\ta_SUM.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_SUM.obj ..\..\..\..\..\src\ta_func\ta_SUM.c + +..\..\..\..\..\temp\csr\ta_T3.obj: ..\..\..\..\..\src\ta_func\ta_T3.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_T3.obj ..\..\..\..\..\src\ta_func\ta_T3.c + +..\..\..\..\..\temp\csr\ta_TAN.obj: ..\..\..\..\..\src\ta_func\ta_TAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_TAN.obj ..\..\..\..\..\src\ta_func\ta_TAN.c + +..\..\..\..\..\temp\csr\ta_TANH.obj: ..\..\..\..\..\src\ta_func\ta_TANH.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_TANH.obj ..\..\..\..\..\src\ta_func\ta_TANH.c + +..\..\..\..\..\temp\csr\ta_TEMA.obj: ..\..\..\..\..\src\ta_func\ta_TEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_TEMA.obj ..\..\..\..\..\src\ta_func\ta_TEMA.c + +..\..\..\..\..\temp\csr\ta_TRANGE.obj: ..\..\..\..\..\src\ta_func\ta_TRANGE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_TRANGE.obj ..\..\..\..\..\src\ta_func\ta_TRANGE.c + +..\..\..\..\..\temp\csr\ta_TRIMA.obj: ..\..\..\..\..\src\ta_func\ta_TRIMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_TRIMA.obj ..\..\..\..\..\src\ta_func\ta_TRIMA.c + +..\..\..\..\..\temp\csr\ta_TRIX.obj: ..\..\..\..\..\src\ta_func\ta_TRIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_TRIX.obj ..\..\..\..\..\src\ta_func\ta_TRIX.c + +..\..\..\..\..\temp\csr\ta_TSF.obj: ..\..\..\..\..\src\ta_func\ta_TSF.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_TSF.obj ..\..\..\..\..\src\ta_func\ta_TSF.c + +..\..\..\..\..\temp\csr\ta_TYPPRICE.obj: ..\..\..\..\..\src\ta_func\ta_TYPPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_TYPPRICE.obj ..\..\..\..\..\src\ta_func\ta_TYPPRICE.c + +..\..\..\..\..\temp\csr\ta_ULTOSC.obj: ..\..\..\..\..\src\ta_func\ta_ULTOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_ULTOSC.obj ..\..\..\..\..\src\ta_func\ta_ULTOSC.c + +..\..\..\..\..\temp\csr\ta_VAR.obj: ..\..\..\..\..\src\ta_func\ta_VAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_VAR.obj ..\..\..\..\..\src\ta_func\ta_VAR.c + +..\..\..\..\..\temp\csr\ta_WCLPRICE.obj: ..\..\..\..\..\src\ta_func\ta_WCLPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_WCLPRICE.obj ..\..\..\..\..\src\ta_func\ta_WCLPRICE.c + +..\..\..\..\..\temp\csr\ta_WILLR.obj: ..\..\..\..\..\src\ta_func\ta_WILLR.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_WILLR.obj ..\..\..\..\..\src\ta_func\ta_WILLR.c + +..\..\..\..\..\temp\csr\ta_WMA.obj: ..\..\..\..\..\src\ta_func\ta_WMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_WMA.obj ..\..\..\..\..\src\ta_func\ta_WMA.c + diff --git a/make/csr/win32/msvc/ta_regtest/Makefile b/make/csr/win32/msvc/ta_regtest/Makefile new file mode 100644 index 000000000..7a6a3a807 --- /dev/null +++ b/make/csr/win32/msvc/ta_regtest/Makefile @@ -0,0 +1,236 @@ +############################################################################# +# Makefile for building ta_regtest +# Generated by tmake; +# Project: ta_regtest/ta_regtest +# Template: app +############################################################################# + +####### Compiler, tools and options + +CC = cl +CXX = cl +CFLAGS = -nologo -W3 -O2 -DTA_SINGLE_THREAD -DWIN32 -D_MBCS -D_LIB +CXXFLAGS= -nologo -W3 -O2 -DTA_SINGLE_THREAD -DWIN32 -D_MBCS -D_LIB +INCPATH = -I"..\..\..\..\..\src\ta_common" -I"..\..\..\..\..\src\tools\ta_regtest" -I"..\..\..\..\..\src\ta_func" -I"..\..\..\..\..\include" +LINK = link +LFLAGS = /NOLOGO /SUBSYSTEM:console +LIBS = ..\..\..\..\..\lib\ta_libc_csr.lib +MOC = moc +UIC = uic + +ZIP = zip -r -9 + +####### Files + +HEADERS = +SOURCES = ..\..\..\..\..\src\tools\ta_regtest\ta_regtest.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_candlestick.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_1in_1out.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_1in_2out.c \ + ..\..\..\..\..\src\tools\ta_regtest\test_internals.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_adx.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_bbands.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_ma.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_macd.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_minmax.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_mom.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_ema.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hl.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hlc.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hlcv.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_ohlc.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_po.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_rsi.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_sar.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_stddev.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_stoch.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_trange.c \ + ..\..\..\..\..\src\tools\ta_regtest\test_util.c \ + ..\..\..\..\..\src\tools\ta_regtest\test_data.c \ + ..\..\..\..\..\src\tools\ta_regtest\test_abstract.c +OBJECTS = ..\..\..\..\..\temp\csr\ta_regtest.obj \ + ..\..\..\..\..\temp\csr\test_candlestick.obj \ + ..\..\..\..\..\temp\csr\test_1in_1out.obj \ + ..\..\..\..\..\temp\csr\test_1in_2out.obj \ + ..\..\..\..\..\temp\csr\test_internals.obj \ + ..\..\..\..\..\temp\csr\test_adx.obj \ + ..\..\..\..\..\temp\csr\test_bbands.obj \ + ..\..\..\..\..\temp\csr\test_ma.obj \ + ..\..\..\..\..\temp\csr\test_macd.obj \ + ..\..\..\..\..\temp\csr\test_minmax.obj \ + ..\..\..\..\..\temp\csr\test_mom.obj \ + ..\..\..\..\..\temp\csr\test_per_ema.obj \ + ..\..\..\..\..\temp\csr\test_per_hl.obj \ + ..\..\..\..\..\temp\csr\test_per_hlc.obj \ + ..\..\..\..\..\temp\csr\test_per_hlcv.obj \ + ..\..\..\..\..\temp\csr\test_per_ohlc.obj \ + ..\..\..\..\..\temp\csr\test_po.obj \ + ..\..\..\..\..\temp\csr\test_rsi.obj \ + ..\..\..\..\..\temp\csr\test_sar.obj \ + ..\..\..\..\..\temp\csr\test_stddev.obj \ + ..\..\..\..\..\temp\csr\test_stoch.obj \ + ..\..\..\..\..\temp\csr\test_trange.obj \ + ..\..\..\..\..\temp\csr\test_util.obj \ + ..\..\..\..\..\temp\csr\test_data.obj \ + ..\..\..\..\..\temp\csr\test_abstract.obj +INTERFACES = +UICDECLS = +UICIMPLS = +SRCMOC = +OBJMOC = +DIST = +TARGET = ..\..\..\..\..\bin\ta_regtest.exe +INTERFACE_DECL_PATH = . + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .c + +.cpp.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $< + +.cxx.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $< + +.cc.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $< + +.c.obj: + $(CC) -c $(CFLAGS) $(INCPATH) -Fo$@ $< + +####### Build rules + +all: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) + $(LINK) $(LFLAGS) /OUT:$(TARGET) @<< + $(OBJECTS) $(OBJMOC) $(LIBS) +<< + +moc: $(SRCMOC) + +tmake: ../csr/win32/msvc/ta_regtest/Makefile + +../csr/win32/msvc/ta_regtest/Makefile: ta_regtest/ta_regtest.pro + tmake ta_regtest/ta_regtest.pro -o ../csr/win32/msvc/ta_regtest/Makefile + +dist: + $(ZIP) ta_regtest/ta_regtest.zip ta_regtest/ta_regtest.pro $(SOURCES) $(HEADERS) $(DIST) $(INTERFACES) + +clean: + -del ..\..\..\..\..\temp\csr\ta_regtest.obj + -del ..\..\..\..\..\temp\csr\test_candlestick.obj + -del ..\..\..\..\..\temp\csr\test_1in_1out.obj + -del ..\..\..\..\..\temp\csr\test_1in_2out.obj + -del ..\..\..\..\..\temp\csr\test_internals.obj + -del ..\..\..\..\..\temp\csr\test_adx.obj + -del ..\..\..\..\..\temp\csr\test_bbands.obj + -del ..\..\..\..\..\temp\csr\test_ma.obj + -del ..\..\..\..\..\temp\csr\test_macd.obj + -del ..\..\..\..\..\temp\csr\test_minmax.obj + -del ..\..\..\..\..\temp\csr\test_mom.obj + -del ..\..\..\..\..\temp\csr\test_per_ema.obj + -del ..\..\..\..\..\temp\csr\test_per_hl.obj + -del ..\..\..\..\..\temp\csr\test_per_hlc.obj + -del ..\..\..\..\..\temp\csr\test_per_hlcv.obj + -del ..\..\..\..\..\temp\csr\test_per_ohlc.obj + -del ..\..\..\..\..\temp\csr\test_po.obj + -del ..\..\..\..\..\temp\csr\test_rsi.obj + -del ..\..\..\..\..\temp\csr\test_sar.obj + -del ..\..\..\..\..\temp\csr\test_stddev.obj + -del ..\..\..\..\..\temp\csr\test_stoch.obj + -del ..\..\..\..\..\temp\csr\test_trange.obj + -del ..\..\..\..\..\temp\csr\test_util.obj + -del ..\..\..\..\..\temp\csr\test_data.obj + -del ..\..\..\..\..\temp\csr\test_abstract.obj + -del $(TARGET) + -del ../../../../../bin/*.map + -del ../../../../../bin/*._xe + -del ../../../../../bin/*.tds + -del ../../../../../bin/*.pdb + -del ../../../../../bin/*.pbo + -del ../../../../../bin/*.pbi + -del ../../../../../bin/*.pbt + -del ../../../../../temp/csr/*.pch + -del ../../../../../temp/csr/*.idb + -del ../../../../../temp/csr/ta_regtest/*.pch + -del ../../../../../temp/csr/ta_regtest/*.idb + -del ../../../../../temp/csr/ta_regtest/*.obj + +####### Compile + +..\..\..\..\..\temp\csr\ta_regtest.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_regtest.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\ta_regtest.obj ..\..\..\..\..\src\tools\ta_regtest\ta_regtest.c + +..\..\..\..\..\temp\csr\test_candlestick.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_candlestick.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\test_candlestick.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_candlestick.c + +..\..\..\..\..\temp\csr\test_1in_1out.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_1in_1out.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\test_1in_1out.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_1in_1out.c + +..\..\..\..\..\temp\csr\test_1in_2out.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_1in_2out.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\test_1in_2out.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_1in_2out.c + +..\..\..\..\..\temp\csr\test_internals.obj: ..\..\..\..\..\src\tools\ta_regtest\test_internals.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\test_internals.obj ..\..\..\..\..\src\tools\ta_regtest\test_internals.c + +..\..\..\..\..\temp\csr\test_adx.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_adx.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\test_adx.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_adx.c + +..\..\..\..\..\temp\csr\test_bbands.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_bbands.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\test_bbands.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_bbands.c + +..\..\..\..\..\temp\csr\test_ma.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_ma.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\test_ma.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_ma.c + +..\..\..\..\..\temp\csr\test_macd.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_macd.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\test_macd.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_macd.c + +..\..\..\..\..\temp\csr\test_minmax.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_minmax.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\test_minmax.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_minmax.c + +..\..\..\..\..\temp\csr\test_mom.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_mom.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\test_mom.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_mom.c + +..\..\..\..\..\temp\csr\test_per_ema.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_ema.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\test_per_ema.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_ema.c + +..\..\..\..\..\temp\csr\test_per_hl.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hl.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\test_per_hl.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hl.c + +..\..\..\..\..\temp\csr\test_per_hlc.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hlc.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\test_per_hlc.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hlc.c + +..\..\..\..\..\temp\csr\test_per_hlcv.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hlcv.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\test_per_hlcv.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hlcv.c + +..\..\..\..\..\temp\csr\test_per_ohlc.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_ohlc.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\test_per_ohlc.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_ohlc.c + +..\..\..\..\..\temp\csr\test_po.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_po.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\test_po.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_po.c + +..\..\..\..\..\temp\csr\test_rsi.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_rsi.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\test_rsi.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_rsi.c + +..\..\..\..\..\temp\csr\test_sar.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_sar.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\test_sar.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_sar.c + +..\..\..\..\..\temp\csr\test_stddev.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_stddev.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\test_stddev.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_stddev.c + +..\..\..\..\..\temp\csr\test_stoch.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_stoch.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\test_stoch.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_stoch.c + +..\..\..\..\..\temp\csr\test_trange.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_trange.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\test_trange.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_trange.c + +..\..\..\..\..\temp\csr\test_util.obj: ..\..\..\..\..\src\tools\ta_regtest\test_util.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\test_util.obj ..\..\..\..\..\src\tools\ta_regtest\test_util.c + +..\..\..\..\..\temp\csr\test_data.obj: ..\..\..\..\..\src\tools\ta_regtest\test_data.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\test_data.obj ..\..\..\..\..\src\tools\ta_regtest\test_data.c + +..\..\..\..\..\temp\csr\test_abstract.obj: ..\..\..\..\..\src\tools\ta_regtest\test_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -Fo..\..\..\..\..\temp\csr\test_abstract.obj ..\..\..\..\..\src\tools\ta_regtest\test_abstract.c + diff --git a/make/csr/win32/symantec/Makefile b/make/csr/win32/symantec/Makefile new file mode 100644 index 000000000..822ae48c4 --- /dev/null +++ b/make/csr/win32/symantec/Makefile @@ -0,0 +1,97 @@ +############################################################################# +# Makefile for building targets in sub directories. +# Generated by tmake; +# Project: rootmake +# Template: subdirs +############################################################################# + +MAKEFILE= Makefile +TMAKE = tmake + +SUBDIRS = ta_common \ + ta_func \ + ta_abstract \ + ta_libc \ + gen_code \ + ta_regtest + +all: $(SUBDIRS) + +ta_common: FORCE + cd ta_common + $(MAKE) + @cd .. + +ta_func: FORCE + cd ta_func + $(MAKE) + @cd .. + +ta_abstract: FORCE + cd ta_abstract + $(MAKE) + @cd .. + +ta_libc: FORCE + cd ta_libc + $(MAKE) + @cd .. + +gen_code: FORCE + cd gen_code + $(MAKE) + @cd .. + +ta_regtest: FORCE + cd ta_regtest + $(MAKE) + @cd .. + + +tmake: ../csr/win32/symantec/Makefile + +../csr/win32/symantec/Makefile: rootmake.pro + tmake rootmake.pro -o ../csr/win32/symantec/Makefile + +tmake_all: + cd ta_common + $(TMAKE) ta_common.pro -o $(MAKEFILE) + @cd .. + cd ta_func + $(TMAKE) ta_func.pro -o $(MAKEFILE) + @cd .. + cd ta_abstract + $(TMAKE) ta_abstract.pro -o $(MAKEFILE) + @cd .. + cd ta_libc + $(TMAKE) ta_libc.pro -o $(MAKEFILE) + @cd .. + cd gen_code + $(TMAKE) gen_code.pro -o $(MAKEFILE) + @cd .. + cd ta_regtest + $(TMAKE) ta_regtest.pro -o $(MAKEFILE) + @cd .. + + +clean: + cd ta_common + $(MAKE) clean + @cd .. + cd ta_func + $(MAKE) clean + @cd .. + cd ta_abstract + $(MAKE) clean + @cd .. + cd ta_libc + $(MAKE) clean + @cd .. + cd gen_code + $(MAKE) clean + @cd .. + cd ta_regtest + $(MAKE) clean + @cd .. + +FORCE: diff --git a/make/csr/win32/symantec/gen_code/Makefile b/make/csr/win32/symantec/gen_code/Makefile new file mode 100644 index 000000000..f5089cc63 --- /dev/null +++ b/make/csr/win32/symantec/gen_code/Makefile @@ -0,0 +1,253 @@ +############################################################################# +# Makefile for building gen_code +# Generated by tmake; +# Project: gen_code/gen_code +# Template: app +############################################################################# + +####### Compiler, tools and options + +CC = sc +CXX = sc +CFLAGS = -mn -w2 -o -DTA_GEN_CODE -DTA_SINGLE_THREAD -DWIN32 +CXXFLAGS= -mn -w2 -o -DTA_GEN_CODE -DTA_SINGLE_THREAD -DWIN32 +INCPATH = -I"..\..\..\..\..\include" -I"..\..\..\..\..\src\ta_common" -I"..\..\..\..\..\src\ta_abstract" -I"..\..\..\..\..\src\ta_abstract\tables" -I"..\..\..\..\..\src\ta_abstract\frames" +LINK = link +LFLAGS = /NOLOGO /NOI /SUBSYSTEM:console +LIBS = ..\..\..\..\..\lib\ta_common_csr.lib +MOC = moc + +ZIP = zip -r -9 + +####### Files + +HEADERS = +SOURCES = ..\..\..\..\..\src\tools\gen_code\gen_code.c \ + ..\..\..\..\..\src\ta_abstract\ta_abstract.c \ + ..\..\..\..\..\src\ta_abstract\ta_def_ui.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_a.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_b.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_c.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_d.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_e.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_f.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_g.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_h.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_i.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_j.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_k.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_l.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_m.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_n.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_o.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_p.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_q.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_r.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_s.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_t.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_u.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_v.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_w.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_x.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_y.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_z.c +OBJECTS = ..\..\..\..\..\temp\csr\gen_code\gen_code.obj \ + ..\..\..\..\..\temp\csr\gen_code\ta_abstract.obj \ + ..\..\..\..\..\temp\csr\gen_code\ta_def_ui.obj \ + ..\..\..\..\..\temp\csr\gen_code\table_a.obj \ + ..\..\..\..\..\temp\csr\gen_code\table_b.obj \ + ..\..\..\..\..\temp\csr\gen_code\table_c.obj \ + ..\..\..\..\..\temp\csr\gen_code\table_d.obj \ + ..\..\..\..\..\temp\csr\gen_code\table_e.obj \ + ..\..\..\..\..\temp\csr\gen_code\table_f.obj \ + ..\..\..\..\..\temp\csr\gen_code\table_g.obj \ + ..\..\..\..\..\temp\csr\gen_code\table_h.obj \ + ..\..\..\..\..\temp\csr\gen_code\table_i.obj \ + ..\..\..\..\..\temp\csr\gen_code\table_j.obj \ + ..\..\..\..\..\temp\csr\gen_code\table_k.obj \ + ..\..\..\..\..\temp\csr\gen_code\table_l.obj \ + ..\..\..\..\..\temp\csr\gen_code\table_m.obj \ + ..\..\..\..\..\temp\csr\gen_code\table_n.obj \ + ..\..\..\..\..\temp\csr\gen_code\table_o.obj \ + ..\..\..\..\..\temp\csr\gen_code\table_p.obj \ + ..\..\..\..\..\temp\csr\gen_code\table_q.obj \ + ..\..\..\..\..\temp\csr\gen_code\table_r.obj \ + ..\..\..\..\..\temp\csr\gen_code\table_s.obj \ + ..\..\..\..\..\temp\csr\gen_code\table_t.obj \ + ..\..\..\..\..\temp\csr\gen_code\table_u.obj \ + ..\..\..\..\..\temp\csr\gen_code\table_v.obj \ + ..\..\..\..\..\temp\csr\gen_code\table_w.obj \ + ..\..\..\..\..\temp\csr\gen_code\table_x.obj \ + ..\..\..\..\..\temp\csr\gen_code\table_y.obj \ + ..\..\..\..\..\temp\csr\gen_code\table_z.obj +SRCMOC = +OBJMOC = +DIST = +TARGET = ..\..\..\..\..\bin\gen_code.exe + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .c + +.cpp.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.cxx.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.cc.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.c.obj: + $(CC) -c $(CFLAGS) $(INCPATH) -o$@ $< + +####### Build rules + +all: $(TARGET) + +$(TARGET): $(OBJECTS) $(OBJMOC) + $(LINK) $(LFLAGS) $(OBJECTS) $(OBJMOC), $(TARGET),, $(LIBS) + +moc: $(SRCMOC) + +tmake: ../csr/win32/symantec/gen_code/Makefile + +../csr/win32/symantec/gen_code/Makefile: gen_code/gen_code.pro + tmake gen_code/gen_code.pro -o ../csr/win32/symantec/gen_code/Makefile + +dist: + $(ZIP) gen_code/gen_code.zip gen_code/gen_code.pro $(SOURCES) $(HEADERS) $(DIST) + +clean: + -del ..\..\..\..\..\temp\csr\gen_code\gen_code.obj + -del ..\..\..\..\..\temp\csr\gen_code\ta_abstract.obj + -del ..\..\..\..\..\temp\csr\gen_code\ta_def_ui.obj + -del ..\..\..\..\..\temp\csr\gen_code\table_a.obj + -del ..\..\..\..\..\temp\csr\gen_code\table_b.obj + -del ..\..\..\..\..\temp\csr\gen_code\table_c.obj + -del ..\..\..\..\..\temp\csr\gen_code\table_d.obj + -del ..\..\..\..\..\temp\csr\gen_code\table_e.obj + -del ..\..\..\..\..\temp\csr\gen_code\table_f.obj + -del ..\..\..\..\..\temp\csr\gen_code\table_g.obj + -del ..\..\..\..\..\temp\csr\gen_code\table_h.obj + -del ..\..\..\..\..\temp\csr\gen_code\table_i.obj + -del ..\..\..\..\..\temp\csr\gen_code\table_j.obj + -del ..\..\..\..\..\temp\csr\gen_code\table_k.obj + -del ..\..\..\..\..\temp\csr\gen_code\table_l.obj + -del ..\..\..\..\..\temp\csr\gen_code\table_m.obj + -del ..\..\..\..\..\temp\csr\gen_code\table_n.obj + -del ..\..\..\..\..\temp\csr\gen_code\table_o.obj + -del ..\..\..\..\..\temp\csr\gen_code\table_p.obj + -del ..\..\..\..\..\temp\csr\gen_code\table_q.obj + -del ..\..\..\..\..\temp\csr\gen_code\table_r.obj + -del ..\..\..\..\..\temp\csr\gen_code\table_s.obj + -del ..\..\..\..\..\temp\csr\gen_code\table_t.obj + -del ..\..\..\..\..\temp\csr\gen_code\table_u.obj + -del ..\..\..\..\..\temp\csr\gen_code\table_v.obj + -del ..\..\..\..\..\temp\csr\gen_code\table_w.obj + -del ..\..\..\..\..\temp\csr\gen_code\table_x.obj + -del ..\..\..\..\..\temp\csr\gen_code\table_y.obj + -del ..\..\..\..\..\temp\csr\gen_code\table_z.obj + -del $(TARGET) + -del ../../../../../bin/*.map + -del ../../../../../bin/*._xe + -del ../../../../../bin/*.tds + -del ../../../../../bin/*.pdb + -del ../../../../../bin/*.pbo + -del ../../../../../bin/*.pbi + -del ../../../../../bin/*.pbt + -del ../../../../../temp/csr/*.pch + -del ../../../../../temp/csr/*.idb + -del ../../../../../temp/csr/gen_code/*.pch + -del ../../../../../temp/csr/gen_code/*.idb + -del ../../../../../temp/csr/gen_code/*.obj + +####### Compile + +..\..\..\..\..\temp\csr\gen_code\gen_code.obj: ..\..\..\..\..\src\tools\gen_code\gen_code.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\gen_code\gen_code.obj ..\..\..\..\..\src\tools\gen_code\gen_code.c + +..\..\..\..\..\temp\csr\gen_code\ta_abstract.obj: ..\..\..\..\..\src\ta_abstract\ta_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\gen_code\ta_abstract.obj ..\..\..\..\..\src\ta_abstract\ta_abstract.c + +..\..\..\..\..\temp\csr\gen_code\ta_def_ui.obj: ..\..\..\..\..\src\ta_abstract\ta_def_ui.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\gen_code\ta_def_ui.obj ..\..\..\..\..\src\ta_abstract\ta_def_ui.c + +..\..\..\..\..\temp\csr\gen_code\table_a.obj: ..\..\..\..\..\src\ta_abstract\tables\table_a.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\gen_code\table_a.obj ..\..\..\..\..\src\ta_abstract\tables\table_a.c + +..\..\..\..\..\temp\csr\gen_code\table_b.obj: ..\..\..\..\..\src\ta_abstract\tables\table_b.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\gen_code\table_b.obj ..\..\..\..\..\src\ta_abstract\tables\table_b.c + +..\..\..\..\..\temp\csr\gen_code\table_c.obj: ..\..\..\..\..\src\ta_abstract\tables\table_c.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\gen_code\table_c.obj ..\..\..\..\..\src\ta_abstract\tables\table_c.c + +..\..\..\..\..\temp\csr\gen_code\table_d.obj: ..\..\..\..\..\src\ta_abstract\tables\table_d.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\gen_code\table_d.obj ..\..\..\..\..\src\ta_abstract\tables\table_d.c + +..\..\..\..\..\temp\csr\gen_code\table_e.obj: ..\..\..\..\..\src\ta_abstract\tables\table_e.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\gen_code\table_e.obj ..\..\..\..\..\src\ta_abstract\tables\table_e.c + +..\..\..\..\..\temp\csr\gen_code\table_f.obj: ..\..\..\..\..\src\ta_abstract\tables\table_f.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\gen_code\table_f.obj ..\..\..\..\..\src\ta_abstract\tables\table_f.c + +..\..\..\..\..\temp\csr\gen_code\table_g.obj: ..\..\..\..\..\src\ta_abstract\tables\table_g.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\gen_code\table_g.obj ..\..\..\..\..\src\ta_abstract\tables\table_g.c + +..\..\..\..\..\temp\csr\gen_code\table_h.obj: ..\..\..\..\..\src\ta_abstract\tables\table_h.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\gen_code\table_h.obj ..\..\..\..\..\src\ta_abstract\tables\table_h.c + +..\..\..\..\..\temp\csr\gen_code\table_i.obj: ..\..\..\..\..\src\ta_abstract\tables\table_i.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\gen_code\table_i.obj ..\..\..\..\..\src\ta_abstract\tables\table_i.c + +..\..\..\..\..\temp\csr\gen_code\table_j.obj: ..\..\..\..\..\src\ta_abstract\tables\table_j.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\gen_code\table_j.obj ..\..\..\..\..\src\ta_abstract\tables\table_j.c + +..\..\..\..\..\temp\csr\gen_code\table_k.obj: ..\..\..\..\..\src\ta_abstract\tables\table_k.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\gen_code\table_k.obj ..\..\..\..\..\src\ta_abstract\tables\table_k.c + +..\..\..\..\..\temp\csr\gen_code\table_l.obj: ..\..\..\..\..\src\ta_abstract\tables\table_l.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\gen_code\table_l.obj ..\..\..\..\..\src\ta_abstract\tables\table_l.c + +..\..\..\..\..\temp\csr\gen_code\table_m.obj: ..\..\..\..\..\src\ta_abstract\tables\table_m.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\gen_code\table_m.obj ..\..\..\..\..\src\ta_abstract\tables\table_m.c + +..\..\..\..\..\temp\csr\gen_code\table_n.obj: ..\..\..\..\..\src\ta_abstract\tables\table_n.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\gen_code\table_n.obj ..\..\..\..\..\src\ta_abstract\tables\table_n.c + +..\..\..\..\..\temp\csr\gen_code\table_o.obj: ..\..\..\..\..\src\ta_abstract\tables\table_o.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\gen_code\table_o.obj ..\..\..\..\..\src\ta_abstract\tables\table_o.c + +..\..\..\..\..\temp\csr\gen_code\table_p.obj: ..\..\..\..\..\src\ta_abstract\tables\table_p.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\gen_code\table_p.obj ..\..\..\..\..\src\ta_abstract\tables\table_p.c + +..\..\..\..\..\temp\csr\gen_code\table_q.obj: ..\..\..\..\..\src\ta_abstract\tables\table_q.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\gen_code\table_q.obj ..\..\..\..\..\src\ta_abstract\tables\table_q.c + +..\..\..\..\..\temp\csr\gen_code\table_r.obj: ..\..\..\..\..\src\ta_abstract\tables\table_r.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\gen_code\table_r.obj ..\..\..\..\..\src\ta_abstract\tables\table_r.c + +..\..\..\..\..\temp\csr\gen_code\table_s.obj: ..\..\..\..\..\src\ta_abstract\tables\table_s.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\gen_code\table_s.obj ..\..\..\..\..\src\ta_abstract\tables\table_s.c + +..\..\..\..\..\temp\csr\gen_code\table_t.obj: ..\..\..\..\..\src\ta_abstract\tables\table_t.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\gen_code\table_t.obj ..\..\..\..\..\src\ta_abstract\tables\table_t.c + +..\..\..\..\..\temp\csr\gen_code\table_u.obj: ..\..\..\..\..\src\ta_abstract\tables\table_u.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\gen_code\table_u.obj ..\..\..\..\..\src\ta_abstract\tables\table_u.c + +..\..\..\..\..\temp\csr\gen_code\table_v.obj: ..\..\..\..\..\src\ta_abstract\tables\table_v.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\gen_code\table_v.obj ..\..\..\..\..\src\ta_abstract\tables\table_v.c + +..\..\..\..\..\temp\csr\gen_code\table_w.obj: ..\..\..\..\..\src\ta_abstract\tables\table_w.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\gen_code\table_w.obj ..\..\..\..\..\src\ta_abstract\tables\table_w.c + +..\..\..\..\..\temp\csr\gen_code\table_x.obj: ..\..\..\..\..\src\ta_abstract\tables\table_x.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\gen_code\table_x.obj ..\..\..\..\..\src\ta_abstract\tables\table_x.c + +..\..\..\..\..\temp\csr\gen_code\table_y.obj: ..\..\..\..\..\src\ta_abstract\tables\table_y.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\gen_code\table_y.obj ..\..\..\..\..\src\ta_abstract\tables\table_y.c + +..\..\..\..\..\temp\csr\gen_code\table_z.obj: ..\..\..\..\..\src\ta_abstract\tables\table_z.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\gen_code\table_z.obj ..\..\..\..\..\src\ta_abstract\tables\table_z.c + diff --git a/make/csr/win32/symantec/ta_abstract/Makefile b/make/csr/win32/symantec/ta_abstract/Makefile new file mode 100644 index 000000000..947c811ba --- /dev/null +++ b/make/csr/win32/symantec/ta_abstract/Makefile @@ -0,0 +1,295 @@ +############################################################################# +# Makefile for building ta_abstract_csr +# Generated by tmake; +# Project: ta_abstract/ta_abstract +# Template: lib +############################################################################# + +####### Compiler, tools and options + +CC = sc +CXX = sc +CFLAGS = -mn -w2 -o -DTA_SINGLE_THREAD -DWIN32 +CXXFLAGS= -mn -w2 -o -DTA_SINGLE_THREAD -DWIN32 +INCPATH = -I"..\..\..\..\..\src\ta_common" -I"..\..\..\..\..\src\ta_abstract" -I"..\..\..\..\..\src\ta_abstract\tables" -I"..\..\..\..\..\src\ta_abstract\frames" -I"..\..\..\..\..\include" +LIB = lib /C /N /NOI /P:32 +MOC = moc + +ZIP = zip -r -9 + +####### Files + +HEADERS = +SOURCES = ..\..\..\..\..\src\ta_abstract\ta_abstract.c \ + ..\..\..\..\..\src\ta_abstract\ta_def_ui.c \ + ..\..\..\..\..\src\ta_abstract\ta_func_api.c \ + ..\..\..\..\..\src\ta_abstract\ta_group_idx.c \ + ..\..\..\..\..\src\ta_abstract\frames\ta_frame.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_a.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_b.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_c.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_d.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_e.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_f.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_g.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_h.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_i.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_j.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_k.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_l.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_m.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_n.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_o.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_p.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_q.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_r.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_s.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_t.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_u.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_v.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_w.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_x.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_y.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_z.c +OBJECTS = ..\..\..\..\..\temp\csr\ta_abstract.obj \ + ..\..\..\..\..\temp\csr\ta_def_ui.obj \ + ..\..\..\..\..\temp\csr\ta_func_api.obj \ + ..\..\..\..\..\temp\csr\ta_group_idx.obj \ + ..\..\..\..\..\temp\csr\ta_frame.obj \ + ..\..\..\..\..\temp\csr\table_a.obj \ + ..\..\..\..\..\temp\csr\table_b.obj \ + ..\..\..\..\..\temp\csr\table_c.obj \ + ..\..\..\..\..\temp\csr\table_d.obj \ + ..\..\..\..\..\temp\csr\table_e.obj \ + ..\..\..\..\..\temp\csr\table_f.obj \ + ..\..\..\..\..\temp\csr\table_g.obj \ + ..\..\..\..\..\temp\csr\table_h.obj \ + ..\..\..\..\..\temp\csr\table_i.obj \ + ..\..\..\..\..\temp\csr\table_j.obj \ + ..\..\..\..\..\temp\csr\table_k.obj \ + ..\..\..\..\..\temp\csr\table_l.obj \ + ..\..\..\..\..\temp\csr\table_m.obj \ + ..\..\..\..\..\temp\csr\table_n.obj \ + ..\..\..\..\..\temp\csr\table_o.obj \ + ..\..\..\..\..\temp\csr\table_p.obj \ + ..\..\..\..\..\temp\csr\table_q.obj \ + ..\..\..\..\..\temp\csr\table_r.obj \ + ..\..\..\..\..\temp\csr\table_s.obj \ + ..\..\..\..\..\temp\csr\table_t.obj \ + ..\..\..\..\..\temp\csr\table_u.obj \ + ..\..\..\..\..\temp\csr\table_v.obj \ + ..\..\..\..\..\temp\csr\table_w.obj \ + ..\..\..\..\..\temp\csr\table_x.obj \ + ..\..\..\..\..\temp\csr\table_y.obj \ + ..\..\..\..\..\temp\csr\table_z.obj +SRCMOC = +OBJMOC = +DIST = +TARGET = ..\..\..\..\..\lib\ta_abstract_csr.lib + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .c + +.cpp.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.cxx.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.cc.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.c.obj: + $(CC) -c $(CFLAGS) $(INCPATH) -o$@ $< + +####### Build rules + +all: $(TARGET) + +$(TARGET): $(OBJECTS) $(OBJMOC) + -del $(TARGET) + $(LIB) $(TARGET) ..\..\..\..\..\temp\csr\ta_abstract.obj \ ++..\..\..\..\..\temp\csr\ta_def_ui.obj \ ++..\..\..\..\..\temp\csr\ta_func_api.obj \ ++..\..\..\..\..\temp\csr\ta_group_idx.obj \ ++..\..\..\..\..\temp\csr\ta_frame.obj \ ++..\..\..\..\..\temp\csr\table_a.obj \ ++..\..\..\..\..\temp\csr\table_b.obj \ ++..\..\..\..\..\temp\csr\table_c.obj \ ++..\..\..\..\..\temp\csr\table_d.obj \ ++..\..\..\..\..\temp\csr\table_e.obj \ ++..\..\..\..\..\temp\csr\table_f.obj \ ++..\..\..\..\..\temp\csr\table_g.obj \ ++..\..\..\..\..\temp\csr\table_h.obj \ ++..\..\..\..\..\temp\csr\table_i.obj \ ++..\..\..\..\..\temp\csr\table_j.obj \ ++..\..\..\..\..\temp\csr\table_k.obj \ ++..\..\..\..\..\temp\csr\table_l.obj \ ++..\..\..\..\..\temp\csr\table_m.obj \ ++..\..\..\..\..\temp\csr\table_n.obj \ ++..\..\..\..\..\temp\csr\table_o.obj \ ++..\..\..\..\..\temp\csr\table_p.obj \ ++..\..\..\..\..\temp\csr\table_q.obj \ ++..\..\..\..\..\temp\csr\table_r.obj \ ++..\..\..\..\..\temp\csr\table_s.obj \ ++..\..\..\..\..\temp\csr\table_t.obj \ ++..\..\..\..\..\temp\csr\table_u.obj \ ++..\..\..\..\..\temp\csr\table_v.obj \ ++..\..\..\..\..\temp\csr\table_w.obj \ ++..\..\..\..\..\temp\csr\table_x.obj \ ++..\..\..\..\..\temp\csr\table_y.obj \ ++..\..\..\..\..\temp\csr\table_z.obj \ ++,; + +moc: $(SRCMOC) + +tmake: ../csr/win32/symantec/ta_abstract/Makefile + +../csr/win32/symantec/ta_abstract/Makefile: ta_abstract/ta_abstract.pro + tmake ta_abstract/ta_abstract.pro -o ../csr/win32/symantec/ta_abstract/Makefile + +dist: + $(ZIP) ta_abstract/ta_abstract.zip ta_abstract/ta_abstract.pro $(SOURCES) $(HEADERS) $(DIST) + +clean: + -del ..\..\..\..\..\temp\csr\ta_abstract.obj + -del ..\..\..\..\..\temp\csr\ta_def_ui.obj + -del ..\..\..\..\..\temp\csr\ta_func_api.obj + -del ..\..\..\..\..\temp\csr\ta_group_idx.obj + -del ..\..\..\..\..\temp\csr\ta_frame.obj + -del ..\..\..\..\..\temp\csr\table_a.obj + -del ..\..\..\..\..\temp\csr\table_b.obj + -del ..\..\..\..\..\temp\csr\table_c.obj + -del ..\..\..\..\..\temp\csr\table_d.obj + -del ..\..\..\..\..\temp\csr\table_e.obj + -del ..\..\..\..\..\temp\csr\table_f.obj + -del ..\..\..\..\..\temp\csr\table_g.obj + -del ..\..\..\..\..\temp\csr\table_h.obj + -del ..\..\..\..\..\temp\csr\table_i.obj + -del ..\..\..\..\..\temp\csr\table_j.obj + -del ..\..\..\..\..\temp\csr\table_k.obj + -del ..\..\..\..\..\temp\csr\table_l.obj + -del ..\..\..\..\..\temp\csr\table_m.obj + -del ..\..\..\..\..\temp\csr\table_n.obj + -del ..\..\..\..\..\temp\csr\table_o.obj + -del ..\..\..\..\..\temp\csr\table_p.obj + -del ..\..\..\..\..\temp\csr\table_q.obj + -del ..\..\..\..\..\temp\csr\table_r.obj + -del ..\..\..\..\..\temp\csr\table_s.obj + -del ..\..\..\..\..\temp\csr\table_t.obj + -del ..\..\..\..\..\temp\csr\table_u.obj + -del ..\..\..\..\..\temp\csr\table_v.obj + -del ..\..\..\..\..\temp\csr\table_w.obj + -del ..\..\..\..\..\temp\csr\table_x.obj + -del ..\..\..\..\..\temp\csr\table_y.obj + -del ..\..\..\..\..\temp\csr\table_z.obj + -del $(TARGET) + -del ../../../../../bin/*.map + -del ../../../../../bin/*._xe + -del ../../../../../bin/*.tds + -del ../../../../../bin/*.pdb + -del ../../../../../bin/*.pbo + -del ../../../../../bin/*.pbi + -del ../../../../../bin/*.pbt + -del ../../../../../temp/csr/*.pch + -del ../../../../../temp/csr/*.idb + -del ../../../../../temp/csr/ta_abstract/*.pch + -del ../../../../../temp/csr/ta_abstract/*.idb + -del ../../../../../temp/csr/ta_abstract/*.obj + +####### Compile + +..\..\..\..\..\temp\csr\ta_abstract.obj: ..\..\..\..\..\src\ta_abstract\ta_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_abstract.obj ..\..\..\..\..\src\ta_abstract\ta_abstract.c + +..\..\..\..\..\temp\csr\ta_def_ui.obj: ..\..\..\..\..\src\ta_abstract\ta_def_ui.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_def_ui.obj ..\..\..\..\..\src\ta_abstract\ta_def_ui.c + +..\..\..\..\..\temp\csr\ta_func_api.obj: ..\..\..\..\..\src\ta_abstract\ta_func_api.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_func_api.obj ..\..\..\..\..\src\ta_abstract\ta_func_api.c + +..\..\..\..\..\temp\csr\ta_group_idx.obj: ..\..\..\..\..\src\ta_abstract\ta_group_idx.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_group_idx.obj ..\..\..\..\..\src\ta_abstract\ta_group_idx.c + +..\..\..\..\..\temp\csr\ta_frame.obj: ..\..\..\..\..\src\ta_abstract\frames\ta_frame.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_frame.obj ..\..\..\..\..\src\ta_abstract\frames\ta_frame.c + +..\..\..\..\..\temp\csr\table_a.obj: ..\..\..\..\..\src\ta_abstract\tables\table_a.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\table_a.obj ..\..\..\..\..\src\ta_abstract\tables\table_a.c + +..\..\..\..\..\temp\csr\table_b.obj: ..\..\..\..\..\src\ta_abstract\tables\table_b.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\table_b.obj ..\..\..\..\..\src\ta_abstract\tables\table_b.c + +..\..\..\..\..\temp\csr\table_c.obj: ..\..\..\..\..\src\ta_abstract\tables\table_c.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\table_c.obj ..\..\..\..\..\src\ta_abstract\tables\table_c.c + +..\..\..\..\..\temp\csr\table_d.obj: ..\..\..\..\..\src\ta_abstract\tables\table_d.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\table_d.obj ..\..\..\..\..\src\ta_abstract\tables\table_d.c + +..\..\..\..\..\temp\csr\table_e.obj: ..\..\..\..\..\src\ta_abstract\tables\table_e.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\table_e.obj ..\..\..\..\..\src\ta_abstract\tables\table_e.c + +..\..\..\..\..\temp\csr\table_f.obj: ..\..\..\..\..\src\ta_abstract\tables\table_f.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\table_f.obj ..\..\..\..\..\src\ta_abstract\tables\table_f.c + +..\..\..\..\..\temp\csr\table_g.obj: ..\..\..\..\..\src\ta_abstract\tables\table_g.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\table_g.obj ..\..\..\..\..\src\ta_abstract\tables\table_g.c + +..\..\..\..\..\temp\csr\table_h.obj: ..\..\..\..\..\src\ta_abstract\tables\table_h.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\table_h.obj ..\..\..\..\..\src\ta_abstract\tables\table_h.c + +..\..\..\..\..\temp\csr\table_i.obj: ..\..\..\..\..\src\ta_abstract\tables\table_i.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\table_i.obj ..\..\..\..\..\src\ta_abstract\tables\table_i.c + +..\..\..\..\..\temp\csr\table_j.obj: ..\..\..\..\..\src\ta_abstract\tables\table_j.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\table_j.obj ..\..\..\..\..\src\ta_abstract\tables\table_j.c + +..\..\..\..\..\temp\csr\table_k.obj: ..\..\..\..\..\src\ta_abstract\tables\table_k.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\table_k.obj ..\..\..\..\..\src\ta_abstract\tables\table_k.c + +..\..\..\..\..\temp\csr\table_l.obj: ..\..\..\..\..\src\ta_abstract\tables\table_l.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\table_l.obj ..\..\..\..\..\src\ta_abstract\tables\table_l.c + +..\..\..\..\..\temp\csr\table_m.obj: ..\..\..\..\..\src\ta_abstract\tables\table_m.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\table_m.obj ..\..\..\..\..\src\ta_abstract\tables\table_m.c + +..\..\..\..\..\temp\csr\table_n.obj: ..\..\..\..\..\src\ta_abstract\tables\table_n.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\table_n.obj ..\..\..\..\..\src\ta_abstract\tables\table_n.c + +..\..\..\..\..\temp\csr\table_o.obj: ..\..\..\..\..\src\ta_abstract\tables\table_o.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\table_o.obj ..\..\..\..\..\src\ta_abstract\tables\table_o.c + +..\..\..\..\..\temp\csr\table_p.obj: ..\..\..\..\..\src\ta_abstract\tables\table_p.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\table_p.obj ..\..\..\..\..\src\ta_abstract\tables\table_p.c + +..\..\..\..\..\temp\csr\table_q.obj: ..\..\..\..\..\src\ta_abstract\tables\table_q.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\table_q.obj ..\..\..\..\..\src\ta_abstract\tables\table_q.c + +..\..\..\..\..\temp\csr\table_r.obj: ..\..\..\..\..\src\ta_abstract\tables\table_r.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\table_r.obj ..\..\..\..\..\src\ta_abstract\tables\table_r.c + +..\..\..\..\..\temp\csr\table_s.obj: ..\..\..\..\..\src\ta_abstract\tables\table_s.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\table_s.obj ..\..\..\..\..\src\ta_abstract\tables\table_s.c + +..\..\..\..\..\temp\csr\table_t.obj: ..\..\..\..\..\src\ta_abstract\tables\table_t.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\table_t.obj ..\..\..\..\..\src\ta_abstract\tables\table_t.c + +..\..\..\..\..\temp\csr\table_u.obj: ..\..\..\..\..\src\ta_abstract\tables\table_u.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\table_u.obj ..\..\..\..\..\src\ta_abstract\tables\table_u.c + +..\..\..\..\..\temp\csr\table_v.obj: ..\..\..\..\..\src\ta_abstract\tables\table_v.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\table_v.obj ..\..\..\..\..\src\ta_abstract\tables\table_v.c + +..\..\..\..\..\temp\csr\table_w.obj: ..\..\..\..\..\src\ta_abstract\tables\table_w.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\table_w.obj ..\..\..\..\..\src\ta_abstract\tables\table_w.c + +..\..\..\..\..\temp\csr\table_x.obj: ..\..\..\..\..\src\ta_abstract\tables\table_x.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\table_x.obj ..\..\..\..\..\src\ta_abstract\tables\table_x.c + +..\..\..\..\..\temp\csr\table_y.obj: ..\..\..\..\..\src\ta_abstract\tables\table_y.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\table_y.obj ..\..\..\..\..\src\ta_abstract\tables\table_y.c + +..\..\..\..\..\temp\csr\table_z.obj: ..\..\..\..\..\src\ta_abstract\tables\table_z.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\table_z.obj ..\..\..\..\..\src\ta_abstract\tables\table_z.c + diff --git a/make/csr/win32/symantec/ta_common/Makefile b/make/csr/win32/symantec/ta_common/Makefile new file mode 100644 index 000000000..79f968764 --- /dev/null +++ b/make/csr/win32/symantec/ta_common/Makefile @@ -0,0 +1,99 @@ +############################################################################# +# Makefile for building ta_common_csr +# Generated by tmake; +# Project: ta_common/ta_common +# Template: lib +############################################################################# + +####### Compiler, tools and options + +CC = sc +CXX = sc +CFLAGS = -mn -w2 -o -DTA_SINGLE_THREAD -DWIN32 +CXXFLAGS= -mn -w2 -o -DTA_SINGLE_THREAD -DWIN32 +INCPATH = -I"..\..\..\..\..\src\ta_common" -I"..\..\..\..\..\include" +LIB = lib /C /N /NOI /P:32 +MOC = moc + +ZIP = zip -r -9 + +####### Files + +HEADERS = +SOURCES = ..\..\..\..\..\src\ta_common\ta_global.c \ + ..\..\..\..\..\src\ta_common\ta_retcode.c \ + ..\..\..\..\..\src\ta_common\ta_version.c +OBJECTS = ..\..\..\..\..\temp\csr\ta_global.obj \ + ..\..\..\..\..\temp\csr\ta_retcode.obj \ + ..\..\..\..\..\temp\csr\ta_version.obj +SRCMOC = +OBJMOC = +DIST = +TARGET = ..\..\..\..\..\lib\ta_common_csr.lib + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .c + +.cpp.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.cxx.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.cc.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.c.obj: + $(CC) -c $(CFLAGS) $(INCPATH) -o$@ $< + +####### Build rules + +all: $(TARGET) + +$(TARGET): $(OBJECTS) $(OBJMOC) + -del $(TARGET) + $(LIB) $(TARGET) ..\..\..\..\..\temp\csr\ta_global.obj \ ++..\..\..\..\..\temp\csr\ta_retcode.obj \ ++..\..\..\..\..\temp\csr\ta_version.obj \ ++,; + +moc: $(SRCMOC) + +tmake: ../csr/win32/symantec/ta_common/Makefile + +../csr/win32/symantec/ta_common/Makefile: ta_common/ta_common.pro + tmake ta_common/ta_common.pro -o ../csr/win32/symantec/ta_common/Makefile + +dist: + $(ZIP) ta_common/ta_common.zip ta_common/ta_common.pro $(SOURCES) $(HEADERS) $(DIST) + +clean: + -del ..\..\..\..\..\temp\csr\ta_global.obj + -del ..\..\..\..\..\temp\csr\ta_retcode.obj + -del ..\..\..\..\..\temp\csr\ta_version.obj + -del $(TARGET) + -del ../../../../../bin/*.map + -del ../../../../../bin/*._xe + -del ../../../../../bin/*.tds + -del ../../../../../bin/*.pdb + -del ../../../../../bin/*.pbo + -del ../../../../../bin/*.pbi + -del ../../../../../bin/*.pbt + -del ../../../../../temp/csr/*.pch + -del ../../../../../temp/csr/*.idb + -del ../../../../../temp/csr/ta_common_csr/*.pch + -del ../../../../../temp/csr/ta_common_csr/*.idb + -del ../../../../../temp/csr/ta_common_csr/*.obj + +####### Compile + +..\..\..\..\..\temp\csr\ta_global.obj: ..\..\..\..\..\src\ta_common\ta_global.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_global.obj ..\..\..\..\..\src\ta_common\ta_global.c + +..\..\..\..\..\temp\csr\ta_retcode.obj: ..\..\..\..\..\src\ta_common\ta_retcode.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_retcode.obj ..\..\..\..\..\src\ta_common\ta_retcode.c + +..\..\..\..\..\temp\csr\ta_version.obj: ..\..\..\..\..\src\ta_common\ta_version.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_version.obj ..\..\..\..\..\src\ta_common\ta_version.c + diff --git a/make/csr/win32/symantec/ta_func/Makefile b/make/csr/win32/symantec/ta_func/Makefile new file mode 100644 index 000000000..4017cb453 --- /dev/null +++ b/make/csr/win32/symantec/ta_func/Makefile @@ -0,0 +1,1191 @@ +############################################################################# +# Makefile for building ta_func_csr +# Generated by tmake; +# Project: ta_func/ta_func +# Template: lib +############################################################################# + +####### Compiler, tools and options + +CC = sc +CXX = sc +CFLAGS = -mn -w2 -o -DTA_SINGLE_THREAD -DWIN32 +CXXFLAGS= -mn -w2 -o -DTA_SINGLE_THREAD -DWIN32 +INCPATH = -I"..\..\..\..\..\src\ta_common" -I"\n" -I"..\..\..\..\..\include" +LIB = lib /C /N /NOI /P:32 +MOC = moc + +ZIP = zip -r -9 + +####### Files + +HEADERS = +SOURCES = ..\..\..\..\..\src\ta_func\ta_utility.c \ + ..\..\..\..\..\src\ta_func\ta_ACOS.c \ + ..\..\..\..\..\src\ta_func\ta_AD.c \ + ..\..\..\..\..\src\ta_func\ta_ADD.c \ + ..\..\..\..\..\src\ta_func\ta_ADOSC.c \ + ..\..\..\..\..\src\ta_func\ta_ADX.c \ + ..\..\..\..\..\src\ta_func\ta_ADXR.c \ + ..\..\..\..\..\src\ta_func\ta_APO.c \ + ..\..\..\..\..\src\ta_func\ta_AROON.c \ + ..\..\..\..\..\src\ta_func\ta_AROONOSC.c \ + ..\..\..\..\..\src\ta_func\ta_ASIN.c \ + ..\..\..\..\..\src\ta_func\ta_ATAN.c \ + ..\..\..\..\..\src\ta_func\ta_ATR.c \ + ..\..\..\..\..\src\ta_func\ta_AVGPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_BBANDS.c \ + ..\..\..\..\..\src\ta_func\ta_BETA.c \ + ..\..\..\..\..\src\ta_func\ta_BOP.c \ + ..\..\..\..\..\src\ta_func\ta_CCI.c \ + ..\..\..\..\..\src\ta_func\ta_CDL2CROWS.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3BLACKCROWS.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3INSIDE.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3LINESTRIKE.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3OUTSIDE.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3STARSINSOUTH.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3WHITESOLDIERS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLABANDONEDBABY.c \ + ..\..\..\..\..\src\ta_func\ta_CDLADVANCEBLOCK.c \ + ..\..\..\..\..\src\ta_func\ta_CDLBELTHOLD.c \ + ..\..\..\..\..\src\ta_func\ta_CDLBREAKAWAY.c \ + ..\..\..\..\..\src\ta_func\ta_CDLCLOSINGMARUBOZU.c \ + ..\..\..\..\..\src\ta_func\ta_CDLCONCEALBABYSWALL.c \ + ..\..\..\..\..\src\ta_func\ta_CDLCOUNTERATTACK.c \ + ..\..\..\..\..\src\ta_func\ta_CDLDARKCLOUDCOVER.c \ + ..\..\..\..\..\src\ta_func\ta_CDLDOJI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLDOJISTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLDRAGONFLYDOJI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLENGULFING.c \ + ..\..\..\..\..\src\ta_func\ta_CDLEVENINGDOJISTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLEVENINGSTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLGAPSIDESIDEWHITE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLGRAVESTONEDOJI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHAMMER.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHANGINGMAN.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHARAMI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHARAMICROSS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHIGHWAVE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKEMOD.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHOMINGPIGEON.c \ + ..\..\..\..\..\src\ta_func\ta_CDLIDENTICAL3CROWS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLINNECK.c \ + ..\..\..\..\..\src\ta_func\ta_CDLINVERTEDHAMMER.c \ + ..\..\..\..\..\src\ta_func\ta_CDLKICKING.c \ + ..\..\..\..\..\src\ta_func\ta_CDLKICKINGBYLENGTH.c \ + ..\..\..\..\..\src\ta_func\ta_CDLLADDERBOTTOM.c \ + ..\..\..\..\..\src\ta_func\ta_CDLLONGLEGGEDDOJI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLLONGLINE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMARUBOZU.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMATCHINGLOW.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMATHOLD.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMORNINGDOJISTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMORNINGSTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLONNECK.c \ + ..\..\..\..\..\src\ta_func\ta_CDLPIERCING.c \ + ..\..\..\..\..\src\ta_func\ta_CDLRICKSHAWMAN.c \ + ..\..\..\..\..\src\ta_func\ta_CDLRISEFALL3METHODS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSEPARATINGLINES.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSHOOTINGSTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSHORTLINE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSPINNINGTOP.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSTALLEDPATTERN.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSTICKSANDWICH.c \ + ..\..\..\..\..\src\ta_func\ta_CDLTAKURI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLTASUKIGAP.c \ + ..\..\..\..\..\src\ta_func\ta_CDLTHRUSTING.c \ + ..\..\..\..\..\src\ta_func\ta_CDLTRISTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLUNIQUE3RIVER.c \ + ..\..\..\..\..\src\ta_func\ta_CDLUPSIDEGAP2CROWS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLXSIDEGAP3METHODS.c \ + ..\..\..\..\..\src\ta_func\ta_CEIL.c \ + ..\..\..\..\..\src\ta_func\ta_CMO.c \ + ..\..\..\..\..\src\ta_func\ta_CORREL.c \ + ..\..\..\..\..\src\ta_func\ta_COS.c \ + ..\..\..\..\..\src\ta_func\ta_COSH.c \ + ..\..\..\..\..\src\ta_func\ta_DEMA.c \ + ..\..\..\..\..\src\ta_func\ta_DIV.c \ + ..\..\..\..\..\src\ta_func\ta_DX.c \ + ..\..\..\..\..\src\ta_func\ta_EMA.c \ + ..\..\..\..\..\src\ta_func\ta_EXP.c \ + ..\..\..\..\..\src\ta_func\ta_FLOOR.c \ + ..\..\..\..\..\src\ta_func\ta_HT_DCPERIOD.c \ + ..\..\..\..\..\src\ta_func\ta_HT_DCPHASE.c \ + ..\..\..\..\..\src\ta_func\ta_HT_PHASOR.c \ + ..\..\..\..\..\src\ta_func\ta_HT_SINE.c \ + ..\..\..\..\..\src\ta_func\ta_HT_TRENDLINE.c \ + ..\..\..\..\..\src\ta_func\ta_HT_TRENDMODE.c \ + ..\..\..\..\..\src\ta_func\ta_KAMA.c \ + ..\..\..\..\..\src\ta_func\ta_LINEARREG.c \ + ..\..\..\..\..\src\ta_func\ta_LINEARREG_ANGLE.c \ + ..\..\..\..\..\src\ta_func\ta_LINEARREG_INTERCEPT.c \ + ..\..\..\..\..\src\ta_func\ta_LINEARREG_SLOPE.c \ + ..\..\..\..\..\src\ta_func\ta_LN.c \ + ..\..\..\..\..\src\ta_func\ta_LOG10.c \ + ..\..\..\..\..\src\ta_func\ta_MA.c \ + ..\..\..\..\..\src\ta_func\ta_MACD.c \ + ..\..\..\..\..\src\ta_func\ta_MACDEXT.c \ + ..\..\..\..\..\src\ta_func\ta_MACDFIX.c \ + ..\..\..\..\..\src\ta_func\ta_MAMA.c \ + ..\..\..\..\..\src\ta_func\ta_MAVP.c \ + ..\..\..\..\..\src\ta_func\ta_MAX.c \ + ..\..\..\..\..\src\ta_func\ta_MAXINDEX.c \ + ..\..\..\..\..\src\ta_func\ta_MEDPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_MFI.c \ + ..\..\..\..\..\src\ta_func\ta_MIDPOINT.c \ + ..\..\..\..\..\src\ta_func\ta_MIDPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_MIN.c \ + ..\..\..\..\..\src\ta_func\ta_MININDEX.c \ + ..\..\..\..\..\src\ta_func\ta_MINMAX.c \ + ..\..\..\..\..\src\ta_func\ta_MINMAXINDEX.c \ + ..\..\..\..\..\src\ta_func\ta_MINUS_DI.c \ + ..\..\..\..\..\src\ta_func\ta_MINUS_DM.c \ + ..\..\..\..\..\src\ta_func\ta_MOM.c \ + ..\..\..\..\..\src\ta_func\ta_MULT.c \ + ..\..\..\..\..\src\ta_func\ta_NATR.c \ + ..\..\..\..\..\src\ta_func\ta_OBV.c \ + ..\..\..\..\..\src\ta_func\ta_PLUS_DI.c \ + ..\..\..\..\..\src\ta_func\ta_PLUS_DM.c \ + ..\..\..\..\..\src\ta_func\ta_PPO.c \ + ..\..\..\..\..\src\ta_func\ta_ROC.c \ + ..\..\..\..\..\src\ta_func\ta_ROCP.c \ + ..\..\..\..\..\src\ta_func\ta_ROCR.c \ + ..\..\..\..\..\src\ta_func\ta_ROCR100.c \ + ..\..\..\..\..\src\ta_func\ta_RSI.c \ + ..\..\..\..\..\src\ta_func\ta_SAR.c \ + ..\..\..\..\..\src\ta_func\ta_SAREXT.c \ + ..\..\..\..\..\src\ta_func\ta_SIN.c \ + ..\..\..\..\..\src\ta_func\ta_SINH.c \ + ..\..\..\..\..\src\ta_func\ta_SMA.c \ + ..\..\..\..\..\src\ta_func\ta_SQRT.c \ + ..\..\..\..\..\src\ta_func\ta_STDDEV.c \ + ..\..\..\..\..\src\ta_func\ta_STOCH.c \ + ..\..\..\..\..\src\ta_func\ta_STOCHF.c \ + ..\..\..\..\..\src\ta_func\ta_STOCHRSI.c \ + ..\..\..\..\..\src\ta_func\ta_SUB.c \ + ..\..\..\..\..\src\ta_func\ta_SUM.c \ + ..\..\..\..\..\src\ta_func\ta_T3.c \ + ..\..\..\..\..\src\ta_func\ta_TAN.c \ + ..\..\..\..\..\src\ta_func\ta_TANH.c \ + ..\..\..\..\..\src\ta_func\ta_TEMA.c \ + ..\..\..\..\..\src\ta_func\ta_TRANGE.c \ + ..\..\..\..\..\src\ta_func\ta_TRIMA.c \ + ..\..\..\..\..\src\ta_func\ta_TRIX.c \ + ..\..\..\..\..\src\ta_func\ta_TSF.c \ + ..\..\..\..\..\src\ta_func\ta_TYPPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_ULTOSC.c \ + ..\..\..\..\..\src\ta_func\ta_VAR.c \ + ..\..\..\..\..\src\ta_func\ta_WCLPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_WILLR.c \ + ..\..\..\..\..\src\ta_func\ta_WMA.c +OBJECTS = ..\..\..\..\..\temp\csr\ta_utility.obj \ + ..\..\..\..\..\temp\csr\ta_ACOS.obj \ + ..\..\..\..\..\temp\csr\ta_AD.obj \ + ..\..\..\..\..\temp\csr\ta_ADD.obj \ + ..\..\..\..\..\temp\csr\ta_ADOSC.obj \ + ..\..\..\..\..\temp\csr\ta_ADX.obj \ + ..\..\..\..\..\temp\csr\ta_ADXR.obj \ + ..\..\..\..\..\temp\csr\ta_APO.obj \ + ..\..\..\..\..\temp\csr\ta_AROON.obj \ + ..\..\..\..\..\temp\csr\ta_AROONOSC.obj \ + ..\..\..\..\..\temp\csr\ta_ASIN.obj \ + ..\..\..\..\..\temp\csr\ta_ATAN.obj \ + ..\..\..\..\..\temp\csr\ta_ATR.obj \ + ..\..\..\..\..\temp\csr\ta_AVGPRICE.obj \ + ..\..\..\..\..\temp\csr\ta_BBANDS.obj \ + ..\..\..\..\..\temp\csr\ta_BETA.obj \ + ..\..\..\..\..\temp\csr\ta_BOP.obj \ + ..\..\..\..\..\temp\csr\ta_CCI.obj \ + ..\..\..\..\..\temp\csr\ta_CDL2CROWS.obj \ + ..\..\..\..\..\temp\csr\ta_CDL3BLACKCROWS.obj \ + ..\..\..\..\..\temp\csr\ta_CDL3INSIDE.obj \ + ..\..\..\..\..\temp\csr\ta_CDL3LINESTRIKE.obj \ + ..\..\..\..\..\temp\csr\ta_CDL3OUTSIDE.obj \ + ..\..\..\..\..\temp\csr\ta_CDL3STARSINSOUTH.obj \ + ..\..\..\..\..\temp\csr\ta_CDL3WHITESOLDIERS.obj \ + ..\..\..\..\..\temp\csr\ta_CDLABANDONEDBABY.obj \ + ..\..\..\..\..\temp\csr\ta_CDLADVANCEBLOCK.obj \ + ..\..\..\..\..\temp\csr\ta_CDLBELTHOLD.obj \ + ..\..\..\..\..\temp\csr\ta_CDLBREAKAWAY.obj \ + ..\..\..\..\..\temp\csr\ta_CDLCLOSINGMARUBOZU.obj \ + ..\..\..\..\..\temp\csr\ta_CDLCONCEALBABYSWALL.obj \ + ..\..\..\..\..\temp\csr\ta_CDLCOUNTERATTACK.obj \ + ..\..\..\..\..\temp\csr\ta_CDLDARKCLOUDCOVER.obj \ + ..\..\..\..\..\temp\csr\ta_CDLDOJI.obj \ + ..\..\..\..\..\temp\csr\ta_CDLDOJISTAR.obj \ + ..\..\..\..\..\temp\csr\ta_CDLDRAGONFLYDOJI.obj \ + ..\..\..\..\..\temp\csr\ta_CDLENGULFING.obj \ + ..\..\..\..\..\temp\csr\ta_CDLEVENINGDOJISTAR.obj \ + ..\..\..\..\..\temp\csr\ta_CDLEVENINGSTAR.obj \ + ..\..\..\..\..\temp\csr\ta_CDLGAPSIDESIDEWHITE.obj \ + ..\..\..\..\..\temp\csr\ta_CDLGRAVESTONEDOJI.obj \ + ..\..\..\..\..\temp\csr\ta_CDLHAMMER.obj \ + ..\..\..\..\..\temp\csr\ta_CDLHANGINGMAN.obj \ + ..\..\..\..\..\temp\csr\ta_CDLHARAMI.obj \ + ..\..\..\..\..\temp\csr\ta_CDLHARAMICROSS.obj \ + ..\..\..\..\..\temp\csr\ta_CDLHIGHWAVE.obj \ + ..\..\..\..\..\temp\csr\ta_CDLHIKKAKE.obj \ + ..\..\..\..\..\temp\csr\ta_CDLHIKKAKEMOD.obj \ + ..\..\..\..\..\temp\csr\ta_CDLHOMINGPIGEON.obj \ + ..\..\..\..\..\temp\csr\ta_CDLIDENTICAL3CROWS.obj \ + ..\..\..\..\..\temp\csr\ta_CDLINNECK.obj \ + ..\..\..\..\..\temp\csr\ta_CDLINVERTEDHAMMER.obj \ + ..\..\..\..\..\temp\csr\ta_CDLKICKING.obj \ + ..\..\..\..\..\temp\csr\ta_CDLKICKINGBYLENGTH.obj \ + ..\..\..\..\..\temp\csr\ta_CDLLADDERBOTTOM.obj \ + ..\..\..\..\..\temp\csr\ta_CDLLONGLEGGEDDOJI.obj \ + ..\..\..\..\..\temp\csr\ta_CDLLONGLINE.obj \ + ..\..\..\..\..\temp\csr\ta_CDLMARUBOZU.obj \ + ..\..\..\..\..\temp\csr\ta_CDLMATCHINGLOW.obj \ + ..\..\..\..\..\temp\csr\ta_CDLMATHOLD.obj \ + ..\..\..\..\..\temp\csr\ta_CDLMORNINGDOJISTAR.obj \ + ..\..\..\..\..\temp\csr\ta_CDLMORNINGSTAR.obj \ + ..\..\..\..\..\temp\csr\ta_CDLONNECK.obj \ + ..\..\..\..\..\temp\csr\ta_CDLPIERCING.obj \ + ..\..\..\..\..\temp\csr\ta_CDLRICKSHAWMAN.obj \ + ..\..\..\..\..\temp\csr\ta_CDLRISEFALL3METHODS.obj \ + ..\..\..\..\..\temp\csr\ta_CDLSEPARATINGLINES.obj \ + ..\..\..\..\..\temp\csr\ta_CDLSHOOTINGSTAR.obj \ + ..\..\..\..\..\temp\csr\ta_CDLSHORTLINE.obj \ + ..\..\..\..\..\temp\csr\ta_CDLSPINNINGTOP.obj \ + ..\..\..\..\..\temp\csr\ta_CDLSTALLEDPATTERN.obj \ + ..\..\..\..\..\temp\csr\ta_CDLSTICKSANDWICH.obj \ + ..\..\..\..\..\temp\csr\ta_CDLTAKURI.obj \ + ..\..\..\..\..\temp\csr\ta_CDLTASUKIGAP.obj \ + ..\..\..\..\..\temp\csr\ta_CDLTHRUSTING.obj \ + ..\..\..\..\..\temp\csr\ta_CDLTRISTAR.obj \ + ..\..\..\..\..\temp\csr\ta_CDLUNIQUE3RIVER.obj \ + ..\..\..\..\..\temp\csr\ta_CDLUPSIDEGAP2CROWS.obj \ + ..\..\..\..\..\temp\csr\ta_CDLXSIDEGAP3METHODS.obj \ + ..\..\..\..\..\temp\csr\ta_CEIL.obj \ + ..\..\..\..\..\temp\csr\ta_CMO.obj \ + ..\..\..\..\..\temp\csr\ta_CORREL.obj \ + ..\..\..\..\..\temp\csr\ta_COS.obj \ + ..\..\..\..\..\temp\csr\ta_COSH.obj \ + ..\..\..\..\..\temp\csr\ta_DEMA.obj \ + ..\..\..\..\..\temp\csr\ta_DIV.obj \ + ..\..\..\..\..\temp\csr\ta_DX.obj \ + ..\..\..\..\..\temp\csr\ta_EMA.obj \ + ..\..\..\..\..\temp\csr\ta_EXP.obj \ + ..\..\..\..\..\temp\csr\ta_FLOOR.obj \ + ..\..\..\..\..\temp\csr\ta_HT_DCPERIOD.obj \ + ..\..\..\..\..\temp\csr\ta_HT_DCPHASE.obj \ + ..\..\..\..\..\temp\csr\ta_HT_PHASOR.obj \ + ..\..\..\..\..\temp\csr\ta_HT_SINE.obj \ + ..\..\..\..\..\temp\csr\ta_HT_TRENDLINE.obj \ + ..\..\..\..\..\temp\csr\ta_HT_TRENDMODE.obj \ + ..\..\..\..\..\temp\csr\ta_KAMA.obj \ + ..\..\..\..\..\temp\csr\ta_LINEARREG.obj \ + ..\..\..\..\..\temp\csr\ta_LINEARREG_ANGLE.obj \ + ..\..\..\..\..\temp\csr\ta_LINEARREG_INTERCEPT.obj \ + ..\..\..\..\..\temp\csr\ta_LINEARREG_SLOPE.obj \ + ..\..\..\..\..\temp\csr\ta_LN.obj \ + ..\..\..\..\..\temp\csr\ta_LOG10.obj \ + ..\..\..\..\..\temp\csr\ta_MA.obj \ + ..\..\..\..\..\temp\csr\ta_MACD.obj \ + ..\..\..\..\..\temp\csr\ta_MACDEXT.obj \ + ..\..\..\..\..\temp\csr\ta_MACDFIX.obj \ + ..\..\..\..\..\temp\csr\ta_MAMA.obj \ + ..\..\..\..\..\temp\csr\ta_MAVP.obj \ + ..\..\..\..\..\temp\csr\ta_MAX.obj \ + ..\..\..\..\..\temp\csr\ta_MAXINDEX.obj \ + ..\..\..\..\..\temp\csr\ta_MEDPRICE.obj \ + ..\..\..\..\..\temp\csr\ta_MFI.obj \ + ..\..\..\..\..\temp\csr\ta_MIDPOINT.obj \ + ..\..\..\..\..\temp\csr\ta_MIDPRICE.obj \ + ..\..\..\..\..\temp\csr\ta_MIN.obj \ + ..\..\..\..\..\temp\csr\ta_MININDEX.obj \ + ..\..\..\..\..\temp\csr\ta_MINMAX.obj \ + ..\..\..\..\..\temp\csr\ta_MINMAXINDEX.obj \ + ..\..\..\..\..\temp\csr\ta_MINUS_DI.obj \ + ..\..\..\..\..\temp\csr\ta_MINUS_DM.obj \ + ..\..\..\..\..\temp\csr\ta_MOM.obj \ + ..\..\..\..\..\temp\csr\ta_MULT.obj \ + ..\..\..\..\..\temp\csr\ta_NATR.obj \ + ..\..\..\..\..\temp\csr\ta_OBV.obj \ + ..\..\..\..\..\temp\csr\ta_PLUS_DI.obj \ + ..\..\..\..\..\temp\csr\ta_PLUS_DM.obj \ + ..\..\..\..\..\temp\csr\ta_PPO.obj \ + ..\..\..\..\..\temp\csr\ta_ROC.obj \ + ..\..\..\..\..\temp\csr\ta_ROCP.obj \ + ..\..\..\..\..\temp\csr\ta_ROCR.obj \ + ..\..\..\..\..\temp\csr\ta_ROCR100.obj \ + ..\..\..\..\..\temp\csr\ta_RSI.obj \ + ..\..\..\..\..\temp\csr\ta_SAR.obj \ + ..\..\..\..\..\temp\csr\ta_SAREXT.obj \ + ..\..\..\..\..\temp\csr\ta_SIN.obj \ + ..\..\..\..\..\temp\csr\ta_SINH.obj \ + ..\..\..\..\..\temp\csr\ta_SMA.obj \ + ..\..\..\..\..\temp\csr\ta_SQRT.obj \ + ..\..\..\..\..\temp\csr\ta_STDDEV.obj \ + ..\..\..\..\..\temp\csr\ta_STOCH.obj \ + ..\..\..\..\..\temp\csr\ta_STOCHF.obj \ + ..\..\..\..\..\temp\csr\ta_STOCHRSI.obj \ + ..\..\..\..\..\temp\csr\ta_SUB.obj \ + ..\..\..\..\..\temp\csr\ta_SUM.obj \ + ..\..\..\..\..\temp\csr\ta_T3.obj \ + ..\..\..\..\..\temp\csr\ta_TAN.obj \ + ..\..\..\..\..\temp\csr\ta_TANH.obj \ + ..\..\..\..\..\temp\csr\ta_TEMA.obj \ + ..\..\..\..\..\temp\csr\ta_TRANGE.obj \ + ..\..\..\..\..\temp\csr\ta_TRIMA.obj \ + ..\..\..\..\..\temp\csr\ta_TRIX.obj \ + ..\..\..\..\..\temp\csr\ta_TSF.obj \ + ..\..\..\..\..\temp\csr\ta_TYPPRICE.obj \ + ..\..\..\..\..\temp\csr\ta_ULTOSC.obj \ + ..\..\..\..\..\temp\csr\ta_VAR.obj \ + ..\..\..\..\..\temp\csr\ta_WCLPRICE.obj \ + ..\..\..\..\..\temp\csr\ta_WILLR.obj \ + ..\..\..\..\..\temp\csr\ta_WMA.obj +SRCMOC = +OBJMOC = +DIST = +TARGET = ..\..\..\..\..\lib\ta_func_csr.lib + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .c + +.cpp.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.cxx.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.cc.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.c.obj: + $(CC) -c $(CFLAGS) $(INCPATH) -o$@ $< + +####### Build rules + +all: $(TARGET) + +$(TARGET): $(OBJECTS) $(OBJMOC) + -del $(TARGET) + $(LIB) $(TARGET) ..\..\..\..\..\temp\csr\ta_utility.obj \ ++..\..\..\..\..\temp\csr\ta_ACOS.obj \ ++..\..\..\..\..\temp\csr\ta_AD.obj \ ++..\..\..\..\..\temp\csr\ta_ADD.obj \ ++..\..\..\..\..\temp\csr\ta_ADOSC.obj \ ++..\..\..\..\..\temp\csr\ta_ADX.obj \ ++..\..\..\..\..\temp\csr\ta_ADXR.obj \ ++..\..\..\..\..\temp\csr\ta_APO.obj \ ++..\..\..\..\..\temp\csr\ta_AROON.obj \ ++..\..\..\..\..\temp\csr\ta_AROONOSC.obj \ ++..\..\..\..\..\temp\csr\ta_ASIN.obj \ ++..\..\..\..\..\temp\csr\ta_ATAN.obj \ ++..\..\..\..\..\temp\csr\ta_ATR.obj \ ++..\..\..\..\..\temp\csr\ta_AVGPRICE.obj \ ++..\..\..\..\..\temp\csr\ta_BBANDS.obj \ ++..\..\..\..\..\temp\csr\ta_BETA.obj \ ++..\..\..\..\..\temp\csr\ta_BOP.obj \ ++..\..\..\..\..\temp\csr\ta_CCI.obj \ ++..\..\..\..\..\temp\csr\ta_CDL2CROWS.obj \ ++..\..\..\..\..\temp\csr\ta_CDL3BLACKCROWS.obj \ ++..\..\..\..\..\temp\csr\ta_CDL3INSIDE.obj \ ++..\..\..\..\..\temp\csr\ta_CDL3LINESTRIKE.obj \ ++..\..\..\..\..\temp\csr\ta_CDL3OUTSIDE.obj \ ++..\..\..\..\..\temp\csr\ta_CDL3STARSINSOUTH.obj \ ++..\..\..\..\..\temp\csr\ta_CDL3WHITESOLDIERS.obj \ ++..\..\..\..\..\temp\csr\ta_CDLABANDONEDBABY.obj \ ++..\..\..\..\..\temp\csr\ta_CDLADVANCEBLOCK.obj \ ++..\..\..\..\..\temp\csr\ta_CDLBELTHOLD.obj \ ++..\..\..\..\..\temp\csr\ta_CDLBREAKAWAY.obj \ ++..\..\..\..\..\temp\csr\ta_CDLCLOSINGMARUBOZU.obj \ ++..\..\..\..\..\temp\csr\ta_CDLCONCEALBABYSWALL.obj \ ++..\..\..\..\..\temp\csr\ta_CDLCOUNTERATTACK.obj \ ++..\..\..\..\..\temp\csr\ta_CDLDARKCLOUDCOVER.obj \ ++..\..\..\..\..\temp\csr\ta_CDLDOJI.obj \ ++..\..\..\..\..\temp\csr\ta_CDLDOJISTAR.obj \ ++..\..\..\..\..\temp\csr\ta_CDLDRAGONFLYDOJI.obj \ ++..\..\..\..\..\temp\csr\ta_CDLENGULFING.obj \ ++..\..\..\..\..\temp\csr\ta_CDLEVENINGDOJISTAR.obj \ ++..\..\..\..\..\temp\csr\ta_CDLEVENINGSTAR.obj \ ++..\..\..\..\..\temp\csr\ta_CDLGAPSIDESIDEWHITE.obj \ ++..\..\..\..\..\temp\csr\ta_CDLGRAVESTONEDOJI.obj \ ++..\..\..\..\..\temp\csr\ta_CDLHAMMER.obj \ ++..\..\..\..\..\temp\csr\ta_CDLHANGINGMAN.obj \ ++..\..\..\..\..\temp\csr\ta_CDLHARAMI.obj \ ++..\..\..\..\..\temp\csr\ta_CDLHARAMICROSS.obj \ ++..\..\..\..\..\temp\csr\ta_CDLHIGHWAVE.obj \ ++..\..\..\..\..\temp\csr\ta_CDLHIKKAKE.obj \ ++..\..\..\..\..\temp\csr\ta_CDLHIKKAKEMOD.obj \ ++..\..\..\..\..\temp\csr\ta_CDLHOMINGPIGEON.obj \ ++..\..\..\..\..\temp\csr\ta_CDLIDENTICAL3CROWS.obj \ ++..\..\..\..\..\temp\csr\ta_CDLINNECK.obj \ ++..\..\..\..\..\temp\csr\ta_CDLINVERTEDHAMMER.obj \ ++..\..\..\..\..\temp\csr\ta_CDLKICKING.obj \ ++..\..\..\..\..\temp\csr\ta_CDLKICKINGBYLENGTH.obj \ ++..\..\..\..\..\temp\csr\ta_CDLLADDERBOTTOM.obj \ ++..\..\..\..\..\temp\csr\ta_CDLLONGLEGGEDDOJI.obj \ ++..\..\..\..\..\temp\csr\ta_CDLLONGLINE.obj \ ++..\..\..\..\..\temp\csr\ta_CDLMARUBOZU.obj \ ++..\..\..\..\..\temp\csr\ta_CDLMATCHINGLOW.obj \ ++..\..\..\..\..\temp\csr\ta_CDLMATHOLD.obj \ ++..\..\..\..\..\temp\csr\ta_CDLMORNINGDOJISTAR.obj \ ++..\..\..\..\..\temp\csr\ta_CDLMORNINGSTAR.obj \ ++..\..\..\..\..\temp\csr\ta_CDLONNECK.obj \ ++..\..\..\..\..\temp\csr\ta_CDLPIERCING.obj \ ++..\..\..\..\..\temp\csr\ta_CDLRICKSHAWMAN.obj \ ++..\..\..\..\..\temp\csr\ta_CDLRISEFALL3METHODS.obj \ ++..\..\..\..\..\temp\csr\ta_CDLSEPARATINGLINES.obj \ ++..\..\..\..\..\temp\csr\ta_CDLSHOOTINGSTAR.obj \ ++..\..\..\..\..\temp\csr\ta_CDLSHORTLINE.obj \ ++..\..\..\..\..\temp\csr\ta_CDLSPINNINGTOP.obj \ ++..\..\..\..\..\temp\csr\ta_CDLSTALLEDPATTERN.obj \ ++..\..\..\..\..\temp\csr\ta_CDLSTICKSANDWICH.obj \ ++..\..\..\..\..\temp\csr\ta_CDLTAKURI.obj \ ++..\..\..\..\..\temp\csr\ta_CDLTASUKIGAP.obj \ ++..\..\..\..\..\temp\csr\ta_CDLTHRUSTING.obj \ ++..\..\..\..\..\temp\csr\ta_CDLTRISTAR.obj \ ++..\..\..\..\..\temp\csr\ta_CDLUNIQUE3RIVER.obj \ ++..\..\..\..\..\temp\csr\ta_CDLUPSIDEGAP2CROWS.obj \ ++..\..\..\..\..\temp\csr\ta_CDLXSIDEGAP3METHODS.obj \ ++..\..\..\..\..\temp\csr\ta_CEIL.obj \ ++..\..\..\..\..\temp\csr\ta_CMO.obj \ ++..\..\..\..\..\temp\csr\ta_CORREL.obj \ ++..\..\..\..\..\temp\csr\ta_COS.obj \ ++..\..\..\..\..\temp\csr\ta_COSH.obj \ ++..\..\..\..\..\temp\csr\ta_DEMA.obj \ ++..\..\..\..\..\temp\csr\ta_DIV.obj \ ++..\..\..\..\..\temp\csr\ta_DX.obj \ ++..\..\..\..\..\temp\csr\ta_EMA.obj \ ++..\..\..\..\..\temp\csr\ta_EXP.obj \ ++..\..\..\..\..\temp\csr\ta_FLOOR.obj \ ++..\..\..\..\..\temp\csr\ta_HT_DCPERIOD.obj \ ++..\..\..\..\..\temp\csr\ta_HT_DCPHASE.obj \ ++..\..\..\..\..\temp\csr\ta_HT_PHASOR.obj \ ++..\..\..\..\..\temp\csr\ta_HT_SINE.obj \ ++..\..\..\..\..\temp\csr\ta_HT_TRENDLINE.obj \ ++..\..\..\..\..\temp\csr\ta_HT_TRENDMODE.obj \ ++..\..\..\..\..\temp\csr\ta_KAMA.obj \ ++..\..\..\..\..\temp\csr\ta_LINEARREG.obj \ ++..\..\..\..\..\temp\csr\ta_LINEARREG_ANGLE.obj \ ++..\..\..\..\..\temp\csr\ta_LINEARREG_INTERCEPT.obj \ ++..\..\..\..\..\temp\csr\ta_LINEARREG_SLOPE.obj \ ++..\..\..\..\..\temp\csr\ta_LN.obj \ ++..\..\..\..\..\temp\csr\ta_LOG10.obj \ ++..\..\..\..\..\temp\csr\ta_MA.obj \ ++..\..\..\..\..\temp\csr\ta_MACD.obj \ ++..\..\..\..\..\temp\csr\ta_MACDEXT.obj \ ++..\..\..\..\..\temp\csr\ta_MACDFIX.obj \ ++..\..\..\..\..\temp\csr\ta_MAMA.obj \ ++..\..\..\..\..\temp\csr\ta_MAVP.obj \ ++..\..\..\..\..\temp\csr\ta_MAX.obj \ ++..\..\..\..\..\temp\csr\ta_MAXINDEX.obj \ ++..\..\..\..\..\temp\csr\ta_MEDPRICE.obj \ ++..\..\..\..\..\temp\csr\ta_MFI.obj \ ++..\..\..\..\..\temp\csr\ta_MIDPOINT.obj \ ++..\..\..\..\..\temp\csr\ta_MIDPRICE.obj \ ++..\..\..\..\..\temp\csr\ta_MIN.obj \ ++..\..\..\..\..\temp\csr\ta_MININDEX.obj \ ++..\..\..\..\..\temp\csr\ta_MINMAX.obj \ ++..\..\..\..\..\temp\csr\ta_MINMAXINDEX.obj \ ++..\..\..\..\..\temp\csr\ta_MINUS_DI.obj \ ++..\..\..\..\..\temp\csr\ta_MINUS_DM.obj \ ++..\..\..\..\..\temp\csr\ta_MOM.obj \ ++..\..\..\..\..\temp\csr\ta_MULT.obj \ ++..\..\..\..\..\temp\csr\ta_NATR.obj \ ++..\..\..\..\..\temp\csr\ta_OBV.obj \ ++..\..\..\..\..\temp\csr\ta_PLUS_DI.obj \ ++..\..\..\..\..\temp\csr\ta_PLUS_DM.obj \ ++..\..\..\..\..\temp\csr\ta_PPO.obj \ ++..\..\..\..\..\temp\csr\ta_ROC.obj \ ++..\..\..\..\..\temp\csr\ta_ROCP.obj \ ++..\..\..\..\..\temp\csr\ta_ROCR.obj \ ++..\..\..\..\..\temp\csr\ta_ROCR100.obj \ ++..\..\..\..\..\temp\csr\ta_RSI.obj \ ++..\..\..\..\..\temp\csr\ta_SAR.obj \ ++..\..\..\..\..\temp\csr\ta_SAREXT.obj \ ++..\..\..\..\..\temp\csr\ta_SIN.obj \ ++..\..\..\..\..\temp\csr\ta_SINH.obj \ ++..\..\..\..\..\temp\csr\ta_SMA.obj \ ++..\..\..\..\..\temp\csr\ta_SQRT.obj \ ++..\..\..\..\..\temp\csr\ta_STDDEV.obj \ ++..\..\..\..\..\temp\csr\ta_STOCH.obj \ ++..\..\..\..\..\temp\csr\ta_STOCHF.obj \ ++..\..\..\..\..\temp\csr\ta_STOCHRSI.obj \ ++..\..\..\..\..\temp\csr\ta_SUB.obj \ ++..\..\..\..\..\temp\csr\ta_SUM.obj \ ++..\..\..\..\..\temp\csr\ta_T3.obj \ ++..\..\..\..\..\temp\csr\ta_TAN.obj \ ++..\..\..\..\..\temp\csr\ta_TANH.obj \ ++..\..\..\..\..\temp\csr\ta_TEMA.obj \ ++..\..\..\..\..\temp\csr\ta_TRANGE.obj \ ++..\..\..\..\..\temp\csr\ta_TRIMA.obj \ ++..\..\..\..\..\temp\csr\ta_TRIX.obj \ ++..\..\..\..\..\temp\csr\ta_TSF.obj \ ++..\..\..\..\..\temp\csr\ta_TYPPRICE.obj \ ++..\..\..\..\..\temp\csr\ta_ULTOSC.obj \ ++..\..\..\..\..\temp\csr\ta_VAR.obj \ ++..\..\..\..\..\temp\csr\ta_WCLPRICE.obj \ ++..\..\..\..\..\temp\csr\ta_WILLR.obj \ ++..\..\..\..\..\temp\csr\ta_WMA.obj \ ++,; + +moc: $(SRCMOC) + +tmake: ../csr/win32/symantec/ta_func/Makefile + +../csr/win32/symantec/ta_func/Makefile: ta_func/ta_func.pro + tmake ta_func/ta_func.pro -o ../csr/win32/symantec/ta_func/Makefile + +dist: + $(ZIP) ta_func/ta_func.zip ta_func/ta_func.pro $(SOURCES) $(HEADERS) $(DIST) + +clean: + -del ..\..\..\..\..\temp\csr\ta_utility.obj + -del ..\..\..\..\..\temp\csr\ta_ACOS.obj + -del ..\..\..\..\..\temp\csr\ta_AD.obj + -del ..\..\..\..\..\temp\csr\ta_ADD.obj + -del ..\..\..\..\..\temp\csr\ta_ADOSC.obj + -del ..\..\..\..\..\temp\csr\ta_ADX.obj + -del ..\..\..\..\..\temp\csr\ta_ADXR.obj + -del ..\..\..\..\..\temp\csr\ta_APO.obj + -del ..\..\..\..\..\temp\csr\ta_AROON.obj + -del ..\..\..\..\..\temp\csr\ta_AROONOSC.obj + -del ..\..\..\..\..\temp\csr\ta_ASIN.obj + -del ..\..\..\..\..\temp\csr\ta_ATAN.obj + -del ..\..\..\..\..\temp\csr\ta_ATR.obj + -del ..\..\..\..\..\temp\csr\ta_AVGPRICE.obj + -del ..\..\..\..\..\temp\csr\ta_BBANDS.obj + -del ..\..\..\..\..\temp\csr\ta_BETA.obj + -del ..\..\..\..\..\temp\csr\ta_BOP.obj + -del ..\..\..\..\..\temp\csr\ta_CCI.obj + -del ..\..\..\..\..\temp\csr\ta_CDL2CROWS.obj + -del ..\..\..\..\..\temp\csr\ta_CDL3BLACKCROWS.obj + -del ..\..\..\..\..\temp\csr\ta_CDL3INSIDE.obj + -del ..\..\..\..\..\temp\csr\ta_CDL3LINESTRIKE.obj + -del ..\..\..\..\..\temp\csr\ta_CDL3OUTSIDE.obj + -del ..\..\..\..\..\temp\csr\ta_CDL3STARSINSOUTH.obj + -del ..\..\..\..\..\temp\csr\ta_CDL3WHITESOLDIERS.obj + -del ..\..\..\..\..\temp\csr\ta_CDLABANDONEDBABY.obj + -del ..\..\..\..\..\temp\csr\ta_CDLADVANCEBLOCK.obj + -del ..\..\..\..\..\temp\csr\ta_CDLBELTHOLD.obj + -del ..\..\..\..\..\temp\csr\ta_CDLBREAKAWAY.obj + -del ..\..\..\..\..\temp\csr\ta_CDLCLOSINGMARUBOZU.obj + -del ..\..\..\..\..\temp\csr\ta_CDLCONCEALBABYSWALL.obj + -del ..\..\..\..\..\temp\csr\ta_CDLCOUNTERATTACK.obj + -del ..\..\..\..\..\temp\csr\ta_CDLDARKCLOUDCOVER.obj + -del ..\..\..\..\..\temp\csr\ta_CDLDOJI.obj + -del ..\..\..\..\..\temp\csr\ta_CDLDOJISTAR.obj + -del ..\..\..\..\..\temp\csr\ta_CDLDRAGONFLYDOJI.obj + -del ..\..\..\..\..\temp\csr\ta_CDLENGULFING.obj + -del ..\..\..\..\..\temp\csr\ta_CDLEVENINGDOJISTAR.obj + -del ..\..\..\..\..\temp\csr\ta_CDLEVENINGSTAR.obj + -del ..\..\..\..\..\temp\csr\ta_CDLGAPSIDESIDEWHITE.obj + -del ..\..\..\..\..\temp\csr\ta_CDLGRAVESTONEDOJI.obj + -del ..\..\..\..\..\temp\csr\ta_CDLHAMMER.obj + -del ..\..\..\..\..\temp\csr\ta_CDLHANGINGMAN.obj + -del ..\..\..\..\..\temp\csr\ta_CDLHARAMI.obj + -del ..\..\..\..\..\temp\csr\ta_CDLHARAMICROSS.obj + -del ..\..\..\..\..\temp\csr\ta_CDLHIGHWAVE.obj + -del ..\..\..\..\..\temp\csr\ta_CDLHIKKAKE.obj + -del ..\..\..\..\..\temp\csr\ta_CDLHIKKAKEMOD.obj + -del ..\..\..\..\..\temp\csr\ta_CDLHOMINGPIGEON.obj + -del ..\..\..\..\..\temp\csr\ta_CDLIDENTICAL3CROWS.obj + -del ..\..\..\..\..\temp\csr\ta_CDLINNECK.obj + -del ..\..\..\..\..\temp\csr\ta_CDLINVERTEDHAMMER.obj + -del ..\..\..\..\..\temp\csr\ta_CDLKICKING.obj + -del ..\..\..\..\..\temp\csr\ta_CDLKICKINGBYLENGTH.obj + -del ..\..\..\..\..\temp\csr\ta_CDLLADDERBOTTOM.obj + -del ..\..\..\..\..\temp\csr\ta_CDLLONGLEGGEDDOJI.obj + -del ..\..\..\..\..\temp\csr\ta_CDLLONGLINE.obj + -del ..\..\..\..\..\temp\csr\ta_CDLMARUBOZU.obj + -del ..\..\..\..\..\temp\csr\ta_CDLMATCHINGLOW.obj + -del ..\..\..\..\..\temp\csr\ta_CDLMATHOLD.obj + -del ..\..\..\..\..\temp\csr\ta_CDLMORNINGDOJISTAR.obj + -del ..\..\..\..\..\temp\csr\ta_CDLMORNINGSTAR.obj + -del ..\..\..\..\..\temp\csr\ta_CDLONNECK.obj + -del ..\..\..\..\..\temp\csr\ta_CDLPIERCING.obj + -del ..\..\..\..\..\temp\csr\ta_CDLRICKSHAWMAN.obj + -del ..\..\..\..\..\temp\csr\ta_CDLRISEFALL3METHODS.obj + -del ..\..\..\..\..\temp\csr\ta_CDLSEPARATINGLINES.obj + -del ..\..\..\..\..\temp\csr\ta_CDLSHOOTINGSTAR.obj + -del ..\..\..\..\..\temp\csr\ta_CDLSHORTLINE.obj + -del ..\..\..\..\..\temp\csr\ta_CDLSPINNINGTOP.obj + -del ..\..\..\..\..\temp\csr\ta_CDLSTALLEDPATTERN.obj + -del ..\..\..\..\..\temp\csr\ta_CDLSTICKSANDWICH.obj + -del ..\..\..\..\..\temp\csr\ta_CDLTAKURI.obj + -del ..\..\..\..\..\temp\csr\ta_CDLTASUKIGAP.obj + -del ..\..\..\..\..\temp\csr\ta_CDLTHRUSTING.obj + -del ..\..\..\..\..\temp\csr\ta_CDLTRISTAR.obj + -del ..\..\..\..\..\temp\csr\ta_CDLUNIQUE3RIVER.obj + -del ..\..\..\..\..\temp\csr\ta_CDLUPSIDEGAP2CROWS.obj + -del ..\..\..\..\..\temp\csr\ta_CDLXSIDEGAP3METHODS.obj + -del ..\..\..\..\..\temp\csr\ta_CEIL.obj + -del ..\..\..\..\..\temp\csr\ta_CMO.obj + -del ..\..\..\..\..\temp\csr\ta_CORREL.obj + -del ..\..\..\..\..\temp\csr\ta_COS.obj + -del ..\..\..\..\..\temp\csr\ta_COSH.obj + -del ..\..\..\..\..\temp\csr\ta_DEMA.obj + -del ..\..\..\..\..\temp\csr\ta_DIV.obj + -del ..\..\..\..\..\temp\csr\ta_DX.obj + -del ..\..\..\..\..\temp\csr\ta_EMA.obj + -del ..\..\..\..\..\temp\csr\ta_EXP.obj + -del ..\..\..\..\..\temp\csr\ta_FLOOR.obj + -del ..\..\..\..\..\temp\csr\ta_HT_DCPERIOD.obj + -del ..\..\..\..\..\temp\csr\ta_HT_DCPHASE.obj + -del ..\..\..\..\..\temp\csr\ta_HT_PHASOR.obj + -del ..\..\..\..\..\temp\csr\ta_HT_SINE.obj + -del ..\..\..\..\..\temp\csr\ta_HT_TRENDLINE.obj + -del ..\..\..\..\..\temp\csr\ta_HT_TRENDMODE.obj + -del ..\..\..\..\..\temp\csr\ta_KAMA.obj + -del ..\..\..\..\..\temp\csr\ta_LINEARREG.obj + -del ..\..\..\..\..\temp\csr\ta_LINEARREG_ANGLE.obj + -del ..\..\..\..\..\temp\csr\ta_LINEARREG_INTERCEPT.obj + -del ..\..\..\..\..\temp\csr\ta_LINEARREG_SLOPE.obj + -del ..\..\..\..\..\temp\csr\ta_LN.obj + -del ..\..\..\..\..\temp\csr\ta_LOG10.obj + -del ..\..\..\..\..\temp\csr\ta_MA.obj + -del ..\..\..\..\..\temp\csr\ta_MACD.obj + -del ..\..\..\..\..\temp\csr\ta_MACDEXT.obj + -del ..\..\..\..\..\temp\csr\ta_MACDFIX.obj + -del ..\..\..\..\..\temp\csr\ta_MAMA.obj + -del ..\..\..\..\..\temp\csr\ta_MAVP.obj + -del ..\..\..\..\..\temp\csr\ta_MAX.obj + -del ..\..\..\..\..\temp\csr\ta_MAXINDEX.obj + -del ..\..\..\..\..\temp\csr\ta_MEDPRICE.obj + -del ..\..\..\..\..\temp\csr\ta_MFI.obj + -del ..\..\..\..\..\temp\csr\ta_MIDPOINT.obj + -del ..\..\..\..\..\temp\csr\ta_MIDPRICE.obj + -del ..\..\..\..\..\temp\csr\ta_MIN.obj + -del ..\..\..\..\..\temp\csr\ta_MININDEX.obj + -del ..\..\..\..\..\temp\csr\ta_MINMAX.obj + -del ..\..\..\..\..\temp\csr\ta_MINMAXINDEX.obj + -del ..\..\..\..\..\temp\csr\ta_MINUS_DI.obj + -del ..\..\..\..\..\temp\csr\ta_MINUS_DM.obj + -del ..\..\..\..\..\temp\csr\ta_MOM.obj + -del ..\..\..\..\..\temp\csr\ta_MULT.obj + -del ..\..\..\..\..\temp\csr\ta_NATR.obj + -del ..\..\..\..\..\temp\csr\ta_OBV.obj + -del ..\..\..\..\..\temp\csr\ta_PLUS_DI.obj + -del ..\..\..\..\..\temp\csr\ta_PLUS_DM.obj + -del ..\..\..\..\..\temp\csr\ta_PPO.obj + -del ..\..\..\..\..\temp\csr\ta_ROC.obj + -del ..\..\..\..\..\temp\csr\ta_ROCP.obj + -del ..\..\..\..\..\temp\csr\ta_ROCR.obj + -del ..\..\..\..\..\temp\csr\ta_ROCR100.obj + -del ..\..\..\..\..\temp\csr\ta_RSI.obj + -del ..\..\..\..\..\temp\csr\ta_SAR.obj + -del ..\..\..\..\..\temp\csr\ta_SAREXT.obj + -del ..\..\..\..\..\temp\csr\ta_SIN.obj + -del ..\..\..\..\..\temp\csr\ta_SINH.obj + -del ..\..\..\..\..\temp\csr\ta_SMA.obj + -del ..\..\..\..\..\temp\csr\ta_SQRT.obj + -del ..\..\..\..\..\temp\csr\ta_STDDEV.obj + -del ..\..\..\..\..\temp\csr\ta_STOCH.obj + -del ..\..\..\..\..\temp\csr\ta_STOCHF.obj + -del ..\..\..\..\..\temp\csr\ta_STOCHRSI.obj + -del ..\..\..\..\..\temp\csr\ta_SUB.obj + -del ..\..\..\..\..\temp\csr\ta_SUM.obj + -del ..\..\..\..\..\temp\csr\ta_T3.obj + -del ..\..\..\..\..\temp\csr\ta_TAN.obj + -del ..\..\..\..\..\temp\csr\ta_TANH.obj + -del ..\..\..\..\..\temp\csr\ta_TEMA.obj + -del ..\..\..\..\..\temp\csr\ta_TRANGE.obj + -del ..\..\..\..\..\temp\csr\ta_TRIMA.obj + -del ..\..\..\..\..\temp\csr\ta_TRIX.obj + -del ..\..\..\..\..\temp\csr\ta_TSF.obj + -del ..\..\..\..\..\temp\csr\ta_TYPPRICE.obj + -del ..\..\..\..\..\temp\csr\ta_ULTOSC.obj + -del ..\..\..\..\..\temp\csr\ta_VAR.obj + -del ..\..\..\..\..\temp\csr\ta_WCLPRICE.obj + -del ..\..\..\..\..\temp\csr\ta_WILLR.obj + -del ..\..\..\..\..\temp\csr\ta_WMA.obj + -del $(TARGET) + -del ../../../../../bin/*.map + -del ../../../../../bin/*._xe + -del ../../../../../bin/*.tds + -del ../../../../../bin/*.pdb + -del ../../../../../bin/*.pbo + -del ../../../../../bin/*.pbi + -del ../../../../../bin/*.pbt + -del ../../../../../temp/csr/*.pch + -del ../../../../../temp/csr/*.idb + -del ../../../../../temp/csr/ta_func/*.pch + -del ../../../../../temp/csr/ta_func/*.idb + -del ../../../../../temp/csr/ta_func/*.obj + +####### Compile + +..\..\..\..\..\temp\csr\ta_utility.obj: ..\..\..\..\..\src\ta_func\ta_utility.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_utility.obj ..\..\..\..\..\src\ta_func\ta_utility.c + +..\..\..\..\..\temp\csr\ta_ACOS.obj: ..\..\..\..\..\src\ta_func\ta_ACOS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_ACOS.obj ..\..\..\..\..\src\ta_func\ta_ACOS.c + +..\..\..\..\..\temp\csr\ta_AD.obj: ..\..\..\..\..\src\ta_func\ta_AD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_AD.obj ..\..\..\..\..\src\ta_func\ta_AD.c + +..\..\..\..\..\temp\csr\ta_ADD.obj: ..\..\..\..\..\src\ta_func\ta_ADD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_ADD.obj ..\..\..\..\..\src\ta_func\ta_ADD.c + +..\..\..\..\..\temp\csr\ta_ADOSC.obj: ..\..\..\..\..\src\ta_func\ta_ADOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_ADOSC.obj ..\..\..\..\..\src\ta_func\ta_ADOSC.c + +..\..\..\..\..\temp\csr\ta_ADX.obj: ..\..\..\..\..\src\ta_func\ta_ADX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_ADX.obj ..\..\..\..\..\src\ta_func\ta_ADX.c + +..\..\..\..\..\temp\csr\ta_ADXR.obj: ..\..\..\..\..\src\ta_func\ta_ADXR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_ADXR.obj ..\..\..\..\..\src\ta_func\ta_ADXR.c + +..\..\..\..\..\temp\csr\ta_APO.obj: ..\..\..\..\..\src\ta_func\ta_APO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_APO.obj ..\..\..\..\..\src\ta_func\ta_APO.c + +..\..\..\..\..\temp\csr\ta_AROON.obj: ..\..\..\..\..\src\ta_func\ta_AROON.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_AROON.obj ..\..\..\..\..\src\ta_func\ta_AROON.c + +..\..\..\..\..\temp\csr\ta_AROONOSC.obj: ..\..\..\..\..\src\ta_func\ta_AROONOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_AROONOSC.obj ..\..\..\..\..\src\ta_func\ta_AROONOSC.c + +..\..\..\..\..\temp\csr\ta_ASIN.obj: ..\..\..\..\..\src\ta_func\ta_ASIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_ASIN.obj ..\..\..\..\..\src\ta_func\ta_ASIN.c + +..\..\..\..\..\temp\csr\ta_ATAN.obj: ..\..\..\..\..\src\ta_func\ta_ATAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_ATAN.obj ..\..\..\..\..\src\ta_func\ta_ATAN.c + +..\..\..\..\..\temp\csr\ta_ATR.obj: ..\..\..\..\..\src\ta_func\ta_ATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_ATR.obj ..\..\..\..\..\src\ta_func\ta_ATR.c + +..\..\..\..\..\temp\csr\ta_AVGPRICE.obj: ..\..\..\..\..\src\ta_func\ta_AVGPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_AVGPRICE.obj ..\..\..\..\..\src\ta_func\ta_AVGPRICE.c + +..\..\..\..\..\temp\csr\ta_BBANDS.obj: ..\..\..\..\..\src\ta_func\ta_BBANDS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_BBANDS.obj ..\..\..\..\..\src\ta_func\ta_BBANDS.c + +..\..\..\..\..\temp\csr\ta_BETA.obj: ..\..\..\..\..\src\ta_func\ta_BETA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_BETA.obj ..\..\..\..\..\src\ta_func\ta_BETA.c + +..\..\..\..\..\temp\csr\ta_BOP.obj: ..\..\..\..\..\src\ta_func\ta_BOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_BOP.obj ..\..\..\..\..\src\ta_func\ta_BOP.c + +..\..\..\..\..\temp\csr\ta_CCI.obj: ..\..\..\..\..\src\ta_func\ta_CCI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CCI.obj ..\..\..\..\..\src\ta_func\ta_CCI.c + +..\..\..\..\..\temp\csr\ta_CDL2CROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDL2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDL2CROWS.obj ..\..\..\..\..\src\ta_func\ta_CDL2CROWS.c + +..\..\..\..\..\temp\csr\ta_CDL3BLACKCROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDL3BLACKCROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDL3BLACKCROWS.obj ..\..\..\..\..\src\ta_func\ta_CDL3BLACKCROWS.c + +..\..\..\..\..\temp\csr\ta_CDL3INSIDE.obj: ..\..\..\..\..\src\ta_func\ta_CDL3INSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDL3INSIDE.obj ..\..\..\..\..\src\ta_func\ta_CDL3INSIDE.c + +..\..\..\..\..\temp\csr\ta_CDL3LINESTRIKE.obj: ..\..\..\..\..\src\ta_func\ta_CDL3LINESTRIKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDL3LINESTRIKE.obj ..\..\..\..\..\src\ta_func\ta_CDL3LINESTRIKE.c + +..\..\..\..\..\temp\csr\ta_CDL3OUTSIDE.obj: ..\..\..\..\..\src\ta_func\ta_CDL3OUTSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDL3OUTSIDE.obj ..\..\..\..\..\src\ta_func\ta_CDL3OUTSIDE.c + +..\..\..\..\..\temp\csr\ta_CDL3STARSINSOUTH.obj: ..\..\..\..\..\src\ta_func\ta_CDL3STARSINSOUTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDL3STARSINSOUTH.obj ..\..\..\..\..\src\ta_func\ta_CDL3STARSINSOUTH.c + +..\..\..\..\..\temp\csr\ta_CDL3WHITESOLDIERS.obj: ..\..\..\..\..\src\ta_func\ta_CDL3WHITESOLDIERS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDL3WHITESOLDIERS.obj ..\..\..\..\..\src\ta_func\ta_CDL3WHITESOLDIERS.c + +..\..\..\..\..\temp\csr\ta_CDLABANDONEDBABY.obj: ..\..\..\..\..\src\ta_func\ta_CDLABANDONEDBABY.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLABANDONEDBABY.obj ..\..\..\..\..\src\ta_func\ta_CDLABANDONEDBABY.c + +..\..\..\..\..\temp\csr\ta_CDLADVANCEBLOCK.obj: ..\..\..\..\..\src\ta_func\ta_CDLADVANCEBLOCK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLADVANCEBLOCK.obj ..\..\..\..\..\src\ta_func\ta_CDLADVANCEBLOCK.c + +..\..\..\..\..\temp\csr\ta_CDLBELTHOLD.obj: ..\..\..\..\..\src\ta_func\ta_CDLBELTHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLBELTHOLD.obj ..\..\..\..\..\src\ta_func\ta_CDLBELTHOLD.c + +..\..\..\..\..\temp\csr\ta_CDLBREAKAWAY.obj: ..\..\..\..\..\src\ta_func\ta_CDLBREAKAWAY.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLBREAKAWAY.obj ..\..\..\..\..\src\ta_func\ta_CDLBREAKAWAY.c + +..\..\..\..\..\temp\csr\ta_CDLCLOSINGMARUBOZU.obj: ..\..\..\..\..\src\ta_func\ta_CDLCLOSINGMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLCLOSINGMARUBOZU.obj ..\..\..\..\..\src\ta_func\ta_CDLCLOSINGMARUBOZU.c + +..\..\..\..\..\temp\csr\ta_CDLCONCEALBABYSWALL.obj: ..\..\..\..\..\src\ta_func\ta_CDLCONCEALBABYSWALL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLCONCEALBABYSWALL.obj ..\..\..\..\..\src\ta_func\ta_CDLCONCEALBABYSWALL.c + +..\..\..\..\..\temp\csr\ta_CDLCOUNTERATTACK.obj: ..\..\..\..\..\src\ta_func\ta_CDLCOUNTERATTACK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLCOUNTERATTACK.obj ..\..\..\..\..\src\ta_func\ta_CDLCOUNTERATTACK.c + +..\..\..\..\..\temp\csr\ta_CDLDARKCLOUDCOVER.obj: ..\..\..\..\..\src\ta_func\ta_CDLDARKCLOUDCOVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLDARKCLOUDCOVER.obj ..\..\..\..\..\src\ta_func\ta_CDLDARKCLOUDCOVER.c + +..\..\..\..\..\temp\csr\ta_CDLDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLDOJI.c + +..\..\..\..\..\temp\csr\ta_CDLDOJISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLDOJISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLDOJISTAR.c + +..\..\..\..\..\temp\csr\ta_CDLDRAGONFLYDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLDRAGONFLYDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLDRAGONFLYDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLDRAGONFLYDOJI.c + +..\..\..\..\..\temp\csr\ta_CDLENGULFING.obj: ..\..\..\..\..\src\ta_func\ta_CDLENGULFING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLENGULFING.obj ..\..\..\..\..\src\ta_func\ta_CDLENGULFING.c + +..\..\..\..\..\temp\csr\ta_CDLEVENINGDOJISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLEVENINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLEVENINGDOJISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLEVENINGDOJISTAR.c + +..\..\..\..\..\temp\csr\ta_CDLEVENINGSTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLEVENINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLEVENINGSTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLEVENINGSTAR.c + +..\..\..\..\..\temp\csr\ta_CDLGAPSIDESIDEWHITE.obj: ..\..\..\..\..\src\ta_func\ta_CDLGAPSIDESIDEWHITE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLGAPSIDESIDEWHITE.obj ..\..\..\..\..\src\ta_func\ta_CDLGAPSIDESIDEWHITE.c + +..\..\..\..\..\temp\csr\ta_CDLGRAVESTONEDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLGRAVESTONEDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLGRAVESTONEDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLGRAVESTONEDOJI.c + +..\..\..\..\..\temp\csr\ta_CDLHAMMER.obj: ..\..\..\..\..\src\ta_func\ta_CDLHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLHAMMER.obj ..\..\..\..\..\src\ta_func\ta_CDLHAMMER.c + +..\..\..\..\..\temp\csr\ta_CDLHANGINGMAN.obj: ..\..\..\..\..\src\ta_func\ta_CDLHANGINGMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLHANGINGMAN.obj ..\..\..\..\..\src\ta_func\ta_CDLHANGINGMAN.c + +..\..\..\..\..\temp\csr\ta_CDLHARAMI.obj: ..\..\..\..\..\src\ta_func\ta_CDLHARAMI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLHARAMI.obj ..\..\..\..\..\src\ta_func\ta_CDLHARAMI.c + +..\..\..\..\..\temp\csr\ta_CDLHARAMICROSS.obj: ..\..\..\..\..\src\ta_func\ta_CDLHARAMICROSS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLHARAMICROSS.obj ..\..\..\..\..\src\ta_func\ta_CDLHARAMICROSS.c + +..\..\..\..\..\temp\csr\ta_CDLHIGHWAVE.obj: ..\..\..\..\..\src\ta_func\ta_CDLHIGHWAVE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLHIGHWAVE.obj ..\..\..\..\..\src\ta_func\ta_CDLHIGHWAVE.c + +..\..\..\..\..\temp\csr\ta_CDLHIKKAKE.obj: ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLHIKKAKE.obj ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKE.c + +..\..\..\..\..\temp\csr\ta_CDLHIKKAKEMOD.obj: ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKEMOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLHIKKAKEMOD.obj ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKEMOD.c + +..\..\..\..\..\temp\csr\ta_CDLHOMINGPIGEON.obj: ..\..\..\..\..\src\ta_func\ta_CDLHOMINGPIGEON.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLHOMINGPIGEON.obj ..\..\..\..\..\src\ta_func\ta_CDLHOMINGPIGEON.c + +..\..\..\..\..\temp\csr\ta_CDLIDENTICAL3CROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDLIDENTICAL3CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLIDENTICAL3CROWS.obj ..\..\..\..\..\src\ta_func\ta_CDLIDENTICAL3CROWS.c + +..\..\..\..\..\temp\csr\ta_CDLINNECK.obj: ..\..\..\..\..\src\ta_func\ta_CDLINNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLINNECK.obj ..\..\..\..\..\src\ta_func\ta_CDLINNECK.c + +..\..\..\..\..\temp\csr\ta_CDLINVERTEDHAMMER.obj: ..\..\..\..\..\src\ta_func\ta_CDLINVERTEDHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLINVERTEDHAMMER.obj ..\..\..\..\..\src\ta_func\ta_CDLINVERTEDHAMMER.c + +..\..\..\..\..\temp\csr\ta_CDLKICKING.obj: ..\..\..\..\..\src\ta_func\ta_CDLKICKING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLKICKING.obj ..\..\..\..\..\src\ta_func\ta_CDLKICKING.c + +..\..\..\..\..\temp\csr\ta_CDLKICKINGBYLENGTH.obj: ..\..\..\..\..\src\ta_func\ta_CDLKICKINGBYLENGTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLKICKINGBYLENGTH.obj ..\..\..\..\..\src\ta_func\ta_CDLKICKINGBYLENGTH.c + +..\..\..\..\..\temp\csr\ta_CDLLADDERBOTTOM.obj: ..\..\..\..\..\src\ta_func\ta_CDLLADDERBOTTOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLLADDERBOTTOM.obj ..\..\..\..\..\src\ta_func\ta_CDLLADDERBOTTOM.c + +..\..\..\..\..\temp\csr\ta_CDLLONGLEGGEDDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLLONGLEGGEDDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLLONGLEGGEDDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLLONGLEGGEDDOJI.c + +..\..\..\..\..\temp\csr\ta_CDLLONGLINE.obj: ..\..\..\..\..\src\ta_func\ta_CDLLONGLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLLONGLINE.obj ..\..\..\..\..\src\ta_func\ta_CDLLONGLINE.c + +..\..\..\..\..\temp\csr\ta_CDLMARUBOZU.obj: ..\..\..\..\..\src\ta_func\ta_CDLMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLMARUBOZU.obj ..\..\..\..\..\src\ta_func\ta_CDLMARUBOZU.c + +..\..\..\..\..\temp\csr\ta_CDLMATCHINGLOW.obj: ..\..\..\..\..\src\ta_func\ta_CDLMATCHINGLOW.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLMATCHINGLOW.obj ..\..\..\..\..\src\ta_func\ta_CDLMATCHINGLOW.c + +..\..\..\..\..\temp\csr\ta_CDLMATHOLD.obj: ..\..\..\..\..\src\ta_func\ta_CDLMATHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLMATHOLD.obj ..\..\..\..\..\src\ta_func\ta_CDLMATHOLD.c + +..\..\..\..\..\temp\csr\ta_CDLMORNINGDOJISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLMORNINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLMORNINGDOJISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLMORNINGDOJISTAR.c + +..\..\..\..\..\temp\csr\ta_CDLMORNINGSTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLMORNINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLMORNINGSTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLMORNINGSTAR.c + +..\..\..\..\..\temp\csr\ta_CDLONNECK.obj: ..\..\..\..\..\src\ta_func\ta_CDLONNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLONNECK.obj ..\..\..\..\..\src\ta_func\ta_CDLONNECK.c + +..\..\..\..\..\temp\csr\ta_CDLPIERCING.obj: ..\..\..\..\..\src\ta_func\ta_CDLPIERCING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLPIERCING.obj ..\..\..\..\..\src\ta_func\ta_CDLPIERCING.c + +..\..\..\..\..\temp\csr\ta_CDLRICKSHAWMAN.obj: ..\..\..\..\..\src\ta_func\ta_CDLRICKSHAWMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLRICKSHAWMAN.obj ..\..\..\..\..\src\ta_func\ta_CDLRICKSHAWMAN.c + +..\..\..\..\..\temp\csr\ta_CDLRISEFALL3METHODS.obj: ..\..\..\..\..\src\ta_func\ta_CDLRISEFALL3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLRISEFALL3METHODS.obj ..\..\..\..\..\src\ta_func\ta_CDLRISEFALL3METHODS.c + +..\..\..\..\..\temp\csr\ta_CDLSEPARATINGLINES.obj: ..\..\..\..\..\src\ta_func\ta_CDLSEPARATINGLINES.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLSEPARATINGLINES.obj ..\..\..\..\..\src\ta_func\ta_CDLSEPARATINGLINES.c + +..\..\..\..\..\temp\csr\ta_CDLSHOOTINGSTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLSHOOTINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLSHOOTINGSTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLSHOOTINGSTAR.c + +..\..\..\..\..\temp\csr\ta_CDLSHORTLINE.obj: ..\..\..\..\..\src\ta_func\ta_CDLSHORTLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLSHORTLINE.obj ..\..\..\..\..\src\ta_func\ta_CDLSHORTLINE.c + +..\..\..\..\..\temp\csr\ta_CDLSPINNINGTOP.obj: ..\..\..\..\..\src\ta_func\ta_CDLSPINNINGTOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLSPINNINGTOP.obj ..\..\..\..\..\src\ta_func\ta_CDLSPINNINGTOP.c + +..\..\..\..\..\temp\csr\ta_CDLSTALLEDPATTERN.obj: ..\..\..\..\..\src\ta_func\ta_CDLSTALLEDPATTERN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLSTALLEDPATTERN.obj ..\..\..\..\..\src\ta_func\ta_CDLSTALLEDPATTERN.c + +..\..\..\..\..\temp\csr\ta_CDLSTICKSANDWICH.obj: ..\..\..\..\..\src\ta_func\ta_CDLSTICKSANDWICH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLSTICKSANDWICH.obj ..\..\..\..\..\src\ta_func\ta_CDLSTICKSANDWICH.c + +..\..\..\..\..\temp\csr\ta_CDLTAKURI.obj: ..\..\..\..\..\src\ta_func\ta_CDLTAKURI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLTAKURI.obj ..\..\..\..\..\src\ta_func\ta_CDLTAKURI.c + +..\..\..\..\..\temp\csr\ta_CDLTASUKIGAP.obj: ..\..\..\..\..\src\ta_func\ta_CDLTASUKIGAP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLTASUKIGAP.obj ..\..\..\..\..\src\ta_func\ta_CDLTASUKIGAP.c + +..\..\..\..\..\temp\csr\ta_CDLTHRUSTING.obj: ..\..\..\..\..\src\ta_func\ta_CDLTHRUSTING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLTHRUSTING.obj ..\..\..\..\..\src\ta_func\ta_CDLTHRUSTING.c + +..\..\..\..\..\temp\csr\ta_CDLTRISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLTRISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLTRISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLTRISTAR.c + +..\..\..\..\..\temp\csr\ta_CDLUNIQUE3RIVER.obj: ..\..\..\..\..\src\ta_func\ta_CDLUNIQUE3RIVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLUNIQUE3RIVER.obj ..\..\..\..\..\src\ta_func\ta_CDLUNIQUE3RIVER.c + +..\..\..\..\..\temp\csr\ta_CDLUPSIDEGAP2CROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDLUPSIDEGAP2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLUPSIDEGAP2CROWS.obj ..\..\..\..\..\src\ta_func\ta_CDLUPSIDEGAP2CROWS.c + +..\..\..\..\..\temp\csr\ta_CDLXSIDEGAP3METHODS.obj: ..\..\..\..\..\src\ta_func\ta_CDLXSIDEGAP3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLXSIDEGAP3METHODS.obj ..\..\..\..\..\src\ta_func\ta_CDLXSIDEGAP3METHODS.c + +..\..\..\..\..\temp\csr\ta_CEIL.obj: ..\..\..\..\..\src\ta_func\ta_CEIL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CEIL.obj ..\..\..\..\..\src\ta_func\ta_CEIL.c + +..\..\..\..\..\temp\csr\ta_CMO.obj: ..\..\..\..\..\src\ta_func\ta_CMO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CMO.obj ..\..\..\..\..\src\ta_func\ta_CMO.c + +..\..\..\..\..\temp\csr\ta_CORREL.obj: ..\..\..\..\..\src\ta_func\ta_CORREL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CORREL.obj ..\..\..\..\..\src\ta_func\ta_CORREL.c + +..\..\..\..\..\temp\csr\ta_COS.obj: ..\..\..\..\..\src\ta_func\ta_COS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_COS.obj ..\..\..\..\..\src\ta_func\ta_COS.c + +..\..\..\..\..\temp\csr\ta_COSH.obj: ..\..\..\..\..\src\ta_func\ta_COSH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_COSH.obj ..\..\..\..\..\src\ta_func\ta_COSH.c + +..\..\..\..\..\temp\csr\ta_DEMA.obj: ..\..\..\..\..\src\ta_func\ta_DEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_DEMA.obj ..\..\..\..\..\src\ta_func\ta_DEMA.c + +..\..\..\..\..\temp\csr\ta_DIV.obj: ..\..\..\..\..\src\ta_func\ta_DIV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_DIV.obj ..\..\..\..\..\src\ta_func\ta_DIV.c + +..\..\..\..\..\temp\csr\ta_DX.obj: ..\..\..\..\..\src\ta_func\ta_DX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_DX.obj ..\..\..\..\..\src\ta_func\ta_DX.c + +..\..\..\..\..\temp\csr\ta_EMA.obj: ..\..\..\..\..\src\ta_func\ta_EMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_EMA.obj ..\..\..\..\..\src\ta_func\ta_EMA.c + +..\..\..\..\..\temp\csr\ta_EXP.obj: ..\..\..\..\..\src\ta_func\ta_EXP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_EXP.obj ..\..\..\..\..\src\ta_func\ta_EXP.c + +..\..\..\..\..\temp\csr\ta_FLOOR.obj: ..\..\..\..\..\src\ta_func\ta_FLOOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_FLOOR.obj ..\..\..\..\..\src\ta_func\ta_FLOOR.c + +..\..\..\..\..\temp\csr\ta_HT_DCPERIOD.obj: ..\..\..\..\..\src\ta_func\ta_HT_DCPERIOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_HT_DCPERIOD.obj ..\..\..\..\..\src\ta_func\ta_HT_DCPERIOD.c + +..\..\..\..\..\temp\csr\ta_HT_DCPHASE.obj: ..\..\..\..\..\src\ta_func\ta_HT_DCPHASE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_HT_DCPHASE.obj ..\..\..\..\..\src\ta_func\ta_HT_DCPHASE.c + +..\..\..\..\..\temp\csr\ta_HT_PHASOR.obj: ..\..\..\..\..\src\ta_func\ta_HT_PHASOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_HT_PHASOR.obj ..\..\..\..\..\src\ta_func\ta_HT_PHASOR.c + +..\..\..\..\..\temp\csr\ta_HT_SINE.obj: ..\..\..\..\..\src\ta_func\ta_HT_SINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_HT_SINE.obj ..\..\..\..\..\src\ta_func\ta_HT_SINE.c + +..\..\..\..\..\temp\csr\ta_HT_TRENDLINE.obj: ..\..\..\..\..\src\ta_func\ta_HT_TRENDLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_HT_TRENDLINE.obj ..\..\..\..\..\src\ta_func\ta_HT_TRENDLINE.c + +..\..\..\..\..\temp\csr\ta_HT_TRENDMODE.obj: ..\..\..\..\..\src\ta_func\ta_HT_TRENDMODE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_HT_TRENDMODE.obj ..\..\..\..\..\src\ta_func\ta_HT_TRENDMODE.c + +..\..\..\..\..\temp\csr\ta_KAMA.obj: ..\..\..\..\..\src\ta_func\ta_KAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_KAMA.obj ..\..\..\..\..\src\ta_func\ta_KAMA.c + +..\..\..\..\..\temp\csr\ta_LINEARREG.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_LINEARREG.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG.c + +..\..\..\..\..\temp\csr\ta_LINEARREG_ANGLE.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG_ANGLE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_LINEARREG_ANGLE.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG_ANGLE.c + +..\..\..\..\..\temp\csr\ta_LINEARREG_INTERCEPT.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG_INTERCEPT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_LINEARREG_INTERCEPT.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG_INTERCEPT.c + +..\..\..\..\..\temp\csr\ta_LINEARREG_SLOPE.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG_SLOPE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_LINEARREG_SLOPE.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG_SLOPE.c + +..\..\..\..\..\temp\csr\ta_LN.obj: ..\..\..\..\..\src\ta_func\ta_LN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_LN.obj ..\..\..\..\..\src\ta_func\ta_LN.c + +..\..\..\..\..\temp\csr\ta_LOG10.obj: ..\..\..\..\..\src\ta_func\ta_LOG10.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_LOG10.obj ..\..\..\..\..\src\ta_func\ta_LOG10.c + +..\..\..\..\..\temp\csr\ta_MA.obj: ..\..\..\..\..\src\ta_func\ta_MA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_MA.obj ..\..\..\..\..\src\ta_func\ta_MA.c + +..\..\..\..\..\temp\csr\ta_MACD.obj: ..\..\..\..\..\src\ta_func\ta_MACD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_MACD.obj ..\..\..\..\..\src\ta_func\ta_MACD.c + +..\..\..\..\..\temp\csr\ta_MACDEXT.obj: ..\..\..\..\..\src\ta_func\ta_MACDEXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_MACDEXT.obj ..\..\..\..\..\src\ta_func\ta_MACDEXT.c + +..\..\..\..\..\temp\csr\ta_MACDFIX.obj: ..\..\..\..\..\src\ta_func\ta_MACDFIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_MACDFIX.obj ..\..\..\..\..\src\ta_func\ta_MACDFIX.c + +..\..\..\..\..\temp\csr\ta_MAMA.obj: ..\..\..\..\..\src\ta_func\ta_MAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_MAMA.obj ..\..\..\..\..\src\ta_func\ta_MAMA.c + +..\..\..\..\..\temp\csr\ta_MAVP.obj: ..\..\..\..\..\src\ta_func\ta_MAVP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_MAVP.obj ..\..\..\..\..\src\ta_func\ta_MAVP.c + +..\..\..\..\..\temp\csr\ta_MAX.obj: ..\..\..\..\..\src\ta_func\ta_MAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_MAX.obj ..\..\..\..\..\src\ta_func\ta_MAX.c + +..\..\..\..\..\temp\csr\ta_MAXINDEX.obj: ..\..\..\..\..\src\ta_func\ta_MAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_MAXINDEX.obj ..\..\..\..\..\src\ta_func\ta_MAXINDEX.c + +..\..\..\..\..\temp\csr\ta_MEDPRICE.obj: ..\..\..\..\..\src\ta_func\ta_MEDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_MEDPRICE.obj ..\..\..\..\..\src\ta_func\ta_MEDPRICE.c + +..\..\..\..\..\temp\csr\ta_MFI.obj: ..\..\..\..\..\src\ta_func\ta_MFI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_MFI.obj ..\..\..\..\..\src\ta_func\ta_MFI.c + +..\..\..\..\..\temp\csr\ta_MIDPOINT.obj: ..\..\..\..\..\src\ta_func\ta_MIDPOINT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_MIDPOINT.obj ..\..\..\..\..\src\ta_func\ta_MIDPOINT.c + +..\..\..\..\..\temp\csr\ta_MIDPRICE.obj: ..\..\..\..\..\src\ta_func\ta_MIDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_MIDPRICE.obj ..\..\..\..\..\src\ta_func\ta_MIDPRICE.c + +..\..\..\..\..\temp\csr\ta_MIN.obj: ..\..\..\..\..\src\ta_func\ta_MIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_MIN.obj ..\..\..\..\..\src\ta_func\ta_MIN.c + +..\..\..\..\..\temp\csr\ta_MININDEX.obj: ..\..\..\..\..\src\ta_func\ta_MININDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_MININDEX.obj ..\..\..\..\..\src\ta_func\ta_MININDEX.c + +..\..\..\..\..\temp\csr\ta_MINMAX.obj: ..\..\..\..\..\src\ta_func\ta_MINMAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_MINMAX.obj ..\..\..\..\..\src\ta_func\ta_MINMAX.c + +..\..\..\..\..\temp\csr\ta_MINMAXINDEX.obj: ..\..\..\..\..\src\ta_func\ta_MINMAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_MINMAXINDEX.obj ..\..\..\..\..\src\ta_func\ta_MINMAXINDEX.c + +..\..\..\..\..\temp\csr\ta_MINUS_DI.obj: ..\..\..\..\..\src\ta_func\ta_MINUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_MINUS_DI.obj ..\..\..\..\..\src\ta_func\ta_MINUS_DI.c + +..\..\..\..\..\temp\csr\ta_MINUS_DM.obj: ..\..\..\..\..\src\ta_func\ta_MINUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_MINUS_DM.obj ..\..\..\..\..\src\ta_func\ta_MINUS_DM.c + +..\..\..\..\..\temp\csr\ta_MOM.obj: ..\..\..\..\..\src\ta_func\ta_MOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_MOM.obj ..\..\..\..\..\src\ta_func\ta_MOM.c + +..\..\..\..\..\temp\csr\ta_MULT.obj: ..\..\..\..\..\src\ta_func\ta_MULT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_MULT.obj ..\..\..\..\..\src\ta_func\ta_MULT.c + +..\..\..\..\..\temp\csr\ta_NATR.obj: ..\..\..\..\..\src\ta_func\ta_NATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_NATR.obj ..\..\..\..\..\src\ta_func\ta_NATR.c + +..\..\..\..\..\temp\csr\ta_OBV.obj: ..\..\..\..\..\src\ta_func\ta_OBV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_OBV.obj ..\..\..\..\..\src\ta_func\ta_OBV.c + +..\..\..\..\..\temp\csr\ta_PLUS_DI.obj: ..\..\..\..\..\src\ta_func\ta_PLUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_PLUS_DI.obj ..\..\..\..\..\src\ta_func\ta_PLUS_DI.c + +..\..\..\..\..\temp\csr\ta_PLUS_DM.obj: ..\..\..\..\..\src\ta_func\ta_PLUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_PLUS_DM.obj ..\..\..\..\..\src\ta_func\ta_PLUS_DM.c + +..\..\..\..\..\temp\csr\ta_PPO.obj: ..\..\..\..\..\src\ta_func\ta_PPO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_PPO.obj ..\..\..\..\..\src\ta_func\ta_PPO.c + +..\..\..\..\..\temp\csr\ta_ROC.obj: ..\..\..\..\..\src\ta_func\ta_ROC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_ROC.obj ..\..\..\..\..\src\ta_func\ta_ROC.c + +..\..\..\..\..\temp\csr\ta_ROCP.obj: ..\..\..\..\..\src\ta_func\ta_ROCP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_ROCP.obj ..\..\..\..\..\src\ta_func\ta_ROCP.c + +..\..\..\..\..\temp\csr\ta_ROCR.obj: ..\..\..\..\..\src\ta_func\ta_ROCR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_ROCR.obj ..\..\..\..\..\src\ta_func\ta_ROCR.c + +..\..\..\..\..\temp\csr\ta_ROCR100.obj: ..\..\..\..\..\src\ta_func\ta_ROCR100.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_ROCR100.obj ..\..\..\..\..\src\ta_func\ta_ROCR100.c + +..\..\..\..\..\temp\csr\ta_RSI.obj: ..\..\..\..\..\src\ta_func\ta_RSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_RSI.obj ..\..\..\..\..\src\ta_func\ta_RSI.c + +..\..\..\..\..\temp\csr\ta_SAR.obj: ..\..\..\..\..\src\ta_func\ta_SAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_SAR.obj ..\..\..\..\..\src\ta_func\ta_SAR.c + +..\..\..\..\..\temp\csr\ta_SAREXT.obj: ..\..\..\..\..\src\ta_func\ta_SAREXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_SAREXT.obj ..\..\..\..\..\src\ta_func\ta_SAREXT.c + +..\..\..\..\..\temp\csr\ta_SIN.obj: ..\..\..\..\..\src\ta_func\ta_SIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_SIN.obj ..\..\..\..\..\src\ta_func\ta_SIN.c + +..\..\..\..\..\temp\csr\ta_SINH.obj: ..\..\..\..\..\src\ta_func\ta_SINH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_SINH.obj ..\..\..\..\..\src\ta_func\ta_SINH.c + +..\..\..\..\..\temp\csr\ta_SMA.obj: ..\..\..\..\..\src\ta_func\ta_SMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_SMA.obj ..\..\..\..\..\src\ta_func\ta_SMA.c + +..\..\..\..\..\temp\csr\ta_SQRT.obj: ..\..\..\..\..\src\ta_func\ta_SQRT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_SQRT.obj ..\..\..\..\..\src\ta_func\ta_SQRT.c + +..\..\..\..\..\temp\csr\ta_STDDEV.obj: ..\..\..\..\..\src\ta_func\ta_STDDEV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_STDDEV.obj ..\..\..\..\..\src\ta_func\ta_STDDEV.c + +..\..\..\..\..\temp\csr\ta_STOCH.obj: ..\..\..\..\..\src\ta_func\ta_STOCH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_STOCH.obj ..\..\..\..\..\src\ta_func\ta_STOCH.c + +..\..\..\..\..\temp\csr\ta_STOCHF.obj: ..\..\..\..\..\src\ta_func\ta_STOCHF.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_STOCHF.obj ..\..\..\..\..\src\ta_func\ta_STOCHF.c + +..\..\..\..\..\temp\csr\ta_STOCHRSI.obj: ..\..\..\..\..\src\ta_func\ta_STOCHRSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_STOCHRSI.obj ..\..\..\..\..\src\ta_func\ta_STOCHRSI.c + +..\..\..\..\..\temp\csr\ta_SUB.obj: ..\..\..\..\..\src\ta_func\ta_SUB.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_SUB.obj ..\..\..\..\..\src\ta_func\ta_SUB.c + +..\..\..\..\..\temp\csr\ta_SUM.obj: ..\..\..\..\..\src\ta_func\ta_SUM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_SUM.obj ..\..\..\..\..\src\ta_func\ta_SUM.c + +..\..\..\..\..\temp\csr\ta_T3.obj: ..\..\..\..\..\src\ta_func\ta_T3.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_T3.obj ..\..\..\..\..\src\ta_func\ta_T3.c + +..\..\..\..\..\temp\csr\ta_TAN.obj: ..\..\..\..\..\src\ta_func\ta_TAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_TAN.obj ..\..\..\..\..\src\ta_func\ta_TAN.c + +..\..\..\..\..\temp\csr\ta_TANH.obj: ..\..\..\..\..\src\ta_func\ta_TANH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_TANH.obj ..\..\..\..\..\src\ta_func\ta_TANH.c + +..\..\..\..\..\temp\csr\ta_TEMA.obj: ..\..\..\..\..\src\ta_func\ta_TEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_TEMA.obj ..\..\..\..\..\src\ta_func\ta_TEMA.c + +..\..\..\..\..\temp\csr\ta_TRANGE.obj: ..\..\..\..\..\src\ta_func\ta_TRANGE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_TRANGE.obj ..\..\..\..\..\src\ta_func\ta_TRANGE.c + +..\..\..\..\..\temp\csr\ta_TRIMA.obj: ..\..\..\..\..\src\ta_func\ta_TRIMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_TRIMA.obj ..\..\..\..\..\src\ta_func\ta_TRIMA.c + +..\..\..\..\..\temp\csr\ta_TRIX.obj: ..\..\..\..\..\src\ta_func\ta_TRIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_TRIX.obj ..\..\..\..\..\src\ta_func\ta_TRIX.c + +..\..\..\..\..\temp\csr\ta_TSF.obj: ..\..\..\..\..\src\ta_func\ta_TSF.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_TSF.obj ..\..\..\..\..\src\ta_func\ta_TSF.c + +..\..\..\..\..\temp\csr\ta_TYPPRICE.obj: ..\..\..\..\..\src\ta_func\ta_TYPPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_TYPPRICE.obj ..\..\..\..\..\src\ta_func\ta_TYPPRICE.c + +..\..\..\..\..\temp\csr\ta_ULTOSC.obj: ..\..\..\..\..\src\ta_func\ta_ULTOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_ULTOSC.obj ..\..\..\..\..\src\ta_func\ta_ULTOSC.c + +..\..\..\..\..\temp\csr\ta_VAR.obj: ..\..\..\..\..\src\ta_func\ta_VAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_VAR.obj ..\..\..\..\..\src\ta_func\ta_VAR.c + +..\..\..\..\..\temp\csr\ta_WCLPRICE.obj: ..\..\..\..\..\src\ta_func\ta_WCLPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_WCLPRICE.obj ..\..\..\..\..\src\ta_func\ta_WCLPRICE.c + +..\..\..\..\..\temp\csr\ta_WILLR.obj: ..\..\..\..\..\src\ta_func\ta_WILLR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_WILLR.obj ..\..\..\..\..\src\ta_func\ta_WILLR.c + +..\..\..\..\..\temp\csr\ta_WMA.obj: ..\..\..\..\..\src\ta_func\ta_WMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_WMA.obj ..\..\..\..\..\src\ta_func\ta_WMA.c + diff --git a/make/csr/win32/symantec/ta_libc/Makefile b/make/csr/win32/symantec/ta_libc/Makefile new file mode 100644 index 000000000..35748c75b --- /dev/null +++ b/make/csr/win32/symantec/ta_libc/Makefile @@ -0,0 +1,1424 @@ +############################################################################# +# Makefile for building ta_libc_csr +# Generated by tmake; +# Project: ta_libc/ta_libc +# Template: lib +############################################################################# + +####### Compiler, tools and options + +CC = sc +CXX = sc +CFLAGS = -mn -w2 -o -DTA_SINGLE_THREAD -DWIN32 -DNO_DEBUG +CXXFLAGS= -mn -w2 -o -DTA_SINGLE_THREAD -DWIN32 -DNO_DEBUG +INCPATH = -I"..\..\..\..\..\src\ta_common" -I"..\..\..\..\..\include" -I"..\..\..\..\..\src\ta_abstract" -I"..\..\..\..\..\src\ta_abstract\tables" -I"..\..\..\..\..\src\ta_abstract\frames" -I"$(QTDIR)\include" +LIB = lib /C /N /NOI /P:32 +MOC = moc + +ZIP = zip -r -9 + +####### Files + +HEADERS = +SOURCES = ..\..\..\..\..\src\ta_common\ta_global.c \ + ..\..\..\..\..\src\ta_common\ta_retcode.c \ + ..\..\..\..\..\src\ta_common\ta_version.c \ + ..\..\..\..\..\src\ta_abstract\ta_abstract.c \ + ..\..\..\..\..\src\ta_abstract\ta_def_ui.c \ + ..\..\..\..\..\src\ta_abstract\ta_func_api.c \ + ..\..\..\..\..\src\ta_abstract\ta_group_idx.c \ + ..\..\..\..\..\src\ta_abstract\frames\ta_frame.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_a.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_b.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_c.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_d.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_e.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_f.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_g.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_h.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_i.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_j.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_k.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_l.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_m.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_n.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_o.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_p.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_q.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_r.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_s.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_t.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_u.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_v.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_w.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_x.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_y.c \ + ..\..\..\..\..\src\ta_abstract\tables\table_z.c \ + ..\..\..\..\..\src\ta_func\ta_utility.c \ + ..\..\..\..\..\src\ta_func\ta_ACOS.c \ + ..\..\..\..\..\src\ta_func\ta_AD.c \ + ..\..\..\..\..\src\ta_func\ta_ADD.c \ + ..\..\..\..\..\src\ta_func\ta_ADOSC.c \ + ..\..\..\..\..\src\ta_func\ta_ADX.c \ + ..\..\..\..\..\src\ta_func\ta_ADXR.c \ + ..\..\..\..\..\src\ta_func\ta_APO.c \ + ..\..\..\..\..\src\ta_func\ta_AROON.c \ + ..\..\..\..\..\src\ta_func\ta_AROONOSC.c \ + ..\..\..\..\..\src\ta_func\ta_ASIN.c \ + ..\..\..\..\..\src\ta_func\ta_ATAN.c \ + ..\..\..\..\..\src\ta_func\ta_ATR.c \ + ..\..\..\..\..\src\ta_func\ta_AVGPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_BBANDS.c \ + ..\..\..\..\..\src\ta_func\ta_BETA.c \ + ..\..\..\..\..\src\ta_func\ta_BOP.c \ + ..\..\..\..\..\src\ta_func\ta_CCI.c \ + ..\..\..\..\..\src\ta_func\ta_CDL2CROWS.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3BLACKCROWS.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3INSIDE.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3LINESTRIKE.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3OUTSIDE.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3STARSINSOUTH.c \ + ..\..\..\..\..\src\ta_func\ta_CDL3WHITESOLDIERS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLABANDONEDBABY.c \ + ..\..\..\..\..\src\ta_func\ta_CDLADVANCEBLOCK.c \ + ..\..\..\..\..\src\ta_func\ta_CDLBELTHOLD.c \ + ..\..\..\..\..\src\ta_func\ta_CDLBREAKAWAY.c \ + ..\..\..\..\..\src\ta_func\ta_CDLCLOSINGMARUBOZU.c \ + ..\..\..\..\..\src\ta_func\ta_CDLCONCEALBABYSWALL.c \ + ..\..\..\..\..\src\ta_func\ta_CDLCOUNTERATTACK.c \ + ..\..\..\..\..\src\ta_func\ta_CDLDARKCLOUDCOVER.c \ + ..\..\..\..\..\src\ta_func\ta_CDLDOJI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLDOJISTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLDRAGONFLYDOJI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLENGULFING.c \ + ..\..\..\..\..\src\ta_func\ta_CDLEVENINGDOJISTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLEVENINGSTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLGAPSIDESIDEWHITE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLGRAVESTONEDOJI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHAMMER.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHANGINGMAN.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHARAMI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHARAMICROSS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHIGHWAVE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKEMOD.c \ + ..\..\..\..\..\src\ta_func\ta_CDLHOMINGPIGEON.c \ + ..\..\..\..\..\src\ta_func\ta_CDLIDENTICAL3CROWS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLINNECK.c \ + ..\..\..\..\..\src\ta_func\ta_CDLINVERTEDHAMMER.c \ + ..\..\..\..\..\src\ta_func\ta_CDLKICKING.c \ + ..\..\..\..\..\src\ta_func\ta_CDLKICKINGBYLENGTH.c \ + ..\..\..\..\..\src\ta_func\ta_CDLLADDERBOTTOM.c \ + ..\..\..\..\..\src\ta_func\ta_CDLLONGLEGGEDDOJI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLLONGLINE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMARUBOZU.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMATCHINGLOW.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMATHOLD.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMORNINGDOJISTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLMORNINGSTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLONNECK.c \ + ..\..\..\..\..\src\ta_func\ta_CDLPIERCING.c \ + ..\..\..\..\..\src\ta_func\ta_CDLRICKSHAWMAN.c \ + ..\..\..\..\..\src\ta_func\ta_CDLRISEFALL3METHODS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSEPARATINGLINES.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSHOOTINGSTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSHORTLINE.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSPINNINGTOP.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSTALLEDPATTERN.c \ + ..\..\..\..\..\src\ta_func\ta_CDLSTICKSANDWICH.c \ + ..\..\..\..\..\src\ta_func\ta_CDLTAKURI.c \ + ..\..\..\..\..\src\ta_func\ta_CDLTASUKIGAP.c \ + ..\..\..\..\..\src\ta_func\ta_CDLTHRUSTING.c \ + ..\..\..\..\..\src\ta_func\ta_CDLTRISTAR.c \ + ..\..\..\..\..\src\ta_func\ta_CDLUNIQUE3RIVER.c \ + ..\..\..\..\..\src\ta_func\ta_CDLUPSIDEGAP2CROWS.c \ + ..\..\..\..\..\src\ta_func\ta_CDLXSIDEGAP3METHODS.c \ + ..\..\..\..\..\src\ta_func\ta_CEIL.c \ + ..\..\..\..\..\src\ta_func\ta_CMO.c \ + ..\..\..\..\..\src\ta_func\ta_CORREL.c \ + ..\..\..\..\..\src\ta_func\ta_COS.c \ + ..\..\..\..\..\src\ta_func\ta_COSH.c \ + ..\..\..\..\..\src\ta_func\ta_DEMA.c \ + ..\..\..\..\..\src\ta_func\ta_DIV.c \ + ..\..\..\..\..\src\ta_func\ta_DX.c \ + ..\..\..\..\..\src\ta_func\ta_EMA.c \ + ..\..\..\..\..\src\ta_func\ta_EXP.c \ + ..\..\..\..\..\src\ta_func\ta_FLOOR.c \ + ..\..\..\..\..\src\ta_func\ta_HT_DCPERIOD.c \ + ..\..\..\..\..\src\ta_func\ta_HT_DCPHASE.c \ + ..\..\..\..\..\src\ta_func\ta_HT_PHASOR.c \ + ..\..\..\..\..\src\ta_func\ta_HT_SINE.c \ + ..\..\..\..\..\src\ta_func\ta_HT_TRENDLINE.c \ + ..\..\..\..\..\src\ta_func\ta_HT_TRENDMODE.c \ + ..\..\..\..\..\src\ta_func\ta_KAMA.c \ + ..\..\..\..\..\src\ta_func\ta_LINEARREG.c \ + ..\..\..\..\..\src\ta_func\ta_LINEARREG_ANGLE.c \ + ..\..\..\..\..\src\ta_func\ta_LINEARREG_INTERCEPT.c \ + ..\..\..\..\..\src\ta_func\ta_LINEARREG_SLOPE.c \ + ..\..\..\..\..\src\ta_func\ta_LN.c \ + ..\..\..\..\..\src\ta_func\ta_LOG10.c \ + ..\..\..\..\..\src\ta_func\ta_MA.c \ + ..\..\..\..\..\src\ta_func\ta_MACD.c \ + ..\..\..\..\..\src\ta_func\ta_MACDEXT.c \ + ..\..\..\..\..\src\ta_func\ta_MACDFIX.c \ + ..\..\..\..\..\src\ta_func\ta_MAMA.c \ + ..\..\..\..\..\src\ta_func\ta_MAVP.c \ + ..\..\..\..\..\src\ta_func\ta_MAX.c \ + ..\..\..\..\..\src\ta_func\ta_MAXINDEX.c \ + ..\..\..\..\..\src\ta_func\ta_MEDPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_MFI.c \ + ..\..\..\..\..\src\ta_func\ta_MIDPOINT.c \ + ..\..\..\..\..\src\ta_func\ta_MIDPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_MIN.c \ + ..\..\..\..\..\src\ta_func\ta_MININDEX.c \ + ..\..\..\..\..\src\ta_func\ta_MINMAX.c \ + ..\..\..\..\..\src\ta_func\ta_MINMAXINDEX.c \ + ..\..\..\..\..\src\ta_func\ta_MINUS_DI.c \ + ..\..\..\..\..\src\ta_func\ta_MINUS_DM.c \ + ..\..\..\..\..\src\ta_func\ta_MOM.c \ + ..\..\..\..\..\src\ta_func\ta_MULT.c \ + ..\..\..\..\..\src\ta_func\ta_NATR.c \ + ..\..\..\..\..\src\ta_func\ta_OBV.c \ + ..\..\..\..\..\src\ta_func\ta_PLUS_DI.c \ + ..\..\..\..\..\src\ta_func\ta_PLUS_DM.c \ + ..\..\..\..\..\src\ta_func\ta_PPO.c \ + ..\..\..\..\..\src\ta_func\ta_ROC.c \ + ..\..\..\..\..\src\ta_func\ta_ROCP.c \ + ..\..\..\..\..\src\ta_func\ta_ROCR.c \ + ..\..\..\..\..\src\ta_func\ta_ROCR100.c \ + ..\..\..\..\..\src\ta_func\ta_RSI.c \ + ..\..\..\..\..\src\ta_func\ta_SAR.c \ + ..\..\..\..\..\src\ta_func\ta_SAREXT.c \ + ..\..\..\..\..\src\ta_func\ta_SIN.c \ + ..\..\..\..\..\src\ta_func\ta_SINH.c \ + ..\..\..\..\..\src\ta_func\ta_SMA.c \ + ..\..\..\..\..\src\ta_func\ta_SQRT.c \ + ..\..\..\..\..\src\ta_func\ta_STDDEV.c \ + ..\..\..\..\..\src\ta_func\ta_STOCH.c \ + ..\..\..\..\..\src\ta_func\ta_STOCHF.c \ + ..\..\..\..\..\src\ta_func\ta_STOCHRSI.c \ + ..\..\..\..\..\src\ta_func\ta_SUB.c \ + ..\..\..\..\..\src\ta_func\ta_SUM.c \ + ..\..\..\..\..\src\ta_func\ta_T3.c \ + ..\..\..\..\..\src\ta_func\ta_TAN.c \ + ..\..\..\..\..\src\ta_func\ta_TANH.c \ + ..\..\..\..\..\src\ta_func\ta_TEMA.c \ + ..\..\..\..\..\src\ta_func\ta_TRANGE.c \ + ..\..\..\..\..\src\ta_func\ta_TRIMA.c \ + ..\..\..\..\..\src\ta_func\ta_TRIX.c \ + ..\..\..\..\..\src\ta_func\ta_TSF.c \ + ..\..\..\..\..\src\ta_func\ta_TYPPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_ULTOSC.c \ + ..\..\..\..\..\src\ta_func\ta_VAR.c \ + ..\..\..\..\..\src\ta_func\ta_WCLPRICE.c \ + ..\..\..\..\..\src\ta_func\ta_WILLR.c \ + ..\..\..\..\..\src\ta_func\ta_WMA.c +OBJECTS = ..\..\..\..\..\temp\csr\ta_global.obj \ + ..\..\..\..\..\temp\csr\ta_retcode.obj \ + ..\..\..\..\..\temp\csr\ta_version.obj \ + ..\..\..\..\..\temp\csr\ta_abstract.obj \ + ..\..\..\..\..\temp\csr\ta_def_ui.obj \ + ..\..\..\..\..\temp\csr\ta_func_api.obj \ + ..\..\..\..\..\temp\csr\ta_group_idx.obj \ + ..\..\..\..\..\temp\csr\ta_frame.obj \ + ..\..\..\..\..\temp\csr\table_a.obj \ + ..\..\..\..\..\temp\csr\table_b.obj \ + ..\..\..\..\..\temp\csr\table_c.obj \ + ..\..\..\..\..\temp\csr\table_d.obj \ + ..\..\..\..\..\temp\csr\table_e.obj \ + ..\..\..\..\..\temp\csr\table_f.obj \ + ..\..\..\..\..\temp\csr\table_g.obj \ + ..\..\..\..\..\temp\csr\table_h.obj \ + ..\..\..\..\..\temp\csr\table_i.obj \ + ..\..\..\..\..\temp\csr\table_j.obj \ + ..\..\..\..\..\temp\csr\table_k.obj \ + ..\..\..\..\..\temp\csr\table_l.obj \ + ..\..\..\..\..\temp\csr\table_m.obj \ + ..\..\..\..\..\temp\csr\table_n.obj \ + ..\..\..\..\..\temp\csr\table_o.obj \ + ..\..\..\..\..\temp\csr\table_p.obj \ + ..\..\..\..\..\temp\csr\table_q.obj \ + ..\..\..\..\..\temp\csr\table_r.obj \ + ..\..\..\..\..\temp\csr\table_s.obj \ + ..\..\..\..\..\temp\csr\table_t.obj \ + ..\..\..\..\..\temp\csr\table_u.obj \ + ..\..\..\..\..\temp\csr\table_v.obj \ + ..\..\..\..\..\temp\csr\table_w.obj \ + ..\..\..\..\..\temp\csr\table_x.obj \ + ..\..\..\..\..\temp\csr\table_y.obj \ + ..\..\..\..\..\temp\csr\table_z.obj \ + ..\..\..\..\..\temp\csr\ta_utility.obj \ + ..\..\..\..\..\temp\csr\ta_ACOS.obj \ + ..\..\..\..\..\temp\csr\ta_AD.obj \ + ..\..\..\..\..\temp\csr\ta_ADD.obj \ + ..\..\..\..\..\temp\csr\ta_ADOSC.obj \ + ..\..\..\..\..\temp\csr\ta_ADX.obj \ + ..\..\..\..\..\temp\csr\ta_ADXR.obj \ + ..\..\..\..\..\temp\csr\ta_APO.obj \ + ..\..\..\..\..\temp\csr\ta_AROON.obj \ + ..\..\..\..\..\temp\csr\ta_AROONOSC.obj \ + ..\..\..\..\..\temp\csr\ta_ASIN.obj \ + ..\..\..\..\..\temp\csr\ta_ATAN.obj \ + ..\..\..\..\..\temp\csr\ta_ATR.obj \ + ..\..\..\..\..\temp\csr\ta_AVGPRICE.obj \ + ..\..\..\..\..\temp\csr\ta_BBANDS.obj \ + ..\..\..\..\..\temp\csr\ta_BETA.obj \ + ..\..\..\..\..\temp\csr\ta_BOP.obj \ + ..\..\..\..\..\temp\csr\ta_CCI.obj \ + ..\..\..\..\..\temp\csr\ta_CDL2CROWS.obj \ + ..\..\..\..\..\temp\csr\ta_CDL3BLACKCROWS.obj \ + ..\..\..\..\..\temp\csr\ta_CDL3INSIDE.obj \ + ..\..\..\..\..\temp\csr\ta_CDL3LINESTRIKE.obj \ + ..\..\..\..\..\temp\csr\ta_CDL3OUTSIDE.obj \ + ..\..\..\..\..\temp\csr\ta_CDL3STARSINSOUTH.obj \ + ..\..\..\..\..\temp\csr\ta_CDL3WHITESOLDIERS.obj \ + ..\..\..\..\..\temp\csr\ta_CDLABANDONEDBABY.obj \ + ..\..\..\..\..\temp\csr\ta_CDLADVANCEBLOCK.obj \ + ..\..\..\..\..\temp\csr\ta_CDLBELTHOLD.obj \ + ..\..\..\..\..\temp\csr\ta_CDLBREAKAWAY.obj \ + ..\..\..\..\..\temp\csr\ta_CDLCLOSINGMARUBOZU.obj \ + ..\..\..\..\..\temp\csr\ta_CDLCONCEALBABYSWALL.obj \ + ..\..\..\..\..\temp\csr\ta_CDLCOUNTERATTACK.obj \ + ..\..\..\..\..\temp\csr\ta_CDLDARKCLOUDCOVER.obj \ + ..\..\..\..\..\temp\csr\ta_CDLDOJI.obj \ + ..\..\..\..\..\temp\csr\ta_CDLDOJISTAR.obj \ + ..\..\..\..\..\temp\csr\ta_CDLDRAGONFLYDOJI.obj \ + ..\..\..\..\..\temp\csr\ta_CDLENGULFING.obj \ + ..\..\..\..\..\temp\csr\ta_CDLEVENINGDOJISTAR.obj \ + ..\..\..\..\..\temp\csr\ta_CDLEVENINGSTAR.obj \ + ..\..\..\..\..\temp\csr\ta_CDLGAPSIDESIDEWHITE.obj \ + ..\..\..\..\..\temp\csr\ta_CDLGRAVESTONEDOJI.obj \ + ..\..\..\..\..\temp\csr\ta_CDLHAMMER.obj \ + ..\..\..\..\..\temp\csr\ta_CDLHANGINGMAN.obj \ + ..\..\..\..\..\temp\csr\ta_CDLHARAMI.obj \ + ..\..\..\..\..\temp\csr\ta_CDLHARAMICROSS.obj \ + ..\..\..\..\..\temp\csr\ta_CDLHIGHWAVE.obj \ + ..\..\..\..\..\temp\csr\ta_CDLHIKKAKE.obj \ + ..\..\..\..\..\temp\csr\ta_CDLHIKKAKEMOD.obj \ + ..\..\..\..\..\temp\csr\ta_CDLHOMINGPIGEON.obj \ + ..\..\..\..\..\temp\csr\ta_CDLIDENTICAL3CROWS.obj \ + ..\..\..\..\..\temp\csr\ta_CDLINNECK.obj \ + ..\..\..\..\..\temp\csr\ta_CDLINVERTEDHAMMER.obj \ + ..\..\..\..\..\temp\csr\ta_CDLKICKING.obj \ + ..\..\..\..\..\temp\csr\ta_CDLKICKINGBYLENGTH.obj \ + ..\..\..\..\..\temp\csr\ta_CDLLADDERBOTTOM.obj \ + ..\..\..\..\..\temp\csr\ta_CDLLONGLEGGEDDOJI.obj \ + ..\..\..\..\..\temp\csr\ta_CDLLONGLINE.obj \ + ..\..\..\..\..\temp\csr\ta_CDLMARUBOZU.obj \ + ..\..\..\..\..\temp\csr\ta_CDLMATCHINGLOW.obj \ + ..\..\..\..\..\temp\csr\ta_CDLMATHOLD.obj \ + ..\..\..\..\..\temp\csr\ta_CDLMORNINGDOJISTAR.obj \ + ..\..\..\..\..\temp\csr\ta_CDLMORNINGSTAR.obj \ + ..\..\..\..\..\temp\csr\ta_CDLONNECK.obj \ + ..\..\..\..\..\temp\csr\ta_CDLPIERCING.obj \ + ..\..\..\..\..\temp\csr\ta_CDLRICKSHAWMAN.obj \ + ..\..\..\..\..\temp\csr\ta_CDLRISEFALL3METHODS.obj \ + ..\..\..\..\..\temp\csr\ta_CDLSEPARATINGLINES.obj \ + ..\..\..\..\..\temp\csr\ta_CDLSHOOTINGSTAR.obj \ + ..\..\..\..\..\temp\csr\ta_CDLSHORTLINE.obj \ + ..\..\..\..\..\temp\csr\ta_CDLSPINNINGTOP.obj \ + ..\..\..\..\..\temp\csr\ta_CDLSTALLEDPATTERN.obj \ + ..\..\..\..\..\temp\csr\ta_CDLSTICKSANDWICH.obj \ + ..\..\..\..\..\temp\csr\ta_CDLTAKURI.obj \ + ..\..\..\..\..\temp\csr\ta_CDLTASUKIGAP.obj \ + ..\..\..\..\..\temp\csr\ta_CDLTHRUSTING.obj \ + ..\..\..\..\..\temp\csr\ta_CDLTRISTAR.obj \ + ..\..\..\..\..\temp\csr\ta_CDLUNIQUE3RIVER.obj \ + ..\..\..\..\..\temp\csr\ta_CDLUPSIDEGAP2CROWS.obj \ + ..\..\..\..\..\temp\csr\ta_CDLXSIDEGAP3METHODS.obj \ + ..\..\..\..\..\temp\csr\ta_CEIL.obj \ + ..\..\..\..\..\temp\csr\ta_CMO.obj \ + ..\..\..\..\..\temp\csr\ta_CORREL.obj \ + ..\..\..\..\..\temp\csr\ta_COS.obj \ + ..\..\..\..\..\temp\csr\ta_COSH.obj \ + ..\..\..\..\..\temp\csr\ta_DEMA.obj \ + ..\..\..\..\..\temp\csr\ta_DIV.obj \ + ..\..\..\..\..\temp\csr\ta_DX.obj \ + ..\..\..\..\..\temp\csr\ta_EMA.obj \ + ..\..\..\..\..\temp\csr\ta_EXP.obj \ + ..\..\..\..\..\temp\csr\ta_FLOOR.obj \ + ..\..\..\..\..\temp\csr\ta_HT_DCPERIOD.obj \ + ..\..\..\..\..\temp\csr\ta_HT_DCPHASE.obj \ + ..\..\..\..\..\temp\csr\ta_HT_PHASOR.obj \ + ..\..\..\..\..\temp\csr\ta_HT_SINE.obj \ + ..\..\..\..\..\temp\csr\ta_HT_TRENDLINE.obj \ + ..\..\..\..\..\temp\csr\ta_HT_TRENDMODE.obj \ + ..\..\..\..\..\temp\csr\ta_KAMA.obj \ + ..\..\..\..\..\temp\csr\ta_LINEARREG.obj \ + ..\..\..\..\..\temp\csr\ta_LINEARREG_ANGLE.obj \ + ..\..\..\..\..\temp\csr\ta_LINEARREG_INTERCEPT.obj \ + ..\..\..\..\..\temp\csr\ta_LINEARREG_SLOPE.obj \ + ..\..\..\..\..\temp\csr\ta_LN.obj \ + ..\..\..\..\..\temp\csr\ta_LOG10.obj \ + ..\..\..\..\..\temp\csr\ta_MA.obj \ + ..\..\..\..\..\temp\csr\ta_MACD.obj \ + ..\..\..\..\..\temp\csr\ta_MACDEXT.obj \ + ..\..\..\..\..\temp\csr\ta_MACDFIX.obj \ + ..\..\..\..\..\temp\csr\ta_MAMA.obj \ + ..\..\..\..\..\temp\csr\ta_MAVP.obj \ + ..\..\..\..\..\temp\csr\ta_MAX.obj \ + ..\..\..\..\..\temp\csr\ta_MAXINDEX.obj \ + ..\..\..\..\..\temp\csr\ta_MEDPRICE.obj \ + ..\..\..\..\..\temp\csr\ta_MFI.obj \ + ..\..\..\..\..\temp\csr\ta_MIDPOINT.obj \ + ..\..\..\..\..\temp\csr\ta_MIDPRICE.obj \ + ..\..\..\..\..\temp\csr\ta_MIN.obj \ + ..\..\..\..\..\temp\csr\ta_MININDEX.obj \ + ..\..\..\..\..\temp\csr\ta_MINMAX.obj \ + ..\..\..\..\..\temp\csr\ta_MINMAXINDEX.obj \ + ..\..\..\..\..\temp\csr\ta_MINUS_DI.obj \ + ..\..\..\..\..\temp\csr\ta_MINUS_DM.obj \ + ..\..\..\..\..\temp\csr\ta_MOM.obj \ + ..\..\..\..\..\temp\csr\ta_MULT.obj \ + ..\..\..\..\..\temp\csr\ta_NATR.obj \ + ..\..\..\..\..\temp\csr\ta_OBV.obj \ + ..\..\..\..\..\temp\csr\ta_PLUS_DI.obj \ + ..\..\..\..\..\temp\csr\ta_PLUS_DM.obj \ + ..\..\..\..\..\temp\csr\ta_PPO.obj \ + ..\..\..\..\..\temp\csr\ta_ROC.obj \ + ..\..\..\..\..\temp\csr\ta_ROCP.obj \ + ..\..\..\..\..\temp\csr\ta_ROCR.obj \ + ..\..\..\..\..\temp\csr\ta_ROCR100.obj \ + ..\..\..\..\..\temp\csr\ta_RSI.obj \ + ..\..\..\..\..\temp\csr\ta_SAR.obj \ + ..\..\..\..\..\temp\csr\ta_SAREXT.obj \ + ..\..\..\..\..\temp\csr\ta_SIN.obj \ + ..\..\..\..\..\temp\csr\ta_SINH.obj \ + ..\..\..\..\..\temp\csr\ta_SMA.obj \ + ..\..\..\..\..\temp\csr\ta_SQRT.obj \ + ..\..\..\..\..\temp\csr\ta_STDDEV.obj \ + ..\..\..\..\..\temp\csr\ta_STOCH.obj \ + ..\..\..\..\..\temp\csr\ta_STOCHF.obj \ + ..\..\..\..\..\temp\csr\ta_STOCHRSI.obj \ + ..\..\..\..\..\temp\csr\ta_SUB.obj \ + ..\..\..\..\..\temp\csr\ta_SUM.obj \ + ..\..\..\..\..\temp\csr\ta_T3.obj \ + ..\..\..\..\..\temp\csr\ta_TAN.obj \ + ..\..\..\..\..\temp\csr\ta_TANH.obj \ + ..\..\..\..\..\temp\csr\ta_TEMA.obj \ + ..\..\..\..\..\temp\csr\ta_TRANGE.obj \ + ..\..\..\..\..\temp\csr\ta_TRIMA.obj \ + ..\..\..\..\..\temp\csr\ta_TRIX.obj \ + ..\..\..\..\..\temp\csr\ta_TSF.obj \ + ..\..\..\..\..\temp\csr\ta_TYPPRICE.obj \ + ..\..\..\..\..\temp\csr\ta_ULTOSC.obj \ + ..\..\..\..\..\temp\csr\ta_VAR.obj \ + ..\..\..\..\..\temp\csr\ta_WCLPRICE.obj \ + ..\..\..\..\..\temp\csr\ta_WILLR.obj \ + ..\..\..\..\..\temp\csr\ta_WMA.obj +SRCMOC = +OBJMOC = +DIST = +TARGET = ..\..\..\..\..\lib\ta_libc_csr.lib + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .c + +.cpp.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.cxx.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.cc.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.c.obj: + $(CC) -c $(CFLAGS) $(INCPATH) -o$@ $< + +####### Build rules + +all: $(TARGET) + +$(TARGET): $(OBJECTS) $(OBJMOC) + -del $(TARGET) + $(LIB) $(TARGET) ..\..\..\..\..\temp\csr\ta_global.obj \ ++..\..\..\..\..\temp\csr\ta_retcode.obj \ ++..\..\..\..\..\temp\csr\ta_version.obj \ ++..\..\..\..\..\temp\csr\ta_abstract.obj \ ++..\..\..\..\..\temp\csr\ta_def_ui.obj \ ++..\..\..\..\..\temp\csr\ta_func_api.obj \ ++..\..\..\..\..\temp\csr\ta_group_idx.obj \ ++..\..\..\..\..\temp\csr\ta_frame.obj \ ++..\..\..\..\..\temp\csr\table_a.obj \ ++..\..\..\..\..\temp\csr\table_b.obj \ ++..\..\..\..\..\temp\csr\table_c.obj \ ++..\..\..\..\..\temp\csr\table_d.obj \ ++..\..\..\..\..\temp\csr\table_e.obj \ ++..\..\..\..\..\temp\csr\table_f.obj \ ++..\..\..\..\..\temp\csr\table_g.obj \ ++..\..\..\..\..\temp\csr\table_h.obj \ ++..\..\..\..\..\temp\csr\table_i.obj \ ++..\..\..\..\..\temp\csr\table_j.obj \ ++..\..\..\..\..\temp\csr\table_k.obj \ ++..\..\..\..\..\temp\csr\table_l.obj \ ++..\..\..\..\..\temp\csr\table_m.obj \ ++..\..\..\..\..\temp\csr\table_n.obj \ ++..\..\..\..\..\temp\csr\table_o.obj \ ++..\..\..\..\..\temp\csr\table_p.obj \ ++..\..\..\..\..\temp\csr\table_q.obj \ ++..\..\..\..\..\temp\csr\table_r.obj \ ++..\..\..\..\..\temp\csr\table_s.obj \ ++..\..\..\..\..\temp\csr\table_t.obj \ ++..\..\..\..\..\temp\csr\table_u.obj \ ++..\..\..\..\..\temp\csr\table_v.obj \ ++..\..\..\..\..\temp\csr\table_w.obj \ ++..\..\..\..\..\temp\csr\table_x.obj \ ++..\..\..\..\..\temp\csr\table_y.obj \ ++..\..\..\..\..\temp\csr\table_z.obj \ ++..\..\..\..\..\temp\csr\ta_utility.obj \ ++..\..\..\..\..\temp\csr\ta_ACOS.obj \ ++..\..\..\..\..\temp\csr\ta_AD.obj \ ++..\..\..\..\..\temp\csr\ta_ADD.obj \ ++..\..\..\..\..\temp\csr\ta_ADOSC.obj \ ++..\..\..\..\..\temp\csr\ta_ADX.obj \ ++..\..\..\..\..\temp\csr\ta_ADXR.obj \ ++..\..\..\..\..\temp\csr\ta_APO.obj \ ++..\..\..\..\..\temp\csr\ta_AROON.obj \ ++..\..\..\..\..\temp\csr\ta_AROONOSC.obj \ ++..\..\..\..\..\temp\csr\ta_ASIN.obj \ ++..\..\..\..\..\temp\csr\ta_ATAN.obj \ ++..\..\..\..\..\temp\csr\ta_ATR.obj \ ++..\..\..\..\..\temp\csr\ta_AVGPRICE.obj \ ++..\..\..\..\..\temp\csr\ta_BBANDS.obj \ ++..\..\..\..\..\temp\csr\ta_BETA.obj \ ++..\..\..\..\..\temp\csr\ta_BOP.obj \ ++..\..\..\..\..\temp\csr\ta_CCI.obj \ ++..\..\..\..\..\temp\csr\ta_CDL2CROWS.obj \ ++..\..\..\..\..\temp\csr\ta_CDL3BLACKCROWS.obj \ ++..\..\..\..\..\temp\csr\ta_CDL3INSIDE.obj \ ++..\..\..\..\..\temp\csr\ta_CDL3LINESTRIKE.obj \ ++..\..\..\..\..\temp\csr\ta_CDL3OUTSIDE.obj \ ++..\..\..\..\..\temp\csr\ta_CDL3STARSINSOUTH.obj \ ++..\..\..\..\..\temp\csr\ta_CDL3WHITESOLDIERS.obj \ ++..\..\..\..\..\temp\csr\ta_CDLABANDONEDBABY.obj \ ++..\..\..\..\..\temp\csr\ta_CDLADVANCEBLOCK.obj \ ++..\..\..\..\..\temp\csr\ta_CDLBELTHOLD.obj \ ++..\..\..\..\..\temp\csr\ta_CDLBREAKAWAY.obj \ ++..\..\..\..\..\temp\csr\ta_CDLCLOSINGMARUBOZU.obj \ ++..\..\..\..\..\temp\csr\ta_CDLCONCEALBABYSWALL.obj \ ++..\..\..\..\..\temp\csr\ta_CDLCOUNTERATTACK.obj \ ++..\..\..\..\..\temp\csr\ta_CDLDARKCLOUDCOVER.obj \ ++..\..\..\..\..\temp\csr\ta_CDLDOJI.obj \ ++..\..\..\..\..\temp\csr\ta_CDLDOJISTAR.obj \ ++..\..\..\..\..\temp\csr\ta_CDLDRAGONFLYDOJI.obj \ ++..\..\..\..\..\temp\csr\ta_CDLENGULFING.obj \ ++..\..\..\..\..\temp\csr\ta_CDLEVENINGDOJISTAR.obj \ ++..\..\..\..\..\temp\csr\ta_CDLEVENINGSTAR.obj \ ++..\..\..\..\..\temp\csr\ta_CDLGAPSIDESIDEWHITE.obj \ ++..\..\..\..\..\temp\csr\ta_CDLGRAVESTONEDOJI.obj \ ++..\..\..\..\..\temp\csr\ta_CDLHAMMER.obj \ ++..\..\..\..\..\temp\csr\ta_CDLHANGINGMAN.obj \ ++..\..\..\..\..\temp\csr\ta_CDLHARAMI.obj \ ++..\..\..\..\..\temp\csr\ta_CDLHARAMICROSS.obj \ ++..\..\..\..\..\temp\csr\ta_CDLHIGHWAVE.obj \ ++..\..\..\..\..\temp\csr\ta_CDLHIKKAKE.obj \ ++..\..\..\..\..\temp\csr\ta_CDLHIKKAKEMOD.obj \ ++..\..\..\..\..\temp\csr\ta_CDLHOMINGPIGEON.obj \ ++..\..\..\..\..\temp\csr\ta_CDLIDENTICAL3CROWS.obj \ ++..\..\..\..\..\temp\csr\ta_CDLINNECK.obj \ ++..\..\..\..\..\temp\csr\ta_CDLINVERTEDHAMMER.obj \ ++..\..\..\..\..\temp\csr\ta_CDLKICKING.obj \ ++..\..\..\..\..\temp\csr\ta_CDLKICKINGBYLENGTH.obj \ ++..\..\..\..\..\temp\csr\ta_CDLLADDERBOTTOM.obj \ ++..\..\..\..\..\temp\csr\ta_CDLLONGLEGGEDDOJI.obj \ ++..\..\..\..\..\temp\csr\ta_CDLLONGLINE.obj \ ++..\..\..\..\..\temp\csr\ta_CDLMARUBOZU.obj \ ++..\..\..\..\..\temp\csr\ta_CDLMATCHINGLOW.obj \ ++..\..\..\..\..\temp\csr\ta_CDLMATHOLD.obj \ ++..\..\..\..\..\temp\csr\ta_CDLMORNINGDOJISTAR.obj \ ++..\..\..\..\..\temp\csr\ta_CDLMORNINGSTAR.obj \ ++..\..\..\..\..\temp\csr\ta_CDLONNECK.obj \ ++..\..\..\..\..\temp\csr\ta_CDLPIERCING.obj \ ++..\..\..\..\..\temp\csr\ta_CDLRICKSHAWMAN.obj \ ++..\..\..\..\..\temp\csr\ta_CDLRISEFALL3METHODS.obj \ ++..\..\..\..\..\temp\csr\ta_CDLSEPARATINGLINES.obj \ ++..\..\..\..\..\temp\csr\ta_CDLSHOOTINGSTAR.obj \ ++..\..\..\..\..\temp\csr\ta_CDLSHORTLINE.obj \ ++..\..\..\..\..\temp\csr\ta_CDLSPINNINGTOP.obj \ ++..\..\..\..\..\temp\csr\ta_CDLSTALLEDPATTERN.obj \ ++..\..\..\..\..\temp\csr\ta_CDLSTICKSANDWICH.obj \ ++..\..\..\..\..\temp\csr\ta_CDLTAKURI.obj \ ++..\..\..\..\..\temp\csr\ta_CDLTASUKIGAP.obj \ ++..\..\..\..\..\temp\csr\ta_CDLTHRUSTING.obj \ ++..\..\..\..\..\temp\csr\ta_CDLTRISTAR.obj \ ++..\..\..\..\..\temp\csr\ta_CDLUNIQUE3RIVER.obj \ ++..\..\..\..\..\temp\csr\ta_CDLUPSIDEGAP2CROWS.obj \ ++..\..\..\..\..\temp\csr\ta_CDLXSIDEGAP3METHODS.obj \ ++..\..\..\..\..\temp\csr\ta_CEIL.obj \ ++..\..\..\..\..\temp\csr\ta_CMO.obj \ ++..\..\..\..\..\temp\csr\ta_CORREL.obj \ ++..\..\..\..\..\temp\csr\ta_COS.obj \ ++..\..\..\..\..\temp\csr\ta_COSH.obj \ ++..\..\..\..\..\temp\csr\ta_DEMA.obj \ ++..\..\..\..\..\temp\csr\ta_DIV.obj \ ++..\..\..\..\..\temp\csr\ta_DX.obj \ ++..\..\..\..\..\temp\csr\ta_EMA.obj \ ++..\..\..\..\..\temp\csr\ta_EXP.obj \ ++..\..\..\..\..\temp\csr\ta_FLOOR.obj \ ++..\..\..\..\..\temp\csr\ta_HT_DCPERIOD.obj \ ++..\..\..\..\..\temp\csr\ta_HT_DCPHASE.obj \ ++..\..\..\..\..\temp\csr\ta_HT_PHASOR.obj \ ++..\..\..\..\..\temp\csr\ta_HT_SINE.obj \ ++..\..\..\..\..\temp\csr\ta_HT_TRENDLINE.obj \ ++..\..\..\..\..\temp\csr\ta_HT_TRENDMODE.obj \ ++..\..\..\..\..\temp\csr\ta_KAMA.obj \ ++..\..\..\..\..\temp\csr\ta_LINEARREG.obj \ ++..\..\..\..\..\temp\csr\ta_LINEARREG_ANGLE.obj \ ++..\..\..\..\..\temp\csr\ta_LINEARREG_INTERCEPT.obj \ ++..\..\..\..\..\temp\csr\ta_LINEARREG_SLOPE.obj \ ++..\..\..\..\..\temp\csr\ta_LN.obj \ ++..\..\..\..\..\temp\csr\ta_LOG10.obj \ ++..\..\..\..\..\temp\csr\ta_MA.obj \ ++..\..\..\..\..\temp\csr\ta_MACD.obj \ ++..\..\..\..\..\temp\csr\ta_MACDEXT.obj \ ++..\..\..\..\..\temp\csr\ta_MACDFIX.obj \ ++..\..\..\..\..\temp\csr\ta_MAMA.obj \ ++..\..\..\..\..\temp\csr\ta_MAVP.obj \ ++..\..\..\..\..\temp\csr\ta_MAX.obj \ ++..\..\..\..\..\temp\csr\ta_MAXINDEX.obj \ ++..\..\..\..\..\temp\csr\ta_MEDPRICE.obj \ ++..\..\..\..\..\temp\csr\ta_MFI.obj \ ++..\..\..\..\..\temp\csr\ta_MIDPOINT.obj \ ++..\..\..\..\..\temp\csr\ta_MIDPRICE.obj \ ++..\..\..\..\..\temp\csr\ta_MIN.obj \ ++..\..\..\..\..\temp\csr\ta_MININDEX.obj \ ++..\..\..\..\..\temp\csr\ta_MINMAX.obj \ ++..\..\..\..\..\temp\csr\ta_MINMAXINDEX.obj \ ++..\..\..\..\..\temp\csr\ta_MINUS_DI.obj \ ++..\..\..\..\..\temp\csr\ta_MINUS_DM.obj \ ++..\..\..\..\..\temp\csr\ta_MOM.obj \ ++..\..\..\..\..\temp\csr\ta_MULT.obj \ ++..\..\..\..\..\temp\csr\ta_NATR.obj \ ++..\..\..\..\..\temp\csr\ta_OBV.obj \ ++..\..\..\..\..\temp\csr\ta_PLUS_DI.obj \ ++..\..\..\..\..\temp\csr\ta_PLUS_DM.obj \ ++..\..\..\..\..\temp\csr\ta_PPO.obj \ ++..\..\..\..\..\temp\csr\ta_ROC.obj \ ++..\..\..\..\..\temp\csr\ta_ROCP.obj \ ++..\..\..\..\..\temp\csr\ta_ROCR.obj \ ++..\..\..\..\..\temp\csr\ta_ROCR100.obj \ ++..\..\..\..\..\temp\csr\ta_RSI.obj \ ++..\..\..\..\..\temp\csr\ta_SAR.obj \ ++..\..\..\..\..\temp\csr\ta_SAREXT.obj \ ++..\..\..\..\..\temp\csr\ta_SIN.obj \ ++..\..\..\..\..\temp\csr\ta_SINH.obj \ ++..\..\..\..\..\temp\csr\ta_SMA.obj \ ++..\..\..\..\..\temp\csr\ta_SQRT.obj \ ++..\..\..\..\..\temp\csr\ta_STDDEV.obj \ ++..\..\..\..\..\temp\csr\ta_STOCH.obj \ ++..\..\..\..\..\temp\csr\ta_STOCHF.obj \ ++..\..\..\..\..\temp\csr\ta_STOCHRSI.obj \ ++..\..\..\..\..\temp\csr\ta_SUB.obj \ ++..\..\..\..\..\temp\csr\ta_SUM.obj \ ++..\..\..\..\..\temp\csr\ta_T3.obj \ ++..\..\..\..\..\temp\csr\ta_TAN.obj \ ++..\..\..\..\..\temp\csr\ta_TANH.obj \ ++..\..\..\..\..\temp\csr\ta_TEMA.obj \ ++..\..\..\..\..\temp\csr\ta_TRANGE.obj \ ++..\..\..\..\..\temp\csr\ta_TRIMA.obj \ ++..\..\..\..\..\temp\csr\ta_TRIX.obj \ ++..\..\..\..\..\temp\csr\ta_TSF.obj \ ++..\..\..\..\..\temp\csr\ta_TYPPRICE.obj \ ++..\..\..\..\..\temp\csr\ta_ULTOSC.obj \ ++..\..\..\..\..\temp\csr\ta_VAR.obj \ ++..\..\..\..\..\temp\csr\ta_WCLPRICE.obj \ ++..\..\..\..\..\temp\csr\ta_WILLR.obj \ ++..\..\..\..\..\temp\csr\ta_WMA.obj \ ++,; + +moc: $(SRCMOC) + +tmake: ../csr/win32/symantec/ta_libc/Makefile + +../csr/win32/symantec/ta_libc/Makefile: ta_libc/ta_libc.pro + tmake ta_libc/ta_libc.pro -o ../csr/win32/symantec/ta_libc/Makefile + +dist: + $(ZIP) ta_libc/ta_libc.zip ta_libc/ta_libc.pro $(SOURCES) $(HEADERS) $(DIST) + +clean: + -del ..\..\..\..\..\temp\csr\ta_global.obj + -del ..\..\..\..\..\temp\csr\ta_retcode.obj + -del ..\..\..\..\..\temp\csr\ta_version.obj + -del ..\..\..\..\..\temp\csr\ta_abstract.obj + -del ..\..\..\..\..\temp\csr\ta_def_ui.obj + -del ..\..\..\..\..\temp\csr\ta_func_api.obj + -del ..\..\..\..\..\temp\csr\ta_group_idx.obj + -del ..\..\..\..\..\temp\csr\ta_frame.obj + -del ..\..\..\..\..\temp\csr\table_a.obj + -del ..\..\..\..\..\temp\csr\table_b.obj + -del ..\..\..\..\..\temp\csr\table_c.obj + -del ..\..\..\..\..\temp\csr\table_d.obj + -del ..\..\..\..\..\temp\csr\table_e.obj + -del ..\..\..\..\..\temp\csr\table_f.obj + -del ..\..\..\..\..\temp\csr\table_g.obj + -del ..\..\..\..\..\temp\csr\table_h.obj + -del ..\..\..\..\..\temp\csr\table_i.obj + -del ..\..\..\..\..\temp\csr\table_j.obj + -del ..\..\..\..\..\temp\csr\table_k.obj + -del ..\..\..\..\..\temp\csr\table_l.obj + -del ..\..\..\..\..\temp\csr\table_m.obj + -del ..\..\..\..\..\temp\csr\table_n.obj + -del ..\..\..\..\..\temp\csr\table_o.obj + -del ..\..\..\..\..\temp\csr\table_p.obj + -del ..\..\..\..\..\temp\csr\table_q.obj + -del ..\..\..\..\..\temp\csr\table_r.obj + -del ..\..\..\..\..\temp\csr\table_s.obj + -del ..\..\..\..\..\temp\csr\table_t.obj + -del ..\..\..\..\..\temp\csr\table_u.obj + -del ..\..\..\..\..\temp\csr\table_v.obj + -del ..\..\..\..\..\temp\csr\table_w.obj + -del ..\..\..\..\..\temp\csr\table_x.obj + -del ..\..\..\..\..\temp\csr\table_y.obj + -del ..\..\..\..\..\temp\csr\table_z.obj + -del ..\..\..\..\..\temp\csr\ta_utility.obj + -del ..\..\..\..\..\temp\csr\ta_ACOS.obj + -del ..\..\..\..\..\temp\csr\ta_AD.obj + -del ..\..\..\..\..\temp\csr\ta_ADD.obj + -del ..\..\..\..\..\temp\csr\ta_ADOSC.obj + -del ..\..\..\..\..\temp\csr\ta_ADX.obj + -del ..\..\..\..\..\temp\csr\ta_ADXR.obj + -del ..\..\..\..\..\temp\csr\ta_APO.obj + -del ..\..\..\..\..\temp\csr\ta_AROON.obj + -del ..\..\..\..\..\temp\csr\ta_AROONOSC.obj + -del ..\..\..\..\..\temp\csr\ta_ASIN.obj + -del ..\..\..\..\..\temp\csr\ta_ATAN.obj + -del ..\..\..\..\..\temp\csr\ta_ATR.obj + -del ..\..\..\..\..\temp\csr\ta_AVGPRICE.obj + -del ..\..\..\..\..\temp\csr\ta_BBANDS.obj + -del ..\..\..\..\..\temp\csr\ta_BETA.obj + -del ..\..\..\..\..\temp\csr\ta_BOP.obj + -del ..\..\..\..\..\temp\csr\ta_CCI.obj + -del ..\..\..\..\..\temp\csr\ta_CDL2CROWS.obj + -del ..\..\..\..\..\temp\csr\ta_CDL3BLACKCROWS.obj + -del ..\..\..\..\..\temp\csr\ta_CDL3INSIDE.obj + -del ..\..\..\..\..\temp\csr\ta_CDL3LINESTRIKE.obj + -del ..\..\..\..\..\temp\csr\ta_CDL3OUTSIDE.obj + -del ..\..\..\..\..\temp\csr\ta_CDL3STARSINSOUTH.obj + -del ..\..\..\..\..\temp\csr\ta_CDL3WHITESOLDIERS.obj + -del ..\..\..\..\..\temp\csr\ta_CDLABANDONEDBABY.obj + -del ..\..\..\..\..\temp\csr\ta_CDLADVANCEBLOCK.obj + -del ..\..\..\..\..\temp\csr\ta_CDLBELTHOLD.obj + -del ..\..\..\..\..\temp\csr\ta_CDLBREAKAWAY.obj + -del ..\..\..\..\..\temp\csr\ta_CDLCLOSINGMARUBOZU.obj + -del ..\..\..\..\..\temp\csr\ta_CDLCONCEALBABYSWALL.obj + -del ..\..\..\..\..\temp\csr\ta_CDLCOUNTERATTACK.obj + -del ..\..\..\..\..\temp\csr\ta_CDLDARKCLOUDCOVER.obj + -del ..\..\..\..\..\temp\csr\ta_CDLDOJI.obj + -del ..\..\..\..\..\temp\csr\ta_CDLDOJISTAR.obj + -del ..\..\..\..\..\temp\csr\ta_CDLDRAGONFLYDOJI.obj + -del ..\..\..\..\..\temp\csr\ta_CDLENGULFING.obj + -del ..\..\..\..\..\temp\csr\ta_CDLEVENINGDOJISTAR.obj + -del ..\..\..\..\..\temp\csr\ta_CDLEVENINGSTAR.obj + -del ..\..\..\..\..\temp\csr\ta_CDLGAPSIDESIDEWHITE.obj + -del ..\..\..\..\..\temp\csr\ta_CDLGRAVESTONEDOJI.obj + -del ..\..\..\..\..\temp\csr\ta_CDLHAMMER.obj + -del ..\..\..\..\..\temp\csr\ta_CDLHANGINGMAN.obj + -del ..\..\..\..\..\temp\csr\ta_CDLHARAMI.obj + -del ..\..\..\..\..\temp\csr\ta_CDLHARAMICROSS.obj + -del ..\..\..\..\..\temp\csr\ta_CDLHIGHWAVE.obj + -del ..\..\..\..\..\temp\csr\ta_CDLHIKKAKE.obj + -del ..\..\..\..\..\temp\csr\ta_CDLHIKKAKEMOD.obj + -del ..\..\..\..\..\temp\csr\ta_CDLHOMINGPIGEON.obj + -del ..\..\..\..\..\temp\csr\ta_CDLIDENTICAL3CROWS.obj + -del ..\..\..\..\..\temp\csr\ta_CDLINNECK.obj + -del ..\..\..\..\..\temp\csr\ta_CDLINVERTEDHAMMER.obj + -del ..\..\..\..\..\temp\csr\ta_CDLKICKING.obj + -del ..\..\..\..\..\temp\csr\ta_CDLKICKINGBYLENGTH.obj + -del ..\..\..\..\..\temp\csr\ta_CDLLADDERBOTTOM.obj + -del ..\..\..\..\..\temp\csr\ta_CDLLONGLEGGEDDOJI.obj + -del ..\..\..\..\..\temp\csr\ta_CDLLONGLINE.obj + -del ..\..\..\..\..\temp\csr\ta_CDLMARUBOZU.obj + -del ..\..\..\..\..\temp\csr\ta_CDLMATCHINGLOW.obj + -del ..\..\..\..\..\temp\csr\ta_CDLMATHOLD.obj + -del ..\..\..\..\..\temp\csr\ta_CDLMORNINGDOJISTAR.obj + -del ..\..\..\..\..\temp\csr\ta_CDLMORNINGSTAR.obj + -del ..\..\..\..\..\temp\csr\ta_CDLONNECK.obj + -del ..\..\..\..\..\temp\csr\ta_CDLPIERCING.obj + -del ..\..\..\..\..\temp\csr\ta_CDLRICKSHAWMAN.obj + -del ..\..\..\..\..\temp\csr\ta_CDLRISEFALL3METHODS.obj + -del ..\..\..\..\..\temp\csr\ta_CDLSEPARATINGLINES.obj + -del ..\..\..\..\..\temp\csr\ta_CDLSHOOTINGSTAR.obj + -del ..\..\..\..\..\temp\csr\ta_CDLSHORTLINE.obj + -del ..\..\..\..\..\temp\csr\ta_CDLSPINNINGTOP.obj + -del ..\..\..\..\..\temp\csr\ta_CDLSTALLEDPATTERN.obj + -del ..\..\..\..\..\temp\csr\ta_CDLSTICKSANDWICH.obj + -del ..\..\..\..\..\temp\csr\ta_CDLTAKURI.obj + -del ..\..\..\..\..\temp\csr\ta_CDLTASUKIGAP.obj + -del ..\..\..\..\..\temp\csr\ta_CDLTHRUSTING.obj + -del ..\..\..\..\..\temp\csr\ta_CDLTRISTAR.obj + -del ..\..\..\..\..\temp\csr\ta_CDLUNIQUE3RIVER.obj + -del ..\..\..\..\..\temp\csr\ta_CDLUPSIDEGAP2CROWS.obj + -del ..\..\..\..\..\temp\csr\ta_CDLXSIDEGAP3METHODS.obj + -del ..\..\..\..\..\temp\csr\ta_CEIL.obj + -del ..\..\..\..\..\temp\csr\ta_CMO.obj + -del ..\..\..\..\..\temp\csr\ta_CORREL.obj + -del ..\..\..\..\..\temp\csr\ta_COS.obj + -del ..\..\..\..\..\temp\csr\ta_COSH.obj + -del ..\..\..\..\..\temp\csr\ta_DEMA.obj + -del ..\..\..\..\..\temp\csr\ta_DIV.obj + -del ..\..\..\..\..\temp\csr\ta_DX.obj + -del ..\..\..\..\..\temp\csr\ta_EMA.obj + -del ..\..\..\..\..\temp\csr\ta_EXP.obj + -del ..\..\..\..\..\temp\csr\ta_FLOOR.obj + -del ..\..\..\..\..\temp\csr\ta_HT_DCPERIOD.obj + -del ..\..\..\..\..\temp\csr\ta_HT_DCPHASE.obj + -del ..\..\..\..\..\temp\csr\ta_HT_PHASOR.obj + -del ..\..\..\..\..\temp\csr\ta_HT_SINE.obj + -del ..\..\..\..\..\temp\csr\ta_HT_TRENDLINE.obj + -del ..\..\..\..\..\temp\csr\ta_HT_TRENDMODE.obj + -del ..\..\..\..\..\temp\csr\ta_KAMA.obj + -del ..\..\..\..\..\temp\csr\ta_LINEARREG.obj + -del ..\..\..\..\..\temp\csr\ta_LINEARREG_ANGLE.obj + -del ..\..\..\..\..\temp\csr\ta_LINEARREG_INTERCEPT.obj + -del ..\..\..\..\..\temp\csr\ta_LINEARREG_SLOPE.obj + -del ..\..\..\..\..\temp\csr\ta_LN.obj + -del ..\..\..\..\..\temp\csr\ta_LOG10.obj + -del ..\..\..\..\..\temp\csr\ta_MA.obj + -del ..\..\..\..\..\temp\csr\ta_MACD.obj + -del ..\..\..\..\..\temp\csr\ta_MACDEXT.obj + -del ..\..\..\..\..\temp\csr\ta_MACDFIX.obj + -del ..\..\..\..\..\temp\csr\ta_MAMA.obj + -del ..\..\..\..\..\temp\csr\ta_MAVP.obj + -del ..\..\..\..\..\temp\csr\ta_MAX.obj + -del ..\..\..\..\..\temp\csr\ta_MAXINDEX.obj + -del ..\..\..\..\..\temp\csr\ta_MEDPRICE.obj + -del ..\..\..\..\..\temp\csr\ta_MFI.obj + -del ..\..\..\..\..\temp\csr\ta_MIDPOINT.obj + -del ..\..\..\..\..\temp\csr\ta_MIDPRICE.obj + -del ..\..\..\..\..\temp\csr\ta_MIN.obj + -del ..\..\..\..\..\temp\csr\ta_MININDEX.obj + -del ..\..\..\..\..\temp\csr\ta_MINMAX.obj + -del ..\..\..\..\..\temp\csr\ta_MINMAXINDEX.obj + -del ..\..\..\..\..\temp\csr\ta_MINUS_DI.obj + -del ..\..\..\..\..\temp\csr\ta_MINUS_DM.obj + -del ..\..\..\..\..\temp\csr\ta_MOM.obj + -del ..\..\..\..\..\temp\csr\ta_MULT.obj + -del ..\..\..\..\..\temp\csr\ta_NATR.obj + -del ..\..\..\..\..\temp\csr\ta_OBV.obj + -del ..\..\..\..\..\temp\csr\ta_PLUS_DI.obj + -del ..\..\..\..\..\temp\csr\ta_PLUS_DM.obj + -del ..\..\..\..\..\temp\csr\ta_PPO.obj + -del ..\..\..\..\..\temp\csr\ta_ROC.obj + -del ..\..\..\..\..\temp\csr\ta_ROCP.obj + -del ..\..\..\..\..\temp\csr\ta_ROCR.obj + -del ..\..\..\..\..\temp\csr\ta_ROCR100.obj + -del ..\..\..\..\..\temp\csr\ta_RSI.obj + -del ..\..\..\..\..\temp\csr\ta_SAR.obj + -del ..\..\..\..\..\temp\csr\ta_SAREXT.obj + -del ..\..\..\..\..\temp\csr\ta_SIN.obj + -del ..\..\..\..\..\temp\csr\ta_SINH.obj + -del ..\..\..\..\..\temp\csr\ta_SMA.obj + -del ..\..\..\..\..\temp\csr\ta_SQRT.obj + -del ..\..\..\..\..\temp\csr\ta_STDDEV.obj + -del ..\..\..\..\..\temp\csr\ta_STOCH.obj + -del ..\..\..\..\..\temp\csr\ta_STOCHF.obj + -del ..\..\..\..\..\temp\csr\ta_STOCHRSI.obj + -del ..\..\..\..\..\temp\csr\ta_SUB.obj + -del ..\..\..\..\..\temp\csr\ta_SUM.obj + -del ..\..\..\..\..\temp\csr\ta_T3.obj + -del ..\..\..\..\..\temp\csr\ta_TAN.obj + -del ..\..\..\..\..\temp\csr\ta_TANH.obj + -del ..\..\..\..\..\temp\csr\ta_TEMA.obj + -del ..\..\..\..\..\temp\csr\ta_TRANGE.obj + -del ..\..\..\..\..\temp\csr\ta_TRIMA.obj + -del ..\..\..\..\..\temp\csr\ta_TRIX.obj + -del ..\..\..\..\..\temp\csr\ta_TSF.obj + -del ..\..\..\..\..\temp\csr\ta_TYPPRICE.obj + -del ..\..\..\..\..\temp\csr\ta_ULTOSC.obj + -del ..\..\..\..\..\temp\csr\ta_VAR.obj + -del ..\..\..\..\..\temp\csr\ta_WCLPRICE.obj + -del ..\..\..\..\..\temp\csr\ta_WILLR.obj + -del ..\..\..\..\..\temp\csr\ta_WMA.obj + -del $(TARGET) + -del ../../../../../bin/*.map + -del ../../../../../bin/*._xe + -del ../../../../../bin/*.tds + -del ../../../../../bin/*.pdb + -del ../../../../../bin/*.pbo + -del ../../../../../bin/*.pbi + -del ../../../../../bin/*.pbt + +####### Compile + +..\..\..\..\..\temp\csr\ta_global.obj: ..\..\..\..\..\src\ta_common\ta_global.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_global.obj ..\..\..\..\..\src\ta_common\ta_global.c + +..\..\..\..\..\temp\csr\ta_retcode.obj: ..\..\..\..\..\src\ta_common\ta_retcode.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_retcode.obj ..\..\..\..\..\src\ta_common\ta_retcode.c + +..\..\..\..\..\temp\csr\ta_version.obj: ..\..\..\..\..\src\ta_common\ta_version.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_version.obj ..\..\..\..\..\src\ta_common\ta_version.c + +..\..\..\..\..\temp\csr\ta_abstract.obj: ..\..\..\..\..\src\ta_abstract\ta_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_abstract.obj ..\..\..\..\..\src\ta_abstract\ta_abstract.c + +..\..\..\..\..\temp\csr\ta_def_ui.obj: ..\..\..\..\..\src\ta_abstract\ta_def_ui.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_def_ui.obj ..\..\..\..\..\src\ta_abstract\ta_def_ui.c + +..\..\..\..\..\temp\csr\ta_func_api.obj: ..\..\..\..\..\src\ta_abstract\ta_func_api.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_func_api.obj ..\..\..\..\..\src\ta_abstract\ta_func_api.c + +..\..\..\..\..\temp\csr\ta_group_idx.obj: ..\..\..\..\..\src\ta_abstract\ta_group_idx.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_group_idx.obj ..\..\..\..\..\src\ta_abstract\ta_group_idx.c + +..\..\..\..\..\temp\csr\ta_frame.obj: ..\..\..\..\..\src\ta_abstract\frames\ta_frame.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_frame.obj ..\..\..\..\..\src\ta_abstract\frames\ta_frame.c + +..\..\..\..\..\temp\csr\table_a.obj: ..\..\..\..\..\src\ta_abstract\tables\table_a.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\table_a.obj ..\..\..\..\..\src\ta_abstract\tables\table_a.c + +..\..\..\..\..\temp\csr\table_b.obj: ..\..\..\..\..\src\ta_abstract\tables\table_b.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\table_b.obj ..\..\..\..\..\src\ta_abstract\tables\table_b.c + +..\..\..\..\..\temp\csr\table_c.obj: ..\..\..\..\..\src\ta_abstract\tables\table_c.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\table_c.obj ..\..\..\..\..\src\ta_abstract\tables\table_c.c + +..\..\..\..\..\temp\csr\table_d.obj: ..\..\..\..\..\src\ta_abstract\tables\table_d.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\table_d.obj ..\..\..\..\..\src\ta_abstract\tables\table_d.c + +..\..\..\..\..\temp\csr\table_e.obj: ..\..\..\..\..\src\ta_abstract\tables\table_e.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\table_e.obj ..\..\..\..\..\src\ta_abstract\tables\table_e.c + +..\..\..\..\..\temp\csr\table_f.obj: ..\..\..\..\..\src\ta_abstract\tables\table_f.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\table_f.obj ..\..\..\..\..\src\ta_abstract\tables\table_f.c + +..\..\..\..\..\temp\csr\table_g.obj: ..\..\..\..\..\src\ta_abstract\tables\table_g.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\table_g.obj ..\..\..\..\..\src\ta_abstract\tables\table_g.c + +..\..\..\..\..\temp\csr\table_h.obj: ..\..\..\..\..\src\ta_abstract\tables\table_h.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\table_h.obj ..\..\..\..\..\src\ta_abstract\tables\table_h.c + +..\..\..\..\..\temp\csr\table_i.obj: ..\..\..\..\..\src\ta_abstract\tables\table_i.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\table_i.obj ..\..\..\..\..\src\ta_abstract\tables\table_i.c + +..\..\..\..\..\temp\csr\table_j.obj: ..\..\..\..\..\src\ta_abstract\tables\table_j.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\table_j.obj ..\..\..\..\..\src\ta_abstract\tables\table_j.c + +..\..\..\..\..\temp\csr\table_k.obj: ..\..\..\..\..\src\ta_abstract\tables\table_k.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\table_k.obj ..\..\..\..\..\src\ta_abstract\tables\table_k.c + +..\..\..\..\..\temp\csr\table_l.obj: ..\..\..\..\..\src\ta_abstract\tables\table_l.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\table_l.obj ..\..\..\..\..\src\ta_abstract\tables\table_l.c + +..\..\..\..\..\temp\csr\table_m.obj: ..\..\..\..\..\src\ta_abstract\tables\table_m.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\table_m.obj ..\..\..\..\..\src\ta_abstract\tables\table_m.c + +..\..\..\..\..\temp\csr\table_n.obj: ..\..\..\..\..\src\ta_abstract\tables\table_n.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\table_n.obj ..\..\..\..\..\src\ta_abstract\tables\table_n.c + +..\..\..\..\..\temp\csr\table_o.obj: ..\..\..\..\..\src\ta_abstract\tables\table_o.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\table_o.obj ..\..\..\..\..\src\ta_abstract\tables\table_o.c + +..\..\..\..\..\temp\csr\table_p.obj: ..\..\..\..\..\src\ta_abstract\tables\table_p.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\table_p.obj ..\..\..\..\..\src\ta_abstract\tables\table_p.c + +..\..\..\..\..\temp\csr\table_q.obj: ..\..\..\..\..\src\ta_abstract\tables\table_q.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\table_q.obj ..\..\..\..\..\src\ta_abstract\tables\table_q.c + +..\..\..\..\..\temp\csr\table_r.obj: ..\..\..\..\..\src\ta_abstract\tables\table_r.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\table_r.obj ..\..\..\..\..\src\ta_abstract\tables\table_r.c + +..\..\..\..\..\temp\csr\table_s.obj: ..\..\..\..\..\src\ta_abstract\tables\table_s.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\table_s.obj ..\..\..\..\..\src\ta_abstract\tables\table_s.c + +..\..\..\..\..\temp\csr\table_t.obj: ..\..\..\..\..\src\ta_abstract\tables\table_t.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\table_t.obj ..\..\..\..\..\src\ta_abstract\tables\table_t.c + +..\..\..\..\..\temp\csr\table_u.obj: ..\..\..\..\..\src\ta_abstract\tables\table_u.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\table_u.obj ..\..\..\..\..\src\ta_abstract\tables\table_u.c + +..\..\..\..\..\temp\csr\table_v.obj: ..\..\..\..\..\src\ta_abstract\tables\table_v.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\table_v.obj ..\..\..\..\..\src\ta_abstract\tables\table_v.c + +..\..\..\..\..\temp\csr\table_w.obj: ..\..\..\..\..\src\ta_abstract\tables\table_w.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\table_w.obj ..\..\..\..\..\src\ta_abstract\tables\table_w.c + +..\..\..\..\..\temp\csr\table_x.obj: ..\..\..\..\..\src\ta_abstract\tables\table_x.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\table_x.obj ..\..\..\..\..\src\ta_abstract\tables\table_x.c + +..\..\..\..\..\temp\csr\table_y.obj: ..\..\..\..\..\src\ta_abstract\tables\table_y.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\table_y.obj ..\..\..\..\..\src\ta_abstract\tables\table_y.c + +..\..\..\..\..\temp\csr\table_z.obj: ..\..\..\..\..\src\ta_abstract\tables\table_z.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\table_z.obj ..\..\..\..\..\src\ta_abstract\tables\table_z.c + +..\..\..\..\..\temp\csr\ta_utility.obj: ..\..\..\..\..\src\ta_func\ta_utility.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_utility.obj ..\..\..\..\..\src\ta_func\ta_utility.c + +..\..\..\..\..\temp\csr\ta_ACOS.obj: ..\..\..\..\..\src\ta_func\ta_ACOS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_ACOS.obj ..\..\..\..\..\src\ta_func\ta_ACOS.c + +..\..\..\..\..\temp\csr\ta_AD.obj: ..\..\..\..\..\src\ta_func\ta_AD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_AD.obj ..\..\..\..\..\src\ta_func\ta_AD.c + +..\..\..\..\..\temp\csr\ta_ADD.obj: ..\..\..\..\..\src\ta_func\ta_ADD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_ADD.obj ..\..\..\..\..\src\ta_func\ta_ADD.c + +..\..\..\..\..\temp\csr\ta_ADOSC.obj: ..\..\..\..\..\src\ta_func\ta_ADOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_ADOSC.obj ..\..\..\..\..\src\ta_func\ta_ADOSC.c + +..\..\..\..\..\temp\csr\ta_ADX.obj: ..\..\..\..\..\src\ta_func\ta_ADX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_ADX.obj ..\..\..\..\..\src\ta_func\ta_ADX.c + +..\..\..\..\..\temp\csr\ta_ADXR.obj: ..\..\..\..\..\src\ta_func\ta_ADXR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_ADXR.obj ..\..\..\..\..\src\ta_func\ta_ADXR.c + +..\..\..\..\..\temp\csr\ta_APO.obj: ..\..\..\..\..\src\ta_func\ta_APO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_APO.obj ..\..\..\..\..\src\ta_func\ta_APO.c + +..\..\..\..\..\temp\csr\ta_AROON.obj: ..\..\..\..\..\src\ta_func\ta_AROON.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_AROON.obj ..\..\..\..\..\src\ta_func\ta_AROON.c + +..\..\..\..\..\temp\csr\ta_AROONOSC.obj: ..\..\..\..\..\src\ta_func\ta_AROONOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_AROONOSC.obj ..\..\..\..\..\src\ta_func\ta_AROONOSC.c + +..\..\..\..\..\temp\csr\ta_ASIN.obj: ..\..\..\..\..\src\ta_func\ta_ASIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_ASIN.obj ..\..\..\..\..\src\ta_func\ta_ASIN.c + +..\..\..\..\..\temp\csr\ta_ATAN.obj: ..\..\..\..\..\src\ta_func\ta_ATAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_ATAN.obj ..\..\..\..\..\src\ta_func\ta_ATAN.c + +..\..\..\..\..\temp\csr\ta_ATR.obj: ..\..\..\..\..\src\ta_func\ta_ATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_ATR.obj ..\..\..\..\..\src\ta_func\ta_ATR.c + +..\..\..\..\..\temp\csr\ta_AVGPRICE.obj: ..\..\..\..\..\src\ta_func\ta_AVGPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_AVGPRICE.obj ..\..\..\..\..\src\ta_func\ta_AVGPRICE.c + +..\..\..\..\..\temp\csr\ta_BBANDS.obj: ..\..\..\..\..\src\ta_func\ta_BBANDS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_BBANDS.obj ..\..\..\..\..\src\ta_func\ta_BBANDS.c + +..\..\..\..\..\temp\csr\ta_BETA.obj: ..\..\..\..\..\src\ta_func\ta_BETA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_BETA.obj ..\..\..\..\..\src\ta_func\ta_BETA.c + +..\..\..\..\..\temp\csr\ta_BOP.obj: ..\..\..\..\..\src\ta_func\ta_BOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_BOP.obj ..\..\..\..\..\src\ta_func\ta_BOP.c + +..\..\..\..\..\temp\csr\ta_CCI.obj: ..\..\..\..\..\src\ta_func\ta_CCI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CCI.obj ..\..\..\..\..\src\ta_func\ta_CCI.c + +..\..\..\..\..\temp\csr\ta_CDL2CROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDL2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDL2CROWS.obj ..\..\..\..\..\src\ta_func\ta_CDL2CROWS.c + +..\..\..\..\..\temp\csr\ta_CDL3BLACKCROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDL3BLACKCROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDL3BLACKCROWS.obj ..\..\..\..\..\src\ta_func\ta_CDL3BLACKCROWS.c + +..\..\..\..\..\temp\csr\ta_CDL3INSIDE.obj: ..\..\..\..\..\src\ta_func\ta_CDL3INSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDL3INSIDE.obj ..\..\..\..\..\src\ta_func\ta_CDL3INSIDE.c + +..\..\..\..\..\temp\csr\ta_CDL3LINESTRIKE.obj: ..\..\..\..\..\src\ta_func\ta_CDL3LINESTRIKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDL3LINESTRIKE.obj ..\..\..\..\..\src\ta_func\ta_CDL3LINESTRIKE.c + +..\..\..\..\..\temp\csr\ta_CDL3OUTSIDE.obj: ..\..\..\..\..\src\ta_func\ta_CDL3OUTSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDL3OUTSIDE.obj ..\..\..\..\..\src\ta_func\ta_CDL3OUTSIDE.c + +..\..\..\..\..\temp\csr\ta_CDL3STARSINSOUTH.obj: ..\..\..\..\..\src\ta_func\ta_CDL3STARSINSOUTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDL3STARSINSOUTH.obj ..\..\..\..\..\src\ta_func\ta_CDL3STARSINSOUTH.c + +..\..\..\..\..\temp\csr\ta_CDL3WHITESOLDIERS.obj: ..\..\..\..\..\src\ta_func\ta_CDL3WHITESOLDIERS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDL3WHITESOLDIERS.obj ..\..\..\..\..\src\ta_func\ta_CDL3WHITESOLDIERS.c + +..\..\..\..\..\temp\csr\ta_CDLABANDONEDBABY.obj: ..\..\..\..\..\src\ta_func\ta_CDLABANDONEDBABY.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLABANDONEDBABY.obj ..\..\..\..\..\src\ta_func\ta_CDLABANDONEDBABY.c + +..\..\..\..\..\temp\csr\ta_CDLADVANCEBLOCK.obj: ..\..\..\..\..\src\ta_func\ta_CDLADVANCEBLOCK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLADVANCEBLOCK.obj ..\..\..\..\..\src\ta_func\ta_CDLADVANCEBLOCK.c + +..\..\..\..\..\temp\csr\ta_CDLBELTHOLD.obj: ..\..\..\..\..\src\ta_func\ta_CDLBELTHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLBELTHOLD.obj ..\..\..\..\..\src\ta_func\ta_CDLBELTHOLD.c + +..\..\..\..\..\temp\csr\ta_CDLBREAKAWAY.obj: ..\..\..\..\..\src\ta_func\ta_CDLBREAKAWAY.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLBREAKAWAY.obj ..\..\..\..\..\src\ta_func\ta_CDLBREAKAWAY.c + +..\..\..\..\..\temp\csr\ta_CDLCLOSINGMARUBOZU.obj: ..\..\..\..\..\src\ta_func\ta_CDLCLOSINGMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLCLOSINGMARUBOZU.obj ..\..\..\..\..\src\ta_func\ta_CDLCLOSINGMARUBOZU.c + +..\..\..\..\..\temp\csr\ta_CDLCONCEALBABYSWALL.obj: ..\..\..\..\..\src\ta_func\ta_CDLCONCEALBABYSWALL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLCONCEALBABYSWALL.obj ..\..\..\..\..\src\ta_func\ta_CDLCONCEALBABYSWALL.c + +..\..\..\..\..\temp\csr\ta_CDLCOUNTERATTACK.obj: ..\..\..\..\..\src\ta_func\ta_CDLCOUNTERATTACK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLCOUNTERATTACK.obj ..\..\..\..\..\src\ta_func\ta_CDLCOUNTERATTACK.c + +..\..\..\..\..\temp\csr\ta_CDLDARKCLOUDCOVER.obj: ..\..\..\..\..\src\ta_func\ta_CDLDARKCLOUDCOVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLDARKCLOUDCOVER.obj ..\..\..\..\..\src\ta_func\ta_CDLDARKCLOUDCOVER.c + +..\..\..\..\..\temp\csr\ta_CDLDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLDOJI.c + +..\..\..\..\..\temp\csr\ta_CDLDOJISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLDOJISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLDOJISTAR.c + +..\..\..\..\..\temp\csr\ta_CDLDRAGONFLYDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLDRAGONFLYDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLDRAGONFLYDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLDRAGONFLYDOJI.c + +..\..\..\..\..\temp\csr\ta_CDLENGULFING.obj: ..\..\..\..\..\src\ta_func\ta_CDLENGULFING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLENGULFING.obj ..\..\..\..\..\src\ta_func\ta_CDLENGULFING.c + +..\..\..\..\..\temp\csr\ta_CDLEVENINGDOJISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLEVENINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLEVENINGDOJISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLEVENINGDOJISTAR.c + +..\..\..\..\..\temp\csr\ta_CDLEVENINGSTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLEVENINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLEVENINGSTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLEVENINGSTAR.c + +..\..\..\..\..\temp\csr\ta_CDLGAPSIDESIDEWHITE.obj: ..\..\..\..\..\src\ta_func\ta_CDLGAPSIDESIDEWHITE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLGAPSIDESIDEWHITE.obj ..\..\..\..\..\src\ta_func\ta_CDLGAPSIDESIDEWHITE.c + +..\..\..\..\..\temp\csr\ta_CDLGRAVESTONEDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLGRAVESTONEDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLGRAVESTONEDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLGRAVESTONEDOJI.c + +..\..\..\..\..\temp\csr\ta_CDLHAMMER.obj: ..\..\..\..\..\src\ta_func\ta_CDLHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLHAMMER.obj ..\..\..\..\..\src\ta_func\ta_CDLHAMMER.c + +..\..\..\..\..\temp\csr\ta_CDLHANGINGMAN.obj: ..\..\..\..\..\src\ta_func\ta_CDLHANGINGMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLHANGINGMAN.obj ..\..\..\..\..\src\ta_func\ta_CDLHANGINGMAN.c + +..\..\..\..\..\temp\csr\ta_CDLHARAMI.obj: ..\..\..\..\..\src\ta_func\ta_CDLHARAMI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLHARAMI.obj ..\..\..\..\..\src\ta_func\ta_CDLHARAMI.c + +..\..\..\..\..\temp\csr\ta_CDLHARAMICROSS.obj: ..\..\..\..\..\src\ta_func\ta_CDLHARAMICROSS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLHARAMICROSS.obj ..\..\..\..\..\src\ta_func\ta_CDLHARAMICROSS.c + +..\..\..\..\..\temp\csr\ta_CDLHIGHWAVE.obj: ..\..\..\..\..\src\ta_func\ta_CDLHIGHWAVE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLHIGHWAVE.obj ..\..\..\..\..\src\ta_func\ta_CDLHIGHWAVE.c + +..\..\..\..\..\temp\csr\ta_CDLHIKKAKE.obj: ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLHIKKAKE.obj ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKE.c + +..\..\..\..\..\temp\csr\ta_CDLHIKKAKEMOD.obj: ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKEMOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLHIKKAKEMOD.obj ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKEMOD.c + +..\..\..\..\..\temp\csr\ta_CDLHOMINGPIGEON.obj: ..\..\..\..\..\src\ta_func\ta_CDLHOMINGPIGEON.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLHOMINGPIGEON.obj ..\..\..\..\..\src\ta_func\ta_CDLHOMINGPIGEON.c + +..\..\..\..\..\temp\csr\ta_CDLIDENTICAL3CROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDLIDENTICAL3CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLIDENTICAL3CROWS.obj ..\..\..\..\..\src\ta_func\ta_CDLIDENTICAL3CROWS.c + +..\..\..\..\..\temp\csr\ta_CDLINNECK.obj: ..\..\..\..\..\src\ta_func\ta_CDLINNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLINNECK.obj ..\..\..\..\..\src\ta_func\ta_CDLINNECK.c + +..\..\..\..\..\temp\csr\ta_CDLINVERTEDHAMMER.obj: ..\..\..\..\..\src\ta_func\ta_CDLINVERTEDHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLINVERTEDHAMMER.obj ..\..\..\..\..\src\ta_func\ta_CDLINVERTEDHAMMER.c + +..\..\..\..\..\temp\csr\ta_CDLKICKING.obj: ..\..\..\..\..\src\ta_func\ta_CDLKICKING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLKICKING.obj ..\..\..\..\..\src\ta_func\ta_CDLKICKING.c + +..\..\..\..\..\temp\csr\ta_CDLKICKINGBYLENGTH.obj: ..\..\..\..\..\src\ta_func\ta_CDLKICKINGBYLENGTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLKICKINGBYLENGTH.obj ..\..\..\..\..\src\ta_func\ta_CDLKICKINGBYLENGTH.c + +..\..\..\..\..\temp\csr\ta_CDLLADDERBOTTOM.obj: ..\..\..\..\..\src\ta_func\ta_CDLLADDERBOTTOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLLADDERBOTTOM.obj ..\..\..\..\..\src\ta_func\ta_CDLLADDERBOTTOM.c + +..\..\..\..\..\temp\csr\ta_CDLLONGLEGGEDDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLLONGLEGGEDDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLLONGLEGGEDDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLLONGLEGGEDDOJI.c + +..\..\..\..\..\temp\csr\ta_CDLLONGLINE.obj: ..\..\..\..\..\src\ta_func\ta_CDLLONGLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLLONGLINE.obj ..\..\..\..\..\src\ta_func\ta_CDLLONGLINE.c + +..\..\..\..\..\temp\csr\ta_CDLMARUBOZU.obj: ..\..\..\..\..\src\ta_func\ta_CDLMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLMARUBOZU.obj ..\..\..\..\..\src\ta_func\ta_CDLMARUBOZU.c + +..\..\..\..\..\temp\csr\ta_CDLMATCHINGLOW.obj: ..\..\..\..\..\src\ta_func\ta_CDLMATCHINGLOW.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLMATCHINGLOW.obj ..\..\..\..\..\src\ta_func\ta_CDLMATCHINGLOW.c + +..\..\..\..\..\temp\csr\ta_CDLMATHOLD.obj: ..\..\..\..\..\src\ta_func\ta_CDLMATHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLMATHOLD.obj ..\..\..\..\..\src\ta_func\ta_CDLMATHOLD.c + +..\..\..\..\..\temp\csr\ta_CDLMORNINGDOJISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLMORNINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLMORNINGDOJISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLMORNINGDOJISTAR.c + +..\..\..\..\..\temp\csr\ta_CDLMORNINGSTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLMORNINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLMORNINGSTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLMORNINGSTAR.c + +..\..\..\..\..\temp\csr\ta_CDLONNECK.obj: ..\..\..\..\..\src\ta_func\ta_CDLONNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLONNECK.obj ..\..\..\..\..\src\ta_func\ta_CDLONNECK.c + +..\..\..\..\..\temp\csr\ta_CDLPIERCING.obj: ..\..\..\..\..\src\ta_func\ta_CDLPIERCING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLPIERCING.obj ..\..\..\..\..\src\ta_func\ta_CDLPIERCING.c + +..\..\..\..\..\temp\csr\ta_CDLRICKSHAWMAN.obj: ..\..\..\..\..\src\ta_func\ta_CDLRICKSHAWMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLRICKSHAWMAN.obj ..\..\..\..\..\src\ta_func\ta_CDLRICKSHAWMAN.c + +..\..\..\..\..\temp\csr\ta_CDLRISEFALL3METHODS.obj: ..\..\..\..\..\src\ta_func\ta_CDLRISEFALL3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLRISEFALL3METHODS.obj ..\..\..\..\..\src\ta_func\ta_CDLRISEFALL3METHODS.c + +..\..\..\..\..\temp\csr\ta_CDLSEPARATINGLINES.obj: ..\..\..\..\..\src\ta_func\ta_CDLSEPARATINGLINES.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLSEPARATINGLINES.obj ..\..\..\..\..\src\ta_func\ta_CDLSEPARATINGLINES.c + +..\..\..\..\..\temp\csr\ta_CDLSHOOTINGSTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLSHOOTINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLSHOOTINGSTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLSHOOTINGSTAR.c + +..\..\..\..\..\temp\csr\ta_CDLSHORTLINE.obj: ..\..\..\..\..\src\ta_func\ta_CDLSHORTLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLSHORTLINE.obj ..\..\..\..\..\src\ta_func\ta_CDLSHORTLINE.c + +..\..\..\..\..\temp\csr\ta_CDLSPINNINGTOP.obj: ..\..\..\..\..\src\ta_func\ta_CDLSPINNINGTOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLSPINNINGTOP.obj ..\..\..\..\..\src\ta_func\ta_CDLSPINNINGTOP.c + +..\..\..\..\..\temp\csr\ta_CDLSTALLEDPATTERN.obj: ..\..\..\..\..\src\ta_func\ta_CDLSTALLEDPATTERN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLSTALLEDPATTERN.obj ..\..\..\..\..\src\ta_func\ta_CDLSTALLEDPATTERN.c + +..\..\..\..\..\temp\csr\ta_CDLSTICKSANDWICH.obj: ..\..\..\..\..\src\ta_func\ta_CDLSTICKSANDWICH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLSTICKSANDWICH.obj ..\..\..\..\..\src\ta_func\ta_CDLSTICKSANDWICH.c + +..\..\..\..\..\temp\csr\ta_CDLTAKURI.obj: ..\..\..\..\..\src\ta_func\ta_CDLTAKURI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLTAKURI.obj ..\..\..\..\..\src\ta_func\ta_CDLTAKURI.c + +..\..\..\..\..\temp\csr\ta_CDLTASUKIGAP.obj: ..\..\..\..\..\src\ta_func\ta_CDLTASUKIGAP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLTASUKIGAP.obj ..\..\..\..\..\src\ta_func\ta_CDLTASUKIGAP.c + +..\..\..\..\..\temp\csr\ta_CDLTHRUSTING.obj: ..\..\..\..\..\src\ta_func\ta_CDLTHRUSTING.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLTHRUSTING.obj ..\..\..\..\..\src\ta_func\ta_CDLTHRUSTING.c + +..\..\..\..\..\temp\csr\ta_CDLTRISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLTRISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLTRISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLTRISTAR.c + +..\..\..\..\..\temp\csr\ta_CDLUNIQUE3RIVER.obj: ..\..\..\..\..\src\ta_func\ta_CDLUNIQUE3RIVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLUNIQUE3RIVER.obj ..\..\..\..\..\src\ta_func\ta_CDLUNIQUE3RIVER.c + +..\..\..\..\..\temp\csr\ta_CDLUPSIDEGAP2CROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDLUPSIDEGAP2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLUPSIDEGAP2CROWS.obj ..\..\..\..\..\src\ta_func\ta_CDLUPSIDEGAP2CROWS.c + +..\..\..\..\..\temp\csr\ta_CDLXSIDEGAP3METHODS.obj: ..\..\..\..\..\src\ta_func\ta_CDLXSIDEGAP3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CDLXSIDEGAP3METHODS.obj ..\..\..\..\..\src\ta_func\ta_CDLXSIDEGAP3METHODS.c + +..\..\..\..\..\temp\csr\ta_CEIL.obj: ..\..\..\..\..\src\ta_func\ta_CEIL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CEIL.obj ..\..\..\..\..\src\ta_func\ta_CEIL.c + +..\..\..\..\..\temp\csr\ta_CMO.obj: ..\..\..\..\..\src\ta_func\ta_CMO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CMO.obj ..\..\..\..\..\src\ta_func\ta_CMO.c + +..\..\..\..\..\temp\csr\ta_CORREL.obj: ..\..\..\..\..\src\ta_func\ta_CORREL.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_CORREL.obj ..\..\..\..\..\src\ta_func\ta_CORREL.c + +..\..\..\..\..\temp\csr\ta_COS.obj: ..\..\..\..\..\src\ta_func\ta_COS.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_COS.obj ..\..\..\..\..\src\ta_func\ta_COS.c + +..\..\..\..\..\temp\csr\ta_COSH.obj: ..\..\..\..\..\src\ta_func\ta_COSH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_COSH.obj ..\..\..\..\..\src\ta_func\ta_COSH.c + +..\..\..\..\..\temp\csr\ta_DEMA.obj: ..\..\..\..\..\src\ta_func\ta_DEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_DEMA.obj ..\..\..\..\..\src\ta_func\ta_DEMA.c + +..\..\..\..\..\temp\csr\ta_DIV.obj: ..\..\..\..\..\src\ta_func\ta_DIV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_DIV.obj ..\..\..\..\..\src\ta_func\ta_DIV.c + +..\..\..\..\..\temp\csr\ta_DX.obj: ..\..\..\..\..\src\ta_func\ta_DX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_DX.obj ..\..\..\..\..\src\ta_func\ta_DX.c + +..\..\..\..\..\temp\csr\ta_EMA.obj: ..\..\..\..\..\src\ta_func\ta_EMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_EMA.obj ..\..\..\..\..\src\ta_func\ta_EMA.c + +..\..\..\..\..\temp\csr\ta_EXP.obj: ..\..\..\..\..\src\ta_func\ta_EXP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_EXP.obj ..\..\..\..\..\src\ta_func\ta_EXP.c + +..\..\..\..\..\temp\csr\ta_FLOOR.obj: ..\..\..\..\..\src\ta_func\ta_FLOOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_FLOOR.obj ..\..\..\..\..\src\ta_func\ta_FLOOR.c + +..\..\..\..\..\temp\csr\ta_HT_DCPERIOD.obj: ..\..\..\..\..\src\ta_func\ta_HT_DCPERIOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_HT_DCPERIOD.obj ..\..\..\..\..\src\ta_func\ta_HT_DCPERIOD.c + +..\..\..\..\..\temp\csr\ta_HT_DCPHASE.obj: ..\..\..\..\..\src\ta_func\ta_HT_DCPHASE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_HT_DCPHASE.obj ..\..\..\..\..\src\ta_func\ta_HT_DCPHASE.c + +..\..\..\..\..\temp\csr\ta_HT_PHASOR.obj: ..\..\..\..\..\src\ta_func\ta_HT_PHASOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_HT_PHASOR.obj ..\..\..\..\..\src\ta_func\ta_HT_PHASOR.c + +..\..\..\..\..\temp\csr\ta_HT_SINE.obj: ..\..\..\..\..\src\ta_func\ta_HT_SINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_HT_SINE.obj ..\..\..\..\..\src\ta_func\ta_HT_SINE.c + +..\..\..\..\..\temp\csr\ta_HT_TRENDLINE.obj: ..\..\..\..\..\src\ta_func\ta_HT_TRENDLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_HT_TRENDLINE.obj ..\..\..\..\..\src\ta_func\ta_HT_TRENDLINE.c + +..\..\..\..\..\temp\csr\ta_HT_TRENDMODE.obj: ..\..\..\..\..\src\ta_func\ta_HT_TRENDMODE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_HT_TRENDMODE.obj ..\..\..\..\..\src\ta_func\ta_HT_TRENDMODE.c + +..\..\..\..\..\temp\csr\ta_KAMA.obj: ..\..\..\..\..\src\ta_func\ta_KAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_KAMA.obj ..\..\..\..\..\src\ta_func\ta_KAMA.c + +..\..\..\..\..\temp\csr\ta_LINEARREG.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_LINEARREG.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG.c + +..\..\..\..\..\temp\csr\ta_LINEARREG_ANGLE.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG_ANGLE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_LINEARREG_ANGLE.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG_ANGLE.c + +..\..\..\..\..\temp\csr\ta_LINEARREG_INTERCEPT.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG_INTERCEPT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_LINEARREG_INTERCEPT.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG_INTERCEPT.c + +..\..\..\..\..\temp\csr\ta_LINEARREG_SLOPE.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG_SLOPE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_LINEARREG_SLOPE.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG_SLOPE.c + +..\..\..\..\..\temp\csr\ta_LN.obj: ..\..\..\..\..\src\ta_func\ta_LN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_LN.obj ..\..\..\..\..\src\ta_func\ta_LN.c + +..\..\..\..\..\temp\csr\ta_LOG10.obj: ..\..\..\..\..\src\ta_func\ta_LOG10.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_LOG10.obj ..\..\..\..\..\src\ta_func\ta_LOG10.c + +..\..\..\..\..\temp\csr\ta_MA.obj: ..\..\..\..\..\src\ta_func\ta_MA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_MA.obj ..\..\..\..\..\src\ta_func\ta_MA.c + +..\..\..\..\..\temp\csr\ta_MACD.obj: ..\..\..\..\..\src\ta_func\ta_MACD.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_MACD.obj ..\..\..\..\..\src\ta_func\ta_MACD.c + +..\..\..\..\..\temp\csr\ta_MACDEXT.obj: ..\..\..\..\..\src\ta_func\ta_MACDEXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_MACDEXT.obj ..\..\..\..\..\src\ta_func\ta_MACDEXT.c + +..\..\..\..\..\temp\csr\ta_MACDFIX.obj: ..\..\..\..\..\src\ta_func\ta_MACDFIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_MACDFIX.obj ..\..\..\..\..\src\ta_func\ta_MACDFIX.c + +..\..\..\..\..\temp\csr\ta_MAMA.obj: ..\..\..\..\..\src\ta_func\ta_MAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_MAMA.obj ..\..\..\..\..\src\ta_func\ta_MAMA.c + +..\..\..\..\..\temp\csr\ta_MAVP.obj: ..\..\..\..\..\src\ta_func\ta_MAVP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_MAVP.obj ..\..\..\..\..\src\ta_func\ta_MAVP.c + +..\..\..\..\..\temp\csr\ta_MAX.obj: ..\..\..\..\..\src\ta_func\ta_MAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_MAX.obj ..\..\..\..\..\src\ta_func\ta_MAX.c + +..\..\..\..\..\temp\csr\ta_MAXINDEX.obj: ..\..\..\..\..\src\ta_func\ta_MAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_MAXINDEX.obj ..\..\..\..\..\src\ta_func\ta_MAXINDEX.c + +..\..\..\..\..\temp\csr\ta_MEDPRICE.obj: ..\..\..\..\..\src\ta_func\ta_MEDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_MEDPRICE.obj ..\..\..\..\..\src\ta_func\ta_MEDPRICE.c + +..\..\..\..\..\temp\csr\ta_MFI.obj: ..\..\..\..\..\src\ta_func\ta_MFI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_MFI.obj ..\..\..\..\..\src\ta_func\ta_MFI.c + +..\..\..\..\..\temp\csr\ta_MIDPOINT.obj: ..\..\..\..\..\src\ta_func\ta_MIDPOINT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_MIDPOINT.obj ..\..\..\..\..\src\ta_func\ta_MIDPOINT.c + +..\..\..\..\..\temp\csr\ta_MIDPRICE.obj: ..\..\..\..\..\src\ta_func\ta_MIDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_MIDPRICE.obj ..\..\..\..\..\src\ta_func\ta_MIDPRICE.c + +..\..\..\..\..\temp\csr\ta_MIN.obj: ..\..\..\..\..\src\ta_func\ta_MIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_MIN.obj ..\..\..\..\..\src\ta_func\ta_MIN.c + +..\..\..\..\..\temp\csr\ta_MININDEX.obj: ..\..\..\..\..\src\ta_func\ta_MININDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_MININDEX.obj ..\..\..\..\..\src\ta_func\ta_MININDEX.c + +..\..\..\..\..\temp\csr\ta_MINMAX.obj: ..\..\..\..\..\src\ta_func\ta_MINMAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_MINMAX.obj ..\..\..\..\..\src\ta_func\ta_MINMAX.c + +..\..\..\..\..\temp\csr\ta_MINMAXINDEX.obj: ..\..\..\..\..\src\ta_func\ta_MINMAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_MINMAXINDEX.obj ..\..\..\..\..\src\ta_func\ta_MINMAXINDEX.c + +..\..\..\..\..\temp\csr\ta_MINUS_DI.obj: ..\..\..\..\..\src\ta_func\ta_MINUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_MINUS_DI.obj ..\..\..\..\..\src\ta_func\ta_MINUS_DI.c + +..\..\..\..\..\temp\csr\ta_MINUS_DM.obj: ..\..\..\..\..\src\ta_func\ta_MINUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_MINUS_DM.obj ..\..\..\..\..\src\ta_func\ta_MINUS_DM.c + +..\..\..\..\..\temp\csr\ta_MOM.obj: ..\..\..\..\..\src\ta_func\ta_MOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_MOM.obj ..\..\..\..\..\src\ta_func\ta_MOM.c + +..\..\..\..\..\temp\csr\ta_MULT.obj: ..\..\..\..\..\src\ta_func\ta_MULT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_MULT.obj ..\..\..\..\..\src\ta_func\ta_MULT.c + +..\..\..\..\..\temp\csr\ta_NATR.obj: ..\..\..\..\..\src\ta_func\ta_NATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_NATR.obj ..\..\..\..\..\src\ta_func\ta_NATR.c + +..\..\..\..\..\temp\csr\ta_OBV.obj: ..\..\..\..\..\src\ta_func\ta_OBV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_OBV.obj ..\..\..\..\..\src\ta_func\ta_OBV.c + +..\..\..\..\..\temp\csr\ta_PLUS_DI.obj: ..\..\..\..\..\src\ta_func\ta_PLUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_PLUS_DI.obj ..\..\..\..\..\src\ta_func\ta_PLUS_DI.c + +..\..\..\..\..\temp\csr\ta_PLUS_DM.obj: ..\..\..\..\..\src\ta_func\ta_PLUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_PLUS_DM.obj ..\..\..\..\..\src\ta_func\ta_PLUS_DM.c + +..\..\..\..\..\temp\csr\ta_PPO.obj: ..\..\..\..\..\src\ta_func\ta_PPO.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_PPO.obj ..\..\..\..\..\src\ta_func\ta_PPO.c + +..\..\..\..\..\temp\csr\ta_ROC.obj: ..\..\..\..\..\src\ta_func\ta_ROC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_ROC.obj ..\..\..\..\..\src\ta_func\ta_ROC.c + +..\..\..\..\..\temp\csr\ta_ROCP.obj: ..\..\..\..\..\src\ta_func\ta_ROCP.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_ROCP.obj ..\..\..\..\..\src\ta_func\ta_ROCP.c + +..\..\..\..\..\temp\csr\ta_ROCR.obj: ..\..\..\..\..\src\ta_func\ta_ROCR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_ROCR.obj ..\..\..\..\..\src\ta_func\ta_ROCR.c + +..\..\..\..\..\temp\csr\ta_ROCR100.obj: ..\..\..\..\..\src\ta_func\ta_ROCR100.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_ROCR100.obj ..\..\..\..\..\src\ta_func\ta_ROCR100.c + +..\..\..\..\..\temp\csr\ta_RSI.obj: ..\..\..\..\..\src\ta_func\ta_RSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_RSI.obj ..\..\..\..\..\src\ta_func\ta_RSI.c + +..\..\..\..\..\temp\csr\ta_SAR.obj: ..\..\..\..\..\src\ta_func\ta_SAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_SAR.obj ..\..\..\..\..\src\ta_func\ta_SAR.c + +..\..\..\..\..\temp\csr\ta_SAREXT.obj: ..\..\..\..\..\src\ta_func\ta_SAREXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_SAREXT.obj ..\..\..\..\..\src\ta_func\ta_SAREXT.c + +..\..\..\..\..\temp\csr\ta_SIN.obj: ..\..\..\..\..\src\ta_func\ta_SIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_SIN.obj ..\..\..\..\..\src\ta_func\ta_SIN.c + +..\..\..\..\..\temp\csr\ta_SINH.obj: ..\..\..\..\..\src\ta_func\ta_SINH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_SINH.obj ..\..\..\..\..\src\ta_func\ta_SINH.c + +..\..\..\..\..\temp\csr\ta_SMA.obj: ..\..\..\..\..\src\ta_func\ta_SMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_SMA.obj ..\..\..\..\..\src\ta_func\ta_SMA.c + +..\..\..\..\..\temp\csr\ta_SQRT.obj: ..\..\..\..\..\src\ta_func\ta_SQRT.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_SQRT.obj ..\..\..\..\..\src\ta_func\ta_SQRT.c + +..\..\..\..\..\temp\csr\ta_STDDEV.obj: ..\..\..\..\..\src\ta_func\ta_STDDEV.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_STDDEV.obj ..\..\..\..\..\src\ta_func\ta_STDDEV.c + +..\..\..\..\..\temp\csr\ta_STOCH.obj: ..\..\..\..\..\src\ta_func\ta_STOCH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_STOCH.obj ..\..\..\..\..\src\ta_func\ta_STOCH.c + +..\..\..\..\..\temp\csr\ta_STOCHF.obj: ..\..\..\..\..\src\ta_func\ta_STOCHF.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_STOCHF.obj ..\..\..\..\..\src\ta_func\ta_STOCHF.c + +..\..\..\..\..\temp\csr\ta_STOCHRSI.obj: ..\..\..\..\..\src\ta_func\ta_STOCHRSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_STOCHRSI.obj ..\..\..\..\..\src\ta_func\ta_STOCHRSI.c + +..\..\..\..\..\temp\csr\ta_SUB.obj: ..\..\..\..\..\src\ta_func\ta_SUB.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_SUB.obj ..\..\..\..\..\src\ta_func\ta_SUB.c + +..\..\..\..\..\temp\csr\ta_SUM.obj: ..\..\..\..\..\src\ta_func\ta_SUM.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_SUM.obj ..\..\..\..\..\src\ta_func\ta_SUM.c + +..\..\..\..\..\temp\csr\ta_T3.obj: ..\..\..\..\..\src\ta_func\ta_T3.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_T3.obj ..\..\..\..\..\src\ta_func\ta_T3.c + +..\..\..\..\..\temp\csr\ta_TAN.obj: ..\..\..\..\..\src\ta_func\ta_TAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_TAN.obj ..\..\..\..\..\src\ta_func\ta_TAN.c + +..\..\..\..\..\temp\csr\ta_TANH.obj: ..\..\..\..\..\src\ta_func\ta_TANH.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_TANH.obj ..\..\..\..\..\src\ta_func\ta_TANH.c + +..\..\..\..\..\temp\csr\ta_TEMA.obj: ..\..\..\..\..\src\ta_func\ta_TEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_TEMA.obj ..\..\..\..\..\src\ta_func\ta_TEMA.c + +..\..\..\..\..\temp\csr\ta_TRANGE.obj: ..\..\..\..\..\src\ta_func\ta_TRANGE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_TRANGE.obj ..\..\..\..\..\src\ta_func\ta_TRANGE.c + +..\..\..\..\..\temp\csr\ta_TRIMA.obj: ..\..\..\..\..\src\ta_func\ta_TRIMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_TRIMA.obj ..\..\..\..\..\src\ta_func\ta_TRIMA.c + +..\..\..\..\..\temp\csr\ta_TRIX.obj: ..\..\..\..\..\src\ta_func\ta_TRIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_TRIX.obj ..\..\..\..\..\src\ta_func\ta_TRIX.c + +..\..\..\..\..\temp\csr\ta_TSF.obj: ..\..\..\..\..\src\ta_func\ta_TSF.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_TSF.obj ..\..\..\..\..\src\ta_func\ta_TSF.c + +..\..\..\..\..\temp\csr\ta_TYPPRICE.obj: ..\..\..\..\..\src\ta_func\ta_TYPPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_TYPPRICE.obj ..\..\..\..\..\src\ta_func\ta_TYPPRICE.c + +..\..\..\..\..\temp\csr\ta_ULTOSC.obj: ..\..\..\..\..\src\ta_func\ta_ULTOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_ULTOSC.obj ..\..\..\..\..\src\ta_func\ta_ULTOSC.c + +..\..\..\..\..\temp\csr\ta_VAR.obj: ..\..\..\..\..\src\ta_func\ta_VAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_VAR.obj ..\..\..\..\..\src\ta_func\ta_VAR.c + +..\..\..\..\..\temp\csr\ta_WCLPRICE.obj: ..\..\..\..\..\src\ta_func\ta_WCLPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_WCLPRICE.obj ..\..\..\..\..\src\ta_func\ta_WCLPRICE.c + +..\..\..\..\..\temp\csr\ta_WILLR.obj: ..\..\..\..\..\src\ta_func\ta_WILLR.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_WILLR.obj ..\..\..\..\..\src\ta_func\ta_WILLR.c + +..\..\..\..\..\temp\csr\ta_WMA.obj: ..\..\..\..\..\src\ta_func\ta_WMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_WMA.obj ..\..\..\..\..\src\ta_func\ta_WMA.c + diff --git a/make/csr/win32/symantec/ta_regtest/Makefile b/make/csr/win32/symantec/ta_regtest/Makefile new file mode 100644 index 000000000..25843aa98 --- /dev/null +++ b/make/csr/win32/symantec/ta_regtest/Makefile @@ -0,0 +1,229 @@ +############################################################################# +# Makefile for building ta_regtest +# Generated by tmake; +# Project: ta_regtest/ta_regtest +# Template: app +############################################################################# + +####### Compiler, tools and options + +CC = sc +CXX = sc +CFLAGS = -mn -w2 -o -DTA_SINGLE_THREAD -DWIN32 +CXXFLAGS= -mn -w2 -o -DTA_SINGLE_THREAD -DWIN32 +INCPATH = -I"..\..\..\..\..\src\ta_common" -I"..\..\..\..\..\src\tools\ta_regtest" -I"..\..\..\..\..\src\ta_func" -I"..\..\..\..\..\include" +LINK = link +LFLAGS = /NOLOGO /NOI /SUBSYSTEM:console +LIBS = ..\..\..\..\..\lib\ta_libc_csr.lib +MOC = moc + +ZIP = zip -r -9 + +####### Files + +HEADERS = +SOURCES = ..\..\..\..\..\src\tools\ta_regtest\ta_regtest.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_candlestick.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_1in_1out.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_1in_2out.c \ + ..\..\..\..\..\src\tools\ta_regtest\test_internals.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_adx.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_bbands.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_ma.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_macd.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_minmax.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_mom.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_ema.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hl.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hlc.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hlcv.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_ohlc.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_po.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_rsi.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_sar.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_stddev.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_stoch.c \ + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_trange.c \ + ..\..\..\..\..\src\tools\ta_regtest\test_util.c \ + ..\..\..\..\..\src\tools\ta_regtest\test_data.c \ + ..\..\..\..\..\src\tools\ta_regtest\test_abstract.c +OBJECTS = ..\..\..\..\..\temp\csr\ta_regtest.obj \ + ..\..\..\..\..\temp\csr\test_candlestick.obj \ + ..\..\..\..\..\temp\csr\test_1in_1out.obj \ + ..\..\..\..\..\temp\csr\test_1in_2out.obj \ + ..\..\..\..\..\temp\csr\test_internals.obj \ + ..\..\..\..\..\temp\csr\test_adx.obj \ + ..\..\..\..\..\temp\csr\test_bbands.obj \ + ..\..\..\..\..\temp\csr\test_ma.obj \ + ..\..\..\..\..\temp\csr\test_macd.obj \ + ..\..\..\..\..\temp\csr\test_minmax.obj \ + ..\..\..\..\..\temp\csr\test_mom.obj \ + ..\..\..\..\..\temp\csr\test_per_ema.obj \ + ..\..\..\..\..\temp\csr\test_per_hl.obj \ + ..\..\..\..\..\temp\csr\test_per_hlc.obj \ + ..\..\..\..\..\temp\csr\test_per_hlcv.obj \ + ..\..\..\..\..\temp\csr\test_per_ohlc.obj \ + ..\..\..\..\..\temp\csr\test_po.obj \ + ..\..\..\..\..\temp\csr\test_rsi.obj \ + ..\..\..\..\..\temp\csr\test_sar.obj \ + ..\..\..\..\..\temp\csr\test_stddev.obj \ + ..\..\..\..\..\temp\csr\test_stoch.obj \ + ..\..\..\..\..\temp\csr\test_trange.obj \ + ..\..\..\..\..\temp\csr\test_util.obj \ + ..\..\..\..\..\temp\csr\test_data.obj \ + ..\..\..\..\..\temp\csr\test_abstract.obj +SRCMOC = +OBJMOC = +DIST = +TARGET = ..\..\..\..\..\bin\ta_regtest.exe + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .c + +.cpp.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.cxx.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.cc.obj: + $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +.c.obj: + $(CC) -c $(CFLAGS) $(INCPATH) -o$@ $< + +####### Build rules + +all: $(TARGET) + +$(TARGET): $(OBJECTS) $(OBJMOC) + $(LINK) $(LFLAGS) $(OBJECTS) $(OBJMOC), $(TARGET),, $(LIBS) + +moc: $(SRCMOC) + +tmake: ../csr/win32/symantec/ta_regtest/Makefile + +../csr/win32/symantec/ta_regtest/Makefile: ta_regtest/ta_regtest.pro + tmake ta_regtest/ta_regtest.pro -o ../csr/win32/symantec/ta_regtest/Makefile + +dist: + $(ZIP) ta_regtest/ta_regtest.zip ta_regtest/ta_regtest.pro $(SOURCES) $(HEADERS) $(DIST) + +clean: + -del ..\..\..\..\..\temp\csr\ta_regtest.obj + -del ..\..\..\..\..\temp\csr\test_candlestick.obj + -del ..\..\..\..\..\temp\csr\test_1in_1out.obj + -del ..\..\..\..\..\temp\csr\test_1in_2out.obj + -del ..\..\..\..\..\temp\csr\test_internals.obj + -del ..\..\..\..\..\temp\csr\test_adx.obj + -del ..\..\..\..\..\temp\csr\test_bbands.obj + -del ..\..\..\..\..\temp\csr\test_ma.obj + -del ..\..\..\..\..\temp\csr\test_macd.obj + -del ..\..\..\..\..\temp\csr\test_minmax.obj + -del ..\..\..\..\..\temp\csr\test_mom.obj + -del ..\..\..\..\..\temp\csr\test_per_ema.obj + -del ..\..\..\..\..\temp\csr\test_per_hl.obj + -del ..\..\..\..\..\temp\csr\test_per_hlc.obj + -del ..\..\..\..\..\temp\csr\test_per_hlcv.obj + -del ..\..\..\..\..\temp\csr\test_per_ohlc.obj + -del ..\..\..\..\..\temp\csr\test_po.obj + -del ..\..\..\..\..\temp\csr\test_rsi.obj + -del ..\..\..\..\..\temp\csr\test_sar.obj + -del ..\..\..\..\..\temp\csr\test_stddev.obj + -del ..\..\..\..\..\temp\csr\test_stoch.obj + -del ..\..\..\..\..\temp\csr\test_trange.obj + -del ..\..\..\..\..\temp\csr\test_util.obj + -del ..\..\..\..\..\temp\csr\test_data.obj + -del ..\..\..\..\..\temp\csr\test_abstract.obj + -del $(TARGET) + -del ../../../../../bin/*.map + -del ../../../../../bin/*._xe + -del ../../../../../bin/*.tds + -del ../../../../../bin/*.pdb + -del ../../../../../bin/*.pbo + -del ../../../../../bin/*.pbi + -del ../../../../../bin/*.pbt + -del ../../../../../temp/csr/*.pch + -del ../../../../../temp/csr/*.idb + -del ../../../../../temp/csr/ta_regtest/*.pch + -del ../../../../../temp/csr/ta_regtest/*.idb + -del ../../../../../temp/csr/ta_regtest/*.obj + +####### Compile + +..\..\..\..\..\temp\csr\ta_regtest.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_regtest.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\ta_regtest.obj ..\..\..\..\..\src\tools\ta_regtest\ta_regtest.c + +..\..\..\..\..\temp\csr\test_candlestick.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_candlestick.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\test_candlestick.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_candlestick.c + +..\..\..\..\..\temp\csr\test_1in_1out.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_1in_1out.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\test_1in_1out.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_1in_1out.c + +..\..\..\..\..\temp\csr\test_1in_2out.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_1in_2out.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\test_1in_2out.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_1in_2out.c + +..\..\..\..\..\temp\csr\test_internals.obj: ..\..\..\..\..\src\tools\ta_regtest\test_internals.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\test_internals.obj ..\..\..\..\..\src\tools\ta_regtest\test_internals.c + +..\..\..\..\..\temp\csr\test_adx.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_adx.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\test_adx.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_adx.c + +..\..\..\..\..\temp\csr\test_bbands.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_bbands.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\test_bbands.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_bbands.c + +..\..\..\..\..\temp\csr\test_ma.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_ma.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\test_ma.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_ma.c + +..\..\..\..\..\temp\csr\test_macd.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_macd.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\test_macd.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_macd.c + +..\..\..\..\..\temp\csr\test_minmax.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_minmax.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\test_minmax.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_minmax.c + +..\..\..\..\..\temp\csr\test_mom.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_mom.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\test_mom.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_mom.c + +..\..\..\..\..\temp\csr\test_per_ema.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_ema.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\test_per_ema.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_ema.c + +..\..\..\..\..\temp\csr\test_per_hl.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hl.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\test_per_hl.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hl.c + +..\..\..\..\..\temp\csr\test_per_hlc.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hlc.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\test_per_hlc.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hlc.c + +..\..\..\..\..\temp\csr\test_per_hlcv.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hlcv.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\test_per_hlcv.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hlcv.c + +..\..\..\..\..\temp\csr\test_per_ohlc.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_ohlc.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\test_per_ohlc.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_ohlc.c + +..\..\..\..\..\temp\csr\test_po.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_po.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\test_po.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_po.c + +..\..\..\..\..\temp\csr\test_rsi.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_rsi.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\test_rsi.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_rsi.c + +..\..\..\..\..\temp\csr\test_sar.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_sar.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\test_sar.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_sar.c + +..\..\..\..\..\temp\csr\test_stddev.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_stddev.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\test_stddev.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_stddev.c + +..\..\..\..\..\temp\csr\test_stoch.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_stoch.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\test_stoch.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_stoch.c + +..\..\..\..\..\temp\csr\test_trange.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_trange.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\test_trange.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_trange.c + +..\..\..\..\..\temp\csr\test_util.obj: ..\..\..\..\..\src\tools\ta_regtest\test_util.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\test_util.obj ..\..\..\..\..\src\tools\ta_regtest\test_util.c + +..\..\..\..\..\temp\csr\test_data.obj: ..\..\..\..\..\src\tools\ta_regtest\test_data.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\test_data.obj ..\..\..\..\..\src\tools\ta_regtest\test_data.c + +..\..\..\..\..\temp\csr\test_abstract.obj: ..\..\..\..\..\src\tools\ta_regtest\test_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -o..\..\..\..\..\temp\csr\test_abstract.obj ..\..\..\..\..\src\tools\ta_regtest\test_abstract.c + diff --git a/make/csr/win32/watcom/Makefile b/make/csr/win32/watcom/Makefile new file mode 100644 index 000000000..ac903e446 --- /dev/null +++ b/make/csr/win32/watcom/Makefile @@ -0,0 +1,97 @@ +############################################################################# +# Makefile for building targets in sub directories. +# Generated by tmake; +# Project: rootmake +# Template: subdirs +############################################################################# + +MAKEFILE= Makefile +TMAKE = tmake + +SUBDIRS = ta_common \ + ta_func \ + ta_abstract \ + ta_libc \ + gen_code \ + ta_regtest + +all: $(SUBDIRS) + +ta_common: FORCE + cd ta_common + $(MAKE) + @cd .. + +ta_func: FORCE + cd ta_func + $(MAKE) + @cd .. + +ta_abstract: FORCE + cd ta_abstract + $(MAKE) + @cd .. + +ta_libc: FORCE + cd ta_libc + $(MAKE) + @cd .. + +gen_code: FORCE + cd gen_code + $(MAKE) + @cd .. + +ta_regtest: FORCE + cd ta_regtest + $(MAKE) + @cd .. + + +tmake: ../csr/win32/watcom/Makefile + +../csr/win32/watcom/Makefile: rootmake.pro + tmake rootmake.pro -o ../csr/win32/watcom/Makefile + +tmake_all: + cd ta_common + $(TMAKE) ta_common.pro -o $(MAKEFILE) + @cd .. + cd ta_func + $(TMAKE) ta_func.pro -o $(MAKEFILE) + @cd .. + cd ta_abstract + $(TMAKE) ta_abstract.pro -o $(MAKEFILE) + @cd .. + cd ta_libc + $(TMAKE) ta_libc.pro -o $(MAKEFILE) + @cd .. + cd gen_code + $(TMAKE) gen_code.pro -o $(MAKEFILE) + @cd .. + cd ta_regtest + $(TMAKE) ta_regtest.pro -o $(MAKEFILE) + @cd .. + + +clean: + cd ta_common + $(MAKE) clean + @cd .. + cd ta_func + $(MAKE) clean + @cd .. + cd ta_abstract + $(MAKE) clean + @cd .. + cd ta_libc + $(MAKE) clean + @cd .. + cd gen_code + $(MAKE) clean + @cd .. + cd ta_regtest + $(MAKE) clean + @cd .. + +FORCE: diff --git a/make/csr/win32/watcom/gen_code/Makefile b/make/csr/win32/watcom/gen_code/Makefile new file mode 100644 index 000000000..c51baf2c2 --- /dev/null +++ b/make/csr/win32/watcom/gen_code/Makefile @@ -0,0 +1,243 @@ +############################################################################# +# Makefile for building gen_code +# Generated by tmake; +# Project: gen_code/gen_code +# Template: app +############################################################################# + +####### Compiler, tools and options + +CC = wcl386 +CXX = wcl386 +CFLAGS = -zq -w2 -ox -d=TA_GEN_CODE -d=TA_SINGLE_THREAD -d=WIN32 +CXXFLAGS= -zq -w2 -ox -d=TA_GEN_CODE -d=TA_SINGLE_THREAD -d=WIN32 +INCPATH = -i="..\..\..\..\..\include" -i="..\..\..\..\..\src\ta_common" -i="..\..\..\..\..\src\ta_abstract" -i="..\..\..\..\..\src\ta_abstract\tables" -i="..\..\..\..\..\src\ta_abstract\frames" +LINK = wlink +LFLAGS = op quiet op c sys nt +LIBS = ..\..\..\..\..\lib\ta_common_csr.lib +MOC = moc + +ZIP = zip -r -9 + +####### Files + +HEADERS = +SOURCES = ..\..\..\..\..\src\tools\gen_code\gen_code.c & + ..\..\..\..\..\src\ta_abstract\ta_abstract.c & + ..\..\..\..\..\src\ta_abstract\ta_def_ui.c & + ..\..\..\..\..\src\ta_abstract\tables\table_a.c & + ..\..\..\..\..\src\ta_abstract\tables\table_b.c & + ..\..\..\..\..\src\ta_abstract\tables\table_c.c & + ..\..\..\..\..\src\ta_abstract\tables\table_d.c & + ..\..\..\..\..\src\ta_abstract\tables\table_e.c & + ..\..\..\..\..\src\ta_abstract\tables\table_f.c & + ..\..\..\..\..\src\ta_abstract\tables\table_g.c & + ..\..\..\..\..\src\ta_abstract\tables\table_h.c & + ..\..\..\..\..\src\ta_abstract\tables\table_i.c & + ..\..\..\..\..\src\ta_abstract\tables\table_j.c & + ..\..\..\..\..\src\ta_abstract\tables\table_k.c & + ..\..\..\..\..\src\ta_abstract\tables\table_l.c & + ..\..\..\..\..\src\ta_abstract\tables\table_m.c & + ..\..\..\..\..\src\ta_abstract\tables\table_n.c & + ..\..\..\..\..\src\ta_abstract\tables\table_o.c & + ..\..\..\..\..\src\ta_abstract\tables\table_p.c & + ..\..\..\..\..\src\ta_abstract\tables\table_q.c & + ..\..\..\..\..\src\ta_abstract\tables\table_r.c & + ..\..\..\..\..\src\ta_abstract\tables\table_s.c & + ..\..\..\..\..\src\ta_abstract\tables\table_t.c & + ..\..\..\..\..\src\ta_abstract\tables\table_u.c & + ..\..\..\..\..\src\ta_abstract\tables\table_v.c & + ..\..\..\..\..\src\ta_abstract\tables\table_w.c & + ..\..\..\..\..\src\ta_abstract\tables\table_x.c & + ..\..\..\..\..\src\ta_abstract\tables\table_y.c & + ..\..\..\..\..\src\ta_abstract\tables\table_z.c +OBJECTS = ..\..\..\..\..\temp\csr\gen_code\gen_code.obj & + ..\..\..\..\..\temp\csr\gen_code\ta_abstract.obj & + ..\..\..\..\..\temp\csr\gen_code\ta_def_ui.obj & + ..\..\..\..\..\temp\csr\gen_code\table_a.obj & + ..\..\..\..\..\temp\csr\gen_code\table_b.obj & + ..\..\..\..\..\temp\csr\gen_code\table_c.obj & + ..\..\..\..\..\temp\csr\gen_code\table_d.obj & + ..\..\..\..\..\temp\csr\gen_code\table_e.obj & + ..\..\..\..\..\temp\csr\gen_code\table_f.obj & + ..\..\..\..\..\temp\csr\gen_code\table_g.obj & + ..\..\..\..\..\temp\csr\gen_code\table_h.obj & + ..\..\..\..\..\temp\csr\gen_code\table_i.obj & + ..\..\..\..\..\temp\csr\gen_code\table_j.obj & + ..\..\..\..\..\temp\csr\gen_code\table_k.obj & + ..\..\..\..\..\temp\csr\gen_code\table_l.obj & + ..\..\..\..\..\temp\csr\gen_code\table_m.obj & + ..\..\..\..\..\temp\csr\gen_code\table_n.obj & + ..\..\..\..\..\temp\csr\gen_code\table_o.obj & + ..\..\..\..\..\temp\csr\gen_code\table_p.obj & + ..\..\..\..\..\temp\csr\gen_code\table_q.obj & + ..\..\..\..\..\temp\csr\gen_code\table_r.obj & + ..\..\..\..\..\temp\csr\gen_code\table_s.obj & + ..\..\..\..\..\temp\csr\gen_code\table_t.obj & + ..\..\..\..\..\temp\csr\gen_code\table_u.obj & + ..\..\..\..\..\temp\csr\gen_code\table_v.obj & + ..\..\..\..\..\temp\csr\gen_code\table_w.obj & + ..\..\..\..\..\temp\csr\gen_code\table_x.obj & + ..\..\..\..\..\temp\csr\gen_code\table_y.obj & + ..\..\..\..\..\temp\csr\gen_code\table_z.obj +SRCMOC = +OBJMOC = +DIST = +TARGET = ..\..\..\..\..\bin\gen_code.exe +TMPLIST = gen_code.lst + +####### Build rules + +all: $(TARGET) + +$(TARGET): $(OBJECTS) $(OBJMOC) + @%create $(TMPLIST) + @%append $(TMPLIST) NAME gen_code + @%append $(TMPLIST) FIL ..\..\..\..\..\temp\csr\gen_code\gen_code.obj,..\..\..\..\..\temp\csr\gen_code\ta_abstract.obj,..\..\..\..\..\temp\csr\gen_code\ta_def_ui.obj,..\..\..\..\..\temp\csr\gen_code\table_a.obj,..\..\..\..\..\temp\csr\gen_code\table_b.obj,..\..\..\..\..\temp\csr\gen_code\table_c.obj,..\..\..\..\..\temp\csr\gen_code\table_d.obj,..\..\..\..\..\temp\csr\gen_code\table_e.obj,..\..\..\..\..\temp\csr\gen_code\table_f.obj,..\..\..\..\..\temp\csr\gen_code\table_g.obj,..\..\..\..\..\temp\csr\gen_code\table_h.obj,..\..\..\..\..\temp\csr\gen_code\table_i.obj,..\..\..\..\..\temp\csr\gen_code\table_j.obj,..\..\..\..\..\temp\csr\gen_code\table_k.obj,..\..\..\..\..\temp\csr\gen_code\table_l.obj,..\..\..\..\..\temp\csr\gen_code\table_m.obj,..\..\..\..\..\temp\csr\gen_code\table_n.obj,..\..\..\..\..\temp\csr\gen_code\table_o.obj,..\..\..\..\..\temp\csr\gen_code\table_p.obj,..\..\..\..\..\temp\csr\gen_code\table_q.obj,..\..\..\..\..\temp\csr\gen_code\table_r.obj,..\..\..\..\..\temp\csr\gen_code\table_s.obj,..\..\..\..\..\temp\csr\gen_code\table_t.obj,..\..\..\..\..\temp\csr\gen_code\table_u.obj,..\..\..\..\..\temp\csr\gen_code\table_v.obj,..\..\..\..\..\temp\csr\gen_code\table_w.obj,..\..\..\..\..\temp\csr\gen_code\table_x.obj,..\..\..\..\..\temp\csr\gen_code\table_y.obj,..\..\..\..\..\temp\csr\gen_code\table_z.obj + @%append $(TMPLIST) LIBR ..\..\..\..\..\lib\ta_common_csr.lib + $(LINK) $(LFLAGS) @$(TMPLIST) + del $(TMPLIST) + +moc: $(SRCMOC) + +tmake: ../csr/win32/watcom/gen_code/Makefile + +../csr/win32/watcom/gen_code/Makefile: gen_code/gen_code.pro + tmake gen_code/gen_code.pro -o ../csr/win32/watcom/gen_code/Makefile + +dist: + $(ZIP) gen_code/gen_code.zip gen_code/gen_code.pro $(SOURCES) $(HEADERS) $(DIST) + +clean: + -del ..\..\..\..\..\temp\csr\gen_code\gen_code.obj + -del ..\..\..\..\..\temp\csr\gen_code\ta_abstract.obj + -del ..\..\..\..\..\temp\csr\gen_code\ta_def_ui.obj + -del ..\..\..\..\..\temp\csr\gen_code\table_a.obj + -del ..\..\..\..\..\temp\csr\gen_code\table_b.obj + -del ..\..\..\..\..\temp\csr\gen_code\table_c.obj + -del ..\..\..\..\..\temp\csr\gen_code\table_d.obj + -del ..\..\..\..\..\temp\csr\gen_code\table_e.obj + -del ..\..\..\..\..\temp\csr\gen_code\table_f.obj + -del ..\..\..\..\..\temp\csr\gen_code\table_g.obj + -del ..\..\..\..\..\temp\csr\gen_code\table_h.obj + -del ..\..\..\..\..\temp\csr\gen_code\table_i.obj + -del ..\..\..\..\..\temp\csr\gen_code\table_j.obj + -del ..\..\..\..\..\temp\csr\gen_code\table_k.obj + -del ..\..\..\..\..\temp\csr\gen_code\table_l.obj + -del ..\..\..\..\..\temp\csr\gen_code\table_m.obj + -del ..\..\..\..\..\temp\csr\gen_code\table_n.obj + -del ..\..\..\..\..\temp\csr\gen_code\table_o.obj + -del ..\..\..\..\..\temp\csr\gen_code\table_p.obj + -del ..\..\..\..\..\temp\csr\gen_code\table_q.obj + -del ..\..\..\..\..\temp\csr\gen_code\table_r.obj + -del ..\..\..\..\..\temp\csr\gen_code\table_s.obj + -del ..\..\..\..\..\temp\csr\gen_code\table_t.obj + -del ..\..\..\..\..\temp\csr\gen_code\table_u.obj + -del ..\..\..\..\..\temp\csr\gen_code\table_v.obj + -del ..\..\..\..\..\temp\csr\gen_code\table_w.obj + -del ..\..\..\..\..\temp\csr\gen_code\table_x.obj + -del ..\..\..\..\..\temp\csr\gen_code\table_y.obj + -del ..\..\..\..\..\temp\csr\gen_code\table_z.obj + -del $(TARGET) + -del ../../../../../bin/*.map + -del ../../../../../bin/*._xe + -del ../../../../../bin/*.tds + -del ../../../../../bin/*.pdb + -del ../../../../../bin/*.pbo + -del ../../../../../bin/*.pbi + -del ../../../../../bin/*.pbt + -del ../../../../../temp/csr/*.pch + -del ../../../../../temp/csr/*.idb + -del ../../../../../temp/csr/gen_code/*.pch + -del ../../../../../temp/csr/gen_code/*.idb + -del ../../../../../temp/csr/gen_code/*.obj + +####### Compile + +..\..\..\..\..\temp\csr\gen_code\gen_code.obj: ..\..\..\..\..\src\tools\gen_code\gen_code.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\gen_code\gen_code.obj ..\..\..\..\..\src\tools\gen_code\gen_code.c + +..\..\..\..\..\temp\csr\gen_code\ta_abstract.obj: ..\..\..\..\..\src\ta_abstract\ta_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\gen_code\ta_abstract.obj ..\..\..\..\..\src\ta_abstract\ta_abstract.c + +..\..\..\..\..\temp\csr\gen_code\ta_def_ui.obj: ..\..\..\..\..\src\ta_abstract\ta_def_ui.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\gen_code\ta_def_ui.obj ..\..\..\..\..\src\ta_abstract\ta_def_ui.c + +..\..\..\..\..\temp\csr\gen_code\table_a.obj: ..\..\..\..\..\src\ta_abstract\tables\table_a.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\gen_code\table_a.obj ..\..\..\..\..\src\ta_abstract\tables\table_a.c + +..\..\..\..\..\temp\csr\gen_code\table_b.obj: ..\..\..\..\..\src\ta_abstract\tables\table_b.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\gen_code\table_b.obj ..\..\..\..\..\src\ta_abstract\tables\table_b.c + +..\..\..\..\..\temp\csr\gen_code\table_c.obj: ..\..\..\..\..\src\ta_abstract\tables\table_c.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\gen_code\table_c.obj ..\..\..\..\..\src\ta_abstract\tables\table_c.c + +..\..\..\..\..\temp\csr\gen_code\table_d.obj: ..\..\..\..\..\src\ta_abstract\tables\table_d.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\gen_code\table_d.obj ..\..\..\..\..\src\ta_abstract\tables\table_d.c + +..\..\..\..\..\temp\csr\gen_code\table_e.obj: ..\..\..\..\..\src\ta_abstract\tables\table_e.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\gen_code\table_e.obj ..\..\..\..\..\src\ta_abstract\tables\table_e.c + +..\..\..\..\..\temp\csr\gen_code\table_f.obj: ..\..\..\..\..\src\ta_abstract\tables\table_f.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\gen_code\table_f.obj ..\..\..\..\..\src\ta_abstract\tables\table_f.c + +..\..\..\..\..\temp\csr\gen_code\table_g.obj: ..\..\..\..\..\src\ta_abstract\tables\table_g.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\gen_code\table_g.obj ..\..\..\..\..\src\ta_abstract\tables\table_g.c + +..\..\..\..\..\temp\csr\gen_code\table_h.obj: ..\..\..\..\..\src\ta_abstract\tables\table_h.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\gen_code\table_h.obj ..\..\..\..\..\src\ta_abstract\tables\table_h.c + +..\..\..\..\..\temp\csr\gen_code\table_i.obj: ..\..\..\..\..\src\ta_abstract\tables\table_i.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\gen_code\table_i.obj ..\..\..\..\..\src\ta_abstract\tables\table_i.c + +..\..\..\..\..\temp\csr\gen_code\table_j.obj: ..\..\..\..\..\src\ta_abstract\tables\table_j.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\gen_code\table_j.obj ..\..\..\..\..\src\ta_abstract\tables\table_j.c + +..\..\..\..\..\temp\csr\gen_code\table_k.obj: ..\..\..\..\..\src\ta_abstract\tables\table_k.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\gen_code\table_k.obj ..\..\..\..\..\src\ta_abstract\tables\table_k.c + +..\..\..\..\..\temp\csr\gen_code\table_l.obj: ..\..\..\..\..\src\ta_abstract\tables\table_l.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\gen_code\table_l.obj ..\..\..\..\..\src\ta_abstract\tables\table_l.c + +..\..\..\..\..\temp\csr\gen_code\table_m.obj: ..\..\..\..\..\src\ta_abstract\tables\table_m.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\gen_code\table_m.obj ..\..\..\..\..\src\ta_abstract\tables\table_m.c + +..\..\..\..\..\temp\csr\gen_code\table_n.obj: ..\..\..\..\..\src\ta_abstract\tables\table_n.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\gen_code\table_n.obj ..\..\..\..\..\src\ta_abstract\tables\table_n.c + +..\..\..\..\..\temp\csr\gen_code\table_o.obj: ..\..\..\..\..\src\ta_abstract\tables\table_o.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\gen_code\table_o.obj ..\..\..\..\..\src\ta_abstract\tables\table_o.c + +..\..\..\..\..\temp\csr\gen_code\table_p.obj: ..\..\..\..\..\src\ta_abstract\tables\table_p.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\gen_code\table_p.obj ..\..\..\..\..\src\ta_abstract\tables\table_p.c + +..\..\..\..\..\temp\csr\gen_code\table_q.obj: ..\..\..\..\..\src\ta_abstract\tables\table_q.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\gen_code\table_q.obj ..\..\..\..\..\src\ta_abstract\tables\table_q.c + +..\..\..\..\..\temp\csr\gen_code\table_r.obj: ..\..\..\..\..\src\ta_abstract\tables\table_r.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\gen_code\table_r.obj ..\..\..\..\..\src\ta_abstract\tables\table_r.c + +..\..\..\..\..\temp\csr\gen_code\table_s.obj: ..\..\..\..\..\src\ta_abstract\tables\table_s.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\gen_code\table_s.obj ..\..\..\..\..\src\ta_abstract\tables\table_s.c + +..\..\..\..\..\temp\csr\gen_code\table_t.obj: ..\..\..\..\..\src\ta_abstract\tables\table_t.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\gen_code\table_t.obj ..\..\..\..\..\src\ta_abstract\tables\table_t.c + +..\..\..\..\..\temp\csr\gen_code\table_u.obj: ..\..\..\..\..\src\ta_abstract\tables\table_u.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\gen_code\table_u.obj ..\..\..\..\..\src\ta_abstract\tables\table_u.c + +..\..\..\..\..\temp\csr\gen_code\table_v.obj: ..\..\..\..\..\src\ta_abstract\tables\table_v.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\gen_code\table_v.obj ..\..\..\..\..\src\ta_abstract\tables\table_v.c + +..\..\..\..\..\temp\csr\gen_code\table_w.obj: ..\..\..\..\..\src\ta_abstract\tables\table_w.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\gen_code\table_w.obj ..\..\..\..\..\src\ta_abstract\tables\table_w.c + +..\..\..\..\..\temp\csr\gen_code\table_x.obj: ..\..\..\..\..\src\ta_abstract\tables\table_x.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\gen_code\table_x.obj ..\..\..\..\..\src\ta_abstract\tables\table_x.c + +..\..\..\..\..\temp\csr\gen_code\table_y.obj: ..\..\..\..\..\src\ta_abstract\tables\table_y.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\gen_code\table_y.obj ..\..\..\..\..\src\ta_abstract\tables\table_y.c + +..\..\..\..\..\temp\csr\gen_code\table_z.obj: ..\..\..\..\..\src\ta_abstract\tables\table_z.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\gen_code\table_z.obj ..\..\..\..\..\src\ta_abstract\tables\table_z.c + diff --git a/make/csr/win32/watcom/ta_abstract/Makefile b/make/csr/win32/watcom/ta_abstract/Makefile new file mode 100644 index 000000000..5a595900a --- /dev/null +++ b/make/csr/win32/watcom/ta_abstract/Makefile @@ -0,0 +1,251 @@ +############################################################################# +# Makefile for building ta_abstract_csr +# Generated by tmake; +# Project: ta_abstract/ta_abstract +# Template: lib +############################################################################# + +####### Compiler, tools and options + +CC = wcl386 +CXX = wcl386 +CFLAGS = -zq -w2 -ox -d=TA_SINGLE_THREAD -d=WIN32 +CXXFLAGS= -zq -w2 -ox -d=TA_SINGLE_THREAD -d=WIN32 +INCPATH = -i="..\..\..\..\..\src\ta_common" -i="..\..\..\..\..\src\ta_abstract" -i="..\..\..\..\..\src\ta_abstract\tables" -i="..\..\..\..\..\src\ta_abstract\frames" -i="..\..\..\..\..\include" +LIB = wlib -b -c -n -q -p=512 +MOC = moc + +ZIP = zip -r -9 + +####### Files + +HEADERS = +SOURCES = ..\..\..\..\..\src\ta_abstract\ta_abstract.c & + ..\..\..\..\..\src\ta_abstract\ta_def_ui.c & + ..\..\..\..\..\src\ta_abstract\ta_func_api.c & + ..\..\..\..\..\src\ta_abstract\ta_group_idx.c & + ..\..\..\..\..\src\ta_abstract\frames\ta_frame.c & + ..\..\..\..\..\src\ta_abstract\tables\table_a.c & + ..\..\..\..\..\src\ta_abstract\tables\table_b.c & + ..\..\..\..\..\src\ta_abstract\tables\table_c.c & + ..\..\..\..\..\src\ta_abstract\tables\table_d.c & + ..\..\..\..\..\src\ta_abstract\tables\table_e.c & + ..\..\..\..\..\src\ta_abstract\tables\table_f.c & + ..\..\..\..\..\src\ta_abstract\tables\table_g.c & + ..\..\..\..\..\src\ta_abstract\tables\table_h.c & + ..\..\..\..\..\src\ta_abstract\tables\table_i.c & + ..\..\..\..\..\src\ta_abstract\tables\table_j.c & + ..\..\..\..\..\src\ta_abstract\tables\table_k.c & + ..\..\..\..\..\src\ta_abstract\tables\table_l.c & + ..\..\..\..\..\src\ta_abstract\tables\table_m.c & + ..\..\..\..\..\src\ta_abstract\tables\table_n.c & + ..\..\..\..\..\src\ta_abstract\tables\table_o.c & + ..\..\..\..\..\src\ta_abstract\tables\table_p.c & + ..\..\..\..\..\src\ta_abstract\tables\table_q.c & + ..\..\..\..\..\src\ta_abstract\tables\table_r.c & + ..\..\..\..\..\src\ta_abstract\tables\table_s.c & + ..\..\..\..\..\src\ta_abstract\tables\table_t.c & + ..\..\..\..\..\src\ta_abstract\tables\table_u.c & + ..\..\..\..\..\src\ta_abstract\tables\table_v.c & + ..\..\..\..\..\src\ta_abstract\tables\table_w.c & + ..\..\..\..\..\src\ta_abstract\tables\table_x.c & + ..\..\..\..\..\src\ta_abstract\tables\table_y.c & + ..\..\..\..\..\src\ta_abstract\tables\table_z.c +OBJECTS = ..\..\..\..\..\temp\csr\ta_abstract.obj & + ..\..\..\..\..\temp\csr\ta_def_ui.obj & + ..\..\..\..\..\temp\csr\ta_func_api.obj & + ..\..\..\..\..\temp\csr\ta_group_idx.obj & + ..\..\..\..\..\temp\csr\ta_frame.obj & + ..\..\..\..\..\temp\csr\table_a.obj & + ..\..\..\..\..\temp\csr\table_b.obj & + ..\..\..\..\..\temp\csr\table_c.obj & + ..\..\..\..\..\temp\csr\table_d.obj & + ..\..\..\..\..\temp\csr\table_e.obj & + ..\..\..\..\..\temp\csr\table_f.obj & + ..\..\..\..\..\temp\csr\table_g.obj & + ..\..\..\..\..\temp\csr\table_h.obj & + ..\..\..\..\..\temp\csr\table_i.obj & + ..\..\..\..\..\temp\csr\table_j.obj & + ..\..\..\..\..\temp\csr\table_k.obj & + ..\..\..\..\..\temp\csr\table_l.obj & + ..\..\..\..\..\temp\csr\table_m.obj & + ..\..\..\..\..\temp\csr\table_n.obj & + ..\..\..\..\..\temp\csr\table_o.obj & + ..\..\..\..\..\temp\csr\table_p.obj & + ..\..\..\..\..\temp\csr\table_q.obj & + ..\..\..\..\..\temp\csr\table_r.obj & + ..\..\..\..\..\temp\csr\table_s.obj & + ..\..\..\..\..\temp\csr\table_t.obj & + ..\..\..\..\..\temp\csr\table_u.obj & + ..\..\..\..\..\temp\csr\table_v.obj & + ..\..\..\..\..\temp\csr\table_w.obj & + ..\..\..\..\..\temp\csr\table_x.obj & + ..\..\..\..\..\temp\csr\table_y.obj & + ..\..\..\..\..\temp\csr\table_z.obj +SRCMOC = +OBJMOC = +DIST = +TARGET = ..\..\..\..\..\lib\ta_abstract_csr.lib +TMPLIST = ta_abstract_csr.lst + +####### Build rules + +all: $(TARGET) + +$(TARGET): $(OBJECTS) $(OBJMOC) + @%create $(TMPLIST) + @for %i in ( $(OBJECTS) $(OBJMOC) ) do @%append $(TMPLIST) +'%i' + $(LIB) $(TARGET) @$(TMPLIST) + del $(TMPLIST) + +moc: $(SRCMOC) + +tmake: ../csr/win32/watcom/ta_abstract/Makefile + +../csr/win32/watcom/ta_abstract/Makefile: ta_abstract/ta_abstract.pro + tmake ta_abstract/ta_abstract.pro -o ../csr/win32/watcom/ta_abstract/Makefile + +dist: + $(ZIP) ta_abstract/ta_abstract.zip ta_abstract/ta_abstract.pro $(SOURCES) $(HEADERS) $(DIST) + +clean: + -del ..\..\..\..\..\temp\csr\ta_abstract.obj + -del ..\..\..\..\..\temp\csr\ta_def_ui.obj + -del ..\..\..\..\..\temp\csr\ta_func_api.obj + -del ..\..\..\..\..\temp\csr\ta_group_idx.obj + -del ..\..\..\..\..\temp\csr\ta_frame.obj + -del ..\..\..\..\..\temp\csr\table_a.obj + -del ..\..\..\..\..\temp\csr\table_b.obj + -del ..\..\..\..\..\temp\csr\table_c.obj + -del ..\..\..\..\..\temp\csr\table_d.obj + -del ..\..\..\..\..\temp\csr\table_e.obj + -del ..\..\..\..\..\temp\csr\table_f.obj + -del ..\..\..\..\..\temp\csr\table_g.obj + -del ..\..\..\..\..\temp\csr\table_h.obj + -del ..\..\..\..\..\temp\csr\table_i.obj + -del ..\..\..\..\..\temp\csr\table_j.obj + -del ..\..\..\..\..\temp\csr\table_k.obj + -del ..\..\..\..\..\temp\csr\table_l.obj + -del ..\..\..\..\..\temp\csr\table_m.obj + -del ..\..\..\..\..\temp\csr\table_n.obj + -del ..\..\..\..\..\temp\csr\table_o.obj + -del ..\..\..\..\..\temp\csr\table_p.obj + -del ..\..\..\..\..\temp\csr\table_q.obj + -del ..\..\..\..\..\temp\csr\table_r.obj + -del ..\..\..\..\..\temp\csr\table_s.obj + -del ..\..\..\..\..\temp\csr\table_t.obj + -del ..\..\..\..\..\temp\csr\table_u.obj + -del ..\..\..\..\..\temp\csr\table_v.obj + -del ..\..\..\..\..\temp\csr\table_w.obj + -del ..\..\..\..\..\temp\csr\table_x.obj + -del ..\..\..\..\..\temp\csr\table_y.obj + -del ..\..\..\..\..\temp\csr\table_z.obj + -del $(TARGET) + -del ../../../../../bin/*.map + -del ../../../../../bin/*._xe + -del ../../../../../bin/*.tds + -del ../../../../../bin/*.pdb + -del ../../../../../bin/*.pbo + -del ../../../../../bin/*.pbi + -del ../../../../../bin/*.pbt + -del ../../../../../temp/csr/*.pch + -del ../../../../../temp/csr/*.idb + -del ../../../../../temp/csr/ta_abstract/*.pch + -del ../../../../../temp/csr/ta_abstract/*.idb + -del ../../../../../temp/csr/ta_abstract/*.obj + +####### Compile + +..\..\..\..\..\temp\csr\ta_abstract.obj: ..\..\..\..\..\src\ta_abstract\ta_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_abstract.obj ..\..\..\..\..\src\ta_abstract\ta_abstract.c + +..\..\..\..\..\temp\csr\ta_def_ui.obj: ..\..\..\..\..\src\ta_abstract\ta_def_ui.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_def_ui.obj ..\..\..\..\..\src\ta_abstract\ta_def_ui.c + +..\..\..\..\..\temp\csr\ta_func_api.obj: ..\..\..\..\..\src\ta_abstract\ta_func_api.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_func_api.obj ..\..\..\..\..\src\ta_abstract\ta_func_api.c + +..\..\..\..\..\temp\csr\ta_group_idx.obj: ..\..\..\..\..\src\ta_abstract\ta_group_idx.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_group_idx.obj ..\..\..\..\..\src\ta_abstract\ta_group_idx.c + +..\..\..\..\..\temp\csr\ta_frame.obj: ..\..\..\..\..\src\ta_abstract\frames\ta_frame.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_frame.obj ..\..\..\..\..\src\ta_abstract\frames\ta_frame.c + +..\..\..\..\..\temp\csr\table_a.obj: ..\..\..\..\..\src\ta_abstract\tables\table_a.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\table_a.obj ..\..\..\..\..\src\ta_abstract\tables\table_a.c + +..\..\..\..\..\temp\csr\table_b.obj: ..\..\..\..\..\src\ta_abstract\tables\table_b.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\table_b.obj ..\..\..\..\..\src\ta_abstract\tables\table_b.c + +..\..\..\..\..\temp\csr\table_c.obj: ..\..\..\..\..\src\ta_abstract\tables\table_c.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\table_c.obj ..\..\..\..\..\src\ta_abstract\tables\table_c.c + +..\..\..\..\..\temp\csr\table_d.obj: ..\..\..\..\..\src\ta_abstract\tables\table_d.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\table_d.obj ..\..\..\..\..\src\ta_abstract\tables\table_d.c + +..\..\..\..\..\temp\csr\table_e.obj: ..\..\..\..\..\src\ta_abstract\tables\table_e.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\table_e.obj ..\..\..\..\..\src\ta_abstract\tables\table_e.c + +..\..\..\..\..\temp\csr\table_f.obj: ..\..\..\..\..\src\ta_abstract\tables\table_f.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\table_f.obj ..\..\..\..\..\src\ta_abstract\tables\table_f.c + +..\..\..\..\..\temp\csr\table_g.obj: ..\..\..\..\..\src\ta_abstract\tables\table_g.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\table_g.obj ..\..\..\..\..\src\ta_abstract\tables\table_g.c + +..\..\..\..\..\temp\csr\table_h.obj: ..\..\..\..\..\src\ta_abstract\tables\table_h.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\table_h.obj ..\..\..\..\..\src\ta_abstract\tables\table_h.c + +..\..\..\..\..\temp\csr\table_i.obj: ..\..\..\..\..\src\ta_abstract\tables\table_i.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\table_i.obj ..\..\..\..\..\src\ta_abstract\tables\table_i.c + +..\..\..\..\..\temp\csr\table_j.obj: ..\..\..\..\..\src\ta_abstract\tables\table_j.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\table_j.obj ..\..\..\..\..\src\ta_abstract\tables\table_j.c + +..\..\..\..\..\temp\csr\table_k.obj: ..\..\..\..\..\src\ta_abstract\tables\table_k.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\table_k.obj ..\..\..\..\..\src\ta_abstract\tables\table_k.c + +..\..\..\..\..\temp\csr\table_l.obj: ..\..\..\..\..\src\ta_abstract\tables\table_l.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\table_l.obj ..\..\..\..\..\src\ta_abstract\tables\table_l.c + +..\..\..\..\..\temp\csr\table_m.obj: ..\..\..\..\..\src\ta_abstract\tables\table_m.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\table_m.obj ..\..\..\..\..\src\ta_abstract\tables\table_m.c + +..\..\..\..\..\temp\csr\table_n.obj: ..\..\..\..\..\src\ta_abstract\tables\table_n.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\table_n.obj ..\..\..\..\..\src\ta_abstract\tables\table_n.c + +..\..\..\..\..\temp\csr\table_o.obj: ..\..\..\..\..\src\ta_abstract\tables\table_o.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\table_o.obj ..\..\..\..\..\src\ta_abstract\tables\table_o.c + +..\..\..\..\..\temp\csr\table_p.obj: ..\..\..\..\..\src\ta_abstract\tables\table_p.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\table_p.obj ..\..\..\..\..\src\ta_abstract\tables\table_p.c + +..\..\..\..\..\temp\csr\table_q.obj: ..\..\..\..\..\src\ta_abstract\tables\table_q.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\table_q.obj ..\..\..\..\..\src\ta_abstract\tables\table_q.c + +..\..\..\..\..\temp\csr\table_r.obj: ..\..\..\..\..\src\ta_abstract\tables\table_r.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\table_r.obj ..\..\..\..\..\src\ta_abstract\tables\table_r.c + +..\..\..\..\..\temp\csr\table_s.obj: ..\..\..\..\..\src\ta_abstract\tables\table_s.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\table_s.obj ..\..\..\..\..\src\ta_abstract\tables\table_s.c + +..\..\..\..\..\temp\csr\table_t.obj: ..\..\..\..\..\src\ta_abstract\tables\table_t.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\table_t.obj ..\..\..\..\..\src\ta_abstract\tables\table_t.c + +..\..\..\..\..\temp\csr\table_u.obj: ..\..\..\..\..\src\ta_abstract\tables\table_u.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\table_u.obj ..\..\..\..\..\src\ta_abstract\tables\table_u.c + +..\..\..\..\..\temp\csr\table_v.obj: ..\..\..\..\..\src\ta_abstract\tables\table_v.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\table_v.obj ..\..\..\..\..\src\ta_abstract\tables\table_v.c + +..\..\..\..\..\temp\csr\table_w.obj: ..\..\..\..\..\src\ta_abstract\tables\table_w.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\table_w.obj ..\..\..\..\..\src\ta_abstract\tables\table_w.c + +..\..\..\..\..\temp\csr\table_x.obj: ..\..\..\..\..\src\ta_abstract\tables\table_x.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\table_x.obj ..\..\..\..\..\src\ta_abstract\tables\table_x.c + +..\..\..\..\..\temp\csr\table_y.obj: ..\..\..\..\..\src\ta_abstract\tables\table_y.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\table_y.obj ..\..\..\..\..\src\ta_abstract\tables\table_y.c + +..\..\..\..\..\temp\csr\table_z.obj: ..\..\..\..\..\src\ta_abstract\tables\table_z.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\table_z.obj ..\..\..\..\..\src\ta_abstract\tables\table_z.c + diff --git a/make/csr/win32/watcom/ta_common/Makefile b/make/csr/win32/watcom/ta_common/Makefile new file mode 100644 index 000000000..18e767551 --- /dev/null +++ b/make/csr/win32/watcom/ta_common/Makefile @@ -0,0 +1,83 @@ +############################################################################# +# Makefile for building ta_common_csr +# Generated by tmake; +# Project: ta_common/ta_common +# Template: lib +############################################################################# + +####### Compiler, tools and options + +CC = wcl386 +CXX = wcl386 +CFLAGS = -zq -w2 -ox -d=TA_SINGLE_THREAD -d=WIN32 +CXXFLAGS= -zq -w2 -ox -d=TA_SINGLE_THREAD -d=WIN32 +INCPATH = -i="..\..\..\..\..\src\ta_common" -i="..\..\..\..\..\include" +LIB = wlib -b -c -n -q -p=512 +MOC = moc + +ZIP = zip -r -9 + +####### Files + +HEADERS = +SOURCES = ..\..\..\..\..\src\ta_common\ta_global.c & + ..\..\..\..\..\src\ta_common\ta_retcode.c & + ..\..\..\..\..\src\ta_common\ta_version.c +OBJECTS = ..\..\..\..\..\temp\csr\ta_global.obj & + ..\..\..\..\..\temp\csr\ta_retcode.obj & + ..\..\..\..\..\temp\csr\ta_version.obj +SRCMOC = +OBJMOC = +DIST = +TARGET = ..\..\..\..\..\lib\ta_common_csr.lib +TMPLIST = ta_common_csr.lst + +####### Build rules + +all: $(TARGET) + +$(TARGET): $(OBJECTS) $(OBJMOC) + @%create $(TMPLIST) + @for %i in ( $(OBJECTS) $(OBJMOC) ) do @%append $(TMPLIST) +'%i' + $(LIB) $(TARGET) @$(TMPLIST) + del $(TMPLIST) + +moc: $(SRCMOC) + +tmake: ../csr/win32/watcom/ta_common/Makefile + +../csr/win32/watcom/ta_common/Makefile: ta_common/ta_common.pro + tmake ta_common/ta_common.pro -o ../csr/win32/watcom/ta_common/Makefile + +dist: + $(ZIP) ta_common/ta_common.zip ta_common/ta_common.pro $(SOURCES) $(HEADERS) $(DIST) + +clean: + -del ..\..\..\..\..\temp\csr\ta_global.obj + -del ..\..\..\..\..\temp\csr\ta_retcode.obj + -del ..\..\..\..\..\temp\csr\ta_version.obj + -del $(TARGET) + -del ../../../../../bin/*.map + -del ../../../../../bin/*._xe + -del ../../../../../bin/*.tds + -del ../../../../../bin/*.pdb + -del ../../../../../bin/*.pbo + -del ../../../../../bin/*.pbi + -del ../../../../../bin/*.pbt + -del ../../../../../temp/csr/*.pch + -del ../../../../../temp/csr/*.idb + -del ../../../../../temp/csr/ta_common_csr/*.pch + -del ../../../../../temp/csr/ta_common_csr/*.idb + -del ../../../../../temp/csr/ta_common_csr/*.obj + +####### Compile + +..\..\..\..\..\temp\csr\ta_global.obj: ..\..\..\..\..\src\ta_common\ta_global.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_global.obj ..\..\..\..\..\src\ta_common\ta_global.c + +..\..\..\..\..\temp\csr\ta_retcode.obj: ..\..\..\..\..\src\ta_common\ta_retcode.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_retcode.obj ..\..\..\..\..\src\ta_common\ta_retcode.c + +..\..\..\..\..\temp\csr\ta_version.obj: ..\..\..\..\..\src\ta_common\ta_version.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_version.obj ..\..\..\..\..\src\ta_common\ta_version.c + diff --git a/make/csr/win32/watcom/ta_func/Makefile b/make/csr/win32/watcom/ta_func/Makefile new file mode 100644 index 000000000..80892e70c --- /dev/null +++ b/make/csr/win32/watcom/ta_func/Makefile @@ -0,0 +1,1019 @@ +############################################################################# +# Makefile for building ta_func_csr +# Generated by tmake; +# Project: ta_func/ta_func +# Template: lib +############################################################################# + +####### Compiler, tools and options + +CC = wcl386 +CXX = wcl386 +CFLAGS = -zq -w2 -ox -d=TA_SINGLE_THREAD -d=WIN32 +CXXFLAGS= -zq -w2 -ox -d=TA_SINGLE_THREAD -d=WIN32 +INCPATH = -i="..\..\..\..\..\src\ta_common" -i="\n" -i="..\..\..\..\..\include" +LIB = wlib -b -c -n -q -p=512 +MOC = moc + +ZIP = zip -r -9 + +####### Files + +HEADERS = +SOURCES = ..\..\..\..\..\src\ta_func\ta_utility.c & + ..\..\..\..\..\src\ta_func\ta_ACOS.c & + ..\..\..\..\..\src\ta_func\ta_AD.c & + ..\..\..\..\..\src\ta_func\ta_ADD.c & + ..\..\..\..\..\src\ta_func\ta_ADOSC.c & + ..\..\..\..\..\src\ta_func\ta_ADX.c & + ..\..\..\..\..\src\ta_func\ta_ADXR.c & + ..\..\..\..\..\src\ta_func\ta_APO.c & + ..\..\..\..\..\src\ta_func\ta_AROON.c & + ..\..\..\..\..\src\ta_func\ta_AROONOSC.c & + ..\..\..\..\..\src\ta_func\ta_ASIN.c & + ..\..\..\..\..\src\ta_func\ta_ATAN.c & + ..\..\..\..\..\src\ta_func\ta_ATR.c & + ..\..\..\..\..\src\ta_func\ta_AVGPRICE.c & + ..\..\..\..\..\src\ta_func\ta_BBANDS.c & + ..\..\..\..\..\src\ta_func\ta_BETA.c & + ..\..\..\..\..\src\ta_func\ta_BOP.c & + ..\..\..\..\..\src\ta_func\ta_CCI.c & + ..\..\..\..\..\src\ta_func\ta_CDL2CROWS.c & + ..\..\..\..\..\src\ta_func\ta_CDL3BLACKCROWS.c & + ..\..\..\..\..\src\ta_func\ta_CDL3INSIDE.c & + ..\..\..\..\..\src\ta_func\ta_CDL3LINESTRIKE.c & + ..\..\..\..\..\src\ta_func\ta_CDL3OUTSIDE.c & + ..\..\..\..\..\src\ta_func\ta_CDL3STARSINSOUTH.c & + ..\..\..\..\..\src\ta_func\ta_CDL3WHITESOLDIERS.c & + ..\..\..\..\..\src\ta_func\ta_CDLABANDONEDBABY.c & + ..\..\..\..\..\src\ta_func\ta_CDLADVANCEBLOCK.c & + ..\..\..\..\..\src\ta_func\ta_CDLBELTHOLD.c & + ..\..\..\..\..\src\ta_func\ta_CDLBREAKAWAY.c & + ..\..\..\..\..\src\ta_func\ta_CDLCLOSINGMARUBOZU.c & + ..\..\..\..\..\src\ta_func\ta_CDLCONCEALBABYSWALL.c & + ..\..\..\..\..\src\ta_func\ta_CDLCOUNTERATTACK.c & + ..\..\..\..\..\src\ta_func\ta_CDLDARKCLOUDCOVER.c & + ..\..\..\..\..\src\ta_func\ta_CDLDOJI.c & + ..\..\..\..\..\src\ta_func\ta_CDLDOJISTAR.c & + ..\..\..\..\..\src\ta_func\ta_CDLDRAGONFLYDOJI.c & + ..\..\..\..\..\src\ta_func\ta_CDLENGULFING.c & + ..\..\..\..\..\src\ta_func\ta_CDLEVENINGDOJISTAR.c & + ..\..\..\..\..\src\ta_func\ta_CDLEVENINGSTAR.c & + ..\..\..\..\..\src\ta_func\ta_CDLGAPSIDESIDEWHITE.c & + ..\..\..\..\..\src\ta_func\ta_CDLGRAVESTONEDOJI.c & + ..\..\..\..\..\src\ta_func\ta_CDLHAMMER.c & + ..\..\..\..\..\src\ta_func\ta_CDLHANGINGMAN.c & + ..\..\..\..\..\src\ta_func\ta_CDLHARAMI.c & + ..\..\..\..\..\src\ta_func\ta_CDLHARAMICROSS.c & + ..\..\..\..\..\src\ta_func\ta_CDLHIGHWAVE.c & + ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKE.c & + ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKEMOD.c & + ..\..\..\..\..\src\ta_func\ta_CDLHOMINGPIGEON.c & + ..\..\..\..\..\src\ta_func\ta_CDLIDENTICAL3CROWS.c & + ..\..\..\..\..\src\ta_func\ta_CDLINNECK.c & + ..\..\..\..\..\src\ta_func\ta_CDLINVERTEDHAMMER.c & + ..\..\..\..\..\src\ta_func\ta_CDLKICKING.c & + ..\..\..\..\..\src\ta_func\ta_CDLKICKINGBYLENGTH.c & + ..\..\..\..\..\src\ta_func\ta_CDLLADDERBOTTOM.c & + ..\..\..\..\..\src\ta_func\ta_CDLLONGLEGGEDDOJI.c & + ..\..\..\..\..\src\ta_func\ta_CDLLONGLINE.c & + ..\..\..\..\..\src\ta_func\ta_CDLMARUBOZU.c & + ..\..\..\..\..\src\ta_func\ta_CDLMATCHINGLOW.c & + ..\..\..\..\..\src\ta_func\ta_CDLMATHOLD.c & + ..\..\..\..\..\src\ta_func\ta_CDLMORNINGDOJISTAR.c & + ..\..\..\..\..\src\ta_func\ta_CDLMORNINGSTAR.c & + ..\..\..\..\..\src\ta_func\ta_CDLONNECK.c & + ..\..\..\..\..\src\ta_func\ta_CDLPIERCING.c & + ..\..\..\..\..\src\ta_func\ta_CDLRICKSHAWMAN.c & + ..\..\..\..\..\src\ta_func\ta_CDLRISEFALL3METHODS.c & + ..\..\..\..\..\src\ta_func\ta_CDLSEPARATINGLINES.c & + ..\..\..\..\..\src\ta_func\ta_CDLSHOOTINGSTAR.c & + ..\..\..\..\..\src\ta_func\ta_CDLSHORTLINE.c & + ..\..\..\..\..\src\ta_func\ta_CDLSPINNINGTOP.c & + ..\..\..\..\..\src\ta_func\ta_CDLSTALLEDPATTERN.c & + ..\..\..\..\..\src\ta_func\ta_CDLSTICKSANDWICH.c & + ..\..\..\..\..\src\ta_func\ta_CDLTAKURI.c & + ..\..\..\..\..\src\ta_func\ta_CDLTASUKIGAP.c & + ..\..\..\..\..\src\ta_func\ta_CDLTHRUSTING.c & + ..\..\..\..\..\src\ta_func\ta_CDLTRISTAR.c & + ..\..\..\..\..\src\ta_func\ta_CDLUNIQUE3RIVER.c & + ..\..\..\..\..\src\ta_func\ta_CDLUPSIDEGAP2CROWS.c & + ..\..\..\..\..\src\ta_func\ta_CDLXSIDEGAP3METHODS.c & + ..\..\..\..\..\src\ta_func\ta_CEIL.c & + ..\..\..\..\..\src\ta_func\ta_CMO.c & + ..\..\..\..\..\src\ta_func\ta_CORREL.c & + ..\..\..\..\..\src\ta_func\ta_COS.c & + ..\..\..\..\..\src\ta_func\ta_COSH.c & + ..\..\..\..\..\src\ta_func\ta_DEMA.c & + ..\..\..\..\..\src\ta_func\ta_DIV.c & + ..\..\..\..\..\src\ta_func\ta_DX.c & + ..\..\..\..\..\src\ta_func\ta_EMA.c & + ..\..\..\..\..\src\ta_func\ta_EXP.c & + ..\..\..\..\..\src\ta_func\ta_FLOOR.c & + ..\..\..\..\..\src\ta_func\ta_HT_DCPERIOD.c & + ..\..\..\..\..\src\ta_func\ta_HT_DCPHASE.c & + ..\..\..\..\..\src\ta_func\ta_HT_PHASOR.c & + ..\..\..\..\..\src\ta_func\ta_HT_SINE.c & + ..\..\..\..\..\src\ta_func\ta_HT_TRENDLINE.c & + ..\..\..\..\..\src\ta_func\ta_HT_TRENDMODE.c & + ..\..\..\..\..\src\ta_func\ta_KAMA.c & + ..\..\..\..\..\src\ta_func\ta_LINEARREG.c & + ..\..\..\..\..\src\ta_func\ta_LINEARREG_ANGLE.c & + ..\..\..\..\..\src\ta_func\ta_LINEARREG_INTERCEPT.c & + ..\..\..\..\..\src\ta_func\ta_LINEARREG_SLOPE.c & + ..\..\..\..\..\src\ta_func\ta_LN.c & + ..\..\..\..\..\src\ta_func\ta_LOG10.c & + ..\..\..\..\..\src\ta_func\ta_MA.c & + ..\..\..\..\..\src\ta_func\ta_MACD.c & + ..\..\..\..\..\src\ta_func\ta_MACDEXT.c & + ..\..\..\..\..\src\ta_func\ta_MACDFIX.c & + ..\..\..\..\..\src\ta_func\ta_MAMA.c & + ..\..\..\..\..\src\ta_func\ta_MAVP.c & + ..\..\..\..\..\src\ta_func\ta_MAX.c & + ..\..\..\..\..\src\ta_func\ta_MAXINDEX.c & + ..\..\..\..\..\src\ta_func\ta_MEDPRICE.c & + ..\..\..\..\..\src\ta_func\ta_MFI.c & + ..\..\..\..\..\src\ta_func\ta_MIDPOINT.c & + ..\..\..\..\..\src\ta_func\ta_MIDPRICE.c & + ..\..\..\..\..\src\ta_func\ta_MIN.c & + ..\..\..\..\..\src\ta_func\ta_MININDEX.c & + ..\..\..\..\..\src\ta_func\ta_MINMAX.c & + ..\..\..\..\..\src\ta_func\ta_MINMAXINDEX.c & + ..\..\..\..\..\src\ta_func\ta_MINUS_DI.c & + ..\..\..\..\..\src\ta_func\ta_MINUS_DM.c & + ..\..\..\..\..\src\ta_func\ta_MOM.c & + ..\..\..\..\..\src\ta_func\ta_MULT.c & + ..\..\..\..\..\src\ta_func\ta_NATR.c & + ..\..\..\..\..\src\ta_func\ta_OBV.c & + ..\..\..\..\..\src\ta_func\ta_PLUS_DI.c & + ..\..\..\..\..\src\ta_func\ta_PLUS_DM.c & + ..\..\..\..\..\src\ta_func\ta_PPO.c & + ..\..\..\..\..\src\ta_func\ta_ROC.c & + ..\..\..\..\..\src\ta_func\ta_ROCP.c & + ..\..\..\..\..\src\ta_func\ta_ROCR.c & + ..\..\..\..\..\src\ta_func\ta_ROCR100.c & + ..\..\..\..\..\src\ta_func\ta_RSI.c & + ..\..\..\..\..\src\ta_func\ta_SAR.c & + ..\..\..\..\..\src\ta_func\ta_SAREXT.c & + ..\..\..\..\..\src\ta_func\ta_SIN.c & + ..\..\..\..\..\src\ta_func\ta_SINH.c & + ..\..\..\..\..\src\ta_func\ta_SMA.c & + ..\..\..\..\..\src\ta_func\ta_SQRT.c & + ..\..\..\..\..\src\ta_func\ta_STDDEV.c & + ..\..\..\..\..\src\ta_func\ta_STOCH.c & + ..\..\..\..\..\src\ta_func\ta_STOCHF.c & + ..\..\..\..\..\src\ta_func\ta_STOCHRSI.c & + ..\..\..\..\..\src\ta_func\ta_SUB.c & + ..\..\..\..\..\src\ta_func\ta_SUM.c & + ..\..\..\..\..\src\ta_func\ta_T3.c & + ..\..\..\..\..\src\ta_func\ta_TAN.c & + ..\..\..\..\..\src\ta_func\ta_TANH.c & + ..\..\..\..\..\src\ta_func\ta_TEMA.c & + ..\..\..\..\..\src\ta_func\ta_TRANGE.c & + ..\..\..\..\..\src\ta_func\ta_TRIMA.c & + ..\..\..\..\..\src\ta_func\ta_TRIX.c & + ..\..\..\..\..\src\ta_func\ta_TSF.c & + ..\..\..\..\..\src\ta_func\ta_TYPPRICE.c & + ..\..\..\..\..\src\ta_func\ta_ULTOSC.c & + ..\..\..\..\..\src\ta_func\ta_VAR.c & + ..\..\..\..\..\src\ta_func\ta_WCLPRICE.c & + ..\..\..\..\..\src\ta_func\ta_WILLR.c & + ..\..\..\..\..\src\ta_func\ta_WMA.c +OBJECTS = ..\..\..\..\..\temp\csr\ta_utility.obj & + ..\..\..\..\..\temp\csr\ta_ACOS.obj & + ..\..\..\..\..\temp\csr\ta_AD.obj & + ..\..\..\..\..\temp\csr\ta_ADD.obj & + ..\..\..\..\..\temp\csr\ta_ADOSC.obj & + ..\..\..\..\..\temp\csr\ta_ADX.obj & + ..\..\..\..\..\temp\csr\ta_ADXR.obj & + ..\..\..\..\..\temp\csr\ta_APO.obj & + ..\..\..\..\..\temp\csr\ta_AROON.obj & + ..\..\..\..\..\temp\csr\ta_AROONOSC.obj & + ..\..\..\..\..\temp\csr\ta_ASIN.obj & + ..\..\..\..\..\temp\csr\ta_ATAN.obj & + ..\..\..\..\..\temp\csr\ta_ATR.obj & + ..\..\..\..\..\temp\csr\ta_AVGPRICE.obj & + ..\..\..\..\..\temp\csr\ta_BBANDS.obj & + ..\..\..\..\..\temp\csr\ta_BETA.obj & + ..\..\..\..\..\temp\csr\ta_BOP.obj & + ..\..\..\..\..\temp\csr\ta_CCI.obj & + ..\..\..\..\..\temp\csr\ta_CDL2CROWS.obj & + ..\..\..\..\..\temp\csr\ta_CDL3BLACKCROWS.obj & + ..\..\..\..\..\temp\csr\ta_CDL3INSIDE.obj & + ..\..\..\..\..\temp\csr\ta_CDL3LINESTRIKE.obj & + ..\..\..\..\..\temp\csr\ta_CDL3OUTSIDE.obj & + ..\..\..\..\..\temp\csr\ta_CDL3STARSINSOUTH.obj & + ..\..\..\..\..\temp\csr\ta_CDL3WHITESOLDIERS.obj & + ..\..\..\..\..\temp\csr\ta_CDLABANDONEDBABY.obj & + ..\..\..\..\..\temp\csr\ta_CDLADVANCEBLOCK.obj & + ..\..\..\..\..\temp\csr\ta_CDLBELTHOLD.obj & + ..\..\..\..\..\temp\csr\ta_CDLBREAKAWAY.obj & + ..\..\..\..\..\temp\csr\ta_CDLCLOSINGMARUBOZU.obj & + ..\..\..\..\..\temp\csr\ta_CDLCONCEALBABYSWALL.obj & + ..\..\..\..\..\temp\csr\ta_CDLCOUNTERATTACK.obj & + ..\..\..\..\..\temp\csr\ta_CDLDARKCLOUDCOVER.obj & + ..\..\..\..\..\temp\csr\ta_CDLDOJI.obj & + ..\..\..\..\..\temp\csr\ta_CDLDOJISTAR.obj & + ..\..\..\..\..\temp\csr\ta_CDLDRAGONFLYDOJI.obj & + ..\..\..\..\..\temp\csr\ta_CDLENGULFING.obj & + ..\..\..\..\..\temp\csr\ta_CDLEVENINGDOJISTAR.obj & + ..\..\..\..\..\temp\csr\ta_CDLEVENINGSTAR.obj & + ..\..\..\..\..\temp\csr\ta_CDLGAPSIDESIDEWHITE.obj & + ..\..\..\..\..\temp\csr\ta_CDLGRAVESTONEDOJI.obj & + ..\..\..\..\..\temp\csr\ta_CDLHAMMER.obj & + ..\..\..\..\..\temp\csr\ta_CDLHANGINGMAN.obj & + ..\..\..\..\..\temp\csr\ta_CDLHARAMI.obj & + ..\..\..\..\..\temp\csr\ta_CDLHARAMICROSS.obj & + ..\..\..\..\..\temp\csr\ta_CDLHIGHWAVE.obj & + ..\..\..\..\..\temp\csr\ta_CDLHIKKAKE.obj & + ..\..\..\..\..\temp\csr\ta_CDLHIKKAKEMOD.obj & + ..\..\..\..\..\temp\csr\ta_CDLHOMINGPIGEON.obj & + ..\..\..\..\..\temp\csr\ta_CDLIDENTICAL3CROWS.obj & + ..\..\..\..\..\temp\csr\ta_CDLINNECK.obj & + ..\..\..\..\..\temp\csr\ta_CDLINVERTEDHAMMER.obj & + ..\..\..\..\..\temp\csr\ta_CDLKICKING.obj & + ..\..\..\..\..\temp\csr\ta_CDLKICKINGBYLENGTH.obj & + ..\..\..\..\..\temp\csr\ta_CDLLADDERBOTTOM.obj & + ..\..\..\..\..\temp\csr\ta_CDLLONGLEGGEDDOJI.obj & + ..\..\..\..\..\temp\csr\ta_CDLLONGLINE.obj & + ..\..\..\..\..\temp\csr\ta_CDLMARUBOZU.obj & + ..\..\..\..\..\temp\csr\ta_CDLMATCHINGLOW.obj & + ..\..\..\..\..\temp\csr\ta_CDLMATHOLD.obj & + ..\..\..\..\..\temp\csr\ta_CDLMORNINGDOJISTAR.obj & + ..\..\..\..\..\temp\csr\ta_CDLMORNINGSTAR.obj & + ..\..\..\..\..\temp\csr\ta_CDLONNECK.obj & + ..\..\..\..\..\temp\csr\ta_CDLPIERCING.obj & + ..\..\..\..\..\temp\csr\ta_CDLRICKSHAWMAN.obj & + ..\..\..\..\..\temp\csr\ta_CDLRISEFALL3METHODS.obj & + ..\..\..\..\..\temp\csr\ta_CDLSEPARATINGLINES.obj & + ..\..\..\..\..\temp\csr\ta_CDLSHOOTINGSTAR.obj & + ..\..\..\..\..\temp\csr\ta_CDLSHORTLINE.obj & + ..\..\..\..\..\temp\csr\ta_CDLSPINNINGTOP.obj & + ..\..\..\..\..\temp\csr\ta_CDLSTALLEDPATTERN.obj & + ..\..\..\..\..\temp\csr\ta_CDLSTICKSANDWICH.obj & + ..\..\..\..\..\temp\csr\ta_CDLTAKURI.obj & + ..\..\..\..\..\temp\csr\ta_CDLTASUKIGAP.obj & + ..\..\..\..\..\temp\csr\ta_CDLTHRUSTING.obj & + ..\..\..\..\..\temp\csr\ta_CDLTRISTAR.obj & + ..\..\..\..\..\temp\csr\ta_CDLUNIQUE3RIVER.obj & + ..\..\..\..\..\temp\csr\ta_CDLUPSIDEGAP2CROWS.obj & + ..\..\..\..\..\temp\csr\ta_CDLXSIDEGAP3METHODS.obj & + ..\..\..\..\..\temp\csr\ta_CEIL.obj & + ..\..\..\..\..\temp\csr\ta_CMO.obj & + ..\..\..\..\..\temp\csr\ta_CORREL.obj & + ..\..\..\..\..\temp\csr\ta_COS.obj & + ..\..\..\..\..\temp\csr\ta_COSH.obj & + ..\..\..\..\..\temp\csr\ta_DEMA.obj & + ..\..\..\..\..\temp\csr\ta_DIV.obj & + ..\..\..\..\..\temp\csr\ta_DX.obj & + ..\..\..\..\..\temp\csr\ta_EMA.obj & + ..\..\..\..\..\temp\csr\ta_EXP.obj & + ..\..\..\..\..\temp\csr\ta_FLOOR.obj & + ..\..\..\..\..\temp\csr\ta_HT_DCPERIOD.obj & + ..\..\..\..\..\temp\csr\ta_HT_DCPHASE.obj & + ..\..\..\..\..\temp\csr\ta_HT_PHASOR.obj & + ..\..\..\..\..\temp\csr\ta_HT_SINE.obj & + ..\..\..\..\..\temp\csr\ta_HT_TRENDLINE.obj & + ..\..\..\..\..\temp\csr\ta_HT_TRENDMODE.obj & + ..\..\..\..\..\temp\csr\ta_KAMA.obj & + ..\..\..\..\..\temp\csr\ta_LINEARREG.obj & + ..\..\..\..\..\temp\csr\ta_LINEARREG_ANGLE.obj & + ..\..\..\..\..\temp\csr\ta_LINEARREG_INTERCEPT.obj & + ..\..\..\..\..\temp\csr\ta_LINEARREG_SLOPE.obj & + ..\..\..\..\..\temp\csr\ta_LN.obj & + ..\..\..\..\..\temp\csr\ta_LOG10.obj & + ..\..\..\..\..\temp\csr\ta_MA.obj & + ..\..\..\..\..\temp\csr\ta_MACD.obj & + ..\..\..\..\..\temp\csr\ta_MACDEXT.obj & + ..\..\..\..\..\temp\csr\ta_MACDFIX.obj & + ..\..\..\..\..\temp\csr\ta_MAMA.obj & + ..\..\..\..\..\temp\csr\ta_MAVP.obj & + ..\..\..\..\..\temp\csr\ta_MAX.obj & + ..\..\..\..\..\temp\csr\ta_MAXINDEX.obj & + ..\..\..\..\..\temp\csr\ta_MEDPRICE.obj & + ..\..\..\..\..\temp\csr\ta_MFI.obj & + ..\..\..\..\..\temp\csr\ta_MIDPOINT.obj & + ..\..\..\..\..\temp\csr\ta_MIDPRICE.obj & + ..\..\..\..\..\temp\csr\ta_MIN.obj & + ..\..\..\..\..\temp\csr\ta_MININDEX.obj & + ..\..\..\..\..\temp\csr\ta_MINMAX.obj & + ..\..\..\..\..\temp\csr\ta_MINMAXINDEX.obj & + ..\..\..\..\..\temp\csr\ta_MINUS_DI.obj & + ..\..\..\..\..\temp\csr\ta_MINUS_DM.obj & + ..\..\..\..\..\temp\csr\ta_MOM.obj & + ..\..\..\..\..\temp\csr\ta_MULT.obj & + ..\..\..\..\..\temp\csr\ta_NATR.obj & + ..\..\..\..\..\temp\csr\ta_OBV.obj & + ..\..\..\..\..\temp\csr\ta_PLUS_DI.obj & + ..\..\..\..\..\temp\csr\ta_PLUS_DM.obj & + ..\..\..\..\..\temp\csr\ta_PPO.obj & + ..\..\..\..\..\temp\csr\ta_ROC.obj & + ..\..\..\..\..\temp\csr\ta_ROCP.obj & + ..\..\..\..\..\temp\csr\ta_ROCR.obj & + ..\..\..\..\..\temp\csr\ta_ROCR100.obj & + ..\..\..\..\..\temp\csr\ta_RSI.obj & + ..\..\..\..\..\temp\csr\ta_SAR.obj & + ..\..\..\..\..\temp\csr\ta_SAREXT.obj & + ..\..\..\..\..\temp\csr\ta_SIN.obj & + ..\..\..\..\..\temp\csr\ta_SINH.obj & + ..\..\..\..\..\temp\csr\ta_SMA.obj & + ..\..\..\..\..\temp\csr\ta_SQRT.obj & + ..\..\..\..\..\temp\csr\ta_STDDEV.obj & + ..\..\..\..\..\temp\csr\ta_STOCH.obj & + ..\..\..\..\..\temp\csr\ta_STOCHF.obj & + ..\..\..\..\..\temp\csr\ta_STOCHRSI.obj & + ..\..\..\..\..\temp\csr\ta_SUB.obj & + ..\..\..\..\..\temp\csr\ta_SUM.obj & + ..\..\..\..\..\temp\csr\ta_T3.obj & + ..\..\..\..\..\temp\csr\ta_TAN.obj & + ..\..\..\..\..\temp\csr\ta_TANH.obj & + ..\..\..\..\..\temp\csr\ta_TEMA.obj & + ..\..\..\..\..\temp\csr\ta_TRANGE.obj & + ..\..\..\..\..\temp\csr\ta_TRIMA.obj & + ..\..\..\..\..\temp\csr\ta_TRIX.obj & + ..\..\..\..\..\temp\csr\ta_TSF.obj & + ..\..\..\..\..\temp\csr\ta_TYPPRICE.obj & + ..\..\..\..\..\temp\csr\ta_ULTOSC.obj & + ..\..\..\..\..\temp\csr\ta_VAR.obj & + ..\..\..\..\..\temp\csr\ta_WCLPRICE.obj & + ..\..\..\..\..\temp\csr\ta_WILLR.obj & + ..\..\..\..\..\temp\csr\ta_WMA.obj +SRCMOC = +OBJMOC = +DIST = +TARGET = ..\..\..\..\..\lib\ta_func_csr.lib +TMPLIST = ta_func_csr.lst + +####### Build rules + +all: $(TARGET) + +$(TARGET): $(OBJECTS) $(OBJMOC) + @%create $(TMPLIST) + @for %i in ( $(OBJECTS) $(OBJMOC) ) do @%append $(TMPLIST) +'%i' + $(LIB) $(TARGET) @$(TMPLIST) + del $(TMPLIST) + +moc: $(SRCMOC) + +tmake: ../csr/win32/watcom/ta_func/Makefile + +../csr/win32/watcom/ta_func/Makefile: ta_func/ta_func.pro + tmake ta_func/ta_func.pro -o ../csr/win32/watcom/ta_func/Makefile + +dist: + $(ZIP) ta_func/ta_func.zip ta_func/ta_func.pro $(SOURCES) $(HEADERS) $(DIST) + +clean: + -del ..\..\..\..\..\temp\csr\ta_utility.obj + -del ..\..\..\..\..\temp\csr\ta_ACOS.obj + -del ..\..\..\..\..\temp\csr\ta_AD.obj + -del ..\..\..\..\..\temp\csr\ta_ADD.obj + -del ..\..\..\..\..\temp\csr\ta_ADOSC.obj + -del ..\..\..\..\..\temp\csr\ta_ADX.obj + -del ..\..\..\..\..\temp\csr\ta_ADXR.obj + -del ..\..\..\..\..\temp\csr\ta_APO.obj + -del ..\..\..\..\..\temp\csr\ta_AROON.obj + -del ..\..\..\..\..\temp\csr\ta_AROONOSC.obj + -del ..\..\..\..\..\temp\csr\ta_ASIN.obj + -del ..\..\..\..\..\temp\csr\ta_ATAN.obj + -del ..\..\..\..\..\temp\csr\ta_ATR.obj + -del ..\..\..\..\..\temp\csr\ta_AVGPRICE.obj + -del ..\..\..\..\..\temp\csr\ta_BBANDS.obj + -del ..\..\..\..\..\temp\csr\ta_BETA.obj + -del ..\..\..\..\..\temp\csr\ta_BOP.obj + -del ..\..\..\..\..\temp\csr\ta_CCI.obj + -del ..\..\..\..\..\temp\csr\ta_CDL2CROWS.obj + -del ..\..\..\..\..\temp\csr\ta_CDL3BLACKCROWS.obj + -del ..\..\..\..\..\temp\csr\ta_CDL3INSIDE.obj + -del ..\..\..\..\..\temp\csr\ta_CDL3LINESTRIKE.obj + -del ..\..\..\..\..\temp\csr\ta_CDL3OUTSIDE.obj + -del ..\..\..\..\..\temp\csr\ta_CDL3STARSINSOUTH.obj + -del ..\..\..\..\..\temp\csr\ta_CDL3WHITESOLDIERS.obj + -del ..\..\..\..\..\temp\csr\ta_CDLABANDONEDBABY.obj + -del ..\..\..\..\..\temp\csr\ta_CDLADVANCEBLOCK.obj + -del ..\..\..\..\..\temp\csr\ta_CDLBELTHOLD.obj + -del ..\..\..\..\..\temp\csr\ta_CDLBREAKAWAY.obj + -del ..\..\..\..\..\temp\csr\ta_CDLCLOSINGMARUBOZU.obj + -del ..\..\..\..\..\temp\csr\ta_CDLCONCEALBABYSWALL.obj + -del ..\..\..\..\..\temp\csr\ta_CDLCOUNTERATTACK.obj + -del ..\..\..\..\..\temp\csr\ta_CDLDARKCLOUDCOVER.obj + -del ..\..\..\..\..\temp\csr\ta_CDLDOJI.obj + -del ..\..\..\..\..\temp\csr\ta_CDLDOJISTAR.obj + -del ..\..\..\..\..\temp\csr\ta_CDLDRAGONFLYDOJI.obj + -del ..\..\..\..\..\temp\csr\ta_CDLENGULFING.obj + -del ..\..\..\..\..\temp\csr\ta_CDLEVENINGDOJISTAR.obj + -del ..\..\..\..\..\temp\csr\ta_CDLEVENINGSTAR.obj + -del ..\..\..\..\..\temp\csr\ta_CDLGAPSIDESIDEWHITE.obj + -del ..\..\..\..\..\temp\csr\ta_CDLGRAVESTONEDOJI.obj + -del ..\..\..\..\..\temp\csr\ta_CDLHAMMER.obj + -del ..\..\..\..\..\temp\csr\ta_CDLHANGINGMAN.obj + -del ..\..\..\..\..\temp\csr\ta_CDLHARAMI.obj + -del ..\..\..\..\..\temp\csr\ta_CDLHARAMICROSS.obj + -del ..\..\..\..\..\temp\csr\ta_CDLHIGHWAVE.obj + -del ..\..\..\..\..\temp\csr\ta_CDLHIKKAKE.obj + -del ..\..\..\..\..\temp\csr\ta_CDLHIKKAKEMOD.obj + -del ..\..\..\..\..\temp\csr\ta_CDLHOMINGPIGEON.obj + -del ..\..\..\..\..\temp\csr\ta_CDLIDENTICAL3CROWS.obj + -del ..\..\..\..\..\temp\csr\ta_CDLINNECK.obj + -del ..\..\..\..\..\temp\csr\ta_CDLINVERTEDHAMMER.obj + -del ..\..\..\..\..\temp\csr\ta_CDLKICKING.obj + -del ..\..\..\..\..\temp\csr\ta_CDLKICKINGBYLENGTH.obj + -del ..\..\..\..\..\temp\csr\ta_CDLLADDERBOTTOM.obj + -del ..\..\..\..\..\temp\csr\ta_CDLLONGLEGGEDDOJI.obj + -del ..\..\..\..\..\temp\csr\ta_CDLLONGLINE.obj + -del ..\..\..\..\..\temp\csr\ta_CDLMARUBOZU.obj + -del ..\..\..\..\..\temp\csr\ta_CDLMATCHINGLOW.obj + -del ..\..\..\..\..\temp\csr\ta_CDLMATHOLD.obj + -del ..\..\..\..\..\temp\csr\ta_CDLMORNINGDOJISTAR.obj + -del ..\..\..\..\..\temp\csr\ta_CDLMORNINGSTAR.obj + -del ..\..\..\..\..\temp\csr\ta_CDLONNECK.obj + -del ..\..\..\..\..\temp\csr\ta_CDLPIERCING.obj + -del ..\..\..\..\..\temp\csr\ta_CDLRICKSHAWMAN.obj + -del ..\..\..\..\..\temp\csr\ta_CDLRISEFALL3METHODS.obj + -del ..\..\..\..\..\temp\csr\ta_CDLSEPARATINGLINES.obj + -del ..\..\..\..\..\temp\csr\ta_CDLSHOOTINGSTAR.obj + -del ..\..\..\..\..\temp\csr\ta_CDLSHORTLINE.obj + -del ..\..\..\..\..\temp\csr\ta_CDLSPINNINGTOP.obj + -del ..\..\..\..\..\temp\csr\ta_CDLSTALLEDPATTERN.obj + -del ..\..\..\..\..\temp\csr\ta_CDLSTICKSANDWICH.obj + -del ..\..\..\..\..\temp\csr\ta_CDLTAKURI.obj + -del ..\..\..\..\..\temp\csr\ta_CDLTASUKIGAP.obj + -del ..\..\..\..\..\temp\csr\ta_CDLTHRUSTING.obj + -del ..\..\..\..\..\temp\csr\ta_CDLTRISTAR.obj + -del ..\..\..\..\..\temp\csr\ta_CDLUNIQUE3RIVER.obj + -del ..\..\..\..\..\temp\csr\ta_CDLUPSIDEGAP2CROWS.obj + -del ..\..\..\..\..\temp\csr\ta_CDLXSIDEGAP3METHODS.obj + -del ..\..\..\..\..\temp\csr\ta_CEIL.obj + -del ..\..\..\..\..\temp\csr\ta_CMO.obj + -del ..\..\..\..\..\temp\csr\ta_CORREL.obj + -del ..\..\..\..\..\temp\csr\ta_COS.obj + -del ..\..\..\..\..\temp\csr\ta_COSH.obj + -del ..\..\..\..\..\temp\csr\ta_DEMA.obj + -del ..\..\..\..\..\temp\csr\ta_DIV.obj + -del ..\..\..\..\..\temp\csr\ta_DX.obj + -del ..\..\..\..\..\temp\csr\ta_EMA.obj + -del ..\..\..\..\..\temp\csr\ta_EXP.obj + -del ..\..\..\..\..\temp\csr\ta_FLOOR.obj + -del ..\..\..\..\..\temp\csr\ta_HT_DCPERIOD.obj + -del ..\..\..\..\..\temp\csr\ta_HT_DCPHASE.obj + -del ..\..\..\..\..\temp\csr\ta_HT_PHASOR.obj + -del ..\..\..\..\..\temp\csr\ta_HT_SINE.obj + -del ..\..\..\..\..\temp\csr\ta_HT_TRENDLINE.obj + -del ..\..\..\..\..\temp\csr\ta_HT_TRENDMODE.obj + -del ..\..\..\..\..\temp\csr\ta_KAMA.obj + -del ..\..\..\..\..\temp\csr\ta_LINEARREG.obj + -del ..\..\..\..\..\temp\csr\ta_LINEARREG_ANGLE.obj + -del ..\..\..\..\..\temp\csr\ta_LINEARREG_INTERCEPT.obj + -del ..\..\..\..\..\temp\csr\ta_LINEARREG_SLOPE.obj + -del ..\..\..\..\..\temp\csr\ta_LN.obj + -del ..\..\..\..\..\temp\csr\ta_LOG10.obj + -del ..\..\..\..\..\temp\csr\ta_MA.obj + -del ..\..\..\..\..\temp\csr\ta_MACD.obj + -del ..\..\..\..\..\temp\csr\ta_MACDEXT.obj + -del ..\..\..\..\..\temp\csr\ta_MACDFIX.obj + -del ..\..\..\..\..\temp\csr\ta_MAMA.obj + -del ..\..\..\..\..\temp\csr\ta_MAVP.obj + -del ..\..\..\..\..\temp\csr\ta_MAX.obj + -del ..\..\..\..\..\temp\csr\ta_MAXINDEX.obj + -del ..\..\..\..\..\temp\csr\ta_MEDPRICE.obj + -del ..\..\..\..\..\temp\csr\ta_MFI.obj + -del ..\..\..\..\..\temp\csr\ta_MIDPOINT.obj + -del ..\..\..\..\..\temp\csr\ta_MIDPRICE.obj + -del ..\..\..\..\..\temp\csr\ta_MIN.obj + -del ..\..\..\..\..\temp\csr\ta_MININDEX.obj + -del ..\..\..\..\..\temp\csr\ta_MINMAX.obj + -del ..\..\..\..\..\temp\csr\ta_MINMAXINDEX.obj + -del ..\..\..\..\..\temp\csr\ta_MINUS_DI.obj + -del ..\..\..\..\..\temp\csr\ta_MINUS_DM.obj + -del ..\..\..\..\..\temp\csr\ta_MOM.obj + -del ..\..\..\..\..\temp\csr\ta_MULT.obj + -del ..\..\..\..\..\temp\csr\ta_NATR.obj + -del ..\..\..\..\..\temp\csr\ta_OBV.obj + -del ..\..\..\..\..\temp\csr\ta_PLUS_DI.obj + -del ..\..\..\..\..\temp\csr\ta_PLUS_DM.obj + -del ..\..\..\..\..\temp\csr\ta_PPO.obj + -del ..\..\..\..\..\temp\csr\ta_ROC.obj + -del ..\..\..\..\..\temp\csr\ta_ROCP.obj + -del ..\..\..\..\..\temp\csr\ta_ROCR.obj + -del ..\..\..\..\..\temp\csr\ta_ROCR100.obj + -del ..\..\..\..\..\temp\csr\ta_RSI.obj + -del ..\..\..\..\..\temp\csr\ta_SAR.obj + -del ..\..\..\..\..\temp\csr\ta_SAREXT.obj + -del ..\..\..\..\..\temp\csr\ta_SIN.obj + -del ..\..\..\..\..\temp\csr\ta_SINH.obj + -del ..\..\..\..\..\temp\csr\ta_SMA.obj + -del ..\..\..\..\..\temp\csr\ta_SQRT.obj + -del ..\..\..\..\..\temp\csr\ta_STDDEV.obj + -del ..\..\..\..\..\temp\csr\ta_STOCH.obj + -del ..\..\..\..\..\temp\csr\ta_STOCHF.obj + -del ..\..\..\..\..\temp\csr\ta_STOCHRSI.obj + -del ..\..\..\..\..\temp\csr\ta_SUB.obj + -del ..\..\..\..\..\temp\csr\ta_SUM.obj + -del ..\..\..\..\..\temp\csr\ta_T3.obj + -del ..\..\..\..\..\temp\csr\ta_TAN.obj + -del ..\..\..\..\..\temp\csr\ta_TANH.obj + -del ..\..\..\..\..\temp\csr\ta_TEMA.obj + -del ..\..\..\..\..\temp\csr\ta_TRANGE.obj + -del ..\..\..\..\..\temp\csr\ta_TRIMA.obj + -del ..\..\..\..\..\temp\csr\ta_TRIX.obj + -del ..\..\..\..\..\temp\csr\ta_TSF.obj + -del ..\..\..\..\..\temp\csr\ta_TYPPRICE.obj + -del ..\..\..\..\..\temp\csr\ta_ULTOSC.obj + -del ..\..\..\..\..\temp\csr\ta_VAR.obj + -del ..\..\..\..\..\temp\csr\ta_WCLPRICE.obj + -del ..\..\..\..\..\temp\csr\ta_WILLR.obj + -del ..\..\..\..\..\temp\csr\ta_WMA.obj + -del $(TARGET) + -del ../../../../../bin/*.map + -del ../../../../../bin/*._xe + -del ../../../../../bin/*.tds + -del ../../../../../bin/*.pdb + -del ../../../../../bin/*.pbo + -del ../../../../../bin/*.pbi + -del ../../../../../bin/*.pbt + -del ../../../../../temp/csr/*.pch + -del ../../../../../temp/csr/*.idb + -del ../../../../../temp/csr/ta_func/*.pch + -del ../../../../../temp/csr/ta_func/*.idb + -del ../../../../../temp/csr/ta_func/*.obj + +####### Compile + +..\..\..\..\..\temp\csr\ta_utility.obj: ..\..\..\..\..\src\ta_func\ta_utility.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_utility.obj ..\..\..\..\..\src\ta_func\ta_utility.c + +..\..\..\..\..\temp\csr\ta_ACOS.obj: ..\..\..\..\..\src\ta_func\ta_ACOS.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_ACOS.obj ..\..\..\..\..\src\ta_func\ta_ACOS.c + +..\..\..\..\..\temp\csr\ta_AD.obj: ..\..\..\..\..\src\ta_func\ta_AD.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_AD.obj ..\..\..\..\..\src\ta_func\ta_AD.c + +..\..\..\..\..\temp\csr\ta_ADD.obj: ..\..\..\..\..\src\ta_func\ta_ADD.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_ADD.obj ..\..\..\..\..\src\ta_func\ta_ADD.c + +..\..\..\..\..\temp\csr\ta_ADOSC.obj: ..\..\..\..\..\src\ta_func\ta_ADOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_ADOSC.obj ..\..\..\..\..\src\ta_func\ta_ADOSC.c + +..\..\..\..\..\temp\csr\ta_ADX.obj: ..\..\..\..\..\src\ta_func\ta_ADX.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_ADX.obj ..\..\..\..\..\src\ta_func\ta_ADX.c + +..\..\..\..\..\temp\csr\ta_ADXR.obj: ..\..\..\..\..\src\ta_func\ta_ADXR.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_ADXR.obj ..\..\..\..\..\src\ta_func\ta_ADXR.c + +..\..\..\..\..\temp\csr\ta_APO.obj: ..\..\..\..\..\src\ta_func\ta_APO.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_APO.obj ..\..\..\..\..\src\ta_func\ta_APO.c + +..\..\..\..\..\temp\csr\ta_AROON.obj: ..\..\..\..\..\src\ta_func\ta_AROON.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_AROON.obj ..\..\..\..\..\src\ta_func\ta_AROON.c + +..\..\..\..\..\temp\csr\ta_AROONOSC.obj: ..\..\..\..\..\src\ta_func\ta_AROONOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_AROONOSC.obj ..\..\..\..\..\src\ta_func\ta_AROONOSC.c + +..\..\..\..\..\temp\csr\ta_ASIN.obj: ..\..\..\..\..\src\ta_func\ta_ASIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_ASIN.obj ..\..\..\..\..\src\ta_func\ta_ASIN.c + +..\..\..\..\..\temp\csr\ta_ATAN.obj: ..\..\..\..\..\src\ta_func\ta_ATAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_ATAN.obj ..\..\..\..\..\src\ta_func\ta_ATAN.c + +..\..\..\..\..\temp\csr\ta_ATR.obj: ..\..\..\..\..\src\ta_func\ta_ATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_ATR.obj ..\..\..\..\..\src\ta_func\ta_ATR.c + +..\..\..\..\..\temp\csr\ta_AVGPRICE.obj: ..\..\..\..\..\src\ta_func\ta_AVGPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_AVGPRICE.obj ..\..\..\..\..\src\ta_func\ta_AVGPRICE.c + +..\..\..\..\..\temp\csr\ta_BBANDS.obj: ..\..\..\..\..\src\ta_func\ta_BBANDS.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_BBANDS.obj ..\..\..\..\..\src\ta_func\ta_BBANDS.c + +..\..\..\..\..\temp\csr\ta_BETA.obj: ..\..\..\..\..\src\ta_func\ta_BETA.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_BETA.obj ..\..\..\..\..\src\ta_func\ta_BETA.c + +..\..\..\..\..\temp\csr\ta_BOP.obj: ..\..\..\..\..\src\ta_func\ta_BOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_BOP.obj ..\..\..\..\..\src\ta_func\ta_BOP.c + +..\..\..\..\..\temp\csr\ta_CCI.obj: ..\..\..\..\..\src\ta_func\ta_CCI.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CCI.obj ..\..\..\..\..\src\ta_func\ta_CCI.c + +..\..\..\..\..\temp\csr\ta_CDL2CROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDL2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CDL2CROWS.obj ..\..\..\..\..\src\ta_func\ta_CDL2CROWS.c + +..\..\..\..\..\temp\csr\ta_CDL3BLACKCROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDL3BLACKCROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CDL3BLACKCROWS.obj ..\..\..\..\..\src\ta_func\ta_CDL3BLACKCROWS.c + +..\..\..\..\..\temp\csr\ta_CDL3INSIDE.obj: ..\..\..\..\..\src\ta_func\ta_CDL3INSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CDL3INSIDE.obj ..\..\..\..\..\src\ta_func\ta_CDL3INSIDE.c + +..\..\..\..\..\temp\csr\ta_CDL3LINESTRIKE.obj: ..\..\..\..\..\src\ta_func\ta_CDL3LINESTRIKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CDL3LINESTRIKE.obj ..\..\..\..\..\src\ta_func\ta_CDL3LINESTRIKE.c + +..\..\..\..\..\temp\csr\ta_CDL3OUTSIDE.obj: ..\..\..\..\..\src\ta_func\ta_CDL3OUTSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CDL3OUTSIDE.obj ..\..\..\..\..\src\ta_func\ta_CDL3OUTSIDE.c + +..\..\..\..\..\temp\csr\ta_CDL3STARSINSOUTH.obj: ..\..\..\..\..\src\ta_func\ta_CDL3STARSINSOUTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CDL3STARSINSOUTH.obj ..\..\..\..\..\src\ta_func\ta_CDL3STARSINSOUTH.c + +..\..\..\..\..\temp\csr\ta_CDL3WHITESOLDIERS.obj: ..\..\..\..\..\src\ta_func\ta_CDL3WHITESOLDIERS.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CDL3WHITESOLDIERS.obj ..\..\..\..\..\src\ta_func\ta_CDL3WHITESOLDIERS.c + +..\..\..\..\..\temp\csr\ta_CDLABANDONEDBABY.obj: ..\..\..\..\..\src\ta_func\ta_CDLABANDONEDBABY.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CDLABANDONEDBABY.obj ..\..\..\..\..\src\ta_func\ta_CDLABANDONEDBABY.c + +..\..\..\..\..\temp\csr\ta_CDLADVANCEBLOCK.obj: ..\..\..\..\..\src\ta_func\ta_CDLADVANCEBLOCK.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CDLADVANCEBLOCK.obj ..\..\..\..\..\src\ta_func\ta_CDLADVANCEBLOCK.c + +..\..\..\..\..\temp\csr\ta_CDLBELTHOLD.obj: ..\..\..\..\..\src\ta_func\ta_CDLBELTHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CDLBELTHOLD.obj ..\..\..\..\..\src\ta_func\ta_CDLBELTHOLD.c + +..\..\..\..\..\temp\csr\ta_CDLBREAKAWAY.obj: ..\..\..\..\..\src\ta_func\ta_CDLBREAKAWAY.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CDLBREAKAWAY.obj ..\..\..\..\..\src\ta_func\ta_CDLBREAKAWAY.c + +..\..\..\..\..\temp\csr\ta_CDLCLOSINGMARUBOZU.obj: ..\..\..\..\..\src\ta_func\ta_CDLCLOSINGMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CDLCLOSINGMARUBOZU.obj ..\..\..\..\..\src\ta_func\ta_CDLCLOSINGMARUBOZU.c + +..\..\..\..\..\temp\csr\ta_CDLCONCEALBABYSWALL.obj: ..\..\..\..\..\src\ta_func\ta_CDLCONCEALBABYSWALL.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CDLCONCEALBABYSWALL.obj ..\..\..\..\..\src\ta_func\ta_CDLCONCEALBABYSWALL.c + +..\..\..\..\..\temp\csr\ta_CDLCOUNTERATTACK.obj: ..\..\..\..\..\src\ta_func\ta_CDLCOUNTERATTACK.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CDLCOUNTERATTACK.obj ..\..\..\..\..\src\ta_func\ta_CDLCOUNTERATTACK.c + +..\..\..\..\..\temp\csr\ta_CDLDARKCLOUDCOVER.obj: ..\..\..\..\..\src\ta_func\ta_CDLDARKCLOUDCOVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CDLDARKCLOUDCOVER.obj ..\..\..\..\..\src\ta_func\ta_CDLDARKCLOUDCOVER.c + +..\..\..\..\..\temp\csr\ta_CDLDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CDLDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLDOJI.c + +..\..\..\..\..\temp\csr\ta_CDLDOJISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CDLDOJISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLDOJISTAR.c + +..\..\..\..\..\temp\csr\ta_CDLDRAGONFLYDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLDRAGONFLYDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CDLDRAGONFLYDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLDRAGONFLYDOJI.c + +..\..\..\..\..\temp\csr\ta_CDLENGULFING.obj: ..\..\..\..\..\src\ta_func\ta_CDLENGULFING.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CDLENGULFING.obj ..\..\..\..\..\src\ta_func\ta_CDLENGULFING.c + +..\..\..\..\..\temp\csr\ta_CDLEVENINGDOJISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLEVENINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CDLEVENINGDOJISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLEVENINGDOJISTAR.c + +..\..\..\..\..\temp\csr\ta_CDLEVENINGSTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLEVENINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CDLEVENINGSTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLEVENINGSTAR.c + +..\..\..\..\..\temp\csr\ta_CDLGAPSIDESIDEWHITE.obj: ..\..\..\..\..\src\ta_func\ta_CDLGAPSIDESIDEWHITE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CDLGAPSIDESIDEWHITE.obj ..\..\..\..\..\src\ta_func\ta_CDLGAPSIDESIDEWHITE.c + +..\..\..\..\..\temp\csr\ta_CDLGRAVESTONEDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLGRAVESTONEDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CDLGRAVESTONEDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLGRAVESTONEDOJI.c + +..\..\..\..\..\temp\csr\ta_CDLHAMMER.obj: ..\..\..\..\..\src\ta_func\ta_CDLHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CDLHAMMER.obj ..\..\..\..\..\src\ta_func\ta_CDLHAMMER.c + +..\..\..\..\..\temp\csr\ta_CDLHANGINGMAN.obj: ..\..\..\..\..\src\ta_func\ta_CDLHANGINGMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CDLHANGINGMAN.obj ..\..\..\..\..\src\ta_func\ta_CDLHANGINGMAN.c + +..\..\..\..\..\temp\csr\ta_CDLHARAMI.obj: ..\..\..\..\..\src\ta_func\ta_CDLHARAMI.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CDLHARAMI.obj ..\..\..\..\..\src\ta_func\ta_CDLHARAMI.c + +..\..\..\..\..\temp\csr\ta_CDLHARAMICROSS.obj: ..\..\..\..\..\src\ta_func\ta_CDLHARAMICROSS.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CDLHARAMICROSS.obj ..\..\..\..\..\src\ta_func\ta_CDLHARAMICROSS.c + +..\..\..\..\..\temp\csr\ta_CDLHIGHWAVE.obj: ..\..\..\..\..\src\ta_func\ta_CDLHIGHWAVE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CDLHIGHWAVE.obj ..\..\..\..\..\src\ta_func\ta_CDLHIGHWAVE.c + +..\..\..\..\..\temp\csr\ta_CDLHIKKAKE.obj: ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CDLHIKKAKE.obj ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKE.c + +..\..\..\..\..\temp\csr\ta_CDLHIKKAKEMOD.obj: ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKEMOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CDLHIKKAKEMOD.obj ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKEMOD.c + +..\..\..\..\..\temp\csr\ta_CDLHOMINGPIGEON.obj: ..\..\..\..\..\src\ta_func\ta_CDLHOMINGPIGEON.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CDLHOMINGPIGEON.obj ..\..\..\..\..\src\ta_func\ta_CDLHOMINGPIGEON.c + +..\..\..\..\..\temp\csr\ta_CDLIDENTICAL3CROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDLIDENTICAL3CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CDLIDENTICAL3CROWS.obj ..\..\..\..\..\src\ta_func\ta_CDLIDENTICAL3CROWS.c + +..\..\..\..\..\temp\csr\ta_CDLINNECK.obj: ..\..\..\..\..\src\ta_func\ta_CDLINNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CDLINNECK.obj ..\..\..\..\..\src\ta_func\ta_CDLINNECK.c + +..\..\..\..\..\temp\csr\ta_CDLINVERTEDHAMMER.obj: ..\..\..\..\..\src\ta_func\ta_CDLINVERTEDHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CDLINVERTEDHAMMER.obj ..\..\..\..\..\src\ta_func\ta_CDLINVERTEDHAMMER.c + +..\..\..\..\..\temp\csr\ta_CDLKICKING.obj: ..\..\..\..\..\src\ta_func\ta_CDLKICKING.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CDLKICKING.obj ..\..\..\..\..\src\ta_func\ta_CDLKICKING.c + +..\..\..\..\..\temp\csr\ta_CDLKICKINGBYLENGTH.obj: ..\..\..\..\..\src\ta_func\ta_CDLKICKINGBYLENGTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CDLKICKINGBYLENGTH.obj ..\..\..\..\..\src\ta_func\ta_CDLKICKINGBYLENGTH.c + +..\..\..\..\..\temp\csr\ta_CDLLADDERBOTTOM.obj: ..\..\..\..\..\src\ta_func\ta_CDLLADDERBOTTOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CDLLADDERBOTTOM.obj ..\..\..\..\..\src\ta_func\ta_CDLLADDERBOTTOM.c + +..\..\..\..\..\temp\csr\ta_CDLLONGLEGGEDDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLLONGLEGGEDDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CDLLONGLEGGEDDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLLONGLEGGEDDOJI.c + +..\..\..\..\..\temp\csr\ta_CDLLONGLINE.obj: ..\..\..\..\..\src\ta_func\ta_CDLLONGLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CDLLONGLINE.obj ..\..\..\..\..\src\ta_func\ta_CDLLONGLINE.c + +..\..\..\..\..\temp\csr\ta_CDLMARUBOZU.obj: ..\..\..\..\..\src\ta_func\ta_CDLMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CDLMARUBOZU.obj ..\..\..\..\..\src\ta_func\ta_CDLMARUBOZU.c + +..\..\..\..\..\temp\csr\ta_CDLMATCHINGLOW.obj: ..\..\..\..\..\src\ta_func\ta_CDLMATCHINGLOW.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CDLMATCHINGLOW.obj ..\..\..\..\..\src\ta_func\ta_CDLMATCHINGLOW.c + +..\..\..\..\..\temp\csr\ta_CDLMATHOLD.obj: ..\..\..\..\..\src\ta_func\ta_CDLMATHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CDLMATHOLD.obj ..\..\..\..\..\src\ta_func\ta_CDLMATHOLD.c + +..\..\..\..\..\temp\csr\ta_CDLMORNINGDOJISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLMORNINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CDLMORNINGDOJISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLMORNINGDOJISTAR.c + +..\..\..\..\..\temp\csr\ta_CDLMORNINGSTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLMORNINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CDLMORNINGSTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLMORNINGSTAR.c + +..\..\..\..\..\temp\csr\ta_CDLONNECK.obj: ..\..\..\..\..\src\ta_func\ta_CDLONNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CDLONNECK.obj ..\..\..\..\..\src\ta_func\ta_CDLONNECK.c + +..\..\..\..\..\temp\csr\ta_CDLPIERCING.obj: ..\..\..\..\..\src\ta_func\ta_CDLPIERCING.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CDLPIERCING.obj ..\..\..\..\..\src\ta_func\ta_CDLPIERCING.c + +..\..\..\..\..\temp\csr\ta_CDLRICKSHAWMAN.obj: ..\..\..\..\..\src\ta_func\ta_CDLRICKSHAWMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CDLRICKSHAWMAN.obj ..\..\..\..\..\src\ta_func\ta_CDLRICKSHAWMAN.c + +..\..\..\..\..\temp\csr\ta_CDLRISEFALL3METHODS.obj: ..\..\..\..\..\src\ta_func\ta_CDLRISEFALL3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CDLRISEFALL3METHODS.obj ..\..\..\..\..\src\ta_func\ta_CDLRISEFALL3METHODS.c + +..\..\..\..\..\temp\csr\ta_CDLSEPARATINGLINES.obj: ..\..\..\..\..\src\ta_func\ta_CDLSEPARATINGLINES.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CDLSEPARATINGLINES.obj ..\..\..\..\..\src\ta_func\ta_CDLSEPARATINGLINES.c + +..\..\..\..\..\temp\csr\ta_CDLSHOOTINGSTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLSHOOTINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CDLSHOOTINGSTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLSHOOTINGSTAR.c + +..\..\..\..\..\temp\csr\ta_CDLSHORTLINE.obj: ..\..\..\..\..\src\ta_func\ta_CDLSHORTLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CDLSHORTLINE.obj ..\..\..\..\..\src\ta_func\ta_CDLSHORTLINE.c + +..\..\..\..\..\temp\csr\ta_CDLSPINNINGTOP.obj: ..\..\..\..\..\src\ta_func\ta_CDLSPINNINGTOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CDLSPINNINGTOP.obj ..\..\..\..\..\src\ta_func\ta_CDLSPINNINGTOP.c + +..\..\..\..\..\temp\csr\ta_CDLSTALLEDPATTERN.obj: ..\..\..\..\..\src\ta_func\ta_CDLSTALLEDPATTERN.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CDLSTALLEDPATTERN.obj ..\..\..\..\..\src\ta_func\ta_CDLSTALLEDPATTERN.c + +..\..\..\..\..\temp\csr\ta_CDLSTICKSANDWICH.obj: ..\..\..\..\..\src\ta_func\ta_CDLSTICKSANDWICH.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CDLSTICKSANDWICH.obj ..\..\..\..\..\src\ta_func\ta_CDLSTICKSANDWICH.c + +..\..\..\..\..\temp\csr\ta_CDLTAKURI.obj: ..\..\..\..\..\src\ta_func\ta_CDLTAKURI.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CDLTAKURI.obj ..\..\..\..\..\src\ta_func\ta_CDLTAKURI.c + +..\..\..\..\..\temp\csr\ta_CDLTASUKIGAP.obj: ..\..\..\..\..\src\ta_func\ta_CDLTASUKIGAP.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CDLTASUKIGAP.obj ..\..\..\..\..\src\ta_func\ta_CDLTASUKIGAP.c + +..\..\..\..\..\temp\csr\ta_CDLTHRUSTING.obj: ..\..\..\..\..\src\ta_func\ta_CDLTHRUSTING.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CDLTHRUSTING.obj ..\..\..\..\..\src\ta_func\ta_CDLTHRUSTING.c + +..\..\..\..\..\temp\csr\ta_CDLTRISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLTRISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CDLTRISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLTRISTAR.c + +..\..\..\..\..\temp\csr\ta_CDLUNIQUE3RIVER.obj: ..\..\..\..\..\src\ta_func\ta_CDLUNIQUE3RIVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CDLUNIQUE3RIVER.obj ..\..\..\..\..\src\ta_func\ta_CDLUNIQUE3RIVER.c + +..\..\..\..\..\temp\csr\ta_CDLUPSIDEGAP2CROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDLUPSIDEGAP2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CDLUPSIDEGAP2CROWS.obj ..\..\..\..\..\src\ta_func\ta_CDLUPSIDEGAP2CROWS.c + +..\..\..\..\..\temp\csr\ta_CDLXSIDEGAP3METHODS.obj: ..\..\..\..\..\src\ta_func\ta_CDLXSIDEGAP3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CDLXSIDEGAP3METHODS.obj ..\..\..\..\..\src\ta_func\ta_CDLXSIDEGAP3METHODS.c + +..\..\..\..\..\temp\csr\ta_CEIL.obj: ..\..\..\..\..\src\ta_func\ta_CEIL.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CEIL.obj ..\..\..\..\..\src\ta_func\ta_CEIL.c + +..\..\..\..\..\temp\csr\ta_CMO.obj: ..\..\..\..\..\src\ta_func\ta_CMO.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CMO.obj ..\..\..\..\..\src\ta_func\ta_CMO.c + +..\..\..\..\..\temp\csr\ta_CORREL.obj: ..\..\..\..\..\src\ta_func\ta_CORREL.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CORREL.obj ..\..\..\..\..\src\ta_func\ta_CORREL.c + +..\..\..\..\..\temp\csr\ta_COS.obj: ..\..\..\..\..\src\ta_func\ta_COS.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_COS.obj ..\..\..\..\..\src\ta_func\ta_COS.c + +..\..\..\..\..\temp\csr\ta_COSH.obj: ..\..\..\..\..\src\ta_func\ta_COSH.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_COSH.obj ..\..\..\..\..\src\ta_func\ta_COSH.c + +..\..\..\..\..\temp\csr\ta_DEMA.obj: ..\..\..\..\..\src\ta_func\ta_DEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_DEMA.obj ..\..\..\..\..\src\ta_func\ta_DEMA.c + +..\..\..\..\..\temp\csr\ta_DIV.obj: ..\..\..\..\..\src\ta_func\ta_DIV.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_DIV.obj ..\..\..\..\..\src\ta_func\ta_DIV.c + +..\..\..\..\..\temp\csr\ta_DX.obj: ..\..\..\..\..\src\ta_func\ta_DX.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_DX.obj ..\..\..\..\..\src\ta_func\ta_DX.c + +..\..\..\..\..\temp\csr\ta_EMA.obj: ..\..\..\..\..\src\ta_func\ta_EMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_EMA.obj ..\..\..\..\..\src\ta_func\ta_EMA.c + +..\..\..\..\..\temp\csr\ta_EXP.obj: ..\..\..\..\..\src\ta_func\ta_EXP.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_EXP.obj ..\..\..\..\..\src\ta_func\ta_EXP.c + +..\..\..\..\..\temp\csr\ta_FLOOR.obj: ..\..\..\..\..\src\ta_func\ta_FLOOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_FLOOR.obj ..\..\..\..\..\src\ta_func\ta_FLOOR.c + +..\..\..\..\..\temp\csr\ta_HT_DCPERIOD.obj: ..\..\..\..\..\src\ta_func\ta_HT_DCPERIOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_HT_DCPERIOD.obj ..\..\..\..\..\src\ta_func\ta_HT_DCPERIOD.c + +..\..\..\..\..\temp\csr\ta_HT_DCPHASE.obj: ..\..\..\..\..\src\ta_func\ta_HT_DCPHASE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_HT_DCPHASE.obj ..\..\..\..\..\src\ta_func\ta_HT_DCPHASE.c + +..\..\..\..\..\temp\csr\ta_HT_PHASOR.obj: ..\..\..\..\..\src\ta_func\ta_HT_PHASOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_HT_PHASOR.obj ..\..\..\..\..\src\ta_func\ta_HT_PHASOR.c + +..\..\..\..\..\temp\csr\ta_HT_SINE.obj: ..\..\..\..\..\src\ta_func\ta_HT_SINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_HT_SINE.obj ..\..\..\..\..\src\ta_func\ta_HT_SINE.c + +..\..\..\..\..\temp\csr\ta_HT_TRENDLINE.obj: ..\..\..\..\..\src\ta_func\ta_HT_TRENDLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_HT_TRENDLINE.obj ..\..\..\..\..\src\ta_func\ta_HT_TRENDLINE.c + +..\..\..\..\..\temp\csr\ta_HT_TRENDMODE.obj: ..\..\..\..\..\src\ta_func\ta_HT_TRENDMODE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_HT_TRENDMODE.obj ..\..\..\..\..\src\ta_func\ta_HT_TRENDMODE.c + +..\..\..\..\..\temp\csr\ta_KAMA.obj: ..\..\..\..\..\src\ta_func\ta_KAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_KAMA.obj ..\..\..\..\..\src\ta_func\ta_KAMA.c + +..\..\..\..\..\temp\csr\ta_LINEARREG.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_LINEARREG.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG.c + +..\..\..\..\..\temp\csr\ta_LINEARREG_ANGLE.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG_ANGLE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_LINEARREG_ANGLE.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG_ANGLE.c + +..\..\..\..\..\temp\csr\ta_LINEARREG_INTERCEPT.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG_INTERCEPT.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_LINEARREG_INTERCEPT.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG_INTERCEPT.c + +..\..\..\..\..\temp\csr\ta_LINEARREG_SLOPE.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG_SLOPE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_LINEARREG_SLOPE.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG_SLOPE.c + +..\..\..\..\..\temp\csr\ta_LN.obj: ..\..\..\..\..\src\ta_func\ta_LN.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_LN.obj ..\..\..\..\..\src\ta_func\ta_LN.c + +..\..\..\..\..\temp\csr\ta_LOG10.obj: ..\..\..\..\..\src\ta_func\ta_LOG10.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_LOG10.obj ..\..\..\..\..\src\ta_func\ta_LOG10.c + +..\..\..\..\..\temp\csr\ta_MA.obj: ..\..\..\..\..\src\ta_func\ta_MA.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_MA.obj ..\..\..\..\..\src\ta_func\ta_MA.c + +..\..\..\..\..\temp\csr\ta_MACD.obj: ..\..\..\..\..\src\ta_func\ta_MACD.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_MACD.obj ..\..\..\..\..\src\ta_func\ta_MACD.c + +..\..\..\..\..\temp\csr\ta_MACDEXT.obj: ..\..\..\..\..\src\ta_func\ta_MACDEXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_MACDEXT.obj ..\..\..\..\..\src\ta_func\ta_MACDEXT.c + +..\..\..\..\..\temp\csr\ta_MACDFIX.obj: ..\..\..\..\..\src\ta_func\ta_MACDFIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_MACDFIX.obj ..\..\..\..\..\src\ta_func\ta_MACDFIX.c + +..\..\..\..\..\temp\csr\ta_MAMA.obj: ..\..\..\..\..\src\ta_func\ta_MAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_MAMA.obj ..\..\..\..\..\src\ta_func\ta_MAMA.c + +..\..\..\..\..\temp\csr\ta_MAVP.obj: ..\..\..\..\..\src\ta_func\ta_MAVP.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_MAVP.obj ..\..\..\..\..\src\ta_func\ta_MAVP.c + +..\..\..\..\..\temp\csr\ta_MAX.obj: ..\..\..\..\..\src\ta_func\ta_MAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_MAX.obj ..\..\..\..\..\src\ta_func\ta_MAX.c + +..\..\..\..\..\temp\csr\ta_MAXINDEX.obj: ..\..\..\..\..\src\ta_func\ta_MAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_MAXINDEX.obj ..\..\..\..\..\src\ta_func\ta_MAXINDEX.c + +..\..\..\..\..\temp\csr\ta_MEDPRICE.obj: ..\..\..\..\..\src\ta_func\ta_MEDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_MEDPRICE.obj ..\..\..\..\..\src\ta_func\ta_MEDPRICE.c + +..\..\..\..\..\temp\csr\ta_MFI.obj: ..\..\..\..\..\src\ta_func\ta_MFI.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_MFI.obj ..\..\..\..\..\src\ta_func\ta_MFI.c + +..\..\..\..\..\temp\csr\ta_MIDPOINT.obj: ..\..\..\..\..\src\ta_func\ta_MIDPOINT.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_MIDPOINT.obj ..\..\..\..\..\src\ta_func\ta_MIDPOINT.c + +..\..\..\..\..\temp\csr\ta_MIDPRICE.obj: ..\..\..\..\..\src\ta_func\ta_MIDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_MIDPRICE.obj ..\..\..\..\..\src\ta_func\ta_MIDPRICE.c + +..\..\..\..\..\temp\csr\ta_MIN.obj: ..\..\..\..\..\src\ta_func\ta_MIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_MIN.obj ..\..\..\..\..\src\ta_func\ta_MIN.c + +..\..\..\..\..\temp\csr\ta_MININDEX.obj: ..\..\..\..\..\src\ta_func\ta_MININDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_MININDEX.obj ..\..\..\..\..\src\ta_func\ta_MININDEX.c + +..\..\..\..\..\temp\csr\ta_MINMAX.obj: ..\..\..\..\..\src\ta_func\ta_MINMAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_MINMAX.obj ..\..\..\..\..\src\ta_func\ta_MINMAX.c + +..\..\..\..\..\temp\csr\ta_MINMAXINDEX.obj: ..\..\..\..\..\src\ta_func\ta_MINMAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_MINMAXINDEX.obj ..\..\..\..\..\src\ta_func\ta_MINMAXINDEX.c + +..\..\..\..\..\temp\csr\ta_MINUS_DI.obj: ..\..\..\..\..\src\ta_func\ta_MINUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_MINUS_DI.obj ..\..\..\..\..\src\ta_func\ta_MINUS_DI.c + +..\..\..\..\..\temp\csr\ta_MINUS_DM.obj: ..\..\..\..\..\src\ta_func\ta_MINUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_MINUS_DM.obj ..\..\..\..\..\src\ta_func\ta_MINUS_DM.c + +..\..\..\..\..\temp\csr\ta_MOM.obj: ..\..\..\..\..\src\ta_func\ta_MOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_MOM.obj ..\..\..\..\..\src\ta_func\ta_MOM.c + +..\..\..\..\..\temp\csr\ta_MULT.obj: ..\..\..\..\..\src\ta_func\ta_MULT.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_MULT.obj ..\..\..\..\..\src\ta_func\ta_MULT.c + +..\..\..\..\..\temp\csr\ta_NATR.obj: ..\..\..\..\..\src\ta_func\ta_NATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_NATR.obj ..\..\..\..\..\src\ta_func\ta_NATR.c + +..\..\..\..\..\temp\csr\ta_OBV.obj: ..\..\..\..\..\src\ta_func\ta_OBV.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_OBV.obj ..\..\..\..\..\src\ta_func\ta_OBV.c + +..\..\..\..\..\temp\csr\ta_PLUS_DI.obj: ..\..\..\..\..\src\ta_func\ta_PLUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_PLUS_DI.obj ..\..\..\..\..\src\ta_func\ta_PLUS_DI.c + +..\..\..\..\..\temp\csr\ta_PLUS_DM.obj: ..\..\..\..\..\src\ta_func\ta_PLUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_PLUS_DM.obj ..\..\..\..\..\src\ta_func\ta_PLUS_DM.c + +..\..\..\..\..\temp\csr\ta_PPO.obj: ..\..\..\..\..\src\ta_func\ta_PPO.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_PPO.obj ..\..\..\..\..\src\ta_func\ta_PPO.c + +..\..\..\..\..\temp\csr\ta_ROC.obj: ..\..\..\..\..\src\ta_func\ta_ROC.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_ROC.obj ..\..\..\..\..\src\ta_func\ta_ROC.c + +..\..\..\..\..\temp\csr\ta_ROCP.obj: ..\..\..\..\..\src\ta_func\ta_ROCP.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_ROCP.obj ..\..\..\..\..\src\ta_func\ta_ROCP.c + +..\..\..\..\..\temp\csr\ta_ROCR.obj: ..\..\..\..\..\src\ta_func\ta_ROCR.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_ROCR.obj ..\..\..\..\..\src\ta_func\ta_ROCR.c + +..\..\..\..\..\temp\csr\ta_ROCR100.obj: ..\..\..\..\..\src\ta_func\ta_ROCR100.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_ROCR100.obj ..\..\..\..\..\src\ta_func\ta_ROCR100.c + +..\..\..\..\..\temp\csr\ta_RSI.obj: ..\..\..\..\..\src\ta_func\ta_RSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_RSI.obj ..\..\..\..\..\src\ta_func\ta_RSI.c + +..\..\..\..\..\temp\csr\ta_SAR.obj: ..\..\..\..\..\src\ta_func\ta_SAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_SAR.obj ..\..\..\..\..\src\ta_func\ta_SAR.c + +..\..\..\..\..\temp\csr\ta_SAREXT.obj: ..\..\..\..\..\src\ta_func\ta_SAREXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_SAREXT.obj ..\..\..\..\..\src\ta_func\ta_SAREXT.c + +..\..\..\..\..\temp\csr\ta_SIN.obj: ..\..\..\..\..\src\ta_func\ta_SIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_SIN.obj ..\..\..\..\..\src\ta_func\ta_SIN.c + +..\..\..\..\..\temp\csr\ta_SINH.obj: ..\..\..\..\..\src\ta_func\ta_SINH.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_SINH.obj ..\..\..\..\..\src\ta_func\ta_SINH.c + +..\..\..\..\..\temp\csr\ta_SMA.obj: ..\..\..\..\..\src\ta_func\ta_SMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_SMA.obj ..\..\..\..\..\src\ta_func\ta_SMA.c + +..\..\..\..\..\temp\csr\ta_SQRT.obj: ..\..\..\..\..\src\ta_func\ta_SQRT.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_SQRT.obj ..\..\..\..\..\src\ta_func\ta_SQRT.c + +..\..\..\..\..\temp\csr\ta_STDDEV.obj: ..\..\..\..\..\src\ta_func\ta_STDDEV.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_STDDEV.obj ..\..\..\..\..\src\ta_func\ta_STDDEV.c + +..\..\..\..\..\temp\csr\ta_STOCH.obj: ..\..\..\..\..\src\ta_func\ta_STOCH.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_STOCH.obj ..\..\..\..\..\src\ta_func\ta_STOCH.c + +..\..\..\..\..\temp\csr\ta_STOCHF.obj: ..\..\..\..\..\src\ta_func\ta_STOCHF.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_STOCHF.obj ..\..\..\..\..\src\ta_func\ta_STOCHF.c + +..\..\..\..\..\temp\csr\ta_STOCHRSI.obj: ..\..\..\..\..\src\ta_func\ta_STOCHRSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_STOCHRSI.obj ..\..\..\..\..\src\ta_func\ta_STOCHRSI.c + +..\..\..\..\..\temp\csr\ta_SUB.obj: ..\..\..\..\..\src\ta_func\ta_SUB.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_SUB.obj ..\..\..\..\..\src\ta_func\ta_SUB.c + +..\..\..\..\..\temp\csr\ta_SUM.obj: ..\..\..\..\..\src\ta_func\ta_SUM.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_SUM.obj ..\..\..\..\..\src\ta_func\ta_SUM.c + +..\..\..\..\..\temp\csr\ta_T3.obj: ..\..\..\..\..\src\ta_func\ta_T3.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_T3.obj ..\..\..\..\..\src\ta_func\ta_T3.c + +..\..\..\..\..\temp\csr\ta_TAN.obj: ..\..\..\..\..\src\ta_func\ta_TAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_TAN.obj ..\..\..\..\..\src\ta_func\ta_TAN.c + +..\..\..\..\..\temp\csr\ta_TANH.obj: ..\..\..\..\..\src\ta_func\ta_TANH.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_TANH.obj ..\..\..\..\..\src\ta_func\ta_TANH.c + +..\..\..\..\..\temp\csr\ta_TEMA.obj: ..\..\..\..\..\src\ta_func\ta_TEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_TEMA.obj ..\..\..\..\..\src\ta_func\ta_TEMA.c + +..\..\..\..\..\temp\csr\ta_TRANGE.obj: ..\..\..\..\..\src\ta_func\ta_TRANGE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_TRANGE.obj ..\..\..\..\..\src\ta_func\ta_TRANGE.c + +..\..\..\..\..\temp\csr\ta_TRIMA.obj: ..\..\..\..\..\src\ta_func\ta_TRIMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_TRIMA.obj ..\..\..\..\..\src\ta_func\ta_TRIMA.c + +..\..\..\..\..\temp\csr\ta_TRIX.obj: ..\..\..\..\..\src\ta_func\ta_TRIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_TRIX.obj ..\..\..\..\..\src\ta_func\ta_TRIX.c + +..\..\..\..\..\temp\csr\ta_TSF.obj: ..\..\..\..\..\src\ta_func\ta_TSF.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_TSF.obj ..\..\..\..\..\src\ta_func\ta_TSF.c + +..\..\..\..\..\temp\csr\ta_TYPPRICE.obj: ..\..\..\..\..\src\ta_func\ta_TYPPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_TYPPRICE.obj ..\..\..\..\..\src\ta_func\ta_TYPPRICE.c + +..\..\..\..\..\temp\csr\ta_ULTOSC.obj: ..\..\..\..\..\src\ta_func\ta_ULTOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_ULTOSC.obj ..\..\..\..\..\src\ta_func\ta_ULTOSC.c + +..\..\..\..\..\temp\csr\ta_VAR.obj: ..\..\..\..\..\src\ta_func\ta_VAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_VAR.obj ..\..\..\..\..\src\ta_func\ta_VAR.c + +..\..\..\..\..\temp\csr\ta_WCLPRICE.obj: ..\..\..\..\..\src\ta_func\ta_WCLPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_WCLPRICE.obj ..\..\..\..\..\src\ta_func\ta_WCLPRICE.c + +..\..\..\..\..\temp\csr\ta_WILLR.obj: ..\..\..\..\..\src\ta_func\ta_WILLR.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_WILLR.obj ..\..\..\..\..\src\ta_func\ta_WILLR.c + +..\..\..\..\..\temp\csr\ta_WMA.obj: ..\..\..\..\..\src\ta_func\ta_WMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_WMA.obj ..\..\..\..\..\src\ta_func\ta_WMA.c + diff --git a/make/csr/win32/watcom/ta_libc/Makefile b/make/csr/win32/watcom/ta_libc/Makefile new file mode 100644 index 000000000..83f65853a --- /dev/null +++ b/make/csr/win32/watcom/ta_libc/Makefile @@ -0,0 +1,1219 @@ +############################################################################# +# Makefile for building ta_libc_csr +# Generated by tmake; +# Project: ta_libc/ta_libc +# Template: lib +############################################################################# + +####### Compiler, tools and options + +QTDIR = +CC = wcl386 +CXX = wcl386 +CFLAGS = -zq -w2 -ox -d=TA_SINGLE_THREAD -d=WIN32 -d=NO_DEBUG +CXXFLAGS= -zq -w2 -ox -d=TA_SINGLE_THREAD -d=WIN32 -d=NO_DEBUG +INCPATH = -i="..\..\..\..\..\src\ta_common" -i="..\..\..\..\..\include" -i="..\..\..\..\..\src\ta_abstract" -i="..\..\..\..\..\src\ta_abstract\tables" -i="..\..\..\..\..\src\ta_abstract\frames" -i="$(QTDIR)\include" +LIB = wlib -b -c -n -q -p=512 +MOC = moc + +ZIP = zip -r -9 + +####### Files + +HEADERS = +SOURCES = ..\..\..\..\..\src\ta_common\ta_global.c & + ..\..\..\..\..\src\ta_common\ta_retcode.c & + ..\..\..\..\..\src\ta_common\ta_version.c & + ..\..\..\..\..\src\ta_abstract\ta_abstract.c & + ..\..\..\..\..\src\ta_abstract\ta_def_ui.c & + ..\..\..\..\..\src\ta_abstract\ta_func_api.c & + ..\..\..\..\..\src\ta_abstract\ta_group_idx.c & + ..\..\..\..\..\src\ta_abstract\frames\ta_frame.c & + ..\..\..\..\..\src\ta_abstract\tables\table_a.c & + ..\..\..\..\..\src\ta_abstract\tables\table_b.c & + ..\..\..\..\..\src\ta_abstract\tables\table_c.c & + ..\..\..\..\..\src\ta_abstract\tables\table_d.c & + ..\..\..\..\..\src\ta_abstract\tables\table_e.c & + ..\..\..\..\..\src\ta_abstract\tables\table_f.c & + ..\..\..\..\..\src\ta_abstract\tables\table_g.c & + ..\..\..\..\..\src\ta_abstract\tables\table_h.c & + ..\..\..\..\..\src\ta_abstract\tables\table_i.c & + ..\..\..\..\..\src\ta_abstract\tables\table_j.c & + ..\..\..\..\..\src\ta_abstract\tables\table_k.c & + ..\..\..\..\..\src\ta_abstract\tables\table_l.c & + ..\..\..\..\..\src\ta_abstract\tables\table_m.c & + ..\..\..\..\..\src\ta_abstract\tables\table_n.c & + ..\..\..\..\..\src\ta_abstract\tables\table_o.c & + ..\..\..\..\..\src\ta_abstract\tables\table_p.c & + ..\..\..\..\..\src\ta_abstract\tables\table_q.c & + ..\..\..\..\..\src\ta_abstract\tables\table_r.c & + ..\..\..\..\..\src\ta_abstract\tables\table_s.c & + ..\..\..\..\..\src\ta_abstract\tables\table_t.c & + ..\..\..\..\..\src\ta_abstract\tables\table_u.c & + ..\..\..\..\..\src\ta_abstract\tables\table_v.c & + ..\..\..\..\..\src\ta_abstract\tables\table_w.c & + ..\..\..\..\..\src\ta_abstract\tables\table_x.c & + ..\..\..\..\..\src\ta_abstract\tables\table_y.c & + ..\..\..\..\..\src\ta_abstract\tables\table_z.c & + ..\..\..\..\..\src\ta_func\ta_utility.c & + ..\..\..\..\..\src\ta_func\ta_ACOS.c & + ..\..\..\..\..\src\ta_func\ta_AD.c & + ..\..\..\..\..\src\ta_func\ta_ADD.c & + ..\..\..\..\..\src\ta_func\ta_ADOSC.c & + ..\..\..\..\..\src\ta_func\ta_ADX.c & + ..\..\..\..\..\src\ta_func\ta_ADXR.c & + ..\..\..\..\..\src\ta_func\ta_APO.c & + ..\..\..\..\..\src\ta_func\ta_AROON.c & + ..\..\..\..\..\src\ta_func\ta_AROONOSC.c & + ..\..\..\..\..\src\ta_func\ta_ASIN.c & + ..\..\..\..\..\src\ta_func\ta_ATAN.c & + ..\..\..\..\..\src\ta_func\ta_ATR.c & + ..\..\..\..\..\src\ta_func\ta_AVGPRICE.c & + ..\..\..\..\..\src\ta_func\ta_BBANDS.c & + ..\..\..\..\..\src\ta_func\ta_BETA.c & + ..\..\..\..\..\src\ta_func\ta_BOP.c & + ..\..\..\..\..\src\ta_func\ta_CCI.c & + ..\..\..\..\..\src\ta_func\ta_CDL2CROWS.c & + ..\..\..\..\..\src\ta_func\ta_CDL3BLACKCROWS.c & + ..\..\..\..\..\src\ta_func\ta_CDL3INSIDE.c & + ..\..\..\..\..\src\ta_func\ta_CDL3LINESTRIKE.c & + ..\..\..\..\..\src\ta_func\ta_CDL3OUTSIDE.c & + ..\..\..\..\..\src\ta_func\ta_CDL3STARSINSOUTH.c & + ..\..\..\..\..\src\ta_func\ta_CDL3WHITESOLDIERS.c & + ..\..\..\..\..\src\ta_func\ta_CDLABANDONEDBABY.c & + ..\..\..\..\..\src\ta_func\ta_CDLADVANCEBLOCK.c & + ..\..\..\..\..\src\ta_func\ta_CDLBELTHOLD.c & + ..\..\..\..\..\src\ta_func\ta_CDLBREAKAWAY.c & + ..\..\..\..\..\src\ta_func\ta_CDLCLOSINGMARUBOZU.c & + ..\..\..\..\..\src\ta_func\ta_CDLCONCEALBABYSWALL.c & + ..\..\..\..\..\src\ta_func\ta_CDLCOUNTERATTACK.c & + ..\..\..\..\..\src\ta_func\ta_CDLDARKCLOUDCOVER.c & + ..\..\..\..\..\src\ta_func\ta_CDLDOJI.c & + ..\..\..\..\..\src\ta_func\ta_CDLDOJISTAR.c & + ..\..\..\..\..\src\ta_func\ta_CDLDRAGONFLYDOJI.c & + ..\..\..\..\..\src\ta_func\ta_CDLENGULFING.c & + ..\..\..\..\..\src\ta_func\ta_CDLEVENINGDOJISTAR.c & + ..\..\..\..\..\src\ta_func\ta_CDLEVENINGSTAR.c & + ..\..\..\..\..\src\ta_func\ta_CDLGAPSIDESIDEWHITE.c & + ..\..\..\..\..\src\ta_func\ta_CDLGRAVESTONEDOJI.c & + ..\..\..\..\..\src\ta_func\ta_CDLHAMMER.c & + ..\..\..\..\..\src\ta_func\ta_CDLHANGINGMAN.c & + ..\..\..\..\..\src\ta_func\ta_CDLHARAMI.c & + ..\..\..\..\..\src\ta_func\ta_CDLHARAMICROSS.c & + ..\..\..\..\..\src\ta_func\ta_CDLHIGHWAVE.c & + ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKE.c & + ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKEMOD.c & + ..\..\..\..\..\src\ta_func\ta_CDLHOMINGPIGEON.c & + ..\..\..\..\..\src\ta_func\ta_CDLIDENTICAL3CROWS.c & + ..\..\..\..\..\src\ta_func\ta_CDLINNECK.c & + ..\..\..\..\..\src\ta_func\ta_CDLINVERTEDHAMMER.c & + ..\..\..\..\..\src\ta_func\ta_CDLKICKING.c & + ..\..\..\..\..\src\ta_func\ta_CDLKICKINGBYLENGTH.c & + ..\..\..\..\..\src\ta_func\ta_CDLLADDERBOTTOM.c & + ..\..\..\..\..\src\ta_func\ta_CDLLONGLEGGEDDOJI.c & + ..\..\..\..\..\src\ta_func\ta_CDLLONGLINE.c & + ..\..\..\..\..\src\ta_func\ta_CDLMARUBOZU.c & + ..\..\..\..\..\src\ta_func\ta_CDLMATCHINGLOW.c & + ..\..\..\..\..\src\ta_func\ta_CDLMATHOLD.c & + ..\..\..\..\..\src\ta_func\ta_CDLMORNINGDOJISTAR.c & + ..\..\..\..\..\src\ta_func\ta_CDLMORNINGSTAR.c & + ..\..\..\..\..\src\ta_func\ta_CDLONNECK.c & + ..\..\..\..\..\src\ta_func\ta_CDLPIERCING.c & + ..\..\..\..\..\src\ta_func\ta_CDLRICKSHAWMAN.c & + ..\..\..\..\..\src\ta_func\ta_CDLRISEFALL3METHODS.c & + ..\..\..\..\..\src\ta_func\ta_CDLSEPARATINGLINES.c & + ..\..\..\..\..\src\ta_func\ta_CDLSHOOTINGSTAR.c & + ..\..\..\..\..\src\ta_func\ta_CDLSHORTLINE.c & + ..\..\..\..\..\src\ta_func\ta_CDLSPINNINGTOP.c & + ..\..\..\..\..\src\ta_func\ta_CDLSTALLEDPATTERN.c & + ..\..\..\..\..\src\ta_func\ta_CDLSTICKSANDWICH.c & + ..\..\..\..\..\src\ta_func\ta_CDLTAKURI.c & + ..\..\..\..\..\src\ta_func\ta_CDLTASUKIGAP.c & + ..\..\..\..\..\src\ta_func\ta_CDLTHRUSTING.c & + ..\..\..\..\..\src\ta_func\ta_CDLTRISTAR.c & + ..\..\..\..\..\src\ta_func\ta_CDLUNIQUE3RIVER.c & + ..\..\..\..\..\src\ta_func\ta_CDLUPSIDEGAP2CROWS.c & + ..\..\..\..\..\src\ta_func\ta_CDLXSIDEGAP3METHODS.c & + ..\..\..\..\..\src\ta_func\ta_CEIL.c & + ..\..\..\..\..\src\ta_func\ta_CMO.c & + ..\..\..\..\..\src\ta_func\ta_CORREL.c & + ..\..\..\..\..\src\ta_func\ta_COS.c & + ..\..\..\..\..\src\ta_func\ta_COSH.c & + ..\..\..\..\..\src\ta_func\ta_DEMA.c & + ..\..\..\..\..\src\ta_func\ta_DIV.c & + ..\..\..\..\..\src\ta_func\ta_DX.c & + ..\..\..\..\..\src\ta_func\ta_EMA.c & + ..\..\..\..\..\src\ta_func\ta_EXP.c & + ..\..\..\..\..\src\ta_func\ta_FLOOR.c & + ..\..\..\..\..\src\ta_func\ta_HT_DCPERIOD.c & + ..\..\..\..\..\src\ta_func\ta_HT_DCPHASE.c & + ..\..\..\..\..\src\ta_func\ta_HT_PHASOR.c & + ..\..\..\..\..\src\ta_func\ta_HT_SINE.c & + ..\..\..\..\..\src\ta_func\ta_HT_TRENDLINE.c & + ..\..\..\..\..\src\ta_func\ta_HT_TRENDMODE.c & + ..\..\..\..\..\src\ta_func\ta_KAMA.c & + ..\..\..\..\..\src\ta_func\ta_LINEARREG.c & + ..\..\..\..\..\src\ta_func\ta_LINEARREG_ANGLE.c & + ..\..\..\..\..\src\ta_func\ta_LINEARREG_INTERCEPT.c & + ..\..\..\..\..\src\ta_func\ta_LINEARREG_SLOPE.c & + ..\..\..\..\..\src\ta_func\ta_LN.c & + ..\..\..\..\..\src\ta_func\ta_LOG10.c & + ..\..\..\..\..\src\ta_func\ta_MA.c & + ..\..\..\..\..\src\ta_func\ta_MACD.c & + ..\..\..\..\..\src\ta_func\ta_MACDEXT.c & + ..\..\..\..\..\src\ta_func\ta_MACDFIX.c & + ..\..\..\..\..\src\ta_func\ta_MAMA.c & + ..\..\..\..\..\src\ta_func\ta_MAVP.c & + ..\..\..\..\..\src\ta_func\ta_MAX.c & + ..\..\..\..\..\src\ta_func\ta_MAXINDEX.c & + ..\..\..\..\..\src\ta_func\ta_MEDPRICE.c & + ..\..\..\..\..\src\ta_func\ta_MFI.c & + ..\..\..\..\..\src\ta_func\ta_MIDPOINT.c & + ..\..\..\..\..\src\ta_func\ta_MIDPRICE.c & + ..\..\..\..\..\src\ta_func\ta_MIN.c & + ..\..\..\..\..\src\ta_func\ta_MININDEX.c & + ..\..\..\..\..\src\ta_func\ta_MINMAX.c & + ..\..\..\..\..\src\ta_func\ta_MINMAXINDEX.c & + ..\..\..\..\..\src\ta_func\ta_MINUS_DI.c & + ..\..\..\..\..\src\ta_func\ta_MINUS_DM.c & + ..\..\..\..\..\src\ta_func\ta_MOM.c & + ..\..\..\..\..\src\ta_func\ta_MULT.c & + ..\..\..\..\..\src\ta_func\ta_NATR.c & + ..\..\..\..\..\src\ta_func\ta_OBV.c & + ..\..\..\..\..\src\ta_func\ta_PLUS_DI.c & + ..\..\..\..\..\src\ta_func\ta_PLUS_DM.c & + ..\..\..\..\..\src\ta_func\ta_PPO.c & + ..\..\..\..\..\src\ta_func\ta_ROC.c & + ..\..\..\..\..\src\ta_func\ta_ROCP.c & + ..\..\..\..\..\src\ta_func\ta_ROCR.c & + ..\..\..\..\..\src\ta_func\ta_ROCR100.c & + ..\..\..\..\..\src\ta_func\ta_RSI.c & + ..\..\..\..\..\src\ta_func\ta_SAR.c & + ..\..\..\..\..\src\ta_func\ta_SAREXT.c & + ..\..\..\..\..\src\ta_func\ta_SIN.c & + ..\..\..\..\..\src\ta_func\ta_SINH.c & + ..\..\..\..\..\src\ta_func\ta_SMA.c & + ..\..\..\..\..\src\ta_func\ta_SQRT.c & + ..\..\..\..\..\src\ta_func\ta_STDDEV.c & + ..\..\..\..\..\src\ta_func\ta_STOCH.c & + ..\..\..\..\..\src\ta_func\ta_STOCHF.c & + ..\..\..\..\..\src\ta_func\ta_STOCHRSI.c & + ..\..\..\..\..\src\ta_func\ta_SUB.c & + ..\..\..\..\..\src\ta_func\ta_SUM.c & + ..\..\..\..\..\src\ta_func\ta_T3.c & + ..\..\..\..\..\src\ta_func\ta_TAN.c & + ..\..\..\..\..\src\ta_func\ta_TANH.c & + ..\..\..\..\..\src\ta_func\ta_TEMA.c & + ..\..\..\..\..\src\ta_func\ta_TRANGE.c & + ..\..\..\..\..\src\ta_func\ta_TRIMA.c & + ..\..\..\..\..\src\ta_func\ta_TRIX.c & + ..\..\..\..\..\src\ta_func\ta_TSF.c & + ..\..\..\..\..\src\ta_func\ta_TYPPRICE.c & + ..\..\..\..\..\src\ta_func\ta_ULTOSC.c & + ..\..\..\..\..\src\ta_func\ta_VAR.c & + ..\..\..\..\..\src\ta_func\ta_WCLPRICE.c & + ..\..\..\..\..\src\ta_func\ta_WILLR.c & + ..\..\..\..\..\src\ta_func\ta_WMA.c +OBJECTS = ..\..\..\..\..\temp\csr\ta_global.obj & + ..\..\..\..\..\temp\csr\ta_retcode.obj & + ..\..\..\..\..\temp\csr\ta_version.obj & + ..\..\..\..\..\temp\csr\ta_abstract.obj & + ..\..\..\..\..\temp\csr\ta_def_ui.obj & + ..\..\..\..\..\temp\csr\ta_func_api.obj & + ..\..\..\..\..\temp\csr\ta_group_idx.obj & + ..\..\..\..\..\temp\csr\ta_frame.obj & + ..\..\..\..\..\temp\csr\table_a.obj & + ..\..\..\..\..\temp\csr\table_b.obj & + ..\..\..\..\..\temp\csr\table_c.obj & + ..\..\..\..\..\temp\csr\table_d.obj & + ..\..\..\..\..\temp\csr\table_e.obj & + ..\..\..\..\..\temp\csr\table_f.obj & + ..\..\..\..\..\temp\csr\table_g.obj & + ..\..\..\..\..\temp\csr\table_h.obj & + ..\..\..\..\..\temp\csr\table_i.obj & + ..\..\..\..\..\temp\csr\table_j.obj & + ..\..\..\..\..\temp\csr\table_k.obj & + ..\..\..\..\..\temp\csr\table_l.obj & + ..\..\..\..\..\temp\csr\table_m.obj & + ..\..\..\..\..\temp\csr\table_n.obj & + ..\..\..\..\..\temp\csr\table_o.obj & + ..\..\..\..\..\temp\csr\table_p.obj & + ..\..\..\..\..\temp\csr\table_q.obj & + ..\..\..\..\..\temp\csr\table_r.obj & + ..\..\..\..\..\temp\csr\table_s.obj & + ..\..\..\..\..\temp\csr\table_t.obj & + ..\..\..\..\..\temp\csr\table_u.obj & + ..\..\..\..\..\temp\csr\table_v.obj & + ..\..\..\..\..\temp\csr\table_w.obj & + ..\..\..\..\..\temp\csr\table_x.obj & + ..\..\..\..\..\temp\csr\table_y.obj & + ..\..\..\..\..\temp\csr\table_z.obj & + ..\..\..\..\..\temp\csr\ta_utility.obj & + ..\..\..\..\..\temp\csr\ta_ACOS.obj & + ..\..\..\..\..\temp\csr\ta_AD.obj & + ..\..\..\..\..\temp\csr\ta_ADD.obj & + ..\..\..\..\..\temp\csr\ta_ADOSC.obj & + ..\..\..\..\..\temp\csr\ta_ADX.obj & + ..\..\..\..\..\temp\csr\ta_ADXR.obj & + ..\..\..\..\..\temp\csr\ta_APO.obj & + ..\..\..\..\..\temp\csr\ta_AROON.obj & + ..\..\..\..\..\temp\csr\ta_AROONOSC.obj & + ..\..\..\..\..\temp\csr\ta_ASIN.obj & + ..\..\..\..\..\temp\csr\ta_ATAN.obj & + ..\..\..\..\..\temp\csr\ta_ATR.obj & + ..\..\..\..\..\temp\csr\ta_AVGPRICE.obj & + ..\..\..\..\..\temp\csr\ta_BBANDS.obj & + ..\..\..\..\..\temp\csr\ta_BETA.obj & + ..\..\..\..\..\temp\csr\ta_BOP.obj & + ..\..\..\..\..\temp\csr\ta_CCI.obj & + ..\..\..\..\..\temp\csr\ta_CDL2CROWS.obj & + ..\..\..\..\..\temp\csr\ta_CDL3BLACKCROWS.obj & + ..\..\..\..\..\temp\csr\ta_CDL3INSIDE.obj & + ..\..\..\..\..\temp\csr\ta_CDL3LINESTRIKE.obj & + ..\..\..\..\..\temp\csr\ta_CDL3OUTSIDE.obj & + ..\..\..\..\..\temp\csr\ta_CDL3STARSINSOUTH.obj & + ..\..\..\..\..\temp\csr\ta_CDL3WHITESOLDIERS.obj & + ..\..\..\..\..\temp\csr\ta_CDLABANDONEDBABY.obj & + ..\..\..\..\..\temp\csr\ta_CDLADVANCEBLOCK.obj & + ..\..\..\..\..\temp\csr\ta_CDLBELTHOLD.obj & + ..\..\..\..\..\temp\csr\ta_CDLBREAKAWAY.obj & + ..\..\..\..\..\temp\csr\ta_CDLCLOSINGMARUBOZU.obj & + ..\..\..\..\..\temp\csr\ta_CDLCONCEALBABYSWALL.obj & + ..\..\..\..\..\temp\csr\ta_CDLCOUNTERATTACK.obj & + ..\..\..\..\..\temp\csr\ta_CDLDARKCLOUDCOVER.obj & + ..\..\..\..\..\temp\csr\ta_CDLDOJI.obj & + ..\..\..\..\..\temp\csr\ta_CDLDOJISTAR.obj & + ..\..\..\..\..\temp\csr\ta_CDLDRAGONFLYDOJI.obj & + ..\..\..\..\..\temp\csr\ta_CDLENGULFING.obj & + ..\..\..\..\..\temp\csr\ta_CDLEVENINGDOJISTAR.obj & + ..\..\..\..\..\temp\csr\ta_CDLEVENINGSTAR.obj & + ..\..\..\..\..\temp\csr\ta_CDLGAPSIDESIDEWHITE.obj & + ..\..\..\..\..\temp\csr\ta_CDLGRAVESTONEDOJI.obj & + ..\..\..\..\..\temp\csr\ta_CDLHAMMER.obj & + ..\..\..\..\..\temp\csr\ta_CDLHANGINGMAN.obj & + ..\..\..\..\..\temp\csr\ta_CDLHARAMI.obj & + ..\..\..\..\..\temp\csr\ta_CDLHARAMICROSS.obj & + ..\..\..\..\..\temp\csr\ta_CDLHIGHWAVE.obj & + ..\..\..\..\..\temp\csr\ta_CDLHIKKAKE.obj & + ..\..\..\..\..\temp\csr\ta_CDLHIKKAKEMOD.obj & + ..\..\..\..\..\temp\csr\ta_CDLHOMINGPIGEON.obj & + ..\..\..\..\..\temp\csr\ta_CDLIDENTICAL3CROWS.obj & + ..\..\..\..\..\temp\csr\ta_CDLINNECK.obj & + ..\..\..\..\..\temp\csr\ta_CDLINVERTEDHAMMER.obj & + ..\..\..\..\..\temp\csr\ta_CDLKICKING.obj & + ..\..\..\..\..\temp\csr\ta_CDLKICKINGBYLENGTH.obj & + ..\..\..\..\..\temp\csr\ta_CDLLADDERBOTTOM.obj & + ..\..\..\..\..\temp\csr\ta_CDLLONGLEGGEDDOJI.obj & + ..\..\..\..\..\temp\csr\ta_CDLLONGLINE.obj & + ..\..\..\..\..\temp\csr\ta_CDLMARUBOZU.obj & + ..\..\..\..\..\temp\csr\ta_CDLMATCHINGLOW.obj & + ..\..\..\..\..\temp\csr\ta_CDLMATHOLD.obj & + ..\..\..\..\..\temp\csr\ta_CDLMORNINGDOJISTAR.obj & + ..\..\..\..\..\temp\csr\ta_CDLMORNINGSTAR.obj & + ..\..\..\..\..\temp\csr\ta_CDLONNECK.obj & + ..\..\..\..\..\temp\csr\ta_CDLPIERCING.obj & + ..\..\..\..\..\temp\csr\ta_CDLRICKSHAWMAN.obj & + ..\..\..\..\..\temp\csr\ta_CDLRISEFALL3METHODS.obj & + ..\..\..\..\..\temp\csr\ta_CDLSEPARATINGLINES.obj & + ..\..\..\..\..\temp\csr\ta_CDLSHOOTINGSTAR.obj & + ..\..\..\..\..\temp\csr\ta_CDLSHORTLINE.obj & + ..\..\..\..\..\temp\csr\ta_CDLSPINNINGTOP.obj & + ..\..\..\..\..\temp\csr\ta_CDLSTALLEDPATTERN.obj & + ..\..\..\..\..\temp\csr\ta_CDLSTICKSANDWICH.obj & + ..\..\..\..\..\temp\csr\ta_CDLTAKURI.obj & + ..\..\..\..\..\temp\csr\ta_CDLTASUKIGAP.obj & + ..\..\..\..\..\temp\csr\ta_CDLTHRUSTING.obj & + ..\..\..\..\..\temp\csr\ta_CDLTRISTAR.obj & + ..\..\..\..\..\temp\csr\ta_CDLUNIQUE3RIVER.obj & + ..\..\..\..\..\temp\csr\ta_CDLUPSIDEGAP2CROWS.obj & + ..\..\..\..\..\temp\csr\ta_CDLXSIDEGAP3METHODS.obj & + ..\..\..\..\..\temp\csr\ta_CEIL.obj & + ..\..\..\..\..\temp\csr\ta_CMO.obj & + ..\..\..\..\..\temp\csr\ta_CORREL.obj & + ..\..\..\..\..\temp\csr\ta_COS.obj & + ..\..\..\..\..\temp\csr\ta_COSH.obj & + ..\..\..\..\..\temp\csr\ta_DEMA.obj & + ..\..\..\..\..\temp\csr\ta_DIV.obj & + ..\..\..\..\..\temp\csr\ta_DX.obj & + ..\..\..\..\..\temp\csr\ta_EMA.obj & + ..\..\..\..\..\temp\csr\ta_EXP.obj & + ..\..\..\..\..\temp\csr\ta_FLOOR.obj & + ..\..\..\..\..\temp\csr\ta_HT_DCPERIOD.obj & + ..\..\..\..\..\temp\csr\ta_HT_DCPHASE.obj & + ..\..\..\..\..\temp\csr\ta_HT_PHASOR.obj & + ..\..\..\..\..\temp\csr\ta_HT_SINE.obj & + ..\..\..\..\..\temp\csr\ta_HT_TRENDLINE.obj & + ..\..\..\..\..\temp\csr\ta_HT_TRENDMODE.obj & + ..\..\..\..\..\temp\csr\ta_KAMA.obj & + ..\..\..\..\..\temp\csr\ta_LINEARREG.obj & + ..\..\..\..\..\temp\csr\ta_LINEARREG_ANGLE.obj & + ..\..\..\..\..\temp\csr\ta_LINEARREG_INTERCEPT.obj & + ..\..\..\..\..\temp\csr\ta_LINEARREG_SLOPE.obj & + ..\..\..\..\..\temp\csr\ta_LN.obj & + ..\..\..\..\..\temp\csr\ta_LOG10.obj & + ..\..\..\..\..\temp\csr\ta_MA.obj & + ..\..\..\..\..\temp\csr\ta_MACD.obj & + ..\..\..\..\..\temp\csr\ta_MACDEXT.obj & + ..\..\..\..\..\temp\csr\ta_MACDFIX.obj & + ..\..\..\..\..\temp\csr\ta_MAMA.obj & + ..\..\..\..\..\temp\csr\ta_MAVP.obj & + ..\..\..\..\..\temp\csr\ta_MAX.obj & + ..\..\..\..\..\temp\csr\ta_MAXINDEX.obj & + ..\..\..\..\..\temp\csr\ta_MEDPRICE.obj & + ..\..\..\..\..\temp\csr\ta_MFI.obj & + ..\..\..\..\..\temp\csr\ta_MIDPOINT.obj & + ..\..\..\..\..\temp\csr\ta_MIDPRICE.obj & + ..\..\..\..\..\temp\csr\ta_MIN.obj & + ..\..\..\..\..\temp\csr\ta_MININDEX.obj & + ..\..\..\..\..\temp\csr\ta_MINMAX.obj & + ..\..\..\..\..\temp\csr\ta_MINMAXINDEX.obj & + ..\..\..\..\..\temp\csr\ta_MINUS_DI.obj & + ..\..\..\..\..\temp\csr\ta_MINUS_DM.obj & + ..\..\..\..\..\temp\csr\ta_MOM.obj & + ..\..\..\..\..\temp\csr\ta_MULT.obj & + ..\..\..\..\..\temp\csr\ta_NATR.obj & + ..\..\..\..\..\temp\csr\ta_OBV.obj & + ..\..\..\..\..\temp\csr\ta_PLUS_DI.obj & + ..\..\..\..\..\temp\csr\ta_PLUS_DM.obj & + ..\..\..\..\..\temp\csr\ta_PPO.obj & + ..\..\..\..\..\temp\csr\ta_ROC.obj & + ..\..\..\..\..\temp\csr\ta_ROCP.obj & + ..\..\..\..\..\temp\csr\ta_ROCR.obj & + ..\..\..\..\..\temp\csr\ta_ROCR100.obj & + ..\..\..\..\..\temp\csr\ta_RSI.obj & + ..\..\..\..\..\temp\csr\ta_SAR.obj & + ..\..\..\..\..\temp\csr\ta_SAREXT.obj & + ..\..\..\..\..\temp\csr\ta_SIN.obj & + ..\..\..\..\..\temp\csr\ta_SINH.obj & + ..\..\..\..\..\temp\csr\ta_SMA.obj & + ..\..\..\..\..\temp\csr\ta_SQRT.obj & + ..\..\..\..\..\temp\csr\ta_STDDEV.obj & + ..\..\..\..\..\temp\csr\ta_STOCH.obj & + ..\..\..\..\..\temp\csr\ta_STOCHF.obj & + ..\..\..\..\..\temp\csr\ta_STOCHRSI.obj & + ..\..\..\..\..\temp\csr\ta_SUB.obj & + ..\..\..\..\..\temp\csr\ta_SUM.obj & + ..\..\..\..\..\temp\csr\ta_T3.obj & + ..\..\..\..\..\temp\csr\ta_TAN.obj & + ..\..\..\..\..\temp\csr\ta_TANH.obj & + ..\..\..\..\..\temp\csr\ta_TEMA.obj & + ..\..\..\..\..\temp\csr\ta_TRANGE.obj & + ..\..\..\..\..\temp\csr\ta_TRIMA.obj & + ..\..\..\..\..\temp\csr\ta_TRIX.obj & + ..\..\..\..\..\temp\csr\ta_TSF.obj & + ..\..\..\..\..\temp\csr\ta_TYPPRICE.obj & + ..\..\..\..\..\temp\csr\ta_ULTOSC.obj & + ..\..\..\..\..\temp\csr\ta_VAR.obj & + ..\..\..\..\..\temp\csr\ta_WCLPRICE.obj & + ..\..\..\..\..\temp\csr\ta_WILLR.obj & + ..\..\..\..\..\temp\csr\ta_WMA.obj +SRCMOC = +OBJMOC = +DIST = +TARGET = ..\..\..\..\..\lib\ta_libc_csr.lib +TMPLIST = ta_libc_csr.lst + +####### Build rules + +all: $(TARGET) + +$(TARGET): $(OBJECTS) $(OBJMOC) + @%create $(TMPLIST) + @for %i in ( $(OBJECTS) $(OBJMOC) ) do @%append $(TMPLIST) +'%i' + $(LIB) $(TARGET) @$(TMPLIST) + del $(TMPLIST) + +moc: $(SRCMOC) + +tmake: ../csr/win32/watcom/ta_libc/Makefile + +../csr/win32/watcom/ta_libc/Makefile: ta_libc/ta_libc.pro + tmake ta_libc/ta_libc.pro -o ../csr/win32/watcom/ta_libc/Makefile + +dist: + $(ZIP) ta_libc/ta_libc.zip ta_libc/ta_libc.pro $(SOURCES) $(HEADERS) $(DIST) + +clean: + -del ..\..\..\..\..\temp\csr\ta_global.obj + -del ..\..\..\..\..\temp\csr\ta_retcode.obj + -del ..\..\..\..\..\temp\csr\ta_version.obj + -del ..\..\..\..\..\temp\csr\ta_abstract.obj + -del ..\..\..\..\..\temp\csr\ta_def_ui.obj + -del ..\..\..\..\..\temp\csr\ta_func_api.obj + -del ..\..\..\..\..\temp\csr\ta_group_idx.obj + -del ..\..\..\..\..\temp\csr\ta_frame.obj + -del ..\..\..\..\..\temp\csr\table_a.obj + -del ..\..\..\..\..\temp\csr\table_b.obj + -del ..\..\..\..\..\temp\csr\table_c.obj + -del ..\..\..\..\..\temp\csr\table_d.obj + -del ..\..\..\..\..\temp\csr\table_e.obj + -del ..\..\..\..\..\temp\csr\table_f.obj + -del ..\..\..\..\..\temp\csr\table_g.obj + -del ..\..\..\..\..\temp\csr\table_h.obj + -del ..\..\..\..\..\temp\csr\table_i.obj + -del ..\..\..\..\..\temp\csr\table_j.obj + -del ..\..\..\..\..\temp\csr\table_k.obj + -del ..\..\..\..\..\temp\csr\table_l.obj + -del ..\..\..\..\..\temp\csr\table_m.obj + -del ..\..\..\..\..\temp\csr\table_n.obj + -del ..\..\..\..\..\temp\csr\table_o.obj + -del ..\..\..\..\..\temp\csr\table_p.obj + -del ..\..\..\..\..\temp\csr\table_q.obj + -del ..\..\..\..\..\temp\csr\table_r.obj + -del ..\..\..\..\..\temp\csr\table_s.obj + -del ..\..\..\..\..\temp\csr\table_t.obj + -del ..\..\..\..\..\temp\csr\table_u.obj + -del ..\..\..\..\..\temp\csr\table_v.obj + -del ..\..\..\..\..\temp\csr\table_w.obj + -del ..\..\..\..\..\temp\csr\table_x.obj + -del ..\..\..\..\..\temp\csr\table_y.obj + -del ..\..\..\..\..\temp\csr\table_z.obj + -del ..\..\..\..\..\temp\csr\ta_utility.obj + -del ..\..\..\..\..\temp\csr\ta_ACOS.obj + -del ..\..\..\..\..\temp\csr\ta_AD.obj + -del ..\..\..\..\..\temp\csr\ta_ADD.obj + -del ..\..\..\..\..\temp\csr\ta_ADOSC.obj + -del ..\..\..\..\..\temp\csr\ta_ADX.obj + -del ..\..\..\..\..\temp\csr\ta_ADXR.obj + -del ..\..\..\..\..\temp\csr\ta_APO.obj + -del ..\..\..\..\..\temp\csr\ta_AROON.obj + -del ..\..\..\..\..\temp\csr\ta_AROONOSC.obj + -del ..\..\..\..\..\temp\csr\ta_ASIN.obj + -del ..\..\..\..\..\temp\csr\ta_ATAN.obj + -del ..\..\..\..\..\temp\csr\ta_ATR.obj + -del ..\..\..\..\..\temp\csr\ta_AVGPRICE.obj + -del ..\..\..\..\..\temp\csr\ta_BBANDS.obj + -del ..\..\..\..\..\temp\csr\ta_BETA.obj + -del ..\..\..\..\..\temp\csr\ta_BOP.obj + -del ..\..\..\..\..\temp\csr\ta_CCI.obj + -del ..\..\..\..\..\temp\csr\ta_CDL2CROWS.obj + -del ..\..\..\..\..\temp\csr\ta_CDL3BLACKCROWS.obj + -del ..\..\..\..\..\temp\csr\ta_CDL3INSIDE.obj + -del ..\..\..\..\..\temp\csr\ta_CDL3LINESTRIKE.obj + -del ..\..\..\..\..\temp\csr\ta_CDL3OUTSIDE.obj + -del ..\..\..\..\..\temp\csr\ta_CDL3STARSINSOUTH.obj + -del ..\..\..\..\..\temp\csr\ta_CDL3WHITESOLDIERS.obj + -del ..\..\..\..\..\temp\csr\ta_CDLABANDONEDBABY.obj + -del ..\..\..\..\..\temp\csr\ta_CDLADVANCEBLOCK.obj + -del ..\..\..\..\..\temp\csr\ta_CDLBELTHOLD.obj + -del ..\..\..\..\..\temp\csr\ta_CDLBREAKAWAY.obj + -del ..\..\..\..\..\temp\csr\ta_CDLCLOSINGMARUBOZU.obj + -del ..\..\..\..\..\temp\csr\ta_CDLCONCEALBABYSWALL.obj + -del ..\..\..\..\..\temp\csr\ta_CDLCOUNTERATTACK.obj + -del ..\..\..\..\..\temp\csr\ta_CDLDARKCLOUDCOVER.obj + -del ..\..\..\..\..\temp\csr\ta_CDLDOJI.obj + -del ..\..\..\..\..\temp\csr\ta_CDLDOJISTAR.obj + -del ..\..\..\..\..\temp\csr\ta_CDLDRAGONFLYDOJI.obj + -del ..\..\..\..\..\temp\csr\ta_CDLENGULFING.obj + -del ..\..\..\..\..\temp\csr\ta_CDLEVENINGDOJISTAR.obj + -del ..\..\..\..\..\temp\csr\ta_CDLEVENINGSTAR.obj + -del ..\..\..\..\..\temp\csr\ta_CDLGAPSIDESIDEWHITE.obj + -del ..\..\..\..\..\temp\csr\ta_CDLGRAVESTONEDOJI.obj + -del ..\..\..\..\..\temp\csr\ta_CDLHAMMER.obj + -del ..\..\..\..\..\temp\csr\ta_CDLHANGINGMAN.obj + -del ..\..\..\..\..\temp\csr\ta_CDLHARAMI.obj + -del ..\..\..\..\..\temp\csr\ta_CDLHARAMICROSS.obj + -del ..\..\..\..\..\temp\csr\ta_CDLHIGHWAVE.obj + -del ..\..\..\..\..\temp\csr\ta_CDLHIKKAKE.obj + -del ..\..\..\..\..\temp\csr\ta_CDLHIKKAKEMOD.obj + -del ..\..\..\..\..\temp\csr\ta_CDLHOMINGPIGEON.obj + -del ..\..\..\..\..\temp\csr\ta_CDLIDENTICAL3CROWS.obj + -del ..\..\..\..\..\temp\csr\ta_CDLINNECK.obj + -del ..\..\..\..\..\temp\csr\ta_CDLINVERTEDHAMMER.obj + -del ..\..\..\..\..\temp\csr\ta_CDLKICKING.obj + -del ..\..\..\..\..\temp\csr\ta_CDLKICKINGBYLENGTH.obj + -del ..\..\..\..\..\temp\csr\ta_CDLLADDERBOTTOM.obj + -del ..\..\..\..\..\temp\csr\ta_CDLLONGLEGGEDDOJI.obj + -del ..\..\..\..\..\temp\csr\ta_CDLLONGLINE.obj + -del ..\..\..\..\..\temp\csr\ta_CDLMARUBOZU.obj + -del ..\..\..\..\..\temp\csr\ta_CDLMATCHINGLOW.obj + -del ..\..\..\..\..\temp\csr\ta_CDLMATHOLD.obj + -del ..\..\..\..\..\temp\csr\ta_CDLMORNINGDOJISTAR.obj + -del ..\..\..\..\..\temp\csr\ta_CDLMORNINGSTAR.obj + -del ..\..\..\..\..\temp\csr\ta_CDLONNECK.obj + -del ..\..\..\..\..\temp\csr\ta_CDLPIERCING.obj + -del ..\..\..\..\..\temp\csr\ta_CDLRICKSHAWMAN.obj + -del ..\..\..\..\..\temp\csr\ta_CDLRISEFALL3METHODS.obj + -del ..\..\..\..\..\temp\csr\ta_CDLSEPARATINGLINES.obj + -del ..\..\..\..\..\temp\csr\ta_CDLSHOOTINGSTAR.obj + -del ..\..\..\..\..\temp\csr\ta_CDLSHORTLINE.obj + -del ..\..\..\..\..\temp\csr\ta_CDLSPINNINGTOP.obj + -del ..\..\..\..\..\temp\csr\ta_CDLSTALLEDPATTERN.obj + -del ..\..\..\..\..\temp\csr\ta_CDLSTICKSANDWICH.obj + -del ..\..\..\..\..\temp\csr\ta_CDLTAKURI.obj + -del ..\..\..\..\..\temp\csr\ta_CDLTASUKIGAP.obj + -del ..\..\..\..\..\temp\csr\ta_CDLTHRUSTING.obj + -del ..\..\..\..\..\temp\csr\ta_CDLTRISTAR.obj + -del ..\..\..\..\..\temp\csr\ta_CDLUNIQUE3RIVER.obj + -del ..\..\..\..\..\temp\csr\ta_CDLUPSIDEGAP2CROWS.obj + -del ..\..\..\..\..\temp\csr\ta_CDLXSIDEGAP3METHODS.obj + -del ..\..\..\..\..\temp\csr\ta_CEIL.obj + -del ..\..\..\..\..\temp\csr\ta_CMO.obj + -del ..\..\..\..\..\temp\csr\ta_CORREL.obj + -del ..\..\..\..\..\temp\csr\ta_COS.obj + -del ..\..\..\..\..\temp\csr\ta_COSH.obj + -del ..\..\..\..\..\temp\csr\ta_DEMA.obj + -del ..\..\..\..\..\temp\csr\ta_DIV.obj + -del ..\..\..\..\..\temp\csr\ta_DX.obj + -del ..\..\..\..\..\temp\csr\ta_EMA.obj + -del ..\..\..\..\..\temp\csr\ta_EXP.obj + -del ..\..\..\..\..\temp\csr\ta_FLOOR.obj + -del ..\..\..\..\..\temp\csr\ta_HT_DCPERIOD.obj + -del ..\..\..\..\..\temp\csr\ta_HT_DCPHASE.obj + -del ..\..\..\..\..\temp\csr\ta_HT_PHASOR.obj + -del ..\..\..\..\..\temp\csr\ta_HT_SINE.obj + -del ..\..\..\..\..\temp\csr\ta_HT_TRENDLINE.obj + -del ..\..\..\..\..\temp\csr\ta_HT_TRENDMODE.obj + -del ..\..\..\..\..\temp\csr\ta_KAMA.obj + -del ..\..\..\..\..\temp\csr\ta_LINEARREG.obj + -del ..\..\..\..\..\temp\csr\ta_LINEARREG_ANGLE.obj + -del ..\..\..\..\..\temp\csr\ta_LINEARREG_INTERCEPT.obj + -del ..\..\..\..\..\temp\csr\ta_LINEARREG_SLOPE.obj + -del ..\..\..\..\..\temp\csr\ta_LN.obj + -del ..\..\..\..\..\temp\csr\ta_LOG10.obj + -del ..\..\..\..\..\temp\csr\ta_MA.obj + -del ..\..\..\..\..\temp\csr\ta_MACD.obj + -del ..\..\..\..\..\temp\csr\ta_MACDEXT.obj + -del ..\..\..\..\..\temp\csr\ta_MACDFIX.obj + -del ..\..\..\..\..\temp\csr\ta_MAMA.obj + -del ..\..\..\..\..\temp\csr\ta_MAVP.obj + -del ..\..\..\..\..\temp\csr\ta_MAX.obj + -del ..\..\..\..\..\temp\csr\ta_MAXINDEX.obj + -del ..\..\..\..\..\temp\csr\ta_MEDPRICE.obj + -del ..\..\..\..\..\temp\csr\ta_MFI.obj + -del ..\..\..\..\..\temp\csr\ta_MIDPOINT.obj + -del ..\..\..\..\..\temp\csr\ta_MIDPRICE.obj + -del ..\..\..\..\..\temp\csr\ta_MIN.obj + -del ..\..\..\..\..\temp\csr\ta_MININDEX.obj + -del ..\..\..\..\..\temp\csr\ta_MINMAX.obj + -del ..\..\..\..\..\temp\csr\ta_MINMAXINDEX.obj + -del ..\..\..\..\..\temp\csr\ta_MINUS_DI.obj + -del ..\..\..\..\..\temp\csr\ta_MINUS_DM.obj + -del ..\..\..\..\..\temp\csr\ta_MOM.obj + -del ..\..\..\..\..\temp\csr\ta_MULT.obj + -del ..\..\..\..\..\temp\csr\ta_NATR.obj + -del ..\..\..\..\..\temp\csr\ta_OBV.obj + -del ..\..\..\..\..\temp\csr\ta_PLUS_DI.obj + -del ..\..\..\..\..\temp\csr\ta_PLUS_DM.obj + -del ..\..\..\..\..\temp\csr\ta_PPO.obj + -del ..\..\..\..\..\temp\csr\ta_ROC.obj + -del ..\..\..\..\..\temp\csr\ta_ROCP.obj + -del ..\..\..\..\..\temp\csr\ta_ROCR.obj + -del ..\..\..\..\..\temp\csr\ta_ROCR100.obj + -del ..\..\..\..\..\temp\csr\ta_RSI.obj + -del ..\..\..\..\..\temp\csr\ta_SAR.obj + -del ..\..\..\..\..\temp\csr\ta_SAREXT.obj + -del ..\..\..\..\..\temp\csr\ta_SIN.obj + -del ..\..\..\..\..\temp\csr\ta_SINH.obj + -del ..\..\..\..\..\temp\csr\ta_SMA.obj + -del ..\..\..\..\..\temp\csr\ta_SQRT.obj + -del ..\..\..\..\..\temp\csr\ta_STDDEV.obj + -del ..\..\..\..\..\temp\csr\ta_STOCH.obj + -del ..\..\..\..\..\temp\csr\ta_STOCHF.obj + -del ..\..\..\..\..\temp\csr\ta_STOCHRSI.obj + -del ..\..\..\..\..\temp\csr\ta_SUB.obj + -del ..\..\..\..\..\temp\csr\ta_SUM.obj + -del ..\..\..\..\..\temp\csr\ta_T3.obj + -del ..\..\..\..\..\temp\csr\ta_TAN.obj + -del ..\..\..\..\..\temp\csr\ta_TANH.obj + -del ..\..\..\..\..\temp\csr\ta_TEMA.obj + -del ..\..\..\..\..\temp\csr\ta_TRANGE.obj + -del ..\..\..\..\..\temp\csr\ta_TRIMA.obj + -del ..\..\..\..\..\temp\csr\ta_TRIX.obj + -del ..\..\..\..\..\temp\csr\ta_TSF.obj + -del ..\..\..\..\..\temp\csr\ta_TYPPRICE.obj + -del ..\..\..\..\..\temp\csr\ta_ULTOSC.obj + -del ..\..\..\..\..\temp\csr\ta_VAR.obj + -del ..\..\..\..\..\temp\csr\ta_WCLPRICE.obj + -del ..\..\..\..\..\temp\csr\ta_WILLR.obj + -del ..\..\..\..\..\temp\csr\ta_WMA.obj + -del $(TARGET) + -del ../../../../../bin/*.map + -del ../../../../../bin/*._xe + -del ../../../../../bin/*.tds + -del ../../../../../bin/*.pdb + -del ../../../../../bin/*.pbo + -del ../../../../../bin/*.pbi + -del ../../../../../bin/*.pbt + +####### Compile + +..\..\..\..\..\temp\csr\ta_global.obj: ..\..\..\..\..\src\ta_common\ta_global.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_global.obj ..\..\..\..\..\src\ta_common\ta_global.c + +..\..\..\..\..\temp\csr\ta_retcode.obj: ..\..\..\..\..\src\ta_common\ta_retcode.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_retcode.obj ..\..\..\..\..\src\ta_common\ta_retcode.c + +..\..\..\..\..\temp\csr\ta_version.obj: ..\..\..\..\..\src\ta_common\ta_version.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_version.obj ..\..\..\..\..\src\ta_common\ta_version.c + +..\..\..\..\..\temp\csr\ta_abstract.obj: ..\..\..\..\..\src\ta_abstract\ta_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_abstract.obj ..\..\..\..\..\src\ta_abstract\ta_abstract.c + +..\..\..\..\..\temp\csr\ta_def_ui.obj: ..\..\..\..\..\src\ta_abstract\ta_def_ui.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_def_ui.obj ..\..\..\..\..\src\ta_abstract\ta_def_ui.c + +..\..\..\..\..\temp\csr\ta_func_api.obj: ..\..\..\..\..\src\ta_abstract\ta_func_api.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_func_api.obj ..\..\..\..\..\src\ta_abstract\ta_func_api.c + +..\..\..\..\..\temp\csr\ta_group_idx.obj: ..\..\..\..\..\src\ta_abstract\ta_group_idx.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_group_idx.obj ..\..\..\..\..\src\ta_abstract\ta_group_idx.c + +..\..\..\..\..\temp\csr\ta_frame.obj: ..\..\..\..\..\src\ta_abstract\frames\ta_frame.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_frame.obj ..\..\..\..\..\src\ta_abstract\frames\ta_frame.c + +..\..\..\..\..\temp\csr\table_a.obj: ..\..\..\..\..\src\ta_abstract\tables\table_a.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\table_a.obj ..\..\..\..\..\src\ta_abstract\tables\table_a.c + +..\..\..\..\..\temp\csr\table_b.obj: ..\..\..\..\..\src\ta_abstract\tables\table_b.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\table_b.obj ..\..\..\..\..\src\ta_abstract\tables\table_b.c + +..\..\..\..\..\temp\csr\table_c.obj: ..\..\..\..\..\src\ta_abstract\tables\table_c.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\table_c.obj ..\..\..\..\..\src\ta_abstract\tables\table_c.c + +..\..\..\..\..\temp\csr\table_d.obj: ..\..\..\..\..\src\ta_abstract\tables\table_d.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\table_d.obj ..\..\..\..\..\src\ta_abstract\tables\table_d.c + +..\..\..\..\..\temp\csr\table_e.obj: ..\..\..\..\..\src\ta_abstract\tables\table_e.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\table_e.obj ..\..\..\..\..\src\ta_abstract\tables\table_e.c + +..\..\..\..\..\temp\csr\table_f.obj: ..\..\..\..\..\src\ta_abstract\tables\table_f.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\table_f.obj ..\..\..\..\..\src\ta_abstract\tables\table_f.c + +..\..\..\..\..\temp\csr\table_g.obj: ..\..\..\..\..\src\ta_abstract\tables\table_g.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\table_g.obj ..\..\..\..\..\src\ta_abstract\tables\table_g.c + +..\..\..\..\..\temp\csr\table_h.obj: ..\..\..\..\..\src\ta_abstract\tables\table_h.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\table_h.obj ..\..\..\..\..\src\ta_abstract\tables\table_h.c + +..\..\..\..\..\temp\csr\table_i.obj: ..\..\..\..\..\src\ta_abstract\tables\table_i.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\table_i.obj ..\..\..\..\..\src\ta_abstract\tables\table_i.c + +..\..\..\..\..\temp\csr\table_j.obj: ..\..\..\..\..\src\ta_abstract\tables\table_j.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\table_j.obj ..\..\..\..\..\src\ta_abstract\tables\table_j.c + +..\..\..\..\..\temp\csr\table_k.obj: ..\..\..\..\..\src\ta_abstract\tables\table_k.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\table_k.obj ..\..\..\..\..\src\ta_abstract\tables\table_k.c + +..\..\..\..\..\temp\csr\table_l.obj: ..\..\..\..\..\src\ta_abstract\tables\table_l.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\table_l.obj ..\..\..\..\..\src\ta_abstract\tables\table_l.c + +..\..\..\..\..\temp\csr\table_m.obj: ..\..\..\..\..\src\ta_abstract\tables\table_m.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\table_m.obj ..\..\..\..\..\src\ta_abstract\tables\table_m.c + +..\..\..\..\..\temp\csr\table_n.obj: ..\..\..\..\..\src\ta_abstract\tables\table_n.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\table_n.obj ..\..\..\..\..\src\ta_abstract\tables\table_n.c + +..\..\..\..\..\temp\csr\table_o.obj: ..\..\..\..\..\src\ta_abstract\tables\table_o.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\table_o.obj ..\..\..\..\..\src\ta_abstract\tables\table_o.c + +..\..\..\..\..\temp\csr\table_p.obj: ..\..\..\..\..\src\ta_abstract\tables\table_p.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\table_p.obj ..\..\..\..\..\src\ta_abstract\tables\table_p.c + +..\..\..\..\..\temp\csr\table_q.obj: ..\..\..\..\..\src\ta_abstract\tables\table_q.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\table_q.obj ..\..\..\..\..\src\ta_abstract\tables\table_q.c + +..\..\..\..\..\temp\csr\table_r.obj: ..\..\..\..\..\src\ta_abstract\tables\table_r.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\table_r.obj ..\..\..\..\..\src\ta_abstract\tables\table_r.c + +..\..\..\..\..\temp\csr\table_s.obj: ..\..\..\..\..\src\ta_abstract\tables\table_s.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\table_s.obj ..\..\..\..\..\src\ta_abstract\tables\table_s.c + +..\..\..\..\..\temp\csr\table_t.obj: ..\..\..\..\..\src\ta_abstract\tables\table_t.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\table_t.obj ..\..\..\..\..\src\ta_abstract\tables\table_t.c + +..\..\..\..\..\temp\csr\table_u.obj: ..\..\..\..\..\src\ta_abstract\tables\table_u.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\table_u.obj ..\..\..\..\..\src\ta_abstract\tables\table_u.c + +..\..\..\..\..\temp\csr\table_v.obj: ..\..\..\..\..\src\ta_abstract\tables\table_v.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\table_v.obj ..\..\..\..\..\src\ta_abstract\tables\table_v.c + +..\..\..\..\..\temp\csr\table_w.obj: ..\..\..\..\..\src\ta_abstract\tables\table_w.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\table_w.obj ..\..\..\..\..\src\ta_abstract\tables\table_w.c + +..\..\..\..\..\temp\csr\table_x.obj: ..\..\..\..\..\src\ta_abstract\tables\table_x.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\table_x.obj ..\..\..\..\..\src\ta_abstract\tables\table_x.c + +..\..\..\..\..\temp\csr\table_y.obj: ..\..\..\..\..\src\ta_abstract\tables\table_y.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\table_y.obj ..\..\..\..\..\src\ta_abstract\tables\table_y.c + +..\..\..\..\..\temp\csr\table_z.obj: ..\..\..\..\..\src\ta_abstract\tables\table_z.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\table_z.obj ..\..\..\..\..\src\ta_abstract\tables\table_z.c + +..\..\..\..\..\temp\csr\ta_utility.obj: ..\..\..\..\..\src\ta_func\ta_utility.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_utility.obj ..\..\..\..\..\src\ta_func\ta_utility.c + +..\..\..\..\..\temp\csr\ta_ACOS.obj: ..\..\..\..\..\src\ta_func\ta_ACOS.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_ACOS.obj ..\..\..\..\..\src\ta_func\ta_ACOS.c + +..\..\..\..\..\temp\csr\ta_AD.obj: ..\..\..\..\..\src\ta_func\ta_AD.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_AD.obj ..\..\..\..\..\src\ta_func\ta_AD.c + +..\..\..\..\..\temp\csr\ta_ADD.obj: ..\..\..\..\..\src\ta_func\ta_ADD.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_ADD.obj ..\..\..\..\..\src\ta_func\ta_ADD.c + +..\..\..\..\..\temp\csr\ta_ADOSC.obj: ..\..\..\..\..\src\ta_func\ta_ADOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_ADOSC.obj ..\..\..\..\..\src\ta_func\ta_ADOSC.c + +..\..\..\..\..\temp\csr\ta_ADX.obj: ..\..\..\..\..\src\ta_func\ta_ADX.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_ADX.obj ..\..\..\..\..\src\ta_func\ta_ADX.c + +..\..\..\..\..\temp\csr\ta_ADXR.obj: ..\..\..\..\..\src\ta_func\ta_ADXR.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_ADXR.obj ..\..\..\..\..\src\ta_func\ta_ADXR.c + +..\..\..\..\..\temp\csr\ta_APO.obj: ..\..\..\..\..\src\ta_func\ta_APO.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_APO.obj ..\..\..\..\..\src\ta_func\ta_APO.c + +..\..\..\..\..\temp\csr\ta_AROON.obj: ..\..\..\..\..\src\ta_func\ta_AROON.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_AROON.obj ..\..\..\..\..\src\ta_func\ta_AROON.c + +..\..\..\..\..\temp\csr\ta_AROONOSC.obj: ..\..\..\..\..\src\ta_func\ta_AROONOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_AROONOSC.obj ..\..\..\..\..\src\ta_func\ta_AROONOSC.c + +..\..\..\..\..\temp\csr\ta_ASIN.obj: ..\..\..\..\..\src\ta_func\ta_ASIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_ASIN.obj ..\..\..\..\..\src\ta_func\ta_ASIN.c + +..\..\..\..\..\temp\csr\ta_ATAN.obj: ..\..\..\..\..\src\ta_func\ta_ATAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_ATAN.obj ..\..\..\..\..\src\ta_func\ta_ATAN.c + +..\..\..\..\..\temp\csr\ta_ATR.obj: ..\..\..\..\..\src\ta_func\ta_ATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_ATR.obj ..\..\..\..\..\src\ta_func\ta_ATR.c + +..\..\..\..\..\temp\csr\ta_AVGPRICE.obj: ..\..\..\..\..\src\ta_func\ta_AVGPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_AVGPRICE.obj ..\..\..\..\..\src\ta_func\ta_AVGPRICE.c + +..\..\..\..\..\temp\csr\ta_BBANDS.obj: ..\..\..\..\..\src\ta_func\ta_BBANDS.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_BBANDS.obj ..\..\..\..\..\src\ta_func\ta_BBANDS.c + +..\..\..\..\..\temp\csr\ta_BETA.obj: ..\..\..\..\..\src\ta_func\ta_BETA.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_BETA.obj ..\..\..\..\..\src\ta_func\ta_BETA.c + +..\..\..\..\..\temp\csr\ta_BOP.obj: ..\..\..\..\..\src\ta_func\ta_BOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_BOP.obj ..\..\..\..\..\src\ta_func\ta_BOP.c + +..\..\..\..\..\temp\csr\ta_CCI.obj: ..\..\..\..\..\src\ta_func\ta_CCI.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CCI.obj ..\..\..\..\..\src\ta_func\ta_CCI.c + +..\..\..\..\..\temp\csr\ta_CDL2CROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDL2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CDL2CROWS.obj ..\..\..\..\..\src\ta_func\ta_CDL2CROWS.c + +..\..\..\..\..\temp\csr\ta_CDL3BLACKCROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDL3BLACKCROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CDL3BLACKCROWS.obj ..\..\..\..\..\src\ta_func\ta_CDL3BLACKCROWS.c + +..\..\..\..\..\temp\csr\ta_CDL3INSIDE.obj: ..\..\..\..\..\src\ta_func\ta_CDL3INSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CDL3INSIDE.obj ..\..\..\..\..\src\ta_func\ta_CDL3INSIDE.c + +..\..\..\..\..\temp\csr\ta_CDL3LINESTRIKE.obj: ..\..\..\..\..\src\ta_func\ta_CDL3LINESTRIKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CDL3LINESTRIKE.obj ..\..\..\..\..\src\ta_func\ta_CDL3LINESTRIKE.c + +..\..\..\..\..\temp\csr\ta_CDL3OUTSIDE.obj: ..\..\..\..\..\src\ta_func\ta_CDL3OUTSIDE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CDL3OUTSIDE.obj ..\..\..\..\..\src\ta_func\ta_CDL3OUTSIDE.c + +..\..\..\..\..\temp\csr\ta_CDL3STARSINSOUTH.obj: ..\..\..\..\..\src\ta_func\ta_CDL3STARSINSOUTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CDL3STARSINSOUTH.obj ..\..\..\..\..\src\ta_func\ta_CDL3STARSINSOUTH.c + +..\..\..\..\..\temp\csr\ta_CDL3WHITESOLDIERS.obj: ..\..\..\..\..\src\ta_func\ta_CDL3WHITESOLDIERS.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CDL3WHITESOLDIERS.obj ..\..\..\..\..\src\ta_func\ta_CDL3WHITESOLDIERS.c + +..\..\..\..\..\temp\csr\ta_CDLABANDONEDBABY.obj: ..\..\..\..\..\src\ta_func\ta_CDLABANDONEDBABY.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CDLABANDONEDBABY.obj ..\..\..\..\..\src\ta_func\ta_CDLABANDONEDBABY.c + +..\..\..\..\..\temp\csr\ta_CDLADVANCEBLOCK.obj: ..\..\..\..\..\src\ta_func\ta_CDLADVANCEBLOCK.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CDLADVANCEBLOCK.obj ..\..\..\..\..\src\ta_func\ta_CDLADVANCEBLOCK.c + +..\..\..\..\..\temp\csr\ta_CDLBELTHOLD.obj: ..\..\..\..\..\src\ta_func\ta_CDLBELTHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CDLBELTHOLD.obj ..\..\..\..\..\src\ta_func\ta_CDLBELTHOLD.c + +..\..\..\..\..\temp\csr\ta_CDLBREAKAWAY.obj: ..\..\..\..\..\src\ta_func\ta_CDLBREAKAWAY.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CDLBREAKAWAY.obj ..\..\..\..\..\src\ta_func\ta_CDLBREAKAWAY.c + +..\..\..\..\..\temp\csr\ta_CDLCLOSINGMARUBOZU.obj: ..\..\..\..\..\src\ta_func\ta_CDLCLOSINGMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CDLCLOSINGMARUBOZU.obj ..\..\..\..\..\src\ta_func\ta_CDLCLOSINGMARUBOZU.c + +..\..\..\..\..\temp\csr\ta_CDLCONCEALBABYSWALL.obj: ..\..\..\..\..\src\ta_func\ta_CDLCONCEALBABYSWALL.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CDLCONCEALBABYSWALL.obj ..\..\..\..\..\src\ta_func\ta_CDLCONCEALBABYSWALL.c + +..\..\..\..\..\temp\csr\ta_CDLCOUNTERATTACK.obj: ..\..\..\..\..\src\ta_func\ta_CDLCOUNTERATTACK.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CDLCOUNTERATTACK.obj ..\..\..\..\..\src\ta_func\ta_CDLCOUNTERATTACK.c + +..\..\..\..\..\temp\csr\ta_CDLDARKCLOUDCOVER.obj: ..\..\..\..\..\src\ta_func\ta_CDLDARKCLOUDCOVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CDLDARKCLOUDCOVER.obj ..\..\..\..\..\src\ta_func\ta_CDLDARKCLOUDCOVER.c + +..\..\..\..\..\temp\csr\ta_CDLDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CDLDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLDOJI.c + +..\..\..\..\..\temp\csr\ta_CDLDOJISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CDLDOJISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLDOJISTAR.c + +..\..\..\..\..\temp\csr\ta_CDLDRAGONFLYDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLDRAGONFLYDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CDLDRAGONFLYDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLDRAGONFLYDOJI.c + +..\..\..\..\..\temp\csr\ta_CDLENGULFING.obj: ..\..\..\..\..\src\ta_func\ta_CDLENGULFING.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CDLENGULFING.obj ..\..\..\..\..\src\ta_func\ta_CDLENGULFING.c + +..\..\..\..\..\temp\csr\ta_CDLEVENINGDOJISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLEVENINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CDLEVENINGDOJISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLEVENINGDOJISTAR.c + +..\..\..\..\..\temp\csr\ta_CDLEVENINGSTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLEVENINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CDLEVENINGSTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLEVENINGSTAR.c + +..\..\..\..\..\temp\csr\ta_CDLGAPSIDESIDEWHITE.obj: ..\..\..\..\..\src\ta_func\ta_CDLGAPSIDESIDEWHITE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CDLGAPSIDESIDEWHITE.obj ..\..\..\..\..\src\ta_func\ta_CDLGAPSIDESIDEWHITE.c + +..\..\..\..\..\temp\csr\ta_CDLGRAVESTONEDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLGRAVESTONEDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CDLGRAVESTONEDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLGRAVESTONEDOJI.c + +..\..\..\..\..\temp\csr\ta_CDLHAMMER.obj: ..\..\..\..\..\src\ta_func\ta_CDLHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CDLHAMMER.obj ..\..\..\..\..\src\ta_func\ta_CDLHAMMER.c + +..\..\..\..\..\temp\csr\ta_CDLHANGINGMAN.obj: ..\..\..\..\..\src\ta_func\ta_CDLHANGINGMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CDLHANGINGMAN.obj ..\..\..\..\..\src\ta_func\ta_CDLHANGINGMAN.c + +..\..\..\..\..\temp\csr\ta_CDLHARAMI.obj: ..\..\..\..\..\src\ta_func\ta_CDLHARAMI.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CDLHARAMI.obj ..\..\..\..\..\src\ta_func\ta_CDLHARAMI.c + +..\..\..\..\..\temp\csr\ta_CDLHARAMICROSS.obj: ..\..\..\..\..\src\ta_func\ta_CDLHARAMICROSS.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CDLHARAMICROSS.obj ..\..\..\..\..\src\ta_func\ta_CDLHARAMICROSS.c + +..\..\..\..\..\temp\csr\ta_CDLHIGHWAVE.obj: ..\..\..\..\..\src\ta_func\ta_CDLHIGHWAVE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CDLHIGHWAVE.obj ..\..\..\..\..\src\ta_func\ta_CDLHIGHWAVE.c + +..\..\..\..\..\temp\csr\ta_CDLHIKKAKE.obj: ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CDLHIKKAKE.obj ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKE.c + +..\..\..\..\..\temp\csr\ta_CDLHIKKAKEMOD.obj: ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKEMOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CDLHIKKAKEMOD.obj ..\..\..\..\..\src\ta_func\ta_CDLHIKKAKEMOD.c + +..\..\..\..\..\temp\csr\ta_CDLHOMINGPIGEON.obj: ..\..\..\..\..\src\ta_func\ta_CDLHOMINGPIGEON.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CDLHOMINGPIGEON.obj ..\..\..\..\..\src\ta_func\ta_CDLHOMINGPIGEON.c + +..\..\..\..\..\temp\csr\ta_CDLIDENTICAL3CROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDLIDENTICAL3CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CDLIDENTICAL3CROWS.obj ..\..\..\..\..\src\ta_func\ta_CDLIDENTICAL3CROWS.c + +..\..\..\..\..\temp\csr\ta_CDLINNECK.obj: ..\..\..\..\..\src\ta_func\ta_CDLINNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CDLINNECK.obj ..\..\..\..\..\src\ta_func\ta_CDLINNECK.c + +..\..\..\..\..\temp\csr\ta_CDLINVERTEDHAMMER.obj: ..\..\..\..\..\src\ta_func\ta_CDLINVERTEDHAMMER.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CDLINVERTEDHAMMER.obj ..\..\..\..\..\src\ta_func\ta_CDLINVERTEDHAMMER.c + +..\..\..\..\..\temp\csr\ta_CDLKICKING.obj: ..\..\..\..\..\src\ta_func\ta_CDLKICKING.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CDLKICKING.obj ..\..\..\..\..\src\ta_func\ta_CDLKICKING.c + +..\..\..\..\..\temp\csr\ta_CDLKICKINGBYLENGTH.obj: ..\..\..\..\..\src\ta_func\ta_CDLKICKINGBYLENGTH.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CDLKICKINGBYLENGTH.obj ..\..\..\..\..\src\ta_func\ta_CDLKICKINGBYLENGTH.c + +..\..\..\..\..\temp\csr\ta_CDLLADDERBOTTOM.obj: ..\..\..\..\..\src\ta_func\ta_CDLLADDERBOTTOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CDLLADDERBOTTOM.obj ..\..\..\..\..\src\ta_func\ta_CDLLADDERBOTTOM.c + +..\..\..\..\..\temp\csr\ta_CDLLONGLEGGEDDOJI.obj: ..\..\..\..\..\src\ta_func\ta_CDLLONGLEGGEDDOJI.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CDLLONGLEGGEDDOJI.obj ..\..\..\..\..\src\ta_func\ta_CDLLONGLEGGEDDOJI.c + +..\..\..\..\..\temp\csr\ta_CDLLONGLINE.obj: ..\..\..\..\..\src\ta_func\ta_CDLLONGLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CDLLONGLINE.obj ..\..\..\..\..\src\ta_func\ta_CDLLONGLINE.c + +..\..\..\..\..\temp\csr\ta_CDLMARUBOZU.obj: ..\..\..\..\..\src\ta_func\ta_CDLMARUBOZU.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CDLMARUBOZU.obj ..\..\..\..\..\src\ta_func\ta_CDLMARUBOZU.c + +..\..\..\..\..\temp\csr\ta_CDLMATCHINGLOW.obj: ..\..\..\..\..\src\ta_func\ta_CDLMATCHINGLOW.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CDLMATCHINGLOW.obj ..\..\..\..\..\src\ta_func\ta_CDLMATCHINGLOW.c + +..\..\..\..\..\temp\csr\ta_CDLMATHOLD.obj: ..\..\..\..\..\src\ta_func\ta_CDLMATHOLD.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CDLMATHOLD.obj ..\..\..\..\..\src\ta_func\ta_CDLMATHOLD.c + +..\..\..\..\..\temp\csr\ta_CDLMORNINGDOJISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLMORNINGDOJISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CDLMORNINGDOJISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLMORNINGDOJISTAR.c + +..\..\..\..\..\temp\csr\ta_CDLMORNINGSTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLMORNINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CDLMORNINGSTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLMORNINGSTAR.c + +..\..\..\..\..\temp\csr\ta_CDLONNECK.obj: ..\..\..\..\..\src\ta_func\ta_CDLONNECK.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CDLONNECK.obj ..\..\..\..\..\src\ta_func\ta_CDLONNECK.c + +..\..\..\..\..\temp\csr\ta_CDLPIERCING.obj: ..\..\..\..\..\src\ta_func\ta_CDLPIERCING.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CDLPIERCING.obj ..\..\..\..\..\src\ta_func\ta_CDLPIERCING.c + +..\..\..\..\..\temp\csr\ta_CDLRICKSHAWMAN.obj: ..\..\..\..\..\src\ta_func\ta_CDLRICKSHAWMAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CDLRICKSHAWMAN.obj ..\..\..\..\..\src\ta_func\ta_CDLRICKSHAWMAN.c + +..\..\..\..\..\temp\csr\ta_CDLRISEFALL3METHODS.obj: ..\..\..\..\..\src\ta_func\ta_CDLRISEFALL3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CDLRISEFALL3METHODS.obj ..\..\..\..\..\src\ta_func\ta_CDLRISEFALL3METHODS.c + +..\..\..\..\..\temp\csr\ta_CDLSEPARATINGLINES.obj: ..\..\..\..\..\src\ta_func\ta_CDLSEPARATINGLINES.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CDLSEPARATINGLINES.obj ..\..\..\..\..\src\ta_func\ta_CDLSEPARATINGLINES.c + +..\..\..\..\..\temp\csr\ta_CDLSHOOTINGSTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLSHOOTINGSTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CDLSHOOTINGSTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLSHOOTINGSTAR.c + +..\..\..\..\..\temp\csr\ta_CDLSHORTLINE.obj: ..\..\..\..\..\src\ta_func\ta_CDLSHORTLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CDLSHORTLINE.obj ..\..\..\..\..\src\ta_func\ta_CDLSHORTLINE.c + +..\..\..\..\..\temp\csr\ta_CDLSPINNINGTOP.obj: ..\..\..\..\..\src\ta_func\ta_CDLSPINNINGTOP.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CDLSPINNINGTOP.obj ..\..\..\..\..\src\ta_func\ta_CDLSPINNINGTOP.c + +..\..\..\..\..\temp\csr\ta_CDLSTALLEDPATTERN.obj: ..\..\..\..\..\src\ta_func\ta_CDLSTALLEDPATTERN.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CDLSTALLEDPATTERN.obj ..\..\..\..\..\src\ta_func\ta_CDLSTALLEDPATTERN.c + +..\..\..\..\..\temp\csr\ta_CDLSTICKSANDWICH.obj: ..\..\..\..\..\src\ta_func\ta_CDLSTICKSANDWICH.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CDLSTICKSANDWICH.obj ..\..\..\..\..\src\ta_func\ta_CDLSTICKSANDWICH.c + +..\..\..\..\..\temp\csr\ta_CDLTAKURI.obj: ..\..\..\..\..\src\ta_func\ta_CDLTAKURI.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CDLTAKURI.obj ..\..\..\..\..\src\ta_func\ta_CDLTAKURI.c + +..\..\..\..\..\temp\csr\ta_CDLTASUKIGAP.obj: ..\..\..\..\..\src\ta_func\ta_CDLTASUKIGAP.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CDLTASUKIGAP.obj ..\..\..\..\..\src\ta_func\ta_CDLTASUKIGAP.c + +..\..\..\..\..\temp\csr\ta_CDLTHRUSTING.obj: ..\..\..\..\..\src\ta_func\ta_CDLTHRUSTING.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CDLTHRUSTING.obj ..\..\..\..\..\src\ta_func\ta_CDLTHRUSTING.c + +..\..\..\..\..\temp\csr\ta_CDLTRISTAR.obj: ..\..\..\..\..\src\ta_func\ta_CDLTRISTAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CDLTRISTAR.obj ..\..\..\..\..\src\ta_func\ta_CDLTRISTAR.c + +..\..\..\..\..\temp\csr\ta_CDLUNIQUE3RIVER.obj: ..\..\..\..\..\src\ta_func\ta_CDLUNIQUE3RIVER.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CDLUNIQUE3RIVER.obj ..\..\..\..\..\src\ta_func\ta_CDLUNIQUE3RIVER.c + +..\..\..\..\..\temp\csr\ta_CDLUPSIDEGAP2CROWS.obj: ..\..\..\..\..\src\ta_func\ta_CDLUPSIDEGAP2CROWS.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CDLUPSIDEGAP2CROWS.obj ..\..\..\..\..\src\ta_func\ta_CDLUPSIDEGAP2CROWS.c + +..\..\..\..\..\temp\csr\ta_CDLXSIDEGAP3METHODS.obj: ..\..\..\..\..\src\ta_func\ta_CDLXSIDEGAP3METHODS.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CDLXSIDEGAP3METHODS.obj ..\..\..\..\..\src\ta_func\ta_CDLXSIDEGAP3METHODS.c + +..\..\..\..\..\temp\csr\ta_CEIL.obj: ..\..\..\..\..\src\ta_func\ta_CEIL.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CEIL.obj ..\..\..\..\..\src\ta_func\ta_CEIL.c + +..\..\..\..\..\temp\csr\ta_CMO.obj: ..\..\..\..\..\src\ta_func\ta_CMO.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CMO.obj ..\..\..\..\..\src\ta_func\ta_CMO.c + +..\..\..\..\..\temp\csr\ta_CORREL.obj: ..\..\..\..\..\src\ta_func\ta_CORREL.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_CORREL.obj ..\..\..\..\..\src\ta_func\ta_CORREL.c + +..\..\..\..\..\temp\csr\ta_COS.obj: ..\..\..\..\..\src\ta_func\ta_COS.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_COS.obj ..\..\..\..\..\src\ta_func\ta_COS.c + +..\..\..\..\..\temp\csr\ta_COSH.obj: ..\..\..\..\..\src\ta_func\ta_COSH.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_COSH.obj ..\..\..\..\..\src\ta_func\ta_COSH.c + +..\..\..\..\..\temp\csr\ta_DEMA.obj: ..\..\..\..\..\src\ta_func\ta_DEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_DEMA.obj ..\..\..\..\..\src\ta_func\ta_DEMA.c + +..\..\..\..\..\temp\csr\ta_DIV.obj: ..\..\..\..\..\src\ta_func\ta_DIV.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_DIV.obj ..\..\..\..\..\src\ta_func\ta_DIV.c + +..\..\..\..\..\temp\csr\ta_DX.obj: ..\..\..\..\..\src\ta_func\ta_DX.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_DX.obj ..\..\..\..\..\src\ta_func\ta_DX.c + +..\..\..\..\..\temp\csr\ta_EMA.obj: ..\..\..\..\..\src\ta_func\ta_EMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_EMA.obj ..\..\..\..\..\src\ta_func\ta_EMA.c + +..\..\..\..\..\temp\csr\ta_EXP.obj: ..\..\..\..\..\src\ta_func\ta_EXP.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_EXP.obj ..\..\..\..\..\src\ta_func\ta_EXP.c + +..\..\..\..\..\temp\csr\ta_FLOOR.obj: ..\..\..\..\..\src\ta_func\ta_FLOOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_FLOOR.obj ..\..\..\..\..\src\ta_func\ta_FLOOR.c + +..\..\..\..\..\temp\csr\ta_HT_DCPERIOD.obj: ..\..\..\..\..\src\ta_func\ta_HT_DCPERIOD.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_HT_DCPERIOD.obj ..\..\..\..\..\src\ta_func\ta_HT_DCPERIOD.c + +..\..\..\..\..\temp\csr\ta_HT_DCPHASE.obj: ..\..\..\..\..\src\ta_func\ta_HT_DCPHASE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_HT_DCPHASE.obj ..\..\..\..\..\src\ta_func\ta_HT_DCPHASE.c + +..\..\..\..\..\temp\csr\ta_HT_PHASOR.obj: ..\..\..\..\..\src\ta_func\ta_HT_PHASOR.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_HT_PHASOR.obj ..\..\..\..\..\src\ta_func\ta_HT_PHASOR.c + +..\..\..\..\..\temp\csr\ta_HT_SINE.obj: ..\..\..\..\..\src\ta_func\ta_HT_SINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_HT_SINE.obj ..\..\..\..\..\src\ta_func\ta_HT_SINE.c + +..\..\..\..\..\temp\csr\ta_HT_TRENDLINE.obj: ..\..\..\..\..\src\ta_func\ta_HT_TRENDLINE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_HT_TRENDLINE.obj ..\..\..\..\..\src\ta_func\ta_HT_TRENDLINE.c + +..\..\..\..\..\temp\csr\ta_HT_TRENDMODE.obj: ..\..\..\..\..\src\ta_func\ta_HT_TRENDMODE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_HT_TRENDMODE.obj ..\..\..\..\..\src\ta_func\ta_HT_TRENDMODE.c + +..\..\..\..\..\temp\csr\ta_KAMA.obj: ..\..\..\..\..\src\ta_func\ta_KAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_KAMA.obj ..\..\..\..\..\src\ta_func\ta_KAMA.c + +..\..\..\..\..\temp\csr\ta_LINEARREG.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_LINEARREG.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG.c + +..\..\..\..\..\temp\csr\ta_LINEARREG_ANGLE.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG_ANGLE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_LINEARREG_ANGLE.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG_ANGLE.c + +..\..\..\..\..\temp\csr\ta_LINEARREG_INTERCEPT.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG_INTERCEPT.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_LINEARREG_INTERCEPT.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG_INTERCEPT.c + +..\..\..\..\..\temp\csr\ta_LINEARREG_SLOPE.obj: ..\..\..\..\..\src\ta_func\ta_LINEARREG_SLOPE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_LINEARREG_SLOPE.obj ..\..\..\..\..\src\ta_func\ta_LINEARREG_SLOPE.c + +..\..\..\..\..\temp\csr\ta_LN.obj: ..\..\..\..\..\src\ta_func\ta_LN.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_LN.obj ..\..\..\..\..\src\ta_func\ta_LN.c + +..\..\..\..\..\temp\csr\ta_LOG10.obj: ..\..\..\..\..\src\ta_func\ta_LOG10.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_LOG10.obj ..\..\..\..\..\src\ta_func\ta_LOG10.c + +..\..\..\..\..\temp\csr\ta_MA.obj: ..\..\..\..\..\src\ta_func\ta_MA.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_MA.obj ..\..\..\..\..\src\ta_func\ta_MA.c + +..\..\..\..\..\temp\csr\ta_MACD.obj: ..\..\..\..\..\src\ta_func\ta_MACD.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_MACD.obj ..\..\..\..\..\src\ta_func\ta_MACD.c + +..\..\..\..\..\temp\csr\ta_MACDEXT.obj: ..\..\..\..\..\src\ta_func\ta_MACDEXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_MACDEXT.obj ..\..\..\..\..\src\ta_func\ta_MACDEXT.c + +..\..\..\..\..\temp\csr\ta_MACDFIX.obj: ..\..\..\..\..\src\ta_func\ta_MACDFIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_MACDFIX.obj ..\..\..\..\..\src\ta_func\ta_MACDFIX.c + +..\..\..\..\..\temp\csr\ta_MAMA.obj: ..\..\..\..\..\src\ta_func\ta_MAMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_MAMA.obj ..\..\..\..\..\src\ta_func\ta_MAMA.c + +..\..\..\..\..\temp\csr\ta_MAVP.obj: ..\..\..\..\..\src\ta_func\ta_MAVP.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_MAVP.obj ..\..\..\..\..\src\ta_func\ta_MAVP.c + +..\..\..\..\..\temp\csr\ta_MAX.obj: ..\..\..\..\..\src\ta_func\ta_MAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_MAX.obj ..\..\..\..\..\src\ta_func\ta_MAX.c + +..\..\..\..\..\temp\csr\ta_MAXINDEX.obj: ..\..\..\..\..\src\ta_func\ta_MAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_MAXINDEX.obj ..\..\..\..\..\src\ta_func\ta_MAXINDEX.c + +..\..\..\..\..\temp\csr\ta_MEDPRICE.obj: ..\..\..\..\..\src\ta_func\ta_MEDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_MEDPRICE.obj ..\..\..\..\..\src\ta_func\ta_MEDPRICE.c + +..\..\..\..\..\temp\csr\ta_MFI.obj: ..\..\..\..\..\src\ta_func\ta_MFI.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_MFI.obj ..\..\..\..\..\src\ta_func\ta_MFI.c + +..\..\..\..\..\temp\csr\ta_MIDPOINT.obj: ..\..\..\..\..\src\ta_func\ta_MIDPOINT.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_MIDPOINT.obj ..\..\..\..\..\src\ta_func\ta_MIDPOINT.c + +..\..\..\..\..\temp\csr\ta_MIDPRICE.obj: ..\..\..\..\..\src\ta_func\ta_MIDPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_MIDPRICE.obj ..\..\..\..\..\src\ta_func\ta_MIDPRICE.c + +..\..\..\..\..\temp\csr\ta_MIN.obj: ..\..\..\..\..\src\ta_func\ta_MIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_MIN.obj ..\..\..\..\..\src\ta_func\ta_MIN.c + +..\..\..\..\..\temp\csr\ta_MININDEX.obj: ..\..\..\..\..\src\ta_func\ta_MININDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_MININDEX.obj ..\..\..\..\..\src\ta_func\ta_MININDEX.c + +..\..\..\..\..\temp\csr\ta_MINMAX.obj: ..\..\..\..\..\src\ta_func\ta_MINMAX.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_MINMAX.obj ..\..\..\..\..\src\ta_func\ta_MINMAX.c + +..\..\..\..\..\temp\csr\ta_MINMAXINDEX.obj: ..\..\..\..\..\src\ta_func\ta_MINMAXINDEX.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_MINMAXINDEX.obj ..\..\..\..\..\src\ta_func\ta_MINMAXINDEX.c + +..\..\..\..\..\temp\csr\ta_MINUS_DI.obj: ..\..\..\..\..\src\ta_func\ta_MINUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_MINUS_DI.obj ..\..\..\..\..\src\ta_func\ta_MINUS_DI.c + +..\..\..\..\..\temp\csr\ta_MINUS_DM.obj: ..\..\..\..\..\src\ta_func\ta_MINUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_MINUS_DM.obj ..\..\..\..\..\src\ta_func\ta_MINUS_DM.c + +..\..\..\..\..\temp\csr\ta_MOM.obj: ..\..\..\..\..\src\ta_func\ta_MOM.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_MOM.obj ..\..\..\..\..\src\ta_func\ta_MOM.c + +..\..\..\..\..\temp\csr\ta_MULT.obj: ..\..\..\..\..\src\ta_func\ta_MULT.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_MULT.obj ..\..\..\..\..\src\ta_func\ta_MULT.c + +..\..\..\..\..\temp\csr\ta_NATR.obj: ..\..\..\..\..\src\ta_func\ta_NATR.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_NATR.obj ..\..\..\..\..\src\ta_func\ta_NATR.c + +..\..\..\..\..\temp\csr\ta_OBV.obj: ..\..\..\..\..\src\ta_func\ta_OBV.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_OBV.obj ..\..\..\..\..\src\ta_func\ta_OBV.c + +..\..\..\..\..\temp\csr\ta_PLUS_DI.obj: ..\..\..\..\..\src\ta_func\ta_PLUS_DI.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_PLUS_DI.obj ..\..\..\..\..\src\ta_func\ta_PLUS_DI.c + +..\..\..\..\..\temp\csr\ta_PLUS_DM.obj: ..\..\..\..\..\src\ta_func\ta_PLUS_DM.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_PLUS_DM.obj ..\..\..\..\..\src\ta_func\ta_PLUS_DM.c + +..\..\..\..\..\temp\csr\ta_PPO.obj: ..\..\..\..\..\src\ta_func\ta_PPO.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_PPO.obj ..\..\..\..\..\src\ta_func\ta_PPO.c + +..\..\..\..\..\temp\csr\ta_ROC.obj: ..\..\..\..\..\src\ta_func\ta_ROC.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_ROC.obj ..\..\..\..\..\src\ta_func\ta_ROC.c + +..\..\..\..\..\temp\csr\ta_ROCP.obj: ..\..\..\..\..\src\ta_func\ta_ROCP.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_ROCP.obj ..\..\..\..\..\src\ta_func\ta_ROCP.c + +..\..\..\..\..\temp\csr\ta_ROCR.obj: ..\..\..\..\..\src\ta_func\ta_ROCR.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_ROCR.obj ..\..\..\..\..\src\ta_func\ta_ROCR.c + +..\..\..\..\..\temp\csr\ta_ROCR100.obj: ..\..\..\..\..\src\ta_func\ta_ROCR100.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_ROCR100.obj ..\..\..\..\..\src\ta_func\ta_ROCR100.c + +..\..\..\..\..\temp\csr\ta_RSI.obj: ..\..\..\..\..\src\ta_func\ta_RSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_RSI.obj ..\..\..\..\..\src\ta_func\ta_RSI.c + +..\..\..\..\..\temp\csr\ta_SAR.obj: ..\..\..\..\..\src\ta_func\ta_SAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_SAR.obj ..\..\..\..\..\src\ta_func\ta_SAR.c + +..\..\..\..\..\temp\csr\ta_SAREXT.obj: ..\..\..\..\..\src\ta_func\ta_SAREXT.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_SAREXT.obj ..\..\..\..\..\src\ta_func\ta_SAREXT.c + +..\..\..\..\..\temp\csr\ta_SIN.obj: ..\..\..\..\..\src\ta_func\ta_SIN.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_SIN.obj ..\..\..\..\..\src\ta_func\ta_SIN.c + +..\..\..\..\..\temp\csr\ta_SINH.obj: ..\..\..\..\..\src\ta_func\ta_SINH.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_SINH.obj ..\..\..\..\..\src\ta_func\ta_SINH.c + +..\..\..\..\..\temp\csr\ta_SMA.obj: ..\..\..\..\..\src\ta_func\ta_SMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_SMA.obj ..\..\..\..\..\src\ta_func\ta_SMA.c + +..\..\..\..\..\temp\csr\ta_SQRT.obj: ..\..\..\..\..\src\ta_func\ta_SQRT.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_SQRT.obj ..\..\..\..\..\src\ta_func\ta_SQRT.c + +..\..\..\..\..\temp\csr\ta_STDDEV.obj: ..\..\..\..\..\src\ta_func\ta_STDDEV.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_STDDEV.obj ..\..\..\..\..\src\ta_func\ta_STDDEV.c + +..\..\..\..\..\temp\csr\ta_STOCH.obj: ..\..\..\..\..\src\ta_func\ta_STOCH.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_STOCH.obj ..\..\..\..\..\src\ta_func\ta_STOCH.c + +..\..\..\..\..\temp\csr\ta_STOCHF.obj: ..\..\..\..\..\src\ta_func\ta_STOCHF.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_STOCHF.obj ..\..\..\..\..\src\ta_func\ta_STOCHF.c + +..\..\..\..\..\temp\csr\ta_STOCHRSI.obj: ..\..\..\..\..\src\ta_func\ta_STOCHRSI.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_STOCHRSI.obj ..\..\..\..\..\src\ta_func\ta_STOCHRSI.c + +..\..\..\..\..\temp\csr\ta_SUB.obj: ..\..\..\..\..\src\ta_func\ta_SUB.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_SUB.obj ..\..\..\..\..\src\ta_func\ta_SUB.c + +..\..\..\..\..\temp\csr\ta_SUM.obj: ..\..\..\..\..\src\ta_func\ta_SUM.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_SUM.obj ..\..\..\..\..\src\ta_func\ta_SUM.c + +..\..\..\..\..\temp\csr\ta_T3.obj: ..\..\..\..\..\src\ta_func\ta_T3.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_T3.obj ..\..\..\..\..\src\ta_func\ta_T3.c + +..\..\..\..\..\temp\csr\ta_TAN.obj: ..\..\..\..\..\src\ta_func\ta_TAN.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_TAN.obj ..\..\..\..\..\src\ta_func\ta_TAN.c + +..\..\..\..\..\temp\csr\ta_TANH.obj: ..\..\..\..\..\src\ta_func\ta_TANH.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_TANH.obj ..\..\..\..\..\src\ta_func\ta_TANH.c + +..\..\..\..\..\temp\csr\ta_TEMA.obj: ..\..\..\..\..\src\ta_func\ta_TEMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_TEMA.obj ..\..\..\..\..\src\ta_func\ta_TEMA.c + +..\..\..\..\..\temp\csr\ta_TRANGE.obj: ..\..\..\..\..\src\ta_func\ta_TRANGE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_TRANGE.obj ..\..\..\..\..\src\ta_func\ta_TRANGE.c + +..\..\..\..\..\temp\csr\ta_TRIMA.obj: ..\..\..\..\..\src\ta_func\ta_TRIMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_TRIMA.obj ..\..\..\..\..\src\ta_func\ta_TRIMA.c + +..\..\..\..\..\temp\csr\ta_TRIX.obj: ..\..\..\..\..\src\ta_func\ta_TRIX.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_TRIX.obj ..\..\..\..\..\src\ta_func\ta_TRIX.c + +..\..\..\..\..\temp\csr\ta_TSF.obj: ..\..\..\..\..\src\ta_func\ta_TSF.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_TSF.obj ..\..\..\..\..\src\ta_func\ta_TSF.c + +..\..\..\..\..\temp\csr\ta_TYPPRICE.obj: ..\..\..\..\..\src\ta_func\ta_TYPPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_TYPPRICE.obj ..\..\..\..\..\src\ta_func\ta_TYPPRICE.c + +..\..\..\..\..\temp\csr\ta_ULTOSC.obj: ..\..\..\..\..\src\ta_func\ta_ULTOSC.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_ULTOSC.obj ..\..\..\..\..\src\ta_func\ta_ULTOSC.c + +..\..\..\..\..\temp\csr\ta_VAR.obj: ..\..\..\..\..\src\ta_func\ta_VAR.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_VAR.obj ..\..\..\..\..\src\ta_func\ta_VAR.c + +..\..\..\..\..\temp\csr\ta_WCLPRICE.obj: ..\..\..\..\..\src\ta_func\ta_WCLPRICE.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_WCLPRICE.obj ..\..\..\..\..\src\ta_func\ta_WCLPRICE.c + +..\..\..\..\..\temp\csr\ta_WILLR.obj: ..\..\..\..\..\src\ta_func\ta_WILLR.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_WILLR.obj ..\..\..\..\..\src\ta_func\ta_WILLR.c + +..\..\..\..\..\temp\csr\ta_WMA.obj: ..\..\..\..\..\src\ta_func\ta_WMA.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_WMA.obj ..\..\..\..\..\src\ta_func\ta_WMA.c + diff --git a/make/csr/win32/watcom/ta_regtest/Makefile b/make/csr/win32/watcom/ta_regtest/Makefile new file mode 100644 index 000000000..7791c46e2 --- /dev/null +++ b/make/csr/win32/watcom/ta_regtest/Makefile @@ -0,0 +1,219 @@ +############################################################################# +# Makefile for building ta_regtest +# Generated by tmake; +# Project: ta_regtest/ta_regtest +# Template: app +############################################################################# + +####### Compiler, tools and options + +CC = wcl386 +CXX = wcl386 +CFLAGS = -zq -w2 -ox -d=TA_SINGLE_THREAD -d=WIN32 +CXXFLAGS= -zq -w2 -ox -d=TA_SINGLE_THREAD -d=WIN32 +INCPATH = -i="..\..\..\..\..\src\ta_common" -i="..\..\..\..\..\src\tools\ta_regtest" -i="..\..\..\..\..\src\ta_func" -i="..\..\..\..\..\include" +LINK = wlink +LFLAGS = op quiet op c sys nt +LIBS = ..\..\..\..\..\lib\ta_libc_csr.lib +MOC = moc + +ZIP = zip -r -9 + +####### Files + +HEADERS = +SOURCES = ..\..\..\..\..\src\tools\ta_regtest\ta_regtest.c & + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_candlestick.c & + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_1in_1out.c & + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_1in_2out.c & + ..\..\..\..\..\src\tools\ta_regtest\test_internals.c & + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_adx.c & + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_bbands.c & + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_ma.c & + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_macd.c & + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_minmax.c & + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_mom.c & + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_ema.c & + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hl.c & + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hlc.c & + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hlcv.c & + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_ohlc.c & + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_po.c & + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_rsi.c & + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_sar.c & + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_stddev.c & + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_stoch.c & + ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_trange.c & + ..\..\..\..\..\src\tools\ta_regtest\test_util.c & + ..\..\..\..\..\src\tools\ta_regtest\test_data.c & + ..\..\..\..\..\src\tools\ta_regtest\test_abstract.c +OBJECTS = ..\..\..\..\..\temp\csr\ta_regtest.obj & + ..\..\..\..\..\temp\csr\test_candlestick.obj & + ..\..\..\..\..\temp\csr\test_1in_1out.obj & + ..\..\..\..\..\temp\csr\test_1in_2out.obj & + ..\..\..\..\..\temp\csr\test_internals.obj & + ..\..\..\..\..\temp\csr\test_adx.obj & + ..\..\..\..\..\temp\csr\test_bbands.obj & + ..\..\..\..\..\temp\csr\test_ma.obj & + ..\..\..\..\..\temp\csr\test_macd.obj & + ..\..\..\..\..\temp\csr\test_minmax.obj & + ..\..\..\..\..\temp\csr\test_mom.obj & + ..\..\..\..\..\temp\csr\test_per_ema.obj & + ..\..\..\..\..\temp\csr\test_per_hl.obj & + ..\..\..\..\..\temp\csr\test_per_hlc.obj & + ..\..\..\..\..\temp\csr\test_per_hlcv.obj & + ..\..\..\..\..\temp\csr\test_per_ohlc.obj & + ..\..\..\..\..\temp\csr\test_po.obj & + ..\..\..\..\..\temp\csr\test_rsi.obj & + ..\..\..\..\..\temp\csr\test_sar.obj & + ..\..\..\..\..\temp\csr\test_stddev.obj & + ..\..\..\..\..\temp\csr\test_stoch.obj & + ..\..\..\..\..\temp\csr\test_trange.obj & + ..\..\..\..\..\temp\csr\test_util.obj & + ..\..\..\..\..\temp\csr\test_data.obj & + ..\..\..\..\..\temp\csr\test_abstract.obj +SRCMOC = +OBJMOC = +DIST = +TARGET = ..\..\..\..\..\bin\ta_regtest.exe +TMPLIST = ta_regtest.lst + +####### Build rules + +all: $(TARGET) + +$(TARGET): $(OBJECTS) $(OBJMOC) + @%create $(TMPLIST) + @%append $(TMPLIST) NAME ta_regtest + @%append $(TMPLIST) FIL ..\..\..\..\..\temp\csr\ta_regtest.obj,..\..\..\..\..\temp\csr\test_candlestick.obj,..\..\..\..\..\temp\csr\test_1in_1out.obj,..\..\..\..\..\temp\csr\test_1in_2out.obj,..\..\..\..\..\temp\csr\test_internals.obj,..\..\..\..\..\temp\csr\test_adx.obj,..\..\..\..\..\temp\csr\test_bbands.obj,..\..\..\..\..\temp\csr\test_ma.obj,..\..\..\..\..\temp\csr\test_macd.obj,..\..\..\..\..\temp\csr\test_minmax.obj,..\..\..\..\..\temp\csr\test_mom.obj,..\..\..\..\..\temp\csr\test_per_ema.obj,..\..\..\..\..\temp\csr\test_per_hl.obj,..\..\..\..\..\temp\csr\test_per_hlc.obj,..\..\..\..\..\temp\csr\test_per_hlcv.obj,..\..\..\..\..\temp\csr\test_per_ohlc.obj,..\..\..\..\..\temp\csr\test_po.obj,..\..\..\..\..\temp\csr\test_rsi.obj,..\..\..\..\..\temp\csr\test_sar.obj,..\..\..\..\..\temp\csr\test_stddev.obj,..\..\..\..\..\temp\csr\test_stoch.obj,..\..\..\..\..\temp\csr\test_trange.obj,..\..\..\..\..\temp\csr\test_util.obj,..\..\..\..\..\temp\csr\test_data.obj,..\..\..\..\..\temp\csr\test_abstract.obj + @%append $(TMPLIST) LIBR ..\..\..\..\..\lib\ta_libc_csr.lib + $(LINK) $(LFLAGS) @$(TMPLIST) + del $(TMPLIST) + +moc: $(SRCMOC) + +tmake: ../csr/win32/watcom/ta_regtest/Makefile + +../csr/win32/watcom/ta_regtest/Makefile: ta_regtest/ta_regtest.pro + tmake ta_regtest/ta_regtest.pro -o ../csr/win32/watcom/ta_regtest/Makefile + +dist: + $(ZIP) ta_regtest/ta_regtest.zip ta_regtest/ta_regtest.pro $(SOURCES) $(HEADERS) $(DIST) + +clean: + -del ..\..\..\..\..\temp\csr\ta_regtest.obj + -del ..\..\..\..\..\temp\csr\test_candlestick.obj + -del ..\..\..\..\..\temp\csr\test_1in_1out.obj + -del ..\..\..\..\..\temp\csr\test_1in_2out.obj + -del ..\..\..\..\..\temp\csr\test_internals.obj + -del ..\..\..\..\..\temp\csr\test_adx.obj + -del ..\..\..\..\..\temp\csr\test_bbands.obj + -del ..\..\..\..\..\temp\csr\test_ma.obj + -del ..\..\..\..\..\temp\csr\test_macd.obj + -del ..\..\..\..\..\temp\csr\test_minmax.obj + -del ..\..\..\..\..\temp\csr\test_mom.obj + -del ..\..\..\..\..\temp\csr\test_per_ema.obj + -del ..\..\..\..\..\temp\csr\test_per_hl.obj + -del ..\..\..\..\..\temp\csr\test_per_hlc.obj + -del ..\..\..\..\..\temp\csr\test_per_hlcv.obj + -del ..\..\..\..\..\temp\csr\test_per_ohlc.obj + -del ..\..\..\..\..\temp\csr\test_po.obj + -del ..\..\..\..\..\temp\csr\test_rsi.obj + -del ..\..\..\..\..\temp\csr\test_sar.obj + -del ..\..\..\..\..\temp\csr\test_stddev.obj + -del ..\..\..\..\..\temp\csr\test_stoch.obj + -del ..\..\..\..\..\temp\csr\test_trange.obj + -del ..\..\..\..\..\temp\csr\test_util.obj + -del ..\..\..\..\..\temp\csr\test_data.obj + -del ..\..\..\..\..\temp\csr\test_abstract.obj + -del $(TARGET) + -del ../../../../../bin/*.map + -del ../../../../../bin/*._xe + -del ../../../../../bin/*.tds + -del ../../../../../bin/*.pdb + -del ../../../../../bin/*.pbo + -del ../../../../../bin/*.pbi + -del ../../../../../bin/*.pbt + -del ../../../../../temp/csr/*.pch + -del ../../../../../temp/csr/*.idb + -del ../../../../../temp/csr/ta_regtest/*.pch + -del ../../../../../temp/csr/ta_regtest/*.idb + -del ../../../../../temp/csr/ta_regtest/*.obj + +####### Compile + +..\..\..\..\..\temp\csr\ta_regtest.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_regtest.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\ta_regtest.obj ..\..\..\..\..\src\tools\ta_regtest\ta_regtest.c + +..\..\..\..\..\temp\csr\test_candlestick.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_candlestick.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\test_candlestick.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_candlestick.c + +..\..\..\..\..\temp\csr\test_1in_1out.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_1in_1out.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\test_1in_1out.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_1in_1out.c + +..\..\..\..\..\temp\csr\test_1in_2out.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_1in_2out.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\test_1in_2out.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_1in_2out.c + +..\..\..\..\..\temp\csr\test_internals.obj: ..\..\..\..\..\src\tools\ta_regtest\test_internals.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\test_internals.obj ..\..\..\..\..\src\tools\ta_regtest\test_internals.c + +..\..\..\..\..\temp\csr\test_adx.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_adx.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\test_adx.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_adx.c + +..\..\..\..\..\temp\csr\test_bbands.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_bbands.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\test_bbands.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_bbands.c + +..\..\..\..\..\temp\csr\test_ma.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_ma.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\test_ma.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_ma.c + +..\..\..\..\..\temp\csr\test_macd.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_macd.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\test_macd.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_macd.c + +..\..\..\..\..\temp\csr\test_minmax.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_minmax.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\test_minmax.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_minmax.c + +..\..\..\..\..\temp\csr\test_mom.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_mom.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\test_mom.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_mom.c + +..\..\..\..\..\temp\csr\test_per_ema.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_ema.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\test_per_ema.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_ema.c + +..\..\..\..\..\temp\csr\test_per_hl.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hl.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\test_per_hl.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hl.c + +..\..\..\..\..\temp\csr\test_per_hlc.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hlc.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\test_per_hlc.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hlc.c + +..\..\..\..\..\temp\csr\test_per_hlcv.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hlcv.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\test_per_hlcv.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_hlcv.c + +..\..\..\..\..\temp\csr\test_per_ohlc.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_ohlc.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\test_per_ohlc.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_per_ohlc.c + +..\..\..\..\..\temp\csr\test_po.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_po.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\test_po.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_po.c + +..\..\..\..\..\temp\csr\test_rsi.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_rsi.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\test_rsi.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_rsi.c + +..\..\..\..\..\temp\csr\test_sar.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_sar.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\test_sar.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_sar.c + +..\..\..\..\..\temp\csr\test_stddev.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_stddev.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\test_stddev.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_stddev.c + +..\..\..\..\..\temp\csr\test_stoch.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_stoch.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\test_stoch.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_stoch.c + +..\..\..\..\..\temp\csr\test_trange.obj: ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_trange.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\test_trange.obj ..\..\..\..\..\src\tools\ta_regtest\ta_test_func\test_trange.c + +..\..\..\..\..\temp\csr\test_util.obj: ..\..\..\..\..\src\tools\ta_regtest\test_util.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\test_util.obj ..\..\..\..\..\src\tools\ta_regtest\test_util.c + +..\..\..\..\..\temp\csr\test_data.obj: ..\..\..\..\..\src\tools\ta_regtest\test_data.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\test_data.obj ..\..\..\..\..\src\tools\ta_regtest\test_data.c + +..\..\..\..\..\temp\csr\test_abstract.obj: ..\..\..\..\..\src\tools\ta_regtest\test_abstract.c + $(CC) -c $(CFLAGS) $(INCPATH) -fo=..\..\..\..\..\temp\csr\test_abstract.obj ..\..\..\..\..\src\tools\ta_regtest\test_abstract.c + diff --git a/make/gen_make/README.TXT b/make/gen_make/README.TXT new file mode 100644 index 000000000..70e375f95 --- /dev/null +++ b/make/gen_make/README.TXT @@ -0,0 +1,40 @@ +================================ +How to regenerate the Makefiles? +================================ +All makefiles are re-generated by doing: + +c:\> perl ./gen_make.pl + +If you did add a TA function, you must first compile +and run gen_code. This will generate: + "ta-lib\ta_func_list.txt" + +This .txt file is used as an input to re-generate many +makefiles when gen_make.pl is executed. + +============== +What is tmake? +============== +The makefiles are generated by tmake. This utility +is not included in this package. This is freely +available from Trolltech (the maker of the QT +library). Just put the tmake in your path and +you are done (TA-lib comes with all the required +template). + +TMake version tested: V1.7 and V1.8 + +A bug in V1.9 and 1.10 prevents tmake to work. +For now, use an older tmake version. + +================================ +Porting to new Compiler/platform +================================ +If you can't find your platform-compiler +in the ta-lib/c/make/template, you may consider +to copy additional templates from the TMAKE +distribution. + +The gen_make.pl will create all the needed +directories and generates Makefiles for all +templates find in ta-lib/c/make/template. diff --git a/make/gen_make/gen_code/gen_code.pro b/make/gen_make/gen_code/gen_code.pro new file mode 100644 index 000000000..5b56cc24f --- /dev/null +++ b/make/gen_make/gen_code/gen_code.pro @@ -0,0 +1,151 @@ +TEMPLATE = app +CONFIG -= qt + +# Force this application to be a console application +CONFIG -= windows +CONFIG += console + +# Identify the temp dir +cmd:OBJECTS_DIR = ../../../../../temp/cmd/gen_code +cmr:OBJECTS_DIR = ../../../../../temp/cmr/gen_code +cmp:OBJECTS_DIR = ../../../../../temp/cmp/gen_code +csd:OBJECTS_DIR = ../../../../../temp/csd/gen_code +csr:OBJECTS_DIR = ../../../../../temp/csr/gen_code +csp:OBJECTS_DIR = ../../../../../temp/csp/gen_code +cdr:OBJECTS_DIR = ../../../../../temp/cdr/gen_code +cdd:OBJECTS_DIR = ../../../../../temp/cdd/gen_code + +# Output info +TARGET = gen_code +DESTDIR = ../../../../../bin + +# Files to process + +SOURCES = ../../../../../src/tools/gen_code/gen_code.c \ + ../../../../../src/ta_abstract/ta_abstract.c \ + ../../../../../src/ta_abstract/ta_def_ui.c \ + ../../../../../src/ta_abstract/tables/table_a.c \ + ../../../../../src/ta_abstract/tables/table_b.c \ + ../../../../../src/ta_abstract/tables/table_c.c \ + ../../../../../src/ta_abstract/tables/table_d.c \ + ../../../../../src/ta_abstract/tables/table_e.c \ + ../../../../../src/ta_abstract/tables/table_f.c \ + ../../../../../src/ta_abstract/tables/table_g.c \ + ../../../../../src/ta_abstract/tables/table_h.c \ + ../../../../../src/ta_abstract/tables/table_i.c \ + ../../../../../src/ta_abstract/tables/table_j.c \ + ../../../../../src/ta_abstract/tables/table_k.c \ + ../../../../../src/ta_abstract/tables/table_l.c \ + ../../../../../src/ta_abstract/tables/table_m.c \ + ../../../../../src/ta_abstract/tables/table_n.c \ + ../../../../../src/ta_abstract/tables/table_o.c \ + ../../../../../src/ta_abstract/tables/table_p.c \ + ../../../../../src/ta_abstract/tables/table_q.c \ + ../../../../../src/ta_abstract/tables/table_r.c \ + ../../../../../src/ta_abstract/tables/table_s.c \ + ../../../../../src/ta_abstract/tables/table_t.c \ + ../../../../../src/ta_abstract/tables/table_u.c \ + ../../../../../src/ta_abstract/tables/table_v.c \ + ../../../../../src/ta_abstract/tables/table_w.c \ + ../../../../../src/ta_abstract/tables/table_x.c \ + ../../../../../src/ta_abstract/tables/table_y.c \ + ../../../../../src/ta_abstract/tables/table_z.c + + +# Additional libraries +win32:TA_COMMON_CMD = ta_common_cmd.lib +win32:TA_COMMON_CMR = ta_common_cmr.lib +win32:TA_COMMON_CSD = ta_common_csd.lib +win32:TA_COMMON_CSR = ta_common_csr.lib +win32:TA_COMMON_CDR = ta_common_cdr.lib +win32:TA_COMMON_CDD = ta_common_cdd.lib + +unix:TA_COMMON_CMD = libta_common_cmd.a +unix:TA_COMMON_CMR = libta_common_cmr.a +unix:TA_COMMON_CMP = libta_common_cmp.a +unix:TA_COMMON_CSD = libta_common_csd.a +unix:TA_COMMON_CSR = libta_common_csr.a +unix:TA_COMMON_CSP = libta_common_csp.a +unix:TA_COMMON_CDR = libta_common_cdr.a +unix:TA_COMMON_CDD = libta_common_cdd.a + +cmd:LIBS += ../../../../../lib/$$TA_COMMON_CMD +cmr:LIBS += ../../../../../lib/$$TA_COMMON_CMR +cmp:LIBS += ../../../../../lib/$$TA_COMMON_CMP +csd:LIBS += ../../../../../lib/$$TA_COMMON_CSD +csr:LIBS += ../../../../../lib/$$TA_COMMON_CSR +csp:LIBS += ../../../../../lib/$$TA_COMMON_CSP +cdr:LIBS += ../../../../../lib/$$TA_COMMON_CDR +cdd:LIBS += ../../../../../lib/$$TA_COMMON_CDD + +unix:LIBS += -ldl + +# Compiler Options +INCLUDEPATH = ../../../../../include \ + ../../../../../src/ta_common \ + ../../../../../src/ta_abstract \ + ../../../../../src/ta_abstract/tables \ + ../../../../../src/ta_abstract/frames + +DEFINES *= TA_GEN_CODE + +# debug/release dependent options. +debug:DEFINES *= TA_DEBUG +debug:DEFINES *= _DEBUG +DEFINES += TA_SINGLE_THREAD +thread:DEFINES -= TA_SINGLE_THREAD + + +# Platform dependent options. +win32:DEFINES *= WIN32 +win32-msvc:DEFINES *= _MBCS _LIB +cygwin-g++:LIBS -= -ldl +freebsd-g++:LIBS -= -ldl +freebsd-g++:INCLUDEPATH += /usr/local/include + +cmd:TEMP_CLEAN_ALL = ../../../../../temp/cmd/*.pch +cmr:TEMP_CLEAN_ALL = ../../../../../temp/cmr/*.pch +cmp:TEMP_CLEAN_ALL = ../../../../../temp/cmp/*.pch +csd:TEMP_CLEAN_ALL = ../../../../../temp/csd/*.pch +csr:TEMP_CLEAN_ALL = ../../../../../temp/csr/*.pch +csp:TEMP_CLEAN_ALL = ../../../../../temp/csp/*.pch +cdr:TEMP_CLEAN_ALL = ../../../../../temp/cdr/*.pch +cdd:TEMP_CLEAN_ALL = ../../../../../temp/cdd/*.pch + +cmd:TEMP_CLEAN_ALL2 = ../../../../../temp/cmd/*.idb +cmr:TEMP_CLEAN_ALL2 = ../../../../../temp/cmr/*.idb +cmp:TEMP_CLEAN_ALL2 = ../../../../../temp/cmp/*.idb +csd:TEMP_CLEAN_ALL2 = ../../../../../temp/csd/*.idb +csr:TEMP_CLEAN_ALL2 = ../../../../../temp/csr/*.idb +csp:TEMP_CLEAN_ALL2 = ../../../../../temp/csp/*.idb +cdr:TEMP_CLEAN_ALL2 = ../../../../../temp/cdr/*.idb +cdd:TEMP_CLEAN_ALL2 = ../../../../../temp/cdd/*.idb + +cmd:TEMP_CLEAN_ALL3 = ../../../../../temp/cmd/$$TARGET/*.pch +cmr:TEMP_CLEAN_ALL3 = ../../../../../temp/cmr/$$TARGET/*.pch +cmp:TEMP_CLEAN_ALL3 = ../../../../../temp/cmp/$$TARGET/*.pch +csd:TEMP_CLEAN_ALL3 = ../../../../../temp/csd/$$TARGET/*.pch +csr:TEMP_CLEAN_ALL3 = ../../../../../temp/csr/$$TARGET/*.pch +csp:TEMP_CLEAN_ALL3 = ../../../../../temp/csp/$$TARGET/*.pch +cdr:TEMP_CLEAN_ALL3 = ../../../../../temp/cdr/$$TARGET/*.pch +cdd:TEMP_CLEAN_ALL3 = ../../../../../temp/cdd/$$TARGET/*.pch + +cmd:TEMP_CLEAN_ALL4 = ../../../../../temp/cmd/$$TARGET/*.idb +cmr:TEMP_CLEAN_ALL4 = ../../../../../temp/cmr/$$TARGET/*.idb +cmp:TEMP_CLEAN_ALL4 = ../../../../../temp/cmp/$$TARGET/*.idb +csd:TEMP_CLEAN_ALL4 = ../../../../../temp/csd/$$TARGET/*.idb +csr:TEMP_CLEAN_ALL4 = ../../../../../temp/csr/$$TARGET/*.idb +csp:TEMP_CLEAN_ALL4 = ../../../../../temp/csp/$$TARGET/*.idb +cdr:TEMP_CLEAN_ALL4 = ../../../../../temp/cdr/$$TARGET/*.idb +cdd:TEMP_CLEAN_ALL4 = ../../../../../temp/cdd/$$TARGET/*.idb + +cmd:TEMP_CLEAN_ALL5 = ../../../../../temp/cmd/$$TARGET/*.obj +cmr:TEMP_CLEAN_ALL5 = ../../../../../temp/cmr/$$TARGET/*.obj +cmp:TEMP_CLEAN_ALL5 = ../../../../../temp/cmp/$$TARGET/*.obj +csd:TEMP_CLEAN_ALL5 = ../../../../../temp/csd/$$TARGET/*.obj +csr:TEMP_CLEAN_ALL5 = ../../../../../temp/csr/$$TARGET/*.obj +csp:TEMP_CLEAN_ALL5 = ../../../../../temp/csp/$$TARGET/*.obj +cdr:TEMP_CLEAN_ALL5 = ../../../../../temp/cdr/$$TARGET/*.obj +cdd:TEMP_CLEAN_ALL5 = ../../../../../temp/cdd/$$TARGET/*.obj + +win32:CLEAN_FILES = ../../../../../bin/*.map ../../../../../bin/*._xe ../../../../../bin/*.tds ../../../../../bin/*.pdb ../../../../../bin/*.pbo ../../../../../bin/*.pbi ../../../../../bin/*.pbt $$TEMP_CLEAN_ALL $$TEMP_CLEAN_ALL2 $$TEMP_CLEAN_ALL3 $$TEMP_CLEAN_ALL4 $$TEMP_CLEAN_ALL5 diff --git a/make/gen_make/gen_make.pl b/make/gen_make/gen_make.pl new file mode 100644 index 000000000..a26d855b3 --- /dev/null +++ b/make/gen_make/gen_make.pl @@ -0,0 +1,43 @@ +#!/usr/bin/perl + +# This perl script is the "mother of all" making +# all the operations for re-generating all the +# makefiles variant. + +if( $^O eq "MSWin32" ) +{ + $ENV{'TMAKEPATH'} = './template/win32-msvc'; + $MAKEPATH = './template/win32-msvc'; +} +else +{ + $ENV{'TMAKEPATH'} = './template/linux-g++'; + $MAKEPATH = './template/linux-g++'; +} + +print "Generating ta_func.pro template..."; +chdir "ta_func"; +system( "perl make_pro.pl >ta_func.pro" ); +chdir ".."; +print "done.\n"; + +print "Generating ta_abstract.pro template..."; +chdir "ta_abstract"; +system( "perl make_pro.pl >ta_abstract.pro" ); +chdir ".."; +print "done.\n"; + +print "Generating ta_libc.pro template..."; +chdir "ta_libc"; +system( "perl make_pro.pl >ta_libc.pro" ); +chdir ".."; +print "done.\n"; + +system( "perl ./make_make.pl cdr $MAKEPATH \"template/*\" all" ); +system( "perl ./make_make.pl cdd $MAKEPATH \"template/*\" all" ); +system( "perl ./make_make.pl cmd $MAKEPATH \"template/*\" all" ); +system( "perl ./make_make.pl cmr $MAKEPATH \"template/*\" all" ); +system( "perl ./make_make.pl cmp $MAKEPATH \"template/*\" all" ); +system( "perl ./make_make.pl csr $MAKEPATH \"template/*\" all" ); +system( "perl ./make_make.pl csd $MAKEPATH \"template/*\" all" ); +system( "perl ./make_make.pl csp $MAKEPATH \"template/*\" all" ); diff --git a/make/gen_make/make_make.pl b/make/gen_make/make_make.pl new file mode 100644 index 000000000..94748538f --- /dev/null +++ b/make/gen_make/make_make.pl @@ -0,0 +1,269 @@ +#!/usr/bin/perl + +# You should not have to call this script directly. Use instead +# the "gen_make.pl" who effectively do everything. + +# This script will create all the makefiles for all +# the plateform using the projects describe in the +# '/c/make/gen_make' directory. +# +# This script is called with a parameter defining the +# type of application with which the library is link: +# Example: +# 'perl make_make.pl cmr ...' creates the console/multithread/release makefiles. +# 'perl make_make.pl cmd ...' creates the console/multithread/debug makefiles. +# + +use File::Path; +use File::DosGlob 'glob'; +use Env; + +if( (scalar @ARGV) != 4 ) +{ + print( "Missing parameter\n" ); + print( "Usage: make_make TMAKEPATH destPath platform\n" ); + print( "\n" ); + print( " platform = {all|linux_only|msvc_only}\n" ); + die; +} + +if( @ARGV[0] eq "cmr" ) { + $makeConsole = 1; + $makeThread = 1; + $makeDebug = 0; + $makeDLL = 0; +} +elsif( @ARGV[0] eq "cmd" ) { + $makeConsole = 1; + $makeThread = 1; + $makeDebug = 1; + $makeDLL = 0; +} +elsif( @ARGV[0] eq "cmp" ) { + $makeConsole = 1; + $makeThread = 1; + $makeDebug = 2; + $makeDLL = 0; +} +elsif( @ARGV[0] eq "csr" ) { + $makeConsole = 1; + $makeThread = 0; + $makeDebug = 0; + $makeDLL = 0; +} +elsif( @ARGV[0] eq "csd" ) { + $makeConsole = 1; + $makeThread = 0; + $makeDebug = 1; + $makeDLL = 0; +} +elsif( @ARGV[0] eq "csp" ) { + $makeConsole = 1; + $makeThread = 0; + $makeDebug = 2; + $makeDLL = 0; +} +elsif( @ARGV[0] eq "cdr" ) { + $makeConsole = 1; + $makeThread = 1; + $makeDebug = 0; + $makeDLL = 1; +} +elsif( @ARGV[0] eq "cdd" ) { + $makeConsole = 1; + $makeThread = 1; + $makeDebug = 1; + $makeDLL = 1; +} +else +{ + print( "Bad parameter\n" ); + die; +} + +$origTMAKEPATH = @ARGV[1]; +$ENV{'TMAKEPATH'} = $origTMAKEPATH; + +# print "MAKEPATH[".$origTMAKEPATH."]\n"; + +$origTemplatePath = @ARGV[2]; +@platformCompilerPath = glob $origTemplatePath; + +# print "Template Path[$origTemplatePath]\n"; +# print "Platform-Compiler Path[@platformCompilerPath]\n"; +print "Generating (".@ARGV[0].") "; + +if( $makeConsole == 1 ) { + print "CONSOLE "; +} +else { + print "WINDOWS "; +} + +if( $makeThread == 1 ) { + print "MULTITHREAD "; +} +else { + print "SINGLE-THREAD "; +} + +if( $makeDLL == 1 ) +{ + print "DLL "; +} + +if( $makeDebug == 1 ) { + print "DEBUG "; +} +elsif ($makeDebug == 2){ + print "PROFILE "; +} +else { + print "RELEASE "; +} + +print "makefiles...\n"; + + +# Clean-up existing platform/compiler directory. + +# Note: +#foreach $z (@platformCompilerPath) { + # Get the last element of each path. This + # is the platformcompiler string. +# @splitPath = split( /[\\\/]/, $z ); +# $platformCompiler = @splitPath[$#splitPath]; + +# ($platform,$compiler) = split( /-/, $platformCompiler ); + + # Skip the cases causing trouble. +# next if( length($platform) == 0 ); +# next if( length($compiler) == 0 ); + + # Clean-up the directories +# rmtree( "../".@ARGV[0]."/".$platform ); +#} + +# For each platform/compiler pair, create the directory structure. +foreach $z (@platformCompilerPath) { + + # Get the last element of each path. This + # is the platformcompiler string. + @splitPath = split( /[\\\/]/, $z ); + $platformCompiler = @splitPath[$#splitPath]; + + ($platform,$compiler) = split( /-/, $platformCompiler ); + + # Skip the cases causing trouble. + next if length($platform) == 0; + next if length($compiler) == 0; + + # On non win32 platform, skip generating the win32 makefiles. + if( $^O ne "MSWin32" ) + { + next if ($platform eq "win32"); + } + + if( @ARGV[3] eq "linux_only" ) + { + next if($platform eq "win32"); + next if($platform eq "cygwin" ); + next if($platform eq "borland" ); + next if($platform eq "watcom" ); + next if($platform eq "symantec" ); + } + + if( @ARGV[3] eq "msvc_only" ) + { + next if($compiler ne "msvc"); + } + + # cdr and cdd are generated for msvc only + if( $compiler ne "msvc" ) + { + next if($makeDLL eq 1); + } + + # For now, csp and cmp are generated for g++ only + if( $compiler ne "g++" ) + { + next if($makeDebug eq 2); + } + + # Create the directories + $dirToProcess = "../".@ARGV[0]."/".$platform."/".$compiler; + print "Doing ".$platform."-".$compiler."... "; + mkpath( $dirToProcess ); + + # For each .pro file in the ta-lib/c/make/tmake, + # duplicate the same directory structure and + # execute tmake. + @proList = glob "*/*.pro"; + + foreach $y (@proList) { + ($proPath, $proFile) = split( /[\\\/]/, $y ); + + mkpath( $dirToProcess."/".$proPath ); + if ($platform ne "win32") + { + $toRun = "tmake -unix"; + } + else + { + $toRun = "tmake -win32"; + } + + if( $makeDebug == 1 ) { + $toRun = $toRun." "."\"CONFIG+=debug\""; + if( $makeDLL == 1 ) { + $toRun = $toRun." "."\"TMAKE_CFLAGS_MT_DBG=-MDd -Zi\""; + $toRun = $toRun." "."\"TMAKE_CXXFLAGS_MT_DBG=-MDd -Zi\""; + } + } + #Set the profiler options here --AK-- + elsif ( $makeDebug == 2 ) { + $toRun = $toRun." "."\"CONFIG+=debug\""; + if( $compiler eq "g++" ) { + $toRun = $toRun." "."\"TMAKE_CFLAGS_DEBUG+=-O\""; + $toRun = $toRun." "."\"TMAKE_CFLAGS_DEBUG+=-pg\""; + $toRun = $toRun." "."\"TMAKE_LFLAGS+=-pg\""; + } + } + else { + $toRun = $toRun." "."\"CONFIG+=release\""; + if( $makeDLL == 1 ) { + $toRun = $toRun." "."\"TMAKE_CFLAGS_MT=-MD\""; + $toRun = $toRun." "."\"TMAKE_CXXFLAGS_MT=-MD\""; + } + } + + if( $makeConsole == 1 ) { + $toRun = $toRun." "."\"CONFIG+=console\""; + } + else { + $toRun = $toRun." "."\"CONFIG+=windows\""; + } + + if( $makeThread == 1 ) { + $toRun = $toRun." "."\"CONFIG+=thread\""; + } + + $toRun = $toRun." "."\"CONFIG+=".@ARGV[0]."\""; + + $toRun = $toRun." ".$proPath."/".$proFile; + $toRun = $toRun." -o "."../".@ARGV[0]."/".$platform."/".$compiler."/".$proPath."/"."Makefile"; + $ENV{'TMAKEPATH'} = $origTMAKEPATH."\\..\\".$platformCompiler; + system $toRun; + } + + # Create the root Makefile. + $toRun = "tmake"; + $toRun = $toRun." "."\"TMAKEPATH=".$origTMAKEPATH."/../".$platformCompiler."\""; + $toRun = $toRun." rootmake.pro"; + $toRun = $toRun." -o "."../".@ARGV[0]."/".$platform."/".$compiler."/Makefile"; + # print "to run = $toRun\n"; + system $toRun; + + print "done."."\n"; +} + diff --git a/make/gen_make/rootmake.pro b/make/gen_make/rootmake.pro new file mode 100644 index 000000000..6f9411025 --- /dev/null +++ b/make/gen_make/rootmake.pro @@ -0,0 +1,7 @@ +TEMPLATE = subdirs +SUBDIRS = ta_common \ + ta_func \ + ta_abstract \ + ta_libc \ + gen_code \ + ta_regtest diff --git a/make/gen_make/ta_abstract/make_pro.pl b/make/gen_make/ta_abstract/make_pro.pl new file mode 100644 index 000000000..f317b9837 --- /dev/null +++ b/make/gen_make/ta_abstract/make_pro.pl @@ -0,0 +1,141 @@ +#! /usr/bin/perl + +# This file generates the "ta_abstract.pro" +# +# The output simply goes to stdout. + +print "# Do not modify this file. It is automatically\n"; +print "# generated by make_pro.pl\n"; +print "\n"; + +print "TEMPLATE = lib\n"; +print "CONFIG -= qt\n"; +print "CONFIG += staticlib\n"; +print "\n"; +print "# Identify the temp dir\n"; +print "cmd:OBJECTS_DIR = ../../../../../temp/cmd\n"; +print "cmr:OBJECTS_DIR = ../../../../../temp/cmr\n"; +print "cmp:OBJECTS_DIR = ../../../../../temp/cmp\n"; +print "csd:OBJECTS_DIR = ../../../../../temp/csd\n"; +print "csr:OBJECTS_DIR = ../../../../../temp/csr\n"; +print "csp:OBJECTS_DIR = ../../../../../temp/csp\n"; +print "cdr:OBJECTS_DIR = ../../../../../temp/cdr\n"; +print "cdd:OBJECTS_DIR = ../../../../../temp/cdd\n"; +print "\n"; +print "# Identify the target\n"; +print "LIBTARGET = ta_abstract\n"; +print "cmd:TARGET = ta_abstract_cmd\n"; +print "cmr:TARGET = ta_abstract_cmr\n"; +print "cmp:TARGET = ta_abstract_cmp\n"; +print "csd:TARGET = ta_abstract_csd\n"; +print "csr:TARGET = ta_abstract_csr\n"; +print "csp:TARGET = ta_abstract_csp\n"; +print "cdr:TARGET = ta_abstract_cdr\n"; +print "cdd:TARGET = ta_abstract_cdd\n"; +print "\n"; +print "# Output info\n"; +print "DESTDIR = ../../../../../lib\n"; +print "\n"; +print "# Files to process\n"; +print "SOURCES = ../../../../../src/ta_abstract/ta_abstract.c \\ \n"; +print " ../../../../../src/ta_abstract/ta_def_ui.c \\ \n"; +print " ../../../../../src/ta_abstract/ta_func_api.c \\ \n"; +print " ../../../../../src/ta_abstract/ta_group_idx.c \\ \n"; +print " ../../../../../src/ta_abstract/frames/ta_frame.c \\ \n"; +print " ../../../../../src/ta_abstract/tables/table_a.c \\ \n"; +print " ../../../../../src/ta_abstract/tables/table_b.c \\ \n"; +print " ../../../../../src/ta_abstract/tables/table_c.c \\ \n"; +print " ../../../../../src/ta_abstract/tables/table_d.c \\ \n"; +print " ../../../../../src/ta_abstract/tables/table_e.c \\ \n"; +print " ../../../../../src/ta_abstract/tables/table_f.c \\ \n"; +print " ../../../../../src/ta_abstract/tables/table_g.c \\ \n"; +print " ../../../../../src/ta_abstract/tables/table_h.c \\ \n"; +print " ../../../../../src/ta_abstract/tables/table_i.c \\ \n"; +print " ../../../../../src/ta_abstract/tables/table_j.c \\ \n"; +print " ../../../../../src/ta_abstract/tables/table_k.c \\ \n"; +print " ../../../../../src/ta_abstract/tables/table_l.c \\ \n"; +print " ../../../../../src/ta_abstract/tables/table_m.c \\ \n"; +print " ../../../../../src/ta_abstract/tables/table_n.c \\ \n"; +print " ../../../../../src/ta_abstract/tables/table_o.c \\ \n"; +print " ../../../../../src/ta_abstract/tables/table_p.c \\ \n"; +print " ../../../../../src/ta_abstract/tables/table_q.c \\ \n"; +print " ../../../../../src/ta_abstract/tables/table_r.c \\ \n"; +print " ../../../../../src/ta_abstract/tables/table_s.c \\ \n"; +print " ../../../../../src/ta_abstract/tables/table_t.c \\ \n"; +print " ../../../../../src/ta_abstract/tables/table_u.c \\ \n"; +print " ../../../../../src/ta_abstract/tables/table_v.c \\ \n"; +print " ../../../../../src/ta_abstract/tables/table_w.c \\ \n"; +print " ../../../../../src/ta_abstract/tables/table_x.c \\ \n"; +print " ../../../../../src/ta_abstract/tables/table_y.c \\ \n"; +print " ../../../../../src/ta_abstract/tables/table_z.c"; + +# Generate the list of functions. + +print " \n"; + +print "# Compiler Options\n"; +print "INCLUDEPATH = ../../../../../src/ta_common \\ \n"; +print " ../../../../../src/ta_abstract \\ \n"; +print " ../../../../../src/ta_abstract/tables \\ \n"; +print " ../../../../../src/ta_abstract/frames \\ \n"; +print " ../../../../../include\n"; +print "\n"; +print "# debug/release dependent options.\n"; +print "debug:DEFINES *= TA_DEBUG\n"; +print "debug:DEFINES *= _DEBUG\n"; +print "DEFINES += TA_SINGLE_THREAD\n"; +print "thread:DEFINES -= TA_SINGLE_THREAD\n"; +print "\n"; +print "# Platform dependent options.\n"; +print "win32:DEFINES *= WIN32\n"; +print "win32-msvc:DEFINES *= _MBCS _LIB\n"; +print "freebsd-g++:LIBS -= -ldl\n"; +print "freebsd-g++:INCLUDEPATH += /usr/local/include\n"; +print "\n"; +print "cmd:TEMP_CLEAN_ALL = ../../../../../temp/cmd/*.pch\n"; +print "cmr:TEMP_CLEAN_ALL = ../../../../../temp/cmr/*.pch\n"; +print "cmp:TEMP_CLEAN_ALL = ../../../../../temp/cmp/*.pch\n"; +print "csd:TEMP_CLEAN_ALL = ../../../../../temp/csd/*.pch\n"; +print "csr:TEMP_CLEAN_ALL = ../../../../../temp/csr/*.pch\n"; +print "csp:TEMP_CLEAN_ALL = ../../../../../temp/csp/*.pch\n"; +print "cdr:TEMP_CLEAN_ALL = ../../../../../temp/cdr/*.pch\n"; +print "cdd:TEMP_CLEAN_ALL = ../../../../../temp/cdd/*.pch\n"; +print "\n"; +print "cmd:TEMP_CLEAN_ALL2 = ../../../../../temp/cmd/*.idb\n"; +print "cmr:TEMP_CLEAN_ALL2 = ../../../../../temp/cmr/*.idb\n"; +print "cmp:TEMP_CLEAN_ALL2 = ../../../../../temp/cmp/*.idb\n"; +print "csd:TEMP_CLEAN_ALL2 = ../../../../../temp/csd/*.idb\n"; +print "csr:TEMP_CLEAN_ALL2 = ../../../../../temp/csr/*.idb\n"; +print "csp:TEMP_CLEAN_ALL2 = ../../../../../temp/csp/*.idb\n"; +print "cdr:TEMP_CLEAN_ALL2 = ../../../../../temp/cdr/*.idb\n"; +print "cdd:TEMP_CLEAN_ALL2 = ../../../../../temp/cdd/*.idb\n"; +print "\n"; +print "cmd:TEMP_CLEAN_ALL3 = ../../../../../temp/cmd/\$\$LIBTARGET/*.pch\n"; +print "cmr:TEMP_CLEAN_ALL3 = ../../../../../temp/cmr/\$\$LIBTARGET/*.pch\n"; +print "cmp:TEMP_CLEAN_ALL3 = ../../../../../temp/cmp/\$\$LIBTARGET/*.pch\n"; +print "csd:TEMP_CLEAN_ALL3 = ../../../../../temp/csd/\$\$LIBTARGET/*.pch\n"; +print "csr:TEMP_CLEAN_ALL3 = ../../../../../temp/csr/\$\$LIBTARGET/*.pch\n"; +print "csp:TEMP_CLEAN_ALL3 = ../../../../../temp/csp/\$\$LIBTARGET/*.pch\n"; +print "cdr:TEMP_CLEAN_ALL3 = ../../../../../temp/cdr/\$\$LIBTARGET/*.pch\n"; +print "cdd:TEMP_CLEAN_ALL3 = ../../../../../temp/cdd/\$\$LIBTARGET/*.pch\n"; +print "\n"; +print "cmd:TEMP_CLEAN_ALL4 = ../../../../../temp/cmd/\$\$LIBTARGET/*.idb\n"; +print "cmr:TEMP_CLEAN_ALL4 = ../../../../../temp/cmr/\$\$LIBTARGET/*.idb\n"; +print "cmp:TEMP_CLEAN_ALL4 = ../../../../../temp/cmp/\$\$LIBTARGET/*.idb\n"; +print "csd:TEMP_CLEAN_ALL4 = ../../../../../temp/csd/\$\$LIBTARGET/*.idb\n"; +print "csr:TEMP_CLEAN_ALL4 = ../../../../../temp/csr/\$\$LIBTARGET/*.idb\n"; +print "csp:TEMP_CLEAN_ALL4 = ../../../../../temp/csp/\$\$LIBTARGET/*.idb\n"; +print "cdr:TEMP_CLEAN_ALL4 = ../../../../../temp/cdr/\$\$LIBTARGET/*.idb\n"; +print "cdd:TEMP_CLEAN_ALL4 = ../../../../../temp/cdd/\$\$LIBTARGET/*.idb\n"; +print "\n"; +print "cmd:TEMP_CLEAN_ALL5 = ../../../../../temp/cmd/\$\$LIBTARGET/*.obj\n"; +print "cmr:TEMP_CLEAN_ALL5 = ../../../../../temp/cmr/\$\$LIBTARGET/*.obj\n"; +print "cmp:TEMP_CLEAN_ALL5 = ../../../../../temp/cmp/\$\$LIBTARGET/*.obj\n"; +print "csd:TEMP_CLEAN_ALL5 = ../../../../../temp/csd/\$\$LIBTARGET/*.obj\n"; +print "csr:TEMP_CLEAN_ALL5 = ../../../../../temp/csr/\$\$LIBTARGET/*.obj\n"; +print "csp:TEMP_CLEAN_ALL5 = ../../../../../temp/csp/\$\$LIBTARGET/*.obj\n"; +print "cdr:TEMP_CLEAN_ALL5 = ../../../../../temp/cdr/\$\$LIBTARGET/*.obj\n"; +print "cdd:TEMP_CLEAN_ALL5 = ../../../../../temp/cdd/\$\$LIBTARGET/*.obj\n"; +print "\n"; +print "win32:CLEAN_FILES = ../../../../../bin/*.map ../../../../../bin/*._xe ../../../../../bin/*.tds ../../../../../bin/*.pdb ../../../../../bin/*.pbo ../../../../../bin/*.pbi ../../../../../bin/*.pbt \$\$TEMP_CLEAN_ALL \$\$TEMP_CLEAN_ALL2 \$\$TEMP_CLEAN_ALL3 \$\$TEMP_CLEAN_ALL4 \$\$TEMP_CLEAN_ALL5\n"; + diff --git a/make/gen_make/ta_abstract/ta_abstract.pro b/make/gen_make/ta_abstract/ta_abstract.pro new file mode 100644 index 000000000..260c0f007 --- /dev/null +++ b/make/gen_make/ta_abstract/ta_abstract.pro @@ -0,0 +1,128 @@ +# Do not modify this file. It is automatically +# generated by make_pro.pl + +TEMPLATE = lib +CONFIG -= qt +CONFIG += staticlib + +# Identify the temp dir +cmd:OBJECTS_DIR = ../../../../../temp/cmd +cmr:OBJECTS_DIR = ../../../../../temp/cmr +cmp:OBJECTS_DIR = ../../../../../temp/cmp +csd:OBJECTS_DIR = ../../../../../temp/csd +csr:OBJECTS_DIR = ../../../../../temp/csr +csp:OBJECTS_DIR = ../../../../../temp/csp +cdr:OBJECTS_DIR = ../../../../../temp/cdr +cdd:OBJECTS_DIR = ../../../../../temp/cdd + +# Identify the target +LIBTARGET = ta_abstract +cmd:TARGET = ta_abstract_cmd +cmr:TARGET = ta_abstract_cmr +cmp:TARGET = ta_abstract_cmp +csd:TARGET = ta_abstract_csd +csr:TARGET = ta_abstract_csr +csp:TARGET = ta_abstract_csp +cdr:TARGET = ta_abstract_cdr +cdd:TARGET = ta_abstract_cdd + +# Output info +DESTDIR = ../../../../../lib + +# Files to process +SOURCES = ../../../../../src/ta_abstract/ta_abstract.c \ + ../../../../../src/ta_abstract/ta_def_ui.c \ + ../../../../../src/ta_abstract/ta_func_api.c \ + ../../../../../src/ta_abstract/ta_group_idx.c \ + ../../../../../src/ta_abstract/frames/ta_frame.c \ + ../../../../../src/ta_abstract/tables/table_a.c \ + ../../../../../src/ta_abstract/tables/table_b.c \ + ../../../../../src/ta_abstract/tables/table_c.c \ + ../../../../../src/ta_abstract/tables/table_d.c \ + ../../../../../src/ta_abstract/tables/table_e.c \ + ../../../../../src/ta_abstract/tables/table_f.c \ + ../../../../../src/ta_abstract/tables/table_g.c \ + ../../../../../src/ta_abstract/tables/table_h.c \ + ../../../../../src/ta_abstract/tables/table_i.c \ + ../../../../../src/ta_abstract/tables/table_j.c \ + ../../../../../src/ta_abstract/tables/table_k.c \ + ../../../../../src/ta_abstract/tables/table_l.c \ + ../../../../../src/ta_abstract/tables/table_m.c \ + ../../../../../src/ta_abstract/tables/table_n.c \ + ../../../../../src/ta_abstract/tables/table_o.c \ + ../../../../../src/ta_abstract/tables/table_p.c \ + ../../../../../src/ta_abstract/tables/table_q.c \ + ../../../../../src/ta_abstract/tables/table_r.c \ + ../../../../../src/ta_abstract/tables/table_s.c \ + ../../../../../src/ta_abstract/tables/table_t.c \ + ../../../../../src/ta_abstract/tables/table_u.c \ + ../../../../../src/ta_abstract/tables/table_v.c \ + ../../../../../src/ta_abstract/tables/table_w.c \ + ../../../../../src/ta_abstract/tables/table_x.c \ + ../../../../../src/ta_abstract/tables/table_y.c \ + ../../../../../src/ta_abstract/tables/table_z.c +# Compiler Options +INCLUDEPATH = ../../../../../src/ta_common \ + ../../../../../src/ta_abstract \ + ../../../../../src/ta_abstract/tables \ + ../../../../../src/ta_abstract/frames \ + ../../../../../include + +# debug/release dependent options. +debug:DEFINES *= TA_DEBUG +debug:DEFINES *= _DEBUG +DEFINES += TA_SINGLE_THREAD +thread:DEFINES -= TA_SINGLE_THREAD + +# Platform dependent options. +win32:DEFINES *= WIN32 +win32-msvc:DEFINES *= _MBCS _LIB +freebsd-g++:LIBS -= -ldl +freebsd-g++:INCLUDEPATH += /usr/local/include + +cmd:TEMP_CLEAN_ALL = ../../../../../temp/cmd/*.pch +cmr:TEMP_CLEAN_ALL = ../../../../../temp/cmr/*.pch +cmp:TEMP_CLEAN_ALL = ../../../../../temp/cmp/*.pch +csd:TEMP_CLEAN_ALL = ../../../../../temp/csd/*.pch +csr:TEMP_CLEAN_ALL = ../../../../../temp/csr/*.pch +csp:TEMP_CLEAN_ALL = ../../../../../temp/csp/*.pch +cdr:TEMP_CLEAN_ALL = ../../../../../temp/cdr/*.pch +cdd:TEMP_CLEAN_ALL = ../../../../../temp/cdd/*.pch + +cmd:TEMP_CLEAN_ALL2 = ../../../../../temp/cmd/*.idb +cmr:TEMP_CLEAN_ALL2 = ../../../../../temp/cmr/*.idb +cmp:TEMP_CLEAN_ALL2 = ../../../../../temp/cmp/*.idb +csd:TEMP_CLEAN_ALL2 = ../../../../../temp/csd/*.idb +csr:TEMP_CLEAN_ALL2 = ../../../../../temp/csr/*.idb +csp:TEMP_CLEAN_ALL2 = ../../../../../temp/csp/*.idb +cdr:TEMP_CLEAN_ALL2 = ../../../../../temp/cdr/*.idb +cdd:TEMP_CLEAN_ALL2 = ../../../../../temp/cdd/*.idb + +cmd:TEMP_CLEAN_ALL3 = ../../../../../temp/cmd/$$LIBTARGET/*.pch +cmr:TEMP_CLEAN_ALL3 = ../../../../../temp/cmr/$$LIBTARGET/*.pch +cmp:TEMP_CLEAN_ALL3 = ../../../../../temp/cmp/$$LIBTARGET/*.pch +csd:TEMP_CLEAN_ALL3 = ../../../../../temp/csd/$$LIBTARGET/*.pch +csr:TEMP_CLEAN_ALL3 = ../../../../../temp/csr/$$LIBTARGET/*.pch +csp:TEMP_CLEAN_ALL3 = ../../../../../temp/csp/$$LIBTARGET/*.pch +cdr:TEMP_CLEAN_ALL3 = ../../../../../temp/cdr/$$LIBTARGET/*.pch +cdd:TEMP_CLEAN_ALL3 = ../../../../../temp/cdd/$$LIBTARGET/*.pch + +cmd:TEMP_CLEAN_ALL4 = ../../../../../temp/cmd/$$LIBTARGET/*.idb +cmr:TEMP_CLEAN_ALL4 = ../../../../../temp/cmr/$$LIBTARGET/*.idb +cmp:TEMP_CLEAN_ALL4 = ../../../../../temp/cmp/$$LIBTARGET/*.idb +csd:TEMP_CLEAN_ALL4 = ../../../../../temp/csd/$$LIBTARGET/*.idb +csr:TEMP_CLEAN_ALL4 = ../../../../../temp/csr/$$LIBTARGET/*.idb +csp:TEMP_CLEAN_ALL4 = ../../../../../temp/csp/$$LIBTARGET/*.idb +cdr:TEMP_CLEAN_ALL4 = ../../../../../temp/cdr/$$LIBTARGET/*.idb +cdd:TEMP_CLEAN_ALL4 = ../../../../../temp/cdd/$$LIBTARGET/*.idb + +cmd:TEMP_CLEAN_ALL5 = ../../../../../temp/cmd/$$LIBTARGET/*.obj +cmr:TEMP_CLEAN_ALL5 = ../../../../../temp/cmr/$$LIBTARGET/*.obj +cmp:TEMP_CLEAN_ALL5 = ../../../../../temp/cmp/$$LIBTARGET/*.obj +csd:TEMP_CLEAN_ALL5 = ../../../../../temp/csd/$$LIBTARGET/*.obj +csr:TEMP_CLEAN_ALL5 = ../../../../../temp/csr/$$LIBTARGET/*.obj +csp:TEMP_CLEAN_ALL5 = ../../../../../temp/csp/$$LIBTARGET/*.obj +cdr:TEMP_CLEAN_ALL5 = ../../../../../temp/cdr/$$LIBTARGET/*.obj +cdd:TEMP_CLEAN_ALL5 = ../../../../../temp/cdd/$$LIBTARGET/*.obj + +win32:CLEAN_FILES = ../../../../../bin/*.map ../../../../../bin/*._xe ../../../../../bin/*.tds ../../../../../bin/*.pdb ../../../../../bin/*.pbo ../../../../../bin/*.pbi ../../../../../bin/*.pbt $$TEMP_CLEAN_ALL $$TEMP_CLEAN_ALL2 $$TEMP_CLEAN_ALL3 $$TEMP_CLEAN_ALL4 $$TEMP_CLEAN_ALL5 diff --git a/make/gen_make/ta_common/ta_common.pro b/make/gen_make/ta_common/ta_common.pro new file mode 100644 index 000000000..1f57582be --- /dev/null +++ b/make/gen_make/ta_common/ta_common.pro @@ -0,0 +1,96 @@ +TEMPLATE = lib +CONFIG -= qt +CONFIG += staticlib + +# Identify the temp dir +cmd:OBJECTS_DIR = ../../../../../temp/cmd +cmr:OBJECTS_DIR = ../../../../../temp/cmr +cmp:OBJECTS_DIR = ../../../../../temp/cmp +csd:OBJECTS_DIR = ../../../../../temp/csd +csr:OBJECTS_DIR = ../../../../../temp/csr +csp:OBJECTS_DIR = ../../../../../temp/csp +cdr:OBJECTS_DIR = ../../../../../temp/cdr +cdd:OBJECTS_DIR = ../../../../../temp/cdd + +# Identify the target name +LIBTARGET = ta_common +cmd:TARGET = ta_common_cmd +cmr:TARGET = ta_common_cmr +cmp:TARGET = ta_common_cmp +csd:TARGET = ta_common_csd +csr:TARGET = ta_common_csr +csp:TARGET = ta_common_csp +cdr:TARGET = ta_common_cdr +cdd:TARGET = ta_common_cdd + +# Output info +DESTDIR = ../../../../../lib + +# Files to process +SOURCES = ../../../../../src/ta_common/ta_global.c \ + ../../../../../src/ta_common/ta_retcode.c \ + ../../../../../src/ta_common/ta_version.c + + +# Compiler Options +INCLUDEPATH = ../../../../../src/ta_common \ + ../../../../../include + +# debug/release dependent options. +debug:DEFINES *= TA_DEBUG +debug:DEFINES *= _DEBUG +DEFINES += TA_SINGLE_THREAD +thread:DEFINES -= TA_SINGLE_THREAD + +# Platform dependent options. +win32:DEFINES *= WIN32 +win32-msvc:DEFINES *= _MBCS _LIB +freebsd-g++:LIBS -= -ldl +freebsd-g++:INCLUDEPATH += /usr/local/include + +cmd:TEMP_CLEAN_ALL = ../../../../../temp/cmd/*.pch +cmr:TEMP_CLEAN_ALL = ../../../../../temp/cmr/*.pch +cmp:TEMP_CLEAN_ALL = ../../../../../temp/cmp/*.pch +csd:TEMP_CLEAN_ALL = ../../../../../temp/csd/*.pch +csr:TEMP_CLEAN_ALL = ../../../../../temp/csr/*.pch +csp:TEMP_CLEAN_ALL = ../../../../../temp/csp/*.pch +cdr:TEMP_CLEAN_ALL = ../../../../../temp/cdr/*.pch +cdd:TEMP_CLEAN_ALL = ../../../../../temp/cdd/*.pch + +cmd:TEMP_CLEAN_ALL2 = ../../../../../temp/cmd/*.idb +cmr:TEMP_CLEAN_ALL2 = ../../../../../temp/cmr/*.idb +cmp:TEMP_CLEAN_ALL2 = ../../../../../temp/cmp/*.idb +csd:TEMP_CLEAN_ALL2 = ../../../../../temp/csd/*.idb +csr:TEMP_CLEAN_ALL2 = ../../../../../temp/csr/*.idb +csp:TEMP_CLEAN_ALL2 = ../../../../../temp/csp/*.idb +cdr:TEMP_CLEAN_ALL2 = ../../../../../temp/cdr/*.idb +cdd:TEMP_CLEAN_ALL2 = ../../../../../temp/cdd/*.idb + +cmd:TEMP_CLEAN_ALL3 = ../../../../../temp/cmd/$$TARGET/*.pch +cmr:TEMP_CLEAN_ALL3 = ../../../../../temp/cmr/$$TARGET/*.pch +cmp:TEMP_CLEAN_ALL3 = ../../../../../temp/cmp/$$TARGET/*.pch +csd:TEMP_CLEAN_ALL3 = ../../../../../temp/csd/$$TARGET/*.pch +csr:TEMP_CLEAN_ALL3 = ../../../../../temp/csr/$$TARGET/*.pch +csp:TEMP_CLEAN_ALL3 = ../../../../../temp/csp/$$TARGET/*.pch +cdr:TEMP_CLEAN_ALL3 = ../../../../../temp/cdr/$$TARGET/*.pch +cdd:TEMP_CLEAN_ALL3 = ../../../../../temp/cdd/$$TARGET/*.pch + +cmd:TEMP_CLEAN_ALL4 = ../../../../../temp/cmd/$$TARGET/*.idb +cmr:TEMP_CLEAN_ALL4 = ../../../../../temp/cmr/$$TARGET/*.idb +cmp:TEMP_CLEAN_ALL4 = ../../../../../temp/cmp/$$TARGET/*.idb +csd:TEMP_CLEAN_ALL4 = ../../../../../temp/csd/$$TARGET/*.idb +csr:TEMP_CLEAN_ALL4 = ../../../../../temp/csr/$$TARGET/*.idb +csp:TEMP_CLEAN_ALL4 = ../../../../../temp/csp/$$TARGET/*.idb +cdr:TEMP_CLEAN_ALL4 = ../../../../../temp/cdr/$$TARGET/*.idb +cdd:TEMP_CLEAN_ALL4 = ../../../../../temp/cdd/$$TARGET/*.idb + +cmd:TEMP_CLEAN_ALL5 = ../../../../../temp/cmd/$$TARGET/*.obj +cmr:TEMP_CLEAN_ALL5 = ../../../../../temp/cmr/$$TARGET/*.obj +cmp:TEMP_CLEAN_ALL5 = ../../../../../temp/cmp/$$TARGET/*.obj +csd:TEMP_CLEAN_ALL5 = ../../../../../temp/csd/$$TARGET/*.obj +csr:TEMP_CLEAN_ALL5 = ../../../../../temp/csr/$$TARGET/*.obj +csp:TEMP_CLEAN_ALL5 = ../../../../../temp/csp/$$TARGET/*.obj +cdr:TEMP_CLEAN_ALL5 = ../../../../../temp/cdr/$$TARGET/*.obj +cdd:TEMP_CLEAN_ALL5 = ../../../../../temp/cdd/$$TARGET/*.obj + +win32:CLEAN_FILES = ../../../../../bin/*.map ../../../../../bin/*._xe ../../../../../bin/*.tds ../../../../../bin/*.pdb ../../../../../bin/*.pbo ../../../../../bin/*.pbi ../../../../../bin/*.pbt $$TEMP_CLEAN_ALL $$TEMP_CLEAN_ALL2 $$TEMP_CLEAN_ALL3 $$TEMP_CLEAN_ALL4 $$TEMP_CLEAN_ALL5 diff --git a/make/gen_make/ta_func/make_pro.pl b/make/gen_make/ta_func/make_pro.pl new file mode 100644 index 000000000..4ec5375d0 --- /dev/null +++ b/make/gen_make/ta_func/make_pro.pl @@ -0,0 +1,123 @@ +#! /usr/bin/perl + +# This file generates the "ta_func.pro" using the information +# provided by the "ta_func_list.txt" +# +# Reminder: ta_func.pro is then process by tmake for +# generating the multi-platform makefiles. +# +# The output simply goes to stdout. + +print "# Do not modify this file. It is automatically\n"; +print "# generated by make_pro.pl\n"; +print "\n"; + +print "TEMPLATE = lib\n"; +print "CONFIG -= qt\n"; +print "CONFIG += staticlib\n"; +print "\n"; +print "# Identify the temp dir\n"; +print "cmd:OBJECTS_DIR = ../../../../../temp/cmd\n"; +print "cmr:OBJECTS_DIR = ../../../../../temp/cmr\n"; +print "cmp:OBJECTS_DIR = ../../../../../temp/cmp\n"; +print "csd:OBJECTS_DIR = ../../../../../temp/csd\n"; +print "csr:OBJECTS_DIR = ../../../../../temp/csr\n"; +print "csp:OBJECTS_DIR = ../../../../../temp/csp\n"; +print "cdr:OBJECTS_DIR = ../../../../../temp/cdr\n"; +print "cdd:OBJECTS_DIR = ../../../../../temp/cdd\n"; +print "\n"; +print "# Identify the target\n"; +print "LIBTARGET = ta_func\n"; +print "cmd:TARGET = ta_func_cmd\n"; +print "cmr:TARGET = ta_func_cmr\n"; +print "cmp:TARGET = ta_func_cmp\n"; +print "csd:TARGET = ta_func_csd\n"; +print "csr:TARGET = ta_func_csr\n"; +print "csp:TARGET = ta_func_csp\n"; +print "cdr:TARGET = ta_func_cdr\n"; +print "cdd:TARGET = ta_func_cdd\n"; +print "\n"; +print "# Output info\n"; +print "DESTDIR = ../../../../../lib\n"; +print "\n"; +print "# Files to process\n"; +print "SOURCES = ../../../../../src/ta_func/ta_utility.c"; + +# Generate the list of functions. +open FUNCLIST_TXT, "<../../../../ta_func_list.txt" or die "Can't open ta_func_list.txt: $!"; +@funclist = ; +foreach $z (@funclist) { + if( length($z) > 2 ) + { + @words = split( / /, $z ); + print " \\ \n"; + print " ../../../../../src/ta_func/ta_",$words[0],".c"; + } +} +print " \n"; + +print "\n"; +print "# Compiler Options\n"; +print "INCLUDEPATH = ../../../../../src/ta_common \\n"; +print " ../../../../../include \n"; +print "\n"; +print "# debug/release dependent options.\n"; +print "debug:DEFINES *= TA_DEBUG\n"; +print "debug:DEFINES *= _DEBUG\n"; +print "DEFINES += TA_SINGLE_THREAD\n"; +print "thread:DEFINES -= TA_SINGLE_THREAD\n"; +print "\n"; +print "\n"; +print "# Platform dependent options.\n"; +print "win32:DEFINES *= WIN32\n"; +print "win32-msvc:DEFINES *= _MBCS _LIB\n"; +print "freebsd-g++:LIBS -= -ldl\n"; +print "freebsd-g++:INCLUDEPATH += /usr/local/include\n"; +print "\n"; +print "cmd:TEMP_CLEAN_ALL = ../../../../../temp/cmd/*.pch\n"; +print "cmr:TEMP_CLEAN_ALL = ../../../../../temp/cmr/*.pch\n"; +print "cmp:TEMP_CLEAN_ALL = ../../../../../temp/cmp/*.pch\n"; +print "csd:TEMP_CLEAN_ALL = ../../../../../temp/csd/*.pch\n"; +print "csr:TEMP_CLEAN_ALL = ../../../../../temp/csr/*.pch\n"; +print "csp:TEMP_CLEAN_ALL = ../../../../../temp/csp/*.pch\n"; +print "cdr:TEMP_CLEAN_ALL = ../../../../../temp/cdr/*.pch\n"; +print "cdd:TEMP_CLEAN_ALL = ../../../../../temp/cdd/*.pch\n"; +print "\n"; +print "cmd:TEMP_CLEAN_ALL2 = ../../../../../temp/cmd/*.idb\n"; +print "cmr:TEMP_CLEAN_ALL2 = ../../../../../temp/cmr/*.idb\n"; +print "cmp:TEMP_CLEAN_ALL2 = ../../../../../temp/cmp/*.idb\n"; +print "csd:TEMP_CLEAN_ALL2 = ../../../../../temp/csd/*.idb\n"; +print "csr:TEMP_CLEAN_ALL2 = ../../../../../temp/csr/*.idb\n"; +print "csp:TEMP_CLEAN_ALL2 = ../../../../../temp/csp/*.idb\n"; +print "cdr:TEMP_CLEAN_ALL2 = ../../../../../temp/cdr/*.idb\n"; +print "cdd:TEMP_CLEAN_ALL2 = ../../../../../temp/cdd/*.idb\n"; +print "\n"; +print "cmd:TEMP_CLEAN_ALL3 = ../../../../../temp/cmd/\$\$LIBTARGET/*.pch\n"; +print "cmr:TEMP_CLEAN_ALL3 = ../../../../../temp/cmr/\$\$LIBTARGET/*.pch\n"; +print "cmp:TEMP_CLEAN_ALL3 = ../../../../../temp/cmp/\$\$LIBTARGET/*.pch\n"; +print "csd:TEMP_CLEAN_ALL3 = ../../../../../temp/csd/\$\$LIBTARGET/*.pch\n"; +print "csr:TEMP_CLEAN_ALL3 = ../../../../../temp/csr/\$\$LIBTARGET/*.pch\n"; +print "csp:TEMP_CLEAN_ALL3 = ../../../../../temp/csp/\$\$LIBTARGET/*.pch\n"; +print "cdr:TEMP_CLEAN_ALL3 = ../../../../../temp/cdr/\$\$LIBTARGET/*.pch\n"; +print "cdd:TEMP_CLEAN_ALL3 = ../../../../../temp/cdd/\$\$LIBTARGET/*.pch\n"; +print "\n"; +print "cmd:TEMP_CLEAN_ALL4 = ../../../../../temp/cmd/\$\$LIBTARGET/*.idb\n"; +print "cmr:TEMP_CLEAN_ALL4 = ../../../../../temp/cmr/\$\$LIBTARGET/*.idb\n"; +print "cmp:TEMP_CLEAN_ALL4 = ../../../../../temp/cmp/\$\$LIBTARGET/*.idb\n"; +print "csd:TEMP_CLEAN_ALL4 = ../../../../../temp/csd/\$\$LIBTARGET/*.idb\n"; +print "csr:TEMP_CLEAN_ALL4 = ../../../../../temp/csr/\$\$LIBTARGET/*.idb\n"; +print "csp:TEMP_CLEAN_ALL4 = ../../../../../temp/csp/\$\$LIBTARGET/*.idb\n"; +print "cdr:TEMP_CLEAN_ALL4 = ../../../../../temp/cdr/\$\$LIBTARGET/*.idb\n"; +print "cdd:TEMP_CLEAN_ALL4 = ../../../../../temp/cdd/\$\$LIBTARGET/*.idb\n"; +print "\n"; +print "cmd:TEMP_CLEAN_ALL5 = ../../../../../temp/cmd/\$\$LIBTARGET/*.obj\n"; +print "cmr:TEMP_CLEAN_ALL5 = ../../../../../temp/cmr/\$\$LIBTARGET/*.obj\n"; +print "cmp:TEMP_CLEAN_ALL5 = ../../../../../temp/cmp/\$\$LIBTARGET/*.obj\n"; +print "csd:TEMP_CLEAN_ALL5 = ../../../../../temp/csd/\$\$LIBTARGET/*.obj\n"; +print "csr:TEMP_CLEAN_ALL5 = ../../../../../temp/csr/\$\$LIBTARGET/*.obj\n"; +print "csp:TEMP_CLEAN_ALL5 = ../../../../../temp/csp/\$\$LIBTARGET/*.obj\n"; +print "cdr:TEMP_CLEAN_ALL5 = ../../../../../temp/cdr/\$\$LIBTARGET/*.obj\n"; +print "cdd:TEMP_CLEAN_ALL5 = ../../../../../temp/cdd/\$\$LIBTARGET/*.obj\n"; +print "\n"; +print "win32:CLEAN_FILES = ../../../../../bin/*.map ../../../../../bin/*._xe ../../../../../bin/*.tds ../../../../../bin/*.pdb ../../../../../bin/*.pbo ../../../../../bin/*.pbi ../../../../../bin/*.pbt \$\$TEMP_CLEAN_ALL \$\$TEMP_CLEAN_ALL2 \$\$TEMP_CLEAN_ALL3 \$\$TEMP_CLEAN_ALL4 \$\$TEMP_CLEAN_ALL5\n"; + diff --git a/make/gen_make/ta_func/ta_func.pro b/make/gen_make/ta_func/ta_func.pro new file mode 100644 index 000000000..4080f43a5 --- /dev/null +++ b/make/gen_make/ta_func/ta_func.pro @@ -0,0 +1,254 @@ +# Do not modify this file. It is automatically +# generated by make_pro.pl + +TEMPLATE = lib +CONFIG -= qt +CONFIG += staticlib + +# Identify the temp dir +cmd:OBJECTS_DIR = ../../../../../temp/cmd +cmr:OBJECTS_DIR = ../../../../../temp/cmr +cmp:OBJECTS_DIR = ../../../../../temp/cmp +csd:OBJECTS_DIR = ../../../../../temp/csd +csr:OBJECTS_DIR = ../../../../../temp/csr +csp:OBJECTS_DIR = ../../../../../temp/csp +cdr:OBJECTS_DIR = ../../../../../temp/cdr +cdd:OBJECTS_DIR = ../../../../../temp/cdd + +# Identify the target +LIBTARGET = ta_func +cmd:TARGET = ta_func_cmd +cmr:TARGET = ta_func_cmr +cmp:TARGET = ta_func_cmp +csd:TARGET = ta_func_csd +csr:TARGET = ta_func_csr +csp:TARGET = ta_func_csp +cdr:TARGET = ta_func_cdr +cdd:TARGET = ta_func_cdd + +# Output info +DESTDIR = ../../../../../lib + +# Files to process +SOURCES = ../../../../../src/ta_func/ta_utility.c \ + ../../../../../src/ta_func/ta_ACOS.c \ + ../../../../../src/ta_func/ta_AD.c \ + ../../../../../src/ta_func/ta_ADD.c \ + ../../../../../src/ta_func/ta_ADOSC.c \ + ../../../../../src/ta_func/ta_ADX.c \ + ../../../../../src/ta_func/ta_ADXR.c \ + ../../../../../src/ta_func/ta_APO.c \ + ../../../../../src/ta_func/ta_AROON.c \ + ../../../../../src/ta_func/ta_AROONOSC.c \ + ../../../../../src/ta_func/ta_ASIN.c \ + ../../../../../src/ta_func/ta_ATAN.c \ + ../../../../../src/ta_func/ta_ATR.c \ + ../../../../../src/ta_func/ta_AVGPRICE.c \ + ../../../../../src/ta_func/ta_BBANDS.c \ + ../../../../../src/ta_func/ta_BETA.c \ + ../../../../../src/ta_func/ta_BOP.c \ + ../../../../../src/ta_func/ta_CCI.c \ + ../../../../../src/ta_func/ta_CDL2CROWS.c \ + ../../../../../src/ta_func/ta_CDL3BLACKCROWS.c \ + ../../../../../src/ta_func/ta_CDL3INSIDE.c \ + ../../../../../src/ta_func/ta_CDL3LINESTRIKE.c \ + ../../../../../src/ta_func/ta_CDL3OUTSIDE.c \ + ../../../../../src/ta_func/ta_CDL3STARSINSOUTH.c \ + ../../../../../src/ta_func/ta_CDL3WHITESOLDIERS.c \ + ../../../../../src/ta_func/ta_CDLABANDONEDBABY.c \ + ../../../../../src/ta_func/ta_CDLADVANCEBLOCK.c \ + ../../../../../src/ta_func/ta_CDLBELTHOLD.c \ + ../../../../../src/ta_func/ta_CDLBREAKAWAY.c \ + ../../../../../src/ta_func/ta_CDLCLOSINGMARUBOZU.c \ + ../../../../../src/ta_func/ta_CDLCONCEALBABYSWALL.c \ + ../../../../../src/ta_func/ta_CDLCOUNTERATTACK.c \ + ../../../../../src/ta_func/ta_CDLDARKCLOUDCOVER.c \ + ../../../../../src/ta_func/ta_CDLDOJI.c \ + ../../../../../src/ta_func/ta_CDLDOJISTAR.c \ + ../../../../../src/ta_func/ta_CDLDRAGONFLYDOJI.c \ + ../../../../../src/ta_func/ta_CDLENGULFING.c \ + ../../../../../src/ta_func/ta_CDLEVENINGDOJISTAR.c \ + ../../../../../src/ta_func/ta_CDLEVENINGSTAR.c \ + ../../../../../src/ta_func/ta_CDLGAPSIDESIDEWHITE.c \ + ../../../../../src/ta_func/ta_CDLGRAVESTONEDOJI.c \ + ../../../../../src/ta_func/ta_CDLHAMMER.c \ + ../../../../../src/ta_func/ta_CDLHANGINGMAN.c \ + ../../../../../src/ta_func/ta_CDLHARAMI.c \ + ../../../../../src/ta_func/ta_CDLHARAMICROSS.c \ + ../../../../../src/ta_func/ta_CDLHIGHWAVE.c \ + ../../../../../src/ta_func/ta_CDLHIKKAKE.c \ + ../../../../../src/ta_func/ta_CDLHIKKAKEMOD.c \ + ../../../../../src/ta_func/ta_CDLHOMINGPIGEON.c \ + ../../../../../src/ta_func/ta_CDLIDENTICAL3CROWS.c \ + ../../../../../src/ta_func/ta_CDLINNECK.c \ + ../../../../../src/ta_func/ta_CDLINVERTEDHAMMER.c \ + ../../../../../src/ta_func/ta_CDLKICKING.c \ + ../../../../../src/ta_func/ta_CDLKICKINGBYLENGTH.c \ + ../../../../../src/ta_func/ta_CDLLADDERBOTTOM.c \ + ../../../../../src/ta_func/ta_CDLLONGLEGGEDDOJI.c \ + ../../../../../src/ta_func/ta_CDLLONGLINE.c \ + ../../../../../src/ta_func/ta_CDLMARUBOZU.c \ + ../../../../../src/ta_func/ta_CDLMATCHINGLOW.c \ + ../../../../../src/ta_func/ta_CDLMATHOLD.c \ + ../../../../../src/ta_func/ta_CDLMORNINGDOJISTAR.c \ + ../../../../../src/ta_func/ta_CDLMORNINGSTAR.c \ + ../../../../../src/ta_func/ta_CDLONNECK.c \ + ../../../../../src/ta_func/ta_CDLPIERCING.c \ + ../../../../../src/ta_func/ta_CDLRICKSHAWMAN.c \ + ../../../../../src/ta_func/ta_CDLRISEFALL3METHODS.c \ + ../../../../../src/ta_func/ta_CDLSEPARATINGLINES.c \ + ../../../../../src/ta_func/ta_CDLSHOOTINGSTAR.c \ + ../../../../../src/ta_func/ta_CDLSHORTLINE.c \ + ../../../../../src/ta_func/ta_CDLSPINNINGTOP.c \ + ../../../../../src/ta_func/ta_CDLSTALLEDPATTERN.c \ + ../../../../../src/ta_func/ta_CDLSTICKSANDWICH.c \ + ../../../../../src/ta_func/ta_CDLTAKURI.c \ + ../../../../../src/ta_func/ta_CDLTASUKIGAP.c \ + ../../../../../src/ta_func/ta_CDLTHRUSTING.c \ + ../../../../../src/ta_func/ta_CDLTRISTAR.c \ + ../../../../../src/ta_func/ta_CDLUNIQUE3RIVER.c \ + ../../../../../src/ta_func/ta_CDLUPSIDEGAP2CROWS.c \ + ../../../../../src/ta_func/ta_CDLXSIDEGAP3METHODS.c \ + ../../../../../src/ta_func/ta_CEIL.c \ + ../../../../../src/ta_func/ta_CMO.c \ + ../../../../../src/ta_func/ta_CORREL.c \ + ../../../../../src/ta_func/ta_COS.c \ + ../../../../../src/ta_func/ta_COSH.c \ + ../../../../../src/ta_func/ta_DEMA.c \ + ../../../../../src/ta_func/ta_DIV.c \ + ../../../../../src/ta_func/ta_DX.c \ + ../../../../../src/ta_func/ta_EMA.c \ + ../../../../../src/ta_func/ta_EXP.c \ + ../../../../../src/ta_func/ta_FLOOR.c \ + ../../../../../src/ta_func/ta_HT_DCPERIOD.c \ + ../../../../../src/ta_func/ta_HT_DCPHASE.c \ + ../../../../../src/ta_func/ta_HT_PHASOR.c \ + ../../../../../src/ta_func/ta_HT_SINE.c \ + ../../../../../src/ta_func/ta_HT_TRENDLINE.c \ + ../../../../../src/ta_func/ta_HT_TRENDMODE.c \ + ../../../../../src/ta_func/ta_KAMA.c \ + ../../../../../src/ta_func/ta_LINEARREG.c \ + ../../../../../src/ta_func/ta_LINEARREG_ANGLE.c \ + ../../../../../src/ta_func/ta_LINEARREG_INTERCEPT.c \ + ../../../../../src/ta_func/ta_LINEARREG_SLOPE.c \ + ../../../../../src/ta_func/ta_LN.c \ + ../../../../../src/ta_func/ta_LOG10.c \ + ../../../../../src/ta_func/ta_MA.c \ + ../../../../../src/ta_func/ta_MACD.c \ + ../../../../../src/ta_func/ta_MACDEXT.c \ + ../../../../../src/ta_func/ta_MACDFIX.c \ + ../../../../../src/ta_func/ta_MAMA.c \ + ../../../../../src/ta_func/ta_MAVP.c \ + ../../../../../src/ta_func/ta_MAX.c \ + ../../../../../src/ta_func/ta_MAXINDEX.c \ + ../../../../../src/ta_func/ta_MEDPRICE.c \ + ../../../../../src/ta_func/ta_MFI.c \ + ../../../../../src/ta_func/ta_MIDPOINT.c \ + ../../../../../src/ta_func/ta_MIDPRICE.c \ + ../../../../../src/ta_func/ta_MIN.c \ + ../../../../../src/ta_func/ta_MININDEX.c \ + ../../../../../src/ta_func/ta_MINMAX.c \ + ../../../../../src/ta_func/ta_MINMAXINDEX.c \ + ../../../../../src/ta_func/ta_MINUS_DI.c \ + ../../../../../src/ta_func/ta_MINUS_DM.c \ + ../../../../../src/ta_func/ta_MOM.c \ + ../../../../../src/ta_func/ta_MULT.c \ + ../../../../../src/ta_func/ta_NATR.c \ + ../../../../../src/ta_func/ta_OBV.c \ + ../../../../../src/ta_func/ta_PLUS_DI.c \ + ../../../../../src/ta_func/ta_PLUS_DM.c \ + ../../../../../src/ta_func/ta_PPO.c \ + ../../../../../src/ta_func/ta_ROC.c \ + ../../../../../src/ta_func/ta_ROCP.c \ + ../../../../../src/ta_func/ta_ROCR.c \ + ../../../../../src/ta_func/ta_ROCR100.c \ + ../../../../../src/ta_func/ta_RSI.c \ + ../../../../../src/ta_func/ta_SAR.c \ + ../../../../../src/ta_func/ta_SAREXT.c \ + ../../../../../src/ta_func/ta_SIN.c \ + ../../../../../src/ta_func/ta_SINH.c \ + ../../../../../src/ta_func/ta_SMA.c \ + ../../../../../src/ta_func/ta_SQRT.c \ + ../../../../../src/ta_func/ta_STDDEV.c \ + ../../../../../src/ta_func/ta_STOCH.c \ + ../../../../../src/ta_func/ta_STOCHF.c \ + ../../../../../src/ta_func/ta_STOCHRSI.c \ + ../../../../../src/ta_func/ta_SUB.c \ + ../../../../../src/ta_func/ta_SUM.c \ + ../../../../../src/ta_func/ta_T3.c \ + ../../../../../src/ta_func/ta_TAN.c \ + ../../../../../src/ta_func/ta_TANH.c \ + ../../../../../src/ta_func/ta_TEMA.c \ + ../../../../../src/ta_func/ta_TRANGE.c \ + ../../../../../src/ta_func/ta_TRIMA.c \ + ../../../../../src/ta_func/ta_TRIX.c \ + ../../../../../src/ta_func/ta_TSF.c \ + ../../../../../src/ta_func/ta_TYPPRICE.c \ + ../../../../../src/ta_func/ta_ULTOSC.c \ + ../../../../../src/ta_func/ta_VAR.c \ + ../../../../../src/ta_func/ta_WCLPRICE.c \ + ../../../../../src/ta_func/ta_WILLR.c \ + ../../../../../src/ta_func/ta_WMA.c + +# Compiler Options +INCLUDEPATH = ../../../../../src/ta_common \n ../../../../../include + +# debug/release dependent options. +debug:DEFINES *= TA_DEBUG +debug:DEFINES *= _DEBUG +DEFINES += TA_SINGLE_THREAD +thread:DEFINES -= TA_SINGLE_THREAD + + +# Platform dependent options. +win32:DEFINES *= WIN32 +win32-msvc:DEFINES *= _MBCS _LIB +freebsd-g++:LIBS -= -ldl +freebsd-g++:INCLUDEPATH += /usr/local/include + +cmd:TEMP_CLEAN_ALL = ../../../../../temp/cmd/*.pch +cmr:TEMP_CLEAN_ALL = ../../../../../temp/cmr/*.pch +cmp:TEMP_CLEAN_ALL = ../../../../../temp/cmp/*.pch +csd:TEMP_CLEAN_ALL = ../../../../../temp/csd/*.pch +csr:TEMP_CLEAN_ALL = ../../../../../temp/csr/*.pch +csp:TEMP_CLEAN_ALL = ../../../../../temp/csp/*.pch +cdr:TEMP_CLEAN_ALL = ../../../../../temp/cdr/*.pch +cdd:TEMP_CLEAN_ALL = ../../../../../temp/cdd/*.pch + +cmd:TEMP_CLEAN_ALL2 = ../../../../../temp/cmd/*.idb +cmr:TEMP_CLEAN_ALL2 = ../../../../../temp/cmr/*.idb +cmp:TEMP_CLEAN_ALL2 = ../../../../../temp/cmp/*.idb +csd:TEMP_CLEAN_ALL2 = ../../../../../temp/csd/*.idb +csr:TEMP_CLEAN_ALL2 = ../../../../../temp/csr/*.idb +csp:TEMP_CLEAN_ALL2 = ../../../../../temp/csp/*.idb +cdr:TEMP_CLEAN_ALL2 = ../../../../../temp/cdr/*.idb +cdd:TEMP_CLEAN_ALL2 = ../../../../../temp/cdd/*.idb + +cmd:TEMP_CLEAN_ALL3 = ../../../../../temp/cmd/$$LIBTARGET/*.pch +cmr:TEMP_CLEAN_ALL3 = ../../../../../temp/cmr/$$LIBTARGET/*.pch +cmp:TEMP_CLEAN_ALL3 = ../../../../../temp/cmp/$$LIBTARGET/*.pch +csd:TEMP_CLEAN_ALL3 = ../../../../../temp/csd/$$LIBTARGET/*.pch +csr:TEMP_CLEAN_ALL3 = ../../../../../temp/csr/$$LIBTARGET/*.pch +csp:TEMP_CLEAN_ALL3 = ../../../../../temp/csp/$$LIBTARGET/*.pch +cdr:TEMP_CLEAN_ALL3 = ../../../../../temp/cdr/$$LIBTARGET/*.pch +cdd:TEMP_CLEAN_ALL3 = ../../../../../temp/cdd/$$LIBTARGET/*.pch + +cmd:TEMP_CLEAN_ALL4 = ../../../../../temp/cmd/$$LIBTARGET/*.idb +cmr:TEMP_CLEAN_ALL4 = ../../../../../temp/cmr/$$LIBTARGET/*.idb +cmp:TEMP_CLEAN_ALL4 = ../../../../../temp/cmp/$$LIBTARGET/*.idb +csd:TEMP_CLEAN_ALL4 = ../../../../../temp/csd/$$LIBTARGET/*.idb +csr:TEMP_CLEAN_ALL4 = ../../../../../temp/csr/$$LIBTARGET/*.idb +csp:TEMP_CLEAN_ALL4 = ../../../../../temp/csp/$$LIBTARGET/*.idb +cdr:TEMP_CLEAN_ALL4 = ../../../../../temp/cdr/$$LIBTARGET/*.idb +cdd:TEMP_CLEAN_ALL4 = ../../../../../temp/cdd/$$LIBTARGET/*.idb + +cmd:TEMP_CLEAN_ALL5 = ../../../../../temp/cmd/$$LIBTARGET/*.obj +cmr:TEMP_CLEAN_ALL5 = ../../../../../temp/cmr/$$LIBTARGET/*.obj +cmp:TEMP_CLEAN_ALL5 = ../../../../../temp/cmp/$$LIBTARGET/*.obj +csd:TEMP_CLEAN_ALL5 = ../../../../../temp/csd/$$LIBTARGET/*.obj +csr:TEMP_CLEAN_ALL5 = ../../../../../temp/csr/$$LIBTARGET/*.obj +csp:TEMP_CLEAN_ALL5 = ../../../../../temp/csp/$$LIBTARGET/*.obj +cdr:TEMP_CLEAN_ALL5 = ../../../../../temp/cdr/$$LIBTARGET/*.obj +cdd:TEMP_CLEAN_ALL5 = ../../../../../temp/cdd/$$LIBTARGET/*.obj + +win32:CLEAN_FILES = ../../../../../bin/*.map ../../../../../bin/*._xe ../../../../../bin/*.tds ../../../../../bin/*.pdb ../../../../../bin/*.pbo ../../../../../bin/*.pbi ../../../../../bin/*.pbt $$TEMP_CLEAN_ALL $$TEMP_CLEAN_ALL2 $$TEMP_CLEAN_ALL3 $$TEMP_CLEAN_ALL4 $$TEMP_CLEAN_ALL5 diff --git a/make/gen_make/ta_libc/make_pro.pl b/make/gen_make/ta_libc/make_pro.pl new file mode 100644 index 000000000..71e9e5c0f --- /dev/null +++ b/make/gen_make/ta_libc/make_pro.pl @@ -0,0 +1,177 @@ +#! /usr/bin/perl + +# This file generates the "ta_libc.pro" using the information +# from all the sub-library: +# ta_data, ta_abstract, ta_common, ta_func, ta_perf +# +# Reminder: ta_libc.pro is then process by tmake for +# generating the multi-platform makefiles. +# + +use Env; + +$origTMAKEPATH = $TMAKEPATH; + +# Un-comment the following lines if +# you wish to provide your own TMAKEPATH. +# use Env qw( TMAKEPATH ); + +$ENV{'TMAKEPATH'} = '../template/win32-msvc'; + +# Concatenate all the sources of all sub-library into '@source' +if( $^O eq "MSWin32" ) +{ + $b = `tmake ..\\ta_common\\ta_common.pro -e Expand("SOURCES")`; + $c = `tmake ..\\ta_abstract\\ta_abstract.pro -e Expand("SOURCES")`; + $d = `tmake ..\\ta_func\\ta_func.pro -e Expand("SOURCES")`; +} +else +{ + $b = `tmake ../ta_common/ta_common.pro -e "Expand("SOURCES")"`; + $c = `tmake ../ta_abstract/ta_abstract.pro -e "Expand("SOURCES")"`; + $d = `tmake ../ta_func/ta_func.pro -e "Expand("SOURCES")"`; +} + +chomp $b; +chomp $c; +chomp $d; + +@sources = (); +$nbsources = 0; +for $z (split / /, $b ) { @sources = (@sources, $z ); $nbSources += 1} +for $z (split / /, $c ) { @sources = (@sources, $z ); $nbSources += 1} +for $z (split / /, $d ) { @sources = (@sources, $z ); $nbSources += 1} + +# Concatenate all the include path of all sub-library into '@incpath' +if( $^O eq "MsWin32" ) +{ + $b = `tmake ..\\ta_common\\ta_common.pro -e Expand("INCLUDEPATH")`; + $c = `tmake ..\\ta_abstract\\ta_abstract.pro -e Expand("INCLUDEPATH")`; + $d = `tmake ..\\ta_func\\ta_func.pro -e Expand("INCLUDEPATH")`; +} +else +{ + $b = `tmake ../ta_common/ta_common.pro -e "Expand("INCLUDEPATH")"`; + $c = `tmake ../ta_abstract/ta_abstract.pro -e "Expand("INCLUDEPATH")"`; + $d = `tmake ../ta_func/ta_func.pro -e "Expand("INCLUDEPATH")"`; +} + +chomp $b; +chomp $c; +chomp $d; + +@incpath = (); +$nbincpath = 0; + +for $z (split / /, $b ) +{ + if( $z ne "\\n" ) { @incpath = (@incpath, $z ); $nbincpath += 1 } +} + +for $z (split / /, $c ) +{ + if( $z ne "\\n" ) { @incpath = (@incpath, $z ); $nbincpath += 1 } +} + +for $z (split / /, $d ) +{ + if( $z ne "\\n" ) { @incpath = (@incpath, $z ); $nbincpath += 1 } +} + +# Get the version from ta_common.pro +# +# Not used anymore. +# +# if( $^O eq "MsWin32" ) +# { +# $libversion = `tmake ..\\ta_common\\ta_common.pro -e Expand("VERSION")`; +# } +# else +# { +# $libversion = `tmake ../ta_common/ta_common.pro -e "Expand("VERSION")"`; +# } + +chomp( $libversion ); + +# Start to create the output from here + +# First the header +print "# Do not modify this file. It is automatically\n"; +print "# generated by make_pro.pl\n"; +print "\n"; +print "TEMPLATE = lib\n"; +print "CONFIG += staticlib\n"; +print( "\n" ); +print "# Identify the temp dir\n"; +print "cmd:OBJECTS_DIR = ../../../../../temp/cmd\n"; +print "cmr:OBJECTS_DIR = ../../../../../temp/cmr\n"; +print "cmp:OBJECTS_DIR = ../../../../../temp/cmp\n"; +print "csd:OBJECTS_DIR = ../../../../../temp/csd\n"; +print "csr:OBJECTS_DIR = ../../../../../temp/csr\n"; +print "csp:OBJECTS_DIR = ../../../../../temp/csp\n"; +print "cdr:OBJECTS_DIR = ../../../../../temp/cdr\n"; +print "cdd:OBJECTS_DIR = ../../../../../temp/cdd\n"; +print "\n"; +print "# Identify the target name\n"; +print "LIBTARGET = ta_libc\n"; +print "cmd:TARGET = ta_libc_cmd\n"; +print "cmr:TARGET = ta_libc_cmr\n"; +print "cmp:TARGET = ta_libc_cmp\n"; +print "csd:TARGET = ta_libc_csd\n"; +print "csr:TARGET = ta_libc_csr\n"; +print "csp:TARGET = ta_libc_csp\n"; +print "cdr:TARGET = ta_libc_cdr\n"; +print "cdd:TARGET = ta_libc_cdd\n"; +print "\n"; +print "\# Output info\n"; +print "DESTDIR = ../../../../../lib\n"; + +# Output the "SOURCES" variable. +print "\# File to process\n"; +$iter = 0; +$firstline = 1; +for $z (@sources) { + $iter += 1; + chomp($z); + + if( $firstline ) { + print "SOURCES = "; + $firstline = 0; + } + else { + print " "; + } + + if( $iter == $nbSources ) + { print $z; } + else + { print $z," \\", "\n"; } +} + +print "\n\# Compiler Options\n"; + +# Output the include path of all sub-library. +# We leave it to tmake to eliminate redundancy. +for $z (@incpath) +{ print "INCLUDEPATH *= $z\n"; } +print "\n"; + +# Output the rest of the .pro file + +print "\# debug/release dependent options.\n"; +print "debug:DEFINES *= TA_DEBUG\n"; +print "debug:DEFINES *= _DEBUG\n"; +print "DEFINES += TA_SINGLE_THREAD\n"; +print "thread:DEFINES -= TA_SINGLE_THREAD\n"; + +print "\# Platform dependent options.\n"; +print "win32:DEFINES *= WIN32\n"; +print "win32-msvc:DEFINES *= _MBCS _LIB\n"; +print "freebsd-g++:LIBS -= -ldl\n"; +print "freebsd-g++:INCLUDEPATH += /usr/local/include\n"; + + +print "win32:CLEAN_FILES = ../../../../../bin/*.map ../../../../../bin/*._xe ../../../../../bin/*.tds ../../../../../bin/*.pdb ../../../../../bin/*.pbo ../../../../../bin/*.pbi ../../../../../bin/*.pbt\n"; + +$TMAKEPATH = $origTMAKEPATH; + diff --git a/make/gen_make/ta_libc/ta_libc.pro b/make/gen_make/ta_libc/ta_libc.pro new file mode 100644 index 000000000..9eebaf81b --- /dev/null +++ b/make/gen_make/ta_libc/ta_libc.pro @@ -0,0 +1,245 @@ +# Do not modify this file. It is automatically +# generated by make_pro.pl + +TEMPLATE = lib +CONFIG += staticlib + +# Identify the temp dir +cmd:OBJECTS_DIR = ../../../../../temp/cmd +cmr:OBJECTS_DIR = ../../../../../temp/cmr +cmp:OBJECTS_DIR = ../../../../../temp/cmp +csd:OBJECTS_DIR = ../../../../../temp/csd +csr:OBJECTS_DIR = ../../../../../temp/csr +csp:OBJECTS_DIR = ../../../../../temp/csp +cdr:OBJECTS_DIR = ../../../../../temp/cdr +cdd:OBJECTS_DIR = ../../../../../temp/cdd + +# Identify the target name +LIBTARGET = ta_libc +cmd:TARGET = ta_libc_cmd +cmr:TARGET = ta_libc_cmr +cmp:TARGET = ta_libc_cmp +csd:TARGET = ta_libc_csd +csr:TARGET = ta_libc_csr +csp:TARGET = ta_libc_csp +cdr:TARGET = ta_libc_cdr +cdd:TARGET = ta_libc_cdd + +# Output info +DESTDIR = ../../../../../lib +# File to process +SOURCES = ../../../../../src/ta_common/ta_global.c \ + ../../../../../src/ta_common/ta_retcode.c \ + ../../../../../src/ta_common/ta_version.c \ + ../../../../../src/ta_abstract/ta_abstract.c \ + ../../../../../src/ta_abstract/ta_def_ui.c \ + ../../../../../src/ta_abstract/ta_func_api.c \ + ../../../../../src/ta_abstract/ta_group_idx.c \ + ../../../../../src/ta_abstract/frames/ta_frame.c \ + ../../../../../src/ta_abstract/tables/table_a.c \ + ../../../../../src/ta_abstract/tables/table_b.c \ + ../../../../../src/ta_abstract/tables/table_c.c \ + ../../../../../src/ta_abstract/tables/table_d.c \ + ../../../../../src/ta_abstract/tables/table_e.c \ + ../../../../../src/ta_abstract/tables/table_f.c \ + ../../../../../src/ta_abstract/tables/table_g.c \ + ../../../../../src/ta_abstract/tables/table_h.c \ + ../../../../../src/ta_abstract/tables/table_i.c \ + ../../../../../src/ta_abstract/tables/table_j.c \ + ../../../../../src/ta_abstract/tables/table_k.c \ + ../../../../../src/ta_abstract/tables/table_l.c \ + ../../../../../src/ta_abstract/tables/table_m.c \ + ../../../../../src/ta_abstract/tables/table_n.c \ + ../../../../../src/ta_abstract/tables/table_o.c \ + ../../../../../src/ta_abstract/tables/table_p.c \ + ../../../../../src/ta_abstract/tables/table_q.c \ + ../../../../../src/ta_abstract/tables/table_r.c \ + ../../../../../src/ta_abstract/tables/table_s.c \ + ../../../../../src/ta_abstract/tables/table_t.c \ + ../../../../../src/ta_abstract/tables/table_u.c \ + ../../../../../src/ta_abstract/tables/table_v.c \ + ../../../../../src/ta_abstract/tables/table_w.c \ + ../../../../../src/ta_abstract/tables/table_x.c \ + ../../../../../src/ta_abstract/tables/table_y.c \ + ../../../../../src/ta_abstract/tables/table_z.c \ + ../../../../../src/ta_func/ta_utility.c \ + ../../../../../src/ta_func/ta_ACOS.c \ + ../../../../../src/ta_func/ta_AD.c \ + ../../../../../src/ta_func/ta_ADD.c \ + ../../../../../src/ta_func/ta_ADOSC.c \ + ../../../../../src/ta_func/ta_ADX.c \ + ../../../../../src/ta_func/ta_ADXR.c \ + ../../../../../src/ta_func/ta_APO.c \ + ../../../../../src/ta_func/ta_AROON.c \ + ../../../../../src/ta_func/ta_AROONOSC.c \ + ../../../../../src/ta_func/ta_ASIN.c \ + ../../../../../src/ta_func/ta_ATAN.c \ + ../../../../../src/ta_func/ta_ATR.c \ + ../../../../../src/ta_func/ta_AVGPRICE.c \ + ../../../../../src/ta_func/ta_BBANDS.c \ + ../../../../../src/ta_func/ta_BETA.c \ + ../../../../../src/ta_func/ta_BOP.c \ + ../../../../../src/ta_func/ta_CCI.c \ + ../../../../../src/ta_func/ta_CDL2CROWS.c \ + ../../../../../src/ta_func/ta_CDL3BLACKCROWS.c \ + ../../../../../src/ta_func/ta_CDL3INSIDE.c \ + ../../../../../src/ta_func/ta_CDL3LINESTRIKE.c \ + ../../../../../src/ta_func/ta_CDL3OUTSIDE.c \ + ../../../../../src/ta_func/ta_CDL3STARSINSOUTH.c \ + ../../../../../src/ta_func/ta_CDL3WHITESOLDIERS.c \ + ../../../../../src/ta_func/ta_CDLABANDONEDBABY.c \ + ../../../../../src/ta_func/ta_CDLADVANCEBLOCK.c \ + ../../../../../src/ta_func/ta_CDLBELTHOLD.c \ + ../../../../../src/ta_func/ta_CDLBREAKAWAY.c \ + ../../../../../src/ta_func/ta_CDLCLOSINGMARUBOZU.c \ + ../../../../../src/ta_func/ta_CDLCONCEALBABYSWALL.c \ + ../../../../../src/ta_func/ta_CDLCOUNTERATTACK.c \ + ../../../../../src/ta_func/ta_CDLDARKCLOUDCOVER.c \ + ../../../../../src/ta_func/ta_CDLDOJI.c \ + ../../../../../src/ta_func/ta_CDLDOJISTAR.c \ + ../../../../../src/ta_func/ta_CDLDRAGONFLYDOJI.c \ + ../../../../../src/ta_func/ta_CDLENGULFING.c \ + ../../../../../src/ta_func/ta_CDLEVENINGDOJISTAR.c \ + ../../../../../src/ta_func/ta_CDLEVENINGSTAR.c \ + ../../../../../src/ta_func/ta_CDLGAPSIDESIDEWHITE.c \ + ../../../../../src/ta_func/ta_CDLGRAVESTONEDOJI.c \ + ../../../../../src/ta_func/ta_CDLHAMMER.c \ + ../../../../../src/ta_func/ta_CDLHANGINGMAN.c \ + ../../../../../src/ta_func/ta_CDLHARAMI.c \ + ../../../../../src/ta_func/ta_CDLHARAMICROSS.c \ + ../../../../../src/ta_func/ta_CDLHIGHWAVE.c \ + ../../../../../src/ta_func/ta_CDLHIKKAKE.c \ + ../../../../../src/ta_func/ta_CDLHIKKAKEMOD.c \ + ../../../../../src/ta_func/ta_CDLHOMINGPIGEON.c \ + ../../../../../src/ta_func/ta_CDLIDENTICAL3CROWS.c \ + ../../../../../src/ta_func/ta_CDLINNECK.c \ + ../../../../../src/ta_func/ta_CDLINVERTEDHAMMER.c \ + ../../../../../src/ta_func/ta_CDLKICKING.c \ + ../../../../../src/ta_func/ta_CDLKICKINGBYLENGTH.c \ + ../../../../../src/ta_func/ta_CDLLADDERBOTTOM.c \ + ../../../../../src/ta_func/ta_CDLLONGLEGGEDDOJI.c \ + ../../../../../src/ta_func/ta_CDLLONGLINE.c \ + ../../../../../src/ta_func/ta_CDLMARUBOZU.c \ + ../../../../../src/ta_func/ta_CDLMATCHINGLOW.c \ + ../../../../../src/ta_func/ta_CDLMATHOLD.c \ + ../../../../../src/ta_func/ta_CDLMORNINGDOJISTAR.c \ + ../../../../../src/ta_func/ta_CDLMORNINGSTAR.c \ + ../../../../../src/ta_func/ta_CDLONNECK.c \ + ../../../../../src/ta_func/ta_CDLPIERCING.c \ + ../../../../../src/ta_func/ta_CDLRICKSHAWMAN.c \ + ../../../../../src/ta_func/ta_CDLRISEFALL3METHODS.c \ + ../../../../../src/ta_func/ta_CDLSEPARATINGLINES.c \ + ../../../../../src/ta_func/ta_CDLSHOOTINGSTAR.c \ + ../../../../../src/ta_func/ta_CDLSHORTLINE.c \ + ../../../../../src/ta_func/ta_CDLSPINNINGTOP.c \ + ../../../../../src/ta_func/ta_CDLSTALLEDPATTERN.c \ + ../../../../../src/ta_func/ta_CDLSTICKSANDWICH.c \ + ../../../../../src/ta_func/ta_CDLTAKURI.c \ + ../../../../../src/ta_func/ta_CDLTASUKIGAP.c \ + ../../../../../src/ta_func/ta_CDLTHRUSTING.c \ + ../../../../../src/ta_func/ta_CDLTRISTAR.c \ + ../../../../../src/ta_func/ta_CDLUNIQUE3RIVER.c \ + ../../../../../src/ta_func/ta_CDLUPSIDEGAP2CROWS.c \ + ../../../../../src/ta_func/ta_CDLXSIDEGAP3METHODS.c \ + ../../../../../src/ta_func/ta_CEIL.c \ + ../../../../../src/ta_func/ta_CMO.c \ + ../../../../../src/ta_func/ta_CORREL.c \ + ../../../../../src/ta_func/ta_COS.c \ + ../../../../../src/ta_func/ta_COSH.c \ + ../../../../../src/ta_func/ta_DEMA.c \ + ../../../../../src/ta_func/ta_DIV.c \ + ../../../../../src/ta_func/ta_DX.c \ + ../../../../../src/ta_func/ta_EMA.c \ + ../../../../../src/ta_func/ta_EXP.c \ + ../../../../../src/ta_func/ta_FLOOR.c \ + ../../../../../src/ta_func/ta_HT_DCPERIOD.c \ + ../../../../../src/ta_func/ta_HT_DCPHASE.c \ + ../../../../../src/ta_func/ta_HT_PHASOR.c \ + ../../../../../src/ta_func/ta_HT_SINE.c \ + ../../../../../src/ta_func/ta_HT_TRENDLINE.c \ + ../../../../../src/ta_func/ta_HT_TRENDMODE.c \ + ../../../../../src/ta_func/ta_KAMA.c \ + ../../../../../src/ta_func/ta_LINEARREG.c \ + ../../../../../src/ta_func/ta_LINEARREG_ANGLE.c \ + ../../../../../src/ta_func/ta_LINEARREG_INTERCEPT.c \ + ../../../../../src/ta_func/ta_LINEARREG_SLOPE.c \ + ../../../../../src/ta_func/ta_LN.c \ + ../../../../../src/ta_func/ta_LOG10.c \ + ../../../../../src/ta_func/ta_MA.c \ + ../../../../../src/ta_func/ta_MACD.c \ + ../../../../../src/ta_func/ta_MACDEXT.c \ + ../../../../../src/ta_func/ta_MACDFIX.c \ + ../../../../../src/ta_func/ta_MAMA.c \ + ../../../../../src/ta_func/ta_MAVP.c \ + ../../../../../src/ta_func/ta_MAX.c \ + ../../../../../src/ta_func/ta_MAXINDEX.c \ + ../../../../../src/ta_func/ta_MEDPRICE.c \ + ../../../../../src/ta_func/ta_MFI.c \ + ../../../../../src/ta_func/ta_MIDPOINT.c \ + ../../../../../src/ta_func/ta_MIDPRICE.c \ + ../../../../../src/ta_func/ta_MIN.c \ + ../../../../../src/ta_func/ta_MININDEX.c \ + ../../../../../src/ta_func/ta_MINMAX.c \ + ../../../../../src/ta_func/ta_MINMAXINDEX.c \ + ../../../../../src/ta_func/ta_MINUS_DI.c \ + ../../../../../src/ta_func/ta_MINUS_DM.c \ + ../../../../../src/ta_func/ta_MOM.c \ + ../../../../../src/ta_func/ta_MULT.c \ + ../../../../../src/ta_func/ta_NATR.c \ + ../../../../../src/ta_func/ta_OBV.c \ + ../../../../../src/ta_func/ta_PLUS_DI.c \ + ../../../../../src/ta_func/ta_PLUS_DM.c \ + ../../../../../src/ta_func/ta_PPO.c \ + ../../../../../src/ta_func/ta_ROC.c \ + ../../../../../src/ta_func/ta_ROCP.c \ + ../../../../../src/ta_func/ta_ROCR.c \ + ../../../../../src/ta_func/ta_ROCR100.c \ + ../../../../../src/ta_func/ta_RSI.c \ + ../../../../../src/ta_func/ta_SAR.c \ + ../../../../../src/ta_func/ta_SAREXT.c \ + ../../../../../src/ta_func/ta_SIN.c \ + ../../../../../src/ta_func/ta_SINH.c \ + ../../../../../src/ta_func/ta_SMA.c \ + ../../../../../src/ta_func/ta_SQRT.c \ + ../../../../../src/ta_func/ta_STDDEV.c \ + ../../../../../src/ta_func/ta_STOCH.c \ + ../../../../../src/ta_func/ta_STOCHF.c \ + ../../../../../src/ta_func/ta_STOCHRSI.c \ + ../../../../../src/ta_func/ta_SUB.c \ + ../../../../../src/ta_func/ta_SUM.c \ + ../../../../../src/ta_func/ta_T3.c \ + ../../../../../src/ta_func/ta_TAN.c \ + ../../../../../src/ta_func/ta_TANH.c \ + ../../../../../src/ta_func/ta_TEMA.c \ + ../../../../../src/ta_func/ta_TRANGE.c \ + ../../../../../src/ta_func/ta_TRIMA.c \ + ../../../../../src/ta_func/ta_TRIX.c \ + ../../../../../src/ta_func/ta_TSF.c \ + ../../../../../src/ta_func/ta_TYPPRICE.c \ + ../../../../../src/ta_func/ta_ULTOSC.c \ + ../../../../../src/ta_func/ta_VAR.c \ + ../../../../../src/ta_func/ta_WCLPRICE.c \ + ../../../../../src/ta_func/ta_WILLR.c \ + ../../../../../src/ta_func/ta_WMA.c +# Compiler Options +INCLUDEPATH *= ../../../../../src/ta_common +INCLUDEPATH *= ../../../../../include +INCLUDEPATH *= ../../../../../src/ta_common +INCLUDEPATH *= ../../../../../src/ta_abstract +INCLUDEPATH *= ../../../../../src/ta_abstract/tables +INCLUDEPATH *= ../../../../../src/ta_abstract/frames +INCLUDEPATH *= ../../../../../include +INCLUDEPATH *= ../../../../../src/ta_common +INCLUDEPATH *= ../../../../../include + +# debug/release dependent options. +debug:DEFINES *= TA_DEBUG +debug:DEFINES *= _DEBUG +DEFINES += TA_SINGLE_THREAD +thread:DEFINES -= TA_SINGLE_THREAD +# Platform dependent options. +win32:DEFINES *= WIN32 +win32-msvc:DEFINES *= _MBCS _LIB +freebsd-g++:LIBS -= -ldl +freebsd-g++:INCLUDEPATH += /usr/local/include +win32:CLEAN_FILES = ../../../../../bin/*.map ../../../../../bin/*._xe ../../../../../bin/*.tds ../../../../../bin/*.pdb ../../../../../bin/*.pbo ../../../../../bin/*.pbi ../../../../../bin/*.pbt diff --git a/make/gen_make/ta_regtest/ta_regtest.pro b/make/gen_make/ta_regtest/ta_regtest.pro new file mode 100644 index 000000000..bf7d8b11e --- /dev/null +++ b/make/gen_make/ta_regtest/ta_regtest.pro @@ -0,0 +1,142 @@ +TEMPLATE = app +CONFIG -= qt + +# Force this application to be a console application +CONFIG -= windows +CONFIG += console + +# Identify the temp dir +cmd:OBJECTS_DIR = ../../../../../temp/cmd +cmr:OBJECTS_DIR = ../../../../../temp/cmr +cmp:OBJECTS_DIR = ../../../../../temp/cmp +csd:OBJECTS_DIR = ../../../../../temp/csd +csr:OBJECTS_DIR = ../../../../../temp/csr +csp:OBJECTS_DIR = ../../../../../temp/csp +cdr:OBJECTS_DIR = ../../../../../temp/cdr +cdd:OBJECTS_DIR = ../../../../../temp/cdd + +# Output info +TARGET = ta_regtest +DESTDIR = ../../../../../bin + +# Files to process +SOURCES = ../../../../../src/tools/ta_regtest/ta_regtest.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_candlestick.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_1in_1out.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_1in_2out.c \ + ../../../../../src/tools/ta_regtest/test_internals.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_adx.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_bbands.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_ma.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_macd.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_minmax.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_mom.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_per_ema.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hl.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hlc.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_per_hlcv.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_per_ohlc.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_po.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_rsi.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_sar.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_stddev.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_stoch.c \ + ../../../../../src/tools/ta_regtest/ta_test_func/test_trange.c \ + ../../../../../src/tools/ta_regtest/test_util.c \ + ../../../../../src/tools/ta_regtest/test_data.c \ + ../../../../../src/tools/ta_regtest/test_abstract.c + +# Additional libraries +win32:TA_LIBC_CMD = ta_libc_cmd.lib +win32:TA_LIBC_CMR = ta_libc_cmr.lib +win32:TA_LIBC_CSD = ta_libc_csd.lib +win32:TA_LIBC_CSR = ta_libc_csr.lib +win32:TA_LIBC_CDR = ta_libc_cdr.lib +win32:TA_LIBC_CDD = ta_libc_cdd.lib + +unix:TA_LIBC_CMD = libta_libc_cmd.a +unix:TA_LIBC_CMR = libta_libc_cmr.a +unix:TA_LIBC_CMP = libta_libc_cmp.a +unix:TA_LIBC_CSD = libta_libc_csd.a +unix:TA_LIBC_CSR = libta_libc_csr.a +unix:TA_LIBC_CSP = libta_libc_csp.a +unix:TA_LIBC_CDR = libta_libc_cdr.a +unix:TA_LIBC_CDD = libta_libc_cdd.a + +cmd:LIBS += ../../../../../lib/$$TA_LIBC_CMD +cmr:LIBS += ../../../../../lib/$$TA_LIBC_CMR +cmp:LIBS += ../../../../../lib/$$TA_LIBC_CMP +csd:LIBS += ../../../../../lib/$$TA_LIBC_CSD +csr:LIBS += ../../../../../lib/$$TA_LIBC_CSR +csp:LIBS += ../../../../../lib/$$TA_LIBC_CSP +cdr:LIBS += ../../../../../lib/$$TA_LIBC_CDR +cdd:LIBS += ../../../../../lib/$$TA_LIBC_CDD + +unix:LIBS += -ldl + +# Compiler Options +INCLUDEPATH = ../../../../../src/ta_common \ + ../../../../../src/tools/ta_regtest \ + ../../../../../src/ta_func \ + ../../../../../include + +# debug/release dependent options. +debug:DEFINES *= TA_DEBUG +debug:DEFINES *= _DEBUG +DEFINES += TA_SINGLE_THREAD +thread:DEFINES -= TA_SINGLE_THREAD + + +# Platform dependent options. +win32:DEFINES *= WIN32 +win32-msvc:DEFINES *= _MBCS _LIB +cygwin-g++:LIBS -= -ldl +freebsd-g++:LIBS -= -ldl +freebsd-g++:INCLUDEPATH += /usr/local/include + +cmd:TEMP_CLEAN_ALL = ../../../../../temp/cmd/*.pch +cmr:TEMP_CLEAN_ALL = ../../../../../temp/cmr/*.pch +cmp:TEMP_CLEAN_ALL = ../../../../../temp/cmp/*.pch +csd:TEMP_CLEAN_ALL = ../../../../../temp/csd/*.pch +csr:TEMP_CLEAN_ALL = ../../../../../temp/csr/*.pch +csp:TEMP_CLEAN_ALL = ../../../../../temp/csp/*.pch +cdr:TEMP_CLEAN_ALL = ../../../../../temp/cdr/*.pch +cdd:TEMP_CLEAN_ALL = ../../../../../temp/cdd/*.pch + +cmd:TEMP_CLEAN_ALL2 = ../../../../../temp/cmd/*.idb +cmr:TEMP_CLEAN_ALL2 = ../../../../../temp/cmr/*.idb +cmp:TEMP_CLEAN_ALL2 = ../../../../../temp/cmp/*.idb +csd:TEMP_CLEAN_ALL2 = ../../../../../temp/csd/*.idb +csr:TEMP_CLEAN_ALL2 = ../../../../../temp/csr/*.idb +csp:TEMP_CLEAN_ALL2 = ../../../../../temp/csp/*.idb +cdr:TEMP_CLEAN_ALL2 = ../../../../../temp/cdr/*.idb +cdd:TEMP_CLEAN_ALL2 = ../../../../../temp/cdd/*.idb + +cmd:TEMP_CLEAN_ALL3 = ../../../../../temp/cmd/$$TARGET/*.pch +cmr:TEMP_CLEAN_ALL3 = ../../../../../temp/cmr/$$TARGET/*.pch +cmp:TEMP_CLEAN_ALL3 = ../../../../../temp/cmp/$$TARGET/*.pch +csd:TEMP_CLEAN_ALL3 = ../../../../../temp/csd/$$TARGET/*.pch +csr:TEMP_CLEAN_ALL3 = ../../../../../temp/csr/$$TARGET/*.pch +csp:TEMP_CLEAN_ALL3 = ../../../../../temp/csp/$$TARGET/*.pch +cdr:TEMP_CLEAN_ALL3 = ../../../../../temp/cdr/$$TARGET/*.pch +cdd:TEMP_CLEAN_ALL3 = ../../../../../temp/cdd/$$TARGET/*.pch + +cmd:TEMP_CLEAN_ALL4 = ../../../../../temp/cmd/$$TARGET/*.idb +cmr:TEMP_CLEAN_ALL4 = ../../../../../temp/cmr/$$TARGET/*.idb +cmp:TEMP_CLEAN_ALL4 = ../../../../../temp/cmp/$$TARGET/*.idb +csd:TEMP_CLEAN_ALL4 = ../../../../../temp/csd/$$TARGET/*.idb +csr:TEMP_CLEAN_ALL4 = ../../../../../temp/csr/$$TARGET/*.idb +csp:TEMP_CLEAN_ALL4 = ../../../../../temp/csp/$$TARGET/*.idb +cdr:TEMP_CLEAN_ALL4 = ../../../../../temp/cdr/$$TARGET/*.idb +cdd:TEMP_CLEAN_ALL4 = ../../../../../temp/cdd/$$TARGET/*.idb + +cmd:TEMP_CLEAN_ALL5 = ../../../../../temp/cmd/$$TARGET/*.obj +cmr:TEMP_CLEAN_ALL5 = ../../../../../temp/cmr/$$TARGET/*.obj +cmp:TEMP_CLEAN_ALL5 = ../../../../../temp/cmp/$$TARGET/*.obj +csd:TEMP_CLEAN_ALL5 = ../../../../../temp/csd/$$TARGET/*.obj +csr:TEMP_CLEAN_ALL5 = ../../../../../temp/csr/$$TARGET/*.obj +csp:TEMP_CLEAN_ALL5 = ../../../../../temp/csp/$$TARGET/*.obj +cdr:TEMP_CLEAN_ALL5 = ../../../../../temp/cdr/$$TARGET/*.obj +cdd:TEMP_CLEAN_ALL5 = ../../../../../temp/cdd/$$TARGET/*.obj + +win32:CLEAN_FILES = ../../../../../bin/*.map ../../../../../bin/*._xe ../../../../../bin/*.tds ../../../../../bin/*.pdb ../../../../../bin/*.pbo ../../../../../bin/*.pbi ../../../../../bin/*.pbt $$TEMP_CLEAN_ALL $$TEMP_CLEAN_ALL2 $$TEMP_CLEAN_ALL3 $$TEMP_CLEAN_ALL4 $$TEMP_CLEAN_ALL5 diff --git a/make/gen_make/template/cygwin-g++/app.t b/make/gen_make/template/cygwin-g++/app.t new file mode 100644 index 000000000..867725eaa --- /dev/null +++ b/make/gen_make/template/cygwin-g++/app.t @@ -0,0 +1,2 @@ +#! Use the common Unix template +#$ IncludeTemplate("../unix/app.t"); diff --git a/make/gen_make/template/cygwin-g++/lib.t b/make/gen_make/template/cygwin-g++/lib.t new file mode 100644 index 000000000..2523b2f85 --- /dev/null +++ b/make/gen_make/template/cygwin-g++/lib.t @@ -0,0 +1,2 @@ +#! Use the common Unix template +#$ IncludeTemplate("../unix/lib.t"); diff --git a/make/gen_make/template/cygwin-g++/subdirs.t b/make/gen_make/template/cygwin-g++/subdirs.t new file mode 100644 index 000000000..5e888af05 --- /dev/null +++ b/make/gen_make/template/cygwin-g++/subdirs.t @@ -0,0 +1,2 @@ +#! Use the common Unix template +#$ IncludeTemplate("../unix/subdirs.t"); diff --git a/make/gen_make/template/cygwin-g++/tmake.conf b/make/gen_make/template/cygwin-g++/tmake.conf new file mode 100644 index 000000000..857634755 --- /dev/null +++ b/make/gen_make/template/cygwin-g++/tmake.conf @@ -0,0 +1,65 @@ +# +# $Id$ +# +# tmake configuration for linux-g++ +# + +MAKEFILE_GENERATOR = UNIX +TEMPLATE = app +CONFIG = qt warn_on release + +TMAKE_CC = gcc +TMAKE_CFLAGS = -pipe +TMAKE_CFLAGS_WARN_ON = -Wall -W +TMAKE_CFLAGS_WARN_OFF = +TMAKE_CFLAGS_RELEASE = -O2 -fno-strict-aliasing +TMAKE_CFLAGS_DEBUG = -g +TMAKE_CFLAGS_SHLIB = -fPIC +TMAKE_CFLAGS_YACC = -Wno-unused -Wno-parentheses +TMAKE_CFLAGS_THREAD = -D_REENTRANT + +TMAKE_CXX = g++ +TMAKE_CXXFLAGS = $$TMAKE_CFLAGS +TMAKE_CXXFLAGS_WARN_ON = $$TMAKE_CFLAGS_WARN_ON +TMAKE_CXXFLAGS_WARN_OFF = $$TMAKE_CFLAGS_WARN_OFF +TMAKE_CXXFLAGS_RELEASE = $$TMAKE_CFLAGS_RELEASE +TMAKE_CXXFLAGS_DEBUG = $$TMAKE_CFLAGS_DEBUG +TMAKE_CXXFLAGS_SHLIB = $$TMAKE_CFLAGS_SHLIB +TMAKE_CXXFLAGS_YACC = $$TMAKE_CFLAGS_YACC +TMAKE_CXXFLAGS_THREAD = $$TMAKE_CFLAGS_THREAD + +TMAKE_INCDIR = +TMAKE_LIBDIR = +TMAKE_INCDIR_X11 = /usr/X11R6/include +TMAKE_LIBDIR_X11 = /usr/X11R6/lib +TMAKE_INCDIR_QT = $(QTDIR)/include +TMAKE_LIBDIR_QT = $(QTDIR)/lib +TMAKE_INCDIR_OPENGL = /usr/X11R6/include +TMAKE_LIBDIR_OPENGL = /usr/X11R6/lib + +TMAKE_LINK = g++ +TMAKE_LINK_SHLIB = g++ +TMAKE_LFLAGS = +TMAKE_LFLAGS_RELEASE = +TMAKE_LFLAGS_DEBUG = +TMAKE_LFLAGS_SHLIB = -shared +TMAKE_LFLAGS_SONAME = -Wl,-soname, +TMAKE_LFLAGS_THREAD = +TMAKE_RPATH = -Wl,-rpath, + +TMAKE_LIBS = +TMAKE_LIBS_X11 = -lXext -lX11 -lm +TMAKE_LIBS_X11SM = -lICE -lSM +TMAKE_LIBS_QT = -lqt +TMAKE_LIBS_QT_THREAD = -lqt-mt +TMAKE_LIBS_OPENGL = -lGLU -lGL -lXmu +TMAKE_LIBS_THREAD = -lpthread + +TMAKE_MOC = $(QTDIR)/bin/moc +TMAKE_UIC = $(QTDIR)/bin/uic + +TMAKE_AR = ar cqs +TMAKE_RANLIB = + +TMAKE_TAR = tar -cf +TMAKE_GZIP = gzip -9f diff --git a/make/gen_make/template/freebsd-g++/app.t b/make/gen_make/template/freebsd-g++/app.t new file mode 100644 index 000000000..f59c9f904 --- /dev/null +++ b/make/gen_make/template/freebsd-g++/app.t @@ -0,0 +1,6 @@ +############################################################################# +#! +#! This is a tmake template for building Unix applications. +#! +#$ Project('TMAKE_APP_FLAG = 1'); +#$ IncludeTemplate("generic.t"); diff --git a/make/gen_make/template/freebsd-g++/generic.t b/make/gen_make/template/freebsd-g++/generic.t new file mode 100644 index 000000000..a4a697841 --- /dev/null +++ b/make/gen_make/template/freebsd-g++/generic.t @@ -0,0 +1,395 @@ +#! +#! This is a tmake template for building UNIX applications or libraries. +#! +#${ + Project('TMAKE_LIBS += $$LIBS'); + if ( !Project("INTERFACE_DECL_PATH") ) { + Project('INTERFACE_DECL_PATH = .' ); + } + if ( Project("TMAKE_LIB_FLAG") && !Config("staticlib") ) { + Project('CONFIG *= dll'); + } elsif ( Project("TMAKE_APP_FLAG") || Config("dll") ) { + Project('CONFIG -= staticlib'); + } + if ( Config("warn_off") ) { + Project('TMAKE_CFLAGS += $$TMAKE_CFLAGS_WARN_OFF'); + Project('TMAKE_CXXFLAGS += $$TMAKE_CXXFLAGS_WARN_OFF'); + } elsif ( Config("warn_on") ) { + Project('TMAKE_CFLAGS += $$TMAKE_CFLAGS_WARN_ON'); + Project('TMAKE_CXXFLAGS += $$TMAKE_CXXFLAGS_WARN_ON'); + } + if ( Config("debug") ) { + Project('TMAKE_CFLAGS += $$TMAKE_CFLAGS_DEBUG'); + Project('TMAKE_CXXFLAGS += $$TMAKE_CXXFLAGS_DEBUG'); + Project('TMAKE_LFLAGS += $$TMAKE_LFLAGS_DEBUG'); + } elsif ( Config("release") ) { + Project('TMAKE_CFLAGS += $$TMAKE_CFLAGS_RELEASE'); + Project('TMAKE_CXXFLAGS += $$TMAKE_CXXFLAGS_RELEASE'); + Project('TMAKE_LFLAGS += $$TMAKE_LFLAGS_RELEASE'); + } + if ( Project("TMAKE_INCDIR") ) { + AddIncludePath(Project("TMAKE_INCDIR")); + } + if ( Project("TMAKE_LIBDIR") ) { + Project('TMAKE_LIBDIR_FLAGS *= -L$$TMAKE_LIBDIR'); + } + if ( Config("qt") || Config("opengl") ) { + Project('CONFIG *= x11lib'); + if ( Config("opengl") ) { + Project('CONFIG *= x11inc'); + } + } + if ( Config("x11") ) { + Project('CONFIG *= x11lib'); + Project('CONFIG *= x11inc'); + } + if ( Config("thread") ) { + Project('DEFINES += QT_THREAD_SUPPORT'); + Project("TMAKE_CFLAGS_THREAD") && + Project('TMAKE_CFLAGS += $$TMAKE_CFLAGS_THREAD'); + Project("TMAKE_CXXFLAGS_THREAD") && + Project('TMAKE_CXXFLAGS += $$TMAKE_CXXFLAGS_THREAD'); + AddIncludePath(Project("TMAKE_INCDIR_THREAD")); + Project('TMAKE_LIBS *= $$TMAKE_LIBS_THREAD'); + Project("TMAKE_LFLAGS_THREAD") && + Project('TMAKE_LFLAGS += $$TMAKE_LFLAGS_THREAD'); + } + if ( Config("qt") ) { + Project('CONFIG *= moc'); + AddIncludePath(Project("TMAKE_INCDIR_QT")); + if ( !Config("debug") ) { + Project('DEFINES += NO_DEBUG'); + } + if ( !(((Project("TARGET") eq "qt") || (Project("TARGET") eq "qt-mt") || + (Project("TARGET") eq "qte") || (Project("TARGET") eq "qte-mt")) && + Project("TMAKE_LIB_FLAG")) ) { + Project("TMAKE_LIBDIR_QT") && + Project('TMAKE_LIBDIR_FLAGS *= -L$$TMAKE_LIBDIR_QT'); + if (Config("thread") && Project("TMAKE_LIBS_QT_THREAD")) { + Project('TMAKE_LIBS *= $$TMAKE_LIBS_QT_THREAD'); + } else { + Project('TMAKE_LIBS *= $$TMAKE_LIBS_QT'); + } + } + } + if ( Config("opengl") ) { + AddIncludePath(Project("TMAKE_INCDIR_OPENGL")); + Project("TMAKE_LIBDIR_OPENGL") && + Project('TMAKE_LIBDIR_FLAGS *= -L$$TMAKE_LIBDIR_OPENGL'); + Project('TMAKE_LIBS *= $$TMAKE_LIBS_OPENGL'); + } + if ( Config("x11inc") ) { + AddIncludePath(Project("TMAKE_INCDIR_X11")); + } + if ( Config("x11lib") ) { + Project("TMAKE_LIBDIR_X11") && + Project('TMAKE_LIBDIR_FLAGS *= -L$$TMAKE_LIBDIR_X11'); + Project('TMAKE_LIBS *= $$TMAKE_LIBS_X11'); + } + if ( Config("moc") ) { + $moc_aware = 1; + } + if ( !Project("TMAKE_RUN_CC") ) { + Project('TMAKE_RUN_CC = $(CC) -c $(CFLAGS) $(INCPATH) -o $obj $src'); + } + if ( !Project("TMAKE_RUN_CC_IMP") ) { + Project('TMAKE_RUN_CC_IMP = $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $<'); + } + if ( !Project("TMAKE_RUN_CXX") ) { + Project('TMAKE_RUN_CXX = $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $obj $src'); + } + if ( !Project("TMAKE_RUN_CXX_IMP") ) { + Project('TMAKE_RUN_CXX_IMP = $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<'); + } + Project('TMAKE_FILETAGS = HEADERS SOURCES TARGET DESTDIR $$FILETAGS'); + if ( Config("embedded") && Project("PRECOMPH") ) { + Project('SOURCES += allmoc.cpp'); + $project{'HEADERS_ORIG'} = Project('HEADERS'); + $project{'HEADERS'} = ""; + } + StdInit(); + $project{"VERSION"} || ($project{"VERSION"} = "1.0.0"); + ($project{"VER_MAJ"},$project{"VER_MIN"},$project{"VER_PAT"}) + = $project{"VERSION"} =~ /(\d+)\.(\d+)\.(\d+)/; + if ( !defined($project{"VER_PAT"}) ) { + ($project{"VER_MAJ"},$project{"VER_MIN"}) + = $project{"VERSION"} =~ /(\d+)\.(\d+)/; + $project{"VER_PAT"} = "0"; + } + if ( !defined($project{"VER_MIN"}) ) { + ($project{"VER_MAJ"}) + = $project{"VERSION"} =~ /(\d+)/; + $project{"VER_MIN"} = "0"; + $project{"VER_PAT"} = "0"; + } + Project('DESTDIR_TARGET = $(TARGET)'); + if ( Project("TMAKE_APP_FLAG") ) { + if ( Config("dll") ) { + Project('TARGET = $$TARGET.so'); + Project("TMAKE_LFLAGS_SHAPP") || + ($project{"TMAKE_LFLAGS_SHAPP"} = $project{"TMAKE_LFLAGS_SHLIB"}); + Project("TMAKE_LFLAGS_SONAME") && + ($project{"TMAKE_LFLAGS_SONAME"} .= $project{"TARGET"}); + } + $project{"TARGET"} = $project{"DESTDIR"} . $project{"TARGET"}; + } elsif ( Config("staticlib") ) { + $project{"TARGET"} = $project{"DESTDIR"} . "lib" . + $project{"TARGET"} . ".a"; + Project("TMAKE_AR_CMD") || + Project('TMAKE_AR_CMD = $(AR) $(TARGET) $(OBJECTS) $(OBJMOC)'); + } else { + $project{"TARGETA"} = $project{"DESTDIR"} . "lib" . + $project{"TARGET"} . ".a"; + if ( Project("TMAKE_AR_CMD") ) { + $project{"TMAKE_AR_CMD"} =~ s/\(TARGET\)/\(TARGETA\)/g; + } else { + Project('TMAKE_AR_CMD = $(AR) $(TARGETA) $(OBJECTS) $(OBJMOC)'); + } + if ( $project{"TMAKE_HPUX_SHLIB"} ) { + $project{"TARGET_"} = "lib" . $project{"TARGET"} . ".sl"; + $project{"TARGET_x"} = "lib" . $project{"TARGET"} . "." . + $project{"VER_MAJ"}; + $project{"TARGET"} = $project{"TARGET_x"}; + } elsif ( $project{"TMAKE_AIX_SHLIB"} ) { + $project{"TARGET_"} = "lib" . $project{"TARGET"} . ".a"; + $project{"TARGET_x"} = "lib" . $project{"TARGET"} . ".so." . + $project{"VER_MAJ"}; + $project{"TARGET_x.y"} = "lib" . $project{"TARGET"} . ".so." . + $project{"VER_MAJ"} . "." . + $project{"VER_MIN"}; + $project{"TARGET_x.y.z"} = "lib" . $project{"TARGET"} . ".so." . + $project{"VER_MAJ"} . "." . + $project{"VER_MIN"} . "." . + $project{"VER_PAT"}; + $project{"TARGET"} = $project{"TARGET_x.y.z"}; + } else { + $project{"TARGET_"} = "lib" . $project{"TARGET"} . ".so"; + $project{"TARGET_x"} = "lib" . $project{"TARGET"} . ".so." . + $project{"VER_MAJ"}; + $project{"TARGET_x.y"} = "lib" . $project{"TARGET"} . ".so." . + $project{"VER_MAJ"} . "." . + $project{"VER_MIN"}; + $project{"TARGET_x.y.z"} = "lib" . $project{"TARGET"} . ".so." . + $project{"VER_MAJ"} . "." . + $project{"VER_MIN"} . "." . + $project{"VER_PAT"}; + $project{"TARGET"} = $project{"TARGET_x.y.z"}; + } + $project{"TMAKE_LN_SHLIB"} = "-ln -s"; + if ( $project{"DESTDIR"} ) { + $project{"DESTDIR_TARGET"} = $project{"DESTDIR"} . + $project{"TARGET"}; + } + Project("TMAKE_LFLAGS_SONAME") && + ($project{"TMAKE_LFLAGS_SONAME"} .= $project{"TARGET_x"}); + $project{"TMAKE_LINK_SHLIB_CMD"} || + ($project{"TMAKE_LINK_SHLIB_CMD"} = + '$(LINK) $(LFLAGS) -o $(TARGETD) $(OBJECTS) $(OBJMOC) $(LIBS)'); + } + if ( Config("dll") ) { + Project('TMAKE_CFLAGS *= $$TMAKE_CFLAGS_SHLIB' ); + Project('TMAKE_CXXFLAGS *= $$TMAKE_CXXFLAGS_SHLIB' ); + if ( Project("TMAKE_APP_FLAG") ) { + Project('TMAKE_LFLAGS *= $$TMAKE_LFLAGS_SHAPP'); + } else { + Project('TMAKE_LFLAGS *= $$TMAKE_LFLAGS_SHLIB $$TMAKE_LFLAGS_SONAME'); + } + } +#$} +#! +# Makefile for building #$ Expand("TARGET") +# Generated by tmake; +# Project: #$ Expand("PROJECT"); +# Template: #$ Expand("TEMPLATE"); +############################################################################# + +####### Compiler, tools and options + +CC = #$ Expand("TMAKE_CC"); +CXX = #$ Expand("TMAKE_CXX"); +CFLAGS = #$ Expand("TMAKE_CFLAGS"); ExpandGlue("DEFINES","-D"," -D",""); +CXXFLAGS= #$ Expand("TMAKE_CXXFLAGS"); ExpandGlue("DEFINES","-D"," -D",""); +INCPATH = #$ ExpandPath("INCPATH","-I"," -I",""); +#$ Config("staticlib") && DisableOutput(); +LINK = #$ Expand("TMAKE_LINK"); +LFLAGS = #$ Expand("TMAKE_LFLAGS"); +LIBS = $(SUBLIBS) #$ Expand("TMAKE_LIBDIR_FLAGS"); Expand("TMAKE_LIBS"); +#$ Config("staticlib") && EnableOutput(); +#$ Project("TMAKE_LIB_FLAG") || DisableOutput(); +AR = #$ Expand("TMAKE_AR"); +RANLIB = #$ Expand("TMAKE_RANLIB"); +#$ Project("TMAKE_LIB_FLAG") || EnableOutput(); +MOC = #$ Expand("TMAKE_MOC"); +UIC = #$ Expand("TMAKE_UIC"); + +TAR = #$ Expand("TMAKE_TAR"); +GZIP = #$ Expand("TMAKE_GZIP"); + +####### Apply additional overruling user flags, if any +CFLAGS += $(CUSERFLAGS) +CXXFLAGS += $(CUSERFLAGS) + +####### Files + +HEADERS = #$ ExpandList("HEADERS"); +SOURCES = #$ ExpandList("SOURCES"); +OBJECTS = #$ ExpandList("OBJECTS"); +INTERFACES = #$ ExpandList("INTERFACES"); +UICDECLS = #$ ExpandList("UICDECLS"); +UICIMPLS = #$ ExpandList("UICIMPLS"); +SRCMOC = #$ ExpandList("SRCMOC"); +OBJMOC = #$ ExpandList("OBJMOC"); +DIST = #$ ExpandList("DISTFILES"); +TARGET = #$ Expand("TARGET"); +#$ (Project("TMAKE_APP_FLAG") || Config("staticlib")) && DisableOutput(); +TARGETA = #$ Expand("TARGETA"); +#$ Project("TMAKE_HPUX_SHLIB") && DisableOutput(); +TARGETD = #$ Expand("TARGET_x.y.z"); +TARGET0 = #$ Expand("TARGET_"); +TARGET1 = #$ Expand("TARGET_x"); +TARGET2 = #$ Expand("TARGET_x.y"); +#$ Project("TMAKE_HPUX_SHLIB") && EnableOutput(); +#$ !Project("TMAKE_HPUX_SHLIB") && DisableOutput(); +TARGETD = #$ Expand("TARGET_x"); +TARGET0 = #$ Expand("TARGET_"); +#$ !Project("TMAKE_HPUX_SHLIB") && EnableOutput(); +#$ (Project("TMAKE_APP_FLAG") || Config("staticlib")) && EnableOutput(); +INTERFACE_DECL_PATH = #$ Expand("INTERFACE_DECL_PATH"); + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .C .c + +.cpp.o: + #$ Expand("TMAKE_RUN_CXX_IMP"); + +.cxx.o: + #$ Expand("TMAKE_RUN_CXX_IMP"); + +.cc.o: + #$ Expand("TMAKE_RUN_CXX_IMP"); + +.C.o: + #$ Expand("TMAKE_RUN_CXX_IMP"); + +.c.o: + #$ Expand("TMAKE_RUN_CC_IMP"); + +####### Build rules + +#${ + if ( Project("SUBLIBS") ) { + $text = "SUBLIBS="; + for $m ( split / /, Project("SUBLIBS") ) { + $text .= "tmp/lib$m.a "; + } + $text .= "\n"; + } +#$} + +#$ Project("TMAKE_APP_FLAG") || DisableOutput(); +all: #$ ExpandGlue("ALL_DEPS",""," "," "); $text .= '$(TARGET)'; + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) #$ Expand("TARGETDEPS"); + $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS) +#$ Project("TMAKE_APP_FLAG") || EnableOutput(); +#$ (Config("staticlib") || Project("TMAKE_APP_FLAG")) && DisableOutput(); +all: #$ ExpandGlue("ALL_DEPS",""," ",""); Expand("DESTDIR_TARGET"); + +#$ Substitute('$$DESTDIR_TARGET: $(OBJECTS) $(OBJMOC) $(SUBLIBS) $$TARGETDEPS'); + #$ Project("TMAKE_HPUX_SHLIB") && DisableOutput(); + -rm -f $(TARGET) $(TARGET0) $(TARGET1) $(TARGET2) + #$ Expand("TMAKE_LINK_SHLIB_CMD"); + #$ ExpandGlue("TMAKE_LN_SHLIB",""," "," \$(TARGET) \$(TARGET0)"); + #$ ExpandGlue("TMAKE_LN_SHLIB",""," "," \$(TARGET) \$(TARGET1)"); + #$ ExpandGlue("TMAKE_LN_SHLIB",""," "," \$(TARGET) \$(TARGET2)"); + #$ Project("TMAKE_HPUX_SHLIB") && EnableOutput(); + #$ !Project("TMAKE_HPUX_SHLIB") && DisableOutput(); + -rm -f $(TARGET) $(TARGET0) + #$ Expand("TMAKE_LINK_SHLIB_CMD"); + #$ ExpandGlue("TMAKE_LN_SHLIB",""," "," \$(TARGET) \$(TARGET0)"); + #$ !Project("TMAKE_HPUX_SHLIB") && EnableOutput(); + #${ + $d = Project("DESTDIR"); + if ( $d ) { + $d =~ s-([^/])$-$1/-; + if ( Project("TMAKE_HPUX_SHLIB") ) { + $text = "-rm -f $d\$(TARGET)\n\t" . + "-rm -f $d\$(TARGET0)\n\t" . + "-mv \$(TARGET) \$(TARGET0) $d"; + } else { + $text = "-rm -f $d\$(TARGET)\n\t" . + "-rm -f $d\$(TARGET0)\n\t" . + "-rm -f $d\$(TARGET1)\n\t" . + "-rm -f $d\$(TARGET2)\n\t" . + "-mv \$(TARGET) \$(TARGET0) \$(TARGET1) \$(TARGET2) $d"; + } + } + #$} + +staticlib: $(TARGETA) + +$(TARGETA): $(UICDECLS) $(OBJECTS) $(OBJMOC) #$ Expand("TARGETDEPS"); + -rm -f $(TARGETA) + #$ Expand("TMAKE_AR_CMD"); + #$ ExpandGlue("TMAKE_RANLIB",""," "," \$(TARGETA)"); +#$ (Config("staticlib") || Project("TMAKE_APP_FLAG")) && EnableOutput(); +#$ Config("staticlib") || DisableOutput(); +all: #$ ExpandGlue("ALL_DEPS",""," "," "); $text .= '$(TARGET)'; + +staticlib: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) #$ Expand("TARGETDEPS"); + -rm -f $(TARGET) + #$ Expand("TMAKE_AR_CMD"); + #$ ExpandGlue("TMAKE_RANLIB",""," "," \$(TARGET)"); +#$ Config("staticlib") || EnableOutput(); + +moc: $(SRCMOC) + +clean: + -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) +#$ (Config("staticlib") || Project("TMAKE_APP_FLAG")) && DisableOutput(); + -rm -f $(TARGET0) $(TARGET1) $(TARGET2) $(TARGETA) +#$ (Config("staticlib") || Project("TMAKE_APP_FLAG")) && EnableOutput(); + #$ ExpandGlue("TMAKE_CLEAN","-rm -f "," ",""); + -rm -f *~ core + #$ ExpandGlue("CLEAN_FILES","-rm -f "," ",""); + +####### Sub-libraries + +#${ + if ( Project("SUBLIBS") ) { + for $m ( split / /, Project("SUBLIBS") ) { + $text .= "tmp/lib$m.a:\n\t"; + $text .= $project{"MAKELIB$m"}."\n"; + } + } +#$} + +###### Combined headers + +#${ + if ( Config("embedded") && Project("PRECOMPH") ) { + $t = "allmoc.cpp: ".Project("PRECOMPH")." ".$original_HEADERS; + ExpandList("HEADERS_ORIG"); + $t.= $text; + $t.= "\n\techo '#include \"".Project("PRECOMPH")."\"' >allmoc.cpp"; + $t.= "\n\t\$(CXX) -E -DQT_MOC_CPP \$(CXXFLAGS) \$(INCPATH) >allmoc.h allmoc.cpp"; + $t.= "\n\t\$(MOC) -o allmoc.cpp allmoc.h"; + $t.= "\n\tperl -pi -e 's{\"allmoc.h\"}{\"".Project("PRECOMPH")."\"}' allmoc.cpp"; + $t.= "\n\trm allmoc.h"; + $t.= "\n"; + $text = $t; + } +#$} + +####### Compile + +#$ BuildObj(Project("OBJECTS"),Project("SOURCES")); +#$ BuildUicSrc(Project("INTERFACES")); +#$ BuildObj(Project("UICOBJECTS"), Project("UICIMPLS")); +#$ BuildMocObj(Project("OBJMOC"),Project("SRCMOC")); +#$ BuildMocSrc(Project("HEADERS")); +#$ BuildMocSrc(Project("SOURCES")); +#$ BuildMocSrc( Project("UICDECLS")); diff --git a/make/gen_make/template/freebsd-g++/lib.t b/make/gen_make/template/freebsd-g++/lib.t new file mode 100644 index 000000000..2523b2f85 --- /dev/null +++ b/make/gen_make/template/freebsd-g++/lib.t @@ -0,0 +1,2 @@ +#! Use the common Unix template +#$ IncludeTemplate("../unix/lib.t"); diff --git a/make/gen_make/template/freebsd-g++/subdirs.t b/make/gen_make/template/freebsd-g++/subdirs.t new file mode 100644 index 000000000..5e888af05 --- /dev/null +++ b/make/gen_make/template/freebsd-g++/subdirs.t @@ -0,0 +1,2 @@ +#! Use the common Unix template +#$ IncludeTemplate("../unix/subdirs.t"); diff --git a/make/gen_make/template/freebsd-g++/tmake.conf b/make/gen_make/template/freebsd-g++/tmake.conf new file mode 100644 index 000000000..c9ff0f953 --- /dev/null +++ b/make/gen_make/template/freebsd-g++/tmake.conf @@ -0,0 +1,65 @@ +# +# $Id$ +# +# tmake configuration for linux-g++ +# + +MAKEFILE_GENERATOR = UNIX +TEMPLATE = app +CONFIG = qt warn_on release + +TMAKE_CC = gcc +TMAKE_CFLAGS = -pipe +TMAKE_CFLAGS_WARN_ON = -Wall -W +TMAKE_CFLAGS_WARN_OFF = +TMAKE_CFLAGS_RELEASE = -O2 -fno-strict-aliasing +TMAKE_CFLAGS_DEBUG = -g +TMAKE_CFLAGS_SHLIB = -fPIC +TMAKE_CFLAGS_YACC = -Wno-unused -Wno-parentheses +TMAKE_CFLAGS_THREAD = -D_REENTRANT + +TMAKE_CXX = g++ +TMAKE_CXXFLAGS = $$TMAKE_CFLAGS +TMAKE_CXXFLAGS_WARN_ON = $$TMAKE_CFLAGS_WARN_ON +TMAKE_CXXFLAGS_WARN_OFF = $$TMAKE_CFLAGS_WARN_OFF +TMAKE_CXXFLAGS_RELEASE = $$TMAKE_CFLAGS_RELEASE +TMAKE_CXXFLAGS_DEBUG = $$TMAKE_CFLAGS_DEBUG +TMAKE_CXXFLAGS_SHLIB = $$TMAKE_CFLAGS_SHLIB +TMAKE_CXXFLAGS_YACC = $$TMAKE_CFLAGS_YACC +TMAKE_CXXFLAGS_THREAD = $$TMAKE_CFLAGS_THREAD + +TMAKE_INCDIR = +TMAKE_LIBDIR = +TMAKE_INCDIR_X11 = /usr/X11R6/include +TMAKE_LIBDIR_X11 = /usr/X11R6/lib +TMAKE_INCDIR_QT = $(QTDIR)/include +TMAKE_LIBDIR_QT = $(QTDIR)/lib +TMAKE_INCDIR_OPENGL = /usr/X11R6/include +TMAKE_LIBDIR_OPENGL = /usr/X11R6/lib + +TMAKE_LINK = g++ +TMAKE_LINK_SHLIB = g++ +TMAKE_LFLAGS = -L/usr/local/lib +TMAKE_LFLAGS_RELEASE = +TMAKE_LFLAGS_DEBUG = +TMAKE_LFLAGS_SHLIB = -shared +TMAKE_LFLAGS_SONAME = -Wl,-soname, +TMAKE_LFLAGS_THREAD = +TMAKE_RPATH = -Wl,-rpath, + +TMAKE_LIBS = +TMAKE_LIBS_X11 = -lXext -lX11 -lm +TMAKE_LIBS_X11SM = -lICE -lSM +TMAKE_LIBS_QT = -lqt +TMAKE_LIBS_QT_THREAD = -lqt-mt +TMAKE_LIBS_OPENGL = -lGLU -lGL -lXmu +TMAKE_LIBS_THREAD = -pthread + +TMAKE_MOC = $(QTDIR)/bin/moc +TMAKE_UIC = $(QTDIR)/bin/uic + +TMAKE_AR = ar cqs +TMAKE_RANLIB = + +TMAKE_TAR = tar -cf +TMAKE_GZIP = gzip -9f diff --git a/make/gen_make/template/linux-g++/app.t b/make/gen_make/template/linux-g++/app.t new file mode 100644 index 000000000..867725eaa --- /dev/null +++ b/make/gen_make/template/linux-g++/app.t @@ -0,0 +1,2 @@ +#! Use the common Unix template +#$ IncludeTemplate("../unix/app.t"); diff --git a/make/gen_make/template/linux-g++/lib.t b/make/gen_make/template/linux-g++/lib.t new file mode 100644 index 000000000..2523b2f85 --- /dev/null +++ b/make/gen_make/template/linux-g++/lib.t @@ -0,0 +1,2 @@ +#! Use the common Unix template +#$ IncludeTemplate("../unix/lib.t"); diff --git a/make/gen_make/template/linux-g++/subdirs.t b/make/gen_make/template/linux-g++/subdirs.t new file mode 100644 index 000000000..5e888af05 --- /dev/null +++ b/make/gen_make/template/linux-g++/subdirs.t @@ -0,0 +1,2 @@ +#! Use the common Unix template +#$ IncludeTemplate("../unix/subdirs.t"); diff --git a/make/gen_make/template/linux-g++/tmake.conf b/make/gen_make/template/linux-g++/tmake.conf new file mode 100644 index 000000000..14b94b24c --- /dev/null +++ b/make/gen_make/template/linux-g++/tmake.conf @@ -0,0 +1,65 @@ +# +# $Id$ +# +# tmake configuration for linux-g++ +# + +MAKEFILE_GENERATOR = UNIX +TEMPLATE = app +CONFIG = qt warn_on release + +TMAKE_CC = gcc +TMAKE_CFLAGS = -pipe -fPIC +TMAKE_CFLAGS_WARN_ON = -Wall -W +TMAKE_CFLAGS_WARN_OFF = +TMAKE_CFLAGS_RELEASE = -O2 -fno-strict-aliasing +TMAKE_CFLAGS_DEBUG = -g +TMAKE_CFLAGS_SHLIB = -fPIC +TMAKE_CFLAGS_YACC = -Wno-unused -Wno-parentheses +TMAKE_CFLAGS_THREAD = -D_REENTRANT + +TMAKE_CXX = g++ +TMAKE_CXXFLAGS = $$TMAKE_CFLAGS +TMAKE_CXXFLAGS_WARN_ON = $$TMAKE_CFLAGS_WARN_ON +TMAKE_CXXFLAGS_WARN_OFF = $$TMAKE_CFLAGS_WARN_OFF +TMAKE_CXXFLAGS_RELEASE = $$TMAKE_CFLAGS_RELEASE +TMAKE_CXXFLAGS_DEBUG = $$TMAKE_CFLAGS_DEBUG +TMAKE_CXXFLAGS_SHLIB = $$TMAKE_CFLAGS_SHLIB +TMAKE_CXXFLAGS_YACC = $$TMAKE_CFLAGS_YACC +TMAKE_CXXFLAGS_THREAD = $$TMAKE_CFLAGS_THREAD + +TMAKE_INCDIR = +TMAKE_LIBDIR = +TMAKE_INCDIR_X11 = /usr/X11R6/include +TMAKE_LIBDIR_X11 = /usr/X11R6/lib +TMAKE_INCDIR_QT = $(QTDIR)/include +TMAKE_LIBDIR_QT = $(QTDIR)/lib +TMAKE_INCDIR_OPENGL = /usr/X11R6/include +TMAKE_LIBDIR_OPENGL = /usr/X11R6/lib + +TMAKE_LINK = g++ +TMAKE_LINK_SHLIB = g++ +TMAKE_LFLAGS = +TMAKE_LFLAGS_RELEASE = +TMAKE_LFLAGS_DEBUG = +TMAKE_LFLAGS_SHLIB = -shared +TMAKE_LFLAGS_SONAME = -Wl,-soname, +TMAKE_LFLAGS_THREAD = +TMAKE_RPATH = -Wl,-rpath, + +TMAKE_LIBS = +TMAKE_LIBS_X11 = -lXext -lX11 -lm +TMAKE_LIBS_X11SM = -lICE -lSM +TMAKE_LIBS_QT = -lqt +TMAKE_LIBS_QT_THREAD = -lqt-mt +TMAKE_LIBS_OPENGL = -lGLU -lGL -lXmu +TMAKE_LIBS_THREAD = -lpthread + +TMAKE_MOC = $(QTDIR)/bin/moc +TMAKE_UIC = $(QTDIR)/bin/uic + +TMAKE_AR = ar cqs +TMAKE_RANLIB = + +TMAKE_TAR = tar -cf +TMAKE_GZIP = gzip -9f diff --git a/make/gen_make/template/unix/app.t b/make/gen_make/template/unix/app.t new file mode 100644 index 000000000..f59c9f904 --- /dev/null +++ b/make/gen_make/template/unix/app.t @@ -0,0 +1,6 @@ +############################################################################# +#! +#! This is a tmake template for building Unix applications. +#! +#$ Project('TMAKE_APP_FLAG = 1'); +#$ IncludeTemplate("generic.t"); diff --git a/make/gen_make/template/unix/generic.t b/make/gen_make/template/unix/generic.t new file mode 100644 index 000000000..d44aae736 --- /dev/null +++ b/make/gen_make/template/unix/generic.t @@ -0,0 +1,401 @@ +#! +#! This is a tmake template for building UNIX applications or libraries. +#! +#${ + Project('TMAKE_LIBS += $$LIBS'); + if ( !Project("INTERFACE_DECL_PATH") ) { + Project('INTERFACE_DECL_PATH = .' ); + } + if ( Project("TMAKE_LIB_FLAG") && !Config("staticlib") ) { + Project('CONFIG *= dll'); + } elsif ( Project("TMAKE_APP_FLAG") || Config("dll") ) { + Project('CONFIG -= staticlib'); + } + if ( Config("warn_off") ) { + Project('TMAKE_CFLAGS += $$TMAKE_CFLAGS_WARN_OFF'); + Project('TMAKE_CXXFLAGS += $$TMAKE_CXXFLAGS_WARN_OFF'); + } elsif ( Config("warn_on") ) { + Project('TMAKE_CFLAGS += $$TMAKE_CFLAGS_WARN_ON'); + Project('TMAKE_CXXFLAGS += $$TMAKE_CXXFLAGS_WARN_ON'); + } + if ( Config("debug") ) { + Project('TMAKE_CFLAGS += $$TMAKE_CFLAGS_DEBUG'); + Project('TMAKE_CXXFLAGS += $$TMAKE_CXXFLAGS_DEBUG'); + Project('TMAKE_LFLAGS += $$TMAKE_LFLAGS_DEBUG'); + } elsif ( Config("release") ) { + Project('TMAKE_CFLAGS += $$TMAKE_CFLAGS_RELEASE'); + Project('TMAKE_CXXFLAGS += $$TMAKE_CXXFLAGS_RELEASE'); + Project('TMAKE_LFLAGS += $$TMAKE_LFLAGS_RELEASE'); + } + if ( Project("TMAKE_INCDIR") ) { + AddIncludePath(Project("TMAKE_INCDIR")); + } + if ( Project("TMAKE_LIBDIR") ) { + Project('TMAKE_LIBDIR_FLAGS *= -L$$TMAKE_LIBDIR'); + } + if ( Config("qt") || Config("opengl") ) { + Project('CONFIG *= x11lib'); + if ( Config("opengl") ) { + Project('CONFIG *= x11inc'); + } + } + if ( Config("x11") ) { + Project('CONFIG *= x11lib'); + Project('CONFIG *= x11inc'); + } + if ( Config("thread") ) { + Project('DEFINES += QT_THREAD_SUPPORT'); + Project("TMAKE_CFLAGS_THREAD") && + Project('TMAKE_CFLAGS += $$TMAKE_CFLAGS_THREAD'); + Project("TMAKE_CXXFLAGS_THREAD") && + Project('TMAKE_CXXFLAGS += $$TMAKE_CXXFLAGS_THREAD'); + AddIncludePath(Project("TMAKE_INCDIR_THREAD")); + Project('TMAKE_LIBS *= $$TMAKE_LIBS_THREAD'); + Project("TMAKE_LFLAGS_THREAD") && + Project('TMAKE_LFLAGS += $$TMAKE_LFLAGS_THREAD'); + } + if ( Config("qt") ) { + Project('CONFIG *= moc'); + AddIncludePath(Project("TMAKE_INCDIR_QT")); + if ( !Config("debug") ) { + Project('DEFINES += NO_DEBUG'); + } + if ( !(((Project("TARGET") eq "qt") || (Project("TARGET") eq "qt-mt") || + (Project("TARGET") eq "qte") || (Project("TARGET") eq "qte-mt")) && + Project("TMAKE_LIB_FLAG")) ) { + Project("TMAKE_LIBDIR_QT") && + Project('TMAKE_LIBDIR_FLAGS *= -L$$TMAKE_LIBDIR_QT'); + if (Config("thread") && Project("TMAKE_LIBS_QT_THREAD")) { + Project('TMAKE_LIBS *= $$TMAKE_LIBS_QT_THREAD'); + } else { + Project('TMAKE_LIBS *= $$TMAKE_LIBS_QT'); + } + } + } + if ( Config("opengl") ) { + AddIncludePath(Project("TMAKE_INCDIR_OPENGL")); + Project("TMAKE_LIBDIR_OPENGL") && + Project('TMAKE_LIBDIR_FLAGS *= -L$$TMAKE_LIBDIR_OPENGL'); + Project('TMAKE_LIBS *= $$TMAKE_LIBS_OPENGL'); + } + if ( Config("x11inc") ) { + AddIncludePath(Project("TMAKE_INCDIR_X11")); + } + if ( Config("x11lib") ) { + Project("TMAKE_LIBDIR_X11") && + Project('TMAKE_LIBDIR_FLAGS *= -L$$TMAKE_LIBDIR_X11'); + Project('TMAKE_LIBS *= $$TMAKE_LIBS_X11'); + } + if ( Config("moc") ) { + $moc_aware = 1; + } + if ( !Project("TMAKE_RUN_CC") ) { + Project('TMAKE_RUN_CC = $(CC) -c $(CFLAGS) $(INCPATH) -o $obj $src'); + } + if ( !Project("TMAKE_RUN_CC_IMP") ) { + Project('TMAKE_RUN_CC_IMP = $(CC) -c $(CFLAGS) $(INCPATH) -o $@ $<'); + } + if ( !Project("TMAKE_RUN_CXX") ) { + Project('TMAKE_RUN_CXX = $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $obj $src'); + } + if ( !Project("TMAKE_RUN_CXX_IMP") ) { + Project('TMAKE_RUN_CXX_IMP = $(CXX) -c $(CXXFLAGS) $(INCPATH) -o $@ $<'); + } + Project('TMAKE_FILETAGS = HEADERS SOURCES TARGET DESTDIR $$FILETAGS'); + if ( Config("embedded") && Project("PRECOMPH") ) { + Project('SOURCES += allmoc.cpp'); + $project{'HEADERS_ORIG'} = Project('HEADERS'); + $project{'HEADERS'} = ""; + } + StdInit(); + $project{"VERSION"} || ($project{"VERSION"} = "1.0.0"); + ($project{"VER_MAJ"},$project{"VER_MIN"},$project{"VER_PAT"}) + = $project{"VERSION"} =~ /(\d+)\.(\d+)\.(\d+)/; + if ( !defined($project{"VER_PAT"}) ) { + ($project{"VER_MAJ"},$project{"VER_MIN"}) + = $project{"VERSION"} =~ /(\d+)\.(\d+)/; + $project{"VER_PAT"} = "0"; + } + if ( !defined($project{"VER_MIN"}) ) { + ($project{"VER_MAJ"}) + = $project{"VERSION"} =~ /(\d+)/; + $project{"VER_MIN"} = "0"; + $project{"VER_PAT"} = "0"; + } + Project('DESTDIR_TARGET = $(TARGET)'); + if ( Project("TMAKE_APP_FLAG") ) { + if ( Config("dll") ) { + Project('TARGET = $$TARGET.so'); + Project("TMAKE_LFLAGS_SHAPP") || + ($project{"TMAKE_LFLAGS_SHAPP"} = $project{"TMAKE_LFLAGS_SHLIB"}); + Project("TMAKE_LFLAGS_SONAME") && + ($project{"TMAKE_LFLAGS_SONAME"} .= $project{"TARGET"}); + } + $project{"TARGET"} = $project{"DESTDIR"} . $project{"TARGET"}; + } elsif ( Config("staticlib") ) { + $project{"TARGET"} = $project{"DESTDIR"} . "lib" . + $project{"TARGET"} . ".a"; + Project("TMAKE_AR_CMD") || + Project('TMAKE_AR_CMD = $(AR) $(TARGET) $(OBJECTS) $(OBJMOC)'); + } else { + $project{"TARGETA"} = $project{"DESTDIR"} . "lib" . + $project{"TARGET"} . ".a"; + if ( Project("TMAKE_AR_CMD") ) { + $project{"TMAKE_AR_CMD"} =~ s/\(TARGET\)/\(TARGETA\)/g; + } else { + Project('TMAKE_AR_CMD = $(AR) $(TARGETA) $(OBJECTS) $(OBJMOC)'); + } + if ( $project{"TMAKE_HPUX_SHLIB"} ) { + $project{"TARGET_"} = "lib" . $project{"TARGET"} . ".sl"; + $project{"TARGET_x"} = "lib" . $project{"TARGET"} . "." . + $project{"VER_MAJ"}; + $project{"TARGET"} = $project{"TARGET_x"}; + } elsif ( $project{"TMAKE_AIX_SHLIB"} ) { + $project{"TARGET_"} = "lib" . $project{"TARGET"} . ".a"; + $project{"TARGET_x"} = "lib" . $project{"TARGET"} . ".so." . + $project{"VER_MAJ"}; + $project{"TARGET_x.y"} = "lib" . $project{"TARGET"} . ".so." . + $project{"VER_MAJ"} . "." . + $project{"VER_MIN"}; + $project{"TARGET_x.y.z"} = "lib" . $project{"TARGET"} . ".so." . + $project{"VER_MAJ"} . "." . + $project{"VER_MIN"} . "." . + $project{"VER_PAT"}; + $project{"TARGET"} = $project{"TARGET_x.y.z"}; + } else { + $project{"TARGET_"} = "lib" . $project{"TARGET"} . ".so"; + $project{"TARGET_x"} = "lib" . $project{"TARGET"} . ".so." . + $project{"VER_MAJ"}; + $project{"TARGET_x.y"} = "lib" . $project{"TARGET"} . ".so." . + $project{"VER_MAJ"} . "." . + $project{"VER_MIN"}; + $project{"TARGET_x.y.z"} = "lib" . $project{"TARGET"} . ".so." . + $project{"VER_MAJ"} . "." . + $project{"VER_MIN"} . "." . + $project{"VER_PAT"}; + $project{"TARGET"} = $project{"TARGET_x.y.z"}; + } + $project{"TMAKE_LN_SHLIB"} = "-ln -s"; + if ( $project{"DESTDIR"} ) { + $project{"DESTDIR_TARGET"} = $project{"DESTDIR"} . + $project{"TARGET"}; + } + Project("TMAKE_LFLAGS_SONAME") && + ($project{"TMAKE_LFLAGS_SONAME"} .= $project{"TARGET_x"}); + $project{"TMAKE_LINK_SHLIB_CMD"} || + ($project{"TMAKE_LINK_SHLIB_CMD"} = + '$(LINK) $(LFLAGS) -o $(TARGETD) $(OBJECTS) $(OBJMOC) $(LIBS)'); + } + if ( Config("dll") ) { + Project('TMAKE_CFLAGS *= $$TMAKE_CFLAGS_SHLIB' ); + Project('TMAKE_CXXFLAGS *= $$TMAKE_CXXFLAGS_SHLIB' ); + if ( Project("TMAKE_APP_FLAG") ) { + Project('TMAKE_LFLAGS *= $$TMAKE_LFLAGS_SHAPP'); + } else { + Project('TMAKE_LFLAGS *= $$TMAKE_LFLAGS_SHLIB $$TMAKE_LFLAGS_SONAME'); + } + } +#$} +#! +# Makefile for building #$ Expand("TARGET") +# Generated by tmake; +# Project: #$ Expand("PROJECT"); +# Template: #$ Expand("TEMPLATE"); +############################################################################# + +####### Compiler, tools and options + +CC = #$ Expand("TMAKE_CC"); +CXX = #$ Expand("TMAKE_CXX"); +CFLAGS = #$ Expand("TMAKE_CFLAGS"); ExpandGlue("DEFINES","-D"," -D",""); +CXXFLAGS= #$ Expand("TMAKE_CXXFLAGS"); ExpandGlue("DEFINES","-D"," -D",""); +INCPATH = #$ ExpandPath("INCPATH","-I"," -I",""); +#$ Config("staticlib") && DisableOutput(); +LINK = #$ Expand("TMAKE_LINK"); +LFLAGS = #$ Expand("TMAKE_LFLAGS"); +LIBS = $(SUBLIBS) #$ Expand("TMAKE_LIBDIR_FLAGS"); Expand("TMAKE_LIBS"); +#$ Config("staticlib") && EnableOutput(); +#$ Project("TMAKE_LIB_FLAG") || DisableOutput(); +AR = #$ Expand("TMAKE_AR"); +RANLIB = #$ Expand("TMAKE_RANLIB"); +#$ Project("TMAKE_LIB_FLAG") || EnableOutput(); +MOC = #$ Expand("TMAKE_MOC"); +UIC = #$ Expand("TMAKE_UIC"); + +TAR = #$ Expand("TMAKE_TAR"); +GZIP = #$ Expand("TMAKE_GZIP"); + +####### Support for 64-bit systems +ifeq ($(shell uname -m), x86_64) + CFLAGS += -march=x86-64 -m64 -D__64BIT__ + CXXFLAGS += -march=x86-64 -m64 -D__64BIT__ +endif + +####### Apply additional overruling user flags, if any +CFLAGS += $(CUSERFLAGS) +CXXFLAGS += $(CUSERFLAGS) + +####### Files + +HEADERS = #$ ExpandList("HEADERS"); +SOURCES = #$ ExpandList("SOURCES"); +OBJECTS = #$ ExpandList("OBJECTS"); +INTERFACES = #$ ExpandList("INTERFACES"); +UICDECLS = #$ ExpandList("UICDECLS"); +UICIMPLS = #$ ExpandList("UICIMPLS"); +SRCMOC = #$ ExpandList("SRCMOC"); +OBJMOC = #$ ExpandList("OBJMOC"); +DIST = #$ ExpandList("DISTFILES"); +TARGET = #$ Expand("TARGET"); +#$ (Project("TMAKE_APP_FLAG") || Config("staticlib")) && DisableOutput(); +TARGETA = #$ Expand("TARGETA"); +#$ Project("TMAKE_HPUX_SHLIB") && DisableOutput(); +TARGETD = #$ Expand("TARGET_x.y.z"); +TARGET0 = #$ Expand("TARGET_"); +TARGET1 = #$ Expand("TARGET_x"); +TARGET2 = #$ Expand("TARGET_x.y"); +#$ Project("TMAKE_HPUX_SHLIB") && EnableOutput(); +#$ !Project("TMAKE_HPUX_SHLIB") && DisableOutput(); +TARGETD = #$ Expand("TARGET_x"); +TARGET0 = #$ Expand("TARGET_"); +#$ !Project("TMAKE_HPUX_SHLIB") && EnableOutput(); +#$ (Project("TMAKE_APP_FLAG") || Config("staticlib")) && EnableOutput(); +INTERFACE_DECL_PATH = #$ Expand("INTERFACE_DECL_PATH"); + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .C .c + +.cpp.o: + #$ Expand("TMAKE_RUN_CXX_IMP"); + +.cxx.o: + #$ Expand("TMAKE_RUN_CXX_IMP"); + +.cc.o: + #$ Expand("TMAKE_RUN_CXX_IMP"); + +.C.o: + #$ Expand("TMAKE_RUN_CXX_IMP"); + +.c.o: + #$ Expand("TMAKE_RUN_CC_IMP"); + +####### Build rules + +#${ + if ( Project("SUBLIBS") ) { + $text = "SUBLIBS="; + for $m ( split / /, Project("SUBLIBS") ) { + $text .= "tmp/lib$m.a "; + } + $text .= "\n"; + } +#$} + +#$ Project("TMAKE_APP_FLAG") || DisableOutput(); +all: #$ ExpandGlue("ALL_DEPS",""," "," "); $text .= '$(TARGET)'; + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) #$ Expand("TARGETDEPS"); + $(LINK) $(LFLAGS) -o $(TARGET) $(OBJECTS) $(OBJMOC) $(LIBS) +#$ Project("TMAKE_APP_FLAG") || EnableOutput(); +#$ (Config("staticlib") || Project("TMAKE_APP_FLAG")) && DisableOutput(); +all: #$ ExpandGlue("ALL_DEPS",""," ",""); Expand("DESTDIR_TARGET"); + +#$ Substitute('$$DESTDIR_TARGET: $(OBJECTS) $(OBJMOC) $(SUBLIBS) $$TARGETDEPS'); + #$ Project("TMAKE_HPUX_SHLIB") && DisableOutput(); + -rm -f $(TARGET) $(TARGET0) $(TARGET1) $(TARGET2) + #$ Expand("TMAKE_LINK_SHLIB_CMD"); + #$ ExpandGlue("TMAKE_LN_SHLIB",""," "," \$(TARGET) \$(TARGET0)"); + #$ ExpandGlue("TMAKE_LN_SHLIB",""," "," \$(TARGET) \$(TARGET1)"); + #$ ExpandGlue("TMAKE_LN_SHLIB",""," "," \$(TARGET) \$(TARGET2)"); + #$ Project("TMAKE_HPUX_SHLIB") && EnableOutput(); + #$ !Project("TMAKE_HPUX_SHLIB") && DisableOutput(); + -rm -f $(TARGET) $(TARGET0) + #$ Expand("TMAKE_LINK_SHLIB_CMD"); + #$ ExpandGlue("TMAKE_LN_SHLIB",""," "," \$(TARGET) \$(TARGET0)"); + #$ !Project("TMAKE_HPUX_SHLIB") && EnableOutput(); + #${ + $d = Project("DESTDIR"); + if ( $d ) { + $d =~ s-([^/])$-$1/-; + if ( Project("TMAKE_HPUX_SHLIB") ) { + $text = "-rm -f $d\$(TARGET)\n\t" . + "-rm -f $d\$(TARGET0)\n\t" . + "-mv \$(TARGET) \$(TARGET0) $d"; + } else { + $text = "-rm -f $d\$(TARGET)\n\t" . + "-rm -f $d\$(TARGET0)\n\t" . + "-rm -f $d\$(TARGET1)\n\t" . + "-rm -f $d\$(TARGET2)\n\t" . + "-mv \$(TARGET) \$(TARGET0) \$(TARGET1) \$(TARGET2) $d"; + } + } + #$} + +staticlib: $(TARGETA) + +$(TARGETA): $(UICDECLS) $(OBJECTS) $(OBJMOC) #$ Expand("TARGETDEPS"); + -rm -f $(TARGETA) + #$ Expand("TMAKE_AR_CMD"); + #$ ExpandGlue("TMAKE_RANLIB",""," "," \$(TARGETA)"); +#$ (Config("staticlib") || Project("TMAKE_APP_FLAG")) && EnableOutput(); +#$ Config("staticlib") || DisableOutput(); +all: #$ ExpandGlue("ALL_DEPS",""," "," "); $text .= '$(TARGET)'; + +staticlib: $(TARGET) + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) #$ Expand("TARGETDEPS"); + -rm -f $(TARGET) + #$ Expand("TMAKE_AR_CMD"); + #$ ExpandGlue("TMAKE_RANLIB",""," "," \$(TARGET)"); +#$ Config("staticlib") || EnableOutput(); + +moc: $(SRCMOC) + +clean: + -rm -f $(OBJECTS) $(OBJMOC) $(SRCMOC) $(UICIMPLS) $(UICDECLS) $(TARGET) +#$ (Config("staticlib") || Project("TMAKE_APP_FLAG")) && DisableOutput(); + -rm -f $(TARGET0) $(TARGET1) $(TARGET2) $(TARGETA) +#$ (Config("staticlib") || Project("TMAKE_APP_FLAG")) && EnableOutput(); + #$ ExpandGlue("TMAKE_CLEAN","-rm -f "," ",""); + -rm -f *~ core + #$ ExpandGlue("CLEAN_FILES","-rm -f "," ",""); + +####### Sub-libraries + +#${ + if ( Project("SUBLIBS") ) { + for $m ( split / /, Project("SUBLIBS") ) { + $text .= "tmp/lib$m.a:\n\t"; + $text .= $project{"MAKELIB$m"}."\n"; + } + } +#$} + +###### Combined headers + +#${ + if ( Config("embedded") && Project("PRECOMPH") ) { + $t = "allmoc.cpp: ".Project("PRECOMPH")." ".$original_HEADERS; + ExpandList("HEADERS_ORIG"); + $t.= $text; + $t.= "\n\techo '#include \"".Project("PRECOMPH")."\"' >allmoc.cpp"; + $t.= "\n\t\$(CXX) -E -DQT_MOC_CPP \$(CXXFLAGS) \$(INCPATH) >allmoc.h allmoc.cpp"; + $t.= "\n\t\$(MOC) -o allmoc.cpp allmoc.h"; + $t.= "\n\tperl -pi -e 's{\"allmoc.h\"}{\"".Project("PRECOMPH")."\"}' allmoc.cpp"; + $t.= "\n\trm allmoc.h"; + $t.= "\n"; + $text = $t; + } +#$} + +####### Compile + +#$ BuildObj(Project("OBJECTS"),Project("SOURCES")); +#$ BuildUicSrc(Project("INTERFACES")); +#$ BuildObj(Project("UICOBJECTS"), Project("UICIMPLS")); +#$ BuildMocObj(Project("OBJMOC"),Project("SRCMOC")); +#$ BuildMocSrc(Project("HEADERS")); +#$ BuildMocSrc(Project("SOURCES")); +#$ BuildMocSrc( Project("UICDECLS")); diff --git a/make/gen_make/template/unix/lib.t b/make/gen_make/template/unix/lib.t new file mode 100644 index 000000000..dd24c63c1 --- /dev/null +++ b/make/gen_make/template/unix/lib.t @@ -0,0 +1,6 @@ +############################################################################# +#! +#! This is a tmake template for building Unix libraries. +#! +#$ Project('TMAKE_LIB_FLAG = 1'); +#$ IncludeTemplate("generic.t"); diff --git a/make/gen_make/template/unix/subdirs.t b/make/gen_make/template/unix/subdirs.t new file mode 100644 index 000000000..4f947a04d --- /dev/null +++ b/make/gen_make/template/unix/subdirs.t @@ -0,0 +1,40 @@ +############################################################################# +#! +#! This is a tmake template for creating a makefile that invokes make in +#! sub directories - for Unix. +#! +#${ + StdInit(); + Project('MAKEFILE') || Project('MAKEFILE = Makefile'); + Project('TMAKE') || Project('TMAKE = tmake'); +#$} +#! +# Makefile for building targets in sub directories. +# Generated by tmake; +# Project: #$ Expand("PROJECT"); +# Template: #$ Expand("TEMPLATE"); +############################################################################# + +MAKEFILE= #$ Expand("MAKEFILE"); +TMAKE = #$ Expand("TMAKE"); + +SUBDIRS = #$ ExpandList("SUBDIRS"); + +all: $(SUBDIRS) + +$(SUBDIRS): FORCE + cd $@; $(MAKE) + +#$ TmakeSelf(); + +tmake_all: +#${ + $text = "\t" . 'for i in $(SUBDIRS); do ( if [ -d $$i ]; then cd $$i ; $(MAKE) -f $(MAKEFILE) tmake_all || true; fi; ) ; done'; +#$} + +#### $text = "\t" . 'for i in $(SUBDIRS); do ( if [ -d $$i ]; then cd $$i ; pro=`basename $$i`.pro ; $(TMAKE) $$pro -o $(MAKEFILE); grep "TEMPLATE.*subdirs" $$pro 2>/dev/null >/dev/null && $(MAKE) -f $(MAKEFILE) tmake_all || true; fi; ) ; done'; + +clean release debug: + for i in $(SUBDIRS); do ( if [ -d $$i ]; then cd $$i ; $(MAKE) $@; fi; ) ; done + +FORCE: diff --git a/make/gen_make/template/win32-borland/app.t b/make/gen_make/template/win32-borland/app.t new file mode 100644 index 000000000..fc4dc2c79 --- /dev/null +++ b/make/gen_make/template/win32-borland/app.t @@ -0,0 +1,6 @@ +############################################################################# +#! +#! This is a tmake template for building Win32 applications. +#! +#$ Project('TMAKE_APP_FLAG = 1'); +#$ IncludeTemplate("generic.t"); diff --git a/make/gen_make/template/win32-borland/generic.t b/make/gen_make/template/win32-borland/generic.t new file mode 100644 index 000000000..788f3bbf6 --- /dev/null +++ b/make/gen_make/template/win32-borland/generic.t @@ -0,0 +1,270 @@ +#! +#! This is a tmake template for building Win32 applications or libraries. +#! +#${ + Project('CONFIG += qt') if Config("qt_dll"); + if ( !Project("INTERFACE_DECL_PATH") ) { + Project('INTERFACE_DECL_PATH = .' ); + } + if ( Config("qt") ) { + if ( !(Project("DEFINES") =~ /QT_NODLL/) && + ((Project("DEFINES") =~ /QT_(?:MAKE)?DLL/) || Config("qt_dll") || + ($ENV{"QT_DLL"} && !$ENV{"QT_NODLL"})) ) { + Project('TMAKE_QT_DLL = 1'); + if ( (Project("TARGET") eq "qt") && Project("TMAKE_LIB_FLAG") ) { + Project('CONFIG += dll'); + } + } + } + if ( Config("dll") || Project("TMAKE_APP_FLAG") ) { + Project('CONFIG -= staticlib'); + Project('TMAKE_APP_OR_DLL = 1'); + } else { + Project('CONFIG += staticlib'); + } + if ( Config("warn_off") ) { + Project('TMAKE_CFLAGS += $$TMAKE_CFLAGS_WARN_OFF'); + Project('TMAKE_CXXFLAGS += $$TMAKE_CXXFLAGS_WARN_OFF'); + } elsif ( Config("warn_on") ) { + Project('TMAKE_CFLAGS += $$TMAKE_CFLAGS_WARN_ON'); + Project('TMAKE_CXXFLAGS += $$TMAKE_CXXFLAGS_WARN_ON'); + } + if ( Config("thread") ) { + Project('DEFINES += QT_THREAD_SUPPORT'); + + } + if ( Config("debug") ) { + if ( Config("thread") ) { + if ( Config("dll") ) { + Project('TMAKE_CFLAGS += $$TMAKE_CFLAGS_MT_DLLDBG'); + Project('TMAKE_CXXFLAGS += $$TMAKE_CXXFLAGS_MT_DLLDBG'); + } else { + Project('TMAKE_CFLAGS += $$TMAKE_CFLAGS_MT_DBG'); + Project('TMAKE_CXXFLAGS += $$TMAKE_CXXFLAGS_MT_DBG'); + } + } else { + Project('TMAKE_CFLAGS += $$TMAKE_CFLAGS_DEBUG'); + Project('TMAKE_CXXFLAGS += $$TMAKE_CXXFLAGS_DEBUG'); + } + Project('TMAKE_LFLAGS += $$TMAKE_LFLAGS_DEBUG'); + } elsif ( Config("release") ) { + if ( Config("thread") ) { + if ( Config("dll") ) { + Project('TMAKE_CFLAGS += $$TMAKE_CFLAGS_MT_DLL'); + Project('TMAKE_CXXFLAGS += $$TMAKE_CXXFLAGS_MT_DLL'); + } else { + Project('TMAKE_CFLAGS += $$TMAKE_CFLAGS_MT'); + Project('TMAKE_CXXFLAGS += $$TMAKE_CXXFLAGS_MT'); + } + } + Project('TMAKE_CFLAGS += $$TMAKE_CFLAGS_RELEASE'); + Project('TMAKE_CXXFLAGS += $$TMAKE_CXXFLAGS_RELEASE'); + Project('TMAKE_LFLAGS += $$TMAKE_LFLAGS_RELEASE'); + } + + if ( Project("TMAKE_INCDIR") ) { + AddIncludePath(Project("TMAKE_INCDIR")); + } + if ( Config("qt") || Config("opengl") ) { + Project('CONFIG += windows' ); + } + if ( Config("qt") ) { + Project('CONFIG *= moc'); + AddIncludePath(Project("TMAKE_INCDIR_QT")); + if ( !Config("debug") ) { + Project('DEFINES += NO_DEBUG'); + } + if ( (Project("TARGET") eq "qt") && Project("TMAKE_LIB_FLAG") ) { + if ( Project("TMAKE_QT_DLL") ) { + Project('DEFINES *= QT_MAKEDLL'); + Project('TMAKE_LFLAGS += $$TMAKE_LFLAGS_QT_DLL'); + } + } else { + Project('TMAKE_LIBS *= $$TMAKE_LIBS_QT'); + if ( Project("TMAKE_QT_DLL") ) { + my $qtver =FindHighestLibVersion($ENV{"QTDIR"} . "/lib", "qt"); + Project("TMAKE_LIBS /= s/qt.lib/qt${qtver}.lib/"); + if ( !Config("dll") ) { + Project('TMAKE_LIBS *= $$TMAKE_LIBS_QT_DLL'); + } + } + } + } + if ( Config("opengl") ) { + Project('TMAKE_LIBS *= $$TMAKE_LIBS_OPENGL'); + } + if ( Config("dll") ) { + Project('TMAKE_LFLAGS_CONSOLE_ANY = $$TMAKE_LFLAGS_CONSOLE_DLL'); + Project('TMAKE_LFLAGS_WINDOWS_ANY = $$TMAKE_LFLAGS_WINDOWS_DLL'); + if ( Project("TMAKE_LIB_FLAG") ) { + my $ver = Project("VERSION"); + $ver =~ s/\.//g; + $project{"TARGET_EXT"} = "${ver}.dll"; + } else { + $project{"TARGET_EXT"} = ".dll"; + } + } else { + Project('TMAKE_LFLAGS_CONSOLE_ANY = $$TMAKE_LFLAGS_CONSOLE'); + Project('TMAKE_LFLAGS_WINDOWS_ANY = $$TMAKE_LFLAGS_WINDOWS'); + if ( Project("TMAKE_APP_FLAG") ) { + $project{"TARGET_EXT"} = ".exe"; + } else { + $project{"TARGET_EXT"} = ".lib"; + } + } + if ( Config("windows") ) { + if ( Config("console") ) { + Project('TMAKE_LFLAGS *= $$TMAKE_LFLAGS_CONSOLE_ANY'); + Project('TMAKE_LIBS *= $$TMAKE_LIBS_CONSOLE'); + } else { + Project('TMAKE_LFLAGS *= $$TMAKE_LFLAGS_WINDOWS_ANY'); + } + Project('TMAKE_LIBS *= $$TMAKE_LIBS_WINDOWS'); + } else { + Project('TMAKE_LFLAGS *= $$TMAKE_LFLAGS_CONSOLE_ANY'); + Project('TMAKE_LIBS *= $$TMAKE_LIBS_CONSOLE'); + } + if ( Config("thread") ) { + Project('TMAKE_LIBS *= $$TMAKE_LIBS_RTMT'); + } else { + Project('TMAKE_LIBS *= $$TMAKE_LIBS_RT'); + } + if ( Config("moc") ) { + $moc_aware = 1; + } + Project('TMAKE_LIBS += $$LIBS'); + Project('TMAKE_FILETAGS = HEADERS SOURCES DEF_FILE RC_FILE TARGET TMAKE_LIBS DESTDIR DLLDESTDIR $$FILETAGS'); + foreach ( split(/\s/,Project("TMAKE_FILETAGS")) ) { + $project{$_} =~ s-[/\\]+-\\-g; + } + if ( Project("RC_FILE") ) { + if ( Project("RES_FILE") ) { + tmake_error("Both .rc and .res file specified.\n" . + "Please specify one of them, not both."); + } + $project{"RES_FILE"} = $project{"RC_FILE"}; + $project{"RES_FILE"} =~ s/\.rc$/.res/i; + Project('TARGETDEPS += $$RES_FILE'); + } + StdInit(); + if ( Project("VERSION") ) { + $project{"VER_MAJ"} = $project{"VERSION"}; + $project{"VER_MAJ"} =~ s/\.\d+$//; + $project{"VER_MIN"} = $project{"VERSION"}; + $project{"VER_MIN"} =~ s/^\d+\.//; + } + Project('TMAKE_CLEAN += $$TARGET.tds'); +#$} +#! +# Makefile for building #$ Expand("TARGET") +# Generated by tmake; +# Project: #$ Expand("PROJECT"); +# Template: #$ Expand("TEMPLATE"); +############################################################################# + +!if !$d(BCB) +BCB = $(MAKEDIR)\.. +!endif + +####### Compiler, tools and options + +CC = #$ Expand("TMAKE_CC"); +CXX = #$ Expand("TMAKE_CXX"); +CFLAGS = #$ Expand("TMAKE_CFLAGS"); ExpandGlue("DEFINES","-D"," -D",""); +CXXFLAGS= #$ Expand("TMAKE_CXXFLAGS"); ExpandGlue("DEFINES","-D"," -D",""); +INCPATH = #$ ExpandPath("INCPATH",'-I',' -I',''); +#$ !Project("TMAKE_APP_OR_DLL") && DisableOutput(); +LINK = #$ Expand("TMAKE_LINK"); +LFLAGS = #$ Expand("TMAKE_LFLAGS"); +LIBS = #$ Expand("TMAKE_LIBS"); +#$ !Project("TMAKE_APP_OR_DLL") && EnableOutput(); +#$ Project("TMAKE_APP_OR_DLL") && DisableOutput(); +LIB = #$ Expand("TMAKE_LIB"); +#$ Project("TMAKE_APP_OR_DLL") && EnableOutput(); +MOC = #$ Expand("TMAKE_MOC"); +UIC = #$ Expand("TMAKE_UIC"); + +ZIP = #$ Expand("TMAKE_ZIP"); +DEF_FILE = #$ ExpandList("DEF_FILE"); +RES_FILE = #$ ExpandList("RES_FILE"); + +####### Files + +HEADERS = #$ ExpandList("HEADERS"); +SOURCES = #$ ExpandList("SOURCES"); +OBJECTS = #$ ExpandList("OBJECTS"); +INTERFACES = #$ ExpandList("INTERFACES"); +UICDECLS = #$ ExpandList("UICDECLS"); +UICIMPLS = #$ ExpandList("UICIMPLS"); +SRCMOC = #$ ExpandList("SRCMOC"); +OBJMOC = #$ ExpandList("OBJMOC"); +DIST = #$ ExpandList("DISTFILES"); +TARGET = #$ ExpandGlue("TARGET",$project{"DESTDIR"},"",$project{"TARGET_EXT"}); +INTERFACE_DECL_PATH = #$ Expand("INTERFACE_DECL_PATH"); + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .c + +.cpp.obj: + #$ Expand("TMAKE_RUN_CXX_IMP"); + +.cxx.obj: + #$ Expand("TMAKE_RUN_CXX_IMP"); + +.cc.obj: + #$ Expand("TMAKE_RUN_CXX_IMP"); + +.c.obj: + #$ Expand("TMAKE_RUN_CC_IMP"); + +####### Build rules + +all: #$ ExpandGlue("ALL_DEPS",""," "," "); $text .= '$(TARGET)'; + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) #$ Expand("TARGETDEPS"); +#$ Project("TMAKE_APP_OR_DLL") || DisableOutput(); + $(LINK) @&&| + $(LFLAGS) $(OBJECTS) $(OBJMOC),$(TARGET),,$(LIBS),$(DEF_FILE),$(RES_FILE) +#$ Project("TMAKE_APP_OR_DLL") || EnableOutput(); +#$ Project("TMAKE_APP_OR_DLL") && DisableOutput(); + -del $(TARGET) + $(LIB) $(TARGET) @&&| +#${ +# $text = "+" . join(" \\\n+",split(/\s+/,$project{"OBJECTS"})) . " \\\n+" +# . join(" \\\n+",split(/\s+/,$project{"OBJMOC"})); +#$} +#$ Project("TMAKE_APP_OR_DLL") && EnableOutput(); +| +#$ (Config("dll") && Project("DLLDESTDIR")) || DisableOutput(); + -copy $(TARGET) #$ Expand("DLLDESTDIR"); +#$ (Config("dll") && Project("DLLDESTDIR")) || EnableOutput(); +#$ Project("RC_FILE") || DisableOutput(); + +#$ Substitute("\$\$RES_FILE: \$\$RC_FILE\n\t\$\$TMAKE_RC \$\$RC_FILE"); +#$ Project("RC_FILE") || EnableOutput(); + +moc: $(SRCMOC) + +#$ TmakeSelf(); + +dist: + #$ Substitute('$(ZIP) $$PROJECT.zip $$PROJECT.pro $(SOURCES) $(HEADERS) $(DIST)'); + +clean: + #$ ExpandGlue("OBJECTS","-del ","\n\t-del ",""); + #$ ExpandGlue("SRCMOC" ,"-del ","\n\t-del ",""); + #$ ExpandGlue("OBJMOC" ,"-del ","\n\t-del ",""); + -del $(TARGET) + #$ ExpandGlue("TMAKE_CLEAN","-del ","\n\t-del ",""); + #$ ExpandGlue("CLEAN_FILES","-del ","\n\t-del ",""); + +####### Compile + +#$ BuildObj(Project("OBJECTS"),Project("SOURCES")); +#$ BuildUicSrc(Project("INTERFACES")); +#$ BuildObj(Project("UICOBJECTS"), Project("UICIMPLS")); +#$ BuildMocObj(Project("OBJMOC"),Project("SRCMOC")); +#$ BuildMocSrc(Project("HEADERS")); +#$ BuildMocSrc(Project("SOURCES")); +#$ BuildMocSrc(Project("UICDECLS")); diff --git a/make/gen_make/template/win32-borland/lib.t b/make/gen_make/template/win32-borland/lib.t new file mode 100644 index 000000000..d8ac6c7a7 --- /dev/null +++ b/make/gen_make/template/win32-borland/lib.t @@ -0,0 +1,6 @@ +############################################################################# +#! +#! This is a tmake template for building Win32 libraries. +#! +#$ Project('TMAKE_LIB_FLAG = 1'); +#$ IncludeTemplate("generic.t"); diff --git a/make/gen_make/template/win32-borland/subdirs.t b/make/gen_make/template/win32-borland/subdirs.t new file mode 100644 index 000000000..f08e41f76 --- /dev/null +++ b/make/gen_make/template/win32-borland/subdirs.t @@ -0,0 +1,3 @@ +#! Use the common Win32 template +#$ Project("TMAKE_NOFORCE = 1"); +#$ IncludeTemplate("../win32/subdirs.t"); diff --git a/make/gen_make/template/win32-borland/tmake.conf b/make/gen_make/template/win32-borland/tmake.conf new file mode 100644 index 000000000..90ac2414f --- /dev/null +++ b/make/gen_make/template/win32-borland/tmake.conf @@ -0,0 +1,69 @@ +# +# $Id$ +# +# tmake configuration for Win32/Borland C++ +# + +MAKEFILE_GENERATOR = BMAKE +TEMPLATE = app +CONFIG = qt warn_on release + +TMAKE_CC = bcc32 +TMAKE_CFLAGS = -x- -RT- -tWR +#TMAKE_CFLAGS_WARN_ON = -w -w-8004 -w-8071 -w-8066 -w-8008 -w-8080 -w-8057 +TMAKE_CFLAGS_WARN_ON = -w -w-8004 -w-8071 -w-8057 -w-8080 +TMAKE_CFLAGS_WARN_OFF = -w- +TMAKE_CFLAGS_RELEASE = -O2 +TMAKE_CFLAGS_DEBUG = -v +TMAKE_CFLAGS_MT = -tWM +TMAKE_CFLAGS_MT_DBG = -tWM +TMAKE_CFLAGS_MT_DLL = -tWM +TMAKE_CFLAGS_MT_DLLDBG = -tWM +TMAKE_CFLAGS_YACC = + +TMAKE_CXX = $$TMAKE_CC +TMAKE_CXXFLAGS = $$TMAKE_CFLAGS +TMAKE_CXXFLAGS_WARN_ON = $$TMAKE_CFLAGS_WARN_ON +TMAKE_CXXFLAGS_WARN_OFF = $$TMAKE_CFLAGS_WARN_OFF +TMAKE_CXXFLAGS_RELEASE = $$TMAKE_CFLAGS_RELEASE +TMAKE_CXXFLAGS_DEBUG = $$TMAKE_CFLAGS_DEBUG +TMAKE_CXXFLAGS_MT = $$TMAKE_CFLAGS_MT +TMAKE_CXXFLAGS_MT_DBG = $$TMAKE_CFLAGS_MT_DBG +TMAKE_CXXFLAGS_MT_DLL = $$TMAKE_CFLAGS_MT_DLL +TMAKE_CXXFLAGS_MT_DLLDBG= $$TMAKE_CFLAGS_MT_DLLDBG +TMAKE_CXXFLAGS_YACC = $$TMAKE_CFLAGS_YACC + +TMAKE_INCDIR = +TMAKE_INCDIR_QT = $(QTDIR)\include + +TMAKE_RUN_CC = $(CC) -c $(CFLAGS) $(INCPATH) -o$obj $src +TMAKE_RUN_CC_IMP = $(CC) -c $(CFLAGS) $(INCPATH) -o$@ $< +TMAKE_RUN_CXX = $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$obj $src +TMAKE_RUN_CXX_IMP = $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +TMAKE_LINK = ilink32 +TMAKE_LFLAGS = -L$(BCB)\lib -L$(BCB)\lib\PSDK -c -x -Gn +TMAKE_LFLAGS_RELEASE = +TMAKE_LFLAGS_DEBUG = -v +TMAKE_LFLAGS_CONSOLE = -ap -Tpe c0x32.obj +TMAKE_LFLAGS_WINDOWS = -aa -Tpe c0w32.obj +TMAKE_LFLAGS_CONSOLE_DLL= -Gi -ap -Tpd c0d32.obj +TMAKE_LFLAGS_WINDOWS_DLL= -Gi -aa -Tpd c0d32.obj + +TMAKE_LIBS = import32.lib +TMAKE_LIBS_RT = cw32i.lib +TMAKE_LIBS_RTMT = cw32mti.lib +TMAKE_LIBS_CONSOLE = +TMAKE_LIBS_WINDOWS = +TMAKE_LIBS_QT = $(QTDIR)\lib\qt.lib +TMAKE_LIBS_QT_DLL = $(QTDIR)\lib\qtmain.lib + +TMAKE_LIBS_OPENGL = + +TMAKE_MOC = moc +TMAKE_UIC = uic + +TMAKE_LIB = tlib /C /P256 +TMAKE_RC = brc32 + +TMAKE_ZIP = zip -r -9 diff --git a/make/gen_make/template/win32-msvc/app.t b/make/gen_make/template/win32-msvc/app.t new file mode 100644 index 000000000..fc4dc2c79 --- /dev/null +++ b/make/gen_make/template/win32-msvc/app.t @@ -0,0 +1,6 @@ +############################################################################# +#! +#! This is a tmake template for building Win32 applications. +#! +#$ Project('TMAKE_APP_FLAG = 1'); +#$ IncludeTemplate("generic.t"); diff --git a/make/gen_make/template/win32-msvc/generic.t b/make/gen_make/template/win32-msvc/generic.t new file mode 100644 index 000000000..1d6a6f424 --- /dev/null +++ b/make/gen_make/template/win32-msvc/generic.t @@ -0,0 +1,261 @@ +#! +#! This is a tmake template for building Win32 applications or libraries. +#! +#${ + Project('CONFIG += qt') if Config("qt_dll"); + if ( !Project("INTERFACE_DECL_PATH") ) { + Project('INTERFACE_DECL_PATH = .' ); + } + if ( Config("qt") ) { + if ( !(Project("DEFINES") =~ /QT_NODLL/) && + ((Project("DEFINES") =~ /QT_(?:MAKE)?DLL/) || Config("qt_dll") || + ($ENV{"QT_DLL"} && !$ENV{"QT_NODLL"})) ) { + Project('TMAKE_QT_DLL = 1'); + if ( (Project("TARGET") eq "qt") && Project("TMAKE_LIB_FLAG") ) { + Project('CONFIG += dll'); + } + } + } + if ( Config("dll") || Project("TMAKE_APP_FLAG") ) { + Project('CONFIG -= staticlib'); + Project('TMAKE_APP_OR_DLL = 1'); + } else { + Project('CONFIG += staticlib'); + } + if ( Config("warn_off") ) { + Project('TMAKE_CFLAGS += $$TMAKE_CFLAGS_WARN_OFF'); + Project('TMAKE_CXXFLAGS += $$TMAKE_CXXFLAGS_WARN_OFF'); + } elsif ( Config("warn_on") ) { + Project('TMAKE_CFLAGS += $$TMAKE_CFLAGS_WARN_ON'); + Project('TMAKE_CXXFLAGS += $$TMAKE_CXXFLAGS_WARN_ON'); + } + if ( Config("thread") ) { + Project('DEFINES += QT_THREAD_SUPPORT'); + } + if ( Config("debug") ) { + if ( Config("thread") ) { + if ( Config("dll") ) { + Project('TMAKE_CFLAGS += $$TMAKE_CFLAGS_MT_DLLDBG'); + Project('TMAKE_CXXFLAGS += $$TMAKE_CXXFLAGS_MT_DLLDBG'); + } else { + Project('TMAKE_CFLAGS += $$TMAKE_CFLAGS_MT_DBG'); + Project('TMAKE_CXXFLAGS += $$TMAKE_CXXFLAGS_MT_DBG'); + } + } else { + Project('TMAKE_CFLAGS += $$TMAKE_CFLAGS_DEBUG'); + Project('TMAKE_CXXFLAGS += $$TMAKE_CXXFLAGS_DEBUG'); + } + Project('TMAKE_LFLAGS += $$TMAKE_LFLAGS_DEBUG'); + } elsif ( Config("release") ) { + if ( Config("thread") ) { + if ( Config("dll") ) { + Project('TMAKE_CFLAGS += $$TMAKE_CFLAGS_MT_DLL'); + Project('TMAKE_CXXFLAGS += $$TMAKE_CXXFLAGS_MT_DLL'); + } else { + Project('TMAKE_CFLAGS += $$TMAKE_CFLAGS_MT'); + Project('TMAKE_CXXFLAGS += $$TMAKE_CXXFLAGS_MT'); + } + } + Project('TMAKE_CFLAGS += $$TMAKE_CFLAGS_RELEASE'); + Project('TMAKE_CXXFLAGS += $$TMAKE_CXXFLAGS_RELEASE'); + Project('TMAKE_LFLAGS += $$TMAKE_LFLAGS_RELEASE'); + } + + if ( Project("TMAKE_INCDIR") ) { + AddIncludePath(Project("TMAKE_INCDIR")); + } + if ( Config("qt") || Config("opengl") ) { + Project('CONFIG += windows' ); + } + if ( Config("qt") ) { + Project('CONFIG *= moc'); + AddIncludePath(Project("TMAKE_INCDIR_QT")); + if ( !Config("debug") ) { + Project('DEFINES += NO_DEBUG'); + } + if ( (Project("TARGET") eq "qt") && Project("TMAKE_LIB_FLAG") ) { + if ( Project("TMAKE_QT_DLL") ) { + Project('DEFINES *= QT_MAKEDLL'); + Project('TMAKE_LFLAGS += $$TMAKE_LFLAGS_QT_DLL'); + } + } else { + Project('TMAKE_LIBS *= $$TMAKE_LIBS_QT'); + if ( Project("TMAKE_QT_DLL") ) { + my $qtver =FindHighestLibVersion($ENV{"QTDIR"} . "/lib", "qt"); + Project("TMAKE_LIBS /= s/qt.lib/qt${qtver}.lib/"); + if ( !Config("dll") ) { + Project('TMAKE_LIBS *= $$TMAKE_LIBS_QT_DLL'); + } + } + } + } + if ( Config("opengl") ) { + Project('TMAKE_LIBS *= $$TMAKE_LIBS_OPENGL'); + } + if ( Config("dll") ) { + Project('TMAKE_LFLAGS_CONSOLE_ANY = $$TMAKE_LFLAGS_CONSOLE_DLL'); + Project('TMAKE_LFLAGS_WINDOWS_ANY = $$TMAKE_LFLAGS_WINDOWS_DLL'); + if ( Project("TMAKE_LIB_FLAG") ) { + my $ver = Project("VERSION"); + $ver =~ s/\.//g; + $project{"TARGET_EXT"} = "${ver}.dll"; + } else { + $project{"TARGET_EXT"} = ".dll"; + } + } else { + Project('TMAKE_LFLAGS_CONSOLE_ANY = $$TMAKE_LFLAGS_CONSOLE'); + Project('TMAKE_LFLAGS_WINDOWS_ANY = $$TMAKE_LFLAGS_WINDOWS'); + if ( Project("TMAKE_APP_FLAG") ) { + $project{"TARGET_EXT"} = ".exe"; + } else { + $project{"TARGET_EXT"} = ".lib"; + } + } + if ( Config("windows") ) { + if ( Config("console") ) { + Project('TMAKE_LFLAGS *= $$TMAKE_LFLAGS_CONSOLE_ANY'); + Project('TMAKE_LIBS *= $$TMAKE_LIBS_CONSOLE'); + } else { + Project('TMAKE_LFLAGS *= $$TMAKE_LFLAGS_WINDOWS_ANY'); + } + Project('TMAKE_LIBS *= $$TMAKE_LIBS_WINDOWS'); + } else { + Project('TMAKE_LFLAGS *= $$TMAKE_LFLAGS_CONSOLE_ANY'); + Project('TMAKE_LIBS *= $$TMAKE_LIBS_CONSOLE'); + } + if ( Config("moc") ) { + $moc_aware = 1; + } + Project('TMAKE_LIBS += $$LIBS'); + Project('TMAKE_FILETAGS = HEADERS SOURCES DEF_FILE RC_FILE TARGET TMAKE_LIBS DESTDIR DLLDESTDIR $$FILETAGS'); + foreach ( split(/\s/,Project("TMAKE_FILETAGS")) ) { + $project{$_} =~ s-[/\\]+-\\-g; + } + if ( Project("DEF_FILE") ) { + Project('TMAKE_LFLAGS *= /DEF:$$DEF_FILE'); + } + if ( Project("RC_FILE") ) { + if ( Project("RES_FILE") ) { + tmake_error("Both .rc and .res file specified.\n" . + "Please specify one of them, not both."); + } + $project{"RES_FILE"} = $project{"RC_FILE"}; + $project{"RES_FILE"} =~ s/\.rc$/.res/i; + Project('TARGETDEPS += $$RES_FILE'); + } + if ( Project("RES_FILE") ) { + Project('TMAKE_LIBS *= $$RES_FILE'); + } + StdInit(); + if ( Project("VERSION") ) { + $project{"VER_MAJ"} = $project{"VERSION"}; + $project{"VER_MAJ"} =~ s/\.\d+$//; + $project{"VER_MIN"} = $project{"VERSION"}; + $project{"VER_MIN"} =~ s/^\d+\.//; + } + Project('dll:TMAKE_CLEAN += $$TARGET.lib $$TARGET.exp'); + Project('debug:TMAKE_CLEAN += $$TARGET.pdb vc*.pdb $$TARGET.ilk'); +#$} +#! +# Makefile for building #$ Expand("TARGET") +# Generated by tmake; +# Project: #$ Expand("PROJECT"); +# Template: #$ Expand("TEMPLATE"); +############################################################################# + +####### Compiler, tools and options + +CC = #$ Expand("TMAKE_CC"); +CXX = #$ Expand("TMAKE_CXX"); +CFLAGS = #$ Expand("TMAKE_CFLAGS"); ExpandGlue("DEFINES","-D"," -D",""); +CXXFLAGS= #$ Expand("TMAKE_CXXFLAGS"); ExpandGlue("DEFINES","-D"," -D",""); +INCPATH = #$ ExpandPath("INCPATH",'-I',' -I',''); +#$ !Project("TMAKE_APP_OR_DLL") && DisableOutput(); +LINK = #$ Expand("TMAKE_LINK"); +LFLAGS = #$ Expand("TMAKE_LFLAGS"); +LIBS = #$ Expand("TMAKE_LIBS"); +#$ !Project("TMAKE_APP_OR_DLL") && EnableOutput(); +#$ Project("TMAKE_APP_OR_DLL") && DisableOutput(); +LIB = #$ Expand("TMAKE_LIB"); +#$ Project("TMAKE_APP_OR_DLL") && EnableOutput(); +MOC = #$ Expand("TMAKE_MOC"); +UIC = #$ Expand("TMAKE_UIC"); + +ZIP = #$ Expand("TMAKE_ZIP"); + +####### Files + +HEADERS = #$ ExpandList("HEADERS"); +SOURCES = #$ ExpandList("SOURCES"); +OBJECTS = #$ ExpandList("OBJECTS"); +INTERFACES = #$ ExpandList("INTERFACES"); +UICDECLS = #$ ExpandList("UICDECLS"); +UICIMPLS = #$ ExpandList("UICIMPLS"); +SRCMOC = #$ ExpandList("SRCMOC"); +OBJMOC = #$ ExpandList("OBJMOC"); +DIST = #$ ExpandList("DISTFILES"); +TARGET = #$ ExpandGlue("TARGET",$project{"DESTDIR"},"",$project{"TARGET_EXT"}); +INTERFACE_DECL_PATH = #$ Expand("INTERFACE_DECL_PATH"); + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .c + +.cpp.obj: + #$ Expand("TMAKE_RUN_CXX_IMP"); + +.cxx.obj: + #$ Expand("TMAKE_RUN_CXX_IMP"); + +.cc.obj: + #$ Expand("TMAKE_RUN_CXX_IMP"); + +.c.obj: + #$ Expand("TMAKE_RUN_CC_IMP"); + +####### Build rules + +all: #$ ExpandGlue("ALL_DEPS",""," "," "); $text .= '$(TARGET)'; + +$(TARGET): $(UICDECLS) $(OBJECTS) $(OBJMOC) #$ Expand("TARGETDEPS"); +#$ Project("TMAKE_APP_OR_DLL") || DisableOutput(); + $(LINK) $(LFLAGS) /OUT:$(TARGET) @<< + $(OBJECTS) $(OBJMOC) $(LIBS) +#$ Project("TMAKE_APP_OR_DLL") || EnableOutput(); +#$ Project("TMAKE_APP_OR_DLL") && DisableOutput(); + $(LIB) /OUT:$(TARGET) @<< + $(OBJECTS) $(OBJMOC) +#$ Project("TMAKE_APP_OR_DLL") && EnableOutput(); +<< +#$ (Config("dll") && Project("DLLDESTDIR")) || DisableOutput(); + -copy $(TARGET) #$ Expand("DLLDESTDIR"); +#$ (Config("dll") && Project("DLLDESTDIR")) || EnableOutput(); +#$ Project("RC_FILE") || DisableOutput(); + +#$ Substitute("\$\$RES_FILE: \$\$RC_FILE\n\t\$\$TMAKE_RC \$\$RC_FILE"); +#$ Project("RC_FILE") || EnableOutput(); + +moc: $(SRCMOC) + +#$ TmakeSelf(); + +dist: + #$ Substitute('$(ZIP) $$PROJECT.zip $$PROJECT.pro $(SOURCES) $(HEADERS) $(DIST) $(INTERFACES)'); + +clean: + #$ ExpandGlue("OBJECTS","-del ","\n\t-del ",""); + #$ ExpandGlue("SRCMOC" ,"-del ","\n\t-del ",""); + #$ ExpandGlue("OBJMOC" ,"-del ","\n\t-del ",""); + -del $(TARGET) + #$ ExpandGlue("CLEAN_FILES","-del ","\n\t-del ",""); + #$ ExpandGlue("TMAKE_CLEAN","-del ","\n\t-del ",""); + +####### Compile + +#$ BuildObj(Project("OBJECTS"),Project("SOURCES")); +#$ BuildUicSrc(Project("INTERFACES")); +#$ BuildObj(Project("UICOBJECTS"), Project("UICIMPLS")); +#$ BuildMocObj(Project("OBJMOC"),Project("SRCMOC")); +#$ BuildMocSrc(Project("HEADERS")); +#$ BuildMocSrc(Project("SOURCES")); +#$ BuildMocSrc( Project("UICDECLS")); diff --git a/make/gen_make/template/win32-msvc/lib.t b/make/gen_make/template/win32-msvc/lib.t new file mode 100644 index 000000000..d8ac6c7a7 --- /dev/null +++ b/make/gen_make/template/win32-msvc/lib.t @@ -0,0 +1,6 @@ +############################################################################# +#! +#! This is a tmake template for building Win32 libraries. +#! +#$ Project('TMAKE_LIB_FLAG = 1'); +#$ IncludeTemplate("generic.t"); diff --git a/make/gen_make/template/win32-msvc/subdirs.t b/make/gen_make/template/win32-msvc/subdirs.t new file mode 100644 index 000000000..247fb4bfc --- /dev/null +++ b/make/gen_make/template/win32-msvc/subdirs.t @@ -0,0 +1,54 @@ +############################################################################# +#! +#! This is a tmake template for creating a makefile that invokes make in +#! sub directories - for Win32. +#! +#${ + StdInit(); + $m = ""; + foreach ( split(/\s+/,$project{"SUBDIRS"}) ) { + $m = $m . "\tcd $_\n\tDOMAKE\n\t\@cd ..\n"; + } + $project{"SUBMAKE"} = $m; + Project('MAKEFILE') || Project('MAKEFILE = Makefile'); + Project('TMAKE') || Project('TMAKE = tmake'); +#$} +#! +# Makefile for building targets in sub directories. +# Generated by tmake; +# Project: #$ Expand("PROJECT"); +# Template: #$ Expand("TEMPLATE"); +############################################################################# + +MAKEFILE= #$ Expand("MAKEFILE"); +TMAKE = #$ Expand("TMAKE"); + +SUBDIRS = #$ ExpandList("SUBDIRS"); + +all: $(SUBDIRS) + +#${ + foreach ( split(/\s+/,$project{"SUBDIRS"}) ) { + if ( Project("TMAKE_NOFORCE") ) { + $text = $text . $_ . ":\n\t" . + "cd $_\n\t\$(MAKE\) /nologo\n\t\@cd ..\n\n"; + } else { + $text = $text . $_ . ": FORCE\n\t" . + "cd $_\n\t\$(MAKE\) /nologo\n\t\@cd ..\n\n"; + } + } +#$} +#$ TmakeSelf(); + +tmake_all: +#${ + foreach ( split(/\s+/,$project{"SUBDIRS"}) ) { + $text .= "\tcd $_\n\t\$(TMAKE\) $_.pro -o \$(MAKEFILE)\n\t\@cd ..\n"; + } +#$} + +clean: +#$ $text = $project{"SUBMAKE"}; $text =~ s/DOMAKE/\$(MAKE\) clean/g; +#$ Project("TMAKE_NOFORCE") && DisableOutput(); +FORCE: +#$ Project("TMAKE_NOFORCE") && EnableOutput(); diff --git a/make/gen_make/template/win32-msvc/tmake.conf b/make/gen_make/template/win32-msvc/tmake.conf new file mode 100644 index 000000000..552f0cea0 --- /dev/null +++ b/make/gen_make/template/win32-msvc/tmake.conf @@ -0,0 +1,67 @@ +# +# $Id$ +# +# tmake configuration for Win32/Microsoft C++ +# + +MAKEFILE_GENERATOR = DSP +TEMPLATE = app +CONFIG = qt warn_on release + +TMAKE_CC = cl +TMAKE_CFLAGS = -nologo +TMAKE_CFLAGS_WARN_ON = -W3 +TMAKE_CFLAGS_WARN_OFF = -W0 +TMAKE_CFLAGS_RELEASE = -O2 +TMAKE_CFLAGS_DEBUG = -Zi +TMAKE_CFLAGS_MT = -MT +TMAKE_CFLAGS_MT_DBG = -MTd -Zi +TMAKE_CFLAGS_MT_DLL = -MD +TMAKE_CFLAGS_MT_DLLDBG = -MDd -Zi +TMAKE_CFLAGS_YACC = + +TMAKE_CXX = $$TMAKE_CC +TMAKE_CXXFLAGS = $$TMAKE_CFLAGS +TMAKE_CXXFLAGS_WARN_ON = $$TMAKE_CFLAGS_WARN_ON +TMAKE_CXXFLAGS_WARN_OFF = $$TMAKE_CFLAGS_WARN_OFF +TMAKE_CXXFLAGS_RELEASE = $$TMAKE_CFLAGS_RELEASE +TMAKE_CXXFLAGS_DEBUG = $$TMAKE_CFLAGS_DEBUG +TMAKE_CXXFLAGS_MT = $$TMAKE_CFLAGS_MT +TMAKE_CXXFLAGS_MT_DBG = $$TMAKE_CFLAGS_MT_DBG +TMAKE_CXXFLAGS_MT_DLL = $$TMAKE_CFLAGS_MT_DLL +TMAKE_CXXFLAGS_MT_DLLDBG= $$TMAKE_CFLAGS_MT_DLLDBG +TMAKE_CXXFLAGS_YACC = $$TMAKE_CFLAGS_YACC + +TMAKE_INCDIR = +TMAKE_INCDIR_QT = $(QTDIR)\include + +TMAKE_RUN_CC = $(CC) -c $(CFLAGS) $(INCPATH) -Fo$obj $src +TMAKE_RUN_CC_IMP = $(CC) -c $(CFLAGS) $(INCPATH) -Fo$@ $< +TMAKE_RUN_CXX = $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$obj $src +TMAKE_RUN_CXX_IMP = $(CXX) -c $(CXXFLAGS) $(INCPATH) -Fo$@ $< + +TMAKE_LINK = link +TMAKE_LFLAGS = /NOLOGO +TMAKE_LFLAGS_RELEASE = +TMAKE_LFLAGS_DEBUG = /DEBUG +TMAKE_LFLAGS_CONSOLE = /SUBSYSTEM:console +TMAKE_LFLAGS_WINDOWS = /SUBSYSTEM:windows +TMAKE_LFLAGS_CONSOLE_DLL= /SUBSYSTEM:console /DLL +TMAKE_LFLAGS_WINDOWS_DLL= /SUBSYSTEM:windows /DLL +TMAKE_LFLAGS_QT_DLL = /BASE:0x39D00000 + +TMAKE_LIBS = +TMAKE_LIBS_CONSOLE = +TMAKE_LIBS_WINDOWS = kernel32.lib user32.lib gdi32.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib imm32.lib winmm.lib wsock32.lib +TMAKE_LIBS_QT = $(QTDIR)\lib\qt.lib +TMAKE_LIBS_QT_DLL = $(QTDIR)\lib\qtmain.lib + +TMAKE_LIBS_OPENGL = opengl32.lib glu32.lib + +TMAKE_MOC = moc +TMAKE_UIC = uic + +TMAKE_LIB = lib /NOLOGO +TMAKE_RC = rc + +TMAKE_ZIP = zip -r -9 diff --git a/make/gen_make/template/win32-msvc/vcapp.t b/make/gen_make/template/win32-msvc/vcapp.t new file mode 100644 index 000000000..4bfdcaf9c --- /dev/null +++ b/make/gen_make/template/win32-msvc/vcapp.t @@ -0,0 +1,12 @@ +#! +#! This is a tmake template for building Win32 application project files. +#! +#! Sets a flag to indicate that we want to build an application and then +#! invoke the common vcgeneric.t template. +#! +#! The win32app.dsp file is used as a template for building applications. +#! You may specify your own .dsp template by setting the project variable +#! DSP_TEMPLATE. +#! +#$ Project('TMAKE_APP_FLAG = 1'); +#$ IncludeTemplate("vcgeneric.t"); diff --git a/make/gen_make/template/win32-msvc/vcgeneric.t b/make/gen_make/template/win32-msvc/vcgeneric.t new file mode 100644 index 000000000..ea0819b42 --- /dev/null +++ b/make/gen_make/template/win32-msvc/vcgeneric.t @@ -0,0 +1,268 @@ +#! +#! This is a tmake template for building MSVC++ project files (.dsp) +#! +#${ + if ( Config("qt") ) { + if ( !(Project("DEFINES") =~ /QT_NODLL/) && + ((Project("DEFINES") =~ /QT_(?:MAKE)?DLL/) || + ($ENV{"QT_DLL"} && !$ENV{"QT_NODLL"})) ) { + Project('TMAKE_QT_DLL = 1'); + if ( (Project("TARGET") eq "qt" || Project("TARGET") eq "qt-mt" ) && Project("TMAKE_LIB_FLAG") ) { + Project('CONFIG += dll'); + } + } + } + if ( Config("dll") || Project("TMAKE_APP_FLAG") ) { + Project('CONFIG -= staticlib'); + Project('TMAKE_APP_OR_DLL = 1'); + } else { + Project('CONFIG += staticlib'); + } + if ( Config("qt") || Config("opengl") ) { + Project('CONFIG += windows' ); + } + if ( Config("qt") ) { + Project('CONFIG *= moc'); + Project('DEFINES *= UNICODE' ); + AddIncludePath(Project("TMAKE_INCDIR_QT")); + Project('TMAKE_LIBS *= imm32.lib wsock32.lib winmm.lib'); + if ( Config("opengl") ) { + Project('TMAKE_LIBS *= $$TMAKE_LIBS_QT_OPENGL'); + } + if ( (Project("TARGET") eq "qt" || Project("TARGET") eq "qt-mt") && Project("TMAKE_LIB_FLAG") ) { + if ( Project("TMAKE_QT_DLL") ) { + Project('DEFINES *= QT_MAKEDLL'); + Project('MSVCDSP_DLLBASE = /base:"0x39D00000"'); + } + } else { + Project('TMAKE_LIBS *= $$TMAKE_LIBS_QT'); + if ( Project("TMAKE_QT_DLL") ) { + my $qtver =FindHighestLibVersion($ENV{"QTDIR"} . "/lib", "qt"); + Project("TMAKE_LIBS /= s/qt.lib/qt${qtver}.lib/"); + if ( !Config("dll") ) { + Project('TMAKE_LIBS *= $$TMAKE_LIBS_QT_DLL'); + } + } + } + } + if ( Config("opengl") ) { + Project('TMAKE_LIBS *= $$TMAKE_LIBS_OPENGL'); + } + Project( 'DEFINES *= QT_THREAD_SUPPORT' ); + if ( Config("debug") ) { + $project{"MSVCDSP_MTDEF"} = "-MDd"; + } else { + $project{"MSVCDSP_MTDEF"} = "-MD"; + } + if ( Config("dll") ) { + if ( Project("TMAKE_LIB_FLAG") ) { + my $ver = Project("VERSION"); + $ver =~ s/\.//g; + $project{"TARGET_EXT"} = "${ver}.dll"; + } else { + $project{"TARGET_EXT"} = ".dll"; + } + } else { + if ( Project("TMAKE_APP_FLAG") ) { + $project{"TARGET_EXT"} = ".exe"; + } else { + $project{"TARGET_EXT"} = ".lib"; + } + } + $project{"TARGET"} .= $project{"TARGET_EXT"}; + if ( Config("moc") ) { + $moc_aware = 1; + } + Project('TMAKE_LIBS += $$LIBS'); + Project('TMAKE_FILETAGS = HEADERS SOURCES DEF_FILE RC_FILE TARGET TMAKE_LIBS DESTDIR DLLDESTDIR $$FILETAGS'); + foreach ( split(/\s/,Project("TMAKE_FILETAGS")) ) { + $project{$_} =~ s-[/\\]+-\\-g; + } + StdInit(); + if ( check_unix() ) { + $is_msvc5 = 0; + } else { + tmake_use_win32_registry(); + $HKEY_CURRENT_USER->Open("Software\\Microsoft\\DevStudio\\5.0",$is_msvc5); + } + if ( $is_msvc5 ) { + $project{"MSVCDSP_VER"} = "5.00"; + $project{"MSVCDSP_DEBUG_OPT"} = "/Zi"; + } else { + $project{"MSVCDSP_VER"} = "6.00"; + $project{"MSVCDSP_DEBUG_OPT"} = "/GZ /ZI"; + } + $project{"MSVCDSP_PROJECT"} = $project{"OUTFILE"}; + $project{"MSVCDSP_PROJECT"} =~ s/\.[a-zA-Z0-9_]*$//; + + if ( Project("TMAKE_APP_FLAG") ) { + $project{"MSVCDSP_TEMPLATE"} = "win32app.dsp"; + if ( Config("console") ) { + $project{"MSVCDSP_CONSOLE"} = "Console"; + $project{"MSVCDSP_WINCONDEF"} = "_CONSOLE"; + $project{"MSVCDSP_DSPTYPE"} = "0x0103"; + $project{"MSVCDSP_SUBSYSTEM"} = "console"; + } else { + $project{"MSVCDSP_CONSOLE"} = ""; + $project{"MSVCDSP_WINCONDEF"} = "_WINDOWS"; + $project{"MSVCDSP_DSPTYPE"} = "0x0101"; + $project{"MSVCDSP_SUBSYSTEM"} = "windows"; + } + } else { + if ( Config("dll") ) { + $project{"MSVCDSP_TEMPLATE"} = "win32dll.dsp"; + } else { + $project{"MSVCDSP_TEMPLATE"} = "win32lib.dsp"; + } + } + $project{"MSVCDSP_LIBS"} = $project{"TMAKE_LIBS"}; + ExpandGlue("DEFINES",'/D "','" /D "','"'); + $project{"MSVCDSP_DEFINES"} = $text; $text = ""; + ExpandPath("INCPATH",'/I ',' /I ',''); + $project{"MSVCDSP_INCPATH"} = $text; $text = ""; + if ( Config("qt") ) { + $project{"MSVCDSP_RELDEFS"} = '/D "NO_DEBUG"'; + } else { + $project{"MSVCDSP_RELDEFS"} = ''; + } + if ( defined($project{"DESTDIR"}) ) { + $project{"TARGET"} = $project{"DESTDIR"} . "\\" . $project{"TARGET"}; + $project{"TARGET"} =~ s/\\+/\\/g; + $project{"MSVCDSP_TARGET"} = '/out:"' . $project{"TARGET"} . '"'; + if ( Config("dll") ) { + my $t = $project{"TARGET"}; + $t =~ s/\.dll/.lib/; + $project{"MSVCDSP_TARGET"} .= " /implib:\"$t\""; + } + } + if ( Config("dll") && Project("DLLDESTDIR") ) { + $project{"MSVCDSP_COPY_DLL"} = + "# Begin Special Build Tool\n" . + "TargetPath=" . $project{"TARGET"} . "\n" . + "SOURCE=\$(InputPath)\n" . + "PostBuild_Desc=Copy DLL to " . $project{"DLLDESTDIR"} . "\n" . + "PostBuild_Cmds=copy \$(TargetPath) \"" . $project{"DLLDESTDIR"} . "\"\n" . + "# End Special Build Tool"; + } + if ( Project("DSP_TEMPLATE") ) { + $dspfile = Project("DSP_TEMPLATE"); + } else { + $dspfile = Project("MSVCDSP_TEMPLATE"); + } + $dsppath= &fix_path( &find_template($dspfile) ); + if ( !open(DSP,$dsppath) ) { + &tmake_error("Cannot open dsp template $dspfile at $dsppath"); + } + if ( Config("moc") ) { + $project{"SOURCES"} .= " " . $project{"SRCMOC"}; + } + if ( $project{"SOURCES"} || $project{"RC_FILE"} ) { + $project{"SOURCES"} .= " " . $project{"RC_FILE"}; + @files = split(/\s+/,$project{"SOURCES"}); $text = ""; + foreach ( @files ) { + $file = $_; + $text .= "# Begin Source File\n\nSOURCE=.\\$file\n"; + if ( Config("moc") && ($file =~ /\.moc$/) ) { + $build = "\n\n# Begin Custom Build - Moc'ing $moc_input{$file}...\n" . + "InputPath=.\\$file\n\n" . + '"' . $file . + '" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"' . "\n" . + "\t%QTDIR%\\bin\\moc.exe " . $moc_input{$file} . " -o $file\n\n" . + "# End Custom Build\n\n"; + $base = $file; + $base =~ s/\..*//; + $base =~ tr/a-z/A-Z/; + $base =~ s/[^A-Z]/_/g; + $text .= "USERDEP_$base=" . '"' . $moc_input{$file} . '"' . + "\n\n" . '!IF "$(CFG)" == "' . + $project{"MSVCDSP_PROJECT"} . ' - Win32 Release"' . + $build . '!ELSEIF "$(CFG)" == "' . + $project{"MSVCDSP_PROJECT"} . ' - Win32 Debug"' . + $build . "!ENDIF \n\n"; + } + $text .= "# End Source File\n"; + } + $project{"MSVCDSP_SOURCES"} = $text; $text = ""; + } + if ( $project{"HEADERS"} ) { + @files = split(/\s+/,$project{"HEADERS"}); $text = ""; + foreach ( @files ) { + $file = $_; + $text .= "# Begin Source File\n\nSOURCE=.\\$file\n"; + if ( Config("moc") && $moc_output{$file} ) { + $build = "\n\n# Begin Custom Build - Moc'ing $file...\n" . + "InputPath=.\\$file\n\n" . + '"' . $moc_output{$file} . + '" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"' . "\n" . + "\t%QTDIR%\\bin\\moc.exe $file -o " . $moc_output{$file} . "\n\n" . + "# End Custom Build\n\n"; + $text .= "\n" . '!IF "$(CFG)" == "' . + $project{"MSVCDSP_PROJECT"} . ' - Win32 Release"' . + $build . '!ELSEIF "$(CFG)" == "' . + $project{"MSVCDSP_PROJECT"} . ' - Win32 Debug"' . + $build . "!ENDIF \n\n"; + } + $text .= "# End Source File\n"; + } + $project{"MSVCDSP_HEADERS"} = $text; $text = ""; + } + if ($project{"INTERFACES"} ) { + $uicpath = Expand("TMAKE_UIC"); + $uicpath =~ s/[.]exe//g; + $uicpath .= " "; + @files = split(/\s+/,$project{"INTERFACES"}); $text = ""; $headtext = ""; $sourcetext = ""; + foreach ( @files ) { + $file = $_; + $filename = $file; + $filename =~ s/[.]ui//g; + $text .= "# Begin Source File\n\nSOURCE=.\\$file\n"; + + $build = "\n\n# Begin Custom Build - Uic'ing $file...\n" . + "InputPath=.\\$file\n\n" . + "BuildCmds= " . $uicpath . $file . + " -o " . $filename . ".h\\\n" . + "\t" . $uicpath . $file . + " -i " . $filename . ".h -o " . $filename . ".cpp\\\n" . + "\t%QTDIR%\\bin\\moc " . $filename . ".h -o " . $project{"MOC_DIR"} . "moc_" . $filename . ".cpp \\\n\n" . + '"' . $filename . '.h" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"' . "\n" . + "\t\$(BuildCmds)\n\n" . + '"' . $filename . '.cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"' . "\n" . + "\t\$(BuildCmds)\n\n" . + '"' . $project{"MOC_DIR"} . 'moc_' . $filename . '.cpp" : $(SOURCE) "$(INTDIR)" "$(OUTDIR)"' . "\n" . + "\t\$(BuildCmds)\n\n" . + "# End Custom Build\n\n"; + + $text .= '!IF "$(CFG)" == "' . + $project{"MSVCDSP_PROJECT"} . ' - Win32 Release"' . $build . + '!ELSEIF "$(CFG)" == "' . + $project{"MSVCDSP_PROJECT"} . ' - Win32 Debug"' . $build . + "!ENDIF \n\n"; + + $text .= "# End Source File\n"; + + $sourcetext .= "# Begin Source File\n\nSOURCE=.\\" . $filename . ".cpp\n# End Source File\n"; + $headtext .= "# Begin Source File\n\nSOURCE=.\\" . $filename . ".h\n# End Source File\n"; + + } + $project{"MSVCDSP_INTERFACES"} = $text; $text = ""; + $project{"MSVCDSP_INTERFACESOURCES"} = $sourcetext; $sourcetext = ""; + $project{"MSVCDSP_INTERFACEHEADERS"} = $headtext; $headtext = ""; + } + while ( ) { + $line = $_; + while ( $line =~ s/((\s*)\$\$([a-zA-Z0-9_]+))/__MSVCDSP_SUBST__/ ) { + if ( defined($project{$3}) && ($project{$3} ne "")) { + $subst = $project{$3}; + $space = $2; + $line =~ s/__MSVCDSP_SUBST__/${space}${subst}/; + if ( $line =~ /^\s*$/ ) { + $line = ""; + } + } else { + $line =~ s/__MSVCDSP_SUBST__//; + } + } + $text .= $line; + } + close(DSP); +#$} diff --git a/make/gen_make/template/win32-msvc/vclib.t b/make/gen_make/template/win32-msvc/vclib.t new file mode 100644 index 000000000..6ce04c9eb --- /dev/null +++ b/make/gen_make/template/win32-msvc/vclib.t @@ -0,0 +1,14 @@ +#! +#! This is a tmake template for building Win32 library project files. +#! +#! Sets a flag to indicate that we want to build a library (either +#! a static library or a DLL) and then invoke the common vcgeneric.t +#! template. +#! +#! The win32lib.dsp file is used as a template for building static +#! libraries and win32dll.dsp is used as a template for building DLLs. +#! You may specify your own .dsp template by setting the project variable +#! DSP_TEMPLATE. +#! +#$ Project('TMAKE_LIB_FLAG = 1'); +#$ IncludeTemplate("vcgeneric.t"); diff --git a/make/gen_make/template/win32-msvc/win32app.dsp b/make/gen_make/template/win32-msvc/win32app.dsp new file mode 100644 index 000000000..d2f2cd1f8 --- /dev/null +++ b/make/gen_make/template/win32-msvc/win32app.dsp @@ -0,0 +1,109 @@ +# Microsoft Developer Studio Project File - Name="$$MSVCDSP_PROJECT" - Package Owner=<4> +# Microsoft Developer Studio Generated Build File, Format Version $$MSVCDSP_VER +# ** DO NOT EDIT ** + +# TARGTYPE "Win32 (x86) $$MSVCDSP_CONSOLE Application" $$MSVCDSP_DSPTYPE + +CFG=$$MSVCDSP_PROJECT - Win32 Debug +!MESSAGE This is not a valid makefile. To build this project using NMAKE, +!MESSAGE use the Export Makefile command and run +!MESSAGE +!MESSAGE NMAKE /f "$$MSVCDSP_PROJECT.mak". +!MESSAGE +!MESSAGE You can specify a configuration when running NMAKE +!MESSAGE by defining the macro CFG on the command line. For example: +!MESSAGE +!MESSAGE NMAKE /f "$$MSVCDSP_PROJECT.mak" CFG="$$MSVCDSP_PROJECT - Win32 Debug" +!MESSAGE +!MESSAGE Possible choices for configuration are: +!MESSAGE +!MESSAGE "$$MSVCDSP_PROJECT - Win32 Release" (based on "Win32 (x86) Application") +!MESSAGE "$$MSVCDSP_PROJECT - Win32 Debug" (based on "Win32 (x86) Application") +!MESSAGE + +# Begin Project +# PROP AllowPerConfigDependencies 0 +# PROP Scc_ProjName "" +# PROP Scc_LocalPath "" +CPP=cl.exe +MTL=midl.exe +RSC=rc.exe + +!IF "$(CFG)" == "$$MSVCDSP_PROJECT - Win32 Release" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir "Release" +# PROP BASE Intermediate_Dir "Release" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir "Release" +# PROP Intermediate_Dir "Release" +# PROP Target_Dir "" +# ADD BASE CPP /nologo $$MSVCDSP_MTDEF /W3 /O1 /D "WIN32" /D "NDEBUG" /D "$$MSVCDSP_WINCONDEF" /D "_MBCS" /FD /c +# ADD CPP /nologo $$MSVCDSP_MTDEF /W3 /O1 $$MSVCDSP_INCPATH /D "WIN32" /D "NDEBUG" /D "$$MSVCDSP_WINCONDEF" /D "_MBCS" $$MSVCDSP_DEFINES $$MSVCDSP_RELDEFS /FD /c +# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32 +# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32 +# ADD BASE RSC /l 0x409 /d "NDEBUG" +# ADD RSC /l 0x409 /d "NDEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LINK32=link.exe +# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib imm32.lib winmm.lib wsock32.lib /nologo /subsystem:$$MSVCDSP_SUBSYSTEM /machine:I386 +# ADD LINK32 kernel32.lib user32.lib gdi32.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib imm32.lib winmm.lib wsock32.lib $$MSVCDSP_LIBS /nologo /subsystem:$$MSVCDSP_SUBSYSTEM /machine:I386 $$MSVCDSP_TARGET + +!ELSEIF "$(CFG)" == "$$MSVCDSP_PROJECT - Win32 Debug" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 1 +# PROP BASE Output_Dir "Debug" +# PROP BASE Intermediate_Dir "Debug" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 1 +# PROP Output_Dir "Debug" +# PROP Intermediate_Dir "Debug" +# PROP Target_Dir "" +# ADD BASE CPP /nologo $$MSVCDSP_MTDEF /W3 /Gm $$MSVCDSP_DEBUG_OPT /Od /D "WIN32" /D "_DEBUG" /D "$$MSVCDSP_WINCONDEF" /D "_MBCS" /FD /c +# ADD CPP /nologo $$MSVCDSP_MTDEF /W3 /Gm $$MSVCDSP_DEBUG_OPT /Od $$MSVCDSP_INCPATH /D "WIN32" /D "_DEBUG" /D "$$MSVCDSP_WINCONDEF" /D "_MBCS" $$MSVCDSP_DEFINES /FD /c +# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /win32 +# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32 +# ADD BASE RSC /l 0x409 /d "_DEBUG" +# ADD RSC /l 0x409 /d "_DEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LINK32=link.exe +# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib imm32.lib winmm.lib wsock32.lib /nologo /subsystem:$$MSVCDSP_SUBSYSTEM /debug /machine:I386 /pdbtype:sept +# ADD LINK32 kernel32.lib user32.lib gdi32.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib imm32.lib winmm.lib wsock32.lib $$MSVCDSP_LIBS /nologo /subsystem:$$MSVCDSP_SUBSYSTEM /debug /machine:I386 $$MSVCDSP_TARGET /nodefaultlib:"libc" /pdbtype:sept + +!ENDIF + +# Begin Target + +# Name "$$MSVCDSP_PROJECT - Win32 Release" +# Name "$$MSVCDSP_PROJECT - Win32 Debug" +# Begin Group "Source Files" + +# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat" +$$MSVCDSP_SOURCES +$$MSVCDSP_INTERFACESOURCES +# End Group +# Begin Group "Header Files" + +# PROP Default_Filter "h;hpp;hxx;hm;inl" +$$MSVCDSP_HEADERS +$$MSVCDSP_INTERFACEHEADERS +# End Group +# Begin Group "Resource Files" + +# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe" +# End Group +# Begin Group "Interfaces" +$$MSVCDSP_INTERFACES +# Prop Default_Filter "ui" +# End Group +# End Target +# End Project diff --git a/make/gen_make/template/win32-msvc/win32dll.dsp b/make/gen_make/template/win32-msvc/win32dll.dsp new file mode 100644 index 000000000..87f390b86 --- /dev/null +++ b/make/gen_make/template/win32-msvc/win32dll.dsp @@ -0,0 +1,112 @@ +# Microsoft Developer Studio Project File - Name="$$MSVCDSP_PROJECT" - Package Owner=<4> +# Microsoft Developer Studio Generated Build File, Format Version $$MSVCDSP_VER +# ** DO NOT EDIT ** + +# TARGTYPE "Win32 (x86) Dynamic-Link Library" 0x0102 + +CFG=$$MSVCDSP_PROJECT - Win32 Debug +!MESSAGE This is not a valid makefile. To build this project using NMAKE, +!MESSAGE use the Export Makefile command and run +!MESSAGE +!MESSAGE NMAKE /f "$$MSVCDSP_PROJECT.mak". +!MESSAGE +!MESSAGE You can specify a configuration when running NMAKE +!MESSAGE by defining the macro CFG on the command line. For example: +!MESSAGE +!MESSAGE NMAKE /f "$$MSVCDSP_PROJECT.mak" CFG="$$MSVCDSP_PROJECT - Win32 Debug" +!MESSAGE +!MESSAGE Possible choices for configuration are: +!MESSAGE +!MESSAGE "$$MSVCDSP_PROJECT - Win32 Release" (based on "Win32 (x86) Dynamic-Link Library") +!MESSAGE "$$MSVCDSP_PROJECT - Win32 Debug" (based on "Win32 (x86) Dynamic-Link Library") +!MESSAGE + +# Begin Project +# PROP AllowPerConfigDependencies 0 +# PROP Scc_ProjName "" +# PROP Scc_LocalPath "" +CPP=cl.exe +MTL=midl.exe +RSC=rc.exe + +!IF "$(CFG)" == "$$MSVCDSP_PROJECT - Win32 Release" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir "Release" +# PROP BASE Intermediate_Dir "Release" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir "Release" +# PROP Intermediate_Dir "Release" +# PROP Target_Dir "" +# ADD BASE CPP /nologo $$MSVCDSP_MTDEF /W3 /O1 /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /FD /c +# ADD CPP /nologo $$MSVCDSP_MTDEF /W3 /O1 $$MSVCDSP_INCPATH /D "WIN32" /D "NDEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" $$MSVCDSP_DEFINES $$MSVCDSP_RELDEFS /FD /c +# ADD BASE MTL /nologo /D "NDEBUG" /mktyplib203 /win32 +# ADD MTL /nologo /D "NDEBUG" /mktyplib203 /win32 +# ADD BASE RSC /l 0x409 /d "NDEBUG" +# ADD RSC /l 0x409 /d "NDEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LINK32=link.exe +# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib /nologo /dll /machine:I386 +# ADD LINK32 kernel32.lib user32.lib gdi32.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib $$MSVCDSP_LIBS /nologo $$MSVCDSP_DLLBASE /dll /machine:I386 $$MSVCDSP_TARGET +$$MSVCDSP_COPY_DLL + +!ELSEIF "$(CFG)" == "$$MSVCDSP_PROJECT - Win32 Debug" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 1 +# PROP BASE Output_Dir "Debug" +# PROP BASE Intermediate_Dir "Debug" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 1 +# PROP Output_Dir "Debug" +# PROP Intermediate_Dir "Debug" +# PROP Target_Dir "" +# ADD BASE CPP /nologo $$MSVCDSP_MTDEF /W3 /Gm $$MSVCDSP_DEBUG_OPT /Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /FD /c +# ADD CPP /nologo $$MSVCDSP_MTDEF /W3 /Gm $$MSVCDSP_DEBUG_OPT /Od $$MSVCDSP_INCPATH /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" $$MSVCDSP_DEFINES /FD /c +# ADD BASE MTL /nologo /D "_DEBUG" /mktyplib203 /win32 +# ADD MTL /nologo /D "_DEBUG" /mktyplib203 /win32 +# ADD BASE RSC /l 0x409 /d "_DEBUG" +# ADD RSC /l 0x409 /d "_DEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LINK32=link.exe +# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib /nologo /dll /debug /machine:I386 /pdbtype:sept +# ADD LINK32 kernel32.lib user32.lib gdi32.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib $$MSVCDSP_LIBS /nologo $$MSVCDSP_DLLBASE /dll /debug /machine:I386 $$MSVCDSP_TARGET /pdbtype:sept +$$MSVCDSP_COPY_DLL + +!ENDIF + +# Begin Target + +# Name "$$MSVCDSP_PROJECT - Win32 Release" +# Name "$$MSVCDSP_PROJECT - Win32 Debug" +# Begin Group "Source Files" + +# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat" +$$MSVCDSP_SOURCES +$$MSVCDSP_INTERFACESOURCES +# End Group +# Begin Group "Header Files" + +# PROP Default_Filter "h;hpp;hxx;hm;inl" +$$MSVCDSP_HEADERS +$$MSVCDSP_INTERFACEHEADERS +# End Group +# Begin Group "Resource Files" + +# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe" +# End Group +# Begin Group "Interfaces" +$$MSVCDSP_INTERFACES + +# Prop Default_Filter "ui" +# End Group +# End Target +# End Project diff --git a/make/gen_make/template/win32-msvc/win32lib.dsp b/make/gen_make/template/win32-msvc/win32lib.dsp new file mode 100644 index 000000000..a97617dfe --- /dev/null +++ b/make/gen_make/template/win32-msvc/win32lib.dsp @@ -0,0 +1,105 @@ +# Microsoft Developer Studio Project File - Name="$$MSVCDSP_PROJECT" - Package Owner=<4> +# Microsoft Developer Studio Generated Build File, Format Version $$MSVCDSP_VER +# ** DO NOT EDIT ** + +# TARGTYPE "Win32 (x86) Static Library" 0x0104 + +CFG=$$MSVCDSP_PROJECT - Win32 Debug +!MESSAGE This is not a valid makefile. To build this project using NMAKE, +!MESSAGE use the Export Makefile command and run +!MESSAGE +!MESSAGE NMAKE /f "$$MSVCDSP_PROJECT.mak". +!MESSAGE +!MESSAGE You can specify a configuration when running NMAKE +!MESSAGE by defining the macro CFG on the command line. For example: +!MESSAGE +!MESSAGE NMAKE /f "$$MSVCDSP_PROJECT.mak" CFG="$$MSVCDSP_PROJECT - Win32 Debug" +!MESSAGE +!MESSAGE Possible choices for configuration are: +!MESSAGE +!MESSAGE "$$MSVCDSP_PROJECT - Win32 Release" (based on "Win32 (x86) Static Library") +!MESSAGE "$$MSVCDSP_PROJECT - Win32 Debug" (based on "Win32 (x86) Static Library") +!MESSAGE + +# Begin Project +# PROP AllowPerConfigDependencies 0 +# PROP Scc_ProjName "" +# PROP Scc_LocalPath "" +CPP=cl.exe +RSC=rc.exe + +!IF "$(CFG)" == "$$MSVCDSP_PROJECT - Win32 Release" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 0 +# PROP BASE Output_Dir "Release" +# PROP BASE Intermediate_Dir "Release" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 0 +# PROP Output_Dir "Release" +# PROP Intermediate_Dir "Release" +# PROP Target_Dir "" +# ADD BASE CPP /nologo $$MSVCDSP_MTDEF /W3 /O1 /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" /FD /c +# ADD CPP /nologo $$MSVCDSP_MTDEF /W3 /O1 $$MSVCDSP_INCPATH /D "WIN32" /D "NDEBUG" /D "_MBCS" /D "_LIB" $$MSVCDSP_DEFINES /FD /c +# ADD BASE RSC /l 0x409 /d "NDEBUG" +# ADD RSC /l 0x409 /d "NDEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LIB32=link.exe -lib +# ADD BASE LIB32 /nologo +# ADD LIB32 /nologo $$MSVCDSP_TARGET + +!ELSEIF "$(CFG)" == "$$MSVCDSP_PROJECT - Win32 Debug" + +# PROP BASE Use_MFC 0 +# PROP BASE Use_Debug_Libraries 1 +# PROP BASE Output_Dir "Debug" +# PROP BASE Intermediate_Dir "Debug" +# PROP BASE Target_Dir "" +# PROP Use_MFC 0 +# PROP Use_Debug_Libraries 1 +# PROP Output_Dir "Debug" +# PROP Intermediate_Dir "Debug" +# PROP Target_Dir "" +# ADD BASE CPP /nologo $$MSVCDSP_MTDEF /W3 /Gm $$MSVCDSP_DEBUG_OPT /Od /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "_LIB" /FD /c +# ADD CPP /nologo $$MSVCDSP_MTDEF /W3 /Gm $$MSVCDSP_DEBUG_OPT /Od $$MSVCDSP_INCPATH /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "_LIB" $$MSVCDSP_DEFINES /FD /c +# ADD BASE RSC /l 0x409 /d "_DEBUG" +# ADD RSC /l 0x409 /d "_DEBUG" +BSC32=bscmake.exe +# ADD BASE BSC32 /nologo +# ADD BSC32 /nologo +LIB32=link.exe -lib +# ADD BASE LIB32 /nologo +# ADD LIB32 /nologo $$MSVCDSP_TARGET + +!ENDIF + +# Begin Target + +# Name "$$MSVCDSP_PROJECT - Win32 Release" +# Name "$$MSVCDSP_PROJECT - Win32 Debug" +# Begin Group "Source Files" + +# PROP Default_Filter "cpp;c;cxx;rc;def;r;odl;idl;hpj;bat" +$$MSVCDSP_SOURCES +$$MSVCDSP_INTERFACESOURCES +# End Group +# Begin Group "Header Files" + +# PROP Default_Filter "h;hpp;hxx;hm;inl" +$$MSVCDSP_HEADERS +$$MSVCDSP_INTERFACEHEADERS +# End Group +# Begin Group "Resource Files" + +# PROP Default_Filter "ico;cur;bmp;dlg;rc2;rct;bin;rgs;gif;jpg;jpeg;jpe" +# End Group +# Begin Group "Interfaces" +$$MSVCDSP_INTERFACES + +# Prop Default_Filter "ui" +# End Group +# End Target +# End Project diff --git a/make/gen_make/template/win32-symantec/app.t b/make/gen_make/template/win32-symantec/app.t new file mode 100644 index 000000000..fc4dc2c79 --- /dev/null +++ b/make/gen_make/template/win32-symantec/app.t @@ -0,0 +1,6 @@ +############################################################################# +#! +#! This is a tmake template for building Win32 applications. +#! +#$ Project('TMAKE_APP_FLAG = 1'); +#$ IncludeTemplate("generic.t"); diff --git a/make/gen_make/template/win32-symantec/generic.t b/make/gen_make/template/win32-symantec/generic.t new file mode 100644 index 000000000..318047303 --- /dev/null +++ b/make/gen_make/template/win32-symantec/generic.t @@ -0,0 +1,227 @@ +#! +#! This is a tmake template for building Win32 applications or libraries. +#! +#${ + Project('CONFIG += qt') if Config("qt_dll"); + if ( Config("qt") ) { + if ( !(Project("DEFINES") =~ /QT_NODLL/) && + ((Project("DEFINES") =~ /QT_(?:MAKE)?DLL/) || Config("qt_dll") || + ($ENV{"QT_DLL"} && !$ENV{"QT_NODLL"})) ) { + Project('TMAKE_QT_DLL = 1'); + if ( (Project("TARGET") eq "qt") && Project("TMAKE_LIB_FLAG") ) { + Project('CONFIG += dll'); + } + } + } + if ( Config("dll") || Project("TMAKE_APP_FLAG") ) { + Project('CONFIG -= staticlib'); + Project('TMAKE_APP_OR_DLL = 1'); + } else { + Project('CONFIG += staticlib'); + } + if ( Config("warn_off") ) { + Project('TMAKE_CFLAGS += $$TMAKE_CFLAGS_WARN_OFF'); + Project('TMAKE_CXXFLAGS += $$TMAKE_CXXFLAGS_WARN_OFF'); + } elsif ( Config("warn_on") ) { + Project('TMAKE_CFLAGS += $$TMAKE_CFLAGS_WARN_ON'); + Project('TMAKE_CXXFLAGS += $$TMAKE_CXXFLAGS_WARN_ON'); + } + if ( Config("debug") ) { + Project('TMAKE_CFLAGS += $$TMAKE_CFLAGS_DEBUG'); + Project('TMAKE_CXXFLAGS += $$TMAKE_CXXFLAGS_DEBUG'); + Project('TMAKE_LFLAGS += $$TMAKE_LFLAGS_DEBUG'); + } elsif ( Config("release") ) { + Project('TMAKE_CFLAGS += $$TMAKE_CFLAGS_RELEASE'); + Project('TMAKE_CXXFLAGS += $$TMAKE_CXXFLAGS_RELEASE'); + Project('TMAKE_LFLAGS += $$TMAKE_LFLAGS_RELEASE'); + } + if ( Project("TMAKE_INCDIR") ) { + AddIncludePath(Project("TMAKE_INCDIR")); + } + if ( Config("qt") || Config("opengl") ) { + Project('CONFIG += windows' ); + } + if ( Config("qt") ) { + Project('CONFIG *= moc'); + AddIncludePath(Project("TMAKE_INCDIR_QT")); + if ( !Config("debug") ) { + Project('DEFINES += NO_DEBUG'); + } + if ( (Project("TARGET") eq "qt") && Project("TMAKE_LIB_FLAG") ) { + if ( Project("TMAKE_QT_DLL") ) { + Project('DEFINES *= QT_MAKEDLL'); + Project('TMAKE_LFLAGS += $$TMAKE_LFLAGS_QT_DLL'); + } + } else { + Project('TMAKE_LIBS *= $$TMAKE_LIBS_QT'); + if ( Project("TMAKE_QT_DLL") ) { + my $qtver =FindHighestLibVersion($ENV{"QTDIR"} . "/lib", "qt"); + Project("TMAKE_LIBS /= s/qt.lib/qt${qtver}.lib/"); + if ( !Config("dll") ) { + Project('TMAKE_LIBS *= $$TMAKE_LIBS_QT_DLL'); + } + } + } + } + if ( Config("opengl") ) { + Project('TMAKE_LIBS *= $$TMAKE_LIBS_OPENGL'); + } + if ( Config("dll") ) { + Project('TMAKE_LFLAGS_CONSOLE_ANY = $$TMAKE_LFLAGS_CONSOLE_DLL'); + Project('TMAKE_LFLAGS_WINDOWS_ANY = $$TMAKE_LFLAGS_WINDOWS_DLL'); + if ( Project("TMAKE_LIB_FLAG") ) { + my $ver = Project("VERSION"); + $ver =~ s/\.//g; + $project{"TARGET_EXT"} = "${ver}.dll"; + } else { + $project{"TARGET_EXT"} = ".dll"; + } + } else { + Project('TMAKE_LFLAGS_CONSOLE_ANY = $$TMAKE_LFLAGS_CONSOLE'); + Project('TMAKE_LFLAGS_WINDOWS_ANY = $$TMAKE_LFLAGS_WINDOWS'); + if ( Project("TMAKE_APP_FLAG") ) { + $project{"TARGET_EXT"} = ".exe"; + } else { + $project{"TARGET_EXT"} = ".lib"; + } + } + if ( Config("windows") ) { + if ( Config("console") ) { + Project('TMAKE_LFLAGS *= $$TMAKE_LFLAGS_CONSOLE_ANY'); + Project('TMAKE_LIBS *= $$TMAKE_LIBS_CONSOLE'); + } else { + Project('TMAKE_LFLAGS *= $$TMAKE_LFLAGS_WINDOWS_ANY'); + } + Project('TMAKE_LIBS *= $$TMAKE_LIBS_WINDOWS'); + } else { + Project('TMAKE_LFLAGS *= $$TMAKE_LFLAGS_CONSOLE_ANY'); + Project('TMAKE_LIBS *= $$TMAKE_LIBS_CONSOLE'); + } + if ( Config("moc") ) { + $moc_aware = 1; + } + Project('TMAKE_LIBS += $$LIBS'); + Project('TMAKE_FILETAGS = HEADERS SOURCES DEF_FILE RC_FILE TARGET TMAKE_LIBS DESTDIR DLLDESTDIR $$FILETAGS'); + foreach ( split(/\s/,Project("TMAKE_FILETAGS")) ) { + $project{$_} =~ s-[/\\]+-\\-g; + } + if ( Project("DEF_FILE") ) { + Project('TMAKE_LFLAGS *= /DEF:$$DEF_FILE'); + } + if ( Project("RC_FILE") ) { + if ( Project("RES_FILE") ) { + tmake_error("Both .rc and .res file specified.\n" . + "Please specify one of them, not both."); + } + $project{"RES_FILE"} = $project{"RC_FILE"}; + $project{"RES_FILE"} =~ s/\.rc$/.res/i; + Project('TARGETDEPS += $$RES_FILE'); + } + if ( Project("RES_FILE") ) { + Project('TMAKE_LIBS *= $$RES_FILE'); + } + StdInit(); + if ( Project("VERSION") ) { + $project{"VER_MAJ"} = $project{"VERSION"}; + $project{"VER_MAJ"} =~ s/\.\d+$//; + $project{"VER_MIN"} = $project{"VERSION"}; + $project{"VER_MIN"} =~ s/^\d+\.//; + } +#$} +#! +# Makefile for building #$ Expand("TARGET") +# Generated by tmake; +# Project: #$ Expand("PROJECT"); +# Template: #$ Expand("TEMPLATE"); +############################################################################# + +####### Compiler, tools and options + +CC = #$ Expand("TMAKE_CC"); +CXX = #$ Expand("TMAKE_CXX"); +CFLAGS = #$ Expand("TMAKE_CFLAGS"); ExpandGlue("DEFINES","-D"," -D",""); +CXXFLAGS= #$ Expand("TMAKE_CXXFLAGS"); ExpandGlue("DEFINES","-D"," -D",""); +INCPATH = #$ ExpandPath("INCPATH",'-I',' -I',''); +#$ !Project("TMAKE_APP_OR_DLL") && DisableOutput(); +LINK = #$ Expand("TMAKE_LINK"); +LFLAGS = #$ Expand("TMAKE_LFLAGS"); +LIBS = #$ Expand("TMAKE_LIBS"); +#$ !Project("TMAKE_APP_OR_DLL") && EnableOutput(); +#$ Project("TMAKE_APP_OR_DLL") && DisableOutput(); +LIB = #$ Expand("TMAKE_LIB"); +#$ Project("TMAKE_APP_OR_DLL") && EnableOutput(); +MOC = #$ Expand("TMAKE_MOC"); + +ZIP = #$ Expand("TMAKE_ZIP"); + +####### Files + +HEADERS = #$ ExpandList("HEADERS"); +SOURCES = #$ ExpandList("SOURCES"); +OBJECTS = #$ ExpandList("OBJECTS"); +SRCMOC = #$ ExpandList("SRCMOC"); +OBJMOC = #$ ExpandList("OBJMOC"); +DIST = #$ ExpandList("DISTFILES"); +TARGET = #$ ExpandGlue("TARGET",$project{"DESTDIR"},"",$project{"TARGET_EXT"}); + +####### Implicit rules + +.SUFFIXES: .cpp .cxx .cc .c + +.cpp.obj: + #$ Expand("TMAKE_RUN_CXX_IMP"); + +.cxx.obj: + #$ Expand("TMAKE_RUN_CXX_IMP"); + +.cc.obj: + #$ Expand("TMAKE_RUN_CXX_IMP"); + +.c.obj: + #$ Expand("TMAKE_RUN_CC_IMP"); + +####### Build rules + +all: #$ ExpandGlue("ALL_DEPS",""," "," "); $text .= '$(TARGET)'; + +$(TARGET): $(OBJECTS) $(OBJMOC) #$ Expand("TARGETDEPS"); +#$ Project("TMAKE_APP_OR_DLL") || DisableOutput(); + $(LINK) $(LFLAGS) $(OBJECTS) $(OBJMOC), $(TARGET),, $(LIBS) +#$ Project("TMAKE_APP_OR_DLL") || EnableOutput(); +#$ Project("TMAKE_APP_OR_DLL") && DisableOutput(); + -del $(TARGET) +#${ +# $text = "\t\$(LIB) \$(TARGET) " +# . join(" \\\n+",split(/\s+/,$project{"OBJECTS"})) . " \\\n+" +# . join(" \\\n+",split(/\s+/,$project{"OBJMOC"})) . ",;"; +#$} +#$ Project("TMAKE_APP_OR_DLL") && EnableOutput(); +#$ (Config("dll") && Project("DLLDESTDIR")) || DisableOutput(); + -copy $(TARGET) #$ Expand("DLLDESTDIR"); +#$ (Config("dll") && Project("DLLDESTDIR")) || EnableOutput(); +#$ Project("RC_FILE") || DisableOutput(); + +#$ Substitute("\$\$RES_FILE: \$\$RC_FILE\n\t\$\$TMAKE_RC \$\$RC_FILE"); +#$ Project("RC_FILE") || EnableOutput(); + +moc: $(SRCMOC) + +#$ TmakeSelf(); + +dist: + #$ Substitute('$(ZIP) $$PROJECT.zip $$PROJECT.pro $(SOURCES) $(HEADERS) $(DIST)'); + +clean: + #$ ExpandGlue("OBJECTS","-del ","\n\t-del ",""); + #$ ExpandGlue("SRCMOC" ,"-del ","\n\t-del ",""); + #$ ExpandGlue("OBJMOC" ,"-del ","\n\t-del ",""); + -del $(TARGET) + #$ ExpandGlue("TMAKE_CLEAN","-del ","\n\t-del ",""); + #$ ExpandGlue("CLEAN_FILES","-del ","\n\t-del ",""); + +####### Compile + +#$ BuildObj(Project("OBJECTS"),Project("SOURCES")); +#$ BuildMocObj(Project("OBJMOC"),Project("SRCMOC")); +#$ BuildMocSrc(Project("HEADERS")); +#$ BuildMocSrc(Project("SOURCES")); diff --git a/make/gen_make/template/win32-symantec/lib.t b/make/gen_make/template/win32-symantec/lib.t new file mode 100644 index 000000000..d8ac6c7a7 --- /dev/null +++ b/make/gen_make/template/win32-symantec/lib.t @@ -0,0 +1,6 @@ +############################################################################# +#! +#! This is a tmake template for building Win32 libraries. +#! +#$ Project('TMAKE_LIB_FLAG = 1'); +#$ IncludeTemplate("generic.t"); diff --git a/make/gen_make/template/win32-symantec/subdirs.t b/make/gen_make/template/win32-symantec/subdirs.t new file mode 100644 index 000000000..8b881ab55 --- /dev/null +++ b/make/gen_make/template/win32-symantec/subdirs.t @@ -0,0 +1,2 @@ +#! Use the common Win32 template +#$ IncludeTemplate("../win32/subdirs.t"); diff --git a/make/gen_make/template/win32-symantec/tmake.conf b/make/gen_make/template/win32-symantec/tmake.conf new file mode 100644 index 000000000..656a8561a --- /dev/null +++ b/make/gen_make/template/win32-symantec/tmake.conf @@ -0,0 +1,56 @@ +# +# $Id$ +# +# tmake configuration for Win32/Symantec C++ +# + +TEMPLATE = app +CONFIG = qt warn_on release + +TMAKE_CC = sc +TMAKE_CFLAGS = -mn -w2 +TMAKE_CFLAGS_WARN_ON = +TMAKE_CFLAGS_WARN_OFF = -w +TMAKE_CFLAGS_RELEASE = -o +TMAKE_CFLAGS_DEBUG = -g +TMAKE_CFLAGS_YACC = + +TMAKE_CXX = $$TMAKE_CC +TMAKE_CXXFLAGS = $$TMAKE_CFLAGS +TMAKE_CXXFLAGS_WARN_ON = $$TMAKE_CFLAGS_WARN_ON +TMAKE_CXXFLAGS_WARN_OFF = $$TMAKE_CFLAGS_WARN_OFF +TMAKE_CXXFLAGS_RELEASE = $$TMAKE_CFLAGS_RELEASE +TMAKE_CXXFLAGS_DEBUG = $$TMAKE_CFLAGS_DEBUG +TMAKE_CXXFLAGS_YACC = $$TMAKE_CFLAGS_YACC + +TMAKE_INCDIR = +TMAKE_INCDIR_QT = $(QTDIR)\include + +TMAKE_RUN_CC = $(CC) -c $(CFLAGS) $(INCPATH) -o$obj $src +TMAKE_RUN_CC_IMP = $(CC) -c $(CFLAGS) $(INCPATH) -o$@ $< +TMAKE_RUN_CXX = $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$obj $src +TMAKE_RUN_CXX_IMP = $(CXX) -c $(CXXFLAGS) $(INCPATH) -o$@ $< + +TMAKE_LINK = link +TMAKE_LFLAGS = /NOLOGO /NOI +TMAKE_LFLAGS_RELEASE = +TMAKE_LFLAGS_DEBUG = /DEBUG +TMAKE_LFLAGS_CONSOLE = /SUBSYSTEM:console +TMAKE_LFLAGS_WINDOWS = /SUBSYSTEM:windows +TMAKE_LFLAGS_CONSOLE_DLL= /SUBSYSTEM:console /DLL +TMAKE_LFLAGS_WINDOWS_DLL= /SUBSYSTEM:windows /DLL + +TMAKE_LIBS = +TMAKE_LIBS_CONSOLE = +TMAKE_LIBS_WINDOWS = user32.lib gdi32.lib comdlg32.lib imm32.lib winmm.lib ole32.lib uuid.lib wsock32.lib +TMAKE_LIBS_QT = $(QTDIR)\lib\qt.lib +TMAKE_LIBS_QT_DLL = $(QTDIR)\lib\qtmain.lib + +TMAKE_LIBS_OPENGL = opengl32.lib + +TMAKE_MOC = moc + +TMAKE_LIB = lib /C /N /NOI /P:32 +TMAKE_RC = rc + +TMAKE_ZIP = zip -r -9 diff --git a/make/gen_make/template/win32-watcom/app.t b/make/gen_make/template/win32-watcom/app.t new file mode 100644 index 000000000..fc4dc2c79 --- /dev/null +++ b/make/gen_make/template/win32-watcom/app.t @@ -0,0 +1,6 @@ +############################################################################# +#! +#! This is a tmake template for building Win32 applications. +#! +#$ Project('TMAKE_APP_FLAG = 1'); +#$ IncludeTemplate("generic.t"); diff --git a/make/gen_make/template/win32-watcom/generic.t b/make/gen_make/template/win32-watcom/generic.t new file mode 100644 index 000000000..ca622ee94 --- /dev/null +++ b/make/gen_make/template/win32-watcom/generic.t @@ -0,0 +1,218 @@ +#! +#! This is a tmake template for building Win32 applications or libraries. +#! +#${ + Project('CONFIG += qt') if Config("qt_dll"); + if ( Config("qt") ) { + if ( !(Project("DEFINES") =~ /QT_NODLL/) && + ((Project("DEFINES") =~ /QT_(?:MAKE)?DLL/) || Config("qt_dll") || + ($ENV{"QT_DLL"} && !$ENV{"QT_NODLL"})) ) { + Project('TMAKE_QT_DLL = 1'); + if ( (Project("TARGET") eq "qt") && Project("TMAKE_LIB_FLAG") ) { + Project('CONFIG += dll'); + } + } + } + if ( Config("dll") || Project("TMAKE_APP_FLAG") ) { + Project('CONFIG -= staticlib'); + Project('TMAKE_APP_OR_DLL = 1'); + } else { + Project('CONFIG += staticlib'); + } + if ( Config("warn_off") ) { + Project('TMAKE_CFLAGS += $$TMAKE_CFLAGS_WARN_OFF'); + Project('TMAKE_CXXFLAGS += $$TMAKE_CXXFLAGS_WARN_OFF'); + } elsif ( Config("warn_on") ) { + Project('TMAKE_CFLAGS += $$TMAKE_CFLAGS_WARN_ON'); + Project('TMAKE_CXXFLAGS += $$TMAKE_CXXFLAGS_WARN_ON'); + } + if ( Config("debug") ) { + Project('TMAKE_CFLAGS += $$TMAKE_CFLAGS_DEBUG'); + Project('TMAKE_CXXFLAGS += $$TMAKE_CXXFLAGS_DEBUG'); + Project('TMAKE_LFLAGS += $$TMAKE_LFLAGS_DEBUG'); + } elsif ( Config("release") ) { + Project('TMAKE_CFLAGS += $$TMAKE_CFLAGS_RELEASE'); + Project('TMAKE_CXXFLAGS += $$TMAKE_CXXFLAGS_RELEASE'); + Project('TMAKE_LFLAGS += $$TMAKE_LFLAGS_RELEASE'); + } + if ( Project("TMAKE_INCDIR") ) { + AddIncludePath(Project("TMAKE_INCDIR")); + } + if ( Config("qt") || Config("opengl") ) { + Project('CONFIG += windows' ); + } + if ( Config("qt") ) { + Project('CONFIG *= moc'); + AddIncludePath(Project("TMAKE_INCDIR_QT")); + if ( !Config("debug") ) { + Project('DEFINES += NO_DEBUG'); + } + if ( (Project("TARGET") eq "qt") && Project("TMAKE_LIB_FLAG") ) { + if ( Project("TMAKE_QT_DLL") ) { + Project('DEFINES *= QT_MAKEDLL'); + Project('TMAKE_LFLAGS += $$TMAKE_LFLAGS_QT_DLL'); + } + } else { + Project('TMAKE_LIBS *= $$TMAKE_LIBS_QT'); + if ( Project("TMAKE_QT_DLL") ) { + my $qtver =FindHighestLibVersion($ENV{"QTDIR"} . "/lib", "qt"); + Project("TMAKE_LIBS /= s/qt.lib/qt${qtver}.lib/"); + if ( !Config("dll") ) { + Project('TMAKE_LIBS *= $$TMAKE_LIBS_QT_DLL'); + } + } + } + } + if ( Config("opengl") ) { + Project('TMAKE_LIBS *= $$TMAKE_LIBS_OPENGL'); + } + if ( Config("dll") ) { + Project('TMAKE_LFLAGS_CONSOLE_ANY = $$TMAKE_LFLAGS_CONSOLE_DLL'); + Project('TMAKE_LFLAGS_WINDOWS_ANY = $$TMAKE_LFLAGS_WINDOWS_DLL'); + if ( Project("TMAKE_LIB_FLAG") ) { + my $ver = Project("VERSION"); + $ver =~ s/\.//g; + $project{"TARGET_EXT"} = "${ver}.dll"; + } else { + $project{"TARGET_EXT"} = ".dll"; + } + } else { + Project('TMAKE_LFLAGS_CONSOLE_ANY = $$TMAKE_LFLAGS_CONSOLE'); + Project('TMAKE_LFLAGS_WINDOWS_ANY = $$TMAKE_LFLAGS_WINDOWS'); + if ( Project("TMAKE_APP_FLAG") ) { + $project{"TARGET_EXT"} = ".exe"; + } else { + $project{"TARGET_EXT"} = ".lib"; + } + } + if ( Config("windows") ) { + if ( Config("console") ) { + Project('TMAKE_LFLAGS *= $$TMAKE_LFLAGS_CONSOLE_ANY'); + Project('TMAKE_LIBS *= $$TMAKE_LIBS_CONSOLE'); + } else { + Project('TMAKE_LFLAGS *= $$TMAKE_LFLAGS_WINDOWS_ANY'); + } + Project('TMAKE_LIBS *= $$TMAKE_LIBS_WINDOWS'); + } else { + Project('TMAKE_LFLAGS *= $$TMAKE_LFLAGS_CONSOLE_ANY'); + Project('TMAKE_LIBS *= $$TMAKE_LIBS_CONSOLE'); + } + if ( Config("moc") ) { + $moc_aware = 1; + } + Project('TMAKE_LIBS += $$LIBS'); + Project('TMAKE_FILETAGS = HEADERS SOURCES DEF_FILE RC_FILE TARGET TMAKE_LIBS DESTDIR DLLDESTDIR $$FILETAGS'); + foreach ( split(/\s/,Project("TMAKE_FILETAGS")) ) { + $project{$_} =~ s-[/\\]+-\\-g; + } + if ( Project("DEF_FILE") ) { + Project('TMAKE_LFLAGS *= /DEF:$$DEF_FILE'); + } + if ( Project("RC_FILE") ) { + if ( Project("RES_FILE") ) { + tmake_error("Both .rc and .res file specified.\n" . + "Please specify one of them, not both."); + } + $project{"RES_FILE"} = $project{"RC_FILE"}; + $project{"RES_FILE"} =~ s/\.rc$/.res/i; + Project('TARGETDEPS += $$RES_FILE'); + } + if ( Project("RES_FILE") ) { + Project('TMAKE_LIBS *= $$RES_FILE'); + } + $linebreak = '&'; + StdInit(); + if ( Project("VERSION") ) { + $project{"VER_MAJ"} = $project{"VERSION"}; + $project{"VER_MAJ"} =~ s/\.\d+$//; + $project{"VER_MIN"} = $project{"VERSION"}; + $project{"VER_MIN"} =~ s/^\d+\.//; + } +#$} +#! +# Makefile for building #$ Expand("TARGET") +# Generated by tmake; +# Project: #$ Expand("PROJECT"); +# Template: #$ Expand("TEMPLATE"); +############################################################################# + +####### Compiler, tools and options + +#$ Config("qt") || DisableOutput(); +QTDIR = #$ $text = $ENV{"QTDIR"}; +#$ Config("qt") || EnableOutput(); +CC = #$ Expand("TMAKE_CC"); +CXX = #$ Expand("TMAKE_CXX"); +CFLAGS = #$ Expand("TMAKE_CFLAGS"); ExpandGlue("DEFINES","-d="," -d=",""); +CXXFLAGS= #$ Expand("TMAKE_CXXFLAGS"); ExpandGlue("DEFINES","-d="," -d=",""); +INCPATH = #$ ExpandPath("INCPATH",'-i=',' -i=',''); +#$ !Project("TMAKE_APP_OR_DLL") && DisableOutput(); +LINK = #$ Expand("TMAKE_LINK"); +LFLAGS = #$ Expand("TMAKE_LFLAGS"); +LIBS = #$ Expand("TMAKE_LIBS"); +#$ !Project("TMAKE_APP_OR_DLL") && EnableOutput(); +#$ Project("TMAKE_APP_OR_DLL") && DisableOutput(); +LIB = #$ Expand("TMAKE_LIB"); +#$ Project("TMAKE_APP_OR_DLL") && EnableOutput(); +MOC = #$ Expand("TMAKE_MOC"); + +ZIP = #$ Expand("TMAKE_ZIP"); + +####### Files + +HEADERS = #$ ExpandList("HEADERS"); +SOURCES = #$ ExpandList("SOURCES"); +OBJECTS = #$ ExpandList("OBJECTS"); +SRCMOC = #$ ExpandList("SRCMOC"); +OBJMOC = #$ ExpandList("OBJMOC"); +DIST = #$ ExpandList("DISTFILES"); +TARGET = #$ ExpandGlue("TARGET",$project{"DESTDIR"},"",$project{"TARGET_EXT"}); +TMPLIST = #$ ExpandGlue("TARGET","","",".lst"); + +####### Build rules + +all: #$ ExpandGlue("ALL_DEPS",""," "," "); $text .= '$(TARGET)'; + +$(TARGET): $(OBJECTS) $(OBJMOC) #$ Expand("TARGETDEPS"); + @%create $(TMPLIST) +#$ Project("TMAKE_APP_OR_DLL") || DisableOutput(); + @%append $(TMPLIST) NAME #$ Expand("TARGET"); + #$ ExpandGlue("OBJECTS",'@%append $(TMPLIST) FIL ',",",""); + #$ ExpandGlue("OBJMOC" ,'@%append $(TMPLIST) FIL ',",",""); + #$ ExpandGlue("TMAKE_LIBS" ,'@%append $(TMPLIST) LIBR ',",",""); + $(LINK) $(LFLAGS) @$(TMPLIST) +#$ Project("TMAKE_APP_OR_DLL") || EnableOutput(); +#$ Project("TMAKE_APP_OR_DLL") && DisableOutput(); + @for %i in ( $(OBJECTS) $(OBJMOC) ) do @%append $(TMPLIST) +'%i' + $(LIB) $(TARGET) @$(TMPLIST) +#$ Project("TMAKE_APP_OR_DLL") && EnableOutput(); + del $(TMPLIST) +#$ (Config("dll") && Project("DLLDESTDIR")) || DisableOutput(); + -copy $(TARGET) #$ Expand("DLLDESTDIR"); +#$ (Config("dll") && Project("DLLDESTDIR")) || EnableOutput(); +#$ Project("RC_FILE") || DisableOutput(); + +#$ Substitute("\$\$RES_FILE: \$\$RC_FILE\n\t\$\$TMAKE_RC \$\$RC_FILE"); +#$ Project("RC_FILE") || EnableOutput(); + +moc: $(SRCMOC) + +#$ TmakeSelf(); + +dist: + #$ Substitute('$(ZIP) $$PROJECT.zip $$PROJECT.pro $(SOURCES) $(HEADERS) $(DIST)'); + +clean: + #$ ExpandGlue("OBJECTS","-del ","\n\t-del ",""); + #$ ExpandGlue("SRCMOC" ,"-del ","\n\t-del ",""); + #$ ExpandGlue("OBJMOC" ,"-del ","\n\t-del ",""); + -del $(TARGET) + #$ ExpandGlue("TMAKE_CLEAN","-del ","\n\t-del ",""); + #$ ExpandGlue("CLEAN_FILES","-del ","\n\t-del ",""); + +####### Compile + +#$ BuildObj(Project("OBJECTS"),Project("SOURCES")); +#$ BuildMocObj(Project("OBJMOC"),Project("SRCMOC")); +#$ BuildMocSrc(Project("HEADERS")); +#$ BuildMocSrc(Project("SOURCES")); diff --git a/make/gen_make/template/win32-watcom/lib.t b/make/gen_make/template/win32-watcom/lib.t new file mode 100644 index 000000000..d8ac6c7a7 --- /dev/null +++ b/make/gen_make/template/win32-watcom/lib.t @@ -0,0 +1,6 @@ +############################################################################# +#! +#! This is a tmake template for building Win32 libraries. +#! +#$ Project('TMAKE_LIB_FLAG = 1'); +#$ IncludeTemplate("generic.t"); diff --git a/make/gen_make/template/win32-watcom/subdirs.t b/make/gen_make/template/win32-watcom/subdirs.t new file mode 100644 index 000000000..8b881ab55 --- /dev/null +++ b/make/gen_make/template/win32-watcom/subdirs.t @@ -0,0 +1,2 @@ +#! Use the common Win32 template +#$ IncludeTemplate("../win32/subdirs.t"); diff --git a/make/gen_make/template/win32-watcom/tmake.conf b/make/gen_make/template/win32-watcom/tmake.conf new file mode 100644 index 000000000..9c8c6c9a3 --- /dev/null +++ b/make/gen_make/template/win32-watcom/tmake.conf @@ -0,0 +1,54 @@ +# +# $Id$ +# +# tmake configuration for Win32/Watcom C++ +# + +TEMPLATE = app +CONFIG = qt warn_on release + +TMAKE_CC = wcl386 +TMAKE_CFLAGS = -zq +TMAKE_CFLAGS_WARN_ON = -w2 +TMAKE_CFLAGS_WARN_OFF = -w0 +TMAKE_CFLAGS_RELEASE = -ox +TMAKE_CFLAGS_DEBUG = -d2 +TMAKE_CFLAGS_YACC = + +TMAKE_CXX = $$TMAKE_CC +TMAKE_CXXFLAGS = $$TMAKE_CFLAGS +TMAKE_CXXFLAGS_WARN_ON = $$TMAKE_CFLAGS_WARN_ON +TMAKE_CXXFLAGS_WARN_OFF = $$TMAKE_CFLAGS_WARN_OFF +TMAKE_CXXFLAGS_RELEASE = $$TMAKE_CFLAGS_RELEASE +TMAKE_CXXFLAGS_DEBUG = $$TMAKE_CFLAGS_DEBUG +TMAKE_CXXFLAGS_YACC = $$TMAKE_CFLAGS_YACC + +TMAKE_INCDIR = +TMAKE_INCDIR_QT = $(QTDIR)\include + +TMAKE_RUN_CC = $(CC) -c $(CFLAGS) $(INCPATH) -fo=$obj $src +TMAKE_RUN_CXX = $(CXX) -c $(CXXFLAGS) $(INCPATH) -fo=$obj $src + +TMAKE_LINK = wlink +TMAKE_LFLAGS = op quiet op c +TMAKE_LFLAGS_RELEASE = +TMAKE_LFLAGS_DEBUG = d all +TMAKE_LFLAGS_CONSOLE = sys nt +TMAKE_LFLAGS_WINDOWS = sys nt_win +TMAKE_LFLAGS_CONSOLE_DLL= sys nt +TMAKE_LFLAGS_WINDOWS_DLL= sys nt_win + +TMAKE_LIBS = +TMAKE_LIBS_CONSOLE = +TMAKE_LIBS_WINDOWS = +TMAKE_LIBS_QT = %QTDIR%\lib\qt.lib +TMAKE_LIBS_QT_DLL = %QTDIR%\lib\qtmain.lib + +TMAKE_LIBS_OPENGL = opengl32.lib + +TMAKE_MOC = moc + +TMAKE_LIB = wlib -b -c -n -q -p=512 +TMAKE_RC = rc + +TMAKE_ZIP = zip -r -9 diff --git a/make/gen_make/template/win32/subdirs.t b/make/gen_make/template/win32/subdirs.t new file mode 100644 index 000000000..2141b6037 --- /dev/null +++ b/make/gen_make/template/win32/subdirs.t @@ -0,0 +1,54 @@ +############################################################################# +#! +#! This is a tmake template for creating a makefile that invokes make in +#! sub directories - for Win32. +#! +#${ + StdInit(); + $m = ""; + foreach ( split(/\s+/,$project{"SUBDIRS"}) ) { + $m = $m . "\tcd $_\n\tDOMAKE\n\t\@cd ..\n"; + } + $project{"SUBMAKE"} = $m; + Project('MAKEFILE') || Project('MAKEFILE = Makefile'); + Project('TMAKE') || Project('TMAKE = tmake'); +#$} +#! +# Makefile for building targets in sub directories. +# Generated by tmake; +# Project: #$ Expand("PROJECT"); +# Template: #$ Expand("TEMPLATE"); +############################################################################# + +MAKEFILE= #$ Expand("MAKEFILE"); +TMAKE = #$ Expand("TMAKE"); + +SUBDIRS = #$ ExpandList("SUBDIRS"); + +all: $(SUBDIRS) + +#${ + foreach ( split(/\s+/,$project{"SUBDIRS"}) ) { + if ( Project("TMAKE_NOFORCE") ) { + $text = $text . $_ . ":\n\t" . + "cd $_\n\t\$(MAKE\)\n\t\@cd ..\n\n"; + } else { + $text = $text . $_ . ": FORCE\n\t" . + "cd $_\n\t\$(MAKE\)\n\t\@cd ..\n\n"; + } + } +#$} +#$ TmakeSelf(); + +tmake_all: +#${ + foreach ( split(/\s+/,$project{"SUBDIRS"}) ) { + $text .= "\tcd $_\n\t\$(TMAKE\) $_.pro -o \$(MAKEFILE)\n\t\@cd ..\n"; + } +#$} + +clean: +#$ $text = $project{"SUBMAKE"}; $text =~ s/DOMAKE/\$(MAKE\) clean/g; +#$ Project("TMAKE_NOFORCE") && DisableOutput(); +FORCE: +#$ Project("TMAKE_NOFORCE") && EnableOutput(); diff --git a/src/Makefile.am b/src/Makefile.am new file mode 100644 index 000000000..12bc5b63a --- /dev/null +++ b/src/Makefile.am @@ -0,0 +1,14 @@ +AUTOMAKE_OPTIONS = foreign 1.4 +SUBDIRS = ta_abstract ta_common ta_func + +lib_LTLIBRARIES = libta_lib.la + +libta_lib_la_SOURCES = + +libta_lib_la_LIBADD = \ + ta_abstract/libta_abstract.la \ + ta_func/libta_func.la \ + ta_common/libta_common.la + +libta_lib_la_LDFLAGS = -version-info $(TALIB_LIBRARY_VERSION) + diff --git a/src/ta_abstract/Makefile.am b/src/ta_abstract/Makefile.am new file mode 100644 index 000000000..cba69bbc3 --- /dev/null +++ b/src/ta_abstract/Makefile.am @@ -0,0 +1,49 @@ + +noinst_LTLIBRARIES = libta_abstract.la libta_abstract_gc.la + +libta_abstract_la_SOURCES = ta_group_idx.c \ + ta_def_ui.c \ + ta_abstract.c \ + ta_func_api.c \ + frames/ta_frame.c \ + tables/table_a.c \ + tables/table_b.c \ + tables/table_c.c \ + tables/table_d.c \ + tables/table_e.c \ + tables/table_f.c \ + tables/table_g.c \ + tables/table_h.c \ + tables/table_i.c \ + tables/table_j.c \ + tables/table_k.c \ + tables/table_l.c \ + tables/table_m.c \ + tables/table_n.c \ + tables/table_o.c \ + tables/table_p.c \ + tables/table_q.c \ + tables/table_r.c \ + tables/table_s.c \ + tables/table_t.c \ + tables/table_u.c \ + tables/table_v.c \ + tables/table_w.c \ + tables/table_x.c \ + tables/table_y.c \ + tables/table_z.c + +libta_abstract_gc_la_SOURCES = $(libta_abstract_la_SOURCES) + +libta_abstract_la_LDFLAGS = -version-info $(TALIB_LIBRARY_VERSION) +libta_abstract_gc_la_LDFLAGS = $(libta_abstract_la_LDFLAGS) + +libta_abstract_la_CPPFLAGS = -I../ta_common/ -Iframes/ + +# The 'gc' version is a minimal version used to just to compile gen_code +libta_abstract_gc_la_CPPFLAGS = -DTA_GEN_CODE $(libta_abstract_la_CPPFLAGS) + +libta_abstractdir=$(includedir)/ta-lib/ +libta_abstract_HEADERS = ../../include/ta_defs.h \ + ../../include/ta_libc.h \ + ../../include/ta_abstract.h diff --git a/src/ta_abstract/excel_glue.c b/src/ta_abstract/excel_glue.c new file mode 100644 index 000000000..043ed2662 --- /dev/null +++ b/src/ta_abstract/excel_glue.c @@ -0,0 +1,202 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* DO NOT MODIFY this file. + * This file is automatically generated by gen_code. + * + * If you are not re-building the excel library (which is most + * likely the case), just ignore this file. + */ + +EXCEL_GLUE_CODE_WITH_1_PARAM(ACOS) +EXCEL_GLUE_CODE_WITH_4_PARAM(AD) +EXCEL_GLUE_CODE_WITH_2_PARAM(ADD) +EXCEL_GLUE_CODE_WITH_6_PARAM(ADOSC) +EXCEL_GLUE_CODE_WITH_4_PARAM(ADX) +EXCEL_GLUE_CODE_WITH_4_PARAM(ADXR) +EXCEL_GLUE_CODE_WITH_4_PARAM(APO) +EXCEL_GLUE_CODE_WITH_3_PARAM(AROON) +EXCEL_GLUE_CODE_WITH_3_PARAM(AROONOSC) +EXCEL_GLUE_CODE_WITH_1_PARAM(ASIN) +EXCEL_GLUE_CODE_WITH_1_PARAM(ATAN) +EXCEL_GLUE_CODE_WITH_4_PARAM(ATR) +EXCEL_GLUE_CODE_WITH_4_PARAM(AVGPRICE) +EXCEL_GLUE_CODE_WITH_5_PARAM(BBANDS) +EXCEL_GLUE_CODE_WITH_3_PARAM(BETA) +EXCEL_GLUE_CODE_WITH_4_PARAM(BOP) +EXCEL_GLUE_CODE_WITH_4_PARAM(CCI) +EXCEL_GLUE_CODE_WITH_4_PARAM(CDL2CROWS) +EXCEL_GLUE_CODE_WITH_4_PARAM(CDL3BLACKCROWS) +EXCEL_GLUE_CODE_WITH_4_PARAM(CDL3INSIDE) +EXCEL_GLUE_CODE_WITH_4_PARAM(CDL3LINESTRIKE) +EXCEL_GLUE_CODE_WITH_4_PARAM(CDL3OUTSIDE) +EXCEL_GLUE_CODE_WITH_4_PARAM(CDL3STARSINSOUTH) +EXCEL_GLUE_CODE_WITH_4_PARAM(CDL3WHITESOLDIERS) +EXCEL_GLUE_CODE_WITH_5_PARAM(CDLABANDONEDBABY) +EXCEL_GLUE_CODE_WITH_4_PARAM(CDLADVANCEBLOCK) +EXCEL_GLUE_CODE_WITH_4_PARAM(CDLBELTHOLD) +EXCEL_GLUE_CODE_WITH_4_PARAM(CDLBREAKAWAY) +EXCEL_GLUE_CODE_WITH_4_PARAM(CDLCLOSINGMARUBOZU) +EXCEL_GLUE_CODE_WITH_4_PARAM(CDLCONCEALBABYSWALL) +EXCEL_GLUE_CODE_WITH_4_PARAM(CDLCOUNTERATTACK) +EXCEL_GLUE_CODE_WITH_5_PARAM(CDLDARKCLOUDCOVER) +EXCEL_GLUE_CODE_WITH_4_PARAM(CDLDOJI) +EXCEL_GLUE_CODE_WITH_4_PARAM(CDLDOJISTAR) +EXCEL_GLUE_CODE_WITH_4_PARAM(CDLDRAGONFLYDOJI) +EXCEL_GLUE_CODE_WITH_4_PARAM(CDLENGULFING) +EXCEL_GLUE_CODE_WITH_5_PARAM(CDLEVENINGDOJISTAR) +EXCEL_GLUE_CODE_WITH_5_PARAM(CDLEVENINGSTAR) +EXCEL_GLUE_CODE_WITH_4_PARAM(CDLGAPSIDESIDEWHITE) +EXCEL_GLUE_CODE_WITH_4_PARAM(CDLGRAVESTONEDOJI) +EXCEL_GLUE_CODE_WITH_4_PARAM(CDLHAMMER) +EXCEL_GLUE_CODE_WITH_4_PARAM(CDLHANGINGMAN) +EXCEL_GLUE_CODE_WITH_4_PARAM(CDLHARAMI) +EXCEL_GLUE_CODE_WITH_4_PARAM(CDLHARAMICROSS) +EXCEL_GLUE_CODE_WITH_4_PARAM(CDLHIGHWAVE) +EXCEL_GLUE_CODE_WITH_4_PARAM(CDLHIKKAKE) +EXCEL_GLUE_CODE_WITH_4_PARAM(CDLHIKKAKEMOD) +EXCEL_GLUE_CODE_WITH_4_PARAM(CDLHOMINGPIGEON) +EXCEL_GLUE_CODE_WITH_4_PARAM(CDLIDENTICAL3CROWS) +EXCEL_GLUE_CODE_WITH_4_PARAM(CDLINNECK) +EXCEL_GLUE_CODE_WITH_4_PARAM(CDLINVERTEDHAMMER) +EXCEL_GLUE_CODE_WITH_4_PARAM(CDLKICKING) +EXCEL_GLUE_CODE_WITH_4_PARAM(CDLKICKINGBYLENGTH) +EXCEL_GLUE_CODE_WITH_4_PARAM(CDLLADDERBOTTOM) +EXCEL_GLUE_CODE_WITH_4_PARAM(CDLLONGLEGGEDDOJI) +EXCEL_GLUE_CODE_WITH_4_PARAM(CDLLONGLINE) +EXCEL_GLUE_CODE_WITH_4_PARAM(CDLMARUBOZU) +EXCEL_GLUE_CODE_WITH_4_PARAM(CDLMATCHINGLOW) +EXCEL_GLUE_CODE_WITH_5_PARAM(CDLMATHOLD) +EXCEL_GLUE_CODE_WITH_5_PARAM(CDLMORNINGDOJISTAR) +EXCEL_GLUE_CODE_WITH_5_PARAM(CDLMORNINGSTAR) +EXCEL_GLUE_CODE_WITH_4_PARAM(CDLONNECK) +EXCEL_GLUE_CODE_WITH_4_PARAM(CDLPIERCING) +EXCEL_GLUE_CODE_WITH_4_PARAM(CDLRICKSHAWMAN) +EXCEL_GLUE_CODE_WITH_4_PARAM(CDLRISEFALL3METHODS) +EXCEL_GLUE_CODE_WITH_4_PARAM(CDLSEPARATINGLINES) +EXCEL_GLUE_CODE_WITH_4_PARAM(CDLSHOOTINGSTAR) +EXCEL_GLUE_CODE_WITH_4_PARAM(CDLSHORTLINE) +EXCEL_GLUE_CODE_WITH_4_PARAM(CDLSPINNINGTOP) +EXCEL_GLUE_CODE_WITH_4_PARAM(CDLSTALLEDPATTERN) +EXCEL_GLUE_CODE_WITH_4_PARAM(CDLSTICKSANDWICH) +EXCEL_GLUE_CODE_WITH_4_PARAM(CDLTAKURI) +EXCEL_GLUE_CODE_WITH_4_PARAM(CDLTASUKIGAP) +EXCEL_GLUE_CODE_WITH_4_PARAM(CDLTHRUSTING) +EXCEL_GLUE_CODE_WITH_4_PARAM(CDLTRISTAR) +EXCEL_GLUE_CODE_WITH_4_PARAM(CDLUNIQUE3RIVER) +EXCEL_GLUE_CODE_WITH_4_PARAM(CDLUPSIDEGAP2CROWS) +EXCEL_GLUE_CODE_WITH_4_PARAM(CDLXSIDEGAP3METHODS) +EXCEL_GLUE_CODE_WITH_1_PARAM(CEIL) +EXCEL_GLUE_CODE_WITH_2_PARAM(CMO) +EXCEL_GLUE_CODE_WITH_3_PARAM(CORREL) +EXCEL_GLUE_CODE_WITH_1_PARAM(COS) +EXCEL_GLUE_CODE_WITH_1_PARAM(COSH) +EXCEL_GLUE_CODE_WITH_2_PARAM(DEMA) +EXCEL_GLUE_CODE_WITH_2_PARAM(DIV) +EXCEL_GLUE_CODE_WITH_4_PARAM(DX) +EXCEL_GLUE_CODE_WITH_2_PARAM(EMA) +EXCEL_GLUE_CODE_WITH_1_PARAM(EXP) +EXCEL_GLUE_CODE_WITH_1_PARAM(FLOOR) +EXCEL_GLUE_CODE_WITH_1_PARAM(HT_DCPERIOD) +EXCEL_GLUE_CODE_WITH_1_PARAM(HT_DCPHASE) +EXCEL_GLUE_CODE_WITH_1_PARAM(HT_PHASOR) +EXCEL_GLUE_CODE_WITH_1_PARAM(HT_SINE) +EXCEL_GLUE_CODE_WITH_1_PARAM(HT_TRENDLINE) +EXCEL_GLUE_CODE_WITH_1_PARAM(HT_TRENDMODE) +EXCEL_GLUE_CODE_WITH_2_PARAM(KAMA) +EXCEL_GLUE_CODE_WITH_2_PARAM(LINEARREG) +EXCEL_GLUE_CODE_WITH_2_PARAM(LINEARREG_ANGLE) +EXCEL_GLUE_CODE_WITH_2_PARAM(LINEARREG_INTERCEPT) +EXCEL_GLUE_CODE_WITH_2_PARAM(LINEARREG_SLOPE) +EXCEL_GLUE_CODE_WITH_1_PARAM(LN) +EXCEL_GLUE_CODE_WITH_1_PARAM(LOG10) +EXCEL_GLUE_CODE_WITH_3_PARAM(MA) +EXCEL_GLUE_CODE_WITH_4_PARAM(MACD) +EXCEL_GLUE_CODE_WITH_7_PARAM(MACDEXT) +EXCEL_GLUE_CODE_WITH_2_PARAM(MACDFIX) +EXCEL_GLUE_CODE_WITH_3_PARAM(MAMA) +EXCEL_GLUE_CODE_WITH_5_PARAM(MAVP) +EXCEL_GLUE_CODE_WITH_2_PARAM(MAX) +EXCEL_GLUE_CODE_WITH_2_PARAM(MAXINDEX) +EXCEL_GLUE_CODE_WITH_2_PARAM(MEDPRICE) +EXCEL_GLUE_CODE_WITH_5_PARAM(MFI) +EXCEL_GLUE_CODE_WITH_2_PARAM(MIDPOINT) +EXCEL_GLUE_CODE_WITH_3_PARAM(MIDPRICE) +EXCEL_GLUE_CODE_WITH_2_PARAM(MIN) +EXCEL_GLUE_CODE_WITH_2_PARAM(MININDEX) +EXCEL_GLUE_CODE_WITH_2_PARAM(MINMAX) +EXCEL_GLUE_CODE_WITH_2_PARAM(MINMAXINDEX) +EXCEL_GLUE_CODE_WITH_4_PARAM(MINUS_DI) +EXCEL_GLUE_CODE_WITH_3_PARAM(MINUS_DM) +EXCEL_GLUE_CODE_WITH_2_PARAM(MOM) +EXCEL_GLUE_CODE_WITH_2_PARAM(MULT) +EXCEL_GLUE_CODE_WITH_4_PARAM(NATR) +EXCEL_GLUE_CODE_WITH_2_PARAM(OBV) +EXCEL_GLUE_CODE_WITH_4_PARAM(PLUS_DI) +EXCEL_GLUE_CODE_WITH_3_PARAM(PLUS_DM) +EXCEL_GLUE_CODE_WITH_4_PARAM(PPO) +EXCEL_GLUE_CODE_WITH_2_PARAM(ROC) +EXCEL_GLUE_CODE_WITH_2_PARAM(ROCP) +EXCEL_GLUE_CODE_WITH_2_PARAM(ROCR) +EXCEL_GLUE_CODE_WITH_2_PARAM(ROCR100) +EXCEL_GLUE_CODE_WITH_2_PARAM(RSI) +EXCEL_GLUE_CODE_WITH_4_PARAM(SAR) +EXCEL_GLUE_CODE_WITH_10_PARAM(SAREXT) +EXCEL_GLUE_CODE_WITH_1_PARAM(SIN) +EXCEL_GLUE_CODE_WITH_1_PARAM(SINH) +EXCEL_GLUE_CODE_WITH_2_PARAM(SMA) +EXCEL_GLUE_CODE_WITH_1_PARAM(SQRT) +EXCEL_GLUE_CODE_WITH_3_PARAM(STDDEV) +EXCEL_GLUE_CODE_WITH_8_PARAM(STOCH) +EXCEL_GLUE_CODE_WITH_6_PARAM(STOCHF) +EXCEL_GLUE_CODE_WITH_5_PARAM(STOCHRSI) +EXCEL_GLUE_CODE_WITH_2_PARAM(SUB) +EXCEL_GLUE_CODE_WITH_2_PARAM(SUM) +EXCEL_GLUE_CODE_WITH_3_PARAM(T3) +EXCEL_GLUE_CODE_WITH_1_PARAM(TAN) +EXCEL_GLUE_CODE_WITH_1_PARAM(TANH) +EXCEL_GLUE_CODE_WITH_2_PARAM(TEMA) +EXCEL_GLUE_CODE_WITH_3_PARAM(TRANGE) +EXCEL_GLUE_CODE_WITH_2_PARAM(TRIMA) +EXCEL_GLUE_CODE_WITH_2_PARAM(TRIX) +EXCEL_GLUE_CODE_WITH_2_PARAM(TSF) +EXCEL_GLUE_CODE_WITH_3_PARAM(TYPPRICE) +EXCEL_GLUE_CODE_WITH_6_PARAM(ULTOSC) +EXCEL_GLUE_CODE_WITH_3_PARAM(VAR) +EXCEL_GLUE_CODE_WITH_3_PARAM(WCLPRICE) +EXCEL_GLUE_CODE_WITH_4_PARAM(WILLR) +EXCEL_GLUE_CODE_WITH_2_PARAM(WMA) + +/*************** + * End of File * + ***************/ diff --git a/src/ta_abstract/frames/ta_frame.c b/src/ta_abstract/frames/ta_frame.c new file mode 100644 index 000000000..83fba3582 --- /dev/null +++ b/src/ta_abstract/frames/ta_frame.c @@ -0,0 +1,3407 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* Note: This file is generated by gencode, do not + * modify directly. + */ + +/* The function define in this file allows to have a consistent + * framework for calling all the TA function through + * the TA_CallFunc mechanism. + * + * See "ta_abstract.h" + */ + +#ifndef TA_FUNC_H + #include "ta_func.h" +#endif + +#ifndef TA_FRAME_PRIV_H + #include "ta_frame_priv.h" +#endif + +#ifndef TA_FRAME_H + #include "ta_frame.h" +#endif + +/* NEVER CALL directly these functions! Use TA_CallFunc. */ + +/* Generated */ TA_RetCode TA_ACOS_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_ACOS( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inReal, /* inReal */ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outReal /* outReal */ ); +/* Generated */ } +/* Generated */ unsigned int TA_ACOS_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ (void)params; +/* Generated */ return TA_ACOS_Lookback( ); +/* Generated */ } +/* Generated */ TA_RetCode TA_AD_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_AD( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inPrice.high, /* inHigh */ +/* Generated */ params->in[0].data.inPrice.low, /* inLow */ +/* Generated */ params->in[0].data.inPrice.close, /* inClose */ +/* Generated */ params->in[0].data.inPrice.volume, /* inVolume */ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outReal /* outReal */ ); +/* Generated */ } +/* Generated */ unsigned int TA_AD_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ (void)params; +/* Generated */ return TA_AD_Lookback( ); +/* Generated */ } +/* Generated */ TA_RetCode TA_ADD_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_ADD( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inReal, /* inReal0 */ +/* Generated */ params->in[1].data.inReal, /* inReal1 */ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outReal /* outReal */ ); +/* Generated */ } +/* Generated */ unsigned int TA_ADD_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ (void)params; +/* Generated */ return TA_ADD_Lookback( ); +/* Generated */ } +/* Generated */ TA_RetCode TA_ADOSC_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_ADOSC( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inPrice.high, /* inHigh */ +/* Generated */ params->in[0].data.inPrice.low, /* inLow */ +/* Generated */ params->in[0].data.inPrice.close, /* inClose */ +/* Generated */ params->in[0].data.inPrice.volume, /* inVolume */ +/* Generated */ params->optIn[0].data.optInInteger, /* optInFastPeriod*/ +/* Generated */ params->optIn[1].data.optInInteger, /* optInSlowPeriod*/ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outReal /* outReal */ ); +/* Generated */ } +/* Generated */ unsigned int TA_ADOSC_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ return TA_ADOSC_Lookback(params->optIn[0].data.optInInteger, /* optInFastPeriod*/ +/* Generated */ params->optIn[1].data.optInInteger /* optInSlowPeriod*/ ); +/* Generated */ } +/* Generated */ TA_RetCode TA_ADX_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_ADX( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inPrice.high, /* inHigh */ +/* Generated */ params->in[0].data.inPrice.low, /* inLow */ +/* Generated */ params->in[0].data.inPrice.close, /* inClose */ +/* Generated */ params->optIn[0].data.optInInteger, /* optInTimePeriod*/ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outReal /* outReal */ ); +/* Generated */ } +/* Generated */ unsigned int TA_ADX_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ return TA_ADX_Lookback(params->optIn[0].data.optInInteger /* optInTimePeriod*/ ); +/* Generated */ } +/* Generated */ TA_RetCode TA_ADXR_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_ADXR( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inPrice.high, /* inHigh */ +/* Generated */ params->in[0].data.inPrice.low, /* inLow */ +/* Generated */ params->in[0].data.inPrice.close, /* inClose */ +/* Generated */ params->optIn[0].data.optInInteger, /* optInTimePeriod*/ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outReal /* outReal */ ); +/* Generated */ } +/* Generated */ unsigned int TA_ADXR_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ return TA_ADXR_Lookback(params->optIn[0].data.optInInteger /* optInTimePeriod*/ ); +/* Generated */ } +/* Generated */ TA_RetCode TA_APO_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_APO( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inReal, /* inReal */ +/* Generated */ params->optIn[0].data.optInInteger, /* optInFastPeriod*/ +/* Generated */ params->optIn[1].data.optInInteger, /* optInSlowPeriod*/ +/* Generated */ (TA_MAType)params->optIn[2].data.optInInteger, /* optInMAType*/ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outReal /* outReal */ ); +/* Generated */ } +/* Generated */ unsigned int TA_APO_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ return TA_APO_Lookback(params->optIn[0].data.optInInteger, /* optInFastPeriod*/ +/* Generated */ params->optIn[1].data.optInInteger, /* optInSlowPeriod*/ +/* Generated */ (TA_MAType)params->optIn[2].data.optInInteger /* optInMAType*/ ); +/* Generated */ } +/* Generated */ TA_RetCode TA_AROON_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_AROON( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inPrice.high, /* inHigh */ +/* Generated */ params->in[0].data.inPrice.low, /* inLow */ +/* Generated */ params->optIn[0].data.optInInteger, /* optInTimePeriod*/ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outReal, /* outAroonDown */ +/* Generated */ params->out[1].data.outReal /* outAroonUp */ ); +/* Generated */ } +/* Generated */ unsigned int TA_AROON_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ return TA_AROON_Lookback(params->optIn[0].data.optInInteger /* optInTimePeriod*/ ); +/* Generated */ } +/* Generated */ TA_RetCode TA_AROONOSC_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_AROONOSC( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inPrice.high, /* inHigh */ +/* Generated */ params->in[0].data.inPrice.low, /* inLow */ +/* Generated */ params->optIn[0].data.optInInteger, /* optInTimePeriod*/ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outReal /* outReal */ ); +/* Generated */ } +/* Generated */ unsigned int TA_AROONOSC_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ return TA_AROONOSC_Lookback(params->optIn[0].data.optInInteger /* optInTimePeriod*/ ); +/* Generated */ } +/* Generated */ TA_RetCode TA_ASIN_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_ASIN( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inReal, /* inReal */ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outReal /* outReal */ ); +/* Generated */ } +/* Generated */ unsigned int TA_ASIN_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ (void)params; +/* Generated */ return TA_ASIN_Lookback( ); +/* Generated */ } +/* Generated */ TA_RetCode TA_ATAN_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_ATAN( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inReal, /* inReal */ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outReal /* outReal */ ); +/* Generated */ } +/* Generated */ unsigned int TA_ATAN_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ (void)params; +/* Generated */ return TA_ATAN_Lookback( ); +/* Generated */ } +/* Generated */ TA_RetCode TA_ATR_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_ATR( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inPrice.high, /* inHigh */ +/* Generated */ params->in[0].data.inPrice.low, /* inLow */ +/* Generated */ params->in[0].data.inPrice.close, /* inClose */ +/* Generated */ params->optIn[0].data.optInInteger, /* optInTimePeriod*/ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outReal /* outReal */ ); +/* Generated */ } +/* Generated */ unsigned int TA_ATR_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ return TA_ATR_Lookback(params->optIn[0].data.optInInteger /* optInTimePeriod*/ ); +/* Generated */ } +/* Generated */ TA_RetCode TA_AVGPRICE_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_AVGPRICE( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inPrice.open, /* inOpen */ +/* Generated */ params->in[0].data.inPrice.high, /* inHigh */ +/* Generated */ params->in[0].data.inPrice.low, /* inLow */ +/* Generated */ params->in[0].data.inPrice.close, /* inClose */ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outReal /* outReal */ ); +/* Generated */ } +/* Generated */ unsigned int TA_AVGPRICE_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ (void)params; +/* Generated */ return TA_AVGPRICE_Lookback( ); +/* Generated */ } +/* Generated */ TA_RetCode TA_BBANDS_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_BBANDS( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inReal, /* inReal */ +/* Generated */ params->optIn[0].data.optInInteger, /* optInTimePeriod*/ +/* Generated */ params->optIn[1].data.optInReal, /* optInNbDevUp*/ +/* Generated */ params->optIn[2].data.optInReal, /* optInNbDevDn*/ +/* Generated */ (TA_MAType)params->optIn[3].data.optInInteger, /* optInMAType*/ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outReal, /* outRealUpperBand */ +/* Generated */ params->out[1].data.outReal, /* outRealMiddleBand */ +/* Generated */ params->out[2].data.outReal /* outRealLowerBand */ ); +/* Generated */ } +/* Generated */ unsigned int TA_BBANDS_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ return TA_BBANDS_Lookback(params->optIn[0].data.optInInteger, /* optInTimePeriod*/ +/* Generated */ params->optIn[1].data.optInReal, /* optInNbDevUp*/ +/* Generated */ params->optIn[2].data.optInReal, /* optInNbDevDn*/ +/* Generated */ (TA_MAType)params->optIn[3].data.optInInteger /* optInMAType*/ ); +/* Generated */ } +/* Generated */ TA_RetCode TA_BETA_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_BETA( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inReal, /* inReal0 */ +/* Generated */ params->in[1].data.inReal, /* inReal1 */ +/* Generated */ params->optIn[0].data.optInInteger, /* optInTimePeriod*/ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outReal /* outReal */ ); +/* Generated */ } +/* Generated */ unsigned int TA_BETA_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ return TA_BETA_Lookback(params->optIn[0].data.optInInteger /* optInTimePeriod*/ ); +/* Generated */ } +/* Generated */ TA_RetCode TA_BOP_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_BOP( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inPrice.open, /* inOpen */ +/* Generated */ params->in[0].data.inPrice.high, /* inHigh */ +/* Generated */ params->in[0].data.inPrice.low, /* inLow */ +/* Generated */ params->in[0].data.inPrice.close, /* inClose */ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outReal /* outReal */ ); +/* Generated */ } +/* Generated */ unsigned int TA_BOP_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ (void)params; +/* Generated */ return TA_BOP_Lookback( ); +/* Generated */ } +/* Generated */ TA_RetCode TA_CCI_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_CCI( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inPrice.high, /* inHigh */ +/* Generated */ params->in[0].data.inPrice.low, /* inLow */ +/* Generated */ params->in[0].data.inPrice.close, /* inClose */ +/* Generated */ params->optIn[0].data.optInInteger, /* optInTimePeriod*/ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outReal /* outReal */ ); +/* Generated */ } +/* Generated */ unsigned int TA_CCI_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ return TA_CCI_Lookback(params->optIn[0].data.optInInteger /* optInTimePeriod*/ ); +/* Generated */ } +/* Generated */ TA_RetCode TA_CDL2CROWS_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_CDL2CROWS( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inPrice.open, /* inOpen */ +/* Generated */ params->in[0].data.inPrice.high, /* inHigh */ +/* Generated */ params->in[0].data.inPrice.low, /* inLow */ +/* Generated */ params->in[0].data.inPrice.close, /* inClose */ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outInteger /* outInteger */ ); +/* Generated */ } +/* Generated */ unsigned int TA_CDL2CROWS_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ (void)params; +/* Generated */ return TA_CDL2CROWS_Lookback( ); +/* Generated */ } +/* Generated */ TA_RetCode TA_CDL3BLACKCROWS_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_CDL3BLACKCROWS( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inPrice.open, /* inOpen */ +/* Generated */ params->in[0].data.inPrice.high, /* inHigh */ +/* Generated */ params->in[0].data.inPrice.low, /* inLow */ +/* Generated */ params->in[0].data.inPrice.close, /* inClose */ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outInteger /* outInteger */ ); +/* Generated */ } +/* Generated */ unsigned int TA_CDL3BLACKCROWS_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ (void)params; +/* Generated */ return TA_CDL3BLACKCROWS_Lookback( ); +/* Generated */ } +/* Generated */ TA_RetCode TA_CDL3INSIDE_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_CDL3INSIDE( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inPrice.open, /* inOpen */ +/* Generated */ params->in[0].data.inPrice.high, /* inHigh */ +/* Generated */ params->in[0].data.inPrice.low, /* inLow */ +/* Generated */ params->in[0].data.inPrice.close, /* inClose */ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outInteger /* outInteger */ ); +/* Generated */ } +/* Generated */ unsigned int TA_CDL3INSIDE_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ (void)params; +/* Generated */ return TA_CDL3INSIDE_Lookback( ); +/* Generated */ } +/* Generated */ TA_RetCode TA_CDL3LINESTRIKE_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_CDL3LINESTRIKE( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inPrice.open, /* inOpen */ +/* Generated */ params->in[0].data.inPrice.high, /* inHigh */ +/* Generated */ params->in[0].data.inPrice.low, /* inLow */ +/* Generated */ params->in[0].data.inPrice.close, /* inClose */ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outInteger /* outInteger */ ); +/* Generated */ } +/* Generated */ unsigned int TA_CDL3LINESTRIKE_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ (void)params; +/* Generated */ return TA_CDL3LINESTRIKE_Lookback( ); +/* Generated */ } +/* Generated */ TA_RetCode TA_CDL3OUTSIDE_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_CDL3OUTSIDE( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inPrice.open, /* inOpen */ +/* Generated */ params->in[0].data.inPrice.high, /* inHigh */ +/* Generated */ params->in[0].data.inPrice.low, /* inLow */ +/* Generated */ params->in[0].data.inPrice.close, /* inClose */ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outInteger /* outInteger */ ); +/* Generated */ } +/* Generated */ unsigned int TA_CDL3OUTSIDE_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ (void)params; +/* Generated */ return TA_CDL3OUTSIDE_Lookback( ); +/* Generated */ } +/* Generated */ TA_RetCode TA_CDL3STARSINSOUTH_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_CDL3STARSINSOUTH( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inPrice.open, /* inOpen */ +/* Generated */ params->in[0].data.inPrice.high, /* inHigh */ +/* Generated */ params->in[0].data.inPrice.low, /* inLow */ +/* Generated */ params->in[0].data.inPrice.close, /* inClose */ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outInteger /* outInteger */ ); +/* Generated */ } +/* Generated */ unsigned int TA_CDL3STARSINSOUTH_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ (void)params; +/* Generated */ return TA_CDL3STARSINSOUTH_Lookback( ); +/* Generated */ } +/* Generated */ TA_RetCode TA_CDL3WHITESOLDIERS_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_CDL3WHITESOLDIERS( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inPrice.open, /* inOpen */ +/* Generated */ params->in[0].data.inPrice.high, /* inHigh */ +/* Generated */ params->in[0].data.inPrice.low, /* inLow */ +/* Generated */ params->in[0].data.inPrice.close, /* inClose */ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outInteger /* outInteger */ ); +/* Generated */ } +/* Generated */ unsigned int TA_CDL3WHITESOLDIERS_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ (void)params; +/* Generated */ return TA_CDL3WHITESOLDIERS_Lookback( ); +/* Generated */ } +/* Generated */ TA_RetCode TA_CDLABANDONEDBABY_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_CDLABANDONEDBABY( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inPrice.open, /* inOpen */ +/* Generated */ params->in[0].data.inPrice.high, /* inHigh */ +/* Generated */ params->in[0].data.inPrice.low, /* inLow */ +/* Generated */ params->in[0].data.inPrice.close, /* inClose */ +/* Generated */ params->optIn[0].data.optInReal, /* optInPenetration*/ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outInteger /* outInteger */ ); +/* Generated */ } +/* Generated */ unsigned int TA_CDLABANDONEDBABY_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ return TA_CDLABANDONEDBABY_Lookback(params->optIn[0].data.optInReal /* optInPenetration*/ ); +/* Generated */ } +/* Generated */ TA_RetCode TA_CDLADVANCEBLOCK_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_CDLADVANCEBLOCK( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inPrice.open, /* inOpen */ +/* Generated */ params->in[0].data.inPrice.high, /* inHigh */ +/* Generated */ params->in[0].data.inPrice.low, /* inLow */ +/* Generated */ params->in[0].data.inPrice.close, /* inClose */ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outInteger /* outInteger */ ); +/* Generated */ } +/* Generated */ unsigned int TA_CDLADVANCEBLOCK_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ (void)params; +/* Generated */ return TA_CDLADVANCEBLOCK_Lookback( ); +/* Generated */ } +/* Generated */ TA_RetCode TA_CDLBELTHOLD_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_CDLBELTHOLD( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inPrice.open, /* inOpen */ +/* Generated */ params->in[0].data.inPrice.high, /* inHigh */ +/* Generated */ params->in[0].data.inPrice.low, /* inLow */ +/* Generated */ params->in[0].data.inPrice.close, /* inClose */ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outInteger /* outInteger */ ); +/* Generated */ } +/* Generated */ unsigned int TA_CDLBELTHOLD_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ (void)params; +/* Generated */ return TA_CDLBELTHOLD_Lookback( ); +/* Generated */ } +/* Generated */ TA_RetCode TA_CDLBREAKAWAY_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_CDLBREAKAWAY( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inPrice.open, /* inOpen */ +/* Generated */ params->in[0].data.inPrice.high, /* inHigh */ +/* Generated */ params->in[0].data.inPrice.low, /* inLow */ +/* Generated */ params->in[0].data.inPrice.close, /* inClose */ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outInteger /* outInteger */ ); +/* Generated */ } +/* Generated */ unsigned int TA_CDLBREAKAWAY_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ (void)params; +/* Generated */ return TA_CDLBREAKAWAY_Lookback( ); +/* Generated */ } +/* Generated */ TA_RetCode TA_CDLCLOSINGMARUBOZU_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_CDLCLOSINGMARUBOZU( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inPrice.open, /* inOpen */ +/* Generated */ params->in[0].data.inPrice.high, /* inHigh */ +/* Generated */ params->in[0].data.inPrice.low, /* inLow */ +/* Generated */ params->in[0].data.inPrice.close, /* inClose */ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outInteger /* outInteger */ ); +/* Generated */ } +/* Generated */ unsigned int TA_CDLCLOSINGMARUBOZU_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ (void)params; +/* Generated */ return TA_CDLCLOSINGMARUBOZU_Lookback( ); +/* Generated */ } +/* Generated */ TA_RetCode TA_CDLCONCEALBABYSWALL_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_CDLCONCEALBABYSWALL( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inPrice.open, /* inOpen */ +/* Generated */ params->in[0].data.inPrice.high, /* inHigh */ +/* Generated */ params->in[0].data.inPrice.low, /* inLow */ +/* Generated */ params->in[0].data.inPrice.close, /* inClose */ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outInteger /* outInteger */ ); +/* Generated */ } +/* Generated */ unsigned int TA_CDLCONCEALBABYSWALL_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ (void)params; +/* Generated */ return TA_CDLCONCEALBABYSWALL_Lookback( ); +/* Generated */ } +/* Generated */ TA_RetCode TA_CDLCOUNTERATTACK_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_CDLCOUNTERATTACK( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inPrice.open, /* inOpen */ +/* Generated */ params->in[0].data.inPrice.high, /* inHigh */ +/* Generated */ params->in[0].data.inPrice.low, /* inLow */ +/* Generated */ params->in[0].data.inPrice.close, /* inClose */ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outInteger /* outInteger */ ); +/* Generated */ } +/* Generated */ unsigned int TA_CDLCOUNTERATTACK_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ (void)params; +/* Generated */ return TA_CDLCOUNTERATTACK_Lookback( ); +/* Generated */ } +/* Generated */ TA_RetCode TA_CDLDARKCLOUDCOVER_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_CDLDARKCLOUDCOVER( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inPrice.open, /* inOpen */ +/* Generated */ params->in[0].data.inPrice.high, /* inHigh */ +/* Generated */ params->in[0].data.inPrice.low, /* inLow */ +/* Generated */ params->in[0].data.inPrice.close, /* inClose */ +/* Generated */ params->optIn[0].data.optInReal, /* optInPenetration*/ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outInteger /* outInteger */ ); +/* Generated */ } +/* Generated */ unsigned int TA_CDLDARKCLOUDCOVER_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ return TA_CDLDARKCLOUDCOVER_Lookback(params->optIn[0].data.optInReal /* optInPenetration*/ ); +/* Generated */ } +/* Generated */ TA_RetCode TA_CDLDOJI_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_CDLDOJI( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inPrice.open, /* inOpen */ +/* Generated */ params->in[0].data.inPrice.high, /* inHigh */ +/* Generated */ params->in[0].data.inPrice.low, /* inLow */ +/* Generated */ params->in[0].data.inPrice.close, /* inClose */ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outInteger /* outInteger */ ); +/* Generated */ } +/* Generated */ unsigned int TA_CDLDOJI_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ (void)params; +/* Generated */ return TA_CDLDOJI_Lookback( ); +/* Generated */ } +/* Generated */ TA_RetCode TA_CDLDOJISTAR_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_CDLDOJISTAR( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inPrice.open, /* inOpen */ +/* Generated */ params->in[0].data.inPrice.high, /* inHigh */ +/* Generated */ params->in[0].data.inPrice.low, /* inLow */ +/* Generated */ params->in[0].data.inPrice.close, /* inClose */ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outInteger /* outInteger */ ); +/* Generated */ } +/* Generated */ unsigned int TA_CDLDOJISTAR_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ (void)params; +/* Generated */ return TA_CDLDOJISTAR_Lookback( ); +/* Generated */ } +/* Generated */ TA_RetCode TA_CDLDRAGONFLYDOJI_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_CDLDRAGONFLYDOJI( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inPrice.open, /* inOpen */ +/* Generated */ params->in[0].data.inPrice.high, /* inHigh */ +/* Generated */ params->in[0].data.inPrice.low, /* inLow */ +/* Generated */ params->in[0].data.inPrice.close, /* inClose */ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outInteger /* outInteger */ ); +/* Generated */ } +/* Generated */ unsigned int TA_CDLDRAGONFLYDOJI_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ (void)params; +/* Generated */ return TA_CDLDRAGONFLYDOJI_Lookback( ); +/* Generated */ } +/* Generated */ TA_RetCode TA_CDLENGULFING_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_CDLENGULFING( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inPrice.open, /* inOpen */ +/* Generated */ params->in[0].data.inPrice.high, /* inHigh */ +/* Generated */ params->in[0].data.inPrice.low, /* inLow */ +/* Generated */ params->in[0].data.inPrice.close, /* inClose */ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outInteger /* outInteger */ ); +/* Generated */ } +/* Generated */ unsigned int TA_CDLENGULFING_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ (void)params; +/* Generated */ return TA_CDLENGULFING_Lookback( ); +/* Generated */ } +/* Generated */ TA_RetCode TA_CDLEVENINGDOJISTAR_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_CDLEVENINGDOJISTAR( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inPrice.open, /* inOpen */ +/* Generated */ params->in[0].data.inPrice.high, /* inHigh */ +/* Generated */ params->in[0].data.inPrice.low, /* inLow */ +/* Generated */ params->in[0].data.inPrice.close, /* inClose */ +/* Generated */ params->optIn[0].data.optInReal, /* optInPenetration*/ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outInteger /* outInteger */ ); +/* Generated */ } +/* Generated */ unsigned int TA_CDLEVENINGDOJISTAR_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ return TA_CDLEVENINGDOJISTAR_Lookback(params->optIn[0].data.optInReal /* optInPenetration*/ ); +/* Generated */ } +/* Generated */ TA_RetCode TA_CDLEVENINGSTAR_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_CDLEVENINGSTAR( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inPrice.open, /* inOpen */ +/* Generated */ params->in[0].data.inPrice.high, /* inHigh */ +/* Generated */ params->in[0].data.inPrice.low, /* inLow */ +/* Generated */ params->in[0].data.inPrice.close, /* inClose */ +/* Generated */ params->optIn[0].data.optInReal, /* optInPenetration*/ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outInteger /* outInteger */ ); +/* Generated */ } +/* Generated */ unsigned int TA_CDLEVENINGSTAR_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ return TA_CDLEVENINGSTAR_Lookback(params->optIn[0].data.optInReal /* optInPenetration*/ ); +/* Generated */ } +/* Generated */ TA_RetCode TA_CDLGAPSIDESIDEWHITE_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_CDLGAPSIDESIDEWHITE( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inPrice.open, /* inOpen */ +/* Generated */ params->in[0].data.inPrice.high, /* inHigh */ +/* Generated */ params->in[0].data.inPrice.low, /* inLow */ +/* Generated */ params->in[0].data.inPrice.close, /* inClose */ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outInteger /* outInteger */ ); +/* Generated */ } +/* Generated */ unsigned int TA_CDLGAPSIDESIDEWHITE_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ (void)params; +/* Generated */ return TA_CDLGAPSIDESIDEWHITE_Lookback( ); +/* Generated */ } +/* Generated */ TA_RetCode TA_CDLGRAVESTONEDOJI_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_CDLGRAVESTONEDOJI( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inPrice.open, /* inOpen */ +/* Generated */ params->in[0].data.inPrice.high, /* inHigh */ +/* Generated */ params->in[0].data.inPrice.low, /* inLow */ +/* Generated */ params->in[0].data.inPrice.close, /* inClose */ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outInteger /* outInteger */ ); +/* Generated */ } +/* Generated */ unsigned int TA_CDLGRAVESTONEDOJI_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ (void)params; +/* Generated */ return TA_CDLGRAVESTONEDOJI_Lookback( ); +/* Generated */ } +/* Generated */ TA_RetCode TA_CDLHAMMER_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_CDLHAMMER( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inPrice.open, /* inOpen */ +/* Generated */ params->in[0].data.inPrice.high, /* inHigh */ +/* Generated */ params->in[0].data.inPrice.low, /* inLow */ +/* Generated */ params->in[0].data.inPrice.close, /* inClose */ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outInteger /* outInteger */ ); +/* Generated */ } +/* Generated */ unsigned int TA_CDLHAMMER_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ (void)params; +/* Generated */ return TA_CDLHAMMER_Lookback( ); +/* Generated */ } +/* Generated */ TA_RetCode TA_CDLHANGINGMAN_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_CDLHANGINGMAN( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inPrice.open, /* inOpen */ +/* Generated */ params->in[0].data.inPrice.high, /* inHigh */ +/* Generated */ params->in[0].data.inPrice.low, /* inLow */ +/* Generated */ params->in[0].data.inPrice.close, /* inClose */ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outInteger /* outInteger */ ); +/* Generated */ } +/* Generated */ unsigned int TA_CDLHANGINGMAN_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ (void)params; +/* Generated */ return TA_CDLHANGINGMAN_Lookback( ); +/* Generated */ } +/* Generated */ TA_RetCode TA_CDLHARAMI_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_CDLHARAMI( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inPrice.open, /* inOpen */ +/* Generated */ params->in[0].data.inPrice.high, /* inHigh */ +/* Generated */ params->in[0].data.inPrice.low, /* inLow */ +/* Generated */ params->in[0].data.inPrice.close, /* inClose */ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outInteger /* outInteger */ ); +/* Generated */ } +/* Generated */ unsigned int TA_CDLHARAMI_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ (void)params; +/* Generated */ return TA_CDLHARAMI_Lookback( ); +/* Generated */ } +/* Generated */ TA_RetCode TA_CDLHARAMICROSS_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_CDLHARAMICROSS( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inPrice.open, /* inOpen */ +/* Generated */ params->in[0].data.inPrice.high, /* inHigh */ +/* Generated */ params->in[0].data.inPrice.low, /* inLow */ +/* Generated */ params->in[0].data.inPrice.close, /* inClose */ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outInteger /* outInteger */ ); +/* Generated */ } +/* Generated */ unsigned int TA_CDLHARAMICROSS_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ (void)params; +/* Generated */ return TA_CDLHARAMICROSS_Lookback( ); +/* Generated */ } +/* Generated */ TA_RetCode TA_CDLHIGHWAVE_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_CDLHIGHWAVE( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inPrice.open, /* inOpen */ +/* Generated */ params->in[0].data.inPrice.high, /* inHigh */ +/* Generated */ params->in[0].data.inPrice.low, /* inLow */ +/* Generated */ params->in[0].data.inPrice.close, /* inClose */ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outInteger /* outInteger */ ); +/* Generated */ } +/* Generated */ unsigned int TA_CDLHIGHWAVE_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ (void)params; +/* Generated */ return TA_CDLHIGHWAVE_Lookback( ); +/* Generated */ } +/* Generated */ TA_RetCode TA_CDLHIKKAKE_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_CDLHIKKAKE( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inPrice.open, /* inOpen */ +/* Generated */ params->in[0].data.inPrice.high, /* inHigh */ +/* Generated */ params->in[0].data.inPrice.low, /* inLow */ +/* Generated */ params->in[0].data.inPrice.close, /* inClose */ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outInteger /* outInteger */ ); +/* Generated */ } +/* Generated */ unsigned int TA_CDLHIKKAKE_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ (void)params; +/* Generated */ return TA_CDLHIKKAKE_Lookback( ); +/* Generated */ } +/* Generated */ TA_RetCode TA_CDLHIKKAKEMOD_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_CDLHIKKAKEMOD( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inPrice.open, /* inOpen */ +/* Generated */ params->in[0].data.inPrice.high, /* inHigh */ +/* Generated */ params->in[0].data.inPrice.low, /* inLow */ +/* Generated */ params->in[0].data.inPrice.close, /* inClose */ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outInteger /* outInteger */ ); +/* Generated */ } +/* Generated */ unsigned int TA_CDLHIKKAKEMOD_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ (void)params; +/* Generated */ return TA_CDLHIKKAKEMOD_Lookback( ); +/* Generated */ } +/* Generated */ TA_RetCode TA_CDLHOMINGPIGEON_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_CDLHOMINGPIGEON( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inPrice.open, /* inOpen */ +/* Generated */ params->in[0].data.inPrice.high, /* inHigh */ +/* Generated */ params->in[0].data.inPrice.low, /* inLow */ +/* Generated */ params->in[0].data.inPrice.close, /* inClose */ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outInteger /* outInteger */ ); +/* Generated */ } +/* Generated */ unsigned int TA_CDLHOMINGPIGEON_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ (void)params; +/* Generated */ return TA_CDLHOMINGPIGEON_Lookback( ); +/* Generated */ } +/* Generated */ TA_RetCode TA_CDLIDENTICAL3CROWS_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_CDLIDENTICAL3CROWS( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inPrice.open, /* inOpen */ +/* Generated */ params->in[0].data.inPrice.high, /* inHigh */ +/* Generated */ params->in[0].data.inPrice.low, /* inLow */ +/* Generated */ params->in[0].data.inPrice.close, /* inClose */ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outInteger /* outInteger */ ); +/* Generated */ } +/* Generated */ unsigned int TA_CDLIDENTICAL3CROWS_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ (void)params; +/* Generated */ return TA_CDLIDENTICAL3CROWS_Lookback( ); +/* Generated */ } +/* Generated */ TA_RetCode TA_CDLINNECK_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_CDLINNECK( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inPrice.open, /* inOpen */ +/* Generated */ params->in[0].data.inPrice.high, /* inHigh */ +/* Generated */ params->in[0].data.inPrice.low, /* inLow */ +/* Generated */ params->in[0].data.inPrice.close, /* inClose */ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outInteger /* outInteger */ ); +/* Generated */ } +/* Generated */ unsigned int TA_CDLINNECK_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ (void)params; +/* Generated */ return TA_CDLINNECK_Lookback( ); +/* Generated */ } +/* Generated */ TA_RetCode TA_CDLINVERTEDHAMMER_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_CDLINVERTEDHAMMER( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inPrice.open, /* inOpen */ +/* Generated */ params->in[0].data.inPrice.high, /* inHigh */ +/* Generated */ params->in[0].data.inPrice.low, /* inLow */ +/* Generated */ params->in[0].data.inPrice.close, /* inClose */ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outInteger /* outInteger */ ); +/* Generated */ } +/* Generated */ unsigned int TA_CDLINVERTEDHAMMER_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ (void)params; +/* Generated */ return TA_CDLINVERTEDHAMMER_Lookback( ); +/* Generated */ } +/* Generated */ TA_RetCode TA_CDLKICKING_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_CDLKICKING( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inPrice.open, /* inOpen */ +/* Generated */ params->in[0].data.inPrice.high, /* inHigh */ +/* Generated */ params->in[0].data.inPrice.low, /* inLow */ +/* Generated */ params->in[0].data.inPrice.close, /* inClose */ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outInteger /* outInteger */ ); +/* Generated */ } +/* Generated */ unsigned int TA_CDLKICKING_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ (void)params; +/* Generated */ return TA_CDLKICKING_Lookback( ); +/* Generated */ } +/* Generated */ TA_RetCode TA_CDLKICKINGBYLENGTH_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_CDLKICKINGBYLENGTH( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inPrice.open, /* inOpen */ +/* Generated */ params->in[0].data.inPrice.high, /* inHigh */ +/* Generated */ params->in[0].data.inPrice.low, /* inLow */ +/* Generated */ params->in[0].data.inPrice.close, /* inClose */ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outInteger /* outInteger */ ); +/* Generated */ } +/* Generated */ unsigned int TA_CDLKICKINGBYLENGTH_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ (void)params; +/* Generated */ return TA_CDLKICKINGBYLENGTH_Lookback( ); +/* Generated */ } +/* Generated */ TA_RetCode TA_CDLLADDERBOTTOM_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_CDLLADDERBOTTOM( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inPrice.open, /* inOpen */ +/* Generated */ params->in[0].data.inPrice.high, /* inHigh */ +/* Generated */ params->in[0].data.inPrice.low, /* inLow */ +/* Generated */ params->in[0].data.inPrice.close, /* inClose */ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outInteger /* outInteger */ ); +/* Generated */ } +/* Generated */ unsigned int TA_CDLLADDERBOTTOM_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ (void)params; +/* Generated */ return TA_CDLLADDERBOTTOM_Lookback( ); +/* Generated */ } +/* Generated */ TA_RetCode TA_CDLLONGLEGGEDDOJI_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_CDLLONGLEGGEDDOJI( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inPrice.open, /* inOpen */ +/* Generated */ params->in[0].data.inPrice.high, /* inHigh */ +/* Generated */ params->in[0].data.inPrice.low, /* inLow */ +/* Generated */ params->in[0].data.inPrice.close, /* inClose */ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outInteger /* outInteger */ ); +/* Generated */ } +/* Generated */ unsigned int TA_CDLLONGLEGGEDDOJI_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ (void)params; +/* Generated */ return TA_CDLLONGLEGGEDDOJI_Lookback( ); +/* Generated */ } +/* Generated */ TA_RetCode TA_CDLLONGLINE_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_CDLLONGLINE( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inPrice.open, /* inOpen */ +/* Generated */ params->in[0].data.inPrice.high, /* inHigh */ +/* Generated */ params->in[0].data.inPrice.low, /* inLow */ +/* Generated */ params->in[0].data.inPrice.close, /* inClose */ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outInteger /* outInteger */ ); +/* Generated */ } +/* Generated */ unsigned int TA_CDLLONGLINE_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ (void)params; +/* Generated */ return TA_CDLLONGLINE_Lookback( ); +/* Generated */ } +/* Generated */ TA_RetCode TA_CDLMARUBOZU_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_CDLMARUBOZU( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inPrice.open, /* inOpen */ +/* Generated */ params->in[0].data.inPrice.high, /* inHigh */ +/* Generated */ params->in[0].data.inPrice.low, /* inLow */ +/* Generated */ params->in[0].data.inPrice.close, /* inClose */ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outInteger /* outInteger */ ); +/* Generated */ } +/* Generated */ unsigned int TA_CDLMARUBOZU_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ (void)params; +/* Generated */ return TA_CDLMARUBOZU_Lookback( ); +/* Generated */ } +/* Generated */ TA_RetCode TA_CDLMATCHINGLOW_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_CDLMATCHINGLOW( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inPrice.open, /* inOpen */ +/* Generated */ params->in[0].data.inPrice.high, /* inHigh */ +/* Generated */ params->in[0].data.inPrice.low, /* inLow */ +/* Generated */ params->in[0].data.inPrice.close, /* inClose */ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outInteger /* outInteger */ ); +/* Generated */ } +/* Generated */ unsigned int TA_CDLMATCHINGLOW_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ (void)params; +/* Generated */ return TA_CDLMATCHINGLOW_Lookback( ); +/* Generated */ } +/* Generated */ TA_RetCode TA_CDLMATHOLD_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_CDLMATHOLD( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inPrice.open, /* inOpen */ +/* Generated */ params->in[0].data.inPrice.high, /* inHigh */ +/* Generated */ params->in[0].data.inPrice.low, /* inLow */ +/* Generated */ params->in[0].data.inPrice.close, /* inClose */ +/* Generated */ params->optIn[0].data.optInReal, /* optInPenetration*/ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outInteger /* outInteger */ ); +/* Generated */ } +/* Generated */ unsigned int TA_CDLMATHOLD_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ return TA_CDLMATHOLD_Lookback(params->optIn[0].data.optInReal /* optInPenetration*/ ); +/* Generated */ } +/* Generated */ TA_RetCode TA_CDLMORNINGDOJISTAR_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_CDLMORNINGDOJISTAR( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inPrice.open, /* inOpen */ +/* Generated */ params->in[0].data.inPrice.high, /* inHigh */ +/* Generated */ params->in[0].data.inPrice.low, /* inLow */ +/* Generated */ params->in[0].data.inPrice.close, /* inClose */ +/* Generated */ params->optIn[0].data.optInReal, /* optInPenetration*/ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outInteger /* outInteger */ ); +/* Generated */ } +/* Generated */ unsigned int TA_CDLMORNINGDOJISTAR_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ return TA_CDLMORNINGDOJISTAR_Lookback(params->optIn[0].data.optInReal /* optInPenetration*/ ); +/* Generated */ } +/* Generated */ TA_RetCode TA_CDLMORNINGSTAR_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_CDLMORNINGSTAR( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inPrice.open, /* inOpen */ +/* Generated */ params->in[0].data.inPrice.high, /* inHigh */ +/* Generated */ params->in[0].data.inPrice.low, /* inLow */ +/* Generated */ params->in[0].data.inPrice.close, /* inClose */ +/* Generated */ params->optIn[0].data.optInReal, /* optInPenetration*/ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outInteger /* outInteger */ ); +/* Generated */ } +/* Generated */ unsigned int TA_CDLMORNINGSTAR_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ return TA_CDLMORNINGSTAR_Lookback(params->optIn[0].data.optInReal /* optInPenetration*/ ); +/* Generated */ } +/* Generated */ TA_RetCode TA_CDLONNECK_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_CDLONNECK( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inPrice.open, /* inOpen */ +/* Generated */ params->in[0].data.inPrice.high, /* inHigh */ +/* Generated */ params->in[0].data.inPrice.low, /* inLow */ +/* Generated */ params->in[0].data.inPrice.close, /* inClose */ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outInteger /* outInteger */ ); +/* Generated */ } +/* Generated */ unsigned int TA_CDLONNECK_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ (void)params; +/* Generated */ return TA_CDLONNECK_Lookback( ); +/* Generated */ } +/* Generated */ TA_RetCode TA_CDLPIERCING_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_CDLPIERCING( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inPrice.open, /* inOpen */ +/* Generated */ params->in[0].data.inPrice.high, /* inHigh */ +/* Generated */ params->in[0].data.inPrice.low, /* inLow */ +/* Generated */ params->in[0].data.inPrice.close, /* inClose */ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outInteger /* outInteger */ ); +/* Generated */ } +/* Generated */ unsigned int TA_CDLPIERCING_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ (void)params; +/* Generated */ return TA_CDLPIERCING_Lookback( ); +/* Generated */ } +/* Generated */ TA_RetCode TA_CDLRICKSHAWMAN_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_CDLRICKSHAWMAN( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inPrice.open, /* inOpen */ +/* Generated */ params->in[0].data.inPrice.high, /* inHigh */ +/* Generated */ params->in[0].data.inPrice.low, /* inLow */ +/* Generated */ params->in[0].data.inPrice.close, /* inClose */ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outInteger /* outInteger */ ); +/* Generated */ } +/* Generated */ unsigned int TA_CDLRICKSHAWMAN_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ (void)params; +/* Generated */ return TA_CDLRICKSHAWMAN_Lookback( ); +/* Generated */ } +/* Generated */ TA_RetCode TA_CDLRISEFALL3METHODS_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_CDLRISEFALL3METHODS( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inPrice.open, /* inOpen */ +/* Generated */ params->in[0].data.inPrice.high, /* inHigh */ +/* Generated */ params->in[0].data.inPrice.low, /* inLow */ +/* Generated */ params->in[0].data.inPrice.close, /* inClose */ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outInteger /* outInteger */ ); +/* Generated */ } +/* Generated */ unsigned int TA_CDLRISEFALL3METHODS_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ (void)params; +/* Generated */ return TA_CDLRISEFALL3METHODS_Lookback( ); +/* Generated */ } +/* Generated */ TA_RetCode TA_CDLSEPARATINGLINES_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_CDLSEPARATINGLINES( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inPrice.open, /* inOpen */ +/* Generated */ params->in[0].data.inPrice.high, /* inHigh */ +/* Generated */ params->in[0].data.inPrice.low, /* inLow */ +/* Generated */ params->in[0].data.inPrice.close, /* inClose */ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outInteger /* outInteger */ ); +/* Generated */ } +/* Generated */ unsigned int TA_CDLSEPARATINGLINES_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ (void)params; +/* Generated */ return TA_CDLSEPARATINGLINES_Lookback( ); +/* Generated */ } +/* Generated */ TA_RetCode TA_CDLSHOOTINGSTAR_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_CDLSHOOTINGSTAR( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inPrice.open, /* inOpen */ +/* Generated */ params->in[0].data.inPrice.high, /* inHigh */ +/* Generated */ params->in[0].data.inPrice.low, /* inLow */ +/* Generated */ params->in[0].data.inPrice.close, /* inClose */ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outInteger /* outInteger */ ); +/* Generated */ } +/* Generated */ unsigned int TA_CDLSHOOTINGSTAR_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ (void)params; +/* Generated */ return TA_CDLSHOOTINGSTAR_Lookback( ); +/* Generated */ } +/* Generated */ TA_RetCode TA_CDLSHORTLINE_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_CDLSHORTLINE( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inPrice.open, /* inOpen */ +/* Generated */ params->in[0].data.inPrice.high, /* inHigh */ +/* Generated */ params->in[0].data.inPrice.low, /* inLow */ +/* Generated */ params->in[0].data.inPrice.close, /* inClose */ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outInteger /* outInteger */ ); +/* Generated */ } +/* Generated */ unsigned int TA_CDLSHORTLINE_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ (void)params; +/* Generated */ return TA_CDLSHORTLINE_Lookback( ); +/* Generated */ } +/* Generated */ TA_RetCode TA_CDLSPINNINGTOP_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_CDLSPINNINGTOP( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inPrice.open, /* inOpen */ +/* Generated */ params->in[0].data.inPrice.high, /* inHigh */ +/* Generated */ params->in[0].data.inPrice.low, /* inLow */ +/* Generated */ params->in[0].data.inPrice.close, /* inClose */ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outInteger /* outInteger */ ); +/* Generated */ } +/* Generated */ unsigned int TA_CDLSPINNINGTOP_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ (void)params; +/* Generated */ return TA_CDLSPINNINGTOP_Lookback( ); +/* Generated */ } +/* Generated */ TA_RetCode TA_CDLSTALLEDPATTERN_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_CDLSTALLEDPATTERN( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inPrice.open, /* inOpen */ +/* Generated */ params->in[0].data.inPrice.high, /* inHigh */ +/* Generated */ params->in[0].data.inPrice.low, /* inLow */ +/* Generated */ params->in[0].data.inPrice.close, /* inClose */ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outInteger /* outInteger */ ); +/* Generated */ } +/* Generated */ unsigned int TA_CDLSTALLEDPATTERN_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ (void)params; +/* Generated */ return TA_CDLSTALLEDPATTERN_Lookback( ); +/* Generated */ } +/* Generated */ TA_RetCode TA_CDLSTICKSANDWICH_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_CDLSTICKSANDWICH( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inPrice.open, /* inOpen */ +/* Generated */ params->in[0].data.inPrice.high, /* inHigh */ +/* Generated */ params->in[0].data.inPrice.low, /* inLow */ +/* Generated */ params->in[0].data.inPrice.close, /* inClose */ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outInteger /* outInteger */ ); +/* Generated */ } +/* Generated */ unsigned int TA_CDLSTICKSANDWICH_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ (void)params; +/* Generated */ return TA_CDLSTICKSANDWICH_Lookback( ); +/* Generated */ } +/* Generated */ TA_RetCode TA_CDLTAKURI_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_CDLTAKURI( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inPrice.open, /* inOpen */ +/* Generated */ params->in[0].data.inPrice.high, /* inHigh */ +/* Generated */ params->in[0].data.inPrice.low, /* inLow */ +/* Generated */ params->in[0].data.inPrice.close, /* inClose */ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outInteger /* outInteger */ ); +/* Generated */ } +/* Generated */ unsigned int TA_CDLTAKURI_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ (void)params; +/* Generated */ return TA_CDLTAKURI_Lookback( ); +/* Generated */ } +/* Generated */ TA_RetCode TA_CDLTASUKIGAP_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_CDLTASUKIGAP( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inPrice.open, /* inOpen */ +/* Generated */ params->in[0].data.inPrice.high, /* inHigh */ +/* Generated */ params->in[0].data.inPrice.low, /* inLow */ +/* Generated */ params->in[0].data.inPrice.close, /* inClose */ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outInteger /* outInteger */ ); +/* Generated */ } +/* Generated */ unsigned int TA_CDLTASUKIGAP_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ (void)params; +/* Generated */ return TA_CDLTASUKIGAP_Lookback( ); +/* Generated */ } +/* Generated */ TA_RetCode TA_CDLTHRUSTING_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_CDLTHRUSTING( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inPrice.open, /* inOpen */ +/* Generated */ params->in[0].data.inPrice.high, /* inHigh */ +/* Generated */ params->in[0].data.inPrice.low, /* inLow */ +/* Generated */ params->in[0].data.inPrice.close, /* inClose */ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outInteger /* outInteger */ ); +/* Generated */ } +/* Generated */ unsigned int TA_CDLTHRUSTING_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ (void)params; +/* Generated */ return TA_CDLTHRUSTING_Lookback( ); +/* Generated */ } +/* Generated */ TA_RetCode TA_CDLTRISTAR_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_CDLTRISTAR( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inPrice.open, /* inOpen */ +/* Generated */ params->in[0].data.inPrice.high, /* inHigh */ +/* Generated */ params->in[0].data.inPrice.low, /* inLow */ +/* Generated */ params->in[0].data.inPrice.close, /* inClose */ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outInteger /* outInteger */ ); +/* Generated */ } +/* Generated */ unsigned int TA_CDLTRISTAR_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ (void)params; +/* Generated */ return TA_CDLTRISTAR_Lookback( ); +/* Generated */ } +/* Generated */ TA_RetCode TA_CDLUNIQUE3RIVER_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_CDLUNIQUE3RIVER( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inPrice.open, /* inOpen */ +/* Generated */ params->in[0].data.inPrice.high, /* inHigh */ +/* Generated */ params->in[0].data.inPrice.low, /* inLow */ +/* Generated */ params->in[0].data.inPrice.close, /* inClose */ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outInteger /* outInteger */ ); +/* Generated */ } +/* Generated */ unsigned int TA_CDLUNIQUE3RIVER_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ (void)params; +/* Generated */ return TA_CDLUNIQUE3RIVER_Lookback( ); +/* Generated */ } +/* Generated */ TA_RetCode TA_CDLUPSIDEGAP2CROWS_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_CDLUPSIDEGAP2CROWS( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inPrice.open, /* inOpen */ +/* Generated */ params->in[0].data.inPrice.high, /* inHigh */ +/* Generated */ params->in[0].data.inPrice.low, /* inLow */ +/* Generated */ params->in[0].data.inPrice.close, /* inClose */ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outInteger /* outInteger */ ); +/* Generated */ } +/* Generated */ unsigned int TA_CDLUPSIDEGAP2CROWS_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ (void)params; +/* Generated */ return TA_CDLUPSIDEGAP2CROWS_Lookback( ); +/* Generated */ } +/* Generated */ TA_RetCode TA_CDLXSIDEGAP3METHODS_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_CDLXSIDEGAP3METHODS( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inPrice.open, /* inOpen */ +/* Generated */ params->in[0].data.inPrice.high, /* inHigh */ +/* Generated */ params->in[0].data.inPrice.low, /* inLow */ +/* Generated */ params->in[0].data.inPrice.close, /* inClose */ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outInteger /* outInteger */ ); +/* Generated */ } +/* Generated */ unsigned int TA_CDLXSIDEGAP3METHODS_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ (void)params; +/* Generated */ return TA_CDLXSIDEGAP3METHODS_Lookback( ); +/* Generated */ } +/* Generated */ TA_RetCode TA_CEIL_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_CEIL( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inReal, /* inReal */ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outReal /* outReal */ ); +/* Generated */ } +/* Generated */ unsigned int TA_CEIL_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ (void)params; +/* Generated */ return TA_CEIL_Lookback( ); +/* Generated */ } +/* Generated */ TA_RetCode TA_CMO_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_CMO( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inReal, /* inReal */ +/* Generated */ params->optIn[0].data.optInInteger, /* optInTimePeriod*/ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outReal /* outReal */ ); +/* Generated */ } +/* Generated */ unsigned int TA_CMO_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ return TA_CMO_Lookback(params->optIn[0].data.optInInteger /* optInTimePeriod*/ ); +/* Generated */ } +/* Generated */ TA_RetCode TA_CORREL_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_CORREL( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inReal, /* inReal0 */ +/* Generated */ params->in[1].data.inReal, /* inReal1 */ +/* Generated */ params->optIn[0].data.optInInteger, /* optInTimePeriod*/ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outReal /* outReal */ ); +/* Generated */ } +/* Generated */ unsigned int TA_CORREL_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ return TA_CORREL_Lookback(params->optIn[0].data.optInInteger /* optInTimePeriod*/ ); +/* Generated */ } +/* Generated */ TA_RetCode TA_COS_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_COS( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inReal, /* inReal */ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outReal /* outReal */ ); +/* Generated */ } +/* Generated */ unsigned int TA_COS_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ (void)params; +/* Generated */ return TA_COS_Lookback( ); +/* Generated */ } +/* Generated */ TA_RetCode TA_COSH_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_COSH( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inReal, /* inReal */ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outReal /* outReal */ ); +/* Generated */ } +/* Generated */ unsigned int TA_COSH_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ (void)params; +/* Generated */ return TA_COSH_Lookback( ); +/* Generated */ } +/* Generated */ TA_RetCode TA_DEMA_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_DEMA( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inReal, /* inReal */ +/* Generated */ params->optIn[0].data.optInInteger, /* optInTimePeriod*/ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outReal /* outReal */ ); +/* Generated */ } +/* Generated */ unsigned int TA_DEMA_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ return TA_DEMA_Lookback(params->optIn[0].data.optInInteger /* optInTimePeriod*/ ); +/* Generated */ } +/* Generated */ TA_RetCode TA_DIV_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_DIV( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inReal, /* inReal0 */ +/* Generated */ params->in[1].data.inReal, /* inReal1 */ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outReal /* outReal */ ); +/* Generated */ } +/* Generated */ unsigned int TA_DIV_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ (void)params; +/* Generated */ return TA_DIV_Lookback( ); +/* Generated */ } +/* Generated */ TA_RetCode TA_DX_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_DX( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inPrice.high, /* inHigh */ +/* Generated */ params->in[0].data.inPrice.low, /* inLow */ +/* Generated */ params->in[0].data.inPrice.close, /* inClose */ +/* Generated */ params->optIn[0].data.optInInteger, /* optInTimePeriod*/ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outReal /* outReal */ ); +/* Generated */ } +/* Generated */ unsigned int TA_DX_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ return TA_DX_Lookback(params->optIn[0].data.optInInteger /* optInTimePeriod*/ ); +/* Generated */ } +/* Generated */ TA_RetCode TA_EMA_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_EMA( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inReal, /* inReal */ +/* Generated */ params->optIn[0].data.optInInteger, /* optInTimePeriod*/ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outReal /* outReal */ ); +/* Generated */ } +/* Generated */ unsigned int TA_EMA_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ return TA_EMA_Lookback(params->optIn[0].data.optInInteger /* optInTimePeriod*/ ); +/* Generated */ } +/* Generated */ TA_RetCode TA_EXP_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_EXP( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inReal, /* inReal */ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outReal /* outReal */ ); +/* Generated */ } +/* Generated */ unsigned int TA_EXP_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ (void)params; +/* Generated */ return TA_EXP_Lookback( ); +/* Generated */ } +/* Generated */ TA_RetCode TA_FLOOR_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_FLOOR( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inReal, /* inReal */ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outReal /* outReal */ ); +/* Generated */ } +/* Generated */ unsigned int TA_FLOOR_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ (void)params; +/* Generated */ return TA_FLOOR_Lookback( ); +/* Generated */ } +/* Generated */ TA_RetCode TA_HT_DCPERIOD_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_HT_DCPERIOD( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inReal, /* inReal */ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outReal /* outReal */ ); +/* Generated */ } +/* Generated */ unsigned int TA_HT_DCPERIOD_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ (void)params; +/* Generated */ return TA_HT_DCPERIOD_Lookback( ); +/* Generated */ } +/* Generated */ TA_RetCode TA_HT_DCPHASE_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_HT_DCPHASE( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inReal, /* inReal */ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outReal /* outReal */ ); +/* Generated */ } +/* Generated */ unsigned int TA_HT_DCPHASE_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ (void)params; +/* Generated */ return TA_HT_DCPHASE_Lookback( ); +/* Generated */ } +/* Generated */ TA_RetCode TA_HT_PHASOR_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_HT_PHASOR( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inReal, /* inReal */ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outReal, /* outInPhase */ +/* Generated */ params->out[1].data.outReal /* outQuadrature */ ); +/* Generated */ } +/* Generated */ unsigned int TA_HT_PHASOR_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ (void)params; +/* Generated */ return TA_HT_PHASOR_Lookback( ); +/* Generated */ } +/* Generated */ TA_RetCode TA_HT_SINE_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_HT_SINE( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inReal, /* inReal */ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outReal, /* outSine */ +/* Generated */ params->out[1].data.outReal /* outLeadSine */ ); +/* Generated */ } +/* Generated */ unsigned int TA_HT_SINE_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ (void)params; +/* Generated */ return TA_HT_SINE_Lookback( ); +/* Generated */ } +/* Generated */ TA_RetCode TA_HT_TRENDLINE_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_HT_TRENDLINE( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inReal, /* inReal */ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outReal /* outReal */ ); +/* Generated */ } +/* Generated */ unsigned int TA_HT_TRENDLINE_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ (void)params; +/* Generated */ return TA_HT_TRENDLINE_Lookback( ); +/* Generated */ } +/* Generated */ TA_RetCode TA_HT_TRENDMODE_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_HT_TRENDMODE( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inReal, /* inReal */ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outInteger /* outInteger */ ); +/* Generated */ } +/* Generated */ unsigned int TA_HT_TRENDMODE_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ (void)params; +/* Generated */ return TA_HT_TRENDMODE_Lookback( ); +/* Generated */ } +/* Generated */ TA_RetCode TA_KAMA_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_KAMA( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inReal, /* inReal */ +/* Generated */ params->optIn[0].data.optInInteger, /* optInTimePeriod*/ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outReal /* outReal */ ); +/* Generated */ } +/* Generated */ unsigned int TA_KAMA_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ return TA_KAMA_Lookback(params->optIn[0].data.optInInteger /* optInTimePeriod*/ ); +/* Generated */ } +/* Generated */ TA_RetCode TA_LINEARREG_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_LINEARREG( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inReal, /* inReal */ +/* Generated */ params->optIn[0].data.optInInteger, /* optInTimePeriod*/ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outReal /* outReal */ ); +/* Generated */ } +/* Generated */ unsigned int TA_LINEARREG_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ return TA_LINEARREG_Lookback(params->optIn[0].data.optInInteger /* optInTimePeriod*/ ); +/* Generated */ } +/* Generated */ TA_RetCode TA_LINEARREG_ANGLE_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_LINEARREG_ANGLE( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inReal, /* inReal */ +/* Generated */ params->optIn[0].data.optInInteger, /* optInTimePeriod*/ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outReal /* outReal */ ); +/* Generated */ } +/* Generated */ unsigned int TA_LINEARREG_ANGLE_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ return TA_LINEARREG_ANGLE_Lookback(params->optIn[0].data.optInInteger /* optInTimePeriod*/ ); +/* Generated */ } +/* Generated */ TA_RetCode TA_LINEARREG_INTERCEPT_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_LINEARREG_INTERCEPT( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inReal, /* inReal */ +/* Generated */ params->optIn[0].data.optInInteger, /* optInTimePeriod*/ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outReal /* outReal */ ); +/* Generated */ } +/* Generated */ unsigned int TA_LINEARREG_INTERCEPT_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ return TA_LINEARREG_INTERCEPT_Lookback(params->optIn[0].data.optInInteger /* optInTimePeriod*/ ); +/* Generated */ } +/* Generated */ TA_RetCode TA_LINEARREG_SLOPE_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_LINEARREG_SLOPE( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inReal, /* inReal */ +/* Generated */ params->optIn[0].data.optInInteger, /* optInTimePeriod*/ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outReal /* outReal */ ); +/* Generated */ } +/* Generated */ unsigned int TA_LINEARREG_SLOPE_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ return TA_LINEARREG_SLOPE_Lookback(params->optIn[0].data.optInInteger /* optInTimePeriod*/ ); +/* Generated */ } +/* Generated */ TA_RetCode TA_LN_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_LN( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inReal, /* inReal */ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outReal /* outReal */ ); +/* Generated */ } +/* Generated */ unsigned int TA_LN_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ (void)params; +/* Generated */ return TA_LN_Lookback( ); +/* Generated */ } +/* Generated */ TA_RetCode TA_LOG10_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_LOG10( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inReal, /* inReal */ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outReal /* outReal */ ); +/* Generated */ } +/* Generated */ unsigned int TA_LOG10_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ (void)params; +/* Generated */ return TA_LOG10_Lookback( ); +/* Generated */ } +/* Generated */ TA_RetCode TA_MA_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_MA( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inReal, /* inReal */ +/* Generated */ params->optIn[0].data.optInInteger, /* optInTimePeriod*/ +/* Generated */ (TA_MAType)params->optIn[1].data.optInInteger, /* optInMAType*/ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outReal /* outReal */ ); +/* Generated */ } +/* Generated */ unsigned int TA_MA_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ return TA_MA_Lookback(params->optIn[0].data.optInInteger, /* optInTimePeriod*/ +/* Generated */ (TA_MAType)params->optIn[1].data.optInInteger /* optInMAType*/ ); +/* Generated */ } +/* Generated */ TA_RetCode TA_MACD_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_MACD( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inReal, /* inReal */ +/* Generated */ params->optIn[0].data.optInInteger, /* optInFastPeriod*/ +/* Generated */ params->optIn[1].data.optInInteger, /* optInSlowPeriod*/ +/* Generated */ params->optIn[2].data.optInInteger, /* optInSignalPeriod*/ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outReal, /* outMACD */ +/* Generated */ params->out[1].data.outReal, /* outMACDSignal */ +/* Generated */ params->out[2].data.outReal /* outMACDHist */ ); +/* Generated */ } +/* Generated */ unsigned int TA_MACD_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ return TA_MACD_Lookback(params->optIn[0].data.optInInteger, /* optInFastPeriod*/ +/* Generated */ params->optIn[1].data.optInInteger, /* optInSlowPeriod*/ +/* Generated */ params->optIn[2].data.optInInteger /* optInSignalPeriod*/ ); +/* Generated */ } +/* Generated */ TA_RetCode TA_MACDEXT_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_MACDEXT( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inReal, /* inReal */ +/* Generated */ params->optIn[0].data.optInInteger, /* optInFastPeriod*/ +/* Generated */ (TA_MAType)params->optIn[1].data.optInInteger, /* optInFastMAType*/ +/* Generated */ params->optIn[2].data.optInInteger, /* optInSlowPeriod*/ +/* Generated */ (TA_MAType)params->optIn[3].data.optInInteger, /* optInSlowMAType*/ +/* Generated */ params->optIn[4].data.optInInteger, /* optInSignalPeriod*/ +/* Generated */ (TA_MAType)params->optIn[5].data.optInInteger, /* optInSignalMAType*/ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outReal, /* outMACD */ +/* Generated */ params->out[1].data.outReal, /* outMACDSignal */ +/* Generated */ params->out[2].data.outReal /* outMACDHist */ ); +/* Generated */ } +/* Generated */ unsigned int TA_MACDEXT_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ return TA_MACDEXT_Lookback(params->optIn[0].data.optInInteger, /* optInFastPeriod*/ +/* Generated */ (TA_MAType)params->optIn[1].data.optInInteger, /* optInFastMAType*/ +/* Generated */ params->optIn[2].data.optInInteger, /* optInSlowPeriod*/ +/* Generated */ (TA_MAType)params->optIn[3].data.optInInteger, /* optInSlowMAType*/ +/* Generated */ params->optIn[4].data.optInInteger, /* optInSignalPeriod*/ +/* Generated */ (TA_MAType)params->optIn[5].data.optInInteger /* optInSignalMAType*/ ); +/* Generated */ } +/* Generated */ TA_RetCode TA_MACDFIX_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_MACDFIX( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inReal, /* inReal */ +/* Generated */ params->optIn[0].data.optInInteger, /* optInSignalPeriod*/ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outReal, /* outMACD */ +/* Generated */ params->out[1].data.outReal, /* outMACDSignal */ +/* Generated */ params->out[2].data.outReal /* outMACDHist */ ); +/* Generated */ } +/* Generated */ unsigned int TA_MACDFIX_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ return TA_MACDFIX_Lookback(params->optIn[0].data.optInInteger /* optInSignalPeriod*/ ); +/* Generated */ } +/* Generated */ TA_RetCode TA_MAMA_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_MAMA( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inReal, /* inReal */ +/* Generated */ params->optIn[0].data.optInReal, /* optInFastLimit*/ +/* Generated */ params->optIn[1].data.optInReal, /* optInSlowLimit*/ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outReal, /* outMAMA */ +/* Generated */ params->out[1].data.outReal /* outFAMA */ ); +/* Generated */ } +/* Generated */ unsigned int TA_MAMA_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ return TA_MAMA_Lookback(params->optIn[0].data.optInReal, /* optInFastLimit*/ +/* Generated */ params->optIn[1].data.optInReal /* optInSlowLimit*/ ); +/* Generated */ } +/* Generated */ TA_RetCode TA_MAVP_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_MAVP( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inReal, /* inReal */ +/* Generated */ params->in[1].data.inReal, /* inPeriods */ +/* Generated */ params->optIn[0].data.optInInteger, /* optInMinPeriod*/ +/* Generated */ params->optIn[1].data.optInInteger, /* optInMaxPeriod*/ +/* Generated */ (TA_MAType)params->optIn[2].data.optInInteger, /* optInMAType*/ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outReal /* outReal */ ); +/* Generated */ } +/* Generated */ unsigned int TA_MAVP_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ return TA_MAVP_Lookback(params->optIn[0].data.optInInteger, /* optInMinPeriod*/ +/* Generated */ params->optIn[1].data.optInInteger, /* optInMaxPeriod*/ +/* Generated */ (TA_MAType)params->optIn[2].data.optInInteger /* optInMAType*/ ); +/* Generated */ } +/* Generated */ TA_RetCode TA_MAX_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_MAX( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inReal, /* inReal */ +/* Generated */ params->optIn[0].data.optInInteger, /* optInTimePeriod*/ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outReal /* outReal */ ); +/* Generated */ } +/* Generated */ unsigned int TA_MAX_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ return TA_MAX_Lookback(params->optIn[0].data.optInInteger /* optInTimePeriod*/ ); +/* Generated */ } +/* Generated */ TA_RetCode TA_MAXINDEX_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_MAXINDEX( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inReal, /* inReal */ +/* Generated */ params->optIn[0].data.optInInteger, /* optInTimePeriod*/ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outInteger /* outInteger */ ); +/* Generated */ } +/* Generated */ unsigned int TA_MAXINDEX_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ return TA_MAXINDEX_Lookback(params->optIn[0].data.optInInteger /* optInTimePeriod*/ ); +/* Generated */ } +/* Generated */ TA_RetCode TA_MEDPRICE_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_MEDPRICE( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inPrice.high, /* inHigh */ +/* Generated */ params->in[0].data.inPrice.low, /* inLow */ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outReal /* outReal */ ); +/* Generated */ } +/* Generated */ unsigned int TA_MEDPRICE_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ (void)params; +/* Generated */ return TA_MEDPRICE_Lookback( ); +/* Generated */ } +/* Generated */ TA_RetCode TA_MFI_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_MFI( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inPrice.high, /* inHigh */ +/* Generated */ params->in[0].data.inPrice.low, /* inLow */ +/* Generated */ params->in[0].data.inPrice.close, /* inClose */ +/* Generated */ params->in[0].data.inPrice.volume, /* inVolume */ +/* Generated */ params->optIn[0].data.optInInteger, /* optInTimePeriod*/ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outReal /* outReal */ ); +/* Generated */ } +/* Generated */ unsigned int TA_MFI_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ return TA_MFI_Lookback(params->optIn[0].data.optInInteger /* optInTimePeriod*/ ); +/* Generated */ } +/* Generated */ TA_RetCode TA_MIDPOINT_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_MIDPOINT( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inReal, /* inReal */ +/* Generated */ params->optIn[0].data.optInInteger, /* optInTimePeriod*/ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outReal /* outReal */ ); +/* Generated */ } +/* Generated */ unsigned int TA_MIDPOINT_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ return TA_MIDPOINT_Lookback(params->optIn[0].data.optInInteger /* optInTimePeriod*/ ); +/* Generated */ } +/* Generated */ TA_RetCode TA_MIDPRICE_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_MIDPRICE( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inPrice.high, /* inHigh */ +/* Generated */ params->in[0].data.inPrice.low, /* inLow */ +/* Generated */ params->optIn[0].data.optInInteger, /* optInTimePeriod*/ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outReal /* outReal */ ); +/* Generated */ } +/* Generated */ unsigned int TA_MIDPRICE_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ return TA_MIDPRICE_Lookback(params->optIn[0].data.optInInteger /* optInTimePeriod*/ ); +/* Generated */ } +/* Generated */ TA_RetCode TA_MIN_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_MIN( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inReal, /* inReal */ +/* Generated */ params->optIn[0].data.optInInteger, /* optInTimePeriod*/ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outReal /* outReal */ ); +/* Generated */ } +/* Generated */ unsigned int TA_MIN_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ return TA_MIN_Lookback(params->optIn[0].data.optInInteger /* optInTimePeriod*/ ); +/* Generated */ } +/* Generated */ TA_RetCode TA_MININDEX_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_MININDEX( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inReal, /* inReal */ +/* Generated */ params->optIn[0].data.optInInteger, /* optInTimePeriod*/ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outInteger /* outInteger */ ); +/* Generated */ } +/* Generated */ unsigned int TA_MININDEX_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ return TA_MININDEX_Lookback(params->optIn[0].data.optInInteger /* optInTimePeriod*/ ); +/* Generated */ } +/* Generated */ TA_RetCode TA_MINMAX_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_MINMAX( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inReal, /* inReal */ +/* Generated */ params->optIn[0].data.optInInteger, /* optInTimePeriod*/ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outReal, /* outMin */ +/* Generated */ params->out[1].data.outReal /* outMax */ ); +/* Generated */ } +/* Generated */ unsigned int TA_MINMAX_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ return TA_MINMAX_Lookback(params->optIn[0].data.optInInteger /* optInTimePeriod*/ ); +/* Generated */ } +/* Generated */ TA_RetCode TA_MINMAXINDEX_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_MINMAXINDEX( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inReal, /* inReal */ +/* Generated */ params->optIn[0].data.optInInteger, /* optInTimePeriod*/ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outInteger, /* outMinIdx */ +/* Generated */ params->out[1].data.outInteger /* outMaxIdx */ ); +/* Generated */ } +/* Generated */ unsigned int TA_MINMAXINDEX_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ return TA_MINMAXINDEX_Lookback(params->optIn[0].data.optInInteger /* optInTimePeriod*/ ); +/* Generated */ } +/* Generated */ TA_RetCode TA_MINUS_DI_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_MINUS_DI( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inPrice.high, /* inHigh */ +/* Generated */ params->in[0].data.inPrice.low, /* inLow */ +/* Generated */ params->in[0].data.inPrice.close, /* inClose */ +/* Generated */ params->optIn[0].data.optInInteger, /* optInTimePeriod*/ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outReal /* outReal */ ); +/* Generated */ } +/* Generated */ unsigned int TA_MINUS_DI_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ return TA_MINUS_DI_Lookback(params->optIn[0].data.optInInteger /* optInTimePeriod*/ ); +/* Generated */ } +/* Generated */ TA_RetCode TA_MINUS_DM_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_MINUS_DM( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inPrice.high, /* inHigh */ +/* Generated */ params->in[0].data.inPrice.low, /* inLow */ +/* Generated */ params->optIn[0].data.optInInteger, /* optInTimePeriod*/ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outReal /* outReal */ ); +/* Generated */ } +/* Generated */ unsigned int TA_MINUS_DM_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ return TA_MINUS_DM_Lookback(params->optIn[0].data.optInInteger /* optInTimePeriod*/ ); +/* Generated */ } +/* Generated */ TA_RetCode TA_MOM_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_MOM( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inReal, /* inReal */ +/* Generated */ params->optIn[0].data.optInInteger, /* optInTimePeriod*/ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outReal /* outReal */ ); +/* Generated */ } +/* Generated */ unsigned int TA_MOM_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ return TA_MOM_Lookback(params->optIn[0].data.optInInteger /* optInTimePeriod*/ ); +/* Generated */ } +/* Generated */ TA_RetCode TA_MULT_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_MULT( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inReal, /* inReal0 */ +/* Generated */ params->in[1].data.inReal, /* inReal1 */ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outReal /* outReal */ ); +/* Generated */ } +/* Generated */ unsigned int TA_MULT_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ (void)params; +/* Generated */ return TA_MULT_Lookback( ); +/* Generated */ } +/* Generated */ TA_RetCode TA_NATR_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_NATR( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inPrice.high, /* inHigh */ +/* Generated */ params->in[0].data.inPrice.low, /* inLow */ +/* Generated */ params->in[0].data.inPrice.close, /* inClose */ +/* Generated */ params->optIn[0].data.optInInteger, /* optInTimePeriod*/ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outReal /* outReal */ ); +/* Generated */ } +/* Generated */ unsigned int TA_NATR_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ return TA_NATR_Lookback(params->optIn[0].data.optInInteger /* optInTimePeriod*/ ); +/* Generated */ } +/* Generated */ TA_RetCode TA_OBV_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_OBV( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inReal, /* inReal */ +/* Generated */ params->in[1].data.inPrice.volume, /* inVolume */ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outReal /* outReal */ ); +/* Generated */ } +/* Generated */ unsigned int TA_OBV_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ (void)params; +/* Generated */ return TA_OBV_Lookback( ); +/* Generated */ } +/* Generated */ TA_RetCode TA_PLUS_DI_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_PLUS_DI( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inPrice.high, /* inHigh */ +/* Generated */ params->in[0].data.inPrice.low, /* inLow */ +/* Generated */ params->in[0].data.inPrice.close, /* inClose */ +/* Generated */ params->optIn[0].data.optInInteger, /* optInTimePeriod*/ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outReal /* outReal */ ); +/* Generated */ } +/* Generated */ unsigned int TA_PLUS_DI_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ return TA_PLUS_DI_Lookback(params->optIn[0].data.optInInteger /* optInTimePeriod*/ ); +/* Generated */ } +/* Generated */ TA_RetCode TA_PLUS_DM_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_PLUS_DM( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inPrice.high, /* inHigh */ +/* Generated */ params->in[0].data.inPrice.low, /* inLow */ +/* Generated */ params->optIn[0].data.optInInteger, /* optInTimePeriod*/ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outReal /* outReal */ ); +/* Generated */ } +/* Generated */ unsigned int TA_PLUS_DM_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ return TA_PLUS_DM_Lookback(params->optIn[0].data.optInInteger /* optInTimePeriod*/ ); +/* Generated */ } +/* Generated */ TA_RetCode TA_PPO_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_PPO( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inReal, /* inReal */ +/* Generated */ params->optIn[0].data.optInInteger, /* optInFastPeriod*/ +/* Generated */ params->optIn[1].data.optInInteger, /* optInSlowPeriod*/ +/* Generated */ (TA_MAType)params->optIn[2].data.optInInteger, /* optInMAType*/ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outReal /* outReal */ ); +/* Generated */ } +/* Generated */ unsigned int TA_PPO_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ return TA_PPO_Lookback(params->optIn[0].data.optInInteger, /* optInFastPeriod*/ +/* Generated */ params->optIn[1].data.optInInteger, /* optInSlowPeriod*/ +/* Generated */ (TA_MAType)params->optIn[2].data.optInInteger /* optInMAType*/ ); +/* Generated */ } +/* Generated */ TA_RetCode TA_ROC_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_ROC( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inReal, /* inReal */ +/* Generated */ params->optIn[0].data.optInInteger, /* optInTimePeriod*/ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outReal /* outReal */ ); +/* Generated */ } +/* Generated */ unsigned int TA_ROC_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ return TA_ROC_Lookback(params->optIn[0].data.optInInteger /* optInTimePeriod*/ ); +/* Generated */ } +/* Generated */ TA_RetCode TA_ROCP_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_ROCP( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inReal, /* inReal */ +/* Generated */ params->optIn[0].data.optInInteger, /* optInTimePeriod*/ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outReal /* outReal */ ); +/* Generated */ } +/* Generated */ unsigned int TA_ROCP_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ return TA_ROCP_Lookback(params->optIn[0].data.optInInteger /* optInTimePeriod*/ ); +/* Generated */ } +/* Generated */ TA_RetCode TA_ROCR_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_ROCR( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inReal, /* inReal */ +/* Generated */ params->optIn[0].data.optInInteger, /* optInTimePeriod*/ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outReal /* outReal */ ); +/* Generated */ } +/* Generated */ unsigned int TA_ROCR_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ return TA_ROCR_Lookback(params->optIn[0].data.optInInteger /* optInTimePeriod*/ ); +/* Generated */ } +/* Generated */ TA_RetCode TA_ROCR100_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_ROCR100( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inReal, /* inReal */ +/* Generated */ params->optIn[0].data.optInInteger, /* optInTimePeriod*/ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outReal /* outReal */ ); +/* Generated */ } +/* Generated */ unsigned int TA_ROCR100_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ return TA_ROCR100_Lookback(params->optIn[0].data.optInInteger /* optInTimePeriod*/ ); +/* Generated */ } +/* Generated */ TA_RetCode TA_RSI_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_RSI( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inReal, /* inReal */ +/* Generated */ params->optIn[0].data.optInInteger, /* optInTimePeriod*/ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outReal /* outReal */ ); +/* Generated */ } +/* Generated */ unsigned int TA_RSI_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ return TA_RSI_Lookback(params->optIn[0].data.optInInteger /* optInTimePeriod*/ ); +/* Generated */ } +/* Generated */ TA_RetCode TA_SAR_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_SAR( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inPrice.high, /* inHigh */ +/* Generated */ params->in[0].data.inPrice.low, /* inLow */ +/* Generated */ params->optIn[0].data.optInReal, /* optInAcceleration*/ +/* Generated */ params->optIn[1].data.optInReal, /* optInMaximum*/ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outReal /* outReal */ ); +/* Generated */ } +/* Generated */ unsigned int TA_SAR_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ return TA_SAR_Lookback(params->optIn[0].data.optInReal, /* optInAcceleration*/ +/* Generated */ params->optIn[1].data.optInReal /* optInMaximum*/ ); +/* Generated */ } +/* Generated */ TA_RetCode TA_SAREXT_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_SAREXT( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inPrice.high, /* inHigh */ +/* Generated */ params->in[0].data.inPrice.low, /* inLow */ +/* Generated */ params->optIn[0].data.optInReal, /* optInStartValue*/ +/* Generated */ params->optIn[1].data.optInReal, /* optInOffsetOnReverse*/ +/* Generated */ params->optIn[2].data.optInReal, /* optInAccelerationInitLong*/ +/* Generated */ params->optIn[3].data.optInReal, /* optInAccelerationLong*/ +/* Generated */ params->optIn[4].data.optInReal, /* optInAccelerationMaxLong*/ +/* Generated */ params->optIn[5].data.optInReal, /* optInAccelerationInitShort*/ +/* Generated */ params->optIn[6].data.optInReal, /* optInAccelerationShort*/ +/* Generated */ params->optIn[7].data.optInReal, /* optInAccelerationMaxShort*/ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outReal /* outReal */ ); +/* Generated */ } +/* Generated */ unsigned int TA_SAREXT_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ return TA_SAREXT_Lookback(params->optIn[0].data.optInReal, /* optInStartValue*/ +/* Generated */ params->optIn[1].data.optInReal, /* optInOffsetOnReverse*/ +/* Generated */ params->optIn[2].data.optInReal, /* optInAccelerationInitLong*/ +/* Generated */ params->optIn[3].data.optInReal, /* optInAccelerationLong*/ +/* Generated */ params->optIn[4].data.optInReal, /* optInAccelerationMaxLong*/ +/* Generated */ params->optIn[5].data.optInReal, /* optInAccelerationInitShort*/ +/* Generated */ params->optIn[6].data.optInReal, /* optInAccelerationShort*/ +/* Generated */ params->optIn[7].data.optInReal /* optInAccelerationMaxShort*/ ); +/* Generated */ } +/* Generated */ TA_RetCode TA_SIN_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_SIN( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inReal, /* inReal */ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outReal /* outReal */ ); +/* Generated */ } +/* Generated */ unsigned int TA_SIN_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ (void)params; +/* Generated */ return TA_SIN_Lookback( ); +/* Generated */ } +/* Generated */ TA_RetCode TA_SINH_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_SINH( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inReal, /* inReal */ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outReal /* outReal */ ); +/* Generated */ } +/* Generated */ unsigned int TA_SINH_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ (void)params; +/* Generated */ return TA_SINH_Lookback( ); +/* Generated */ } +/* Generated */ TA_RetCode TA_SMA_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_SMA( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inReal, /* inReal */ +/* Generated */ params->optIn[0].data.optInInteger, /* optInTimePeriod*/ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outReal /* outReal */ ); +/* Generated */ } +/* Generated */ unsigned int TA_SMA_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ return TA_SMA_Lookback(params->optIn[0].data.optInInteger /* optInTimePeriod*/ ); +/* Generated */ } +/* Generated */ TA_RetCode TA_SQRT_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_SQRT( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inReal, /* inReal */ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outReal /* outReal */ ); +/* Generated */ } +/* Generated */ unsigned int TA_SQRT_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ (void)params; +/* Generated */ return TA_SQRT_Lookback( ); +/* Generated */ } +/* Generated */ TA_RetCode TA_STDDEV_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_STDDEV( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inReal, /* inReal */ +/* Generated */ params->optIn[0].data.optInInteger, /* optInTimePeriod*/ +/* Generated */ params->optIn[1].data.optInReal, /* optInNbDev*/ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outReal /* outReal */ ); +/* Generated */ } +/* Generated */ unsigned int TA_STDDEV_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ return TA_STDDEV_Lookback(params->optIn[0].data.optInInteger, /* optInTimePeriod*/ +/* Generated */ params->optIn[1].data.optInReal /* optInNbDev*/ ); +/* Generated */ } +/* Generated */ TA_RetCode TA_STOCH_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_STOCH( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inPrice.high, /* inHigh */ +/* Generated */ params->in[0].data.inPrice.low, /* inLow */ +/* Generated */ params->in[0].data.inPrice.close, /* inClose */ +/* Generated */ params->optIn[0].data.optInInteger, /* optInFastK_Period*/ +/* Generated */ params->optIn[1].data.optInInteger, /* optInSlowK_Period*/ +/* Generated */ (TA_MAType)params->optIn[2].data.optInInteger, /* optInSlowK_MAType*/ +/* Generated */ params->optIn[3].data.optInInteger, /* optInSlowD_Period*/ +/* Generated */ (TA_MAType)params->optIn[4].data.optInInteger, /* optInSlowD_MAType*/ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outReal, /* outSlowK */ +/* Generated */ params->out[1].data.outReal /* outSlowD */ ); +/* Generated */ } +/* Generated */ unsigned int TA_STOCH_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ return TA_STOCH_Lookback(params->optIn[0].data.optInInteger, /* optInFastK_Period*/ +/* Generated */ params->optIn[1].data.optInInteger, /* optInSlowK_Period*/ +/* Generated */ (TA_MAType)params->optIn[2].data.optInInteger, /* optInSlowK_MAType*/ +/* Generated */ params->optIn[3].data.optInInteger, /* optInSlowD_Period*/ +/* Generated */ (TA_MAType)params->optIn[4].data.optInInteger /* optInSlowD_MAType*/ ); +/* Generated */ } +/* Generated */ TA_RetCode TA_STOCHF_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_STOCHF( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inPrice.high, /* inHigh */ +/* Generated */ params->in[0].data.inPrice.low, /* inLow */ +/* Generated */ params->in[0].data.inPrice.close, /* inClose */ +/* Generated */ params->optIn[0].data.optInInteger, /* optInFastK_Period*/ +/* Generated */ params->optIn[1].data.optInInteger, /* optInFastD_Period*/ +/* Generated */ (TA_MAType)params->optIn[2].data.optInInteger, /* optInFastD_MAType*/ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outReal, /* outFastK */ +/* Generated */ params->out[1].data.outReal /* outFastD */ ); +/* Generated */ } +/* Generated */ unsigned int TA_STOCHF_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ return TA_STOCHF_Lookback(params->optIn[0].data.optInInteger, /* optInFastK_Period*/ +/* Generated */ params->optIn[1].data.optInInteger, /* optInFastD_Period*/ +/* Generated */ (TA_MAType)params->optIn[2].data.optInInteger /* optInFastD_MAType*/ ); +/* Generated */ } +/* Generated */ TA_RetCode TA_STOCHRSI_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_STOCHRSI( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inReal, /* inReal */ +/* Generated */ params->optIn[0].data.optInInteger, /* optInTimePeriod*/ +/* Generated */ params->optIn[1].data.optInInteger, /* optInFastK_Period*/ +/* Generated */ params->optIn[2].data.optInInteger, /* optInFastD_Period*/ +/* Generated */ (TA_MAType)params->optIn[3].data.optInInteger, /* optInFastD_MAType*/ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outReal, /* outFastK */ +/* Generated */ params->out[1].data.outReal /* outFastD */ ); +/* Generated */ } +/* Generated */ unsigned int TA_STOCHRSI_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ return TA_STOCHRSI_Lookback(params->optIn[0].data.optInInteger, /* optInTimePeriod*/ +/* Generated */ params->optIn[1].data.optInInteger, /* optInFastK_Period*/ +/* Generated */ params->optIn[2].data.optInInteger, /* optInFastD_Period*/ +/* Generated */ (TA_MAType)params->optIn[3].data.optInInteger /* optInFastD_MAType*/ ); +/* Generated */ } +/* Generated */ TA_RetCode TA_SUB_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_SUB( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inReal, /* inReal0 */ +/* Generated */ params->in[1].data.inReal, /* inReal1 */ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outReal /* outReal */ ); +/* Generated */ } +/* Generated */ unsigned int TA_SUB_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ (void)params; +/* Generated */ return TA_SUB_Lookback( ); +/* Generated */ } +/* Generated */ TA_RetCode TA_SUM_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_SUM( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inReal, /* inReal */ +/* Generated */ params->optIn[0].data.optInInteger, /* optInTimePeriod*/ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outReal /* outReal */ ); +/* Generated */ } +/* Generated */ unsigned int TA_SUM_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ return TA_SUM_Lookback(params->optIn[0].data.optInInteger /* optInTimePeriod*/ ); +/* Generated */ } +/* Generated */ TA_RetCode TA_T3_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_T3( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inReal, /* inReal */ +/* Generated */ params->optIn[0].data.optInInteger, /* optInTimePeriod*/ +/* Generated */ params->optIn[1].data.optInReal, /* optInVFactor*/ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outReal /* outReal */ ); +/* Generated */ } +/* Generated */ unsigned int TA_T3_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ return TA_T3_Lookback(params->optIn[0].data.optInInteger, /* optInTimePeriod*/ +/* Generated */ params->optIn[1].data.optInReal /* optInVFactor*/ ); +/* Generated */ } +/* Generated */ TA_RetCode TA_TAN_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_TAN( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inReal, /* inReal */ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outReal /* outReal */ ); +/* Generated */ } +/* Generated */ unsigned int TA_TAN_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ (void)params; +/* Generated */ return TA_TAN_Lookback( ); +/* Generated */ } +/* Generated */ TA_RetCode TA_TANH_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_TANH( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inReal, /* inReal */ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outReal /* outReal */ ); +/* Generated */ } +/* Generated */ unsigned int TA_TANH_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ (void)params; +/* Generated */ return TA_TANH_Lookback( ); +/* Generated */ } +/* Generated */ TA_RetCode TA_TEMA_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_TEMA( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inReal, /* inReal */ +/* Generated */ params->optIn[0].data.optInInteger, /* optInTimePeriod*/ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outReal /* outReal */ ); +/* Generated */ } +/* Generated */ unsigned int TA_TEMA_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ return TA_TEMA_Lookback(params->optIn[0].data.optInInteger /* optInTimePeriod*/ ); +/* Generated */ } +/* Generated */ TA_RetCode TA_TRANGE_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_TRANGE( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inPrice.high, /* inHigh */ +/* Generated */ params->in[0].data.inPrice.low, /* inLow */ +/* Generated */ params->in[0].data.inPrice.close, /* inClose */ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outReal /* outReal */ ); +/* Generated */ } +/* Generated */ unsigned int TA_TRANGE_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ (void)params; +/* Generated */ return TA_TRANGE_Lookback( ); +/* Generated */ } +/* Generated */ TA_RetCode TA_TRIMA_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_TRIMA( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inReal, /* inReal */ +/* Generated */ params->optIn[0].data.optInInteger, /* optInTimePeriod*/ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outReal /* outReal */ ); +/* Generated */ } +/* Generated */ unsigned int TA_TRIMA_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ return TA_TRIMA_Lookback(params->optIn[0].data.optInInteger /* optInTimePeriod*/ ); +/* Generated */ } +/* Generated */ TA_RetCode TA_TRIX_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_TRIX( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inReal, /* inReal */ +/* Generated */ params->optIn[0].data.optInInteger, /* optInTimePeriod*/ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outReal /* outReal */ ); +/* Generated */ } +/* Generated */ unsigned int TA_TRIX_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ return TA_TRIX_Lookback(params->optIn[0].data.optInInteger /* optInTimePeriod*/ ); +/* Generated */ } +/* Generated */ TA_RetCode TA_TSF_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_TSF( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inReal, /* inReal */ +/* Generated */ params->optIn[0].data.optInInteger, /* optInTimePeriod*/ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outReal /* outReal */ ); +/* Generated */ } +/* Generated */ unsigned int TA_TSF_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ return TA_TSF_Lookback(params->optIn[0].data.optInInteger /* optInTimePeriod*/ ); +/* Generated */ } +/* Generated */ TA_RetCode TA_TYPPRICE_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_TYPPRICE( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inPrice.high, /* inHigh */ +/* Generated */ params->in[0].data.inPrice.low, /* inLow */ +/* Generated */ params->in[0].data.inPrice.close, /* inClose */ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outReal /* outReal */ ); +/* Generated */ } +/* Generated */ unsigned int TA_TYPPRICE_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ (void)params; +/* Generated */ return TA_TYPPRICE_Lookback( ); +/* Generated */ } +/* Generated */ TA_RetCode TA_ULTOSC_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_ULTOSC( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inPrice.high, /* inHigh */ +/* Generated */ params->in[0].data.inPrice.low, /* inLow */ +/* Generated */ params->in[0].data.inPrice.close, /* inClose */ +/* Generated */ params->optIn[0].data.optInInteger, /* optInTimePeriod1*/ +/* Generated */ params->optIn[1].data.optInInteger, /* optInTimePeriod2*/ +/* Generated */ params->optIn[2].data.optInInteger, /* optInTimePeriod3*/ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outReal /* outReal */ ); +/* Generated */ } +/* Generated */ unsigned int TA_ULTOSC_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ return TA_ULTOSC_Lookback(params->optIn[0].data.optInInteger, /* optInTimePeriod1*/ +/* Generated */ params->optIn[1].data.optInInteger, /* optInTimePeriod2*/ +/* Generated */ params->optIn[2].data.optInInteger /* optInTimePeriod3*/ ); +/* Generated */ } +/* Generated */ TA_RetCode TA_VAR_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_VAR( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inReal, /* inReal */ +/* Generated */ params->optIn[0].data.optInInteger, /* optInTimePeriod*/ +/* Generated */ params->optIn[1].data.optInReal, /* optInNbDev*/ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outReal /* outReal */ ); +/* Generated */ } +/* Generated */ unsigned int TA_VAR_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ return TA_VAR_Lookback(params->optIn[0].data.optInInteger, /* optInTimePeriod*/ +/* Generated */ params->optIn[1].data.optInReal /* optInNbDev*/ ); +/* Generated */ } +/* Generated */ TA_RetCode TA_WCLPRICE_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_WCLPRICE( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inPrice.high, /* inHigh */ +/* Generated */ params->in[0].data.inPrice.low, /* inLow */ +/* Generated */ params->in[0].data.inPrice.close, /* inClose */ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outReal /* outReal */ ); +/* Generated */ } +/* Generated */ unsigned int TA_WCLPRICE_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ (void)params; +/* Generated */ return TA_WCLPRICE_Lookback( ); +/* Generated */ } +/* Generated */ TA_RetCode TA_WILLR_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_WILLR( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inPrice.high, /* inHigh */ +/* Generated */ params->in[0].data.inPrice.low, /* inLow */ +/* Generated */ params->in[0].data.inPrice.close, /* inClose */ +/* Generated */ params->optIn[0].data.optInInteger, /* optInTimePeriod*/ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outReal /* outReal */ ); +/* Generated */ } +/* Generated */ unsigned int TA_WILLR_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ return TA_WILLR_Lookback(params->optIn[0].data.optInInteger /* optInTimePeriod*/ ); +/* Generated */ } +/* Generated */ TA_RetCode TA_WMA_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +/* Generated */ { +/* Generated */ return TA_WMA( +/* Generated */ startIdx, +/* Generated */ endIdx, +/* Generated */ params->in[0].data.inReal, /* inReal */ +/* Generated */ params->optIn[0].data.optInInteger, /* optInTimePeriod*/ +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ params->out[0].data.outReal /* outReal */ ); +/* Generated */ } +/* Generated */ unsigned int TA_WMA_FramePPLB( const TA_ParamHolderPriv *params ) +/* Generated */ { +/* Generated */ return TA_WMA_Lookback(params->optIn[0].data.optInInteger /* optInTimePeriod*/ ); +/* Generated */ } + +/***************/ +/* End of File */ +/***************/ diff --git a/src/ta_abstract/frames/ta_frame.h b/src/ta_abstract/frames/ta_frame.h new file mode 100644 index 000000000..e75a8c3c0 --- /dev/null +++ b/src/ta_abstract/frames/ta_frame.h @@ -0,0 +1,1481 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +#ifndef TA_FRAME_H +#define TA_FRAME_H + +/* Note: This file is generated by gencode, do not + * modify directly. + */ + +/* The function define in this file allows to call a TA + * function through the TA_CallFunc mechanism. + */ + +#ifndef TA_COMMON_H + #include "ta_common.h" +#endif + +#ifndef TA_FRAME_PRIV_H + #include "ta_frame_priv.h" +#endif + + +/* Generated */ TA_RetCode TA_ACOS_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_ACOS_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_AD_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_AD_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_ADD_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_ADD_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_ADOSC_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_ADOSC_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_ADX_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_ADX_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_ADXR_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_ADXR_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_APO_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_APO_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_AROON_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_AROON_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_AROONOSC_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_AROONOSC_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_ASIN_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_ASIN_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_ATAN_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_ATAN_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_ATR_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_ATR_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_AVGPRICE_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_AVGPRICE_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_BBANDS_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_BBANDS_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_BETA_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_BETA_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_BOP_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_BOP_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_CCI_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_CCI_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_CDL2CROWS_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_CDL2CROWS_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_CDL3BLACKCROWS_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_CDL3BLACKCROWS_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_CDL3INSIDE_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_CDL3INSIDE_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_CDL3LINESTRIKE_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_CDL3LINESTRIKE_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_CDL3OUTSIDE_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_CDL3OUTSIDE_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_CDL3STARSINSOUTH_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_CDL3STARSINSOUTH_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_CDL3WHITESOLDIERS_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_CDL3WHITESOLDIERS_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_CDLABANDONEDBABY_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_CDLABANDONEDBABY_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_CDLADVANCEBLOCK_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_CDLADVANCEBLOCK_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_CDLBELTHOLD_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_CDLBELTHOLD_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_CDLBREAKAWAY_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_CDLBREAKAWAY_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_CDLCLOSINGMARUBOZU_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_CDLCLOSINGMARUBOZU_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_CDLCONCEALBABYSWALL_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_CDLCONCEALBABYSWALL_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_CDLCOUNTERATTACK_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_CDLCOUNTERATTACK_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_CDLDARKCLOUDCOVER_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_CDLDARKCLOUDCOVER_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_CDLDOJI_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_CDLDOJI_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_CDLDOJISTAR_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_CDLDOJISTAR_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_CDLDRAGONFLYDOJI_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_CDLDRAGONFLYDOJI_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_CDLENGULFING_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_CDLENGULFING_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_CDLEVENINGDOJISTAR_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_CDLEVENINGDOJISTAR_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_CDLEVENINGSTAR_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_CDLEVENINGSTAR_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_CDLGAPSIDESIDEWHITE_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_CDLGAPSIDESIDEWHITE_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_CDLGRAVESTONEDOJI_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_CDLGRAVESTONEDOJI_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_CDLHAMMER_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_CDLHAMMER_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_CDLHANGINGMAN_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_CDLHANGINGMAN_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_CDLHARAMI_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_CDLHARAMI_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_CDLHARAMICROSS_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_CDLHARAMICROSS_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_CDLHIGHWAVE_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_CDLHIGHWAVE_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_CDLHIKKAKE_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_CDLHIKKAKE_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_CDLHIKKAKEMOD_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_CDLHIKKAKEMOD_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_CDLHOMINGPIGEON_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_CDLHOMINGPIGEON_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_CDLIDENTICAL3CROWS_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_CDLIDENTICAL3CROWS_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_CDLINNECK_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_CDLINNECK_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_CDLINVERTEDHAMMER_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_CDLINVERTEDHAMMER_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_CDLKICKING_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_CDLKICKING_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_CDLKICKINGBYLENGTH_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_CDLKICKINGBYLENGTH_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_CDLLADDERBOTTOM_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_CDLLADDERBOTTOM_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_CDLLONGLEGGEDDOJI_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_CDLLONGLEGGEDDOJI_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_CDLLONGLINE_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_CDLLONGLINE_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_CDLMARUBOZU_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_CDLMARUBOZU_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_CDLMATCHINGLOW_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_CDLMATCHINGLOW_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_CDLMATHOLD_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_CDLMATHOLD_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_CDLMORNINGDOJISTAR_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_CDLMORNINGDOJISTAR_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_CDLMORNINGSTAR_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_CDLMORNINGSTAR_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_CDLONNECK_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_CDLONNECK_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_CDLPIERCING_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_CDLPIERCING_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_CDLRICKSHAWMAN_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_CDLRICKSHAWMAN_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_CDLRISEFALL3METHODS_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_CDLRISEFALL3METHODS_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_CDLSEPARATINGLINES_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_CDLSEPARATINGLINES_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_CDLSHOOTINGSTAR_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_CDLSHOOTINGSTAR_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_CDLSHORTLINE_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_CDLSHORTLINE_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_CDLSPINNINGTOP_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_CDLSPINNINGTOP_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_CDLSTALLEDPATTERN_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_CDLSTALLEDPATTERN_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_CDLSTICKSANDWICH_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_CDLSTICKSANDWICH_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_CDLTAKURI_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_CDLTAKURI_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_CDLTASUKIGAP_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_CDLTASUKIGAP_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_CDLTHRUSTING_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_CDLTHRUSTING_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_CDLTRISTAR_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_CDLTRISTAR_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_CDLUNIQUE3RIVER_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_CDLUNIQUE3RIVER_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_CDLUPSIDEGAP2CROWS_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_CDLUPSIDEGAP2CROWS_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_CDLXSIDEGAP3METHODS_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_CDLXSIDEGAP3METHODS_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_CEIL_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_CEIL_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_CMO_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_CMO_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_CORREL_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_CORREL_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_COS_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_COS_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_COSH_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_COSH_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_DEMA_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_DEMA_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_DIV_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_DIV_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_DX_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_DX_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_EMA_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_EMA_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_EXP_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_EXP_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_FLOOR_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_FLOOR_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_HT_DCPERIOD_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_HT_DCPERIOD_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_HT_DCPHASE_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_HT_DCPHASE_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_HT_PHASOR_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_HT_PHASOR_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_HT_SINE_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_HT_SINE_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_HT_TRENDLINE_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_HT_TRENDLINE_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_HT_TRENDMODE_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_HT_TRENDMODE_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_KAMA_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_KAMA_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_LINEARREG_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_LINEARREG_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_LINEARREG_ANGLE_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_LINEARREG_ANGLE_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_LINEARREG_INTERCEPT_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_LINEARREG_INTERCEPT_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_LINEARREG_SLOPE_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_LINEARREG_SLOPE_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_LN_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_LN_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_LOG10_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_LOG10_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_MA_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_MA_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_MACD_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_MACD_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_MACDEXT_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_MACDEXT_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_MACDFIX_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_MACDFIX_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_MAMA_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_MAMA_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_MAVP_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_MAVP_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_MAX_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_MAX_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_MAXINDEX_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_MAXINDEX_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_MEDPRICE_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_MEDPRICE_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_MFI_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_MFI_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_MIDPOINT_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_MIDPOINT_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_MIDPRICE_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_MIDPRICE_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_MIN_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_MIN_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_MININDEX_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_MININDEX_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_MINMAX_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_MINMAX_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_MINMAXINDEX_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_MINMAXINDEX_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_MINUS_DI_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_MINUS_DI_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_MINUS_DM_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_MINUS_DM_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_MOM_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_MOM_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_MULT_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_MULT_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_NATR_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_NATR_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_OBV_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_OBV_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_PLUS_DI_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_PLUS_DI_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_PLUS_DM_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_PLUS_DM_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_PPO_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_PPO_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_ROC_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_ROC_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_ROCP_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_ROCP_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_ROCR_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_ROCR_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_ROCR100_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_ROCR100_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_RSI_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_RSI_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_SAR_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_SAR_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_SAREXT_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_SAREXT_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_SIN_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_SIN_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_SINH_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_SINH_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_SMA_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_SMA_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_SQRT_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_SQRT_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_STDDEV_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_STDDEV_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_STOCH_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_STOCH_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_STOCHF_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_STOCHF_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_STOCHRSI_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_STOCHRSI_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_SUB_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_SUB_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_SUM_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_SUM_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_T3_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_T3_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_TAN_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_TAN_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_TANH_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_TANH_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_TEMA_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_TEMA_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_TRANGE_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_TRANGE_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_TRIMA_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_TRIMA_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_TRIX_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_TRIX_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_TSF_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_TSF_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_TYPPRICE_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_TYPPRICE_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_ULTOSC_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_ULTOSC_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_VAR_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_VAR_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_WCLPRICE_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_WCLPRICE_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_WILLR_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_WILLR_FramePPLB( const TA_ParamHolderPriv *params ) +; + +/* Generated */ TA_RetCode TA_WMA_FramePP( const TA_ParamHolderPriv *params, +/* Generated */ int startIdx, +/* Generated */ int endIdx, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement ) +; +/* Generated */ unsigned int TA_WMA_FramePPLB( const TA_ParamHolderPriv *params ) +; + + +#endif + +/***************/ +/* End of File */ +/***************/ diff --git a/src/ta_abstract/ta_abstract.c b/src/ta_abstract/ta_abstract.c new file mode 100644 index 000000000..8c03e34a8 --- /dev/null +++ b/src/ta_abstract/ta_abstract.c @@ -0,0 +1,1313 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * MF Mario Fortier + * AC Angelo Ciceri + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 020101 MF First version. + * 110302 MF Re-design the interface related to TA_CallFunc for being + * faster and use less memory allocation. + * 022904 MF Add TA_GetLookback + * 031404 MF Some function renaming for consistency and better + * Perl integration. + * 110206 AC Change volume and open interest to double + */ + +/* Description: + * Provide a way to abstract the call of the TA functions. + */ + +/**** Headers ****/ +#include +#include +#include +#include "ta_common.h" +#include "ta_memory.h" +#include "ta_abstract.h" +#include "ta_def_ui.h" +#include "ta_frame_priv.h" + +#include + +/**** External functions declarations. ****/ +/* None */ + +/**** External variables declarations. ****/ + +/* The interface definition of all functions are accessible + * through one of the following 26 tables. + */ +extern const TA_FuncDef *TA_DEF_TableA, *TA_DEF_TableB, *TA_DEF_TableC, + *TA_DEF_TableD, *TA_DEF_TableE, *TA_DEF_TableF, + *TA_DEF_TableG, *TA_DEF_TableH, *TA_DEF_TableI, + *TA_DEF_TableJ, *TA_DEF_TableK, *TA_DEF_TableL, + *TA_DEF_TableM, *TA_DEF_TableN, *TA_DEF_TableO, + *TA_DEF_TableP, *TA_DEF_TableQ, *TA_DEF_TableR, + *TA_DEF_TableS, *TA_DEF_TableT, *TA_DEF_TableU, + *TA_DEF_TableV, *TA_DEF_TableW, *TA_DEF_TableX, + *TA_DEF_TableY, *TA_DEF_TableZ; + +extern const unsigned int TA_DEF_TableASize, TA_DEF_TableBSize, + TA_DEF_TableCSize, TA_DEF_TableDSize, + TA_DEF_TableESize, TA_DEF_TableFSize, + TA_DEF_TableGSize, TA_DEF_TableHSize, + TA_DEF_TableISize, TA_DEF_TableJSize, + TA_DEF_TableKSize, TA_DEF_TableLSize, + TA_DEF_TableMSize, TA_DEF_TableNSize, + TA_DEF_TableOSize, TA_DEF_TablePSize, + TA_DEF_TableQSize, TA_DEF_TableRSize, + TA_DEF_TableSSize, TA_DEF_TableTSize, + TA_DEF_TableUSize, TA_DEF_TableVSize, + TA_DEF_TableWSize, TA_DEF_TableXSize, + TA_DEF_TableYSize, TA_DEF_TableZSize; + +#ifndef TA_GEN_CODE + /* In gen_code, these value does not exist (they are generated by + * gen_code itself!) + * Consequently, the code, when being used to make the gen_code + * executable, must provide the same functionality without using + * these shortcuts. + */ + extern const TA_FuncDef **TA_PerGroupFuncDef[]; + extern const unsigned int TA_PerGroupSize[]; +#endif + +/**** Global variables definitions. ****/ +/* None */ + +/**** Local declarations. ****/ +#ifndef min + #define min(a, b) (((a) < (b)) ? (a) : (b)) +#endif + +typedef struct +{ + unsigned int magicNumber; +} TA_StringTablePriv; + + +/**** Local functions declarations. ****/ + + +#ifdef TA_GEN_CODE + static TA_RetCode getGroupId( const char *groupString, unsigned int *groupId ); + static TA_RetCode getGroupSize( TA_GroupId groupId, unsigned int *groupSize ); + static TA_RetCode getFuncNameByIdx( TA_GroupId groupId, + unsigned int idx, + const char **stringPtr ); +#else + static TA_RetCode getGroupId( const char *groupString, unsigned int *groupId ); + static TA_RetCode getGroupSize( TA_GroupId groupId, unsigned int *groupSize ); + static TA_RetCode getFuncNameByIdx( TA_GroupId groupId, + unsigned int idx, + const char **stringPtr ); +#endif + +/**** Local variables definitions. ****/ + +static const TA_FuncDef **TA_DEF_Tables[26] = +{ + &TA_DEF_TableA, &TA_DEF_TableB, &TA_DEF_TableC, &TA_DEF_TableD, &TA_DEF_TableE, + &TA_DEF_TableF, &TA_DEF_TableG, &TA_DEF_TableH, &TA_DEF_TableI, &TA_DEF_TableJ, + &TA_DEF_TableK, &TA_DEF_TableL, &TA_DEF_TableM, &TA_DEF_TableN, &TA_DEF_TableO, + &TA_DEF_TableP, &TA_DEF_TableQ, &TA_DEF_TableR, &TA_DEF_TableS, &TA_DEF_TableT, + &TA_DEF_TableU, &TA_DEF_TableV, &TA_DEF_TableW, &TA_DEF_TableX, &TA_DEF_TableY, + &TA_DEF_TableZ +}; + +static const unsigned int *TA_DEF_TablesSize[26] = +{ + &TA_DEF_TableASize, &TA_DEF_TableBSize, &TA_DEF_TableCSize, + &TA_DEF_TableDSize, &TA_DEF_TableESize, &TA_DEF_TableFSize, + &TA_DEF_TableGSize, &TA_DEF_TableHSize, &TA_DEF_TableISize, + &TA_DEF_TableJSize, &TA_DEF_TableKSize, &TA_DEF_TableLSize, + &TA_DEF_TableMSize, &TA_DEF_TableNSize, &TA_DEF_TableOSize, + &TA_DEF_TablePSize, &TA_DEF_TableQSize, &TA_DEF_TableRSize, + &TA_DEF_TableSSize, &TA_DEF_TableTSize, &TA_DEF_TableUSize, + &TA_DEF_TableVSize, &TA_DEF_TableWSize, &TA_DEF_TableXSize, + &TA_DEF_TableYSize, &TA_DEF_TableZSize +}; + +/**** Global functions definitions. ****/ +TA_RetCode TA_GroupTableAlloc( TA_StringTable **table ) +{ + TA_StringTable *stringTable; + TA_StringTablePriv *stringTablePriv; + + if( table == NULL ) + { + return TA_BAD_PARAM; + } + + stringTable = (TA_StringTable *)TA_Malloc( sizeof(TA_StringTable) + sizeof(TA_StringTablePriv) ); + if( !stringTable ) + { + *table = NULL; + return TA_ALLOC_ERR; + } + + memset( stringTable, 0, sizeof(TA_StringTable) + sizeof(TA_StringTablePriv) ); + stringTablePriv = (TA_StringTablePriv *)(((char *)stringTable)+sizeof(TA_StringTable)); + stringTablePriv->magicNumber = TA_STRING_TABLE_GROUP_MAGIC_NB; + + stringTable->size = TA_NB_GROUP_ID; + stringTable->string = &TA_GroupString[0]; + stringTable->hiddenData = stringTablePriv; + + /* From this point, TA_FuncTableFree can be safely called. */ + + /* Success. Return the table to the caller. */ + *table = stringTable; + + return TA_SUCCESS; +} + +TA_RetCode TA_GroupTableFree( TA_StringTable *table ) +{ + TA_StringTablePriv *stringTablePriv; + + if( table ) + { + stringTablePriv = (TA_StringTablePriv *)table->hiddenData; + if( !stringTablePriv ) + { + return TA_INTERNAL_ERROR(1); + } + + if( stringTablePriv->magicNumber != TA_STRING_TABLE_GROUP_MAGIC_NB ) + { + return TA_BAD_OBJECT; + } + + TA_Free( table ); + } + + return TA_SUCCESS; +} + +/* Iterate in alphabetical order */ +TA_RetCode TA_ForEachFunc( TA_CallForEachFunc functionToCall, void *opaqueData ) +{ + const TA_FuncDef **funcDefTable; + const TA_FuncDef *funcDef; + const TA_FuncInfo *funcInfo; + unsigned int i, j, funcDefTableSize; + + if( functionToCall == NULL ) + { + return TA_BAD_PARAM; + } + + /* Iterate the tables (each table is for one letter) */ + for( i=0; i < 26; i++ ) + { + funcDefTable = TA_DEF_Tables[i]; + + /* Identify the table size. */ + funcDefTableSize = *TA_DEF_TablesSize[i]; + for( j=0; j < funcDefTableSize; j++ ) + { + funcDef = funcDefTable[j]; + if( !funcDef || !funcDef->funcInfo ) + return TA_INTERNAL_ERROR(3); + + funcInfo = funcDef->funcInfo; + if( !funcInfo ) + return TA_INTERNAL_ERROR(4); + (*functionToCall)( funcInfo, opaqueData ); + } + } + + return TA_SUCCESS; +} + +TA_RetCode TA_FuncTableAlloc( const char *group, TA_StringTable **table ) +{ + TA_RetCode retCode; + unsigned int i; + TA_StringTable *stringTable; + unsigned int groupId; /* TA_GroupId */ + unsigned int groupSize; + const char *stringPtr; + TA_StringTablePriv *stringTablePriv; + + if( (group == NULL) || (table == NULL ) ) + { + return TA_BAD_PARAM; + } + + *table = NULL; + stringPtr = NULL; + + /* Get information on the group. */ + retCode = getGroupId( group, &groupId ); + if( retCode != TA_SUCCESS ) + { + return retCode; + } + + retCode = getGroupSize( (TA_GroupId)groupId, &groupSize ); + if( retCode != TA_SUCCESS ) + { + return retCode; + } + + /* Allocate the table. */ + + stringTable = (TA_StringTable *)TA_Malloc( sizeof(TA_StringTable) + sizeof(TA_StringTablePriv) ); + if( !stringTable ) + { + *table = NULL; + return TA_ALLOC_ERR; + } + + memset( stringTable, 0, sizeof(TA_StringTable) + sizeof(TA_StringTablePriv) ); + stringTablePriv = (TA_StringTablePriv *)(((char *)stringTable)+sizeof(TA_StringTable)); + stringTablePriv->magicNumber = TA_STRING_TABLE_FUNC_MAGIC_NB; + stringTable->hiddenData = stringTablePriv; + + /* From this point, TA_FuncTableFree can be safely called. */ + stringTable->size = groupSize; + if( groupSize != 0 ) + { + stringTable->string = (const char **)TA_Malloc( (stringTable->size) * + sizeof(const char *) ); + + if( stringTable->string == NULL ) + { + *table = NULL; + TA_FuncTableFree( stringTable ); + return TA_ALLOC_ERR; + } + + memset( (void *)stringTable->string, 0, + (stringTable->size) * sizeof(const char *) ); + + for( i=0; i < stringTable->size; i++ ) + { + retCode = getFuncNameByIdx( (TA_GroupId)groupId, i, &stringPtr ); + + if( retCode != TA_SUCCESS ) + { + *table = NULL; + TA_FuncTableFree( stringTable ); + return TA_ALLOC_ERR; + } + + (stringTable->string)[i] = stringPtr; + } + } + + /* Return the table to the caller. */ + *table = stringTable; + + return TA_SUCCESS; +} + +TA_RetCode TA_FuncTableFree( TA_StringTable *table ) +{ + TA_StringTablePriv *stringTablePriv; + + if( table ) + { + stringTablePriv = (TA_StringTablePriv *)table->hiddenData; + if( !stringTablePriv ) + { + return TA_INTERNAL_ERROR(3); + } + + if( stringTablePriv->magicNumber != TA_STRING_TABLE_FUNC_MAGIC_NB ) + { + return TA_BAD_OBJECT; + } + + if( table->string ) + TA_Free( (void *)table->string ); + + TA_Free( table ); + } + + return TA_SUCCESS; +} + +TA_RetCode TA_GetFuncHandle( const char *name, const TA_FuncHandle **handle ) +{ + char firstChar, tmp; + const TA_FuncDef **funcDefTable; + const TA_FuncDef *funcDef; + const TA_FuncInfo *funcInfo; + unsigned int i, funcDefTableSize; + + /* A TA_FuncHandle is internally a TA_FuncDef. Let's find it + * by using the alphabetical tables. + */ + if( (name == NULL) || (handle == NULL) ) + { + return TA_BAD_PARAM; + } + + *handle = NULL; + + firstChar = name[0]; + + if( firstChar == '\0' ) + { + return TA_BAD_PARAM; + } + + tmp = (char)tolower( firstChar ); + + if( (tmp < 'a') || (tmp > 'z') ) + { + return TA_FUNC_NOT_FOUND; + } + + /* Identify the table. */ + tmp -= (char)'a'; + funcDefTable = TA_DEF_Tables[(int)tmp]; + + /* Identify the table size. */ + funcDefTableSize = *TA_DEF_TablesSize[(int)tmp]; + if( funcDefTableSize < 1 ) + { + return TA_FUNC_NOT_FOUND; + } + + /* Iterate all entries of the table and return as soon as found. */ + for( i=0; i < funcDefTableSize; i++ ) + { + funcDef = funcDefTable[i]; + if( !funcDef || !funcDef->funcInfo ) + return TA_INTERNAL_ERROR(3); + + funcInfo = funcDef->funcInfo; + if( !funcInfo ) + return TA_INTERNAL_ERROR(4); + + if( strcmp( funcInfo->name, name ) == 0 ) + { + *handle = (TA_FuncHandle *)funcDef; + return TA_SUCCESS; + } + } + + return TA_FUNC_NOT_FOUND; +} + +TA_RetCode TA_GetFuncInfo( const TA_FuncHandle *handle, + const TA_FuncInfo **funcInfo ) +{ + const TA_FuncDef *funcDef; + + if( !funcInfo || !handle ) + { + return TA_BAD_PARAM; + } + + /* Validate that this is a valid funcHandle. */ + funcDef = (const TA_FuncDef *)handle; + if( funcDef->magicNumber != TA_FUNC_DEF_MAGIC_NB ) + { + return TA_INVALID_HANDLE; + } + + *funcInfo = funcDef->funcInfo; + if( !funcDef->funcInfo ) + return TA_INVALID_HANDLE; + + return TA_SUCCESS; +} + +TA_RetCode TA_GetInputParameterInfo( const TA_FuncHandle *handle, + unsigned int paramIndex, + const TA_InputParameterInfo **info ) +{ + const TA_FuncDef *funcDef; + const TA_FuncInfo *funcInfo; + const TA_InputParameterInfo **inputTable; + + if( (handle == NULL) || (info == NULL) ) + { + return TA_BAD_PARAM; + } + + *info = NULL; + + /* Validate that this is a valid funcHandle. */ + funcDef = (const TA_FuncDef *)handle; + if( funcDef->magicNumber != TA_FUNC_DEF_MAGIC_NB ) + { + return TA_INVALID_HANDLE; + } + funcInfo = funcDef->funcInfo; + + if( !funcInfo ) return TA_INVALID_HANDLE; + + if( paramIndex >= funcInfo->nbInput ) + { + return TA_BAD_PARAM; + } + + inputTable = (const TA_InputParameterInfo **)funcDef->input; + + if( !inputTable ) + return TA_INTERNAL_ERROR(2); + + *info = inputTable[paramIndex]; + + if( !(*info) ) + return TA_INTERNAL_ERROR(3); + + return TA_SUCCESS; +} + +TA_RetCode TA_GetOptInputParameterInfo( const TA_FuncHandle *handle, + unsigned int paramIndex, + const TA_OptInputParameterInfo **info ) +{ + const TA_FuncDef *funcDef; + const TA_FuncInfo *funcInfo; + const TA_OptInputParameterInfo **inputTable; + + if( (handle == NULL) || (info == NULL) ) + { + return TA_BAD_PARAM; + } + + *info = NULL; + + /* Validate that this is a valid funcHandle. */ + funcDef = (const TA_FuncDef *)handle; + if( funcDef->magicNumber != TA_FUNC_DEF_MAGIC_NB ) + { + return TA_INVALID_HANDLE; + } + + funcInfo = funcDef->funcInfo; + + if( !funcInfo ) + return TA_INVALID_HANDLE; + + if( paramIndex >= funcInfo->nbOptInput ) + { + return TA_BAD_PARAM; + } + + inputTable = (const TA_OptInputParameterInfo **)funcDef->optInput; + + if( !inputTable ) + return TA_INTERNAL_ERROR(3); + + *info = inputTable[paramIndex]; + + if( !(*info) ) + return TA_INTERNAL_ERROR(4); + + return TA_SUCCESS; +} + +TA_RetCode TA_GetOutputParameterInfo( const TA_FuncHandle *handle, + unsigned int paramIndex, + const TA_OutputParameterInfo **info ) +{ + + const TA_FuncDef *funcDef; + const TA_FuncInfo *funcInfo; + const TA_OutputParameterInfo **outputTable; + + if( (handle == NULL) || (info == NULL) ) + { + return TA_BAD_PARAM; + } + + *info = NULL; + + /* Validate that this is a valid funcHandle. */ + funcDef = (const TA_FuncDef *)handle; + if( funcDef->magicNumber != TA_FUNC_DEF_MAGIC_NB ) + { + return TA_INVALID_HANDLE; + } + + funcInfo = funcDef->funcInfo; + + if( !funcInfo ) + { + return TA_INVALID_HANDLE; + } + + if( paramIndex >= funcInfo->nbOutput ) + { + return TA_BAD_PARAM; + } + + outputTable = (const TA_OutputParameterInfo **)funcDef->output; + + if( !outputTable ) + { + return TA_INTERNAL_ERROR(4); + } + + *info = outputTable[paramIndex]; + + if( !(*info) ) + { + return TA_INTERNAL_ERROR(5); + } + + return TA_SUCCESS; +} + +TA_RetCode TA_ParamHolderAlloc( const TA_FuncHandle *handle, + TA_ParamHolder **allocatedParams ) +{ + + TA_FuncDef *funcDef; + unsigned int allocSize, i; + TA_ParamHolderInput *input; + TA_ParamHolderOptInput *optInput; + TA_ParamHolderOutput *output; + + const TA_FuncInfo *funcInfo; + TA_ParamHolder *newParams; + TA_ParamHolderPriv *newParamsPriv; + + const TA_InputParameterInfo **inputInfo; + const TA_OptInputParameterInfo **optInputInfo; + const TA_OutputParameterInfo **outputInfo; + + /* Validate the parameters. */ + if( !handle || !allocatedParams) + { + return TA_BAD_PARAM; + } + + /* Validate that this is a valid funcHandle. */ + funcDef = (TA_FuncDef *)handle; + if( funcDef->magicNumber != TA_FUNC_DEF_MAGIC_NB ) + { + *allocatedParams = NULL; + return TA_INVALID_HANDLE; + } + + /* Get the TA_FuncInfo. */ + funcInfo = funcDef->funcInfo; + if( !funcInfo ) return TA_INVALID_HANDLE; + + /* Allocate the TA_ParamHolder. */ + newParams = (TA_ParamHolder *)TA_Malloc( sizeof(TA_ParamHolder) + sizeof(TA_ParamHolderPriv)); + if( !newParams ) + { + *allocatedParams = NULL; + return TA_ALLOC_ERR; + } + + memset( newParams, 0, sizeof(TA_ParamHolder) + sizeof(TA_ParamHolderPriv) ); + newParamsPriv = (TA_ParamHolderPriv *)(((char *)newParams)+sizeof(TA_ParamHolder)); + newParamsPriv->magicNumber = TA_PARAM_HOLDER_PRIV_MAGIC_NB; + newParams->hiddenData = newParamsPriv; + + /* From this point, TA_ParamHolderFree can be safely called. */ + + /* Allocate the array of structure holding the info + * for each parameter. + */ + if( funcInfo->nbInput == 0 ) return TA_INTERNAL_ERROR(2); + + allocSize = (funcInfo->nbInput) * sizeof(TA_ParamHolderInput); + input = (TA_ParamHolderInput *)TA_Malloc( allocSize ); + + if( !input ) + { + TA_ParamHolderFree( newParams ); + *allocatedParams = NULL; + return TA_ALLOC_ERR; + } + memset( input, 0, allocSize ); + newParamsPriv->in = input; + + if( funcInfo->nbOptInput == 0 ) + optInput = NULL; + else + { + allocSize = (funcInfo->nbOptInput) * sizeof(TA_ParamHolderOptInput); + optInput = (TA_ParamHolderOptInput *)TA_Malloc( allocSize ); + + if( !optInput ) + { + TA_ParamHolderFree( newParams ); + *allocatedParams = NULL; + return TA_ALLOC_ERR; + } + memset( optInput, 0, allocSize ); + } + newParamsPriv->optIn = optInput; + + allocSize = (funcInfo->nbOutput) * sizeof(TA_ParamHolderOutput); + output = (TA_ParamHolderOutput *)TA_Malloc( allocSize ); + if( !output ) + { + TA_ParamHolderFree( newParams ); + *allocatedParams = NULL; + return TA_ALLOC_ERR; + } + memset( output, 0, allocSize ); + newParamsPriv->out = output; + + newParamsPriv->funcInfo = funcInfo; + + inputInfo = (const TA_InputParameterInfo **)funcDef->input; + optInputInfo = (const TA_OptInputParameterInfo **)funcDef->optInput; + outputInfo = (const TA_OutputParameterInfo **)funcDef->output; + + for( i=0; i < funcInfo->nbInput; i++ ) + { + input[i].inputInfo = inputInfo[i]; + newParamsPriv->inBitmap <<= 1; + newParamsPriv->inBitmap |= 1; + } + + for( i=0; i < funcInfo->nbOptInput; i++ ) + { + optInput[i].optInputInfo = optInputInfo[i]; + if( optInput[i].optInputInfo->type == TA_OptInput_RealRange ) + optInput[i].data.optInReal = optInputInfo[i]->defaultValue; + else + optInput[i].data.optInInteger = (TA_Integer)optInputInfo[i]->defaultValue; + } + + for( i=0; i < funcInfo->nbOutput; i++ ) + { + output[i].outputInfo = outputInfo[i]; + newParamsPriv->outBitmap <<= 1; + newParamsPriv->outBitmap |= 1; + } + + /* Succcess, return the result to the caller. */ + *allocatedParams = newParams; + + return TA_SUCCESS; +} + +TA_RetCode TA_ParamHolderFree( TA_ParamHolder *paramsToFree ) +{ + TA_ParamHolderPriv *paramPriv; + + TA_ParamHolderInput *input; + TA_ParamHolderOptInput *optInput; + TA_ParamHolderOutput *output; + + if( !paramsToFree ) + { + return TA_SUCCESS; + } + + paramPriv = paramsToFree->hiddenData; + + if( !paramPriv ) + { + return TA_INVALID_PARAM_HOLDER; + } + + if( paramPriv->magicNumber != TA_PARAM_HOLDER_PRIV_MAGIC_NB ) + { + return TA_INVALID_PARAM_HOLDER; + } + + optInput = paramPriv->optIn; + if( optInput ) + TA_Free( optInput ); + + input = paramPriv->in; + if( input ) + TA_Free( input ); + + output = paramPriv->out; + if( output ) + TA_Free( output ); + + TA_Free( paramsToFree ); + + return TA_SUCCESS; +} + + +TA_RetCode TA_SetInputParamIntegerPtr( TA_ParamHolder *param, + unsigned int paramIndex, + const TA_Integer *value ) +{ + + TA_ParamHolderPriv *paramHolderPriv; + const TA_InputParameterInfo *paramInfo; + const TA_FuncInfo *funcInfo; + + if( (param == NULL) || (value == NULL) ) + { + return TA_BAD_PARAM; + } + + paramHolderPriv = (TA_ParamHolderPriv *)(param->hiddenData); + if( paramHolderPriv->magicNumber != TA_PARAM_HOLDER_PRIV_MAGIC_NB ) + { + return TA_INVALID_PARAM_HOLDER; + } + + /* Make sure this index really exist. */ + funcInfo = paramHolderPriv->funcInfo; + if( !funcInfo ) return TA_INVALID_HANDLE; + + if( paramIndex >= funcInfo->nbInput ) + { + return TA_BAD_PARAM; + } + + /* Verify the type of the parameter. */ + paramInfo = paramHolderPriv->in[paramIndex].inputInfo; + if( !paramInfo ) return TA_INTERNAL_ERROR(2); + if( paramInfo->type != TA_Input_Integer ) + { + return TA_INVALID_PARAM_HOLDER_TYPE; + } + + /* keep a copy of the provided parameter. */ + paramHolderPriv->in[paramIndex].data.inInteger = value; + + /* This parameter is now initialized, clear the corresponding bit. */ + paramHolderPriv->inBitmap &= ~(1<hiddenData); + if( paramHolderPriv->magicNumber != TA_PARAM_HOLDER_PRIV_MAGIC_NB ) + { + return TA_INVALID_PARAM_HOLDER; + } + + /* Make sure this index really exist. */ + funcInfo = paramHolderPriv->funcInfo; + if( !funcInfo ) return TA_INVALID_HANDLE; + + if( paramIndex >= funcInfo->nbInput ) + { + return TA_BAD_PARAM; + } + + /* Verify the type of the parameter. */ + paramInfo = paramHolderPriv->in[paramIndex].inputInfo; + if( !paramInfo ) return TA_INTERNAL_ERROR(2); + if( paramInfo->type != TA_Input_Real ) + { + return TA_INVALID_PARAM_HOLDER_TYPE; + } + + /* keep a copy of the provided parameter. */ + paramHolderPriv->in[paramIndex].data.inReal = value; + + /* This parameter is now initialized, clear the corresponding bit. */ + paramHolderPriv->inBitmap &= ~(1<hiddenData); + if( paramHolderPriv->magicNumber != TA_PARAM_HOLDER_PRIV_MAGIC_NB ) + { + return TA_INVALID_PARAM_HOLDER; + } + + /* Make sure this index really exist. */ + funcInfo = paramHolderPriv->funcInfo; + if( !funcInfo ) return TA_INVALID_HANDLE; + if( paramIndex >= funcInfo->nbInput ) + { + return TA_BAD_PARAM; + } + + /* Verify the type of the parameter. */ + paramInfo = paramHolderPriv->in[paramIndex].inputInfo; + if( !paramInfo ) return TA_INTERNAL_ERROR(2); + if( paramInfo->type != TA_Input_Price ) + { + return TA_INVALID_PARAM_HOLDER_TYPE; + } + + /* keep a copy of the provided parameter. */ + #define SET_PARAM_INFO(lowerParam,upperParam) \ + { \ + if( paramInfo->flags & TA_IN_PRICE_##upperParam ) \ + { \ + if( lowerParam == NULL ) \ + { \ + return TA_BAD_PARAM; \ + } \ + paramHolderPriv->in[paramIndex].data.inPrice.lowerParam = lowerParam; \ + } \ + } + + SET_PARAM_INFO(open, OPEN ); + SET_PARAM_INFO(high, HIGH ); + SET_PARAM_INFO(low, LOW ); + SET_PARAM_INFO(close, CLOSE ); + SET_PARAM_INFO(volume, VOLUME ); + SET_PARAM_INFO(openInterest, OPENINTEREST ); + + #undef SET_PARAM_INFO + + /* This parameter is now initialized, clear the corresponding bit. */ + paramHolderPriv->inBitmap &= ~(1<hiddenData); + if( paramHolderPriv->magicNumber != TA_PARAM_HOLDER_PRIV_MAGIC_NB ) + { + return TA_INVALID_PARAM_HOLDER; + } + + /* Make sure this index really exist. */ + funcInfo = paramHolderPriv->funcInfo; + if( !funcInfo ) return TA_INVALID_HANDLE; + if( paramIndex >= funcInfo->nbOptInput ) + { + return TA_BAD_PARAM; + } + + /* Verify the type of the parameter. */ + paramInfo = paramHolderPriv->optIn[paramIndex].optInputInfo; + if( !paramInfo ) return TA_INTERNAL_ERROR(2); + if( (paramInfo->type != TA_OptInput_IntegerRange) && + (paramInfo->type != TA_OptInput_IntegerList) ) + { + return TA_INVALID_PARAM_HOLDER_TYPE; + } + + /* keep a copy of the provided parameter. */ + paramHolderPriv->optIn[paramIndex].data.optInInteger = value; + + return TA_SUCCESS; +} + +TA_RetCode TA_SetOptInputParamReal( TA_ParamHolder *param, + unsigned int paramIndex, + TA_Real value ) +{ + TA_ParamHolderPriv *paramHolderPriv; + const TA_OptInputParameterInfo *paramInfo; + const TA_FuncInfo *funcInfo; + + if( param == NULL ) + { + return TA_BAD_PARAM; + } + + paramHolderPriv = (TA_ParamHolderPriv *)(param->hiddenData); + if( paramHolderPriv->magicNumber != TA_PARAM_HOLDER_PRIV_MAGIC_NB ) + { + return TA_INVALID_PARAM_HOLDER; + } + + /* Make sure this index really exist. */ + funcInfo = paramHolderPriv->funcInfo; + if( !funcInfo ) return TA_INVALID_HANDLE; + + if( paramIndex >= funcInfo->nbOptInput ) + { + return TA_BAD_PARAM; + } + + /* Verify the type of the parameter. */ + paramInfo = paramHolderPriv->optIn[paramIndex].optInputInfo; + if( !paramInfo ) return TA_INTERNAL_ERROR(2); + if( (paramInfo->type != TA_OptInput_RealRange) && + (paramInfo->type != TA_OptInput_RealList) ) + { + return TA_INVALID_PARAM_HOLDER_TYPE; + } + + /* keep a copy of the provided parameter. */ + paramHolderPriv->optIn[paramIndex].data.optInReal = value; + + return TA_SUCCESS; +} + + +/* Setup the parameters indicating where to store the output. */ +TA_RetCode TA_SetOutputParamIntegerPtr( TA_ParamHolder *param, + unsigned int paramIndex, + TA_Integer *out ) +{ + TA_ParamHolderPriv *paramHolderPriv; + const TA_OutputParameterInfo *paramInfo; + const TA_FuncInfo *funcInfo; + + if( (param == NULL) || (out == NULL) ) + { + return TA_BAD_PARAM; + } + + paramHolderPriv = (TA_ParamHolderPriv *)(param->hiddenData); + if( paramHolderPriv->magicNumber != TA_PARAM_HOLDER_PRIV_MAGIC_NB ) + { + return TA_INVALID_PARAM_HOLDER; + } + + /* Make sure this index really exist. */ + funcInfo = paramHolderPriv->funcInfo; + if( !funcInfo ) return TA_INVALID_HANDLE; + + if( paramIndex >= funcInfo->nbOutput ) + { + return TA_BAD_PARAM; + } + + /* Verify the type of the parameter. */ + paramInfo = paramHolderPriv->out[paramIndex].outputInfo; + if( !paramInfo ) return TA_INTERNAL_ERROR(2); + if( paramInfo->type != TA_Output_Integer ) + { + return TA_INVALID_PARAM_HOLDER_TYPE; + } + + /* keep a copy of the provided parameter. */ + paramHolderPriv->out[paramIndex].data.outInteger = out; + + /* This parameter is now initialized, clear the corresponding bit. */ + paramHolderPriv->outBitmap &= ~(1<hiddenData); + if( paramHolderPriv->magicNumber != TA_PARAM_HOLDER_PRIV_MAGIC_NB ) + { + return TA_INVALID_PARAM_HOLDER; + } + + /* Make sure this index really exist. */ + funcInfo = paramHolderPriv->funcInfo; + if( !funcInfo ) return TA_INVALID_HANDLE; + + if( paramIndex >= funcInfo->nbOutput ) + { + return TA_BAD_PARAM; + } + + /* Verify the type of the parameter. */ + paramInfo = paramHolderPriv->out[paramIndex].outputInfo; + if( !paramInfo ) return TA_INTERNAL_ERROR(2); + if( paramInfo->type != TA_Output_Real ) + { + return TA_INVALID_PARAM_HOLDER_TYPE; + } + + /* keep a copy of the provided parameter. */ + paramHolderPriv->out[paramIndex].data.outReal = out; + + /* This parameter is now initialized, clear the corresponding bit. */ + paramHolderPriv->outBitmap &= ~(1<hiddenData); + if( paramHolderPriv->magicNumber != TA_PARAM_HOLDER_PRIV_MAGIC_NB ) + { + return TA_INVALID_PARAM_HOLDER; + } + + /* Get the pointer on the lookback function. */ + funcInfo = paramHolderPriv->funcInfo; + if( !funcInfo ) return TA_INVALID_HANDLE; + + funcDef = (const TA_FuncDef *)funcInfo->handle; + if( !funcDef ) return TA_INTERNAL_ERROR(2); + lookbackFunction = funcDef->lookback; + if( !lookbackFunction ) return TA_INTERNAL_ERROR(2); + + /* Perform the function call. */ + *lookback = (*lookbackFunction)( paramHolderPriv ); + + return TA_SUCCESS; +} + +/* Finally, call a TA function with the parameters. */ +TA_RetCode TA_CallFunc( const TA_ParamHolder *param, + TA_Integer startIdx, + TA_Integer endIdx, + TA_Integer *outBegIdx, + TA_Integer *outNbElement ) +{ + TA_RetCode retCode; + const TA_ParamHolderPriv *paramHolderPriv; + + const TA_FuncDef *funcDef; + const TA_FuncInfo *funcInfo; + TA_FrameFunction function; + + if( (param == NULL) || + (outBegIdx == NULL) || + (outNbElement == NULL) ) + { + return TA_BAD_PARAM; + } + + paramHolderPriv = (TA_ParamHolderPriv *)(param->hiddenData); + if( paramHolderPriv->magicNumber != TA_PARAM_HOLDER_PRIV_MAGIC_NB ) + { + return TA_INVALID_PARAM_HOLDER; + } + + /* Check that all parameters are initialize (except the optInput). */ + if( paramHolderPriv->inBitmap != 0 ) + { + return TA_INPUT_NOT_ALL_INITIALIZE; + } + + if( paramHolderPriv->outBitmap != 0 ) + { + return TA_OUTPUT_NOT_ALL_INITIALIZE; + } + + /* Get the pointer on the function */ + funcInfo = paramHolderPriv->funcInfo; + if( !funcInfo ) return TA_INVALID_HANDLE; + funcDef = (const TA_FuncDef *)funcInfo->handle; + if( !funcDef ) return TA_INTERNAL_ERROR(2); + function = funcDef->function; + if( !function ) return TA_INTERNAL_ERROR(2); + + /* Perform the function call. */ + retCode = (*function)( paramHolderPriv, startIdx, endIdx, + outBegIdx, outNbElement ); + return retCode; +} + +/**** Local functions definitions. ****/ +static TA_RetCode getGroupId( const char *groupString, unsigned int *groupId ) +{ + unsigned int i; + + for( i=0; i < TA_NB_GROUP_ID; i++ ) + { + if( strcmp( TA_GroupString[i], groupString ) == 0 ) + { + *groupId = i; + return TA_SUCCESS; + } + } + + return TA_GROUP_NOT_FOUND; +} + +static TA_RetCode getGroupSize( TA_GroupId groupId, unsigned int *groupSize ) +{ + #ifdef TA_GEN_CODE + /* Code used only when compiled with gen_code. */ + + unsigned int i, j; + const TA_FuncDef **funcDefTable; + const TA_FuncDef *funcDef; + unsigned int tableSize; + unsigned int nbFuncFound; + + if( groupId >= TA_NB_GROUP_ID ) return TA_INTERNAL_ERROR(2); + if( !groupSize ) return TA_INTERNAL_ERROR(2); + + nbFuncFound = 0; + for( i=0; i < 26; i++ ) + { + funcDefTable = TA_DEF_Tables[i]; + tableSize = *(TA_DEF_TablesSize[i]); + + for( j=0; j < tableSize; j++ ) + { + funcDef = funcDefTable[j]; + if( funcDef && (funcDef->groupId == groupId) ) + nbFuncFound++; + } + } + + *groupSize = nbFuncFound; + + return TA_SUCCESS; + #else + /* Optimized code in the final library. */ + *groupSize = TA_PerGroupSize[groupId]; + + return TA_SUCCESS; + #endif +} + +#ifdef TA_GEN_CODE + static TA_RetCode getFuncNameByIdx( TA_GroupId groupId, + unsigned int idx, + const char **stringPtr ) +#else + static TA_RetCode getFuncNameByIdx( TA_GroupId groupId, + unsigned int idx, + const char **stringPtr ) +#endif +{ + #ifdef TA_GEN_CODE + /* Code used only when compiled with gen_code. */ + + unsigned int curIdx; + unsigned int i, j, found; + const TA_FuncDef **funcDefTable; + unsigned int tableSize; + const TA_FuncInfo *funcInfo; + + if( !stringPtr ) return TA_INTERNAL_ERROR(2); + + curIdx = 0; + found = 0; + for( i=0; (i < 26) && !found; i++ ) + { + funcDefTable = TA_DEF_Tables[i]; + tableSize = *(TA_DEF_TablesSize[i]); + + for( j=0; (j < tableSize) && !found; j++ ) + { + if( funcDefTable[j]->groupId == groupId ) + { + if( idx == curIdx ) + { + funcInfo = funcDefTable[j]->funcInfo; + if( !funcInfo ) return TA_INTERNAL_ERROR(2); + *stringPtr = funcInfo->name; + found = 1; + } + curIdx++; + } + } + } + + if( found != 1 ) return TA_INTERNAL_ERROR(2); + if( !(*stringPtr) ) return TA_INTERNAL_ERROR(2); + + return TA_SUCCESS; + #else + /* Optimized code in the final library. */ + const TA_FuncDef **funcDefTable; + const TA_FuncInfo *funcInfo; + + funcDefTable = TA_PerGroupFuncDef[groupId]; + funcInfo = funcDefTable[idx]->funcInfo; + *stringPtr = funcInfo->name; + + return TA_SUCCESS; + #endif +} diff --git a/src/ta_abstract/ta_def_ui.c b/src/ta_abstract/ta_def_ui.c new file mode 100644 index 000000000..49d8adbcf --- /dev/null +++ b/src/ta_abstract/ta_def_ui.c @@ -0,0 +1,554 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * MF Mario Fortier + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 130101 MF First version. + * 111503 MF Add TA_DEF_UI_Input_Price_CV + */ + +/* Description: + * Defines const structures representing how data can be + * input/output from the TA functions. + * These structure are mainly used to build the tables\table.c files. + */ +#include +#include "ta_abstract.h" +#include "ta_def_ui.h" + +const char TA_GroupId_MathOperatorsString[] = "Math Operators"; +const char TA_GroupId_MathTransformString[] = "Math Transform"; +const char TA_GroupId_OverlapStudiesString[] = "Overlap Studies"; +const char TA_GroupId_VolatilityIndicatorsString[] = "Volatility Indicators"; +const char TA_GroupId_MomentumIndicatorsString[] = "Momentum Indicators"; +const char TA_GroupId_CycleIndicatorsString[] = "Cycle Indicators"; +const char TA_GroupId_VolumeIndicatorsString[] = "Volume Indicators"; +const char TA_GroupId_PatternRecognitionString[] = "Pattern Recognition"; +const char TA_GroupId_StatisticString[] = "Statistic Functions"; +const char TA_GroupId_PriceTransformString[] = "Price Transform"; + +const char *TA_GroupString[TA_NB_GROUP_ID] = +{ + &TA_GroupId_MathOperatorsString[0], + &TA_GroupId_MathTransformString[0], + &TA_GroupId_OverlapStudiesString[0], + &TA_GroupId_VolatilityIndicatorsString[0], + &TA_GroupId_MomentumIndicatorsString[0], + &TA_GroupId_CycleIndicatorsString[0], + &TA_GroupId_VolumeIndicatorsString[0], + &TA_GroupId_PatternRecognitionString[0], + &TA_GroupId_StatisticString[0], + &TA_GroupId_PriceTransformString[0] +}; + +/************************************************************* + * Define from here the TA_InputParameterInfo + * These shall be sufficient for all possible TA functions. + *************************************************************/ +const TA_InputParameterInfo TA_DEF_UI_Input_Price_OHLCV = + { TA_Input_Price, "inPriceOHLCV", + TA_IN_PRICE_OPEN | + TA_IN_PRICE_HIGH | + TA_IN_PRICE_LOW | + TA_IN_PRICE_CLOSE | + TA_IN_PRICE_VOLUME }; + +const TA_InputParameterInfo TA_DEF_UI_Input_Price_HLCV = + { TA_Input_Price, "inPriceHLCV", + TA_IN_PRICE_HIGH | + TA_IN_PRICE_LOW | + TA_IN_PRICE_CLOSE | + TA_IN_PRICE_VOLUME }; + +const TA_InputParameterInfo TA_DEF_UI_Input_Price_OHLC = + { TA_Input_Price, "inPriceOHLC", + TA_IN_PRICE_OPEN | + TA_IN_PRICE_HIGH | + TA_IN_PRICE_LOW | + TA_IN_PRICE_CLOSE }; + +const TA_InputParameterInfo TA_DEF_UI_Input_Price_HLC = + { TA_Input_Price, "inPriceHLC", + TA_IN_PRICE_HIGH | + TA_IN_PRICE_LOW | + TA_IN_PRICE_CLOSE }; + +const TA_InputParameterInfo TA_DEF_UI_Input_Price_HL = + { TA_Input_Price, "inPriceHL", + TA_IN_PRICE_HIGH | + TA_IN_PRICE_LOW }; + +const TA_InputParameterInfo TA_DEF_UI_Input_Price_CV = + { TA_Input_Price, "inPriceCV", + TA_IN_PRICE_CLOSE | + TA_IN_PRICE_VOLUME }; + +const TA_InputParameterInfo TA_DEF_UI_Input_Price_V = + { TA_Input_Price, "inPriceV", + TA_IN_PRICE_VOLUME }; + +const TA_InputParameterInfo TA_DEF_UI_Input_Real = + { TA_Input_Real, "inReal", 0 }; + +const TA_InputParameterInfo TA_DEF_UI_Input_Periods = + { TA_Input_Real, "inPeriods", 0 }; + +const TA_InputParameterInfo TA_DEF_UI_Input_Real0 = + { TA_Input_Real, "inReal0", 0 }; + +const TA_InputParameterInfo TA_DEF_UI_Input_Real1 = + { TA_Input_Real, "inReal1", 0 }; + +const TA_InputParameterInfo TA_DEF_UI_Input_Integer = + { TA_Input_Integer, "inInteger", 0 }; + + +/************************************************************* + * Define from here the TA_OutputParameterInfo + * These shall be sufficient for most of the TA functions. + *************************************************************/ +const TA_OutputParameterInfo TA_DEF_UI_Output_Real = + { TA_Output_Real, "outReal", TA_OUT_LINE }; + +const TA_OutputParameterInfo TA_DEF_UI_Output_Integer = + { TA_Output_Integer, "outInteger", TA_OUT_LINE }; + +/***************************************************** + * Define from here the TA_Integer ranges + ****************************************************/ + +const TA_IntegerRange TA_DEF_TimePeriod_Positive = +{ + 1, /* min */ + 100000, /* max */ + 1, /* suggested start */ + 200, /* suggested end */ + 1 /* suggested increment */ +}; + +const TA_IntegerRange TA_DEF_TimePeriod_Positive_Minimum5 = +{ + 5, /* min */ + 100000, /* max */ + 5, /* suggested start */ + 200, /* suggested end */ + 1 /* suggested increment */ +}; + +const TA_IntegerRange TA_DEF_TimePeriod_Positive_Minimum2 = +{ + 2, /* min */ + 100000, /* max */ + 4, /* suggested start */ + 200, /* suggested end */ + 1 /* suggested increment */ +}; + +const TA_IntegerRange TA_DEF_HorizontalShiftPeriod = +{ + -200, /* min */ + 200, /* max */ + 0, /* suggested start */ + 8, /* suggested end */ + 1 /* suggested increment */ +}; + + +/***************************************************** + * Define from here the TA_Real ranges + ****************************************************/ +const TA_RealRange TA_DEF_VerticalShiftPercent = +{ + -99.0, /* min */ + 99.0, /* max */ + 1, /* precision */ + -10.0, /* suggested start */ + 10.0, /* suggested end */ + 0.5 /* suggested increment */ +}; + +const TA_RealRange TA_DEF_NbDeviation = +{ + TA_REAL_MIN, /* min */ + TA_REAL_MAX, /* max */ + 2, /* precision */ + -2.0, /* suggested start */ + 2.0, /* suggested end */ + 0.2 /* suggested increment */ +}; + +const TA_RealRange TA_DEF_ZeroToOne = +{ + 0.00, /* min */ + 1.00, /* max */ + 2, /* precision */ + 0.01, /* suggested start */ + 1.00, /* suggested end */ + 0.05 /* suggested increment */ +}; + +const TA_RealRange TA_DEF_RealPositive = +{ + 0.00, /* min */ + TA_REAL_MAX, /* max */ + 0, /* precision */ + 0.0, /* suggested start */ + 0.0, /* suggested end */ + 0.0 /* suggested increment */ +}; + +/***************************************************** + * Define from here the TA_OptInputParameterInfo. + ****************************************************/ + +const TA_OptInputParameterInfo TA_DEF_UI_MinPeriod = +{ + TA_OptInput_IntegerRange, /* type */ + "optInMinPeriod", /* paramName */ + 0, /* flags */ + + "Minimum Period", /* displayName */ + (const void *)&TA_DEF_TimePeriod_Positive_Minimum2, /* dataSet */ + 2, /* defaultValue */ + "Value less than minimum will be changed to Minimum period", /* hint */ + + NULL /* helpFile */ +}; + +const TA_OptInputParameterInfo TA_DEF_UI_MaxPeriod = +{ + TA_OptInput_IntegerRange, /* type */ + "optInMaxPeriod", /* paramName */ + 0, /* flags */ + + "Maximum Period", /* displayName */ + (const void *)&TA_DEF_TimePeriod_Positive_Minimum2, /* dataSet */ + 30, /* defaultValue */ + "Value higher than maximum will be changed to Maximum period", /* hint */ + + NULL /* helpFile */ +}; + +const TA_OptInputParameterInfo TA_DEF_UI_TimePeriod_30_MINIMUM2 = +{ + TA_OptInput_IntegerRange, /* type */ + "optInTimePeriod", /* paramName */ + 0, /* flags */ + + "Time Period", /* displayName */ + (const void *)&TA_DEF_TimePeriod_Positive_Minimum2, /* dataSet */ + 30, /* defaultValue */ + "Number of period", /* hint */ + + NULL /* helpFile */ +}; + +const TA_OptInputParameterInfo TA_DEF_UI_TimePeriod_21_MINIMUM2 = +{ + TA_OptInput_IntegerRange, /* type */ + "optInTimePeriod", /* paramName */ + 0, /* flags */ + + "Time Period", /* displayName */ + (const void *)&TA_DEF_TimePeriod_Positive_Minimum2, /* dataSet */ + 21, /* defaultValue */ + "Number of period", /* hint */ + + NULL /* helpFile */ +}; + +const TA_OptInputParameterInfo TA_DEF_UI_TimePeriod_14_MINIMUM2 = +{ + TA_OptInput_IntegerRange, /* type */ + "optInTimePeriod", /* paramName */ + 0, /* flags */ + + "Time Period", /* displayName */ + (const void *)&TA_DEF_TimePeriod_Positive_Minimum2, /* dataSet */ + 14, /* defaultValue */ + "Number of period", /* hint */ + + NULL /* helpFile */ +}; + +const TA_OptInputParameterInfo TA_DEF_UI_TimePeriod_14_MINIMUM5 = +{ + TA_OptInput_IntegerRange, /* type */ + "optInTimePeriod", /* paramName */ + 0, /* flags */ + + "Time Period", /* displayName */ + (const void *)&TA_DEF_TimePeriod_Positive_Minimum5, /* dataSet */ + 14, /* defaultValue */ + "Number of period", /* hint */ + + NULL /* helpFile */ +}; + +const TA_OptInputParameterInfo TA_DEF_UI_TimePeriod_10_MINIMUM2 = +{ + TA_OptInput_IntegerRange, /* type */ + "optInTimePeriod", /* paramName */ + 0, /* flags */ + + "Time Period", /* displayName */ + (const void *)&TA_DEF_TimePeriod_Positive_Minimum2, /* dataSet */ + 10, /* defaultValue */ + "Number of period", /* hint */ + + NULL /* helpFile */ +}; + +const TA_OptInputParameterInfo TA_DEF_UI_TimePeriod_5_MINIMUM2 = +{ + TA_OptInput_IntegerRange, /* type */ + "optInTimePeriod", /* paramName */ + 0, /* flags */ + + "Time Period", /* displayName */ + (const void *)&TA_DEF_TimePeriod_Positive_Minimum2, /* dataSet */ + 5, /* defaultValue */ + "Number of period", /* hint */ + + NULL /* helpFile */ +}; + +const TA_OptInputParameterInfo TA_DEF_UI_TimePeriod_30 = +{ + TA_OptInput_IntegerRange, /* type */ + "optInTimePeriod", /* paramName */ + 0, /* flags */ + + "Time Period", /* displayName */ + (const void *)&TA_DEF_TimePeriod_Positive, /* dataSet */ + 30, /* defaultValue */ + "Number of period", /* hint */ + + NULL /* helpFile */ +}; + +const TA_OptInputParameterInfo TA_DEF_UI_TimePeriod_14 = +{ + TA_OptInput_IntegerRange, /* type */ + "optInTimePeriod", /* paramName */ + 0, /* flags */ + + "Time Period", /* displayName */ + (const void *)&TA_DEF_TimePeriod_Positive, /* dataSet */ + 14, /* defaultValue */ + "Number of period", /* hint */ + + NULL /* helpFile */ +}; + +const TA_OptInputParameterInfo TA_DEF_UI_TimePeriod_10 = +{ + TA_OptInput_IntegerRange, /* type */ + "optInTimePeriod", /* paramName */ + 0, /* flags */ + + "Time Period", /* displayName */ + (const void *)&TA_DEF_TimePeriod_Positive, /* dataSet */ + 10, /* defaultValue */ + "Number of period", /* hint */ + + NULL /* helpFile */ +}; + +const TA_OptInputParameterInfo TA_DEF_UI_TimePeriod_5 = +{ + TA_OptInput_IntegerRange, /* type */ + "optInTimePeriod", /* paramName */ + 0, /* flags */ + + "Time Period", /* displayName */ + (const void *)&TA_DEF_TimePeriod_Positive, /* dataSet */ + 5, /* defaultValue */ + "Number of period", /* hint */ + + NULL /* helpFile */ +}; + + +/* Use for the multiplier of standard deviations. */ +const TA_OptInputParameterInfo TA_DEF_UI_NbDeviation = +{ + TA_OptInput_RealRange, /* type */ + "optInNbDev", /* paramName */ + 0, /* flags */ + + "Deviations", /* displayName */ + (const void *)&TA_DEF_NbDeviation, /* dataSet */ + 1.0, /* defaultValue */ + "Nb of deviations", /* hint */ + + NULL /* helpFile */ +}; + +const TA_OptInputParameterInfo TA_DEF_UI_Penetration_30 = +{ + TA_OptInput_RealRange, /* type */ + "optInPenetration", /* paramName */ + 0, /* flags */ + + "Penetration", /* displayName */ + (const void *)&TA_DEF_RealPositive, /* dataSet */ + 0.3, /* defaultValue */ + "Percentage of penetration of a candle within another candle", /* hint */ + + NULL /* helpFile */ +}; + +const TA_OptInputParameterInfo TA_DEF_UI_Penetration_50 = +{ + TA_OptInput_RealRange, /* type */ + "optInPenetration", /* paramName */ + 0, /* flags */ + + "Penetration", /* displayName */ + (const void *)&TA_DEF_RealPositive, /* dataSet */ + 0.5, /* defaultValue */ + "Percentage of penetration of a candle within another candle", /* hint */ + + NULL /* helpFile */ +}; + +const TA_OptInputParameterInfo TA_DEF_UI_VerticalShift = +{ + TA_OptInput_RealRange, /* type */ + "optInVertShift", /* paramName */ + TA_OPTIN_IS_PERCENT, /* flags */ + + "Vertical Shift", /* displayName */ + (const void *)&TA_DEF_VerticalShiftPercent, /* dataSet */ + 0, /* defaultValue */ + "Positive number shift upwards, negative downwards", /* hint */ + + NULL /* helpFile */ +}; + +const TA_OptInputParameterInfo TA_DEF_UI_HorizontalShift = +{ + TA_OptInput_IntegerRange, /* type */ + "optInHorizShift", /* paramName */ + 0, /* flags */ + + "Horizontal Shift", /* displayName */ + (const void *)&TA_DEF_HorizontalShiftPeriod, /* dataSet */ + 0, /* defaultValue */ + "Positive number shift 'n' period to the right, negative shift to the left", /* hint */ + + NULL /* helpFile */ +}; + +/* Define the values available for the MA function. + * + * Many TA function using the MA internally may wish to + * re-use this parameter as one of their own. That way a + * new MA will provide automatically a new way of calculating + * to a multitude of other TA functions. + */ +static const TA_IntegerDataPair TA_MA_TypeDataPair[] = +{ + {0,"SMA"}, + {1,"EMA"}, + {2,"WMA"}, + {3,"DEMA" }, + {4,"TEMA" }, + {5,"TRIMA"}, + {6,"KAMA" }, + {7,"MAMA" }, + {8,"T3"} + /*{...,"Linear Regression"}*/ +}; + +const TA_IntegerList TA_MA_TypeList = +{ + &TA_MA_TypeDataPair[0], + sizeof(TA_MA_TypeDataPair)/sizeof(TA_IntegerDataPair) +}; + +const TA_OptInputParameterInfo TA_DEF_UI_MA_Method = +{ + TA_OptInput_IntegerList, /* type */ + "optInMAType", /* paramName */ + 0, /* flags */ + + "MA Type", /* displayName */ + (const void *)&TA_MA_TypeList, /* dataSet */ + 0, /* defaultValue = simple average */ + "Type of Moving Average", /* hint */ + + NULL /* helpFile */ +}; + +/* When a TA function needs two period (often called + * a fast and slow period). + */ +const TA_OptInputParameterInfo TA_DEF_UI_Fast_Period = +{ + TA_OptInput_IntegerRange, /* type */ + "optInFastPeriod", /* paramName */ + 0, /* flags */ + + "Fast Period", /* displayName */ + (const void *)&TA_DEF_TimePeriod_Positive_Minimum2, /* dataSet */ + 12, /* defaultValue */ + "Number of period for the fast MA", /* hint */ + + NULL /* helpFile */ +}; + +const TA_OptInputParameterInfo TA_DEF_UI_Slow_Period = +{ + TA_OptInput_IntegerRange, /* type */ + "optInSlowPeriod", /* paramName */ + 0, /* flags */ + + "Slow Period", /* displayName */ + (const void *)&TA_DEF_TimePeriod_Positive_Minimum2, /* dataSet */ + 26, /* defaultValue */ + "Number of period for the slow MA", /* hint */ + + NULL /* helpFile */ +}; + diff --git a/src/ta_abstract/ta_def_ui.h b/src/ta_abstract/ta_def_ui.h new file mode 100644 index 000000000..a02f0c4c7 --- /dev/null +++ b/src/ta_abstract/ta_def_ui.h @@ -0,0 +1,291 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +#ifndef TA_DEF_UI_H +#define TA_DEF_UI_H + +/* Offer pre-defined user interface constant. + * + * This allows to avoid to duplicate static data for + * common user interface elements. + */ + +#ifndef TA_ABSTRACT_H + #include "ta_abstract.h" +#endif + +#ifndef TA_FRAME_PRIV_H + #include "ta_frame_priv.h" +#endif + +#if !defined(TA_GEN_CODE) && !defined( TA_FRAME_H ) + #include "ta_frame.h" +#endif + +typedef enum +{ + /* If you modify this enum, make sure you update ta_def_ui.c */ + TA_GroupId_MathOperators, + TA_GroupId_MathTransform, + TA_GroupId_OverlapStudies, + TA_GroupId_VolatilityIndicators, + TA_GroupId_MomentumIndicators, + TA_GroupId_CycleIndicators, + TA_GroupId_VolumeIndicators, + TA_GroupId_PatternRecognition, + TA_GroupId_Statistic, + TA_GroupId_PriceTransform, + TA_NB_GROUP_ID +} TA_GroupId; + +extern const char TA_GroupId_MathOperatorsString[]; +extern const char TA_GroupId_MathTransformString[]; +extern const char TA_GroupId_OverlapStudiesString[]; +extern const char TA_GroupId_VolatilityIndicatorsString[]; +extern const char TA_GroupId_MomentumIndicatorsString[]; +extern const char TA_GroupId_CycleIndicatorsString[]; +extern const char TA_GroupId_VolumeIndicatorsString[]; +extern const char TA_GroupId_PatternRecognitionString[]; +extern const char TA_GroupId_StatisticString[]; +extern const char TA_GroupId_PriceTransformString[]; + +extern const char *TA_GroupString[TA_NB_GROUP_ID]; + +/* Inputs */ +extern const TA_InputParameterInfo TA_DEF_UI_Input_Real; +extern const TA_InputParameterInfo TA_DEF_UI_Input_Real0; +extern const TA_InputParameterInfo TA_DEF_UI_Input_Real1; +extern const TA_InputParameterInfo TA_DEF_UI_Input_Integer; +extern const TA_InputParameterInfo TA_DEF_UI_Input_Price_OHLCV; +extern const TA_InputParameterInfo TA_DEF_UI_Input_Price_HLCV; +extern const TA_InputParameterInfo TA_DEF_UI_Input_Price_OHLC; +extern const TA_InputParameterInfo TA_DEF_UI_Input_Price_HLC; +extern const TA_InputParameterInfo TA_DEF_UI_Input_Price_HL; +extern const TA_InputParameterInfo TA_DEF_UI_Input_Price_CV; +extern const TA_InputParameterInfo TA_DEF_UI_Input_Price_V; +extern const TA_InputParameterInfo TA_DEF_UI_Input_Periods; + + +/* Outputs. */ +extern const TA_OutputParameterInfo TA_DEF_UI_Output_Real; +extern const TA_OutputParameterInfo TA_DEF_UI_Output_Integer; +extern const TA_OutputParameterInfo TA_DEF_UI_Output_Lines; + +/* Optional Inputs. */ +extern const TA_OptInputParameterInfo TA_DEF_UI_TimePeriod_30; +extern const TA_OptInputParameterInfo TA_DEF_UI_TimePeriod_14; +extern const TA_OptInputParameterInfo TA_DEF_UI_TimePeriod_10; +extern const TA_OptInputParameterInfo TA_DEF_UI_TimePeriod_5; + +extern const TA_OptInputParameterInfo TA_DEF_UI_TimePeriod_30_MINIMUM2; +extern const TA_OptInputParameterInfo TA_DEF_UI_TimePeriod_21_MINIMUM2; +extern const TA_OptInputParameterInfo TA_DEF_UI_TimePeriod_14_MINIMUM2; +extern const TA_OptInputParameterInfo TA_DEF_UI_TimePeriod_14_MINIMUM5; +extern const TA_OptInputParameterInfo TA_DEF_UI_TimePeriod_10_MINIMUM2; +extern const TA_OptInputParameterInfo TA_DEF_UI_TimePeriod_5_MINIMUM2; + +extern const TA_OptInputParameterInfo TA_DEF_UI_VerticalShift; +extern const TA_OptInputParameterInfo TA_DEF_UI_HorizontalShift; + +extern const TA_OptInputParameterInfo TA_DEF_UI_MA_Method; +extern const TA_OptInputParameterInfo TA_DEF_UI_Fast_Period; +extern const TA_OptInputParameterInfo TA_DEF_UI_Slow_Period; + +extern const TA_OptInputParameterInfo TA_DEF_UI_NbDeviation; + +extern const TA_OptInputParameterInfo TA_DEF_UI_Penetration_30; +extern const TA_OptInputParameterInfo TA_DEF_UI_Penetration_50; + +extern const TA_OptInputParameterInfo TA_DEF_UI_MinPeriod; +extern const TA_OptInputParameterInfo TA_DEF_UI_MaxPeriod; + +/* Re-usable ranges. */ +extern const TA_IntegerRange TA_DEF_TimePeriod_Positive; +extern const TA_IntegerRange TA_DEF_TimePeriod_Positive_Minimum2; +extern const TA_IntegerRange TA_DEF_TimePeriod_Positive_Minimum5; + +extern const TA_RealRange TA_DEF_VerticalShiftPercent; +extern const TA_IntegerRange TA_DEF_HorizontalShiftPeriod; +extern const TA_RealRange TA_DEF_NbDeviation; +extern const TA_RealRange TA_DEF_ZeroToOne; +extern const TA_RealRange TA_DEF_RealPositive; + +/* Useful to build your own TA_DEF_UI with the list of + * implemented Moving Average type. + */ +extern const TA_IntegerList TA_MA_TypeList; + +/* An internal structure for coordinating all these const info. + * One TA_FuncDef instance will exist for each TA function. + */ +typedef struct +{ + /* Magic number is used to detect internal error. */ + const unsigned int magicNumber; + + /* The function will belong to this group. */ + const TA_GroupId groupId; + + /* Some more info. */ + const TA_FuncInfo * const funcInfo; + + /* Description of the parameters. */ + const TA_InputParameterInfo * const input; + const TA_OptInputParameterInfo * const optInput; + const TA_OutputParameterInfo * const output; + + /* Entry point of the TA function and its lookback function. */ + const TA_FrameFunction function; + const TA_FrameLookback lookback; +} TA_FuncDef; + +/* The following MACROs are helpers being used in + * the tables\table.c files. + */ +#if !defined( TA_GEN_CODE ) + /* This definition is used when compiling the end-user library. */ + #define DEF_FUNCTION( name, \ + groupId, \ + hint, \ + camelCaseName, \ + flags ) \ + \ + TA_FuncInfo TA_INFO_##name; \ + \ + const TA_FuncDef TA_DEF_##name = \ + { \ + TA_FUNC_DEF_MAGIC_NB, \ + groupId, \ + &TA_INFO_##name, \ + (const TA_InputParameterInfo * const)&TA_##name##_Inputs[0], \ + (const TA_OptInputParameterInfo * const)&TA_##name##_OptInputs[0], \ + (const TA_OutputParameterInfo * const)&TA_##name##_Outputs[0], \ + TA_##name##_FramePP, \ + TA_##name##_FramePPLB \ + }; \ + TA_FuncInfo TA_INFO_##name = \ + { \ + (const char * const)#name, \ + (const char * const)groupId##String, \ + (const char * const)hint, \ + (const char * const)camelCaseName, \ + (const int)flags, \ + (sizeof(TA_##name##_Inputs) / sizeof(TA_InputParameterInfo *)) - 1, \ + (sizeof(TA_##name##_OptInputs)/ sizeof(TA_OptInputParameterInfo *))- 1, \ + (sizeof(TA_##name##_Outputs) / sizeof(TA_OutputParameterInfo *)) - 1, \ + (const TA_FuncHandle * const)&TA_DEF_##name \ + }; +#else + /* This definition is used only when compiling for gencode. + * Because some pointers may not be defined before gencode + * is run at least once, some value are set to NULL. + */ + #define DEF_FUNCTION( name, \ + groupId, \ + hint, \ + camelCaseName, \ + flags ) \ + \ + TA_FuncInfo TA_INFO_##name; \ + \ + const TA_FuncDef TA_DEF_##name = \ + { \ + TA_FUNC_DEF_MAGIC_NB, \ + groupId, \ + &TA_INFO_##name, \ + (const TA_InputParameterInfo * const)&TA_##name##_Inputs[0], \ + (const TA_OptInputParameterInfo * const)&TA_##name##_OptInputs[0], \ + (const TA_OutputParameterInfo * const)&TA_##name##_Outputs[0], \ + NULL, \ + NULL \ + }; \ + TA_FuncInfo TA_INFO_##name = \ + { \ + (const char * const)#name, \ + (const char * const)groupId##String, \ + (const char * const)hint, \ + (const char * const)camelCaseName, \ + (const int)flags, \ + (sizeof(TA_##name##_Inputs) / sizeof(TA_InputParameterInfo *)) - 1, \ + (sizeof(TA_##name##_OptInputs)/ sizeof(TA_OptInputParameterInfo *))- 1, \ + (sizeof(TA_##name##_Outputs) / sizeof(TA_OutputParameterInfo *)) - 1, \ + (const TA_FuncHandle * const)&TA_DEF_##name \ + }; +#endif + +#define ADD_TO_TABLE(name) &TA_DEF_##name + +/* Utility Macro to quickly define Math operator operating on one array + * with no optional parameter. + */ +#define DEF_MATH_UNARY_OPERATOR(NAME,HINT,CAMELCASENAME) \ + static const TA_InputParameterInfo *TA_##NAME##_Inputs[] = \ +{ \ + &TA_DEF_UI_Input_Real, \ + NULL \ +}; \ +static const TA_OutputParameterInfo *TA_##NAME##_Outputs[] = \ +{ \ + &TA_DEF_UI_Output_Real, \ + NULL \ +}; \ + static const TA_OptInputParameterInfo *TA_##NAME##_OptInputs[] = { NULL }; \ +DEF_FUNCTION( NAME, /* name */ \ + TA_GroupId_MathTransform, /* groupId */ \ + HINT, /* hint */ \ + CAMELCASENAME, /* CamelCase name */ \ + 0 /* flags */ \ + ); + +#define DEF_MATH_BINARY_OPERATOR(NAME,HINT,CAMELCASENAME) \ + static const TA_InputParameterInfo *TA_##NAME##_Inputs[] = \ +{ \ + &TA_DEF_UI_Input_Real0, \ + &TA_DEF_UI_Input_Real1, \ + NULL \ +}; \ +static const TA_OutputParameterInfo *TA_##NAME##_Outputs[] = \ +{ \ + &TA_DEF_UI_Output_Real, \ + NULL \ +}; \ + static const TA_OptInputParameterInfo *TA_##NAME##_OptInputs[] = { NULL }; \ +DEF_FUNCTION( NAME, /* name */ \ + TA_GroupId_MathOperators, /* groupId */ \ + HINT, /* hint */ \ + CAMELCASENAME, /* CamelCase name */ \ + 0 /* flags */ \ + ); + +#endif + diff --git a/src/ta_abstract/ta_frame_priv.h b/src/ta_abstract/ta_frame_priv.h new file mode 100644 index 000000000..0a8e4cf1f --- /dev/null +++ b/src/ta_abstract/ta_frame_priv.h @@ -0,0 +1,128 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + + +/* TA_ParamHolderPriv is the private implementation of a TA_ParamHolder. */ + +/* Definition in this header shall be used only internaly by the + * ta_abstract module. + * End-user of the TA-LIB shall never attempt to access these + * structure directly. + */ + +#ifndef TA_FRAME_PRIV_H +#define TA_FRAME_PRIV_H + +#ifndef TA_ABSTRACT_H + #include "ta_abstract.h" +#endif + +#ifndef TA_MAGIC_NB_H + #include "ta_magic_nb.h" +#endif + +typedef struct +{ + const TA_Real *open; + const TA_Real *high; + const TA_Real *low; + const TA_Real *close; + const TA_Real *volume; + const TA_Real *openInterest; +} TA_PricePtrs; + +typedef struct +{ + union TA_ParamHolderInputData + { + const TA_Real *inReal; + const TA_Integer *inInteger; + TA_PricePtrs inPrice; + } data; + + const TA_InputParameterInfo *inputInfo; + +} TA_ParamHolderInput; + +typedef struct +{ + union TA_ParamHolderOptInData + { + TA_Integer optInInteger; + TA_Real optInReal; + } data; + + const TA_OptInputParameterInfo *optInputInfo; + +} TA_ParamHolderOptInput; + +typedef struct +{ + union TA_ParamHolderOutputData + { + TA_Real *outReal; + TA_Integer *outInteger; + } data; + + const TA_OutputParameterInfo *outputInfo; +} TA_ParamHolderOutput; + +typedef struct +{ + /* Magic number is used to detect internal error. */ + unsigned int magicNumber; + + TA_ParamHolderInput *in; + TA_ParamHolderOptInput *optIn; + TA_ParamHolderOutput *out; + + /* Indicate which parameter have been initialized. + * The LSB (Less Significant Bit) is the first parameter + * and a bit equal to '1' indicate that the parameter is + * not initialized. + */ + unsigned int inBitmap; + unsigned int outBitmap; + + const TA_FuncInfo *funcInfo; +} TA_ParamHolderPriv; + +typedef TA_RetCode (*TA_FrameFunction)( const TA_ParamHolderPriv *params, + TA_Integer startIdx, + TA_Integer endIdx, + TA_Integer *outBegIdx, + TA_Integer *outNbElement ); + +typedef unsigned int (*TA_FrameLookback)( const TA_ParamHolderPriv *params ); + +#endif diff --git a/src/ta_abstract/ta_func_api.c b/src/ta_abstract/ta_func_api.c new file mode 100644 index 000000000..c2e139195 --- /dev/null +++ b/src/ta_abstract/ta_func_api.c @@ -0,0 +1,8962 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* Important: This file is automatically generated by gen_code. + * Any modification will be lost on next execution + * of gen_code. + * + * This file is a binary representation of the func_api.xml file. + */ + +#include "ta_abstract.h" + +static const char TA_FunctionDescriptionXMLArray[] = +{ +0x3C,0x3F,0x78,0x6D,0x6C,0x20,0x76,0x65,0x72,0x73,0x69,0x6F,0x6E,0x3D,0x22,0x31,0x2E,0x30,0x22,0x20,0x65 +,0x6E,0x63,0x6F,0x64,0x69,0x6E,0x67,0x3D,0x22,0x75,0x74,0x66,0x2D,0x38,0x22,0x20,0x3F,0x3E,0x0A,0x3C +,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x73,0x3E,0x0A +,0x09,0x3C,0x21,0x2D,0x2D,0x20,0x41,0x43,0x4F,0x53,0x20,0x2D,0x2D,0x3E,0x0A,0x09,0x3C,0x46,0x69,0x6E +,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x41 +,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x41,0x43,0x4F,0x53,0x3C,0x2F,0x41,0x62 +,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x43,0x61,0x6D,0x65,0x6C +,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x41,0x63,0x6F,0x73,0x3C,0x2F,0x43,0x61,0x6D,0x65,0x6C +,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65 +,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x56,0x65,0x63,0x74,0x6F,0x72,0x20,0x54,0x72,0x69 +,0x67,0x6F,0x6E,0x6F,0x6D,0x65,0x74,0x72,0x69,0x63,0x20,0x41,0x43,0x6F,0x73,0x3C,0x2F,0x53,0x68,0x6F +,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x47,0x72 +,0x6F,0x75,0x70,0x49,0x64,0x3E,0x4D,0x61,0x74,0x68,0x20,0x54,0x72,0x61,0x6E,0x73,0x66,0x6F,0x72,0x6D +,0x3C,0x2F,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x0A,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72 +,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09 +,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D +,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C +,0x65,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C +,0x4E,0x61,0x6D,0x65,0x3E,0x69,0x6E,0x52,0x65,0x61,0x6C,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09 +,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67 +,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49 +,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x75 +,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F +,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C +,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54 +,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x52,0x65 +,0x61,0x6C,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73 +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4C,0x69,0x6E,0x65,0x3C,0x2F,0x46 +,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09 +,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09 +,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A +,0x09,0x3C,0x2F,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E +,0x3E,0x0A,0x0A,0x0A,0x09,0x3C,0x21,0x2D,0x2D,0x20,0x41,0x44,0x20,0x2D,0x2D,0x3E,0x0A,0x09,0x3C,0x46 +,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09 +,0x3C,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x41,0x44,0x3C,0x2F,0x41,0x62 +,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x43,0x61,0x6D,0x65,0x6C +,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x41,0x64,0x3C,0x2F,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61 +,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63 +,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x43,0x68,0x61,0x69,0x6B,0x69,0x6E,0x20,0x41,0x2F,0x44,0x20 +,0x4C,0x69,0x6E,0x65,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69 +,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x56,0x6F,0x6C,0x75,0x6D +,0x65,0x20,0x49,0x6E,0x64,0x69,0x63,0x61,0x74,0x6F,0x72,0x73,0x3C,0x2F,0x47,0x72,0x6F,0x75,0x70,0x49 +,0x64,0x3E,0x0A,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41 +,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72 +,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x48,0x69,0x67,0x68,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x48,0x69,0x67,0x68,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E +,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41 +,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65 +,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x3C,0x54,0x79,0x70,0x65,0x3E,0x4C,0x6F,0x77,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x4C,0x6F,0x77,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09 +,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75 +,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E +,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79 +,0x70,0x65,0x3E,0x43,0x6C,0x6F,0x73,0x65,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x43,0x6C,0x6F,0x73,0x65,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09 +,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67 +,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49 +,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54 +,0x79,0x70,0x65,0x3E,0x56,0x6F,0x6C,0x75,0x6D,0x65,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x56,0x6F,0x6C,0x75,0x6D,0x65,0x3C,0x2F,0x4E,0x61,0x6D,0x65 +,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74 +,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72 +,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09 +,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09 +,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79 +,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75 +,0x74,0x52,0x65,0x61,0x6C,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C +,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4C,0x69,0x6E,0x65 +,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E +,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74 +,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74 +,0x73,0x3E,0x0A,0x09,0x3C,0x2F,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74 +,0x69,0x6F,0x6E,0x3E,0x0A,0x0A,0x0A,0x09,0x3C,0x21,0x2D,0x2D,0x20,0x41,0x44,0x44,0x20,0x2D,0x2D,0x3E +,0x0A,0x09,0x3C,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E +,0x3E,0x0A,0x09,0x09,0x3C,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x41,0x44 +,0x44,0x3C,0x2F,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C +,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x41,0x64,0x64,0x3C,0x2F,0x43 +,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x3C,0x53,0x68,0x6F +,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x56,0x65,0x63,0x74,0x6F,0x72 +,0x20,0x41,0x72,0x69,0x74,0x68,0x6D,0x65,0x74,0x69,0x63,0x20,0x41,0x64,0x64,0x3C,0x2F,0x53,0x68,0x6F +,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x47,0x72 +,0x6F,0x75,0x70,0x49,0x64,0x3E,0x4D,0x61,0x74,0x68,0x20,0x4F,0x70,0x65,0x72,0x61,0x74,0x6F,0x72,0x73 +,0x3C,0x2F,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x0A,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72 +,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09 +,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D +,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C +,0x65,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C +,0x4E,0x61,0x6D,0x65,0x3E,0x69,0x6E,0x52,0x65,0x61,0x6C,0x30,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A +,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72 +,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64 +,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C +,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54 +,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x69,0x6E,0x52,0x65,0x61 +,0x6C,0x31,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69 +,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09 +,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D +,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D +,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75 +,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62 +,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x52,0x65,0x61,0x6C,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x46 +,0x6C,0x61,0x67,0x3E,0x4C,0x69,0x6E,0x65,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74 +,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74 +,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x3C,0x2F,0x46,0x69,0x6E,0x61,0x6E,0x63 +,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x0A,0x0A,0x09,0x3C,0x21,0x2D,0x2D +,0x20,0x41,0x44,0x4F,0x53,0x43,0x20,0x2D,0x2D,0x3E,0x0A,0x09,0x3C,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69 +,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x41,0x62,0x62,0x72,0x65 +,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x41,0x44,0x4F,0x53,0x43,0x3C,0x2F,0x41,0x62,0x62,0x72,0x65 +,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73 +,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x41,0x64,0x4F,0x73,0x63,0x3C,0x2F,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61 +,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63 +,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x43,0x68,0x61,0x69,0x6B,0x69,0x6E,0x20,0x41,0x2F,0x44,0x20 +,0x4F,0x73,0x63,0x69,0x6C,0x6C,0x61,0x74,0x6F,0x72,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73 +,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x47,0x72,0x6F,0x75,0x70,0x49,0x64 +,0x3E,0x56,0x6F,0x6C,0x75,0x6D,0x65,0x20,0x49,0x6E,0x64,0x69,0x63,0x61,0x74,0x6F,0x72,0x73,0x3C,0x2F +,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x0A,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64 +,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C +,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E +,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x48,0x69,0x67,0x68,0x3C,0x2F,0x54 +,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x48,0x69,0x67,0x68,0x3C +,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64 +,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52 +,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74 +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x4C,0x6F,0x77,0x3C,0x2F,0x54,0x79,0x70 +,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x4C,0x6F,0x77,0x3C,0x2F,0x4E,0x61 +,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70 +,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75 +,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x43,0x6C,0x6F,0x73,0x65,0x3C,0x2F,0x54,0x79,0x70,0x65 +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x43,0x6C,0x6F,0x73,0x65,0x3C,0x2F,0x4E +,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E +,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71 +,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x56,0x6F,0x6C,0x75,0x6D,0x65,0x3C,0x2F,0x54,0x79 +,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x56,0x6F,0x6C,0x75,0x6D,0x65 +,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65 +,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F +,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E +,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74 +,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x70,0x74,0x69,0x6F +,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x46,0x61,0x73,0x74,0x20,0x50,0x65,0x72,0x69,0x6F,0x64,0x3C +,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73 +,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x4E,0x75,0x6D,0x62,0x65,0x72,0x20,0x6F,0x66,0x20,0x70 +,0x65,0x72,0x69,0x6F,0x64,0x20,0x66,0x6F,0x72,0x20,0x74,0x68,0x65,0x20,0x66,0x61,0x73,0x74,0x20,0x4D +,0x41,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x49,0x6E,0x74,0x65,0x67,0x65,0x72,0x3C,0x2F +,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x09,0x3C,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x32,0x3C,0x2F,0x4D,0x69,0x6E,0x69,0x6D +,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x31,0x30 +,0x30,0x30,0x30,0x30,0x3C,0x2F,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09 +,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x31,0x30,0x30,0x30 +,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x31 +,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63,0x72 +,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73 +,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F +,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56 +,0x61,0x6C,0x75,0x65,0x3E,0x33,0x3C,0x2F,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65 +,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74 +,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x70,0x74,0x69,0x6F,0x6E +,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x53,0x6C,0x6F,0x77,0x20,0x50,0x65,0x72,0x69,0x6F,0x64,0x3C,0x2F +,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63 +,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x4E,0x75,0x6D,0x62,0x65,0x72,0x20,0x6F,0x66,0x20,0x70,0x65 +,0x72,0x69,0x6F,0x64,0x20,0x66,0x6F,0x72,0x20,0x74,0x68,0x65,0x20,0x73,0x6C,0x6F,0x77,0x20,0x4D,0x41 +,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x49,0x6E,0x74,0x65,0x67,0x65,0x72,0x3C,0x2F,0x54 +,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x09,0x3C,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x32,0x3C,0x2F,0x4D,0x69,0x6E,0x69,0x6D,0x75 +,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x31,0x30,0x30 +,0x30,0x30,0x30,0x3C,0x2F,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C +,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x31,0x30,0x30,0x30,0x30 +,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x31,0x30 +,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65 +,0x6D,0x65,0x6E,0x74,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74 +,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x52 +,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61 +,0x6C,0x75,0x65,0x3E,0x31,0x30,0x3C,0x2F,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65 +,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74 +,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E +,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09 +,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09 +,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79 +,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75 +,0x74,0x52,0x65,0x61,0x6C,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C +,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4C,0x69,0x6E,0x65 +,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E +,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74 +,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74 +,0x73,0x3E,0x0A,0x09,0x3C,0x2F,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74 +,0x69,0x6F,0x6E,0x3E,0x0A,0x0A,0x0A,0x09,0x3C,0x21,0x2D,0x2D,0x20,0x41,0x44,0x58,0x20,0x2D,0x2D,0x3E +,0x0A,0x09,0x3C,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E +,0x3E,0x0A,0x09,0x09,0x3C,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x41,0x44 +,0x58,0x3C,0x2F,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C +,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x41,0x64,0x78,0x3C,0x2F,0x43 +,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x3C,0x53,0x68,0x6F +,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x41,0x76,0x65,0x72,0x61,0x67 +,0x65,0x20,0x44,0x69,0x72,0x65,0x63,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x20,0x4D,0x6F,0x76,0x65,0x6D,0x65 +,0x6E,0x74,0x20,0x49,0x6E,0x64,0x65,0x78,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72 +,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x4D +,0x6F,0x6D,0x65,0x6E,0x74,0x75,0x6D,0x20,0x49,0x6E,0x64,0x69,0x63,0x61,0x74,0x6F,0x72,0x73,0x3C,0x2F +,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x0A,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09 +,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x55,0x6E,0x73,0x74,0x61,0x62,0x6C,0x65,0x20,0x50,0x65,0x72 +,0x69,0x6F,0x64,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73 +,0x3E,0x0A,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72 +,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65 +,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x3C,0x54,0x79,0x70,0x65,0x3E,0x48,0x69,0x67,0x68,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x48,0x69,0x67,0x68,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A +,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72 +,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64 +,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C +,0x54,0x79,0x70,0x65,0x3E,0x4C,0x6F,0x77,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x4C,0x6F,0x77,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09 +,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D +,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70 +,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70 +,0x65,0x3E,0x43,0x6C,0x6F,0x73,0x65,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C +,0x4E,0x61,0x6D,0x65,0x3E,0x43,0x6C,0x6F,0x73,0x65,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09 +,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75 +,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E +,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x70,0x74 +,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E +,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72 +,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x54,0x69 +,0x6D,0x65,0x20,0x50,0x65,0x72,0x69,0x6F,0x64,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x4E +,0x75,0x6D,0x62,0x65,0x72,0x20,0x6F,0x66,0x20,0x70,0x65,0x72,0x69,0x6F,0x64,0x3C,0x2F,0x53,0x68,0x6F +,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C +,0x54,0x79,0x70,0x65,0x3E,0x49,0x6E,0x74,0x65,0x67,0x65,0x72,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x3C,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x69 +,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x32,0x3C,0x2F,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x09,0x3C,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F +,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65 +,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75 +,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C +,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C +,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09 +,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E +,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63 +,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x52,0x61,0x6E,0x67,0x65,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x3C,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x31 +,0x34,0x3C,0x2F,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x0A,0x09,0x09,0x09 +,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D +,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70 +,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70 +,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x75,0x74 +,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79 +,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70 +,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x52,0x65,0x61,0x6C +,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4C,0x69,0x6E,0x65,0x3C,0x2F,0x46,0x6C,0x61 +,0x67,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C +,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C +,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x3C +,0x2F,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A +,0x0A,0x0A,0x09,0x3C,0x21,0x2D,0x2D,0x20,0x41,0x44,0x58,0x52,0x20,0x2D,0x2D,0x3E,0x0A,0x09,0x3C,0x46 +,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09 +,0x3C,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x41,0x44,0x58,0x52,0x3C,0x2F +,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x43,0x61,0x6D +,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x41,0x64,0x78,0x72,0x3C,0x2F,0x43,0x61,0x6D +,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74 +,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x41,0x76,0x65,0x72,0x61,0x67,0x65,0x20 +,0x44,0x69,0x72,0x65,0x63,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x20,0x4D,0x6F,0x76,0x65,0x6D,0x65,0x6E,0x74 +,0x20,0x49,0x6E,0x64,0x65,0x78,0x20,0x52,0x61,0x74,0x69,0x6E,0x67,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74 +,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x47,0x72,0x6F,0x75 +,0x70,0x49,0x64,0x3E,0x4D,0x6F,0x6D,0x65,0x6E,0x74,0x75,0x6D,0x20,0x49,0x6E,0x64,0x69,0x63,0x61,0x74 +,0x6F,0x72,0x73,0x3C,0x2F,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x0A,0x09,0x09,0x3C,0x46,0x6C,0x61 +,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x55,0x6E,0x73,0x74,0x61,0x62,0x6C +,0x65,0x20,0x50,0x65,0x72,0x69,0x6F,0x64,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x3C,0x2F +,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E +,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65 +,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x48,0x69,0x67,0x68,0x3C,0x2F,0x54,0x79,0x70 +,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x48,0x69,0x67,0x68,0x3C,0x2F,0x4E +,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E +,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71 +,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x4C,0x6F,0x77,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x4C,0x6F,0x77,0x3C,0x2F,0x4E,0x61,0x6D,0x65 +,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74 +,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72 +,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x43,0x6C,0x6F,0x73,0x65,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x43,0x6C,0x6F,0x73,0x65,0x3C,0x2F,0x4E,0x61,0x6D +,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75 +,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69 +,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09 +,0x09,0x3C,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D +,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E +,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61 +,0x6D,0x65,0x3E,0x54,0x69,0x6D,0x65,0x20,0x50,0x65,0x72,0x69,0x6F,0x64,0x3C,0x2F,0x4E,0x61,0x6D,0x65 +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74 +,0x69,0x6F,0x6E,0x3E,0x4E,0x75,0x6D,0x62,0x65,0x72,0x20,0x6F,0x66,0x20,0x70,0x65,0x72,0x69,0x6F,0x64 +,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x49,0x6E,0x74,0x65,0x67,0x65,0x72,0x3C,0x2F,0x54 +,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x09,0x3C,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x32,0x3C,0x2F,0x4D,0x69,0x6E,0x69,0x6D,0x75 +,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x31,0x30,0x30 +,0x30,0x30,0x30,0x3C,0x2F,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C +,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x31,0x30,0x30,0x30,0x30 +,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x31,0x30 +,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65 +,0x6D,0x65,0x6E,0x74,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74 +,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x52 +,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61 +,0x6C,0x75,0x65,0x3E,0x31,0x34,0x3C,0x2F,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65 +,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74 +,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E +,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09 +,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09 +,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79 +,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75 +,0x74,0x52,0x65,0x61,0x6C,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C +,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4C,0x69,0x6E,0x65 +,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E +,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74 +,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74 +,0x73,0x3E,0x0A,0x09,0x3C,0x2F,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74 +,0x69,0x6F,0x6E,0x3E,0x0A,0x0A,0x0A,0x09,0x3C,0x21,0x2D,0x2D,0x20,0x41,0x50,0x4F,0x20,0x2D,0x2D,0x3E +,0x0A,0x09,0x3C,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E +,0x3E,0x0A,0x09,0x09,0x3C,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x41,0x50 +,0x4F,0x3C,0x2F,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C +,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x41,0x70,0x6F,0x3C,0x2F,0x43 +,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x3C,0x53,0x68,0x6F +,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x41,0x62,0x73,0x6F,0x6C,0x75 +,0x74,0x65,0x20,0x50,0x72,0x69,0x63,0x65,0x20,0x4F,0x73,0x63,0x69,0x6C,0x6C,0x61,0x74,0x6F,0x72,0x3C +,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09 +,0x09,0x3C,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x4D,0x6F,0x6D,0x65,0x6E,0x74,0x75,0x6D,0x20,0x49 +,0x6E,0x64,0x69,0x63,0x61,0x74,0x6F,0x72,0x73,0x3C,0x2F,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x0A +,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75 +,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49 +,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54 +,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79 +,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x69,0x6E,0x52,0x65,0x61,0x6C +,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65 +,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F +,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E +,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74 +,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x70,0x74,0x69,0x6F +,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x46,0x61,0x73,0x74,0x20,0x50,0x65,0x72,0x69,0x6F,0x64,0x3C +,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73 +,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x4E,0x75,0x6D,0x62,0x65,0x72,0x20,0x6F,0x66,0x20,0x70 +,0x65,0x72,0x69,0x6F,0x64,0x20,0x66,0x6F,0x72,0x20,0x74,0x68,0x65,0x20,0x66,0x61,0x73,0x74,0x20,0x4D +,0x41,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x49,0x6E,0x74,0x65,0x67,0x65,0x72,0x3C,0x2F +,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x09,0x3C,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x32,0x3C,0x2F,0x4D,0x69,0x6E,0x69,0x6D +,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x31,0x30 +,0x30,0x30,0x30,0x30,0x3C,0x2F,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09 +,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x31,0x30,0x30,0x30 +,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x31 +,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63,0x72 +,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73 +,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F +,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56 +,0x61,0x6C,0x75,0x65,0x3E,0x31,0x32,0x3C,0x2F,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75 +,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75 +,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x70,0x74,0x69,0x6F +,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x53,0x6C,0x6F,0x77,0x20,0x50,0x65,0x72,0x69,0x6F,0x64,0x3C +,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73 +,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x4E,0x75,0x6D,0x62,0x65,0x72,0x20,0x6F,0x66,0x20,0x70 +,0x65,0x72,0x69,0x6F,0x64,0x20,0x66,0x6F,0x72,0x20,0x74,0x68,0x65,0x20,0x73,0x6C,0x6F,0x77,0x20,0x4D +,0x41,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x49,0x6E,0x74,0x65,0x67,0x65,0x72,0x3C,0x2F +,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x09,0x3C,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x32,0x3C,0x2F,0x4D,0x69,0x6E,0x69,0x6D +,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x31,0x30 +,0x30,0x30,0x30,0x30,0x3C,0x2F,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09 +,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x31,0x30,0x30,0x30 +,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x31 +,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63,0x72 +,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73 +,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F +,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56 +,0x61,0x6C,0x75,0x65,0x3E,0x32,0x36,0x3C,0x2F,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75 +,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75 +,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x70,0x74,0x69,0x6F +,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x4D,0x41,0x20,0x54,0x79,0x70,0x65,0x3C,0x2F,0x4E,0x61,0x6D +,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70 +,0x74,0x69,0x6F,0x6E,0x3E,0x54,0x79,0x70,0x65,0x20,0x6F,0x66,0x20,0x4D,0x6F,0x76,0x69,0x6E,0x67,0x20 +,0x41,0x76,0x65,0x72,0x61,0x67,0x65,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69 +,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x4D,0x41,0x20 +,0x54,0x79,0x70,0x65,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x44,0x65,0x66 +,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x30,0x3C,0x2F,0x44,0x65,0x66,0x61,0x75,0x6C,0x74 +,0x56,0x61,0x6C,0x75,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C +,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F +,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74 +,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74 +,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E +,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20 +,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61 +,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x52,0x65,0x61,0x6C,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67 +,0x3E,0x4C,0x69,0x6E,0x65,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x46 +,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67 +,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67 +,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x3C,0x2F,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C +,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x0A,0x0A,0x09,0x3C,0x21,0x2D,0x2D,0x20,0x41,0x52 +,0x4F,0x4F,0x4E,0x20,0x2D,0x2D,0x3E,0x0A,0x09,0x3C,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46 +,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61 +,0x74,0x69,0x6F,0x6E,0x3E,0x41,0x52,0x4F,0x4F,0x4E,0x3C,0x2F,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61 +,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61 +,0x6D,0x65,0x3E,0x41,0x72,0x6F,0x6F,0x6E,0x3C,0x2F,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E +,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70 +,0x74,0x69,0x6F,0x6E,0x3E,0x41,0x72,0x6F,0x6F,0x6E,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73 +,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x47,0x72,0x6F,0x75,0x70,0x49,0x64 +,0x3E,0x4D,0x6F,0x6D,0x65,0x6E,0x74,0x75,0x6D,0x20,0x49,0x6E,0x64,0x69,0x63,0x61,0x74,0x6F,0x72,0x73 +,0x3C,0x2F,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x0A,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72 +,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09 +,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D +,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x48,0x69,0x67,0x68,0x3C +,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x48,0x69,0x67 +,0x68,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72 +,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09 +,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65 +,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x4C,0x6F,0x77,0x3C,0x2F,0x54 +,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x4C,0x6F,0x77,0x3C,0x2F +,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49 +,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x52,0x65 +,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73 +,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72 +,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61 +,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x54,0x69,0x6D,0x65,0x20,0x50,0x65,0x72,0x69,0x6F,0x64,0x3C,0x2F,0x4E +,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72 +,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x4E,0x75,0x6D,0x62,0x65,0x72,0x20,0x6F,0x66,0x20,0x70,0x65,0x72 +,0x69,0x6F,0x64,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F +,0x6E,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x49,0x6E,0x74,0x65,0x67,0x65,0x72 +,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x32,0x3C,0x2F,0x4D,0x69,0x6E +,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E +,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x31,0x30 +,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74 +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64 +,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E +,0x64,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E +,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67 +,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x3C,0x2F,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x44,0x65,0x66,0x61,0x75,0x6C +,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x31,0x34,0x3C,0x2F,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61 +,0x6C,0x75,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E +,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x70,0x74 +,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E +,0x0A,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E +,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72 +,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65 +,0x3E,0x6F,0x75,0x74,0x41,0x72,0x6F,0x6F,0x6E,0x44,0x6F,0x77,0x6E,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x46 +,0x6C,0x61,0x67,0x3E,0x44,0x61,0x73,0x68,0x65,0x64,0x20,0x4C,0x69,0x6E,0x65,0x3C,0x2F,0x46,0x6C,0x61 +,0x67,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C +,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09 +,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79,0x3C +,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74 +,0x41,0x72,0x6F,0x6F,0x6E,0x55,0x70,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C +,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4C,0x69 +,0x6E,0x65,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67 +,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65 +,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65 +,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x3C,0x2F,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E +,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x0A,0x0A,0x09,0x3C,0x21,0x2D,0x2D,0x20,0x41,0x52,0x4F,0x4F,0x4E +,0x4F,0x53,0x43,0x20,0x2D,0x2D,0x3E,0x0A,0x09,0x3C,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46 +,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61 +,0x74,0x69,0x6F,0x6E,0x3E,0x41,0x52,0x4F,0x4F,0x4E,0x4F,0x53,0x43,0x3C,0x2F,0x41,0x62,0x62,0x72,0x65 +,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73 +,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x41,0x72,0x6F,0x6F,0x6E,0x4F,0x73,0x63,0x3C,0x2F,0x43,0x61,0x6D,0x65 +,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44 +,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x41,0x72,0x6F,0x6F,0x6E,0x20,0x4F,0x73,0x63 +,0x69,0x6C,0x6C,0x61,0x74,0x6F,0x72,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69 +,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x4D,0x6F +,0x6D,0x65,0x6E,0x74,0x75,0x6D,0x20,0x49,0x6E,0x64,0x69,0x63,0x61,0x74,0x6F,0x72,0x73,0x3C,0x2F,0x47 +,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x0A,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49 +,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52 +,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74 +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x48,0x69,0x67,0x68,0x3C,0x2F,0x54,0x79 +,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x48,0x69,0x67,0x68,0x3C,0x2F +,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49 +,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65 +,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x4C,0x6F,0x77,0x3C,0x2F,0x54,0x79,0x70,0x65 +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x4C,0x6F,0x77,0x3C,0x2F,0x4E,0x61,0x6D +,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75 +,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69 +,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09 +,0x09,0x3C,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D +,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E +,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61 +,0x6D,0x65,0x3E,0x54,0x69,0x6D,0x65,0x20,0x50,0x65,0x72,0x69,0x6F,0x64,0x3C,0x2F,0x4E,0x61,0x6D,0x65 +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74 +,0x69,0x6F,0x6E,0x3E,0x4E,0x75,0x6D,0x62,0x65,0x72,0x20,0x6F,0x66,0x20,0x70,0x65,0x72,0x69,0x6F,0x64 +,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x49,0x6E,0x74,0x65,0x67,0x65,0x72,0x3C,0x2F,0x54 +,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x09,0x3C,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x32,0x3C,0x2F,0x4D,0x69,0x6E,0x69,0x6D,0x75 +,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x31,0x30,0x30 +,0x30,0x30,0x30,0x3C,0x2F,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C +,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x31,0x30,0x30,0x30,0x30 +,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x31,0x30 +,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65 +,0x6D,0x65,0x6E,0x74,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74 +,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x52 +,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61 +,0x6C,0x75,0x65,0x3E,0x31,0x34,0x3C,0x2F,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65 +,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74 +,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E +,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09 +,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09 +,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79 +,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75 +,0x74,0x52,0x65,0x61,0x6C,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C +,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4C,0x69,0x6E,0x65 +,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E +,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74 +,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74 +,0x73,0x3E,0x0A,0x09,0x3C,0x2F,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74 +,0x69,0x6F,0x6E,0x3E,0x0A,0x0A,0x0A,0x09,0x3C,0x21,0x2D,0x2D,0x20,0x41,0x53,0x49,0x4E,0x20,0x2D,0x2D +,0x3E,0x0A,0x09,0x3C,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F +,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x41 +,0x53,0x49,0x4E,0x3C,0x2F,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09 +,0x09,0x3C,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x41,0x73,0x69,0x6E +,0x3C,0x2F,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x3C +,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x56,0x65,0x63 +,0x74,0x6F,0x72,0x20,0x54,0x72,0x69,0x67,0x6F,0x6E,0x6F,0x6D,0x65,0x74,0x72,0x69,0x63,0x20,0x41,0x53 +,0x69,0x6E,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E +,0x3E,0x0A,0x09,0x09,0x3C,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x4D,0x61,0x74,0x68,0x20,0x54,0x72 +,0x61,0x6E,0x73,0x66,0x6F,0x72,0x6D,0x3C,0x2F,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x0A,0x09,0x09 +,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65 +,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70 +,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70 +,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65 +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x69,0x6E,0x52,0x65,0x61,0x6C,0x3C,0x2F +,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49 +,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x52,0x65 +,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73 +,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73 +,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74 +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41 +,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D +,0x65,0x3E,0x6F,0x75,0x74,0x52,0x65,0x61,0x6C,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E +,0x4C,0x69,0x6E,0x65,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C +,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75 +,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75 +,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x3C,0x2F,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46 +,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x0A,0x0A,0x09,0x3C,0x21,0x2D,0x2D,0x20,0x41,0x54,0x41 +,0x4E,0x20,0x2D,0x2D,0x3E,0x0A,0x09,0x3C,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E +,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69 +,0x6F,0x6E,0x3E,0x41,0x54,0x41,0x4E,0x3C,0x2F,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F +,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E +,0x41,0x74,0x61,0x6E,0x3C,0x2F,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E +,0x0A,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E +,0x3E,0x56,0x65,0x63,0x74,0x6F,0x72,0x20,0x54,0x72,0x69,0x67,0x6F,0x6E,0x6F,0x6D,0x65,0x74,0x72,0x69 +,0x63,0x20,0x41,0x54,0x61,0x6E,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70 +,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x4D,0x61,0x74 +,0x68,0x20,0x54,0x72,0x61,0x6E,0x73,0x66,0x6F,0x72,0x6D,0x3C,0x2F,0x47,0x72,0x6F,0x75,0x70,0x49,0x64 +,0x3E,0x0A,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72 +,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65 +,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F +,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x69,0x6E,0x52,0x65 +,0x61,0x6C,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69 +,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09 +,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D +,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D +,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75 +,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62 +,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x52,0x65,0x61,0x6C,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x46 +,0x6C,0x61,0x67,0x3E,0x4C,0x69,0x6E,0x65,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74 +,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74 +,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x3C,0x2F,0x46,0x69,0x6E,0x61,0x6E,0x63 +,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x0A,0x0A,0x09,0x3C,0x21,0x2D,0x2D +,0x20,0x41,0x54,0x52,0x20,0x2D,0x2D,0x3E,0x0A,0x09,0x3C,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C +,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x41,0x62,0x62,0x72,0x65,0x76,0x69 +,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x41,0x54,0x52,0x3C,0x2F,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74 +,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D +,0x65,0x3E,0x41,0x74,0x72,0x3C,0x2F,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65 +,0x3E,0x0A,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F +,0x6E,0x3E,0x41,0x76,0x65,0x72,0x61,0x67,0x65,0x20,0x54,0x72,0x75,0x65,0x20,0x52,0x61,0x6E,0x67,0x65 +,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A +,0x09,0x09,0x3C,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x56,0x6F,0x6C,0x61,0x74,0x69,0x6C,0x69,0x74 +,0x79,0x20,0x49,0x6E,0x64,0x69,0x63,0x61,0x74,0x6F,0x72,0x73,0x3C,0x2F,0x47,0x72,0x6F,0x75,0x70,0x49 +,0x64,0x3E,0x0A,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61 +,0x67,0x3E,0x55,0x6E,0x73,0x74,0x61,0x62,0x6C,0x65,0x20,0x50,0x65,0x72,0x69,0x6F,0x64,0x3C,0x2F,0x46 +,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x52 +,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74 +,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74 +,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E +,0x48,0x69,0x67,0x68,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D +,0x65,0x3E,0x48,0x69,0x67,0x68,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52 +,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74 +,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41 +,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x4C +,0x6F,0x77,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E +,0x4C,0x6F,0x77,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75 +,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09 +,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75 +,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x43,0x6C,0x6F,0x73 +,0x65,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x43 +,0x6C,0x6F,0x73,0x65,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71 +,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A +,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67 +,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49 +,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F +,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74 +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x54,0x69,0x6D,0x65,0x20,0x50,0x65,0x72 +,0x69,0x6F,0x64,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72 +,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x4E,0x75,0x6D,0x62,0x65,0x72,0x20 +,0x6F,0x66,0x20,0x70,0x65,0x72,0x69,0x6F,0x64,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63 +,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x49 +,0x6E,0x74,0x65,0x67,0x65,0x72,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x52 +,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E +,0x31,0x3C,0x2F,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x61 +,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x4D,0x61,0x78,0x69,0x6D,0x75 +,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74 +,0x61,0x72,0x74,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65 +,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73 +,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65 +,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65 +,0x73,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x31,0x30,0x30,0x30,0x30,0x30 +,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74 +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C +,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x31,0x34,0x3C,0x2F,0x44,0x65,0x66 +,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x70,0x74,0x69 +,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09 +,0x09,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75 +,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75 +,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67 +,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75 +,0x62,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x52,0x65,0x61,0x6C,0x3C,0x2F,0x4E,0x61,0x6D,0x65 +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C +,0x46,0x6C,0x61,0x67,0x3E,0x4C,0x69,0x6E,0x65,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75 +,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75 +,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x3C,0x2F,0x46,0x69,0x6E,0x61,0x6E +,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x0A,0x0A,0x09,0x3C,0x21,0x2D +,0x2D,0x20,0x41,0x56,0x47,0x50,0x52,0x49,0x43,0x45,0x20,0x2D,0x2D,0x3E,0x0A,0x09,0x3C,0x46,0x69,0x6E +,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x41 +,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x41,0x56,0x47,0x50,0x52,0x49,0x43,0x45 +,0x3C,0x2F,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x43 +,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x41,0x76,0x67,0x50,0x72,0x69,0x63 +,0x65,0x3C,0x2F,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09 +,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x41,0x76 +,0x65,0x72,0x61,0x67,0x65,0x20,0x50,0x72,0x69,0x63,0x65,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65 +,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x47,0x72,0x6F,0x75,0x70,0x49 +,0x64,0x3E,0x50,0x72,0x69,0x63,0x65,0x20,0x54,0x72,0x61,0x6E,0x73,0x66,0x6F,0x72,0x6D,0x3C,0x2F,0x47 +,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x0A,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09 +,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4F,0x76,0x65,0x72,0x6C,0x61,0x70,0x3C,0x2F,0x46,0x6C,0x61,0x67 +,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x52,0x65,0x71,0x75 +,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A +,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67 +,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x4F,0x70,0x65 +,0x6E,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x4F +,0x70,0x65,0x6E,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75 +,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09 +,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75 +,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x48,0x69,0x67,0x68 +,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x48,0x69 +,0x67,0x68,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69 +,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09 +,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D +,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x4C,0x6F,0x77,0x3C,0x2F +,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x4C,0x6F,0x77,0x3C +,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64 +,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52 +,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74 +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x43,0x6C,0x6F,0x73,0x65,0x3C,0x2F,0x54 +,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x43,0x6C,0x6F,0x73,0x65 +,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65 +,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F +,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E +,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E +,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65 +,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65 +,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E +,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x52,0x65,0x61,0x6C,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61 +,0x67,0x3E,0x4C,0x69,0x6E,0x65,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F +,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72 +,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72 +,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x3C,0x2F,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61 +,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x0A,0x0A,0x09,0x3C,0x21,0x2D,0x2D,0x20,0x42 +,0x42,0x41,0x4E,0x44,0x53,0x20,0x2D,0x2D,0x3E,0x0A,0x09,0x3C,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61 +,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x41,0x62,0x62,0x72,0x65,0x76 +,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x42,0x42,0x41,0x4E,0x44,0x53,0x3C,0x2F,0x41,0x62,0x62,0x72,0x65 +,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73 +,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x42,0x62,0x61,0x6E,0x64,0x73,0x3C,0x2F,0x43,0x61,0x6D,0x65,0x6C,0x43 +,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73 +,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x42,0x6F,0x6C,0x6C,0x69,0x6E,0x67,0x65,0x72,0x20,0x42 +,0x61,0x6E,0x64,0x73,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69 +,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x4F,0x76,0x65,0x72,0x6C +,0x61,0x70,0x20,0x53,0x74,0x75,0x64,0x69,0x65,0x73,0x3C,0x2F,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E +,0x0A,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E +,0x4F,0x76,0x65,0x72,0x6C,0x61,0x70,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x46 +,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70 +,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71 +,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72,0x72 +,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E +,0x69,0x6E,0x52,0x65,0x61,0x6C,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52 +,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74 +,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41 +,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61 +,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09 +,0x3C,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65 +,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x54,0x69,0x6D,0x65,0x20,0x50 +,0x65,0x72,0x69,0x6F,0x64,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x53,0x68 +,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x4E,0x75,0x6D,0x62,0x65 +,0x72,0x20,0x6F,0x66,0x20,0x70,0x65,0x72,0x69,0x6F,0x64,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65 +,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65 +,0x3E,0x49,0x6E,0x74,0x65,0x67,0x65,0x72,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x3C,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x69,0x6E,0x69,0x6D,0x75 +,0x6D,0x3E,0x32,0x3C,0x2F,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C +,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x4D,0x61,0x78,0x69 +,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64 +,0x53,0x74,0x61,0x72,0x74,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73 +,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67 +,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67 +,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67 +,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x31,0x30,0x30,0x30 +,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65 +,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x3C,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x35,0x3C,0x2F,0x44,0x65 +,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x70,0x74 +,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A +,0x09,0x09,0x09,0x3C,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67 +,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x44,0x65,0x76 +,0x69,0x61,0x74,0x69,0x6F,0x6E,0x73,0x20,0x75,0x70,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E +,0x44,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x20,0x6D,0x75,0x6C,0x74,0x69,0x70,0x6C,0x69,0x65,0x72 +,0x20,0x66,0x6F,0x72,0x20,0x75,0x70,0x70,0x65,0x72,0x20,0x62,0x61,0x6E,0x64,0x3C,0x2F,0x53,0x68,0x6F +,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C +,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x3C,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x69,0x6E +,0x69,0x6D,0x75,0x6D,0x3E,0x2D,0x33,0x2E,0x30,0x30,0x30,0x30,0x30,0x30,0x65,0x2B,0x33,0x37,0x3C,0x2F +,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x61,0x78,0x69,0x6D +,0x75,0x6D,0x3E,0x33,0x2E,0x30,0x30,0x30,0x30,0x30,0x30,0x65,0x2B,0x33,0x37,0x3C,0x2F,0x4D,0x61,0x78 +,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x50,0x72,0x65,0x63,0x69,0x73,0x69,0x6F +,0x6E,0x3E,0x32,0x3C,0x2F,0x50,0x72,0x65,0x63,0x69,0x73,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x2D,0x32,0x2E +,0x30,0x30,0x30,0x30,0x30,0x30,0x65,0x2B,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64 +,0x53,0x74,0x61,0x72,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74 +,0x65,0x64,0x45,0x6E,0x64,0x3E,0x32,0x2E,0x30,0x30,0x30,0x30,0x30,0x30,0x65,0x2B,0x30,0x3C,0x2F,0x53 +,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53 +,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x32,0x2E +,0x30,0x30,0x30,0x30,0x30,0x30,0x65,0x2D,0x31,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64 +,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x52,0x61,0x6E +,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75 +,0x65,0x3E,0x32,0x2E,0x30,0x30,0x30,0x30,0x30,0x30,0x65,0x2B,0x30,0x3C,0x2F,0x44,0x65,0x66,0x61,0x75 +,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E +,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09 +,0x3C,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65 +,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x44,0x65,0x76,0x69,0x61,0x74 +,0x69,0x6F,0x6E,0x73,0x20,0x64,0x6F,0x77,0x6E,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x44 +,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x20,0x6D,0x75,0x6C,0x74,0x69,0x70,0x6C,0x69,0x65,0x72,0x20 +,0x66,0x6F,0x72,0x20,0x6C,0x6F,0x77,0x65,0x72,0x20,0x62,0x61,0x6E,0x64,0x3C,0x2F,0x53,0x68,0x6F,0x72 +,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54 +,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x3C,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x69,0x6E,0x69 +,0x6D,0x75,0x6D,0x3E,0x2D,0x33,0x2E,0x30,0x30,0x30,0x30,0x30,0x30,0x65,0x2B,0x33,0x37,0x3C,0x2F,0x4D +,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x61,0x78,0x69,0x6D,0x75 +,0x6D,0x3E,0x33,0x2E,0x30,0x30,0x30,0x30,0x30,0x30,0x65,0x2B,0x33,0x37,0x3C,0x2F,0x4D,0x61,0x78,0x69 +,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x50,0x72,0x65,0x63,0x69,0x73,0x69,0x6F,0x6E +,0x3E,0x32,0x3C,0x2F,0x50,0x72,0x65,0x63,0x69,0x73,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09 +,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x2D,0x32,0x2E,0x30 +,0x30,0x30,0x30,0x30,0x30,0x65,0x2B,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53 +,0x74,0x61,0x72,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65 +,0x64,0x45,0x6E,0x64,0x3E,0x32,0x2E,0x30,0x30,0x30,0x30,0x30,0x30,0x65,0x2B,0x30,0x3C,0x2F,0x53,0x75 +,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75 +,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x32,0x2E,0x30 +,0x30,0x30,0x30,0x30,0x30,0x65,0x2D,0x31,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49 +,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x52,0x61,0x6E,0x67 +,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65 +,0x3E,0x32,0x2E,0x30,0x30,0x30,0x30,0x30,0x30,0x65,0x2B,0x30,0x3C,0x2F,0x44,0x65,0x66,0x61,0x75,0x6C +,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61 +,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C +,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E +,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x4D,0x41,0x20,0x54,0x79,0x70,0x65 +,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65 +,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x54,0x79,0x70,0x65,0x20,0x6F,0x66,0x20,0x4D,0x6F +,0x76,0x69,0x6E,0x67,0x20,0x41,0x76,0x65,0x72,0x61,0x67,0x65,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44 +,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70 +,0x65,0x3E,0x4D,0x41,0x20,0x54,0x79,0x70,0x65,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x3C,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x30,0x3C,0x2F,0x44,0x65 +,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x70,0x74 +,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A +,0x09,0x09,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67 +,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67 +,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72 +,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F +,0x75,0x62,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x52,0x65,0x61,0x6C,0x55,0x70,0x70,0x65,0x72 +,0x42,0x61,0x6E,0x64,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61 +,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x55,0x70,0x70,0x65,0x72 +,0x20,0x4C,0x69,0x6D,0x69,0x74,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F +,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72 +,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72 +,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F +,0x75,0x62,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x52,0x65,0x61,0x6C,0x4D,0x69,0x64,0x64,0x6C +,0x65,0x42,0x61,0x6E,0x64,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C +,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4C,0x69,0x6E,0x65 +,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E +,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74 +,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74 +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41 +,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D +,0x65,0x3E,0x6F,0x75,0x74,0x52,0x65,0x61,0x6C,0x4C,0x6F,0x77,0x65,0x72,0x42,0x61,0x6E,0x64,0x3C,0x2F +,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4C,0x6F,0x77,0x65,0x72,0x20,0x4C,0x69,0x6D,0x69,0x74 +,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E +,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74 +,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74 +,0x73,0x3E,0x0A,0x09,0x3C,0x2F,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74 +,0x69,0x6F,0x6E,0x3E,0x0A,0x0A,0x0A,0x09,0x3C,0x21,0x2D,0x2D,0x20,0x42,0x45,0x54,0x41,0x20,0x2D,0x2D +,0x3E,0x0A,0x09,0x3C,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F +,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x42 +,0x45,0x54,0x41,0x3C,0x2F,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09 +,0x09,0x3C,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x42,0x65,0x74,0x61 +,0x3C,0x2F,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x3C +,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x42,0x65,0x74 +,0x61,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E +,0x0A,0x09,0x09,0x3C,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x53,0x74,0x61,0x74,0x69,0x73,0x74,0x69 +,0x63,0x20,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x73,0x3C,0x2F,0x47,0x72,0x6F,0x75,0x70,0x49,0x64 +,0x3E,0x0A,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72 +,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65 +,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F +,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x69,0x6E,0x52,0x65 +,0x61,0x6C,0x30,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75 +,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09 +,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75 +,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62 +,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x69,0x6E,0x52,0x65,0x61,0x6C,0x31,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E +,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41 +,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65 +,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C +,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E +,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75 +,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65 +,0x3E,0x54,0x69,0x6D,0x65,0x20,0x50,0x65,0x72,0x69,0x6F,0x64,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F +,0x6E,0x3E,0x4E,0x75,0x6D,0x62,0x65,0x72,0x20,0x6F,0x66,0x20,0x70,0x65,0x72,0x69,0x6F,0x64,0x3C,0x2F +,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x49,0x6E,0x74,0x65,0x67,0x65,0x72,0x3C,0x2F,0x54,0x79,0x70 +,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09 +,0x3C,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x31,0x3C,0x2F,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x31,0x30,0x30,0x30,0x30 +,0x30,0x3C,0x2F,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75 +,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C +,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x31,0x30,0x30,0x30 +,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65 +,0x6E,0x74,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64 +,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x52,0x61,0x6E +,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75 +,0x65,0x3E,0x35,0x3C,0x2F,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x0A,0x09 +,0x09,0x09,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67 +,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49 +,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x75 +,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F +,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C +,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54 +,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x52,0x65 +,0x61,0x6C,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73 +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4C,0x69,0x6E,0x65,0x3C,0x2F,0x46 +,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09 +,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09 +,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A +,0x09,0x3C,0x2F,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E +,0x3E,0x0A,0x0A,0x0A,0x09,0x3C,0x21,0x2D,0x2D,0x20,0x42,0x4F,0x50,0x20,0x2D,0x2D,0x3E,0x0A,0x09,0x3C +,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09 +,0x09,0x3C,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x42,0x4F,0x50,0x3C,0x2F +,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x43,0x61,0x6D +,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x42,0x6F,0x70,0x3C,0x2F,0x43,0x61,0x6D,0x65 +,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44 +,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x42,0x61,0x6C,0x61,0x6E,0x63,0x65,0x20,0x4F +,0x66,0x20,0x50,0x6F,0x77,0x65,0x72,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69 +,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x4D,0x6F +,0x6D,0x65,0x6E,0x74,0x75,0x6D,0x20,0x49,0x6E,0x64,0x69,0x63,0x61,0x74,0x6F,0x72,0x73,0x3C,0x2F,0x47 +,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x0A,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49 +,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52 +,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74 +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x4F,0x70,0x65,0x6E,0x3C,0x2F,0x54,0x79 +,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x4F,0x70,0x65,0x6E,0x3C,0x2F +,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49 +,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65 +,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x48,0x69,0x67,0x68,0x3C,0x2F,0x54,0x79,0x70 +,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x48,0x69,0x67,0x68,0x3C,0x2F,0x4E +,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E +,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71 +,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x4C,0x6F,0x77,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x4C,0x6F,0x77,0x3C,0x2F,0x4E,0x61,0x6D,0x65 +,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74 +,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72 +,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x43,0x6C,0x6F,0x73,0x65,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x43,0x6C,0x6F,0x73,0x65,0x3C,0x2F,0x4E,0x61,0x6D +,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75 +,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69 +,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09 +,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09 +,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72,0x72,0x61 +,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F +,0x75,0x74,0x52,0x65,0x61,0x6C,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46 +,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4C,0x69,0x6E +,0x65,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73 +,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E +,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E +,0x74,0x73,0x3E,0x0A,0x09,0x3C,0x2F,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63 +,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x0A,0x0A,0x09,0x3C,0x21,0x2D,0x2D,0x20,0x43,0x43,0x49,0x20,0x2D,0x2D +,0x3E,0x0A,0x09,0x3C,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F +,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x43 +,0x43,0x49,0x3C,0x2F,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09 +,0x3C,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x43,0x63,0x69,0x3C,0x2F +,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x3C,0x53,0x68 +,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x43,0x6F,0x6D,0x6D,0x6F +,0x64,0x69,0x74,0x79,0x20,0x43,0x68,0x61,0x6E,0x6E,0x65,0x6C,0x20,0x49,0x6E,0x64,0x65,0x78,0x3C,0x2F +,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09 +,0x3C,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x4D,0x6F,0x6D,0x65,0x6E,0x74,0x75,0x6D,0x20,0x49,0x6E +,0x64,0x69,0x63,0x61,0x74,0x6F,0x72,0x73,0x3C,0x2F,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x0A,0x09 +,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D +,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E +,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79 +,0x70,0x65,0x3E,0x48,0x69,0x67,0x68,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C +,0x4E,0x61,0x6D,0x65,0x3E,0x48,0x69,0x67,0x68,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09 +,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D +,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70 +,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70 +,0x65,0x3E,0x4C,0x6F,0x77,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61 +,0x6D,0x65,0x3E,0x4C,0x6F,0x77,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52 +,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74 +,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41 +,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x43 +,0x6C,0x6F,0x73,0x65,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D +,0x65,0x3E,0x43,0x6C,0x6F,0x73,0x65,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F +,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E +,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74 +,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x70,0x74,0x69,0x6F,0x6E +,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09 +,0x09,0x3C,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D +,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x54,0x69,0x6D,0x65,0x20 +,0x50,0x65,0x72,0x69,0x6F,0x64,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x53 +,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x4E,0x75,0x6D,0x62 +,0x65,0x72,0x20,0x6F,0x66,0x20,0x70,0x65,0x72,0x69,0x6F,0x64,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44 +,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70 +,0x65,0x3E,0x49,0x6E,0x74,0x65,0x67,0x65,0x72,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x3C,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x69,0x6E,0x69,0x6D +,0x75,0x6D,0x3E,0x32,0x3C,0x2F,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09 +,0x3C,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x4D,0x61,0x78 +,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65 +,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65 +,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67 +,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75 +,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75 +,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x31,0x30,0x30 +,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D +,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x3C,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x31,0x34,0x3C,0x2F +,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F +,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74 +,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41 +,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41 +,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74 +,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E +,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x52,0x65,0x61,0x6C,0x3C,0x2F,0x4E +,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4C,0x69,0x6E,0x65,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x75 +,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x75 +,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x3C,0x2F,0x46,0x69 +,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x0A,0x0A,0x09 +,0x3C,0x21,0x2D,0x2D,0x20,0x43,0x44,0x4C,0x32,0x43,0x52,0x4F,0x57,0x53,0x20,0x2D,0x2D,0x3E,0x0A,0x09 +,0x3C,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A +,0x09,0x09,0x3C,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x43,0x44,0x4C,0x32 +,0x43,0x52,0x4F,0x57,0x53,0x3C,0x2F,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E +,0x0A,0x09,0x09,0x3C,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x43,0x64 +,0x6C,0x32,0x43,0x72,0x6F,0x77,0x73,0x3C,0x2F,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61 +,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74 +,0x69,0x6F,0x6E,0x3E,0x54,0x77,0x6F,0x20,0x43,0x72,0x6F,0x77,0x73,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74 +,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x47,0x72,0x6F,0x75 +,0x70,0x49,0x64,0x3E,0x50,0x61,0x74,0x74,0x65,0x72,0x6E,0x20,0x52,0x65,0x63,0x6F,0x67,0x6E,0x69,0x74 +,0x69,0x6F,0x6E,0x3C,0x2F,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x0A,0x09,0x09,0x3C,0x46,0x6C,0x61 +,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x43,0x61,0x6E,0x64,0x6C,0x65,0x73 +,0x74,0x69,0x63,0x6B,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67 +,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41 +,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72 +,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x4F,0x70,0x65,0x6E,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x4F,0x70,0x65,0x6E,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E +,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41 +,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65 +,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x3C,0x54,0x79,0x70,0x65,0x3E,0x48,0x69,0x67,0x68,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x48,0x69,0x67,0x68,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A +,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72 +,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64 +,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C +,0x54,0x79,0x70,0x65,0x3E,0x4C,0x6F,0x77,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x4C,0x6F,0x77,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09 +,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D +,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70 +,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70 +,0x65,0x3E,0x43,0x6C,0x6F,0x73,0x65,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C +,0x4E,0x61,0x6D,0x65,0x3E,0x43,0x6C,0x6F,0x73,0x65,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09 +,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75 +,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E +,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x75,0x74 +,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x75 +,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54 +,0x79,0x70,0x65,0x3E,0x49,0x6E,0x74,0x65,0x67,0x65,0x72,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54 +,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x49,0x6E +,0x74,0x65,0x67,0x65,0x72,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C +,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4C,0x69,0x6E,0x65 +,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E +,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74 +,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74 +,0x73,0x3E,0x0A,0x09,0x3C,0x2F,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74 +,0x69,0x6F,0x6E,0x3E,0x0A,0x0A,0x0A,0x09,0x3C,0x21,0x2D,0x2D,0x20,0x43,0x44,0x4C,0x33,0x42,0x4C,0x41 +,0x43,0x4B,0x43,0x52,0x4F,0x57,0x53,0x20,0x2D,0x2D,0x3E,0x0A,0x09,0x3C,0x46,0x69,0x6E,0x61,0x6E,0x63 +,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x41,0x62,0x62,0x72 +,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x43,0x44,0x4C,0x33,0x42,0x4C,0x41,0x43,0x4B,0x43,0x52 +,0x4F,0x57,0x53,0x3C,0x2F,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09 +,0x09,0x3C,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x43,0x64,0x6C,0x33 +,0x42,0x6C,0x61,0x63,0x6B,0x43,0x72,0x6F,0x77,0x73,0x3C,0x2F,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73 +,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72 +,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x54,0x68,0x72,0x65,0x65,0x20,0x42,0x6C,0x61,0x63,0x6B,0x20,0x43 +,0x72,0x6F,0x77,0x73,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69 +,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x50,0x61,0x74,0x74,0x65 +,0x72,0x6E,0x20,0x52,0x65,0x63,0x6F,0x67,0x6E,0x69,0x74,0x69,0x6F,0x6E,0x3C,0x2F,0x47,0x72,0x6F,0x75 +,0x70,0x49,0x64,0x3E,0x0A,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x46 +,0x6C,0x61,0x67,0x3E,0x43,0x61,0x6E,0x64,0x6C,0x65,0x73,0x74,0x69,0x63,0x6B,0x3C,0x2F,0x46,0x6C,0x61 +,0x67,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x52,0x65,0x71 +,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E +,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72 +,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x4F,0x70 +,0x65,0x6E,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E +,0x4F,0x70,0x65,0x6E,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71 +,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A +,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67 +,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x48,0x69,0x67 +,0x68,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x48 +,0x69,0x67,0x68,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75 +,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09 +,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75 +,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x4C,0x6F,0x77,0x3C +,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x4C,0x6F,0x77 +,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65 +,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C +,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E +,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x43,0x6C,0x6F,0x73,0x65,0x3C,0x2F +,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x43,0x6C,0x6F,0x73 +,0x65,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72 +,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C +,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65 +,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65 +,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D +,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x49,0x6E,0x74,0x65,0x67 +,0x65,0x72,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x49,0x6E,0x74,0x65,0x67,0x65,0x72,0x3C,0x2F,0x4E,0x61 +,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4C,0x69,0x6E,0x65,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74 +,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74 +,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x3C,0x2F,0x46,0x69,0x6E +,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x0A,0x0A,0x09,0x3C +,0x21,0x2D,0x2D,0x20,0x43,0x44,0x4C,0x33,0x49,0x4E,0x53,0x49,0x44,0x45,0x20,0x2D,0x2D,0x3E,0x0A,0x09 +,0x3C,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A +,0x09,0x09,0x3C,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x43,0x44,0x4C,0x33 +,0x49,0x4E,0x53,0x49,0x44,0x45,0x3C,0x2F,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E +,0x3E,0x0A,0x09,0x09,0x3C,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x43 +,0x64,0x6C,0x33,0x49,0x6E,0x73,0x69,0x64,0x65,0x3C,0x2F,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65 +,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69 +,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x54,0x68,0x72,0x65,0x65,0x20,0x49,0x6E,0x73,0x69,0x64,0x65,0x20,0x55 +,0x70,0x2F,0x44,0x6F,0x77,0x6E,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70 +,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x50,0x61,0x74 +,0x74,0x65,0x72,0x6E,0x20,0x52,0x65,0x63,0x6F,0x67,0x6E,0x69,0x74,0x69,0x6F,0x6E,0x3C,0x2F,0x47,0x72 +,0x6F,0x75,0x70,0x49,0x64,0x3E,0x0A,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09 +,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x43,0x61,0x6E,0x64,0x6C,0x65,0x73,0x74,0x69,0x63,0x6B,0x3C,0x2F,0x46 +,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x52 +,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74 +,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74 +,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E +,0x4F,0x70,0x65,0x6E,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D +,0x65,0x3E,0x4F,0x70,0x65,0x6E,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52 +,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74 +,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41 +,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x48 +,0x69,0x67,0x68,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65 +,0x3E,0x48,0x69,0x67,0x68,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65 +,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E +,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72 +,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x4C,0x6F +,0x77,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x4C +,0x6F,0x77,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69 +,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09 +,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D +,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x43,0x6C,0x6F,0x73,0x65 +,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x43,0x6C +,0x6F,0x73,0x65,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75 +,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09 +,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75 +,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75 +,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67 +,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x49,0x6E,0x74 +,0x65,0x67,0x65,0x72,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x49,0x6E,0x74,0x65,0x67,0x65,0x72,0x3C,0x2F +,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4C,0x69,0x6E,0x65,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F +,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F +,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x3C,0x2F,0x46 +,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x0A,0x0A +,0x09,0x3C,0x21,0x2D,0x2D,0x20,0x43,0x44,0x4C,0x33,0x4C,0x49,0x4E,0x45,0x53,0x54,0x52,0x49,0x4B,0x45 +,0x20,0x2D,0x2D,0x3E,0x0A,0x09,0x3C,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63 +,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F +,0x6E,0x3E,0x43,0x44,0x4C,0x33,0x4C,0x49,0x4E,0x45,0x53,0x54,0x52,0x49,0x4B,0x45,0x3C,0x2F,0x41,0x62 +,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x43,0x61,0x6D,0x65,0x6C +,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x43,0x64,0x6C,0x33,0x4C,0x69,0x6E,0x65,0x53,0x74,0x72 +,0x69,0x6B,0x65,0x3C,0x2F,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x0A +,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E +,0x54,0x68,0x72,0x65,0x65,0x2D,0x4C,0x69,0x6E,0x65,0x20,0x53,0x74,0x72,0x69,0x6B,0x65,0x20,0x3C,0x2F +,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09 +,0x3C,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x50,0x61,0x74,0x74,0x65,0x72,0x6E,0x20,0x52,0x65,0x63 +,0x6F,0x67,0x6E,0x69,0x74,0x69,0x6F,0x6E,0x3C,0x2F,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x0A,0x09 +,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x43,0x61 +,0x6E,0x64,0x6C,0x65,0x73,0x74,0x69,0x63,0x6B,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x3C +,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49 +,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52 +,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74 +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x4F,0x70,0x65,0x6E,0x3C,0x2F,0x54,0x79 +,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x4F,0x70,0x65,0x6E,0x3C,0x2F +,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49 +,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65 +,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x48,0x69,0x67,0x68,0x3C,0x2F,0x54,0x79,0x70 +,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x48,0x69,0x67,0x68,0x3C,0x2F,0x4E +,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E +,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71 +,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x4C,0x6F,0x77,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x4C,0x6F,0x77,0x3C,0x2F,0x4E,0x61,0x6D,0x65 +,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74 +,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72 +,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x43,0x6C,0x6F,0x73,0x65,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x43,0x6C,0x6F,0x73,0x65,0x3C,0x2F,0x4E,0x61,0x6D +,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75 +,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69 +,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09 +,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09 +,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x49,0x6E,0x74,0x65,0x67,0x65,0x72,0x20,0x41,0x72,0x72 +,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E +,0x6F,0x75,0x74,0x49,0x6E,0x74,0x65,0x67,0x65,0x72,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67 +,0x3E,0x4C,0x69,0x6E,0x65,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x46 +,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67 +,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67 +,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x3C,0x2F,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C +,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x0A,0x0A,0x09,0x3C,0x21,0x2D,0x2D,0x20,0x43,0x44 +,0x4C,0x33,0x4F,0x55,0x54,0x53,0x49,0x44,0x45,0x20,0x2D,0x2D,0x3E,0x0A,0x09,0x3C,0x46,0x69,0x6E,0x61 +,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x41,0x62 +,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x43,0x44,0x4C,0x33,0x4F,0x55,0x54,0x53,0x49 +,0x44,0x45,0x3C,0x2F,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09 +,0x3C,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x43,0x64,0x6C,0x33,0x4F +,0x75,0x74,0x73,0x69,0x64,0x65,0x3C,0x2F,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D +,0x65,0x3E,0x0A,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69 +,0x6F,0x6E,0x3E,0x54,0x68,0x72,0x65,0x65,0x20,0x4F,0x75,0x74,0x73,0x69,0x64,0x65,0x20,0x55,0x70,0x2F +,0x44,0x6F,0x77,0x6E,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69 +,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x50,0x61,0x74,0x74,0x65 +,0x72,0x6E,0x20,0x52,0x65,0x63,0x6F,0x67,0x6E,0x69,0x74,0x69,0x6F,0x6E,0x3C,0x2F,0x47,0x72,0x6F,0x75 +,0x70,0x49,0x64,0x3E,0x0A,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x46 +,0x6C,0x61,0x67,0x3E,0x43,0x61,0x6E,0x64,0x6C,0x65,0x73,0x74,0x69,0x63,0x6B,0x3C,0x2F,0x46,0x6C,0x61 +,0x67,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x52,0x65,0x71 +,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E +,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72 +,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x4F,0x70 +,0x65,0x6E,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E +,0x4F,0x70,0x65,0x6E,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71 +,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A +,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67 +,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x48,0x69,0x67 +,0x68,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x48 +,0x69,0x67,0x68,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75 +,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09 +,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75 +,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x4C,0x6F,0x77,0x3C +,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x4C,0x6F,0x77 +,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65 +,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C +,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E +,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x43,0x6C,0x6F,0x73,0x65,0x3C,0x2F +,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x43,0x6C,0x6F,0x73 +,0x65,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72 +,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C +,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65 +,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65 +,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D +,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x49,0x6E,0x74,0x65,0x67 +,0x65,0x72,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x49,0x6E,0x74,0x65,0x67,0x65,0x72,0x3C,0x2F,0x4E,0x61 +,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4C,0x69,0x6E,0x65,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74 +,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74 +,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x3C,0x2F,0x46,0x69,0x6E +,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x0A,0x0A,0x09,0x3C +,0x21,0x2D,0x2D,0x20,0x43,0x44,0x4C,0x33,0x53,0x54,0x41,0x52,0x53,0x49,0x4E,0x53,0x4F,0x55,0x54,0x48 +,0x20,0x2D,0x2D,0x3E,0x0A,0x09,0x3C,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63 +,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F +,0x6E,0x3E,0x43,0x44,0x4C,0x33,0x53,0x54,0x41,0x52,0x53,0x49,0x4E,0x53,0x4F,0x55,0x54,0x48,0x3C,0x2F +,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x43,0x61,0x6D +,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x43,0x64,0x6C,0x33,0x53,0x74,0x61,0x72,0x73 +,0x49,0x6E,0x53,0x6F,0x75,0x74,0x68,0x3C,0x2F,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61 +,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74 +,0x69,0x6F,0x6E,0x3E,0x54,0x68,0x72,0x65,0x65,0x20,0x53,0x74,0x61,0x72,0x73,0x20,0x49,0x6E,0x20,0x54 +,0x68,0x65,0x20,0x53,0x6F,0x75,0x74,0x68,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72 +,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x50 +,0x61,0x74,0x74,0x65,0x72,0x6E,0x20,0x52,0x65,0x63,0x6F,0x67,0x6E,0x69,0x74,0x69,0x6F,0x6E,0x3C,0x2F +,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x0A,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09 +,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x43,0x61,0x6E,0x64,0x6C,0x65,0x73,0x74,0x69,0x63,0x6B,0x3C +,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09 +,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65 +,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70 +,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70 +,0x65,0x3E,0x4F,0x70,0x65,0x6E,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E +,0x61,0x6D,0x65,0x3E,0x4F,0x70,0x65,0x6E,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C +,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65 +,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75 +,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65 +,0x3E,0x48,0x69,0x67,0x68,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61 +,0x6D,0x65,0x3E,0x48,0x69,0x67,0x68,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F +,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E +,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74 +,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E +,0x4C,0x6F,0x77,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65 +,0x3E,0x4C,0x6F,0x77,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71 +,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A +,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67 +,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x43,0x6C,0x6F +,0x73,0x65,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E +,0x43,0x6C,0x6F,0x73,0x65,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65 +,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E +,0x0A,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72 +,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72 +,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41 +,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x49 +,0x6E,0x74,0x65,0x67,0x65,0x72,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x49,0x6E,0x74,0x65,0x67,0x65,0x72 +,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4C,0x69,0x6E,0x65,0x3C,0x2F,0x46,0x6C,0x61 +,0x67,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C +,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C +,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x3C +,0x2F,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A +,0x0A,0x0A,0x09,0x3C,0x21,0x2D,0x2D,0x20,0x43,0x44,0x4C,0x33,0x57,0x48,0x49,0x54,0x45,0x53,0x4F,0x4C +,0x44,0x49,0x45,0x52,0x53,0x20,0x2D,0x2D,0x3E,0x0A,0x09,0x3C,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61 +,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x41,0x62,0x62,0x72,0x65,0x76 +,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x43,0x44,0x4C,0x33,0x57,0x48,0x49,0x54,0x45,0x53,0x4F,0x4C,0x44 +,0x49,0x45,0x52,0x53,0x3C,0x2F,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x0A +,0x09,0x09,0x3C,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x43,0x64,0x6C +,0x33,0x57,0x68,0x69,0x74,0x65,0x53,0x6F,0x6C,0x64,0x69,0x65,0x72,0x73,0x3C,0x2F,0x43,0x61,0x6D,0x65 +,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44 +,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x54,0x68,0x72,0x65,0x65,0x20,0x41,0x64,0x76 +,0x61,0x6E,0x63,0x69,0x6E,0x67,0x20,0x57,0x68,0x69,0x74,0x65,0x20,0x53,0x6F,0x6C,0x64,0x69,0x65,0x72 +,0x73,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E +,0x0A,0x09,0x09,0x3C,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x50,0x61,0x74,0x74,0x65,0x72,0x6E,0x20 +,0x52,0x65,0x63,0x6F,0x67,0x6E,0x69,0x74,0x69,0x6F,0x6E,0x3C,0x2F,0x47,0x72,0x6F,0x75,0x70,0x49,0x64 +,0x3E,0x0A,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67 +,0x3E,0x43,0x61,0x6E,0x64,0x6C,0x65,0x73,0x74,0x69,0x63,0x6B,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A +,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72 +,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09 +,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D +,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x4F,0x70,0x65,0x6E,0x3C +,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x4F,0x70,0x65 +,0x6E,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72 +,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09 +,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65 +,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x48,0x69,0x67,0x68,0x3C,0x2F +,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x48,0x69,0x67,0x68 +,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65 +,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C +,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E +,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x4C,0x6F,0x77,0x3C,0x2F,0x54,0x79 +,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x4C,0x6F,0x77,0x3C,0x2F,0x4E +,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E +,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71 +,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x43,0x6C,0x6F,0x73,0x65,0x3C,0x2F,0x54,0x79,0x70 +,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x43,0x6C,0x6F,0x73,0x65,0x3C,0x2F +,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49 +,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x52,0x65 +,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73 +,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73 +,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74 +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x49,0x6E,0x74,0x65,0x67,0x65,0x72,0x20 +,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61 +,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x49,0x6E,0x74,0x65,0x67,0x65,0x72,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x46 +,0x6C,0x61,0x67,0x3E,0x4C,0x69,0x6E,0x65,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74 +,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74 +,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x3C,0x2F,0x46,0x69,0x6E,0x61,0x6E,0x63 +,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x0A,0x0A,0x09,0x3C,0x21,0x2D,0x2D +,0x20,0x43,0x44,0x4C,0x41,0x42,0x41,0x4E,0x44,0x4F,0x4E,0x45,0x44,0x42,0x41,0x42,0x59,0x20,0x2D,0x2D +,0x3E,0x0A,0x09,0x3C,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F +,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x43 +,0x44,0x4C,0x41,0x42,0x41,0x4E,0x44,0x4F,0x4E,0x45,0x44,0x42,0x41,0x42,0x59,0x3C,0x2F,0x41,0x62,0x62 +,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x43,0x61,0x6D,0x65,0x6C,0x43 +,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x43,0x64,0x6C,0x41,0x62,0x61,0x6E,0x64,0x6F,0x6E,0x65,0x64 +,0x42,0x61,0x62,0x79,0x3C,0x2F,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E +,0x0A,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E +,0x3E,0x41,0x62,0x61,0x6E,0x64,0x6F,0x6E,0x65,0x64,0x20,0x42,0x61,0x62,0x79,0x3C,0x2F,0x53,0x68,0x6F +,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x47,0x72 +,0x6F,0x75,0x70,0x49,0x64,0x3E,0x50,0x61,0x74,0x74,0x65,0x72,0x6E,0x20,0x52,0x65,0x63,0x6F,0x67,0x6E +,0x69,0x74,0x69,0x6F,0x6E,0x3C,0x2F,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x0A,0x09,0x09,0x3C,0x46 +,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x43,0x61,0x6E,0x64,0x6C +,0x65,0x73,0x74,0x69,0x63,0x6B,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x46,0x6C +,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75 +,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75 +,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x4F,0x70,0x65,0x6E,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x4F,0x70,0x65,0x6E,0x3C,0x2F,0x4E,0x61,0x6D +,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75 +,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69 +,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x48,0x69,0x67,0x68,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x48,0x69,0x67,0x68,0x3C,0x2F,0x4E,0x61,0x6D,0x65 +,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74 +,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72 +,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x4C,0x6F,0x77,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x4C,0x6F,0x77,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09 +,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67 +,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49 +,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54 +,0x79,0x70,0x65,0x3E,0x43,0x6C,0x6F,0x73,0x65,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x43,0x6C,0x6F,0x73,0x65,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A +,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72 +,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64 +,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F +,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74 +,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74 +,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E +,0x50,0x65,0x6E,0x65,0x74,0x72,0x61,0x74,0x69,0x6F,0x6E,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E +,0x3E,0x50,0x65,0x72,0x63,0x65,0x6E,0x74,0x61,0x67,0x65,0x20,0x6F,0x66,0x20,0x70,0x65,0x6E,0x65,0x74 +,0x72,0x61,0x74,0x69,0x6F,0x6E,0x20,0x6F,0x66,0x20,0x61,0x20,0x63,0x61,0x6E,0x64,0x6C,0x65,0x20,0x77 +,0x69,0x74,0x68,0x69,0x6E,0x20,0x61,0x6E,0x6F,0x74,0x68,0x65,0x72,0x20,0x63,0x61,0x6E,0x64,0x6C,0x65 +,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x3C,0x2F,0x54,0x79 +,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x09,0x3C,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x30,0x2E,0x30,0x30,0x30,0x30,0x30,0x30,0x65,0x2B +,0x30,0x3C,0x2F,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x61 +,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x33,0x2E,0x30,0x30,0x30,0x30,0x30,0x30,0x65,0x2B,0x33,0x37,0x3C,0x2F +,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x50,0x72,0x65,0x63,0x69 +,0x73,0x69,0x6F,0x6E,0x3E,0x30,0x3C,0x2F,0x50,0x72,0x65,0x63,0x69,0x73,0x69,0x6F,0x6E,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74,0x3E +,0x30,0x2E,0x30,0x30,0x30,0x30,0x30,0x30,0x65,0x2B,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74 +,0x65,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65 +,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x30,0x2E,0x30,0x30,0x30,0x30,0x30,0x30,0x65,0x2B,0x30,0x3C +,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09 +,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E +,0x30,0x2E,0x30,0x30,0x30,0x30,0x30,0x30,0x65,0x2B,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74 +,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x52 +,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61 +,0x6C,0x75,0x65,0x3E,0x33,0x2E,0x30,0x30,0x30,0x30,0x30,0x30,0x65,0x2D,0x31,0x3C,0x2F,0x44,0x65,0x66 +,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x70,0x74,0x69 +,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09 +,0x09,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75 +,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75 +,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67 +,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x49,0x6E,0x74 +,0x65,0x67,0x65,0x72,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x49,0x6E,0x74,0x65,0x67,0x65,0x72,0x3C,0x2F +,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4C,0x69,0x6E,0x65,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F +,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F +,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x3C,0x2F,0x46 +,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x0A,0x0A +,0x09,0x3C,0x21,0x2D,0x2D,0x20,0x43,0x44,0x4C,0x41,0x44,0x56,0x41,0x4E,0x43,0x45,0x42,0x4C,0x4F,0x43 +,0x4B,0x20,0x2D,0x2D,0x3E,0x0A,0x09,0x3C,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E +,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69 +,0x6F,0x6E,0x3E,0x43,0x44,0x4C,0x41,0x44,0x56,0x41,0x4E,0x43,0x45,0x42,0x4C,0x4F,0x43,0x4B,0x3C,0x2F +,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x43,0x61,0x6D +,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x43,0x64,0x6C,0x41,0x64,0x76,0x61,0x6E,0x63 +,0x65,0x42,0x6C,0x6F,0x63,0x6B,0x3C,0x2F,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D +,0x65,0x3E,0x0A,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69 +,0x6F,0x6E,0x3E,0x41,0x64,0x76,0x61,0x6E,0x63,0x65,0x20,0x42,0x6C,0x6F,0x63,0x6B,0x3C,0x2F,0x53,0x68 +,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x47 +,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x50,0x61,0x74,0x74,0x65,0x72,0x6E,0x20,0x52,0x65,0x63,0x6F,0x67 +,0x6E,0x69,0x74,0x69,0x6F,0x6E,0x3C,0x2F,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x0A,0x09,0x09,0x3C +,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x43,0x61,0x6E,0x64 +,0x6C,0x65,0x73,0x74,0x69,0x63,0x6B,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x46 +,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70 +,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71 +,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x4F,0x70,0x65,0x6E,0x3C,0x2F,0x54,0x79,0x70,0x65 +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x4F,0x70,0x65,0x6E,0x3C,0x2F,0x4E,0x61 +,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70 +,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75 +,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x48,0x69,0x67,0x68,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x48,0x69,0x67,0x68,0x3C,0x2F,0x4E,0x61,0x6D +,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75 +,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69 +,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x4C,0x6F,0x77,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x4C,0x6F,0x77,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A +,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72 +,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64 +,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C +,0x54,0x79,0x70,0x65,0x3E,0x43,0x6C,0x6F,0x73,0x65,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x43,0x6C,0x6F,0x73,0x65,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E +,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41 +,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65 +,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C +,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09 +,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x49,0x6E,0x74,0x65,0x67,0x65,0x72,0x20,0x41,0x72,0x72,0x61,0x79 +,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75 +,0x74,0x49,0x6E,0x74,0x65,0x67,0x65,0x72,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4C +,0x69,0x6E,0x65,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61 +,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D +,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D +,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x3C,0x2F,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75 +,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x0A,0x0A,0x09,0x3C,0x21,0x2D,0x2D,0x20,0x43,0x44,0x4C,0x42 +,0x45,0x4C,0x54,0x48,0x4F,0x4C,0x44,0x20,0x2D,0x2D,0x3E,0x0A,0x09,0x3C,0x46,0x69,0x6E,0x61,0x6E,0x63 +,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x41,0x62,0x62,0x72 +,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x43,0x44,0x4C,0x42,0x45,0x4C,0x54,0x48,0x4F,0x4C,0x44 +,0x3C,0x2F,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x43 +,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x43,0x64,0x6C,0x42,0x65,0x6C,0x74 +,0x48,0x6F,0x6C,0x64,0x3C,0x2F,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E +,0x0A,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E +,0x3E,0x42,0x65,0x6C,0x74,0x2D,0x68,0x6F,0x6C,0x64,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73 +,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x47,0x72,0x6F,0x75,0x70,0x49,0x64 +,0x3E,0x50,0x61,0x74,0x74,0x65,0x72,0x6E,0x20,0x52,0x65,0x63,0x6F,0x67,0x6E,0x69,0x74,0x69,0x6F,0x6E +,0x3C,0x2F,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x0A,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E +,0x0A,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x43,0x61,0x6E,0x64,0x6C,0x65,0x73,0x74,0x69,0x63 +,0x6B,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A +,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75 +,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49 +,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54 +,0x79,0x70,0x65,0x3E,0x4F,0x70,0x65,0x6E,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x4F,0x70,0x65,0x6E,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09 +,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75 +,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E +,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79 +,0x70,0x65,0x3E,0x48,0x69,0x67,0x68,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C +,0x4E,0x61,0x6D,0x65,0x3E,0x48,0x69,0x67,0x68,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09 +,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D +,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70 +,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70 +,0x65,0x3E,0x4C,0x6F,0x77,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61 +,0x6D,0x65,0x3E,0x4C,0x6F,0x77,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52 +,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74 +,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41 +,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x43 +,0x6C,0x6F,0x73,0x65,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D +,0x65,0x3E,0x43,0x6C,0x6F,0x73,0x65,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F +,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E +,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74 +,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74 +,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75 +,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65 +,0x3E,0x49,0x6E,0x74,0x65,0x67,0x65,0x72,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65 +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x49,0x6E,0x74,0x65,0x67 +,0x65,0x72,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73 +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4C,0x69,0x6E,0x65,0x3C,0x2F,0x46 +,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09 +,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09 +,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A +,0x09,0x3C,0x2F,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E +,0x3E,0x0A,0x0A,0x0A,0x09,0x3C,0x21,0x2D,0x2D,0x20,0x43,0x44,0x4C,0x42,0x52,0x45,0x41,0x4B,0x41,0x57 +,0x41,0x59,0x20,0x2D,0x2D,0x3E,0x0A,0x09,0x3C,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75 +,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74 +,0x69,0x6F,0x6E,0x3E,0x43,0x44,0x4C,0x42,0x52,0x45,0x41,0x4B,0x41,0x57,0x41,0x59,0x3C,0x2F,0x41,0x62 +,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x43,0x61,0x6D,0x65,0x6C +,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x43,0x64,0x6C,0x42,0x72,0x65,0x61,0x6B,0x61,0x77,0x61 +,0x79,0x3C,0x2F,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09 +,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x42,0x72 +,0x65,0x61,0x6B,0x61,0x77,0x61,0x79,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69 +,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x50,0x61 +,0x74,0x74,0x65,0x72,0x6E,0x20,0x52,0x65,0x63,0x6F,0x67,0x6E,0x69,0x74,0x69,0x6F,0x6E,0x3C,0x2F,0x47 +,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x0A,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09 +,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x43,0x61,0x6E,0x64,0x6C,0x65,0x73,0x74,0x69,0x63,0x6B,0x3C,0x2F +,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x3C +,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E +,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75 +,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65 +,0x3E,0x4F,0x70,0x65,0x6E,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61 +,0x6D,0x65,0x3E,0x4F,0x70,0x65,0x6E,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F +,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E +,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74 +,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E +,0x48,0x69,0x67,0x68,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D +,0x65,0x3E,0x48,0x69,0x67,0x68,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52 +,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74 +,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41 +,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x4C +,0x6F,0x77,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E +,0x4C,0x6F,0x77,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75 +,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09 +,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75 +,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x43,0x6C,0x6F,0x73 +,0x65,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x43 +,0x6C,0x6F,0x73,0x65,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71 +,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A +,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67 +,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67 +,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72 +,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x49,0x6E +,0x74,0x65,0x67,0x65,0x72,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x49,0x6E,0x74,0x65,0x67,0x65,0x72,0x3C +,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4C,0x69,0x6E,0x65,0x3C,0x2F,0x46,0x6C,0x61,0x67 +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F +,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F +,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x3C,0x2F +,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x0A +,0x0A,0x09,0x3C,0x21,0x2D,0x2D,0x20,0x43,0x44,0x4C,0x43,0x4C,0x4F,0x53,0x49,0x4E,0x47,0x4D,0x41,0x52 +,0x55,0x42,0x4F,0x5A,0x55,0x20,0x2D,0x2D,0x3E,0x0A,0x09,0x3C,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61 +,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x41,0x62,0x62,0x72,0x65,0x76 +,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x43,0x44,0x4C,0x43,0x4C,0x4F,0x53,0x49,0x4E,0x47,0x4D,0x41,0x52 +,0x55,0x42,0x4F,0x5A,0x55,0x3C,0x2F,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E +,0x0A,0x09,0x09,0x3C,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x43,0x64 +,0x6C,0x43,0x6C,0x6F,0x73,0x69,0x6E,0x67,0x4D,0x61,0x72,0x75,0x62,0x6F,0x7A,0x75,0x3C,0x2F,0x43,0x61 +,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72 +,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x43,0x6C,0x6F,0x73,0x69,0x6E,0x67 +,0x20,0x4D,0x61,0x72,0x75,0x62,0x6F,0x7A,0x75,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63 +,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E +,0x50,0x61,0x74,0x74,0x65,0x72,0x6E,0x20,0x52,0x65,0x63,0x6F,0x67,0x6E,0x69,0x74,0x69,0x6F,0x6E,0x3C +,0x2F,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x0A,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A +,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x43,0x61,0x6E,0x64,0x6C,0x65,0x73,0x74,0x69,0x63,0x6B +,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09 +,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D +,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E +,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79 +,0x70,0x65,0x3E,0x4F,0x70,0x65,0x6E,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C +,0x4E,0x61,0x6D,0x65,0x3E,0x4F,0x70,0x65,0x6E,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09 +,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D +,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70 +,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70 +,0x65,0x3E,0x48,0x69,0x67,0x68,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E +,0x61,0x6D,0x65,0x3E,0x48,0x69,0x67,0x68,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C +,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65 +,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75 +,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65 +,0x3E,0x4C,0x6F,0x77,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D +,0x65,0x3E,0x4C,0x6F,0x77,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65 +,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E +,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72 +,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x43,0x6C +,0x6F,0x73,0x65,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65 +,0x3E,0x43,0x6C,0x6F,0x73,0x65,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52 +,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74 +,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41 +,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41 +,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74 +,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E +,0x49,0x6E,0x74,0x65,0x67,0x65,0x72,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x49,0x6E,0x74,0x65,0x67,0x65 +,0x72,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4C,0x69,0x6E,0x65,0x3C,0x2F,0x46,0x6C +,0x61,0x67,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09 +,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09 +,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09 +,0x3C,0x2F,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E +,0x0A,0x0A,0x0A,0x09,0x3C,0x21,0x2D,0x2D,0x20,0x43,0x44,0x4C,0x43,0x4F,0x4E,0x43,0x45,0x41,0x4C,0x42 +,0x41,0x42,0x59,0x53,0x57,0x41,0x4C,0x4C,0x20,0x2D,0x2D,0x3E,0x0A,0x09,0x3C,0x46,0x69,0x6E,0x61,0x6E +,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x41,0x62,0x62 +,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x43,0x44,0x4C,0x43,0x4F,0x4E,0x43,0x45,0x41,0x4C +,0x42,0x41,0x42,0x59,0x53,0x57,0x41,0x4C,0x4C,0x3C,0x2F,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74 +,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D +,0x65,0x3E,0x43,0x64,0x6C,0x43,0x6F,0x6E,0x63,0x65,0x61,0x6C,0x42,0x61,0x62,0x79,0x73,0x57,0x61,0x6C +,0x6C,0x3C,0x2F,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09 +,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x43,0x6F +,0x6E,0x63,0x65,0x61,0x6C,0x69,0x6E,0x67,0x20,0x42,0x61,0x62,0x79,0x20,0x53,0x77,0x61,0x6C,0x6C,0x6F +,0x77,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E +,0x0A,0x09,0x09,0x3C,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x50,0x61,0x74,0x74,0x65,0x72,0x6E,0x20 +,0x52,0x65,0x63,0x6F,0x67,0x6E,0x69,0x74,0x69,0x6F,0x6E,0x3C,0x2F,0x47,0x72,0x6F,0x75,0x70,0x49,0x64 +,0x3E,0x0A,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67 +,0x3E,0x43,0x61,0x6E,0x64,0x6C,0x65,0x73,0x74,0x69,0x63,0x6B,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A +,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72 +,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09 +,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D +,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x4F,0x70,0x65,0x6E,0x3C +,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x4F,0x70,0x65 +,0x6E,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72 +,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09 +,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65 +,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x48,0x69,0x67,0x68,0x3C,0x2F +,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x48,0x69,0x67,0x68 +,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65 +,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C +,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E +,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x4C,0x6F,0x77,0x3C,0x2F,0x54,0x79 +,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x4C,0x6F,0x77,0x3C,0x2F,0x4E +,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E +,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71 +,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x43,0x6C,0x6F,0x73,0x65,0x3C,0x2F,0x54,0x79,0x70 +,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x43,0x6C,0x6F,0x73,0x65,0x3C,0x2F +,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49 +,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x52,0x65 +,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73 +,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73 +,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74 +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x49,0x6E,0x74,0x65,0x67,0x65,0x72,0x20 +,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61 +,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x49,0x6E,0x74,0x65,0x67,0x65,0x72,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x46 +,0x6C,0x61,0x67,0x3E,0x4C,0x69,0x6E,0x65,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74 +,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74 +,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x3C,0x2F,0x46,0x69,0x6E,0x61,0x6E,0x63 +,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x0A,0x0A,0x09,0x3C,0x21,0x2D,0x2D +,0x20,0x43,0x44,0x4C,0x43,0x4F,0x55,0x4E,0x54,0x45,0x52,0x41,0x54,0x54,0x41,0x43,0x4B,0x20,0x2D,0x2D +,0x3E,0x0A,0x09,0x3C,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F +,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x43 +,0x44,0x4C,0x43,0x4F,0x55,0x4E,0x54,0x45,0x52,0x41,0x54,0x54,0x41,0x43,0x4B,0x3C,0x2F,0x41,0x62,0x62 +,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x43,0x61,0x6D,0x65,0x6C,0x43 +,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x43,0x64,0x6C,0x43,0x6F,0x75,0x6E,0x74,0x65,0x72,0x41,0x74 +,0x74,0x61,0x63,0x6B,0x3C,0x2F,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E +,0x0A,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E +,0x3E,0x43,0x6F,0x75,0x6E,0x74,0x65,0x72,0x61,0x74,0x74,0x61,0x63,0x6B,0x3C,0x2F,0x53,0x68,0x6F,0x72 +,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x47,0x72,0x6F +,0x75,0x70,0x49,0x64,0x3E,0x50,0x61,0x74,0x74,0x65,0x72,0x6E,0x20,0x52,0x65,0x63,0x6F,0x67,0x6E,0x69 +,0x74,0x69,0x6F,0x6E,0x3C,0x2F,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x0A,0x09,0x09,0x3C,0x46,0x6C +,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x43,0x61,0x6E,0x64,0x6C,0x65 +,0x73,0x74,0x69,0x63,0x6B,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61 +,0x67,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74 +,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69 +,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x4F,0x70,0x65,0x6E,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x4F,0x70,0x65,0x6E,0x3C,0x2F,0x4E,0x61,0x6D,0x65 +,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74 +,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72 +,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x48,0x69,0x67,0x68,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x48,0x69,0x67,0x68,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E +,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41 +,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65 +,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x3C,0x54,0x79,0x70,0x65,0x3E,0x4C,0x6F,0x77,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x4C,0x6F,0x77,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09 +,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75 +,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E +,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79 +,0x70,0x65,0x3E,0x43,0x6C,0x6F,0x73,0x65,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x43,0x6C,0x6F,0x73,0x65,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09 +,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67 +,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49 +,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x75 +,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F +,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C +,0x54,0x79,0x70,0x65,0x3E,0x49,0x6E,0x74,0x65,0x67,0x65,0x72,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F +,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x49 +,0x6E,0x74,0x65,0x67,0x65,0x72,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46 +,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4C,0x69,0x6E +,0x65,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73 +,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E +,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E +,0x74,0x73,0x3E,0x0A,0x09,0x3C,0x2F,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63 +,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x0A,0x0A,0x09,0x3C,0x21,0x2D,0x2D,0x20,0x43,0x44,0x4C,0x44,0x41,0x52 +,0x4B,0x43,0x4C,0x4F,0x55,0x44,0x43,0x4F,0x56,0x45,0x52,0x20,0x2D,0x2D,0x3E,0x0A,0x09,0x3C,0x46,0x69 +,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C +,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x43,0x44,0x4C,0x44,0x41,0x52,0x4B +,0x43,0x4C,0x4F,0x55,0x44,0x43,0x4F,0x56,0x45,0x52,0x3C,0x2F,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61 +,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61 +,0x6D,0x65,0x3E,0x43,0x64,0x6C,0x44,0x61,0x72,0x6B,0x43,0x6C,0x6F,0x75,0x64,0x43,0x6F,0x76,0x65,0x72 +,0x3C,0x2F,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x3C +,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x44,0x61,0x72 +,0x6B,0x20,0x43,0x6C,0x6F,0x75,0x64,0x20,0x43,0x6F,0x76,0x65,0x72,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74 +,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x47,0x72,0x6F,0x75 +,0x70,0x49,0x64,0x3E,0x50,0x61,0x74,0x74,0x65,0x72,0x6E,0x20,0x52,0x65,0x63,0x6F,0x67,0x6E,0x69,0x74 +,0x69,0x6F,0x6E,0x3C,0x2F,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x0A,0x09,0x09,0x3C,0x46,0x6C,0x61 +,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x43,0x61,0x6E,0x64,0x6C,0x65,0x73 +,0x74,0x69,0x63,0x6B,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67 +,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41 +,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72 +,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x4F,0x70,0x65,0x6E,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x4F,0x70,0x65,0x6E,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E +,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41 +,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65 +,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x3C,0x54,0x79,0x70,0x65,0x3E,0x48,0x69,0x67,0x68,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x48,0x69,0x67,0x68,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A +,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72 +,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64 +,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C +,0x54,0x79,0x70,0x65,0x3E,0x4C,0x6F,0x77,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x4C,0x6F,0x77,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09 +,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D +,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70 +,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70 +,0x65,0x3E,0x43,0x6C,0x6F,0x73,0x65,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C +,0x4E,0x61,0x6D,0x65,0x3E,0x43,0x6C,0x6F,0x73,0x65,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09 +,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75 +,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E +,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x70,0x74 +,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E +,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72 +,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x50,0x65 +,0x6E,0x65,0x74,0x72,0x61,0x74,0x69,0x6F,0x6E,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x50 +,0x65,0x72,0x63,0x65,0x6E,0x74,0x61,0x67,0x65,0x20,0x6F,0x66,0x20,0x70,0x65,0x6E,0x65,0x74,0x72,0x61 +,0x74,0x69,0x6F,0x6E,0x20,0x6F,0x66,0x20,0x61,0x20,0x63,0x61,0x6E,0x64,0x6C,0x65,0x20,0x77,0x69,0x74 +,0x68,0x69,0x6E,0x20,0x61,0x6E,0x6F,0x74,0x68,0x65,0x72,0x20,0x63,0x61,0x6E,0x64,0x6C,0x65,0x3C,0x2F +,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x3C,0x2F,0x54,0x79,0x70,0x65 +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C +,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x30,0x2E,0x30,0x30,0x30,0x30,0x30,0x30,0x65,0x2B,0x30,0x3C +,0x2F,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x61,0x78,0x69 +,0x6D,0x75,0x6D,0x3E,0x33,0x2E,0x30,0x30,0x30,0x30,0x30,0x30,0x65,0x2B,0x33,0x37,0x3C,0x2F,0x4D,0x61 +,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x50,0x72,0x65,0x63,0x69,0x73,0x69 +,0x6F,0x6E,0x3E,0x30,0x3C,0x2F,0x50,0x72,0x65,0x63,0x69,0x73,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x30,0x2E +,0x30,0x30,0x30,0x30,0x30,0x30,0x65,0x2B,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64 +,0x53,0x74,0x61,0x72,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74 +,0x65,0x64,0x45,0x6E,0x64,0x3E,0x30,0x2E,0x30,0x30,0x30,0x30,0x30,0x30,0x65,0x2B,0x30,0x3C,0x2F,0x53 +,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53 +,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x30,0x2E +,0x30,0x30,0x30,0x30,0x30,0x30,0x65,0x2B,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64 +,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x52,0x61,0x6E +,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75 +,0x65,0x3E,0x35,0x2E,0x30,0x30,0x30,0x30,0x30,0x30,0x65,0x2D,0x31,0x3C,0x2F,0x44,0x65,0x66,0x61,0x75 +,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E +,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C +,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65 +,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65 +,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D +,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x49,0x6E,0x74,0x65,0x67 +,0x65,0x72,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x49,0x6E,0x74,0x65,0x67,0x65,0x72,0x3C,0x2F,0x4E,0x61 +,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4C,0x69,0x6E,0x65,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74 +,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74 +,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x3C,0x2F,0x46,0x69,0x6E +,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x0A,0x0A,0x09,0x3C +,0x21,0x2D,0x2D,0x20,0x43,0x44,0x4C,0x44,0x4F,0x4A,0x49,0x20,0x2D,0x2D,0x3E,0x0A,0x09,0x3C,0x46,0x69 +,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C +,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x43,0x44,0x4C,0x44,0x4F,0x4A,0x49 +,0x3C,0x2F,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x43 +,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x43,0x64,0x6C,0x44,0x6F,0x6A,0x69 +,0x3C,0x2F,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x3C +,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x44,0x6F,0x6A +,0x69,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E +,0x0A,0x09,0x09,0x3C,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x50,0x61,0x74,0x74,0x65,0x72,0x6E,0x20 +,0x52,0x65,0x63,0x6F,0x67,0x6E,0x69,0x74,0x69,0x6F,0x6E,0x3C,0x2F,0x47,0x72,0x6F,0x75,0x70,0x49,0x64 +,0x3E,0x0A,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67 +,0x3E,0x43,0x61,0x6E,0x64,0x6C,0x65,0x73,0x74,0x69,0x63,0x6B,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A +,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72 +,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09 +,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D +,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x4F,0x70,0x65,0x6E,0x3C +,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x4F,0x70,0x65 +,0x6E,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72 +,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09 +,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65 +,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x48,0x69,0x67,0x68,0x3C,0x2F +,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x48,0x69,0x67,0x68 +,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65 +,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C +,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E +,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x4C,0x6F,0x77,0x3C,0x2F,0x54,0x79 +,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x4C,0x6F,0x77,0x3C,0x2F,0x4E +,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E +,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71 +,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x43,0x6C,0x6F,0x73,0x65,0x3C,0x2F,0x54,0x79,0x70 +,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x43,0x6C,0x6F,0x73,0x65,0x3C,0x2F +,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49 +,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x52,0x65 +,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73 +,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73 +,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74 +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x49,0x6E,0x74,0x65,0x67,0x65,0x72,0x20 +,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61 +,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x49,0x6E,0x74,0x65,0x67,0x65,0x72,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x46 +,0x6C,0x61,0x67,0x3E,0x4C,0x69,0x6E,0x65,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74 +,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74 +,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x3C,0x2F,0x46,0x69,0x6E,0x61,0x6E,0x63 +,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x0A,0x0A,0x09,0x3C,0x21,0x2D,0x2D +,0x20,0x43,0x44,0x4C,0x44,0x4F,0x4A,0x49,0x53,0x54,0x41,0x52,0x20,0x2D,0x2D,0x3E,0x0A,0x09,0x3C,0x46 +,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09 +,0x3C,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x43,0x44,0x4C,0x44,0x4F,0x4A +,0x49,0x53,0x54,0x41,0x52,0x3C,0x2F,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E +,0x0A,0x09,0x09,0x3C,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x43,0x64 +,0x6C,0x44,0x6F,0x6A,0x69,0x53,0x74,0x61,0x72,0x3C,0x2F,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65 +,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69 +,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x44,0x6F,0x6A,0x69,0x20,0x53,0x74,0x61,0x72,0x3C,0x2F,0x53,0x68,0x6F +,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x47,0x72 +,0x6F,0x75,0x70,0x49,0x64,0x3E,0x50,0x61,0x74,0x74,0x65,0x72,0x6E,0x20,0x52,0x65,0x63,0x6F,0x67,0x6E +,0x69,0x74,0x69,0x6F,0x6E,0x3C,0x2F,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x0A,0x09,0x09,0x3C,0x46 +,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x43,0x61,0x6E,0x64,0x6C +,0x65,0x73,0x74,0x69,0x63,0x6B,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x46,0x6C +,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75 +,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75 +,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x4F,0x70,0x65,0x6E,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x4F,0x70,0x65,0x6E,0x3C,0x2F,0x4E,0x61,0x6D +,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75 +,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69 +,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x48,0x69,0x67,0x68,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x48,0x69,0x67,0x68,0x3C,0x2F,0x4E,0x61,0x6D,0x65 +,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74 +,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72 +,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x4C,0x6F,0x77,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x4C,0x6F,0x77,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09 +,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67 +,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49 +,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54 +,0x79,0x70,0x65,0x3E,0x43,0x6C,0x6F,0x73,0x65,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x43,0x6C,0x6F,0x73,0x65,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A +,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72 +,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64 +,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F +,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C +,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x3C,0x54,0x79,0x70,0x65,0x3E,0x49,0x6E,0x74,0x65,0x67,0x65,0x72,0x20,0x41,0x72,0x72,0x61,0x79,0x3C +,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74 +,0x49,0x6E,0x74,0x65,0x67,0x65,0x72,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C +,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4C,0x69 +,0x6E,0x65,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67 +,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65 +,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65 +,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x3C,0x2F,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E +,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x0A,0x0A,0x09,0x3C,0x21,0x2D,0x2D,0x20,0x43,0x44,0x4C,0x44,0x52 +,0x41,0x47,0x4F,0x4E,0x46,0x4C,0x59,0x44,0x4F,0x4A,0x49,0x20,0x2D,0x2D,0x3E,0x0A,0x09,0x3C,0x46,0x69 +,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C +,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x43,0x44,0x4C,0x44,0x52,0x41,0x47 +,0x4F,0x4E,0x46,0x4C,0x59,0x44,0x4F,0x4A,0x49,0x3C,0x2F,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74 +,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D +,0x65,0x3E,0x43,0x64,0x6C,0x44,0x72,0x61,0x67,0x6F,0x6E,0x66,0x6C,0x79,0x44,0x6F,0x6A,0x69,0x3C,0x2F +,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x3C,0x53,0x68 +,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x44,0x72,0x61,0x67,0x6F +,0x6E,0x66,0x6C,0x79,0x20,0x44,0x6F,0x6A,0x69,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63 +,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E +,0x50,0x61,0x74,0x74,0x65,0x72,0x6E,0x20,0x52,0x65,0x63,0x6F,0x67,0x6E,0x69,0x74,0x69,0x6F,0x6E,0x3C +,0x2F,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x0A,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A +,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x43,0x61,0x6E,0x64,0x6C,0x65,0x73,0x74,0x69,0x63,0x6B +,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09 +,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D +,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E +,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79 +,0x70,0x65,0x3E,0x4F,0x70,0x65,0x6E,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C +,0x4E,0x61,0x6D,0x65,0x3E,0x4F,0x70,0x65,0x6E,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09 +,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D +,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70 +,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70 +,0x65,0x3E,0x48,0x69,0x67,0x68,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E +,0x61,0x6D,0x65,0x3E,0x48,0x69,0x67,0x68,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C +,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65 +,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75 +,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65 +,0x3E,0x4C,0x6F,0x77,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D +,0x65,0x3E,0x4C,0x6F,0x77,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65 +,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E +,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72 +,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x43,0x6C +,0x6F,0x73,0x65,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65 +,0x3E,0x43,0x6C,0x6F,0x73,0x65,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52 +,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74 +,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41 +,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41 +,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74 +,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E +,0x49,0x6E,0x74,0x65,0x67,0x65,0x72,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x49,0x6E,0x74,0x65,0x67,0x65 +,0x72,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4C,0x69,0x6E,0x65,0x3C,0x2F,0x46,0x6C +,0x61,0x67,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09 +,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09 +,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09 +,0x3C,0x2F,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E +,0x0A,0x0A,0x0A,0x09,0x3C,0x21,0x2D,0x2D,0x20,0x43,0x44,0x4C,0x45,0x4E,0x47,0x55,0x4C,0x46,0x49,0x4E +,0x47,0x20,0x2D,0x2D,0x3E,0x0A,0x09,0x3C,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E +,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69 +,0x6F,0x6E,0x3E,0x43,0x44,0x4C,0x45,0x4E,0x47,0x55,0x4C,0x46,0x49,0x4E,0x47,0x3C,0x2F,0x41,0x62,0x62 +,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x43,0x61,0x6D,0x65,0x6C,0x43 +,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x43,0x64,0x6C,0x45,0x6E,0x67,0x75,0x6C,0x66,0x69,0x6E,0x67 +,0x3C,0x2F,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x3C +,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x45,0x6E,0x67 +,0x75,0x6C,0x66,0x69,0x6E,0x67,0x20,0x50,0x61,0x74,0x74,0x65,0x72,0x6E,0x3C,0x2F,0x53,0x68,0x6F,0x72 +,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x47,0x72,0x6F +,0x75,0x70,0x49,0x64,0x3E,0x50,0x61,0x74,0x74,0x65,0x72,0x6E,0x20,0x52,0x65,0x63,0x6F,0x67,0x6E,0x69 +,0x74,0x69,0x6F,0x6E,0x3C,0x2F,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x0A,0x09,0x09,0x3C,0x46,0x6C +,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x43,0x61,0x6E,0x64,0x6C,0x65 +,0x73,0x74,0x69,0x63,0x6B,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61 +,0x67,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74 +,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69 +,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x4F,0x70,0x65,0x6E,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x4F,0x70,0x65,0x6E,0x3C,0x2F,0x4E,0x61,0x6D,0x65 +,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74 +,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72 +,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x48,0x69,0x67,0x68,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x48,0x69,0x67,0x68,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E +,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41 +,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65 +,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x3C,0x54,0x79,0x70,0x65,0x3E,0x4C,0x6F,0x77,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x4C,0x6F,0x77,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09 +,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75 +,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E +,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79 +,0x70,0x65,0x3E,0x43,0x6C,0x6F,0x73,0x65,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x43,0x6C,0x6F,0x73,0x65,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09 +,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67 +,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49 +,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x75 +,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F +,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C +,0x54,0x79,0x70,0x65,0x3E,0x49,0x6E,0x74,0x65,0x67,0x65,0x72,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F +,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x49 +,0x6E,0x74,0x65,0x67,0x65,0x72,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46 +,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4C,0x69,0x6E +,0x65,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73 +,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E +,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E +,0x74,0x73,0x3E,0x0A,0x09,0x3C,0x2F,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63 +,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x0A,0x0A,0x09,0x3C,0x21,0x2D,0x2D,0x20,0x43,0x44,0x4C,0x45,0x56,0x45 +,0x4E,0x49,0x4E,0x47,0x44,0x4F,0x4A,0x49,0x53,0x54,0x41,0x52,0x20,0x2D,0x2D,0x3E,0x0A,0x09,0x3C,0x46 +,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09 +,0x3C,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x43,0x44,0x4C,0x45,0x56,0x45 +,0x4E,0x49,0x4E,0x47,0x44,0x4F,0x4A,0x49,0x53,0x54,0x41,0x52,0x3C,0x2F,0x41,0x62,0x62,0x72,0x65,0x76 +,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65 +,0x4E,0x61,0x6D,0x65,0x3E,0x43,0x64,0x6C,0x45,0x76,0x65,0x6E,0x69,0x6E,0x67,0x44,0x6F,0x6A,0x69,0x53 +,0x74,0x61,0x72,0x3C,0x2F,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x0A +,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E +,0x45,0x76,0x65,0x6E,0x69,0x6E,0x67,0x20,0x44,0x6F,0x6A,0x69,0x20,0x53,0x74,0x61,0x72,0x3C,0x2F,0x53 +,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C +,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x50,0x61,0x74,0x74,0x65,0x72,0x6E,0x20,0x52,0x65,0x63,0x6F +,0x67,0x6E,0x69,0x74,0x69,0x6F,0x6E,0x3C,0x2F,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x0A,0x09,0x09 +,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x43,0x61,0x6E +,0x64,0x6C,0x65,0x73,0x74,0x69,0x63,0x6B,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x3C,0x2F +,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E +,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65 +,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x4F,0x70,0x65,0x6E,0x3C,0x2F,0x54,0x79,0x70 +,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x4F,0x70,0x65,0x6E,0x3C,0x2F,0x4E +,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E +,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71 +,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x48,0x69,0x67,0x68,0x3C,0x2F,0x54,0x79,0x70,0x65 +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x48,0x69,0x67,0x68,0x3C,0x2F,0x4E,0x61 +,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70 +,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75 +,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x4C,0x6F,0x77,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x4C,0x6F,0x77,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E +,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41 +,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65 +,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x3C,0x54,0x79,0x70,0x65,0x3E,0x43,0x6C,0x6F,0x73,0x65,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x43,0x6C,0x6F,0x73,0x65,0x3C,0x2F,0x4E,0x61,0x6D,0x65 +,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74 +,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72 +,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09 +,0x3C,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65 +,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70 +,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D +,0x65,0x3E,0x50,0x65,0x6E,0x65,0x74,0x72,0x61,0x74,0x69,0x6F,0x6E,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69 +,0x6F,0x6E,0x3E,0x50,0x65,0x72,0x63,0x65,0x6E,0x74,0x61,0x67,0x65,0x20,0x6F,0x66,0x20,0x70,0x65,0x6E +,0x65,0x74,0x72,0x61,0x74,0x69,0x6F,0x6E,0x20,0x6F,0x66,0x20,0x61,0x20,0x63,0x61,0x6E,0x64,0x6C,0x65 +,0x20,0x77,0x69,0x74,0x68,0x69,0x6E,0x20,0x61,0x6E,0x6F,0x74,0x68,0x65,0x72,0x20,0x63,0x61,0x6E,0x64 +,0x6C,0x65,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x3C,0x2F +,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x09,0x3C,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x30,0x2E,0x30,0x30,0x30,0x30,0x30,0x30 +,0x65,0x2B,0x30,0x3C,0x2F,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C +,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x33,0x2E,0x30,0x30,0x30,0x30,0x30,0x30,0x65,0x2B,0x33,0x37 +,0x3C,0x2F,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x50,0x72,0x65 +,0x63,0x69,0x73,0x69,0x6F,0x6E,0x3E,0x30,0x3C,0x2F,0x50,0x72,0x65,0x63,0x69,0x73,0x69,0x6F,0x6E,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72 +,0x74,0x3E,0x30,0x2E,0x30,0x30,0x30,0x30,0x30,0x30,0x65,0x2B,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65 +,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67 +,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x30,0x2E,0x30,0x30,0x30,0x30,0x30,0x30,0x65,0x2B +,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E +,0x74,0x3E,0x30,0x2E,0x30,0x30,0x30,0x30,0x30,0x30,0x65,0x2B,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65 +,0x73,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C +,0x2F,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x44,0x65,0x66,0x61,0x75,0x6C,0x74 +,0x56,0x61,0x6C,0x75,0x65,0x3E,0x33,0x2E,0x30,0x30,0x30,0x30,0x30,0x30,0x65,0x2D,0x31,0x3C,0x2F,0x44 +,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x70 +,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E +,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72 +,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72 +,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41 +,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x49 +,0x6E,0x74,0x65,0x67,0x65,0x72,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x49,0x6E,0x74,0x65,0x67,0x65,0x72 +,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4C,0x69,0x6E,0x65,0x3C,0x2F,0x46,0x6C,0x61 +,0x67,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C +,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C +,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x3C +,0x2F,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A +,0x0A,0x0A,0x09,0x3C,0x21,0x2D,0x2D,0x20,0x43,0x44,0x4C,0x45,0x56,0x45,0x4E,0x49,0x4E,0x47,0x53,0x54 +,0x41,0x52,0x20,0x2D,0x2D,0x3E,0x0A,0x09,0x3C,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75 +,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74 +,0x69,0x6F,0x6E,0x3E,0x43,0x44,0x4C,0x45,0x56,0x45,0x4E,0x49,0x4E,0x47,0x53,0x54,0x41,0x52,0x3C,0x2F +,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x43,0x61,0x6D +,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x43,0x64,0x6C,0x45,0x76,0x65,0x6E,0x69,0x6E +,0x67,0x53,0x74,0x61,0x72,0x3C,0x2F,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65 +,0x3E,0x0A,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F +,0x6E,0x3E,0x45,0x76,0x65,0x6E,0x69,0x6E,0x67,0x20,0x53,0x74,0x61,0x72,0x3C,0x2F,0x53,0x68,0x6F,0x72 +,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x47,0x72,0x6F +,0x75,0x70,0x49,0x64,0x3E,0x50,0x61,0x74,0x74,0x65,0x72,0x6E,0x20,0x52,0x65,0x63,0x6F,0x67,0x6E,0x69 +,0x74,0x69,0x6F,0x6E,0x3C,0x2F,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x0A,0x09,0x09,0x3C,0x46,0x6C +,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x43,0x61,0x6E,0x64,0x6C,0x65 +,0x73,0x74,0x69,0x63,0x6B,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61 +,0x67,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74 +,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69 +,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x4F,0x70,0x65,0x6E,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x4F,0x70,0x65,0x6E,0x3C,0x2F,0x4E,0x61,0x6D,0x65 +,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74 +,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72 +,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x48,0x69,0x67,0x68,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x48,0x69,0x67,0x68,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E +,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41 +,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65 +,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x3C,0x54,0x79,0x70,0x65,0x3E,0x4C,0x6F,0x77,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x4C,0x6F,0x77,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09 +,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75 +,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E +,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79 +,0x70,0x65,0x3E,0x43,0x6C,0x6F,0x73,0x65,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x43,0x6C,0x6F,0x73,0x65,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09 +,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67 +,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49 +,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x70 +,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73 +,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41 +,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x50 +,0x65,0x6E,0x65,0x74,0x72,0x61,0x74,0x69,0x6F,0x6E,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E +,0x50,0x65,0x72,0x63,0x65,0x6E,0x74,0x61,0x67,0x65,0x20,0x6F,0x66,0x20,0x70,0x65,0x6E,0x65,0x74,0x72 +,0x61,0x74,0x69,0x6F,0x6E,0x20,0x6F,0x66,0x20,0x61,0x20,0x63,0x61,0x6E,0x64,0x6C,0x65,0x20,0x77,0x69 +,0x74,0x68,0x69,0x6E,0x20,0x61,0x6E,0x6F,0x74,0x68,0x65,0x72,0x20,0x63,0x61,0x6E,0x64,0x6C,0x65,0x3C +,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x3C,0x2F,0x54,0x79,0x70 +,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09 +,0x3C,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x30,0x2E,0x30,0x30,0x30,0x30,0x30,0x30,0x65,0x2B,0x30 +,0x3C,0x2F,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x61,0x78 +,0x69,0x6D,0x75,0x6D,0x3E,0x33,0x2E,0x30,0x30,0x30,0x30,0x30,0x30,0x65,0x2B,0x33,0x37,0x3C,0x2F,0x4D +,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x50,0x72,0x65,0x63,0x69,0x73 +,0x69,0x6F,0x6E,0x3E,0x30,0x3C,0x2F,0x50,0x72,0x65,0x63,0x69,0x73,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x30 +,0x2E,0x30,0x30,0x30,0x30,0x30,0x30,0x65,0x2B,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65 +,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73 +,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x30,0x2E,0x30,0x30,0x30,0x30,0x30,0x30,0x65,0x2B,0x30,0x3C,0x2F +,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C +,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x30 +,0x2E,0x30,0x30,0x30,0x30,0x30,0x30,0x65,0x2B,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65 +,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x52,0x61 +,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C +,0x75,0x65,0x3E,0x33,0x2E,0x30,0x30,0x30,0x30,0x30,0x30,0x65,0x2D,0x31,0x3C,0x2F,0x44,0x65,0x66,0x61 +,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F +,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09 +,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D +,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D +,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75 +,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x49,0x6E,0x74,0x65 +,0x67,0x65,0x72,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x49,0x6E,0x74,0x65,0x67,0x65,0x72,0x3C,0x2F,0x4E +,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4C,0x69,0x6E,0x65,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x75 +,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x75 +,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x3C,0x2F,0x46,0x69 +,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x0A,0x0A,0x09 +,0x3C,0x21,0x2D,0x2D,0x20,0x43,0x44,0x4C,0x47,0x41,0x50,0x53,0x49,0x44,0x45,0x53,0x49,0x44,0x45,0x57 +,0x48,0x49,0x54,0x45,0x20,0x2D,0x2D,0x3E,0x0A,0x09,0x3C,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C +,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x41,0x62,0x62,0x72,0x65,0x76,0x69 +,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x43,0x44,0x4C,0x47,0x41,0x50,0x53,0x49,0x44,0x45,0x53,0x49,0x44,0x45 +,0x57,0x48,0x49,0x54,0x45,0x3C,0x2F,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E +,0x0A,0x09,0x09,0x3C,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x43,0x64 +,0x6C,0x47,0x61,0x70,0x53,0x69,0x64,0x65,0x53,0x69,0x64,0x65,0x57,0x68,0x69,0x74,0x65,0x3C,0x2F,0x43 +,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x3C,0x53,0x68,0x6F +,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x55,0x70,0x2F,0x44,0x6F,0x77 +,0x6E,0x2D,0x67,0x61,0x70,0x20,0x73,0x69,0x64,0x65,0x2D,0x62,0x79,0x2D,0x73,0x69,0x64,0x65,0x20,0x77 +,0x68,0x69,0x74,0x65,0x20,0x6C,0x69,0x6E,0x65,0x73,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73 +,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x47,0x72,0x6F,0x75,0x70,0x49,0x64 +,0x3E,0x50,0x61,0x74,0x74,0x65,0x72,0x6E,0x20,0x52,0x65,0x63,0x6F,0x67,0x6E,0x69,0x74,0x69,0x6F,0x6E +,0x3C,0x2F,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x0A,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E +,0x0A,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x43,0x61,0x6E,0x64,0x6C,0x65,0x73,0x74,0x69,0x63 +,0x6B,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A +,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75 +,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49 +,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54 +,0x79,0x70,0x65,0x3E,0x4F,0x70,0x65,0x6E,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x4F,0x70,0x65,0x6E,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09 +,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75 +,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E +,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79 +,0x70,0x65,0x3E,0x48,0x69,0x67,0x68,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C +,0x4E,0x61,0x6D,0x65,0x3E,0x48,0x69,0x67,0x68,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09 +,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D +,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70 +,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70 +,0x65,0x3E,0x4C,0x6F,0x77,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61 +,0x6D,0x65,0x3E,0x4C,0x6F,0x77,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52 +,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74 +,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41 +,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x43 +,0x6C,0x6F,0x73,0x65,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D +,0x65,0x3E,0x43,0x6C,0x6F,0x73,0x65,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F +,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E +,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74 +,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74 +,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75 +,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65 +,0x3E,0x49,0x6E,0x74,0x65,0x67,0x65,0x72,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65 +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x49,0x6E,0x74,0x65,0x67 +,0x65,0x72,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73 +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4C,0x69,0x6E,0x65,0x3C,0x2F,0x46 +,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09 +,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09 +,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A +,0x09,0x3C,0x2F,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E +,0x3E,0x0A,0x0A,0x0A,0x09,0x3C,0x21,0x2D,0x2D,0x20,0x43,0x44,0x4C,0x47,0x52,0x41,0x56,0x45,0x53,0x54 +,0x4F,0x4E,0x45,0x44,0x4F,0x4A,0x49,0x20,0x2D,0x2D,0x3E,0x0A,0x09,0x3C,0x46,0x69,0x6E,0x61,0x6E,0x63 +,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x41,0x62,0x62,0x72 +,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x43,0x44,0x4C,0x47,0x52,0x41,0x56,0x45,0x53,0x54,0x4F +,0x4E,0x45,0x44,0x4F,0x4A,0x49,0x3C,0x2F,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E +,0x3E,0x0A,0x09,0x09,0x3C,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x43 +,0x64,0x6C,0x47,0x72,0x61,0x76,0x65,0x73,0x74,0x6F,0x6E,0x65,0x44,0x6F,0x6A,0x69,0x3C,0x2F,0x43,0x61 +,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72 +,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x47,0x72,0x61,0x76,0x65,0x73,0x74 +,0x6F,0x6E,0x65,0x20,0x44,0x6F,0x6A,0x69,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72 +,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x50 +,0x61,0x74,0x74,0x65,0x72,0x6E,0x20,0x52,0x65,0x63,0x6F,0x67,0x6E,0x69,0x74,0x69,0x6F,0x6E,0x3C,0x2F +,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x0A,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09 +,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x43,0x61,0x6E,0x64,0x6C,0x65,0x73,0x74,0x69,0x63,0x6B,0x3C +,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09 +,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65 +,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70 +,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70 +,0x65,0x3E,0x4F,0x70,0x65,0x6E,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E +,0x61,0x6D,0x65,0x3E,0x4F,0x70,0x65,0x6E,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C +,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65 +,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75 +,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65 +,0x3E,0x48,0x69,0x67,0x68,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61 +,0x6D,0x65,0x3E,0x48,0x69,0x67,0x68,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F +,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E +,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74 +,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E +,0x4C,0x6F,0x77,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65 +,0x3E,0x4C,0x6F,0x77,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71 +,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A +,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67 +,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x43,0x6C,0x6F +,0x73,0x65,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E +,0x43,0x6C,0x6F,0x73,0x65,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65 +,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E +,0x0A,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72 +,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72 +,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41 +,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x49 +,0x6E,0x74,0x65,0x67,0x65,0x72,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x49,0x6E,0x74,0x65,0x67,0x65,0x72 +,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4C,0x69,0x6E,0x65,0x3C,0x2F,0x46,0x6C,0x61 +,0x67,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C +,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C +,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x3C +,0x2F,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A +,0x0A,0x0A,0x09,0x3C,0x21,0x2D,0x2D,0x20,0x43,0x44,0x4C,0x48,0x41,0x4D,0x4D,0x45,0x52,0x20,0x2D,0x2D +,0x3E,0x0A,0x09,0x3C,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F +,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x43 +,0x44,0x4C,0x48,0x41,0x4D,0x4D,0x45,0x52,0x3C,0x2F,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69 +,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65 +,0x3E,0x43,0x64,0x6C,0x48,0x61,0x6D,0x6D,0x65,0x72,0x3C,0x2F,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73 +,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72 +,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x48,0x61,0x6D,0x6D,0x65,0x72,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74 +,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x47,0x72,0x6F,0x75 +,0x70,0x49,0x64,0x3E,0x50,0x61,0x74,0x74,0x65,0x72,0x6E,0x20,0x52,0x65,0x63,0x6F,0x67,0x6E,0x69,0x74 +,0x69,0x6F,0x6E,0x3C,0x2F,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x0A,0x09,0x09,0x3C,0x46,0x6C,0x61 +,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x43,0x61,0x6E,0x64,0x6C,0x65,0x73 +,0x74,0x69,0x63,0x6B,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67 +,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41 +,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72 +,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x4F,0x70,0x65,0x6E,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x4F,0x70,0x65,0x6E,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E +,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41 +,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65 +,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x3C,0x54,0x79,0x70,0x65,0x3E,0x48,0x69,0x67,0x68,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x48,0x69,0x67,0x68,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A +,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72 +,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64 +,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C +,0x54,0x79,0x70,0x65,0x3E,0x4C,0x6F,0x77,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x4C,0x6F,0x77,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09 +,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D +,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70 +,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70 +,0x65,0x3E,0x43,0x6C,0x6F,0x73,0x65,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C +,0x4E,0x61,0x6D,0x65,0x3E,0x43,0x6C,0x6F,0x73,0x65,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09 +,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75 +,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E +,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x75,0x74 +,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x75 +,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54 +,0x79,0x70,0x65,0x3E,0x49,0x6E,0x74,0x65,0x67,0x65,0x72,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54 +,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x49,0x6E +,0x74,0x65,0x67,0x65,0x72,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C +,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4C,0x69,0x6E,0x65 +,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E +,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74 +,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74 +,0x73,0x3E,0x0A,0x09,0x3C,0x2F,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74 +,0x69,0x6F,0x6E,0x3E,0x0A,0x0A,0x0A,0x09,0x3C,0x21,0x2D,0x2D,0x20,0x43,0x44,0x4C,0x48,0x41,0x4E,0x47 +,0x49,0x4E,0x47,0x4D,0x41,0x4E,0x20,0x2D,0x2D,0x3E,0x0A,0x09,0x3C,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69 +,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x41,0x62,0x62,0x72,0x65 +,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x43,0x44,0x4C,0x48,0x41,0x4E,0x47,0x49,0x4E,0x47,0x4D,0x41 +,0x4E,0x3C,0x2F,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C +,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x43,0x64,0x6C,0x48,0x61,0x6E +,0x67,0x69,0x6E,0x67,0x4D,0x61,0x6E,0x3C,0x2F,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61 +,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74 +,0x69,0x6F,0x6E,0x3E,0x48,0x61,0x6E,0x67,0x69,0x6E,0x67,0x20,0x4D,0x61,0x6E,0x3C,0x2F,0x53,0x68,0x6F +,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x47,0x72 +,0x6F,0x75,0x70,0x49,0x64,0x3E,0x50,0x61,0x74,0x74,0x65,0x72,0x6E,0x20,0x52,0x65,0x63,0x6F,0x67,0x6E +,0x69,0x74,0x69,0x6F,0x6E,0x3C,0x2F,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x0A,0x09,0x09,0x3C,0x46 +,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x43,0x61,0x6E,0x64,0x6C +,0x65,0x73,0x74,0x69,0x63,0x6B,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x46,0x6C +,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75 +,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75 +,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x4F,0x70,0x65,0x6E,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x4F,0x70,0x65,0x6E,0x3C,0x2F,0x4E,0x61,0x6D +,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75 +,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69 +,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x48,0x69,0x67,0x68,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x48,0x69,0x67,0x68,0x3C,0x2F,0x4E,0x61,0x6D,0x65 +,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74 +,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72 +,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x4C,0x6F,0x77,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x4C,0x6F,0x77,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09 +,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67 +,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49 +,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54 +,0x79,0x70,0x65,0x3E,0x43,0x6C,0x6F,0x73,0x65,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x43,0x6C,0x6F,0x73,0x65,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A +,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72 +,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64 +,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F +,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C +,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x3C,0x54,0x79,0x70,0x65,0x3E,0x49,0x6E,0x74,0x65,0x67,0x65,0x72,0x20,0x41,0x72,0x72,0x61,0x79,0x3C +,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74 +,0x49,0x6E,0x74,0x65,0x67,0x65,0x72,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C +,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4C,0x69 +,0x6E,0x65,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67 +,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65 +,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65 +,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x3C,0x2F,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E +,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x0A,0x0A,0x09,0x3C,0x21,0x2D,0x2D,0x20,0x43,0x44,0x4C,0x48,0x41 +,0x52,0x41,0x4D,0x49,0x20,0x2D,0x2D,0x3E,0x0A,0x09,0x3C,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C +,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x41,0x62,0x62,0x72,0x65,0x76,0x69 +,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x43,0x44,0x4C,0x48,0x41,0x52,0x41,0x4D,0x49,0x3C,0x2F,0x41,0x62,0x62 +,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x43,0x61,0x6D,0x65,0x6C,0x43 +,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x43,0x64,0x6C,0x48,0x61,0x72,0x61,0x6D,0x69,0x3C,0x2F,0x43 +,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x3C,0x53,0x68,0x6F +,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x48,0x61,0x72,0x61,0x6D,0x69 +,0x20,0x50,0x61,0x74,0x74,0x65,0x72,0x6E,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72 +,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x50 +,0x61,0x74,0x74,0x65,0x72,0x6E,0x20,0x52,0x65,0x63,0x6F,0x67,0x6E,0x69,0x74,0x69,0x6F,0x6E,0x3C,0x2F +,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x0A,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09 +,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x43,0x61,0x6E,0x64,0x6C,0x65,0x73,0x74,0x69,0x63,0x6B,0x3C +,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09 +,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65 +,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70 +,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70 +,0x65,0x3E,0x4F,0x70,0x65,0x6E,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E +,0x61,0x6D,0x65,0x3E,0x4F,0x70,0x65,0x6E,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C +,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65 +,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75 +,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65 +,0x3E,0x48,0x69,0x67,0x68,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61 +,0x6D,0x65,0x3E,0x48,0x69,0x67,0x68,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F +,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E +,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74 +,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E +,0x4C,0x6F,0x77,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65 +,0x3E,0x4C,0x6F,0x77,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71 +,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A +,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67 +,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x43,0x6C,0x6F +,0x73,0x65,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E +,0x43,0x6C,0x6F,0x73,0x65,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65 +,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E +,0x0A,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72 +,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72 +,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41 +,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x49 +,0x6E,0x74,0x65,0x67,0x65,0x72,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x49,0x6E,0x74,0x65,0x67,0x65,0x72 +,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4C,0x69,0x6E,0x65,0x3C,0x2F,0x46,0x6C,0x61 +,0x67,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C +,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C +,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x3C +,0x2F,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A +,0x0A,0x0A,0x09,0x3C,0x21,0x2D,0x2D,0x20,0x43,0x44,0x4C,0x48,0x41,0x52,0x41,0x4D,0x49,0x43,0x52,0x4F +,0x53,0x53,0x20,0x2D,0x2D,0x3E,0x0A,0x09,0x3C,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75 +,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74 +,0x69,0x6F,0x6E,0x3E,0x43,0x44,0x4C,0x48,0x41,0x52,0x41,0x4D,0x49,0x43,0x52,0x4F,0x53,0x53,0x3C,0x2F +,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x43,0x61,0x6D +,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x43,0x64,0x6C,0x48,0x61,0x72,0x61,0x6D,0x69 +,0x43,0x72,0x6F,0x73,0x73,0x3C,0x2F,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65 +,0x3E,0x0A,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F +,0x6E,0x3E,0x48,0x61,0x72,0x61,0x6D,0x69,0x20,0x43,0x72,0x6F,0x73,0x73,0x20,0x50,0x61,0x74,0x74,0x65 +,0x72,0x6E,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E +,0x3E,0x0A,0x09,0x09,0x3C,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x50,0x61,0x74,0x74,0x65,0x72,0x6E +,0x20,0x52,0x65,0x63,0x6F,0x67,0x6E,0x69,0x74,0x69,0x6F,0x6E,0x3C,0x2F,0x47,0x72,0x6F,0x75,0x70,0x49 +,0x64,0x3E,0x0A,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61 +,0x67,0x3E,0x43,0x61,0x6E,0x64,0x6C,0x65,0x73,0x74,0x69,0x63,0x6B,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E +,0x0A,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69 +,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09 +,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75 +,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x4F,0x70,0x65,0x6E +,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x4F,0x70 +,0x65,0x6E,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69 +,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09 +,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D +,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x48,0x69,0x67,0x68,0x3C +,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x48,0x69,0x67 +,0x68,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72 +,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09 +,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65 +,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x4C,0x6F,0x77,0x3C,0x2F,0x54 +,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x4C,0x6F,0x77,0x3C,0x2F +,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49 +,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65 +,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x43,0x6C,0x6F,0x73,0x65,0x3C,0x2F,0x54,0x79 +,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x43,0x6C,0x6F,0x73,0x65,0x3C +,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64 +,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x52 +,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74 +,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74 +,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E +,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x49,0x6E,0x74,0x65,0x67,0x65,0x72 +,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E +,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x49,0x6E,0x74,0x65,0x67,0x65,0x72,0x3C,0x2F,0x4E,0x61,0x6D,0x65 +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C +,0x46,0x6C,0x61,0x67,0x3E,0x4C,0x69,0x6E,0x65,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75 +,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75 +,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x3C,0x2F,0x46,0x69,0x6E,0x61,0x6E +,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x0A,0x0A,0x09,0x3C,0x21,0x2D +,0x2D,0x20,0x43,0x44,0x4C,0x48,0x49,0x47,0x48,0x57,0x41,0x56,0x45,0x20,0x2D,0x2D,0x3E,0x0A,0x09,0x3C +,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09 +,0x09,0x3C,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x43,0x44,0x4C,0x48,0x49 +,0x47,0x48,0x57,0x41,0x56,0x45,0x3C,0x2F,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E +,0x3E,0x0A,0x09,0x09,0x3C,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x43 +,0x64,0x6C,0x48,0x69,0x67,0x6E,0x57,0x61,0x76,0x65,0x3C,0x2F,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73 +,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72 +,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x48,0x69,0x67,0x68,0x2D,0x57,0x61,0x76,0x65,0x20,0x43,0x61,0x6E +,0x64,0x6C,0x65,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F +,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x50,0x61,0x74,0x74,0x65,0x72 +,0x6E,0x20,0x52,0x65,0x63,0x6F,0x67,0x6E,0x69,0x74,0x69,0x6F,0x6E,0x3C,0x2F,0x47,0x72,0x6F,0x75,0x70 +,0x49,0x64,0x3E,0x0A,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x46,0x6C +,0x61,0x67,0x3E,0x43,0x61,0x6E,0x64,0x6C,0x65,0x73,0x74,0x69,0x63,0x6B,0x3C,0x2F,0x46,0x6C,0x61,0x67 +,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x52,0x65,0x71,0x75 +,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A +,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67 +,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x4F,0x70,0x65 +,0x6E,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x4F +,0x70,0x65,0x6E,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75 +,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09 +,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75 +,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x48,0x69,0x67,0x68 +,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x48,0x69 +,0x67,0x68,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69 +,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09 +,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D +,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x4C,0x6F,0x77,0x3C,0x2F +,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x4C,0x6F,0x77,0x3C +,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64 +,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52 +,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74 +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x43,0x6C,0x6F,0x73,0x65,0x3C,0x2F,0x54 +,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x43,0x6C,0x6F,0x73,0x65 +,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65 +,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F +,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E +,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E +,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65 +,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x49,0x6E,0x74,0x65,0x67,0x65 +,0x72,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C +,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x49,0x6E,0x74,0x65,0x67,0x65,0x72,0x3C,0x2F,0x4E,0x61,0x6D +,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09 +,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4C,0x69,0x6E,0x65,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70 +,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70 +,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x3C,0x2F,0x46,0x69,0x6E,0x61 +,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x0A,0x0A,0x09,0x3C,0x21 +,0x2D,0x2D,0x20,0x43,0x44,0x4C,0x48,0x49,0x4B,0x4B,0x41,0x4B,0x45,0x20,0x2D,0x2D,0x3E,0x0A,0x09,0x3C +,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09 +,0x09,0x3C,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x43,0x44,0x4C,0x48,0x49 +,0x4B,0x4B,0x41,0x4B,0x45,0x3C,0x2F,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E +,0x0A,0x09,0x09,0x3C,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x43,0x64 +,0x6C,0x48,0x69,0x6B,0x6B,0x61,0x6B,0x65,0x3C,0x2F,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E +,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70 +,0x74,0x69,0x6F,0x6E,0x3E,0x48,0x69,0x6B,0x6B,0x61,0x6B,0x65,0x20,0x50,0x61,0x74,0x74,0x65,0x72,0x6E +,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A +,0x09,0x09,0x3C,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x50,0x61,0x74,0x74,0x65,0x72,0x6E,0x20,0x52 +,0x65,0x63,0x6F,0x67,0x6E,0x69,0x74,0x69,0x6F,0x6E,0x3C,0x2F,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E +,0x0A,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E +,0x43,0x61,0x6E,0x64,0x6C,0x65,0x73,0x74,0x69,0x63,0x6B,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09 +,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65 +,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09 +,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65 +,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x4F,0x70,0x65,0x6E,0x3C,0x2F +,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x4F,0x70,0x65,0x6E +,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65 +,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C +,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E +,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x48,0x69,0x67,0x68,0x3C,0x2F,0x54 +,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x48,0x69,0x67,0x68,0x3C +,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64 +,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52 +,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74 +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x4C,0x6F,0x77,0x3C,0x2F,0x54,0x79,0x70 +,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x4C,0x6F,0x77,0x3C,0x2F,0x4E,0x61 +,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70 +,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75 +,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x43,0x6C,0x6F,0x73,0x65,0x3C,0x2F,0x54,0x79,0x70,0x65 +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x43,0x6C,0x6F,0x73,0x65,0x3C,0x2F,0x4E +,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E +,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71 +,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E +,0x0A,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E +,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x49,0x6E,0x74,0x65,0x67,0x65,0x72,0x20,0x41 +,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D +,0x65,0x3E,0x6F,0x75,0x74,0x49,0x6E,0x74,0x65,0x67,0x65,0x72,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C +,0x61,0x67,0x3E,0x4C,0x69,0x6E,0x65,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C +,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41 +,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41 +,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x3C,0x2F,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69 +,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x0A,0x0A,0x09,0x3C,0x21,0x2D,0x2D,0x20 +,0x43,0x44,0x4C,0x48,0x49,0x4B,0x4B,0x41,0x4B,0x45,0x4D,0x4F,0x44,0x20,0x2D,0x2D,0x3E,0x0A,0x09,0x3C +,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09 +,0x09,0x3C,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x43,0x44,0x4C,0x48,0x49 +,0x4B,0x4B,0x41,0x4B,0x45,0x4D,0x4F,0x44,0x3C,0x2F,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69 +,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65 +,0x3E,0x43,0x64,0x6C,0x48,0x69,0x6B,0x6B,0x61,0x6B,0x65,0x4D,0x6F,0x64,0x3C,0x2F,0x43,0x61,0x6D,0x65 +,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44 +,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x4D,0x6F,0x64,0x69,0x66,0x69,0x65,0x64,0x20 +,0x48,0x69,0x6B,0x6B,0x61,0x6B,0x65,0x20,0x50,0x61,0x74,0x74,0x65,0x72,0x6E,0x3C,0x2F,0x53,0x68,0x6F +,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x47,0x72 +,0x6F,0x75,0x70,0x49,0x64,0x3E,0x50,0x61,0x74,0x74,0x65,0x72,0x6E,0x20,0x52,0x65,0x63,0x6F,0x67,0x6E +,0x69,0x74,0x69,0x6F,0x6E,0x3C,0x2F,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x0A,0x09,0x09,0x3C,0x46 +,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x43,0x61,0x6E,0x64,0x6C +,0x65,0x73,0x74,0x69,0x63,0x6B,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x46,0x6C +,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75 +,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75 +,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x4F,0x70,0x65,0x6E,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x4F,0x70,0x65,0x6E,0x3C,0x2F,0x4E,0x61,0x6D +,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75 +,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69 +,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x48,0x69,0x67,0x68,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x48,0x69,0x67,0x68,0x3C,0x2F,0x4E,0x61,0x6D,0x65 +,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74 +,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72 +,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x4C,0x6F,0x77,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x4C,0x6F,0x77,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09 +,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67 +,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49 +,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54 +,0x79,0x70,0x65,0x3E,0x43,0x6C,0x6F,0x73,0x65,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x43,0x6C,0x6F,0x73,0x65,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A +,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72 +,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64 +,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F +,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C +,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x3C,0x54,0x79,0x70,0x65,0x3E,0x49,0x6E,0x74,0x65,0x67,0x65,0x72,0x20,0x41,0x72,0x72,0x61,0x79,0x3C +,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74 +,0x49,0x6E,0x74,0x65,0x67,0x65,0x72,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C +,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4C,0x69 +,0x6E,0x65,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67 +,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65 +,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65 +,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x3C,0x2F,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E +,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x0A,0x0A,0x09,0x3C,0x21,0x2D,0x2D,0x20,0x43,0x44,0x4C,0x48,0x4F +,0x4D,0x49,0x4E,0x47,0x50,0x49,0x47,0x45,0x4F,0x4E,0x20,0x2D,0x2D,0x3E,0x0A,0x09,0x3C,0x46,0x69,0x6E +,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x41 +,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x43,0x44,0x4C,0x48,0x4F,0x4D,0x49,0x4E +,0x47,0x50,0x49,0x47,0x45,0x4F,0x4E,0x3C,0x2F,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F +,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E +,0x43,0x64,0x6C,0x48,0x6F,0x6D,0x69,0x6E,0x67,0x50,0x69,0x67,0x65,0x6F,0x6E,0x3C,0x2F,0x43,0x61,0x6D +,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74 +,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x48,0x6F,0x6D,0x69,0x6E,0x67,0x20,0x50 +,0x69,0x67,0x65,0x6F,0x6E,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74 +,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x50,0x61,0x74,0x74 +,0x65,0x72,0x6E,0x20,0x52,0x65,0x63,0x6F,0x67,0x6E,0x69,0x74,0x69,0x6F,0x6E,0x3C,0x2F,0x47,0x72,0x6F +,0x75,0x70,0x49,0x64,0x3E,0x0A,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C +,0x46,0x6C,0x61,0x67,0x3E,0x43,0x61,0x6E,0x64,0x6C,0x65,0x73,0x74,0x69,0x63,0x6B,0x3C,0x2F,0x46,0x6C +,0x61,0x67,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x52,0x65 +,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73 +,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41 +,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x4F +,0x70,0x65,0x6E,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65 +,0x3E,0x4F,0x70,0x65,0x6E,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65 +,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E +,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72 +,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x48,0x69 +,0x67,0x68,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E +,0x48,0x69,0x67,0x68,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71 +,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A +,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67 +,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x4C,0x6F,0x77 +,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x4C,0x6F +,0x77,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72 +,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09 +,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65 +,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x43,0x6C,0x6F,0x73,0x65,0x3C +,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x43,0x6C,0x6F +,0x73,0x65,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69 +,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09 +,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D +,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D +,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75 +,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x49,0x6E,0x74,0x65 +,0x67,0x65,0x72,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x49,0x6E,0x74,0x65,0x67,0x65,0x72,0x3C,0x2F,0x4E +,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4C,0x69,0x6E,0x65,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x75 +,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x75 +,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x3C,0x2F,0x46,0x69 +,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x0A,0x0A,0x09 +,0x3C,0x21,0x2D,0x2D,0x20,0x43,0x44,0x4C,0x49,0x44,0x45,0x4E,0x54,0x49,0x43,0x41,0x4C,0x33,0x43,0x52 +,0x4F,0x57,0x53,0x20,0x2D,0x2D,0x3E,0x0A,0x09,0x3C,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46 +,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61 +,0x74,0x69,0x6F,0x6E,0x3E,0x43,0x44,0x4C,0x49,0x44,0x45,0x4E,0x54,0x49,0x43,0x41,0x4C,0x33,0x43,0x52 +,0x4F,0x57,0x53,0x3C,0x2F,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09 +,0x09,0x3C,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x43,0x64,0x6C,0x49 +,0x64,0x65,0x6E,0x74,0x69,0x63,0x61,0x6C,0x33,0x43,0x72,0x6F,0x77,0x73,0x3C,0x2F,0x43,0x61,0x6D,0x65 +,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44 +,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x49,0x64,0x65,0x6E,0x74,0x69,0x63,0x61,0x6C +,0x20,0x54,0x68,0x72,0x65,0x65,0x20,0x43,0x72,0x6F,0x77,0x73,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44 +,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x47,0x72,0x6F,0x75,0x70 +,0x49,0x64,0x3E,0x50,0x61,0x74,0x74,0x65,0x72,0x6E,0x20,0x52,0x65,0x63,0x6F,0x67,0x6E,0x69,0x74,0x69 +,0x6F,0x6E,0x3C,0x2F,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x0A,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67 +,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x43,0x61,0x6E,0x64,0x6C,0x65,0x73,0x74 +,0x69,0x63,0x6B,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73 +,0x3E,0x0A,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72 +,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65 +,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x3C,0x54,0x79,0x70,0x65,0x3E,0x4F,0x70,0x65,0x6E,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x4F,0x70,0x65,0x6E,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A +,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72 +,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64 +,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C +,0x54,0x79,0x70,0x65,0x3E,0x48,0x69,0x67,0x68,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x48,0x69,0x67,0x68,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09 +,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67 +,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49 +,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54 +,0x79,0x70,0x65,0x3E,0x4C,0x6F,0x77,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C +,0x4E,0x61,0x6D,0x65,0x3E,0x4C,0x6F,0x77,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C +,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65 +,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75 +,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65 +,0x3E,0x43,0x6C,0x6F,0x73,0x65,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E +,0x61,0x6D,0x65,0x3E,0x43,0x6C,0x6F,0x73,0x65,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09 +,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D +,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70 +,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70 +,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x75,0x74 +,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79 +,0x70,0x65,0x3E,0x49,0x6E,0x74,0x65,0x67,0x65,0x72,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79 +,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x49,0x6E,0x74 +,0x65,0x67,0x65,0x72,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61 +,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4C,0x69,0x6E,0x65,0x3C +,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A +,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E +,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73 +,0x3E,0x0A,0x09,0x3C,0x2F,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69 +,0x6F,0x6E,0x3E,0x0A,0x0A,0x0A,0x09,0x3C,0x21,0x2D,0x2D,0x20,0x43,0x44,0x4C,0x49,0x4E,0x4E,0x45,0x43 +,0x4B,0x20,0x2D,0x2D,0x3E,0x0A,0x09,0x3C,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E +,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69 +,0x6F,0x6E,0x3E,0x43,0x44,0x4C,0x49,0x4E,0x4E,0x45,0x43,0x4B,0x3C,0x2F,0x41,0x62,0x62,0x72,0x65,0x76 +,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65 +,0x4E,0x61,0x6D,0x65,0x3E,0x43,0x64,0x6C,0x49,0x6E,0x4E,0x65,0x63,0x6B,0x3C,0x2F,0x43,0x61,0x6D,0x65 +,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44 +,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x49,0x6E,0x2D,0x4E,0x65,0x63,0x6B,0x20,0x50 +,0x61,0x74,0x74,0x65,0x72,0x6E,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70 +,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x50,0x61,0x74 +,0x74,0x65,0x72,0x6E,0x20,0x52,0x65,0x63,0x6F,0x67,0x6E,0x69,0x74,0x69,0x6F,0x6E,0x3C,0x2F,0x47,0x72 +,0x6F,0x75,0x70,0x49,0x64,0x3E,0x0A,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09 +,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x43,0x61,0x6E,0x64,0x6C,0x65,0x73,0x74,0x69,0x63,0x6B,0x3C,0x2F,0x46 +,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x52 +,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74 +,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74 +,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E +,0x4F,0x70,0x65,0x6E,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D +,0x65,0x3E,0x4F,0x70,0x65,0x6E,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52 +,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74 +,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41 +,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x48 +,0x69,0x67,0x68,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65 +,0x3E,0x48,0x69,0x67,0x68,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65 +,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E +,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72 +,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x4C,0x6F +,0x77,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x4C +,0x6F,0x77,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69 +,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09 +,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D +,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x43,0x6C,0x6F,0x73,0x65 +,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x43,0x6C +,0x6F,0x73,0x65,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75 +,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09 +,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75 +,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75 +,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67 +,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x49,0x6E,0x74 +,0x65,0x67,0x65,0x72,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x49,0x6E,0x74,0x65,0x67,0x65,0x72,0x3C,0x2F +,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4C,0x69,0x6E,0x65,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F +,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F +,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x3C,0x2F,0x46 +,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x0A,0x0A +,0x09,0x3C,0x21,0x2D,0x2D,0x20,0x43,0x44,0x4C,0x49,0x4E,0x56,0x45,0x52,0x54,0x45,0x44,0x48,0x41,0x4D +,0x4D,0x45,0x52,0x20,0x2D,0x2D,0x3E,0x0A,0x09,0x3C,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46 +,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61 +,0x74,0x69,0x6F,0x6E,0x3E,0x43,0x44,0x4C,0x49,0x4E,0x56,0x45,0x52,0x54,0x45,0x44,0x48,0x41,0x4D,0x4D +,0x45,0x52,0x3C,0x2F,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09 +,0x3C,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x43,0x64,0x6C,0x49,0x6E +,0x76,0x65,0x72,0x74,0x65,0x64,0x48,0x61,0x6D,0x6D,0x65,0x72,0x3C,0x2F,0x43,0x61,0x6D,0x65,0x6C,0x43 +,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73 +,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x49,0x6E,0x76,0x65,0x72,0x74,0x65,0x64,0x20,0x48,0x61 +,0x6D,0x6D,0x65,0x72,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69 +,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x50,0x61,0x74,0x74,0x65 +,0x72,0x6E,0x20,0x52,0x65,0x63,0x6F,0x67,0x6E,0x69,0x74,0x69,0x6F,0x6E,0x3C,0x2F,0x47,0x72,0x6F,0x75 +,0x70,0x49,0x64,0x3E,0x0A,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x46 +,0x6C,0x61,0x67,0x3E,0x43,0x61,0x6E,0x64,0x6C,0x65,0x73,0x74,0x69,0x63,0x6B,0x3C,0x2F,0x46,0x6C,0x61 +,0x67,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x52,0x65,0x71 +,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E +,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72 +,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x4F,0x70 +,0x65,0x6E,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E +,0x4F,0x70,0x65,0x6E,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71 +,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A +,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67 +,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x48,0x69,0x67 +,0x68,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x48 +,0x69,0x67,0x68,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75 +,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09 +,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75 +,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x4C,0x6F,0x77,0x3C +,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x4C,0x6F,0x77 +,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65 +,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C +,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E +,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x43,0x6C,0x6F,0x73,0x65,0x3C,0x2F +,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x43,0x6C,0x6F,0x73 +,0x65,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72 +,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C +,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65 +,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65 +,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D +,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x49,0x6E,0x74,0x65,0x67 +,0x65,0x72,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x49,0x6E,0x74,0x65,0x67,0x65,0x72,0x3C,0x2F,0x4E,0x61 +,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4C,0x69,0x6E,0x65,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74 +,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74 +,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x3C,0x2F,0x46,0x69,0x6E +,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x0A,0x0A,0x09,0x3C +,0x21,0x2D,0x2D,0x20,0x43,0x44,0x4C,0x4B,0x49,0x43,0x4B,0x49,0x4E,0x47,0x20,0x2D,0x2D,0x3E,0x0A,0x09 +,0x3C,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A +,0x09,0x09,0x3C,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x43,0x44,0x4C,0x4B +,0x49,0x43,0x4B,0x49,0x4E,0x47,0x3C,0x2F,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E +,0x3E,0x0A,0x09,0x09,0x3C,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x43 +,0x64,0x6C,0x4B,0x69,0x63,0x6B,0x69,0x6E,0x67,0x3C,0x2F,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65 +,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69 +,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x4B,0x69,0x63,0x6B,0x69,0x6E,0x67,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74 +,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x47,0x72,0x6F,0x75 +,0x70,0x49,0x64,0x3E,0x50,0x61,0x74,0x74,0x65,0x72,0x6E,0x20,0x52,0x65,0x63,0x6F,0x67,0x6E,0x69,0x74 +,0x69,0x6F,0x6E,0x3C,0x2F,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x0A,0x09,0x09,0x3C,0x46,0x6C,0x61 +,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x43,0x61,0x6E,0x64,0x6C,0x65,0x73 +,0x74,0x69,0x63,0x6B,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67 +,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41 +,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72 +,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x4F,0x70,0x65,0x6E,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x4F,0x70,0x65,0x6E,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E +,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41 +,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65 +,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x3C,0x54,0x79,0x70,0x65,0x3E,0x48,0x69,0x67,0x68,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x48,0x69,0x67,0x68,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A +,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72 +,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64 +,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C +,0x54,0x79,0x70,0x65,0x3E,0x4C,0x6F,0x77,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x4C,0x6F,0x77,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09 +,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D +,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70 +,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70 +,0x65,0x3E,0x43,0x6C,0x6F,0x73,0x65,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C +,0x4E,0x61,0x6D,0x65,0x3E,0x43,0x6C,0x6F,0x73,0x65,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09 +,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75 +,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E +,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x75,0x74 +,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x75 +,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54 +,0x79,0x70,0x65,0x3E,0x49,0x6E,0x74,0x65,0x67,0x65,0x72,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54 +,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x49,0x6E +,0x74,0x65,0x67,0x65,0x72,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C +,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4C,0x69,0x6E,0x65 +,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E +,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74 +,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74 +,0x73,0x3E,0x0A,0x09,0x3C,0x2F,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74 +,0x69,0x6F,0x6E,0x3E,0x0A,0x0A,0x0A,0x09,0x3C,0x21,0x2D,0x2D,0x20,0x43,0x44,0x4C,0x4B,0x49,0x43,0x4B +,0x49,0x4E,0x47,0x42,0x59,0x4C,0x45,0x4E,0x47,0x54,0x48,0x20,0x2D,0x2D,0x3E,0x0A,0x09,0x3C,0x46,0x69 +,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C +,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x43,0x44,0x4C,0x4B,0x49,0x43,0x4B +,0x49,0x4E,0x47,0x42,0x59,0x4C,0x45,0x4E,0x47,0x54,0x48,0x3C,0x2F,0x41,0x62,0x62,0x72,0x65,0x76,0x69 +,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E +,0x61,0x6D,0x65,0x3E,0x43,0x64,0x6C,0x4B,0x69,0x63,0x6B,0x69,0x6E,0x67,0x42,0x79,0x4C,0x65,0x6E,0x67 +,0x74,0x68,0x3C,0x2F,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09 +,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x4B +,0x69,0x63,0x6B,0x69,0x6E,0x67,0x20,0x2D,0x20,0x62,0x75,0x6C,0x6C,0x2F,0x62,0x65,0x61,0x72,0x20,0x64 +,0x65,0x74,0x65,0x72,0x6D,0x69,0x6E,0x65,0x64,0x20,0x62,0x79,0x20,0x74,0x68,0x65,0x20,0x6C,0x6F,0x6E +,0x67,0x65,0x72,0x20,0x6D,0x61,0x72,0x75,0x62,0x6F,0x7A,0x75,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44 +,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x47,0x72,0x6F,0x75,0x70 +,0x49,0x64,0x3E,0x50,0x61,0x74,0x74,0x65,0x72,0x6E,0x20,0x52,0x65,0x63,0x6F,0x67,0x6E,0x69,0x74,0x69 +,0x6F,0x6E,0x3C,0x2F,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x0A,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67 +,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x43,0x61,0x6E,0x64,0x6C,0x65,0x73,0x74 +,0x69,0x63,0x6B,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73 +,0x3E,0x0A,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72 +,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65 +,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x3C,0x54,0x79,0x70,0x65,0x3E,0x4F,0x70,0x65,0x6E,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x4F,0x70,0x65,0x6E,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A +,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72 +,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64 +,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C +,0x54,0x79,0x70,0x65,0x3E,0x48,0x69,0x67,0x68,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x48,0x69,0x67,0x68,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09 +,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67 +,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49 +,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54 +,0x79,0x70,0x65,0x3E,0x4C,0x6F,0x77,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C +,0x4E,0x61,0x6D,0x65,0x3E,0x4C,0x6F,0x77,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C +,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65 +,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75 +,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65 +,0x3E,0x43,0x6C,0x6F,0x73,0x65,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E +,0x61,0x6D,0x65,0x3E,0x43,0x6C,0x6F,0x73,0x65,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09 +,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D +,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70 +,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70 +,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x75,0x74 +,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79 +,0x70,0x65,0x3E,0x49,0x6E,0x74,0x65,0x67,0x65,0x72,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79 +,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x49,0x6E,0x74 +,0x65,0x67,0x65,0x72,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61 +,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4C,0x69,0x6E,0x65,0x3C +,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A +,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E +,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73 +,0x3E,0x0A,0x09,0x3C,0x2F,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69 +,0x6F,0x6E,0x3E,0x0A,0x0A,0x0A,0x09,0x3C,0x21,0x2D,0x2D,0x20,0x43,0x44,0x4C,0x4C,0x41,0x44,0x44,0x45 +,0x52,0x42,0x4F,0x54,0x54,0x4F,0x4D,0x20,0x2D,0x2D,0x3E,0x0A,0x09,0x3C,0x46,0x69,0x6E,0x61,0x6E,0x63 +,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x41,0x62,0x62,0x72 +,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x43,0x44,0x4C,0x4C,0x41,0x44,0x44,0x45,0x52,0x42,0x4F +,0x54,0x54,0x4F,0x4D,0x3C,0x2F,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x0A +,0x09,0x09,0x3C,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x43,0x64,0x6C +,0x4C,0x61,0x64,0x64,0x65,0x72,0x42,0x6F,0x74,0x74,0x6F,0x6D,0x3C,0x2F,0x43,0x61,0x6D,0x65,0x6C,0x43 +,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73 +,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x4C,0x61,0x64,0x64,0x65,0x72,0x20,0x42,0x6F,0x74,0x74 +,0x6F,0x6D,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E +,0x3E,0x0A,0x09,0x09,0x3C,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x50,0x61,0x74,0x74,0x65,0x72,0x6E +,0x20,0x52,0x65,0x63,0x6F,0x67,0x6E,0x69,0x74,0x69,0x6F,0x6E,0x3C,0x2F,0x47,0x72,0x6F,0x75,0x70,0x49 +,0x64,0x3E,0x0A,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61 +,0x67,0x3E,0x43,0x61,0x6E,0x64,0x6C,0x65,0x73,0x74,0x69,0x63,0x6B,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E +,0x0A,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69 +,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09 +,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75 +,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x4F,0x70,0x65,0x6E +,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x4F,0x70 +,0x65,0x6E,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69 +,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09 +,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D +,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x48,0x69,0x67,0x68,0x3C +,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x48,0x69,0x67 +,0x68,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72 +,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09 +,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65 +,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x4C,0x6F,0x77,0x3C,0x2F,0x54 +,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x4C,0x6F,0x77,0x3C,0x2F +,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49 +,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65 +,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x43,0x6C,0x6F,0x73,0x65,0x3C,0x2F,0x54,0x79 +,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x43,0x6C,0x6F,0x73,0x65,0x3C +,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64 +,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x52 +,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74 +,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74 +,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E +,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x49,0x6E,0x74,0x65,0x67,0x65,0x72 +,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E +,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x49,0x6E,0x74,0x65,0x67,0x65,0x72,0x3C,0x2F,0x4E,0x61,0x6D,0x65 +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C +,0x46,0x6C,0x61,0x67,0x3E,0x4C,0x69,0x6E,0x65,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75 +,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75 +,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x3C,0x2F,0x46,0x69,0x6E,0x61,0x6E +,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x0A,0x0A,0x09,0x3C,0x21,0x2D +,0x2D,0x20,0x43,0x44,0x4C,0x4C,0x4F,0x4E,0x47,0x4C,0x45,0x47,0x47,0x45,0x44,0x44,0x4F,0x4A,0x49,0x20 +,0x2D,0x2D,0x3E,0x0A,0x09,0x3C,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74 +,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E +,0x3E,0x43,0x44,0x4C,0x4C,0x4F,0x4E,0x47,0x4C,0x45,0x47,0x47,0x45,0x44,0x44,0x4F,0x4A,0x49,0x3C,0x2F +,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x43,0x61,0x6D +,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x43,0x64,0x6C,0x4C,0x6F,0x6E,0x67,0x4C,0x65 +,0x67,0x67,0x65,0x64,0x44,0x6F,0x6A,0x69,0x3C,0x2F,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E +,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70 +,0x74,0x69,0x6F,0x6E,0x3E,0x4C,0x6F,0x6E,0x67,0x20,0x4C,0x65,0x67,0x67,0x65,0x64,0x20,0x44,0x6F,0x6A +,0x69,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E +,0x0A,0x09,0x09,0x3C,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x50,0x61,0x74,0x74,0x65,0x72,0x6E,0x20 +,0x52,0x65,0x63,0x6F,0x67,0x6E,0x69,0x74,0x69,0x6F,0x6E,0x3C,0x2F,0x47,0x72,0x6F,0x75,0x70,0x49,0x64 +,0x3E,0x0A,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67 +,0x3E,0x43,0x61,0x6E,0x64,0x6C,0x65,0x73,0x74,0x69,0x63,0x6B,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A +,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72 +,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09 +,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D +,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x4F,0x70,0x65,0x6E,0x3C +,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x4F,0x70,0x65 +,0x6E,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72 +,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09 +,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65 +,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x48,0x69,0x67,0x68,0x3C,0x2F +,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x48,0x69,0x67,0x68 +,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65 +,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C +,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E +,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x4C,0x6F,0x77,0x3C,0x2F,0x54,0x79 +,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x4C,0x6F,0x77,0x3C,0x2F,0x4E +,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E +,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71 +,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x43,0x6C,0x6F,0x73,0x65,0x3C,0x2F,0x54,0x79,0x70 +,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x43,0x6C,0x6F,0x73,0x65,0x3C,0x2F +,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49 +,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x52,0x65 +,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73 +,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73 +,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74 +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x49,0x6E,0x74,0x65,0x67,0x65,0x72,0x20 +,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61 +,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x49,0x6E,0x74,0x65,0x67,0x65,0x72,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x46 +,0x6C,0x61,0x67,0x3E,0x4C,0x69,0x6E,0x65,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74 +,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74 +,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x3C,0x2F,0x46,0x69,0x6E,0x61,0x6E,0x63 +,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x0A,0x0A,0x09,0x3C,0x21,0x2D,0x2D +,0x20,0x43,0x44,0x4C,0x4C,0x4F,0x4E,0x47,0x4C,0x49,0x4E,0x45,0x20,0x2D,0x2D,0x3E,0x0A,0x09,0x3C,0x46 +,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09 +,0x3C,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x43,0x44,0x4C,0x4C,0x4F,0x4E +,0x47,0x4C,0x49,0x4E,0x45,0x3C,0x2F,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E +,0x0A,0x09,0x09,0x3C,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x43,0x64 +,0x6C,0x4C,0x6F,0x6E,0x67,0x4C,0x69,0x6E,0x65,0x3C,0x2F,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65 +,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69 +,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x4C,0x6F,0x6E,0x67,0x20,0x4C,0x69,0x6E,0x65,0x20,0x43,0x61,0x6E,0x64 +,0x6C,0x65,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E +,0x3E,0x0A,0x09,0x09,0x3C,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x50,0x61,0x74,0x74,0x65,0x72,0x6E +,0x20,0x52,0x65,0x63,0x6F,0x67,0x6E,0x69,0x74,0x69,0x6F,0x6E,0x3C,0x2F,0x47,0x72,0x6F,0x75,0x70,0x49 +,0x64,0x3E,0x0A,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61 +,0x67,0x3E,0x43,0x61,0x6E,0x64,0x6C,0x65,0x73,0x74,0x69,0x63,0x6B,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E +,0x0A,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69 +,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09 +,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75 +,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x4F,0x70,0x65,0x6E +,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x4F,0x70 +,0x65,0x6E,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69 +,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09 +,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D +,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x48,0x69,0x67,0x68,0x3C +,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x48,0x69,0x67 +,0x68,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72 +,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09 +,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65 +,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x4C,0x6F,0x77,0x3C,0x2F,0x54 +,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x4C,0x6F,0x77,0x3C,0x2F +,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49 +,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65 +,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x43,0x6C,0x6F,0x73,0x65,0x3C,0x2F,0x54,0x79 +,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x43,0x6C,0x6F,0x73,0x65,0x3C +,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64 +,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x52 +,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74 +,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74 +,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E +,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x49,0x6E,0x74,0x65,0x67,0x65,0x72 +,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E +,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x49,0x6E,0x74,0x65,0x67,0x65,0x72,0x3C,0x2F,0x4E,0x61,0x6D,0x65 +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C +,0x46,0x6C,0x61,0x67,0x3E,0x4C,0x69,0x6E,0x65,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75 +,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75 +,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x3C,0x2F,0x46,0x69,0x6E,0x61,0x6E +,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x0A,0x0A,0x09,0x3C,0x21,0x2D +,0x2D,0x20,0x43,0x44,0x4C,0x4D,0x41,0x52,0x55,0x42,0x4F,0x5A,0x55,0x20,0x2D,0x2D,0x3E,0x0A,0x09,0x3C +,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09 +,0x09,0x3C,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x43,0x44,0x4C,0x4D,0x41 +,0x52,0x55,0x42,0x4F,0x5A,0x55,0x3C,0x2F,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E +,0x3E,0x0A,0x09,0x09,0x3C,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x43 +,0x64,0x6C,0x4D,0x61,0x72,0x75,0x62,0x6F,0x7A,0x75,0x3C,0x2F,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73 +,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72 +,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x4D,0x61,0x72,0x75,0x62,0x6F,0x7A,0x75,0x3C,0x2F,0x53,0x68,0x6F +,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x47,0x72 +,0x6F,0x75,0x70,0x49,0x64,0x3E,0x50,0x61,0x74,0x74,0x65,0x72,0x6E,0x20,0x52,0x65,0x63,0x6F,0x67,0x6E +,0x69,0x74,0x69,0x6F,0x6E,0x3C,0x2F,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x0A,0x09,0x09,0x3C,0x46 +,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x43,0x61,0x6E,0x64,0x6C +,0x65,0x73,0x74,0x69,0x63,0x6B,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x46,0x6C +,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75 +,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75 +,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x4F,0x70,0x65,0x6E,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x4F,0x70,0x65,0x6E,0x3C,0x2F,0x4E,0x61,0x6D +,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75 +,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69 +,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x48,0x69,0x67,0x68,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x48,0x69,0x67,0x68,0x3C,0x2F,0x4E,0x61,0x6D,0x65 +,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74 +,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72 +,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x4C,0x6F,0x77,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x4C,0x6F,0x77,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09 +,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67 +,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49 +,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54 +,0x79,0x70,0x65,0x3E,0x43,0x6C,0x6F,0x73,0x65,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x43,0x6C,0x6F,0x73,0x65,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A +,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72 +,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64 +,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F +,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C +,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x3C,0x54,0x79,0x70,0x65,0x3E,0x49,0x6E,0x74,0x65,0x67,0x65,0x72,0x20,0x41,0x72,0x72,0x61,0x79,0x3C +,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74 +,0x49,0x6E,0x74,0x65,0x67,0x65,0x72,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C +,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4C,0x69 +,0x6E,0x65,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67 +,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65 +,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65 +,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x3C,0x2F,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E +,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x0A,0x0A,0x09,0x3C,0x21,0x2D,0x2D,0x20,0x43,0x44,0x4C,0x4D,0x41 +,0x54,0x43,0x48,0x49,0x4E,0x47,0x4C,0x4F,0x57,0x20,0x2D,0x2D,0x3E,0x0A,0x09,0x3C,0x46,0x69,0x6E,0x61 +,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x41,0x62 +,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x43,0x44,0x4C,0x4D,0x41,0x54,0x43,0x48,0x49 +,0x4E,0x47,0x4C,0x4F,0x57,0x3C,0x2F,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E +,0x0A,0x09,0x09,0x3C,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x43,0x64 +,0x6C,0x4D,0x61,0x74,0x63,0x68,0x69,0x6E,0x67,0x4C,0x6F,0x77,0x3C,0x2F,0x43,0x61,0x6D,0x65,0x6C,0x43 +,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73 +,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x4D,0x61,0x74,0x63,0x68,0x69,0x6E,0x67,0x20,0x4C,0x6F +,0x77,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E +,0x0A,0x09,0x09,0x3C,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x50,0x61,0x74,0x74,0x65,0x72,0x6E,0x20 +,0x52,0x65,0x63,0x6F,0x67,0x6E,0x69,0x74,0x69,0x6F,0x6E,0x3C,0x2F,0x47,0x72,0x6F,0x75,0x70,0x49,0x64 +,0x3E,0x0A,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67 +,0x3E,0x43,0x61,0x6E,0x64,0x6C,0x65,0x73,0x74,0x69,0x63,0x6B,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A +,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72 +,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09 +,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D +,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x4F,0x70,0x65,0x6E,0x3C +,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x4F,0x70,0x65 +,0x6E,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72 +,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09 +,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65 +,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x48,0x69,0x67,0x68,0x3C,0x2F +,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x48,0x69,0x67,0x68 +,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65 +,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C +,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E +,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x4C,0x6F,0x77,0x3C,0x2F,0x54,0x79 +,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x4C,0x6F,0x77,0x3C,0x2F,0x4E +,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E +,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71 +,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x43,0x6C,0x6F,0x73,0x65,0x3C,0x2F,0x54,0x79,0x70 +,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x43,0x6C,0x6F,0x73,0x65,0x3C,0x2F +,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49 +,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x52,0x65 +,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73 +,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73 +,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74 +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x49,0x6E,0x74,0x65,0x67,0x65,0x72,0x20 +,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61 +,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x49,0x6E,0x74,0x65,0x67,0x65,0x72,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x46 +,0x6C,0x61,0x67,0x3E,0x4C,0x69,0x6E,0x65,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74 +,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74 +,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x3C,0x2F,0x46,0x69,0x6E,0x61,0x6E,0x63 +,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x0A,0x0A,0x09,0x3C,0x21,0x2D,0x2D +,0x20,0x43,0x44,0x4C,0x4D,0x41,0x54,0x48,0x4F,0x4C,0x44,0x20,0x2D,0x2D,0x3E,0x0A,0x09,0x3C,0x46,0x69 +,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C +,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x43,0x44,0x4C,0x4D,0x41,0x54,0x48 +,0x4F,0x4C,0x44,0x3C,0x2F,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09 +,0x09,0x3C,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x43,0x64,0x6C,0x4D +,0x61,0x74,0x48,0x6F,0x6C,0x64,0x3C,0x2F,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D +,0x65,0x3E,0x0A,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69 +,0x6F,0x6E,0x3E,0x4D,0x61,0x74,0x20,0x48,0x6F,0x6C,0x64,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65 +,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x47,0x72,0x6F,0x75,0x70,0x49 +,0x64,0x3E,0x50,0x61,0x74,0x74,0x65,0x72,0x6E,0x20,0x52,0x65,0x63,0x6F,0x67,0x6E,0x69,0x74,0x69,0x6F +,0x6E,0x3C,0x2F,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x0A,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73 +,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x43,0x61,0x6E,0x64,0x6C,0x65,0x73,0x74,0x69 +,0x63,0x6B,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E +,0x0A,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67 +,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64 +,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C +,0x54,0x79,0x70,0x65,0x3E,0x4F,0x70,0x65,0x6E,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x4F,0x70,0x65,0x6E,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09 +,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67 +,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49 +,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54 +,0x79,0x70,0x65,0x3E,0x48,0x69,0x67,0x68,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x48,0x69,0x67,0x68,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09 +,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75 +,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E +,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79 +,0x70,0x65,0x3E,0x4C,0x6F,0x77,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E +,0x61,0x6D,0x65,0x3E,0x4C,0x6F,0x77,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F +,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E +,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74 +,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E +,0x43,0x6C,0x6F,0x73,0x65,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61 +,0x6D,0x65,0x3E,0x43,0x6C,0x6F,0x73,0x65,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C +,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65 +,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75 +,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x70,0x74,0x69,0x6F +,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09 +,0x09,0x09,0x3C,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75 +,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x50,0x65,0x6E,0x65 +,0x74,0x72,0x61,0x74,0x69,0x6F,0x6E,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C +,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x50,0x65,0x72 +,0x63,0x65,0x6E,0x74,0x61,0x67,0x65,0x20,0x6F,0x66,0x20,0x70,0x65,0x6E,0x65,0x74,0x72,0x61,0x74,0x69 +,0x6F,0x6E,0x20,0x6F,0x66,0x20,0x61,0x20,0x63,0x61,0x6E,0x64,0x6C,0x65,0x20,0x77,0x69,0x74,0x68,0x69 +,0x6E,0x20,0x61,0x6E,0x6F,0x74,0x68,0x65,0x72,0x20,0x63,0x61,0x6E,0x64,0x6C,0x65,0x3C,0x2F,0x53,0x68 +,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x3C,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x69 +,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x30,0x2E,0x30,0x30,0x30,0x30,0x30,0x30,0x65,0x2B,0x30,0x3C,0x2F,0x4D +,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x61,0x78,0x69,0x6D,0x75 +,0x6D,0x3E,0x33,0x2E,0x30,0x30,0x30,0x30,0x30,0x30,0x65,0x2B,0x33,0x37,0x3C,0x2F,0x4D,0x61,0x78,0x69 +,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x50,0x72,0x65,0x63,0x69,0x73,0x69,0x6F,0x6E +,0x3E,0x30,0x3C,0x2F,0x50,0x72,0x65,0x63,0x69,0x73,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09 +,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x30,0x2E,0x30,0x30 +,0x30,0x30,0x30,0x30,0x65,0x2B,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74 +,0x61,0x72,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64 +,0x45,0x6E,0x64,0x3E,0x30,0x2E,0x30,0x30,0x30,0x30,0x30,0x30,0x65,0x2B,0x30,0x3C,0x2F,0x53,0x75,0x67 +,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67 +,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x30,0x2E,0x30,0x30 +,0x30,0x30,0x30,0x30,0x65,0x2B,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E +,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x52,0x61,0x6E,0x67,0x65 +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E +,0x35,0x2E,0x30,0x30,0x30,0x30,0x30,0x30,0x65,0x2D,0x31,0x3C,0x2F,0x44,0x65,0x66,0x61,0x75,0x6C,0x74 +,0x56,0x61,0x6C,0x75,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C +,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F +,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74 +,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74 +,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E +,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x49,0x6E,0x74,0x65,0x67,0x65,0x72 +,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E +,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x49,0x6E,0x74,0x65,0x67,0x65,0x72,0x3C,0x2F,0x4E,0x61,0x6D,0x65 +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C +,0x46,0x6C,0x61,0x67,0x3E,0x4C,0x69,0x6E,0x65,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75 +,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75 +,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x3C,0x2F,0x46,0x69,0x6E,0x61,0x6E +,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x0A,0x0A,0x09,0x3C,0x21,0x2D +,0x2D,0x20,0x43,0x44,0x4C,0x4D,0x4F,0x52,0x4E,0x49,0x4E,0x47,0x44,0x4F,0x4A,0x49,0x53,0x54,0x41,0x52 +,0x20,0x2D,0x2D,0x3E,0x0A,0x09,0x3C,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63 +,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F +,0x6E,0x3E,0x43,0x44,0x4C,0x4D,0x4F,0x52,0x4E,0x49,0x4E,0x47,0x44,0x4F,0x4A,0x49,0x53,0x54,0x41,0x52 +,0x3C,0x2F,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x43 +,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x43,0x64,0x6C,0x4D,0x6F,0x72,0x6E +,0x69,0x6E,0x67,0x44,0x6F,0x6A,0x69,0x53,0x74,0x61,0x72,0x3C,0x2F,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61 +,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63 +,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x4D,0x6F,0x72,0x6E,0x69,0x6E,0x67,0x20,0x44,0x6F,0x6A,0x69 +,0x20,0x53,0x74,0x61,0x72,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74 +,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x50,0x61,0x74,0x74 +,0x65,0x72,0x6E,0x20,0x52,0x65,0x63,0x6F,0x67,0x6E,0x69,0x74,0x69,0x6F,0x6E,0x3C,0x2F,0x47,0x72,0x6F +,0x75,0x70,0x49,0x64,0x3E,0x0A,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C +,0x46,0x6C,0x61,0x67,0x3E,0x43,0x61,0x6E,0x64,0x6C,0x65,0x73,0x74,0x69,0x63,0x6B,0x3C,0x2F,0x46,0x6C +,0x61,0x67,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x52,0x65 +,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73 +,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41 +,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x4F +,0x70,0x65,0x6E,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65 +,0x3E,0x4F,0x70,0x65,0x6E,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65 +,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E +,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72 +,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x48,0x69 +,0x67,0x68,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E +,0x48,0x69,0x67,0x68,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71 +,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A +,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67 +,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x4C,0x6F,0x77 +,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x4C,0x6F +,0x77,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72 +,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09 +,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65 +,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x43,0x6C,0x6F,0x73,0x65,0x3C +,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x43,0x6C,0x6F +,0x73,0x65,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69 +,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09 +,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D +,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70 +,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x70,0x74 +,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x50,0x65,0x6E,0x65,0x74,0x72,0x61,0x74,0x69,0x6F +,0x6E,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44 +,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x50,0x65,0x72,0x63,0x65,0x6E,0x74,0x61,0x67 +,0x65,0x20,0x6F,0x66,0x20,0x70,0x65,0x6E,0x65,0x74,0x72,0x61,0x74,0x69,0x6F,0x6E,0x20,0x6F,0x66,0x20 +,0x61,0x20,0x63,0x61,0x6E,0x64,0x6C,0x65,0x20,0x77,0x69,0x74,0x68,0x69,0x6E,0x20,0x61,0x6E,0x6F,0x74 +,0x68,0x65,0x72,0x20,0x63,0x61,0x6E,0x64,0x6C,0x65,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73 +,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E +,0x44,0x6F,0x75,0x62,0x6C,0x65,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x52 +,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E +,0x30,0x2E,0x30,0x30,0x30,0x30,0x30,0x30,0x65,0x2B,0x30,0x3C,0x2F,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x33,0x2E,0x30,0x30 +,0x30,0x30,0x30,0x30,0x65,0x2B,0x33,0x37,0x3C,0x2F,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x09,0x3C,0x50,0x72,0x65,0x63,0x69,0x73,0x69,0x6F,0x6E,0x3E,0x30,0x3C,0x2F,0x50,0x72 +,0x65,0x63,0x69,0x73,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65 +,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x30,0x2E,0x30,0x30,0x30,0x30,0x30,0x30,0x65,0x2B +,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x30,0x2E +,0x30,0x30,0x30,0x30,0x30,0x30,0x65,0x2B,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64 +,0x45,0x6E,0x64,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64 +,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x30,0x2E,0x30,0x30,0x30,0x30,0x30,0x30,0x65,0x2B +,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E +,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x3C,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x33,0x2E,0x30,0x30,0x30,0x30 +,0x30,0x30,0x65,0x2D,0x31,0x3C,0x2F,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E +,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41 +,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61 +,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C +,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09 +,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x49,0x6E,0x74,0x65,0x67,0x65,0x72,0x20,0x41,0x72,0x72,0x61,0x79 +,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75 +,0x74,0x49,0x6E,0x74,0x65,0x67,0x65,0x72,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4C +,0x69,0x6E,0x65,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61 +,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D +,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D +,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x3C,0x2F,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75 +,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x0A,0x0A,0x09,0x3C,0x21,0x2D,0x2D,0x20,0x43,0x44,0x4C,0x4D +,0x4F,0x52,0x4E,0x49,0x4E,0x47,0x53,0x54,0x41,0x52,0x20,0x2D,0x2D,0x3E,0x0A,0x09,0x3C,0x46,0x69,0x6E +,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x41 +,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x43,0x44,0x4C,0x4D,0x4F,0x52,0x4E,0x49 +,0x4E,0x47,0x53,0x54,0x41,0x52,0x3C,0x2F,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E +,0x3E,0x0A,0x09,0x09,0x3C,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x43 +,0x64,0x6C,0x4D,0x6F,0x72,0x6E,0x69,0x6E,0x67,0x53,0x74,0x61,0x72,0x3C,0x2F,0x43,0x61,0x6D,0x65,0x6C +,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65 +,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x4D,0x6F,0x72,0x6E,0x69,0x6E,0x67,0x20,0x53,0x74 +,0x61,0x72,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E +,0x3E,0x0A,0x09,0x09,0x3C,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x50,0x61,0x74,0x74,0x65,0x72,0x6E +,0x20,0x52,0x65,0x63,0x6F,0x67,0x6E,0x69,0x74,0x69,0x6F,0x6E,0x3C,0x2F,0x47,0x72,0x6F,0x75,0x70,0x49 +,0x64,0x3E,0x0A,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61 +,0x67,0x3E,0x43,0x61,0x6E,0x64,0x6C,0x65,0x73,0x74,0x69,0x63,0x6B,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E +,0x0A,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69 +,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09 +,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75 +,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x4F,0x70,0x65,0x6E +,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x4F,0x70 +,0x65,0x6E,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69 +,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09 +,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D +,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x48,0x69,0x67,0x68,0x3C +,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x48,0x69,0x67 +,0x68,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72 +,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09 +,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65 +,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x4C,0x6F,0x77,0x3C,0x2F,0x54 +,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x4C,0x6F,0x77,0x3C,0x2F +,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49 +,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65 +,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x43,0x6C,0x6F,0x73,0x65,0x3C,0x2F,0x54,0x79 +,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x43,0x6C,0x6F,0x73,0x65,0x3C +,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64 +,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x52 +,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74 +,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41 +,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x70,0x74,0x69,0x6F,0x6E +,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x50,0x65,0x6E,0x65,0x74,0x72,0x61,0x74,0x69,0x6F,0x6E,0x3C,0x2F +,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63 +,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x50,0x65,0x72,0x63,0x65,0x6E,0x74,0x61,0x67,0x65,0x20,0x6F +,0x66,0x20,0x70,0x65,0x6E,0x65,0x74,0x72,0x61,0x74,0x69,0x6F,0x6E,0x20,0x6F,0x66,0x20,0x61,0x20,0x63 +,0x61,0x6E,0x64,0x6C,0x65,0x20,0x77,0x69,0x74,0x68,0x69,0x6E,0x20,0x61,0x6E,0x6F,0x74,0x68,0x65,0x72 +,0x20,0x63,0x61,0x6E,0x64,0x6C,0x65,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69 +,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75 +,0x62,0x6C,0x65,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x52,0x61,0x6E,0x67 +,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x30,0x2E,0x30 +,0x30,0x30,0x30,0x30,0x30,0x65,0x2B,0x30,0x3C,0x2F,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x09,0x3C,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x33,0x2E,0x30,0x30,0x30,0x30,0x30 +,0x30,0x65,0x2B,0x33,0x37,0x3C,0x2F,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x09,0x3C,0x50,0x72,0x65,0x63,0x69,0x73,0x69,0x6F,0x6E,0x3E,0x30,0x3C,0x2F,0x50,0x72,0x65,0x63,0x69 +,0x73,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65 +,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x30,0x2E,0x30,0x30,0x30,0x30,0x30,0x30,0x65,0x2B,0x30,0x3C,0x2F +,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x30,0x2E,0x30,0x30,0x30 +,0x30,0x30,0x30,0x65,0x2B,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64 +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63 +,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x30,0x2E,0x30,0x30,0x30,0x30,0x30,0x30,0x65,0x2B,0x30,0x3C,0x2F +,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x3C,0x2F,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x44,0x65 +,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x33,0x2E,0x30,0x30,0x30,0x30,0x30,0x30,0x65 +,0x2D,0x31,0x3C,0x2F,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x0A,0x09,0x09 +,0x09,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75 +,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E +,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x75,0x74 +,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x75 +,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54 +,0x79,0x70,0x65,0x3E,0x49,0x6E,0x74,0x65,0x67,0x65,0x72,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54 +,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x49,0x6E +,0x74,0x65,0x67,0x65,0x72,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C +,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4C,0x69,0x6E,0x65 +,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E +,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74 +,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74 +,0x73,0x3E,0x0A,0x09,0x3C,0x2F,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74 +,0x69,0x6F,0x6E,0x3E,0x0A,0x0A,0x0A,0x09,0x3C,0x21,0x2D,0x2D,0x20,0x43,0x44,0x4C,0x4F,0x4E,0x4E,0x45 +,0x43,0x4B,0x20,0x2D,0x2D,0x3E,0x0A,0x09,0x3C,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75 +,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74 +,0x69,0x6F,0x6E,0x3E,0x43,0x44,0x4C,0x4F,0x4E,0x4E,0x45,0x43,0x4B,0x3C,0x2F,0x41,0x62,0x62,0x72,0x65 +,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73 +,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x43,0x64,0x6C,0x4F,0x6E,0x4E,0x65,0x63,0x6B,0x3C,0x2F,0x43,0x61,0x6D +,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74 +,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x4F,0x6E,0x2D,0x4E,0x65,0x63,0x6B,0x20 +,0x50,0x61,0x74,0x74,0x65,0x72,0x6E,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69 +,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x50,0x61 +,0x74,0x74,0x65,0x72,0x6E,0x20,0x52,0x65,0x63,0x6F,0x67,0x6E,0x69,0x74,0x69,0x6F,0x6E,0x3C,0x2F,0x47 +,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x0A,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09 +,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x43,0x61,0x6E,0x64,0x6C,0x65,0x73,0x74,0x69,0x63,0x6B,0x3C,0x2F +,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x3C +,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E +,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75 +,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65 +,0x3E,0x4F,0x70,0x65,0x6E,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61 +,0x6D,0x65,0x3E,0x4F,0x70,0x65,0x6E,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F +,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E +,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74 +,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E +,0x48,0x69,0x67,0x68,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D +,0x65,0x3E,0x48,0x69,0x67,0x68,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52 +,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74 +,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41 +,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x4C +,0x6F,0x77,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E +,0x4C,0x6F,0x77,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75 +,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09 +,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75 +,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x43,0x6C,0x6F,0x73 +,0x65,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x43 +,0x6C,0x6F,0x73,0x65,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71 +,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A +,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67 +,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67 +,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72 +,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x49,0x6E +,0x74,0x65,0x67,0x65,0x72,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x49,0x6E,0x74,0x65,0x67,0x65,0x72,0x3C +,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4C,0x69,0x6E,0x65,0x3C,0x2F,0x46,0x6C,0x61,0x67 +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F +,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F +,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x3C,0x2F +,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x0A +,0x0A,0x09,0x3C,0x21,0x2D,0x2D,0x20,0x43,0x44,0x4C,0x50,0x49,0x45,0x52,0x43,0x49,0x4E,0x47,0x20,0x2D +,0x2D,0x3E,0x0A,0x09,0x3C,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69 +,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E +,0x43,0x44,0x4C,0x50,0x49,0x45,0x52,0x43,0x49,0x4E,0x47,0x3C,0x2F,0x41,0x62,0x62,0x72,0x65,0x76,0x69 +,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E +,0x61,0x6D,0x65,0x3E,0x43,0x64,0x6C,0x50,0x69,0x65,0x72,0x63,0x69,0x6E,0x67,0x3C,0x2F,0x43,0x61,0x6D +,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74 +,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x50,0x69,0x65,0x72,0x63,0x69,0x6E,0x67 +,0x20,0x50,0x61,0x74,0x74,0x65,0x72,0x6E,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72 +,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x50 +,0x61,0x74,0x74,0x65,0x72,0x6E,0x20,0x52,0x65,0x63,0x6F,0x67,0x6E,0x69,0x74,0x69,0x6F,0x6E,0x3C,0x2F +,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x0A,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09 +,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x43,0x61,0x6E,0x64,0x6C,0x65,0x73,0x74,0x69,0x63,0x6B,0x3C +,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09 +,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65 +,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70 +,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70 +,0x65,0x3E,0x4F,0x70,0x65,0x6E,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E +,0x61,0x6D,0x65,0x3E,0x4F,0x70,0x65,0x6E,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C +,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65 +,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75 +,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65 +,0x3E,0x48,0x69,0x67,0x68,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61 +,0x6D,0x65,0x3E,0x48,0x69,0x67,0x68,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F +,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E +,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74 +,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E +,0x4C,0x6F,0x77,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65 +,0x3E,0x4C,0x6F,0x77,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71 +,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A +,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67 +,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x43,0x6C,0x6F +,0x73,0x65,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E +,0x43,0x6C,0x6F,0x73,0x65,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65 +,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E +,0x0A,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72 +,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72 +,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41 +,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x49 +,0x6E,0x74,0x65,0x67,0x65,0x72,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x49,0x6E,0x74,0x65,0x67,0x65,0x72 +,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4C,0x69,0x6E,0x65,0x3C,0x2F,0x46,0x6C,0x61 +,0x67,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C +,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C +,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x3C +,0x2F,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A +,0x0A,0x0A,0x09,0x3C,0x21,0x2D,0x2D,0x20,0x43,0x44,0x4C,0x52,0x49,0x43,0x4B,0x53,0x48,0x41,0x57,0x4D +,0x41,0x4E,0x20,0x2D,0x2D,0x3E,0x0A,0x09,0x3C,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75 +,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74 +,0x69,0x6F,0x6E,0x3E,0x43,0x44,0x4C,0x52,0x49,0x43,0x4B,0x53,0x48,0x41,0x57,0x4D,0x41,0x4E,0x3C,0x2F +,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x43,0x61,0x6D +,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x43,0x64,0x6C,0x52,0x69,0x63,0x6B,0x73,0x68 +,0x61,0x77,0x4D,0x61,0x6E,0x3C,0x2F,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65 +,0x3E,0x0A,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F +,0x6E,0x3E,0x52,0x69,0x63,0x6B,0x73,0x68,0x61,0x77,0x20,0x4D,0x61,0x6E,0x3C,0x2F,0x53,0x68,0x6F,0x72 +,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x47,0x72,0x6F +,0x75,0x70,0x49,0x64,0x3E,0x50,0x61,0x74,0x74,0x65,0x72,0x6E,0x20,0x52,0x65,0x63,0x6F,0x67,0x6E,0x69 +,0x74,0x69,0x6F,0x6E,0x3C,0x2F,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x0A,0x09,0x09,0x3C,0x46,0x6C +,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x43,0x61,0x6E,0x64,0x6C,0x65 +,0x73,0x74,0x69,0x63,0x6B,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61 +,0x67,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74 +,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69 +,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x4F,0x70,0x65,0x6E,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x4F,0x70,0x65,0x6E,0x3C,0x2F,0x4E,0x61,0x6D,0x65 +,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74 +,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72 +,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x48,0x69,0x67,0x68,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x48,0x69,0x67,0x68,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E +,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41 +,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65 +,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x3C,0x54,0x79,0x70,0x65,0x3E,0x4C,0x6F,0x77,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x4C,0x6F,0x77,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09 +,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75 +,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E +,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79 +,0x70,0x65,0x3E,0x43,0x6C,0x6F,0x73,0x65,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x43,0x6C,0x6F,0x73,0x65,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09 +,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67 +,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49 +,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x75 +,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F +,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C +,0x54,0x79,0x70,0x65,0x3E,0x49,0x6E,0x74,0x65,0x67,0x65,0x72,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F +,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x49 +,0x6E,0x74,0x65,0x67,0x65,0x72,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46 +,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4C,0x69,0x6E +,0x65,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73 +,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E +,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E +,0x74,0x73,0x3E,0x0A,0x09,0x3C,0x2F,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63 +,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x0A,0x0A,0x09,0x3C,0x21,0x2D,0x2D,0x20,0x43,0x44,0x4C,0x52,0x49,0x53 +,0x45,0x46,0x41,0x4C,0x4C,0x33,0x4D,0x45,0x54,0x48,0x4F,0x44,0x53,0x20,0x2D,0x2D,0x3E,0x0A,0x09,0x3C +,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09 +,0x09,0x3C,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x43,0x44,0x4C,0x52,0x49 +,0x53,0x45,0x46,0x41,0x4C,0x4C,0x33,0x4D,0x45,0x54,0x48,0x4F,0x44,0x53,0x3C,0x2F,0x41,0x62,0x62,0x72 +,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61 +,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x43,0x64,0x6C,0x52,0x69,0x73,0x65,0x46,0x61,0x6C,0x6C,0x33,0x4D +,0x65,0x74,0x68,0x6F,0x64,0x73,0x3C,0x2F,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D +,0x65,0x3E,0x0A,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69 +,0x6F,0x6E,0x3E,0x52,0x69,0x73,0x69,0x6E,0x67,0x2F,0x46,0x61,0x6C,0x6C,0x69,0x6E,0x67,0x20,0x54,0x68 +,0x72,0x65,0x65,0x20,0x4D,0x65,0x74,0x68,0x6F,0x64,0x73,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65 +,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x47,0x72,0x6F,0x75,0x70,0x49 +,0x64,0x3E,0x50,0x61,0x74,0x74,0x65,0x72,0x6E,0x20,0x52,0x65,0x63,0x6F,0x67,0x6E,0x69,0x74,0x69,0x6F +,0x6E,0x3C,0x2F,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x0A,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73 +,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x43,0x61,0x6E,0x64,0x6C,0x65,0x73,0x74,0x69 +,0x63,0x6B,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E +,0x0A,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67 +,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64 +,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C +,0x54,0x79,0x70,0x65,0x3E,0x4F,0x70,0x65,0x6E,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x4F,0x70,0x65,0x6E,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09 +,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67 +,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49 +,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54 +,0x79,0x70,0x65,0x3E,0x48,0x69,0x67,0x68,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x48,0x69,0x67,0x68,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09 +,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75 +,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E +,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79 +,0x70,0x65,0x3E,0x4C,0x6F,0x77,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E +,0x61,0x6D,0x65,0x3E,0x4C,0x6F,0x77,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F +,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E +,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74 +,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E +,0x43,0x6C,0x6F,0x73,0x65,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61 +,0x6D,0x65,0x3E,0x43,0x6C,0x6F,0x73,0x65,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C +,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65 +,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75 +,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75 +,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70 +,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70 +,0x65,0x3E,0x49,0x6E,0x74,0x65,0x67,0x65,0x72,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70 +,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x49,0x6E,0x74,0x65 +,0x67,0x65,0x72,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67 +,0x73,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4C,0x69,0x6E,0x65,0x3C,0x2F +,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09 +,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A +,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E +,0x0A,0x09,0x3C,0x2F,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F +,0x6E,0x3E,0x0A,0x0A,0x0A,0x09,0x3C,0x21,0x2D,0x2D,0x20,0x43,0x44,0x4C,0x53,0x45,0x50,0x41,0x52,0x41 +,0x54,0x49,0x4E,0x47,0x4C,0x49,0x4E,0x45,0x53,0x20,0x2D,0x2D,0x3E,0x0A,0x09,0x3C,0x46,0x69,0x6E,0x61 +,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x41,0x62 +,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x43,0x44,0x4C,0x53,0x45,0x50,0x41,0x52,0x41 +,0x54,0x49,0x4E,0x47,0x4C,0x49,0x4E,0x45,0x53,0x3C,0x2F,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74 +,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D +,0x65,0x3E,0x43,0x64,0x6C,0x53,0x65,0x70,0x65,0x72,0x61,0x74,0x69,0x6E,0x67,0x4C,0x69,0x6E,0x65,0x73 +,0x3C,0x2F,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x3C +,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x53,0x65,0x70 +,0x61,0x72,0x61,0x74,0x69,0x6E,0x67,0x20,0x4C,0x69,0x6E,0x65,0x73,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74 +,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x47,0x72,0x6F,0x75 +,0x70,0x49,0x64,0x3E,0x50,0x61,0x74,0x74,0x65,0x72,0x6E,0x20,0x52,0x65,0x63,0x6F,0x67,0x6E,0x69,0x74 +,0x69,0x6F,0x6E,0x3C,0x2F,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x0A,0x09,0x09,0x3C,0x46,0x6C,0x61 +,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x43,0x61,0x6E,0x64,0x6C,0x65,0x73 +,0x74,0x69,0x63,0x6B,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67 +,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41 +,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72 +,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x4F,0x70,0x65,0x6E,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x4F,0x70,0x65,0x6E,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E +,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41 +,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65 +,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x3C,0x54,0x79,0x70,0x65,0x3E,0x48,0x69,0x67,0x68,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x48,0x69,0x67,0x68,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A +,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72 +,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64 +,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C +,0x54,0x79,0x70,0x65,0x3E,0x4C,0x6F,0x77,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x4C,0x6F,0x77,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09 +,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D +,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70 +,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70 +,0x65,0x3E,0x43,0x6C,0x6F,0x73,0x65,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C +,0x4E,0x61,0x6D,0x65,0x3E,0x43,0x6C,0x6F,0x73,0x65,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09 +,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75 +,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E +,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x75,0x74 +,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x75 +,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54 +,0x79,0x70,0x65,0x3E,0x49,0x6E,0x74,0x65,0x67,0x65,0x72,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54 +,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x49,0x6E +,0x74,0x65,0x67,0x65,0x72,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C +,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4C,0x69,0x6E,0x65 +,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E +,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74 +,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74 +,0x73,0x3E,0x0A,0x09,0x3C,0x2F,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74 +,0x69,0x6F,0x6E,0x3E,0x0A,0x0A,0x0A,0x09,0x3C,0x21,0x2D,0x2D,0x20,0x43,0x44,0x4C,0x53,0x48,0x4F,0x4F +,0x54,0x49,0x4E,0x47,0x53,0x54,0x41,0x52,0x20,0x2D,0x2D,0x3E,0x0A,0x09,0x3C,0x46,0x69,0x6E,0x61,0x6E +,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x41,0x62,0x62 +,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x43,0x44,0x4C,0x53,0x48,0x4F,0x4F,0x54,0x49,0x4E +,0x47,0x53,0x54,0x41,0x52,0x3C,0x2F,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E +,0x0A,0x09,0x09,0x3C,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x43,0x64 +,0x6C,0x53,0x68,0x6F,0x6F,0x74,0x69,0x6E,0x67,0x53,0x74,0x61,0x72,0x3C,0x2F,0x43,0x61,0x6D,0x65,0x6C +,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65 +,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x53,0x68,0x6F,0x6F,0x74,0x69,0x6E,0x67,0x20,0x53 +,0x74,0x61,0x72,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F +,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x50,0x61,0x74,0x74,0x65,0x72 +,0x6E,0x20,0x52,0x65,0x63,0x6F,0x67,0x6E,0x69,0x74,0x69,0x6F,0x6E,0x3C,0x2F,0x47,0x72,0x6F,0x75,0x70 +,0x49,0x64,0x3E,0x0A,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x46,0x6C +,0x61,0x67,0x3E,0x43,0x61,0x6E,0x64,0x6C,0x65,0x73,0x74,0x69,0x63,0x6B,0x3C,0x2F,0x46,0x6C,0x61,0x67 +,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x52,0x65,0x71,0x75 +,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A +,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67 +,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x4F,0x70,0x65 +,0x6E,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x4F +,0x70,0x65,0x6E,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75 +,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09 +,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75 +,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x48,0x69,0x67,0x68 +,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x48,0x69 +,0x67,0x68,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69 +,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09 +,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D +,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x4C,0x6F,0x77,0x3C,0x2F +,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x4C,0x6F,0x77,0x3C +,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64 +,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52 +,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74 +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x43,0x6C,0x6F,0x73,0x65,0x3C,0x2F,0x54 +,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x43,0x6C,0x6F,0x73,0x65 +,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65 +,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F +,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E +,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E +,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65 +,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x49,0x6E,0x74,0x65,0x67,0x65 +,0x72,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C +,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x49,0x6E,0x74,0x65,0x67,0x65,0x72,0x3C,0x2F,0x4E,0x61,0x6D +,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09 +,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4C,0x69,0x6E,0x65,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70 +,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70 +,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x3C,0x2F,0x46,0x69,0x6E,0x61 +,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x0A,0x0A,0x09,0x3C,0x21 +,0x2D,0x2D,0x20,0x43,0x44,0x4C,0x53,0x48,0x4F,0x52,0x54,0x4C,0x49,0x4E,0x45,0x20,0x2D,0x2D,0x3E,0x0A +,0x09,0x3C,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E +,0x0A,0x09,0x09,0x3C,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x43,0x44,0x4C +,0x53,0x48,0x4F,0x52,0x54,0x4C,0x49,0x4E,0x45,0x3C,0x2F,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74 +,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D +,0x65,0x3E,0x43,0x64,0x6C,0x53,0x68,0x6F,0x72,0x74,0x4C,0x69,0x6E,0x65,0x3C,0x2F,0x43,0x61,0x6D,0x65 +,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44 +,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x53,0x68,0x6F,0x72,0x74,0x20,0x4C,0x69,0x6E +,0x65,0x20,0x43,0x61,0x6E,0x64,0x6C,0x65,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72 +,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x50 +,0x61,0x74,0x74,0x65,0x72,0x6E,0x20,0x52,0x65,0x63,0x6F,0x67,0x6E,0x69,0x74,0x69,0x6F,0x6E,0x3C,0x2F +,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x0A,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09 +,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x43,0x61,0x6E,0x64,0x6C,0x65,0x73,0x74,0x69,0x63,0x6B,0x3C +,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09 +,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65 +,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70 +,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70 +,0x65,0x3E,0x4F,0x70,0x65,0x6E,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E +,0x61,0x6D,0x65,0x3E,0x4F,0x70,0x65,0x6E,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C +,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65 +,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75 +,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65 +,0x3E,0x48,0x69,0x67,0x68,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61 +,0x6D,0x65,0x3E,0x48,0x69,0x67,0x68,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F +,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E +,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74 +,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E +,0x4C,0x6F,0x77,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65 +,0x3E,0x4C,0x6F,0x77,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71 +,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A +,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67 +,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x43,0x6C,0x6F +,0x73,0x65,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E +,0x43,0x6C,0x6F,0x73,0x65,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65 +,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E +,0x0A,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72 +,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72 +,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41 +,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x49 +,0x6E,0x74,0x65,0x67,0x65,0x72,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x49,0x6E,0x74,0x65,0x67,0x65,0x72 +,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4C,0x69,0x6E,0x65,0x3C,0x2F,0x46,0x6C,0x61 +,0x67,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C +,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C +,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x3C +,0x2F,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A +,0x0A,0x0A,0x09,0x3C,0x21,0x2D,0x2D,0x20,0x43,0x44,0x4C,0x53,0x50,0x49,0x4E,0x4E,0x49,0x4E,0x47,0x54 +,0x4F,0x50,0x20,0x2D,0x2D,0x3E,0x0A,0x09,0x3C,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75 +,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74 +,0x69,0x6F,0x6E,0x3E,0x43,0x44,0x4C,0x53,0x50,0x49,0x4E,0x4E,0x49,0x4E,0x47,0x54,0x4F,0x50,0x3C,0x2F +,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x43,0x61,0x6D +,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x43,0x64,0x6C,0x53,0x70,0x69,0x6E,0x6E,0x69 +,0x6E,0x67,0x54,0x6F,0x70,0x3C,0x2F,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65 +,0x3E,0x0A,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F +,0x6E,0x3E,0x53,0x70,0x69,0x6E,0x6E,0x69,0x6E,0x67,0x20,0x54,0x6F,0x70,0x3C,0x2F,0x53,0x68,0x6F,0x72 +,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x47,0x72,0x6F +,0x75,0x70,0x49,0x64,0x3E,0x50,0x61,0x74,0x74,0x65,0x72,0x6E,0x20,0x52,0x65,0x63,0x6F,0x67,0x6E,0x69 +,0x74,0x69,0x6F,0x6E,0x3C,0x2F,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x0A,0x09,0x09,0x3C,0x46,0x6C +,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x43,0x61,0x6E,0x64,0x6C,0x65 +,0x73,0x74,0x69,0x63,0x6B,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61 +,0x67,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74 +,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69 +,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x4F,0x70,0x65,0x6E,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x4F,0x70,0x65,0x6E,0x3C,0x2F,0x4E,0x61,0x6D,0x65 +,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74 +,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72 +,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x48,0x69,0x67,0x68,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x48,0x69,0x67,0x68,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E +,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41 +,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65 +,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x3C,0x54,0x79,0x70,0x65,0x3E,0x4C,0x6F,0x77,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x4C,0x6F,0x77,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09 +,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75 +,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E +,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79 +,0x70,0x65,0x3E,0x43,0x6C,0x6F,0x73,0x65,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x43,0x6C,0x6F,0x73,0x65,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09 +,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67 +,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49 +,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x75 +,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F +,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C +,0x54,0x79,0x70,0x65,0x3E,0x49,0x6E,0x74,0x65,0x67,0x65,0x72,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F +,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x49 +,0x6E,0x74,0x65,0x67,0x65,0x72,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46 +,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4C,0x69,0x6E +,0x65,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73 +,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E +,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E +,0x74,0x73,0x3E,0x0A,0x09,0x3C,0x2F,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63 +,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x0A,0x0A,0x09,0x3C,0x21,0x2D,0x2D,0x20,0x43,0x44,0x4C,0x53,0x54,0x41 +,0x4C,0x4C,0x45,0x44,0x50,0x41,0x54,0x54,0x45,0x52,0x4E,0x20,0x2D,0x2D,0x3E,0x0A,0x09,0x3C,0x46,0x69 +,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C +,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x43,0x44,0x4C,0x53,0x54,0x41,0x4C +,0x4C,0x45,0x44,0x50,0x41,0x54,0x54,0x45,0x52,0x4E,0x3C,0x2F,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61 +,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61 +,0x6D,0x65,0x3E,0x43,0x64,0x6C,0x53,0x74,0x61,0x6C,0x6C,0x65,0x64,0x50,0x61,0x74,0x74,0x65,0x72,0x6E +,0x3C,0x2F,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x3C +,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x53,0x74,0x61 +,0x6C,0x6C,0x65,0x64,0x20,0x50,0x61,0x74,0x74,0x65,0x72,0x6E,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44 +,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x47,0x72,0x6F,0x75,0x70 +,0x49,0x64,0x3E,0x50,0x61,0x74,0x74,0x65,0x72,0x6E,0x20,0x52,0x65,0x63,0x6F,0x67,0x6E,0x69,0x74,0x69 +,0x6F,0x6E,0x3C,0x2F,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x0A,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67 +,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x43,0x61,0x6E,0x64,0x6C,0x65,0x73,0x74 +,0x69,0x63,0x6B,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73 +,0x3E,0x0A,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72 +,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65 +,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x3C,0x54,0x79,0x70,0x65,0x3E,0x4F,0x70,0x65,0x6E,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x4F,0x70,0x65,0x6E,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A +,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72 +,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64 +,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C +,0x54,0x79,0x70,0x65,0x3E,0x48,0x69,0x67,0x68,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x48,0x69,0x67,0x68,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09 +,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67 +,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49 +,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54 +,0x79,0x70,0x65,0x3E,0x4C,0x6F,0x77,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C +,0x4E,0x61,0x6D,0x65,0x3E,0x4C,0x6F,0x77,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C +,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65 +,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75 +,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65 +,0x3E,0x43,0x6C,0x6F,0x73,0x65,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E +,0x61,0x6D,0x65,0x3E,0x43,0x6C,0x6F,0x73,0x65,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09 +,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D +,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70 +,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70 +,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x75,0x74 +,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79 +,0x70,0x65,0x3E,0x49,0x6E,0x74,0x65,0x67,0x65,0x72,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79 +,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x49,0x6E,0x74 +,0x65,0x67,0x65,0x72,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61 +,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4C,0x69,0x6E,0x65,0x3C +,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A +,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E +,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73 +,0x3E,0x0A,0x09,0x3C,0x2F,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69 +,0x6F,0x6E,0x3E,0x0A,0x0A,0x0A,0x09,0x3C,0x21,0x2D,0x2D,0x20,0x43,0x44,0x4C,0x53,0x54,0x49,0x43,0x4B +,0x53,0x41,0x4E,0x44,0x57,0x49,0x43,0x48,0x20,0x2D,0x2D,0x3E,0x0A,0x09,0x3C,0x46,0x69,0x6E,0x61,0x6E +,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x41,0x62,0x62 +,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x43,0x44,0x4C,0x53,0x54,0x49,0x43,0x4B,0x53,0x41 +,0x4E,0x44,0x57,0x49,0x43,0x48,0x3C,0x2F,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E +,0x3E,0x0A,0x09,0x09,0x3C,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x43 +,0x64,0x6C,0x53,0x74,0x69,0x63,0x6B,0x53,0x61,0x6E,0x64,0x77,0x68,0x69,0x63,0x68,0x3C,0x2F,0x43,0x61 +,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72 +,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x53,0x74,0x69,0x63,0x6B,0x20,0x53 +,0x61,0x6E,0x64,0x77,0x69,0x63,0x68,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69 +,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x50,0x61 +,0x74,0x74,0x65,0x72,0x6E,0x20,0x52,0x65,0x63,0x6F,0x67,0x6E,0x69,0x74,0x69,0x6F,0x6E,0x3C,0x2F,0x47 +,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x0A,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09 +,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x43,0x61,0x6E,0x64,0x6C,0x65,0x73,0x74,0x69,0x63,0x6B,0x3C,0x2F +,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x3C +,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E +,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75 +,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65 +,0x3E,0x4F,0x70,0x65,0x6E,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61 +,0x6D,0x65,0x3E,0x4F,0x70,0x65,0x6E,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F +,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E +,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74 +,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E +,0x48,0x69,0x67,0x68,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D +,0x65,0x3E,0x48,0x69,0x67,0x68,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52 +,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74 +,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41 +,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x4C +,0x6F,0x77,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E +,0x4C,0x6F,0x77,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75 +,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09 +,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75 +,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x43,0x6C,0x6F,0x73 +,0x65,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x43 +,0x6C,0x6F,0x73,0x65,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71 +,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A +,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67 +,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67 +,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72 +,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x49,0x6E +,0x74,0x65,0x67,0x65,0x72,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x49,0x6E,0x74,0x65,0x67,0x65,0x72,0x3C +,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4C,0x69,0x6E,0x65,0x3C,0x2F,0x46,0x6C,0x61,0x67 +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F +,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F +,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x3C,0x2F +,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x0A +,0x0A,0x09,0x3C,0x21,0x2D,0x2D,0x20,0x43,0x44,0x4C,0x54,0x41,0x4B,0x55,0x52,0x49,0x20,0x2D,0x2D,0x3E +,0x0A,0x09,0x3C,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E +,0x3E,0x0A,0x09,0x09,0x3C,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x43,0x44 +,0x4C,0x54,0x41,0x4B,0x55,0x52,0x49,0x3C,0x2F,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F +,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E +,0x43,0x64,0x6C,0x54,0x61,0x6B,0x75,0x72,0x69,0x3C,0x2F,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65 +,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69 +,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x54,0x61,0x6B,0x75,0x72,0x69,0x20,0x28,0x44,0x72,0x61,0x67,0x6F,0x6E +,0x66,0x6C,0x79,0x20,0x44,0x6F,0x6A,0x69,0x20,0x77,0x69,0x74,0x68,0x20,0x76,0x65,0x72,0x79,0x20,0x6C +,0x6F,0x6E,0x67,0x20,0x6C,0x6F,0x77,0x65,0x72,0x20,0x73,0x68,0x61,0x64,0x6F,0x77,0x29,0x3C,0x2F,0x53 +,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C +,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x50,0x61,0x74,0x74,0x65,0x72,0x6E,0x20,0x52,0x65,0x63,0x6F +,0x67,0x6E,0x69,0x74,0x69,0x6F,0x6E,0x3C,0x2F,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x0A,0x09,0x09 +,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x43,0x61,0x6E +,0x64,0x6C,0x65,0x73,0x74,0x69,0x63,0x6B,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x3C,0x2F +,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E +,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65 +,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x4F,0x70,0x65,0x6E,0x3C,0x2F,0x54,0x79,0x70 +,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x4F,0x70,0x65,0x6E,0x3C,0x2F,0x4E +,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E +,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71 +,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x48,0x69,0x67,0x68,0x3C,0x2F,0x54,0x79,0x70,0x65 +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x48,0x69,0x67,0x68,0x3C,0x2F,0x4E,0x61 +,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70 +,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75 +,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x4C,0x6F,0x77,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x4C,0x6F,0x77,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E +,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41 +,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65 +,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x3C,0x54,0x79,0x70,0x65,0x3E,0x43,0x6C,0x6F,0x73,0x65,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x43,0x6C,0x6F,0x73,0x65,0x3C,0x2F,0x4E,0x61,0x6D,0x65 +,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74 +,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72 +,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09 +,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09 +,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x49,0x6E,0x74,0x65,0x67,0x65,0x72,0x20,0x41,0x72,0x72,0x61 +,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F +,0x75,0x74,0x49,0x6E,0x74,0x65,0x67,0x65,0x72,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E +,0x4C,0x69,0x6E,0x65,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C +,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75 +,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75 +,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x3C,0x2F,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46 +,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x0A,0x0A,0x09,0x3C,0x21,0x2D,0x2D,0x20,0x43,0x44,0x4C +,0x54,0x41,0x53,0x55,0x4B,0x49,0x47,0x41,0x50,0x20,0x2D,0x2D,0x3E,0x0A,0x09,0x3C,0x46,0x69,0x6E,0x61 +,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x41,0x62 +,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x43,0x44,0x4C,0x54,0x41,0x53,0x55,0x4B,0x49 +,0x47,0x41,0x50,0x3C,0x2F,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09 +,0x09,0x3C,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x43,0x64,0x6C,0x54 +,0x61,0x73,0x75,0x6B,0x69,0x47,0x61,0x70,0x3C,0x2F,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E +,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70 +,0x74,0x69,0x6F,0x6E,0x3E,0x54,0x61,0x73,0x75,0x6B,0x69,0x20,0x47,0x61,0x70,0x3C,0x2F,0x53,0x68,0x6F +,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x47,0x72 +,0x6F,0x75,0x70,0x49,0x64,0x3E,0x50,0x61,0x74,0x74,0x65,0x72,0x6E,0x20,0x52,0x65,0x63,0x6F,0x67,0x6E +,0x69,0x74,0x69,0x6F,0x6E,0x3C,0x2F,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x0A,0x09,0x09,0x3C,0x46 +,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x43,0x61,0x6E,0x64,0x6C +,0x65,0x73,0x74,0x69,0x63,0x6B,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x46,0x6C +,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75 +,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75 +,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x4F,0x70,0x65,0x6E,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x4F,0x70,0x65,0x6E,0x3C,0x2F,0x4E,0x61,0x6D +,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75 +,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69 +,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x48,0x69,0x67,0x68,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x48,0x69,0x67,0x68,0x3C,0x2F,0x4E,0x61,0x6D,0x65 +,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74 +,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72 +,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x4C,0x6F,0x77,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x4C,0x6F,0x77,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09 +,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67 +,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49 +,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54 +,0x79,0x70,0x65,0x3E,0x43,0x6C,0x6F,0x73,0x65,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x43,0x6C,0x6F,0x73,0x65,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A +,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72 +,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64 +,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F +,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C +,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x3C,0x54,0x79,0x70,0x65,0x3E,0x49,0x6E,0x74,0x65,0x67,0x65,0x72,0x20,0x41,0x72,0x72,0x61,0x79,0x3C +,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74 +,0x49,0x6E,0x74,0x65,0x67,0x65,0x72,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C +,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4C,0x69 +,0x6E,0x65,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67 +,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65 +,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65 +,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x3C,0x2F,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E +,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x0A,0x0A,0x09,0x3C,0x21,0x2D,0x2D,0x20,0x43,0x44,0x4C,0x54,0x48 +,0x52,0x55,0x53,0x54,0x49,0x4E,0x47,0x20,0x2D,0x2D,0x3E,0x0A,0x09,0x3C,0x46,0x69,0x6E,0x61,0x6E,0x63 +,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x41,0x62,0x62,0x72 +,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x43,0x44,0x4C,0x54,0x48,0x52,0x55,0x53,0x54,0x49,0x4E +,0x47,0x3C,0x2F,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C +,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x43,0x64,0x6C,0x54,0x68,0x72 +,0x75,0x73,0x74,0x69,0x6E,0x67,0x3C,0x2F,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D +,0x65,0x3E,0x0A,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69 +,0x6F,0x6E,0x3E,0x54,0x68,0x72,0x75,0x73,0x74,0x69,0x6E,0x67,0x20,0x50,0x61,0x74,0x74,0x65,0x72,0x6E +,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A +,0x09,0x09,0x3C,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x50,0x61,0x74,0x74,0x65,0x72,0x6E,0x20,0x52 +,0x65,0x63,0x6F,0x67,0x6E,0x69,0x74,0x69,0x6F,0x6E,0x3C,0x2F,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E +,0x0A,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E +,0x43,0x61,0x6E,0x64,0x6C,0x65,0x73,0x74,0x69,0x63,0x6B,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09 +,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65 +,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09 +,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65 +,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x4F,0x70,0x65,0x6E,0x3C,0x2F +,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x4F,0x70,0x65,0x6E +,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65 +,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C +,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E +,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x48,0x69,0x67,0x68,0x3C,0x2F,0x54 +,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x48,0x69,0x67,0x68,0x3C +,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64 +,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52 +,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74 +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x4C,0x6F,0x77,0x3C,0x2F,0x54,0x79,0x70 +,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x4C,0x6F,0x77,0x3C,0x2F,0x4E,0x61 +,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70 +,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75 +,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x43,0x6C,0x6F,0x73,0x65,0x3C,0x2F,0x54,0x79,0x70,0x65 +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x43,0x6C,0x6F,0x73,0x65,0x3C,0x2F,0x4E +,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E +,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71 +,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E +,0x0A,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E +,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x49,0x6E,0x74,0x65,0x67,0x65,0x72,0x20,0x41 +,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D +,0x65,0x3E,0x6F,0x75,0x74,0x49,0x6E,0x74,0x65,0x67,0x65,0x72,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C +,0x61,0x67,0x3E,0x4C,0x69,0x6E,0x65,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C +,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41 +,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41 +,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x3C,0x2F,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69 +,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x0A,0x0A,0x09,0x3C,0x21,0x2D,0x2D,0x20 +,0x43,0x44,0x4C,0x54,0x52,0x49,0x53,0x54,0x41,0x52,0x20,0x2D,0x2D,0x3E,0x0A,0x09,0x3C,0x46,0x69,0x6E +,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x41 +,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x43,0x44,0x4C,0x54,0x52,0x49,0x53,0x54 +,0x41,0x52,0x3C,0x2F,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09 +,0x3C,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x43,0x64,0x6C,0x54,0x72 +,0x69,0x73,0x74,0x61,0x72,0x3C,0x2F,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65 +,0x3E,0x0A,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F +,0x6E,0x3E,0x54,0x72,0x69,0x73,0x74,0x61,0x72,0x20,0x50,0x61,0x74,0x74,0x65,0x72,0x6E,0x3C,0x2F,0x53 +,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C +,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x50,0x61,0x74,0x74,0x65,0x72,0x6E,0x20,0x52,0x65,0x63,0x6F +,0x67,0x6E,0x69,0x74,0x69,0x6F,0x6E,0x3C,0x2F,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x0A,0x09,0x09 +,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x43,0x61,0x6E +,0x64,0x6C,0x65,0x73,0x74,0x69,0x63,0x6B,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x3C,0x2F +,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E +,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65 +,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x4F,0x70,0x65,0x6E,0x3C,0x2F,0x54,0x79,0x70 +,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x4F,0x70,0x65,0x6E,0x3C,0x2F,0x4E +,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E +,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71 +,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x48,0x69,0x67,0x68,0x3C,0x2F,0x54,0x79,0x70,0x65 +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x48,0x69,0x67,0x68,0x3C,0x2F,0x4E,0x61 +,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70 +,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75 +,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x4C,0x6F,0x77,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x4C,0x6F,0x77,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E +,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41 +,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65 +,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x3C,0x54,0x79,0x70,0x65,0x3E,0x43,0x6C,0x6F,0x73,0x65,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x43,0x6C,0x6F,0x73,0x65,0x3C,0x2F,0x4E,0x61,0x6D,0x65 +,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74 +,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72 +,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09 +,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09 +,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x49,0x6E,0x74,0x65,0x67,0x65,0x72,0x20,0x41,0x72,0x72,0x61 +,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F +,0x75,0x74,0x49,0x6E,0x74,0x65,0x67,0x65,0x72,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E +,0x4C,0x69,0x6E,0x65,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C +,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75 +,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75 +,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x3C,0x2F,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46 +,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x0A,0x0A,0x09,0x3C,0x21,0x2D,0x2D,0x20,0x43,0x44,0x4C +,0x55,0x4E,0x49,0x51,0x55,0x45,0x33,0x52,0x49,0x56,0x45,0x52,0x20,0x2D,0x2D,0x3E,0x0A,0x09,0x3C,0x46 +,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09 +,0x3C,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x43,0x44,0x4C,0x55,0x4E,0x49 +,0x51,0x55,0x45,0x33,0x52,0x49,0x56,0x45,0x52,0x3C,0x2F,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74 +,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D +,0x65,0x3E,0x43,0x64,0x6C,0x55,0x6E,0x69,0x71,0x75,0x65,0x33,0x52,0x69,0x76,0x65,0x72,0x3C,0x2F,0x43 +,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x3C,0x53,0x68,0x6F +,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x55,0x6E,0x69,0x71,0x75,0x65 +,0x20,0x33,0x20,0x52,0x69,0x76,0x65,0x72,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72 +,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x50 +,0x61,0x74,0x74,0x65,0x72,0x6E,0x20,0x52,0x65,0x63,0x6F,0x67,0x6E,0x69,0x74,0x69,0x6F,0x6E,0x3C,0x2F +,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x0A,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09 +,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x43,0x61,0x6E,0x64,0x6C,0x65,0x73,0x74,0x69,0x63,0x6B,0x3C +,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09 +,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65 +,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70 +,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70 +,0x65,0x3E,0x4F,0x70,0x65,0x6E,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E +,0x61,0x6D,0x65,0x3E,0x4F,0x70,0x65,0x6E,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C +,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65 +,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75 +,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65 +,0x3E,0x48,0x69,0x67,0x68,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61 +,0x6D,0x65,0x3E,0x48,0x69,0x67,0x68,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F +,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E +,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74 +,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E +,0x4C,0x6F,0x77,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65 +,0x3E,0x4C,0x6F,0x77,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71 +,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A +,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67 +,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x43,0x6C,0x6F +,0x73,0x65,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E +,0x43,0x6C,0x6F,0x73,0x65,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65 +,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E +,0x0A,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72 +,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72 +,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41 +,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x49 +,0x6E,0x74,0x65,0x67,0x65,0x72,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x49,0x6E,0x74,0x65,0x67,0x65,0x72 +,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4C,0x69,0x6E,0x65,0x3C,0x2F,0x46,0x6C,0x61 +,0x67,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C +,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C +,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x3C +,0x2F,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A +,0x0A,0x0A,0x09,0x3C,0x21,0x2D,0x2D,0x20,0x43,0x44,0x4C,0x55,0x50,0x53,0x49,0x44,0x45,0x47,0x41,0x50 +,0x32,0x43,0x52,0x4F,0x57,0x53,0x20,0x2D,0x2D,0x3E,0x0A,0x09,0x3C,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69 +,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x41,0x62,0x62,0x72,0x65 +,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x43,0x44,0x4C,0x55,0x50,0x53,0x49,0x44,0x45,0x47,0x41,0x50 +,0x32,0x43,0x52,0x4F,0x57,0x53,0x3C,0x2F,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E +,0x3E,0x0A,0x09,0x09,0x3C,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x43 +,0x64,0x6C,0x55,0x70,0x73,0x69,0x64,0x65,0x47,0x61,0x70,0x32,0x43,0x72,0x6F,0x77,0x73,0x3C,0x2F,0x43 +,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x3C,0x53,0x68,0x6F +,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x55,0x70,0x73,0x69,0x64,0x65 +,0x20,0x47,0x61,0x70,0x20,0x54,0x77,0x6F,0x20,0x43,0x72,0x6F,0x77,0x73,0x3C,0x2F,0x53,0x68,0x6F,0x72 +,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x47,0x72,0x6F +,0x75,0x70,0x49,0x64,0x3E,0x50,0x61,0x74,0x74,0x65,0x72,0x6E,0x20,0x52,0x65,0x63,0x6F,0x67,0x6E,0x69 +,0x74,0x69,0x6F,0x6E,0x3C,0x2F,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x0A,0x09,0x09,0x3C,0x46,0x6C +,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x43,0x61,0x6E,0x64,0x6C,0x65 +,0x73,0x74,0x69,0x63,0x6B,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61 +,0x67,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74 +,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69 +,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x4F,0x70,0x65,0x6E,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x4F,0x70,0x65,0x6E,0x3C,0x2F,0x4E,0x61,0x6D,0x65 +,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74 +,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72 +,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x48,0x69,0x67,0x68,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x48,0x69,0x67,0x68,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E +,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41 +,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65 +,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x3C,0x54,0x79,0x70,0x65,0x3E,0x4C,0x6F,0x77,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x4C,0x6F,0x77,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09 +,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75 +,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E +,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79 +,0x70,0x65,0x3E,0x43,0x6C,0x6F,0x73,0x65,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x43,0x6C,0x6F,0x73,0x65,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09 +,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67 +,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49 +,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x75 +,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F +,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C +,0x54,0x79,0x70,0x65,0x3E,0x49,0x6E,0x74,0x65,0x67,0x65,0x72,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F +,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x49 +,0x6E,0x74,0x65,0x67,0x65,0x72,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46 +,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4C,0x69,0x6E +,0x65,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73 +,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E +,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E +,0x74,0x73,0x3E,0x0A,0x09,0x3C,0x2F,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63 +,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x0A,0x0A,0x09,0x3C,0x21,0x2D,0x2D,0x20,0x43,0x44,0x4C,0x58,0x53,0x49 +,0x44,0x45,0x47,0x41,0x50,0x33,0x4D,0x45,0x54,0x48,0x4F,0x44,0x53,0x20,0x2D,0x2D,0x3E,0x0A,0x09,0x3C +,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09 +,0x09,0x3C,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x43,0x44,0x4C,0x58,0x53 +,0x49,0x44,0x45,0x47,0x41,0x50,0x33,0x4D,0x45,0x54,0x48,0x4F,0x44,0x53,0x3C,0x2F,0x41,0x62,0x62,0x72 +,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61 +,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x43,0x64,0x6C,0x58,0x53,0x69,0x64,0x65,0x47,0x61,0x70,0x33,0x4D +,0x65,0x74,0x68,0x6F,0x64,0x73,0x3C,0x2F,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D +,0x65,0x3E,0x0A,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69 +,0x6F,0x6E,0x3E,0x55,0x70,0x73,0x69,0x64,0x65,0x2F,0x44,0x6F,0x77,0x6E,0x73,0x69,0x64,0x65,0x20,0x47 +,0x61,0x70,0x20,0x54,0x68,0x72,0x65,0x65,0x20,0x4D,0x65,0x74,0x68,0x6F,0x64,0x73,0x3C,0x2F,0x53,0x68 +,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x47 +,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x50,0x61,0x74,0x74,0x65,0x72,0x6E,0x20,0x52,0x65,0x63,0x6F,0x67 +,0x6E,0x69,0x74,0x69,0x6F,0x6E,0x3C,0x2F,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x0A,0x09,0x09,0x3C +,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x43,0x61,0x6E,0x64 +,0x6C,0x65,0x73,0x74,0x69,0x63,0x6B,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x46 +,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70 +,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71 +,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x4F,0x70,0x65,0x6E,0x3C,0x2F,0x54,0x79,0x70,0x65 +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x4F,0x70,0x65,0x6E,0x3C,0x2F,0x4E,0x61 +,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70 +,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75 +,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x48,0x69,0x67,0x68,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x48,0x69,0x67,0x68,0x3C,0x2F,0x4E,0x61,0x6D +,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75 +,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69 +,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x4C,0x6F,0x77,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x4C,0x6F,0x77,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A +,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72 +,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64 +,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C +,0x54,0x79,0x70,0x65,0x3E,0x43,0x6C,0x6F,0x73,0x65,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x43,0x6C,0x6F,0x73,0x65,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E +,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41 +,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65 +,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C +,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09 +,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x49,0x6E,0x74,0x65,0x67,0x65,0x72,0x20,0x41,0x72,0x72,0x61,0x79 +,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75 +,0x74,0x49,0x6E,0x74,0x65,0x67,0x65,0x72,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4C +,0x69,0x6E,0x65,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61 +,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D +,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D +,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x3C,0x2F,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75 +,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x0A,0x0A,0x09,0x3C,0x21,0x2D,0x2D,0x20,0x43,0x45,0x49,0x4C +,0x20,0x2D,0x2D,0x3E,0x0A,0x09,0x3C,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63 +,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F +,0x6E,0x3E,0x43,0x45,0x49,0x4C,0x3C,0x2F,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E +,0x3E,0x0A,0x09,0x09,0x3C,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x43 +,0x65,0x69,0x6C,0x3C,0x2F,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x0A +,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E +,0x56,0x65,0x63,0x74,0x6F,0x72,0x20,0x43,0x65,0x69,0x6C,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65 +,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x47,0x72,0x6F,0x75,0x70,0x49 +,0x64,0x3E,0x4D,0x61,0x74,0x68,0x20,0x54,0x72,0x61,0x6E,0x73,0x66,0x6F,0x72,0x6D,0x3C,0x2F,0x47,0x72 +,0x6F,0x75,0x70,0x49,0x64,0x3E,0x0A,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E +,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65 +,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72 +,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65 +,0x3E,0x69,0x6E,0x52,0x65,0x61,0x6C,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F +,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E +,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74 +,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74 +,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75 +,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65 +,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x52,0x65,0x61,0x6C,0x3C,0x2F +,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4C,0x69,0x6E,0x65,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F +,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F +,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x3C,0x2F,0x46 +,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x0A,0x0A +,0x09,0x3C,0x21,0x2D,0x2D,0x20,0x43,0x4D,0x4F,0x20,0x2D,0x2D,0x3E,0x0A,0x09,0x3C,0x46,0x69,0x6E,0x61 +,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x41,0x62 +,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x43,0x4D,0x4F,0x3C,0x2F,0x41,0x62,0x62,0x72 +,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61 +,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x43,0x6D,0x6F,0x3C,0x2F,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73 +,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72 +,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x43,0x68,0x61,0x6E,0x64,0x65,0x20,0x4D,0x6F,0x6D,0x65,0x6E,0x74 +,0x75,0x6D,0x20,0x4F,0x73,0x63,0x69,0x6C,0x6C,0x61,0x74,0x6F,0x72,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74 +,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x47,0x72,0x6F,0x75 +,0x70,0x49,0x64,0x3E,0x4D,0x6F,0x6D,0x65,0x6E,0x74,0x75,0x6D,0x20,0x49,0x6E,0x64,0x69,0x63,0x61,0x74 +,0x6F,0x72,0x73,0x3C,0x2F,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x0A,0x09,0x09,0x3C,0x46,0x6C,0x61 +,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x55,0x6E,0x73,0x74,0x61,0x62,0x6C +,0x65,0x20,0x50,0x65,0x72,0x69,0x6F,0x64,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x3C,0x2F +,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E +,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65 +,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72 +,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65 +,0x3E,0x69,0x6E,0x52,0x65,0x61,0x6C,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F +,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E +,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74 +,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x70,0x74,0x69,0x6F,0x6E +,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09 +,0x09,0x3C,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D +,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x54,0x69,0x6D,0x65,0x20 +,0x50,0x65,0x72,0x69,0x6F,0x64,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x53 +,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x4E,0x75,0x6D,0x62 +,0x65,0x72,0x20,0x6F,0x66,0x20,0x70,0x65,0x72,0x69,0x6F,0x64,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44 +,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70 +,0x65,0x3E,0x49,0x6E,0x74,0x65,0x67,0x65,0x72,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x3C,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x69,0x6E,0x69,0x6D +,0x75,0x6D,0x3E,0x32,0x3C,0x2F,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09 +,0x3C,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x4D,0x61,0x78 +,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65 +,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65 +,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67 +,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75 +,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75 +,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x31,0x30,0x30 +,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D +,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x3C,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x31,0x34,0x3C,0x2F +,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F +,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74 +,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41 +,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41 +,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74 +,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E +,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x52,0x65,0x61,0x6C,0x3C,0x2F,0x4E +,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4C,0x69,0x6E,0x65,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x75 +,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x75 +,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x3C,0x2F,0x46,0x69 +,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x0A,0x0A,0x09 +,0x3C,0x21,0x2D,0x2D,0x20,0x43,0x4F,0x52,0x52,0x45,0x4C,0x20,0x2D,0x2D,0x3E,0x0A,0x09,0x3C,0x46,0x69 +,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C +,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x43,0x4F,0x52,0x52,0x45,0x4C,0x3C +,0x2F,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x43,0x61 +,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x43,0x6F,0x72,0x72,0x65,0x6C,0x3C,0x2F +,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x3C,0x53,0x68 +,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x50,0x65,0x61,0x72,0x73 +,0x6F,0x6E,0x26,0x61,0x70,0x6F,0x73,0x3B,0x73,0x20,0x43,0x6F,0x72,0x72,0x65,0x6C,0x61,0x74,0x69,0x6F +,0x6E,0x20,0x43,0x6F,0x65,0x66,0x66,0x69,0x63,0x69,0x65,0x6E,0x74,0x20,0x28,0x72,0x29,0x3C,0x2F,0x53 +,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C +,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x53,0x74,0x61,0x74,0x69,0x73,0x74,0x69,0x63,0x20,0x46,0x75 +,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x73,0x3C,0x2F,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x0A,0x09,0x09 +,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65 +,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70 +,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70 +,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65 +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x69,0x6E,0x52,0x65,0x61,0x6C,0x30,0x3C +,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64 +,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52 +,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74 +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41 +,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D +,0x65,0x3E,0x69,0x6E,0x52,0x65,0x61,0x6C,0x31,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09 +,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D +,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70 +,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x70,0x74,0x69 +,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A +,0x09,0x09,0x09,0x3C,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67 +,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x54,0x69,0x6D +,0x65,0x20,0x50,0x65,0x72,0x69,0x6F,0x64,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x4E,0x75 +,0x6D,0x62,0x65,0x72,0x20,0x6F,0x66,0x20,0x70,0x65,0x72,0x69,0x6F,0x64,0x3C,0x2F,0x53,0x68,0x6F,0x72 +,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54 +,0x79,0x70,0x65,0x3E,0x49,0x6E,0x74,0x65,0x67,0x65,0x72,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x3C,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x69,0x6E +,0x69,0x6D,0x75,0x6D,0x3E,0x31,0x3C,0x2F,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x09,0x3C,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x4D +,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73 +,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67 +,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53 +,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F +,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C +,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x31 +,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63,0x72 +,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x3C,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x33,0x30 +,0x3C,0x2F,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C +,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65 +,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75 +,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75 +,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70 +,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70 +,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65 +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x52,0x65,0x61,0x6C,0x3C +,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4C,0x69,0x6E,0x65,0x3C,0x2F,0x46,0x6C,0x61,0x67 +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F +,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F +,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x3C,0x2F +,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x0A +,0x0A,0x09,0x3C,0x21,0x2D,0x2D,0x20,0x43,0x4F,0x53,0x20,0x2D,0x2D,0x3E,0x0A,0x09,0x3C,0x46,0x69,0x6E +,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x41 +,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x43,0x4F,0x53,0x3C,0x2F,0x41,0x62,0x62 +,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x43,0x61,0x6D,0x65,0x6C,0x43 +,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x43,0x6F,0x73,0x3C,0x2F,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61 +,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63 +,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x56,0x65,0x63,0x74,0x6F,0x72,0x20,0x54,0x72,0x69,0x67,0x6F +,0x6E,0x6F,0x6D,0x65,0x74,0x72,0x69,0x63,0x20,0x43,0x6F,0x73,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44 +,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x47,0x72,0x6F,0x75,0x70 +,0x49,0x64,0x3E,0x4D,0x61,0x74,0x68,0x20,0x54,0x72,0x61,0x6E,0x73,0x66,0x6F,0x72,0x6D,0x3C,0x2F,0x47 +,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x0A,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49 +,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52 +,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74 +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41 +,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D +,0x65,0x3E,0x69,0x6E,0x52,0x65,0x61,0x6C,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C +,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65 +,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75 +,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75 +,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70 +,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70 +,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65 +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x52,0x65,0x61,0x6C,0x3C +,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4C,0x69,0x6E,0x65,0x3C,0x2F,0x46,0x6C,0x61,0x67 +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F +,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F +,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x3C,0x2F +,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x0A +,0x0A,0x09,0x3C,0x21,0x2D,0x2D,0x20,0x43,0x4F,0x53,0x48,0x20,0x2D,0x2D,0x3E,0x0A,0x09,0x3C,0x46,0x69 +,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C +,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x43,0x4F,0x53,0x48,0x3C,0x2F,0x41 +,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x43,0x61,0x6D,0x65 +,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x43,0x6F,0x73,0x68,0x3C,0x2F,0x43,0x61,0x6D,0x65 +,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44 +,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x56,0x65,0x63,0x74,0x6F,0x72,0x20,0x54,0x72 +,0x69,0x67,0x6F,0x6E,0x6F,0x6D,0x65,0x74,0x72,0x69,0x63,0x20,0x43,0x6F,0x73,0x68,0x3C,0x2F,0x53,0x68 +,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x47 +,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x4D,0x61,0x74,0x68,0x20,0x54,0x72,0x61,0x6E,0x73,0x66,0x6F,0x72 +,0x6D,0x3C,0x2F,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x0A,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69 +,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09 +,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75 +,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62 +,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x69,0x6E,0x52,0x65,0x61,0x6C,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A +,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72 +,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64 +,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F +,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C +,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F +,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x52 +,0x65,0x61,0x6C,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67 +,0x73,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4C,0x69,0x6E,0x65,0x3C,0x2F +,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09 +,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A +,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E +,0x0A,0x09,0x3C,0x2F,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F +,0x6E,0x3E,0x0A,0x0A,0x0A,0x09,0x3C,0x21,0x2D,0x2D,0x20,0x44,0x45,0x4D,0x41,0x20,0x2D,0x2D,0x3E,0x0A +,0x09,0x3C,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E +,0x0A,0x09,0x09,0x3C,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x44,0x45,0x4D +,0x41,0x3C,0x2F,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C +,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x44,0x65,0x6D,0x61,0x3C,0x2F +,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x3C,0x53,0x68 +,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x44,0x6F,0x75,0x62,0x6C +,0x65,0x20,0x45,0x78,0x70,0x6F,0x6E,0x65,0x6E,0x74,0x69,0x61,0x6C,0x20,0x4D,0x6F,0x76,0x69,0x6E,0x67 +,0x20,0x41,0x76,0x65,0x72,0x61,0x67,0x65,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72 +,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x4F +,0x76,0x65,0x72,0x6C,0x61,0x70,0x20,0x53,0x74,0x75,0x64,0x69,0x65,0x73,0x3C,0x2F,0x47,0x72,0x6F,0x75 +,0x70,0x49,0x64,0x3E,0x0A,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x46 +,0x6C,0x61,0x67,0x3E,0x4F,0x76,0x65,0x72,0x6C,0x61,0x70,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09 +,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65 +,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09 +,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65 +,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65 +,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E +,0x61,0x6D,0x65,0x3E,0x69,0x6E,0x52,0x65,0x61,0x6C,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09 +,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75 +,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E +,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x70,0x74 +,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E +,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72 +,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x54,0x69 +,0x6D,0x65,0x20,0x50,0x65,0x72,0x69,0x6F,0x64,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x4E +,0x75,0x6D,0x62,0x65,0x72,0x20,0x6F,0x66,0x20,0x70,0x65,0x72,0x69,0x6F,0x64,0x3C,0x2F,0x53,0x68,0x6F +,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C +,0x54,0x79,0x70,0x65,0x3E,0x49,0x6E,0x74,0x65,0x67,0x65,0x72,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x3C,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x69 +,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x32,0x3C,0x2F,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x09,0x3C,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F +,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65 +,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75 +,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C +,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C +,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09 +,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E +,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63 +,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x52,0x61,0x6E,0x67,0x65,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x3C,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x33 +,0x30,0x3C,0x2F,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x0A,0x09,0x09,0x09 +,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D +,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70 +,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70 +,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x75,0x74 +,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79 +,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70 +,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x52,0x65,0x61,0x6C +,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4C,0x69,0x6E,0x65,0x3C,0x2F,0x46,0x6C,0x61 +,0x67,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C +,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C +,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x3C +,0x2F,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A +,0x0A,0x0A,0x09,0x3C,0x21,0x2D,0x2D,0x20,0x44,0x49,0x56,0x20,0x2D,0x2D,0x3E,0x0A,0x09,0x3C,0x46,0x69 +,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C +,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x44,0x49,0x56,0x3C,0x2F,0x41,0x62 +,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x43,0x61,0x6D,0x65,0x6C +,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x44,0x69,0x76,0x3C,0x2F,0x43,0x61,0x6D,0x65,0x6C,0x43 +,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73 +,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x56,0x65,0x63,0x74,0x6F,0x72,0x20,0x41,0x72,0x69,0x74 +,0x68,0x6D,0x65,0x74,0x69,0x63,0x20,0x44,0x69,0x76,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73 +,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x47,0x72,0x6F,0x75,0x70,0x49,0x64 +,0x3E,0x4D,0x61,0x74,0x68,0x20,0x4F,0x70,0x65,0x72,0x61,0x74,0x6F,0x72,0x73,0x3C,0x2F,0x47,0x72,0x6F +,0x75,0x70,0x49,0x64,0x3E,0x0A,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70 +,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71 +,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72,0x72 +,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E +,0x69,0x6E,0x52,0x65,0x61,0x6C,0x30,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F +,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E +,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74 +,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E +,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x69,0x6E,0x52,0x65,0x61,0x6C,0x31,0x3C,0x2F,0x4E +,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E +,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71 +,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E +,0x0A,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E +,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72 +,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65 +,0x3E,0x6F,0x75,0x74,0x52,0x65,0x61,0x6C,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4C +,0x69,0x6E,0x65,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61 +,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D +,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D +,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x3C,0x2F,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75 +,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x0A,0x0A,0x09,0x3C,0x21,0x2D,0x2D,0x20,0x44,0x58,0x20,0x2D +,0x2D,0x3E,0x0A,0x09,0x3C,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69 +,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E +,0x44,0x58,0x3C,0x2F,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09 +,0x3C,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x44,0x78,0x3C,0x2F,0x43 +,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x3C,0x53,0x68,0x6F +,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x44,0x69,0x72,0x65,0x63,0x74 +,0x69,0x6F,0x6E,0x61,0x6C,0x20,0x4D,0x6F,0x76,0x65,0x6D,0x65,0x6E,0x74,0x20,0x49,0x6E,0x64,0x65,0x78 +,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A +,0x09,0x09,0x3C,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x4D,0x6F,0x6D,0x65,0x6E,0x74,0x75,0x6D,0x20 +,0x49,0x6E,0x64,0x69,0x63,0x61,0x74,0x6F,0x72,0x73,0x3C,0x2F,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E +,0x0A,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E +,0x55,0x6E,0x73,0x74,0x61,0x62,0x6C,0x65,0x20,0x50,0x65,0x72,0x69,0x6F,0x64,0x3C,0x2F,0x46,0x6C,0x61 +,0x67,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x52,0x65,0x71 +,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E +,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72 +,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x48,0x69 +,0x67,0x68,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E +,0x48,0x69,0x67,0x68,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71 +,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A +,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67 +,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x4C,0x6F,0x77 +,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x4C,0x6F +,0x77,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72 +,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09 +,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65 +,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x43,0x6C,0x6F,0x73,0x65,0x3C +,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x43,0x6C,0x6F +,0x73,0x65,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69 +,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09 +,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D +,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70 +,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x70,0x74 +,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x54,0x69,0x6D,0x65,0x20,0x50,0x65,0x72,0x69,0x6F +,0x64,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44 +,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x4E,0x75,0x6D,0x62,0x65,0x72,0x20,0x6F,0x66 +,0x20,0x70,0x65,0x72,0x69,0x6F,0x64,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69 +,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x49,0x6E,0x74 +,0x65,0x67,0x65,0x72,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x52,0x61,0x6E +,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x32,0x3C +,0x2F,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x61,0x78,0x69 +,0x6D,0x75,0x6D,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72 +,0x74,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53 +,0x74,0x61,0x72,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65 +,0x64,0x45,0x6E,0x64,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74 +,0x65,0x64,0x45,0x6E,0x64,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74 +,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F +,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x3C,0x2F,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x44,0x65 +,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x31,0x34,0x3C,0x2F,0x44,0x65,0x66,0x61,0x75 +,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E +,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C +,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65 +,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65 +,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D +,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C +,0x65,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C +,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x52,0x65,0x61,0x6C,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C +,0x61,0x67,0x3E,0x4C,0x69,0x6E,0x65,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C +,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41 +,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41 +,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x3C,0x2F,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69 +,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x0A,0x0A,0x09,0x3C,0x21,0x2D,0x2D,0x20 +,0x45,0x4D,0x41,0x20,0x2D,0x2D,0x3E,0x0A,0x09,0x3C,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46 +,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61 +,0x74,0x69,0x6F,0x6E,0x3E,0x45,0x4D,0x41,0x3C,0x2F,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69 +,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65 +,0x3E,0x45,0x6D,0x61,0x3C,0x2F,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E +,0x0A,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E +,0x3E,0x45,0x78,0x70,0x6F,0x6E,0x65,0x6E,0x74,0x69,0x61,0x6C,0x20,0x4D,0x6F,0x76,0x69,0x6E,0x67,0x20 +,0x41,0x76,0x65,0x72,0x61,0x67,0x65,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69 +,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x4F,0x76 +,0x65,0x72,0x6C,0x61,0x70,0x20,0x53,0x74,0x75,0x64,0x69,0x65,0x73,0x3C,0x2F,0x47,0x72,0x6F,0x75,0x70 +,0x49,0x64,0x3E,0x0A,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x46,0x6C +,0x61,0x67,0x3E,0x4F,0x76,0x65,0x72,0x6C,0x61,0x70,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09 +,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x55,0x6E,0x73,0x74,0x61,0x62,0x6C,0x65,0x20,0x50,0x65,0x72,0x69 +,0x6F,0x64,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E +,0x0A,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67 +,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64 +,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C +,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54 +,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x69,0x6E,0x52,0x65,0x61 +,0x6C,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72 +,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C +,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65 +,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75 +,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x70,0x74,0x69 +,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x54,0x69,0x6D,0x65,0x20,0x50,0x65,0x72,0x69,0x6F,0x64 +,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65 +,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x4E,0x75,0x6D,0x62,0x65,0x72,0x20,0x6F,0x66,0x20 +,0x70,0x65,0x72,0x69,0x6F,0x64,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70 +,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x49,0x6E,0x74,0x65 +,0x67,0x65,0x72,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x52,0x61,0x6E,0x67 +,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x32,0x3C,0x2F +,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x61,0x78,0x69,0x6D +,0x75,0x6D,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74 +,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74 +,0x61,0x72,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64 +,0x45,0x6E,0x64,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65 +,0x64,0x45,0x6E,0x64,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65 +,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53 +,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x3C,0x2F,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x44,0x65,0x66 +,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x33,0x30,0x3C,0x2F,0x44,0x65,0x66,0x61,0x75,0x6C +,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61 +,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F +,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E +,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E +,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65 +,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65 +,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E +,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x52,0x65,0x61,0x6C,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61 +,0x67,0x3E,0x4C,0x69,0x6E,0x65,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F +,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72 +,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72 +,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x3C,0x2F,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61 +,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x0A,0x0A,0x09,0x3C,0x21,0x2D,0x2D,0x20,0x45 +,0x58,0x50,0x20,0x2D,0x2D,0x3E,0x0A,0x09,0x3C,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75 +,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74 +,0x69,0x6F,0x6E,0x3E,0x45,0x58,0x50,0x3C,0x2F,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F +,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E +,0x45,0x78,0x70,0x3C,0x2F,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x0A +,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E +,0x56,0x65,0x63,0x74,0x6F,0x72,0x20,0x41,0x72,0x69,0x74,0x68,0x6D,0x65,0x74,0x69,0x63,0x20,0x45,0x78 +,0x70,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E +,0x0A,0x09,0x09,0x3C,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x4D,0x61,0x74,0x68,0x20,0x54,0x72,0x61 +,0x6E,0x73,0x66,0x6F,0x72,0x6D,0x3C,0x2F,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x0A,0x09,0x09,0x3C +,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E +,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75 +,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65 +,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x69,0x6E,0x52,0x65,0x61,0x6C,0x3C,0x2F,0x4E +,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E +,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71 +,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E +,0x0A,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E +,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72 +,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65 +,0x3E,0x6F,0x75,0x74,0x52,0x65,0x61,0x6C,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4C +,0x69,0x6E,0x65,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61 +,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D +,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D +,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x3C,0x2F,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75 +,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x0A,0x0A,0x09,0x3C,0x21,0x2D,0x2D,0x20,0x46,0x4C,0x4F,0x4F +,0x52,0x20,0x2D,0x2D,0x3E,0x0A,0x09,0x3C,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E +,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69 +,0x6F,0x6E,0x3E,0x46,0x4C,0x4F,0x4F,0x52,0x3C,0x2F,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69 +,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65 +,0x3E,0x46,0x6C,0x6F,0x6F,0x72,0x3C,0x2F,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D +,0x65,0x3E,0x0A,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69 +,0x6F,0x6E,0x3E,0x56,0x65,0x63,0x74,0x6F,0x72,0x20,0x46,0x6C,0x6F,0x6F,0x72,0x3C,0x2F,0x53,0x68,0x6F +,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x47,0x72 +,0x6F,0x75,0x70,0x49,0x64,0x3E,0x4D,0x61,0x74,0x68,0x20,0x54,0x72,0x61,0x6E,0x73,0x66,0x6F,0x72,0x6D +,0x3C,0x2F,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x0A,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72 +,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09 +,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D +,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C +,0x65,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C +,0x4E,0x61,0x6D,0x65,0x3E,0x69,0x6E,0x52,0x65,0x61,0x6C,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09 +,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67 +,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49 +,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x75 +,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F +,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C +,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54 +,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x52,0x65 +,0x61,0x6C,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73 +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4C,0x69,0x6E,0x65,0x3C,0x2F,0x46 +,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09 +,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09 +,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A +,0x09,0x3C,0x2F,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E +,0x3E,0x0A,0x0A,0x0A,0x09,0x3C,0x21,0x2D,0x2D,0x20,0x48,0x54,0x5F,0x44,0x43,0x50,0x45,0x52,0x49,0x4F +,0x44,0x20,0x2D,0x2D,0x3E,0x0A,0x09,0x3C,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E +,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69 +,0x6F,0x6E,0x3E,0x48,0x54,0x5F,0x44,0x43,0x50,0x45,0x52,0x49,0x4F,0x44,0x3C,0x2F,0x41,0x62,0x62,0x72 +,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61 +,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x48,0x74,0x44,0x63,0x50,0x65,0x72,0x69,0x6F,0x64,0x3C,0x2F,0x43 +,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x3C,0x53,0x68,0x6F +,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x48,0x69,0x6C,0x62,0x65,0x72 +,0x74,0x20,0x54,0x72,0x61,0x6E,0x73,0x66,0x6F,0x72,0x6D,0x20,0x2D,0x20,0x44,0x6F,0x6D,0x69,0x6E,0x61 +,0x6E,0x74,0x20,0x43,0x79,0x63,0x6C,0x65,0x20,0x50,0x65,0x72,0x69,0x6F,0x64,0x3C,0x2F,0x53,0x68,0x6F +,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x47,0x72 +,0x6F,0x75,0x70,0x49,0x64,0x3E,0x43,0x79,0x63,0x6C,0x65,0x20,0x49,0x6E,0x64,0x69,0x63,0x61,0x74,0x6F +,0x72,0x73,0x3C,0x2F,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x0A,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67 +,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x55,0x6E,0x73,0x74,0x61,0x62,0x6C,0x65 +,0x20,0x50,0x65,0x72,0x69,0x6F,0x64,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x46 +,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70 +,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71 +,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72,0x72 +,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E +,0x69,0x6E,0x52,0x65,0x61,0x6C,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52 +,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74 +,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41 +,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41 +,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74 +,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E +,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x52,0x65,0x61,0x6C,0x3C,0x2F,0x4E +,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4C,0x69,0x6E,0x65,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x75 +,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x75 +,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x3C,0x2F,0x46,0x69 +,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x0A,0x0A,0x09 +,0x3C,0x21,0x2D,0x2D,0x20,0x48,0x54,0x5F,0x44,0x43,0x50,0x48,0x41,0x53,0x45,0x20,0x2D,0x2D,0x3E,0x0A +,0x09,0x3C,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E +,0x0A,0x09,0x09,0x3C,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x48,0x54,0x5F +,0x44,0x43,0x50,0x48,0x41,0x53,0x45,0x3C,0x2F,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F +,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E +,0x48,0x74,0x44,0x63,0x50,0x68,0x61,0x73,0x65,0x3C,0x2F,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65 +,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69 +,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x48,0x69,0x6C,0x62,0x65,0x72,0x74,0x20,0x54,0x72,0x61,0x6E,0x73,0x66 +,0x6F,0x72,0x6D,0x20,0x2D,0x20,0x44,0x6F,0x6D,0x69,0x6E,0x61,0x6E,0x74,0x20,0x43,0x79,0x63,0x6C,0x65 +,0x20,0x50,0x68,0x61,0x73,0x65,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70 +,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x43,0x79,0x63 +,0x6C,0x65,0x20,0x49,0x6E,0x64,0x69,0x63,0x61,0x74,0x6F,0x72,0x73,0x3C,0x2F,0x47,0x72,0x6F,0x75,0x70 +,0x49,0x64,0x3E,0x0A,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x46,0x6C +,0x61,0x67,0x3E,0x55,0x6E,0x73,0x74,0x61,0x62,0x6C,0x65,0x20,0x50,0x65,0x72,0x69,0x6F,0x64,0x3C,0x2F +,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x3C +,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E +,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75 +,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65 +,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x69,0x6E,0x52,0x65,0x61,0x6C,0x3C,0x2F,0x4E +,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E +,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71 +,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E +,0x0A,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E +,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72 +,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65 +,0x3E,0x6F,0x75,0x74,0x52,0x65,0x61,0x6C,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4C +,0x69,0x6E,0x65,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61 +,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D +,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D +,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x3C,0x2F,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75 +,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x0A,0x0A,0x09,0x3C,0x21,0x2D,0x2D,0x20,0x48,0x54,0x5F,0x50 +,0x48,0x41,0x53,0x4F,0x52,0x20,0x2D,0x2D,0x3E,0x0A,0x09,0x3C,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61 +,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x41,0x62,0x62,0x72,0x65,0x76 +,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x48,0x54,0x5F,0x50,0x48,0x41,0x53,0x4F,0x52,0x3C,0x2F,0x41,0x62 +,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x43,0x61,0x6D,0x65,0x6C +,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x48,0x74,0x50,0x68,0x61,0x73,0x6F,0x72,0x3C,0x2F,0x43 +,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x3C,0x53,0x68,0x6F +,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x48,0x69,0x6C,0x62,0x65,0x72 +,0x74,0x20,0x54,0x72,0x61,0x6E,0x73,0x66,0x6F,0x72,0x6D,0x20,0x2D,0x20,0x50,0x68,0x61,0x73,0x6F,0x72 +,0x20,0x43,0x6F,0x6D,0x70,0x6F,0x6E,0x65,0x6E,0x74,0x73,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65 +,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x47,0x72,0x6F,0x75,0x70,0x49 +,0x64,0x3E,0x43,0x79,0x63,0x6C,0x65,0x20,0x49,0x6E,0x64,0x69,0x63,0x61,0x74,0x6F,0x72,0x73,0x3C,0x2F +,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x0A,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09 +,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x55,0x6E,0x73,0x74,0x61,0x62,0x6C,0x65,0x20,0x50,0x65,0x72 +,0x69,0x6F,0x64,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73 +,0x3E,0x0A,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72 +,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65 +,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F +,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x69,0x6E,0x52,0x65 +,0x61,0x6C,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69 +,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09 +,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D +,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D +,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75 +,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62 +,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x49,0x6E,0x50,0x68,0x61,0x73,0x65,0x3C,0x2F,0x4E,0x61 +,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4C,0x69,0x6E,0x65,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74 +,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x75,0x74 +,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79 +,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70 +,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x51,0x75,0x61,0x64 +,0x72,0x61,0x74,0x75,0x72,0x65,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46 +,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x44,0x61,0x73 +,0x68,0x65,0x64,0x20,0x4C,0x69,0x6E,0x65,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74 +,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74 +,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x3C,0x2F,0x46,0x69,0x6E,0x61,0x6E,0x63 +,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x0A,0x0A,0x09,0x3C,0x21,0x2D,0x2D +,0x20,0x48,0x54,0x5F,0x53,0x49,0x4E,0x45,0x20,0x2D,0x2D,0x3E,0x0A,0x09,0x3C,0x46,0x69,0x6E,0x61,0x6E +,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x41,0x62,0x62 +,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x48,0x54,0x5F,0x53,0x49,0x4E,0x45,0x3C,0x2F,0x41 +,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x43,0x61,0x6D,0x65 +,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x48,0x74,0x53,0x69,0x6E,0x65,0x3C,0x2F,0x43,0x61 +,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72 +,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x48,0x69,0x6C,0x62,0x65,0x72,0x74 +,0x20,0x54,0x72,0x61,0x6E,0x73,0x66,0x6F,0x72,0x6D,0x20,0x2D,0x20,0x53,0x69,0x6E,0x65,0x57,0x61,0x76 +,0x65,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E +,0x0A,0x09,0x09,0x3C,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x43,0x79,0x63,0x6C,0x65,0x20,0x49,0x6E +,0x64,0x69,0x63,0x61,0x74,0x6F,0x72,0x73,0x3C,0x2F,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x0A,0x09 +,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x55,0x6E +,0x73,0x74,0x61,0x62,0x6C,0x65,0x20,0x50,0x65,0x72,0x69,0x6F,0x64,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E +,0x0A,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69 +,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09 +,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75 +,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62 +,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x69,0x6E,0x52,0x65,0x61,0x6C,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A +,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72 +,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64 +,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F +,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C +,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F +,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x53 +,0x69,0x6E,0x65,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67 +,0x73,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4C,0x69,0x6E,0x65,0x3C,0x2F +,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09 +,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A +,0x09,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72,0x72 +,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E +,0x6F,0x75,0x74,0x4C,0x65,0x61,0x64,0x53,0x69,0x6E,0x65,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61 +,0x67,0x3E,0x44,0x61,0x73,0x68,0x65,0x64,0x20,0x4C,0x69,0x6E,0x65,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F +,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F +,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x3C,0x2F,0x46 +,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x0A,0x0A +,0x09,0x3C,0x21,0x2D,0x2D,0x20,0x48,0x54,0x5F,0x54,0x52,0x45,0x4E,0x44,0x4C,0x49,0x4E,0x45,0x20,0x2D +,0x2D,0x3E,0x0A,0x09,0x3C,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69 +,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E +,0x48,0x54,0x5F,0x54,0x52,0x45,0x4E,0x44,0x4C,0x49,0x4E,0x45,0x3C,0x2F,0x41,0x62,0x62,0x72,0x65,0x76 +,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65 +,0x4E,0x61,0x6D,0x65,0x3E,0x48,0x74,0x54,0x72,0x65,0x6E,0x64,0x6C,0x69,0x6E,0x65,0x3C,0x2F,0x43,0x61 +,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72 +,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x48,0x69,0x6C,0x62,0x65,0x72,0x74 +,0x20,0x54,0x72,0x61,0x6E,0x73,0x66,0x6F,0x72,0x6D,0x20,0x2D,0x20,0x49,0x6E,0x73,0x74,0x61,0x6E,0x74 +,0x61,0x6E,0x65,0x6F,0x75,0x73,0x20,0x54,0x72,0x65,0x6E,0x64,0x6C,0x69,0x6E,0x65,0x3C,0x2F,0x53,0x68 +,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x47 +,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x4F,0x76,0x65,0x72,0x6C,0x61,0x70,0x20,0x53,0x74,0x75,0x64,0x69 +,0x65,0x73,0x3C,0x2F,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x0A,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67 +,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4F,0x76,0x65,0x72,0x6C,0x61,0x70,0x3C +,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x55,0x6E,0x73,0x74 +,0x61,0x62,0x6C,0x65,0x20,0x50,0x65,0x72,0x69,0x6F,0x64,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09 +,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65 +,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09 +,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65 +,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65 +,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E +,0x61,0x6D,0x65,0x3E,0x69,0x6E,0x52,0x65,0x61,0x6C,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09 +,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75 +,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E +,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x75,0x74 +,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x75 +,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54 +,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79 +,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x52,0x65,0x61 +,0x6C,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4C,0x69,0x6E,0x65,0x3C,0x2F,0x46,0x6C +,0x61,0x67,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09 +,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09 +,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09 +,0x3C,0x2F,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E +,0x0A,0x0A,0x0A,0x09,0x3C,0x21,0x2D,0x2D,0x20,0x48,0x54,0x5F,0x54,0x52,0x45,0x4E,0x44,0x4D,0x4F,0x44 +,0x45,0x20,0x2D,0x2D,0x3E,0x0A,0x09,0x3C,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E +,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69 +,0x6F,0x6E,0x3E,0x48,0x54,0x5F,0x54,0x52,0x45,0x4E,0x44,0x4D,0x4F,0x44,0x45,0x3C,0x2F,0x41,0x62,0x62 +,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x43,0x61,0x6D,0x65,0x6C,0x43 +,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x48,0x74,0x54,0x72,0x65,0x6E,0x64,0x4D,0x6F,0x64,0x65,0x3C +,0x2F,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x3C,0x53 +,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x48,0x69,0x6C,0x62 +,0x65,0x72,0x74,0x20,0x54,0x72,0x61,0x6E,0x73,0x66,0x6F,0x72,0x6D,0x20,0x2D,0x20,0x54,0x72,0x65,0x6E +,0x64,0x20,0x76,0x73,0x20,0x43,0x79,0x63,0x6C,0x65,0x20,0x4D,0x6F,0x64,0x65,0x3C,0x2F,0x53,0x68,0x6F +,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x47,0x72 +,0x6F,0x75,0x70,0x49,0x64,0x3E,0x43,0x79,0x63,0x6C,0x65,0x20,0x49,0x6E,0x64,0x69,0x63,0x61,0x74,0x6F +,0x72,0x73,0x3C,0x2F,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x0A,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67 +,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x55,0x6E,0x73,0x74,0x61,0x62,0x6C,0x65 +,0x20,0x50,0x65,0x72,0x69,0x6F,0x64,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x46 +,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70 +,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71 +,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72,0x72 +,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E +,0x69,0x6E,0x52,0x65,0x61,0x6C,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52 +,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74 +,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41 +,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41 +,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74 +,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E +,0x49,0x6E,0x74,0x65,0x67,0x65,0x72,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x49,0x6E,0x74,0x65,0x67,0x65 +,0x72,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4C,0x69,0x6E,0x65,0x3C,0x2F,0x46,0x6C +,0x61,0x67,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09 +,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09 +,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09 +,0x3C,0x2F,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E +,0x0A,0x0A,0x0A,0x09,0x3C,0x21,0x2D,0x2D,0x20,0x4B,0x41,0x4D,0x41,0x20,0x2D,0x2D,0x3E,0x0A,0x09,0x3C +,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09 +,0x09,0x3C,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x4B,0x41,0x4D,0x41,0x3C +,0x2F,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x43,0x61 +,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x4B,0x61,0x6D,0x61,0x3C,0x2F,0x43,0x61 +,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72 +,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x4B,0x61,0x75,0x66,0x6D,0x61,0x6E +,0x20,0x41,0x64,0x61,0x70,0x74,0x69,0x76,0x65,0x20,0x4D,0x6F,0x76,0x69,0x6E,0x67,0x20,0x41,0x76,0x65 +,0x72,0x61,0x67,0x65,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69 +,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x4F,0x76,0x65,0x72,0x6C +,0x61,0x70,0x20,0x53,0x74,0x75,0x64,0x69,0x65,0x73,0x3C,0x2F,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E +,0x0A,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E +,0x4F,0x76,0x65,0x72,0x6C,0x61,0x70,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x46 +,0x6C,0x61,0x67,0x3E,0x55,0x6E,0x73,0x74,0x61,0x62,0x6C,0x65,0x20,0x50,0x65,0x72,0x69,0x6F,0x64,0x3C +,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09 +,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65 +,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70 +,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70 +,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65 +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x69,0x6E,0x52,0x65,0x61,0x6C,0x3C,0x2F +,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49 +,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x52,0x65 +,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73 +,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72 +,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61 +,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x54,0x69,0x6D,0x65,0x20,0x50,0x65,0x72,0x69,0x6F,0x64,0x3C,0x2F,0x4E +,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72 +,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x4E,0x75,0x6D,0x62,0x65,0x72,0x20,0x6F,0x66,0x20,0x70,0x65,0x72 +,0x69,0x6F,0x64,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F +,0x6E,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x49,0x6E,0x74,0x65,0x67,0x65,0x72 +,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x32,0x3C,0x2F,0x4D,0x69,0x6E +,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E +,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x31,0x30 +,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74 +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64 +,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E +,0x64,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E +,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67 +,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x3C,0x2F,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x44,0x65,0x66,0x61,0x75,0x6C +,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x33,0x30,0x3C,0x2F,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61 +,0x6C,0x75,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E +,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x70,0x74 +,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E +,0x0A,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E +,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72 +,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65 +,0x3E,0x6F,0x75,0x74,0x52,0x65,0x61,0x6C,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4C +,0x69,0x6E,0x65,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61 +,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D +,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D +,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x3C,0x2F,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75 +,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x0A,0x0A,0x09,0x3C,0x21,0x2D,0x2D,0x20,0x4C,0x49,0x4E,0x45 +,0x41,0x52,0x52,0x45,0x47,0x20,0x2D,0x2D,0x3E,0x0A,0x09,0x3C,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61 +,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x41,0x62,0x62,0x72,0x65,0x76 +,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x4C,0x49,0x4E,0x45,0x41,0x52,0x52,0x45,0x47,0x3C,0x2F,0x41,0x62 +,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x43,0x61,0x6D,0x65,0x6C +,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x4C,0x69,0x6E,0x65,0x61,0x72,0x52,0x65,0x67,0x3C,0x2F +,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x3C,0x53,0x68 +,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x4C,0x69,0x6E,0x65,0x61 +,0x72,0x20,0x52,0x65,0x67,0x72,0x65,0x73,0x73,0x69,0x6F,0x6E,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44 +,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x47,0x72,0x6F,0x75,0x70 +,0x49,0x64,0x3E,0x53,0x74,0x61,0x74,0x69,0x73,0x74,0x69,0x63,0x20,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F +,0x6E,0x73,0x3C,0x2F,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x0A,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67 +,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4F,0x76,0x65,0x72,0x6C,0x61,0x70,0x3C +,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09 +,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65 +,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70 +,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70 +,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65 +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x69,0x6E,0x52,0x65,0x61,0x6C,0x3C,0x2F +,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49 +,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x52,0x65 +,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73 +,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72 +,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61 +,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x54,0x69,0x6D,0x65,0x20,0x50,0x65,0x72,0x69,0x6F,0x64,0x3C,0x2F,0x4E +,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72 +,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x4E,0x75,0x6D,0x62,0x65,0x72,0x20,0x6F,0x66,0x20,0x70,0x65,0x72 +,0x69,0x6F,0x64,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F +,0x6E,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x49,0x6E,0x74,0x65,0x67,0x65,0x72 +,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x32,0x3C,0x2F,0x4D,0x69,0x6E +,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E +,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x31,0x30 +,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74 +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64 +,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E +,0x64,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E +,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67 +,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x3C,0x2F,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x44,0x65,0x66,0x61,0x75,0x6C +,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x31,0x34,0x3C,0x2F,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61 +,0x6C,0x75,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E +,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x70,0x74 +,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E +,0x0A,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E +,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72 +,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65 +,0x3E,0x6F,0x75,0x74,0x52,0x65,0x61,0x6C,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4C +,0x69,0x6E,0x65,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61 +,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D +,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D +,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x3C,0x2F,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75 +,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x0A,0x0A,0x09,0x3C,0x21,0x2D,0x2D,0x20,0x4C,0x49,0x4E,0x45 +,0x41,0x52,0x52,0x45,0x47,0x5F,0x41,0x4E,0x47,0x4C,0x45,0x20,0x2D,0x2D,0x3E,0x0A,0x09,0x3C,0x46,0x69 +,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C +,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x4C,0x49,0x4E,0x45,0x41,0x52,0x52 +,0x45,0x47,0x5F,0x41,0x4E,0x47,0x4C,0x45,0x3C,0x2F,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69 +,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65 +,0x3E,0x4C,0x69,0x6E,0x65,0x61,0x72,0x52,0x65,0x67,0x41,0x6E,0x67,0x6C,0x65,0x3C,0x2F,0x43,0x61,0x6D +,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74 +,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x4C,0x69,0x6E,0x65,0x61,0x72,0x20,0x52 +,0x65,0x67,0x72,0x65,0x73,0x73,0x69,0x6F,0x6E,0x20,0x41,0x6E,0x67,0x6C,0x65,0x3C,0x2F,0x53,0x68,0x6F +,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x47,0x72 +,0x6F,0x75,0x70,0x49,0x64,0x3E,0x53,0x74,0x61,0x74,0x69,0x73,0x74,0x69,0x63,0x20,0x46,0x75,0x6E,0x63 +,0x74,0x69,0x6F,0x6E,0x73,0x3C,0x2F,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x0A,0x09,0x09,0x3C,0x52 +,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74 +,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74 +,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E +,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x69,0x6E,0x52,0x65,0x61,0x6C,0x3C,0x2F,0x4E,0x61 +,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70 +,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75 +,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A +,0x09,0x09,0x3C,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75 +,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49 +,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E +,0x61,0x6D,0x65,0x3E,0x54,0x69,0x6D,0x65,0x20,0x50,0x65,0x72,0x69,0x6F,0x64,0x3C,0x2F,0x4E,0x61,0x6D +,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70 +,0x74,0x69,0x6F,0x6E,0x3E,0x4E,0x75,0x6D,0x62,0x65,0x72,0x20,0x6F,0x66,0x20,0x70,0x65,0x72,0x69,0x6F +,0x64,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x49,0x6E,0x74,0x65,0x67,0x65,0x72,0x3C,0x2F +,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x09,0x3C,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x32,0x3C,0x2F,0x4D,0x69,0x6E,0x69,0x6D +,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x31,0x30 +,0x30,0x30,0x30,0x30,0x3C,0x2F,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09 +,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x31,0x30,0x30,0x30 +,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x31 +,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63,0x72 +,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73 +,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F +,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56 +,0x61,0x6C,0x75,0x65,0x3E,0x31,0x34,0x3C,0x2F,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75 +,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75 +,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F +,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09 +,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09 +,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72,0x72,0x61 +,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F +,0x75,0x74,0x52,0x65,0x61,0x6C,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46 +,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4C,0x69,0x6E +,0x65,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73 +,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E +,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E +,0x74,0x73,0x3E,0x0A,0x09,0x3C,0x2F,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63 +,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x0A,0x0A,0x09,0x3C,0x21,0x2D,0x2D,0x20,0x4C,0x49,0x4E,0x45,0x41,0x52 +,0x52,0x45,0x47,0x5F,0x49,0x4E,0x54,0x45,0x52,0x43,0x45,0x50,0x54,0x20,0x2D,0x2D,0x3E,0x0A,0x09,0x3C +,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09 +,0x09,0x3C,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x4C,0x49,0x4E,0x45,0x41 +,0x52,0x52,0x45,0x47,0x5F,0x49,0x4E,0x54,0x45,0x52,0x43,0x45,0x50,0x54,0x3C,0x2F,0x41,0x62,0x62,0x72 +,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61 +,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x4C,0x69,0x6E,0x65,0x61,0x72,0x52,0x65,0x67,0x49,0x6E,0x74,0x65 +,0x72,0x63,0x65,0x70,0x74,0x3C,0x2F,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65 +,0x3E,0x0A,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F +,0x6E,0x3E,0x4C,0x69,0x6E,0x65,0x61,0x72,0x20,0x52,0x65,0x67,0x72,0x65,0x73,0x73,0x69,0x6F,0x6E,0x20 +,0x49,0x6E,0x74,0x65,0x72,0x63,0x65,0x70,0x74,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63 +,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E +,0x53,0x74,0x61,0x74,0x69,0x73,0x74,0x69,0x63,0x20,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x73,0x3C +,0x2F,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x0A,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A +,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4F,0x76,0x65,0x72,0x6C,0x61,0x70,0x3C,0x2F,0x46,0x6C +,0x61,0x67,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x52,0x65 +,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73 +,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41 +,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44 +,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x69,0x6E,0x52,0x65,0x61,0x6C,0x3C,0x2F,0x4E,0x61,0x6D +,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75 +,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69 +,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09 +,0x09,0x3C,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D +,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E +,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61 +,0x6D,0x65,0x3E,0x54,0x69,0x6D,0x65,0x20,0x50,0x65,0x72,0x69,0x6F,0x64,0x3C,0x2F,0x4E,0x61,0x6D,0x65 +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74 +,0x69,0x6F,0x6E,0x3E,0x4E,0x75,0x6D,0x62,0x65,0x72,0x20,0x6F,0x66,0x20,0x70,0x65,0x72,0x69,0x6F,0x64 +,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x49,0x6E,0x74,0x65,0x67,0x65,0x72,0x3C,0x2F,0x54 +,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x09,0x3C,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x32,0x3C,0x2F,0x4D,0x69,0x6E,0x69,0x6D,0x75 +,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x31,0x30,0x30 +,0x30,0x30,0x30,0x3C,0x2F,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C +,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x31,0x30,0x30,0x30,0x30 +,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x31,0x30 +,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65 +,0x6D,0x65,0x6E,0x74,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74 +,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x52 +,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61 +,0x6C,0x75,0x65,0x3E,0x31,0x34,0x3C,0x2F,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65 +,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74 +,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E +,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09 +,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09 +,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79 +,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75 +,0x74,0x52,0x65,0x61,0x6C,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C +,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4C,0x69,0x6E,0x65 +,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E +,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74 +,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74 +,0x73,0x3E,0x0A,0x09,0x3C,0x2F,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74 +,0x69,0x6F,0x6E,0x3E,0x0A,0x0A,0x0A,0x09,0x3C,0x21,0x2D,0x2D,0x20,0x4C,0x49,0x4E,0x45,0x41,0x52,0x52 +,0x45,0x47,0x5F,0x53,0x4C,0x4F,0x50,0x45,0x20,0x2D,0x2D,0x3E,0x0A,0x09,0x3C,0x46,0x69,0x6E,0x61,0x6E +,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x41,0x62,0x62 +,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x4C,0x49,0x4E,0x45,0x41,0x52,0x52,0x45,0x47,0x5F +,0x53,0x4C,0x4F,0x50,0x45,0x3C,0x2F,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E +,0x0A,0x09,0x09,0x3C,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x4C,0x69 +,0x6E,0x65,0x61,0x72,0x52,0x65,0x67,0x53,0x6C,0x6F,0x70,0x65,0x3C,0x2F,0x43,0x61,0x6D,0x65,0x6C,0x43 +,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73 +,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x4C,0x69,0x6E,0x65,0x61,0x72,0x20,0x52,0x65,0x67,0x72 +,0x65,0x73,0x73,0x69,0x6F,0x6E,0x20,0x53,0x6C,0x6F,0x70,0x65,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44 +,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x47,0x72,0x6F,0x75,0x70 +,0x49,0x64,0x3E,0x53,0x74,0x61,0x74,0x69,0x73,0x74,0x69,0x63,0x20,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F +,0x6E,0x73,0x3C,0x2F,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x0A,0x09,0x09,0x3C,0x52,0x65,0x71,0x75 +,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A +,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67 +,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75 +,0x62,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x69,0x6E,0x52,0x65,0x61,0x6C,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E +,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41 +,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65 +,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C +,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E +,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75 +,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65 +,0x3E,0x54,0x69,0x6D,0x65,0x20,0x50,0x65,0x72,0x69,0x6F,0x64,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F +,0x6E,0x3E,0x4E,0x75,0x6D,0x62,0x65,0x72,0x20,0x6F,0x66,0x20,0x70,0x65,0x72,0x69,0x6F,0x64,0x3C,0x2F +,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x49,0x6E,0x74,0x65,0x67,0x65,0x72,0x3C,0x2F,0x54,0x79,0x70 +,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09 +,0x3C,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x32,0x3C,0x2F,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x31,0x30,0x30,0x30,0x30 +,0x30,0x3C,0x2F,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75 +,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C +,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x31,0x30,0x30,0x30 +,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65 +,0x6E,0x74,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64 +,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x52,0x61,0x6E +,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75 +,0x65,0x3E,0x31,0x34,0x3C,0x2F,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x0A +,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72 +,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C +,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F +,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C +,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F +,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x52 +,0x65,0x61,0x6C,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67 +,0x73,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4C,0x69,0x6E,0x65,0x3C,0x2F +,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09 +,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A +,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E +,0x0A,0x09,0x3C,0x2F,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F +,0x6E,0x3E,0x0A,0x0A,0x0A,0x09,0x3C,0x21,0x2D,0x2D,0x20,0x4C,0x4E,0x20,0x2D,0x2D,0x3E,0x0A,0x09,0x3C +,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09 +,0x09,0x3C,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x4C,0x4E,0x3C,0x2F,0x41 +,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x43,0x61,0x6D,0x65 +,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x4C,0x6E,0x3C,0x2F,0x43,0x61,0x6D,0x65,0x6C,0x43 +,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73 +,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x56,0x65,0x63,0x74,0x6F,0x72,0x20,0x4C,0x6F,0x67,0x20 +,0x4E,0x61,0x74,0x75,0x72,0x61,0x6C,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69 +,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x4D,0x61 +,0x74,0x68,0x20,0x54,0x72,0x61,0x6E,0x73,0x66,0x6F,0x72,0x6D,0x3C,0x2F,0x47,0x72,0x6F,0x75,0x70,0x49 +,0x64,0x3E,0x0A,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41 +,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72 +,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79,0x3C +,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x69,0x6E,0x52 +,0x65,0x61,0x6C,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75 +,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09 +,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75 +,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75 +,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67 +,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75 +,0x62,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x52,0x65,0x61,0x6C,0x3C,0x2F,0x4E,0x61,0x6D,0x65 +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C +,0x46,0x6C,0x61,0x67,0x3E,0x4C,0x69,0x6E,0x65,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75 +,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75 +,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x3C,0x2F,0x46,0x69,0x6E,0x61,0x6E +,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x0A,0x0A,0x09,0x3C,0x21,0x2D +,0x2D,0x20,0x4C,0x4F,0x47,0x31,0x30,0x20,0x2D,0x2D,0x3E,0x0A,0x09,0x3C,0x46,0x69,0x6E,0x61,0x6E,0x63 +,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x41,0x62,0x62,0x72 +,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x4C,0x4F,0x47,0x31,0x30,0x3C,0x2F,0x41,0x62,0x62,0x72 +,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61 +,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x4C,0x6F,0x67,0x31,0x30,0x3C,0x2F,0x43,0x61,0x6D,0x65,0x6C,0x43 +,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73 +,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x56,0x65,0x63,0x74,0x6F,0x72,0x20,0x4C,0x6F,0x67,0x31 +,0x30,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E +,0x0A,0x09,0x09,0x3C,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x4D,0x61,0x74,0x68,0x20,0x54,0x72,0x61 +,0x6E,0x73,0x66,0x6F,0x72,0x6D,0x3C,0x2F,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x0A,0x09,0x09,0x3C +,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E +,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75 +,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65 +,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x69,0x6E,0x52,0x65,0x61,0x6C,0x3C,0x2F,0x4E +,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E +,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71 +,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E +,0x0A,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E +,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72 +,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65 +,0x3E,0x6F,0x75,0x74,0x52,0x65,0x61,0x6C,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4C +,0x69,0x6E,0x65,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61 +,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D +,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D +,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x3C,0x2F,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75 +,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x0A,0x0A,0x09,0x3C,0x21,0x2D,0x2D,0x20,0x4D,0x41,0x20,0x2D +,0x2D,0x3E,0x0A,0x09,0x3C,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69 +,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E +,0x4D,0x41,0x3C,0x2F,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09 +,0x3C,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x4D,0x6F,0x76,0x69,0x6E +,0x67,0x41,0x76,0x65,0x72,0x61,0x67,0x65,0x3C,0x2F,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E +,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70 +,0x74,0x69,0x6F,0x6E,0x3E,0x4D,0x6F,0x76,0x69,0x6E,0x67,0x20,0x61,0x76,0x65,0x72,0x61,0x67,0x65,0x3C +,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09 +,0x09,0x3C,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x4F,0x76,0x65,0x72,0x6C,0x61,0x70,0x20,0x53,0x74 +,0x75,0x64,0x69,0x65,0x73,0x3C,0x2F,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x0A,0x09,0x09,0x3C,0x46 +,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4F,0x76,0x65,0x72,0x6C +,0x61,0x70,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E +,0x0A,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67 +,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64 +,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C +,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54 +,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x69,0x6E,0x52,0x65,0x61 +,0x6C,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72 +,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C +,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65 +,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75 +,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x70,0x74,0x69 +,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x54,0x69,0x6D,0x65,0x20,0x50,0x65,0x72,0x69,0x6F,0x64 +,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65 +,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x4E,0x75,0x6D,0x62,0x65,0x72,0x20,0x6F,0x66,0x20 +,0x70,0x65,0x72,0x69,0x6F,0x64,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70 +,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x49,0x6E,0x74,0x65 +,0x67,0x65,0x72,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x52,0x61,0x6E,0x67 +,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x31,0x3C,0x2F +,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x61,0x78,0x69,0x6D +,0x75,0x6D,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74 +,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74 +,0x61,0x72,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64 +,0x45,0x6E,0x64,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65 +,0x64,0x45,0x6E,0x64,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65 +,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53 +,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x3C,0x2F,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x44,0x65,0x66 +,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x33,0x30,0x3C,0x2F,0x44,0x65,0x66,0x61,0x75,0x6C +,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61 +,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C +,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E +,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x4D,0x41,0x20,0x54,0x79,0x70,0x65 +,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65 +,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x54,0x79,0x70,0x65,0x20,0x6F,0x66,0x20,0x4D,0x6F +,0x76,0x69,0x6E,0x67,0x20,0x41,0x76,0x65,0x72,0x61,0x67,0x65,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44 +,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70 +,0x65,0x3E,0x4D,0x41,0x20,0x54,0x79,0x70,0x65,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x3C,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x30,0x3C,0x2F,0x44,0x65 +,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x70,0x74 +,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A +,0x09,0x09,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67 +,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67 +,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72 +,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F +,0x75,0x62,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x52,0x65,0x61,0x6C,0x3C,0x2F,0x4E,0x61,0x6D +,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09 +,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4C,0x69,0x6E,0x65,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70 +,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70 +,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x3C,0x2F,0x46,0x69,0x6E,0x61 +,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x0A,0x0A,0x09,0x3C,0x21 +,0x2D,0x2D,0x20,0x4D,0x41,0x43,0x44,0x20,0x2D,0x2D,0x3E,0x0A,0x09,0x3C,0x46,0x69,0x6E,0x61,0x6E,0x63 +,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x41,0x62,0x62,0x72 +,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x4D,0x41,0x43,0x44,0x3C,0x2F,0x41,0x62,0x62,0x72,0x65 +,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73 +,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x4D,0x61,0x63,0x64,0x3C,0x2F,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73 +,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72 +,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x4D,0x6F,0x76,0x69,0x6E,0x67,0x20,0x41,0x76,0x65,0x72,0x61,0x67 +,0x65,0x20,0x43,0x6F,0x6E,0x76,0x65,0x72,0x67,0x65,0x6E,0x63,0x65,0x2F,0x44,0x69,0x76,0x65,0x72,0x67 +,0x65,0x6E,0x63,0x65,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69 +,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x4D,0x6F,0x6D,0x65,0x6E +,0x74,0x75,0x6D,0x20,0x49,0x6E,0x64,0x69,0x63,0x61,0x74,0x6F,0x72,0x73,0x3C,0x2F,0x47,0x72,0x6F,0x75 +,0x70,0x49,0x64,0x3E,0x0A,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75 +,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75 +,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72,0x72,0x61 +,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x69 +,0x6E,0x52,0x65,0x61,0x6C,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65 +,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E +,0x0A,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72 +,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C +,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C +,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E +,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x46,0x61,0x73,0x74,0x20,0x50,0x65 +,0x72,0x69,0x6F,0x64,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x53,0x68,0x6F +,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x4E,0x75,0x6D,0x62,0x65,0x72 +,0x20,0x6F,0x66,0x20,0x70,0x65,0x72,0x69,0x6F,0x64,0x20,0x66,0x6F,0x72,0x20,0x74,0x68,0x65,0x20,0x66 +,0x61,0x73,0x74,0x20,0x4D,0x41,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70 +,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x49,0x6E,0x74,0x65 +,0x67,0x65,0x72,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x52,0x61,0x6E,0x67 +,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x32,0x3C,0x2F +,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x61,0x78,0x69,0x6D +,0x75,0x6D,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74 +,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74 +,0x61,0x72,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64 +,0x45,0x6E,0x64,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65 +,0x64,0x45,0x6E,0x64,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65 +,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53 +,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x3C,0x2F,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x44,0x65,0x66 +,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x31,0x32,0x3C,0x2F,0x44,0x65,0x66,0x61,0x75,0x6C +,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61 +,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C +,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E +,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x53,0x6C,0x6F,0x77,0x20,0x50,0x65 +,0x72,0x69,0x6F,0x64,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x53,0x68,0x6F +,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x4E,0x75,0x6D,0x62,0x65,0x72 +,0x20,0x6F,0x66,0x20,0x70,0x65,0x72,0x69,0x6F,0x64,0x20,0x66,0x6F,0x72,0x20,0x74,0x68,0x65,0x20,0x73 +,0x6C,0x6F,0x77,0x20,0x4D,0x41,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70 +,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x49,0x6E,0x74,0x65 +,0x67,0x65,0x72,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x52,0x61,0x6E,0x67 +,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x32,0x3C,0x2F +,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x61,0x78,0x69,0x6D +,0x75,0x6D,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74 +,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74 +,0x61,0x72,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64 +,0x45,0x6E,0x64,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65 +,0x64,0x45,0x6E,0x64,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65 +,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53 +,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x3C,0x2F,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x44,0x65,0x66 +,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x32,0x36,0x3C,0x2F,0x44,0x65,0x66,0x61,0x75,0x6C +,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61 +,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C +,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E +,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x53,0x69,0x67,0x6E,0x61,0x6C,0x20 +,0x50,0x65,0x72,0x69,0x6F,0x64,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x53 +,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x53,0x6D,0x6F,0x6F +,0x74,0x68,0x69,0x6E,0x67,0x20,0x66,0x6F,0x72,0x20,0x74,0x68,0x65,0x20,0x73,0x69,0x67,0x6E,0x61,0x6C +,0x20,0x6C,0x69,0x6E,0x65,0x20,0x28,0x6E,0x62,0x20,0x6F,0x66,0x20,0x70,0x65,0x72,0x69,0x6F,0x64,0x29 +,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x49,0x6E,0x74,0x65,0x67,0x65,0x72,0x3C,0x2F,0x54 +,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x09,0x3C,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x31,0x3C,0x2F,0x4D,0x69,0x6E,0x69,0x6D,0x75 +,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x31,0x30,0x30 +,0x30,0x30,0x30,0x3C,0x2F,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C +,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x31,0x30,0x30,0x30,0x30 +,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x31,0x30 +,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65 +,0x6D,0x65,0x6E,0x74,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74 +,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x52 +,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61 +,0x6C,0x75,0x65,0x3E,0x39,0x3C,0x2F,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E +,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41 +,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61 +,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C +,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09 +,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79,0x3C +,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74 +,0x4D,0x41,0x43,0x44,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61 +,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4C,0x69,0x6E,0x65,0x3C +,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A +,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E +,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72 +,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65 +,0x3E,0x6F,0x75,0x74,0x4D,0x41,0x43,0x44,0x53,0x69,0x67,0x6E,0x61,0x6C,0x3C,0x2F,0x4E,0x61,0x6D,0x65 +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C +,0x46,0x6C,0x61,0x67,0x3E,0x44,0x61,0x73,0x68,0x65,0x64,0x20,0x4C,0x69,0x6E,0x65,0x3C,0x2F,0x46,0x6C +,0x61,0x67,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09 +,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09 +,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79 +,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75 +,0x74,0x4D,0x41,0x43,0x44,0x48,0x69,0x73,0x74,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E +,0x48,0x69,0x73,0x74,0x6F,0x67,0x72,0x61,0x6D,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75 +,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75 +,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x3C,0x2F,0x46,0x69,0x6E,0x61,0x6E +,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x0A,0x0A,0x09,0x3C,0x21,0x2D +,0x2D,0x20,0x4D,0x41,0x43,0x44,0x45,0x58,0x54,0x20,0x2D,0x2D,0x3E,0x0A,0x09,0x3C,0x46,0x69,0x6E,0x61 +,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x41,0x62 +,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x4D,0x41,0x43,0x44,0x45,0x58,0x54,0x3C,0x2F +,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x43,0x61,0x6D +,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x4D,0x61,0x63,0x64,0x45,0x78,0x74,0x3C,0x2F +,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x3C,0x53,0x68 +,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x4D,0x41,0x43,0x44,0x20 +,0x77,0x69,0x74,0x68,0x20,0x63,0x6F,0x6E,0x74,0x72,0x6F,0x6C,0x6C,0x61,0x62,0x6C,0x65,0x20,0x4D,0x41 +,0x20,0x74,0x79,0x70,0x65,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74 +,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x4D,0x6F,0x6D,0x65 +,0x6E,0x74,0x75,0x6D,0x20,0x49,0x6E,0x64,0x69,0x63,0x61,0x74,0x6F,0x72,0x73,0x3C,0x2F,0x47,0x72,0x6F +,0x75,0x70,0x49,0x64,0x3E,0x0A,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70 +,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71 +,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72,0x72 +,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E +,0x69,0x6E,0x52,0x65,0x61,0x6C,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52 +,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74 +,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41 +,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61 +,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09 +,0x3C,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65 +,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x46,0x61,0x73,0x74,0x20,0x50 +,0x65,0x72,0x69,0x6F,0x64,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x53,0x68 +,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x4E,0x75,0x6D,0x62,0x65 +,0x72,0x20,0x6F,0x66,0x20,0x70,0x65,0x72,0x69,0x6F,0x64,0x20,0x66,0x6F,0x72,0x20,0x74,0x68,0x65,0x20 +,0x66,0x61,0x73,0x74,0x20,0x4D,0x41,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69 +,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x49,0x6E,0x74 +,0x65,0x67,0x65,0x72,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x52,0x61,0x6E +,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x32,0x3C +,0x2F,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x61,0x78,0x69 +,0x6D,0x75,0x6D,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72 +,0x74,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53 +,0x74,0x61,0x72,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65 +,0x64,0x45,0x6E,0x64,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74 +,0x65,0x64,0x45,0x6E,0x64,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74 +,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F +,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x3C,0x2F,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x44,0x65 +,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x31,0x32,0x3C,0x2F,0x44,0x65,0x66,0x61,0x75 +,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E +,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09 +,0x3C,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65 +,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x46,0x61,0x73,0x74,0x20,0x4D +,0x41,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44 +,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x54,0x79,0x70,0x65,0x20,0x6F,0x66,0x20,0x4D +,0x6F,0x76,0x69,0x6E,0x67,0x20,0x41,0x76,0x65,0x72,0x61,0x67,0x65,0x20,0x66,0x6F,0x72,0x20,0x66,0x61 +,0x73,0x74,0x20,0x4D,0x41,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74 +,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x4D,0x41,0x20,0x54,0x79 +,0x70,0x65,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x44,0x65,0x66,0x61,0x75 +,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x30,0x3C,0x2F,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61 +,0x6C,0x75,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E +,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x70,0x74 +,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x53,0x6C,0x6F,0x77,0x20,0x50,0x65,0x72,0x69,0x6F +,0x64,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44 +,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x4E,0x75,0x6D,0x62,0x65,0x72,0x20,0x6F,0x66 +,0x20,0x70,0x65,0x72,0x69,0x6F,0x64,0x20,0x66,0x6F,0x72,0x20,0x74,0x68,0x65,0x20,0x73,0x6C,0x6F,0x77 +,0x20,0x4D,0x41,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F +,0x6E,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x49,0x6E,0x74,0x65,0x67,0x65,0x72 +,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x32,0x3C,0x2F,0x4D,0x69,0x6E +,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E +,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x31,0x30 +,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74 +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64 +,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E +,0x64,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E +,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67 +,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x3C,0x2F,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x44,0x65,0x66,0x61,0x75,0x6C +,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x32,0x36,0x3C,0x2F,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61 +,0x6C,0x75,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E +,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x70,0x74 +,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x53,0x6C,0x6F,0x77,0x20,0x4D,0x41,0x3C,0x2F,0x4E +,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72 +,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x54,0x79,0x70,0x65,0x20,0x6F,0x66,0x20,0x4D,0x6F,0x76,0x69,0x6E +,0x67,0x20,0x41,0x76,0x65,0x72,0x61,0x67,0x65,0x20,0x66,0x6F,0x72,0x20,0x73,0x6C,0x6F,0x77,0x20,0x4D +,0x41,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x4D,0x41,0x20,0x54,0x79,0x70,0x65,0x3C,0x2F +,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61 +,0x6C,0x75,0x65,0x3E,0x30,0x3C,0x2F,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E +,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41 +,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61 +,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x53,0x69,0x67,0x6E,0x61,0x6C,0x20,0x50,0x65,0x72,0x69,0x6F,0x64,0x3C +,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73 +,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x53,0x6D,0x6F,0x6F,0x74,0x68,0x69,0x6E,0x67,0x20,0x66 +,0x6F,0x72,0x20,0x74,0x68,0x65,0x20,0x73,0x69,0x67,0x6E,0x61,0x6C,0x20,0x6C,0x69,0x6E,0x65,0x20,0x28 +,0x6E,0x62,0x20,0x6F,0x66,0x20,0x70,0x65,0x72,0x69,0x6F,0x64,0x29,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74 +,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79 +,0x70,0x65,0x3E,0x49,0x6E,0x74,0x65,0x67,0x65,0x72,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x3C,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x69,0x6E,0x69 +,0x6D,0x75,0x6D,0x3E,0x31,0x3C,0x2F,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x09,0x3C,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x4D,0x61 +,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74 +,0x65,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67 +,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75 +,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53 +,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53 +,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x31,0x30 +,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65 +,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x3C,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x39,0x3C,0x2F +,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F +,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74 +,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41 +,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x53 +,0x69,0x67,0x6E,0x61,0x6C,0x20,0x4D,0x41,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x54,0x79 +,0x70,0x65,0x20,0x6F,0x66,0x20,0x4D,0x6F,0x76,0x69,0x6E,0x67,0x20,0x41,0x76,0x65,0x72,0x61,0x67,0x65 +,0x20,0x66,0x6F,0x72,0x20,0x73,0x69,0x67,0x6E,0x61,0x6C,0x20,0x6C,0x69,0x6E,0x65,0x3C,0x2F,0x53,0x68 +,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x3C,0x54,0x79,0x70,0x65,0x3E,0x4D,0x41,0x20,0x54,0x79,0x70,0x65,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x3C,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x30 +,0x3C,0x2F,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C +,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65 +,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75 +,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75 +,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70 +,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70 +,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65 +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x4D,0x41,0x43,0x44,0x3C +,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4C,0x69,0x6E,0x65,0x3C,0x2F,0x46,0x6C,0x61,0x67 +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F +,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C +,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F +,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x4D +,0x41,0x43,0x44,0x53,0x69,0x67,0x6E,0x61,0x6C,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E +,0x44,0x61,0x73,0x68,0x65,0x64,0x20,0x4C,0x69,0x6E,0x65,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74 +,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x75,0x74 +,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79 +,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70 +,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x4D,0x41,0x43,0x44 +,0x48,0x69,0x73,0x74,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61 +,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x48,0x69,0x73,0x74,0x6F +,0x67,0x72,0x61,0x6D,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C +,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75 +,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75 +,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x3C,0x2F,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46 +,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x0A,0x0A,0x09,0x3C,0x21,0x2D,0x2D,0x20,0x4D,0x41,0x43 +,0x44,0x46,0x49,0x58,0x20,0x2D,0x2D,0x3E,0x0A,0x09,0x3C,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C +,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x41,0x62,0x62,0x72,0x65,0x76,0x69 +,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x4D,0x41,0x43,0x44,0x46,0x49,0x58,0x3C,0x2F,0x41,0x62,0x62,0x72,0x65 +,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73 +,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x4D,0x61,0x63,0x64,0x46,0x69,0x78,0x3C,0x2F,0x43,0x61,0x6D,0x65,0x6C +,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65 +,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x4D,0x6F,0x76,0x69,0x6E,0x67,0x20,0x41,0x76,0x65 +,0x72,0x61,0x67,0x65,0x20,0x43,0x6F,0x6E,0x76,0x65,0x72,0x67,0x65,0x6E,0x63,0x65,0x2F,0x44,0x69,0x76 +,0x65,0x72,0x67,0x65,0x6E,0x63,0x65,0x20,0x46,0x69,0x78,0x20,0x31,0x32,0x2F,0x32,0x36,0x3C,0x2F,0x53 +,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C +,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x4D,0x6F,0x6D,0x65,0x6E,0x74,0x75,0x6D,0x20,0x49,0x6E,0x64 +,0x69,0x63,0x61,0x74,0x6F,0x72,0x73,0x3C,0x2F,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x0A,0x09,0x09 +,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65 +,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70 +,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70 +,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65 +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x69,0x6E,0x52,0x65,0x61,0x6C,0x3C,0x2F +,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49 +,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x52,0x65 +,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73 +,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72 +,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61 +,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x53,0x69,0x67,0x6E,0x61,0x6C,0x20,0x50,0x65,0x72,0x69,0x6F,0x64,0x3C +,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73 +,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x53,0x6D,0x6F,0x6F,0x74,0x68,0x69,0x6E,0x67,0x20,0x66 +,0x6F,0x72,0x20,0x74,0x68,0x65,0x20,0x73,0x69,0x67,0x6E,0x61,0x6C,0x20,0x6C,0x69,0x6E,0x65,0x20,0x28 +,0x6E,0x62,0x20,0x6F,0x66,0x20,0x70,0x65,0x72,0x69,0x6F,0x64,0x29,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74 +,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79 +,0x70,0x65,0x3E,0x49,0x6E,0x74,0x65,0x67,0x65,0x72,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x3C,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x69,0x6E,0x69 +,0x6D,0x75,0x6D,0x3E,0x31,0x3C,0x2F,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x09,0x3C,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x4D,0x61 +,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74 +,0x65,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67 +,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75 +,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53 +,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53 +,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x31,0x30 +,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65 +,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x3C,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x39,0x3C,0x2F +,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F +,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74 +,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41 +,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41 +,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74 +,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E +,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x4D,0x41,0x43,0x44,0x3C,0x2F,0x4E +,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4C,0x69,0x6E,0x65,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x75 +,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x75 +,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54 +,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79 +,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x4D,0x41,0x43 +,0x44,0x53,0x69,0x67,0x6E,0x61,0x6C,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C +,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x44,0x61 +,0x73,0x68,0x65,0x64,0x20,0x4C,0x69,0x6E,0x65,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75 +,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75 +,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65 +,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x4D,0x41,0x43,0x44,0x48,0x69 +,0x73,0x74,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73 +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x48,0x69,0x73,0x74,0x6F,0x67,0x72 +,0x61,0x6D,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67 +,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65 +,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65 +,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x3C,0x2F,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E +,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x0A,0x0A,0x09,0x3C,0x21,0x2D,0x2D,0x20,0x4D,0x41,0x4D,0x41,0x20 +,0x2D,0x2D,0x3E,0x0A,0x09,0x3C,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74 +,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E +,0x3E,0x4D,0x41,0x4D,0x41,0x3C,0x2F,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E +,0x0A,0x09,0x09,0x3C,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x4D,0x61 +,0x6D,0x61,0x3C,0x2F,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09 +,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x4D +,0x45,0x53,0x41,0x20,0x41,0x64,0x61,0x70,0x74,0x69,0x76,0x65,0x20,0x4D,0x6F,0x76,0x69,0x6E,0x67,0x20 +,0x41,0x76,0x65,0x72,0x61,0x67,0x65,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69 +,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x4F,0x76 +,0x65,0x72,0x6C,0x61,0x70,0x20,0x53,0x74,0x75,0x64,0x69,0x65,0x73,0x3C,0x2F,0x47,0x72,0x6F,0x75,0x70 +,0x49,0x64,0x3E,0x0A,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x46,0x6C +,0x61,0x67,0x3E,0x4F,0x76,0x65,0x72,0x6C,0x61,0x70,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09 +,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x55,0x6E,0x73,0x74,0x61,0x62,0x6C,0x65,0x20,0x50,0x65,0x72,0x69 +,0x6F,0x64,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E +,0x0A,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67 +,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64 +,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C +,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54 +,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x69,0x6E,0x52,0x65,0x61 +,0x6C,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72 +,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C +,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65 +,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75 +,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x70,0x74,0x69 +,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x46,0x61,0x73,0x74,0x20,0x4C,0x69,0x6D,0x69,0x74,0x3C +,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73 +,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x55,0x70,0x70,0x65,0x72,0x20,0x6C,0x69,0x6D,0x69,0x74 +,0x20,0x75,0x73,0x65,0x20,0x69,0x6E,0x20,0x74,0x68,0x65,0x20,0x61,0x64,0x61,0x70,0x74,0x69,0x76,0x65 +,0x20,0x61,0x6C,0x67,0x6F,0x72,0x69,0x74,0x68,0x6D,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73 +,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E +,0x44,0x6F,0x75,0x62,0x6C,0x65,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x52 +,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E +,0x31,0x2E,0x30,0x30,0x30,0x30,0x30,0x30,0x65,0x2D,0x32,0x3C,0x2F,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x39,0x2E,0x39,0x30 +,0x30,0x30,0x30,0x30,0x65,0x2D,0x31,0x3C,0x2F,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x09,0x3C,0x50,0x72,0x65,0x63,0x69,0x73,0x69,0x6F,0x6E,0x3E,0x32,0x3C,0x2F,0x50,0x72,0x65 +,0x63,0x69,0x73,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73 +,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x32,0x2E,0x31,0x30,0x30,0x30,0x30,0x30,0x65,0x2D,0x31 +,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x38,0x2E,0x30 +,0x30,0x30,0x30,0x30,0x30,0x65,0x2D,0x31,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x45 +,0x6E,0x64,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49 +,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x31,0x2E,0x30,0x30,0x30,0x30,0x30,0x30,0x65,0x2D,0x32 +,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74 +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C +,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x35,0x2E,0x30,0x30,0x30,0x30,0x30 +,0x30,0x65,0x2D,0x31,0x3C,0x2F,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x0A +,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72 +,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C +,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C +,0x4E,0x61,0x6D,0x65,0x3E,0x53,0x6C,0x6F,0x77,0x20,0x4C,0x69,0x6D,0x69,0x74,0x3C,0x2F,0x4E,0x61,0x6D +,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70 +,0x74,0x69,0x6F,0x6E,0x3E,0x4C,0x6F,0x77,0x65,0x72,0x20,0x6C,0x69,0x6D,0x69,0x74,0x20,0x75,0x73,0x65 +,0x20,0x69,0x6E,0x20,0x74,0x68,0x65,0x20,0x61,0x64,0x61,0x70,0x74,0x69,0x76,0x65,0x20,0x61,0x6C,0x67 +,0x6F,0x72,0x69,0x74,0x68,0x6D,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70 +,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62 +,0x6C,0x65,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x52,0x61,0x6E,0x67,0x65 +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x31,0x2E,0x30,0x30 +,0x30,0x30,0x30,0x30,0x65,0x2D,0x32,0x3C,0x2F,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x09,0x3C,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x39,0x2E,0x39,0x30,0x30,0x30,0x30,0x30 +,0x65,0x2D,0x31,0x3C,0x2F,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C +,0x50,0x72,0x65,0x63,0x69,0x73,0x69,0x6F,0x6E,0x3E,0x32,0x3C,0x2F,0x50,0x72,0x65,0x63,0x69,0x73,0x69 +,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53 +,0x74,0x61,0x72,0x74,0x3E,0x31,0x2E,0x30,0x30,0x30,0x30,0x30,0x30,0x65,0x2D,0x32,0x3C,0x2F,0x53,0x75 +,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C +,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x36,0x2E,0x30,0x30,0x30,0x30,0x30 +,0x30,0x65,0x2D,0x31,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65 +,0x6D,0x65,0x6E,0x74,0x3E,0x31,0x2E,0x30,0x30,0x30,0x30,0x30,0x30,0x65,0x2D,0x32,0x3C,0x2F,0x53,0x75 +,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x3C,0x2F,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x44,0x65,0x66,0x61 +,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x35,0x2E,0x30,0x30,0x30,0x30,0x30,0x30,0x65,0x2D,0x32 +,0x3C,0x2F,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C +,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65 +,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75 +,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75 +,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70 +,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70 +,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65 +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x4D,0x41,0x4D,0x41,0x3C +,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4C,0x69,0x6E,0x65,0x3C,0x2F,0x46,0x6C,0x61,0x67 +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F +,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C +,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F +,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x46 +,0x41,0x4D,0x41,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67 +,0x73,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x44,0x61,0x73,0x68,0x65,0x64 +,0x20,0x4C,0x69,0x6E,0x65,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x46 +,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67 +,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67 +,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x3C,0x2F,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C +,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x0A,0x0A,0x09,0x3C,0x21,0x2D,0x2D,0x20,0x4D,0x41 +,0x56,0x50,0x20,0x2D,0x2D,0x3E,0x0A,0x09,0x3C,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75 +,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74 +,0x69,0x6F,0x6E,0x3E,0x4D,0x41,0x56,0x50,0x3C,0x2F,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69 +,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65 +,0x3E,0x4D,0x6F,0x76,0x69,0x6E,0x67,0x41,0x76,0x65,0x72,0x61,0x67,0x65,0x56,0x61,0x72,0x69,0x61,0x62 +,0x6C,0x65,0x50,0x65,0x72,0x69,0x6F,0x64,0x3C,0x2F,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E +,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70 +,0x74,0x69,0x6F,0x6E,0x3E,0x4D,0x6F,0x76,0x69,0x6E,0x67,0x20,0x61,0x76,0x65,0x72,0x61,0x67,0x65,0x20 +,0x77,0x69,0x74,0x68,0x20,0x76,0x61,0x72,0x69,0x61,0x62,0x6C,0x65,0x20,0x70,0x65,0x72,0x69,0x6F,0x64 +,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A +,0x09,0x09,0x3C,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x4F,0x76,0x65,0x72,0x6C,0x61,0x70,0x20,0x53 +,0x74,0x75,0x64,0x69,0x65,0x73,0x3C,0x2F,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x0A,0x09,0x09,0x3C +,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4F,0x76,0x65,0x72 +,0x6C,0x61,0x70,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73 +,0x3E,0x0A,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72 +,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65 +,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F +,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x69,0x6E,0x52,0x65 +,0x61,0x6C,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69 +,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09 +,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D +,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C +,0x65,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C +,0x4E,0x61,0x6D,0x65,0x3E,0x69,0x6E,0x50,0x65,0x72,0x69,0x6F,0x64,0x73,0x3C,0x2F,0x4E,0x61,0x6D,0x65 +,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74 +,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72 +,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09 +,0x3C,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65 +,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70 +,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D +,0x65,0x3E,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x20,0x50,0x65,0x72,0x69,0x6F,0x64,0x3C,0x2F,0x4E,0x61 +,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69 +,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x56,0x61,0x6C,0x75,0x65,0x20,0x6C,0x65,0x73,0x73,0x20,0x74,0x68,0x61 +,0x6E,0x20,0x6D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x20,0x77,0x69,0x6C,0x6C,0x20,0x62,0x65,0x20,0x63,0x68 +,0x61,0x6E,0x67,0x65,0x64,0x20,0x74,0x6F,0x20,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x20,0x70,0x65,0x72 +,0x69,0x6F,0x64,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F +,0x6E,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x49,0x6E,0x74,0x65,0x67,0x65,0x72 +,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x32,0x3C,0x2F,0x4D,0x69,0x6E +,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E +,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x31,0x30 +,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74 +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64 +,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E +,0x64,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E +,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67 +,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x3C,0x2F,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x44,0x65,0x66,0x61,0x75,0x6C +,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x32,0x3C,0x2F,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C +,0x75,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70 +,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x70,0x74,0x69 +,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x20,0x50,0x65,0x72 +,0x69,0x6F,0x64,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72 +,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x56,0x61,0x6C,0x75,0x65,0x20,0x68 +,0x69,0x67,0x68,0x65,0x72,0x20,0x74,0x68,0x61,0x6E,0x20,0x6D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x20,0x77 +,0x69,0x6C,0x6C,0x20,0x62,0x65,0x20,0x63,0x68,0x61,0x6E,0x67,0x65,0x64,0x20,0x74,0x6F,0x20,0x4D,0x61 +,0x78,0x69,0x6D,0x75,0x6D,0x20,0x70,0x65,0x72,0x69,0x6F,0x64,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44 +,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70 +,0x65,0x3E,0x49,0x6E,0x74,0x65,0x67,0x65,0x72,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x3C,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x69,0x6E,0x69,0x6D +,0x75,0x6D,0x3E,0x32,0x3C,0x2F,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09 +,0x3C,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x4D,0x61,0x78 +,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65 +,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65 +,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67 +,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75 +,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75 +,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x31,0x30,0x30 +,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D +,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x3C,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x33,0x30,0x3C,0x2F +,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F +,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74 +,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41 +,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x4D +,0x41,0x20,0x54,0x79,0x70,0x65,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x53 +,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x54,0x79,0x70,0x65 +,0x20,0x6F,0x66,0x20,0x4D,0x6F,0x76,0x69,0x6E,0x67,0x20,0x41,0x76,0x65,0x72,0x61,0x67,0x65,0x3C,0x2F +,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x4D,0x41,0x20,0x54,0x79,0x70,0x65,0x3C,0x2F,0x54,0x79,0x70 +,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65 +,0x3E,0x30,0x3C,0x2F,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x0A,0x09,0x09 +,0x09,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75 +,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E +,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x75,0x74 +,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x75 +,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54 +,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79 +,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x52,0x65,0x61 +,0x6C,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4C,0x69,0x6E,0x65,0x3C,0x2F,0x46,0x6C +,0x61,0x67,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09 +,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09 +,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09 +,0x3C,0x2F,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E +,0x0A,0x0A,0x0A,0x09,0x3C,0x21,0x2D,0x2D,0x20,0x4D,0x41,0x58,0x20,0x2D,0x2D,0x3E,0x0A,0x09,0x3C,0x46 +,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09 +,0x3C,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x4D,0x41,0x58,0x3C,0x2F,0x41 +,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x43,0x61,0x6D,0x65 +,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x4D,0x61,0x78,0x3C,0x2F,0x43,0x61,0x6D,0x65,0x6C +,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65 +,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x48,0x69,0x67,0x68,0x65,0x73,0x74,0x20,0x76,0x61 +,0x6C,0x75,0x65,0x20,0x6F,0x76,0x65,0x72,0x20,0x61,0x20,0x73,0x70,0x65,0x63,0x69,0x66,0x69,0x65,0x64 +,0x20,0x70,0x65,0x72,0x69,0x6F,0x64,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69 +,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x4D,0x61 +,0x74,0x68,0x20,0x4F,0x70,0x65,0x72,0x61,0x74,0x6F,0x72,0x73,0x3C,0x2F,0x47,0x72,0x6F,0x75,0x70,0x49 +,0x64,0x3E,0x0A,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61 +,0x67,0x3E,0x4F,0x76,0x65,0x72,0x6C,0x61,0x70,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x3C +,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49 +,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52 +,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74 +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41 +,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D +,0x65,0x3E,0x69,0x6E,0x52,0x65,0x61,0x6C,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C +,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65 +,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75 +,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x70,0x74,0x69,0x6F +,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09 +,0x09,0x09,0x3C,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75 +,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x54,0x69,0x6D,0x65 +,0x20,0x50,0x65,0x72,0x69,0x6F,0x64,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C +,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x4E,0x75,0x6D +,0x62,0x65,0x72,0x20,0x6F,0x66,0x20,0x70,0x65,0x72,0x69,0x6F,0x64,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74 +,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79 +,0x70,0x65,0x3E,0x49,0x6E,0x74,0x65,0x67,0x65,0x72,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x3C,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x69,0x6E,0x69 +,0x6D,0x75,0x6D,0x3E,0x32,0x3C,0x2F,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x09,0x3C,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x4D,0x61 +,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74 +,0x65,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67 +,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75 +,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53 +,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53 +,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x31,0x30 +,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65 +,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x3C,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x33,0x30,0x3C +,0x2F,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F +,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E +,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74 +,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74 +,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75 +,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65 +,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x52,0x65,0x61,0x6C,0x3C,0x2F +,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4C,0x69,0x6E,0x65,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F +,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F +,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x3C,0x2F,0x46 +,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x0A,0x0A +,0x09,0x3C,0x21,0x2D,0x2D,0x20,0x4D,0x41,0x58,0x49,0x4E,0x44,0x45,0x58,0x20,0x2D,0x2D,0x3E,0x0A,0x09 +,0x3C,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A +,0x09,0x09,0x3C,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x4D,0x41,0x58,0x49 +,0x4E,0x44,0x45,0x58,0x3C,0x2F,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x0A +,0x09,0x09,0x3C,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x4D,0x61,0x78 +,0x49,0x6E,0x64,0x65,0x78,0x3C,0x2F,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65 +,0x3E,0x0A,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F +,0x6E,0x3E,0x49,0x6E,0x64,0x65,0x78,0x20,0x6F,0x66,0x20,0x68,0x69,0x67,0x68,0x65,0x73,0x74,0x20,0x76 +,0x61,0x6C,0x75,0x65,0x20,0x6F,0x76,0x65,0x72,0x20,0x61,0x20,0x73,0x70,0x65,0x63,0x69,0x66,0x69,0x65 +,0x64,0x20,0x70,0x65,0x72,0x69,0x6F,0x64,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72 +,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x4D +,0x61,0x74,0x68,0x20,0x4F,0x70,0x65,0x72,0x61,0x74,0x6F,0x72,0x73,0x3C,0x2F,0x47,0x72,0x6F,0x75,0x70 +,0x49,0x64,0x3E,0x0A,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74 +,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69 +,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79 +,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x69,0x6E +,0x52,0x65,0x61,0x6C,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71 +,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A +,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67 +,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49 +,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F +,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74 +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x54,0x69,0x6D,0x65,0x20,0x50,0x65,0x72 +,0x69,0x6F,0x64,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72 +,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x4E,0x75,0x6D,0x62,0x65,0x72,0x20 +,0x6F,0x66,0x20,0x70,0x65,0x72,0x69,0x6F,0x64,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63 +,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x49 +,0x6E,0x74,0x65,0x67,0x65,0x72,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x52 +,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E +,0x32,0x3C,0x2F,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x61 +,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x4D,0x61,0x78,0x69,0x6D,0x75 +,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74 +,0x61,0x72,0x74,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65 +,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73 +,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65 +,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65 +,0x73,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x31,0x30,0x30,0x30,0x30,0x30 +,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74 +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C +,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x33,0x30,0x3C,0x2F,0x44,0x65,0x66 +,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x70,0x74,0x69 +,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09 +,0x09,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75 +,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75 +,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67 +,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x49,0x6E,0x74 +,0x65,0x67,0x65,0x72,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x49,0x6E,0x74,0x65,0x67,0x65,0x72,0x3C,0x2F +,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4C,0x69,0x6E,0x65,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F +,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F +,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x3C,0x2F,0x46 +,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x0A,0x0A +,0x09,0x3C,0x21,0x2D,0x2D,0x20,0x4D,0x45,0x44,0x50,0x52,0x49,0x43,0x45,0x20,0x2D,0x2D,0x3E,0x0A,0x09 +,0x3C,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A +,0x09,0x09,0x3C,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x4D,0x45,0x44,0x50 +,0x52,0x49,0x43,0x45,0x3C,0x2F,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x0A +,0x09,0x09,0x3C,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x4D,0x65,0x64 +,0x50,0x72,0x69,0x63,0x65,0x3C,0x2F,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65 +,0x3E,0x0A,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F +,0x6E,0x3E,0x4D,0x65,0x64,0x69,0x61,0x6E,0x20,0x50,0x72,0x69,0x63,0x65,0x3C,0x2F,0x53,0x68,0x6F,0x72 +,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x47,0x72,0x6F +,0x75,0x70,0x49,0x64,0x3E,0x50,0x72,0x69,0x63,0x65,0x20,0x54,0x72,0x61,0x6E,0x73,0x66,0x6F,0x72,0x6D +,0x3C,0x2F,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x0A,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E +,0x0A,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4F,0x76,0x65,0x72,0x6C,0x61,0x70,0x3C,0x2F,0x46 +,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x52 +,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74 +,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74 +,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E +,0x48,0x69,0x67,0x68,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D +,0x65,0x3E,0x48,0x69,0x67,0x68,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52 +,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74 +,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41 +,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x4C +,0x6F,0x77,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E +,0x4C,0x6F,0x77,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75 +,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09 +,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75 +,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75 +,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67 +,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75 +,0x62,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x52,0x65,0x61,0x6C,0x3C,0x2F,0x4E,0x61,0x6D,0x65 +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C +,0x46,0x6C,0x61,0x67,0x3E,0x4C,0x69,0x6E,0x65,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75 +,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75 +,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x3C,0x2F,0x46,0x69,0x6E,0x61,0x6E +,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x0A,0x0A,0x09,0x3C,0x21,0x2D +,0x2D,0x20,0x4D,0x46,0x49,0x20,0x2D,0x2D,0x3E,0x0A,0x09,0x3C,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61 +,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x41,0x62,0x62,0x72,0x65,0x76 +,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x4D,0x46,0x49,0x3C,0x2F,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61 +,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61 +,0x6D,0x65,0x3E,0x4D,0x66,0x69,0x3C,0x2F,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D +,0x65,0x3E,0x0A,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69 +,0x6F,0x6E,0x3E,0x4D,0x6F,0x6E,0x65,0x79,0x20,0x46,0x6C,0x6F,0x77,0x20,0x49,0x6E,0x64,0x65,0x78,0x3C +,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09 +,0x09,0x3C,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x4D,0x6F,0x6D,0x65,0x6E,0x74,0x75,0x6D,0x20,0x49 +,0x6E,0x64,0x69,0x63,0x61,0x74,0x6F,0x72,0x73,0x3C,0x2F,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x0A +,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x55 +,0x6E,0x73,0x74,0x61,0x62,0x6C,0x65,0x20,0x50,0x65,0x72,0x69,0x6F,0x64,0x3C,0x2F,0x46,0x6C,0x61,0x67 +,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x52,0x65,0x71,0x75 +,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A +,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67 +,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x48,0x69,0x67 +,0x68,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x48 +,0x69,0x67,0x68,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75 +,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09 +,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75 +,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x4C,0x6F,0x77,0x3C +,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x4C,0x6F,0x77 +,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65 +,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C +,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E +,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x43,0x6C,0x6F,0x73,0x65,0x3C,0x2F +,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x43,0x6C,0x6F,0x73 +,0x65,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72 +,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09 +,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65 +,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x56,0x6F,0x6C,0x75,0x6D,0x65 +,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x56,0x6F +,0x6C,0x75,0x6D,0x65,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71 +,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A +,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67 +,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49 +,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F +,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74 +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x54,0x69,0x6D,0x65,0x20,0x50,0x65,0x72 +,0x69,0x6F,0x64,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72 +,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x4E,0x75,0x6D,0x62,0x65,0x72,0x20 +,0x6F,0x66,0x20,0x70,0x65,0x72,0x69,0x6F,0x64,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63 +,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x49 +,0x6E,0x74,0x65,0x67,0x65,0x72,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x52 +,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E +,0x32,0x3C,0x2F,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x61 +,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x4D,0x61,0x78,0x69,0x6D,0x75 +,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74 +,0x61,0x72,0x74,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65 +,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73 +,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65 +,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65 +,0x73,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x31,0x30,0x30,0x30,0x30,0x30 +,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74 +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C +,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x31,0x34,0x3C,0x2F,0x44,0x65,0x66 +,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x70,0x74,0x69 +,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09 +,0x09,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75 +,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75 +,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67 +,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75 +,0x62,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x52,0x65,0x61,0x6C,0x3C,0x2F,0x4E,0x61,0x6D,0x65 +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C +,0x46,0x6C,0x61,0x67,0x3E,0x4C,0x69,0x6E,0x65,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75 +,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75 +,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x3C,0x2F,0x46,0x69,0x6E,0x61,0x6E +,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x0A,0x0A,0x09,0x3C,0x21,0x2D +,0x2D,0x20,0x4D,0x49,0x44,0x50,0x4F,0x49,0x4E,0x54,0x20,0x2D,0x2D,0x3E,0x0A,0x09,0x3C,0x46,0x69,0x6E +,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x41 +,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x4D,0x49,0x44,0x50,0x4F,0x49,0x4E,0x54 +,0x3C,0x2F,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x43 +,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x4D,0x69,0x64,0x50,0x6F,0x69,0x6E +,0x74,0x3C,0x2F,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09 +,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x4D,0x69 +,0x64,0x50,0x6F,0x69,0x6E,0x74,0x20,0x6F,0x76,0x65,0x72,0x20,0x70,0x65,0x72,0x69,0x6F,0x64,0x3C,0x2F +,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09 +,0x3C,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x4F,0x76,0x65,0x72,0x6C,0x61,0x70,0x20,0x53,0x74,0x75 +,0x64,0x69,0x65,0x73,0x3C,0x2F,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x0A,0x09,0x09,0x3C,0x46,0x6C +,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4F,0x76,0x65,0x72,0x6C,0x61 +,0x70,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A +,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75 +,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49 +,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54 +,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79 +,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x69,0x6E,0x52,0x65,0x61,0x6C +,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65 +,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F +,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E +,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74 +,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x70,0x74,0x69,0x6F +,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x54,0x69,0x6D,0x65,0x20,0x50,0x65,0x72,0x69,0x6F,0x64,0x3C +,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73 +,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x4E,0x75,0x6D,0x62,0x65,0x72,0x20,0x6F,0x66,0x20,0x70 +,0x65,0x72,0x69,0x6F,0x64,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74 +,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x49,0x6E,0x74,0x65,0x67 +,0x65,0x72,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x52,0x61,0x6E,0x67,0x65 +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x32,0x3C,0x2F,0x4D +,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x61,0x78,0x69,0x6D,0x75 +,0x6D,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74,0x3E +,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61 +,0x72,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x45 +,0x6E,0x64,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64 +,0x45,0x6E,0x64,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64 +,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75 +,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x3C,0x2F,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x44,0x65,0x66,0x61 +,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x31,0x34,0x3C,0x2F,0x44,0x65,0x66,0x61,0x75,0x6C,0x74 +,0x56,0x61,0x6C,0x75,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C +,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F +,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74 +,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74 +,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E +,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20 +,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61 +,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x52,0x65,0x61,0x6C,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67 +,0x3E,0x4C,0x69,0x6E,0x65,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x46 +,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67 +,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67 +,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x3C,0x2F,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C +,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x0A,0x0A,0x09,0x3C,0x21,0x2D,0x2D,0x20,0x4D,0x49 +,0x44,0x50,0x52,0x49,0x43,0x45,0x20,0x2D,0x2D,0x3E,0x0A,0x09,0x3C,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69 +,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x41,0x62,0x62,0x72,0x65 +,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x4D,0x49,0x44,0x50,0x52,0x49,0x43,0x45,0x3C,0x2F,0x41,0x62 +,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x43,0x61,0x6D,0x65,0x6C +,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x4D,0x69,0x64,0x50,0x72,0x69,0x63,0x65,0x3C,0x2F,0x43 +,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x3C,0x53,0x68,0x6F +,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x4D,0x69,0x64,0x70,0x6F,0x69 +,0x6E,0x74,0x20,0x50,0x72,0x69,0x63,0x65,0x20,0x6F,0x76,0x65,0x72,0x20,0x70,0x65,0x72,0x69,0x6F,0x64 +,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A +,0x09,0x09,0x3C,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x4F,0x76,0x65,0x72,0x6C,0x61,0x70,0x20,0x53 +,0x74,0x75,0x64,0x69,0x65,0x73,0x3C,0x2F,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x0A,0x09,0x09,0x3C +,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4F,0x76,0x65,0x72 +,0x6C,0x61,0x70,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73 +,0x3E,0x0A,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72 +,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65 +,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x3C,0x54,0x79,0x70,0x65,0x3E,0x48,0x69,0x67,0x68,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x48,0x69,0x67,0x68,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A +,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72 +,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64 +,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C +,0x54,0x79,0x70,0x65,0x3E,0x4C,0x6F,0x77,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x4C,0x6F,0x77,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09 +,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D +,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70 +,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x70,0x74,0x69 +,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A +,0x09,0x09,0x09,0x3C,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67 +,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x54,0x69,0x6D +,0x65,0x20,0x50,0x65,0x72,0x69,0x6F,0x64,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x4E,0x75 +,0x6D,0x62,0x65,0x72,0x20,0x6F,0x66,0x20,0x70,0x65,0x72,0x69,0x6F,0x64,0x3C,0x2F,0x53,0x68,0x6F,0x72 +,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54 +,0x79,0x70,0x65,0x3E,0x49,0x6E,0x74,0x65,0x67,0x65,0x72,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x3C,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x69,0x6E +,0x69,0x6D,0x75,0x6D,0x3E,0x32,0x3C,0x2F,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x09,0x3C,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x4D +,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73 +,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67 +,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53 +,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F +,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C +,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x31 +,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63,0x72 +,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x3C,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x31,0x34 +,0x3C,0x2F,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C +,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65 +,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75 +,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75 +,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70 +,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70 +,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65 +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x52,0x65,0x61,0x6C,0x3C +,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4C,0x69,0x6E,0x65,0x3C,0x2F,0x46,0x6C,0x61,0x67 +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F +,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F +,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x3C,0x2F +,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x0A +,0x0A,0x09,0x3C,0x21,0x2D,0x2D,0x20,0x4D,0x49,0x4E,0x20,0x2D,0x2D,0x3E,0x0A,0x09,0x3C,0x46,0x69,0x6E +,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x41 +,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x4D,0x49,0x4E,0x3C,0x2F,0x41,0x62,0x62 +,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x43,0x61,0x6D,0x65,0x6C,0x43 +,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x4D,0x69,0x6E,0x3C,0x2F,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61 +,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63 +,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x4C,0x6F,0x77,0x65,0x73,0x74,0x20,0x76,0x61,0x6C,0x75,0x65 +,0x20,0x6F,0x76,0x65,0x72,0x20,0x61,0x20,0x73,0x70,0x65,0x63,0x69,0x66,0x69,0x65,0x64,0x20,0x70,0x65 +,0x72,0x69,0x6F,0x64,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69 +,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x4D,0x61,0x74,0x68,0x20 +,0x4F,0x70,0x65,0x72,0x61,0x74,0x6F,0x72,0x73,0x3C,0x2F,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x0A +,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4F +,0x76,0x65,0x72,0x6C,0x61,0x70,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x46,0x6C +,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75 +,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75 +,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72,0x72,0x61 +,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x69 +,0x6E,0x52,0x65,0x61,0x6C,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65 +,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E +,0x0A,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72 +,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C +,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C +,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E +,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x54,0x69,0x6D,0x65,0x20,0x50,0x65 +,0x72,0x69,0x6F,0x64,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x53,0x68,0x6F +,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x4E,0x75,0x6D,0x62,0x65,0x72 +,0x20,0x6F,0x66,0x20,0x70,0x65,0x72,0x69,0x6F,0x64,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73 +,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E +,0x49,0x6E,0x74,0x65,0x67,0x65,0x72,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C +,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D +,0x3E,0x32,0x3C,0x2F,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D +,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x4D,0x61,0x78,0x69,0x6D +,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53 +,0x74,0x61,0x72,0x74,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74 +,0x65,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65 +,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67 +,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67 +,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x31,0x30,0x30,0x30,0x30 +,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E +,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x3C,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x33,0x30,0x3C,0x2F,0x44,0x65 +,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x70,0x74 +,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A +,0x09,0x09,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67 +,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67 +,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72 +,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F +,0x75,0x62,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x52,0x65,0x61,0x6C,0x3C,0x2F,0x4E,0x61,0x6D +,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09 +,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4C,0x69,0x6E,0x65,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70 +,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70 +,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x3C,0x2F,0x46,0x69,0x6E,0x61 +,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x0A,0x0A,0x09,0x3C,0x21 +,0x2D,0x2D,0x20,0x4D,0x49,0x4E,0x49,0x4E,0x44,0x45,0x58,0x20,0x2D,0x2D,0x3E,0x0A,0x09,0x3C,0x46,0x69 +,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C +,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x4D,0x49,0x4E,0x49,0x4E,0x44,0x45 +,0x58,0x3C,0x2F,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C +,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x4D,0x69,0x6E,0x49,0x6E,0x64 +,0x65,0x78,0x3C,0x2F,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09 +,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x49 +,0x6E,0x64,0x65,0x78,0x20,0x6F,0x66,0x20,0x6C,0x6F,0x77,0x65,0x73,0x74,0x20,0x76,0x61,0x6C,0x75,0x65 +,0x20,0x6F,0x76,0x65,0x72,0x20,0x61,0x20,0x73,0x70,0x65,0x63,0x69,0x66,0x69,0x65,0x64,0x20,0x70,0x65 +,0x72,0x69,0x6F,0x64,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69 +,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x4D,0x61,0x74,0x68,0x20 +,0x4F,0x70,0x65,0x72,0x61,0x74,0x6F,0x72,0x73,0x3C,0x2F,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x0A +,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75 +,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49 +,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54 +,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79 +,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x69,0x6E,0x52,0x65,0x61,0x6C +,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65 +,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F +,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E +,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74 +,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x70,0x74,0x69,0x6F +,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x54,0x69,0x6D,0x65,0x20,0x50,0x65,0x72,0x69,0x6F,0x64,0x3C +,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73 +,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x4E,0x75,0x6D,0x62,0x65,0x72,0x20,0x6F,0x66,0x20,0x70 +,0x65,0x72,0x69,0x6F,0x64,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74 +,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x49,0x6E,0x74,0x65,0x67 +,0x65,0x72,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x52,0x61,0x6E,0x67,0x65 +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x32,0x3C,0x2F,0x4D +,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x61,0x78,0x69,0x6D,0x75 +,0x6D,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74,0x3E +,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61 +,0x72,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x45 +,0x6E,0x64,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64 +,0x45,0x6E,0x64,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64 +,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75 +,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x3C,0x2F,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x44,0x65,0x66,0x61 +,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x33,0x30,0x3C,0x2F,0x44,0x65,0x66,0x61,0x75,0x6C,0x74 +,0x56,0x61,0x6C,0x75,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C +,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F +,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74 +,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74 +,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E +,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x49,0x6E,0x74,0x65,0x67,0x65,0x72 +,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E +,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x49,0x6E,0x74,0x65,0x67,0x65,0x72,0x3C,0x2F,0x4E,0x61,0x6D,0x65 +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C +,0x46,0x6C,0x61,0x67,0x3E,0x4C,0x69,0x6E,0x65,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75 +,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75 +,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x3C,0x2F,0x46,0x69,0x6E,0x61,0x6E +,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x0A,0x0A,0x09,0x3C,0x21,0x2D +,0x2D,0x20,0x4D,0x49,0x4E,0x4D,0x41,0x58,0x20,0x2D,0x2D,0x3E,0x0A,0x09,0x3C,0x46,0x69,0x6E,0x61,0x6E +,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x41,0x62,0x62 +,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x4D,0x49,0x4E,0x4D,0x41,0x58,0x3C,0x2F,0x41,0x62 +,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x43,0x61,0x6D,0x65,0x6C +,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x4D,0x69,0x6E,0x4D,0x61,0x78,0x3C,0x2F,0x43,0x61,0x6D +,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74 +,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x4C,0x6F,0x77,0x65,0x73,0x74,0x20,0x61 +,0x6E,0x64,0x20,0x68,0x69,0x67,0x68,0x65,0x73,0x74,0x20,0x76,0x61,0x6C,0x75,0x65,0x73,0x20,0x6F,0x76 +,0x65,0x72,0x20,0x61,0x20,0x73,0x70,0x65,0x63,0x69,0x66,0x69,0x65,0x64,0x20,0x70,0x65,0x72,0x69,0x6F +,0x64,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E +,0x0A,0x09,0x09,0x3C,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x4D,0x61,0x74,0x68,0x20,0x4F,0x70,0x65 +,0x72,0x61,0x74,0x6F,0x72,0x73,0x3C,0x2F,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x0A,0x09,0x09,0x3C +,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4F,0x76,0x65,0x72 +,0x6C,0x61,0x70,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73 +,0x3E,0x0A,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72 +,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65 +,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F +,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x69,0x6E,0x52,0x65 +,0x61,0x6C,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69 +,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09 +,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D +,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70 +,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x70,0x74 +,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x54,0x69,0x6D,0x65,0x20,0x50,0x65,0x72,0x69,0x6F +,0x64,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44 +,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x4E,0x75,0x6D,0x62,0x65,0x72,0x20,0x6F,0x66 +,0x20,0x70,0x65,0x72,0x69,0x6F,0x64,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69 +,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x49,0x6E,0x74 +,0x65,0x67,0x65,0x72,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x52,0x61,0x6E +,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x32,0x3C +,0x2F,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x61,0x78,0x69 +,0x6D,0x75,0x6D,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72 +,0x74,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53 +,0x74,0x61,0x72,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65 +,0x64,0x45,0x6E,0x64,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74 +,0x65,0x64,0x45,0x6E,0x64,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74 +,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F +,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x3C,0x2F,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x44,0x65 +,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x33,0x30,0x3C,0x2F,0x44,0x65,0x66,0x61,0x75 +,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E +,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C +,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65 +,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65 +,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D +,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C +,0x65,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C +,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x4D,0x69,0x6E,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61 +,0x67,0x3E,0x4C,0x69,0x6E,0x65,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F +,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72 +,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72 +,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F +,0x75,0x62,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x4D,0x61,0x78,0x3C,0x2F,0x4E,0x61,0x6D,0x65 +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C +,0x46,0x6C,0x61,0x67,0x3E,0x4C,0x69,0x6E,0x65,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75 +,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75 +,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x3C,0x2F,0x46,0x69,0x6E,0x61,0x6E +,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x0A,0x0A,0x09,0x3C,0x21,0x2D +,0x2D,0x20,0x4D,0x49,0x4E,0x4D,0x41,0x58,0x49,0x4E,0x44,0x45,0x58,0x20,0x2D,0x2D,0x3E,0x0A,0x09,0x3C +,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09 +,0x09,0x3C,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x4D,0x49,0x4E,0x4D,0x41 +,0x58,0x49,0x4E,0x44,0x45,0x58,0x3C,0x2F,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E +,0x3E,0x0A,0x09,0x09,0x3C,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x4D +,0x69,0x6E,0x4D,0x61,0x78,0x49,0x6E,0x64,0x65,0x78,0x3C,0x2F,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73 +,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72 +,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x49,0x6E,0x64,0x65,0x78,0x65,0x73,0x20,0x6F,0x66,0x20,0x6C,0x6F +,0x77,0x65,0x73,0x74,0x20,0x61,0x6E,0x64,0x20,0x68,0x69,0x67,0x68,0x65,0x73,0x74,0x20,0x76,0x61,0x6C +,0x75,0x65,0x73,0x20,0x6F,0x76,0x65,0x72,0x20,0x61,0x20,0x73,0x70,0x65,0x63,0x69,0x66,0x69,0x65,0x64 +,0x20,0x70,0x65,0x72,0x69,0x6F,0x64,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69 +,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x4D,0x61 +,0x74,0x68,0x20,0x4F,0x70,0x65,0x72,0x61,0x74,0x6F,0x72,0x73,0x3C,0x2F,0x47,0x72,0x6F,0x75,0x70,0x49 +,0x64,0x3E,0x0A,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41 +,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72 +,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79,0x3C +,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x69,0x6E,0x52 +,0x65,0x61,0x6C,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75 +,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09 +,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75 +,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E +,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x70 +,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x54,0x69,0x6D,0x65,0x20,0x50,0x65,0x72,0x69 +,0x6F,0x64,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74 +,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x4E,0x75,0x6D,0x62,0x65,0x72,0x20,0x6F +,0x66,0x20,0x70,0x65,0x72,0x69,0x6F,0x64,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72 +,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x49,0x6E +,0x74,0x65,0x67,0x65,0x72,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x52,0x61 +,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x32 +,0x3C,0x2F,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x61,0x78 +,0x69,0x6D,0x75,0x6D,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61 +,0x72,0x74,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64 +,0x53,0x74,0x61,0x72,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74 +,0x65,0x64,0x45,0x6E,0x64,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73 +,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73 +,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C +,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x44 +,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x33,0x30,0x3C,0x2F,0x44,0x65,0x66,0x61 +,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F +,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09 +,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D +,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D +,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75 +,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x49,0x6E,0x74,0x65 +,0x67,0x65,0x72,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x4D,0x69,0x6E,0x49,0x64,0x78,0x3C,0x2F,0x4E,0x61 +,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4C,0x69,0x6E,0x65,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74 +,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x75,0x74 +,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79 +,0x70,0x65,0x3E,0x49,0x6E,0x74,0x65,0x67,0x65,0x72,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79 +,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x4D,0x61,0x78 +,0x49,0x64,0x78,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67 +,0x73,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4C,0x69,0x6E,0x65,0x3C,0x2F +,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09 +,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A +,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E +,0x0A,0x09,0x3C,0x2F,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F +,0x6E,0x3E,0x0A,0x0A,0x0A,0x09,0x3C,0x21,0x2D,0x2D,0x20,0x4D,0x49,0x4E,0x55,0x53,0x5F,0x44,0x49,0x20 +,0x2D,0x2D,0x3E,0x0A,0x09,0x3C,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74 +,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E +,0x3E,0x4D,0x49,0x4E,0x55,0x53,0x5F,0x44,0x49,0x3C,0x2F,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74 +,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D +,0x65,0x3E,0x4D,0x69,0x6E,0x75,0x73,0x44,0x49,0x3C,0x2F,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65 +,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69 +,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x4D,0x69,0x6E,0x75,0x73,0x20,0x44,0x69,0x72,0x65,0x63,0x74,0x69,0x6F +,0x6E,0x61,0x6C,0x20,0x49,0x6E,0x64,0x69,0x63,0x61,0x74,0x6F,0x72,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74 +,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x47,0x72,0x6F,0x75 +,0x70,0x49,0x64,0x3E,0x4D,0x6F,0x6D,0x65,0x6E,0x74,0x75,0x6D,0x20,0x49,0x6E,0x64,0x69,0x63,0x61,0x74 +,0x6F,0x72,0x73,0x3C,0x2F,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x0A,0x09,0x09,0x3C,0x46,0x6C,0x61 +,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x55,0x6E,0x73,0x74,0x61,0x62,0x6C +,0x65,0x20,0x50,0x65,0x72,0x69,0x6F,0x64,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x3C,0x2F +,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E +,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65 +,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x48,0x69,0x67,0x68,0x3C,0x2F,0x54,0x79,0x70 +,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x48,0x69,0x67,0x68,0x3C,0x2F,0x4E +,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E +,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71 +,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x4C,0x6F,0x77,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x4C,0x6F,0x77,0x3C,0x2F,0x4E,0x61,0x6D,0x65 +,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74 +,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72 +,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x43,0x6C,0x6F,0x73,0x65,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x43,0x6C,0x6F,0x73,0x65,0x3C,0x2F,0x4E,0x61,0x6D +,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75 +,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69 +,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09 +,0x09,0x3C,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D +,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E +,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61 +,0x6D,0x65,0x3E,0x54,0x69,0x6D,0x65,0x20,0x50,0x65,0x72,0x69,0x6F,0x64,0x3C,0x2F,0x4E,0x61,0x6D,0x65 +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74 +,0x69,0x6F,0x6E,0x3E,0x4E,0x75,0x6D,0x62,0x65,0x72,0x20,0x6F,0x66,0x20,0x70,0x65,0x72,0x69,0x6F,0x64 +,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x49,0x6E,0x74,0x65,0x67,0x65,0x72,0x3C,0x2F,0x54 +,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x09,0x3C,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x31,0x3C,0x2F,0x4D,0x69,0x6E,0x69,0x6D,0x75 +,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x31,0x30,0x30 +,0x30,0x30,0x30,0x3C,0x2F,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C +,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x31,0x30,0x30,0x30,0x30 +,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x31,0x30 +,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65 +,0x6D,0x65,0x6E,0x74,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74 +,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x52 +,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61 +,0x6C,0x75,0x65,0x3E,0x31,0x34,0x3C,0x2F,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65 +,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74 +,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E +,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09 +,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09 +,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79 +,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75 +,0x74,0x52,0x65,0x61,0x6C,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C +,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4C,0x69,0x6E,0x65 +,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E +,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74 +,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74 +,0x73,0x3E,0x0A,0x09,0x3C,0x2F,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74 +,0x69,0x6F,0x6E,0x3E,0x0A,0x0A,0x0A,0x09,0x3C,0x21,0x2D,0x2D,0x20,0x4D,0x49,0x4E,0x55,0x53,0x5F,0x44 +,0x4D,0x20,0x2D,0x2D,0x3E,0x0A,0x09,0x3C,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E +,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69 +,0x6F,0x6E,0x3E,0x4D,0x49,0x4E,0x55,0x53,0x5F,0x44,0x4D,0x3C,0x2F,0x41,0x62,0x62,0x72,0x65,0x76,0x69 +,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E +,0x61,0x6D,0x65,0x3E,0x4D,0x69,0x6E,0x75,0x73,0x44,0x4D,0x3C,0x2F,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61 +,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63 +,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x4D,0x69,0x6E,0x75,0x73,0x20,0x44,0x69,0x72,0x65,0x63,0x74 +,0x69,0x6F,0x6E,0x61,0x6C,0x20,0x4D,0x6F,0x76,0x65,0x6D,0x65,0x6E,0x74,0x3C,0x2F,0x53,0x68,0x6F,0x72 +,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x47,0x72,0x6F +,0x75,0x70,0x49,0x64,0x3E,0x4D,0x6F,0x6D,0x65,0x6E,0x74,0x75,0x6D,0x20,0x49,0x6E,0x64,0x69,0x63,0x61 +,0x74,0x6F,0x72,0x73,0x3C,0x2F,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x0A,0x09,0x09,0x3C,0x46,0x6C +,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x55,0x6E,0x73,0x74,0x61,0x62 +,0x6C,0x65,0x20,0x50,0x65,0x72,0x69,0x6F,0x64,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x3C +,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49 +,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52 +,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74 +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x48,0x69,0x67,0x68,0x3C,0x2F,0x54,0x79 +,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x48,0x69,0x67,0x68,0x3C,0x2F +,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49 +,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65 +,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x4C,0x6F,0x77,0x3C,0x2F,0x54,0x79,0x70,0x65 +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x4C,0x6F,0x77,0x3C,0x2F,0x4E,0x61,0x6D +,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75 +,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69 +,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09 +,0x09,0x3C,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D +,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E +,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61 +,0x6D,0x65,0x3E,0x54,0x69,0x6D,0x65,0x20,0x50,0x65,0x72,0x69,0x6F,0x64,0x3C,0x2F,0x4E,0x61,0x6D,0x65 +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74 +,0x69,0x6F,0x6E,0x3E,0x4E,0x75,0x6D,0x62,0x65,0x72,0x20,0x6F,0x66,0x20,0x70,0x65,0x72,0x69,0x6F,0x64 +,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x49,0x6E,0x74,0x65,0x67,0x65,0x72,0x3C,0x2F,0x54 +,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x09,0x3C,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x31,0x3C,0x2F,0x4D,0x69,0x6E,0x69,0x6D,0x75 +,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x31,0x30,0x30 +,0x30,0x30,0x30,0x3C,0x2F,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C +,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x31,0x30,0x30,0x30,0x30 +,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x31,0x30 +,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65 +,0x6D,0x65,0x6E,0x74,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74 +,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x52 +,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61 +,0x6C,0x75,0x65,0x3E,0x31,0x34,0x3C,0x2F,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65 +,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74 +,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E +,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09 +,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09 +,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79 +,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75 +,0x74,0x52,0x65,0x61,0x6C,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C +,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4C,0x69,0x6E,0x65 +,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E +,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74 +,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74 +,0x73,0x3E,0x0A,0x09,0x3C,0x2F,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74 +,0x69,0x6F,0x6E,0x3E,0x0A,0x0A,0x0A,0x09,0x3C,0x21,0x2D,0x2D,0x20,0x4D,0x4F,0x4D,0x20,0x2D,0x2D,0x3E +,0x0A,0x09,0x3C,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E +,0x3E,0x0A,0x09,0x09,0x3C,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x4D,0x4F +,0x4D,0x3C,0x2F,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C +,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x4D,0x6F,0x6D,0x3C,0x2F,0x43 +,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x3C,0x53,0x68,0x6F +,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x4D,0x6F,0x6D,0x65,0x6E,0x74 +,0x75,0x6D,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E +,0x3E,0x0A,0x09,0x09,0x3C,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x4D,0x6F,0x6D,0x65,0x6E,0x74,0x75 +,0x6D,0x20,0x49,0x6E,0x64,0x69,0x63,0x61,0x74,0x6F,0x72,0x73,0x3C,0x2F,0x47,0x72,0x6F,0x75,0x70,0x49 +,0x64,0x3E,0x0A,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41 +,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72 +,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79,0x3C +,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x69,0x6E,0x52 +,0x65,0x61,0x6C,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75 +,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09 +,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75 +,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E +,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x70 +,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x54,0x69,0x6D,0x65,0x20,0x50,0x65,0x72,0x69 +,0x6F,0x64,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74 +,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x4E,0x75,0x6D,0x62,0x65,0x72,0x20,0x6F +,0x66,0x20,0x70,0x65,0x72,0x69,0x6F,0x64,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72 +,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x49,0x6E +,0x74,0x65,0x67,0x65,0x72,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x52,0x61 +,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x31 +,0x3C,0x2F,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x61,0x78 +,0x69,0x6D,0x75,0x6D,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61 +,0x72,0x74,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64 +,0x53,0x74,0x61,0x72,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74 +,0x65,0x64,0x45,0x6E,0x64,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73 +,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73 +,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C +,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x44 +,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x31,0x30,0x3C,0x2F,0x44,0x65,0x66,0x61 +,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F +,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09 +,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D +,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D +,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75 +,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62 +,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x52,0x65,0x61,0x6C,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x46 +,0x6C,0x61,0x67,0x3E,0x4C,0x69,0x6E,0x65,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74 +,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74 +,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x3C,0x2F,0x46,0x69,0x6E,0x61,0x6E,0x63 +,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x0A,0x0A,0x09,0x3C,0x21,0x2D,0x2D +,0x20,0x4D,0x55,0x4C,0x54,0x20,0x2D,0x2D,0x3E,0x0A,0x09,0x3C,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61 +,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x41,0x62,0x62,0x72,0x65,0x76 +,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x4D,0x55,0x4C,0x54,0x3C,0x2F,0x41,0x62,0x62,0x72,0x65,0x76,0x69 +,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E +,0x61,0x6D,0x65,0x3E,0x4D,0x75,0x6C,0x74,0x3C,0x2F,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E +,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70 +,0x74,0x69,0x6F,0x6E,0x3E,0x56,0x65,0x63,0x74,0x6F,0x72,0x20,0x41,0x72,0x69,0x74,0x68,0x6D,0x65,0x74 +,0x69,0x63,0x20,0x4D,0x75,0x6C,0x74,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69 +,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x4D,0x61 +,0x74,0x68,0x20,0x4F,0x70,0x65,0x72,0x61,0x74,0x6F,0x72,0x73,0x3C,0x2F,0x47,0x72,0x6F,0x75,0x70,0x49 +,0x64,0x3E,0x0A,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41 +,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72 +,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79,0x3C +,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x69,0x6E,0x52 +,0x65,0x61,0x6C,0x30,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71 +,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A +,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67 +,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75 +,0x62,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x69,0x6E,0x52,0x65,0x61,0x6C,0x31,0x3C,0x2F,0x4E,0x61,0x6D,0x65 +,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74 +,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72 +,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09 +,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09 +,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79 +,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75 +,0x74,0x52,0x65,0x61,0x6C,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C +,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4C,0x69,0x6E,0x65 +,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E +,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74 +,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74 +,0x73,0x3E,0x0A,0x09,0x3C,0x2F,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74 +,0x69,0x6F,0x6E,0x3E,0x0A,0x0A,0x0A,0x09,0x3C,0x21,0x2D,0x2D,0x20,0x4E,0x41,0x54,0x52,0x20,0x2D,0x2D +,0x3E,0x0A,0x09,0x3C,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F +,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x4E +,0x41,0x54,0x52,0x3C,0x2F,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09 +,0x09,0x3C,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x4E,0x61,0x74,0x72 +,0x3C,0x2F,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x3C +,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x4E,0x6F,0x72 +,0x6D,0x61,0x6C,0x69,0x7A,0x65,0x64,0x20,0x41,0x76,0x65,0x72,0x61,0x67,0x65,0x20,0x54,0x72,0x75,0x65 +,0x20,0x52,0x61,0x6E,0x67,0x65,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70 +,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x56,0x6F,0x6C +,0x61,0x74,0x69,0x6C,0x69,0x74,0x79,0x20,0x49,0x6E,0x64,0x69,0x63,0x61,0x74,0x6F,0x72,0x73,0x3C,0x2F +,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x0A,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09 +,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x55,0x6E,0x73,0x74,0x61,0x62,0x6C,0x65,0x20,0x50,0x65,0x72 +,0x69,0x6F,0x64,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73 +,0x3E,0x0A,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72 +,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65 +,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x3C,0x54,0x79,0x70,0x65,0x3E,0x48,0x69,0x67,0x68,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x48,0x69,0x67,0x68,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A +,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72 +,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64 +,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C +,0x54,0x79,0x70,0x65,0x3E,0x4C,0x6F,0x77,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x4C,0x6F,0x77,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09 +,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D +,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70 +,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70 +,0x65,0x3E,0x43,0x6C,0x6F,0x73,0x65,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C +,0x4E,0x61,0x6D,0x65,0x3E,0x43,0x6C,0x6F,0x73,0x65,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09 +,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75 +,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E +,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x70,0x74 +,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E +,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72 +,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x54,0x69 +,0x6D,0x65,0x20,0x50,0x65,0x72,0x69,0x6F,0x64,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x4E +,0x75,0x6D,0x62,0x65,0x72,0x20,0x6F,0x66,0x20,0x70,0x65,0x72,0x69,0x6F,0x64,0x3C,0x2F,0x53,0x68,0x6F +,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C +,0x54,0x79,0x70,0x65,0x3E,0x49,0x6E,0x74,0x65,0x67,0x65,0x72,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x3C,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x69 +,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x31,0x3C,0x2F,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x09,0x3C,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F +,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65 +,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75 +,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C +,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C +,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09 +,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E +,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63 +,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x52,0x61,0x6E,0x67,0x65,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x3C,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x31 +,0x34,0x3C,0x2F,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x0A,0x09,0x09,0x09 +,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D +,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70 +,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70 +,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x75,0x74 +,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79 +,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70 +,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x52,0x65,0x61,0x6C +,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4C,0x69,0x6E,0x65,0x3C,0x2F,0x46,0x6C,0x61 +,0x67,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C +,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C +,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x3C +,0x2F,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A +,0x0A,0x0A,0x09,0x3C,0x21,0x2D,0x2D,0x20,0x4F,0x42,0x56,0x20,0x2D,0x2D,0x3E,0x0A,0x09,0x3C,0x46,0x69 +,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C +,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x4F,0x42,0x56,0x3C,0x2F,0x41,0x62 +,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x43,0x61,0x6D,0x65,0x6C +,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x4F,0x62,0x76,0x3C,0x2F,0x43,0x61,0x6D,0x65,0x6C,0x43 +,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73 +,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x4F,0x6E,0x20,0x42,0x61,0x6C,0x61,0x6E,0x63,0x65,0x20 +,0x56,0x6F,0x6C,0x75,0x6D,0x65,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70 +,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x56,0x6F,0x6C +,0x75,0x6D,0x65,0x20,0x49,0x6E,0x64,0x69,0x63,0x61,0x74,0x6F,0x72,0x73,0x3C,0x2F,0x47,0x72,0x6F,0x75 +,0x70,0x49,0x64,0x3E,0x0A,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75 +,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75 +,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72,0x72,0x61 +,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x69 +,0x6E,0x52,0x65,0x61,0x6C,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65 +,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E +,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72 +,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x56,0x6F +,0x6C,0x75,0x6D,0x65,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D +,0x65,0x3E,0x56,0x6F,0x6C,0x75,0x6D,0x65,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C +,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65 +,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75 +,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75 +,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70 +,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70 +,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65 +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x52,0x65,0x61,0x6C,0x3C +,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4C,0x69,0x6E,0x65,0x3C,0x2F,0x46,0x6C,0x61,0x67 +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F +,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F +,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x3C,0x2F +,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x0A +,0x0A,0x09,0x3C,0x21,0x2D,0x2D,0x20,0x50,0x4C,0x55,0x53,0x5F,0x44,0x49,0x20,0x2D,0x2D,0x3E,0x0A,0x09 +,0x3C,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A +,0x09,0x09,0x3C,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x50,0x4C,0x55,0x53 +,0x5F,0x44,0x49,0x3C,0x2F,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09 +,0x09,0x3C,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x50,0x6C,0x75,0x73 +,0x44,0x49,0x3C,0x2F,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09 +,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x50 +,0x6C,0x75,0x73,0x20,0x44,0x69,0x72,0x65,0x63,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x20,0x49,0x6E,0x64,0x69 +,0x63,0x61,0x74,0x6F,0x72,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74 +,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x4D,0x6F,0x6D,0x65 +,0x6E,0x74,0x75,0x6D,0x20,0x49,0x6E,0x64,0x69,0x63,0x61,0x74,0x6F,0x72,0x73,0x3C,0x2F,0x47,0x72,0x6F +,0x75,0x70,0x49,0x64,0x3E,0x0A,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C +,0x46,0x6C,0x61,0x67,0x3E,0x55,0x6E,0x73,0x74,0x61,0x62,0x6C,0x65,0x20,0x50,0x65,0x72,0x69,0x6F,0x64 +,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09 +,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D +,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E +,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79 +,0x70,0x65,0x3E,0x48,0x69,0x67,0x68,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C +,0x4E,0x61,0x6D,0x65,0x3E,0x48,0x69,0x67,0x68,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09 +,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D +,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70 +,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70 +,0x65,0x3E,0x4C,0x6F,0x77,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61 +,0x6D,0x65,0x3E,0x4C,0x6F,0x77,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52 +,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74 +,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41 +,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x43 +,0x6C,0x6F,0x73,0x65,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D +,0x65,0x3E,0x43,0x6C,0x6F,0x73,0x65,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F +,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E +,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74 +,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x70,0x74,0x69,0x6F,0x6E +,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09 +,0x09,0x3C,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D +,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x54,0x69,0x6D,0x65,0x20 +,0x50,0x65,0x72,0x69,0x6F,0x64,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x53 +,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x4E,0x75,0x6D,0x62 +,0x65,0x72,0x20,0x6F,0x66,0x20,0x70,0x65,0x72,0x69,0x6F,0x64,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44 +,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70 +,0x65,0x3E,0x49,0x6E,0x74,0x65,0x67,0x65,0x72,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x3C,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x69,0x6E,0x69,0x6D +,0x75,0x6D,0x3E,0x31,0x3C,0x2F,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09 +,0x3C,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x4D,0x61,0x78 +,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65 +,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65 +,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67 +,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75 +,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75 +,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x31,0x30,0x30 +,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D +,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x3C,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x31,0x34,0x3C,0x2F +,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F +,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74 +,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41 +,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41 +,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74 +,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E +,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x52,0x65,0x61,0x6C,0x3C,0x2F,0x4E +,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4C,0x69,0x6E,0x65,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x75 +,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x75 +,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x3C,0x2F,0x46,0x69 +,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x0A,0x0A,0x09 +,0x3C,0x21,0x2D,0x2D,0x20,0x50,0x4C,0x55,0x53,0x5F,0x44,0x4D,0x20,0x2D,0x2D,0x3E,0x0A,0x09,0x3C,0x46 +,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09 +,0x3C,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x50,0x4C,0x55,0x53,0x5F,0x44 +,0x4D,0x3C,0x2F,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C +,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x50,0x6C,0x75,0x73,0x44,0x4D +,0x3C,0x2F,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x3C +,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x50,0x6C,0x75 +,0x73,0x20,0x44,0x69,0x72,0x65,0x63,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x20,0x4D,0x6F,0x76,0x65,0x6D,0x65 +,0x6E,0x74,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E +,0x3E,0x0A,0x09,0x09,0x3C,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x4D,0x6F,0x6D,0x65,0x6E,0x74,0x75 +,0x6D,0x20,0x49,0x6E,0x64,0x69,0x63,0x61,0x74,0x6F,0x72,0x73,0x3C,0x2F,0x47,0x72,0x6F,0x75,0x70,0x49 +,0x64,0x3E,0x0A,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61 +,0x67,0x3E,0x55,0x6E,0x73,0x74,0x61,0x62,0x6C,0x65,0x20,0x50,0x65,0x72,0x69,0x6F,0x64,0x3C,0x2F,0x46 +,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x52 +,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74 +,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74 +,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E +,0x48,0x69,0x67,0x68,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D +,0x65,0x3E,0x48,0x69,0x67,0x68,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52 +,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74 +,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41 +,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x4C +,0x6F,0x77,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E +,0x4C,0x6F,0x77,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75 +,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09 +,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75 +,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E +,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x70 +,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x54,0x69,0x6D,0x65,0x20,0x50,0x65,0x72,0x69 +,0x6F,0x64,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74 +,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x4E,0x75,0x6D,0x62,0x65,0x72,0x20,0x6F +,0x66,0x20,0x70,0x65,0x72,0x69,0x6F,0x64,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72 +,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x49,0x6E +,0x74,0x65,0x67,0x65,0x72,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x52,0x61 +,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x31 +,0x3C,0x2F,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x61,0x78 +,0x69,0x6D,0x75,0x6D,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61 +,0x72,0x74,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64 +,0x53,0x74,0x61,0x72,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74 +,0x65,0x64,0x45,0x6E,0x64,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73 +,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73 +,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C +,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x44 +,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x31,0x34,0x3C,0x2F,0x44,0x65,0x66,0x61 +,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F +,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09 +,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D +,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D +,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75 +,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62 +,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x52,0x65,0x61,0x6C,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x46 +,0x6C,0x61,0x67,0x3E,0x4C,0x69,0x6E,0x65,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74 +,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74 +,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x3C,0x2F,0x46,0x69,0x6E,0x61,0x6E,0x63 +,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x0A,0x0A,0x09,0x3C,0x21,0x2D,0x2D +,0x20,0x50,0x50,0x4F,0x20,0x2D,0x2D,0x3E,0x0A,0x09,0x3C,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C +,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x41,0x62,0x62,0x72,0x65,0x76,0x69 +,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x50,0x50,0x4F,0x3C,0x2F,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74 +,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D +,0x65,0x3E,0x50,0x70,0x6F,0x3C,0x2F,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65 +,0x3E,0x0A,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F +,0x6E,0x3E,0x50,0x65,0x72,0x63,0x65,0x6E,0x74,0x61,0x67,0x65,0x20,0x50,0x72,0x69,0x63,0x65,0x20,0x4F +,0x73,0x63,0x69,0x6C,0x6C,0x61,0x74,0x6F,0x72,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63 +,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E +,0x4D,0x6F,0x6D,0x65,0x6E,0x74,0x75,0x6D,0x20,0x49,0x6E,0x64,0x69,0x63,0x61,0x74,0x6F,0x72,0x73,0x3C +,0x2F,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x0A,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65 +,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09 +,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65 +,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65 +,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E +,0x61,0x6D,0x65,0x3E,0x69,0x6E,0x52,0x65,0x61,0x6C,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09 +,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75 +,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E +,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x70,0x74 +,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E +,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72 +,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x46,0x61 +,0x73,0x74,0x20,0x50,0x65,0x72,0x69,0x6F,0x64,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x4E +,0x75,0x6D,0x62,0x65,0x72,0x20,0x6F,0x66,0x20,0x70,0x65,0x72,0x69,0x6F,0x64,0x20,0x66,0x6F,0x72,0x20 +,0x74,0x68,0x65,0x20,0x66,0x61,0x73,0x74,0x20,0x4D,0x41,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65 +,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65 +,0x3E,0x49,0x6E,0x74,0x65,0x67,0x65,0x72,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x3C,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x69,0x6E,0x69,0x6D,0x75 +,0x6D,0x3E,0x32,0x3C,0x2F,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C +,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x4D,0x61,0x78,0x69 +,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64 +,0x53,0x74,0x61,0x72,0x74,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73 +,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67 +,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67 +,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67 +,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x31,0x30,0x30,0x30 +,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65 +,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x3C,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x31,0x32,0x3C,0x2F,0x44 +,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x70 +,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E +,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72 +,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x53,0x6C +,0x6F,0x77,0x20,0x50,0x65,0x72,0x69,0x6F,0x64,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x4E +,0x75,0x6D,0x62,0x65,0x72,0x20,0x6F,0x66,0x20,0x70,0x65,0x72,0x69,0x6F,0x64,0x20,0x66,0x6F,0x72,0x20 +,0x74,0x68,0x65,0x20,0x73,0x6C,0x6F,0x77,0x20,0x4D,0x41,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65 +,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65 +,0x3E,0x49,0x6E,0x74,0x65,0x67,0x65,0x72,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x3C,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x69,0x6E,0x69,0x6D,0x75 +,0x6D,0x3E,0x32,0x3C,0x2F,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C +,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x4D,0x61,0x78,0x69 +,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64 +,0x53,0x74,0x61,0x72,0x74,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73 +,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67 +,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67 +,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67 +,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x31,0x30,0x30,0x30 +,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65 +,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x3C,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x32,0x36,0x3C,0x2F,0x44 +,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x70 +,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E +,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72 +,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x4D,0x41 +,0x20,0x54,0x79,0x70,0x65,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x53,0x68 +,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x54,0x79,0x70,0x65,0x20 +,0x6F,0x66,0x20,0x4D,0x6F,0x76,0x69,0x6E,0x67,0x20,0x41,0x76,0x65,0x72,0x61,0x67,0x65,0x3C,0x2F,0x53 +,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x4D,0x41,0x20,0x54,0x79,0x70,0x65,0x3C,0x2F,0x54,0x79,0x70,0x65 +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E +,0x30,0x3C,0x2F,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x0A,0x09,0x09,0x09 +,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D +,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70 +,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70 +,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x75,0x74 +,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79 +,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70 +,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x52,0x65,0x61,0x6C +,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4C,0x69,0x6E,0x65,0x3C,0x2F,0x46,0x6C,0x61 +,0x67,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C +,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C +,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x3C +,0x2F,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A +,0x0A,0x0A,0x09,0x3C,0x21,0x2D,0x2D,0x20,0x52,0x4F,0x43,0x20,0x2D,0x2D,0x3E,0x0A,0x09,0x3C,0x46,0x69 +,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C +,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x52,0x4F,0x43,0x3C,0x2F,0x41,0x62 +,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x43,0x61,0x6D,0x65,0x6C +,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x52,0x6F,0x63,0x3C,0x2F,0x43,0x61,0x6D,0x65,0x6C,0x43 +,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73 +,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x52,0x61,0x74,0x65,0x20,0x6F,0x66,0x20,0x63,0x68,0x61 +,0x6E,0x67,0x65,0x20,0x3A,0x20,0x28,0x28,0x70,0x72,0x69,0x63,0x65,0x2F,0x70,0x72,0x65,0x76,0x50,0x72 +,0x69,0x63,0x65,0x29,0x2D,0x31,0x29,0x2A,0x31,0x30,0x30,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65 +,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x47,0x72,0x6F,0x75,0x70,0x49 +,0x64,0x3E,0x4D,0x6F,0x6D,0x65,0x6E,0x74,0x75,0x6D,0x20,0x49,0x6E,0x64,0x69,0x63,0x61,0x74,0x6F,0x72 +,0x73,0x3C,0x2F,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x0A,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69 +,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09 +,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75 +,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62 +,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x69,0x6E,0x52,0x65,0x61,0x6C,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A +,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72 +,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64 +,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F +,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74 +,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74 +,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E +,0x54,0x69,0x6D,0x65,0x20,0x50,0x65,0x72,0x69,0x6F,0x64,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E +,0x3E,0x4E,0x75,0x6D,0x62,0x65,0x72,0x20,0x6F,0x66,0x20,0x70,0x65,0x72,0x69,0x6F,0x64,0x3C,0x2F,0x53 +,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x49,0x6E,0x74,0x65,0x67,0x65,0x72,0x3C,0x2F,0x54,0x79,0x70,0x65 +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C +,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x31,0x3C,0x2F,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x31,0x30,0x30,0x30,0x30,0x30 +,0x3C,0x2F,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67 +,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F +,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x31,0x30,0x30,0x30,0x30 +,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E +,0x74,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49 +,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x52,0x61,0x6E,0x67 +,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65 +,0x3E,0x31,0x30,0x3C,0x2F,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x0A,0x09 +,0x09,0x09,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67 +,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49 +,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x75 +,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F +,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C +,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54 +,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x52,0x65 +,0x61,0x6C,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73 +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4C,0x69,0x6E,0x65,0x3C,0x2F,0x46 +,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09 +,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09 +,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A +,0x09,0x3C,0x2F,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E +,0x3E,0x0A,0x0A,0x0A,0x09,0x3C,0x21,0x2D,0x2D,0x20,0x52,0x4F,0x43,0x50,0x20,0x2D,0x2D,0x3E,0x0A,0x09 +,0x3C,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A +,0x09,0x09,0x3C,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x52,0x4F,0x43,0x50 +,0x3C,0x2F,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x43 +,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x52,0x6F,0x63,0x50,0x3C,0x2F,0x43 +,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x3C,0x53,0x68,0x6F +,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x52,0x61,0x74,0x65,0x20,0x6F +,0x66,0x20,0x63,0x68,0x61,0x6E,0x67,0x65,0x20,0x50,0x65,0x72,0x63,0x65,0x6E,0x74,0x61,0x67,0x65,0x3A +,0x20,0x28,0x70,0x72,0x69,0x63,0x65,0x2D,0x70,0x72,0x65,0x76,0x50,0x72,0x69,0x63,0x65,0x29,0x2F,0x70 +,0x72,0x65,0x76,0x50,0x72,0x69,0x63,0x65,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72 +,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x4D +,0x6F,0x6D,0x65,0x6E,0x74,0x75,0x6D,0x20,0x49,0x6E,0x64,0x69,0x63,0x61,0x74,0x6F,0x72,0x73,0x3C,0x2F +,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x0A,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64 +,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C +,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E +,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20 +,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61 +,0x6D,0x65,0x3E,0x69,0x6E,0x52,0x65,0x61,0x6C,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09 +,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D +,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70 +,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x70,0x74,0x69 +,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A +,0x09,0x09,0x09,0x3C,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67 +,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x54,0x69,0x6D +,0x65,0x20,0x50,0x65,0x72,0x69,0x6F,0x64,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x4E,0x75 +,0x6D,0x62,0x65,0x72,0x20,0x6F,0x66,0x20,0x70,0x65,0x72,0x69,0x6F,0x64,0x3C,0x2F,0x53,0x68,0x6F,0x72 +,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54 +,0x79,0x70,0x65,0x3E,0x49,0x6E,0x74,0x65,0x67,0x65,0x72,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x3C,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x69,0x6E +,0x69,0x6D,0x75,0x6D,0x3E,0x31,0x3C,0x2F,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x09,0x3C,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x4D +,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73 +,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67 +,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53 +,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F +,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C +,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x31 +,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63,0x72 +,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x3C,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x31,0x30 +,0x3C,0x2F,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C +,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65 +,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75 +,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75 +,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70 +,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70 +,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65 +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x52,0x65,0x61,0x6C,0x3C +,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4C,0x69,0x6E,0x65,0x3C,0x2F,0x46,0x6C,0x61,0x67 +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F +,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F +,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x3C,0x2F +,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x0A +,0x0A,0x09,0x3C,0x21,0x2D,0x2D,0x20,0x52,0x4F,0x43,0x52,0x20,0x2D,0x2D,0x3E,0x0A,0x09,0x3C,0x46,0x69 +,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C +,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x52,0x4F,0x43,0x52,0x3C,0x2F,0x41 +,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x43,0x61,0x6D,0x65 +,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x52,0x6F,0x63,0x52,0x3C,0x2F,0x43,0x61,0x6D,0x65 +,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44 +,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x52,0x61,0x74,0x65,0x20,0x6F,0x66,0x20,0x63 +,0x68,0x61,0x6E,0x67,0x65,0x20,0x72,0x61,0x74,0x69,0x6F,0x3A,0x20,0x28,0x70,0x72,0x69,0x63,0x65,0x2F +,0x70,0x72,0x65,0x76,0x50,0x72,0x69,0x63,0x65,0x29,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73 +,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x47,0x72,0x6F,0x75,0x70,0x49,0x64 +,0x3E,0x4D,0x6F,0x6D,0x65,0x6E,0x74,0x75,0x6D,0x20,0x49,0x6E,0x64,0x69,0x63,0x61,0x74,0x6F,0x72,0x73 +,0x3C,0x2F,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x0A,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72 +,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09 +,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D +,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C +,0x65,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C +,0x4E,0x61,0x6D,0x65,0x3E,0x69,0x6E,0x52,0x65,0x61,0x6C,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09 +,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67 +,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49 +,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x70 +,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73 +,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41 +,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x54 +,0x69,0x6D,0x65,0x20,0x50,0x65,0x72,0x69,0x6F,0x64,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E +,0x4E,0x75,0x6D,0x62,0x65,0x72,0x20,0x6F,0x66,0x20,0x70,0x65,0x72,0x69,0x6F,0x64,0x3C,0x2F,0x53,0x68 +,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x3C,0x54,0x79,0x70,0x65,0x3E,0x49,0x6E,0x74,0x65,0x67,0x65,0x72,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x3C,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D +,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x31,0x3C,0x2F,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x09,0x3C,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C +,0x2F,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67 +,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53 +,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09 +,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x31,0x30,0x30,0x30,0x30,0x30 +,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74 +,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E +,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x52,0x61,0x6E,0x67,0x65 +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E +,0x31,0x30,0x3C,0x2F,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x0A,0x09,0x09 +,0x09,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75 +,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E +,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x75,0x74 +,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x75 +,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54 +,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79 +,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x52,0x65,0x61 +,0x6C,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4C,0x69,0x6E,0x65,0x3C,0x2F,0x46,0x6C +,0x61,0x67,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09 +,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09 +,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09 +,0x3C,0x2F,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E +,0x0A,0x0A,0x0A,0x09,0x3C,0x21,0x2D,0x2D,0x20,0x52,0x4F,0x43,0x52,0x31,0x30,0x30,0x20,0x2D,0x2D,0x3E +,0x0A,0x09,0x3C,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E +,0x3E,0x0A,0x09,0x09,0x3C,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x52,0x4F +,0x43,0x52,0x31,0x30,0x30,0x3C,0x2F,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E +,0x0A,0x09,0x09,0x3C,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x52,0x6F +,0x63,0x52,0x31,0x30,0x30,0x3C,0x2F,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65 +,0x3E,0x0A,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F +,0x6E,0x3E,0x52,0x61,0x74,0x65,0x20,0x6F,0x66,0x20,0x63,0x68,0x61,0x6E,0x67,0x65,0x20,0x72,0x61,0x74 +,0x69,0x6F,0x20,0x31,0x30,0x30,0x20,0x73,0x63,0x61,0x6C,0x65,0x3A,0x20,0x28,0x70,0x72,0x69,0x63,0x65 +,0x2F,0x70,0x72,0x65,0x76,0x50,0x72,0x69,0x63,0x65,0x29,0x2A,0x31,0x30,0x30,0x3C,0x2F,0x53,0x68,0x6F +,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x47,0x72 +,0x6F,0x75,0x70,0x49,0x64,0x3E,0x4D,0x6F,0x6D,0x65,0x6E,0x74,0x75,0x6D,0x20,0x49,0x6E,0x64,0x69,0x63 +,0x61,0x74,0x6F,0x72,0x73,0x3C,0x2F,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x0A,0x09,0x09,0x3C,0x52 +,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74 +,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74 +,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E +,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x69,0x6E,0x52,0x65,0x61,0x6C,0x3C,0x2F,0x4E,0x61 +,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70 +,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75 +,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A +,0x09,0x09,0x3C,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75 +,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49 +,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E +,0x61,0x6D,0x65,0x3E,0x54,0x69,0x6D,0x65,0x20,0x50,0x65,0x72,0x69,0x6F,0x64,0x3C,0x2F,0x4E,0x61,0x6D +,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70 +,0x74,0x69,0x6F,0x6E,0x3E,0x4E,0x75,0x6D,0x62,0x65,0x72,0x20,0x6F,0x66,0x20,0x70,0x65,0x72,0x69,0x6F +,0x64,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x49,0x6E,0x74,0x65,0x67,0x65,0x72,0x3C,0x2F +,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x09,0x3C,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x31,0x3C,0x2F,0x4D,0x69,0x6E,0x69,0x6D +,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x31,0x30 +,0x30,0x30,0x30,0x30,0x3C,0x2F,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09 +,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x31,0x30,0x30,0x30 +,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x31 +,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63,0x72 +,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73 +,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F +,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56 +,0x61,0x6C,0x75,0x65,0x3E,0x31,0x30,0x3C,0x2F,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75 +,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75 +,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F +,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09 +,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09 +,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72,0x72,0x61 +,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F +,0x75,0x74,0x52,0x65,0x61,0x6C,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46 +,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4C,0x69,0x6E +,0x65,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73 +,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E +,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E +,0x74,0x73,0x3E,0x0A,0x09,0x3C,0x2F,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63 +,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x0A,0x0A,0x09,0x3C,0x21,0x2D,0x2D,0x20,0x52,0x53,0x49,0x20,0x2D,0x2D +,0x3E,0x0A,0x09,0x3C,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F +,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x52 +,0x53,0x49,0x3C,0x2F,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09 +,0x3C,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x52,0x73,0x69,0x3C,0x2F +,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x3C,0x53,0x68 +,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x52,0x65,0x6C,0x61,0x74 +,0x69,0x76,0x65,0x20,0x53,0x74,0x72,0x65,0x6E,0x67,0x74,0x68,0x20,0x49,0x6E,0x64,0x65,0x78,0x3C,0x2F +,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09 +,0x3C,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x4D,0x6F,0x6D,0x65,0x6E,0x74,0x75,0x6D,0x20,0x49,0x6E +,0x64,0x69,0x63,0x61,0x74,0x6F,0x72,0x73,0x3C,0x2F,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x0A,0x09 +,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x55,0x6E +,0x73,0x74,0x61,0x62,0x6C,0x65,0x20,0x50,0x65,0x72,0x69,0x6F,0x64,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E +,0x0A,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69 +,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09 +,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75 +,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62 +,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x69,0x6E,0x52,0x65,0x61,0x6C,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A +,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72 +,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64 +,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F +,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74 +,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74 +,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E +,0x54,0x69,0x6D,0x65,0x20,0x50,0x65,0x72,0x69,0x6F,0x64,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E +,0x3E,0x4E,0x75,0x6D,0x62,0x65,0x72,0x20,0x6F,0x66,0x20,0x70,0x65,0x72,0x69,0x6F,0x64,0x3C,0x2F,0x53 +,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x49,0x6E,0x74,0x65,0x67,0x65,0x72,0x3C,0x2F,0x54,0x79,0x70,0x65 +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C +,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x32,0x3C,0x2F,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x31,0x30,0x30,0x30,0x30,0x30 +,0x3C,0x2F,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67 +,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F +,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x31,0x30,0x30,0x30,0x30 +,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E +,0x74,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49 +,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x52,0x61,0x6E,0x67 +,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65 +,0x3E,0x31,0x34,0x3C,0x2F,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x0A,0x09 +,0x09,0x09,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67 +,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49 +,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x75 +,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F +,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C +,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54 +,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x52,0x65 +,0x61,0x6C,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73 +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4C,0x69,0x6E,0x65,0x3C,0x2F,0x46 +,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09 +,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09 +,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A +,0x09,0x3C,0x2F,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E +,0x3E,0x0A,0x0A,0x0A,0x09,0x3C,0x21,0x2D,0x2D,0x20,0x53,0x41,0x52,0x20,0x2D,0x2D,0x3E,0x0A,0x09,0x3C +,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09 +,0x09,0x3C,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x53,0x41,0x52,0x3C,0x2F +,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x43,0x61,0x6D +,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x53,0x61,0x72,0x3C,0x2F,0x43,0x61,0x6D,0x65 +,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44 +,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x50,0x61,0x72,0x61,0x62,0x6F,0x6C,0x69,0x63 +,0x20,0x53,0x41,0x52,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69 +,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x4F,0x76,0x65,0x72,0x6C +,0x61,0x70,0x20,0x53,0x74,0x75,0x64,0x69,0x65,0x73,0x3C,0x2F,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E +,0x0A,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E +,0x4F,0x76,0x65,0x72,0x6C,0x61,0x70,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x46 +,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70 +,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71 +,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x48,0x69,0x67,0x68,0x3C,0x2F,0x54,0x79,0x70,0x65 +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x48,0x69,0x67,0x68,0x3C,0x2F,0x4E,0x61 +,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70 +,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75 +,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x4C,0x6F,0x77,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x4C,0x6F,0x77,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E +,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41 +,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65 +,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C +,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E +,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75 +,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65 +,0x3E,0x41,0x63,0x63,0x65,0x6C,0x65,0x72,0x61,0x74,0x69,0x6F,0x6E,0x20,0x46,0x61,0x63,0x74,0x6F,0x72 +,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65 +,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x41,0x63,0x63,0x65,0x6C,0x65,0x72,0x61,0x74,0x69 +,0x6F,0x6E,0x20,0x46,0x61,0x63,0x74,0x6F,0x72,0x20,0x75,0x73,0x65,0x64,0x20,0x75,0x70,0x20,0x74,0x6F +,0x20,0x74,0x68,0x65,0x20,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x20,0x76,0x61,0x6C,0x75,0x65,0x3C,0x2F +,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x3C,0x2F,0x54,0x79,0x70,0x65 +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C +,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x30,0x2E,0x30,0x30,0x30,0x30,0x30,0x30,0x65,0x2B,0x30,0x3C +,0x2F,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x61,0x78,0x69 +,0x6D,0x75,0x6D,0x3E,0x33,0x2E,0x30,0x30,0x30,0x30,0x30,0x30,0x65,0x2B,0x33,0x37,0x3C,0x2F,0x4D,0x61 +,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x50,0x72,0x65,0x63,0x69,0x73,0x69 +,0x6F,0x6E,0x3E,0x34,0x3C,0x2F,0x50,0x72,0x65,0x63,0x69,0x73,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x31,0x2E +,0x30,0x30,0x30,0x30,0x30,0x30,0x65,0x2D,0x32,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64 +,0x53,0x74,0x61,0x72,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74 +,0x65,0x64,0x45,0x6E,0x64,0x3E,0x32,0x2E,0x30,0x30,0x30,0x30,0x30,0x30,0x65,0x2D,0x31,0x3C,0x2F,0x53 +,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53 +,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x31,0x2E +,0x30,0x30,0x30,0x30,0x30,0x30,0x65,0x2D,0x32,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64 +,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x52,0x61,0x6E +,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75 +,0x65,0x3E,0x32,0x2E,0x30,0x30,0x30,0x30,0x30,0x30,0x65,0x2D,0x32,0x3C,0x2F,0x44,0x65,0x66,0x61,0x75 +,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E +,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09 +,0x3C,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65 +,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x41,0x46,0x20,0x4D,0x61,0x78 +,0x69,0x6D,0x75,0x6D,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x53,0x68,0x6F +,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x41,0x63,0x63,0x65,0x6C,0x65 +,0x72,0x61,0x74,0x69,0x6F,0x6E,0x20,0x46,0x61,0x63,0x74,0x6F,0x72,0x20,0x4D,0x61,0x78,0x69,0x6D,0x75 +,0x6D,0x20,0x76,0x61,0x6C,0x75,0x65,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69 +,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75 +,0x62,0x6C,0x65,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x52,0x61,0x6E,0x67 +,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x30,0x2E,0x30 +,0x30,0x30,0x30,0x30,0x30,0x65,0x2B,0x30,0x3C,0x2F,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x09,0x3C,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x33,0x2E,0x30,0x30,0x30,0x30,0x30 +,0x30,0x65,0x2B,0x33,0x37,0x3C,0x2F,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x09,0x3C,0x50,0x72,0x65,0x63,0x69,0x73,0x69,0x6F,0x6E,0x3E,0x34,0x3C,0x2F,0x50,0x72,0x65,0x63,0x69 +,0x73,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65 +,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x32,0x2E,0x30,0x30,0x30,0x30,0x30,0x30,0x65,0x2D,0x31,0x3C,0x2F +,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x34,0x2E,0x30,0x30,0x30 +,0x30,0x30,0x30,0x65,0x2D,0x31,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64 +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63 +,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x31,0x2E,0x30,0x30,0x30,0x30,0x30,0x30,0x65,0x2D,0x32,0x3C,0x2F +,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x3C,0x2F,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x44,0x65 +,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x32,0x2E,0x30,0x30,0x30,0x30,0x30,0x30,0x65 +,0x2D,0x31,0x3C,0x2F,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x0A,0x09,0x09 +,0x09,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75 +,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E +,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x75,0x74 +,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x75 +,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54 +,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79 +,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x52,0x65,0x61 +,0x6C,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4C,0x69,0x6E,0x65,0x3C,0x2F,0x46,0x6C +,0x61,0x67,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09 +,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09 +,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09 +,0x3C,0x2F,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E +,0x0A,0x0A,0x0A,0x09,0x3C,0x21,0x2D,0x2D,0x20,0x53,0x41,0x52,0x45,0x58,0x54,0x20,0x2D,0x2D,0x3E,0x0A +,0x09,0x3C,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E +,0x0A,0x09,0x09,0x3C,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x53,0x41,0x52 +,0x45,0x58,0x54,0x3C,0x2F,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09 +,0x09,0x3C,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x53,0x61,0x72,0x45 +,0x78,0x74,0x3C,0x2F,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09 +,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x50 +,0x61,0x72,0x61,0x62,0x6F,0x6C,0x69,0x63,0x20,0x53,0x41,0x52,0x20,0x2D,0x20,0x45,0x78,0x74,0x65,0x6E +,0x64,0x65,0x64,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F +,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x4F,0x76,0x65,0x72,0x6C,0x61 +,0x70,0x20,0x53,0x74,0x75,0x64,0x69,0x65,0x73,0x3C,0x2F,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x0A +,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4F +,0x76,0x65,0x72,0x6C,0x61,0x70,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x46,0x6C +,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75 +,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75 +,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x48,0x69,0x67,0x68,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x48,0x69,0x67,0x68,0x3C,0x2F,0x4E,0x61,0x6D +,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75 +,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69 +,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x4C,0x6F,0x77,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x4C,0x6F,0x77,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A +,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72 +,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64 +,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F +,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74 +,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74 +,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E +,0x53,0x74,0x61,0x72,0x74,0x20,0x56,0x61,0x6C,0x75,0x65,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E +,0x3E,0x53,0x74,0x61,0x72,0x74,0x20,0x76,0x61,0x6C,0x75,0x65,0x20,0x61,0x6E,0x64,0x20,0x64,0x69,0x72 +,0x65,0x63,0x74,0x69,0x6F,0x6E,0x2E,0x20,0x30,0x20,0x66,0x6F,0x72,0x20,0x41,0x75,0x74,0x6F,0x2C,0x20 +,0x26,0x67,0x74,0x3B,0x30,0x20,0x66,0x6F,0x72,0x20,0x4C,0x6F,0x6E,0x67,0x2C,0x20,0x26,0x6C,0x74,0x3B +,0x30,0x20,0x66,0x6F,0x72,0x20,0x53,0x68,0x6F,0x72,0x74,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65 +,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65 +,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C +,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D +,0x3E,0x2D,0x33,0x2E,0x30,0x30,0x30,0x30,0x30,0x30,0x65,0x2B,0x33,0x37,0x3C,0x2F,0x4D,0x69,0x6E,0x69 +,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x33 +,0x2E,0x30,0x30,0x30,0x30,0x30,0x30,0x65,0x2B,0x33,0x37,0x3C,0x2F,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x50,0x72,0x65,0x63,0x69,0x73,0x69,0x6F,0x6E,0x3E,0x34,0x3C +,0x2F,0x50,0x72,0x65,0x63,0x69,0x73,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75 +,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x30,0x2E,0x30,0x30,0x30,0x30,0x30 +,0x30,0x65,0x2B,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74 +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64 +,0x3E,0x30,0x2E,0x30,0x30,0x30,0x30,0x30,0x30,0x65,0x2B,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73 +,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73 +,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x30,0x2E,0x30,0x30,0x30,0x30,0x30 +,0x30,0x65,0x2B,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65 +,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x3C,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x30,0x2E,0x30 +,0x30,0x30,0x30,0x30,0x30,0x65,0x2B,0x30,0x3C,0x2F,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C +,0x75,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70 +,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x70,0x74,0x69 +,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x4F,0x66,0x66,0x73,0x65,0x74,0x20,0x6F,0x6E,0x20,0x52 +,0x65,0x76,0x65,0x72,0x73,0x65,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x53 +,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x50,0x65,0x72,0x63 +,0x65,0x6E,0x74,0x20,0x6F,0x66,0x66,0x73,0x65,0x74,0x20,0x61,0x64,0x64,0x65,0x64,0x2F,0x72,0x65,0x6D +,0x6F,0x76,0x65,0x64,0x20,0x74,0x6F,0x20,0x69,0x6E,0x69,0x74,0x69,0x61,0x6C,0x20,0x73,0x74,0x6F,0x70 +,0x20,0x6F,0x6E,0x20,0x73,0x68,0x6F,0x72,0x74,0x2F,0x6C,0x6F,0x6E,0x67,0x20,0x72,0x65,0x76,0x65,0x72 +,0x73,0x61,0x6C,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F +,0x6E,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x3C +,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x09,0x3C,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x30,0x2E,0x30,0x30,0x30,0x30,0x30 +,0x30,0x65,0x2B,0x30,0x3C,0x2F,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09 +,0x3C,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x33,0x2E,0x30,0x30,0x30,0x30,0x30,0x30,0x65,0x2B,0x33 +,0x37,0x3C,0x2F,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x50,0x72 +,0x65,0x63,0x69,0x73,0x69,0x6F,0x6E,0x3E,0x34,0x3C,0x2F,0x50,0x72,0x65,0x63,0x69,0x73,0x69,0x6F,0x6E +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61 +,0x72,0x74,0x3E,0x31,0x2E,0x30,0x30,0x30,0x30,0x30,0x30,0x65,0x2D,0x32,0x3C,0x2F,0x53,0x75,0x67,0x67 +,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75 +,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x31,0x2E,0x35,0x30,0x30,0x30,0x30,0x30,0x65 +,0x2D,0x31,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65 +,0x6E,0x74,0x3E,0x31,0x2E,0x30,0x30,0x30,0x30,0x30,0x30,0x65,0x2D,0x32,0x3C,0x2F,0x53,0x75,0x67,0x67 +,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x3C,0x2F,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x44,0x65,0x66,0x61,0x75,0x6C +,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x30,0x2E,0x30,0x30,0x30,0x30,0x30,0x30,0x65,0x2B,0x30,0x3C,0x2F +,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F +,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74 +,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41 +,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x41 +,0x46,0x20,0x49,0x6E,0x69,0x74,0x20,0x4C,0x6F,0x6E,0x67,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E +,0x3E,0x41,0x63,0x63,0x65,0x6C,0x65,0x72,0x61,0x74,0x69,0x6F,0x6E,0x20,0x46,0x61,0x63,0x74,0x6F,0x72 +,0x20,0x69,0x6E,0x69,0x74,0x69,0x61,0x6C,0x20,0x76,0x61,0x6C,0x75,0x65,0x20,0x66,0x6F,0x72,0x20,0x74 +,0x68,0x65,0x20,0x4C,0x6F,0x6E,0x67,0x20,0x64,0x69,0x72,0x65,0x63,0x74,0x69,0x6F,0x6E,0x3C,0x2F,0x53 +,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x3C,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D +,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x30,0x2E,0x30,0x30,0x30,0x30,0x30,0x30,0x65,0x2B,0x30,0x3C,0x2F +,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x61,0x78,0x69,0x6D +,0x75,0x6D,0x3E,0x33,0x2E,0x30,0x30,0x30,0x30,0x30,0x30,0x65,0x2B,0x33,0x37,0x3C,0x2F,0x4D,0x61,0x78 +,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x50,0x72,0x65,0x63,0x69,0x73,0x69,0x6F +,0x6E,0x3E,0x34,0x3C,0x2F,0x50,0x72,0x65,0x63,0x69,0x73,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x31,0x2E,0x30 +,0x30,0x30,0x30,0x30,0x30,0x65,0x2D,0x32,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53 +,0x74,0x61,0x72,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65 +,0x64,0x45,0x6E,0x64,0x3E,0x31,0x2E,0x39,0x30,0x30,0x30,0x30,0x30,0x65,0x2D,0x31,0x3C,0x2F,0x53,0x75 +,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75 +,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x31,0x2E,0x30 +,0x30,0x30,0x30,0x30,0x30,0x65,0x2D,0x32,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49 +,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x52,0x61,0x6E,0x67 +,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65 +,0x3E,0x32,0x2E,0x30,0x30,0x30,0x30,0x30,0x30,0x65,0x2D,0x32,0x3C,0x2F,0x44,0x65,0x66,0x61,0x75,0x6C +,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61 +,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C +,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E +,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x41,0x46,0x20,0x4C,0x6F,0x6E,0x67 +,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65 +,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x41,0x63,0x63,0x65,0x6C,0x65,0x72,0x61,0x74,0x69 +,0x6F,0x6E,0x20,0x46,0x61,0x63,0x74,0x6F,0x72,0x20,0x66,0x6F,0x72,0x20,0x74,0x68,0x65,0x20,0x4C,0x6F +,0x6E,0x67,0x20,0x64,0x69,0x72,0x65,0x63,0x74,0x69,0x6F,0x6E,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44 +,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70 +,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x3C,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x69,0x6E,0x69,0x6D,0x75 +,0x6D,0x3E,0x30,0x2E,0x30,0x30,0x30,0x30,0x30,0x30,0x65,0x2B,0x30,0x3C,0x2F,0x4D,0x69,0x6E,0x69,0x6D +,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x33,0x2E +,0x30,0x30,0x30,0x30,0x30,0x30,0x65,0x2B,0x33,0x37,0x3C,0x2F,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x50,0x72,0x65,0x63,0x69,0x73,0x69,0x6F,0x6E,0x3E,0x34,0x3C,0x2F +,0x50,0x72,0x65,0x63,0x69,0x73,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67 +,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x31,0x2E,0x30,0x30,0x30,0x30,0x30,0x30 +,0x65,0x2D,0x32,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E +,0x32,0x2E,0x30,0x30,0x30,0x30,0x30,0x30,0x65,0x2D,0x31,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74 +,0x65,0x64,0x45,0x6E,0x64,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74 +,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x31,0x2E,0x30,0x30,0x30,0x30,0x30,0x30 +,0x65,0x2D,0x32,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D +,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x3C,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x32,0x2E,0x30,0x30 +,0x30,0x30,0x30,0x30,0x65,0x2D,0x32,0x3C,0x2F,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75 +,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75 +,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x70,0x74,0x69,0x6F +,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x41,0x46,0x20,0x4D,0x61,0x78,0x20,0x4C,0x6F,0x6E,0x67,0x3C +,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73 +,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x41,0x63,0x63,0x65,0x6C,0x65,0x72,0x61,0x74,0x69,0x6F +,0x6E,0x20,0x46,0x61,0x63,0x74,0x6F,0x72,0x20,0x6D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x20,0x76,0x61,0x6C +,0x75,0x65,0x20,0x66,0x6F,0x72,0x20,0x74,0x68,0x65,0x20,0x4C,0x6F,0x6E,0x67,0x20,0x64,0x69,0x72,0x65 +,0x63,0x74,0x69,0x6F,0x6E,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74 +,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C +,0x65,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x52,0x61,0x6E,0x67,0x65,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x30,0x2E,0x30,0x30,0x30 +,0x30,0x30,0x30,0x65,0x2B,0x30,0x3C,0x2F,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x09,0x3C,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x33,0x2E,0x30,0x30,0x30,0x30,0x30,0x30,0x65 +,0x2B,0x33,0x37,0x3C,0x2F,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C +,0x50,0x72,0x65,0x63,0x69,0x73,0x69,0x6F,0x6E,0x3E,0x34,0x3C,0x2F,0x50,0x72,0x65,0x63,0x69,0x73,0x69 +,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53 +,0x74,0x61,0x72,0x74,0x3E,0x32,0x2E,0x30,0x30,0x30,0x30,0x30,0x30,0x65,0x2D,0x31,0x3C,0x2F,0x53,0x75 +,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C +,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x34,0x2E,0x30,0x30,0x30,0x30,0x30 +,0x30,0x65,0x2D,0x31,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65 +,0x6D,0x65,0x6E,0x74,0x3E,0x31,0x2E,0x30,0x30,0x30,0x30,0x30,0x30,0x65,0x2D,0x32,0x3C,0x2F,0x53,0x75 +,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x3C,0x2F,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x44,0x65,0x66,0x61 +,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x32,0x2E,0x30,0x30,0x30,0x30,0x30,0x30,0x65,0x2D,0x31 +,0x3C,0x2F,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C +,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65 +,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75 +,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65 +,0x3E,0x41,0x46,0x20,0x49,0x6E,0x69,0x74,0x20,0x53,0x68,0x6F,0x72,0x74,0x3C,0x2F,0x4E,0x61,0x6D,0x65 +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74 +,0x69,0x6F,0x6E,0x3E,0x41,0x63,0x63,0x65,0x6C,0x65,0x72,0x61,0x74,0x69,0x6F,0x6E,0x20,0x46,0x61,0x63 +,0x74,0x6F,0x72,0x20,0x69,0x6E,0x69,0x74,0x69,0x61,0x6C,0x20,0x76,0x61,0x6C,0x75,0x65,0x20,0x66,0x6F +,0x72,0x20,0x74,0x68,0x65,0x20,0x53,0x68,0x6F,0x72,0x74,0x20,0x64,0x69,0x72,0x65,0x63,0x74,0x69,0x6F +,0x6E,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x3C,0x2F,0x54 +,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x09,0x3C,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x30,0x2E,0x30,0x30,0x30,0x30,0x30,0x30,0x65 +,0x2B,0x30,0x3C,0x2F,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D +,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x33,0x2E,0x30,0x30,0x30,0x30,0x30,0x30,0x65,0x2B,0x33,0x37,0x3C +,0x2F,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x50,0x72,0x65,0x63 +,0x69,0x73,0x69,0x6F,0x6E,0x3E,0x34,0x3C,0x2F,0x50,0x72,0x65,0x63,0x69,0x73,0x69,0x6F,0x6E,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74 +,0x3E,0x31,0x2E,0x30,0x30,0x30,0x30,0x30,0x30,0x65,0x2D,0x32,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73 +,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67 +,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x31,0x2E,0x39,0x30,0x30,0x30,0x30,0x30,0x65,0x2D,0x31 +,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74 +,0x3E,0x31,0x2E,0x30,0x30,0x30,0x30,0x30,0x30,0x65,0x2D,0x32,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73 +,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F +,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56 +,0x61,0x6C,0x75,0x65,0x3E,0x32,0x2E,0x30,0x30,0x30,0x30,0x30,0x30,0x65,0x2D,0x32,0x3C,0x2F,0x44,0x65 +,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x70,0x74 +,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A +,0x09,0x09,0x09,0x3C,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67 +,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x41,0x46,0x20 +,0x53,0x68,0x6F,0x72,0x74,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x53,0x68 +,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x41,0x63,0x63,0x65,0x6C +,0x65,0x72,0x61,0x74,0x69,0x6F,0x6E,0x20,0x46,0x61,0x63,0x74,0x6F,0x72,0x20,0x66,0x6F,0x72,0x20,0x74 +,0x68,0x65,0x20,0x53,0x68,0x6F,0x72,0x74,0x20,0x64,0x69,0x72,0x65,0x63,0x74,0x69,0x6F,0x6E,0x3C,0x2F +,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x3C,0x2F,0x54,0x79,0x70,0x65 +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C +,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x30,0x2E,0x30,0x30,0x30,0x30,0x30,0x30,0x65,0x2B,0x30,0x3C +,0x2F,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x61,0x78,0x69 +,0x6D,0x75,0x6D,0x3E,0x33,0x2E,0x30,0x30,0x30,0x30,0x30,0x30,0x65,0x2B,0x33,0x37,0x3C,0x2F,0x4D,0x61 +,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x50,0x72,0x65,0x63,0x69,0x73,0x69 +,0x6F,0x6E,0x3E,0x34,0x3C,0x2F,0x50,0x72,0x65,0x63,0x69,0x73,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x31,0x2E +,0x30,0x30,0x30,0x30,0x30,0x30,0x65,0x2D,0x32,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64 +,0x53,0x74,0x61,0x72,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74 +,0x65,0x64,0x45,0x6E,0x64,0x3E,0x32,0x2E,0x30,0x30,0x30,0x30,0x30,0x30,0x65,0x2D,0x31,0x3C,0x2F,0x53 +,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53 +,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x31,0x2E +,0x30,0x30,0x30,0x30,0x30,0x30,0x65,0x2D,0x32,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64 +,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x52,0x61,0x6E +,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75 +,0x65,0x3E,0x32,0x2E,0x30,0x30,0x30,0x30,0x30,0x30,0x65,0x2D,0x32,0x3C,0x2F,0x44,0x65,0x66,0x61,0x75 +,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E +,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09 +,0x3C,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65 +,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x41,0x46,0x20,0x4D,0x61,0x78 +,0x20,0x53,0x68,0x6F,0x72,0x74,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x53 +,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x41,0x63,0x63,0x65 +,0x6C,0x65,0x72,0x61,0x74,0x69,0x6F,0x6E,0x20,0x46,0x61,0x63,0x74,0x6F,0x72,0x20,0x6D,0x61,0x78,0x69 +,0x6D,0x75,0x6D,0x20,0x76,0x61,0x6C,0x75,0x65,0x20,0x66,0x6F,0x72,0x20,0x74,0x68,0x65,0x20,0x53,0x68 +,0x6F,0x72,0x74,0x20,0x64,0x69,0x72,0x65,0x63,0x74,0x69,0x6F,0x6E,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74 +,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79 +,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x3C,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x69,0x6E,0x69,0x6D +,0x75,0x6D,0x3E,0x30,0x2E,0x30,0x30,0x30,0x30,0x30,0x30,0x65,0x2B,0x30,0x3C,0x2F,0x4D,0x69,0x6E,0x69 +,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x33 +,0x2E,0x30,0x30,0x30,0x30,0x30,0x30,0x65,0x2B,0x33,0x37,0x3C,0x2F,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x50,0x72,0x65,0x63,0x69,0x73,0x69,0x6F,0x6E,0x3E,0x34,0x3C +,0x2F,0x50,0x72,0x65,0x63,0x69,0x73,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75 +,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x32,0x2E,0x30,0x30,0x30,0x30,0x30 +,0x30,0x65,0x2D,0x31,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74 +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64 +,0x3E,0x34,0x2E,0x30,0x30,0x30,0x30,0x30,0x30,0x65,0x2D,0x31,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73 +,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73 +,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x31,0x2E,0x30,0x30,0x30,0x30,0x30 +,0x30,0x65,0x2D,0x32,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65 +,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x3C,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x32,0x2E,0x30 +,0x30,0x30,0x30,0x30,0x30,0x65,0x2D,0x31,0x3C,0x2F,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C +,0x75,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70 +,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x70,0x74,0x69 +,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A +,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A +,0x09,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72,0x72 +,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E +,0x6F,0x75,0x74,0x52,0x65,0x61,0x6C,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C +,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4C,0x69 +,0x6E,0x65,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67 +,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65 +,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65 +,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x3C,0x2F,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E +,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x0A,0x0A,0x09,0x3C,0x21,0x2D,0x2D,0x20,0x53,0x49,0x4E,0x20,0x2D +,0x2D,0x3E,0x0A,0x09,0x3C,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69 +,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E +,0x53,0x49,0x4E,0x3C,0x2F,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09 +,0x09,0x3C,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x53,0x69,0x6E,0x3C +,0x2F,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x3C,0x53 +,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x56,0x65,0x63,0x74 +,0x6F,0x72,0x20,0x54,0x72,0x69,0x67,0x6F,0x6E,0x6F,0x6D,0x65,0x74,0x72,0x69,0x63,0x20,0x53,0x69,0x6E +,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A +,0x09,0x09,0x3C,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x4D,0x61,0x74,0x68,0x20,0x54,0x72,0x61,0x6E +,0x73,0x66,0x6F,0x72,0x6D,0x3C,0x2F,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x0A,0x09,0x09,0x3C,0x52 +,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74 +,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74 +,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E +,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x69,0x6E,0x52,0x65,0x61,0x6C,0x3C,0x2F,0x4E,0x61 +,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70 +,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75 +,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A +,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A +,0x09,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72,0x72 +,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E +,0x6F,0x75,0x74,0x52,0x65,0x61,0x6C,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C +,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4C,0x69 +,0x6E,0x65,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67 +,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65 +,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65 +,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x3C,0x2F,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E +,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x0A,0x0A,0x09,0x3C,0x21,0x2D,0x2D,0x20,0x53,0x49,0x4E,0x48,0x20 +,0x2D,0x2D,0x3E,0x0A,0x09,0x3C,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74 +,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E +,0x3E,0x53,0x49,0x4E,0x48,0x3C,0x2F,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E +,0x0A,0x09,0x09,0x3C,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x53,0x69 +,0x6E,0x68,0x3C,0x2F,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09 +,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x56 +,0x65,0x63,0x74,0x6F,0x72,0x20,0x54,0x72,0x69,0x67,0x6F,0x6E,0x6F,0x6D,0x65,0x74,0x72,0x69,0x63,0x20 +,0x53,0x69,0x6E,0x68,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69 +,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x4D,0x61,0x74,0x68,0x20 +,0x54,0x72,0x61,0x6E,0x73,0x66,0x6F,0x72,0x6D,0x3C,0x2F,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x0A +,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75 +,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49 +,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54 +,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79 +,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x69,0x6E,0x52,0x65,0x61,0x6C +,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65 +,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F +,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E +,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E +,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65 +,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65 +,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E +,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x52,0x65,0x61,0x6C,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61 +,0x67,0x3E,0x4C,0x69,0x6E,0x65,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F +,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72 +,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72 +,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x3C,0x2F,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61 +,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x0A,0x0A,0x09,0x3C,0x21,0x2D,0x2D,0x20,0x53 +,0x4D,0x41,0x20,0x2D,0x2D,0x3E,0x0A,0x09,0x3C,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75 +,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74 +,0x69,0x6F,0x6E,0x3E,0x53,0x4D,0x41,0x3C,0x2F,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F +,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E +,0x53,0x6D,0x61,0x3C,0x2F,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x0A +,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E +,0x53,0x69,0x6D,0x70,0x6C,0x65,0x20,0x4D,0x6F,0x76,0x69,0x6E,0x67,0x20,0x41,0x76,0x65,0x72,0x61,0x67 +,0x65,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E +,0x0A,0x09,0x09,0x3C,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x4F,0x76,0x65,0x72,0x6C,0x61,0x70,0x20 +,0x53,0x74,0x75,0x64,0x69,0x65,0x73,0x3C,0x2F,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x0A,0x09,0x09 +,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4F,0x76,0x65 +,0x72,0x6C,0x61,0x70,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67 +,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41 +,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72 +,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79,0x3C +,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x69,0x6E,0x52 +,0x65,0x61,0x6C,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75 +,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09 +,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75 +,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E +,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x70 +,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x54,0x69,0x6D,0x65,0x20,0x50,0x65,0x72,0x69 +,0x6F,0x64,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74 +,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x4E,0x75,0x6D,0x62,0x65,0x72,0x20,0x6F +,0x66,0x20,0x70,0x65,0x72,0x69,0x6F,0x64,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72 +,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x49,0x6E +,0x74,0x65,0x67,0x65,0x72,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x52,0x61 +,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x32 +,0x3C,0x2F,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x61,0x78 +,0x69,0x6D,0x75,0x6D,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61 +,0x72,0x74,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64 +,0x53,0x74,0x61,0x72,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74 +,0x65,0x64,0x45,0x6E,0x64,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73 +,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73 +,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C +,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x44 +,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x33,0x30,0x3C,0x2F,0x44,0x65,0x66,0x61 +,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F +,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09 +,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D +,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D +,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75 +,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62 +,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x52,0x65,0x61,0x6C,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x46 +,0x6C,0x61,0x67,0x3E,0x4C,0x69,0x6E,0x65,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74 +,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74 +,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x3C,0x2F,0x46,0x69,0x6E,0x61,0x6E,0x63 +,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x0A,0x0A,0x09,0x3C,0x21,0x2D,0x2D +,0x20,0x53,0x51,0x52,0x54,0x20,0x2D,0x2D,0x3E,0x0A,0x09,0x3C,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61 +,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x41,0x62,0x62,0x72,0x65,0x76 +,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x53,0x51,0x52,0x54,0x3C,0x2F,0x41,0x62,0x62,0x72,0x65,0x76,0x69 +,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E +,0x61,0x6D,0x65,0x3E,0x53,0x71,0x72,0x74,0x3C,0x2F,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E +,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70 +,0x74,0x69,0x6F,0x6E,0x3E,0x56,0x65,0x63,0x74,0x6F,0x72,0x20,0x53,0x71,0x75,0x61,0x72,0x65,0x20,0x52 +,0x6F,0x6F,0x74,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F +,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x4D,0x61,0x74,0x68,0x20,0x54 +,0x72,0x61,0x6E,0x73,0x66,0x6F,0x72,0x6D,0x3C,0x2F,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x0A,0x09 +,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D +,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E +,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79 +,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70 +,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x69,0x6E,0x52,0x65,0x61,0x6C,0x3C +,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64 +,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x52 +,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74 +,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74 +,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E +,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20 +,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61 +,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x52,0x65,0x61,0x6C,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67 +,0x3E,0x4C,0x69,0x6E,0x65,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x46 +,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67 +,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67 +,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x3C,0x2F,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C +,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x0A,0x0A,0x09,0x3C,0x21,0x2D,0x2D,0x20,0x53,0x54 +,0x44,0x44,0x45,0x56,0x20,0x2D,0x2D,0x3E,0x0A,0x09,0x3C,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C +,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x41,0x62,0x62,0x72,0x65,0x76,0x69 +,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x53,0x54,0x44,0x44,0x45,0x56,0x3C,0x2F,0x41,0x62,0x62,0x72,0x65,0x76 +,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65 +,0x4E,0x61,0x6D,0x65,0x3E,0x53,0x74,0x64,0x44,0x65,0x76,0x3C,0x2F,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61 +,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63 +,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x53,0x74,0x61,0x6E,0x64,0x61,0x72,0x64,0x20,0x44,0x65,0x76 +,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70 +,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x53,0x74,0x61 +,0x74,0x69,0x73,0x74,0x69,0x63,0x20,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x73,0x3C,0x2F,0x47,0x72 +,0x6F,0x75,0x70,0x49,0x64,0x3E,0x0A,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E +,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65 +,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72 +,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65 +,0x3E,0x69,0x6E,0x52,0x65,0x61,0x6C,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F +,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E +,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74 +,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x70,0x74,0x69,0x6F,0x6E +,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09 +,0x09,0x3C,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D +,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x54,0x69,0x6D,0x65,0x20 +,0x50,0x65,0x72,0x69,0x6F,0x64,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x53 +,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x4E,0x75,0x6D,0x62 +,0x65,0x72,0x20,0x6F,0x66,0x20,0x70,0x65,0x72,0x69,0x6F,0x64,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44 +,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70 +,0x65,0x3E,0x49,0x6E,0x74,0x65,0x67,0x65,0x72,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x3C,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x69,0x6E,0x69,0x6D +,0x75,0x6D,0x3E,0x32,0x3C,0x2F,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09 +,0x3C,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x4D,0x61,0x78 +,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65 +,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65 +,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67 +,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75 +,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75 +,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x31,0x30,0x30 +,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D +,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x3C,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x35,0x3C,0x2F,0x44 +,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x70 +,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E +,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72 +,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x44,0x65 +,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x73,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x4E,0x62 +,0x20,0x6F,0x66,0x20,0x64,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x73,0x3C,0x2F,0x53,0x68,0x6F,0x72 +,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54 +,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x3C,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x69,0x6E,0x69 +,0x6D,0x75,0x6D,0x3E,0x2D,0x33,0x2E,0x30,0x30,0x30,0x30,0x30,0x30,0x65,0x2B,0x33,0x37,0x3C,0x2F,0x4D +,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x61,0x78,0x69,0x6D,0x75 +,0x6D,0x3E,0x33,0x2E,0x30,0x30,0x30,0x30,0x30,0x30,0x65,0x2B,0x33,0x37,0x3C,0x2F,0x4D,0x61,0x78,0x69 +,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x50,0x72,0x65,0x63,0x69,0x73,0x69,0x6F,0x6E +,0x3E,0x32,0x3C,0x2F,0x50,0x72,0x65,0x63,0x69,0x73,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09 +,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x2D,0x32,0x2E,0x30 +,0x30,0x30,0x30,0x30,0x30,0x65,0x2B,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53 +,0x74,0x61,0x72,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65 +,0x64,0x45,0x6E,0x64,0x3E,0x32,0x2E,0x30,0x30,0x30,0x30,0x30,0x30,0x65,0x2B,0x30,0x3C,0x2F,0x53,0x75 +,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75 +,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x32,0x2E,0x30 +,0x30,0x30,0x30,0x30,0x30,0x65,0x2D,0x31,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49 +,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x52,0x61,0x6E,0x67 +,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65 +,0x3E,0x31,0x2E,0x30,0x30,0x30,0x30,0x30,0x30,0x65,0x2B,0x30,0x3C,0x2F,0x44,0x65,0x66,0x61,0x75,0x6C +,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61 +,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F +,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E +,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E +,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65 +,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65 +,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E +,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x52,0x65,0x61,0x6C,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61 +,0x67,0x3E,0x4C,0x69,0x6E,0x65,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F +,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72 +,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72 +,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x3C,0x2F,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61 +,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x0A,0x0A,0x09,0x3C,0x21,0x2D,0x2D,0x20,0x53 +,0x54,0x4F,0x43,0x48,0x20,0x2D,0x2D,0x3E,0x0A,0x09,0x3C,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C +,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x41,0x62,0x62,0x72,0x65,0x76,0x69 +,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x53,0x54,0x4F,0x43,0x48,0x3C,0x2F,0x41,0x62,0x62,0x72,0x65,0x76,0x69 +,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E +,0x61,0x6D,0x65,0x3E,0x53,0x74,0x6F,0x63,0x68,0x3C,0x2F,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65 +,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69 +,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x53,0x74,0x6F,0x63,0x68,0x61,0x73,0x74,0x69,0x63,0x3C,0x2F,0x53,0x68 +,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x47 +,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x4D,0x6F,0x6D,0x65,0x6E,0x74,0x75,0x6D,0x20,0x49,0x6E,0x64,0x69 +,0x63,0x61,0x74,0x6F,0x72,0x73,0x3C,0x2F,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x0A,0x09,0x09,0x3C +,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E +,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75 +,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65 +,0x3E,0x48,0x69,0x67,0x68,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61 +,0x6D,0x65,0x3E,0x48,0x69,0x67,0x68,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F +,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E +,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74 +,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E +,0x4C,0x6F,0x77,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65 +,0x3E,0x4C,0x6F,0x77,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71 +,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A +,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67 +,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x43,0x6C,0x6F +,0x73,0x65,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E +,0x43,0x6C,0x6F,0x73,0x65,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65 +,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E +,0x0A,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72 +,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C +,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C +,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E +,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x46,0x61,0x73,0x74,0x2D,0x4B,0x20 +,0x50,0x65,0x72,0x69,0x6F,0x64,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x53 +,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x54,0x69,0x6D,0x65 +,0x20,0x70,0x65,0x72,0x69,0x6F,0x64,0x20,0x66,0x6F,0x72,0x20,0x62,0x75,0x69,0x6C,0x64,0x69,0x6E,0x67 +,0x20,0x74,0x68,0x65,0x20,0x46,0x61,0x73,0x74,0x2D,0x4B,0x20,0x6C,0x69,0x6E,0x65,0x3C,0x2F,0x53,0x68 +,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x3C,0x54,0x79,0x70,0x65,0x3E,0x49,0x6E,0x74,0x65,0x67,0x65,0x72,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x3C,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D +,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x31,0x3C,0x2F,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x09,0x3C,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C +,0x2F,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67 +,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53 +,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09 +,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x31,0x30,0x30,0x30,0x30,0x30 +,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74 +,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E +,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x52,0x61,0x6E,0x67,0x65 +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E +,0x35,0x3C,0x2F,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x0A,0x09,0x09,0x09 +,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D +,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70 +,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D +,0x65,0x3E,0x53,0x6C,0x6F,0x77,0x2D,0x4B,0x20,0x50,0x65,0x72,0x69,0x6F,0x64,0x3C,0x2F,0x4E,0x61,0x6D +,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70 +,0x74,0x69,0x6F,0x6E,0x3E,0x53,0x6D,0x6F,0x6F,0x74,0x68,0x69,0x6E,0x67,0x20,0x66,0x6F,0x72,0x20,0x6D +,0x61,0x6B,0x69,0x6E,0x67,0x20,0x74,0x68,0x65,0x20,0x53,0x6C,0x6F,0x77,0x2D,0x4B,0x20,0x6C,0x69,0x6E +,0x65,0x2E,0x20,0x55,0x73,0x75,0x61,0x6C,0x6C,0x79,0x20,0x73,0x65,0x74,0x20,0x74,0x6F,0x20,0x33,0x3C +,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x49,0x6E,0x74,0x65,0x67,0x65,0x72,0x3C,0x2F,0x54,0x79 +,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x09,0x3C,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x31,0x3C,0x2F,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x31,0x30,0x30,0x30 +,0x30,0x30,0x3C,0x2F,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53 +,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x31,0x30,0x30,0x30,0x30,0x30 +,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x31,0x30,0x30 +,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D +,0x65,0x6E,0x74,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65 +,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x52,0x61 +,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C +,0x75,0x65,0x3E,0x33,0x3C,0x2F,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x0A +,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72 +,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C +,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C +,0x4E,0x61,0x6D,0x65,0x3E,0x53,0x6C,0x6F,0x77,0x2D,0x4B,0x20,0x4D,0x41,0x3C,0x2F,0x4E,0x61,0x6D,0x65 +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74 +,0x69,0x6F,0x6E,0x3E,0x54,0x79,0x70,0x65,0x20,0x6F,0x66,0x20,0x4D,0x6F,0x76,0x69,0x6E,0x67,0x20,0x41 +,0x76,0x65,0x72,0x61,0x67,0x65,0x20,0x66,0x6F,0x72,0x20,0x53,0x6C,0x6F,0x77,0x2D,0x4B,0x3C,0x2F,0x53 +,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x4D,0x41,0x20,0x54,0x79,0x70,0x65,0x3C,0x2F,0x54,0x79,0x70,0x65 +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E +,0x30,0x3C,0x2F,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x0A,0x09,0x09,0x09 +,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D +,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70 +,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D +,0x65,0x3E,0x53,0x6C,0x6F,0x77,0x2D,0x44,0x20,0x50,0x65,0x72,0x69,0x6F,0x64,0x3C,0x2F,0x4E,0x61,0x6D +,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70 +,0x74,0x69,0x6F,0x6E,0x3E,0x53,0x6D,0x6F,0x6F,0x74,0x68,0x69,0x6E,0x67,0x20,0x66,0x6F,0x72,0x20,0x6D +,0x61,0x6B,0x69,0x6E,0x67,0x20,0x74,0x68,0x65,0x20,0x53,0x6C,0x6F,0x77,0x2D,0x44,0x20,0x6C,0x69,0x6E +,0x65,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x49,0x6E,0x74,0x65,0x67,0x65,0x72,0x3C,0x2F +,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x09,0x3C,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x31,0x3C,0x2F,0x4D,0x69,0x6E,0x69,0x6D +,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x31,0x30 +,0x30,0x30,0x30,0x30,0x3C,0x2F,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09 +,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x31,0x30,0x30,0x30 +,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x31 +,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63,0x72 +,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73 +,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F +,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56 +,0x61,0x6C,0x75,0x65,0x3E,0x33,0x3C,0x2F,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65 +,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74 +,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x70,0x74,0x69,0x6F,0x6E +,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x53,0x6C,0x6F,0x77,0x2D,0x44,0x20,0x4D,0x41,0x3C,0x2F,0x4E,0x61 +,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69 +,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x54,0x79,0x70,0x65,0x20,0x6F,0x66,0x20,0x4D,0x6F,0x76,0x69,0x6E,0x67 +,0x20,0x41,0x76,0x65,0x72,0x61,0x67,0x65,0x20,0x66,0x6F,0x72,0x20,0x53,0x6C,0x6F,0x77,0x2D,0x44,0x3C +,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x4D,0x41,0x20,0x54,0x79,0x70,0x65,0x3C,0x2F,0x54,0x79 +,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75 +,0x65,0x3E,0x30,0x3C,0x2F,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x0A,0x09 +,0x09,0x09,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67 +,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49 +,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x75 +,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F +,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C +,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54 +,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x53,0x6C +,0x6F,0x77,0x4B,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67 +,0x73,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x44,0x61,0x73,0x68,0x65,0x64 +,0x20,0x4C,0x69,0x6E,0x65,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x46 +,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67 +,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67 +,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75 +,0x62,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x53,0x6C,0x6F,0x77,0x44,0x3C,0x2F,0x4E,0x61,0x6D +,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09 +,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x44,0x61,0x73,0x68,0x65,0x64,0x20,0x4C,0x69,0x6E,0x65,0x3C,0x2F,0x46 +,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09 +,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09 +,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A +,0x09,0x3C,0x2F,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E +,0x3E,0x0A,0x0A,0x0A,0x09,0x3C,0x21,0x2D,0x2D,0x20,0x53,0x54,0x4F,0x43,0x48,0x46,0x20,0x2D,0x2D,0x3E +,0x0A,0x09,0x3C,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E +,0x3E,0x0A,0x09,0x09,0x3C,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x53,0x54 +,0x4F,0x43,0x48,0x46,0x3C,0x2F,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x0A +,0x09,0x09,0x3C,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x53,0x74,0x6F +,0x63,0x68,0x46,0x3C,0x2F,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x0A +,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E +,0x53,0x74,0x6F,0x63,0x68,0x61,0x73,0x74,0x69,0x63,0x20,0x46,0x61,0x73,0x74,0x3C,0x2F,0x53,0x68,0x6F +,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x47,0x72 +,0x6F,0x75,0x70,0x49,0x64,0x3E,0x4D,0x6F,0x6D,0x65,0x6E,0x74,0x75,0x6D,0x20,0x49,0x6E,0x64,0x69,0x63 +,0x61,0x74,0x6F,0x72,0x73,0x3C,0x2F,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x0A,0x09,0x09,0x3C,0x52 +,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74 +,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74 +,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E +,0x48,0x69,0x67,0x68,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D +,0x65,0x3E,0x48,0x69,0x67,0x68,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52 +,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74 +,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41 +,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x4C +,0x6F,0x77,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E +,0x4C,0x6F,0x77,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75 +,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09 +,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75 +,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x43,0x6C,0x6F,0x73 +,0x65,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x43 +,0x6C,0x6F,0x73,0x65,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71 +,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A +,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67 +,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49 +,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F +,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74 +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x46,0x61,0x73,0x74,0x2D,0x4B,0x20,0x50 +,0x65,0x72,0x69,0x6F,0x64,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x53,0x68 +,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x54,0x69,0x6D,0x65,0x20 +,0x70,0x65,0x72,0x69,0x6F,0x64,0x20,0x66,0x6F,0x72,0x20,0x62,0x75,0x69,0x6C,0x64,0x69,0x6E,0x67,0x20 +,0x74,0x68,0x65,0x20,0x46,0x61,0x73,0x74,0x2D,0x4B,0x20,0x6C,0x69,0x6E,0x65,0x3C,0x2F,0x53,0x68,0x6F +,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C +,0x54,0x79,0x70,0x65,0x3E,0x49,0x6E,0x74,0x65,0x67,0x65,0x72,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x3C,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x69 +,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x31,0x3C,0x2F,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x09,0x3C,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F +,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65 +,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75 +,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C +,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C +,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09 +,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E +,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63 +,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x52,0x61,0x6E,0x67,0x65,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x3C,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x35 +,0x3C,0x2F,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C +,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65 +,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75 +,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65 +,0x3E,0x46,0x61,0x73,0x74,0x2D,0x44,0x20,0x50,0x65,0x72,0x69,0x6F,0x64,0x3C,0x2F,0x4E,0x61,0x6D,0x65 +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74 +,0x69,0x6F,0x6E,0x3E,0x53,0x6D,0x6F,0x6F,0x74,0x68,0x69,0x6E,0x67,0x20,0x66,0x6F,0x72,0x20,0x6D,0x61 +,0x6B,0x69,0x6E,0x67,0x20,0x74,0x68,0x65,0x20,0x46,0x61,0x73,0x74,0x2D,0x44,0x20,0x6C,0x69,0x6E,0x65 +,0x2E,0x20,0x55,0x73,0x75,0x61,0x6C,0x6C,0x79,0x20,0x73,0x65,0x74,0x20,0x74,0x6F,0x20,0x33,0x3C,0x2F +,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x49,0x6E,0x74,0x65,0x67,0x65,0x72,0x3C,0x2F,0x54,0x79,0x70 +,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09 +,0x3C,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x31,0x3C,0x2F,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x31,0x30,0x30,0x30,0x30 +,0x30,0x3C,0x2F,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75 +,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C +,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x31,0x30,0x30,0x30 +,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65 +,0x6E,0x74,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64 +,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x52,0x61,0x6E +,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75 +,0x65,0x3E,0x33,0x3C,0x2F,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x0A,0x09 +,0x09,0x09,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67 +,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49 +,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E +,0x61,0x6D,0x65,0x3E,0x46,0x61,0x73,0x74,0x2D,0x44,0x20,0x4D,0x41,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69 +,0x6F,0x6E,0x3E,0x54,0x79,0x70,0x65,0x20,0x6F,0x66,0x20,0x4D,0x6F,0x76,0x69,0x6E,0x67,0x20,0x41,0x76 +,0x65,0x72,0x61,0x67,0x65,0x20,0x66,0x6F,0x72,0x20,0x46,0x61,0x73,0x74,0x2D,0x44,0x3C,0x2F,0x53,0x68 +,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x3C,0x54,0x79,0x70,0x65,0x3E,0x4D,0x41,0x20,0x54,0x79,0x70,0x65,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x3C,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x30 +,0x3C,0x2F,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C +,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65 +,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75 +,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75 +,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70 +,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70 +,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65 +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x46,0x61,0x73,0x74,0x4B +,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4C,0x69,0x6E,0x65,0x3C,0x2F,0x46,0x6C,0x61 +,0x67,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C +,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09 +,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79,0x3C +,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74 +,0x46,0x61,0x73,0x74,0x44,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C +,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4C,0x69,0x6E,0x65 +,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E +,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74 +,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74 +,0x73,0x3E,0x0A,0x09,0x3C,0x2F,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74 +,0x69,0x6F,0x6E,0x3E,0x0A,0x0A,0x0A,0x09,0x3C,0x21,0x2D,0x2D,0x20,0x53,0x54,0x4F,0x43,0x48,0x52,0x53 +,0x49,0x20,0x2D,0x2D,0x3E,0x0A,0x09,0x3C,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E +,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69 +,0x6F,0x6E,0x3E,0x53,0x54,0x4F,0x43,0x48,0x52,0x53,0x49,0x3C,0x2F,0x41,0x62,0x62,0x72,0x65,0x76,0x69 +,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E +,0x61,0x6D,0x65,0x3E,0x53,0x74,0x6F,0x63,0x68,0x52,0x73,0x69,0x3C,0x2F,0x43,0x61,0x6D,0x65,0x6C,0x43 +,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73 +,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x53,0x74,0x6F,0x63,0x68,0x61,0x73,0x74,0x69,0x63,0x20 +,0x52,0x65,0x6C,0x61,0x74,0x69,0x76,0x65,0x20,0x53,0x74,0x72,0x65,0x6E,0x67,0x74,0x68,0x20,0x49,0x6E +,0x64,0x65,0x78,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F +,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x4D,0x6F,0x6D,0x65,0x6E,0x74 +,0x75,0x6D,0x20,0x49,0x6E,0x64,0x69,0x63,0x61,0x74,0x6F,0x72,0x73,0x3C,0x2F,0x47,0x72,0x6F,0x75,0x70 +,0x49,0x64,0x3E,0x0A,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x46,0x6C +,0x61,0x67,0x3E,0x55,0x6E,0x73,0x74,0x61,0x62,0x6C,0x65,0x20,0x50,0x65,0x72,0x69,0x6F,0x64,0x3C,0x2F +,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x3C +,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E +,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75 +,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65 +,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x69,0x6E,0x52,0x65,0x61,0x6C,0x3C,0x2F,0x4E +,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E +,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71 +,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E +,0x0A,0x09,0x09,0x3C,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67 +,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C +,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C +,0x4E,0x61,0x6D,0x65,0x3E,0x54,0x69,0x6D,0x65,0x20,0x50,0x65,0x72,0x69,0x6F,0x64,0x3C,0x2F,0x4E,0x61 +,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69 +,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x4E,0x75,0x6D,0x62,0x65,0x72,0x20,0x6F,0x66,0x20,0x70,0x65,0x72,0x69 +,0x6F,0x64,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x49,0x6E,0x74,0x65,0x67,0x65,0x72,0x3C +,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x09,0x3C,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x32,0x3C,0x2F,0x4D,0x69,0x6E,0x69 +,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x31 +,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x31,0x30,0x30 +,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E +,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64 +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63 +,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65 +,0x73,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C +,0x2F,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x44,0x65,0x66,0x61,0x75,0x6C,0x74 +,0x56,0x61,0x6C,0x75,0x65,0x3E,0x31,0x34,0x3C,0x2F,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C +,0x75,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70 +,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x70,0x74,0x69 +,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x46,0x61,0x73,0x74,0x2D,0x4B,0x20,0x50,0x65,0x72,0x69 +,0x6F,0x64,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74 +,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x54,0x69,0x6D,0x65,0x20,0x70,0x65,0x72 +,0x69,0x6F,0x64,0x20,0x66,0x6F,0x72,0x20,0x62,0x75,0x69,0x6C,0x64,0x69,0x6E,0x67,0x20,0x74,0x68,0x65 +,0x20,0x46,0x61,0x73,0x74,0x2D,0x4B,0x20,0x6C,0x69,0x6E,0x65,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44 +,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70 +,0x65,0x3E,0x49,0x6E,0x74,0x65,0x67,0x65,0x72,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x3C,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x69,0x6E,0x69,0x6D +,0x75,0x6D,0x3E,0x31,0x3C,0x2F,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09 +,0x3C,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x4D,0x61,0x78 +,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65 +,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65 +,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67 +,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75 +,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75 +,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x31,0x30,0x30 +,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D +,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x3C,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x35,0x3C,0x2F,0x44 +,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x70 +,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E +,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72 +,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x46,0x61 +,0x73,0x74,0x2D,0x44,0x20,0x50,0x65,0x72,0x69,0x6F,0x64,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E +,0x3E,0x53,0x6D,0x6F,0x6F,0x74,0x68,0x69,0x6E,0x67,0x20,0x66,0x6F,0x72,0x20,0x6D,0x61,0x6B,0x69,0x6E +,0x67,0x20,0x74,0x68,0x65,0x20,0x46,0x61,0x73,0x74,0x2D,0x44,0x20,0x6C,0x69,0x6E,0x65,0x2E,0x20,0x55 +,0x73,0x75,0x61,0x6C,0x6C,0x79,0x20,0x73,0x65,0x74,0x20,0x74,0x6F,0x20,0x33,0x3C,0x2F,0x53,0x68,0x6F +,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C +,0x54,0x79,0x70,0x65,0x3E,0x49,0x6E,0x74,0x65,0x67,0x65,0x72,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x3C,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x69 +,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x31,0x3C,0x2F,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x09,0x3C,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F +,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65 +,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75 +,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C +,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C +,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09 +,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E +,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63 +,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x52,0x61,0x6E,0x67,0x65,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x3C,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x33 +,0x3C,0x2F,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C +,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65 +,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75 +,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65 +,0x3E,0x46,0x61,0x73,0x74,0x2D,0x44,0x20,0x4D,0x41,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E +,0x54,0x79,0x70,0x65,0x20,0x6F,0x66,0x20,0x4D,0x6F,0x76,0x69,0x6E,0x67,0x20,0x41,0x76,0x65,0x72,0x61 +,0x67,0x65,0x20,0x66,0x6F,0x72,0x20,0x46,0x61,0x73,0x74,0x2D,0x44,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74 +,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79 +,0x70,0x65,0x3E,0x4D,0x41,0x20,0x54,0x79,0x70,0x65,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x3C,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x30,0x3C,0x2F,0x44 +,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x70 +,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E +,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72 +,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72 +,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41 +,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44 +,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x46,0x61,0x73,0x74,0x4B,0x3C,0x2F,0x4E +,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4C,0x69,0x6E,0x65,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x75 +,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x75 +,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54 +,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79 +,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x46,0x61,0x73 +,0x74,0x44,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73 +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4C,0x69,0x6E,0x65,0x3C,0x2F,0x46 +,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09 +,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09 +,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A +,0x09,0x3C,0x2F,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E +,0x3E,0x0A,0x0A,0x0A,0x09,0x3C,0x21,0x2D,0x2D,0x20,0x53,0x55,0x42,0x20,0x2D,0x2D,0x3E,0x0A,0x09,0x3C +,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09 +,0x09,0x3C,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x53,0x55,0x42,0x3C,0x2F +,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x43,0x61,0x6D +,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x53,0x75,0x62,0x3C,0x2F,0x43,0x61,0x6D,0x65 +,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44 +,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x56,0x65,0x63,0x74,0x6F,0x72,0x20,0x41,0x72 +,0x69,0x74,0x68,0x6D,0x65,0x74,0x69,0x63,0x20,0x53,0x75,0x62,0x73,0x74,0x72,0x61,0x63,0x74,0x69,0x6F +,0x6E,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E +,0x0A,0x09,0x09,0x3C,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x4D,0x61,0x74,0x68,0x20,0x4F,0x70,0x65 +,0x72,0x61,0x74,0x6F,0x72,0x73,0x3C,0x2F,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x0A,0x09,0x09,0x3C +,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E +,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75 +,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65 +,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x69,0x6E,0x52,0x65,0x61,0x6C,0x30,0x3C,0x2F +,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49 +,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65 +,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72 +,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65 +,0x3E,0x69,0x6E,0x52,0x65,0x61,0x6C,0x31,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C +,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65 +,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75 +,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75 +,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70 +,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70 +,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65 +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x52,0x65,0x61,0x6C,0x3C +,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4C,0x69,0x6E,0x65,0x3C,0x2F,0x46,0x6C,0x61,0x67 +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F +,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F +,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x3C,0x2F +,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x0A +,0x0A,0x09,0x3C,0x21,0x2D,0x2D,0x20,0x53,0x55,0x4D,0x20,0x2D,0x2D,0x3E,0x0A,0x09,0x3C,0x46,0x69,0x6E +,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x41 +,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x53,0x55,0x4D,0x3C,0x2F,0x41,0x62,0x62 +,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x43,0x61,0x6D,0x65,0x6C,0x43 +,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x53,0x75,0x6D,0x3C,0x2F,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61 +,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63 +,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x53,0x75,0x6D,0x6D,0x61,0x74,0x69,0x6F,0x6E,0x3C,0x2F,0x53 +,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C +,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x4D,0x61,0x74,0x68,0x20,0x4F,0x70,0x65,0x72,0x61,0x74,0x6F +,0x72,0x73,0x3C,0x2F,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x0A,0x09,0x09,0x3C,0x52,0x65,0x71,0x75 +,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A +,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67 +,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75 +,0x62,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x69,0x6E,0x52,0x65,0x61,0x6C,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E +,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41 +,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65 +,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C +,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E +,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75 +,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65 +,0x3E,0x54,0x69,0x6D,0x65,0x20,0x50,0x65,0x72,0x69,0x6F,0x64,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F +,0x6E,0x3E,0x4E,0x75,0x6D,0x62,0x65,0x72,0x20,0x6F,0x66,0x20,0x70,0x65,0x72,0x69,0x6F,0x64,0x3C,0x2F +,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x49,0x6E,0x74,0x65,0x67,0x65,0x72,0x3C,0x2F,0x54,0x79,0x70 +,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09 +,0x3C,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x32,0x3C,0x2F,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x31,0x30,0x30,0x30,0x30 +,0x30,0x3C,0x2F,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75 +,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C +,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x31,0x30,0x30,0x30 +,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65 +,0x6E,0x74,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64 +,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x52,0x61,0x6E +,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75 +,0x65,0x3E,0x33,0x30,0x3C,0x2F,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x0A +,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72 +,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C +,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F +,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C +,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F +,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x52 +,0x65,0x61,0x6C,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67 +,0x73,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4C,0x69,0x6E,0x65,0x3C,0x2F +,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09 +,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A +,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E +,0x0A,0x09,0x3C,0x2F,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F +,0x6E,0x3E,0x0A,0x0A,0x0A,0x09,0x3C,0x21,0x2D,0x2D,0x20,0x54,0x33,0x20,0x2D,0x2D,0x3E,0x0A,0x09,0x3C +,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09 +,0x09,0x3C,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x54,0x33,0x3C,0x2F,0x41 +,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x43,0x61,0x6D,0x65 +,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x54,0x33,0x3C,0x2F,0x43,0x61,0x6D,0x65,0x6C,0x43 +,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73 +,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x54,0x72,0x69,0x70,0x6C,0x65,0x20,0x45,0x78,0x70,0x6F +,0x6E,0x65,0x6E,0x74,0x69,0x61,0x6C,0x20,0x4D,0x6F,0x76,0x69,0x6E,0x67,0x20,0x41,0x76,0x65,0x72,0x61 +,0x67,0x65,0x20,0x28,0x54,0x33,0x29,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69 +,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x4F,0x76 +,0x65,0x72,0x6C,0x61,0x70,0x20,0x53,0x74,0x75,0x64,0x69,0x65,0x73,0x3C,0x2F,0x47,0x72,0x6F,0x75,0x70 +,0x49,0x64,0x3E,0x0A,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x46,0x6C +,0x61,0x67,0x3E,0x4F,0x76,0x65,0x72,0x6C,0x61,0x70,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09 +,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x55,0x6E,0x73,0x74,0x61,0x62,0x6C,0x65,0x20,0x50,0x65,0x72,0x69 +,0x6F,0x64,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E +,0x0A,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67 +,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64 +,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C +,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54 +,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x69,0x6E,0x52,0x65,0x61 +,0x6C,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72 +,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C +,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65 +,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75 +,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x70,0x74,0x69 +,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x54,0x69,0x6D,0x65,0x20,0x50,0x65,0x72,0x69,0x6F,0x64 +,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65 +,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x4E,0x75,0x6D,0x62,0x65,0x72,0x20,0x6F,0x66,0x20 +,0x70,0x65,0x72,0x69,0x6F,0x64,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70 +,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x49,0x6E,0x74,0x65 +,0x67,0x65,0x72,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x52,0x61,0x6E,0x67 +,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x32,0x3C,0x2F +,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x61,0x78,0x69,0x6D +,0x75,0x6D,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74 +,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74 +,0x61,0x72,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64 +,0x45,0x6E,0x64,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65 +,0x64,0x45,0x6E,0x64,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65 +,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53 +,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x3C,0x2F,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x44,0x65,0x66 +,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x35,0x3C,0x2F,0x44,0x65,0x66,0x61,0x75,0x6C,0x74 +,0x56,0x61,0x6C,0x75,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C +,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F +,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74 +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x56,0x6F,0x6C,0x75,0x6D,0x65,0x20,0x46 +,0x61,0x63,0x74,0x6F,0x72,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x53,0x68 +,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x56,0x6F,0x6C,0x75,0x6D +,0x65,0x20,0x46,0x61,0x63,0x74,0x6F,0x72,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72 +,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F +,0x75,0x62,0x6C,0x65,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x52,0x61,0x6E +,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x30,0x2E +,0x30,0x30,0x30,0x30,0x30,0x30,0x65,0x2B,0x30,0x3C,0x2F,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x31,0x2E,0x30,0x30,0x30,0x30 +,0x30,0x30,0x65,0x2B,0x30,0x3C,0x2F,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x09,0x3C,0x50,0x72,0x65,0x63,0x69,0x73,0x69,0x6F,0x6E,0x3E,0x32,0x3C,0x2F,0x50,0x72,0x65,0x63,0x69 +,0x73,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65 +,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x31,0x2E,0x30,0x30,0x30,0x30,0x30,0x30,0x65,0x2D,0x32,0x3C,0x2F +,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x31,0x2E,0x30,0x30,0x30 +,0x30,0x30,0x30,0x65,0x2B,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64 +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63 +,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x35,0x2E,0x30,0x30,0x30,0x30,0x30,0x30,0x65,0x2D,0x32,0x3C,0x2F +,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x3C,0x2F,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x44,0x65 +,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x37,0x2E,0x30,0x30,0x30,0x30,0x30,0x30,0x65 +,0x2D,0x31,0x3C,0x2F,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x0A,0x09,0x09 +,0x09,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75 +,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E +,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x75,0x74 +,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x75 +,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54 +,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79 +,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x52,0x65,0x61 +,0x6C,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4C,0x69,0x6E,0x65,0x3C,0x2F,0x46,0x6C +,0x61,0x67,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09 +,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09 +,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09 +,0x3C,0x2F,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E +,0x0A,0x0A,0x0A,0x09,0x3C,0x21,0x2D,0x2D,0x20,0x54,0x41,0x4E,0x20,0x2D,0x2D,0x3E,0x0A,0x09,0x3C,0x46 +,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09 +,0x3C,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x54,0x41,0x4E,0x3C,0x2F,0x41 +,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x43,0x61,0x6D,0x65 +,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x54,0x61,0x6E,0x3C,0x2F,0x43,0x61,0x6D,0x65,0x6C +,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65 +,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x56,0x65,0x63,0x74,0x6F,0x72,0x20,0x54,0x72,0x69 +,0x67,0x6F,0x6E,0x6F,0x6D,0x65,0x74,0x72,0x69,0x63,0x20,0x54,0x61,0x6E,0x3C,0x2F,0x53,0x68,0x6F,0x72 +,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x47,0x72,0x6F +,0x75,0x70,0x49,0x64,0x3E,0x4D,0x61,0x74,0x68,0x20,0x54,0x72,0x61,0x6E,0x73,0x66,0x6F,0x72,0x6D,0x3C +,0x2F,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x0A,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65 +,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09 +,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65 +,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65 +,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E +,0x61,0x6D,0x65,0x3E,0x69,0x6E,0x52,0x65,0x61,0x6C,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09 +,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75 +,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E +,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x75,0x74 +,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x75 +,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54 +,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79 +,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x52,0x65,0x61 +,0x6C,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4C,0x69,0x6E,0x65,0x3C,0x2F,0x46,0x6C +,0x61,0x67,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09 +,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09 +,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09 +,0x3C,0x2F,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E +,0x0A,0x0A,0x0A,0x09,0x3C,0x21,0x2D,0x2D,0x20,0x54,0x41,0x4E,0x48,0x20,0x2D,0x2D,0x3E,0x0A,0x09,0x3C +,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09 +,0x09,0x3C,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x54,0x41,0x4E,0x48,0x3C +,0x2F,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x43,0x61 +,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x54,0x61,0x6E,0x68,0x3C,0x2F,0x43,0x61 +,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72 +,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x56,0x65,0x63,0x74,0x6F,0x72,0x20 +,0x54,0x72,0x69,0x67,0x6F,0x6E,0x6F,0x6D,0x65,0x74,0x72,0x69,0x63,0x20,0x54,0x61,0x6E,0x68,0x3C,0x2F +,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09 +,0x3C,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x4D,0x61,0x74,0x68,0x20,0x54,0x72,0x61,0x6E,0x73,0x66 +,0x6F,0x72,0x6D,0x3C,0x2F,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x0A,0x09,0x09,0x3C,0x52,0x65,0x71 +,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E +,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72 +,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F +,0x75,0x62,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x69,0x6E,0x52,0x65,0x61,0x6C,0x3C,0x2F,0x4E,0x61,0x6D,0x65 +,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74 +,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72 +,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09 +,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09 +,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79 +,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75 +,0x74,0x52,0x65,0x61,0x6C,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C +,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4C,0x69,0x6E,0x65 +,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E +,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74 +,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74 +,0x73,0x3E,0x0A,0x09,0x3C,0x2F,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74 +,0x69,0x6F,0x6E,0x3E,0x0A,0x0A,0x0A,0x09,0x3C,0x21,0x2D,0x2D,0x20,0x54,0x45,0x4D,0x41,0x20,0x2D,0x2D +,0x3E,0x0A,0x09,0x3C,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F +,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x54 +,0x45,0x4D,0x41,0x3C,0x2F,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09 +,0x09,0x3C,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x54,0x65,0x6D,0x61 +,0x3C,0x2F,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x3C +,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x54,0x72,0x69 +,0x70,0x6C,0x65,0x20,0x45,0x78,0x70,0x6F,0x6E,0x65,0x6E,0x74,0x69,0x61,0x6C,0x20,0x4D,0x6F,0x76,0x69 +,0x6E,0x67,0x20,0x41,0x76,0x65,0x72,0x61,0x67,0x65,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73 +,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x47,0x72,0x6F,0x75,0x70,0x49,0x64 +,0x3E,0x4F,0x76,0x65,0x72,0x6C,0x61,0x70,0x20,0x53,0x74,0x75,0x64,0x69,0x65,0x73,0x3C,0x2F,0x47,0x72 +,0x6F,0x75,0x70,0x49,0x64,0x3E,0x0A,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09 +,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4F,0x76,0x65,0x72,0x6C,0x61,0x70,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E +,0x0A,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69 +,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09 +,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75 +,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62 +,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x69,0x6E,0x52,0x65,0x61,0x6C,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A +,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72 +,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64 +,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F +,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74 +,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74 +,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E +,0x54,0x69,0x6D,0x65,0x20,0x50,0x65,0x72,0x69,0x6F,0x64,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E +,0x3E,0x4E,0x75,0x6D,0x62,0x65,0x72,0x20,0x6F,0x66,0x20,0x70,0x65,0x72,0x69,0x6F,0x64,0x3C,0x2F,0x53 +,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x49,0x6E,0x74,0x65,0x67,0x65,0x72,0x3C,0x2F,0x54,0x79,0x70,0x65 +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C +,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x32,0x3C,0x2F,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x31,0x30,0x30,0x30,0x30,0x30 +,0x3C,0x2F,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67 +,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F +,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x31,0x30,0x30,0x30,0x30 +,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E +,0x74,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49 +,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x52,0x61,0x6E,0x67 +,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65 +,0x3E,0x33,0x30,0x3C,0x2F,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x0A,0x09 +,0x09,0x09,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67 +,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49 +,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x75 +,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F +,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C +,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54 +,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x52,0x65 +,0x61,0x6C,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73 +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4C,0x69,0x6E,0x65,0x3C,0x2F,0x46 +,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09 +,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09 +,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A +,0x09,0x3C,0x2F,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E +,0x3E,0x0A,0x0A,0x0A,0x09,0x3C,0x21,0x2D,0x2D,0x20,0x54,0x52,0x41,0x4E,0x47,0x45,0x20,0x2D,0x2D,0x3E +,0x0A,0x09,0x3C,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E +,0x3E,0x0A,0x09,0x09,0x3C,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x54,0x52 +,0x41,0x4E,0x47,0x45,0x3C,0x2F,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x0A +,0x09,0x09,0x3C,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x54,0x72,0x75 +,0x65,0x52,0x61,0x6E,0x67,0x65,0x3C,0x2F,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D +,0x65,0x3E,0x0A,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69 +,0x6F,0x6E,0x3E,0x54,0x72,0x75,0x65,0x20,0x52,0x61,0x6E,0x67,0x65,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74 +,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x47,0x72,0x6F,0x75 +,0x70,0x49,0x64,0x3E,0x56,0x6F,0x6C,0x61,0x74,0x69,0x6C,0x69,0x74,0x79,0x20,0x49,0x6E,0x64,0x69,0x63 +,0x61,0x74,0x6F,0x72,0x73,0x3C,0x2F,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x0A,0x09,0x09,0x3C,0x52 +,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74 +,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74 +,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E +,0x48,0x69,0x67,0x68,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D +,0x65,0x3E,0x48,0x69,0x67,0x68,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52 +,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74 +,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41 +,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x4C +,0x6F,0x77,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E +,0x4C,0x6F,0x77,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75 +,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09 +,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75 +,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x43,0x6C,0x6F,0x73 +,0x65,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x43 +,0x6C,0x6F,0x73,0x65,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71 +,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A +,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67 +,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67 +,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72 +,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F +,0x75,0x62,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x52,0x65,0x61,0x6C,0x3C,0x2F,0x4E,0x61,0x6D +,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09 +,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4C,0x69,0x6E,0x65,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70 +,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70 +,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x3C,0x2F,0x46,0x69,0x6E,0x61 +,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x0A,0x0A,0x09,0x3C,0x21 +,0x2D,0x2D,0x20,0x54,0x52,0x49,0x4D,0x41,0x20,0x2D,0x2D,0x3E,0x0A,0x09,0x3C,0x46,0x69,0x6E,0x61,0x6E +,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x41,0x62,0x62 +,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x54,0x52,0x49,0x4D,0x41,0x3C,0x2F,0x41,0x62,0x62 +,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x43,0x61,0x6D,0x65,0x6C,0x43 +,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x54,0x72,0x69,0x6D,0x61,0x3C,0x2F,0x43,0x61,0x6D,0x65,0x6C +,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65 +,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x54,0x72,0x69,0x61,0x6E,0x67,0x75,0x6C,0x61,0x72 +,0x20,0x4D,0x6F,0x76,0x69,0x6E,0x67,0x20,0x41,0x76,0x65,0x72,0x61,0x67,0x65,0x3C,0x2F,0x53,0x68,0x6F +,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x47,0x72 +,0x6F,0x75,0x70,0x49,0x64,0x3E,0x4F,0x76,0x65,0x72,0x6C,0x61,0x70,0x20,0x53,0x74,0x75,0x64,0x69,0x65 +,0x73,0x3C,0x2F,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x0A,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73 +,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4F,0x76,0x65,0x72,0x6C,0x61,0x70,0x3C,0x2F +,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x3C +,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E +,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75 +,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65 +,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x69,0x6E,0x52,0x65,0x61,0x6C,0x3C,0x2F,0x4E +,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E +,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71 +,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E +,0x0A,0x09,0x09,0x3C,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67 +,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C +,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C +,0x4E,0x61,0x6D,0x65,0x3E,0x54,0x69,0x6D,0x65,0x20,0x50,0x65,0x72,0x69,0x6F,0x64,0x3C,0x2F,0x4E,0x61 +,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69 +,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x4E,0x75,0x6D,0x62,0x65,0x72,0x20,0x6F,0x66,0x20,0x70,0x65,0x72,0x69 +,0x6F,0x64,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x49,0x6E,0x74,0x65,0x67,0x65,0x72,0x3C +,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x09,0x3C,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x32,0x3C,0x2F,0x4D,0x69,0x6E,0x69 +,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x31 +,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x31,0x30,0x30 +,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E +,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64 +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63 +,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65 +,0x73,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C +,0x2F,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x44,0x65,0x66,0x61,0x75,0x6C,0x74 +,0x56,0x61,0x6C,0x75,0x65,0x3E,0x33,0x30,0x3C,0x2F,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C +,0x75,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70 +,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x70,0x74,0x69 +,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A +,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A +,0x09,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72,0x72 +,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E +,0x6F,0x75,0x74,0x52,0x65,0x61,0x6C,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C +,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4C,0x69 +,0x6E,0x65,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67 +,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65 +,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65 +,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x3C,0x2F,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E +,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x0A,0x0A,0x09,0x3C,0x21,0x2D,0x2D,0x20,0x54,0x52,0x49,0x58,0x20 +,0x2D,0x2D,0x3E,0x0A,0x09,0x3C,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74 +,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E +,0x3E,0x54,0x52,0x49,0x58,0x3C,0x2F,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E +,0x0A,0x09,0x09,0x3C,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x54,0x72 +,0x69,0x78,0x3C,0x2F,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09 +,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x31 +,0x2D,0x64,0x61,0x79,0x20,0x52,0x61,0x74,0x65,0x2D,0x4F,0x66,0x2D,0x43,0x68,0x61,0x6E,0x67,0x65,0x20 +,0x28,0x52,0x4F,0x43,0x29,0x20,0x6F,0x66,0x20,0x61,0x20,0x54,0x72,0x69,0x70,0x6C,0x65,0x20,0x53,0x6D +,0x6F,0x6F,0x74,0x68,0x20,0x45,0x4D,0x41,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72 +,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x4D +,0x6F,0x6D,0x65,0x6E,0x74,0x75,0x6D,0x20,0x49,0x6E,0x64,0x69,0x63,0x61,0x74,0x6F,0x72,0x73,0x3C,0x2F +,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x0A,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64 +,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C +,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E +,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20 +,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61 +,0x6D,0x65,0x3E,0x69,0x6E,0x52,0x65,0x61,0x6C,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09 +,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D +,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70 +,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x70,0x74,0x69 +,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A +,0x09,0x09,0x09,0x3C,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67 +,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x54,0x69,0x6D +,0x65,0x20,0x50,0x65,0x72,0x69,0x6F,0x64,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x4E,0x75 +,0x6D,0x62,0x65,0x72,0x20,0x6F,0x66,0x20,0x70,0x65,0x72,0x69,0x6F,0x64,0x3C,0x2F,0x53,0x68,0x6F,0x72 +,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54 +,0x79,0x70,0x65,0x3E,0x49,0x6E,0x74,0x65,0x67,0x65,0x72,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x3C,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x69,0x6E +,0x69,0x6D,0x75,0x6D,0x3E,0x31,0x3C,0x2F,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x09,0x3C,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x4D +,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73 +,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67 +,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53 +,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F +,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C +,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x31 +,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63,0x72 +,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x3C,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x33,0x30 +,0x3C,0x2F,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C +,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65 +,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75 +,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75 +,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70 +,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70 +,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65 +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x52,0x65,0x61,0x6C,0x3C +,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4C,0x69,0x6E,0x65,0x3C,0x2F,0x46,0x6C,0x61,0x67 +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F +,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F +,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x3C,0x2F +,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x0A +,0x0A,0x09,0x3C,0x21,0x2D,0x2D,0x20,0x54,0x53,0x46,0x20,0x2D,0x2D,0x3E,0x0A,0x09,0x3C,0x46,0x69,0x6E +,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x41 +,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x54,0x53,0x46,0x3C,0x2F,0x41,0x62,0x62 +,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x43,0x61,0x6D,0x65,0x6C,0x43 +,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x54,0x73,0x66,0x3C,0x2F,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61 +,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63 +,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x54,0x69,0x6D,0x65,0x20,0x53,0x65,0x72,0x69,0x65,0x73,0x20 +,0x46,0x6F,0x72,0x65,0x63,0x61,0x73,0x74,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72 +,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x53 +,0x74,0x61,0x74,0x69,0x73,0x74,0x69,0x63,0x20,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x73,0x3C,0x2F +,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x0A,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09 +,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4F,0x76,0x65,0x72,0x6C,0x61,0x70,0x3C,0x2F,0x46,0x6C,0x61 +,0x67,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x52,0x65,0x71 +,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E +,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72 +,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F +,0x75,0x62,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x69,0x6E,0x52,0x65,0x61,0x6C,0x3C,0x2F,0x4E,0x61,0x6D,0x65 +,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74 +,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72 +,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09 +,0x3C,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65 +,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70 +,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D +,0x65,0x3E,0x54,0x69,0x6D,0x65,0x20,0x50,0x65,0x72,0x69,0x6F,0x64,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69 +,0x6F,0x6E,0x3E,0x4E,0x75,0x6D,0x62,0x65,0x72,0x20,0x6F,0x66,0x20,0x70,0x65,0x72,0x69,0x6F,0x64,0x3C +,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x49,0x6E,0x74,0x65,0x67,0x65,0x72,0x3C,0x2F,0x54,0x79 +,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x09,0x3C,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x32,0x3C,0x2F,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x31,0x30,0x30,0x30 +,0x30,0x30,0x3C,0x2F,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53 +,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x31,0x30,0x30,0x30,0x30,0x30 +,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x31,0x30,0x30 +,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D +,0x65,0x6E,0x74,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65 +,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x52,0x61 +,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C +,0x75,0x65,0x3E,0x31,0x34,0x3C,0x2F,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E +,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41 +,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61 +,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C +,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09 +,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79,0x3C +,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74 +,0x52,0x65,0x61,0x6C,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61 +,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4C,0x69,0x6E,0x65,0x3C +,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A +,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E +,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73 +,0x3E,0x0A,0x09,0x3C,0x2F,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69 +,0x6F,0x6E,0x3E,0x0A,0x0A,0x0A,0x09,0x3C,0x21,0x2D,0x2D,0x20,0x54,0x59,0x50,0x50,0x52,0x49,0x43,0x45 +,0x20,0x2D,0x2D,0x3E,0x0A,0x09,0x3C,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63 +,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F +,0x6E,0x3E,0x54,0x59,0x50,0x50,0x52,0x49,0x43,0x45,0x3C,0x2F,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61 +,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61 +,0x6D,0x65,0x3E,0x54,0x79,0x70,0x50,0x72,0x69,0x63,0x65,0x3C,0x2F,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61 +,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63 +,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x54,0x79,0x70,0x69,0x63,0x61,0x6C,0x20,0x50,0x72,0x69,0x63 +,0x65,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E +,0x0A,0x09,0x09,0x3C,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x50,0x72,0x69,0x63,0x65,0x20,0x54,0x72 +,0x61,0x6E,0x73,0x66,0x6F,0x72,0x6D,0x3C,0x2F,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x0A,0x09,0x09 +,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4F,0x76,0x65 +,0x72,0x6C,0x61,0x70,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67 +,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41 +,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72 +,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x48,0x69,0x67,0x68,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x48,0x69,0x67,0x68,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E +,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41 +,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65 +,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x3C,0x54,0x79,0x70,0x65,0x3E,0x4C,0x6F,0x77,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x4C,0x6F,0x77,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09 +,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75 +,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E +,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79 +,0x70,0x65,0x3E,0x43,0x6C,0x6F,0x73,0x65,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x43,0x6C,0x6F,0x73,0x65,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09 +,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67 +,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49 +,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x75 +,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F +,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C +,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54 +,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x52,0x65 +,0x61,0x6C,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73 +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4C,0x69,0x6E,0x65,0x3C,0x2F,0x46 +,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09 +,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09 +,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A +,0x09,0x3C,0x2F,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E +,0x3E,0x0A,0x0A,0x0A,0x09,0x3C,0x21,0x2D,0x2D,0x20,0x55,0x4C,0x54,0x4F,0x53,0x43,0x20,0x2D,0x2D,0x3E +,0x0A,0x09,0x3C,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E +,0x3E,0x0A,0x09,0x09,0x3C,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x55,0x4C +,0x54,0x4F,0x53,0x43,0x3C,0x2F,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x0A +,0x09,0x09,0x3C,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x55,0x6C,0x74 +,0x4F,0x73,0x63,0x3C,0x2F,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x0A +,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E +,0x55,0x6C,0x74,0x69,0x6D,0x61,0x74,0x65,0x20,0x4F,0x73,0x63,0x69,0x6C,0x6C,0x61,0x74,0x6F,0x72,0x3C +,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09 +,0x09,0x3C,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x4D,0x6F,0x6D,0x65,0x6E,0x74,0x75,0x6D,0x20,0x49 +,0x6E,0x64,0x69,0x63,0x61,0x74,0x6F,0x72,0x73,0x3C,0x2F,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x0A +,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75 +,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49 +,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54 +,0x79,0x70,0x65,0x3E,0x48,0x69,0x67,0x68,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x48,0x69,0x67,0x68,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09 +,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75 +,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E +,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79 +,0x70,0x65,0x3E,0x4C,0x6F,0x77,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E +,0x61,0x6D,0x65,0x3E,0x4C,0x6F,0x77,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F +,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E +,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74 +,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E +,0x43,0x6C,0x6F,0x73,0x65,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61 +,0x6D,0x65,0x3E,0x43,0x6C,0x6F,0x73,0x65,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C +,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65 +,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75 +,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x70,0x74,0x69,0x6F +,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09 +,0x09,0x09,0x3C,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75 +,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x46,0x69,0x72,0x73 +,0x74,0x20,0x50,0x65,0x72,0x69,0x6F,0x64,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x4E,0x75 +,0x6D,0x62,0x65,0x72,0x20,0x6F,0x66,0x20,0x62,0x61,0x72,0x73,0x20,0x66,0x6F,0x72,0x20,0x31,0x73,0x74 +,0x20,0x70,0x65,0x72,0x69,0x6F,0x64,0x2E,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72 +,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x49,0x6E +,0x74,0x65,0x67,0x65,0x72,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x52,0x61 +,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x31 +,0x3C,0x2F,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x61,0x78 +,0x69,0x6D,0x75,0x6D,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61 +,0x72,0x74,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64 +,0x53,0x74,0x61,0x72,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74 +,0x65,0x64,0x45,0x6E,0x64,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73 +,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73 +,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C +,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x44 +,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x37,0x3C,0x2F,0x44,0x65,0x66,0x61,0x75 +,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E +,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09 +,0x3C,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65 +,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x53,0x65,0x63,0x6F,0x6E,0x64 +,0x20,0x50,0x65,0x72,0x69,0x6F,0x64,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C +,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x4E,0x75,0x6D +,0x62,0x65,0x72,0x20,0x6F,0x66,0x20,0x62,0x61,0x72,0x73,0x20,0x66,0x72,0x6F,0x20,0x32,0x6E,0x64,0x20 +,0x70,0x65,0x72,0x69,0x6F,0x64,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70 +,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x49,0x6E,0x74,0x65 +,0x67,0x65,0x72,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x52,0x61,0x6E,0x67 +,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x31,0x3C,0x2F +,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x61,0x78,0x69,0x6D +,0x75,0x6D,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74 +,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74 +,0x61,0x72,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64 +,0x45,0x6E,0x64,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65 +,0x64,0x45,0x6E,0x64,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65 +,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53 +,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x3C,0x2F,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x44,0x65,0x66 +,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x31,0x34,0x3C,0x2F,0x44,0x65,0x66,0x61,0x75,0x6C +,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61 +,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C +,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E +,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x54,0x68,0x69,0x72,0x64,0x20,0x50 +,0x65,0x72,0x69,0x6F,0x64,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x53,0x68 +,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x4E,0x75,0x6D,0x62,0x65 +,0x72,0x20,0x6F,0x66,0x20,0x62,0x61,0x72,0x73,0x20,0x66,0x6F,0x72,0x20,0x33,0x72,0x64,0x20,0x70,0x65 +,0x72,0x69,0x6F,0x64,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69 +,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x49,0x6E,0x74,0x65,0x67,0x65 +,0x72,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x52,0x61,0x6E,0x67,0x65,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x31,0x3C,0x2F,0x4D,0x69 +,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D +,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x31 +,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72 +,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E +,0x64,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x45 +,0x6E,0x64,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49 +,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67 +,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x3C,0x2F,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x44,0x65,0x66,0x61,0x75 +,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x32,0x38,0x3C,0x2F,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56 +,0x61,0x6C,0x75,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49 +,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x70 +,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73 +,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73 +,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74 +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41 +,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D +,0x65,0x3E,0x6F,0x75,0x74,0x52,0x65,0x61,0x6C,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E +,0x4C,0x69,0x6E,0x65,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C +,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75 +,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75 +,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x3C,0x2F,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46 +,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x0A,0x0A,0x09,0x3C,0x21,0x2D,0x2D,0x20,0x56,0x41,0x52 +,0x20,0x2D,0x2D,0x3E,0x0A,0x09,0x3C,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63 +,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F +,0x6E,0x3E,0x56,0x41,0x52,0x3C,0x2F,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E +,0x0A,0x09,0x09,0x3C,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x56,0x61 +,0x72,0x69,0x61,0x6E,0x63,0x65,0x3C,0x2F,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D +,0x65,0x3E,0x0A,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69 +,0x6F,0x6E,0x3E,0x56,0x61,0x72,0x69,0x61,0x6E,0x63,0x65,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65 +,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x47,0x72,0x6F,0x75,0x70,0x49 +,0x64,0x3E,0x53,0x74,0x61,0x74,0x69,0x73,0x74,0x69,0x63,0x20,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E +,0x73,0x3C,0x2F,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x0A,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69 +,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09 +,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75 +,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62 +,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x69,0x6E,0x52,0x65,0x61,0x6C,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A +,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72 +,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64 +,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F +,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74 +,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74 +,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E +,0x54,0x69,0x6D,0x65,0x20,0x50,0x65,0x72,0x69,0x6F,0x64,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E +,0x3E,0x4E,0x75,0x6D,0x62,0x65,0x72,0x20,0x6F,0x66,0x20,0x70,0x65,0x72,0x69,0x6F,0x64,0x3C,0x2F,0x53 +,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x49,0x6E,0x74,0x65,0x67,0x65,0x72,0x3C,0x2F,0x54,0x79,0x70,0x65 +,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C +,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x31,0x3C,0x2F,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x31,0x30,0x30,0x30,0x30,0x30 +,0x3C,0x2F,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67 +,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F +,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x31,0x30,0x30,0x30,0x30 +,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E +,0x74,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49 +,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x52,0x61,0x6E,0x67 +,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65 +,0x3E,0x35,0x3C,0x2F,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x0A,0x09,0x09 +,0x09,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75 +,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E +,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61 +,0x6D,0x65,0x3E,0x44,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x73,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69 +,0x6F,0x6E,0x3E,0x4E,0x62,0x20,0x6F,0x66,0x20,0x64,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x73,0x3C +,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x3C,0x2F,0x54,0x79,0x70 +,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09 +,0x3C,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x2D,0x33,0x2E,0x30,0x30,0x30,0x30,0x30,0x30,0x65,0x2B +,0x33,0x37,0x3C,0x2F,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D +,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x33,0x2E,0x30,0x30,0x30,0x30,0x30,0x30,0x65,0x2B,0x33,0x37,0x3C +,0x2F,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x50,0x72,0x65,0x63 +,0x69,0x73,0x69,0x6F,0x6E,0x3E,0x32,0x3C,0x2F,0x50,0x72,0x65,0x63,0x69,0x73,0x69,0x6F,0x6E,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74 +,0x3E,0x2D,0x32,0x2E,0x30,0x30,0x30,0x30,0x30,0x30,0x65,0x2B,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65 +,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67 +,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x32,0x2E,0x30,0x30,0x30,0x30,0x30,0x30,0x65,0x2B +,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E +,0x74,0x3E,0x32,0x2E,0x30,0x30,0x30,0x30,0x30,0x30,0x65,0x2D,0x31,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65 +,0x73,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C +,0x2F,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x44,0x65,0x66,0x61,0x75,0x6C,0x74 +,0x56,0x61,0x6C,0x75,0x65,0x3E,0x31,0x2E,0x30,0x30,0x30,0x30,0x30,0x30,0x65,0x2B,0x30,0x3C,0x2F,0x44 +,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x70 +,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E +,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72 +,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72 +,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41 +,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44 +,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x52,0x65,0x61,0x6C,0x3C,0x2F,0x4E,0x61 +,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4C,0x69,0x6E,0x65,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74 +,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74 +,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x3C,0x2F,0x46,0x69,0x6E +,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x0A,0x0A,0x09,0x3C +,0x21,0x2D,0x2D,0x20,0x57,0x43,0x4C,0x50,0x52,0x49,0x43,0x45,0x20,0x2D,0x2D,0x3E,0x0A,0x09,0x3C,0x46 +,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09 +,0x3C,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x57,0x43,0x4C,0x50,0x52,0x49 +,0x43,0x45,0x3C,0x2F,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09 +,0x3C,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x57,0x63,0x6C,0x50,0x72 +,0x69,0x63,0x65,0x3C,0x2F,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x0A +,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E +,0x57,0x65,0x69,0x67,0x68,0x74,0x65,0x64,0x20,0x43,0x6C,0x6F,0x73,0x65,0x20,0x50,0x72,0x69,0x63,0x65 +,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A +,0x09,0x09,0x3C,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x50,0x72,0x69,0x63,0x65,0x20,0x54,0x72,0x61 +,0x6E,0x73,0x66,0x6F,0x72,0x6D,0x3C,0x2F,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x0A,0x09,0x09,0x3C +,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4F,0x76,0x65,0x72 +,0x6C,0x61,0x70,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73 +,0x3E,0x0A,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72 +,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65 +,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x3C,0x54,0x79,0x70,0x65,0x3E,0x48,0x69,0x67,0x68,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09 +,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x48,0x69,0x67,0x68,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A +,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72 +,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64 +,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C +,0x54,0x79,0x70,0x65,0x3E,0x4C,0x6F,0x77,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x4C,0x6F,0x77,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09 +,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D +,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70 +,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70 +,0x65,0x3E,0x43,0x6C,0x6F,0x73,0x65,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C +,0x4E,0x61,0x6D,0x65,0x3E,0x43,0x6C,0x6F,0x73,0x65,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09 +,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75 +,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E +,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x75,0x74 +,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x75 +,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54 +,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79 +,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x52,0x65,0x61 +,0x6C,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4C,0x69,0x6E,0x65,0x3C,0x2F,0x46,0x6C +,0x61,0x67,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09 +,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09 +,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09 +,0x3C,0x2F,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E +,0x0A,0x0A,0x0A,0x09,0x3C,0x21,0x2D,0x2D,0x20,0x57,0x49,0x4C,0x4C,0x52,0x20,0x2D,0x2D,0x3E,0x0A,0x09 +,0x3C,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A +,0x09,0x09,0x3C,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x57,0x49,0x4C,0x4C +,0x52,0x3C,0x2F,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C +,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x57,0x69,0x6C,0x6C,0x52,0x3C +,0x2F,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x3C,0x53 +,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x57,0x69,0x6C,0x6C +,0x69,0x61,0x6D,0x73,0x26,0x61,0x70,0x6F,0x73,0x3B,0x20,0x25,0x52,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74 +,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x47,0x72,0x6F,0x75 +,0x70,0x49,0x64,0x3E,0x4D,0x6F,0x6D,0x65,0x6E,0x74,0x75,0x6D,0x20,0x49,0x6E,0x64,0x69,0x63,0x61,0x74 +,0x6F,0x72,0x73,0x3C,0x2F,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x0A,0x09,0x09,0x3C,0x52,0x65,0x71 +,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E +,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72 +,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x48,0x69 +,0x67,0x68,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E +,0x48,0x69,0x67,0x68,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71 +,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A +,0x09,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67 +,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x4C,0x6F,0x77 +,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x4C,0x6F +,0x77,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72 +,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09 +,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65 +,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x43,0x6C,0x6F,0x73,0x65,0x3C +,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x43,0x6C,0x6F +,0x73,0x65,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69 +,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09 +,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D +,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70 +,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x70,0x74 +,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x54,0x69,0x6D,0x65,0x20,0x50,0x65,0x72,0x69,0x6F +,0x64,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44 +,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x4E,0x75,0x6D,0x62,0x65,0x72,0x20,0x6F,0x66 +,0x20,0x70,0x65,0x72,0x69,0x6F,0x64,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69 +,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x49,0x6E,0x74 +,0x65,0x67,0x65,0x72,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x52,0x61,0x6E +,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x32,0x3C +,0x2F,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x61,0x78,0x69 +,0x6D,0x75,0x6D,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E +,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53,0x74,0x61,0x72 +,0x74,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x53 +,0x74,0x61,0x72,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65 +,0x64,0x45,0x6E,0x64,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74 +,0x65,0x64,0x45,0x6E,0x64,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74 +,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F +,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x3C,0x2F,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x44,0x65 +,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x31,0x34,0x3C,0x2F,0x44,0x65,0x66,0x61,0x75 +,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E +,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C +,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65 +,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65 +,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D +,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C +,0x65,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C +,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x52,0x65,0x61,0x6C,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C +,0x61,0x67,0x3E,0x4C,0x69,0x6E,0x65,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C +,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41 +,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74,0x70,0x75,0x74,0x41 +,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x3C,0x2F,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69 +,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x0A,0x0A,0x09,0x3C,0x21,0x2D,0x2D,0x20 +,0x57,0x4D,0x41,0x20,0x2D,0x2D,0x3E,0x0A,0x09,0x3C,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46 +,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61 +,0x74,0x69,0x6F,0x6E,0x3E,0x57,0x4D,0x41,0x3C,0x2F,0x41,0x62,0x62,0x72,0x65,0x76,0x69,0x61,0x74,0x69 +,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65 +,0x3E,0x57,0x6D,0x61,0x3C,0x2F,0x43,0x61,0x6D,0x65,0x6C,0x43,0x61,0x73,0x65,0x4E,0x61,0x6D,0x65,0x3E +,0x0A,0x09,0x09,0x3C,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E +,0x3E,0x57,0x65,0x69,0x67,0x68,0x74,0x65,0x64,0x20,0x4D,0x6F,0x76,0x69,0x6E,0x67,0x20,0x41,0x76,0x65 +,0x72,0x61,0x67,0x65,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69 +,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x3C,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E,0x4F,0x76,0x65,0x72,0x6C +,0x61,0x70,0x20,0x53,0x74,0x75,0x64,0x69,0x65,0x73,0x3C,0x2F,0x47,0x72,0x6F,0x75,0x70,0x49,0x64,0x3E +,0x0A,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E +,0x4F,0x76,0x65,0x72,0x6C,0x61,0x70,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x46 +,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70 +,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x52,0x65,0x71 +,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A +,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72,0x72 +,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E +,0x69,0x6E,0x52,0x65,0x61,0x6C,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x52 +,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74 +,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x52,0x65,0x71,0x75,0x69,0x72,0x65,0x64,0x49,0x6E,0x70,0x75,0x74,0x41 +,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61 +,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09 +,0x3C,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65 +,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x54,0x69,0x6D,0x65,0x20,0x50 +,0x65,0x72,0x69,0x6F,0x64,0x3C,0x2F,0x4E,0x61,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x53,0x68 +,0x6F,0x72,0x74,0x44,0x65,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x4E,0x75,0x6D,0x62,0x65 +,0x72,0x20,0x6F,0x66,0x20,0x70,0x65,0x72,0x69,0x6F,0x64,0x3C,0x2F,0x53,0x68,0x6F,0x72,0x74,0x44,0x65 +,0x73,0x63,0x72,0x69,0x70,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65 +,0x3E,0x49,0x6E,0x74,0x65,0x67,0x65,0x72,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x3C,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x4D,0x69,0x6E,0x69,0x6D,0x75 +,0x6D,0x3E,0x32,0x3C,0x2F,0x4D,0x69,0x6E,0x69,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C +,0x4D,0x61,0x78,0x69,0x6D,0x75,0x6D,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x4D,0x61,0x78,0x69 +,0x6D,0x75,0x6D,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64 +,0x53,0x74,0x61,0x72,0x74,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73 +,0x74,0x65,0x64,0x53,0x74,0x61,0x72,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67,0x67 +,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x31,0x30,0x30,0x30,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67 +,0x67,0x65,0x73,0x74,0x65,0x64,0x45,0x6E,0x64,0x3E,0x0A,0x09,0x09,0x09,0x09,0x09,0x3C,0x53,0x75,0x67 +,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65,0x6E,0x74,0x3E,0x31,0x30,0x30,0x30 +,0x30,0x30,0x3C,0x2F,0x53,0x75,0x67,0x67,0x65,0x73,0x74,0x65,0x64,0x49,0x6E,0x63,0x72,0x65,0x6D,0x65 +,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x2F,0x52,0x61,0x6E,0x67,0x65,0x3E,0x0A,0x09,0x09,0x09 +,0x09,0x3C,0x44,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x33,0x30,0x3C,0x2F,0x44 +,0x65,0x66,0x61,0x75,0x6C,0x74,0x56,0x61,0x6C,0x75,0x65,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x70 +,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E +,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x70,0x74,0x69,0x6F,0x6E,0x61,0x6C,0x49,0x6E,0x70,0x75,0x74,0x41,0x72 +,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41,0x72 +,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x4F,0x75,0x74,0x70,0x75,0x74,0x41 +,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x54,0x79,0x70,0x65,0x3E,0x44 +,0x6F,0x75,0x62,0x6C,0x65,0x20,0x41,0x72,0x72,0x61,0x79,0x3C,0x2F,0x54,0x79,0x70,0x65,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x3C,0x4E,0x61,0x6D,0x65,0x3E,0x6F,0x75,0x74,0x52,0x65,0x61,0x6C,0x3C,0x2F,0x4E,0x61 +,0x6D,0x65,0x3E,0x0A,0x09,0x09,0x09,0x09,0x3C,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x09 +,0x09,0x3C,0x46,0x6C,0x61,0x67,0x3E,0x4C,0x69,0x6E,0x65,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x3E,0x0A,0x09 +,0x09,0x09,0x09,0x3C,0x2F,0x46,0x6C,0x61,0x67,0x73,0x3E,0x0A,0x09,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74 +,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x3E,0x0A,0x09,0x09,0x3C,0x2F,0x4F,0x75,0x74 +,0x70,0x75,0x74,0x41,0x72,0x67,0x75,0x6D,0x65,0x6E,0x74,0x73,0x3E,0x0A,0x09,0x3C,0x2F,0x46,0x69,0x6E +,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x3E,0x0A,0x0A,0x0A,0x3C,0x2F +,0x46,0x69,0x6E,0x61,0x6E,0x63,0x69,0x61,0x6C,0x46,0x75,0x6E,0x63,0x74,0x69,0x6F,0x6E,0x73,0x3E,0x0A +}; + +const char *TA_FunctionDescriptionXML() +{ + return TA_FunctionDescriptionXMLArray; +} + +/***************/ +/* End of File */ +/***************/ diff --git a/src/ta_abstract/ta_group_idx.c b/src/ta_abstract/ta_group_idx.c new file mode 100644 index 000000000..d974c6d61 --- /dev/null +++ b/src/ta_abstract/ta_group_idx.c @@ -0,0 +1,447 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* Important: This file is automatically generated by gen_code. + * Any modification will be lost on next execution + * of gen_code. + * + * The goal of this file is to build the following global + * constant: + * TA_PerGroupFuncDef + * TA_PerGroupSize + * TA_TotalNbFunction + * + * These constant allows mainly to speed optimize functionality related to + * sequential access to TA_DefFunc by TA_GroupId (see ta_abstract.c) + */ +#include +#include "ta_def_ui.h" +#include "ta_abstract.h" + +extern const TA_FuncDef TA_DEF_ACOS; +extern const TA_FuncDef TA_DEF_AD; +extern const TA_FuncDef TA_DEF_ADD; +extern const TA_FuncDef TA_DEF_ADOSC; +extern const TA_FuncDef TA_DEF_ADX; +extern const TA_FuncDef TA_DEF_ADXR; +extern const TA_FuncDef TA_DEF_APO; +extern const TA_FuncDef TA_DEF_AROON; +extern const TA_FuncDef TA_DEF_AROONOSC; +extern const TA_FuncDef TA_DEF_ASIN; +extern const TA_FuncDef TA_DEF_ATAN; +extern const TA_FuncDef TA_DEF_ATR; +extern const TA_FuncDef TA_DEF_AVGPRICE; +extern const TA_FuncDef TA_DEF_BBANDS; +extern const TA_FuncDef TA_DEF_BETA; +extern const TA_FuncDef TA_DEF_BOP; +extern const TA_FuncDef TA_DEF_CCI; +extern const TA_FuncDef TA_DEF_CDL2CROWS; +extern const TA_FuncDef TA_DEF_CDL3BLACKCROWS; +extern const TA_FuncDef TA_DEF_CDL3INSIDE; +extern const TA_FuncDef TA_DEF_CDL3LINESTRIKE; +extern const TA_FuncDef TA_DEF_CDL3OUTSIDE; +extern const TA_FuncDef TA_DEF_CDL3STARSINSOUTH; +extern const TA_FuncDef TA_DEF_CDL3WHITESOLDIERS; +extern const TA_FuncDef TA_DEF_CDLABANDONEDBABY; +extern const TA_FuncDef TA_DEF_CDLADVANCEBLOCK; +extern const TA_FuncDef TA_DEF_CDLBELTHOLD; +extern const TA_FuncDef TA_DEF_CDLBREAKAWAY; +extern const TA_FuncDef TA_DEF_CDLCLOSINGMARUBOZU; +extern const TA_FuncDef TA_DEF_CDLCONCEALBABYSWALL; +extern const TA_FuncDef TA_DEF_CDLCOUNTERATTACK; +extern const TA_FuncDef TA_DEF_CDLDARKCLOUDCOVER; +extern const TA_FuncDef TA_DEF_CDLDOJI; +extern const TA_FuncDef TA_DEF_CDLDOJISTAR; +extern const TA_FuncDef TA_DEF_CDLDRAGONFLYDOJI; +extern const TA_FuncDef TA_DEF_CDLENGULFING; +extern const TA_FuncDef TA_DEF_CDLEVENINGDOJISTAR; +extern const TA_FuncDef TA_DEF_CDLEVENINGSTAR; +extern const TA_FuncDef TA_DEF_CDLGAPSIDESIDEWHITE; +extern const TA_FuncDef TA_DEF_CDLGRAVESTONEDOJI; +extern const TA_FuncDef TA_DEF_CDLHAMMER; +extern const TA_FuncDef TA_DEF_CDLHANGINGMAN; +extern const TA_FuncDef TA_DEF_CDLHARAMI; +extern const TA_FuncDef TA_DEF_CDLHARAMICROSS; +extern const TA_FuncDef TA_DEF_CDLHIGHWAVE; +extern const TA_FuncDef TA_DEF_CDLHIKKAKE; +extern const TA_FuncDef TA_DEF_CDLHIKKAKEMOD; +extern const TA_FuncDef TA_DEF_CDLHOMINGPIGEON; +extern const TA_FuncDef TA_DEF_CDLIDENTICAL3CROWS; +extern const TA_FuncDef TA_DEF_CDLINNECK; +extern const TA_FuncDef TA_DEF_CDLINVERTEDHAMMER; +extern const TA_FuncDef TA_DEF_CDLKICKING; +extern const TA_FuncDef TA_DEF_CDLKICKINGBYLENGTH; +extern const TA_FuncDef TA_DEF_CDLLADDERBOTTOM; +extern const TA_FuncDef TA_DEF_CDLLONGLEGGEDDOJI; +extern const TA_FuncDef TA_DEF_CDLLONGLINE; +extern const TA_FuncDef TA_DEF_CDLMARUBOZU; +extern const TA_FuncDef TA_DEF_CDLMATCHINGLOW; +extern const TA_FuncDef TA_DEF_CDLMATHOLD; +extern const TA_FuncDef TA_DEF_CDLMORNINGDOJISTAR; +extern const TA_FuncDef TA_DEF_CDLMORNINGSTAR; +extern const TA_FuncDef TA_DEF_CDLONNECK; +extern const TA_FuncDef TA_DEF_CDLPIERCING; +extern const TA_FuncDef TA_DEF_CDLRICKSHAWMAN; +extern const TA_FuncDef TA_DEF_CDLRISEFALL3METHODS; +extern const TA_FuncDef TA_DEF_CDLSEPARATINGLINES; +extern const TA_FuncDef TA_DEF_CDLSHOOTINGSTAR; +extern const TA_FuncDef TA_DEF_CDLSHORTLINE; +extern const TA_FuncDef TA_DEF_CDLSPINNINGTOP; +extern const TA_FuncDef TA_DEF_CDLSTALLEDPATTERN; +extern const TA_FuncDef TA_DEF_CDLSTICKSANDWICH; +extern const TA_FuncDef TA_DEF_CDLTAKURI; +extern const TA_FuncDef TA_DEF_CDLTASUKIGAP; +extern const TA_FuncDef TA_DEF_CDLTHRUSTING; +extern const TA_FuncDef TA_DEF_CDLTRISTAR; +extern const TA_FuncDef TA_DEF_CDLUNIQUE3RIVER; +extern const TA_FuncDef TA_DEF_CDLUPSIDEGAP2CROWS; +extern const TA_FuncDef TA_DEF_CDLXSIDEGAP3METHODS; +extern const TA_FuncDef TA_DEF_CEIL; +extern const TA_FuncDef TA_DEF_CMO; +extern const TA_FuncDef TA_DEF_CORREL; +extern const TA_FuncDef TA_DEF_COS; +extern const TA_FuncDef TA_DEF_COSH; +extern const TA_FuncDef TA_DEF_DEMA; +extern const TA_FuncDef TA_DEF_DIV; +extern const TA_FuncDef TA_DEF_DX; +extern const TA_FuncDef TA_DEF_EMA; +extern const TA_FuncDef TA_DEF_EXP; +extern const TA_FuncDef TA_DEF_FLOOR; +extern const TA_FuncDef TA_DEF_HT_DCPERIOD; +extern const TA_FuncDef TA_DEF_HT_DCPHASE; +extern const TA_FuncDef TA_DEF_HT_PHASOR; +extern const TA_FuncDef TA_DEF_HT_SINE; +extern const TA_FuncDef TA_DEF_HT_TRENDLINE; +extern const TA_FuncDef TA_DEF_HT_TRENDMODE; +extern const TA_FuncDef TA_DEF_KAMA; +extern const TA_FuncDef TA_DEF_LINEARREG; +extern const TA_FuncDef TA_DEF_LINEARREG_ANGLE; +extern const TA_FuncDef TA_DEF_LINEARREG_INTERCEPT; +extern const TA_FuncDef TA_DEF_LINEARREG_SLOPE; +extern const TA_FuncDef TA_DEF_LN; +extern const TA_FuncDef TA_DEF_LOG10; +extern const TA_FuncDef TA_DEF_MA; +extern const TA_FuncDef TA_DEF_MACD; +extern const TA_FuncDef TA_DEF_MACDEXT; +extern const TA_FuncDef TA_DEF_MACDFIX; +extern const TA_FuncDef TA_DEF_MAMA; +extern const TA_FuncDef TA_DEF_MAVP; +extern const TA_FuncDef TA_DEF_MAX; +extern const TA_FuncDef TA_DEF_MAXINDEX; +extern const TA_FuncDef TA_DEF_MEDPRICE; +extern const TA_FuncDef TA_DEF_MFI; +extern const TA_FuncDef TA_DEF_MIDPOINT; +extern const TA_FuncDef TA_DEF_MIDPRICE; +extern const TA_FuncDef TA_DEF_MIN; +extern const TA_FuncDef TA_DEF_MININDEX; +extern const TA_FuncDef TA_DEF_MINMAX; +extern const TA_FuncDef TA_DEF_MINMAXINDEX; +extern const TA_FuncDef TA_DEF_MINUS_DI; +extern const TA_FuncDef TA_DEF_MINUS_DM; +extern const TA_FuncDef TA_DEF_MOM; +extern const TA_FuncDef TA_DEF_MULT; +extern const TA_FuncDef TA_DEF_NATR; +extern const TA_FuncDef TA_DEF_OBV; +extern const TA_FuncDef TA_DEF_PLUS_DI; +extern const TA_FuncDef TA_DEF_PLUS_DM; +extern const TA_FuncDef TA_DEF_PPO; +extern const TA_FuncDef TA_DEF_ROC; +extern const TA_FuncDef TA_DEF_ROCP; +extern const TA_FuncDef TA_DEF_ROCR; +extern const TA_FuncDef TA_DEF_ROCR100; +extern const TA_FuncDef TA_DEF_RSI; +extern const TA_FuncDef TA_DEF_SAR; +extern const TA_FuncDef TA_DEF_SAREXT; +extern const TA_FuncDef TA_DEF_SIN; +extern const TA_FuncDef TA_DEF_SINH; +extern const TA_FuncDef TA_DEF_SMA; +extern const TA_FuncDef TA_DEF_SQRT; +extern const TA_FuncDef TA_DEF_STDDEV; +extern const TA_FuncDef TA_DEF_STOCH; +extern const TA_FuncDef TA_DEF_STOCHF; +extern const TA_FuncDef TA_DEF_STOCHRSI; +extern const TA_FuncDef TA_DEF_SUB; +extern const TA_FuncDef TA_DEF_SUM; +extern const TA_FuncDef TA_DEF_T3; +extern const TA_FuncDef TA_DEF_TAN; +extern const TA_FuncDef TA_DEF_TANH; +extern const TA_FuncDef TA_DEF_TEMA; +extern const TA_FuncDef TA_DEF_TRANGE; +extern const TA_FuncDef TA_DEF_TRIMA; +extern const TA_FuncDef TA_DEF_TRIX; +extern const TA_FuncDef TA_DEF_TSF; +extern const TA_FuncDef TA_DEF_TYPPRICE; +extern const TA_FuncDef TA_DEF_ULTOSC; +extern const TA_FuncDef TA_DEF_VAR; +extern const TA_FuncDef TA_DEF_WCLPRICE; +extern const TA_FuncDef TA_DEF_WILLR; +extern const TA_FuncDef TA_DEF_WMA; + +const TA_FuncDef *TA_PerGroupFunc_0[] = { +&TA_DEF_ADD, +&TA_DEF_DIV, +&TA_DEF_MAX, +&TA_DEF_MAXINDEX, +&TA_DEF_MIN, +&TA_DEF_MININDEX, +&TA_DEF_MINMAX, +&TA_DEF_MINMAXINDEX, +&TA_DEF_MULT, +&TA_DEF_SUB, +&TA_DEF_SUM, +NULL }; +#define SIZE_GROUP_0 ((sizeof(TA_PerGroupFunc_0)/sizeof(const TA_FuncDef *))-1) + +const TA_FuncDef *TA_PerGroupFunc_1[] = { +&TA_DEF_ACOS, +&TA_DEF_ASIN, +&TA_DEF_ATAN, +&TA_DEF_CEIL, +&TA_DEF_COS, +&TA_DEF_COSH, +&TA_DEF_EXP, +&TA_DEF_FLOOR, +&TA_DEF_LN, +&TA_DEF_LOG10, +&TA_DEF_SIN, +&TA_DEF_SINH, +&TA_DEF_SQRT, +&TA_DEF_TAN, +&TA_DEF_TANH, +NULL }; +#define SIZE_GROUP_1 ((sizeof(TA_PerGroupFunc_1)/sizeof(const TA_FuncDef *))-1) + +const TA_FuncDef *TA_PerGroupFunc_2[] = { +&TA_DEF_BBANDS, +&TA_DEF_DEMA, +&TA_DEF_EMA, +&TA_DEF_HT_TRENDLINE, +&TA_DEF_KAMA, +&TA_DEF_MA, +&TA_DEF_MAMA, +&TA_DEF_MAVP, +&TA_DEF_MIDPOINT, +&TA_DEF_MIDPRICE, +&TA_DEF_SAR, +&TA_DEF_SAREXT, +&TA_DEF_SMA, +&TA_DEF_T3, +&TA_DEF_TEMA, +&TA_DEF_TRIMA, +&TA_DEF_WMA, +NULL }; +#define SIZE_GROUP_2 ((sizeof(TA_PerGroupFunc_2)/sizeof(const TA_FuncDef *))-1) + +const TA_FuncDef *TA_PerGroupFunc_3[] = { +&TA_DEF_ATR, +&TA_DEF_NATR, +&TA_DEF_TRANGE, +NULL }; +#define SIZE_GROUP_3 ((sizeof(TA_PerGroupFunc_3)/sizeof(const TA_FuncDef *))-1) + +const TA_FuncDef *TA_PerGroupFunc_4[] = { +&TA_DEF_ADX, +&TA_DEF_ADXR, +&TA_DEF_APO, +&TA_DEF_AROON, +&TA_DEF_AROONOSC, +&TA_DEF_BOP, +&TA_DEF_CCI, +&TA_DEF_CMO, +&TA_DEF_DX, +&TA_DEF_MACD, +&TA_DEF_MACDEXT, +&TA_DEF_MACDFIX, +&TA_DEF_MFI, +&TA_DEF_MINUS_DI, +&TA_DEF_MINUS_DM, +&TA_DEF_MOM, +&TA_DEF_PLUS_DI, +&TA_DEF_PLUS_DM, +&TA_DEF_PPO, +&TA_DEF_ROC, +&TA_DEF_ROCP, +&TA_DEF_ROCR, +&TA_DEF_ROCR100, +&TA_DEF_RSI, +&TA_DEF_STOCH, +&TA_DEF_STOCHF, +&TA_DEF_STOCHRSI, +&TA_DEF_TRIX, +&TA_DEF_ULTOSC, +&TA_DEF_WILLR, +NULL }; +#define SIZE_GROUP_4 ((sizeof(TA_PerGroupFunc_4)/sizeof(const TA_FuncDef *))-1) + +const TA_FuncDef *TA_PerGroupFunc_5[] = { +&TA_DEF_HT_DCPERIOD, +&TA_DEF_HT_DCPHASE, +&TA_DEF_HT_PHASOR, +&TA_DEF_HT_SINE, +&TA_DEF_HT_TRENDMODE, +NULL }; +#define SIZE_GROUP_5 ((sizeof(TA_PerGroupFunc_5)/sizeof(const TA_FuncDef *))-1) + +const TA_FuncDef *TA_PerGroupFunc_6[] = { +&TA_DEF_AD, +&TA_DEF_ADOSC, +&TA_DEF_OBV, +NULL }; +#define SIZE_GROUP_6 ((sizeof(TA_PerGroupFunc_6)/sizeof(const TA_FuncDef *))-1) + +const TA_FuncDef *TA_PerGroupFunc_7[] = { +&TA_DEF_CDL2CROWS, +&TA_DEF_CDL3BLACKCROWS, +&TA_DEF_CDL3INSIDE, +&TA_DEF_CDL3LINESTRIKE, +&TA_DEF_CDL3OUTSIDE, +&TA_DEF_CDL3STARSINSOUTH, +&TA_DEF_CDL3WHITESOLDIERS, +&TA_DEF_CDLABANDONEDBABY, +&TA_DEF_CDLADVANCEBLOCK, +&TA_DEF_CDLBELTHOLD, +&TA_DEF_CDLBREAKAWAY, +&TA_DEF_CDLCLOSINGMARUBOZU, +&TA_DEF_CDLCONCEALBABYSWALL, +&TA_DEF_CDLCOUNTERATTACK, +&TA_DEF_CDLDARKCLOUDCOVER, +&TA_DEF_CDLDOJI, +&TA_DEF_CDLDOJISTAR, +&TA_DEF_CDLDRAGONFLYDOJI, +&TA_DEF_CDLENGULFING, +&TA_DEF_CDLEVENINGDOJISTAR, +&TA_DEF_CDLEVENINGSTAR, +&TA_DEF_CDLGAPSIDESIDEWHITE, +&TA_DEF_CDLGRAVESTONEDOJI, +&TA_DEF_CDLHAMMER, +&TA_DEF_CDLHANGINGMAN, +&TA_DEF_CDLHARAMI, +&TA_DEF_CDLHARAMICROSS, +&TA_DEF_CDLHIGHWAVE, +&TA_DEF_CDLHIKKAKE, +&TA_DEF_CDLHIKKAKEMOD, +&TA_DEF_CDLHOMINGPIGEON, +&TA_DEF_CDLIDENTICAL3CROWS, +&TA_DEF_CDLINNECK, +&TA_DEF_CDLINVERTEDHAMMER, +&TA_DEF_CDLKICKING, +&TA_DEF_CDLKICKINGBYLENGTH, +&TA_DEF_CDLLADDERBOTTOM, +&TA_DEF_CDLLONGLEGGEDDOJI, +&TA_DEF_CDLLONGLINE, +&TA_DEF_CDLMARUBOZU, +&TA_DEF_CDLMATCHINGLOW, +&TA_DEF_CDLMATHOLD, +&TA_DEF_CDLMORNINGDOJISTAR, +&TA_DEF_CDLMORNINGSTAR, +&TA_DEF_CDLONNECK, +&TA_DEF_CDLPIERCING, +&TA_DEF_CDLRICKSHAWMAN, +&TA_DEF_CDLRISEFALL3METHODS, +&TA_DEF_CDLSEPARATINGLINES, +&TA_DEF_CDLSHOOTINGSTAR, +&TA_DEF_CDLSHORTLINE, +&TA_DEF_CDLSPINNINGTOP, +&TA_DEF_CDLSTALLEDPATTERN, +&TA_DEF_CDLSTICKSANDWICH, +&TA_DEF_CDLTAKURI, +&TA_DEF_CDLTASUKIGAP, +&TA_DEF_CDLTHRUSTING, +&TA_DEF_CDLTRISTAR, +&TA_DEF_CDLUNIQUE3RIVER, +&TA_DEF_CDLUPSIDEGAP2CROWS, +&TA_DEF_CDLXSIDEGAP3METHODS, +NULL }; +#define SIZE_GROUP_7 ((sizeof(TA_PerGroupFunc_7)/sizeof(const TA_FuncDef *))-1) + +const TA_FuncDef *TA_PerGroupFunc_8[] = { +&TA_DEF_BETA, +&TA_DEF_CORREL, +&TA_DEF_LINEARREG, +&TA_DEF_LINEARREG_ANGLE, +&TA_DEF_LINEARREG_INTERCEPT, +&TA_DEF_LINEARREG_SLOPE, +&TA_DEF_STDDEV, +&TA_DEF_TSF, +&TA_DEF_VAR, +NULL }; +#define SIZE_GROUP_8 ((sizeof(TA_PerGroupFunc_8)/sizeof(const TA_FuncDef *))-1) + +const TA_FuncDef *TA_PerGroupFunc_9[] = { +&TA_DEF_AVGPRICE, +&TA_DEF_MEDPRICE, +&TA_DEF_TYPPRICE, +&TA_DEF_WCLPRICE, +NULL }; +#define SIZE_GROUP_9 ((sizeof(TA_PerGroupFunc_9)/sizeof(const TA_FuncDef *))-1) +/* Generated */ const TA_FuncDef **TA_PerGroupFuncDef[10] = { +&TA_PerGroupFunc_0[0], +&TA_PerGroupFunc_1[0], +&TA_PerGroupFunc_2[0], +&TA_PerGroupFunc_3[0], +&TA_PerGroupFunc_4[0], +&TA_PerGroupFunc_5[0], +&TA_PerGroupFunc_6[0], +&TA_PerGroupFunc_7[0], +&TA_PerGroupFunc_8[0], +&TA_PerGroupFunc_9[0] +/* Generated */ }; + +/* Generated */ const unsigned int TA_PerGroupSize[10] = { +SIZE_GROUP_0, +SIZE_GROUP_1, +SIZE_GROUP_2, +SIZE_GROUP_3, +SIZE_GROUP_4, +SIZE_GROUP_5, +SIZE_GROUP_6, +SIZE_GROUP_7, +SIZE_GROUP_8, +SIZE_GROUP_9 +/* Generated */ }; + +/* Generated */ const unsigned int TA_TotalNbFunction = +SIZE_GROUP_0+ +SIZE_GROUP_1+ +SIZE_GROUP_2+ +SIZE_GROUP_3+ +SIZE_GROUP_4+ +SIZE_GROUP_5+ +SIZE_GROUP_6+ +SIZE_GROUP_7+ +SIZE_GROUP_8+ +SIZE_GROUP_9; + +/***************/ +/* End of File */ +/***************/ diff --git a/src/ta_abstract/ta_java_defs.h b/src/ta_abstract/ta_java_defs.h new file mode 100644 index 000000000..489a20b76 --- /dev/null +++ b/src/ta_abstract/ta_java_defs.h @@ -0,0 +1,360 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* DO NOT MODIFY this file. + * This file is automatically generated by gen_code. + * + * If you are not re-generating the java code (which is most + * likely the case), just ignore this file. + */ + +#define TA_ACOS_Lookback acosLookback +#define TA_ACOS acos +#define TA_AD_Lookback adLookback +#define TA_AD ad +#define TA_ADD_Lookback addLookback +#define TA_ADD add +#define TA_ADOSC_Lookback adOscLookback +#define TA_ADOSC adOsc +#define TA_ADX_Lookback adxLookback +#define TA_ADX adx +#define TA_ADXR_Lookback adxrLookback +#define TA_ADXR adxr +#define TA_APO_Lookback apoLookback +#define TA_APO apo +#define TA_AROON_Lookback aroonLookback +#define TA_AROON aroon +#define TA_AROONOSC_Lookback aroonOscLookback +#define TA_AROONOSC aroonOsc +#define TA_ASIN_Lookback asinLookback +#define TA_ASIN asin +#define TA_ATAN_Lookback atanLookback +#define TA_ATAN atan +#define TA_ATR_Lookback atrLookback +#define TA_ATR atr +#define TA_AVGPRICE_Lookback avgPriceLookback +#define TA_AVGPRICE avgPrice +#define TA_BBANDS_Lookback bbandsLookback +#define TA_BBANDS bbands +#define TA_BETA_Lookback betaLookback +#define TA_BETA beta +#define TA_BOP_Lookback bopLookback +#define TA_BOP bop +#define TA_CCI_Lookback cciLookback +#define TA_CCI cci +#define TA_CDL2CROWS_Lookback cdl2CrowsLookback +#define TA_CDL2CROWS cdl2Crows +#define TA_CDL3BLACKCROWS_Lookback cdl3BlackCrowsLookback +#define TA_CDL3BLACKCROWS cdl3BlackCrows +#define TA_CDL3INSIDE_Lookback cdl3InsideLookback +#define TA_CDL3INSIDE cdl3Inside +#define TA_CDL3LINESTRIKE_Lookback cdl3LineStrikeLookback +#define TA_CDL3LINESTRIKE cdl3LineStrike +#define TA_CDL3OUTSIDE_Lookback cdl3OutsideLookback +#define TA_CDL3OUTSIDE cdl3Outside +#define TA_CDL3STARSINSOUTH_Lookback cdl3StarsInSouthLookback +#define TA_CDL3STARSINSOUTH cdl3StarsInSouth +#define TA_CDL3WHITESOLDIERS_Lookback cdl3WhiteSoldiersLookback +#define TA_CDL3WHITESOLDIERS cdl3WhiteSoldiers +#define TA_CDLABANDONEDBABY_Lookback cdlAbandonedBabyLookback +#define TA_CDLABANDONEDBABY cdlAbandonedBaby +#define TA_CDLADVANCEBLOCK_Lookback cdlAdvanceBlockLookback +#define TA_CDLADVANCEBLOCK cdlAdvanceBlock +#define TA_CDLBELTHOLD_Lookback cdlBeltHoldLookback +#define TA_CDLBELTHOLD cdlBeltHold +#define TA_CDLBREAKAWAY_Lookback cdlBreakawayLookback +#define TA_CDLBREAKAWAY cdlBreakaway +#define TA_CDLCLOSINGMARUBOZU_Lookback cdlClosingMarubozuLookback +#define TA_CDLCLOSINGMARUBOZU cdlClosingMarubozu +#define TA_CDLCONCEALBABYSWALL_Lookback cdlConcealBabysWallLookback +#define TA_CDLCONCEALBABYSWALL cdlConcealBabysWall +#define TA_CDLCOUNTERATTACK_Lookback cdlCounterAttackLookback +#define TA_CDLCOUNTERATTACK cdlCounterAttack +#define TA_CDLDARKCLOUDCOVER_Lookback cdlDarkCloudCoverLookback +#define TA_CDLDARKCLOUDCOVER cdlDarkCloudCover +#define TA_CDLDOJI_Lookback cdlDojiLookback +#define TA_CDLDOJI cdlDoji +#define TA_CDLDOJISTAR_Lookback cdlDojiStarLookback +#define TA_CDLDOJISTAR cdlDojiStar +#define TA_CDLDRAGONFLYDOJI_Lookback cdlDragonflyDojiLookback +#define TA_CDLDRAGONFLYDOJI cdlDragonflyDoji +#define TA_CDLENGULFING_Lookback cdlEngulfingLookback +#define TA_CDLENGULFING cdlEngulfing +#define TA_CDLEVENINGDOJISTAR_Lookback cdlEveningDojiStarLookback +#define TA_CDLEVENINGDOJISTAR cdlEveningDojiStar +#define TA_CDLEVENINGSTAR_Lookback cdlEveningStarLookback +#define TA_CDLEVENINGSTAR cdlEveningStar +#define TA_CDLGAPSIDESIDEWHITE_Lookback cdlGapSideSideWhiteLookback +#define TA_CDLGAPSIDESIDEWHITE cdlGapSideSideWhite +#define TA_CDLGRAVESTONEDOJI_Lookback cdlGravestoneDojiLookback +#define TA_CDLGRAVESTONEDOJI cdlGravestoneDoji +#define TA_CDLHAMMER_Lookback cdlHammerLookback +#define TA_CDLHAMMER cdlHammer +#define TA_CDLHANGINGMAN_Lookback cdlHangingManLookback +#define TA_CDLHANGINGMAN cdlHangingMan +#define TA_CDLHARAMI_Lookback cdlHaramiLookback +#define TA_CDLHARAMI cdlHarami +#define TA_CDLHARAMICROSS_Lookback cdlHaramiCrossLookback +#define TA_CDLHARAMICROSS cdlHaramiCross +#define TA_CDLHIGHWAVE_Lookback cdlHignWaveLookback +#define TA_CDLHIGHWAVE cdlHignWave +#define TA_CDLHIKKAKE_Lookback cdlHikkakeLookback +#define TA_CDLHIKKAKE cdlHikkake +#define TA_CDLHIKKAKEMOD_Lookback cdlHikkakeModLookback +#define TA_CDLHIKKAKEMOD cdlHikkakeMod +#define TA_CDLHOMINGPIGEON_Lookback cdlHomingPigeonLookback +#define TA_CDLHOMINGPIGEON cdlHomingPigeon +#define TA_CDLIDENTICAL3CROWS_Lookback cdlIdentical3CrowsLookback +#define TA_CDLIDENTICAL3CROWS cdlIdentical3Crows +#define TA_CDLINNECK_Lookback cdlInNeckLookback +#define TA_CDLINNECK cdlInNeck +#define TA_CDLINVERTEDHAMMER_Lookback cdlInvertedHammerLookback +#define TA_CDLINVERTEDHAMMER cdlInvertedHammer +#define TA_CDLKICKING_Lookback cdlKickingLookback +#define TA_CDLKICKING cdlKicking +#define TA_CDLKICKINGBYLENGTH_Lookback cdlKickingByLengthLookback +#define TA_CDLKICKINGBYLENGTH cdlKickingByLength +#define TA_CDLLADDERBOTTOM_Lookback cdlLadderBottomLookback +#define TA_CDLLADDERBOTTOM cdlLadderBottom +#define TA_CDLLONGLEGGEDDOJI_Lookback cdlLongLeggedDojiLookback +#define TA_CDLLONGLEGGEDDOJI cdlLongLeggedDoji +#define TA_CDLLONGLINE_Lookback cdlLongLineLookback +#define TA_CDLLONGLINE cdlLongLine +#define TA_CDLMARUBOZU_Lookback cdlMarubozuLookback +#define TA_CDLMARUBOZU cdlMarubozu +#define TA_CDLMATCHINGLOW_Lookback cdlMatchingLowLookback +#define TA_CDLMATCHINGLOW cdlMatchingLow +#define TA_CDLMATHOLD_Lookback cdlMatHoldLookback +#define TA_CDLMATHOLD cdlMatHold +#define TA_CDLMORNINGDOJISTAR_Lookback cdlMorningDojiStarLookback +#define TA_CDLMORNINGDOJISTAR cdlMorningDojiStar +#define TA_CDLMORNINGSTAR_Lookback cdlMorningStarLookback +#define TA_CDLMORNINGSTAR cdlMorningStar +#define TA_CDLONNECK_Lookback cdlOnNeckLookback +#define TA_CDLONNECK cdlOnNeck +#define TA_CDLPIERCING_Lookback cdlPiercingLookback +#define TA_CDLPIERCING cdlPiercing +#define TA_CDLRICKSHAWMAN_Lookback cdlRickshawManLookback +#define TA_CDLRICKSHAWMAN cdlRickshawMan +#define TA_CDLRISEFALL3METHODS_Lookback cdlRiseFall3MethodsLookback +#define TA_CDLRISEFALL3METHODS cdlRiseFall3Methods +#define TA_CDLSEPARATINGLINES_Lookback cdlSeperatingLinesLookback +#define TA_CDLSEPARATINGLINES cdlSeperatingLines +#define TA_CDLSHOOTINGSTAR_Lookback cdlShootingStarLookback +#define TA_CDLSHOOTINGSTAR cdlShootingStar +#define TA_CDLSHORTLINE_Lookback cdlShortLineLookback +#define TA_CDLSHORTLINE cdlShortLine +#define TA_CDLSPINNINGTOP_Lookback cdlSpinningTopLookback +#define TA_CDLSPINNINGTOP cdlSpinningTop +#define TA_CDLSTALLEDPATTERN_Lookback cdlStalledPatternLookback +#define TA_CDLSTALLEDPATTERN cdlStalledPattern +#define TA_CDLSTICKSANDWICH_Lookback cdlStickSandwhichLookback +#define TA_CDLSTICKSANDWICH cdlStickSandwhich +#define TA_CDLTAKURI_Lookback cdlTakuriLookback +#define TA_CDLTAKURI cdlTakuri +#define TA_CDLTASUKIGAP_Lookback cdlTasukiGapLookback +#define TA_CDLTASUKIGAP cdlTasukiGap +#define TA_CDLTHRUSTING_Lookback cdlThrustingLookback +#define TA_CDLTHRUSTING cdlThrusting +#define TA_CDLTRISTAR_Lookback cdlTristarLookback +#define TA_CDLTRISTAR cdlTristar +#define TA_CDLUNIQUE3RIVER_Lookback cdlUnique3RiverLookback +#define TA_CDLUNIQUE3RIVER cdlUnique3River +#define TA_CDLUPSIDEGAP2CROWS_Lookback cdlUpsideGap2CrowsLookback +#define TA_CDLUPSIDEGAP2CROWS cdlUpsideGap2Crows +#define TA_CDLXSIDEGAP3METHODS_Lookback cdlXSideGap3MethodsLookback +#define TA_CDLXSIDEGAP3METHODS cdlXSideGap3Methods +#define TA_CEIL_Lookback ceilLookback +#define TA_CEIL ceil +#define TA_CMO_Lookback cmoLookback +#define TA_CMO cmo +#define TA_CORREL_Lookback correlLookback +#define TA_CORREL correl +#define TA_COS_Lookback cosLookback +#define TA_COS cos +#define TA_COSH_Lookback coshLookback +#define TA_COSH cosh +#define TA_DEMA_Lookback demaLookback +#define TA_DEMA dema +#define TA_DIV_Lookback divLookback +#define TA_DIV div +#define TA_DX_Lookback dxLookback +#define TA_DX dx +#define TA_EMA_Lookback emaLookback +#define TA_EMA ema +#define TA_EXP_Lookback expLookback +#define TA_EXP exp +#define TA_FLOOR_Lookback floorLookback +#define TA_FLOOR floor +#define TA_HT_DCPERIOD_Lookback htDcPeriodLookback +#define TA_HT_DCPERIOD htDcPeriod +#define TA_HT_DCPHASE_Lookback htDcPhaseLookback +#define TA_HT_DCPHASE htDcPhase +#define TA_HT_PHASOR_Lookback htPhasorLookback +#define TA_HT_PHASOR htPhasor +#define TA_HT_SINE_Lookback htSineLookback +#define TA_HT_SINE htSine +#define TA_HT_TRENDLINE_Lookback htTrendlineLookback +#define TA_HT_TRENDLINE htTrendline +#define TA_HT_TRENDMODE_Lookback htTrendModeLookback +#define TA_HT_TRENDMODE htTrendMode +#define TA_KAMA_Lookback kamaLookback +#define TA_KAMA kama +#define TA_LINEARREG_Lookback linearRegLookback +#define TA_LINEARREG linearReg +#define TA_LINEARREG_ANGLE_Lookback linearRegAngleLookback +#define TA_LINEARREG_ANGLE linearRegAngle +#define TA_LINEARREG_INTERCEPT_Lookback linearRegInterceptLookback +#define TA_LINEARREG_INTERCEPT linearRegIntercept +#define TA_LINEARREG_SLOPE_Lookback linearRegSlopeLookback +#define TA_LINEARREG_SLOPE linearRegSlope +#define TA_LN_Lookback lnLookback +#define TA_LN ln +#define TA_LOG10_Lookback log10Lookback +#define TA_LOG10 log10 +#define TA_MA_Lookback movingAverageLookback +#define TA_MA movingAverage +#define TA_MACD_Lookback macdLookback +#define TA_MACD macd +#define TA_MACDEXT_Lookback macdExtLookback +#define TA_MACDEXT macdExt +#define TA_MACDFIX_Lookback macdFixLookback +#define TA_MACDFIX macdFix +#define TA_MAMA_Lookback mamaLookback +#define TA_MAMA mama +#define TA_MAVP_Lookback movingAverageVariablePeriodLookback +#define TA_MAVP movingAverageVariablePeriod +#define TA_MAX_Lookback maxLookback +#define TA_MAX max +#define TA_MAXINDEX_Lookback maxIndexLookback +#define TA_MAXINDEX maxIndex +#define TA_MEDPRICE_Lookback medPriceLookback +#define TA_MEDPRICE medPrice +#define TA_MFI_Lookback mfiLookback +#define TA_MFI mfi +#define TA_MIDPOINT_Lookback midPointLookback +#define TA_MIDPOINT midPoint +#define TA_MIDPRICE_Lookback midPriceLookback +#define TA_MIDPRICE midPrice +#define TA_MIN_Lookback minLookback +#define TA_MIN min +#define TA_MININDEX_Lookback minIndexLookback +#define TA_MININDEX minIndex +#define TA_MINMAX_Lookback minMaxLookback +#define TA_MINMAX minMax +#define TA_MINMAXINDEX_Lookback minMaxIndexLookback +#define TA_MINMAXINDEX minMaxIndex +#define TA_MINUS_DI_Lookback minusDILookback +#define TA_MINUS_DI minusDI +#define TA_MINUS_DM_Lookback minusDMLookback +#define TA_MINUS_DM minusDM +#define TA_MOM_Lookback momLookback +#define TA_MOM mom +#define TA_MULT_Lookback multLookback +#define TA_MULT mult +#define TA_NATR_Lookback natrLookback +#define TA_NATR natr +#define TA_OBV_Lookback obvLookback +#define TA_OBV obv +#define TA_PLUS_DI_Lookback plusDILookback +#define TA_PLUS_DI plusDI +#define TA_PLUS_DM_Lookback plusDMLookback +#define TA_PLUS_DM plusDM +#define TA_PPO_Lookback ppoLookback +#define TA_PPO ppo +#define TA_ROC_Lookback rocLookback +#define TA_ROC roc +#define TA_ROCP_Lookback rocPLookback +#define TA_ROCP rocP +#define TA_ROCR_Lookback rocRLookback +#define TA_ROCR rocR +#define TA_ROCR100_Lookback rocR100Lookback +#define TA_ROCR100 rocR100 +#define TA_RSI_Lookback rsiLookback +#define TA_RSI rsi +#define TA_SAR_Lookback sarLookback +#define TA_SAR sar +#define TA_SAREXT_Lookback sarExtLookback +#define TA_SAREXT sarExt +#define TA_SIN_Lookback sinLookback +#define TA_SIN sin +#define TA_SINH_Lookback sinhLookback +#define TA_SINH sinh +#define TA_SMA_Lookback smaLookback +#define TA_SMA sma +#define TA_SQRT_Lookback sqrtLookback +#define TA_SQRT sqrt +#define TA_STDDEV_Lookback stdDevLookback +#define TA_STDDEV stdDev +#define TA_STOCH_Lookback stochLookback +#define TA_STOCH stoch +#define TA_STOCHF_Lookback stochFLookback +#define TA_STOCHF stochF +#define TA_STOCHRSI_Lookback stochRsiLookback +#define TA_STOCHRSI stochRsi +#define TA_SUB_Lookback subLookback +#define TA_SUB sub +#define TA_SUM_Lookback sumLookback +#define TA_SUM sum +#define TA_T3_Lookback t3Lookback +#define TA_T3 t3 +#define TA_TAN_Lookback tanLookback +#define TA_TAN tan +#define TA_TANH_Lookback tanhLookback +#define TA_TANH tanh +#define TA_TEMA_Lookback temaLookback +#define TA_TEMA tema +#define TA_TRANGE_Lookback trueRangeLookback +#define TA_TRANGE trueRange +#define TA_TRIMA_Lookback trimaLookback +#define TA_TRIMA trima +#define TA_TRIX_Lookback trixLookback +#define TA_TRIX trix +#define TA_TSF_Lookback tsfLookback +#define TA_TSF tsf +#define TA_TYPPRICE_Lookback typPriceLookback +#define TA_TYPPRICE typPrice +#define TA_ULTOSC_Lookback ultOscLookback +#define TA_ULTOSC ultOsc +#define TA_VAR_Lookback varianceLookback +#define TA_VAR variance +#define TA_WCLPRICE_Lookback wclPriceLookback +#define TA_WCLPRICE wclPrice +#define TA_WILLR_Lookback willRLookback +#define TA_WILLR willR +#define TA_WMA_Lookback wmaLookback +#define TA_WMA wma + +/*************** + * End of File * + ***************/ diff --git a/src/ta_abstract/tables/table_a.c b/src/ta_abstract/tables/table_a.c new file mode 100644 index 000000000..f830a6daf --- /dev/null +++ b/src/ta_abstract/tables/table_a.c @@ -0,0 +1,373 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/********************************************************************* + * This file contains only TA functions starting with the letter 'A' * + *********************************************************************/ +#include +#include "ta_abstract.h" +#include "ta_def_ui.h" + +/* Follow the 3 steps defined below for adding a new TA Function to this + * file. + */ + +/**************************************************************************** + * Step 1 - Define here the interface to your TA functions with + * the macro DEF_FUNCTION. + * + ****************************************************************************/ + +/* ACOS BEGIN */ +DEF_MATH_UNARY_OPERATOR( ACOS, "Vector Trigonometric ACos", "Acos" ) +/* ACOS END */ + +/* AD BEGIN */ +static const TA_InputParameterInfo *TA_AD_Inputs[] = +{ + &TA_DEF_UI_Input_Price_HLCV, + NULL +}; + +static const TA_OutputParameterInfo *TA_AD_Outputs[] = +{ + &TA_DEF_UI_Output_Real, + NULL +}; + +static const TA_OptInputParameterInfo *TA_AD_OptInputs[] = +{ + NULL +}; + +DEF_FUNCTION( AD, /* name */ + TA_GroupId_VolumeIndicators, /* groupId */ + "Chaikin A/D Line", /* hint */ + "Ad", /* CamelCase name */ + 0 /* flags */ + ); +/* AD END */ + +/* ADD BEGIN */ +DEF_MATH_BINARY_OPERATOR( ADD, "Vector Arithmetic Add", "Add" ) +/* ADD END */ + +/* ADOSC BEGIN */ +static const TA_OptInputParameterInfo TA_DEF_UI_FastADOSC_Period = +{ + TA_OptInput_IntegerRange, /* type */ + "optInFastPeriod", /* paramName */ + 0, /* flags */ + + "Fast Period", /* displayName */ + (const void *)&TA_DEF_TimePeriod_Positive_Minimum2, /* dataSet */ + 3, /* defaultValue */ + "Number of period for the fast MA", /* hint */ + + NULL /* CamelCase name */ +}; + +static const TA_OptInputParameterInfo TA_DEF_UI_SlowADOSC_Period = +{ + TA_OptInput_IntegerRange, /* type */ + "optInSlowPeriod", /* paramName */ + 0, /* flags */ + + "Slow Period", /* displayName */ + (const void *)&TA_DEF_TimePeriod_Positive_Minimum2, /* dataSet */ + 10, /* defaultValue */ + "Number of period for the slow MA", /* hint */ + + NULL /* CamelCase name */ +}; + +static const TA_InputParameterInfo *TA_ADOSC_Inputs[] = +{ + &TA_DEF_UI_Input_Price_HLCV, + NULL +}; + +static const TA_OutputParameterInfo *TA_ADOSC_Outputs[] = +{ + &TA_DEF_UI_Output_Real, + NULL +}; + +static const TA_OptInputParameterInfo *TA_ADOSC_OptInputs[] = +{ + &TA_DEF_UI_FastADOSC_Period, + &TA_DEF_UI_SlowADOSC_Period, + NULL +}; + +DEF_FUNCTION( ADOSC, /* name */ + TA_GroupId_VolumeIndicators, /* groupId */ + "Chaikin A/D Oscillator", /* hint */ + "AdOsc", /* CamelCase name */ + 0 /* flags */ + ); +/* ADOSC END */ + +/* ADX BEGIN */ +static const TA_InputParameterInfo *TA_ADX_Inputs[] = +{ + &TA_DEF_UI_Input_Price_HLC, + NULL +}; + +static const TA_OutputParameterInfo *TA_ADX_Outputs[] = +{ + &TA_DEF_UI_Output_Real, + NULL +}; + +static const TA_OptInputParameterInfo *TA_ADX_OptInputs[] = +{ &TA_DEF_UI_TimePeriod_14_MINIMUM2, + NULL +}; + +DEF_FUNCTION( ADX, /* name */ + TA_GroupId_MomentumIndicators, /* groupId */ + "Average Directional Movement Index", /* hint */ + "Adx", /* CamelCase name */ + TA_FUNC_FLG_UNST_PER /* flags */ + ); +/* ADX END */ + +/* ADXR BEGIN */ +static const TA_InputParameterInfo *TA_ADXR_Inputs[] = +{ + &TA_DEF_UI_Input_Price_HLC, + NULL +}; + +static const TA_OutputParameterInfo *TA_ADXR_Outputs[] = +{ + &TA_DEF_UI_Output_Real, + NULL +}; + +static const TA_OptInputParameterInfo *TA_ADXR_OptInputs[] = +{ &TA_DEF_UI_TimePeriod_14_MINIMUM2, + NULL +}; + +DEF_FUNCTION( ADXR, /* name */ + TA_GroupId_MomentumIndicators, /* groupId */ + "Average Directional Movement Index Rating", /* hint */ + "Adxr", /* CamelCase name */ + TA_FUNC_FLG_UNST_PER /* flags */ + ); +/* ADXR END */ + +/* APO BEGIN */ +static const TA_InputParameterInfo *TA_APO_Inputs[] = +{ + &TA_DEF_UI_Input_Real, + NULL +}; + +static const TA_OutputParameterInfo *TA_APO_Outputs[] = +{ + &TA_DEF_UI_Output_Real, + NULL +}; + +static const TA_OptInputParameterInfo *TA_APO_OptInputs[] = +{ &TA_DEF_UI_Fast_Period, + &TA_DEF_UI_Slow_Period, + &TA_DEF_UI_MA_Method, + NULL +}; + +DEF_FUNCTION( APO, /* name */ + TA_GroupId_MomentumIndicators, /* groupId */ + "Absolute Price Oscillator", /* hint */ + "Apo", /* CamelCase name */ + 0 /* flags */ + ); +/* APO END */ + +/* AROON BEGIN */ +const TA_OutputParameterInfo TA_DEF_UI_Output_Real_AroonUp = + { TA_Output_Real, "outAroonDown", TA_OUT_DASH_LINE }; + +const TA_OutputParameterInfo TA_DEF_UI_Output_Real_AroonDown = + { TA_Output_Real, "outAroonUp", TA_OUT_LINE }; + +static const TA_InputParameterInfo *TA_AROON_Inputs[] = +{ + &TA_DEF_UI_Input_Price_HL, + NULL +}; + +static const TA_OutputParameterInfo *TA_AROON_Outputs[] = +{ + &TA_DEF_UI_Output_Real_AroonUp, + &TA_DEF_UI_Output_Real_AroonDown, + NULL +}; + +static const TA_OptInputParameterInfo *TA_AROON_OptInputs[] = +{ + &TA_DEF_UI_TimePeriod_14_MINIMUM2, + NULL +}; + +DEF_FUNCTION( AROON, /* name */ + TA_GroupId_MomentumIndicators, /* groupId */ + "Aroon", /* hint */ + "Aroon", /* CamelCase name */ + 0 /* flags */ + ); + +/* AROON END */ + +/* AROONOSC BEGIN */ +static const TA_InputParameterInfo *TA_AROONOSC_Inputs[] = +{ + &TA_DEF_UI_Input_Price_HL, + NULL +}; + +static const TA_OutputParameterInfo *TA_AROONOSC_Outputs[] = +{ + &TA_DEF_UI_Output_Real, + NULL +}; + +static const TA_OptInputParameterInfo *TA_AROONOSC_OptInputs[] = +{ + &TA_DEF_UI_TimePeriod_14_MINIMUM2, + NULL +}; + +DEF_FUNCTION( AROONOSC, /* name */ + TA_GroupId_MomentumIndicators, /* groupId */ + "Aroon Oscillator", /* hint */ + "AroonOsc", /* CamelCase name */ + 0 /* flags */ + ); + +/* AROONOSC END */ + +/* ASIN BEGIN */ +DEF_MATH_UNARY_OPERATOR( ASIN, "Vector Trigonometric ASin", "Asin" ) +/* ASIN END */ + +/* ATAN BEGIN */ +DEF_MATH_UNARY_OPERATOR( ATAN, "Vector Trigonometric ATan", "Atan" ) +/* ATAN END */ + +/* ATR BEGIN */ +static const TA_InputParameterInfo *TA_ATR_Inputs[] = +{ + &TA_DEF_UI_Input_Price_HLC, + NULL +}; + +static const TA_OutputParameterInfo *TA_ATR_Outputs[] = +{ + &TA_DEF_UI_Output_Real, + NULL +}; + +static const TA_OptInputParameterInfo *TA_ATR_OptInputs[] = +{ &TA_DEF_UI_TimePeriod_14, + NULL +}; + +DEF_FUNCTION( ATR, /* name */ + TA_GroupId_VolatilityIndicators, /* groupId */ + "Average True Range", /* hint */ + "Atr", /* CamelCase name */ + TA_FUNC_FLG_UNST_PER /* flags */ + ); +/* ATR END */ + +/* AVGPRICE BEGIN */ +static const TA_InputParameterInfo *TA_AVGPRICE_Inputs[] = +{ + &TA_DEF_UI_Input_Price_OHLC, + NULL +}; + +static const TA_OutputParameterInfo *TA_AVGPRICE_Outputs[] = +{ + &TA_DEF_UI_Output_Real, + NULL +}; + +static const TA_OptInputParameterInfo *TA_AVGPRICE_OptInputs[] = { NULL }; + +DEF_FUNCTION( AVGPRICE, /* name */ + TA_GroupId_PriceTransform, /* groupId */ + "Average Price", /* hint */ + "AvgPrice", /* CamelCase name */ + TA_FUNC_FLG_OVERLAP /* flags */ + ); +/* AVGPRICE END */ + +/**************************************************************************** + * Step 2 - Add your TA function to the table. + * Keep in alphabetical order. Must be NULL terminated. + ****************************************************************************/ +const TA_FuncDef *TA_DEF_TableA[] = +{ + ADD_TO_TABLE(ACOS), + ADD_TO_TABLE(AD), + ADD_TO_TABLE(ADD), + ADD_TO_TABLE(ADOSC), + ADD_TO_TABLE(ADX), + ADD_TO_TABLE(ADXR), + ADD_TO_TABLE(APO), + ADD_TO_TABLE(AROON), + ADD_TO_TABLE(AROONOSC), + ADD_TO_TABLE(ASIN), + ADD_TO_TABLE(ATAN), + ADD_TO_TABLE(ATR), + ADD_TO_TABLE(AVGPRICE), + NULL +}; + + +/* Do not modify the following line. */ +const unsigned int TA_DEF_TableASize = + ((sizeof(TA_DEF_TableA)/sizeof(TA_FuncDef *))-1); + + +/**************************************************************************** + * Step 3 - Make sure "gen_code" is executed for generating all other + * source files derived from this one. + * You can then re-compile the library as usual and you are done! + ****************************************************************************/ diff --git a/src/ta_abstract/tables/table_b.c b/src/ta_abstract/tables/table_b.c new file mode 100644 index 000000000..e944f1158 --- /dev/null +++ b/src/ta_abstract/tables/table_b.c @@ -0,0 +1,196 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/********************************************************************* + * This file contains only TA functions starting with the letter 'B' * + *********************************************************************/ +#include +#include "ta_abstract.h" +#include "ta_def_ui.h" + +/* Follow the 3 steps defined below for adding a new TA Function to this + * file. + */ + + +/**************************************************************************** + * Step 1 - Define here the interface to your TA functions with + * the macro DEF_FUNCTION. + * + ****************************************************************************/ + +/* BBANDS BEGIN */ + +/* Nb Deviation up/down is used for bollinger bands. */ +const TA_OptInputParameterInfo TA_DEF_UI_NbDeviationUp = +{ + TA_OptInput_RealRange, /* type */ + "optInNbDevUp", /* paramName */ + 0, /* flags */ + + "Deviations up", /* displayName */ + (const void *)&TA_DEF_NbDeviation, /* dataSet */ + 2.0, /* defaultValue */ + "Deviation multiplier for upper band", /* hint */ + + NULL /* CamelCase name */ +}; + +const TA_OptInputParameterInfo TA_DEF_UI_NbDeviationDn = +{ + TA_OptInput_RealRange, /* type */ + "optInNbDevDn", /* paramName */ + 0, /* flags */ + + "Deviations down", /* displayName */ + (const void *)&TA_DEF_NbDeviation, /* dataSet */ + 2.0, /* defaultValue */ + "Deviation multiplier for lower band", /* hint */ + + NULL /* CamelCase name */ +}; + +const TA_OutputParameterInfo TA_DEF_UI_Output_Real_BBANDS_Middle = + { TA_Output_Real, "outRealMiddleBand", TA_OUT_LINE }; + +const TA_OutputParameterInfo TA_DEF_UI_Output_Real_BBANDS_Upper = + { TA_Output_Real, "outRealUpperBand", TA_OUT_UPPER_LIMIT }; + +const TA_OutputParameterInfo TA_DEF_UI_Output_Real_BBANDS_Lower = + { TA_Output_Real, "outRealLowerBand", TA_OUT_LOWER_LIMIT }; + +static const TA_InputParameterInfo *TA_BBANDS_Inputs[] = +{ + &TA_DEF_UI_Input_Real, + NULL +}; + +static const TA_OutputParameterInfo *TA_BBANDS_Outputs[] = +{ + &TA_DEF_UI_Output_Real_BBANDS_Upper, + &TA_DEF_UI_Output_Real_BBANDS_Middle, + &TA_DEF_UI_Output_Real_BBANDS_Lower, + NULL +}; + +static const TA_OptInputParameterInfo *TA_BBANDS_OptInputs[] = +{ &TA_DEF_UI_TimePeriod_5_MINIMUM2, + &TA_DEF_UI_NbDeviationUp, + &TA_DEF_UI_NbDeviationDn, + &TA_DEF_UI_MA_Method, + NULL +}; + +DEF_FUNCTION( BBANDS, /* name */ + TA_GroupId_OverlapStudies, /* groupId */ + "Bollinger Bands", /* hint */ + "Bbands", /* CamelCase name */ + TA_FUNC_FLG_OVERLAP /* flags */ + ); +/* BBANDS END */ + + +/* BOP BEGIN */ +static const TA_InputParameterInfo *TA_BOP_Inputs[] = +{ + &TA_DEF_UI_Input_Price_OHLC, + NULL +}; + +static const TA_OutputParameterInfo *TA_BOP_Outputs[] = +{ + &TA_DEF_UI_Output_Real, + NULL +}; + +static const TA_OptInputParameterInfo *TA_BOP_OptInputs[] = { NULL }; + +DEF_FUNCTION( BOP, /* name */ + TA_GroupId_MomentumIndicators, /* groupId */ + "Balance Of Power", /* hint */ + "Bop", /* CamelCase name */ + 0 /* flags */ + ); +/* BOP END */ + +/* BETA BEGIN */ +static const TA_InputParameterInfo *TA_BETA_Inputs[] = +{ + &TA_DEF_UI_Input_Real0, + &TA_DEF_UI_Input_Real1, + NULL +}; + +static const TA_OutputParameterInfo *TA_BETA_Outputs[] = +{ + &TA_DEF_UI_Output_Real, + NULL +}; + +static const TA_OptInputParameterInfo *TA_BETA_OptInputs[] = +{ + &TA_DEF_UI_TimePeriod_5, + NULL +}; + +DEF_FUNCTION( BETA, /* name */ + TA_GroupId_Statistic, /* groupId */ + "Beta", /* hint */ + "Beta", /* CamelCase name */ + 0 /* flags */ + ); +/* BETA END */ + +/**************************************************************************** + * Step 2 - Add your TA function to the table. + * Keep in alphabetical order. Must be NULL terminated. + ****************************************************************************/ +const TA_FuncDef *TA_DEF_TableB[] = +{ + ADD_TO_TABLE(BBANDS), + ADD_TO_TABLE(BETA), + ADD_TO_TABLE(BOP), + NULL +}; + + +/* Do not modify the following line. */ +const unsigned int TA_DEF_TableBSize = + ((sizeof(TA_DEF_TableB)/sizeof(TA_FuncDef *))-1); + + +/**************************************************************************** + * Step 3 - Make sure "gen_code" is executed for generating all other + * source files derived from this one. + * You can then re-compile the library as usual and you are done! + ****************************************************************************/ diff --git a/src/ta_abstract/tables/table_c.c b/src/ta_abstract/tables/table_c.c new file mode 100644 index 000000000..ba3f289e1 --- /dev/null +++ b/src/ta_abstract/tables/table_c.c @@ -0,0 +1,1885 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/********************************************************************* + * This file contains only TA functions starting with the letter 'C' * + *********************************************************************/ +#include +#include "ta_abstract.h" +#include "ta_def_ui.h" + +/* Follow the 3 steps defined below for adding a new TA Function to this + * file. + */ + +/**************************************************************************** + * Step 1 - Define here the interface to your TA functions with + * the macro DEF_FUNCTION. + * + ****************************************************************************/ + +/* CCI BEGIN */ +static const TA_InputParameterInfo *TA_CCI_Inputs[] = +{ + &TA_DEF_UI_Input_Price_HLC, + NULL +}; + +static const TA_OutputParameterInfo *TA_CCI_Outputs[] = +{ + &TA_DEF_UI_Output_Real, + NULL +}; + +static const TA_OptInputParameterInfo *TA_CCI_OptInputs[] = +{ &TA_DEF_UI_TimePeriod_14_MINIMUM2, + NULL +}; + +DEF_FUNCTION( CCI, /* name */ + TA_GroupId_MomentumIndicators, /* groupId */ + "Commodity Channel Index", /* hint */ + "Cci", /* CamelCase name */ + 0 /* flags */ ); + +/* CCI END */ + +/* CDL2CROWS BEGIN */ +static const TA_InputParameterInfo *TA_CDL2CROWS_Inputs[] = +{ + &TA_DEF_UI_Input_Price_OHLC, + NULL +}; + +static const TA_OutputParameterInfo *TA_CDL2CROWS_Outputs[] = +{ + &TA_DEF_UI_Output_Integer, + NULL +}; + +static const TA_OptInputParameterInfo *TA_CDL2CROWS_OptInputs[] = +{ + NULL +}; + +DEF_FUNCTION( CDL2CROWS, /* name */ + TA_GroupId_PatternRecognition, /* groupId */ + "Two Crows", /* hint */ + "Cdl2Crows", /* CamelCase name */ + TA_FUNC_FLG_CANDLESTICK /* flags */ + ); + +/* CDL2CROWS END */ + +/* CDL3BLACKCROWS BEGIN */ +static const TA_InputParameterInfo *TA_CDL3BLACKCROWS_Inputs[] = +{ + &TA_DEF_UI_Input_Price_OHLC, + NULL +}; + +static const TA_OutputParameterInfo *TA_CDL3BLACKCROWS_Outputs[] = +{ + &TA_DEF_UI_Output_Integer, + NULL +}; + +static const TA_OptInputParameterInfo *TA_CDL3BLACKCROWS_OptInputs[] = +{ + NULL +}; + +DEF_FUNCTION( CDL3BLACKCROWS, /* name */ + TA_GroupId_PatternRecognition, /* groupId */ + "Three Black Crows", /* hint */ + "Cdl3BlackCrows", /* CamelCase name */ + TA_FUNC_FLG_CANDLESTICK /* flags */ + ); + +/* CDL3BLACKCROWS END */ + +/* CDL3INSIDE BEGIN */ +static const TA_InputParameterInfo *TA_CDL3INSIDE_Inputs[] = +{ + &TA_DEF_UI_Input_Price_OHLC, + NULL +}; + +static const TA_OutputParameterInfo *TA_CDL3INSIDE_Outputs[] = +{ + &TA_DEF_UI_Output_Integer, + NULL +}; + +static const TA_OptInputParameterInfo *TA_CDL3INSIDE_OptInputs[] = +{ + NULL +}; + +DEF_FUNCTION( CDL3INSIDE, /* name */ + TA_GroupId_PatternRecognition, /* groupId */ + "Three Inside Up/Down", /* hint */ + "Cdl3Inside", /* CamelCase name */ + TA_FUNC_FLG_CANDLESTICK /* flags */ + ); + +/* CDL3INSIDE END */ + +/* CDL3LINESTRIKE BEGIN */ +static const TA_InputParameterInfo *TA_CDL3LINESTRIKE_Inputs[] = +{ + &TA_DEF_UI_Input_Price_OHLC, + NULL +}; + +static const TA_OutputParameterInfo *TA_CDL3LINESTRIKE_Outputs[] = +{ + &TA_DEF_UI_Output_Integer, + NULL +}; + +static const TA_OptInputParameterInfo *TA_CDL3LINESTRIKE_OptInputs[] = +{ + NULL +}; + +DEF_FUNCTION( CDL3LINESTRIKE, /* name */ + TA_GroupId_PatternRecognition, /* groupId */ + "Three-Line Strike ", /* hint */ + "Cdl3LineStrike", /* CamelCase name */ + TA_FUNC_FLG_CANDLESTICK /* flags */ + ); + +/* CDL3LINESTRIKE END */ + +/* CDL3OUTSIDE BEGIN */ +static const TA_InputParameterInfo *TA_CDL3OUTSIDE_Inputs[] = +{ + &TA_DEF_UI_Input_Price_OHLC, + NULL +}; + +static const TA_OutputParameterInfo *TA_CDL3OUTSIDE_Outputs[] = +{ + &TA_DEF_UI_Output_Integer, + NULL +}; + +static const TA_OptInputParameterInfo *TA_CDL3OUTSIDE_OptInputs[] = +{ + NULL +}; + +DEF_FUNCTION( CDL3OUTSIDE, /* name */ + TA_GroupId_PatternRecognition, /* groupId */ + "Three Outside Up/Down", /* hint */ + "Cdl3Outside", /* CamelCase name */ + TA_FUNC_FLG_CANDLESTICK /* flags */ + ); + +/* CDL3OUTSIDE END */ + +/* CDL3STARSINSOUTH BEGIN */ +static const TA_InputParameterInfo *TA_CDL3STARSINSOUTH_Inputs[] = +{ + &TA_DEF_UI_Input_Price_OHLC, + NULL +}; + +static const TA_OutputParameterInfo *TA_CDL3STARSINSOUTH_Outputs[] = +{ + &TA_DEF_UI_Output_Integer, + NULL +}; + +static const TA_OptInputParameterInfo *TA_CDL3STARSINSOUTH_OptInputs[] = +{ + NULL +}; + +DEF_FUNCTION( CDL3STARSINSOUTH, /* name */ + TA_GroupId_PatternRecognition, /* groupId */ + "Three Stars In The South", /* hint */ + "Cdl3StarsInSouth", /* CamelCase name */ + TA_FUNC_FLG_CANDLESTICK /* flags */ + ); + +/* CDL3STARSINSOUTH END */ + +/* CDL3WHITESOLDIERS BEGIN */ +static const TA_InputParameterInfo *TA_CDL3WHITESOLDIERS_Inputs[] = +{ + &TA_DEF_UI_Input_Price_OHLC, + NULL +}; + +static const TA_OutputParameterInfo *TA_CDL3WHITESOLDIERS_Outputs[] = +{ + &TA_DEF_UI_Output_Integer, + NULL +}; + +static const TA_OptInputParameterInfo *TA_CDL3WHITESOLDIERS_OptInputs[] = +{ + NULL +}; + +DEF_FUNCTION( CDL3WHITESOLDIERS, /* name */ + TA_GroupId_PatternRecognition, /* groupId */ + "Three Advancing White Soldiers", /* hint */ + "Cdl3WhiteSoldiers", /* CamelCase name */ + TA_FUNC_FLG_CANDLESTICK /* flags */ + ); + +/* CDL3WHITESOLDIERS END */ + +/* CDLABANDONEDBABY BEGIN */ +static const TA_InputParameterInfo *TA_CDLABANDONEDBABY_Inputs[] = +{ + &TA_DEF_UI_Input_Price_OHLC, + NULL +}; + +static const TA_OutputParameterInfo *TA_CDLABANDONEDBABY_Outputs[] = +{ + &TA_DEF_UI_Output_Integer, + NULL +}; + +static const TA_OptInputParameterInfo *TA_CDLABANDONEDBABY_OptInputs[] = +{ + &TA_DEF_UI_Penetration_30, + NULL +}; + +DEF_FUNCTION( CDLABANDONEDBABY, /* name */ + TA_GroupId_PatternRecognition, /* groupId */ + "Abandoned Baby", /* hint */ + "CdlAbandonedBaby", /* CamelCase name */ + TA_FUNC_FLG_CANDLESTICK /* flags */ + ); + +/* CDLABANDONEDBABY END */ + +/* CDLADVANCEBLOCK BEGIN */ +static const TA_InputParameterInfo *TA_CDLADVANCEBLOCK_Inputs[] = +{ + &TA_DEF_UI_Input_Price_OHLC, + NULL +}; + +static const TA_OutputParameterInfo *TA_CDLADVANCEBLOCK_Outputs[] = +{ + &TA_DEF_UI_Output_Integer, + NULL +}; + +static const TA_OptInputParameterInfo *TA_CDLADVANCEBLOCK_OptInputs[] = +{ + NULL +}; + +DEF_FUNCTION( CDLADVANCEBLOCK, /* name */ + TA_GroupId_PatternRecognition, /* groupId */ + "Advance Block", /* hint */ + "CdlAdvanceBlock", /* CamelCase name */ + TA_FUNC_FLG_CANDLESTICK /* flags */ + ); + +/* CDLADVANCEBLOCK END */ + +/* CDLBELTHOLD BEGIN */ +static const TA_InputParameterInfo *TA_CDLBELTHOLD_Inputs[] = +{ + &TA_DEF_UI_Input_Price_OHLC, + NULL +}; + +static const TA_OutputParameterInfo *TA_CDLBELTHOLD_Outputs[] = +{ + &TA_DEF_UI_Output_Integer, + NULL +}; + +static const TA_OptInputParameterInfo *TA_CDLBELTHOLD_OptInputs[] = +{ + NULL +}; + +DEF_FUNCTION( CDLBELTHOLD, /* name */ + TA_GroupId_PatternRecognition, /* groupId */ + "Belt-hold", /* hint */ + "CdlBeltHold", /* CamelCase name */ + TA_FUNC_FLG_CANDLESTICK /* flags */ + ); + +/* CDLBELTHOLD END */ + +/* CDLBREAKAWAY BEGIN */ +static const TA_InputParameterInfo *TA_CDLBREAKAWAY_Inputs[] = +{ + &TA_DEF_UI_Input_Price_OHLC, + NULL +}; + +static const TA_OutputParameterInfo *TA_CDLBREAKAWAY_Outputs[] = +{ + &TA_DEF_UI_Output_Integer, + NULL +}; + +static const TA_OptInputParameterInfo *TA_CDLBREAKAWAY_OptInputs[] = +{ + NULL +}; + +DEF_FUNCTION( CDLBREAKAWAY, /* name */ + TA_GroupId_PatternRecognition, /* groupId */ + "Breakaway", /* hint */ + "CdlBreakaway", /* CamelCase name */ + TA_FUNC_FLG_CANDLESTICK /* flags */ + ); + +/* CDLBREAKAWAY END */ + +/* CDLCLOSINGMARUBOZU BEGIN */ +static const TA_InputParameterInfo *TA_CDLCLOSINGMARUBOZU_Inputs[] = +{ + &TA_DEF_UI_Input_Price_OHLC, + NULL +}; + +static const TA_OutputParameterInfo *TA_CDLCLOSINGMARUBOZU_Outputs[] = +{ + &TA_DEF_UI_Output_Integer, + NULL +}; + +static const TA_OptInputParameterInfo *TA_CDLCLOSINGMARUBOZU_OptInputs[] = +{ + NULL +}; + +DEF_FUNCTION( CDLCLOSINGMARUBOZU, /* name */ + TA_GroupId_PatternRecognition, /* groupId */ + "Closing Marubozu", /* hint */ + "CdlClosingMarubozu", /* CamelCase name */ + TA_FUNC_FLG_CANDLESTICK /* flags */ + ); + +/* CDLCLOSINGMARUBOZU END */ + +/* CDLCONCEALBABYSWALL BEGIN */ +static const TA_InputParameterInfo *TA_CDLCONCEALBABYSWALL_Inputs[] = +{ + &TA_DEF_UI_Input_Price_OHLC, + NULL +}; + +static const TA_OutputParameterInfo *TA_CDLCONCEALBABYSWALL_Outputs[] = +{ + &TA_DEF_UI_Output_Integer, + NULL +}; + +static const TA_OptInputParameterInfo *TA_CDLCONCEALBABYSWALL_OptInputs[] = +{ + NULL +}; + +DEF_FUNCTION( CDLCONCEALBABYSWALL, /* name */ + TA_GroupId_PatternRecognition, /* groupId */ + "Concealing Baby Swallow", /* hint */ + "CdlConcealBabysWall", /* CamelCase name */ + TA_FUNC_FLG_CANDLESTICK /* flags */ + ); + +/* CDLCONCEALBABYSWALL END */ + +/* CDLCOUNTERATTACK BEGIN */ +static const TA_InputParameterInfo *TA_CDLCOUNTERATTACK_Inputs[] = +{ + &TA_DEF_UI_Input_Price_OHLC, + NULL +}; + +static const TA_OutputParameterInfo *TA_CDLCOUNTERATTACK_Outputs[] = +{ + &TA_DEF_UI_Output_Integer, + NULL +}; + +static const TA_OptInputParameterInfo *TA_CDLCOUNTERATTACK_OptInputs[] = +{ + NULL +}; + +DEF_FUNCTION( CDLCOUNTERATTACK, /* name */ + TA_GroupId_PatternRecognition, /* groupId */ + "Counterattack", /* hint */ + "CdlCounterAttack", /* CamelCase name */ + TA_FUNC_FLG_CANDLESTICK /* flags */ + ); + +/* CDLCOUNTERATTACK END */ + +/* CDLDARKCLOUDCOVER BEGIN */ +static const TA_InputParameterInfo *TA_CDLDARKCLOUDCOVER_Inputs[] = +{ + &TA_DEF_UI_Input_Price_OHLC, + NULL +}; + +static const TA_OutputParameterInfo *TA_CDLDARKCLOUDCOVER_Outputs[] = +{ + &TA_DEF_UI_Output_Integer, + NULL +}; + +static const TA_OptInputParameterInfo *TA_CDLDARKCLOUDCOVER_OptInputs[] = +{ + &TA_DEF_UI_Penetration_50, + NULL +}; + +DEF_FUNCTION( CDLDARKCLOUDCOVER, /* name */ + TA_GroupId_PatternRecognition, /* groupId */ + "Dark Cloud Cover", /* hint */ + "CdlDarkCloudCover", /* CamelCase name */ + TA_FUNC_FLG_CANDLESTICK /* flags */ + ); + +/* CDLDARKCLOUDCOVER END */ + +/* CDLDOJI BEGIN */ +static const TA_InputParameterInfo *TA_CDLDOJI_Inputs[] = +{ + &TA_DEF_UI_Input_Price_OHLC, + NULL +}; + +static const TA_OutputParameterInfo *TA_CDLDOJI_Outputs[] = +{ + &TA_DEF_UI_Output_Integer, + NULL +}; + +static const TA_OptInputParameterInfo *TA_CDLDOJI_OptInputs[] = +{ + NULL +}; + +DEF_FUNCTION( CDLDOJI, /* name */ + TA_GroupId_PatternRecognition, /* groupId */ + "Doji", /* hint */ + "CdlDoji", /* CamelCase name */ + TA_FUNC_FLG_CANDLESTICK /* flags */ + ); + +/* CDLDOJI END */ + +/* CDLDOJISTAR BEGIN */ +static const TA_InputParameterInfo *TA_CDLDOJISTAR_Inputs[] = +{ + &TA_DEF_UI_Input_Price_OHLC, + NULL +}; + +static const TA_OutputParameterInfo *TA_CDLDOJISTAR_Outputs[] = +{ + &TA_DEF_UI_Output_Integer, + NULL +}; + +static const TA_OptInputParameterInfo *TA_CDLDOJISTAR_OptInputs[] = +{ + NULL +}; + +DEF_FUNCTION( CDLDOJISTAR, /* name */ + TA_GroupId_PatternRecognition, /* groupId */ + "Doji Star", /* hint */ + "CdlDojiStar", /* CamelCase name */ + TA_FUNC_FLG_CANDLESTICK /* flags */ + ); + +/* CDLDOJISTAR END */ + +/* CDLDRAGONFLYDOJI BEGIN */ +static const TA_InputParameterInfo *TA_CDLDRAGONFLYDOJI_Inputs[] = +{ + &TA_DEF_UI_Input_Price_OHLC, + NULL +}; + +static const TA_OutputParameterInfo *TA_CDLDRAGONFLYDOJI_Outputs[] = +{ + &TA_DEF_UI_Output_Integer, + NULL +}; + +static const TA_OptInputParameterInfo *TA_CDLDRAGONFLYDOJI_OptInputs[] = +{ + NULL +}; + +DEF_FUNCTION( CDLDRAGONFLYDOJI, /* name */ + TA_GroupId_PatternRecognition, /* groupId */ + "Dragonfly Doji", /* hint */ + "CdlDragonflyDoji", /* CamelCase name */ + TA_FUNC_FLG_CANDLESTICK /* flags */ + ); + +/* CDLDRAGONFLYDOJI END */ + +/* CDLENGULFING BEGIN */ +static const TA_InputParameterInfo *TA_CDLENGULFING_Inputs[] = +{ + &TA_DEF_UI_Input_Price_OHLC, + NULL +}; + +static const TA_OutputParameterInfo *TA_CDLENGULFING_Outputs[] = +{ + &TA_DEF_UI_Output_Integer, + NULL +}; + +static const TA_OptInputParameterInfo *TA_CDLENGULFING_OptInputs[] = +{ + NULL +}; + +DEF_FUNCTION( CDLENGULFING, /* name */ + TA_GroupId_PatternRecognition, /* groupId */ + "Engulfing Pattern", /* hint */ + "CdlEngulfing", /* CamelCase name */ + TA_FUNC_FLG_CANDLESTICK /* flags */ + ); + +/* CDLENGULFING END */ + +/* CDLEVENINGDOJISTAR BEGIN */ +static const TA_InputParameterInfo *TA_CDLEVENINGDOJISTAR_Inputs[] = +{ + &TA_DEF_UI_Input_Price_OHLC, + NULL +}; + +static const TA_OutputParameterInfo *TA_CDLEVENINGDOJISTAR_Outputs[] = +{ + &TA_DEF_UI_Output_Integer, + NULL +}; + +static const TA_OptInputParameterInfo *TA_CDLEVENINGDOJISTAR_OptInputs[] = +{ + &TA_DEF_UI_Penetration_30, + NULL +}; + +DEF_FUNCTION( CDLEVENINGDOJISTAR, /* name */ + TA_GroupId_PatternRecognition, /* groupId */ + "Evening Doji Star", /* hint */ + "CdlEveningDojiStar", /* CamelCase name */ + TA_FUNC_FLG_CANDLESTICK /* flags */ + ); + +/* CDLEVENINGDOJISTAR END */ + +/* CDLEVENINGSTAR BEGIN */ +static const TA_InputParameterInfo *TA_CDLEVENINGSTAR_Inputs[] = +{ + &TA_DEF_UI_Input_Price_OHLC, + NULL +}; + +static const TA_OutputParameterInfo *TA_CDLEVENINGSTAR_Outputs[] = +{ + &TA_DEF_UI_Output_Integer, + NULL +}; + +static const TA_OptInputParameterInfo *TA_CDLEVENINGSTAR_OptInputs[] = +{ + &TA_DEF_UI_Penetration_30, + NULL +}; + +DEF_FUNCTION( CDLEVENINGSTAR, /* name */ + TA_GroupId_PatternRecognition, /* groupId */ + "Evening Star", /* hint */ + "CdlEveningStar", /* CamelCase name */ + TA_FUNC_FLG_CANDLESTICK /* flags */ + ); + +/* CDLEVENINGSTAR END */ + +/* CDLEVENINGDOJISTAR END */ + +/* CDLGAPSIDESIDEWHITE BEGIN */ +static const TA_InputParameterInfo *TA_CDLGAPSIDESIDEWHITE_Inputs[] = +{ + &TA_DEF_UI_Input_Price_OHLC, + NULL +}; + +static const TA_OutputParameterInfo *TA_CDLGAPSIDESIDEWHITE_Outputs[] = +{ + &TA_DEF_UI_Output_Integer, + NULL +}; + +static const TA_OptInputParameterInfo *TA_CDLGAPSIDESIDEWHITE_OptInputs[] = +{ + NULL +}; + +DEF_FUNCTION( CDLGAPSIDESIDEWHITE, /* name */ + TA_GroupId_PatternRecognition, /* groupId */ + "Up/Down-gap side-by-side white lines", /* hint */ + "CdlGapSideSideWhite", /* CamelCase name */ + TA_FUNC_FLG_CANDLESTICK /* flags */ + ); + +/* CDLGAPSIDESIDEWHITE END */ + +/* CDLGRAVESTONEDOJI BEGIN */ +static const TA_InputParameterInfo *TA_CDLGRAVESTONEDOJI_Inputs[] = +{ + &TA_DEF_UI_Input_Price_OHLC, + NULL +}; + +static const TA_OutputParameterInfo *TA_CDLGRAVESTONEDOJI_Outputs[] = +{ + &TA_DEF_UI_Output_Integer, + NULL +}; + +static const TA_OptInputParameterInfo *TA_CDLGRAVESTONEDOJI_OptInputs[] = +{ + NULL +}; + +DEF_FUNCTION( CDLGRAVESTONEDOJI, /* name */ + TA_GroupId_PatternRecognition, /* groupId */ + "Gravestone Doji", /* hint */ + "CdlGravestoneDoji", /* CamelCase name */ + TA_FUNC_FLG_CANDLESTICK /* flags */ + ); + +/* CDLGRAVESTONEDOJI END */ + +/* CDLHAMMER BEGIN */ +static const TA_InputParameterInfo *TA_CDLHAMMER_Inputs[] = +{ + &TA_DEF_UI_Input_Price_OHLC, + NULL +}; + +static const TA_OutputParameterInfo *TA_CDLHAMMER_Outputs[] = +{ + &TA_DEF_UI_Output_Integer, + NULL +}; + +static const TA_OptInputParameterInfo *TA_CDLHAMMER_OptInputs[] = +{ + NULL +}; + +DEF_FUNCTION( CDLHAMMER, /* name */ + TA_GroupId_PatternRecognition, /* groupId */ + "Hammer", /* hint */ + "CdlHammer", /* CamelCase name */ + TA_FUNC_FLG_CANDLESTICK /* flags */ + ); + +/* CDLHAMMER END */ + +/* CDLHANGINGMAN BEGIN */ +static const TA_InputParameterInfo *TA_CDLHANGINGMAN_Inputs[] = +{ + &TA_DEF_UI_Input_Price_OHLC, + NULL +}; + +static const TA_OutputParameterInfo *TA_CDLHANGINGMAN_Outputs[] = +{ + &TA_DEF_UI_Output_Integer, + NULL +}; + +static const TA_OptInputParameterInfo *TA_CDLHANGINGMAN_OptInputs[] = +{ + NULL +}; + +DEF_FUNCTION( CDLHANGINGMAN, /* name */ + TA_GroupId_PatternRecognition, /* groupId */ + "Hanging Man", /* hint */ + "CdlHangingMan", /* CamelCase name */ + TA_FUNC_FLG_CANDLESTICK /* flags */ + ); + +/* CDLHANGINGMAN END */ + +/* CDLHARAMI BEGIN */ +static const TA_InputParameterInfo *TA_CDLHARAMI_Inputs[] = +{ + &TA_DEF_UI_Input_Price_OHLC, + NULL +}; + +static const TA_OutputParameterInfo *TA_CDLHARAMI_Outputs[] = +{ + &TA_DEF_UI_Output_Integer, + NULL +}; + +static const TA_OptInputParameterInfo *TA_CDLHARAMI_OptInputs[] = +{ + NULL +}; + +DEF_FUNCTION( CDLHARAMI, /* name */ + TA_GroupId_PatternRecognition, /* groupId */ + "Harami Pattern", /* hint */ + "CdlHarami", /* CamelCase name */ + TA_FUNC_FLG_CANDLESTICK /* flags */ + ); + +/* CDLHARAMI END */ + +/* CDLHARAMICROSS BEGIN */ +static const TA_InputParameterInfo *TA_CDLHARAMICROSS_Inputs[] = +{ + &TA_DEF_UI_Input_Price_OHLC, + NULL +}; + +static const TA_OutputParameterInfo *TA_CDLHARAMICROSS_Outputs[] = +{ + &TA_DEF_UI_Output_Integer, + NULL +}; + +static const TA_OptInputParameterInfo *TA_CDLHARAMICROSS_OptInputs[] = +{ + NULL +}; + +DEF_FUNCTION( CDLHARAMICROSS, /* name */ + TA_GroupId_PatternRecognition, /* groupId */ + "Harami Cross Pattern", /* hint */ + "CdlHaramiCross", /* CamelCase name */ + TA_FUNC_FLG_CANDLESTICK /* flags */ + ); + +/* CDLHARAMICROSS END */ + +/* CDLHIGHWAVE BEGIN */ +static const TA_InputParameterInfo *TA_CDLHIGHWAVE_Inputs[] = +{ + &TA_DEF_UI_Input_Price_OHLC, + NULL +}; + +static const TA_OutputParameterInfo *TA_CDLHIGHWAVE_Outputs[] = +{ + &TA_DEF_UI_Output_Integer, + NULL +}; + +static const TA_OptInputParameterInfo *TA_CDLHIGHWAVE_OptInputs[] = +{ + NULL +}; + +DEF_FUNCTION( CDLHIGHWAVE, /* name */ + TA_GroupId_PatternRecognition, /* groupId */ + "High-Wave Candle", /* hint */ + "CdlHignWave", /* CamelCase name */ + TA_FUNC_FLG_CANDLESTICK /* flags */ + ); + +/* CDLHIGHWAVE END */ + +/* CDLHIKKAKE BEGIN */ +static const TA_InputParameterInfo *TA_CDLHIKKAKE_Inputs[] = +{ + &TA_DEF_UI_Input_Price_OHLC, + NULL +}; + +static const TA_OutputParameterInfo *TA_CDLHIKKAKE_Outputs[] = +{ + &TA_DEF_UI_Output_Integer, + NULL +}; + +static const TA_OptInputParameterInfo *TA_CDLHIKKAKE_OptInputs[] = +{ + NULL +}; + +DEF_FUNCTION( CDLHIKKAKE, /* name */ + TA_GroupId_PatternRecognition, /* groupId */ + "Hikkake Pattern", /* hint */ + "CdlHikkake", /* CamelCase name */ + TA_FUNC_FLG_CANDLESTICK /* flags */ + ); + +/* CDLHIKKAKE END */ + +/* CDLHIKKAKEMOD BEGIN */ +static const TA_InputParameterInfo *TA_CDLHIKKAKEMOD_Inputs[] = +{ + &TA_DEF_UI_Input_Price_OHLC, + NULL +}; + +static const TA_OutputParameterInfo *TA_CDLHIKKAKEMOD_Outputs[] = +{ + &TA_DEF_UI_Output_Integer, + NULL +}; + +static const TA_OptInputParameterInfo *TA_CDLHIKKAKEMOD_OptInputs[] = +{ + NULL +}; + +DEF_FUNCTION( CDLHIKKAKEMOD, /* name */ + TA_GroupId_PatternRecognition, /* groupId */ + "Modified Hikkake Pattern", /* hint */ + "CdlHikkakeMod", /* CamelCase name */ + TA_FUNC_FLG_CANDLESTICK /* flags */ + ); + +/* CDLHIKKAKEMOD END */ + +/* CDLHOMINGPIGEON BEGIN */ +static const TA_InputParameterInfo *TA_CDLHOMINGPIGEON_Inputs[] = +{ + &TA_DEF_UI_Input_Price_OHLC, + NULL +}; + +static const TA_OutputParameterInfo *TA_CDLHOMINGPIGEON_Outputs[] = +{ + &TA_DEF_UI_Output_Integer, + NULL +}; + +static const TA_OptInputParameterInfo *TA_CDLHOMINGPIGEON_OptInputs[] = +{ + NULL +}; + +DEF_FUNCTION( CDLHOMINGPIGEON, /* name */ + TA_GroupId_PatternRecognition, /* groupId */ + "Homing Pigeon", /* hint */ + "CdlHomingPigeon", /* CamelCase name */ + TA_FUNC_FLG_CANDLESTICK /* flags */ + ); + +/* CDLHOMINGPIGEON END */ + +/* CDLIDENTICAL3CROWS BEGIN */ +static const TA_InputParameterInfo *TA_CDLIDENTICAL3CROWS_Inputs[] = +{ + &TA_DEF_UI_Input_Price_OHLC, + NULL +}; + +static const TA_OutputParameterInfo *TA_CDLIDENTICAL3CROWS_Outputs[] = +{ + &TA_DEF_UI_Output_Integer, + NULL +}; + +static const TA_OptInputParameterInfo *TA_CDLIDENTICAL3CROWS_OptInputs[] = +{ + NULL +}; + +DEF_FUNCTION( CDLIDENTICAL3CROWS, /* name */ + TA_GroupId_PatternRecognition, /* groupId */ + "Identical Three Crows", /* hint */ + "CdlIdentical3Crows", /* CamelCase name */ + TA_FUNC_FLG_CANDLESTICK /* flags */ + ); + +/* CDLIDENTICAL3CROWS END */ + +/* CDLINNECK BEGIN */ +static const TA_InputParameterInfo *TA_CDLINNECK_Inputs[] = +{ + &TA_DEF_UI_Input_Price_OHLC, + NULL +}; + +static const TA_OutputParameterInfo *TA_CDLINNECK_Outputs[] = +{ + &TA_DEF_UI_Output_Integer, + NULL +}; + +static const TA_OptInputParameterInfo *TA_CDLINNECK_OptInputs[] = +{ + NULL +}; + +DEF_FUNCTION( CDLINNECK, /* name */ + TA_GroupId_PatternRecognition, /* groupId */ + "In-Neck Pattern", /* hint */ + "CdlInNeck", /* CamelCase name */ + TA_FUNC_FLG_CANDLESTICK /* flags */ + ); + +/* CDLINNECK END */ + +/* CDLINVERTEDHAMMER BEGIN */ +static const TA_InputParameterInfo *TA_CDLINVERTEDHAMMER_Inputs[] = +{ + &TA_DEF_UI_Input_Price_OHLC, + NULL +}; + +static const TA_OutputParameterInfo *TA_CDLINVERTEDHAMMER_Outputs[] = +{ + &TA_DEF_UI_Output_Integer, + NULL +}; + +static const TA_OptInputParameterInfo *TA_CDLINVERTEDHAMMER_OptInputs[] = +{ + NULL +}; + +DEF_FUNCTION( CDLINVERTEDHAMMER, /* name */ + TA_GroupId_PatternRecognition, /* groupId */ + "Inverted Hammer", /* hint */ + "CdlInvertedHammer", /* CamelCase name */ + TA_FUNC_FLG_CANDLESTICK /* flags */ + ); + +/* CDLINVERTEDHAMMER END */ + +/* CDLKICKING BEGIN */ +static const TA_InputParameterInfo *TA_CDLKICKING_Inputs[] = +{ + &TA_DEF_UI_Input_Price_OHLC, + NULL +}; + +static const TA_OutputParameterInfo *TA_CDLKICKING_Outputs[] = +{ + &TA_DEF_UI_Output_Integer, + NULL +}; + +static const TA_OptInputParameterInfo *TA_CDLKICKING_OptInputs[] = +{ + NULL +}; + +DEF_FUNCTION( CDLKICKING, /* name */ + TA_GroupId_PatternRecognition, /* groupId */ + "Kicking", /* hint */ + "CdlKicking", /* CamelCase name */ + TA_FUNC_FLG_CANDLESTICK /* flags */ + ); + +/* CDLKICKING END */ + +/* CDLKICKINGBYLENGTH BEGIN */ +static const TA_InputParameterInfo *TA_CDLKICKINGBYLENGTH_Inputs[] = +{ + &TA_DEF_UI_Input_Price_OHLC, + NULL +}; + +static const TA_OutputParameterInfo *TA_CDLKICKINGBYLENGTH_Outputs[] = +{ + &TA_DEF_UI_Output_Integer, + NULL +}; + +static const TA_OptInputParameterInfo *TA_CDLKICKINGBYLENGTH_OptInputs[] = +{ + NULL +}; + +DEF_FUNCTION( CDLKICKINGBYLENGTH, /* name */ + TA_GroupId_PatternRecognition, /* groupId */ + "Kicking - bull/bear determined by the longer marubozu", /* hint */ + "CdlKickingByLength", /* CamelCase name */ + TA_FUNC_FLG_CANDLESTICK /* flags */ + ); + +/* CDLKICKINGBYLENGTH END */ + +/* CDLLADDERBOTTOM BEGIN */ +static const TA_InputParameterInfo *TA_CDLLADDERBOTTOM_Inputs[] = +{ + &TA_DEF_UI_Input_Price_OHLC, + NULL +}; + +static const TA_OutputParameterInfo *TA_CDLLADDERBOTTOM_Outputs[] = +{ + &TA_DEF_UI_Output_Integer, + NULL +}; + +static const TA_OptInputParameterInfo *TA_CDLLADDERBOTTOM_OptInputs[] = +{ + NULL +}; + +DEF_FUNCTION( CDLLADDERBOTTOM, /* name */ + TA_GroupId_PatternRecognition, /* groupId */ + "Ladder Bottom", /* hint */ + "CdlLadderBottom", /* CamelCase name */ + TA_FUNC_FLG_CANDLESTICK /* flags */ + ); + +/* CDLLADDERBOTTOM END */ + +/* CDLLONGLEGGEDDOJI BEGIN */ +static const TA_InputParameterInfo *TA_CDLLONGLEGGEDDOJI_Inputs[] = +{ + &TA_DEF_UI_Input_Price_OHLC, + NULL +}; + +static const TA_OutputParameterInfo *TA_CDLLONGLEGGEDDOJI_Outputs[] = +{ + &TA_DEF_UI_Output_Integer, + NULL +}; + +static const TA_OptInputParameterInfo *TA_CDLLONGLEGGEDDOJI_OptInputs[] = +{ + NULL +}; + +DEF_FUNCTION( CDLLONGLEGGEDDOJI, /* name */ + TA_GroupId_PatternRecognition, /* groupId */ + "Long Legged Doji", /* hint */ + "CdlLongLeggedDoji", /* CamelCase name */ + TA_FUNC_FLG_CANDLESTICK /* flags */ + ); + +/* CDLLONGLEGGEDDOJI END */ + +/* CDLLONGLINE BEGIN */ +static const TA_InputParameterInfo *TA_CDLLONGLINE_Inputs[] = +{ + &TA_DEF_UI_Input_Price_OHLC, + NULL +}; + +static const TA_OutputParameterInfo *TA_CDLLONGLINE_Outputs[] = +{ + &TA_DEF_UI_Output_Integer, + NULL +}; + +static const TA_OptInputParameterInfo *TA_CDLLONGLINE_OptInputs[] = +{ + NULL +}; + +DEF_FUNCTION( CDLLONGLINE, /* name */ + TA_GroupId_PatternRecognition, /* groupId */ + "Long Line Candle", /* hint */ + "CdlLongLine", /* CamelCase name */ + TA_FUNC_FLG_CANDLESTICK /* flags */ + ); + +/* CDLLONGLINE END */ + +/* CDLMARUBOZU BEGIN */ +static const TA_InputParameterInfo *TA_CDLMARUBOZU_Inputs[] = +{ + &TA_DEF_UI_Input_Price_OHLC, + NULL +}; + +static const TA_OutputParameterInfo *TA_CDLMARUBOZU_Outputs[] = +{ + &TA_DEF_UI_Output_Integer, + NULL +}; + +static const TA_OptInputParameterInfo *TA_CDLMARUBOZU_OptInputs[] = +{ + NULL +}; + +DEF_FUNCTION( CDLMARUBOZU, /* name */ + TA_GroupId_PatternRecognition, /* groupId */ + "Marubozu", /* hint */ + "CdlMarubozu", /* CamelCase name */ + TA_FUNC_FLG_CANDLESTICK /* flags */ + ); + +/* CDLMARUBOZU END */ + +/* CDLMATCHINGLOW BEGIN */ +static const TA_InputParameterInfo *TA_CDLMATCHINGLOW_Inputs[] = +{ + &TA_DEF_UI_Input_Price_OHLC, + NULL +}; + +static const TA_OutputParameterInfo *TA_CDLMATCHINGLOW_Outputs[] = +{ + &TA_DEF_UI_Output_Integer, + NULL +}; + +static const TA_OptInputParameterInfo *TA_CDLMATCHINGLOW_OptInputs[] = +{ + NULL +}; + +DEF_FUNCTION( CDLMATCHINGLOW, /* name */ + TA_GroupId_PatternRecognition, /* groupId */ + "Matching Low", /* hint */ + "CdlMatchingLow", /* CamelCase name */ + TA_FUNC_FLG_CANDLESTICK /* flags */ + ); + +/* CDLMATCHINGLOW END */ + +/* CDLMATHOLD BEGIN */ +static const TA_InputParameterInfo *TA_CDLMATHOLD_Inputs[] = +{ + &TA_DEF_UI_Input_Price_OHLC, + NULL +}; + +static const TA_OutputParameterInfo *TA_CDLMATHOLD_Outputs[] = +{ + &TA_DEF_UI_Output_Integer, + NULL +}; + +static const TA_OptInputParameterInfo *TA_CDLMATHOLD_OptInputs[] = +{ + &TA_DEF_UI_Penetration_50, + NULL +}; + +DEF_FUNCTION( CDLMATHOLD, /* name */ + TA_GroupId_PatternRecognition, /* groupId */ + "Mat Hold", /* hint */ + "CdlMatHold", /* CamelCase name */ + TA_FUNC_FLG_CANDLESTICK /* flags */ + ); + +/* CDLMATHOLD END */ + +/* CDLMORNINGDOJISTAR BEGIN */ +static const TA_InputParameterInfo *TA_CDLMORNINGDOJISTAR_Inputs[] = +{ + &TA_DEF_UI_Input_Price_OHLC, + NULL +}; + +static const TA_OutputParameterInfo *TA_CDLMORNINGDOJISTAR_Outputs[] = +{ + &TA_DEF_UI_Output_Integer, + NULL +}; + +static const TA_OptInputParameterInfo *TA_CDLMORNINGDOJISTAR_OptInputs[] = +{ + &TA_DEF_UI_Penetration_30, + NULL +}; + +DEF_FUNCTION( CDLMORNINGDOJISTAR, /* name */ + TA_GroupId_PatternRecognition, /* groupId */ + "Morning Doji Star", /* hint */ + "CdlMorningDojiStar", /* CamelCase name */ + TA_FUNC_FLG_CANDLESTICK /* flags */ + ); + +/* CDLMORNINGDOJISTAR END */ + +/* CDLMORNINGSTAR BEGIN */ +static const TA_InputParameterInfo *TA_CDLMORNINGSTAR_Inputs[] = +{ + &TA_DEF_UI_Input_Price_OHLC, + NULL +}; + +static const TA_OutputParameterInfo *TA_CDLMORNINGSTAR_Outputs[] = +{ + &TA_DEF_UI_Output_Integer, + NULL +}; + +static const TA_OptInputParameterInfo *TA_CDLMORNINGSTAR_OptInputs[] = +{ + &TA_DEF_UI_Penetration_30, + NULL +}; + +DEF_FUNCTION( CDLMORNINGSTAR, /* name */ + TA_GroupId_PatternRecognition, /* groupId */ + "Morning Star", /* hint */ + "CdlMorningStar", /* CamelCase name */ + TA_FUNC_FLG_CANDLESTICK /* flags */ + ); + +/* CDLMORNINGSTAR END */ + +/* CDLONNECK BEGIN */ +static const TA_InputParameterInfo *TA_CDLONNECK_Inputs[] = +{ + &TA_DEF_UI_Input_Price_OHLC, + NULL +}; + +static const TA_OutputParameterInfo *TA_CDLONNECK_Outputs[] = +{ + &TA_DEF_UI_Output_Integer, + NULL +}; + +static const TA_OptInputParameterInfo *TA_CDLONNECK_OptInputs[] = +{ + NULL +}; + +DEF_FUNCTION( CDLONNECK, /* name */ + TA_GroupId_PatternRecognition, /* groupId */ + "On-Neck Pattern", /* hint */ + "CdlOnNeck", /* CamelCase name */ + TA_FUNC_FLG_CANDLESTICK /* flags */ + ); + +/* CDLONNECK END */ + +/* CDLPIERCING BEGIN */ +static const TA_InputParameterInfo *TA_CDLPIERCING_Inputs[] = +{ + &TA_DEF_UI_Input_Price_OHLC, + NULL +}; + +static const TA_OutputParameterInfo *TA_CDLPIERCING_Outputs[] = +{ + &TA_DEF_UI_Output_Integer, + NULL +}; + +static const TA_OptInputParameterInfo *TA_CDLPIERCING_OptInputs[] = +{ + NULL +}; + +DEF_FUNCTION( CDLPIERCING, /* name */ + TA_GroupId_PatternRecognition, /* groupId */ + "Piercing Pattern", /* hint */ + "CdlPiercing", /* CamelCase name */ + TA_FUNC_FLG_CANDLESTICK /* flags */ + ); + +/* CDLPIERCING END */ + +/* CDLRICKSHAWMAN BEGIN */ +static const TA_InputParameterInfo *TA_CDLRICKSHAWMAN_Inputs[] = +{ + &TA_DEF_UI_Input_Price_OHLC, + NULL +}; + +static const TA_OutputParameterInfo *TA_CDLRICKSHAWMAN_Outputs[] = +{ + &TA_DEF_UI_Output_Integer, + NULL +}; + +static const TA_OptInputParameterInfo *TA_CDLRICKSHAWMAN_OptInputs[] = +{ + NULL +}; + +DEF_FUNCTION( CDLRICKSHAWMAN, /* name */ + TA_GroupId_PatternRecognition, /* groupId */ + "Rickshaw Man", /* hint */ + "CdlRickshawMan", /* CamelCase name */ + TA_FUNC_FLG_CANDLESTICK /* flags */ + ); + +/* CDLRICKSHAWMAN END */ + +/* CDLRISEFALL3METHODS BEGIN */ +static const TA_InputParameterInfo *TA_CDLRISEFALL3METHODS_Inputs[] = +{ + &TA_DEF_UI_Input_Price_OHLC, + NULL +}; + +static const TA_OutputParameterInfo *TA_CDLRISEFALL3METHODS_Outputs[] = +{ + &TA_DEF_UI_Output_Integer, + NULL +}; + +static const TA_OptInputParameterInfo *TA_CDLRISEFALL3METHODS_OptInputs[] = +{ + NULL +}; + +DEF_FUNCTION( CDLRISEFALL3METHODS, /* name */ + TA_GroupId_PatternRecognition, /* groupId */ + "Rising/Falling Three Methods", /* hint */ + "CdlRiseFall3Methods", /* CamelCase name */ + TA_FUNC_FLG_CANDLESTICK /* flags */ + ); + +/* CDLRISEFALL3METHODS END */ + +/* CDLSEPARATINGLINES BEGIN */ +static const TA_InputParameterInfo *TA_CDLSEPARATINGLINES_Inputs[] = +{ + &TA_DEF_UI_Input_Price_OHLC, + NULL +}; + +static const TA_OutputParameterInfo *TA_CDLSEPARATINGLINES_Outputs[] = +{ + &TA_DEF_UI_Output_Integer, + NULL +}; + +static const TA_OptInputParameterInfo *TA_CDLSEPARATINGLINES_OptInputs[] = +{ + NULL +}; + +DEF_FUNCTION( CDLSEPARATINGLINES, /* name */ + TA_GroupId_PatternRecognition, /* groupId */ + "Separating Lines", /* hint */ + "CdlSeperatingLines", /* CamelCase name */ + TA_FUNC_FLG_CANDLESTICK /* flags */ + ); + +/* CDLSEPARATINGLINES END */ + +/* CDLSHOOTINGSTAR BEGIN */ +static const TA_InputParameterInfo *TA_CDLSHOOTINGSTAR_Inputs[] = +{ + &TA_DEF_UI_Input_Price_OHLC, + NULL +}; + +static const TA_OutputParameterInfo *TA_CDLSHOOTINGSTAR_Outputs[] = +{ + &TA_DEF_UI_Output_Integer, + NULL +}; + +static const TA_OptInputParameterInfo *TA_CDLSHOOTINGSTAR_OptInputs[] = +{ + NULL +}; + +DEF_FUNCTION( CDLSHOOTINGSTAR, /* name */ + TA_GroupId_PatternRecognition, /* groupId */ + "Shooting Star", /* hint */ + "CdlShootingStar", /* CamelCase name */ + TA_FUNC_FLG_CANDLESTICK /* flags */ + ); + +/* CDLSHOOTINGSTAR END */ + +/* CDLSHORTLINE BEGIN */ +static const TA_InputParameterInfo *TA_CDLSHORTLINE_Inputs[] = +{ + &TA_DEF_UI_Input_Price_OHLC, + NULL +}; + +static const TA_OutputParameterInfo *TA_CDLSHORTLINE_Outputs[] = +{ + &TA_DEF_UI_Output_Integer, + NULL +}; + +static const TA_OptInputParameterInfo *TA_CDLSHORTLINE_OptInputs[] = +{ + NULL +}; + +DEF_FUNCTION( CDLSHORTLINE, /* name */ + TA_GroupId_PatternRecognition, /* groupId */ + "Short Line Candle", /* hint */ + "CdlShortLine", /* CamelCase name */ + TA_FUNC_FLG_CANDLESTICK /* flags */ + ); + +/* CDLSHORTLINE END */ + +/* CDLSPINNINGTOP BEGIN */ +static const TA_InputParameterInfo *TA_CDLSPINNINGTOP_Inputs[] = +{ + &TA_DEF_UI_Input_Price_OHLC, + NULL +}; + +static const TA_OutputParameterInfo *TA_CDLSPINNINGTOP_Outputs[] = +{ + &TA_DEF_UI_Output_Integer, + NULL +}; + +static const TA_OptInputParameterInfo *TA_CDLSPINNINGTOP_OptInputs[] = +{ + NULL +}; + +DEF_FUNCTION( CDLSPINNINGTOP, /* name */ + TA_GroupId_PatternRecognition, /* groupId */ + "Spinning Top", /* hint */ + "CdlSpinningTop", /* CamelCase name */ + TA_FUNC_FLG_CANDLESTICK /* flags */ + ); + +/* CDLSPINNINGTOP END */ + +/* CDLSTALLEDPATTERN BEGIN */ +static const TA_InputParameterInfo *TA_CDLSTALLEDPATTERN_Inputs[] = +{ + &TA_DEF_UI_Input_Price_OHLC, + NULL +}; + +static const TA_OutputParameterInfo *TA_CDLSTALLEDPATTERN_Outputs[] = +{ + &TA_DEF_UI_Output_Integer, + NULL +}; + +static const TA_OptInputParameterInfo *TA_CDLSTALLEDPATTERN_OptInputs[] = +{ + NULL +}; + +DEF_FUNCTION( CDLSTALLEDPATTERN, /* name */ + TA_GroupId_PatternRecognition, /* groupId */ + "Stalled Pattern", /* hint */ + "CdlStalledPattern", /* CamelCase name */ + TA_FUNC_FLG_CANDLESTICK /* flags */ + ); + +/* CDLSTALLEDPATTERN END */ + +/* CDLSTICKSANDWICH BEGIN */ +static const TA_InputParameterInfo *TA_CDLSTICKSANDWICH_Inputs[] = +{ + &TA_DEF_UI_Input_Price_OHLC, + NULL +}; + +static const TA_OutputParameterInfo *TA_CDLSTICKSANDWICH_Outputs[] = +{ + &TA_DEF_UI_Output_Integer, + NULL +}; + +static const TA_OptInputParameterInfo *TA_CDLSTICKSANDWICH_OptInputs[] = +{ + NULL +}; + +DEF_FUNCTION( CDLSTICKSANDWICH, /* name */ + TA_GroupId_PatternRecognition, /* groupId */ + "Stick Sandwich", /* hint */ + "CdlStickSandwhich", /* CamelCase name */ + TA_FUNC_FLG_CANDLESTICK /* flags */ + ); + +/* CDLSTICKSANDWICH END */ + +/* CDLTAKURI BEGIN */ +static const TA_InputParameterInfo *TA_CDLTAKURI_Inputs[] = +{ + &TA_DEF_UI_Input_Price_OHLC, + NULL +}; + +static const TA_OutputParameterInfo *TA_CDLTAKURI_Outputs[] = +{ + &TA_DEF_UI_Output_Integer, + NULL +}; + +static const TA_OptInputParameterInfo *TA_CDLTAKURI_OptInputs[] = +{ + NULL +}; + +DEF_FUNCTION( CDLTAKURI, /* name */ + TA_GroupId_PatternRecognition, /* groupId */ + "Takuri (Dragonfly Doji with very long lower shadow)", /* hint */ + "CdlTakuri", /* CamelCase name */ + TA_FUNC_FLG_CANDLESTICK /* flags */ + ); + +/* CDLTAKURI END */ + +/* CDLTASUKIGAP BEGIN */ +static const TA_InputParameterInfo *TA_CDLTASUKIGAP_Inputs[] = +{ + &TA_DEF_UI_Input_Price_OHLC, + NULL +}; + +static const TA_OutputParameterInfo *TA_CDLTASUKIGAP_Outputs[] = +{ + &TA_DEF_UI_Output_Integer, + NULL +}; + +static const TA_OptInputParameterInfo *TA_CDLTASUKIGAP_OptInputs[] = +{ + NULL +}; + +DEF_FUNCTION( CDLTASUKIGAP, /* name */ + TA_GroupId_PatternRecognition, /* groupId */ + "Tasuki Gap", /* hint */ + "CdlTasukiGap", /* CamelCase name */ + TA_FUNC_FLG_CANDLESTICK /* flags */ + ); + +/* CDLTASUKIGAP END */ + +/* CDLTHRUSTING BEGIN */ +static const TA_InputParameterInfo *TA_CDLTHRUSTING_Inputs[] = +{ + &TA_DEF_UI_Input_Price_OHLC, + NULL +}; + +static const TA_OutputParameterInfo *TA_CDLTHRUSTING_Outputs[] = +{ + &TA_DEF_UI_Output_Integer, + NULL +}; + +static const TA_OptInputParameterInfo *TA_CDLTHRUSTING_OptInputs[] = +{ + NULL +}; + +DEF_FUNCTION( CDLTHRUSTING, /* name */ + TA_GroupId_PatternRecognition, /* groupId */ + "Thrusting Pattern", /* hint */ + "CdlThrusting", /* CamelCase name */ + TA_FUNC_FLG_CANDLESTICK /* flags */ + ); + +/* CDLTHRUSTING END */ + +/* CDLTRISTAR BEGIN */ +static const TA_InputParameterInfo *TA_CDLTRISTAR_Inputs[] = +{ + &TA_DEF_UI_Input_Price_OHLC, + NULL +}; + +static const TA_OutputParameterInfo *TA_CDLTRISTAR_Outputs[] = +{ + &TA_DEF_UI_Output_Integer, + NULL +}; + +static const TA_OptInputParameterInfo *TA_CDLTRISTAR_OptInputs[] = +{ + NULL +}; + +DEF_FUNCTION( CDLTRISTAR, /* name */ + TA_GroupId_PatternRecognition, /* groupId */ + "Tristar Pattern", /* hint */ + "CdlTristar", /* CamelCase name */ + TA_FUNC_FLG_CANDLESTICK /* flags */ + ); + +/* CDLTRISTAR END */ + +/* CDLUNIQUE3RIVER BEGIN */ +static const TA_InputParameterInfo *TA_CDLUNIQUE3RIVER_Inputs[] = +{ + &TA_DEF_UI_Input_Price_OHLC, + NULL +}; + +static const TA_OutputParameterInfo *TA_CDLUNIQUE3RIVER_Outputs[] = +{ + &TA_DEF_UI_Output_Integer, + NULL +}; + +static const TA_OptInputParameterInfo *TA_CDLUNIQUE3RIVER_OptInputs[] = +{ + NULL +}; + +DEF_FUNCTION( CDLUNIQUE3RIVER, /* name */ + TA_GroupId_PatternRecognition, /* groupId */ + "Unique 3 River", /* hint */ + "CdlUnique3River", /* CamelCase name */ + TA_FUNC_FLG_CANDLESTICK /* flags */ + ); + +/* CDLUNIQUE3RIVER END */ + +/* CDLUPSIDEGAP2CROWS BEGIN */ +static const TA_InputParameterInfo *TA_CDLUPSIDEGAP2CROWS_Inputs[] = +{ + &TA_DEF_UI_Input_Price_OHLC, + NULL +}; + +static const TA_OutputParameterInfo *TA_CDLUPSIDEGAP2CROWS_Outputs[] = +{ + &TA_DEF_UI_Output_Integer, + NULL +}; + +static const TA_OptInputParameterInfo *TA_CDLUPSIDEGAP2CROWS_OptInputs[] = +{ + NULL +}; + +DEF_FUNCTION( CDLUPSIDEGAP2CROWS, /* name */ + TA_GroupId_PatternRecognition, /* groupId */ + "Upside Gap Two Crows", /* hint */ + "CdlUpsideGap2Crows", /* CamelCase name */ + TA_FUNC_FLG_CANDLESTICK /* flags */ + ); + +/* CDLUPSIDEGAP2CROWS END */ + +/* CDLXSIDEGAP3METHODS BEGIN */ +static const TA_InputParameterInfo *TA_CDLXSIDEGAP3METHODS_Inputs[] = +{ + &TA_DEF_UI_Input_Price_OHLC, + NULL +}; + +static const TA_OutputParameterInfo *TA_CDLXSIDEGAP3METHODS_Outputs[] = +{ + &TA_DEF_UI_Output_Integer, + NULL +}; + +static const TA_OptInputParameterInfo *TA_CDLXSIDEGAP3METHODS_OptInputs[] = +{ + NULL +}; + +DEF_FUNCTION( CDLXSIDEGAP3METHODS, /* name */ + TA_GroupId_PatternRecognition, /* groupId */ + "Upside/Downside Gap Three Methods", /* hint */ + "CdlXSideGap3Methods", /* CamelCase name */ + TA_FUNC_FLG_CANDLESTICK /* flags */ + ); + +/* CDLXSIDEGAP3METHODS END */ + +/* CEIL BEGIN */ +DEF_MATH_UNARY_OPERATOR( CEIL, "Vector Ceil", "Ceil" ) +/* CEIL END */ + +/* CMO BEGIN */ +static const TA_InputParameterInfo *TA_CMO_Inputs[] = +{ + &TA_DEF_UI_Input_Real, + NULL +}; + +static const TA_OutputParameterInfo *TA_CMO_Outputs[] = +{ + &TA_DEF_UI_Output_Real, + NULL +}; + +static const TA_OptInputParameterInfo *TA_CMO_OptInputs[] = +{ + &TA_DEF_UI_TimePeriod_14_MINIMUM2, + NULL +}; + +DEF_FUNCTION( CMO, /* name */ + TA_GroupId_MomentumIndicators, /* groupId */ + "Chande Momentum Oscillator", /* hint */ + "Cmo", /* CamelCase name */ + TA_FUNC_FLG_UNST_PER /* flags */ + ); +/* CMO END */ + +/* CORREL BEGIN */ +static const TA_InputParameterInfo *TA_CORREL_Inputs[] = +{ + &TA_DEF_UI_Input_Real0, + &TA_DEF_UI_Input_Real1, + NULL +}; + +static const TA_OutputParameterInfo *TA_CORREL_Outputs[] = +{ + &TA_DEF_UI_Output_Real, + NULL +}; + +static const TA_OptInputParameterInfo *TA_CORREL_OptInputs[] = +{ &TA_DEF_UI_TimePeriod_30, + NULL +}; + +DEF_FUNCTION( CORREL, /* name */ + TA_GroupId_Statistic, /* groupId */ + "Pearson's Correlation Coefficient (r)", /* hint */ + "Correl", /* CamelCase name */ + 0 /* flags */ + ); +/* CORREL END */ + +/* COS BEGIN */ +DEF_MATH_UNARY_OPERATOR( COS, "Vector Trigonometric Cos", "Cos" ) +/* COS END */ + +/* COSH BEGIN */ +DEF_MATH_UNARY_OPERATOR( COSH, "Vector Trigonometric Cosh", "Cosh" ) +/* COSH END */ + +/**************************************************************************** + * Step 2 - Add your TA function to the table. + * Keep in alphabetical order. Must be NULL terminated. + ****************************************************************************/ +const TA_FuncDef *TA_DEF_TableC[] = +{ + ADD_TO_TABLE(CCI), + ADD_TO_TABLE(CDL2CROWS), + ADD_TO_TABLE(CDL3BLACKCROWS), + ADD_TO_TABLE(CDL3INSIDE), + ADD_TO_TABLE(CDL3LINESTRIKE), + ADD_TO_TABLE(CDL3OUTSIDE), + ADD_TO_TABLE(CDL3STARSINSOUTH), + ADD_TO_TABLE(CDL3WHITESOLDIERS), + ADD_TO_TABLE(CDLABANDONEDBABY), + ADD_TO_TABLE(CDLADVANCEBLOCK), + ADD_TO_TABLE(CDLBELTHOLD), + ADD_TO_TABLE(CDLBREAKAWAY), + ADD_TO_TABLE(CDLCLOSINGMARUBOZU), + ADD_TO_TABLE(CDLCONCEALBABYSWALL), + ADD_TO_TABLE(CDLCOUNTERATTACK), + ADD_TO_TABLE(CDLDARKCLOUDCOVER), + ADD_TO_TABLE(CDLDOJI), + ADD_TO_TABLE(CDLDOJISTAR), + ADD_TO_TABLE(CDLDRAGONFLYDOJI), + ADD_TO_TABLE(CDLENGULFING), + ADD_TO_TABLE(CDLEVENINGDOJISTAR), + ADD_TO_TABLE(CDLEVENINGSTAR), + ADD_TO_TABLE(CDLGAPSIDESIDEWHITE), + ADD_TO_TABLE(CDLGRAVESTONEDOJI), + ADD_TO_TABLE(CDLHAMMER), + ADD_TO_TABLE(CDLHANGINGMAN), + ADD_TO_TABLE(CDLHARAMI), + ADD_TO_TABLE(CDLHARAMICROSS), + ADD_TO_TABLE(CDLHIGHWAVE), + ADD_TO_TABLE(CDLHIKKAKE), + ADD_TO_TABLE(CDLHIKKAKEMOD), + ADD_TO_TABLE(CDLHOMINGPIGEON), + ADD_TO_TABLE(CDLIDENTICAL3CROWS), + ADD_TO_TABLE(CDLINNECK), + ADD_TO_TABLE(CDLINVERTEDHAMMER), + ADD_TO_TABLE(CDLKICKING), + ADD_TO_TABLE(CDLKICKINGBYLENGTH), + ADD_TO_TABLE(CDLLADDERBOTTOM), + ADD_TO_TABLE(CDLLONGLEGGEDDOJI), + ADD_TO_TABLE(CDLLONGLINE), + ADD_TO_TABLE(CDLMARUBOZU), + ADD_TO_TABLE(CDLMATCHINGLOW), + ADD_TO_TABLE(CDLMATHOLD), + ADD_TO_TABLE(CDLMORNINGDOJISTAR), + ADD_TO_TABLE(CDLMORNINGSTAR), + ADD_TO_TABLE(CDLONNECK), + ADD_TO_TABLE(CDLPIERCING), + ADD_TO_TABLE(CDLRICKSHAWMAN), + ADD_TO_TABLE(CDLRISEFALL3METHODS), + ADD_TO_TABLE(CDLSEPARATINGLINES), + ADD_TO_TABLE(CDLSHOOTINGSTAR), + ADD_TO_TABLE(CDLSHORTLINE), + ADD_TO_TABLE(CDLSPINNINGTOP), + ADD_TO_TABLE(CDLSTALLEDPATTERN), + ADD_TO_TABLE(CDLSTICKSANDWICH), + ADD_TO_TABLE(CDLTAKURI), + ADD_TO_TABLE(CDLTASUKIGAP), + ADD_TO_TABLE(CDLTHRUSTING), + ADD_TO_TABLE(CDLTRISTAR), + ADD_TO_TABLE(CDLUNIQUE3RIVER), + ADD_TO_TABLE(CDLUPSIDEGAP2CROWS), + ADD_TO_TABLE(CDLXSIDEGAP3METHODS), + ADD_TO_TABLE(CEIL), + ADD_TO_TABLE(CMO), + ADD_TO_TABLE(CORREL), + ADD_TO_TABLE(COS), + ADD_TO_TABLE(COSH), + NULL +}; + + +/* Do not modify the following line. */ +const unsigned int TA_DEF_TableCSize = + ((sizeof(TA_DEF_TableC)/sizeof(TA_FuncDef *))-1); + + +/**************************************************************************** + * Step 3 - Make sure "gen_code" is executed for generating all other + * source files derived from this one. + * You can then re-compile the library as usual and you are done! + ****************************************************************************/ diff --git a/src/ta_abstract/tables/table_d.c b/src/ta_abstract/tables/table_d.c new file mode 100644 index 000000000..16918eeda --- /dev/null +++ b/src/ta_abstract/tables/table_d.c @@ -0,0 +1,129 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/********************************************************************* + * This file contains only TA functions starting with the letter 'D' * + *********************************************************************/ +#include +#include "ta_abstract.h" +#include "ta_def_ui.h" + +/* Follow the 3 steps defined below for adding a new TA Function to this + * file. + */ + +/**************************************************************************** + * Step 1 - Define here the interface to your TA functions with + * the macro DEF_FUNCTION. + * + ****************************************************************************/ + +/* DEMA BEGIN */ +static const TA_InputParameterInfo *TA_DEMA_Inputs[] = +{ + &TA_DEF_UI_Input_Real, + NULL +}; + +static const TA_OutputParameterInfo *TA_DEMA_Outputs[] = +{ + &TA_DEF_UI_Output_Real, + NULL +}; + +static const TA_OptInputParameterInfo *TA_DEMA_OptInputs[] = +{ &TA_DEF_UI_TimePeriod_30_MINIMUM2, + NULL +}; + +DEF_FUNCTION( DEMA, /* name */ + TA_GroupId_OverlapStudies, /* groupId */ + "Double Exponential Moving Average", /* hint */ + "Dema", /* CamelCase name */ + TA_FUNC_FLG_OVERLAP /* flags */ + ); +/* DEMA END */ + +/* DIV BEGIN */ +DEF_MATH_BINARY_OPERATOR( DIV, "Vector Arithmetic Div", "Div" ) +/* DIV END */ + +/* DX BEGIN */ +static const TA_InputParameterInfo *TA_DX_Inputs[] = +{ + &TA_DEF_UI_Input_Price_HLC, + NULL +}; + +static const TA_OutputParameterInfo *TA_DX_Outputs[] = +{ + &TA_DEF_UI_Output_Real, + NULL +}; + +static const TA_OptInputParameterInfo *TA_DX_OptInputs[] = +{ &TA_DEF_UI_TimePeriod_14_MINIMUM2, + NULL +}; + +DEF_FUNCTION( DX, /* name */ + TA_GroupId_MomentumIndicators, /* groupId */ + "Directional Movement Index", /* hint */ + "Dx", /* CamelCase name */ + TA_FUNC_FLG_UNST_PER /* flags */ + ); +/* DX END */ + +/**************************************************************************** + * Step 2 - Add your TA function to the table. + * Keep in alphabetical order. Must be NULL terminated. + ****************************************************************************/ +const TA_FuncDef *TA_DEF_TableD[] = +{ + ADD_TO_TABLE(DEMA), + ADD_TO_TABLE(DIV), + ADD_TO_TABLE(DX), + NULL +}; + + +/* Do not modify the following line. */ +const unsigned int TA_DEF_TableDSize = + ((sizeof(TA_DEF_TableD)/sizeof(TA_FuncDef *))-1); + + +/**************************************************************************** + * Step 3 - Make sure "gen_code" is executed for generating all other + * source files derived from this one. + * You can then re-compile the library as usual and you are done! + ****************************************************************************/ diff --git a/src/ta_abstract/tables/table_e.c b/src/ta_abstract/tables/table_e.c new file mode 100644 index 000000000..cedc9e5b8 --- /dev/null +++ b/src/ta_abstract/tables/table_e.c @@ -0,0 +1,102 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/********************************************************************* + * This file contains only TA functions starting with the letter 'E' * + *********************************************************************/ +#include +#include "ta_abstract.h" +#include "ta_def_ui.h" + +/* Follow the 3 steps defined below for adding a new TA Function to this + * file. + */ + +/**************************************************************************** + * Step 1 - Define here the interface to your TA functions with + * the macro DEF_FUNCTION. + * + ****************************************************************************/ + +/* EMA BEGIN */ +static const TA_InputParameterInfo *TA_EMA_Inputs[] = +{ + &TA_DEF_UI_Input_Real, + NULL +}; + +static const TA_OutputParameterInfo *TA_EMA_Outputs[] = +{ + &TA_DEF_UI_Output_Real, + NULL +}; + +static const TA_OptInputParameterInfo *TA_EMA_OptInputs[] = +{ &TA_DEF_UI_TimePeriod_30_MINIMUM2, + NULL +}; + +DEF_FUNCTION( EMA, /* name */ + TA_GroupId_OverlapStudies, /* groupId */ + "Exponential Moving Average", /* hint */ + "Ema", /* CamelCase name */ + TA_FUNC_FLG_OVERLAP|TA_FUNC_FLG_UNST_PER /* flags */ + ); +/* EMA END */ + +/* EXP BEGIN */ +DEF_MATH_UNARY_OPERATOR( EXP, "Vector Arithmetic Exp", "Exp" ) +/* EXP END */ + +/**************************************************************************** + * Step 2 - Add your TA function to the table. + * Keep in alphabetical order. Must be NULL terminated. + ****************************************************************************/ +const TA_FuncDef *TA_DEF_TableE[] = +{ + ADD_TO_TABLE(EMA), + ADD_TO_TABLE(EXP), + NULL +}; + + +/* Do not modify the following line. */ +const unsigned int TA_DEF_TableESize = + ((sizeof(TA_DEF_TableE)/sizeof(TA_FuncDef *))-1); + + +/**************************************************************************** + * Step 3 - Make sure "gen_code" is executed for generating all other + * source files derived from this one. + * You can then re-compile the library as usual and you are done! + ****************************************************************************/ diff --git a/src/ta_abstract/tables/table_f.c b/src/ta_abstract/tables/table_f.c new file mode 100644 index 000000000..f861d1b91 --- /dev/null +++ b/src/ta_abstract/tables/table_f.c @@ -0,0 +1,76 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/********************************************************************* + * This file contains only TA functions starting with the letter 'F' * + *********************************************************************/ +#include +#include "ta_abstract.h" +#include "ta_def_ui.h" + +/* Follow the 3 steps defined below for adding a new TA Function to this + * file. + */ + +/**************************************************************************** + * Step 1 - Define here the interface to your TA functions with + * the macro DEF_FUNCTION. + * + ****************************************************************************/ + +/* Floor BEGIN */ +DEF_MATH_UNARY_OPERATOR( FLOOR, "Vector Floor", "Floor" ) +/* Floor END */ + + +/**************************************************************************** + * Step 2 - Add your TA function to the table. + * Keep in alphabetical order. Must be NULL terminated. + ****************************************************************************/ +const TA_FuncDef *TA_DEF_TableF[] = +{ + ADD_TO_TABLE(FLOOR), + NULL +}; + + +/* Do not modify the following line. */ +const unsigned int TA_DEF_TableFSize = + ((sizeof(TA_DEF_TableF)/sizeof(TA_FuncDef *))-1); + + +/**************************************************************************** + * Step 3 - Make sure "gen_code" is executed for generating all other + * source files derived from this one. + * You can then re-compile the library as usual and you are done! + ****************************************************************************/ diff --git a/src/ta_abstract/tables/table_g.c b/src/ta_abstract/tables/table_g.c new file mode 100644 index 000000000..07287c2ed --- /dev/null +++ b/src/ta_abstract/tables/table_g.c @@ -0,0 +1,72 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/********************************************************************* + * This file contains only TA functions starting with the letter 'G' * + *********************************************************************/ +#include +#include "ta_abstract.h" +#include "ta_def_ui.h" + +/* Follow the 3 steps defined below for adding a new TA Function to this + * file. + */ + +/**************************************************************************** + * Step 1 - Define here the interface to your TA functions with + * the macro DEF_FUNCTION. + * + ****************************************************************************/ + +/* None */ + +/**************************************************************************** + * Step 2 - Add your TA function to the table. + * Keep in alphabetical order. Must be NULL terminated. + ****************************************************************************/ +const TA_FuncDef *TA_DEF_TableG[] = +{ + NULL +}; + + +/* Do not modify the following line. */ +const unsigned int TA_DEF_TableGSize = + ((sizeof(TA_DEF_TableG)/sizeof(TA_FuncDef *))-1); + + +/**************************************************************************** + * Step 3 - Make sure "gen_code" is executed for generating all other + * source files derived from this one. + * You can then re-compile the library as usual and you are done! + ****************************************************************************/ diff --git a/src/ta_abstract/tables/table_h.c b/src/ta_abstract/tables/table_h.c new file mode 100644 index 000000000..ffc30fb47 --- /dev/null +++ b/src/ta_abstract/tables/table_h.c @@ -0,0 +1,246 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/********************************************************************* + * This file contains only TA functions starting with the letter 'H' * + *********************************************************************/ +#include +#include "ta_abstract.h" +#include "ta_def_ui.h" + +/* Follow the 3 steps defined below for adding a new TA Function to this + * file. + */ + +/**************************************************************************** + * Step 1 - Define here the interface to your TA functions with + * the macro DEF_FUNCTION. + * + ****************************************************************************/ + +/* HT_DCPERIOD */ +static const TA_InputParameterInfo *TA_HT_DCPERIOD_Inputs[] = +{ + &TA_DEF_UI_Input_Real, + NULL +}; + +static const TA_OutputParameterInfo *TA_HT_DCPERIOD_Outputs[] = +{ + &TA_DEF_UI_Output_Real, + NULL +}; + +static const TA_OptInputParameterInfo *TA_HT_DCPERIOD_OptInputs[] = +{ + NULL +}; + +DEF_FUNCTION( HT_DCPERIOD, /* name */ + TA_GroupId_CycleIndicators, /* groupId */ + "Hilbert Transform - Dominant Cycle Period", /* hint */ + "HtDcPeriod", /* CamelCase name */ + TA_FUNC_FLG_UNST_PER /* flags */ + ); +/* HT_DCPERIOD END */ + +/* HT_DCPHASE */ +static const TA_InputParameterInfo *TA_HT_DCPHASE_Inputs[] = +{ + &TA_DEF_UI_Input_Real, + NULL +}; + +static const TA_OutputParameterInfo *TA_HT_DCPHASE_Outputs[] = +{ + &TA_DEF_UI_Output_Real, + NULL +}; + +static const TA_OptInputParameterInfo *TA_HT_DCPHASE_OptInputs[] = +{ + NULL +}; + +DEF_FUNCTION( HT_DCPHASE, /* name */ + TA_GroupId_CycleIndicators, /* groupId */ + "Hilbert Transform - Dominant Cycle Phase", /* hint */ + "HtDcPhase", /* CamelCase name */ + TA_FUNC_FLG_UNST_PER /* flags */ + ); +/* HT_DCPHASE END */ + +/* HT_PHASOR */ +const TA_OutputParameterInfo TA_DEF_UI_Output_Real_InPhase = + { TA_Output_Real, "outInPhase", TA_OUT_LINE }; + +const TA_OutputParameterInfo TA_DEF_UI_Output_Real_Quadrature = + { TA_Output_Real, "outQuadrature", TA_OUT_DASH_LINE }; + +static const TA_InputParameterInfo *TA_HT_PHASOR_Inputs[] = +{ + &TA_DEF_UI_Input_Real, + NULL +}; + +static const TA_OutputParameterInfo *TA_HT_PHASOR_Outputs[] = +{ + &TA_DEF_UI_Output_Real_InPhase, + &TA_DEF_UI_Output_Real_Quadrature, + NULL +}; + +static const TA_OptInputParameterInfo *TA_HT_PHASOR_OptInputs[] = +{ + NULL +}; + +DEF_FUNCTION( HT_PHASOR, /* name */ + TA_GroupId_CycleIndicators, /* groupId */ + "Hilbert Transform - Phasor Components", /* hint */ + "HtPhasor", /* CamelCase name */ + TA_FUNC_FLG_UNST_PER /* flags */ + ); +/* HT_PHASOR END */ + +/* HT_SINE */ +const TA_OutputParameterInfo TA_DEF_UI_Output_Real_Sine = + { TA_Output_Real, "outSine", TA_OUT_LINE }; + +const TA_OutputParameterInfo TA_DEF_UI_Output_Real_LeadSine = + { TA_Output_Real, "outLeadSine", TA_OUT_DASH_LINE }; + +static const TA_InputParameterInfo *TA_HT_SINE_Inputs[] = +{ + &TA_DEF_UI_Input_Real, + NULL +}; + +static const TA_OutputParameterInfo *TA_HT_SINE_Outputs[] = +{ + &TA_DEF_UI_Output_Real_Sine, + &TA_DEF_UI_Output_Real_LeadSine, + NULL +}; + +static const TA_OptInputParameterInfo *TA_HT_SINE_OptInputs[] = +{ + NULL +}; + +DEF_FUNCTION( HT_SINE, /* name */ + TA_GroupId_CycleIndicators, /* groupId */ + "Hilbert Transform - SineWave", /* hint */ + "HtSine", /* CamelCase name */ + TA_FUNC_FLG_UNST_PER /* flags */ + ); +/* HT_SINE END */ + +/* HT_TRENDLINE */ +static const TA_InputParameterInfo *TA_HT_TRENDLINE_Inputs[] = +{ + &TA_DEF_UI_Input_Real, + NULL +}; + +static const TA_OutputParameterInfo *TA_HT_TRENDLINE_Outputs[] = +{ + &TA_DEF_UI_Output_Real, + NULL +}; + +static const TA_OptInputParameterInfo *TA_HT_TRENDLINE_OptInputs[] = +{ + NULL +}; + +DEF_FUNCTION( HT_TRENDLINE, /* name */ + TA_GroupId_OverlapStudies, /* groupId */ + "Hilbert Transform - Instantaneous Trendline", /* hint */ + "HtTrendline", /* CamelCase name */ + TA_FUNC_FLG_UNST_PER|TA_FUNC_FLG_OVERLAP /* flags */ + ); +/* HT_TRENDLINE END */ + +/* HT_TRENDMODE */ +static const TA_InputParameterInfo *TA_HT_TRENDMODE_Inputs[] = +{ + &TA_DEF_UI_Input_Real, + NULL +}; + +static const TA_OutputParameterInfo *TA_HT_TRENDMODE_Outputs[] = +{ + &TA_DEF_UI_Output_Integer, + NULL +}; + +static const TA_OptInputParameterInfo *TA_HT_TRENDMODE_OptInputs[] = +{ + NULL +}; + +DEF_FUNCTION( HT_TRENDMODE, /* name */ + TA_GroupId_CycleIndicators, /* groupId */ + "Hilbert Transform - Trend vs Cycle Mode", /* hint */ + "HtTrendMode", /* CamelCase name */ + TA_FUNC_FLG_UNST_PER /* flags */ + ); +/* HT_TRENDMODE END */ + +/**************************************************************************** + * Step 2 - Add your TA function to the table. + * Keep in alphabetical order. Must be NULL terminated. + ****************************************************************************/ +const TA_FuncDef *TA_DEF_TableH[] = +{ + ADD_TO_TABLE(HT_DCPERIOD), + ADD_TO_TABLE(HT_DCPHASE), + ADD_TO_TABLE(HT_PHASOR), + ADD_TO_TABLE(HT_SINE), + ADD_TO_TABLE(HT_TRENDLINE), + ADD_TO_TABLE(HT_TRENDMODE), + NULL +}; + + +/* Do not modify the following line. */ +const unsigned int TA_DEF_TableHSize = + ((sizeof(TA_DEF_TableH)/sizeof(TA_FuncDef *))-1); + + +/**************************************************************************** + * Step 3 - Make sure "gen_code" is executed for generating all other + * source files derived from this one. + * You can then re-compile the library as usual and you are done! + ****************************************************************************/ diff --git a/src/ta_abstract/tables/table_i.c b/src/ta_abstract/tables/table_i.c new file mode 100644 index 000000000..d9403f82d --- /dev/null +++ b/src/ta_abstract/tables/table_i.c @@ -0,0 +1,72 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/********************************************************************* + * This file contains only TA functions starting with the letter 'I' * + *********************************************************************/ +#include +#include "ta_abstract.h" +#include "ta_def_ui.h" + +/* Follow the 3 steps defined below for adding a new TA Function to this + * file. + */ + +/**************************************************************************** + * Step 1 - Define here the interface to your TA functions with + * the macro DEF_FUNCTION. + * + ****************************************************************************/ + +/* None */ + +/**************************************************************************** + * Step 2 - Add your TA function to the table. + * Keep in alphabetical order. Must be NULL terminated. + ****************************************************************************/ +const TA_FuncDef *TA_DEF_TableI[] = +{ + NULL +}; + + +/* Do not modify the following line. */ +const unsigned int TA_DEF_TableISize = + ((sizeof(TA_DEF_TableI)/sizeof(TA_FuncDef *))-1); + + +/**************************************************************************** + * Step 3 - Make sure "gen_code" is executed for generating all other + * source files derived from this one. + * You can then re-compile the library as usual and you are done! + ****************************************************************************/ diff --git a/src/ta_abstract/tables/table_j.c b/src/ta_abstract/tables/table_j.c new file mode 100644 index 000000000..264b643ff --- /dev/null +++ b/src/ta_abstract/tables/table_j.c @@ -0,0 +1,72 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/********************************************************************* + * This file contains only TA functions starting with the letter 'J' * + *********************************************************************/ +#include +#include "ta_abstract.h" +#include "ta_def_ui.h" + +/* Follow the 3 steps defined below for adding a new TA Function to this + * file. + */ + +/**************************************************************************** + * Step 1 - Define here the interface to your TA functions with + * the macro DEF_FUNCTION. + * + ****************************************************************************/ + +/* None */ + +/**************************************************************************** + * Step 2 - Add your TA function to the table. + * Keep in alphabetical order. Must be NULL terminated. + ****************************************************************************/ +const TA_FuncDef *TA_DEF_TableJ[] = +{ + NULL +}; + + +/* Do not modify the following line. */ +const unsigned int TA_DEF_TableJSize = + ((sizeof(TA_DEF_TableJ)/sizeof(TA_FuncDef *))-1); + + +/**************************************************************************** + * Step 3 - Make sure "gen_code" is executed for generating all other + * source files derived from this one. + * You can then re-compile the library as usual and you are done! + ****************************************************************************/ diff --git a/src/ta_abstract/tables/table_k.c b/src/ta_abstract/tables/table_k.c new file mode 100644 index 000000000..c93f6ca71 --- /dev/null +++ b/src/ta_abstract/tables/table_k.c @@ -0,0 +1,98 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/********************************************************************* + * This file contains only TA functions starting with the letter 'K' * + *********************************************************************/ +#include +#include "ta_abstract.h" +#include "ta_def_ui.h" + +/* Follow the 3 steps defined below for adding a new TA Function to this + * file. + */ + +/**************************************************************************** + * Step 1 - Define here the interface to your TA functions with + * the macro DEF_FUNCTION. + * + ****************************************************************************/ + +/* KAMA BEGIN */ +static const TA_InputParameterInfo *TA_KAMA_Inputs[] = +{ + &TA_DEF_UI_Input_Real, + NULL +}; + +static const TA_OutputParameterInfo *TA_KAMA_Outputs[] = +{ + &TA_DEF_UI_Output_Real, + NULL +}; + +static const TA_OptInputParameterInfo *TA_KAMA_OptInputs[] = +{ &TA_DEF_UI_TimePeriod_30_MINIMUM2, + NULL +}; + +DEF_FUNCTION( KAMA, /* name */ + TA_GroupId_OverlapStudies, /* groupId */ + "Kaufman Adaptive Moving Average", /* hint */ + "Kama", /* CamelCase name */ + TA_FUNC_FLG_OVERLAP|TA_FUNC_FLG_UNST_PER /* flags */ + ); +/* KAMA END */ + + +/**************************************************************************** + * Step 2 - Add your TA function to the table. + * Keep in alphabetical order. Must be NULL terminated. + ****************************************************************************/ +const TA_FuncDef *TA_DEF_TableK[] = +{ + ADD_TO_TABLE(KAMA), + NULL +}; + + +/* Do not modify the following line. */ +const unsigned int TA_DEF_TableKSize = + ((sizeof(TA_DEF_TableK)/sizeof(TA_FuncDef *))-1); + + +/**************************************************************************** + * Step 3 - Make sure "gen_code" is executed for generating all other + * source files derived from this one. + * You can then re-compile the library as usual and you are done! + ****************************************************************************/ diff --git a/src/ta_abstract/tables/table_l.c b/src/ta_abstract/tables/table_l.c new file mode 100644 index 000000000..87595526a --- /dev/null +++ b/src/ta_abstract/tables/table_l.c @@ -0,0 +1,188 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/********************************************************************* + * This file contains only TA functions starting with the letter 'L' * + *********************************************************************/ +#include +#include "ta_abstract.h" +#include "ta_def_ui.h" + +/* Follow the 3 steps defined below for adding a new TA Function to this + * file. + */ + +/**************************************************************************** + * Step 1 - Define here the interface to your TA functions with + * the macro DEF_FUNCTION. + * + ****************************************************************************/ + +/* LINEARREG BEGIN */ +static const TA_InputParameterInfo *TA_LINEARREG_Inputs[] = +{ + &TA_DEF_UI_Input_Real, + NULL +}; + +static const TA_OutputParameterInfo *TA_LINEARREG_Outputs[] = +{ + &TA_DEF_UI_Output_Real, + NULL +}; + +static const TA_OptInputParameterInfo *TA_LINEARREG_OptInputs[] = +{ &TA_DEF_UI_TimePeriod_14_MINIMUM2, + NULL +}; + +DEF_FUNCTION( LINEARREG, /* name */ + TA_GroupId_Statistic,/* groupId */ + "Linear Regression", /* hint */ + "LinearReg", /* CamelCase name */ + TA_FUNC_FLG_OVERLAP /* flags */ + ); +/* LINEARREG END */ + +/* LINEARREG_SLOPE BEGIN */ +static const TA_InputParameterInfo *TA_LINEARREG_SLOPE_Inputs[] = +{ + &TA_DEF_UI_Input_Real, + NULL +}; + +static const TA_OutputParameterInfo *TA_LINEARREG_SLOPE_Outputs[] = +{ + &TA_DEF_UI_Output_Real, + NULL +}; + +static const TA_OptInputParameterInfo *TA_LINEARREG_SLOPE_OptInputs[] = +{ &TA_DEF_UI_TimePeriod_14_MINIMUM2, + NULL +}; + +DEF_FUNCTION( LINEARREG_SLOPE, /* name */ + TA_GroupId_Statistic,/* groupId */ + "Linear Regression Slope", /* hint */ + "LinearRegSlope", /* CamelCase name */ + 0 /* flags */ + ); +/* LINEARREG_SLOPE END */ + +/* LINEARREG_ANGLE BEGIN */ +static const TA_InputParameterInfo *TA_LINEARREG_ANGLE_Inputs[] = +{ + &TA_DEF_UI_Input_Real, + NULL +}; + +static const TA_OutputParameterInfo *TA_LINEARREG_ANGLE_Outputs[] = +{ + &TA_DEF_UI_Output_Real, + NULL +}; + +static const TA_OptInputParameterInfo *TA_LINEARREG_ANGLE_OptInputs[] = +{ &TA_DEF_UI_TimePeriod_14_MINIMUM2, + NULL +}; + +DEF_FUNCTION( LINEARREG_ANGLE, /* name */ + TA_GroupId_Statistic,/* groupId */ + "Linear Regression Angle", /* hint */ + "LinearRegAngle", /* CamelCase name */ + 0 /* flags */ + ); +/* LINEARREG_ANGLE END */ + +/* LINEARREG_INTERCEPT BEGIN */ +static const TA_InputParameterInfo *TA_LINEARREG_INTERCEPT_Inputs[] = +{ + &TA_DEF_UI_Input_Real, + NULL +}; + +static const TA_OutputParameterInfo *TA_LINEARREG_INTERCEPT_Outputs[] = +{ + &TA_DEF_UI_Output_Real, + NULL +}; + +static const TA_OptInputParameterInfo *TA_LINEARREG_INTERCEPT_OptInputs[] = +{ &TA_DEF_UI_TimePeriod_14_MINIMUM2, + NULL +}; + +DEF_FUNCTION( LINEARREG_INTERCEPT, /* name */ + TA_GroupId_Statistic,/* groupId */ + "Linear Regression Intercept", /* hint */ + "LinearRegIntercept", /* CamelCase name */ + TA_FUNC_FLG_OVERLAP /* flags */ + ); +/* LINEARREG_INTERCEPT END */ + +/* LN BEGIN */ +DEF_MATH_UNARY_OPERATOR( LN, "Vector Log Natural", "Ln" ) +/* LN END */ + +/* LOG10 BEGIN */ +DEF_MATH_UNARY_OPERATOR( LOG10, "Vector Log10", "Log10" ) +/* LOG10 END */ + +/**************************************************************************** + * Step 2 - Add your TA function to the table. + * Keep in alphabetical order. Must be NULL terminated. + ****************************************************************************/ +const TA_FuncDef *TA_DEF_TableL[] = +{ + ADD_TO_TABLE(LINEARREG), + ADD_TO_TABLE(LINEARREG_ANGLE), + ADD_TO_TABLE(LINEARREG_INTERCEPT), + ADD_TO_TABLE(LINEARREG_SLOPE), + ADD_TO_TABLE(LN), + ADD_TO_TABLE(LOG10), + NULL +}; + + +/* Do not modify the following line. */ +const unsigned int TA_DEF_TableLSize = + ((sizeof(TA_DEF_TableL)/sizeof(TA_FuncDef *))-1); + + +/**************************************************************************** + * Step 3 - Make sure "gen_code" is executed for generating all other + * source files derived from this one. + * You can then re-compile the library as usual and you are done! + ****************************************************************************/ diff --git a/src/ta_abstract/tables/table_m.c b/src/ta_abstract/tables/table_m.c new file mode 100644 index 000000000..3ff2acd1b --- /dev/null +++ b/src/ta_abstract/tables/table_m.c @@ -0,0 +1,739 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/********************************************************************* + * This file contains only TA functions starting with the letter 'M' * + *********************************************************************/ +#include +#include "ta_abstract.h" +#include "ta_def_ui.h" + +/* Follow the 3 steps defined below for adding a new TA Function to this + * file. + */ + +/**************************************************************************** + * Step 1 - Define here the interface to your TA functions with + * the macro DEF_FUNCTION. + * + ****************************************************************************/ + +const TA_OptInputParameterInfo TA_DEF_UI_Signal_Period = +{ + TA_OptInput_IntegerRange, /* type */ + "optInSignalPeriod", /* paramName */ + 0, /* flags */ + + "Signal Period", /* displayName */ + (const void *)&TA_DEF_TimePeriod_Positive, /* dataSet */ + 9, /* defaultValue */ + "Smoothing for the signal line (nb of period)", /* hint */ + + NULL /* CamelCase name */ +}; + +const TA_OptInputParameterInfo TA_DEF_UI_Slow_MA_Type = +{ + TA_OptInput_IntegerList, /* type */ + "optInSlowMAType", /* paramName */ + 0, /* flags */ + + "Slow MA", /* displayName */ + (const void *)&TA_MA_TypeList, /* dataSet */ + 0, /* defaultValue = simple average */ + "Type of Moving Average for slow MA", /* hint */ + + NULL /* CamelCase name */ +}; + +const TA_OptInputParameterInfo TA_DEF_UI_Fast_MA_Type = +{ + TA_OptInput_IntegerList, /* type */ + "optInFastMAType", /* paramName */ + 0, /* flags */ + + "Fast MA", /* displayName */ + (const void *)&TA_MA_TypeList, /* dataSet */ + 0, /* defaultValue = simple average */ + "Type of Moving Average for fast MA", /* hint */ + + NULL /* CamelCase name */ +}; + +const TA_OptInputParameterInfo TA_DEF_UI_Signal_MA_Type = +{ + TA_OptInput_IntegerList, /* type */ + "optInSignalMAType", /* paramName */ + 0, /* flags */ + "Signal MA", /* displayName */ + (const void *)&TA_MA_TypeList, /* dataSet */ + 0, /* defaultValue = simple average */ + "Type of Moving Average for signal line", /* hint */ + + NULL /* CamelCase name */ +}; + +/* MA BEGIN */ +static const TA_InputParameterInfo *TA_MA_Inputs[] = +{ + &TA_DEF_UI_Input_Real, + NULL +}; + +static const TA_OutputParameterInfo *TA_MA_Outputs[] = +{ + &TA_DEF_UI_Output_Real, + NULL +}; + +static const TA_OptInputParameterInfo *TA_MA_OptInputs[] = +{ &TA_DEF_UI_TimePeriod_30, + &TA_DEF_UI_MA_Method, + NULL +}; + +DEF_FUNCTION( MA, /* name */ + TA_GroupId_OverlapStudies, /* groupId */ + "Moving average", /* hint */ + "MovingAverage", /* CamelCase name */ + TA_FUNC_FLG_OVERLAP /* flags */ + ); +/* MA END */ + +/* MACD BEGIN */ +const TA_OutputParameterInfo TA_DEF_UI_Output_Real_MACD = + { TA_Output_Real, "outMACD", TA_OUT_LINE }; + +const TA_OutputParameterInfo TA_DEF_UI_Output_Real_MACDSignal = + { TA_Output_Real, "outMACDSignal", TA_OUT_DASH_LINE }; + +const TA_OutputParameterInfo TA_DEF_UI_Output_Real_MACDHist = + { TA_Output_Real, "outMACDHist", TA_OUT_HISTO }; + +static const TA_InputParameterInfo *TA_MACD_Inputs[] = +{ + &TA_DEF_UI_Input_Real, + NULL +}; + +static const TA_OutputParameterInfo *TA_MACD_Outputs[] = +{ + &TA_DEF_UI_Output_Real_MACD, + &TA_DEF_UI_Output_Real_MACDSignal, + &TA_DEF_UI_Output_Real_MACDHist, + NULL +}; + +static const TA_OptInputParameterInfo *TA_MACD_OptInputs[] = +{ &TA_DEF_UI_Fast_Period, + &TA_DEF_UI_Slow_Period, + &TA_DEF_UI_Signal_Period, + NULL +}; + +DEF_FUNCTION( MACD, /* name */ + TA_GroupId_MomentumIndicators, /* groupId */ + "Moving Average Convergence/Divergence", /* hint */ + "Macd", /* CamelCase name */ + 0 /* flags */ + ); +/* MACD END */ + +/* MACDEXT BEGIN */ +static const TA_InputParameterInfo *TA_MACDEXT_Inputs[] = +{ + &TA_DEF_UI_Input_Real, + NULL +}; + +static const TA_OutputParameterInfo *TA_MACDEXT_Outputs[] = +{ + &TA_DEF_UI_Output_Real_MACD, + &TA_DEF_UI_Output_Real_MACDSignal, + &TA_DEF_UI_Output_Real_MACDHist, + NULL +}; + +static const TA_OptInputParameterInfo *TA_MACDEXT_OptInputs[] = +{ &TA_DEF_UI_Fast_Period, + &TA_DEF_UI_Fast_MA_Type, + &TA_DEF_UI_Slow_Period, + &TA_DEF_UI_Slow_MA_Type, + &TA_DEF_UI_Signal_Period, + &TA_DEF_UI_Signal_MA_Type, + NULL +}; + +DEF_FUNCTION( MACDEXT, /* name */ + TA_GroupId_MomentumIndicators, /* groupId */ + "MACD with controllable MA type", /* hint */ + "MacdExt", /* CamelCase name */ + 0 /* flags */ + ); +/* MACDEXT END */ + +/* MACDFIX BEGIN */ +static const TA_InputParameterInfo *TA_MACDFIX_Inputs[] = +{ + &TA_DEF_UI_Input_Real, + NULL +}; + +static const TA_OutputParameterInfo *TA_MACDFIX_Outputs[] = +{ + &TA_DEF_UI_Output_Real_MACD, + &TA_DEF_UI_Output_Real_MACDSignal, + &TA_DEF_UI_Output_Real_MACDHist, + NULL +}; + +static const TA_OptInputParameterInfo *TA_MACDFIX_OptInputs[] = +{ &TA_DEF_UI_Signal_Period, + NULL +}; + +DEF_FUNCTION( MACDFIX, /* name */ + TA_GroupId_MomentumIndicators, /* groupId */ + "Moving Average Convergence/Divergence Fix 12/26", /* hint */ + "MacdFix", /* CamelCase name */ + 0 /* flags */ + ); +/* MACDFIX END */ + +/* MAMA BEGIN */ +const TA_RealRange TA_DEF_MAMA_FastLimit = +{ + 0.01, /* min */ + 0.99, /* max */ + 2, /* precision */ + 0.21, /* suggested start */ + 0.80, /* suggested end */ + 0.01 /* suggested increment */ +}; + +const TA_RealRange TA_DEF_MAMA_SlowLimit = +{ + 0.01, /* min */ + 0.99, /* max */ + 2, /* precision */ + 0.01, /* suggested start */ + 0.60, /* suggested end */ + 0.01 /* suggested increment */ +}; + +const TA_OptInputParameterInfo TA_DEF_UI_MAMA_FastLimit = +{ + TA_OptInput_RealRange, /* type */ + "optInFastLimit", /* paramName */ + 0, /* flags */ + "Fast Limit", /* displayName */ + (const void *)&TA_DEF_MAMA_FastLimit, /* dataSet */ + 0.5, /* defaultValue */ + "Upper limit use in the adaptive algorithm", /* hint */ + NULL /* CamelCase name */ +}; + +const TA_OptInputParameterInfo TA_DEF_UI_MAMA_SlowLimit = +{ + TA_OptInput_RealRange, /* type */ + "optInSlowLimit", /* paramName */ + 0, /* flags */ + + "Slow Limit", /* displayName */ + (const void *)&TA_DEF_MAMA_SlowLimit, /* dataSet */ + 0.05, /* defaultValue */ + "Lower limit use in the adaptive algorithm", /* hint */ + NULL /* CamelCase name */ +}; + +const TA_OutputParameterInfo TA_DEF_UI_Output_Real_MAMA = + { TA_Output_Real, "outMAMA", TA_OUT_LINE }; + +const TA_OutputParameterInfo TA_DEF_UI_Output_Real_FAMA = + { TA_Output_Real, "outFAMA", TA_OUT_DASH_LINE }; + +static const TA_InputParameterInfo *TA_MAMA_Inputs[] = +{ + &TA_DEF_UI_Input_Real, + NULL +}; + +static const TA_OutputParameterInfo *TA_MAMA_Outputs[] = +{ + &TA_DEF_UI_Output_Real_MAMA, + &TA_DEF_UI_Output_Real_FAMA, + NULL +}; + +static const TA_OptInputParameterInfo *TA_MAMA_OptInputs[] = +{ &TA_DEF_UI_MAMA_FastLimit, + &TA_DEF_UI_MAMA_SlowLimit, + NULL +}; + +DEF_FUNCTION( MAMA, /* name */ + TA_GroupId_OverlapStudies, /* groupId */ + "MESA Adaptive Moving Average", /* hint */ + "Mama", /* CamelCase name */ + TA_FUNC_FLG_UNST_PER|TA_FUNC_FLG_OVERLAP /* flags */ + ); +/* MAMA END */ + +/* MAVP BEGIN */ +static const TA_InputParameterInfo *TA_MAVP_Inputs[] = +{ + &TA_DEF_UI_Input_Real, + &TA_DEF_UI_Input_Periods, + NULL +}; + +static const TA_OutputParameterInfo *TA_MAVP_Outputs[] = +{ + &TA_DEF_UI_Output_Real, + NULL +}; + +static const TA_OptInputParameterInfo *TA_MAVP_OptInputs[] = +{ + &TA_DEF_UI_MinPeriod, + &TA_DEF_UI_MaxPeriod, + &TA_DEF_UI_MA_Method, + NULL +}; + +DEF_FUNCTION( MAVP, /* name */ + TA_GroupId_OverlapStudies, /* groupId */ + "Moving average with variable period", /* hint */ + "MovingAverageVariablePeriod", /* CamelCase name */ + TA_FUNC_FLG_OVERLAP /* flags */ + ); +/* MAVP END */ + +/* MAX BEGIN */ +static const TA_InputParameterInfo *TA_MAX_Inputs[] = +{ + &TA_DEF_UI_Input_Real, + NULL +}; + +static const TA_OutputParameterInfo *TA_MAX_Outputs[] = +{ + &TA_DEF_UI_Output_Real, + NULL +}; + +static const TA_OptInputParameterInfo *TA_MAX_OptInputs[] = +{ &TA_DEF_UI_TimePeriod_30_MINIMUM2, + NULL +}; + +DEF_FUNCTION( MAX, /* name */ + TA_GroupId_MathOperators, /* groupId */ + "Highest value over a specified period", /* hint */ + "Max", /* CamelCase name */ + TA_FUNC_FLG_OVERLAP /* flags */ + ); +/* MAX END */ + +/* MAXINDEX BEGIN */ +static const TA_InputParameterInfo *TA_MAXINDEX_Inputs[] = +{ + &TA_DEF_UI_Input_Real, + NULL +}; + +static const TA_OutputParameterInfo *TA_MAXINDEX_Outputs[] = +{ + &TA_DEF_UI_Output_Integer, + NULL +}; + +static const TA_OptInputParameterInfo *TA_MAXINDEX_OptInputs[] = +{ &TA_DEF_UI_TimePeriod_30_MINIMUM2, + NULL +}; + +DEF_FUNCTION( MAXINDEX, /* name */ + TA_GroupId_MathOperators, /* groupId */ + "Index of highest value over a specified period", /* hint */ + "MaxIndex", /* CamelCase name */ + 0 /* flags */ + ); +/* MAXINDEX END */ + +/* MEDPRICE BEGIN */ +static const TA_InputParameterInfo *TA_MEDPRICE_Inputs[] = +{ + &TA_DEF_UI_Input_Price_HL, + NULL +}; + +static const TA_OutputParameterInfo *TA_MEDPRICE_Outputs[] = +{ + &TA_DEF_UI_Output_Real, + NULL +}; + +static const TA_OptInputParameterInfo *TA_MEDPRICE_OptInputs[] = { NULL }; + +DEF_FUNCTION( MEDPRICE, /* name */ + TA_GroupId_PriceTransform, /* groupId */ + "Median Price", /* hint */ + "MedPrice", /* CamelCase name */ + TA_FUNC_FLG_OVERLAP /* flags */ + ); + +/* MEDPRICE END */ + +/* MFI BEGIN */ +static const TA_InputParameterInfo *TA_MFI_Inputs[] = +{ + &TA_DEF_UI_Input_Price_HLCV, + NULL +}; + +static const TA_OutputParameterInfo *TA_MFI_Outputs[] = +{ + &TA_DEF_UI_Output_Real, + NULL +}; + +static const TA_OptInputParameterInfo *TA_MFI_OptInputs[] = +{ + &TA_DEF_UI_TimePeriod_14_MINIMUM2, + NULL +}; + +DEF_FUNCTION( MFI, /* name */ + TA_GroupId_MomentumIndicators, /* groupId */ + "Money Flow Index", /* hint */ + "Mfi", /* CamelCase name */ + TA_FUNC_FLG_UNST_PER /* flags */ + ); +/* MFI END */ + +/* MIDPRICE BEGIN */ +static const TA_InputParameterInfo *TA_MIDPRICE_Inputs[] = +{ + &TA_DEF_UI_Input_Price_HL, + NULL +}; + +static const TA_OutputParameterInfo *TA_MIDPRICE_Outputs[] = +{ + &TA_DEF_UI_Output_Real, + NULL +}; + +static const TA_OptInputParameterInfo *TA_MIDPRICE_OptInputs[] = +{ &TA_DEF_UI_TimePeriod_14_MINIMUM2, + NULL +}; + +DEF_FUNCTION( MIDPRICE, /* name */ + TA_GroupId_OverlapStudies, /* groupId */ + "Midpoint Price over period",/* hint */ + "MidPrice", /* CamelCase name */ + TA_FUNC_FLG_OVERLAP /* flags */ + ); + +/* MIDPRICE END */ + +/* MIDPOINT BEGIN */ +static const TA_InputParameterInfo *TA_MIDPOINT_Inputs[] = +{ + &TA_DEF_UI_Input_Real, + NULL +}; + +static const TA_OutputParameterInfo *TA_MIDPOINT_Outputs[] = +{ + &TA_DEF_UI_Output_Real, + NULL +}; + +static const TA_OptInputParameterInfo *TA_MIDPOINT_OptInputs[] = +{ &TA_DEF_UI_TimePeriod_14_MINIMUM2, + NULL +}; + +DEF_FUNCTION( MIDPOINT, /* name */ + TA_GroupId_OverlapStudies, /* groupId */ + "MidPoint over period", /* hint */ + "MidPoint", /* CamelCase name */ + TA_FUNC_FLG_OVERLAP /* flags */ + ); +/* MIDPOINT END */ + +/* MIN BEGIN */ +static const TA_InputParameterInfo *TA_MIN_Inputs[] = +{ + &TA_DEF_UI_Input_Real, + NULL +}; + +static const TA_OutputParameterInfo *TA_MIN_Outputs[] = +{ + &TA_DEF_UI_Output_Real, + NULL +}; + +static const TA_OptInputParameterInfo *TA_MIN_OptInputs[] = +{ &TA_DEF_UI_TimePeriod_30_MINIMUM2, + NULL +}; + +DEF_FUNCTION( MIN, /* name */ + TA_GroupId_MathOperators, /* groupId */ + "Lowest value over a specified period", /* hint */ + "Min", /* CamelCase name */ + TA_FUNC_FLG_OVERLAP /* flags */ + ); +/* MIN END */ + +/* MININDEX BEGIN */ +static const TA_InputParameterInfo *TA_MININDEX_Inputs[] = +{ + &TA_DEF_UI_Input_Real, + NULL +}; + +static const TA_OutputParameterInfo *TA_MININDEX_Outputs[] = +{ + &TA_DEF_UI_Output_Integer, + NULL +}; + +static const TA_OptInputParameterInfo *TA_MININDEX_OptInputs[] = +{ &TA_DEF_UI_TimePeriod_30_MINIMUM2, + NULL +}; + +DEF_FUNCTION( MININDEX, /* name */ + TA_GroupId_MathOperators, /* groupId */ + "Index of lowest value over a specified period", /* hint */ + "MinIndex", /* CamelCase name */ + 0 /* flags */ + ); +/* MININDEX END */ + +/* MINMAX BEGIN */ +const TA_OutputParameterInfo TA_DEF_UI_Output_Real_Min = + { TA_Output_Real, "outMin", TA_OUT_LINE }; + +const TA_OutputParameterInfo TA_DEF_UI_Output_Real_Max = + { TA_Output_Real, "outMax", TA_OUT_LINE }; + +static const TA_InputParameterInfo *TA_MINMAX_Inputs[] = +{ + &TA_DEF_UI_Input_Real, + NULL +}; + +static const TA_OutputParameterInfo *TA_MINMAX_Outputs[] = +{ + &TA_DEF_UI_Output_Real_Min, + &TA_DEF_UI_Output_Real_Max, + NULL +}; + +static const TA_OptInputParameterInfo *TA_MINMAX_OptInputs[] = +{ &TA_DEF_UI_TimePeriod_30_MINIMUM2, + NULL +}; + +DEF_FUNCTION( MINMAX, /* name */ + TA_GroupId_MathOperators, /* groupId */ + "Lowest and highest values over a specified period", /* hint */ + "MinMax", /* CamelCase name */ + TA_FUNC_FLG_OVERLAP /* flags */ + ); +/* MINMAX END */ + +/* MINMAXINDEX BEGIN */ +const TA_OutputParameterInfo TA_DEF_UI_Output_Integer_MinIdx = + { TA_Output_Integer, "outMinIdx", TA_OUT_LINE }; + +const TA_OutputParameterInfo TA_DEF_UI_Output_Integer_MaxIdx = + { TA_Output_Integer, "outMaxIdx", TA_OUT_LINE }; + +static const TA_InputParameterInfo *TA_MINMAXINDEX_Inputs[] = +{ + &TA_DEF_UI_Input_Real, + NULL +}; + +static const TA_OutputParameterInfo *TA_MINMAXINDEX_Outputs[] = +{ + &TA_DEF_UI_Output_Integer_MinIdx, + &TA_DEF_UI_Output_Integer_MaxIdx, + NULL +}; + +static const TA_OptInputParameterInfo *TA_MINMAXINDEX_OptInputs[] = +{ &TA_DEF_UI_TimePeriod_30_MINIMUM2, + NULL +}; + +DEF_FUNCTION( MINMAXINDEX, /* name */ + TA_GroupId_MathOperators, /* groupId */ + "Indexes of lowest and highest values over a specified period", /* hint */ + "MinMaxIndex", /* CamelCase name */ + 0 /* flags */ + ); +/* MINMAXINDEX END */ + +/* MINUS_DI BEGIN */ +static const TA_InputParameterInfo *TA_MINUS_DI_Inputs[] = +{ + &TA_DEF_UI_Input_Price_HLC, + NULL +}; + +static const TA_OutputParameterInfo *TA_MINUS_DI_Outputs[] = +{ + &TA_DEF_UI_Output_Real, + NULL +}; + +static const TA_OptInputParameterInfo *TA_MINUS_DI_OptInputs[] = +{ &TA_DEF_UI_TimePeriod_14, + NULL +}; + +DEF_FUNCTION( MINUS_DI, /* name */ + TA_GroupId_MomentumIndicators, /* groupId */ + "Minus Directional Indicator", /* hint */ + "MinusDI", /* CamelCase name */ + TA_FUNC_FLG_UNST_PER /* flags */ + ); + +/* MINUS_DI END */ + +/* MINUS_DM BEGIN */ +static const TA_InputParameterInfo *TA_MINUS_DM_Inputs[] = +{ + &TA_DEF_UI_Input_Price_HL, + NULL +}; + +static const TA_OutputParameterInfo *TA_MINUS_DM_Outputs[] = +{ + &TA_DEF_UI_Output_Real, + NULL +}; + +static const TA_OptInputParameterInfo *TA_MINUS_DM_OptInputs[] = +{ &TA_DEF_UI_TimePeriod_14, + NULL +}; + +DEF_FUNCTION( MINUS_DM, /* name */ + TA_GroupId_MomentumIndicators, /* groupId */ + "Minus Directional Movement", /* hint */ + "MinusDM", /* CamelCase name */ + TA_FUNC_FLG_UNST_PER /* flags */ + ); + +/* MINUS_DM END */ + +/* MOM BEGIN */ +static const TA_InputParameterInfo *TA_MOM_Inputs[] = +{ + &TA_DEF_UI_Input_Real, + NULL +}; + +static const TA_OutputParameterInfo *TA_MOM_Outputs[] = +{ + &TA_DEF_UI_Output_Real, + NULL +}; + +static const TA_OptInputParameterInfo *TA_MOM_OptInputs[] = +{ &TA_DEF_UI_TimePeriod_10, + NULL +}; + +DEF_FUNCTION( MOM, /* name */ + TA_GroupId_MomentumIndicators, /* groupId */ + "Momentum", /* hint */ + "Mom", /* CamelCase name */ + 0 /* flags */ + ); +/* MOM END */ + +/* MULT BEGIN */ +DEF_MATH_BINARY_OPERATOR( MULT, "Vector Arithmetic Mult", "Mult" ) +/* MULT END */ + +/**************************************************************************** + * Step 2 - Add your TA function to the table. + * Keep in alphabetical order. Must be NULL terminated. + ****************************************************************************/ +const TA_FuncDef *TA_DEF_TableM[] = +{ + ADD_TO_TABLE(MA), + ADD_TO_TABLE(MACD), + ADD_TO_TABLE(MACDEXT), + ADD_TO_TABLE(MACDFIX), + ADD_TO_TABLE(MAMA), + ADD_TO_TABLE(MAVP), + ADD_TO_TABLE(MAX), + ADD_TO_TABLE(MAXINDEX), + ADD_TO_TABLE(MEDPRICE), + ADD_TO_TABLE(MFI), + ADD_TO_TABLE(MIDPOINT), + ADD_TO_TABLE(MIDPRICE), + ADD_TO_TABLE(MIN), + ADD_TO_TABLE(MININDEX), + ADD_TO_TABLE(MINMAX), + ADD_TO_TABLE(MINMAXINDEX), + ADD_TO_TABLE(MINUS_DI), + ADD_TO_TABLE(MINUS_DM), + ADD_TO_TABLE(MOM), + ADD_TO_TABLE(MULT), + NULL +}; + + +/* Do not modify the following line. */ +const unsigned int TA_DEF_TableMSize = + ((sizeof(TA_DEF_TableM)/sizeof(TA_FuncDef *))-1); + + +/**************************************************************************** + * Step 3 - Make sure "gen_code" is executed for generating all other + * source files derived from this one. + * You can then re-compile the library as usual and you are done! + ****************************************************************************/ diff --git a/src/ta_abstract/tables/table_n.c b/src/ta_abstract/tables/table_n.c new file mode 100644 index 000000000..05d2bb1d6 --- /dev/null +++ b/src/ta_abstract/tables/table_n.c @@ -0,0 +1,127 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/********************************************************************* + * This file contains only TA functions starting with the letter 'N' * + *********************************************************************/ +#include +#include "ta_abstract.h" +#include "ta_def_ui.h" + +/* Follow the 3 steps defined below for adding a new TA Function to this + * file. + */ + +/**************************************************************************** + * Step 1 - Define here the interface to your TA functions with + * the macro DEF_FUNCTION. + * + ****************************************************************************/ + +/* NATR BEGIN */ +static const TA_InputParameterInfo *TA_NATR_Inputs[] = +{ + &TA_DEF_UI_Input_Price_HLC, + NULL +}; + +static const TA_OutputParameterInfo *TA_NATR_Outputs[] = +{ + &TA_DEF_UI_Output_Real, + NULL +}; + +static const TA_OptInputParameterInfo *TA_NATR_OptInputs[] = +{ &TA_DEF_UI_TimePeriod_14, + NULL +}; + +DEF_FUNCTION( NATR, /* name */ + TA_GroupId_VolatilityIndicators, /* groupId */ + "Normalized Average True Range", /* hint */ + "Natr", /* CamelCase name */ + TA_FUNC_FLG_UNST_PER /* flags */ + ); +/* NATR END */ + +#if 0 +Will be implemented later +/* NVI BEGIN */ +static const TA_InputParameterInfo *TA_NVI_Inputs[] = +{ + &TA_DEF_UI_Input_Price_CV, + NULL +}; + +static const TA_OutputParameterInfo *TA_NVI_Outputs[] = +{ + &TA_DEF_UI_Output_Real, + NULL +}; + +static const TA_OptInputParameterInfo *TA_NVI_OptInputs[] = +{ + NULL +}; + +DEF_FUNCTION( NVI, /* name */ + TA_GroupId_VolumeIndicators, /* groupId */ + "Negative Volume Index", /* hint */ + "Nvi", /* CamelCase name */ + 0 /* flags */ + ); + +/* NVI END */ +#endif + +/**************************************************************************** + * Step 2 - Add your TA function to the table. + * Keep in alphabetical order. Must be NULL terminated. + ****************************************************************************/ +const TA_FuncDef *TA_DEF_TableN[] = +{ + ADD_TO_TABLE(NATR), + NULL +}; + + +/* Do not modify the following line. */ +const unsigned int TA_DEF_TableNSize = + ((sizeof(TA_DEF_TableN)/sizeof(TA_FuncDef *))-1); + + +/**************************************************************************** + * Step 3 - Make sure "gen_code" is executed for generating all other + * source files derived from this one. + * You can then re-compile the library as usual and you are done! + ****************************************************************************/ diff --git a/src/ta_abstract/tables/table_o.c b/src/ta_abstract/tables/table_o.c new file mode 100644 index 000000000..17763c333 --- /dev/null +++ b/src/ta_abstract/tables/table_o.c @@ -0,0 +1,96 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/********************************************************************* + * This file contains only TA functions starting with the letter 'O' * + *********************************************************************/ +#include +#include "ta_abstract.h" +#include "ta_def_ui.h" + +/* Follow the 3 steps defined below for adding a new TA Function to this + * file. + */ + +/**************************************************************************** + * Step 1 - Define here the interface to your TA functions with + * the macro DEF_FUNCTION. + * + ****************************************************************************/ + +/* OBV BEGIN */ +static const TA_InputParameterInfo *TA_OBV_Inputs[] = +{ + &TA_DEF_UI_Input_Real, + &TA_DEF_UI_Input_Price_V, + NULL +}; + +static const TA_OutputParameterInfo *TA_OBV_Outputs[] = +{ + &TA_DEF_UI_Output_Real, + NULL +}; + +static const TA_OptInputParameterInfo *TA_OBV_OptInputs[] = +{ NULL }; + +DEF_FUNCTION( OBV, /* name */ + TA_GroupId_VolumeIndicators, /* groupId */ + "On Balance Volume", /* hint */ + "Obv", /* CamelCase name */ + 0 /* flags */ + ); +/* OBV END */ + +/**************************************************************************** + * Step 2 - Add your TA function to the table. + * Keep in alphabetical order. Must be NULL terminated. + ****************************************************************************/ +const TA_FuncDef *TA_DEF_TableO[] = +{ + ADD_TO_TABLE(OBV), + NULL +}; + + +/* Do not modify the following line. */ +const unsigned int TA_DEF_TableOSize = + ((sizeof(TA_DEF_TableO)/sizeof(TA_FuncDef *))-1); + + +/**************************************************************************** + * Step 3 - Make sure "gen_code" is executed for generating all other + * source files derived from this one. + * You can then re-compile the library as usual and you are done! + ****************************************************************************/ diff --git a/src/ta_abstract/tables/table_p.c b/src/ta_abstract/tables/table_p.c new file mode 100644 index 000000000..87d587349 --- /dev/null +++ b/src/ta_abstract/tables/table_p.c @@ -0,0 +1,186 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/********************************************************************* + * This file contains only TA functions starting with the letter 'P' * + *********************************************************************/ +#include +#include "ta_abstract.h" +#include "ta_def_ui.h" + +/* Follow the 3 steps defined below for adding a new TA Function to this + * file. + */ + +/**************************************************************************** + * Step 1 - Define here the interface to your TA functions with + * the macro DEF_FUNCTION. + * + ****************************************************************************/ + +/* PLUS_DI BEGIN */ +static const TA_InputParameterInfo *TA_PLUS_DI_Inputs[] = +{ + &TA_DEF_UI_Input_Price_HLC, + NULL +}; + +static const TA_OutputParameterInfo *TA_PLUS_DI_Outputs[] = +{ + &TA_DEF_UI_Output_Real, + NULL +}; + +static const TA_OptInputParameterInfo *TA_PLUS_DI_OptInputs[] = +{ &TA_DEF_UI_TimePeriod_14, + NULL +}; + +DEF_FUNCTION( PLUS_DI, /* name */ + TA_GroupId_MomentumIndicators, /* groupId */ + "Plus Directional Indicator", /* hint */ + "PlusDI", /* CamelCase name */ + TA_FUNC_FLG_UNST_PER /* flags */ + ); + +/* PLUS_DI END */ + +/* PLUS_DM BEGIN */ +static const TA_InputParameterInfo *TA_PLUS_DM_Inputs[] = +{ + &TA_DEF_UI_Input_Price_HL, + NULL +}; + +static const TA_OutputParameterInfo *TA_PLUS_DM_Outputs[] = +{ + &TA_DEF_UI_Output_Real, + NULL +}; + +static const TA_OptInputParameterInfo *TA_PLUS_DM_OptInputs[] = +{ &TA_DEF_UI_TimePeriod_14, + NULL +}; + +DEF_FUNCTION( PLUS_DM, /* name */ + TA_GroupId_MomentumIndicators, /* groupId */ + "Plus Directional Movement", /* hint */ + "PlusDM", /* CamelCase name */ + TA_FUNC_FLG_UNST_PER /* flags */ + ); + +/* PLUS_DM END */ + +/* PPO BEGIN */ +static const TA_InputParameterInfo *TA_PPO_Inputs[] = +{ + &TA_DEF_UI_Input_Real, + NULL +}; + +static const TA_OutputParameterInfo *TA_PPO_Outputs[] = +{ + &TA_DEF_UI_Output_Real, + NULL +}; + +static const TA_OptInputParameterInfo *TA_PPO_OptInputs[] = +{ &TA_DEF_UI_Fast_Period, + &TA_DEF_UI_Slow_Period, + &TA_DEF_UI_MA_Method, + NULL +}; + +DEF_FUNCTION( PPO, /* name */ + TA_GroupId_MomentumIndicators, /* groupId */ + "Percentage Price Oscillator", /* hint */ + "Ppo", /* CamelCase name */ + 0 /* flags */ + ); +/* PPO END */ + +#if 0 +Will be implemented later +/* PVI BEGIN */ +static const TA_InputParameterInfo *TA_PVI_Inputs[] = +{ + &TA_DEF_UI_Input_Price_CV, + NULL +}; + +static const TA_OutputParameterInfo *TA_PVI_Outputs[] = +{ + &TA_DEF_UI_Output_Real, + NULL +}; + +static const TA_OptInputParameterInfo *TA_PVI_OptInputs[] = +{ + NULL +}; + +DEF_FUNCTION( PVI, /* name */ + TA_GroupId_VolumeIndicators, /* groupId */ + "Positive Volume Index", /* hint */ + "Pvi", /* CamelCase name */ + 0 /* flags */ + ); + +/* PVI END */ +#endif + +/**************************************************************************** + * Step 2 - Add your TA function to the table. + * Keep in alphabetical order. Must be NULL terminated. + ****************************************************************************/ +const TA_FuncDef *TA_DEF_TableP[] = +{ + ADD_TO_TABLE(PLUS_DI), + ADD_TO_TABLE(PLUS_DM), + ADD_TO_TABLE(PPO), + /* ADD_TO_TABLE(PVI),*/ + NULL +}; + + +/* Do not modify the following line. */ +const unsigned int TA_DEF_TablePSize = + ((sizeof(TA_DEF_TableP)/sizeof(TA_FuncDef *))-1); + + +/**************************************************************************** + * Step 3 - Make sure "gen_code" is executed for generating all other + * source files derived from this one. + * You can then re-compile the library as usual and you are done! + ****************************************************************************/ diff --git a/src/ta_abstract/tables/table_q.c b/src/ta_abstract/tables/table_q.c new file mode 100644 index 000000000..b64342ab2 --- /dev/null +++ b/src/ta_abstract/tables/table_q.c @@ -0,0 +1,72 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/********************************************************************* + * This file contains only TA functions starting with the letter 'Q' * + *********************************************************************/ +#include +#include "ta_abstract.h" +#include "ta_def_ui.h" + +/* Follow the 3 steps defined below for adding a new TA Function to this + * file. + */ + +/**************************************************************************** + * Step 1 - Define here the interface to your TA functions with + * the macro DEF_FUNCTION. + * + ****************************************************************************/ + +/* None */ + +/**************************************************************************** + * Step 2 - Add your TA function to the table. + * Keep in alphabetical order. Must be NULL terminated. + ****************************************************************************/ +const TA_FuncDef *TA_DEF_TableQ[] = +{ + NULL +}; + + +/* Do not modify the following line. */ +const unsigned int TA_DEF_TableQSize = + ((sizeof(TA_DEF_TableQ)/sizeof(TA_FuncDef *))-1); + + +/**************************************************************************** + * Step 3 - Make sure "gen_code" is executed for generating all other + * source files derived from this one. + * You can then re-compile the library as usual and you are done! + ****************************************************************************/ diff --git a/src/ta_abstract/tables/table_r.c b/src/ta_abstract/tables/table_r.c new file mode 100644 index 000000000..9d6a84645 --- /dev/null +++ b/src/ta_abstract/tables/table_r.c @@ -0,0 +1,206 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/********************************************************************* + * This file contains only TA functions starting with the letter 'R' * + *********************************************************************/ +#include +#include "ta_abstract.h" +#include "ta_def_ui.h" + +/* Follow the 3 steps defined below for adding a new TA Function to this + * file. + */ + +/**************************************************************************** + * Step 1 - Define here the interface to your TA functions with + * the macro DEF_FUNCTION. + * + ****************************************************************************/ + +/* ROC BEGIN */ +static const TA_InputParameterInfo *TA_ROC_Inputs[] = +{ + &TA_DEF_UI_Input_Real, + NULL +}; + +static const TA_OutputParameterInfo *TA_ROC_Outputs[] = +{ + &TA_DEF_UI_Output_Real, + NULL +}; + +static const TA_OptInputParameterInfo *TA_ROC_OptInputs[] = +{ &TA_DEF_UI_TimePeriod_10, + NULL +}; + +DEF_FUNCTION( ROC, /* name */ + TA_GroupId_MomentumIndicators, /* groupId */ + "Rate of change : ((price/prevPrice)-1)*100", /* hint */ + "Roc", /* CamelCase name */ + 0 /* flags */ + ); +/* ROC END */ + +/* ROCP BEGIN */ +static const TA_InputParameterInfo *TA_ROCP_Inputs[] = +{ + &TA_DEF_UI_Input_Real, + NULL +}; + +static const TA_OutputParameterInfo *TA_ROCP_Outputs[] = +{ + &TA_DEF_UI_Output_Real, + NULL +}; + +static const TA_OptInputParameterInfo *TA_ROCP_OptInputs[] = +{ &TA_DEF_UI_TimePeriod_10, + NULL +}; + +DEF_FUNCTION( ROCP, /* name */ + TA_GroupId_MomentumIndicators, /* groupId */ + "Rate of change Percentage: (price-prevPrice)/prevPrice", /* hint */ + "RocP", /* CamelCase name */ + 0 /* flags */ + ); +/* ROCP END */ + +/* ROCR BEGIN */ +static const TA_InputParameterInfo *TA_ROCR_Inputs[] = +{ + &TA_DEF_UI_Input_Real, + NULL +}; + +static const TA_OutputParameterInfo *TA_ROCR_Outputs[] = +{ + &TA_DEF_UI_Output_Real, + NULL +}; + +static const TA_OptInputParameterInfo *TA_ROCR_OptInputs[] = +{ &TA_DEF_UI_TimePeriod_10, + NULL +}; + +DEF_FUNCTION( ROCR, /* name */ + TA_GroupId_MomentumIndicators, /* groupId */ + "Rate of change ratio: (price/prevPrice)", /* hint */ + "RocR", /* CamelCase name */ + 0 /* flags */ + ); +/* ROCR END */ + +/* ROCR100 BEGIN */ +static const TA_InputParameterInfo *TA_ROCR100_Inputs[] = +{ + &TA_DEF_UI_Input_Real, + NULL +}; + +static const TA_OutputParameterInfo *TA_ROCR100_Outputs[] = +{ + &TA_DEF_UI_Output_Real, + NULL +}; + +static const TA_OptInputParameterInfo *TA_ROCR100_OptInputs[] = +{ &TA_DEF_UI_TimePeriod_10, + NULL +}; + +DEF_FUNCTION( ROCR100, /* name */ + TA_GroupId_MomentumIndicators, /* groupId */ + "Rate of change ratio 100 scale: (price/prevPrice)*100", /* hint */ + "RocR100", /* CamelCase name */ + 0 /* flags */ + ); +/* ROCR100 END */ + +/* RSI BEGIN */ +static const TA_InputParameterInfo *TA_RSI_Inputs[] = +{ + &TA_DEF_UI_Input_Real, + NULL +}; + +static const TA_OutputParameterInfo *TA_RSI_Outputs[] = +{ + &TA_DEF_UI_Output_Real, + NULL +}; + +static const TA_OptInputParameterInfo *TA_RSI_OptInputs[] = +{ + &TA_DEF_UI_TimePeriod_14_MINIMUM2, + NULL +}; + +DEF_FUNCTION( RSI, /* name */ + TA_GroupId_MomentumIndicators, /* groupId */ + "Relative Strength Index", /* hint */ + "Rsi", /* CamelCase name */ + TA_FUNC_FLG_UNST_PER /* flags */ + ); +/* RSI END */ + +/**************************************************************************** + * Step 2 - Add your TA function to the table. + * Keep in alphabetical order. Must be NULL terminated. + ****************************************************************************/ +const TA_FuncDef *TA_DEF_TableR[] = +{ + ADD_TO_TABLE(ROC), + ADD_TO_TABLE(ROCP), + ADD_TO_TABLE(ROCR), + ADD_TO_TABLE(ROCR100), + ADD_TO_TABLE(RSI), + NULL +}; + + +/* Do not modify the following line. */ +const unsigned int TA_DEF_TableRSize = + ((sizeof(TA_DEF_TableR)/sizeof(TA_FuncDef *))-1); + + +/**************************************************************************** + * Step 3 - Make sure "gen_code" is executed for generating all other + * source files derived from this one. + * You can then re-compile the library as usual and you are done! + ****************************************************************************/ diff --git a/src/ta_abstract/tables/table_s.c b/src/ta_abstract/tables/table_s.c new file mode 100644 index 000000000..bced2d9b9 --- /dev/null +++ b/src/ta_abstract/tables/table_s.c @@ -0,0 +1,630 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/********************************************************************* + * This file contains only TA functions starting with the letter 'S' * + *********************************************************************/ +#include +#include "ta_abstract.h" +#include "ta_def_ui.h" + +/* Follow the 3 steps defined below for adding a new TA Function to this + * file. + */ + +/**************************************************************************** + * Step 1 - Define here the interface to your TA functions with + * the macro DEF_FUNCTION. + * + ****************************************************************************/ + +/* SAR BEGIN */ +static const TA_RealRange TA_DEF_AccelerationFactor = +{ + 0.0, /* min */ + TA_REAL_MAX, /* max */ + 4, /* precision */ + 0.01, /* suggested start */ + 0.20, /* suggested end */ + 0.01 /* suggested increment */ +}; + +static const TA_RealRange TA_DEF_AccelerationMax = +{ + 0.0, /* min */ + TA_REAL_MAX, /* max */ + 4, /* precision */ + 0.20, /* suggested start */ + 0.40, /* suggested end */ + 0.01 /* suggested increment */ +}; + +static const TA_OptInputParameterInfo TA_DEF_UI_D_AccelerationFactor = +{ + TA_OptInput_RealRange, /* type */ + "optInAcceleration", /* paramName */ + 0, /* flags */ + + "Acceleration Factor", /* displayName */ + (const void *)&TA_DEF_AccelerationFactor, /* dataSet */ + 0.02, /* defaultValue */ + "Acceleration Factor used up to the Maximum value", /* hint */ + NULL /* CamelCase name */ +}; + +static const TA_OptInputParameterInfo TA_DEF_UI_D_AccelerationMaximum = +{ + TA_OptInput_RealRange, /* type */ + "optInMaximum", /* paramName */ + 0, /* flags */ + + "AF Maximum", /* displayName */ + (const void *)&TA_DEF_AccelerationMax, /* dataSet */ + 0.20, /* defaultValue */ + "Acceleration Factor Maximum value", /* hint */ + + NULL /* CamelCase name */ +}; + +static const TA_InputParameterInfo *TA_SAR_Inputs[] = +{ + &TA_DEF_UI_Input_Price_HL, + NULL +}; + +static const TA_OutputParameterInfo *TA_SAR_Outputs[] = +{ + &TA_DEF_UI_Output_Real, + NULL +}; + +static const TA_OptInputParameterInfo *TA_SAR_OptInputs[] = +{ &TA_DEF_UI_D_AccelerationFactor, + &TA_DEF_UI_D_AccelerationMaximum, + NULL +}; + +DEF_FUNCTION( SAR, /* name */ + TA_GroupId_OverlapStudies, /* groupId */ + "Parabolic SAR", /* hint */ + "Sar", /* CamelCase name */ + TA_FUNC_FLG_OVERLAP /* flags */ + ); + +/* SAR END */ + +/* SAREXT BEGIN */ +static const TA_RealRange TA_DEF_AccelerationInit = +{ + 0.0, /* min */ + TA_REAL_MAX, /* max */ + 4, /* precision */ + 0.01, /* suggested start */ + 0.19, /* suggested end */ + 0.01 /* suggested increment */ +}; + +static const TA_RealRange TA_DEF_SARStartValue = +{ + TA_REAL_MIN, /* min */ + TA_REAL_MAX, /* max */ + 4, /* precision */ + 0, /* suggested start */ + 0, /* suggested end */ + 0 /* suggested increment */ +}; + +static const TA_RealRange TA_DEF_SAROffsetOnReverse = +{ + 0.0, /* min */ + TA_REAL_MAX, /* max */ + 4, /* precision */ + 0.01, /* suggested start */ + 0.15, /* suggested end */ + 0.01 /* suggested increment */ +}; + +static const TA_OptInputParameterInfo TA_DEF_UI_D_StartValue = +{ + TA_OptInput_RealRange, /* type */ + "optInStartValue", /* paramName */ + 0, /* flags */ + + "Start Value", /* displayName */ + (const void *)&TA_DEF_SARStartValue, /* dataSet */ + 0.0, /* defaultValue */ + "Start value and direction. 0 for Auto, >0 for Long, <0 for Short", /* hint */ + + NULL /* CamelCase name */ +}; + +static const TA_OptInputParameterInfo TA_DEF_UI_D_OffsetOnReverse = +{ + TA_OptInput_RealRange, /* type */ + "optInOffsetOnReverse", /* paramName */ + 0, /* flags */ + + "Offset on Reverse", /* displayName */ + (const void *)&TA_DEF_SAROffsetOnReverse, /* dataSet */ + 0.0, /* defaultValue */ + "Percent offset added/removed to initial stop on short/long reversal", /* hint */ + + NULL /* CamelCase name */ +}; + +static const TA_OptInputParameterInfo TA_DEF_UI_D_AccelerationInitLong = +{ + TA_OptInput_RealRange, /* type */ + "optInAccelerationInitLong", /* paramName */ + 0, /* flags */ + + "AF Init Long", /* displayName */ + (const void *)&TA_DEF_AccelerationInit, /* dataSet */ + 0.02, /* defaultValue */ + "Acceleration Factor initial value for the Long direction", /* hint */ + + NULL /* CamelCase name */ +}; + +static const TA_OptInputParameterInfo TA_DEF_UI_D_AccelerationLong = +{ + TA_OptInput_RealRange, /* type */ + "optInAccelerationLong", /* paramName */ + 0, /* flags */ + + "AF Long", /* displayName */ + (const void *)&TA_DEF_AccelerationFactor, /* dataSet */ + 0.02, /* defaultValue */ + "Acceleration Factor for the Long direction", /* hint */ + NULL /* CamelCase name */ +}; + +static const TA_OptInputParameterInfo TA_DEF_UI_D_AccelerationMaxLong = +{ + TA_OptInput_RealRange, /* type */ + "optInAccelerationMaxLong", /* paramName */ + 0, /* flags */ + + "AF Max Long", /* displayName */ + (const void *)&TA_DEF_AccelerationMax, /* dataSet */ + 0.20, /* defaultValue */ + "Acceleration Factor maximum value for the Long direction", /* hint */ + + NULL /* CamelCase name */ +}; + +static const TA_OptInputParameterInfo TA_DEF_UI_D_AccelerationInitShort = +{ + TA_OptInput_RealRange, /* type */ + "optInAccelerationInitShort", /* paramName */ + 0, /* flags */ + + "AF Init Short", /* displayName */ + (const void *)&TA_DEF_AccelerationInit, /* dataSet */ + 0.02, /* defaultValue */ + "Acceleration Factor initial value for the Short direction", /* hint */ + + NULL /* CamelCase name */ +}; + +static const TA_OptInputParameterInfo TA_DEF_UI_D_AccelerationShort = +{ + TA_OptInput_RealRange, /* type */ + "optInAccelerationShort", /* paramName */ + 0, /* flags */ + + "AF Short", /* displayName */ + (const void *)&TA_DEF_AccelerationFactor, /* dataSet */ + 0.02, /* defaultValue */ + "Acceleration Factor for the Short direction", /* hint */ + NULL /* CamelCase name */ +}; + +static const TA_OptInputParameterInfo TA_DEF_UI_D_AccelerationMaxShort = +{ + TA_OptInput_RealRange, /* type */ + "optInAccelerationMaxShort", /* paramName */ + 0, /* flags */ + + "AF Max Short", /* displayName */ + (const void *)&TA_DEF_AccelerationMax, /* dataSet */ + 0.20, /* defaultValue */ + "Acceleration Factor maximum value for the Short direction", /* hint */ + + NULL /* CamelCase name */ +}; + +static const TA_InputParameterInfo *TA_SAREXT_Inputs[] = +{ + &TA_DEF_UI_Input_Price_HL, + NULL +}; + +static const TA_OutputParameterInfo *TA_SAREXT_Outputs[] = +{ + &TA_DEF_UI_Output_Real, + NULL +}; + +static const TA_OptInputParameterInfo *TA_SAREXT_OptInputs[] = +{ &TA_DEF_UI_D_StartValue, + &TA_DEF_UI_D_OffsetOnReverse, + &TA_DEF_UI_D_AccelerationInitLong, + &TA_DEF_UI_D_AccelerationLong, + &TA_DEF_UI_D_AccelerationMaxLong, + &TA_DEF_UI_D_AccelerationInitShort, + &TA_DEF_UI_D_AccelerationShort, + &TA_DEF_UI_D_AccelerationMaxShort, + NULL +}; + +DEF_FUNCTION( SAREXT, /* name */ + TA_GroupId_OverlapStudies, /* groupId */ + "Parabolic SAR - Extended", /* hint */ + "SarExt", /* CamelCase name */ + TA_FUNC_FLG_OVERLAP /* flags */ + ); + +/* SAREXT END */ + + +/* SIN BEGIN */ +DEF_MATH_UNARY_OPERATOR( SIN, "Vector Trigonometric Sin", "Sin" ) +/* SIN END */ + +/* SINH BEGIN */ +DEF_MATH_UNARY_OPERATOR( SINH, "Vector Trigonometric Sinh", "Sinh" ) +/* SINH END */ + +/* SMA BEGIN */ +static const TA_InputParameterInfo *TA_SMA_Inputs[] = +{ + &TA_DEF_UI_Input_Real, + NULL +}; + +static const TA_OutputParameterInfo *TA_SMA_Outputs[] = +{ + &TA_DEF_UI_Output_Real, + NULL +}; + +static const TA_OptInputParameterInfo *TA_SMA_OptInputs[] = +{ &TA_DEF_UI_TimePeriod_30_MINIMUM2, + NULL +}; + +DEF_FUNCTION( SMA, /* name */ + TA_GroupId_OverlapStudies, /* groupId */ + "Simple Moving Average", /* hint */ + "Sma", /* CamelCase name */ + TA_FUNC_FLG_OVERLAP /* flags */ + ); + +/* SMA END */ + +/* SQRT BEGIN */ +DEF_MATH_UNARY_OPERATOR( SQRT, "Vector Square Root", "Sqrt" ) +/* SQRT END */ + +/* SUB BEGIN */ +DEF_MATH_BINARY_OPERATOR( SUB, "Vector Arithmetic Substraction", "Sub" ) +/* SUB END */ + +/* SUM BEGIN */ +static const TA_InputParameterInfo *TA_SUM_Inputs[] = +{ + &TA_DEF_UI_Input_Real, + NULL +}; + +static const TA_OutputParameterInfo *TA_SUM_Outputs[] = +{ + &TA_DEF_UI_Output_Real, + NULL +}; + +static const TA_OptInputParameterInfo *TA_SUM_OptInputs[] = +{ &TA_DEF_UI_TimePeriod_30_MINIMUM2, + NULL +}; + +DEF_FUNCTION( SUM, /* name */ + TA_GroupId_MathOperators, /* groupId */ + "Summation", /* hint */ + "Sum", /* CamelCase name */ + 0 /* flags */ + ); +/* SUM END */ + +/* STDDEV BEGIN */ +static const TA_InputParameterInfo *TA_STDDEV_Inputs[] = +{ + &TA_DEF_UI_Input_Real, + NULL +}; + +static const TA_OutputParameterInfo *TA_STDDEV_Outputs[] = +{ + &TA_DEF_UI_Output_Real, + NULL +}; + +static const TA_OptInputParameterInfo *TA_STDDEV_OptInputs[] = +{ &TA_DEF_UI_TimePeriod_5_MINIMUM2, + &TA_DEF_UI_NbDeviation, + NULL +}; + +DEF_FUNCTION( STDDEV, /* name */ + TA_GroupId_Statistic, /* groupId */ + "Standard Deviation", /* hint */ + "StdDev", /* CamelCase name */ + 0 /* flags */ + ); +/* STDDEV END */ + +/* STOCH BEGIN */ +static const TA_OptInputParameterInfo TA_DEF_UI_FastK_Period = +{ + TA_OptInput_IntegerRange, /* type */ + "optInFastK_Period", /* paramName */ + 0, /* flags */ + + "Fast-K Period", /* displayName */ + (const void *)&TA_DEF_TimePeriod_Positive, /* dataSet */ + 5, /* defaultValue */ + "Time period for building the Fast-K line", /* hint */ + + NULL /* CamelCase name */ +}; + +static const TA_OptInputParameterInfo TA_DEF_UI_SlowK_Period = +{ + TA_OptInput_IntegerRange, /* type */ + "optInSlowK_Period", /* paramName */ + 0, /* flags */ + + "Slow-K Period", /* displayName */ + (const void *)&TA_DEF_TimePeriod_Positive, /* dataSet */ + 3, /* defaultValue */ + "Smoothing for making the Slow-K line. Usually set to 3", /* hint */ + + NULL /* CamelCase name */ +}; + +static const TA_OptInputParameterInfo TA_DEF_UI_SlowD_Period = +{ + TA_OptInput_IntegerRange, /* type */ + "optInSlowD_Period", /* paramName */ + 0, /* flags */ + + "Slow-D Period", /* displayName */ + (const void *)&TA_DEF_TimePeriod_Positive, /* dataSet */ + 3, /* defaultValue */ + "Smoothing for making the Slow-D line", /* hint */ + + NULL /* CamelCase name */ +}; + +const TA_OptInputParameterInfo TA_DEF_UI_SlowK_MAType = +{ + TA_OptInput_IntegerList, /* type */ + "optInSlowK_MAType", /* paramName */ + 0, /* flags */ + + "Slow-K MA", /* displayName */ + (const void *)&TA_MA_TypeList, /* dataSet */ + 0, /* defaultValue = simple average */ + "Type of Moving Average for Slow-K", /* hint */ + + NULL /* CamelCase name */ +}; + +const TA_OptInputParameterInfo TA_DEF_UI_SlowD_MAType = +{ + TA_OptInput_IntegerList, /* type */ + "optInSlowD_MAType", /* paramName */ + 0, /* flags */ + + "Slow-D MA", /* displayName */ + (const void *)&TA_MA_TypeList, /* dataSet */ + 0, /* defaultValue = simple average */ + "Type of Moving Average for Slow-D", /* hint */ + + NULL /* CamelCase name */ +}; + +const TA_OutputParameterInfo TA_DEF_UI_Output_SlowK = + { TA_Output_Real, "outSlowK", TA_OUT_DASH_LINE }; + +const TA_OutputParameterInfo TA_DEF_UI_Output_SlowD = + { TA_Output_Real, "outSlowD", TA_OUT_DASH_LINE }; + +static const TA_InputParameterInfo *TA_STOCH_Inputs[] = +{ + &TA_DEF_UI_Input_Price_HLC, + NULL +}; + +static const TA_OutputParameterInfo *TA_STOCH_Outputs[] = +{ + &TA_DEF_UI_Output_SlowK, + &TA_DEF_UI_Output_SlowD, + NULL +}; + +static const TA_OptInputParameterInfo *TA_STOCH_OptInputs[] = +{ &TA_DEF_UI_FastK_Period, + &TA_DEF_UI_SlowK_Period, + &TA_DEF_UI_SlowK_MAType, + &TA_DEF_UI_SlowD_Period, + &TA_DEF_UI_SlowD_MAType, + NULL +}; + +DEF_FUNCTION( STOCH, /* name */ + TA_GroupId_MomentumIndicators, /* groupId */ + "Stochastic", /* hint */ + "Stoch", /* CamelCase name */ + 0 /* flags */ + ); +/* STOCH END */ + +/* STOCHF BEGIN */ +static const TA_OptInputParameterInfo TA_DEF_UI_FastD_Period = +{ + TA_OptInput_IntegerRange, /* type */ + "optInFastD_Period", /* paramName */ + 0, /* flags */ + + "Fast-D Period", /* displayName */ + (const void *)&TA_DEF_TimePeriod_Positive, /* dataSet */ + 3, /* defaultValue */ + "Smoothing for making the Fast-D line. Usually set to 3", /* hint */ + + NULL /* CamelCase name */ +}; + +const TA_OptInputParameterInfo TA_DEF_UI_FastD_MAType = +{ + TA_OptInput_IntegerList, /* type */ + "optInFastD_MAType", /* paramName */ + 0, /* flags */ + + "Fast-D MA", /* displayName */ + (const void *)&TA_MA_TypeList, /* dataSet */ + 0, /* defaultValue = simple average */ + "Type of Moving Average for Fast-D", /* hint */ + + NULL /* CamelCase name */ +}; + +const TA_OutputParameterInfo TA_DEF_UI_Output_FastK = + { TA_Output_Real, "outFastK", TA_OUT_LINE }; + +const TA_OutputParameterInfo TA_DEF_UI_Output_FastD = + { TA_Output_Real, "outFastD", TA_OUT_LINE }; + +static const TA_InputParameterInfo *TA_STOCHF_Inputs[] = +{ + &TA_DEF_UI_Input_Price_HLC, + NULL +}; + +static const TA_OutputParameterInfo *TA_STOCHF_Outputs[] = +{ + &TA_DEF_UI_Output_FastK, + &TA_DEF_UI_Output_FastD, + NULL +}; + +static const TA_OptInputParameterInfo *TA_STOCHF_OptInputs[] = +{ &TA_DEF_UI_FastK_Period, + &TA_DEF_UI_FastD_Period, + &TA_DEF_UI_FastD_MAType, + NULL +}; + +DEF_FUNCTION( STOCHF, /* name */ + TA_GroupId_MomentumIndicators, /* groupId */ + "Stochastic Fast", /* hint */ + "StochF", /* CamelCase name */ + 0 /* flags */ + ); +/* STOCHF END */ + +/* STOCHRSI BEGIN */ +static const TA_InputParameterInfo *TA_STOCHRSI_Inputs[] = +{ + &TA_DEF_UI_Input_Real, + NULL +}; + +static const TA_OutputParameterInfo *TA_STOCHRSI_Outputs[] = +{ + &TA_DEF_UI_Output_FastK, + &TA_DEF_UI_Output_FastD, + NULL +}; + +static const TA_OptInputParameterInfo *TA_STOCHRSI_OptInputs[] = +{ + &TA_DEF_UI_TimePeriod_14_MINIMUM2, + &TA_DEF_UI_FastK_Period, + &TA_DEF_UI_FastD_Period, + &TA_DEF_UI_FastD_MAType, + NULL +}; + +DEF_FUNCTION( STOCHRSI, /* name */ + TA_GroupId_MomentumIndicators, /* groupId */ + "Stochastic Relative Strength Index", /* hint */ + "StochRsi", /* CamelCase name */ + TA_FUNC_FLG_UNST_PER /* flags */ + ); + +/* STOCHRSI END */ + +/**************************************************************************** + * Step 2 - Add your TA function to the table. + * Keep in alphabetical order. Must be NULL terminated. + ****************************************************************************/ +const TA_FuncDef *TA_DEF_TableS[] = +{ + ADD_TO_TABLE(SAR), + ADD_TO_TABLE(SAREXT), + ADD_TO_TABLE(SIN), + ADD_TO_TABLE(SINH), + ADD_TO_TABLE(SMA), + ADD_TO_TABLE(SQRT), + ADD_TO_TABLE(STDDEV), + ADD_TO_TABLE(STOCH), + ADD_TO_TABLE(STOCHF), + ADD_TO_TABLE(STOCHRSI), + ADD_TO_TABLE(SUB), + ADD_TO_TABLE(SUM), + NULL +}; + + +/* Do not modify the following line. */ +const unsigned int TA_DEF_TableSSize = + ((sizeof(TA_DEF_TableS)/sizeof(TA_FuncDef *))-1); + + +/**************************************************************************** + * Step 3 - Make sure "gen_code" is executed for generating all other + * source files derived from this one. + * You can then re-compile the library as usual and you are done! + ****************************************************************************/ diff --git a/src/ta_abstract/tables/table_t.c b/src/ta_abstract/tables/table_t.c new file mode 100644 index 000000000..6dbef0fd6 --- /dev/null +++ b/src/ta_abstract/tables/table_t.c @@ -0,0 +1,277 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/********************************************************************* + * This file contains only TA functions starting with the letter 'T' * + *********************************************************************/ +#include +#include "ta_abstract.h" +#include "ta_def_ui.h" + +/* Follow the 3 steps defined below for adding a new TA Function to this + * file. + */ + +/**************************************************************************** + * Step 1 - Define here the interface to your TA functions with + * the macro DEF_FUNCTION. + * + ****************************************************************************/ + +/* T3 BEGIN */ +static const TA_OptInputParameterInfo TA_DEF_UI_VFactor = +{ + TA_OptInput_RealRange, /* type */ + "optInVFactor", /* paramName */ + 0, /* flags */ + + "Volume Factor", /* displayName */ + (const void *)&TA_DEF_ZeroToOne, /* dataSet */ + 0.7, /* defaultValue */ + "Volume Factor", /* hint */ + NULL /* CamelCase name */ +}; + +static const TA_InputParameterInfo *TA_T3_Inputs[] = +{ + &TA_DEF_UI_Input_Real, + NULL +}; + +static const TA_OutputParameterInfo *TA_T3_Outputs[] = +{ + &TA_DEF_UI_Output_Real, + NULL +}; + +static const TA_OptInputParameterInfo *TA_T3_OptInputs[] = +{ &TA_DEF_UI_TimePeriod_5_MINIMUM2, + &TA_DEF_UI_VFactor, + NULL +}; + +DEF_FUNCTION( T3, /* name */ + TA_GroupId_OverlapStudies, /* groupId */ + "Triple Exponential Moving Average (T3)", /* hint */ + "T3", /* CamelCase name */ + TA_FUNC_FLG_OVERLAP|TA_FUNC_FLG_UNST_PER /* flags */ + ); +/* T3 END */ + +/* TAN BEGIN */ +DEF_MATH_UNARY_OPERATOR( TAN, "Vector Trigonometric Tan", "Tan" ) +/* TAN END */ + +/* TANH BEGIN */ +DEF_MATH_UNARY_OPERATOR( TANH, "Vector Trigonometric Tanh", "Tanh" ) +/* TANH END */ + +/* TEMA BEGIN */ +static const TA_InputParameterInfo *TA_TEMA_Inputs[] = +{ + &TA_DEF_UI_Input_Real, + NULL +}; + +static const TA_OutputParameterInfo *TA_TEMA_Outputs[] = +{ + &TA_DEF_UI_Output_Real, + NULL +}; + +static const TA_OptInputParameterInfo *TA_TEMA_OptInputs[] = +{ &TA_DEF_UI_TimePeriod_30_MINIMUM2, + NULL +}; + +DEF_FUNCTION( TEMA, /* name */ + TA_GroupId_OverlapStudies, /* groupId */ + "Triple Exponential Moving Average", /* hint */ + "Tema", /* CamelCase name */ + TA_FUNC_FLG_OVERLAP /* flags */ + ); +/* TEMA END */ + +/* TRANGE BEGIN */ +static const TA_InputParameterInfo *TA_TRANGE_Inputs[] = +{ + &TA_DEF_UI_Input_Price_HLC, + NULL +}; + +static const TA_OutputParameterInfo *TA_TRANGE_Outputs[] = +{ + &TA_DEF_UI_Output_Real, + NULL +}; + +static const TA_OptInputParameterInfo *TA_TRANGE_OptInputs[] = { NULL }; + +DEF_FUNCTION( TRANGE, /* name */ + TA_GroupId_VolatilityIndicators, /* groupId */ + "True Range", /* hint */ + "TrueRange", /* CamelCase name */ + 0 /* flags */ + ); +/* TRANGE END */ + +/* TRIMA BEGIN */ +static const TA_InputParameterInfo *TA_TRIMA_Inputs[] = +{ + &TA_DEF_UI_Input_Real, + NULL +}; + +static const TA_OutputParameterInfo *TA_TRIMA_Outputs[] = +{ + &TA_DEF_UI_Output_Real, + NULL +}; + +static const TA_OptInputParameterInfo *TA_TRIMA_OptInputs[] = +{ &TA_DEF_UI_TimePeriod_30_MINIMUM2, + NULL +}; + +DEF_FUNCTION( TRIMA, /* name */ + TA_GroupId_OverlapStudies, /* groupId */ + "Triangular Moving Average", /* hint */ + "Trima", /* CamelCase name */ + TA_FUNC_FLG_OVERLAP /* flags */ + ); +/* TRIMA END */ + +/* TRIX BEGIN */ +static const TA_InputParameterInfo *TA_TRIX_Inputs[] = +{ + &TA_DEF_UI_Input_Real, + NULL +}; + +static const TA_OutputParameterInfo *TA_TRIX_Outputs[] = +{ + &TA_DEF_UI_Output_Real, + NULL +}; + +static const TA_OptInputParameterInfo *TA_TRIX_OptInputs[] = +{ &TA_DEF_UI_TimePeriod_30, + NULL +}; + +DEF_FUNCTION( TRIX, /* name */ + TA_GroupId_MomentumIndicators, /* groupId */ + "1-day Rate-Of-Change (ROC) of a Triple Smooth EMA", /* hint */ + "Trix", /* CamelCase name */ + 0 /* flags */ + ); +/* TRIX END */ + +/* TSF BEGIN */ +static const TA_InputParameterInfo *TA_TSF_Inputs[] = +{ + &TA_DEF_UI_Input_Real, + NULL +}; + +static const TA_OutputParameterInfo *TA_TSF_Outputs[] = +{ + &TA_DEF_UI_Output_Real, + NULL +}; + +static const TA_OptInputParameterInfo *TA_TSF_OptInputs[] = +{ &TA_DEF_UI_TimePeriod_14_MINIMUM2, + NULL +}; + +DEF_FUNCTION( TSF, /* name */ + TA_GroupId_Statistic, /* groupId */ + "Time Series Forecast",/* hint */ + "Tsf", /* CamelCase name */ + TA_FUNC_FLG_OVERLAP /* flags */ + ); +/* TSF END */ + +/* TYPPRICE BEGIN */ +static const TA_InputParameterInfo *TA_TYPPRICE_Inputs[] = +{ + &TA_DEF_UI_Input_Price_HLC, + NULL +}; + +static const TA_OutputParameterInfo *TA_TYPPRICE_Outputs[] = +{ + &TA_DEF_UI_Output_Real, + NULL +}; + +static const TA_OptInputParameterInfo *TA_TYPPRICE_OptInputs[] = { NULL }; + +DEF_FUNCTION( TYPPRICE, /* name */ + TA_GroupId_PriceTransform, /* groupId */ + "Typical Price", /* hint */ + "TypPrice", /* CamelCase name */ + TA_FUNC_FLG_OVERLAP /* flags */ + ); +/* TYPPRICE END */ + +/**************************************************************************** + * Step 2 - Add your TA function to the table. + * Keep in alphabetical order. Must be NULL terminated. + ****************************************************************************/ +const TA_FuncDef *TA_DEF_TableT[] = +{ + ADD_TO_TABLE(T3), + ADD_TO_TABLE(TAN), + ADD_TO_TABLE(TANH), + ADD_TO_TABLE(TEMA), + ADD_TO_TABLE(TRANGE), + ADD_TO_TABLE(TRIMA), + ADD_TO_TABLE(TRIX), + ADD_TO_TABLE(TSF), + ADD_TO_TABLE(TYPPRICE), + NULL +}; + + +/* Do not modify the following line. */ +const unsigned int TA_DEF_TableTSize = + ((sizeof(TA_DEF_TableT)/sizeof(TA_FuncDef *))-1); + + +/**************************************************************************** + * Step 3 - Make sure "gen_code" is executed for generating all other + * source files derived from this one. + * You can then re-compile the library as usual and you are done! + ****************************************************************************/ diff --git a/src/ta_abstract/tables/table_u.c b/src/ta_abstract/tables/table_u.c new file mode 100644 index 000000000..1a7856764 --- /dev/null +++ b/src/ta_abstract/tables/table_u.c @@ -0,0 +1,142 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/********************************************************************* + * This file contains only TA functions starting with the letter 'U' * + *********************************************************************/ +#include +#include "ta_abstract.h" +#include "ta_def_ui.h" + +/* Follow the 3 steps defined below for adding a new TA Function to this + * file. + */ + +/**************************************************************************** + * Step 1 - Define here the interface to your TA functions with + * the macro DEF_FUNCTION. + * + ****************************************************************************/ + +/* ULTOSC BEGIN */ +const TA_OptInputParameterInfo TA_DEF_UI_TimePeriod_7_PER1 = +{ + TA_OptInput_IntegerRange, /* type */ + "optInTimePeriod1", /* paramName */ + 0, /* flags */ + + "First Period", /* displayName */ + (const void *)&TA_DEF_TimePeriod_Positive, /* dataSet */ + 7, /* defaultValue */ + "Number of bars for 1st period.", /* hint */ + + NULL /* CamelCase name */ +}; + +const TA_OptInputParameterInfo TA_DEF_UI_TimePeriod_14_PER2 = +{ + TA_OptInput_IntegerRange, /* type */ + "optInTimePeriod2", /* paramName */ + 0, /* flags */ + + "Second Period", /* displayName */ + (const void *)&TA_DEF_TimePeriod_Positive, /* dataSet */ + 14, /* defaultValue */ + "Number of bars fro 2nd period", /* hint */ + + NULL /* CamelCase name */ +}; + +const TA_OptInputParameterInfo TA_DEF_UI_TimePeriod_28_PER3 = +{ + TA_OptInput_IntegerRange, /* type */ + "optInTimePeriod3", /* paramName */ + 0, /* flags */ + + "Third Period", /* displayName */ + (const void *)&TA_DEF_TimePeriod_Positive, /* dataSet */ + 28, /* defaultValue */ + "Number of bars for 3rd period", /* hint */ + + NULL /* CamelCase name */ +}; + +static const TA_InputParameterInfo *TA_ULTOSC_Inputs[] = +{ + &TA_DEF_UI_Input_Price_HLC, + NULL +}; + +static const TA_OutputParameterInfo *TA_ULTOSC_Outputs[] = +{ + &TA_DEF_UI_Output_Real, + NULL +}; + +static const TA_OptInputParameterInfo *TA_ULTOSC_OptInputs[] = +{ + &TA_DEF_UI_TimePeriod_7_PER1, + &TA_DEF_UI_TimePeriod_14_PER2, + &TA_DEF_UI_TimePeriod_28_PER3, + NULL +}; + +DEF_FUNCTION( ULTOSC, /* name */ + TA_GroupId_MomentumIndicators, /* groupId */ + "Ultimate Oscillator", /* hint */ + "UltOsc", /* CamelCase name */ + 0 /* flags */ + ); +/* ULTOSC END */ + +/**************************************************************************** + * Step 2 - Add your TA function to the table. + * Keep in alphabetical order. Must be NULL terminated. + ****************************************************************************/ +const TA_FuncDef *TA_DEF_TableU[] = +{ + ADD_TO_TABLE(ULTOSC), + NULL +}; + + +/* Do not modify the following line. */ +const unsigned int TA_DEF_TableUSize = + ((sizeof(TA_DEF_TableU)/sizeof(TA_FuncDef *))-1); + + +/**************************************************************************** + * Step 3 - Make sure "gen_code" is executed for generating all other + * source files derived from this one. + * You can then re-compile the library as usual and you are done! + ****************************************************************************/ diff --git a/src/ta_abstract/tables/table_v.c b/src/ta_abstract/tables/table_v.c new file mode 100644 index 000000000..e49fa92e2 --- /dev/null +++ b/src/ta_abstract/tables/table_v.c @@ -0,0 +1,98 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/********************************************************************* + * This file contains only TA functions starting with the letter 'V' * + *********************************************************************/ +#include +#include "ta_abstract.h" +#include "ta_def_ui.h" + +/* Follow the 3 steps defined below for adding a new TA Function to this + * file. + */ + +/**************************************************************************** + * Step 1 - Define here the interface to your TA functions with + * the macro DEF_FUNCTION. + * + ****************************************************************************/ + +/* VAR BEGIN */ +static const TA_InputParameterInfo *TA_VAR_Inputs[] = +{ + &TA_DEF_UI_Input_Real, + NULL +}; + +static const TA_OutputParameterInfo *TA_VAR_Outputs[] = +{ + &TA_DEF_UI_Output_Real, + NULL +}; + +static const TA_OptInputParameterInfo *TA_VAR_OptInputs[] = +{ &TA_DEF_UI_TimePeriod_5, + &TA_DEF_UI_NbDeviation, + NULL +}; + +DEF_FUNCTION( VAR, /* name */ + TA_GroupId_Statistic, /* groupId */ + "Variance", /* hint */ + "Variance", /* CamelCase name */ + 0 /* flags */ + ); +/* VAR END */ + +/**************************************************************************** + * Step 2 - Add your TA function to the table. + * Keep in alphabetical order. Must be NULL terminated. + ****************************************************************************/ +const TA_FuncDef *TA_DEF_TableV[] = +{ + ADD_TO_TABLE(VAR), + NULL +}; + + +/* Do not modify the following line. */ +const unsigned int TA_DEF_TableVSize = + ((sizeof(TA_DEF_TableV)/sizeof(TA_FuncDef *))-1); + + +/**************************************************************************** + * Step 3 - Make sure "gen_code" is executed for generating all other + * source files derived from this one. + * You can then re-compile the library as usual and you are done! + ****************************************************************************/ diff --git a/src/ta_abstract/tables/table_w.c b/src/ta_abstract/tables/table_w.c new file mode 100644 index 000000000..266659086 --- /dev/null +++ b/src/ta_abstract/tables/table_w.c @@ -0,0 +1,149 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/********************************************************************* + * This file contains only TA functions starting with the letter 'W' * + *********************************************************************/ +#include +#include "ta_abstract.h" +#include "ta_def_ui.h" + +/* Follow the 3 steps defined below for adding a new TA Function to this + * file. + */ + +/**************************************************************************** + * Step 1 - Define here the interface to your TA functions with + * the macro DEF_FUNCTION. + * + ****************************************************************************/ + +/* WCL BEGIN */ +static const TA_InputParameterInfo *TA_WCLPRICE_Inputs[] = +{ + &TA_DEF_UI_Input_Price_HLC, + NULL +}; + +static const TA_OutputParameterInfo *TA_WCLPRICE_Outputs[] = +{ + &TA_DEF_UI_Output_Real, + NULL +}; + +static const TA_OptInputParameterInfo *TA_WCLPRICE_OptInputs[] = { NULL }; + +DEF_FUNCTION( WCLPRICE, /* name */ + TA_GroupId_PriceTransform, /* groupId */ + "Weighted Close Price", /* hint */ + "WclPrice", /* CamelCase name */ + TA_FUNC_FLG_OVERLAP /* flags */ + ); +/* WCL END */ + +/* WILLR BEGIN */ +static const TA_InputParameterInfo *TA_WILLR_Inputs[] = +{ + &TA_DEF_UI_Input_Price_HLC, + NULL +}; + +static const TA_OutputParameterInfo *TA_WILLR_Outputs[] = +{ + &TA_DEF_UI_Output_Real, + NULL +}; + +static const TA_OptInputParameterInfo *TA_WILLR_OptInputs[] = +{ &TA_DEF_UI_TimePeriod_14_MINIMUM2, + NULL +}; + +DEF_FUNCTION( WILLR, /* name */ + TA_GroupId_MomentumIndicators, /* groupId */ + "Williams' %R", /* hint */ + "WillR", /* CamelCase name */ + 0 /* flags */ + ); +/* WILLR END */ + +/* WMA BEGIN */ +static const TA_InputParameterInfo *TA_WMA_Inputs[] = +{ + &TA_DEF_UI_Input_Real, + NULL +}; + +static const TA_OutputParameterInfo *TA_WMA_Outputs[] = +{ + &TA_DEF_UI_Output_Real, + NULL +}; + +static const TA_OptInputParameterInfo *TA_WMA_OptInputs[] = +{ &TA_DEF_UI_TimePeriod_30_MINIMUM2, + NULL +}; + +DEF_FUNCTION( WMA, /* name */ + TA_GroupId_OverlapStudies, /* groupId */ + "Weighted Moving Average", /* hint */ + "Wma", /* CamelCase name */ + TA_FUNC_FLG_OVERLAP /* flags */ + ); + +/* WMA END */ + +/**************************************************************************** + * Step 2 - Add your TA function to the table. + * Keep in alphabetical order. Must be NULL terminated. + ****************************************************************************/ +const TA_FuncDef *TA_DEF_TableW[] = +{ + ADD_TO_TABLE(WCLPRICE), + ADD_TO_TABLE(WILLR), + ADD_TO_TABLE(WMA), + NULL +}; + + +/* Do not modify the following line. */ +const unsigned int TA_DEF_TableWSize = + ((sizeof(TA_DEF_TableW)/sizeof(TA_FuncDef *))-1); + + +/**************************************************************************** + * Step 3 - Make sure "gen_code" is executed for generating all other + * source files derived from this one. + * You can then re-compile the library as usual and you are done! + ****************************************************************************/ diff --git a/src/ta_abstract/tables/table_x.c b/src/ta_abstract/tables/table_x.c new file mode 100644 index 000000000..addb74d1a --- /dev/null +++ b/src/ta_abstract/tables/table_x.c @@ -0,0 +1,72 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/********************************************************************* + * This file contains only TA functions starting with the letter 'X' * + *********************************************************************/ +#include +#include "ta_abstract.h" +#include "ta_def_ui.h" + +/* Follow the 3 steps defined below for adding a new TA Function to this + * file. + */ + +/**************************************************************************** + * Step 1 - Define here the interface to your TA functions with + * the macro DEF_FUNCTION. + * + ****************************************************************************/ + +/* None */ + +/**************************************************************************** + * Step 2 - Add your TA function to the table. + * Keep in alphabetical order. Must be NULL terminated. + ****************************************************************************/ +const TA_FuncDef *TA_DEF_TableX[] = +{ + NULL +}; + + +/* Do not modify the following line. */ +const unsigned int TA_DEF_TableXSize = + ((sizeof(TA_DEF_TableX)/sizeof(TA_FuncDef *))-1); + + +/**************************************************************************** + * Step 3 - Make sure "gen_code" is executed for generating all other + * source files derived from this one. + * You can then re-compile the library as usual and you are done! + ****************************************************************************/ diff --git a/src/ta_abstract/tables/table_y.c b/src/ta_abstract/tables/table_y.c new file mode 100644 index 000000000..fe1679ad4 --- /dev/null +++ b/src/ta_abstract/tables/table_y.c @@ -0,0 +1,72 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/********************************************************************* + * This file contains only TA functions starting with the letter 'Y' * + *********************************************************************/ +#include +#include "ta_abstract.h" +#include "ta_def_ui.h" + +/* Follow the 3 steps defined below for adding a new TA Function to this + * file. + */ + +/**************************************************************************** + * Step 1 - Define here the interface to your TA functions with + * the macro DEF_FUNCTION. + * + ****************************************************************************/ + +/* None */ + +/**************************************************************************** + * Step 2 - Add your TA function to the table. + * Keep in alphabetical order. Must be NULL terminated. + ****************************************************************************/ +const TA_FuncDef *TA_DEF_TableY[] = +{ + NULL +}; + + +/* Do not modify the following line. */ +const unsigned int TA_DEF_TableYSize = + ((sizeof(TA_DEF_TableY)/sizeof(TA_FuncDef *))-1); + + +/**************************************************************************** + * Step 3 - Make sure "gen_code" is executed for generating all other + * source files derived from this one. + * You can then re-compile the library as usual and you are done! + ****************************************************************************/ diff --git a/src/ta_abstract/tables/table_z.c b/src/ta_abstract/tables/table_z.c new file mode 100644 index 000000000..de871a1f5 --- /dev/null +++ b/src/ta_abstract/tables/table_z.c @@ -0,0 +1,72 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/********************************************************************* + * This file contains only TA functions starting with the letter 'Z' * + *********************************************************************/ +#include +#include "ta_abstract.h" +#include "ta_def_ui.h" + +/* Follow the 3 steps defined below for adding a new TA Function to this + * file. + */ + +/**************************************************************************** + * Step 1 - Define here the interface to your TA functions with + * the macro DEF_FUNCTION. + * + ****************************************************************************/ + +/* None */ + +/**************************************************************************** + * Step 2 - Add your TA function to the table. + * Keep in alphabetical order. Must be NULL terminated. + ****************************************************************************/ +const TA_FuncDef *TA_DEF_TableZ[] = +{ + NULL +}; + + +/* Do not modify the following line. */ +const unsigned int TA_DEF_TableZSize = + ((sizeof(TA_DEF_TableZ)/sizeof(TA_FuncDef *))-1); + + +/**************************************************************************** + * Step 3 - Make sure "gen_code" is executed for generating all other + * source files derived from this one. + * You can then re-compile the library as usual and you are done! + ****************************************************************************/ diff --git a/src/ta_abstract/templates/CoreAnnotated.java.template b/src/ta_abstract/templates/CoreAnnotated.java.template new file mode 100644 index 000000000..c563be53a --- /dev/null +++ b/src/ta_abstract/templates/CoreAnnotated.java.template @@ -0,0 +1,69 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* DO NOT MODIFY this file. + * This file is automatically generated by gen_code. + * + * If you are not re-generating the java code (which is most + * likely the case), just ignore this file. + */ + +package com.tictactec.ta.lib; + +import com.tictactec.ta.lib.MAType; +import com.tictactec.ta.lib.MInteger; +import com.tictactec.ta.lib.RetCode; +import com.tictactec.ta.lib.Core; +import com.tictactec.ta.lib.meta.annotation.FuncFlags; +import com.tictactec.ta.lib.meta.annotation.FuncInfo; +import com.tictactec.ta.lib.meta.annotation.InputFlags; +import com.tictactec.ta.lib.meta.annotation.InputParameterInfo; +import com.tictactec.ta.lib.meta.annotation.InputParameterType; +import com.tictactec.ta.lib.meta.annotation.IntegerList; +import com.tictactec.ta.lib.meta.annotation.IntegerRange; +import com.tictactec.ta.lib.meta.annotation.OptInputParameterInfo; +import com.tictactec.ta.lib.meta.annotation.OptInputParameterType; +import com.tictactec.ta.lib.meta.annotation.OutputFlags; +import com.tictactec.ta.lib.meta.annotation.OutputParameterInfo; +import com.tictactec.ta.lib.meta.annotation.OutputParameterType; +import com.tictactec.ta.lib.meta.annotation.RealRange; + +public class CoreAnnotated extends Core { + +%%%GENCODE%%% + +} + +/*************** + * End of File * + ***************/ diff --git a/src/ta_abstract/templates/Makefile.am.template b/src/ta_abstract/templates/Makefile.am.template new file mode 100644 index 000000000..73de5e187 --- /dev/null +++ b/src/ta_abstract/templates/Makefile.am.template @@ -0,0 +1,13 @@ + +noinst_LTLIBRARIES = libta_func.la +AM_CPPFLAGS = -I../ta_common/ + +libta_func_la_SOURCES = ta_utility.c \ +%%%GENCODE%%% + +libta_func_la_LDFLAGS = -version-info $(TALIB_LIBRARY_VERSION) + +libta_funcdir=$(includedir)/ta-lib/ +libta_func_HEADERS = ../../include/ta_defs.h \ + ../../include/ta_libc.h \ + ../../include/ta_func.h diff --git a/src/ta_abstract/templates/excel_glue.c.template b/src/ta_abstract/templates/excel_glue.c.template new file mode 100644 index 000000000..b82f0c15c --- /dev/null +++ b/src/ta_abstract/templates/excel_glue.c.template @@ -0,0 +1,45 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* DO NOT MODIFY this file. + * This file is automatically generated by gen_code. + * + * If you are not re-building the excel library (which is most + * likely the case), just ignore this file. + */ + +%%%GENCODE%%% + +/*************** + * End of File * + ***************/ diff --git a/src/ta_abstract/templates/ta_frame.c.template b/src/ta_abstract/templates/ta_frame.c.template new file mode 100644 index 000000000..0c1dec33c --- /dev/null +++ b/src/ta_abstract/templates/ta_frame.c.template @@ -0,0 +1,63 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* Note: This file is generated by gencode, do not + * modify directly. + */ + +/* The function define in this file allows to have a consistent + * framework for calling all the TA function through + * the TA_CallFunc mechanism. + * + * See "ta_abstract.h" + */ + +#ifndef TA_FUNC_H + #include "ta_func.h" +#endif + +#ifndef TA_FRAME_PRIV_H + #include "ta_frame_priv.h" +#endif + +#ifndef TA_FRAME_H + #include "ta_frame.h" +#endif + +/* NEVER CALL directly these functions! Use TA_CallFunc. */ + +%%%GENCODE%%% + +/***************/ +/* End of File */ +/***************/ diff --git a/src/ta_abstract/templates/ta_frame.h.template b/src/ta_abstract/templates/ta_frame.h.template new file mode 100644 index 000000000..64ba7a0ae --- /dev/null +++ b/src/ta_abstract/templates/ta_frame.h.template @@ -0,0 +1,60 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +#ifndef TA_FRAME_H +#define TA_FRAME_H + +/* Note: This file is generated by gencode, do not + * modify directly. + */ + +/* The function define in this file allows to call a TA + * function through the TA_CallFunc mechanism. + */ + +#ifndef TA_COMMON_H + #include "ta_common.h" +#endif + +#ifndef TA_FRAME_PRIV_H + #include "ta_frame_priv.h" +#endif + + +%%%GENCODE%%% + +#endif + +/***************/ +/* End of File */ +/***************/ diff --git a/src/ta_abstract/templates/ta_func.h.template b/src/ta_abstract/templates/ta_func.h.template new file mode 100644 index 000000000..f93d09461 --- /dev/null +++ b/src/ta_abstract/templates/ta_func.h.template @@ -0,0 +1,66 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ +#ifndef TA_FUNC_H +#define TA_FUNC_H + +#ifndef TA_COMMON_H + #include "ta_common.h" +#endif + +/* This header contains the prototype of all the Technical Analysis + * function provided by TA-LIB. + */ + +/* TA-LIB Developer Note: Do not modify this file, it is automaticaly + * generated by gen_code. + */ +#ifdef __cplusplus +extern "C" { +#endif + +#ifndef TA_DEFS_H + #include "ta_defs.h" +#endif + +%%%GENCODE%%% + +#ifdef __cplusplus +} +#endif + +#endif + +/***************/ +/* End of File */ +/***************/ + diff --git a/src/ta_abstract/templates/ta_func.swg.template b/src/ta_abstract/templates/ta_func.swg.template new file mode 100644 index 000000000..3346210d5 --- /dev/null +++ b/src/ta_abstract/templates/ta_func.swg.template @@ -0,0 +1,45 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* DO NOT MODIFY this file. + * This file is automatically generated by gen_code. + * + * If you are not re-building an interface with SWIG (which is most + * likely the case), just ignore this file. + */ + +%%%GENCODE%%% + +/*************** + * End of File * + ***************/ diff --git a/src/ta_abstract/templates/ta_func_api.c.template b/src/ta_abstract/templates/ta_func_api.c.template new file mode 100644 index 000000000..689aefc26 --- /dev/null +++ b/src/ta_abstract/templates/ta_func_api.c.template @@ -0,0 +1,55 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* Important: This file is automatically generated by gen_code. + * Any modification will be lost on next execution + * of gen_code. + * + * This file is a binary representation of the func_api.xml file. + */ + +#include "ta_abstract.h" + +static const char TA_FunctionDescriptionXMLArray[] = +{ +%%%GENCODE%%% +}; + +const char *TA_FunctionDescriptionXML() +{ + return TA_FunctionDescriptionXMLArray; +} + +/***************/ +/* End of File */ +/***************/ diff --git a/src/ta_abstract/templates/ta_group_idx.c.template b/src/ta_abstract/templates/ta_group_idx.c.template new file mode 100644 index 000000000..cfaba0015 --- /dev/null +++ b/src/ta_abstract/templates/ta_group_idx.c.template @@ -0,0 +1,56 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* Important: This file is automatically generated by gen_code. + * Any modification will be lost on next execution + * of gen_code. + * + * The goal of this file is to build the following global + * constant: + * TA_PerGroupFuncDef + * TA_PerGroupSize + * TA_TotalNbFunction + * + * These constant allows mainly to speed optimize functionality related to + * sequential access to TA_DefFunc by TA_GroupId (see ta_abstract.c) + */ +#include +#include "ta_def_ui.h" +#include "ta_abstract.h" + +%%%GENCODE%%% + + +/***************/ +/* End of File */ +/***************/ diff --git a/src/ta_abstract/templates/ta_java_defs.h.template b/src/ta_abstract/templates/ta_java_defs.h.template new file mode 100644 index 000000000..b9cbdb6a7 --- /dev/null +++ b/src/ta_abstract/templates/ta_java_defs.h.template @@ -0,0 +1,45 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* DO NOT MODIFY this file. + * This file is automatically generated by gen_code. + * + * If you are not re-generating the java code (which is most + * likely the case), just ignore this file. + */ + +%%%GENCODE%%% + +/*************** + * End of File * + ***************/ diff --git a/src/ta_abstract/templates/ta_retcode.c.template b/src/ta_abstract/templates/ta_retcode.c.template new file mode 100644 index 000000000..5c2f507c8 --- /dev/null +++ b/src/ta_abstract/templates/ta_retcode.c.template @@ -0,0 +1,92 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* Important: This file is automatically generated by the utility gen_code. + * Any modification will be lost on next execution of gen_code. + * + * The goal of this file is to provide the functionality TA_SetRetCodeInfo. + * + * This function is a convenient way for the user to translate a TA_RetCode into + * a human readable string. + */ +#include + +typedef struct +{ + TA_RetCode retCode; + const char * const enumStr; + const char * const infoStr; +} TA_InternalRetCodeInfo; + +static TA_InternalRetCodeInfo retCodeInfoTable[] = { +%%%GENCODE%%% + {(TA_RetCode)0xFFFF,"TA_UNKNOWN_ERR","Unknown Error"} +}; + +#define NB_RET_CODE_INFO (sizeof(retCodeInfoTable)/sizeof(TA_InternalRetCodeInfo)) + +void TA_SetRetCodeInfo( TA_RetCode theRetCode, TA_RetCodeInfo *retCodeInfo ) +{ + unsigned int i; + + /* Trap internal error code */ + if( (theRetCode >= 5000) && (theRetCode <= 5999) ) + { + retCodeInfo->enumStr = "TA_INTERNAL_ERROR"; + retCodeInfo->infoStr = "Unexpected Internal Error - Contact TA-Lib.org"; + return; + } + + /* Check among all the error code defined in ta_common.h */ + for( i=0; i < (NB_RET_CODE_INFO-1); i++ ) + { + if( theRetCode == retCodeInfoTable[i].retCode ) + { + /* Error code found. */ + retCodeInfo->enumStr = retCodeInfoTable[i].enumStr; + retCodeInfo->infoStr = retCodeInfoTable[i].infoStr; + return; + } + } + + /* Error code not found. */ + + /* "TA_UNKNOWN_ERR" is ALWAYS the last entry in the table. */ + retCodeInfo->enumStr = retCodeInfoTable[i].enumStr; + retCodeInfo->infoStr = retCodeInfoTable[i].infoStr; +} + +/***************/ +/* End of File */ +/***************/ + diff --git a/src/ta_abstract/templates/ta_x.c.template b/src/ta_abstract/templates/ta_x.c.template new file mode 100644 index 000000000..5b227f168 --- /dev/null +++ b/src/ta_abstract/templates/ta_x.c.template @@ -0,0 +1,84 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * MF Mario Fortier (Replace when you are the original author) + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * XXXXXX MF Initial Version + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +%%%GENCODE%%% +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +%%%GENCODE%%% +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + + return 0; +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +%%%GENCODE%%% +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +%%%GENCODE%%% +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Insert TA function code here. */ + + /* Default return values */ + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNbElement); + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +%%%GENCODE%%% +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_common/Makefile.am b/src/ta_common/Makefile.am new file mode 100644 index 000000000..945449020 --- /dev/null +++ b/src/ta_common/Makefile.am @@ -0,0 +1,15 @@ + +noinst_LTLIBRARIES = libta_common.la +AM_CPPFLAGS = -I../ta_common/ + +libta_common_la_SOURCES = ta_global.c \ + ta_retcode.c \ + ta_version.c + +libta_common_la_LDFLAGS = -version-info $(TALIB_LIBRARY_VERSION) + +libta_commondir=$(includedir)/ta-lib/ +libta_common_HEADERS = ../../include/ta_defs.h \ + ../../include/ta_libc.h \ + ../../include/ta_common.h + diff --git a/src/ta_common/ta_global.c b/src/ta_common/ta_global.c new file mode 100644 index 000000000..33ff85f14 --- /dev/null +++ b/src/ta_common/ta_global.c @@ -0,0 +1,178 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * MF Mario Fortier + * AC Angelo Ciceri + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 112400 MF First version. + * 082004 AC Add TA_SetCandleSettings, TA_RestoreCandleDefaultSettings + * and call to TA_RestoreCandleDefaultSettings in TA_Initialize + * 041106 MF Add prefix to theGlobals to avoid clash with other libs. + * 040707 MF Change global initialization to eliminate Mac OS X link error. + */ + +/* Description: + * Provides initialization / shutdown functionality for all modules. + */ + +/**** Headers ****/ +#include +#include +#include + +#include "ta_common.h" +#include "ta_magic_nb.h" +#include "ta_global.h" +#include "ta_func.h" + +/**** External functions declarations. ****/ +/* None */ + +/**** External variables declarations. ****/ +/* None */ + +/**** Global variables definitions. ****/ + +/* The entry point for all globals */ +TA_LibcPriv ta_theGlobals = {0,{{0,0,0}},0,0,0,0,(TA_Compatibility)0,{0},{{(TA_CandleSettingType)0,(TA_RangeType)0,0,0}}}; + +TA_LibcPriv *TA_Globals = &ta_theGlobals; + +/**** Local declarations. ****/ +/* None */ + +/**** Local functions declarations. ****/ +/* None */ + +/**** Local variables definitions. ****/ +/* None */ + +/**** Global functions definitions. ****/ +TA_RetCode TA_Initialize( void ) +{ + /* Initialize the "global variable" used to manage the global + * variables of all other modules... + */ + memset( TA_Globals, 0, sizeof( TA_LibcPriv ) ); + TA_Globals->magicNb = TA_LIBC_PRIV_MAGIC_NB; + + /*** At this point, TA_Shutdown can be called to clean-up. ***/ + + /* Set the default value to global variables */ + TA_RestoreCandleDefaultSettings( TA_AllCandleSettings ); + + return TA_SUCCESS; +} + +TA_RetCode TA_Shutdown( void ) +{ + if( TA_Globals->magicNb != TA_LIBC_PRIV_MAGIC_NB ) + return TA_LIB_NOT_INITIALIZE; + + /* Initialize to all zero to make sure we invalidate that object. */ + memset( TA_Globals, 0, sizeof( TA_LibcPriv ) ); + + return TA_SUCCESS; +} + +TA_RetCode TA_SetCandleSettings( TA_CandleSettingType settingType, + TA_RangeType rangeType, + int avgPeriod, + double factor ) +{ + /*printf("setcdlset:%d ",settingType);*/ + if( settingType >= TA_AllCandleSettings ) + return TA_BAD_PARAM; + TA_Globals->candleSettings[settingType].settingType = settingType; + TA_Globals->candleSettings[settingType].rangeType = rangeType; + TA_Globals->candleSettings[settingType].avgPeriod = avgPeriod; + TA_Globals->candleSettings[settingType].factor = factor; + /*printf("cdlset: %d %d %d %f\n",TA_Globals->candleSettings[settingType].settingType,TA_Globals->candleSettings[settingType].rangeType, + TA_Globals->candleSettings[settingType].avgPeriod,TA_Globals->candleSettings[settingType].factor);*/ + return TA_SUCCESS; +} + +TA_RetCode TA_RestoreCandleDefaultSettings( TA_CandleSettingType settingType ) +{ + const TA_CandleSetting TA_CandleDefaultSettings[] = { + /* real body is long when it's longer than the average of the 10 previous candles' real body */ + { TA_BodyLong, TA_RangeType_RealBody, 10, 1.0 }, + /* real body is very long when it's longer than 3 times the average of the 10 previous candles' real body */ + { TA_BodyVeryLong, TA_RangeType_RealBody, 10, 3.0 }, + /* real body is short when it's shorter than the average of the 10 previous candles' real bodies */ + { TA_BodyShort, TA_RangeType_RealBody, 10, 1.0 }, + /* real body is like doji's body when it's shorter than 10% the average of the 10 previous candles' high-low range */ + { TA_BodyDoji, TA_RangeType_HighLow, 10, 0.1 }, + /* shadow is long when it's longer than the real body */ + { TA_ShadowLong, TA_RangeType_RealBody, 0, 1.0 }, + /* shadow is very long when it's longer than 2 times the real body */ + { TA_ShadowVeryLong, TA_RangeType_RealBody, 0, 2.0 }, + /* shadow is short when it's shorter than half the average of the 10 previous candles' sum of shadows */ + { TA_ShadowShort, TA_RangeType_Shadows, 10, 1.0 }, + /* shadow is very short when it's shorter than 10% the average of the 10 previous candles' high-low range */ + { TA_ShadowVeryShort, TA_RangeType_HighLow, 10, 0.1 }, + /* when measuring distance between parts of candles or width of gaps */ + /* "near" means "<= 20% of the average of the 5 previous candles' high-low range" */ + { TA_Near, TA_RangeType_HighLow, 5, 0.2 }, + /* when measuring distance between parts of candles or width of gaps */ + /* "far" means ">= 60% of the average of the 5 previous candles' high-low range" */ + { TA_Far, TA_RangeType_HighLow, 5, 0.6 }, + /* when measuring distance between parts of candles or width of gaps */ + /* "equal" means "<= 5% of the average of the 5 previous candles' high-low range" */ + { TA_Equal, TA_RangeType_HighLow, 5, 0.05 } + }; + + int i; + if( settingType > TA_AllCandleSettings ) + return TA_BAD_PARAM; + if( settingType == TA_AllCandleSettings ) + for( i = 0; i < TA_AllCandleSettings; ++i ) + TA_Globals->candleSettings[i] = TA_CandleDefaultSettings[i]; + else + TA_Globals->candleSettings[settingType] = TA_CandleDefaultSettings[settingType]; + return TA_SUCCESS; +} + +/**** Local functions definitions. ****/ +/* None */ + + diff --git a/src/ta_common/ta_global.h b/src/ta_common/ta_global.h new file mode 100644 index 000000000..3cdfcf653 --- /dev/null +++ b/src/ta_common/ta_global.h @@ -0,0 +1,119 @@ +#ifndef TA_GLOBAL_H +#define TA_GLOBAL_H + +#ifndef TA_COMMON_H + #include "ta_common.h" +#endif + +#ifndef TA_FUNC_H + #include "ta_func.h" +#endif + +/* TA_CandleSetting is the one setting struct */ +typedef struct { + TA_CandleSettingType settingType; + TA_RangeType rangeType; + int avgPeriod; + double factor; +} TA_CandleSetting; + +/* This interface is used exclusively INTERNALY to the TA-LIB. + * There is nothing for the end-user here ;-> + */ + +/* Provides functionality for managing global ressource + * throughout the TA-LIB. + * + * Since not all module are used/link in the application, + * the ta_common simply provides the mechanism for the module + * to optionnaly "register" its initialization/shutdown + * function. + * + * A function shall access its global variable by calling + * TA_GetGlobal. This function will appropriatly call the + * initialization function if its global are not yet initialized. + * + * The call of the init and shutdown function are guaranteed + * to be multithread protected. It is also guarantee that + * these function will always get called in alternance (in + * other word, following an initialization only a shutdown + * can get called). + */ + +typedef enum +{ + /* Module will be shutdown in the order specified here. */ + + TA_ABSTRACTION_GLOBAL_ID, + TA_FUNC_GLOBAL_ID, + TA_MEMORY_GLOBAL_ID, /* Must be last. */ + TA_NB_GLOBAL_ID +} TA_GlobalModuleId; + +typedef TA_RetCode (*TA_GlobalInitFunc) ( void **globalToAlloc ); +typedef TA_RetCode (*TA_GlobalShutdownFunc)( void *globalAllocated ); + +typedef struct +{ + const TA_GlobalModuleId id; + const TA_GlobalInitFunc init; + const TA_GlobalShutdownFunc shutdown; +} TA_GlobalControl; + +TA_RetCode TA_GetGlobal( const TA_GlobalControl * const control, + void **global ); + +/* Occasionaly, code tracing must be disable. + * Example: + * - The memory module needs to know if the tracing is + * still enabled or not when freeing memory on shutdown. + * - We do not want to recursively trace while the tracing + * function themselves gets called ;-> + */ +int TA_IsTraceEnabled( void ); +void TA_TraceEnable ( void ); +void TA_TraceDisable ( void ); + +/* If enabled by the user, use a local drive + * for configuration and/or temporary file. + * TA-LIB must NEVER assume such local drive + * is available. + */ +const char *TA_GetLocalCachePath( void ); + +typedef struct +{ + unsigned int initialize; + const TA_GlobalControl * control; + void *global; +} TA_ModuleControl; + +/* This is the hidden implementation of TA_Libc. */ +typedef struct +{ + unsigned int magicNb; /* Unique identifier of this object. */ + TA_ModuleControl moduleControl[TA_NB_GLOBAL_ID]; + + unsigned int traceEnabled; + unsigned int stdioEnabled; + FILE *stdioFile; + + const char *localCachePath; + + /* For handling the compatibility with other software */ + TA_Compatibility compatibility; + + /* For handling the unstable period of some TA function. */ + unsigned int unstablePeriod[TA_FUNC_UNST_ALL]; + + /* For handling the candlestick global settings */ + TA_CandleSetting candleSettings[TA_AllCandleSettings]; + +} TA_LibcPriv; + +/* The following global is used all over the place + * and is the entry point for all other globals. + */ +extern TA_LibcPriv *TA_Globals; + +#endif diff --git a/src/ta_common/ta_magic_nb.h b/src/ta_common/ta_magic_nb.h new file mode 100644 index 000000000..72ac109f4 --- /dev/null +++ b/src/ta_common/ta_magic_nb.h @@ -0,0 +1,31 @@ +#ifndef TA_MAGIC_NB_H +#define TA_MAGIC_NB_H + +/* Many allocated structures contains a magic number. + * + * These numbers are used solely to make sure that when a pointer is + * provided, it is really pointing on the expected type of data. + * It helps also for the detection of memory corruption. + * This mechanism is simple, but add a non-negligeable level of + * reliability at a very low cost (speed/memory wise). + */ +#define TA_FUNC_DEF_MAGIC_NB 0xA201B201 +#define TA_PARAM_HOLDER_PRIV_MAGIC_NB 0xA202B202 +#define TA_LIBC_PRIV_MAGIC_NB 0xA203B203 +#define TA_UDBASE_MAGIC_NB 0xA204B204 +#define TA_CATEGORY_TABLE_MAGIC_NB 0xA205B205 +#define TA_SYMBOL_TABLE_MAGIC_NB 0xA206B206 +#define TA_WEBPAGE_MAGIC_NB 0xA207B207 +#define TA_STREAM_MAGIC_NB 0xA208B208 +#define TA_STREAM_ACCESS_MAGIC_NB 0xA209B209 +#define TA_YAHOO_IDX_MAGIC_NB 0xA20AB20A +#define TA_STRING_TABLE_GROUP_MAGIC_NB 0xA20BB20B +#define TA_STRING_TABLE_FUNC_MAGIC_NB 0xA20CB20C +#define TA_MARKET_PAGE_MAGIC_NB 0xA20DB20D +#define TA_TRADELOGPRIV_MAGIC_NB 0xA20EB20E +#define TA_PMPRIV_MAGIC_NB 0xA20FB20F +#define TA_PMREPORT_MAGIC_NB 0xA210B210 +#define TA_TRADEREPORT_MAGIC_NB 0xA211B211 +#define TA_HISTORY_MAGIC_NB 0xA212B212 + +#endif diff --git a/src/ta_common/ta_memory.h b/src/ta_common/ta_memory.h new file mode 100644 index 000000000..b2a74bc83 --- /dev/null +++ b/src/ta_common/ta_memory.h @@ -0,0 +1,341 @@ +#ifndef TA_MEMORY_H +#define TA_MEMORY_H + +#if !defined( _MANAGED ) && !defined( _JAVA ) + #ifndef TA_COMMON_H + #include "ta_common.h" + #endif + + #include + + /* Interface macros */ + #define TA_Malloc(a) malloc(a) + #define TA_Realloc(a,b) realloc((a),(b)) + #define TA_Free(a) free(a) + + #define FREE_IF_NOT_NULL(x) { if((x)!=NULL) {TA_Free((void *)(x)); (x)=NULL;} } + +#endif /* !defined(_MANAGED) && !defined( _JAVA ) */ + + +/* ARRAY : Macros to manipulate arrays of value type. + * + * Using temporary array of double and integer are often needed for the + * TA functions. + * + * These macros allow basic operations to alloc/copy/free array of value type. + * + * These macros works in plain old C/C++, managed C++.and Java. + * + * (Use ARRAY_REF and ARRAY_INT_REF for double/integer arrays). + */ +#if defined( _MANAGED ) + #define ARRAY_VTYPE_REF(type,name) cli::array^ name + #define ARRAY_VTYPE_LOCAL(type,name,size) cli::array^ name = gcnew cli::array(size) + #define ARRAY_VTYPE_ALLOC(type,name,size) name = gcnew cli::array(size) + #define ARRAY_VTYPE_COPY(type,dest,src,size) cli::array::Copy( src, 0, dest, 0, size ) + #define ARRAY_VTYPE_MEMMOVE(type,dest,destIdx,src,srcIdx,size) cli::array::Copy( src, srcIdx, dest, destIdx, size ) + #define ARRAY_VTYPE_FREE(type,name) + #define ARRAY_VTYPE_FREE_COND(type,cond,name) +#elif defined( _JAVA ) + #define ARRAY_VTYPE_REF(type,name) type []name + #define ARRAY_VTYPE_LOCAL(type,name,size) type []name = new type[size] + #define ARRAY_VTYPE_ALLOC(type,name,size) name = new type[size] + #define ARRAY_VTYPE_COPY(type,dest,src,size) System.arraycopy(src,0,dest,0,size) + #define ARRAY_VTYPE_MEMMOVE(type,dest,destIdx,src,srcIdx,size) System.arraycopy(src,srcIdx,dest,destIdx,size) + #define ARRAY_VTYPE_FREE(type,name) + #define ARRAY_VTYPE_FREE_COND(type,cond,name) +#else + #define ARRAY_VTYPE_REF(type,name) type *name + #define ARRAY_VTYPE_LOCAL(type,name,size) type name[size] + #define ARRAY_VTYPE_ALLOC(type,name,size) name = (type *)TA_Malloc( sizeof(type)*(size)) + #define ARRAY_VTYPE_COPY(type,dest,src,size) memcpy(dest,src,sizeof(type)*(size)) + #define ARRAY_VTYPE_MEMMOVE(type,dest,destIdx,src,srcIdx,size) memmove( &dest[destIdx], &src[srcIdx], (size)*sizeof(type) ) + #define ARRAY_VTYPE_FREE(type,name) TA_Free(name) + #define ARRAY_VTYPE_FREE_COND(type,cond,name) if( cond ){ TA_Free(name); } +#endif + +/* ARRAY : Macros to manipulate arrays of double. */ +#define ARRAY_REF(name) ARRAY_VTYPE_REF(double,name) +#define ARRAY_LOCAL(name,size) ARRAY_VTYPE_LOCAL(double,name,size) +#define ARRAY_ALLOC(name,size) ARRAY_VTYPE_ALLOC(double,name,size) +#define ARRAY_COPY(dest,src,size) ARRAY_VTYPE_COPY(double,dest,src,size) +#define ARRAY_MEMMOVE(dest,destIdx,src,srcIdx,size) ARRAY_VTYPE_MEMMOVE(double,dest,destIdx,src,srcIdx,size) +#define ARRAY_FREE(name) ARRAY_VTYPE_FREE(double,name) +#define ARRAY_FREE_COND(cond,name) ARRAY_VTYPE_FREE_COND(double,cond,name) + +/* ARRAY : Macros to manipulate arrays of integer. */ +#define ARRAY_INT_REF(name) ARRAY_VTYPE_REF(int,name) +#define ARRAY_INT_LOCAL(name,size) ARRAY_VTYPE_LOCAL(int,name,size) +#define ARRAY_INT_ALLOC(name,size) ARRAY_VTYPE_ALLOC(int,name,size) +#define ARRAY_INT_COPY(dest,src,size) ARRAY_VTYPE_COPY(int,dest,src,size) +#define ARRAY_INT_MEMMOVE(dest,destIdx,src,srcIdx,size) ARRAY_VTYPE_MEMMOVE(int,dest,destIdx,src,srcIdx,size) +#define ARRAY_INT_FREE(name) ARRAY_VTYPE_FREE(int,name) +#define ARRAY_INT_FREE_COND(cond,name) ARRAY_VTYPE_FREE_COND(int,cond,name) + +/* Access to "Globals" + * + * The globals here just means that these variables are accessible from + * all technical analysis functions. + * + * Depending of the language/platform, the globals might be in reality + * a private member variable of an object... + */ +#if defined( _MANAGED ) + #define TA_GLOBALS_UNSTABLE_PERIOD(x,y) (Globals->unstablePeriod[(int)(FuncUnstId::y)]) + #define TA_GLOBALS_COMPATIBILITY (Globals->compatibility) +#elif defined( _JAVA ) + #define TA_GLOBALS_UNSTABLE_PERIOD(x,y) (this.unstablePeriod[FuncUnstId.y.ordinal()]) + #define TA_GLOBALS_COMPATIBILITY (this.compatibility) +#else + #define TA_GLOBALS_UNSTABLE_PERIOD(x,y) (TA_Globals->unstablePeriod[x]) + #define TA_GLOBALS_COMPATIBILITY (TA_Globals->compatibility) +#endif + + + +/* CIRCBUF : Circular Buffer Macros. + * + * The CIRCBUF is like a FIFO buffer (First In - First Out), except + * that the rate of data coming out is the same as the rate of + * data coming in (for simplification and speed optimization). + * In other word, when you add one new value, you must also consume + * one value (if not consume, the value is lost). + * + * The CIRCBUF size is unlimited, so it will automatically allocate and + * de-allocate memory as needed. In C/C++. when small enough, CIRCBUF will + * instead use a buffer "allocated" on the stack (automatic variable). + * + * Multiple CIRCBUF can be used within the same function. To make that + * possible the first parameter of the MACRO is an "Id" that can be + * any string. + * + * The macros offer the advantage to work in C/C++ and managed C++. + * + * CIRCBUF_PROLOG(Id,Type,Size); + * Will declare all the needed variables. 2 variables are + * important: + * 1) 'Id' will be a ptr of the specified Type. + * 2) 'Id'_Idx indicates from where to consume and + * to add the data. + * + * Important: You must consume the oldest data before + * setting the new data! + * + * The Size must be reasonable since it might "allocate" + * an array of this size on the stack (each element are 'Type'). + * + * CIRCBUF_CONSTRUCT(Id,Type,Size); + * Must be called prior to use the remaining macros. Must be + * followed by CIRCBUF_DESTROY when leaving the function. + * The Size here can be large. If the static Size specified + * with CIRCBUF_PROLOG is not sufficient, this MACRO will + * allocate a new buffer from the Heap. + * + * CIRCBUF_DESTROY(Id,Size); + * Must be call prior to leave the function. + * + * CIRCBUF_NEXT(Id); + * Move forward the indexes. + * + * Example: + * TA_RetCode MyFunc( int size ) + * { + * CIRCBUF_PROLOG(MyBuf,int,4); + * int i, value; + * ... + * CIRCBUF_CONSTRUCT(MyBuf,int,size); + * ... + * // 1st Loop: Fill MyBuf with initial values + * // (must be done). + * value = 0; + * for( i=0; i < size; i++ ) + * { + * // Set the data + * MyBuf[MyBuf_Idx] = value++; + * CIRCBUF_NEXT(MyBuf); + * } + * + * // 2nd Loop: Get and Add subsequent values + * // in MyBuf (optional) + * for( i=0; i < 3; i++ ) + * { + * // Consume the data (must be done first) + * printf( "%d ", MyBuf[MyBuf_Idx] ); + * + * // Set the new data (must be done second) + * MyBuf[MyBuf_Idx] = value++; + * + * // Move the index forward + * CIRCBUF_NEXT(MyBuf); + * } + * + * // 3rd Loop: Empty MyBuf (optional) + * for( i=0; i < size; i++ ) + * { + * printf( "%d ", MyBuf[MyBuf_Idx] ); + * CIRCBUF_NEXT(MyBuf); + * } + * + * CIRCBUF_DESTROY(MyBuf); + * return TA_SUCCESS; + * } + * + * + * A call to MyFunc(5) will output: + * 0 1 2 3 4 5 6 7 + * + * The value 0 to 4 are added by the 1st loop. + * The value 5 to 7 are added by the 2nd loop. + * + * The value 0 to 2 are displayed by the 2nd loop. + * The value 3 to 7 are displayed by the 3rd loop. + * + * Because the size 5 is greater than the + * value provided in CIRCBUF_PROLOG, a buffer will + * be dynamically allocated (and freed). + */ +#if defined( _MANAGED ) + +#define CIRCBUF_PROLOG(Id,Type,Size) int Id##_Idx = 0; \ + cli::array^ Id; \ + int maxIdx_##Id = (Size-1) + +/* Use this macro instead if the Type is a class or a struct. */ +#define CIRCBUF_PROLOG_CLASS(Id,Type,Size) int Id##_Idx = 0; \ + cli::array^ Id; \ + int maxIdx_##Id = (Size-1) + +#define CIRCBUF_INIT(Id,Type,Size) \ + { \ + if( Size <= 0 ) \ + return ENUM_VALUE(RetCode,TA_ALLOC_ERR,AllocErr); \ + Id = gcnew cli::array(Size); \ + if( !Id ) \ + return ENUM_VALUE(RetCode,TA_ALLOC_ERR,AllocErr); \ + maxIdx_##Id = (Size-1); \ + } + +#define CIRCBUF_INIT_CLASS(Id,Type,Size) \ + { \ + if( Size <= 0 ) \ + return ENUM_VALUE(RetCode,TA_ALLOC_ERR,AllocErr); \ + Id = gcnew cli::array(Size); \ + for( int _##Id##_index=0; _##Id##_indexLength; _##Id##_index++) \ + { \ + Id[_##Id##_index]=gcnew Type(); \ + } \ + if( !Id ) \ + return ENUM_VALUE(RetCode,TA_ALLOC_ERR,AllocErr); \ + maxIdx_##Id = (Size-1); \ + } + +#define CIRCBUF_INIT_LOCAL_ONLY(Id,Type) \ + { \ + Id = gcnew cli::array(maxIdx_##Id+1); \ + if( !Id ) \ + return ENUM_VALUE(RetCode,TA_ALLOC_ERR,AllocErr); \ + } + +#define CIRCBUF_DESTROY(Id) + +/* Use this macro to access the member when type is a class or a struct. */ +#define CIRCBUF_REF(x) (x)-> + +#elif defined(_JAVA) + +#define CIRCBUF_PROLOG(Id,Type,Size) int Id##_Idx = 0; \ + Type []Id; \ + int maxIdx_##Id = (Size-1) + +/* Use this macro instead if the Type is a class or a struct. */ +#define CIRCBUF_PROLOG_CLASS(Id,Type,Size) int Id##_Idx = 0; \ + Type []Id; \ + int maxIdx_##Id = (Size-1) + +#define CIRCBUF_INIT(Id,Type,Size) \ + { \ + if( Size <= 0 ) \ + return ENUM_VALUE(RetCode,TA_ALLOC_ERR,AllocErr); \ + Id = new Type[Size]; \ + maxIdx_##Id = (Size-1); \ + } + +#define CIRCBUF_INIT_CLASS(Id,Type,Size) \ + { \ + if( Size <= 0 ) \ + return ENUM_VALUE(RetCode,TA_ALLOC_ERR,AllocErr); \ + Id = new Type[Size]; \ + for( int _##Id##_index=0; _##Id##_index (int)(sizeof(local_##Id)/sizeof(Type)) ) \ + { \ + Id = TA_Malloc( sizeof(Type)*Size ); \ + if( !Id ) \ + return TA_ALLOC_ERR; \ + } \ + else \ + Id = &local_##Id[0]; \ + maxIdx_##Id = (Size-1); \ + Id##_Idx = 0; \ + } + +#define CIRCBUF_INIT_CLASS(Id,Type,Size) CIRCBUF_INIT(Id,Type,Size) + +#define CIRCBUF_INIT_LOCAL_ONLY(Id,Type) \ + { \ + Id = &local_##Id[0]; \ + maxIdx_##Id = (int)(sizeof(local_##Id)/sizeof(Type))-1; \ + Id##_Idx = 0; \ + } + +#define CIRCBUF_DESTROY(Id) \ + { \ + if( Id != &local_##Id[0] ) \ + TA_Free( Id ); \ + } + +/* Use this macro to access the member when Type is a class or a struct. */ +#define CIRCBUF_REF(x) (x). + +#endif + +#define CIRCBUF_NEXT(Id) \ + { \ + Id##_Idx++; \ + if( Id##_Idx > maxIdx_##Id ) \ + Id##_Idx = 0; \ + } + + +#endif + diff --git a/src/ta_common/ta_pragma.h b/src/ta_common/ta_pragma.h new file mode 100644 index 000000000..6d006db54 --- /dev/null +++ b/src/ta_common/ta_pragma.h @@ -0,0 +1,87 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * CM Craig Miller (c-miller@users.sourceforge.net) + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 011707 CM First version. + */ + +/* Description: + * + * Visual Studio 2005 has extended the C Run-Time Library by including "secure" + * runtime functions and deprecating the previous function prototypes. Since + * we need to use the previous prototypes to maintain compatibility with other + * platform compilers we are going to disable the deprecation warnings when + * compiling with Visual Studio 2005. + * + * Note: this header must be the first inclusion referenced by the code file + * needing these settings!!!!! + * + */ + +#ifndef TA_PRAGMA_H +#define TA_PRAGMA_H + +#if (_MSC_VER >= 1400) // VC8+ nmake and VS2005 + + #ifndef _CRT_SECURE_NO_DEPRECATE //turn off MS 'safe' CRT library routines + #define _CRT_SECURE_NO_DEPRECATE 1 + #endif + +// There are additional macros that may be needed in the future, so we'll list them here + //#ifndef _CRT_SECURE_NO_WARNINGS //turn off MS 'safe' CRT library routines + // #define _CRT_SECURE_NO_WARNINGS 1 + //#endif + // + //#ifndef _SCL_SECURE_NO_DEPRECATE //turn off MS 'safe' C++RT library routines + // #define _SCL_SECURE_NO_DEPRECATE 1 + //#endif + //#ifndef _SCL_SECURE_NO_WARNINGS + // #define _SCL_SECURE_NO_WARNINGS 1 + //#endif + // + //#ifndef _CRT_NONSTDC_NO_DEPRECATE //turn off MS POSIX replacements library routines + // #define _CRT_NONSTDC_NO_DEPRECATE 1 + //#endif + +#endif // VC8+ + +#endif //TA_PRAGMA_H diff --git a/src/ta_common/ta_retcode.c b/src/ta_common/ta_retcode.c new file mode 100644 index 000000000..674dc6d7e --- /dev/null +++ b/src/ta_common/ta_retcode.c @@ -0,0 +1,109 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* Important: This file is automatically generated by the utility gen_code. + * Any modification will be lost on next execution of gen_code. + * + * The goal of this file is to provide the functionality TA_SetRetCodeInfo. + * + * This function is a convenient way for the user to translate a TA_RetCode into + * a human readable string. + */ +#include + +typedef struct +{ + TA_RetCode retCode; + const char * const enumStr; + const char * const infoStr; +} TA_InternalRetCodeInfo; + +static TA_InternalRetCodeInfo retCodeInfoTable[] = { + {(TA_RetCode)0,"TA_SUCCESS","No error"}, + {(TA_RetCode)1,"TA_LIB_NOT_INITIALIZE","TA_Initialize was not sucessfully called"}, + {(TA_RetCode)2,"TA_BAD_PARAM","A parameter is out of range"}, + {(TA_RetCode)3,"TA_ALLOC_ERR","Possibly out-of-memory"}, + {(TA_RetCode)4,"TA_GROUP_NOT_FOUND","No Info"}, + {(TA_RetCode)5,"TA_FUNC_NOT_FOUND","No Info"}, + {(TA_RetCode)6,"TA_INVALID_HANDLE","No Info"}, + {(TA_RetCode)7,"TA_INVALID_PARAM_HOLDER","No Info"}, + {(TA_RetCode)8,"TA_INVALID_PARAM_HOLDER_TYPE","No Info"}, + {(TA_RetCode)9,"TA_INVALID_PARAM_FUNCTION","No Info"}, + {(TA_RetCode)10,"TA_INPUT_NOT_ALL_INITIALIZE","No Info"}, + {(TA_RetCode)11,"TA_OUTPUT_NOT_ALL_INITIALIZE","No Info"}, + {(TA_RetCode)12,"TA_OUT_OF_RANGE_START_INDEX","No Info"}, + {(TA_RetCode)13,"TA_OUT_OF_RANGE_END_INDEX","No Info"}, + {(TA_RetCode)14,"TA_INVALID_LIST_TYPE","No Info"}, + {(TA_RetCode)15,"TA_BAD_OBJECT","No Info"}, + {(TA_RetCode)16,"TA_NOT_SUPPORTED","No Info"}, + {(TA_RetCode)5000,"TA_INTERNAL_ERROR","No Info"}, + {(TA_RetCode)0xFFFF,"TA_UNKNOWN_ERR","Unknown Error"} +}; + +#define NB_RET_CODE_INFO (sizeof(retCodeInfoTable)/sizeof(TA_InternalRetCodeInfo)) + +void TA_SetRetCodeInfo( TA_RetCode theRetCode, TA_RetCodeInfo *retCodeInfo ) +{ + unsigned int i; + + /* Trap internal error code */ + if( (theRetCode >= 5000) && (theRetCode <= 5999) ) + { + retCodeInfo->enumStr = "TA_INTERNAL_ERROR"; + retCodeInfo->infoStr = "Unexpected Internal Error - Contact TA-Lib.org"; + return; + } + + /* Check among all the error code defined in ta_common.h */ + for( i=0; i < (NB_RET_CODE_INFO-1); i++ ) + { + if( theRetCode == retCodeInfoTable[i].retCode ) + { + /* Error code found. */ + retCodeInfo->enumStr = retCodeInfoTable[i].enumStr; + retCodeInfo->infoStr = retCodeInfoTable[i].infoStr; + return; + } + } + + /* Error code not found. */ + + /* "TA_UNKNOWN_ERR" is ALWAYS the last entry in the table. */ + retCodeInfo->enumStr = retCodeInfoTable[i].enumStr; + retCodeInfo->infoStr = retCodeInfoTable[i].infoStr; +} + +/***************/ +/* End of File */ +/***************/ + diff --git a/src/ta_common/ta_retcode.csv b/src/ta_common/ta_retcode.csv new file mode 100644 index 000000000..ea3bd7026 --- /dev/null +++ b/src/ta_common/ta_retcode.csv @@ -0,0 +1,18 @@ +0,TA_SUCCESS,No error +1,TA_LIB_NOT_INITIALIZE,TA_Initialize was not sucessfully called +2,TA_BAD_PARAM,A parameter is out of range +3,TA_ALLOC_ERR,Possibly out-of-memory +4,TA_GROUP_NOT_FOUND,No Info +5,TA_FUNC_NOT_FOUND,No Info +6,TA_INVALID_HANDLE,No Info +7,TA_INVALID_PARAM_HOLDER,No Info +8,TA_INVALID_PARAM_HOLDER_TYPE,No Info +9,TA_INVALID_PARAM_FUNCTION,No Info +10,TA_INPUT_NOT_ALL_INITIALIZE,No Info +11,TA_OUTPUT_NOT_ALL_INITIALIZE,No Info +12,TA_OUT_OF_RANGE_START_INDEX,No Info +13,TA_OUT_OF_RANGE_END_INDEX,No Info +14,TA_INVALID_LIST_TYPE,No Info +15,TA_BAD_OBJECT,No Info +16,TA_NOT_SUPPORTED,No Info +5000,TA_INTERNAL_ERROR,No Info diff --git a/src/ta_common/ta_version.c b/src/ta_common/ta_version.c new file mode 100644 index 000000000..0df9dfdd2 --- /dev/null +++ b/src/ta_common/ta_version.c @@ -0,0 +1,77 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +#include +#include + +/* Version number controlled manually. + * + * Should be modified only by TA-Lib.org + */ +#define MAJOR "0" +#define MINOR "4" +#define BUILD "0" + +/* Nothing to modify below this line. */ + +#define TA_VERSION_STRING(maj,min,build,date,time) maj"."min"."build" ("date" "time")" + +const char *TA_GetVersionString( void ) +{ + return TA_VERSION_STRING(MAJOR,MINOR,BUILD,__DATE__,__TIME__); +} + +const char *TA_GetVersionMajor( void ) +{ + return MAJOR; +} + +const char *TA_GetVersionMinor( void ) +{ + return MINOR; +} + +const char *TA_GetVersionBuild( void ) +{ + return BUILD; +} + +const char *TA_GetVersionDate( void ) +{ + return __DATE__; +} + +const char *TA_GetVersionTime( void ) +{ + return __TIME__; +} diff --git a/src/ta_func/Makefile.am b/src/ta_func/Makefile.am new file mode 100644 index 000000000..030a5161a --- /dev/null +++ b/src/ta_func/Makefile.am @@ -0,0 +1,170 @@ + +noinst_LTLIBRARIES = libta_func.la +AM_CPPFLAGS = -I../ta_common/ + +libta_func_la_SOURCES = ta_utility.c \ + ta_ACOS.c \ + ta_AD.c \ + ta_ADD.c \ + ta_ADOSC.c \ + ta_ADX.c \ + ta_ADXR.c \ + ta_APO.c \ + ta_AROON.c \ + ta_AROONOSC.c \ + ta_ASIN.c \ + ta_ATAN.c \ + ta_ATR.c \ + ta_AVGPRICE.c \ + ta_BBANDS.c \ + ta_BETA.c \ + ta_BOP.c \ + ta_CCI.c \ + ta_CDL2CROWS.c \ + ta_CDL3BLACKCROWS.c \ + ta_CDL3INSIDE.c \ + ta_CDL3LINESTRIKE.c \ + ta_CDL3OUTSIDE.c \ + ta_CDL3STARSINSOUTH.c \ + ta_CDL3WHITESOLDIERS.c \ + ta_CDLABANDONEDBABY.c \ + ta_CDLADVANCEBLOCK.c \ + ta_CDLBELTHOLD.c \ + ta_CDLBREAKAWAY.c \ + ta_CDLCLOSINGMARUBOZU.c \ + ta_CDLCONCEALBABYSWALL.c \ + ta_CDLCOUNTERATTACK.c \ + ta_CDLDARKCLOUDCOVER.c \ + ta_CDLDOJI.c \ + ta_CDLDOJISTAR.c \ + ta_CDLDRAGONFLYDOJI.c \ + ta_CDLENGULFING.c \ + ta_CDLEVENINGDOJISTAR.c \ + ta_CDLEVENINGSTAR.c \ + ta_CDLGAPSIDESIDEWHITE.c \ + ta_CDLGRAVESTONEDOJI.c \ + ta_CDLHAMMER.c \ + ta_CDLHANGINGMAN.c \ + ta_CDLHARAMI.c \ + ta_CDLHARAMICROSS.c \ + ta_CDLHIGHWAVE.c \ + ta_CDLHIKKAKE.c \ + ta_CDLHIKKAKEMOD.c \ + ta_CDLHOMINGPIGEON.c \ + ta_CDLIDENTICAL3CROWS.c \ + ta_CDLINNECK.c \ + ta_CDLINVERTEDHAMMER.c \ + ta_CDLKICKING.c \ + ta_CDLKICKINGBYLENGTH.c \ + ta_CDLLADDERBOTTOM.c \ + ta_CDLLONGLEGGEDDOJI.c \ + ta_CDLLONGLINE.c \ + ta_CDLMARUBOZU.c \ + ta_CDLMATCHINGLOW.c \ + ta_CDLMATHOLD.c \ + ta_CDLMORNINGDOJISTAR.c \ + ta_CDLMORNINGSTAR.c \ + ta_CDLONNECK.c \ + ta_CDLPIERCING.c \ + ta_CDLRICKSHAWMAN.c \ + ta_CDLRISEFALL3METHODS.c \ + ta_CDLSEPARATINGLINES.c \ + ta_CDLSHOOTINGSTAR.c \ + ta_CDLSHORTLINE.c \ + ta_CDLSPINNINGTOP.c \ + ta_CDLSTALLEDPATTERN.c \ + ta_CDLSTICKSANDWICH.c \ + ta_CDLTAKURI.c \ + ta_CDLTASUKIGAP.c \ + ta_CDLTHRUSTING.c \ + ta_CDLTRISTAR.c \ + ta_CDLUNIQUE3RIVER.c \ + ta_CDLUPSIDEGAP2CROWS.c \ + ta_CDLXSIDEGAP3METHODS.c \ + ta_CEIL.c \ + ta_CMO.c \ + ta_CORREL.c \ + ta_COS.c \ + ta_COSH.c \ + ta_DEMA.c \ + ta_DIV.c \ + ta_DX.c \ + ta_EMA.c \ + ta_EXP.c \ + ta_FLOOR.c \ + ta_HT_DCPERIOD.c \ + ta_HT_DCPHASE.c \ + ta_HT_PHASOR.c \ + ta_HT_SINE.c \ + ta_HT_TRENDLINE.c \ + ta_HT_TRENDMODE.c \ + ta_KAMA.c \ + ta_LINEARREG.c \ + ta_LINEARREG_ANGLE.c \ + ta_LINEARREG_INTERCEPT.c \ + ta_LINEARREG_SLOPE.c \ + ta_LN.c \ + ta_LOG10.c \ + ta_MA.c \ + ta_MACD.c \ + ta_MACDEXT.c \ + ta_MACDFIX.c \ + ta_MAMA.c \ + ta_MAVP.c \ + ta_MAX.c \ + ta_MAXINDEX.c \ + ta_MEDPRICE.c \ + ta_MFI.c \ + ta_MIDPOINT.c \ + ta_MIDPRICE.c \ + ta_MIN.c \ + ta_MININDEX.c \ + ta_MINMAX.c \ + ta_MINMAXINDEX.c \ + ta_MINUS_DI.c \ + ta_MINUS_DM.c \ + ta_MOM.c \ + ta_MULT.c \ + ta_NATR.c \ + ta_OBV.c \ + ta_PLUS_DI.c \ + ta_PLUS_DM.c \ + ta_PPO.c \ + ta_ROC.c \ + ta_ROCP.c \ + ta_ROCR.c \ + ta_ROCR100.c \ + ta_RSI.c \ + ta_SAR.c \ + ta_SAREXT.c \ + ta_SIN.c \ + ta_SINH.c \ + ta_SMA.c \ + ta_SQRT.c \ + ta_STDDEV.c \ + ta_STOCH.c \ + ta_STOCHF.c \ + ta_STOCHRSI.c \ + ta_SUB.c \ + ta_SUM.c \ + ta_T3.c \ + ta_TAN.c \ + ta_TANH.c \ + ta_TEMA.c \ + ta_TRANGE.c \ + ta_TRIMA.c \ + ta_TRIX.c \ + ta_TSF.c \ + ta_TYPPRICE.c \ + ta_ULTOSC.c \ + ta_VAR.c \ + ta_WCLPRICE.c \ + ta_WILLR.c \ + ta_WMA.c + +libta_func_la_LDFLAGS = -version-info $(TALIB_LIBRARY_VERSION) + +libta_funcdir=$(includedir)/ta-lib/ +libta_func_HEADERS = ../../include/ta_defs.h \ + ../../include/ta_libc.h \ + ../../include/ta_func.h diff --git a/src/ta_func/ta_ACOS.c b/src/ta_func/ta_ACOS.c new file mode 100644 index 000000000..72ba5803c --- /dev/null +++ b/src/ta_func/ta_ACOS.c @@ -0,0 +1,241 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * MF Mario Fortier + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 090807 MF Initial Version + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::AcosLookback( void ) +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int acosLookback( ) +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_ACOS_Lookback( void ) +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ /* No parameters to validate. */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + + return 0; +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_ACOS - Vector Trigonometric ACos + * + * Input = double + * Output = double + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::Acos( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inReal, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::Acos( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode acos( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inReal[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_ACOS( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inReal[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + int outIdx; + int i; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Insert TA function code here. */ + + /* Default return values */ + for( i=startIdx, outIdx=0; i <= endIdx; i++, outIdx++ ) + { + outReal[outIdx] = std_acos(inReal[i]); + } + + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::Acos( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode acos( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inReal[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_ACOS( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inReal[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ int outIdx; +/* Generated */ int i; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ for( i=startIdx, outIdx=0; i <= endIdx; i++, outIdx++ ) +/* Generated */ { +/* Generated */ outReal[outIdx] = std_acos(inReal[i]); +/* Generated */ } +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_AD.c b/src/ta_func/ta_AD.c new file mode 100644 index 000000000..46cd050b7 --- /dev/null +++ b/src/ta_func/ta_AD.c @@ -0,0 +1,314 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * MF Mario Fortier + * JD jdoyle + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 120802 MF Template creation. + * 052603 MF Adapt code to compile with .NET Managed C++ + * 111705 MF,JD Fix#1359452 for handling properly start/end range. + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::AdLookback( void ) +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int adLookback( ) +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_AD_Lookback( void ) +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ /* No parameters to validate. */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + + /* This function have no lookback needed. */ + return 0; +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_AD - Chaikin A/D Line + * + * Input = High, Low, Close, Volume + * Output = double + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::Ad( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inHigh, +/* Generated */ SubArray^ inLow, +/* Generated */ SubArray^ inClose, +/* Generated */ SubArray^ inVolume, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::Ad( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ cli::array^ inVolume, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode ad( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inHigh[], +/* Generated */ double inLow[], +/* Generated */ double inClose[], +/* Generated */ double inVolume[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_AD( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inHigh[], +/* Generated */ const double inLow[], +/* Generated */ const double inClose[], +/* Generated */ const double inVolume[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + int nbBar, currentBar, outIdx; + + double high, low, close, tmp; + double ad; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ /* Verify required price component. */ +/* Generated */ if(!inHigh||!inLow||!inClose||!inVolume) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Insert TA function code here. */ + + /* Note: Results from this function might vary slightly + * from Metastock outputs. The reason being that + * Metastock use float instead of double and this + * cause a different floating-point precision to + * be used. + * + * For most function, this is not an apparent difference + * but for function using large cummulative values (like + * this AD function), minor imprecision adds up and becomes + * significative. + * + * For better precision, TA-Lib use double in all its + * its calculations. + */ + + /* Default return values */ + nbBar = endIdx-startIdx+1; + VALUE_HANDLE_DEREF(outNBElement) = nbBar; + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + currentBar = startIdx; + outIdx = 0; + ad = 0.0; + + while( nbBar != 0 ) + { + high = inHigh[currentBar]; + low = inLow[currentBar]; + tmp = high-low; + close = inClose[currentBar]; + + if( tmp > 0.0 ) + ad += (((close-low)-(high-close))/tmp)*((double)inVolume[currentBar]); + + outReal[outIdx++] = ad; + + currentBar++; + nbBar--; + } + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::Ad( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ cli::array^ inVolume, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode ad( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inHigh[], +/* Generated */ float inLow[], +/* Generated */ float inClose[], +/* Generated */ float inVolume[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_AD( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inHigh[], +/* Generated */ const float inLow[], +/* Generated */ const float inClose[], +/* Generated */ const float inVolume[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ int nbBar, currentBar, outIdx; +/* Generated */ double high, low, close, tmp; +/* Generated */ double ad; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if(!inHigh||!inLow||!inClose||!inVolume) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ nbBar = endIdx-startIdx+1; +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = nbBar; +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ currentBar = startIdx; +/* Generated */ outIdx = 0; +/* Generated */ ad = 0.0; +/* Generated */ while( nbBar != 0 ) +/* Generated */ { +/* Generated */ high = inHigh[currentBar]; +/* Generated */ low = inLow[currentBar]; +/* Generated */ tmp = high-low; +/* Generated */ close = inClose[currentBar]; +/* Generated */ if( tmp > 0.0 ) +/* Generated */ ad += (((close-low)-(high-close))/tmp)*((double)inVolume[currentBar]); +/* Generated */ outReal[outIdx++] = ad; +/* Generated */ currentBar++; +/* Generated */ nbBar--; +/* Generated */ } +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ diff --git a/src/ta_func/ta_ADD.c b/src/ta_func/ta_ADD.c new file mode 100644 index 000000000..bb143d7e2 --- /dev/null +++ b/src/ta_func/ta_ADD.c @@ -0,0 +1,250 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * MF Mario Fortier + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 090807 MF Initial Version + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::AddLookback( void ) +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int addLookback( ) +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_ADD_Lookback( void ) +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ /* No parameters to validate. */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + + return 0; +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_ADD - Vector Arithmetic Add + * + * Input = double, double + * Output = double + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::Add( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inReal0, +/* Generated */ SubArray^ inReal1, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::Add( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal0, +/* Generated */ cli::array^ inReal1, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode add( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inReal0[], +/* Generated */ double inReal1[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_ADD( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inReal0[], +/* Generated */ const double inReal1[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + int outIdx; + int i; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal0 ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ if( !inReal1 ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Insert TA function code here. */ + + /* Default return values */ + for( i=startIdx, outIdx=0; i <= endIdx; i++, outIdx++ ) + { + outReal[outIdx] = inReal0[i]+inReal1[i]; + } + + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::Add( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal0, +/* Generated */ cli::array^ inReal1, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode add( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inReal0[], +/* Generated */ float inReal1[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_ADD( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inReal0[], +/* Generated */ const float inReal1[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ int outIdx; +/* Generated */ int i; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal0 ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ if( !inReal1 ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ for( i=startIdx, outIdx=0; i <= endIdx; i++, outIdx++ ) +/* Generated */ { +/* Generated */ outReal[outIdx] = inReal0[i]+inReal1[i]; +/* Generated */ } +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_ADOSC.c b/src/ta_func/ta_ADOSC.c new file mode 100644 index 000000000..4e12f44d5 --- /dev/null +++ b/src/ta_func/ta_ADOSC.c @@ -0,0 +1,480 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * MF Mario Fortier + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 120802 MF Template creation. + * 052603 MF Adapt code to compile with .NET Managed C++ + * + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::AdOscLookback( int optInFastPeriod, /* From 2 to 100000 */ +/* Generated */ int optInSlowPeriod ) /* From 2 to 100000 */ +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int adOscLookback( int optInFastPeriod, /* From 2 to 100000 */ +/* Generated */ int optInSlowPeriod ) /* From 2 to 100000 */ +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_ADOSC_Lookback( int optInFastPeriod, /* From 2 to 100000 */ +/* Generated */ int optInSlowPeriod ) /* From 2 to 100000 */ +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + int slowestPeriod; + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ /* min/max are checked for optInFastPeriod. */ +/* Generated */ if( (int)optInFastPeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInFastPeriod = 3; +/* Generated */ else if( ((int)optInFastPeriod < 2) || ((int)optInFastPeriod > 100000) ) +/* Generated */ return -1; +/* Generated */ +/* Generated */ /* min/max are checked for optInSlowPeriod. */ +/* Generated */ if( (int)optInSlowPeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInSlowPeriod = 10; +/* Generated */ else if( ((int)optInSlowPeriod < 2) || ((int)optInSlowPeriod > 100000) ) +/* Generated */ return -1; +/* Generated */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + + /* Use the slowest EMA period to evaluate the total lookback. */ + if( optInFastPeriod < optInSlowPeriod ) + slowestPeriod = optInSlowPeriod; + else + slowestPeriod = optInFastPeriod; + + /* Adjust startIdx to account for the lookback period. */ + return LOOKBACK_CALL(EMA)( slowestPeriod ); +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_ADOSC - Chaikin A/D Oscillator + * + * Input = High, Low, Close, Volume + * Output = double + * + * Optional Parameters + * ------------------- + * optInFastPeriod:(From 2 to 100000) + * Number of period for the fast MA + * + * optInSlowPeriod:(From 2 to 100000) + * Number of period for the slow MA + * + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::AdOsc( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inHigh, +/* Generated */ SubArray^ inLow, +/* Generated */ SubArray^ inClose, +/* Generated */ SubArray^ inVolume, +/* Generated */ int optInFastPeriod, /* From 2 to 100000 */ +/* Generated */ int optInSlowPeriod, /* From 2 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::AdOsc( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ cli::array^ inVolume, +/* Generated */ int optInFastPeriod, /* From 2 to 100000 */ +/* Generated */ int optInSlowPeriod, /* From 2 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode adOsc( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inHigh[], +/* Generated */ double inLow[], +/* Generated */ double inClose[], +/* Generated */ double inVolume[], +/* Generated */ int optInFastPeriod, /* From 2 to 100000 */ +/* Generated */ int optInSlowPeriod, /* From 2 to 100000 */ +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_ADOSC( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inHigh[], +/* Generated */ const double inLow[], +/* Generated */ const double inClose[], +/* Generated */ const double inVolume[], +/* Generated */ int optInFastPeriod, /* From 2 to 100000 */ +/* Generated */ int optInSlowPeriod, /* From 2 to 100000 */ +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + + int today, outIdx, lookbackTotal; + int slowestPeriod; + double high, low, close, tmp; + + double slowEMA, slowk, one_minus_slowk; + double fastEMA, fastk, one_minus_fastk; + double ad; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ /* Verify required price component. */ +/* Generated */ if(!inHigh||!inLow||!inClose||!inVolume) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ /* min/max are checked for optInFastPeriod. */ +/* Generated */ if( (int)optInFastPeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInFastPeriod = 3; +/* Generated */ else if( ((int)optInFastPeriod < 2) || ((int)optInFastPeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ /* min/max are checked for optInSlowPeriod. */ +/* Generated */ if( (int)optInSlowPeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInSlowPeriod = 10; +/* Generated */ else if( ((int)optInSlowPeriod < 2) || ((int)optInSlowPeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Insert TA function code here. */ + + /* Implementation Note: + * The fastEMA varaible is not neceseraly the + * fastest EMA. + * In the same way, slowEMA is not neceseraly the + * slowest EMA. + * + * The ADOSC is always the (fastEMA - slowEMA) regardless + * of the period specified. In other word: + * + * ADOSC(3,10) = EMA(3,AD) - EMA(10,AD) + * + * while + * + * ADOSC(10,3) = EMA(10,AD)- EMA(3,AD) + * + * In the first case the EMA(3) is truly a faster EMA, + * while in the second case, the EMA(10) is still call + * fastEMA in the algorithm, even if it is in fact slower. + * + * This gives more flexibility to the user if they want to + * experiment with unusual parameter settings. + */ + + /* Identify the slowest period. + * This infomration is used soleley to bootstrap + * the algorithm (skip the lookback period). + */ + if( optInFastPeriod < optInSlowPeriod ) + slowestPeriod = optInSlowPeriod; + else + slowestPeriod = optInFastPeriod; + + /* Adjust startIdx to account for the lookback period. */ + lookbackTotal = LOOKBACK_CALL(EMA)( slowestPeriod ); + if( startIdx < lookbackTotal ) + startIdx = lookbackTotal; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + today = startIdx-lookbackTotal; + + /* The following variables and macro are used to + * calculate the "ad". + */ + ad = 0.0; + #define CALCULATE_AD \ + { \ + high = inHigh[today]; \ + low = inLow[today]; \ + tmp = high-low; \ + close = inClose[today]; \ + if( tmp > 0.0 ) \ + ad += (((close-low)-(high-close))/tmp)*((double)inVolume[today]); \ + today++; \ + } + + /* Constants for EMA */ + fastk = PER_TO_K( optInFastPeriod ); + one_minus_fastk = 1.0 - fastk; + + slowk = PER_TO_K( optInSlowPeriod ); + one_minus_slowk = 1.0 - slowk; + + /* Initialize the two EMA + * + * Use the same range of initialization inputs for + * both EMA and simply seed with the first A/D value. + * + * Note: Metastock do the same. + */ + CALCULATE_AD; + fastEMA = ad; + slowEMA = ad; + + /* Initialize the EMA and skip the unstable period. */ + while( today < startIdx ) + { + CALCULATE_AD; + fastEMA = (fastk*ad)+(one_minus_fastk*fastEMA); + slowEMA = (slowk*ad)+(one_minus_slowk*slowEMA); + } + + /* Perform the calculation for the requested range */ + outIdx = 0; + while( today <= endIdx ) + { + CALCULATE_AD; + fastEMA = (fastk*ad)+(one_minus_fastk*fastEMA); + slowEMA = (slowk*ad)+(one_minus_slowk*slowEMA); + + outReal[outIdx++] = fastEMA - slowEMA; + } + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::AdOsc( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ cli::array^ inVolume, +/* Generated */ int optInFastPeriod, /* From 2 to 100000 */ +/* Generated */ int optInSlowPeriod, /* From 2 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode adOsc( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inHigh[], +/* Generated */ float inLow[], +/* Generated */ float inClose[], +/* Generated */ float inVolume[], +/* Generated */ int optInFastPeriod, /* From 2 to 100000 */ +/* Generated */ int optInSlowPeriod, /* From 2 to 100000 */ +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_ADOSC( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inHigh[], +/* Generated */ const float inLow[], +/* Generated */ const float inClose[], +/* Generated */ const float inVolume[], +/* Generated */ int optInFastPeriod, /* From 2 to 100000 */ +/* Generated */ int optInSlowPeriod, /* From 2 to 100000 */ +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ int today, outIdx, lookbackTotal; +/* Generated */ int slowestPeriod; +/* Generated */ double high, low, close, tmp; +/* Generated */ double slowEMA, slowk, one_minus_slowk; +/* Generated */ double fastEMA, fastk, one_minus_fastk; +/* Generated */ double ad; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if(!inHigh||!inLow||!inClose||!inVolume) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ if( (int)optInFastPeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInFastPeriod = 3; +/* Generated */ else if( ((int)optInFastPeriod < 2) || ((int)optInFastPeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ if( (int)optInSlowPeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInSlowPeriod = 10; +/* Generated */ else if( ((int)optInSlowPeriod < 2) || ((int)optInSlowPeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ if( optInFastPeriod < optInSlowPeriod ) +/* Generated */ slowestPeriod = optInSlowPeriod; +/* Generated */ else +/* Generated */ slowestPeriod = optInFastPeriod; +/* Generated */ lookbackTotal = LOOKBACK_CALL(EMA)( slowestPeriod ); +/* Generated */ if( startIdx < lookbackTotal ) +/* Generated */ startIdx = lookbackTotal; +/* Generated */ if( startIdx > endIdx ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ today = startIdx-lookbackTotal; +/* Generated */ ad = 0.0; +/* Generated */ #define CALCULATE_AD \ +/* Generated */ { \ +/* Generated */ high = inHigh[today]; \ +/* Generated */ low = inLow[today]; \ +/* Generated */ tmp = high-low; \ +/* Generated */ close = inClose[today]; \ +/* Generated */ if( tmp > 0.0 ) \ +/* Generated */ ad += (((close-low)-(high-close))/tmp)*((double)inVolume[today]); \ +/* Generated */ today++; \ +/* Generated */ } +/* Generated */ fastk = PER_TO_K( optInFastPeriod ); +/* Generated */ one_minus_fastk = 1.0 - fastk; +/* Generated */ slowk = PER_TO_K( optInSlowPeriod ); +/* Generated */ one_minus_slowk = 1.0 - slowk; +/* Generated */ CALCULATE_AD; +/* Generated */ fastEMA = ad; +/* Generated */ slowEMA = ad; +/* Generated */ while( today < startIdx ) +/* Generated */ { +/* Generated */ CALCULATE_AD; +/* Generated */ fastEMA = (fastk*ad)+(one_minus_fastk*fastEMA); +/* Generated */ slowEMA = (slowk*ad)+(one_minus_slowk*slowEMA); +/* Generated */ } +/* Generated */ outIdx = 0; +/* Generated */ while( today <= endIdx ) +/* Generated */ { +/* Generated */ CALCULATE_AD; +/* Generated */ fastEMA = (fastk*ad)+(one_minus_fastk*fastEMA); +/* Generated */ slowEMA = (slowk*ad)+(one_minus_slowk*slowEMA); +/* Generated */ outReal[outIdx++] = fastEMA - slowEMA; +/* Generated */ } +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_ADX.c b/src/ta_func/ta_ADX.c new file mode 100644 index 000000000..36438f180 --- /dev/null +++ b/src/ta_func/ta_ADX.c @@ -0,0 +1,785 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * MF Mario Fortier + * AM Adrian Michel + * MIF Mirek Fontan (mira@fontan.cz) + * GC guycom@users.sourceforge.net + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 010802 MF Template creation. + * 052603 MF Adapt code to compile with .NET Managed C++ + * 082303 MF Fix #792298. Remove rounding. Bug reported by AM. + * 062704 MF Fix #965557. Div by zero bug reported by MIF. + * 082206 MF Fix #1544555. Div by zero bug reported by GC. + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::AdxLookback( int optInTimePeriod ) /* From 2 to 100000 */ +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int adxLookback( int optInTimePeriod ) /* From 2 to 100000 */ +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_ADX_Lookback( int optInTimePeriod ) /* From 2 to 100000 */ +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ /* min/max are checked for optInTimePeriod. */ +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 14; +/* Generated */ else if( ((int)optInTimePeriod < 2) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return -1; +/* Generated */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + return (2 * optInTimePeriod) + TA_GLOBALS_UNSTABLE_PERIOD(TA_FUNC_UNST_ADX,Adx) - 1; +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_ADX - Average Directional Movement Index + * + * Input = High, Low, Close + * Output = double + * + * Optional Parameters + * ------------------- + * optInTimePeriod:(From 2 to 100000) + * Number of period + * + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::Adx( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inHigh, +/* Generated */ SubArray^ inLow, +/* Generated */ SubArray^ inClose, +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::Adx( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode adx( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inHigh[], +/* Generated */ double inLow[], +/* Generated */ double inClose[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_ADX( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inHigh[], +/* Generated */ const double inLow[], +/* Generated */ const double inClose[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + int today, lookbackTotal, outIdx; + double prevHigh, prevLow, prevClose; + double prevMinusDM, prevPlusDM, prevTR; + double tempReal, tempReal2, diffP, diffM; + double minusDI, plusDI, sumDX, prevADX; + + int i; + + #define TRUE_RANGE(TH,TL,YC,OUT) {\ + OUT = TH-TL; \ + tempReal2 = std_fabs(TH-YC); \ + if( tempReal2 > OUT ) \ + OUT = tempReal2; \ + tempReal2 = std_fabs(TL-YC); \ + if( tempReal2 > OUT ) \ + OUT = tempReal2; \ + } + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ /* Verify required price component. */ +/* Generated */ if(!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ /* min/max are checked for optInTimePeriod. */ +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 14; +/* Generated */ else if( ((int)optInTimePeriod < 2) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Insert TA function code here. */ + + /* + * The DM1 (one period) is base on the largest part of + * today's range that is outside of yesterdays range. + * + * The following 7 cases explain how the +DM and -DM are + * calculated on one period: + * + * Case 1: Case 2: + * C| A| + * | | C| + * | +DM1 = (C-A) B| | +DM1 = 0 + * | -DM1 = 0 | -DM1 = (B-D) + * A| | D| + * | D| + * B| + * + * Case 3: Case 4: + * C| C| + * | A| | + * | +DM1 = (C-A) | | +DM1 = 0 + * | -DM1 = 0 B| | -DM1 = (B-D) + * A| | | + * | | D| + * B| | + * D| + * + * Case 5: Case 6: + * A| A| C| + * | C| +DM1 = 0 | | +DM1 = 0 + * | | -DM1 = 0 | | -DM1 = 0 + * | D| | | + * B| B| D| + * + * + * Case 7: + * + * C| + * A| | + * | | +DM=0 + * B| | -DM=0 + * D| + * + * In case 3 and 4, the rule is that the smallest delta between + * (C-A) and (B-D) determine which of +DM or -DM is zero. + * + * In case 7, (C-A) and (B-D) are equal, so both +DM and -DM are + * zero. + * + * The rules remain the same when A=B and C=D (when the highs + * equal the lows). + * + * When calculating the DM over a period > 1, the one-period DM + * for the desired period are initialy sum. In other word, + * for a -DM14, sum the -DM1 for the first 14 days (that's + * 13 values because there is no DM for the first day!) + * Subsequent DM are calculated using the Wilder's + * smoothing approach: + * + * Previous -DM14 + * Today's -DM14 = Previous -DM14 - -------------- + Today's -DM1 + * 14 + * + * (Same thing for +DM14) + * + * Calculation of a -DI14 is as follow: + * + * -DM14 + * -DI14 = -------- + * TR14 + * + * (Same thing for +DI14) + * + * Calculation of the TR14 is: + * + * Previous TR14 + * Today's TR14 = Previous TR14 - -------------- + Today's TR1 + * 14 + * + * The first TR14 is the summation of the first 14 TR1. See the + * TA_TRANGE function on how to calculate the true range. + * + * Calculation of the DX14 is: + * + * diffDI = ABS( (-DI14) - (+DI14) ) + * sumDI = (-DI14) + (+DI14) + * + * DX14 = 100 * (diffDI / sumDI) + * + * Calculation of the first ADX: + * + * ADX14 = SUM of the first 14 DX + * + * Calculation of subsequent ADX: + * + * ((Previous ADX14)*(14-1))+ Today's DX + * ADX14 = ------------------------------------- + * 14 + * + * Reference: + * New Concepts In Technical Trading Systems, J. Welles Wilder Jr + */ + + /* Original implementation from Wilder's book was doing some integer + * rounding in its calculations. + * + * This was understandable in the context that at the time the book + * was written, most user were doing the calculation by hand. + * + * For a computer, rounding is unnecessary (and even problematic when inputs + * are close to 1). + * + * TA-Lib does not do the rounding. Still, if you want to reproduce Wilder's examples, + * you can comment out the following #undef/#define and rebuild the library. + */ + #undef round_pos + #define round_pos(x) (x) + + lookbackTotal = (2*optInTimePeriod) + TA_GLOBALS_UNSTABLE_PERIOD(TA_FUNC_UNST_ADX,Adx) - 1; + + /* Adjust startIdx to account for the lookback period. */ + if( startIdx < lookbackTotal ) + startIdx = lookbackTotal; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + + /* Indicate where the next output should be put + * in the outReal. + */ + outIdx = 0; + + /* Process the initial DM and TR */ + VALUE_HANDLE_DEREF(outBegIdx) = today = startIdx; + + prevMinusDM = 0.0; + prevPlusDM = 0.0; + prevTR = 0.0; + today = startIdx - lookbackTotal; + prevHigh = inHigh[today]; + prevLow = inLow[today]; + prevClose = inClose[today]; + i = optInTimePeriod-1; + while( i-- > 0 ) + { + /* Calculate the prevMinusDM and prevPlusDM */ + today++; + tempReal = inHigh[today]; + diffP = tempReal-prevHigh; /* Plus Delta */ + prevHigh = tempReal; + + tempReal = inLow[today]; + diffM = prevLow-tempReal; /* Minus Delta */ + prevLow = tempReal; + + if( (diffM > 0) && (diffP < diffM) ) + { + /* Case 2 and 4: +DM=0,-DM=diffM */ + prevMinusDM += diffM; + } + else if( (diffP > 0) && (diffP > diffM) ) + { + /* Case 1 and 3: +DM=diffP,-DM=0 */ + prevPlusDM += diffP; + } + + TRUE_RANGE(prevHigh,prevLow,prevClose,tempReal); + prevTR += tempReal; + prevClose = inClose[today]; + } + + /* Add up all the initial DX. */ + sumDX = 0.0; + i = optInTimePeriod; + while( i-- > 0 ) + { + /* Calculate the prevMinusDM and prevPlusDM */ + today++; + tempReal = inHigh[today]; + diffP = tempReal-prevHigh; /* Plus Delta */ + prevHigh = tempReal; + + tempReal = inLow[today]; + diffM = prevLow-tempReal; /* Minus Delta */ + prevLow = tempReal; + + prevMinusDM -= prevMinusDM/optInTimePeriod; + prevPlusDM -= prevPlusDM/optInTimePeriod; + + if( (diffM > 0) && (diffP < diffM) ) + { + /* Case 2 and 4: +DM=0,-DM=diffM */ + prevMinusDM += diffM; + } + else if( (diffP > 0) && (diffP > diffM) ) + { + /* Case 1 and 3: +DM=diffP,-DM=0 */ + prevPlusDM += diffP; + } + + /* Calculate the prevTR */ + TRUE_RANGE(prevHigh,prevLow,prevClose,tempReal); + prevTR = prevTR - (prevTR/optInTimePeriod) + tempReal; + prevClose = inClose[today]; + + /* Calculate the DX. The value is rounded (see Wilder book). */ + if( !TA_IS_ZERO(prevTR) ) + { + minusDI = round_pos(100.0*(prevMinusDM/prevTR)); + plusDI = round_pos(100.0*(prevPlusDM/prevTR)); + /* This loop is just to accumulate the initial DX */ + tempReal = minusDI+plusDI; + if( !TA_IS_ZERO(tempReal) ) + sumDX += round_pos( 100.0 * (std_fabs(minusDI-plusDI)/tempReal) ); + } + } + + /* Calculate the first ADX */ + prevADX = round_pos( sumDX / optInTimePeriod ); + + /* Skip the unstable period */ + i = TA_GLOBALS_UNSTABLE_PERIOD(TA_FUNC_UNST_ADX,Adx); + while( i-- > 0 ) + { + /* Calculate the prevMinusDM and prevPlusDM */ + today++; + tempReal = inHigh[today]; + diffP = tempReal-prevHigh; /* Plus Delta */ + prevHigh = tempReal; + + tempReal = inLow[today]; + diffM = prevLow-tempReal; /* Minus Delta */ + prevLow = tempReal; + + prevMinusDM -= prevMinusDM/optInTimePeriod; + prevPlusDM -= prevPlusDM/optInTimePeriod; + + if( (diffM > 0) && (diffP < diffM) ) + { + /* Case 2 and 4: +DM=0,-DM=diffM */ + prevMinusDM += diffM; + } + else if( (diffP > 0) && (diffP > diffM) ) + { + /* Case 1 and 3: +DM=diffP,-DM=0 */ + prevPlusDM += diffP; + } + + /* Calculate the prevTR */ + TRUE_RANGE(prevHigh,prevLow,prevClose,tempReal); + prevTR = prevTR - (prevTR/optInTimePeriod) + tempReal; + prevClose = inClose[today]; + + if( !TA_IS_ZERO(prevTR) ) + { + /* Calculate the DX. The value is rounded (see Wilder book). */ + minusDI = round_pos(100.0*(prevMinusDM/prevTR)); + plusDI = round_pos(100.0*(prevPlusDM/prevTR)); + tempReal = minusDI+plusDI; + if( !TA_IS_ZERO(tempReal) ) + { + tempReal = round_pos(100.0*(std_fabs(minusDI-plusDI)/tempReal)); + /* Calculate the ADX */ + prevADX = round_pos(((prevADX*(optInTimePeriod-1))+tempReal)/optInTimePeriod); + } + } + } + + /* Output the first ADX */ + outReal[0] = prevADX; + outIdx = 1; + + /* Calculate and output subsequent ADX */ + while( today < endIdx ) + { + /* Calculate the prevMinusDM and prevPlusDM */ + today++; + tempReal = inHigh[today]; + diffP = tempReal-prevHigh; /* Plus Delta */ + prevHigh = tempReal; + + tempReal = inLow[today]; + diffM = prevLow-tempReal; /* Minus Delta */ + prevLow = tempReal; + + prevMinusDM -= prevMinusDM/optInTimePeriod; + prevPlusDM -= prevPlusDM/optInTimePeriod; + + if( (diffM > 0) && (diffP < diffM) ) + { + /* Case 2 and 4: +DM=0,-DM=diffM */ + prevMinusDM += diffM; + } + else if( (diffP > 0) && (diffP > diffM) ) + { + /* Case 1 and 3: +DM=diffP,-DM=0 */ + prevPlusDM += diffP; + } + + /* Calculate the prevTR */ + TRUE_RANGE(prevHigh,prevLow,prevClose,tempReal); + prevTR = prevTR - (prevTR/optInTimePeriod) + tempReal; + prevClose = inClose[today]; + + if( !TA_IS_ZERO(prevTR) ) + { + /* Calculate the DX. The value is rounded (see Wilder book). */ + minusDI = round_pos(100.0*(prevMinusDM/prevTR)); + plusDI = round_pos(100.0*(prevPlusDM/prevTR)); + tempReal = minusDI+plusDI; + if( !TA_IS_ZERO(tempReal) ) + { + tempReal = round_pos(100.0*(std_fabs(minusDI-plusDI)/tempReal)); + /* Calculate the ADX */ + prevADX = round_pos(((prevADX*(optInTimePeriod-1))+tempReal)/optInTimePeriod); + } + } + + /* Output the ADX */ + outReal[outIdx++] = prevADX; + } + + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::Adx( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode adx( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inHigh[], +/* Generated */ float inLow[], +/* Generated */ float inClose[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_ADX( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inHigh[], +/* Generated */ const float inLow[], +/* Generated */ const float inClose[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ int today, lookbackTotal, outIdx; +/* Generated */ double prevHigh, prevLow, prevClose; +/* Generated */ double prevMinusDM, prevPlusDM, prevTR; +/* Generated */ double tempReal, tempReal2, diffP, diffM; +/* Generated */ double minusDI, plusDI, sumDX, prevADX; +/* Generated */ int i; +/* Generated */ #define TRUE_RANGE(TH,TL,YC,OUT) {\ +/* Generated */ OUT = TH-TL; \ +/* Generated */ tempReal2 = std_fabs(TH-YC); \ +/* Generated */ if( tempReal2 > OUT ) \ +/* Generated */ OUT = tempReal2; \ +/* Generated */ tempReal2 = std_fabs(TL-YC); \ +/* Generated */ if( tempReal2 > OUT ) \ +/* Generated */ OUT = tempReal2; \ +/* Generated */ } +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if(!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 14; +/* Generated */ else if( ((int)optInTimePeriod < 2) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ #undef round_pos +/* Generated */ #define round_pos(x) (x) +/* Generated */ lookbackTotal = (2*optInTimePeriod) + TA_GLOBALS_UNSTABLE_PERIOD(TA_FUNC_UNST_ADX,Adx) - 1; +/* Generated */ if( startIdx < lookbackTotal ) +/* Generated */ startIdx = lookbackTotal; +/* Generated */ if( startIdx > endIdx ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ outIdx = 0; +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = today = startIdx; +/* Generated */ prevMinusDM = 0.0; +/* Generated */ prevPlusDM = 0.0; +/* Generated */ prevTR = 0.0; +/* Generated */ today = startIdx - lookbackTotal; +/* Generated */ prevHigh = inHigh[today]; +/* Generated */ prevLow = inLow[today]; +/* Generated */ prevClose = inClose[today]; +/* Generated */ i = optInTimePeriod-1; +/* Generated */ while( i-- > 0 ) +/* Generated */ { +/* Generated */ today++; +/* Generated */ tempReal = inHigh[today]; +/* Generated */ diffP = tempReal-prevHigh; +/* Generated */ prevHigh = tempReal; +/* Generated */ tempReal = inLow[today]; +/* Generated */ diffM = prevLow-tempReal; +/* Generated */ prevLow = tempReal; +/* Generated */ if( (diffM > 0) && (diffP < diffM) ) +/* Generated */ { +/* Generated */ prevMinusDM += diffM; +/* Generated */ } +/* Generated */ else if( (diffP > 0) && (diffP > diffM) ) +/* Generated */ { +/* Generated */ prevPlusDM += diffP; +/* Generated */ } +/* Generated */ TRUE_RANGE(prevHigh,prevLow,prevClose,tempReal); +/* Generated */ prevTR += tempReal; +/* Generated */ prevClose = inClose[today]; +/* Generated */ } +/* Generated */ sumDX = 0.0; +/* Generated */ i = optInTimePeriod; +/* Generated */ while( i-- > 0 ) +/* Generated */ { +/* Generated */ today++; +/* Generated */ tempReal = inHigh[today]; +/* Generated */ diffP = tempReal-prevHigh; +/* Generated */ prevHigh = tempReal; +/* Generated */ tempReal = inLow[today]; +/* Generated */ diffM = prevLow-tempReal; +/* Generated */ prevLow = tempReal; +/* Generated */ prevMinusDM -= prevMinusDM/optInTimePeriod; +/* Generated */ prevPlusDM -= prevPlusDM/optInTimePeriod; +/* Generated */ if( (diffM > 0) && (diffP < diffM) ) +/* Generated */ { +/* Generated */ prevMinusDM += diffM; +/* Generated */ } +/* Generated */ else if( (diffP > 0) && (diffP > diffM) ) +/* Generated */ { +/* Generated */ prevPlusDM += diffP; +/* Generated */ } +/* Generated */ TRUE_RANGE(prevHigh,prevLow,prevClose,tempReal); +/* Generated */ prevTR = prevTR - (prevTR/optInTimePeriod) + tempReal; +/* Generated */ prevClose = inClose[today]; +/* Generated */ if( !TA_IS_ZERO(prevTR) ) +/* Generated */ { +/* Generated */ minusDI = round_pos(100.0*(prevMinusDM/prevTR)); +/* Generated */ plusDI = round_pos(100.0*(prevPlusDM/prevTR)); +/* Generated */ tempReal = minusDI+plusDI; +/* Generated */ if( !TA_IS_ZERO(tempReal) ) +/* Generated */ sumDX += round_pos( 100.0 * (std_fabs(minusDI-plusDI)/tempReal) ); +/* Generated */ } +/* Generated */ } +/* Generated */ prevADX = round_pos( sumDX / optInTimePeriod ); +/* Generated */ i = TA_GLOBALS_UNSTABLE_PERIOD(TA_FUNC_UNST_ADX,Adx); +/* Generated */ while( i-- > 0 ) +/* Generated */ { +/* Generated */ today++; +/* Generated */ tempReal = inHigh[today]; +/* Generated */ diffP = tempReal-prevHigh; +/* Generated */ prevHigh = tempReal; +/* Generated */ tempReal = inLow[today]; +/* Generated */ diffM = prevLow-tempReal; +/* Generated */ prevLow = tempReal; +/* Generated */ prevMinusDM -= prevMinusDM/optInTimePeriod; +/* Generated */ prevPlusDM -= prevPlusDM/optInTimePeriod; +/* Generated */ if( (diffM > 0) && (diffP < diffM) ) +/* Generated */ { +/* Generated */ prevMinusDM += diffM; +/* Generated */ } +/* Generated */ else if( (diffP > 0) && (diffP > diffM) ) +/* Generated */ { +/* Generated */ prevPlusDM += diffP; +/* Generated */ } +/* Generated */ TRUE_RANGE(prevHigh,prevLow,prevClose,tempReal); +/* Generated */ prevTR = prevTR - (prevTR/optInTimePeriod) + tempReal; +/* Generated */ prevClose = inClose[today]; +/* Generated */ if( !TA_IS_ZERO(prevTR) ) +/* Generated */ { +/* Generated */ minusDI = round_pos(100.0*(prevMinusDM/prevTR)); +/* Generated */ plusDI = round_pos(100.0*(prevPlusDM/prevTR)); +/* Generated */ tempReal = minusDI+plusDI; +/* Generated */ if( !TA_IS_ZERO(tempReal) ) +/* Generated */ { +/* Generated */ tempReal = round_pos(100.0*(std_fabs(minusDI-plusDI)/tempReal)); +/* Generated */ prevADX = round_pos(((prevADX*(optInTimePeriod-1))+tempReal)/optInTimePeriod); +/* Generated */ } +/* Generated */ } +/* Generated */ } +/* Generated */ outReal[0] = prevADX; +/* Generated */ outIdx = 1; +/* Generated */ while( today < endIdx ) +/* Generated */ { +/* Generated */ today++; +/* Generated */ tempReal = inHigh[today]; +/* Generated */ diffP = tempReal-prevHigh; +/* Generated */ prevHigh = tempReal; +/* Generated */ tempReal = inLow[today]; +/* Generated */ diffM = prevLow-tempReal; +/* Generated */ prevLow = tempReal; +/* Generated */ prevMinusDM -= prevMinusDM/optInTimePeriod; +/* Generated */ prevPlusDM -= prevPlusDM/optInTimePeriod; +/* Generated */ if( (diffM > 0) && (diffP < diffM) ) +/* Generated */ { +/* Generated */ prevMinusDM += diffM; +/* Generated */ } +/* Generated */ else if( (diffP > 0) && (diffP > diffM) ) +/* Generated */ { +/* Generated */ prevPlusDM += diffP; +/* Generated */ } +/* Generated */ TRUE_RANGE(prevHigh,prevLow,prevClose,tempReal); +/* Generated */ prevTR = prevTR - (prevTR/optInTimePeriod) + tempReal; +/* Generated */ prevClose = inClose[today]; +/* Generated */ if( !TA_IS_ZERO(prevTR) ) +/* Generated */ { +/* Generated */ minusDI = round_pos(100.0*(prevMinusDM/prevTR)); +/* Generated */ plusDI = round_pos(100.0*(prevPlusDM/prevTR)); +/* Generated */ tempReal = minusDI+plusDI; +/* Generated */ if( !TA_IS_ZERO(tempReal) ) +/* Generated */ { +/* Generated */ tempReal = round_pos(100.0*(std_fabs(minusDI-plusDI)/tempReal)); +/* Generated */ prevADX = round_pos(((prevADX*(optInTimePeriod-1))+tempReal)/optInTimePeriod); +/* Generated */ } +/* Generated */ } +/* Generated */ outReal[outIdx++] = prevADX; +/* Generated */ } +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_ADXR.c b/src/ta_func/ta_ADXR.c new file mode 100644 index 000000000..8008d158a --- /dev/null +++ b/src/ta_func/ta_ADXR.c @@ -0,0 +1,374 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * MF Mario Fortier + * AM Adrian Michel + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 010802 MF Template creation. + * 052603 MF Adapt code to compile with .NET Managed C++ + * 082303 MF Fix #792298. Remove rounding. Bug reported by AM. + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::AdxrLookback( int optInTimePeriod ) /* From 2 to 100000 */ +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int adxrLookback( int optInTimePeriod ) /* From 2 to 100000 */ +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_ADXR_Lookback( int optInTimePeriod ) /* From 2 to 100000 */ +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ /* min/max are checked for optInTimePeriod. */ +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 14; +/* Generated */ else if( ((int)optInTimePeriod < 2) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return -1; +/* Generated */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + if( optInTimePeriod > 1 ) + return optInTimePeriod + LOOKBACK_CALL(ADX)( optInTimePeriod) - 1; + else + return 3; +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_ADXR - Average Directional Movement Index Rating + * + * Input = High, Low, Close + * Output = double + * + * Optional Parameters + * ------------------- + * optInTimePeriod:(From 2 to 100000) + * Number of period + * + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::Adxr( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inHigh, +/* Generated */ SubArray^ inLow, +/* Generated */ SubArray^ inClose, +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::Adxr( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode adxr( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inHigh[], +/* Generated */ double inLow[], +/* Generated */ double inClose[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_ADXR( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inHigh[], +/* Generated */ const double inLow[], +/* Generated */ const double inClose[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + ARRAY_REF( adx ); + int adxrLookback, i, j, outIdx, nbElement; + ENUM_DECLARATION(RetCode) retCode; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ /* Verify required price component. */ +/* Generated */ if(!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ /* min/max are checked for optInTimePeriod. */ +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 14; +/* Generated */ else if( ((int)optInTimePeriod < 2) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Insert TA function code here. */ + + /* Original implementation from Wilder's book was doing some integer + * rounding in its calculations. + * + * This was understandable in the context that at the time the book + * was written, most user were doing the calculation by hand. + * + * For a computer, rounding is unnecessary (and even problematic when inputs + * are close to 1). + * + * TA-Lib does not do the rounding. Still, if you want to reproduce Wilder's examples, + * you can comment out the following #undef/#define and rebuild the library. + */ + #undef round_pos + #define round_pos(x) (x) + + /* Move up the start index if there is not + * enough initial data. + * Always one price bar gets consumed. + */ + adxrLookback = LOOKBACK_CALL(ADXR)( optInTimePeriod ); + + if( startIdx < adxrLookback ) + startIdx = adxrLookback; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + + ARRAY_ALLOC( adx, endIdx-startIdx+optInTimePeriod ); + #if !defined( _JAVA ) + if( !adx ) + return ENUM_VALUE(RetCode,TA_ALLOC_ERR,AllocErr); + #endif + + retCode = FUNCTION_CALL(ADX)( startIdx-(optInTimePeriod-1), endIdx, + inHigh, inLow, inClose, + optInTimePeriod, outBegIdx, outNBElement, adx ); + + if( retCode != ENUM_VALUE(RetCode,TA_SUCCESS,Success) ) + { + ARRAY_FREE( adx ); + return retCode; + } + + i = optInTimePeriod-1; + j = 0; + outIdx = 0; + nbElement = endIdx-startIdx+2; + while( --nbElement != 0 ) + outReal[outIdx++] = round_pos( (adx[i++]+adx[j++])/2.0 ); + + ARRAY_FREE( adx ); + + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::Adxr( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode adxr( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inHigh[], +/* Generated */ float inLow[], +/* Generated */ float inClose[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_ADXR( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inHigh[], +/* Generated */ const float inLow[], +/* Generated */ const float inClose[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ ARRAY_REF( adx ); +/* Generated */ int adxrLookback, i, j, outIdx, nbElement; +/* Generated */ ENUM_DECLARATION(RetCode) retCode; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if(!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 14; +/* Generated */ else if( ((int)optInTimePeriod < 2) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ #undef round_pos +/* Generated */ #define round_pos(x) (x) +/* Generated */ adxrLookback = LOOKBACK_CALL(ADXR)( optInTimePeriod ); +/* Generated */ if( startIdx < adxrLookback ) +/* Generated */ startIdx = adxrLookback; +/* Generated */ if( startIdx > endIdx ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ ARRAY_ALLOC( adx, endIdx-startIdx+optInTimePeriod ); +/* Generated */ #if !defined( _JAVA ) +/* Generated */ if( !adx ) +/* Generated */ return ENUM_VALUE(RetCode,TA_ALLOC_ERR,AllocErr); +/* Generated */ #endif +/* Generated */ retCode = FUNCTION_CALL(ADX)( startIdx-(optInTimePeriod-1), endIdx, +/* Generated */ inHigh, inLow, inClose, +/* Generated */ optInTimePeriod, outBegIdx, outNBElement, adx ); +/* Generated */ if( retCode != ENUM_VALUE(RetCode,TA_SUCCESS,Success) ) +/* Generated */ { +/* Generated */ ARRAY_FREE( adx ); +/* Generated */ return retCode; +/* Generated */ } +/* Generated */ i = optInTimePeriod-1; +/* Generated */ j = 0; +/* Generated */ outIdx = 0; +/* Generated */ nbElement = endIdx-startIdx+2; +/* Generated */ while( --nbElement != 0 ) +/* Generated */ outReal[outIdx++] = round_pos( (adx[i++]+adx[j++])/2.0 ); +/* Generated */ ARRAY_FREE( adx ); +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_APO.c b/src/ta_func/ta_APO.c new file mode 100644 index 000000000..94060ddac --- /dev/null +++ b/src/ta_func/ta_APO.c @@ -0,0 +1,597 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * MF Mario Fortier + * AA Andrew Atkinson + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 112400 MF Template creation. + * 052603 MF Adapt code to compile with .NET Managed C++ + * 062804 MF Resolve div by zero bug on limit case. + * 020605 AA Fix #1117666 Lookback & out-of-bound bug. + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::ApoLookback( int optInFastPeriod, /* From 2 to 100000 */ +/* Generated */ int optInSlowPeriod, /* From 2 to 100000 */ +/* Generated */ MAType optInMAType ) /* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int apoLookback( int optInFastPeriod, /* From 2 to 100000 */ +/* Generated */ int optInSlowPeriod, /* From 2 to 100000 */ +/* Generated */ MAType optInMAType ) /* Generated */ +/* Generated */ #else +/* Generated */ int TA_APO_Lookback( int optInFastPeriod, /* From 2 to 100000 */ +/* Generated */ int optInSlowPeriod, /* From 2 to 100000 */ +/* Generated */ TA_MAType optInMAType ) /* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ /* min/max are checked for optInFastPeriod. */ +/* Generated */ if( (int)optInFastPeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInFastPeriod = 12; +/* Generated */ else if( ((int)optInFastPeriod < 2) || ((int)optInFastPeriod > 100000) ) +/* Generated */ return -1; +/* Generated */ +/* Generated */ /* min/max are checked for optInSlowPeriod. */ +/* Generated */ if( (int)optInSlowPeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInSlowPeriod = 26; +/* Generated */ else if( ((int)optInSlowPeriod < 2) || ((int)optInSlowPeriod > 100000) ) +/* Generated */ return -1; +/* Generated */ +/* Generated */ #if !defined(_MANAGED) && !defined(_JAVA) +/* Generated */ if( (int)optInMAType == TA_INTEGER_DEFAULT ) +/* Generated */ optInMAType = (TA_MAType)0; +/* Generated */ else if( ((int)optInMAType < 0) || ((int)optInMAType > 8) ) +/* Generated */ return -1; +/* Generated */ +/* Generated */ #endif /* !defined(_MANAGED) && !defined(_JAVA)*/ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + + /* The slow MA is the key factor determining the lookback period. */ + return LOOKBACK_CALL(MA)( max(optInSlowPeriod,optInFastPeriod), optInMAType ); +} + + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_APO - Absolute Price Oscillator + * + * Input = double + * Output = double + * + * Optional Parameters + * ------------------- + * optInFastPeriod:(From 2 to 100000) + * Number of period for the fast MA + * + * optInSlowPeriod:(From 2 to 100000) + * Number of period for the slow MA + * + * optInMAType: + * Type of Moving Average + * + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::Apo( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inReal, +/* Generated */ int optInFastPeriod, /* From 2 to 100000 */ +/* Generated */ int optInSlowPeriod, /* From 2 to 100000 */ +/* Generated */ MAType optInMAType, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::Apo( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ int optInFastPeriod, /* From 2 to 100000 */ +/* Generated */ int optInSlowPeriod, /* From 2 to 100000 */ +/* Generated */ MAType optInMAType, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode apo( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inReal[], +/* Generated */ int optInFastPeriod, /* From 2 to 100000 */ +/* Generated */ int optInSlowPeriod, /* From 2 to 100000 */ +/* Generated */ MAType optInMAType, +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_APO( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inReal[], +/* Generated */ int optInFastPeriod, /* From 2 to 100000 */ +/* Generated */ int optInSlowPeriod, /* From 2 to 100000 */ +/* Generated */ TA_MAType optInMAType, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* Insert local variables here. */ + ARRAY_REF(tempBuffer); + ENUM_DECLARATION(RetCode) retCode; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ /* min/max are checked for optInFastPeriod. */ +/* Generated */ if( (int)optInFastPeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInFastPeriod = 12; +/* Generated */ else if( ((int)optInFastPeriod < 2) || ((int)optInFastPeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ /* min/max are checked for optInSlowPeriod. */ +/* Generated */ if( (int)optInSlowPeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInSlowPeriod = 26; +/* Generated */ else if( ((int)optInSlowPeriod < 2) || ((int)optInSlowPeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #if !defined(_MANAGED) && !defined(_JAVA) +/* Generated */ if( (int)optInMAType == TA_INTEGER_DEFAULT ) +/* Generated */ optInMAType = (TA_MAType)0; +/* Generated */ else if( ((int)optInMAType < 0) || ((int)optInMAType > 8) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_MANAGED) && !defined(_JAVA)*/ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Insert TA function code here. */ + + /* Allocate an intermediate buffer. */ + ARRAY_ALLOC(tempBuffer, (endIdx-startIdx+1) ); + #if !defined(_JAVA) + if( !tempBuffer ) + return ENUM_VALUE(RetCode,TA_ALLOC_ERR,AllocErr); + #endif + + retCode = FUNCTION_CALL(INT_PO)( startIdx, endIdx, + inReal, + optInFastPeriod, + optInSlowPeriod, + optInMAType, + outBegIdx, + outNBElement, + outReal, + tempBuffer, + 0 /* No percentage. */ ); + + ARRAY_FREE( tempBuffer ); + + return retCode; +} + +/* Internal price oscillator function. + * + * A buffer must be provided for intermediate processing. + */ +#if defined( _MANAGED ) && defined( USE_SUBARRAY ) && !defined( USE_SINGLE_PRECISION_INPUT ) + enum class Core::RetCode Core::TA_INT_PO( int startIdx, + int endIdx, + SubArray^ inReal, + int optInFastPeriod, + int optInSlowPeriod, + MAType optInMethod_2, + [Out]int% outBegIdx, + [Out]int% outNBElement, + cli::array^ outReal, + cli::array^ tempBuffer, + int doPercentageOutput ) + +#elif defined( _MANAGED ) + enum class Core::RetCode Core::TA_INT_PO( int startIdx, + int endIdx, + cli::array^ inReal, + int optInFastPeriod, + int optInSlowPeriod, + MAType optInMethod_2, + [Out]int% outBegIdx, + [Out]int% outNBElement, + cli::array^ outReal, + cli::array^ tempBuffer, + int doPercentageOutput ) +#elif defined( _JAVA ) +RetCode TA_INT_PO( int startIdx, + int endIdx, + INPUT_TYPE inReal[], + int optInFastPeriod, + int optInSlowPeriod, + MAType optInMethod_2, + MInteger outBegIdx, + MInteger outNBElement, + double outReal[], + double tempBuffer[], + int doPercentageOutput ) + +#else +TA_RetCode TA_PREFIX(INT_PO)( int startIdx, + int endIdx, + const INPUT_TYPE *inReal, + int optInFastPeriod, + int optInSlowPeriod, + TA_MAType optInMethod_2, + int *outBegIdx, + int *outNBElement, + double *outReal, + double *tempBuffer, + int doPercentageOutput ) +#endif +{ + ENUM_DECLARATION(RetCode) retCode; + + double tempReal; + int tempInteger; + VALUE_HANDLE_INT(outBegIdx1); + VALUE_HANDLE_INT(outNbElement1); + VALUE_HANDLE_INT(outBegIdx2); + VALUE_HANDLE_INT(outNbElement2); + + int i, j; + + /* Make sure slow is really slower than + * the fast period! if not, swap... + */ + if( optInSlowPeriod < optInFastPeriod ) + { + /* swap */ + tempInteger = optInSlowPeriod; + optInSlowPeriod = optInFastPeriod; + optInFastPeriod = tempInteger; + } + + /* Calculate the fast MA into the tempBuffer. */ + retCode = FUNCTION_CALL(MA)( startIdx, endIdx, + inReal, + optInFastPeriod, + optInMethod_2, + VALUE_HANDLE_OUT(outBegIdx2), VALUE_HANDLE_OUT(outNbElement2), + tempBuffer ); + + if( retCode == ENUM_VALUE(RetCode,TA_SUCCESS,Success) ) + { + /* Calculate the slow MA into the output. */ + retCode = FUNCTION_CALL(MA)( startIdx, endIdx, + inReal, + optInSlowPeriod, + optInMethod_2, + VALUE_HANDLE_OUT(outBegIdx1), VALUE_HANDLE_OUT(outNbElement1), + outReal ); + + if( retCode == ENUM_VALUE(RetCode,TA_SUCCESS,Success) ) + { + tempInteger = VALUE_HANDLE_GET(outBegIdx1) - VALUE_HANDLE_GET(outBegIdx2); + if( doPercentageOutput != 0 ) + { + /* Calculate ((fast MA)-(slow MA))/(slow MA) in the output. */ + for( i=0,j=tempInteger; i < VALUE_HANDLE_GET(outNbElement1); i++, j++ ) + { + tempReal = outReal[i]; + if( !TA_IS_ZERO(tempReal) ) + outReal[i] = ((tempBuffer[j]-tempReal)/tempReal)*100.0; + else + outReal[i] = 0.0; + } + } + else + { + /* Calculate (fast MA)-(slow MA) in the output. */ + for( i=0,j=tempInteger; i < VALUE_HANDLE_GET(outNbElement1); i++, j++ ) + outReal[i] = tempBuffer[j]-outReal[i]; + } + + VALUE_HANDLE_DEREF(outBegIdx) = VALUE_HANDLE_GET(outBegIdx1); + VALUE_HANDLE_DEREF(outNBElement) = VALUE_HANDLE_GET(outNbElement1); + } + } + + if( retCode != ENUM_VALUE(RetCode,TA_SUCCESS,Success) ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + } + + return retCode; +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::Apo( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ int optInFastPeriod, /* From 2 to 100000 */ +/* Generated */ int optInSlowPeriod, /* From 2 to 100000 */ +/* Generated */ MAType optInMAType, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode apo( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inReal[], +/* Generated */ int optInFastPeriod, /* From 2 to 100000 */ +/* Generated */ int optInSlowPeriod, /* From 2 to 100000 */ +/* Generated */ MAType optInMAType, +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_APO( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inReal[], +/* Generated */ int optInFastPeriod, /* From 2 to 100000 */ +/* Generated */ int optInSlowPeriod, /* From 2 to 100000 */ +/* Generated */ TA_MAType optInMAType, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ ARRAY_REF(tempBuffer); +/* Generated */ ENUM_DECLARATION(RetCode) retCode; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ if( (int)optInFastPeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInFastPeriod = 12; +/* Generated */ else if( ((int)optInFastPeriod < 2) || ((int)optInFastPeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ if( (int)optInSlowPeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInSlowPeriod = 26; +/* Generated */ else if( ((int)optInSlowPeriod < 2) || ((int)optInSlowPeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #if !defined(_MANAGED) && !defined(_JAVA) +/* Generated */ if( (int)optInMAType == TA_INTEGER_DEFAULT ) +/* Generated */ optInMAType = (TA_MAType)0; +/* Generated */ else if( ((int)optInMAType < 0) || ((int)optInMAType > 8) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ ARRAY_ALLOC(tempBuffer, (endIdx-startIdx+1) ); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !tempBuffer ) +/* Generated */ return ENUM_VALUE(RetCode,TA_ALLOC_ERR,AllocErr); +/* Generated */ #endif +/* Generated */ retCode = FUNCTION_CALL(INT_PO)( startIdx, endIdx, +/* Generated */ inReal, +/* Generated */ optInFastPeriod, +/* Generated */ optInSlowPeriod, +/* Generated */ optInMAType, +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ outReal, +/* Generated */ tempBuffer, +/* Generated */ 0 ); +/* Generated */ ARRAY_FREE( tempBuffer ); +/* Generated */ return retCode; +/* Generated */ } +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) && !defined( USE_SINGLE_PRECISION_INPUT ) +/* Generated */ enum class Core::RetCode Core::TA_INT_PO( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inReal, +/* Generated */ int optInFastPeriod, +/* Generated */ int optInSlowPeriod, +/* Generated */ MAType optInMethod_2, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal, +/* Generated */ cli::array^ tempBuffer, +/* Generated */ int doPercentageOutput ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::TA_INT_PO( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ int optInFastPeriod, +/* Generated */ int optInSlowPeriod, +/* Generated */ MAType optInMethod_2, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal, +/* Generated */ cli::array^ tempBuffer, +/* Generated */ int doPercentageOutput ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ RetCode TA_INT_PO( int startIdx, +/* Generated */ int endIdx, +/* Generated */ INPUT_TYPE inReal[], +/* Generated */ int optInFastPeriod, +/* Generated */ int optInSlowPeriod, +/* Generated */ MAType optInMethod_2, +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[], +/* Generated */ double tempBuffer[], +/* Generated */ int doPercentageOutput ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_PREFIX(INT_PO)( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const INPUT_TYPE *inReal, +/* Generated */ int optInFastPeriod, +/* Generated */ int optInSlowPeriod, +/* Generated */ TA_MAType optInMethod_2, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double *outReal, +/* Generated */ double *tempBuffer, +/* Generated */ int doPercentageOutput ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ ENUM_DECLARATION(RetCode) retCode; +/* Generated */ double tempReal; +/* Generated */ int tempInteger; +/* Generated */ VALUE_HANDLE_INT(outBegIdx1); +/* Generated */ VALUE_HANDLE_INT(outNbElement1); +/* Generated */ VALUE_HANDLE_INT(outBegIdx2); +/* Generated */ VALUE_HANDLE_INT(outNbElement2); +/* Generated */ int i, j; +/* Generated */ if( optInSlowPeriod < optInFastPeriod ) +/* Generated */ { +/* Generated */ tempInteger = optInSlowPeriod; +/* Generated */ optInSlowPeriod = optInFastPeriod; +/* Generated */ optInFastPeriod = tempInteger; +/* Generated */ } +/* Generated */ retCode = FUNCTION_CALL(MA)( startIdx, endIdx, +/* Generated */ inReal, +/* Generated */ optInFastPeriod, +/* Generated */ optInMethod_2, +/* Generated */ VALUE_HANDLE_OUT(outBegIdx2), VALUE_HANDLE_OUT(outNbElement2), +/* Generated */ tempBuffer ); +/* Generated */ if( retCode == ENUM_VALUE(RetCode,TA_SUCCESS,Success) ) +/* Generated */ { +/* Generated */ retCode = FUNCTION_CALL(MA)( startIdx, endIdx, +/* Generated */ inReal, +/* Generated */ optInSlowPeriod, +/* Generated */ optInMethod_2, +/* Generated */ VALUE_HANDLE_OUT(outBegIdx1), VALUE_HANDLE_OUT(outNbElement1), +/* Generated */ outReal ); +/* Generated */ if( retCode == ENUM_VALUE(RetCode,TA_SUCCESS,Success) ) +/* Generated */ { +/* Generated */ tempInteger = VALUE_HANDLE_GET(outBegIdx1) - VALUE_HANDLE_GET(outBegIdx2); +/* Generated */ if( doPercentageOutput != 0 ) +/* Generated */ { +/* Generated */ for( i=0,j=tempInteger; i < VALUE_HANDLE_GET(outNbElement1); i++, j++ ) +/* Generated */ { +/* Generated */ tempReal = outReal[i]; +/* Generated */ if( !TA_IS_ZERO(tempReal) ) +/* Generated */ outReal[i] = ((tempBuffer[j]-tempReal)/tempReal)*100.0; +/* Generated */ else +/* Generated */ outReal[i] = 0.0; +/* Generated */ } +/* Generated */ } +/* Generated */ else +/* Generated */ { +/* Generated */ for( i=0,j=tempInteger; i < VALUE_HANDLE_GET(outNbElement1); i++, j++ ) +/* Generated */ outReal[i] = tempBuffer[j]-outReal[i]; +/* Generated */ } +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = VALUE_HANDLE_GET(outBegIdx1); +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = VALUE_HANDLE_GET(outNbElement1); +/* Generated */ } +/* Generated */ } +/* Generated */ if( retCode != ENUM_VALUE(RetCode,TA_SUCCESS,Success) ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ } +/* Generated */ return retCode; +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_AROON.c b/src/ta_func/ta_AROON.c new file mode 100644 index 000000000..9ef005beb --- /dev/null +++ b/src/ta_func/ta_AROON.c @@ -0,0 +1,450 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * MF Mario Fortier + * AM Adrian Michel + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 120802 MF Template creation. + * 052603 MF Adapt code to compile with .NET Managed C++ + * 050703 MF Fix algorithm base on Adrian Michel bug report #748163 + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::AroonLookback( int optInTimePeriod ) /* From 2 to 100000 */ +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int aroonLookback( int optInTimePeriod ) /* From 2 to 100000 */ +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_AROON_Lookback( int optInTimePeriod ) /* From 2 to 100000 */ +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ /* min/max are checked for optInTimePeriod. */ +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 14; +/* Generated */ else if( ((int)optInTimePeriod < 2) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return -1; +/* Generated */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + return optInTimePeriod; +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_AROON - Aroon + * + * Input = High, Low + * Output = double, double + * + * Optional Parameters + * ------------------- + * optInTimePeriod:(From 2 to 100000) + * Number of period + * + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::Aroon( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inHigh, +/* Generated */ SubArray^ inLow, +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outAroonDown, +/* Generated */ cli::array^ outAroonUp ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::Aroon( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outAroonDown, +/* Generated */ cli::array^ outAroonUp ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode aroon( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inHigh[], +/* Generated */ double inLow[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outAroonDown[], +/* Generated */ double outAroonUp[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_AROON( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inHigh[], +/* Generated */ const double inLow[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outAroonDown[], +/* Generated */ double outAroonUp[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + double lowest, highest, tmp, factor; + int outIdx; + int trailingIdx, lowestIdx, highestIdx, today, i; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ /* Verify required price component. */ +/* Generated */ if(!inHigh||!inLow) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ /* min/max are checked for optInTimePeriod. */ +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 14; +/* Generated */ else if( ((int)optInTimePeriod < 2) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outAroonDown ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ if( !outAroonUp ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Insert TA function code here. */ + + /* This function is using a speed optimized algorithm + * for the min/max logic. + * + * You might want to first look at how TA_MIN/TA_MAX works + * and this function will become easier to understand. + */ + + /* Move up the start index if there is not + * enough initial data. + */ + if( startIdx < optInTimePeriod ) + startIdx = optInTimePeriod; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + + /* Proceed with the calculation for the requested range. + * Note that this algorithm allows the input and + * output to be the same buffer. + */ + outIdx = 0; + today = startIdx; + trailingIdx = startIdx-optInTimePeriod; + lowestIdx = -1; + highestIdx = -1; + lowest = 0.0; + highest = 0.0; + factor = (double)100.0/(double)optInTimePeriod; + + while( today <= endIdx ) + { + /* Keep track of the lowestIdx */ + tmp = inLow[today]; + if( lowestIdx < trailingIdx ) + { + lowestIdx = trailingIdx; + lowest = inLow[lowestIdx]; + i = lowestIdx; + while( ++i<=today ) + { + tmp = inLow[i]; + if( tmp <= lowest ) + { + lowestIdx = i; + lowest = tmp; + } + } + } + else if( tmp <= lowest ) + { + lowestIdx = today; + lowest = tmp; + } + + /* Keep track of the highestIdx */ + tmp = inHigh[today]; + if( highestIdx < trailingIdx ) + { + highestIdx = trailingIdx; + highest = inHigh[highestIdx]; + i = highestIdx; + while( ++i<=today ) + { + tmp = inHigh[i]; + if( tmp >= highest ) + { + highestIdx = i; + highest = tmp; + } + } + } + else if( tmp >= highest ) + { + highestIdx = today; + highest = tmp; + } + + /* Note: Do not forget that input and output buffer can be the same, + * so writing to the output is the last thing being done here. + */ + outAroonUp[outIdx] = factor*(optInTimePeriod-(today-highestIdx)); + outAroonDown[outIdx] = factor*(optInTimePeriod-(today-lowestIdx)); + + outIdx++; + trailingIdx++; + today++; + } + + /* Keep the outBegIdx relative to the + * caller input before returning. + */ + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::Aroon( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outAroonDown, +/* Generated */ cli::array^ outAroonUp ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode aroon( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inHigh[], +/* Generated */ float inLow[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outAroonDown[], +/* Generated */ double outAroonUp[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_AROON( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inHigh[], +/* Generated */ const float inLow[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outAroonDown[], +/* Generated */ double outAroonUp[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ double lowest, highest, tmp, factor; +/* Generated */ int outIdx; +/* Generated */ int trailingIdx, lowestIdx, highestIdx, today, i; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if(!inHigh||!inLow) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 14; +/* Generated */ else if( ((int)optInTimePeriod < 2) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outAroonDown ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ if( !outAroonUp ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ if( startIdx < optInTimePeriod ) +/* Generated */ startIdx = optInTimePeriod; +/* Generated */ if( startIdx > endIdx ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ outIdx = 0; +/* Generated */ today = startIdx; +/* Generated */ trailingIdx = startIdx-optInTimePeriod; +/* Generated */ lowestIdx = -1; +/* Generated */ highestIdx = -1; +/* Generated */ lowest = 0.0; +/* Generated */ highest = 0.0; +/* Generated */ factor = (double)100.0/(double)optInTimePeriod; +/* Generated */ while( today <= endIdx ) +/* Generated */ { +/* Generated */ tmp = inLow[today]; +/* Generated */ if( lowestIdx < trailingIdx ) +/* Generated */ { +/* Generated */ lowestIdx = trailingIdx; +/* Generated */ lowest = inLow[lowestIdx]; +/* Generated */ i = lowestIdx; +/* Generated */ while( ++i<=today ) +/* Generated */ { +/* Generated */ tmp = inLow[i]; +/* Generated */ if( tmp <= lowest ) +/* Generated */ { +/* Generated */ lowestIdx = i; +/* Generated */ lowest = tmp; +/* Generated */ } +/* Generated */ } +/* Generated */ } +/* Generated */ else if( tmp <= lowest ) +/* Generated */ { +/* Generated */ lowestIdx = today; +/* Generated */ lowest = tmp; +/* Generated */ } +/* Generated */ tmp = inHigh[today]; +/* Generated */ if( highestIdx < trailingIdx ) +/* Generated */ { +/* Generated */ highestIdx = trailingIdx; +/* Generated */ highest = inHigh[highestIdx]; +/* Generated */ i = highestIdx; +/* Generated */ while( ++i<=today ) +/* Generated */ { +/* Generated */ tmp = inHigh[i]; +/* Generated */ if( tmp >= highest ) +/* Generated */ { +/* Generated */ highestIdx = i; +/* Generated */ highest = tmp; +/* Generated */ } +/* Generated */ } +/* Generated */ } +/* Generated */ else if( tmp >= highest ) +/* Generated */ { +/* Generated */ highestIdx = today; +/* Generated */ highest = tmp; +/* Generated */ } +/* Generated */ outAroonUp[outIdx] = factor*(optInTimePeriod-(today-highestIdx)); +/* Generated */ outAroonDown[outIdx] = factor*(optInTimePeriod-(today-lowestIdx)); +/* Generated */ outIdx++; +/* Generated */ trailingIdx++; +/* Generated */ today++; +/* Generated */ } +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_AROONOSC.c b/src/ta_func/ta_AROONOSC.c new file mode 100644 index 000000000..5d99c4d5a --- /dev/null +++ b/src/ta_func/ta_AROONOSC.c @@ -0,0 +1,456 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * MF Mario Fortier + * AM Adrian Michel + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 120802 MF Template creation. + * 052603 MF Adapt code to compile with .NET Managed C++ + * 050703 MF Fix algorithm base on Adrian Michel bug report #748163 + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::AroonOscLookback( int optInTimePeriod ) /* From 2 to 100000 */ +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int aroonOscLookback( int optInTimePeriod ) /* From 2 to 100000 */ +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_AROONOSC_Lookback( int optInTimePeriod ) /* From 2 to 100000 */ +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ /* min/max are checked for optInTimePeriod. */ +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 14; +/* Generated */ else if( ((int)optInTimePeriod < 2) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return -1; +/* Generated */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + return optInTimePeriod; +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_AROONOSC - Aroon Oscillator + * + * Input = High, Low + * Output = double + * + * Optional Parameters + * ------------------- + * optInTimePeriod:(From 2 to 100000) + * Number of period + * + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::AroonOsc( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inHigh, +/* Generated */ SubArray^ inLow, +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::AroonOsc( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode aroonOsc( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inHigh[], +/* Generated */ double inLow[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_AROONOSC( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inHigh[], +/* Generated */ const double inLow[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + double lowest, highest, tmp, factor, aroon; + int outIdx; + int trailingIdx, lowestIdx, highestIdx, today, i; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ /* Verify required price component. */ +/* Generated */ if(!inHigh||!inLow) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ /* min/max are checked for optInTimePeriod. */ +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 14; +/* Generated */ else if( ((int)optInTimePeriod < 2) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Insert TA function code here. */ + + /* This code is almost identical to the TA_AROON function + * except that instead of outputing ArroonUp and AroonDown + * individually, an oscillator is build from both. + * + * AroonOsc = AroonUp- AroonDown; + * + */ + + /* This function is using a speed optimized algorithm + * for the min/max logic. + * + * You might want to first look at how TA_MIN/TA_MAX works + * and this function will become easier to understand. + */ + + /* Move up the start index if there is not + * enough initial data. + */ + if( startIdx < optInTimePeriod ) + startIdx = optInTimePeriod; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + + /* Proceed with the calculation for the requested range. + * Note that this algorithm allows the input and + * output to be the same buffer. + */ + outIdx = 0; + today = startIdx; + trailingIdx = startIdx-optInTimePeriod; + lowestIdx = -1; + highestIdx = -1; + lowest = 0.0; + highest = 0.0; + factor = (double)100.0/(double)optInTimePeriod; + + while( today <= endIdx ) + { + /* Keep track of the lowestIdx */ + tmp = inLow[today]; + if( lowestIdx < trailingIdx ) + { + lowestIdx = trailingIdx; + lowest = inLow[lowestIdx]; + i = lowestIdx; + while( ++i<=today ) + { + tmp = inLow[i]; + if( tmp <= lowest ) + { + lowestIdx = i; + lowest = tmp; + } + } + } + else if( tmp <= lowest ) + { + lowestIdx = today; + lowest = tmp; + } + + /* Keep track of the highestIdx */ + tmp = inHigh[today]; + if( highestIdx < trailingIdx ) + { + highestIdx = trailingIdx; + highest = inHigh[highestIdx]; + i = highestIdx; + while( ++i<=today ) + { + tmp = inHigh[i]; + if( tmp >= highest ) + { + highestIdx = i; + highest = tmp; + } + } + } + else if( tmp >= highest ) + { + highestIdx = today; + highest = tmp; + } + + /* The oscillator is the following: + * AroonUp = factor*(optInTimePeriod-(today-highestIdx)); + * AroonDown = factor*(optInTimePeriod-(today-lowestIdx)); + * AroonOsc = AroonUp-AroonDown; + * + * An arithmetic simplification give us: + * Aroon = factor*(highestIdx-lowestIdx) + */ + aroon = factor*(highestIdx-lowestIdx); + + /* Note: Do not forget that input and output buffer can be the same, + * so writing to the output is the last thing being done here. + */ + outReal[outIdx] = aroon; + + outIdx++; + trailingIdx++; + today++; + } + + /* Keep the outBegIdx relative to the + * caller input before returning. + */ + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::AroonOsc( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode aroonOsc( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inHigh[], +/* Generated */ float inLow[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_AROONOSC( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inHigh[], +/* Generated */ const float inLow[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ double lowest, highest, tmp, factor, aroon; +/* Generated */ int outIdx; +/* Generated */ int trailingIdx, lowestIdx, highestIdx, today, i; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if(!inHigh||!inLow) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 14; +/* Generated */ else if( ((int)optInTimePeriod < 2) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ if( startIdx < optInTimePeriod ) +/* Generated */ startIdx = optInTimePeriod; +/* Generated */ if( startIdx > endIdx ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ outIdx = 0; +/* Generated */ today = startIdx; +/* Generated */ trailingIdx = startIdx-optInTimePeriod; +/* Generated */ lowestIdx = -1; +/* Generated */ highestIdx = -1; +/* Generated */ lowest = 0.0; +/* Generated */ highest = 0.0; +/* Generated */ factor = (double)100.0/(double)optInTimePeriod; +/* Generated */ while( today <= endIdx ) +/* Generated */ { +/* Generated */ tmp = inLow[today]; +/* Generated */ if( lowestIdx < trailingIdx ) +/* Generated */ { +/* Generated */ lowestIdx = trailingIdx; +/* Generated */ lowest = inLow[lowestIdx]; +/* Generated */ i = lowestIdx; +/* Generated */ while( ++i<=today ) +/* Generated */ { +/* Generated */ tmp = inLow[i]; +/* Generated */ if( tmp <= lowest ) +/* Generated */ { +/* Generated */ lowestIdx = i; +/* Generated */ lowest = tmp; +/* Generated */ } +/* Generated */ } +/* Generated */ } +/* Generated */ else if( tmp <= lowest ) +/* Generated */ { +/* Generated */ lowestIdx = today; +/* Generated */ lowest = tmp; +/* Generated */ } +/* Generated */ tmp = inHigh[today]; +/* Generated */ if( highestIdx < trailingIdx ) +/* Generated */ { +/* Generated */ highestIdx = trailingIdx; +/* Generated */ highest = inHigh[highestIdx]; +/* Generated */ i = highestIdx; +/* Generated */ while( ++i<=today ) +/* Generated */ { +/* Generated */ tmp = inHigh[i]; +/* Generated */ if( tmp >= highest ) +/* Generated */ { +/* Generated */ highestIdx = i; +/* Generated */ highest = tmp; +/* Generated */ } +/* Generated */ } +/* Generated */ } +/* Generated */ else if( tmp >= highest ) +/* Generated */ { +/* Generated */ highestIdx = today; +/* Generated */ highest = tmp; +/* Generated */ } +/* Generated */ aroon = factor*(highestIdx-lowestIdx); +/* Generated */ outReal[outIdx] = aroon; +/* Generated */ outIdx++; +/* Generated */ trailingIdx++; +/* Generated */ today++; +/* Generated */ } +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_ASIN.c b/src/ta_func/ta_ASIN.c new file mode 100644 index 000000000..c118cae6e --- /dev/null +++ b/src/ta_func/ta_ASIN.c @@ -0,0 +1,241 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * MF Mario Fortier + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 090807 MF Initial Version + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::AsinLookback( void ) +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int asinLookback( ) +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_ASIN_Lookback( void ) +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ /* No parameters to validate. */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + + return 0; +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_ASIN - Vector Trigonometric ASin + * + * Input = double + * Output = double + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::Asin( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inReal, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::Asin( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode asin( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inReal[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_ASIN( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inReal[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + int outIdx; + int i; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Insert TA function code here. */ + + /* Default return values */ + for( i=startIdx, outIdx=0; i <= endIdx; i++, outIdx++ ) + { + outReal[outIdx] = std_asin(inReal[i]); + } + + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::Asin( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode asin( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inReal[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_ASIN( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inReal[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ int outIdx; +/* Generated */ int i; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ for( i=startIdx, outIdx=0; i <= endIdx; i++, outIdx++ ) +/* Generated */ { +/* Generated */ outReal[outIdx] = std_asin(inReal[i]); +/* Generated */ } +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_ATAN.c b/src/ta_func/ta_ATAN.c new file mode 100644 index 000000000..b8efdc0f4 --- /dev/null +++ b/src/ta_func/ta_ATAN.c @@ -0,0 +1,241 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * MF Mario Fortier + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 090807 MF Initial Version + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::AtanLookback( void ) +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int atanLookback( ) +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_ATAN_Lookback( void ) +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ /* No parameters to validate. */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + + return 0; +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_ATAN - Vector Trigonometric ATan + * + * Input = double + * Output = double + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::Atan( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inReal, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::Atan( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode atan( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inReal[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_ATAN( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inReal[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + int outIdx; + int i; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Insert TA function code here. */ + + /* Default return values */ + for( i=startIdx, outIdx=0; i <= endIdx; i++, outIdx++ ) + { + outReal[outIdx] = std_atan(inReal[i]); + } + + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::Atan( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode atan( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inReal[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_ATAN( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inReal[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ int outIdx; +/* Generated */ int i; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ for( i=startIdx, outIdx=0; i <= endIdx; i++, outIdx++ ) +/* Generated */ { +/* Generated */ outReal[outIdx] = std_atan(inReal[i]); +/* Generated */ } +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_ATR.c b/src/ta_func/ta_ATR.c new file mode 100644 index 000000000..0367fffac --- /dev/null +++ b/src/ta_func/ta_ATR.c @@ -0,0 +1,453 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * MF Mario Fortier + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 112400 MF Template creation. + * 052603 MF Adapt code to compile with .NET Managed C++ + * + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::AtrLookback( int optInTimePeriod ) /* From 1 to 100000 */ +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int atrLookback( int optInTimePeriod ) /* From 1 to 100000 */ +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_ATR_Lookback( int optInTimePeriod ) /* From 1 to 100000 */ +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ /* min/max are checked for optInTimePeriod. */ +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 14; +/* Generated */ else if( ((int)optInTimePeriod < 1) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return -1; +/* Generated */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + + /* The ATR lookback is the sum of: + * 1 + (optInTimePeriod - 1) + * + * Where 1 is for the True Range, and + * (optInTimePeriod-1) is for the simple + * moving average. + */ + return optInTimePeriod + TA_GLOBALS_UNSTABLE_PERIOD(TA_FUNC_UNST_ATR,Atr); +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_ATR - Average True Range + * + * Input = High, Low, Close + * Output = double + * + * Optional Parameters + * ------------------- + * optInTimePeriod:(From 1 to 100000) + * Number of period + * + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::Atr( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inHigh, +/* Generated */ SubArray^ inLow, +/* Generated */ SubArray^ inClose, +/* Generated */ int optInTimePeriod, /* From 1 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::Atr( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ int optInTimePeriod, /* From 1 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode atr( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inHigh[], +/* Generated */ double inLow[], +/* Generated */ double inClose[], +/* Generated */ int optInTimePeriod, /* From 1 to 100000 */ +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_ATR( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inHigh[], +/* Generated */ const double inLow[], +/* Generated */ const double inClose[], +/* Generated */ int optInTimePeriod, /* From 1 to 100000 */ +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* Insert local variables here. */ + ENUM_DECLARATION(RetCode) retCode; + int outIdx, today, lookbackTotal; + int nbATR; + VALUE_HANDLE_INT(outBegIdx1); + VALUE_HANDLE_INT(outNbElement1); + + double prevATR; + ARRAY_REF( tempBuffer ); + ARRAY_LOCAL(prevATRTemp,1); + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ /* Verify required price component. */ +/* Generated */ if(!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ /* min/max are checked for optInTimePeriod. */ +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 14; +/* Generated */ else if( ((int)optInTimePeriod < 1) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Average True Range is the greatest of the following: + * + * val1 = distance from today's high to today's low. + * val2 = distance from yesterday's close to today's high. + * val3 = distance from yesterday's close to today's low. + * + * These value are averaged for the specified period using + * Wilder method. This method have an unstable period comparable + * to and Exponential Moving Average (EMA). + */ + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + + /* Adjust startIdx to account for the lookback period. */ + lookbackTotal = LOOKBACK_CALL(ATR)( optInTimePeriod ); + + if( startIdx < lookbackTotal ) + startIdx = lookbackTotal; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + + /* Trap the case where no smoothing is needed. */ + if( optInTimePeriod <= 1 ) + { + /* No smoothing needed. Just do a TRANGE. */ + return FUNCTION_CALL(TRANGE)( startIdx, endIdx, + inHigh, inLow, inClose, + outBegIdx, outNBElement, outReal ); + } + + /* Allocate an intermediate buffer for TRANGE. */ + ARRAY_ALLOC(tempBuffer, lookbackTotal+(endIdx-startIdx)+1 ); + + /* Do TRANGE in the intermediate buffer. */ + retCode = FUNCTION_CALL(TRANGE)( (startIdx-lookbackTotal+1), endIdx, + inHigh, inLow, inClose, + VALUE_HANDLE_OUT(outBegIdx1), VALUE_HANDLE_OUT(outNbElement1), + tempBuffer ); + + if( retCode != ENUM_VALUE(RetCode,TA_SUCCESS,Success) ) + { + ARRAY_FREE( tempBuffer ); + return retCode; + } + + /* First value of the ATR is a simple Average of + * the TRANGE output for the specified period. + */ + retCode = FUNCTION_CALL_DOUBLE(INT_SMA)( optInTimePeriod-1, + optInTimePeriod-1, + tempBuffer, optInTimePeriod, + VALUE_HANDLE_OUT(outBegIdx1), VALUE_HANDLE_OUT(outNbElement1), + prevATRTemp ); + + if( retCode != ENUM_VALUE(RetCode,TA_SUCCESS,Success) ) + { + ARRAY_FREE( tempBuffer ); + return retCode; + } + prevATR = prevATRTemp[0]; + + /* Subsequent value are smoothed using the + * previous ATR value (Wilder's approach). + * 1) Multiply the previous ATR by 'period-1'. + * 2) Add today TR value. + * 3) Divide by 'period'. + */ + today = optInTimePeriod; + outIdx = TA_GLOBALS_UNSTABLE_PERIOD(TA_FUNC_UNST_ATR,Atr); + /* Skip the unstable period. */ + while( outIdx != 0 ) + { + prevATR *= optInTimePeriod - 1; + prevATR += tempBuffer[today++]; + prevATR /= optInTimePeriod; + outIdx--; + } + + /* Now start to write the final ATR in the caller + * provided outReal. + */ + outIdx = 1; + outReal[0] = prevATR; + + /* Now do the number of requested ATR. */ + nbATR = (endIdx - startIdx)+1; + + while( --nbATR != 0 ) + { + prevATR *= optInTimePeriod - 1; + prevATR += tempBuffer[today++]; + prevATR /= optInTimePeriod; + outReal[outIdx++] = prevATR; + } + + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + + ARRAY_FREE( tempBuffer ); + + return retCode; +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::Atr( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ int optInTimePeriod, /* From 1 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode atr( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inHigh[], +/* Generated */ float inLow[], +/* Generated */ float inClose[], +/* Generated */ int optInTimePeriod, /* From 1 to 100000 */ +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_ATR( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inHigh[], +/* Generated */ const float inLow[], +/* Generated */ const float inClose[], +/* Generated */ int optInTimePeriod, /* From 1 to 100000 */ +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ ENUM_DECLARATION(RetCode) retCode; +/* Generated */ int outIdx, today, lookbackTotal; +/* Generated */ int nbATR; +/* Generated */ VALUE_HANDLE_INT(outBegIdx1); +/* Generated */ VALUE_HANDLE_INT(outNbElement1); +/* Generated */ double prevATR; +/* Generated */ ARRAY_REF( tempBuffer ); +/* Generated */ ARRAY_LOCAL(prevATRTemp,1); +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if(!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 14; +/* Generated */ else if( ((int)optInTimePeriod < 1) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ lookbackTotal = LOOKBACK_CALL(ATR)( optInTimePeriod ); +/* Generated */ if( startIdx < lookbackTotal ) +/* Generated */ startIdx = lookbackTotal; +/* Generated */ if( startIdx > endIdx ) +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ if( optInTimePeriod <= 1 ) +/* Generated */ { +/* Generated */ return FUNCTION_CALL(TRANGE)( startIdx, endIdx, +/* Generated */ inHigh, inLow, inClose, +/* Generated */ outBegIdx, outNBElement, outReal ); +/* Generated */ } +/* Generated */ ARRAY_ALLOC(tempBuffer, lookbackTotal+(endIdx-startIdx)+1 ); +/* Generated */ retCode = FUNCTION_CALL(TRANGE)( (startIdx-lookbackTotal+1), endIdx, +/* Generated */ inHigh, inLow, inClose, +/* Generated */ VALUE_HANDLE_OUT(outBegIdx1), VALUE_HANDLE_OUT(outNbElement1), +/* Generated */ tempBuffer ); +/* Generated */ if( retCode != ENUM_VALUE(RetCode,TA_SUCCESS,Success) ) +/* Generated */ { +/* Generated */ ARRAY_FREE( tempBuffer ); +/* Generated */ return retCode; +/* Generated */ } +/* Generated */ retCode = FUNCTION_CALL_DOUBLE(INT_SMA)( optInTimePeriod-1, +/* Generated */ optInTimePeriod-1, +/* Generated */ tempBuffer, optInTimePeriod, +/* Generated */ VALUE_HANDLE_OUT(outBegIdx1), VALUE_HANDLE_OUT(outNbElement1), +/* Generated */ prevATRTemp ); +/* Generated */ if( retCode != ENUM_VALUE(RetCode,TA_SUCCESS,Success) ) +/* Generated */ { +/* Generated */ ARRAY_FREE( tempBuffer ); +/* Generated */ return retCode; +/* Generated */ } +/* Generated */ prevATR = prevATRTemp[0]; +/* Generated */ today = optInTimePeriod; +/* Generated */ outIdx = TA_GLOBALS_UNSTABLE_PERIOD(TA_FUNC_UNST_ATR,Atr); +/* Generated */ while( outIdx != 0 ) +/* Generated */ { +/* Generated */ prevATR *= optInTimePeriod - 1; +/* Generated */ prevATR += tempBuffer[today++]; +/* Generated */ prevATR /= optInTimePeriod; +/* Generated */ outIdx--; +/* Generated */ } +/* Generated */ outIdx = 1; +/* Generated */ outReal[0] = prevATR; +/* Generated */ nbATR = (endIdx - startIdx)+1; +/* Generated */ while( --nbATR != 0 ) +/* Generated */ { +/* Generated */ prevATR *= optInTimePeriod - 1; +/* Generated */ prevATR += tempBuffer[today++]; +/* Generated */ prevATR /= optInTimePeriod; +/* Generated */ outReal[outIdx++] = prevATR; +/* Generated */ } +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ ARRAY_FREE( tempBuffer ); +/* Generated */ return retCode; +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_AVGPRICE.c b/src/ta_func/ta_AVGPRICE.c new file mode 100644 index 000000000..36427e8e9 --- /dev/null +++ b/src/ta_func/ta_AVGPRICE.c @@ -0,0 +1,278 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * MF Mario Fortier + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 010802 MF Template creation. + * 052603 MF Adapt code to compile with .NET Managed C++ + * 112605 MF Fix outBegIdx when startIdx != 0 + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::AvgPriceLookback( void ) +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int avgPriceLookback( ) +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_AVGPRICE_Lookback( void ) +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ /* No parameters to validate. */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + + /* This function have no lookback needed. */ + return 0; +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_AVGPRICE - Average Price + * + * Input = Open, High, Low, Close + * Output = double + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::AvgPrice( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inOpen, +/* Generated */ SubArray^ inHigh, +/* Generated */ SubArray^ inLow, +/* Generated */ SubArray^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::AvgPrice( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inOpen, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode avgPrice( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inOpen[], +/* Generated */ double inHigh[], +/* Generated */ double inLow[], +/* Generated */ double inClose[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_AVGPRICE( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inOpen[], +/* Generated */ const double inHigh[], +/* Generated */ const double inLow[], +/* Generated */ const double inClose[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + int outIdx, i; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ /* Verify required price component. */ +/* Generated */ if(!inOpen||!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Insert TA function code here. */ + + /* Average price = (High + Low + Open + Close) / 4 */ + + outIdx = 0; + + for( i=startIdx; i <= endIdx; i++ ) + { + outReal[outIdx++] = ( inHigh [i] + + inLow [i] + + inClose[i] + + inOpen [i]) / 4; + } + + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::AvgPrice( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inOpen, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode avgPrice( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inOpen[], +/* Generated */ float inHigh[], +/* Generated */ float inLow[], +/* Generated */ float inClose[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_AVGPRICE( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inOpen[], +/* Generated */ const float inHigh[], +/* Generated */ const float inLow[], +/* Generated */ const float inClose[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ int outIdx, i; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if(!inOpen||!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ outIdx = 0; +/* Generated */ for( i=startIdx; i <= endIdx; i++ ) +/* Generated */ { +/* Generated */ outReal[outIdx++] = ( inHigh [i] + +/* Generated */ inLow [i] + +/* Generated */ inClose[i] + +/* Generated */ inOpen [i]) / 4; +/* Generated */ } +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_BBANDS.c b/src/ta_func/ta_BBANDS.c new file mode 100644 index 000000000..e1c198802 --- /dev/null +++ b/src/ta_func/ta_BBANDS.c @@ -0,0 +1,643 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * MF Mario Fortier + * JV Jesus Viver <324122@cienz.unizar.es> + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 112400 MF Template creation. + * 010503 MF Fix to always use SMA for the STDDEV (Thanks to JV). + * 052603 MF Adapt code to compile with .NET Managed C++ + * + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::BbandsLookback( int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ double optInNbDevUp, /* From TA_REAL_MIN to TA_REAL_MAX */ +/* Generated */ double optInNbDevDn, /* From TA_REAL_MIN to TA_REAL_MAX */ +/* Generated */ MAType optInMAType ) /* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int bbandsLookback( int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ double optInNbDevUp, /* From TA_REAL_MIN to TA_REAL_MAX */ +/* Generated */ double optInNbDevDn, /* From TA_REAL_MIN to TA_REAL_MAX */ +/* Generated */ MAType optInMAType ) /* Generated */ +/* Generated */ #else +/* Generated */ int TA_BBANDS_Lookback( int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ double optInNbDevUp, /* From TA_REAL_MIN to TA_REAL_MAX */ +/* Generated */ double optInNbDevDn, /* From TA_REAL_MIN to TA_REAL_MAX */ +/* Generated */ TA_MAType optInMAType ) /* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ /* min/max are checked for optInTimePeriod. */ +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 5; +/* Generated */ else if( ((int)optInTimePeriod < 2) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return -1; +/* Generated */ +/* Generated */ if( optInNbDevUp == TA_REAL_DEFAULT ) +/* Generated */ optInNbDevUp = 2.000000e+0; +/* Generated */ else if( (optInNbDevUp < -3.000000e+37) ||/* Generated */ (optInNbDevUp > 3.000000e+37) ) +/* Generated */ return -1; +/* Generated */ +/* Generated */ if( optInNbDevDn == TA_REAL_DEFAULT ) +/* Generated */ optInNbDevDn = 2.000000e+0; +/* Generated */ else if( (optInNbDevDn < -3.000000e+37) ||/* Generated */ (optInNbDevDn > 3.000000e+37) ) +/* Generated */ return -1; +/* Generated */ +/* Generated */ #if !defined(_MANAGED) && !defined(_JAVA) +/* Generated */ if( (int)optInMAType == TA_INTEGER_DEFAULT ) +/* Generated */ optInMAType = (TA_MAType)0; +/* Generated */ else if( ((int)optInMAType < 0) || ((int)optInMAType > 8) ) +/* Generated */ return -1; +/* Generated */ +/* Generated */ #endif /* !defined(_MANAGED) && !defined(_JAVA)*/ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + UNUSED_VARIABLE(optInNbDevUp); + UNUSED_VARIABLE(optInNbDevDn); + + /* The lookback is driven by the middle band moving average. */ + return LOOKBACK_CALL(MA)( optInTimePeriod, optInMAType ); +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_BBANDS - Bollinger Bands + * + * Input = double + * Output = double, double, double + * + * Optional Parameters + * ------------------- + * optInTimePeriod:(From 2 to 100000) + * Number of period + * + * optInNbDevUp:(From TA_REAL_MIN to TA_REAL_MAX) + * Deviation multiplier for upper band + * + * optInNbDevDn:(From TA_REAL_MIN to TA_REAL_MAX) + * Deviation multiplier for lower band + * + * optInMAType: + * Type of Moving Average + * + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::Bbands( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inReal, +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ double optInNbDevUp, /* From TA_REAL_MIN to TA_REAL_MAX */ +/* Generated */ double optInNbDevDn, /* From TA_REAL_MIN to TA_REAL_MAX */ +/* Generated */ MAType optInMAType, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outRealUpperBand, +/* Generated */ cli::array^ outRealMiddleBand, +/* Generated */ cli::array^ outRealLowerBand ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::Bbands( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ double optInNbDevUp, /* From TA_REAL_MIN to TA_REAL_MAX */ +/* Generated */ double optInNbDevDn, /* From TA_REAL_MIN to TA_REAL_MAX */ +/* Generated */ MAType optInMAType, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outRealUpperBand, +/* Generated */ cli::array^ outRealMiddleBand, +/* Generated */ cli::array^ outRealLowerBand ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode bbands( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inReal[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ double optInNbDevUp, /* From TA_REAL_MIN to TA_REAL_MAX */ +/* Generated */ double optInNbDevDn, /* From TA_REAL_MIN to TA_REAL_MAX */ +/* Generated */ MAType optInMAType, +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outRealUpperBand[], +/* Generated */ double outRealMiddleBand[], +/* Generated */ double outRealLowerBand[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_BBANDS( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inReal[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ double optInNbDevUp, /* From TA_REAL_MIN to TA_REAL_MAX */ +/* Generated */ double optInNbDevDn, /* From TA_REAL_MIN to TA_REAL_MAX */ +/* Generated */ TA_MAType optInMAType, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outRealUpperBand[], +/* Generated */ double outRealMiddleBand[], +/* Generated */ double outRealLowerBand[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* Insert local variables here. */ + ENUM_DECLARATION(RetCode) retCode; + int i; + double tempReal, tempReal2; + ARRAY_REF(tempBuffer1); + ARRAY_REF(tempBuffer2); + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ /* min/max are checked for optInTimePeriod. */ +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 5; +/* Generated */ else if( ((int)optInTimePeriod < 2) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ if( optInNbDevUp == TA_REAL_DEFAULT ) +/* Generated */ optInNbDevUp = 2.000000e+0; +/* Generated */ else if( (optInNbDevUp < -3.000000e+37) ||/* Generated */ (optInNbDevUp > 3.000000e+37) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ if( optInNbDevDn == TA_REAL_DEFAULT ) +/* Generated */ optInNbDevDn = 2.000000e+0; +/* Generated */ else if( (optInNbDevDn < -3.000000e+37) ||/* Generated */ (optInNbDevDn > 3.000000e+37) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #if !defined(_MANAGED) && !defined(_JAVA) +/* Generated */ if( (int)optInMAType == TA_INTEGER_DEFAULT ) +/* Generated */ optInMAType = (TA_MAType)0; +/* Generated */ else if( ((int)optInMAType < 0) || ((int)optInMAType > 8) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_MANAGED) && !defined(_JAVA)*/ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outRealUpperBand ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ if( !outRealMiddleBand ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ if( !outRealLowerBand ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Insert TA function code here. */ + + /* Identify TWO temporary buffer among the outputs. + * + * These temporary buffers allows to perform the + * calculation without any memory allocation. + * + * Whenever possible, make the tempBuffer1 be the + * middle band output. This will save one copy operation. + */ + #if defined(USE_SINGLE_PRECISION_INPUT) || defined( USE_SUBARRAY ) + tempBuffer1 = outRealMiddleBand; + tempBuffer2 = outRealLowerBand; + #else + if( inReal == outRealUpperBand ) + { + tempBuffer1 = outRealMiddleBand; + tempBuffer2 = outRealLowerBand; + } + else if( inReal == outRealLowerBand ) + { + tempBuffer1 = outRealMiddleBand; + tempBuffer2 = outRealUpperBand; + } + else if( inReal == outRealMiddleBand ) + { + tempBuffer1 = outRealLowerBand; + tempBuffer2 = outRealUpperBand; + } + else + { + tempBuffer1 = outRealMiddleBand; + tempBuffer2 = outRealUpperBand; + } + /* Check that the caller is not doing tricky things. + * (like using the input buffer in two output!) + */ + if( (tempBuffer1 == inReal) || (tempBuffer2 == inReal) ) + return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); + #endif + + + /* Calculate the middle band, which is a moving average. + * The other two bands will simply add/substract the + * standard deviation from this middle band. + */ + retCode = FUNCTION_CALL(MA)( startIdx, endIdx, inReal, + optInTimePeriod, optInMAType, + outBegIdx, outNBElement, tempBuffer1 ); + + if( (retCode != ENUM_VALUE(RetCode,TA_SUCCESS,Success) ) || ((int)VALUE_HANDLE_DEREF(outNBElement) == 0) ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return retCode; + } + + /* Calculate the standard deviation into tempBuffer2. */ + if( optInMAType == ENUM_VALUE(MAType,TA_MAType_SMA,Sma) ) + { + /* A small speed optimization by re-using the + * already calculated SMA. + */ + FUNCTION_CALL(INT_stddev_using_precalc_ma)( inReal, tempBuffer1, + (int)VALUE_HANDLE_DEREF(outBegIdx), (int)VALUE_HANDLE_DEREF(outNBElement), + optInTimePeriod, tempBuffer2 ); + } + else + { + /* Calculate the Standard Deviation */ + retCode = FUNCTION_CALL(STDDEV)( (int)VALUE_HANDLE_DEREF(outBegIdx), endIdx, inReal, + optInTimePeriod, 1.0, + outBegIdx, outNBElement, tempBuffer2 ); + + if( retCode != ENUM_VALUE(RetCode,TA_SUCCESS,Success) ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return retCode; + } + } + + /* Copy the MA calculation into the middle band ouput, unless + * the calculation was done into it already! + */ + #if !defined(USE_SINGLE_PRECISION_INPUT) + if( tempBuffer1 != outRealMiddleBand ) + { + ARRAY_COPY( outRealMiddleBand, tempBuffer1, VALUE_HANDLE_DEREF(outNBElement) ); + } + #endif + + /* Now do a tight loop to calculate the upper/lower band at + * the same time. + * + * All the following 5 loops are doing the same, except there + * is an attempt to speed optimize by eliminating uneeded + * multiplication. + */ + if( optInNbDevUp == optInNbDevDn ) + { + if( optInNbDevUp == 1.0 ) + { + /* No standard deviation multiplier needed. */ + for( i=0; i < (int)VALUE_HANDLE_DEREF(outNBElement); i++ ) + { + tempReal = tempBuffer2[i]; + tempReal2 = outRealMiddleBand[i]; + outRealUpperBand[i] = tempReal2 + tempReal; + outRealLowerBand[i] = tempReal2 - tempReal; + } + } + else + { + /* Upper/lower band use the same standard deviation multiplier. */ + for( i=0; i < (int)VALUE_HANDLE_DEREF(outNBElement); i++ ) + { + tempReal = tempBuffer2[i] * optInNbDevUp; + tempReal2 = outRealMiddleBand[i]; + outRealUpperBand[i] = tempReal2 + tempReal; + outRealLowerBand[i] = tempReal2 - tempReal; + } + } + } + else if( optInNbDevUp == 1.0 ) + { + /* Only lower band has a standard deviation multiplier. */ + for( i=0; i < (int)VALUE_HANDLE_DEREF(outNBElement); i++ ) + { + tempReal = tempBuffer2[i]; + tempReal2 = outRealMiddleBand[i]; + outRealUpperBand[i] = tempReal2 + tempReal; + outRealLowerBand[i] = tempReal2 - (tempReal * optInNbDevDn); + } + } + else if( optInNbDevDn == 1.0 ) + { + /* Only upper band has a standard deviation multiplier. */ + for( i=0; i < (int)VALUE_HANDLE_DEREF(outNBElement); i++ ) + { + tempReal = tempBuffer2[i]; + tempReal2 = outRealMiddleBand[i]; + outRealLowerBand[i] = tempReal2 - tempReal; + outRealUpperBand[i] = tempReal2 + (tempReal * optInNbDevUp); + } + } + else + { + /* Upper/lower band have distinctive standard deviation multiplier. */ + for( i=0; i < (int)VALUE_HANDLE_DEREF(outNBElement); i++ ) + { + tempReal = tempBuffer2[i]; + tempReal2 = outRealMiddleBand[i]; + outRealUpperBand[i] = tempReal2 + (tempReal * optInNbDevUp); + outRealLowerBand[i] = tempReal2 - (tempReal * optInNbDevDn); + } + } + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::Bbands( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ double optInNbDevUp, /* From TA_REAL_MIN to TA_REAL_MAX */ +/* Generated */ double optInNbDevDn, /* From TA_REAL_MIN to TA_REAL_MAX */ +/* Generated */ MAType optInMAType, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outRealUpperBand, +/* Generated */ cli::array^ outRealMiddleBand, +/* Generated */ cli::array^ outRealLowerBand ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode bbands( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inReal[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ double optInNbDevUp, /* From TA_REAL_MIN to TA_REAL_MAX */ +/* Generated */ double optInNbDevDn, /* From TA_REAL_MIN to TA_REAL_MAX */ +/* Generated */ MAType optInMAType, +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outRealUpperBand[], +/* Generated */ double outRealMiddleBand[], +/* Generated */ double outRealLowerBand[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_BBANDS( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inReal[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ double optInNbDevUp, /* From TA_REAL_MIN to TA_REAL_MAX */ +/* Generated */ double optInNbDevDn, /* From TA_REAL_MIN to TA_REAL_MAX */ +/* Generated */ TA_MAType optInMAType, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outRealUpperBand[], +/* Generated */ double outRealMiddleBand[], +/* Generated */ double outRealLowerBand[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ ENUM_DECLARATION(RetCode) retCode; +/* Generated */ int i; +/* Generated */ double tempReal, tempReal2; +/* Generated */ ARRAY_REF(tempBuffer1); +/* Generated */ ARRAY_REF(tempBuffer2); +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 5; +/* Generated */ else if( ((int)optInTimePeriod < 2) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ if( optInNbDevUp == TA_REAL_DEFAULT ) +/* Generated */ optInNbDevUp = 2.000000e+0; +/* Generated */ else if( (optInNbDevUp < -3.000000e+37) || (optInNbDevUp > 3.000000e+37) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ if( optInNbDevDn == TA_REAL_DEFAULT ) +/* Generated */ optInNbDevDn = 2.000000e+0; +/* Generated */ else if( (optInNbDevDn < -3.000000e+37) || (optInNbDevDn > 3.000000e+37) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #if !defined(_MANAGED) && !defined(_JAVA) +/* Generated */ if( (int)optInMAType == TA_INTEGER_DEFAULT ) +/* Generated */ optInMAType = (TA_MAType)0; +/* Generated */ else if( ((int)optInMAType < 0) || ((int)optInMAType > 8) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outRealUpperBand ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ if( !outRealMiddleBand ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ if( !outRealLowerBand ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ #if defined(USE_SINGLE_PRECISION_INPUT) || defined( USE_SUBARRAY ) +/* Generated */ tempBuffer1 = outRealMiddleBand; +/* Generated */ tempBuffer2 = outRealLowerBand; +/* Generated */ #else +/* Generated */ if( inReal == outRealUpperBand ) +/* Generated */ { +/* Generated */ tempBuffer1 = outRealMiddleBand; +/* Generated */ tempBuffer2 = outRealLowerBand; +/* Generated */ } +/* Generated */ else if( inReal == outRealLowerBand ) +/* Generated */ { +/* Generated */ tempBuffer1 = outRealMiddleBand; +/* Generated */ tempBuffer2 = outRealUpperBand; +/* Generated */ } +/* Generated */ else if( inReal == outRealMiddleBand ) +/* Generated */ { +/* Generated */ tempBuffer1 = outRealLowerBand; +/* Generated */ tempBuffer2 = outRealUpperBand; +/* Generated */ } +/* Generated */ else +/* Generated */ { +/* Generated */ tempBuffer1 = outRealMiddleBand; +/* Generated */ tempBuffer2 = outRealUpperBand; +/* Generated */ } +/* Generated */ if( (tempBuffer1 == inReal) || (tempBuffer2 == inReal) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ retCode = FUNCTION_CALL(MA)( startIdx, endIdx, inReal, +/* Generated */ optInTimePeriod, optInMAType, +/* Generated */ outBegIdx, outNBElement, tempBuffer1 ); +/* Generated */ if( (retCode != ENUM_VALUE(RetCode,TA_SUCCESS,Success) ) || ((int)VALUE_HANDLE_DEREF(outNBElement) == 0) ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return retCode; +/* Generated */ } +/* Generated */ if( optInMAType == ENUM_VALUE(MAType,TA_MAType_SMA,Sma) ) +/* Generated */ { +/* Generated */ FUNCTION_CALL(INT_stddev_using_precalc_ma)( inReal, tempBuffer1, +/* Generated */ (int)VALUE_HANDLE_DEREF(outBegIdx), (int)VALUE_HANDLE_DEREF(outNBElement), +/* Generated */ optInTimePeriod, tempBuffer2 ); +/* Generated */ } +/* Generated */ else +/* Generated */ { +/* Generated */ retCode = FUNCTION_CALL(STDDEV)( (int)VALUE_HANDLE_DEREF(outBegIdx), endIdx, inReal, +/* Generated */ optInTimePeriod, 1.0, +/* Generated */ outBegIdx, outNBElement, tempBuffer2 ); +/* Generated */ if( retCode != ENUM_VALUE(RetCode,TA_SUCCESS,Success) ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return retCode; +/* Generated */ } +/* Generated */ } +/* Generated */ #if !defined(USE_SINGLE_PRECISION_INPUT) +/* Generated */ if( tempBuffer1 != outRealMiddleBand ) +/* Generated */ { +/* Generated */ ARRAY_COPY( outRealMiddleBand, tempBuffer1, VALUE_HANDLE_DEREF(outNBElement) ); +/* Generated */ } +/* Generated */ #endif +/* Generated */ if( optInNbDevUp == optInNbDevDn ) +/* Generated */ { +/* Generated */ if( optInNbDevUp == 1.0 ) +/* Generated */ { +/* Generated */ for( i=0; i < (int)VALUE_HANDLE_DEREF(outNBElement); i++ ) +/* Generated */ { +/* Generated */ tempReal = tempBuffer2[i]; +/* Generated */ tempReal2 = outRealMiddleBand[i]; +/* Generated */ outRealUpperBand[i] = tempReal2 + tempReal; +/* Generated */ outRealLowerBand[i] = tempReal2 - tempReal; +/* Generated */ } +/* Generated */ } +/* Generated */ else +/* Generated */ { +/* Generated */ for( i=0; i < (int)VALUE_HANDLE_DEREF(outNBElement); i++ ) +/* Generated */ { +/* Generated */ tempReal = tempBuffer2[i] * optInNbDevUp; +/* Generated */ tempReal2 = outRealMiddleBand[i]; +/* Generated */ outRealUpperBand[i] = tempReal2 + tempReal; +/* Generated */ outRealLowerBand[i] = tempReal2 - tempReal; +/* Generated */ } +/* Generated */ } +/* Generated */ } +/* Generated */ else if( optInNbDevUp == 1.0 ) +/* Generated */ { +/* Generated */ for( i=0; i < (int)VALUE_HANDLE_DEREF(outNBElement); i++ ) +/* Generated */ { +/* Generated */ tempReal = tempBuffer2[i]; +/* Generated */ tempReal2 = outRealMiddleBand[i]; +/* Generated */ outRealUpperBand[i] = tempReal2 + tempReal; +/* Generated */ outRealLowerBand[i] = tempReal2 - (tempReal * optInNbDevDn); +/* Generated */ } +/* Generated */ } +/* Generated */ else if( optInNbDevDn == 1.0 ) +/* Generated */ { +/* Generated */ for( i=0; i < (int)VALUE_HANDLE_DEREF(outNBElement); i++ ) +/* Generated */ { +/* Generated */ tempReal = tempBuffer2[i]; +/* Generated */ tempReal2 = outRealMiddleBand[i]; +/* Generated */ outRealLowerBand[i] = tempReal2 - tempReal; +/* Generated */ outRealUpperBand[i] = tempReal2 + (tempReal * optInNbDevUp); +/* Generated */ } +/* Generated */ } +/* Generated */ else +/* Generated */ { +/* Generated */ for( i=0; i < (int)VALUE_HANDLE_DEREF(outNBElement); i++ ) +/* Generated */ { +/* Generated */ tempReal = tempBuffer2[i]; +/* Generated */ tempReal2 = outRealMiddleBand[i]; +/* Generated */ outRealUpperBand[i] = tempReal2 + (tempReal * optInNbDevUp); +/* Generated */ outRealLowerBand[i] = tempReal2 - (tempReal * optInNbDevDn); +/* Generated */ } +/* Generated */ } +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_BETA.c b/src/ta_func/ta_BETA.c new file mode 100644 index 000000000..7e42f6608 --- /dev/null +++ b/src/ta_func/ta_BETA.c @@ -0,0 +1,484 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * MW Michael Williamson + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 122006 MW Initial Version + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::BetaLookback( int optInTimePeriod ) /* From 1 to 100000 */ +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int betaLookback( int optInTimePeriod ) /* From 1 to 100000 */ +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_BETA_Lookback( int optInTimePeriod ) /* From 1 to 100000 */ +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ /* min/max are checked for optInTimePeriod. */ +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 5; +/* Generated */ else if( ((int)optInTimePeriod < 1) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return -1; +/* Generated */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + return optInTimePeriod; +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_BETA - Beta + * + * Input = double, double + * Output = double + * + * Optional Parameters + * ------------------- + * optInTimePeriod:(From 1 to 100000) + * Number of period + * + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::Beta( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inReal0, +/* Generated */ SubArray^ inReal1, +/* Generated */ int optInTimePeriod, /* From 1 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::Beta( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal0, +/* Generated */ cli::array^ inReal1, +/* Generated */ int optInTimePeriod, /* From 1 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode beta( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inReal0[], +/* Generated */ double inReal1[], +/* Generated */ int optInTimePeriod, /* From 1 to 100000 */ +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_BETA( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inReal0[], +/* Generated */ const double inReal1[], +/* Generated */ int optInTimePeriod, /* From 1 to 100000 */ +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + double S_xx = 0.0f; /* sum of x * x */ + double S_xy = 0.0f; /* sum of x * y */ + double S_x = 0.0f; /* sum of x */ + double S_y = 0.0f; /* sum of y */ + double last_price_x = 0.0f; /* the last price read from inReal0 */ + double last_price_y = 0.0f; /* the last price read from inReal1 */ + double trailing_last_price_x = 0.0f; /* same as last_price_x except used to remove elements from the trailing summation */ + double trailing_last_price_y = 0.0f; /* same as last_price_y except used to remove elements from the trailing summation */ + double tmp_real = 0.0f; /* temporary variable */ + double x; /* the 'x' value, which is the last change between values in inReal0 */ + double y; /* the 'y' value, which is the last change between values in inReal1 */ + double n = 0.0f; + int i, outIdx; + int trailingIdx, nbInitialElementNeeded; + + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal0 ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ if( !inReal1 ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ /* min/max are checked for optInTimePeriod. */ +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 5; +/* Generated */ else if( ((int)optInTimePeriod < 1) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Insert TA function code here. */ + + /** DESCRIPTION OF ALGORITHM: + * The Beta 'algorithm' is a measure of a stocks volatility vs from index. The stock prices + * are given in inReal0 and the index prices are give in inReal1. The size of these vectors + * should be equal. The algorithm is to calculate the change between prices in both vectors + * and then 'plot' these changes are points in the Euclidean plane. The x value of the point + * is market return and the y value is the security return. The beta value is the slope of a + * linear regression through these points. A beta of 1 is simple the line y=x, so the stock + * varies percisely with the market. A beta of less than one means the stock varies less than + * the market and a beta of more than one means the stock varies more than market. A related + * value is the Alpha value (see TA_ALPHA) which is the Y-intercept of the same linear regression. + */ + + /* Validate the calculation method type and + * identify the minimum number of input + * consume before the first value is output.. + */ + nbInitialElementNeeded = optInTimePeriod; + + /* Move up the start index if there is not + * enough initial data. + */ + if( startIdx < nbInitialElementNeeded ) + startIdx = nbInitialElementNeeded; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + + /* Consume first input. */ + trailingIdx = startIdx-nbInitialElementNeeded; + last_price_x = trailing_last_price_x = inReal0[trailingIdx]; + last_price_y = trailing_last_price_y = inReal1[trailingIdx]; + + /* Process remaining of lookback until ready to output the first value. */ + i = ++trailingIdx; + + while( i < startIdx ) + { + tmp_real = inReal0[i]; + if( !TA_IS_ZERO(last_price_x) ) + x = (tmp_real-last_price_x)/last_price_x; + else + x = 0.0; + last_price_x = tmp_real; + + tmp_real = inReal1[i++]; + if( !TA_IS_ZERO(last_price_y) ) + y = (tmp_real-last_price_y)/last_price_y; + else + y = 0.0; + last_price_y = tmp_real; + + S_xx += x*x; + S_xy += x*y; + S_x += x; + S_y += y; + } + + + outIdx = 0; /* First output always start at index zero */ + n = (double)optInTimePeriod; + do + { + tmp_real = inReal0[i]; + if( !TA_IS_ZERO(last_price_x) ) + x = (tmp_real-last_price_x)/last_price_x; + else + x = 0.0; + last_price_x = tmp_real; + + tmp_real = inReal1[i++]; + if( !TA_IS_ZERO(last_price_y) ) + y = (tmp_real-last_price_y)/last_price_y; + else + y = 0.0; + last_price_y = tmp_real; + + S_xx += x*x; + S_xy += x*y; + S_x += x; + S_y += y; + + /* Always read the trailing before writing the output because the input and output + * buffer can be the same. + */ + tmp_real = inReal0[trailingIdx]; + if( !TA_IS_ZERO(trailing_last_price_x) ) + x = (tmp_real-trailing_last_price_x)/trailing_last_price_x; + else + x = 0.0; + trailing_last_price_x = tmp_real; + + tmp_real = inReal1[trailingIdx++]; + if( !TA_IS_ZERO(trailing_last_price_y) ) + y = (tmp_real-trailing_last_price_y)/trailing_last_price_y; + else + y = 0.0; + trailing_last_price_y = tmp_real; + + /* Write the output */ + tmp_real = (n * S_xx) - (S_x * S_x); + if( !TA_IS_ZERO(tmp_real) ) + outReal[outIdx++] = ((n * S_xy) - (S_x * S_y)) / tmp_real; + else + outReal[outIdx++] = 0.0; + + /* Remove the calculation starting with the trailingIdx. */ + S_xx -= x*x; + S_xy -= x*y; + S_x -= x; + S_y -= y; + } while( i <= endIdx ); + + /* All done. Indicate the output limits and return. */ + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::Beta( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal0, +/* Generated */ cli::array^ inReal1, +/* Generated */ int optInTimePeriod, /* From 1 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode beta( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inReal0[], +/* Generated */ float inReal1[], +/* Generated */ int optInTimePeriod, /* From 1 to 100000 */ +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_BETA( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inReal0[], +/* Generated */ const float inReal1[], +/* Generated */ int optInTimePeriod, /* From 1 to 100000 */ +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ double S_xx = 0.0f; +/* Generated */ double S_xy = 0.0f; +/* Generated */ double S_x = 0.0f; +/* Generated */ double S_y = 0.0f; +/* Generated */ double last_price_x = 0.0f; +/* Generated */ double last_price_y = 0.0f; +/* Generated */ double trailing_last_price_x = 0.0f; +/* Generated */ double trailing_last_price_y = 0.0f; +/* Generated */ double tmp_real = 0.0f; +/* Generated */ double x; +/* Generated */ double y; +/* Generated */ double n = 0.0f; +/* Generated */ int i, outIdx; +/* Generated */ int trailingIdx, nbInitialElementNeeded; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal0 ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ if( !inReal1 ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 5; +/* Generated */ else if( ((int)optInTimePeriod < 1) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ nbInitialElementNeeded = optInTimePeriod; +/* Generated */ if( startIdx < nbInitialElementNeeded ) +/* Generated */ startIdx = nbInitialElementNeeded; +/* Generated */ if( startIdx > endIdx ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ trailingIdx = startIdx-nbInitialElementNeeded; +/* Generated */ last_price_x = trailing_last_price_x = inReal0[trailingIdx]; +/* Generated */ last_price_y = trailing_last_price_y = inReal1[trailingIdx]; +/* Generated */ i = ++trailingIdx; +/* Generated */ while( i < startIdx ) +/* Generated */ { +/* Generated */ tmp_real = inReal0[i]; +/* Generated */ if( !TA_IS_ZERO(last_price_x) ) +/* Generated */ x = (tmp_real-last_price_x)/last_price_x; +/* Generated */ else +/* Generated */ x = 0.0; +/* Generated */ last_price_x = tmp_real; +/* Generated */ tmp_real = inReal1[i++]; +/* Generated */ if( !TA_IS_ZERO(last_price_y) ) +/* Generated */ y = (tmp_real-last_price_y)/last_price_y; +/* Generated */ else +/* Generated */ y = 0.0; +/* Generated */ last_price_y = tmp_real; +/* Generated */ S_xx += x*x; +/* Generated */ S_xy += x*y; +/* Generated */ S_x += x; +/* Generated */ S_y += y; +/* Generated */ } +/* Generated */ outIdx = 0; +/* Generated */ n = (double)optInTimePeriod; +/* Generated */ do +/* Generated */ { +/* Generated */ tmp_real = inReal0[i]; +/* Generated */ if( !TA_IS_ZERO(last_price_x) ) +/* Generated */ x = (tmp_real-last_price_x)/last_price_x; +/* Generated */ else +/* Generated */ x = 0.0; +/* Generated */ last_price_x = tmp_real; +/* Generated */ tmp_real = inReal1[i++]; +/* Generated */ if( !TA_IS_ZERO(last_price_y) ) +/* Generated */ y = (tmp_real-last_price_y)/last_price_y; +/* Generated */ else +/* Generated */ y = 0.0; +/* Generated */ last_price_y = tmp_real; +/* Generated */ S_xx += x*x; +/* Generated */ S_xy += x*y; +/* Generated */ S_x += x; +/* Generated */ S_y += y; +/* Generated */ tmp_real = inReal0[trailingIdx]; +/* Generated */ if( !TA_IS_ZERO(trailing_last_price_x) ) +/* Generated */ x = (tmp_real-trailing_last_price_x)/trailing_last_price_x; +/* Generated */ else +/* Generated */ x = 0.0; +/* Generated */ trailing_last_price_x = tmp_real; +/* Generated */ tmp_real = inReal1[trailingIdx++]; +/* Generated */ if( !TA_IS_ZERO(trailing_last_price_y) ) +/* Generated */ y = (tmp_real-trailing_last_price_y)/trailing_last_price_y; +/* Generated */ else +/* Generated */ y = 0.0; +/* Generated */ trailing_last_price_y = tmp_real; +/* Generated */ tmp_real = (n * S_xx) - (S_x * S_x); +/* Generated */ if( !TA_IS_ZERO(tmp_real) ) +/* Generated */ outReal[outIdx++] = ((n * S_xy) - (S_x * S_y)) / tmp_real; +/* Generated */ else +/* Generated */ outReal[outIdx++] = 0.0; +/* Generated */ S_xx -= x*x; +/* Generated */ S_xy -= x*y; +/* Generated */ S_x -= x; +/* Generated */ S_y -= y; +/* Generated */ } while( i <= endIdx ); +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_BOP.c b/src/ta_func/ta_BOP.c new file mode 100644 index 000000000..c2b655ddf --- /dev/null +++ b/src/ta_func/ta_BOP.c @@ -0,0 +1,279 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * MF Mario Fortier + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 112605 MF Initial coding. + * + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::BopLookback( void ) +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int bopLookback( ) +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_BOP_Lookback( void ) +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ /* No parameters to validate. */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + return 0; +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_BOP - Balance Of Power + * + * Input = Open, High, Low, Close + * Output = double + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::Bop( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inOpen, +/* Generated */ SubArray^ inHigh, +/* Generated */ SubArray^ inLow, +/* Generated */ SubArray^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::Bop( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inOpen, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode bop( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inOpen[], +/* Generated */ double inHigh[], +/* Generated */ double inLow[], +/* Generated */ double inClose[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_BOP( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inOpen[], +/* Generated */ const double inHigh[], +/* Generated */ const double inLow[], +/* Generated */ const double inClose[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + int outIdx, i; + double tempReal; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ /* Verify required price component. */ +/* Generated */ if(!inOpen||!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Insert TA function code here. */ + + /* BOP = (Close - Open)/(High - Low) */ + + outIdx = 0; + + for( i=startIdx; i <= endIdx; i++ ) + { + tempReal = inHigh[i]-inLow[i]; + if( TA_IS_ZERO_OR_NEG(tempReal) ) + outReal[outIdx++] = 0.0; + else + outReal[outIdx++] = (inClose[i] - inOpen[i])/tempReal; + } + + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::Bop( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inOpen, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode bop( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inOpen[], +/* Generated */ float inHigh[], +/* Generated */ float inLow[], +/* Generated */ float inClose[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_BOP( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inOpen[], +/* Generated */ const float inHigh[], +/* Generated */ const float inLow[], +/* Generated */ const float inClose[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ int outIdx, i; +/* Generated */ double tempReal; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if(!inOpen||!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ outIdx = 0; +/* Generated */ for( i=startIdx; i <= endIdx; i++ ) +/* Generated */ { +/* Generated */ tempReal = inHigh[i]-inLow[i]; +/* Generated */ if( TA_IS_ZERO_OR_NEG(tempReal) ) +/* Generated */ outReal[outIdx++] = 0.0; +/* Generated */ else +/* Generated */ outReal[outIdx++] = (inClose[i] - inOpen[i])/tempReal; +/* Generated */ } +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_CCI.c b/src/ta_func/ta_CCI.c new file mode 100644 index 000000000..14fa40ee1 --- /dev/null +++ b/src/ta_func/ta_CCI.c @@ -0,0 +1,416 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * MF Mario Fortier + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 031202 MF Template creation. + * 052603 MF Port to managed C++. Change to use CIRCBUF macros. + * 061704 MF Lower limit for period to 2, and correct algorithm + * to avoid cummulative error when value are close to + * the floating point epsilon. + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::CciLookback( int optInTimePeriod ) /* From 2 to 100000 */ +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int cciLookback( int optInTimePeriod ) /* From 2 to 100000 */ +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_CCI_Lookback( int optInTimePeriod ) /* From 2 to 100000 */ +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ /* min/max are checked for optInTimePeriod. */ +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 14; +/* Generated */ else if( ((int)optInTimePeriod < 2) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return -1; +/* Generated */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + return (optInTimePeriod-1); +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_CCI - Commodity Channel Index + * + * Input = High, Low, Close + * Output = double + * + * Optional Parameters + * ------------------- + * optInTimePeriod:(From 2 to 100000) + * Number of period + * + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::Cci( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inHigh, +/* Generated */ SubArray^ inLow, +/* Generated */ SubArray^ inClose, +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::Cci( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cci( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inHigh[], +/* Generated */ double inLow[], +/* Generated */ double inClose[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_CCI( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inHigh[], +/* Generated */ const double inLow[], +/* Generated */ const double inClose[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + + /* insert local variable here */ + double tempReal, tempReal2, theAverage, lastValue; + int i, j, outIdx, lookbackTotal; + + /* This ptr will points on a circular buffer of + * at least "optInTimePeriod" element. + */ + CIRCBUF_PROLOG(circBuffer,double,30); + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ /* Verify required price component. */ +/* Generated */ if(!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ /* min/max are checked for optInTimePeriod. */ +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 14; +/* Generated */ else if( ((int)optInTimePeriod < 2) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Insert TA function code here. */ + + /* Identify the minimum number of price bar needed + * to calculate at least one output. + */ + lookbackTotal = (optInTimePeriod-1); + + /* Move up the start index if there is not + * enough initial data. + */ + if( startIdx < lookbackTotal ) + startIdx = lookbackTotal; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + + /* Allocate a circular buffer equal to the requested + * period. + */ + CIRCBUF_INIT( circBuffer, double, optInTimePeriod ); + + /* Do the MA calculation using tight loops. */ + + /* Add-up the initial period, except for the last value. + * Fill up the circular buffer at the same time. + */ + i=startIdx-lookbackTotal; + if( optInTimePeriod > 1 ) + { + while( i < startIdx ) + { + circBuffer[circBuffer_Idx] = (inHigh[i]+inLow[i]+inClose[i])/3; + i++; + CIRCBUF_NEXT(circBuffer); + } + } + + /* Proceed with the calculation for the requested range. + * Note that this algorithm allows the inReal and + * outReal to be the same buffer. + */ + outIdx = 0; + do + { + lastValue = (inHigh[i]+inLow[i]+inClose[i])/3; + circBuffer[circBuffer_Idx] = lastValue; + + /* Calculate the average for the whole period. */ + theAverage = 0; + for( j=0; j < optInTimePeriod; j++ ) + theAverage += circBuffer[j]; + theAverage /= optInTimePeriod; + + /* Do the summation of the ABS(TypePrice-average) + * for the whole period. + */ + tempReal2 = 0; + for( j=0; j < optInTimePeriod; j++ ) + tempReal2 += std_fabs(circBuffer[j]-theAverage); + + /* And finally, the CCI... */ + tempReal = lastValue-theAverage; + + if( (tempReal != 0.0) && (tempReal2 != 0.0) ) + { + outReal[outIdx++] = tempReal/(0.015*(tempReal2/optInTimePeriod)); + } + else + outReal[outIdx++] = 0.0; + + /* Move forward the circular buffer indexes. */ + CIRCBUF_NEXT(circBuffer); + + i++; + } while( i <= endIdx ); + + /* All done. Indicate the output limits and return. */ + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + + /* Free the circular buffer if it was dynamically allocated. */ + CIRCBUF_DESTROY(circBuffer); + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::Cci( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cci( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inHigh[], +/* Generated */ float inLow[], +/* Generated */ float inClose[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_CCI( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inHigh[], +/* Generated */ const float inLow[], +/* Generated */ const float inClose[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ double tempReal, tempReal2, theAverage, lastValue; +/* Generated */ int i, j, outIdx, lookbackTotal; +/* Generated */ CIRCBUF_PROLOG(circBuffer,double,30); +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if(!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 14; +/* Generated */ else if( ((int)optInTimePeriod < 2) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ lookbackTotal = (optInTimePeriod-1); +/* Generated */ if( startIdx < lookbackTotal ) +/* Generated */ startIdx = lookbackTotal; +/* Generated */ if( startIdx > endIdx ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ CIRCBUF_INIT( circBuffer, double, optInTimePeriod ); +/* Generated */ i=startIdx-lookbackTotal; +/* Generated */ if( optInTimePeriod > 1 ) +/* Generated */ { +/* Generated */ while( i < startIdx ) +/* Generated */ { +/* Generated */ circBuffer[circBuffer_Idx] = (inHigh[i]+inLow[i]+inClose[i])/3; +/* Generated */ i++; +/* Generated */ CIRCBUF_NEXT(circBuffer); +/* Generated */ } +/* Generated */ } +/* Generated */ outIdx = 0; +/* Generated */ do +/* Generated */ { +/* Generated */ lastValue = (inHigh[i]+inLow[i]+inClose[i])/3; +/* Generated */ circBuffer[circBuffer_Idx] = lastValue; +/* Generated */ theAverage = 0; +/* Generated */ for( j=0; j < optInTimePeriod; j++ ) +/* Generated */ theAverage += circBuffer[j]; +/* Generated */ theAverage /= optInTimePeriod; +/* Generated */ tempReal2 = 0; +/* Generated */ for( j=0; j < optInTimePeriod; j++ ) +/* Generated */ tempReal2 += std_fabs(circBuffer[j]-theAverage); +/* Generated */ tempReal = lastValue-theAverage; +/* Generated */ if( (tempReal != 0.0) && (tempReal2 != 0.0) ) +/* Generated */ { +/* Generated */ outReal[outIdx++] = tempReal/(0.015*(tempReal2/optInTimePeriod)); +/* Generated */ } +/* Generated */ else +/* Generated */ outReal[outIdx++] = 0.0; +/* Generated */ CIRCBUF_NEXT(circBuffer); +/* Generated */ i++; +/* Generated */ } while( i <= endIdx ); +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ CIRCBUF_DESTROY(circBuffer); +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_CDL2CROWS.c b/src/ta_func/ta_CDL2CROWS.c new file mode 100644 index 000000000..4e223adf4 --- /dev/null +++ b/src/ta_func/ta_CDL2CROWS.c @@ -0,0 +1,356 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * AC Angelo Ciceri + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 121104 AC Creation + * + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::Cdl2CrowsLookback( void ) +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int cdl2CrowsLookback( ) +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_CDL2CROWS_Lookback( void ) +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ /* No parameters to validate. */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + return TA_CANDLEAVGPERIOD(BodyLong) + 2; +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_CDL2CROWS - Two Crows + * + * Input = Open, High, Low, Close + * Output = int + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::Cdl2Crows( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inOpen, +/* Generated */ SubArray^ inHigh, +/* Generated */ SubArray^ inLow, +/* Generated */ SubArray^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::Cdl2Crows( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inOpen, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cdl2Crows( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inOpen[], +/* Generated */ double inHigh[], +/* Generated */ double inLow[], +/* Generated */ double inClose[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_CDL2CROWS( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inOpen[], +/* Generated */ const double inHigh[], +/* Generated */ const double inLow[], +/* Generated */ const double inClose[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* Insert local variables here. */ + double BodyLongPeriodTotal; + int i, outIdx, BodyLongTrailingIdx, lookbackTotal; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ /* Verify required price component. */ +/* Generated */ if(!inOpen||!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInteger ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Identify the minimum number of price bar needed + * to calculate at least one output. + */ + + lookbackTotal = LOOKBACK_CALL(CDL2CROWS)(); + + /* Move up the start index if there is not + * enough initial data. + */ + if( startIdx < lookbackTotal ) + startIdx = lookbackTotal; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + + /* Do the calculation using tight loops. */ + /* Add-up the initial period, except for the last value. */ + BodyLongPeriodTotal = 0; + BodyLongTrailingIdx = startIdx -2 - TA_CANDLEAVGPERIOD(BodyLong); + + i = BodyLongTrailingIdx; + while( i < startIdx-2 ) { + BodyLongPeriodTotal += TA_CANDLERANGE( BodyLong, i ); + i++; + } + i = startIdx; + + /* Proceed with the calculation for the requested range. + * Must have: + * - first candle: long white candle + * - second candle: black real body + * - gap between the first and the second candle's real bodies + * - third candle: black candle that opens within the second real body and closes within the first real body + * The meaning of "long" is specified with TA_SetCandleSettings + * outInteger is negative (-1 to -100): two crows is always bearish; + * the user should consider that two crows is significant when it appears in an uptrend, while this function + * does not consider the trend + */ + outIdx = 0; + do + { + if( TA_CANDLECOLOR(i-2) == 1 && // 1st: white + TA_REALBODY(i-2) > TA_CANDLEAVERAGE( BodyLong, BodyLongPeriodTotal, i-2 ) && // long + TA_CANDLECOLOR(i-1) == -1 && // 2nd: black + TA_REALBODYGAPUP(i-1,i-2) && // gapping up + TA_CANDLECOLOR(i) == -1 && // 3rd: black + inOpen[i] < inOpen[i-1] && inOpen[i] > inClose[i-1] && // opening within 2nd rb + inClose[i] > inOpen[i-2] && inClose[i] < inClose[i-2] // closing within 1st rb + ) + outInteger[outIdx++] = -100; + else + outInteger[outIdx++] = 0; + /* add the current range and subtract the first range: this is done after the pattern recognition + * when avgPeriod is not 0, that means "compare with the previous candles" (it excludes the current candle) + */ + BodyLongPeriodTotal += TA_CANDLERANGE( BodyLong, i-2 ) - TA_CANDLERANGE( BodyLong, BodyLongTrailingIdx ); + i++; + BodyLongTrailingIdx++; + } while( i <= endIdx ); + + /* All done. Indicate the output limits and return. */ + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::Cdl2Crows( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inOpen, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cdl2Crows( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inOpen[], +/* Generated */ float inHigh[], +/* Generated */ float inLow[], +/* Generated */ float inClose[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_CDL2CROWS( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inOpen[], +/* Generated */ const float inHigh[], +/* Generated */ const float inLow[], +/* Generated */ const float inClose[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ double BodyLongPeriodTotal; +/* Generated */ int i, outIdx, BodyLongTrailingIdx, lookbackTotal; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if(!inOpen||!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInteger ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ lookbackTotal = LOOKBACK_CALL(CDL2CROWS)(); +/* Generated */ if( startIdx < lookbackTotal ) +/* Generated */ startIdx = lookbackTotal; +/* Generated */ if( startIdx > endIdx ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ BodyLongPeriodTotal = 0; +/* Generated */ BodyLongTrailingIdx = startIdx -2 - TA_CANDLEAVGPERIOD(BodyLong); +/* Generated */ i = BodyLongTrailingIdx; +/* Generated */ while( i < startIdx-2 ) { +/* Generated */ BodyLongPeriodTotal += TA_CANDLERANGE( BodyLong, i ); +/* Generated */ i++; +/* Generated */ } +/* Generated */ i = startIdx; +/* Generated */ outIdx = 0; +/* Generated */ do +/* Generated */ { +/* Generated */ if( TA_CANDLECOLOR(i-2) == 1 && // 1st: white +/* Generated */ TA_REALBODY(i-2) > TA_CANDLEAVERAGE( BodyLong, BodyLongPeriodTotal, i-2 ) && // long +/* Generated */ TA_CANDLECOLOR(i-1) == -1 && // 2nd: black +/* Generated */ TA_REALBODYGAPUP(i-1,i-2) && // gapping up +/* Generated */ TA_CANDLECOLOR(i) == -1 && // 3rd: black +/* Generated */ inOpen[i] < inOpen[i-1] && inOpen[i] > inClose[i-1] && // opening within 2nd rb +/* Generated */ inClose[i] > inOpen[i-2] && inClose[i] < inClose[i-2] // closing within 1st rb +/* Generated */ ) +/* Generated */ outInteger[outIdx++] = -100; +/* Generated */ else +/* Generated */ outInteger[outIdx++] = 0; +/* Generated */ BodyLongPeriodTotal += TA_CANDLERANGE( BodyLong, i-2 ) - TA_CANDLERANGE( BodyLong, BodyLongTrailingIdx ); +/* Generated */ i++; +/* Generated */ BodyLongTrailingIdx++; +/* Generated */ } while( i <= endIdx ); +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_CDL3BLACKCROWS.c b/src/ta_func/ta_CDL3BLACKCROWS.c new file mode 100644 index 000000000..e057661fc --- /dev/null +++ b/src/ta_func/ta_CDL3BLACKCROWS.c @@ -0,0 +1,384 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * AC Angelo Ciceri + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 103004 AC Creation + * + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::Cdl3BlackCrowsLookback( void ) +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int cdl3BlackCrowsLookback( ) +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_CDL3BLACKCROWS_Lookback( void ) +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ /* No parameters to validate. */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + return TA_CANDLEAVGPERIOD(ShadowVeryShort) + 3; +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_CDL3BLACKCROWS - Three Black Crows + * + * Input = Open, High, Low, Close + * Output = int + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::Cdl3BlackCrows( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inOpen, +/* Generated */ SubArray^ inHigh, +/* Generated */ SubArray^ inLow, +/* Generated */ SubArray^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::Cdl3BlackCrows( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inOpen, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cdl3BlackCrows( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inOpen[], +/* Generated */ double inHigh[], +/* Generated */ double inLow[], +/* Generated */ double inClose[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_CDL3BLACKCROWS( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inOpen[], +/* Generated */ const double inHigh[], +/* Generated */ const double inLow[], +/* Generated */ const double inClose[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* Insert local variables here. */ + ARRAY_LOCAL(ShadowVeryShortPeriodTotal,3); + int i, outIdx, totIdx, ShadowVeryShortTrailingIdx, lookbackTotal; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ /* Verify required price component. */ +/* Generated */ if(!inOpen||!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInteger ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Identify the minimum number of price bar needed + * to calculate at least one output. + */ + + lookbackTotal = LOOKBACK_CALL(CDL3BLACKCROWS)(); + + /* Move up the start index if there is not + * enough initial data. + */ + if( startIdx < lookbackTotal ) + startIdx = lookbackTotal; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + + /* Do the calculation using tight loops. */ + /* Add-up the initial period, except for the last value. */ + ShadowVeryShortPeriodTotal[2] = 0; + ShadowVeryShortPeriodTotal[1] = 0; + ShadowVeryShortPeriodTotal[0] = 0; + ShadowVeryShortTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(ShadowVeryShort); + + i = ShadowVeryShortTrailingIdx; + while( i < startIdx ) { + ShadowVeryShortPeriodTotal[2] += TA_CANDLERANGE( ShadowVeryShort, i-2 ); + ShadowVeryShortPeriodTotal[1] += TA_CANDLERANGE( ShadowVeryShort, i-1 ); + ShadowVeryShortPeriodTotal[0] += TA_CANDLERANGE( ShadowVeryShort, i ); + i++; + } + i = startIdx; + + /* Proceed with the calculation for the requested range. + * Must have: + * - three consecutive and declining black candlesticks + * - each candle must have no or very short lower shadow + * - each candle after the first must open within the prior candle's real body + * - the first candle's close should be under the prior white candle's high + * The meaning of "very short" is specified with TA_SetCandleSettings + * outInteger is negative (-1 to -100): three black crows is always bearish; + * the user should consider that 3 black crows is significant when it appears after a mature advance or at high levels, + * while this function does not consider it + */ + outIdx = 0; + do + { + if( TA_CANDLECOLOR(i-3) == 1 && // white + TA_CANDLECOLOR(i-2) == -1 && // 1st black + TA_LOWERSHADOW(i-2) < TA_CANDLEAVERAGE( ShadowVeryShort, ShadowVeryShortPeriodTotal[2], i-2 ) && + // very short lower shadow + TA_CANDLECOLOR(i-1) == -1 && // 2nd black + TA_LOWERSHADOW(i-1) < TA_CANDLEAVERAGE( ShadowVeryShort, ShadowVeryShortPeriodTotal[1], i-1 ) && + // very short lower shadow + TA_CANDLECOLOR(i) == -1 && // 3rd black + TA_LOWERSHADOW(i) < TA_CANDLEAVERAGE( ShadowVeryShort, ShadowVeryShortPeriodTotal[0], i ) && + // very short lower shadow + inOpen[i-1] < inOpen[i-2] && inOpen[i-1] > inClose[i-2] && // 2nd black opens within 1st black's rb + inOpen[i] < inOpen[i-1] && inOpen[i] > inClose[i-1] && // 3rd black opens within 2nd black's rb + inHigh[i-3] > inClose[i-2] && // 1st black closes under prior candle's high + inClose[i-2] > inClose[i-1] && // three declining + inClose[i-1] > inClose[i] // three declining + ) + outInteger[outIdx++] = -100; + else + outInteger[outIdx++] = 0; + /* add the current range and subtract the first range: this is done after the pattern recognition + * when avgPeriod is not 0, that means "compare with the previous candles" (it excludes the current candle) + */ + for (totIdx = 2; totIdx >= 0; --totIdx) + ShadowVeryShortPeriodTotal[totIdx] += TA_CANDLERANGE( ShadowVeryShort, i-totIdx ) + - TA_CANDLERANGE( ShadowVeryShort, ShadowVeryShortTrailingIdx-totIdx ); + i++; + ShadowVeryShortTrailingIdx++; + } while( i <= endIdx ); + + /* All done. Indicate the output limits and return. */ + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::Cdl3BlackCrows( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inOpen, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cdl3BlackCrows( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inOpen[], +/* Generated */ float inHigh[], +/* Generated */ float inLow[], +/* Generated */ float inClose[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_CDL3BLACKCROWS( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inOpen[], +/* Generated */ const float inHigh[], +/* Generated */ const float inLow[], +/* Generated */ const float inClose[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ ARRAY_LOCAL(ShadowVeryShortPeriodTotal,3); +/* Generated */ int i, outIdx, totIdx, ShadowVeryShortTrailingIdx, lookbackTotal; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if(!inOpen||!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInteger ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ lookbackTotal = LOOKBACK_CALL(CDL3BLACKCROWS)(); +/* Generated */ if( startIdx < lookbackTotal ) +/* Generated */ startIdx = lookbackTotal; +/* Generated */ if( startIdx > endIdx ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ ShadowVeryShortPeriodTotal[2] = 0; +/* Generated */ ShadowVeryShortPeriodTotal[1] = 0; +/* Generated */ ShadowVeryShortPeriodTotal[0] = 0; +/* Generated */ ShadowVeryShortTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(ShadowVeryShort); +/* Generated */ i = ShadowVeryShortTrailingIdx; +/* Generated */ while( i < startIdx ) { +/* Generated */ ShadowVeryShortPeriodTotal[2] += TA_CANDLERANGE( ShadowVeryShort, i-2 ); +/* Generated */ ShadowVeryShortPeriodTotal[1] += TA_CANDLERANGE( ShadowVeryShort, i-1 ); +/* Generated */ ShadowVeryShortPeriodTotal[0] += TA_CANDLERANGE( ShadowVeryShort, i ); +/* Generated */ i++; +/* Generated */ } +/* Generated */ i = startIdx; +/* Generated */ outIdx = 0; +/* Generated */ do +/* Generated */ { +/* Generated */ if( TA_CANDLECOLOR(i-3) == 1 && // white +/* Generated */ TA_CANDLECOLOR(i-2) == -1 && // 1st black +/* Generated */ TA_LOWERSHADOW(i-2) < TA_CANDLEAVERAGE( ShadowVeryShort, ShadowVeryShortPeriodTotal[2], i-2 ) && +/* Generated */ // very short lower shadow +/* Generated */ TA_CANDLECOLOR(i-1) == -1 && // 2nd black +/* Generated */ TA_LOWERSHADOW(i-1) < TA_CANDLEAVERAGE( ShadowVeryShort, ShadowVeryShortPeriodTotal[1], i-1 ) && +/* Generated */ // very short lower shadow +/* Generated */ TA_CANDLECOLOR(i) == -1 && // 3rd black +/* Generated */ TA_LOWERSHADOW(i) < TA_CANDLEAVERAGE( ShadowVeryShort, ShadowVeryShortPeriodTotal[0], i ) && +/* Generated */ // very short lower shadow +/* Generated */ inOpen[i-1] < inOpen[i-2] && inOpen[i-1] > inClose[i-2] && // 2nd black opens within 1st black's rb +/* Generated */ inOpen[i] < inOpen[i-1] && inOpen[i] > inClose[i-1] && // 3rd black opens within 2nd black's rb +/* Generated */ inHigh[i-3] > inClose[i-2] && // 1st black closes under prior candle's high +/* Generated */ inClose[i-2] > inClose[i-1] && // three declining +/* Generated */ inClose[i-1] > inClose[i] // three declining +/* Generated */ ) +/* Generated */ outInteger[outIdx++] = -100; +/* Generated */ else +/* Generated */ outInteger[outIdx++] = 0; +/* Generated */ for (totIdx = 2; totIdx >= 0; --totIdx) +/* Generated */ ShadowVeryShortPeriodTotal[totIdx] += TA_CANDLERANGE( ShadowVeryShort, i-totIdx ) +/* Generated */ - TA_CANDLERANGE( ShadowVeryShort, ShadowVeryShortTrailingIdx-totIdx ); +/* Generated */ i++; +/* Generated */ ShadowVeryShortTrailingIdx++; +/* Generated */ } while( i <= endIdx ); +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_CDL3INSIDE.c b/src/ta_func/ta_CDL3INSIDE.c new file mode 100644 index 000000000..b70b29496 --- /dev/null +++ b/src/ta_func/ta_CDL3INSIDE.c @@ -0,0 +1,375 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * AC Angelo Ciceri + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 121104 AC Creation + * + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::Cdl3InsideLookback( void ) +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int cdl3InsideLookback( ) +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_CDL3INSIDE_Lookback( void ) +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ /* No parameters to validate. */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + return max( TA_CANDLEAVGPERIOD(BodyShort), TA_CANDLEAVGPERIOD(BodyLong) ) + 2; +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_CDL3INSIDE - Three Inside Up/Down + * + * Input = Open, High, Low, Close + * Output = int + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::Cdl3Inside( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inOpen, +/* Generated */ SubArray^ inHigh, +/* Generated */ SubArray^ inLow, +/* Generated */ SubArray^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::Cdl3Inside( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inOpen, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cdl3Inside( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inOpen[], +/* Generated */ double inHigh[], +/* Generated */ double inLow[], +/* Generated */ double inClose[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_CDL3INSIDE( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inOpen[], +/* Generated */ const double inHigh[], +/* Generated */ const double inLow[], +/* Generated */ const double inClose[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* Insert local variables here. */ + double BodyShortPeriodTotal, BodyLongPeriodTotal; + int i, outIdx, BodyShortTrailingIdx, BodyLongTrailingIdx, lookbackTotal; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ /* Verify required price component. */ +/* Generated */ if(!inOpen||!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInteger ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Identify the minimum number of price bar needed + * to calculate at least one output. + */ + + lookbackTotal = LOOKBACK_CALL(CDL3INSIDE)(); + + /* Move up the start index if there is not + * enough initial data. + */ + if( startIdx < lookbackTotal ) + startIdx = lookbackTotal; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + + /* Do the calculation using tight loops. */ + /* Add-up the initial period, except for the last value. */ + BodyLongPeriodTotal = 0; + BodyShortPeriodTotal = 0; + BodyLongTrailingIdx = startIdx -2 - TA_CANDLEAVGPERIOD(BodyLong); + BodyShortTrailingIdx = startIdx -1 - TA_CANDLEAVGPERIOD(BodyShort); + + i = BodyLongTrailingIdx; + while( i < startIdx-2 ) { + BodyLongPeriodTotal += TA_CANDLERANGE( BodyLong, i ); + i++; + } + i = BodyShortTrailingIdx; + while( i < startIdx-1 ) { + BodyShortPeriodTotal += TA_CANDLERANGE( BodyShort, i ); + i++; + } + i = startIdx; + + /* Proceed with the calculation for the requested range. + * Must have: + * - first candle: long white (black) real body + * - second candle: short real body totally engulfed by the first + * - third candle: black (white) candle that closes lower (higher) than the first candle's open + * The meaning of "short" and "long" is specified with TA_SetCandleSettings + * outInteger is positive (1 to 100) for the three inside up or negative (-1 to -100) for the three inside down; + * the user should consider that a three inside up is significant when it appears in a downtrend and a three inside + * down is significant when it appears in an uptrend, while this function does not consider the trend + */ + outIdx = 0; + do + { + if( TA_REALBODY(i-2) > TA_CANDLEAVERAGE( BodyLong, BodyLongPeriodTotal, i-2 ) && // 1st: long + TA_REALBODY(i-1) <= TA_CANDLEAVERAGE( BodyShort, BodyShortPeriodTotal, i-1 ) && // 2nd: short + max( inClose[i-1], inOpen[i-1] ) < max( inClose[i-2], inOpen[i-2] ) && // engulfed by 1st + min( inClose[i-1], inOpen[i-1] ) > min( inClose[i-2], inOpen[i-2] ) && + ( ( TA_CANDLECOLOR(i-2) == 1 && TA_CANDLECOLOR(i) == -1 && inClose[i] < inOpen[i-2] ) // 3rd: opposite to 1st + || // and closing out + ( TA_CANDLECOLOR(i-2) == -1 && TA_CANDLECOLOR(i) == 1 && inClose[i] > inOpen[i-2] ) + ) + ) + outInteger[outIdx++] = -TA_CANDLECOLOR(i-2) * 100; + else + outInteger[outIdx++] = 0; + /* add the current range and subtract the first range: this is done after the pattern recognition + * when avgPeriod is not 0, that means "compare with the previous candles" (it excludes the current candle) + */ + BodyLongPeriodTotal += TA_CANDLERANGE( BodyLong, i-2 ) - TA_CANDLERANGE( BodyLong, BodyLongTrailingIdx ); + BodyShortPeriodTotal += TA_CANDLERANGE( BodyShort, i-1 ) - TA_CANDLERANGE( BodyShort, BodyShortTrailingIdx ); + i++; + BodyLongTrailingIdx++; + BodyShortTrailingIdx++; + } while( i <= endIdx ); + + /* All done. Indicate the output limits and return. */ + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::Cdl3Inside( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inOpen, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cdl3Inside( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inOpen[], +/* Generated */ float inHigh[], +/* Generated */ float inLow[], +/* Generated */ float inClose[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_CDL3INSIDE( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inOpen[], +/* Generated */ const float inHigh[], +/* Generated */ const float inLow[], +/* Generated */ const float inClose[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ double BodyShortPeriodTotal, BodyLongPeriodTotal; +/* Generated */ int i, outIdx, BodyShortTrailingIdx, BodyLongTrailingIdx, lookbackTotal; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if(!inOpen||!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInteger ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ lookbackTotal = LOOKBACK_CALL(CDL3INSIDE)(); +/* Generated */ if( startIdx < lookbackTotal ) +/* Generated */ startIdx = lookbackTotal; +/* Generated */ if( startIdx > endIdx ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ BodyLongPeriodTotal = 0; +/* Generated */ BodyShortPeriodTotal = 0; +/* Generated */ BodyLongTrailingIdx = startIdx -2 - TA_CANDLEAVGPERIOD(BodyLong); +/* Generated */ BodyShortTrailingIdx = startIdx -1 - TA_CANDLEAVGPERIOD(BodyShort); +/* Generated */ i = BodyLongTrailingIdx; +/* Generated */ while( i < startIdx-2 ) { +/* Generated */ BodyLongPeriodTotal += TA_CANDLERANGE( BodyLong, i ); +/* Generated */ i++; +/* Generated */ } +/* Generated */ i = BodyShortTrailingIdx; +/* Generated */ while( i < startIdx-1 ) { +/* Generated */ BodyShortPeriodTotal += TA_CANDLERANGE( BodyShort, i ); +/* Generated */ i++; +/* Generated */ } +/* Generated */ i = startIdx; +/* Generated */ outIdx = 0; +/* Generated */ do +/* Generated */ { +/* Generated */ if( TA_REALBODY(i-2) > TA_CANDLEAVERAGE( BodyLong, BodyLongPeriodTotal, i-2 ) && // 1st: long +/* Generated */ TA_REALBODY(i-1) <= TA_CANDLEAVERAGE( BodyShort, BodyShortPeriodTotal, i-1 ) && // 2nd: short +/* Generated */ max( inClose[i-1], inOpen[i-1] ) < max( inClose[i-2], inOpen[i-2] ) && // engulfed by 1st +/* Generated */ min( inClose[i-1], inOpen[i-1] ) > min( inClose[i-2], inOpen[i-2] ) && +/* Generated */ ( ( TA_CANDLECOLOR(i-2) == 1 && TA_CANDLECOLOR(i) == -1 && inClose[i] < inOpen[i-2] ) // 3rd: opposite to 1st +/* Generated */ || // and closing out +/* Generated */ ( TA_CANDLECOLOR(i-2) == -1 && TA_CANDLECOLOR(i) == 1 && inClose[i] > inOpen[i-2] ) +/* Generated */ ) +/* Generated */ ) +/* Generated */ outInteger[outIdx++] = -TA_CANDLECOLOR(i-2) * 100; +/* Generated */ else +/* Generated */ outInteger[outIdx++] = 0; +/* Generated */ BodyLongPeriodTotal += TA_CANDLERANGE( BodyLong, i-2 ) - TA_CANDLERANGE( BodyLong, BodyLongTrailingIdx ); +/* Generated */ BodyShortPeriodTotal += TA_CANDLERANGE( BodyShort, i-1 ) - TA_CANDLERANGE( BodyShort, BodyShortTrailingIdx ); +/* Generated */ i++; +/* Generated */ BodyLongTrailingIdx++; +/* Generated */ BodyShortTrailingIdx++; +/* Generated */ } while( i <= endIdx ); +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_CDL3LINESTRIKE.c b/src/ta_func/ta_CDL3LINESTRIKE.c new file mode 100644 index 000000000..642e250ed --- /dev/null +++ b/src/ta_func/ta_CDL3LINESTRIKE.c @@ -0,0 +1,396 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * AC Angelo Ciceri + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 121104 AC Creation + * + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::Cdl3LineStrikeLookback( void ) +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int cdl3LineStrikeLookback( ) +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_CDL3LINESTRIKE_Lookback( void ) +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ /* No parameters to validate. */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + return TA_CANDLEAVGPERIOD(Near) + 3; +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_CDL3LINESTRIKE - Three-Line Strike + * + * Input = Open, High, Low, Close + * Output = int + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::Cdl3LineStrike( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inOpen, +/* Generated */ SubArray^ inHigh, +/* Generated */ SubArray^ inLow, +/* Generated */ SubArray^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::Cdl3LineStrike( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inOpen, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cdl3LineStrike( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inOpen[], +/* Generated */ double inHigh[], +/* Generated */ double inLow[], +/* Generated */ double inClose[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_CDL3LINESTRIKE( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inOpen[], +/* Generated */ const double inHigh[], +/* Generated */ const double inLow[], +/* Generated */ const double inClose[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* Insert local variables here. */ + ARRAY_LOCAL(NearPeriodTotal,4); + int i, outIdx, totIdx, NearTrailingIdx, lookbackTotal; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ /* Verify required price component. */ +/* Generated */ if(!inOpen||!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInteger ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Identify the minimum number of price bar needed + * to calculate at least one output. + */ + + lookbackTotal = LOOKBACK_CALL(CDL3LINESTRIKE)(); + + /* Move up the start index if there is not + * enough initial data. + */ + if( startIdx < lookbackTotal ) + startIdx = lookbackTotal; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + + /* Do the calculation using tight loops. */ + /* Add-up the initial period, except for the last value. */ + NearPeriodTotal[3] = 0; + NearPeriodTotal[2] = 0; + NearTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(Near); + + i = NearTrailingIdx; + while( i < startIdx ) { + NearPeriodTotal[3] += TA_CANDLERANGE( Near, i-3 ); + NearPeriodTotal[2] += TA_CANDLERANGE( Near, i-2 ); + i++; + } + i = startIdx; + + /* Proceed with the calculation for the requested range. + * Must have: + * - three white soldiers (three black crows): three white (black) candlesticks with consecutively higher (lower) closes, + * each opening within or near the previous real body + * - fourth candle: black (white) candle that opens above (below) prior candle's close and closes below (above) + * the first candle's open + * The meaning of "near" is specified with TA_SetCandleSettings; + * outInteger is positive (1 to 100) when bullish or negative (-1 to -100) when bearish; + * the user should consider that 3-line strike is significant when it appears in a trend in the same direction of + * the first three candles, while this function does not consider it + */ + outIdx = 0; + do + { + if( TA_CANDLECOLOR(i-3) == TA_CANDLECOLOR(i-2) && // three with same color + TA_CANDLECOLOR(i-2) == TA_CANDLECOLOR(i-1) && + TA_CANDLECOLOR(i) == -TA_CANDLECOLOR(i-1) && // 4th opposite color + // 2nd opens within/near 1st rb + inOpen[i-2] >= min( inOpen[i-3], inClose[i-3] ) - TA_CANDLEAVERAGE( Near, NearPeriodTotal[3], i-3 ) && + inOpen[i-2] <= max( inOpen[i-3], inClose[i-3] ) + TA_CANDLEAVERAGE( Near, NearPeriodTotal[3], i-3 ) && + // 3rd opens within/near 2nd rb + inOpen[i-1] >= min( inOpen[i-2], inClose[i-2] ) - TA_CANDLEAVERAGE( Near, NearPeriodTotal[2], i-2 ) && + inOpen[i-1] <= max( inOpen[i-2], inClose[i-2] ) + TA_CANDLEAVERAGE( Near, NearPeriodTotal[2], i-2 ) && + ( + ( // if three white + TA_CANDLECOLOR(i-1) == 1 && + inClose[i-1] > inClose[i-2] && inClose[i-2] > inClose[i-3] && // consecutive higher closes + inOpen[i] > inClose[i-1] && // 4th opens above prior close + inClose[i] < inOpen[i-3] // 4th closes below 1st open + ) || + ( // if three black + TA_CANDLECOLOR(i-1) == -1 && + inClose[i-1] < inClose[i-2] && inClose[i-2] < inClose[i-3] && // consecutive lower closes + inOpen[i] < inClose[i-1] && // 4th opens below prior close + inClose[i] > inOpen[i-3] // 4th closes above 1st open + ) + ) + ) + outInteger[outIdx++] = TA_CANDLECOLOR(i-1) * 100; + else + outInteger[outIdx++] = 0; + /* add the current range and subtract the first range: this is done after the pattern recognition + * when avgPeriod is not 0, that means "compare with the previous candles" (it excludes the current candle) + */ + for (totIdx = 3; totIdx >= 2; --totIdx) + NearPeriodTotal[totIdx] += TA_CANDLERANGE( Near, i-totIdx ) + - TA_CANDLERANGE( Near, NearTrailingIdx-totIdx ); + i++; + NearTrailingIdx++; + } while( i <= endIdx ); + + /* All done. Indicate the output limits and return. */ + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::Cdl3LineStrike( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inOpen, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cdl3LineStrike( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inOpen[], +/* Generated */ float inHigh[], +/* Generated */ float inLow[], +/* Generated */ float inClose[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_CDL3LINESTRIKE( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inOpen[], +/* Generated */ const float inHigh[], +/* Generated */ const float inLow[], +/* Generated */ const float inClose[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ ARRAY_LOCAL(NearPeriodTotal,4); +/* Generated */ int i, outIdx, totIdx, NearTrailingIdx, lookbackTotal; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if(!inOpen||!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInteger ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ lookbackTotal = LOOKBACK_CALL(CDL3LINESTRIKE)(); +/* Generated */ if( startIdx < lookbackTotal ) +/* Generated */ startIdx = lookbackTotal; +/* Generated */ if( startIdx > endIdx ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ NearPeriodTotal[3] = 0; +/* Generated */ NearPeriodTotal[2] = 0; +/* Generated */ NearTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(Near); +/* Generated */ i = NearTrailingIdx; +/* Generated */ while( i < startIdx ) { +/* Generated */ NearPeriodTotal[3] += TA_CANDLERANGE( Near, i-3 ); +/* Generated */ NearPeriodTotal[2] += TA_CANDLERANGE( Near, i-2 ); +/* Generated */ i++; +/* Generated */ } +/* Generated */ i = startIdx; +/* Generated */ outIdx = 0; +/* Generated */ do +/* Generated */ { +/* Generated */ if( TA_CANDLECOLOR(i-3) == TA_CANDLECOLOR(i-2) && // three with same color +/* Generated */ TA_CANDLECOLOR(i-2) == TA_CANDLECOLOR(i-1) && +/* Generated */ TA_CANDLECOLOR(i) == -TA_CANDLECOLOR(i-1) && // 4th opposite color +/* Generated */ // 2nd opens within/near 1st rb +/* Generated */ inOpen[i-2] >= min( inOpen[i-3], inClose[i-3] ) - TA_CANDLEAVERAGE( Near, NearPeriodTotal[3], i-3 ) && +/* Generated */ inOpen[i-2] <= max( inOpen[i-3], inClose[i-3] ) + TA_CANDLEAVERAGE( Near, NearPeriodTotal[3], i-3 ) && +/* Generated */ // 3rd opens within/near 2nd rb +/* Generated */ inOpen[i-1] >= min( inOpen[i-2], inClose[i-2] ) - TA_CANDLEAVERAGE( Near, NearPeriodTotal[2], i-2 ) && +/* Generated */ inOpen[i-1] <= max( inOpen[i-2], inClose[i-2] ) + TA_CANDLEAVERAGE( Near, NearPeriodTotal[2], i-2 ) && +/* Generated */ ( +/* Generated */ ( // if three white +/* Generated */ TA_CANDLECOLOR(i-1) == 1 && +/* Generated */ inClose[i-1] > inClose[i-2] && inClose[i-2] > inClose[i-3] && // consecutive higher closes +/* Generated */ inOpen[i] > inClose[i-1] && // 4th opens above prior close +/* Generated */ inClose[i] < inOpen[i-3] // 4th closes below 1st open +/* Generated */ ) || +/* Generated */ ( // if three black +/* Generated */ TA_CANDLECOLOR(i-1) == -1 && +/* Generated */ inClose[i-1] < inClose[i-2] && inClose[i-2] < inClose[i-3] && // consecutive lower closes +/* Generated */ inOpen[i] < inClose[i-1] && // 4th opens below prior close +/* Generated */ inClose[i] > inOpen[i-3] // 4th closes above 1st open +/* Generated */ ) +/* Generated */ ) +/* Generated */ ) +/* Generated */ outInteger[outIdx++] = TA_CANDLECOLOR(i-1) * 100; +/* Generated */ else +/* Generated */ outInteger[outIdx++] = 0; +/* Generated */ for (totIdx = 3; totIdx >= 2; --totIdx) +/* Generated */ NearPeriodTotal[totIdx] += TA_CANDLERANGE( Near, i-totIdx ) +/* Generated */ - TA_CANDLERANGE( Near, NearTrailingIdx-totIdx ); +/* Generated */ i++; +/* Generated */ NearTrailingIdx++; +/* Generated */ } while( i <= endIdx ); +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_CDL3OUTSIDE.c b/src/ta_func/ta_CDL3OUTSIDE.c new file mode 100644 index 000000000..15f6c192a --- /dev/null +++ b/src/ta_func/ta_CDL3OUTSIDE.c @@ -0,0 +1,334 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * AC Angelo Ciceri + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 121104 AC Creation + * + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::Cdl3OutsideLookback( void ) +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int cdl3OutsideLookback( ) +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_CDL3OUTSIDE_Lookback( void ) +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ /* No parameters to validate. */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + return 3; +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_CDL3OUTSIDE - Three Outside Up/Down + * + * Input = Open, High, Low, Close + * Output = int + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::Cdl3Outside( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inOpen, +/* Generated */ SubArray^ inHigh, +/* Generated */ SubArray^ inLow, +/* Generated */ SubArray^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::Cdl3Outside( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inOpen, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cdl3Outside( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inOpen[], +/* Generated */ double inHigh[], +/* Generated */ double inLow[], +/* Generated */ double inClose[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_CDL3OUTSIDE( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inOpen[], +/* Generated */ const double inHigh[], +/* Generated */ const double inLow[], +/* Generated */ const double inClose[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* Insert local variables here. */ + int i, outIdx, lookbackTotal; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ /* Verify required price component. */ +/* Generated */ if(!inOpen||!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInteger ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Identify the minimum number of price bar needed + * to calculate at least one output. + */ + + lookbackTotal = LOOKBACK_CALL(CDL3OUTSIDE)(); + + /* Move up the start index if there is not + * enough initial data. + */ + if( startIdx < lookbackTotal ) + startIdx = lookbackTotal; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + + /* Do the calculation using tight loops. */ + /* Add-up the initial period, except for the last value. */ + i = startIdx; + + /* Proceed with the calculation for the requested range. + * Must have: + * - first: black (white) real body + * - second: white (black) real body that engulfs the prior real body + * - third: candle that closes higher (lower) than the second candle + * outInteger is positive (1 to 100) for the three outside up or negative (-1 to -100) for the three outside down; + * the user should consider that a three outside up must appear in a downtrend and three outside down must appear + * in an uptrend, while this function does not consider it + */ + outIdx = 0; + do + { + if( ( TA_CANDLECOLOR(i-1) == 1 && TA_CANDLECOLOR(i-2) == -1 && // white engulfs black + inClose[i-1] > inOpen[i-2] && inOpen[i-1] < inClose[i-2] && + inClose[i] > inClose[i-1] // third candle higher + ) + || + ( TA_CANDLECOLOR(i-1) == -1 && TA_CANDLECOLOR(i-2) == 1 && // black engulfs white + inOpen[i-1] > inClose[i-2] && inClose[i-1] < inOpen[i-2] && + inClose[i] < inClose[i-1] // third candle lower + ) + ) + outInteger[outIdx++] = TA_CANDLECOLOR(i-1) * 100; + else + outInteger[outIdx++] = 0; + i++; + } while( i <= endIdx ); + + /* All done. Indicate the output limits and return. */ + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::Cdl3Outside( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inOpen, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cdl3Outside( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inOpen[], +/* Generated */ float inHigh[], +/* Generated */ float inLow[], +/* Generated */ float inClose[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_CDL3OUTSIDE( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inOpen[], +/* Generated */ const float inHigh[], +/* Generated */ const float inLow[], +/* Generated */ const float inClose[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ int i, outIdx, lookbackTotal; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if(!inOpen||!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInteger ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ lookbackTotal = LOOKBACK_CALL(CDL3OUTSIDE)(); +/* Generated */ if( startIdx < lookbackTotal ) +/* Generated */ startIdx = lookbackTotal; +/* Generated */ if( startIdx > endIdx ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ i = startIdx; +/* Generated */ outIdx = 0; +/* Generated */ do +/* Generated */ { +/* Generated */ if( ( TA_CANDLECOLOR(i-1) == 1 && TA_CANDLECOLOR(i-2) == -1 && // white engulfs black +/* Generated */ inClose[i-1] > inOpen[i-2] && inOpen[i-1] < inClose[i-2] && +/* Generated */ inClose[i] > inClose[i-1] // third candle higher +/* Generated */ ) +/* Generated */ || +/* Generated */ ( TA_CANDLECOLOR(i-1) == -1 && TA_CANDLECOLOR(i-2) == 1 && // black engulfs white +/* Generated */ inOpen[i-1] > inClose[i-2] && inClose[i-1] < inOpen[i-2] && +/* Generated */ inClose[i] < inClose[i-1] // third candle lower +/* Generated */ ) +/* Generated */ ) +/* Generated */ outInteger[outIdx++] = TA_CANDLECOLOR(i-1) * 100; +/* Generated */ else +/* Generated */ outInteger[outIdx++] = 0; +/* Generated */ i++; +/* Generated */ } while( i <= endIdx ); +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_CDL3STARSINSOUTH.c b/src/ta_func/ta_CDL3STARSINSOUTH.c new file mode 100644 index 000000000..51e13d8c3 --- /dev/null +++ b/src/ta_func/ta_CDL3STARSINSOUTH.c @@ -0,0 +1,452 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * AC Angelo Ciceri + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 022705 AC Creation + * + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::Cdl3StarsInSouthLookback( void ) +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int cdl3StarsInSouthLookback( ) +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_CDL3STARSINSOUTH_Lookback( void ) +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ /* No parameters to validate. */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + return max( max( TA_CANDLEAVGPERIOD(ShadowVeryShort), TA_CANDLEAVGPERIOD(ShadowLong) ), + max( TA_CANDLEAVGPERIOD(BodyLong), TA_CANDLEAVGPERIOD(BodyShort) ) + ) + 2; +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_CDL3STARSINSOUTH - Three Stars In The South + * + * Input = Open, High, Low, Close + * Output = int + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::Cdl3StarsInSouth( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inOpen, +/* Generated */ SubArray^ inHigh, +/* Generated */ SubArray^ inLow, +/* Generated */ SubArray^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::Cdl3StarsInSouth( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inOpen, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cdl3StarsInSouth( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inOpen[], +/* Generated */ double inHigh[], +/* Generated */ double inLow[], +/* Generated */ double inClose[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_CDL3STARSINSOUTH( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inOpen[], +/* Generated */ const double inHigh[], +/* Generated */ const double inLow[], +/* Generated */ const double inClose[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* Insert local variables here. */ + double BodyLongPeriodTotal, BodyShortPeriodTotal, ShadowLongPeriodTotal; + ARRAY_LOCAL(ShadowVeryShortPeriodTotal,2); + int i, outIdx, totIdx, BodyLongTrailingIdx, BodyShortTrailingIdx, ShadowLongTrailingIdx, ShadowVeryShortTrailingIdx, + lookbackTotal; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ /* Verify required price component. */ +/* Generated */ if(!inOpen||!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInteger ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Identify the minimum number of price bar needed + * to calculate at least one output. + */ + + lookbackTotal = LOOKBACK_CALL(CDL3STARSINSOUTH)(); + + /* Move up the start index if there is not + * enough initial data. + */ + if( startIdx < lookbackTotal ) + startIdx = lookbackTotal; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + + /* Do the calculation using tight loops. */ + /* Add-up the initial period, except for the last value. */ + BodyLongPeriodTotal = 0; + BodyLongTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(BodyLong); + ShadowLongPeriodTotal = 0; + ShadowLongTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(ShadowLong); + ShadowVeryShortPeriodTotal[1] = 0; + ShadowVeryShortPeriodTotal[0] = 0; + ShadowVeryShortTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(ShadowVeryShort); + BodyShortPeriodTotal = 0; + BodyShortTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(BodyShort); + + i = BodyLongTrailingIdx; + while( i < startIdx ) { + BodyLongPeriodTotal += TA_CANDLERANGE( BodyLong, i-2 ); + i++; + } + i = ShadowLongTrailingIdx; + while( i < startIdx ) { + ShadowLongPeriodTotal += TA_CANDLERANGE( ShadowLong, i-2 ); + i++; + } + i = ShadowVeryShortTrailingIdx; + while( i < startIdx ) { + ShadowVeryShortPeriodTotal[1] += TA_CANDLERANGE( ShadowVeryShort, i-1 ); + ShadowVeryShortPeriodTotal[0] += TA_CANDLERANGE( ShadowVeryShort, i ); + i++; + } + i = BodyShortTrailingIdx; + while( i < startIdx ) { + BodyShortPeriodTotal += TA_CANDLERANGE( BodyShort, i ); + i++; + } + i = startIdx; + + /* Proceed with the calculation for the requested range. + * Must have: + * - first candle: long black candle with long lower shadow + * - second candle: smaller black candle that opens higher than prior close but within prior candle's range + * and trades lower than prior close but not lower than prior low and closes off of its low (it has a shadow) + * - third candle: small black marubozu (or candle with very short shadows) engulfed by prior candle's range + * The meanings of "long body", "short body", "very short shadow" are specified with TA_SetCandleSettings; + * outInteger is positive (1 to 100): 3 stars in the south is always bullish; + * the user should consider that 3 stars in the south is significant when it appears in downtrend, while this function + * does not consider it + */ + outIdx = 0; + do + { + if( TA_CANDLECOLOR(i-2) == -1 && // 1st black + TA_CANDLECOLOR(i-1) == -1 && // 2nd black + TA_CANDLECOLOR(i) == -1 && // 3rd black + // 1st: long + TA_REALBODY(i-2) > TA_CANDLEAVERAGE( BodyLong, BodyLongPeriodTotal, i-2 ) && + // with long lower shadow + TA_LOWERSHADOW(i-2) > TA_CANDLEAVERAGE( ShadowLong, ShadowLongPeriodTotal, i-2 ) && + TA_REALBODY(i-1) < TA_REALBODY(i-2) && // 2nd: smaller candle + inOpen[i-1] > inClose[i-2] && inOpen[i-1] <= inHigh[i-2] && // that opens higher but within 1st range + inLow[i-1] < inClose[i-2] && // and trades lower than 1st close + inLow[i-1] >= inLow[i-2] && // but not lower than 1st low + // and has a lower shadow + TA_LOWERSHADOW(i-1) > TA_CANDLEAVERAGE( ShadowVeryShort, ShadowVeryShortPeriodTotal[1], i-1 ) && + // 3rd: small marubozu + TA_REALBODY(i) < TA_CANDLEAVERAGE( BodyShort, BodyShortPeriodTotal, i ) && + TA_LOWERSHADOW(i) < TA_CANDLEAVERAGE( ShadowVeryShort, ShadowVeryShortPeriodTotal[0], i ) && + TA_UPPERSHADOW(i) < TA_CANDLEAVERAGE( ShadowVeryShort, ShadowVeryShortPeriodTotal[0], i ) && + inLow[i] > inLow[i-1] && inHigh[i] < inHigh[i-1] // engulfed by prior candle's range + ) + outInteger[outIdx++] = 100; + else + outInteger[outIdx++] = 0; + /* add the current range and subtract the first range: this is done after the pattern recognition + * when avgPeriod is not 0, that means "compare with the previous candles" (it excludes the current candle) + */ + BodyLongPeriodTotal += TA_CANDLERANGE( BodyLong, i-2 ) + - TA_CANDLERANGE( BodyLong, BodyLongTrailingIdx-2 ); + ShadowLongPeriodTotal += TA_CANDLERANGE( ShadowLong, i-2 ) + - TA_CANDLERANGE( ShadowLong, ShadowLongTrailingIdx-2 ); + for (totIdx = 1; totIdx >= 0; --totIdx) + ShadowVeryShortPeriodTotal[totIdx] += TA_CANDLERANGE( ShadowVeryShort, i-totIdx ) + - TA_CANDLERANGE( ShadowVeryShort, ShadowVeryShortTrailingIdx-totIdx ); + BodyShortPeriodTotal += TA_CANDLERANGE( BodyShort, i ) + - TA_CANDLERANGE( BodyShort, BodyShortTrailingIdx ); + i++; + BodyLongTrailingIdx++; + ShadowLongTrailingIdx++; + ShadowVeryShortTrailingIdx++; + BodyShortTrailingIdx++; + } while( i <= endIdx ); + + /* All done. Indicate the output limits and return. */ + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::Cdl3StarsInSouth( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inOpen, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cdl3StarsInSouth( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inOpen[], +/* Generated */ float inHigh[], +/* Generated */ float inLow[], +/* Generated */ float inClose[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_CDL3STARSINSOUTH( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inOpen[], +/* Generated */ const float inHigh[], +/* Generated */ const float inLow[], +/* Generated */ const float inClose[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ double BodyLongPeriodTotal, BodyShortPeriodTotal, ShadowLongPeriodTotal; +/* Generated */ ARRAY_LOCAL(ShadowVeryShortPeriodTotal,2); +/* Generated */ int i, outIdx, totIdx, BodyLongTrailingIdx, BodyShortTrailingIdx, ShadowLongTrailingIdx, ShadowVeryShortTrailingIdx, +/* Generated */ lookbackTotal; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if(!inOpen||!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInteger ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ lookbackTotal = LOOKBACK_CALL(CDL3STARSINSOUTH)(); +/* Generated */ if( startIdx < lookbackTotal ) +/* Generated */ startIdx = lookbackTotal; +/* Generated */ if( startIdx > endIdx ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ BodyLongPeriodTotal = 0; +/* Generated */ BodyLongTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(BodyLong); +/* Generated */ ShadowLongPeriodTotal = 0; +/* Generated */ ShadowLongTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(ShadowLong); +/* Generated */ ShadowVeryShortPeriodTotal[1] = 0; +/* Generated */ ShadowVeryShortPeriodTotal[0] = 0; +/* Generated */ ShadowVeryShortTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(ShadowVeryShort); +/* Generated */ BodyShortPeriodTotal = 0; +/* Generated */ BodyShortTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(BodyShort); +/* Generated */ i = BodyLongTrailingIdx; +/* Generated */ while( i < startIdx ) { +/* Generated */ BodyLongPeriodTotal += TA_CANDLERANGE( BodyLong, i-2 ); +/* Generated */ i++; +/* Generated */ } +/* Generated */ i = ShadowLongTrailingIdx; +/* Generated */ while( i < startIdx ) { +/* Generated */ ShadowLongPeriodTotal += TA_CANDLERANGE( ShadowLong, i-2 ); +/* Generated */ i++; +/* Generated */ } +/* Generated */ i = ShadowVeryShortTrailingIdx; +/* Generated */ while( i < startIdx ) { +/* Generated */ ShadowVeryShortPeriodTotal[1] += TA_CANDLERANGE( ShadowVeryShort, i-1 ); +/* Generated */ ShadowVeryShortPeriodTotal[0] += TA_CANDLERANGE( ShadowVeryShort, i ); +/* Generated */ i++; +/* Generated */ } +/* Generated */ i = BodyShortTrailingIdx; +/* Generated */ while( i < startIdx ) { +/* Generated */ BodyShortPeriodTotal += TA_CANDLERANGE( BodyShort, i ); +/* Generated */ i++; +/* Generated */ } +/* Generated */ i = startIdx; +/* Generated */ outIdx = 0; +/* Generated */ do +/* Generated */ { +/* Generated */ if( TA_CANDLECOLOR(i-2) == -1 && // 1st black +/* Generated */ TA_CANDLECOLOR(i-1) == -1 && // 2nd black +/* Generated */ TA_CANDLECOLOR(i) == -1 && // 3rd black +/* Generated */ // 1st: long +/* Generated */ TA_REALBODY(i-2) > TA_CANDLEAVERAGE( BodyLong, BodyLongPeriodTotal, i-2 ) && +/* Generated */ // with long lower shadow +/* Generated */ TA_LOWERSHADOW(i-2) > TA_CANDLEAVERAGE( ShadowLong, ShadowLongPeriodTotal, i-2 ) && +/* Generated */ TA_REALBODY(i-1) < TA_REALBODY(i-2) && // 2nd: smaller candle +/* Generated */ inOpen[i-1] > inClose[i-2] && inOpen[i-1] <= inHigh[i-2] && // that opens higher but within 1st range +/* Generated */ inLow[i-1] < inClose[i-2] && // and trades lower than 1st close +/* Generated */ inLow[i-1] >= inLow[i-2] && // but not lower than 1st low +/* Generated */ // and has a lower shadow +/* Generated */ TA_LOWERSHADOW(i-1) > TA_CANDLEAVERAGE( ShadowVeryShort, ShadowVeryShortPeriodTotal[1], i-1 ) && +/* Generated */ // 3rd: small marubozu +/* Generated */ TA_REALBODY(i) < TA_CANDLEAVERAGE( BodyShort, BodyShortPeriodTotal, i ) && +/* Generated */ TA_LOWERSHADOW(i) < TA_CANDLEAVERAGE( ShadowVeryShort, ShadowVeryShortPeriodTotal[0], i ) && +/* Generated */ TA_UPPERSHADOW(i) < TA_CANDLEAVERAGE( ShadowVeryShort, ShadowVeryShortPeriodTotal[0], i ) && +/* Generated */ inLow[i] > inLow[i-1] && inHigh[i] < inHigh[i-1] // engulfed by prior candle's range +/* Generated */ ) +/* Generated */ outInteger[outIdx++] = 100; +/* Generated */ else +/* Generated */ outInteger[outIdx++] = 0; +/* Generated */ BodyLongPeriodTotal += TA_CANDLERANGE( BodyLong, i-2 ) +/* Generated */ - TA_CANDLERANGE( BodyLong, BodyLongTrailingIdx-2 ); +/* Generated */ ShadowLongPeriodTotal += TA_CANDLERANGE( ShadowLong, i-2 ) +/* Generated */ - TA_CANDLERANGE( ShadowLong, ShadowLongTrailingIdx-2 ); +/* Generated */ for (totIdx = 1; totIdx >= 0; --totIdx) +/* Generated */ ShadowVeryShortPeriodTotal[totIdx] += TA_CANDLERANGE( ShadowVeryShort, i-totIdx ) +/* Generated */ - TA_CANDLERANGE( ShadowVeryShort, ShadowVeryShortTrailingIdx-totIdx ); +/* Generated */ BodyShortPeriodTotal += TA_CANDLERANGE( BodyShort, i ) +/* Generated */ - TA_CANDLERANGE( BodyShort, BodyShortTrailingIdx ); +/* Generated */ i++; +/* Generated */ BodyLongTrailingIdx++; +/* Generated */ ShadowLongTrailingIdx++; +/* Generated */ ShadowVeryShortTrailingIdx++; +/* Generated */ BodyShortTrailingIdx++; +/* Generated */ } while( i <= endIdx ); +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_CDL3WHITESOLDIERS.c b/src/ta_func/ta_CDL3WHITESOLDIERS.c new file mode 100644 index 000000000..a8098c9a6 --- /dev/null +++ b/src/ta_func/ta_CDL3WHITESOLDIERS.c @@ -0,0 +1,476 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * AC Angelo Ciceri + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 120404 AC Creation + * + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::Cdl3WhiteSoldiersLookback( void ) +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int cdl3WhiteSoldiersLookback( ) +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_CDL3WHITESOLDIERS_Lookback( void ) +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ /* No parameters to validate. */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + return max( max( TA_CANDLEAVGPERIOD(ShadowVeryShort), TA_CANDLEAVGPERIOD(BodyShort) ), + max( TA_CANDLEAVGPERIOD(Far), TA_CANDLEAVGPERIOD(Near) ) + ) + 2; +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_CDL3WHITESOLDIERS - Three Advancing White Soldiers + * + * Input = Open, High, Low, Close + * Output = int + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::Cdl3WhiteSoldiers( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inOpen, +/* Generated */ SubArray^ inHigh, +/* Generated */ SubArray^ inLow, +/* Generated */ SubArray^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::Cdl3WhiteSoldiers( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inOpen, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cdl3WhiteSoldiers( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inOpen[], +/* Generated */ double inHigh[], +/* Generated */ double inLow[], +/* Generated */ double inClose[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_CDL3WHITESOLDIERS( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inOpen[], +/* Generated */ const double inHigh[], +/* Generated */ const double inLow[], +/* Generated */ const double inClose[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* Insert local variables here. */ + ARRAY_LOCAL(ShadowVeryShortPeriodTotal,3); + ARRAY_LOCAL(NearPeriodTotal,3); + ARRAY_LOCAL(FarPeriodTotal,3); + double BodyShortPeriodTotal; + int i, outIdx, totIdx, ShadowVeryShortTrailingIdx, NearTrailingIdx, FarTrailingIdx, BodyShortTrailingIdx, lookbackTotal; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ /* Verify required price component. */ +/* Generated */ if(!inOpen||!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInteger ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Identify the minimum number of price bar needed + * to calculate at least one output. + */ + + lookbackTotal = LOOKBACK_CALL(CDL3WHITESOLDIERS)(); + + /* Move up the start index if there is not + * enough initial data. + */ + if( startIdx < lookbackTotal ) + startIdx = lookbackTotal; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + + /* Do the calculation using tight loops. */ + /* Add-up the initial period, except for the last value. */ + ShadowVeryShortPeriodTotal[2] = 0; + ShadowVeryShortPeriodTotal[1] = 0; + ShadowVeryShortPeriodTotal[0] = 0; + ShadowVeryShortTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(ShadowVeryShort); + NearPeriodTotal[2] = 0; + NearPeriodTotal[1] = 0; + NearPeriodTotal[0] = 0; + NearTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(Near); + FarPeriodTotal[2] = 0; + FarPeriodTotal[1] = 0; + FarPeriodTotal[0] = 0; + FarTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(Far); + BodyShortPeriodTotal = 0; + BodyShortTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(BodyShort); + + i = ShadowVeryShortTrailingIdx; + while( i < startIdx ) { + ShadowVeryShortPeriodTotal[2] += TA_CANDLERANGE( ShadowVeryShort, i-2 ); + ShadowVeryShortPeriodTotal[1] += TA_CANDLERANGE( ShadowVeryShort, i-1 ); + ShadowVeryShortPeriodTotal[0] += TA_CANDLERANGE( ShadowVeryShort, i ); + i++; + } + i = NearTrailingIdx; + while( i < startIdx ) { + NearPeriodTotal[2] += TA_CANDLERANGE( Near, i-2 ); + NearPeriodTotal[1] += TA_CANDLERANGE( Near, i-1 ); + i++; + } + i = FarTrailingIdx; + while( i < startIdx ) { + FarPeriodTotal[2] += TA_CANDLERANGE( Far, i-2 ); + FarPeriodTotal[1] += TA_CANDLERANGE( Far, i-1 ); + i++; + } + i = BodyShortTrailingIdx; + while( i < startIdx ) { + BodyShortPeriodTotal += TA_CANDLERANGE( BodyShort, i ); + i++; + } + i = startIdx; + + /* Proceed with the calculation for the requested range. + * Must have: + * - three white candlesticks with consecutively higher closes + * - Greg Morris wants them to be long, Steve Nison doesn't; anyway they should not be short + * - each candle opens within or near the previous white real body + * - each candle must have no or very short upper shadow + * - to differentiate this pattern from advance block, each candle must not be far shorter than the prior candle + * The meanings of "not short", "very short shadow", "far" and "near" are specified with TA_SetCandleSettings; + * here the 3 candles must be not short, if you want them to be long use TA_SetCandleSettings on BodyShort; + * outInteger is positive (1 to 100): advancing 3 white soldiers is always bullish; + * the user should consider that 3 white soldiers is significant when it appears in downtrend, while this function + * does not consider it + */ + outIdx = 0; + do + { + if( TA_CANDLECOLOR(i-2) == 1 && // 1st white + TA_UPPERSHADOW(i-2) < TA_CANDLEAVERAGE( ShadowVeryShort, ShadowVeryShortPeriodTotal[2], i-2 ) && + // very short upper shadow + TA_CANDLECOLOR(i-1) == 1 && // 2nd white + TA_UPPERSHADOW(i-1) < TA_CANDLEAVERAGE( ShadowVeryShort, ShadowVeryShortPeriodTotal[1], i-1 ) && + // very short upper shadow + TA_CANDLECOLOR(i) == 1 && // 3rd white + TA_UPPERSHADOW(i) < TA_CANDLEAVERAGE( ShadowVeryShort, ShadowVeryShortPeriodTotal[0], i ) && + // very short upper shadow + inClose[i] > inClose[i-1] && inClose[i-1] > inClose[i-2] && // consecutive higher closes + inOpen[i-1] > inOpen[i-2] && // 2nd opens within/near 1st real body + inOpen[i-1] <= inClose[i-2] + TA_CANDLEAVERAGE( Near, NearPeriodTotal[2], i-2 ) && + inOpen[i] > inOpen[i-1] && // 3rd opens within/near 2nd real body + inOpen[i] <= inClose[i-1] + TA_CANDLEAVERAGE( Near, NearPeriodTotal[1], i-1 ) && + TA_REALBODY(i-1) > TA_REALBODY(i-2) - TA_CANDLEAVERAGE( Far, FarPeriodTotal[2], i-2 ) && + // 2nd not far shorter than 1st + TA_REALBODY(i) > TA_REALBODY(i-1) - TA_CANDLEAVERAGE( Far, FarPeriodTotal[1], i-1 ) && + // 3rd not far shorter than 2nd + TA_REALBODY(i) > TA_CANDLEAVERAGE( BodyShort, BodyShortPeriodTotal, i ) // not short real body + ) + outInteger[outIdx++] = 100; + else + outInteger[outIdx++] = 0; + /* add the current range and subtract the first range: this is done after the pattern recognition + * when avgPeriod is not 0, that means "compare with the previous candles" (it excludes the current candle) + */ + for (totIdx = 2; totIdx >= 0; --totIdx) + ShadowVeryShortPeriodTotal[totIdx] += TA_CANDLERANGE( ShadowVeryShort, i-totIdx ) + - TA_CANDLERANGE( ShadowVeryShort, ShadowVeryShortTrailingIdx-totIdx ); + for (totIdx = 2; totIdx >= 1; --totIdx) { + FarPeriodTotal[totIdx] += TA_CANDLERANGE( Far, i-totIdx ) + - TA_CANDLERANGE( Far, FarTrailingIdx-totIdx ); + NearPeriodTotal[totIdx] += TA_CANDLERANGE( Near, i-totIdx ) + - TA_CANDLERANGE( Near, NearTrailingIdx-totIdx ); + } + BodyShortPeriodTotal += TA_CANDLERANGE( BodyShort, i ) - TA_CANDLERANGE( BodyShort, BodyShortTrailingIdx ); + i++; + ShadowVeryShortTrailingIdx++; + NearTrailingIdx++; + FarTrailingIdx++; + BodyShortTrailingIdx++; + } while( i <= endIdx ); + + /* All done. Indicate the output limits and return. */ + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::Cdl3WhiteSoldiers( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inOpen, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cdl3WhiteSoldiers( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inOpen[], +/* Generated */ float inHigh[], +/* Generated */ float inLow[], +/* Generated */ float inClose[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_CDL3WHITESOLDIERS( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inOpen[], +/* Generated */ const float inHigh[], +/* Generated */ const float inLow[], +/* Generated */ const float inClose[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ ARRAY_LOCAL(ShadowVeryShortPeriodTotal,3); +/* Generated */ ARRAY_LOCAL(NearPeriodTotal,3); +/* Generated */ ARRAY_LOCAL(FarPeriodTotal,3); +/* Generated */ double BodyShortPeriodTotal; +/* Generated */ int i, outIdx, totIdx, ShadowVeryShortTrailingIdx, NearTrailingIdx, FarTrailingIdx, BodyShortTrailingIdx, lookbackTotal; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if(!inOpen||!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInteger ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ lookbackTotal = LOOKBACK_CALL(CDL3WHITESOLDIERS)(); +/* Generated */ if( startIdx < lookbackTotal ) +/* Generated */ startIdx = lookbackTotal; +/* Generated */ if( startIdx > endIdx ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ ShadowVeryShortPeriodTotal[2] = 0; +/* Generated */ ShadowVeryShortPeriodTotal[1] = 0; +/* Generated */ ShadowVeryShortPeriodTotal[0] = 0; +/* Generated */ ShadowVeryShortTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(ShadowVeryShort); +/* Generated */ NearPeriodTotal[2] = 0; +/* Generated */ NearPeriodTotal[1] = 0; +/* Generated */ NearPeriodTotal[0] = 0; +/* Generated */ NearTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(Near); +/* Generated */ FarPeriodTotal[2] = 0; +/* Generated */ FarPeriodTotal[1] = 0; +/* Generated */ FarPeriodTotal[0] = 0; +/* Generated */ FarTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(Far); +/* Generated */ BodyShortPeriodTotal = 0; +/* Generated */ BodyShortTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(BodyShort); +/* Generated */ i = ShadowVeryShortTrailingIdx; +/* Generated */ while( i < startIdx ) { +/* Generated */ ShadowVeryShortPeriodTotal[2] += TA_CANDLERANGE( ShadowVeryShort, i-2 ); +/* Generated */ ShadowVeryShortPeriodTotal[1] += TA_CANDLERANGE( ShadowVeryShort, i-1 ); +/* Generated */ ShadowVeryShortPeriodTotal[0] += TA_CANDLERANGE( ShadowVeryShort, i ); +/* Generated */ i++; +/* Generated */ } +/* Generated */ i = NearTrailingIdx; +/* Generated */ while( i < startIdx ) { +/* Generated */ NearPeriodTotal[2] += TA_CANDLERANGE( Near, i-2 ); +/* Generated */ NearPeriodTotal[1] += TA_CANDLERANGE( Near, i-1 ); +/* Generated */ i++; +/* Generated */ } +/* Generated */ i = FarTrailingIdx; +/* Generated */ while( i < startIdx ) { +/* Generated */ FarPeriodTotal[2] += TA_CANDLERANGE( Far, i-2 ); +/* Generated */ FarPeriodTotal[1] += TA_CANDLERANGE( Far, i-1 ); +/* Generated */ i++; +/* Generated */ } +/* Generated */ i = BodyShortTrailingIdx; +/* Generated */ while( i < startIdx ) { +/* Generated */ BodyShortPeriodTotal += TA_CANDLERANGE( BodyShort, i ); +/* Generated */ i++; +/* Generated */ } +/* Generated */ i = startIdx; +/* Generated */ outIdx = 0; +/* Generated */ do +/* Generated */ { +/* Generated */ if( TA_CANDLECOLOR(i-2) == 1 && // 1st white +/* Generated */ TA_UPPERSHADOW(i-2) < TA_CANDLEAVERAGE( ShadowVeryShort, ShadowVeryShortPeriodTotal[2], i-2 ) && +/* Generated */ // very short upper shadow +/* Generated */ TA_CANDLECOLOR(i-1) == 1 && // 2nd white +/* Generated */ TA_UPPERSHADOW(i-1) < TA_CANDLEAVERAGE( ShadowVeryShort, ShadowVeryShortPeriodTotal[1], i-1 ) && +/* Generated */ // very short upper shadow +/* Generated */ TA_CANDLECOLOR(i) == 1 && // 3rd white +/* Generated */ TA_UPPERSHADOW(i) < TA_CANDLEAVERAGE( ShadowVeryShort, ShadowVeryShortPeriodTotal[0], i ) && +/* Generated */ // very short upper shadow +/* Generated */ inClose[i] > inClose[i-1] && inClose[i-1] > inClose[i-2] && // consecutive higher closes +/* Generated */ inOpen[i-1] > inOpen[i-2] && // 2nd opens within/near 1st real body +/* Generated */ inOpen[i-1] <= inClose[i-2] + TA_CANDLEAVERAGE( Near, NearPeriodTotal[2], i-2 ) && +/* Generated */ inOpen[i] > inOpen[i-1] && // 3rd opens within/near 2nd real body +/* Generated */ inOpen[i] <= inClose[i-1] + TA_CANDLEAVERAGE( Near, NearPeriodTotal[1], i-1 ) && +/* Generated */ TA_REALBODY(i-1) > TA_REALBODY(i-2) - TA_CANDLEAVERAGE( Far, FarPeriodTotal[2], i-2 ) && +/* Generated */ // 2nd not far shorter than 1st +/* Generated */ TA_REALBODY(i) > TA_REALBODY(i-1) - TA_CANDLEAVERAGE( Far, FarPeriodTotal[1], i-1 ) && +/* Generated */ // 3rd not far shorter than 2nd +/* Generated */ TA_REALBODY(i) > TA_CANDLEAVERAGE( BodyShort, BodyShortPeriodTotal, i ) // not short real body +/* Generated */ ) +/* Generated */ outInteger[outIdx++] = 100; +/* Generated */ else +/* Generated */ outInteger[outIdx++] = 0; +/* Generated */ for (totIdx = 2; totIdx >= 0; --totIdx) +/* Generated */ ShadowVeryShortPeriodTotal[totIdx] += TA_CANDLERANGE( ShadowVeryShort, i-totIdx ) +/* Generated */ - TA_CANDLERANGE( ShadowVeryShort, ShadowVeryShortTrailingIdx-totIdx ); +/* Generated */ for (totIdx = 2; totIdx >= 1; --totIdx) { +/* Generated */ FarPeriodTotal[totIdx] += TA_CANDLERANGE( Far, i-totIdx ) +/* Generated */ - TA_CANDLERANGE( Far, FarTrailingIdx-totIdx ); +/* Generated */ NearPeriodTotal[totIdx] += TA_CANDLERANGE( Near, i-totIdx ) +/* Generated */ - TA_CANDLERANGE( Near, NearTrailingIdx-totIdx ); +/* Generated */ } +/* Generated */ BodyShortPeriodTotal += TA_CANDLERANGE( BodyShort, i ) - TA_CANDLERANGE( BodyShort, BodyShortTrailingIdx ); +/* Generated */ i++; +/* Generated */ ShadowVeryShortTrailingIdx++; +/* Generated */ NearTrailingIdx++; +/* Generated */ FarTrailingIdx++; +/* Generated */ BodyShortTrailingIdx++; +/* Generated */ } while( i <= endIdx ); +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_CDLABANDONEDBABY.c b/src/ta_func/ta_CDLABANDONEDBABY.c new file mode 100644 index 000000000..462aeb3bd --- /dev/null +++ b/src/ta_func/ta_CDLABANDONEDBABY.c @@ -0,0 +1,450 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * AC Angelo Ciceri + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 102304 AC Creation + * + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::CdlAbandonedBabyLookback( double optInPenetration ) /* From 0 to TA_REAL_MAX */ +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int cdlAbandonedBabyLookback( double optInPenetration ) /* From 0 to TA_REAL_MAX */ +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_CDLABANDONEDBABY_Lookback( double optInPenetration ) /* From 0 to TA_REAL_MAX */ +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( optInPenetration == TA_REAL_DEFAULT ) +/* Generated */ optInPenetration = 3.000000e-1; +/* Generated */ else if( (optInPenetration < 0.000000e+0) ||/* Generated */ (optInPenetration > 3.000000e+37) ) +/* Generated */ return -1; +/* Generated */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + UNUSED_VARIABLE(optInPenetration); + + return max( max( TA_CANDLEAVGPERIOD(BodyDoji), TA_CANDLEAVGPERIOD(BodyLong) ), + TA_CANDLEAVGPERIOD(BodyShort) + ) + 2; +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_CDLABANDONEDBABY - Abandoned Baby + * + * Input = Open, High, Low, Close + * Output = int + * + * Optional Parameters + * ------------------- + * optInPenetration:(From 0 to TA_REAL_MAX) + * Percentage of penetration of a candle within another candle + * + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::CdlAbandonedBaby( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inOpen, +/* Generated */ SubArray^ inHigh, +/* Generated */ SubArray^ inLow, +/* Generated */ SubArray^ inClose, +/* Generated */ double optInPenetration, /* From 0 to TA_REAL_MAX */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::CdlAbandonedBaby( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inOpen, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ double optInPenetration, /* From 0 to TA_REAL_MAX */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cdlAbandonedBaby( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inOpen[], +/* Generated */ double inHigh[], +/* Generated */ double inLow[], +/* Generated */ double inClose[], +/* Generated */ double optInPenetration, /* From 0 to TA_REAL_MAX */ +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_CDLABANDONEDBABY( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inOpen[], +/* Generated */ const double inHigh[], +/* Generated */ const double inLow[], +/* Generated */ const double inClose[], +/* Generated */ double optInPenetration, /* From 0 to TA_REAL_MAX */ +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* Insert local variables here. */ + double BodyDojiPeriodTotal, BodyLongPeriodTotal, BodyShortPeriodTotal; + int i, outIdx, BodyDojiTrailingIdx, BodyLongTrailingIdx, BodyShortTrailingIdx, lookbackTotal; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ /* Verify required price component. */ +/* Generated */ if(!inOpen||!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ if( optInPenetration == TA_REAL_DEFAULT ) +/* Generated */ optInPenetration = 3.000000e-1; +/* Generated */ else if( (optInPenetration < 0.000000e+0) ||/* Generated */ (optInPenetration > 3.000000e+37) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInteger ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Identify the minimum number of price bar needed + * to calculate at least one output. + */ + + lookbackTotal = LOOKBACK_CALL(CDLABANDONEDBABY)(optInPenetration); + + /* Move up the start index if there is not + * enough initial data. + */ + if( startIdx < lookbackTotal ) + startIdx = lookbackTotal; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + + /* Do the calculation using tight loops. */ + /* Add-up the initial period, except for the last value. */ + BodyLongPeriodTotal = 0; + BodyDojiPeriodTotal = 0; + BodyShortPeriodTotal = 0; + BodyLongTrailingIdx = startIdx -2 - TA_CANDLEAVGPERIOD(BodyLong); + BodyDojiTrailingIdx = startIdx -1 - TA_CANDLEAVGPERIOD(BodyDoji); + BodyShortTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(BodyShort); + + i = BodyLongTrailingIdx; + while( i < startIdx-2 ) { + BodyLongPeriodTotal += TA_CANDLERANGE( BodyLong, i ); + i++; + } + i = BodyDojiTrailingIdx; + while( i < startIdx-1 ) { + BodyDojiPeriodTotal += TA_CANDLERANGE( BodyDoji, i ); + i++; + } + i = BodyShortTrailingIdx; + while( i < startIdx ) { + BodyShortPeriodTotal += TA_CANDLERANGE( BodyShort, i ); + i++; + } + i = startIdx; + + /* Proceed with the calculation for the requested range. + * Must have: + * - first candle: long white (black) real body + * - second candle: doji + * - third candle: black (white) real body that moves well within the first candle's real body + * - upside (downside) gap between the first candle and the doji (the shadows of the two candles don't touch) + * - downside (upside) gap between the doji and the third candle (the shadows of the two candles don't touch) + * The meaning of "doji" and "long" is specified with TA_SetCandleSettings + * The meaning of "moves well within" is specified with optInPenetration and "moves" should mean the real body should + * not be short ("short" is specified with TA_SetCandleSettings) - Greg Morris wants it to be long, someone else want + * it to be relatively long + * outInteger is positive (1 to 100) when it's an abandoned baby bottom or negative (-1 to -100) when it's + * an abandoned baby top; the user should consider that an abandoned baby is significant when it appears in + * an uptrend or downtrend, while this function does not consider the trend + */ + outIdx = 0; + do + { + if( TA_REALBODY(i-2) > TA_CANDLEAVERAGE( BodyLong, BodyLongPeriodTotal, i-2 ) && // 1st: long + TA_REALBODY(i-1) <= TA_CANDLEAVERAGE( BodyDoji, BodyDojiPeriodTotal, i-1 ) && // 2nd: doji + TA_REALBODY(i) > TA_CANDLEAVERAGE( BodyShort, BodyShortPeriodTotal, i ) && // 3rd: longer than short + ( ( TA_CANDLECOLOR(i-2) == 1 && // 1st white + TA_CANDLECOLOR(i) == -1 && // 3rd black + inClose[i] < inClose[i-2] - TA_REALBODY(i-2) * optInPenetration && // 3rd closes well within 1st rb + TA_CANDLEGAPUP(i-1,i-2) && // upside gap between 1st and 2nd + TA_CANDLEGAPDOWN(i,i-1) // downside gap between 2nd and 3rd + ) + || + ( + TA_CANDLECOLOR(i-2) == -1 && // 1st black + TA_CANDLECOLOR(i) == 1 && // 3rd white + inClose[i] > inClose[i-2] + TA_REALBODY(i-2) * optInPenetration && // 3rd closes well within 1st rb + TA_CANDLEGAPDOWN(i-1,i-2) && // downside gap between 1st and 2nd + TA_CANDLEGAPUP(i,i-1) // upside gap between 2nd and 3rd + ) + ) + ) + outInteger[outIdx++] = TA_CANDLECOLOR(i) * 100; + else + outInteger[outIdx++] = 0; + /* add the current range and subtract the first range: this is done after the pattern recognition + * when avgPeriod is not 0, that means "compare with the previous candles" (it excludes the current candle) + */ + BodyLongPeriodTotal += TA_CANDLERANGE( BodyLong, i-2 ) - TA_CANDLERANGE( BodyLong, BodyLongTrailingIdx ); + BodyDojiPeriodTotal += TA_CANDLERANGE( BodyDoji, i-1 ) - TA_CANDLERANGE( BodyDoji, BodyDojiTrailingIdx ); + BodyShortPeriodTotal += TA_CANDLERANGE( BodyShort, i ) - TA_CANDLERANGE( BodyShort, BodyShortTrailingIdx ); + i++; + BodyLongTrailingIdx++; + BodyDojiTrailingIdx++; + BodyShortTrailingIdx++; + } while( i <= endIdx ); + + /* All done. Indicate the output limits and return. */ + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::CdlAbandonedBaby( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inOpen, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ double optInPenetration, /* From 0 to TA_REAL_MAX */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cdlAbandonedBaby( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inOpen[], +/* Generated */ float inHigh[], +/* Generated */ float inLow[], +/* Generated */ float inClose[], +/* Generated */ double optInPenetration, /* From 0 to TA_REAL_MAX */ +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_CDLABANDONEDBABY( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inOpen[], +/* Generated */ const float inHigh[], +/* Generated */ const float inLow[], +/* Generated */ const float inClose[], +/* Generated */ double optInPenetration, /* From 0 to TA_REAL_MAX */ +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ double BodyDojiPeriodTotal, BodyLongPeriodTotal, BodyShortPeriodTotal; +/* Generated */ int i, outIdx, BodyDojiTrailingIdx, BodyLongTrailingIdx, BodyShortTrailingIdx, lookbackTotal; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if(!inOpen||!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ if( optInPenetration == TA_REAL_DEFAULT ) +/* Generated */ optInPenetration = 3.000000e-1; +/* Generated */ else if( (optInPenetration < 0.000000e+0) || (optInPenetration > 3.000000e+37) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInteger ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ lookbackTotal = LOOKBACK_CALL(CDLABANDONEDBABY)(optInPenetration); +/* Generated */ if( startIdx < lookbackTotal ) +/* Generated */ startIdx = lookbackTotal; +/* Generated */ if( startIdx > endIdx ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ BodyLongPeriodTotal = 0; +/* Generated */ BodyDojiPeriodTotal = 0; +/* Generated */ BodyShortPeriodTotal = 0; +/* Generated */ BodyLongTrailingIdx = startIdx -2 - TA_CANDLEAVGPERIOD(BodyLong); +/* Generated */ BodyDojiTrailingIdx = startIdx -1 - TA_CANDLEAVGPERIOD(BodyDoji); +/* Generated */ BodyShortTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(BodyShort); +/* Generated */ i = BodyLongTrailingIdx; +/* Generated */ while( i < startIdx-2 ) { +/* Generated */ BodyLongPeriodTotal += TA_CANDLERANGE( BodyLong, i ); +/* Generated */ i++; +/* Generated */ } +/* Generated */ i = BodyDojiTrailingIdx; +/* Generated */ while( i < startIdx-1 ) { +/* Generated */ BodyDojiPeriodTotal += TA_CANDLERANGE( BodyDoji, i ); +/* Generated */ i++; +/* Generated */ } +/* Generated */ i = BodyShortTrailingIdx; +/* Generated */ while( i < startIdx ) { +/* Generated */ BodyShortPeriodTotal += TA_CANDLERANGE( BodyShort, i ); +/* Generated */ i++; +/* Generated */ } +/* Generated */ i = startIdx; +/* Generated */ outIdx = 0; +/* Generated */ do +/* Generated */ { +/* Generated */ if( TA_REALBODY(i-2) > TA_CANDLEAVERAGE( BodyLong, BodyLongPeriodTotal, i-2 ) && // 1st: long +/* Generated */ TA_REALBODY(i-1) <= TA_CANDLEAVERAGE( BodyDoji, BodyDojiPeriodTotal, i-1 ) && // 2nd: doji +/* Generated */ TA_REALBODY(i) > TA_CANDLEAVERAGE( BodyShort, BodyShortPeriodTotal, i ) && // 3rd: longer than short +/* Generated */ ( ( TA_CANDLECOLOR(i-2) == 1 && // 1st white +/* Generated */ TA_CANDLECOLOR(i) == -1 && // 3rd black +/* Generated */ inClose[i] < inClose[i-2] - TA_REALBODY(i-2) * optInPenetration && // 3rd closes well within 1st rb +/* Generated */ TA_CANDLEGAPUP(i-1,i-2) && // upside gap between 1st and 2nd +/* Generated */ TA_CANDLEGAPDOWN(i,i-1) // downside gap between 2nd and 3rd +/* Generated */ ) +/* Generated */ || +/* Generated */ ( +/* Generated */ TA_CANDLECOLOR(i-2) == -1 && // 1st black +/* Generated */ TA_CANDLECOLOR(i) == 1 && // 3rd white +/* Generated */ inClose[i] > inClose[i-2] + TA_REALBODY(i-2) * optInPenetration && // 3rd closes well within 1st rb +/* Generated */ TA_CANDLEGAPDOWN(i-1,i-2) && // downside gap between 1st and 2nd +/* Generated */ TA_CANDLEGAPUP(i,i-1) // upside gap between 2nd and 3rd +/* Generated */ ) +/* Generated */ ) +/* Generated */ ) +/* Generated */ outInteger[outIdx++] = TA_CANDLECOLOR(i) * 100; +/* Generated */ else +/* Generated */ outInteger[outIdx++] = 0; +/* Generated */ BodyLongPeriodTotal += TA_CANDLERANGE( BodyLong, i-2 ) - TA_CANDLERANGE( BodyLong, BodyLongTrailingIdx ); +/* Generated */ BodyDojiPeriodTotal += TA_CANDLERANGE( BodyDoji, i-1 ) - TA_CANDLERANGE( BodyDoji, BodyDojiTrailingIdx ); +/* Generated */ BodyShortPeriodTotal += TA_CANDLERANGE( BodyShort, i ) - TA_CANDLERANGE( BodyShort, BodyShortTrailingIdx ); +/* Generated */ i++; +/* Generated */ BodyLongTrailingIdx++; +/* Generated */ BodyDojiTrailingIdx++; +/* Generated */ BodyShortTrailingIdx++; +/* Generated */ } while( i <= endIdx ); +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_CDLADVANCEBLOCK.c b/src/ta_func/ta_CDLADVANCEBLOCK.c new file mode 100644 index 000000000..9dff161c4 --- /dev/null +++ b/src/ta_func/ta_CDLADVANCEBLOCK.c @@ -0,0 +1,548 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * AC Angelo Ciceri + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 120404 AC Creation + * + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::CdlAdvanceBlockLookback( void ) +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int cdlAdvanceBlockLookback( ) +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_CDLADVANCEBLOCK_Lookback( void ) +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ /* No parameters to validate. */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + return max( max( max( TA_CANDLEAVGPERIOD(ShadowLong), TA_CANDLEAVGPERIOD(ShadowShort) ), + max( TA_CANDLEAVGPERIOD(Far), TA_CANDLEAVGPERIOD(Near) ) ), + TA_CANDLEAVGPERIOD(BodyLong) + ) + 2; +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_CDLADVANCEBLOCK - Advance Block + * + * Input = Open, High, Low, Close + * Output = int + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::CdlAdvanceBlock( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inOpen, +/* Generated */ SubArray^ inHigh, +/* Generated */ SubArray^ inLow, +/* Generated */ SubArray^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::CdlAdvanceBlock( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inOpen, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cdlAdvanceBlock( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inOpen[], +/* Generated */ double inHigh[], +/* Generated */ double inLow[], +/* Generated */ double inClose[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_CDLADVANCEBLOCK( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inOpen[], +/* Generated */ const double inHigh[], +/* Generated */ const double inLow[], +/* Generated */ const double inClose[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* Insert local variables here. */ + ARRAY_LOCAL(ShadowShortPeriodTotal,3); + ARRAY_LOCAL(ShadowLongPeriodTotal,2); + ARRAY_LOCAL(NearPeriodTotal,3); + ARRAY_LOCAL(FarPeriodTotal,3); + double BodyLongPeriodTotal; + int i, outIdx, totIdx, BodyLongTrailingIdx, ShadowShortTrailingIdx, ShadowLongTrailingIdx, NearTrailingIdx, + FarTrailingIdx, lookbackTotal; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ /* Verify required price component. */ +/* Generated */ if(!inOpen||!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInteger ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Identify the minimum number of price bar needed + * to calculate at least one output. + */ + + lookbackTotal = LOOKBACK_CALL(CDLADVANCEBLOCK)(); + + /* Move up the start index if there is not + * enough initial data. + */ + if( startIdx < lookbackTotal ) + startIdx = lookbackTotal; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + + /* Do the calculation using tight loops. */ + /* Add-up the initial period, except for the last value. */ + ShadowShortPeriodTotal[2] = 0; + ShadowShortPeriodTotal[1] = 0; + ShadowShortPeriodTotal[0] = 0; + ShadowShortTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(ShadowShort); + ShadowLongPeriodTotal[1] = 0; + ShadowLongPeriodTotal[0] = 0; + ShadowLongTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(ShadowLong); + NearPeriodTotal[2] = 0; + NearPeriodTotal[1] = 0; + NearPeriodTotal[0] = 0; + NearTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(Near); + FarPeriodTotal[2] = 0; + FarPeriodTotal[1] = 0; + FarPeriodTotal[0] = 0; + FarTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(Far); + BodyLongPeriodTotal = 0; + BodyLongTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(BodyLong); + + i = ShadowShortTrailingIdx; + while( i < startIdx ) { + ShadowShortPeriodTotal[2] += TA_CANDLERANGE( ShadowShort, i-2 ); + ShadowShortPeriodTotal[1] += TA_CANDLERANGE( ShadowShort, i-1 ); + ShadowShortPeriodTotal[0] += TA_CANDLERANGE( ShadowShort, i ); + i++; + } + i = ShadowLongTrailingIdx; + while( i < startIdx ) { + ShadowLongPeriodTotal[1] += TA_CANDLERANGE( ShadowLong, i-1 ); + ShadowLongPeriodTotal[0] += TA_CANDLERANGE( ShadowLong, i ); + i++; + } + i = NearTrailingIdx; + while( i < startIdx ) { + NearPeriodTotal[2] += TA_CANDLERANGE( Near, i-2 ); + NearPeriodTotal[1] += TA_CANDLERANGE( Near, i-1 ); + i++; + } + i = FarTrailingIdx; + while( i < startIdx ) { + FarPeriodTotal[2] += TA_CANDLERANGE( Far, i-2 ); + FarPeriodTotal[1] += TA_CANDLERANGE( Far, i-1 ); + i++; + } + i = BodyLongTrailingIdx; + while( i < startIdx ) { + BodyLongPeriodTotal += TA_CANDLERANGE( BodyLong, i-2 ); + i++; + } + i = startIdx; + + /* Proceed with the calculation for the requested range. + * Must have: + * - three white candlesticks with consecutively higher closes + * - each candle opens within or near the previous white real body + * - first candle: long white with no or very short upper shadow (a short shadow is accepted too for more flexibility) + * - second and third candles, or only third candle, show signs of weakening: progressively smaller white real bodies + * and/or relatively long upper shadows; see below for specific conditions + * The meanings of "long body", "short shadow", "far" and "near" are specified with TA_SetCandleSettings; + * outInteger is negative (-1 to -100): advance block is always bearish; + * the user should consider that advance block is significant when it appears in uptrend, while this function + * does not consider it + */ + outIdx = 0; + do + { + if( TA_CANDLECOLOR(i-2) == 1 && // 1st white + TA_CANDLECOLOR(i-1) == 1 && // 2nd white + TA_CANDLECOLOR(i) == 1 && // 3rd white + inClose[i] > inClose[i-1] && inClose[i-1] > inClose[i-2] && // consecutive higher closes + inOpen[i-1] > inOpen[i-2] && // 2nd opens within/near 1st real body + inOpen[i-1] <= inClose[i-2] + TA_CANDLEAVERAGE( Near, NearPeriodTotal[2], i-2 ) && + inOpen[i] > inOpen[i-1] && // 3rd opens within/near 2nd real body + inOpen[i] <= inClose[i-1] + TA_CANDLEAVERAGE( Near, NearPeriodTotal[1], i-1 ) && + TA_REALBODY(i-2) > TA_CANDLEAVERAGE( BodyLong, BodyLongPeriodTotal, i-2 ) && // 1st: long real body + TA_UPPERSHADOW(i-2) < TA_CANDLEAVERAGE( ShadowShort, ShadowShortPeriodTotal[2], i-2 ) && + // 1st: short upper shadow + ( + // ( 2 far smaller than 1 && 3 not longer than 2 ) + // advance blocked with the 2nd, 3rd must not carry on the advance + ( + TA_REALBODY(i-1) < TA_REALBODY(i-2) - TA_CANDLEAVERAGE( Far, FarPeriodTotal[2], i-2 ) && + TA_REALBODY(i) < TA_REALBODY(i-1) + TA_CANDLEAVERAGE( Near, NearPeriodTotal[1], i-1 ) + ) || + // 3 far smaller than 2 + // advance blocked with the 3rd + ( + TA_REALBODY(i) < TA_REALBODY(i-1) - TA_CANDLEAVERAGE( Far, FarPeriodTotal[1], i-1 ) + ) || + // ( 3 smaller than 2 && 2 smaller than 1 && (3 or 2 not short upper shadow) ) + // advance blocked with progressively smaller real bodies and some upper shadows + ( + TA_REALBODY(i) < TA_REALBODY(i-1) && + TA_REALBODY(i-1) < TA_REALBODY(i-2) && + ( + TA_UPPERSHADOW(i) > TA_CANDLEAVERAGE( ShadowShort, ShadowShortPeriodTotal[0], i ) || + TA_UPPERSHADOW(i-1) > TA_CANDLEAVERAGE( ShadowShort, ShadowShortPeriodTotal[1], i-1 ) + ) + ) || + // ( 3 smaller than 2 && 3 long upper shadow ) + // advance blocked with 3rd candle's long upper shadow and smaller body + ( + TA_REALBODY(i) < TA_REALBODY(i-1) && + TA_UPPERSHADOW(i) > TA_CANDLEAVERAGE( ShadowLong, ShadowLongPeriodTotal[0], i ) + ) + ) + ) + outInteger[outIdx++] = -100; + else + outInteger[outIdx++] = 0; + /* add the current range and subtract the first range: this is done after the pattern recognition + * when avgPeriod is not 0, that means "compare with the previous candles" (it excludes the current candle) + */ + for (totIdx = 2; totIdx >= 0; --totIdx) + ShadowShortPeriodTotal[totIdx] += TA_CANDLERANGE( ShadowShort, i-totIdx ) + - TA_CANDLERANGE( ShadowShort, ShadowShortTrailingIdx-totIdx ); + for (totIdx = 1; totIdx >= 0; --totIdx) + ShadowLongPeriodTotal[totIdx] += TA_CANDLERANGE( ShadowLong, i-totIdx ) + - TA_CANDLERANGE( ShadowLong, ShadowLongTrailingIdx-totIdx ); + for (totIdx = 2; totIdx >= 1; --totIdx) { + FarPeriodTotal[totIdx] += TA_CANDLERANGE( Far, i-totIdx ) + - TA_CANDLERANGE( Far, FarTrailingIdx-totIdx ); + NearPeriodTotal[totIdx] += TA_CANDLERANGE( Near, i-totIdx ) + - TA_CANDLERANGE( Near, NearTrailingIdx-totIdx ); + } + BodyLongPeriodTotal += TA_CANDLERANGE( BodyLong, i-2 ) - TA_CANDLERANGE( BodyLong, BodyLongTrailingIdx-2 ); + i++; + ShadowShortTrailingIdx++; + ShadowLongTrailingIdx++; + NearTrailingIdx++; + FarTrailingIdx++; + BodyLongTrailingIdx++; + } while( i <= endIdx ); + + /* All done. Indicate the output limits and return. */ + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::CdlAdvanceBlock( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inOpen, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cdlAdvanceBlock( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inOpen[], +/* Generated */ float inHigh[], +/* Generated */ float inLow[], +/* Generated */ float inClose[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_CDLADVANCEBLOCK( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inOpen[], +/* Generated */ const float inHigh[], +/* Generated */ const float inLow[], +/* Generated */ const float inClose[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ ARRAY_LOCAL(ShadowShortPeriodTotal,3); +/* Generated */ ARRAY_LOCAL(ShadowLongPeriodTotal,2); +/* Generated */ ARRAY_LOCAL(NearPeriodTotal,3); +/* Generated */ ARRAY_LOCAL(FarPeriodTotal,3); +/* Generated */ double BodyLongPeriodTotal; +/* Generated */ int i, outIdx, totIdx, BodyLongTrailingIdx, ShadowShortTrailingIdx, ShadowLongTrailingIdx, NearTrailingIdx, +/* Generated */ FarTrailingIdx, lookbackTotal; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if(!inOpen||!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInteger ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ lookbackTotal = LOOKBACK_CALL(CDLADVANCEBLOCK)(); +/* Generated */ if( startIdx < lookbackTotal ) +/* Generated */ startIdx = lookbackTotal; +/* Generated */ if( startIdx > endIdx ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ ShadowShortPeriodTotal[2] = 0; +/* Generated */ ShadowShortPeriodTotal[1] = 0; +/* Generated */ ShadowShortPeriodTotal[0] = 0; +/* Generated */ ShadowShortTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(ShadowShort); +/* Generated */ ShadowLongPeriodTotal[1] = 0; +/* Generated */ ShadowLongPeriodTotal[0] = 0; +/* Generated */ ShadowLongTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(ShadowLong); +/* Generated */ NearPeriodTotal[2] = 0; +/* Generated */ NearPeriodTotal[1] = 0; +/* Generated */ NearPeriodTotal[0] = 0; +/* Generated */ NearTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(Near); +/* Generated */ FarPeriodTotal[2] = 0; +/* Generated */ FarPeriodTotal[1] = 0; +/* Generated */ FarPeriodTotal[0] = 0; +/* Generated */ FarTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(Far); +/* Generated */ BodyLongPeriodTotal = 0; +/* Generated */ BodyLongTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(BodyLong); +/* Generated */ i = ShadowShortTrailingIdx; +/* Generated */ while( i < startIdx ) { +/* Generated */ ShadowShortPeriodTotal[2] += TA_CANDLERANGE( ShadowShort, i-2 ); +/* Generated */ ShadowShortPeriodTotal[1] += TA_CANDLERANGE( ShadowShort, i-1 ); +/* Generated */ ShadowShortPeriodTotal[0] += TA_CANDLERANGE( ShadowShort, i ); +/* Generated */ i++; +/* Generated */ } +/* Generated */ i = ShadowLongTrailingIdx; +/* Generated */ while( i < startIdx ) { +/* Generated */ ShadowLongPeriodTotal[1] += TA_CANDLERANGE( ShadowLong, i-1 ); +/* Generated */ ShadowLongPeriodTotal[0] += TA_CANDLERANGE( ShadowLong, i ); +/* Generated */ i++; +/* Generated */ } +/* Generated */ i = NearTrailingIdx; +/* Generated */ while( i < startIdx ) { +/* Generated */ NearPeriodTotal[2] += TA_CANDLERANGE( Near, i-2 ); +/* Generated */ NearPeriodTotal[1] += TA_CANDLERANGE( Near, i-1 ); +/* Generated */ i++; +/* Generated */ } +/* Generated */ i = FarTrailingIdx; +/* Generated */ while( i < startIdx ) { +/* Generated */ FarPeriodTotal[2] += TA_CANDLERANGE( Far, i-2 ); +/* Generated */ FarPeriodTotal[1] += TA_CANDLERANGE( Far, i-1 ); +/* Generated */ i++; +/* Generated */ } +/* Generated */ i = BodyLongTrailingIdx; +/* Generated */ while( i < startIdx ) { +/* Generated */ BodyLongPeriodTotal += TA_CANDLERANGE( BodyLong, i-2 ); +/* Generated */ i++; +/* Generated */ } +/* Generated */ i = startIdx; +/* Generated */ outIdx = 0; +/* Generated */ do +/* Generated */ { +/* Generated */ if( TA_CANDLECOLOR(i-2) == 1 && // 1st white +/* Generated */ TA_CANDLECOLOR(i-1) == 1 && // 2nd white +/* Generated */ TA_CANDLECOLOR(i) == 1 && // 3rd white +/* Generated */ inClose[i] > inClose[i-1] && inClose[i-1] > inClose[i-2] && // consecutive higher closes +/* Generated */ inOpen[i-1] > inOpen[i-2] && // 2nd opens within/near 1st real body +/* Generated */ inOpen[i-1] <= inClose[i-2] + TA_CANDLEAVERAGE( Near, NearPeriodTotal[2], i-2 ) && +/* Generated */ inOpen[i] > inOpen[i-1] && // 3rd opens within/near 2nd real body +/* Generated */ inOpen[i] <= inClose[i-1] + TA_CANDLEAVERAGE( Near, NearPeriodTotal[1], i-1 ) && +/* Generated */ TA_REALBODY(i-2) > TA_CANDLEAVERAGE( BodyLong, BodyLongPeriodTotal, i-2 ) && // 1st: long real body +/* Generated */ TA_UPPERSHADOW(i-2) < TA_CANDLEAVERAGE( ShadowShort, ShadowShortPeriodTotal[2], i-2 ) && +/* Generated */ // 1st: short upper shadow +/* Generated */ ( +/* Generated */ // ( 2 far smaller than 1 && 3 not longer than 2 ) +/* Generated */ // advance blocked with the 2nd, 3rd must not carry on the advance +/* Generated */ ( +/* Generated */ TA_REALBODY(i-1) < TA_REALBODY(i-2) - TA_CANDLEAVERAGE( Far, FarPeriodTotal[2], i-2 ) && +/* Generated */ TA_REALBODY(i) < TA_REALBODY(i-1) + TA_CANDLEAVERAGE( Near, NearPeriodTotal[1], i-1 ) +/* Generated */ ) || +/* Generated */ // 3 far smaller than 2 +/* Generated */ // advance blocked with the 3rd +/* Generated */ ( +/* Generated */ TA_REALBODY(i) < TA_REALBODY(i-1) - TA_CANDLEAVERAGE( Far, FarPeriodTotal[1], i-1 ) +/* Generated */ ) || +/* Generated */ // ( 3 smaller than 2 && 2 smaller than 1 && (3 or 2 not short upper shadow) ) +/* Generated */ // advance blocked with progressively smaller real bodies and some upper shadows +/* Generated */ ( +/* Generated */ TA_REALBODY(i) < TA_REALBODY(i-1) && +/* Generated */ TA_REALBODY(i-1) < TA_REALBODY(i-2) && +/* Generated */ ( +/* Generated */ TA_UPPERSHADOW(i) > TA_CANDLEAVERAGE( ShadowShort, ShadowShortPeriodTotal[0], i ) || +/* Generated */ TA_UPPERSHADOW(i-1) > TA_CANDLEAVERAGE( ShadowShort, ShadowShortPeriodTotal[1], i-1 ) +/* Generated */ ) +/* Generated */ ) || +/* Generated */ // ( 3 smaller than 2 && 3 long upper shadow ) +/* Generated */ // advance blocked with 3rd candle's long upper shadow and smaller body +/* Generated */ ( +/* Generated */ TA_REALBODY(i) < TA_REALBODY(i-1) && +/* Generated */ TA_UPPERSHADOW(i) > TA_CANDLEAVERAGE( ShadowLong, ShadowLongPeriodTotal[0], i ) +/* Generated */ ) +/* Generated */ ) +/* Generated */ ) +/* Generated */ outInteger[outIdx++] = -100; +/* Generated */ else +/* Generated */ outInteger[outIdx++] = 0; +/* Generated */ for (totIdx = 2; totIdx >= 0; --totIdx) +/* Generated */ ShadowShortPeriodTotal[totIdx] += TA_CANDLERANGE( ShadowShort, i-totIdx ) +/* Generated */ - TA_CANDLERANGE( ShadowShort, ShadowShortTrailingIdx-totIdx ); +/* Generated */ for (totIdx = 1; totIdx >= 0; --totIdx) +/* Generated */ ShadowLongPeriodTotal[totIdx] += TA_CANDLERANGE( ShadowLong, i-totIdx ) +/* Generated */ - TA_CANDLERANGE( ShadowLong, ShadowLongTrailingIdx-totIdx ); +/* Generated */ for (totIdx = 2; totIdx >= 1; --totIdx) { +/* Generated */ FarPeriodTotal[totIdx] += TA_CANDLERANGE( Far, i-totIdx ) +/* Generated */ - TA_CANDLERANGE( Far, FarTrailingIdx-totIdx ); +/* Generated */ NearPeriodTotal[totIdx] += TA_CANDLERANGE( Near, i-totIdx ) +/* Generated */ - TA_CANDLERANGE( Near, NearTrailingIdx-totIdx ); +/* Generated */ } +/* Generated */ BodyLongPeriodTotal += TA_CANDLERANGE( BodyLong, i-2 ) - TA_CANDLERANGE( BodyLong, BodyLongTrailingIdx-2 ); +/* Generated */ i++; +/* Generated */ ShadowShortTrailingIdx++; +/* Generated */ ShadowLongTrailingIdx++; +/* Generated */ NearTrailingIdx++; +/* Generated */ FarTrailingIdx++; +/* Generated */ BodyLongTrailingIdx++; +/* Generated */ } while( i <= endIdx ); +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_CDLBELTHOLD.c b/src/ta_func/ta_CDLBELTHOLD.c new file mode 100644 index 000000000..0a259e3a5 --- /dev/null +++ b/src/ta_func/ta_CDLBELTHOLD.c @@ -0,0 +1,376 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * AC Angelo Ciceri + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 010605 AC Creation + * + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::CdlBeltHoldLookback( void ) +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int cdlBeltHoldLookback( ) +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_CDLBELTHOLD_Lookback( void ) +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ /* No parameters to validate. */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + return max( TA_CANDLEAVGPERIOD(BodyLong), TA_CANDLEAVGPERIOD(ShadowVeryShort) ); +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_CDLBELTHOLD - Belt-hold + * + * Input = Open, High, Low, Close + * Output = int + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::CdlBeltHold( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inOpen, +/* Generated */ SubArray^ inHigh, +/* Generated */ SubArray^ inLow, +/* Generated */ SubArray^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::CdlBeltHold( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inOpen, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cdlBeltHold( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inOpen[], +/* Generated */ double inHigh[], +/* Generated */ double inLow[], +/* Generated */ double inClose[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_CDLBELTHOLD( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inOpen[], +/* Generated */ const double inHigh[], +/* Generated */ const double inLow[], +/* Generated */ const double inClose[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* Insert local variables here. */ + double BodyLongPeriodTotal, ShadowVeryShortPeriodTotal; + int i, outIdx, BodyLongTrailingIdx, ShadowVeryShortTrailingIdx, lookbackTotal; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ /* Verify required price component. */ +/* Generated */ if(!inOpen||!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInteger ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Identify the minimum number of price bar needed + * to calculate at least one output. + */ + + lookbackTotal = LOOKBACK_CALL(CDLBELTHOLD)(); + + /* Move up the start index if there is not + * enough initial data. + */ + if( startIdx < lookbackTotal ) + startIdx = lookbackTotal; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + + /* Do the calculation using tight loops. */ + /* Add-up the initial period, except for the last value. */ + BodyLongPeriodTotal = 0; + BodyLongTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(BodyLong); + ShadowVeryShortPeriodTotal = 0; + ShadowVeryShortTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(ShadowVeryShort); + + i = BodyLongTrailingIdx; + while( i < startIdx ) { + BodyLongPeriodTotal += TA_CANDLERANGE( BodyLong, i ); + i++; + } + i = ShadowVeryShortTrailingIdx; + while( i < startIdx ) { + ShadowVeryShortPeriodTotal += TA_CANDLERANGE( ShadowVeryShort, i ); + i++; + } + + /* Proceed with the calculation for the requested range. + * Must have: + * - long white (black) real body + * - no or very short lower (upper) shadow + * The meaning of "long" and "very short" is specified with TA_SetCandleSettings + * outInteger is positive (1 to 100) when white (bullish), negative (-1 to -100) when black (bearish) + */ + outIdx = 0; + do + { + if( TA_REALBODY(i) > TA_CANDLEAVERAGE( BodyLong, BodyLongPeriodTotal, i ) && // long body + ( + ( // white body and very short lower shadow + TA_CANDLECOLOR(i) == 1 && + TA_LOWERSHADOW(i) < TA_CANDLEAVERAGE( ShadowVeryShort, ShadowVeryShortPeriodTotal, i ) + ) || + ( // black body and very short upper shadow + TA_CANDLECOLOR(i) == -1 && + TA_UPPERSHADOW(i) < TA_CANDLEAVERAGE( ShadowVeryShort, ShadowVeryShortPeriodTotal, i ) + ) + ) ) + outInteger[outIdx++] = TA_CANDLECOLOR(i) * 100; + else + outInteger[outIdx++] = 0; + /* add the current range and subtract the first range: this is done after the pattern recognition + * when avgPeriod is not 0, that means "compare with the previous candles" (it excludes the current candle) + */ + BodyLongPeriodTotal += TA_CANDLERANGE( BodyLong, i ) - TA_CANDLERANGE( BodyLong, BodyLongTrailingIdx ); + ShadowVeryShortPeriodTotal += TA_CANDLERANGE( ShadowVeryShort, i ) + - TA_CANDLERANGE( ShadowVeryShort, ShadowVeryShortTrailingIdx ); + i++; + BodyLongTrailingIdx++; + ShadowVeryShortTrailingIdx++; + } while( i <= endIdx ); + + /* All done. Indicate the output limits and return. */ + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::CdlBeltHold( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inOpen, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cdlBeltHold( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inOpen[], +/* Generated */ float inHigh[], +/* Generated */ float inLow[], +/* Generated */ float inClose[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_CDLBELTHOLD( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inOpen[], +/* Generated */ const float inHigh[], +/* Generated */ const float inLow[], +/* Generated */ const float inClose[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ double BodyLongPeriodTotal, ShadowVeryShortPeriodTotal; +/* Generated */ int i, outIdx, BodyLongTrailingIdx, ShadowVeryShortTrailingIdx, lookbackTotal; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if(!inOpen||!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInteger ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ lookbackTotal = LOOKBACK_CALL(CDLBELTHOLD)(); +/* Generated */ if( startIdx < lookbackTotal ) +/* Generated */ startIdx = lookbackTotal; +/* Generated */ if( startIdx > endIdx ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ BodyLongPeriodTotal = 0; +/* Generated */ BodyLongTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(BodyLong); +/* Generated */ ShadowVeryShortPeriodTotal = 0; +/* Generated */ ShadowVeryShortTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(ShadowVeryShort); +/* Generated */ i = BodyLongTrailingIdx; +/* Generated */ while( i < startIdx ) { +/* Generated */ BodyLongPeriodTotal += TA_CANDLERANGE( BodyLong, i ); +/* Generated */ i++; +/* Generated */ } +/* Generated */ i = ShadowVeryShortTrailingIdx; +/* Generated */ while( i < startIdx ) { +/* Generated */ ShadowVeryShortPeriodTotal += TA_CANDLERANGE( ShadowVeryShort, i ); +/* Generated */ i++; +/* Generated */ } +/* Generated */ outIdx = 0; +/* Generated */ do +/* Generated */ { +/* Generated */ if( TA_REALBODY(i) > TA_CANDLEAVERAGE( BodyLong, BodyLongPeriodTotal, i ) && // long body +/* Generated */ ( +/* Generated */ ( // white body and very short lower shadow +/* Generated */ TA_CANDLECOLOR(i) == 1 && +/* Generated */ TA_LOWERSHADOW(i) < TA_CANDLEAVERAGE( ShadowVeryShort, ShadowVeryShortPeriodTotal, i ) +/* Generated */ ) || +/* Generated */ ( // black body and very short upper shadow +/* Generated */ TA_CANDLECOLOR(i) == -1 && +/* Generated */ TA_UPPERSHADOW(i) < TA_CANDLEAVERAGE( ShadowVeryShort, ShadowVeryShortPeriodTotal, i ) +/* Generated */ ) +/* Generated */ ) ) +/* Generated */ outInteger[outIdx++] = TA_CANDLECOLOR(i) * 100; +/* Generated */ else +/* Generated */ outInteger[outIdx++] = 0; +/* Generated */ BodyLongPeriodTotal += TA_CANDLERANGE( BodyLong, i ) - TA_CANDLERANGE( BodyLong, BodyLongTrailingIdx ); +/* Generated */ ShadowVeryShortPeriodTotal += TA_CANDLERANGE( ShadowVeryShort, i ) +/* Generated */ - TA_CANDLERANGE( ShadowVeryShort, ShadowVeryShortTrailingIdx ); +/* Generated */ i++; +/* Generated */ BodyLongTrailingIdx++; +/* Generated */ ShadowVeryShortTrailingIdx++; +/* Generated */ } while( i <= endIdx ); +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_CDLBREAKAWAY.c b/src/ta_func/ta_CDLBREAKAWAY.c new file mode 100644 index 000000000..5ca3e9ad5 --- /dev/null +++ b/src/ta_func/ta_CDLBREAKAWAY.c @@ -0,0 +1,383 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * AC Angelo Ciceri + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 011505 AC Creation + * + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::CdlBreakawayLookback( void ) +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int cdlBreakawayLookback( ) +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_CDLBREAKAWAY_Lookback( void ) +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ /* No parameters to validate. */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + return TA_CANDLEAVGPERIOD(BodyLong) + 4; +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_CDLBREAKAWAY - Breakaway + * + * Input = Open, High, Low, Close + * Output = int + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::CdlBreakaway( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inOpen, +/* Generated */ SubArray^ inHigh, +/* Generated */ SubArray^ inLow, +/* Generated */ SubArray^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::CdlBreakaway( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inOpen, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cdlBreakaway( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inOpen[], +/* Generated */ double inHigh[], +/* Generated */ double inLow[], +/* Generated */ double inClose[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_CDLBREAKAWAY( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inOpen[], +/* Generated */ const double inHigh[], +/* Generated */ const double inLow[], +/* Generated */ const double inClose[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* Insert local variables here. */ + double BodyLongPeriodTotal; + int i, outIdx, BodyLongTrailingIdx, lookbackTotal; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ /* Verify required price component. */ +/* Generated */ if(!inOpen||!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInteger ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Identify the minimum number of price bar needed + * to calculate at least one output. + */ + + lookbackTotal = LOOKBACK_CALL(CDLBREAKAWAY)(); + + /* Move up the start index if there is not + * enough initial data. + */ + if( startIdx < lookbackTotal ) + startIdx = lookbackTotal; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + + /* Do the calculation using tight loops. */ + /* Add-up the initial period, except for the last value. */ + BodyLongPeriodTotal = 0; + BodyLongTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(BodyLong); + + i = BodyLongTrailingIdx; + while( i < startIdx ) { + BodyLongPeriodTotal += TA_CANDLERANGE( BodyLong, i-4 ); + i++; + } + i = startIdx; + + /* Proceed with the calculation for the requested range. + * Must have: + * - first candle: long black (white) + * - second candle: black (white) day whose body gaps down (up) + * - third candle: black or white day with lower (higher) high and lower (higher) low than prior candle's + * - fourth candle: black (white) day with lower (higher) high and lower (higher) low than prior candle's + * - fifth candle: white (black) day that closes inside the gap, erasing the prior 3 days + * The meaning of "long" is specified with TA_SetCandleSettings + * outInteger is positive (1 to 100) when bullish or negative (-1 to -100) when bearish; + * the user should consider that breakaway is significant in a trend opposite to the last candle, while this + * function does not consider it + */ + outIdx = 0; + do + { + if( TA_REALBODY(i-4) > TA_CANDLEAVERAGE( BodyLong, BodyLongPeriodTotal, i-4 ) && // 1st long + TA_CANDLECOLOR(i-4) == TA_CANDLECOLOR(i-3) && // 1st, 2nd, 4th same color, 5th opposite + TA_CANDLECOLOR(i-3) == TA_CANDLECOLOR(i-1) && + TA_CANDLECOLOR(i-1) == -TA_CANDLECOLOR(i) && + ( + ( TA_CANDLECOLOR(i-4) == -1 && // when 1st is black: + TA_REALBODYGAPDOWN(i-3,i-4) && // 2nd gaps down + inHigh[i-2] < inHigh[i-3] && inLow[i-2] < inLow[i-3] && // 3rd has lower high and low than 2nd + inHigh[i-1] < inHigh[i-2] && inLow[i-1] < inLow[i-2] && // 4th has lower high and low than 3rd + inClose[i] > inOpen[i-3] && inClose[i] < inClose[i-4] // 5th closes inside the gap + ) + || + ( TA_CANDLECOLOR(i-4) == 1 && // when 1st is white: + TA_REALBODYGAPUP(i-3,i-4) && // 2nd gaps up + inHigh[i-2] > inHigh[i-3] && inLow[i-2] > inLow[i-3] && // 3rd has higher high and low than 2nd + inHigh[i-1] > inHigh[i-2] && inLow[i-1] > inLow[i-2] && // 4th has higher high and low than 3rd + inClose[i] < inOpen[i-3] && inClose[i] > inClose[i-4] // 5th closes inside the gap + ) + ) + ) + outInteger[outIdx++] = TA_CANDLECOLOR(i) * 100; + else + outInteger[outIdx++] = 0; + /* add the current range and subtract the first range: this is done after the pattern recognition + * when avgPeriod is not 0, that means "compare with the previous candles" (it excludes the current candle) + */ + BodyLongPeriodTotal += TA_CANDLERANGE( BodyLong, i-4 ) + - TA_CANDLERANGE( BodyLong, BodyLongTrailingIdx-4 ); + i++; + BodyLongTrailingIdx++; + } while( i <= endIdx ); + + /* All done. Indicate the output limits and return. */ + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::CdlBreakaway( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inOpen, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cdlBreakaway( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inOpen[], +/* Generated */ float inHigh[], +/* Generated */ float inLow[], +/* Generated */ float inClose[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_CDLBREAKAWAY( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inOpen[], +/* Generated */ const float inHigh[], +/* Generated */ const float inLow[], +/* Generated */ const float inClose[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ double BodyLongPeriodTotal; +/* Generated */ int i, outIdx, BodyLongTrailingIdx, lookbackTotal; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if(!inOpen||!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInteger ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ lookbackTotal = LOOKBACK_CALL(CDLBREAKAWAY)(); +/* Generated */ if( startIdx < lookbackTotal ) +/* Generated */ startIdx = lookbackTotal; +/* Generated */ if( startIdx > endIdx ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ BodyLongPeriodTotal = 0; +/* Generated */ BodyLongTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(BodyLong); +/* Generated */ i = BodyLongTrailingIdx; +/* Generated */ while( i < startIdx ) { +/* Generated */ BodyLongPeriodTotal += TA_CANDLERANGE( BodyLong, i-4 ); +/* Generated */ i++; +/* Generated */ } +/* Generated */ i = startIdx; +/* Generated */ outIdx = 0; +/* Generated */ do +/* Generated */ { +/* Generated */ if( TA_REALBODY(i-4) > TA_CANDLEAVERAGE( BodyLong, BodyLongPeriodTotal, i-4 ) && // 1st long +/* Generated */ TA_CANDLECOLOR(i-4) == TA_CANDLECOLOR(i-3) && // 1st, 2nd, 4th same color, 5th opposite +/* Generated */ TA_CANDLECOLOR(i-3) == TA_CANDLECOLOR(i-1) && +/* Generated */ TA_CANDLECOLOR(i-1) == -TA_CANDLECOLOR(i) && +/* Generated */ ( +/* Generated */ ( TA_CANDLECOLOR(i-4) == -1 && // when 1st is black: +/* Generated */ TA_REALBODYGAPDOWN(i-3,i-4) && // 2nd gaps down +/* Generated */ inHigh[i-2] < inHigh[i-3] && inLow[i-2] < inLow[i-3] && // 3rd has lower high and low than 2nd +/* Generated */ inHigh[i-1] < inHigh[i-2] && inLow[i-1] < inLow[i-2] && // 4th has lower high and low than 3rd +/* Generated */ inClose[i] > inOpen[i-3] && inClose[i] < inClose[i-4] // 5th closes inside the gap +/* Generated */ ) +/* Generated */ || +/* Generated */ ( TA_CANDLECOLOR(i-4) == 1 && // when 1st is white: +/* Generated */ TA_REALBODYGAPUP(i-3,i-4) && // 2nd gaps up +/* Generated */ inHigh[i-2] > inHigh[i-3] && inLow[i-2] > inLow[i-3] && // 3rd has higher high and low than 2nd +/* Generated */ inHigh[i-1] > inHigh[i-2] && inLow[i-1] > inLow[i-2] && // 4th has higher high and low than 3rd +/* Generated */ inClose[i] < inOpen[i-3] && inClose[i] > inClose[i-4] // 5th closes inside the gap +/* Generated */ ) +/* Generated */ ) +/* Generated */ ) +/* Generated */ outInteger[outIdx++] = TA_CANDLECOLOR(i) * 100; +/* Generated */ else +/* Generated */ outInteger[outIdx++] = 0; +/* Generated */ BodyLongPeriodTotal += TA_CANDLERANGE( BodyLong, i-4 ) +/* Generated */ - TA_CANDLERANGE( BodyLong, BodyLongTrailingIdx-4 ); +/* Generated */ i++; +/* Generated */ BodyLongTrailingIdx++; +/* Generated */ } while( i <= endIdx ); +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_CDLCLOSINGMARUBOZU.c b/src/ta_func/ta_CDLCLOSINGMARUBOZU.c new file mode 100644 index 000000000..cbb991410 --- /dev/null +++ b/src/ta_func/ta_CDLCLOSINGMARUBOZU.c @@ -0,0 +1,376 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * AC Angelo Ciceri + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 022005 AC Creation + * + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::CdlClosingMarubozuLookback( void ) +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int cdlClosingMarubozuLookback( ) +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_CDLCLOSINGMARUBOZU_Lookback( void ) +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ /* No parameters to validate. */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + return max( TA_CANDLEAVGPERIOD(BodyLong), TA_CANDLEAVGPERIOD(ShadowVeryShort) ); +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_CDLCLOSINGMARUBOZU - Closing Marubozu + * + * Input = Open, High, Low, Close + * Output = int + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::CdlClosingMarubozu( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inOpen, +/* Generated */ SubArray^ inHigh, +/* Generated */ SubArray^ inLow, +/* Generated */ SubArray^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::CdlClosingMarubozu( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inOpen, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cdlClosingMarubozu( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inOpen[], +/* Generated */ double inHigh[], +/* Generated */ double inLow[], +/* Generated */ double inClose[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_CDLCLOSINGMARUBOZU( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inOpen[], +/* Generated */ const double inHigh[], +/* Generated */ const double inLow[], +/* Generated */ const double inClose[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* Insert local variables here. */ + double BodyLongPeriodTotal, ShadowVeryShortPeriodTotal; + int i, outIdx, BodyLongTrailingIdx, ShadowVeryShortTrailingIdx, lookbackTotal; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ /* Verify required price component. */ +/* Generated */ if(!inOpen||!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInteger ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Identify the minimum number of price bar needed + * to calculate at least one output. + */ + + lookbackTotal = LOOKBACK_CALL(CDLCLOSINGMARUBOZU)(); + + /* Move up the start index if there is not + * enough initial data. + */ + if( startIdx < lookbackTotal ) + startIdx = lookbackTotal; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + + /* Do the calculation using tight loops. */ + /* Add-up the initial period, except for the last value. */ + BodyLongPeriodTotal = 0; + BodyLongTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(BodyLong); + ShadowVeryShortPeriodTotal = 0; + ShadowVeryShortTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(ShadowVeryShort); + + i = BodyLongTrailingIdx; + while( i < startIdx ) { + BodyLongPeriodTotal += TA_CANDLERANGE( BodyLong, i ); + i++; + } + i = ShadowVeryShortTrailingIdx; + while( i < startIdx ) { + ShadowVeryShortPeriodTotal += TA_CANDLERANGE( ShadowVeryShort, i ); + i++; + } + + /* Proceed with the calculation for the requested range. + * Must have: + * - long white (black) real body + * - no or very short upper (lower) shadow + * The meaning of "long" and "very short" is specified with TA_SetCandleSettings + * outInteger is positive (1 to 100) when white (bullish), negative (-1 to -100) when black (bearish) + */ + outIdx = 0; + do + { + if( TA_REALBODY(i) > TA_CANDLEAVERAGE( BodyLong, BodyLongPeriodTotal, i ) && // long body + ( + ( // white body and very short lower shadow + TA_CANDLECOLOR(i) == 1 && + TA_UPPERSHADOW(i) < TA_CANDLEAVERAGE( ShadowVeryShort, ShadowVeryShortPeriodTotal, i ) + ) || + ( // black body and very short upper shadow + TA_CANDLECOLOR(i) == -1 && + TA_LOWERSHADOW(i) < TA_CANDLEAVERAGE( ShadowVeryShort, ShadowVeryShortPeriodTotal, i ) + ) + ) ) + outInteger[outIdx++] = TA_CANDLECOLOR(i) * 100; + else + outInteger[outIdx++] = 0; + /* add the current range and subtract the first range: this is done after the pattern recognition + * when avgPeriod is not 0, that means "compare with the previous candles" (it excludes the current candle) + */ + BodyLongPeriodTotal += TA_CANDLERANGE( BodyLong, i ) - TA_CANDLERANGE( BodyLong, BodyLongTrailingIdx ); + ShadowVeryShortPeriodTotal += TA_CANDLERANGE( ShadowVeryShort, i ) + - TA_CANDLERANGE( ShadowVeryShort, ShadowVeryShortTrailingIdx ); + i++; + BodyLongTrailingIdx++; + ShadowVeryShortTrailingIdx++; + } while( i <= endIdx ); + + /* All done. Indicate the output limits and return. */ + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::CdlClosingMarubozu( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inOpen, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cdlClosingMarubozu( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inOpen[], +/* Generated */ float inHigh[], +/* Generated */ float inLow[], +/* Generated */ float inClose[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_CDLCLOSINGMARUBOZU( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inOpen[], +/* Generated */ const float inHigh[], +/* Generated */ const float inLow[], +/* Generated */ const float inClose[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ double BodyLongPeriodTotal, ShadowVeryShortPeriodTotal; +/* Generated */ int i, outIdx, BodyLongTrailingIdx, ShadowVeryShortTrailingIdx, lookbackTotal; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if(!inOpen||!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInteger ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ lookbackTotal = LOOKBACK_CALL(CDLCLOSINGMARUBOZU)(); +/* Generated */ if( startIdx < lookbackTotal ) +/* Generated */ startIdx = lookbackTotal; +/* Generated */ if( startIdx > endIdx ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ BodyLongPeriodTotal = 0; +/* Generated */ BodyLongTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(BodyLong); +/* Generated */ ShadowVeryShortPeriodTotal = 0; +/* Generated */ ShadowVeryShortTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(ShadowVeryShort); +/* Generated */ i = BodyLongTrailingIdx; +/* Generated */ while( i < startIdx ) { +/* Generated */ BodyLongPeriodTotal += TA_CANDLERANGE( BodyLong, i ); +/* Generated */ i++; +/* Generated */ } +/* Generated */ i = ShadowVeryShortTrailingIdx; +/* Generated */ while( i < startIdx ) { +/* Generated */ ShadowVeryShortPeriodTotal += TA_CANDLERANGE( ShadowVeryShort, i ); +/* Generated */ i++; +/* Generated */ } +/* Generated */ outIdx = 0; +/* Generated */ do +/* Generated */ { +/* Generated */ if( TA_REALBODY(i) > TA_CANDLEAVERAGE( BodyLong, BodyLongPeriodTotal, i ) && // long body +/* Generated */ ( +/* Generated */ ( // white body and very short lower shadow +/* Generated */ TA_CANDLECOLOR(i) == 1 && +/* Generated */ TA_UPPERSHADOW(i) < TA_CANDLEAVERAGE( ShadowVeryShort, ShadowVeryShortPeriodTotal, i ) +/* Generated */ ) || +/* Generated */ ( // black body and very short upper shadow +/* Generated */ TA_CANDLECOLOR(i) == -1 && +/* Generated */ TA_LOWERSHADOW(i) < TA_CANDLEAVERAGE( ShadowVeryShort, ShadowVeryShortPeriodTotal, i ) +/* Generated */ ) +/* Generated */ ) ) +/* Generated */ outInteger[outIdx++] = TA_CANDLECOLOR(i) * 100; +/* Generated */ else +/* Generated */ outInteger[outIdx++] = 0; +/* Generated */ BodyLongPeriodTotal += TA_CANDLERANGE( BodyLong, i ) - TA_CANDLERANGE( BodyLong, BodyLongTrailingIdx ); +/* Generated */ ShadowVeryShortPeriodTotal += TA_CANDLERANGE( ShadowVeryShort, i ) +/* Generated */ - TA_CANDLERANGE( ShadowVeryShort, ShadowVeryShortTrailingIdx ); +/* Generated */ i++; +/* Generated */ BodyLongTrailingIdx++; +/* Generated */ ShadowVeryShortTrailingIdx++; +/* Generated */ } while( i <= endIdx ); +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_CDLCONCEALBABYSWALL.c b/src/ta_func/ta_CDLCONCEALBABYSWALL.c new file mode 100644 index 000000000..bfba843c1 --- /dev/null +++ b/src/ta_func/ta_CDLCONCEALBABYSWALL.c @@ -0,0 +1,384 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * AC Angelo Ciceri + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 022705 AC Creation + * + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::CdlConcealBabysWallLookback( void ) +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int cdlConcealBabysWallLookback( ) +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_CDLCONCEALBABYSWALL_Lookback( void ) +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ /* No parameters to validate. */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + return TA_CANDLEAVGPERIOD(ShadowVeryShort) + 3; +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_CDLCONCEALBABYSWALL - Concealing Baby Swallow + * + * Input = Open, High, Low, Close + * Output = int + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::CdlConcealBabysWall( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inOpen, +/* Generated */ SubArray^ inHigh, +/* Generated */ SubArray^ inLow, +/* Generated */ SubArray^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::CdlConcealBabysWall( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inOpen, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cdlConcealBabysWall( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inOpen[], +/* Generated */ double inHigh[], +/* Generated */ double inLow[], +/* Generated */ double inClose[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_CDLCONCEALBABYSWALL( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inOpen[], +/* Generated */ const double inHigh[], +/* Generated */ const double inLow[], +/* Generated */ const double inClose[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* Insert local variables here. */ + ARRAY_LOCAL(ShadowVeryShortPeriodTotal,4); + int i, outIdx, totIdx, ShadowVeryShortTrailingIdx, lookbackTotal; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ /* Verify required price component. */ +/* Generated */ if(!inOpen||!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInteger ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Identify the minimum number of price bar needed + * to calculate at least one output. + */ + + lookbackTotal = LOOKBACK_CALL(CDLCONCEALBABYSWALL)(); + + /* Move up the start index if there is not + * enough initial data. + */ + if( startIdx < lookbackTotal ) + startIdx = lookbackTotal; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + + /* Do the calculation using tight loops. */ + /* Add-up the initial period, except for the last value. */ + ShadowVeryShortPeriodTotal[3] = 0; + ShadowVeryShortPeriodTotal[2] = 0; + ShadowVeryShortPeriodTotal[1] = 0; + ShadowVeryShortTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(ShadowVeryShort); + + i = ShadowVeryShortTrailingIdx; + while( i < startIdx ) { + ShadowVeryShortPeriodTotal[3] += TA_CANDLERANGE( ShadowVeryShort, i-3 ); + ShadowVeryShortPeriodTotal[2] += TA_CANDLERANGE( ShadowVeryShort, i-2 ); + ShadowVeryShortPeriodTotal[1] += TA_CANDLERANGE( ShadowVeryShort, i-1 ); + i++; + } + i = startIdx; + + /* Proceed with the calculation for the requested range. + * Must have: + * - first candle: black marubozu (very short shadows) + * - second candle: black marubozu (very short shadows) + * - third candle: black candle that opens gapping down but has an upper shadow that extends into the prior body + * - fourth candle: black candle that completely engulfs the third candle, including the shadows + * The meanings of "very short shadow" are specified with TA_SetCandleSettings; + * outInteger is positive (1 to 100): concealing baby swallow is always bullish; + * the user should consider that concealing baby swallow is significant when it appears in downtrend, while + * this function does not consider it + */ + outIdx = 0; + do + { + if( TA_CANDLECOLOR(i-3) == -1 && // 1st black + TA_CANDLECOLOR(i-2) == -1 && // 2nd black + TA_CANDLECOLOR(i-1) == -1 && // 3rd black + TA_CANDLECOLOR(i) == -1 && // 4th black + // 1st: marubozu + TA_LOWERSHADOW(i-3) < TA_CANDLEAVERAGE( ShadowVeryShort, ShadowVeryShortPeriodTotal[3], i-3 ) && + TA_UPPERSHADOW(i-3) < TA_CANDLEAVERAGE( ShadowVeryShort, ShadowVeryShortPeriodTotal[3], i-3 ) && + // 2nd: marubozu + TA_LOWERSHADOW(i-2) < TA_CANDLEAVERAGE( ShadowVeryShort, ShadowVeryShortPeriodTotal[2], i-2 ) && + TA_UPPERSHADOW(i-2) < TA_CANDLEAVERAGE( ShadowVeryShort, ShadowVeryShortPeriodTotal[2], i-2 ) && + TA_REALBODYGAPDOWN(i-1,i-2) && // 3rd: opens gapping down + // and HAS an upper shadow + TA_UPPERSHADOW(i-1) > TA_CANDLEAVERAGE( ShadowVeryShort, ShadowVeryShortPeriodTotal[1], i-1 ) && + inHigh[i-1] > inClose[i-2] && // that extends into the prior body + inHigh[i] > inHigh[i-1] && inLow[i] < inLow[i-1] // 4th: engulfs the 3rd including the shadows + ) + outInteger[outIdx++] = 100; + else + outInteger[outIdx++] = 0; + /* add the current range and subtract the first range: this is done after the pattern recognition + * when avgPeriod is not 0, that means "compare with the previous candles" (it excludes the current candle) + */ + for (totIdx = 3; totIdx >= 1; --totIdx) + ShadowVeryShortPeriodTotal[totIdx] += TA_CANDLERANGE( ShadowVeryShort, i-totIdx ) + - TA_CANDLERANGE( ShadowVeryShort, ShadowVeryShortTrailingIdx-totIdx ); + i++; + ShadowVeryShortTrailingIdx++; + } while( i <= endIdx ); + + /* All done. Indicate the output limits and return. */ + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::CdlConcealBabysWall( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inOpen, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cdlConcealBabysWall( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inOpen[], +/* Generated */ float inHigh[], +/* Generated */ float inLow[], +/* Generated */ float inClose[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_CDLCONCEALBABYSWALL( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inOpen[], +/* Generated */ const float inHigh[], +/* Generated */ const float inLow[], +/* Generated */ const float inClose[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ ARRAY_LOCAL(ShadowVeryShortPeriodTotal,4); +/* Generated */ int i, outIdx, totIdx, ShadowVeryShortTrailingIdx, lookbackTotal; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if(!inOpen||!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInteger ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ lookbackTotal = LOOKBACK_CALL(CDLCONCEALBABYSWALL)(); +/* Generated */ if( startIdx < lookbackTotal ) +/* Generated */ startIdx = lookbackTotal; +/* Generated */ if( startIdx > endIdx ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ ShadowVeryShortPeriodTotal[3] = 0; +/* Generated */ ShadowVeryShortPeriodTotal[2] = 0; +/* Generated */ ShadowVeryShortPeriodTotal[1] = 0; +/* Generated */ ShadowVeryShortTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(ShadowVeryShort); +/* Generated */ i = ShadowVeryShortTrailingIdx; +/* Generated */ while( i < startIdx ) { +/* Generated */ ShadowVeryShortPeriodTotal[3] += TA_CANDLERANGE( ShadowVeryShort, i-3 ); +/* Generated */ ShadowVeryShortPeriodTotal[2] += TA_CANDLERANGE( ShadowVeryShort, i-2 ); +/* Generated */ ShadowVeryShortPeriodTotal[1] += TA_CANDLERANGE( ShadowVeryShort, i-1 ); +/* Generated */ i++; +/* Generated */ } +/* Generated */ i = startIdx; +/* Generated */ outIdx = 0; +/* Generated */ do +/* Generated */ { +/* Generated */ if( TA_CANDLECOLOR(i-3) == -1 && // 1st black +/* Generated */ TA_CANDLECOLOR(i-2) == -1 && // 2nd black +/* Generated */ TA_CANDLECOLOR(i-1) == -1 && // 3rd black +/* Generated */ TA_CANDLECOLOR(i) == -1 && // 4th black +/* Generated */ // 1st: marubozu +/* Generated */ TA_LOWERSHADOW(i-3) < TA_CANDLEAVERAGE( ShadowVeryShort, ShadowVeryShortPeriodTotal[3], i-3 ) && +/* Generated */ TA_UPPERSHADOW(i-3) < TA_CANDLEAVERAGE( ShadowVeryShort, ShadowVeryShortPeriodTotal[3], i-3 ) && +/* Generated */ // 2nd: marubozu +/* Generated */ TA_LOWERSHADOW(i-2) < TA_CANDLEAVERAGE( ShadowVeryShort, ShadowVeryShortPeriodTotal[2], i-2 ) && +/* Generated */ TA_UPPERSHADOW(i-2) < TA_CANDLEAVERAGE( ShadowVeryShort, ShadowVeryShortPeriodTotal[2], i-2 ) && +/* Generated */ TA_REALBODYGAPDOWN(i-1,i-2) && // 3rd: opens gapping down +/* Generated */ // and HAS an upper shadow +/* Generated */ TA_UPPERSHADOW(i-1) > TA_CANDLEAVERAGE( ShadowVeryShort, ShadowVeryShortPeriodTotal[1], i-1 ) && +/* Generated */ inHigh[i-1] > inClose[i-2] && // that extends into the prior body +/* Generated */ inHigh[i] > inHigh[i-1] && inLow[i] < inLow[i-1] // 4th: engulfs the 3rd including the shadows +/* Generated */ ) +/* Generated */ outInteger[outIdx++] = 100; +/* Generated */ else +/* Generated */ outInteger[outIdx++] = 0; +/* Generated */ for (totIdx = 3; totIdx >= 1; --totIdx) +/* Generated */ ShadowVeryShortPeriodTotal[totIdx] += TA_CANDLERANGE( ShadowVeryShort, i-totIdx ) +/* Generated */ - TA_CANDLERANGE( ShadowVeryShort, ShadowVeryShortTrailingIdx-totIdx ); +/* Generated */ i++; +/* Generated */ ShadowVeryShortTrailingIdx++; +/* Generated */ } while( i <= endIdx ); +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_CDLCOUNTERATTACK.c b/src/ta_func/ta_CDLCOUNTERATTACK.c new file mode 100644 index 000000000..fa76bba85 --- /dev/null +++ b/src/ta_func/ta_CDLCOUNTERATTACK.c @@ -0,0 +1,378 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * AC Angelo Ciceri + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 010605 AC Creation + * + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::CdlCounterAttackLookback( void ) +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int cdlCounterAttackLookback( ) +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_CDLCOUNTERATTACK_Lookback( void ) +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ /* No parameters to validate. */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + return max( TA_CANDLEAVGPERIOD(Equal), TA_CANDLEAVGPERIOD(BodyLong) + ) + 1; +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_CDLCOUNTERATTACK - Counterattack + * + * Input = Open, High, Low, Close + * Output = int + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::CdlCounterAttack( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inOpen, +/* Generated */ SubArray^ inHigh, +/* Generated */ SubArray^ inLow, +/* Generated */ SubArray^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::CdlCounterAttack( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inOpen, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cdlCounterAttack( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inOpen[], +/* Generated */ double inHigh[], +/* Generated */ double inLow[], +/* Generated */ double inClose[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_CDLCOUNTERATTACK( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inOpen[], +/* Generated */ const double inHigh[], +/* Generated */ const double inLow[], +/* Generated */ const double inClose[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* Insert local variables here. */ + double EqualPeriodTotal; + ARRAY_LOCAL(BodyLongPeriodTotal,2); + int i, outIdx, totIdx, EqualTrailingIdx, BodyLongTrailingIdx, lookbackTotal; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ /* Verify required price component. */ +/* Generated */ if(!inOpen||!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInteger ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Identify the minimum number of price bar needed + * to calculate at least one output. + */ + + lookbackTotal = LOOKBACK_CALL(CDLCOUNTERATTACK)(); + + /* Move up the start index if there is not + * enough initial data. + */ + if( startIdx < lookbackTotal ) + startIdx = lookbackTotal; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + + /* Do the calculation using tight loops. */ + /* Add-up the initial period, except for the last value. */ + EqualPeriodTotal = 0; + EqualTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(Equal); + BodyLongPeriodTotal[1] = 0; + BodyLongPeriodTotal[0] = 0; + BodyLongTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(BodyLong); + + i = EqualTrailingIdx; + while( i < startIdx ) { + EqualPeriodTotal += TA_CANDLERANGE( Equal, i-1 ); + i++; + } + i = BodyLongTrailingIdx; + while( i < startIdx ) { + BodyLongPeriodTotal[1] += TA_CANDLERANGE( BodyLong, i-1 ); + BodyLongPeriodTotal[0] += TA_CANDLERANGE( BodyLong, i ); + i++; + } + i = startIdx; + + /* Proceed with the calculation for the requested range. + * Must have: + * - first candle: long black (white) + * - second candle: long white (black) with close equal to the prior close + * The meaning of "equal" and "long" is specified with TA_SetCandleSettings + * outInteger is positive (1 to 100) when bullish or negative (-1 to -100) when bearish; + * the user should consider that counterattack is significant in a trend, while this function does not consider it + */ + outIdx = 0; + do + { + if( TA_CANDLECOLOR(i-1) == -TA_CANDLECOLOR(i) && // opposite candles + TA_REALBODY(i-1) > TA_CANDLEAVERAGE( BodyLong, BodyLongPeriodTotal[1], i-1 ) && // 1st long + TA_REALBODY(i) > TA_CANDLEAVERAGE( BodyLong, BodyLongPeriodTotal[0], i ) && // 2nd long + inClose[i] <= inClose[i-1] + TA_CANDLEAVERAGE( Equal, EqualPeriodTotal, i-1 ) && // equal closes + inClose[i] >= inClose[i-1] - TA_CANDLEAVERAGE( Equal, EqualPeriodTotal, i-1 ) + ) + outInteger[outIdx++] = TA_CANDLECOLOR(i) * 100; + else + outInteger[outIdx++] = 0; + /* add the current range and subtract the first range: this is done after the pattern recognition + * when avgPeriod is not 0, that means "compare with the previous candles" (it excludes the current candle) + */ + EqualPeriodTotal += TA_CANDLERANGE( Equal, i-1 ) - TA_CANDLERANGE( Equal, EqualTrailingIdx-1 ); + for (totIdx = 1; totIdx >= 0; --totIdx) + BodyLongPeriodTotal[totIdx] += TA_CANDLERANGE( BodyLong, i-totIdx ) + - TA_CANDLERANGE( BodyLong, BodyLongTrailingIdx-totIdx ); + i++; + EqualTrailingIdx++; + BodyLongTrailingIdx++; + } while( i <= endIdx ); + + /* All done. Indicate the output limits and return. */ + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::CdlCounterAttack( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inOpen, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cdlCounterAttack( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inOpen[], +/* Generated */ float inHigh[], +/* Generated */ float inLow[], +/* Generated */ float inClose[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_CDLCOUNTERATTACK( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inOpen[], +/* Generated */ const float inHigh[], +/* Generated */ const float inLow[], +/* Generated */ const float inClose[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ double EqualPeriodTotal; +/* Generated */ ARRAY_LOCAL(BodyLongPeriodTotal,2); +/* Generated */ int i, outIdx, totIdx, EqualTrailingIdx, BodyLongTrailingIdx, lookbackTotal; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if(!inOpen||!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInteger ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ lookbackTotal = LOOKBACK_CALL(CDLCOUNTERATTACK)(); +/* Generated */ if( startIdx < lookbackTotal ) +/* Generated */ startIdx = lookbackTotal; +/* Generated */ if( startIdx > endIdx ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ EqualPeriodTotal = 0; +/* Generated */ EqualTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(Equal); +/* Generated */ BodyLongPeriodTotal[1] = 0; +/* Generated */ BodyLongPeriodTotal[0] = 0; +/* Generated */ BodyLongTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(BodyLong); +/* Generated */ i = EqualTrailingIdx; +/* Generated */ while( i < startIdx ) { +/* Generated */ EqualPeriodTotal += TA_CANDLERANGE( Equal, i-1 ); +/* Generated */ i++; +/* Generated */ } +/* Generated */ i = BodyLongTrailingIdx; +/* Generated */ while( i < startIdx ) { +/* Generated */ BodyLongPeriodTotal[1] += TA_CANDLERANGE( BodyLong, i-1 ); +/* Generated */ BodyLongPeriodTotal[0] += TA_CANDLERANGE( BodyLong, i ); +/* Generated */ i++; +/* Generated */ } +/* Generated */ i = startIdx; +/* Generated */ outIdx = 0; +/* Generated */ do +/* Generated */ { +/* Generated */ if( TA_CANDLECOLOR(i-1) == -TA_CANDLECOLOR(i) && // opposite candles +/* Generated */ TA_REALBODY(i-1) > TA_CANDLEAVERAGE( BodyLong, BodyLongPeriodTotal[1], i-1 ) && // 1st long +/* Generated */ TA_REALBODY(i) > TA_CANDLEAVERAGE( BodyLong, BodyLongPeriodTotal[0], i ) && // 2nd long +/* Generated */ inClose[i] <= inClose[i-1] + TA_CANDLEAVERAGE( Equal, EqualPeriodTotal, i-1 ) && // equal closes +/* Generated */ inClose[i] >= inClose[i-1] - TA_CANDLEAVERAGE( Equal, EqualPeriodTotal, i-1 ) +/* Generated */ ) +/* Generated */ outInteger[outIdx++] = TA_CANDLECOLOR(i) * 100; +/* Generated */ else +/* Generated */ outInteger[outIdx++] = 0; +/* Generated */ EqualPeriodTotal += TA_CANDLERANGE( Equal, i-1 ) - TA_CANDLERANGE( Equal, EqualTrailingIdx-1 ); +/* Generated */ for (totIdx = 1; totIdx >= 0; --totIdx) +/* Generated */ BodyLongPeriodTotal[totIdx] += TA_CANDLERANGE( BodyLong, i-totIdx ) +/* Generated */ - TA_CANDLERANGE( BodyLong, BodyLongTrailingIdx-totIdx ); +/* Generated */ i++; +/* Generated */ EqualTrailingIdx++; +/* Generated */ BodyLongTrailingIdx++; +/* Generated */ } while( i <= endIdx ); +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_CDLDARKCLOUDCOVER.c b/src/ta_func/ta_CDLDARKCLOUDCOVER.c new file mode 100644 index 000000000..ee5e3f04d --- /dev/null +++ b/src/ta_func/ta_CDLDARKCLOUDCOVER.c @@ -0,0 +1,384 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * AC Angelo Ciceri + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 120904 AC Creation + * + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::CdlDarkCloudCoverLookback( double optInPenetration ) /* From 0 to TA_REAL_MAX */ +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int cdlDarkCloudCoverLookback( double optInPenetration ) /* From 0 to TA_REAL_MAX */ +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_CDLDARKCLOUDCOVER_Lookback( double optInPenetration ) /* From 0 to TA_REAL_MAX */ +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( optInPenetration == TA_REAL_DEFAULT ) +/* Generated */ optInPenetration = 5.000000e-1; +/* Generated */ else if( (optInPenetration < 0.000000e+0) ||/* Generated */ (optInPenetration > 3.000000e+37) ) +/* Generated */ return -1; +/* Generated */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + UNUSED_VARIABLE(optInPenetration); + + return TA_CANDLEAVGPERIOD(BodyLong) + 1; +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_CDLDARKCLOUDCOVER - Dark Cloud Cover + * + * Input = Open, High, Low, Close + * Output = int + * + * Optional Parameters + * ------------------- + * optInPenetration:(From 0 to TA_REAL_MAX) + * Percentage of penetration of a candle within another candle + * + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::CdlDarkCloudCover( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inOpen, +/* Generated */ SubArray^ inHigh, +/* Generated */ SubArray^ inLow, +/* Generated */ SubArray^ inClose, +/* Generated */ double optInPenetration, /* From 0 to TA_REAL_MAX */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::CdlDarkCloudCover( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inOpen, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ double optInPenetration, /* From 0 to TA_REAL_MAX */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cdlDarkCloudCover( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inOpen[], +/* Generated */ double inHigh[], +/* Generated */ double inLow[], +/* Generated */ double inClose[], +/* Generated */ double optInPenetration, /* From 0 to TA_REAL_MAX */ +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_CDLDARKCLOUDCOVER( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inOpen[], +/* Generated */ const double inHigh[], +/* Generated */ const double inLow[], +/* Generated */ const double inClose[], +/* Generated */ double optInPenetration, /* From 0 to TA_REAL_MAX */ +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* Insert local variables here. */ + double BodyLongPeriodTotal; + int i, outIdx, BodyLongTrailingIdx, lookbackTotal; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ /* Verify required price component. */ +/* Generated */ if(!inOpen||!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ if( optInPenetration == TA_REAL_DEFAULT ) +/* Generated */ optInPenetration = 5.000000e-1; +/* Generated */ else if( (optInPenetration < 0.000000e+0) ||/* Generated */ (optInPenetration > 3.000000e+37) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInteger ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Identify the minimum number of price bar needed + * to calculate at least one output. + */ + + lookbackTotal = LOOKBACK_CALL(CDLDARKCLOUDCOVER)(optInPenetration); + + /* Move up the start index if there is not + * enough initial data. + */ + if( startIdx < lookbackTotal ) + startIdx = lookbackTotal; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + + /* Do the calculation using tight loops. */ + /* Add-up the initial period, except for the last value. */ + BodyLongPeriodTotal = 0; + BodyLongTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(BodyLong); + + i = BodyLongTrailingIdx; + while( i < startIdx ) { + BodyLongPeriodTotal += TA_CANDLERANGE( BodyLong, i-1 ); + i++; + } + i = startIdx; + + /* Proceed with the calculation for the requested range. + * Must have: + * - first candle: long white candle + * - second candle: black candle that opens above previous day high and closes within previous day real body; + * Greg Morris wants the close to be below the midpoint of the previous real body + * The meaning of "long" is specified with TA_SetCandleSettings, the penetration of the first real body is specified + * with optInPenetration + * outInteger is negative (-1 to -100): dark cloud cover is always bearish + * the user should consider that a dark cloud cover is significant when it appears in an uptrend, while + * this function does not consider it + */ + outIdx = 0; + do + { + if( TA_CANDLECOLOR(i-1) == 1 && // 1st: white + TA_REALBODY(i-1) > TA_CANDLEAVERAGE( BodyLong, BodyLongPeriodTotal, i-1 ) && // long + TA_CANDLECOLOR(i) == -1 && // 2nd: black + inOpen[i] > inHigh[i-1] && // open above prior high + inClose[i] > inOpen[i-1] && // close within prior body + inClose[i] < inClose[i-1] - TA_REALBODY(i-1) * optInPenetration + ) + outInteger[outIdx++] = -100; + else + outInteger[outIdx++] = 0; + /* add the current range and subtract the first range: this is done after the pattern recognition + * when avgPeriod is not 0, that means "compare with the previous candles" (it excludes the current candle) + */ + BodyLongPeriodTotal += TA_CANDLERANGE( BodyLong, i-1 ) - TA_CANDLERANGE( BodyLong, BodyLongTrailingIdx-1 ); + i++; + BodyLongTrailingIdx++; + } while( i <= endIdx ); + + /* All done. Indicate the output limits and return. */ + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::CdlDarkCloudCover( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inOpen, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ double optInPenetration, /* From 0 to TA_REAL_MAX */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cdlDarkCloudCover( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inOpen[], +/* Generated */ float inHigh[], +/* Generated */ float inLow[], +/* Generated */ float inClose[], +/* Generated */ double optInPenetration, /* From 0 to TA_REAL_MAX */ +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_CDLDARKCLOUDCOVER( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inOpen[], +/* Generated */ const float inHigh[], +/* Generated */ const float inLow[], +/* Generated */ const float inClose[], +/* Generated */ double optInPenetration, /* From 0 to TA_REAL_MAX */ +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ double BodyLongPeriodTotal; +/* Generated */ int i, outIdx, BodyLongTrailingIdx, lookbackTotal; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if(!inOpen||!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ if( optInPenetration == TA_REAL_DEFAULT ) +/* Generated */ optInPenetration = 5.000000e-1; +/* Generated */ else if( (optInPenetration < 0.000000e+0) || (optInPenetration > 3.000000e+37) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInteger ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ lookbackTotal = LOOKBACK_CALL(CDLDARKCLOUDCOVER)(optInPenetration); +/* Generated */ if( startIdx < lookbackTotal ) +/* Generated */ startIdx = lookbackTotal; +/* Generated */ if( startIdx > endIdx ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ BodyLongPeriodTotal = 0; +/* Generated */ BodyLongTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(BodyLong); +/* Generated */ i = BodyLongTrailingIdx; +/* Generated */ while( i < startIdx ) { +/* Generated */ BodyLongPeriodTotal += TA_CANDLERANGE( BodyLong, i-1 ); +/* Generated */ i++; +/* Generated */ } +/* Generated */ i = startIdx; +/* Generated */ outIdx = 0; +/* Generated */ do +/* Generated */ { +/* Generated */ if( TA_CANDLECOLOR(i-1) == 1 && // 1st: white +/* Generated */ TA_REALBODY(i-1) > TA_CANDLEAVERAGE( BodyLong, BodyLongPeriodTotal, i-1 ) && // long +/* Generated */ TA_CANDLECOLOR(i) == -1 && // 2nd: black +/* Generated */ inOpen[i] > inHigh[i-1] && // open above prior high +/* Generated */ inClose[i] > inOpen[i-1] && // close within prior body +/* Generated */ inClose[i] < inClose[i-1] - TA_REALBODY(i-1) * optInPenetration +/* Generated */ ) +/* Generated */ outInteger[outIdx++] = -100; +/* Generated */ else +/* Generated */ outInteger[outIdx++] = 0; +/* Generated */ BodyLongPeriodTotal += TA_CANDLERANGE( BodyLong, i-1 ) - TA_CANDLERANGE( BodyLong, BodyLongTrailingIdx-1 ); +/* Generated */ i++; +/* Generated */ BodyLongTrailingIdx++; +/* Generated */ } while( i <= endIdx ); +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_CDLDOJI.c b/src/ta_func/ta_CDLDOJI.c new file mode 100644 index 000000000..6d42dc7b2 --- /dev/null +++ b/src/ta_func/ta_CDLDOJI.c @@ -0,0 +1,337 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * AC Angelo Ciceri + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 011505 AC Creation + * + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::CdlDojiLookback( void ) +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int cdlDojiLookback( ) +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_CDLDOJI_Lookback( void ) +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ /* No parameters to validate. */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + return TA_CANDLEAVGPERIOD(BodyDoji); +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_CDLDOJI - Doji + * + * Input = Open, High, Low, Close + * Output = int + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::CdlDoji( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inOpen, +/* Generated */ SubArray^ inHigh, +/* Generated */ SubArray^ inLow, +/* Generated */ SubArray^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::CdlDoji( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inOpen, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cdlDoji( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inOpen[], +/* Generated */ double inHigh[], +/* Generated */ double inLow[], +/* Generated */ double inClose[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_CDLDOJI( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inOpen[], +/* Generated */ const double inHigh[], +/* Generated */ const double inLow[], +/* Generated */ const double inClose[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* Insert local variables here. */ + double BodyDojiPeriodTotal; + int i, outIdx, BodyDojiTrailingIdx, lookbackTotal; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ /* Verify required price component. */ +/* Generated */ if(!inOpen||!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInteger ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Identify the minimum number of price bar needed + * to calculate at least one output. + */ + + lookbackTotal = LOOKBACK_CALL(CDLDOJI)(); + + /* Move up the start index if there is not + * enough initial data. + */ + if( startIdx < lookbackTotal ) + startIdx = lookbackTotal; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + + /* Do the calculation using tight loops. */ + /* Add-up the initial period, except for the last value. */ + BodyDojiPeriodTotal = 0; + BodyDojiTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(BodyDoji); + + i = BodyDojiTrailingIdx; + while( i < startIdx ) { + BodyDojiPeriodTotal += TA_CANDLERANGE( BodyDoji, i ); + i++; + } + + /* Proceed with the calculation for the requested range. + * + * Must have: + * - open quite equal to close + * How much can be the maximum distance between open and close is specified with TA_SetCandleSettings + * outInteger is always positive (1 to 100) but this does not mean it is bullish: doji shows uncertainty and it is + * neither bullish nor bearish when considered alone + */ + outIdx = 0; + do + { + if( TA_REALBODY(i) <= TA_CANDLEAVERAGE( BodyDoji, BodyDojiPeriodTotal, i ) ) + outInteger[outIdx++] = 100; + else + outInteger[outIdx++] = 0; + /* add the current range and subtract the first range: this is done after the pattern recognition + * when avgPeriod is not 0, that means "compare with the previous candles" (it excludes the current candle) + */ + BodyDojiPeriodTotal += TA_CANDLERANGE( BodyDoji, i ) - TA_CANDLERANGE( BodyDoji, BodyDojiTrailingIdx ); + i++; + BodyDojiTrailingIdx++; + } while( i <= endIdx ); + + /* All done. Indicate the output limits and return. */ + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::CdlDoji( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inOpen, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cdlDoji( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inOpen[], +/* Generated */ float inHigh[], +/* Generated */ float inLow[], +/* Generated */ float inClose[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_CDLDOJI( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inOpen[], +/* Generated */ const float inHigh[], +/* Generated */ const float inLow[], +/* Generated */ const float inClose[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ double BodyDojiPeriodTotal; +/* Generated */ int i, outIdx, BodyDojiTrailingIdx, lookbackTotal; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if(!inOpen||!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInteger ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ lookbackTotal = LOOKBACK_CALL(CDLDOJI)(); +/* Generated */ if( startIdx < lookbackTotal ) +/* Generated */ startIdx = lookbackTotal; +/* Generated */ if( startIdx > endIdx ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ BodyDojiPeriodTotal = 0; +/* Generated */ BodyDojiTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(BodyDoji); +/* Generated */ i = BodyDojiTrailingIdx; +/* Generated */ while( i < startIdx ) { +/* Generated */ BodyDojiPeriodTotal += TA_CANDLERANGE( BodyDoji, i ); +/* Generated */ i++; +/* Generated */ } +/* Generated */ outIdx = 0; +/* Generated */ do +/* Generated */ { +/* Generated */ if( TA_REALBODY(i) <= TA_CANDLEAVERAGE( BodyDoji, BodyDojiPeriodTotal, i ) ) +/* Generated */ outInteger[outIdx++] = 100; +/* Generated */ else +/* Generated */ outInteger[outIdx++] = 0; +/* Generated */ BodyDojiPeriodTotal += TA_CANDLERANGE( BodyDoji, i ) - TA_CANDLERANGE( BodyDoji, BodyDojiTrailingIdx ); +/* Generated */ i++; +/* Generated */ BodyDojiTrailingIdx++; +/* Generated */ } while( i <= endIdx ); +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_CDLDOJISTAR.c b/src/ta_func/ta_CDLDOJISTAR.c new file mode 100644 index 000000000..14a6de1c2 --- /dev/null +++ b/src/ta_func/ta_CDLDOJISTAR.c @@ -0,0 +1,368 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * AC Angelo Ciceri + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 100204 AC Creation + * + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::CdlDojiStarLookback( void ) +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int cdlDojiStarLookback( ) +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_CDLDOJISTAR_Lookback( void ) +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ /* No parameters to validate. */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + return max( TA_CANDLEAVGPERIOD(BodyDoji), TA_CANDLEAVGPERIOD(BodyLong) ) + 1; +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_CDLDOJISTAR - Doji Star + * + * Input = Open, High, Low, Close + * Output = int + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::CdlDojiStar( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inOpen, +/* Generated */ SubArray^ inHigh, +/* Generated */ SubArray^ inLow, +/* Generated */ SubArray^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::CdlDojiStar( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inOpen, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cdlDojiStar( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inOpen[], +/* Generated */ double inHigh[], +/* Generated */ double inLow[], +/* Generated */ double inClose[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_CDLDOJISTAR( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inOpen[], +/* Generated */ const double inHigh[], +/* Generated */ const double inLow[], +/* Generated */ const double inClose[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* Insert local variables here. */ + double BodyDojiPeriodTotal, BodyLongPeriodTotal; + int i, outIdx, BodyDojiTrailingIdx, BodyLongTrailingIdx, lookbackTotal; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ /* Verify required price component. */ +/* Generated */ if(!inOpen||!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInteger ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Identify the minimum number of price bar needed + * to calculate at least one output. + */ + + lookbackTotal = LOOKBACK_CALL(CDLDOJISTAR)(); + + /* Move up the start index if there is not + * enough initial data. + */ + if( startIdx < lookbackTotal ) + startIdx = lookbackTotal; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + + /* Do the calculation using tight loops. */ + /* Add-up the initial period, except for the last value. */ + BodyLongPeriodTotal = 0; + BodyDojiPeriodTotal = 0; + BodyLongTrailingIdx = startIdx -1 - TA_CANDLEAVGPERIOD(BodyLong); + BodyDojiTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(BodyDoji); + + i = BodyLongTrailingIdx; + while( i < startIdx-1 ) { + BodyLongPeriodTotal += TA_CANDLERANGE( BodyLong, i ); + i++; + } + i = BodyDojiTrailingIdx; + while( i < startIdx ) { + BodyDojiPeriodTotal += TA_CANDLERANGE( BodyDoji, i ); + i++; + } + + /* Proceed with the calculation for the requested range. + * Must have: + * - first candle: long real body + * - second candle: star (open gapping up in an uptrend or down in a downtrend) with a doji + * The meaning of "doji" and "long" is specified with TA_SetCandleSettings + * outInteger is positive (1 to 100) when bullish or negative (-1 to -100) when bearish; + * it's defined bullish when the long candle is white and the star gaps up, bearish when the long candle + * is black and the star gaps down; the user should consider that a doji star is bullish when it appears + * in an uptrend and it's bearish when it appears in a downtrend, so to determine the bullishness or + * bearishness of the pattern the trend must be analyzed + */ + outIdx = 0; + do + { + if( TA_REALBODY(i-1) > TA_CANDLEAVERAGE( BodyLong, BodyLongPeriodTotal, i-1 ) && // 1st: long real body + TA_REALBODY(i) <= TA_CANDLEAVERAGE( BodyDoji, BodyDojiPeriodTotal, i ) && // 2nd: doji + ( ( TA_CANDLECOLOR(i-1) == 1 && TA_REALBODYGAPUP(i,i-1) ) // that gaps up if 1st is white + || + ( TA_CANDLECOLOR(i-1) == -1 && TA_REALBODYGAPDOWN(i,i-1) ) // or down if 1st is black + ) ) + outInteger[outIdx++] = -TA_CANDLECOLOR(i-1) * 100; + else + outInteger[outIdx++] = 0; + /* add the current range and subtract the first range: this is done after the pattern recognition + * when avgPeriod is not 0, that means "compare with the previous candles" (it excludes the current candle) + */ + BodyLongPeriodTotal += TA_CANDLERANGE( BodyLong, i-1 ) - TA_CANDLERANGE( BodyLong, BodyLongTrailingIdx ); + BodyDojiPeriodTotal += TA_CANDLERANGE( BodyDoji, i ) - TA_CANDLERANGE( BodyDoji, BodyDojiTrailingIdx ); + i++; + BodyLongTrailingIdx++; + BodyDojiTrailingIdx++; + } while( i <= endIdx ); + + /* All done. Indicate the output limits and return. */ + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::CdlDojiStar( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inOpen, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cdlDojiStar( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inOpen[], +/* Generated */ float inHigh[], +/* Generated */ float inLow[], +/* Generated */ float inClose[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_CDLDOJISTAR( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inOpen[], +/* Generated */ const float inHigh[], +/* Generated */ const float inLow[], +/* Generated */ const float inClose[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ double BodyDojiPeriodTotal, BodyLongPeriodTotal; +/* Generated */ int i, outIdx, BodyDojiTrailingIdx, BodyLongTrailingIdx, lookbackTotal; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if(!inOpen||!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInteger ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ lookbackTotal = LOOKBACK_CALL(CDLDOJISTAR)(); +/* Generated */ if( startIdx < lookbackTotal ) +/* Generated */ startIdx = lookbackTotal; +/* Generated */ if( startIdx > endIdx ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ BodyLongPeriodTotal = 0; +/* Generated */ BodyDojiPeriodTotal = 0; +/* Generated */ BodyLongTrailingIdx = startIdx -1 - TA_CANDLEAVGPERIOD(BodyLong); +/* Generated */ BodyDojiTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(BodyDoji); +/* Generated */ i = BodyLongTrailingIdx; +/* Generated */ while( i < startIdx-1 ) { +/* Generated */ BodyLongPeriodTotal += TA_CANDLERANGE( BodyLong, i ); +/* Generated */ i++; +/* Generated */ } +/* Generated */ i = BodyDojiTrailingIdx; +/* Generated */ while( i < startIdx ) { +/* Generated */ BodyDojiPeriodTotal += TA_CANDLERANGE( BodyDoji, i ); +/* Generated */ i++; +/* Generated */ } +/* Generated */ outIdx = 0; +/* Generated */ do +/* Generated */ { +/* Generated */ if( TA_REALBODY(i-1) > TA_CANDLEAVERAGE( BodyLong, BodyLongPeriodTotal, i-1 ) && // 1st: long real body +/* Generated */ TA_REALBODY(i) <= TA_CANDLEAVERAGE( BodyDoji, BodyDojiPeriodTotal, i ) && // 2nd: doji +/* Generated */ ( ( TA_CANDLECOLOR(i-1) == 1 && TA_REALBODYGAPUP(i,i-1) ) // that gaps up if 1st is white +/* Generated */ || +/* Generated */ ( TA_CANDLECOLOR(i-1) == -1 && TA_REALBODYGAPDOWN(i,i-1) ) // or down if 1st is black +/* Generated */ ) ) +/* Generated */ outInteger[outIdx++] = -TA_CANDLECOLOR(i-1) * 100; +/* Generated */ else +/* Generated */ outInteger[outIdx++] = 0; +/* Generated */ BodyLongPeriodTotal += TA_CANDLERANGE( BodyLong, i-1 ) - TA_CANDLERANGE( BodyLong, BodyLongTrailingIdx ); +/* Generated */ BodyDojiPeriodTotal += TA_CANDLERANGE( BodyDoji, i ) - TA_CANDLERANGE( BodyDoji, BodyDojiTrailingIdx ); +/* Generated */ i++; +/* Generated */ BodyLongTrailingIdx++; +/* Generated */ BodyDojiTrailingIdx++; +/* Generated */ } while( i <= endIdx ); +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_CDLDRAGONFLYDOJI.c b/src/ta_func/ta_CDLDRAGONFLYDOJI.c new file mode 100644 index 000000000..de3082919 --- /dev/null +++ b/src/ta_func/ta_CDLDRAGONFLYDOJI.c @@ -0,0 +1,365 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * AC Angelo Ciceri + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 011505 AC Creation + * + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::CdlDragonflyDojiLookback( void ) +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int cdlDragonflyDojiLookback( ) +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_CDLDRAGONFLYDOJI_Lookback( void ) +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ /* No parameters to validate. */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + return max( TA_CANDLEAVGPERIOD(BodyDoji), TA_CANDLEAVGPERIOD(ShadowVeryShort) ); +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_CDLDRAGONFLYDOJI - Dragonfly Doji + * + * Input = Open, High, Low, Close + * Output = int + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::CdlDragonflyDoji( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inOpen, +/* Generated */ SubArray^ inHigh, +/* Generated */ SubArray^ inLow, +/* Generated */ SubArray^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::CdlDragonflyDoji( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inOpen, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cdlDragonflyDoji( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inOpen[], +/* Generated */ double inHigh[], +/* Generated */ double inLow[], +/* Generated */ double inClose[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_CDLDRAGONFLYDOJI( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inOpen[], +/* Generated */ const double inHigh[], +/* Generated */ const double inLow[], +/* Generated */ const double inClose[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* Insert local variables here. */ + double BodyDojiPeriodTotal, ShadowVeryShortPeriodTotal; + int i, outIdx, BodyDojiTrailingIdx, ShadowVeryShortTrailingIdx, lookbackTotal; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ /* Verify required price component. */ +/* Generated */ if(!inOpen||!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInteger ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Identify the minimum number of price bar needed + * to calculate at least one output. + */ + + lookbackTotal = LOOKBACK_CALL(CDLDRAGONFLYDOJI)(); + + /* Move up the start index if there is not + * enough initial data. + */ + if( startIdx < lookbackTotal ) + startIdx = lookbackTotal; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + + /* Do the calculation using tight loops. */ + /* Add-up the initial period, except for the last value. */ + BodyDojiPeriodTotal = 0; + BodyDojiTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(BodyDoji); + ShadowVeryShortPeriodTotal = 0; + ShadowVeryShortTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(ShadowVeryShort); + + i = BodyDojiTrailingIdx; + while( i < startIdx ) { + BodyDojiPeriodTotal += TA_CANDLERANGE( BodyDoji, i ); + i++; + } + i = ShadowVeryShortTrailingIdx; + while( i < startIdx ) { + ShadowVeryShortPeriodTotal += TA_CANDLERANGE( ShadowVeryShort, i ); + i++; + } + + /* Proceed with the calculation for the requested range. + * + * Must have: + * - doji body + * - open and close at the high of the day = no or very short upper shadow + * - lower shadow (to distinguish from other dojis, here lower shadow should not be very short) + * The meaning of "doji" and "very short" is specified with TA_SetCandleSettings + * outInteger is always positive (1 to 100) but this does not mean it is bullish: dragonfly doji must be considered + * relatively to the trend + */ + outIdx = 0; + do + { + if( TA_REALBODY(i) <= TA_CANDLEAVERAGE( BodyDoji, BodyDojiPeriodTotal, i ) && + TA_UPPERSHADOW(i) < TA_CANDLEAVERAGE( ShadowVeryShort, ShadowVeryShortPeriodTotal, i ) && + TA_LOWERSHADOW(i) > TA_CANDLEAVERAGE( ShadowVeryShort, ShadowVeryShortPeriodTotal, i ) + ) + outInteger[outIdx++] = 100; + else + outInteger[outIdx++] = 0; + /* add the current range and subtract the first range: this is done after the pattern recognition + * when avgPeriod is not 0, that means "compare with the previous candles" (it excludes the current candle) + */ + BodyDojiPeriodTotal += TA_CANDLERANGE( BodyDoji, i ) - TA_CANDLERANGE( BodyDoji, BodyDojiTrailingIdx ); + ShadowVeryShortPeriodTotal += TA_CANDLERANGE( ShadowVeryShort, i ) + - TA_CANDLERANGE( ShadowVeryShort, ShadowVeryShortTrailingIdx ); + i++; + BodyDojiTrailingIdx++; + ShadowVeryShortTrailingIdx++; + } while( i <= endIdx ); + + /* All done. Indicate the output limits and return. */ + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::CdlDragonflyDoji( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inOpen, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cdlDragonflyDoji( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inOpen[], +/* Generated */ float inHigh[], +/* Generated */ float inLow[], +/* Generated */ float inClose[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_CDLDRAGONFLYDOJI( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inOpen[], +/* Generated */ const float inHigh[], +/* Generated */ const float inLow[], +/* Generated */ const float inClose[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ double BodyDojiPeriodTotal, ShadowVeryShortPeriodTotal; +/* Generated */ int i, outIdx, BodyDojiTrailingIdx, ShadowVeryShortTrailingIdx, lookbackTotal; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if(!inOpen||!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInteger ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ lookbackTotal = LOOKBACK_CALL(CDLDRAGONFLYDOJI)(); +/* Generated */ if( startIdx < lookbackTotal ) +/* Generated */ startIdx = lookbackTotal; +/* Generated */ if( startIdx > endIdx ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ BodyDojiPeriodTotal = 0; +/* Generated */ BodyDojiTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(BodyDoji); +/* Generated */ ShadowVeryShortPeriodTotal = 0; +/* Generated */ ShadowVeryShortTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(ShadowVeryShort); +/* Generated */ i = BodyDojiTrailingIdx; +/* Generated */ while( i < startIdx ) { +/* Generated */ BodyDojiPeriodTotal += TA_CANDLERANGE( BodyDoji, i ); +/* Generated */ i++; +/* Generated */ } +/* Generated */ i = ShadowVeryShortTrailingIdx; +/* Generated */ while( i < startIdx ) { +/* Generated */ ShadowVeryShortPeriodTotal += TA_CANDLERANGE( ShadowVeryShort, i ); +/* Generated */ i++; +/* Generated */ } +/* Generated */ outIdx = 0; +/* Generated */ do +/* Generated */ { +/* Generated */ if( TA_REALBODY(i) <= TA_CANDLEAVERAGE( BodyDoji, BodyDojiPeriodTotal, i ) && +/* Generated */ TA_UPPERSHADOW(i) < TA_CANDLEAVERAGE( ShadowVeryShort, ShadowVeryShortPeriodTotal, i ) && +/* Generated */ TA_LOWERSHADOW(i) > TA_CANDLEAVERAGE( ShadowVeryShort, ShadowVeryShortPeriodTotal, i ) +/* Generated */ ) +/* Generated */ outInteger[outIdx++] = 100; +/* Generated */ else +/* Generated */ outInteger[outIdx++] = 0; +/* Generated */ BodyDojiPeriodTotal += TA_CANDLERANGE( BodyDoji, i ) - TA_CANDLERANGE( BodyDoji, BodyDojiTrailingIdx ); +/* Generated */ ShadowVeryShortPeriodTotal += TA_CANDLERANGE( ShadowVeryShort, i ) +/* Generated */ - TA_CANDLERANGE( ShadowVeryShort, ShadowVeryShortTrailingIdx ); +/* Generated */ i++; +/* Generated */ BodyDojiTrailingIdx++; +/* Generated */ ShadowVeryShortTrailingIdx++; +/* Generated */ } while( i <= endIdx ); +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_CDLENGULFING.c b/src/ta_func/ta_CDLENGULFING.c new file mode 100644 index 000000000..291971cd9 --- /dev/null +++ b/src/ta_func/ta_CDLENGULFING.c @@ -0,0 +1,329 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * AC Angelo Ciceri + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 102404 AC Creation + * + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::CdlEngulfingLookback( void ) +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int cdlEngulfingLookback( ) +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_CDLENGULFING_Lookback( void ) +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ /* No parameters to validate. */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + return 2; +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_CDLENGULFING - Engulfing Pattern + * + * Input = Open, High, Low, Close + * Output = int + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::CdlEngulfing( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inOpen, +/* Generated */ SubArray^ inHigh, +/* Generated */ SubArray^ inLow, +/* Generated */ SubArray^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::CdlEngulfing( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inOpen, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cdlEngulfing( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inOpen[], +/* Generated */ double inHigh[], +/* Generated */ double inLow[], +/* Generated */ double inClose[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_CDLENGULFING( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inOpen[], +/* Generated */ const double inHigh[], +/* Generated */ const double inLow[], +/* Generated */ const double inClose[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* Insert local variables here. */ + int i, outIdx, lookbackTotal; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ /* Verify required price component. */ +/* Generated */ if(!inOpen||!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInteger ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Identify the minimum number of price bar needed + * to calculate at least one output. + */ + + lookbackTotal = LOOKBACK_CALL(CDLENGULFING)(); + + /* Move up the start index if there is not + * enough initial data. + */ + if( startIdx < lookbackTotal ) + startIdx = lookbackTotal; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + + /* Do the calculation using tight loops. */ + /* Add-up the initial period, except for the last value. */ + i = startIdx; + + /* Proceed with the calculation for the requested range. + * Must have: + * - first: black (white) real body + * - second: white (black) real body that engulfs the prior real body + * outInteger is positive (1 to 100) when bullish or negative (-1 to -100) when bearish; + * the user should consider that an engulfing must appear in a downtrend if bullish or in an uptrend if bearish, + * while this function does not consider it + */ + outIdx = 0; + do + { + if( ( TA_CANDLECOLOR(i) == 1 && TA_CANDLECOLOR(i-1) == -1 && // white engulfs black + inClose[i] > inOpen[i-1] && inOpen[i] < inClose[i-1] + ) + || + ( TA_CANDLECOLOR(i) == -1 && TA_CANDLECOLOR(i-1) == 1 && // black engulfs white + inOpen[i] > inClose[i-1] && inClose[i] < inOpen[i-1] + ) + ) + outInteger[outIdx++] = TA_CANDLECOLOR(i) * 100; + else + outInteger[outIdx++] = 0; + i++; + } while( i <= endIdx ); + + /* All done. Indicate the output limits and return. */ + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::CdlEngulfing( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inOpen, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cdlEngulfing( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inOpen[], +/* Generated */ float inHigh[], +/* Generated */ float inLow[], +/* Generated */ float inClose[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_CDLENGULFING( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inOpen[], +/* Generated */ const float inHigh[], +/* Generated */ const float inLow[], +/* Generated */ const float inClose[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ int i, outIdx, lookbackTotal; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if(!inOpen||!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInteger ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ lookbackTotal = LOOKBACK_CALL(CDLENGULFING)(); +/* Generated */ if( startIdx < lookbackTotal ) +/* Generated */ startIdx = lookbackTotal; +/* Generated */ if( startIdx > endIdx ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ i = startIdx; +/* Generated */ outIdx = 0; +/* Generated */ do +/* Generated */ { +/* Generated */ if( ( TA_CANDLECOLOR(i) == 1 && TA_CANDLECOLOR(i-1) == -1 && // white engulfs black +/* Generated */ inClose[i] > inOpen[i-1] && inOpen[i] < inClose[i-1] +/* Generated */ ) +/* Generated */ || +/* Generated */ ( TA_CANDLECOLOR(i) == -1 && TA_CANDLECOLOR(i-1) == 1 && // black engulfs white +/* Generated */ inOpen[i] > inClose[i-1] && inClose[i] < inOpen[i-1] +/* Generated */ ) +/* Generated */ ) +/* Generated */ outInteger[outIdx++] = TA_CANDLECOLOR(i) * 100; +/* Generated */ else +/* Generated */ outInteger[outIdx++] = 0; +/* Generated */ i++; +/* Generated */ } while( i <= endIdx ); +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_CDLEVENINGDOJISTAR.c b/src/ta_func/ta_CDLEVENINGDOJISTAR.c new file mode 100644 index 000000000..73f5b6565 --- /dev/null +++ b/src/ta_func/ta_CDLEVENINGDOJISTAR.c @@ -0,0 +1,426 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * AC Angelo Ciceri + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 100304 AC Creation + * + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::CdlEveningDojiStarLookback( double optInPenetration ) /* From 0 to TA_REAL_MAX */ +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int cdlEveningDojiStarLookback( double optInPenetration ) /* From 0 to TA_REAL_MAX */ +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_CDLEVENINGDOJISTAR_Lookback( double optInPenetration ) /* From 0 to TA_REAL_MAX */ +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( optInPenetration == TA_REAL_DEFAULT ) +/* Generated */ optInPenetration = 3.000000e-1; +/* Generated */ else if( (optInPenetration < 0.000000e+0) ||/* Generated */ (optInPenetration > 3.000000e+37) ) +/* Generated */ return -1; +/* Generated */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + UNUSED_VARIABLE(optInPenetration); + + return max( max( TA_CANDLEAVGPERIOD(BodyDoji), TA_CANDLEAVGPERIOD(BodyLong) ), + TA_CANDLEAVGPERIOD(BodyShort) + ) + 2; +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_CDLEVENINGDOJISTAR - Evening Doji Star + * + * Input = Open, High, Low, Close + * Output = int + * + * Optional Parameters + * ------------------- + * optInPenetration:(From 0 to TA_REAL_MAX) + * Percentage of penetration of a candle within another candle + * + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::CdlEveningDojiStar( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inOpen, +/* Generated */ SubArray^ inHigh, +/* Generated */ SubArray^ inLow, +/* Generated */ SubArray^ inClose, +/* Generated */ double optInPenetration, /* From 0 to TA_REAL_MAX */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::CdlEveningDojiStar( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inOpen, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ double optInPenetration, /* From 0 to TA_REAL_MAX */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cdlEveningDojiStar( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inOpen[], +/* Generated */ double inHigh[], +/* Generated */ double inLow[], +/* Generated */ double inClose[], +/* Generated */ double optInPenetration, /* From 0 to TA_REAL_MAX */ +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_CDLEVENINGDOJISTAR( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inOpen[], +/* Generated */ const double inHigh[], +/* Generated */ const double inLow[], +/* Generated */ const double inClose[], +/* Generated */ double optInPenetration, /* From 0 to TA_REAL_MAX */ +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* Insert local variables here. */ + double BodyDojiPeriodTotal, BodyLongPeriodTotal, BodyShortPeriodTotal; + int i, outIdx, BodyDojiTrailingIdx, BodyLongTrailingIdx, BodyShortTrailingIdx, lookbackTotal; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ /* Verify required price component. */ +/* Generated */ if(!inOpen||!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ if( optInPenetration == TA_REAL_DEFAULT ) +/* Generated */ optInPenetration = 3.000000e-1; +/* Generated */ else if( (optInPenetration < 0.000000e+0) ||/* Generated */ (optInPenetration > 3.000000e+37) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInteger ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Identify the minimum number of price bar needed + * to calculate at least one output. + */ + + lookbackTotal = LOOKBACK_CALL(CDLEVENINGDOJISTAR)(optInPenetration); + + /* Move up the start index if there is not + * enough initial data. + */ + if( startIdx < lookbackTotal ) + startIdx = lookbackTotal; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + + /* Do the calculation using tight loops. */ + /* Add-up the initial period, except for the last value. */ + BodyLongPeriodTotal = 0; + BodyDojiPeriodTotal = 0; + BodyShortPeriodTotal = 0; + BodyLongTrailingIdx = startIdx -2 - TA_CANDLEAVGPERIOD(BodyLong); + BodyDojiTrailingIdx = startIdx -1 - TA_CANDLEAVGPERIOD(BodyDoji); + BodyShortTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(BodyShort); + + i = BodyLongTrailingIdx; + while( i < startIdx-2 ) { + BodyLongPeriodTotal += TA_CANDLERANGE( BodyLong, i ); + i++; + } + i = BodyDojiTrailingIdx; + while( i < startIdx-1 ) { + BodyDojiPeriodTotal += TA_CANDLERANGE( BodyDoji, i ); + i++; + } + i = BodyShortTrailingIdx; + while( i < startIdx ) { + BodyShortPeriodTotal += TA_CANDLERANGE( BodyShort, i ); + i++; + } + i = startIdx; + + /* Proceed with the calculation for the requested range. + * Must have: + * - first candle: long white real body + * - second candle: doji gapping up + * - third candle: black real body that moves well within the first candle's real body + * The meaning of "doji" and "long" is specified with TA_SetCandleSettings + * The meaning of "moves well within" is specified with optInPenetration and "moves" should mean the real body should + * not be short ("short" is specified with TA_SetCandleSettings) - Greg Morris wants it to be long, someone else want + * it to be relatively long + * outInteger is negative (-1 to -100): evening star is always bearish; + * the user should consider that an evening star is significant when it appears in an uptrend, + * while this function does not consider the trend + */ + outIdx = 0; + do + { + if( TA_REALBODY(i-2) > TA_CANDLEAVERAGE( BodyLong, BodyLongPeriodTotal, i-2 ) && // 1st: long + TA_CANDLECOLOR(i-2) == 1 && // white + TA_REALBODY(i-1) <= TA_CANDLEAVERAGE( BodyDoji, BodyDojiPeriodTotal, i-1 ) && // 2nd: doji + TA_REALBODYGAPUP(i-1,i-2) && // gapping up + TA_REALBODY(i) > TA_CANDLEAVERAGE( BodyShort, BodyShortPeriodTotal, i ) && // 3rd: longer than short + TA_CANDLECOLOR(i) == -1 && // black real body + inClose[i] < inClose[i-2] - TA_REALBODY(i-2) * optInPenetration // closing well within 1st rb + ) + outInteger[outIdx++] = -100; + else + outInteger[outIdx++] = 0; + /* add the current range and subtract the first range: this is done after the pattern recognition + * when avgPeriod is not 0, that means "compare with the previous candles" (it excludes the current candle) + */ + BodyLongPeriodTotal += TA_CANDLERANGE( BodyLong, i-2 ) - TA_CANDLERANGE( BodyLong, BodyLongTrailingIdx ); + BodyDojiPeriodTotal += TA_CANDLERANGE( BodyDoji, i-1 ) - TA_CANDLERANGE( BodyDoji, BodyDojiTrailingIdx ); + BodyShortPeriodTotal += TA_CANDLERANGE( BodyShort, i ) - TA_CANDLERANGE( BodyShort, BodyShortTrailingIdx ); + i++; + BodyLongTrailingIdx++; + BodyDojiTrailingIdx++; + BodyShortTrailingIdx++; + } while( i <= endIdx ); + + /* All done. Indicate the output limits and return. */ + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::CdlEveningDojiStar( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inOpen, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ double optInPenetration, /* From 0 to TA_REAL_MAX */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cdlEveningDojiStar( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inOpen[], +/* Generated */ float inHigh[], +/* Generated */ float inLow[], +/* Generated */ float inClose[], +/* Generated */ double optInPenetration, /* From 0 to TA_REAL_MAX */ +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_CDLEVENINGDOJISTAR( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inOpen[], +/* Generated */ const float inHigh[], +/* Generated */ const float inLow[], +/* Generated */ const float inClose[], +/* Generated */ double optInPenetration, /* From 0 to TA_REAL_MAX */ +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ double BodyDojiPeriodTotal, BodyLongPeriodTotal, BodyShortPeriodTotal; +/* Generated */ int i, outIdx, BodyDojiTrailingIdx, BodyLongTrailingIdx, BodyShortTrailingIdx, lookbackTotal; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if(!inOpen||!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ if( optInPenetration == TA_REAL_DEFAULT ) +/* Generated */ optInPenetration = 3.000000e-1; +/* Generated */ else if( (optInPenetration < 0.000000e+0) || (optInPenetration > 3.000000e+37) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInteger ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ lookbackTotal = LOOKBACK_CALL(CDLEVENINGDOJISTAR)(optInPenetration); +/* Generated */ if( startIdx < lookbackTotal ) +/* Generated */ startIdx = lookbackTotal; +/* Generated */ if( startIdx > endIdx ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ BodyLongPeriodTotal = 0; +/* Generated */ BodyDojiPeriodTotal = 0; +/* Generated */ BodyShortPeriodTotal = 0; +/* Generated */ BodyLongTrailingIdx = startIdx -2 - TA_CANDLEAVGPERIOD(BodyLong); +/* Generated */ BodyDojiTrailingIdx = startIdx -1 - TA_CANDLEAVGPERIOD(BodyDoji); +/* Generated */ BodyShortTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(BodyShort); +/* Generated */ i = BodyLongTrailingIdx; +/* Generated */ while( i < startIdx-2 ) { +/* Generated */ BodyLongPeriodTotal += TA_CANDLERANGE( BodyLong, i ); +/* Generated */ i++; +/* Generated */ } +/* Generated */ i = BodyDojiTrailingIdx; +/* Generated */ while( i < startIdx-1 ) { +/* Generated */ BodyDojiPeriodTotal += TA_CANDLERANGE( BodyDoji, i ); +/* Generated */ i++; +/* Generated */ } +/* Generated */ i = BodyShortTrailingIdx; +/* Generated */ while( i < startIdx ) { +/* Generated */ BodyShortPeriodTotal += TA_CANDLERANGE( BodyShort, i ); +/* Generated */ i++; +/* Generated */ } +/* Generated */ i = startIdx; +/* Generated */ outIdx = 0; +/* Generated */ do +/* Generated */ { +/* Generated */ if( TA_REALBODY(i-2) > TA_CANDLEAVERAGE( BodyLong, BodyLongPeriodTotal, i-2 ) && // 1st: long +/* Generated */ TA_CANDLECOLOR(i-2) == 1 && // white +/* Generated */ TA_REALBODY(i-1) <= TA_CANDLEAVERAGE( BodyDoji, BodyDojiPeriodTotal, i-1 ) && // 2nd: doji +/* Generated */ TA_REALBODYGAPUP(i-1,i-2) && // gapping up +/* Generated */ TA_REALBODY(i) > TA_CANDLEAVERAGE( BodyShort, BodyShortPeriodTotal, i ) && // 3rd: longer than short +/* Generated */ TA_CANDLECOLOR(i) == -1 && // black real body +/* Generated */ inClose[i] < inClose[i-2] - TA_REALBODY(i-2) * optInPenetration // closing well within 1st rb +/* Generated */ ) +/* Generated */ outInteger[outIdx++] = -100; +/* Generated */ else +/* Generated */ outInteger[outIdx++] = 0; +/* Generated */ BodyLongPeriodTotal += TA_CANDLERANGE( BodyLong, i-2 ) - TA_CANDLERANGE( BodyLong, BodyLongTrailingIdx ); +/* Generated */ BodyDojiPeriodTotal += TA_CANDLERANGE( BodyDoji, i-1 ) - TA_CANDLERANGE( BodyDoji, BodyDojiTrailingIdx ); +/* Generated */ BodyShortPeriodTotal += TA_CANDLERANGE( BodyShort, i ) - TA_CANDLERANGE( BodyShort, BodyShortTrailingIdx ); +/* Generated */ i++; +/* Generated */ BodyLongTrailingIdx++; +/* Generated */ BodyDojiTrailingIdx++; +/* Generated */ BodyShortTrailingIdx++; +/* Generated */ } while( i <= endIdx ); +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_CDLEVENINGSTAR.c b/src/ta_func/ta_CDLEVENINGSTAR.c new file mode 100644 index 000000000..00c623da3 --- /dev/null +++ b/src/ta_func/ta_CDLEVENINGSTAR.c @@ -0,0 +1,412 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * AC Angelo Ciceri + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 100304 AC Creation + * + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::CdlEveningStarLookback( double optInPenetration ) /* From 0 to TA_REAL_MAX */ +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int cdlEveningStarLookback( double optInPenetration ) /* From 0 to TA_REAL_MAX */ +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_CDLEVENINGSTAR_Lookback( double optInPenetration ) /* From 0 to TA_REAL_MAX */ +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( optInPenetration == TA_REAL_DEFAULT ) +/* Generated */ optInPenetration = 3.000000e-1; +/* Generated */ else if( (optInPenetration < 0.000000e+0) ||/* Generated */ (optInPenetration > 3.000000e+37) ) +/* Generated */ return -1; +/* Generated */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + UNUSED_VARIABLE(optInPenetration); + + return max( TA_CANDLEAVGPERIOD(BodyShort), TA_CANDLEAVGPERIOD(BodyLong) ) + 2; +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_CDLEVENINGSTAR - Evening Star + * + * Input = Open, High, Low, Close + * Output = int + * + * Optional Parameters + * ------------------- + * optInPenetration:(From 0 to TA_REAL_MAX) + * Percentage of penetration of a candle within another candle + * + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::CdlEveningStar( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inOpen, +/* Generated */ SubArray^ inHigh, +/* Generated */ SubArray^ inLow, +/* Generated */ SubArray^ inClose, +/* Generated */ double optInPenetration, /* From 0 to TA_REAL_MAX */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::CdlEveningStar( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inOpen, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ double optInPenetration, /* From 0 to TA_REAL_MAX */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cdlEveningStar( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inOpen[], +/* Generated */ double inHigh[], +/* Generated */ double inLow[], +/* Generated */ double inClose[], +/* Generated */ double optInPenetration, /* From 0 to TA_REAL_MAX */ +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_CDLEVENINGSTAR( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inOpen[], +/* Generated */ const double inHigh[], +/* Generated */ const double inLow[], +/* Generated */ const double inClose[], +/* Generated */ double optInPenetration, /* From 0 to TA_REAL_MAX */ +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* Insert local variables here. */ + double BodyShortPeriodTotal, BodyLongPeriodTotal, BodyShortPeriodTotal2; + int i, outIdx, BodyShortTrailingIdx, BodyLongTrailingIdx, lookbackTotal; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ /* Verify required price component. */ +/* Generated */ if(!inOpen||!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ if( optInPenetration == TA_REAL_DEFAULT ) +/* Generated */ optInPenetration = 3.000000e-1; +/* Generated */ else if( (optInPenetration < 0.000000e+0) ||/* Generated */ (optInPenetration > 3.000000e+37) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInteger ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Identify the minimum number of price bar needed + * to calculate at least one output. + */ + + lookbackTotal = LOOKBACK_CALL(CDLEVENINGSTAR)(optInPenetration); + + /* Move up the start index if there is not + * enough initial data. + */ + if( startIdx < lookbackTotal ) + startIdx = lookbackTotal; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + + /* Do the calculation using tight loops. */ + /* Add-up the initial period, except for the last value. */ + BodyLongPeriodTotal = 0; + BodyShortPeriodTotal = 0; + BodyShortPeriodTotal2 = 0; + BodyLongTrailingIdx = startIdx -2 - TA_CANDLEAVGPERIOD(BodyLong); + BodyShortTrailingIdx = startIdx -1 - TA_CANDLEAVGPERIOD(BodyShort); + + i = BodyLongTrailingIdx; + while( i < startIdx-2 ) { + BodyLongPeriodTotal += TA_CANDLERANGE( BodyLong, i ); + i++; + } + i = BodyShortTrailingIdx; + while( i < startIdx-1 ) { + BodyShortPeriodTotal += TA_CANDLERANGE( BodyShort, i ); + BodyShortPeriodTotal2 += TA_CANDLERANGE( BodyShort, i+1 ); + i++; + } + i = startIdx; + + /* Proceed with the calculation for the requested range. + * Must have: + * - first candle: long white real body + * - second candle: star (short real body gapping up) + * - third candle: black real body that moves well within the first candle's real body + * The meaning of "short" and "long" is specified with TA_SetCandleSettings + * The meaning of "moves well within" is specified with optInPenetration and "moves" should mean the real body should + * not be short ("short" is specified with TA_SetCandleSettings) - Greg Morris wants it to be long, someone else want + * it to be relatively long + * outInteger is negative (-1 to -100): evening star is always bearish; + * the user should consider that an evening star is significant when it appears in an uptrend, + * while this function does not consider the trend + */ + outIdx = 0; + do + { + if( TA_REALBODY(i-2) > TA_CANDLEAVERAGE( BodyLong, BodyLongPeriodTotal, i-2 ) && // 1st: long + TA_CANDLECOLOR(i-2) == 1 && // white + TA_REALBODY(i-1) <= TA_CANDLEAVERAGE( BodyShort, BodyShortPeriodTotal, i-1 ) && // 2nd: short + TA_REALBODYGAPUP(i-1,i-2) && // gapping up + TA_REALBODY(i) > TA_CANDLEAVERAGE( BodyShort, BodyShortPeriodTotal2, i ) && // 3rd: longer than short + TA_CANDLECOLOR(i) == -1 && // black real body + inClose[i] < inClose[i-2] - TA_REALBODY(i-2) * optInPenetration // closing well within 1st rb + ) + outInteger[outIdx++] = -100; + else + outInteger[outIdx++] = 0; + /* add the current range and subtract the first range: this is done after the pattern recognition + * when avgPeriod is not 0, that means "compare with the previous candles" (it excludes the current candle) + */ + BodyLongPeriodTotal += TA_CANDLERANGE( BodyLong, i-2 ) - TA_CANDLERANGE( BodyLong, BodyLongTrailingIdx ); + BodyShortPeriodTotal += TA_CANDLERANGE( BodyShort, i-1 ) - TA_CANDLERANGE( BodyShort, BodyShortTrailingIdx ); + BodyShortPeriodTotal2 += TA_CANDLERANGE( BodyShort, i ) - TA_CANDLERANGE( BodyShort, BodyShortTrailingIdx+1 ); + i++; + BodyLongTrailingIdx++; + BodyShortTrailingIdx++; + } while( i <= endIdx ); + + /* All done. Indicate the output limits and return. */ + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::CdlEveningStar( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inOpen, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ double optInPenetration, /* From 0 to TA_REAL_MAX */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cdlEveningStar( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inOpen[], +/* Generated */ float inHigh[], +/* Generated */ float inLow[], +/* Generated */ float inClose[], +/* Generated */ double optInPenetration, /* From 0 to TA_REAL_MAX */ +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_CDLEVENINGSTAR( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inOpen[], +/* Generated */ const float inHigh[], +/* Generated */ const float inLow[], +/* Generated */ const float inClose[], +/* Generated */ double optInPenetration, /* From 0 to TA_REAL_MAX */ +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ double BodyShortPeriodTotal, BodyLongPeriodTotal, BodyShortPeriodTotal2; +/* Generated */ int i, outIdx, BodyShortTrailingIdx, BodyLongTrailingIdx, lookbackTotal; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if(!inOpen||!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ if( optInPenetration == TA_REAL_DEFAULT ) +/* Generated */ optInPenetration = 3.000000e-1; +/* Generated */ else if( (optInPenetration < 0.000000e+0) || (optInPenetration > 3.000000e+37) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInteger ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ lookbackTotal = LOOKBACK_CALL(CDLEVENINGSTAR)(optInPenetration); +/* Generated */ if( startIdx < lookbackTotal ) +/* Generated */ startIdx = lookbackTotal; +/* Generated */ if( startIdx > endIdx ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ BodyLongPeriodTotal = 0; +/* Generated */ BodyShortPeriodTotal = 0; +/* Generated */ BodyShortPeriodTotal2 = 0; +/* Generated */ BodyLongTrailingIdx = startIdx -2 - TA_CANDLEAVGPERIOD(BodyLong); +/* Generated */ BodyShortTrailingIdx = startIdx -1 - TA_CANDLEAVGPERIOD(BodyShort); +/* Generated */ i = BodyLongTrailingIdx; +/* Generated */ while( i < startIdx-2 ) { +/* Generated */ BodyLongPeriodTotal += TA_CANDLERANGE( BodyLong, i ); +/* Generated */ i++; +/* Generated */ } +/* Generated */ i = BodyShortTrailingIdx; +/* Generated */ while( i < startIdx-1 ) { +/* Generated */ BodyShortPeriodTotal += TA_CANDLERANGE( BodyShort, i ); +/* Generated */ BodyShortPeriodTotal2 += TA_CANDLERANGE( BodyShort, i+1 ); +/* Generated */ i++; +/* Generated */ } +/* Generated */ i = startIdx; +/* Generated */ outIdx = 0; +/* Generated */ do +/* Generated */ { +/* Generated */ if( TA_REALBODY(i-2) > TA_CANDLEAVERAGE( BodyLong, BodyLongPeriodTotal, i-2 ) && // 1st: long +/* Generated */ TA_CANDLECOLOR(i-2) == 1 && // white +/* Generated */ TA_REALBODY(i-1) <= TA_CANDLEAVERAGE( BodyShort, BodyShortPeriodTotal, i-1 ) && // 2nd: short +/* Generated */ TA_REALBODYGAPUP(i-1,i-2) && // gapping up +/* Generated */ TA_REALBODY(i) > TA_CANDLEAVERAGE( BodyShort, BodyShortPeriodTotal2, i ) && // 3rd: longer than short +/* Generated */ TA_CANDLECOLOR(i) == -1 && // black real body +/* Generated */ inClose[i] < inClose[i-2] - TA_REALBODY(i-2) * optInPenetration // closing well within 1st rb +/* Generated */ ) +/* Generated */ outInteger[outIdx++] = -100; +/* Generated */ else +/* Generated */ outInteger[outIdx++] = 0; +/* Generated */ BodyLongPeriodTotal += TA_CANDLERANGE( BodyLong, i-2 ) - TA_CANDLERANGE( BodyLong, BodyLongTrailingIdx ); +/* Generated */ BodyShortPeriodTotal += TA_CANDLERANGE( BodyShort, i-1 ) - TA_CANDLERANGE( BodyShort, BodyShortTrailingIdx ); +/* Generated */ BodyShortPeriodTotal2 += TA_CANDLERANGE( BodyShort, i ) - TA_CANDLERANGE( BodyShort, BodyShortTrailingIdx+1 ); +/* Generated */ i++; +/* Generated */ BodyLongTrailingIdx++; +/* Generated */ BodyShortTrailingIdx++; +/* Generated */ } while( i <= endIdx ); +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_CDLGAPSIDESIDEWHITE.c b/src/ta_func/ta_CDLGAPSIDESIDEWHITE.c new file mode 100644 index 000000000..57fe2d853 --- /dev/null +++ b/src/ta_func/ta_CDLGAPSIDESIDEWHITE.c @@ -0,0 +1,385 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * AC Angelo Ciceri + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 020605 AC Creation + * + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::CdlGapSideSideWhiteLookback( void ) +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int cdlGapSideSideWhiteLookback( ) +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_CDLGAPSIDESIDEWHITE_Lookback( void ) +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ /* No parameters to validate. */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + return max( TA_CANDLEAVGPERIOD(Near), TA_CANDLEAVGPERIOD(Equal) ) + 2; +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_CDLGAPSIDESIDEWHITE - Up/Down-gap side-by-side white lines + * + * Input = Open, High, Low, Close + * Output = int + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::CdlGapSideSideWhite( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inOpen, +/* Generated */ SubArray^ inHigh, +/* Generated */ SubArray^ inLow, +/* Generated */ SubArray^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::CdlGapSideSideWhite( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inOpen, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cdlGapSideSideWhite( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inOpen[], +/* Generated */ double inHigh[], +/* Generated */ double inLow[], +/* Generated */ double inClose[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_CDLGAPSIDESIDEWHITE( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inOpen[], +/* Generated */ const double inHigh[], +/* Generated */ const double inLow[], +/* Generated */ const double inClose[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* Insert local variables here. */ + double NearPeriodTotal, EqualPeriodTotal; + int i, outIdx, NearTrailingIdx, EqualTrailingIdx, lookbackTotal; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ /* Verify required price component. */ +/* Generated */ if(!inOpen||!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInteger ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Identify the minimum number of price bar needed + * to calculate at least one output. + */ + + lookbackTotal = LOOKBACK_CALL(CDLGAPSIDESIDEWHITE)(); + + /* Move up the start index if there is not + * enough initial data. + */ + if( startIdx < lookbackTotal ) + startIdx = lookbackTotal; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + + /* Do the calculation using tight loops. */ + /* Add-up the initial period, except for the last value. */ + NearPeriodTotal = 0; + EqualPeriodTotal = 0; + NearTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(Near); + EqualTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(Equal); + + i = NearTrailingIdx; + while( i < startIdx ) { + NearPeriodTotal += TA_CANDLERANGE( Near, i-1 ); + i++; + } + i = EqualTrailingIdx; + while( i < startIdx ) { + EqualPeriodTotal += TA_CANDLERANGE( Equal, i-1 ); + i++; + } + i = startIdx; + + /* Proceed with the calculation for the requested range. + * Must have: + * - upside or downside gap (between the bodies) + * - first candle after the window: white candlestick + * - second candle after the window: white candlestick with similar size (near the same) and about the same + * open (equal) of the previous candle + * - the second candle does not close the window + * The meaning of "near" and "equal" is specified with TA_SetCandleSettings + * outInteger is positive (1 to 100) or negative (-1 to -100): the user should consider that upside + * or downside gap side-by-side white lines is significant when it appears in a trend, while this function + * does not consider the trend + */ + outIdx = 0; + do + { + if( + ( // upside or downside gap between the 1st candle and both the next 2 candles + ( TA_REALBODYGAPUP(i-1,i-2) && TA_REALBODYGAPUP(i,i-2) ) + || + ( TA_REALBODYGAPDOWN(i-1,i-2) && TA_REALBODYGAPDOWN(i,i-2) ) + ) && + TA_CANDLECOLOR(i-1) == 1 && // 2nd: white + TA_CANDLECOLOR(i) == 1 && // 3rd: white + TA_REALBODY(i) >= TA_REALBODY(i-1) - TA_CANDLEAVERAGE( Near, NearPeriodTotal, i-1 ) && // same size 2 and 3 + TA_REALBODY(i) <= TA_REALBODY(i-1) + TA_CANDLEAVERAGE( Near, NearPeriodTotal, i-1 ) && + inOpen[i] >= inOpen[i-1] - TA_CANDLEAVERAGE( Equal, EqualPeriodTotal, i-1 ) && // same open 2 and 3 + inOpen[i] <= inOpen[i-1] + TA_CANDLEAVERAGE( Equal, EqualPeriodTotal, i-1 ) + ) + outInteger[outIdx++] = ( TA_REALBODYGAPUP(i-1,i-2) ? 100 : -100 ); + else + outInteger[outIdx++] = 0; + /* add the current range and subtract the first range: this is done after the pattern recognition + * when avgPeriod is not 0, that means "compare with the previous candles" (it excludes the current candle) + */ + NearPeriodTotal += TA_CANDLERANGE( Near, i-1 ) - TA_CANDLERANGE( Near, NearTrailingIdx-1 ); + EqualPeriodTotal += TA_CANDLERANGE( Equal, i-1 ) - TA_CANDLERANGE( Equal, EqualTrailingIdx-1 ); + i++; + NearTrailingIdx++; + EqualTrailingIdx++; + } while( i <= endIdx ); + + /* All done. Indicate the output limits and return. */ + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::CdlGapSideSideWhite( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inOpen, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cdlGapSideSideWhite( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inOpen[], +/* Generated */ float inHigh[], +/* Generated */ float inLow[], +/* Generated */ float inClose[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_CDLGAPSIDESIDEWHITE( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inOpen[], +/* Generated */ const float inHigh[], +/* Generated */ const float inLow[], +/* Generated */ const float inClose[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ double NearPeriodTotal, EqualPeriodTotal; +/* Generated */ int i, outIdx, NearTrailingIdx, EqualTrailingIdx, lookbackTotal; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if(!inOpen||!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInteger ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ lookbackTotal = LOOKBACK_CALL(CDLGAPSIDESIDEWHITE)(); +/* Generated */ if( startIdx < lookbackTotal ) +/* Generated */ startIdx = lookbackTotal; +/* Generated */ if( startIdx > endIdx ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ NearPeriodTotal = 0; +/* Generated */ EqualPeriodTotal = 0; +/* Generated */ NearTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(Near); +/* Generated */ EqualTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(Equal); +/* Generated */ i = NearTrailingIdx; +/* Generated */ while( i < startIdx ) { +/* Generated */ NearPeriodTotal += TA_CANDLERANGE( Near, i-1 ); +/* Generated */ i++; +/* Generated */ } +/* Generated */ i = EqualTrailingIdx; +/* Generated */ while( i < startIdx ) { +/* Generated */ EqualPeriodTotal += TA_CANDLERANGE( Equal, i-1 ); +/* Generated */ i++; +/* Generated */ } +/* Generated */ i = startIdx; +/* Generated */ outIdx = 0; +/* Generated */ do +/* Generated */ { +/* Generated */ if( +/* Generated */ ( // upside or downside gap between the 1st candle and both the next 2 candles +/* Generated */ ( TA_REALBODYGAPUP(i-1,i-2) && TA_REALBODYGAPUP(i,i-2) ) +/* Generated */ || +/* Generated */ ( TA_REALBODYGAPDOWN(i-1,i-2) && TA_REALBODYGAPDOWN(i,i-2) ) +/* Generated */ ) && +/* Generated */ TA_CANDLECOLOR(i-1) == 1 && // 2nd: white +/* Generated */ TA_CANDLECOLOR(i) == 1 && // 3rd: white +/* Generated */ TA_REALBODY(i) >= TA_REALBODY(i-1) - TA_CANDLEAVERAGE( Near, NearPeriodTotal, i-1 ) && // same size 2 and 3 +/* Generated */ TA_REALBODY(i) <= TA_REALBODY(i-1) + TA_CANDLEAVERAGE( Near, NearPeriodTotal, i-1 ) && +/* Generated */ inOpen[i] >= inOpen[i-1] - TA_CANDLEAVERAGE( Equal, EqualPeriodTotal, i-1 ) && // same open 2 and 3 +/* Generated */ inOpen[i] <= inOpen[i-1] + TA_CANDLEAVERAGE( Equal, EqualPeriodTotal, i-1 ) +/* Generated */ ) +/* Generated */ outInteger[outIdx++] = ( TA_REALBODYGAPUP(i-1,i-2) ? 100 : -100 ); +/* Generated */ else +/* Generated */ outInteger[outIdx++] = 0; +/* Generated */ NearPeriodTotal += TA_CANDLERANGE( Near, i-1 ) - TA_CANDLERANGE( Near, NearTrailingIdx-1 ); +/* Generated */ EqualPeriodTotal += TA_CANDLERANGE( Equal, i-1 ) - TA_CANDLERANGE( Equal, EqualTrailingIdx-1 ); +/* Generated */ i++; +/* Generated */ NearTrailingIdx++; +/* Generated */ EqualTrailingIdx++; +/* Generated */ } while( i <= endIdx ); +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_CDLGRAVESTONEDOJI.c b/src/ta_func/ta_CDLGRAVESTONEDOJI.c new file mode 100644 index 000000000..16992fb42 --- /dev/null +++ b/src/ta_func/ta_CDLGRAVESTONEDOJI.c @@ -0,0 +1,365 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * AC Angelo Ciceri + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 011505 AC Creation + * + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::CdlGravestoneDojiLookback( void ) +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int cdlGravestoneDojiLookback( ) +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_CDLGRAVESTONEDOJI_Lookback( void ) +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ /* No parameters to validate. */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + return max( TA_CANDLEAVGPERIOD(BodyDoji), TA_CANDLEAVGPERIOD(ShadowVeryShort) ); +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_CDLGRAVESTONEDOJI - Gravestone Doji + * + * Input = Open, High, Low, Close + * Output = int + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::CdlGravestoneDoji( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inOpen, +/* Generated */ SubArray^ inHigh, +/* Generated */ SubArray^ inLow, +/* Generated */ SubArray^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::CdlGravestoneDoji( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inOpen, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cdlGravestoneDoji( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inOpen[], +/* Generated */ double inHigh[], +/* Generated */ double inLow[], +/* Generated */ double inClose[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_CDLGRAVESTONEDOJI( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inOpen[], +/* Generated */ const double inHigh[], +/* Generated */ const double inLow[], +/* Generated */ const double inClose[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* Insert local variables here. */ + double BodyDojiPeriodTotal, ShadowVeryShortPeriodTotal; + int i, outIdx, BodyDojiTrailingIdx, ShadowVeryShortTrailingIdx, lookbackTotal; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ /* Verify required price component. */ +/* Generated */ if(!inOpen||!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInteger ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Identify the minimum number of price bar needed + * to calculate at least one output. + */ + + lookbackTotal = LOOKBACK_CALL(CDLGRAVESTONEDOJI)(); + + /* Move up the start index if there is not + * enough initial data. + */ + if( startIdx < lookbackTotal ) + startIdx = lookbackTotal; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + + /* Do the calculation using tight loops. */ + /* Add-up the initial period, except for the last value. */ + BodyDojiPeriodTotal = 0; + BodyDojiTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(BodyDoji); + ShadowVeryShortPeriodTotal = 0; + ShadowVeryShortTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(ShadowVeryShort); + + i = BodyDojiTrailingIdx; + while( i < startIdx ) { + BodyDojiPeriodTotal += TA_CANDLERANGE( BodyDoji, i ); + i++; + } + i = ShadowVeryShortTrailingIdx; + while( i < startIdx ) { + ShadowVeryShortPeriodTotal += TA_CANDLERANGE( ShadowVeryShort, i ); + i++; + } + + /* Proceed with the calculation for the requested range. + * + * Must have: + * - doji body + * - open and close at the low of the day = no or very short lower shadow + * - upper shadow (to distinguish from other dojis, here upper shadow should not be very short) + * The meaning of "doji" and "very short" is specified with TA_SetCandleSettings + * outInteger is always positive (1 to 100) but this does not mean it is bullish: gravestone doji must be considered + * relatively to the trend + */ + outIdx = 0; + do + { + if( TA_REALBODY(i) <= TA_CANDLEAVERAGE( BodyDoji, BodyDojiPeriodTotal, i ) && + TA_LOWERSHADOW(i) < TA_CANDLEAVERAGE( ShadowVeryShort, ShadowVeryShortPeriodTotal, i ) && + TA_UPPERSHADOW(i) > TA_CANDLEAVERAGE( ShadowVeryShort, ShadowVeryShortPeriodTotal, i ) + ) + outInteger[outIdx++] = 100; + else + outInteger[outIdx++] = 0; + /* add the current range and subtract the first range: this is done after the pattern recognition + * when avgPeriod is not 0, that means "compare with the previous candles" (it excludes the current candle) + */ + BodyDojiPeriodTotal += TA_CANDLERANGE( BodyDoji, i ) - TA_CANDLERANGE( BodyDoji, BodyDojiTrailingIdx ); + ShadowVeryShortPeriodTotal += TA_CANDLERANGE( ShadowVeryShort, i ) + - TA_CANDLERANGE( ShadowVeryShort, ShadowVeryShortTrailingIdx ); + i++; + BodyDojiTrailingIdx++; + ShadowVeryShortTrailingIdx++; + } while( i <= endIdx ); + + /* All done. Indicate the output limits and return. */ + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::CdlGravestoneDoji( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inOpen, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cdlGravestoneDoji( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inOpen[], +/* Generated */ float inHigh[], +/* Generated */ float inLow[], +/* Generated */ float inClose[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_CDLGRAVESTONEDOJI( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inOpen[], +/* Generated */ const float inHigh[], +/* Generated */ const float inLow[], +/* Generated */ const float inClose[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ double BodyDojiPeriodTotal, ShadowVeryShortPeriodTotal; +/* Generated */ int i, outIdx, BodyDojiTrailingIdx, ShadowVeryShortTrailingIdx, lookbackTotal; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if(!inOpen||!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInteger ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ lookbackTotal = LOOKBACK_CALL(CDLGRAVESTONEDOJI)(); +/* Generated */ if( startIdx < lookbackTotal ) +/* Generated */ startIdx = lookbackTotal; +/* Generated */ if( startIdx > endIdx ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ BodyDojiPeriodTotal = 0; +/* Generated */ BodyDojiTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(BodyDoji); +/* Generated */ ShadowVeryShortPeriodTotal = 0; +/* Generated */ ShadowVeryShortTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(ShadowVeryShort); +/* Generated */ i = BodyDojiTrailingIdx; +/* Generated */ while( i < startIdx ) { +/* Generated */ BodyDojiPeriodTotal += TA_CANDLERANGE( BodyDoji, i ); +/* Generated */ i++; +/* Generated */ } +/* Generated */ i = ShadowVeryShortTrailingIdx; +/* Generated */ while( i < startIdx ) { +/* Generated */ ShadowVeryShortPeriodTotal += TA_CANDLERANGE( ShadowVeryShort, i ); +/* Generated */ i++; +/* Generated */ } +/* Generated */ outIdx = 0; +/* Generated */ do +/* Generated */ { +/* Generated */ if( TA_REALBODY(i) <= TA_CANDLEAVERAGE( BodyDoji, BodyDojiPeriodTotal, i ) && +/* Generated */ TA_LOWERSHADOW(i) < TA_CANDLEAVERAGE( ShadowVeryShort, ShadowVeryShortPeriodTotal, i ) && +/* Generated */ TA_UPPERSHADOW(i) > TA_CANDLEAVERAGE( ShadowVeryShort, ShadowVeryShortPeriodTotal, i ) +/* Generated */ ) +/* Generated */ outInteger[outIdx++] = 100; +/* Generated */ else +/* Generated */ outInteger[outIdx++] = 0; +/* Generated */ BodyDojiPeriodTotal += TA_CANDLERANGE( BodyDoji, i ) - TA_CANDLERANGE( BodyDoji, BodyDojiTrailingIdx ); +/* Generated */ ShadowVeryShortPeriodTotal += TA_CANDLERANGE( ShadowVeryShort, i ) +/* Generated */ - TA_CANDLERANGE( ShadowVeryShort, ShadowVeryShortTrailingIdx ); +/* Generated */ i++; +/* Generated */ BodyDojiTrailingIdx++; +/* Generated */ ShadowVeryShortTrailingIdx++; +/* Generated */ } while( i <= endIdx ); +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_CDLHAMMER.c b/src/ta_func/ta_CDLHAMMER.c new file mode 100644 index 000000000..c46950efc --- /dev/null +++ b/src/ta_func/ta_CDLHAMMER.c @@ -0,0 +1,414 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * AC Angelo Ciceri + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 102304 AC Creation + * + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::CdlHammerLookback( void ) +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int cdlHammerLookback( ) +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_CDLHAMMER_Lookback( void ) +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ /* No parameters to validate. */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + return max( max( max( TA_CANDLEAVGPERIOD(BodyShort), TA_CANDLEAVGPERIOD(ShadowLong) ), + TA_CANDLEAVGPERIOD(ShadowVeryShort) ), + TA_CANDLEAVGPERIOD(Near) + ) + 1; +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_CDLHAMMER - Hammer + * + * Input = Open, High, Low, Close + * Output = int + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::CdlHammer( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inOpen, +/* Generated */ SubArray^ inHigh, +/* Generated */ SubArray^ inLow, +/* Generated */ SubArray^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::CdlHammer( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inOpen, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cdlHammer( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inOpen[], +/* Generated */ double inHigh[], +/* Generated */ double inLow[], +/* Generated */ double inClose[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_CDLHAMMER( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inOpen[], +/* Generated */ const double inHigh[], +/* Generated */ const double inLow[], +/* Generated */ const double inClose[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* Insert local variables here. */ + double BodyPeriodTotal, ShadowLongPeriodTotal, ShadowVeryShortPeriodTotal, NearPeriodTotal; + int i, outIdx, BodyTrailingIdx, ShadowLongTrailingIdx, ShadowVeryShortTrailingIdx, NearTrailingIdx, lookbackTotal; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ /* Verify required price component. */ +/* Generated */ if(!inOpen||!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInteger ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Identify the minimum number of price bar needed + * to calculate at least one output. + */ + + lookbackTotal = LOOKBACK_CALL(CDLHAMMER)(); + + /* Move up the start index if there is not + * enough initial data. + */ + if( startIdx < lookbackTotal ) + startIdx = lookbackTotal; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + + /* Do the calculation using tight loops. */ + /* Add-up the initial period, except for the last value. */ + BodyPeriodTotal = 0; + BodyTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(BodyShort); + ShadowLongPeriodTotal = 0; + ShadowLongTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(ShadowLong); + ShadowVeryShortPeriodTotal = 0; + ShadowVeryShortTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(ShadowVeryShort); + NearPeriodTotal = 0; + NearTrailingIdx = startIdx -1 - TA_CANDLEAVGPERIOD(Near); + + i = BodyTrailingIdx; + while( i < startIdx ) { + BodyPeriodTotal += TA_CANDLERANGE( BodyShort, i ); + i++; + } + i = ShadowLongTrailingIdx; + while( i < startIdx ) { + ShadowLongPeriodTotal += TA_CANDLERANGE( ShadowLong, i ); + i++; + } + i = ShadowVeryShortTrailingIdx; + while( i < startIdx ) { + ShadowVeryShortPeriodTotal += TA_CANDLERANGE( ShadowVeryShort, i ); + i++; + } + i = NearTrailingIdx; + while( i < startIdx-1 ) { + NearPeriodTotal += TA_CANDLERANGE( Near, i ); + i++; + } + i = startIdx; + + /* Proceed with the calculation for the requested range. + * Must have: + * - small real body + * - long lower shadow + * - no, or very short, upper shadow + * - body below or near the lows of the previous candle + * The meaning of "short", "long" and "near the lows" is specified with TA_SetCandleSettings; + * outInteger is positive (1 to 100): hammer is always bullish; + * the user should consider that a hammer must appear in a downtrend, while this function does not consider it + */ + outIdx = 0; + do + { + if( TA_REALBODY(i) < TA_CANDLEAVERAGE( BodyShort, BodyPeriodTotal, i ) && // small rb + TA_LOWERSHADOW(i) > TA_CANDLEAVERAGE( ShadowLong, ShadowLongPeriodTotal, i ) && // long lower shadow + TA_UPPERSHADOW(i) < TA_CANDLEAVERAGE( ShadowVeryShort, ShadowVeryShortPeriodTotal, i ) && // very short upper shadow + min( inClose[i], inOpen[i] ) <= inLow[i-1] + TA_CANDLEAVERAGE( Near, NearPeriodTotal, i-1 ) // rb near the prior candle's lows + ) + outInteger[outIdx++] = 100; + else + outInteger[outIdx++] = 0; + /* add the current range and subtract the first range: this is done after the pattern recognition + * when avgPeriod is not 0, that means "compare with the previous candles" (it excludes the current candle) + */ + BodyPeriodTotal += TA_CANDLERANGE( BodyShort, i ) + - TA_CANDLERANGE( BodyShort, BodyTrailingIdx ); + ShadowLongPeriodTotal += TA_CANDLERANGE( ShadowLong, i ) + - TA_CANDLERANGE( ShadowLong, ShadowLongTrailingIdx ); + ShadowVeryShortPeriodTotal += TA_CANDLERANGE( ShadowVeryShort, i ) + - TA_CANDLERANGE( ShadowVeryShort, ShadowVeryShortTrailingIdx ); + NearPeriodTotal += TA_CANDLERANGE( Near, i-1 ) + - TA_CANDLERANGE( Near, NearTrailingIdx ); + i++; + BodyTrailingIdx++; + ShadowLongTrailingIdx++; + ShadowVeryShortTrailingIdx++; + NearTrailingIdx++; + } while( i <= endIdx ); + + /* All done. Indicate the output limits and return. */ + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::CdlHammer( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inOpen, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cdlHammer( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inOpen[], +/* Generated */ float inHigh[], +/* Generated */ float inLow[], +/* Generated */ float inClose[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_CDLHAMMER( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inOpen[], +/* Generated */ const float inHigh[], +/* Generated */ const float inLow[], +/* Generated */ const float inClose[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ double BodyPeriodTotal, ShadowLongPeriodTotal, ShadowVeryShortPeriodTotal, NearPeriodTotal; +/* Generated */ int i, outIdx, BodyTrailingIdx, ShadowLongTrailingIdx, ShadowVeryShortTrailingIdx, NearTrailingIdx, lookbackTotal; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if(!inOpen||!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInteger ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ lookbackTotal = LOOKBACK_CALL(CDLHAMMER)(); +/* Generated */ if( startIdx < lookbackTotal ) +/* Generated */ startIdx = lookbackTotal; +/* Generated */ if( startIdx > endIdx ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ BodyPeriodTotal = 0; +/* Generated */ BodyTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(BodyShort); +/* Generated */ ShadowLongPeriodTotal = 0; +/* Generated */ ShadowLongTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(ShadowLong); +/* Generated */ ShadowVeryShortPeriodTotal = 0; +/* Generated */ ShadowVeryShortTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(ShadowVeryShort); +/* Generated */ NearPeriodTotal = 0; +/* Generated */ NearTrailingIdx = startIdx -1 - TA_CANDLEAVGPERIOD(Near); +/* Generated */ i = BodyTrailingIdx; +/* Generated */ while( i < startIdx ) { +/* Generated */ BodyPeriodTotal += TA_CANDLERANGE( BodyShort, i ); +/* Generated */ i++; +/* Generated */ } +/* Generated */ i = ShadowLongTrailingIdx; +/* Generated */ while( i < startIdx ) { +/* Generated */ ShadowLongPeriodTotal += TA_CANDLERANGE( ShadowLong, i ); +/* Generated */ i++; +/* Generated */ } +/* Generated */ i = ShadowVeryShortTrailingIdx; +/* Generated */ while( i < startIdx ) { +/* Generated */ ShadowVeryShortPeriodTotal += TA_CANDLERANGE( ShadowVeryShort, i ); +/* Generated */ i++; +/* Generated */ } +/* Generated */ i = NearTrailingIdx; +/* Generated */ while( i < startIdx-1 ) { +/* Generated */ NearPeriodTotal += TA_CANDLERANGE( Near, i ); +/* Generated */ i++; +/* Generated */ } +/* Generated */ i = startIdx; +/* Generated */ outIdx = 0; +/* Generated */ do +/* Generated */ { +/* Generated */ if( TA_REALBODY(i) < TA_CANDLEAVERAGE( BodyShort, BodyPeriodTotal, i ) && // small rb +/* Generated */ TA_LOWERSHADOW(i) > TA_CANDLEAVERAGE( ShadowLong, ShadowLongPeriodTotal, i ) && // long lower shadow +/* Generated */ TA_UPPERSHADOW(i) < TA_CANDLEAVERAGE( ShadowVeryShort, ShadowVeryShortPeriodTotal, i ) && // very short upper shadow +/* Generated */ min( inClose[i], inOpen[i] ) <= inLow[i-1] + TA_CANDLEAVERAGE( Near, NearPeriodTotal, i-1 ) // rb near the prior candle's lows +/* Generated */ ) +/* Generated */ outInteger[outIdx++] = 100; +/* Generated */ else +/* Generated */ outInteger[outIdx++] = 0; +/* Generated */ BodyPeriodTotal += TA_CANDLERANGE( BodyShort, i ) +/* Generated */ - TA_CANDLERANGE( BodyShort, BodyTrailingIdx ); +/* Generated */ ShadowLongPeriodTotal += TA_CANDLERANGE( ShadowLong, i ) +/* Generated */ - TA_CANDLERANGE( ShadowLong, ShadowLongTrailingIdx ); +/* Generated */ ShadowVeryShortPeriodTotal += TA_CANDLERANGE( ShadowVeryShort, i ) +/* Generated */ - TA_CANDLERANGE( ShadowVeryShort, ShadowVeryShortTrailingIdx ); +/* Generated */ NearPeriodTotal += TA_CANDLERANGE( Near, i-1 ) +/* Generated */ - TA_CANDLERANGE( Near, NearTrailingIdx ); +/* Generated */ i++; +/* Generated */ BodyTrailingIdx++; +/* Generated */ ShadowLongTrailingIdx++; +/* Generated */ ShadowVeryShortTrailingIdx++; +/* Generated */ NearTrailingIdx++; +/* Generated */ } while( i <= endIdx ); +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_CDLHANGINGMAN.c b/src/ta_func/ta_CDLHANGINGMAN.c new file mode 100644 index 000000000..866f7a11a --- /dev/null +++ b/src/ta_func/ta_CDLHANGINGMAN.c @@ -0,0 +1,414 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * AC Angelo Ciceri + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 102304 AC Creation + * + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::CdlHangingManLookback( void ) +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int cdlHangingManLookback( ) +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_CDLHANGINGMAN_Lookback( void ) +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ /* No parameters to validate. */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + return max( max( max( TA_CANDLEAVGPERIOD(BodyShort), TA_CANDLEAVGPERIOD(ShadowLong) ), + TA_CANDLEAVGPERIOD(ShadowVeryShort) ), + TA_CANDLEAVGPERIOD(Near) + ) + 1; +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_CDLHANGINGMAN - Hanging Man + * + * Input = Open, High, Low, Close + * Output = int + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::CdlHangingMan( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inOpen, +/* Generated */ SubArray^ inHigh, +/* Generated */ SubArray^ inLow, +/* Generated */ SubArray^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::CdlHangingMan( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inOpen, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cdlHangingMan( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inOpen[], +/* Generated */ double inHigh[], +/* Generated */ double inLow[], +/* Generated */ double inClose[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_CDLHANGINGMAN( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inOpen[], +/* Generated */ const double inHigh[], +/* Generated */ const double inLow[], +/* Generated */ const double inClose[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* Insert local variables here. */ + double BodyPeriodTotal, ShadowLongPeriodTotal, ShadowVeryShortPeriodTotal, NearPeriodTotal; + int i, outIdx, BodyTrailingIdx, ShadowLongTrailingIdx, ShadowVeryShortTrailingIdx, NearTrailingIdx, lookbackTotal; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ /* Verify required price component. */ +/* Generated */ if(!inOpen||!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInteger ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Identify the minimum number of price bar needed + * to calculate at least one output. + */ + + lookbackTotal = LOOKBACK_CALL(CDLHANGINGMAN)(); + + /* Move up the start index if there is not + * enough initial data. + */ + if( startIdx < lookbackTotal ) + startIdx = lookbackTotal; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + + /* Do the calculation using tight loops. */ + /* Add-up the initial period, except for the last value. */ + BodyPeriodTotal = 0; + BodyTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(BodyShort); + ShadowLongPeriodTotal = 0; + ShadowLongTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(ShadowLong); + ShadowVeryShortPeriodTotal = 0; + ShadowVeryShortTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(ShadowVeryShort); + NearPeriodTotal = 0; + NearTrailingIdx = startIdx -1 - TA_CANDLEAVGPERIOD(Near); + + i = BodyTrailingIdx; + while( i < startIdx ) { + BodyPeriodTotal += TA_CANDLERANGE( BodyShort, i ); + i++; + } + i = ShadowLongTrailingIdx; + while( i < startIdx ) { + ShadowLongPeriodTotal += TA_CANDLERANGE( ShadowLong, i ); + i++; + } + i = ShadowVeryShortTrailingIdx; + while( i < startIdx ) { + ShadowVeryShortPeriodTotal += TA_CANDLERANGE( ShadowVeryShort, i ); + i++; + } + i = NearTrailingIdx; + while( i < startIdx-1 ) { + NearPeriodTotal += TA_CANDLERANGE( Near, i ); + i++; + } + i = startIdx; + + /* Proceed with the calculation for the requested range. + * Must have: + * - small real body + * - long lower shadow + * - no, or very short, upper shadow + * - body above or near the highs of the previous candle + * The meaning of "short", "long" and "near the highs" is specified with TA_SetCandleSettings; + * outInteger is negative (-1 to -100): hanging man is always bearish; + * the user should consider that a hanging man must appear in an uptrend, while this function does not consider it + */ + outIdx = 0; + do + { + if( TA_REALBODY(i) < TA_CANDLEAVERAGE( BodyShort, BodyPeriodTotal, i ) && // small rb + TA_LOWERSHADOW(i) > TA_CANDLEAVERAGE( ShadowLong, ShadowLongPeriodTotal, i ) && // long lower shadow + TA_UPPERSHADOW(i) < TA_CANDLEAVERAGE( ShadowVeryShort, ShadowVeryShortPeriodTotal, i ) && // very short upper shadow + min( inClose[i], inOpen[i] ) >= inHigh[i-1] - TA_CANDLEAVERAGE( Near, NearPeriodTotal, i-1 ) // rb near the prior candle's highs + ) + outInteger[outIdx++] = -100; + else + outInteger[outIdx++] = 0; + /* add the current range and subtract the first range: this is done after the pattern recognition + * when avgPeriod is not 0, that means "compare with the previous candles" (it excludes the current candle) + */ + BodyPeriodTotal += TA_CANDLERANGE( BodyShort, i ) + - TA_CANDLERANGE( BodyShort, BodyTrailingIdx ); + ShadowLongPeriodTotal += TA_CANDLERANGE( ShadowLong, i ) + - TA_CANDLERANGE( ShadowLong, ShadowLongTrailingIdx ); + ShadowVeryShortPeriodTotal += TA_CANDLERANGE( ShadowVeryShort, i ) + - TA_CANDLERANGE( ShadowVeryShort, ShadowVeryShortTrailingIdx ); + NearPeriodTotal += TA_CANDLERANGE( Near, i-1 ) + - TA_CANDLERANGE( Near, NearTrailingIdx ); + i++; + BodyTrailingIdx++; + ShadowLongTrailingIdx++; + ShadowVeryShortTrailingIdx++; + NearTrailingIdx++; + } while( i <= endIdx ); + + /* All done. Indicate the output limits and return. */ + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::CdlHangingMan( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inOpen, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cdlHangingMan( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inOpen[], +/* Generated */ float inHigh[], +/* Generated */ float inLow[], +/* Generated */ float inClose[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_CDLHANGINGMAN( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inOpen[], +/* Generated */ const float inHigh[], +/* Generated */ const float inLow[], +/* Generated */ const float inClose[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ double BodyPeriodTotal, ShadowLongPeriodTotal, ShadowVeryShortPeriodTotal, NearPeriodTotal; +/* Generated */ int i, outIdx, BodyTrailingIdx, ShadowLongTrailingIdx, ShadowVeryShortTrailingIdx, NearTrailingIdx, lookbackTotal; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if(!inOpen||!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInteger ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ lookbackTotal = LOOKBACK_CALL(CDLHANGINGMAN)(); +/* Generated */ if( startIdx < lookbackTotal ) +/* Generated */ startIdx = lookbackTotal; +/* Generated */ if( startIdx > endIdx ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ BodyPeriodTotal = 0; +/* Generated */ BodyTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(BodyShort); +/* Generated */ ShadowLongPeriodTotal = 0; +/* Generated */ ShadowLongTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(ShadowLong); +/* Generated */ ShadowVeryShortPeriodTotal = 0; +/* Generated */ ShadowVeryShortTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(ShadowVeryShort); +/* Generated */ NearPeriodTotal = 0; +/* Generated */ NearTrailingIdx = startIdx -1 - TA_CANDLEAVGPERIOD(Near); +/* Generated */ i = BodyTrailingIdx; +/* Generated */ while( i < startIdx ) { +/* Generated */ BodyPeriodTotal += TA_CANDLERANGE( BodyShort, i ); +/* Generated */ i++; +/* Generated */ } +/* Generated */ i = ShadowLongTrailingIdx; +/* Generated */ while( i < startIdx ) { +/* Generated */ ShadowLongPeriodTotal += TA_CANDLERANGE( ShadowLong, i ); +/* Generated */ i++; +/* Generated */ } +/* Generated */ i = ShadowVeryShortTrailingIdx; +/* Generated */ while( i < startIdx ) { +/* Generated */ ShadowVeryShortPeriodTotal += TA_CANDLERANGE( ShadowVeryShort, i ); +/* Generated */ i++; +/* Generated */ } +/* Generated */ i = NearTrailingIdx; +/* Generated */ while( i < startIdx-1 ) { +/* Generated */ NearPeriodTotal += TA_CANDLERANGE( Near, i ); +/* Generated */ i++; +/* Generated */ } +/* Generated */ i = startIdx; +/* Generated */ outIdx = 0; +/* Generated */ do +/* Generated */ { +/* Generated */ if( TA_REALBODY(i) < TA_CANDLEAVERAGE( BodyShort, BodyPeriodTotal, i ) && // small rb +/* Generated */ TA_LOWERSHADOW(i) > TA_CANDLEAVERAGE( ShadowLong, ShadowLongPeriodTotal, i ) && // long lower shadow +/* Generated */ TA_UPPERSHADOW(i) < TA_CANDLEAVERAGE( ShadowVeryShort, ShadowVeryShortPeriodTotal, i ) && // very short upper shadow +/* Generated */ min( inClose[i], inOpen[i] ) >= inHigh[i-1] - TA_CANDLEAVERAGE( Near, NearPeriodTotal, i-1 ) // rb near the prior candle's highs +/* Generated */ ) +/* Generated */ outInteger[outIdx++] = -100; +/* Generated */ else +/* Generated */ outInteger[outIdx++] = 0; +/* Generated */ BodyPeriodTotal += TA_CANDLERANGE( BodyShort, i ) +/* Generated */ - TA_CANDLERANGE( BodyShort, BodyTrailingIdx ); +/* Generated */ ShadowLongPeriodTotal += TA_CANDLERANGE( ShadowLong, i ) +/* Generated */ - TA_CANDLERANGE( ShadowLong, ShadowLongTrailingIdx ); +/* Generated */ ShadowVeryShortPeriodTotal += TA_CANDLERANGE( ShadowVeryShort, i ) +/* Generated */ - TA_CANDLERANGE( ShadowVeryShort, ShadowVeryShortTrailingIdx ); +/* Generated */ NearPeriodTotal += TA_CANDLERANGE( Near, i-1 ) +/* Generated */ - TA_CANDLERANGE( Near, NearTrailingIdx ); +/* Generated */ i++; +/* Generated */ BodyTrailingIdx++; +/* Generated */ ShadowLongTrailingIdx++; +/* Generated */ ShadowVeryShortTrailingIdx++; +/* Generated */ NearTrailingIdx++; +/* Generated */ } while( i <= endIdx ); +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_CDLHARAMI.c b/src/ta_func/ta_CDLHARAMI.c new file mode 100644 index 000000000..d8ecec8f6 --- /dev/null +++ b/src/ta_func/ta_CDLHARAMI.c @@ -0,0 +1,366 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * AC Angelo Ciceri + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 102404 AC Creation + * + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::CdlHaramiLookback( void ) +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int cdlHaramiLookback( ) +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_CDLHARAMI_Lookback( void ) +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ /* No parameters to validate. */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + return max( TA_CANDLEAVGPERIOD(BodyShort), TA_CANDLEAVGPERIOD(BodyLong) ) + 1; +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_CDLHARAMI - Harami Pattern + * + * Input = Open, High, Low, Close + * Output = int + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::CdlHarami( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inOpen, +/* Generated */ SubArray^ inHigh, +/* Generated */ SubArray^ inLow, +/* Generated */ SubArray^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::CdlHarami( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inOpen, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cdlHarami( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inOpen[], +/* Generated */ double inHigh[], +/* Generated */ double inLow[], +/* Generated */ double inClose[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_CDLHARAMI( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inOpen[], +/* Generated */ const double inHigh[], +/* Generated */ const double inLow[], +/* Generated */ const double inClose[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* Insert local variables here. */ + double BodyShortPeriodTotal, BodyLongPeriodTotal; + int i, outIdx, BodyShortTrailingIdx, BodyLongTrailingIdx, lookbackTotal; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ /* Verify required price component. */ +/* Generated */ if(!inOpen||!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInteger ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Identify the minimum number of price bar needed + * to calculate at least one output. + */ + + lookbackTotal = LOOKBACK_CALL(CDLHARAMI)(); + + /* Move up the start index if there is not + * enough initial data. + */ + if( startIdx < lookbackTotal ) + startIdx = lookbackTotal; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + + /* Do the calculation using tight loops. */ + /* Add-up the initial period, except for the last value. */ + BodyLongPeriodTotal = 0; + BodyShortPeriodTotal = 0; + BodyLongTrailingIdx = startIdx -1 - TA_CANDLEAVGPERIOD(BodyLong); + BodyShortTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(BodyShort); + + i = BodyLongTrailingIdx; + while( i < startIdx-1 ) { + BodyLongPeriodTotal += TA_CANDLERANGE( BodyLong, i ); + i++; + } + i = BodyShortTrailingIdx; + while( i < startIdx ) { + BodyShortPeriodTotal += TA_CANDLERANGE( BodyShort, i ); + i++; + } + i = startIdx; + + /* Proceed with the calculation for the requested range. + * Must have: + * - first candle: long white (black) real body + * - second candle: short real body totally engulfed by the first + * The meaning of "short" and "long" is specified with TA_SetCandleSettings + * outInteger is positive (1 to 100) when bullish or negative (-1 to -100) when bearish; + * the user should consider that a harami is significant when it appears in a downtrend if bullish or + * in an uptrend when bearish, while this function does not consider the trend + */ + outIdx = 0; + do + { + if( TA_REALBODY(i-1) > TA_CANDLEAVERAGE( BodyLong, BodyLongPeriodTotal, i-1 ) && // 1st: long + TA_REALBODY(i) <= TA_CANDLEAVERAGE( BodyShort, BodyShortPeriodTotal, i ) && // 2nd: short + max( inClose[i], inOpen[i] ) < max( inClose[i-1], inOpen[i-1] ) && // engulfed by 1st + min( inClose[i], inOpen[i] ) > min( inClose[i-1], inOpen[i-1] ) + ) + outInteger[outIdx++] = -TA_CANDLECOLOR(i-1) * 100; + else + outInteger[outIdx++] = 0; + /* add the current range and subtract the first range: this is done after the pattern recognition + * when avgPeriod is not 0, that means "compare with the previous candles" (it excludes the current candle) + */ + BodyLongPeriodTotal += TA_CANDLERANGE( BodyLong, i-1 ) - TA_CANDLERANGE( BodyLong, BodyLongTrailingIdx ); + BodyShortPeriodTotal += TA_CANDLERANGE( BodyShort, i ) - TA_CANDLERANGE( BodyShort, BodyShortTrailingIdx ); + i++; + BodyLongTrailingIdx++; + BodyShortTrailingIdx++; + } while( i <= endIdx ); + + /* All done. Indicate the output limits and return. */ + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::CdlHarami( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inOpen, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cdlHarami( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inOpen[], +/* Generated */ float inHigh[], +/* Generated */ float inLow[], +/* Generated */ float inClose[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_CDLHARAMI( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inOpen[], +/* Generated */ const float inHigh[], +/* Generated */ const float inLow[], +/* Generated */ const float inClose[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ double BodyShortPeriodTotal, BodyLongPeriodTotal; +/* Generated */ int i, outIdx, BodyShortTrailingIdx, BodyLongTrailingIdx, lookbackTotal; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if(!inOpen||!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInteger ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ lookbackTotal = LOOKBACK_CALL(CDLHARAMI)(); +/* Generated */ if( startIdx < lookbackTotal ) +/* Generated */ startIdx = lookbackTotal; +/* Generated */ if( startIdx > endIdx ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ BodyLongPeriodTotal = 0; +/* Generated */ BodyShortPeriodTotal = 0; +/* Generated */ BodyLongTrailingIdx = startIdx -1 - TA_CANDLEAVGPERIOD(BodyLong); +/* Generated */ BodyShortTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(BodyShort); +/* Generated */ i = BodyLongTrailingIdx; +/* Generated */ while( i < startIdx-1 ) { +/* Generated */ BodyLongPeriodTotal += TA_CANDLERANGE( BodyLong, i ); +/* Generated */ i++; +/* Generated */ } +/* Generated */ i = BodyShortTrailingIdx; +/* Generated */ while( i < startIdx ) { +/* Generated */ BodyShortPeriodTotal += TA_CANDLERANGE( BodyShort, i ); +/* Generated */ i++; +/* Generated */ } +/* Generated */ i = startIdx; +/* Generated */ outIdx = 0; +/* Generated */ do +/* Generated */ { +/* Generated */ if( TA_REALBODY(i-1) > TA_CANDLEAVERAGE( BodyLong, BodyLongPeriodTotal, i-1 ) && // 1st: long +/* Generated */ TA_REALBODY(i) <= TA_CANDLEAVERAGE( BodyShort, BodyShortPeriodTotal, i ) && // 2nd: short +/* Generated */ max( inClose[i], inOpen[i] ) < max( inClose[i-1], inOpen[i-1] ) && // engulfed by 1st +/* Generated */ min( inClose[i], inOpen[i] ) > min( inClose[i-1], inOpen[i-1] ) +/* Generated */ ) +/* Generated */ outInteger[outIdx++] = -TA_CANDLECOLOR(i-1) * 100; +/* Generated */ else +/* Generated */ outInteger[outIdx++] = 0; +/* Generated */ BodyLongPeriodTotal += TA_CANDLERANGE( BodyLong, i-1 ) - TA_CANDLERANGE( BodyLong, BodyLongTrailingIdx ); +/* Generated */ BodyShortPeriodTotal += TA_CANDLERANGE( BodyShort, i ) - TA_CANDLERANGE( BodyShort, BodyShortTrailingIdx ); +/* Generated */ i++; +/* Generated */ BodyLongTrailingIdx++; +/* Generated */ BodyShortTrailingIdx++; +/* Generated */ } while( i <= endIdx ); +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_CDLHARAMICROSS.c b/src/ta_func/ta_CDLHARAMICROSS.c new file mode 100644 index 000000000..a2ee5bfa4 --- /dev/null +++ b/src/ta_func/ta_CDLHARAMICROSS.c @@ -0,0 +1,366 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * AC Angelo Ciceri + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 102404 AC Creation + * + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::CdlHaramiCrossLookback( void ) +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int cdlHaramiCrossLookback( ) +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_CDLHARAMICROSS_Lookback( void ) +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ /* No parameters to validate. */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + return max( TA_CANDLEAVGPERIOD(BodyDoji), TA_CANDLEAVGPERIOD(BodyLong) ) + 1; +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_CDLHARAMICROSS - Harami Cross Pattern + * + * Input = Open, High, Low, Close + * Output = int + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::CdlHaramiCross( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inOpen, +/* Generated */ SubArray^ inHigh, +/* Generated */ SubArray^ inLow, +/* Generated */ SubArray^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::CdlHaramiCross( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inOpen, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cdlHaramiCross( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inOpen[], +/* Generated */ double inHigh[], +/* Generated */ double inLow[], +/* Generated */ double inClose[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_CDLHARAMICROSS( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inOpen[], +/* Generated */ const double inHigh[], +/* Generated */ const double inLow[], +/* Generated */ const double inClose[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* Insert local variables here. */ + double BodyDojiPeriodTotal, BodyLongPeriodTotal; + int i, outIdx, BodyDojiTrailingIdx, BodyLongTrailingIdx, lookbackTotal; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ /* Verify required price component. */ +/* Generated */ if(!inOpen||!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInteger ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Identify the minimum number of price bar needed + * to calculate at least one output. + */ + + lookbackTotal = LOOKBACK_CALL(CDLHARAMICROSS)(); + + /* Move up the start index if there is not + * enough initial data. + */ + if( startIdx < lookbackTotal ) + startIdx = lookbackTotal; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + + /* Do the calculation using tight loops. */ + /* Add-up the initial period, except for the last value. */ + BodyLongPeriodTotal = 0; + BodyDojiPeriodTotal = 0; + BodyLongTrailingIdx = startIdx -1 - TA_CANDLEAVGPERIOD(BodyLong); + BodyDojiTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(BodyDoji); + + i = BodyLongTrailingIdx; + while( i < startIdx-1 ) { + BodyLongPeriodTotal += TA_CANDLERANGE( BodyLong, i ); + i++; + } + i = BodyDojiTrailingIdx; + while( i < startIdx ) { + BodyDojiPeriodTotal += TA_CANDLERANGE( BodyDoji, i ); + i++; + } + i = startIdx; + + /* Proceed with the calculation for the requested range. + * Must have: + * - first candle: long white (black) real body + * - second candle: doji totally engulfed by the first + * The meaning of "doji" and "long" is specified with TA_SetCandleSettings + * outInteger is positive (1 to 100) when bullish or negative (-1 to -100) when bearish; + * the user should consider that a harami cross is significant when it appears in a downtrend if bullish or + * in an uptrend when bearish, while this function does not consider the trend + */ + outIdx = 0; + do + { + if( TA_REALBODY(i-1) > TA_CANDLEAVERAGE( BodyLong, BodyLongPeriodTotal, i-1 ) && // 1st: long + TA_REALBODY(i) <= TA_CANDLEAVERAGE( BodyDoji, BodyDojiPeriodTotal, i ) && // 2nd: doji + max( inClose[i], inOpen[i] ) < max( inClose[i-1], inOpen[i-1] ) && // engulfed by 1st + min( inClose[i], inOpen[i] ) > min( inClose[i-1], inOpen[i-1] ) + ) + outInteger[outIdx++] = -TA_CANDLECOLOR(i-1) * 100; + else + outInteger[outIdx++] = 0; + /* add the current range and subtract the first range: this is done after the pattern recognition + * when avgPeriod is not 0, that means "compare with the previous candles" (it excludes the current candle) + */ + BodyLongPeriodTotal += TA_CANDLERANGE( BodyLong, i-1 ) - TA_CANDLERANGE( BodyLong, BodyLongTrailingIdx ); + BodyDojiPeriodTotal += TA_CANDLERANGE( BodyDoji, i ) - TA_CANDLERANGE( BodyDoji, BodyDojiTrailingIdx ); + i++; + BodyLongTrailingIdx++; + BodyDojiTrailingIdx++; + } while( i <= endIdx ); + + /* All done. Indicate the output limits and return. */ + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::CdlHaramiCross( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inOpen, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cdlHaramiCross( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inOpen[], +/* Generated */ float inHigh[], +/* Generated */ float inLow[], +/* Generated */ float inClose[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_CDLHARAMICROSS( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inOpen[], +/* Generated */ const float inHigh[], +/* Generated */ const float inLow[], +/* Generated */ const float inClose[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ double BodyDojiPeriodTotal, BodyLongPeriodTotal; +/* Generated */ int i, outIdx, BodyDojiTrailingIdx, BodyLongTrailingIdx, lookbackTotal; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if(!inOpen||!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInteger ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ lookbackTotal = LOOKBACK_CALL(CDLHARAMICROSS)(); +/* Generated */ if( startIdx < lookbackTotal ) +/* Generated */ startIdx = lookbackTotal; +/* Generated */ if( startIdx > endIdx ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ BodyLongPeriodTotal = 0; +/* Generated */ BodyDojiPeriodTotal = 0; +/* Generated */ BodyLongTrailingIdx = startIdx -1 - TA_CANDLEAVGPERIOD(BodyLong); +/* Generated */ BodyDojiTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(BodyDoji); +/* Generated */ i = BodyLongTrailingIdx; +/* Generated */ while( i < startIdx-1 ) { +/* Generated */ BodyLongPeriodTotal += TA_CANDLERANGE( BodyLong, i ); +/* Generated */ i++; +/* Generated */ } +/* Generated */ i = BodyDojiTrailingIdx; +/* Generated */ while( i < startIdx ) { +/* Generated */ BodyDojiPeriodTotal += TA_CANDLERANGE( BodyDoji, i ); +/* Generated */ i++; +/* Generated */ } +/* Generated */ i = startIdx; +/* Generated */ outIdx = 0; +/* Generated */ do +/* Generated */ { +/* Generated */ if( TA_REALBODY(i-1) > TA_CANDLEAVERAGE( BodyLong, BodyLongPeriodTotal, i-1 ) && // 1st: long +/* Generated */ TA_REALBODY(i) <= TA_CANDLEAVERAGE( BodyDoji, BodyDojiPeriodTotal, i ) && // 2nd: doji +/* Generated */ max( inClose[i], inOpen[i] ) < max( inClose[i-1], inOpen[i-1] ) && // engulfed by 1st +/* Generated */ min( inClose[i], inOpen[i] ) > min( inClose[i-1], inOpen[i-1] ) +/* Generated */ ) +/* Generated */ outInteger[outIdx++] = -TA_CANDLECOLOR(i-1) * 100; +/* Generated */ else +/* Generated */ outInteger[outIdx++] = 0; +/* Generated */ BodyLongPeriodTotal += TA_CANDLERANGE( BodyLong, i-1 ) - TA_CANDLERANGE( BodyLong, BodyLongTrailingIdx ); +/* Generated */ BodyDojiPeriodTotal += TA_CANDLERANGE( BodyDoji, i ) - TA_CANDLERANGE( BodyDoji, BodyDojiTrailingIdx ); +/* Generated */ i++; +/* Generated */ BodyLongTrailingIdx++; +/* Generated */ BodyDojiTrailingIdx++; +/* Generated */ } while( i <= endIdx ); +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_CDLHIGHWAVE.c b/src/ta_func/ta_CDLHIGHWAVE.c new file mode 100644 index 000000000..7a542590b --- /dev/null +++ b/src/ta_func/ta_CDLHIGHWAVE.c @@ -0,0 +1,359 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * AC Angelo Ciceri + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 072404 AC Creation + * + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::CdlHignWaveLookback( void ) +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int cdlHignWaveLookback( ) +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_CDLHIGHWAVE_Lookback( void ) +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ /* No parameters to validate. */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + return max( TA_CANDLEAVGPERIOD(BodyShort), TA_CANDLEAVGPERIOD(ShadowVeryLong) ); +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_CDLHIGHWAVE - High-Wave Candle + * + * Input = Open, High, Low, Close + * Output = int + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::CdlHignWave( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inOpen, +/* Generated */ SubArray^ inHigh, +/* Generated */ SubArray^ inLow, +/* Generated */ SubArray^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::CdlHignWave( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inOpen, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cdlHignWave( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inOpen[], +/* Generated */ double inHigh[], +/* Generated */ double inLow[], +/* Generated */ double inClose[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_CDLHIGHWAVE( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inOpen[], +/* Generated */ const double inHigh[], +/* Generated */ const double inLow[], +/* Generated */ const double inClose[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* Insert local variables here. */ + double BodyPeriodTotal, ShadowPeriodTotal; + int i, outIdx, BodyTrailingIdx, ShadowTrailingIdx, lookbackTotal; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ /* Verify required price component. */ +/* Generated */ if(!inOpen||!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInteger ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Identify the minimum number of price bar needed + * to calculate at least one output. + */ + + lookbackTotal = LOOKBACK_CALL(CDLHIGHWAVE)(); + + /* Move up the start index if there is not + * enough initial data. + */ + if( startIdx < lookbackTotal ) + startIdx = lookbackTotal; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + + /* Do the calculation using tight loops. */ + /* Add-up the initial period, except for the last value. */ + BodyPeriodTotal = 0; + BodyTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(BodyShort); + ShadowPeriodTotal = 0; + ShadowTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(ShadowVeryLong); + + i = BodyTrailingIdx; + while( i < startIdx ) { + BodyPeriodTotal += TA_CANDLERANGE( BodyShort, i ); + i++; + } + i = ShadowTrailingIdx; + while( i < startIdx ) { + ShadowPeriodTotal += TA_CANDLERANGE( ShadowVeryLong, i ); + i++; + } + + /* Proceed with the calculation for the requested range. + * Must have: + * - short real body + * - very long upper and lower shadow + * The meaning of "short" and "very long" is specified with TA_SetCandleSettings + * outInteger is positive (1 to 100) when white or negative (-1 to -100) when black; + * it does not mean bullish or bearish + */ + outIdx = 0; + do + { + if( TA_REALBODY(i) < TA_CANDLEAVERAGE( BodyShort, BodyPeriodTotal, i ) && + TA_UPPERSHADOW(i) > TA_CANDLEAVERAGE( ShadowVeryLong, ShadowPeriodTotal, i ) && + TA_LOWERSHADOW(i) > TA_CANDLEAVERAGE( ShadowVeryLong, ShadowPeriodTotal, i ) ) + outInteger[outIdx++] = TA_CANDLECOLOR(i) * 100; + else + outInteger[outIdx++] = 0; + /* add the current range and subtract the first range: this is done after the pattern recognition + * when avgPeriod is not 0, that means "compare with the previous candles" (it excludes the current candle) + */ + BodyPeriodTotal += TA_CANDLERANGE( BodyShort, i ) - TA_CANDLERANGE( BodyShort, BodyTrailingIdx ); + ShadowPeriodTotal += TA_CANDLERANGE( ShadowVeryLong, i ) - TA_CANDLERANGE( ShadowVeryLong, ShadowTrailingIdx ); + i++; + BodyTrailingIdx++; + ShadowTrailingIdx++; + } while( i <= endIdx ); + + /* All done. Indicate the output limits and return. */ + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::CdlHignWave( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inOpen, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cdlHignWave( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inOpen[], +/* Generated */ float inHigh[], +/* Generated */ float inLow[], +/* Generated */ float inClose[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_CDLHIGHWAVE( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inOpen[], +/* Generated */ const float inHigh[], +/* Generated */ const float inLow[], +/* Generated */ const float inClose[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ double BodyPeriodTotal, ShadowPeriodTotal; +/* Generated */ int i, outIdx, BodyTrailingIdx, ShadowTrailingIdx, lookbackTotal; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if(!inOpen||!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInteger ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ lookbackTotal = LOOKBACK_CALL(CDLHIGHWAVE)(); +/* Generated */ if( startIdx < lookbackTotal ) +/* Generated */ startIdx = lookbackTotal; +/* Generated */ if( startIdx > endIdx ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ BodyPeriodTotal = 0; +/* Generated */ BodyTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(BodyShort); +/* Generated */ ShadowPeriodTotal = 0; +/* Generated */ ShadowTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(ShadowVeryLong); +/* Generated */ i = BodyTrailingIdx; +/* Generated */ while( i < startIdx ) { +/* Generated */ BodyPeriodTotal += TA_CANDLERANGE( BodyShort, i ); +/* Generated */ i++; +/* Generated */ } +/* Generated */ i = ShadowTrailingIdx; +/* Generated */ while( i < startIdx ) { +/* Generated */ ShadowPeriodTotal += TA_CANDLERANGE( ShadowVeryLong, i ); +/* Generated */ i++; +/* Generated */ } +/* Generated */ outIdx = 0; +/* Generated */ do +/* Generated */ { +/* Generated */ if( TA_REALBODY(i) < TA_CANDLEAVERAGE( BodyShort, BodyPeriodTotal, i ) && +/* Generated */ TA_UPPERSHADOW(i) > TA_CANDLEAVERAGE( ShadowVeryLong, ShadowPeriodTotal, i ) && +/* Generated */ TA_LOWERSHADOW(i) > TA_CANDLEAVERAGE( ShadowVeryLong, ShadowPeriodTotal, i ) ) +/* Generated */ outInteger[outIdx++] = TA_CANDLECOLOR(i) * 100; +/* Generated */ else +/* Generated */ outInteger[outIdx++] = 0; +/* Generated */ BodyPeriodTotal += TA_CANDLERANGE( BodyShort, i ) - TA_CANDLERANGE( BodyShort, BodyTrailingIdx ); +/* Generated */ ShadowPeriodTotal += TA_CANDLERANGE( ShadowVeryLong, i ) - TA_CANDLERANGE( ShadowVeryLong, ShadowTrailingIdx ); +/* Generated */ i++; +/* Generated */ BodyTrailingIdx++; +/* Generated */ ShadowTrailingIdx++; +/* Generated */ } while( i <= endIdx ); +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_CDLHIKKAKE.c b/src/ta_func/ta_CDLHIKKAKE.c new file mode 100644 index 000000000..2973c4f73 --- /dev/null +++ b/src/ta_func/ta_CDLHIKKAKE.c @@ -0,0 +1,399 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * AC Angelo Ciceri + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 120305 AC Creation + * + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::CdlHikkakeLookback( void ) +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int cdlHikkakeLookback( ) +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_CDLHIKKAKE_Lookback( void ) +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ /* No parameters to validate. */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + return 5; +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_CDLHIKKAKE - Hikkake Pattern + * + * Input = Open, High, Low, Close + * Output = int + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::CdlHikkake( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inOpen, +/* Generated */ SubArray^ inHigh, +/* Generated */ SubArray^ inLow, +/* Generated */ SubArray^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::CdlHikkake( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inOpen, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cdlHikkake( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inOpen[], +/* Generated */ double inHigh[], +/* Generated */ double inLow[], +/* Generated */ double inClose[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_CDLHIKKAKE( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inOpen[], +/* Generated */ const double inHigh[], +/* Generated */ const double inLow[], +/* Generated */ const double inClose[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* Insert local variables here. */ + int i, outIdx, lookbackTotal, patternIdx, patternResult; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ /* Verify required price component. */ +/* Generated */ if(!inOpen||!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInteger ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Identify the minimum number of price bar needed + * to calculate at least one output. + */ + + lookbackTotal = LOOKBACK_CALL(CDLHIKKAKE)(); + + /* Move up the start index if there is not + * enough initial data. + */ + if( startIdx < lookbackTotal ) + startIdx = lookbackTotal; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + + /* Do the calculation using tight loops. */ + /* Add-up the initial period, except for the last value. */ + patternIdx = 0; + patternResult = 0; + + i = startIdx - 3; + while( i < startIdx ) { + /* copy here the pattern recognition code below */ + if( inHigh[i-1] < inHigh[i-2] && inLow[i-1] > inLow[i-2] && // 1st + 2nd: lower high and higher low + ( ( inHigh[i] < inHigh[i-1] && inLow[i] < inLow[i-1] ) // (bull) 3rd: lower high and lower low + || + ( inHigh[i] > inHigh[i-1] && inLow[i] > inLow[i-1] ) // (bear) 3rd: higher high and higher low + ) + ) { + patternResult = 100 * ( inHigh[i] < inHigh[i-1] ? 1 : -1 ); + patternIdx = i; + } else + /* search for confirmation if hikkake was no more than 3 bars ago */ + if( i <= patternIdx+3 && + ( ( patternResult > 0 && inClose[i] > inHigh[patternIdx-1] ) // close higher than the high of 2nd + || + ( patternResult < 0 && inClose[i] < inLow[patternIdx-1] ) // close lower than the low of 2nd + ) + ) + patternIdx = 0; + i++; + } + + i = startIdx; + + /* Proceed with the calculation for the requested range. + * Must have: + * - first and second candle: inside bar (2nd has lower high and higher low than 1st) + * - third candle: lower high and lower low than 2nd (higher high and higher low than 2nd) + * outInteger[hikkakebar] is positive (1 to 100) or negative (-1 to -100) meaning bullish or bearish hikkake + * Confirmation could come in the next 3 days with: + * - a day that closes higher than the high (lower than the low) of the 2nd candle + * outInteger[confirmationbar] is equal to 100 + the bullish hikkake result or -100 - the bearish hikkake result + * Note: if confirmation and a new hikkake come at the same bar, only the new hikkake is reported (the new hikkake + * overwrites the confirmation of the old hikkake) + */ + outIdx = 0; + do + { + if( inHigh[i-1] < inHigh[i-2] && inLow[i-1] > inLow[i-2] && // 1st + 2nd: lower high and higher low + ( ( inHigh[i] < inHigh[i-1] && inLow[i] < inLow[i-1] ) // (bull) 3rd: lower high and lower low + || + ( inHigh[i] > inHigh[i-1] && inLow[i] > inLow[i-1] ) // (bear) 3rd: higher high and higher low + ) + ) { + patternResult = 100 * ( inHigh[i] < inHigh[i-1] ? 1 : -1 ); + patternIdx = i; + outInteger[outIdx++] = patternResult; + } else + /* search for confirmation if hikkake was no more than 3 bars ago */ + if( i <= patternIdx+3 && + ( ( patternResult > 0 && inClose[i] > inHigh[patternIdx-1] ) // close higher than the high of 2nd + || + ( patternResult < 0 && inClose[i] < inLow[patternIdx-1] ) // close lower than the low of 2nd + ) + ) { + outInteger[outIdx++] = patternResult + 100 * ( patternResult > 0 ? 1 : -1 ); + patternIdx = 0; + } else + outInteger[outIdx++] = 0; + i++; + } while( i <= endIdx ); + + /* All done. Indicate the output limits and return. */ + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::CdlHikkake( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inOpen, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cdlHikkake( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inOpen[], +/* Generated */ float inHigh[], +/* Generated */ float inLow[], +/* Generated */ float inClose[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_CDLHIKKAKE( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inOpen[], +/* Generated */ const float inHigh[], +/* Generated */ const float inLow[], +/* Generated */ const float inClose[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ int i, outIdx, lookbackTotal, patternIdx, patternResult; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if(!inOpen||!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInteger ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ lookbackTotal = LOOKBACK_CALL(CDLHIKKAKE)(); +/* Generated */ if( startIdx < lookbackTotal ) +/* Generated */ startIdx = lookbackTotal; +/* Generated */ if( startIdx > endIdx ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ patternIdx = 0; +/* Generated */ patternResult = 0; +/* Generated */ i = startIdx - 3; +/* Generated */ while( i < startIdx ) { +/* Generated */ if( inHigh[i-1] < inHigh[i-2] && inLow[i-1] > inLow[i-2] && // 1st + 2nd: lower high and higher low +/* Generated */ ( ( inHigh[i] < inHigh[i-1] && inLow[i] < inLow[i-1] ) // (bull) 3rd: lower high and lower low +/* Generated */ || +/* Generated */ ( inHigh[i] > inHigh[i-1] && inLow[i] > inLow[i-1] ) // (bear) 3rd: higher high and higher low +/* Generated */ ) +/* Generated */ ) { +/* Generated */ patternResult = 100 * ( inHigh[i] < inHigh[i-1] ? 1 : -1 ); +/* Generated */ patternIdx = i; +/* Generated */ } else +/* Generated */ if( i <= patternIdx+3 && +/* Generated */ ( ( patternResult > 0 && inClose[i] > inHigh[patternIdx-1] ) // close higher than the high of 2nd +/* Generated */ || +/* Generated */ ( patternResult < 0 && inClose[i] < inLow[patternIdx-1] ) // close lower than the low of 2nd +/* Generated */ ) +/* Generated */ ) +/* Generated */ patternIdx = 0; +/* Generated */ i++; +/* Generated */ } +/* Generated */ i = startIdx; +/* Generated */ outIdx = 0; +/* Generated */ do +/* Generated */ { +/* Generated */ if( inHigh[i-1] < inHigh[i-2] && inLow[i-1] > inLow[i-2] && // 1st + 2nd: lower high and higher low +/* Generated */ ( ( inHigh[i] < inHigh[i-1] && inLow[i] < inLow[i-1] ) // (bull) 3rd: lower high and lower low +/* Generated */ || +/* Generated */ ( inHigh[i] > inHigh[i-1] && inLow[i] > inLow[i-1] ) // (bear) 3rd: higher high and higher low +/* Generated */ ) +/* Generated */ ) { +/* Generated */ patternResult = 100 * ( inHigh[i] < inHigh[i-1] ? 1 : -1 ); +/* Generated */ patternIdx = i; +/* Generated */ outInteger[outIdx++] = patternResult; +/* Generated */ } else +/* Generated */ if( i <= patternIdx+3 && +/* Generated */ ( ( patternResult > 0 && inClose[i] > inHigh[patternIdx-1] ) // close higher than the high of 2nd +/* Generated */ || +/* Generated */ ( patternResult < 0 && inClose[i] < inLow[patternIdx-1] ) // close lower than the low of 2nd +/* Generated */ ) +/* Generated */ ) { +/* Generated */ outInteger[outIdx++] = patternResult + 100 * ( patternResult > 0 ? 1 : -1 ); +/* Generated */ patternIdx = 0; +/* Generated */ } else +/* Generated */ outInteger[outIdx++] = 0; +/* Generated */ i++; +/* Generated */ } while( i <= endIdx ); +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_CDLHIKKAKEMOD.c b/src/ta_func/ta_CDLHIKKAKEMOD.c new file mode 100644 index 000000000..9fdf49685 --- /dev/null +++ b/src/ta_func/ta_CDLHIKKAKEMOD.c @@ -0,0 +1,457 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * AC Angelo Ciceri + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 122605 AC Creation + * + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::CdlHikkakeModLookback( void ) +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int cdlHikkakeModLookback( ) +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_CDLHIKKAKEMOD_Lookback( void ) +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ /* No parameters to validate. */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + return max( 1, TA_CANDLEAVGPERIOD(Near) ) + 5; +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_CDLHIKKAKEMOD - Modified Hikkake Pattern + * + * Input = Open, High, Low, Close + * Output = int + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::CdlHikkakeMod( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inOpen, +/* Generated */ SubArray^ inHigh, +/* Generated */ SubArray^ inLow, +/* Generated */ SubArray^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::CdlHikkakeMod( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inOpen, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cdlHikkakeMod( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inOpen[], +/* Generated */ double inHigh[], +/* Generated */ double inLow[], +/* Generated */ double inClose[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_CDLHIKKAKEMOD( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inOpen[], +/* Generated */ const double inHigh[], +/* Generated */ const double inLow[], +/* Generated */ const double inClose[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* Insert local variables here. */ + double NearPeriodTotal; + int i, outIdx, NearTrailingIdx, lookbackTotal, patternIdx, patternResult; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ /* Verify required price component. */ +/* Generated */ if(!inOpen||!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInteger ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Identify the minimum number of price bar needed + * to calculate at least one output. + */ + + lookbackTotal = LOOKBACK_CALL(CDLHIKKAKEMOD)(); + + /* Move up the start index if there is not + * enough initial data. + */ + if( startIdx < lookbackTotal ) + startIdx = lookbackTotal; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + + /* Do the calculation using tight loops. */ + /* Add-up the initial period, except for the last value. */ + NearPeriodTotal = 0; + NearTrailingIdx = startIdx - 3 - TA_CANDLEAVGPERIOD(Near); + i = NearTrailingIdx; + while( i < startIdx - 3 ) { + NearPeriodTotal += TA_CANDLERANGE( Near, i-2 ); + i++; + } + + patternIdx = 0; + patternResult = 0; + + i = startIdx - 3; + while( i < startIdx ) { + /* copy here the pattern recognition code below */ + if( inHigh[i-2] < inHigh[i-3] && inLow[i-2] > inLow[i-3] && // 2nd: lower high and higher low than 1st + inHigh[i-1] < inHigh[i-2] && inLow[i-1] > inLow[i-2] && // 3rd: lower high and higher low than 2nd + ( ( inHigh[i] < inHigh[i-1] && inLow[i] < inLow[i-1] && // (bull) 4th: lower high and lower low + inClose[i-2] <= inLow[i-2] + TA_CANDLEAVERAGE( Near, NearPeriodTotal, i-2 ) + // (bull) 2nd: close near the low + ) + || + ( inHigh[i] > inHigh[i-1] && inLow[i] > inLow[i-1] && // (bear) 4th: higher high and higher low + inClose[i-2] >= inHigh[i-2] - TA_CANDLEAVERAGE( Near, NearPeriodTotal, i-2 ) + // (bull) 2nd: close near the top + ) + ) + ) { + patternResult = 100 * ( inHigh[i] < inHigh[i-1] ? 1 : -1 ); + patternIdx = i; + } else + /* search for confirmation if modified hikkake was no more than 3 bars ago */ + if( i <= patternIdx+3 && + ( ( patternResult > 0 && inClose[i] > inHigh[patternIdx-1] ) // close higher than the high of 3rd + || + ( patternResult < 0 && inClose[i] < inLow[patternIdx-1] ) // close lower than the low of 3rd + ) + ) + patternIdx = 0; + NearPeriodTotal += TA_CANDLERANGE( Near, i-2 ) - TA_CANDLERANGE( Near, NearTrailingIdx-2 ); + NearTrailingIdx++; + i++; + } + + i = startIdx; + + /* Proceed with the calculation for the requested range. + * Must have: + * - first candle + * - second candle: candle with range less than first candle and close near the bottom (near the top) + * - third candle: lower high and higher low than 2nd + * - fourth candle: lower high and lower low (higher high and higher low) than 3rd + * outInteger[hikkake bar] is positive (1 to 100) or negative (-1 to -100) meaning bullish or bearish hikkake + * Confirmation could come in the next 3 days with: + * - a day that closes higher than the high (lower than the low) of the 3rd candle + * outInteger[confirmationbar] is equal to 100 + the bullish hikkake result or -100 - the bearish hikkake result + * Note: if confirmation and a new hikkake come at the same bar, only the new hikkake is reported (the new hikkake + * overwrites the confirmation of the old hikkake); + * the user should consider that modified hikkake is a reversal pattern, while hikkake could be both a reversal + * or a continuation pattern, so bullish (bearish) modified hikkake is significant when appearing in a downtrend + * (uptrend) + */ + outIdx = 0; + do + { + if( inHigh[i-2] < inHigh[i-3] && inLow[i-2] > inLow[i-3] && // 2nd: lower high and higher low than 1st + inHigh[i-1] < inHigh[i-2] && inLow[i-1] > inLow[i-2] && // 3rd: lower high and higher low than 2nd + ( ( inHigh[i] < inHigh[i-1] && inLow[i] < inLow[i-1] && // (bull) 4th: lower high and lower low + inClose[i-2] <= inLow[i-2] + TA_CANDLEAVERAGE( Near, NearPeriodTotal, i-2 ) + // (bull) 2nd: close near the low + ) + || + ( inHigh[i] > inHigh[i-1] && inLow[i] > inLow[i-1] && // (bear) 4th: higher high and higher low + inClose[i-2] >= inHigh[i-2] - TA_CANDLEAVERAGE( Near, NearPeriodTotal, i-2 ) + // (bull) 2nd: close near the top + ) + ) + ) { + patternResult = 100 * ( inHigh[i] < inHigh[i-1] ? 1 : -1 ); + patternIdx = i; + outInteger[outIdx++] = patternResult; + } else + /* search for confirmation if modified hikkake was no more than 3 bars ago */ + if( i <= patternIdx+3 && + ( ( patternResult > 0 && inClose[i] > inHigh[patternIdx-1] ) // close higher than the high of 3rd + || + ( patternResult < 0 && inClose[i] < inLow[patternIdx-1] ) // close lower than the low of 3rd + ) + ) { + outInteger[outIdx++] = patternResult + 100 * ( patternResult > 0 ? 1 : -1 ); + patternIdx = 0; + } else + outInteger[outIdx++] = 0; + NearPeriodTotal += TA_CANDLERANGE( Near, i-2 ) - TA_CANDLERANGE( Near, NearTrailingIdx-2 ); + NearTrailingIdx++; + i++; + } while( i <= endIdx ); + + /* All done. Indicate the output limits and return. */ + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::CdlHikkakeMod( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inOpen, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cdlHikkakeMod( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inOpen[], +/* Generated */ float inHigh[], +/* Generated */ float inLow[], +/* Generated */ float inClose[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_CDLHIKKAKEMOD( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inOpen[], +/* Generated */ const float inHigh[], +/* Generated */ const float inLow[], +/* Generated */ const float inClose[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ double NearPeriodTotal; +/* Generated */ int i, outIdx, NearTrailingIdx, lookbackTotal, patternIdx, patternResult; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if(!inOpen||!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInteger ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ lookbackTotal = LOOKBACK_CALL(CDLHIKKAKEMOD)(); +/* Generated */ if( startIdx < lookbackTotal ) +/* Generated */ startIdx = lookbackTotal; +/* Generated */ if( startIdx > endIdx ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ NearPeriodTotal = 0; +/* Generated */ NearTrailingIdx = startIdx - 3 - TA_CANDLEAVGPERIOD(Near); +/* Generated */ i = NearTrailingIdx; +/* Generated */ while( i < startIdx - 3 ) { +/* Generated */ NearPeriodTotal += TA_CANDLERANGE( Near, i-2 ); +/* Generated */ i++; +/* Generated */ } +/* Generated */ patternIdx = 0; +/* Generated */ patternResult = 0; +/* Generated */ i = startIdx - 3; +/* Generated */ while( i < startIdx ) { +/* Generated */ if( inHigh[i-2] < inHigh[i-3] && inLow[i-2] > inLow[i-3] && // 2nd: lower high and higher low than 1st +/* Generated */ inHigh[i-1] < inHigh[i-2] && inLow[i-1] > inLow[i-2] && // 3rd: lower high and higher low than 2nd +/* Generated */ ( ( inHigh[i] < inHigh[i-1] && inLow[i] < inLow[i-1] && // (bull) 4th: lower high and lower low +/* Generated */ inClose[i-2] <= inLow[i-2] + TA_CANDLEAVERAGE( Near, NearPeriodTotal, i-2 ) +/* Generated */ // (bull) 2nd: close near the low +/* Generated */ ) +/* Generated */ || +/* Generated */ ( inHigh[i] > inHigh[i-1] && inLow[i] > inLow[i-1] && // (bear) 4th: higher high and higher low +/* Generated */ inClose[i-2] >= inHigh[i-2] - TA_CANDLEAVERAGE( Near, NearPeriodTotal, i-2 ) +/* Generated */ // (bull) 2nd: close near the top +/* Generated */ ) +/* Generated */ ) +/* Generated */ ) { +/* Generated */ patternResult = 100 * ( inHigh[i] < inHigh[i-1] ? 1 : -1 ); +/* Generated */ patternIdx = i; +/* Generated */ } else +/* Generated */ if( i <= patternIdx+3 && +/* Generated */ ( ( patternResult > 0 && inClose[i] > inHigh[patternIdx-1] ) // close higher than the high of 3rd +/* Generated */ || +/* Generated */ ( patternResult < 0 && inClose[i] < inLow[patternIdx-1] ) // close lower than the low of 3rd +/* Generated */ ) +/* Generated */ ) +/* Generated */ patternIdx = 0; +/* Generated */ NearPeriodTotal += TA_CANDLERANGE( Near, i-2 ) - TA_CANDLERANGE( Near, NearTrailingIdx-2 ); +/* Generated */ NearTrailingIdx++; +/* Generated */ i++; +/* Generated */ } +/* Generated */ i = startIdx; +/* Generated */ outIdx = 0; +/* Generated */ do +/* Generated */ { +/* Generated */ if( inHigh[i-2] < inHigh[i-3] && inLow[i-2] > inLow[i-3] && // 2nd: lower high and higher low than 1st +/* Generated */ inHigh[i-1] < inHigh[i-2] && inLow[i-1] > inLow[i-2] && // 3rd: lower high and higher low than 2nd +/* Generated */ ( ( inHigh[i] < inHigh[i-1] && inLow[i] < inLow[i-1] && // (bull) 4th: lower high and lower low +/* Generated */ inClose[i-2] <= inLow[i-2] + TA_CANDLEAVERAGE( Near, NearPeriodTotal, i-2 ) +/* Generated */ // (bull) 2nd: close near the low +/* Generated */ ) +/* Generated */ || +/* Generated */ ( inHigh[i] > inHigh[i-1] && inLow[i] > inLow[i-1] && // (bear) 4th: higher high and higher low +/* Generated */ inClose[i-2] >= inHigh[i-2] - TA_CANDLEAVERAGE( Near, NearPeriodTotal, i-2 ) +/* Generated */ // (bull) 2nd: close near the top +/* Generated */ ) +/* Generated */ ) +/* Generated */ ) { +/* Generated */ patternResult = 100 * ( inHigh[i] < inHigh[i-1] ? 1 : -1 ); +/* Generated */ patternIdx = i; +/* Generated */ outInteger[outIdx++] = patternResult; +/* Generated */ } else +/* Generated */ if( i <= patternIdx+3 && +/* Generated */ ( ( patternResult > 0 && inClose[i] > inHigh[patternIdx-1] ) // close higher than the high of 3rd +/* Generated */ || +/* Generated */ ( patternResult < 0 && inClose[i] < inLow[patternIdx-1] ) // close lower than the low of 3rd +/* Generated */ ) +/* Generated */ ) { +/* Generated */ outInteger[outIdx++] = patternResult + 100 * ( patternResult > 0 ? 1 : -1 ); +/* Generated */ patternIdx = 0; +/* Generated */ } else +/* Generated */ outInteger[outIdx++] = 0; +/* Generated */ NearPeriodTotal += TA_CANDLERANGE( Near, i-2 ) - TA_CANDLERANGE( Near, NearTrailingIdx-2 ); +/* Generated */ NearTrailingIdx++; +/* Generated */ i++; +/* Generated */ } while( i <= endIdx ); +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_CDLHOMINGPIGEON.c b/src/ta_func/ta_CDLHOMINGPIGEON.c new file mode 100644 index 000000000..19c6386c7 --- /dev/null +++ b/src/ta_func/ta_CDLHOMINGPIGEON.c @@ -0,0 +1,370 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * AC Angelo Ciceri + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 032005 AC Creation + * + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::CdlHomingPigeonLookback( void ) +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int cdlHomingPigeonLookback( ) +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_CDLHOMINGPIGEON_Lookback( void ) +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ /* No parameters to validate. */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + return max( TA_CANDLEAVGPERIOD(BodyShort), TA_CANDLEAVGPERIOD(BodyLong) ) + 1; +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_CDLHOMINGPIGEON - Homing Pigeon + * + * Input = Open, High, Low, Close + * Output = int + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::CdlHomingPigeon( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inOpen, +/* Generated */ SubArray^ inHigh, +/* Generated */ SubArray^ inLow, +/* Generated */ SubArray^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::CdlHomingPigeon( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inOpen, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cdlHomingPigeon( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inOpen[], +/* Generated */ double inHigh[], +/* Generated */ double inLow[], +/* Generated */ double inClose[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_CDLHOMINGPIGEON( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inOpen[], +/* Generated */ const double inHigh[], +/* Generated */ const double inLow[], +/* Generated */ const double inClose[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* Insert local variables here. */ + double BodyShortPeriodTotal, BodyLongPeriodTotal; + int i, outIdx, BodyShortTrailingIdx, BodyLongTrailingIdx, lookbackTotal; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ /* Verify required price component. */ +/* Generated */ if(!inOpen||!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInteger ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Identify the minimum number of price bar needed + * to calculate at least one output. + */ + + lookbackTotal = LOOKBACK_CALL(CDLHOMINGPIGEON)(); + + /* Move up the start index if there is not + * enough initial data. + */ + if( startIdx < lookbackTotal ) + startIdx = lookbackTotal; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + + /* Do the calculation using tight loops. */ + /* Add-up the initial period, except for the last value. */ + BodyLongPeriodTotal = 0; + BodyShortPeriodTotal = 0; + BodyLongTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(BodyLong); + BodyShortTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(BodyShort); + + i = BodyLongTrailingIdx; + while( i < startIdx ) { + BodyLongPeriodTotal += TA_CANDLERANGE( BodyLong, i-1 ); + i++; + } + i = BodyShortTrailingIdx; + while( i < startIdx ) { + BodyShortPeriodTotal += TA_CANDLERANGE( BodyShort, i ); + i++; + } + i = startIdx; + + /* Proceed with the calculation for the requested range. + * Must have: + * - first candle: long black candle + * - second candle: short black real body completely inside the previous day's body + * The meaning of "short" and "long" is specified with TA_SetCandleSettings + * outInteger is positive (1 to 100): homing pigeon is always bullish; + * the user should consider that homing pigeon is significant when it appears in a downtrend, + * while this function does not consider the trend + */ + outIdx = 0; + do + { + if( TA_CANDLECOLOR(i-1) == -1 && // 1st black + TA_CANDLECOLOR(i) == -1 && // 2nd black + TA_REALBODY(i-1) > TA_CANDLEAVERAGE( BodyLong, BodyLongPeriodTotal, i-1 ) && // 1st long + TA_REALBODY(i) <= TA_CANDLEAVERAGE( BodyShort, BodyShortPeriodTotal, i ) && // 2nd short + inOpen[i] < inOpen[i-1] && // 2nd engulfed by 1st + inClose[i] > inClose[i-1] + ) + outInteger[outIdx++] = 100; + else + outInteger[outIdx++] = 0; + /* add the current range and subtract the first range: this is done after the pattern recognition + * when avgPeriod is not 0, that means "compare with the previous candles" (it excludes the current candle) + */ + BodyLongPeriodTotal += TA_CANDLERANGE( BodyLong, i-1 ) - TA_CANDLERANGE( BodyLong, BodyLongTrailingIdx-1 ); + BodyShortPeriodTotal += TA_CANDLERANGE( BodyShort, i ) - TA_CANDLERANGE( BodyShort, BodyShortTrailingIdx ); + i++; + BodyLongTrailingIdx++; + BodyShortTrailingIdx++; + } while( i <= endIdx ); + + /* All done. Indicate the output limits and return. */ + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::CdlHomingPigeon( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inOpen, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cdlHomingPigeon( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inOpen[], +/* Generated */ float inHigh[], +/* Generated */ float inLow[], +/* Generated */ float inClose[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_CDLHOMINGPIGEON( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inOpen[], +/* Generated */ const float inHigh[], +/* Generated */ const float inLow[], +/* Generated */ const float inClose[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ double BodyShortPeriodTotal, BodyLongPeriodTotal; +/* Generated */ int i, outIdx, BodyShortTrailingIdx, BodyLongTrailingIdx, lookbackTotal; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if(!inOpen||!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInteger ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ lookbackTotal = LOOKBACK_CALL(CDLHOMINGPIGEON)(); +/* Generated */ if( startIdx < lookbackTotal ) +/* Generated */ startIdx = lookbackTotal; +/* Generated */ if( startIdx > endIdx ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ BodyLongPeriodTotal = 0; +/* Generated */ BodyShortPeriodTotal = 0; +/* Generated */ BodyLongTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(BodyLong); +/* Generated */ BodyShortTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(BodyShort); +/* Generated */ i = BodyLongTrailingIdx; +/* Generated */ while( i < startIdx ) { +/* Generated */ BodyLongPeriodTotal += TA_CANDLERANGE( BodyLong, i-1 ); +/* Generated */ i++; +/* Generated */ } +/* Generated */ i = BodyShortTrailingIdx; +/* Generated */ while( i < startIdx ) { +/* Generated */ BodyShortPeriodTotal += TA_CANDLERANGE( BodyShort, i ); +/* Generated */ i++; +/* Generated */ } +/* Generated */ i = startIdx; +/* Generated */ outIdx = 0; +/* Generated */ do +/* Generated */ { +/* Generated */ if( TA_CANDLECOLOR(i-1) == -1 && // 1st black +/* Generated */ TA_CANDLECOLOR(i) == -1 && // 2nd black +/* Generated */ TA_REALBODY(i-1) > TA_CANDLEAVERAGE( BodyLong, BodyLongPeriodTotal, i-1 ) && // 1st long +/* Generated */ TA_REALBODY(i) <= TA_CANDLEAVERAGE( BodyShort, BodyShortPeriodTotal, i ) && // 2nd short +/* Generated */ inOpen[i] < inOpen[i-1] && // 2nd engulfed by 1st +/* Generated */ inClose[i] > inClose[i-1] +/* Generated */ ) +/* Generated */ outInteger[outIdx++] = 100; +/* Generated */ else +/* Generated */ outInteger[outIdx++] = 0; +/* Generated */ BodyLongPeriodTotal += TA_CANDLERANGE( BodyLong, i-1 ) - TA_CANDLERANGE( BodyLong, BodyLongTrailingIdx-1 ); +/* Generated */ BodyShortPeriodTotal += TA_CANDLERANGE( BodyShort, i ) - TA_CANDLERANGE( BodyShort, BodyShortTrailingIdx ); +/* Generated */ i++; +/* Generated */ BodyLongTrailingIdx++; +/* Generated */ BodyShortTrailingIdx++; +/* Generated */ } while( i <= endIdx ); +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_CDLIDENTICAL3CROWS.c b/src/ta_func/ta_CDLIDENTICAL3CROWS.c new file mode 100644 index 000000000..ca38679aa --- /dev/null +++ b/src/ta_func/ta_CDLIDENTICAL3CROWS.c @@ -0,0 +1,419 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * AC Angelo Ciceri + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 103104 AC Creation + * + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::CdlIdentical3CrowsLookback( void ) +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int cdlIdentical3CrowsLookback( ) +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_CDLIDENTICAL3CROWS_Lookback( void ) +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ /* No parameters to validate. */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + return max( TA_CANDLEAVGPERIOD(ShadowVeryShort), TA_CANDLEAVGPERIOD(Equal) + ) + 2; +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_CDLIDENTICAL3CROWS - Identical Three Crows + * + * Input = Open, High, Low, Close + * Output = int + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::CdlIdentical3Crows( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inOpen, +/* Generated */ SubArray^ inHigh, +/* Generated */ SubArray^ inLow, +/* Generated */ SubArray^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::CdlIdentical3Crows( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inOpen, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cdlIdentical3Crows( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inOpen[], +/* Generated */ double inHigh[], +/* Generated */ double inLow[], +/* Generated */ double inClose[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_CDLIDENTICAL3CROWS( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inOpen[], +/* Generated */ const double inHigh[], +/* Generated */ const double inLow[], +/* Generated */ const double inClose[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* Insert local variables here. */ + ARRAY_LOCAL(ShadowVeryShortPeriodTotal,3); + ARRAY_LOCAL(EqualPeriodTotal,3); + int i, outIdx, totIdx, ShadowVeryShortTrailingIdx, EqualTrailingIdx, lookbackTotal; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ /* Verify required price component. */ +/* Generated */ if(!inOpen||!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInteger ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Identify the minimum number of price bar needed + * to calculate at least one output. + */ + + lookbackTotal = LOOKBACK_CALL(CDLIDENTICAL3CROWS)(); + + /* Move up the start index if there is not + * enough initial data. + */ + if( startIdx < lookbackTotal ) + startIdx = lookbackTotal; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + + /* Do the calculation using tight loops. */ + /* Add-up the initial period, except for the last value. */ + ShadowVeryShortPeriodTotal[2] = 0; + ShadowVeryShortPeriodTotal[1] = 0; + ShadowVeryShortPeriodTotal[0] = 0; + ShadowVeryShortTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(ShadowVeryShort); + EqualPeriodTotal[2] = 0; + EqualPeriodTotal[1] = 0; + EqualPeriodTotal[0] = 0; + EqualTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(Equal); + + i = ShadowVeryShortTrailingIdx; + while( i < startIdx ) { + ShadowVeryShortPeriodTotal[2] += TA_CANDLERANGE( ShadowVeryShort, i-2 ); + ShadowVeryShortPeriodTotal[1] += TA_CANDLERANGE( ShadowVeryShort, i-1 ); + ShadowVeryShortPeriodTotal[0] += TA_CANDLERANGE( ShadowVeryShort, i ); + i++; + } + i = EqualTrailingIdx; + while( i < startIdx ) { + EqualPeriodTotal[2] += TA_CANDLERANGE( Equal, i-2 ); + EqualPeriodTotal[1] += TA_CANDLERANGE( Equal, i-1 ); + i++; + } + i = startIdx; + + /* Proceed with the calculation for the requested range. + * Must have: + * - three consecutive and declining black candlesticks + * - each candle must have no or very short lower shadow + * - each candle after the first must open at or very close to the prior candle's close + * The meaning of "very short" is specified with TA_SetCandleSettings; + * the meaning of "very close" is specified with TA_SetCandleSettings (Equal); + * outInteger is negative (-1 to -100): identical three crows is always bearish; + * the user should consider that identical 3 crows is significant when it appears after a mature advance or at high levels, + * while this function does not consider it + */ + outIdx = 0; + do + { + if( TA_CANDLECOLOR(i-2) == -1 && // 1st black + // very short lower shadow + TA_LOWERSHADOW(i-2) < TA_CANDLEAVERAGE( ShadowVeryShort, ShadowVeryShortPeriodTotal[2], i-2 ) && + TA_CANDLECOLOR(i-1) == -1 && // 2nd black + // very short lower shadow + TA_LOWERSHADOW(i-1) < TA_CANDLEAVERAGE( ShadowVeryShort, ShadowVeryShortPeriodTotal[1], i-1 ) && + TA_CANDLECOLOR(i) == -1 && // 3rd black + // very short lower shadow + TA_LOWERSHADOW(i) < TA_CANDLEAVERAGE( ShadowVeryShort, ShadowVeryShortPeriodTotal[0], i ) && + inClose[i-2] > inClose[i-1] && // three declining + inClose[i-1] > inClose[i] && + // 2nd black opens very close to 1st close + inOpen[i-1] <= inClose[i-2] + TA_CANDLEAVERAGE( Equal, EqualPeriodTotal[2], i-2 ) && + inOpen[i-1] >= inClose[i-2] - TA_CANDLEAVERAGE( Equal, EqualPeriodTotal[2], i-2 ) && + // 3rd black opens very close to 2nd close + inOpen[i] <= inClose[i-1] + TA_CANDLEAVERAGE( Equal, EqualPeriodTotal[1], i-1 ) && + inOpen[i] >= inClose[i-1] - TA_CANDLEAVERAGE( Equal, EqualPeriodTotal[1], i-1 ) + ) + outInteger[outIdx++] = -100; + else + outInteger[outIdx++] = 0; + /* add the current range and subtract the first range: this is done after the pattern recognition + * when avgPeriod is not 0, that means "compare with the previous candles" (it excludes the current candle) + */ + for (totIdx = 2; totIdx >= 0; --totIdx) + ShadowVeryShortPeriodTotal[totIdx] += TA_CANDLERANGE( ShadowVeryShort, i-totIdx ) + - TA_CANDLERANGE( ShadowVeryShort, ShadowVeryShortTrailingIdx-totIdx ); + for (totIdx = 2; totIdx >= 1; --totIdx) + EqualPeriodTotal[totIdx] += TA_CANDLERANGE( Equal, i-totIdx ) + - TA_CANDLERANGE( Equal, EqualTrailingIdx-totIdx ); + i++; + ShadowVeryShortTrailingIdx++; + EqualTrailingIdx++; + } while( i <= endIdx ); + + /* All done. Indicate the output limits and return. */ + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::CdlIdentical3Crows( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inOpen, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cdlIdentical3Crows( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inOpen[], +/* Generated */ float inHigh[], +/* Generated */ float inLow[], +/* Generated */ float inClose[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_CDLIDENTICAL3CROWS( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inOpen[], +/* Generated */ const float inHigh[], +/* Generated */ const float inLow[], +/* Generated */ const float inClose[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ ARRAY_LOCAL(ShadowVeryShortPeriodTotal,3); +/* Generated */ ARRAY_LOCAL(EqualPeriodTotal,3); +/* Generated */ int i, outIdx, totIdx, ShadowVeryShortTrailingIdx, EqualTrailingIdx, lookbackTotal; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if(!inOpen||!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInteger ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ lookbackTotal = LOOKBACK_CALL(CDLIDENTICAL3CROWS)(); +/* Generated */ if( startIdx < lookbackTotal ) +/* Generated */ startIdx = lookbackTotal; +/* Generated */ if( startIdx > endIdx ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ ShadowVeryShortPeriodTotal[2] = 0; +/* Generated */ ShadowVeryShortPeriodTotal[1] = 0; +/* Generated */ ShadowVeryShortPeriodTotal[0] = 0; +/* Generated */ ShadowVeryShortTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(ShadowVeryShort); +/* Generated */ EqualPeriodTotal[2] = 0; +/* Generated */ EqualPeriodTotal[1] = 0; +/* Generated */ EqualPeriodTotal[0] = 0; +/* Generated */ EqualTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(Equal); +/* Generated */ i = ShadowVeryShortTrailingIdx; +/* Generated */ while( i < startIdx ) { +/* Generated */ ShadowVeryShortPeriodTotal[2] += TA_CANDLERANGE( ShadowVeryShort, i-2 ); +/* Generated */ ShadowVeryShortPeriodTotal[1] += TA_CANDLERANGE( ShadowVeryShort, i-1 ); +/* Generated */ ShadowVeryShortPeriodTotal[0] += TA_CANDLERANGE( ShadowVeryShort, i ); +/* Generated */ i++; +/* Generated */ } +/* Generated */ i = EqualTrailingIdx; +/* Generated */ while( i < startIdx ) { +/* Generated */ EqualPeriodTotal[2] += TA_CANDLERANGE( Equal, i-2 ); +/* Generated */ EqualPeriodTotal[1] += TA_CANDLERANGE( Equal, i-1 ); +/* Generated */ i++; +/* Generated */ } +/* Generated */ i = startIdx; +/* Generated */ outIdx = 0; +/* Generated */ do +/* Generated */ { +/* Generated */ if( TA_CANDLECOLOR(i-2) == -1 && // 1st black +/* Generated */ // very short lower shadow +/* Generated */ TA_LOWERSHADOW(i-2) < TA_CANDLEAVERAGE( ShadowVeryShort, ShadowVeryShortPeriodTotal[2], i-2 ) && +/* Generated */ TA_CANDLECOLOR(i-1) == -1 && // 2nd black +/* Generated */ // very short lower shadow +/* Generated */ TA_LOWERSHADOW(i-1) < TA_CANDLEAVERAGE( ShadowVeryShort, ShadowVeryShortPeriodTotal[1], i-1 ) && +/* Generated */ TA_CANDLECOLOR(i) == -1 && // 3rd black +/* Generated */ // very short lower shadow +/* Generated */ TA_LOWERSHADOW(i) < TA_CANDLEAVERAGE( ShadowVeryShort, ShadowVeryShortPeriodTotal[0], i ) && +/* Generated */ inClose[i-2] > inClose[i-1] && // three declining +/* Generated */ inClose[i-1] > inClose[i] && +/* Generated */ // 2nd black opens very close to 1st close +/* Generated */ inOpen[i-1] <= inClose[i-2] + TA_CANDLEAVERAGE( Equal, EqualPeriodTotal[2], i-2 ) && +/* Generated */ inOpen[i-1] >= inClose[i-2] - TA_CANDLEAVERAGE( Equal, EqualPeriodTotal[2], i-2 ) && +/* Generated */ // 3rd black opens very close to 2nd close +/* Generated */ inOpen[i] <= inClose[i-1] + TA_CANDLEAVERAGE( Equal, EqualPeriodTotal[1], i-1 ) && +/* Generated */ inOpen[i] >= inClose[i-1] - TA_CANDLEAVERAGE( Equal, EqualPeriodTotal[1], i-1 ) +/* Generated */ ) +/* Generated */ outInteger[outIdx++] = -100; +/* Generated */ else +/* Generated */ outInteger[outIdx++] = 0; +/* Generated */ for (totIdx = 2; totIdx >= 0; --totIdx) +/* Generated */ ShadowVeryShortPeriodTotal[totIdx] += TA_CANDLERANGE( ShadowVeryShort, i-totIdx ) +/* Generated */ - TA_CANDLERANGE( ShadowVeryShort, ShadowVeryShortTrailingIdx-totIdx ); +/* Generated */ for (totIdx = 2; totIdx >= 1; --totIdx) +/* Generated */ EqualPeriodTotal[totIdx] += TA_CANDLERANGE( Equal, i-totIdx ) +/* Generated */ - TA_CANDLERANGE( Equal, EqualTrailingIdx-totIdx ); +/* Generated */ i++; +/* Generated */ ShadowVeryShortTrailingIdx++; +/* Generated */ EqualTrailingIdx++; +/* Generated */ } while( i <= endIdx ); +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_CDLINNECK.c b/src/ta_func/ta_CDLINNECK.c new file mode 100644 index 000000000..3d22e1123 --- /dev/null +++ b/src/ta_func/ta_CDLINNECK.c @@ -0,0 +1,373 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * AC Angelo Ciceri + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 121104 AC Creation + * + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::CdlInNeckLookback( void ) +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int cdlInNeckLookback( ) +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_CDLINNECK_Lookback( void ) +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ /* No parameters to validate. */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + return max( TA_CANDLEAVGPERIOD(Equal), TA_CANDLEAVGPERIOD(BodyLong) + ) + 1; +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_CDLINNECK - In-Neck Pattern + * + * Input = Open, High, Low, Close + * Output = int + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::CdlInNeck( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inOpen, +/* Generated */ SubArray^ inHigh, +/* Generated */ SubArray^ inLow, +/* Generated */ SubArray^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::CdlInNeck( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inOpen, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cdlInNeck( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inOpen[], +/* Generated */ double inHigh[], +/* Generated */ double inLow[], +/* Generated */ double inClose[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_CDLINNECK( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inOpen[], +/* Generated */ const double inHigh[], +/* Generated */ const double inLow[], +/* Generated */ const double inClose[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* Insert local variables here. */ + double EqualPeriodTotal, BodyLongPeriodTotal; + int i, outIdx, EqualTrailingIdx, BodyLongTrailingIdx, lookbackTotal; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ /* Verify required price component. */ +/* Generated */ if(!inOpen||!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInteger ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Identify the minimum number of price bar needed + * to calculate at least one output. + */ + + lookbackTotal = LOOKBACK_CALL(CDLINNECK)(); + + /* Move up the start index if there is not + * enough initial data. + */ + if( startIdx < lookbackTotal ) + startIdx = lookbackTotal; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + + /* Do the calculation using tight loops. */ + /* Add-up the initial period, except for the last value. */ + EqualPeriodTotal = 0; + EqualTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(Equal); + BodyLongPeriodTotal = 0; + BodyLongTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(BodyLong); + + i = EqualTrailingIdx; + while( i < startIdx ) { + EqualPeriodTotal += TA_CANDLERANGE( Equal, i-1 ); + i++; + } + i = BodyLongTrailingIdx; + while( i < startIdx ) { + BodyLongPeriodTotal += TA_CANDLERANGE( BodyLong, i-1 ); + i++; + } + i = startIdx; + + /* Proceed with the calculation for the requested range. + * Must have: + * - first candle: long black candle + * - second candle: white candle with open below previous day low and close slightly into previous day body + * The meaning of "equal" is specified with TA_SetCandleSettings + * outInteger is negative (-1 to -100): in-neck is always bearish + * the user should consider that in-neck is significant when it appears in a downtrend, while this function + * does not consider it + */ + outIdx = 0; + do + { + if( TA_CANDLECOLOR(i-1) == -1 && // 1st: black + TA_REALBODY(i-1) > TA_CANDLEAVERAGE( BodyLong, BodyLongPeriodTotal, i-1 ) && // long + TA_CANDLECOLOR(i) == 1 && // 2nd: white + inOpen[i] < inLow[i-1] && // open below prior low + inClose[i] <= inClose[i-1] + TA_CANDLEAVERAGE( Equal, EqualPeriodTotal, i-1 ) && // close slightly into prior body + inClose[i] >= inClose[i-1] + ) + outInteger[outIdx++] = -100; + else + outInteger[outIdx++] = 0; + /* add the current range and subtract the first range: this is done after the pattern recognition + * when avgPeriod is not 0, that means "compare with the previous candles" (it excludes the current candle) + */ + EqualPeriodTotal += TA_CANDLERANGE( Equal, i-1 ) - TA_CANDLERANGE( Equal, EqualTrailingIdx-1 ); + BodyLongPeriodTotal += TA_CANDLERANGE( BodyLong, i-1 ) + - TA_CANDLERANGE( BodyLong, BodyLongTrailingIdx-1 ); + i++; + EqualTrailingIdx++; + BodyLongTrailingIdx++; + } while( i <= endIdx ); + + /* All done. Indicate the output limits and return. */ + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::CdlInNeck( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inOpen, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cdlInNeck( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inOpen[], +/* Generated */ float inHigh[], +/* Generated */ float inLow[], +/* Generated */ float inClose[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_CDLINNECK( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inOpen[], +/* Generated */ const float inHigh[], +/* Generated */ const float inLow[], +/* Generated */ const float inClose[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ double EqualPeriodTotal, BodyLongPeriodTotal; +/* Generated */ int i, outIdx, EqualTrailingIdx, BodyLongTrailingIdx, lookbackTotal; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if(!inOpen||!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInteger ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ lookbackTotal = LOOKBACK_CALL(CDLINNECK)(); +/* Generated */ if( startIdx < lookbackTotal ) +/* Generated */ startIdx = lookbackTotal; +/* Generated */ if( startIdx > endIdx ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ EqualPeriodTotal = 0; +/* Generated */ EqualTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(Equal); +/* Generated */ BodyLongPeriodTotal = 0; +/* Generated */ BodyLongTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(BodyLong); +/* Generated */ i = EqualTrailingIdx; +/* Generated */ while( i < startIdx ) { +/* Generated */ EqualPeriodTotal += TA_CANDLERANGE( Equal, i-1 ); +/* Generated */ i++; +/* Generated */ } +/* Generated */ i = BodyLongTrailingIdx; +/* Generated */ while( i < startIdx ) { +/* Generated */ BodyLongPeriodTotal += TA_CANDLERANGE( BodyLong, i-1 ); +/* Generated */ i++; +/* Generated */ } +/* Generated */ i = startIdx; +/* Generated */ outIdx = 0; +/* Generated */ do +/* Generated */ { +/* Generated */ if( TA_CANDLECOLOR(i-1) == -1 && // 1st: black +/* Generated */ TA_REALBODY(i-1) > TA_CANDLEAVERAGE( BodyLong, BodyLongPeriodTotal, i-1 ) && // long +/* Generated */ TA_CANDLECOLOR(i) == 1 && // 2nd: white +/* Generated */ inOpen[i] < inLow[i-1] && // open below prior low +/* Generated */ inClose[i] <= inClose[i-1] + TA_CANDLEAVERAGE( Equal, EqualPeriodTotal, i-1 ) && // close slightly into prior body +/* Generated */ inClose[i] >= inClose[i-1] +/* Generated */ ) +/* Generated */ outInteger[outIdx++] = -100; +/* Generated */ else +/* Generated */ outInteger[outIdx++] = 0; +/* Generated */ EqualPeriodTotal += TA_CANDLERANGE( Equal, i-1 ) - TA_CANDLERANGE( Equal, EqualTrailingIdx-1 ); +/* Generated */ BodyLongPeriodTotal += TA_CANDLERANGE( BodyLong, i-1 ) +/* Generated */ - TA_CANDLERANGE( BodyLong, BodyLongTrailingIdx-1 ); +/* Generated */ i++; +/* Generated */ EqualTrailingIdx++; +/* Generated */ BodyLongTrailingIdx++; +/* Generated */ } while( i <= endIdx ); +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_CDLINVERTEDHAMMER.c b/src/ta_func/ta_CDLINVERTEDHAMMER.c new file mode 100644 index 000000000..1e7743f96 --- /dev/null +++ b/src/ta_func/ta_CDLINVERTEDHAMMER.c @@ -0,0 +1,389 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * AC Angelo Ciceri + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 103004 AC Creation + * + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::CdlInvertedHammerLookback( void ) +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int cdlInvertedHammerLookback( ) +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_CDLINVERTEDHAMMER_Lookback( void ) +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ /* No parameters to validate. */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + return max( max( TA_CANDLEAVGPERIOD(BodyShort), TA_CANDLEAVGPERIOD(ShadowLong) ), + TA_CANDLEAVGPERIOD(ShadowVeryShort) + ) + 1; +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_CDLINVERTEDHAMMER - Inverted Hammer + * + * Input = Open, High, Low, Close + * Output = int + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::CdlInvertedHammer( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inOpen, +/* Generated */ SubArray^ inHigh, +/* Generated */ SubArray^ inLow, +/* Generated */ SubArray^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::CdlInvertedHammer( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inOpen, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cdlInvertedHammer( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inOpen[], +/* Generated */ double inHigh[], +/* Generated */ double inLow[], +/* Generated */ double inClose[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_CDLINVERTEDHAMMER( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inOpen[], +/* Generated */ const double inHigh[], +/* Generated */ const double inLow[], +/* Generated */ const double inClose[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* Insert local variables here. */ + double BodyPeriodTotal, ShadowLongPeriodTotal, ShadowVeryShortPeriodTotal; + int i, outIdx, BodyTrailingIdx, ShadowLongTrailingIdx, ShadowVeryShortTrailingIdx, lookbackTotal; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ /* Verify required price component. */ +/* Generated */ if(!inOpen||!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInteger ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Identify the minimum number of price bar needed + * to calculate at least one output. + */ + + lookbackTotal = LOOKBACK_CALL(CDLINVERTEDHAMMER)(); + + /* Move up the start index if there is not + * enough initial data. + */ + if( startIdx < lookbackTotal ) + startIdx = lookbackTotal; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + + /* Do the calculation using tight loops. */ + /* Add-up the initial period, except for the last value. */ + BodyPeriodTotal = 0; + BodyTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(BodyShort); + ShadowLongPeriodTotal = 0; + ShadowLongTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(ShadowLong); + ShadowVeryShortPeriodTotal = 0; + ShadowVeryShortTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(ShadowVeryShort); + + i = BodyTrailingIdx; + while( i < startIdx ) { + BodyPeriodTotal += TA_CANDLERANGE( BodyShort, i ); + i++; + } + i = ShadowLongTrailingIdx; + while( i < startIdx ) { + ShadowLongPeriodTotal += TA_CANDLERANGE( ShadowLong, i ); + i++; + } + i = ShadowVeryShortTrailingIdx; + while( i < startIdx ) { + ShadowVeryShortPeriodTotal += TA_CANDLERANGE( ShadowVeryShort, i ); + i++; + } + + /* Proceed with the calculation for the requested range. + * Must have: + * - small real body + * - long upper shadow + * - no, or very short, lower shadow + * - gap down + * The meaning of "short", "very short" and "long" is specified with TA_SetCandleSettings; + * outInteger is positive (1 to 100): inverted hammer is always bullish; + * the user should consider that an inverted hammer must appear in a downtrend, while this function does not consider it + */ + outIdx = 0; + do + { + if( TA_REALBODY(i) < TA_CANDLEAVERAGE( BodyShort, BodyPeriodTotal, i ) && // small rb + TA_UPPERSHADOW(i) > TA_CANDLEAVERAGE( ShadowLong, ShadowLongPeriodTotal, i ) && // long upper shadow + TA_LOWERSHADOW(i) < TA_CANDLEAVERAGE( ShadowVeryShort, ShadowVeryShortPeriodTotal, i ) && // very short lower shadow + TA_REALBODYGAPDOWN(i, i-1) ) // gap down + outInteger[outIdx++] = 100; + else + outInteger[outIdx++] = 0; + /* add the current range and subtract the first range: this is done after the pattern recognition + * when avgPeriod is not 0, that means "compare with the previous candles" (it excludes the current candle) + */ + BodyPeriodTotal += TA_CANDLERANGE( BodyShort, i ) + - TA_CANDLERANGE( BodyShort, BodyTrailingIdx ); + ShadowLongPeriodTotal += TA_CANDLERANGE( ShadowLong, i ) + - TA_CANDLERANGE( ShadowLong, ShadowLongTrailingIdx ); + ShadowVeryShortPeriodTotal += TA_CANDLERANGE( ShadowVeryShort, i ) + - TA_CANDLERANGE( ShadowVeryShort, ShadowVeryShortTrailingIdx ); + i++; + BodyTrailingIdx++; + ShadowLongTrailingIdx++; + ShadowVeryShortTrailingIdx++; + } while( i <= endIdx ); + + /* All done. Indicate the output limits and return. */ + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::CdlInvertedHammer( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inOpen, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cdlInvertedHammer( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inOpen[], +/* Generated */ float inHigh[], +/* Generated */ float inLow[], +/* Generated */ float inClose[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_CDLINVERTEDHAMMER( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inOpen[], +/* Generated */ const float inHigh[], +/* Generated */ const float inLow[], +/* Generated */ const float inClose[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ double BodyPeriodTotal, ShadowLongPeriodTotal, ShadowVeryShortPeriodTotal; +/* Generated */ int i, outIdx, BodyTrailingIdx, ShadowLongTrailingIdx, ShadowVeryShortTrailingIdx, lookbackTotal; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if(!inOpen||!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInteger ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ lookbackTotal = LOOKBACK_CALL(CDLINVERTEDHAMMER)(); +/* Generated */ if( startIdx < lookbackTotal ) +/* Generated */ startIdx = lookbackTotal; +/* Generated */ if( startIdx > endIdx ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ BodyPeriodTotal = 0; +/* Generated */ BodyTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(BodyShort); +/* Generated */ ShadowLongPeriodTotal = 0; +/* Generated */ ShadowLongTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(ShadowLong); +/* Generated */ ShadowVeryShortPeriodTotal = 0; +/* Generated */ ShadowVeryShortTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(ShadowVeryShort); +/* Generated */ i = BodyTrailingIdx; +/* Generated */ while( i < startIdx ) { +/* Generated */ BodyPeriodTotal += TA_CANDLERANGE( BodyShort, i ); +/* Generated */ i++; +/* Generated */ } +/* Generated */ i = ShadowLongTrailingIdx; +/* Generated */ while( i < startIdx ) { +/* Generated */ ShadowLongPeriodTotal += TA_CANDLERANGE( ShadowLong, i ); +/* Generated */ i++; +/* Generated */ } +/* Generated */ i = ShadowVeryShortTrailingIdx; +/* Generated */ while( i < startIdx ) { +/* Generated */ ShadowVeryShortPeriodTotal += TA_CANDLERANGE( ShadowVeryShort, i ); +/* Generated */ i++; +/* Generated */ } +/* Generated */ outIdx = 0; +/* Generated */ do +/* Generated */ { +/* Generated */ if( TA_REALBODY(i) < TA_CANDLEAVERAGE( BodyShort, BodyPeriodTotal, i ) && // small rb +/* Generated */ TA_UPPERSHADOW(i) > TA_CANDLEAVERAGE( ShadowLong, ShadowLongPeriodTotal, i ) && // long upper shadow +/* Generated */ TA_LOWERSHADOW(i) < TA_CANDLEAVERAGE( ShadowVeryShort, ShadowVeryShortPeriodTotal, i ) && // very short lower shadow +/* Generated */ TA_REALBODYGAPDOWN(i, i-1) ) // gap down +/* Generated */ outInteger[outIdx++] = 100; +/* Generated */ else +/* Generated */ outInteger[outIdx++] = 0; +/* Generated */ BodyPeriodTotal += TA_CANDLERANGE( BodyShort, i ) +/* Generated */ - TA_CANDLERANGE( BodyShort, BodyTrailingIdx ); +/* Generated */ ShadowLongPeriodTotal += TA_CANDLERANGE( ShadowLong, i ) +/* Generated */ - TA_CANDLERANGE( ShadowLong, ShadowLongTrailingIdx ); +/* Generated */ ShadowVeryShortPeriodTotal += TA_CANDLERANGE( ShadowVeryShort, i ) +/* Generated */ - TA_CANDLERANGE( ShadowVeryShort, ShadowVeryShortTrailingIdx ); +/* Generated */ i++; +/* Generated */ BodyTrailingIdx++; +/* Generated */ ShadowLongTrailingIdx++; +/* Generated */ ShadowVeryShortTrailingIdx++; +/* Generated */ } while( i <= endIdx ); +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_CDLKICKING.c b/src/ta_func/ta_CDLKICKING.c new file mode 100644 index 000000000..ad9a77753 --- /dev/null +++ b/src/ta_func/ta_CDLKICKING.c @@ -0,0 +1,406 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * AC Angelo Ciceri + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 010705 AC Creation + * + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::CdlKickingLookback( void ) +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int cdlKickingLookback( ) +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_CDLKICKING_Lookback( void ) +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ /* No parameters to validate. */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + return max( TA_CANDLEAVGPERIOD(ShadowVeryShort), TA_CANDLEAVGPERIOD(BodyLong) + ) + 1; +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_CDLKICKING - Kicking + * + * Input = Open, High, Low, Close + * Output = int + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::CdlKicking( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inOpen, +/* Generated */ SubArray^ inHigh, +/* Generated */ SubArray^ inLow, +/* Generated */ SubArray^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::CdlKicking( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inOpen, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cdlKicking( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inOpen[], +/* Generated */ double inHigh[], +/* Generated */ double inLow[], +/* Generated */ double inClose[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_CDLKICKING( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inOpen[], +/* Generated */ const double inHigh[], +/* Generated */ const double inLow[], +/* Generated */ const double inClose[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* Insert local variables here. */ + ARRAY_LOCAL(ShadowVeryShortPeriodTotal,2); + ARRAY_LOCAL(BodyLongPeriodTotal,2); + int i, outIdx, totIdx, ShadowVeryShortTrailingIdx, BodyLongTrailingIdx, lookbackTotal; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ /* Verify required price component. */ +/* Generated */ if(!inOpen||!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInteger ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Identify the minimum number of price bar needed + * to calculate at least one output. + */ + + lookbackTotal = LOOKBACK_CALL(CDLKICKING)(); + + /* Move up the start index if there is not + * enough initial data. + */ + if( startIdx < lookbackTotal ) + startIdx = lookbackTotal; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + + /* Do the calculation using tight loops. */ + /* Add-up the initial period, except for the last value. */ + ShadowVeryShortPeriodTotal[1] = 0; + ShadowVeryShortPeriodTotal[0] = 0; + ShadowVeryShortTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(ShadowVeryShort); + BodyLongPeriodTotal[1] = 0; + BodyLongPeriodTotal[0] = 0; + BodyLongTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(BodyLong); + + i = ShadowVeryShortTrailingIdx; + while( i < startIdx ) { + ShadowVeryShortPeriodTotal[1] += TA_CANDLERANGE( ShadowVeryShort, i-1 ); + ShadowVeryShortPeriodTotal[0] += TA_CANDLERANGE( ShadowVeryShort, i ); + i++; + } + i = BodyLongTrailingIdx; + while( i < startIdx ) { + BodyLongPeriodTotal[1] += TA_CANDLERANGE( BodyLong, i-1 ); + BodyLongPeriodTotal[0] += TA_CANDLERANGE( BodyLong, i ); + i++; + } + i = startIdx; + + /* Proceed with the calculation for the requested range. + * Must have: + * - first candle: marubozu + * - second candle: opposite color marubozu + * - gap between the two candles: upside gap if black then white, downside gap if white then black + * The meaning of "long body" and "very short shadow" is specified with TA_SetCandleSettings + * outInteger is positive (1 to 100) when bullish or negative (-1 to -100) when bearish + */ + outIdx = 0; + do + { + if( TA_CANDLECOLOR(i-1) == -TA_CANDLECOLOR(i) && // opposite candles + // 1st marubozu + TA_REALBODY(i-1) > TA_CANDLEAVERAGE( BodyLong, BodyLongPeriodTotal[1], i-1 ) && + TA_UPPERSHADOW(i-1) < TA_CANDLEAVERAGE( ShadowVeryShort, ShadowVeryShortPeriodTotal[1], i-1 ) && + TA_LOWERSHADOW(i-1) < TA_CANDLEAVERAGE( ShadowVeryShort, ShadowVeryShortPeriodTotal[1], i-1 ) && + // 2nd marubozu + TA_REALBODY(i) > TA_CANDLEAVERAGE( BodyLong, BodyLongPeriodTotal[0], i ) && + TA_UPPERSHADOW(i) < TA_CANDLEAVERAGE( ShadowVeryShort, ShadowVeryShortPeriodTotal[0], i ) && + TA_LOWERSHADOW(i) < TA_CANDLEAVERAGE( ShadowVeryShort, ShadowVeryShortPeriodTotal[0], i ) && + // gap + ( + ( TA_CANDLECOLOR(i-1) == -1 && TA_CANDLEGAPUP(i,i-1) ) + || + ( TA_CANDLECOLOR(i-1) == 1 && TA_CANDLEGAPDOWN(i,i-1) ) + ) + ) + outInteger[outIdx++] = TA_CANDLECOLOR(i) * 100; + else + outInteger[outIdx++] = 0; + /* add the current range and subtract the first range: this is done after the pattern recognition + * when avgPeriod is not 0, that means "compare with the previous candles" (it excludes the current candle) + */ + for (totIdx = 1; totIdx >= 0; --totIdx) { + BodyLongPeriodTotal[totIdx] += TA_CANDLERANGE( BodyLong, i-totIdx ) + - TA_CANDLERANGE( BodyLong, BodyLongTrailingIdx-totIdx ); + ShadowVeryShortPeriodTotal[totIdx] += TA_CANDLERANGE( ShadowVeryShort, i-totIdx ) + - TA_CANDLERANGE( ShadowVeryShort, ShadowVeryShortTrailingIdx-totIdx ); + } + i++; + ShadowVeryShortTrailingIdx++; + BodyLongTrailingIdx++; + } while( i <= endIdx ); + + /* All done. Indicate the output limits and return. */ + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::CdlKicking( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inOpen, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cdlKicking( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inOpen[], +/* Generated */ float inHigh[], +/* Generated */ float inLow[], +/* Generated */ float inClose[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_CDLKICKING( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inOpen[], +/* Generated */ const float inHigh[], +/* Generated */ const float inLow[], +/* Generated */ const float inClose[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ ARRAY_LOCAL(ShadowVeryShortPeriodTotal,2); +/* Generated */ ARRAY_LOCAL(BodyLongPeriodTotal,2); +/* Generated */ int i, outIdx, totIdx, ShadowVeryShortTrailingIdx, BodyLongTrailingIdx, lookbackTotal; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if(!inOpen||!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInteger ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ lookbackTotal = LOOKBACK_CALL(CDLKICKING)(); +/* Generated */ if( startIdx < lookbackTotal ) +/* Generated */ startIdx = lookbackTotal; +/* Generated */ if( startIdx > endIdx ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ ShadowVeryShortPeriodTotal[1] = 0; +/* Generated */ ShadowVeryShortPeriodTotal[0] = 0; +/* Generated */ ShadowVeryShortTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(ShadowVeryShort); +/* Generated */ BodyLongPeriodTotal[1] = 0; +/* Generated */ BodyLongPeriodTotal[0] = 0; +/* Generated */ BodyLongTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(BodyLong); +/* Generated */ i = ShadowVeryShortTrailingIdx; +/* Generated */ while( i < startIdx ) { +/* Generated */ ShadowVeryShortPeriodTotal[1] += TA_CANDLERANGE( ShadowVeryShort, i-1 ); +/* Generated */ ShadowVeryShortPeriodTotal[0] += TA_CANDLERANGE( ShadowVeryShort, i ); +/* Generated */ i++; +/* Generated */ } +/* Generated */ i = BodyLongTrailingIdx; +/* Generated */ while( i < startIdx ) { +/* Generated */ BodyLongPeriodTotal[1] += TA_CANDLERANGE( BodyLong, i-1 ); +/* Generated */ BodyLongPeriodTotal[0] += TA_CANDLERANGE( BodyLong, i ); +/* Generated */ i++; +/* Generated */ } +/* Generated */ i = startIdx; +/* Generated */ outIdx = 0; +/* Generated */ do +/* Generated */ { +/* Generated */ if( TA_CANDLECOLOR(i-1) == -TA_CANDLECOLOR(i) && // opposite candles +/* Generated */ // 1st marubozu +/* Generated */ TA_REALBODY(i-1) > TA_CANDLEAVERAGE( BodyLong, BodyLongPeriodTotal[1], i-1 ) && +/* Generated */ TA_UPPERSHADOW(i-1) < TA_CANDLEAVERAGE( ShadowVeryShort, ShadowVeryShortPeriodTotal[1], i-1 ) && +/* Generated */ TA_LOWERSHADOW(i-1) < TA_CANDLEAVERAGE( ShadowVeryShort, ShadowVeryShortPeriodTotal[1], i-1 ) && +/* Generated */ // 2nd marubozu +/* Generated */ TA_REALBODY(i) > TA_CANDLEAVERAGE( BodyLong, BodyLongPeriodTotal[0], i ) && +/* Generated */ TA_UPPERSHADOW(i) < TA_CANDLEAVERAGE( ShadowVeryShort, ShadowVeryShortPeriodTotal[0], i ) && +/* Generated */ TA_LOWERSHADOW(i) < TA_CANDLEAVERAGE( ShadowVeryShort, ShadowVeryShortPeriodTotal[0], i ) && +/* Generated */ // gap +/* Generated */ ( +/* Generated */ ( TA_CANDLECOLOR(i-1) == -1 && TA_CANDLEGAPUP(i,i-1) ) +/* Generated */ || +/* Generated */ ( TA_CANDLECOLOR(i-1) == 1 && TA_CANDLEGAPDOWN(i,i-1) ) +/* Generated */ ) +/* Generated */ ) +/* Generated */ outInteger[outIdx++] = TA_CANDLECOLOR(i) * 100; +/* Generated */ else +/* Generated */ outInteger[outIdx++] = 0; +/* Generated */ for (totIdx = 1; totIdx >= 0; --totIdx) { +/* Generated */ BodyLongPeriodTotal[totIdx] += TA_CANDLERANGE( BodyLong, i-totIdx ) +/* Generated */ - TA_CANDLERANGE( BodyLong, BodyLongTrailingIdx-totIdx ); +/* Generated */ ShadowVeryShortPeriodTotal[totIdx] += TA_CANDLERANGE( ShadowVeryShort, i-totIdx ) +/* Generated */ - TA_CANDLERANGE( ShadowVeryShort, ShadowVeryShortTrailingIdx-totIdx ); +/* Generated */ } +/* Generated */ i++; +/* Generated */ ShadowVeryShortTrailingIdx++; +/* Generated */ BodyLongTrailingIdx++; +/* Generated */ } while( i <= endIdx ); +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_CDLKICKINGBYLENGTH.c b/src/ta_func/ta_CDLKICKINGBYLENGTH.c new file mode 100644 index 000000000..f432737fa --- /dev/null +++ b/src/ta_func/ta_CDLKICKINGBYLENGTH.c @@ -0,0 +1,407 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * AC Angelo Ciceri + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 011505 AC Creation + * + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::CdlKickingByLengthLookback( void ) +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int cdlKickingByLengthLookback( ) +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_CDLKICKINGBYLENGTH_Lookback( void ) +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ /* No parameters to validate. */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + return max( TA_CANDLEAVGPERIOD(ShadowVeryShort), TA_CANDLEAVGPERIOD(BodyLong) + ) + 1; +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_CDLKICKINGBYLENGTH - Kicking - bull/bear determined by the longer marubozu + * + * Input = Open, High, Low, Close + * Output = int + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::CdlKickingByLength( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inOpen, +/* Generated */ SubArray^ inHigh, +/* Generated */ SubArray^ inLow, +/* Generated */ SubArray^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::CdlKickingByLength( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inOpen, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cdlKickingByLength( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inOpen[], +/* Generated */ double inHigh[], +/* Generated */ double inLow[], +/* Generated */ double inClose[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_CDLKICKINGBYLENGTH( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inOpen[], +/* Generated */ const double inHigh[], +/* Generated */ const double inLow[], +/* Generated */ const double inClose[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* Insert local variables here. */ + ARRAY_LOCAL(ShadowVeryShortPeriodTotal,2); + ARRAY_LOCAL(BodyLongPeriodTotal,2); + int i, outIdx, totIdx, ShadowVeryShortTrailingIdx, BodyLongTrailingIdx, lookbackTotal; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ /* Verify required price component. */ +/* Generated */ if(!inOpen||!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInteger ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Identify the minimum number of price bar needed + * to calculate at least one output. + */ + + lookbackTotal = LOOKBACK_CALL(CDLKICKINGBYLENGTH)(); + + /* Move up the start index if there is not + * enough initial data. + */ + if( startIdx < lookbackTotal ) + startIdx = lookbackTotal; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + + /* Do the calculation using tight loops. */ + /* Add-up the initial period, except for the last value. */ + ShadowVeryShortPeriodTotal[1] = 0; + ShadowVeryShortPeriodTotal[0] = 0; + ShadowVeryShortTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(ShadowVeryShort); + BodyLongPeriodTotal[1] = 0; + BodyLongPeriodTotal[0] = 0; + BodyLongTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(BodyLong); + + i = ShadowVeryShortTrailingIdx; + while( i < startIdx ) { + ShadowVeryShortPeriodTotal[1] += TA_CANDLERANGE( ShadowVeryShort, i-1 ); + ShadowVeryShortPeriodTotal[0] += TA_CANDLERANGE( ShadowVeryShort, i ); + i++; + } + i = BodyLongTrailingIdx; + while( i < startIdx ) { + BodyLongPeriodTotal[1] += TA_CANDLERANGE( BodyLong, i-1 ); + BodyLongPeriodTotal[0] += TA_CANDLERANGE( BodyLong, i ); + i++; + } + i = startIdx; + + /* Proceed with the calculation for the requested range. + * Must have: + * - first candle: marubozu + * - second candle: opposite color marubozu + * - gap between the two candles: upside gap if black then white, downside gap if white then black + * The meaning of "long body" and "very short shadow" is specified with TA_SetCandleSettings + * outInteger is positive (1 to 100) when bullish or negative (-1 to -100) when bearish; the longer of the two + * marubozu determines the bullishness or bearishness of this pattern + */ + outIdx = 0; + do + { + if( TA_CANDLECOLOR(i-1) == -TA_CANDLECOLOR(i) && // opposite candles + // 1st marubozu + TA_REALBODY(i-1) > TA_CANDLEAVERAGE( BodyLong, BodyLongPeriodTotal[1], i-1 ) && + TA_UPPERSHADOW(i-1) < TA_CANDLEAVERAGE( ShadowVeryShort, ShadowVeryShortPeriodTotal[1], i-1 ) && + TA_LOWERSHADOW(i-1) < TA_CANDLEAVERAGE( ShadowVeryShort, ShadowVeryShortPeriodTotal[1], i-1 ) && + // 2nd marubozu + TA_REALBODY(i) > TA_CANDLEAVERAGE( BodyLong, BodyLongPeriodTotal[0], i ) && + TA_UPPERSHADOW(i) < TA_CANDLEAVERAGE( ShadowVeryShort, ShadowVeryShortPeriodTotal[0], i ) && + TA_LOWERSHADOW(i) < TA_CANDLEAVERAGE( ShadowVeryShort, ShadowVeryShortPeriodTotal[0], i ) && + // gap + ( + ( TA_CANDLECOLOR(i-1) == -1 && TA_CANDLEGAPUP(i,i-1) ) + || + ( TA_CANDLECOLOR(i-1) == 1 && TA_CANDLEGAPDOWN(i,i-1) ) + ) + ) + outInteger[outIdx++] = TA_CANDLECOLOR( ( TA_REALBODY(i) > TA_REALBODY(i-1) ? i : i-1 ) ) * 100; + else + outInteger[outIdx++] = 0; + /* add the current range and subtract the first range: this is done after the pattern recognition + * when avgPeriod is not 0, that means "compare with the previous candles" (it excludes the current candle) + */ + for (totIdx = 1; totIdx >= 0; --totIdx) { + BodyLongPeriodTotal[totIdx] += TA_CANDLERANGE( BodyLong, i-totIdx ) + - TA_CANDLERANGE( BodyLong, BodyLongTrailingIdx-totIdx ); + ShadowVeryShortPeriodTotal[totIdx] += TA_CANDLERANGE( ShadowVeryShort, i-totIdx ) + - TA_CANDLERANGE( ShadowVeryShort, ShadowVeryShortTrailingIdx-totIdx ); + } + i++; + ShadowVeryShortTrailingIdx++; + BodyLongTrailingIdx++; + } while( i <= endIdx ); + + /* All done. Indicate the output limits and return. */ + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::CdlKickingByLength( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inOpen, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cdlKickingByLength( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inOpen[], +/* Generated */ float inHigh[], +/* Generated */ float inLow[], +/* Generated */ float inClose[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_CDLKICKINGBYLENGTH( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inOpen[], +/* Generated */ const float inHigh[], +/* Generated */ const float inLow[], +/* Generated */ const float inClose[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ ARRAY_LOCAL(ShadowVeryShortPeriodTotal,2); +/* Generated */ ARRAY_LOCAL(BodyLongPeriodTotal,2); +/* Generated */ int i, outIdx, totIdx, ShadowVeryShortTrailingIdx, BodyLongTrailingIdx, lookbackTotal; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if(!inOpen||!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInteger ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ lookbackTotal = LOOKBACK_CALL(CDLKICKINGBYLENGTH)(); +/* Generated */ if( startIdx < lookbackTotal ) +/* Generated */ startIdx = lookbackTotal; +/* Generated */ if( startIdx > endIdx ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ ShadowVeryShortPeriodTotal[1] = 0; +/* Generated */ ShadowVeryShortPeriodTotal[0] = 0; +/* Generated */ ShadowVeryShortTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(ShadowVeryShort); +/* Generated */ BodyLongPeriodTotal[1] = 0; +/* Generated */ BodyLongPeriodTotal[0] = 0; +/* Generated */ BodyLongTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(BodyLong); +/* Generated */ i = ShadowVeryShortTrailingIdx; +/* Generated */ while( i < startIdx ) { +/* Generated */ ShadowVeryShortPeriodTotal[1] += TA_CANDLERANGE( ShadowVeryShort, i-1 ); +/* Generated */ ShadowVeryShortPeriodTotal[0] += TA_CANDLERANGE( ShadowVeryShort, i ); +/* Generated */ i++; +/* Generated */ } +/* Generated */ i = BodyLongTrailingIdx; +/* Generated */ while( i < startIdx ) { +/* Generated */ BodyLongPeriodTotal[1] += TA_CANDLERANGE( BodyLong, i-1 ); +/* Generated */ BodyLongPeriodTotal[0] += TA_CANDLERANGE( BodyLong, i ); +/* Generated */ i++; +/* Generated */ } +/* Generated */ i = startIdx; +/* Generated */ outIdx = 0; +/* Generated */ do +/* Generated */ { +/* Generated */ if( TA_CANDLECOLOR(i-1) == -TA_CANDLECOLOR(i) && // opposite candles +/* Generated */ // 1st marubozu +/* Generated */ TA_REALBODY(i-1) > TA_CANDLEAVERAGE( BodyLong, BodyLongPeriodTotal[1], i-1 ) && +/* Generated */ TA_UPPERSHADOW(i-1) < TA_CANDLEAVERAGE( ShadowVeryShort, ShadowVeryShortPeriodTotal[1], i-1 ) && +/* Generated */ TA_LOWERSHADOW(i-1) < TA_CANDLEAVERAGE( ShadowVeryShort, ShadowVeryShortPeriodTotal[1], i-1 ) && +/* Generated */ // 2nd marubozu +/* Generated */ TA_REALBODY(i) > TA_CANDLEAVERAGE( BodyLong, BodyLongPeriodTotal[0], i ) && +/* Generated */ TA_UPPERSHADOW(i) < TA_CANDLEAVERAGE( ShadowVeryShort, ShadowVeryShortPeriodTotal[0], i ) && +/* Generated */ TA_LOWERSHADOW(i) < TA_CANDLEAVERAGE( ShadowVeryShort, ShadowVeryShortPeriodTotal[0], i ) && +/* Generated */ // gap +/* Generated */ ( +/* Generated */ ( TA_CANDLECOLOR(i-1) == -1 && TA_CANDLEGAPUP(i,i-1) ) +/* Generated */ || +/* Generated */ ( TA_CANDLECOLOR(i-1) == 1 && TA_CANDLEGAPDOWN(i,i-1) ) +/* Generated */ ) +/* Generated */ ) +/* Generated */ outInteger[outIdx++] = TA_CANDLECOLOR( ( TA_REALBODY(i) > TA_REALBODY(i-1) ? i : i-1 ) ) * 100; +/* Generated */ else +/* Generated */ outInteger[outIdx++] = 0; +/* Generated */ for (totIdx = 1; totIdx >= 0; --totIdx) { +/* Generated */ BodyLongPeriodTotal[totIdx] += TA_CANDLERANGE( BodyLong, i-totIdx ) +/* Generated */ - TA_CANDLERANGE( BodyLong, BodyLongTrailingIdx-totIdx ); +/* Generated */ ShadowVeryShortPeriodTotal[totIdx] += TA_CANDLERANGE( ShadowVeryShort, i-totIdx ) +/* Generated */ - TA_CANDLERANGE( ShadowVeryShort, ShadowVeryShortTrailingIdx-totIdx ); +/* Generated */ } +/* Generated */ i++; +/* Generated */ ShadowVeryShortTrailingIdx++; +/* Generated */ BodyLongTrailingIdx++; +/* Generated */ } while( i <= endIdx ); +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_CDLLADDERBOTTOM.c b/src/ta_func/ta_CDLLADDERBOTTOM.c new file mode 100644 index 000000000..d6eb75f22 --- /dev/null +++ b/src/ta_func/ta_CDLLADDERBOTTOM.c @@ -0,0 +1,361 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * AC Angelo Ciceri + * MF Mario Fortier + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 032005 AC Creation + * 041305 MF Minor modification for a compiler warning + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::CdlLadderBottomLookback( void ) +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int cdlLadderBottomLookback( ) +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_CDLLADDERBOTTOM_Lookback( void ) +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ /* No parameters to validate. */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + return TA_CANDLEAVGPERIOD(ShadowVeryShort) + 4; +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_CDLLADDERBOTTOM - Ladder Bottom + * + * Input = Open, High, Low, Close + * Output = int + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::CdlLadderBottom( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inOpen, +/* Generated */ SubArray^ inHigh, +/* Generated */ SubArray^ inLow, +/* Generated */ SubArray^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::CdlLadderBottom( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inOpen, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cdlLadderBottom( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inOpen[], +/* Generated */ double inHigh[], +/* Generated */ double inLow[], +/* Generated */ double inClose[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_CDLLADDERBOTTOM( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inOpen[], +/* Generated */ const double inHigh[], +/* Generated */ const double inLow[], +/* Generated */ const double inClose[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* Insert local variables here. */ + double ShadowVeryShortPeriodTotal; + int i, outIdx, ShadowVeryShortTrailingIdx, lookbackTotal; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ /* Verify required price component. */ +/* Generated */ if(!inOpen||!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInteger ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Identify the minimum number of price bar needed + * to calculate at least one output. + */ + + lookbackTotal = LOOKBACK_CALL(CDLLADDERBOTTOM)(); + + /* Move up the start index if there is not + * enough initial data. + */ + if( startIdx < lookbackTotal ) + startIdx = lookbackTotal; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + + /* Do the calculation using tight loops. */ + /* Add-up the initial period, except for the last value. */ + ShadowVeryShortPeriodTotal = 0; + ShadowVeryShortTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(ShadowVeryShort); + + i = ShadowVeryShortTrailingIdx; + while( i < startIdx ) { + ShadowVeryShortPeriodTotal += TA_CANDLERANGE( ShadowVeryShort, i-1 ); + i++; + } + i = startIdx; + + /* Proceed with the calculation for the requested range. + * Must have: + * - three black candlesticks with consecutively lower opens and closes + * - fourth candle: black candle with an upper shadow (it's supposed to be not very short) + * - fifth candle: white candle that opens above prior candle's body and closes above prior candle's high + * The meaning of "very short" is specified with TA_SetCandleSettings + * outInteger is positive (1 to 100): ladder bottom is always bullish; + * the user should consider that ladder bottom is significant when it appears in a downtrend, + * while this function does not consider it + */ + outIdx = 0; + do + { + if( + TA_CANDLECOLOR(i-4) == -1 && TA_CANDLECOLOR(i-3) == -1 && TA_CANDLECOLOR(i-2) == -1 && // 3 black candlesticks + inOpen[i-4] > inOpen[i-3] && inOpen[i-3] > inOpen[i-2] && // with consecutively lower opens + inClose[i-4] > inClose[i-3] && inClose[i-3] > inClose[i-2] && // and closes + TA_CANDLECOLOR(i-1) == -1 && // 4th: black with an upper shadow + TA_UPPERSHADOW(i-1) > TA_CANDLEAVERAGE( ShadowVeryShort, ShadowVeryShortPeriodTotal, i-1 ) && + TA_CANDLECOLOR(i) == 1 && // 5th: white + inOpen[i] > inOpen[i-1] && // that opens above prior candle's body + inClose[i] > inHigh[i-1] // and closes above prior candle's high + ) + outInteger[outIdx++] = 100; + else + outInteger[outIdx++] = 0; + /* add the current range and subtract the first range: this is done after the pattern recognition + * when avgPeriod is not 0, that means "compare with the previous candles" (it excludes the current candle) + */ + ShadowVeryShortPeriodTotal += TA_CANDLERANGE( ShadowVeryShort, i-1 ) + - TA_CANDLERANGE( ShadowVeryShort, ShadowVeryShortTrailingIdx-1 ); + i++; + ShadowVeryShortTrailingIdx++; + } while( i <= endIdx ); + + /* All done. Indicate the output limits and return. */ + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::CdlLadderBottom( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inOpen, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cdlLadderBottom( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inOpen[], +/* Generated */ float inHigh[], +/* Generated */ float inLow[], +/* Generated */ float inClose[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_CDLLADDERBOTTOM( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inOpen[], +/* Generated */ const float inHigh[], +/* Generated */ const float inLow[], +/* Generated */ const float inClose[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ double ShadowVeryShortPeriodTotal; +/* Generated */ int i, outIdx, ShadowVeryShortTrailingIdx, lookbackTotal; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if(!inOpen||!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInteger ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ lookbackTotal = LOOKBACK_CALL(CDLLADDERBOTTOM)(); +/* Generated */ if( startIdx < lookbackTotal ) +/* Generated */ startIdx = lookbackTotal; +/* Generated */ if( startIdx > endIdx ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ ShadowVeryShortPeriodTotal = 0; +/* Generated */ ShadowVeryShortTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(ShadowVeryShort); +/* Generated */ i = ShadowVeryShortTrailingIdx; +/* Generated */ while( i < startIdx ) { +/* Generated */ ShadowVeryShortPeriodTotal += TA_CANDLERANGE( ShadowVeryShort, i-1 ); +/* Generated */ i++; +/* Generated */ } +/* Generated */ i = startIdx; +/* Generated */ outIdx = 0; +/* Generated */ do +/* Generated */ { +/* Generated */ if( +/* Generated */ TA_CANDLECOLOR(i-4) == -1 && TA_CANDLECOLOR(i-3) == -1 && TA_CANDLECOLOR(i-2) == -1 && // 3 black candlesticks +/* Generated */ inOpen[i-4] > inOpen[i-3] && inOpen[i-3] > inOpen[i-2] && // with consecutively lower opens +/* Generated */ inClose[i-4] > inClose[i-3] && inClose[i-3] > inClose[i-2] && // and closes +/* Generated */ TA_CANDLECOLOR(i-1) == -1 && // 4th: black with an upper shadow +/* Generated */ TA_UPPERSHADOW(i-1) > TA_CANDLEAVERAGE( ShadowVeryShort, ShadowVeryShortPeriodTotal, i-1 ) && +/* Generated */ TA_CANDLECOLOR(i) == 1 && // 5th: white +/* Generated */ inOpen[i] > inOpen[i-1] && // that opens above prior candle's body +/* Generated */ inClose[i] > inHigh[i-1] // and closes above prior candle's high +/* Generated */ ) +/* Generated */ outInteger[outIdx++] = 100; +/* Generated */ else +/* Generated */ outInteger[outIdx++] = 0; +/* Generated */ ShadowVeryShortPeriodTotal += TA_CANDLERANGE( ShadowVeryShort, i-1 ) +/* Generated */ - TA_CANDLERANGE( ShadowVeryShort, ShadowVeryShortTrailingIdx-1 ); +/* Generated */ i++; +/* Generated */ ShadowVeryShortTrailingIdx++; +/* Generated */ } while( i <= endIdx ); +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_CDLLONGLEGGEDDOJI.c b/src/ta_func/ta_CDLLONGLEGGEDDOJI.c new file mode 100644 index 000000000..3548c687c --- /dev/null +++ b/src/ta_func/ta_CDLLONGLEGGEDDOJI.c @@ -0,0 +1,365 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * AC Angelo Ciceri + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 011505 AC Creation + * + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::CdlLongLeggedDojiLookback( void ) +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int cdlLongLeggedDojiLookback( ) +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_CDLLONGLEGGEDDOJI_Lookback( void ) +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ /* No parameters to validate. */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + return max( TA_CANDLEAVGPERIOD(BodyDoji), TA_CANDLEAVGPERIOD(ShadowLong) ); +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_CDLLONGLEGGEDDOJI - Long Legged Doji + * + * Input = Open, High, Low, Close + * Output = int + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::CdlLongLeggedDoji( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inOpen, +/* Generated */ SubArray^ inHigh, +/* Generated */ SubArray^ inLow, +/* Generated */ SubArray^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::CdlLongLeggedDoji( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inOpen, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cdlLongLeggedDoji( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inOpen[], +/* Generated */ double inHigh[], +/* Generated */ double inLow[], +/* Generated */ double inClose[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_CDLLONGLEGGEDDOJI( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inOpen[], +/* Generated */ const double inHigh[], +/* Generated */ const double inLow[], +/* Generated */ const double inClose[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* Insert local variables here. */ + double BodyDojiPeriodTotal, ShadowLongPeriodTotal; + int i, outIdx, BodyDojiTrailingIdx, ShadowLongTrailingIdx, lookbackTotal; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ /* Verify required price component. */ +/* Generated */ if(!inOpen||!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInteger ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Identify the minimum number of price bar needed + * to calculate at least one output. + */ + + lookbackTotal = LOOKBACK_CALL(CDLLONGLEGGEDDOJI)(); + + /* Move up the start index if there is not + * enough initial data. + */ + if( startIdx < lookbackTotal ) + startIdx = lookbackTotal; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + + /* Do the calculation using tight loops. */ + /* Add-up the initial period, except for the last value. */ + BodyDojiPeriodTotal = 0; + BodyDojiTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(BodyDoji); + ShadowLongPeriodTotal = 0; + ShadowLongTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(ShadowLong); + + i = BodyDojiTrailingIdx; + while( i < startIdx ) { + BodyDojiPeriodTotal += TA_CANDLERANGE( BodyDoji, i ); + i++; + } + i = ShadowLongTrailingIdx; + while( i < startIdx ) { + ShadowLongPeriodTotal += TA_CANDLERANGE( ShadowLong, i ); + i++; + } + + /* Proceed with the calculation for the requested range. + * + * Must have: + * - doji body + * - one or two long shadows + * The meaning of "doji" is specified with TA_SetCandleSettings + * outInteger is always positive (1 to 100) but this does not mean it is bullish: long legged doji shows uncertainty + */ + outIdx = 0; + do + { + if( TA_REALBODY(i) <= TA_CANDLEAVERAGE( BodyDoji, BodyDojiPeriodTotal, i ) && + ( TA_LOWERSHADOW(i) > TA_CANDLEAVERAGE( ShadowLong, ShadowLongPeriodTotal, i ) + || + TA_UPPERSHADOW(i) > TA_CANDLEAVERAGE( ShadowLong, ShadowLongPeriodTotal, i ) + ) + ) + outInteger[outIdx++] = 100; + else + outInteger[outIdx++] = 0; + /* add the current range and subtract the first range: this is done after the pattern recognition + * when avgPeriod is not 0, that means "compare with the previous candles" (it excludes the current candle) + */ + BodyDojiPeriodTotal += TA_CANDLERANGE( BodyDoji, i ) - TA_CANDLERANGE( BodyDoji, BodyDojiTrailingIdx ); + ShadowLongPeriodTotal += TA_CANDLERANGE( ShadowLong, i ) - TA_CANDLERANGE( ShadowLong, ShadowLongTrailingIdx ); + i++; + BodyDojiTrailingIdx++; + ShadowLongTrailingIdx++; + } while( i <= endIdx ); + + /* All done. Indicate the output limits and return. */ + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::CdlLongLeggedDoji( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inOpen, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cdlLongLeggedDoji( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inOpen[], +/* Generated */ float inHigh[], +/* Generated */ float inLow[], +/* Generated */ float inClose[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_CDLLONGLEGGEDDOJI( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inOpen[], +/* Generated */ const float inHigh[], +/* Generated */ const float inLow[], +/* Generated */ const float inClose[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ double BodyDojiPeriodTotal, ShadowLongPeriodTotal; +/* Generated */ int i, outIdx, BodyDojiTrailingIdx, ShadowLongTrailingIdx, lookbackTotal; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if(!inOpen||!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInteger ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ lookbackTotal = LOOKBACK_CALL(CDLLONGLEGGEDDOJI)(); +/* Generated */ if( startIdx < lookbackTotal ) +/* Generated */ startIdx = lookbackTotal; +/* Generated */ if( startIdx > endIdx ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ BodyDojiPeriodTotal = 0; +/* Generated */ BodyDojiTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(BodyDoji); +/* Generated */ ShadowLongPeriodTotal = 0; +/* Generated */ ShadowLongTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(ShadowLong); +/* Generated */ i = BodyDojiTrailingIdx; +/* Generated */ while( i < startIdx ) { +/* Generated */ BodyDojiPeriodTotal += TA_CANDLERANGE( BodyDoji, i ); +/* Generated */ i++; +/* Generated */ } +/* Generated */ i = ShadowLongTrailingIdx; +/* Generated */ while( i < startIdx ) { +/* Generated */ ShadowLongPeriodTotal += TA_CANDLERANGE( ShadowLong, i ); +/* Generated */ i++; +/* Generated */ } +/* Generated */ outIdx = 0; +/* Generated */ do +/* Generated */ { +/* Generated */ if( TA_REALBODY(i) <= TA_CANDLEAVERAGE( BodyDoji, BodyDojiPeriodTotal, i ) && +/* Generated */ ( TA_LOWERSHADOW(i) > TA_CANDLEAVERAGE( ShadowLong, ShadowLongPeriodTotal, i ) +/* Generated */ || +/* Generated */ TA_UPPERSHADOW(i) > TA_CANDLEAVERAGE( ShadowLong, ShadowLongPeriodTotal, i ) +/* Generated */ ) +/* Generated */ ) +/* Generated */ outInteger[outIdx++] = 100; +/* Generated */ else +/* Generated */ outInteger[outIdx++] = 0; +/* Generated */ BodyDojiPeriodTotal += TA_CANDLERANGE( BodyDoji, i ) - TA_CANDLERANGE( BodyDoji, BodyDojiTrailingIdx ); +/* Generated */ ShadowLongPeriodTotal += TA_CANDLERANGE( ShadowLong, i ) - TA_CANDLERANGE( ShadowLong, ShadowLongTrailingIdx ); +/* Generated */ i++; +/* Generated */ BodyDojiTrailingIdx++; +/* Generated */ ShadowLongTrailingIdx++; +/* Generated */ } while( i <= endIdx ); +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_CDLLONGLINE.c b/src/ta_func/ta_CDLLONGLINE.c new file mode 100644 index 000000000..589de1250 --- /dev/null +++ b/src/ta_func/ta_CDLLONGLINE.c @@ -0,0 +1,358 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * AC Angelo Ciceri + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 071704 AC Creation + * + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::CdlLongLineLookback( void ) +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int cdlLongLineLookback( ) +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_CDLLONGLINE_Lookback( void ) +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ /* No parameters to validate. */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + return max( TA_CANDLEAVGPERIOD(BodyLong), TA_CANDLEAVGPERIOD(ShadowShort) ); +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_CDLLONGLINE - Long Line Candle + * + * Input = Open, High, Low, Close + * Output = int + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::CdlLongLine( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inOpen, +/* Generated */ SubArray^ inHigh, +/* Generated */ SubArray^ inLow, +/* Generated */ SubArray^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::CdlLongLine( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inOpen, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cdlLongLine( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inOpen[], +/* Generated */ double inHigh[], +/* Generated */ double inLow[], +/* Generated */ double inClose[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_CDLLONGLINE( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inOpen[], +/* Generated */ const double inHigh[], +/* Generated */ const double inLow[], +/* Generated */ const double inClose[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* Insert local variables here. */ + double BodyPeriodTotal, ShadowPeriodTotal; + int i, outIdx, BodyTrailingIdx, ShadowTrailingIdx, lookbackTotal; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ /* Verify required price component. */ +/* Generated */ if(!inOpen||!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInteger ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Identify the minimum number of price bar needed + * to calculate at least one output. + */ + + lookbackTotal = LOOKBACK_CALL(CDLLONGLINE)(); + + /* Move up the start index if there is not + * enough initial data. + */ + if( startIdx < lookbackTotal ) + startIdx = lookbackTotal; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + + /* Do the calculation using tight loops. */ + /* Add-up the initial period, except for the last value. */ + BodyPeriodTotal = 0; + BodyTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(BodyLong); + ShadowPeriodTotal = 0; + ShadowTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(ShadowShort); + + i = BodyTrailingIdx; + while( i < startIdx ) { + BodyPeriodTotal += TA_CANDLERANGE( BodyLong, i ); + i++; + } + i = ShadowTrailingIdx; + while( i < startIdx ) { + ShadowPeriodTotal += TA_CANDLERANGE( ShadowShort, i ); + i++; + } + + /* Proceed with the calculation for the requested range. + * Must have: + * - long real body + * - short upper and lower shadow + * The meaning of "long" and "short" is specified with TA_SetCandleSettings + * outInteger is positive (1 to 100) when white (bullish), negative (-1 to -100) when black (bearish) + */ + outIdx = 0; + do + { + if( TA_REALBODY(i) > TA_CANDLEAVERAGE( BodyLong, BodyPeriodTotal, i ) && + TA_UPPERSHADOW(i) < TA_CANDLEAVERAGE( ShadowShort, ShadowPeriodTotal, i ) && + TA_LOWERSHADOW(i) < TA_CANDLEAVERAGE( ShadowShort, ShadowPeriodTotal, i ) ) + outInteger[outIdx++] = TA_CANDLECOLOR(i) * 100; + else + outInteger[outIdx++] = 0; + /* add the current range and subtract the first range: this is done after the pattern recognition + * when avgPeriod is not 0, that means "compare with the previous candles" (it excludes the current candle) + */ + BodyPeriodTotal += TA_CANDLERANGE( BodyLong, i ) - TA_CANDLERANGE( BodyLong, BodyTrailingIdx ); + ShadowPeriodTotal += TA_CANDLERANGE( ShadowShort, i ) - TA_CANDLERANGE( ShadowShort, ShadowTrailingIdx ); + i++; + BodyTrailingIdx++; + ShadowTrailingIdx++; + } while( i <= endIdx ); + + /* All done. Indicate the output limits and return. */ + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::CdlLongLine( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inOpen, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cdlLongLine( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inOpen[], +/* Generated */ float inHigh[], +/* Generated */ float inLow[], +/* Generated */ float inClose[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_CDLLONGLINE( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inOpen[], +/* Generated */ const float inHigh[], +/* Generated */ const float inLow[], +/* Generated */ const float inClose[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ double BodyPeriodTotal, ShadowPeriodTotal; +/* Generated */ int i, outIdx, BodyTrailingIdx, ShadowTrailingIdx, lookbackTotal; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if(!inOpen||!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInteger ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ lookbackTotal = LOOKBACK_CALL(CDLLONGLINE)(); +/* Generated */ if( startIdx < lookbackTotal ) +/* Generated */ startIdx = lookbackTotal; +/* Generated */ if( startIdx > endIdx ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ BodyPeriodTotal = 0; +/* Generated */ BodyTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(BodyLong); +/* Generated */ ShadowPeriodTotal = 0; +/* Generated */ ShadowTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(ShadowShort); +/* Generated */ i = BodyTrailingIdx; +/* Generated */ while( i < startIdx ) { +/* Generated */ BodyPeriodTotal += TA_CANDLERANGE( BodyLong, i ); +/* Generated */ i++; +/* Generated */ } +/* Generated */ i = ShadowTrailingIdx; +/* Generated */ while( i < startIdx ) { +/* Generated */ ShadowPeriodTotal += TA_CANDLERANGE( ShadowShort, i ); +/* Generated */ i++; +/* Generated */ } +/* Generated */ outIdx = 0; +/* Generated */ do +/* Generated */ { +/* Generated */ if( TA_REALBODY(i) > TA_CANDLEAVERAGE( BodyLong, BodyPeriodTotal, i ) && +/* Generated */ TA_UPPERSHADOW(i) < TA_CANDLEAVERAGE( ShadowShort, ShadowPeriodTotal, i ) && +/* Generated */ TA_LOWERSHADOW(i) < TA_CANDLEAVERAGE( ShadowShort, ShadowPeriodTotal, i ) ) +/* Generated */ outInteger[outIdx++] = TA_CANDLECOLOR(i) * 100; +/* Generated */ else +/* Generated */ outInteger[outIdx++] = 0; +/* Generated */ BodyPeriodTotal += TA_CANDLERANGE( BodyLong, i ) - TA_CANDLERANGE( BodyLong, BodyTrailingIdx ); +/* Generated */ ShadowPeriodTotal += TA_CANDLERANGE( ShadowShort, i ) - TA_CANDLERANGE( ShadowShort, ShadowTrailingIdx ); +/* Generated */ i++; +/* Generated */ BodyTrailingIdx++; +/* Generated */ ShadowTrailingIdx++; +/* Generated */ } while( i <= endIdx ); +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_CDLMARUBOZU.c b/src/ta_func/ta_CDLMARUBOZU.c new file mode 100644 index 000000000..9d1cef970 --- /dev/null +++ b/src/ta_func/ta_CDLMARUBOZU.c @@ -0,0 +1,360 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * AC Angelo Ciceri + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 010605 AC Creation + * + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::CdlMarubozuLookback( void ) +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int cdlMarubozuLookback( ) +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_CDLMARUBOZU_Lookback( void ) +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ /* No parameters to validate. */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + return max( TA_CANDLEAVGPERIOD(BodyLong), TA_CANDLEAVGPERIOD(ShadowVeryShort) ); +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_CDLMARUBOZU - Marubozu + * + * Input = Open, High, Low, Close + * Output = int + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::CdlMarubozu( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inOpen, +/* Generated */ SubArray^ inHigh, +/* Generated */ SubArray^ inLow, +/* Generated */ SubArray^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::CdlMarubozu( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inOpen, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cdlMarubozu( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inOpen[], +/* Generated */ double inHigh[], +/* Generated */ double inLow[], +/* Generated */ double inClose[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_CDLMARUBOZU( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inOpen[], +/* Generated */ const double inHigh[], +/* Generated */ const double inLow[], +/* Generated */ const double inClose[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* Insert local variables here. */ + double BodyLongPeriodTotal, ShadowVeryShortPeriodTotal; + int i, outIdx, BodyLongTrailingIdx, ShadowVeryShortTrailingIdx, lookbackTotal; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ /* Verify required price component. */ +/* Generated */ if(!inOpen||!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInteger ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Identify the minimum number of price bar needed + * to calculate at least one output. + */ + + lookbackTotal = LOOKBACK_CALL(CDLMARUBOZU)(); + + /* Move up the start index if there is not + * enough initial data. + */ + if( startIdx < lookbackTotal ) + startIdx = lookbackTotal; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + + /* Do the calculation using tight loops. */ + /* Add-up the initial period, except for the last value. */ + BodyLongPeriodTotal = 0; + BodyLongTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(BodyLong); + ShadowVeryShortPeriodTotal = 0; + ShadowVeryShortTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(ShadowVeryShort); + + i = BodyLongTrailingIdx; + while( i < startIdx ) { + BodyLongPeriodTotal += TA_CANDLERANGE( BodyLong, i ); + i++; + } + i = ShadowVeryShortTrailingIdx; + while( i < startIdx ) { + ShadowVeryShortPeriodTotal += TA_CANDLERANGE( ShadowVeryShort, i ); + i++; + } + + /* Proceed with the calculation for the requested range. + * Must have: + * - long real body + * - no or very short upper and lower shadow + * The meaning of "long" and "very short" is specified with TA_SetCandleSettings + * outInteger is positive (1 to 100) when white (bullish), negative (-1 to -100) when black (bearish) + */ + outIdx = 0; + do + { + if( TA_REALBODY(i) > TA_CANDLEAVERAGE( BodyLong, BodyLongPeriodTotal, i ) && + TA_UPPERSHADOW(i) < TA_CANDLEAVERAGE( ShadowVeryShort, ShadowVeryShortPeriodTotal, i ) && + TA_LOWERSHADOW(i) < TA_CANDLEAVERAGE( ShadowVeryShort, ShadowVeryShortPeriodTotal, i ) ) + outInteger[outIdx++] = TA_CANDLECOLOR(i) * 100; + else + outInteger[outIdx++] = 0; + /* add the current range and subtract the first range: this is done after the pattern recognition + * when avgPeriod is not 0, that means "compare with the previous candles" (it excludes the current candle) + */ + BodyLongPeriodTotal += TA_CANDLERANGE( BodyLong, i ) - TA_CANDLERANGE( BodyLong, BodyLongTrailingIdx ); + ShadowVeryShortPeriodTotal += TA_CANDLERANGE( ShadowVeryShort, i ) + - TA_CANDLERANGE( ShadowVeryShort, ShadowVeryShortTrailingIdx ); + i++; + BodyLongTrailingIdx++; + ShadowVeryShortTrailingIdx++; + } while( i <= endIdx ); + + /* All done. Indicate the output limits and return. */ + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::CdlMarubozu( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inOpen, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cdlMarubozu( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inOpen[], +/* Generated */ float inHigh[], +/* Generated */ float inLow[], +/* Generated */ float inClose[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_CDLMARUBOZU( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inOpen[], +/* Generated */ const float inHigh[], +/* Generated */ const float inLow[], +/* Generated */ const float inClose[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ double BodyLongPeriodTotal, ShadowVeryShortPeriodTotal; +/* Generated */ int i, outIdx, BodyLongTrailingIdx, ShadowVeryShortTrailingIdx, lookbackTotal; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if(!inOpen||!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInteger ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ lookbackTotal = LOOKBACK_CALL(CDLMARUBOZU)(); +/* Generated */ if( startIdx < lookbackTotal ) +/* Generated */ startIdx = lookbackTotal; +/* Generated */ if( startIdx > endIdx ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ BodyLongPeriodTotal = 0; +/* Generated */ BodyLongTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(BodyLong); +/* Generated */ ShadowVeryShortPeriodTotal = 0; +/* Generated */ ShadowVeryShortTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(ShadowVeryShort); +/* Generated */ i = BodyLongTrailingIdx; +/* Generated */ while( i < startIdx ) { +/* Generated */ BodyLongPeriodTotal += TA_CANDLERANGE( BodyLong, i ); +/* Generated */ i++; +/* Generated */ } +/* Generated */ i = ShadowVeryShortTrailingIdx; +/* Generated */ while( i < startIdx ) { +/* Generated */ ShadowVeryShortPeriodTotal += TA_CANDLERANGE( ShadowVeryShort, i ); +/* Generated */ i++; +/* Generated */ } +/* Generated */ outIdx = 0; +/* Generated */ do +/* Generated */ { +/* Generated */ if( TA_REALBODY(i) > TA_CANDLEAVERAGE( BodyLong, BodyLongPeriodTotal, i ) && +/* Generated */ TA_UPPERSHADOW(i) < TA_CANDLEAVERAGE( ShadowVeryShort, ShadowVeryShortPeriodTotal, i ) && +/* Generated */ TA_LOWERSHADOW(i) < TA_CANDLEAVERAGE( ShadowVeryShort, ShadowVeryShortPeriodTotal, i ) ) +/* Generated */ outInteger[outIdx++] = TA_CANDLECOLOR(i) * 100; +/* Generated */ else +/* Generated */ outInteger[outIdx++] = 0; +/* Generated */ BodyLongPeriodTotal += TA_CANDLERANGE( BodyLong, i ) - TA_CANDLERANGE( BodyLong, BodyLongTrailingIdx ); +/* Generated */ ShadowVeryShortPeriodTotal += TA_CANDLERANGE( ShadowVeryShort, i ) +/* Generated */ - TA_CANDLERANGE( ShadowVeryShort, ShadowVeryShortTrailingIdx ); +/* Generated */ i++; +/* Generated */ BodyLongTrailingIdx++; +/* Generated */ ShadowVeryShortTrailingIdx++; +/* Generated */ } while( i <= endIdx ); +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_CDLMATCHINGLOW.c b/src/ta_func/ta_CDLMATCHINGLOW.c new file mode 100644 index 000000000..3e813d016 --- /dev/null +++ b/src/ta_func/ta_CDLMATCHINGLOW.c @@ -0,0 +1,346 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * AC Angelo Ciceri + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 032605 AC Creation + * + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::CdlMatchingLowLookback( void ) +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int cdlMatchingLowLookback( ) +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_CDLMATCHINGLOW_Lookback( void ) +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ /* No parameters to validate. */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + return TA_CANDLEAVGPERIOD(Equal) + 1; +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_CDLMATCHINGLOW - Matching Low + * + * Input = Open, High, Low, Close + * Output = int + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::CdlMatchingLow( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inOpen, +/* Generated */ SubArray^ inHigh, +/* Generated */ SubArray^ inLow, +/* Generated */ SubArray^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::CdlMatchingLow( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inOpen, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cdlMatchingLow( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inOpen[], +/* Generated */ double inHigh[], +/* Generated */ double inLow[], +/* Generated */ double inClose[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_CDLMATCHINGLOW( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inOpen[], +/* Generated */ const double inHigh[], +/* Generated */ const double inLow[], +/* Generated */ const double inClose[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* Insert local variables here. */ + double EqualPeriodTotal; + int i, outIdx, EqualTrailingIdx, lookbackTotal; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ /* Verify required price component. */ +/* Generated */ if(!inOpen||!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInteger ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Identify the minimum number of price bar needed + * to calculate at least one output. + */ + + lookbackTotal = LOOKBACK_CALL(CDLMATCHINGLOW)(); + + /* Move up the start index if there is not + * enough initial data. + */ + if( startIdx < lookbackTotal ) + startIdx = lookbackTotal; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + + /* Do the calculation using tight loops. */ + /* Add-up the initial period, except for the last value. */ + EqualPeriodTotal = 0; + EqualTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(Equal); + + i = EqualTrailingIdx; + while( i < startIdx ) { + EqualPeriodTotal += TA_CANDLERANGE( Equal, i-1 ); + i++; + } + i = startIdx; + + /* Proceed with the calculation for the requested range. + * Must have: + * - first candle: black candle + * - second candle: black candle with the close equal to the previous close + * The meaning of "equal" is specified with TA_SetCandleSettings + * outInteger is always positive (1 to 100): matching low is always bullish; + */ + outIdx = 0; + do + { + if( TA_CANDLECOLOR(i-1) == -1 && // first black + TA_CANDLECOLOR(i) == -1 && // second black + inClose[i] <= inClose[i-1] + TA_CANDLEAVERAGE( Equal, EqualPeriodTotal, i-1 ) && // 1st and 2nd same close + inClose[i] >= inClose[i-1] - TA_CANDLEAVERAGE( Equal, EqualPeriodTotal, i-1 ) + ) + outInteger[outIdx++] = 100; + else + outInteger[outIdx++] = 0; + /* add the current range and subtract the first range: this is done after the pattern recognition + * when avgPeriod is not 0, that means "compare with the previous candles" (it excludes the current candle) + */ + EqualPeriodTotal += TA_CANDLERANGE( Equal, i-1 ) - TA_CANDLERANGE( Equal, EqualTrailingIdx-1 ); + i++; + EqualTrailingIdx++; + } while( i <= endIdx ); + + /* All done. Indicate the output limits and return. */ + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::CdlMatchingLow( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inOpen, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cdlMatchingLow( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inOpen[], +/* Generated */ float inHigh[], +/* Generated */ float inLow[], +/* Generated */ float inClose[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_CDLMATCHINGLOW( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inOpen[], +/* Generated */ const float inHigh[], +/* Generated */ const float inLow[], +/* Generated */ const float inClose[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ double EqualPeriodTotal; +/* Generated */ int i, outIdx, EqualTrailingIdx, lookbackTotal; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if(!inOpen||!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInteger ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ lookbackTotal = LOOKBACK_CALL(CDLMATCHINGLOW)(); +/* Generated */ if( startIdx < lookbackTotal ) +/* Generated */ startIdx = lookbackTotal; +/* Generated */ if( startIdx > endIdx ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ EqualPeriodTotal = 0; +/* Generated */ EqualTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(Equal); +/* Generated */ i = EqualTrailingIdx; +/* Generated */ while( i < startIdx ) { +/* Generated */ EqualPeriodTotal += TA_CANDLERANGE( Equal, i-1 ); +/* Generated */ i++; +/* Generated */ } +/* Generated */ i = startIdx; +/* Generated */ outIdx = 0; +/* Generated */ do +/* Generated */ { +/* Generated */ if( TA_CANDLECOLOR(i-1) == -1 && // first black +/* Generated */ TA_CANDLECOLOR(i) == -1 && // second black +/* Generated */ inClose[i] <= inClose[i-1] + TA_CANDLEAVERAGE( Equal, EqualPeriodTotal, i-1 ) && // 1st and 2nd same close +/* Generated */ inClose[i] >= inClose[i-1] - TA_CANDLEAVERAGE( Equal, EqualPeriodTotal, i-1 ) +/* Generated */ ) +/* Generated */ outInteger[outIdx++] = 100; +/* Generated */ else +/* Generated */ outInteger[outIdx++] = 0; +/* Generated */ EqualPeriodTotal += TA_CANDLERANGE( Equal, i-1 ) - TA_CANDLERANGE( Equal, EqualTrailingIdx-1 ); +/* Generated */ i++; +/* Generated */ EqualTrailingIdx++; +/* Generated */ } while( i <= endIdx ); +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_CDLMATHOLD.c b/src/ta_func/ta_CDLMATHOLD.c new file mode 100644 index 000000000..c9cebdd24 --- /dev/null +++ b/src/ta_func/ta_CDLMATHOLD.c @@ -0,0 +1,455 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * AC Angelo Ciceri + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 022005 AC Creation + * + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::CdlMatHoldLookback( double optInPenetration ) /* From 0 to TA_REAL_MAX */ +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int cdlMatHoldLookback( double optInPenetration ) /* From 0 to TA_REAL_MAX */ +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_CDLMATHOLD_Lookback( double optInPenetration ) /* From 0 to TA_REAL_MAX */ +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( optInPenetration == TA_REAL_DEFAULT ) +/* Generated */ optInPenetration = 5.000000e-1; +/* Generated */ else if( (optInPenetration < 0.000000e+0) ||/* Generated */ (optInPenetration > 3.000000e+37) ) +/* Generated */ return -1; +/* Generated */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + UNUSED_VARIABLE(optInPenetration); + return max( TA_CANDLEAVGPERIOD(BodyShort), TA_CANDLEAVGPERIOD(BodyLong) ) + 4; +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_CDLMATHOLD - Mat Hold + * + * Input = Open, High, Low, Close + * Output = int + * + * Optional Parameters + * ------------------- + * optInPenetration:(From 0 to TA_REAL_MAX) + * Percentage of penetration of a candle within another candle + * + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::CdlMatHold( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inOpen, +/* Generated */ SubArray^ inHigh, +/* Generated */ SubArray^ inLow, +/* Generated */ SubArray^ inClose, +/* Generated */ double optInPenetration, /* From 0 to TA_REAL_MAX */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::CdlMatHold( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inOpen, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ double optInPenetration, /* From 0 to TA_REAL_MAX */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cdlMatHold( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inOpen[], +/* Generated */ double inHigh[], +/* Generated */ double inLow[], +/* Generated */ double inClose[], +/* Generated */ double optInPenetration, /* From 0 to TA_REAL_MAX */ +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_CDLMATHOLD( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inOpen[], +/* Generated */ const double inHigh[], +/* Generated */ const double inLow[], +/* Generated */ const double inClose[], +/* Generated */ double optInPenetration, /* From 0 to TA_REAL_MAX */ +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* Insert local variables here. */ + ARRAY_LOCAL(BodyPeriodTotal,5); + int i, outIdx, totIdx, BodyShortTrailingIdx, BodyLongTrailingIdx, lookbackTotal; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ /* Verify required price component. */ +/* Generated */ if(!inOpen||!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ if( optInPenetration == TA_REAL_DEFAULT ) +/* Generated */ optInPenetration = 5.000000e-1; +/* Generated */ else if( (optInPenetration < 0.000000e+0) ||/* Generated */ (optInPenetration > 3.000000e+37) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInteger ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Identify the minimum number of price bar needed + * to calculate at least one output. + */ + + lookbackTotal = LOOKBACK_CALL(CDLMATHOLD)(optInPenetration); + + /* Move up the start index if there is not + * enough initial data. + */ + if( startIdx < lookbackTotal ) + startIdx = lookbackTotal; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + + /* Do the calculation using tight loops. */ + /* Add-up the initial period, except for the last value. */ + BodyPeriodTotal[4] = 0; + BodyPeriodTotal[3] = 0; + BodyPeriodTotal[2] = 0; + BodyPeriodTotal[1] = 0; + BodyPeriodTotal[0] = 0; + BodyShortTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(BodyShort); + BodyLongTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(BodyLong); + + i = BodyShortTrailingIdx; + while( i < startIdx ) { + BodyPeriodTotal[3] += TA_CANDLERANGE( BodyShort, i-3 ); + BodyPeriodTotal[2] += TA_CANDLERANGE( BodyShort, i-2 ); + BodyPeriodTotal[1] += TA_CANDLERANGE( BodyShort, i-1 ); + i++; + } + i = BodyLongTrailingIdx; + while( i < startIdx ) { + BodyPeriodTotal[4] += TA_CANDLERANGE( BodyLong, i-4 ); + i++; + } + i = startIdx; + + /* Proceed with the calculation for the requested range. + * Must have: + * - first candle: long white candle + * - upside gap between the first and the second bodies + * - second candle: small black candle + * - third and fourth candles: falling small real body candlesticks (commonly black) that hold within the long + * white candle's body and are higher than the reaction days of the rising three methods + * - fifth candle: white candle that opens above the previous small candle's close and closes higher than the + * high of the highest reaction day + * The meaning of "short" and "long" is specified with TA_SetCandleSettings; + * "hold within" means "a part of the real body must be within"; + * optInPenetration is the maximum percentage of the first white body the reaction days can penetrate (it is + * to specify how much the reaction days should be "higher than the reaction days of the rising three methods") + * outInteger is positive (1 to 100): mat hold is always bullish + */ + outIdx = 0; + do + { + if( // 1st long, then 3 small + TA_REALBODY(i-4) > TA_CANDLEAVERAGE( BodyLong, BodyPeriodTotal[4], i-4 ) && + TA_REALBODY(i-3) < TA_CANDLEAVERAGE( BodyShort, BodyPeriodTotal[3], i-3 ) && + TA_REALBODY(i-2) < TA_CANDLEAVERAGE( BodyShort, BodyPeriodTotal[2], i-2 ) && + TA_REALBODY(i-1) < TA_CANDLEAVERAGE( BodyShort, BodyPeriodTotal[1], i-1 ) && + // white, black, 2 black or white, white + TA_CANDLECOLOR(i-4) == 1 && + TA_CANDLECOLOR(i-3) == -1 && + TA_CANDLECOLOR(i) == 1 && + // upside gap 1st to 2nd + TA_REALBODYGAPUP(i-3,i-4) && + // 3rd to 4th hold within 1st: a part of the real body must be within 1st real body + min(inOpen[i-2], inClose[i-2]) < inClose[i-4] && + min(inOpen[i-1], inClose[i-1]) < inClose[i-4] && + // reaction days penetrate first body less than optInPenetration percent + min(inOpen[i-2], inClose[i-2]) > inClose[i-4] - TA_REALBODY(i-4) * optInPenetration && + min(inOpen[i-1], inClose[i-1]) > inClose[i-4] - TA_REALBODY(i-4) * optInPenetration && + // 2nd to 4th are falling + max(inClose[i-2], inOpen[i-2]) < inOpen[i-3] && + max(inClose[i-1], inOpen[i-1]) < max(inClose[i-2], inOpen[i-2]) && + // 5th opens above the prior close + inOpen[i] > inClose[i-1] && + // 5th closes above the highest high of the reaction days + inClose[i] > max(max(inHigh[i-3], inHigh[i-2]), inHigh[i-1]) + ) + outInteger[outIdx++] = 100; + else + outInteger[outIdx++] = 0; + /* add the current range and subtract the first range: this is done after the pattern recognition + * when avgPeriod is not 0, that means "compare with the previous candles" (it excludes the current candle) + */ + BodyPeriodTotal[4] += TA_CANDLERANGE( BodyLong, i-4 ) - TA_CANDLERANGE( BodyLong, BodyLongTrailingIdx-4 ); + for (totIdx = 3; totIdx >= 1; --totIdx) + BodyPeriodTotal[totIdx] += TA_CANDLERANGE( BodyShort, i-totIdx ) + - TA_CANDLERANGE( BodyShort, BodyShortTrailingIdx-totIdx ); + i++; + BodyShortTrailingIdx++; + BodyLongTrailingIdx++; + } while( i <= endIdx ); + + /* All done. Indicate the output limits and return. */ + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::CdlMatHold( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inOpen, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ double optInPenetration, /* From 0 to TA_REAL_MAX */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cdlMatHold( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inOpen[], +/* Generated */ float inHigh[], +/* Generated */ float inLow[], +/* Generated */ float inClose[], +/* Generated */ double optInPenetration, /* From 0 to TA_REAL_MAX */ +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_CDLMATHOLD( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inOpen[], +/* Generated */ const float inHigh[], +/* Generated */ const float inLow[], +/* Generated */ const float inClose[], +/* Generated */ double optInPenetration, /* From 0 to TA_REAL_MAX */ +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ ARRAY_LOCAL(BodyPeriodTotal,5); +/* Generated */ int i, outIdx, totIdx, BodyShortTrailingIdx, BodyLongTrailingIdx, lookbackTotal; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if(!inOpen||!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ if( optInPenetration == TA_REAL_DEFAULT ) +/* Generated */ optInPenetration = 5.000000e-1; +/* Generated */ else if( (optInPenetration < 0.000000e+0) || (optInPenetration > 3.000000e+37) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInteger ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ lookbackTotal = LOOKBACK_CALL(CDLMATHOLD)(optInPenetration); +/* Generated */ if( startIdx < lookbackTotal ) +/* Generated */ startIdx = lookbackTotal; +/* Generated */ if( startIdx > endIdx ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ BodyPeriodTotal[4] = 0; +/* Generated */ BodyPeriodTotal[3] = 0; +/* Generated */ BodyPeriodTotal[2] = 0; +/* Generated */ BodyPeriodTotal[1] = 0; +/* Generated */ BodyPeriodTotal[0] = 0; +/* Generated */ BodyShortTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(BodyShort); +/* Generated */ BodyLongTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(BodyLong); +/* Generated */ i = BodyShortTrailingIdx; +/* Generated */ while( i < startIdx ) { +/* Generated */ BodyPeriodTotal[3] += TA_CANDLERANGE( BodyShort, i-3 ); +/* Generated */ BodyPeriodTotal[2] += TA_CANDLERANGE( BodyShort, i-2 ); +/* Generated */ BodyPeriodTotal[1] += TA_CANDLERANGE( BodyShort, i-1 ); +/* Generated */ i++; +/* Generated */ } +/* Generated */ i = BodyLongTrailingIdx; +/* Generated */ while( i < startIdx ) { +/* Generated */ BodyPeriodTotal[4] += TA_CANDLERANGE( BodyLong, i-4 ); +/* Generated */ i++; +/* Generated */ } +/* Generated */ i = startIdx; +/* Generated */ outIdx = 0; +/* Generated */ do +/* Generated */ { +/* Generated */ if( // 1st long, then 3 small +/* Generated */ TA_REALBODY(i-4) > TA_CANDLEAVERAGE( BodyLong, BodyPeriodTotal[4], i-4 ) && +/* Generated */ TA_REALBODY(i-3) < TA_CANDLEAVERAGE( BodyShort, BodyPeriodTotal[3], i-3 ) && +/* Generated */ TA_REALBODY(i-2) < TA_CANDLEAVERAGE( BodyShort, BodyPeriodTotal[2], i-2 ) && +/* Generated */ TA_REALBODY(i-1) < TA_CANDLEAVERAGE( BodyShort, BodyPeriodTotal[1], i-1 ) && +/* Generated */ // white, black, 2 black or white, white +/* Generated */ TA_CANDLECOLOR(i-4) == 1 && +/* Generated */ TA_CANDLECOLOR(i-3) == -1 && +/* Generated */ TA_CANDLECOLOR(i) == 1 && +/* Generated */ // upside gap 1st to 2nd +/* Generated */ TA_REALBODYGAPUP(i-3,i-4) && +/* Generated */ // 3rd to 4th hold within 1st: a part of the real body must be within 1st real body +/* Generated */ min(inOpen[i-2], inClose[i-2]) < inClose[i-4] && +/* Generated */ min(inOpen[i-1], inClose[i-1]) < inClose[i-4] && +/* Generated */ // reaction days penetrate first body less than optInPenetration percent +/* Generated */ min(inOpen[i-2], inClose[i-2]) > inClose[i-4] - TA_REALBODY(i-4) * optInPenetration && +/* Generated */ min(inOpen[i-1], inClose[i-1]) > inClose[i-4] - TA_REALBODY(i-4) * optInPenetration && +/* Generated */ // 2nd to 4th are falling +/* Generated */ max(inClose[i-2], inOpen[i-2]) < inOpen[i-3] && +/* Generated */ max(inClose[i-1], inOpen[i-1]) < max(inClose[i-2], inOpen[i-2]) && +/* Generated */ // 5th opens above the prior close +/* Generated */ inOpen[i] > inClose[i-1] && +/* Generated */ // 5th closes above the highest high of the reaction days +/* Generated */ inClose[i] > max(max(inHigh[i-3], inHigh[i-2]), inHigh[i-1]) +/* Generated */ ) +/* Generated */ outInteger[outIdx++] = 100; +/* Generated */ else +/* Generated */ outInteger[outIdx++] = 0; +/* Generated */ BodyPeriodTotal[4] += TA_CANDLERANGE( BodyLong, i-4 ) - TA_CANDLERANGE( BodyLong, BodyLongTrailingIdx-4 ); +/* Generated */ for (totIdx = 3; totIdx >= 1; --totIdx) +/* Generated */ BodyPeriodTotal[totIdx] += TA_CANDLERANGE( BodyShort, i-totIdx ) +/* Generated */ - TA_CANDLERANGE( BodyShort, BodyShortTrailingIdx-totIdx ); +/* Generated */ i++; +/* Generated */ BodyShortTrailingIdx++; +/* Generated */ BodyLongTrailingIdx++; +/* Generated */ } while( i <= endIdx ); +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_CDLMORNINGDOJISTAR.c b/src/ta_func/ta_CDLMORNINGDOJISTAR.c new file mode 100644 index 000000000..5189c284d --- /dev/null +++ b/src/ta_func/ta_CDLMORNINGDOJISTAR.c @@ -0,0 +1,425 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * AC Angelo Ciceri + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 100304 AC Creation + * + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::CdlMorningDojiStarLookback( double optInPenetration ) /* From 0 to TA_REAL_MAX */ +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int cdlMorningDojiStarLookback( double optInPenetration ) /* From 0 to TA_REAL_MAX */ +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_CDLMORNINGDOJISTAR_Lookback( double optInPenetration ) /* From 0 to TA_REAL_MAX */ +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( optInPenetration == TA_REAL_DEFAULT ) +/* Generated */ optInPenetration = 3.000000e-1; +/* Generated */ else if( (optInPenetration < 0.000000e+0) ||/* Generated */ (optInPenetration > 3.000000e+37) ) +/* Generated */ return -1; +/* Generated */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + UNUSED_VARIABLE(optInPenetration); + return max( max( TA_CANDLEAVGPERIOD(BodyDoji), TA_CANDLEAVGPERIOD(BodyLong) ), + TA_CANDLEAVGPERIOD(BodyShort) + ) + 2; +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_CDLMORNINGDOJISTAR - Morning Doji Star + * + * Input = Open, High, Low, Close + * Output = int + * + * Optional Parameters + * ------------------- + * optInPenetration:(From 0 to TA_REAL_MAX) + * Percentage of penetration of a candle within another candle + * + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::CdlMorningDojiStar( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inOpen, +/* Generated */ SubArray^ inHigh, +/* Generated */ SubArray^ inLow, +/* Generated */ SubArray^ inClose, +/* Generated */ double optInPenetration, /* From 0 to TA_REAL_MAX */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::CdlMorningDojiStar( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inOpen, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ double optInPenetration, /* From 0 to TA_REAL_MAX */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cdlMorningDojiStar( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inOpen[], +/* Generated */ double inHigh[], +/* Generated */ double inLow[], +/* Generated */ double inClose[], +/* Generated */ double optInPenetration, /* From 0 to TA_REAL_MAX */ +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_CDLMORNINGDOJISTAR( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inOpen[], +/* Generated */ const double inHigh[], +/* Generated */ const double inLow[], +/* Generated */ const double inClose[], +/* Generated */ double optInPenetration, /* From 0 to TA_REAL_MAX */ +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* Insert local variables here. */ + double BodyDojiPeriodTotal, BodyLongPeriodTotal, BodyShortPeriodTotal; + int i, outIdx, BodyDojiTrailingIdx, BodyLongTrailingIdx, BodyShortTrailingIdx, lookbackTotal; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ /* Verify required price component. */ +/* Generated */ if(!inOpen||!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ if( optInPenetration == TA_REAL_DEFAULT ) +/* Generated */ optInPenetration = 3.000000e-1; +/* Generated */ else if( (optInPenetration < 0.000000e+0) ||/* Generated */ (optInPenetration > 3.000000e+37) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInteger ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Identify the minimum number of price bar needed + * to calculate at least one output. + */ + + lookbackTotal = LOOKBACK_CALL(CDLMORNINGDOJISTAR)(optInPenetration); + + /* Move up the start index if there is not + * enough initial data. + */ + if( startIdx < lookbackTotal ) + startIdx = lookbackTotal; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + + /* Do the calculation using tight loops. */ + /* Add-up the initial period, except for the last value. */ + BodyLongPeriodTotal = 0; + BodyDojiPeriodTotal = 0; + BodyShortPeriodTotal = 0; + BodyLongTrailingIdx = startIdx -2 - TA_CANDLEAVGPERIOD(BodyLong); + BodyDojiTrailingIdx = startIdx -1 - TA_CANDLEAVGPERIOD(BodyDoji); + BodyShortTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(BodyShort); + + i = BodyLongTrailingIdx; + while( i < startIdx-2 ) { + BodyLongPeriodTotal += TA_CANDLERANGE( BodyLong, i ); + i++; + } + i = BodyDojiTrailingIdx; + while( i < startIdx-1 ) { + BodyDojiPeriodTotal += TA_CANDLERANGE( BodyDoji, i ); + i++; + } + i = BodyShortTrailingIdx; + while( i < startIdx ) { + BodyShortPeriodTotal += TA_CANDLERANGE( BodyShort, i ); + i++; + } + i = startIdx; + + /* Proceed with the calculation for the requested range. + * Must have: + * - first candle: long black real body + * - second candle: doji gapping down + * - third candle: white real body that moves well within the first candle's real body + * The meaning of "doji" and "long" is specified with TA_SetCandleSettings + * The meaning of "moves well within" is specified with optInPenetration and "moves" should mean the real body should + * not be short ("short" is specified with TA_SetCandleSettings) - Greg Morris wants it to be long, someone else want + * it to be relatively long + * outInteger is positive (1 to 100): morning doji star is always bullish; + * the user should consider that a morning star is significant when it appears in a downtrend, + * while this function does not consider the trend + */ + outIdx = 0; + do + { + if( TA_REALBODY(i-2) > TA_CANDLEAVERAGE( BodyLong, BodyLongPeriodTotal, i-2 ) && // 1st: long + TA_CANDLECOLOR(i-2) == -1 && // black + TA_REALBODY(i-1) <= TA_CANDLEAVERAGE( BodyDoji, BodyDojiPeriodTotal, i-1 ) && // 2nd: doji + TA_REALBODYGAPDOWN(i-1,i-2) && // gapping down + TA_REALBODY(i) > TA_CANDLEAVERAGE( BodyShort, BodyShortPeriodTotal, i ) && // 3rd: longer than short + TA_CANDLECOLOR(i) == 1 && // white real body + inClose[i] > inClose[i-2] + TA_REALBODY(i-2) * optInPenetration // closing well within 1st rb + ) + outInteger[outIdx++] = 100; + else + outInteger[outIdx++] = 0; + /* add the current range and subtract the first range: this is done after the pattern recognition + * when avgPeriod is not 0, that means "compare with the previous candles" (it excludes the current candle) + */ + BodyLongPeriodTotal += TA_CANDLERANGE( BodyLong, i-2 ) - TA_CANDLERANGE( BodyLong, BodyLongTrailingIdx ); + BodyDojiPeriodTotal += TA_CANDLERANGE( BodyDoji, i-1 ) - TA_CANDLERANGE( BodyDoji, BodyDojiTrailingIdx ); + BodyShortPeriodTotal += TA_CANDLERANGE( BodyShort, i ) - TA_CANDLERANGE( BodyShort, BodyShortTrailingIdx ); + i++; + BodyLongTrailingIdx++; + BodyDojiTrailingIdx++; + BodyShortTrailingIdx++; + } while( i <= endIdx ); + + /* All done. Indicate the output limits and return. */ + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::CdlMorningDojiStar( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inOpen, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ double optInPenetration, /* From 0 to TA_REAL_MAX */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cdlMorningDojiStar( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inOpen[], +/* Generated */ float inHigh[], +/* Generated */ float inLow[], +/* Generated */ float inClose[], +/* Generated */ double optInPenetration, /* From 0 to TA_REAL_MAX */ +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_CDLMORNINGDOJISTAR( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inOpen[], +/* Generated */ const float inHigh[], +/* Generated */ const float inLow[], +/* Generated */ const float inClose[], +/* Generated */ double optInPenetration, /* From 0 to TA_REAL_MAX */ +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ double BodyDojiPeriodTotal, BodyLongPeriodTotal, BodyShortPeriodTotal; +/* Generated */ int i, outIdx, BodyDojiTrailingIdx, BodyLongTrailingIdx, BodyShortTrailingIdx, lookbackTotal; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if(!inOpen||!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ if( optInPenetration == TA_REAL_DEFAULT ) +/* Generated */ optInPenetration = 3.000000e-1; +/* Generated */ else if( (optInPenetration < 0.000000e+0) || (optInPenetration > 3.000000e+37) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInteger ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ lookbackTotal = LOOKBACK_CALL(CDLMORNINGDOJISTAR)(optInPenetration); +/* Generated */ if( startIdx < lookbackTotal ) +/* Generated */ startIdx = lookbackTotal; +/* Generated */ if( startIdx > endIdx ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ BodyLongPeriodTotal = 0; +/* Generated */ BodyDojiPeriodTotal = 0; +/* Generated */ BodyShortPeriodTotal = 0; +/* Generated */ BodyLongTrailingIdx = startIdx -2 - TA_CANDLEAVGPERIOD(BodyLong); +/* Generated */ BodyDojiTrailingIdx = startIdx -1 - TA_CANDLEAVGPERIOD(BodyDoji); +/* Generated */ BodyShortTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(BodyShort); +/* Generated */ i = BodyLongTrailingIdx; +/* Generated */ while( i < startIdx-2 ) { +/* Generated */ BodyLongPeriodTotal += TA_CANDLERANGE( BodyLong, i ); +/* Generated */ i++; +/* Generated */ } +/* Generated */ i = BodyDojiTrailingIdx; +/* Generated */ while( i < startIdx-1 ) { +/* Generated */ BodyDojiPeriodTotal += TA_CANDLERANGE( BodyDoji, i ); +/* Generated */ i++; +/* Generated */ } +/* Generated */ i = BodyShortTrailingIdx; +/* Generated */ while( i < startIdx ) { +/* Generated */ BodyShortPeriodTotal += TA_CANDLERANGE( BodyShort, i ); +/* Generated */ i++; +/* Generated */ } +/* Generated */ i = startIdx; +/* Generated */ outIdx = 0; +/* Generated */ do +/* Generated */ { +/* Generated */ if( TA_REALBODY(i-2) > TA_CANDLEAVERAGE( BodyLong, BodyLongPeriodTotal, i-2 ) && // 1st: long +/* Generated */ TA_CANDLECOLOR(i-2) == -1 && // black +/* Generated */ TA_REALBODY(i-1) <= TA_CANDLEAVERAGE( BodyDoji, BodyDojiPeriodTotal, i-1 ) && // 2nd: doji +/* Generated */ TA_REALBODYGAPDOWN(i-1,i-2) && // gapping down +/* Generated */ TA_REALBODY(i) > TA_CANDLEAVERAGE( BodyShort, BodyShortPeriodTotal, i ) && // 3rd: longer than short +/* Generated */ TA_CANDLECOLOR(i) == 1 && // white real body +/* Generated */ inClose[i] > inClose[i-2] + TA_REALBODY(i-2) * optInPenetration // closing well within 1st rb +/* Generated */ ) +/* Generated */ outInteger[outIdx++] = 100; +/* Generated */ else +/* Generated */ outInteger[outIdx++] = 0; +/* Generated */ BodyLongPeriodTotal += TA_CANDLERANGE( BodyLong, i-2 ) - TA_CANDLERANGE( BodyLong, BodyLongTrailingIdx ); +/* Generated */ BodyDojiPeriodTotal += TA_CANDLERANGE( BodyDoji, i-1 ) - TA_CANDLERANGE( BodyDoji, BodyDojiTrailingIdx ); +/* Generated */ BodyShortPeriodTotal += TA_CANDLERANGE( BodyShort, i ) - TA_CANDLERANGE( BodyShort, BodyShortTrailingIdx ); +/* Generated */ i++; +/* Generated */ BodyLongTrailingIdx++; +/* Generated */ BodyDojiTrailingIdx++; +/* Generated */ BodyShortTrailingIdx++; +/* Generated */ } while( i <= endIdx ); +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_CDLMORNINGSTAR.c b/src/ta_func/ta_CDLMORNINGSTAR.c new file mode 100644 index 000000000..86334e8f0 --- /dev/null +++ b/src/ta_func/ta_CDLMORNINGSTAR.c @@ -0,0 +1,411 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * AC Angelo Ciceri + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 100304 AC Creation + * + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::CdlMorningStarLookback( double optInPenetration ) /* From 0 to TA_REAL_MAX */ +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int cdlMorningStarLookback( double optInPenetration ) /* From 0 to TA_REAL_MAX */ +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_CDLMORNINGSTAR_Lookback( double optInPenetration ) /* From 0 to TA_REAL_MAX */ +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( optInPenetration == TA_REAL_DEFAULT ) +/* Generated */ optInPenetration = 3.000000e-1; +/* Generated */ else if( (optInPenetration < 0.000000e+0) ||/* Generated */ (optInPenetration > 3.000000e+37) ) +/* Generated */ return -1; +/* Generated */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + UNUSED_VARIABLE(optInPenetration); + return max( TA_CANDLEAVGPERIOD(BodyShort), TA_CANDLEAVGPERIOD(BodyLong) ) + 2; +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_CDLMORNINGSTAR - Morning Star + * + * Input = Open, High, Low, Close + * Output = int + * + * Optional Parameters + * ------------------- + * optInPenetration:(From 0 to TA_REAL_MAX) + * Percentage of penetration of a candle within another candle + * + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::CdlMorningStar( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inOpen, +/* Generated */ SubArray^ inHigh, +/* Generated */ SubArray^ inLow, +/* Generated */ SubArray^ inClose, +/* Generated */ double optInPenetration, /* From 0 to TA_REAL_MAX */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::CdlMorningStar( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inOpen, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ double optInPenetration, /* From 0 to TA_REAL_MAX */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cdlMorningStar( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inOpen[], +/* Generated */ double inHigh[], +/* Generated */ double inLow[], +/* Generated */ double inClose[], +/* Generated */ double optInPenetration, /* From 0 to TA_REAL_MAX */ +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_CDLMORNINGSTAR( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inOpen[], +/* Generated */ const double inHigh[], +/* Generated */ const double inLow[], +/* Generated */ const double inClose[], +/* Generated */ double optInPenetration, /* From 0 to TA_REAL_MAX */ +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* Insert local variables here. */ + double BodyShortPeriodTotal, BodyLongPeriodTotal, BodyShortPeriodTotal2; + int i, outIdx, BodyShortTrailingIdx, BodyLongTrailingIdx, lookbackTotal; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ /* Verify required price component. */ +/* Generated */ if(!inOpen||!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ if( optInPenetration == TA_REAL_DEFAULT ) +/* Generated */ optInPenetration = 3.000000e-1; +/* Generated */ else if( (optInPenetration < 0.000000e+0) ||/* Generated */ (optInPenetration > 3.000000e+37) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInteger ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Identify the minimum number of price bar needed + * to calculate at least one output. + */ + + lookbackTotal = LOOKBACK_CALL(CDLMORNINGSTAR)(optInPenetration); + + /* Move up the start index if there is not + * enough initial data. + */ + if( startIdx < lookbackTotal ) + startIdx = lookbackTotal; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + + /* Do the calculation using tight loops. */ + /* Add-up the initial period, except for the last value. */ + BodyLongPeriodTotal = 0; + BodyShortPeriodTotal = 0; + BodyShortPeriodTotal2 = 0; + BodyLongTrailingIdx = startIdx -2 - TA_CANDLEAVGPERIOD(BodyLong); + BodyShortTrailingIdx = startIdx -1 - TA_CANDLEAVGPERIOD(BodyShort); + + i = BodyLongTrailingIdx; + while( i < startIdx-2 ) { + BodyLongPeriodTotal += TA_CANDLERANGE( BodyLong, i ); + i++; + } + i = BodyShortTrailingIdx; + while( i < startIdx-1 ) { + BodyShortPeriodTotal += TA_CANDLERANGE( BodyShort, i ); + BodyShortPeriodTotal2 += TA_CANDLERANGE( BodyShort, i+1 ); + i++; + } + i = startIdx; + + /* Proceed with the calculation for the requested range. + * Must have: + * - first candle: long black real body + * - second candle: star (Short real body gapping down) + * - third candle: white real body that moves well within the first candle's real body + * The meaning of "short" and "long" is specified with TA_SetCandleSettings + * The meaning of "moves well within" is specified with optInPenetration and "moves" should mean the real body should + * not be short ("short" is specified with TA_SetCandleSettings) - Greg Morris wants it to be long, someone else want + * it to be relatively long + * outInteger is positive (1 to 100): morning star is always bullish; + * the user should consider that a morning star is significant when it appears in a downtrend, + * while this function does not consider the trend + */ + outIdx = 0; + do + { + if( TA_REALBODY(i-2) > TA_CANDLEAVERAGE( BodyLong, BodyLongPeriodTotal, i-2 ) && // 1st: long + TA_CANDLECOLOR(i-2) == -1 && // black + TA_REALBODY(i-1) <= TA_CANDLEAVERAGE( BodyShort, BodyShortPeriodTotal, i-1 ) && // 2nd: short + TA_REALBODYGAPDOWN(i-1,i-2) && // gapping down + TA_REALBODY(i) > TA_CANDLEAVERAGE( BodyShort, BodyShortPeriodTotal2, i ) && // 3rd: longer than short + TA_CANDLECOLOR(i) == 1 && // black real body + inClose[i] > inClose[i-2] + TA_REALBODY(i-2) * optInPenetration // closing well within 1st rb + ) + outInteger[outIdx++] = 100; + else + outInteger[outIdx++] = 0; + /* add the current range and subtract the first range: this is done after the pattern recognition + * when avgPeriod is not 0, that means "compare with the previous candles" (it excludes the current candle) + */ + BodyLongPeriodTotal += TA_CANDLERANGE( BodyLong, i-2 ) - TA_CANDLERANGE( BodyLong, BodyLongTrailingIdx ); + BodyShortPeriodTotal += TA_CANDLERANGE( BodyShort, i-1 ) - TA_CANDLERANGE( BodyShort, BodyShortTrailingIdx ); + BodyShortPeriodTotal2 += TA_CANDLERANGE( BodyShort, i ) - TA_CANDLERANGE( BodyShort, BodyShortTrailingIdx+1 ); + i++; + BodyLongTrailingIdx++; + BodyShortTrailingIdx++; + } while( i <= endIdx ); + + /* All done. Indicate the output limits and return. */ + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::CdlMorningStar( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inOpen, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ double optInPenetration, /* From 0 to TA_REAL_MAX */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cdlMorningStar( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inOpen[], +/* Generated */ float inHigh[], +/* Generated */ float inLow[], +/* Generated */ float inClose[], +/* Generated */ double optInPenetration, /* From 0 to TA_REAL_MAX */ +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_CDLMORNINGSTAR( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inOpen[], +/* Generated */ const float inHigh[], +/* Generated */ const float inLow[], +/* Generated */ const float inClose[], +/* Generated */ double optInPenetration, /* From 0 to TA_REAL_MAX */ +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ double BodyShortPeriodTotal, BodyLongPeriodTotal, BodyShortPeriodTotal2; +/* Generated */ int i, outIdx, BodyShortTrailingIdx, BodyLongTrailingIdx, lookbackTotal; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if(!inOpen||!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ if( optInPenetration == TA_REAL_DEFAULT ) +/* Generated */ optInPenetration = 3.000000e-1; +/* Generated */ else if( (optInPenetration < 0.000000e+0) || (optInPenetration > 3.000000e+37) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInteger ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ lookbackTotal = LOOKBACK_CALL(CDLMORNINGSTAR)(optInPenetration); +/* Generated */ if( startIdx < lookbackTotal ) +/* Generated */ startIdx = lookbackTotal; +/* Generated */ if( startIdx > endIdx ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ BodyLongPeriodTotal = 0; +/* Generated */ BodyShortPeriodTotal = 0; +/* Generated */ BodyShortPeriodTotal2 = 0; +/* Generated */ BodyLongTrailingIdx = startIdx -2 - TA_CANDLEAVGPERIOD(BodyLong); +/* Generated */ BodyShortTrailingIdx = startIdx -1 - TA_CANDLEAVGPERIOD(BodyShort); +/* Generated */ i = BodyLongTrailingIdx; +/* Generated */ while( i < startIdx-2 ) { +/* Generated */ BodyLongPeriodTotal += TA_CANDLERANGE( BodyLong, i ); +/* Generated */ i++; +/* Generated */ } +/* Generated */ i = BodyShortTrailingIdx; +/* Generated */ while( i < startIdx-1 ) { +/* Generated */ BodyShortPeriodTotal += TA_CANDLERANGE( BodyShort, i ); +/* Generated */ BodyShortPeriodTotal2 += TA_CANDLERANGE( BodyShort, i+1 ); +/* Generated */ i++; +/* Generated */ } +/* Generated */ i = startIdx; +/* Generated */ outIdx = 0; +/* Generated */ do +/* Generated */ { +/* Generated */ if( TA_REALBODY(i-2) > TA_CANDLEAVERAGE( BodyLong, BodyLongPeriodTotal, i-2 ) && // 1st: long +/* Generated */ TA_CANDLECOLOR(i-2) == -1 && // black +/* Generated */ TA_REALBODY(i-1) <= TA_CANDLEAVERAGE( BodyShort, BodyShortPeriodTotal, i-1 ) && // 2nd: short +/* Generated */ TA_REALBODYGAPDOWN(i-1,i-2) && // gapping down +/* Generated */ TA_REALBODY(i) > TA_CANDLEAVERAGE( BodyShort, BodyShortPeriodTotal2, i ) && // 3rd: longer than short +/* Generated */ TA_CANDLECOLOR(i) == 1 && // black real body +/* Generated */ inClose[i] > inClose[i-2] + TA_REALBODY(i-2) * optInPenetration // closing well within 1st rb +/* Generated */ ) +/* Generated */ outInteger[outIdx++] = 100; +/* Generated */ else +/* Generated */ outInteger[outIdx++] = 0; +/* Generated */ BodyLongPeriodTotal += TA_CANDLERANGE( BodyLong, i-2 ) - TA_CANDLERANGE( BodyLong, BodyLongTrailingIdx ); +/* Generated */ BodyShortPeriodTotal += TA_CANDLERANGE( BodyShort, i-1 ) - TA_CANDLERANGE( BodyShort, BodyShortTrailingIdx ); +/* Generated */ BodyShortPeriodTotal2 += TA_CANDLERANGE( BodyShort, i ) - TA_CANDLERANGE( BodyShort, BodyShortTrailingIdx+1 ); +/* Generated */ i++; +/* Generated */ BodyLongTrailingIdx++; +/* Generated */ BodyShortTrailingIdx++; +/* Generated */ } while( i <= endIdx ); +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_CDLONNECK.c b/src/ta_func/ta_CDLONNECK.c new file mode 100644 index 000000000..6f4bacd09 --- /dev/null +++ b/src/ta_func/ta_CDLONNECK.c @@ -0,0 +1,373 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * AC Angelo Ciceri + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 121104 AC Creation + * + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::CdlOnNeckLookback( void ) +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int cdlOnNeckLookback( ) +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_CDLONNECK_Lookback( void ) +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ /* No parameters to validate. */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + return max( TA_CANDLEAVGPERIOD(Equal), TA_CANDLEAVGPERIOD(BodyLong) + ) + 1; +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_CDLONNECK - On-Neck Pattern + * + * Input = Open, High, Low, Close + * Output = int + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::CdlOnNeck( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inOpen, +/* Generated */ SubArray^ inHigh, +/* Generated */ SubArray^ inLow, +/* Generated */ SubArray^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::CdlOnNeck( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inOpen, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cdlOnNeck( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inOpen[], +/* Generated */ double inHigh[], +/* Generated */ double inLow[], +/* Generated */ double inClose[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_CDLONNECK( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inOpen[], +/* Generated */ const double inHigh[], +/* Generated */ const double inLow[], +/* Generated */ const double inClose[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* Insert local variables here. */ + double EqualPeriodTotal, BodyLongPeriodTotal; + int i, outIdx, EqualTrailingIdx, BodyLongTrailingIdx, lookbackTotal; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ /* Verify required price component. */ +/* Generated */ if(!inOpen||!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInteger ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Identify the minimum number of price bar needed + * to calculate at least one output. + */ + + lookbackTotal = LOOKBACK_CALL(CDLONNECK)(); + + /* Move up the start index if there is not + * enough initial data. + */ + if( startIdx < lookbackTotal ) + startIdx = lookbackTotal; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + + /* Do the calculation using tight loops. */ + /* Add-up the initial period, except for the last value. */ + EqualPeriodTotal = 0; + EqualTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(Equal); + BodyLongPeriodTotal = 0; + BodyLongTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(BodyLong); + + i = EqualTrailingIdx; + while( i < startIdx ) { + EqualPeriodTotal += TA_CANDLERANGE( Equal, i-1 ); + i++; + } + i = BodyLongTrailingIdx; + while( i < startIdx ) { + BodyLongPeriodTotal += TA_CANDLERANGE( BodyLong, i-1 ); + i++; + } + i = startIdx; + + /* Proceed with the calculation for the requested range. + * Must have: + * - first candle: long black candle + * - second candle: white candle with open below previous day low and close equal to previous day low + * The meaning of "equal" is specified with TA_SetCandleSettings + * outInteger is negative (-1 to -100): on-neck is always bearish + * the user should consider that on-neck is significant when it appears in a downtrend, while this function + * does not consider it + */ + outIdx = 0; + do + { + if( TA_CANDLECOLOR(i-1) == -1 && // 1st: black + TA_REALBODY(i-1) > TA_CANDLEAVERAGE( BodyLong, BodyLongPeriodTotal, i-1 ) && // long + TA_CANDLECOLOR(i) == 1 && // 2nd: white + inOpen[i] < inLow[i-1] && // open below prior low + inClose[i] <= inLow[i-1] + TA_CANDLEAVERAGE( Equal, EqualPeriodTotal, i-1 ) && // close equal to prior low + inClose[i] >= inLow[i-1] - TA_CANDLEAVERAGE( Equal, EqualPeriodTotal, i-1 ) + ) + outInteger[outIdx++] = -100; + else + outInteger[outIdx++] = 0; + /* add the current range and subtract the first range: this is done after the pattern recognition + * when avgPeriod is not 0, that means "compare with the previous candles" (it excludes the current candle) + */ + EqualPeriodTotal += TA_CANDLERANGE( Equal, i-1 ) - TA_CANDLERANGE( Equal, EqualTrailingIdx-1 ); + BodyLongPeriodTotal += TA_CANDLERANGE( BodyLong, i-1 ) + - TA_CANDLERANGE( BodyLong, BodyLongTrailingIdx-1 ); + i++; + EqualTrailingIdx++; + BodyLongTrailingIdx++; + } while( i <= endIdx ); + + /* All done. Indicate the output limits and return. */ + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::CdlOnNeck( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inOpen, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cdlOnNeck( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inOpen[], +/* Generated */ float inHigh[], +/* Generated */ float inLow[], +/* Generated */ float inClose[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_CDLONNECK( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inOpen[], +/* Generated */ const float inHigh[], +/* Generated */ const float inLow[], +/* Generated */ const float inClose[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ double EqualPeriodTotal, BodyLongPeriodTotal; +/* Generated */ int i, outIdx, EqualTrailingIdx, BodyLongTrailingIdx, lookbackTotal; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if(!inOpen||!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInteger ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ lookbackTotal = LOOKBACK_CALL(CDLONNECK)(); +/* Generated */ if( startIdx < lookbackTotal ) +/* Generated */ startIdx = lookbackTotal; +/* Generated */ if( startIdx > endIdx ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ EqualPeriodTotal = 0; +/* Generated */ EqualTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(Equal); +/* Generated */ BodyLongPeriodTotal = 0; +/* Generated */ BodyLongTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(BodyLong); +/* Generated */ i = EqualTrailingIdx; +/* Generated */ while( i < startIdx ) { +/* Generated */ EqualPeriodTotal += TA_CANDLERANGE( Equal, i-1 ); +/* Generated */ i++; +/* Generated */ } +/* Generated */ i = BodyLongTrailingIdx; +/* Generated */ while( i < startIdx ) { +/* Generated */ BodyLongPeriodTotal += TA_CANDLERANGE( BodyLong, i-1 ); +/* Generated */ i++; +/* Generated */ } +/* Generated */ i = startIdx; +/* Generated */ outIdx = 0; +/* Generated */ do +/* Generated */ { +/* Generated */ if( TA_CANDLECOLOR(i-1) == -1 && // 1st: black +/* Generated */ TA_REALBODY(i-1) > TA_CANDLEAVERAGE( BodyLong, BodyLongPeriodTotal, i-1 ) && // long +/* Generated */ TA_CANDLECOLOR(i) == 1 && // 2nd: white +/* Generated */ inOpen[i] < inLow[i-1] && // open below prior low +/* Generated */ inClose[i] <= inLow[i-1] + TA_CANDLEAVERAGE( Equal, EqualPeriodTotal, i-1 ) && // close equal to prior low +/* Generated */ inClose[i] >= inLow[i-1] - TA_CANDLEAVERAGE( Equal, EqualPeriodTotal, i-1 ) +/* Generated */ ) +/* Generated */ outInteger[outIdx++] = -100; +/* Generated */ else +/* Generated */ outInteger[outIdx++] = 0; +/* Generated */ EqualPeriodTotal += TA_CANDLERANGE( Equal, i-1 ) - TA_CANDLERANGE( Equal, EqualTrailingIdx-1 ); +/* Generated */ BodyLongPeriodTotal += TA_CANDLERANGE( BodyLong, i-1 ) +/* Generated */ - TA_CANDLERANGE( BodyLong, BodyLongTrailingIdx-1 ); +/* Generated */ i++; +/* Generated */ EqualTrailingIdx++; +/* Generated */ BodyLongTrailingIdx++; +/* Generated */ } while( i <= endIdx ); +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_CDLPIERCING.c b/src/ta_func/ta_CDLPIERCING.c new file mode 100644 index 000000000..7d95aaaae --- /dev/null +++ b/src/ta_func/ta_CDLPIERCING.c @@ -0,0 +1,363 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * AC Angelo Ciceri + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 120904 AC Creation + * + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::CdlPiercingLookback( void ) +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int cdlPiercingLookback( ) +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_CDLPIERCING_Lookback( void ) +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ /* No parameters to validate. */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + return TA_CANDLEAVGPERIOD(BodyLong) + 1; +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_CDLPIERCING - Piercing Pattern + * + * Input = Open, High, Low, Close + * Output = int + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::CdlPiercing( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inOpen, +/* Generated */ SubArray^ inHigh, +/* Generated */ SubArray^ inLow, +/* Generated */ SubArray^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::CdlPiercing( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inOpen, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cdlPiercing( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inOpen[], +/* Generated */ double inHigh[], +/* Generated */ double inLow[], +/* Generated */ double inClose[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_CDLPIERCING( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inOpen[], +/* Generated */ const double inHigh[], +/* Generated */ const double inLow[], +/* Generated */ const double inClose[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* Insert local variables here. */ + ARRAY_LOCAL(BodyLongPeriodTotal,2); + int i, outIdx, totIdx, BodyLongTrailingIdx, lookbackTotal; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ /* Verify required price component. */ +/* Generated */ if(!inOpen||!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInteger ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Identify the minimum number of price bar needed + * to calculate at least one output. + */ + + lookbackTotal = LOOKBACK_CALL(CDLPIERCING)(); + + /* Move up the start index if there is not + * enough initial data. + */ + if( startIdx < lookbackTotal ) + startIdx = lookbackTotal; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + + /* Do the calculation using tight loops. */ + /* Add-up the initial period, except for the last value. */ + BodyLongPeriodTotal[1] = 0; + BodyLongPeriodTotal[0] = 0; + BodyLongTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(BodyLong); + + i = BodyLongTrailingIdx; + while( i < startIdx ) { + BodyLongPeriodTotal[1] += TA_CANDLERANGE( BodyLong, i-1 ); + BodyLongPeriodTotal[0] += TA_CANDLERANGE( BodyLong, i ); + i++; + } + i = startIdx; + + /* Proceed with the calculation for the requested range. + * Must have: + * - first candle: long black candle + * - second candle: long white candle with open below previous day low and close at least at 50% of previous day + * real body + * The meaning of "long" is specified with TA_SetCandleSettings + * outInteger is positive (1 to 100): piercing pattern is always bullish + * the user should consider that a piercing pattern is significant when it appears in a downtrend, while + * this function does not consider it + */ + outIdx = 0; + do + { + if( TA_CANDLECOLOR(i-1) == -1 && // 1st: black + TA_REALBODY(i-1) > TA_CANDLEAVERAGE( BodyLong, BodyLongPeriodTotal[1], i-1 ) && // long + TA_CANDLECOLOR(i) == 1 && // 2nd: white + TA_REALBODY(i) > TA_CANDLEAVERAGE( BodyLong, BodyLongPeriodTotal[0], i ) && // long + inOpen[i] < inLow[i-1] && // open below prior low + inClose[i] < inOpen[i-1] && // close within prior body + inClose[i] > inClose[i-1] + TA_REALBODY(i-1) * 0.5 // above midpoint + ) + outInteger[outIdx++] = 100; + else + outInteger[outIdx++] = 0; + /* add the current range and subtract the first range: this is done after the pattern recognition + * when avgPeriod is not 0, that means "compare with the previous candles" (it excludes the current candle) + */ + for (totIdx = 1; totIdx >= 0; --totIdx) + BodyLongPeriodTotal[totIdx] += TA_CANDLERANGE( BodyLong, i-totIdx ) + - TA_CANDLERANGE( BodyLong, BodyLongTrailingIdx-totIdx ); + i++; + BodyLongTrailingIdx++; + } while( i <= endIdx ); + + /* All done. Indicate the output limits and return. */ + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::CdlPiercing( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inOpen, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cdlPiercing( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inOpen[], +/* Generated */ float inHigh[], +/* Generated */ float inLow[], +/* Generated */ float inClose[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_CDLPIERCING( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inOpen[], +/* Generated */ const float inHigh[], +/* Generated */ const float inLow[], +/* Generated */ const float inClose[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ ARRAY_LOCAL(BodyLongPeriodTotal,2); +/* Generated */ int i, outIdx, totIdx, BodyLongTrailingIdx, lookbackTotal; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if(!inOpen||!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInteger ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ lookbackTotal = LOOKBACK_CALL(CDLPIERCING)(); +/* Generated */ if( startIdx < lookbackTotal ) +/* Generated */ startIdx = lookbackTotal; +/* Generated */ if( startIdx > endIdx ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ BodyLongPeriodTotal[1] = 0; +/* Generated */ BodyLongPeriodTotal[0] = 0; +/* Generated */ BodyLongTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(BodyLong); +/* Generated */ i = BodyLongTrailingIdx; +/* Generated */ while( i < startIdx ) { +/* Generated */ BodyLongPeriodTotal[1] += TA_CANDLERANGE( BodyLong, i-1 ); +/* Generated */ BodyLongPeriodTotal[0] += TA_CANDLERANGE( BodyLong, i ); +/* Generated */ i++; +/* Generated */ } +/* Generated */ i = startIdx; +/* Generated */ outIdx = 0; +/* Generated */ do +/* Generated */ { +/* Generated */ if( TA_CANDLECOLOR(i-1) == -1 && // 1st: black +/* Generated */ TA_REALBODY(i-1) > TA_CANDLEAVERAGE( BodyLong, BodyLongPeriodTotal[1], i-1 ) && // long +/* Generated */ TA_CANDLECOLOR(i) == 1 && // 2nd: white +/* Generated */ TA_REALBODY(i) > TA_CANDLEAVERAGE( BodyLong, BodyLongPeriodTotal[0], i ) && // long +/* Generated */ inOpen[i] < inLow[i-1] && // open below prior low +/* Generated */ inClose[i] < inOpen[i-1] && // close within prior body +/* Generated */ inClose[i] > inClose[i-1] + TA_REALBODY(i-1) * 0.5 // above midpoint +/* Generated */ ) +/* Generated */ outInteger[outIdx++] = 100; +/* Generated */ else +/* Generated */ outInteger[outIdx++] = 0; +/* Generated */ for (totIdx = 1; totIdx >= 0; --totIdx) +/* Generated */ BodyLongPeriodTotal[totIdx] += TA_CANDLERANGE( BodyLong, i-totIdx ) +/* Generated */ - TA_CANDLERANGE( BodyLong, BodyLongTrailingIdx-totIdx ); +/* Generated */ i++; +/* Generated */ BodyLongTrailingIdx++; +/* Generated */ } while( i <= endIdx ); +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_CDLRICKSHAWMAN.c b/src/ta_func/ta_CDLRICKSHAWMAN.c new file mode 100644 index 000000000..798b2632a --- /dev/null +++ b/src/ta_func/ta_CDLRICKSHAWMAN.c @@ -0,0 +1,396 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * AC Angelo Ciceri + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 011505 AC Creation + * + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::CdlRickshawManLookback( void ) +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int cdlRickshawManLookback( ) +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_CDLRICKSHAWMAN_Lookback( void ) +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ /* No parameters to validate. */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + return max( max( TA_CANDLEAVGPERIOD(BodyDoji), TA_CANDLEAVGPERIOD(ShadowLong) ), + TA_CANDLEAVGPERIOD(Near) + ); +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_CDLRICKSHAWMAN - Rickshaw Man + * + * Input = Open, High, Low, Close + * Output = int + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::CdlRickshawMan( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inOpen, +/* Generated */ SubArray^ inHigh, +/* Generated */ SubArray^ inLow, +/* Generated */ SubArray^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::CdlRickshawMan( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inOpen, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cdlRickshawMan( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inOpen[], +/* Generated */ double inHigh[], +/* Generated */ double inLow[], +/* Generated */ double inClose[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_CDLRICKSHAWMAN( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inOpen[], +/* Generated */ const double inHigh[], +/* Generated */ const double inLow[], +/* Generated */ const double inClose[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* Insert local variables here. */ + double BodyDojiPeriodTotal, ShadowLongPeriodTotal, NearPeriodTotal; + int i, outIdx, BodyDojiTrailingIdx, ShadowLongTrailingIdx, NearTrailingIdx, lookbackTotal; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ /* Verify required price component. */ +/* Generated */ if(!inOpen||!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInteger ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Identify the minimum number of price bar needed + * to calculate at least one output. + */ + + lookbackTotal = LOOKBACK_CALL(CDLRICKSHAWMAN)(); + + /* Move up the start index if there is not + * enough initial data. + */ + if( startIdx < lookbackTotal ) + startIdx = lookbackTotal; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + + /* Do the calculation using tight loops. */ + /* Add-up the initial period, except for the last value. */ + BodyDojiPeriodTotal = 0; + BodyDojiTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(BodyDoji); + ShadowLongPeriodTotal = 0; + ShadowLongTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(ShadowLong); + NearPeriodTotal = 0; + NearTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(Near); + + i = BodyDojiTrailingIdx; + while( i < startIdx ) { + BodyDojiPeriodTotal += TA_CANDLERANGE( BodyDoji, i ); + i++; + } + i = ShadowLongTrailingIdx; + while( i < startIdx ) { + ShadowLongPeriodTotal += TA_CANDLERANGE( ShadowLong, i ); + i++; + } + i = NearTrailingIdx; + while( i < startIdx ) { + NearPeriodTotal += TA_CANDLERANGE( Near, i ); + i++; + } + + /* Proceed with the calculation for the requested range. + * + * Must have: + * - doji body + * - two long shadows + * - body near the midpoint of the high-low range + * The meaning of "doji" and "near" is specified with TA_SetCandleSettings + * outInteger is always positive (1 to 100) but this does not mean it is bullish: rickshaw man shows uncertainty + */ + outIdx = 0; + do + { + if( TA_REALBODY(i) <= TA_CANDLEAVERAGE( BodyDoji, BodyDojiPeriodTotal, i ) && // doji + TA_LOWERSHADOW(i) > TA_CANDLEAVERAGE( ShadowLong, ShadowLongPeriodTotal, i ) && // long shadow + TA_UPPERSHADOW(i) > TA_CANDLEAVERAGE( ShadowLong, ShadowLongPeriodTotal, i ) && // long shadow + ( // body near midpoint + min( inOpen[i], inClose[i] ) + <= inLow[i] + TA_HIGHLOWRANGE(i) / 2 + TA_CANDLEAVERAGE( Near, NearPeriodTotal, i ) + && + max( inOpen[i], inClose[i] ) + >= inLow[i] + TA_HIGHLOWRANGE(i) / 2 - TA_CANDLEAVERAGE( Near, NearPeriodTotal, i ) + ) + ) + outInteger[outIdx++] = 100; + else + outInteger[outIdx++] = 0; + /* add the current range and subtract the first range: this is done after the pattern recognition + * when avgPeriod is not 0, that means "compare with the previous candles" (it excludes the current candle) + */ + BodyDojiPeriodTotal += TA_CANDLERANGE( BodyDoji, i ) - TA_CANDLERANGE( BodyDoji, BodyDojiTrailingIdx ); + ShadowLongPeriodTotal += TA_CANDLERANGE( ShadowLong, i ) - TA_CANDLERANGE( ShadowLong, ShadowLongTrailingIdx ); + NearPeriodTotal += TA_CANDLERANGE( Near, i ) - TA_CANDLERANGE( Near, NearTrailingIdx ); + i++; + BodyDojiTrailingIdx++; + ShadowLongTrailingIdx++; + NearTrailingIdx++; + } while( i <= endIdx ); + + /* All done. Indicate the output limits and return. */ + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::CdlRickshawMan( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inOpen, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cdlRickshawMan( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inOpen[], +/* Generated */ float inHigh[], +/* Generated */ float inLow[], +/* Generated */ float inClose[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_CDLRICKSHAWMAN( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inOpen[], +/* Generated */ const float inHigh[], +/* Generated */ const float inLow[], +/* Generated */ const float inClose[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ double BodyDojiPeriodTotal, ShadowLongPeriodTotal, NearPeriodTotal; +/* Generated */ int i, outIdx, BodyDojiTrailingIdx, ShadowLongTrailingIdx, NearTrailingIdx, lookbackTotal; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if(!inOpen||!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInteger ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ lookbackTotal = LOOKBACK_CALL(CDLRICKSHAWMAN)(); +/* Generated */ if( startIdx < lookbackTotal ) +/* Generated */ startIdx = lookbackTotal; +/* Generated */ if( startIdx > endIdx ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ BodyDojiPeriodTotal = 0; +/* Generated */ BodyDojiTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(BodyDoji); +/* Generated */ ShadowLongPeriodTotal = 0; +/* Generated */ ShadowLongTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(ShadowLong); +/* Generated */ NearPeriodTotal = 0; +/* Generated */ NearTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(Near); +/* Generated */ i = BodyDojiTrailingIdx; +/* Generated */ while( i < startIdx ) { +/* Generated */ BodyDojiPeriodTotal += TA_CANDLERANGE( BodyDoji, i ); +/* Generated */ i++; +/* Generated */ } +/* Generated */ i = ShadowLongTrailingIdx; +/* Generated */ while( i < startIdx ) { +/* Generated */ ShadowLongPeriodTotal += TA_CANDLERANGE( ShadowLong, i ); +/* Generated */ i++; +/* Generated */ } +/* Generated */ i = NearTrailingIdx; +/* Generated */ while( i < startIdx ) { +/* Generated */ NearPeriodTotal += TA_CANDLERANGE( Near, i ); +/* Generated */ i++; +/* Generated */ } +/* Generated */ outIdx = 0; +/* Generated */ do +/* Generated */ { +/* Generated */ if( TA_REALBODY(i) <= TA_CANDLEAVERAGE( BodyDoji, BodyDojiPeriodTotal, i ) && // doji +/* Generated */ TA_LOWERSHADOW(i) > TA_CANDLEAVERAGE( ShadowLong, ShadowLongPeriodTotal, i ) && // long shadow +/* Generated */ TA_UPPERSHADOW(i) > TA_CANDLEAVERAGE( ShadowLong, ShadowLongPeriodTotal, i ) && // long shadow +/* Generated */ ( // body near midpoint +/* Generated */ min( inOpen[i], inClose[i] ) +/* Generated */ <= inLow[i] + TA_HIGHLOWRANGE(i) / 2 + TA_CANDLEAVERAGE( Near, NearPeriodTotal, i ) +/* Generated */ && +/* Generated */ max( inOpen[i], inClose[i] ) +/* Generated */ >= inLow[i] + TA_HIGHLOWRANGE(i) / 2 - TA_CANDLEAVERAGE( Near, NearPeriodTotal, i ) +/* Generated */ ) +/* Generated */ ) +/* Generated */ outInteger[outIdx++] = 100; +/* Generated */ else +/* Generated */ outInteger[outIdx++] = 0; +/* Generated */ BodyDojiPeriodTotal += TA_CANDLERANGE( BodyDoji, i ) - TA_CANDLERANGE( BodyDoji, BodyDojiTrailingIdx ); +/* Generated */ ShadowLongPeriodTotal += TA_CANDLERANGE( ShadowLong, i ) - TA_CANDLERANGE( ShadowLong, ShadowLongTrailingIdx ); +/* Generated */ NearPeriodTotal += TA_CANDLERANGE( Near, i ) - TA_CANDLERANGE( Near, NearTrailingIdx ); +/* Generated */ i++; +/* Generated */ BodyDojiTrailingIdx++; +/* Generated */ ShadowLongTrailingIdx++; +/* Generated */ NearTrailingIdx++; +/* Generated */ } while( i <= endIdx ); +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_CDLRISEFALL3METHODS.c b/src/ta_func/ta_CDLRISEFALL3METHODS.c new file mode 100644 index 000000000..3766281df --- /dev/null +++ b/src/ta_func/ta_CDLRISEFALL3METHODS.c @@ -0,0 +1,422 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * AC Angelo Ciceri + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 020605 AC Creation + * + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::CdlRiseFall3MethodsLookback( void ) +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int cdlRiseFall3MethodsLookback( ) +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_CDLRISEFALL3METHODS_Lookback( void ) +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ /* No parameters to validate. */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + return max( TA_CANDLEAVGPERIOD(BodyShort), TA_CANDLEAVGPERIOD(BodyLong) ) + 4; +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_CDLRISEFALL3METHODS - Rising/Falling Three Methods + * + * Input = Open, High, Low, Close + * Output = int + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::CdlRiseFall3Methods( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inOpen, +/* Generated */ SubArray^ inHigh, +/* Generated */ SubArray^ inLow, +/* Generated */ SubArray^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::CdlRiseFall3Methods( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inOpen, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cdlRiseFall3Methods( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inOpen[], +/* Generated */ double inHigh[], +/* Generated */ double inLow[], +/* Generated */ double inClose[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_CDLRISEFALL3METHODS( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inOpen[], +/* Generated */ const double inHigh[], +/* Generated */ const double inLow[], +/* Generated */ const double inClose[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* Insert local variables here. */ + ARRAY_LOCAL(BodyPeriodTotal,5); + int i, outIdx, totIdx, BodyShortTrailingIdx, BodyLongTrailingIdx, lookbackTotal; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ /* Verify required price component. */ +/* Generated */ if(!inOpen||!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInteger ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Identify the minimum number of price bar needed + * to calculate at least one output. + */ + + lookbackTotal = LOOKBACK_CALL(CDLRISEFALL3METHODS)(); + + /* Move up the start index if there is not + * enough initial data. + */ + if( startIdx < lookbackTotal ) + startIdx = lookbackTotal; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + + /* Do the calculation using tight loops. */ + /* Add-up the initial period, except for the last value. */ + BodyPeriodTotal[4] = 0; + BodyPeriodTotal[3] = 0; + BodyPeriodTotal[2] = 0; + BodyPeriodTotal[1] = 0; + BodyPeriodTotal[0] = 0; + BodyShortTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(BodyShort); + BodyLongTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(BodyLong); + + i = BodyShortTrailingIdx; + while( i < startIdx ) { + BodyPeriodTotal[3] += TA_CANDLERANGE( BodyShort, i-3 ); + BodyPeriodTotal[2] += TA_CANDLERANGE( BodyShort, i-2 ); + BodyPeriodTotal[1] += TA_CANDLERANGE( BodyShort, i-1 ); + i++; + } + i = BodyLongTrailingIdx; + while( i < startIdx ) { + BodyPeriodTotal[4] += TA_CANDLERANGE( BodyLong, i-4 ); + BodyPeriodTotal[0] += TA_CANDLERANGE( BodyLong, i ); + i++; + } + i = startIdx; + + /* Proceed with the calculation for the requested range. + * Must have: + * - first candle: long white (black) candlestick + * - then: group of falling (rising) small real body candlesticks (commonly black (white)) that hold within + * the prior long candle's range: ideally they should be three but two or more than three are ok too + * - final candle: long white (black) candle that opens above (below) the previous small candle's close + * and closes above (below) the first long candle's close + * The meaning of "short" and "long" is specified with TA_SetCandleSettings; here only patterns with 3 small candles + * are considered; + * outInteger is positive (1 to 100) or negative (-1 to -100) + */ + outIdx = 0; + do + { + if( // 1st long, then 3 small, 5th long + TA_REALBODY(i-4) > TA_CANDLEAVERAGE( BodyLong, BodyPeriodTotal[4], i-4 ) && + TA_REALBODY(i-3) < TA_CANDLEAVERAGE( BodyShort, BodyPeriodTotal[3], i-3 ) && + TA_REALBODY(i-2) < TA_CANDLEAVERAGE( BodyShort, BodyPeriodTotal[2], i-2 ) && + TA_REALBODY(i-1) < TA_CANDLEAVERAGE( BodyShort, BodyPeriodTotal[1], i-1 ) && + TA_REALBODY(i) > TA_CANDLEAVERAGE( BodyLong, BodyPeriodTotal[0], i ) && + // white, 3 black, white || black, 3 white, black + TA_CANDLECOLOR(i-4) == -TA_CANDLECOLOR(i-3) && + TA_CANDLECOLOR(i-3) == TA_CANDLECOLOR(i-2) && + TA_CANDLECOLOR(i-2) == TA_CANDLECOLOR(i-1) && + TA_CANDLECOLOR(i-1) == -TA_CANDLECOLOR(i) && + // 2nd to 4th hold within 1st: a part of the real body must be within 1st range + min(inOpen[i-3], inClose[i-3]) < inHigh[i-4] && max(inOpen[i-3], inClose[i-3]) > inLow[i-4] && + min(inOpen[i-2], inClose[i-2]) < inHigh[i-4] && max(inOpen[i-2], inClose[i-2]) > inLow[i-4] && + min(inOpen[i-1], inClose[i-1]) < inHigh[i-4] && max(inOpen[i-1], inClose[i-1]) > inLow[i-4] && + // 2nd to 4th are falling (rising) + inClose[i-2] * TA_CANDLECOLOR(i-4) < inClose[i-3] * TA_CANDLECOLOR(i-4) && + inClose[i-1] * TA_CANDLECOLOR(i-4) < inClose[i-2] * TA_CANDLECOLOR(i-4) && + // 5th opens above (below) the prior close + inOpen[i] * TA_CANDLECOLOR(i-4) > inClose[i-1] * TA_CANDLECOLOR(i-4) && + // 5th closes above (below) the 1st close + inClose[i] * TA_CANDLECOLOR(i-4) > inClose[i-4] * TA_CANDLECOLOR(i-4) + ) + outInteger[outIdx++] = 100 * TA_CANDLECOLOR(i-4); + else + outInteger[outIdx++] = 0; + /* add the current range and subtract the first range: this is done after the pattern recognition + * when avgPeriod is not 0, that means "compare with the previous candles" (it excludes the current candle) + */ + BodyPeriodTotal[4] += TA_CANDLERANGE( BodyLong, i-4 ) - TA_CANDLERANGE( BodyLong, BodyLongTrailingIdx-4 ); + for (totIdx = 3; totIdx >= 1; --totIdx) + BodyPeriodTotal[totIdx] += TA_CANDLERANGE( BodyShort, i-totIdx ) + - TA_CANDLERANGE( BodyShort, BodyShortTrailingIdx-totIdx ); + BodyPeriodTotal[0] += TA_CANDLERANGE( BodyLong, i ) - TA_CANDLERANGE( BodyLong, BodyLongTrailingIdx ); + i++; + BodyShortTrailingIdx++; + BodyLongTrailingIdx++; + } while( i <= endIdx ); + + /* All done. Indicate the output limits and return. */ + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::CdlRiseFall3Methods( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inOpen, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cdlRiseFall3Methods( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inOpen[], +/* Generated */ float inHigh[], +/* Generated */ float inLow[], +/* Generated */ float inClose[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_CDLRISEFALL3METHODS( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inOpen[], +/* Generated */ const float inHigh[], +/* Generated */ const float inLow[], +/* Generated */ const float inClose[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ ARRAY_LOCAL(BodyPeriodTotal,5); +/* Generated */ int i, outIdx, totIdx, BodyShortTrailingIdx, BodyLongTrailingIdx, lookbackTotal; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if(!inOpen||!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInteger ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ lookbackTotal = LOOKBACK_CALL(CDLRISEFALL3METHODS)(); +/* Generated */ if( startIdx < lookbackTotal ) +/* Generated */ startIdx = lookbackTotal; +/* Generated */ if( startIdx > endIdx ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ BodyPeriodTotal[4] = 0; +/* Generated */ BodyPeriodTotal[3] = 0; +/* Generated */ BodyPeriodTotal[2] = 0; +/* Generated */ BodyPeriodTotal[1] = 0; +/* Generated */ BodyPeriodTotal[0] = 0; +/* Generated */ BodyShortTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(BodyShort); +/* Generated */ BodyLongTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(BodyLong); +/* Generated */ i = BodyShortTrailingIdx; +/* Generated */ while( i < startIdx ) { +/* Generated */ BodyPeriodTotal[3] += TA_CANDLERANGE( BodyShort, i-3 ); +/* Generated */ BodyPeriodTotal[2] += TA_CANDLERANGE( BodyShort, i-2 ); +/* Generated */ BodyPeriodTotal[1] += TA_CANDLERANGE( BodyShort, i-1 ); +/* Generated */ i++; +/* Generated */ } +/* Generated */ i = BodyLongTrailingIdx; +/* Generated */ while( i < startIdx ) { +/* Generated */ BodyPeriodTotal[4] += TA_CANDLERANGE( BodyLong, i-4 ); +/* Generated */ BodyPeriodTotal[0] += TA_CANDLERANGE( BodyLong, i ); +/* Generated */ i++; +/* Generated */ } +/* Generated */ i = startIdx; +/* Generated */ outIdx = 0; +/* Generated */ do +/* Generated */ { +/* Generated */ if( // 1st long, then 3 small, 5th long +/* Generated */ TA_REALBODY(i-4) > TA_CANDLEAVERAGE( BodyLong, BodyPeriodTotal[4], i-4 ) && +/* Generated */ TA_REALBODY(i-3) < TA_CANDLEAVERAGE( BodyShort, BodyPeriodTotal[3], i-3 ) && +/* Generated */ TA_REALBODY(i-2) < TA_CANDLEAVERAGE( BodyShort, BodyPeriodTotal[2], i-2 ) && +/* Generated */ TA_REALBODY(i-1) < TA_CANDLEAVERAGE( BodyShort, BodyPeriodTotal[1], i-1 ) && +/* Generated */ TA_REALBODY(i) > TA_CANDLEAVERAGE( BodyLong, BodyPeriodTotal[0], i ) && +/* Generated */ // white, 3 black, white || black, 3 white, black +/* Generated */ TA_CANDLECOLOR(i-4) == -TA_CANDLECOLOR(i-3) && +/* Generated */ TA_CANDLECOLOR(i-3) == TA_CANDLECOLOR(i-2) && +/* Generated */ TA_CANDLECOLOR(i-2) == TA_CANDLECOLOR(i-1) && +/* Generated */ TA_CANDLECOLOR(i-1) == -TA_CANDLECOLOR(i) && +/* Generated */ // 2nd to 4th hold within 1st: a part of the real body must be within 1st range +/* Generated */ min(inOpen[i-3], inClose[i-3]) < inHigh[i-4] && max(inOpen[i-3], inClose[i-3]) > inLow[i-4] && +/* Generated */ min(inOpen[i-2], inClose[i-2]) < inHigh[i-4] && max(inOpen[i-2], inClose[i-2]) > inLow[i-4] && +/* Generated */ min(inOpen[i-1], inClose[i-1]) < inHigh[i-4] && max(inOpen[i-1], inClose[i-1]) > inLow[i-4] && +/* Generated */ // 2nd to 4th are falling (rising) +/* Generated */ inClose[i-2] * TA_CANDLECOLOR(i-4) < inClose[i-3] * TA_CANDLECOLOR(i-4) && +/* Generated */ inClose[i-1] * TA_CANDLECOLOR(i-4) < inClose[i-2] * TA_CANDLECOLOR(i-4) && +/* Generated */ // 5th opens above (below) the prior close +/* Generated */ inOpen[i] * TA_CANDLECOLOR(i-4) > inClose[i-1] * TA_CANDLECOLOR(i-4) && +/* Generated */ // 5th closes above (below) the 1st close +/* Generated */ inClose[i] * TA_CANDLECOLOR(i-4) > inClose[i-4] * TA_CANDLECOLOR(i-4) +/* Generated */ ) +/* Generated */ outInteger[outIdx++] = 100 * TA_CANDLECOLOR(i-4); +/* Generated */ else +/* Generated */ outInteger[outIdx++] = 0; +/* Generated */ BodyPeriodTotal[4] += TA_CANDLERANGE( BodyLong, i-4 ) - TA_CANDLERANGE( BodyLong, BodyLongTrailingIdx-4 ); +/* Generated */ for (totIdx = 3; totIdx >= 1; --totIdx) +/* Generated */ BodyPeriodTotal[totIdx] += TA_CANDLERANGE( BodyShort, i-totIdx ) +/* Generated */ - TA_CANDLERANGE( BodyShort, BodyShortTrailingIdx-totIdx ); +/* Generated */ BodyPeriodTotal[0] += TA_CANDLERANGE( BodyLong, i ) - TA_CANDLERANGE( BodyLong, BodyLongTrailingIdx ); +/* Generated */ i++; +/* Generated */ BodyShortTrailingIdx++; +/* Generated */ BodyLongTrailingIdx++; +/* Generated */ } while( i <= endIdx ); +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_CDLSEPARATINGLINES.c b/src/ta_func/ta_CDLSEPARATINGLINES.c new file mode 100644 index 000000000..0bb52152b --- /dev/null +++ b/src/ta_func/ta_CDLSEPARATINGLINES.c @@ -0,0 +1,406 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * AC Angelo Ciceri + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 011505 AC Creation + * + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::CdlSeperatingLinesLookback( void ) +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int cdlSeperatingLinesLookback( ) +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_CDLSEPARATINGLINES_Lookback( void ) +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ /* No parameters to validate. */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + return max( max( TA_CANDLEAVGPERIOD(ShadowVeryShort), TA_CANDLEAVGPERIOD(BodyLong) ), + TA_CANDLEAVGPERIOD(Equal) + ) + 1; +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_CDLSEPARATINGLINES - Separating Lines + * + * Input = Open, High, Low, Close + * Output = int + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::CdlSeperatingLines( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inOpen, +/* Generated */ SubArray^ inHigh, +/* Generated */ SubArray^ inLow, +/* Generated */ SubArray^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::CdlSeperatingLines( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inOpen, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cdlSeperatingLines( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inOpen[], +/* Generated */ double inHigh[], +/* Generated */ double inLow[], +/* Generated */ double inClose[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_CDLSEPARATINGLINES( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inOpen[], +/* Generated */ const double inHigh[], +/* Generated */ const double inLow[], +/* Generated */ const double inClose[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* Insert local variables here. */ + double ShadowVeryShortPeriodTotal, BodyLongPeriodTotal, EqualPeriodTotal; + int i, outIdx, ShadowVeryShortTrailingIdx, BodyLongTrailingIdx, EqualTrailingIdx, lookbackTotal; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ /* Verify required price component. */ +/* Generated */ if(!inOpen||!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInteger ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Identify the minimum number of price bar needed + * to calculate at least one output. + */ + + lookbackTotal = LOOKBACK_CALL(CDLSEPARATINGLINES)(); + + /* Move up the start index if there is not + * enough initial data. + */ + if( startIdx < lookbackTotal ) + startIdx = lookbackTotal; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + + /* Do the calculation using tight loops. */ + /* Add-up the initial period, except for the last value. */ + ShadowVeryShortPeriodTotal = 0; + ShadowVeryShortTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(ShadowVeryShort); + BodyLongPeriodTotal = 0; + BodyLongTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(BodyLong); + EqualPeriodTotal = 0; + EqualTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(Equal); + + i = ShadowVeryShortTrailingIdx; + while( i < startIdx ) { + ShadowVeryShortPeriodTotal += TA_CANDLERANGE( ShadowVeryShort, i ); + i++; + } + i = BodyLongTrailingIdx; + while( i < startIdx ) { + BodyLongPeriodTotal += TA_CANDLERANGE( BodyLong, i ); + i++; + } + i = EqualTrailingIdx; + while( i < startIdx ) { + EqualPeriodTotal += TA_CANDLERANGE( Equal, i-1 ); + i++; + } + i = startIdx; + + /* Proceed with the calculation for the requested range. + * Must have: + * - first candle: black (white) candle + * - second candle: bullish (bearish) belt hold with the same open as the prior candle + * The meaning of "long body" and "very short shadow" of the belt hold is specified with TA_SetCandleSettings + * outInteger is positive (1 to 100) when bullish or negative (-1 to -100) when bearish; + * the user should consider that separating lines is significant when coming in a trend and the belt hold has + * the same direction of the trend, while this function does not consider it + */ + outIdx = 0; + do + { + if( TA_CANDLECOLOR(i-1) == -TA_CANDLECOLOR(i) && // opposite candles + inOpen[i] <= inOpen[i-1] + TA_CANDLEAVERAGE( Equal, EqualPeriodTotal, i-1 ) && // same open + inOpen[i] >= inOpen[i-1] - TA_CANDLEAVERAGE( Equal, EqualPeriodTotal, i-1 ) && + TA_REALBODY(i) > TA_CANDLEAVERAGE( BodyLong, BodyLongPeriodTotal, i ) && // belt hold: long body + ( + ( TA_CANDLECOLOR(i) == 1 && // with no lower shadow if bullish + TA_LOWERSHADOW(i) < TA_CANDLEAVERAGE( ShadowVeryShort, ShadowVeryShortPeriodTotal, i ) + ) + || + ( TA_CANDLECOLOR(i) == -1 && // with no upper shadow if bearish + TA_UPPERSHADOW(i) < TA_CANDLEAVERAGE( ShadowVeryShort, ShadowVeryShortPeriodTotal, i ) + ) + ) + ) + outInteger[outIdx++] = TA_CANDLECOLOR(i) * 100; + else + outInteger[outIdx++] = 0; + /* add the current range and subtract the first range: this is done after the pattern recognition + * when avgPeriod is not 0, that means "compare with the previous candles" (it excludes the current candle) + */ + ShadowVeryShortPeriodTotal += TA_CANDLERANGE( ShadowVeryShort, i ) + - TA_CANDLERANGE( ShadowVeryShort, ShadowVeryShortTrailingIdx ); + BodyLongPeriodTotal += TA_CANDLERANGE( BodyLong, i ) - TA_CANDLERANGE( BodyLong, BodyLongTrailingIdx ); + EqualPeriodTotal += TA_CANDLERANGE( Equal, i-1 ) - TA_CANDLERANGE( Equal, EqualTrailingIdx-1 ); + i++; + ShadowVeryShortTrailingIdx++; + BodyLongTrailingIdx++; + EqualTrailingIdx++; + } while( i <= endIdx ); + + /* All done. Indicate the output limits and return. */ + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::CdlSeperatingLines( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inOpen, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cdlSeperatingLines( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inOpen[], +/* Generated */ float inHigh[], +/* Generated */ float inLow[], +/* Generated */ float inClose[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_CDLSEPARATINGLINES( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inOpen[], +/* Generated */ const float inHigh[], +/* Generated */ const float inLow[], +/* Generated */ const float inClose[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ double ShadowVeryShortPeriodTotal, BodyLongPeriodTotal, EqualPeriodTotal; +/* Generated */ int i, outIdx, ShadowVeryShortTrailingIdx, BodyLongTrailingIdx, EqualTrailingIdx, lookbackTotal; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if(!inOpen||!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInteger ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ lookbackTotal = LOOKBACK_CALL(CDLSEPARATINGLINES)(); +/* Generated */ if( startIdx < lookbackTotal ) +/* Generated */ startIdx = lookbackTotal; +/* Generated */ if( startIdx > endIdx ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ ShadowVeryShortPeriodTotal = 0; +/* Generated */ ShadowVeryShortTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(ShadowVeryShort); +/* Generated */ BodyLongPeriodTotal = 0; +/* Generated */ BodyLongTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(BodyLong); +/* Generated */ EqualPeriodTotal = 0; +/* Generated */ EqualTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(Equal); +/* Generated */ i = ShadowVeryShortTrailingIdx; +/* Generated */ while( i < startIdx ) { +/* Generated */ ShadowVeryShortPeriodTotal += TA_CANDLERANGE( ShadowVeryShort, i ); +/* Generated */ i++; +/* Generated */ } +/* Generated */ i = BodyLongTrailingIdx; +/* Generated */ while( i < startIdx ) { +/* Generated */ BodyLongPeriodTotal += TA_CANDLERANGE( BodyLong, i ); +/* Generated */ i++; +/* Generated */ } +/* Generated */ i = EqualTrailingIdx; +/* Generated */ while( i < startIdx ) { +/* Generated */ EqualPeriodTotal += TA_CANDLERANGE( Equal, i-1 ); +/* Generated */ i++; +/* Generated */ } +/* Generated */ i = startIdx; +/* Generated */ outIdx = 0; +/* Generated */ do +/* Generated */ { +/* Generated */ if( TA_CANDLECOLOR(i-1) == -TA_CANDLECOLOR(i) && // opposite candles +/* Generated */ inOpen[i] <= inOpen[i-1] + TA_CANDLEAVERAGE( Equal, EqualPeriodTotal, i-1 ) && // same open +/* Generated */ inOpen[i] >= inOpen[i-1] - TA_CANDLEAVERAGE( Equal, EqualPeriodTotal, i-1 ) && +/* Generated */ TA_REALBODY(i) > TA_CANDLEAVERAGE( BodyLong, BodyLongPeriodTotal, i ) && // belt hold: long body +/* Generated */ ( +/* Generated */ ( TA_CANDLECOLOR(i) == 1 && // with no lower shadow if bullish +/* Generated */ TA_LOWERSHADOW(i) < TA_CANDLEAVERAGE( ShadowVeryShort, ShadowVeryShortPeriodTotal, i ) +/* Generated */ ) +/* Generated */ || +/* Generated */ ( TA_CANDLECOLOR(i) == -1 && // with no upper shadow if bearish +/* Generated */ TA_UPPERSHADOW(i) < TA_CANDLEAVERAGE( ShadowVeryShort, ShadowVeryShortPeriodTotal, i ) +/* Generated */ ) +/* Generated */ ) +/* Generated */ ) +/* Generated */ outInteger[outIdx++] = TA_CANDLECOLOR(i) * 100; +/* Generated */ else +/* Generated */ outInteger[outIdx++] = 0; +/* Generated */ ShadowVeryShortPeriodTotal += TA_CANDLERANGE( ShadowVeryShort, i ) +/* Generated */ - TA_CANDLERANGE( ShadowVeryShort, ShadowVeryShortTrailingIdx ); +/* Generated */ BodyLongPeriodTotal += TA_CANDLERANGE( BodyLong, i ) - TA_CANDLERANGE( BodyLong, BodyLongTrailingIdx ); +/* Generated */ EqualPeriodTotal += TA_CANDLERANGE( Equal, i-1 ) - TA_CANDLERANGE( Equal, EqualTrailingIdx-1 ); +/* Generated */ i++; +/* Generated */ ShadowVeryShortTrailingIdx++; +/* Generated */ BodyLongTrailingIdx++; +/* Generated */ EqualTrailingIdx++; +/* Generated */ } while( i <= endIdx ); +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_CDLSHOOTINGSTAR.c b/src/ta_func/ta_CDLSHOOTINGSTAR.c new file mode 100644 index 000000000..93f5b82fc --- /dev/null +++ b/src/ta_func/ta_CDLSHOOTINGSTAR.c @@ -0,0 +1,389 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * AC Angelo Ciceri + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 103004 AC Creation + * + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::CdlShootingStarLookback( void ) +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int cdlShootingStarLookback( ) +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_CDLSHOOTINGSTAR_Lookback( void ) +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ /* No parameters to validate. */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + return max( max( TA_CANDLEAVGPERIOD(BodyShort), TA_CANDLEAVGPERIOD(ShadowLong) ), + TA_CANDLEAVGPERIOD(ShadowVeryShort) + ) + 1; +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_CDLSHOOTINGSTAR - Shooting Star + * + * Input = Open, High, Low, Close + * Output = int + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::CdlShootingStar( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inOpen, +/* Generated */ SubArray^ inHigh, +/* Generated */ SubArray^ inLow, +/* Generated */ SubArray^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::CdlShootingStar( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inOpen, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cdlShootingStar( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inOpen[], +/* Generated */ double inHigh[], +/* Generated */ double inLow[], +/* Generated */ double inClose[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_CDLSHOOTINGSTAR( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inOpen[], +/* Generated */ const double inHigh[], +/* Generated */ const double inLow[], +/* Generated */ const double inClose[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* Insert local variables here. */ + double BodyPeriodTotal, ShadowLongPeriodTotal, ShadowVeryShortPeriodTotal; + int i, outIdx, BodyTrailingIdx, ShadowLongTrailingIdx, ShadowVeryShortTrailingIdx, lookbackTotal; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ /* Verify required price component. */ +/* Generated */ if(!inOpen||!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInteger ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Identify the minimum number of price bar needed + * to calculate at least one output. + */ + + lookbackTotal = LOOKBACK_CALL(CDLSHOOTINGSTAR)(); + + /* Move up the start index if there is not + * enough initial data. + */ + if( startIdx < lookbackTotal ) + startIdx = lookbackTotal; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + + /* Do the calculation using tight loops. */ + /* Add-up the initial period, except for the last value. */ + BodyPeriodTotal = 0; + BodyTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(BodyShort); + ShadowLongPeriodTotal = 0; + ShadowLongTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(ShadowLong); + ShadowVeryShortPeriodTotal = 0; + ShadowVeryShortTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(ShadowVeryShort); + + i = BodyTrailingIdx; + while( i < startIdx ) { + BodyPeriodTotal += TA_CANDLERANGE( BodyShort, i ); + i++; + } + i = ShadowLongTrailingIdx; + while( i < startIdx ) { + ShadowLongPeriodTotal += TA_CANDLERANGE( ShadowLong, i ); + i++; + } + i = ShadowVeryShortTrailingIdx; + while( i < startIdx ) { + ShadowVeryShortPeriodTotal += TA_CANDLERANGE( ShadowVeryShort, i ); + i++; + } + + /* Proceed with the calculation for the requested range. + * Must have: + * - small real body + * - long upper shadow + * - no, or very short, lower shadow + * - gap up from prior real body + * The meaning of "short", "very short" and "long" is specified with TA_SetCandleSettings; + * outInteger is negative (-1 to -100): shooting star is always bearish; + * the user should consider that a shooting star must appear in an uptrend, while this function does not consider it + */ + outIdx = 0; + do + { + if( TA_REALBODY(i) < TA_CANDLEAVERAGE( BodyShort, BodyPeriodTotal, i ) && // small rb + TA_UPPERSHADOW(i) > TA_CANDLEAVERAGE( ShadowLong, ShadowLongPeriodTotal, i ) && // long upper shadow + TA_LOWERSHADOW(i) < TA_CANDLEAVERAGE( ShadowVeryShort, ShadowVeryShortPeriodTotal, i ) && // very short lower shadow + TA_REALBODYGAPUP(i, i-1) ) // gap up + outInteger[outIdx++] = -100; + else + outInteger[outIdx++] = 0; + /* add the current range and subtract the first range: this is done after the pattern recognition + * when avgPeriod is not 0, that means "compare with the previous candles" (it excludes the current candle) + */ + BodyPeriodTotal += TA_CANDLERANGE( BodyShort, i ) + - TA_CANDLERANGE( BodyShort, BodyTrailingIdx ); + ShadowLongPeriodTotal += TA_CANDLERANGE( ShadowLong, i ) + - TA_CANDLERANGE( ShadowLong, ShadowLongTrailingIdx ); + ShadowVeryShortPeriodTotal += TA_CANDLERANGE( ShadowVeryShort, i ) + - TA_CANDLERANGE( ShadowVeryShort, ShadowVeryShortTrailingIdx ); + i++; + BodyTrailingIdx++; + ShadowLongTrailingIdx++; + ShadowVeryShortTrailingIdx++; + } while( i <= endIdx ); + + /* All done. Indicate the output limits and return. */ + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::CdlShootingStar( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inOpen, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cdlShootingStar( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inOpen[], +/* Generated */ float inHigh[], +/* Generated */ float inLow[], +/* Generated */ float inClose[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_CDLSHOOTINGSTAR( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inOpen[], +/* Generated */ const float inHigh[], +/* Generated */ const float inLow[], +/* Generated */ const float inClose[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ double BodyPeriodTotal, ShadowLongPeriodTotal, ShadowVeryShortPeriodTotal; +/* Generated */ int i, outIdx, BodyTrailingIdx, ShadowLongTrailingIdx, ShadowVeryShortTrailingIdx, lookbackTotal; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if(!inOpen||!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInteger ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ lookbackTotal = LOOKBACK_CALL(CDLSHOOTINGSTAR)(); +/* Generated */ if( startIdx < lookbackTotal ) +/* Generated */ startIdx = lookbackTotal; +/* Generated */ if( startIdx > endIdx ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ BodyPeriodTotal = 0; +/* Generated */ BodyTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(BodyShort); +/* Generated */ ShadowLongPeriodTotal = 0; +/* Generated */ ShadowLongTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(ShadowLong); +/* Generated */ ShadowVeryShortPeriodTotal = 0; +/* Generated */ ShadowVeryShortTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(ShadowVeryShort); +/* Generated */ i = BodyTrailingIdx; +/* Generated */ while( i < startIdx ) { +/* Generated */ BodyPeriodTotal += TA_CANDLERANGE( BodyShort, i ); +/* Generated */ i++; +/* Generated */ } +/* Generated */ i = ShadowLongTrailingIdx; +/* Generated */ while( i < startIdx ) { +/* Generated */ ShadowLongPeriodTotal += TA_CANDLERANGE( ShadowLong, i ); +/* Generated */ i++; +/* Generated */ } +/* Generated */ i = ShadowVeryShortTrailingIdx; +/* Generated */ while( i < startIdx ) { +/* Generated */ ShadowVeryShortPeriodTotal += TA_CANDLERANGE( ShadowVeryShort, i ); +/* Generated */ i++; +/* Generated */ } +/* Generated */ outIdx = 0; +/* Generated */ do +/* Generated */ { +/* Generated */ if( TA_REALBODY(i) < TA_CANDLEAVERAGE( BodyShort, BodyPeriodTotal, i ) && // small rb +/* Generated */ TA_UPPERSHADOW(i) > TA_CANDLEAVERAGE( ShadowLong, ShadowLongPeriodTotal, i ) && // long upper shadow +/* Generated */ TA_LOWERSHADOW(i) < TA_CANDLEAVERAGE( ShadowVeryShort, ShadowVeryShortPeriodTotal, i ) && // very short lower shadow +/* Generated */ TA_REALBODYGAPUP(i, i-1) ) // gap up +/* Generated */ outInteger[outIdx++] = -100; +/* Generated */ else +/* Generated */ outInteger[outIdx++] = 0; +/* Generated */ BodyPeriodTotal += TA_CANDLERANGE( BodyShort, i ) +/* Generated */ - TA_CANDLERANGE( BodyShort, BodyTrailingIdx ); +/* Generated */ ShadowLongPeriodTotal += TA_CANDLERANGE( ShadowLong, i ) +/* Generated */ - TA_CANDLERANGE( ShadowLong, ShadowLongTrailingIdx ); +/* Generated */ ShadowVeryShortPeriodTotal += TA_CANDLERANGE( ShadowVeryShort, i ) +/* Generated */ - TA_CANDLERANGE( ShadowVeryShort, ShadowVeryShortTrailingIdx ); +/* Generated */ i++; +/* Generated */ BodyTrailingIdx++; +/* Generated */ ShadowLongTrailingIdx++; +/* Generated */ ShadowVeryShortTrailingIdx++; +/* Generated */ } while( i <= endIdx ); +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_CDLSHORTLINE.c b/src/ta_func/ta_CDLSHORTLINE.c new file mode 100644 index 000000000..dc9a37632 --- /dev/null +++ b/src/ta_func/ta_CDLSHORTLINE.c @@ -0,0 +1,359 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * AC Angelo Ciceri + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 072404 AC Creation + * + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::CdlShortLineLookback( void ) +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int cdlShortLineLookback( ) +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_CDLSHORTLINE_Lookback( void ) +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ /* No parameters to validate. */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + return max( TA_CANDLEAVGPERIOD(BodyShort), TA_CANDLEAVGPERIOD(ShadowShort) ); +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_CDLSHORTLINE - Short Line Candle + * + * Input = Open, High, Low, Close + * Output = int + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::CdlShortLine( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inOpen, +/* Generated */ SubArray^ inHigh, +/* Generated */ SubArray^ inLow, +/* Generated */ SubArray^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::CdlShortLine( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inOpen, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cdlShortLine( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inOpen[], +/* Generated */ double inHigh[], +/* Generated */ double inLow[], +/* Generated */ double inClose[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_CDLSHORTLINE( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inOpen[], +/* Generated */ const double inHigh[], +/* Generated */ const double inLow[], +/* Generated */ const double inClose[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* Insert local variables here. */ + double BodyPeriodTotal, ShadowPeriodTotal; + int i, outIdx, BodyTrailingIdx, ShadowTrailingIdx, lookbackTotal; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ /* Verify required price component. */ +/* Generated */ if(!inOpen||!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInteger ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Identify the minimum number of price bar needed + * to calculate at least one output. + */ + + lookbackTotal = LOOKBACK_CALL(CDLSHORTLINE)(); + + /* Move up the start index if there is not + * enough initial data. + */ + if( startIdx < lookbackTotal ) + startIdx = lookbackTotal; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + + /* Do the calculation using tight loops. */ + /* Add-up the initial period, except for the last value. */ + BodyPeriodTotal = 0; + BodyTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(BodyShort); + ShadowPeriodTotal = 0; + ShadowTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(ShadowShort); + + i = BodyTrailingIdx; + while( i < startIdx ) { + BodyPeriodTotal += TA_CANDLERANGE( BodyShort, i ); + i++; + } + i = ShadowTrailingIdx; + while( i < startIdx ) { + ShadowPeriodTotal += TA_CANDLERANGE( ShadowShort, i ); + i++; + } + + /* Proceed with the calculation for the requested range. + * Must have: + * - short real body + * - short upper and lower shadow + * The meaning of "short" is specified with TA_SetCandleSettings + * outInteger is positive (1 to 100) when white, negative (-1 to -100) when black; + * it does not mean bullish or bearish + */ + outIdx = 0; + do + { + if( TA_REALBODY(i) < TA_CANDLEAVERAGE( BodyShort, BodyPeriodTotal, i ) && + TA_UPPERSHADOW(i) < TA_CANDLEAVERAGE( ShadowShort, ShadowPeriodTotal, i ) && + TA_LOWERSHADOW(i) < TA_CANDLEAVERAGE( ShadowShort, ShadowPeriodTotal, i ) ) + outInteger[outIdx++] = TA_CANDLECOLOR(i) * 100; + else + outInteger[outIdx++] = 0; + /* add the current range and subtract the first range: this is done after the pattern recognition + * when avgPeriod is not 0, that means "compare with the previous candles" (it excludes the current candle) + */ + BodyPeriodTotal += TA_CANDLERANGE( BodyShort, i ) - TA_CANDLERANGE( BodyShort, BodyTrailingIdx ); + ShadowPeriodTotal += TA_CANDLERANGE( ShadowShort, i ) - TA_CANDLERANGE( ShadowShort, ShadowTrailingIdx ); + i++; + BodyTrailingIdx++; + ShadowTrailingIdx++; + } while( i <= endIdx ); + + /* All done. Indicate the output limits and return. */ + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::CdlShortLine( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inOpen, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cdlShortLine( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inOpen[], +/* Generated */ float inHigh[], +/* Generated */ float inLow[], +/* Generated */ float inClose[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_CDLSHORTLINE( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inOpen[], +/* Generated */ const float inHigh[], +/* Generated */ const float inLow[], +/* Generated */ const float inClose[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ double BodyPeriodTotal, ShadowPeriodTotal; +/* Generated */ int i, outIdx, BodyTrailingIdx, ShadowTrailingIdx, lookbackTotal; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if(!inOpen||!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInteger ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ lookbackTotal = LOOKBACK_CALL(CDLSHORTLINE)(); +/* Generated */ if( startIdx < lookbackTotal ) +/* Generated */ startIdx = lookbackTotal; +/* Generated */ if( startIdx > endIdx ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ BodyPeriodTotal = 0; +/* Generated */ BodyTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(BodyShort); +/* Generated */ ShadowPeriodTotal = 0; +/* Generated */ ShadowTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(ShadowShort); +/* Generated */ i = BodyTrailingIdx; +/* Generated */ while( i < startIdx ) { +/* Generated */ BodyPeriodTotal += TA_CANDLERANGE( BodyShort, i ); +/* Generated */ i++; +/* Generated */ } +/* Generated */ i = ShadowTrailingIdx; +/* Generated */ while( i < startIdx ) { +/* Generated */ ShadowPeriodTotal += TA_CANDLERANGE( ShadowShort, i ); +/* Generated */ i++; +/* Generated */ } +/* Generated */ outIdx = 0; +/* Generated */ do +/* Generated */ { +/* Generated */ if( TA_REALBODY(i) < TA_CANDLEAVERAGE( BodyShort, BodyPeriodTotal, i ) && +/* Generated */ TA_UPPERSHADOW(i) < TA_CANDLEAVERAGE( ShadowShort, ShadowPeriodTotal, i ) && +/* Generated */ TA_LOWERSHADOW(i) < TA_CANDLEAVERAGE( ShadowShort, ShadowPeriodTotal, i ) ) +/* Generated */ outInteger[outIdx++] = TA_CANDLECOLOR(i) * 100; +/* Generated */ else +/* Generated */ outInteger[outIdx++] = 0; +/* Generated */ BodyPeriodTotal += TA_CANDLERANGE( BodyShort, i ) - TA_CANDLERANGE( BodyShort, BodyTrailingIdx ); +/* Generated */ ShadowPeriodTotal += TA_CANDLERANGE( ShadowShort, i ) - TA_CANDLERANGE( ShadowShort, ShadowTrailingIdx ); +/* Generated */ i++; +/* Generated */ BodyTrailingIdx++; +/* Generated */ ShadowTrailingIdx++; +/* Generated */ } while( i <= endIdx ); +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_CDLSPINNINGTOP.c b/src/ta_func/ta_CDLSPINNINGTOP.c new file mode 100644 index 000000000..024255331 --- /dev/null +++ b/src/ta_func/ta_CDLSPINNINGTOP.c @@ -0,0 +1,343 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * AC Angelo Ciceri + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 071804 AC Creation + * + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::CdlSpinningTopLookback( void ) +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int cdlSpinningTopLookback( ) +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_CDLSPINNINGTOP_Lookback( void ) +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ /* No parameters to validate. */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + return TA_CANDLEAVGPERIOD(BodyShort); +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_CDLSPINNINGTOP - Spinning Top + * + * Input = Open, High, Low, Close + * Output = int + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::CdlSpinningTop( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inOpen, +/* Generated */ SubArray^ inHigh, +/* Generated */ SubArray^ inLow, +/* Generated */ SubArray^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::CdlSpinningTop( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inOpen, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cdlSpinningTop( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inOpen[], +/* Generated */ double inHigh[], +/* Generated */ double inLow[], +/* Generated */ double inClose[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_CDLSPINNINGTOP( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inOpen[], +/* Generated */ const double inHigh[], +/* Generated */ const double inLow[], +/* Generated */ const double inClose[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* Insert local variables here. */ + double BodyPeriodTotal; + int i, outIdx, BodyTrailingIdx, lookbackTotal; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ /* Verify required price component. */ +/* Generated */ if(!inOpen||!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInteger ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Identify the minimum number of price bar needed + * to calculate at least one output. + */ + + lookbackTotal = LOOKBACK_CALL(CDLSPINNINGTOP)(); + + /* Move up the start index if there is not + * enough initial data. + */ + if( startIdx < lookbackTotal ) + startIdx = lookbackTotal; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + + /* Do the calculation using tight loops. */ + /* Add-up the initial period, except for the last value. */ + BodyPeriodTotal = 0; + BodyTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(BodyShort); + + i = BodyTrailingIdx; + while( i < startIdx ) { + BodyPeriodTotal += TA_CANDLERANGE( BodyShort, i ); + i++; + } + + /* Proceed with the calculation for the requested range. + * Must have: + * - small real body + * - shadows longer than the real body + * The meaning of "short" is specified with TA_SetCandleSettings + * outInteger is positive (1 to 100) when white or negative (-1 to -100) when black; + * it does not mean bullish or bearish + */ + outIdx = 0; + do + { + if( TA_REALBODY(i) < TA_CANDLEAVERAGE( BodyShort, BodyPeriodTotal, i ) && + TA_UPPERSHADOW(i) > TA_REALBODY(i) && + TA_LOWERSHADOW(i) > TA_REALBODY(i) + ) + outInteger[outIdx++] = TA_CANDLECOLOR(i) * 100; + else + outInteger[outIdx++] = 0; + /* add the current range and subtract the first range: this is done after the pattern recognition + * when avgPeriod is not 0, that means "compare with the previous candles" (it excludes the current candle) + */ + BodyPeriodTotal += TA_CANDLERANGE( BodyShort, i ) - TA_CANDLERANGE( BodyShort, BodyTrailingIdx ); + i++; + BodyTrailingIdx++; + } while( i <= endIdx ); + + /* All done. Indicate the output limits and return. */ + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::CdlSpinningTop( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inOpen, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cdlSpinningTop( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inOpen[], +/* Generated */ float inHigh[], +/* Generated */ float inLow[], +/* Generated */ float inClose[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_CDLSPINNINGTOP( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inOpen[], +/* Generated */ const float inHigh[], +/* Generated */ const float inLow[], +/* Generated */ const float inClose[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ double BodyPeriodTotal; +/* Generated */ int i, outIdx, BodyTrailingIdx, lookbackTotal; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if(!inOpen||!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInteger ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ lookbackTotal = LOOKBACK_CALL(CDLSPINNINGTOP)(); +/* Generated */ if( startIdx < lookbackTotal ) +/* Generated */ startIdx = lookbackTotal; +/* Generated */ if( startIdx > endIdx ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ BodyPeriodTotal = 0; +/* Generated */ BodyTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(BodyShort); +/* Generated */ i = BodyTrailingIdx; +/* Generated */ while( i < startIdx ) { +/* Generated */ BodyPeriodTotal += TA_CANDLERANGE( BodyShort, i ); +/* Generated */ i++; +/* Generated */ } +/* Generated */ outIdx = 0; +/* Generated */ do +/* Generated */ { +/* Generated */ if( TA_REALBODY(i) < TA_CANDLEAVERAGE( BodyShort, BodyPeriodTotal, i ) && +/* Generated */ TA_UPPERSHADOW(i) > TA_REALBODY(i) && +/* Generated */ TA_LOWERSHADOW(i) > TA_REALBODY(i) +/* Generated */ ) +/* Generated */ outInteger[outIdx++] = TA_CANDLECOLOR(i) * 100; +/* Generated */ else +/* Generated */ outInteger[outIdx++] = 0; +/* Generated */ BodyPeriodTotal += TA_CANDLERANGE( BodyShort, i ) - TA_CANDLERANGE( BodyShort, BodyTrailingIdx ); +/* Generated */ i++; +/* Generated */ BodyTrailingIdx++; +/* Generated */ } while( i <= endIdx ); +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_CDLSTALLEDPATTERN.c b/src/ta_func/ta_CDLSTALLEDPATTERN.c new file mode 100644 index 000000000..a03d8ecdc --- /dev/null +++ b/src/ta_func/ta_CDLSTALLEDPATTERN.c @@ -0,0 +1,456 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * AC Angelo Ciceri + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 120804 AC Creation + * + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::CdlStalledPatternLookback( void ) +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int cdlStalledPatternLookback( ) +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_CDLSTALLEDPATTERN_Lookback( void ) +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ /* No parameters to validate. */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + return max( max( TA_CANDLEAVGPERIOD(BodyLong), TA_CANDLEAVGPERIOD(BodyShort) ), + max( TA_CANDLEAVGPERIOD(ShadowVeryShort), TA_CANDLEAVGPERIOD(Near) ) + ) + 2; +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_CDLSTALLEDPATTERN - Stalled Pattern + * + * Input = Open, High, Low, Close + * Output = int + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::CdlStalledPattern( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inOpen, +/* Generated */ SubArray^ inHigh, +/* Generated */ SubArray^ inLow, +/* Generated */ SubArray^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::CdlStalledPattern( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inOpen, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cdlStalledPattern( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inOpen[], +/* Generated */ double inHigh[], +/* Generated */ double inLow[], +/* Generated */ double inClose[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_CDLSTALLEDPATTERN( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inOpen[], +/* Generated */ const double inHigh[], +/* Generated */ const double inLow[], +/* Generated */ const double inClose[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* Insert local variables here. */ + ARRAY_LOCAL(BodyLongPeriodTotal,3); + ARRAY_LOCAL(NearPeriodTotal,3); + double BodyShortPeriodTotal, ShadowVeryShortPeriodTotal; + int i, outIdx, totIdx, BodyLongTrailingIdx, BodyShortTrailingIdx, ShadowVeryShortTrailingIdx, NearTrailingIdx, + lookbackTotal; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ /* Verify required price component. */ +/* Generated */ if(!inOpen||!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInteger ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Identify the minimum number of price bar needed + * to calculate at least one output. + */ + + lookbackTotal = LOOKBACK_CALL(CDLSTALLEDPATTERN)(); + + /* Move up the start index if there is not + * enough initial data. + */ + if( startIdx < lookbackTotal ) + startIdx = lookbackTotal; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + + /* Do the calculation using tight loops. */ + /* Add-up the initial period, except for the last value. */ + BodyLongPeriodTotal[2] = 0; + BodyLongPeriodTotal[1] = 0; + BodyLongPeriodTotal[0] = 0; + BodyLongTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(BodyLong); + BodyShortPeriodTotal = 0; + BodyShortTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(BodyShort); + ShadowVeryShortPeriodTotal = 0; + ShadowVeryShortTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(ShadowVeryShort); + NearPeriodTotal[2] = 0; + NearPeriodTotal[1] = 0; + NearPeriodTotal[0] = 0; + NearTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(Near); + + i = BodyLongTrailingIdx; + while( i < startIdx ) { + BodyLongPeriodTotal[2] += TA_CANDLERANGE( BodyLong, i-2 ); + BodyLongPeriodTotal[1] += TA_CANDLERANGE( BodyLong, i-1 ); + i++; + } + i = BodyShortTrailingIdx; + while( i < startIdx ) { + BodyShortPeriodTotal += TA_CANDLERANGE( BodyShort, i ); + i++; + } + i = ShadowVeryShortTrailingIdx; + while( i < startIdx ) { + ShadowVeryShortPeriodTotal += TA_CANDLERANGE( ShadowVeryShort, i-1 ); + i++; + } + i = NearTrailingIdx; + while( i < startIdx ) { + NearPeriodTotal[2] += TA_CANDLERANGE( Near, i-2 ); + NearPeriodTotal[1] += TA_CANDLERANGE( Near, i-1 ); + i++; + } + i = startIdx; + + /* Proceed with the calculation for the requested range. + * Must have: + * - three white candlesticks with consecutively higher closes + * - first candle: long white + * - second candle: long white with no or very short upper shadow opening within or near the previous white real body + * and closing higher than the prior candle + * - third candle: small white that gaps away or "rides on the shoulder" of the prior long real body (= it's at + * the upper end of the prior real body) + * The meanings of "long", "very short", "short", "near" are specified with TA_SetCandleSettings; + * outInteger is negative (-1 to -100): stalled pattern is always bearish; + * the user should consider that stalled pattern is significant when it appears in uptrend, while this function + * does not consider it + */ + outIdx = 0; + do + { + if( TA_CANDLECOLOR(i-2) == 1 && // 1st white + TA_CANDLECOLOR(i-1) == 1 && // 2nd white + TA_CANDLECOLOR(i) == 1 && // 3rd white + inClose[i] > inClose[i-1] && inClose[i-1] > inClose[i-2] && // consecutive higher closes + TA_REALBODY(i-2) > TA_CANDLEAVERAGE( BodyLong, BodyLongPeriodTotal[2], i-2 ) && // 1st: long real body + TA_REALBODY(i-1) > TA_CANDLEAVERAGE( BodyLong, BodyLongPeriodTotal[1], i-1 ) && // 2nd: long real body + // very short upper shadow + TA_UPPERSHADOW(i-1) < TA_CANDLEAVERAGE( ShadowVeryShort, ShadowVeryShortPeriodTotal, i-1 ) && + // opens within/near 1st real body + inOpen[i-1] > inOpen[i-2] && + inOpen[i-1] <= inClose[i-2] + TA_CANDLEAVERAGE( Near, NearPeriodTotal[2], i-2 ) && + TA_REALBODY(i) < TA_CANDLEAVERAGE( BodyShort, BodyShortPeriodTotal, i ) && // 3rd: small real body + // rides on the shoulder of 2nd real body + inOpen[i] >= inClose[i-1] - TA_REALBODY(i) - TA_CANDLEAVERAGE( Near, NearPeriodTotal[1], i-1 ) + ) + outInteger[outIdx++] = -100; + else + outInteger[outIdx++] = 0; + /* add the current range and subtract the first range: this is done after the pattern recognition + * when avgPeriod is not 0, that means "compare with the previous candles" (it excludes the current candle) + */ + for (totIdx = 2; totIdx >= 1; --totIdx) { + BodyLongPeriodTotal[totIdx] += TA_CANDLERANGE( BodyLong, i-totIdx ) + - TA_CANDLERANGE( BodyLong, BodyLongTrailingIdx-totIdx ); + NearPeriodTotal[totIdx] += TA_CANDLERANGE( Near, i-totIdx ) + - TA_CANDLERANGE( Near, NearTrailingIdx-totIdx ); + } + BodyShortPeriodTotal += TA_CANDLERANGE( BodyShort, i ) - TA_CANDLERANGE( BodyShort, BodyShortTrailingIdx ); + ShadowVeryShortPeriodTotal += TA_CANDLERANGE( ShadowVeryShort, i-1 ) + - TA_CANDLERANGE( ShadowVeryShort, ShadowVeryShortTrailingIdx-1 ); + i++; + BodyLongTrailingIdx++; + BodyShortTrailingIdx++; + ShadowVeryShortTrailingIdx++; + NearTrailingIdx++; + } while( i <= endIdx ); + + /* All done. Indicate the output limits and return. */ + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::CdlStalledPattern( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inOpen, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cdlStalledPattern( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inOpen[], +/* Generated */ float inHigh[], +/* Generated */ float inLow[], +/* Generated */ float inClose[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_CDLSTALLEDPATTERN( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inOpen[], +/* Generated */ const float inHigh[], +/* Generated */ const float inLow[], +/* Generated */ const float inClose[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ ARRAY_LOCAL(BodyLongPeriodTotal,3); +/* Generated */ ARRAY_LOCAL(NearPeriodTotal,3); +/* Generated */ double BodyShortPeriodTotal, ShadowVeryShortPeriodTotal; +/* Generated */ int i, outIdx, totIdx, BodyLongTrailingIdx, BodyShortTrailingIdx, ShadowVeryShortTrailingIdx, NearTrailingIdx, +/* Generated */ lookbackTotal; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if(!inOpen||!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInteger ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ lookbackTotal = LOOKBACK_CALL(CDLSTALLEDPATTERN)(); +/* Generated */ if( startIdx < lookbackTotal ) +/* Generated */ startIdx = lookbackTotal; +/* Generated */ if( startIdx > endIdx ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ BodyLongPeriodTotal[2] = 0; +/* Generated */ BodyLongPeriodTotal[1] = 0; +/* Generated */ BodyLongPeriodTotal[0] = 0; +/* Generated */ BodyLongTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(BodyLong); +/* Generated */ BodyShortPeriodTotal = 0; +/* Generated */ BodyShortTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(BodyShort); +/* Generated */ ShadowVeryShortPeriodTotal = 0; +/* Generated */ ShadowVeryShortTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(ShadowVeryShort); +/* Generated */ NearPeriodTotal[2] = 0; +/* Generated */ NearPeriodTotal[1] = 0; +/* Generated */ NearPeriodTotal[0] = 0; +/* Generated */ NearTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(Near); +/* Generated */ i = BodyLongTrailingIdx; +/* Generated */ while( i < startIdx ) { +/* Generated */ BodyLongPeriodTotal[2] += TA_CANDLERANGE( BodyLong, i-2 ); +/* Generated */ BodyLongPeriodTotal[1] += TA_CANDLERANGE( BodyLong, i-1 ); +/* Generated */ i++; +/* Generated */ } +/* Generated */ i = BodyShortTrailingIdx; +/* Generated */ while( i < startIdx ) { +/* Generated */ BodyShortPeriodTotal += TA_CANDLERANGE( BodyShort, i ); +/* Generated */ i++; +/* Generated */ } +/* Generated */ i = ShadowVeryShortTrailingIdx; +/* Generated */ while( i < startIdx ) { +/* Generated */ ShadowVeryShortPeriodTotal += TA_CANDLERANGE( ShadowVeryShort, i-1 ); +/* Generated */ i++; +/* Generated */ } +/* Generated */ i = NearTrailingIdx; +/* Generated */ while( i < startIdx ) { +/* Generated */ NearPeriodTotal[2] += TA_CANDLERANGE( Near, i-2 ); +/* Generated */ NearPeriodTotal[1] += TA_CANDLERANGE( Near, i-1 ); +/* Generated */ i++; +/* Generated */ } +/* Generated */ i = startIdx; +/* Generated */ outIdx = 0; +/* Generated */ do +/* Generated */ { +/* Generated */ if( TA_CANDLECOLOR(i-2) == 1 && // 1st white +/* Generated */ TA_CANDLECOLOR(i-1) == 1 && // 2nd white +/* Generated */ TA_CANDLECOLOR(i) == 1 && // 3rd white +/* Generated */ inClose[i] > inClose[i-1] && inClose[i-1] > inClose[i-2] && // consecutive higher closes +/* Generated */ TA_REALBODY(i-2) > TA_CANDLEAVERAGE( BodyLong, BodyLongPeriodTotal[2], i-2 ) && // 1st: long real body +/* Generated */ TA_REALBODY(i-1) > TA_CANDLEAVERAGE( BodyLong, BodyLongPeriodTotal[1], i-1 ) && // 2nd: long real body +/* Generated */ // very short upper shadow +/* Generated */ TA_UPPERSHADOW(i-1) < TA_CANDLEAVERAGE( ShadowVeryShort, ShadowVeryShortPeriodTotal, i-1 ) && +/* Generated */ // opens within/near 1st real body +/* Generated */ inOpen[i-1] > inOpen[i-2] && +/* Generated */ inOpen[i-1] <= inClose[i-2] + TA_CANDLEAVERAGE( Near, NearPeriodTotal[2], i-2 ) && +/* Generated */ TA_REALBODY(i) < TA_CANDLEAVERAGE( BodyShort, BodyShortPeriodTotal, i ) && // 3rd: small real body +/* Generated */ // rides on the shoulder of 2nd real body +/* Generated */ inOpen[i] >= inClose[i-1] - TA_REALBODY(i) - TA_CANDLEAVERAGE( Near, NearPeriodTotal[1], i-1 ) +/* Generated */ ) +/* Generated */ outInteger[outIdx++] = -100; +/* Generated */ else +/* Generated */ outInteger[outIdx++] = 0; +/* Generated */ for (totIdx = 2; totIdx >= 1; --totIdx) { +/* Generated */ BodyLongPeriodTotal[totIdx] += TA_CANDLERANGE( BodyLong, i-totIdx ) +/* Generated */ - TA_CANDLERANGE( BodyLong, BodyLongTrailingIdx-totIdx ); +/* Generated */ NearPeriodTotal[totIdx] += TA_CANDLERANGE( Near, i-totIdx ) +/* Generated */ - TA_CANDLERANGE( Near, NearTrailingIdx-totIdx ); +/* Generated */ } +/* Generated */ BodyShortPeriodTotal += TA_CANDLERANGE( BodyShort, i ) - TA_CANDLERANGE( BodyShort, BodyShortTrailingIdx ); +/* Generated */ ShadowVeryShortPeriodTotal += TA_CANDLERANGE( ShadowVeryShort, i-1 ) +/* Generated */ - TA_CANDLERANGE( ShadowVeryShort, ShadowVeryShortTrailingIdx-1 ); +/* Generated */ i++; +/* Generated */ BodyLongTrailingIdx++; +/* Generated */ BodyShortTrailingIdx++; +/* Generated */ ShadowVeryShortTrailingIdx++; +/* Generated */ NearTrailingIdx++; +/* Generated */ } while( i <= endIdx ); +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_CDLSTICKSANDWICH.c b/src/ta_func/ta_CDLSTICKSANDWICH.c new file mode 100644 index 000000000..bed1fbaf3 --- /dev/null +++ b/src/ta_func/ta_CDLSTICKSANDWICH.c @@ -0,0 +1,353 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * AC Angelo Ciceri + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 032005 AC Creation + * + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::CdlStickSandwhichLookback( void ) +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int cdlStickSandwhichLookback( ) +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_CDLSTICKSANDWICH_Lookback( void ) +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ /* No parameters to validate. */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + return TA_CANDLEAVGPERIOD(Equal) + 2; +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_CDLSTICKSANDWICH - Stick Sandwich + * + * Input = Open, High, Low, Close + * Output = int + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::CdlStickSandwhich( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inOpen, +/* Generated */ SubArray^ inHigh, +/* Generated */ SubArray^ inLow, +/* Generated */ SubArray^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::CdlStickSandwhich( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inOpen, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cdlStickSandwhich( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inOpen[], +/* Generated */ double inHigh[], +/* Generated */ double inLow[], +/* Generated */ double inClose[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_CDLSTICKSANDWICH( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inOpen[], +/* Generated */ const double inHigh[], +/* Generated */ const double inLow[], +/* Generated */ const double inClose[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* Insert local variables here. */ + double EqualPeriodTotal; + int i, outIdx, EqualTrailingIdx, lookbackTotal; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ /* Verify required price component. */ +/* Generated */ if(!inOpen||!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInteger ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Identify the minimum number of price bar needed + * to calculate at least one output. + */ + + lookbackTotal = LOOKBACK_CALL(CDLSTICKSANDWICH)(); + + /* Move up the start index if there is not + * enough initial data. + */ + if( startIdx < lookbackTotal ) + startIdx = lookbackTotal; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + + /* Do the calculation using tight loops. */ + /* Add-up the initial period, except for the last value. */ + EqualPeriodTotal = 0; + EqualTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(Equal); + + i = EqualTrailingIdx; + while( i < startIdx ) { + EqualPeriodTotal += TA_CANDLERANGE( Equal, i-2 ); + i++; + } + i = startIdx; + + /* Proceed with the calculation for the requested range. + * Must have: + * - first candle: black candle + * - second candle: white candle that trades only above the prior close (low > prior close) + * - third candle: black candle with the close equal to the first candle's close + * The meaning of "equal" is specified with TA_SetCandleSettings + * outInteger is always positive (1 to 100): stick sandwich is always bullish; + * the user should consider that stick sandwich is significant when coming in a downtrend, + * while this function does not consider it + */ + outIdx = 0; + do + { + if( TA_CANDLECOLOR(i-2) == -1 && // first black + TA_CANDLECOLOR(i-1) == 1 && // second white + TA_CANDLECOLOR(i) == -1 && // third black + inLow[i-1] > inClose[i-2] && // 2nd low > prior close + inClose[i] <= inClose[i-2] + TA_CANDLEAVERAGE( Equal, EqualPeriodTotal, i-2 ) && // 1st and 3rd same close + inClose[i] >= inClose[i-2] - TA_CANDLEAVERAGE( Equal, EqualPeriodTotal, i-2 ) + ) + outInteger[outIdx++] = 100; + else + outInteger[outIdx++] = 0; + /* add the current range and subtract the first range: this is done after the pattern recognition + * when avgPeriod is not 0, that means "compare with the previous candles" (it excludes the current candle) + */ + EqualPeriodTotal += TA_CANDLERANGE( Equal, i-2 ) - TA_CANDLERANGE( Equal, EqualTrailingIdx-2 ); + i++; + EqualTrailingIdx++; + } while( i <= endIdx ); + + /* All done. Indicate the output limits and return. */ + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::CdlStickSandwhich( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inOpen, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cdlStickSandwhich( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inOpen[], +/* Generated */ float inHigh[], +/* Generated */ float inLow[], +/* Generated */ float inClose[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_CDLSTICKSANDWICH( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inOpen[], +/* Generated */ const float inHigh[], +/* Generated */ const float inLow[], +/* Generated */ const float inClose[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ double EqualPeriodTotal; +/* Generated */ int i, outIdx, EqualTrailingIdx, lookbackTotal; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if(!inOpen||!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInteger ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ lookbackTotal = LOOKBACK_CALL(CDLSTICKSANDWICH)(); +/* Generated */ if( startIdx < lookbackTotal ) +/* Generated */ startIdx = lookbackTotal; +/* Generated */ if( startIdx > endIdx ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ EqualPeriodTotal = 0; +/* Generated */ EqualTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(Equal); +/* Generated */ i = EqualTrailingIdx; +/* Generated */ while( i < startIdx ) { +/* Generated */ EqualPeriodTotal += TA_CANDLERANGE( Equal, i-2 ); +/* Generated */ i++; +/* Generated */ } +/* Generated */ i = startIdx; +/* Generated */ outIdx = 0; +/* Generated */ do +/* Generated */ { +/* Generated */ if( TA_CANDLECOLOR(i-2) == -1 && // first black +/* Generated */ TA_CANDLECOLOR(i-1) == 1 && // second white +/* Generated */ TA_CANDLECOLOR(i) == -1 && // third black +/* Generated */ inLow[i-1] > inClose[i-2] && // 2nd low > prior close +/* Generated */ inClose[i] <= inClose[i-2] + TA_CANDLEAVERAGE( Equal, EqualPeriodTotal, i-2 ) && // 1st and 3rd same close +/* Generated */ inClose[i] >= inClose[i-2] - TA_CANDLEAVERAGE( Equal, EqualPeriodTotal, i-2 ) +/* Generated */ ) +/* Generated */ outInteger[outIdx++] = 100; +/* Generated */ else +/* Generated */ outInteger[outIdx++] = 0; +/* Generated */ EqualPeriodTotal += TA_CANDLERANGE( Equal, i-2 ) - TA_CANDLERANGE( Equal, EqualTrailingIdx-2 ); +/* Generated */ i++; +/* Generated */ EqualTrailingIdx++; +/* Generated */ } while( i <= endIdx ); +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_CDLTAKURI.c b/src/ta_func/ta_CDLTAKURI.c new file mode 100644 index 000000000..c445407a8 --- /dev/null +++ b/src/ta_func/ta_CDLTAKURI.c @@ -0,0 +1,387 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * AC Angelo Ciceri + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 011505 AC Creation + * + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::CdlTakuriLookback( void ) +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int cdlTakuriLookback( ) +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_CDLTAKURI_Lookback( void ) +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ /* No parameters to validate. */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + return max( max( TA_CANDLEAVGPERIOD(BodyDoji), TA_CANDLEAVGPERIOD(ShadowVeryShort) ), + TA_CANDLEAVGPERIOD(ShadowVeryLong) + ); +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_CDLTAKURI - Takuri (Dragonfly Doji with very long lower shadow) + * + * Input = Open, High, Low, Close + * Output = int + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::CdlTakuri( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inOpen, +/* Generated */ SubArray^ inHigh, +/* Generated */ SubArray^ inLow, +/* Generated */ SubArray^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::CdlTakuri( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inOpen, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cdlTakuri( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inOpen[], +/* Generated */ double inHigh[], +/* Generated */ double inLow[], +/* Generated */ double inClose[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_CDLTAKURI( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inOpen[], +/* Generated */ const double inHigh[], +/* Generated */ const double inLow[], +/* Generated */ const double inClose[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* Insert local variables here. */ + double BodyDojiPeriodTotal, ShadowVeryShortPeriodTotal, ShadowVeryLongPeriodTotal; + int i, outIdx, BodyDojiTrailingIdx, ShadowVeryShortTrailingIdx, ShadowVeryLongTrailingIdx, lookbackTotal; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ /* Verify required price component. */ +/* Generated */ if(!inOpen||!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInteger ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Identify the minimum number of price bar needed + * to calculate at least one output. + */ + + lookbackTotal = LOOKBACK_CALL(CDLTAKURI)(); + + /* Move up the start index if there is not + * enough initial data. + */ + if( startIdx < lookbackTotal ) + startIdx = lookbackTotal; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + + /* Do the calculation using tight loops. */ + /* Add-up the initial period, except for the last value. */ + BodyDojiPeriodTotal = 0; + BodyDojiTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(BodyDoji); + ShadowVeryShortPeriodTotal = 0; + ShadowVeryShortTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(ShadowVeryShort); + ShadowVeryLongPeriodTotal = 0; + ShadowVeryLongTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(ShadowVeryLong); + + i = BodyDojiTrailingIdx; + while( i < startIdx ) { + BodyDojiPeriodTotal += TA_CANDLERANGE( BodyDoji, i ); + i++; + } + i = ShadowVeryShortTrailingIdx; + while( i < startIdx ) { + ShadowVeryShortPeriodTotal += TA_CANDLERANGE( ShadowVeryShort, i ); + i++; + } + i = ShadowVeryLongTrailingIdx; + while( i < startIdx ) { + ShadowVeryLongPeriodTotal += TA_CANDLERANGE( ShadowVeryLong, i ); + i++; + } + + /* Proceed with the calculation for the requested range. + * + * Must have: + * - doji body + * - open and close at the high of the day = no or very short upper shadow + * - very long lower shadow + * The meaning of "doji", "very short" and "very long" is specified with TA_SetCandleSettings + * outInteger is always positive (1 to 100) but this does not mean it is bullish: takuri must be considered + * relatively to the trend + */ + outIdx = 0; + do + { + if( TA_REALBODY(i) <= TA_CANDLEAVERAGE( BodyDoji, BodyDojiPeriodTotal, i ) && + TA_UPPERSHADOW(i) < TA_CANDLEAVERAGE( ShadowVeryShort, ShadowVeryShortPeriodTotal, i ) && + TA_LOWERSHADOW(i) > TA_CANDLEAVERAGE( ShadowVeryLong, ShadowVeryLongPeriodTotal, i ) + ) + outInteger[outIdx++] = 100; + else + outInteger[outIdx++] = 0; + /* add the current range and subtract the first range: this is done after the pattern recognition + * when avgPeriod is not 0, that means "compare with the previous candles" (it excludes the current candle) + */ + BodyDojiPeriodTotal += TA_CANDLERANGE( BodyDoji, i ) - TA_CANDLERANGE( BodyDoji, BodyDojiTrailingIdx ); + ShadowVeryShortPeriodTotal += TA_CANDLERANGE( ShadowVeryShort, i ) + - TA_CANDLERANGE( ShadowVeryShort, ShadowVeryShortTrailingIdx ); + ShadowVeryLongPeriodTotal += TA_CANDLERANGE( ShadowVeryLong, i ) + - TA_CANDLERANGE( ShadowVeryLong, ShadowVeryLongTrailingIdx ); + i++; + BodyDojiTrailingIdx++; + ShadowVeryShortTrailingIdx++; + ShadowVeryLongTrailingIdx++; + } while( i <= endIdx ); + + /* All done. Indicate the output limits and return. */ + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::CdlTakuri( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inOpen, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cdlTakuri( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inOpen[], +/* Generated */ float inHigh[], +/* Generated */ float inLow[], +/* Generated */ float inClose[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_CDLTAKURI( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inOpen[], +/* Generated */ const float inHigh[], +/* Generated */ const float inLow[], +/* Generated */ const float inClose[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ double BodyDojiPeriodTotal, ShadowVeryShortPeriodTotal, ShadowVeryLongPeriodTotal; +/* Generated */ int i, outIdx, BodyDojiTrailingIdx, ShadowVeryShortTrailingIdx, ShadowVeryLongTrailingIdx, lookbackTotal; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if(!inOpen||!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInteger ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ lookbackTotal = LOOKBACK_CALL(CDLTAKURI)(); +/* Generated */ if( startIdx < lookbackTotal ) +/* Generated */ startIdx = lookbackTotal; +/* Generated */ if( startIdx > endIdx ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ BodyDojiPeriodTotal = 0; +/* Generated */ BodyDojiTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(BodyDoji); +/* Generated */ ShadowVeryShortPeriodTotal = 0; +/* Generated */ ShadowVeryShortTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(ShadowVeryShort); +/* Generated */ ShadowVeryLongPeriodTotal = 0; +/* Generated */ ShadowVeryLongTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(ShadowVeryLong); +/* Generated */ i = BodyDojiTrailingIdx; +/* Generated */ while( i < startIdx ) { +/* Generated */ BodyDojiPeriodTotal += TA_CANDLERANGE( BodyDoji, i ); +/* Generated */ i++; +/* Generated */ } +/* Generated */ i = ShadowVeryShortTrailingIdx; +/* Generated */ while( i < startIdx ) { +/* Generated */ ShadowVeryShortPeriodTotal += TA_CANDLERANGE( ShadowVeryShort, i ); +/* Generated */ i++; +/* Generated */ } +/* Generated */ i = ShadowVeryLongTrailingIdx; +/* Generated */ while( i < startIdx ) { +/* Generated */ ShadowVeryLongPeriodTotal += TA_CANDLERANGE( ShadowVeryLong, i ); +/* Generated */ i++; +/* Generated */ } +/* Generated */ outIdx = 0; +/* Generated */ do +/* Generated */ { +/* Generated */ if( TA_REALBODY(i) <= TA_CANDLEAVERAGE( BodyDoji, BodyDojiPeriodTotal, i ) && +/* Generated */ TA_UPPERSHADOW(i) < TA_CANDLEAVERAGE( ShadowVeryShort, ShadowVeryShortPeriodTotal, i ) && +/* Generated */ TA_LOWERSHADOW(i) > TA_CANDLEAVERAGE( ShadowVeryLong, ShadowVeryLongPeriodTotal, i ) +/* Generated */ ) +/* Generated */ outInteger[outIdx++] = 100; +/* Generated */ else +/* Generated */ outInteger[outIdx++] = 0; +/* Generated */ BodyDojiPeriodTotal += TA_CANDLERANGE( BodyDoji, i ) - TA_CANDLERANGE( BodyDoji, BodyDojiTrailingIdx ); +/* Generated */ ShadowVeryShortPeriodTotal += TA_CANDLERANGE( ShadowVeryShort, i ) +/* Generated */ - TA_CANDLERANGE( ShadowVeryShort, ShadowVeryShortTrailingIdx ); +/* Generated */ ShadowVeryLongPeriodTotal += TA_CANDLERANGE( ShadowVeryLong, i ) +/* Generated */ - TA_CANDLERANGE( ShadowVeryLong, ShadowVeryLongTrailingIdx ); +/* Generated */ i++; +/* Generated */ BodyDojiTrailingIdx++; +/* Generated */ ShadowVeryShortTrailingIdx++; +/* Generated */ ShadowVeryLongTrailingIdx++; +/* Generated */ } while( i <= endIdx ); +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_CDLTASUKIGAP.c b/src/ta_func/ta_CDLTASUKIGAP.c new file mode 100644 index 000000000..389c2c76c --- /dev/null +++ b/src/ta_func/ta_CDLTASUKIGAP.c @@ -0,0 +1,385 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * AC Angelo Ciceri + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 011605 AC Creation + * + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::CdlTasukiGapLookback( void ) +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int cdlTasukiGapLookback( ) +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_CDLTASUKIGAP_Lookback( void ) +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ /* No parameters to validate. */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + return TA_CANDLEAVGPERIOD(Near) + 2; +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_CDLTASUKIGAP - Tasuki Gap + * + * Input = Open, High, Low, Close + * Output = int + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::CdlTasukiGap( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inOpen, +/* Generated */ SubArray^ inHigh, +/* Generated */ SubArray^ inLow, +/* Generated */ SubArray^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::CdlTasukiGap( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inOpen, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cdlTasukiGap( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inOpen[], +/* Generated */ double inHigh[], +/* Generated */ double inLow[], +/* Generated */ double inClose[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_CDLTASUKIGAP( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inOpen[], +/* Generated */ const double inHigh[], +/* Generated */ const double inLow[], +/* Generated */ const double inClose[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* Insert local variables here. */ + double NearPeriodTotal; + int i, outIdx, NearTrailingIdx, lookbackTotal; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ /* Verify required price component. */ +/* Generated */ if(!inOpen||!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInteger ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Identify the minimum number of price bar needed + * to calculate at least one output. + */ + + lookbackTotal = LOOKBACK_CALL(CDLTASUKIGAP)(); + + /* Move up the start index if there is not + * enough initial data. + */ + if( startIdx < lookbackTotal ) + startIdx = lookbackTotal; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + + /* Do the calculation using tight loops. */ + /* Add-up the initial period, except for the last value. */ + NearPeriodTotal = 0; + NearTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(Near); + + i = NearTrailingIdx; + while( i < startIdx ) { + NearPeriodTotal += TA_CANDLERANGE( Near, i-1 ); + i++; + } + i = startIdx; + + /* Proceed with the calculation for the requested range. + * Must have: + * - upside (downside) gap + * - first candle after the window: white (black) candlestick + * - second candle: black (white) candlestick that opens within the previous real body and closes under (above) + * the previous real body inside the gap + * - the size of two real bodies should be near the same + * The meaning of "near" is specified with TA_SetCandleSettings + * outInteger is positive (1 to 100) when bullish or negative (-1 to -100) when bearish; + * the user should consider that tasuki gap is significant when it appears in a trend, while this function does + * not consider it + */ + outIdx = 0; + do + { + if( + ( + TA_REALBODYGAPUP(i-1,i-2) && // upside gap + TA_CANDLECOLOR(i-1) == 1 && // 1st: white + TA_CANDLECOLOR(i) == -1 && // 2nd: black + inOpen[i] < inClose[i-1] && inOpen[i] > inOpen[i-1] && // that opens within the white rb + inClose[i] < inOpen[i-1] && // and closes under the white rb + inClose[i] > max(inClose[i-2], inOpen[i-2]) && // inside the gap + // size of 2 rb near the same + std_fabs(TA_REALBODY(i-1) - TA_REALBODY(i)) < TA_CANDLEAVERAGE( Near, NearPeriodTotal, i-1 ) + ) || + ( + TA_REALBODYGAPDOWN(i-1,i-2) && // downside gap + TA_CANDLECOLOR(i-1) == -1 && // 1st: black + TA_CANDLECOLOR(i) == 1 && // 2nd: white + inOpen[i] < inOpen[i-1] && inOpen[i] > inClose[i-1] && // that opens within the black rb + inClose[i] > inOpen[i-1] && // and closes above the black rb + inClose[i] < min(inClose[i-2], inOpen[i-2]) && // inside the gap + // size of 2 rb near the same + std_fabs(TA_REALBODY(i-1) - TA_REALBODY(i)) < TA_CANDLEAVERAGE( Near, NearPeriodTotal, i-1 ) + ) + ) + outInteger[outIdx++] = TA_CANDLECOLOR(i-1) * 100; + else + outInteger[outIdx++] = 0; + /* add the current range and subtract the first range: this is done after the pattern recognition + * when avgPeriod is not 0, that means "compare with the previous candles" (it excludes the current candle) + */ + NearPeriodTotal += TA_CANDLERANGE( Near, i-1 ) - TA_CANDLERANGE( Near, NearTrailingIdx-1 ); + i++; + NearTrailingIdx++; + } while( i <= endIdx ); + + /* All done. Indicate the output limits and return. */ + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::CdlTasukiGap( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inOpen, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cdlTasukiGap( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inOpen[], +/* Generated */ float inHigh[], +/* Generated */ float inLow[], +/* Generated */ float inClose[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_CDLTASUKIGAP( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inOpen[], +/* Generated */ const float inHigh[], +/* Generated */ const float inLow[], +/* Generated */ const float inClose[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ double NearPeriodTotal; +/* Generated */ int i, outIdx, NearTrailingIdx, lookbackTotal; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if(!inOpen||!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInteger ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ lookbackTotal = LOOKBACK_CALL(CDLTASUKIGAP)(); +/* Generated */ if( startIdx < lookbackTotal ) +/* Generated */ startIdx = lookbackTotal; +/* Generated */ if( startIdx > endIdx ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ NearPeriodTotal = 0; +/* Generated */ NearTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(Near); +/* Generated */ i = NearTrailingIdx; +/* Generated */ while( i < startIdx ) { +/* Generated */ NearPeriodTotal += TA_CANDLERANGE( Near, i-1 ); +/* Generated */ i++; +/* Generated */ } +/* Generated */ i = startIdx; +/* Generated */ outIdx = 0; +/* Generated */ do +/* Generated */ { +/* Generated */ if( +/* Generated */ ( +/* Generated */ TA_REALBODYGAPUP(i-1,i-2) && // upside gap +/* Generated */ TA_CANDLECOLOR(i-1) == 1 && // 1st: white +/* Generated */ TA_CANDLECOLOR(i) == -1 && // 2nd: black +/* Generated */ inOpen[i] < inClose[i-1] && inOpen[i] > inOpen[i-1] && // that opens within the white rb +/* Generated */ inClose[i] < inOpen[i-1] && // and closes under the white rb +/* Generated */ inClose[i] > max(inClose[i-2], inOpen[i-2]) && // inside the gap +/* Generated */ // size of 2 rb near the same +/* Generated */ std_fabs(TA_REALBODY(i-1) - TA_REALBODY(i)) < TA_CANDLEAVERAGE( Near, NearPeriodTotal, i-1 ) +/* Generated */ ) || +/* Generated */ ( +/* Generated */ TA_REALBODYGAPDOWN(i-1,i-2) && // downside gap +/* Generated */ TA_CANDLECOLOR(i-1) == -1 && // 1st: black +/* Generated */ TA_CANDLECOLOR(i) == 1 && // 2nd: white +/* Generated */ inOpen[i] < inOpen[i-1] && inOpen[i] > inClose[i-1] && // that opens within the black rb +/* Generated */ inClose[i] > inOpen[i-1] && // and closes above the black rb +/* Generated */ inClose[i] < min(inClose[i-2], inOpen[i-2]) && // inside the gap +/* Generated */ // size of 2 rb near the same +/* Generated */ std_fabs(TA_REALBODY(i-1) - TA_REALBODY(i)) < TA_CANDLEAVERAGE( Near, NearPeriodTotal, i-1 ) +/* Generated */ ) +/* Generated */ ) +/* Generated */ outInteger[outIdx++] = TA_CANDLECOLOR(i-1) * 100; +/* Generated */ else +/* Generated */ outInteger[outIdx++] = 0; +/* Generated */ NearPeriodTotal += TA_CANDLERANGE( Near, i-1 ) - TA_CANDLERANGE( Near, NearTrailingIdx-1 ); +/* Generated */ i++; +/* Generated */ NearTrailingIdx++; +/* Generated */ } while( i <= endIdx ); +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_CDLTHRUSTING.c b/src/ta_func/ta_CDLTHRUSTING.c new file mode 100644 index 000000000..e8efa7ccc --- /dev/null +++ b/src/ta_func/ta_CDLTHRUSTING.c @@ -0,0 +1,375 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * AC Angelo Ciceri + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 121204 AC Creation + * + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::CdlThrustingLookback( void ) +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int cdlThrustingLookback( ) +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_CDLTHRUSTING_Lookback( void ) +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ /* No parameters to validate. */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + return max( TA_CANDLEAVGPERIOD(Equal), TA_CANDLEAVGPERIOD(BodyLong) + ) + 1; +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_CDLTHRUSTING - Thrusting Pattern + * + * Input = Open, High, Low, Close + * Output = int + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::CdlThrusting( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inOpen, +/* Generated */ SubArray^ inHigh, +/* Generated */ SubArray^ inLow, +/* Generated */ SubArray^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::CdlThrusting( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inOpen, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cdlThrusting( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inOpen[], +/* Generated */ double inHigh[], +/* Generated */ double inLow[], +/* Generated */ double inClose[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_CDLTHRUSTING( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inOpen[], +/* Generated */ const double inHigh[], +/* Generated */ const double inLow[], +/* Generated */ const double inClose[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* Insert local variables here. */ + double EqualPeriodTotal, BodyLongPeriodTotal; + int i, outIdx, EqualTrailingIdx, BodyLongTrailingIdx, lookbackTotal; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ /* Verify required price component. */ +/* Generated */ if(!inOpen||!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInteger ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Identify the minimum number of price bar needed + * to calculate at least one output. + */ + + lookbackTotal = LOOKBACK_CALL(CDLTHRUSTING)(); + + /* Move up the start index if there is not + * enough initial data. + */ + if( startIdx < lookbackTotal ) + startIdx = lookbackTotal; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + + /* Do the calculation using tight loops. */ + /* Add-up the initial period, except for the last value. */ + EqualPeriodTotal = 0; + EqualTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(Equal); + BodyLongPeriodTotal = 0; + BodyLongTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(BodyLong); + + i = EqualTrailingIdx; + while( i < startIdx ) { + EqualPeriodTotal += TA_CANDLERANGE( Equal, i-1 ); + i++; + } + i = BodyLongTrailingIdx; + while( i < startIdx ) { + BodyLongPeriodTotal += TA_CANDLERANGE( BodyLong, i-1 ); + i++; + } + i = startIdx; + + /* Proceed with the calculation for the requested range. + * Must have: + * - first candle: long black candle + * - second candle: white candle with open below previous day low and close into previous day body under the midpoint; + * to differentiate it from in-neck the close should not be equal to the black candle's close + * The meaning of "equal" is specified with TA_SetCandleSettings + * outInteger is negative (-1 to -100): thrusting pattern is always bearish + * the user should consider that the thrusting pattern is significant when it appears in a downtrend and it could be + * even bullish "when coming in an uptrend or occurring twice within several days" (Steve Nison says), while this + * function does not consider the trend + */ + outIdx = 0; + do + { + if( TA_CANDLECOLOR(i-1) == -1 && // 1st: black + TA_REALBODY(i-1) > TA_CANDLEAVERAGE( BodyLong, BodyLongPeriodTotal, i-1 ) && // long + TA_CANDLECOLOR(i) == 1 && // 2nd: white + inOpen[i] < inLow[i-1] && // open below prior low + inClose[i] > inClose[i-1] + TA_CANDLEAVERAGE( Equal, EqualPeriodTotal, i-1 ) && // close into prior body + inClose[i] <= inClose[i-1] + TA_REALBODY(i-1) * 0.5 // under the midpoint + ) + outInteger[outIdx++] = -100; + else + outInteger[outIdx++] = 0; + /* add the current range and subtract the first range: this is done after the pattern recognition + * when avgPeriod is not 0, that means "compare with the previous candles" (it excludes the current candle) + */ + EqualPeriodTotal += TA_CANDLERANGE( Equal, i-1 ) - TA_CANDLERANGE( Equal, EqualTrailingIdx-1 ); + BodyLongPeriodTotal += TA_CANDLERANGE( BodyLong, i-1 ) + - TA_CANDLERANGE( BodyLong, BodyLongTrailingIdx-1 ); + i++; + EqualTrailingIdx++; + BodyLongTrailingIdx++; + } while( i <= endIdx ); + + /* All done. Indicate the output limits and return. */ + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::CdlThrusting( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inOpen, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cdlThrusting( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inOpen[], +/* Generated */ float inHigh[], +/* Generated */ float inLow[], +/* Generated */ float inClose[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_CDLTHRUSTING( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inOpen[], +/* Generated */ const float inHigh[], +/* Generated */ const float inLow[], +/* Generated */ const float inClose[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ double EqualPeriodTotal, BodyLongPeriodTotal; +/* Generated */ int i, outIdx, EqualTrailingIdx, BodyLongTrailingIdx, lookbackTotal; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if(!inOpen||!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInteger ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ lookbackTotal = LOOKBACK_CALL(CDLTHRUSTING)(); +/* Generated */ if( startIdx < lookbackTotal ) +/* Generated */ startIdx = lookbackTotal; +/* Generated */ if( startIdx > endIdx ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ EqualPeriodTotal = 0; +/* Generated */ EqualTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(Equal); +/* Generated */ BodyLongPeriodTotal = 0; +/* Generated */ BodyLongTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(BodyLong); +/* Generated */ i = EqualTrailingIdx; +/* Generated */ while( i < startIdx ) { +/* Generated */ EqualPeriodTotal += TA_CANDLERANGE( Equal, i-1 ); +/* Generated */ i++; +/* Generated */ } +/* Generated */ i = BodyLongTrailingIdx; +/* Generated */ while( i < startIdx ) { +/* Generated */ BodyLongPeriodTotal += TA_CANDLERANGE( BodyLong, i-1 ); +/* Generated */ i++; +/* Generated */ } +/* Generated */ i = startIdx; +/* Generated */ outIdx = 0; +/* Generated */ do +/* Generated */ { +/* Generated */ if( TA_CANDLECOLOR(i-1) == -1 && // 1st: black +/* Generated */ TA_REALBODY(i-1) > TA_CANDLEAVERAGE( BodyLong, BodyLongPeriodTotal, i-1 ) && // long +/* Generated */ TA_CANDLECOLOR(i) == 1 && // 2nd: white +/* Generated */ inOpen[i] < inLow[i-1] && // open below prior low +/* Generated */ inClose[i] > inClose[i-1] + TA_CANDLEAVERAGE( Equal, EqualPeriodTotal, i-1 ) && // close into prior body +/* Generated */ inClose[i] <= inClose[i-1] + TA_REALBODY(i-1) * 0.5 // under the midpoint +/* Generated */ ) +/* Generated */ outInteger[outIdx++] = -100; +/* Generated */ else +/* Generated */ outInteger[outIdx++] = 0; +/* Generated */ EqualPeriodTotal += TA_CANDLERANGE( Equal, i-1 ) - TA_CANDLERANGE( Equal, EqualTrailingIdx-1 ); +/* Generated */ BodyLongPeriodTotal += TA_CANDLERANGE( BodyLong, i-1 ) +/* Generated */ - TA_CANDLERANGE( BodyLong, BodyLongTrailingIdx-1 ); +/* Generated */ i++; +/* Generated */ EqualTrailingIdx++; +/* Generated */ BodyLongTrailingIdx++; +/* Generated */ } while( i <= endIdx ); +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_CDLTRISTAR.c b/src/ta_func/ta_CDLTRISTAR.c new file mode 100644 index 000000000..f65e69430 --- /dev/null +++ b/src/ta_func/ta_CDLTRISTAR.c @@ -0,0 +1,366 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * AC Angelo Ciceri + * CSB Christopher Barnhouse + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 100204 AC Creation + * 051005 CSB,AC Fix #1199526 for out-of-bound write in output. + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::CdlTristarLookback( void ) +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int cdlTristarLookback( ) +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_CDLTRISTAR_Lookback( void ) +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ /* No parameters to validate. */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + return TA_CANDLEAVGPERIOD(BodyDoji) + 2; +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_CDLTRISTAR - Tristar Pattern + * + * Input = Open, High, Low, Close + * Output = int + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::CdlTristar( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inOpen, +/* Generated */ SubArray^ inHigh, +/* Generated */ SubArray^ inLow, +/* Generated */ SubArray^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::CdlTristar( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inOpen, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cdlTristar( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inOpen[], +/* Generated */ double inHigh[], +/* Generated */ double inLow[], +/* Generated */ double inClose[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_CDLTRISTAR( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inOpen[], +/* Generated */ const double inHigh[], +/* Generated */ const double inLow[], +/* Generated */ const double inClose[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* Insert local variables here. */ + double BodyPeriodTotal; + int i, outIdx, BodyTrailingIdx, lookbackTotal; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ /* Verify required price component. */ +/* Generated */ if(!inOpen||!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInteger ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Identify the minimum number of price bar needed + * to calculate at least one output. + */ + + lookbackTotal = LOOKBACK_CALL(CDLTRISTAR)(); + + /* Move up the start index if there is not + * enough initial data. + */ + if( startIdx < lookbackTotal ) + startIdx = lookbackTotal; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + + /* Do the calculation using tight loops. */ + /* Add-up the initial period, except for the last value. */ + BodyPeriodTotal = 0; + BodyTrailingIdx = startIdx -2 - TA_CANDLEAVGPERIOD(BodyDoji); + + i = BodyTrailingIdx; + while( i < startIdx-2 ) { + BodyPeriodTotal += TA_CANDLERANGE( BodyDoji, i ); + i++; + } + + /* Proceed with the calculation for the requested range. + * Must have: + * - 3 consecutive doji days + * - the second doji is a star + * The meaning of "doji" is specified with TA_SetCandleSettings + * outInteger is positive (1 to 100) when bullish or negative (-1 to -100) when bearish + */ + i = startIdx; + outIdx = 0; + do + { + if( TA_REALBODY(i-2) <= TA_CANDLEAVERAGE( BodyDoji, BodyPeriodTotal, i-2 ) && // 1st: doji + TA_REALBODY(i-1) <= TA_CANDLEAVERAGE( BodyDoji, BodyPeriodTotal, i-2 ) && // 2nd: doji + TA_REALBODY(i) <= TA_CANDLEAVERAGE( BodyDoji, BodyPeriodTotal, i-2 ) ) { // 3rd: doji + outInteger[outIdx] = 0; + if ( TA_REALBODYGAPUP(i-1,i-2) // 2nd gaps up + && + max(inOpen[i],inClose[i]) < max(inOpen[i-1],inClose[i-1]) // 3rd is not higher than 2nd + ) + outInteger[outIdx] = -100; + if ( TA_REALBODYGAPDOWN(i-1,i-2) // 2nd gaps down + && + min(inOpen[i],inClose[i]) > min(inOpen[i-1],inClose[i-1]) // 3rd is not lower than 2nd + ) + outInteger[outIdx] = +100; + outIdx++; + } + else + outInteger[outIdx++] = 0; + /* add the current range and subtract the first range: this is done after the pattern recognition + * when avgPeriod is not 0, that means "compare with the previous candles" (it excludes the current candle) + */ + BodyPeriodTotal += TA_CANDLERANGE( BodyDoji, i-2 ) - TA_CANDLERANGE( BodyDoji, BodyTrailingIdx ); + i++; + BodyTrailingIdx++; + } while( i <= endIdx ); + + /* All done. Indicate the output limits and return. */ + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::CdlTristar( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inOpen, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cdlTristar( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inOpen[], +/* Generated */ float inHigh[], +/* Generated */ float inLow[], +/* Generated */ float inClose[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_CDLTRISTAR( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inOpen[], +/* Generated */ const float inHigh[], +/* Generated */ const float inLow[], +/* Generated */ const float inClose[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ double BodyPeriodTotal; +/* Generated */ int i, outIdx, BodyTrailingIdx, lookbackTotal; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if(!inOpen||!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInteger ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ lookbackTotal = LOOKBACK_CALL(CDLTRISTAR)(); +/* Generated */ if( startIdx < lookbackTotal ) +/* Generated */ startIdx = lookbackTotal; +/* Generated */ if( startIdx > endIdx ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ BodyPeriodTotal = 0; +/* Generated */ BodyTrailingIdx = startIdx -2 - TA_CANDLEAVGPERIOD(BodyDoji); +/* Generated */ i = BodyTrailingIdx; +/* Generated */ while( i < startIdx-2 ) { +/* Generated */ BodyPeriodTotal += TA_CANDLERANGE( BodyDoji, i ); +/* Generated */ i++; +/* Generated */ } +/* Generated */ i = startIdx; +/* Generated */ outIdx = 0; +/* Generated */ do +/* Generated */ { +/* Generated */ if( TA_REALBODY(i-2) <= TA_CANDLEAVERAGE( BodyDoji, BodyPeriodTotal, i-2 ) && // 1st: doji +/* Generated */ TA_REALBODY(i-1) <= TA_CANDLEAVERAGE( BodyDoji, BodyPeriodTotal, i-2 ) && // 2nd: doji +/* Generated */ TA_REALBODY(i) <= TA_CANDLEAVERAGE( BodyDoji, BodyPeriodTotal, i-2 ) ) { // 3rd: doji +/* Generated */ outInteger[outIdx] = 0; +/* Generated */ if ( TA_REALBODYGAPUP(i-1,i-2) // 2nd gaps up +/* Generated */ && +/* Generated */ max(inOpen[i],inClose[i]) < max(inOpen[i-1],inClose[i-1]) // 3rd is not higher than 2nd +/* Generated */ ) +/* Generated */ outInteger[outIdx] = -100; +/* Generated */ if ( TA_REALBODYGAPDOWN(i-1,i-2) // 2nd gaps down +/* Generated */ && +/* Generated */ min(inOpen[i],inClose[i]) > min(inOpen[i-1],inClose[i-1]) // 3rd is not lower than 2nd +/* Generated */ ) +/* Generated */ outInteger[outIdx] = +100; +/* Generated */ outIdx++; +/* Generated */ } +/* Generated */ else +/* Generated */ outInteger[outIdx++] = 0; +/* Generated */ BodyPeriodTotal += TA_CANDLERANGE( BodyDoji, i-2 ) - TA_CANDLERANGE( BodyDoji, BodyTrailingIdx ); +/* Generated */ i++; +/* Generated */ BodyTrailingIdx++; +/* Generated */ } while( i <= endIdx ); +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_CDLUNIQUE3RIVER.c b/src/ta_func/ta_CDLUNIQUE3RIVER.c new file mode 100644 index 000000000..53a15684d --- /dev/null +++ b/src/ta_func/ta_CDLUNIQUE3RIVER.c @@ -0,0 +1,375 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * AC Angelo Ciceri + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 022005 AC Creation + * + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::CdlUnique3RiverLookback( void ) +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int cdlUnique3RiverLookback( ) +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_CDLUNIQUE3RIVER_Lookback( void ) +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ /* No parameters to validate. */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + return max( TA_CANDLEAVGPERIOD(BodyShort), TA_CANDLEAVGPERIOD(BodyLong) ) + 2; +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_CDLUNIQUE3RIVER - Unique 3 River + * + * Input = Open, High, Low, Close + * Output = int + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::CdlUnique3River( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inOpen, +/* Generated */ SubArray^ inHigh, +/* Generated */ SubArray^ inLow, +/* Generated */ SubArray^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::CdlUnique3River( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inOpen, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cdlUnique3River( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inOpen[], +/* Generated */ double inHigh[], +/* Generated */ double inLow[], +/* Generated */ double inClose[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_CDLUNIQUE3RIVER( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inOpen[], +/* Generated */ const double inHigh[], +/* Generated */ const double inLow[], +/* Generated */ const double inClose[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* Insert local variables here. */ + double BodyShortPeriodTotal, BodyLongPeriodTotal; + int i, outIdx, BodyShortTrailingIdx, BodyLongTrailingIdx, lookbackTotal; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ /* Verify required price component. */ +/* Generated */ if(!inOpen||!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInteger ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Identify the minimum number of price bar needed + * to calculate at least one output. + */ + + lookbackTotal = LOOKBACK_CALL(CDLUNIQUE3RIVER)(); + + /* Move up the start index if there is not + * enough initial data. + */ + if( startIdx < lookbackTotal ) + startIdx = lookbackTotal; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + + /* Do the calculation using tight loops. */ + /* Add-up the initial period, except for the last value. */ + BodyLongPeriodTotal = 0; + BodyShortPeriodTotal = 0; + BodyLongTrailingIdx = startIdx -2 - TA_CANDLEAVGPERIOD(BodyLong); + BodyShortTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(BodyShort); + + i = BodyLongTrailingIdx; + while( i < startIdx-2 ) { + BodyLongPeriodTotal += TA_CANDLERANGE( BodyLong, i ); + i++; + } + i = BodyShortTrailingIdx; + while( i < startIdx ) { + BodyShortPeriodTotal += TA_CANDLERANGE( BodyShort, i ); + i++; + } + i = startIdx; + + /* Proceed with the calculation for the requested range. + * Must have: + * - first candle: long black candle + * - second candle: black harami candle with a lower low than the first candle's low + * - third candle: small white candle with open not lower than the second candle's low, better if its open and + * close are under the second candle's close + * The meaning of "short" and "long" is specified with TA_SetCandleSettings + * outInteger is positive (1 to 100): unique 3 river is always bullish and should appear in a downtrend + * to be significant, while this function does not consider the trend + */ + outIdx = 0; + do + { + if( TA_REALBODY(i-2) > TA_CANDLEAVERAGE( BodyLong, BodyLongPeriodTotal, i-2 ) && // 1st: long + TA_CANDLECOLOR(i-2) == -1 && // black + TA_CANDLECOLOR(i-1) == -1 && // 2nd: black + inClose[i-1] > inClose[i-2] && inOpen[i-1] <= inOpen[i-2] && // harami + inLow[i-1] < inLow[i-2] && // lower low + TA_REALBODY(i) < TA_CANDLEAVERAGE( BodyShort, BodyShortPeriodTotal, i ) && // 3rd: short + TA_CANDLECOLOR(i) == 1 && // white + inOpen[i] > inLow[i-1] // open not lower + ) + outInteger[outIdx++] = 100; + else + outInteger[outIdx++] = 0; + /* add the current range and subtract the first range: this is done after the pattern recognition + * when avgPeriod is not 0, that means "compare with the previous candles" (it excludes the current candle) + */ + BodyLongPeriodTotal += TA_CANDLERANGE( BodyLong, i-2 ) - TA_CANDLERANGE( BodyLong, BodyLongTrailingIdx ); + BodyShortPeriodTotal += TA_CANDLERANGE( BodyShort, i ) - TA_CANDLERANGE( BodyShort, BodyShortTrailingIdx ); + i++; + BodyLongTrailingIdx++; + BodyShortTrailingIdx++; + } while( i <= endIdx ); + + /* All done. Indicate the output limits and return. */ + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::CdlUnique3River( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inOpen, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cdlUnique3River( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inOpen[], +/* Generated */ float inHigh[], +/* Generated */ float inLow[], +/* Generated */ float inClose[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_CDLUNIQUE3RIVER( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inOpen[], +/* Generated */ const float inHigh[], +/* Generated */ const float inLow[], +/* Generated */ const float inClose[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ double BodyShortPeriodTotal, BodyLongPeriodTotal; +/* Generated */ int i, outIdx, BodyShortTrailingIdx, BodyLongTrailingIdx, lookbackTotal; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if(!inOpen||!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInteger ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ lookbackTotal = LOOKBACK_CALL(CDLUNIQUE3RIVER)(); +/* Generated */ if( startIdx < lookbackTotal ) +/* Generated */ startIdx = lookbackTotal; +/* Generated */ if( startIdx > endIdx ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ BodyLongPeriodTotal = 0; +/* Generated */ BodyShortPeriodTotal = 0; +/* Generated */ BodyLongTrailingIdx = startIdx -2 - TA_CANDLEAVGPERIOD(BodyLong); +/* Generated */ BodyShortTrailingIdx = startIdx - TA_CANDLEAVGPERIOD(BodyShort); +/* Generated */ i = BodyLongTrailingIdx; +/* Generated */ while( i < startIdx-2 ) { +/* Generated */ BodyLongPeriodTotal += TA_CANDLERANGE( BodyLong, i ); +/* Generated */ i++; +/* Generated */ } +/* Generated */ i = BodyShortTrailingIdx; +/* Generated */ while( i < startIdx ) { +/* Generated */ BodyShortPeriodTotal += TA_CANDLERANGE( BodyShort, i ); +/* Generated */ i++; +/* Generated */ } +/* Generated */ i = startIdx; +/* Generated */ outIdx = 0; +/* Generated */ do +/* Generated */ { +/* Generated */ if( TA_REALBODY(i-2) > TA_CANDLEAVERAGE( BodyLong, BodyLongPeriodTotal, i-2 ) && // 1st: long +/* Generated */ TA_CANDLECOLOR(i-2) == -1 && // black +/* Generated */ TA_CANDLECOLOR(i-1) == -1 && // 2nd: black +/* Generated */ inClose[i-1] > inClose[i-2] && inOpen[i-1] <= inOpen[i-2] && // harami +/* Generated */ inLow[i-1] < inLow[i-2] && // lower low +/* Generated */ TA_REALBODY(i) < TA_CANDLEAVERAGE( BodyShort, BodyShortPeriodTotal, i ) && // 3rd: short +/* Generated */ TA_CANDLECOLOR(i) == 1 && // white +/* Generated */ inOpen[i] > inLow[i-1] // open not lower +/* Generated */ ) +/* Generated */ outInteger[outIdx++] = 100; +/* Generated */ else +/* Generated */ outInteger[outIdx++] = 0; +/* Generated */ BodyLongPeriodTotal += TA_CANDLERANGE( BodyLong, i-2 ) - TA_CANDLERANGE( BodyLong, BodyLongTrailingIdx ); +/* Generated */ BodyShortPeriodTotal += TA_CANDLERANGE( BodyShort, i ) - TA_CANDLERANGE( BodyShort, BodyShortTrailingIdx ); +/* Generated */ i++; +/* Generated */ BodyLongTrailingIdx++; +/* Generated */ BodyShortTrailingIdx++; +/* Generated */ } while( i <= endIdx ); +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_CDLUPSIDEGAP2CROWS.c b/src/ta_func/ta_CDLUPSIDEGAP2CROWS.c new file mode 100644 index 000000000..191e29e1e --- /dev/null +++ b/src/ta_func/ta_CDLUPSIDEGAP2CROWS.c @@ -0,0 +1,377 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * AC Angelo Ciceri + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 110104 AC Creation + * + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::CdlUpsideGap2CrowsLookback( void ) +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int cdlUpsideGap2CrowsLookback( ) +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_CDLUPSIDEGAP2CROWS_Lookback( void ) +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ /* No parameters to validate. */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + return max( TA_CANDLEAVGPERIOD(BodyShort), TA_CANDLEAVGPERIOD(BodyLong) ) + 2; +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_CDLUPSIDEGAP2CROWS - Upside Gap Two Crows + * + * Input = Open, High, Low, Close + * Output = int + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::CdlUpsideGap2Crows( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inOpen, +/* Generated */ SubArray^ inHigh, +/* Generated */ SubArray^ inLow, +/* Generated */ SubArray^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::CdlUpsideGap2Crows( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inOpen, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cdlUpsideGap2Crows( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inOpen[], +/* Generated */ double inHigh[], +/* Generated */ double inLow[], +/* Generated */ double inClose[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_CDLUPSIDEGAP2CROWS( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inOpen[], +/* Generated */ const double inHigh[], +/* Generated */ const double inLow[], +/* Generated */ const double inClose[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* Insert local variables here. */ + double BodyShortPeriodTotal, BodyLongPeriodTotal; + int i, outIdx, BodyShortTrailingIdx, BodyLongTrailingIdx, lookbackTotal; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ /* Verify required price component. */ +/* Generated */ if(!inOpen||!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInteger ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Identify the minimum number of price bar needed + * to calculate at least one output. + */ + + lookbackTotal = LOOKBACK_CALL(CDLUPSIDEGAP2CROWS)(); + + /* Move up the start index if there is not + * enough initial data. + */ + if( startIdx < lookbackTotal ) + startIdx = lookbackTotal; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + + /* Do the calculation using tight loops. */ + /* Add-up the initial period, except for the last value. */ + BodyLongPeriodTotal = 0; + BodyShortPeriodTotal = 0; + BodyLongTrailingIdx = startIdx -2 - TA_CANDLEAVGPERIOD(BodyLong); + BodyShortTrailingIdx = startIdx -1 - TA_CANDLEAVGPERIOD(BodyShort); + + i = BodyLongTrailingIdx; + while( i < startIdx-2 ) { + BodyLongPeriodTotal += TA_CANDLERANGE( BodyLong, i ); + i++; + } + i = BodyShortTrailingIdx; + while( i < startIdx-1 ) { + BodyShortPeriodTotal += TA_CANDLERANGE( BodyShort, i ); + i++; + } + i = startIdx; + + /* Proceed with the calculation for the requested range. + * Must have: + * - first candle: white candle, usually long + * - second candle: small black real body + * - gap between the first and the second candle's real bodies + * - third candle: black candle with a real body that engulfs the preceding candle + * and closes above the white candle's close + * The meaning of "short" and "long" is specified with TA_SetCandleSettings + * outInteger is negative (-1 to -100): upside gap two crows is always bearish; + * the user should consider that an upside gap two crows is significant when it appears in an uptrend, + * while this function does not consider the trend + */ + outIdx = 0; + do + { + if( TA_CANDLECOLOR(i-2) == 1 && // 1st: white + TA_REALBODY(i-2) > TA_CANDLEAVERAGE( BodyLong, BodyLongPeriodTotal, i-2 ) && // long + TA_CANDLECOLOR(i-1) == -1 && // 2nd: black + TA_REALBODY(i-1) <= TA_CANDLEAVERAGE( BodyShort, BodyShortPeriodTotal, i-1 ) && // short + TA_REALBODYGAPUP(i-1,i-2) && // gapping up + TA_CANDLECOLOR(i) == -1 && // 3rd: black + inOpen[i] > inOpen[i-1] && inClose[i] < inClose[i-1] && // 3rd: engulfing prior rb + inClose[i] > inClose[i-2] // closing above 1st + ) + outInteger[outIdx++] = -100; + else + outInteger[outIdx++] = 0; + /* add the current range and subtract the first range: this is done after the pattern recognition + * when avgPeriod is not 0, that means "compare with the previous candles" (it excludes the current candle) + */ + BodyLongPeriodTotal += TA_CANDLERANGE( BodyLong, i-2 ) - TA_CANDLERANGE( BodyLong, BodyLongTrailingIdx ); + BodyShortPeriodTotal += TA_CANDLERANGE( BodyShort, i-1 ) - TA_CANDLERANGE( BodyShort, BodyShortTrailingIdx ); + i++; + BodyLongTrailingIdx++; + BodyShortTrailingIdx++; + } while( i <= endIdx ); + + /* All done. Indicate the output limits and return. */ + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::CdlUpsideGap2Crows( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inOpen, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cdlUpsideGap2Crows( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inOpen[], +/* Generated */ float inHigh[], +/* Generated */ float inLow[], +/* Generated */ float inClose[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_CDLUPSIDEGAP2CROWS( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inOpen[], +/* Generated */ const float inHigh[], +/* Generated */ const float inLow[], +/* Generated */ const float inClose[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ double BodyShortPeriodTotal, BodyLongPeriodTotal; +/* Generated */ int i, outIdx, BodyShortTrailingIdx, BodyLongTrailingIdx, lookbackTotal; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if(!inOpen||!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInteger ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ lookbackTotal = LOOKBACK_CALL(CDLUPSIDEGAP2CROWS)(); +/* Generated */ if( startIdx < lookbackTotal ) +/* Generated */ startIdx = lookbackTotal; +/* Generated */ if( startIdx > endIdx ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ BodyLongPeriodTotal = 0; +/* Generated */ BodyShortPeriodTotal = 0; +/* Generated */ BodyLongTrailingIdx = startIdx -2 - TA_CANDLEAVGPERIOD(BodyLong); +/* Generated */ BodyShortTrailingIdx = startIdx -1 - TA_CANDLEAVGPERIOD(BodyShort); +/* Generated */ i = BodyLongTrailingIdx; +/* Generated */ while( i < startIdx-2 ) { +/* Generated */ BodyLongPeriodTotal += TA_CANDLERANGE( BodyLong, i ); +/* Generated */ i++; +/* Generated */ } +/* Generated */ i = BodyShortTrailingIdx; +/* Generated */ while( i < startIdx-1 ) { +/* Generated */ BodyShortPeriodTotal += TA_CANDLERANGE( BodyShort, i ); +/* Generated */ i++; +/* Generated */ } +/* Generated */ i = startIdx; +/* Generated */ outIdx = 0; +/* Generated */ do +/* Generated */ { +/* Generated */ if( TA_CANDLECOLOR(i-2) == 1 && // 1st: white +/* Generated */ TA_REALBODY(i-2) > TA_CANDLEAVERAGE( BodyLong, BodyLongPeriodTotal, i-2 ) && // long +/* Generated */ TA_CANDLECOLOR(i-1) == -1 && // 2nd: black +/* Generated */ TA_REALBODY(i-1) <= TA_CANDLEAVERAGE( BodyShort, BodyShortPeriodTotal, i-1 ) && // short +/* Generated */ TA_REALBODYGAPUP(i-1,i-2) && // gapping up +/* Generated */ TA_CANDLECOLOR(i) == -1 && // 3rd: black +/* Generated */ inOpen[i] > inOpen[i-1] && inClose[i] < inClose[i-1] && // 3rd: engulfing prior rb +/* Generated */ inClose[i] > inClose[i-2] // closing above 1st +/* Generated */ ) +/* Generated */ outInteger[outIdx++] = -100; +/* Generated */ else +/* Generated */ outInteger[outIdx++] = 0; +/* Generated */ BodyLongPeriodTotal += TA_CANDLERANGE( BodyLong, i-2 ) - TA_CANDLERANGE( BodyLong, BodyLongTrailingIdx ); +/* Generated */ BodyShortPeriodTotal += TA_CANDLERANGE( BodyShort, i-1 ) - TA_CANDLERANGE( BodyShort, BodyShortTrailingIdx ); +/* Generated */ i++; +/* Generated */ BodyLongTrailingIdx++; +/* Generated */ BodyShortTrailingIdx++; +/* Generated */ } while( i <= endIdx ); +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_CDLXSIDEGAP3METHODS.c b/src/ta_func/ta_CDLXSIDEGAP3METHODS.c new file mode 100644 index 000000000..3a6b5be5a --- /dev/null +++ b/src/ta_func/ta_CDLXSIDEGAP3METHODS.c @@ -0,0 +1,350 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * AC Angelo Ciceri + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 011605 AC Creation + * + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::CdlXSideGap3MethodsLookback( void ) +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int cdlXSideGap3MethodsLookback( ) +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_CDLXSIDEGAP3METHODS_Lookback( void ) +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ /* No parameters to validate. */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + return 2; +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_CDLXSIDEGAP3METHODS - Upside/Downside Gap Three Methods + * + * Input = Open, High, Low, Close + * Output = int + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::CdlXSideGap3Methods( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inOpen, +/* Generated */ SubArray^ inHigh, +/* Generated */ SubArray^ inLow, +/* Generated */ SubArray^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::CdlXSideGap3Methods( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inOpen, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cdlXSideGap3Methods( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inOpen[], +/* Generated */ double inHigh[], +/* Generated */ double inLow[], +/* Generated */ double inClose[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_CDLXSIDEGAP3METHODS( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inOpen[], +/* Generated */ const double inHigh[], +/* Generated */ const double inLow[], +/* Generated */ const double inClose[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* Insert local variables here. */ + int i, outIdx, lookbackTotal; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ /* Verify required price component. */ +/* Generated */ if(!inOpen||!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInteger ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Identify the minimum number of price bar needed + * to calculate at least one output. + */ + + lookbackTotal = LOOKBACK_CALL(CDLXSIDEGAP3METHODS)(); + + /* Move up the start index if there is not + * enough initial data. + */ + if( startIdx < lookbackTotal ) + startIdx = lookbackTotal; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + + /* Do the calculation using tight loops. */ + /* Add-up the initial period, except for the last value. */ + i = startIdx; + + /* Proceed with the calculation for the requested range. + * Must have: + * - first candle: white (black) candle + * - second candle: white (black) candle + * - upside (downside) gap between the first and the second real bodies + * - third candle: black (white) candle that opens within the second real body and closes within the first real body + * outInteger is positive (1 to 100) when bullish or negative (-1 to -100) when bearish; + * the user should consider that up/downside gap 3 methods is significant when it appears in a trend, while this + * function does not consider it + */ + outIdx = 0; + do + { + if( TA_CANDLECOLOR(i-2) == TA_CANDLECOLOR(i-1) && // 1st and 2nd of same color + TA_CANDLECOLOR(i-1) == -TA_CANDLECOLOR(i) && // 3rd opposite color + inOpen[i] < max(inClose[i-1], inOpen[i-1]) && // 3rd opens within 2nd rb + inOpen[i] > min(inClose[i-1], inOpen[i-1]) && + inClose[i] < max(inClose[i-2], inOpen[i-2]) && // 3rd closes within 1st rb + inClose[i] > min(inClose[i-2], inOpen[i-2]) && + ( ( + TA_CANDLECOLOR(i-2) == 1 && // when 1st is white + TA_REALBODYGAPUP(i-1,i-2) // upside gap + ) || + ( + TA_CANDLECOLOR(i-2) == -1 && // when 1st is black + TA_REALBODYGAPDOWN(i-1,i-2) // downside gap + ) + ) + ) + outInteger[outIdx++] = TA_CANDLECOLOR(i-2) * 100; + else + outInteger[outIdx++] = 0; + /* add the current range and subtract the first range: this is done after the pattern recognition + * when avgPeriod is not 0, that means "compare with the previous candles" (it excludes the current candle) + */ + i++; + } while( i <= endIdx ); + + /* All done. Indicate the output limits and return. */ + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::CdlXSideGap3Methods( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inOpen, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cdlXSideGap3Methods( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inOpen[], +/* Generated */ float inHigh[], +/* Generated */ float inLow[], +/* Generated */ float inClose[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_CDLXSIDEGAP3METHODS( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inOpen[], +/* Generated */ const float inHigh[], +/* Generated */ const float inLow[], +/* Generated */ const float inClose[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ int i, outIdx, lookbackTotal; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if(!inOpen||!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInteger ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ lookbackTotal = LOOKBACK_CALL(CDLXSIDEGAP3METHODS)(); +/* Generated */ if( startIdx < lookbackTotal ) +/* Generated */ startIdx = lookbackTotal; +/* Generated */ if( startIdx > endIdx ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ i = startIdx; +/* Generated */ outIdx = 0; +/* Generated */ do +/* Generated */ { +/* Generated */ if( TA_CANDLECOLOR(i-2) == TA_CANDLECOLOR(i-1) && // 1st and 2nd of same color +/* Generated */ TA_CANDLECOLOR(i-1) == -TA_CANDLECOLOR(i) && // 3rd opposite color +/* Generated */ inOpen[i] < max(inClose[i-1], inOpen[i-1]) && // 3rd opens within 2nd rb +/* Generated */ inOpen[i] > min(inClose[i-1], inOpen[i-1]) && +/* Generated */ inClose[i] < max(inClose[i-2], inOpen[i-2]) && // 3rd closes within 1st rb +/* Generated */ inClose[i] > min(inClose[i-2], inOpen[i-2]) && +/* Generated */ ( ( +/* Generated */ TA_CANDLECOLOR(i-2) == 1 && // when 1st is white +/* Generated */ TA_REALBODYGAPUP(i-1,i-2) // upside gap +/* Generated */ ) || +/* Generated */ ( +/* Generated */ TA_CANDLECOLOR(i-2) == -1 && // when 1st is black +/* Generated */ TA_REALBODYGAPDOWN(i-1,i-2) // downside gap +/* Generated */ ) +/* Generated */ ) +/* Generated */ ) +/* Generated */ outInteger[outIdx++] = TA_CANDLECOLOR(i-2) * 100; +/* Generated */ else +/* Generated */ outInteger[outIdx++] = 0; +/* Generated */ i++; +/* Generated */ } while( i <= endIdx ); +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_CEIL.c b/src/ta_func/ta_CEIL.c new file mode 100644 index 000000000..65542d18d --- /dev/null +++ b/src/ta_func/ta_CEIL.c @@ -0,0 +1,241 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * MF Mario Fortier + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 090807 MF Initial Version + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::CeilLookback( void ) +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int ceilLookback( ) +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_CEIL_Lookback( void ) +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ /* No parameters to validate. */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + + return 0; +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_CEIL - Vector Ceil + * + * Input = double + * Output = double + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::Ceil( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inReal, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::Ceil( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode ceil( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inReal[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_CEIL( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inReal[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + int outIdx; + int i; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Insert TA function code here. */ + + /* Default return values */ + for( i=startIdx, outIdx=0; i <= endIdx; i++, outIdx++ ) + { + outReal[outIdx] = std_ceil(inReal[i]); + } + + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::Ceil( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode ceil( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inReal[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_CEIL( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inReal[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ int outIdx; +/* Generated */ int i; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ for( i=startIdx, outIdx=0; i <= endIdx; i++, outIdx++ ) +/* Generated */ { +/* Generated */ outReal[outIdx] = std_ceil(inReal[i]); +/* Generated */ } +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_CMO.c b/src/ta_func/ta_CMO.c new file mode 100644 index 000000000..3bab2039e --- /dev/null +++ b/src/ta_func/ta_CMO.c @@ -0,0 +1,595 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * MF Mario Fortier + * BT Barry Tsung + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 112605 MF Initial version. + * 021806 MF,BT Fix #1434450 reported by BT. + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::CmoLookback( int optInTimePeriod ) /* From 2 to 100000 */ +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int cmoLookback( int optInTimePeriod ) /* From 2 to 100000 */ +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_CMO_Lookback( int optInTimePeriod ) /* From 2 to 100000 */ +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + int retValue; + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ /* min/max are checked for optInTimePeriod. */ +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 14; +/* Generated */ else if( ((int)optInTimePeriod < 2) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return -1; +/* Generated */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + + retValue = optInTimePeriod + TA_GLOBALS_UNSTABLE_PERIOD(TA_FUNC_UNST_CMO,Cmo); + if( TA_GLOBALS_COMPATIBILITY == ENUM_VALUE(Compatibility,TA_COMPATIBILITY_METASTOCK,Metastock) ) + retValue--; + + return retValue; +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_CMO - Chande Momentum Oscillator + * + * Input = double + * Output = double + * + * Optional Parameters + * ------------------- + * optInTimePeriod:(From 2 to 100000) + * Number of period + * + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::Cmo( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inReal, +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::Cmo( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cmo( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inReal[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_CMO( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inReal[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + int outIdx; + + int today, lookbackTotal, unstablePeriod, i; + double prevGain, prevLoss, prevValue, savePrevValue; + double tempValue1, tempValue2, tempValue3, tempValue4; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ /* min/max are checked for optInTimePeriod. */ +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 14; +/* Generated */ else if( ((int)optInTimePeriod < 2) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Insert TA function code here. */ + + /* CMO calculation is mostly identical to RSI. + * + * The only difference is in the last step of calculation: + * + * RSI = gain / (gain+loss) + * CMO = (gain-loss) / (gain+loss) + * + * See the RSI function for potentially some more info + * on this algo. + */ + + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + + /* Adjust startIdx to account for the lookback period. */ + lookbackTotal = LOOKBACK_CALL(CMO)( optInTimePeriod ); + + if( startIdx < lookbackTotal ) + startIdx = lookbackTotal; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + + outIdx = 0; /* Index into the output. */ + + /* Trap special case where the period is '1'. + * In that case, just copy the input into the + * output for the requested range (as-is !) + */ + if( optInTimePeriod == 1 ) + { + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + i = (endIdx-startIdx)+1; + VALUE_HANDLE_DEREF(outNBElement) = i; + #if defined( USE_SUBARRAY ) && !defined( USE_SINGLE_PRECISION_INPUT ) + ARRAY_MEMMOVE( outReal, 0, (inReal->mDataArray), (inReal->mOffset)+startIdx, i ); + #else + ARRAY_MEMMOVE( outReal, 0, inReal, startIdx, i ); + #endif + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + + /* Accumulate Wilder's "Average Gain" and "Average Loss" + * among the initial period. + */ + today = startIdx-lookbackTotal; + prevValue = inReal[today]; + + unstablePeriod = TA_GLOBALS_UNSTABLE_PERIOD(TA_FUNC_UNST_CMO,Cmo); + + /* If there is no unstable period, + * calculate the 'additional' initial + * price bar who is particuliar to + * metastock. + * If there is an unstable period, + * no need to calculate since this + * first value will be surely skip. + */ + if( (unstablePeriod == 0) && + (TA_GLOBALS_COMPATIBILITY == ENUM_VALUE(Compatibility,TA_COMPATIBILITY_METASTOCK,Metastock))) + { + /* Preserve prevValue because it may get + * overwritten by the output. + *(because output ptr could be the same as input ptr). + */ + savePrevValue = prevValue; + + /* No unstable period, so must calculate first output + * particular to Metastock. + * (Metastock re-use the first price bar, so there + * is no loss/gain at first. Beats me why they + * are doing all this). + */ + prevGain = 0.0; + prevLoss = 0.0; + for( i=optInTimePeriod; i > 0; i-- ) + { + tempValue1 = inReal[today++]; + tempValue2 = tempValue1 - prevValue; + prevValue = tempValue1; + if( tempValue2 < 0 ) + prevLoss -= tempValue2; + else + prevGain += tempValue2; + } + + + tempValue1 = prevLoss/optInTimePeriod; + tempValue2 = prevGain/optInTimePeriod; + tempValue3 = tempValue2-tempValue1; + tempValue4 = tempValue1+tempValue2; + + /* Write the output. */ + if( !TA_IS_ZERO(tempValue4) ) + outReal[outIdx++] = 100*(tempValue3/tempValue4); + else + outReal[outIdx++] = 0.0; + + /* Are we done? */ + if( today > endIdx ) + { + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + + /* Start over for the next price bar. */ + today -= optInTimePeriod; + prevValue = savePrevValue; + } + + + /* Remaining of the processing is identical + * for both Classic calculation and Metastock. + */ + prevGain = 0.0; + prevLoss = 0.0; + today++; + for( i=optInTimePeriod; i > 0; i-- ) + { + tempValue1 = inReal[today++]; + tempValue2 = tempValue1 - prevValue; + prevValue = tempValue1; + if( tempValue2 < 0 ) + prevLoss -= tempValue2; + else + prevGain += tempValue2; + } + + + /* Subsequent prevLoss and prevGain are smoothed + * using the previous values (Wilder's approach). + * 1) Multiply the previous by 'period-1'. + * 2) Add today value. + * 3) Divide by 'period'. + */ + prevLoss /= optInTimePeriod; + prevGain /= optInTimePeriod; + + /* Often documentation present the RSI calculation as follow: + * RSI = 100 - (100 / 1 + (prevGain/prevLoss)) + * + * The following is equivalent: + * RSI = 100 * (prevGain/(prevGain+prevLoss)) + * + * The second equation is used here for speed optimization. + */ + if( today > startIdx ) + { + tempValue1 = prevGain+prevLoss; + if( !TA_IS_ZERO(tempValue1) ) + outReal[outIdx++] = 100.0*((prevGain-prevLoss)/tempValue1); + else + outReal[outIdx++] = 0.0; + } + else + { + /* Skip the unstable period. Do the processing + * but do not write it in the output. + */ + while( today < startIdx ) + { + tempValue1 = inReal[today]; + tempValue2 = tempValue1 - prevValue; + prevValue = tempValue1; + + prevLoss *= (optInTimePeriod-1); + prevGain *= (optInTimePeriod-1); + if( tempValue2 < 0 ) + prevLoss -= tempValue2; + else + prevGain += tempValue2; + + prevLoss /= optInTimePeriod; + prevGain /= optInTimePeriod; + + today++; + } + } + + /* Unstable period skipped... now continue + * processing if needed. + */ + while( today <= endIdx ) + { + tempValue1 = inReal[today++]; + tempValue2 = tempValue1 - prevValue; + prevValue = tempValue1; + + prevLoss *= (optInTimePeriod-1); + prevGain *= (optInTimePeriod-1); + if( tempValue2 < 0 ) + prevLoss -= tempValue2; + else + prevGain += tempValue2; + + prevLoss /= optInTimePeriod; + prevGain /= optInTimePeriod; + tempValue1 = prevGain+prevLoss; + if( !TA_IS_ZERO(tempValue1) ) + outReal[outIdx++] = 100.0*((prevGain-prevLoss)/tempValue1); + else + outReal[outIdx++] = 0.0; + } + + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::Cmo( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cmo( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inReal[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_CMO( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inReal[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ int outIdx; +/* Generated */ int today, lookbackTotal, unstablePeriod, i; +/* Generated */ double prevGain, prevLoss, prevValue, savePrevValue; +/* Generated */ double tempValue1, tempValue2, tempValue3, tempValue4; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 14; +/* Generated */ else if( ((int)optInTimePeriod < 2) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ lookbackTotal = LOOKBACK_CALL(CMO)( optInTimePeriod ); +/* Generated */ if( startIdx < lookbackTotal ) +/* Generated */ startIdx = lookbackTotal; +/* Generated */ if( startIdx > endIdx ) +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ outIdx = 0; +/* Generated */ if( optInTimePeriod == 1 ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ i = (endIdx-startIdx)+1; +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = i; +/* Generated */ #if defined( USE_SUBARRAY ) && !defined( USE_SINGLE_PRECISION_INPUT ) +/* Generated */ ARRAY_MEMMOVE( outReal, 0, (inReal->mDataArray), (inReal->mOffset)+startIdx, i ); +/* Generated */ #else +/* Generated */ ARRAY_MEMMOVE( outReal, 0, inReal, startIdx, i ); +/* Generated */ #endif +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ today = startIdx-lookbackTotal; +/* Generated */ prevValue = inReal[today]; +/* Generated */ unstablePeriod = TA_GLOBALS_UNSTABLE_PERIOD(TA_FUNC_UNST_CMO,Cmo); +/* Generated */ if( (unstablePeriod == 0) && +/* Generated */ (TA_GLOBALS_COMPATIBILITY == ENUM_VALUE(Compatibility,TA_COMPATIBILITY_METASTOCK,Metastock))) +/* Generated */ { +/* Generated */ savePrevValue = prevValue; +/* Generated */ prevGain = 0.0; +/* Generated */ prevLoss = 0.0; +/* Generated */ for( i=optInTimePeriod; i > 0; i-- ) +/* Generated */ { +/* Generated */ tempValue1 = inReal[today++]; +/* Generated */ tempValue2 = tempValue1 - prevValue; +/* Generated */ prevValue = tempValue1; +/* Generated */ if( tempValue2 < 0 ) +/* Generated */ prevLoss -= tempValue2; +/* Generated */ else +/* Generated */ prevGain += tempValue2; +/* Generated */ } +/* Generated */ tempValue1 = prevLoss/optInTimePeriod; +/* Generated */ tempValue2 = prevGain/optInTimePeriod; +/* Generated */ tempValue3 = tempValue2-tempValue1; +/* Generated */ tempValue4 = tempValue1+tempValue2; +/* Generated */ if( !TA_IS_ZERO(tempValue4) ) +/* Generated */ outReal[outIdx++] = 100*(tempValue3/tempValue4); +/* Generated */ else +/* Generated */ outReal[outIdx++] = 0.0; +/* Generated */ if( today > endIdx ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ today -= optInTimePeriod; +/* Generated */ prevValue = savePrevValue; +/* Generated */ } +/* Generated */ prevGain = 0.0; +/* Generated */ prevLoss = 0.0; +/* Generated */ today++; +/* Generated */ for( i=optInTimePeriod; i > 0; i-- ) +/* Generated */ { +/* Generated */ tempValue1 = inReal[today++]; +/* Generated */ tempValue2 = tempValue1 - prevValue; +/* Generated */ prevValue = tempValue1; +/* Generated */ if( tempValue2 < 0 ) +/* Generated */ prevLoss -= tempValue2; +/* Generated */ else +/* Generated */ prevGain += tempValue2; +/* Generated */ } +/* Generated */ prevLoss /= optInTimePeriod; +/* Generated */ prevGain /= optInTimePeriod; +/* Generated */ if( today > startIdx ) +/* Generated */ { +/* Generated */ tempValue1 = prevGain+prevLoss; +/* Generated */ if( !TA_IS_ZERO(tempValue1) ) +/* Generated */ outReal[outIdx++] = 100.0*((prevGain-prevLoss)/tempValue1); +/* Generated */ else +/* Generated */ outReal[outIdx++] = 0.0; +/* Generated */ } +/* Generated */ else +/* Generated */ { +/* Generated */ while( today < startIdx ) +/* Generated */ { +/* Generated */ tempValue1 = inReal[today]; +/* Generated */ tempValue2 = tempValue1 - prevValue; +/* Generated */ prevValue = tempValue1; +/* Generated */ prevLoss *= (optInTimePeriod-1); +/* Generated */ prevGain *= (optInTimePeriod-1); +/* Generated */ if( tempValue2 < 0 ) +/* Generated */ prevLoss -= tempValue2; +/* Generated */ else +/* Generated */ prevGain += tempValue2; +/* Generated */ prevLoss /= optInTimePeriod; +/* Generated */ prevGain /= optInTimePeriod; +/* Generated */ today++; +/* Generated */ } +/* Generated */ } +/* Generated */ while( today <= endIdx ) +/* Generated */ { +/* Generated */ tempValue1 = inReal[today++]; +/* Generated */ tempValue2 = tempValue1 - prevValue; +/* Generated */ prevValue = tempValue1; +/* Generated */ prevLoss *= (optInTimePeriod-1); +/* Generated */ prevGain *= (optInTimePeriod-1); +/* Generated */ if( tempValue2 < 0 ) +/* Generated */ prevLoss -= tempValue2; +/* Generated */ else +/* Generated */ prevGain += tempValue2; +/* Generated */ prevLoss /= optInTimePeriod; +/* Generated */ prevGain /= optInTimePeriod; +/* Generated */ tempValue1 = prevGain+prevLoss; +/* Generated */ if( !TA_IS_ZERO(tempValue1) ) +/* Generated */ outReal[outIdx++] = 100.0*((prevGain-prevLoss)/tempValue1); +/* Generated */ else +/* Generated */ outReal[outIdx++] = 0.0; +/* Generated */ } +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_CORREL.c b/src/ta_func/ta_CORREL.c new file mode 100644 index 000000000..fc7d6a2de --- /dev/null +++ b/src/ta_func/ta_CORREL.c @@ -0,0 +1,404 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * MF Mario Fortier + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 120802 MF Template creation. + * 101003 MF Initial Coding + * 062804 MF Resolve div by zero bug on limit case. + * + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::CorrelLookback( int optInTimePeriod ) /* From 1 to 100000 */ +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int correlLookback( int optInTimePeriod ) /* From 1 to 100000 */ +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_CORREL_Lookback( int optInTimePeriod ) /* From 1 to 100000 */ +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ /* min/max are checked for optInTimePeriod. */ +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 30; +/* Generated */ else if( ((int)optInTimePeriod < 1) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return -1; +/* Generated */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + return optInTimePeriod-1; +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_CORREL - Pearson's Correlation Coefficient (r) + * + * Input = double, double + * Output = double + * + * Optional Parameters + * ------------------- + * optInTimePeriod:(From 1 to 100000) + * Number of period + * + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::Correl( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inReal0, +/* Generated */ SubArray^ inReal1, +/* Generated */ int optInTimePeriod, /* From 1 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::Correl( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal0, +/* Generated */ cli::array^ inReal1, +/* Generated */ int optInTimePeriod, /* From 1 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode correl( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inReal0[], +/* Generated */ double inReal1[], +/* Generated */ int optInTimePeriod, /* From 1 to 100000 */ +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_CORREL( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inReal0[], +/* Generated */ const double inReal1[], +/* Generated */ int optInTimePeriod, /* From 1 to 100000 */ +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + double sumXY, sumX, sumY, sumX2, sumY2, x, y, trailingX, trailingY; + double tempReal; + int lookbackTotal, today, trailingIdx, outIdx; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal0 ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ if( !inReal1 ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ /* min/max are checked for optInTimePeriod. */ +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 30; +/* Generated */ else if( ((int)optInTimePeriod < 1) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Insert TA function code here. */ + + /* Move up the start index if there is not + * enough initial data. + */ + lookbackTotal = optInTimePeriod-1; + if( startIdx < lookbackTotal ) + startIdx = lookbackTotal; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + trailingIdx = startIdx - lookbackTotal; + + /* Calculate the initial values. */ + sumXY = sumX = sumY = sumX2 = sumY2 = 0.0; + for( today=trailingIdx; today <= startIdx; today++ ) + { + x = inReal0[today]; + sumX += x; + sumX2 += x*x; + + y = inReal1[today]; + sumXY += x*y; + sumY += y; + sumY2 += y*y; + } + + /* Write the first output. + * Save first the trailing values since the input + * and output might be the same array, + */ + trailingX = inReal0[trailingIdx]; + trailingY = inReal1[trailingIdx++]; + tempReal = (sumX2-((sumX*sumX)/optInTimePeriod)) * (sumY2-((sumY*sumY)/optInTimePeriod)); + if( !TA_IS_ZERO_OR_NEG(tempReal) ) + outReal[0] = (sumXY-((sumX*sumY)/optInTimePeriod)) / std_sqrt(tempReal); + else + outReal[0] = 0.0; + + /* Tight loop to do subsequent values. */ + outIdx = 1; + while( today <= endIdx ) + { + /* Remove trailing values */ + sumX -= trailingX; + sumX2 -= trailingX*trailingX; + + sumXY -= trailingX*trailingY; + sumY -= trailingY; + sumY2 -= trailingY*trailingY; + + /* Add new values */ + x = inReal0[today]; + sumX += x; + sumX2 += x*x; + + y = inReal1[today++]; + sumXY += x*y; + sumY += y; + sumY2 += y*y; + + /* Output new coefficient. + * Save first the trailing values since the input + * and output might be the same array, + */ + trailingX = inReal0[trailingIdx]; + trailingY = inReal1[trailingIdx++]; + tempReal = (sumX2-((sumX*sumX)/optInTimePeriod)) * (sumY2-((sumY*sumY)/optInTimePeriod)); + if( !TA_IS_ZERO_OR_NEG(tempReal) ) + outReal[outIdx++] = (sumXY-((sumX*sumY)/optInTimePeriod)) / std_sqrt(tempReal); + else + outReal[outIdx++] = 0.0; + } + + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::Correl( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal0, +/* Generated */ cli::array^ inReal1, +/* Generated */ int optInTimePeriod, /* From 1 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode correl( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inReal0[], +/* Generated */ float inReal1[], +/* Generated */ int optInTimePeriod, /* From 1 to 100000 */ +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_CORREL( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inReal0[], +/* Generated */ const float inReal1[], +/* Generated */ int optInTimePeriod, /* From 1 to 100000 */ +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ double sumXY, sumX, sumY, sumX2, sumY2, x, y, trailingX, trailingY; +/* Generated */ double tempReal; +/* Generated */ int lookbackTotal, today, trailingIdx, outIdx; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal0 ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ if( !inReal1 ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 30; +/* Generated */ else if( ((int)optInTimePeriod < 1) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ lookbackTotal = optInTimePeriod-1; +/* Generated */ if( startIdx < lookbackTotal ) +/* Generated */ startIdx = lookbackTotal; +/* Generated */ if( startIdx > endIdx ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ trailingIdx = startIdx - lookbackTotal; +/* Generated */ sumXY = sumX = sumY = sumX2 = sumY2 = 0.0; +/* Generated */ for( today=trailingIdx; today <= startIdx; today++ ) +/* Generated */ { +/* Generated */ x = inReal0[today]; +/* Generated */ sumX += x; +/* Generated */ sumX2 += x*x; +/* Generated */ y = inReal1[today]; +/* Generated */ sumXY += x*y; +/* Generated */ sumY += y; +/* Generated */ sumY2 += y*y; +/* Generated */ } +/* Generated */ trailingX = inReal0[trailingIdx]; +/* Generated */ trailingY = inReal1[trailingIdx++]; +/* Generated */ tempReal = (sumX2-((sumX*sumX)/optInTimePeriod)) * (sumY2-((sumY*sumY)/optInTimePeriod)); +/* Generated */ if( !TA_IS_ZERO_OR_NEG(tempReal) ) +/* Generated */ outReal[0] = (sumXY-((sumX*sumY)/optInTimePeriod)) / std_sqrt(tempReal); +/* Generated */ else +/* Generated */ outReal[0] = 0.0; +/* Generated */ outIdx = 1; +/* Generated */ while( today <= endIdx ) +/* Generated */ { +/* Generated */ sumX -= trailingX; +/* Generated */ sumX2 -= trailingX*trailingX; +/* Generated */ sumXY -= trailingX*trailingY; +/* Generated */ sumY -= trailingY; +/* Generated */ sumY2 -= trailingY*trailingY; +/* Generated */ x = inReal0[today]; +/* Generated */ sumX += x; +/* Generated */ sumX2 += x*x; +/* Generated */ y = inReal1[today++]; +/* Generated */ sumXY += x*y; +/* Generated */ sumY += y; +/* Generated */ sumY2 += y*y; +/* Generated */ trailingX = inReal0[trailingIdx]; +/* Generated */ trailingY = inReal1[trailingIdx++]; +/* Generated */ tempReal = (sumX2-((sumX*sumX)/optInTimePeriod)) * (sumY2-((sumY*sumY)/optInTimePeriod)); +/* Generated */ if( !TA_IS_ZERO_OR_NEG(tempReal) ) +/* Generated */ outReal[outIdx++] = (sumXY-((sumX*sumY)/optInTimePeriod)) / std_sqrt(tempReal); +/* Generated */ else +/* Generated */ outReal[outIdx++] = 0.0; +/* Generated */ } +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_COS.c b/src/ta_func/ta_COS.c new file mode 100644 index 000000000..3de979510 --- /dev/null +++ b/src/ta_func/ta_COS.c @@ -0,0 +1,241 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * MF Mario Fortier + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 090807 MF Initial Version + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::CosLookback( void ) +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int cosLookback( ) +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_COS_Lookback( void ) +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ /* No parameters to validate. */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + + return 0; +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_COS - Vector Trigonometric Cos + * + * Input = double + * Output = double + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::Cos( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inReal, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::Cos( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cos( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inReal[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_COS( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inReal[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + int outIdx; + int i; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Insert TA function code here. */ + + /* Default return values */ + for( i=startIdx, outIdx=0; i <= endIdx; i++, outIdx++ ) + { + outReal[outIdx] = std_cos(inReal[i]); + } + + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::Cos( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cos( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inReal[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_COS( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inReal[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ int outIdx; +/* Generated */ int i; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ for( i=startIdx, outIdx=0; i <= endIdx; i++, outIdx++ ) +/* Generated */ { +/* Generated */ outReal[outIdx] = std_cos(inReal[i]); +/* Generated */ } +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_COSH.c b/src/ta_func/ta_COSH.c new file mode 100644 index 000000000..47b6b45f1 --- /dev/null +++ b/src/ta_func/ta_COSH.c @@ -0,0 +1,241 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * MF Mario Fortier + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 090807 MF Initial Version + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::CoshLookback( void ) +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int coshLookback( ) +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_COSH_Lookback( void ) +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ /* No parameters to validate. */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + + return 0; +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_COSH - Vector Trigonometric Cosh + * + * Input = double + * Output = double + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::Cosh( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inReal, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::Cosh( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cosh( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inReal[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_COSH( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inReal[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + int outIdx; + int i; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Insert TA function code here. */ + + /* Default return values */ + for( i=startIdx, outIdx=0; i <= endIdx; i++, outIdx++ ) + { + outReal[outIdx] = std_cosh(inReal[i]); + } + + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::Cosh( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode cosh( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inReal[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_COSH( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inReal[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ int outIdx; +/* Generated */ int i; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ for( i=startIdx, outIdx=0; i <= endIdx; i++, outIdx++ ) +/* Generated */ { +/* Generated */ outReal[outIdx] = std_cosh(inReal[i]); +/* Generated */ } +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_DEMA.c b/src/ta_func/ta_DEMA.c new file mode 100644 index 000000000..c7153dfa5 --- /dev/null +++ b/src/ta_func/ta_DEMA.c @@ -0,0 +1,487 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * MF Mario Fortier + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 010102 MF Template creation. + * 052603 MF Adapt code to compile with .NET Managed C++ + * + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::DemaLookback( int optInTimePeriod ) /* From 2 to 100000 */ +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int demaLookback( int optInTimePeriod ) /* From 2 to 100000 */ +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_DEMA_Lookback( int optInTimePeriod ) /* From 2 to 100000 */ +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ /* min/max are checked for optInTimePeriod. */ +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 30; +/* Generated */ else if( ((int)optInTimePeriod < 2) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return -1; +/* Generated */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + + /* Get lookback for one EMA. + * Multiply by two (because double smoothing). + */ + return LOOKBACK_CALL(EMA)( optInTimePeriod ) * 2; +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_DEMA - Double Exponential Moving Average + * + * Input = double + * Output = double + * + * Optional Parameters + * ------------------- + * optInTimePeriod:(From 2 to 100000) + * Number of period + * + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::Dema( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inReal, +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::Dema( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode dema( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inReal[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_DEMA( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inReal[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* Insert local variables here. */ + ARRAY_REF(firstEMA); + ARRAY_REF(secondEMA); + double k; + VALUE_HANDLE_INT(firstEMABegIdx); + VALUE_HANDLE_INT(firstEMANbElement); + VALUE_HANDLE_INT(secondEMABegIdx); + VALUE_HANDLE_INT(secondEMANbElement); + int tempInt, outIdx, firstEMAIdx, lookbackTotal, lookbackEMA; + ENUM_DECLARATION(RetCode) retCode; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ /* min/max are checked for optInTimePeriod. */ +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 30; +/* Generated */ else if( ((int)optInTimePeriod < 2) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Insert TA function code here. */ + + /* For an explanation of this function, please read + * + * Stocks & Commodities V. 12:1 (11-19): + * Smoothing Data With Faster Moving Averages + * Stocks & Commodities V. 12:2 (72-80): + * Smoothing Data With Less Lag + * + * Both magazine articles written by Patrick G. Mulloy + * + * Essentially, a DEMA of time serie 't' is: + * EMA2 = EMA(EMA(t,period),period) + * DEMA = 2*EMA(t,period)- EMA2 + * + * DEMA offers a moving average with less lags then the + * traditional EMA. + * + * Do not confuse a DEMA with the EMA2. Both are called + * "Double EMA" in the litterature, but EMA2 is a simple + * EMA of an EMA, while DEMA is a compostie of a single + * EMA with EMA2. + * + * TEMA is very similar (and from the same author). + */ + + /* Will change only on success. */ + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + + /* Adjust startIdx to account for the lookback period. */ + lookbackEMA = LOOKBACK_CALL(EMA)( optInTimePeriod ); + lookbackTotal = lookbackEMA * 2; + + if( startIdx < lookbackTotal ) + startIdx = lookbackTotal; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + + /* Allocate a temporary buffer for the firstEMA. + * + * When possible, re-use the outputBuffer for temp + * calculation. + */ + #if defined(USE_SINGLE_PRECISION_INPUT) || defined( USE_SUBARRAY ) + tempInt = lookbackTotal+(endIdx-startIdx)+1; + ARRAY_ALLOC(firstEMA, tempInt ); + #if !defined( _JAVA ) + if( !firstEMA ) + return ENUM_VALUE(RetCode,TA_ALLOC_ERR,AllocErr); + #endif + #else + if( inReal == outReal ) + firstEMA = outReal; + else + { + tempInt = lookbackTotal+(endIdx-startIdx)+1; + ARRAY_ALLOC(firstEMA, tempInt ); + #if !defined( _JAVA ) + if( !firstEMA ) + return ENUM_VALUE(RetCode,TA_ALLOC_ERR,AllocErr); + #endif + } + #endif + + /* Calculate the first EMA */ + k = PER_TO_K(optInTimePeriod); + retCode = FUNCTION_CALL(INT_EMA)( startIdx-lookbackEMA, endIdx, inReal, + optInTimePeriod, k, + VALUE_HANDLE_OUT(firstEMABegIdx), VALUE_HANDLE_OUT(firstEMANbElement), + firstEMA ); + + /* Verify for failure or if not enough data after + * calculating the first EMA. + */ + if( (retCode != ENUM_VALUE(RetCode,TA_SUCCESS,Success)) || (VALUE_HANDLE_GET(firstEMANbElement) == 0) ) + { + ARRAY_FREE_COND( firstEMA != outReal, firstEMA ); + return retCode; + } + + /* Allocate a temporary buffer for storing the EMA of the EMA. */ + ARRAY_ALLOC(secondEMA, VALUE_HANDLE_GET(firstEMANbElement)); + + #if !defined( _JAVA ) + if( !secondEMA ) + { + ARRAY_FREE_COND( firstEMA != outReal, firstEMA ); + return ENUM_VALUE(RetCode,TA_ALLOC_ERR,AllocErr); + } + #endif + + retCode = FUNCTION_CALL_DOUBLE(INT_EMA)( 0, VALUE_HANDLE_GET(firstEMANbElement)-1, firstEMA, + optInTimePeriod, k, + VALUE_HANDLE_OUT(secondEMABegIdx), VALUE_HANDLE_OUT(secondEMANbElement), + secondEMA ); + + /* Return empty output on failure or if not enough data after + * calculating the second EMA. + */ + if( (retCode != ENUM_VALUE(RetCode,TA_SUCCESS,Success)) || (VALUE_HANDLE_GET(secondEMANbElement) == 0) ) + { + #if defined(USE_SINGLE_PRECISION_INPUT) + ARRAY_FREE( firstEMA ); + #else + ARRAY_FREE_COND( firstEMA != outReal, firstEMA ); + #endif + ARRAY_FREE( secondEMA ); + return retCode; + } + + /* Iterate through the second EMA and write the DEMA into + * the output. + */ + firstEMAIdx = VALUE_HANDLE_GET(secondEMABegIdx); + outIdx = 0; + while( outIdx < VALUE_HANDLE_GET(secondEMANbElement) ) + { + outReal[outIdx] = (2.0*firstEMA[firstEMAIdx++]) - secondEMA[outIdx]; + outIdx++; + } + + #if defined(USE_SINGLE_PRECISION_INPUT) + ARRAY_FREE( firstEMA ); + #else + ARRAY_FREE_COND( firstEMA != outReal, firstEMA ); + #endif + ARRAY_FREE( secondEMA ); + + /* Succeed. Indicate where the output starts relative to + * the caller input. + */ + VALUE_HANDLE_DEREF(outBegIdx) = VALUE_HANDLE_GET(firstEMABegIdx) + VALUE_HANDLE_GET(secondEMABegIdx); + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::Dema( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode dema( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inReal[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_DEMA( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inReal[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ ARRAY_REF(firstEMA); +/* Generated */ ARRAY_REF(secondEMA); +/* Generated */ double k; +/* Generated */ VALUE_HANDLE_INT(firstEMABegIdx); +/* Generated */ VALUE_HANDLE_INT(firstEMANbElement); +/* Generated */ VALUE_HANDLE_INT(secondEMABegIdx); +/* Generated */ VALUE_HANDLE_INT(secondEMANbElement); +/* Generated */ int tempInt, outIdx, firstEMAIdx, lookbackTotal, lookbackEMA; +/* Generated */ ENUM_DECLARATION(RetCode) retCode; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 30; +/* Generated */ else if( ((int)optInTimePeriod < 2) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ lookbackEMA = LOOKBACK_CALL(EMA)( optInTimePeriod ); +/* Generated */ lookbackTotal = lookbackEMA * 2; +/* Generated */ if( startIdx < lookbackTotal ) +/* Generated */ startIdx = lookbackTotal; +/* Generated */ if( startIdx > endIdx ) +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ #if defined(USE_SINGLE_PRECISION_INPUT) || defined( USE_SUBARRAY ) +/* Generated */ tempInt = lookbackTotal+(endIdx-startIdx)+1; +/* Generated */ ARRAY_ALLOC(firstEMA, tempInt ); +/* Generated */ #if !defined( _JAVA ) +/* Generated */ if( !firstEMA ) +/* Generated */ return ENUM_VALUE(RetCode,TA_ALLOC_ERR,AllocErr); +/* Generated */ #endif +/* Generated */ #else +/* Generated */ if( inReal == outReal ) +/* Generated */ firstEMA = outReal; +/* Generated */ else +/* Generated */ { +/* Generated */ tempInt = lookbackTotal+(endIdx-startIdx)+1; +/* Generated */ ARRAY_ALLOC(firstEMA, tempInt ); +/* Generated */ #if !defined( _JAVA ) +/* Generated */ if( !firstEMA ) +/* Generated */ return ENUM_VALUE(RetCode,TA_ALLOC_ERR,AllocErr); +/* Generated */ #endif +/* Generated */ } +/* Generated */ #endif +/* Generated */ k = PER_TO_K(optInTimePeriod); +/* Generated */ retCode = FUNCTION_CALL(INT_EMA)( startIdx-lookbackEMA, endIdx, inReal, +/* Generated */ optInTimePeriod, k, +/* Generated */ VALUE_HANDLE_OUT(firstEMABegIdx), VALUE_HANDLE_OUT(firstEMANbElement), +/* Generated */ firstEMA ); +/* Generated */ if( (retCode != ENUM_VALUE(RetCode,TA_SUCCESS,Success)) || (VALUE_HANDLE_GET(firstEMANbElement) == 0) ) +/* Generated */ { +/* Generated */ ARRAY_FREE_COND( firstEMA != outReal, firstEMA ); +/* Generated */ return retCode; +/* Generated */ } +/* Generated */ ARRAY_ALLOC(secondEMA, VALUE_HANDLE_GET(firstEMANbElement)); +/* Generated */ #if !defined( _JAVA ) +/* Generated */ if( !secondEMA ) +/* Generated */ { +/* Generated */ ARRAY_FREE_COND( firstEMA != outReal, firstEMA ); +/* Generated */ return ENUM_VALUE(RetCode,TA_ALLOC_ERR,AllocErr); +/* Generated */ } +/* Generated */ #endif +/* Generated */ retCode = FUNCTION_CALL_DOUBLE(INT_EMA)( 0, VALUE_HANDLE_GET(firstEMANbElement)-1, firstEMA, +/* Generated */ optInTimePeriod, k, +/* Generated */ VALUE_HANDLE_OUT(secondEMABegIdx), VALUE_HANDLE_OUT(secondEMANbElement), +/* Generated */ secondEMA ); +/* Generated */ if( (retCode != ENUM_VALUE(RetCode,TA_SUCCESS,Success)) || (VALUE_HANDLE_GET(secondEMANbElement) == 0) ) +/* Generated */ { +/* Generated */ #if defined(USE_SINGLE_PRECISION_INPUT) +/* Generated */ ARRAY_FREE( firstEMA ); +/* Generated */ #else +/* Generated */ ARRAY_FREE_COND( firstEMA != outReal, firstEMA ); +/* Generated */ #endif +/* Generated */ ARRAY_FREE( secondEMA ); +/* Generated */ return retCode; +/* Generated */ } +/* Generated */ firstEMAIdx = VALUE_HANDLE_GET(secondEMABegIdx); +/* Generated */ outIdx = 0; +/* Generated */ while( outIdx < VALUE_HANDLE_GET(secondEMANbElement) ) +/* Generated */ { +/* Generated */ outReal[outIdx] = (2.0*firstEMA[firstEMAIdx++]) - secondEMA[outIdx]; +/* Generated */ outIdx++; +/* Generated */ } +/* Generated */ #if defined(USE_SINGLE_PRECISION_INPUT) +/* Generated */ ARRAY_FREE( firstEMA ); +/* Generated */ #else +/* Generated */ ARRAY_FREE_COND( firstEMA != outReal, firstEMA ); +/* Generated */ #endif +/* Generated */ ARRAY_FREE( secondEMA ); +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = VALUE_HANDLE_GET(firstEMABegIdx) + VALUE_HANDLE_GET(secondEMABegIdx); +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_DIV.c b/src/ta_func/ta_DIV.c new file mode 100644 index 000000000..e195a39bc --- /dev/null +++ b/src/ta_func/ta_DIV.c @@ -0,0 +1,250 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * MF Mario Fortier + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 090807 MF Initial Version + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::DivLookback( void ) +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int divLookback( ) +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_DIV_Lookback( void ) +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ /* No parameters to validate. */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + + return 0; +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_DIV - Vector Arithmetic Div + * + * Input = double, double + * Output = double + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::Div( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inReal0, +/* Generated */ SubArray^ inReal1, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::Div( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal0, +/* Generated */ cli::array^ inReal1, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode div( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inReal0[], +/* Generated */ double inReal1[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_DIV( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inReal0[], +/* Generated */ const double inReal1[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + int outIdx; + int i; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal0 ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ if( !inReal1 ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Insert TA function code here. */ + + /* Default return values */ + for( i=startIdx, outIdx=0; i <= endIdx; i++, outIdx++ ) + { + outReal[outIdx] = inReal0[i]/inReal1[i]; + } + + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::Div( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal0, +/* Generated */ cli::array^ inReal1, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode div( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inReal0[], +/* Generated */ float inReal1[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_DIV( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inReal0[], +/* Generated */ const float inReal1[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ int outIdx; +/* Generated */ int i; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal0 ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ if( !inReal1 ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ for( i=startIdx, outIdx=0; i <= endIdx; i++, outIdx++ ) +/* Generated */ { +/* Generated */ outReal[outIdx] = inReal0[i]/inReal1[i]; +/* Generated */ } +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_DX.c b/src/ta_func/ta_DX.c new file mode 100644 index 000000000..8c3bb1ffe --- /dev/null +++ b/src/ta_func/ta_DX.c @@ -0,0 +1,692 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * MF Mario Fortier + * AM Adrian Michel + * MIF Mirek Fontan (mira@fontan.cz) + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 010802 MF Template creation. + * 052603 MF Adapt code to compile with .NET Managed C++ + * 082303 MF Fix #792298. Remove rounding. Bug reported by AM. + * 062704 MF Fix #965557. Div by zero bug reported by MIF. + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::DxLookback( int optInTimePeriod ) /* From 2 to 100000 */ +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int dxLookback( int optInTimePeriod ) /* From 2 to 100000 */ +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_DX_Lookback( int optInTimePeriod ) /* From 2 to 100000 */ +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ /* min/max are checked for optInTimePeriod. */ +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 14; +/* Generated */ else if( ((int)optInTimePeriod < 2) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return -1; +/* Generated */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + if( optInTimePeriod > 1 ) + return optInTimePeriod + TA_GLOBALS_UNSTABLE_PERIOD(TA_FUNC_UNST_DX,Dx); + else + return 2; +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_DX - Directional Movement Index + * + * Input = High, Low, Close + * Output = double + * + * Optional Parameters + * ------------------- + * optInTimePeriod:(From 2 to 100000) + * Number of period + * + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::Dx( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inHigh, +/* Generated */ SubArray^ inLow, +/* Generated */ SubArray^ inClose, +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::Dx( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode dx( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inHigh[], +/* Generated */ double inLow[], +/* Generated */ double inClose[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_DX( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inHigh[], +/* Generated */ const double inLow[], +/* Generated */ const double inClose[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + int today, lookbackTotal, outIdx; + double prevHigh, prevLow, prevClose; + double prevMinusDM, prevPlusDM, prevTR; + double tempReal, tempReal2, diffP, diffM; + double minusDI, plusDI; + + int i; + + #define TRUE_RANGE(TH,TL,YC,OUT) {\ + OUT = TH-TL; \ + tempReal2 = std_fabs(TH-YC); \ + if( tempReal2 > OUT ) \ + OUT = tempReal2; \ + tempReal2 = std_fabs(TL-YC); \ + if( tempReal2 > OUT ) \ + OUT = tempReal2; \ + } + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ /* Verify required price component. */ +/* Generated */ if(!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ /* min/max are checked for optInTimePeriod. */ +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 14; +/* Generated */ else if( ((int)optInTimePeriod < 2) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Insert TA function code here. */ + + /* + * The DM1 (one period) is base on the largest part of + * today's range that is outside of yesterdays range. + * + * The following 7 cases explain how the +DM and -DM are + * calculated on one period: + * + * Case 1: Case 2: + * C| A| + * | | C| + * | +DM1 = (C-A) B| | +DM1 = 0 + * | -DM1 = 0 | -DM1 = (B-D) + * A| | D| + * | D| + * B| + * + * Case 3: Case 4: + * C| C| + * | A| | + * | +DM1 = (C-A) | | +DM1 = 0 + * | -DM1 = 0 B| | -DM1 = (B-D) + * A| | | + * | | D| + * B| | + * D| + * + * Case 5: Case 6: + * A| A| C| + * | C| +DM1 = 0 | | +DM1 = 0 + * | | -DM1 = 0 | | -DM1 = 0 + * | D| | | + * B| B| D| + * + * + * Case 7: + * + * C| + * A| | + * | | +DM=0 + * B| | -DM=0 + * D| + * + * In case 3 and 4, the rule is that the smallest delta between + * (C-A) and (B-D) determine which of +DM or -DM is zero. + * + * In case 7, (C-A) and (B-D) are equal, so both +DM and -DM are + * zero. + * + * The rules remain the same when A=B and C=D (when the highs + * equal the lows). + * + * When calculating the DM over a period > 1, the one-period DM + * for the desired period are initialy sum. In other word, + * for a -DM14, sum the -DM1 for the first 14 days (that's + * 13 values because there is no DM for the first day!) + * Subsequent DM are calculated using the Wilder's + * smoothing approach: + * + * Previous -DM14 + * Today's -DM14 = Previous -DM14 - -------------- + Today's -DM1 + * 14 + * + * Calculation of a -DI14 is as follow: + * + * -DM14 + * -DI14 = -------- + * TR14 + * + * Calculation of the TR14 is: + * + * Previous TR14 + * Today's TR14 = Previous TR14 - -------------- + Today's TR1 + * 14 + * + * The first TR14 is the summation of the first 14 TR1. See the + * TA_TRANGE function on how to calculate the true range. + * + * Calculation of the DX14 is: + * + * diffDI = ABS( (-DI14) - (+DI14) ) + * sumDI = (-DI14) + (+DI14) + * + * DX14 = 100 * (diffDI / sumDI) + * + * Reference: + * New Concepts In Technical Trading Systems, J. Welles Wilder Jr + */ + + /* Original implementation from Wilder's book was doing some integer + * rounding in its calculations. + * + * This was understandable in the context that at the time the book + * was written, most user were doing the calculation by hand. + * + * For a computer, rounding is unnecessary (and even problematic when inputs + * are close to 1). + * + * TA-Lib does not do the rounding. Still, if you want to reproduce Wilder's examples, + * you can comment out the following #undef/#define and rebuild the library. + */ + #undef round_pos + #define round_pos(x) (x) + + if( optInTimePeriod > 1 ) + lookbackTotal = optInTimePeriod + TA_GLOBALS_UNSTABLE_PERIOD(TA_FUNC_UNST_DX,Dx); + else + lookbackTotal = 2; + + /* Adjust startIdx to account for the lookback period. */ + if( startIdx < lookbackTotal ) + startIdx = lookbackTotal; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + + /* Indicate where the next output should be put + * in the outReal. + */ + outIdx = 0; + + /* Process the initial DM and TR */ + VALUE_HANDLE_DEREF(outBegIdx) = today = startIdx; + + prevMinusDM = 0.0; + prevPlusDM = 0.0; + prevTR = 0.0; + today = startIdx - lookbackTotal; + prevHigh = inHigh[today]; + prevLow = inLow[today]; + prevClose = inClose[today]; + i = optInTimePeriod-1; + while( i-- > 0 ) + { + today++; + tempReal = inHigh[today]; + diffP = tempReal-prevHigh; /* Plus Delta */ + prevHigh = tempReal; + + tempReal = inLow[today]; + diffM = prevLow-tempReal; /* Minus Delta */ + prevLow = tempReal; + + if( (diffM > 0) && (diffP < diffM) ) + { + /* Case 2 and 4: +DM=0,-DM=diffM */ + prevMinusDM += diffM; + } + else if( (diffP > 0) && (diffP > diffM) ) + { + /* Case 1 and 3: +DM=diffP,-DM=0 */ + prevPlusDM += diffP; + } + + TRUE_RANGE(prevHigh,prevLow,prevClose,tempReal); + prevTR += tempReal; + prevClose = inClose[today]; + } + + /* Skip the unstable period. Note that this loop must be executed + * at least ONCE to calculate the first DI. + */ + i = TA_GLOBALS_UNSTABLE_PERIOD(TA_FUNC_UNST_DX,Dx) + 1; + while( i-- != 0 ) + { + /* Calculate the prevMinusDM and prevPlusDM */ + today++; + tempReal = inHigh[today]; + diffP = tempReal-prevHigh; /* Plus Delta */ + prevHigh = tempReal; + + tempReal = inLow[today]; + diffM = prevLow-tempReal; /* Minus Delta */ + prevLow = tempReal; + + prevMinusDM -= prevMinusDM/optInTimePeriod; + prevPlusDM -= prevPlusDM/optInTimePeriod; + + if( (diffM > 0) && (diffP < diffM) ) + { + /* Case 2 and 4: +DM=0,-DM=diffM */ + prevMinusDM += diffM; + } + else if( (diffP > 0) && (diffP > diffM) ) + { + /* Case 1 and 3: +DM=diffP,-DM=0 */ + prevPlusDM += diffP; + } + + /* Calculate the prevTR */ + TRUE_RANGE(prevHigh,prevLow,prevClose,tempReal); + prevTR = prevTR - (prevTR/optInTimePeriod) + tempReal; + prevClose = inClose[today]; + } + + /* Write the first DX output */ + if( !TA_IS_ZERO(prevTR) ) + { + minusDI = round_pos(100.0*(prevMinusDM/prevTR)); + plusDI = round_pos(100.0*(prevPlusDM/prevTR)); + tempReal = minusDI+plusDI; + if( !TA_IS_ZERO(tempReal) ) + outReal[0] = round_pos( 100.0 * (std_fabs(minusDI-plusDI)/tempReal) ); + else + outReal[0] = 0.0; + } + else + outReal[0] = 0.0; + outIdx = 1; + + while( today < endIdx ) + { + /* Calculate the prevMinusDM and prevPlusDM */ + today++; + tempReal = inHigh[today]; + diffP = tempReal-prevHigh; /* Plus Delta */ + prevHigh = tempReal; + + tempReal = inLow[today]; + diffM = prevLow-tempReal; /* Minus Delta */ + prevLow = tempReal; + + prevMinusDM -= prevMinusDM/optInTimePeriod; + prevPlusDM -= prevPlusDM/optInTimePeriod; + + if( (diffM > 0) && (diffP < diffM) ) + { + /* Case 2 and 4: +DM=0,-DM=diffM */ + prevMinusDM += diffM; + } + else if( (diffP > 0) && (diffP > diffM) ) + { + /* Case 1 and 3: +DM=diffP,-DM=0 */ + prevPlusDM += diffP; + } + + /* Calculate the prevTR */ + TRUE_RANGE(prevHigh,prevLow,prevClose,tempReal); + prevTR = prevTR - (prevTR/optInTimePeriod) + tempReal; + prevClose = inClose[today]; + + /* Calculate the DX. The value is rounded (see Wilder book). */ + if( !TA_IS_ZERO(prevTR)) + { + minusDI = round_pos(100.0*(prevMinusDM/prevTR)); + plusDI = round_pos(100.0*(prevPlusDM/prevTR)); + /* This loop is just to accumulate the initial DX */ + tempReal = minusDI+plusDI; + if( !TA_IS_ZERO(tempReal)) + outReal[outIdx] = round_pos( 100.0 * (std_fabs(minusDI-plusDI)/tempReal) ); + else + outReal[outIdx] = outReal[outIdx-1]; + } + else + outReal[outIdx] = outReal[outIdx-1]; + outIdx++; + } + + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::Dx( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode dx( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inHigh[], +/* Generated */ float inLow[], +/* Generated */ float inClose[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_DX( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inHigh[], +/* Generated */ const float inLow[], +/* Generated */ const float inClose[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ int today, lookbackTotal, outIdx; +/* Generated */ double prevHigh, prevLow, prevClose; +/* Generated */ double prevMinusDM, prevPlusDM, prevTR; +/* Generated */ double tempReal, tempReal2, diffP, diffM; +/* Generated */ double minusDI, plusDI; +/* Generated */ int i; +/* Generated */ #define TRUE_RANGE(TH,TL,YC,OUT) {\ +/* Generated */ OUT = TH-TL; \ +/* Generated */ tempReal2 = std_fabs(TH-YC); \ +/* Generated */ if( tempReal2 > OUT ) \ +/* Generated */ OUT = tempReal2; \ +/* Generated */ tempReal2 = std_fabs(TL-YC); \ +/* Generated */ if( tempReal2 > OUT ) \ +/* Generated */ OUT = tempReal2; \ +/* Generated */ } +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if(!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 14; +/* Generated */ else if( ((int)optInTimePeriod < 2) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ #undef round_pos +/* Generated */ #define round_pos(x) (x) +/* Generated */ if( optInTimePeriod > 1 ) +/* Generated */ lookbackTotal = optInTimePeriod + TA_GLOBALS_UNSTABLE_PERIOD(TA_FUNC_UNST_DX,Dx); +/* Generated */ else +/* Generated */ lookbackTotal = 2; +/* Generated */ if( startIdx < lookbackTotal ) +/* Generated */ startIdx = lookbackTotal; +/* Generated */ if( startIdx > endIdx ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ outIdx = 0; +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = today = startIdx; +/* Generated */ prevMinusDM = 0.0; +/* Generated */ prevPlusDM = 0.0; +/* Generated */ prevTR = 0.0; +/* Generated */ today = startIdx - lookbackTotal; +/* Generated */ prevHigh = inHigh[today]; +/* Generated */ prevLow = inLow[today]; +/* Generated */ prevClose = inClose[today]; +/* Generated */ i = optInTimePeriod-1; +/* Generated */ while( i-- > 0 ) +/* Generated */ { +/* Generated */ today++; +/* Generated */ tempReal = inHigh[today]; +/* Generated */ diffP = tempReal-prevHigh; +/* Generated */ prevHigh = tempReal; +/* Generated */ tempReal = inLow[today]; +/* Generated */ diffM = prevLow-tempReal; +/* Generated */ prevLow = tempReal; +/* Generated */ if( (diffM > 0) && (diffP < diffM) ) +/* Generated */ { +/* Generated */ prevMinusDM += diffM; +/* Generated */ } +/* Generated */ else if( (diffP > 0) && (diffP > diffM) ) +/* Generated */ { +/* Generated */ prevPlusDM += diffP; +/* Generated */ } +/* Generated */ TRUE_RANGE(prevHigh,prevLow,prevClose,tempReal); +/* Generated */ prevTR += tempReal; +/* Generated */ prevClose = inClose[today]; +/* Generated */ } +/* Generated */ i = TA_GLOBALS_UNSTABLE_PERIOD(TA_FUNC_UNST_DX,Dx) + 1; +/* Generated */ while( i-- != 0 ) +/* Generated */ { +/* Generated */ today++; +/* Generated */ tempReal = inHigh[today]; +/* Generated */ diffP = tempReal-prevHigh; +/* Generated */ prevHigh = tempReal; +/* Generated */ tempReal = inLow[today]; +/* Generated */ diffM = prevLow-tempReal; +/* Generated */ prevLow = tempReal; +/* Generated */ prevMinusDM -= prevMinusDM/optInTimePeriod; +/* Generated */ prevPlusDM -= prevPlusDM/optInTimePeriod; +/* Generated */ if( (diffM > 0) && (diffP < diffM) ) +/* Generated */ { +/* Generated */ prevMinusDM += diffM; +/* Generated */ } +/* Generated */ else if( (diffP > 0) && (diffP > diffM) ) +/* Generated */ { +/* Generated */ prevPlusDM += diffP; +/* Generated */ } +/* Generated */ TRUE_RANGE(prevHigh,prevLow,prevClose,tempReal); +/* Generated */ prevTR = prevTR - (prevTR/optInTimePeriod) + tempReal; +/* Generated */ prevClose = inClose[today]; +/* Generated */ } +/* Generated */ if( !TA_IS_ZERO(prevTR) ) +/* Generated */ { +/* Generated */ minusDI = round_pos(100.0*(prevMinusDM/prevTR)); +/* Generated */ plusDI = round_pos(100.0*(prevPlusDM/prevTR)); +/* Generated */ tempReal = minusDI+plusDI; +/* Generated */ if( !TA_IS_ZERO(tempReal) ) +/* Generated */ outReal[0] = round_pos( 100.0 * (std_fabs(minusDI-plusDI)/tempReal) ); +/* Generated */ else +/* Generated */ outReal[0] = 0.0; +/* Generated */ } +/* Generated */ else +/* Generated */ outReal[0] = 0.0; +/* Generated */ outIdx = 1; +/* Generated */ while( today < endIdx ) +/* Generated */ { +/* Generated */ today++; +/* Generated */ tempReal = inHigh[today]; +/* Generated */ diffP = tempReal-prevHigh; +/* Generated */ prevHigh = tempReal; +/* Generated */ tempReal = inLow[today]; +/* Generated */ diffM = prevLow-tempReal; +/* Generated */ prevLow = tempReal; +/* Generated */ prevMinusDM -= prevMinusDM/optInTimePeriod; +/* Generated */ prevPlusDM -= prevPlusDM/optInTimePeriod; +/* Generated */ if( (diffM > 0) && (diffP < diffM) ) +/* Generated */ { +/* Generated */ prevMinusDM += diffM; +/* Generated */ } +/* Generated */ else if( (diffP > 0) && (diffP > diffM) ) +/* Generated */ { +/* Generated */ prevPlusDM += diffP; +/* Generated */ } +/* Generated */ TRUE_RANGE(prevHigh,prevLow,prevClose,tempReal); +/* Generated */ prevTR = prevTR - (prevTR/optInTimePeriod) + tempReal; +/* Generated */ prevClose = inClose[today]; +/* Generated */ if( !TA_IS_ZERO(prevTR)) +/* Generated */ { +/* Generated */ minusDI = round_pos(100.0*(prevMinusDM/prevTR)); +/* Generated */ plusDI = round_pos(100.0*(prevPlusDM/prevTR)); +/* Generated */ tempReal = minusDI+plusDI; +/* Generated */ if( !TA_IS_ZERO(tempReal)) +/* Generated */ outReal[outIdx] = round_pos( 100.0 * (std_fabs(minusDI-plusDI)/tempReal) ); +/* Generated */ else +/* Generated */ outReal[outIdx] = outReal[outIdx-1]; +/* Generated */ } +/* Generated */ else +/* Generated */ outReal[outIdx] = outReal[outIdx-1]; +/* Generated */ outIdx++; +/* Generated */ } +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_EMA.c b/src/ta_func/ta_EMA.c new file mode 100644 index 000000000..c528b88e0 --- /dev/null +++ b/src/ta_func/ta_EMA.c @@ -0,0 +1,493 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * MF Mario Fortier + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 112400 MF Template creation. + * 052603 MF Adapt code to compile with .NET Managed C++ + * + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::EmaLookback( int optInTimePeriod ) /* From 2 to 100000 */ +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int emaLookback( int optInTimePeriod ) /* From 2 to 100000 */ +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_EMA_Lookback( int optInTimePeriod ) /* From 2 to 100000 */ +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ /* min/max are checked for optInTimePeriod. */ +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 30; +/* Generated */ else if( ((int)optInTimePeriod < 2) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return -1; +/* Generated */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + return optInTimePeriod - 1 + TA_GLOBALS_UNSTABLE_PERIOD(TA_FUNC_UNST_EMA,Ema); +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_EMA - Exponential Moving Average + * + * Input = double + * Output = double + * + * Optional Parameters + * ------------------- + * optInTimePeriod:(From 2 to 100000) + * Number of period + * + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::Ema( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inReal, +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::Ema( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode ema( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inReal[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_EMA( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inReal[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* Insert local variables here. */ + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ /* min/max are checked for optInTimePeriod. */ +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 30; +/* Generated */ else if( ((int)optInTimePeriod < 2) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Insert TA function code here. */ + + /* Simply call the internal implementation of the EMA. */ + return FUNCTION_CALL(INT_EMA)( startIdx, endIdx, inReal, + optInTimePeriod, + PER_TO_K( optInTimePeriod ), + outBegIdx, outNBElement, outReal ); +} + +/* Internal implementation can be called from any other TA function. + * + * Faster because there is no parameter check, but it is a double + * edge sword. + * + * The optInK_1 and optInTimePeriod are usually tightly coupled: + * + * optInK_1 = 2 / (optInTimePeriod + 1). + * + * These values are going to be related by this equation 99.9% of the + * time... but there is some exception, this is why both must be provided. + * + * The macro PER_TO_K is equivalent to the above formula. + */ +#if defined( _MANAGED ) && defined( USE_SUBARRAY ) && !defined(USE_SINGLE_PRECISION_INPUT) + enum class Core::RetCode Core::TA_INT_EMA( int startIdx, + int endIdx, + SubArray^ inReal, + int optInTimePeriod, + double optInK_1, + [Out]int% outBegIdx, + [Out]int% outNBElement, + cli::array^ outReal ) +#elif defined( _MANAGED ) + enum class Core::RetCode Core::TA_INT_EMA( int startIdx, + int endIdx, + cli::array^ inReal, + int optInTimePeriod, + double optInK_1, + [Out]int% outBegIdx, + [Out]int% outNBElement, + cli::array^ outReal ) +#elif defined( _JAVA ) +public RetCode TA_INT_EMA( int startIdx, + int endIdx, + INPUT_TYPE []inReal, + int optInTimePeriod, /* From 1 to TA_INTEGER_MAX */ + double optInK_1, /* Ratio for calculation of EMA. */ + MInteger outBegIdx, + MInteger outNBElement, + double []outReal ) + +#else +TA_RetCode TA_PREFIX(INT_EMA)( int startIdx, + int endIdx, + const INPUT_TYPE *inReal, + int optInTimePeriod, /* From 1 to TA_INTEGER_MAX */ + double optInK_1, /* Ratio for calculation of EMA. */ + int *outBegIdx, + int *outNBElement, + double *outReal ) +#endif +{ + double tempReal, prevMA; + int i, today, outIdx, lookbackTotal; + + /* Ususally, optInK_1 = 2 / (optInTimePeriod + 1), + * but sometime there is exception. This + * is why both value are parameters. + */ + + /* Identify the minimum number of price bar needed + * to calculate at least one output. + */ + lookbackTotal = LOOKBACK_CALL(EMA)( optInTimePeriod ); + + /* Move up the start index if there is not + * enough initial data. + */ + if( startIdx < lookbackTotal ) + startIdx = lookbackTotal; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + + /* Do the EMA calculation using tight loops. */ + + /* The first EMA is calculated differently. It + * then become the seed for subsequent EMA. + * + * The algorithm for this seed vary widely. + * Only 3 are implemented here: + * + * TA_MA_CLASSIC: + * Use a simple MA of the first 'period'. + * This is the approach most widely documented. + * + * TA_MA_METASTOCK: + * Use first price bar value as a seed + * from the begining of all the available + * data. + * + * TA_MA_TRADESTATION: + * Use 4th price bar as a seed, except when + * period is 1 who use 2th price bar or something + * like that... (not an obvious one...). + */ + if( TA_GLOBALS_COMPATIBILITY == ENUM_VALUE(Compatibility,TA_COMPATIBILITY_DEFAULT,Default) ) + { + today = startIdx-lookbackTotal; + i = optInTimePeriod; + tempReal = 0.0; + while( i-- > 0 ) + tempReal += inReal[today++]; + + prevMA = tempReal / optInTimePeriod; + } + else + { + prevMA = inReal[0]; + today = 1; + + /* !!! Tradestation not supported yet. + case TA_MA_TRADESTATION: + prevMA = inReal[startIdx-1]; + if( optInTimePeriod == 1 ) + VALUE_HANDLE_DEREF(outBegIdx)_0 = 1; + else + VALUE_HANDLE_DEREF(outBegIdx)_0 = 3; + */ + } + + /* At this point, prevMA is the first EMA (the seed for + * the rest). + * 'today' keep track of where the processing is within the + * input. + */ + + /* Skip the unstable period. Do the processing + * but do not write it in the output. + */ + while( today <= startIdx ) + prevMA = ((inReal[today++]-prevMA)*optInK_1) + prevMA; + + /* Write the first value. */ + outReal[0] = prevMA; + outIdx = 1; + + /* Calculate the remaining range. */ + while( today <= endIdx ) + { + prevMA = ((inReal[today++]-prevMA)*optInK_1) + prevMA; + outReal[outIdx++] = prevMA; + } + + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::Ema( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode ema( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inReal[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_EMA( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inReal[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 30; +/* Generated */ else if( ((int)optInTimePeriod < 2) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ return FUNCTION_CALL(INT_EMA)( startIdx, endIdx, inReal, +/* Generated */ optInTimePeriod, +/* Generated */ PER_TO_K( optInTimePeriod ), +/* Generated */ outBegIdx, outNBElement, outReal ); +/* Generated */ } +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) && !defined(USE_SINGLE_PRECISION_INPUT) +/* Generated */ enum class Core::RetCode Core::TA_INT_EMA( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inReal, +/* Generated */ int optInTimePeriod, +/* Generated */ double optInK_1, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::TA_INT_EMA( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ int optInTimePeriod, +/* Generated */ double optInK_1, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode TA_INT_EMA( int startIdx, +/* Generated */ int endIdx, +/* Generated */ INPUT_TYPE []inReal, +/* Generated */ int optInTimePeriod, +/* Generated */ double optInK_1, +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double []outReal ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_PREFIX(INT_EMA)( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const INPUT_TYPE *inReal, +/* Generated */ int optInTimePeriod, +/* Generated */ double optInK_1, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double *outReal ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ double tempReal, prevMA; +/* Generated */ int i, today, outIdx, lookbackTotal; +/* Generated */ lookbackTotal = LOOKBACK_CALL(EMA)( optInTimePeriod ); +/* Generated */ if( startIdx < lookbackTotal ) +/* Generated */ startIdx = lookbackTotal; +/* Generated */ if( startIdx > endIdx ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ if( TA_GLOBALS_COMPATIBILITY == ENUM_VALUE(Compatibility,TA_COMPATIBILITY_DEFAULT,Default) ) +/* Generated */ { +/* Generated */ today = startIdx-lookbackTotal; +/* Generated */ i = optInTimePeriod; +/* Generated */ tempReal = 0.0; +/* Generated */ while( i-- > 0 ) +/* Generated */ tempReal += inReal[today++]; +/* Generated */ prevMA = tempReal / optInTimePeriod; +/* Generated */ } +/* Generated */ else +/* Generated */ { +/* Generated */ prevMA = inReal[0]; +/* Generated */ today = 1; +/* Generated */ } +/* Generated */ while( today <= startIdx ) +/* Generated */ prevMA = ((inReal[today++]-prevMA)*optInK_1) + prevMA; +/* Generated */ outReal[0] = prevMA; +/* Generated */ outIdx = 1; +/* Generated */ while( today <= endIdx ) +/* Generated */ { +/* Generated */ prevMA = ((inReal[today++]-prevMA)*optInK_1) + prevMA; +/* Generated */ outReal[outIdx++] = prevMA; +/* Generated */ } +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_EXP.c b/src/ta_func/ta_EXP.c new file mode 100644 index 000000000..3d8c4e51a --- /dev/null +++ b/src/ta_func/ta_EXP.c @@ -0,0 +1,241 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * MF Mario Fortier + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 090807 MF Initial Version + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::ExpLookback( void ) +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int expLookback( ) +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_EXP_Lookback( void ) +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ /* No parameters to validate. */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + + return 0; +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_EXP - Vector Arithmetic Exp + * + * Input = double + * Output = double + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::Exp( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inReal, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::Exp( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode exp( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inReal[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_EXP( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inReal[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + int outIdx; + int i; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Insert TA function code here. */ + + /* Default return values */ + for( i=startIdx, outIdx=0; i <= endIdx; i++, outIdx++ ) + { + outReal[outIdx] = std_exp(inReal[i]); + } + + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::Exp( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode exp( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inReal[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_EXP( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inReal[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ int outIdx; +/* Generated */ int i; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ for( i=startIdx, outIdx=0; i <= endIdx; i++, outIdx++ ) +/* Generated */ { +/* Generated */ outReal[outIdx] = std_exp(inReal[i]); +/* Generated */ } +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_FLOOR.c b/src/ta_func/ta_FLOOR.c new file mode 100644 index 000000000..d90110940 --- /dev/null +++ b/src/ta_func/ta_FLOOR.c @@ -0,0 +1,241 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * MF Mario Fortier + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 090807 MF Initial Version + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::FloorLookback( void ) +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int floorLookback( ) +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_FLOOR_Lookback( void ) +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ /* No parameters to validate. */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + + return 0; +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_FLOOR - Vector Floor + * + * Input = double + * Output = double + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::Floor( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inReal, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::Floor( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode floor( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inReal[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_FLOOR( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inReal[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + int outIdx; + int i; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Insert TA function code here. */ + + /* Default return values */ + for( i=startIdx, outIdx=0; i <= endIdx; i++, outIdx++ ) + { + outReal[outIdx] = std_floor(inReal[i]); + } + + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::Floor( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode floor( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inReal[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_FLOOR( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inReal[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ int outIdx; +/* Generated */ int i; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ for( i=startIdx, outIdx=0; i <= endIdx; i++, outIdx++ ) +/* Generated */ { +/* Generated */ outReal[outIdx] = std_floor(inReal[i]); +/* Generated */ } +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_HT_DCPERIOD.c b/src/ta_func/ta_HT_DCPERIOD.c new file mode 100644 index 000000000..7bd66f128 --- /dev/null +++ b/src/ta_func/ta_HT_DCPERIOD.c @@ -0,0 +1,561 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * MF Mario Fortier + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 120802 MF Template creation. + * 052603 MF Adapt code to compile with .NET Managed C++ + * + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::HtDcPeriodLookback( void ) +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int htDcPeriodLookback( ) +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_HT_DCPERIOD_Lookback( void ) +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ /* No parameters to validate. */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + + /* See TA_MAMA_Lookback for an explanation of these */ + return 32 + TA_GLOBALS_UNSTABLE_PERIOD(TA_FUNC_UNST_HT_DCPERIOD,HtDcPeriod); +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_HT_DCPERIOD - Hilbert Transform - Dominant Cycle Period + * + * Input = double + * Output = double + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::HtDcPeriod( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inReal, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::HtDcPeriod( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode htDcPeriod( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inReal[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_HT_DCPERIOD( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inReal[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + + int outIdx, i; + int lookbackTotal, today; + double tempReal, tempReal2; + + double adjustedPrevPeriod, period; + + /* Variable used for the price smoother (a weighted moving average). */ + int trailingWMAIdx; + double periodWMASum, periodWMASub, trailingWMAValue; + double smoothedValue; + + /* Variables used for the Hilbert Transormation */ + CONSTANT_DOUBLE(a) = 0.0962; + CONSTANT_DOUBLE(b) = 0.5769; + double hilbertTempReal; + int hilbertIdx; + + HILBERT_VARIABLES( detrender ); + HILBERT_VARIABLES( Q1 ); + HILBERT_VARIABLES( jI ); + HILBERT_VARIABLES( jQ ); + + double Q2, I2, prevQ2, prevI2, Re, Im; + + double I1ForOddPrev2, I1ForOddPrev3; + double I1ForEvenPrev2, I1ForEvenPrev3; + + double rad2Deg; + + double todayValue, smoothPeriod; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Insert TA function code here. */ + + /* Constant */ + rad2Deg = 180.0 / (4.0 * std_atan(1)); + + /* Identify the minimum number of price bar needed + * to calculate at least one output. + */ + lookbackTotal = 32 + TA_GLOBALS_UNSTABLE_PERIOD(TA_FUNC_UNST_HT_DCPERIOD,HtDcPeriod); + + /* Move up the start index if there is not + * enough initial data. + */ + if( startIdx < lookbackTotal ) + startIdx = lookbackTotal; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + + /* Initialize the price smoother, which is simply a weighted + * moving average of the price. + * To understand this algorithm, I strongly suggest to understand + * first how TA_WMA is done. + */ + trailingWMAIdx = startIdx - lookbackTotal; + today = trailingWMAIdx; + + /* Initialization is same as WMA, except loop is unrolled + * for speed optimization. + */ + tempReal = inReal[today++]; + periodWMASub = tempReal; + periodWMASum = tempReal; + tempReal = inReal[today++]; + periodWMASub += tempReal; + periodWMASum += tempReal*2.0; + tempReal = inReal[today++]; + periodWMASub += tempReal; + periodWMASum += tempReal*3.0; + + trailingWMAValue = 0.0; + + /* Subsequent WMA value are evaluated by using + * the DO_PRICE_WMA macro. + */ + #define DO_PRICE_WMA(varNewPrice,varToStoreSmoothedValue) { \ + periodWMASub += varNewPrice; \ + periodWMASub -= trailingWMAValue; \ + periodWMASum += varNewPrice*4.0; \ + trailingWMAValue = inReal[trailingWMAIdx++]; \ + varToStoreSmoothedValue = periodWMASum*0.1; \ + periodWMASum -= periodWMASub; \ + } + + i = 9; + do + { + tempReal = inReal[today++]; + DO_PRICE_WMA(tempReal,smoothedValue); + } while( --i != 0); + + /* Initialize the circular buffers used by the hilbert + * transform logic. + * A buffer is used for odd day and another for even days. + * This minimize the number of memory access and floating point + * operations needed (note also that by using static circular buffer, + * no large dynamic memory allocation is needed for storing + * intermediate calculation!). + */ + hilbertIdx = 0; + + INIT_HILBERT_VARIABLES(detrender); + INIT_HILBERT_VARIABLES(Q1); + INIT_HILBERT_VARIABLES(jI); + INIT_HILBERT_VARIABLES(jQ); + + period = 0.0; + outIdx = 0; + + prevI2 = prevQ2 = 0.0; + Re = Im = 0.0; + I1ForOddPrev3 = I1ForEvenPrev3 = 0.0; + I1ForOddPrev2 = I1ForEvenPrev2 = 0.0; + smoothPeriod = 0.0; + + /* The code is speed optimized and is most likely very + * hard to follow if you do not already know well the + * original algorithm. + * To understadn better, it is strongly suggested to look + * first at the Excel implementation in "test_MAMA.xls" included + * in this package. + */ + while( today <= endIdx ) + { + adjustedPrevPeriod = (0.075*period)+0.54; + + todayValue = inReal[today]; + DO_PRICE_WMA(todayValue,smoothedValue); + + if( (today%2) == 0 ) + { + /* Do the Hilbert Transforms for even price bar */ + DO_HILBERT_EVEN(detrender,smoothedValue); + DO_HILBERT_EVEN(Q1,detrender); + DO_HILBERT_EVEN(jI,I1ForEvenPrev3); + DO_HILBERT_EVEN(jQ,Q1); + if( ++hilbertIdx == 3 ) + hilbertIdx = 0; + + Q2 = (0.2*(Q1 + jI)) + (0.8*prevQ2); + I2 = (0.2*(I1ForEvenPrev3 - jQ)) + (0.8*prevI2); + + /* The variable I1 is the detrender delayed for + * 3 price bars. + * + * Save the current detrender value for being + * used by the "odd" logic later. + */ + I1ForOddPrev3 = I1ForOddPrev2; + I1ForOddPrev2 = detrender; + } + else + { + /* Do the Hilbert Transforms for odd price bar */ + DO_HILBERT_ODD(detrender,smoothedValue); + DO_HILBERT_ODD(Q1,detrender); + DO_HILBERT_ODD(jI,I1ForOddPrev3); + DO_HILBERT_ODD(jQ,Q1); + + Q2 = (0.2*(Q1 + jI)) + (0.8*prevQ2); + I2 = (0.2*(I1ForOddPrev3 - jQ)) + (0.8*prevI2); + + /* The varaiable I1 is the detrender delayed for + * 3 price bars. + * + * Save the current detrender value for being + * used by the "even" logic later. + */ + I1ForEvenPrev3 = I1ForEvenPrev2; + I1ForEvenPrev2 = detrender; + } + + /* Adjust the period for next price bar */ + Re = (0.2*((I2*prevI2)+(Q2*prevQ2)))+(0.8*Re); + Im = (0.2*((I2*prevQ2)-(Q2*prevI2)))+(0.8*Im); + prevQ2 = Q2; + prevI2 = I2; + tempReal = period; + if( (Im != 0.0) && (Re != 0.0) ) + period = 360.0 / (std_atan(Im/Re)*rad2Deg); + tempReal2 = 1.5*tempReal; + if( period > tempReal2) + period = tempReal2; + tempReal2 = 0.67*tempReal; + if( period < tempReal2 ) + period = tempReal2; + if( period < 6 ) + period = 6; + else if( period > 50 ) + period = 50; + period = (0.2*period) + (0.8 * tempReal); + + smoothPeriod = (0.33*period)+(0.67*smoothPeriod); + + if( today >= startIdx ) + { + outReal[outIdx++] = smoothPeriod; + } + + /* Ooof... let's do the next price bar now! */ + today++; + } + + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::HtDcPeriod( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode htDcPeriod( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inReal[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_HT_DCPERIOD( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inReal[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ int outIdx, i; +/* Generated */ int lookbackTotal, today; +/* Generated */ double tempReal, tempReal2; +/* Generated */ double adjustedPrevPeriod, period; +/* Generated */ int trailingWMAIdx; +/* Generated */ double periodWMASum, periodWMASub, trailingWMAValue; +/* Generated */ double smoothedValue; +/* Generated */ CONSTANT_DOUBLE(a) = 0.0962; +/* Generated */ CONSTANT_DOUBLE(b) = 0.5769; +/* Generated */ double hilbertTempReal; +/* Generated */ int hilbertIdx; +/* Generated */ HILBERT_VARIABLES( detrender ); +/* Generated */ HILBERT_VARIABLES( Q1 ); +/* Generated */ HILBERT_VARIABLES( jI ); +/* Generated */ HILBERT_VARIABLES( jQ ); +/* Generated */ double Q2, I2, prevQ2, prevI2, Re, Im; +/* Generated */ double I1ForOddPrev2, I1ForOddPrev3; +/* Generated */ double I1ForEvenPrev2, I1ForEvenPrev3; +/* Generated */ double rad2Deg; +/* Generated */ double todayValue, smoothPeriod; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ rad2Deg = 180.0 / (4.0 * std_atan(1)); +/* Generated */ lookbackTotal = 32 + TA_GLOBALS_UNSTABLE_PERIOD(TA_FUNC_UNST_HT_DCPERIOD,HtDcPeriod); +/* Generated */ if( startIdx < lookbackTotal ) +/* Generated */ startIdx = lookbackTotal; +/* Generated */ if( startIdx > endIdx ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ trailingWMAIdx = startIdx - lookbackTotal; +/* Generated */ today = trailingWMAIdx; +/* Generated */ tempReal = inReal[today++]; +/* Generated */ periodWMASub = tempReal; +/* Generated */ periodWMASum = tempReal; +/* Generated */ tempReal = inReal[today++]; +/* Generated */ periodWMASub += tempReal; +/* Generated */ periodWMASum += tempReal*2.0; +/* Generated */ tempReal = inReal[today++]; +/* Generated */ periodWMASub += tempReal; +/* Generated */ periodWMASum += tempReal*3.0; +/* Generated */ trailingWMAValue = 0.0; +/* Generated */ #define DO_PRICE_WMA(varNewPrice,varToStoreSmoothedValue) { \ +/* Generated */ periodWMASub += varNewPrice; \ +/* Generated */ periodWMASub -= trailingWMAValue; \ +/* Generated */ periodWMASum += varNewPrice*4.0; \ +/* Generated */ trailingWMAValue = inReal[trailingWMAIdx++]; \ +/* Generated */ varToStoreSmoothedValue = periodWMASum*0.1; \ +/* Generated */ periodWMASum -= periodWMASub; \ +/* Generated */ } +/* Generated */ i = 9; +/* Generated */ do +/* Generated */ { +/* Generated */ tempReal = inReal[today++]; +/* Generated */ DO_PRICE_WMA(tempReal,smoothedValue); +/* Generated */ } while( --i != 0); +/* Generated */ hilbertIdx = 0; +/* Generated */ INIT_HILBERT_VARIABLES(detrender); +/* Generated */ INIT_HILBERT_VARIABLES(Q1); +/* Generated */ INIT_HILBERT_VARIABLES(jI); +/* Generated */ INIT_HILBERT_VARIABLES(jQ); +/* Generated */ period = 0.0; +/* Generated */ outIdx = 0; +/* Generated */ prevI2 = prevQ2 = 0.0; +/* Generated */ Re = Im = 0.0; +/* Generated */ I1ForOddPrev3 = I1ForEvenPrev3 = 0.0; +/* Generated */ I1ForOddPrev2 = I1ForEvenPrev2 = 0.0; +/* Generated */ smoothPeriod = 0.0; +/* Generated */ while( today <= endIdx ) +/* Generated */ { +/* Generated */ adjustedPrevPeriod = (0.075*period)+0.54; +/* Generated */ todayValue = inReal[today]; +/* Generated */ DO_PRICE_WMA(todayValue,smoothedValue); +/* Generated */ if( (today%2) == 0 ) +/* Generated */ { +/* Generated */ DO_HILBERT_EVEN(detrender,smoothedValue); +/* Generated */ DO_HILBERT_EVEN(Q1,detrender); +/* Generated */ DO_HILBERT_EVEN(jI,I1ForEvenPrev3); +/* Generated */ DO_HILBERT_EVEN(jQ,Q1); +/* Generated */ if( ++hilbertIdx == 3 ) +/* Generated */ hilbertIdx = 0; +/* Generated */ Q2 = (0.2*(Q1 + jI)) + (0.8*prevQ2); +/* Generated */ I2 = (0.2*(I1ForEvenPrev3 - jQ)) + (0.8*prevI2); +/* Generated */ I1ForOddPrev3 = I1ForOddPrev2; +/* Generated */ I1ForOddPrev2 = detrender; +/* Generated */ } +/* Generated */ else +/* Generated */ { +/* Generated */ DO_HILBERT_ODD(detrender,smoothedValue); +/* Generated */ DO_HILBERT_ODD(Q1,detrender); +/* Generated */ DO_HILBERT_ODD(jI,I1ForOddPrev3); +/* Generated */ DO_HILBERT_ODD(jQ,Q1); +/* Generated */ Q2 = (0.2*(Q1 + jI)) + (0.8*prevQ2); +/* Generated */ I2 = (0.2*(I1ForOddPrev3 - jQ)) + (0.8*prevI2); +/* Generated */ I1ForEvenPrev3 = I1ForEvenPrev2; +/* Generated */ I1ForEvenPrev2 = detrender; +/* Generated */ } +/* Generated */ Re = (0.2*((I2*prevI2)+(Q2*prevQ2)))+(0.8*Re); +/* Generated */ Im = (0.2*((I2*prevQ2)-(Q2*prevI2)))+(0.8*Im); +/* Generated */ prevQ2 = Q2; +/* Generated */ prevI2 = I2; +/* Generated */ tempReal = period; +/* Generated */ if( (Im != 0.0) && (Re != 0.0) ) +/* Generated */ period = 360.0 / (std_atan(Im/Re)*rad2Deg); +/* Generated */ tempReal2 = 1.5*tempReal; +/* Generated */ if( period > tempReal2) +/* Generated */ period = tempReal2; +/* Generated */ tempReal2 = 0.67*tempReal; +/* Generated */ if( period < tempReal2 ) +/* Generated */ period = tempReal2; +/* Generated */ if( period < 6 ) +/* Generated */ period = 6; +/* Generated */ else if( period > 50 ) +/* Generated */ period = 50; +/* Generated */ period = (0.2*period) + (0.8 * tempReal); +/* Generated */ smoothPeriod = (0.33*period)+(0.67*smoothPeriod); +/* Generated */ if( today >= startIdx ) +/* Generated */ { +/* Generated */ outReal[outIdx++] = smoothPeriod; +/* Generated */ } +/* Generated */ today++; +/* Generated */ } +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_HT_DCPHASE.c b/src/ta_func/ta_HT_DCPHASE.c new file mode 100644 index 000000000..647833203 --- /dev/null +++ b/src/ta_func/ta_HT_DCPHASE.c @@ -0,0 +1,679 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * MF Mario Fortier + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 120802 MF Template creation. + * 052603 MF Adapt code to compile with .NET Managed C++ + * + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::HtDcPhaseLookback( void ) +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int htDcPhaseLookback( ) +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_HT_DCPHASE_Lookback( void ) +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ /* No parameters to validate. */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + + /* 31 input are skip + * +32 output are skip to account for misc lookback + * --- + * 63 Total Lookback + * + * 31 is for being compatible with Tradestation. + * See TA_MAMA_Lookback for an explanation of the "32". + */ + return 63 + TA_GLOBALS_UNSTABLE_PERIOD(TA_FUNC_UNST_HT_DCPHASE,HtDcPhase); +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_HT_DCPHASE - Hilbert Transform - Dominant Cycle Phase + * + * Input = double + * Output = double + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::HtDcPhase( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inReal, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::HtDcPhase( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode htDcPhase( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inReal[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_HT_DCPHASE( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inReal[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + int outIdx, i; + int lookbackTotal, today; + double tempReal, tempReal2; + + double adjustedPrevPeriod, period; + + /* Variable used for the price smoother (a weighted moving average). */ + int trailingWMAIdx; + double periodWMASum, periodWMASub, trailingWMAValue; + double smoothedValue; + + /* Variables used for the Hilbert Transormation */ + CONSTANT_DOUBLE(a) = 0.0962; + CONSTANT_DOUBLE(b) = 0.5769; + double hilbertTempReal; + int hilbertIdx; + + HILBERT_VARIABLES( detrender ); + HILBERT_VARIABLES( Q1 ); + HILBERT_VARIABLES( jI ); + HILBERT_VARIABLES( jQ ); + + double Q2, I2, prevQ2, prevI2, Re, Im; + + double I1ForOddPrev2, I1ForOddPrev3; + double I1ForEvenPrev2, I1ForEvenPrev3; + + double rad2Deg, constDeg2RadBy360; + + double todayValue, smoothPeriod; + + /* Varaible used to keep track of the previous + * smooth price. In the case of this algorithm, + * we will never need more than 50 values. + */ + #define SMOOTH_PRICE_SIZE 50 + CIRCBUF_PROLOG(smoothPrice,double,SMOOTH_PRICE_SIZE); + int idx; + + /* Variable used to calculate the dominant cycle phase */ + int DCPeriodInt; + double DCPhase, DCPeriod, imagPart, realPart; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Insert TA function code here. */ + + CIRCBUF_INIT_LOCAL_ONLY(smoothPrice,double); + + /* Constant */ + tempReal = std_atan(1); + rad2Deg = 45.0/tempReal; + constDeg2RadBy360 = tempReal*8.0; + + /* Identify the minimum number of price bar needed + * to calculate at least one output. + */ + lookbackTotal = 63 + TA_GLOBALS_UNSTABLE_PERIOD(TA_FUNC_UNST_HT_DCPHASE,HtDcPhase); + + /* Move up the start index if there is not + * enough initial data. + */ + if( startIdx < lookbackTotal ) + startIdx = lookbackTotal; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + + /* Initialize the price smoother, which is simply a weighted + * moving average of the price. + * To understand this algorithm, I strongly suggest to understand + * first how TA_WMA is done. + */ + trailingWMAIdx = startIdx - lookbackTotal; + today = trailingWMAIdx; + + /* Initialization is same as WMA, except loop is unrolled + * for speed optimization. + */ + tempReal = inReal[today++]; + periodWMASub = tempReal; + periodWMASum = tempReal; + tempReal = inReal[today++]; + periodWMASub += tempReal; + periodWMASum += tempReal*2.0; + tempReal = inReal[today++]; + periodWMASub += tempReal; + periodWMASum += tempReal*3.0; + + trailingWMAValue = 0.0; + + /* Subsequent WMA value are evaluated by using + * the DO_PRICE_WMA macro. + */ + #define DO_PRICE_WMA(varNewPrice,varToStoreSmoothedValue) { \ + periodWMASub += varNewPrice; \ + periodWMASub -= trailingWMAValue; \ + periodWMASum += varNewPrice*4.0; \ + trailingWMAValue = inReal[trailingWMAIdx++]; \ + varToStoreSmoothedValue = periodWMASum*0.1; \ + periodWMASum -= periodWMASub; \ + } + + i = 34; + do + { + tempReal = inReal[today++]; + DO_PRICE_WMA(tempReal,smoothedValue); + } while( --i != 0); + + /* Initialize the circular buffers used by the hilbert + * transform logic. + * A buffer is used for odd day and another for even days. + * This minimize the number of memory access and floating point + * operations needed (note also that by using static circular buffer, + * no large dynamic memory allocation is needed for storing + * intermediate calculation!). + */ + hilbertIdx = 0; + + INIT_HILBERT_VARIABLES(detrender); + INIT_HILBERT_VARIABLES(Q1); + INIT_HILBERT_VARIABLES(jI); + INIT_HILBERT_VARIABLES(jQ); + + period = 0.0; + outIdx = 0; + + prevI2 = prevQ2 = 0.0; + Re = Im = 0.0; + I1ForOddPrev3 = I1ForEvenPrev3 = 0.0; + I1ForOddPrev2 = I1ForEvenPrev2 = 0.0; + smoothPeriod = 0.0; + + for( i=0; i < SMOOTH_PRICE_SIZE; i++ ) + smoothPrice[i] = 0.0; + + /* The code is speed optimized and is most likely very + * hard to follow if you do not already know well the + * original algorithm. + * To understadn better, it is strongly suggested to look + * first at the Excel implementation in "test_MAMA.xls" included + * in this package. + */ + DCPhase = 0.0; + while( today <= endIdx ) + { + adjustedPrevPeriod = (0.075*period)+0.54; + + todayValue = inReal[today]; + DO_PRICE_WMA(todayValue,smoothedValue); + + /* Remember the smoothedValue into the smoothPrice + * circular buffer. + */ + smoothPrice[smoothPrice_Idx] = smoothedValue; + + if( (today%2) == 0 ) + { + /* Do the Hilbert Transforms for even price bar */ + DO_HILBERT_EVEN(detrender,smoothedValue); + DO_HILBERT_EVEN(Q1,detrender); + DO_HILBERT_EVEN(jI,I1ForEvenPrev3); + DO_HILBERT_EVEN(jQ,Q1); + if( ++hilbertIdx == 3 ) + hilbertIdx = 0; + + Q2 = (0.2*(Q1 + jI)) + (0.8*prevQ2); + I2 = (0.2*(I1ForEvenPrev3 - jQ)) + (0.8*prevI2); + + /* The variable I1 is the detrender delayed for + * 3 price bars. + * + * Save the current detrender value for being + * used by the "odd" logic later. + */ + I1ForOddPrev3 = I1ForOddPrev2; + I1ForOddPrev2 = detrender; + } + else + { + /* Do the Hilbert Transforms for odd price bar */ + DO_HILBERT_ODD(detrender,smoothedValue); + DO_HILBERT_ODD(Q1,detrender); + DO_HILBERT_ODD(jI,I1ForOddPrev3); + DO_HILBERT_ODD(jQ,Q1); + + Q2 = (0.2*(Q1 + jI)) + (0.8*prevQ2); + I2 = (0.2*(I1ForOddPrev3 - jQ)) + (0.8*prevI2); + + /* The varaiable I1 is the detrender delayed for + * 3 price bars. + * + * Save the current detrender value for being + * used by the "even" logic later. + */ + I1ForEvenPrev3 = I1ForEvenPrev2; + I1ForEvenPrev2 = detrender; + } + + /* Adjust the period for next price bar */ + Re = (0.2*((I2*prevI2)+(Q2*prevQ2)))+(0.8*Re); + Im = (0.2*((I2*prevQ2)-(Q2*prevI2)))+(0.8*Im); + prevQ2 = Q2; + prevI2 = I2; + tempReal = period; + if( (Im != 0.0) && (Re != 0.0) ) + period = 360.0 / (std_atan(Im/Re)*rad2Deg); + tempReal2 = 1.5*tempReal; + if( period > tempReal2) + period = tempReal2; + tempReal2 = 0.67*tempReal; + if( period < tempReal2 ) + period = tempReal2; + if( period < 6 ) + period = 6; + else if( period > 50 ) + period = 50; + period = (0.2*period) + (0.8 * tempReal); + + smoothPeriod = (0.33*period)+(0.67*smoothPeriod); + + /* Compute Dominant Cycle Phase */ + DCPeriod = smoothPeriod+0.5; + DCPeriodInt = (int)DCPeriod; + realPart = 0.0; + imagPart = 0.0; + + /* idx is used to iterate for up to 50 of the last + * value of smoothPrice. + */ + idx = smoothPrice_Idx; + for( i=0; i < DCPeriodInt; i++ ) + { + tempReal = ((double)i*constDeg2RadBy360)/(double)DCPeriodInt; + tempReal2 = smoothPrice[idx]; + realPart += std_sin(tempReal)*tempReal2; + imagPart += std_cos(tempReal)*tempReal2; + if( idx == 0 ) + idx = SMOOTH_PRICE_SIZE-1; + else + idx--; + } + + tempReal = std_fabs(imagPart); + if( tempReal > 0.0 ) + DCPhase = std_atan(realPart/imagPart)*rad2Deg; + else if( tempReal <= 0.01 ) + { + if( realPart < 0.0 ) + DCPhase -= 90.0; + else if( realPart > 0.0 ) + DCPhase += 90.0; + } + DCPhase += 90.0; + + /* Compensate for one bar lag of the weighted moving average */ + DCPhase += 360.0 / smoothPeriod; + if( imagPart < 0.0 ) + DCPhase += 180.0; + if( DCPhase > 315.0 ) + DCPhase -= 360.0; + + if( today >= startIdx ) + { + outReal[outIdx++] = DCPhase; + } + + /* Ooof... let's do the next price bar now! */ + CIRCBUF_NEXT(smoothPrice); + today++; + } + + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::HtDcPhase( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode htDcPhase( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inReal[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_HT_DCPHASE( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inReal[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ int outIdx, i; +/* Generated */ int lookbackTotal, today; +/* Generated */ double tempReal, tempReal2; +/* Generated */ double adjustedPrevPeriod, period; +/* Generated */ int trailingWMAIdx; +/* Generated */ double periodWMASum, periodWMASub, trailingWMAValue; +/* Generated */ double smoothedValue; +/* Generated */ CONSTANT_DOUBLE(a) = 0.0962; +/* Generated */ CONSTANT_DOUBLE(b) = 0.5769; +/* Generated */ double hilbertTempReal; +/* Generated */ int hilbertIdx; +/* Generated */ HILBERT_VARIABLES( detrender ); +/* Generated */ HILBERT_VARIABLES( Q1 ); +/* Generated */ HILBERT_VARIABLES( jI ); +/* Generated */ HILBERT_VARIABLES( jQ ); +/* Generated */ double Q2, I2, prevQ2, prevI2, Re, Im; +/* Generated */ double I1ForOddPrev2, I1ForOddPrev3; +/* Generated */ double I1ForEvenPrev2, I1ForEvenPrev3; +/* Generated */ double rad2Deg, constDeg2RadBy360; +/* Generated */ double todayValue, smoothPeriod; +/* Generated */ #define SMOOTH_PRICE_SIZE 50 +/* Generated */ CIRCBUF_PROLOG(smoothPrice,double,SMOOTH_PRICE_SIZE); +/* Generated */ int idx; +/* Generated */ int DCPeriodInt; +/* Generated */ double DCPhase, DCPeriod, imagPart, realPart; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ CIRCBUF_INIT_LOCAL_ONLY(smoothPrice,double); +/* Generated */ tempReal = std_atan(1); +/* Generated */ rad2Deg = 45.0/tempReal; +/* Generated */ constDeg2RadBy360 = tempReal*8.0; +/* Generated */ lookbackTotal = 63 + TA_GLOBALS_UNSTABLE_PERIOD(TA_FUNC_UNST_HT_DCPHASE,HtDcPhase); +/* Generated */ if( startIdx < lookbackTotal ) +/* Generated */ startIdx = lookbackTotal; +/* Generated */ if( startIdx > endIdx ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ trailingWMAIdx = startIdx - lookbackTotal; +/* Generated */ today = trailingWMAIdx; +/* Generated */ tempReal = inReal[today++]; +/* Generated */ periodWMASub = tempReal; +/* Generated */ periodWMASum = tempReal; +/* Generated */ tempReal = inReal[today++]; +/* Generated */ periodWMASub += tempReal; +/* Generated */ periodWMASum += tempReal*2.0; +/* Generated */ tempReal = inReal[today++]; +/* Generated */ periodWMASub += tempReal; +/* Generated */ periodWMASum += tempReal*3.0; +/* Generated */ trailingWMAValue = 0.0; +/* Generated */ #define DO_PRICE_WMA(varNewPrice,varToStoreSmoothedValue) { \ +/* Generated */ periodWMASub += varNewPrice; \ +/* Generated */ periodWMASub -= trailingWMAValue; \ +/* Generated */ periodWMASum += varNewPrice*4.0; \ +/* Generated */ trailingWMAValue = inReal[trailingWMAIdx++]; \ +/* Generated */ varToStoreSmoothedValue = periodWMASum*0.1; \ +/* Generated */ periodWMASum -= periodWMASub; \ +/* Generated */ } +/* Generated */ i = 34; +/* Generated */ do +/* Generated */ { +/* Generated */ tempReal = inReal[today++]; +/* Generated */ DO_PRICE_WMA(tempReal,smoothedValue); +/* Generated */ } while( --i != 0); +/* Generated */ hilbertIdx = 0; +/* Generated */ INIT_HILBERT_VARIABLES(detrender); +/* Generated */ INIT_HILBERT_VARIABLES(Q1); +/* Generated */ INIT_HILBERT_VARIABLES(jI); +/* Generated */ INIT_HILBERT_VARIABLES(jQ); +/* Generated */ period = 0.0; +/* Generated */ outIdx = 0; +/* Generated */ prevI2 = prevQ2 = 0.0; +/* Generated */ Re = Im = 0.0; +/* Generated */ I1ForOddPrev3 = I1ForEvenPrev3 = 0.0; +/* Generated */ I1ForOddPrev2 = I1ForEvenPrev2 = 0.0; +/* Generated */ smoothPeriod = 0.0; +/* Generated */ for( i=0; i < SMOOTH_PRICE_SIZE; i++ ) +/* Generated */ smoothPrice[i] = 0.0; +/* Generated */ DCPhase = 0.0; +/* Generated */ while( today <= endIdx ) +/* Generated */ { +/* Generated */ adjustedPrevPeriod = (0.075*period)+0.54; +/* Generated */ todayValue = inReal[today]; +/* Generated */ DO_PRICE_WMA(todayValue,smoothedValue); +/* Generated */ smoothPrice[smoothPrice_Idx] = smoothedValue; +/* Generated */ if( (today%2) == 0 ) +/* Generated */ { +/* Generated */ DO_HILBERT_EVEN(detrender,smoothedValue); +/* Generated */ DO_HILBERT_EVEN(Q1,detrender); +/* Generated */ DO_HILBERT_EVEN(jI,I1ForEvenPrev3); +/* Generated */ DO_HILBERT_EVEN(jQ,Q1); +/* Generated */ if( ++hilbertIdx == 3 ) +/* Generated */ hilbertIdx = 0; +/* Generated */ Q2 = (0.2*(Q1 + jI)) + (0.8*prevQ2); +/* Generated */ I2 = (0.2*(I1ForEvenPrev3 - jQ)) + (0.8*prevI2); +/* Generated */ I1ForOddPrev3 = I1ForOddPrev2; +/* Generated */ I1ForOddPrev2 = detrender; +/* Generated */ } +/* Generated */ else +/* Generated */ { +/* Generated */ DO_HILBERT_ODD(detrender,smoothedValue); +/* Generated */ DO_HILBERT_ODD(Q1,detrender); +/* Generated */ DO_HILBERT_ODD(jI,I1ForOddPrev3); +/* Generated */ DO_HILBERT_ODD(jQ,Q1); +/* Generated */ Q2 = (0.2*(Q1 + jI)) + (0.8*prevQ2); +/* Generated */ I2 = (0.2*(I1ForOddPrev3 - jQ)) + (0.8*prevI2); +/* Generated */ I1ForEvenPrev3 = I1ForEvenPrev2; +/* Generated */ I1ForEvenPrev2 = detrender; +/* Generated */ } +/* Generated */ Re = (0.2*((I2*prevI2)+(Q2*prevQ2)))+(0.8*Re); +/* Generated */ Im = (0.2*((I2*prevQ2)-(Q2*prevI2)))+(0.8*Im); +/* Generated */ prevQ2 = Q2; +/* Generated */ prevI2 = I2; +/* Generated */ tempReal = period; +/* Generated */ if( (Im != 0.0) && (Re != 0.0) ) +/* Generated */ period = 360.0 / (std_atan(Im/Re)*rad2Deg); +/* Generated */ tempReal2 = 1.5*tempReal; +/* Generated */ if( period > tempReal2) +/* Generated */ period = tempReal2; +/* Generated */ tempReal2 = 0.67*tempReal; +/* Generated */ if( period < tempReal2 ) +/* Generated */ period = tempReal2; +/* Generated */ if( period < 6 ) +/* Generated */ period = 6; +/* Generated */ else if( period > 50 ) +/* Generated */ period = 50; +/* Generated */ period = (0.2*period) + (0.8 * tempReal); +/* Generated */ smoothPeriod = (0.33*period)+(0.67*smoothPeriod); +/* Generated */ DCPeriod = smoothPeriod+0.5; +/* Generated */ DCPeriodInt = (int)DCPeriod; +/* Generated */ realPart = 0.0; +/* Generated */ imagPart = 0.0; +/* Generated */ idx = smoothPrice_Idx; +/* Generated */ for( i=0; i < DCPeriodInt; i++ ) +/* Generated */ { +/* Generated */ tempReal = ((double)i*constDeg2RadBy360)/(double)DCPeriodInt; +/* Generated */ tempReal2 = smoothPrice[idx]; +/* Generated */ realPart += std_sin(tempReal)*tempReal2; +/* Generated */ imagPart += std_cos(tempReal)*tempReal2; +/* Generated */ if( idx == 0 ) +/* Generated */ idx = SMOOTH_PRICE_SIZE-1; +/* Generated */ else +/* Generated */ idx--; +/* Generated */ } +/* Generated */ tempReal = std_fabs(imagPart); +/* Generated */ if( tempReal > 0.0 ) +/* Generated */ DCPhase = std_atan(realPart/imagPart)*rad2Deg; +/* Generated */ else if( tempReal <= 0.01 ) +/* Generated */ { +/* Generated */ if( realPart < 0.0 ) +/* Generated */ DCPhase -= 90.0; +/* Generated */ else if( realPart > 0.0 ) +/* Generated */ DCPhase += 90.0; +/* Generated */ } +/* Generated */ DCPhase += 90.0; +/* Generated */ DCPhase += 360.0 / smoothPeriod; +/* Generated */ if( imagPart < 0.0 ) +/* Generated */ DCPhase += 180.0; +/* Generated */ if( DCPhase > 315.0 ) +/* Generated */ DCPhase -= 360.0; +/* Generated */ if( today >= startIdx ) +/* Generated */ { +/* Generated */ outReal[outIdx++] = DCPhase; +/* Generated */ } +/* Generated */ CIRCBUF_NEXT(smoothPrice); +/* Generated */ today++; +/* Generated */ } +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_HT_PHASOR.c b/src/ta_func/ta_HT_PHASOR.c new file mode 100644 index 000000000..ec56e824f --- /dev/null +++ b/src/ta_func/ta_HT_PHASOR.c @@ -0,0 +1,581 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * MF Mario Fortier + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 120802 MF Template creation. + * 052603 MF Adapt code to compile with .NET Managed C++ + * + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::HtPhasorLookback( void ) +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int htPhasorLookback( ) +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_HT_PHASOR_Lookback( void ) +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ /* No parameters to validate. */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + + /* See TA_MAMA_Lookback for an explanation of these */ + return 32 + TA_GLOBALS_UNSTABLE_PERIOD(TA_FUNC_UNST_HT_PHASOR,HtPhasor); +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_HT_PHASOR - Hilbert Transform - Phasor Components + * + * Input = double + * Output = double, double + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::HtPhasor( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inReal, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInPhase, +/* Generated */ cli::array^ outQuadrature ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::HtPhasor( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInPhase, +/* Generated */ cli::array^ outQuadrature ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode htPhasor( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inReal[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outInPhase[], +/* Generated */ double outQuadrature[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_HT_PHASOR( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inReal[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outInPhase[], +/* Generated */ double outQuadrature[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + + int outIdx, i; + int lookbackTotal, today; + double tempReal, tempReal2; + + double adjustedPrevPeriod, period; + + /* Variable used for the price smoother (a weighted moving average). */ + int trailingWMAIdx; + double periodWMASum, periodWMASub, trailingWMAValue; + double smoothedValue; + + /* Variables used for the Hilbert Transormation */ + CONSTANT_DOUBLE(a) = 0.0962; + CONSTANT_DOUBLE(b) = 0.5769; + double hilbertTempReal; + int hilbertIdx; + + HILBERT_VARIABLES( detrender ); + HILBERT_VARIABLES( Q1 ); + HILBERT_VARIABLES( jI ); + HILBERT_VARIABLES( jQ ); + + double Q2, I2, prevQ2, prevI2, Re, Im; + + double I1ForOddPrev2, I1ForOddPrev3; + double I1ForEvenPrev2, I1ForEvenPrev3; + + double rad2Deg; + + double todayValue; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInPhase ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ if( !outQuadrature ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Insert TA function code here. */ + + /* Constant */ + rad2Deg = 180.0 / (4.0 * std_atan(1)); + + /* Identify the minimum number of price bar needed + * to calculate at least one output. + */ + lookbackTotal = 32 + TA_GLOBALS_UNSTABLE_PERIOD(TA_FUNC_UNST_HT_PHASOR,HtPhasor); + + /* Move up the start index if there is not + * enough initial data. + */ + if( startIdx < lookbackTotal ) + startIdx = lookbackTotal; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + + /* Initialize the price smoother, which is simply a weighted + * moving average of the price. + * To understand this algorithm, I strongly suggest to understand + * first how TA_WMA is done. + */ + trailingWMAIdx = startIdx - lookbackTotal; + today = trailingWMAIdx; + + /* Initialization is same as WMA, except loop is unrolled + * for speed optimization. + */ + tempReal = inReal[today++]; + periodWMASub = tempReal; + periodWMASum = tempReal; + tempReal = inReal[today++]; + periodWMASub += tempReal; + periodWMASum += tempReal*2.0; + tempReal = inReal[today++]; + periodWMASub += tempReal; + periodWMASum += tempReal*3.0; + + trailingWMAValue = 0.0; + + /* Subsequent WMA value are evaluated by using + * the DO_PRICE_WMA macro. + */ + #define DO_PRICE_WMA(varNewPrice,varToStoreSmoothedValue) { \ + periodWMASub += varNewPrice; \ + periodWMASub -= trailingWMAValue; \ + periodWMASum += varNewPrice*4.0; \ + trailingWMAValue = inReal[trailingWMAIdx++]; \ + varToStoreSmoothedValue = periodWMASum*0.1; \ + periodWMASum -= periodWMASub; \ + } + + i = 9; + do + { + tempReal = inReal[today++]; + DO_PRICE_WMA(tempReal,smoothedValue); + } while( --i != 0); + + /* Initialize the circular buffers used by the hilbert + * transform logic. + * A buffer is used for odd day and another for even days. + * This minimize the number of memory access and floating point + * operations needed (note also that by using static circular buffer, + * no large dynamic memory allocation is needed for storing + * intermediate calculation!). + */ + hilbertIdx = 0; + + INIT_HILBERT_VARIABLES(detrender); + INIT_HILBERT_VARIABLES(Q1); + INIT_HILBERT_VARIABLES(jI); + INIT_HILBERT_VARIABLES(jQ); + + period = 0.0; + outIdx = 0; + + prevI2 = prevQ2 = 0.0; + Re = Im = 0.0; + I1ForOddPrev3 = I1ForEvenPrev3 = 0.0; + I1ForOddPrev2 = I1ForEvenPrev2 = 0.0; + + /* The code is speed optimized and is most likely very + * hard to follow if you do not already know well the + * original algorithm. + * To understadn better, it is strongly suggested to look + * first at the Excel implementation in "test_MAMA.xls" included + * in this package. + */ + while( today <= endIdx ) + { + adjustedPrevPeriod = (0.075*period)+0.54; + + todayValue = inReal[today]; + DO_PRICE_WMA(todayValue,smoothedValue); + + if( (today%2) == 0 ) + { + /* Do the Hilbert Transforms for even price bar */ + DO_HILBERT_EVEN(detrender,smoothedValue); + DO_HILBERT_EVEN(Q1,detrender); + if( today >= startIdx ) + { + outQuadrature[outIdx] = Q1; + outInPhase[outIdx++] = I1ForEvenPrev3; + } + DO_HILBERT_EVEN(jI,I1ForEvenPrev3); + DO_HILBERT_EVEN(jQ,Q1); + if( ++hilbertIdx == 3 ) + hilbertIdx = 0; + + Q2 = (0.2*(Q1 + jI)) + (0.8*prevQ2); + I2 = (0.2*(I1ForEvenPrev3 - jQ)) + (0.8*prevI2); + + /* The variable I1 is the detrender delayed for + * 3 price bars. + * + * Save the current detrender value for being + * used by the "odd" logic later. + */ + I1ForOddPrev3 = I1ForOddPrev2; + I1ForOddPrev2 = detrender; + + } + else + { + /* Do the Hilbert Transforms for odd price bar */ + DO_HILBERT_ODD(detrender,smoothedValue); + DO_HILBERT_ODD(Q1,detrender); + if( today >= startIdx ) + { + outQuadrature[outIdx] = Q1; + outInPhase[outIdx++] = I1ForOddPrev3; + } + DO_HILBERT_ODD(jI,I1ForOddPrev3); + DO_HILBERT_ODD(jQ,Q1); + + Q2 = (0.2*(Q1 + jI)) + (0.8*prevQ2); + I2 = (0.2*(I1ForOddPrev3 - jQ)) + (0.8*prevI2); + + /* The varaiable I1 is the detrender delayed for + * 3 price bars. + * + * Save the current detrender value for being + * used by the "even" logic later. + */ + I1ForEvenPrev3 = I1ForEvenPrev2; + I1ForEvenPrev2 = detrender; + } + + /* Adjust the period for next price bar */ + Re = (0.2*((I2*prevI2)+(Q2*prevQ2)))+(0.8*Re); + Im = (0.2*((I2*prevQ2)-(Q2*prevI2)))+(0.8*Im); + prevQ2 = Q2; + prevI2 = I2; + tempReal = period; + if( (Im != 0.0) && (Re != 0.0) ) + period = 360.0 / (std_atan(Im/Re)*rad2Deg); + tempReal2 = 1.5*tempReal; + if( period > tempReal2) + period = tempReal2; + tempReal2 = 0.67*tempReal; + if( period < tempReal2 ) + period = tempReal2; + if( period < 6 ) + period = 6; + else if( period > 50 ) + period = 50; + period = (0.2*period) + (0.8 * tempReal); + + /* Ooof... let's do the next price bar now! */ + today++; + } + + /* Default return values */ + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::HtPhasor( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInPhase, +/* Generated */ cli::array^ outQuadrature ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode htPhasor( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inReal[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outInPhase[], +/* Generated */ double outQuadrature[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_HT_PHASOR( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inReal[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outInPhase[], +/* Generated */ double outQuadrature[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ int outIdx, i; +/* Generated */ int lookbackTotal, today; +/* Generated */ double tempReal, tempReal2; +/* Generated */ double adjustedPrevPeriod, period; +/* Generated */ int trailingWMAIdx; +/* Generated */ double periodWMASum, periodWMASub, trailingWMAValue; +/* Generated */ double smoothedValue; +/* Generated */ CONSTANT_DOUBLE(a) = 0.0962; +/* Generated */ CONSTANT_DOUBLE(b) = 0.5769; +/* Generated */ double hilbertTempReal; +/* Generated */ int hilbertIdx; +/* Generated */ HILBERT_VARIABLES( detrender ); +/* Generated */ HILBERT_VARIABLES( Q1 ); +/* Generated */ HILBERT_VARIABLES( jI ); +/* Generated */ HILBERT_VARIABLES( jQ ); +/* Generated */ double Q2, I2, prevQ2, prevI2, Re, Im; +/* Generated */ double I1ForOddPrev2, I1ForOddPrev3; +/* Generated */ double I1ForEvenPrev2, I1ForEvenPrev3; +/* Generated */ double rad2Deg; +/* Generated */ double todayValue; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInPhase ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ if( !outQuadrature ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ rad2Deg = 180.0 / (4.0 * std_atan(1)); +/* Generated */ lookbackTotal = 32 + TA_GLOBALS_UNSTABLE_PERIOD(TA_FUNC_UNST_HT_PHASOR,HtPhasor); +/* Generated */ if( startIdx < lookbackTotal ) +/* Generated */ startIdx = lookbackTotal; +/* Generated */ if( startIdx > endIdx ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ trailingWMAIdx = startIdx - lookbackTotal; +/* Generated */ today = trailingWMAIdx; +/* Generated */ tempReal = inReal[today++]; +/* Generated */ periodWMASub = tempReal; +/* Generated */ periodWMASum = tempReal; +/* Generated */ tempReal = inReal[today++]; +/* Generated */ periodWMASub += tempReal; +/* Generated */ periodWMASum += tempReal*2.0; +/* Generated */ tempReal = inReal[today++]; +/* Generated */ periodWMASub += tempReal; +/* Generated */ periodWMASum += tempReal*3.0; +/* Generated */ trailingWMAValue = 0.0; +/* Generated */ #define DO_PRICE_WMA(varNewPrice,varToStoreSmoothedValue) { \ +/* Generated */ periodWMASub += varNewPrice; \ +/* Generated */ periodWMASub -= trailingWMAValue; \ +/* Generated */ periodWMASum += varNewPrice*4.0; \ +/* Generated */ trailingWMAValue = inReal[trailingWMAIdx++]; \ +/* Generated */ varToStoreSmoothedValue = periodWMASum*0.1; \ +/* Generated */ periodWMASum -= periodWMASub; \ +/* Generated */ } +/* Generated */ i = 9; +/* Generated */ do +/* Generated */ { +/* Generated */ tempReal = inReal[today++]; +/* Generated */ DO_PRICE_WMA(tempReal,smoothedValue); +/* Generated */ } while( --i != 0); +/* Generated */ hilbertIdx = 0; +/* Generated */ INIT_HILBERT_VARIABLES(detrender); +/* Generated */ INIT_HILBERT_VARIABLES(Q1); +/* Generated */ INIT_HILBERT_VARIABLES(jI); +/* Generated */ INIT_HILBERT_VARIABLES(jQ); +/* Generated */ period = 0.0; +/* Generated */ outIdx = 0; +/* Generated */ prevI2 = prevQ2 = 0.0; +/* Generated */ Re = Im = 0.0; +/* Generated */ I1ForOddPrev3 = I1ForEvenPrev3 = 0.0; +/* Generated */ I1ForOddPrev2 = I1ForEvenPrev2 = 0.0; +/* Generated */ while( today <= endIdx ) +/* Generated */ { +/* Generated */ adjustedPrevPeriod = (0.075*period)+0.54; +/* Generated */ todayValue = inReal[today]; +/* Generated */ DO_PRICE_WMA(todayValue,smoothedValue); +/* Generated */ if( (today%2) == 0 ) +/* Generated */ { +/* Generated */ DO_HILBERT_EVEN(detrender,smoothedValue); +/* Generated */ DO_HILBERT_EVEN(Q1,detrender); +/* Generated */ if( today >= startIdx ) +/* Generated */ { +/* Generated */ outQuadrature[outIdx] = Q1; +/* Generated */ outInPhase[outIdx++] = I1ForEvenPrev3; +/* Generated */ } +/* Generated */ DO_HILBERT_EVEN(jI,I1ForEvenPrev3); +/* Generated */ DO_HILBERT_EVEN(jQ,Q1); +/* Generated */ if( ++hilbertIdx == 3 ) +/* Generated */ hilbertIdx = 0; +/* Generated */ Q2 = (0.2*(Q1 + jI)) + (0.8*prevQ2); +/* Generated */ I2 = (0.2*(I1ForEvenPrev3 - jQ)) + (0.8*prevI2); +/* Generated */ I1ForOddPrev3 = I1ForOddPrev2; +/* Generated */ I1ForOddPrev2 = detrender; +/* Generated */ } +/* Generated */ else +/* Generated */ { +/* Generated */ DO_HILBERT_ODD(detrender,smoothedValue); +/* Generated */ DO_HILBERT_ODD(Q1,detrender); +/* Generated */ if( today >= startIdx ) +/* Generated */ { +/* Generated */ outQuadrature[outIdx] = Q1; +/* Generated */ outInPhase[outIdx++] = I1ForOddPrev3; +/* Generated */ } +/* Generated */ DO_HILBERT_ODD(jI,I1ForOddPrev3); +/* Generated */ DO_HILBERT_ODD(jQ,Q1); +/* Generated */ Q2 = (0.2*(Q1 + jI)) + (0.8*prevQ2); +/* Generated */ I2 = (0.2*(I1ForOddPrev3 - jQ)) + (0.8*prevI2); +/* Generated */ I1ForEvenPrev3 = I1ForEvenPrev2; +/* Generated */ I1ForEvenPrev2 = detrender; +/* Generated */ } +/* Generated */ Re = (0.2*((I2*prevI2)+(Q2*prevQ2)))+(0.8*Re); +/* Generated */ Im = (0.2*((I2*prevQ2)-(Q2*prevI2)))+(0.8*Im); +/* Generated */ prevQ2 = Q2; +/* Generated */ prevI2 = I2; +/* Generated */ tempReal = period; +/* Generated */ if( (Im != 0.0) && (Re != 0.0) ) +/* Generated */ period = 360.0 / (std_atan(Im/Re)*rad2Deg); +/* Generated */ tempReal2 = 1.5*tempReal; +/* Generated */ if( period > tempReal2) +/* Generated */ period = tempReal2; +/* Generated */ tempReal2 = 0.67*tempReal; +/* Generated */ if( period < tempReal2 ) +/* Generated */ period = tempReal2; +/* Generated */ if( period < 6 ) +/* Generated */ period = 6; +/* Generated */ else if( period > 50 ) +/* Generated */ period = 50; +/* Generated */ period = (0.2*period) + (0.8 * tempReal); +/* Generated */ today++; +/* Generated */ } +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_HT_SINE.c b/src/ta_func/ta_HT_SINE.c new file mode 100644 index 000000000..109143ec4 --- /dev/null +++ b/src/ta_func/ta_HT_SINE.c @@ -0,0 +1,695 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * MF Mario Fortier + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 120802 MF Template creation. + * 052603 MF Adapt code to compile with .NET Managed C++ + * + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::HtSineLookback( void ) +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int htSineLookback( ) +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_HT_SINE_Lookback( void ) +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ /* No parameters to validate. */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + + /* 31 input are skip + * +32 output are skip to account for misc lookback + * --- + * 63 Total Lookback + * + * 31 is for being compatible with Tradestation. + * See TA_MAMA_Lookback for an explanation of the "32". + */ + return 63 + TA_GLOBALS_UNSTABLE_PERIOD(TA_FUNC_UNST_HT_SINE,HtSine); +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_HT_SINE - Hilbert Transform - SineWave + * + * Input = double + * Output = double, double + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::HtSine( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inReal, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outSine, +/* Generated */ cli::array^ outLeadSine ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::HtSine( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outSine, +/* Generated */ cli::array^ outLeadSine ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode htSine( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inReal[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outSine[], +/* Generated */ double outLeadSine[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_HT_SINE( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inReal[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outSine[], +/* Generated */ double outLeadSine[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + int outIdx, i; + int lookbackTotal, today; + double tempReal, tempReal2; + + double adjustedPrevPeriod, period; + + /* Variable used for the price smoother (a weighted moving average). */ + int trailingWMAIdx; + double periodWMASum, periodWMASub, trailingWMAValue; + double smoothedValue; + + /* Variables used for the Hilbert Transormation */ + CONSTANT_DOUBLE(a) = 0.0962; + CONSTANT_DOUBLE(b) = 0.5769; + double hilbertTempReal; + int hilbertIdx; + + HILBERT_VARIABLES( detrender ); + HILBERT_VARIABLES( Q1 ); + HILBERT_VARIABLES( jI ); + HILBERT_VARIABLES( jQ ); + + double Q2, I2, prevQ2, prevI2, Re, Im; + + double I1ForOddPrev2, I1ForOddPrev3; + double I1ForEvenPrev2, I1ForEvenPrev3; + + double rad2Deg, deg2Rad, constDeg2RadBy360; + + double todayValue, smoothPeriod; + + /* Varaible used to keep track of the previous + * smooth price. In the case of this algorithm, + * we will never need more than 50 values. + */ + #define SMOOTH_PRICE_SIZE 50 + CIRCBUF_PROLOG(smoothPrice,double,SMOOTH_PRICE_SIZE); + int idx; + + /* Variable used to calculate the dominant cycle phase */ + int DCPeriodInt; + double DCPhase, DCPeriod, imagPart, realPart; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outSine ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ if( !outLeadSine ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Insert TA function code here. */ + + CIRCBUF_INIT_LOCAL_ONLY(smoothPrice,double); + + /* The following could be replaced by constant eventually. */ + tempReal = std_atan(1); + rad2Deg = 45.0/tempReal; + deg2Rad = 1.0/rad2Deg; + constDeg2RadBy360 = tempReal*8.0; + + /* Identify the minimum number of price bar needed + * to calculate at least one output. + */ + lookbackTotal = 63 + TA_GLOBALS_UNSTABLE_PERIOD(TA_FUNC_UNST_HT_SINE,HtSine); + + /* Move up the start index if there is not + * enough initial data. + */ + if( startIdx < lookbackTotal ) + startIdx = lookbackTotal; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + + /* Initialize the price smoother, which is simply a weighted + * moving average of the price. + * To understand this algorithm, I strongly suggest to understand + * first how TA_WMA is done. + */ + trailingWMAIdx = startIdx - lookbackTotal; + today = trailingWMAIdx; + + /* Initialization is same as WMA, except loop is unrolled + * for speed optimization. + */ + tempReal = inReal[today++]; + periodWMASub = tempReal; + periodWMASum = tempReal; + tempReal = inReal[today++]; + periodWMASub += tempReal; + periodWMASum += tempReal*2.0; + tempReal = inReal[today++]; + periodWMASub += tempReal; + periodWMASum += tempReal*3.0; + + trailingWMAValue = 0.0; + + /* Subsequent WMA value are evaluated by using + * the DO_PRICE_WMA macro. + */ + #define DO_PRICE_WMA(varNewPrice,varToStoreSmoothedValue) { \ + periodWMASub += varNewPrice; \ + periodWMASub -= trailingWMAValue; \ + periodWMASum += varNewPrice*4.0; \ + trailingWMAValue = inReal[trailingWMAIdx++]; \ + varToStoreSmoothedValue = periodWMASum*0.1; \ + periodWMASum -= periodWMASub; \ + } + + i = 34; + do + { + tempReal = inReal[today++]; + DO_PRICE_WMA(tempReal,smoothedValue); + } while( --i != 0); + + /* Initialize the circular buffers used by the hilbert + * transform logic. + * A buffer is used for odd day and another for even days. + * This minimize the number of memory access and floating point + * operations needed (note also that by using static circular buffer, + * no large dynamic memory allocation is needed for storing + * intermediate calculation!). + */ + hilbertIdx = 0; + + INIT_HILBERT_VARIABLES(detrender); + INIT_HILBERT_VARIABLES(Q1); + INIT_HILBERT_VARIABLES(jI); + INIT_HILBERT_VARIABLES(jQ); + + period = 0.0; + outIdx = 0; + + prevI2 = prevQ2 = 0.0; + Re = Im = 0.0; + I1ForOddPrev3 = I1ForEvenPrev3 = 0.0; + I1ForOddPrev2 = I1ForEvenPrev2 = 0.0; + smoothPeriod = 0.0; + + for( i=0; i < SMOOTH_PRICE_SIZE; i++ ) + smoothPrice[i] = 0.0; + + /* The code is speed optimized and is most likely very + * hard to follow if you do not already know well the + * original algorithm. + * To understadn better, it is strongly suggested to look + * first at the Excel implementation in "test_MAMA.xls" included + * in this package. + */ + DCPhase = 0.0; + while( today <= endIdx ) + { + adjustedPrevPeriod = (0.075*period)+0.54; + + todayValue = inReal[today]; + DO_PRICE_WMA(todayValue,smoothedValue); + + /* Remember the smoothedValue into the smoothPrice + * circular buffer. + */ + smoothPrice[smoothPrice_Idx] = smoothedValue; + + if( (today%2) == 0 ) + { + /* Do the Hilbert Transforms for even price bar */ + DO_HILBERT_EVEN(detrender,smoothedValue); + DO_HILBERT_EVEN(Q1,detrender); + DO_HILBERT_EVEN(jI,I1ForEvenPrev3); + DO_HILBERT_EVEN(jQ,Q1); + if( ++hilbertIdx == 3 ) + hilbertIdx = 0; + + Q2 = (0.2*(Q1 + jI)) + (0.8*prevQ2); + I2 = (0.2*(I1ForEvenPrev3 - jQ)) + (0.8*prevI2); + + /* The variable I1 is the detrender delayed for + * 3 price bars. + * + * Save the current detrender value for being + * used by the "odd" logic later. + */ + I1ForOddPrev3 = I1ForOddPrev2; + I1ForOddPrev2 = detrender; + } + else + { + /* Do the Hilbert Transforms for odd price bar */ + DO_HILBERT_ODD(detrender,smoothedValue); + DO_HILBERT_ODD(Q1,detrender); + DO_HILBERT_ODD(jI,I1ForOddPrev3); + DO_HILBERT_ODD(jQ,Q1); + + Q2 = (0.2*(Q1 + jI)) + (0.8*prevQ2); + I2 = (0.2*(I1ForOddPrev3 - jQ)) + (0.8*prevI2); + + /* The varaiable I1 is the detrender delayed for + * 3 price bars. + * + * Save the current detrender value for being + * used by the "even" logic later. + */ + I1ForEvenPrev3 = I1ForEvenPrev2; + I1ForEvenPrev2 = detrender; + } + + /* Adjust the period for next price bar */ + Re = (0.2*((I2*prevI2)+(Q2*prevQ2)))+(0.8*Re); + Im = (0.2*((I2*prevQ2)-(Q2*prevI2)))+(0.8*Im); + prevQ2 = Q2; + prevI2 = I2; + tempReal = period; + if( (Im != 0.0) && (Re != 0.0) ) + period = 360.0 / (std_atan(Im/Re)*rad2Deg); + tempReal2 = 1.5*tempReal; + if( period > tempReal2) + period = tempReal2; + tempReal2 = 0.67*tempReal; + if( period < tempReal2 ) + period = tempReal2; + if( period < 6 ) + period = 6; + else if( period > 50 ) + period = 50; + period = (0.2*period) + (0.8 * tempReal); + + smoothPeriod = (0.33*period)+(0.67*smoothPeriod); + + /* Compute Dominant Cycle Phase */ + DCPeriod = smoothPeriod+0.5; + DCPeriodInt = (int)DCPeriod; + realPart = 0.0; + imagPart = 0.0; + + /* idx is used to iterate for up to 50 of the last + * value of smoothPrice. + */ + idx = smoothPrice_Idx; + for( i=0; i < DCPeriodInt; i++ ) + { + tempReal = ((double)i*constDeg2RadBy360)/(double)DCPeriodInt; + tempReal2 = smoothPrice[idx]; + realPart += std_sin(tempReal)*tempReal2; + imagPart += std_cos(tempReal)*tempReal2; + if( idx == 0 ) + idx = SMOOTH_PRICE_SIZE-1; + else + idx--; + } + + tempReal = std_fabs(imagPart); + if( tempReal > 0.0 ) + DCPhase = std_atan(realPart/imagPart)*rad2Deg; + else if( tempReal <= 0.01 ) + { + if( realPart < 0.0 ) + DCPhase -= 90.0; + else if( realPart > 0.0 ) + DCPhase += 90.0; + } + DCPhase += 90.0; + + /* Compensate for one bar lag of the weighted moving average */ + DCPhase += 360.0 / smoothPeriod; + if( imagPart < 0.0 ) + DCPhase += 180.0; + if( DCPhase > 315.0 ) + DCPhase -= 360.0; + + if( today >= startIdx ) + { + outSine[outIdx] = std_sin(DCPhase*deg2Rad); + outLeadSine[outIdx++] = std_sin((DCPhase+45)*deg2Rad); + } + + /* Ooof... let's do the next price bar now! */ + CIRCBUF_NEXT(smoothPrice); + today++; + } + + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::HtSine( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outSine, +/* Generated */ cli::array^ outLeadSine ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode htSine( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inReal[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outSine[], +/* Generated */ double outLeadSine[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_HT_SINE( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inReal[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outSine[], +/* Generated */ double outLeadSine[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ int outIdx, i; +/* Generated */ int lookbackTotal, today; +/* Generated */ double tempReal, tempReal2; +/* Generated */ double adjustedPrevPeriod, period; +/* Generated */ int trailingWMAIdx; +/* Generated */ double periodWMASum, periodWMASub, trailingWMAValue; +/* Generated */ double smoothedValue; +/* Generated */ CONSTANT_DOUBLE(a) = 0.0962; +/* Generated */ CONSTANT_DOUBLE(b) = 0.5769; +/* Generated */ double hilbertTempReal; +/* Generated */ int hilbertIdx; +/* Generated */ HILBERT_VARIABLES( detrender ); +/* Generated */ HILBERT_VARIABLES( Q1 ); +/* Generated */ HILBERT_VARIABLES( jI ); +/* Generated */ HILBERT_VARIABLES( jQ ); +/* Generated */ double Q2, I2, prevQ2, prevI2, Re, Im; +/* Generated */ double I1ForOddPrev2, I1ForOddPrev3; +/* Generated */ double I1ForEvenPrev2, I1ForEvenPrev3; +/* Generated */ double rad2Deg, deg2Rad, constDeg2RadBy360; +/* Generated */ double todayValue, smoothPeriod; +/* Generated */ #define SMOOTH_PRICE_SIZE 50 +/* Generated */ CIRCBUF_PROLOG(smoothPrice,double,SMOOTH_PRICE_SIZE); +/* Generated */ int idx; +/* Generated */ int DCPeriodInt; +/* Generated */ double DCPhase, DCPeriod, imagPart, realPart; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outSine ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ if( !outLeadSine ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ CIRCBUF_INIT_LOCAL_ONLY(smoothPrice,double); +/* Generated */ tempReal = std_atan(1); +/* Generated */ rad2Deg = 45.0/tempReal; +/* Generated */ deg2Rad = 1.0/rad2Deg; +/* Generated */ constDeg2RadBy360 = tempReal*8.0; +/* Generated */ lookbackTotal = 63 + TA_GLOBALS_UNSTABLE_PERIOD(TA_FUNC_UNST_HT_SINE,HtSine); +/* Generated */ if( startIdx < lookbackTotal ) +/* Generated */ startIdx = lookbackTotal; +/* Generated */ if( startIdx > endIdx ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ trailingWMAIdx = startIdx - lookbackTotal; +/* Generated */ today = trailingWMAIdx; +/* Generated */ tempReal = inReal[today++]; +/* Generated */ periodWMASub = tempReal; +/* Generated */ periodWMASum = tempReal; +/* Generated */ tempReal = inReal[today++]; +/* Generated */ periodWMASub += tempReal; +/* Generated */ periodWMASum += tempReal*2.0; +/* Generated */ tempReal = inReal[today++]; +/* Generated */ periodWMASub += tempReal; +/* Generated */ periodWMASum += tempReal*3.0; +/* Generated */ trailingWMAValue = 0.0; +/* Generated */ #define DO_PRICE_WMA(varNewPrice,varToStoreSmoothedValue) { \ +/* Generated */ periodWMASub += varNewPrice; \ +/* Generated */ periodWMASub -= trailingWMAValue; \ +/* Generated */ periodWMASum += varNewPrice*4.0; \ +/* Generated */ trailingWMAValue = inReal[trailingWMAIdx++]; \ +/* Generated */ varToStoreSmoothedValue = periodWMASum*0.1; \ +/* Generated */ periodWMASum -= periodWMASub; \ +/* Generated */ } +/* Generated */ i = 34; +/* Generated */ do +/* Generated */ { +/* Generated */ tempReal = inReal[today++]; +/* Generated */ DO_PRICE_WMA(tempReal,smoothedValue); +/* Generated */ } while( --i != 0); +/* Generated */ hilbertIdx = 0; +/* Generated */ INIT_HILBERT_VARIABLES(detrender); +/* Generated */ INIT_HILBERT_VARIABLES(Q1); +/* Generated */ INIT_HILBERT_VARIABLES(jI); +/* Generated */ INIT_HILBERT_VARIABLES(jQ); +/* Generated */ period = 0.0; +/* Generated */ outIdx = 0; +/* Generated */ prevI2 = prevQ2 = 0.0; +/* Generated */ Re = Im = 0.0; +/* Generated */ I1ForOddPrev3 = I1ForEvenPrev3 = 0.0; +/* Generated */ I1ForOddPrev2 = I1ForEvenPrev2 = 0.0; +/* Generated */ smoothPeriod = 0.0; +/* Generated */ for( i=0; i < SMOOTH_PRICE_SIZE; i++ ) +/* Generated */ smoothPrice[i] = 0.0; +/* Generated */ DCPhase = 0.0; +/* Generated */ while( today <= endIdx ) +/* Generated */ { +/* Generated */ adjustedPrevPeriod = (0.075*period)+0.54; +/* Generated */ todayValue = inReal[today]; +/* Generated */ DO_PRICE_WMA(todayValue,smoothedValue); +/* Generated */ smoothPrice[smoothPrice_Idx] = smoothedValue; +/* Generated */ if( (today%2) == 0 ) +/* Generated */ { +/* Generated */ DO_HILBERT_EVEN(detrender,smoothedValue); +/* Generated */ DO_HILBERT_EVEN(Q1,detrender); +/* Generated */ DO_HILBERT_EVEN(jI,I1ForEvenPrev3); +/* Generated */ DO_HILBERT_EVEN(jQ,Q1); +/* Generated */ if( ++hilbertIdx == 3 ) +/* Generated */ hilbertIdx = 0; +/* Generated */ Q2 = (0.2*(Q1 + jI)) + (0.8*prevQ2); +/* Generated */ I2 = (0.2*(I1ForEvenPrev3 - jQ)) + (0.8*prevI2); +/* Generated */ I1ForOddPrev3 = I1ForOddPrev2; +/* Generated */ I1ForOddPrev2 = detrender; +/* Generated */ } +/* Generated */ else +/* Generated */ { +/* Generated */ DO_HILBERT_ODD(detrender,smoothedValue); +/* Generated */ DO_HILBERT_ODD(Q1,detrender); +/* Generated */ DO_HILBERT_ODD(jI,I1ForOddPrev3); +/* Generated */ DO_HILBERT_ODD(jQ,Q1); +/* Generated */ Q2 = (0.2*(Q1 + jI)) + (0.8*prevQ2); +/* Generated */ I2 = (0.2*(I1ForOddPrev3 - jQ)) + (0.8*prevI2); +/* Generated */ I1ForEvenPrev3 = I1ForEvenPrev2; +/* Generated */ I1ForEvenPrev2 = detrender; +/* Generated */ } +/* Generated */ Re = (0.2*((I2*prevI2)+(Q2*prevQ2)))+(0.8*Re); +/* Generated */ Im = (0.2*((I2*prevQ2)-(Q2*prevI2)))+(0.8*Im); +/* Generated */ prevQ2 = Q2; +/* Generated */ prevI2 = I2; +/* Generated */ tempReal = period; +/* Generated */ if( (Im != 0.0) && (Re != 0.0) ) +/* Generated */ period = 360.0 / (std_atan(Im/Re)*rad2Deg); +/* Generated */ tempReal2 = 1.5*tempReal; +/* Generated */ if( period > tempReal2) +/* Generated */ period = tempReal2; +/* Generated */ tempReal2 = 0.67*tempReal; +/* Generated */ if( period < tempReal2 ) +/* Generated */ period = tempReal2; +/* Generated */ if( period < 6 ) +/* Generated */ period = 6; +/* Generated */ else if( period > 50 ) +/* Generated */ period = 50; +/* Generated */ period = (0.2*period) + (0.8 * tempReal); +/* Generated */ smoothPeriod = (0.33*period)+(0.67*smoothPeriod); +/* Generated */ DCPeriod = smoothPeriod+0.5; +/* Generated */ DCPeriodInt = (int)DCPeriod; +/* Generated */ realPart = 0.0; +/* Generated */ imagPart = 0.0; +/* Generated */ idx = smoothPrice_Idx; +/* Generated */ for( i=0; i < DCPeriodInt; i++ ) +/* Generated */ { +/* Generated */ tempReal = ((double)i*constDeg2RadBy360)/(double)DCPeriodInt; +/* Generated */ tempReal2 = smoothPrice[idx]; +/* Generated */ realPart += std_sin(tempReal)*tempReal2; +/* Generated */ imagPart += std_cos(tempReal)*tempReal2; +/* Generated */ if( idx == 0 ) +/* Generated */ idx = SMOOTH_PRICE_SIZE-1; +/* Generated */ else +/* Generated */ idx--; +/* Generated */ } +/* Generated */ tempReal = std_fabs(imagPart); +/* Generated */ if( tempReal > 0.0 ) +/* Generated */ DCPhase = std_atan(realPart/imagPart)*rad2Deg; +/* Generated */ else if( tempReal <= 0.01 ) +/* Generated */ { +/* Generated */ if( realPart < 0.0 ) +/* Generated */ DCPhase -= 90.0; +/* Generated */ else if( realPart > 0.0 ) +/* Generated */ DCPhase += 90.0; +/* Generated */ } +/* Generated */ DCPhase += 90.0; +/* Generated */ DCPhase += 360.0 / smoothPeriod; +/* Generated */ if( imagPart < 0.0 ) +/* Generated */ DCPhase += 180.0; +/* Generated */ if( DCPhase > 315.0 ) +/* Generated */ DCPhase -= 360.0; +/* Generated */ if( today >= startIdx ) +/* Generated */ { +/* Generated */ outSine[outIdx] = std_sin(DCPhase*deg2Rad); +/* Generated */ outLeadSine[outIdx++] = std_sin((DCPhase+45)*deg2Rad); +/* Generated */ } +/* Generated */ CIRCBUF_NEXT(smoothPrice); +/* Generated */ today++; +/* Generated */ } +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_HT_TRENDLINE.c b/src/ta_func/ta_HT_TRENDLINE.c new file mode 100644 index 000000000..a70903f68 --- /dev/null +++ b/src/ta_func/ta_HT_TRENDLINE.c @@ -0,0 +1,641 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * MF Mario Fortier + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 120802 MF Template creation. + * 052603 MF Adapt code to compile with .NET Managed C++ + * + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::HtTrendlineLookback( void ) +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int htTrendlineLookback( ) +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_HT_TRENDLINE_Lookback( void ) +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ /* No parameters to validate. */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + + /* 31 input are skip + * +32 output are skip to account for misc lookback + * --- + * 63 Total Lookback + * + * 31 is for being compatible with Tradestation. + * See TA_MAMA_Lookback for an explanation of the "32". + */ + return 63 + TA_GLOBALS_UNSTABLE_PERIOD(TA_FUNC_UNST_HT_TRENDLINE,HtTrendline); +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_HT_TRENDLINE - Hilbert Transform - Instantaneous Trendline + * + * Input = double + * Output = double + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::HtTrendline( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inReal, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::HtTrendline( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode htTrendline( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inReal[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_HT_TRENDLINE( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inReal[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + int outIdx, i; + int lookbackTotal, today; + double tempReal, tempReal2; + + double adjustedPrevPeriod, period; + + /* Variable used for the price smoother (a weighted moving average). */ + int trailingWMAIdx; + double periodWMASum, periodWMASub, trailingWMAValue; + double smoothedValue; + + /* Variable to keep track of the last 3 ITrend */ + double iTrend1, iTrend2, iTrend3; + + /* Variables used for the Hilbert Transormation */ + CONSTANT_DOUBLE(a) = 0.0962; + CONSTANT_DOUBLE(b) = 0.5769; + double hilbertTempReal; + int hilbertIdx; + + HILBERT_VARIABLES( detrender ); + HILBERT_VARIABLES( Q1 ); + HILBERT_VARIABLES( jI ); + HILBERT_VARIABLES( jQ ); + + double Q2, I2, prevQ2, prevI2, Re, Im; + + double I1ForOddPrev2, I1ForOddPrev3; + double I1ForEvenPrev2, I1ForEvenPrev3; + + double rad2Deg; + + double todayValue, smoothPeriod; + + /* Variable used to keep track of the previous + * smooth price. In the case of this algorithm, + * we will never need more than 50 values. + */ + #define SMOOTH_PRICE_SIZE 50 + CIRCBUF_PROLOG(smoothPrice,double,SMOOTH_PRICE_SIZE); + int idx; + + /* Variable used to calculate the dominant cycle phase */ + int DCPeriodInt; + double DCPeriod; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Insert TA function code here. */ + + CIRCBUF_INIT_LOCAL_ONLY(smoothPrice,double); + + iTrend1 = iTrend2 = iTrend3 = 0.0; + + /* Constant */ + tempReal = std_atan(1); + rad2Deg = 45.0/tempReal; + + /* Identify the minimum number of price bar needed + * to calculate at least one output. + */ + lookbackTotal = 63 + TA_GLOBALS_UNSTABLE_PERIOD(TA_FUNC_UNST_HT_TRENDLINE,HtTrendline); + + /* Move up the start index if there is not + * enough initial data. + */ + if( startIdx < lookbackTotal ) + startIdx = lookbackTotal; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + + /* Initialize the price smoother, which is simply a weighted + * moving average of the price. + * To understand this algorithm, I strongly suggest to understand + * first how TA_WMA is done. + */ + trailingWMAIdx = startIdx - lookbackTotal; + today = trailingWMAIdx; + + /* Initialization is same as WMA, except loop is unrolled + * for speed optimization. + */ + tempReal = inReal[today++]; + periodWMASub = tempReal; + periodWMASum = tempReal; + tempReal = inReal[today++]; + periodWMASub += tempReal; + periodWMASum += tempReal*2.0; + tempReal = inReal[today++]; + periodWMASub += tempReal; + periodWMASum += tempReal*3.0; + + trailingWMAValue = 0.0; + + /* Subsequent WMA value are evaluated by using + * the DO_PRICE_WMA macro. + */ + #define DO_PRICE_WMA(varNewPrice,varToStoreSmoothedValue) { \ + periodWMASub += varNewPrice; \ + periodWMASub -= trailingWMAValue; \ + periodWMASum += varNewPrice*4.0; \ + trailingWMAValue = inReal[trailingWMAIdx++]; \ + varToStoreSmoothedValue = periodWMASum*0.1; \ + periodWMASum -= periodWMASub; \ + } + + i = 34; + do + { + tempReal = inReal[today++]; + DO_PRICE_WMA(tempReal,smoothedValue); + } while( --i != 0); + + /* Initialize the circular buffers used by the hilbert + * transform logic. + * A buffer is used for odd day and another for even days. + * This minimize the number of memory access and floating point + * operations needed (note also that by using static circular buffer, + * no large dynamic memory allocation is needed for storing + * intermediate calculation!). + */ + hilbertIdx = 0; + + INIT_HILBERT_VARIABLES(detrender); + INIT_HILBERT_VARIABLES(Q1); + INIT_HILBERT_VARIABLES(jI); + INIT_HILBERT_VARIABLES(jQ); + + period = 0.0; + outIdx = 0; + + prevI2 = prevQ2 = 0.0; + Re = Im = 0.0; + I1ForOddPrev3 = I1ForEvenPrev3 = 0.0; + I1ForOddPrev2 = I1ForEvenPrev2 = 0.0; + smoothPeriod = 0.0; + + for( i=0; i < SMOOTH_PRICE_SIZE; i++ ) + smoothPrice[i] = 0.0; + + /* The code is speed optimized and is most likely very + * hard to follow if you do not already know well the + * original algorithm. + * To understadn better, it is strongly suggested to look + * first at the Excel implementation in "test_MAMA.xls" included + * in this package. + */ + while( today <= endIdx ) + { + adjustedPrevPeriod = (0.075*period)+0.54; + + todayValue = inReal[today]; + DO_PRICE_WMA(todayValue,smoothedValue); + + /* Remember the smoothedValue into the smoothPrice + * circular buffer. + */ + smoothPrice[smoothPrice_Idx] = smoothedValue; + + if( (today%2) == 0 ) + { + /* Do the Hilbert Transforms for even price bar */ + DO_HILBERT_EVEN(detrender,smoothedValue); + DO_HILBERT_EVEN(Q1,detrender); + DO_HILBERT_EVEN(jI,I1ForEvenPrev3); + DO_HILBERT_EVEN(jQ,Q1); + if( ++hilbertIdx == 3 ) + hilbertIdx = 0; + + Q2 = (0.2*(Q1 + jI)) + (0.8*prevQ2); + I2 = (0.2*(I1ForEvenPrev3 - jQ)) + (0.8*prevI2); + + /* The variable I1 is the detrender delayed for + * 3 price bars. + * + * Save the current detrender value for being + * used by the "odd" logic later. + */ + I1ForOddPrev3 = I1ForOddPrev2; + I1ForOddPrev2 = detrender; + } + else + { + /* Do the Hilbert Transforms for odd price bar */ + DO_HILBERT_ODD(detrender,smoothedValue); + DO_HILBERT_ODD(Q1,detrender); + DO_HILBERT_ODD(jI,I1ForOddPrev3); + DO_HILBERT_ODD(jQ,Q1); + + Q2 = (0.2*(Q1 + jI)) + (0.8*prevQ2); + I2 = (0.2*(I1ForOddPrev3 - jQ)) + (0.8*prevI2); + + /* The varaiable I1 is the detrender delayed for + * 3 price bars. + * + * Save the current detrender value for being + * used by the "even" logic later. + */ + I1ForEvenPrev3 = I1ForEvenPrev2; + I1ForEvenPrev2 = detrender; + } + + /* Adjust the period for next price bar */ + Re = (0.2*((I2*prevI2)+(Q2*prevQ2)))+(0.8*Re); + Im = (0.2*((I2*prevQ2)-(Q2*prevI2)))+(0.8*Im); + prevQ2 = Q2; + prevI2 = I2; + tempReal = period; + if( (Im != 0.0) && (Re != 0.0) ) + period = 360.0 / (std_atan(Im/Re)*rad2Deg); + tempReal2 = 1.5*tempReal; + if( period > tempReal2) + period = tempReal2; + tempReal2 = 0.67*tempReal; + if( period < tempReal2 ) + period = tempReal2; + if( period < 6 ) + period = 6; + else if( period > 50 ) + period = 50; + period = (0.2*period) + (0.8 * tempReal); + + smoothPeriod = (0.33*period)+(0.67*smoothPeriod); + + /* Compute Trendline */ + DCPeriod = smoothPeriod+0.5; + DCPeriodInt = (int)DCPeriod; + + /* idx is used to iterate for up to 50 of the last + * value of smoothPrice. + */ + idx = today; + tempReal = 0.0; + for( i=0; i < DCPeriodInt; i++ ) + tempReal += inReal[idx--]; + + if( DCPeriodInt > 0 ) + tempReal = tempReal/(double)DCPeriodInt; + + tempReal2 = (4.0*tempReal + 3.0*iTrend1 + 2.0*iTrend2 + iTrend3) / 10.0; + iTrend3 = iTrend2; + iTrend2 = iTrend1; + iTrend1 = tempReal; + + if( today >= startIdx ) + { + outReal[outIdx++] = tempReal2; + } + + /* Ooof... let's do the next price bar now! */ + CIRCBUF_NEXT(smoothPrice); + today++; + } + + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::HtTrendline( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode htTrendline( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inReal[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_HT_TRENDLINE( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inReal[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ int outIdx, i; +/* Generated */ int lookbackTotal, today; +/* Generated */ double tempReal, tempReal2; +/* Generated */ double adjustedPrevPeriod, period; +/* Generated */ int trailingWMAIdx; +/* Generated */ double periodWMASum, periodWMASub, trailingWMAValue; +/* Generated */ double smoothedValue; +/* Generated */ double iTrend1, iTrend2, iTrend3; +/* Generated */ CONSTANT_DOUBLE(a) = 0.0962; +/* Generated */ CONSTANT_DOUBLE(b) = 0.5769; +/* Generated */ double hilbertTempReal; +/* Generated */ int hilbertIdx; +/* Generated */ HILBERT_VARIABLES( detrender ); +/* Generated */ HILBERT_VARIABLES( Q1 ); +/* Generated */ HILBERT_VARIABLES( jI ); +/* Generated */ HILBERT_VARIABLES( jQ ); +/* Generated */ double Q2, I2, prevQ2, prevI2, Re, Im; +/* Generated */ double I1ForOddPrev2, I1ForOddPrev3; +/* Generated */ double I1ForEvenPrev2, I1ForEvenPrev3; +/* Generated */ double rad2Deg; +/* Generated */ double todayValue, smoothPeriod; +/* Generated */ #define SMOOTH_PRICE_SIZE 50 +/* Generated */ CIRCBUF_PROLOG(smoothPrice,double,SMOOTH_PRICE_SIZE); +/* Generated */ int idx; +/* Generated */ int DCPeriodInt; +/* Generated */ double DCPeriod; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ CIRCBUF_INIT_LOCAL_ONLY(smoothPrice,double); +/* Generated */ iTrend1 = iTrend2 = iTrend3 = 0.0; +/* Generated */ tempReal = std_atan(1); +/* Generated */ rad2Deg = 45.0/tempReal; +/* Generated */ lookbackTotal = 63 + TA_GLOBALS_UNSTABLE_PERIOD(TA_FUNC_UNST_HT_TRENDLINE,HtTrendline); +/* Generated */ if( startIdx < lookbackTotal ) +/* Generated */ startIdx = lookbackTotal; +/* Generated */ if( startIdx > endIdx ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ trailingWMAIdx = startIdx - lookbackTotal; +/* Generated */ today = trailingWMAIdx; +/* Generated */ tempReal = inReal[today++]; +/* Generated */ periodWMASub = tempReal; +/* Generated */ periodWMASum = tempReal; +/* Generated */ tempReal = inReal[today++]; +/* Generated */ periodWMASub += tempReal; +/* Generated */ periodWMASum += tempReal*2.0; +/* Generated */ tempReal = inReal[today++]; +/* Generated */ periodWMASub += tempReal; +/* Generated */ periodWMASum += tempReal*3.0; +/* Generated */ trailingWMAValue = 0.0; +/* Generated */ #define DO_PRICE_WMA(varNewPrice,varToStoreSmoothedValue) { \ +/* Generated */ periodWMASub += varNewPrice; \ +/* Generated */ periodWMASub -= trailingWMAValue; \ +/* Generated */ periodWMASum += varNewPrice*4.0; \ +/* Generated */ trailingWMAValue = inReal[trailingWMAIdx++]; \ +/* Generated */ varToStoreSmoothedValue = periodWMASum*0.1; \ +/* Generated */ periodWMASum -= periodWMASub; \ +/* Generated */ } +/* Generated */ i = 34; +/* Generated */ do +/* Generated */ { +/* Generated */ tempReal = inReal[today++]; +/* Generated */ DO_PRICE_WMA(tempReal,smoothedValue); +/* Generated */ } while( --i != 0); +/* Generated */ hilbertIdx = 0; +/* Generated */ INIT_HILBERT_VARIABLES(detrender); +/* Generated */ INIT_HILBERT_VARIABLES(Q1); +/* Generated */ INIT_HILBERT_VARIABLES(jI); +/* Generated */ INIT_HILBERT_VARIABLES(jQ); +/* Generated */ period = 0.0; +/* Generated */ outIdx = 0; +/* Generated */ prevI2 = prevQ2 = 0.0; +/* Generated */ Re = Im = 0.0; +/* Generated */ I1ForOddPrev3 = I1ForEvenPrev3 = 0.0; +/* Generated */ I1ForOddPrev2 = I1ForEvenPrev2 = 0.0; +/* Generated */ smoothPeriod = 0.0; +/* Generated */ for( i=0; i < SMOOTH_PRICE_SIZE; i++ ) +/* Generated */ smoothPrice[i] = 0.0; +/* Generated */ while( today <= endIdx ) +/* Generated */ { +/* Generated */ adjustedPrevPeriod = (0.075*period)+0.54; +/* Generated */ todayValue = inReal[today]; +/* Generated */ DO_PRICE_WMA(todayValue,smoothedValue); +/* Generated */ smoothPrice[smoothPrice_Idx] = smoothedValue; +/* Generated */ if( (today%2) == 0 ) +/* Generated */ { +/* Generated */ DO_HILBERT_EVEN(detrender,smoothedValue); +/* Generated */ DO_HILBERT_EVEN(Q1,detrender); +/* Generated */ DO_HILBERT_EVEN(jI,I1ForEvenPrev3); +/* Generated */ DO_HILBERT_EVEN(jQ,Q1); +/* Generated */ if( ++hilbertIdx == 3 ) +/* Generated */ hilbertIdx = 0; +/* Generated */ Q2 = (0.2*(Q1 + jI)) + (0.8*prevQ2); +/* Generated */ I2 = (0.2*(I1ForEvenPrev3 - jQ)) + (0.8*prevI2); +/* Generated */ I1ForOddPrev3 = I1ForOddPrev2; +/* Generated */ I1ForOddPrev2 = detrender; +/* Generated */ } +/* Generated */ else +/* Generated */ { +/* Generated */ DO_HILBERT_ODD(detrender,smoothedValue); +/* Generated */ DO_HILBERT_ODD(Q1,detrender); +/* Generated */ DO_HILBERT_ODD(jI,I1ForOddPrev3); +/* Generated */ DO_HILBERT_ODD(jQ,Q1); +/* Generated */ Q2 = (0.2*(Q1 + jI)) + (0.8*prevQ2); +/* Generated */ I2 = (0.2*(I1ForOddPrev3 - jQ)) + (0.8*prevI2); +/* Generated */ I1ForEvenPrev3 = I1ForEvenPrev2; +/* Generated */ I1ForEvenPrev2 = detrender; +/* Generated */ } +/* Generated */ Re = (0.2*((I2*prevI2)+(Q2*prevQ2)))+(0.8*Re); +/* Generated */ Im = (0.2*((I2*prevQ2)-(Q2*prevI2)))+(0.8*Im); +/* Generated */ prevQ2 = Q2; +/* Generated */ prevI2 = I2; +/* Generated */ tempReal = period; +/* Generated */ if( (Im != 0.0) && (Re != 0.0) ) +/* Generated */ period = 360.0 / (std_atan(Im/Re)*rad2Deg); +/* Generated */ tempReal2 = 1.5*tempReal; +/* Generated */ if( period > tempReal2) +/* Generated */ period = tempReal2; +/* Generated */ tempReal2 = 0.67*tempReal; +/* Generated */ if( period < tempReal2 ) +/* Generated */ period = tempReal2; +/* Generated */ if( period < 6 ) +/* Generated */ period = 6; +/* Generated */ else if( period > 50 ) +/* Generated */ period = 50; +/* Generated */ period = (0.2*period) + (0.8 * tempReal); +/* Generated */ smoothPeriod = (0.33*period)+(0.67*smoothPeriod); +/* Generated */ DCPeriod = smoothPeriod+0.5; +/* Generated */ DCPeriodInt = (int)DCPeriod; +/* Generated */ idx = today; +/* Generated */ tempReal = 0.0; +/* Generated */ for( i=0; i < DCPeriodInt; i++ ) +/* Generated */ tempReal += inReal[idx--]; +/* Generated */ if( DCPeriodInt > 0 ) +/* Generated */ tempReal = tempReal/(double)DCPeriodInt; +/* Generated */ tempReal2 = (4.0*tempReal + 3.0*iTrend1 + 2.0*iTrend2 + iTrend3) / 10.0; +/* Generated */ iTrend3 = iTrend2; +/* Generated */ iTrend2 = iTrend1; +/* Generated */ iTrend1 = tempReal; +/* Generated */ if( today >= startIdx ) +/* Generated */ { +/* Generated */ outReal[outIdx++] = tempReal2; +/* Generated */ } +/* Generated */ CIRCBUF_NEXT(smoothPrice); +/* Generated */ today++; +/* Generated */ } +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_HT_TRENDMODE.c b/src/ta_func/ta_HT_TRENDMODE.c new file mode 100644 index 000000000..cbceb127b --- /dev/null +++ b/src/ta_func/ta_HT_TRENDMODE.c @@ -0,0 +1,794 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * MF Mario Fortier + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 120802 MF Template creation. + * 052603 MF Adapt code to compile with .NET Managed C++ + * + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::HtTrendModeLookback( void ) +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int htTrendModeLookback( ) +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_HT_TRENDMODE_Lookback( void ) +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ /* No parameters to validate. */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + + /* 31 input are skip + * +32 output are skip to account for misc lookback + * --- + * 63 Total Lookback + * + * 31 is for being compatible with Tradestation. + * See TA_MAMA_Lookback for an explanation of the "32". + */ + return 63 + TA_GLOBALS_UNSTABLE_PERIOD(TA_FUNC_UNST_HT_TRENDMODE,HtTrendMode); +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_HT_TRENDMODE - Hilbert Transform - Trend vs Cycle Mode + * + * Input = double + * Output = int + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::HtTrendMode( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inReal, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::HtTrendMode( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode htTrendMode( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inReal[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_HT_TRENDMODE( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inReal[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + int outIdx, i; + int lookbackTotal, today; + double tempReal, tempReal2; + + double adjustedPrevPeriod, period; + + /* Variable used for the price smoother (a weighted moving average). */ + int trailingWMAIdx; + double periodWMASum, periodWMASub, trailingWMAValue; + double smoothedValue; + + /* Variable to keep track of the last 3 ITrend */ + double iTrend1, iTrend2, iTrend3; + + /* Variables used for the Hilbert Transormation */ + CONSTANT_DOUBLE(a) = 0.0962; + CONSTANT_DOUBLE(b) = 0.5769; + double hilbertTempReal; + int hilbertIdx; + + HILBERT_VARIABLES( detrender ); + HILBERT_VARIABLES( Q1 ); + HILBERT_VARIABLES( jI ); + HILBERT_VARIABLES( jQ ); + + double Q2, I2, prevQ2, prevI2, Re, Im; + + double I1ForOddPrev2, I1ForOddPrev3; + double I1ForEvenPrev2, I1ForEvenPrev3; + + double rad2Deg, deg2Rad, constDeg2RadBy360; + + double todayValue, smoothPeriod; + + /* Variable used to keep track of the previous + * smooth price. In the case of this algorithm, + * we will never need more than 50 values. + */ + #define SMOOTH_PRICE_SIZE 50 + CIRCBUF_PROLOG(smoothPrice,double,SMOOTH_PRICE_SIZE); + int idx; + + /* Variable used to calculate the dominant cycle phase */ + int DCPeriodInt; + double DCPhase, DCPeriod, imagPart, realPart; + + /* Variable used to calculate the trend mode */ + int daysInTrend, trend; + double prevDCPhase, trendline; + double prevSine, prevLeadSine, sine, leadSine; + + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInteger ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Insert TA function code here. */ + + CIRCBUF_INIT_LOCAL_ONLY(smoothPrice,double); + + iTrend1 = iTrend2 = iTrend3 = 0.0; + daysInTrend = 0; + prevDCPhase = DCPhase = 0.0; + prevSine = sine = 0.0; + prevLeadSine = leadSine = 0.0; + + /* The following could be replaced by constant eventually. */ + tempReal = std_atan(1); + rad2Deg = 45.0/tempReal; + deg2Rad = 1.0/rad2Deg; + constDeg2RadBy360 = tempReal*8.0; + + /* Identify the minimum number of price bar needed + * to calculate at least one output. + */ + lookbackTotal = 63 + TA_GLOBALS_UNSTABLE_PERIOD(TA_FUNC_UNST_HT_TRENDMODE,HtTrendMode); + + /* Move up the start index if there is not + * enough initial data. + */ + if( startIdx < lookbackTotal ) + startIdx = lookbackTotal; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + + /* Initialize the price smoother, which is simply a weighted + * moving average of the price. + * To understand this algorithm, I strongly suggest to understand + * first how TA_WMA is done. + */ + trailingWMAIdx = startIdx - lookbackTotal; + today = trailingWMAIdx; + + /* Initialization is same as WMA, except loop is unrolled + * for speed optimization. + */ + tempReal = inReal[today++]; + periodWMASub = tempReal; + periodWMASum = tempReal; + tempReal = inReal[today++]; + periodWMASub += tempReal; + periodWMASum += tempReal*2.0; + tempReal = inReal[today++]; + periodWMASub += tempReal; + periodWMASum += tempReal*3.0; + + trailingWMAValue = 0.0; + + /* Subsequent WMA value are evaluated by using + * the DO_PRICE_WMA macro. + */ + #define DO_PRICE_WMA(varNewPrice,varToStoreSmoothedValue) { \ + periodWMASub += varNewPrice; \ + periodWMASub -= trailingWMAValue; \ + periodWMASum += varNewPrice*4.0; \ + trailingWMAValue = inReal[trailingWMAIdx++]; \ + varToStoreSmoothedValue = periodWMASum*0.1; \ + periodWMASum -= periodWMASub; \ + } + + i = 34; + do + { + tempReal = inReal[today++]; + DO_PRICE_WMA(tempReal,smoothedValue); + } while( --i != 0); + + /* Initialize the circular buffers used by the hilbert + * transform logic. + * A buffer is used for odd day and another for even days. + * This minimize the number of memory access and floating point + * operations needed (note also that by using static circular buffer, + * no large dynamic memory allocation is needed for storing + * intermediate calculation!). + */ + hilbertIdx = 0; + + INIT_HILBERT_VARIABLES(detrender); + INIT_HILBERT_VARIABLES(Q1); + INIT_HILBERT_VARIABLES(jI); + INIT_HILBERT_VARIABLES(jQ); + + period = 0.0; + outIdx = 0; + + prevI2 = prevQ2 = 0.0; + Re = Im = 0.0; + I1ForOddPrev3 = I1ForEvenPrev3 = 0.0; + I1ForOddPrev2 = I1ForEvenPrev2 = 0.0; + smoothPeriod = 0.0; + + for( i=0; i < SMOOTH_PRICE_SIZE; i++ ) + smoothPrice[i] = 0.0; + + /* The code is speed optimized and is most likely very + * hard to follow if you do not already know well the + * original algorithm. + * To understadn better, it is strongly suggested to look + * first at the Excel implementation in "test_MAMA.xls" included + * in this package. + */ + DCPhase = 0.0; + while( today <= endIdx ) + { + adjustedPrevPeriod = (0.075*period)+0.54; + + todayValue = inReal[today]; + DO_PRICE_WMA(todayValue,smoothedValue); + + /* Remember the smoothedValue into the smoothPrice + * circular buffer. + */ + smoothPrice[smoothPrice_Idx] = smoothedValue; + + if( (today%2) == 0 ) + { + /* Do the Hilbert Transforms for even price bar */ + DO_HILBERT_EVEN(detrender,smoothedValue); + DO_HILBERT_EVEN(Q1,detrender); + DO_HILBERT_EVEN(jI,I1ForEvenPrev3); + DO_HILBERT_EVEN(jQ,Q1); + if( ++hilbertIdx == 3 ) + hilbertIdx = 0; + + Q2 = (0.2*(Q1 + jI)) + (0.8*prevQ2); + I2 = (0.2*(I1ForEvenPrev3 - jQ)) + (0.8*prevI2); + + /* The variable I1 is the detrender delayed for + * 3 price bars. + * + * Save the current detrender value for being + * used by the "odd" logic later. + */ + I1ForOddPrev3 = I1ForOddPrev2; + I1ForOddPrev2 = detrender; + } + else + { + /* Do the Hilbert Transforms for odd price bar */ + DO_HILBERT_ODD(detrender,smoothedValue); + DO_HILBERT_ODD(Q1,detrender); + DO_HILBERT_ODD(jI,I1ForOddPrev3); + DO_HILBERT_ODD(jQ,Q1); + + Q2 = (0.2*(Q1 + jI)) + (0.8*prevQ2); + I2 = (0.2*(I1ForOddPrev3 - jQ)) + (0.8*prevI2); + + /* The varaiable I1 is the detrender delayed for + * 3 price bars. + * + * Save the current detrender value for being + * used by the "even" logic later. + */ + I1ForEvenPrev3 = I1ForEvenPrev2; + I1ForEvenPrev2 = detrender; + } + + /* Adjust the period for next price bar */ + Re = (0.2*((I2*prevI2)+(Q2*prevQ2)))+(0.8*Re); + Im = (0.2*((I2*prevQ2)-(Q2*prevI2)))+(0.8*Im); + prevQ2 = Q2; + prevI2 = I2; + tempReal = period; + if( (Im != 0.0) && (Re != 0.0) ) + period = 360.0 / (std_atan(Im/Re)*rad2Deg); + tempReal2 = 1.5*tempReal; + if( period > tempReal2) + period = tempReal2; + tempReal2 = 0.67*tempReal; + if( period < tempReal2 ) + period = tempReal2; + if( period < 6 ) + period = 6; + else if( period > 50 ) + period = 50; + period = (0.2*period) + (0.8 * tempReal); + + smoothPeriod = (0.33*period)+(0.67*smoothPeriod); + + /* Compute Dominant Cycle Phase */ + prevDCPhase = DCPhase; + DCPeriod = smoothPeriod+0.5; + DCPeriodInt = (int)DCPeriod; + realPart = 0.0; + imagPart = 0.0; + + /* idx is used to iterate for up to 50 of the last + * value of smoothPrice. + */ + idx = smoothPrice_Idx; + for( i=0; i < DCPeriodInt; i++ ) + { + tempReal = ((double)i*constDeg2RadBy360)/(double)DCPeriodInt; + tempReal2 = smoothPrice[idx]; + realPart += std_sin(tempReal)*tempReal2; + imagPart += std_cos(tempReal)*tempReal2; + if( idx == 0 ) + idx = SMOOTH_PRICE_SIZE-1; + else + idx--; + } + + tempReal = std_fabs(imagPart); + if( tempReal > 0.0 ) + DCPhase = std_atan(realPart/imagPart)*rad2Deg; + else if( tempReal <= 0.01 ) + { + if( realPart < 0.0 ) + DCPhase -= 90.0; + else if( realPart > 0.0 ) + DCPhase += 90.0; + } + DCPhase += 90.0; + + /* Compensate for one bar lag of the weighted moving average */ + DCPhase += 360.0 / smoothPeriod; + if( imagPart < 0.0 ) + DCPhase += 180.0; + if( DCPhase > 315.0 ) + DCPhase -= 360.0; + + prevSine = sine; + prevLeadSine = leadSine; + sine = std_sin(DCPhase*deg2Rad); + leadSine = std_sin((DCPhase+45)*deg2Rad); + + /* Compute Trendline */ + DCPeriod = smoothPeriod+0.5; + DCPeriodInt = (int)DCPeriod; + + /* idx is used to iterate for up to 50 of the last + * value of smoothPrice. + */ + idx = today; + tempReal = 0.0; + for( i=0; i < DCPeriodInt; i++ ) + tempReal += inReal[idx--]; + + if( DCPeriodInt > 0 ) + tempReal = tempReal/(double)DCPeriodInt; + + trendline = (4.0*tempReal + 3.0*iTrend1 + 2.0*iTrend2 + iTrend3) / 10.0; + iTrend3 = iTrend2; + iTrend2 = iTrend1; + iTrend1 = tempReal; + + /* Compute the trend Mode , and assume trend by default */ + trend = 1; + + /* Measure days in trend from last crossing of the SineWave Indicator lines */ + if( ((sine > leadSine) && (prevSine <= prevLeadSine)) || + ((sine < leadSine) && (prevSine >= prevLeadSine)) ) + { + daysInTrend = 0; + trend = 0; + } + + daysInTrend++; + + if( daysInTrend < (0.5*smoothPeriod) ) + trend = 0; + + tempReal = DCPhase - prevDCPhase; + if( (smoothPeriod != 0.0) && + ((tempReal > (0.67*360.0/smoothPeriod)) && (tempReal < (1.5*360.0/smoothPeriod))) ) + { + trend = 0; + } + + tempReal = smoothPrice[smoothPrice_Idx]; + if( (trendline != 0.0) && (std_fabs( (tempReal - trendline)/trendline ) >= 0.015) ) + trend = 1; + + if( today >= startIdx ) + { + outInteger[outIdx++] = trend; + } + + /* Ooof... let's do the next price bar now! */ + CIRCBUF_NEXT(smoothPrice); + today++; + } + + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::HtTrendMode( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode htTrendMode( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inReal[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_HT_TRENDMODE( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inReal[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ int outIdx, i; +/* Generated */ int lookbackTotal, today; +/* Generated */ double tempReal, tempReal2; +/* Generated */ double adjustedPrevPeriod, period; +/* Generated */ int trailingWMAIdx; +/* Generated */ double periodWMASum, periodWMASub, trailingWMAValue; +/* Generated */ double smoothedValue; +/* Generated */ double iTrend1, iTrend2, iTrend3; +/* Generated */ CONSTANT_DOUBLE(a) = 0.0962; +/* Generated */ CONSTANT_DOUBLE(b) = 0.5769; +/* Generated */ double hilbertTempReal; +/* Generated */ int hilbertIdx; +/* Generated */ HILBERT_VARIABLES( detrender ); +/* Generated */ HILBERT_VARIABLES( Q1 ); +/* Generated */ HILBERT_VARIABLES( jI ); +/* Generated */ HILBERT_VARIABLES( jQ ); +/* Generated */ double Q2, I2, prevQ2, prevI2, Re, Im; +/* Generated */ double I1ForOddPrev2, I1ForOddPrev3; +/* Generated */ double I1ForEvenPrev2, I1ForEvenPrev3; +/* Generated */ double rad2Deg, deg2Rad, constDeg2RadBy360; +/* Generated */ double todayValue, smoothPeriod; +/* Generated */ #define SMOOTH_PRICE_SIZE 50 +/* Generated */ CIRCBUF_PROLOG(smoothPrice,double,SMOOTH_PRICE_SIZE); +/* Generated */ int idx; +/* Generated */ int DCPeriodInt; +/* Generated */ double DCPhase, DCPeriod, imagPart, realPart; +/* Generated */ int daysInTrend, trend; +/* Generated */ double prevDCPhase, trendline; +/* Generated */ double prevSine, prevLeadSine, sine, leadSine; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInteger ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ CIRCBUF_INIT_LOCAL_ONLY(smoothPrice,double); +/* Generated */ iTrend1 = iTrend2 = iTrend3 = 0.0; +/* Generated */ daysInTrend = 0; +/* Generated */ prevDCPhase = DCPhase = 0.0; +/* Generated */ prevSine = sine = 0.0; +/* Generated */ prevLeadSine = leadSine = 0.0; +/* Generated */ tempReal = std_atan(1); +/* Generated */ rad2Deg = 45.0/tempReal; +/* Generated */ deg2Rad = 1.0/rad2Deg; +/* Generated */ constDeg2RadBy360 = tempReal*8.0; +/* Generated */ lookbackTotal = 63 + TA_GLOBALS_UNSTABLE_PERIOD(TA_FUNC_UNST_HT_TRENDMODE,HtTrendMode); +/* Generated */ if( startIdx < lookbackTotal ) +/* Generated */ startIdx = lookbackTotal; +/* Generated */ if( startIdx > endIdx ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ trailingWMAIdx = startIdx - lookbackTotal; +/* Generated */ today = trailingWMAIdx; +/* Generated */ tempReal = inReal[today++]; +/* Generated */ periodWMASub = tempReal; +/* Generated */ periodWMASum = tempReal; +/* Generated */ tempReal = inReal[today++]; +/* Generated */ periodWMASub += tempReal; +/* Generated */ periodWMASum += tempReal*2.0; +/* Generated */ tempReal = inReal[today++]; +/* Generated */ periodWMASub += tempReal; +/* Generated */ periodWMASum += tempReal*3.0; +/* Generated */ trailingWMAValue = 0.0; +/* Generated */ #define DO_PRICE_WMA(varNewPrice,varToStoreSmoothedValue) { \ +/* Generated */ periodWMASub += varNewPrice; \ +/* Generated */ periodWMASub -= trailingWMAValue; \ +/* Generated */ periodWMASum += varNewPrice*4.0; \ +/* Generated */ trailingWMAValue = inReal[trailingWMAIdx++]; \ +/* Generated */ varToStoreSmoothedValue = periodWMASum*0.1; \ +/* Generated */ periodWMASum -= periodWMASub; \ +/* Generated */ } +/* Generated */ i = 34; +/* Generated */ do +/* Generated */ { +/* Generated */ tempReal = inReal[today++]; +/* Generated */ DO_PRICE_WMA(tempReal,smoothedValue); +/* Generated */ } while( --i != 0); +/* Generated */ hilbertIdx = 0; +/* Generated */ INIT_HILBERT_VARIABLES(detrender); +/* Generated */ INIT_HILBERT_VARIABLES(Q1); +/* Generated */ INIT_HILBERT_VARIABLES(jI); +/* Generated */ INIT_HILBERT_VARIABLES(jQ); +/* Generated */ period = 0.0; +/* Generated */ outIdx = 0; +/* Generated */ prevI2 = prevQ2 = 0.0; +/* Generated */ Re = Im = 0.0; +/* Generated */ I1ForOddPrev3 = I1ForEvenPrev3 = 0.0; +/* Generated */ I1ForOddPrev2 = I1ForEvenPrev2 = 0.0; +/* Generated */ smoothPeriod = 0.0; +/* Generated */ for( i=0; i < SMOOTH_PRICE_SIZE; i++ ) +/* Generated */ smoothPrice[i] = 0.0; +/* Generated */ DCPhase = 0.0; +/* Generated */ while( today <= endIdx ) +/* Generated */ { +/* Generated */ adjustedPrevPeriod = (0.075*period)+0.54; +/* Generated */ todayValue = inReal[today]; +/* Generated */ DO_PRICE_WMA(todayValue,smoothedValue); +/* Generated */ smoothPrice[smoothPrice_Idx] = smoothedValue; +/* Generated */ if( (today%2) == 0 ) +/* Generated */ { +/* Generated */ DO_HILBERT_EVEN(detrender,smoothedValue); +/* Generated */ DO_HILBERT_EVEN(Q1,detrender); +/* Generated */ DO_HILBERT_EVEN(jI,I1ForEvenPrev3); +/* Generated */ DO_HILBERT_EVEN(jQ,Q1); +/* Generated */ if( ++hilbertIdx == 3 ) +/* Generated */ hilbertIdx = 0; +/* Generated */ Q2 = (0.2*(Q1 + jI)) + (0.8*prevQ2); +/* Generated */ I2 = (0.2*(I1ForEvenPrev3 - jQ)) + (0.8*prevI2); +/* Generated */ I1ForOddPrev3 = I1ForOddPrev2; +/* Generated */ I1ForOddPrev2 = detrender; +/* Generated */ } +/* Generated */ else +/* Generated */ { +/* Generated */ DO_HILBERT_ODD(detrender,smoothedValue); +/* Generated */ DO_HILBERT_ODD(Q1,detrender); +/* Generated */ DO_HILBERT_ODD(jI,I1ForOddPrev3); +/* Generated */ DO_HILBERT_ODD(jQ,Q1); +/* Generated */ Q2 = (0.2*(Q1 + jI)) + (0.8*prevQ2); +/* Generated */ I2 = (0.2*(I1ForOddPrev3 - jQ)) + (0.8*prevI2); +/* Generated */ I1ForEvenPrev3 = I1ForEvenPrev2; +/* Generated */ I1ForEvenPrev2 = detrender; +/* Generated */ } +/* Generated */ Re = (0.2*((I2*prevI2)+(Q2*prevQ2)))+(0.8*Re); +/* Generated */ Im = (0.2*((I2*prevQ2)-(Q2*prevI2)))+(0.8*Im); +/* Generated */ prevQ2 = Q2; +/* Generated */ prevI2 = I2; +/* Generated */ tempReal = period; +/* Generated */ if( (Im != 0.0) && (Re != 0.0) ) +/* Generated */ period = 360.0 / (std_atan(Im/Re)*rad2Deg); +/* Generated */ tempReal2 = 1.5*tempReal; +/* Generated */ if( period > tempReal2) +/* Generated */ period = tempReal2; +/* Generated */ tempReal2 = 0.67*tempReal; +/* Generated */ if( period < tempReal2 ) +/* Generated */ period = tempReal2; +/* Generated */ if( period < 6 ) +/* Generated */ period = 6; +/* Generated */ else if( period > 50 ) +/* Generated */ period = 50; +/* Generated */ period = (0.2*period) + (0.8 * tempReal); +/* Generated */ smoothPeriod = (0.33*period)+(0.67*smoothPeriod); +/* Generated */ prevDCPhase = DCPhase; +/* Generated */ DCPeriod = smoothPeriod+0.5; +/* Generated */ DCPeriodInt = (int)DCPeriod; +/* Generated */ realPart = 0.0; +/* Generated */ imagPart = 0.0; +/* Generated */ idx = smoothPrice_Idx; +/* Generated */ for( i=0; i < DCPeriodInt; i++ ) +/* Generated */ { +/* Generated */ tempReal = ((double)i*constDeg2RadBy360)/(double)DCPeriodInt; +/* Generated */ tempReal2 = smoothPrice[idx]; +/* Generated */ realPart += std_sin(tempReal)*tempReal2; +/* Generated */ imagPart += std_cos(tempReal)*tempReal2; +/* Generated */ if( idx == 0 ) +/* Generated */ idx = SMOOTH_PRICE_SIZE-1; +/* Generated */ else +/* Generated */ idx--; +/* Generated */ } +/* Generated */ tempReal = std_fabs(imagPart); +/* Generated */ if( tempReal > 0.0 ) +/* Generated */ DCPhase = std_atan(realPart/imagPart)*rad2Deg; +/* Generated */ else if( tempReal <= 0.01 ) +/* Generated */ { +/* Generated */ if( realPart < 0.0 ) +/* Generated */ DCPhase -= 90.0; +/* Generated */ else if( realPart > 0.0 ) +/* Generated */ DCPhase += 90.0; +/* Generated */ } +/* Generated */ DCPhase += 90.0; +/* Generated */ DCPhase += 360.0 / smoothPeriod; +/* Generated */ if( imagPart < 0.0 ) +/* Generated */ DCPhase += 180.0; +/* Generated */ if( DCPhase > 315.0 ) +/* Generated */ DCPhase -= 360.0; +/* Generated */ prevSine = sine; +/* Generated */ prevLeadSine = leadSine; +/* Generated */ sine = std_sin(DCPhase*deg2Rad); +/* Generated */ leadSine = std_sin((DCPhase+45)*deg2Rad); +/* Generated */ DCPeriod = smoothPeriod+0.5; +/* Generated */ DCPeriodInt = (int)DCPeriod; +/* Generated */ idx = today; +/* Generated */ tempReal = 0.0; +/* Generated */ for( i=0; i < DCPeriodInt; i++ ) +/* Generated */ tempReal += inReal[idx--]; +/* Generated */ if( DCPeriodInt > 0 ) +/* Generated */ tempReal = tempReal/(double)DCPeriodInt; +/* Generated */ trendline = (4.0*tempReal + 3.0*iTrend1 + 2.0*iTrend2 + iTrend3) / 10.0; +/* Generated */ iTrend3 = iTrend2; +/* Generated */ iTrend2 = iTrend1; +/* Generated */ iTrend1 = tempReal; +/* Generated */ trend = 1; +/* Generated */ if( ((sine > leadSine) && (prevSine <= prevLeadSine)) || +/* Generated */ ((sine < leadSine) && (prevSine >= prevLeadSine)) ) +/* Generated */ { +/* Generated */ daysInTrend = 0; +/* Generated */ trend = 0; +/* Generated */ } +/* Generated */ daysInTrend++; +/* Generated */ if( daysInTrend < (0.5*smoothPeriod) ) +/* Generated */ trend = 0; +/* Generated */ tempReal = DCPhase - prevDCPhase; +/* Generated */ if( (smoothPeriod != 0.0) && +/* Generated */ ((tempReal > (0.67*360.0/smoothPeriod)) && (tempReal < (1.5*360.0/smoothPeriod))) ) +/* Generated */ { +/* Generated */ trend = 0; +/* Generated */ } +/* Generated */ tempReal = smoothPrice[smoothPrice_Idx]; +/* Generated */ if( (trendline != 0.0) && (std_fabs( (tempReal - trendline)/trendline ) >= 0.015) ) +/* Generated */ trend = 1; +/* Generated */ if( today >= startIdx ) +/* Generated */ { +/* Generated */ outInteger[outIdx++] = trend; +/* Generated */ } +/* Generated */ CIRCBUF_NEXT(smoothPrice); +/* Generated */ today++; +/* Generated */ } +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_KAMA.c b/src/ta_func/ta_KAMA.c new file mode 100644 index 000000000..eb1884289 --- /dev/null +++ b/src/ta_func/ta_KAMA.c @@ -0,0 +1,497 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * MF Mario Fortier + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 120802 MF Template creation. + * 052603 MF Adapt code to compile with .NET Managed C++ + * 062704 MF Fix limit case to avoid divid by zero (or by + * a value close to zero induce by the imprecision + * of floating points). + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::KamaLookback( int optInTimePeriod ) /* From 2 to 100000 */ +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int kamaLookback( int optInTimePeriod ) /* From 2 to 100000 */ +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_KAMA_Lookback( int optInTimePeriod ) /* From 2 to 100000 */ +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ /* min/max are checked for optInTimePeriod. */ +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 30; +/* Generated */ else if( ((int)optInTimePeriod < 2) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return -1; +/* Generated */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + return optInTimePeriod + TA_GLOBALS_UNSTABLE_PERIOD(TA_FUNC_UNST_KAMA,Kama); +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_KAMA - Kaufman Adaptive Moving Average + * + * Input = double + * Output = double + * + * Optional Parameters + * ------------------- + * optInTimePeriod:(From 2 to 100000) + * Number of period + * + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::Kama( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inReal, +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::Kama( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode kama( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inReal[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_KAMA( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inReal[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + + CONSTANT_DOUBLE(constMax) = 2.0/(30.0+1.0); + CONSTANT_DOUBLE(constDiff) = 2.0/(2.0+1.0) - constMax; + + double tempReal, tempReal2; + double sumROC1, periodROC, prevKAMA; + int i, today, outIdx, lookbackTotal; + int trailingIdx; + double trailingValue; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ /* min/max are checked for optInTimePeriod. */ +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 30; +/* Generated */ else if( ((int)optInTimePeriod < 2) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Insert TA function code here. */ + + /* Default return values */ + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + + /* Identify the minimum number of price bar needed + * to calculate at least one output. + */ + lookbackTotal = optInTimePeriod + TA_GLOBALS_UNSTABLE_PERIOD(TA_FUNC_UNST_KAMA,Kama); + + /* Move up the start index if there is not + * enough initial data. + */ + if( startIdx < lookbackTotal ) + startIdx = lookbackTotal; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + + /* Initialize the variables by going through + * the lookback period. + */ + sumROC1 = 0.0; + today = startIdx-lookbackTotal; + trailingIdx = today; + i = optInTimePeriod; + while( i-- > 0 ) + { + tempReal = inReal[today++]; + tempReal -= inReal[today]; + sumROC1 += std_fabs(tempReal); + } + + /* At this point sumROC1 represent the + * summation of the 1-day price difference + * over the (optInTimePeriod-1) + */ + + /* Calculate the first KAMA */ + + /* The yesterday price is used here as the previous KAMA. */ + prevKAMA = inReal[today-1]; + + tempReal = inReal[today]; + tempReal2 = inReal[trailingIdx++]; + periodROC = tempReal-tempReal2; + + /* Save the trailing value. Do this because inReal + * and outReal can be pointers to the same buffer. + */ + trailingValue = tempReal2; + + /* Calculate the efficiency ratio */ + if( (sumROC1 <= periodROC) || TA_IS_ZERO(sumROC1)) + tempReal = 1.0; + else + tempReal = std_fabs(periodROC/sumROC1); + + /* Calculate the smoothing constant */ + tempReal = (tempReal*constDiff)+constMax; + tempReal *= tempReal; + + /* Calculate the KAMA like an EMA, using the + * smoothing constant as the adaptive factor. + */ + prevKAMA = ((inReal[today++]-prevKAMA)*tempReal) + prevKAMA; + + /* 'today' keep track of where the processing is within the + * input. + */ + + /* Skip the unstable period. Do the whole processing + * needed for KAMA, but do not write it in the output. + */ + while( today <= startIdx ) + { + tempReal = inReal[today]; + tempReal2 = inReal[trailingIdx++]; + periodROC = tempReal-tempReal2; + + /* Adjust sumROC1: + * - Remove trailing ROC1 + * - Add new ROC1 + */ + sumROC1 -= std_fabs(trailingValue-tempReal2); + sumROC1 += std_fabs(tempReal-inReal[today-1]); + + /* Save the trailing value. Do this because inReal + * and outReal can be pointers to the same buffer. + */ + trailingValue = tempReal2; + + /* Calculate the efficiency ratio */ + if( (sumROC1 <= periodROC) || TA_IS_ZERO(sumROC1) ) + tempReal = 1.0; + else + tempReal = std_fabs(periodROC/sumROC1); + + /* Calculate the smoothing constant */ + tempReal = (tempReal*constDiff)+constMax; + tempReal *= tempReal; + + /* Calculate the KAMA like an EMA, using the + * smoothing constant as the adaptive factor. + */ + prevKAMA = ((inReal[today++]-prevKAMA)*tempReal) + prevKAMA; + } + + /* Write the first value. */ + outReal[0] = prevKAMA; + outIdx = 1; + VALUE_HANDLE_DEREF(outBegIdx) = today-1; + + /* Do the KAMA calculation for the requested range. */ + while( today <= endIdx ) + { + tempReal = inReal[today]; + tempReal2 = inReal[trailingIdx++]; + periodROC = tempReal-tempReal2; + + /* Adjust sumROC1: + * - Remove trailing ROC1 + * - Add new ROC1 + */ + sumROC1 -= std_fabs(trailingValue-tempReal2); + sumROC1 += std_fabs(tempReal-inReal[today-1]); + + /* Save the trailing value. Do this because inReal + * and outReal can be pointers to the same buffer. + */ + trailingValue = tempReal2; + + /* Calculate the efficiency ratio */ + if( (sumROC1 <= periodROC) || TA_IS_ZERO(sumROC1) ) + tempReal = 1.0; + else + tempReal = std_fabs(periodROC / sumROC1); + + /* Calculate the smoothing constant */ + tempReal = (tempReal*constDiff)+constMax; + tempReal *= tempReal; + + /* Calculate the KAMA like an EMA, using the + * smoothing constant as the adaptive factor. + */ + prevKAMA = ((inReal[today++]-prevKAMA)*tempReal) + prevKAMA; + outReal[outIdx++] = prevKAMA; + } + + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::Kama( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode kama( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inReal[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_KAMA( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inReal[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ CONSTANT_DOUBLE(constMax) = 2.0/(30.0+1.0); +/* Generated */ CONSTANT_DOUBLE(constDiff) = 2.0/(2.0+1.0) - constMax; +/* Generated */ double tempReal, tempReal2; +/* Generated */ double sumROC1, periodROC, prevKAMA; +/* Generated */ int i, today, outIdx, lookbackTotal; +/* Generated */ int trailingIdx; +/* Generated */ double trailingValue; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 30; +/* Generated */ else if( ((int)optInTimePeriod < 2) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ lookbackTotal = optInTimePeriod + TA_GLOBALS_UNSTABLE_PERIOD(TA_FUNC_UNST_KAMA,Kama); +/* Generated */ if( startIdx < lookbackTotal ) +/* Generated */ startIdx = lookbackTotal; +/* Generated */ if( startIdx > endIdx ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ sumROC1 = 0.0; +/* Generated */ today = startIdx-lookbackTotal; +/* Generated */ trailingIdx = today; +/* Generated */ i = optInTimePeriod; +/* Generated */ while( i-- > 0 ) +/* Generated */ { +/* Generated */ tempReal = inReal[today++]; +/* Generated */ tempReal -= inReal[today]; +/* Generated */ sumROC1 += std_fabs(tempReal); +/* Generated */ } +/* Generated */ prevKAMA = inReal[today-1]; +/* Generated */ tempReal = inReal[today]; +/* Generated */ tempReal2 = inReal[trailingIdx++]; +/* Generated */ periodROC = tempReal-tempReal2; +/* Generated */ trailingValue = tempReal2; +/* Generated */ if( (sumROC1 <= periodROC) || TA_IS_ZERO(sumROC1)) +/* Generated */ tempReal = 1.0; +/* Generated */ else +/* Generated */ tempReal = std_fabs(periodROC/sumROC1); +/* Generated */ tempReal = (tempReal*constDiff)+constMax; +/* Generated */ tempReal *= tempReal; +/* Generated */ prevKAMA = ((inReal[today++]-prevKAMA)*tempReal) + prevKAMA; +/* Generated */ while( today <= startIdx ) +/* Generated */ { +/* Generated */ tempReal = inReal[today]; +/* Generated */ tempReal2 = inReal[trailingIdx++]; +/* Generated */ periodROC = tempReal-tempReal2; +/* Generated */ sumROC1 -= std_fabs(trailingValue-tempReal2); +/* Generated */ sumROC1 += std_fabs(tempReal-inReal[today-1]); +/* Generated */ trailingValue = tempReal2; +/* Generated */ if( (sumROC1 <= periodROC) || TA_IS_ZERO(sumROC1) ) +/* Generated */ tempReal = 1.0; +/* Generated */ else +/* Generated */ tempReal = std_fabs(periodROC/sumROC1); +/* Generated */ tempReal = (tempReal*constDiff)+constMax; +/* Generated */ tempReal *= tempReal; +/* Generated */ prevKAMA = ((inReal[today++]-prevKAMA)*tempReal) + prevKAMA; +/* Generated */ } +/* Generated */ outReal[0] = prevKAMA; +/* Generated */ outIdx = 1; +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = today-1; +/* Generated */ while( today <= endIdx ) +/* Generated */ { +/* Generated */ tempReal = inReal[today]; +/* Generated */ tempReal2 = inReal[trailingIdx++]; +/* Generated */ periodROC = tempReal-tempReal2; +/* Generated */ sumROC1 -= std_fabs(trailingValue-tempReal2); +/* Generated */ sumROC1 += std_fabs(tempReal-inReal[today-1]); +/* Generated */ trailingValue = tempReal2; +/* Generated */ if( (sumROC1 <= periodROC) || TA_IS_ZERO(sumROC1) ) +/* Generated */ tempReal = 1.0; +/* Generated */ else +/* Generated */ tempReal = std_fabs(periodROC / sumROC1); +/* Generated */ tempReal = (tempReal*constDiff)+constMax; +/* Generated */ tempReal *= tempReal; +/* Generated */ prevKAMA = ((inReal[today++]-prevKAMA)*tempReal) + prevKAMA; +/* Generated */ outReal[outIdx++] = prevKAMA; +/* Generated */ } +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_LINEARREG.c b/src/ta_func/ta_LINEARREG.c new file mode 100644 index 000000000..579186784 --- /dev/null +++ b/src/ta_func/ta_LINEARREG.c @@ -0,0 +1,354 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * JP John Price + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 070203 JP Initial. + * + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::LinearRegLookback( int optInTimePeriod ) /* From 2 to 100000 */ +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int linearRegLookback( int optInTimePeriod ) /* From 2 to 100000 */ +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_LINEARREG_Lookback( int optInTimePeriod ) /* From 2 to 100000 */ +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ /* min/max are checked for optInTimePeriod. */ +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 14; +/* Generated */ else if( ((int)optInTimePeriod < 2) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return -1; +/* Generated */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + return optInTimePeriod-1; +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_LINEARREG - Linear Regression + * + * Input = double + * Output = double + * + * Optional Parameters + * ------------------- + * optInTimePeriod:(From 2 to 100000) + * Number of period + * + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::LinearReg( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inReal, +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::LinearReg( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode linearReg( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inReal[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_LINEARREG( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inReal[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + int outIdx; + + int today, lookbackTotal; + double SumX, SumXY, SumY, SumXSqr, Divisor; + + double m, b; + int i; + + double tempValue1; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ /* min/max are checked for optInTimePeriod. */ +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 14; +/* Generated */ else if( ((int)optInTimePeriod < 2) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Insert TA function code here. */ + + /* Linear Regression is a concept also known as the + * "least squares method" or "best fit." Linear + * Regression attempts to fit a straight line between + * several data points in such a way that distance + * between each data point and the line is minimized. + * + * For each point, a straight line over the specified + * previous bar period is determined in terms + * of y = b + m*x: + * + * TA_LINEARREG : Returns b+m*(period-1) + * TA_LINEARREG_SLOPE : Returns 'm' + * TA_LINEARREG_ANGLE : Returns 'm' in degree. + * TA_LINEARREG_INTERCEPT: Returns 'b' + * TA_TSF : Returns b+m*(period) + */ + + /* Adjust startIdx to account for the lookback period. */ + lookbackTotal = LOOKBACK_CALL(LINEARREG)( optInTimePeriod ); + + if( startIdx < lookbackTotal ) + startIdx = lookbackTotal; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + + outIdx = 0; /* Index into the output. */ + today = startIdx; + + SumX = optInTimePeriod * ( optInTimePeriod - 1 ) * 0.5; + SumXSqr = optInTimePeriod * ( optInTimePeriod - 1 ) * ( 2 * optInTimePeriod - 1 ) / 6; + Divisor = SumX * SumX - optInTimePeriod * SumXSqr; + + while( today <= endIdx ) + { + SumXY = 0; + SumY = 0; + for( i = optInTimePeriod; i-- != 0; ) + { + SumY += tempValue1 = inReal[today - i]; + SumXY += (double)i * tempValue1; + } + m = ( optInTimePeriod * SumXY - SumX * SumY) / Divisor; + b = ( SumY - m * SumX ) / (double)optInTimePeriod; + outReal[outIdx++] = b + m * (double)(optInTimePeriod-1); + today++; + } + + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::LinearReg( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode linearReg( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inReal[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_LINEARREG( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inReal[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ int outIdx; +/* Generated */ int today, lookbackTotal; +/* Generated */ double SumX, SumXY, SumY, SumXSqr, Divisor; +/* Generated */ double m, b; +/* Generated */ int i; +/* Generated */ double tempValue1; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 14; +/* Generated */ else if( ((int)optInTimePeriod < 2) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ lookbackTotal = LOOKBACK_CALL(LINEARREG)( optInTimePeriod ); +/* Generated */ if( startIdx < lookbackTotal ) +/* Generated */ startIdx = lookbackTotal; +/* Generated */ if( startIdx > endIdx ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ outIdx = 0; +/* Generated */ today = startIdx; +/* Generated */ SumX = optInTimePeriod * ( optInTimePeriod - 1 ) * 0.5; +/* Generated */ SumXSqr = optInTimePeriod * ( optInTimePeriod - 1 ) * ( 2 * optInTimePeriod - 1 ) / 6; +/* Generated */ Divisor = SumX * SumX - optInTimePeriod * SumXSqr; +/* Generated */ while( today <= endIdx ) +/* Generated */ { +/* Generated */ SumXY = 0; +/* Generated */ SumY = 0; +/* Generated */ for( i = optInTimePeriod; i-- != 0; ) +/* Generated */ { +/* Generated */ SumY += tempValue1 = inReal[today - i]; +/* Generated */ SumXY += (double)i * tempValue1; +/* Generated */ } +/* Generated */ m = ( optInTimePeriod * SumXY - SumX * SumY) / Divisor; +/* Generated */ b = ( SumY - m * SumX ) / (double)optInTimePeriod; +/* Generated */ outReal[outIdx++] = b + m * (double)(optInTimePeriod-1); +/* Generated */ today++; +/* Generated */ } +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_LINEARREG_ANGLE.c b/src/ta_func/ta_LINEARREG_ANGLE.c new file mode 100644 index 000000000..0f72e1923 --- /dev/null +++ b/src/ta_func/ta_LINEARREG_ANGLE.c @@ -0,0 +1,354 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * JP John Price + * MF Mario Fortier + * AM Adrian Michel + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 070203 JP Initial. + * 072106 MF,AM Fix #1526632. Add missing atan(). + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::LinearRegAngleLookback( int optInTimePeriod ) /* From 2 to 100000 */ +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int linearRegAngleLookback( int optInTimePeriod ) /* From 2 to 100000 */ +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_LINEARREG_ANGLE_Lookback( int optInTimePeriod ) /* From 2 to 100000 */ +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ /* min/max are checked for optInTimePeriod. */ +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 14; +/* Generated */ else if( ((int)optInTimePeriod < 2) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return -1; +/* Generated */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + return optInTimePeriod-1; +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_LINEARREG_ANGLE - Linear Regression Angle + * + * Input = double + * Output = double + * + * Optional Parameters + * ------------------- + * optInTimePeriod:(From 2 to 100000) + * Number of period + * + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::LinearRegAngle( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inReal, +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::LinearRegAngle( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode linearRegAngle( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inReal[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_LINEARREG_ANGLE( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inReal[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + int outIdx; + + int today, lookbackTotal; + double SumX, SumXY, SumY, SumXSqr, Divisor; + + double m; + + int i; + + double tempValue1; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ /* min/max are checked for optInTimePeriod. */ +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 14; +/* Generated */ else if( ((int)optInTimePeriod < 2) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Insert TA function code here. */ + + /* Linear Regression is a concept also known as the + * "least squares method" or "best fit." Linear + * Regression attempts to fit a straight line between + * several data points in such a way that distance + * between each data point and the line is minimized. + * + * For each point, a straight line over the specified + * previous bar period is determined in terms + * of y = b + m*x: + * + * TA_LINEARREG : Returns b+m*(period-1) + * TA_LINEARREG_SLOPE : Returns 'm' + * TA_LINEARREG_ANGLE : Returns 'm' in degree. + * TA_LINEARREG_INTERCEPT: Returns 'b' + * TA_TSF : Returns b+m*(period) + */ + + /* Adjust startIdx to account for the lookback period. */ + lookbackTotal = LOOKBACK_CALL(LINEARREG_ANGLE)( optInTimePeriod ); + + if( startIdx < lookbackTotal ) + startIdx = lookbackTotal; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + + outIdx = 0; /* Index into the output. */ + today = startIdx; + + SumX = optInTimePeriod * ( optInTimePeriod - 1 ) * 0.5; + SumXSqr = optInTimePeriod * ( optInTimePeriod - 1 ) * ( 2 * optInTimePeriod - 1 ) / 6; + Divisor = SumX * SumX - optInTimePeriod * SumXSqr; + + while( today <= endIdx ) + { + SumXY = 0; + SumY = 0; + for( i = optInTimePeriod; i-- != 0; ) + { + SumY += tempValue1 = inReal[today - i]; + SumXY += (double)i * tempValue1; + } + m = ( optInTimePeriod * SumXY - SumX * SumY) / Divisor; + outReal[outIdx++] = std_atan(m) * ( 180.0 / PI ); + today++; + } + + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::LinearRegAngle( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode linearRegAngle( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inReal[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_LINEARREG_ANGLE( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inReal[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ int outIdx; +/* Generated */ int today, lookbackTotal; +/* Generated */ double SumX, SumXY, SumY, SumXSqr, Divisor; +/* Generated */ double m; +/* Generated */ int i; +/* Generated */ double tempValue1; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 14; +/* Generated */ else if( ((int)optInTimePeriod < 2) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ lookbackTotal = LOOKBACK_CALL(LINEARREG_ANGLE)( optInTimePeriod ); +/* Generated */ if( startIdx < lookbackTotal ) +/* Generated */ startIdx = lookbackTotal; +/* Generated */ if( startIdx > endIdx ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ outIdx = 0; +/* Generated */ today = startIdx; +/* Generated */ SumX = optInTimePeriod * ( optInTimePeriod - 1 ) * 0.5; +/* Generated */ SumXSqr = optInTimePeriod * ( optInTimePeriod - 1 ) * ( 2 * optInTimePeriod - 1 ) / 6; +/* Generated */ Divisor = SumX * SumX - optInTimePeriod * SumXSqr; +/* Generated */ while( today <= endIdx ) +/* Generated */ { +/* Generated */ SumXY = 0; +/* Generated */ SumY = 0; +/* Generated */ for( i = optInTimePeriod; i-- != 0; ) +/* Generated */ { +/* Generated */ SumY += tempValue1 = inReal[today - i]; +/* Generated */ SumXY += (double)i * tempValue1; +/* Generated */ } +/* Generated */ m = ( optInTimePeriod * SumXY - SumX * SumY) / Divisor; +/* Generated */ outReal[outIdx++] = std_atan(m) * ( 180.0 / PI ); +/* Generated */ today++; +/* Generated */ } +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_LINEARREG_INTERCEPT.c b/src/ta_func/ta_LINEARREG_INTERCEPT.c new file mode 100644 index 000000000..858fa6239 --- /dev/null +++ b/src/ta_func/ta_LINEARREG_INTERCEPT.c @@ -0,0 +1,352 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * JP John Price + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 070203 JP Initial. + * + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::LinearRegInterceptLookback( int optInTimePeriod ) /* From 2 to 100000 */ +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int linearRegInterceptLookback( int optInTimePeriod ) /* From 2 to 100000 */ +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_LINEARREG_INTERCEPT_Lookback( int optInTimePeriod ) /* From 2 to 100000 */ +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ /* min/max are checked for optInTimePeriod. */ +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 14; +/* Generated */ else if( ((int)optInTimePeriod < 2) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return -1; +/* Generated */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + return optInTimePeriod-1; +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_LINEARREG_INTERCEPT - Linear Regression Intercept + * + * Input = double + * Output = double + * + * Optional Parameters + * ------------------- + * optInTimePeriod:(From 2 to 100000) + * Number of period + * + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::LinearRegIntercept( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inReal, +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::LinearRegIntercept( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode linearRegIntercept( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inReal[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_LINEARREG_INTERCEPT( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inReal[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + int outIdx; + + int today, lookbackTotal; + double SumX, SumXY, SumY, SumXSqr, Divisor; + + double m; + int i; + + double tempValue1; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ /* min/max are checked for optInTimePeriod. */ +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 14; +/* Generated */ else if( ((int)optInTimePeriod < 2) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Insert TA function code here. */ + + /* Linear Regression is a concept also known as the + * "least squares method" or "best fit." Linear + * Regression attempts to fit a straight line between + * several data points in such a way that distance + * between each data point and the line is minimized. + * + * For each point, a straight line over the specified + * previous bar period is determined in terms + * of y = b + m*x: + * + * TA_LINEARREG : Returns b+m*(period-1) + * TA_LINEARREG_SLOPE : Returns 'm' + * TA_LINEARREG_ANGLE : Returns 'm' in degree. + * TA_LINEARREG_INTERCEPT: Returns 'b' + * TA_TSF : Returns b+m*(period) + */ + + /* Adjust startIdx to account for the lookback period. */ + lookbackTotal = LOOKBACK_CALL(LINEARREG_INTERCEPT)( optInTimePeriod ); + + if( startIdx < lookbackTotal ) + startIdx = lookbackTotal; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + + outIdx = 0; /* Index into the output. */ + today = startIdx; + + SumX = optInTimePeriod * ( optInTimePeriod - 1 ) * 0.5; + SumXSqr = optInTimePeriod * ( optInTimePeriod - 1 ) * ( 2 * optInTimePeriod - 1 ) / 6; + Divisor = SumX * SumX - optInTimePeriod * SumXSqr; + + while( today <= endIdx ) + { + SumXY = 0; + SumY = 0; + for( i = optInTimePeriod; i-- != 0; ) + { + SumY += tempValue1 = inReal[today - i]; + SumXY += (double)i * tempValue1; + } + m = ( optInTimePeriod * SumXY - SumX * SumY) / Divisor; + outReal[outIdx++] = ( SumY - m * SumX ) / (double)optInTimePeriod; + today++; + } + + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::LinearRegIntercept( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode linearRegIntercept( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inReal[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_LINEARREG_INTERCEPT( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inReal[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ int outIdx; +/* Generated */ int today, lookbackTotal; +/* Generated */ double SumX, SumXY, SumY, SumXSqr, Divisor; +/* Generated */ double m; +/* Generated */ int i; +/* Generated */ double tempValue1; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 14; +/* Generated */ else if( ((int)optInTimePeriod < 2) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ lookbackTotal = LOOKBACK_CALL(LINEARREG_INTERCEPT)( optInTimePeriod ); +/* Generated */ if( startIdx < lookbackTotal ) +/* Generated */ startIdx = lookbackTotal; +/* Generated */ if( startIdx > endIdx ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ outIdx = 0; +/* Generated */ today = startIdx; +/* Generated */ SumX = optInTimePeriod * ( optInTimePeriod - 1 ) * 0.5; +/* Generated */ SumXSqr = optInTimePeriod * ( optInTimePeriod - 1 ) * ( 2 * optInTimePeriod - 1 ) / 6; +/* Generated */ Divisor = SumX * SumX - optInTimePeriod * SumXSqr; +/* Generated */ while( today <= endIdx ) +/* Generated */ { +/* Generated */ SumXY = 0; +/* Generated */ SumY = 0; +/* Generated */ for( i = optInTimePeriod; i-- != 0; ) +/* Generated */ { +/* Generated */ SumY += tempValue1 = inReal[today - i]; +/* Generated */ SumXY += (double)i * tempValue1; +/* Generated */ } +/* Generated */ m = ( optInTimePeriod * SumXY - SumX * SumY) / Divisor; +/* Generated */ outReal[outIdx++] = ( SumY - m * SumX ) / (double)optInTimePeriod; +/* Generated */ today++; +/* Generated */ } +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_LINEARREG_SLOPE.c b/src/ta_func/ta_LINEARREG_SLOPE.c new file mode 100644 index 000000000..7c7c683c9 --- /dev/null +++ b/src/ta_func/ta_LINEARREG_SLOPE.c @@ -0,0 +1,348 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * JP John Price + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 070203 JP Initial. + * + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::LinearRegSlopeLookback( int optInTimePeriod ) /* From 2 to 100000 */ +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int linearRegSlopeLookback( int optInTimePeriod ) /* From 2 to 100000 */ +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_LINEARREG_SLOPE_Lookback( int optInTimePeriod ) /* From 2 to 100000 */ +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ /* min/max are checked for optInTimePeriod. */ +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 14; +/* Generated */ else if( ((int)optInTimePeriod < 2) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return -1; +/* Generated */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + return optInTimePeriod-1; +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_LINEARREG_SLOPE - Linear Regression Slope + * + * Input = double + * Output = double + * + * Optional Parameters + * ------------------- + * optInTimePeriod:(From 2 to 100000) + * Number of period + * + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::LinearRegSlope( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inReal, +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::LinearRegSlope( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode linearRegSlope( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inReal[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_LINEARREG_SLOPE( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inReal[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + int outIdx; + + int today, lookbackTotal; + double SumX, SumXY, SumY, SumXSqr, Divisor; + + int i; + + double tempValue1; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ /* min/max are checked for optInTimePeriod. */ +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 14; +/* Generated */ else if( ((int)optInTimePeriod < 2) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Insert TA function code here. */ + + /* Linear Regression is a concept also known as the + * "least squares method" or "best fit." Linear + * Regression attempts to fit a straight line between + * several data points in such a way that distance + * between each data point and the line is minimized. + * + * For each point, a straight line over the specified + * previous bar period is determined in terms + * of y = b + m*x: + * + * TA_LINEARREG : Returns b+m*(period-1) + * TA_LINEARREG_SLOPE : Returns 'm' + * TA_LINEARREG_ANGLE : Returns 'm' in degree. + * TA_LINEARREG_INTERCEPT: Returns 'b' + * TA_TSF : Returns b+m*(period) + */ + + /* Adjust startIdx to account for the lookback period. */ + lookbackTotal = LOOKBACK_CALL(LINEARREG_SLOPE)( optInTimePeriod ); + + if( startIdx < lookbackTotal ) + startIdx = lookbackTotal; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + + outIdx = 0; /* Index into the output. */ + today = startIdx; + + SumX = optInTimePeriod * ( optInTimePeriod - 1 ) * 0.5; + SumXSqr = optInTimePeriod * ( optInTimePeriod - 1 ) * ( 2 * optInTimePeriod - 1 ) / 6; + Divisor = SumX * SumX - optInTimePeriod * SumXSqr; + + while( today <= endIdx ) + { + SumXY = 0; + SumY = 0; + for( i = optInTimePeriod; i-- != 0; ) + { + SumY += tempValue1 = inReal[today - i]; + SumXY += (double)i * tempValue1; + } + outReal[outIdx++] = ( optInTimePeriod * SumXY - SumX * SumY) / Divisor; + today++; + } + + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::LinearRegSlope( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode linearRegSlope( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inReal[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_LINEARREG_SLOPE( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inReal[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ int outIdx; +/* Generated */ int today, lookbackTotal; +/* Generated */ double SumX, SumXY, SumY, SumXSqr, Divisor; +/* Generated */ int i; +/* Generated */ double tempValue1; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 14; +/* Generated */ else if( ((int)optInTimePeriod < 2) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ lookbackTotal = LOOKBACK_CALL(LINEARREG_SLOPE)( optInTimePeriod ); +/* Generated */ if( startIdx < lookbackTotal ) +/* Generated */ startIdx = lookbackTotal; +/* Generated */ if( startIdx > endIdx ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ outIdx = 0; +/* Generated */ today = startIdx; +/* Generated */ SumX = optInTimePeriod * ( optInTimePeriod - 1 ) * 0.5; +/* Generated */ SumXSqr = optInTimePeriod * ( optInTimePeriod - 1 ) * ( 2 * optInTimePeriod - 1 ) / 6; +/* Generated */ Divisor = SumX * SumX - optInTimePeriod * SumXSqr; +/* Generated */ while( today <= endIdx ) +/* Generated */ { +/* Generated */ SumXY = 0; +/* Generated */ SumY = 0; +/* Generated */ for( i = optInTimePeriod; i-- != 0; ) +/* Generated */ { +/* Generated */ SumY += tempValue1 = inReal[today - i]; +/* Generated */ SumXY += (double)i * tempValue1; +/* Generated */ } +/* Generated */ outReal[outIdx++] = ( optInTimePeriod * SumXY - SumX * SumY) / Divisor; +/* Generated */ today++; +/* Generated */ } +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_LN.c b/src/ta_func/ta_LN.c new file mode 100644 index 000000000..8a55c4e29 --- /dev/null +++ b/src/ta_func/ta_LN.c @@ -0,0 +1,241 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * MF Mario Fortier + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 090807 MF Initial Version + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::LnLookback( void ) +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int lnLookback( ) +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_LN_Lookback( void ) +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ /* No parameters to validate. */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + + return 0; +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_LN - Vector Log Natural + * + * Input = double + * Output = double + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::Ln( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inReal, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::Ln( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode ln( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inReal[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_LN( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inReal[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + int outIdx; + int i; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Insert TA function code here. */ + + /* Default return values */ + for( i=startIdx, outIdx=0; i <= endIdx; i++, outIdx++ ) + { + outReal[outIdx] = std_log(inReal[i]); + } + + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::Ln( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode ln( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inReal[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_LN( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inReal[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ int outIdx; +/* Generated */ int i; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ for( i=startIdx, outIdx=0; i <= endIdx; i++, outIdx++ ) +/* Generated */ { +/* Generated */ outReal[outIdx] = std_log(inReal[i]); +/* Generated */ } +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_LOG10.c b/src/ta_func/ta_LOG10.c new file mode 100644 index 000000000..108b72f97 --- /dev/null +++ b/src/ta_func/ta_LOG10.c @@ -0,0 +1,241 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * MF Mario Fortier + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 090807 MF Initial Version + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::Log10Lookback( void ) +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int log10Lookback( ) +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_LOG10_Lookback( void ) +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ /* No parameters to validate. */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + + return 0; +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_LOG10 - Vector Log10 + * + * Input = double + * Output = double + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::Log10( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inReal, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::Log10( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode log10( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inReal[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_LOG10( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inReal[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + int outIdx; + int i; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Insert TA function code here. */ + + /* Default return values */ + for( i=startIdx, outIdx=0; i <= endIdx; i++, outIdx++ ) + { + outReal[outIdx] = std_log10(inReal[i]); + } + + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::Log10( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode log10( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inReal[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_LOG10( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inReal[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ int outIdx; +/* Generated */ int i; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ for( i=startIdx, outIdx=0; i <= endIdx; i++, outIdx++ ) +/* Generated */ { +/* Generated */ outReal[outIdx] = std_log10(inReal[i]); +/* Generated */ } +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_MA.c b/src/ta_func/ta_MA.c new file mode 100644 index 000000000..6b9c9f537 --- /dev/null +++ b/src/ta_func/ta_MA.c @@ -0,0 +1,476 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * MF Mario Fortier + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 112400 MF Template creation. + * 022203 MF Add MAMA + * 040503 MF Add T3 + * 052603 MF Adapt code to compile with .NET Managed C++ + * 111603 MF Allow period of 1. Just copy input into output. + * 060907 MF Use TA_SMA/TA_EMA instead of internal implementation. + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::MovingAverageLookback( int optInTimePeriod, /* From 1 to 100000 */ +/* Generated */ MAType optInMAType ) /* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int movingAverageLookback( int optInTimePeriod, /* From 1 to 100000 */ +/* Generated */ MAType optInMAType ) /* Generated */ +/* Generated */ #else +/* Generated */ int TA_MA_Lookback( int optInTimePeriod, /* From 1 to 100000 */ +/* Generated */ TA_MAType optInMAType ) /* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + int retValue; + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ /* min/max are checked for optInTimePeriod. */ +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 30; +/* Generated */ else if( ((int)optInTimePeriod < 1) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return -1; +/* Generated */ +/* Generated */ #if !defined(_MANAGED) && !defined(_JAVA) +/* Generated */ if( (int)optInMAType == TA_INTEGER_DEFAULT ) +/* Generated */ optInMAType = (TA_MAType)0; +/* Generated */ else if( ((int)optInMAType < 0) || ((int)optInMAType > 8) ) +/* Generated */ return -1; +/* Generated */ +/* Generated */ #endif /* !defined(_MANAGED) && !defined(_JAVA)*/ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + + if( optInTimePeriod <= 1 ) + return 0; + + switch( optInMAType ) + { + case ENUM_CASE(MAType, TA_MAType_SMA, Sma ): + retValue = LOOKBACK_CALL(SMA)( optInTimePeriod ); + break; + + case ENUM_CASE(MAType, TA_MAType_EMA, Ema): + retValue = LOOKBACK_CALL(EMA)( optInTimePeriod ); + break; + + case ENUM_CASE(MAType, TA_MAType_WMA, Wma): + retValue = LOOKBACK_CALL(WMA)( optInTimePeriod ); + break; + + case ENUM_CASE(MAType, TA_MAType_DEMA, Dema): + retValue = LOOKBACK_CALL(DEMA)( optInTimePeriod ); + break; + + case ENUM_CASE(MAType, TA_MAType_TEMA, Tema ): + retValue = LOOKBACK_CALL(TEMA)( optInTimePeriod ); + break; + + case ENUM_CASE(MAType, TA_MAType_TRIMA, Trima ): + retValue = LOOKBACK_CALL(TRIMA)( optInTimePeriod ); + break; + + case ENUM_CASE(MAType, TA_MAType_KAMA, Kama ): + retValue = LOOKBACK_CALL(KAMA)( optInTimePeriod ); + break; + + case ENUM_CASE(MAType, TA_MAType_MAMA, Mama ): + retValue = LOOKBACK_CALL(MAMA)( 0.5, 0.05 ); + break; + + case ENUM_CASE(MAType, TA_MAType_T3, T3): + retValue = LOOKBACK_CALL(T3)( optInTimePeriod, 0.7 ); + break; + + default: + retValue = 0; + } + + return retValue; +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_MA - Moving average + * + * Input = double + * Output = double + * + * Optional Parameters + * ------------------- + * optInTimePeriod:(From 1 to 100000) + * Number of period + * + * optInMAType: + * Type of Moving Average + * + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::MovingAverage( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inReal, +/* Generated */ int optInTimePeriod, /* From 1 to 100000 */ +/* Generated */ MAType optInMAType, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::MovingAverage( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ int optInTimePeriod, /* From 1 to 100000 */ +/* Generated */ MAType optInMAType, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode movingAverage( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inReal[], +/* Generated */ int optInTimePeriod, /* From 1 to 100000 */ +/* Generated */ MAType optInMAType, +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_MA( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inReal[], +/* Generated */ int optInTimePeriod, /* From 1 to 100000 */ +/* Generated */ TA_MAType optInMAType, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* Insert local variables here. */ + ARRAY_REF(dummyBuffer); + ENUM_DECLARATION(RetCode) retCode; + + int nbElement; + int outIdx, todayIdx; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ /* min/max are checked for optInTimePeriod. */ +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 30; +/* Generated */ else if( ((int)optInTimePeriod < 1) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #if !defined(_MANAGED) && !defined(_JAVA) +/* Generated */ if( (int)optInMAType == TA_INTEGER_DEFAULT ) +/* Generated */ optInMAType = (TA_MAType)0; +/* Generated */ else if( ((int)optInMAType < 0) || ((int)optInMAType > 8) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_MANAGED) && !defined(_JAVA)*/ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + if( optInTimePeriod == 1 ) + { + nbElement = endIdx-startIdx+1; + VALUE_HANDLE_DEREF(outNBElement) = nbElement; + for( todayIdx=startIdx, outIdx=0; outIdx < nbElement; outIdx++, todayIdx++ ) + outReal[outIdx] = inReal[todayIdx]; + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + /* Simply forward the job to the corresponding TA function. */ + switch( optInMAType ) + { + case ENUM_CASE(MAType, TA_MAType_SMA, Sma): + retCode = FUNCTION_CALL(SMA)( startIdx, endIdx, inReal, optInTimePeriod, + outBegIdx, outNBElement, outReal ); + break; + + case ENUM_CASE(MAType, TA_MAType_EMA, Ema): + retCode = FUNCTION_CALL(EMA)( startIdx, endIdx, inReal, optInTimePeriod, + outBegIdx, outNBElement, outReal ); + break; + + case ENUM_CASE(MAType, TA_MAType_WMA, Wma): + retCode = FUNCTION_CALL(WMA)( startIdx, endIdx, inReal, optInTimePeriod, + outBegIdx, outNBElement, outReal ); + break; + + case ENUM_CASE(MAType, TA_MAType_DEMA, Dema): + retCode = FUNCTION_CALL(DEMA)( startIdx, endIdx, inReal, optInTimePeriod, + outBegIdx, outNBElement, outReal ); + break; + + case ENUM_CASE(MAType, TA_MAType_TEMA, Tema): + retCode = FUNCTION_CALL(TEMA)( startIdx, endIdx, inReal, optInTimePeriod, + outBegIdx, outNBElement, outReal ); + break; + + case ENUM_CASE(MAType, TA_MAType_TRIMA, Trima): + retCode = FUNCTION_CALL(TRIMA)( startIdx, endIdx, inReal, optInTimePeriod, + outBegIdx, outNBElement, outReal ); + break; + + case ENUM_CASE(MAType, TA_MAType_KAMA, Kama): + retCode = FUNCTION_CALL(KAMA)( startIdx, endIdx, inReal, optInTimePeriod, + outBegIdx, outNBElement, outReal ); + break; + + case ENUM_CASE(MAType, TA_MAType_MAMA, Mama): + /* The optInTimePeriod is ignored and the FAMA output of the MAMA + * is ignored. + */ + ARRAY_ALLOC(dummyBuffer, (endIdx-startIdx+1) ); + + #if !defined( _JAVA ) + if( !dummyBuffer ) + return ENUM_VALUE(RetCode,TA_ALLOC_ERR,AllocErr); + #endif + + retCode = FUNCTION_CALL(MAMA)( startIdx, endIdx, inReal, 0.5, 0.05, + outBegIdx, outNBElement, + outReal, dummyBuffer ); + + ARRAY_FREE( dummyBuffer ); + break; + + case ENUM_CASE(MAType, TA_MAType_T3, T3 ): + retCode = FUNCTION_CALL(T3)( startIdx, endIdx, inReal, + optInTimePeriod, 0.7, + outBegIdx, outNBElement, outReal ); + break; + + default: + retCode = ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); + break; + } + + return retCode; +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::MovingAverage( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ int optInTimePeriod, /* From 1 to 100000 */ +/* Generated */ MAType optInMAType, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode movingAverage( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inReal[], +/* Generated */ int optInTimePeriod, /* From 1 to 100000 */ +/* Generated */ MAType optInMAType, +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_MA( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inReal[], +/* Generated */ int optInTimePeriod, /* From 1 to 100000 */ +/* Generated */ TA_MAType optInMAType, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ ARRAY_REF(dummyBuffer); +/* Generated */ ENUM_DECLARATION(RetCode) retCode; +/* Generated */ int nbElement; +/* Generated */ int outIdx, todayIdx; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 30; +/* Generated */ else if( ((int)optInTimePeriod < 1) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #if !defined(_MANAGED) && !defined(_JAVA) +/* Generated */ if( (int)optInMAType == TA_INTEGER_DEFAULT ) +/* Generated */ optInMAType = (TA_MAType)0; +/* Generated */ else if( ((int)optInMAType < 0) || ((int)optInMAType > 8) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ if( optInTimePeriod == 1 ) +/* Generated */ { +/* Generated */ nbElement = endIdx-startIdx+1; +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = nbElement; +/* Generated */ for( todayIdx=startIdx, outIdx=0; outIdx < nbElement; outIdx++, todayIdx++ ) +/* Generated */ outReal[outIdx] = inReal[todayIdx]; +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ switch( optInMAType ) +/* Generated */ { +/* Generated */ case ENUM_CASE(MAType, TA_MAType_SMA, Sma): +/* Generated */ retCode = FUNCTION_CALL(SMA)( startIdx, endIdx, inReal, optInTimePeriod, +/* Generated */ outBegIdx, outNBElement, outReal ); +/* Generated */ break; +/* Generated */ case ENUM_CASE(MAType, TA_MAType_EMA, Ema): +/* Generated */ retCode = FUNCTION_CALL(EMA)( startIdx, endIdx, inReal, optInTimePeriod, +/* Generated */ outBegIdx, outNBElement, outReal ); +/* Generated */ break; +/* Generated */ case ENUM_CASE(MAType, TA_MAType_WMA, Wma): +/* Generated */ retCode = FUNCTION_CALL(WMA)( startIdx, endIdx, inReal, optInTimePeriod, +/* Generated */ outBegIdx, outNBElement, outReal ); +/* Generated */ break; +/* Generated */ case ENUM_CASE(MAType, TA_MAType_DEMA, Dema): +/* Generated */ retCode = FUNCTION_CALL(DEMA)( startIdx, endIdx, inReal, optInTimePeriod, +/* Generated */ outBegIdx, outNBElement, outReal ); +/* Generated */ break; +/* Generated */ case ENUM_CASE(MAType, TA_MAType_TEMA, Tema): +/* Generated */ retCode = FUNCTION_CALL(TEMA)( startIdx, endIdx, inReal, optInTimePeriod, +/* Generated */ outBegIdx, outNBElement, outReal ); +/* Generated */ break; +/* Generated */ case ENUM_CASE(MAType, TA_MAType_TRIMA, Trima): +/* Generated */ retCode = FUNCTION_CALL(TRIMA)( startIdx, endIdx, inReal, optInTimePeriod, +/* Generated */ outBegIdx, outNBElement, outReal ); +/* Generated */ break; +/* Generated */ case ENUM_CASE(MAType, TA_MAType_KAMA, Kama): +/* Generated */ retCode = FUNCTION_CALL(KAMA)( startIdx, endIdx, inReal, optInTimePeriod, +/* Generated */ outBegIdx, outNBElement, outReal ); +/* Generated */ break; +/* Generated */ case ENUM_CASE(MAType, TA_MAType_MAMA, Mama): +/* Generated */ ARRAY_ALLOC(dummyBuffer, (endIdx-startIdx+1) ); +/* Generated */ #if !defined( _JAVA ) +/* Generated */ if( !dummyBuffer ) +/* Generated */ return ENUM_VALUE(RetCode,TA_ALLOC_ERR,AllocErr); +/* Generated */ #endif +/* Generated */ retCode = FUNCTION_CALL(MAMA)( startIdx, endIdx, inReal, 0.5, 0.05, +/* Generated */ outBegIdx, outNBElement, +/* Generated */ outReal, dummyBuffer ); +/* Generated */ ARRAY_FREE( dummyBuffer ); +/* Generated */ break; +/* Generated */ case ENUM_CASE(MAType, TA_MAType_T3, T3 ): +/* Generated */ retCode = FUNCTION_CALL(T3)( startIdx, endIdx, inReal, +/* Generated */ optInTimePeriod, 0.7, +/* Generated */ outBegIdx, outNBElement, outReal ); +/* Generated */ break; +/* Generated */ default: +/* Generated */ retCode = ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ break; +/* Generated */ } +/* Generated */ return retCode; +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_MACD.c b/src/ta_func/ta_MACD.c new file mode 100644 index 000000000..08af78989 --- /dev/null +++ b/src/ta_func/ta_MACD.c @@ -0,0 +1,783 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * MF Mario Fortier + * JPP JP Pienaar (j.pienaar@mci.co.za) + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 112400 MF Template creation. + * 052603 MF Adapt code to compile with .NET Managed C++ + * 080403 JPP Fix #767653 for logic when swapping periods. + * + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::MacdLookback( int optInFastPeriod, /* From 2 to 100000 */ +/* Generated */ int optInSlowPeriod, /* From 2 to 100000 */ +/* Generated */ int optInSignalPeriod ) /* From 1 to 100000 */ +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int macdLookback( int optInFastPeriod, /* From 2 to 100000 */ +/* Generated */ int optInSlowPeriod, /* From 2 to 100000 */ +/* Generated */ int optInSignalPeriod ) /* From 1 to 100000 */ +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_MACD_Lookback( int optInFastPeriod, /* From 2 to 100000 */ +/* Generated */ int optInSlowPeriod, /* From 2 to 100000 */ +/* Generated */ int optInSignalPeriod ) /* From 1 to 100000 */ +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + int tempInteger; + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ /* min/max are checked for optInFastPeriod. */ +/* Generated */ if( (int)optInFastPeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInFastPeriod = 12; +/* Generated */ else if( ((int)optInFastPeriod < 2) || ((int)optInFastPeriod > 100000) ) +/* Generated */ return -1; +/* Generated */ +/* Generated */ /* min/max are checked for optInSlowPeriod. */ +/* Generated */ if( (int)optInSlowPeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInSlowPeriod = 26; +/* Generated */ else if( ((int)optInSlowPeriod < 2) || ((int)optInSlowPeriod > 100000) ) +/* Generated */ return -1; +/* Generated */ +/* Generated */ /* min/max are checked for optInSignalPeriod. */ +/* Generated */ if( (int)optInSignalPeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInSignalPeriod = 9; +/* Generated */ else if( ((int)optInSignalPeriod < 1) || ((int)optInSignalPeriod > 100000) ) +/* Generated */ return -1; +/* Generated */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + + /* The lookback is driven by the signal line output. + * + * (must also account for the initial data consume + * by the slow period). + */ + + /* Make sure slow is really slower than + * the fast period! if not, swap... + */ + if( optInSlowPeriod < optInFastPeriod ) + { + /* swap */ + tempInteger = optInSlowPeriod; + optInSlowPeriod = optInFastPeriod; + optInFastPeriod = tempInteger; + } + + return LOOKBACK_CALL(EMA)( optInSlowPeriod ) + + LOOKBACK_CALL(EMA)( optInSignalPeriod ); +} + + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_MACD - Moving Average Convergence/Divergence + * + * Input = double + * Output = double, double, double + * + * Optional Parameters + * ------------------- + * optInFastPeriod:(From 2 to 100000) + * Number of period for the fast MA + * + * optInSlowPeriod:(From 2 to 100000) + * Number of period for the slow MA + * + * optInSignalPeriod:(From 1 to 100000) + * Smoothing for the signal line (nb of period) + * + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::Macd( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inReal, +/* Generated */ int optInFastPeriod, /* From 2 to 100000 */ +/* Generated */ int optInSlowPeriod, /* From 2 to 100000 */ +/* Generated */ int optInSignalPeriod, /* From 1 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outMACD, +/* Generated */ cli::array^ outMACDSignal, +/* Generated */ cli::array^ outMACDHist ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::Macd( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ int optInFastPeriod, /* From 2 to 100000 */ +/* Generated */ int optInSlowPeriod, /* From 2 to 100000 */ +/* Generated */ int optInSignalPeriod, /* From 1 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outMACD, +/* Generated */ cli::array^ outMACDSignal, +/* Generated */ cli::array^ outMACDHist ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode macd( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inReal[], +/* Generated */ int optInFastPeriod, /* From 2 to 100000 */ +/* Generated */ int optInSlowPeriod, /* From 2 to 100000 */ +/* Generated */ int optInSignalPeriod, /* From 1 to 100000 */ +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outMACD[], +/* Generated */ double outMACDSignal[], +/* Generated */ double outMACDHist[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_MACD( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inReal[], +/* Generated */ int optInFastPeriod, /* From 2 to 100000 */ +/* Generated */ int optInSlowPeriod, /* From 2 to 100000 */ +/* Generated */ int optInSignalPeriod, /* From 1 to 100000 */ +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outMACD[], +/* Generated */ double outMACDSignal[], +/* Generated */ double outMACDHist[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* Insert local variables here. */ + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ /* min/max are checked for optInFastPeriod. */ +/* Generated */ if( (int)optInFastPeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInFastPeriod = 12; +/* Generated */ else if( ((int)optInFastPeriod < 2) || ((int)optInFastPeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ /* min/max are checked for optInSlowPeriod. */ +/* Generated */ if( (int)optInSlowPeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInSlowPeriod = 26; +/* Generated */ else if( ((int)optInSlowPeriod < 2) || ((int)optInSlowPeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ /* min/max are checked for optInSignalPeriod. */ +/* Generated */ if( (int)optInSignalPeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInSignalPeriod = 9; +/* Generated */ else if( ((int)optInSignalPeriod < 1) || ((int)optInSignalPeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outMACD ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ if( !outMACDSignal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ if( !outMACDHist ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Insert TA function code here. */ + + return FUNCTION_CALL(INT_MACD)( startIdx, endIdx, inReal, + optInFastPeriod, + optInSlowPeriod, + optInSignalPeriod, + outBegIdx, + outNBElement, + outMACD, + outMACDSignal, + outMACDHist ); +} + +#if defined( _MANAGED ) && defined( USE_SUBARRAY ) && !defined( USE_SINGLE_PRECISION_INPUT ) + enum class Core::RetCode Core::TA_INT_MACD( int startIdx, + int endIdx, + SubArray^ inReal, + int optInFastPeriod, /* 0 is fix 12 */ + int optInSlowPeriod, /* 0 is fix 26 */ + int optInSignalPeriod_2, + [Out]int% outBegIdx, + [Out]int% outNBElement, + cli::array^ outMACD, + cli::array^ outMACDSignal, + cli::array^ outMACDHist ) +#elif defined( _MANAGED ) + enum class Core::RetCode Core::TA_INT_MACD( int startIdx, + int endIdx, + cli::array^ inReal, + int optInFastPeriod, /* 0 is fix 12 */ + int optInSlowPeriod, /* 0 is fix 26 */ + int optInSignalPeriod_2, + [Out]int% outBegIdx, + [Out]int% outNBElement, + cli::array^ outMACD, + cli::array^ outMACDSignal, + cli::array^ outMACDHist ) +#elif defined( _JAVA ) +RetCode TA_INT_MACD( int startIdx, + int endIdx, + INPUT_TYPE inReal[], + int optInFastPeriod, /* 0 is fix 12 */ + int optInSlowPeriod, /* 0 is fix 26 */ + int optInSignalPeriod_2, + MInteger outBegIdx, + MInteger outNBElement, + double outMACD[], + double outMACDSignal[], + double outMACDHist[] ) + +#else +TA_RetCode TA_PREFIX(INT_MACD)( int startIdx, + int endIdx, + const INPUT_TYPE inReal[], + int optInFastPeriod, /* 0 is fix 12 */ + int optInSlowPeriod, /* 0 is fix 26 */ + int optInSignalPeriod_2, + int *outBegIdx, + int *outNBElement, + double outMACD[], + double outMACDSignal[], + double outMACDHist[] ) +#endif +{ + ARRAY_REF(slowEMABuffer); + ARRAY_REF(fastEMABuffer); + double k1, k2; + ENUM_DECLARATION(RetCode) retCode; + int tempInteger; + VALUE_HANDLE_INT(outBegIdx1); + VALUE_HANDLE_INT(outNbElement1); + VALUE_HANDLE_INT(outBegIdx2); + VALUE_HANDLE_INT(outNbElement2); + int lookbackTotal, lookbackSignal; + int i; + + /* !!! A lot of speed optimization could be done + * !!! with this function. + * !!! + * !!! A better approach would be to use TA_INT_EMA + * !!! just to get the seeding values for the + * !!! fast and slow EMA. Then process the difference + * !!! in an allocated buffer until enough data is + * !!! available for the first signal value. + * !!! From that point all the processing can + * !!! be done in a tight loop. + * !!! + * !!! That approach will have the following + * !!! advantage: + * !!! 1) One mem allocation needed instead of two. + * !!! 2) The mem allocation size will be only the + * !!! signal lookback period instead of the + * !!! whole range of data. + * !!! 3) Processing will be done in a tight loop. + * !!! allowing to avoid a lot of memory store-load + * !!! operation. + * !!! 4) The memcpy at the end will be eliminated! + * !!! + * !!! If only I had time.... + */ + + /* Make sure slow is really slower than + * the fast period! if not, swap... + */ + if( optInSlowPeriod < optInFastPeriod ) + { + /* swap */ + tempInteger = optInSlowPeriod; + optInSlowPeriod = optInFastPeriod; + optInFastPeriod = tempInteger; + } + + /* Catch special case for fix 26/12 MACD. */ + if( optInSlowPeriod != 0 ) + k1 = PER_TO_K(optInSlowPeriod); + else + { + optInSlowPeriod = 26; + k1 = (double)0.075; /* Fix 26 */ + } + + if( optInFastPeriod != 0 ) + k2 = PER_TO_K(optInFastPeriod); + else + { + optInFastPeriod = 12; + k2 = (double)0.15; /* Fix 12 */ + } + + lookbackSignal = LOOKBACK_CALL(EMA)( optInSignalPeriod_2 ); + + /* Move up the start index if there is not + * enough initial data. + */ + lookbackTotal = lookbackSignal; + lookbackTotal += LOOKBACK_CALL(EMA)( optInSlowPeriod ); + + if( startIdx < lookbackTotal ) + startIdx = lookbackTotal; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + + /* Allocate intermediate buffer for fast/slow EMA. */ + tempInteger = (endIdx-startIdx)+1+lookbackSignal; + ARRAY_ALLOC( fastEMABuffer, tempInteger ); + #if !defined( _JAVA ) + if( !fastEMABuffer ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return ENUM_VALUE(RetCode,TA_ALLOC_ERR,AllocErr); + } + #endif + + ARRAY_ALLOC( slowEMABuffer, tempInteger ); + #if !defined( _JAVA ) + if( !slowEMABuffer ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + ARRAY_FREE( fastEMABuffer ); + return ENUM_VALUE(RetCode,TA_ALLOC_ERR,AllocErr); + } + #endif + + /* Calculate the slow EMA. + * + * Move back the startIdx to get enough data + * for the signal period. That way, once the + * signal calculation is done, all the output + * will start at the requested 'startIdx'. + */ + tempInteger = startIdx-lookbackSignal; + retCode = FUNCTION_CALL(INT_EMA)( tempInteger, endIdx, + inReal, optInSlowPeriod, k1, + VALUE_HANDLE_OUT(outBegIdx1), VALUE_HANDLE_OUT(outNbElement1), slowEMABuffer ); + + if( retCode != ENUM_VALUE(RetCode,TA_SUCCESS,Success) ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + ARRAY_FREE( fastEMABuffer ); + ARRAY_FREE( slowEMABuffer ); + return retCode; + } + + /* Calculate the fast EMA. */ + retCode = FUNCTION_CALL(INT_EMA)( tempInteger, endIdx, + inReal, optInFastPeriod, k2, + VALUE_HANDLE_OUT(outBegIdx2), VALUE_HANDLE_OUT(outNbElement2), fastEMABuffer ); + + if( retCode != ENUM_VALUE(RetCode,TA_SUCCESS,Success) ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + ARRAY_FREE( fastEMABuffer ); + ARRAY_FREE( slowEMABuffer ); + return retCode; + } + + /* Parano tests. Will be removed eventually. */ + if( (VALUE_HANDLE_GET(outBegIdx1) != tempInteger) || + (VALUE_HANDLE_GET(outBegIdx2) != tempInteger) || + (VALUE_HANDLE_GET(outNbElement1) != VALUE_HANDLE_GET(outNbElement2)) || + (VALUE_HANDLE_GET(outNbElement1) != (endIdx-startIdx)+1+lookbackSignal) ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + ARRAY_FREE( fastEMABuffer ); + ARRAY_FREE( slowEMABuffer ); + return TA_INTERNAL_ERROR(119); + } + + /* Calculate (fast EMA) - (slow EMA). */ + for( i=0; i < VALUE_HANDLE_GET(outNbElement1); i++ ) + fastEMABuffer[i] = fastEMABuffer[i] - slowEMABuffer[i]; + + + /* Copy the result into the output for the caller. */ + ARRAY_MEMMOVE( outMACD, 0, fastEMABuffer, lookbackSignal, (endIdx-startIdx)+1 ); + + /* Calculate the signal/trigger line. */ + retCode = FUNCTION_CALL_DOUBLE(INT_EMA)( 0, VALUE_HANDLE_GET(outNbElement1)-1, + fastEMABuffer, optInSignalPeriod_2, PER_TO_K(optInSignalPeriod_2), + VALUE_HANDLE_OUT(outBegIdx2), VALUE_HANDLE_OUT(outNbElement2), outMACDSignal ); + + + ARRAY_FREE( fastEMABuffer ); + ARRAY_FREE( slowEMABuffer ); + + if( retCode != ENUM_VALUE(RetCode,TA_SUCCESS,Success) ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return retCode; + } + + /* Calculate the histogram. */ + for( i=0; i < VALUE_HANDLE_GET(outNbElement2); i++ ) + outMACDHist[i] = outMACD[i]-outMACDSignal[i]; + + + /* All done! Indicate the output limits and return success. */ + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + VALUE_HANDLE_DEREF(outNBElement) = VALUE_HANDLE_GET(outNbElement2); + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::Macd( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ int optInFastPeriod, /* From 2 to 100000 */ +/* Generated */ int optInSlowPeriod, /* From 2 to 100000 */ +/* Generated */ int optInSignalPeriod, /* From 1 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outMACD, +/* Generated */ cli::array^ outMACDSignal, +/* Generated */ cli::array^ outMACDHist ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode macd( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inReal[], +/* Generated */ int optInFastPeriod, /* From 2 to 100000 */ +/* Generated */ int optInSlowPeriod, /* From 2 to 100000 */ +/* Generated */ int optInSignalPeriod, /* From 1 to 100000 */ +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outMACD[], +/* Generated */ double outMACDSignal[], +/* Generated */ double outMACDHist[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_MACD( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inReal[], +/* Generated */ int optInFastPeriod, /* From 2 to 100000 */ +/* Generated */ int optInSlowPeriod, /* From 2 to 100000 */ +/* Generated */ int optInSignalPeriod, /* From 1 to 100000 */ +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outMACD[], +/* Generated */ double outMACDSignal[], +/* Generated */ double outMACDHist[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ if( (int)optInFastPeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInFastPeriod = 12; +/* Generated */ else if( ((int)optInFastPeriod < 2) || ((int)optInFastPeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ if( (int)optInSlowPeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInSlowPeriod = 26; +/* Generated */ else if( ((int)optInSlowPeriod < 2) || ((int)optInSlowPeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ if( (int)optInSignalPeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInSignalPeriod = 9; +/* Generated */ else if( ((int)optInSignalPeriod < 1) || ((int)optInSignalPeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outMACD ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ if( !outMACDSignal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ if( !outMACDHist ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ return FUNCTION_CALL(INT_MACD)( startIdx, endIdx, inReal, +/* Generated */ optInFastPeriod, +/* Generated */ optInSlowPeriod, +/* Generated */ optInSignalPeriod, +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ outMACD, +/* Generated */ outMACDSignal, +/* Generated */ outMACDHist ); +/* Generated */ } +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) && !defined( USE_SINGLE_PRECISION_INPUT ) +/* Generated */ enum class Core::RetCode Core::TA_INT_MACD( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inReal, +/* Generated */ int optInFastPeriod, +/* Generated */ int optInSlowPeriod, +/* Generated */ int optInSignalPeriod_2, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outMACD, +/* Generated */ cli::array^ outMACDSignal, +/* Generated */ cli::array^ outMACDHist ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::TA_INT_MACD( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ int optInFastPeriod, +/* Generated */ int optInSlowPeriod, +/* Generated */ int optInSignalPeriod_2, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outMACD, +/* Generated */ cli::array^ outMACDSignal, +/* Generated */ cli::array^ outMACDHist ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ RetCode TA_INT_MACD( int startIdx, +/* Generated */ int endIdx, +/* Generated */ INPUT_TYPE inReal[], +/* Generated */ int optInFastPeriod, +/* Generated */ int optInSlowPeriod, +/* Generated */ int optInSignalPeriod_2, +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outMACD[], +/* Generated */ double outMACDSignal[], +/* Generated */ double outMACDHist[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_PREFIX(INT_MACD)( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const INPUT_TYPE inReal[], +/* Generated */ int optInFastPeriod, +/* Generated */ int optInSlowPeriod, +/* Generated */ int optInSignalPeriod_2, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outMACD[], +/* Generated */ double outMACDSignal[], +/* Generated */ double outMACDHist[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ ARRAY_REF(slowEMABuffer); +/* Generated */ ARRAY_REF(fastEMABuffer); +/* Generated */ double k1, k2; +/* Generated */ ENUM_DECLARATION(RetCode) retCode; +/* Generated */ int tempInteger; +/* Generated */ VALUE_HANDLE_INT(outBegIdx1); +/* Generated */ VALUE_HANDLE_INT(outNbElement1); +/* Generated */ VALUE_HANDLE_INT(outBegIdx2); +/* Generated */ VALUE_HANDLE_INT(outNbElement2); +/* Generated */ int lookbackTotal, lookbackSignal; +/* Generated */ int i; +/* Generated */ if( optInSlowPeriod < optInFastPeriod ) +/* Generated */ { +/* Generated */ tempInteger = optInSlowPeriod; +/* Generated */ optInSlowPeriod = optInFastPeriod; +/* Generated */ optInFastPeriod = tempInteger; +/* Generated */ } +/* Generated */ if( optInSlowPeriod != 0 ) +/* Generated */ k1 = PER_TO_K(optInSlowPeriod); +/* Generated */ else +/* Generated */ { +/* Generated */ optInSlowPeriod = 26; +/* Generated */ k1 = (double)0.075; +/* Generated */ } +/* Generated */ if( optInFastPeriod != 0 ) +/* Generated */ k2 = PER_TO_K(optInFastPeriod); +/* Generated */ else +/* Generated */ { +/* Generated */ optInFastPeriod = 12; +/* Generated */ k2 = (double)0.15; +/* Generated */ } +/* Generated */ lookbackSignal = LOOKBACK_CALL(EMA)( optInSignalPeriod_2 ); +/* Generated */ lookbackTotal = lookbackSignal; +/* Generated */ lookbackTotal += LOOKBACK_CALL(EMA)( optInSlowPeriod ); +/* Generated */ if( startIdx < lookbackTotal ) +/* Generated */ startIdx = lookbackTotal; +/* Generated */ if( startIdx > endIdx ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ tempInteger = (endIdx-startIdx)+1+lookbackSignal; +/* Generated */ ARRAY_ALLOC( fastEMABuffer, tempInteger ); +/* Generated */ #if !defined( _JAVA ) +/* Generated */ if( !fastEMABuffer ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return ENUM_VALUE(RetCode,TA_ALLOC_ERR,AllocErr); +/* Generated */ } +/* Generated */ #endif +/* Generated */ ARRAY_ALLOC( slowEMABuffer, tempInteger ); +/* Generated */ #if !defined( _JAVA ) +/* Generated */ if( !slowEMABuffer ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ ARRAY_FREE( fastEMABuffer ); +/* Generated */ return ENUM_VALUE(RetCode,TA_ALLOC_ERR,AllocErr); +/* Generated */ } +/* Generated */ #endif +/* Generated */ tempInteger = startIdx-lookbackSignal; +/* Generated */ retCode = FUNCTION_CALL(INT_EMA)( tempInteger, endIdx, +/* Generated */ inReal, optInSlowPeriod, k1, +/* Generated */ VALUE_HANDLE_OUT(outBegIdx1), VALUE_HANDLE_OUT(outNbElement1), slowEMABuffer ); +/* Generated */ if( retCode != ENUM_VALUE(RetCode,TA_SUCCESS,Success) ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ ARRAY_FREE( fastEMABuffer ); +/* Generated */ ARRAY_FREE( slowEMABuffer ); +/* Generated */ return retCode; +/* Generated */ } +/* Generated */ retCode = FUNCTION_CALL(INT_EMA)( tempInteger, endIdx, +/* Generated */ inReal, optInFastPeriod, k2, +/* Generated */ VALUE_HANDLE_OUT(outBegIdx2), VALUE_HANDLE_OUT(outNbElement2), fastEMABuffer ); +/* Generated */ if( retCode != ENUM_VALUE(RetCode,TA_SUCCESS,Success) ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ ARRAY_FREE( fastEMABuffer ); +/* Generated */ ARRAY_FREE( slowEMABuffer ); +/* Generated */ return retCode; +/* Generated */ } +/* Generated */ if( (VALUE_HANDLE_GET(outBegIdx1) != tempInteger) || +/* Generated */ (VALUE_HANDLE_GET(outBegIdx2) != tempInteger) || +/* Generated */ (VALUE_HANDLE_GET(outNbElement1) != VALUE_HANDLE_GET(outNbElement2)) || +/* Generated */ (VALUE_HANDLE_GET(outNbElement1) != (endIdx-startIdx)+1+lookbackSignal) ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ ARRAY_FREE( fastEMABuffer ); +/* Generated */ ARRAY_FREE( slowEMABuffer ); +/* Generated */ return TA_INTERNAL_ERROR(119); +/* Generated */ } +/* Generated */ for( i=0; i < VALUE_HANDLE_GET(outNbElement1); i++ ) +/* Generated */ fastEMABuffer[i] = fastEMABuffer[i] - slowEMABuffer[i]; +/* Generated */ ARRAY_MEMMOVE( outMACD, 0, fastEMABuffer, lookbackSignal, (endIdx-startIdx)+1 ); +/* Generated */ retCode = FUNCTION_CALL_DOUBLE(INT_EMA)( 0, VALUE_HANDLE_GET(outNbElement1)-1, +/* Generated */ fastEMABuffer, optInSignalPeriod_2, PER_TO_K(optInSignalPeriod_2), +/* Generated */ VALUE_HANDLE_OUT(outBegIdx2), VALUE_HANDLE_OUT(outNbElement2), outMACDSignal ); +/* Generated */ ARRAY_FREE( fastEMABuffer ); +/* Generated */ ARRAY_FREE( slowEMABuffer ); +/* Generated */ if( retCode != ENUM_VALUE(RetCode,TA_SUCCESS,Success) ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return retCode; +/* Generated */ } +/* Generated */ for( i=0; i < VALUE_HANDLE_GET(outNbElement2); i++ ) +/* Generated */ outMACDHist[i] = outMACD[i]-outMACDSignal[i]; +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = VALUE_HANDLE_GET(outNbElement2); +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_MACDEXT.c b/src/ta_func/ta_MACDEXT.c new file mode 100644 index 000000000..0389cb950 --- /dev/null +++ b/src/ta_func/ta_MACDEXT.c @@ -0,0 +1,703 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * MF Mario Fortier + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 010802 MF Template creation. + * 052603 MF Adapt code to compile with .NET Managed C++ + * + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::MacdExtLookback( int optInFastPeriod, /* From 2 to 100000 */ +/* Generated */ MAType optInFastMAType, +/* Generated */ int optInSlowPeriod, /* From 2 to 100000 */ +/* Generated */ MAType optInSlowMAType, +/* Generated */ int optInSignalPeriod, /* From 1 to 100000 */ +/* Generated */ MAType optInSignalMAType ) /* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int macdExtLookback( int optInFastPeriod, /* From 2 to 100000 */ +/* Generated */ MAType optInFastMAType, +/* Generated */ int optInSlowPeriod, /* From 2 to 100000 */ +/* Generated */ MAType optInSlowMAType, +/* Generated */ int optInSignalPeriod, /* From 1 to 100000 */ +/* Generated */ MAType optInSignalMAType ) /* Generated */ +/* Generated */ #else +/* Generated */ int TA_MACDEXT_Lookback( int optInFastPeriod, /* From 2 to 100000 */ +/* Generated */ TA_MAType optInFastMAType, +/* Generated */ int optInSlowPeriod, /* From 2 to 100000 */ +/* Generated */ TA_MAType optInSlowMAType, +/* Generated */ int optInSignalPeriod, /* From 1 to 100000 */ +/* Generated */ TA_MAType optInSignalMAType ) /* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + int tempInteger, lookbackLargest; + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ /* min/max are checked for optInFastPeriod. */ +/* Generated */ if( (int)optInFastPeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInFastPeriod = 12; +/* Generated */ else if( ((int)optInFastPeriod < 2) || ((int)optInFastPeriod > 100000) ) +/* Generated */ return -1; +/* Generated */ +/* Generated */ #if !defined(_MANAGED) && !defined(_JAVA) +/* Generated */ if( (int)optInFastMAType == TA_INTEGER_DEFAULT ) +/* Generated */ optInFastMAType = (TA_MAType)0; +/* Generated */ else if( ((int)optInFastMAType < 0) || ((int)optInFastMAType > 8) ) +/* Generated */ return -1; +/* Generated */ +/* Generated */ #endif /* !defined(_MANAGED) && !defined(_JAVA)*/ +/* Generated */ /* min/max are checked for optInSlowPeriod. */ +/* Generated */ if( (int)optInSlowPeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInSlowPeriod = 26; +/* Generated */ else if( ((int)optInSlowPeriod < 2) || ((int)optInSlowPeriod > 100000) ) +/* Generated */ return -1; +/* Generated */ +/* Generated */ #if !defined(_MANAGED) && !defined(_JAVA) +/* Generated */ if( (int)optInSlowMAType == TA_INTEGER_DEFAULT ) +/* Generated */ optInSlowMAType = (TA_MAType)0; +/* Generated */ else if( ((int)optInSlowMAType < 0) || ((int)optInSlowMAType > 8) ) +/* Generated */ return -1; +/* Generated */ +/* Generated */ #endif /* !defined(_MANAGED) && !defined(_JAVA)*/ +/* Generated */ /* min/max are checked for optInSignalPeriod. */ +/* Generated */ if( (int)optInSignalPeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInSignalPeriod = 9; +/* Generated */ else if( ((int)optInSignalPeriod < 1) || ((int)optInSignalPeriod > 100000) ) +/* Generated */ return -1; +/* Generated */ +/* Generated */ #if !defined(_MANAGED) && !defined(_JAVA) +/* Generated */ if( (int)optInSignalMAType == TA_INTEGER_DEFAULT ) +/* Generated */ optInSignalMAType = (TA_MAType)0; +/* Generated */ else if( ((int)optInSignalMAType < 0) || ((int)optInSignalMAType > 8) ) +/* Generated */ return -1; +/* Generated */ +/* Generated */ #endif /* !defined(_MANAGED) && !defined(_JAVA)*/ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + + /* Find the MA with the largest lookback */ + lookbackLargest = LOOKBACK_CALL(MA)( optInFastPeriod, optInFastMAType ); + tempInteger = LOOKBACK_CALL(MA)( optInSlowPeriod, optInSlowMAType ); + if( tempInteger > lookbackLargest ) + lookbackLargest = tempInteger; + + /* Add to the largest MA lookback the signal line lookback */ + return lookbackLargest + LOOKBACK_CALL(MA)( optInSignalPeriod, optInSignalMAType ); +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_MACDEXT - MACD with controllable MA type + * + * Input = double + * Output = double, double, double + * + * Optional Parameters + * ------------------- + * optInFastPeriod:(From 2 to 100000) + * Number of period for the fast MA + * + * optInFastMAType: + * Type of Moving Average for fast MA + * + * optInSlowPeriod:(From 2 to 100000) + * Number of period for the slow MA + * + * optInSlowMAType: + * Type of Moving Average for slow MA + * + * optInSignalPeriod:(From 1 to 100000) + * Smoothing for the signal line (nb of period) + * + * optInSignalMAType: + * Type of Moving Average for signal line + * + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::MacdExt( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inReal, +/* Generated */ int optInFastPeriod, /* From 2 to 100000 */ +/* Generated */ MAType optInFastMAType, +/* Generated */ int optInSlowPeriod, /* From 2 to 100000 */ +/* Generated */ MAType optInSlowMAType, +/* Generated */ int optInSignalPeriod, /* From 1 to 100000 */ +/* Generated */ MAType optInSignalMAType, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outMACD, +/* Generated */ cli::array^ outMACDSignal, +/* Generated */ cli::array^ outMACDHist ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::MacdExt( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ int optInFastPeriod, /* From 2 to 100000 */ +/* Generated */ MAType optInFastMAType, +/* Generated */ int optInSlowPeriod, /* From 2 to 100000 */ +/* Generated */ MAType optInSlowMAType, +/* Generated */ int optInSignalPeriod, /* From 1 to 100000 */ +/* Generated */ MAType optInSignalMAType, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outMACD, +/* Generated */ cli::array^ outMACDSignal, +/* Generated */ cli::array^ outMACDHist ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode macdExt( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inReal[], +/* Generated */ int optInFastPeriod, /* From 2 to 100000 */ +/* Generated */ MAType optInFastMAType, +/* Generated */ int optInSlowPeriod, /* From 2 to 100000 */ +/* Generated */ MAType optInSlowMAType, +/* Generated */ int optInSignalPeriod, /* From 1 to 100000 */ +/* Generated */ MAType optInSignalMAType, +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outMACD[], +/* Generated */ double outMACDSignal[], +/* Generated */ double outMACDHist[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_MACDEXT( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inReal[], +/* Generated */ int optInFastPeriod, /* From 2 to 100000 */ +/* Generated */ TA_MAType optInFastMAType, +/* Generated */ int optInSlowPeriod, /* From 2 to 100000 */ +/* Generated */ TA_MAType optInSlowMAType, +/* Generated */ int optInSignalPeriod, /* From 1 to 100000 */ +/* Generated */ TA_MAType optInSignalMAType, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outMACD[], +/* Generated */ double outMACDSignal[], +/* Generated */ double outMACDHist[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + ARRAY_REF( slowMABuffer ); + ARRAY_REF( fastMABuffer ); + ENUM_DECLARATION(RetCode) retCode; + int tempInteger; + VALUE_HANDLE_INT(outBegIdx1); + VALUE_HANDLE_INT(outNbElement1); + VALUE_HANDLE_INT(outBegIdx2); + VALUE_HANDLE_INT(outNbElement2); + int lookbackTotal, lookbackSignal, lookbackLargest; + int i; + ENUM_DECLARATION(MAType) tempMAType; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ /* min/max are checked for optInFastPeriod. */ +/* Generated */ if( (int)optInFastPeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInFastPeriod = 12; +/* Generated */ else if( ((int)optInFastPeriod < 2) || ((int)optInFastPeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #if !defined(_MANAGED) && !defined(_JAVA) +/* Generated */ if( (int)optInFastMAType == TA_INTEGER_DEFAULT ) +/* Generated */ optInFastMAType = (TA_MAType)0; +/* Generated */ else if( ((int)optInFastMAType < 0) || ((int)optInFastMAType > 8) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_MANAGED) && !defined(_JAVA)*/ +/* Generated */ /* min/max are checked for optInSlowPeriod. */ +/* Generated */ if( (int)optInSlowPeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInSlowPeriod = 26; +/* Generated */ else if( ((int)optInSlowPeriod < 2) || ((int)optInSlowPeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #if !defined(_MANAGED) && !defined(_JAVA) +/* Generated */ if( (int)optInSlowMAType == TA_INTEGER_DEFAULT ) +/* Generated */ optInSlowMAType = (TA_MAType)0; +/* Generated */ else if( ((int)optInSlowMAType < 0) || ((int)optInSlowMAType > 8) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_MANAGED) && !defined(_JAVA)*/ +/* Generated */ /* min/max are checked for optInSignalPeriod. */ +/* Generated */ if( (int)optInSignalPeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInSignalPeriod = 9; +/* Generated */ else if( ((int)optInSignalPeriod < 1) || ((int)optInSignalPeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #if !defined(_MANAGED) && !defined(_JAVA) +/* Generated */ if( (int)optInSignalMAType == TA_INTEGER_DEFAULT ) +/* Generated */ optInSignalMAType = (TA_MAType)0; +/* Generated */ else if( ((int)optInSignalMAType < 0) || ((int)optInSignalMAType > 8) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_MANAGED) && !defined(_JAVA)*/ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outMACD ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ if( !outMACDSignal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ if( !outMACDHist ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Insert TA function code here. */ + + /* Make sure slow is really slower than + * the fast period! if not, swap... + */ + if( optInSlowPeriod < optInFastPeriod ) + { + /* swap period */ + tempInteger = optInSlowPeriod; + optInSlowPeriod = optInFastPeriod; + optInFastPeriod = tempInteger; + /* swap type */ + tempMAType = optInSlowMAType; + optInSlowMAType = optInFastMAType; + optInFastMAType = tempMAType; + } + + /* Find the MA with the largest lookback */ + lookbackLargest = LOOKBACK_CALL(MA)( optInFastPeriod, optInFastMAType ); + tempInteger = LOOKBACK_CALL(MA)( optInSlowPeriod, optInSlowMAType ); + if( tempInteger > lookbackLargest ) + lookbackLargest = tempInteger; + + /* Add the lookback needed for the signal line */ + lookbackSignal = LOOKBACK_CALL(MA)( optInSignalPeriod, optInSignalMAType ); + lookbackTotal = lookbackSignal+lookbackLargest; + + /* Move up the start index if there is not + * enough initial data. + */ + if( startIdx < lookbackTotal ) + startIdx = lookbackTotal; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + + /* Allocate intermediate buffer for fast/slow MA. */ + tempInteger = (endIdx-startIdx)+1+lookbackSignal; + ARRAY_ALLOC( fastMABuffer, tempInteger ); + #if !defined( _JAVA ) + if( !fastMABuffer ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return ENUM_VALUE(RetCode,TA_ALLOC_ERR,AllocErr); + } + #endif + + ARRAY_ALLOC( slowMABuffer, tempInteger ); + #if !defined( _JAVA ) + if( !slowMABuffer ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + ARRAY_FREE( fastMABuffer ); + return ENUM_VALUE(RetCode,TA_ALLOC_ERR,AllocErr); + } + #endif + + /* Calculate the slow MA. + * + * Move back the startIdx to get enough data + * for the signal period. That way, once the + * signal calculation is done, all the output + * will start at the requested 'startIdx'. + */ + tempInteger = startIdx-lookbackSignal; + retCode = FUNCTION_CALL(MA)( tempInteger, endIdx, + inReal, optInSlowPeriod, optInSlowMAType, + VALUE_HANDLE_OUT(outBegIdx1), VALUE_HANDLE_OUT(outNbElement1), + slowMABuffer ); + + if( retCode != ENUM_VALUE(RetCode,TA_SUCCESS,Success) ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + ARRAY_FREE( fastMABuffer ); + ARRAY_FREE( slowMABuffer ); + return retCode; + } + + /* Calculate the fast MA. */ + retCode = FUNCTION_CALL(MA)( tempInteger, endIdx, + inReal, optInFastPeriod, optInFastMAType, + VALUE_HANDLE_OUT(outBegIdx2), VALUE_HANDLE_OUT(outNbElement2), + fastMABuffer ); + + if( retCode != ENUM_VALUE(RetCode,TA_SUCCESS,Success) ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + ARRAY_FREE( fastMABuffer ); + ARRAY_FREE( slowMABuffer ); + return retCode; + } + + /* Parano tests. Will be removed eventually. */ + if( (VALUE_HANDLE_GET(outBegIdx1) != tempInteger) || + (VALUE_HANDLE_GET(outBegIdx2) != tempInteger) || + (VALUE_HANDLE_GET(outNbElement1) != VALUE_HANDLE_GET(outNbElement2)) || + (VALUE_HANDLE_GET(outNbElement1) != (endIdx-startIdx)+1+lookbackSignal) ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + ARRAY_FREE( fastMABuffer ); + ARRAY_FREE( slowMABuffer ); + return TA_INTERNAL_ERROR(119); + } + + /* Calculate (fast MA) - (slow MA). */ + for( i=0; i < VALUE_HANDLE_GET(outNbElement1); i++ ) + fastMABuffer[i] = fastMABuffer[i] - slowMABuffer[i]; + + /* Copy the result into the output for the caller. */ + ARRAY_MEMMOVE( outMACD, 0, fastMABuffer, lookbackSignal, (endIdx-startIdx)+1 ); + + /* Calculate the signal/trigger line. */ + retCode = FUNCTION_CALL_DOUBLE(MA)( 0, VALUE_HANDLE_GET(outNbElement1)-1, + fastMABuffer, optInSignalPeriod, optInSignalMAType, + VALUE_HANDLE_OUT(outBegIdx2), VALUE_HANDLE_OUT(outNbElement2), outMACDSignal ); + + ARRAY_FREE( fastMABuffer ); + ARRAY_FREE( slowMABuffer ); + + if( retCode != ENUM_VALUE(RetCode,TA_SUCCESS,Success) ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return retCode; + } + + /* Calculate the histogram. */ + for( i=0; i < VALUE_HANDLE_GET(outNbElement2); i++ ) + outMACDHist[i] = outMACD[i]-outMACDSignal[i]; + + /* All done! Indicate the output limits and return success. */ + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + VALUE_HANDLE_DEREF(outNBElement) = VALUE_HANDLE_GET(outNbElement2); + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::MacdExt( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ int optInFastPeriod, /* From 2 to 100000 */ +/* Generated */ MAType optInFastMAType, +/* Generated */ int optInSlowPeriod, /* From 2 to 100000 */ +/* Generated */ MAType optInSlowMAType, +/* Generated */ int optInSignalPeriod, /* From 1 to 100000 */ +/* Generated */ MAType optInSignalMAType, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outMACD, +/* Generated */ cli::array^ outMACDSignal, +/* Generated */ cli::array^ outMACDHist ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode macdExt( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inReal[], +/* Generated */ int optInFastPeriod, /* From 2 to 100000 */ +/* Generated */ MAType optInFastMAType, +/* Generated */ int optInSlowPeriod, /* From 2 to 100000 */ +/* Generated */ MAType optInSlowMAType, +/* Generated */ int optInSignalPeriod, /* From 1 to 100000 */ +/* Generated */ MAType optInSignalMAType, +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outMACD[], +/* Generated */ double outMACDSignal[], +/* Generated */ double outMACDHist[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_MACDEXT( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inReal[], +/* Generated */ int optInFastPeriod, /* From 2 to 100000 */ +/* Generated */ TA_MAType optInFastMAType, +/* Generated */ int optInSlowPeriod, /* From 2 to 100000 */ +/* Generated */ TA_MAType optInSlowMAType, +/* Generated */ int optInSignalPeriod, /* From 1 to 100000 */ +/* Generated */ TA_MAType optInSignalMAType, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outMACD[], +/* Generated */ double outMACDSignal[], +/* Generated */ double outMACDHist[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ ARRAY_REF( slowMABuffer ); +/* Generated */ ARRAY_REF( fastMABuffer ); +/* Generated */ ENUM_DECLARATION(RetCode) retCode; +/* Generated */ int tempInteger; +/* Generated */ VALUE_HANDLE_INT(outBegIdx1); +/* Generated */ VALUE_HANDLE_INT(outNbElement1); +/* Generated */ VALUE_HANDLE_INT(outBegIdx2); +/* Generated */ VALUE_HANDLE_INT(outNbElement2); +/* Generated */ int lookbackTotal, lookbackSignal, lookbackLargest; +/* Generated */ int i; +/* Generated */ ENUM_DECLARATION(MAType) tempMAType; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ if( (int)optInFastPeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInFastPeriod = 12; +/* Generated */ else if( ((int)optInFastPeriod < 2) || ((int)optInFastPeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #if !defined(_MANAGED) && !defined(_JAVA) +/* Generated */ if( (int)optInFastMAType == TA_INTEGER_DEFAULT ) +/* Generated */ optInFastMAType = (TA_MAType)0; +/* Generated */ else if( ((int)optInFastMAType < 0) || ((int)optInFastMAType > 8) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ if( (int)optInSlowPeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInSlowPeriod = 26; +/* Generated */ else if( ((int)optInSlowPeriod < 2) || ((int)optInSlowPeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #if !defined(_MANAGED) && !defined(_JAVA) +/* Generated */ if( (int)optInSlowMAType == TA_INTEGER_DEFAULT ) +/* Generated */ optInSlowMAType = (TA_MAType)0; +/* Generated */ else if( ((int)optInSlowMAType < 0) || ((int)optInSlowMAType > 8) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ if( (int)optInSignalPeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInSignalPeriod = 9; +/* Generated */ else if( ((int)optInSignalPeriod < 1) || ((int)optInSignalPeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #if !defined(_MANAGED) && !defined(_JAVA) +/* Generated */ if( (int)optInSignalMAType == TA_INTEGER_DEFAULT ) +/* Generated */ optInSignalMAType = (TA_MAType)0; +/* Generated */ else if( ((int)optInSignalMAType < 0) || ((int)optInSignalMAType > 8) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outMACD ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ if( !outMACDSignal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ if( !outMACDHist ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ if( optInSlowPeriod < optInFastPeriod ) +/* Generated */ { +/* Generated */ tempInteger = optInSlowPeriod; +/* Generated */ optInSlowPeriod = optInFastPeriod; +/* Generated */ optInFastPeriod = tempInteger; +/* Generated */ tempMAType = optInSlowMAType; +/* Generated */ optInSlowMAType = optInFastMAType; +/* Generated */ optInFastMAType = tempMAType; +/* Generated */ } +/* Generated */ lookbackLargest = LOOKBACK_CALL(MA)( optInFastPeriod, optInFastMAType ); +/* Generated */ tempInteger = LOOKBACK_CALL(MA)( optInSlowPeriod, optInSlowMAType ); +/* Generated */ if( tempInteger > lookbackLargest ) +/* Generated */ lookbackLargest = tempInteger; +/* Generated */ lookbackSignal = LOOKBACK_CALL(MA)( optInSignalPeriod, optInSignalMAType ); +/* Generated */ lookbackTotal = lookbackSignal+lookbackLargest; +/* Generated */ if( startIdx < lookbackTotal ) +/* Generated */ startIdx = lookbackTotal; +/* Generated */ if( startIdx > endIdx ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ tempInteger = (endIdx-startIdx)+1+lookbackSignal; +/* Generated */ ARRAY_ALLOC( fastMABuffer, tempInteger ); +/* Generated */ #if !defined( _JAVA ) +/* Generated */ if( !fastMABuffer ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return ENUM_VALUE(RetCode,TA_ALLOC_ERR,AllocErr); +/* Generated */ } +/* Generated */ #endif +/* Generated */ ARRAY_ALLOC( slowMABuffer, tempInteger ); +/* Generated */ #if !defined( _JAVA ) +/* Generated */ if( !slowMABuffer ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ ARRAY_FREE( fastMABuffer ); +/* Generated */ return ENUM_VALUE(RetCode,TA_ALLOC_ERR,AllocErr); +/* Generated */ } +/* Generated */ #endif +/* Generated */ tempInteger = startIdx-lookbackSignal; +/* Generated */ retCode = FUNCTION_CALL(MA)( tempInteger, endIdx, +/* Generated */ inReal, optInSlowPeriod, optInSlowMAType, +/* Generated */ VALUE_HANDLE_OUT(outBegIdx1), VALUE_HANDLE_OUT(outNbElement1), +/* Generated */ slowMABuffer ); +/* Generated */ if( retCode != ENUM_VALUE(RetCode,TA_SUCCESS,Success) ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ ARRAY_FREE( fastMABuffer ); +/* Generated */ ARRAY_FREE( slowMABuffer ); +/* Generated */ return retCode; +/* Generated */ } +/* Generated */ retCode = FUNCTION_CALL(MA)( tempInteger, endIdx, +/* Generated */ inReal, optInFastPeriod, optInFastMAType, +/* Generated */ VALUE_HANDLE_OUT(outBegIdx2), VALUE_HANDLE_OUT(outNbElement2), +/* Generated */ fastMABuffer ); +/* Generated */ if( retCode != ENUM_VALUE(RetCode,TA_SUCCESS,Success) ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ ARRAY_FREE( fastMABuffer ); +/* Generated */ ARRAY_FREE( slowMABuffer ); +/* Generated */ return retCode; +/* Generated */ } +/* Generated */ if( (VALUE_HANDLE_GET(outBegIdx1) != tempInteger) || +/* Generated */ (VALUE_HANDLE_GET(outBegIdx2) != tempInteger) || +/* Generated */ (VALUE_HANDLE_GET(outNbElement1) != VALUE_HANDLE_GET(outNbElement2)) || +/* Generated */ (VALUE_HANDLE_GET(outNbElement1) != (endIdx-startIdx)+1+lookbackSignal) ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ ARRAY_FREE( fastMABuffer ); +/* Generated */ ARRAY_FREE( slowMABuffer ); +/* Generated */ return TA_INTERNAL_ERROR(119); +/* Generated */ } +/* Generated */ for( i=0; i < VALUE_HANDLE_GET(outNbElement1); i++ ) +/* Generated */ fastMABuffer[i] = fastMABuffer[i] - slowMABuffer[i]; +/* Generated */ ARRAY_MEMMOVE( outMACD, 0, fastMABuffer, lookbackSignal, (endIdx-startIdx)+1 ); +/* Generated */ retCode = FUNCTION_CALL_DOUBLE(MA)( 0, VALUE_HANDLE_GET(outNbElement1)-1, +/* Generated */ fastMABuffer, optInSignalPeriod, optInSignalMAType, +/* Generated */ VALUE_HANDLE_OUT(outBegIdx2), VALUE_HANDLE_OUT(outNbElement2), outMACDSignal ); +/* Generated */ ARRAY_FREE( fastMABuffer ); +/* Generated */ ARRAY_FREE( slowMABuffer ); +/* Generated */ if( retCode != ENUM_VALUE(RetCode,TA_SUCCESS,Success) ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return retCode; +/* Generated */ } +/* Generated */ for( i=0; i < VALUE_HANDLE_GET(outNbElement2); i++ ) +/* Generated */ outMACDHist[i] = outMACD[i]-outMACDSignal[i]; +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = VALUE_HANDLE_GET(outNbElement2); +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_MACDFIX.c b/src/ta_func/ta_MACDFIX.c new file mode 100644 index 000000000..78c2e1a4a --- /dev/null +++ b/src/ta_func/ta_MACDFIX.c @@ -0,0 +1,301 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * MF Mario Fortier + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 112400 MF Template creation. + * 052603 MF Adapt code to compile with .NET Managed C++ + * + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::MacdFixLookback( int optInSignalPeriod ) /* From 1 to 100000 */ +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int macdFixLookback( int optInSignalPeriod ) /* From 1 to 100000 */ +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_MACDFIX_Lookback( int optInSignalPeriod ) /* From 1 to 100000 */ +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ /* min/max are checked for optInSignalPeriod. */ +/* Generated */ if( (int)optInSignalPeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInSignalPeriod = 9; +/* Generated */ else if( ((int)optInSignalPeriod < 1) || ((int)optInSignalPeriod > 100000) ) +/* Generated */ return -1; +/* Generated */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + + /* The lookback is driven by the signal line output. + * + * (must also account for the initial data consume + * by the fix 26 period EMA). + */ + return LOOKBACK_CALL(EMA)( 26 ) + + LOOKBACK_CALL(EMA)( optInSignalPeriod ); +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_MACDFIX - Moving Average Convergence/Divergence Fix 12/26 + * + * Input = double + * Output = double, double, double + * + * Optional Parameters + * ------------------- + * optInSignalPeriod:(From 1 to 100000) + * Smoothing for the signal line (nb of period) + * + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::MacdFix( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inReal, +/* Generated */ int optInSignalPeriod, /* From 1 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outMACD, +/* Generated */ cli::array^ outMACDSignal, +/* Generated */ cli::array^ outMACDHist ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::MacdFix( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ int optInSignalPeriod, /* From 1 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outMACD, +/* Generated */ cli::array^ outMACDSignal, +/* Generated */ cli::array^ outMACDHist ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode macdFix( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inReal[], +/* Generated */ int optInSignalPeriod, /* From 1 to 100000 */ +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outMACD[], +/* Generated */ double outMACDSignal[], +/* Generated */ double outMACDHist[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_MACDFIX( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inReal[], +/* Generated */ int optInSignalPeriod, /* From 1 to 100000 */ +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outMACD[], +/* Generated */ double outMACDSignal[], +/* Generated */ double outMACDHist[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* Insert local variables here. */ + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ /* min/max are checked for optInSignalPeriod. */ +/* Generated */ if( (int)optInSignalPeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInSignalPeriod = 9; +/* Generated */ else if( ((int)optInSignalPeriod < 1) || ((int)optInSignalPeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outMACD ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ if( !outMACDSignal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ if( !outMACDHist ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Insert TA function code here. */ + + return FUNCTION_CALL(INT_MACD)( startIdx, endIdx, inReal, + 0, /* 0 indicate fix 12 == 0.15 for optInFastPeriod */ + 0, /* 0 indicate fix 26 == 0.075 for optInSlowPeriod */ + optInSignalPeriod, + outBegIdx, + outNBElement, + outMACD, + outMACDSignal, + outMACDHist ); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::MacdFix( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ int optInSignalPeriod, /* From 1 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outMACD, +/* Generated */ cli::array^ outMACDSignal, +/* Generated */ cli::array^ outMACDHist ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode macdFix( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inReal[], +/* Generated */ int optInSignalPeriod, /* From 1 to 100000 */ +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outMACD[], +/* Generated */ double outMACDSignal[], +/* Generated */ double outMACDHist[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_MACDFIX( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inReal[], +/* Generated */ int optInSignalPeriod, /* From 1 to 100000 */ +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outMACD[], +/* Generated */ double outMACDSignal[], +/* Generated */ double outMACDHist[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ if( (int)optInSignalPeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInSignalPeriod = 9; +/* Generated */ else if( ((int)optInSignalPeriod < 1) || ((int)optInSignalPeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outMACD ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ if( !outMACDSignal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ if( !outMACDHist ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ return FUNCTION_CALL(INT_MACD)( startIdx, endIdx, inReal, +/* Generated */ 0, +/* Generated */ 0, +/* Generated */ optInSignalPeriod, +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ outMACD, +/* Generated */ outMACDSignal, +/* Generated */ outMACDHist ); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_MAMA.c b/src/ta_func/ta_MAMA.c new file mode 100644 index 000000000..cb6b5476b --- /dev/null +++ b/src/ta_func/ta_MAMA.c @@ -0,0 +1,714 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * MF Mario Fortier + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 120802 MF Template creation. + * 023003 MF Initial Coding of MAMA. + * 052603 MF Adapt code to compile with .NET Managed C++ + * + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::MamaLookback( double optInFastLimit, /* From 0.01 to 0.99 */ +/* Generated */ double optInSlowLimit ) /* From 0.01 to 0.99 */ +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int mamaLookback( double optInFastLimit, /* From 0.01 to 0.99 */ +/* Generated */ double optInSlowLimit ) /* From 0.01 to 0.99 */ +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_MAMA_Lookback( double optInFastLimit, /* From 0.01 to 0.99 */ +/* Generated */ double optInSlowLimit ) /* From 0.01 to 0.99 */ +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( optInFastLimit == TA_REAL_DEFAULT ) +/* Generated */ optInFastLimit = 5.000000e-1; +/* Generated */ else if( (optInFastLimit < 1.000000e-2) ||/* Generated */ (optInFastLimit > 9.900000e-1) ) +/* Generated */ return -1; +/* Generated */ +/* Generated */ if( optInSlowLimit == TA_REAL_DEFAULT ) +/* Generated */ optInSlowLimit = 5.000000e-2; +/* Generated */ else if( (optInSlowLimit < 1.000000e-2) ||/* Generated */ (optInSlowLimit > 9.900000e-1) ) +/* Generated */ return -1; +/* Generated */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + + /* The two parameters are not a factor to determine + * the lookback, but are still requested for + * consistency with all other Lookback functions. + */ + UNUSED_VARIABLE(optInFastLimit); + UNUSED_VARIABLE(optInSlowLimit); + + /* Lookback is a fix amount + the unstable period. + * + * + * The fix lookback is 32 and is establish as follow: + * + * 12 price bar to be compatible with the implementation + * of TradeStation found in John Ehlers book. + * 6 price bars for the Detrender + * 6 price bars for Q1 + * 3 price bars for jI + * 3 price bars for jQ + * 1 price bar for Re/Im + * 1 price bar for the Delta Phase + * ------- + * 32 Total + */ + + return 32 + TA_GLOBALS_UNSTABLE_PERIOD(TA_FUNC_UNST_MAMA,Mama); +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_MAMA - MESA Adaptive Moving Average + * + * Input = double + * Output = double, double + * + * Optional Parameters + * ------------------- + * optInFastLimit:(From 0.01 to 0.99) + * Upper limit use in the adaptive algorithm + * + * optInSlowLimit:(From 0.01 to 0.99) + * Lower limit use in the adaptive algorithm + * + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::Mama( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inReal, +/* Generated */ double optInFastLimit, /* From 0.01 to 0.99 */ +/* Generated */ double optInSlowLimit, /* From 0.01 to 0.99 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outMAMA, +/* Generated */ cli::array^ outFAMA ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::Mama( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ double optInFastLimit, /* From 0.01 to 0.99 */ +/* Generated */ double optInSlowLimit, /* From 0.01 to 0.99 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outMAMA, +/* Generated */ cli::array^ outFAMA ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode mama( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inReal[], +/* Generated */ double optInFastLimit, /* From 0.01 to 0.99 */ +/* Generated */ double optInSlowLimit, /* From 0.01 to 0.99 */ +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outMAMA[], +/* Generated */ double outFAMA[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_MAMA( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inReal[], +/* Generated */ double optInFastLimit, /* From 0.01 to 0.99 */ +/* Generated */ double optInSlowLimit, /* From 0.01 to 0.99 */ +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outMAMA[], +/* Generated */ double outFAMA[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + + int outIdx, i; + int lookbackTotal, today; + double tempReal, tempReal2; + + double adjustedPrevPeriod, period; + + /* Variable used for the price smoother (a weighted moving average). */ + int trailingWMAIdx; + double periodWMASum, periodWMASub, trailingWMAValue; + double smoothedValue; + + /* Variables used for the Hilbert Transormation */ + CONSTANT_DOUBLE(a) = 0.0962; + CONSTANT_DOUBLE(b) = 0.5769; + double hilbertTempReal; + int hilbertIdx; + + HILBERT_VARIABLES( detrender ); + HILBERT_VARIABLES( Q1 ); + HILBERT_VARIABLES( jI ); + HILBERT_VARIABLES( jQ ); + + double Q2, I2, prevQ2, prevI2, Re, Im; + + double I1ForOddPrev2, I1ForOddPrev3; + double I1ForEvenPrev2, I1ForEvenPrev3; + + double rad2Deg; + + double mama,fama,todayValue,prevPhase; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ if( optInFastLimit == TA_REAL_DEFAULT ) +/* Generated */ optInFastLimit = 5.000000e-1; +/* Generated */ else if( (optInFastLimit < 1.000000e-2) ||/* Generated */ (optInFastLimit > 9.900000e-1) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ if( optInSlowLimit == TA_REAL_DEFAULT ) +/* Generated */ optInSlowLimit = 5.000000e-2; +/* Generated */ else if( (optInSlowLimit < 1.000000e-2) ||/* Generated */ (optInSlowLimit > 9.900000e-1) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outMAMA ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ if( !outFAMA ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Insert TA function code here. */ + + /* Constant */ + rad2Deg = 180.0 / (4.0 * std_atan(1)); + + /* Identify the minimum number of price bar needed + * to calculate at least one output. + */ + lookbackTotal = 32 + TA_GLOBALS_UNSTABLE_PERIOD(TA_FUNC_UNST_MAMA,Mama); + + /* Move up the start index if there is not + * enough initial data. + */ + if( startIdx < lookbackTotal ) + startIdx = lookbackTotal; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + + /* Initialize the price smoother, which is simply a weighted + * moving average of the price. + * To understand this algorithm, I strongly suggest to understand + * first how TA_WMA is done. + */ + trailingWMAIdx = startIdx - lookbackTotal; + today = trailingWMAIdx; + + /* Initialization is same as WMA, except loop is unrolled + * for speed optimization. + */ + tempReal = inReal[today++]; + periodWMASub = tempReal; + periodWMASum = tempReal; + tempReal = inReal[today++]; + periodWMASub += tempReal; + periodWMASum += tempReal*2.0; + tempReal = inReal[today++]; + periodWMASub += tempReal; + periodWMASum += tempReal*3.0; + + trailingWMAValue = 0.0; + + /* Subsequent WMA value are evaluated by using + * the DO_PRICE_WMA macro. + */ + #define DO_PRICE_WMA(varNewPrice,varToStoreSmoothedValue) { \ + periodWMASub += varNewPrice; \ + periodWMASub -= trailingWMAValue; \ + periodWMASum += varNewPrice*4.0; \ + trailingWMAValue = inReal[trailingWMAIdx++]; \ + varToStoreSmoothedValue = periodWMASum*0.1; \ + periodWMASum -= periodWMASub; \ + } + + i = 9; + do + { + tempReal = inReal[today++]; + DO_PRICE_WMA(tempReal,smoothedValue); + } while( --i != 0); + + /* Initialize the circular buffers used by the hilbert + * transform logic. + * A buffer is used for odd day and another for even days. + * This minimize the number of memory access and floating point + * operations needed (note also that by using static circular buffer, + * no large dynamic memory allocation is needed for storing + * intermediate calculation!). + */ + hilbertIdx = 0; + + INIT_HILBERT_VARIABLES(detrender); + INIT_HILBERT_VARIABLES(Q1); + INIT_HILBERT_VARIABLES(jI); + INIT_HILBERT_VARIABLES(jQ); + + period = 0.0; + outIdx = 0; + + prevI2 = prevQ2 = 0.0; + Re = Im = 0.0; + mama = fama = 0.0; + I1ForOddPrev3 = I1ForEvenPrev3 = 0.0; + I1ForOddPrev2 = I1ForEvenPrev2 = 0.0; + + prevPhase = 0.0; + + /* The code is speed optimized and is most likely very + * hard to follow if you do not already know well the + * original algorithm. + * To understadn better, it is strongly suggested to look + * first at the Excel implementation in "test_MAMA.xls" included + * in this package. + */ + while( today <= endIdx ) + { + adjustedPrevPeriod = (0.075*period)+0.54; + + todayValue = inReal[today]; + DO_PRICE_WMA(todayValue,smoothedValue); + + if( (today%2) == 0 ) + { + /* Do the Hilbert Transforms for even price bar */ + DO_HILBERT_EVEN(detrender,smoothedValue); + DO_HILBERT_EVEN(Q1,detrender); + DO_HILBERT_EVEN(jI,I1ForEvenPrev3); + DO_HILBERT_EVEN(jQ,Q1); + if( ++hilbertIdx == 3 ) + hilbertIdx = 0; + + Q2 = (0.2*(Q1 + jI)) + (0.8*prevQ2); + I2 = (0.2*(I1ForEvenPrev3 - jQ)) + (0.8*prevI2); + + /* The variable I1 is the detrender delayed for + * 3 price bars. + * + * Save the current detrender value for being + * used by the "odd" logic later. + */ + I1ForOddPrev3 = I1ForOddPrev2; + I1ForOddPrev2 = detrender; + + /* Put Alpha in tempReal2 */ + if( I1ForEvenPrev3 != 0.0 ) + tempReal2 = (std_atan(Q1/I1ForEvenPrev3)*rad2Deg); + else + tempReal2 = 0.0; + } + else + { + /* Do the Hilbert Transforms for odd price bar */ + DO_HILBERT_ODD(detrender,smoothedValue); + DO_HILBERT_ODD(Q1,detrender); + DO_HILBERT_ODD(jI,I1ForOddPrev3); + DO_HILBERT_ODD(jQ,Q1); + + Q2 = (0.2*(Q1 + jI)) + (0.8*prevQ2); + I2 = (0.2*(I1ForOddPrev3 - jQ)) + (0.8*prevI2); + + /* The varaiable I1 is the detrender delayed for + * 3 price bars. + * + * Save the current detrender value for being + * used by the "odd" logic later. + */ + I1ForEvenPrev3 = I1ForEvenPrev2; + I1ForEvenPrev2 = detrender; + + /* Put Alpha in tempReal2 */ + if( I1ForOddPrev3 != 0.0 ) + tempReal2 = (std_atan(Q1/I1ForOddPrev3)*rad2Deg); + else + tempReal2 = 0.0; + } + + /* Put Delta Phase into tempReal */ + tempReal = prevPhase - tempReal2; + prevPhase = tempReal2; + if( tempReal < 1.0 ) + tempReal = 1.0; + + /* Put Alpha into tempReal */ + if( tempReal > 1.0 ) + { + tempReal = optInFastLimit/tempReal; + if( tempReal < optInSlowLimit ) + tempReal = optInSlowLimit; + } + else + { + tempReal = optInFastLimit; + } + + /* Calculate MAMA, FAMA */ + mama = (tempReal*todayValue)+((1-tempReal)*mama); + tempReal *= 0.5; + fama = (tempReal*mama)+((1-tempReal)*fama); + if( today >= startIdx ) + { + outMAMA[outIdx] = mama; + outFAMA[outIdx++] = fama; + } + + /* Adjust the period for next price bar */ + Re = (0.2*((I2*prevI2)+(Q2*prevQ2)))+(0.8*Re); + Im = (0.2*((I2*prevQ2)-(Q2*prevI2)))+(0.8*Im); + prevQ2 = Q2; + prevI2 = I2; + tempReal = period; + if( (Im != 0.0) && (Re != 0.0) ) + period = 360.0 / (std_atan(Im/Re)*rad2Deg); + tempReal2 = 1.5*tempReal; + if( period > tempReal2) + period = tempReal2; + tempReal2 = 0.67*tempReal; + if( period < tempReal2 ) + period = tempReal2; + if( period < 6 ) + period = 6; + else if( period > 50 ) + period = 50; + period = (0.2*period) + (0.8 * tempReal); + + /* Ooof... let's do the next price bar now! */ + today++; + } + + /* Default return values */ + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::Mama( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ double optInFastLimit, /* From 0.01 to 0.99 */ +/* Generated */ double optInSlowLimit, /* From 0.01 to 0.99 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outMAMA, +/* Generated */ cli::array^ outFAMA ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode mama( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inReal[], +/* Generated */ double optInFastLimit, /* From 0.01 to 0.99 */ +/* Generated */ double optInSlowLimit, /* From 0.01 to 0.99 */ +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outMAMA[], +/* Generated */ double outFAMA[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_MAMA( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inReal[], +/* Generated */ double optInFastLimit, /* From 0.01 to 0.99 */ +/* Generated */ double optInSlowLimit, /* From 0.01 to 0.99 */ +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outMAMA[], +/* Generated */ double outFAMA[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ int outIdx, i; +/* Generated */ int lookbackTotal, today; +/* Generated */ double tempReal, tempReal2; +/* Generated */ double adjustedPrevPeriod, period; +/* Generated */ int trailingWMAIdx; +/* Generated */ double periodWMASum, periodWMASub, trailingWMAValue; +/* Generated */ double smoothedValue; +/* Generated */ CONSTANT_DOUBLE(a) = 0.0962; +/* Generated */ CONSTANT_DOUBLE(b) = 0.5769; +/* Generated */ double hilbertTempReal; +/* Generated */ int hilbertIdx; +/* Generated */ HILBERT_VARIABLES( detrender ); +/* Generated */ HILBERT_VARIABLES( Q1 ); +/* Generated */ HILBERT_VARIABLES( jI ); +/* Generated */ HILBERT_VARIABLES( jQ ); +/* Generated */ double Q2, I2, prevQ2, prevI2, Re, Im; +/* Generated */ double I1ForOddPrev2, I1ForOddPrev3; +/* Generated */ double I1ForEvenPrev2, I1ForEvenPrev3; +/* Generated */ double rad2Deg; +/* Generated */ double mama,fama,todayValue,prevPhase; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ if( optInFastLimit == TA_REAL_DEFAULT ) +/* Generated */ optInFastLimit = 5.000000e-1; +/* Generated */ else if( (optInFastLimit < 1.000000e-2) || (optInFastLimit > 9.900000e-1) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ if( optInSlowLimit == TA_REAL_DEFAULT ) +/* Generated */ optInSlowLimit = 5.000000e-2; +/* Generated */ else if( (optInSlowLimit < 1.000000e-2) || (optInSlowLimit > 9.900000e-1) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outMAMA ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ if( !outFAMA ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ rad2Deg = 180.0 / (4.0 * std_atan(1)); +/* Generated */ lookbackTotal = 32 + TA_GLOBALS_UNSTABLE_PERIOD(TA_FUNC_UNST_MAMA,Mama); +/* Generated */ if( startIdx < lookbackTotal ) +/* Generated */ startIdx = lookbackTotal; +/* Generated */ if( startIdx > endIdx ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ trailingWMAIdx = startIdx - lookbackTotal; +/* Generated */ today = trailingWMAIdx; +/* Generated */ tempReal = inReal[today++]; +/* Generated */ periodWMASub = tempReal; +/* Generated */ periodWMASum = tempReal; +/* Generated */ tempReal = inReal[today++]; +/* Generated */ periodWMASub += tempReal; +/* Generated */ periodWMASum += tempReal*2.0; +/* Generated */ tempReal = inReal[today++]; +/* Generated */ periodWMASub += tempReal; +/* Generated */ periodWMASum += tempReal*3.0; +/* Generated */ trailingWMAValue = 0.0; +/* Generated */ #define DO_PRICE_WMA(varNewPrice,varToStoreSmoothedValue) { \ +/* Generated */ periodWMASub += varNewPrice; \ +/* Generated */ periodWMASub -= trailingWMAValue; \ +/* Generated */ periodWMASum += varNewPrice*4.0; \ +/* Generated */ trailingWMAValue = inReal[trailingWMAIdx++]; \ +/* Generated */ varToStoreSmoothedValue = periodWMASum*0.1; \ +/* Generated */ periodWMASum -= periodWMASub; \ +/* Generated */ } +/* Generated */ i = 9; +/* Generated */ do +/* Generated */ { +/* Generated */ tempReal = inReal[today++]; +/* Generated */ DO_PRICE_WMA(tempReal,smoothedValue); +/* Generated */ } while( --i != 0); +/* Generated */ hilbertIdx = 0; +/* Generated */ INIT_HILBERT_VARIABLES(detrender); +/* Generated */ INIT_HILBERT_VARIABLES(Q1); +/* Generated */ INIT_HILBERT_VARIABLES(jI); +/* Generated */ INIT_HILBERT_VARIABLES(jQ); +/* Generated */ period = 0.0; +/* Generated */ outIdx = 0; +/* Generated */ prevI2 = prevQ2 = 0.0; +/* Generated */ Re = Im = 0.0; +/* Generated */ mama = fama = 0.0; +/* Generated */ I1ForOddPrev3 = I1ForEvenPrev3 = 0.0; +/* Generated */ I1ForOddPrev2 = I1ForEvenPrev2 = 0.0; +/* Generated */ prevPhase = 0.0; +/* Generated */ while( today <= endIdx ) +/* Generated */ { +/* Generated */ adjustedPrevPeriod = (0.075*period)+0.54; +/* Generated */ todayValue = inReal[today]; +/* Generated */ DO_PRICE_WMA(todayValue,smoothedValue); +/* Generated */ if( (today%2) == 0 ) +/* Generated */ { +/* Generated */ DO_HILBERT_EVEN(detrender,smoothedValue); +/* Generated */ DO_HILBERT_EVEN(Q1,detrender); +/* Generated */ DO_HILBERT_EVEN(jI,I1ForEvenPrev3); +/* Generated */ DO_HILBERT_EVEN(jQ,Q1); +/* Generated */ if( ++hilbertIdx == 3 ) +/* Generated */ hilbertIdx = 0; +/* Generated */ Q2 = (0.2*(Q1 + jI)) + (0.8*prevQ2); +/* Generated */ I2 = (0.2*(I1ForEvenPrev3 - jQ)) + (0.8*prevI2); +/* Generated */ I1ForOddPrev3 = I1ForOddPrev2; +/* Generated */ I1ForOddPrev2 = detrender; +/* Generated */ if( I1ForEvenPrev3 != 0.0 ) +/* Generated */ tempReal2 = (std_atan(Q1/I1ForEvenPrev3)*rad2Deg); +/* Generated */ else +/* Generated */ tempReal2 = 0.0; +/* Generated */ } +/* Generated */ else +/* Generated */ { +/* Generated */ DO_HILBERT_ODD(detrender,smoothedValue); +/* Generated */ DO_HILBERT_ODD(Q1,detrender); +/* Generated */ DO_HILBERT_ODD(jI,I1ForOddPrev3); +/* Generated */ DO_HILBERT_ODD(jQ,Q1); +/* Generated */ Q2 = (0.2*(Q1 + jI)) + (0.8*prevQ2); +/* Generated */ I2 = (0.2*(I1ForOddPrev3 - jQ)) + (0.8*prevI2); +/* Generated */ I1ForEvenPrev3 = I1ForEvenPrev2; +/* Generated */ I1ForEvenPrev2 = detrender; +/* Generated */ if( I1ForOddPrev3 != 0.0 ) +/* Generated */ tempReal2 = (std_atan(Q1/I1ForOddPrev3)*rad2Deg); +/* Generated */ else +/* Generated */ tempReal2 = 0.0; +/* Generated */ } +/* Generated */ tempReal = prevPhase - tempReal2; +/* Generated */ prevPhase = tempReal2; +/* Generated */ if( tempReal < 1.0 ) +/* Generated */ tempReal = 1.0; +/* Generated */ if( tempReal > 1.0 ) +/* Generated */ { +/* Generated */ tempReal = optInFastLimit/tempReal; +/* Generated */ if( tempReal < optInSlowLimit ) +/* Generated */ tempReal = optInSlowLimit; +/* Generated */ } +/* Generated */ else +/* Generated */ { +/* Generated */ tempReal = optInFastLimit; +/* Generated */ } +/* Generated */ mama = (tempReal*todayValue)+((1-tempReal)*mama); +/* Generated */ tempReal *= 0.5; +/* Generated */ fama = (tempReal*mama)+((1-tempReal)*fama); +/* Generated */ if( today >= startIdx ) +/* Generated */ { +/* Generated */ outMAMA[outIdx] = mama; +/* Generated */ outFAMA[outIdx++] = fama; +/* Generated */ } +/* Generated */ Re = (0.2*((I2*prevI2)+(Q2*prevQ2)))+(0.8*Re); +/* Generated */ Im = (0.2*((I2*prevQ2)-(Q2*prevI2)))+(0.8*Im); +/* Generated */ prevQ2 = Q2; +/* Generated */ prevI2 = I2; +/* Generated */ tempReal = period; +/* Generated */ if( (Im != 0.0) && (Re != 0.0) ) +/* Generated */ period = 360.0 / (std_atan(Im/Re)*rad2Deg); +/* Generated */ tempReal2 = 1.5*tempReal; +/* Generated */ if( period > tempReal2) +/* Generated */ period = tempReal2; +/* Generated */ tempReal2 = 0.67*tempReal; +/* Generated */ if( period < tempReal2 ) +/* Generated */ period = tempReal2; +/* Generated */ if( period < 6 ) +/* Generated */ period = 6; +/* Generated */ else if( period > 50 ) +/* Generated */ period = 50; +/* Generated */ period = (0.2*period) + (0.8 * tempReal); +/* Generated */ today++; +/* Generated */ } +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_MAVP.c b/src/ta_func/ta_MAVP.c new file mode 100644 index 000000000..79c2fdb6e --- /dev/null +++ b/src/ta_func/ta_MAVP.c @@ -0,0 +1,492 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * MF Mario Fortier + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 021807 MF Initial Version + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::MovingAverageVariablePeriodLookback( int optInMinPeriod, /* From 2 to 100000 */ +/* Generated */ int optInMaxPeriod, /* From 2 to 100000 */ +/* Generated */ MAType optInMAType ) /* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int movingAverageVariablePeriodLookback( int optInMinPeriod, /* From 2 to 100000 */ +/* Generated */ int optInMaxPeriod, /* From 2 to 100000 */ +/* Generated */ MAType optInMAType ) /* Generated */ +/* Generated */ #else +/* Generated */ int TA_MAVP_Lookback( int optInMinPeriod, /* From 2 to 100000 */ +/* Generated */ int optInMaxPeriod, /* From 2 to 100000 */ +/* Generated */ TA_MAType optInMAType ) /* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ /* min/max are checked for optInMinPeriod. */ +/* Generated */ if( (int)optInMinPeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInMinPeriod = 2; +/* Generated */ else if( ((int)optInMinPeriod < 2) || ((int)optInMinPeriod > 100000) ) +/* Generated */ return -1; +/* Generated */ +/* Generated */ /* min/max are checked for optInMaxPeriod. */ +/* Generated */ if( (int)optInMaxPeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInMaxPeriod = 30; +/* Generated */ else if( ((int)optInMaxPeriod < 2) || ((int)optInMaxPeriod > 100000) ) +/* Generated */ return -1; +/* Generated */ +/* Generated */ #if !defined(_MANAGED) && !defined(_JAVA) +/* Generated */ if( (int)optInMAType == TA_INTEGER_DEFAULT ) +/* Generated */ optInMAType = (TA_MAType)0; +/* Generated */ else if( ((int)optInMAType < 0) || ((int)optInMAType > 8) ) +/* Generated */ return -1; +/* Generated */ +/* Generated */ #endif /* !defined(_MANAGED) && !defined(_JAVA)*/ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + return LOOKBACK_CALL(MA)(optInMaxPeriod, optInMAType); +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_MAVP - Moving average with variable period + * + * Input = double, double + * Output = double + * + * Optional Parameters + * ------------------- + * optInMinPeriod:(From 2 to 100000) + * Value less than minimum will be changed to Minimum period + * + * optInMaxPeriod:(From 2 to 100000) + * Value higher than maximum will be changed to Maximum period + * + * optInMAType: + * Type of Moving Average + * + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::MovingAverageVariablePeriod( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inReal, +/* Generated */ SubArray^ inPeriods, +/* Generated */ int optInMinPeriod, /* From 2 to 100000 */ +/* Generated */ int optInMaxPeriod, /* From 2 to 100000 */ +/* Generated */ MAType optInMAType, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::MovingAverageVariablePeriod( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ cli::array^ inPeriods, +/* Generated */ int optInMinPeriod, /* From 2 to 100000 */ +/* Generated */ int optInMaxPeriod, /* From 2 to 100000 */ +/* Generated */ MAType optInMAType, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode movingAverageVariablePeriod( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inReal[], +/* Generated */ double inPeriods[], +/* Generated */ int optInMinPeriod, /* From 2 to 100000 */ +/* Generated */ int optInMaxPeriod, /* From 2 to 100000 */ +/* Generated */ MAType optInMAType, +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_MAVP( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inReal[], +/* Generated */ const double inPeriods[], +/* Generated */ int optInMinPeriod, /* From 2 to 100000 */ +/* Generated */ int optInMaxPeriod, /* From 2 to 100000 */ +/* Generated */ TA_MAType optInMAType, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + int i, j, lookbackTotal, outputSize, tempInt, curPeriod; + ARRAY_INT_REF(localPeriodArray); + ARRAY_REF(localOutputArray); + VALUE_HANDLE_INT(localBegIdx); + VALUE_HANDLE_INT(localNbElement); + ENUM_DECLARATION(RetCode) retCode; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ if( !inPeriods ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ /* min/max are checked for optInMinPeriod. */ +/* Generated */ if( (int)optInMinPeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInMinPeriod = 2; +/* Generated */ else if( ((int)optInMinPeriod < 2) || ((int)optInMinPeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ /* min/max are checked for optInMaxPeriod. */ +/* Generated */ if( (int)optInMaxPeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInMaxPeriod = 30; +/* Generated */ else if( ((int)optInMaxPeriod < 2) || ((int)optInMaxPeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #if !defined(_MANAGED) && !defined(_JAVA) +/* Generated */ if( (int)optInMAType == TA_INTEGER_DEFAULT ) +/* Generated */ optInMAType = (TA_MAType)0; +/* Generated */ else if( ((int)optInMAType < 0) || ((int)optInMAType > 8) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_MANAGED) && !defined(_JAVA)*/ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Insert TA function code here. */ + + /* Identify the minimum number of price bar needed + * to calculate at least one output. + */ + lookbackTotal = LOOKBACK_CALL(MA)(optInMaxPeriod,optInMAType); + + /* Move up the start index if there is not + * enough initial data. + */ + if( startIdx < lookbackTotal ) + startIdx = lookbackTotal; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + + /* Calculate exact output size */ + if( lookbackTotal > startIdx ) + tempInt = lookbackTotal; + else + tempInt = startIdx; + if( tempInt > endIdx ) + { + /* No output */ + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + outputSize = endIdx - tempInt + 1; + + /* Allocate intermediate local buffer. */ + ARRAY_ALLOC(localOutputArray,outputSize); + ARRAY_INT_ALLOC(localPeriodArray,outputSize); + + /* Copy caller array of period into local buffer. + * At the same time, truncate to min/max. + */ + for( i=0; i < outputSize; i++ ) + { + tempInt = (int)(inPeriods[startIdx+i]); + if( tempInt < optInMinPeriod ) + tempInt = optInMinPeriod; + else if( tempInt > optInMaxPeriod ) + tempInt = optInMaxPeriod; + localPeriodArray[i] = tempInt; + } + + /* Process each element of the input. + * For each possible period value, the MA is calculated + * only once. + * The outReal is then fill up for all element with + * the same period. + * A local flag (value 0) is set in localPeriodArray + * to avoid doing a second time the same calculation. + */ + for( i=0; i < outputSize; i++ ) + { + curPeriod = localPeriodArray[i]; + if( curPeriod != 0 ) + { + /* TODO: This portion of the function can be slightly speed + * optimized by making the function without unstable period + * start their calculation at 'startIdx+i' instead of startIdx. + */ + + /* Calculation of the MA required. */ + retCode = FUNCTION_CALL(MA)( startIdx, endIdx, inReal, + curPeriod, optInMAType, + VALUE_HANDLE_OUT(localBegIdx),VALUE_HANDLE_OUT(localNbElement),localOutputArray ); + + if( retCode != ENUM_VALUE(RetCode,TA_SUCCESS,Success) ) + { + ARRAY_FREE(localOutputArray); + ARRAY_INT_FREE(localPeriodArray); + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return retCode; + } + + outReal[i] = localOutputArray[i]; + for( j=i+1; j < outputSize; j++ ) + { + if( localPeriodArray[j] == curPeriod ) + { + localPeriodArray[j] = 0; /* Flag to avoid recalculation */ + outReal[j] = localOutputArray[j]; + } + } + } + } + + ARRAY_FREE(localOutputArray); + ARRAY_INT_FREE(localPeriodArray); + + /* Done. Inform the caller of the success. */ + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + VALUE_HANDLE_DEREF(outNBElement) = outputSize; + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::MovingAverageVariablePeriod( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ cli::array^ inPeriods, +/* Generated */ int optInMinPeriod, /* From 2 to 100000 */ +/* Generated */ int optInMaxPeriod, /* From 2 to 100000 */ +/* Generated */ MAType optInMAType, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode movingAverageVariablePeriod( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inReal[], +/* Generated */ float inPeriods[], +/* Generated */ int optInMinPeriod, /* From 2 to 100000 */ +/* Generated */ int optInMaxPeriod, /* From 2 to 100000 */ +/* Generated */ MAType optInMAType, +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_MAVP( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inReal[], +/* Generated */ const float inPeriods[], +/* Generated */ int optInMinPeriod, /* From 2 to 100000 */ +/* Generated */ int optInMaxPeriod, /* From 2 to 100000 */ +/* Generated */ TA_MAType optInMAType, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ int i, j, lookbackTotal, outputSize, tempInt, curPeriod; +/* Generated */ ARRAY_INT_REF(localPeriodArray); +/* Generated */ ARRAY_REF(localOutputArray); +/* Generated */ VALUE_HANDLE_INT(localBegIdx); +/* Generated */ VALUE_HANDLE_INT(localNbElement); +/* Generated */ ENUM_DECLARATION(RetCode) retCode; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ if( !inPeriods ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ if( (int)optInMinPeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInMinPeriod = 2; +/* Generated */ else if( ((int)optInMinPeriod < 2) || ((int)optInMinPeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ if( (int)optInMaxPeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInMaxPeriod = 30; +/* Generated */ else if( ((int)optInMaxPeriod < 2) || ((int)optInMaxPeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #if !defined(_MANAGED) && !defined(_JAVA) +/* Generated */ if( (int)optInMAType == TA_INTEGER_DEFAULT ) +/* Generated */ optInMAType = (TA_MAType)0; +/* Generated */ else if( ((int)optInMAType < 0) || ((int)optInMAType > 8) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ lookbackTotal = LOOKBACK_CALL(MA)(optInMaxPeriod,optInMAType); +/* Generated */ if( startIdx < lookbackTotal ) +/* Generated */ startIdx = lookbackTotal; +/* Generated */ if( startIdx > endIdx ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ if( lookbackTotal > startIdx ) +/* Generated */ tempInt = lookbackTotal; +/* Generated */ else +/* Generated */ tempInt = startIdx; +/* Generated */ if( tempInt > endIdx ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ outputSize = endIdx - tempInt + 1; +/* Generated */ ARRAY_ALLOC(localOutputArray,outputSize); +/* Generated */ ARRAY_INT_ALLOC(localPeriodArray,outputSize); +/* Generated */ for( i=0; i < outputSize; i++ ) +/* Generated */ { +/* Generated */ tempInt = (int)(inPeriods[startIdx+i]); +/* Generated */ if( tempInt < optInMinPeriod ) +/* Generated */ tempInt = optInMinPeriod; +/* Generated */ else if( tempInt > optInMaxPeriod ) +/* Generated */ tempInt = optInMaxPeriod; +/* Generated */ localPeriodArray[i] = tempInt; +/* Generated */ } +/* Generated */ for( i=0; i < outputSize; i++ ) +/* Generated */ { +/* Generated */ curPeriod = localPeriodArray[i]; +/* Generated */ if( curPeriod != 0 ) +/* Generated */ { +/* Generated */ retCode = FUNCTION_CALL(MA)( startIdx, endIdx, inReal, +/* Generated */ curPeriod, optInMAType, +/* Generated */ VALUE_HANDLE_OUT(localBegIdx),VALUE_HANDLE_OUT(localNbElement),localOutputArray ); +/* Generated */ if( retCode != ENUM_VALUE(RetCode,TA_SUCCESS,Success) ) +/* Generated */ { +/* Generated */ ARRAY_FREE(localOutputArray); +/* Generated */ ARRAY_INT_FREE(localPeriodArray); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return retCode; +/* Generated */ } +/* Generated */ outReal[i] = localOutputArray[i]; +/* Generated */ for( j=i+1; j < outputSize; j++ ) +/* Generated */ { +/* Generated */ if( localPeriodArray[j] == curPeriod ) +/* Generated */ { +/* Generated */ localPeriodArray[j] = 0; +/* Generated */ outReal[j] = localOutputArray[j]; +/* Generated */ } +/* Generated */ } +/* Generated */ } +/* Generated */ } +/* Generated */ ARRAY_FREE(localOutputArray); +/* Generated */ ARRAY_INT_FREE(localPeriodArray); +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outputSize; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_MAX.c b/src/ta_func/ta_MAX.c new file mode 100644 index 000000000..8dd1eb7c6 --- /dev/null +++ b/src/ta_func/ta_MAX.c @@ -0,0 +1,373 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * MF Mario Fortier + * JV Jesus Viver <324122@cienz.unizar.es> + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 112400 MF Template creation. + * 101902 JV Speed optimization of the algorithm + * 102202 MF Speed optimize a bit further + * 052603 MF Adapt code to compile with .NET Managed C++ + * + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::MaxLookback( int optInTimePeriod ) /* From 2 to 100000 */ +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int maxLookback( int optInTimePeriod ) /* From 2 to 100000 */ +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_MAX_Lookback( int optInTimePeriod ) /* From 2 to 100000 */ +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ /* min/max are checked for optInTimePeriod. */ +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 30; +/* Generated */ else if( ((int)optInTimePeriod < 2) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return -1; +/* Generated */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + + return (optInTimePeriod-1); +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_MAX - Highest value over a specified period + * + * Input = double + * Output = double + * + * Optional Parameters + * ------------------- + * optInTimePeriod:(From 2 to 100000) + * Number of period + * + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::Max( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inReal, +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::Max( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #undef max +/* Generated */ public RetCode max( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inReal[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_MAX( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inReal[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* Insert local variables here. */ + double highest, tmp; + int outIdx, nbInitialElementNeeded; + int trailingIdx, today, i, highestIdx; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ /* min/max are checked for optInTimePeriod. */ +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 30; +/* Generated */ else if( ((int)optInTimePeriod < 2) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Insert TA function code here. */ + + /* Identify the minimum number of price bar needed + * to identify at least one output over the specified + * period. + */ + nbInitialElementNeeded = (optInTimePeriod-1); + + /* Move up the start index if there is not + * enough initial data. + */ + if( startIdx < nbInitialElementNeeded ) + startIdx = nbInitialElementNeeded; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + + /* Proceed with the calculation for the requested range. + * Note that this algorithm allows the input and + * output to be the same buffer. + */ + outIdx = 0; + today = startIdx; + trailingIdx = startIdx-nbInitialElementNeeded; + highestIdx = -1; + highest = 0.0; + + while( today <= endIdx ) + { + tmp = inReal[today]; + + if( highestIdx < trailingIdx ) + { + highestIdx = trailingIdx; + highest = inReal[highestIdx]; + i = highestIdx; + while( ++i<=today ) + { + tmp = inReal[i]; + if( tmp > highest ) + { + highestIdx = i; + highest = tmp; + } + } + } + else if( tmp >= highest ) + { + highestIdx = today; + highest = tmp; + } + + outReal[outIdx++] = highest; + trailingIdx++; + today++; + } + + /* Keep the outBegIdx relative to the + * caller input before returning. + */ + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::Max( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode max( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inReal[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_MAX( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inReal[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ double highest, tmp; +/* Generated */ int outIdx, nbInitialElementNeeded; +/* Generated */ int trailingIdx, today, i, highestIdx; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 30; +/* Generated */ else if( ((int)optInTimePeriod < 2) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ nbInitialElementNeeded = (optInTimePeriod-1); +/* Generated */ if( startIdx < nbInitialElementNeeded ) +/* Generated */ startIdx = nbInitialElementNeeded; +/* Generated */ if( startIdx > endIdx ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ outIdx = 0; +/* Generated */ today = startIdx; +/* Generated */ trailingIdx = startIdx-nbInitialElementNeeded; +/* Generated */ highestIdx = -1; +/* Generated */ highest = 0.0; +/* Generated */ while( today <= endIdx ) +/* Generated */ { +/* Generated */ tmp = inReal[today]; +/* Generated */ if( highestIdx < trailingIdx ) +/* Generated */ { +/* Generated */ highestIdx = trailingIdx; +/* Generated */ highest = inReal[highestIdx]; +/* Generated */ i = highestIdx; +/* Generated */ while( ++i<=today ) +/* Generated */ { +/* Generated */ tmp = inReal[i]; +/* Generated */ if( tmp > highest ) +/* Generated */ { +/* Generated */ highestIdx = i; +/* Generated */ highest = tmp; +/* Generated */ } +/* Generated */ } +/* Generated */ } +/* Generated */ else if( tmp >= highest ) +/* Generated */ { +/* Generated */ highestIdx = today; +/* Generated */ highest = tmp; +/* Generated */ } +/* Generated */ outReal[outIdx++] = highest; +/* Generated */ trailingIdx++; +/* Generated */ today++; +/* Generated */ } +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_MAXINDEX.c b/src/ta_func/ta_MAXINDEX.c new file mode 100644 index 000000000..cbfea141d --- /dev/null +++ b/src/ta_func/ta_MAXINDEX.c @@ -0,0 +1,368 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * AC Angelo Ciceri + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 120806 AC Creation (equal to MAX but outputs index) + * + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::MaxIndexLookback( int optInTimePeriod ) /* From 2 to 100000 */ +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int maxIndexLookback( int optInTimePeriod ) /* From 2 to 100000 */ +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_MAXINDEX_Lookback( int optInTimePeriod ) /* From 2 to 100000 */ +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ /* min/max are checked for optInTimePeriod. */ +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 30; +/* Generated */ else if( ((int)optInTimePeriod < 2) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return -1; +/* Generated */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + + return (optInTimePeriod-1); +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_MAXINDEX - Index of highest value over a specified period + * + * Input = double + * Output = int + * + * Optional Parameters + * ------------------- + * optInTimePeriod:(From 2 to 100000) + * Number of period + * + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::MaxIndex( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inReal, +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::MaxIndex( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode maxIndex( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inReal[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_MAXINDEX( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inReal[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* Insert local variables here. */ + double highest, tmp; + int outIdx, nbInitialElementNeeded; + int trailingIdx, today, i, highestIdx; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ /* min/max are checked for optInTimePeriod. */ +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 30; +/* Generated */ else if( ((int)optInTimePeriod < 2) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInteger ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Insert TA function code here. */ + + /* Identify the minimum number of price bar needed + * to identify at least one output over the specified + * period. + */ + nbInitialElementNeeded = (optInTimePeriod-1); + + /* Move up the start index if there is not + * enough initial data. + */ + if( startIdx < nbInitialElementNeeded ) + startIdx = nbInitialElementNeeded; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + + /* Proceed with the calculation for the requested range. + * Note that this algorithm allows the input and + * output to be the same buffer. + */ + outIdx = 0; + today = startIdx; + trailingIdx = startIdx-nbInitialElementNeeded; + highestIdx = -1; + highest = 0.0; + + while( today <= endIdx ) + { + tmp = inReal[today]; + + if( highestIdx < trailingIdx ) + { + highestIdx = trailingIdx; + highest = inReal[highestIdx]; + i = highestIdx; + while( ++i<=today ) + { + tmp = inReal[i]; + if( tmp > highest ) + { + highestIdx = i; + highest = tmp; + } + } + } + else if( tmp >= highest ) + { + highestIdx = today; + highest = tmp; + } + + outInteger[outIdx++] = highestIdx; + trailingIdx++; + today++; + } + + /* Keep the outBegIdx relative to the + * caller input before returning. + */ + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::MaxIndex( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode maxIndex( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inReal[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_MAXINDEX( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inReal[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ double highest, tmp; +/* Generated */ int outIdx, nbInitialElementNeeded; +/* Generated */ int trailingIdx, today, i, highestIdx; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 30; +/* Generated */ else if( ((int)optInTimePeriod < 2) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInteger ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ nbInitialElementNeeded = (optInTimePeriod-1); +/* Generated */ if( startIdx < nbInitialElementNeeded ) +/* Generated */ startIdx = nbInitialElementNeeded; +/* Generated */ if( startIdx > endIdx ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ outIdx = 0; +/* Generated */ today = startIdx; +/* Generated */ trailingIdx = startIdx-nbInitialElementNeeded; +/* Generated */ highestIdx = -1; +/* Generated */ highest = 0.0; +/* Generated */ while( today <= endIdx ) +/* Generated */ { +/* Generated */ tmp = inReal[today]; +/* Generated */ if( highestIdx < trailingIdx ) +/* Generated */ { +/* Generated */ highestIdx = trailingIdx; +/* Generated */ highest = inReal[highestIdx]; +/* Generated */ i = highestIdx; +/* Generated */ while( ++i<=today ) +/* Generated */ { +/* Generated */ tmp = inReal[i]; +/* Generated */ if( tmp > highest ) +/* Generated */ { +/* Generated */ highestIdx = i; +/* Generated */ highest = tmp; +/* Generated */ } +/* Generated */ } +/* Generated */ } +/* Generated */ else if( tmp >= highest ) +/* Generated */ { +/* Generated */ highestIdx = today; +/* Generated */ highest = tmp; +/* Generated */ } +/* Generated */ outInteger[outIdx++] = highestIdx; +/* Generated */ trailingIdx++; +/* Generated */ today++; +/* Generated */ } +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_MEDPRICE.c b/src/ta_func/ta_MEDPRICE.c new file mode 100644 index 000000000..53e178bbd --- /dev/null +++ b/src/ta_func/ta_MEDPRICE.c @@ -0,0 +1,264 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * MF Mario Fortier + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 112400 MF Template creation. + * 052603 MF Adapt code to compile with .NET Managed C++ + * 112605 MF Fix outBegIdx when startIdx != 0 + * + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::MedPriceLookback( void ) +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int medPriceLookback( ) +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_MEDPRICE_Lookback( void ) +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ /* No parameters to validate. */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + + /* This function have no lookback needed. */ + return 0; +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_MEDPRICE - Median Price + * + * Input = High, Low + * Output = double + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::MedPrice( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inHigh, +/* Generated */ SubArray^ inLow, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::MedPrice( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode medPrice( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inHigh[], +/* Generated */ double inLow[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_MEDPRICE( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inHigh[], +/* Generated */ const double inLow[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* Insert local variables here. */ + int outIdx, i; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ /* Verify required price component. */ +/* Generated */ if(!inHigh||!inLow) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Insert TA function code here. */ + + /* MEDPRICE = (High + Low ) / 2 + * This is the high and low of the same price bar. + * + * See MIDPRICE to use instead the highest high and lowest + * low over multiple price bar. + */ + + outIdx = 0; + + for( i=startIdx; i <= endIdx; i++ ) + { + outReal[outIdx++] = (inHigh[i]+inLow[i])/2.0; + } + + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::MedPrice( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode medPrice( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inHigh[], +/* Generated */ float inLow[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_MEDPRICE( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inHigh[], +/* Generated */ const float inLow[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ int outIdx, i; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if(!inHigh||!inLow) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ outIdx = 0; +/* Generated */ for( i=startIdx; i <= endIdx; i++ ) +/* Generated */ { +/* Generated */ outReal[outIdx++] = (inHigh[i]+inLow[i])/2.0; +/* Generated */ } +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_MFI.c b/src/ta_func/ta_MFI.c new file mode 100644 index 000000000..07fb70843 --- /dev/null +++ b/src/ta_func/ta_MFI.c @@ -0,0 +1,572 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * MF Mario Fortier + * BT BobTrader (TADoc.org forum user). + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 120802 MF Template creation. + * 052603 MF Adapt code to compile with .NET Managed C++ + * 062704 MF Prevent divide by zero. + * 121705 MF Java port related changes. + * 060907 MF,BT Fix #1727704. MFI logic bug when no price movement + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::MfiLookback( int optInTimePeriod ) /* From 2 to 100000 */ +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int mfiLookback( int optInTimePeriod ) /* From 2 to 100000 */ +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_MFI_Lookback( int optInTimePeriod ) /* From 2 to 100000 */ +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ /* min/max are checked for optInTimePeriod. */ +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 14; +/* Generated */ else if( ((int)optInTimePeriod < 2) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return -1; +/* Generated */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + return optInTimePeriod + TA_GLOBALS_UNSTABLE_PERIOD(TA_FUNC_UNST_MFI,Mfi); +} + +#if defined( _MANAGED ) + ref class MoneyFlow + { + public: + double positive; + double negative; + }; +#elif defined( _JAVA ) + // See MoneyFlow.java for the definition. +#else + typedef struct + { + double positive; + double negative; + } MoneyFlow; +#endif + + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_MFI - Money Flow Index + * + * Input = High, Low, Close, Volume + * Output = double + * + * Optional Parameters + * ------------------- + * optInTimePeriod:(From 2 to 100000) + * Number of period + * + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::Mfi( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inHigh, +/* Generated */ SubArray^ inLow, +/* Generated */ SubArray^ inClose, +/* Generated */ SubArray^ inVolume, +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::Mfi( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ cli::array^ inVolume, +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode mfi( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inHigh[], +/* Generated */ double inLow[], +/* Generated */ double inClose[], +/* Generated */ double inVolume[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_MFI( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inHigh[], +/* Generated */ const double inLow[], +/* Generated */ const double inClose[], +/* Generated */ const double inVolume[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + double posSumMF, negSumMF, prevValue; + double tempValue1, tempValue2; + int lookbackTotal, outIdx, i, today; + + CIRCBUF_PROLOG_CLASS( mflow, MoneyFlow, 50 ); /* Id, Type, Static Size */ + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ /* Verify required price component. */ +/* Generated */ if(!inHigh||!inLow||!inClose||!inVolume) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ /* min/max are checked for optInTimePeriod. */ +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 14; +/* Generated */ else if( ((int)optInTimePeriod < 2) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Insert TA function code here. */ + + CIRCBUF_INIT_CLASS( mflow, MoneyFlow, optInTimePeriod ); + + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + + /* Adjust startIdx to account for the lookback period. */ + lookbackTotal = optInTimePeriod + TA_GLOBALS_UNSTABLE_PERIOD(TA_FUNC_UNST_MFI,Mfi); + + if( startIdx < lookbackTotal ) + startIdx = lookbackTotal; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) + { + CIRCBUF_DESTROY(mflow); + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + + outIdx = 0; /* Index into the output. */ + + /* Accumulate the positive and negative money flow + * among the initial period. + */ + today = startIdx-lookbackTotal; + prevValue = (inHigh[today]+inLow[today]+inClose[today])/3.0; + + posSumMF = 0.0; + negSumMF = 0.0; + today++; + for( i=optInTimePeriod; i > 0; i-- ) + { + tempValue1 = (inHigh[today]+inLow[today]+inClose[today])/3.0; + tempValue2 = tempValue1 - prevValue; + prevValue = tempValue1; + tempValue1 *= inVolume[today++]; + if( tempValue2 < 0 ) + { + CIRCBUF_REF(mflow[mflow_Idx])negative = tempValue1; + negSumMF += tempValue1; + CIRCBUF_REF(mflow[mflow_Idx])positive = 0.0; + } + else if( tempValue2 > 0 ) + { + CIRCBUF_REF(mflow[mflow_Idx])positive = tempValue1; + posSumMF += tempValue1; + CIRCBUF_REF(mflow[mflow_Idx])negative = 0.0; + } + else + { + CIRCBUF_REF(mflow[mflow_Idx])positive = 0.0; + CIRCBUF_REF(mflow[mflow_Idx])negative = 0.0; + } + + CIRCBUF_NEXT(mflow); + } + + /* The following two equations are equivalent: + * MFI = 100 - (100 / 1 + (posSumMF/negSumMF)) + * MFI = 100 * (posSumMF/(posSumMF+negSumMF)) + * The second equation is used here for speed optimization. + */ + if( today > startIdx ) + { + tempValue1 = posSumMF+negSumMF; + if( tempValue1 < 1.0 ) + outReal[outIdx++] = 0.0; + else + outReal[outIdx++] = 100.0*(posSumMF/tempValue1); + } + else + { + /* Skip the unstable period. Do the processing + * but do not write it in the output. + */ + while( today < startIdx ) + { + posSumMF -= CIRCBUF_REF(mflow[mflow_Idx])positive; + negSumMF -= CIRCBUF_REF(mflow[mflow_Idx])negative; + + tempValue1 = (inHigh[today]+inLow[today]+inClose[today])/3.0; + tempValue2 = tempValue1 - prevValue; + prevValue = tempValue1; + tempValue1 *= inVolume[today++]; + if( tempValue2 < 0 ) + { + CIRCBUF_REF(mflow[mflow_Idx])negative = tempValue1; + negSumMF += tempValue1; + CIRCBUF_REF(mflow[mflow_Idx])positive = 0.0; + } + else if( tempValue2 > 0 ) + { + CIRCBUF_REF(mflow[mflow_Idx])positive = tempValue1; + posSumMF += tempValue1; + CIRCBUF_REF(mflow[mflow_Idx])negative = 0.0; + } + else + { + CIRCBUF_REF(mflow[mflow_Idx])positive = 0.0; + CIRCBUF_REF(mflow[mflow_Idx])negative = 0.0; + } + + CIRCBUF_NEXT(mflow); + } + } + + /* Unstable period skipped... now continue + * processing if needed. + */ + while( today <= endIdx ) + { + posSumMF -= CIRCBUF_REF(mflow[mflow_Idx])positive; + negSumMF -= CIRCBUF_REF(mflow[mflow_Idx])negative; + + tempValue1 = (inHigh[today]+inLow[today]+inClose[today])/3.0; + tempValue2 = tempValue1 - prevValue; + prevValue = tempValue1; + tempValue1 *= inVolume[today++]; + if( tempValue2 < 0 ) + { + CIRCBUF_REF(mflow[mflow_Idx])negative = tempValue1; + negSumMF += tempValue1; + CIRCBUF_REF(mflow[mflow_Idx])positive = 0.0; + } + else if( tempValue2 > 0 ) + { + CIRCBUF_REF(mflow[mflow_Idx])positive = tempValue1; + posSumMF += tempValue1; + CIRCBUF_REF(mflow[mflow_Idx])negative = 0.0; + } + else + { + CIRCBUF_REF(mflow[mflow_Idx])positive = 0.0; + CIRCBUF_REF(mflow[mflow_Idx])negative = 0.0; + } + + tempValue1 = posSumMF+negSumMF; + if( tempValue1 < 1.0 ) + outReal[outIdx++] = 0.0; + else + outReal[outIdx++] = 100.0*(posSumMF/tempValue1); + + CIRCBUF_NEXT(mflow); + } + + CIRCBUF_DESTROY(mflow); + + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::Mfi( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ cli::array^ inVolume, +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode mfi( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inHigh[], +/* Generated */ float inLow[], +/* Generated */ float inClose[], +/* Generated */ float inVolume[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_MFI( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inHigh[], +/* Generated */ const float inLow[], +/* Generated */ const float inClose[], +/* Generated */ const float inVolume[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ double posSumMF, negSumMF, prevValue; +/* Generated */ double tempValue1, tempValue2; +/* Generated */ int lookbackTotal, outIdx, i, today; +/* Generated */ CIRCBUF_PROLOG_CLASS( mflow, MoneyFlow, 50 ); +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if(!inHigh||!inLow||!inClose||!inVolume) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 14; +/* Generated */ else if( ((int)optInTimePeriod < 2) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ CIRCBUF_INIT_CLASS( mflow, MoneyFlow, optInTimePeriod ); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ lookbackTotal = optInTimePeriod + TA_GLOBALS_UNSTABLE_PERIOD(TA_FUNC_UNST_MFI,Mfi); +/* Generated */ if( startIdx < lookbackTotal ) +/* Generated */ startIdx = lookbackTotal; +/* Generated */ if( startIdx > endIdx ) +/* Generated */ { +/* Generated */ CIRCBUF_DESTROY(mflow); +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ outIdx = 0; +/* Generated */ today = startIdx-lookbackTotal; +/* Generated */ prevValue = (inHigh[today]+inLow[today]+inClose[today])/3.0; +/* Generated */ posSumMF = 0.0; +/* Generated */ negSumMF = 0.0; +/* Generated */ today++; +/* Generated */ for( i=optInTimePeriod; i > 0; i-- ) +/* Generated */ { +/* Generated */ tempValue1 = (inHigh[today]+inLow[today]+inClose[today])/3.0; +/* Generated */ tempValue2 = tempValue1 - prevValue; +/* Generated */ prevValue = tempValue1; +/* Generated */ tempValue1 *= inVolume[today++]; +/* Generated */ if( tempValue2 < 0 ) +/* Generated */ { +/* Generated */ CIRCBUF_REF(mflow[mflow_Idx])negative = tempValue1; +/* Generated */ negSumMF += tempValue1; +/* Generated */ CIRCBUF_REF(mflow[mflow_Idx])positive = 0.0; +/* Generated */ } +/* Generated */ else if( tempValue2 > 0 ) +/* Generated */ { +/* Generated */ CIRCBUF_REF(mflow[mflow_Idx])positive = tempValue1; +/* Generated */ posSumMF += tempValue1; +/* Generated */ CIRCBUF_REF(mflow[mflow_Idx])negative = 0.0; +/* Generated */ } +/* Generated */ else +/* Generated */ { +/* Generated */ CIRCBUF_REF(mflow[mflow_Idx])positive = 0.0; +/* Generated */ CIRCBUF_REF(mflow[mflow_Idx])negative = 0.0; +/* Generated */ } +/* Generated */ CIRCBUF_NEXT(mflow); +/* Generated */ } +/* Generated */ if( today > startIdx ) +/* Generated */ { +/* Generated */ tempValue1 = posSumMF+negSumMF; +/* Generated */ if( tempValue1 < 1.0 ) +/* Generated */ outReal[outIdx++] = 0.0; +/* Generated */ else +/* Generated */ outReal[outIdx++] = 100.0*(posSumMF/tempValue1); +/* Generated */ } +/* Generated */ else +/* Generated */ { +/* Generated */ while( today < startIdx ) +/* Generated */ { +/* Generated */ posSumMF -= CIRCBUF_REF(mflow[mflow_Idx])positive; +/* Generated */ negSumMF -= CIRCBUF_REF(mflow[mflow_Idx])negative; +/* Generated */ tempValue1 = (inHigh[today]+inLow[today]+inClose[today])/3.0; +/* Generated */ tempValue2 = tempValue1 - prevValue; +/* Generated */ prevValue = tempValue1; +/* Generated */ tempValue1 *= inVolume[today++]; +/* Generated */ if( tempValue2 < 0 ) +/* Generated */ { +/* Generated */ CIRCBUF_REF(mflow[mflow_Idx])negative = tempValue1; +/* Generated */ negSumMF += tempValue1; +/* Generated */ CIRCBUF_REF(mflow[mflow_Idx])positive = 0.0; +/* Generated */ } +/* Generated */ else if( tempValue2 > 0 ) +/* Generated */ { +/* Generated */ CIRCBUF_REF(mflow[mflow_Idx])positive = tempValue1; +/* Generated */ posSumMF += tempValue1; +/* Generated */ CIRCBUF_REF(mflow[mflow_Idx])negative = 0.0; +/* Generated */ } +/* Generated */ else +/* Generated */ { +/* Generated */ CIRCBUF_REF(mflow[mflow_Idx])positive = 0.0; +/* Generated */ CIRCBUF_REF(mflow[mflow_Idx])negative = 0.0; +/* Generated */ } +/* Generated */ CIRCBUF_NEXT(mflow); +/* Generated */ } +/* Generated */ } +/* Generated */ while( today <= endIdx ) +/* Generated */ { +/* Generated */ posSumMF -= CIRCBUF_REF(mflow[mflow_Idx])positive; +/* Generated */ negSumMF -= CIRCBUF_REF(mflow[mflow_Idx])negative; +/* Generated */ tempValue1 = (inHigh[today]+inLow[today]+inClose[today])/3.0; +/* Generated */ tempValue2 = tempValue1 - prevValue; +/* Generated */ prevValue = tempValue1; +/* Generated */ tempValue1 *= inVolume[today++]; +/* Generated */ if( tempValue2 < 0 ) +/* Generated */ { +/* Generated */ CIRCBUF_REF(mflow[mflow_Idx])negative = tempValue1; +/* Generated */ negSumMF += tempValue1; +/* Generated */ CIRCBUF_REF(mflow[mflow_Idx])positive = 0.0; +/* Generated */ } +/* Generated */ else if( tempValue2 > 0 ) +/* Generated */ { +/* Generated */ CIRCBUF_REF(mflow[mflow_Idx])positive = tempValue1; +/* Generated */ posSumMF += tempValue1; +/* Generated */ CIRCBUF_REF(mflow[mflow_Idx])negative = 0.0; +/* Generated */ } +/* Generated */ else +/* Generated */ { +/* Generated */ CIRCBUF_REF(mflow[mflow_Idx])positive = 0.0; +/* Generated */ CIRCBUF_REF(mflow[mflow_Idx])negative = 0.0; +/* Generated */ } +/* Generated */ tempValue1 = posSumMF+negSumMF; +/* Generated */ if( tempValue1 < 1.0 ) +/* Generated */ outReal[outIdx++] = 0.0; +/* Generated */ else +/* Generated */ outReal[outIdx++] = 100.0*(posSumMF/tempValue1); +/* Generated */ CIRCBUF_NEXT(mflow); +/* Generated */ } +/* Generated */ CIRCBUF_DESTROY(mflow); +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_MIDPOINT.c b/src/ta_func/ta_MIDPOINT.c new file mode 100644 index 000000000..f101515e4 --- /dev/null +++ b/src/ta_func/ta_MIDPOINT.c @@ -0,0 +1,345 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * MF Mario Fortier + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 010802 MF Template creation. + * 052603 MF Adapt code to compile with .NET Managed C++ + * + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::MidPointLookback( int optInTimePeriod ) /* From 2 to 100000 */ +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int midPointLookback( int optInTimePeriod ) /* From 2 to 100000 */ +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_MIDPOINT_Lookback( int optInTimePeriod ) /* From 2 to 100000 */ +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ /* min/max are checked for optInTimePeriod. */ +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 14; +/* Generated */ else if( ((int)optInTimePeriod < 2) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return -1; +/* Generated */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + return (optInTimePeriod-1); +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_MIDPOINT - MidPoint over period + * + * Input = double + * Output = double + * + * Optional Parameters + * ------------------- + * optInTimePeriod:(From 2 to 100000) + * Number of period + * + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::MidPoint( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inReal, +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::MidPoint( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode midPoint( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inReal[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_MIDPOINT( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inReal[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + + double lowest, highest, tmp; + int outIdx, nbInitialElementNeeded; + int trailingIdx, today, i; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ /* min/max are checked for optInTimePeriod. */ +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 14; +/* Generated */ else if( ((int)optInTimePeriod < 2) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Insert TA function code here. */ + + /* Find the highest and lowest value of a timeserie + * over the period. + * MIDPOINT = (Highest Value + Lowest Value)/2 + * + * See MIDPRICE if the input is a price bar with a + * high and low timeserie. + */ + + /* Identify the minimum number of price bar needed + * to identify at least one output over the specified + * period. + */ + nbInitialElementNeeded = (optInTimePeriod-1); + + /* Move up the start index if there is not + * enough initial data. + */ + if( startIdx < nbInitialElementNeeded ) + startIdx = nbInitialElementNeeded; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + + /* Proceed with the calculation for the requested range. + * Note that this algorithm allows the input and + * output to be the same buffer. + */ + outIdx = 0; + today = startIdx; + trailingIdx = startIdx-nbInitialElementNeeded; + + while( today <= endIdx ) + { + lowest = inReal[trailingIdx++]; + highest = lowest; + for( i=trailingIdx; i <= today; i++ ) + { + tmp = inReal[i]; + if( tmp < lowest ) lowest= tmp; + else if( tmp > highest) highest = tmp; + } + + outReal[outIdx++] = (highest+lowest)/2.0; + today++; + } + + /* Keep the outBegIdx relative to the + * caller input before returning. + */ + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::MidPoint( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode midPoint( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inReal[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_MIDPOINT( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inReal[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ double lowest, highest, tmp; +/* Generated */ int outIdx, nbInitialElementNeeded; +/* Generated */ int trailingIdx, today, i; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 14; +/* Generated */ else if( ((int)optInTimePeriod < 2) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ nbInitialElementNeeded = (optInTimePeriod-1); +/* Generated */ if( startIdx < nbInitialElementNeeded ) +/* Generated */ startIdx = nbInitialElementNeeded; +/* Generated */ if( startIdx > endIdx ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ outIdx = 0; +/* Generated */ today = startIdx; +/* Generated */ trailingIdx = startIdx-nbInitialElementNeeded; +/* Generated */ while( today <= endIdx ) +/* Generated */ { +/* Generated */ lowest = inReal[trailingIdx++]; +/* Generated */ highest = lowest; +/* Generated */ for( i=trailingIdx; i <= today; i++ ) +/* Generated */ { +/* Generated */ tmp = inReal[i]; +/* Generated */ if( tmp < lowest ) lowest= tmp; +/* Generated */ else if( tmp > highest) highest = tmp; +/* Generated */ } +/* Generated */ outReal[outIdx++] = (highest+lowest)/2.0; +/* Generated */ today++; +/* Generated */ } +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_MIDPRICE.c b/src/ta_func/ta_MIDPRICE.c new file mode 100644 index 000000000..82156a501 --- /dev/null +++ b/src/ta_func/ta_MIDPRICE.c @@ -0,0 +1,357 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * MF Mario Fortier + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 010802 MF Template creation. + * 052603 MF Adapt code to compile with .NET Managed C++ + * + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::MidPriceLookback( int optInTimePeriod ) /* From 2 to 100000 */ +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int midPriceLookback( int optInTimePeriod ) /* From 2 to 100000 */ +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_MIDPRICE_Lookback( int optInTimePeriod ) /* From 2 to 100000 */ +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ /* min/max are checked for optInTimePeriod. */ +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 14; +/* Generated */ else if( ((int)optInTimePeriod < 2) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return -1; +/* Generated */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + return (optInTimePeriod-1); +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_MIDPRICE - Midpoint Price over period + * + * Input = High, Low + * Output = double + * + * Optional Parameters + * ------------------- + * optInTimePeriod:(From 2 to 100000) + * Number of period + * + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::MidPrice( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inHigh, +/* Generated */ SubArray^ inLow, +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::MidPrice( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode midPrice( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inHigh[], +/* Generated */ double inLow[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_MIDPRICE( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inHigh[], +/* Generated */ const double inLow[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + double lowest, highest, tmp; + int outIdx, nbInitialElementNeeded; + int trailingIdx, today, i; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ /* Verify required price component. */ +/* Generated */ if(!inHigh||!inLow) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ /* min/max are checked for optInTimePeriod. */ +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 14; +/* Generated */ else if( ((int)optInTimePeriod < 2) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Insert TA function code here. */ + + /* MIDPRICE = (Highest High + Lowest Low)/2 + * + * This function is equivalent to MEDPRICE when the + * period is 1. + */ + + /* Identify the minimum number of price bar needed + * to identify at least one output over the specified + * period. + */ + nbInitialElementNeeded = (optInTimePeriod-1); + + /* Move up the start index if there is not + * enough initial data. + */ + if( startIdx < nbInitialElementNeeded ) + startIdx = nbInitialElementNeeded; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + + /* Proceed with the calculation for the requested range. + * Note that this algorithm allows the input and + * output to be the same buffer. + */ + outIdx = 0; + today = startIdx; + trailingIdx = startIdx-nbInitialElementNeeded; + + while( today <= endIdx ) + { + lowest = inLow[trailingIdx]; + highest = inHigh[trailingIdx]; + trailingIdx++; + for( i=trailingIdx; i <= today; i++ ) + { + tmp = inLow[i]; + if( tmp < lowest ) lowest= tmp; + tmp = inHigh[i]; + if( tmp > highest) highest = tmp; + } + + outReal[outIdx++] = (highest+lowest)/2.0; + today++; + } + + /* Keep the outBegIdx relative to the + * caller input before returning. + */ + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::MidPrice( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode midPrice( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inHigh[], +/* Generated */ float inLow[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_MIDPRICE( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inHigh[], +/* Generated */ const float inLow[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ double lowest, highest, tmp; +/* Generated */ int outIdx, nbInitialElementNeeded; +/* Generated */ int trailingIdx, today, i; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if(!inHigh||!inLow) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 14; +/* Generated */ else if( ((int)optInTimePeriod < 2) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ nbInitialElementNeeded = (optInTimePeriod-1); +/* Generated */ if( startIdx < nbInitialElementNeeded ) +/* Generated */ startIdx = nbInitialElementNeeded; +/* Generated */ if( startIdx > endIdx ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ outIdx = 0; +/* Generated */ today = startIdx; +/* Generated */ trailingIdx = startIdx-nbInitialElementNeeded; +/* Generated */ while( today <= endIdx ) +/* Generated */ { +/* Generated */ lowest = inLow[trailingIdx]; +/* Generated */ highest = inHigh[trailingIdx]; +/* Generated */ trailingIdx++; +/* Generated */ for( i=trailingIdx; i <= today; i++ ) +/* Generated */ { +/* Generated */ tmp = inLow[i]; +/* Generated */ if( tmp < lowest ) lowest= tmp; +/* Generated */ tmp = inHigh[i]; +/* Generated */ if( tmp > highest) highest = tmp; +/* Generated */ } +/* Generated */ outReal[outIdx++] = (highest+lowest)/2.0; +/* Generated */ today++; +/* Generated */ } +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_MIN.c b/src/ta_func/ta_MIN.c new file mode 100644 index 000000000..642b87016 --- /dev/null +++ b/src/ta_func/ta_MIN.c @@ -0,0 +1,373 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * MF Mario Fortier + * JV Jesus Viver <324122@cienz.unizar.es> + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 112400 MF Template creation. + * 101902 JV Speed optimization of the algorithm + * 102202 MF Speed optimize a bit further + * 052603 MF Adapt code to compile with .NET Managed C++ + * + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::MinLookback( int optInTimePeriod ) /* From 2 to 100000 */ +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int minLookback( int optInTimePeriod ) /* From 2 to 100000 */ +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_MIN_Lookback( int optInTimePeriod ) /* From 2 to 100000 */ +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ /* min/max are checked for optInTimePeriod. */ +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 30; +/* Generated */ else if( ((int)optInTimePeriod < 2) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return -1; +/* Generated */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + + return (optInTimePeriod-1); +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_MIN - Lowest value over a specified period + * + * Input = double + * Output = double + * + * Optional Parameters + * ------------------- + * optInTimePeriod:(From 2 to 100000) + * Number of period + * + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::Min( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inReal, +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::Min( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #undef min +/* Generated */ public RetCode min( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inReal[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_MIN( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inReal[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* Insert local variables here. */ + double lowest, tmp; + int outIdx, nbInitialElementNeeded; + int trailingIdx, lowestIdx, today, i; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ /* min/max are checked for optInTimePeriod. */ +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 30; +/* Generated */ else if( ((int)optInTimePeriod < 2) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Insert TA function code here. */ + + /* Identify the minimum number of price bar needed + * to identify at least one output over the specified + * period. + */ + nbInitialElementNeeded = (optInTimePeriod-1); + + /* Move up the start index if there is not + * enough initial data. + */ + if( startIdx < nbInitialElementNeeded ) + startIdx = nbInitialElementNeeded; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + + /* Proceed with the calculation for the requested range. + * Note that this algorithm allows the input and + * output to be the same buffer. + */ + outIdx = 0; + today = startIdx; + trailingIdx = startIdx-nbInitialElementNeeded; + lowestIdx = -1; + lowest = 0.0; + + while( today <= endIdx ) + { + tmp = inReal[today]; + + if( lowestIdx < trailingIdx ) + { + lowestIdx = trailingIdx; + lowest = inReal[lowestIdx]; + i = lowestIdx; + while( ++i<=today ) + { + tmp = inReal[i]; + if( tmp < lowest ) + { + lowestIdx = i; + lowest = tmp; + } + } + } + else if( tmp <= lowest ) + { + lowestIdx = today; + lowest = tmp; + } + + outReal[outIdx++] = lowest; + trailingIdx++; + today++; + } + + /* Keep the outBegIdx relative to the + * caller input before returning. + */ + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::Min( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode min( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inReal[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_MIN( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inReal[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ double lowest, tmp; +/* Generated */ int outIdx, nbInitialElementNeeded; +/* Generated */ int trailingIdx, lowestIdx, today, i; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 30; +/* Generated */ else if( ((int)optInTimePeriod < 2) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ nbInitialElementNeeded = (optInTimePeriod-1); +/* Generated */ if( startIdx < nbInitialElementNeeded ) +/* Generated */ startIdx = nbInitialElementNeeded; +/* Generated */ if( startIdx > endIdx ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ outIdx = 0; +/* Generated */ today = startIdx; +/* Generated */ trailingIdx = startIdx-nbInitialElementNeeded; +/* Generated */ lowestIdx = -1; +/* Generated */ lowest = 0.0; +/* Generated */ while( today <= endIdx ) +/* Generated */ { +/* Generated */ tmp = inReal[today]; +/* Generated */ if( lowestIdx < trailingIdx ) +/* Generated */ { +/* Generated */ lowestIdx = trailingIdx; +/* Generated */ lowest = inReal[lowestIdx]; +/* Generated */ i = lowestIdx; +/* Generated */ while( ++i<=today ) +/* Generated */ { +/* Generated */ tmp = inReal[i]; +/* Generated */ if( tmp < lowest ) +/* Generated */ { +/* Generated */ lowestIdx = i; +/* Generated */ lowest = tmp; +/* Generated */ } +/* Generated */ } +/* Generated */ } +/* Generated */ else if( tmp <= lowest ) +/* Generated */ { +/* Generated */ lowestIdx = today; +/* Generated */ lowest = tmp; +/* Generated */ } +/* Generated */ outReal[outIdx++] = lowest; +/* Generated */ trailingIdx++; +/* Generated */ today++; +/* Generated */ } +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_MININDEX.c b/src/ta_func/ta_MININDEX.c new file mode 100644 index 000000000..070c318b5 --- /dev/null +++ b/src/ta_func/ta_MININDEX.c @@ -0,0 +1,368 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * AC Angelo Ciceri + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 120806 AC Creation (equal to MIN but outputs index) + * + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::MinIndexLookback( int optInTimePeriod ) /* From 2 to 100000 */ +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int minIndexLookback( int optInTimePeriod ) /* From 2 to 100000 */ +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_MININDEX_Lookback( int optInTimePeriod ) /* From 2 to 100000 */ +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ /* min/max are checked for optInTimePeriod. */ +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 30; +/* Generated */ else if( ((int)optInTimePeriod < 2) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return -1; +/* Generated */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + + return (optInTimePeriod-1); +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_MININDEX - Index of lowest value over a specified period + * + * Input = double + * Output = int + * + * Optional Parameters + * ------------------- + * optInTimePeriod:(From 2 to 100000) + * Number of period + * + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::MinIndex( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inReal, +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::MinIndex( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode minIndex( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inReal[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_MININDEX( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inReal[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* Insert local variables here. */ + double lowest, tmp; + int outIdx, nbInitialElementNeeded; + int trailingIdx, lowestIdx, today, i; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ /* min/max are checked for optInTimePeriod. */ +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 30; +/* Generated */ else if( ((int)optInTimePeriod < 2) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInteger ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Insert TA function code here. */ + + /* Identify the minimum number of price bar needed + * to identify at least one output over the specified + * period. + */ + nbInitialElementNeeded = (optInTimePeriod-1); + + /* Move up the start index if there is not + * enough initial data. + */ + if( startIdx < nbInitialElementNeeded ) + startIdx = nbInitialElementNeeded; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + + /* Proceed with the calculation for the requested range. + * Note that this algorithm allows the input and + * output to be the same buffer. + */ + outIdx = 0; + today = startIdx; + trailingIdx = startIdx-nbInitialElementNeeded; + lowestIdx = -1; + lowest = 0.0; + + while( today <= endIdx ) + { + tmp = inReal[today]; + + if( lowestIdx < trailingIdx ) + { + lowestIdx = trailingIdx; + lowest = inReal[lowestIdx]; + i = lowestIdx; + while( ++i<=today ) + { + tmp = inReal[i]; + if( tmp < lowest ) + { + lowestIdx = i; + lowest = tmp; + } + } + } + else if( tmp <= lowest ) + { + lowestIdx = today; + lowest = tmp; + } + + outInteger[outIdx++] = lowestIdx; + trailingIdx++; + today++; + } + + /* Keep the outBegIdx relative to the + * caller input before returning. + */ + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::MinIndex( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outInteger ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode minIndex( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inReal[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_MININDEX( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inReal[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outInteger[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ double lowest, tmp; +/* Generated */ int outIdx, nbInitialElementNeeded; +/* Generated */ int trailingIdx, lowestIdx, today, i; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 30; +/* Generated */ else if( ((int)optInTimePeriod < 2) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outInteger ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ nbInitialElementNeeded = (optInTimePeriod-1); +/* Generated */ if( startIdx < nbInitialElementNeeded ) +/* Generated */ startIdx = nbInitialElementNeeded; +/* Generated */ if( startIdx > endIdx ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ outIdx = 0; +/* Generated */ today = startIdx; +/* Generated */ trailingIdx = startIdx-nbInitialElementNeeded; +/* Generated */ lowestIdx = -1; +/* Generated */ lowest = 0.0; +/* Generated */ while( today <= endIdx ) +/* Generated */ { +/* Generated */ tmp = inReal[today]; +/* Generated */ if( lowestIdx < trailingIdx ) +/* Generated */ { +/* Generated */ lowestIdx = trailingIdx; +/* Generated */ lowest = inReal[lowestIdx]; +/* Generated */ i = lowestIdx; +/* Generated */ while( ++i<=today ) +/* Generated */ { +/* Generated */ tmp = inReal[i]; +/* Generated */ if( tmp < lowest ) +/* Generated */ { +/* Generated */ lowestIdx = i; +/* Generated */ lowest = tmp; +/* Generated */ } +/* Generated */ } +/* Generated */ } +/* Generated */ else if( tmp <= lowest ) +/* Generated */ { +/* Generated */ lowestIdx = today; +/* Generated */ lowest = tmp; +/* Generated */ } +/* Generated */ outInteger[outIdx++] = lowestIdx; +/* Generated */ trailingIdx++; +/* Generated */ today++; +/* Generated */ } +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_MINMAX.c b/src/ta_func/ta_MINMAX.c new file mode 100644 index 000000000..13e00e337 --- /dev/null +++ b/src/ta_func/ta_MINMAX.c @@ -0,0 +1,429 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * AC Angelo Ciceri + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 120906 AC Creation + * + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::MinMaxLookback( int optInTimePeriod ) /* From 2 to 100000 */ +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int minMaxLookback( int optInTimePeriod ) /* From 2 to 100000 */ +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_MINMAX_Lookback( int optInTimePeriod ) /* From 2 to 100000 */ +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ /* min/max are checked for optInTimePeriod. */ +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 30; +/* Generated */ else if( ((int)optInTimePeriod < 2) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return -1; +/* Generated */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + + return (optInTimePeriod-1); +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_MINMAX - Lowest and highest values over a specified period + * + * Input = double + * Output = double, double + * + * Optional Parameters + * ------------------- + * optInTimePeriod:(From 2 to 100000) + * Number of period + * + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::MinMax( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inReal, +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outMin, +/* Generated */ cli::array^ outMax ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::MinMax( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outMin, +/* Generated */ cli::array^ outMax ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode minMax( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inReal[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outMin[], +/* Generated */ double outMax[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_MINMAX( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inReal[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outMin[], +/* Generated */ double outMax[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* Insert local variables here. */ + double highest, lowest, tmpHigh, tmpLow; + int outIdx, nbInitialElementNeeded; + int trailingIdx, today, i, highestIdx, lowestIdx; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ /* min/max are checked for optInTimePeriod. */ +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 30; +/* Generated */ else if( ((int)optInTimePeriod < 2) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outMin ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ if( !outMax ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Insert TA function code here. */ + + /* Identify the minimum number of price bar needed + * to identify at least one output over the specified + * period. + */ + nbInitialElementNeeded = (optInTimePeriod-1); + + /* Move up the start index if there is not + * enough initial data. + */ + if( startIdx < nbInitialElementNeeded ) + startIdx = nbInitialElementNeeded; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + + /* Proceed with the calculation for the requested range. + * Note that this algorithm allows the input and + * output to be the same buffer. + */ + outIdx = 0; + today = startIdx; + trailingIdx = startIdx-nbInitialElementNeeded; + highestIdx = -1; + highest = 0.0; + lowestIdx = -1; + lowest = 0.0; + + while( today <= endIdx ) + { + tmpLow = tmpHigh = inReal[today]; + + if( highestIdx < trailingIdx ) + { + highestIdx = trailingIdx; + highest = inReal[highestIdx]; + i = highestIdx; + while( ++i<=today ) + { + tmpHigh = inReal[i]; + if( tmpHigh > highest ) + { + highestIdx = i; + highest = tmpHigh; + } + } + } + else if( tmpHigh >= highest ) + { + highestIdx = today; + highest = tmpHigh; + } + + if( lowestIdx < trailingIdx ) + { + lowestIdx = trailingIdx; + lowest = inReal[lowestIdx]; + i = lowestIdx; + while( ++i<=today ) + { + tmpLow = inReal[i]; + if( tmpLow < lowest ) + { + lowestIdx = i; + lowest = tmpLow; + } + } + } + else if( tmpLow <= lowest ) + { + lowestIdx = today; + lowest = tmpLow; + } + + outMax[outIdx] = highest; + outMin[outIdx] = lowest; + outIdx++; + trailingIdx++; + today++; + } + + /* Keep the outBegIdx relative to the + * caller input before returning. + */ + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::MinMax( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outMin, +/* Generated */ cli::array^ outMax ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode minMax( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inReal[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outMin[], +/* Generated */ double outMax[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_MINMAX( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inReal[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outMin[], +/* Generated */ double outMax[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ double highest, lowest, tmpHigh, tmpLow; +/* Generated */ int outIdx, nbInitialElementNeeded; +/* Generated */ int trailingIdx, today, i, highestIdx, lowestIdx; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 30; +/* Generated */ else if( ((int)optInTimePeriod < 2) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outMin ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ if( !outMax ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ nbInitialElementNeeded = (optInTimePeriod-1); +/* Generated */ if( startIdx < nbInitialElementNeeded ) +/* Generated */ startIdx = nbInitialElementNeeded; +/* Generated */ if( startIdx > endIdx ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ outIdx = 0; +/* Generated */ today = startIdx; +/* Generated */ trailingIdx = startIdx-nbInitialElementNeeded; +/* Generated */ highestIdx = -1; +/* Generated */ highest = 0.0; +/* Generated */ lowestIdx = -1; +/* Generated */ lowest = 0.0; +/* Generated */ while( today <= endIdx ) +/* Generated */ { +/* Generated */ tmpLow = tmpHigh = inReal[today]; +/* Generated */ if( highestIdx < trailingIdx ) +/* Generated */ { +/* Generated */ highestIdx = trailingIdx; +/* Generated */ highest = inReal[highestIdx]; +/* Generated */ i = highestIdx; +/* Generated */ while( ++i<=today ) +/* Generated */ { +/* Generated */ tmpHigh = inReal[i]; +/* Generated */ if( tmpHigh > highest ) +/* Generated */ { +/* Generated */ highestIdx = i; +/* Generated */ highest = tmpHigh; +/* Generated */ } +/* Generated */ } +/* Generated */ } +/* Generated */ else if( tmpHigh >= highest ) +/* Generated */ { +/* Generated */ highestIdx = today; +/* Generated */ highest = tmpHigh; +/* Generated */ } +/* Generated */ if( lowestIdx < trailingIdx ) +/* Generated */ { +/* Generated */ lowestIdx = trailingIdx; +/* Generated */ lowest = inReal[lowestIdx]; +/* Generated */ i = lowestIdx; +/* Generated */ while( ++i<=today ) +/* Generated */ { +/* Generated */ tmpLow = inReal[i]; +/* Generated */ if( tmpLow < lowest ) +/* Generated */ { +/* Generated */ lowestIdx = i; +/* Generated */ lowest = tmpLow; +/* Generated */ } +/* Generated */ } +/* Generated */ } +/* Generated */ else if( tmpLow <= lowest ) +/* Generated */ { +/* Generated */ lowestIdx = today; +/* Generated */ lowest = tmpLow; +/* Generated */ } +/* Generated */ outMax[outIdx] = highest; +/* Generated */ outMin[outIdx] = lowest; +/* Generated */ outIdx++; +/* Generated */ trailingIdx++; +/* Generated */ today++; +/* Generated */ } +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_MINMAXINDEX.c b/src/ta_func/ta_MINMAXINDEX.c new file mode 100644 index 000000000..ad2b7f2fe --- /dev/null +++ b/src/ta_func/ta_MINMAXINDEX.c @@ -0,0 +1,429 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * AC Angelo Ciceri + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 120906 AC Creation (equal to MINMAX but outputs index) + * + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::MinMaxIndexLookback( int optInTimePeriod ) /* From 2 to 100000 */ +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int minMaxIndexLookback( int optInTimePeriod ) /* From 2 to 100000 */ +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_MINMAXINDEX_Lookback( int optInTimePeriod ) /* From 2 to 100000 */ +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ /* min/max are checked for optInTimePeriod. */ +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 30; +/* Generated */ else if( ((int)optInTimePeriod < 2) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return -1; +/* Generated */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + + return (optInTimePeriod-1); +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_MINMAXINDEX - Indexes of lowest and highest values over a specified period + * + * Input = double + * Output = int, int + * + * Optional Parameters + * ------------------- + * optInTimePeriod:(From 2 to 100000) + * Number of period + * + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::MinMaxIndex( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inReal, +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outMinIdx, +/* Generated */ cli::array^ outMaxIdx ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::MinMaxIndex( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outMinIdx, +/* Generated */ cli::array^ outMaxIdx ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode minMaxIndex( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inReal[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outMinIdx[], +/* Generated */ int outMaxIdx[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_MINMAXINDEX( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inReal[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outMinIdx[], +/* Generated */ int outMaxIdx[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* Insert local variables here. */ + double highest, lowest, tmpHigh, tmpLow; + int outIdx, nbInitialElementNeeded; + int trailingIdx, today, i, highestIdx, lowestIdx; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ /* min/max are checked for optInTimePeriod. */ +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 30; +/* Generated */ else if( ((int)optInTimePeriod < 2) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outMinIdx ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ if( !outMaxIdx ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Insert TA function code here. */ + + /* Identify the minimum number of price bar needed + * to identify at least one output over the specified + * period. + */ + nbInitialElementNeeded = (optInTimePeriod-1); + + /* Move up the start index if there is not + * enough initial data. + */ + if( startIdx < nbInitialElementNeeded ) + startIdx = nbInitialElementNeeded; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + + /* Proceed with the calculation for the requested range. + * Note that this algorithm allows the input and + * output to be the same buffer. + */ + outIdx = 0; + today = startIdx; + trailingIdx = startIdx-nbInitialElementNeeded; + highestIdx = -1; + highest = 0.0; + lowestIdx = -1; + lowest = 0.0; + + while( today <= endIdx ) + { + tmpLow = tmpHigh = inReal[today]; + + if( highestIdx < trailingIdx ) + { + highestIdx = trailingIdx; + highest = inReal[highestIdx]; + i = highestIdx; + while( ++i<=today ) + { + tmpHigh = inReal[i]; + if( tmpHigh > highest ) + { + highestIdx = i; + highest = tmpHigh; + } + } + } + else if( tmpHigh >= highest ) + { + highestIdx = today; + highest = tmpHigh; + } + + if( lowestIdx < trailingIdx ) + { + lowestIdx = trailingIdx; + lowest = inReal[lowestIdx]; + i = lowestIdx; + while( ++i<=today ) + { + tmpLow = inReal[i]; + if( tmpLow < lowest ) + { + lowestIdx = i; + lowest = tmpLow; + } + } + } + else if( tmpLow <= lowest ) + { + lowestIdx = today; + lowest = tmpLow; + } + + outMaxIdx[outIdx] = highestIdx; + outMinIdx[outIdx] = lowestIdx; + outIdx++; + trailingIdx++; + today++; + } + + /* Keep the outBegIdx relative to the + * caller input before returning. + */ + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::MinMaxIndex( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outMinIdx, +/* Generated */ cli::array^ outMaxIdx ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode minMaxIndex( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inReal[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ int outMinIdx[], +/* Generated */ int outMaxIdx[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_MINMAXINDEX( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inReal[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ int outMinIdx[], +/* Generated */ int outMaxIdx[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ double highest, lowest, tmpHigh, tmpLow; +/* Generated */ int outIdx, nbInitialElementNeeded; +/* Generated */ int trailingIdx, today, i, highestIdx, lowestIdx; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 30; +/* Generated */ else if( ((int)optInTimePeriod < 2) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outMinIdx ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ if( !outMaxIdx ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ nbInitialElementNeeded = (optInTimePeriod-1); +/* Generated */ if( startIdx < nbInitialElementNeeded ) +/* Generated */ startIdx = nbInitialElementNeeded; +/* Generated */ if( startIdx > endIdx ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ outIdx = 0; +/* Generated */ today = startIdx; +/* Generated */ trailingIdx = startIdx-nbInitialElementNeeded; +/* Generated */ highestIdx = -1; +/* Generated */ highest = 0.0; +/* Generated */ lowestIdx = -1; +/* Generated */ lowest = 0.0; +/* Generated */ while( today <= endIdx ) +/* Generated */ { +/* Generated */ tmpLow = tmpHigh = inReal[today]; +/* Generated */ if( highestIdx < trailingIdx ) +/* Generated */ { +/* Generated */ highestIdx = trailingIdx; +/* Generated */ highest = inReal[highestIdx]; +/* Generated */ i = highestIdx; +/* Generated */ while( ++i<=today ) +/* Generated */ { +/* Generated */ tmpHigh = inReal[i]; +/* Generated */ if( tmpHigh > highest ) +/* Generated */ { +/* Generated */ highestIdx = i; +/* Generated */ highest = tmpHigh; +/* Generated */ } +/* Generated */ } +/* Generated */ } +/* Generated */ else if( tmpHigh >= highest ) +/* Generated */ { +/* Generated */ highestIdx = today; +/* Generated */ highest = tmpHigh; +/* Generated */ } +/* Generated */ if( lowestIdx < trailingIdx ) +/* Generated */ { +/* Generated */ lowestIdx = trailingIdx; +/* Generated */ lowest = inReal[lowestIdx]; +/* Generated */ i = lowestIdx; +/* Generated */ while( ++i<=today ) +/* Generated */ { +/* Generated */ tmpLow = inReal[i]; +/* Generated */ if( tmpLow < lowest ) +/* Generated */ { +/* Generated */ lowestIdx = i; +/* Generated */ lowest = tmpLow; +/* Generated */ } +/* Generated */ } +/* Generated */ } +/* Generated */ else if( tmpLow <= lowest ) +/* Generated */ { +/* Generated */ lowestIdx = today; +/* Generated */ lowest = tmpLow; +/* Generated */ } +/* Generated */ outMaxIdx[outIdx] = highestIdx; +/* Generated */ outMinIdx[outIdx] = lowestIdx; +/* Generated */ outIdx++; +/* Generated */ trailingIdx++; +/* Generated */ today++; +/* Generated */ } +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_MINUS_DI.c b/src/ta_func/ta_MINUS_DI.c new file mode 100644 index 000000000..eb14f38c8 --- /dev/null +++ b/src/ta_func/ta_MINUS_DI.c @@ -0,0 +1,703 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * MF Mario Fortier + * AM Adrian Michel + * MIF Mirek Fontan (mira@fontan.cz) + * CF Christo Fogelberg + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 010802 MF Template creation. + * 052603 MF Adapt code to compile with .NET Managed C++ + * 082303 MF Fix #792298. Remove rounding. Bug reported by AM. + * 062704 MF Fix #965557. Div by zero bug reported by MIF. + * 122204 MF,CF Fix #1090231. Issues when period is 1. + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::MinusDILookback( int optInTimePeriod ) /* From 1 to 100000 */ +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int minusDILookback( int optInTimePeriod ) /* From 1 to 100000 */ +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_MINUS_DI_Lookback( int optInTimePeriod ) /* From 1 to 100000 */ +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ /* min/max are checked for optInTimePeriod. */ +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 14; +/* Generated */ else if( ((int)optInTimePeriod < 1) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return -1; +/* Generated */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + + if( optInTimePeriod > 1 ) + return optInTimePeriod + TA_GLOBALS_UNSTABLE_PERIOD(TA_FUNC_UNST_MINUS_DI,MinusDI); + else + return 1; +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_MINUS_DI - Minus Directional Indicator + * + * Input = High, Low, Close + * Output = double + * + * Optional Parameters + * ------------------- + * optInTimePeriod:(From 1 to 100000) + * Number of period + * + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::MinusDI( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inHigh, +/* Generated */ SubArray^ inLow, +/* Generated */ SubArray^ inClose, +/* Generated */ int optInTimePeriod, /* From 1 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::MinusDI( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ int optInTimePeriod, /* From 1 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode minusDI( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inHigh[], +/* Generated */ double inLow[], +/* Generated */ double inClose[], +/* Generated */ int optInTimePeriod, /* From 1 to 100000 */ +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_MINUS_DI( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inHigh[], +/* Generated */ const double inLow[], +/* Generated */ const double inClose[], +/* Generated */ int optInTimePeriod, /* From 1 to 100000 */ +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + + int today, lookbackTotal, outIdx; + double prevHigh, prevLow, prevClose; + double prevMinusDM, prevTR; + double tempReal, tempReal2, diffP, diffM; + + int i; + + #define TRUE_RANGE(TH,TL,YC,OUT) {\ + OUT = TH-TL; \ + tempReal2 = std_fabs(TH-YC); \ + if( tempReal2 > OUT ) \ + OUT = tempReal2; \ + tempReal2 = std_fabs(TL-YC); \ + if( tempReal2 > OUT ) \ + OUT = tempReal2; \ + } + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ /* Verify required price component. */ +/* Generated */ if(!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ /* min/max are checked for optInTimePeriod. */ +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 14; +/* Generated */ else if( ((int)optInTimePeriod < 1) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Insert TA function code here. */ + + /* + * The DM1 (one period) is base on the largest part of + * today's range that is outside of yesterdays range. + * + * The following 7 cases explain how the +DM and -DM are + * calculated on one period: + * + * Case 1: Case 2: + * C| A| + * | | C| + * | +DM1 = (C-A) B| | +DM1 = 0 + * | -DM1 = 0 | -DM1 = (B-D) + * A| | D| + * | D| + * B| + * + * Case 3: Case 4: + * C| C| + * | A| | + * | +DM1 = (C-A) | | +DM1 = 0 + * | -DM1 = 0 B| | -DM1 = (B-D) + * A| | | + * | | D| + * B| | + * D| + * + * Case 5: Case 6: + * A| A| C| + * | C| +DM1 = 0 | | +DM1 = 0 + * | | -DM1 = 0 | | -DM1 = 0 + * | D| | | + * B| B| D| + * + * + * Case 7: + * + * C| + * A| | + * | | +DM1=0 + * B| | -DM1=0 + * D| + * + * In case 3 and 4, the rule is that the smallest delta between + * (C-A) and (B-D) determine which of +DM or -DM is zero. + * + * In case 7, (C-A) and (B-D) are equal, so both +DM and -DM are + * zero. + * + * The rules remain the same when A=B and C=D (when the highs + * equal the lows). + * + * When calculating the DM over a period > 1, the one-period DM + * for the desired period are initialy sum. In other word, + * for a -DM14, sum the -DM1 for the first 14 days (that's + * 13 values because there is no DM for the first day!) + * Subsequent DM are calculated using the Wilder's + * smoothing approach: + * + * Previous -DM14 + * Today's -DM14 = Previous -DM14 - -------------- + Today's -DM1 + * 14 + * + * Calculation of a -DI14 is as follow: + * + * -DM14 + * -DI14 = -------- + * TR14 + * + * Calculation of the TR14 is: + * + * Previous TR14 + * Today's TR14 = Previous TR14 - -------------- + Today's TR1 + * 14 + * + * The first TR14 is the summation of the first 14 TR1. See the + * TA_TRANGE function on how to calculate the true range. + * + * Reference: + * New Concepts In Technical Trading Systems, J. Welles Wilder Jr + */ + + /* Original implementation from Wilder's book was doing some integer + * rounding in its calculations. + * + * This was understandable in the context that at the time the book + * was written, most user were doing the calculation by hand. + * + * For a computer, rounding is unnecessary (and even problematic when inputs + * are close to 1). + * + * TA-Lib does not do the rounding. Still, if you want to reproduce Wilder's examples, + * you can comment out the following #undef/#define and rebuild the library. + */ + #undef round_pos + #define round_pos(x) (x) + + if( optInTimePeriod > 1 ) + lookbackTotal = optInTimePeriod + TA_GLOBALS_UNSTABLE_PERIOD(TA_FUNC_UNST_MINUS_DI,MinusDI); + else + lookbackTotal = 1; + + /* Adjust startIdx to account for the lookback period. */ + if( startIdx < lookbackTotal ) + startIdx = lookbackTotal; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + + /* Indicate where the next output should be put + * in the outReal. + */ + outIdx = 0; + + /* Trap the case where no smoothing is needed. */ + if( optInTimePeriod <= 1 ) + { + /* No smoothing needed. Just do the following: + * for each price bar. + * -DM1 + * -DI1 = ---- + * TR1 + */ + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + today = startIdx-1; + prevHigh = inHigh[today]; + prevLow = inLow[today]; + prevClose = inClose[today]; + while( today < endIdx ) + { + today++; + tempReal = inHigh[today]; + diffP = tempReal-prevHigh; /* Plus Delta */ + prevHigh = tempReal; + tempReal = inLow[today]; + diffM = prevLow-tempReal; /* Minus Delta */ + prevLow = tempReal; + if( (diffM > 0) && (diffP < diffM) ) + { + /* Case 2 and 4: +DM=0,-DM=diffM */ + TRUE_RANGE(prevHigh,prevLow,prevClose,tempReal); + if( TA_IS_ZERO(tempReal) ) + outReal[outIdx++] = (double)0.0; + else + outReal[outIdx++] = diffM/tempReal; + } + else + outReal[outIdx++] = (double)0.0; + prevClose = inClose[today]; + } + + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + + /* Process the initial DM and TR */ + VALUE_HANDLE_DEREF(outBegIdx) = today = startIdx; + + prevMinusDM = 0.0; + prevTR = 0.0; + today = startIdx - lookbackTotal; + prevHigh = inHigh[today]; + prevLow = inLow[today]; + prevClose = inClose[today]; + i = optInTimePeriod-1; + while( i-- > 0 ) + { + today++; + tempReal = inHigh[today]; + diffP = tempReal-prevHigh; /* Plus Delta */ + prevHigh = tempReal; + + tempReal = inLow[today]; + diffM = prevLow-tempReal; /* Minus Delta */ + prevLow = tempReal; + if( (diffM > 0) && (diffP < diffM) ) + { + /* Case 2 and 4: +DM=0,-DM=diffM */ + prevMinusDM += diffM; + } + + TRUE_RANGE(prevHigh,prevLow,prevClose,tempReal); + prevTR += tempReal; + prevClose = inClose[today]; + } + + /* Process subsequent DI */ + + /* Skip the unstable period. Note that this loop must be executed + * at least ONCE to calculate the first DI. + */ + i = TA_GLOBALS_UNSTABLE_PERIOD(TA_FUNC_UNST_MINUS_DI,MinusDI) + 1; + while( i-- != 0 ) + { + /* Calculate the prevMinusDM */ + today++; + tempReal = inHigh[today]; + diffP = tempReal-prevHigh; /* Plus Delta */ + prevHigh = tempReal; + tempReal = inLow[today]; + diffM = prevLow-tempReal; /* Minus Delta */ + prevLow = tempReal; + if( (diffM > 0) && (diffP < diffM) ) + { + /* Case 2 and 4: +DM=0,-DM=diffM */ + prevMinusDM = prevMinusDM - (prevMinusDM/optInTimePeriod) + diffM; + } + else + { + /* Case 1,3,5 and 7 */ + prevMinusDM = prevMinusDM - (prevMinusDM/optInTimePeriod); + } + + /* Calculate the prevTR */ + TRUE_RANGE(prevHigh,prevLow,prevClose,tempReal); + prevTR = prevTR - (prevTR/optInTimePeriod) + tempReal; + prevClose = inClose[today]; + } + + + /* Now start to write the output in + * the caller provided outReal. + */ + if( !TA_IS_ZERO(prevTR) ) + outReal[0] = round_pos(100.0*(prevMinusDM/prevTR)); + else + outReal[0] = 0.0; + outIdx = 1; + + while( today < endIdx ) + { + /* Calculate the prevMinusDM */ + today++; + tempReal = inHigh[today]; + diffP = tempReal-prevHigh; /* Plus Delta */ + prevHigh = tempReal; + tempReal = inLow[today]; + diffM = prevLow-tempReal; /* Minus Delta */ + prevLow = tempReal; + if( (diffM > 0) && (diffP < diffM) ) + { + /* Case 2 and 4: +DM=0,-DM=diffM */ + prevMinusDM = prevMinusDM - (prevMinusDM/optInTimePeriod) + diffM; + } + else + { + /* Case 1,3,5 and 7 */ + prevMinusDM = prevMinusDM - (prevMinusDM/optInTimePeriod); + } + + /* Calculate the prevTR */ + TRUE_RANGE(prevHigh,prevLow,prevClose,tempReal); + prevTR = prevTR - (prevTR/optInTimePeriod) + tempReal; + prevClose = inClose[today]; + + /* Calculate the DI. The value is rounded (see Wilder book). */ + if( !TA_IS_ZERO(prevTR) ) + outReal[outIdx++] = round_pos(100.0*(prevMinusDM/prevTR)); + else + outReal[outIdx++] = 0.0; + } + + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::MinusDI( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ int optInTimePeriod, /* From 1 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode minusDI( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inHigh[], +/* Generated */ float inLow[], +/* Generated */ float inClose[], +/* Generated */ int optInTimePeriod, /* From 1 to 100000 */ +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_MINUS_DI( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inHigh[], +/* Generated */ const float inLow[], +/* Generated */ const float inClose[], +/* Generated */ int optInTimePeriod, /* From 1 to 100000 */ +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ int today, lookbackTotal, outIdx; +/* Generated */ double prevHigh, prevLow, prevClose; +/* Generated */ double prevMinusDM, prevTR; +/* Generated */ double tempReal, tempReal2, diffP, diffM; +/* Generated */ int i; +/* Generated */ #define TRUE_RANGE(TH,TL,YC,OUT) {\ +/* Generated */ OUT = TH-TL; \ +/* Generated */ tempReal2 = std_fabs(TH-YC); \ +/* Generated */ if( tempReal2 > OUT ) \ +/* Generated */ OUT = tempReal2; \ +/* Generated */ tempReal2 = std_fabs(TL-YC); \ +/* Generated */ if( tempReal2 > OUT ) \ +/* Generated */ OUT = tempReal2; \ +/* Generated */ } +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if(!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 14; +/* Generated */ else if( ((int)optInTimePeriod < 1) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ #undef round_pos +/* Generated */ #define round_pos(x) (x) +/* Generated */ if( optInTimePeriod > 1 ) +/* Generated */ lookbackTotal = optInTimePeriod + TA_GLOBALS_UNSTABLE_PERIOD(TA_FUNC_UNST_MINUS_DI,MinusDI); +/* Generated */ else +/* Generated */ lookbackTotal = 1; +/* Generated */ if( startIdx < lookbackTotal ) +/* Generated */ startIdx = lookbackTotal; +/* Generated */ if( startIdx > endIdx ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ outIdx = 0; +/* Generated */ if( optInTimePeriod <= 1 ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ today = startIdx-1; +/* Generated */ prevHigh = inHigh[today]; +/* Generated */ prevLow = inLow[today]; +/* Generated */ prevClose = inClose[today]; +/* Generated */ while( today < endIdx ) +/* Generated */ { +/* Generated */ today++; +/* Generated */ tempReal = inHigh[today]; +/* Generated */ diffP = tempReal-prevHigh; +/* Generated */ prevHigh = tempReal; +/* Generated */ tempReal = inLow[today]; +/* Generated */ diffM = prevLow-tempReal; +/* Generated */ prevLow = tempReal; +/* Generated */ if( (diffM > 0) && (diffP < diffM) ) +/* Generated */ { +/* Generated */ TRUE_RANGE(prevHigh,prevLow,prevClose,tempReal); +/* Generated */ if( TA_IS_ZERO(tempReal) ) +/* Generated */ outReal[outIdx++] = (double)0.0; +/* Generated */ else +/* Generated */ outReal[outIdx++] = diffM/tempReal; +/* Generated */ } +/* Generated */ else +/* Generated */ outReal[outIdx++] = (double)0.0; +/* Generated */ prevClose = inClose[today]; +/* Generated */ } +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = today = startIdx; +/* Generated */ prevMinusDM = 0.0; +/* Generated */ prevTR = 0.0; +/* Generated */ today = startIdx - lookbackTotal; +/* Generated */ prevHigh = inHigh[today]; +/* Generated */ prevLow = inLow[today]; +/* Generated */ prevClose = inClose[today]; +/* Generated */ i = optInTimePeriod-1; +/* Generated */ while( i-- > 0 ) +/* Generated */ { +/* Generated */ today++; +/* Generated */ tempReal = inHigh[today]; +/* Generated */ diffP = tempReal-prevHigh; +/* Generated */ prevHigh = tempReal; +/* Generated */ tempReal = inLow[today]; +/* Generated */ diffM = prevLow-tempReal; +/* Generated */ prevLow = tempReal; +/* Generated */ if( (diffM > 0) && (diffP < diffM) ) +/* Generated */ { +/* Generated */ prevMinusDM += diffM; +/* Generated */ } +/* Generated */ TRUE_RANGE(prevHigh,prevLow,prevClose,tempReal); +/* Generated */ prevTR += tempReal; +/* Generated */ prevClose = inClose[today]; +/* Generated */ } +/* Generated */ i = TA_GLOBALS_UNSTABLE_PERIOD(TA_FUNC_UNST_MINUS_DI,MinusDI) + 1; +/* Generated */ while( i-- != 0 ) +/* Generated */ { +/* Generated */ today++; +/* Generated */ tempReal = inHigh[today]; +/* Generated */ diffP = tempReal-prevHigh; +/* Generated */ prevHigh = tempReal; +/* Generated */ tempReal = inLow[today]; +/* Generated */ diffM = prevLow-tempReal; +/* Generated */ prevLow = tempReal; +/* Generated */ if( (diffM > 0) && (diffP < diffM) ) +/* Generated */ { +/* Generated */ prevMinusDM = prevMinusDM - (prevMinusDM/optInTimePeriod) + diffM; +/* Generated */ } +/* Generated */ else +/* Generated */ { +/* Generated */ prevMinusDM = prevMinusDM - (prevMinusDM/optInTimePeriod); +/* Generated */ } +/* Generated */ TRUE_RANGE(prevHigh,prevLow,prevClose,tempReal); +/* Generated */ prevTR = prevTR - (prevTR/optInTimePeriod) + tempReal; +/* Generated */ prevClose = inClose[today]; +/* Generated */ } +/* Generated */ if( !TA_IS_ZERO(prevTR) ) +/* Generated */ outReal[0] = round_pos(100.0*(prevMinusDM/prevTR)); +/* Generated */ else +/* Generated */ outReal[0] = 0.0; +/* Generated */ outIdx = 1; +/* Generated */ while( today < endIdx ) +/* Generated */ { +/* Generated */ today++; +/* Generated */ tempReal = inHigh[today]; +/* Generated */ diffP = tempReal-prevHigh; +/* Generated */ prevHigh = tempReal; +/* Generated */ tempReal = inLow[today]; +/* Generated */ diffM = prevLow-tempReal; +/* Generated */ prevLow = tempReal; +/* Generated */ if( (diffM > 0) && (diffP < diffM) ) +/* Generated */ { +/* Generated */ prevMinusDM = prevMinusDM - (prevMinusDM/optInTimePeriod) + diffM; +/* Generated */ } +/* Generated */ else +/* Generated */ { +/* Generated */ prevMinusDM = prevMinusDM - (prevMinusDM/optInTimePeriod); +/* Generated */ } +/* Generated */ TRUE_RANGE(prevHigh,prevLow,prevClose,tempReal); +/* Generated */ prevTR = prevTR - (prevTR/optInTimePeriod) + tempReal; +/* Generated */ prevClose = inClose[today]; +/* Generated */ if( !TA_IS_ZERO(prevTR) ) +/* Generated */ outReal[outIdx++] = round_pos(100.0*(prevMinusDM/prevTR)); +/* Generated */ else +/* Generated */ outReal[outIdx++] = 0.0; +/* Generated */ } +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_MINUS_DM.c b/src/ta_func/ta_MINUS_DM.c new file mode 100644 index 000000000..252e386d2 --- /dev/null +++ b/src/ta_func/ta_MINUS_DM.c @@ -0,0 +1,579 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * MF Mario Fortier + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 010802 MF Template creation. + * 052603 MF Adapt code to compile with .NET Managed C++ + * + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::MinusDMLookback( int optInTimePeriod ) /* From 1 to 100000 */ +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int minusDMLookback( int optInTimePeriod ) /* From 1 to 100000 */ +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_MINUS_DM_Lookback( int optInTimePeriod ) /* From 1 to 100000 */ +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ /* min/max are checked for optInTimePeriod. */ +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 14; +/* Generated */ else if( ((int)optInTimePeriod < 1) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return -1; +/* Generated */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + if( optInTimePeriod > 1 ) + return optInTimePeriod + TA_GLOBALS_UNSTABLE_PERIOD(TA_FUNC_UNST_MINUS_DM,MinusDM) - 1; + else + return 1; +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_MINUS_DM - Minus Directional Movement + * + * Input = High, Low + * Output = double + * + * Optional Parameters + * ------------------- + * optInTimePeriod:(From 1 to 100000) + * Number of period + * + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::MinusDM( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inHigh, +/* Generated */ SubArray^ inLow, +/* Generated */ int optInTimePeriod, /* From 1 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::MinusDM( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ int optInTimePeriod, /* From 1 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode minusDM( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inHigh[], +/* Generated */ double inLow[], +/* Generated */ int optInTimePeriod, /* From 1 to 100000 */ +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_MINUS_DM( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inHigh[], +/* Generated */ const double inLow[], +/* Generated */ int optInTimePeriod, /* From 1 to 100000 */ +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + int today, lookbackTotal, outIdx; + double prevHigh, prevLow, tempReal; + double prevMinusDM; + double diffP, diffM; + int i; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ /* Verify required price component. */ +/* Generated */ if(!inHigh||!inLow) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ /* min/max are checked for optInTimePeriod. */ +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 14; +/* Generated */ else if( ((int)optInTimePeriod < 1) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Insert TA function code here. */ + + /* + * The DM1 (one period) is base on the largest part of + * today's range that is outside of yesterdays range. + * + * The following 7 cases explain how the +DM and -DM are + * calculated on one period: + * + * Case 1: Case 2: + * C| A| + * | | C| + * | +DM1 = (C-A) B| | +DM1 = 0 + * | -DM1 = 0 | -DM1 = (B-D) + * A| | D| + * | D| + * B| + * + * Case 3: Case 4: + * C| C| + * | A| | + * | +DM1 = (C-A) | | +DM1 = 0 + * | -DM1 = 0 B| | -DM1 = (B-D) + * A| | | + * | | D| + * B| | + * D| + * + * Case 5: Case 6: + * A| A| C| + * | C| +DM1 = 0 | | +DM1 = 0 + * | | -DM1 = 0 | | -DM1 = 0 + * | D| | | + * B| B| D| + * + * + * Case 7: + * + * C| + * A| | + * | | +DM=0 + * B| | -DM=0 + * D| + * + * In case 3 and 4, the rule is that the smallest delta between + * (C-A) and (B-D) determine which of +DM or -DM is zero. + * + * In case 7, (C-A) and (B-D) are equal, so both +DM and -DM are + * zero. + * + * The rules remain the same when A=B and C=D (when the highs + * equal the lows). + * + * When calculating the DM over a period > 1, the one-period DM + * for the desired period are initialy sum. In other word, + * for a -DM14, sum the -DM1 for the first 14 days (that's + * 13 values because there is no DM for the first day!) + * Subsequent DM are calculated using the Wilder's + * smoothing approach: + * + * Previous -DM14 + * Today's -DM14 = Previous -DM14 - -------------- + Today's -DM1 + * 14 + * + * Reference: + * New Concepts In Technical Trading Systems, J. Welles Wilder Jr + */ + + if( optInTimePeriod > 1 ) + lookbackTotal = optInTimePeriod + TA_GLOBALS_UNSTABLE_PERIOD(TA_FUNC_UNST_MINUS_DM,MinusDM) - 1; + else + lookbackTotal = 1; + + /* Adjust startIdx to account for the lookback period. */ + if( startIdx < lookbackTotal ) + startIdx = lookbackTotal; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + + /* Indicate where the next output should be put + * in the outReal. + */ + outIdx = 0; + + /* Trap the case where no smoothing is needed. */ + if( optInTimePeriod <= 1 ) + { + /* No smoothing needed. Just do a simple DM1 + * for each price bar. + */ + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + today = startIdx-1; + prevHigh = inHigh[today]; + prevLow = inLow[today]; + while( today < endIdx ) + { + today++; + tempReal = inHigh[today]; + diffP = tempReal-prevHigh; /* Plus Delta */ + prevHigh = tempReal; + tempReal = inLow[today]; + diffM = prevLow-tempReal; /* Minus Delta */ + prevLow = tempReal; + if( (diffM > 0) && (diffP < diffM) ) + { + /* Case 2 and 4: +DM=0,-DM=diffM */ + outReal[outIdx++] = diffM; + } + else + outReal[outIdx++] = 0; + } + + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + + /* Process the initial DM */ + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + + prevMinusDM = 0.0; + today = startIdx - lookbackTotal; + prevHigh = inHigh[today]; + prevLow = inLow[today]; + i = optInTimePeriod-1; + while( i-- > 0 ) + { + today++; + tempReal = inHigh[today]; + diffP = tempReal-prevHigh; /* Plus Delta */ + prevHigh = tempReal; + tempReal = inLow[today]; + diffM = prevLow-tempReal; /* Minus Delta */ + prevLow = tempReal; + + if( (diffM > 0) && (diffP < diffM) ) + { + /* Case 2 and 4: +DM=0,-DM=diffM */ + prevMinusDM += diffM; + } + } + + /* Process subsequent DM */ + + /* Skip the unstable period. */ + i = TA_GLOBALS_UNSTABLE_PERIOD(TA_FUNC_UNST_MINUS_DM,MinusDM); + while( i-- != 0 ) + { + today++; + tempReal = inHigh[today]; + diffP = tempReal-prevHigh; /* Plus Delta */ + prevHigh = tempReal; + tempReal = inLow[today]; + diffM = prevLow-tempReal; /* Minus Delta */ + prevLow = tempReal; + if( (diffM > 0) && (diffP < diffM) ) + { + /* Case 2 and 4: +DM=0,-DM=diffM */ + prevMinusDM = prevMinusDM - (prevMinusDM/optInTimePeriod) + diffM; + } + else + { + /* Case 1,3,5 and 7 */ + prevMinusDM = prevMinusDM - (prevMinusDM/optInTimePeriod); + } + } + + /* Now start to write the output in + * the caller provided outReal. + */ + outReal[0] = prevMinusDM; + outIdx = 1; + + while( today < endIdx ) + { + today++; + tempReal = inHigh[today]; + diffP = tempReal-prevHigh; /* Plus Delta */ + prevHigh = tempReal; + tempReal = inLow[today]; + diffM = prevLow-tempReal; /* Minus Delta */ + prevLow = tempReal; + + if( (diffM > 0) && (diffP < diffM) ) + { + /* Case 2 and 4: +DM=0,-DM=diffM */ + prevMinusDM = prevMinusDM - (prevMinusDM/optInTimePeriod) + diffM; + } + else + { + /* Case 1,3,5 and 7 */ + prevMinusDM = prevMinusDM - (prevMinusDM/optInTimePeriod); + } + + outReal[outIdx++] = prevMinusDM; + } + + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::MinusDM( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ int optInTimePeriod, /* From 1 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode minusDM( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inHigh[], +/* Generated */ float inLow[], +/* Generated */ int optInTimePeriod, /* From 1 to 100000 */ +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_MINUS_DM( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inHigh[], +/* Generated */ const float inLow[], +/* Generated */ int optInTimePeriod, /* From 1 to 100000 */ +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ int today, lookbackTotal, outIdx; +/* Generated */ double prevHigh, prevLow, tempReal; +/* Generated */ double prevMinusDM; +/* Generated */ double diffP, diffM; +/* Generated */ int i; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if(!inHigh||!inLow) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 14; +/* Generated */ else if( ((int)optInTimePeriod < 1) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ if( optInTimePeriod > 1 ) +/* Generated */ lookbackTotal = optInTimePeriod + TA_GLOBALS_UNSTABLE_PERIOD(TA_FUNC_UNST_MINUS_DM,MinusDM) - 1; +/* Generated */ else +/* Generated */ lookbackTotal = 1; +/* Generated */ if( startIdx < lookbackTotal ) +/* Generated */ startIdx = lookbackTotal; +/* Generated */ if( startIdx > endIdx ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ outIdx = 0; +/* Generated */ if( optInTimePeriod <= 1 ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ today = startIdx-1; +/* Generated */ prevHigh = inHigh[today]; +/* Generated */ prevLow = inLow[today]; +/* Generated */ while( today < endIdx ) +/* Generated */ { +/* Generated */ today++; +/* Generated */ tempReal = inHigh[today]; +/* Generated */ diffP = tempReal-prevHigh; +/* Generated */ prevHigh = tempReal; +/* Generated */ tempReal = inLow[today]; +/* Generated */ diffM = prevLow-tempReal; +/* Generated */ prevLow = tempReal; +/* Generated */ if( (diffM > 0) && (diffP < diffM) ) +/* Generated */ { +/* Generated */ outReal[outIdx++] = diffM; +/* Generated */ } +/* Generated */ else +/* Generated */ outReal[outIdx++] = 0; +/* Generated */ } +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ prevMinusDM = 0.0; +/* Generated */ today = startIdx - lookbackTotal; +/* Generated */ prevHigh = inHigh[today]; +/* Generated */ prevLow = inLow[today]; +/* Generated */ i = optInTimePeriod-1; +/* Generated */ while( i-- > 0 ) +/* Generated */ { +/* Generated */ today++; +/* Generated */ tempReal = inHigh[today]; +/* Generated */ diffP = tempReal-prevHigh; +/* Generated */ prevHigh = tempReal; +/* Generated */ tempReal = inLow[today]; +/* Generated */ diffM = prevLow-tempReal; +/* Generated */ prevLow = tempReal; +/* Generated */ if( (diffM > 0) && (diffP < diffM) ) +/* Generated */ { +/* Generated */ prevMinusDM += diffM; +/* Generated */ } +/* Generated */ } +/* Generated */ i = TA_GLOBALS_UNSTABLE_PERIOD(TA_FUNC_UNST_MINUS_DM,MinusDM); +/* Generated */ while( i-- != 0 ) +/* Generated */ { +/* Generated */ today++; +/* Generated */ tempReal = inHigh[today]; +/* Generated */ diffP = tempReal-prevHigh; +/* Generated */ prevHigh = tempReal; +/* Generated */ tempReal = inLow[today]; +/* Generated */ diffM = prevLow-tempReal; +/* Generated */ prevLow = tempReal; +/* Generated */ if( (diffM > 0) && (diffP < diffM) ) +/* Generated */ { +/* Generated */ prevMinusDM = prevMinusDM - (prevMinusDM/optInTimePeriod) + diffM; +/* Generated */ } +/* Generated */ else +/* Generated */ { +/* Generated */ prevMinusDM = prevMinusDM - (prevMinusDM/optInTimePeriod); +/* Generated */ } +/* Generated */ } +/* Generated */ outReal[0] = prevMinusDM; +/* Generated */ outIdx = 1; +/* Generated */ while( today < endIdx ) +/* Generated */ { +/* Generated */ today++; +/* Generated */ tempReal = inHigh[today]; +/* Generated */ diffP = tempReal-prevHigh; +/* Generated */ prevHigh = tempReal; +/* Generated */ tempReal = inLow[today]; +/* Generated */ diffM = prevLow-tempReal; +/* Generated */ prevLow = tempReal; +/* Generated */ if( (diffM > 0) && (diffP < diffM) ) +/* Generated */ { +/* Generated */ prevMinusDM = prevMinusDM - (prevMinusDM/optInTimePeriod) + diffM; +/* Generated */ } +/* Generated */ else +/* Generated */ { +/* Generated */ prevMinusDM = prevMinusDM - (prevMinusDM/optInTimePeriod); +/* Generated */ } +/* Generated */ outReal[outIdx++] = prevMinusDM; +/* Generated */ } +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_MOM.c b/src/ta_func/ta_MOM.c new file mode 100644 index 000000000..955e7562b --- /dev/null +++ b/src/ta_func/ta_MOM.c @@ -0,0 +1,335 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * MF Mario Fortier + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 112400 MF Template creation. + * 052603 MF Adapt code to compile with .NET Managed C++ + * + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::MomLookback( int optInTimePeriod ) /* From 1 to 100000 */ +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int momLookback( int optInTimePeriod ) /* From 1 to 100000 */ +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_MOM_Lookback( int optInTimePeriod ) /* From 1 to 100000 */ +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ /* min/max are checked for optInTimePeriod. */ +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 10; +/* Generated */ else if( ((int)optInTimePeriod < 1) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return -1; +/* Generated */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + + return optInTimePeriod; + +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_MOM - Momentum + * + * Input = double + * Output = double + * + * Optional Parameters + * ------------------- + * optInTimePeriod:(From 1 to 100000) + * Number of period + * + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::Mom( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inReal, +/* Generated */ int optInTimePeriod, /* From 1 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::Mom( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ int optInTimePeriod, /* From 1 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode mom( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inReal[], +/* Generated */ int optInTimePeriod, /* From 1 to 100000 */ +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_MOM( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inReal[], +/* Generated */ int optInTimePeriod, /* From 1 to 100000 */ +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* Insert local variables here. */ + + int inIdx, outIdx, trailingIdx; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ /* min/max are checked for optInTimePeriod. */ +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 10; +/* Generated */ else if( ((int)optInTimePeriod < 1) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Insert TA function code here. */ + + /* The interpretation of the rate of change varies widely depending + * which software and/or books you are refering to. + * + * The following is the table of Rate-Of-Change implemented in TA-LIB: + * MOM = (price - prevPrice) [Momentum] + * ROC = ((price/prevPrice)-1)*100 [Rate of change] + * ROCP = (price-prevPrice)/prevPrice [Rate of change Percentage] + * ROCR = (price/prevPrice) [Rate of change ratio] + * ROCR100 = (price/prevPrice)*100 [Rate of change ratio 100 Scale] + * + * Here are the equivalent function in other software: + * TA-Lib | Tradestation | Metastock + * ================================================= + * MOM | Momentum | ROC (Point) + * ROC | ROC | ROC (Percent) + * ROCP | PercentChange | - + * ROCR | - | - + * ROCR100 | - | MO + * + * The MOM function is the only one who is not normalized, and thus + * should be avoided for comparing different time serie of prices. + * + * ROC and ROCP are centered at zero and can have positive and negative + * value. Here are some equivalence: + * ROC = ROCP/100 + * = ((price-prevPrice)/prevPrice)/100 + * = ((price/prevPrice)-1)*100 + * + * ROCR and ROCR100 are ratio respectively centered at 1 and 100 and are + * always positive values. + */ + + /* Move up the start index if there is not + * enough initial data. + */ + if( startIdx < optInTimePeriod ) + startIdx = optInTimePeriod; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + + /* Calculate Momentum: + * Just substract the value from 'period' ago from + * current value. + */ + outIdx = 0; + inIdx = startIdx; + trailingIdx = startIdx - optInTimePeriod; + + while( inIdx <= endIdx ) + outReal[outIdx++] = inReal[inIdx++] - inReal[trailingIdx++]; + + /* Set output limits. */ + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::Mom( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ int optInTimePeriod, /* From 1 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode mom( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inReal[], +/* Generated */ int optInTimePeriod, /* From 1 to 100000 */ +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_MOM( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inReal[], +/* Generated */ int optInTimePeriod, /* From 1 to 100000 */ +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ int inIdx, outIdx, trailingIdx; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 10; +/* Generated */ else if( ((int)optInTimePeriod < 1) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ if( startIdx < optInTimePeriod ) +/* Generated */ startIdx = optInTimePeriod; +/* Generated */ if( startIdx > endIdx ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ outIdx = 0; +/* Generated */ inIdx = startIdx; +/* Generated */ trailingIdx = startIdx - optInTimePeriod; +/* Generated */ while( inIdx <= endIdx ) +/* Generated */ outReal[outIdx++] = inReal[inIdx++] - inReal[trailingIdx++]; +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_MULT.c b/src/ta_func/ta_MULT.c new file mode 100644 index 000000000..ef59fe6e9 --- /dev/null +++ b/src/ta_func/ta_MULT.c @@ -0,0 +1,250 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * MF Mario Fortier + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 090807 MF Initial Version + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::MultLookback( void ) +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int multLookback( ) +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_MULT_Lookback( void ) +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ /* No parameters to validate. */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + + return 0; +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_MULT - Vector Arithmetic Mult + * + * Input = double, double + * Output = double + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::Mult( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inReal0, +/* Generated */ SubArray^ inReal1, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::Mult( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal0, +/* Generated */ cli::array^ inReal1, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode mult( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inReal0[], +/* Generated */ double inReal1[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_MULT( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inReal0[], +/* Generated */ const double inReal1[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + int outIdx; + int i; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal0 ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ if( !inReal1 ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Insert TA function code here. */ + + /* Default return values */ + for( i=startIdx, outIdx=0; i <= endIdx; i++, outIdx++ ) + { + outReal[outIdx] = inReal0[i]*inReal1[i]; + } + + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::Mult( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal0, +/* Generated */ cli::array^ inReal1, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode mult( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inReal0[], +/* Generated */ float inReal1[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_MULT( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inReal0[], +/* Generated */ const float inReal1[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ int outIdx; +/* Generated */ int i; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal0 ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ if( !inReal1 ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ for( i=startIdx, outIdx=0; i <= endIdx; i++, outIdx++ ) +/* Generated */ { +/* Generated */ outReal[outIdx] = inReal0[i]*inReal1[i]; +/* Generated */ } +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_NATR.c b/src/ta_func/ta_NATR.c new file mode 100644 index 000000000..326de52f2 --- /dev/null +++ b/src/ta_func/ta_NATR.c @@ -0,0 +1,486 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * MF Mario Fortier + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 060306 MF Initial Version + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::NatrLookback( int optInTimePeriod ) /* From 1 to 100000 */ +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int natrLookback( int optInTimePeriod ) /* From 1 to 100000 */ +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_NATR_Lookback( int optInTimePeriod ) /* From 1 to 100000 */ +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ /* min/max are checked for optInTimePeriod. */ +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 14; +/* Generated */ else if( ((int)optInTimePeriod < 1) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return -1; +/* Generated */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + + /* The ATR lookback is the sum of: + * 1 + (optInTimePeriod - 1) + * + * Where 1 is for the True Range, and + * (optInTimePeriod-1) is for the simple + * moving average. + */ + return optInTimePeriod + TA_GLOBALS_UNSTABLE_PERIOD(TA_FUNC_UNST_NATR,Natr); +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_NATR - Normalized Average True Range + * + * Input = High, Low, Close + * Output = double + * + * Optional Parameters + * ------------------- + * optInTimePeriod:(From 1 to 100000) + * Number of period + * + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::Natr( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inHigh, +/* Generated */ SubArray^ inLow, +/* Generated */ SubArray^ inClose, +/* Generated */ int optInTimePeriod, /* From 1 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::Natr( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ int optInTimePeriod, /* From 1 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode natr( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inHigh[], +/* Generated */ double inLow[], +/* Generated */ double inClose[], +/* Generated */ int optInTimePeriod, /* From 1 to 100000 */ +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_NATR( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inHigh[], +/* Generated */ const double inLow[], +/* Generated */ const double inClose[], +/* Generated */ int optInTimePeriod, /* From 1 to 100000 */ +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + ENUM_DECLARATION(RetCode) retCode; + int outIdx, today, lookbackTotal; + int nbATR; + VALUE_HANDLE_INT(outBegIdx1); + VALUE_HANDLE_INT(outNbElement1); + + double prevATR, tempValue; + ARRAY_REF( tempBuffer ); + ARRAY_LOCAL(prevATRTemp,1); + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ /* Verify required price component. */ +/* Generated */ if(!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ /* min/max are checked for optInTimePeriod. */ +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 14; +/* Generated */ else if( ((int)optInTimePeriod < 1) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Insert TA function code here. */ + + /* This function is very similar as ATR, except + * it is being normalized as follow: + * + * NATR = (ATR(period) / Close) * 100 + * + * + * Normalization make the ATR function more relevant + * in the folllowing scenario: + * - Long term analysis where the price changes drastically. + * - Cross-market or cross-security ATR comparison. + * + * More Info: + * Technical Analysis of Stock & Commodities (TASC) + * May 2006 by John Forman + */ + + /* Average True Range is the greatest of the following: + * + * val1 = distance from today's high to today's low. + * val2 = distance from yesterday's close to today's high. + * val3 = distance from yesterday's close to today's low. + * + * These value are averaged for the specified period using + * Wilder method. This method have an unstable period comparable + * to an Exponential Moving Average (EMA). + */ + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + + /* Adjust startIdx to account for the lookback period. */ + lookbackTotal = LOOKBACK_CALL(NATR)( optInTimePeriod ); + + if( startIdx < lookbackTotal ) + startIdx = lookbackTotal; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + + /* Trap the case where no smoothing is needed. */ + if( optInTimePeriod <= 1 ) + { + /* No smoothing needed. Just do a TRANGE. */ + return FUNCTION_CALL(TRANGE)( startIdx, endIdx, + inHigh, inLow, inClose, + outBegIdx, outNBElement, outReal ); + } + + /* Allocate an intermediate buffer for TRANGE. */ + ARRAY_ALLOC(tempBuffer, lookbackTotal+(endIdx-startIdx)+1 ); + + /* Do TRANGE in the intermediate buffer. */ + retCode = FUNCTION_CALL(TRANGE)( (startIdx-lookbackTotal+1), endIdx, + inHigh, inLow, inClose, + VALUE_HANDLE_OUT(outBegIdx1), VALUE_HANDLE_OUT(outNbElement1), + tempBuffer ); + + if( retCode != ENUM_VALUE(RetCode,TA_SUCCESS,Success) ) + { + ARRAY_FREE( tempBuffer ); + return retCode; + } + + /* First value of the ATR is a simple Average of + * the TRANGE output for the specified period. + */ + retCode = FUNCTION_CALL_DOUBLE(INT_SMA)( optInTimePeriod-1, + optInTimePeriod-1, + tempBuffer, optInTimePeriod, + VALUE_HANDLE_OUT(outBegIdx1), VALUE_HANDLE_OUT(outNbElement1), + prevATRTemp ); + + if( retCode != ENUM_VALUE(RetCode,TA_SUCCESS,Success) ) + { + ARRAY_FREE( tempBuffer ); + return retCode; + } + prevATR = prevATRTemp[0]; + + /* Subsequent value are smoothed using the + * previous ATR value (Wilder's approach). + * 1) Multiply the previous ATR by 'period-1'. + * 2) Add today TR value. + * 3) Divide by 'period'. + */ + today = optInTimePeriod; + outIdx = TA_GLOBALS_UNSTABLE_PERIOD(TA_FUNC_UNST_NATR,Natr); + /* Skip the unstable period. */ + while( outIdx != 0 ) + { + prevATR *= optInTimePeriod - 1; + prevATR += tempBuffer[today++]; + prevATR /= optInTimePeriod; + outIdx--; + } + + /* Now start to write the final ATR in the caller + * provided outReal. + */ + outIdx = 1; + tempValue = inClose[today]; + if( !TA_IS_ZERO(tempValue) ) + outReal[0] = (prevATR/tempValue)*100.0; + else + outReal[0] = 0.0; + + /* Now do the number of requested ATR. */ + nbATR = (endIdx - startIdx)+1; + + while( --nbATR != 0 ) + { + prevATR *= optInTimePeriod - 1; + prevATR += tempBuffer[today++]; + prevATR /= optInTimePeriod; + tempValue = inClose[today]; + if( !TA_IS_ZERO(tempValue) ) + outReal[outIdx] = (prevATR/tempValue)*100.0; + else + outReal[0] = 0.0; + outIdx++; + } + + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + + ARRAY_FREE( tempBuffer ); + + return retCode; +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::Natr( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ int optInTimePeriod, /* From 1 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode natr( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inHigh[], +/* Generated */ float inLow[], +/* Generated */ float inClose[], +/* Generated */ int optInTimePeriod, /* From 1 to 100000 */ +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_NATR( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inHigh[], +/* Generated */ const float inLow[], +/* Generated */ const float inClose[], +/* Generated */ int optInTimePeriod, /* From 1 to 100000 */ +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ ENUM_DECLARATION(RetCode) retCode; +/* Generated */ int outIdx, today, lookbackTotal; +/* Generated */ int nbATR; +/* Generated */ VALUE_HANDLE_INT(outBegIdx1); +/* Generated */ VALUE_HANDLE_INT(outNbElement1); +/* Generated */ double prevATR, tempValue; +/* Generated */ ARRAY_REF( tempBuffer ); +/* Generated */ ARRAY_LOCAL(prevATRTemp,1); +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if(!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 14; +/* Generated */ else if( ((int)optInTimePeriod < 1) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ lookbackTotal = LOOKBACK_CALL(NATR)( optInTimePeriod ); +/* Generated */ if( startIdx < lookbackTotal ) +/* Generated */ startIdx = lookbackTotal; +/* Generated */ if( startIdx > endIdx ) +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ if( optInTimePeriod <= 1 ) +/* Generated */ { +/* Generated */ return FUNCTION_CALL(TRANGE)( startIdx, endIdx, +/* Generated */ inHigh, inLow, inClose, +/* Generated */ outBegIdx, outNBElement, outReal ); +/* Generated */ } +/* Generated */ ARRAY_ALLOC(tempBuffer, lookbackTotal+(endIdx-startIdx)+1 ); +/* Generated */ retCode = FUNCTION_CALL(TRANGE)( (startIdx-lookbackTotal+1), endIdx, +/* Generated */ inHigh, inLow, inClose, +/* Generated */ VALUE_HANDLE_OUT(outBegIdx1), VALUE_HANDLE_OUT(outNbElement1), +/* Generated */ tempBuffer ); +/* Generated */ if( retCode != ENUM_VALUE(RetCode,TA_SUCCESS,Success) ) +/* Generated */ { +/* Generated */ ARRAY_FREE( tempBuffer ); +/* Generated */ return retCode; +/* Generated */ } +/* Generated */ retCode = FUNCTION_CALL_DOUBLE(INT_SMA)( optInTimePeriod-1, +/* Generated */ optInTimePeriod-1, +/* Generated */ tempBuffer, optInTimePeriod, +/* Generated */ VALUE_HANDLE_OUT(outBegIdx1), VALUE_HANDLE_OUT(outNbElement1), +/* Generated */ prevATRTemp ); +/* Generated */ if( retCode != ENUM_VALUE(RetCode,TA_SUCCESS,Success) ) +/* Generated */ { +/* Generated */ ARRAY_FREE( tempBuffer ); +/* Generated */ return retCode; +/* Generated */ } +/* Generated */ prevATR = prevATRTemp[0]; +/* Generated */ today = optInTimePeriod; +/* Generated */ outIdx = TA_GLOBALS_UNSTABLE_PERIOD(TA_FUNC_UNST_NATR,Natr); +/* Generated */ while( outIdx != 0 ) +/* Generated */ { +/* Generated */ prevATR *= optInTimePeriod - 1; +/* Generated */ prevATR += tempBuffer[today++]; +/* Generated */ prevATR /= optInTimePeriod; +/* Generated */ outIdx--; +/* Generated */ } +/* Generated */ outIdx = 1; +/* Generated */ tempValue = inClose[today]; +/* Generated */ if( !TA_IS_ZERO(tempValue) ) +/* Generated */ outReal[0] = (prevATR/tempValue)*100.0; +/* Generated */ else +/* Generated */ outReal[0] = 0.0; +/* Generated */ nbATR = (endIdx - startIdx)+1; +/* Generated */ while( --nbATR != 0 ) +/* Generated */ { +/* Generated */ prevATR *= optInTimePeriod - 1; +/* Generated */ prevATR += tempBuffer[today++]; +/* Generated */ prevATR /= optInTimePeriod; +/* Generated */ tempValue = inClose[today]; +/* Generated */ if( !TA_IS_ZERO(tempValue) ) +/* Generated */ outReal[outIdx] = (prevATR/tempValue)*100.0; +/* Generated */ else +/* Generated */ outReal[0] = 0.0; +/* Generated */ outIdx++; +/* Generated */ } +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ ARRAY_FREE( tempBuffer ); +/* Generated */ return retCode; +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_NVI.c b/src/ta_func/ta_NVI.c new file mode 100644 index 000000000..d39aefe06 --- /dev/null +++ b/src/ta_func/ta_NVI.c @@ -0,0 +1,197 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * MF Mario Fortier + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 120802 MF Template creation. + * + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #using +/* Generated */ #include "Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (TA_INTERNAL_ERROR) +/* Generated */ namespace TA { namespace Library { +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::NVI_Lookback( /* Generated */ void ) +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_NVI_Lookback( /* Generated */ void ) +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert lookback code here. */ + return 0; +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_NVI - Negative Volume Index + * + * Input = Close, Volume + * Output = double + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum Core::TA_RetCode Core::NVI( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inClose __gc [], +/* Generated */ int inVolume __gc [], +/* Generated */ [OutAttribute]Int32 REF(outBegIdx), +/* Generated */ [OutAttribute]Int32 REF(outNBElement), +/* Generated */ double outReal __gc [] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_NVI( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inClose[], +/* Generated */ const int inVolume[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return TA_OUT_OF_RANGE_START_INDEX; +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return TA_OUT_OF_RANGE_END_INDEX; +/* Generated */ +/* Generated */ /* Validate the parameters. */ +/* Generated */ /* Verify required price component. */ +/* Generated */ if(!inClose||!inVolume) +/* Generated */ return TA_BAD_PARAM; +/* Generated */ +/* Generated */ if( outReal == NULL ) +/* Generated */ return TA_BAD_PARAM; +/* Generated */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Insert TA function code here. */ + + /* Default return values */ + *outBegIdx = 0; + *outNBElement = 0; + + return TA_SUCCESS; +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum Core::TA_RetCode Core::NVI( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inClose __gc [], +/* Generated */ int inVolume __gc [], +/* Generated */ [OutAttribute]Int32 REF(outBegIdx), +/* Generated */ [OutAttribute]Int32 REF(outNBElement), +/* Generated */ double outReal __gc [] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_NVI( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inClose[], +/* Generated */ const int inVolume[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return TA_OUT_OF_RANGE_START_INDEX; +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return TA_OUT_OF_RANGE_END_INDEX; +/* Generated */ if(!inClose||!inVolume) +/* Generated */ return TA_BAD_PARAM; +/* Generated */ if( outReal == NULL ) +/* Generated */ return TA_BAD_PARAM; +/* Generated */ #endif +/* Generated */ *outBegIdx = 0; +/* Generated */ *outNBElement = 0; +/* Generated */ return TA_SUCCESS; +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }} // Close namespace TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_OBV.c b/src/ta_func/ta_OBV.c new file mode 100644 index 000000000..420038c66 --- /dev/null +++ b/src/ta_func/ta_OBV.c @@ -0,0 +1,280 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * MF Mario Fortier + * AC Angelo Ciceri + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 010802 MF Template creation. + * 052603 MF Adapt code to compile with .NET Managed C++ + * 110206 AC Change volume and open interest to double + * + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::ObvLookback( void ) +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int obvLookback( ) +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_OBV_Lookback( void ) +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ /* No parameters to validate. */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + + /* This function have no lookback needed. */ + return 0; +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_OBV - On Balance Volume + * + * Input = double, Volume + * Output = double + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::Obv( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inReal, +/* Generated */ SubArray^ inVolume, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::Obv( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ cli::array^ inVolume, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode obv( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inReal[], +/* Generated */ double inVolume[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_OBV( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inReal[], +/* Generated */ const double inVolume[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + int i; + int outIdx; + double prevReal, tempReal, prevOBV; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ /* Verify required price component. */ +/* Generated */ if(!inVolume) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Insert TA function code here. */ + prevOBV = inVolume[startIdx]; + prevReal = inReal[startIdx]; + outIdx = 0; + + for(i=startIdx; i <= endIdx; i++ ) + { + tempReal = inReal[i]; + if( tempReal > prevReal ) + prevOBV += inVolume[i]; + else if( tempReal < prevReal ) + prevOBV -= inVolume[i]; + + outReal[outIdx++] = prevOBV; + prevReal = tempReal; + } + + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::Obv( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ cli::array^ inVolume, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode obv( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inReal[], +/* Generated */ float inVolume[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_OBV( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inReal[], +/* Generated */ const float inVolume[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ int i; +/* Generated */ int outIdx; +/* Generated */ double prevReal, tempReal, prevOBV; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ if(!inVolume) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ prevOBV = inVolume[startIdx]; +/* Generated */ prevReal = inReal[startIdx]; +/* Generated */ outIdx = 0; +/* Generated */ for(i=startIdx; i <= endIdx; i++ ) +/* Generated */ { +/* Generated */ tempReal = inReal[i]; +/* Generated */ if( tempReal > prevReal ) +/* Generated */ prevOBV += inVolume[i]; +/* Generated */ else if( tempReal < prevReal ) +/* Generated */ prevOBV -= inVolume[i]; +/* Generated */ outReal[outIdx++] = prevOBV; +/* Generated */ prevReal = tempReal; +/* Generated */ } +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_PLUS_DI.c b/src/ta_func/ta_PLUS_DI.c new file mode 100644 index 000000000..ffe23a113 --- /dev/null +++ b/src/ta_func/ta_PLUS_DI.c @@ -0,0 +1,703 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * MF Mario Fortier + * AM Adrian Michel + * MIF Mirek Fontan (mira@fontan.cz) + * CF Christo Fogelberg + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 010802 MF Template creation. + * 052603 MF Adapt code to compile with .NET Managed C++ + * 082303 MF Fix #792298. Remove rounding. Bug reported by AM. + * 062704 MF Fix #965557. Div by zero bug reported by MIF. + * 122204 MF,CF Fix #1090231. Issues when period is 1. + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::PlusDILookback( int optInTimePeriod ) /* From 1 to 100000 */ +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int plusDILookback( int optInTimePeriod ) /* From 1 to 100000 */ +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_PLUS_DI_Lookback( int optInTimePeriod ) /* From 1 to 100000 */ +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ /* min/max are checked for optInTimePeriod. */ +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 14; +/* Generated */ else if( ((int)optInTimePeriod < 1) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return -1; +/* Generated */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + + if( optInTimePeriod > 1 ) + return optInTimePeriod + TA_GLOBALS_UNSTABLE_PERIOD(TA_FUNC_UNST_PLUS_DI,PlusDI); + else + return 1; +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_PLUS_DI - Plus Directional Indicator + * + * Input = High, Low, Close + * Output = double + * + * Optional Parameters + * ------------------- + * optInTimePeriod:(From 1 to 100000) + * Number of period + * + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::PlusDI( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inHigh, +/* Generated */ SubArray^ inLow, +/* Generated */ SubArray^ inClose, +/* Generated */ int optInTimePeriod, /* From 1 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::PlusDI( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ int optInTimePeriod, /* From 1 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode plusDI( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inHigh[], +/* Generated */ double inLow[], +/* Generated */ double inClose[], +/* Generated */ int optInTimePeriod, /* From 1 to 100000 */ +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_PLUS_DI( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inHigh[], +/* Generated */ const double inLow[], +/* Generated */ const double inClose[], +/* Generated */ int optInTimePeriod, /* From 1 to 100000 */ +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + + int today, lookbackTotal, outIdx; + double prevHigh, prevLow, prevClose; + double prevPlusDM, prevTR; + double tempReal, tempReal2, diffP, diffM; + + int i; + + #define TRUE_RANGE(TH,TL,YC,OUT) {\ + OUT = TH-TL; \ + tempReal2 = std_fabs(TH-YC); \ + if( tempReal2 > OUT ) \ + OUT = tempReal2; \ + tempReal2 = std_fabs(TL-YC); \ + if( tempReal2 > OUT ) \ + OUT = tempReal2; \ + } + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ /* Verify required price component. */ +/* Generated */ if(!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ /* min/max are checked for optInTimePeriod. */ +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 14; +/* Generated */ else if( ((int)optInTimePeriod < 1) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Insert TA function code here. */ + /* + * The DM1 (one period) is base on the largest part of + * today's range that is outside of yesterdays range. + * + * The following 7 cases explain how the +DM and -DM are + * calculated on one period: + * + * Case 1: Case 2: + * C| A| + * | | C| + * | +DM1 = (C-A) B| | +DM1 = 0 + * | -DM1 = 0 | -DM1 = (B-D) + * A| | D| + * | D| + * B| + * + * Case 3: Case 4: + * C| C| + * | A| | + * | +DM1 = (C-A) | | +DM1 = 0 + * | -DM1 = 0 B| | -DM1 = (B-D) + * A| | | + * | | D| + * B| | + * D| + * + * Case 5: Case 6: + * A| A| C| + * | C| +DM1 = 0 | | +DM1 = 0 + * | | -DM1 = 0 | | -DM1 = 0 + * | D| | | + * B| B| D| + * + * + * Case 7: + * + * C| + * A| | + * | | +DM1=0 + * B| | -DM1=0 + * D| + * + * In case 3 and 4, the rule is that the smallest delta between + * (C-A) and (B-D) determine which of +DM or -DM is zero. + * + * In case 7, (C-A) and (B-D) are equal, so both +DM and -DM are + * zero. + * + * The rules remain the same when A=B and C=D (when the highs + * equal the lows). + * + * When calculating the DM over a period > 1, the one-period DM + * for the desired period are initialy sum. In other word, + * for a -DM14, sum the -DM1 for the first 14 days (that's + * 13 values because there is no DM for the first day!) + * Subsequent DM are calculated using the Wilder's + * smoothing approach: + * + * Previous +DM14 + * Today's +DM14 = Previous +DM14 - -------------- + Today's +DM1 + * 14 + * + * Calculation of a +DI14 is as follow: + * + * +DM14 + * +DI14 = -------- + * TR14 + * + * Calculation of the TR14 is: + * + * Previous TR14 + * Today's TR14 = Previous TR14 - -------------- + Today's TR1 + * 14 + * + * The first TR14 is the summation of the first 14 TR1. See the + * TA_TRANGE function on how to calculate the true range. + * + * Reference: + * New Concepts In Technical Trading Systems, J. Welles Wilder Jr + */ + + /* Original implementation from Wilder's book was doing some integer + * rounding in its calculations. + * + * This was understandable in the context that at the time the book + * was written, most user were doing the calculation by hand. + * + * For a computer, rounding is unnecessary (and even problematic when inputs + * are close to 1). + * + * TA-Lib does not do the rounding. Still, if you want to reproduce Wilder's examples, + * you can comment out the following #undef/#define and rebuild the library. + */ + #undef round_pos + #define round_pos(x) (x) + + if( optInTimePeriod > 1 ) + lookbackTotal = optInTimePeriod + TA_GLOBALS_UNSTABLE_PERIOD(TA_FUNC_UNST_PLUS_DI,PlusDI); + else + lookbackTotal = 1; + + /* Adjust startIdx to account for the lookback period. */ + if( startIdx < lookbackTotal ) + startIdx = lookbackTotal; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + + /* Indicate where the next output should be put + * in the outReal. + */ + outIdx = 0; + + /* Trap the case where no smoothing is needed. */ + if( optInTimePeriod <= 1 ) + { + /* No smoothing needed. Just do the following: + * for each price bar. + * +DM1 + * +DI1 = ---- + * TR1 + */ + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + today = startIdx-1; + prevHigh = inHigh[today]; + prevLow = inLow[today]; + prevClose = inClose[today]; + while( today < endIdx ) + { + today++; + tempReal = inHigh[today]; + diffP = tempReal-prevHigh; /* Plus Delta */ + prevHigh = tempReal; + tempReal = inLow[today]; + diffM = prevLow-tempReal; /* Minus Delta */ + prevLow = tempReal; + if( (diffP > 0) && (diffP > diffM) ) + { + /* Case 1 and 3: +DM=diffP,-DM=0 */ + TRUE_RANGE(prevHigh,prevLow,prevClose,tempReal); + if( TA_IS_ZERO(tempReal) ) + outReal[outIdx++] = (double)0.0; + else + outReal[outIdx++] = diffP/tempReal; + } + else + outReal[outIdx++] = (double)0.0; + prevClose = inClose[today]; + } + + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + + /* Process the initial DM and TR */ + VALUE_HANDLE_DEREF(outBegIdx) = today = startIdx; + + prevPlusDM = 0.0; + prevTR = 0.0; + today = startIdx - lookbackTotal; + prevHigh = inHigh[today]; + prevLow = inLow[today]; + prevClose = inClose[today]; + i = optInTimePeriod-1; + while( i-- > 0 ) + { + today++; + tempReal = inHigh[today]; + diffP = tempReal-prevHigh; /* Plus Delta */ + prevHigh = tempReal; + + tempReal = inLow[today]; + diffM = prevLow-tempReal; /* Minus Delta */ + prevLow = tempReal; + if( (diffP > 0) && (diffP > diffM) ) + { + /* Case 1 and 3: +DM=diffP,-DM=0 */ + prevPlusDM += diffP; + } + + TRUE_RANGE(prevHigh,prevLow,prevClose,tempReal); + prevTR += tempReal; + prevClose = inClose[today]; + } + + /* Process subsequent DI */ + + /* Skip the unstable period. Note that this loop must be executed + * at least ONCE to calculate the first DI. + */ + i = TA_GLOBALS_UNSTABLE_PERIOD(TA_FUNC_UNST_PLUS_DI,PlusDI) + 1; + while( i-- != 0 ) + { + /* Calculate the prevPlusDM */ + today++; + tempReal = inHigh[today]; + diffP = tempReal-prevHigh; /* Plus Delta */ + prevHigh = tempReal; + tempReal = inLow[today]; + diffM = prevLow-tempReal; /* Minus Delta */ + prevLow = tempReal; + if( (diffP > 0) && (diffP > diffM) ) + { + /* Case 1 and 3: +DM=diffP,-DM=0 */ + prevPlusDM = prevPlusDM - (prevPlusDM/optInTimePeriod) + diffP; + } + else + { + /* Case 2,4,5 and 7 */ + prevPlusDM = prevPlusDM - (prevPlusDM/optInTimePeriod); + } + + /* Calculate the prevTR */ + TRUE_RANGE(prevHigh,prevLow,prevClose,tempReal); + prevTR = prevTR - (prevTR/optInTimePeriod) + tempReal; + prevClose = inClose[today]; + } + + /* Now start to write the output in + * the caller provided outReal. + */ + + if( !TA_IS_ZERO(prevTR) ) + outReal[0] = round_pos(100.0*(prevPlusDM/prevTR)); + else + outReal[0] = 0.0; + outIdx = 1; + + while( today < endIdx ) + { + /* Calculate the prevPlusDM */ + today++; + tempReal = inHigh[today]; + diffP = tempReal-prevHigh; /* Plus Delta */ + prevHigh = tempReal; + tempReal = inLow[today]; + diffM = prevLow-tempReal; /* Minus Delta */ + prevLow = tempReal; + if( (diffP > 0) && (diffP > diffM) ) + { + /* Case 1 and 3: +DM=diffP,-DM=0 */ + prevPlusDM = prevPlusDM - (prevPlusDM/optInTimePeriod) + diffP; + } + else + { + /* Case 2,4,5 and 7 */ + prevPlusDM = prevPlusDM - (prevPlusDM/optInTimePeriod); + } + + /* Calculate the prevTR */ + TRUE_RANGE(prevHigh,prevLow,prevClose,tempReal); + prevTR = prevTR - (prevTR/optInTimePeriod) + tempReal; + prevClose = inClose[today]; + + /* Calculate the DI. The value is rounded (see Wilder book). */ + if( !TA_IS_ZERO(prevTR) ) + outReal[outIdx++] = round_pos(100.0*(prevPlusDM/prevTR)); + else + outReal[outIdx++] = 0.0; + + } + + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::PlusDI( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ int optInTimePeriod, /* From 1 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode plusDI( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inHigh[], +/* Generated */ float inLow[], +/* Generated */ float inClose[], +/* Generated */ int optInTimePeriod, /* From 1 to 100000 */ +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_PLUS_DI( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inHigh[], +/* Generated */ const float inLow[], +/* Generated */ const float inClose[], +/* Generated */ int optInTimePeriod, /* From 1 to 100000 */ +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ int today, lookbackTotal, outIdx; +/* Generated */ double prevHigh, prevLow, prevClose; +/* Generated */ double prevPlusDM, prevTR; +/* Generated */ double tempReal, tempReal2, diffP, diffM; +/* Generated */ int i; +/* Generated */ #define TRUE_RANGE(TH,TL,YC,OUT) {\ +/* Generated */ OUT = TH-TL; \ +/* Generated */ tempReal2 = std_fabs(TH-YC); \ +/* Generated */ if( tempReal2 > OUT ) \ +/* Generated */ OUT = tempReal2; \ +/* Generated */ tempReal2 = std_fabs(TL-YC); \ +/* Generated */ if( tempReal2 > OUT ) \ +/* Generated */ OUT = tempReal2; \ +/* Generated */ } +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if(!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 14; +/* Generated */ else if( ((int)optInTimePeriod < 1) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ #undef round_pos +/* Generated */ #define round_pos(x) (x) +/* Generated */ if( optInTimePeriod > 1 ) +/* Generated */ lookbackTotal = optInTimePeriod + TA_GLOBALS_UNSTABLE_PERIOD(TA_FUNC_UNST_PLUS_DI,PlusDI); +/* Generated */ else +/* Generated */ lookbackTotal = 1; +/* Generated */ if( startIdx < lookbackTotal ) +/* Generated */ startIdx = lookbackTotal; +/* Generated */ if( startIdx > endIdx ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ outIdx = 0; +/* Generated */ if( optInTimePeriod <= 1 ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ today = startIdx-1; +/* Generated */ prevHigh = inHigh[today]; +/* Generated */ prevLow = inLow[today]; +/* Generated */ prevClose = inClose[today]; +/* Generated */ while( today < endIdx ) +/* Generated */ { +/* Generated */ today++; +/* Generated */ tempReal = inHigh[today]; +/* Generated */ diffP = tempReal-prevHigh; +/* Generated */ prevHigh = tempReal; +/* Generated */ tempReal = inLow[today]; +/* Generated */ diffM = prevLow-tempReal; +/* Generated */ prevLow = tempReal; +/* Generated */ if( (diffP > 0) && (diffP > diffM) ) +/* Generated */ { +/* Generated */ TRUE_RANGE(prevHigh,prevLow,prevClose,tempReal); +/* Generated */ if( TA_IS_ZERO(tempReal) ) +/* Generated */ outReal[outIdx++] = (double)0.0; +/* Generated */ else +/* Generated */ outReal[outIdx++] = diffP/tempReal; +/* Generated */ } +/* Generated */ else +/* Generated */ outReal[outIdx++] = (double)0.0; +/* Generated */ prevClose = inClose[today]; +/* Generated */ } +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = today = startIdx; +/* Generated */ prevPlusDM = 0.0; +/* Generated */ prevTR = 0.0; +/* Generated */ today = startIdx - lookbackTotal; +/* Generated */ prevHigh = inHigh[today]; +/* Generated */ prevLow = inLow[today]; +/* Generated */ prevClose = inClose[today]; +/* Generated */ i = optInTimePeriod-1; +/* Generated */ while( i-- > 0 ) +/* Generated */ { +/* Generated */ today++; +/* Generated */ tempReal = inHigh[today]; +/* Generated */ diffP = tempReal-prevHigh; +/* Generated */ prevHigh = tempReal; +/* Generated */ tempReal = inLow[today]; +/* Generated */ diffM = prevLow-tempReal; +/* Generated */ prevLow = tempReal; +/* Generated */ if( (diffP > 0) && (diffP > diffM) ) +/* Generated */ { +/* Generated */ prevPlusDM += diffP; +/* Generated */ } +/* Generated */ TRUE_RANGE(prevHigh,prevLow,prevClose,tempReal); +/* Generated */ prevTR += tempReal; +/* Generated */ prevClose = inClose[today]; +/* Generated */ } +/* Generated */ i = TA_GLOBALS_UNSTABLE_PERIOD(TA_FUNC_UNST_PLUS_DI,PlusDI) + 1; +/* Generated */ while( i-- != 0 ) +/* Generated */ { +/* Generated */ today++; +/* Generated */ tempReal = inHigh[today]; +/* Generated */ diffP = tempReal-prevHigh; +/* Generated */ prevHigh = tempReal; +/* Generated */ tempReal = inLow[today]; +/* Generated */ diffM = prevLow-tempReal; +/* Generated */ prevLow = tempReal; +/* Generated */ if( (diffP > 0) && (diffP > diffM) ) +/* Generated */ { +/* Generated */ prevPlusDM = prevPlusDM - (prevPlusDM/optInTimePeriod) + diffP; +/* Generated */ } +/* Generated */ else +/* Generated */ { +/* Generated */ prevPlusDM = prevPlusDM - (prevPlusDM/optInTimePeriod); +/* Generated */ } +/* Generated */ TRUE_RANGE(prevHigh,prevLow,prevClose,tempReal); +/* Generated */ prevTR = prevTR - (prevTR/optInTimePeriod) + tempReal; +/* Generated */ prevClose = inClose[today]; +/* Generated */ } +/* Generated */ if( !TA_IS_ZERO(prevTR) ) +/* Generated */ outReal[0] = round_pos(100.0*(prevPlusDM/prevTR)); +/* Generated */ else +/* Generated */ outReal[0] = 0.0; +/* Generated */ outIdx = 1; +/* Generated */ while( today < endIdx ) +/* Generated */ { +/* Generated */ today++; +/* Generated */ tempReal = inHigh[today]; +/* Generated */ diffP = tempReal-prevHigh; +/* Generated */ prevHigh = tempReal; +/* Generated */ tempReal = inLow[today]; +/* Generated */ diffM = prevLow-tempReal; +/* Generated */ prevLow = tempReal; +/* Generated */ if( (diffP > 0) && (diffP > diffM) ) +/* Generated */ { +/* Generated */ prevPlusDM = prevPlusDM - (prevPlusDM/optInTimePeriod) + diffP; +/* Generated */ } +/* Generated */ else +/* Generated */ { +/* Generated */ prevPlusDM = prevPlusDM - (prevPlusDM/optInTimePeriod); +/* Generated */ } +/* Generated */ TRUE_RANGE(prevHigh,prevLow,prevClose,tempReal); +/* Generated */ prevTR = prevTR - (prevTR/optInTimePeriod) + tempReal; +/* Generated */ prevClose = inClose[today]; +/* Generated */ if( !TA_IS_ZERO(prevTR) ) +/* Generated */ outReal[outIdx++] = round_pos(100.0*(prevPlusDM/prevTR)); +/* Generated */ else +/* Generated */ outReal[outIdx++] = 0.0; +/* Generated */ } +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_PLUS_DM.c b/src/ta_func/ta_PLUS_DM.c new file mode 100644 index 000000000..139b02d14 --- /dev/null +++ b/src/ta_func/ta_PLUS_DM.c @@ -0,0 +1,580 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * MF Mario Fortier + * CF Christo Fogelberg + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 010802 MF Template creation. + * 052603 MF Adapt code to compile with .NET Managed C++ + * 122104 MF,CF Fix#1089506 for when optInTimePeriod is 1. + * + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::PlusDMLookback( int optInTimePeriod ) /* From 1 to 100000 */ +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int plusDMLookback( int optInTimePeriod ) /* From 1 to 100000 */ +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_PLUS_DM_Lookback( int optInTimePeriod ) /* From 1 to 100000 */ +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ /* min/max are checked for optInTimePeriod. */ +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 14; +/* Generated */ else if( ((int)optInTimePeriod < 1) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return -1; +/* Generated */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + if( optInTimePeriod > 1 ) + return optInTimePeriod + TA_GLOBALS_UNSTABLE_PERIOD(TA_FUNC_UNST_PLUS_DM,PlusDM) - 1; + else + return 1; +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_PLUS_DM - Plus Directional Movement + * + * Input = High, Low + * Output = double + * + * Optional Parameters + * ------------------- + * optInTimePeriod:(From 1 to 100000) + * Number of period + * + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::PlusDM( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inHigh, +/* Generated */ SubArray^ inLow, +/* Generated */ int optInTimePeriod, /* From 1 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::PlusDM( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ int optInTimePeriod, /* From 1 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode plusDM( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inHigh[], +/* Generated */ double inLow[], +/* Generated */ int optInTimePeriod, /* From 1 to 100000 */ +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_PLUS_DM( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inHigh[], +/* Generated */ const double inLow[], +/* Generated */ int optInTimePeriod, /* From 1 to 100000 */ +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + int today, lookbackTotal, outIdx; + double prevHigh, prevLow, tempReal; + double prevPlusDM; + double diffP, diffM; + int i; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ /* Verify required price component. */ +/* Generated */ if(!inHigh||!inLow) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ /* min/max are checked for optInTimePeriod. */ +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 14; +/* Generated */ else if( ((int)optInTimePeriod < 1) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Insert TA function code here. */ + + /* + * The DM1 (one period) is base on the largest part of + * today's range that is outside of yesterdays range. + * + * The following 7 cases explain how the +DM and -DM are + * calculated on one period: + * + * Case 1: Case 2: + * C| A| + * | | C| + * | +DM1 = (C-A) B| | +DM1 = 0 + * | -DM1 = 0 | -DM1 = (B-D) + * A| | D| + * | D| + * B| + * + * Case 3: Case 4: + * C| C| + * | A| | + * | +DM1 = (C-A) | | +DM1 = 0 + * | -DM1 = 0 B| | -DM1 = (B-D) + * A| | | + * | | D| + * B| | + * D| + * + * Case 5: Case 6: + * A| A| C| + * | C| +DM1 = 0 | | +DM1 = 0 + * | | -DM1 = 0 | | -DM1 = 0 + * | D| | | + * B| B| D| + * + * + * Case 7: + * + * C| + * A| | + * | | +DM=0 + * B| | -DM=0 + * D| + * + * In case 3 and 4, the rule is that the smallest delta between + * (C-A) and (B-D) determine which of +DM or -DM is zero. + * + * In case 7, (C-A) and (B-D) are equal, so both +DM and -DM are + * zero. + * + * The rules remain the same when A=B and C=D (when the highs + * equal the lows). + * + * When calculating the DM over a period > 1, the one-period DM + * for the desired period are initialy sum. In other word, + * for a +DM14, sum the +DM1 for the first 14 days (that's + * 13 values because there is no DM for the first day!) + * Subsequent DM are calculated using the Wilder's + * smoothing approach: + * + * Previous +DM14 + * Today's +DM14 = Previous +DM14 - -------------- + Today's +DM1 + * 14 + * + * Reference: + * New Concepts In Technical Trading Systems, J. Welles Wilder Jr + */ + + if( optInTimePeriod > 1 ) + lookbackTotal = optInTimePeriod + TA_GLOBALS_UNSTABLE_PERIOD(TA_FUNC_UNST_PLUS_DM,PlusDM) - 1; + else + lookbackTotal = 1; + + /* Adjust startIdx to account for the lookback period. */ + if( startIdx < lookbackTotal ) + startIdx = lookbackTotal; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + + /* Indicate where the next output should be put + * in the outReal. + */ + outIdx = 0; + + /* Trap the case where no smoothing is needed. */ + if( optInTimePeriod <= 1 ) + { + /* No smoothing needed. Just do a simple DM1 + * for each price bar. + */ + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + today = startIdx-1; + prevHigh = inHigh[today]; + prevLow = inLow[today]; + while( today < endIdx ) + { + today++; + tempReal = inHigh[today]; + diffP = tempReal-prevHigh; /* Plus Delta */ + prevHigh = tempReal; + tempReal = inLow[today]; + diffM = prevLow-tempReal; /* Minus Delta */ + prevLow = tempReal; + if( (diffP > 0) && (diffP > diffM) ) + { + /* Case 1 and 3: +DM=diffP,-DM=0 */ + outReal[outIdx++] = diffP; + } + else + outReal[outIdx++] = 0; + } + + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + + /* Process the initial DM */ + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + + prevPlusDM = 0.0; + today = startIdx - lookbackTotal; + prevHigh = inHigh[today]; + prevLow = inLow[today]; + i = optInTimePeriod-1; + while( i-- > 0 ) + { + today++; + tempReal = inHigh[today]; + diffP = tempReal-prevHigh; /* Plus Delta */ + prevHigh = tempReal; + tempReal = inLow[today]; + diffM = prevLow-tempReal; /* Minus Delta */ + prevLow = tempReal; + + if( (diffP > 0) && (diffP > diffM) ) + { + /* Case 1 and 3: +DM=diffP,-DM=0 */ + prevPlusDM += diffP; + } + } + + /* Process subsequent DM */ + + /* Skip the unstable period. */ + i = TA_GLOBALS_UNSTABLE_PERIOD(TA_FUNC_UNST_PLUS_DM,PlusDM); + while( i-- != 0 ) + { + today++; + tempReal = inHigh[today]; + diffP = tempReal-prevHigh; /* Plus Delta */ + prevHigh = tempReal; + tempReal = inLow[today]; + diffM = prevLow-tempReal; /* Minus Delta */ + prevLow = tempReal; + if( (diffP > 0) && (diffP > diffM) ) + { + /* Case 1 and 3: +DM=diffP,-DM=0 */ + prevPlusDM = prevPlusDM - (prevPlusDM/optInTimePeriod) + diffP; + } + else + { + /* Case 2,4,5 and 7 */ + prevPlusDM = prevPlusDM - (prevPlusDM/optInTimePeriod); + } + } + + /* Now start to write the output in + * the caller provided outReal. + */ + outReal[0] = prevPlusDM; + outIdx = 1; + + while( today < endIdx ) + { + today++; + tempReal = inHigh[today]; + diffP = tempReal-prevHigh; /* Plus Delta */ + prevHigh = tempReal; + tempReal = inLow[today]; + diffM = prevLow-tempReal; /* Minus Delta */ + prevLow = tempReal; + + if( (diffP > 0) && (diffP > diffM) ) + { + /* Case 1 and 3: +DM=diffP,-DM=0 */ + prevPlusDM = prevPlusDM - (prevPlusDM/optInTimePeriod) + diffP; + } + else + { + /* Case 2,4,5 and 7 */ + prevPlusDM = prevPlusDM - (prevPlusDM/optInTimePeriod); + } + + outReal[outIdx++] = prevPlusDM; + } + + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::PlusDM( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ int optInTimePeriod, /* From 1 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode plusDM( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inHigh[], +/* Generated */ float inLow[], +/* Generated */ int optInTimePeriod, /* From 1 to 100000 */ +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_PLUS_DM( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inHigh[], +/* Generated */ const float inLow[], +/* Generated */ int optInTimePeriod, /* From 1 to 100000 */ +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ int today, lookbackTotal, outIdx; +/* Generated */ double prevHigh, prevLow, tempReal; +/* Generated */ double prevPlusDM; +/* Generated */ double diffP, diffM; +/* Generated */ int i; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if(!inHigh||!inLow) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 14; +/* Generated */ else if( ((int)optInTimePeriod < 1) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ if( optInTimePeriod > 1 ) +/* Generated */ lookbackTotal = optInTimePeriod + TA_GLOBALS_UNSTABLE_PERIOD(TA_FUNC_UNST_PLUS_DM,PlusDM) - 1; +/* Generated */ else +/* Generated */ lookbackTotal = 1; +/* Generated */ if( startIdx < lookbackTotal ) +/* Generated */ startIdx = lookbackTotal; +/* Generated */ if( startIdx > endIdx ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ outIdx = 0; +/* Generated */ if( optInTimePeriod <= 1 ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ today = startIdx-1; +/* Generated */ prevHigh = inHigh[today]; +/* Generated */ prevLow = inLow[today]; +/* Generated */ while( today < endIdx ) +/* Generated */ { +/* Generated */ today++; +/* Generated */ tempReal = inHigh[today]; +/* Generated */ diffP = tempReal-prevHigh; +/* Generated */ prevHigh = tempReal; +/* Generated */ tempReal = inLow[today]; +/* Generated */ diffM = prevLow-tempReal; +/* Generated */ prevLow = tempReal; +/* Generated */ if( (diffP > 0) && (diffP > diffM) ) +/* Generated */ { +/* Generated */ outReal[outIdx++] = diffP; +/* Generated */ } +/* Generated */ else +/* Generated */ outReal[outIdx++] = 0; +/* Generated */ } +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ prevPlusDM = 0.0; +/* Generated */ today = startIdx - lookbackTotal; +/* Generated */ prevHigh = inHigh[today]; +/* Generated */ prevLow = inLow[today]; +/* Generated */ i = optInTimePeriod-1; +/* Generated */ while( i-- > 0 ) +/* Generated */ { +/* Generated */ today++; +/* Generated */ tempReal = inHigh[today]; +/* Generated */ diffP = tempReal-prevHigh; +/* Generated */ prevHigh = tempReal; +/* Generated */ tempReal = inLow[today]; +/* Generated */ diffM = prevLow-tempReal; +/* Generated */ prevLow = tempReal; +/* Generated */ if( (diffP > 0) && (diffP > diffM) ) +/* Generated */ { +/* Generated */ prevPlusDM += diffP; +/* Generated */ } +/* Generated */ } +/* Generated */ i = TA_GLOBALS_UNSTABLE_PERIOD(TA_FUNC_UNST_PLUS_DM,PlusDM); +/* Generated */ while( i-- != 0 ) +/* Generated */ { +/* Generated */ today++; +/* Generated */ tempReal = inHigh[today]; +/* Generated */ diffP = tempReal-prevHigh; +/* Generated */ prevHigh = tempReal; +/* Generated */ tempReal = inLow[today]; +/* Generated */ diffM = prevLow-tempReal; +/* Generated */ prevLow = tempReal; +/* Generated */ if( (diffP > 0) && (diffP > diffM) ) +/* Generated */ { +/* Generated */ prevPlusDM = prevPlusDM - (prevPlusDM/optInTimePeriod) + diffP; +/* Generated */ } +/* Generated */ else +/* Generated */ { +/* Generated */ prevPlusDM = prevPlusDM - (prevPlusDM/optInTimePeriod); +/* Generated */ } +/* Generated */ } +/* Generated */ outReal[0] = prevPlusDM; +/* Generated */ outIdx = 1; +/* Generated */ while( today < endIdx ) +/* Generated */ { +/* Generated */ today++; +/* Generated */ tempReal = inHigh[today]; +/* Generated */ diffP = tempReal-prevHigh; +/* Generated */ prevHigh = tempReal; +/* Generated */ tempReal = inLow[today]; +/* Generated */ diffM = prevLow-tempReal; +/* Generated */ prevLow = tempReal; +/* Generated */ if( (diffP > 0) && (diffP > diffM) ) +/* Generated */ { +/* Generated */ prevPlusDM = prevPlusDM - (prevPlusDM/optInTimePeriod) + diffP; +/* Generated */ } +/* Generated */ else +/* Generated */ { +/* Generated */ prevPlusDM = prevPlusDM - (prevPlusDM/optInTimePeriod); +/* Generated */ } +/* Generated */ outReal[outIdx++] = prevPlusDM; +/* Generated */ } +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_PPO.c b/src/ta_func/ta_PPO.c new file mode 100644 index 000000000..419f8d737 --- /dev/null +++ b/src/ta_func/ta_PPO.c @@ -0,0 +1,354 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * MF Mario Fortier + * AA Andrew Atkinson + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 112400 MF Template creation. + * 052603 MF Adapt code to compile with .NET Managed C++ + * 020605 AA Fix #1117666 Lookback bug. + * + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::PpoLookback( int optInFastPeriod, /* From 2 to 100000 */ +/* Generated */ int optInSlowPeriod, /* From 2 to 100000 */ +/* Generated */ MAType optInMAType ) /* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int ppoLookback( int optInFastPeriod, /* From 2 to 100000 */ +/* Generated */ int optInSlowPeriod, /* From 2 to 100000 */ +/* Generated */ MAType optInMAType ) /* Generated */ +/* Generated */ #else +/* Generated */ int TA_PPO_Lookback( int optInFastPeriod, /* From 2 to 100000 */ +/* Generated */ int optInSlowPeriod, /* From 2 to 100000 */ +/* Generated */ TA_MAType optInMAType ) /* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ /* min/max are checked for optInFastPeriod. */ +/* Generated */ if( (int)optInFastPeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInFastPeriod = 12; +/* Generated */ else if( ((int)optInFastPeriod < 2) || ((int)optInFastPeriod > 100000) ) +/* Generated */ return -1; +/* Generated */ +/* Generated */ /* min/max are checked for optInSlowPeriod. */ +/* Generated */ if( (int)optInSlowPeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInSlowPeriod = 26; +/* Generated */ else if( ((int)optInSlowPeriod < 2) || ((int)optInSlowPeriod > 100000) ) +/* Generated */ return -1; +/* Generated */ +/* Generated */ #if !defined(_MANAGED) && !defined(_JAVA) +/* Generated */ if( (int)optInMAType == TA_INTEGER_DEFAULT ) +/* Generated */ optInMAType = (TA_MAType)0; +/* Generated */ else if( ((int)optInMAType < 0) || ((int)optInMAType > 8) ) +/* Generated */ return -1; +/* Generated */ +/* Generated */ #endif /* !defined(_MANAGED) && !defined(_JAVA)*/ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + + /* Lookback is driven by the slowest MA. */ + return LOOKBACK_CALL(MA)( max(optInSlowPeriod,optInFastPeriod), optInMAType ); +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_PPO - Percentage Price Oscillator + * + * Input = double + * Output = double + * + * Optional Parameters + * ------------------- + * optInFastPeriod:(From 2 to 100000) + * Number of period for the fast MA + * + * optInSlowPeriod:(From 2 to 100000) + * Number of period for the slow MA + * + * optInMAType: + * Type of Moving Average + * + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::Ppo( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inReal, +/* Generated */ int optInFastPeriod, /* From 2 to 100000 */ +/* Generated */ int optInSlowPeriod, /* From 2 to 100000 */ +/* Generated */ MAType optInMAType, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::Ppo( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ int optInFastPeriod, /* From 2 to 100000 */ +/* Generated */ int optInSlowPeriod, /* From 2 to 100000 */ +/* Generated */ MAType optInMAType, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode ppo( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inReal[], +/* Generated */ int optInFastPeriod, /* From 2 to 100000 */ +/* Generated */ int optInSlowPeriod, /* From 2 to 100000 */ +/* Generated */ MAType optInMAType, +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_PPO( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inReal[], +/* Generated */ int optInFastPeriod, /* From 2 to 100000 */ +/* Generated */ int optInSlowPeriod, /* From 2 to 100000 */ +/* Generated */ TA_MAType optInMAType, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* Insert local variables here. */ + ARRAY_REF(tempBuffer); + ENUM_DECLARATION(RetCode) retCode; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ /* min/max are checked for optInFastPeriod. */ +/* Generated */ if( (int)optInFastPeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInFastPeriod = 12; +/* Generated */ else if( ((int)optInFastPeriod < 2) || ((int)optInFastPeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ /* min/max are checked for optInSlowPeriod. */ +/* Generated */ if( (int)optInSlowPeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInSlowPeriod = 26; +/* Generated */ else if( ((int)optInSlowPeriod < 2) || ((int)optInSlowPeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #if !defined(_MANAGED) && !defined(_JAVA) +/* Generated */ if( (int)optInMAType == TA_INTEGER_DEFAULT ) +/* Generated */ optInMAType = (TA_MAType)0; +/* Generated */ else if( ((int)optInMAType < 0) || ((int)optInMAType > 8) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_MANAGED) && !defined(_JAVA)*/ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Insert TA function code here. */ + + /* Allocate an intermediate buffer. */ + ARRAY_ALLOC( tempBuffer, endIdx-startIdx+1 ); + #if !defined( _JAVA ) + if( !tempBuffer ) + return ENUM_VALUE(RetCode,TA_ALLOC_ERR,AllocErr); + #endif + + retCode = FUNCTION_CALL(INT_PO)( startIdx, endIdx, inReal, + optInFastPeriod, + optInSlowPeriod, + optInMAType, + outBegIdx, + outNBElement, + outReal, + tempBuffer, + 1 /* Do percentage processing. */ ); + + ARRAY_FREE( tempBuffer ); + + return retCode; +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::Ppo( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ int optInFastPeriod, /* From 2 to 100000 */ +/* Generated */ int optInSlowPeriod, /* From 2 to 100000 */ +/* Generated */ MAType optInMAType, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode ppo( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inReal[], +/* Generated */ int optInFastPeriod, /* From 2 to 100000 */ +/* Generated */ int optInSlowPeriod, /* From 2 to 100000 */ +/* Generated */ MAType optInMAType, +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_PPO( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inReal[], +/* Generated */ int optInFastPeriod, /* From 2 to 100000 */ +/* Generated */ int optInSlowPeriod, /* From 2 to 100000 */ +/* Generated */ TA_MAType optInMAType, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ ARRAY_REF(tempBuffer); +/* Generated */ ENUM_DECLARATION(RetCode) retCode; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ if( (int)optInFastPeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInFastPeriod = 12; +/* Generated */ else if( ((int)optInFastPeriod < 2) || ((int)optInFastPeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ if( (int)optInSlowPeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInSlowPeriod = 26; +/* Generated */ else if( ((int)optInSlowPeriod < 2) || ((int)optInSlowPeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #if !defined(_MANAGED) && !defined(_JAVA) +/* Generated */ if( (int)optInMAType == TA_INTEGER_DEFAULT ) +/* Generated */ optInMAType = (TA_MAType)0; +/* Generated */ else if( ((int)optInMAType < 0) || ((int)optInMAType > 8) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ ARRAY_ALLOC( tempBuffer, endIdx-startIdx+1 ); +/* Generated */ #if !defined( _JAVA ) +/* Generated */ if( !tempBuffer ) +/* Generated */ return ENUM_VALUE(RetCode,TA_ALLOC_ERR,AllocErr); +/* Generated */ #endif +/* Generated */ retCode = FUNCTION_CALL(INT_PO)( startIdx, endIdx, inReal, +/* Generated */ optInFastPeriod, +/* Generated */ optInSlowPeriod, +/* Generated */ optInMAType, +/* Generated */ outBegIdx, +/* Generated */ outNBElement, +/* Generated */ outReal, +/* Generated */ tempBuffer, +/* Generated */ 1 ); +/* Generated */ ARRAY_FREE( tempBuffer ); +/* Generated */ return retCode; +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_PVI.c b/src/ta_func/ta_PVI.c new file mode 100644 index 000000000..6bd5474e5 --- /dev/null +++ b/src/ta_func/ta_PVI.c @@ -0,0 +1,197 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * MF Mario Fortier + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 120802 MF Template creation. + * + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #using +/* Generated */ #include "Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (TA_INTERNAL_ERROR) +/* Generated */ namespace TA { namespace Library { +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::PVI_Lookback( /* Generated */ void ) +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_PVI_Lookback( /* Generated */ void ) +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert lookback code here. */ + return 0; +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_PVI - Positive Volume Index + * + * Input = Close, Volume + * Output = double + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum Core::TA_RetCode Core::PVI( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inClose __gc [], +/* Generated */ int inVolume __gc [], +/* Generated */ [OutAttribute]Int32 REF(outBegIdx), +/* Generated */ [OutAttribute]Int32 REF(outNBElement), +/* Generated */ double outReal __gc [] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_PVI( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inClose[], +/* Generated */ const int inVolume[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return TA_OUT_OF_RANGE_START_INDEX; +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return TA_OUT_OF_RANGE_END_INDEX; +/* Generated */ +/* Generated */ /* Validate the parameters. */ +/* Generated */ /* Verify required price component. */ +/* Generated */ if(!inClose||!inVolume) +/* Generated */ return TA_BAD_PARAM; +/* Generated */ +/* Generated */ if( outReal == NULL ) +/* Generated */ return TA_BAD_PARAM; +/* Generated */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Insert TA function code here. */ + + /* Default return values */ + *outBegIdx = 0; + *outNBElement = 0; + + return TA_SUCCESS; +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum Core::TA_RetCode Core::PVI( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inClose __gc [], +/* Generated */ int inVolume __gc [], +/* Generated */ [OutAttribute]Int32 REF(outBegIdx), +/* Generated */ [OutAttribute]Int32 REF(outNBElement), +/* Generated */ double outReal __gc [] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_PVI( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inClose[], +/* Generated */ const int inVolume[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return TA_OUT_OF_RANGE_START_INDEX; +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return TA_OUT_OF_RANGE_END_INDEX; +/* Generated */ if(!inClose||!inVolume) +/* Generated */ return TA_BAD_PARAM; +/* Generated */ if( outReal == NULL ) +/* Generated */ return TA_BAD_PARAM; +/* Generated */ #endif +/* Generated */ *outBegIdx = 0; +/* Generated */ *outNBElement = 0; +/* Generated */ return TA_SUCCESS; +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }} // Close namespace TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_ROC.c b/src/ta_func/ta_ROC.c new file mode 100644 index 000000000..a245a1a7b --- /dev/null +++ b/src/ta_func/ta_ROC.c @@ -0,0 +1,346 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * MF Mario Fortier + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 112400 MF Template creation. + * 052603 MF Adapt code to compile with .NET Managed C++ + * + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::RocLookback( int optInTimePeriod ) /* From 1 to 100000 */ +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int rocLookback( int optInTimePeriod ) /* From 1 to 100000 */ +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_ROC_Lookback( int optInTimePeriod ) /* From 1 to 100000 */ +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ /* min/max are checked for optInTimePeriod. */ +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 10; +/* Generated */ else if( ((int)optInTimePeriod < 1) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return -1; +/* Generated */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + + return optInTimePeriod; +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_ROC - Rate of change : ((price/prevPrice)-1)*100 + * + * Input = double + * Output = double + * + * Optional Parameters + * ------------------- + * optInTimePeriod:(From 1 to 100000) + * Number of period + * + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::Roc( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inReal, +/* Generated */ int optInTimePeriod, /* From 1 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::Roc( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ int optInTimePeriod, /* From 1 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode roc( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inReal[], +/* Generated */ int optInTimePeriod, /* From 1 to 100000 */ +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_ROC( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inReal[], +/* Generated */ int optInTimePeriod, /* From 1 to 100000 */ +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* Insert local variables here. */ + int inIdx, outIdx, trailingIdx; + double tempReal; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ /* min/max are checked for optInTimePeriod. */ +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 10; +/* Generated */ else if( ((int)optInTimePeriod < 1) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Insert TA function code here. */ + + /* The interpretation of the rate of change varies widely depending + * which software and/or books you are refering to. + * + * The following is the table of Rate-Of-Change implemented in TA-LIB: + * MOM = (price - prevPrice) [Momentum] + * ROC = ((price/prevPrice)-1)*100 [Rate of change] + * ROCP = (price-prevPrice)/prevPrice [Rate of change Percentage] + * ROCR = (price/prevPrice) [Rate of change ratio] + * ROCR100 = (price/prevPrice)*100 [Rate of change ratio 100 Scale] + * + * Here are the equivalent function in other software: + * TA-Lib | Tradestation | Metastock + * ================================================= + * MOM | Momentum | ROC (Point) + * ROC | ROC | ROC (Percent) + * ROCP | PercentChange | - + * ROCR | - | - + * ROCR100 | - | MO + * + * The MOM function is the only one who is not normalized, and thus + * should be avoided for comparing different time serie of prices. + * + * ROC and ROCP are centered at zero and can have positive and negative + * value. Here are some equivalence: + * ROC = ROCP/100 + * = ((price-prevPrice)/prevPrice)/100 + * = ((price/prevPrice)-1)*100 + * + * ROCR and ROCR100 are ratio respectively centered at 1 and 100 and are + * always positive values. + */ + + /* Move up the start index if there is not + * enough initial data. + */ + if( startIdx < optInTimePeriod ) + startIdx = optInTimePeriod; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + + /* Calculate Rate of change: ((price / prevPrice)-1)*100 */ + outIdx = 0; + inIdx = startIdx; + trailingIdx = startIdx - optInTimePeriod; + + while( inIdx <= endIdx ) + { + tempReal = inReal[trailingIdx++]; + if( tempReal != 0.0 ) + outReal[outIdx++] = ((inReal[inIdx] / tempReal)-1.0)*100.0; + else + outReal[outIdx++] = 0.0; + inIdx++; + } + + /* Set output limits. */ + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::Roc( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ int optInTimePeriod, /* From 1 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode roc( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inReal[], +/* Generated */ int optInTimePeriod, /* From 1 to 100000 */ +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_ROC( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inReal[], +/* Generated */ int optInTimePeriod, /* From 1 to 100000 */ +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ int inIdx, outIdx, trailingIdx; +/* Generated */ double tempReal; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 10; +/* Generated */ else if( ((int)optInTimePeriod < 1) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ if( startIdx < optInTimePeriod ) +/* Generated */ startIdx = optInTimePeriod; +/* Generated */ if( startIdx > endIdx ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ outIdx = 0; +/* Generated */ inIdx = startIdx; +/* Generated */ trailingIdx = startIdx - optInTimePeriod; +/* Generated */ while( inIdx <= endIdx ) +/* Generated */ { +/* Generated */ tempReal = inReal[trailingIdx++]; +/* Generated */ if( tempReal != 0.0 ) +/* Generated */ outReal[outIdx++] = ((inReal[inIdx] / tempReal)-1.0)*100.0; +/* Generated */ else +/* Generated */ outReal[outIdx++] = 0.0; +/* Generated */ inIdx++; +/* Generated */ } +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_ROCP.c b/src/ta_func/ta_ROCP.c new file mode 100644 index 000000000..eb0b95375 --- /dev/null +++ b/src/ta_func/ta_ROCP.c @@ -0,0 +1,347 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * MF Mario Fortier + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 010802 MF Template creation. + * 052603 MF Adapt code to compile with .NET Managed C++ + * + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::RocPLookback( int optInTimePeriod ) /* From 1 to 100000 */ +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int rocPLookback( int optInTimePeriod ) /* From 1 to 100000 */ +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_ROCP_Lookback( int optInTimePeriod ) /* From 1 to 100000 */ +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ /* min/max are checked for optInTimePeriod. */ +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 10; +/* Generated */ else if( ((int)optInTimePeriod < 1) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return -1; +/* Generated */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + return optInTimePeriod; +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_ROCP - Rate of change Percentage: (price-prevPrice)/prevPrice + * + * Input = double + * Output = double + * + * Optional Parameters + * ------------------- + * optInTimePeriod:(From 1 to 100000) + * Number of period + * + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::RocP( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inReal, +/* Generated */ int optInTimePeriod, /* From 1 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::RocP( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ int optInTimePeriod, /* From 1 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode rocP( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inReal[], +/* Generated */ int optInTimePeriod, /* From 1 to 100000 */ +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_ROCP( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inReal[], +/* Generated */ int optInTimePeriod, /* From 1 to 100000 */ +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + + int inIdx, outIdx, trailingIdx; + double tempReal; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ /* min/max are checked for optInTimePeriod. */ +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 10; +/* Generated */ else if( ((int)optInTimePeriod < 1) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Insert TA function code here. */ + + /* The interpretation of the rate of change varies widely depending + * which software and/or books you are refering to. + * + * The following is the table of Rate-Of-Change implemented in TA-LIB: + * MOM = (price - prevPrice) [Momentum] + * ROC = ((price/prevPrice)-1)*100 [Rate of change] + * ROCP = (price-prevPrice)/prevPrice [Rate of change Percentage] + * ROCR = (price/prevPrice) [Rate of change ratio] + * ROCR100 = (price/prevPrice)*100 [Rate of change ratio 100 Scale] + * + * Here are the equivalent function in other software: + * TA-Lib | Tradestation | Metastock + * ================================================= + * MOM | Momentum | ROC (Point) + * ROC | ROC | ROC (Percent) + * ROCP | PercentChange | - + * ROCR | - | - + * ROCR100 | - | MO + * + * The MOM function is the only one who is not normalized, and thus + * should be avoided for comparing different time serie of prices. + * + * ROC and ROCP are centered at zero and can have positive and negative + * value. Here are some equivalence: + * ROC = ROCP/100 + * = ((price-prevPrice)/prevPrice)/100 + * = ((price/prevPrice)-1)*100 + * + * ROCR and ROCR100 are ratio respectively centered at 1 and 100 and are + * always positive values. + */ + + /* Move up the start index if there is not + * enough initial data. + */ + if( startIdx < optInTimePeriod ) + startIdx = optInTimePeriod; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + + /* Calculate Rate of change Ratio: (price / prevPrice) */ + outIdx = 0; + inIdx = startIdx; + trailingIdx = startIdx - optInTimePeriod; + + while( inIdx <= endIdx ) + { + tempReal = inReal[trailingIdx++]; + if( tempReal != 0.0 ) + outReal[outIdx++] = (inReal[inIdx]-tempReal)/tempReal; + else + outReal[outIdx++] = 0.0; + + inIdx++; + } + + /* Set output limits. */ + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::RocP( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ int optInTimePeriod, /* From 1 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode rocP( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inReal[], +/* Generated */ int optInTimePeriod, /* From 1 to 100000 */ +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_ROCP( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inReal[], +/* Generated */ int optInTimePeriod, /* From 1 to 100000 */ +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ int inIdx, outIdx, trailingIdx; +/* Generated */ double tempReal; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 10; +/* Generated */ else if( ((int)optInTimePeriod < 1) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ if( startIdx < optInTimePeriod ) +/* Generated */ startIdx = optInTimePeriod; +/* Generated */ if( startIdx > endIdx ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ outIdx = 0; +/* Generated */ inIdx = startIdx; +/* Generated */ trailingIdx = startIdx - optInTimePeriod; +/* Generated */ while( inIdx <= endIdx ) +/* Generated */ { +/* Generated */ tempReal = inReal[trailingIdx++]; +/* Generated */ if( tempReal != 0.0 ) +/* Generated */ outReal[outIdx++] = (inReal[inIdx]-tempReal)/tempReal; +/* Generated */ else +/* Generated */ outReal[outIdx++] = 0.0; +/* Generated */ inIdx++; +/* Generated */ } +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_ROCR.c b/src/ta_func/ta_ROCR.c new file mode 100644 index 000000000..4314a4693 --- /dev/null +++ b/src/ta_func/ta_ROCR.c @@ -0,0 +1,348 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * MF Mario Fortier + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 112400 MF Template creation. + * 052603 MF Adapt code to compile with .NET Managed C++ + * + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::RocRLookback( int optInTimePeriod ) /* From 1 to 100000 */ +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int rocRLookback( int optInTimePeriod ) /* From 1 to 100000 */ +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_ROCR_Lookback( int optInTimePeriod ) /* From 1 to 100000 */ +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ /* min/max are checked for optInTimePeriod. */ +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 10; +/* Generated */ else if( ((int)optInTimePeriod < 1) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return -1; +/* Generated */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + + return optInTimePeriod; +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_ROCR - Rate of change ratio: (price/prevPrice) + * + * Input = double + * Output = double + * + * Optional Parameters + * ------------------- + * optInTimePeriod:(From 1 to 100000) + * Number of period + * + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::RocR( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inReal, +/* Generated */ int optInTimePeriod, /* From 1 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::RocR( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ int optInTimePeriod, /* From 1 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode rocR( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inReal[], +/* Generated */ int optInTimePeriod, /* From 1 to 100000 */ +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_ROCR( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inReal[], +/* Generated */ int optInTimePeriod, /* From 1 to 100000 */ +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* Insert local variables here. */ + + int inIdx, outIdx, trailingIdx; + double tempReal; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ /* min/max are checked for optInTimePeriod. */ +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 10; +/* Generated */ else if( ((int)optInTimePeriod < 1) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Insert TA function code here. */ + + /* The interpretation of the rate of change varies widely depending + * which software and/or books you are refering to. + * + * The following is the table of Rate-Of-Change implemented in TA-LIB: + * MOM = (price - prevPrice) [Momentum] + * ROC = ((price/prevPrice)-1)*100 [Rate of change] + * ROCP = (price-prevPrice)/prevPrice [Rate of change Percentage] + * ROCR = (price/prevPrice) [Rate of change ratio] + * ROCR100 = (price/prevPrice)*100 [Rate of change ratio 100 Scale] + * + * Here are the equivalent function in other software: + * TA-Lib | Tradestation | Metastock + * ================================================= + * MOM | Momentum | ROC (Point) + * ROC | ROC | ROC (Percent) + * ROCP | PercentChange | - + * ROCR | - | - + * ROCR100 | - | MO + * + * The MOM function is the only one who is not normalized, and thus + * should be avoided for comparing different time serie of prices. + * + * ROC and ROCP are centered at zero and can have positive and negative + * value. Here are some equivalence: + * ROC = ROCP/100 + * = ((price-prevPrice)/prevPrice)/100 + * = ((price/prevPrice)-1)*100 + * + * ROCR and ROCR100 are ratio respectively centered at 1 and 100 and are + * always positive values. + */ + + /* Move up the start index if there is not + * enough initial data. + */ + if( startIdx < optInTimePeriod ) + startIdx = optInTimePeriod; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + + /* Calculate Rate of change Ratio: (price / prevPrice) */ + outIdx = 0; + inIdx = startIdx; + trailingIdx = startIdx - optInTimePeriod; + + while( inIdx <= endIdx ) + { + tempReal = inReal[trailingIdx++]; + if( tempReal != 0.0 ) + outReal[outIdx++] = (inReal[inIdx] / tempReal); + else + outReal[outIdx++] = 0.0; + + inIdx++; + } + + /* Set output limits. */ + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::RocR( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ int optInTimePeriod, /* From 1 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode rocR( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inReal[], +/* Generated */ int optInTimePeriod, /* From 1 to 100000 */ +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_ROCR( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inReal[], +/* Generated */ int optInTimePeriod, /* From 1 to 100000 */ +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ int inIdx, outIdx, trailingIdx; +/* Generated */ double tempReal; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 10; +/* Generated */ else if( ((int)optInTimePeriod < 1) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ if( startIdx < optInTimePeriod ) +/* Generated */ startIdx = optInTimePeriod; +/* Generated */ if( startIdx > endIdx ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ outIdx = 0; +/* Generated */ inIdx = startIdx; +/* Generated */ trailingIdx = startIdx - optInTimePeriod; +/* Generated */ while( inIdx <= endIdx ) +/* Generated */ { +/* Generated */ tempReal = inReal[trailingIdx++]; +/* Generated */ if( tempReal != 0.0 ) +/* Generated */ outReal[outIdx++] = (inReal[inIdx] / tempReal); +/* Generated */ else +/* Generated */ outReal[outIdx++] = 0.0; +/* Generated */ inIdx++; +/* Generated */ } +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_ROCR100.c b/src/ta_func/ta_ROCR100.c new file mode 100644 index 000000000..3db02bd31 --- /dev/null +++ b/src/ta_func/ta_ROCR100.c @@ -0,0 +1,347 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * MF Mario Fortier + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 010802 MF Template creation. + * 052603 MF Adapt code to compile with .NET Managed C++ + * + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::RocR100Lookback( int optInTimePeriod ) /* From 1 to 100000 */ +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int rocR100Lookback( int optInTimePeriod ) /* From 1 to 100000 */ +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_ROCR100_Lookback( int optInTimePeriod ) /* From 1 to 100000 */ +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ /* min/max are checked for optInTimePeriod. */ +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 10; +/* Generated */ else if( ((int)optInTimePeriod < 1) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return -1; +/* Generated */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + return optInTimePeriod; +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_ROCR100 - Rate of change ratio 100 scale: (price/prevPrice)*100 + * + * Input = double + * Output = double + * + * Optional Parameters + * ------------------- + * optInTimePeriod:(From 1 to 100000) + * Number of period + * + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::RocR100( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inReal, +/* Generated */ int optInTimePeriod, /* From 1 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::RocR100( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ int optInTimePeriod, /* From 1 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode rocR100( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inReal[], +/* Generated */ int optInTimePeriod, /* From 1 to 100000 */ +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_ROCR100( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inReal[], +/* Generated */ int optInTimePeriod, /* From 1 to 100000 */ +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + + int inIdx, outIdx, trailingIdx; + double tempReal; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ /* min/max are checked for optInTimePeriod. */ +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 10; +/* Generated */ else if( ((int)optInTimePeriod < 1) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Insert TA function code here. */ + + /* The interpretation of the rate of change varies widely depending + * which software and/or books you are refering to. + * + * The following is the table of Rate-Of-Change implemented in TA-LIB: + * MOM = (price - prevPrice) [Momentum] + * ROC = ((price/prevPrice)-1)*100 [Rate of change] + * ROCP = (price-prevPrice)/prevPrice [Rate of change Percentage] + * ROCR = (price/prevPrice) [Rate of change ratio] + * ROCR100 = (price/prevPrice)*100 [Rate of change ratio 100 Scale] + * + * Here are the equivalent function in other software: + * TA-Lib | Tradestation | Metastock + * ================================================= + * MOM | Momentum | ROC (Point) + * ROC | ROC | ROC (Percent) + * ROCP | PercentChange | - + * ROCR | - | - + * ROCR100 | - | MO + * + * The MOM function is the only one who is not normalized, and thus + * should be avoided for comparing different time serie of prices. + * + * ROC and ROCP are centered at zero and can have positive and negative + * value. Here are some equivalence: + * ROC = ROCP/100 + * = ((price-prevPrice)/prevPrice)/100 + * = ((price/prevPrice)-1)*100 + * + * ROCR and ROCR100 are ratio respectively centered at 1 and 100 and are + * always positive values. + */ + + /* Move up the start index if there is not + * enough initial data. + */ + if( startIdx < optInTimePeriod ) + startIdx = optInTimePeriod; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + + /* Calculate Rate of change Ratio: (price / prevPrice) */ + outIdx = 0; + inIdx = startIdx; + trailingIdx = startIdx - optInTimePeriod; + + while( inIdx <= endIdx ) + { + tempReal = inReal[trailingIdx++]; + if( tempReal != 0.0 ) + outReal[outIdx++] = (inReal[inIdx] / tempReal)*100.0; + else + outReal[outIdx++] = 0.0; + + inIdx++; + } + + /* Set output limits. */ + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::RocR100( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ int optInTimePeriod, /* From 1 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode rocR100( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inReal[], +/* Generated */ int optInTimePeriod, /* From 1 to 100000 */ +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_ROCR100( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inReal[], +/* Generated */ int optInTimePeriod, /* From 1 to 100000 */ +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ int inIdx, outIdx, trailingIdx; +/* Generated */ double tempReal; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 10; +/* Generated */ else if( ((int)optInTimePeriod < 1) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ if( startIdx < optInTimePeriod ) +/* Generated */ startIdx = optInTimePeriod; +/* Generated */ if( startIdx > endIdx ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ outIdx = 0; +/* Generated */ inIdx = startIdx; +/* Generated */ trailingIdx = startIdx - optInTimePeriod; +/* Generated */ while( inIdx <= endIdx ) +/* Generated */ { +/* Generated */ tempReal = inReal[trailingIdx++]; +/* Generated */ if( tempReal != 0.0 ) +/* Generated */ outReal[outIdx++] = (inReal[inIdx] / tempReal)*100.0; +/* Generated */ else +/* Generated */ outReal[outIdx++] = 0.0; +/* Generated */ inIdx++; +/* Generated */ } +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_RSI.c b/src/ta_func/ta_RSI.c new file mode 100644 index 000000000..d8cc104cc --- /dev/null +++ b/src/ta_func/ta_RSI.c @@ -0,0 +1,599 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * MF Mario Fortier + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 112400 MF Template creation. + * 052603 MF Adapt code to compile with .NET Managed C++ + * 062804 MF Resolve div by zero bug on limit case. + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::RsiLookback( int optInTimePeriod ) /* From 2 to 100000 */ +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int rsiLookback( int optInTimePeriod ) /* From 2 to 100000 */ +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_RSI_Lookback( int optInTimePeriod ) /* From 2 to 100000 */ +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + int retValue; + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ /* min/max are checked for optInTimePeriod. */ +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 14; +/* Generated */ else if( ((int)optInTimePeriod < 2) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return -1; +/* Generated */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + + retValue = optInTimePeriod + TA_GLOBALS_UNSTABLE_PERIOD(TA_FUNC_UNST_RSI,Rsi); + if( TA_GLOBALS_COMPATIBILITY == ENUM_VALUE(Compatibility,TA_COMPATIBILITY_METASTOCK,Metastock) ) + retValue--; + + return retValue; +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_RSI - Relative Strength Index + * + * Input = double + * Output = double + * + * Optional Parameters + * ------------------- + * optInTimePeriod:(From 2 to 100000) + * Number of period + * + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::Rsi( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inReal, +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::Rsi( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode rsi( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inReal[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_RSI( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inReal[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* Insert local variables here. */ + int outIdx; + + int today, lookbackTotal, unstablePeriod, i; + double prevGain, prevLoss, prevValue, savePrevValue; + double tempValue1, tempValue2; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ /* min/max are checked for optInTimePeriod. */ +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 14; +/* Generated */ else if( ((int)optInTimePeriod < 2) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Insert TA function code here. */ + + /* The following algorithm is base on the original + * work from Wilder's and shall represent the + * original idea behind the classic RSI. + * + * Metastock is starting the calculation one price + * bar earlier. To make this possible, they assume + * that the very first bar will be identical to the + * previous one (no gain or loss). + */ + + /* If changing this function, please check also CMO + * which is mostly identical (just different in one step + * of calculation). + */ + + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + + /* Adjust startIdx to account for the lookback period. */ + lookbackTotal = LOOKBACK_CALL(RSI)( optInTimePeriod ); + + if( startIdx < lookbackTotal ) + startIdx = lookbackTotal; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + + outIdx = 0; /* Index into the output. */ + + /* Trap special case where the period is '1'. + * In that case, just copy the input into the + * output for the requested range (as-is !) + */ + if( optInTimePeriod == 1 ) + { + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + i = (endIdx-startIdx)+1; + VALUE_HANDLE_DEREF(outNBElement) = i; + #if defined( USE_SUBARRAY ) && !defined( USE_SINGLE_PRECISION_INPUT ) + ARRAY_MEMMOVE( outReal, 0, (inReal->mDataArray), (inReal->mOffset)+startIdx, i ); + #else + ARRAY_MEMMOVE( outReal, 0, inReal, startIdx, i ); + #endif + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + + /* Accumulate Wilder's "Average Gain" and "Average Loss" + * among the initial period. + */ + today = startIdx-lookbackTotal; + prevValue = inReal[today]; + + unstablePeriod = TA_GLOBALS_UNSTABLE_PERIOD(TA_FUNC_UNST_RSI,Rsi); + + /* If there is no unstable period, + * calculate the 'additional' initial + * price bar who is particuliar to + * metastock. + * If there is an unstable period, + * no need to calculate since this + * first value will be surely skip. + */ + if( (unstablePeriod == 0) && + (TA_GLOBALS_COMPATIBILITY == ENUM_VALUE(Compatibility,TA_COMPATIBILITY_METASTOCK,Metastock))) + { + /* Preserve prevValue because it may get + * overwritten by the output. + *(because output ptr could be the same as input ptr). + */ + savePrevValue = prevValue; + + /* No unstable period, so must calculate first output + * particular to Metastock. + * (Metastock re-use the first price bar, so there + * is no loss/gain at first. Beats me why they + * are doing all this). + */ + prevGain = 0.0; + prevLoss = 0.0; + for( i=optInTimePeriod; i > 0; i-- ) + { + tempValue1 = inReal[today++]; + tempValue2 = tempValue1 - prevValue; + prevValue = tempValue1; + if( tempValue2 < 0 ) + prevLoss -= tempValue2; + else + prevGain += tempValue2; + } + + + tempValue1 = prevLoss/optInTimePeriod; + tempValue2 = prevGain/optInTimePeriod; + + /* Write the output. */ + tempValue1 = tempValue2+tempValue1; + if( !TA_IS_ZERO(tempValue1) ) + outReal[outIdx++] = 100*(tempValue2/tempValue1); + else + outReal[outIdx++] = 0.0; + + /* Are we done? */ + if( today > endIdx ) + { + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + + /* Start over for the next price bar. */ + today -= optInTimePeriod; + prevValue = savePrevValue; + } + + + /* Remaining of the processing is identical + * for both Classic calculation and Metastock. + */ + prevGain = 0.0; + prevLoss = 0.0; + today++; + for( i=optInTimePeriod; i > 0; i-- ) + { + tempValue1 = inReal[today++]; + tempValue2 = tempValue1 - prevValue; + prevValue = tempValue1; + if( tempValue2 < 0 ) + prevLoss -= tempValue2; + else + prevGain += tempValue2; + } + + + /* Subsequent prevLoss and prevGain are smoothed + * using the previous values (Wilder's approach). + * 1) Multiply the previous by 'period-1'. + * 2) Add today value. + * 3) Divide by 'period'. + */ + prevLoss /= optInTimePeriod; + prevGain /= optInTimePeriod; + + /* Often documentation present the RSI calculation as follow: + * RSI = 100 - (100 / 1 + (prevGain/prevLoss)) + * + * The following is equivalent: + * RSI = 100 * (prevGain/(prevGain+prevLoss)) + * + * The second equation is used here for speed optimization. + */ + if( today > startIdx ) + { + tempValue1 = prevGain+prevLoss; + if( !TA_IS_ZERO(tempValue1) ) + outReal[outIdx++] = 100.0*(prevGain/tempValue1); + else + outReal[outIdx++] = 0.0; + } + else + { + /* Skip the unstable period. Do the processing + * but do not write it in the output. + */ + while( today < startIdx ) + { + tempValue1 = inReal[today]; + tempValue2 = tempValue1 - prevValue; + prevValue = tempValue1; + + prevLoss *= (optInTimePeriod-1); + prevGain *= (optInTimePeriod-1); + if( tempValue2 < 0 ) + prevLoss -= tempValue2; + else + prevGain += tempValue2; + + prevLoss /= optInTimePeriod; + prevGain /= optInTimePeriod; + + today++; + } + } + + /* Unstable period skipped... now continue + * processing if needed. + */ + while( today <= endIdx ) + { + tempValue1 = inReal[today++]; + tempValue2 = tempValue1 - prevValue; + prevValue = tempValue1; + + prevLoss *= (optInTimePeriod-1); + prevGain *= (optInTimePeriod-1); + if( tempValue2 < 0 ) + prevLoss -= tempValue2; + else + prevGain += tempValue2; + + prevLoss /= optInTimePeriod; + prevGain /= optInTimePeriod; + tempValue1 = prevGain+prevLoss; + if( !TA_IS_ZERO(tempValue1) ) + outReal[outIdx++] = 100.0*(prevGain/tempValue1); + else + outReal[outIdx++] = 0.0; + } + + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::Rsi( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode rsi( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inReal[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_RSI( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inReal[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ int outIdx; +/* Generated */ int today, lookbackTotal, unstablePeriod, i; +/* Generated */ double prevGain, prevLoss, prevValue, savePrevValue; +/* Generated */ double tempValue1, tempValue2; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 14; +/* Generated */ else if( ((int)optInTimePeriod < 2) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ lookbackTotal = LOOKBACK_CALL(RSI)( optInTimePeriod ); +/* Generated */ if( startIdx < lookbackTotal ) +/* Generated */ startIdx = lookbackTotal; +/* Generated */ if( startIdx > endIdx ) +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ outIdx = 0; +/* Generated */ if( optInTimePeriod == 1 ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ i = (endIdx-startIdx)+1; +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = i; +/* Generated */ #if defined( USE_SUBARRAY ) && !defined( USE_SINGLE_PRECISION_INPUT ) +/* Generated */ ARRAY_MEMMOVE( outReal, 0, (inReal->mDataArray), (inReal->mOffset)+startIdx, i ); +/* Generated */ #else +/* Generated */ ARRAY_MEMMOVE( outReal, 0, inReal, startIdx, i ); +/* Generated */ #endif +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ today = startIdx-lookbackTotal; +/* Generated */ prevValue = inReal[today]; +/* Generated */ unstablePeriod = TA_GLOBALS_UNSTABLE_PERIOD(TA_FUNC_UNST_RSI,Rsi); +/* Generated */ if( (unstablePeriod == 0) && +/* Generated */ (TA_GLOBALS_COMPATIBILITY == ENUM_VALUE(Compatibility,TA_COMPATIBILITY_METASTOCK,Metastock))) +/* Generated */ { +/* Generated */ savePrevValue = prevValue; +/* Generated */ prevGain = 0.0; +/* Generated */ prevLoss = 0.0; +/* Generated */ for( i=optInTimePeriod; i > 0; i-- ) +/* Generated */ { +/* Generated */ tempValue1 = inReal[today++]; +/* Generated */ tempValue2 = tempValue1 - prevValue; +/* Generated */ prevValue = tempValue1; +/* Generated */ if( tempValue2 < 0 ) +/* Generated */ prevLoss -= tempValue2; +/* Generated */ else +/* Generated */ prevGain += tempValue2; +/* Generated */ } +/* Generated */ tempValue1 = prevLoss/optInTimePeriod; +/* Generated */ tempValue2 = prevGain/optInTimePeriod; +/* Generated */ tempValue1 = tempValue2+tempValue1; +/* Generated */ if( !TA_IS_ZERO(tempValue1) ) +/* Generated */ outReal[outIdx++] = 100*(tempValue2/tempValue1); +/* Generated */ else +/* Generated */ outReal[outIdx++] = 0.0; +/* Generated */ if( today > endIdx ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ today -= optInTimePeriod; +/* Generated */ prevValue = savePrevValue; +/* Generated */ } +/* Generated */ prevGain = 0.0; +/* Generated */ prevLoss = 0.0; +/* Generated */ today++; +/* Generated */ for( i=optInTimePeriod; i > 0; i-- ) +/* Generated */ { +/* Generated */ tempValue1 = inReal[today++]; +/* Generated */ tempValue2 = tempValue1 - prevValue; +/* Generated */ prevValue = tempValue1; +/* Generated */ if( tempValue2 < 0 ) +/* Generated */ prevLoss -= tempValue2; +/* Generated */ else +/* Generated */ prevGain += tempValue2; +/* Generated */ } +/* Generated */ prevLoss /= optInTimePeriod; +/* Generated */ prevGain /= optInTimePeriod; +/* Generated */ if( today > startIdx ) +/* Generated */ { +/* Generated */ tempValue1 = prevGain+prevLoss; +/* Generated */ if( !TA_IS_ZERO(tempValue1) ) +/* Generated */ outReal[outIdx++] = 100.0*(prevGain/tempValue1); +/* Generated */ else +/* Generated */ outReal[outIdx++] = 0.0; +/* Generated */ } +/* Generated */ else +/* Generated */ { +/* Generated */ while( today < startIdx ) +/* Generated */ { +/* Generated */ tempValue1 = inReal[today]; +/* Generated */ tempValue2 = tempValue1 - prevValue; +/* Generated */ prevValue = tempValue1; +/* Generated */ prevLoss *= (optInTimePeriod-1); +/* Generated */ prevGain *= (optInTimePeriod-1); +/* Generated */ if( tempValue2 < 0 ) +/* Generated */ prevLoss -= tempValue2; +/* Generated */ else +/* Generated */ prevGain += tempValue2; +/* Generated */ prevLoss /= optInTimePeriod; +/* Generated */ prevGain /= optInTimePeriod; +/* Generated */ today++; +/* Generated */ } +/* Generated */ } +/* Generated */ while( today <= endIdx ) +/* Generated */ { +/* Generated */ tempValue1 = inReal[today++]; +/* Generated */ tempValue2 = tempValue1 - prevValue; +/* Generated */ prevValue = tempValue1; +/* Generated */ prevLoss *= (optInTimePeriod-1); +/* Generated */ prevGain *= (optInTimePeriod-1); +/* Generated */ if( tempValue2 < 0 ) +/* Generated */ prevLoss -= tempValue2; +/* Generated */ else +/* Generated */ prevGain += tempValue2; +/* Generated */ prevLoss /= optInTimePeriod; +/* Generated */ prevGain /= optInTimePeriod; +/* Generated */ tempValue1 = prevGain+prevLoss; +/* Generated */ if( !TA_IS_ZERO(tempValue1) ) +/* Generated */ outReal[outIdx++] = 100.0*(prevGain/tempValue1); +/* Generated */ else +/* Generated */ outReal[outIdx++] = 0.0; +/* Generated */ } +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_SAR.c b/src/ta_func/ta_SAR.c new file mode 100644 index 000000000..a3f664e17 --- /dev/null +++ b/src/ta_func/ta_SAR.c @@ -0,0 +1,711 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * MF Mario Fortier + * CF Christo Fogelberg + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 010802 MF Template creation. + * 052603 MF Adapt code to compile with .NET Managed C++ + * 122104 MF,CF Fix#1089506 for out-of-bound access to ep_temp. + */ + +/* SAR_ROUNDING is just for test purpose when cross-referencing that + * function with example from Wilder's book. Wilder is using two + * decimal rounding for simplification. TA-Lib does not round. + */ +/* #define SAR_ROUNDING(x) x=round_pos_2(x) */ +#define SAR_ROUNDING(x) + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::SarLookback( double optInAcceleration, /* From 0 to TA_REAL_MAX */ +/* Generated */ double optInMaximum ) /* From 0 to TA_REAL_MAX */ +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int sarLookback( double optInAcceleration, /* From 0 to TA_REAL_MAX */ +/* Generated */ double optInMaximum ) /* From 0 to TA_REAL_MAX */ +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_SAR_Lookback( double optInAcceleration, /* From 0 to TA_REAL_MAX */ +/* Generated */ double optInMaximum ) /* From 0 to TA_REAL_MAX */ +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( optInAcceleration == TA_REAL_DEFAULT ) +/* Generated */ optInAcceleration = 2.000000e-2; +/* Generated */ else if( (optInAcceleration < 0.000000e+0) ||/* Generated */ (optInAcceleration > 3.000000e+37) ) +/* Generated */ return -1; +/* Generated */ +/* Generated */ if( optInMaximum == TA_REAL_DEFAULT ) +/* Generated */ optInMaximum = 2.000000e-1; +/* Generated */ else if( (optInMaximum < 0.000000e+0) ||/* Generated */ (optInMaximum > 3.000000e+37) ) +/* Generated */ return -1; +/* Generated */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + UNUSED_VARIABLE(optInAcceleration); + UNUSED_VARIABLE(optInMaximum); + + /* SAR always sacrify one price bar to establish the + * initial extreme price. + */ + return 1; +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_SAR - Parabolic SAR + * + * Input = High, Low + * Output = double + * + * Optional Parameters + * ------------------- + * optInAcceleration:(From 0 to TA_REAL_MAX) + * Acceleration Factor used up to the Maximum value + * + * optInMaximum:(From 0 to TA_REAL_MAX) + * Acceleration Factor Maximum value + * + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::Sar( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inHigh, +/* Generated */ SubArray^ inLow, +/* Generated */ double optInAcceleration, /* From 0 to TA_REAL_MAX */ +/* Generated */ double optInMaximum, /* From 0 to TA_REAL_MAX */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::Sar( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ double optInAcceleration, /* From 0 to TA_REAL_MAX */ +/* Generated */ double optInMaximum, /* From 0 to TA_REAL_MAX */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode sar( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inHigh[], +/* Generated */ double inLow[], +/* Generated */ double optInAcceleration, /* From 0 to TA_REAL_MAX */ +/* Generated */ double optInMaximum, /* From 0 to TA_REAL_MAX */ +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_SAR( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inHigh[], +/* Generated */ const double inLow[], +/* Generated */ double optInAcceleration, /* From 0 to TA_REAL_MAX */ +/* Generated */ double optInMaximum, /* From 0 to TA_REAL_MAX */ +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + ENUM_DECLARATION(RetCode) retCode; + + int isLong; /* > 0 indicates long. == 0 indicates short */ + int todayIdx, outIdx; + + VALUE_HANDLE_INT(tempInt); + + double newHigh, newLow, prevHigh, prevLow; + double af, ep, sar; + ARRAY_LOCAL(ep_temp,1); + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ /* Verify required price component. */ +/* Generated */ if(!inHigh||!inLow) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ if( optInAcceleration == TA_REAL_DEFAULT ) +/* Generated */ optInAcceleration = 2.000000e-2; +/* Generated */ else if( (optInAcceleration < 0.000000e+0) ||/* Generated */ (optInAcceleration > 3.000000e+37) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ if( optInMaximum == TA_REAL_DEFAULT ) +/* Generated */ optInMaximum = 2.000000e-1; +/* Generated */ else if( (optInMaximum < 0.000000e+0) ||/* Generated */ (optInMaximum > 3.000000e+37) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Insert TA function code here. */ + + /* Implementation of the SAR has been a little bit open to interpretation + * since Wilder (the original author) did not define a precise algorithm + * on how to bootstrap the algorithm. Take any existing software application + * and you will see slight variation on how the algorithm was adapted. + * + * What is the initial trade direction? Long or short? + * =================================================== + * The interpretation of what should be the initial SAR values is + * open to interpretation, particularly since the caller to the function + * does not specify the initial direction of the trade. + * + * In TA-Lib, the following logic is used: + * - Calculate +DM and -DM between the first and + * second bar. The highest directional indication will + * indicate the assumed direction of the trade for the second + * price bar. + * - In the case of a tie between +DM and -DM, + * the direction is LONG by default. + * + * What is the initial "extreme point" and thus SAR? + * ================================================= + * The following shows how different people took different approach: + * - Metastock use the first price bar high/low depending of + * the direction. No SAR is calculated for the first price + * bar. + * - Tradestation use the closing price of the second bar. No + * SAR are calculated for the first price bar. + * - Wilder (the original author) use the SIP from the + * previous trade (cannot be implement here since the + * direction and length of the previous trade is unknonw). + * - The Magazine TASC seems to follow Wilder approach which + * is not practical here. + * + * TA-Lib "consume" the first price bar and use its high/low as the + * initial SAR of the second price bar. I found that approach to be + * the closest to Wilders idea of having the first entry day use + * the previous extreme point, except that here the extreme point is + * derived solely from the first price bar. I found the same approach + * to be used by Metastock. + */ + + /* Identify the minimum number of price bar needed + * to calculate at least one output. + * + * Move up the start index if there is not + * enough initial data. + */ + if( startIdx < 1 ) + startIdx = 1; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + + /* Make sure the acceleration and maximum are coherent. + * If not, correct the acceleration. + */ + af = optInAcceleration; + if( af > optInMaximum ) + af = optInAcceleration = optInMaximum; + + /* Identify if the initial direction is long or short. + * (ep is just used as a temp buffer here, the name + * of the parameter is not significant). + */ + retCode = FUNCTION_CALL(MINUS_DM)( startIdx, startIdx, inHigh, inLow, 1, + VALUE_HANDLE_OUT(tempInt), VALUE_HANDLE_OUT(tempInt), + ep_temp ); + if( ep_temp[0] > 0 ) + isLong = 0; + else + isLong = 1; + + if( retCode != ENUM_VALUE(RetCode,TA_SUCCESS,Success) ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return retCode; + } + + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + outIdx = 0; + + /* Write the first SAR. */ + todayIdx = startIdx; + + newHigh = inHigh[todayIdx-1]; + newLow = inLow[todayIdx-1]; + + SAR_ROUNDING(newHigh); + SAR_ROUNDING(newLow); + + if( isLong == 1 ) + { + ep = inHigh[todayIdx]; + sar = newLow; + } + else + { + ep = inLow[todayIdx]; + sar = newHigh; + } + + SAR_ROUNDING(sar); + + /* Cheat on the newLow and newHigh for the + * first iteration. + */ + newLow = inLow[todayIdx]; + newHigh = inHigh[todayIdx]; + + while( todayIdx <= endIdx ) + { + prevLow = newLow; + prevHigh = newHigh; + newLow = inLow[todayIdx]; + newHigh = inHigh[todayIdx]; + todayIdx++; + + SAR_ROUNDING(newLow); + SAR_ROUNDING(newHigh); + + if( isLong == 1 ) + { + /* Switch to short if the low penetrates the SAR value. */ + if( newLow <= sar ) + { + /* Switch and Overide the SAR with the ep */ + isLong = 0; + sar = ep; + + /* Make sure the overide SAR is within + * yesterday's and today's range. + */ + if( sar < prevHigh ) + sar = prevHigh; + if( sar < newHigh ) + sar = newHigh; + + /* Output the overide SAR */ + outReal[outIdx++] = sar; + + /* Adjust af and ep */ + af = optInAcceleration; + ep = newLow; + + /* Calculate the new SAR */ + sar = sar + af * (ep - sar); + SAR_ROUNDING( sar ); + + /* Make sure the new SAR is within + * yesterday's and today's range. + */ + if( sar < prevHigh ) + sar = prevHigh; + if( sar < newHigh ) + sar = newHigh; + } + else + { + /* No switch */ + + /* Output the SAR (was calculated in the previous iteration) */ + outReal[outIdx++] = sar; + + /* Adjust af and ep. */ + if( newHigh > ep ) + { + ep = newHigh; + af += optInAcceleration; + if( af > optInMaximum ) + af = optInMaximum; + } + + /* Calculate the new SAR */ + sar = sar + af * (ep - sar); + SAR_ROUNDING( sar ); + + /* Make sure the new SAR is within + * yesterday's and today's range. + */ + if( sar > prevLow ) + sar = prevLow; + if( sar > newLow ) + sar = newLow; + } + } + else + { + /* Switch to long if the high penetrates the SAR value. */ + if( newHigh >= sar ) + { + /* Switch and Overide the SAR with the ep */ + isLong = 1; + sar = ep; + + /* Make sure the overide SAR is within + * yesterday's and today's range. + */ + if( sar > prevLow ) + sar = prevLow; + if( sar > newLow ) + sar = newLow; + + /* Output the overide SAR */ + outReal[outIdx++] = sar; + + /* Adjust af and ep */ + af = optInAcceleration; + ep = newHigh; + + /* Calculate the new SAR */ + sar = sar + af * (ep - sar); + SAR_ROUNDING( sar ); + + /* Make sure the new SAR is within + * yesterday's and today's range. + */ + if( sar > prevLow ) + sar = prevLow; + if( sar > newLow ) + sar = newLow; + } + else + { + /* No switch */ + + /* Output the SAR (was calculated in the previous iteration) */ + outReal[outIdx++] = sar; + + /* Adjust af and ep. */ + if( newLow < ep ) + { + ep = newLow; + af += optInAcceleration; + if( af > optInMaximum ) + af = optInMaximum; + } + + /* Calculate the new SAR */ + sar = sar + af * (ep - sar); + SAR_ROUNDING( sar ); + + /* Make sure the new SAR is within + * yesterday's and today's range. + */ + if( sar < prevHigh ) + sar = prevHigh; + if( sar < newHigh ) + sar = newHigh; + } + } + } + + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::Sar( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ double optInAcceleration, /* From 0 to TA_REAL_MAX */ +/* Generated */ double optInMaximum, /* From 0 to TA_REAL_MAX */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode sar( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inHigh[], +/* Generated */ float inLow[], +/* Generated */ double optInAcceleration, /* From 0 to TA_REAL_MAX */ +/* Generated */ double optInMaximum, /* From 0 to TA_REAL_MAX */ +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_SAR( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inHigh[], +/* Generated */ const float inLow[], +/* Generated */ double optInAcceleration, /* From 0 to TA_REAL_MAX */ +/* Generated */ double optInMaximum, /* From 0 to TA_REAL_MAX */ +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ ENUM_DECLARATION(RetCode) retCode; +/* Generated */ int isLong; +/* Generated */ int todayIdx, outIdx; +/* Generated */ VALUE_HANDLE_INT(tempInt); +/* Generated */ double newHigh, newLow, prevHigh, prevLow; +/* Generated */ double af, ep, sar; +/* Generated */ ARRAY_LOCAL(ep_temp,1); +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if(!inHigh||!inLow) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ if( optInAcceleration == TA_REAL_DEFAULT ) +/* Generated */ optInAcceleration = 2.000000e-2; +/* Generated */ else if( (optInAcceleration < 0.000000e+0) || (optInAcceleration > 3.000000e+37) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ if( optInMaximum == TA_REAL_DEFAULT ) +/* Generated */ optInMaximum = 2.000000e-1; +/* Generated */ else if( (optInMaximum < 0.000000e+0) || (optInMaximum > 3.000000e+37) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ if( startIdx < 1 ) +/* Generated */ startIdx = 1; +/* Generated */ if( startIdx > endIdx ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ af = optInAcceleration; +/* Generated */ if( af > optInMaximum ) +/* Generated */ af = optInAcceleration = optInMaximum; +/* Generated */ retCode = FUNCTION_CALL(MINUS_DM)( startIdx, startIdx, inHigh, inLow, 1, +/* Generated */ VALUE_HANDLE_OUT(tempInt), VALUE_HANDLE_OUT(tempInt), +/* Generated */ ep_temp ); +/* Generated */ if( ep_temp[0] > 0 ) +/* Generated */ isLong = 0; +/* Generated */ else +/* Generated */ isLong = 1; +/* Generated */ if( retCode != ENUM_VALUE(RetCode,TA_SUCCESS,Success) ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return retCode; +/* Generated */ } +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ outIdx = 0; +/* Generated */ todayIdx = startIdx; +/* Generated */ newHigh = inHigh[todayIdx-1]; +/* Generated */ newLow = inLow[todayIdx-1]; +/* Generated */ SAR_ROUNDING(newHigh); +/* Generated */ SAR_ROUNDING(newLow); +/* Generated */ if( isLong == 1 ) +/* Generated */ { +/* Generated */ ep = inHigh[todayIdx]; +/* Generated */ sar = newLow; +/* Generated */ } +/* Generated */ else +/* Generated */ { +/* Generated */ ep = inLow[todayIdx]; +/* Generated */ sar = newHigh; +/* Generated */ } +/* Generated */ SAR_ROUNDING(sar); +/* Generated */ newLow = inLow[todayIdx]; +/* Generated */ newHigh = inHigh[todayIdx]; +/* Generated */ while( todayIdx <= endIdx ) +/* Generated */ { +/* Generated */ prevLow = newLow; +/* Generated */ prevHigh = newHigh; +/* Generated */ newLow = inLow[todayIdx]; +/* Generated */ newHigh = inHigh[todayIdx]; +/* Generated */ todayIdx++; +/* Generated */ SAR_ROUNDING(newLow); +/* Generated */ SAR_ROUNDING(newHigh); +/* Generated */ if( isLong == 1 ) +/* Generated */ { +/* Generated */ if( newLow <= sar ) +/* Generated */ { +/* Generated */ isLong = 0; +/* Generated */ sar = ep; +/* Generated */ if( sar < prevHigh ) +/* Generated */ sar = prevHigh; +/* Generated */ if( sar < newHigh ) +/* Generated */ sar = newHigh; +/* Generated */ outReal[outIdx++] = sar; +/* Generated */ af = optInAcceleration; +/* Generated */ ep = newLow; +/* Generated */ sar = sar + af * (ep - sar); +/* Generated */ SAR_ROUNDING( sar ); +/* Generated */ if( sar < prevHigh ) +/* Generated */ sar = prevHigh; +/* Generated */ if( sar < newHigh ) +/* Generated */ sar = newHigh; +/* Generated */ } +/* Generated */ else +/* Generated */ { +/* Generated */ outReal[outIdx++] = sar; +/* Generated */ if( newHigh > ep ) +/* Generated */ { +/* Generated */ ep = newHigh; +/* Generated */ af += optInAcceleration; +/* Generated */ if( af > optInMaximum ) +/* Generated */ af = optInMaximum; +/* Generated */ } +/* Generated */ sar = sar + af * (ep - sar); +/* Generated */ SAR_ROUNDING( sar ); +/* Generated */ if( sar > prevLow ) +/* Generated */ sar = prevLow; +/* Generated */ if( sar > newLow ) +/* Generated */ sar = newLow; +/* Generated */ } +/* Generated */ } +/* Generated */ else +/* Generated */ { +/* Generated */ if( newHigh >= sar ) +/* Generated */ { +/* Generated */ isLong = 1; +/* Generated */ sar = ep; +/* Generated */ if( sar > prevLow ) +/* Generated */ sar = prevLow; +/* Generated */ if( sar > newLow ) +/* Generated */ sar = newLow; +/* Generated */ outReal[outIdx++] = sar; +/* Generated */ af = optInAcceleration; +/* Generated */ ep = newHigh; +/* Generated */ sar = sar + af * (ep - sar); +/* Generated */ SAR_ROUNDING( sar ); +/* Generated */ if( sar > prevLow ) +/* Generated */ sar = prevLow; +/* Generated */ if( sar > newLow ) +/* Generated */ sar = newLow; +/* Generated */ } +/* Generated */ else +/* Generated */ { +/* Generated */ outReal[outIdx++] = sar; +/* Generated */ if( newLow < ep ) +/* Generated */ { +/* Generated */ ep = newLow; +/* Generated */ af += optInAcceleration; +/* Generated */ if( af > optInMaximum ) +/* Generated */ af = optInMaximum; +/* Generated */ } +/* Generated */ sar = sar + af * (ep - sar); +/* Generated */ SAR_ROUNDING( sar ); +/* Generated */ if( sar < prevHigh ) +/* Generated */ sar = prevHigh; +/* Generated */ if( sar < newHigh ) +/* Generated */ sar = newHigh; +/* Generated */ } +/* Generated */ } +/* Generated */ } +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_SAREXT.c b/src/ta_func/ta_SAREXT.c new file mode 100644 index 000000000..5f2cbb929 --- /dev/null +++ b/src/ta_func/ta_SAREXT.c @@ -0,0 +1,985 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * MF Mario Fortier + * PP Peter Pudaite + * CF Christo Fogelberg + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 120802 MF Template creation. + * 091503 PP Reworked TA_SAR to allow customisation of more SAR params. + * 092103 MF Some changes related on first round of tests + * 092303 PP Minor bug fixes. + * 122104 MF,CF Fix#1089506 for out-of-bound access to ep_temp. + * + */ + +/* SAR_ROUNDING is just for test purpose when cross-referencing that + * function with example from Wilder's book. Wilder is using two + * decimal rounding for simplification. TA-Lib does not round. + */ +/* #define SAR_ROUNDING(x) x=round_pos_2(x) */ +#define SAR_ROUNDING(x) + + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::SarExtLookback( double optInStartValue, /* From TA_REAL_MIN to TA_REAL_MAX */ +/* Generated */ double optInOffsetOnReverse, /* From 0 to TA_REAL_MAX */ +/* Generated */ double optInAccelerationInitLong, /* From 0 to TA_REAL_MAX */ +/* Generated */ double optInAccelerationLong, /* From 0 to TA_REAL_MAX */ +/* Generated */ double optInAccelerationMaxLong, /* From 0 to TA_REAL_MAX */ +/* Generated */ double optInAccelerationInitShort, /* From 0 to TA_REAL_MAX */ +/* Generated */ double optInAccelerationShort, /* From 0 to TA_REAL_MAX */ +/* Generated */ double optInAccelerationMaxShort ) /* From 0 to TA_REAL_MAX */ +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int sarExtLookback( double optInStartValue, /* From TA_REAL_MIN to TA_REAL_MAX */ +/* Generated */ double optInOffsetOnReverse, /* From 0 to TA_REAL_MAX */ +/* Generated */ double optInAccelerationInitLong, /* From 0 to TA_REAL_MAX */ +/* Generated */ double optInAccelerationLong, /* From 0 to TA_REAL_MAX */ +/* Generated */ double optInAccelerationMaxLong, /* From 0 to TA_REAL_MAX */ +/* Generated */ double optInAccelerationInitShort, /* From 0 to TA_REAL_MAX */ +/* Generated */ double optInAccelerationShort, /* From 0 to TA_REAL_MAX */ +/* Generated */ double optInAccelerationMaxShort ) /* From 0 to TA_REAL_MAX */ +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_SAREXT_Lookback( double optInStartValue, /* From TA_REAL_MIN to TA_REAL_MAX */ +/* Generated */ double optInOffsetOnReverse, /* From 0 to TA_REAL_MAX */ +/* Generated */ double optInAccelerationInitLong, /* From 0 to TA_REAL_MAX */ +/* Generated */ double optInAccelerationLong, /* From 0 to TA_REAL_MAX */ +/* Generated */ double optInAccelerationMaxLong, /* From 0 to TA_REAL_MAX */ +/* Generated */ double optInAccelerationInitShort, /* From 0 to TA_REAL_MAX */ +/* Generated */ double optInAccelerationShort, /* From 0 to TA_REAL_MAX */ +/* Generated */ double optInAccelerationMaxShort ) /* From 0 to TA_REAL_MAX */ +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( optInStartValue == TA_REAL_DEFAULT ) +/* Generated */ optInStartValue = 0.000000e+0; +/* Generated */ else if( (optInStartValue < -3.000000e+37) ||/* Generated */ (optInStartValue > 3.000000e+37) ) +/* Generated */ return -1; +/* Generated */ +/* Generated */ if( optInOffsetOnReverse == TA_REAL_DEFAULT ) +/* Generated */ optInOffsetOnReverse = 0.000000e+0; +/* Generated */ else if( (optInOffsetOnReverse < 0.000000e+0) ||/* Generated */ (optInOffsetOnReverse > 3.000000e+37) ) +/* Generated */ return -1; +/* Generated */ +/* Generated */ if( optInAccelerationInitLong == TA_REAL_DEFAULT ) +/* Generated */ optInAccelerationInitLong = 2.000000e-2; +/* Generated */ else if( (optInAccelerationInitLong < 0.000000e+0) ||/* Generated */ (optInAccelerationInitLong > 3.000000e+37) ) +/* Generated */ return -1; +/* Generated */ +/* Generated */ if( optInAccelerationLong == TA_REAL_DEFAULT ) +/* Generated */ optInAccelerationLong = 2.000000e-2; +/* Generated */ else if( (optInAccelerationLong < 0.000000e+0) ||/* Generated */ (optInAccelerationLong > 3.000000e+37) ) +/* Generated */ return -1; +/* Generated */ +/* Generated */ if( optInAccelerationMaxLong == TA_REAL_DEFAULT ) +/* Generated */ optInAccelerationMaxLong = 2.000000e-1; +/* Generated */ else if( (optInAccelerationMaxLong < 0.000000e+0) ||/* Generated */ (optInAccelerationMaxLong > 3.000000e+37) ) +/* Generated */ return -1; +/* Generated */ +/* Generated */ if( optInAccelerationInitShort == TA_REAL_DEFAULT ) +/* Generated */ optInAccelerationInitShort = 2.000000e-2; +/* Generated */ else if( (optInAccelerationInitShort < 0.000000e+0) ||/* Generated */ (optInAccelerationInitShort > 3.000000e+37) ) +/* Generated */ return -1; +/* Generated */ +/* Generated */ if( optInAccelerationShort == TA_REAL_DEFAULT ) +/* Generated */ optInAccelerationShort = 2.000000e-2; +/* Generated */ else if( (optInAccelerationShort < 0.000000e+0) ||/* Generated */ (optInAccelerationShort > 3.000000e+37) ) +/* Generated */ return -1; +/* Generated */ +/* Generated */ if( optInAccelerationMaxShort == TA_REAL_DEFAULT ) +/* Generated */ optInAccelerationMaxShort = 2.000000e-1; +/* Generated */ else if( (optInAccelerationMaxShort < 0.000000e+0) ||/* Generated */ (optInAccelerationMaxShort > 3.000000e+37) ) +/* Generated */ return -1; +/* Generated */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + UNUSED_VARIABLE(optInStartValue); + UNUSED_VARIABLE(optInOffsetOnReverse); + UNUSED_VARIABLE(optInAccelerationInitLong); + UNUSED_VARIABLE(optInAccelerationLong); + UNUSED_VARIABLE(optInAccelerationMaxLong); + UNUSED_VARIABLE(optInAccelerationInitShort); + UNUSED_VARIABLE(optInAccelerationShort); + UNUSED_VARIABLE(optInAccelerationMaxShort); + + /* SAR always sacrifices one price bar to establish the + * initial extreme price. + */ + + return 1; +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_SAREXT - Parabolic SAR - Extended + * + * Input = High, Low + * Output = double + * + * Optional Parameters + * ------------------- + * optInStartValue:(From TA_REAL_MIN to TA_REAL_MAX) + * Start value and direction. 0 for Auto, >0 for Long, <0 for Short + * + * optInOffsetOnReverse:(From 0 to TA_REAL_MAX) + * Percent offset added/removed to initial stop on short/long reversal + * + * optInAccelerationInitLong:(From 0 to TA_REAL_MAX) + * Acceleration Factor initial value for the Long direction + * + * optInAccelerationLong:(From 0 to TA_REAL_MAX) + * Acceleration Factor for the Long direction + * + * optInAccelerationMaxLong:(From 0 to TA_REAL_MAX) + * Acceleration Factor maximum value for the Long direction + * + * optInAccelerationInitShort:(From 0 to TA_REAL_MAX) + * Acceleration Factor initial value for the Short direction + * + * optInAccelerationShort:(From 0 to TA_REAL_MAX) + * Acceleration Factor for the Short direction + * + * optInAccelerationMaxShort:(From 0 to TA_REAL_MAX) + * Acceleration Factor maximum value for the Short direction + * + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::SarExt( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inHigh, +/* Generated */ SubArray^ inLow, +/* Generated */ double optInStartValue, /* From TA_REAL_MIN to TA_REAL_MAX */ +/* Generated */ double optInOffsetOnReverse, /* From 0 to TA_REAL_MAX */ +/* Generated */ double optInAccelerationInitLong, /* From 0 to TA_REAL_MAX */ +/* Generated */ double optInAccelerationLong, /* From 0 to TA_REAL_MAX */ +/* Generated */ double optInAccelerationMaxLong, /* From 0 to TA_REAL_MAX */ +/* Generated */ double optInAccelerationInitShort, /* From 0 to TA_REAL_MAX */ +/* Generated */ double optInAccelerationShort, /* From 0 to TA_REAL_MAX */ +/* Generated */ double optInAccelerationMaxShort, /* From 0 to TA_REAL_MAX */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::SarExt( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ double optInStartValue, /* From TA_REAL_MIN to TA_REAL_MAX */ +/* Generated */ double optInOffsetOnReverse, /* From 0 to TA_REAL_MAX */ +/* Generated */ double optInAccelerationInitLong, /* From 0 to TA_REAL_MAX */ +/* Generated */ double optInAccelerationLong, /* From 0 to TA_REAL_MAX */ +/* Generated */ double optInAccelerationMaxLong, /* From 0 to TA_REAL_MAX */ +/* Generated */ double optInAccelerationInitShort, /* From 0 to TA_REAL_MAX */ +/* Generated */ double optInAccelerationShort, /* From 0 to TA_REAL_MAX */ +/* Generated */ double optInAccelerationMaxShort, /* From 0 to TA_REAL_MAX */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode sarExt( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inHigh[], +/* Generated */ double inLow[], +/* Generated */ double optInStartValue, /* From TA_REAL_MIN to TA_REAL_MAX */ +/* Generated */ double optInOffsetOnReverse, /* From 0 to TA_REAL_MAX */ +/* Generated */ double optInAccelerationInitLong, /* From 0 to TA_REAL_MAX */ +/* Generated */ double optInAccelerationLong, /* From 0 to TA_REAL_MAX */ +/* Generated */ double optInAccelerationMaxLong, /* From 0 to TA_REAL_MAX */ +/* Generated */ double optInAccelerationInitShort, /* From 0 to TA_REAL_MAX */ +/* Generated */ double optInAccelerationShort, /* From 0 to TA_REAL_MAX */ +/* Generated */ double optInAccelerationMaxShort, /* From 0 to TA_REAL_MAX */ +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_SAREXT( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inHigh[], +/* Generated */ const double inLow[], +/* Generated */ double optInStartValue, /* From TA_REAL_MIN to TA_REAL_MAX */ +/* Generated */ double optInOffsetOnReverse, /* From 0 to TA_REAL_MAX */ +/* Generated */ double optInAccelerationInitLong, /* From 0 to TA_REAL_MAX */ +/* Generated */ double optInAccelerationLong, /* From 0 to TA_REAL_MAX */ +/* Generated */ double optInAccelerationMaxLong, /* From 0 to TA_REAL_MAX */ +/* Generated */ double optInAccelerationInitShort, /* From 0 to TA_REAL_MAX */ +/* Generated */ double optInAccelerationShort, /* From 0 to TA_REAL_MAX */ +/* Generated */ double optInAccelerationMaxShort, /* From 0 to TA_REAL_MAX */ +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + ENUM_DECLARATION(RetCode) retCode; + + int isLong; /* > 0 indicates long. == 0 indicates short */ + int todayIdx, outIdx; + + VALUE_HANDLE_INT(tempInt); + + double newHigh, newLow, prevHigh, prevLow; + double afLong, afShort, ep, sar; + ARRAY_LOCAL(ep_temp,1); + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ /* Verify required price component. */ +/* Generated */ if(!inHigh||!inLow) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ if( optInStartValue == TA_REAL_DEFAULT ) +/* Generated */ optInStartValue = 0.000000e+0; +/* Generated */ else if( (optInStartValue < -3.000000e+37) ||/* Generated */ (optInStartValue > 3.000000e+37) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ if( optInOffsetOnReverse == TA_REAL_DEFAULT ) +/* Generated */ optInOffsetOnReverse = 0.000000e+0; +/* Generated */ else if( (optInOffsetOnReverse < 0.000000e+0) ||/* Generated */ (optInOffsetOnReverse > 3.000000e+37) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ if( optInAccelerationInitLong == TA_REAL_DEFAULT ) +/* Generated */ optInAccelerationInitLong = 2.000000e-2; +/* Generated */ else if( (optInAccelerationInitLong < 0.000000e+0) ||/* Generated */ (optInAccelerationInitLong > 3.000000e+37) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ if( optInAccelerationLong == TA_REAL_DEFAULT ) +/* Generated */ optInAccelerationLong = 2.000000e-2; +/* Generated */ else if( (optInAccelerationLong < 0.000000e+0) ||/* Generated */ (optInAccelerationLong > 3.000000e+37) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ if( optInAccelerationMaxLong == TA_REAL_DEFAULT ) +/* Generated */ optInAccelerationMaxLong = 2.000000e-1; +/* Generated */ else if( (optInAccelerationMaxLong < 0.000000e+0) ||/* Generated */ (optInAccelerationMaxLong > 3.000000e+37) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ if( optInAccelerationInitShort == TA_REAL_DEFAULT ) +/* Generated */ optInAccelerationInitShort = 2.000000e-2; +/* Generated */ else if( (optInAccelerationInitShort < 0.000000e+0) ||/* Generated */ (optInAccelerationInitShort > 3.000000e+37) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ if( optInAccelerationShort == TA_REAL_DEFAULT ) +/* Generated */ optInAccelerationShort = 2.000000e-2; +/* Generated */ else if( (optInAccelerationShort < 0.000000e+0) ||/* Generated */ (optInAccelerationShort > 3.000000e+37) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ if( optInAccelerationMaxShort == TA_REAL_DEFAULT ) +/* Generated */ optInAccelerationMaxShort = 2.000000e-1; +/* Generated */ else if( (optInAccelerationMaxShort < 0.000000e+0) ||/* Generated */ (optInAccelerationMaxShort > 3.000000e+37) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Insert TA function code here. */ + + /* This function is the same as TA_SAR, except that the caller has + * greater control on the SAR dynamic and initial state. + * + * In additon, the TA_SAREXT returns negative values when the position + * is short. This allow to distinguish when the SAR do actually reverse. + */ + + /* Implementation of the SAR has been a little bit open to interpretation + * since Wilder (the original author) did not define a precise algorithm + * on how to bootstrap the algorithm. Take any existing software application + * and you will see slight variation on how the algorithm was adapted. + * + * What is the initial trade direction? Long or short? + * =================================================== + * The interpretation of what should be the initial SAR values is + * open to interpretation, particularly since the caller to the function + * does not specify the initial direction of the trade. + * + * In TA-Lib, the following default logic is used: + * - Calculate +DM and -DM between the first and + * second bar. The highest directional indication will + * indicate the assumed direction of the trade for the second + * price bar. + * - In the case of a tie between +DM and -DM, + * the direction is LONG by default. + * + * What is the initial "extreme point" and thus SAR? + * ================================================= + * The following shows how different people took different approach: + * - Metastock use the first price bar high/low depending of + * the direction. No SAR is calculated for the first price + * bar. + * - Tradestation use the closing price of the second bar. No + * SAR are calculated for the first price bar. + * - Wilder (the original author) use the SIP from the + * previous trade (cannot be implement here since the + * direction and length of the previous trade is unknonw). + * - The Magazine TASC seems to follow Wilder approach which + * is not practical here. + * + * TA-Lib "consume" the first price bar and use its high/low as the + * initial SAR of the second price bar. I found that approach to be + * the closest to Wilders idea of having the first entry day use + * the previous extreme point, except that here the extreme point is + * derived solely from the first price bar. I found the same approach + * to be used by Metastock. + * + * + * Can I force the initial SAR? + * ============================ + * Yes. Using the optInStartValue_0 parameter: + * optInStartValue_0 > 0 : SAR is long at optInStartValue_0. + * optInStartValue_0 < 0 : SAR is short at fabs(optInStartValue_0). + * + * And when optInStartValue_0 == 0, the logic is the same as for TA_SAR + * (See previous two sections). + */ + + /* Identify the minimum number of price bar needed + * to calculate at least one output. + * + * Move up the start index if there is not + * enough initial data. + */ + if( startIdx < 1 ) + startIdx = 1; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + + + /* Check if the acceleration factors are being defined by the user. + * Make sure the acceleration and maximum are coherent. + * If not, correct the acceleration. + * Default afLong = 0.02 + * Default afShort = 0.02 + */ + + afLong = optInAccelerationInitLong; + afShort = optInAccelerationInitShort; + + if( afLong > optInAccelerationMaxLong ) + afLong = optInAccelerationInitLong = optInAccelerationMaxLong; + + if( optInAccelerationLong > optInAccelerationMaxLong ) + optInAccelerationLong = optInAccelerationMaxLong; + + if( afShort > optInAccelerationMaxShort) + afShort = optInAccelerationInitShort = optInAccelerationMaxShort; + + if( optInAccelerationShort > optInAccelerationMaxShort ) + optInAccelerationShort = optInAccelerationMaxShort; + + /* Initialise SAR calculations */ + + if(optInStartValue == 0) /* Default action */ + { + /* Identify if the initial direction is long or short. + * (ep is just used as a temp buffer here, the name + * of the parameter is not significant). + */ + retCode = FUNCTION_CALL(MINUS_DM)( startIdx, startIdx, inHigh, inLow, 1, + VALUE_HANDLE_OUT(tempInt), VALUE_HANDLE_OUT(tempInt), + ep_temp ); + if( ep_temp[0] > 0 ) + isLong = 0; + else + isLong = 1; + + if( retCode != ENUM_VALUE(RetCode,TA_SUCCESS,Success) ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return retCode; + } + } + else if( optInStartValue > 0 ) /* Start Long */ + { + isLong = 1; + } + else /* optInStartValue_0 < 0 => Start Short */ + { + isLong = 0; + } + + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + outIdx = 0; + + + /* Write the first SAR. */ + todayIdx = startIdx; + + newHigh = inHigh[todayIdx-1]; + newLow = inLow[todayIdx-1]; + + SAR_ROUNDING(newHigh); + SAR_ROUNDING(newLow); + + if(optInStartValue == 0) /* Default action */ + { + if( isLong == 1 ) + { + ep = inHigh[todayIdx]; + sar = newLow; + } + else + { + ep = inLow[todayIdx]; + sar = newHigh; + } + } + else if ( optInStartValue > 0 ) /* Start Long at specified value. */ + { + ep = inHigh[todayIdx]; + sar = optInStartValue; + } + else /* if optInStartValue < 0 => Start Short at specified value. */ + { + ep = inLow[todayIdx]; + sar = std_fabs(optInStartValue); + } + + SAR_ROUNDING(sar); + + /* Cheat on the newLow and newHigh for the + * first iteration. + */ + newLow = inLow[todayIdx]; + newHigh = inHigh[todayIdx]; + + while( todayIdx <= endIdx ) + { + prevLow = newLow; + prevHigh = newHigh; + newLow = inLow[todayIdx]; + newHigh = inHigh[todayIdx]; + todayIdx++; + + SAR_ROUNDING(newLow); + SAR_ROUNDING(newHigh); + + if( isLong == 1 ) + { + /* Switch to short if the low penetrates the SAR value. */ + if( newLow <= sar ) + { + /* Switch and Overide the SAR with the ep */ + isLong = 0; + sar = ep; + + /* Make sure the overide SAR is within + * yesterday's and today's range. + */ + if( sar < prevHigh ) + sar = prevHigh; + if( sar < newHigh ) + sar = newHigh; + + /* Output the overide SAR */ + if( optInOffsetOnReverse != 0.0 ) + sar += sar * optInOffsetOnReverse; + outReal[outIdx++] = -sar; + + /* Adjust afShort and ep */ + afShort = optInAccelerationInitShort; + ep = newLow; + + /* Calculate the new SAR */ + sar = sar + afShort * (ep - sar); + SAR_ROUNDING( sar ); + + /* Make sure the new SAR is within + * yesterday's and today's range. + */ + if( sar < prevHigh ) + sar = prevHigh; + if( sar < newHigh ) + sar = newHigh; + } + else + { + /* No switch */ + + /* Output the SAR (was calculated in the previous iteration) */ + outReal[outIdx++] = sar; + + /* Adjust afLong and ep. */ + if( newHigh > ep ) + { + ep = newHigh; + afLong += optInAccelerationLong; + if( afLong > optInAccelerationMaxLong ) + afLong = optInAccelerationMaxLong; + } + + /* Calculate the new SAR */ + sar = sar + afLong * (ep - sar); + SAR_ROUNDING( sar ); + + /* Make sure the new SAR is within + * yesterday's and today's range. + */ + if( sar > prevLow ) + sar = prevLow; + if( sar > newLow ) + sar = newLow; + } + } + else + { + /* Switch to long if the high penetrates the SAR value. */ + if( newHigh >= sar ) + { + /* Switch and Overide the SAR with the ep */ + isLong = 1; + sar = ep; + + /* Make sure the overide SAR is within + * yesterday's and today's range. + */ + if( sar > prevLow ) + sar = prevLow; + if( sar > newLow ) + sar = newLow; + + /* Output the overide SAR */ + if( optInOffsetOnReverse != 0.0 ) + sar -= sar * optInOffsetOnReverse; + outReal[outIdx++] = sar; + + /* Adjust afLong and ep */ + afLong = optInAccelerationInitLong; + ep = newHigh; + + /* Calculate the new SAR */ + sar = sar + afLong * (ep - sar); + SAR_ROUNDING( sar ); + + /* Make sure the new SAR is within + * yesterday's and today's range. + */ + if( sar > prevLow ) + sar = prevLow; + if( sar > newLow ) + sar = newLow; + } + else + { + /* No switch */ + + /* Output the SAR (was calculated in the previous iteration) */ + outReal[outIdx++] = -sar; + + /* Adjust afShort and ep. */ + if( newLow < ep ) + { + ep = newLow; + afShort += optInAccelerationShort; + if( afShort > optInAccelerationMaxShort ) + afShort = optInAccelerationMaxShort; + } + + /* Calculate the new SAR */ + sar = sar + afShort * (ep - sar); + SAR_ROUNDING( sar ); + + /* Make sure the new SAR is within + * yesterday's and today's range. + */ + if( sar < prevHigh ) + sar = prevHigh; + if( sar < newHigh ) + sar = newHigh; + } + } + } + + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::SarExt( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ double optInStartValue, /* From TA_REAL_MIN to TA_REAL_MAX */ +/* Generated */ double optInOffsetOnReverse, /* From 0 to TA_REAL_MAX */ +/* Generated */ double optInAccelerationInitLong, /* From 0 to TA_REAL_MAX */ +/* Generated */ double optInAccelerationLong, /* From 0 to TA_REAL_MAX */ +/* Generated */ double optInAccelerationMaxLong, /* From 0 to TA_REAL_MAX */ +/* Generated */ double optInAccelerationInitShort, /* From 0 to TA_REAL_MAX */ +/* Generated */ double optInAccelerationShort, /* From 0 to TA_REAL_MAX */ +/* Generated */ double optInAccelerationMaxShort, /* From 0 to TA_REAL_MAX */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode sarExt( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inHigh[], +/* Generated */ float inLow[], +/* Generated */ double optInStartValue, /* From TA_REAL_MIN to TA_REAL_MAX */ +/* Generated */ double optInOffsetOnReverse, /* From 0 to TA_REAL_MAX */ +/* Generated */ double optInAccelerationInitLong, /* From 0 to TA_REAL_MAX */ +/* Generated */ double optInAccelerationLong, /* From 0 to TA_REAL_MAX */ +/* Generated */ double optInAccelerationMaxLong, /* From 0 to TA_REAL_MAX */ +/* Generated */ double optInAccelerationInitShort, /* From 0 to TA_REAL_MAX */ +/* Generated */ double optInAccelerationShort, /* From 0 to TA_REAL_MAX */ +/* Generated */ double optInAccelerationMaxShort, /* From 0 to TA_REAL_MAX */ +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_SAREXT( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inHigh[], +/* Generated */ const float inLow[], +/* Generated */ double optInStartValue, /* From TA_REAL_MIN to TA_REAL_MAX */ +/* Generated */ double optInOffsetOnReverse, /* From 0 to TA_REAL_MAX */ +/* Generated */ double optInAccelerationInitLong, /* From 0 to TA_REAL_MAX */ +/* Generated */ double optInAccelerationLong, /* From 0 to TA_REAL_MAX */ +/* Generated */ double optInAccelerationMaxLong, /* From 0 to TA_REAL_MAX */ +/* Generated */ double optInAccelerationInitShort, /* From 0 to TA_REAL_MAX */ +/* Generated */ double optInAccelerationShort, /* From 0 to TA_REAL_MAX */ +/* Generated */ double optInAccelerationMaxShort, /* From 0 to TA_REAL_MAX */ +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ ENUM_DECLARATION(RetCode) retCode; +/* Generated */ int isLong; +/* Generated */ int todayIdx, outIdx; +/* Generated */ VALUE_HANDLE_INT(tempInt); +/* Generated */ double newHigh, newLow, prevHigh, prevLow; +/* Generated */ double afLong, afShort, ep, sar; +/* Generated */ ARRAY_LOCAL(ep_temp,1); +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if(!inHigh||!inLow) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ if( optInStartValue == TA_REAL_DEFAULT ) +/* Generated */ optInStartValue = 0.000000e+0; +/* Generated */ else if( (optInStartValue < -3.000000e+37) || (optInStartValue > 3.000000e+37) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ if( optInOffsetOnReverse == TA_REAL_DEFAULT ) +/* Generated */ optInOffsetOnReverse = 0.000000e+0; +/* Generated */ else if( (optInOffsetOnReverse < 0.000000e+0) || (optInOffsetOnReverse > 3.000000e+37) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ if( optInAccelerationInitLong == TA_REAL_DEFAULT ) +/* Generated */ optInAccelerationInitLong = 2.000000e-2; +/* Generated */ else if( (optInAccelerationInitLong < 0.000000e+0) || (optInAccelerationInitLong > 3.000000e+37) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ if( optInAccelerationLong == TA_REAL_DEFAULT ) +/* Generated */ optInAccelerationLong = 2.000000e-2; +/* Generated */ else if( (optInAccelerationLong < 0.000000e+0) || (optInAccelerationLong > 3.000000e+37) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ if( optInAccelerationMaxLong == TA_REAL_DEFAULT ) +/* Generated */ optInAccelerationMaxLong = 2.000000e-1; +/* Generated */ else if( (optInAccelerationMaxLong < 0.000000e+0) || (optInAccelerationMaxLong > 3.000000e+37) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ if( optInAccelerationInitShort == TA_REAL_DEFAULT ) +/* Generated */ optInAccelerationInitShort = 2.000000e-2; +/* Generated */ else if( (optInAccelerationInitShort < 0.000000e+0) || (optInAccelerationInitShort > 3.000000e+37) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ if( optInAccelerationShort == TA_REAL_DEFAULT ) +/* Generated */ optInAccelerationShort = 2.000000e-2; +/* Generated */ else if( (optInAccelerationShort < 0.000000e+0) || (optInAccelerationShort > 3.000000e+37) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ if( optInAccelerationMaxShort == TA_REAL_DEFAULT ) +/* Generated */ optInAccelerationMaxShort = 2.000000e-1; +/* Generated */ else if( (optInAccelerationMaxShort < 0.000000e+0) || (optInAccelerationMaxShort > 3.000000e+37) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ if( startIdx < 1 ) +/* Generated */ startIdx = 1; +/* Generated */ if( startIdx > endIdx ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ afLong = optInAccelerationInitLong; +/* Generated */ afShort = optInAccelerationInitShort; +/* Generated */ if( afLong > optInAccelerationMaxLong ) +/* Generated */ afLong = optInAccelerationInitLong = optInAccelerationMaxLong; +/* Generated */ if( optInAccelerationLong > optInAccelerationMaxLong ) +/* Generated */ optInAccelerationLong = optInAccelerationMaxLong; +/* Generated */ if( afShort > optInAccelerationMaxShort) +/* Generated */ afShort = optInAccelerationInitShort = optInAccelerationMaxShort; +/* Generated */ if( optInAccelerationShort > optInAccelerationMaxShort ) +/* Generated */ optInAccelerationShort = optInAccelerationMaxShort; +/* Generated */ if(optInStartValue == 0) +/* Generated */ { +/* Generated */ retCode = FUNCTION_CALL(MINUS_DM)( startIdx, startIdx, inHigh, inLow, 1, +/* Generated */ VALUE_HANDLE_OUT(tempInt), VALUE_HANDLE_OUT(tempInt), +/* Generated */ ep_temp ); +/* Generated */ if( ep_temp[0] > 0 ) +/* Generated */ isLong = 0; +/* Generated */ else +/* Generated */ isLong = 1; +/* Generated */ if( retCode != ENUM_VALUE(RetCode,TA_SUCCESS,Success) ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return retCode; +/* Generated */ } +/* Generated */ } +/* Generated */ else if( optInStartValue > 0 ) +/* Generated */ { +/* Generated */ isLong = 1; +/* Generated */ } +/* Generated */ else +/* Generated */ { +/* Generated */ isLong = 0; +/* Generated */ } +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ outIdx = 0; +/* Generated */ todayIdx = startIdx; +/* Generated */ newHigh = inHigh[todayIdx-1]; +/* Generated */ newLow = inLow[todayIdx-1]; +/* Generated */ SAR_ROUNDING(newHigh); +/* Generated */ SAR_ROUNDING(newLow); +/* Generated */ if(optInStartValue == 0) +/* Generated */ { +/* Generated */ if( isLong == 1 ) +/* Generated */ { +/* Generated */ ep = inHigh[todayIdx]; +/* Generated */ sar = newLow; +/* Generated */ } +/* Generated */ else +/* Generated */ { +/* Generated */ ep = inLow[todayIdx]; +/* Generated */ sar = newHigh; +/* Generated */ } +/* Generated */ } +/* Generated */ else if ( optInStartValue > 0 ) +/* Generated */ { +/* Generated */ ep = inHigh[todayIdx]; +/* Generated */ sar = optInStartValue; +/* Generated */ } +/* Generated */ else +/* Generated */ { +/* Generated */ ep = inLow[todayIdx]; +/* Generated */ sar = std_fabs(optInStartValue); +/* Generated */ } +/* Generated */ SAR_ROUNDING(sar); +/* Generated */ newLow = inLow[todayIdx]; +/* Generated */ newHigh = inHigh[todayIdx]; +/* Generated */ while( todayIdx <= endIdx ) +/* Generated */ { +/* Generated */ prevLow = newLow; +/* Generated */ prevHigh = newHigh; +/* Generated */ newLow = inLow[todayIdx]; +/* Generated */ newHigh = inHigh[todayIdx]; +/* Generated */ todayIdx++; +/* Generated */ SAR_ROUNDING(newLow); +/* Generated */ SAR_ROUNDING(newHigh); +/* Generated */ if( isLong == 1 ) +/* Generated */ { +/* Generated */ if( newLow <= sar ) +/* Generated */ { +/* Generated */ isLong = 0; +/* Generated */ sar = ep; +/* Generated */ if( sar < prevHigh ) +/* Generated */ sar = prevHigh; +/* Generated */ if( sar < newHigh ) +/* Generated */ sar = newHigh; +/* Generated */ if( optInOffsetOnReverse != 0.0 ) +/* Generated */ sar += sar * optInOffsetOnReverse; +/* Generated */ outReal[outIdx++] = -sar; +/* Generated */ afShort = optInAccelerationInitShort; +/* Generated */ ep = newLow; +/* Generated */ sar = sar + afShort * (ep - sar); +/* Generated */ SAR_ROUNDING( sar ); +/* Generated */ if( sar < prevHigh ) +/* Generated */ sar = prevHigh; +/* Generated */ if( sar < newHigh ) +/* Generated */ sar = newHigh; +/* Generated */ } +/* Generated */ else +/* Generated */ { +/* Generated */ outReal[outIdx++] = sar; +/* Generated */ if( newHigh > ep ) +/* Generated */ { +/* Generated */ ep = newHigh; +/* Generated */ afLong += optInAccelerationLong; +/* Generated */ if( afLong > optInAccelerationMaxLong ) +/* Generated */ afLong = optInAccelerationMaxLong; +/* Generated */ } +/* Generated */ sar = sar + afLong * (ep - sar); +/* Generated */ SAR_ROUNDING( sar ); +/* Generated */ if( sar > prevLow ) +/* Generated */ sar = prevLow; +/* Generated */ if( sar > newLow ) +/* Generated */ sar = newLow; +/* Generated */ } +/* Generated */ } +/* Generated */ else +/* Generated */ { +/* Generated */ if( newHigh >= sar ) +/* Generated */ { +/* Generated */ isLong = 1; +/* Generated */ sar = ep; +/* Generated */ if( sar > prevLow ) +/* Generated */ sar = prevLow; +/* Generated */ if( sar > newLow ) +/* Generated */ sar = newLow; +/* Generated */ if( optInOffsetOnReverse != 0.0 ) +/* Generated */ sar -= sar * optInOffsetOnReverse; +/* Generated */ outReal[outIdx++] = sar; +/* Generated */ afLong = optInAccelerationInitLong; +/* Generated */ ep = newHigh; +/* Generated */ sar = sar + afLong * (ep - sar); +/* Generated */ SAR_ROUNDING( sar ); +/* Generated */ if( sar > prevLow ) +/* Generated */ sar = prevLow; +/* Generated */ if( sar > newLow ) +/* Generated */ sar = newLow; +/* Generated */ } +/* Generated */ else +/* Generated */ { +/* Generated */ outReal[outIdx++] = -sar; +/* Generated */ if( newLow < ep ) +/* Generated */ { +/* Generated */ ep = newLow; +/* Generated */ afShort += optInAccelerationShort; +/* Generated */ if( afShort > optInAccelerationMaxShort ) +/* Generated */ afShort = optInAccelerationMaxShort; +/* Generated */ } +/* Generated */ sar = sar + afShort * (ep - sar); +/* Generated */ SAR_ROUNDING( sar ); +/* Generated */ if( sar < prevHigh ) +/* Generated */ sar = prevHigh; +/* Generated */ if( sar < newHigh ) +/* Generated */ sar = newHigh; +/* Generated */ } +/* Generated */ } +/* Generated */ } +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + + diff --git a/src/ta_func/ta_SIN.c b/src/ta_func/ta_SIN.c new file mode 100644 index 000000000..af0b0f525 --- /dev/null +++ b/src/ta_func/ta_SIN.c @@ -0,0 +1,252 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * MF Mario Fortier + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 082507 MF Initial Version + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::SinLookback( void ) +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int sinLookback( ) +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_SIN_Lookback( void ) +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ /* No parameters to validate. */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + + return 0; +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_SIN - Vector Trigonometric Sin + * + * Input = double + * Output = double + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::Sin( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inReal, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::Sin( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode sin( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inReal[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_SIN( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inReal[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + int outIdx; + + #ifndef TA_LIB_PRO + int i; + #endif + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Insert TA function code here. */ + + #ifdef TA_LIB_PRO + /* Section for code distributed with TA-Lib Pro only. */ + #else + for( i=startIdx, outIdx=0; i <= endIdx; i++, outIdx++ ) + { + outReal[outIdx] = std_sin(inReal[i]); + } + #endif + + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::Sin( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode sin( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inReal[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_SIN( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inReal[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ int outIdx; +/* Generated */ #ifndef TA_LIB_PRO +/* Generated */ int i; +/* Generated */ #endif +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ #ifdef TA_LIB_PRO +/* Generated */ #else +/* Generated */ for( i=startIdx, outIdx=0; i <= endIdx; i++, outIdx++ ) +/* Generated */ { +/* Generated */ outReal[outIdx] = std_sin(inReal[i]); +/* Generated */ } +/* Generated */ #endif +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_SINH.c b/src/ta_func/ta_SINH.c new file mode 100644 index 000000000..4fe3ca89f --- /dev/null +++ b/src/ta_func/ta_SINH.c @@ -0,0 +1,241 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * MF Mario Fortier + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 090807 MF Initial Version + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::SinhLookback( void ) +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int sinhLookback( ) +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_SINH_Lookback( void ) +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ /* No parameters to validate. */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + + return 0; +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_SINH - Vector Trigonometric Sinh + * + * Input = double + * Output = double + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::Sinh( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inReal, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::Sinh( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode sinh( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inReal[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_SINH( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inReal[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + int outIdx; + int i; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Insert TA function code here. */ + + /* Default return values */ + for( i=startIdx, outIdx=0; i <= endIdx; i++, outIdx++ ) + { + outReal[outIdx] = std_sinh(inReal[i]); + } + + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::Sinh( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode sinh( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inReal[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_SINH( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inReal[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ int outIdx; +/* Generated */ int i; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ for( i=startIdx, outIdx=0; i <= endIdx; i++, outIdx++ ) +/* Generated */ { +/* Generated */ outReal[outIdx] = std_sinh(inReal[i]); +/* Generated */ } +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_SMA.c b/src/ta_func/ta_SMA.c new file mode 100644 index 000000000..9c362415c --- /dev/null +++ b/src/ta_func/ta_SMA.c @@ -0,0 +1,411 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * MF Mario Fortier + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 112400 MF Template creation. + * 052603 MF Adapt code to compile with .NET Managed C++ + * + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::SmaLookback( int optInTimePeriod ) /* From 2 to 100000 */ +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int smaLookback( int optInTimePeriod ) /* From 2 to 100000 */ +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_SMA_Lookback( int optInTimePeriod ) /* From 2 to 100000 */ +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ /* min/max are checked for optInTimePeriod. */ +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 30; +/* Generated */ else if( ((int)optInTimePeriod < 2) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return -1; +/* Generated */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + + return optInTimePeriod - 1; +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_SMA - Simple Moving Average + * + * Input = double + * Output = double + * + * Optional Parameters + * ------------------- + * optInTimePeriod:(From 2 to 100000) + * Number of period + * + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::Sma( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inReal, +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::Sma( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode sma( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inReal[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_SMA( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inReal[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* Insert local variables here. */ + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ /* min/max are checked for optInTimePeriod. */ +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 30; +/* Generated */ else if( ((int)optInTimePeriod < 2) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + return FUNCTION_CALL(INT_SMA)( startIdx, endIdx, + inReal, optInTimePeriod, + outBegIdx, outNBElement, outReal ); +} + +#if defined( _MANAGED ) && defined( USE_SUBARRAY ) && !defined(USE_SINGLE_PRECISION_INPUT) + enum class Core::RetCode Core::TA_INT_SMA( int startIdx, + int endIdx, + SubArray^ inReal, + int optInTimePeriod, + [Out]int% outBegIdx, + [Out]int% outNBElement, + cli::array^ outReal) +#elif defined( _MANAGED ) + enum class Core::RetCode Core::TA_INT_SMA( int startIdx, + int endIdx, + cli::array^ inReal, + int optInTimePeriod, + [Out]int% outBegIdx, + [Out]int% outNBElement, + cli::array^ outReal) +#elif defined( _JAVA ) +RetCode TA_INT_SMA( int startIdx, + int endIdx, + INPUT_TYPE inReal[], + int optInTimePeriod, /* From 1 to TA_INTEGER_MAX */ + MInteger outBegIdx, + MInteger outNBElement, + double outReal[] ) +#else +TA_RetCode TA_PREFIX(INT_SMA)( int startIdx, + int endIdx, + const INPUT_TYPE *inReal, + int optInTimePeriod, /* From 1 to TA_INTEGER_MAX */ + int *outBegIdx, + int *outNBElement, + double *outReal ) +#endif +{ + double periodTotal, tempReal; + int i, outIdx, trailingIdx, lookbackTotal; + + /* Identify the minimum number of price bar needed + * to calculate at least one output. + */ + lookbackTotal = (optInTimePeriod-1); + + /* Move up the start index if there is not + * enough initial data. + */ + if( startIdx < lookbackTotal ) + startIdx = lookbackTotal; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + + /* Do the MA calculation using tight loops. */ + /* Add-up the initial period, except for the last value. */ + periodTotal = 0; + trailingIdx = startIdx-lookbackTotal; + + i=trailingIdx; + if( optInTimePeriod > 1 ) + { + while( i < startIdx ) + periodTotal += inReal[i++]; + } + + /* Proceed with the calculation for the requested range. + * Note that this algorithm allows the inReal and + * outReal to be the same buffer. + */ + outIdx = 0; + do + { + periodTotal += inReal[i++]; + tempReal = periodTotal; + periodTotal -= inReal[trailingIdx++]; + outReal[outIdx++] = tempReal / optInTimePeriod; + } while( i <= endIdx ); + + /* All done. Indicate the output limits and return. */ + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::Sma( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode sma( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inReal[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_SMA( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inReal[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 30; +/* Generated */ else if( ((int)optInTimePeriod < 2) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ return FUNCTION_CALL(INT_SMA)( startIdx, endIdx, +/* Generated */ inReal, optInTimePeriod, +/* Generated */ outBegIdx, outNBElement, outReal ); +/* Generated */ } +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) && !defined(USE_SINGLE_PRECISION_INPUT) +/* Generated */ enum class Core::RetCode Core::TA_INT_SMA( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inReal, +/* Generated */ int optInTimePeriod, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::TA_INT_SMA( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ int optInTimePeriod, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ RetCode TA_INT_SMA( int startIdx, +/* Generated */ int endIdx, +/* Generated */ INPUT_TYPE inReal[], +/* Generated */ int optInTimePeriod, +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_PREFIX(INT_SMA)( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const INPUT_TYPE *inReal, +/* Generated */ int optInTimePeriod, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double *outReal ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ double periodTotal, tempReal; +/* Generated */ int i, outIdx, trailingIdx, lookbackTotal; +/* Generated */ lookbackTotal = (optInTimePeriod-1); +/* Generated */ if( startIdx < lookbackTotal ) +/* Generated */ startIdx = lookbackTotal; +/* Generated */ if( startIdx > endIdx ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ periodTotal = 0; +/* Generated */ trailingIdx = startIdx-lookbackTotal; +/* Generated */ i=trailingIdx; +/* Generated */ if( optInTimePeriod > 1 ) +/* Generated */ { +/* Generated */ while( i < startIdx ) +/* Generated */ periodTotal += inReal[i++]; +/* Generated */ } +/* Generated */ outIdx = 0; +/* Generated */ do +/* Generated */ { +/* Generated */ periodTotal += inReal[i++]; +/* Generated */ tempReal = periodTotal; +/* Generated */ periodTotal -= inReal[trailingIdx++]; +/* Generated */ outReal[outIdx++] = tempReal / optInTimePeriod; +/* Generated */ } while( i <= endIdx ); +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_SQRT.c b/src/ta_func/ta_SQRT.c new file mode 100644 index 000000000..9ff4a15cb --- /dev/null +++ b/src/ta_func/ta_SQRT.c @@ -0,0 +1,241 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * MF Mario Fortier + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 090807 MF Initial Version + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::SqrtLookback( void ) +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int sqrtLookback( ) +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_SQRT_Lookback( void ) +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ /* No parameters to validate. */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + + return 0; +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_SQRT - Vector Square Root + * + * Input = double + * Output = double + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::Sqrt( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inReal, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::Sqrt( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode sqrt( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inReal[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_SQRT( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inReal[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + int outIdx; + int i; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Insert TA function code here. */ + + /* Default return values */ + for( i=startIdx, outIdx=0; i <= endIdx; i++, outIdx++ ) + { + outReal[outIdx] = std_sqrt(inReal[i]); + } + + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::Sqrt( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode sqrt( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inReal[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_SQRT( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inReal[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ int outIdx; +/* Generated */ int i; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ for( i=startIdx, outIdx=0; i <= endIdx; i++, outIdx++ ) +/* Generated */ { +/* Generated */ outReal[outIdx] = std_sqrt(inReal[i]); +/* Generated */ } +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_STDDEV.c b/src/ta_func/ta_STDDEV.c new file mode 100644 index 000000000..bc7f894a2 --- /dev/null +++ b/src/ta_func/ta_STDDEV.c @@ -0,0 +1,497 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * MF Mario Fortier + * JV Jesus Viver <324122@cienz.unizar.es> + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 112400 MF Template creation. + * 100502 JV Speed optimization of the algorithm + * 052603 MF Adapt code to compile with .NET Managed C++ + * 090404 MF Fix #978056. Trap sqrt with negative zero values. + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::StdDevLookback( int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ double optInNbDev ) /* From TA_REAL_MIN to TA_REAL_MAX */ +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int stdDevLookback( int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ double optInNbDev ) /* From TA_REAL_MIN to TA_REAL_MAX */ +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_STDDEV_Lookback( int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ double optInNbDev ) /* From TA_REAL_MIN to TA_REAL_MAX */ +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ /* min/max are checked for optInTimePeriod. */ +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 5; +/* Generated */ else if( ((int)optInTimePeriod < 2) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return -1; +/* Generated */ +/* Generated */ if( optInNbDev == TA_REAL_DEFAULT ) +/* Generated */ optInNbDev = 1.000000e+0; +/* Generated */ else if( (optInNbDev < -3.000000e+37) ||/* Generated */ (optInNbDev > 3.000000e+37) ) +/* Generated */ return -1; +/* Generated */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + + /* Lookback is driven by the variance. */ + return LOOKBACK_CALL(VAR)( optInTimePeriod, optInNbDev ); +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_STDDEV - Standard Deviation + * + * Input = double + * Output = double + * + * Optional Parameters + * ------------------- + * optInTimePeriod:(From 2 to 100000) + * Number of period + * + * optInNbDev:(From TA_REAL_MIN to TA_REAL_MAX) + * Nb of deviations + * + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::StdDev( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inReal, +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ double optInNbDev, /* From TA_REAL_MIN to TA_REAL_MAX */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::StdDev( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ double optInNbDev, /* From TA_REAL_MIN to TA_REAL_MAX */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode stdDev( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inReal[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ double optInNbDev, /* From TA_REAL_MIN to TA_REAL_MAX */ +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_STDDEV( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inReal[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ double optInNbDev, /* From TA_REAL_MIN to TA_REAL_MAX */ +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* Insert local variables here. */ + int i; + ENUM_DECLARATION(RetCode) retCode; + double tempReal; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ /* min/max are checked for optInTimePeriod. */ +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 5; +/* Generated */ else if( ((int)optInTimePeriod < 2) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ if( optInNbDev == TA_REAL_DEFAULT ) +/* Generated */ optInNbDev = 1.000000e+0; +/* Generated */ else if( (optInNbDev < -3.000000e+37) ||/* Generated */ (optInNbDev > 3.000000e+37) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Insert TA function code here. */ + + /* Calculate the variance. */ + retCode = FUNCTION_CALL(INT_VAR)( startIdx, endIdx, + inReal, optInTimePeriod, + outBegIdx, outNBElement, outReal ); + + if( retCode != ENUM_VALUE(RetCode,TA_SUCCESS,Success) ) + return retCode; + + /* Calculate the square root of each variance, this + * is the standard deviation. + * + * Multiply also by the ratio specified. + */ + if( optInNbDev != 1.0 ) + { + for( i=0; i < (int)VALUE_HANDLE_DEREF(outNBElement); i++ ) + { + tempReal = outReal[i]; + if( !TA_IS_ZERO_OR_NEG(tempReal) ) + outReal[i] = std_sqrt(tempReal) * optInNbDev; + else + outReal[i] = (double)0.0; + } + } + else + { + for( i=0; i < (int)VALUE_HANDLE_DEREF(outNBElement); i++ ) + { + tempReal = outReal[i]; + if( !TA_IS_ZERO_OR_NEG(tempReal) ) + outReal[i] = std_sqrt(tempReal); + else + outReal[i] = (double)0.0; + } + } + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/* The inMovAvg is the moving average of the inReal. + * + * inMovAvgBegIdx is relative to inReal, in other word + * this is the 'outBegIdx' who was returned when doing the + * MA on the inReal. + * + * inMovAvgNbElement is the number of element who was returned + * when doing the MA on the inReal. + * + * Note: This function is not used by TA_STDDEV, since TA_STDDEV + * is optimized considering it uses always a simple moving + * average. Still the function is put here because it is + * closely related. + */ +#if defined( _MANAGED ) && defined( USE_SUBARRAY ) && !defined(USE_SINGLE_PRECISION_INPUT) +void Core::TA_INT_stddev_using_precalc_ma( SubArray^ inReal, + cli::array^ inMovAvg, + int inMovAvgBegIdx, + int inMovAvgNbElement, + int timePeriod, + cli::array^ output) +#elif defined( _MANAGED ) +void Core::TA_INT_stddev_using_precalc_ma( cli::array^ inReal, + cli::array^ inMovAvg, + int inMovAvgBegIdx, + int inMovAvgNbElement, + int timePeriod, + cli::array^ output) +#elif defined( _JAVA ) +void TA_INT_stddev_using_precalc_ma( INPUT_TYPE inReal[], + double inMovAvg[], + int inMovAvgBegIdx, + int inMovAvgNbElement, + int timePeriod, + double output[] ) +#else +void TA_PREFIX(INT_stddev_using_precalc_ma)( const INPUT_TYPE *inReal, + const double *inMovAvg, + int inMovAvgBegIdx, + int inMovAvgNbElement, + int timePeriod, + double *output ) +#endif +{ + double tempReal, periodTotal2, meanValue2; + int outIdx; + + /* Start/end index for sumation. */ + int startSum, endSum; + + startSum = 1+inMovAvgBegIdx-timePeriod; + endSum = inMovAvgBegIdx; + + periodTotal2 = 0; + + for( outIdx = startSum; outIdx < endSum; outIdx++) + { + tempReal = inReal[outIdx]; + tempReal *= tempReal; + periodTotal2 += tempReal; + } + + for( outIdx=0; outIdx < inMovAvgNbElement; outIdx++, startSum++, endSum++ ) + { + tempReal = inReal[endSum]; + tempReal *= tempReal; + periodTotal2 += tempReal; + meanValue2 = periodTotal2/timePeriod; + + tempReal = inReal[startSum]; + tempReal *= tempReal; + periodTotal2 -= tempReal; + + tempReal = inMovAvg[outIdx]; + tempReal *= tempReal; + meanValue2 -= tempReal; + + if( !TA_IS_ZERO_OR_NEG(meanValue2) ) + output[outIdx] = std_sqrt(meanValue2); + else + output[outIdx] = (double)0.0; + } +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::StdDev( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ double optInNbDev, /* From TA_REAL_MIN to TA_REAL_MAX */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode stdDev( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inReal[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ double optInNbDev, /* From TA_REAL_MIN to TA_REAL_MAX */ +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_STDDEV( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inReal[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ double optInNbDev, /* From TA_REAL_MIN to TA_REAL_MAX */ +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ int i; +/* Generated */ ENUM_DECLARATION(RetCode) retCode; +/* Generated */ double tempReal; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 5; +/* Generated */ else if( ((int)optInTimePeriod < 2) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ if( optInNbDev == TA_REAL_DEFAULT ) +/* Generated */ optInNbDev = 1.000000e+0; +/* Generated */ else if( (optInNbDev < -3.000000e+37) || (optInNbDev > 3.000000e+37) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ retCode = FUNCTION_CALL(INT_VAR)( startIdx, endIdx, +/* Generated */ inReal, optInTimePeriod, +/* Generated */ outBegIdx, outNBElement, outReal ); +/* Generated */ if( retCode != ENUM_VALUE(RetCode,TA_SUCCESS,Success) ) +/* Generated */ return retCode; +/* Generated */ if( optInNbDev != 1.0 ) +/* Generated */ { +/* Generated */ for( i=0; i < (int)VALUE_HANDLE_DEREF(outNBElement); i++ ) +/* Generated */ { +/* Generated */ tempReal = outReal[i]; +/* Generated */ if( !TA_IS_ZERO_OR_NEG(tempReal) ) +/* Generated */ outReal[i] = std_sqrt(tempReal) * optInNbDev; +/* Generated */ else +/* Generated */ outReal[i] = (double)0.0; +/* Generated */ } +/* Generated */ } +/* Generated */ else +/* Generated */ { +/* Generated */ for( i=0; i < (int)VALUE_HANDLE_DEREF(outNBElement); i++ ) +/* Generated */ { +/* Generated */ tempReal = outReal[i]; +/* Generated */ if( !TA_IS_ZERO_OR_NEG(tempReal) ) +/* Generated */ outReal[i] = std_sqrt(tempReal); +/* Generated */ else +/* Generated */ outReal[i] = (double)0.0; +/* Generated */ } +/* Generated */ } +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) && !defined(USE_SINGLE_PRECISION_INPUT) +/* Generated */ void Core::TA_INT_stddev_using_precalc_ma( SubArray^ inReal, +/* Generated */ cli::array^ inMovAvg, +/* Generated */ int inMovAvgBegIdx, +/* Generated */ int inMovAvgNbElement, +/* Generated */ int timePeriod, +/* Generated */ cli::array^ output) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ void Core::TA_INT_stddev_using_precalc_ma( cli::array^ inReal, +/* Generated */ cli::array^ inMovAvg, +/* Generated */ int inMovAvgBegIdx, +/* Generated */ int inMovAvgNbElement, +/* Generated */ int timePeriod, +/* Generated */ cli::array^ output) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ void TA_INT_stddev_using_precalc_ma( INPUT_TYPE inReal[], +/* Generated */ double inMovAvg[], +/* Generated */ int inMovAvgBegIdx, +/* Generated */ int inMovAvgNbElement, +/* Generated */ int timePeriod, +/* Generated */ double output[] ) +/* Generated */ #else +/* Generated */ void TA_PREFIX(INT_stddev_using_precalc_ma)( const INPUT_TYPE *inReal, +/* Generated */ const double *inMovAvg, +/* Generated */ int inMovAvgBegIdx, +/* Generated */ int inMovAvgNbElement, +/* Generated */ int timePeriod, +/* Generated */ double *output ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ double tempReal, periodTotal2, meanValue2; +/* Generated */ int outIdx; +/* Generated */ int startSum, endSum; +/* Generated */ startSum = 1+inMovAvgBegIdx-timePeriod; +/* Generated */ endSum = inMovAvgBegIdx; +/* Generated */ periodTotal2 = 0; +/* Generated */ for( outIdx = startSum; outIdx < endSum; outIdx++) +/* Generated */ { +/* Generated */ tempReal = inReal[outIdx]; +/* Generated */ tempReal *= tempReal; +/* Generated */ periodTotal2 += tempReal; +/* Generated */ } +/* Generated */ for( outIdx=0; outIdx < inMovAvgNbElement; outIdx++, startSum++, endSum++ ) +/* Generated */ { +/* Generated */ tempReal = inReal[endSum]; +/* Generated */ tempReal *= tempReal; +/* Generated */ periodTotal2 += tempReal; +/* Generated */ meanValue2 = periodTotal2/timePeriod; +/* Generated */ tempReal = inReal[startSum]; +/* Generated */ tempReal *= tempReal; +/* Generated */ periodTotal2 -= tempReal; +/* Generated */ tempReal = inMovAvg[outIdx]; +/* Generated */ tempReal *= tempReal; +/* Generated */ meanValue2 -= tempReal; +/* Generated */ if( !TA_IS_ZERO_OR_NEG(meanValue2) ) +/* Generated */ output[outIdx] = std_sqrt(meanValue2); +/* Generated */ else +/* Generated */ output[outIdx] = (double)0.0; +/* Generated */ } +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_STOCH.c b/src/ta_func/ta_STOCH.c new file mode 100644 index 000000000..4c581fe70 --- /dev/null +++ b/src/ta_func/ta_STOCH.c @@ -0,0 +1,802 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * MF Mario Fortier + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 112400 MF Template creation. + * 052603 MF Adapt code to compile with .NET Managed C++ + * + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::StochLookback( int optInFastK_Period, /* From 1 to 100000 */ +/* Generated */ int optInSlowK_Period, /* From 1 to 100000 */ +/* Generated */ MAType optInSlowK_MAType, +/* Generated */ int optInSlowD_Period, /* From 1 to 100000 */ +/* Generated */ MAType optInSlowD_MAType ) /* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int stochLookback( int optInFastK_Period, /* From 1 to 100000 */ +/* Generated */ int optInSlowK_Period, /* From 1 to 100000 */ +/* Generated */ MAType optInSlowK_MAType, +/* Generated */ int optInSlowD_Period, /* From 1 to 100000 */ +/* Generated */ MAType optInSlowD_MAType ) /* Generated */ +/* Generated */ #else +/* Generated */ int TA_STOCH_Lookback( int optInFastK_Period, /* From 1 to 100000 */ +/* Generated */ int optInSlowK_Period, /* From 1 to 100000 */ +/* Generated */ TA_MAType optInSlowK_MAType, +/* Generated */ int optInSlowD_Period, /* From 1 to 100000 */ +/* Generated */ TA_MAType optInSlowD_MAType ) /* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + int retValue; + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ /* min/max are checked for optInFastK_Period. */ +/* Generated */ if( (int)optInFastK_Period == TA_INTEGER_DEFAULT ) +/* Generated */ optInFastK_Period = 5; +/* Generated */ else if( ((int)optInFastK_Period < 1) || ((int)optInFastK_Period > 100000) ) +/* Generated */ return -1; +/* Generated */ +/* Generated */ /* min/max are checked for optInSlowK_Period. */ +/* Generated */ if( (int)optInSlowK_Period == TA_INTEGER_DEFAULT ) +/* Generated */ optInSlowK_Period = 3; +/* Generated */ else if( ((int)optInSlowK_Period < 1) || ((int)optInSlowK_Period > 100000) ) +/* Generated */ return -1; +/* Generated */ +/* Generated */ #if !defined(_MANAGED) && !defined(_JAVA) +/* Generated */ if( (int)optInSlowK_MAType == TA_INTEGER_DEFAULT ) +/* Generated */ optInSlowK_MAType = (TA_MAType)0; +/* Generated */ else if( ((int)optInSlowK_MAType < 0) || ((int)optInSlowK_MAType > 8) ) +/* Generated */ return -1; +/* Generated */ +/* Generated */ #endif /* !defined(_MANAGED) && !defined(_JAVA)*/ +/* Generated */ /* min/max are checked for optInSlowD_Period. */ +/* Generated */ if( (int)optInSlowD_Period == TA_INTEGER_DEFAULT ) +/* Generated */ optInSlowD_Period = 3; +/* Generated */ else if( ((int)optInSlowD_Period < 1) || ((int)optInSlowD_Period > 100000) ) +/* Generated */ return -1; +/* Generated */ +/* Generated */ #if !defined(_MANAGED) && !defined(_JAVA) +/* Generated */ if( (int)optInSlowD_MAType == TA_INTEGER_DEFAULT ) +/* Generated */ optInSlowD_MAType = (TA_MAType)0; +/* Generated */ else if( ((int)optInSlowD_MAType < 0) || ((int)optInSlowD_MAType > 8) ) +/* Generated */ return -1; +/* Generated */ +/* Generated */ #endif /* !defined(_MANAGED) && !defined(_JAVA)*/ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + + /* Account for the initial data needed for Fast-K. */ + retValue = (optInFastK_Period - 1); + + /* Add the smoothing being done for %K slow */ + retValue += LOOKBACK_CALL(MA)( optInSlowK_Period, optInSlowK_MAType ); + + /* Add the smoothing being done for %D slow. */ + retValue += LOOKBACK_CALL(MA)( optInSlowD_Period, optInSlowD_MAType ); + + return retValue; +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_STOCH - Stochastic + * + * Input = High, Low, Close + * Output = double, double + * + * Optional Parameters + * ------------------- + * optInFastK_Period:(From 1 to 100000) + * Time period for building the Fast-K line + * + * optInSlowK_Period:(From 1 to 100000) + * Smoothing for making the Slow-K line. Usually set to 3 + * + * optInSlowK_MAType: + * Type of Moving Average for Slow-K + * + * optInSlowD_Period:(From 1 to 100000) + * Smoothing for making the Slow-D line + * + * optInSlowD_MAType: + * Type of Moving Average for Slow-D + * + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::Stoch( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inHigh, +/* Generated */ SubArray^ inLow, +/* Generated */ SubArray^ inClose, +/* Generated */ int optInFastK_Period, /* From 1 to 100000 */ +/* Generated */ int optInSlowK_Period, /* From 1 to 100000 */ +/* Generated */ MAType optInSlowK_MAType, +/* Generated */ int optInSlowD_Period, /* From 1 to 100000 */ +/* Generated */ MAType optInSlowD_MAType, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outSlowK, +/* Generated */ cli::array^ outSlowD ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::Stoch( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ int optInFastK_Period, /* From 1 to 100000 */ +/* Generated */ int optInSlowK_Period, /* From 1 to 100000 */ +/* Generated */ MAType optInSlowK_MAType, +/* Generated */ int optInSlowD_Period, /* From 1 to 100000 */ +/* Generated */ MAType optInSlowD_MAType, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outSlowK, +/* Generated */ cli::array^ outSlowD ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode stoch( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inHigh[], +/* Generated */ double inLow[], +/* Generated */ double inClose[], +/* Generated */ int optInFastK_Period, /* From 1 to 100000 */ +/* Generated */ int optInSlowK_Period, /* From 1 to 100000 */ +/* Generated */ MAType optInSlowK_MAType, +/* Generated */ int optInSlowD_Period, /* From 1 to 100000 */ +/* Generated */ MAType optInSlowD_MAType, +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outSlowK[], +/* Generated */ double outSlowD[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_STOCH( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inHigh[], +/* Generated */ const double inLow[], +/* Generated */ const double inClose[], +/* Generated */ int optInFastK_Period, /* From 1 to 100000 */ +/* Generated */ int optInSlowK_Period, /* From 1 to 100000 */ +/* Generated */ TA_MAType optInSlowK_MAType, +/* Generated */ int optInSlowD_Period, /* From 1 to 100000 */ +/* Generated */ TA_MAType optInSlowD_MAType, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outSlowK[], +/* Generated */ double outSlowD[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* Insert local variables here. */ + ENUM_DECLARATION(RetCode) retCode; + double lowest, highest, tmp, diff; + ARRAY_REF( tempBuffer ); + int outIdx, lowestIdx, highestIdx; + int lookbackTotal, lookbackK, lookbackKSlow, lookbackDSlow; + int trailingIdx, today, i; + #if !defined( _MANAGED ) && !defined(USE_SINGLE_PRECISION_INPUT) &&!defined(_JAVA) + int bufferIsAllocated; + #endif + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ /* Verify required price component. */ +/* Generated */ if(!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ /* min/max are checked for optInFastK_Period. */ +/* Generated */ if( (int)optInFastK_Period == TA_INTEGER_DEFAULT ) +/* Generated */ optInFastK_Period = 5; +/* Generated */ else if( ((int)optInFastK_Period < 1) || ((int)optInFastK_Period > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ /* min/max are checked for optInSlowK_Period. */ +/* Generated */ if( (int)optInSlowK_Period == TA_INTEGER_DEFAULT ) +/* Generated */ optInSlowK_Period = 3; +/* Generated */ else if( ((int)optInSlowK_Period < 1) || ((int)optInSlowK_Period > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #if !defined(_MANAGED) && !defined(_JAVA) +/* Generated */ if( (int)optInSlowK_MAType == TA_INTEGER_DEFAULT ) +/* Generated */ optInSlowK_MAType = (TA_MAType)0; +/* Generated */ else if( ((int)optInSlowK_MAType < 0) || ((int)optInSlowK_MAType > 8) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_MANAGED) && !defined(_JAVA)*/ +/* Generated */ /* min/max are checked for optInSlowD_Period. */ +/* Generated */ if( (int)optInSlowD_Period == TA_INTEGER_DEFAULT ) +/* Generated */ optInSlowD_Period = 3; +/* Generated */ else if( ((int)optInSlowD_Period < 1) || ((int)optInSlowD_Period > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #if !defined(_MANAGED) && !defined(_JAVA) +/* Generated */ if( (int)optInSlowD_MAType == TA_INTEGER_DEFAULT ) +/* Generated */ optInSlowD_MAType = (TA_MAType)0; +/* Generated */ else if( ((int)optInSlowD_MAType < 0) || ((int)optInSlowD_MAType > 8) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_MANAGED) && !defined(_JAVA)*/ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outSlowK ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ if( !outSlowD ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Insert TA function code here. */ + + /* With stochastic, there is a total of 4 different lines that + * are defined: FASTK, FASTD, SLOWK and SLOWD. + * + * The D is the signal line usually drawn over its + * corresponding K function. + * + * (Today's Close - LowestLow) + * FASTK(Kperiod) = --------------------------- * 100 + * (HighestHigh - LowestLow) + * + * FASTD(FastDperiod, MA type) = MA Smoothed FASTK over FastDperiod + * + * SLOWK(SlowKperiod, MA type) = MA Smoothed FASTK over SlowKperiod + * + * SLOWD(SlowDperiod, MA Type) = MA Smoothed SLOWK over SlowDperiod + * + * The HighestHigh and LowestLow are the extreme values among the + * last 'Kperiod'. + * + * SLOWK and FASTD are equivalent when using the same period. + * + * The following shows how these four lines are made available in TA-LIB: + * + * TA_STOCH : Returns the SLOWK and SLOWD + * TA_STOCHF : Returns the FASTK and FASTD + * + * The TA_STOCH function correspond to the more widely implemented version + * found in many software/charting package. The TA_STOCHF is more rarely + * used because its higher volatility cause often whipsaws. + */ + + /* Identify the lookback needed. */ + lookbackK = optInFastK_Period-1; + lookbackKSlow = LOOKBACK_CALL(MA)( optInSlowK_Period, optInSlowK_MAType ); + lookbackDSlow = LOOKBACK_CALL(MA)( optInSlowD_Period, optInSlowD_MAType ); + lookbackTotal = lookbackK + lookbackDSlow + lookbackKSlow; + + /* Move up the start index if there is not + * enough initial data. + */ + if( startIdx < lookbackTotal ) + startIdx = lookbackTotal; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) + { + /* Succeed... but no data in the output. */ + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + + /* Do the K calculation: + * + * Kt = 100 x ((Ct-Lt)/(Ht-Lt)) + * + * Kt is today stochastic + * Ct is today closing price. + * Lt is the lowest price of the last K Period (including today) + * Ht is the highest price of the last K Period (including today) + */ + + /* Proceed with the calculation for the requested range. + * Note that this algorithm allows the input and + * output to be the same buffer. + */ + outIdx = 0; + + /* Calculate just enough K for ending up with the caller + * requested range. (The range of k must consider all + * the lookback involve with the smoothing). + */ + trailingIdx = startIdx-lookbackTotal; + today = trailingIdx+lookbackK; + lowestIdx = highestIdx = -1; + diff = highest = lowest = 0.0; + + /* Allocate a temporary buffer large enough to + * store the K. + * + * If the output is the same as the input, great + * we just save ourself one memory allocation. + */ + #if !defined( _MANAGED ) && !defined(USE_SINGLE_PRECISION_INPUT) && !defined( _JAVA ) + bufferIsAllocated = 0; + #endif + + #if defined(USE_SINGLE_PRECISION_INPUT) || defined( USE_SUBARRAY ) + /* Always alloc, since output is of different type and + * its allocated size is not guarantee to be as large as + * the input. + */ + ARRAY_ALLOC( tempBuffer, endIdx-today+1 ); + #else + if( (outSlowK == inHigh) || + (outSlowK == inLow) || + (outSlowK == inClose) ) + { + tempBuffer = outSlowK; + } + else if( (outSlowD == inHigh) || + (outSlowD == inLow) || + (outSlowD == inClose) ) + { + tempBuffer = outSlowD; + } + else + { + #if !defined( _MANAGED ) && !defined(_JAVA) + bufferIsAllocated = 1; + #endif + ARRAY_ALLOC( tempBuffer, endIdx-today+1 ); + } + #endif + + /* Do the K calculation */ + while( today <= endIdx ) + { + /* Set the lowest low */ + tmp = inLow[today]; + if( lowestIdx < trailingIdx ) + { + lowestIdx = trailingIdx; + lowest = inLow[lowestIdx]; + i = lowestIdx; + while( ++i<=today ) + { + tmp = inLow[i]; + if( tmp < lowest ) + { + lowestIdx = i; + lowest = tmp; + } + } + diff = (highest - lowest)/100.0; + } + else if( tmp <= lowest ) + { + lowestIdx = today; + lowest = tmp; + diff = (highest - lowest)/100.0; + } + + /* Set the highest high */ + tmp = inHigh[today]; + if( highestIdx < trailingIdx ) + { + highestIdx = trailingIdx; + highest = inHigh[highestIdx]; + i = highestIdx; + while( ++i<=today ) + { + tmp = inHigh[i]; + if( tmp > highest ) + { + highestIdx = i; + highest = tmp; + } + } + diff = (highest - lowest)/100.0; + } + else if( tmp >= highest ) + { + highestIdx = today; + highest = tmp; + diff = (highest - lowest)/100.0; + } + + /* Calculate stochastic. */ + if( diff != 0.0 ) + tempBuffer[outIdx++] = (inClose[today]-lowest)/diff; + else + tempBuffer[outIdx++] = 0.0; + + trailingIdx++; + today++; + } + + /* Un-smoothed K calculation completed. This K calculation is not returned + * to the caller. It is always smoothed and then return. + * Some documentation will refer to the smoothed version as being + * "K-Slow", but often this end up to be shorten to "K". + */ + retCode = FUNCTION_CALL_DOUBLE(MA)( 0, outIdx-1, + tempBuffer, optInSlowK_Period, + optInSlowK_MAType, + outBegIdx, outNBElement, tempBuffer ); + + + if( (retCode != ENUM_VALUE(RetCode,TA_SUCCESS,Success) ) || ((int)VALUE_HANDLE_DEREF(outNBElement) == 0) ) + { + #if defined(USE_SINGLE_PRECISION_INPUT) + ARRAY_FREE( tempBuffer ); + #else + ARRAY_FREE_COND( bufferIsAllocated, tempBuffer ); + #endif + /* Something wrong happen? No further data? */ + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return retCode; + } + + /* Calculate the %D which is simply a moving average of + * the already smoothed %K. + */ + retCode = FUNCTION_CALL_DOUBLE(MA)( 0, (int)VALUE_HANDLE_DEREF(outNBElement)-1, + tempBuffer, optInSlowD_Period, + optInSlowD_MAType, + outBegIdx, outNBElement, outSlowD ); + + /* Copy tempBuffer into the caller buffer. + * (Calculation could not be done directly in the + * caller buffer because more input data then the + * requested range was needed for doing %D). + */ + ARRAY_MEMMOVE( outSlowK, 0, tempBuffer,lookbackDSlow,(int)VALUE_HANDLE_DEREF(outNBElement)); + + /* Don't need K anymore, free it if it was allocated here. */ + #if defined(USE_SINGLE_PRECISION_INPUT) + ARRAY_FREE( tempBuffer ); + #else + ARRAY_FREE_COND( bufferIsAllocated, tempBuffer ); + #endif + + if( retCode != ENUM_VALUE(RetCode,TA_SUCCESS,Success) ) + { + /* Something wrong happen while processing %D? */ + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return retCode; + } + + /* Note: Keep the outBegIdx relative to the + * caller input before returning. + */ + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::Stoch( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ int optInFastK_Period, /* From 1 to 100000 */ +/* Generated */ int optInSlowK_Period, /* From 1 to 100000 */ +/* Generated */ MAType optInSlowK_MAType, +/* Generated */ int optInSlowD_Period, /* From 1 to 100000 */ +/* Generated */ MAType optInSlowD_MAType, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outSlowK, +/* Generated */ cli::array^ outSlowD ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode stoch( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inHigh[], +/* Generated */ float inLow[], +/* Generated */ float inClose[], +/* Generated */ int optInFastK_Period, /* From 1 to 100000 */ +/* Generated */ int optInSlowK_Period, /* From 1 to 100000 */ +/* Generated */ MAType optInSlowK_MAType, +/* Generated */ int optInSlowD_Period, /* From 1 to 100000 */ +/* Generated */ MAType optInSlowD_MAType, +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outSlowK[], +/* Generated */ double outSlowD[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_STOCH( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inHigh[], +/* Generated */ const float inLow[], +/* Generated */ const float inClose[], +/* Generated */ int optInFastK_Period, /* From 1 to 100000 */ +/* Generated */ int optInSlowK_Period, /* From 1 to 100000 */ +/* Generated */ TA_MAType optInSlowK_MAType, +/* Generated */ int optInSlowD_Period, /* From 1 to 100000 */ +/* Generated */ TA_MAType optInSlowD_MAType, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outSlowK[], +/* Generated */ double outSlowD[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ ENUM_DECLARATION(RetCode) retCode; +/* Generated */ double lowest, highest, tmp, diff; +/* Generated */ ARRAY_REF( tempBuffer ); +/* Generated */ int outIdx, lowestIdx, highestIdx; +/* Generated */ int lookbackTotal, lookbackK, lookbackKSlow, lookbackDSlow; +/* Generated */ int trailingIdx, today, i; +/* Generated */ #if !defined( _MANAGED ) && !defined(USE_SINGLE_PRECISION_INPUT) &&!defined(_JAVA) +/* Generated */ int bufferIsAllocated; +/* Generated */ #endif +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if(!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ if( (int)optInFastK_Period == TA_INTEGER_DEFAULT ) +/* Generated */ optInFastK_Period = 5; +/* Generated */ else if( ((int)optInFastK_Period < 1) || ((int)optInFastK_Period > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ if( (int)optInSlowK_Period == TA_INTEGER_DEFAULT ) +/* Generated */ optInSlowK_Period = 3; +/* Generated */ else if( ((int)optInSlowK_Period < 1) || ((int)optInSlowK_Period > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #if !defined(_MANAGED) && !defined(_JAVA) +/* Generated */ if( (int)optInSlowK_MAType == TA_INTEGER_DEFAULT ) +/* Generated */ optInSlowK_MAType = (TA_MAType)0; +/* Generated */ else if( ((int)optInSlowK_MAType < 0) || ((int)optInSlowK_MAType > 8) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ if( (int)optInSlowD_Period == TA_INTEGER_DEFAULT ) +/* Generated */ optInSlowD_Period = 3; +/* Generated */ else if( ((int)optInSlowD_Period < 1) || ((int)optInSlowD_Period > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #if !defined(_MANAGED) && !defined(_JAVA) +/* Generated */ if( (int)optInSlowD_MAType == TA_INTEGER_DEFAULT ) +/* Generated */ optInSlowD_MAType = (TA_MAType)0; +/* Generated */ else if( ((int)optInSlowD_MAType < 0) || ((int)optInSlowD_MAType > 8) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outSlowK ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ if( !outSlowD ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ lookbackK = optInFastK_Period-1; +/* Generated */ lookbackKSlow = LOOKBACK_CALL(MA)( optInSlowK_Period, optInSlowK_MAType ); +/* Generated */ lookbackDSlow = LOOKBACK_CALL(MA)( optInSlowD_Period, optInSlowD_MAType ); +/* Generated */ lookbackTotal = lookbackK + lookbackDSlow + lookbackKSlow; +/* Generated */ if( startIdx < lookbackTotal ) +/* Generated */ startIdx = lookbackTotal; +/* Generated */ if( startIdx > endIdx ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ outIdx = 0; +/* Generated */ trailingIdx = startIdx-lookbackTotal; +/* Generated */ today = trailingIdx+lookbackK; +/* Generated */ lowestIdx = highestIdx = -1; +/* Generated */ diff = highest = lowest = 0.0; +/* Generated */ #if !defined( _MANAGED ) && !defined(USE_SINGLE_PRECISION_INPUT) && !defined( _JAVA ) +/* Generated */ bufferIsAllocated = 0; +/* Generated */ #endif +/* Generated */ #if defined(USE_SINGLE_PRECISION_INPUT) || defined( USE_SUBARRAY ) +/* Generated */ ARRAY_ALLOC( tempBuffer, endIdx-today+1 ); +/* Generated */ #else +/* Generated */ if( (outSlowK == inHigh) || +/* Generated */ (outSlowK == inLow) || +/* Generated */ (outSlowK == inClose) ) +/* Generated */ { +/* Generated */ tempBuffer = outSlowK; +/* Generated */ } +/* Generated */ else if( (outSlowD == inHigh) || +/* Generated */ (outSlowD == inLow) || +/* Generated */ (outSlowD == inClose) ) +/* Generated */ { +/* Generated */ tempBuffer = outSlowD; +/* Generated */ } +/* Generated */ else +/* Generated */ { +/* Generated */ #if !defined( _MANAGED ) && !defined(_JAVA) +/* Generated */ bufferIsAllocated = 1; +/* Generated */ #endif +/* Generated */ ARRAY_ALLOC( tempBuffer, endIdx-today+1 ); +/* Generated */ } +/* Generated */ #endif +/* Generated */ while( today <= endIdx ) +/* Generated */ { +/* Generated */ tmp = inLow[today]; +/* Generated */ if( lowestIdx < trailingIdx ) +/* Generated */ { +/* Generated */ lowestIdx = trailingIdx; +/* Generated */ lowest = inLow[lowestIdx]; +/* Generated */ i = lowestIdx; +/* Generated */ while( ++i<=today ) +/* Generated */ { +/* Generated */ tmp = inLow[i]; +/* Generated */ if( tmp < lowest ) +/* Generated */ { +/* Generated */ lowestIdx = i; +/* Generated */ lowest = tmp; +/* Generated */ } +/* Generated */ } +/* Generated */ diff = (highest - lowest)/100.0; +/* Generated */ } +/* Generated */ else if( tmp <= lowest ) +/* Generated */ { +/* Generated */ lowestIdx = today; +/* Generated */ lowest = tmp; +/* Generated */ diff = (highest - lowest)/100.0; +/* Generated */ } +/* Generated */ tmp = inHigh[today]; +/* Generated */ if( highestIdx < trailingIdx ) +/* Generated */ { +/* Generated */ highestIdx = trailingIdx; +/* Generated */ highest = inHigh[highestIdx]; +/* Generated */ i = highestIdx; +/* Generated */ while( ++i<=today ) +/* Generated */ { +/* Generated */ tmp = inHigh[i]; +/* Generated */ if( tmp > highest ) +/* Generated */ { +/* Generated */ highestIdx = i; +/* Generated */ highest = tmp; +/* Generated */ } +/* Generated */ } +/* Generated */ diff = (highest - lowest)/100.0; +/* Generated */ } +/* Generated */ else if( tmp >= highest ) +/* Generated */ { +/* Generated */ highestIdx = today; +/* Generated */ highest = tmp; +/* Generated */ diff = (highest - lowest)/100.0; +/* Generated */ } +/* Generated */ if( diff != 0.0 ) +/* Generated */ tempBuffer[outIdx++] = (inClose[today]-lowest)/diff; +/* Generated */ else +/* Generated */ tempBuffer[outIdx++] = 0.0; +/* Generated */ trailingIdx++; +/* Generated */ today++; +/* Generated */ } +/* Generated */ retCode = FUNCTION_CALL_DOUBLE(MA)( 0, outIdx-1, +/* Generated */ tempBuffer, optInSlowK_Period, +/* Generated */ optInSlowK_MAType, +/* Generated */ outBegIdx, outNBElement, tempBuffer ); +/* Generated */ if( (retCode != ENUM_VALUE(RetCode,TA_SUCCESS,Success) ) || ((int)VALUE_HANDLE_DEREF(outNBElement) == 0) ) +/* Generated */ { +/* Generated */ #if defined(USE_SINGLE_PRECISION_INPUT) +/* Generated */ ARRAY_FREE( tempBuffer ); +/* Generated */ #else +/* Generated */ ARRAY_FREE_COND( bufferIsAllocated, tempBuffer ); +/* Generated */ #endif +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return retCode; +/* Generated */ } +/* Generated */ retCode = FUNCTION_CALL_DOUBLE(MA)( 0, (int)VALUE_HANDLE_DEREF(outNBElement)-1, +/* Generated */ tempBuffer, optInSlowD_Period, +/* Generated */ optInSlowD_MAType, +/* Generated */ outBegIdx, outNBElement, outSlowD ); +/* Generated */ ARRAY_MEMMOVE( outSlowK, 0, tempBuffer,lookbackDSlow,(int)VALUE_HANDLE_DEREF(outNBElement)); +/* Generated */ #if defined(USE_SINGLE_PRECISION_INPUT) +/* Generated */ ARRAY_FREE( tempBuffer ); +/* Generated */ #else +/* Generated */ ARRAY_FREE_COND( bufferIsAllocated, tempBuffer ); +/* Generated */ #endif +/* Generated */ if( retCode != ENUM_VALUE(RetCode,TA_SUCCESS,Success) ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return retCode; +/* Generated */ } +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_STOCHF.c b/src/ta_func/ta_STOCHF.c new file mode 100644 index 000000000..60ffeacda --- /dev/null +++ b/src/ta_func/ta_STOCHF.c @@ -0,0 +1,722 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * MF Mario Fortier + * EKO echo999@ifrance.com + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 010802 MF Template creation. + * 051103 EKO Found bug and fix related to outFastD. + * 052603 MF Adapt code to compile with .NET Managed C++ + * + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::StochFLookback( int optInFastK_Period, /* From 1 to 100000 */ +/* Generated */ int optInFastD_Period, /* From 1 to 100000 */ +/* Generated */ MAType optInFastD_MAType ) /* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int stochFLookback( int optInFastK_Period, /* From 1 to 100000 */ +/* Generated */ int optInFastD_Period, /* From 1 to 100000 */ +/* Generated */ MAType optInFastD_MAType ) /* Generated */ +/* Generated */ #else +/* Generated */ int TA_STOCHF_Lookback( int optInFastK_Period, /* From 1 to 100000 */ +/* Generated */ int optInFastD_Period, /* From 1 to 100000 */ +/* Generated */ TA_MAType optInFastD_MAType ) /* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + int retValue; + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ /* min/max are checked for optInFastK_Period. */ +/* Generated */ if( (int)optInFastK_Period == TA_INTEGER_DEFAULT ) +/* Generated */ optInFastK_Period = 5; +/* Generated */ else if( ((int)optInFastK_Period < 1) || ((int)optInFastK_Period > 100000) ) +/* Generated */ return -1; +/* Generated */ +/* Generated */ /* min/max are checked for optInFastD_Period. */ +/* Generated */ if( (int)optInFastD_Period == TA_INTEGER_DEFAULT ) +/* Generated */ optInFastD_Period = 3; +/* Generated */ else if( ((int)optInFastD_Period < 1) || ((int)optInFastD_Period > 100000) ) +/* Generated */ return -1; +/* Generated */ +/* Generated */ #if !defined(_MANAGED) && !defined(_JAVA) +/* Generated */ if( (int)optInFastD_MAType == TA_INTEGER_DEFAULT ) +/* Generated */ optInFastD_MAType = (TA_MAType)0; +/* Generated */ else if( ((int)optInFastD_MAType < 0) || ((int)optInFastD_MAType > 8) ) +/* Generated */ return -1; +/* Generated */ +/* Generated */ #endif /* !defined(_MANAGED) && !defined(_JAVA)*/ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + + /* Account for the initial data needed for Fast-K. */ + retValue = (optInFastK_Period - 1); + + /* Add the smoothing being done for Fast-D */ + retValue += LOOKBACK_CALL(MA)( optInFastD_Period, optInFastD_MAType ); + + return retValue; +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_STOCHF - Stochastic Fast + * + * Input = High, Low, Close + * Output = double, double + * + * Optional Parameters + * ------------------- + * optInFastK_Period:(From 1 to 100000) + * Time period for building the Fast-K line + * + * optInFastD_Period:(From 1 to 100000) + * Smoothing for making the Fast-D line. Usually set to 3 + * + * optInFastD_MAType: + * Type of Moving Average for Fast-D + * + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::StochF( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inHigh, +/* Generated */ SubArray^ inLow, +/* Generated */ SubArray^ inClose, +/* Generated */ int optInFastK_Period, /* From 1 to 100000 */ +/* Generated */ int optInFastD_Period, /* From 1 to 100000 */ +/* Generated */ MAType optInFastD_MAType, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outFastK, +/* Generated */ cli::array^ outFastD ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::StochF( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ int optInFastK_Period, /* From 1 to 100000 */ +/* Generated */ int optInFastD_Period, /* From 1 to 100000 */ +/* Generated */ MAType optInFastD_MAType, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outFastK, +/* Generated */ cli::array^ outFastD ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode stochF( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inHigh[], +/* Generated */ double inLow[], +/* Generated */ double inClose[], +/* Generated */ int optInFastK_Period, /* From 1 to 100000 */ +/* Generated */ int optInFastD_Period, /* From 1 to 100000 */ +/* Generated */ MAType optInFastD_MAType, +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outFastK[], +/* Generated */ double outFastD[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_STOCHF( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inHigh[], +/* Generated */ const double inLow[], +/* Generated */ const double inClose[], +/* Generated */ int optInFastK_Period, /* From 1 to 100000 */ +/* Generated */ int optInFastD_Period, /* From 1 to 100000 */ +/* Generated */ TA_MAType optInFastD_MAType, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outFastK[], +/* Generated */ double outFastD[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + ENUM_DECLARATION(RetCode) retCode; + double lowest, highest, tmp, diff; + ARRAY_REF( tempBuffer ); + int outIdx, lowestIdx, highestIdx; + int lookbackTotal, lookbackK, lookbackFastD; + int trailingIdx, today, i; + + #if !defined( _MANAGED ) && !defined(USE_SINGLE_PRECISION_INPUT) && !defined( _JAVA ) + int bufferIsAllocated; + #endif + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ /* Verify required price component. */ +/* Generated */ if(!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ /* min/max are checked for optInFastK_Period. */ +/* Generated */ if( (int)optInFastK_Period == TA_INTEGER_DEFAULT ) +/* Generated */ optInFastK_Period = 5; +/* Generated */ else if( ((int)optInFastK_Period < 1) || ((int)optInFastK_Period > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ /* min/max are checked for optInFastD_Period. */ +/* Generated */ if( (int)optInFastD_Period == TA_INTEGER_DEFAULT ) +/* Generated */ optInFastD_Period = 3; +/* Generated */ else if( ((int)optInFastD_Period < 1) || ((int)optInFastD_Period > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #if !defined(_MANAGED) && !defined(_JAVA) +/* Generated */ if( (int)optInFastD_MAType == TA_INTEGER_DEFAULT ) +/* Generated */ optInFastD_MAType = (TA_MAType)0; +/* Generated */ else if( ((int)optInFastD_MAType < 0) || ((int)optInFastD_MAType > 8) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_MANAGED) && !defined(_JAVA)*/ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outFastK ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ if( !outFastD ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Insert TA function code here. */ + + /* With stochastic, there is a total of 4 different lines that + * are defined: FASTK, FASTD, SLOWK and SLOWD. + * + * The D is the signal line usually drawn over its + * corresponding K function. + * + * (Today's Close - LowestLow) + * FASTK(Kperiod) = --------------------------- * 100 + * (HighestHigh - LowestLow) + * + * FASTD(FastDperiod, MA type) = MA Smoothed FASTK over FastDperiod + * + * SLOWK(SlowKperiod, MA type) = MA Smoothed FASTK over SlowKperiod + * + * SLOWD(SlowDperiod, MA Type) = MA Smoothed SLOWK over SlowDperiod + * + * The HighestHigh and LowestLow are the extreme values among the + * last 'Kperiod'. + * + * SLOWK and FASTD are equivalent when using the same period. + * + * The following shows how these four lines are made available in TA-LIB: + * + * TA_STOCH : Returns the SLOWK and SLOWD + * TA_STOCHF : Returns the FASTK and FASTD + * + * The TA_STOCH function correspond to the more widely implemented version + * found in many software/charting package. The TA_STOCHF is more rarely + * used because its higher volatility cause often whipsaws. + */ + + /* Identify the lookback needed. */ + lookbackK = optInFastK_Period-1; + lookbackFastD = LOOKBACK_CALL(MA)( optInFastD_Period, optInFastD_MAType ); + lookbackTotal = lookbackK + lookbackFastD; + + /* Move up the start index if there is not + * enough initial data. + */ + if( startIdx < lookbackTotal ) + startIdx = lookbackTotal; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) + { + /* Succeed... but no data in the output. */ + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + + /* Do the K calculation: + * + * Kt = 100 x ((Ct-Lt)/(Ht-Lt)) + * + * Kt is today stochastic + * Ct is today closing price. + * Lt is the lowest price of the last K Period (including today) + * Ht is the highest price of the last K Period (including today) + */ + + /* Proceed with the calculation for the requested range. + * Note that this algorithm allows the input and + * output to be the same buffer. + */ + outIdx = 0; + + /* Calculate just enough K for ending up with the caller + * requested range. (The range of k must consider all + * the lookback involve with the smoothing). + */ + trailingIdx = startIdx-lookbackTotal; + today = trailingIdx+lookbackK; + lowestIdx = highestIdx = -1; + diff = highest = lowest = 0.0; + + /* Allocate a temporary buffer large enough to + * store the K. + * + * If the output is the same as the input, great + * we just save ourself one memory allocation. + */ + #if !defined( _MANAGED ) && !defined(USE_SINGLE_PRECISION_INPUT) && !defined( _JAVA ) + bufferIsAllocated = 0; + #endif + + #if defined(USE_SINGLE_PRECISION_INPUT) || defined( USE_SUBARRAY ) + /* Always alloc, since output is of different type and + * its allocated size is not guarantee to be as large as + * the input. + */ + ARRAY_ALLOC( tempBuffer, endIdx-today+1 ); + #else + if( (outFastK == inHigh) || + (outFastK == inLow) || + (outFastK == inClose) ) + { + tempBuffer = outFastK; + } + else if( (outFastD == inHigh) || + (outFastD == inLow) || + (outFastD == inClose) ) + { + tempBuffer = outFastD; + } + else + { + #if !defined( _MANAGED ) && !defined( _JAVA ) + bufferIsAllocated = 1; + #endif + ARRAY_ALLOC(tempBuffer, endIdx-today+1 ); + } + #endif + + /* Do the K calculation */ + while( today <= endIdx ) + { + /* Set the lowest low */ + tmp = inLow[today]; + if( lowestIdx < trailingIdx ) + { + lowestIdx = trailingIdx; + lowest = inLow[lowestIdx]; + i = lowestIdx; + while( ++i<=today ) + { + tmp = inLow[i]; + if( tmp < lowest ) + { + lowestIdx = i; + lowest = tmp; + } + } + diff = (highest - lowest)/100.0; + } + else if( tmp <= lowest ) + { + lowestIdx = today; + lowest = tmp; + diff = (highest - lowest)/100.0; + } + + /* Set the highest high */ + tmp = inHigh[today]; + if( highestIdx < trailingIdx ) + { + highestIdx = trailingIdx; + highest = inHigh[highestIdx]; + i = highestIdx; + while( ++i<=today ) + { + tmp = inHigh[i]; + if( tmp > highest ) + { + highestIdx = i; + highest = tmp; + } + } + diff = (highest - lowest)/100.0; + } + else if( tmp >= highest ) + { + highestIdx = today; + highest = tmp; + diff = (highest - lowest)/100.0; + } + + /* Calculate stochastic. */ + if( diff != 0.0 ) + tempBuffer[outIdx++] = (inClose[today]-lowest)/diff; + else + tempBuffer[outIdx++] = 0.0; + + trailingIdx++; + today++; + } + + /* Fast-K calculation completed. This K calculation is returned + * to the caller. It is smoothed to become Fast-D. + */ + retCode = FUNCTION_CALL_DOUBLE(MA)( 0, outIdx-1, + tempBuffer, optInFastD_Period, + optInFastD_MAType, + outBegIdx, outNBElement, outFastD ); + + + if( (retCode != ENUM_VALUE(RetCode,TA_SUCCESS,Success) ) || ((int)VALUE_HANDLE_DEREF(outNBElement)) == 0 ) + { + #if defined(USE_SINGLE_PRECISION_INPUT) + ARRAY_FREE( tempBuffer ); + #else + ARRAY_FREE_COND( bufferIsAllocated, tempBuffer ); + #endif + /* Something wrong happen? No further data? */ + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return retCode; + } + + /* Copy tempBuffer into the caller buffer. + * (Calculation could not be done directly in the + * caller buffer because more input data then the + * requested range was needed for doing %D). + */ + ARRAY_MEMMOVE( outFastK, 0, tempBuffer, lookbackFastD, (int)VALUE_HANDLE_DEREF(outNBElement) ); + + /* Don't need K anymore, free it if it was allocated here. */ + #if defined(USE_SINGLE_PRECISION_INPUT) + ARRAY_FREE( tempBuffer ); + #else + ARRAY_FREE_COND( bufferIsAllocated, tempBuffer ); + #endif + + if( retCode != ENUM_VALUE(RetCode,TA_SUCCESS,Success) ) + { + /* Something wrong happen while processing %D? */ + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return retCode; + } + + /* Note: Keep the outBegIdx relative to the + * caller input before returning. + */ + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::StochF( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ int optInFastK_Period, /* From 1 to 100000 */ +/* Generated */ int optInFastD_Period, /* From 1 to 100000 */ +/* Generated */ MAType optInFastD_MAType, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outFastK, +/* Generated */ cli::array^ outFastD ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode stochF( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inHigh[], +/* Generated */ float inLow[], +/* Generated */ float inClose[], +/* Generated */ int optInFastK_Period, /* From 1 to 100000 */ +/* Generated */ int optInFastD_Period, /* From 1 to 100000 */ +/* Generated */ MAType optInFastD_MAType, +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outFastK[], +/* Generated */ double outFastD[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_STOCHF( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inHigh[], +/* Generated */ const float inLow[], +/* Generated */ const float inClose[], +/* Generated */ int optInFastK_Period, /* From 1 to 100000 */ +/* Generated */ int optInFastD_Period, /* From 1 to 100000 */ +/* Generated */ TA_MAType optInFastD_MAType, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outFastK[], +/* Generated */ double outFastD[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ ENUM_DECLARATION(RetCode) retCode; +/* Generated */ double lowest, highest, tmp, diff; +/* Generated */ ARRAY_REF( tempBuffer ); +/* Generated */ int outIdx, lowestIdx, highestIdx; +/* Generated */ int lookbackTotal, lookbackK, lookbackFastD; +/* Generated */ int trailingIdx, today, i; +/* Generated */ #if !defined( _MANAGED ) && !defined(USE_SINGLE_PRECISION_INPUT) && !defined( _JAVA ) +/* Generated */ int bufferIsAllocated; +/* Generated */ #endif +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if(!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ if( (int)optInFastK_Period == TA_INTEGER_DEFAULT ) +/* Generated */ optInFastK_Period = 5; +/* Generated */ else if( ((int)optInFastK_Period < 1) || ((int)optInFastK_Period > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ if( (int)optInFastD_Period == TA_INTEGER_DEFAULT ) +/* Generated */ optInFastD_Period = 3; +/* Generated */ else if( ((int)optInFastD_Period < 1) || ((int)optInFastD_Period > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #if !defined(_MANAGED) && !defined(_JAVA) +/* Generated */ if( (int)optInFastD_MAType == TA_INTEGER_DEFAULT ) +/* Generated */ optInFastD_MAType = (TA_MAType)0; +/* Generated */ else if( ((int)optInFastD_MAType < 0) || ((int)optInFastD_MAType > 8) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outFastK ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ if( !outFastD ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ lookbackK = optInFastK_Period-1; +/* Generated */ lookbackFastD = LOOKBACK_CALL(MA)( optInFastD_Period, optInFastD_MAType ); +/* Generated */ lookbackTotal = lookbackK + lookbackFastD; +/* Generated */ if( startIdx < lookbackTotal ) +/* Generated */ startIdx = lookbackTotal; +/* Generated */ if( startIdx > endIdx ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ outIdx = 0; +/* Generated */ trailingIdx = startIdx-lookbackTotal; +/* Generated */ today = trailingIdx+lookbackK; +/* Generated */ lowestIdx = highestIdx = -1; +/* Generated */ diff = highest = lowest = 0.0; +/* Generated */ #if !defined( _MANAGED ) && !defined(USE_SINGLE_PRECISION_INPUT) && !defined( _JAVA ) +/* Generated */ bufferIsAllocated = 0; +/* Generated */ #endif +/* Generated */ #if defined(USE_SINGLE_PRECISION_INPUT) || defined( USE_SUBARRAY ) +/* Generated */ ARRAY_ALLOC( tempBuffer, endIdx-today+1 ); +/* Generated */ #else +/* Generated */ if( (outFastK == inHigh) || +/* Generated */ (outFastK == inLow) || +/* Generated */ (outFastK == inClose) ) +/* Generated */ { +/* Generated */ tempBuffer = outFastK; +/* Generated */ } +/* Generated */ else if( (outFastD == inHigh) || +/* Generated */ (outFastD == inLow) || +/* Generated */ (outFastD == inClose) ) +/* Generated */ { +/* Generated */ tempBuffer = outFastD; +/* Generated */ } +/* Generated */ else +/* Generated */ { +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ bufferIsAllocated = 1; +/* Generated */ #endif +/* Generated */ ARRAY_ALLOC(tempBuffer, endIdx-today+1 ); +/* Generated */ } +/* Generated */ #endif +/* Generated */ while( today <= endIdx ) +/* Generated */ { +/* Generated */ tmp = inLow[today]; +/* Generated */ if( lowestIdx < trailingIdx ) +/* Generated */ { +/* Generated */ lowestIdx = trailingIdx; +/* Generated */ lowest = inLow[lowestIdx]; +/* Generated */ i = lowestIdx; +/* Generated */ while( ++i<=today ) +/* Generated */ { +/* Generated */ tmp = inLow[i]; +/* Generated */ if( tmp < lowest ) +/* Generated */ { +/* Generated */ lowestIdx = i; +/* Generated */ lowest = tmp; +/* Generated */ } +/* Generated */ } +/* Generated */ diff = (highest - lowest)/100.0; +/* Generated */ } +/* Generated */ else if( tmp <= lowest ) +/* Generated */ { +/* Generated */ lowestIdx = today; +/* Generated */ lowest = tmp; +/* Generated */ diff = (highest - lowest)/100.0; +/* Generated */ } +/* Generated */ tmp = inHigh[today]; +/* Generated */ if( highestIdx < trailingIdx ) +/* Generated */ { +/* Generated */ highestIdx = trailingIdx; +/* Generated */ highest = inHigh[highestIdx]; +/* Generated */ i = highestIdx; +/* Generated */ while( ++i<=today ) +/* Generated */ { +/* Generated */ tmp = inHigh[i]; +/* Generated */ if( tmp > highest ) +/* Generated */ { +/* Generated */ highestIdx = i; +/* Generated */ highest = tmp; +/* Generated */ } +/* Generated */ } +/* Generated */ diff = (highest - lowest)/100.0; +/* Generated */ } +/* Generated */ else if( tmp >= highest ) +/* Generated */ { +/* Generated */ highestIdx = today; +/* Generated */ highest = tmp; +/* Generated */ diff = (highest - lowest)/100.0; +/* Generated */ } +/* Generated */ if( diff != 0.0 ) +/* Generated */ tempBuffer[outIdx++] = (inClose[today]-lowest)/diff; +/* Generated */ else +/* Generated */ tempBuffer[outIdx++] = 0.0; +/* Generated */ trailingIdx++; +/* Generated */ today++; +/* Generated */ } +/* Generated */ retCode = FUNCTION_CALL_DOUBLE(MA)( 0, outIdx-1, +/* Generated */ tempBuffer, optInFastD_Period, +/* Generated */ optInFastD_MAType, +/* Generated */ outBegIdx, outNBElement, outFastD ); +/* Generated */ if( (retCode != ENUM_VALUE(RetCode,TA_SUCCESS,Success) ) || ((int)VALUE_HANDLE_DEREF(outNBElement)) == 0 ) +/* Generated */ { +/* Generated */ #if defined(USE_SINGLE_PRECISION_INPUT) +/* Generated */ ARRAY_FREE( tempBuffer ); +/* Generated */ #else +/* Generated */ ARRAY_FREE_COND( bufferIsAllocated, tempBuffer ); +/* Generated */ #endif +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return retCode; +/* Generated */ } +/* Generated */ ARRAY_MEMMOVE( outFastK, 0, tempBuffer, lookbackFastD, (int)VALUE_HANDLE_DEREF(outNBElement) ); +/* Generated */ #if defined(USE_SINGLE_PRECISION_INPUT) +/* Generated */ ARRAY_FREE( tempBuffer ); +/* Generated */ #else +/* Generated */ ARRAY_FREE_COND( bufferIsAllocated, tempBuffer ); +/* Generated */ #endif +/* Generated */ if( retCode != ENUM_VALUE(RetCode,TA_SUCCESS,Success) ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return retCode; +/* Generated */ } +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_STOCHRSI.c b/src/ta_func/ta_STOCHRSI.c new file mode 100644 index 000000000..bf11cdbef --- /dev/null +++ b/src/ta_func/ta_STOCHRSI.c @@ -0,0 +1,507 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * MF Mario Fortier + * PP Peter Pudaite + * AA Andrew Atkinson + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 120802 MF Template creation. + * 101103 PP Initial creation of code. + * 112603 MF Add independent control to the RSI period. + * 020605 AA Fix #1117656. NULL pointer assignement. + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::StochRsiLookback( int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ int optInFastK_Period, /* From 1 to 100000 */ +/* Generated */ int optInFastD_Period, /* From 1 to 100000 */ +/* Generated */ MAType optInFastD_MAType ) /* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int stochRsiLookback( int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ int optInFastK_Period, /* From 1 to 100000 */ +/* Generated */ int optInFastD_Period, /* From 1 to 100000 */ +/* Generated */ MAType optInFastD_MAType ) /* Generated */ +/* Generated */ #else +/* Generated */ int TA_STOCHRSI_Lookback( int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ int optInFastK_Period, /* From 1 to 100000 */ +/* Generated */ int optInFastD_Period, /* From 1 to 100000 */ +/* Generated */ TA_MAType optInFastD_MAType ) /* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + int retValue; + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ /* min/max are checked for optInTimePeriod. */ +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 14; +/* Generated */ else if( ((int)optInTimePeriod < 2) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return -1; +/* Generated */ +/* Generated */ /* min/max are checked for optInFastK_Period. */ +/* Generated */ if( (int)optInFastK_Period == TA_INTEGER_DEFAULT ) +/* Generated */ optInFastK_Period = 5; +/* Generated */ else if( ((int)optInFastK_Period < 1) || ((int)optInFastK_Period > 100000) ) +/* Generated */ return -1; +/* Generated */ +/* Generated */ /* min/max are checked for optInFastD_Period. */ +/* Generated */ if( (int)optInFastD_Period == TA_INTEGER_DEFAULT ) +/* Generated */ optInFastD_Period = 3; +/* Generated */ else if( ((int)optInFastD_Period < 1) || ((int)optInFastD_Period > 100000) ) +/* Generated */ return -1; +/* Generated */ +/* Generated */ #if !defined(_MANAGED) && !defined(_JAVA) +/* Generated */ if( (int)optInFastD_MAType == TA_INTEGER_DEFAULT ) +/* Generated */ optInFastD_MAType = (TA_MAType)0; +/* Generated */ else if( ((int)optInFastD_MAType < 0) || ((int)optInFastD_MAType > 8) ) +/* Generated */ return -1; +/* Generated */ +/* Generated */ #endif /* !defined(_MANAGED) && !defined(_JAVA)*/ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + retValue = LOOKBACK_CALL(RSI)( optInTimePeriod ) + LOOKBACK_CALL(STOCHF)( optInFastK_Period, optInFastD_Period, optInFastD_MAType ); + + return retValue; +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_STOCHRSI - Stochastic Relative Strength Index + * + * Input = double + * Output = double, double + * + * Optional Parameters + * ------------------- + * optInTimePeriod:(From 2 to 100000) + * Number of period + * + * optInFastK_Period:(From 1 to 100000) + * Time period for building the Fast-K line + * + * optInFastD_Period:(From 1 to 100000) + * Smoothing for making the Fast-D line. Usually set to 3 + * + * optInFastD_MAType: + * Type of Moving Average for Fast-D + * + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::StochRsi( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inReal, +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ int optInFastK_Period, /* From 1 to 100000 */ +/* Generated */ int optInFastD_Period, /* From 1 to 100000 */ +/* Generated */ MAType optInFastD_MAType, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outFastK, +/* Generated */ cli::array^ outFastD ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::StochRsi( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ int optInFastK_Period, /* From 1 to 100000 */ +/* Generated */ int optInFastD_Period, /* From 1 to 100000 */ +/* Generated */ MAType optInFastD_MAType, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outFastK, +/* Generated */ cli::array^ outFastD ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode stochRsi( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inReal[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ int optInFastK_Period, /* From 1 to 100000 */ +/* Generated */ int optInFastD_Period, /* From 1 to 100000 */ +/* Generated */ MAType optInFastD_MAType, +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outFastK[], +/* Generated */ double outFastD[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_STOCHRSI( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inReal[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ int optInFastK_Period, /* From 1 to 100000 */ +/* Generated */ int optInFastD_Period, /* From 1 to 100000 */ +/* Generated */ TA_MAType optInFastD_MAType, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outFastK[], +/* Generated */ double outFastD[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + ARRAY_REF(tempRSIBuffer); + + ENUM_DECLARATION(RetCode) retCode; + int lookbackTotal, lookbackSTOCHF, tempArraySize; + VALUE_HANDLE_INT(outBegIdx1); + VALUE_HANDLE_INT(outBegIdx2); + VALUE_HANDLE_INT(outNbElement1); + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ /* min/max are checked for optInTimePeriod. */ +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 14; +/* Generated */ else if( ((int)optInTimePeriod < 2) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ /* min/max are checked for optInFastK_Period. */ +/* Generated */ if( (int)optInFastK_Period == TA_INTEGER_DEFAULT ) +/* Generated */ optInFastK_Period = 5; +/* Generated */ else if( ((int)optInFastK_Period < 1) || ((int)optInFastK_Period > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ /* min/max are checked for optInFastD_Period. */ +/* Generated */ if( (int)optInFastD_Period == TA_INTEGER_DEFAULT ) +/* Generated */ optInFastD_Period = 3; +/* Generated */ else if( ((int)optInFastD_Period < 1) || ((int)optInFastD_Period > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #if !defined(_MANAGED) && !defined(_JAVA) +/* Generated */ if( (int)optInFastD_MAType == TA_INTEGER_DEFAULT ) +/* Generated */ optInFastD_MAType = (TA_MAType)0; +/* Generated */ else if( ((int)optInFastD_MAType < 0) || ((int)optInFastD_MAType > 8) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_MANAGED) && !defined(_JAVA)*/ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outFastK ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ if( !outFastD ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Insert TA function code here. */ + + /* Stochastic RSI + * + * Reference: "Stochastic RSI and Dynamic Momentum Index" + * by Tushar Chande and Stanley Kroll + * Stock&Commodities V.11:5 (189-199) + * + * The TA-Lib version offer flexibility beyond what is explain + * in the Stock&Commodities article. + * + * To calculate the "Unsmoothed stochastic RSI" with symetry like + * explain in the article, keep the optInTimePeriod and optInFastK_Period + * equal. Example: + * + * unsmoothed stoch RSI 14 : optInTimePeriod = 14 + * optInFastK_Period = 14 + * optInFastD_Period = 'x' + * + * The outFastK is the unsmoothed RSI discuss in the article. + * + * You can set the optInFastD_Period to smooth the RSI. The smooth + * version will be found in outFastD. The outFastK will still contain + * the unsmoothed stoch RSI. If you do not care about the smoothing of + * the StochRSI, just leave optInFastD_Period to 1 and ignore outFastD. + */ + + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + + /* Adjust startIdx to account for the lookback period. */ + lookbackSTOCHF = LOOKBACK_CALL(STOCHF)( optInFastK_Period, optInFastD_Period, optInFastD_MAType ); + lookbackTotal = LOOKBACK_CALL(RSI)( optInTimePeriod ) + lookbackSTOCHF; + + if( startIdx < lookbackTotal ) + startIdx = lookbackTotal; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + + tempArraySize = (endIdx - startIdx) + 1 + lookbackSTOCHF; + + ARRAY_ALLOC( tempRSIBuffer, tempArraySize ); + + retCode = FUNCTION_CALL(RSI)(startIdx-lookbackSTOCHF, + endIdx, + inReal, + optInTimePeriod, + VALUE_HANDLE_OUT(outBegIdx1), + VALUE_HANDLE_OUT(outNbElement1), + tempRSIBuffer); + + if( retCode != ENUM_VALUE(RetCode,TA_SUCCESS,Success) || VALUE_HANDLE_GET(outNbElement1) == 0 ) + { + ARRAY_FREE( tempRSIBuffer ); + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return retCode; + } + + retCode = FUNCTION_CALL_DOUBLE(STOCHF)(0, + tempArraySize-1, + tempRSIBuffer, + tempRSIBuffer, + tempRSIBuffer, + optInFastK_Period, + optInFastD_Period, + optInFastD_MAType, + VALUE_HANDLE_OUT(outBegIdx2), + outNBElement, + outFastK, + outFastD); + + ARRAY_FREE( tempRSIBuffer ); + + if( retCode != ENUM_VALUE(RetCode,TA_SUCCESS,Success) || ((int)VALUE_HANDLE_DEREF(outNBElement)) == 0 ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return retCode; + } + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::StochRsi( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ int optInFastK_Period, /* From 1 to 100000 */ +/* Generated */ int optInFastD_Period, /* From 1 to 100000 */ +/* Generated */ MAType optInFastD_MAType, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outFastK, +/* Generated */ cli::array^ outFastD ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode stochRsi( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inReal[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ int optInFastK_Period, /* From 1 to 100000 */ +/* Generated */ int optInFastD_Period, /* From 1 to 100000 */ +/* Generated */ MAType optInFastD_MAType, +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outFastK[], +/* Generated */ double outFastD[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_STOCHRSI( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inReal[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ int optInFastK_Period, /* From 1 to 100000 */ +/* Generated */ int optInFastD_Period, /* From 1 to 100000 */ +/* Generated */ TA_MAType optInFastD_MAType, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outFastK[], +/* Generated */ double outFastD[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ ARRAY_REF(tempRSIBuffer); +/* Generated */ ENUM_DECLARATION(RetCode) retCode; +/* Generated */ int lookbackTotal, lookbackSTOCHF, tempArraySize; +/* Generated */ VALUE_HANDLE_INT(outBegIdx1); +/* Generated */ VALUE_HANDLE_INT(outBegIdx2); +/* Generated */ VALUE_HANDLE_INT(outNbElement1); +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 14; +/* Generated */ else if( ((int)optInTimePeriod < 2) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ if( (int)optInFastK_Period == TA_INTEGER_DEFAULT ) +/* Generated */ optInFastK_Period = 5; +/* Generated */ else if( ((int)optInFastK_Period < 1) || ((int)optInFastK_Period > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ if( (int)optInFastD_Period == TA_INTEGER_DEFAULT ) +/* Generated */ optInFastD_Period = 3; +/* Generated */ else if( ((int)optInFastD_Period < 1) || ((int)optInFastD_Period > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #if !defined(_MANAGED) && !defined(_JAVA) +/* Generated */ if( (int)optInFastD_MAType == TA_INTEGER_DEFAULT ) +/* Generated */ optInFastD_MAType = (TA_MAType)0; +/* Generated */ else if( ((int)optInFastD_MAType < 0) || ((int)optInFastD_MAType > 8) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outFastK ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ if( !outFastD ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ lookbackSTOCHF = LOOKBACK_CALL(STOCHF)( optInFastK_Period, optInFastD_Period, optInFastD_MAType ); +/* Generated */ lookbackTotal = LOOKBACK_CALL(RSI)( optInTimePeriod ) + lookbackSTOCHF; +/* Generated */ if( startIdx < lookbackTotal ) +/* Generated */ startIdx = lookbackTotal; +/* Generated */ if( startIdx > endIdx ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ tempArraySize = (endIdx - startIdx) + 1 + lookbackSTOCHF; +/* Generated */ ARRAY_ALLOC( tempRSIBuffer, tempArraySize ); +/* Generated */ retCode = FUNCTION_CALL(RSI)(startIdx-lookbackSTOCHF, +/* Generated */ endIdx, +/* Generated */ inReal, +/* Generated */ optInTimePeriod, +/* Generated */ VALUE_HANDLE_OUT(outBegIdx1), +/* Generated */ VALUE_HANDLE_OUT(outNbElement1), +/* Generated */ tempRSIBuffer); +/* Generated */ if( retCode != ENUM_VALUE(RetCode,TA_SUCCESS,Success) || VALUE_HANDLE_GET(outNbElement1) == 0 ) +/* Generated */ { +/* Generated */ ARRAY_FREE( tempRSIBuffer ); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return retCode; +/* Generated */ } +/* Generated */ retCode = FUNCTION_CALL_DOUBLE(STOCHF)(0, +/* Generated */ tempArraySize-1, +/* Generated */ tempRSIBuffer, +/* Generated */ tempRSIBuffer, +/* Generated */ tempRSIBuffer, +/* Generated */ optInFastK_Period, +/* Generated */ optInFastD_Period, +/* Generated */ optInFastD_MAType, +/* Generated */ VALUE_HANDLE_OUT(outBegIdx2), +/* Generated */ outNBElement, +/* Generated */ outFastK, +/* Generated */ outFastD); +/* Generated */ ARRAY_FREE( tempRSIBuffer ); +/* Generated */ if( retCode != ENUM_VALUE(RetCode,TA_SUCCESS,Success) || ((int)VALUE_HANDLE_DEREF(outNBElement)) == 0 ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return retCode; +/* Generated */ } +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_SUB.c b/src/ta_func/ta_SUB.c new file mode 100644 index 000000000..5ae57ff25 --- /dev/null +++ b/src/ta_func/ta_SUB.c @@ -0,0 +1,250 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * MF Mario Fortier + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 090807 MF Initial Version + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::SubLookback( void ) +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int subLookback( ) +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_SUB_Lookback( void ) +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ /* No parameters to validate. */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + + return 0; +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_SUB - Vector Arithmetic Substraction + * + * Input = double, double + * Output = double + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::Sub( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inReal0, +/* Generated */ SubArray^ inReal1, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::Sub( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal0, +/* Generated */ cli::array^ inReal1, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode sub( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inReal0[], +/* Generated */ double inReal1[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_SUB( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inReal0[], +/* Generated */ const double inReal1[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + int outIdx; + int i; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal0 ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ if( !inReal1 ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Insert TA function code here. */ + + /* Default return values */ + for( i=startIdx, outIdx=0; i <= endIdx; i++, outIdx++ ) + { + outReal[outIdx] = inReal0[i]-inReal1[i]; + } + + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::Sub( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal0, +/* Generated */ cli::array^ inReal1, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode sub( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inReal0[], +/* Generated */ float inReal1[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_SUB( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inReal0[], +/* Generated */ const float inReal1[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ int outIdx; +/* Generated */ int i; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal0 ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ if( !inReal1 ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ for( i=startIdx, outIdx=0; i <= endIdx; i++, outIdx++ ) +/* Generated */ { +/* Generated */ outReal[outIdx] = inReal0[i]-inReal1[i]; +/* Generated */ } +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_SUM.c b/src/ta_func/ta_SUM.c new file mode 100644 index 000000000..1feb00efb --- /dev/null +++ b/src/ta_func/ta_SUM.c @@ -0,0 +1,333 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * MF Mario Fortier + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 120802 MF Template creation. + * + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::SumLookback( int optInTimePeriod ) /* From 2 to 100000 */ +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int sumLookback( int optInTimePeriod ) /* From 2 to 100000 */ +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_SUM_Lookback( int optInTimePeriod ) /* From 2 to 100000 */ +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ /* min/max are checked for optInTimePeriod. */ +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 30; +/* Generated */ else if( ((int)optInTimePeriod < 2) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return -1; +/* Generated */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + return optInTimePeriod-1; +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_SUM - Summation + * + * Input = double + * Output = double + * + * Optional Parameters + * ------------------- + * optInTimePeriod:(From 2 to 100000) + * Number of period + * + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::Sum( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inReal, +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::Sum( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode sum( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inReal[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_SUM( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inReal[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + double periodTotal, tempReal; + int i, outIdx, trailingIdx, lookbackTotal; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ /* min/max are checked for optInTimePeriod. */ +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 30; +/* Generated */ else if( ((int)optInTimePeriod < 2) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Insert TA function code here. */ + + /* Identify the minimum number of price bar needed + * to calculate at least one output. + */ + lookbackTotal = (optInTimePeriod-1); + + /* Move up the start index if there is not + * enough initial data. + */ + if( startIdx < lookbackTotal ) + startIdx = lookbackTotal; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + + /* Do the MA calculation using tight loops. */ + + /* Add-up the initial period, except for the last value. */ + periodTotal = 0; + trailingIdx = startIdx-lookbackTotal; + + i=trailingIdx; + if( optInTimePeriod > 1 ) + { + while( i < startIdx ) + periodTotal += inReal[i++]; + } + + /* Proceed with the calculation for the requested range. + * Note that this algorithm allows the inReal and + * outReal to be the same buffer. + */ + outIdx = 0; + do + { + periodTotal += inReal[i++]; + tempReal = periodTotal; + periodTotal -= inReal[trailingIdx++]; + outReal[outIdx++] = tempReal; + } while( i <= endIdx ); + + /* All done. Indicate the output limits and return. */ + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::Sum( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode sum( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inReal[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_SUM( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inReal[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ double periodTotal, tempReal; +/* Generated */ int i, outIdx, trailingIdx, lookbackTotal; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 30; +/* Generated */ else if( ((int)optInTimePeriod < 2) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ lookbackTotal = (optInTimePeriod-1); +/* Generated */ if( startIdx < lookbackTotal ) +/* Generated */ startIdx = lookbackTotal; +/* Generated */ if( startIdx > endIdx ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ periodTotal = 0; +/* Generated */ trailingIdx = startIdx-lookbackTotal; +/* Generated */ i=trailingIdx; +/* Generated */ if( optInTimePeriod > 1 ) +/* Generated */ { +/* Generated */ while( i < startIdx ) +/* Generated */ periodTotal += inReal[i++]; +/* Generated */ } +/* Generated */ outIdx = 0; +/* Generated */ do +/* Generated */ { +/* Generated */ periodTotal += inReal[i++]; +/* Generated */ tempReal = periodTotal; +/* Generated */ periodTotal -= inReal[trailingIdx++]; +/* Generated */ outReal[outIdx++] = tempReal; +/* Generated */ } while( i <= endIdx ); +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_T3.c b/src/ta_func/ta_T3.c new file mode 100644 index 000000000..bf4285990 --- /dev/null +++ b/src/ta_func/ta_T3.c @@ -0,0 +1,524 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * MHL Matthew Lindblom + * MF Mario Fortier + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 120802 MF Template creation. + * 032003 MHL Implementation of T3 + * 040503 MF Adapt for compatibility with published code + * for TradeStation and Metastock. + * See "Smoothing Techniques For More Accurate Signals" + * from Tim Tillson in Stock&Commodities V16:1 Page 33-37 + * 052603 MF Adapt code to compile with .NET Managed C++ + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::T3Lookback( int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ double optInVFactor ) /* From 0 to 1 */ +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int t3Lookback( int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ double optInVFactor ) /* From 0 to 1 */ +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_T3_Lookback( int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ double optInVFactor ) /* From 0 to 1 */ +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ /* min/max are checked for optInTimePeriod. */ +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 5; +/* Generated */ else if( ((int)optInTimePeriod < 2) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return -1; +/* Generated */ +/* Generated */ if( optInVFactor == TA_REAL_DEFAULT ) +/* Generated */ optInVFactor = 7.000000e-1; +/* Generated */ else if( (optInVFactor < 0.000000e+0) ||/* Generated */ (optInVFactor > 1.000000e+0) ) +/* Generated */ return -1; +/* Generated */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + UNUSED_VARIABLE(optInVFactor); + return 6 * (optInTimePeriod-1) + TA_GLOBALS_UNSTABLE_PERIOD(TA_FUNC_UNST_T3,T3); +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_T3 - Triple Exponential Moving Average (T3) + * + * Input = double + * Output = double + * + * Optional Parameters + * ------------------- + * optInTimePeriod:(From 2 to 100000) + * Number of period + * + * optInVFactor:(From 0 to 1) + * Volume Factor + * + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::T3( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inReal, +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ double optInVFactor, /* From 0 to 1 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::T3( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ double optInVFactor, /* From 0 to 1 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode t3( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inReal[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ double optInVFactor, /* From 0 to 1 */ +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_T3( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inReal[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ double optInVFactor, /* From 0 to 1 */ +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + + int outIdx, lookbackTotal; + int today, i; + double k, one_minus_k; + double e1, e2, e3, e4, e5, e6; + double c1, c2, c3, c4; + double tempReal; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ /* min/max are checked for optInTimePeriod. */ +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 5; +/* Generated */ else if( ((int)optInTimePeriod < 2) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ if( optInVFactor == TA_REAL_DEFAULT ) +/* Generated */ optInVFactor = 7.000000e-1; +/* Generated */ else if( (optInVFactor < 0.000000e+0) ||/* Generated */ (optInVFactor > 1.000000e+0) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Insert TA function code here. */ + + /* For an explanation of this function, please read: + * + * Magazine articles written by Tim Tillson + * + * Essentially, a T3 of time serie 't' is: + * EMA1(x,Period) = EMA(x,Period) + * EMA2(x,Period) = EMA(EMA1(x,Period),Period) + * GD(x,Period,vFactor) = (EMA1(x,Period)*(1+vFactor)) - (EMA2(x,Period)*vFactor) + * T3 = GD (GD ( GD(t, Period, vFactor), Period, vFactor), Period, vFactor); + * + * T3 offers a moving average with less lags then the + * traditional EMA. + * + * Do not confuse a T3 with EMA3. Both are called "Triple EMA" + * in the litterature. + * + */ + lookbackTotal = 6 * (optInTimePeriod - 1) + TA_GLOBALS_UNSTABLE_PERIOD(TA_FUNC_UNST_T3,T3); + if( startIdx <= lookbackTotal ) + startIdx = lookbackTotal; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + today = startIdx - lookbackTotal; + + k = 2.0/(optInTimePeriod+1.0); + one_minus_k = 1.0-k; + + /* Initialize e1 */ + tempReal = inReal[today++]; + for( i=optInTimePeriod-1; i > 0 ; i-- ) + tempReal += inReal[today++]; + e1 = tempReal / optInTimePeriod; + + /* Initialize e2 */ + tempReal = e1; + for( i=optInTimePeriod-1; i > 0 ; i-- ) + { + e1 = (k*inReal[today++])+(one_minus_k*e1); + tempReal += e1; + } + e2 = tempReal / optInTimePeriod; + + /* Initialize e3 */ + tempReal = e2; + for( i=optInTimePeriod-1; i > 0 ; i-- ) + { + e1 = (k*inReal[today++])+(one_minus_k*e1); + e2 = (k*e1)+(one_minus_k*e2); + tempReal += e2; + } + e3 = tempReal / optInTimePeriod; + + /* Initialize e4 */ + tempReal = e3; + for( i=optInTimePeriod-1; i > 0 ; i-- ) + { + e1 = (k*inReal[today++])+(one_minus_k*e1); + e2 = (k*e1)+(one_minus_k*e2); + e3 = (k*e2)+(one_minus_k*e3); + tempReal += e3; + } + e4 = tempReal / optInTimePeriod; + + /* Initialize e5 */ + tempReal = e4; + for( i=optInTimePeriod-1; i > 0 ; i-- ) + { + e1 = (k*inReal[today++])+(one_minus_k*e1); + e2 = (k*e1)+(one_minus_k*e2); + e3 = (k*e2)+(one_minus_k*e3); + e4 = (k*e3)+(one_minus_k*e4); + tempReal += e4; + } + e5 = tempReal / optInTimePeriod; + + /* Initialize e6 */ + tempReal = e5; + for( i=optInTimePeriod-1; i > 0 ; i-- ) + { + e1 = (k*inReal[today++])+(one_minus_k*e1); + e2 = (k*e1)+(one_minus_k*e2); + e3 = (k*e2)+(one_minus_k*e3); + e4 = (k*e3)+(one_minus_k*e4); + e5 = (k*e4)+(one_minus_k*e5); + tempReal += e5; + } + e6 = tempReal / optInTimePeriod; + + /* Skip the unstable period */ + while( today <= startIdx ) + { + /* Do the calculation but do not write the output */ + e1 = (k*inReal[today++])+(one_minus_k*e1); + e2 = (k*e1)+(one_minus_k*e2); + e3 = (k*e2)+(one_minus_k*e3); + e4 = (k*e3)+(one_minus_k*e4); + e5 = (k*e4)+(one_minus_k*e5); + e6 = (k*e5)+(one_minus_k*e6); + } + + /* Calculate the constants */ + tempReal = optInVFactor * optInVFactor; + c1 = -(tempReal * optInVFactor); + c2 = 3.0 * (tempReal - c1); + c3 = -6.0 * tempReal - 3.0 * (optInVFactor-c1); + c4 = 1.0 + 3.0 * optInVFactor - c1 + 3.0 * tempReal; + + /* Write the first output */ + outIdx = 0; + outReal[outIdx++] = c1*e6+c2*e5+c3*e4+c4*e3; + + /* Calculate and output the remaining of the range. */ + while( today <= endIdx ) + { + e1 = (k*inReal[today++])+(one_minus_k*e1); + e2 = (k*e1)+(one_minus_k*e2); + e3 = (k*e2)+(one_minus_k*e3); + e4 = (k*e3)+(one_minus_k*e4); + e5 = (k*e4)+(one_minus_k*e5); + e6 = (k*e5)+(one_minus_k*e6); + outReal[outIdx++] = c1*e6+c2*e5+c3*e4+c4*e3; + } + + /* Indicates to the caller the number of output + * successfully calculated. + */ + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::T3( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ double optInVFactor, /* From 0 to 1 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode t3( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inReal[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ double optInVFactor, /* From 0 to 1 */ +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_T3( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inReal[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ double optInVFactor, /* From 0 to 1 */ +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ int outIdx, lookbackTotal; +/* Generated */ int today, i; +/* Generated */ double k, one_minus_k; +/* Generated */ double e1, e2, e3, e4, e5, e6; +/* Generated */ double c1, c2, c3, c4; +/* Generated */ double tempReal; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 5; +/* Generated */ else if( ((int)optInTimePeriod < 2) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ if( optInVFactor == TA_REAL_DEFAULT ) +/* Generated */ optInVFactor = 7.000000e-1; +/* Generated */ else if( (optInVFactor < 0.000000e+0) || (optInVFactor > 1.000000e+0) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ lookbackTotal = 6 * (optInTimePeriod - 1) + TA_GLOBALS_UNSTABLE_PERIOD(TA_FUNC_UNST_T3,T3); +/* Generated */ if( startIdx <= lookbackTotal ) +/* Generated */ startIdx = lookbackTotal; +/* Generated */ if( startIdx > endIdx ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ today = startIdx - lookbackTotal; +/* Generated */ k = 2.0/(optInTimePeriod+1.0); +/* Generated */ one_minus_k = 1.0-k; +/* Generated */ tempReal = inReal[today++]; +/* Generated */ for( i=optInTimePeriod-1; i > 0 ; i-- ) +/* Generated */ tempReal += inReal[today++]; +/* Generated */ e1 = tempReal / optInTimePeriod; +/* Generated */ tempReal = e1; +/* Generated */ for( i=optInTimePeriod-1; i > 0 ; i-- ) +/* Generated */ { +/* Generated */ e1 = (k*inReal[today++])+(one_minus_k*e1); +/* Generated */ tempReal += e1; +/* Generated */ } +/* Generated */ e2 = tempReal / optInTimePeriod; +/* Generated */ tempReal = e2; +/* Generated */ for( i=optInTimePeriod-1; i > 0 ; i-- ) +/* Generated */ { +/* Generated */ e1 = (k*inReal[today++])+(one_minus_k*e1); +/* Generated */ e2 = (k*e1)+(one_minus_k*e2); +/* Generated */ tempReal += e2; +/* Generated */ } +/* Generated */ e3 = tempReal / optInTimePeriod; +/* Generated */ tempReal = e3; +/* Generated */ for( i=optInTimePeriod-1; i > 0 ; i-- ) +/* Generated */ { +/* Generated */ e1 = (k*inReal[today++])+(one_minus_k*e1); +/* Generated */ e2 = (k*e1)+(one_minus_k*e2); +/* Generated */ e3 = (k*e2)+(one_minus_k*e3); +/* Generated */ tempReal += e3; +/* Generated */ } +/* Generated */ e4 = tempReal / optInTimePeriod; +/* Generated */ tempReal = e4; +/* Generated */ for( i=optInTimePeriod-1; i > 0 ; i-- ) +/* Generated */ { +/* Generated */ e1 = (k*inReal[today++])+(one_minus_k*e1); +/* Generated */ e2 = (k*e1)+(one_minus_k*e2); +/* Generated */ e3 = (k*e2)+(one_minus_k*e3); +/* Generated */ e4 = (k*e3)+(one_minus_k*e4); +/* Generated */ tempReal += e4; +/* Generated */ } +/* Generated */ e5 = tempReal / optInTimePeriod; +/* Generated */ tempReal = e5; +/* Generated */ for( i=optInTimePeriod-1; i > 0 ; i-- ) +/* Generated */ { +/* Generated */ e1 = (k*inReal[today++])+(one_minus_k*e1); +/* Generated */ e2 = (k*e1)+(one_minus_k*e2); +/* Generated */ e3 = (k*e2)+(one_minus_k*e3); +/* Generated */ e4 = (k*e3)+(one_minus_k*e4); +/* Generated */ e5 = (k*e4)+(one_minus_k*e5); +/* Generated */ tempReal += e5; +/* Generated */ } +/* Generated */ e6 = tempReal / optInTimePeriod; +/* Generated */ while( today <= startIdx ) +/* Generated */ { +/* Generated */ e1 = (k*inReal[today++])+(one_minus_k*e1); +/* Generated */ e2 = (k*e1)+(one_minus_k*e2); +/* Generated */ e3 = (k*e2)+(one_minus_k*e3); +/* Generated */ e4 = (k*e3)+(one_minus_k*e4); +/* Generated */ e5 = (k*e4)+(one_minus_k*e5); +/* Generated */ e6 = (k*e5)+(one_minus_k*e6); +/* Generated */ } +/* Generated */ tempReal = optInVFactor * optInVFactor; +/* Generated */ c1 = -(tempReal * optInVFactor); +/* Generated */ c2 = 3.0 * (tempReal - c1); +/* Generated */ c3 = -6.0 * tempReal - 3.0 * (optInVFactor-c1); +/* Generated */ c4 = 1.0 + 3.0 * optInVFactor - c1 + 3.0 * tempReal; +/* Generated */ outIdx = 0; +/* Generated */ outReal[outIdx++] = c1*e6+c2*e5+c3*e4+c4*e3; +/* Generated */ while( today <= endIdx ) +/* Generated */ { +/* Generated */ e1 = (k*inReal[today++])+(one_minus_k*e1); +/* Generated */ e2 = (k*e1)+(one_minus_k*e2); +/* Generated */ e3 = (k*e2)+(one_minus_k*e3); +/* Generated */ e4 = (k*e3)+(one_minus_k*e4); +/* Generated */ e5 = (k*e4)+(one_minus_k*e5); +/* Generated */ e6 = (k*e5)+(one_minus_k*e6); +/* Generated */ outReal[outIdx++] = c1*e6+c2*e5+c3*e4+c4*e3; +/* Generated */ } +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_TAN.c b/src/ta_func/ta_TAN.c new file mode 100644 index 000000000..dff966eaf --- /dev/null +++ b/src/ta_func/ta_TAN.c @@ -0,0 +1,241 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * MF Mario Fortier + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 090807 MF Initial Version + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::TanLookback( void ) +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int tanLookback( ) +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_TAN_Lookback( void ) +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ /* No parameters to validate. */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + + return 0; +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_TAN - Vector Trigonometric Tan + * + * Input = double + * Output = double + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::Tan( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inReal, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::Tan( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode tan( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inReal[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_TAN( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inReal[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + int outIdx; + int i; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Insert TA function code here. */ + + /* Default return values */ + for( i=startIdx, outIdx=0; i <= endIdx; i++, outIdx++ ) + { + outReal[outIdx] = std_tan(inReal[i]); + } + + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::Tan( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode tan( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inReal[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_TAN( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inReal[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ int outIdx; +/* Generated */ int i; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ for( i=startIdx, outIdx=0; i <= endIdx; i++, outIdx++ ) +/* Generated */ { +/* Generated */ outReal[outIdx] = std_tan(inReal[i]); +/* Generated */ } +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_TANH.c b/src/ta_func/ta_TANH.c new file mode 100644 index 000000000..a1d0781d6 --- /dev/null +++ b/src/ta_func/ta_TANH.c @@ -0,0 +1,241 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * MF Mario Fortier + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 090807 MF Initial Version + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::TanhLookback( void ) +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int tanhLookback( ) +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_TANH_Lookback( void ) +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ /* No parameters to validate. */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + + return 0; +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_TANH - Vector Trigonometric Tanh + * + * Input = double + * Output = double + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::Tanh( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inReal, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::Tanh( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode tanh( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inReal[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_TANH( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inReal[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + int outIdx; + int i; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Insert TA function code here. */ + + /* Default return values */ + for( i=startIdx, outIdx=0; i <= endIdx; i++, outIdx++ ) + { + outReal[outIdx] = std_tanh(inReal[i]); + } + + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::Tanh( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode tanh( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inReal[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_TANH( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inReal[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ int outIdx; +/* Generated */ int i; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ for( i=startIdx, outIdx=0; i <= endIdx; i++, outIdx++ ) +/* Generated */ { +/* Generated */ outReal[outIdx] = std_tanh(inReal[i]); +/* Generated */ } +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_TEMA.c b/src/ta_func/ta_TEMA.c new file mode 100644 index 000000000..3bdec0c45 --- /dev/null +++ b/src/ta_func/ta_TEMA.c @@ -0,0 +1,481 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * MF Mario Fortier + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 112400 MF Template creation. + * 052603 MF Adapt code to compile with .NET Managed C++ + * + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::TemaLookback( int optInTimePeriod ) /* From 2 to 100000 */ +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int temaLookback( int optInTimePeriod ) /* From 2 to 100000 */ +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_TEMA_Lookback( int optInTimePeriod ) /* From 2 to 100000 */ +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + int retValue; + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ /* min/max are checked for optInTimePeriod. */ +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 30; +/* Generated */ else if( ((int)optInTimePeriod < 2) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return -1; +/* Generated */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + + /* Get lookack for one EMA. */ + retValue = LOOKBACK_CALL(EMA)( optInTimePeriod ); + + return retValue * 3; +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_TEMA - Triple Exponential Moving Average + * + * Input = double + * Output = double + * + * Optional Parameters + * ------------------- + * optInTimePeriod:(From 2 to 100000) + * Number of period + * + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::Tema( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inReal, +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::Tema( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode tema( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inReal[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_TEMA( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inReal[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* Insert local variables here. */ + ARRAY_REF(firstEMA); + ARRAY_REF(secondEMA); + double k; + + VALUE_HANDLE_INT(firstEMABegIdx); + VALUE_HANDLE_INT(firstEMANbElement); + VALUE_HANDLE_INT(secondEMABegIdx); + VALUE_HANDLE_INT(secondEMANbElement); + VALUE_HANDLE_INT(thirdEMABegIdx); + VALUE_HANDLE_INT(thirdEMANbElement); + + int tempInt, outIdx, lookbackTotal, lookbackEMA; + int firstEMAIdx, secondEMAIdx; + + ENUM_DECLARATION(RetCode) retCode; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ /* min/max are checked for optInTimePeriod. */ +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 30; +/* Generated */ else if( ((int)optInTimePeriod < 2) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Insert TA function code here. */ + + /* For an explanation of this function, please read: + * + * Stocks & Commodities V. 12:1 (11-19): + * Smoothing Data With Faster Moving Averages + * Stocks & Commodities V. 12:2 (72-80): + * Smoothing Data With Less Lag + * + * Both magazine articles written by Patrick G. Mulloy + * + * Essentially, a TEMA of time serie 't' is: + * EMA1 = EMA(t,period) + * EMA2 = EMA(EMA(t,period),period) + * EMA3 = EMA(EMA(EMA(t,period),period)) + * TEMA = 3*EMA1 - 3*EMA2 + EMA3 + * + * TEMA offers a moving average with less lags then the + * traditional EMA. + * + * Do not confuse a TEMA with EMA3. Both are called "Triple EMA" + * in the litterature. + * + * DEMA is very similar (and from the same author). + */ + + /* Will change only on success. */ + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + + /* Adjust startIdx to account for the lookback period. */ + lookbackEMA = LOOKBACK_CALL(EMA)( optInTimePeriod ); + lookbackTotal = lookbackEMA * 3; + + if( startIdx < lookbackTotal ) + startIdx = lookbackTotal; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + + /* Allocate a temporary buffer for the firstEMA. */ + tempInt = lookbackTotal+(endIdx-startIdx)+1; + ARRAY_ALLOC(firstEMA,tempInt); + #if !defined( _JAVA ) + if( !firstEMA ) + return ENUM_VALUE(RetCode,TA_ALLOC_ERR,AllocErr); + #endif + + /* Calculate the first EMA */ + k = PER_TO_K(optInTimePeriod); + retCode = FUNCTION_CALL(INT_EMA)( startIdx-(lookbackEMA*2), endIdx, inReal, + optInTimePeriod, k, + VALUE_HANDLE_OUT(firstEMABegIdx), VALUE_HANDLE_OUT(firstEMANbElement), + firstEMA ); + + /* Verify for failure or if not enough data after + * calculating the first EMA. + */ + if( (retCode != ENUM_VALUE(RetCode,TA_SUCCESS,Success) ) || (VALUE_HANDLE_GET(firstEMANbElement) == 0) ) + { + ARRAY_FREE( firstEMA ); + return retCode; + } + + /* Allocate a temporary buffer for storing the EMA2 */ + ARRAY_ALLOC(secondEMA,VALUE_HANDLE_GET(firstEMANbElement)); + #if !defined( _JAVA ) + if( !secondEMA ) + { + ARRAY_FREE( firstEMA ); + return ENUM_VALUE(RetCode,TA_ALLOC_ERR,AllocErr); + } + #endif + + retCode = FUNCTION_CALL_DOUBLE(INT_EMA)( 0, VALUE_HANDLE_GET(firstEMANbElement)-1, firstEMA, + optInTimePeriod, k, + VALUE_HANDLE_OUT(secondEMABegIdx), VALUE_HANDLE_OUT(secondEMANbElement), + secondEMA ); + + /* Return empty output on failure or if not enough data after + * calculating the second EMA. + */ + if( (retCode != ENUM_VALUE(RetCode,TA_SUCCESS,Success) ) || (VALUE_HANDLE_GET(secondEMANbElement) == 0) ) + { + ARRAY_FREE( firstEMA ); + ARRAY_FREE( secondEMA ); + return retCode; + } + + /* Calculate the EMA3 into the caller provided output. */ + retCode = FUNCTION_CALL_DOUBLE(INT_EMA)( 0, VALUE_HANDLE_GET(secondEMANbElement)-1, secondEMA, + optInTimePeriod, k, + VALUE_HANDLE_OUT(thirdEMABegIdx), VALUE_HANDLE_OUT(thirdEMANbElement), + outReal ); + + /* Return empty output on failure or if not enough data after + * calculating the third EMA. + */ + if( (retCode != ENUM_VALUE(RetCode,TA_SUCCESS,Success) ) || (VALUE_HANDLE_GET(thirdEMANbElement) == 0) ) + { + ARRAY_FREE( firstEMA ); + ARRAY_FREE( secondEMA ); + return retCode; + } + + /* Indicate where the output starts relative to + * the caller input. + */ + firstEMAIdx = VALUE_HANDLE_GET(thirdEMABegIdx) + VALUE_HANDLE_GET(secondEMABegIdx); + secondEMAIdx = VALUE_HANDLE_GET(thirdEMABegIdx); + VALUE_HANDLE_DEREF(outBegIdx) = firstEMAIdx + VALUE_HANDLE_GET(firstEMABegIdx); + + /* Do the TEMA: + * Iterate through the EMA3 (output buffer) and adjust + * the value by using the EMA2 and EMA1. + */ + outIdx = 0; + while( outIdx < VALUE_HANDLE_GET(thirdEMANbElement) ) + { + outReal[outIdx] += (3.0*firstEMA[firstEMAIdx++]) - (3.0*secondEMA[secondEMAIdx++]); + outIdx++; + } + + ARRAY_FREE( firstEMA ); + ARRAY_FREE( secondEMA ); + + /* Indicates to the caller the number of output + * successfully calculated. + */ + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::Tema( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode tema( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inReal[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_TEMA( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inReal[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ ARRAY_REF(firstEMA); +/* Generated */ ARRAY_REF(secondEMA); +/* Generated */ double k; +/* Generated */ VALUE_HANDLE_INT(firstEMABegIdx); +/* Generated */ VALUE_HANDLE_INT(firstEMANbElement); +/* Generated */ VALUE_HANDLE_INT(secondEMABegIdx); +/* Generated */ VALUE_HANDLE_INT(secondEMANbElement); +/* Generated */ VALUE_HANDLE_INT(thirdEMABegIdx); +/* Generated */ VALUE_HANDLE_INT(thirdEMANbElement); +/* Generated */ int tempInt, outIdx, lookbackTotal, lookbackEMA; +/* Generated */ int firstEMAIdx, secondEMAIdx; +/* Generated */ ENUM_DECLARATION(RetCode) retCode; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 30; +/* Generated */ else if( ((int)optInTimePeriod < 2) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ lookbackEMA = LOOKBACK_CALL(EMA)( optInTimePeriod ); +/* Generated */ lookbackTotal = lookbackEMA * 3; +/* Generated */ if( startIdx < lookbackTotal ) +/* Generated */ startIdx = lookbackTotal; +/* Generated */ if( startIdx > endIdx ) +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ tempInt = lookbackTotal+(endIdx-startIdx)+1; +/* Generated */ ARRAY_ALLOC(firstEMA,tempInt); +/* Generated */ #if !defined( _JAVA ) +/* Generated */ if( !firstEMA ) +/* Generated */ return ENUM_VALUE(RetCode,TA_ALLOC_ERR,AllocErr); +/* Generated */ #endif +/* Generated */ k = PER_TO_K(optInTimePeriod); +/* Generated */ retCode = FUNCTION_CALL(INT_EMA)( startIdx-(lookbackEMA*2), endIdx, inReal, +/* Generated */ optInTimePeriod, k, +/* Generated */ VALUE_HANDLE_OUT(firstEMABegIdx), VALUE_HANDLE_OUT(firstEMANbElement), +/* Generated */ firstEMA ); +/* Generated */ if( (retCode != ENUM_VALUE(RetCode,TA_SUCCESS,Success) ) || (VALUE_HANDLE_GET(firstEMANbElement) == 0) ) +/* Generated */ { +/* Generated */ ARRAY_FREE( firstEMA ); +/* Generated */ return retCode; +/* Generated */ } +/* Generated */ ARRAY_ALLOC(secondEMA,VALUE_HANDLE_GET(firstEMANbElement)); +/* Generated */ #if !defined( _JAVA ) +/* Generated */ if( !secondEMA ) +/* Generated */ { +/* Generated */ ARRAY_FREE( firstEMA ); +/* Generated */ return ENUM_VALUE(RetCode,TA_ALLOC_ERR,AllocErr); +/* Generated */ } +/* Generated */ #endif +/* Generated */ retCode = FUNCTION_CALL_DOUBLE(INT_EMA)( 0, VALUE_HANDLE_GET(firstEMANbElement)-1, firstEMA, +/* Generated */ optInTimePeriod, k, +/* Generated */ VALUE_HANDLE_OUT(secondEMABegIdx), VALUE_HANDLE_OUT(secondEMANbElement), +/* Generated */ secondEMA ); +/* Generated */ if( (retCode != ENUM_VALUE(RetCode,TA_SUCCESS,Success) ) || (VALUE_HANDLE_GET(secondEMANbElement) == 0) ) +/* Generated */ { +/* Generated */ ARRAY_FREE( firstEMA ); +/* Generated */ ARRAY_FREE( secondEMA ); +/* Generated */ return retCode; +/* Generated */ } +/* Generated */ retCode = FUNCTION_CALL_DOUBLE(INT_EMA)( 0, VALUE_HANDLE_GET(secondEMANbElement)-1, secondEMA, +/* Generated */ optInTimePeriod, k, +/* Generated */ VALUE_HANDLE_OUT(thirdEMABegIdx), VALUE_HANDLE_OUT(thirdEMANbElement), +/* Generated */ outReal ); +/* Generated */ if( (retCode != ENUM_VALUE(RetCode,TA_SUCCESS,Success) ) || (VALUE_HANDLE_GET(thirdEMANbElement) == 0) ) +/* Generated */ { +/* Generated */ ARRAY_FREE( firstEMA ); +/* Generated */ ARRAY_FREE( secondEMA ); +/* Generated */ return retCode; +/* Generated */ } +/* Generated */ firstEMAIdx = VALUE_HANDLE_GET(thirdEMABegIdx) + VALUE_HANDLE_GET(secondEMABegIdx); +/* Generated */ secondEMAIdx = VALUE_HANDLE_GET(thirdEMABegIdx); +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = firstEMAIdx + VALUE_HANDLE_GET(firstEMABegIdx); +/* Generated */ outIdx = 0; +/* Generated */ while( outIdx < VALUE_HANDLE_GET(thirdEMANbElement) ) +/* Generated */ { +/* Generated */ outReal[outIdx] += (3.0*firstEMA[firstEMAIdx++]) - (3.0*secondEMA[secondEMAIdx++]); +/* Generated */ outIdx++; +/* Generated */ } +/* Generated */ ARRAY_FREE( firstEMA ); +/* Generated */ ARRAY_FREE( secondEMA ); +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_TRANGE.c b/src/ta_func/ta_TRANGE.c new file mode 100644 index 000000000..31ac0ecf2 --- /dev/null +++ b/src/ta_func/ta_TRANGE.c @@ -0,0 +1,328 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * MF Mario Fortier + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 112400 MF Template creation. + * 052603 MF Adapt code to compile with .NET Managed C++ + * + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::TrueRangeLookback( void ) +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int trueRangeLookback( ) +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_TRANGE_Lookback( void ) +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ /* No parameters to validate. */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + + return 1; +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_TRANGE - True Range + * + * Input = High, Low, Close + * Output = double + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::TrueRange( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inHigh, +/* Generated */ SubArray^ inLow, +/* Generated */ SubArray^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::TrueRange( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode trueRange( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inHigh[], +/* Generated */ double inLow[], +/* Generated */ double inClose[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_TRANGE( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inHigh[], +/* Generated */ const double inLow[], +/* Generated */ const double inClose[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* Insert local variables here. */ + int today, outIdx; + double val2, val3, greatest; + double tempCY, tempLT, tempHT; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ /* Verify required price component. */ +/* Generated */ if(!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* True Range is the greatest of the following: + * + * val1 = distance from today's high to today's low. + * val2 = distance from yesterday's close to today's high. + * val3 = distance from yesterday's close to today's low. + * + * Some books and software makes the first TR value to be + * the (high - low) of the first bar. This function instead + * ignore the first price bar, and only output starting at the + * second price bar are valid. This is done for avoiding + * inconsistency. + */ + + /* Move up the start index if there is not + * enough initial data. + * Always one price bar gets consumed. + */ + if( startIdx < 1 ) + startIdx = 1; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + + outIdx = 0; + today = startIdx; + while( today <= endIdx ) + { + + /* Find the greatest of the 3 values. */ + tempLT = inLow[today]; + tempHT = inHigh[today]; + tempCY = inClose[today-1]; + greatest = tempHT - tempLT; /* val1 */ + + val2 = std_fabs( tempCY - tempHT ); + if( val2 > greatest ) + greatest = val2; + + val3 = std_fabs( tempCY - tempLT ); + if( val3 > greatest ) + greatest = val3; + + outReal[outIdx++] = greatest; + today++; + } + + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::TrueRange( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode trueRange( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inHigh[], +/* Generated */ float inLow[], +/* Generated */ float inClose[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_TRANGE( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inHigh[], +/* Generated */ const float inLow[], +/* Generated */ const float inClose[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ int today, outIdx; +/* Generated */ double val2, val3, greatest; +/* Generated */ double tempCY, tempLT, tempHT; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if(!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ if( startIdx < 1 ) +/* Generated */ startIdx = 1; +/* Generated */ if( startIdx > endIdx ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ outIdx = 0; +/* Generated */ today = startIdx; +/* Generated */ while( today <= endIdx ) +/* Generated */ { +/* Generated */ tempLT = inLow[today]; +/* Generated */ tempHT = inHigh[today]; +/* Generated */ tempCY = inClose[today-1]; +/* Generated */ greatest = tempHT - tempLT; +/* Generated */ val2 = std_fabs( tempCY - tempHT ); +/* Generated */ if( val2 > greatest ) +/* Generated */ greatest = val2; +/* Generated */ val3 = std_fabs( tempCY - tempLT ); +/* Generated */ if( val3 > greatest ) +/* Generated */ greatest = val3; +/* Generated */ outReal[outIdx++] = greatest; +/* Generated */ today++; +/* Generated */ } +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_TRIMA.c b/src/ta_func/ta_TRIMA.c new file mode 100644 index 000000000..7da1b630a --- /dev/null +++ b/src/ta_func/ta_TRIMA.c @@ -0,0 +1,648 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * MF Mario Fortier + * CR Chris (crokusek@hotmail.com) + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 010503 MF Initial Coding + * 031703 MF Fix #701060. Correct logic when using a range with + * startIdx/endIdx. Thanks to Chris for reporting this. + * 052603 MF Adapt code to compile with .NET Managed C++ + * + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::TrimaLookback( int optInTimePeriod ) /* From 2 to 100000 */ +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int trimaLookback( int optInTimePeriod ) /* From 2 to 100000 */ +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_TRIMA_Lookback( int optInTimePeriod ) /* From 2 to 100000 */ +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ /* min/max are checked for optInTimePeriod. */ +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 30; +/* Generated */ else if( ((int)optInTimePeriod < 2) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return -1; +/* Generated */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + return optInTimePeriod-1; +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_TRIMA - Triangular Moving Average + * + * Input = double + * Output = double + * + * Optional Parameters + * ------------------- + * optInTimePeriod:(From 2 to 100000) + * Number of period + * + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::Trima( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inReal, +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::Trima( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode trima( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inReal[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_TRIMA( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inReal[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + int lookbackTotal; + + double numerator; + double numeratorSub; + double numeratorAdd; + + int i, outIdx, todayIdx, trailingIdx, middleIdx; + double factor, tempReal; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ /* min/max are checked for optInTimePeriod. */ +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 30; +/* Generated */ else if( ((int)optInTimePeriod < 2) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Insert TA function code here. */ + + /* Identify the minimum number of price bar needed + * to calculate at least one output. + */ + lookbackTotal = (optInTimePeriod-1); + + /* Move up the start index if there is not + * enough initial data. + */ + if( startIdx < lookbackTotal ) + startIdx = lookbackTotal; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + + /* TRIMA Description + * ================= + * The triangular MA is a weighted moving average. Instead of the + * TA_WMA who put more weigth on the latest price bar, the triangular + * put more weigth on the data in the middle of the specified period. + * + * Examples: + * For TimeSerie={a,b,c,d,e,f...} ('a' is the older price) + * + * 1st value for TRIMA 4-Period is: ((1*a)+(2*b)+(2*c)+(1*d)) / 6 + * 2nd value for TRIMA 4-Period is: ((1*b)+(2*c)+(2*d)+(1*e)) / 6 + * + * 1st value for TRIMA 5-Period is: ((1*a)+(2*b)+(3*c)+(2*d)+(1*e)) / 9 + * 2nd value for TRIMA 5-Period is: ((1*b)+(2*c)+(3*d)+(2*e)+(1*f)) / 9 + * + * Generally Accepted Implementation + * ================================== + * Using algebra, it can be demonstrated that the TRIMA is equivalent to + * doing a SMA of a SMA. The following explain the rules: + * + * (1) When the period is even, TRIMA(x,period)=SMA(SMA(x,period/2),(period/2)+1) + * (2) When the period is odd, TRIMA(x,period)=SMA(SMA(x,(period+1)/2),(period+1)/2) + * + * In other word: + * (1) A period of 4 becomes TRIMA(x,4) = SMA( SMA( x, 2), 3 ) + * (2) A period of 5 becomes TRIMA(x,5) = SMA( SMA( x, 3), 3 ) + * + * The SMA of a SMA is the algorithm generaly found in books. + * + * Tradestation Implementation + * =========================== + * Tradestation deviate from the generally accepted implementation by + * making the TRIMA to be as follow: + * TRIMA(x,period) = SMA( SMA( x, (int)(period/2)+1), (int)(period/2)+1 ); + * This formula is done regardless if the period is even or odd. + * + * In other word: + * (1) A period of 4 becomes TRIMA(x,4) = SMA( SMA( x, 3), 3 ) + * (2) A period of 5 becomes TRIMA(x,5) = SMA( SMA( x, 3), 3 ) + * (3) A period of 6 becomes TRIMA(x,5) = SMA( SMA( x, 4), 4 ) + * (4) A period of 7 becomes TRIMA(x,5) = SMA( SMA( x, 4), 4 ) + * + * It is not clear to me if the Tradestation approach is a bug or a deliberate + * decision to do things differently. + * + * Metastock Implementation + * ======================== + * Output is the same as the generally accepted implementation. + * + * TA-Lib Implementation + * ===================== + * Output is also the same as the generally accepted implementation. + * + * For speed optimization and avoid memory allocation, TA-Lib use + * a better algorithm than the usual SMA of a SMA. + * + * The calculation from one TRIMA value to the next is done by doing 4 + * little adjustment (the following show a TRIMA 4-period): + * + * TRIMA at time 'd': ((1*a)+(2*b)+(2*c)+(1*d)) / 6 + * TRIMA at time 'e': ((1*b)+(2*c)+(2*d)+(1*e)) / 6 + * + * To go from TRIMA 'd' to 'e', the following is done: + * 1) 'a' and 'b' are substract from the numerator. + * 2) 'd' is added to the numerator. + * 3) 'e' is added to the numerator. + * 4) Calculate TRIMA by doing numerator / 6 + * 5) Repeat sequence for next output + * + * These operations are the same steps done by TA-LIB: + * 1) is done by numeratorSub + * 2) is done by numeratorAdd. + * 3) is obtain from the latest input + * 4) Calculate and write TRIMA in the output + * 5) Repeat for next output. + * + * Of course, numerotrAdd and numeratorSub needs to be + * adjusted for each iteration. + * + * The update of numeratorSub needs values from the input at + * the trailingIdx and middleIdx position. + * + * The update of numeratorAdd needs values from the input at + * the middleIdx and todayIdx. + */ + + outIdx = 0; + + if( (optInTimePeriod % 2) == 1 ) + { + /* Logic for Odd period */ + + /* Calculate the factor which is 1 divided by the + * sumation of the weight. + * + * The sum of the weight is calculated as follow: + * + * The simple sumation serie 1+2+3... n can be + * express as n(n+1)/2 + * + * From this logic, a "triangular" sumation formula + * can be found depending if the period is odd or even. + * + * Odd Period Formula: + * period = 5 and with n=(int)(period/2) + * the formula for a "triangular" serie is: + * 1+2+3+2+1 = (n*(n+1))+n+1 + * = (n+1)*(n+1) + * = 3 * 3 = 9 + * + * Even period Formula: + * period = 6 and with n=(int)(period/2) + * the formula for a "triangular" serie is: + * 1+2+3+3+2+1 = n*(n+1) + * = 3 * 4 = 12 + */ + + /* Note: entirely done with int and becomes double only + * on assignement to the factor variable. + */ + i = (optInTimePeriod>>1); + factor = (i+1)*(i+1); + factor = 1.0/factor; + + /* Initialize all the variable before + * starting to iterate for each output. + */ + trailingIdx = startIdx-lookbackTotal; + middleIdx = trailingIdx + i; + todayIdx = middleIdx + i; + numerator = 0.0; + numeratorSub = 0.0; + for( i=middleIdx; i >= trailingIdx; i-- ) + { + tempReal = inReal[i]; + numeratorSub += tempReal; + numerator += numeratorSub; + } + numeratorAdd = 0.0; + middleIdx++; + for( i=middleIdx; i <= todayIdx; i++ ) + { + tempReal = inReal[i]; + numeratorAdd += tempReal; + numerator += numeratorAdd; + } + + /* Write the first output */ + outIdx = 0; + tempReal = inReal[trailingIdx++]; + outReal[outIdx++] = numerator * factor; + todayIdx++; + + /* Note: The value at the trailingIdx was saved + * in tempReal to account for the case where + * outReal and inReal are ptr on the same + * buffer. + */ + + /* Iterate for remaining output */ + while( todayIdx <= endIdx ) + { + /* Step (1) */ + numerator -= numeratorSub; + numeratorSub -= tempReal; + tempReal = inReal[middleIdx++]; + numeratorSub += tempReal; + + /* Step (2) */ + numerator += numeratorAdd; + numeratorAdd -= tempReal; + tempReal = inReal[todayIdx++]; + numeratorAdd += tempReal; + + /* Step (3) */ + numerator += tempReal; + + /* Step (4) */ + tempReal = inReal[trailingIdx++]; + outReal[outIdx++] = numerator * factor; + } + } + else + { + /* Even logic. + * + * Very similar to the odd logic, except: + * - calculation of the factor is different. + * - the coverage of the numeratorSub and numeratorAdd is + * slightly different. + * - Adjustment of numeratorAdd is different. See Step (2). + */ + i = (optInTimePeriod>>1); + factor = i*(i+1); + factor = 1.0/factor; + + /* Initialize all the variable before + * starting to iterate for each output. + */ + trailingIdx = startIdx-lookbackTotal; + middleIdx = trailingIdx + i - 1; + todayIdx = middleIdx + i; + numerator = 0.0; + + numeratorSub = 0.0; + + for( i=middleIdx; i >= trailingIdx; i-- ) + { + tempReal = inReal[i]; + numeratorSub += tempReal; + numerator += numeratorSub; + } + numeratorAdd = 0.0; + middleIdx++; + for( i=middleIdx; i <= todayIdx; i++ ) + { + tempReal = inReal[i]; + numeratorAdd += tempReal; + numerator += numeratorAdd; + } + + /* Write the first output */ + outIdx = 0; + tempReal = inReal[trailingIdx++]; + outReal[outIdx++] = numerator * factor; + todayIdx++; + + /* Note: The value at the trailingIdx was saved + * in tempReal to account for the case where + * outReal and inReal are ptr on the same + * buffer. + */ + + /* Iterate for remaining output */ + while( todayIdx <= endIdx ) + { + /* Step (1) */ + numerator -= numeratorSub; + numeratorSub -= tempReal; + tempReal = inReal[middleIdx++]; + numeratorSub += tempReal; + + /* Step (2) */ + numeratorAdd -= tempReal; + numerator += numeratorAdd; + tempReal = inReal[todayIdx++]; + numeratorAdd += tempReal; + + /* Step (3) */ + numerator += tempReal; + + /* Step (4) */ + tempReal = inReal[trailingIdx++]; + outReal[outIdx++] = numerator * factor; + } + + } + + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::Trima( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode trima( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inReal[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_TRIMA( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inReal[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ int lookbackTotal; +/* Generated */ double numerator; +/* Generated */ double numeratorSub; +/* Generated */ double numeratorAdd; +/* Generated */ int i, outIdx, todayIdx, trailingIdx, middleIdx; +/* Generated */ double factor, tempReal; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 30; +/* Generated */ else if( ((int)optInTimePeriod < 2) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ lookbackTotal = (optInTimePeriod-1); +/* Generated */ if( startIdx < lookbackTotal ) +/* Generated */ startIdx = lookbackTotal; +/* Generated */ if( startIdx > endIdx ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ outIdx = 0; +/* Generated */ if( (optInTimePeriod % 2) == 1 ) +/* Generated */ { +/* Generated */ i = (optInTimePeriod>>1); +/* Generated */ factor = (i+1)*(i+1); +/* Generated */ factor = 1.0/factor; +/* Generated */ trailingIdx = startIdx-lookbackTotal; +/* Generated */ middleIdx = trailingIdx + i; +/* Generated */ todayIdx = middleIdx + i; +/* Generated */ numerator = 0.0; +/* Generated */ numeratorSub = 0.0; +/* Generated */ for( i=middleIdx; i >= trailingIdx; i-- ) +/* Generated */ { +/* Generated */ tempReal = inReal[i]; +/* Generated */ numeratorSub += tempReal; +/* Generated */ numerator += numeratorSub; +/* Generated */ } +/* Generated */ numeratorAdd = 0.0; +/* Generated */ middleIdx++; +/* Generated */ for( i=middleIdx; i <= todayIdx; i++ ) +/* Generated */ { +/* Generated */ tempReal = inReal[i]; +/* Generated */ numeratorAdd += tempReal; +/* Generated */ numerator += numeratorAdd; +/* Generated */ } +/* Generated */ outIdx = 0; +/* Generated */ tempReal = inReal[trailingIdx++]; +/* Generated */ outReal[outIdx++] = numerator * factor; +/* Generated */ todayIdx++; +/* Generated */ while( todayIdx <= endIdx ) +/* Generated */ { +/* Generated */ numerator -= numeratorSub; +/* Generated */ numeratorSub -= tempReal; +/* Generated */ tempReal = inReal[middleIdx++]; +/* Generated */ numeratorSub += tempReal; +/* Generated */ numerator += numeratorAdd; +/* Generated */ numeratorAdd -= tempReal; +/* Generated */ tempReal = inReal[todayIdx++]; +/* Generated */ numeratorAdd += tempReal; +/* Generated */ numerator += tempReal; +/* Generated */ tempReal = inReal[trailingIdx++]; +/* Generated */ outReal[outIdx++] = numerator * factor; +/* Generated */ } +/* Generated */ } +/* Generated */ else +/* Generated */ { +/* Generated */ i = (optInTimePeriod>>1); +/* Generated */ factor = i*(i+1); +/* Generated */ factor = 1.0/factor; +/* Generated */ trailingIdx = startIdx-lookbackTotal; +/* Generated */ middleIdx = trailingIdx + i - 1; +/* Generated */ todayIdx = middleIdx + i; +/* Generated */ numerator = 0.0; +/* Generated */ numeratorSub = 0.0; +/* Generated */ for( i=middleIdx; i >= trailingIdx; i-- ) +/* Generated */ { +/* Generated */ tempReal = inReal[i]; +/* Generated */ numeratorSub += tempReal; +/* Generated */ numerator += numeratorSub; +/* Generated */ } +/* Generated */ numeratorAdd = 0.0; +/* Generated */ middleIdx++; +/* Generated */ for( i=middleIdx; i <= todayIdx; i++ ) +/* Generated */ { +/* Generated */ tempReal = inReal[i]; +/* Generated */ numeratorAdd += tempReal; +/* Generated */ numerator += numeratorAdd; +/* Generated */ } +/* Generated */ outIdx = 0; +/* Generated */ tempReal = inReal[trailingIdx++]; +/* Generated */ outReal[outIdx++] = numerator * factor; +/* Generated */ todayIdx++; +/* Generated */ while( todayIdx <= endIdx ) +/* Generated */ { +/* Generated */ numerator -= numeratorSub; +/* Generated */ numeratorSub -= tempReal; +/* Generated */ tempReal = inReal[middleIdx++]; +/* Generated */ numeratorSub += tempReal; +/* Generated */ numeratorAdd -= tempReal; +/* Generated */ numerator += numeratorAdd; +/* Generated */ tempReal = inReal[todayIdx++]; +/* Generated */ numeratorAdd += tempReal; +/* Generated */ numerator += tempReal; +/* Generated */ tempReal = inReal[trailingIdx++]; +/* Generated */ outReal[outIdx++] = numerator * factor; +/* Generated */ } +/* Generated */ } +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_TRIX.c b/src/ta_func/ta_TRIX.c new file mode 100644 index 000000000..4466a7bb2 --- /dev/null +++ b/src/ta_func/ta_TRIX.c @@ -0,0 +1,449 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * MF Mario Fortier + * AA Andrew Atkinson + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 112400 MF Template creation. + * 052603 MF Adapt code to compile with .NET Managed C++ + * 020605 AA Fix #1117656. NULL pointer assignement. + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::TrixLookback( int optInTimePeriod ) /* From 1 to 100000 */ +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int trixLookback( int optInTimePeriod ) /* From 1 to 100000 */ +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_TRIX_Lookback( int optInTimePeriod ) /* From 1 to 100000 */ +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + int emaLookback; +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ /* min/max are checked for optInTimePeriod. */ +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 30; +/* Generated */ else if( ((int)optInTimePeriod < 1) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return -1; +/* Generated */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + emaLookback = LOOKBACK_CALL(EMA)( optInTimePeriod ); + return (emaLookback*3) + LOOKBACK_CALL(ROCR)( 1 ); +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_TRIX - 1-day Rate-Of-Change (ROC) of a Triple Smooth EMA + * + * Input = double + * Output = double + * + * Optional Parameters + * ------------------- + * optInTimePeriod:(From 1 to 100000) + * Number of period + * + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::Trix( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inReal, +/* Generated */ int optInTimePeriod, /* From 1 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::Trix( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ int optInTimePeriod, /* From 1 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode trix( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inReal[], +/* Generated */ int optInTimePeriod, /* From 1 to 100000 */ +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_TRIX( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inReal[], +/* Generated */ int optInTimePeriod, /* From 1 to 100000 */ +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* Insert local variables here. */ + double k; + ARRAY_REF(tempBuffer); + VALUE_HANDLE_INT(nbElement); + VALUE_HANDLE_INT(begIdx); + int totalLookback; + int emaLookback, rocLookback; + ENUM_DECLARATION(RetCode) retCode; + int nbElementToOutput; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ /* min/max are checked for optInTimePeriod. */ +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 30; +/* Generated */ else if( ((int)optInTimePeriod < 1) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Insert TA function code here. */ + + /* Adjust the startIdx to account for the lookback. */ + emaLookback = LOOKBACK_CALL(EMA)( optInTimePeriod ); + rocLookback = LOOKBACK_CALL(ROCR)( 1 ); + totalLookback = (emaLookback*3) + rocLookback; + + if( startIdx < totalLookback ) + startIdx = totalLookback; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + + nbElementToOutput = (endIdx-startIdx)+1+totalLookback; + + /* Allocate a temporary buffer for performing + * the calculation. + */ + ARRAY_ALLOC(tempBuffer, nbElementToOutput ); + #if !defined( _JAVA ) + if( !tempBuffer ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + return ENUM_VALUE(RetCode,TA_ALLOC_ERR,AllocErr); + } + #endif + + /* Calculate the first EMA */ + k = PER_TO_K(optInTimePeriod); + retCode = FUNCTION_CALL(INT_EMA)( (startIdx-totalLookback), endIdx, inReal, + optInTimePeriod, k, + VALUE_HANDLE_OUT(begIdx), VALUE_HANDLE_OUT(nbElement), + tempBuffer ); + + /* Verify for failure or if not enough data after + * calculating the EMA. + */ + if( (retCode != ENUM_VALUE(RetCode,TA_SUCCESS,Success) ) || (VALUE_HANDLE_GET(nbElement) == 0) ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + ARRAY_FREE( tempBuffer ); + return retCode; + } + + nbElementToOutput--; /* Make this variable zero base from now on. */ + + /* Calculate the second EMA */ + nbElementToOutput -= emaLookback; + retCode = FUNCTION_CALL_DOUBLE(INT_EMA)( 0, nbElementToOutput, tempBuffer, + optInTimePeriod, k, + VALUE_HANDLE_OUT(begIdx), VALUE_HANDLE_OUT(nbElement), + tempBuffer ); + + /* Verify for failure or if not enough data after + * calculating the EMA. + */ + if( (retCode != ENUM_VALUE(RetCode,TA_SUCCESS,Success) ) || (VALUE_HANDLE_GET(nbElement) == 0) ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + ARRAY_FREE( tempBuffer ); + return retCode; + } + + /* Calculate the third EMA */ + nbElementToOutput -= emaLookback; + retCode = FUNCTION_CALL_DOUBLE(INT_EMA)( 0, nbElementToOutput, tempBuffer, + optInTimePeriod, k, + VALUE_HANDLE_OUT(begIdx), VALUE_HANDLE_OUT(nbElement), + tempBuffer ); + + /* Verify for failure or if not enough data after + * calculating the EMA. + */ + if( (retCode != ENUM_VALUE(RetCode,TA_SUCCESS,Success) ) || (VALUE_HANDLE_GET(nbElement) == 0) ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + ARRAY_FREE( tempBuffer ); + return retCode; + } + + /* Calculate the 1-day Rate-Of-Change */ + nbElementToOutput -= emaLookback; + retCode = FUNCTION_CALL_DOUBLE(ROC)( 0, nbElementToOutput, + tempBuffer, + 1, VALUE_HANDLE_OUT(begIdx), outNBElement, + outReal ); + + ARRAY_FREE( tempBuffer ); + /* Verify for failure or if not enough data after + * calculating the rate-of-change. + */ + if( (retCode != ENUM_VALUE(RetCode,TA_SUCCESS,Success) ) || ((int)VALUE_HANDLE_DEREF(outNBElement) == 0) ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + return retCode; + } + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::Trix( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ int optInTimePeriod, /* From 1 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode trix( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inReal[], +/* Generated */ int optInTimePeriod, /* From 1 to 100000 */ +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_TRIX( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inReal[], +/* Generated */ int optInTimePeriod, /* From 1 to 100000 */ +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ double k; +/* Generated */ ARRAY_REF(tempBuffer); +/* Generated */ VALUE_HANDLE_INT(nbElement); +/* Generated */ VALUE_HANDLE_INT(begIdx); +/* Generated */ int totalLookback; +/* Generated */ int emaLookback, rocLookback; +/* Generated */ ENUM_DECLARATION(RetCode) retCode; +/* Generated */ int nbElementToOutput; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 30; +/* Generated */ else if( ((int)optInTimePeriod < 1) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ emaLookback = LOOKBACK_CALL(EMA)( optInTimePeriod ); +/* Generated */ rocLookback = LOOKBACK_CALL(ROCR)( 1 ); +/* Generated */ totalLookback = (emaLookback*3) + rocLookback; +/* Generated */ if( startIdx < totalLookback ) +/* Generated */ startIdx = totalLookback; +/* Generated */ if( startIdx > endIdx ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ nbElementToOutput = (endIdx-startIdx)+1+totalLookback; +/* Generated */ ARRAY_ALLOC(tempBuffer, nbElementToOutput ); +/* Generated */ #if !defined( _JAVA ) +/* Generated */ if( !tempBuffer ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ return ENUM_VALUE(RetCode,TA_ALLOC_ERR,AllocErr); +/* Generated */ } +/* Generated */ #endif +/* Generated */ k = PER_TO_K(optInTimePeriod); +/* Generated */ retCode = FUNCTION_CALL(INT_EMA)( (startIdx-totalLookback), endIdx, inReal, +/* Generated */ optInTimePeriod, k, +/* Generated */ VALUE_HANDLE_OUT(begIdx), VALUE_HANDLE_OUT(nbElement), +/* Generated */ tempBuffer ); +/* Generated */ if( (retCode != ENUM_VALUE(RetCode,TA_SUCCESS,Success) ) || (VALUE_HANDLE_GET(nbElement) == 0) ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ ARRAY_FREE( tempBuffer ); +/* Generated */ return retCode; +/* Generated */ } +/* Generated */ nbElementToOutput--; +/* Generated */ nbElementToOutput -= emaLookback; +/* Generated */ retCode = FUNCTION_CALL_DOUBLE(INT_EMA)( 0, nbElementToOutput, tempBuffer, +/* Generated */ optInTimePeriod, k, +/* Generated */ VALUE_HANDLE_OUT(begIdx), VALUE_HANDLE_OUT(nbElement), +/* Generated */ tempBuffer ); +/* Generated */ if( (retCode != ENUM_VALUE(RetCode,TA_SUCCESS,Success) ) || (VALUE_HANDLE_GET(nbElement) == 0) ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ ARRAY_FREE( tempBuffer ); +/* Generated */ return retCode; +/* Generated */ } +/* Generated */ nbElementToOutput -= emaLookback; +/* Generated */ retCode = FUNCTION_CALL_DOUBLE(INT_EMA)( 0, nbElementToOutput, tempBuffer, +/* Generated */ optInTimePeriod, k, +/* Generated */ VALUE_HANDLE_OUT(begIdx), VALUE_HANDLE_OUT(nbElement), +/* Generated */ tempBuffer ); +/* Generated */ if( (retCode != ENUM_VALUE(RetCode,TA_SUCCESS,Success) ) || (VALUE_HANDLE_GET(nbElement) == 0) ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ ARRAY_FREE( tempBuffer ); +/* Generated */ return retCode; +/* Generated */ } +/* Generated */ nbElementToOutput -= emaLookback; +/* Generated */ retCode = FUNCTION_CALL_DOUBLE(ROC)( 0, nbElementToOutput, +/* Generated */ tempBuffer, +/* Generated */ 1, VALUE_HANDLE_OUT(begIdx), outNBElement, +/* Generated */ outReal ); +/* Generated */ ARRAY_FREE( tempBuffer ); +/* Generated */ if( (retCode != ENUM_VALUE(RetCode,TA_SUCCESS,Success) ) || ((int)VALUE_HANDLE_DEREF(outNBElement) == 0) ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ return retCode; +/* Generated */ } +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_TSF.c b/src/ta_func/ta_TSF.c new file mode 100644 index 000000000..6015c1ccc --- /dev/null +++ b/src/ta_func/ta_TSF.c @@ -0,0 +1,354 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * MF Mario Fortier + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 090103 MF Initial coding re-using the existing TA_LinearReg + * + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::TsfLookback( int optInTimePeriod ) /* From 2 to 100000 */ +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int tsfLookback( int optInTimePeriod ) /* From 2 to 100000 */ +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_TSF_Lookback( int optInTimePeriod ) /* From 2 to 100000 */ +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ /* min/max are checked for optInTimePeriod. */ +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 14; +/* Generated */ else if( ((int)optInTimePeriod < 2) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return -1; +/* Generated */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + return optInTimePeriod-1; +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_TSF - Time Series Forecast + * + * Input = double + * Output = double + * + * Optional Parameters + * ------------------- + * optInTimePeriod:(From 2 to 100000) + * Number of period + * + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::Tsf( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inReal, +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::Tsf( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode tsf( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inReal[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_TSF( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inReal[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + int outIdx; + + int today, lookbackTotal; + double SumX, SumXY, SumY, SumXSqr, Divisor; + + double m, b; + int i; + + double tempValue1; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ /* min/max are checked for optInTimePeriod. */ +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 14; +/* Generated */ else if( ((int)optInTimePeriod < 2) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Insert TA function code here. */ + + /* Linear Regression is a concept also known as the + * "least squares method" or "best fit." Linear + * Regression attempts to fit a straight line between + * several data points in such a way that distance + * between each data point and the line is minimized. + * + * For each point, a straight line over the specified + * previous bar period is determined in terms + * of y = b + m*x: + * + * TA_LINEARREG : Returns b+m*(period-1) + * TA_LINEARREG_SLOPE : Returns 'm' + * TA_LINEARREG_ANGLE : Returns 'm' in degree. + * TA_LINEARREG_INTERCEPT: Returns 'b' + * TA_TSF : Returns b+m*(period) + */ + + /* Adjust startIdx to account for the lookback period. */ + lookbackTotal = LOOKBACK_CALL(TSF)( optInTimePeriod ); + + if( startIdx < lookbackTotal ) + startIdx = lookbackTotal; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + + outIdx = 0; /* Index into the output. */ + today = startIdx; + + SumX = optInTimePeriod * ( optInTimePeriod - 1 ) * 0.5; + SumXSqr = optInTimePeriod * ( optInTimePeriod - 1 ) * ( 2 * optInTimePeriod - 1 ) / 6; + Divisor = SumX * SumX - optInTimePeriod * SumXSqr; + + while( today <= endIdx ) + { + SumXY = 0; + SumY = 0; + for( i = optInTimePeriod; i-- != 0; ) + { + SumY += tempValue1 = inReal[today - i]; + SumXY += (double)i * tempValue1; + } + m = ( optInTimePeriod * SumXY - SumX * SumY) / Divisor; + b = ( SumY - m * SumX ) / (double)optInTimePeriod; + outReal[outIdx++] = b + m * (double)optInTimePeriod; + today++; + } + + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::Tsf( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode tsf( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inReal[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_TSF( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inReal[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ int outIdx; +/* Generated */ int today, lookbackTotal; +/* Generated */ double SumX, SumXY, SumY, SumXSqr, Divisor; +/* Generated */ double m, b; +/* Generated */ int i; +/* Generated */ double tempValue1; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 14; +/* Generated */ else if( ((int)optInTimePeriod < 2) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ lookbackTotal = LOOKBACK_CALL(TSF)( optInTimePeriod ); +/* Generated */ if( startIdx < lookbackTotal ) +/* Generated */ startIdx = lookbackTotal; +/* Generated */ if( startIdx > endIdx ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ outIdx = 0; +/* Generated */ today = startIdx; +/* Generated */ SumX = optInTimePeriod * ( optInTimePeriod - 1 ) * 0.5; +/* Generated */ SumXSqr = optInTimePeriod * ( optInTimePeriod - 1 ) * ( 2 * optInTimePeriod - 1 ) / 6; +/* Generated */ Divisor = SumX * SumX - optInTimePeriod * SumXSqr; +/* Generated */ while( today <= endIdx ) +/* Generated */ { +/* Generated */ SumXY = 0; +/* Generated */ SumY = 0; +/* Generated */ for( i = optInTimePeriod; i-- != 0; ) +/* Generated */ { +/* Generated */ SumY += tempValue1 = inReal[today - i]; +/* Generated */ SumXY += (double)i * tempValue1; +/* Generated */ } +/* Generated */ m = ( optInTimePeriod * SumXY - SumX * SumY) / Divisor; +/* Generated */ b = ( SumY - m * SumX ) / (double)optInTimePeriod; +/* Generated */ outReal[outIdx++] = b + m * (double)optInTimePeriod; +/* Generated */ today++; +/* Generated */ } +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_TYPPRICE.c b/src/ta_func/ta_TYPPRICE.c new file mode 100644 index 000000000..147c4dfe5 --- /dev/null +++ b/src/ta_func/ta_TYPPRICE.c @@ -0,0 +1,271 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * MF Mario Fortier + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 112400 MF Template creation. + * 052603 MF Adapt code to compile with .NET Managed C++ + * 112605 MF Fix outBegIdx when startIdx != 0 + * + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::TypPriceLookback( void ) +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int typPriceLookback( ) +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_TYPPRICE_Lookback( void ) +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ /* No parameters to validate. */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + + /* This function have no lookback needed. */ + + return 0; +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_TYPPRICE - Typical Price + * + * Input = High, Low, Close + * Output = double + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::TypPrice( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inHigh, +/* Generated */ SubArray^ inLow, +/* Generated */ SubArray^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::TypPrice( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode typPrice( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inHigh[], +/* Generated */ double inLow[], +/* Generated */ double inClose[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_TYPPRICE( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inHigh[], +/* Generated */ const double inLow[], +/* Generated */ const double inClose[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* Insert local variables here. */ + int outIdx, i; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ /* Verify required price component. */ +/* Generated */ if(!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Insert TA function code here. */ + + /* Typical price = (High + Low + Close ) / 3 */ + outIdx = 0; + + for( i= startIdx; i <= endIdx; i++ ) + { + outReal[outIdx++] = ( inHigh [i] + + inLow [i] + + inClose[i] ) / 3.0; + } + + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::TypPrice( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode typPrice( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inHigh[], +/* Generated */ float inLow[], +/* Generated */ float inClose[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_TYPPRICE( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inHigh[], +/* Generated */ const float inLow[], +/* Generated */ const float inClose[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ int outIdx, i; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if(!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ outIdx = 0; +/* Generated */ for( i= startIdx; i <= endIdx; i++ ) +/* Generated */ { +/* Generated */ outReal[outIdx++] = ( inHigh [i] + +/* Generated */ inLow [i] + +/* Generated */ inClose[i] ) / 3.0; +/* Generated */ } +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_ULTOSC.c b/src/ta_func/ta_ULTOSC.c new file mode 100644 index 000000000..d2bbfdfb1 --- /dev/null +++ b/src/ta_func/ta_ULTOSC.c @@ -0,0 +1,579 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * DM Drew McCormack (http://www.trade-strategist.com) + * MF Mario Fortier + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 281206 DM Initial Implementation + * 010606 MF Abstract local arrays. Detect divide by zero. + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::UltOscLookback( int optInTimePeriod1, /* From 1 to 100000 */ +/* Generated */ int optInTimePeriod2, /* From 1 to 100000 */ +/* Generated */ int optInTimePeriod3 ) /* From 1 to 100000 */ +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int ultOscLookback( int optInTimePeriod1, /* From 1 to 100000 */ +/* Generated */ int optInTimePeriod2, /* From 1 to 100000 */ +/* Generated */ int optInTimePeriod3 ) /* From 1 to 100000 */ +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_ULTOSC_Lookback( int optInTimePeriod1, /* From 1 to 100000 */ +/* Generated */ int optInTimePeriod2, /* From 1 to 100000 */ +/* Generated */ int optInTimePeriod3 ) /* From 1 to 100000 */ +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + int maxPeriod; +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ /* min/max are checked for optInTimePeriod1. */ +/* Generated */ if( (int)optInTimePeriod1 == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod1 = 7; +/* Generated */ else if( ((int)optInTimePeriod1 < 1) || ((int)optInTimePeriod1 > 100000) ) +/* Generated */ return -1; +/* Generated */ +/* Generated */ /* min/max are checked for optInTimePeriod2. */ +/* Generated */ if( (int)optInTimePeriod2 == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod2 = 14; +/* Generated */ else if( ((int)optInTimePeriod2 < 1) || ((int)optInTimePeriod2 > 100000) ) +/* Generated */ return -1; +/* Generated */ +/* Generated */ /* min/max are checked for optInTimePeriod3. */ +/* Generated */ if( (int)optInTimePeriod3 == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod3 = 28; +/* Generated */ else if( ((int)optInTimePeriod3 < 1) || ((int)optInTimePeriod3 > 100000) ) +/* Generated */ return -1; +/* Generated */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* Lookback for the Ultimate Oscillator is the lookback of the SMA with the longest + * time period, plus 1 for the True Range. + */ + maxPeriod = max( max(optInTimePeriod1, optInTimePeriod2), optInTimePeriod3); + return LOOKBACK_CALL(SMA)( maxPeriod ) + 1; +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_ULTOSC - Ultimate Oscillator + * + * Input = High, Low, Close + * Output = double + * + * Optional Parameters + * ------------------- + * optInTimePeriod1:(From 1 to 100000) + * Number of bars for 1st period. + * + * optInTimePeriod2:(From 1 to 100000) + * Number of bars fro 2nd period + * + * optInTimePeriod3:(From 1 to 100000) + * Number of bars for 3rd period + * + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::UltOsc( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inHigh, +/* Generated */ SubArray^ inLow, +/* Generated */ SubArray^ inClose, +/* Generated */ int optInTimePeriod1, /* From 1 to 100000 */ +/* Generated */ int optInTimePeriod2, /* From 1 to 100000 */ +/* Generated */ int optInTimePeriod3, /* From 1 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::UltOsc( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ int optInTimePeriod1, /* From 1 to 100000 */ +/* Generated */ int optInTimePeriod2, /* From 1 to 100000 */ +/* Generated */ int optInTimePeriod3, /* From 1 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode ultOsc( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inHigh[], +/* Generated */ double inLow[], +/* Generated */ double inClose[], +/* Generated */ int optInTimePeriod1, /* From 1 to 100000 */ +/* Generated */ int optInTimePeriod2, /* From 1 to 100000 */ +/* Generated */ int optInTimePeriod3, /* From 1 to 100000 */ +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_ULTOSC( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inHigh[], +/* Generated */ const double inLow[], +/* Generated */ const double inClose[], +/* Generated */ int optInTimePeriod1, /* From 1 to 100000 */ +/* Generated */ int optInTimePeriod2, /* From 1 to 100000 */ +/* Generated */ int optInTimePeriod3, /* From 1 to 100000 */ +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + double a1Total, a2Total, a3Total; + double b1Total, b2Total, b3Total; + double trueLow, trueRange, closeMinusTrueLow; + double tempDouble, output, tempHT, tempLT, tempCY; + int lookbackTotal; + int longestPeriod, longestIndex; + int i,j,today,outIdx; + int trailingIdx1, trailingIdx2, trailingIdx3; + + ARRAY_INT_LOCAL(usedFlag,3); + ARRAY_INT_LOCAL(periods,3); + ARRAY_INT_LOCAL(sortedPeriods,3); + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ /* Verify required price component. */ +/* Generated */ if(!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ /* min/max are checked for optInTimePeriod1. */ +/* Generated */ if( (int)optInTimePeriod1 == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod1 = 7; +/* Generated */ else if( ((int)optInTimePeriod1 < 1) || ((int)optInTimePeriod1 > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ /* min/max are checked for optInTimePeriod2. */ +/* Generated */ if( (int)optInTimePeriod2 == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod2 = 14; +/* Generated */ else if( ((int)optInTimePeriod2 < 1) || ((int)optInTimePeriod2 > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ /* min/max are checked for optInTimePeriod3. */ +/* Generated */ if( (int)optInTimePeriod3 == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod3 = 28; +/* Generated */ else if( ((int)optInTimePeriod3 < 1) || ((int)optInTimePeriod3 > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + + /* Ensure that the time periods are ordered from shortest to longest. + * Sort. */ + periods[0] = optInTimePeriod1; + periods[1] = optInTimePeriod2; + periods[2] = optInTimePeriod3; + usedFlag[0] = 0; + usedFlag[1] = 0; + usedFlag[2] = 0; + for ( i = 0; i < 3; ++i ) + { + longestPeriod = 0; + longestIndex = 0; + for ( j = 0; j < 3; ++j ) + { + if ( (usedFlag[j] == 0) && (periods[j] > longestPeriod) ) + { + longestPeriod = periods[j]; + longestIndex = j; + } + } + usedFlag[longestIndex] = 1; + sortedPeriods[i] = longestPeriod; + } + optInTimePeriod1 = sortedPeriods[2]; + optInTimePeriod2 = sortedPeriods[1]; + optInTimePeriod3 = sortedPeriods[0]; + + /* Adjust startIdx for lookback period. */ + lookbackTotal = LOOKBACK_CALL(ULTOSC)( optInTimePeriod1, optInTimePeriod2, optInTimePeriod3 ); + if( startIdx < lookbackTotal ) startIdx = lookbackTotal; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + + /* Prime running totals used in moving averages */ + #define CALC_TERMS(day) \ + { \ + tempLT = inLow[day]; \ + tempHT = inHigh[day]; \ + tempCY = inClose[day-1]; \ + trueLow = min( tempLT, tempCY ); \ + closeMinusTrueLow = inClose[day] - trueLow; \ + trueRange = tempHT - tempLT; \ + tempDouble = std_fabs( tempCY - tempHT ); \ + if( tempDouble > trueRange ) \ + trueRange = tempDouble; \ + tempDouble = std_fabs( tempCY - tempLT ); \ + if( tempDouble > trueRange ) \ + trueRange = tempDouble; \ + } + + #define PRIME_TOTALS(aTotal, bTotal, period) \ + { \ + aTotal = 0; \ + bTotal = 0; \ + for ( i = startIdx-period+1; i < startIdx; ++i ) \ + { \ + CALC_TERMS(i); \ + aTotal += closeMinusTrueLow; \ + bTotal += trueRange; \ + } \ + } + + PRIME_TOTALS(a1Total, b1Total, optInTimePeriod1); + PRIME_TOTALS(a2Total, b2Total, optInTimePeriod2); + PRIME_TOTALS(a3Total, b3Total, optInTimePeriod3); + + #undef PRIME_TOTALS + + /* Calculate oscillator */ + today = startIdx; + outIdx = 0; + trailingIdx1 = today - optInTimePeriod1 + 1; + trailingIdx2 = today - optInTimePeriod2 + 1; + trailingIdx3 = today - optInTimePeriod3 + 1; + while( today <= endIdx ) + { + /* Add on today's terms */ + CALC_TERMS(today); + a1Total += closeMinusTrueLow; + a2Total += closeMinusTrueLow; + a3Total += closeMinusTrueLow; + b1Total += trueRange; + b2Total += trueRange; + b3Total += trueRange; + + /* Calculate the oscillator value for today */ + output = 0.0; + + if( !TA_IS_ZERO(b1Total) ) output += 4.0*(a1Total/b1Total); + if( !TA_IS_ZERO(b2Total) ) output += 2.0*(a2Total/b2Total); + if( !TA_IS_ZERO(b3Total) ) output += a3Total/b3Total; + + /* Remove the trailing terms to prepare for next day */ + CALC_TERMS(trailingIdx1); + a1Total -= closeMinusTrueLow; + b1Total -= trueRange; + + CALC_TERMS(trailingIdx2); + a2Total -= closeMinusTrueLow; + b2Total -= trueRange; + + CALC_TERMS(trailingIdx3); + a3Total -= closeMinusTrueLow; + b3Total -= trueRange; + + /* Last operation is to write the output. Must + * be done after the trailing index have all been + * taken care of because the caller is allowed + * to have the input array to be also the output + * array. + */ + outReal[outIdx] = 100.0 * (output / 7.0); + + /* Increment indexes */ + outIdx++; + today++; + trailingIdx1++; + trailingIdx2++; + trailingIdx3++; + } + #undef CALC_TERMS + + /* All done. Indicate the output limits and return. */ + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::UltOsc( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ int optInTimePeriod1, /* From 1 to 100000 */ +/* Generated */ int optInTimePeriod2, /* From 1 to 100000 */ +/* Generated */ int optInTimePeriod3, /* From 1 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode ultOsc( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inHigh[], +/* Generated */ float inLow[], +/* Generated */ float inClose[], +/* Generated */ int optInTimePeriod1, /* From 1 to 100000 */ +/* Generated */ int optInTimePeriod2, /* From 1 to 100000 */ +/* Generated */ int optInTimePeriod3, /* From 1 to 100000 */ +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_ULTOSC( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inHigh[], +/* Generated */ const float inLow[], +/* Generated */ const float inClose[], +/* Generated */ int optInTimePeriod1, /* From 1 to 100000 */ +/* Generated */ int optInTimePeriod2, /* From 1 to 100000 */ +/* Generated */ int optInTimePeriod3, /* From 1 to 100000 */ +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ double a1Total, a2Total, a3Total; +/* Generated */ double b1Total, b2Total, b3Total; +/* Generated */ double trueLow, trueRange, closeMinusTrueLow; +/* Generated */ double tempDouble, output, tempHT, tempLT, tempCY; +/* Generated */ int lookbackTotal; +/* Generated */ int longestPeriod, longestIndex; +/* Generated */ int i,j,today,outIdx; +/* Generated */ int trailingIdx1, trailingIdx2, trailingIdx3; +/* Generated */ ARRAY_INT_LOCAL(usedFlag,3); +/* Generated */ ARRAY_INT_LOCAL(periods,3); +/* Generated */ ARRAY_INT_LOCAL(sortedPeriods,3); +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if(!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ if( (int)optInTimePeriod1 == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod1 = 7; +/* Generated */ else if( ((int)optInTimePeriod1 < 1) || ((int)optInTimePeriod1 > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ if( (int)optInTimePeriod2 == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod2 = 14; +/* Generated */ else if( ((int)optInTimePeriod2 < 1) || ((int)optInTimePeriod2 > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ if( (int)optInTimePeriod3 == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod3 = 28; +/* Generated */ else if( ((int)optInTimePeriod3 < 1) || ((int)optInTimePeriod3 > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ periods[0] = optInTimePeriod1; +/* Generated */ periods[1] = optInTimePeriod2; +/* Generated */ periods[2] = optInTimePeriod3; +/* Generated */ usedFlag[0] = 0; +/* Generated */ usedFlag[1] = 0; +/* Generated */ usedFlag[2] = 0; +/* Generated */ for ( i = 0; i < 3; ++i ) +/* Generated */ { +/* Generated */ longestPeriod = 0; +/* Generated */ longestIndex = 0; +/* Generated */ for ( j = 0; j < 3; ++j ) +/* Generated */ { +/* Generated */ if ( (usedFlag[j] == 0) && (periods[j] > longestPeriod) ) +/* Generated */ { +/* Generated */ longestPeriod = periods[j]; +/* Generated */ longestIndex = j; +/* Generated */ } +/* Generated */ } +/* Generated */ usedFlag[longestIndex] = 1; +/* Generated */ sortedPeriods[i] = longestPeriod; +/* Generated */ } +/* Generated */ optInTimePeriod1 = sortedPeriods[2]; +/* Generated */ optInTimePeriod2 = sortedPeriods[1]; +/* Generated */ optInTimePeriod3 = sortedPeriods[0]; +/* Generated */ lookbackTotal = LOOKBACK_CALL(ULTOSC)( optInTimePeriod1, optInTimePeriod2, optInTimePeriod3 ); +/* Generated */ if( startIdx < lookbackTotal ) startIdx = lookbackTotal; +/* Generated */ if( startIdx > endIdx ) return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ #define CALC_TERMS(day) \ +/* Generated */ { \ +/* Generated */ tempLT = inLow[day]; \ +/* Generated */ tempHT = inHigh[day]; \ +/* Generated */ tempCY = inClose[day-1]; \ +/* Generated */ trueLow = min( tempLT, tempCY ); \ +/* Generated */ closeMinusTrueLow = inClose[day] - trueLow; \ +/* Generated */ trueRange = tempHT - tempLT; \ +/* Generated */ tempDouble = std_fabs( tempCY - tempHT ); \ +/* Generated */ if( tempDouble > trueRange ) \ +/* Generated */ trueRange = tempDouble; \ +/* Generated */ tempDouble = std_fabs( tempCY - tempLT ); \ +/* Generated */ if( tempDouble > trueRange ) \ +/* Generated */ trueRange = tempDouble; \ +/* Generated */ } +/* Generated */ #define PRIME_TOTALS(aTotal, bTotal, period) \ +/* Generated */ { \ +/* Generated */ aTotal = 0; \ +/* Generated */ bTotal = 0; \ +/* Generated */ for ( i = startIdx-period+1; i < startIdx; ++i ) \ +/* Generated */ { \ +/* Generated */ CALC_TERMS(i); \ +/* Generated */ aTotal += closeMinusTrueLow; \ +/* Generated */ bTotal += trueRange; \ +/* Generated */ } \ +/* Generated */ } +/* Generated */ PRIME_TOTALS(a1Total, b1Total, optInTimePeriod1); +/* Generated */ PRIME_TOTALS(a2Total, b2Total, optInTimePeriod2); +/* Generated */ PRIME_TOTALS(a3Total, b3Total, optInTimePeriod3); +/* Generated */ #undef PRIME_TOTALS +/* Generated */ today = startIdx; +/* Generated */ outIdx = 0; +/* Generated */ trailingIdx1 = today - optInTimePeriod1 + 1; +/* Generated */ trailingIdx2 = today - optInTimePeriod2 + 1; +/* Generated */ trailingIdx3 = today - optInTimePeriod3 + 1; +/* Generated */ while( today <= endIdx ) +/* Generated */ { +/* Generated */ CALC_TERMS(today); +/* Generated */ a1Total += closeMinusTrueLow; +/* Generated */ a2Total += closeMinusTrueLow; +/* Generated */ a3Total += closeMinusTrueLow; +/* Generated */ b1Total += trueRange; +/* Generated */ b2Total += trueRange; +/* Generated */ b3Total += trueRange; +/* Generated */ output = 0.0; +/* Generated */ if( !TA_IS_ZERO(b1Total) ) output += 4.0*(a1Total/b1Total); +/* Generated */ if( !TA_IS_ZERO(b2Total) ) output += 2.0*(a2Total/b2Total); +/* Generated */ if( !TA_IS_ZERO(b3Total) ) output += a3Total/b3Total; +/* Generated */ CALC_TERMS(trailingIdx1); +/* Generated */ a1Total -= closeMinusTrueLow; +/* Generated */ b1Total -= trueRange; +/* Generated */ CALC_TERMS(trailingIdx2); +/* Generated */ a2Total -= closeMinusTrueLow; +/* Generated */ b2Total -= trueRange; +/* Generated */ CALC_TERMS(trailingIdx3); +/* Generated */ a3Total -= closeMinusTrueLow; +/* Generated */ b3Total -= trueRange; +/* Generated */ outReal[outIdx] = 100.0 * (output / 7.0); +/* Generated */ outIdx++; +/* Generated */ today++; +/* Generated */ trailingIdx1++; +/* Generated */ trailingIdx2++; +/* Generated */ trailingIdx3++; +/* Generated */ } +/* Generated */ #undef CALC_TERMS +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_VAR.c b/src/ta_func/ta_VAR.c new file mode 100644 index 000000000..e70330c3d --- /dev/null +++ b/src/ta_func/ta_VAR.c @@ -0,0 +1,477 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * MF Mario Fortier + * JV Jesus Viver <324122@cienz.unizar.es> + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 112400 MF Template creation. + * 100502 JV Speed optimization of the algorithm + * 052603 MF Adapt code to compile with .NET Managed C++ + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::VarianceLookback( int optInTimePeriod, /* From 1 to 100000 */ +/* Generated */ double optInNbDev ) /* From TA_REAL_MIN to TA_REAL_MAX */ +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int varianceLookback( int optInTimePeriod, /* From 1 to 100000 */ +/* Generated */ double optInNbDev ) /* From TA_REAL_MIN to TA_REAL_MAX */ +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_VAR_Lookback( int optInTimePeriod, /* From 1 to 100000 */ +/* Generated */ double optInNbDev ) /* From TA_REAL_MIN to TA_REAL_MAX */ +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ /* min/max are checked for optInTimePeriod. */ +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 5; +/* Generated */ else if( ((int)optInTimePeriod < 1) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return -1; +/* Generated */ +/* Generated */ if( optInNbDev == TA_REAL_DEFAULT ) +/* Generated */ optInNbDev = 1.000000e+0; +/* Generated */ else if( (optInNbDev < -3.000000e+37) ||/* Generated */ (optInNbDev > 3.000000e+37) ) +/* Generated */ return -1; +/* Generated */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + UNUSED_VARIABLE(optInNbDev); + + return optInTimePeriod-1; +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_VAR - Variance + * + * Input = double + * Output = double + * + * Optional Parameters + * ------------------- + * optInTimePeriod:(From 1 to 100000) + * Number of period + * + * optInNbDev:(From TA_REAL_MIN to TA_REAL_MAX) + * Nb of deviations + * + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::Variance( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inReal, +/* Generated */ int optInTimePeriod, /* From 1 to 100000 */ +/* Generated */ double optInNbDev, /* From TA_REAL_MIN to TA_REAL_MAX */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::Variance( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ int optInTimePeriod, /* From 1 to 100000 */ +/* Generated */ double optInNbDev, /* From TA_REAL_MIN to TA_REAL_MAX */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode variance( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inReal[], +/* Generated */ int optInTimePeriod, /* From 1 to 100000 */ +/* Generated */ double optInNbDev, /* From TA_REAL_MIN to TA_REAL_MAX */ +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_VAR( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inReal[], +/* Generated */ int optInTimePeriod, /* From 1 to 100000 */ +/* Generated */ double optInNbDev, /* From TA_REAL_MIN to TA_REAL_MAX */ +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* Insert local variables here. */ + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ /* min/max are checked for optInTimePeriod. */ +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 5; +/* Generated */ else if( ((int)optInTimePeriod < 1) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ if( optInNbDev == TA_REAL_DEFAULT ) +/* Generated */ optInNbDev = 1.000000e+0; +/* Generated */ else if( (optInNbDev < -3.000000e+37) ||/* Generated */ (optInNbDev > 3.000000e+37) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Insert TA function code here. */ + return FUNCTION_CALL(INT_VAR)( startIdx, endIdx, inReal, + optInTimePeriod, /* From 1 to TA_INTEGER_MAX */ + outBegIdx, outNBElement, outReal ); +} + + +#if defined( _MANAGED ) && defined( USE_SUBARRAY ) && !defined( USE_SINGLE_PRECISION_INPUT ) +enum class Core::RetCode Core::TA_INT_VAR( int startIdx, + int endIdx, + SubArray^ inReal, + int optInTimePeriod, + [Out]int% outBegIdx, + [Out]int% outNBElement, + cli::array^ outReal ) +#elif defined( _MANAGED ) +enum class Core::RetCode Core::TA_INT_VAR( int startIdx, + int endIdx, + cli::array^ inReal, + int optInTimePeriod, + [Out]int% outBegIdx, + [Out]int% outNBElement, + cli::array^ outReal ) +#elif defined( _JAVA ) +public RetCode TA_INT_VAR( int startIdx, + int endIdx, + INPUT_TYPE inReal[], + int optInTimePeriod, /* From 1 to TA_INTEGER_MAX */ + MInteger outBegIdx, + MInteger outNBElement, + double outReal[] ) +#else +TA_RetCode TA_PREFIX(INT_VAR)( int startIdx, + int endIdx, + const INPUT_TYPE *inReal, + int optInTimePeriod, /* From 1 to TA_INTEGER_MAX */ + int *outBegIdx, + int *outNBElement, + double *outReal ) +#endif +{ + double tempReal, periodTotal1, periodTotal2, meanValue1, meanValue2; + int i, outIdx, trailingIdx, nbInitialElementNeeded; + + /* Validate the calculation method type and + * identify the minimum number of price bar needed + * to calculate at least one output. + */ + nbInitialElementNeeded = (optInTimePeriod-1); + + /* Move up the start index if there is not + * enough initial data. + */ + if( startIdx < nbInitialElementNeeded ) + startIdx = nbInitialElementNeeded; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + + /* Do the MA calculation using tight loops. */ + /* Add-up the initial periods, except for the last value. */ + periodTotal1 = 0; + periodTotal2 = 0; + trailingIdx = startIdx-nbInitialElementNeeded; + + i=trailingIdx; + if( optInTimePeriod > 1 ) + { + while( i < startIdx ) { + tempReal = inReal[i++]; + periodTotal1 += tempReal; + tempReal *= tempReal; + periodTotal2 += tempReal; + } + } + + /* Proceed with the calculation for the requested range. + * Note that this algorithm allows the inReal and + * outReal to be the same buffer. + */ + outIdx = 0; + do + { + tempReal = inReal[i++]; + + /* Square and add all the deviation over + * the same periods. + */ + + periodTotal1 += tempReal; + tempReal *= tempReal; + periodTotal2 += tempReal; + + /* Square and add all the deviation over + * the same period. + */ + + meanValue1 = periodTotal1 / optInTimePeriod; + meanValue2 = periodTotal2 / optInTimePeriod; + + tempReal = inReal[trailingIdx++]; + periodTotal1 -= tempReal; + tempReal *= tempReal; + periodTotal2 -= tempReal; + + outReal[outIdx++] = meanValue2-meanValue1*meanValue1; + } while( i <= endIdx ); + + /* All done. Indicate the output limits and return. */ + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::Variance( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ int optInTimePeriod, /* From 1 to 100000 */ +/* Generated */ double optInNbDev, /* From TA_REAL_MIN to TA_REAL_MAX */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode variance( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inReal[], +/* Generated */ int optInTimePeriod, /* From 1 to 100000 */ +/* Generated */ double optInNbDev, /* From TA_REAL_MIN to TA_REAL_MAX */ +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_VAR( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inReal[], +/* Generated */ int optInTimePeriod, /* From 1 to 100000 */ +/* Generated */ double optInNbDev, /* From TA_REAL_MIN to TA_REAL_MAX */ +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 5; +/* Generated */ else if( ((int)optInTimePeriod < 1) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ if( optInNbDev == TA_REAL_DEFAULT ) +/* Generated */ optInNbDev = 1.000000e+0; +/* Generated */ else if( (optInNbDev < -3.000000e+37) || (optInNbDev > 3.000000e+37) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ return FUNCTION_CALL(INT_VAR)( startIdx, endIdx, inReal, +/* Generated */ optInTimePeriod, +/* Generated */ outBegIdx, outNBElement, outReal ); +/* Generated */ } +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) && !defined( USE_SINGLE_PRECISION_INPUT ) +/* Generated */ enum class Core::RetCode Core::TA_INT_VAR( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inReal, +/* Generated */ int optInTimePeriod, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::TA_INT_VAR( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ int optInTimePeriod, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode TA_INT_VAR( int startIdx, +/* Generated */ int endIdx, +/* Generated */ INPUT_TYPE inReal[], +/* Generated */ int optInTimePeriod, +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_PREFIX(INT_VAR)( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const INPUT_TYPE *inReal, +/* Generated */ int optInTimePeriod, +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double *outReal ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ double tempReal, periodTotal1, periodTotal2, meanValue1, meanValue2; +/* Generated */ int i, outIdx, trailingIdx, nbInitialElementNeeded; +/* Generated */ nbInitialElementNeeded = (optInTimePeriod-1); +/* Generated */ if( startIdx < nbInitialElementNeeded ) +/* Generated */ startIdx = nbInitialElementNeeded; +/* Generated */ if( startIdx > endIdx ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ periodTotal1 = 0; +/* Generated */ periodTotal2 = 0; +/* Generated */ trailingIdx = startIdx-nbInitialElementNeeded; +/* Generated */ i=trailingIdx; +/* Generated */ if( optInTimePeriod > 1 ) +/* Generated */ { +/* Generated */ while( i < startIdx ) { +/* Generated */ tempReal = inReal[i++]; +/* Generated */ periodTotal1 += tempReal; +/* Generated */ tempReal *= tempReal; +/* Generated */ periodTotal2 += tempReal; +/* Generated */ } +/* Generated */ } +/* Generated */ outIdx = 0; +/* Generated */ do +/* Generated */ { +/* Generated */ tempReal = inReal[i++]; +/* Generated */ periodTotal1 += tempReal; +/* Generated */ tempReal *= tempReal; +/* Generated */ periodTotal2 += tempReal; +/* Generated */ meanValue1 = periodTotal1 / optInTimePeriod; +/* Generated */ meanValue2 = periodTotal2 / optInTimePeriod; +/* Generated */ tempReal = inReal[trailingIdx++]; +/* Generated */ periodTotal1 -= tempReal; +/* Generated */ tempReal *= tempReal; +/* Generated */ periodTotal2 -= tempReal; +/* Generated */ outReal[outIdx++] = meanValue2-meanValue1*meanValue1; +/* Generated */ } while( i <= endIdx ); +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_WCLPRICE.c b/src/ta_func/ta_WCLPRICE.c new file mode 100644 index 000000000..77a97771d --- /dev/null +++ b/src/ta_func/ta_WCLPRICE.c @@ -0,0 +1,270 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * MF Mario Fortier + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 112400 MF Template creation. + * 052603 MF Adapt code to compile with .NET Managed C++ + * 112605 MF Fix outBegIdx when startIdx != 0 + * + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::WclPriceLookback( void ) +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int wclPriceLookback( ) +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_WCLPRICE_Lookback( void ) +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ /* No parameters to validate. */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + + /* This function have no lookback needed. */ + return 0; +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_WCLPRICE - Weighted Close Price + * + * Input = High, Low, Close + * Output = double + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::WclPrice( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inHigh, +/* Generated */ SubArray^ inLow, +/* Generated */ SubArray^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::WclPrice( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode wclPrice( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inHigh[], +/* Generated */ double inLow[], +/* Generated */ double inClose[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_WCLPRICE( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inHigh[], +/* Generated */ const double inLow[], +/* Generated */ const double inClose[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* Insert local variables here. */ + int outIdx, i; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ /* Verify required price component. */ +/* Generated */ if(!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Insert TA function code here. */ + + /* Weighted Close Price = (High + Low + (Close*2) ) / 4 */ + + outIdx = 0; + + for( i= startIdx; i <= endIdx; i++ ) + { + outReal[outIdx++] = ( inHigh [i] + + inLow [i] + + (inClose[i]*2.0) ) / 4.0; + } + + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::WclPrice( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode wclPrice( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inHigh[], +/* Generated */ float inLow[], +/* Generated */ float inClose[], +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_WCLPRICE( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inHigh[], +/* Generated */ const float inLow[], +/* Generated */ const float inClose[], +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ int outIdx, i; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if(!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ outIdx = 0; +/* Generated */ for( i= startIdx; i <= endIdx; i++ ) +/* Generated */ { +/* Generated */ outReal[outIdx++] = ( inHigh [i] + +/* Generated */ inLow [i] + +/* Generated */ (inClose[i]*2.0) ) / 4.0; +/* Generated */ } +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_WILLR.c b/src/ta_func/ta_WILLR.c new file mode 100644 index 000000000..34b040f49 --- /dev/null +++ b/src/ta_func/ta_WILLR.c @@ -0,0 +1,453 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * MF Mario Fortier + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 010802 MF Template creation. + * 052603 MF Adapt code to compile with .NET Managed C++ + * + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::WillRLookback( int optInTimePeriod ) /* From 2 to 100000 */ +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int willRLookback( int optInTimePeriod ) /* From 2 to 100000 */ +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_WILLR_Lookback( int optInTimePeriod ) /* From 2 to 100000 */ +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ /* min/max are checked for optInTimePeriod. */ +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 14; +/* Generated */ else if( ((int)optInTimePeriod < 2) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return -1; +/* Generated */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + + return (optInTimePeriod-1); +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_WILLR - Williams' %R + * + * Input = High, Low, Close + * Output = double + * + * Optional Parameters + * ------------------- + * optInTimePeriod:(From 2 to 100000) + * Number of period + * + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::WillR( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inHigh, +/* Generated */ SubArray^ inLow, +/* Generated */ SubArray^ inClose, +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::WillR( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode willR( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inHigh[], +/* Generated */ double inLow[], +/* Generated */ double inClose[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_WILLR( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inHigh[], +/* Generated */ const double inLow[], +/* Generated */ const double inClose[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + double lowest, highest, tmp, diff; + int outIdx, nbInitialElementNeeded; + int trailingIdx, lowestIdx, highestIdx; + int today, i; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ /* Verify required price component. */ +/* Generated */ if(!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ /* min/max are checked for optInTimePeriod. */ +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 14; +/* Generated */ else if( ((int)optInTimePeriod < 2) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Insert TA function code here. */ + + /* Identify the minimum number of price bar needed + * to identify at least one output over the specified + * period. + */ + nbInitialElementNeeded = (optInTimePeriod-1); + + /* Move up the start index if there is not + * enough initial data. + */ + if( startIdx < nbInitialElementNeeded ) + startIdx = nbInitialElementNeeded; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + + /* Initialize 'diff', just to avoid warning. */ + diff = 0.0; + + /* Proceed with the calculation for the requested range. + * Note that this algorithm allows the input and + * output to be the same buffer. + */ + outIdx = 0; + today = startIdx; + trailingIdx = startIdx-nbInitialElementNeeded; + lowestIdx = highestIdx = -1; + diff = highest = lowest = 0.0; + + while( today <= endIdx ) + { + /* Set the lowest low */ + tmp = inLow[today]; + if( lowestIdx < trailingIdx ) + { + lowestIdx = trailingIdx; + lowest = inLow[lowestIdx]; + i = lowestIdx; + while( ++i<=today ) + { + tmp = inLow[i]; + if( tmp < lowest ) + { + lowestIdx = i; + lowest = tmp; + } + } + diff = (highest - lowest)/(-100.0); + } + else if( tmp <= lowest ) + { + lowestIdx = today; + lowest = tmp; + diff = (highest - lowest)/(-100.0); + } + + /* Set the highest high */ + tmp = inHigh[today]; + if( highestIdx < trailingIdx ) + { + highestIdx = trailingIdx; + highest = inHigh[highestIdx]; + i = highestIdx; + while( ++i<=today ) + { + tmp = inHigh[i]; + if( tmp > highest ) + { + highestIdx = i; + highest = tmp; + } + } + diff = (highest - lowest)/(-100.0); + } + else if( tmp >= highest ) + { + highestIdx = today; + highest = tmp; + diff = (highest - lowest)/(-100.0); + } + + if( diff != 0.0 ) + outReal[outIdx++] = (highest-inClose[today])/diff; + else + outReal[outIdx++] = 0.0; + + trailingIdx++; + today++; + } + + /* Keep the outBegIdx relative to the + * caller input before returning. + */ + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::WillR( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inHigh, +/* Generated */ cli::array^ inLow, +/* Generated */ cli::array^ inClose, +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode willR( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inHigh[], +/* Generated */ float inLow[], +/* Generated */ float inClose[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_WILLR( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inHigh[], +/* Generated */ const float inLow[], +/* Generated */ const float inClose[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ double lowest, highest, tmp, diff; +/* Generated */ int outIdx, nbInitialElementNeeded; +/* Generated */ int trailingIdx, lowestIdx, highestIdx; +/* Generated */ int today, i; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if(!inHigh||!inLow||!inClose) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 14; +/* Generated */ else if( ((int)optInTimePeriod < 2) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ nbInitialElementNeeded = (optInTimePeriod-1); +/* Generated */ if( startIdx < nbInitialElementNeeded ) +/* Generated */ startIdx = nbInitialElementNeeded; +/* Generated */ if( startIdx > endIdx ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ diff = 0.0; +/* Generated */ outIdx = 0; +/* Generated */ today = startIdx; +/* Generated */ trailingIdx = startIdx-nbInitialElementNeeded; +/* Generated */ lowestIdx = highestIdx = -1; +/* Generated */ diff = highest = lowest = 0.0; +/* Generated */ while( today <= endIdx ) +/* Generated */ { +/* Generated */ tmp = inLow[today]; +/* Generated */ if( lowestIdx < trailingIdx ) +/* Generated */ { +/* Generated */ lowestIdx = trailingIdx; +/* Generated */ lowest = inLow[lowestIdx]; +/* Generated */ i = lowestIdx; +/* Generated */ while( ++i<=today ) +/* Generated */ { +/* Generated */ tmp = inLow[i]; +/* Generated */ if( tmp < lowest ) +/* Generated */ { +/* Generated */ lowestIdx = i; +/* Generated */ lowest = tmp; +/* Generated */ } +/* Generated */ } +/* Generated */ diff = (highest - lowest)/(-100.0); +/* Generated */ } +/* Generated */ else if( tmp <= lowest ) +/* Generated */ { +/* Generated */ lowestIdx = today; +/* Generated */ lowest = tmp; +/* Generated */ diff = (highest - lowest)/(-100.0); +/* Generated */ } +/* Generated */ tmp = inHigh[today]; +/* Generated */ if( highestIdx < trailingIdx ) +/* Generated */ { +/* Generated */ highestIdx = trailingIdx; +/* Generated */ highest = inHigh[highestIdx]; +/* Generated */ i = highestIdx; +/* Generated */ while( ++i<=today ) +/* Generated */ { +/* Generated */ tmp = inHigh[i]; +/* Generated */ if( tmp > highest ) +/* Generated */ { +/* Generated */ highestIdx = i; +/* Generated */ highest = tmp; +/* Generated */ } +/* Generated */ } +/* Generated */ diff = (highest - lowest)/(-100.0); +/* Generated */ } +/* Generated */ else if( tmp >= highest ) +/* Generated */ { +/* Generated */ highestIdx = today; +/* Generated */ highest = tmp; +/* Generated */ diff = (highest - lowest)/(-100.0); +/* Generated */ } +/* Generated */ if( diff != 0.0 ) +/* Generated */ outReal[outIdx++] = (highest-inClose[today])/diff; +/* Generated */ else +/* Generated */ outReal[outIdx++] = 0.0; +/* Generated */ trailingIdx++; +/* Generated */ today++; +/* Generated */ } +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_WMA.c b/src/ta_func/ta_WMA.c new file mode 100644 index 000000000..e3bf4aca4 --- /dev/null +++ b/src/ta_func/ta_WMA.c @@ -0,0 +1,418 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * MF Mario Fortier + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 112400 MF Template creation. + * 052603 MF Adapt code to compile with .NET Managed C++ + * + */ + +/**** START GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +/* All code within this section is automatically + * generated by gen_code. Any modification will be lost + * next time gen_code is run. + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ #include "TA-Lib-Core.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError) +/* Generated */ namespace TicTacTec { namespace TA { namespace Library { +/* Generated */ #elif defined( _JAVA ) +/* Generated */ #include "ta_defs.h" +/* Generated */ #include "ta_java_defs.h" +/* Generated */ #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError) +/* Generated */ #else +/* Generated */ #include +/* Generated */ #include +/* Generated */ #include "ta_func.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_UTILITY_H +/* Generated */ #include "ta_utility.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #ifndef TA_MEMORY_H +/* Generated */ #include "ta_memory.h" +/* Generated */ #endif +/* Generated */ +/* Generated */ #define TA_PREFIX(x) TA_##x +/* Generated */ #define INPUT_TYPE double +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ int Core::WmaLookback( int optInTimePeriod ) /* From 2 to 100000 */ +/* Generated */ +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public int wmaLookback( int optInTimePeriod ) /* From 2 to 100000 */ +/* Generated */ +/* Generated */ #else +/* Generated */ int TA_WMA_Lookback( int optInTimePeriod ) /* From 2 to 100000 */ +/* Generated */ +/* Generated */ #endif +/**** END GENCODE SECTION 1 - DO NOT DELETE THIS LINE ****/ +{ + /* insert local variable here */ + +/**** START GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ /* min/max are checked for optInTimePeriod. */ +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 30; +/* Generated */ else if( ((int)optInTimePeriod < 2) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return -1; +/* Generated */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/**** END GENCODE SECTION 2 - DO NOT DELETE THIS LINE ****/ + + /* insert lookback code here. */ + return optInTimePeriod - 1; +} + +/**** START GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +/* + * TA_WMA - Weighted Moving Average + * + * Input = double + * Output = double + * + * Optional Parameters + * ------------------- + * optInTimePeriod:(From 2 to 100000) + * Number of period + * + * + */ +/* Generated */ +/* Generated */ #if defined( _MANAGED ) && defined( USE_SUBARRAY ) +/* Generated */ enum class Core::RetCode Core::Wma( int startIdx, +/* Generated */ int endIdx, +/* Generated */ SubArray^ inReal, +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::Wma( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode wma( int startIdx, +/* Generated */ int endIdx, +/* Generated */ double inReal[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_WMA( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const double inReal[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/**** END GENCODE SECTION 3 - DO NOT DELETE THIS LINE ****/ +{ + /* Insert local variables here. */ + int inIdx, outIdx, i, trailingIdx, divider; + double periodSum, periodSub, tempReal, trailingValue; + int lookbackTotal; + +/**** START GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ +/* Generated */ /* Validate the requested output range. */ +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif /* !defined(_JAVA)*/ +/* Generated */ /* min/max are checked for optInTimePeriod. */ +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 30; +/* Generated */ else if( ((int)optInTimePeriod < 2) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ +/* Generated */ #endif /* !defined(_JAVA) */ +/* Generated */ #endif /* TA_FUNC_NO_RANGE_CHECK */ +/* Generated */ +/**** END GENCODE SECTION 4 - DO NOT DELETE THIS LINE ****/ + + /* Insert TA function code here. */ + lookbackTotal = optInTimePeriod-1; + + /* Move up the start index if there is not + * enough initial data. + */ + if( startIdx < lookbackTotal ) + startIdx = lookbackTotal; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) + { + VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); + VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + + /* To make the rest more efficient, handle exception + * case where the user is asking for a period of '1'. + * In that case outputs equals inputs for the requested + * range. + */ + if( optInTimePeriod == 1 ) + { + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + VALUE_HANDLE_DEREF(outNBElement) = endIdx-startIdx+1; + + #if defined( USE_SUBARRAY ) && !defined( USE_SINGLE_PRECISION_INPUT ) + ARRAY_MEMMOVE( outReal, 0, (inReal->mDataArray), (inReal->mOffset)+startIdx, (int)VALUE_HANDLE_DEREF(outNBElement) ); + #else + ARRAY_MEMMOVE( outReal, 0, inReal, startIdx, (int)VALUE_HANDLE_DEREF(outNBElement) ); + #endif + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); + } + + /* Calculate the divider (always an integer value). + * By induction: 1+2+3+4+'n' = n(n+1)/2 + * '>>1' is usually faster than '/2' for unsigned. + */ + divider = (optInTimePeriod*(optInTimePeriod+1))>>1; + + /* The algo used here use a very basic property of + * multiplication/addition: (x*2) = x+x + * + * As an example, a 3 period weighted can be + * interpreted in two way: + * (x1*1)+(x2*2)+(x3*3) + * OR + * x1+x2+x2+x3+x3+x3 (this is the periodSum) + * + * When you move forward in the time serie + * you can quickly adjust the periodSum for the + * period by substracting: + * x1+x2+x3 (This is the periodSub) + * Making the new periodSum equals to: + * x2+x3+x3 + * + * You can then add the new price bar + * which is x4+x4+x4 giving: + * x2+x3+x3+x4+x4+x4 + * + * At this point one iteration is completed and you can + * see that we are back to the step 1 of this example. + * + * Why making it so un-intuitive? The number of memory + * access and floating point operations are kept to a + * minimum with this algo. + */ + outIdx = 0; + trailingIdx = startIdx - lookbackTotal; + + /* Evaluate the initial periodSum/periodSub and trailingValue. */ + periodSum = periodSub = (double)0.0; + inIdx=trailingIdx; + i = 1; + while( inIdx < startIdx ) + { + tempReal = inReal[inIdx++]; + periodSub += tempReal; + periodSum += tempReal*i; + i++; + } + trailingValue = 0.0; + + /* Tight loop for the requested range. */ + while( inIdx <= endIdx ) + { + /* Add the current price bar to the sum + * who are carried through the iterations. + */ + tempReal = inReal[inIdx++]; + periodSub += tempReal; + periodSub -= trailingValue; + periodSum += tempReal*optInTimePeriod; + + /* Save the trailing value for being substract at + * the next iteration. + * (must be saved here just in case outReal and + * inReal are the same buffer). + */ + trailingValue = inReal[trailingIdx++]; + + /* Calculate the WMA for this price bar. */ + outReal[outIdx++] = periodSum / divider; + + /* Prepare the periodSum for the next iteration. */ + periodSum -= periodSub; + } + + /* Set output limits. */ + VALUE_HANDLE_DEREF(outNBElement) = outIdx; + VALUE_HANDLE_DEREF(outBegIdx) = startIdx; + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +/**** START GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ +/* Generated */ +/* Generated */ #define USE_SINGLE_PRECISION_INPUT +/* Generated */ #if !defined( _MANAGED ) && !defined( _JAVA ) +/* Generated */ #undef TA_PREFIX +/* Generated */ #define TA_PREFIX(x) TA_S_##x +/* Generated */ #endif +/* Generated */ #undef INPUT_TYPE +/* Generated */ #define INPUT_TYPE float +/* Generated */ #if defined( _MANAGED ) +/* Generated */ enum class Core::RetCode Core::Wma( int startIdx, +/* Generated */ int endIdx, +/* Generated */ cli::array^ inReal, +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ [Out]int% outBegIdx, +/* Generated */ [Out]int% outNBElement, +/* Generated */ cli::array^ outReal ) +/* Generated */ #elif defined( _JAVA ) +/* Generated */ public RetCode wma( int startIdx, +/* Generated */ int endIdx, +/* Generated */ float inReal[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ MInteger outBegIdx, +/* Generated */ MInteger outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #else +/* Generated */ TA_RetCode TA_S_WMA( int startIdx, +/* Generated */ int endIdx, +/* Generated */ const float inReal[], +/* Generated */ int optInTimePeriod, /* From 2 to 100000 */ +/* Generated */ int *outBegIdx, +/* Generated */ int *outNBElement, +/* Generated */ double outReal[] ) +/* Generated */ #endif +/* Generated */ { +/* Generated */ int inIdx, outIdx, i, trailingIdx, divider; +/* Generated */ double periodSum, periodSub, tempReal, trailingValue; +/* Generated */ int lookbackTotal; +/* Generated */ #ifndef TA_FUNC_NO_RANGE_CHECK +/* Generated */ if( startIdx < 0 ) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex); +/* Generated */ if( (endIdx < 0) || (endIdx < startIdx)) +/* Generated */ return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !inReal ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ if( (int)optInTimePeriod == TA_INTEGER_DEFAULT ) +/* Generated */ optInTimePeriod = 30; +/* Generated */ else if( ((int)optInTimePeriod < 2) || ((int)optInTimePeriod > 100000) ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #if !defined(_JAVA) +/* Generated */ if( !outReal ) +/* Generated */ return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); +/* Generated */ #endif +/* Generated */ #endif +/* Generated */ lookbackTotal = optInTimePeriod-1; +/* Generated */ if( startIdx < lookbackTotal ) +/* Generated */ startIdx = lookbackTotal; +/* Generated */ if( startIdx > endIdx ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outBegIdx); +/* Generated */ VALUE_HANDLE_DEREF_TO_ZERO(outNBElement); +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ if( optInTimePeriod == 1 ) +/* Generated */ { +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = endIdx-startIdx+1; +/* Generated */ #if defined( USE_SUBARRAY ) && !defined( USE_SINGLE_PRECISION_INPUT ) +/* Generated */ ARRAY_MEMMOVE( outReal, 0, (inReal->mDataArray), (inReal->mOffset)+startIdx, (int)VALUE_HANDLE_DEREF(outNBElement) ); +/* Generated */ #else +/* Generated */ ARRAY_MEMMOVE( outReal, 0, inReal, startIdx, (int)VALUE_HANDLE_DEREF(outNBElement) ); +/* Generated */ #endif +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ divider = (optInTimePeriod*(optInTimePeriod+1))>>1; +/* Generated */ outIdx = 0; +/* Generated */ trailingIdx = startIdx - lookbackTotal; +/* Generated */ periodSum = periodSub = (double)0.0; +/* Generated */ inIdx=trailingIdx; +/* Generated */ i = 1; +/* Generated */ while( inIdx < startIdx ) +/* Generated */ { +/* Generated */ tempReal = inReal[inIdx++]; +/* Generated */ periodSub += tempReal; +/* Generated */ periodSum += tempReal*i; +/* Generated */ i++; +/* Generated */ } +/* Generated */ trailingValue = 0.0; +/* Generated */ while( inIdx <= endIdx ) +/* Generated */ { +/* Generated */ tempReal = inReal[inIdx++]; +/* Generated */ periodSub += tempReal; +/* Generated */ periodSub -= trailingValue; +/* Generated */ periodSum += tempReal*optInTimePeriod; +/* Generated */ trailingValue = inReal[trailingIdx++]; +/* Generated */ outReal[outIdx++] = periodSum / divider; +/* Generated */ periodSum -= periodSub; +/* Generated */ } +/* Generated */ VALUE_HANDLE_DEREF(outNBElement) = outIdx; +/* Generated */ VALUE_HANDLE_DEREF(outBegIdx) = startIdx; +/* Generated */ return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +/* Generated */ } +/* Generated */ +/* Generated */ #if defined( _MANAGED ) +/* Generated */ }}} // Close namespace TicTacTec.TA.Lib +/* Generated */ #endif +/**** END GENCODE SECTION 5 - DO NOT DELETE THIS LINE ****/ + diff --git a/src/ta_func/ta_utility.c b/src/ta_func/ta_utility.c new file mode 100644 index 000000000..aea018783 --- /dev/null +++ b/src/ta_func/ta_utility.c @@ -0,0 +1,134 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * MF Mario Fortier + * RM Robert Meier (talib@meierlim.com http://www.meierlim.com) + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 052603 MF Adapt code to compile with .NET Managed C++ + * 123004 RM,MF Adapt code to work with Visual Studio 2005 + * + */ + +#if defined( _MANAGED ) + #using + #include "TA-Lib-Core.h" + #include "ta_memory.h" +namespace TicTacTec { namespace TA { namespace Library { +#else + #include "ta_utility.h" + #include "ta_func.h" + #include "ta_memory.h" +#endif + +#if defined( _MANAGED ) + enum class Core::RetCode Core::SetUnstablePeriod( enum class FuncUnstId id, + unsigned int unstablePeriod ) +#else +TA_RetCode TA_SetUnstablePeriod( TA_FuncUnstId id, + unsigned int unstablePeriod ) +#endif +{ + int i; + + if( id > ENUM_VALUE(FuncUnstId,TA_FUNC_UNST_ALL,FuncUnstAll) ) + return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam); + + if( id == ENUM_VALUE(FuncUnstId,TA_FUNC_UNST_ALL,FuncUnstAll) ) + { + for( i=0; i < (int)ENUM_VALUE(FuncUnstId,TA_FUNC_UNST_ALL,FuncUnstAll); i++ ) + { + #if defined( _MANAGED ) + Globals->unstablePeriod[(int)i] = unstablePeriod; + #else + TA_Globals->unstablePeriod[i] = unstablePeriod; + #endif + } + } + else + { + #if defined( _MANAGED ) + Globals->unstablePeriod[(int)id] = unstablePeriod; + #else + TA_Globals->unstablePeriod[id] = unstablePeriod; + #endif + } + + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +#if defined( _MANAGED ) +unsigned int Core::GetUnstablePeriod( enum class FuncUnstId id ) +#else +unsigned int TA_GetUnstablePeriod( TA_FuncUnstId id ) +#endif +{ + if( id >= ENUM_VALUE(FuncUnstId,TA_FUNC_UNST_ALL,FuncUnstAll) ) + return 0; + + #if defined( _MANAGED ) + return Globals->unstablePeriod[(int)id]; + #else + return TA_Globals->unstablePeriod[id]; + #endif +} + +#if defined( _MANAGED ) + enum class Core::RetCode Core::SetCompatibility( enum class Compatibility value ) +#else +TA_RetCode TA_SetCompatibility( TA_Compatibility value ) +#endif +{ + TA_GLOBALS_COMPATIBILITY = value; + return ENUM_VALUE(RetCode,TA_SUCCESS,Success); +} + +#if defined( _MANAGED ) + enum class Core::Compatibility Core::GetCompatibility( void ) +#else +TA_Compatibility TA_GetCompatibility( void ) +#endif +{ + return TA_GLOBALS_COMPATIBILITY; +} + +#if defined( _MANAGED ) +}}} // Close namespace TicTacTec::TA::Lib +#endif diff --git a/src/ta_func/ta_utility.h b/src/ta_func/ta_utility.h new file mode 100644 index 000000000..70fff4b40 --- /dev/null +++ b/src/ta_func/ta_utility.h @@ -0,0 +1,365 @@ +/* Provides common mathematical or analysis functions. + * + * These functions are all PRIVATE to ta-lib and should + * never be called directly by the user of the TA-LIB. + */ + +#ifndef TA_UTILITY_H +#define TA_UTILITY_H + +#if !defined( _MANAGED ) && !defined( _JAVA ) + #ifndef TA_FUNC_H + #include "ta_func.h" + #endif + + #ifndef TA_GLOBAL_H + #include "ta_global.h" + #endif +#endif + +#if defined( _MANAGED ) + #ifndef NULL + #define NULL 0 + #endif +#endif + +/* Calculate a Simple Moving Average. + * This is an internal version, parameter are assumed validated. + * (startIdx and endIdx cannot be -1). + */ +#if !defined( _MANAGED ) && !defined( _JAVA ) +TA_RetCode TA_INT_SMA( int startIdx, + int endIdx, + const double *inReal, + int optInTimePeriod, + int *outBegIdx, + int *outNBElement, + double *outReal ); + +TA_RetCode TA_S_INT_SMA( int startIdx, + int endIdx, + const float *inReal, + int optInTimePeriod, + int *outBegIdx, + int *outNBElement, + double *outReal ); +#endif + +/* Calculate an Exponential Moving Average. + * This is an internal version, parameter are assumed validated. + * (startIdx and endIdx cannot be -1). + */ +#if !defined( _MANAGED ) && !defined( _JAVA ) +TA_RetCode TA_INT_EMA( int startIdx, + int endIdx, + const double *inReal, + int optInTimePeriod, + double optInK_1, + int *outBegIdx, + int *outNBElement, + double *outReal ); + +TA_RetCode TA_S_INT_EMA( int startIdx, + int endIdx, + const float *inReal, + int optInTimePeriod, + double optInK_1, + int *outBegIdx, + int *outNBElement, + double *outReal ); +#endif + +/* Calculate a MACD + * This is an internal version, parameter are assumed validated. + * (startIdx and endIdx cannot be -1). + */ +#if !defined( _MANAGED ) && !defined( _JAVA ) +TA_RetCode TA_INT_MACD( int startIdx, + int endIdx, + const double inReal[], + int optInFastPeriod, /* 0 is fix 12 */ + int optInSlowPeriod, /* 0 is fix 26 */ + int optInSignalPeriod_2, + int *outBegIdx, + int *outNBElement, + double outRealMACD_0[], + double outRealMACDSignal_1[], + double outRealMACDHist_2[] ); + +TA_RetCode TA_S_INT_MACD( int startIdx, + int endIdx, + const float inReal[], + int optInFastPeriod, /* 0 is fix 12 */ + int optInSlowPeriod, /* 0 is fix 26 */ + int optInSignalPeriod_2, + int *outBegIdx, + int *outNBElement, + double outRealMACD_0[], + double outRealMACDSignal_1[], + double outRealMACDHist_2[] ); +#endif + +/* Internal Price Oscillator function. + * + * A buffer must be provided for intermediate processing + * 'tempBuffer' must be of at least (endIdx-startIdx+1) + */ +#if !defined( _MANAGED ) && !defined( _JAVA ) +TA_RetCode TA_INT_PO( int startIdx, + int endIdx, + const double *inReal, + int optInFastPeriod, + int optInSlowPeriod, + TA_MAType optInMethod_2, + int *outBegIdx, + int *outNBElement, + double *outReal, + double *tempBuffer, + int doPercentageOutput ); + +TA_RetCode TA_S_INT_PO( int startIdx, + int endIdx, + const float *inReal, + int optInFastPeriod, + int optInSlowPeriod, + TA_MAType optInMethod_2, + int *outBegIdx, + int *outNBElement, + double *outReal, + double *tempBuffer, + int doPercentageOutput ); +#endif + +/* Internal variance function. */ +#if !defined( _MANAGED ) && !defined( _JAVA ) +TA_RetCode TA_INT_VAR( int startIdx, + int endIdx, + const double *inReal, + int optInTimePeriod, + int *outBegIdx, + int *outNBElement, + double *outReal ); + +TA_RetCode TA_S_INT_VAR( int startIdx, + int endIdx, + const float *inReal, + int optInTimePeriod, + int *outBegIdx, + int *outNBElement, + double *outReal ); +#endif + +/* A function to calculate a standard deviation. + * + * This function allows speed optimization when the + * moving average series is already calculated. + */ +#if !defined( _MANAGED ) && !defined( _JAVA ) +void TA_INT_stddev_using_precalc_ma( const double *inReal, + const double *inMovAvg, + int inMovAvgBegIdx, + int inMovAvgNbElement, + int timePeriod, + double *output ); + +void TA_S_INT_stddev_using_precalc_ma( const float *inReal, + const double *inMovAvg, + int inMovAvgBegIdx, + int inMovAvgNbElement, + int timePeriod, + double *output ); +#endif + + /* Provides an equivalent to standard "math.h" functions. */ +#if defined( _MANAGED ) + #define std_floor Math::Floor + #define std_ceil Math::Ceiling + #define std_fabs Math::Abs + #define std_atan Math::Atan + #define std_cos Math::Cos + #define std_sin Math::Sin + #define std_sqrt Math::Sqrt + #define std_tanh Math::Tanh + #define std_tan Math::Tan + #define std_sinh Math::Sinh + #define std_log10 Math::Log10 + #define std_log Math::Log + #define std_exp Math::Exp + #define std_cosh Math::Cosh + #define std_asin Math::Asin + #define std_acos Math::Acos +#elif defined( _JAVA ) + #define std_floor Math.floor + #define std_ceil Math.ceil + #define std_fabs Math.abs + #define std_atan Math.atan + #define std_cos Math.cos + #define std_sin Math.sin + #define std_sqrt Math.sqrt + #define std_tanh Math.tanh + #define std_tan Math.tan + #define std_sinh Math.sinh + #define std_log10 Math.log10 + #define std_log Math.log + #define std_exp Math.exp + #define std_cosh Math.cosh + #define std_asin Math.asin + #define std_acos Math.acos +#else + #define std_floor floor + #define std_ceil ceil + #define std_fabs fabs + #define std_atan atan + #define std_cos cos + #define std_sin sin + #define std_sqrt sqrt + #define std_tanh tanh + #define std_tan tan + #define std_sinh sinh + #define std_log10 log10 + #define std_log log + #define std_exp exp + #define std_cosh cosh + #define std_asin asin + #define std_acos acos +#endif + +/* Rounding macro for doubles. Works only with positive numbers. */ +#define round_pos(x) (std_floor((x)+0.5)) + +/* Rounding macro for doubles. Works only with negative numbers. */ +#define round_neg(x) (std_ceil((x)-0.5)) + +/* Rounding with a precision of 2 digit after the dot */ +#define round_pos_2(x) ((std_floor((x*100.0)+0.5))/100.0) +#define round_neg_2(x) ((std_ceil((x*100.0)-0.5))/100.0) + +/* In the context of TA-Lib, floating point are often + * compared within an acceptable error range. + * + * As an example,a TA oscillator ranging from 0 to 100 can + * fairly be considered equal if their difference is less + * than 0.000001. + * + * Ranging around zero also allows to work around limit + * cases where floating point minimal step (EPSILON) causes + * unexpected cummulative effect (ending with "negative zero" + * being one example). + * + * FLT_EPSILON == 1.192092896e-07 for float type on intel with msvc. + * DBL_EPSILON == 2.2204460492503131e-016 for the double type. + * + * Warning: These macro are not intended as "general purpose" floating + * point comparison. TA_REAL_EQ is not even transitive. The "ep" parameter + * must be carefully choosen to work in the domain of the tested values. + * Do a search on Google for a more generalize algo. + */ +#define TA_REAL_EQ(x,v,ep) (((v-ep) (b)) ? (a) : (b)) +#endif + +/* Candlestick macros (used by candlestick functions, where the parameters are always called inClose, inOpen, etc. + * Don't use i++ or func(i) with these macros ! + */ + +#define TA_REALBODY(IDX) ( std_fabs( inClose[IDX] - inOpen[IDX] ) ) +#define TA_UPPERSHADOW(IDX) ( inHigh[IDX] - ( inClose[IDX] >= inOpen[IDX] ? inClose[IDX] : inOpen[IDX] ) ) +#define TA_LOWERSHADOW(IDX) ( ( inClose[IDX] >= inOpen[IDX] ? inOpen[IDX] : inClose[IDX] ) - inLow[IDX] ) +#define TA_HIGHLOWRANGE(IDX) ( inHigh[IDX] - inLow[IDX] ) +#define TA_CANDLECOLOR(IDX) ( inClose[IDX] >= inOpen[IDX] ? 1 : -1 ) + +#if defined( _MANAGED ) + #define TA_CANDLERANGETYPE(SET) (Globals->candleSettings[(int)CandleSettingType::SET]->rangeType) + #define TA_CANDLEAVGPERIOD(SET) (Globals->candleSettings[(int)CandleSettingType::SET]->avgPeriod) + #define TA_CANDLEFACTOR(SET) (Globals->candleSettings[(int)CandleSettingType::SET]->factor) +#elif defined( _JAVA ) + #define TA_CANDLERANGETYPE(SET) (this.candleSettings[CandleSettingType.SET.ordinal()].rangeType) + #define TA_CANDLEAVGPERIOD(SET) (this.candleSettings[CandleSettingType.SET.ordinal()].avgPeriod) + #define TA_CANDLEFACTOR(SET) (this.candleSettings[CandleSettingType.SET.ordinal()].factor) +#else + #define TA_CANDLERANGETYPE(SET) (TA_Globals->candleSettings[TA_##SET].rangeType) + #define TA_CANDLEAVGPERIOD(SET) (TA_Globals->candleSettings[TA_##SET].avgPeriod) + #define TA_CANDLEFACTOR(SET) (TA_Globals->candleSettings[TA_##SET].factor) +#endif + +#define TA_CANDLERANGE(SET,IDX) \ + ( TA_CANDLERANGETYPE(SET) == ENUM_VALUE(RangeType,TA_RangeType_RealBody,RealBody) ? TA_REALBODY(IDX) : \ + ( TA_CANDLERANGETYPE(SET) == ENUM_VALUE(RangeType,TA_RangeType_HighLow,HighLow) ? TA_HIGHLOWRANGE(IDX) : \ + ( TA_CANDLERANGETYPE(SET) == ENUM_VALUE(RangeType,TA_RangeType_Shadows,Shadows) ? TA_UPPERSHADOW(IDX) + TA_LOWERSHADOW(IDX) : \ + 0 ) ) ) +#define TA_CANDLEAVERAGE(SET,SUM,IDX) \ + ( TA_CANDLEFACTOR(SET) \ + * ( TA_CANDLEAVGPERIOD(SET) != 0.0? SUM / TA_CANDLEAVGPERIOD(SET) : TA_CANDLERANGE(SET,IDX) ) \ + / ( TA_CANDLERANGETYPE(SET) == ENUM_VALUE(RangeType,TA_RangeType_Shadows,Shadows) ? 2.0 : 1.0 ) \ + ) +#define TA_REALBODYGAPUP(IDX2,IDX1) ( min(inOpen[IDX2],inClose[IDX2]) > max(inOpen[IDX1],inClose[IDX1]) ) +#define TA_REALBODYGAPDOWN(IDX2,IDX1) ( max(inOpen[IDX2],inClose[IDX2]) < min(inOpen[IDX1],inClose[IDX1]) ) +#define TA_CANDLEGAPUP(IDX2,IDX1) ( inLow[IDX2] > inHigh[IDX1] ) +#define TA_CANDLEGAPDOWN(IDX2,IDX1) ( inHigh[IDX2] < inLow[IDX1] ) + +#ifdef TA_LIB_PRO +/* Section for code distributed with TA-Lib Pro only. */ +#endif + +#endif diff --git a/src/tools/Makefile.am b/src/tools/Makefile.am new file mode 100644 index 000000000..e3bfc9182 --- /dev/null +++ b/src/tools/Makefile.am @@ -0,0 +1,2 @@ +AUTOMAKE_OPTIONS = foreign 1.4 +SUBDIRS = gen_code ta_regtest diff --git a/src/tools/gen_code/Makefile.am b/src/tools/gen_code/Makefile.am new file mode 100644 index 000000000..cb839c231 --- /dev/null +++ b/src/tools/gen_code/Makefile.am @@ -0,0 +1,14 @@ + +# ta_regrest is used for testing and should +# not be installed. +noinst_PROGRAMS = gen_code + +gen_code_SOURCES = gen_code.c + +gen_code_CPPFLAGS = -I../../ta_common +gen_code_LDFLAGS = -L../../ta_common -L../../ta_abstract -L../../ta_func +gen_code_LDADD = -lta_common -lta_abstract_gc -lta_func -lm + +all-local: + $(MAKE) $(AM_MAKEFLAGS) gen_code + cp gen_code ../../../bin diff --git a/src/tools/gen_code/gen_code.c b/src/tools/gen_code/gen_code.c new file mode 100644 index 000000000..9a8792394 --- /dev/null +++ b/src/tools/gen_code/gen_code.c @@ -0,0 +1,4648 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * MF Mario Fortier (mfortier@ta-lib.org) + * ST Steve Thames (steve@softlife.com) + * AC Angelo Ciceri + * RM Robert Meier (talib@meierlim.com) + * CM Craig Miller (c-miller@users.sourceforge.net) + * RG Richard Gomes + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 112400 MF First version. + * 052403 MF Many modifications related to generate code that works + * with the windows .NET Managed C++ compiler. + * 092103 MF Now touch files only when there is really a change. + * 101303 MF Remove underscore from names. + * 020804 MF,ST Fixes to make it work on Linux (Bug#873879). + * 022904 MF Add TA_GetLookback + * 030604 MF Add generation of "ta_func.swg" + * 082004 AC Add generation of candlestick functions declaration + * 010405 RM Change createProjTemplate to work with VS03 and VS05 + * 031805 MF Add generation of MSVC project file. + * 061805 MF Changes related to .NET verifiable code. + * 062505 MF Fix 'out' attribute for .NET verifiable code. + * 121705 MF Complete Java port. + * 012806 MF Add call to Java post-processing. + * 093006 MF Add code generation for TA_FunctionDescription + * 110206 AC Change volume and open interest to double + * 120106 MF Add generation of java_defs.h + * 122406 MF Add generation of Makefile.am + * 011707 CM Add ta_pragma.h handles VC8 warnings, type conversion of strlen handles VC warning + * 021807 MF Add generation of VS2005 project file + * 040107 MF,RG Add generation of CoreAnnotated.java + */ + +/* Description: + * Generates a lot of source code. Run "gen_code ?" for + * the list of file. + * + * The generator use as input the interface definition + * of each of the TA functions. The interface is provided + * from static data in the TA-Abstract module. + * (See the 'table_x.c' files) + * + * This utility is intended only to people integrating new + * TA functions in TA-Lib. + * + * Note: All directory in this code is relative to the 'bin' + * directory. You must run "gen_code" from ta-lib/c/bin. + * + */ +#include "ta_pragma.h" /* this must be the first inclusion */ +#include +#include +#include +#include +#include +#include + +#if !defined(__WIN32__) && !defined(__MSDOS__) && !defined(WIN32) + #include +#endif + +#if defined (WIN32) + #include +#endif + +#include "ta_common.h" +#include "ta_abstract.h" +#include "ta_memory.h" + +extern int mcpp_main( int argc, char ** argv); + +#define BUFFER_SIZE 16000 + +#define FILE_WRITE 0 +#define WRITE_ON_CHANGE_ONLY 0 + +#define FILE_READ 0x00000001 +#define WRITE_ALWAYS 0x00000002 + +#ifndef min + #define min(a, b) (((a) < (b)) ? (a) : (b)) +#endif + +#ifndef max + #define max(a, b) (((a) > (b)) ? (a) : (b)) +#endif + +typedef struct +{ + FILE *file; + FILE *fileTarget; + FILE *templateFile; + char f1_name[BUFFER_SIZE]; + char f2_name[BUFFER_SIZE]; + + int flags; +} FileHandle; + +FileHandle *gOutFunc_H; /* For "ta_func.h" */ +FileHandle *gOutFrame_H; /* For "ta_frame.h" */ +FileHandle *gOutFrame_C; /* For "ta_frame.c" */ +FileHandle *gOutGroupIdx_C; /* For "ta_group_idx.c" */ +FileHandle *gOutFunc_C; /* For "ta_x.c" where 'x' is TA function name. */ +FileHandle *gOutRetCode_C; /* For "ta_retcode.c" */ +FileHandle *gOutRetCode_CSV; /* For "ta_retcode.csv" */ +FileHandle *gOutFuncList_TXT; /* For "ta_func_list.txt" */ +FileHandle *gOutDefs_H; /* For "ta_defs.h" */ +FileHandle *gOutFunc_SWG; /* For SWIG */ +FileHandle *gOutFunc_XML; /* For "ta_func_api.xml" */ +FileHandle *gOutFuncAPI_C; /* For "ta_func_api.c" */ +FileHandle *gOutMakefile_AM; /* For "Makefile.am" */ + +#ifdef _MSC_VER +/* The following files are generated only on Windows platform. */ +FileHandle *gOutDotNet_H; /* For .NET interface file */ +FileHandle *gOutCore_Java; /* For Core.Java */ +FileHandle *gOutProjFile; /* For .NET project file */ +FileHandle *gOutMSVCProjFile; /* For MSVC project file */ +FileHandle *gOutVS2005ProjFile; /* For VS2005 project file */ +FileHandle *gOutExcelGlue_C; /* For "excel_glue.c" */ +FileHandle *gOutJavaDefs_H; /* For "java_defs.h" */ +FileHandle *gOutFunc_Annotation; /* For "CoreAnnotated.java" */ + +/* Why these file are not generated from a unix platform? + * + * The reason is obvious for .NET, Excel and MSVC related files. + * + * For the Java code, the reason is that I use a C preprocessor + * called MCPP and for now I have ported it only on windows. + * (see the mcpp.exe included in the package). + * If someone get the mcpp or an equivalent to be integrated + * in gen_code, then Java code could also be generated from unix. + */ +static void printExcelGlueCode( FILE *out, const TA_FuncInfo *funcInfo ); +static void genJavaCodePhase1( const TA_FuncInfo *funcInfo ); +static void genJavaCodePhase2( const TA_FuncInfo *funcInfo ); + +/* To generate CoreAnnotated.java */ +static void printJavaFunctionAnnotation(const TA_FuncInfo *funcInfo); +#endif + + +typedef void (*TA_ForEachGroup)( const char *groupName, + unsigned int index, + unsigned int isFirst, /* Boolean */ + unsigned int isLast /* Boolean */ + ); + +static unsigned int forEachGroup( TA_ForEachGroup forEachGroupfunc, + void *opaqueData ); + +static void doForEachFunctionPhase1( const TA_FuncInfo *funcInfo, + void *opaqueData ); + +static void doForEachFunctionPhase2( const TA_FuncInfo *funcInfo, + void *opaqueData ); + +static void doForEachFunctionXml( const TA_FuncInfo *funcInfo, + void *opaqueData ); + +static void doForEachUnstableFunction( const TA_FuncInfo *funcInfo, + void *opaqueData ); + +static void doDefsFile( void ); + +static int gen_retcode( void ); + +static void printIndent( FILE *out, unsigned int indent ); + +static void printFunc( FILE *out, + const char *prefix, /* Can be NULL */ + const TA_FuncInfo *funcInfo, + unsigned int prototype, /* Boolean */ + unsigned int frame, /* Boolean */ + unsigned int semiColonNeeded, /* Boolean */ + unsigned int validationCode, /* Boolean */ + unsigned int lookbackSignature, /* Boolean */ + unsigned int managedCPPCode, /* Boolean */ + unsigned int managedCPPDeclaration, /* Boolean */ + unsigned int inputIsSinglePrecision, /* Boolean */ + unsigned int outputForSWIG, /* Boolean */ + unsigned int outputForJava, /* Boolean */ + unsigned int lookbackValidationCode, /* Boolean */ + unsigned int useSubArrayObject, /* Boolean */ + unsigned int arrayToSubArrayCnvt /* Boolean */ + ); + +static void printCallFrame ( FILE *out, const TA_FuncInfo *funcInfo ); +static void printFrameHeader( FILE *out, const TA_FuncInfo *funcInfo, unsigned int lookbackSignature ); + +static void printExternReferenceForEachFunction( const TA_FuncInfo *info, + void *opaqueData ); + +static void printFunctionAddress( const TA_FuncInfo *info, + void *opaqueData ); + +static void printPerGroupList( const char *groupName, + unsigned int index, + unsigned int isFirst, + unsigned int isLast + ); + +static void printGroupListAddress( const char *groupName, + unsigned int index, + unsigned int isFirst, + unsigned int isLast + ); +static void printGroupSize( const char *groupName, + unsigned int index, + unsigned int isFirst, + unsigned int isLast + ); +static void printGroupSizeAddition( const char *groupName, + unsigned int index, + unsigned int isFirst, + unsigned int isLast + ); + +static int addUnstablePeriodEnum( FILE *out ); + +static int createTemplate( FileHandle *in, FileHandle *out ); + +static int generateFuncAPI_C( void ); + +#ifdef _MSC_VER +static int createProjTemplate( FileHandle *in, FileHandle *out ); +static int createMSVCProjTemplate( FileHandle *in, FileHandle *out ); +static int createVS2005ProjTemplate( FileHandle *in, FileHandle *out ); +static void printVS2005FileNode( FILE *out, const char *name ); +#endif + +static void writeFuncFile( const TA_FuncInfo *funcInfo ); +static void doFuncFile( const TA_FuncInfo *funcInfo ); +static void printOptInputValidation( FILE *out, + const char *name, + const TA_OptInputParameterInfo *optInputParamInfo, + int lookbackValidationCode /* Boolean */ ); +static int skipToGenCode( const char *dstName, FILE *out, FILE *templateFile ); +static void printDefines( FILE *out, const TA_FuncInfo *funcInfo ); + +static void printFuncHeaderDoc( FILE *out, + const TA_FuncInfo *funcInfo, + const char *prefix ); + + +static void extractTALogic( FILE *inFile, FILE *outFile ); + +static void cnvtToUpperCase( char *str ); +static void cnvtChar( char *str, char from, char to ); +static char *trimWhitespace( char *str ); + +/* Return 1 on success */ +static int copyFile( const char *src, const char *dest ); + +/* Return 1 when identical */ +static int areFileSame( const char *file1, const char *file2 ); + +static void fileDelete( const char *fileToDelete ); + +static void appendToFunc( FILE *out ); + +static void convertFileToCArray( FILE *in, FILE *out ); + +static void ReplaceReservedXmlCharacters(const char *input, char *output ); + +char gToOpen[BUFFER_SIZE]; +char gTempBuf[BUFFER_SIZE]; +char gTempBuf2[BUFFER_SIZE]; +char gTempBuf3[BUFFER_SIZE]; +char gTempBufForPrint[BUFFER_SIZE]; +char gTempDoubleToStr[200]; + +/* Because Microsoft and Borland does not display + * the value of a double in the same way (%e), this + * function attempts to eliminate difference. This + * is done to avoid annoying difference with CVS. + */ +const char *doubleToStr( double value ); + +const char *gCurrentGroupName; + +static int genCode(int argc, char* argv[]); + +extern const TA_OptInputParameterInfo TA_DEF_UI_MA_Method; + +/* Set this variable to 1 whenever you wish to output a + * prefix to all generated line. + */ +int genPrefix = 0; + +void print( FILE *out, const char *text, ... ) +{ + va_list arglist; + memset(gTempBufForPrint,0,sizeof(gTempBufForPrint)); + + va_start(arglist,text); + vsprintf(gTempBufForPrint,text,arglist); + va_end(arglist); + + if( strlen(gTempBufForPrint) >= BUFFER_SIZE-strlen("/* Generated */ ") ) + { + printf( "Lines length exceed internal buffers (%lu,%lu)\n", + (unsigned long)strlen(gTempBufForPrint), + (unsigned long)(BUFFER_SIZE-strlen("/* Generated */ ")) ); + exit(-1); + } + if( genPrefix ) + fprintf( out, "/* Generated */ %s", gTempBufForPrint ); + else + fprintf( out, "%s", gTempBufForPrint ); +} + +static void printIndent( FILE *out, unsigned int indent ) +{ + unsigned int i; + + if( genPrefix ) + fprintf( out, "/* Generated */ " ); + + for( i=0; i < indent; i++ ) + { + fprintf( out, " " ); + } +} + + +int main(int argc, char* argv[]) +{ + int retValue; + TA_RetCode retCode; + + if( argc > 1 ) + { + /* There is no parameter needed for this tool. */ + printf( "\n" ); + printf( "gen_code V%s - Updates many TA-Lib source files\n", TA_GetVersionString() ); + printf( "\n" ); + printf( "Usage: gen_code\n"); + printf( "\n" ); + printf( " No parameter needed.\n" ); + printf( "\n" ); + printf( " This utility is useful only for developers adding new TA\n" ); + printf( " functions to TA-Lib.\n" ); + printf( "\n" ); + printf( " The interface definitions in c/src/ta_abstract/tables\n" ); + printf( " are used to generate code, documentation and some more.\n" ); + printf( "\n" ); + printf( " The following files are updated or regenerated:\n" ); + printf( " 1) ta-lib/c/include/ta_func.h\n" ); + printf( " 2) ta-lib/c/include/ta_defs.h\n" ); + printf( " 3) ta-lib/ta_func_list.txt\n" ); + printf( " 4) ta-lib/c/src/ta_common/ta_retcode.*\n" ); + printf( " 5) ta-lib/c/src/ta_abstract/ta_group_idx.c\n"); + printf( " 6) ta-lib/c/src/ta_abstract/frames/*.*\n"); + printf( " 7) ta-lib/swig/src/interface/ta_func.swg\n" ); + printf( " 8) ta-lib/dotnet/src/Core/TA-Lib-Core.vcproj (Win32 only)\n" ); + printf( " 9) ta-lib/dotnet/src/Core/TA-Lib-Core.h (Win32 only)\n" ); + printf( " 10) ta-lib/c/src/ta_abstract/excel_glue.c (Win32 only)\n" ); + printf( " 11) ta-lib/c/src/ta_abstract/java_defs.h (Win32 only)\n" ); + printf( " 12) ta-lib/c/ide/msvc/lib_proj/ta_func/ta_func.dsp (Win32 only)\n" ); + printf( " 13) ta-lib/java/src/com/tictactec/ta/lib/Core.java (Win32 only)\n" ); + printf( " 14) ta-lib/java/src/com/tictactec/ta/lib/CoreAnnotated.java (Win32 only)\n" ); + printf( " 15) ta-lib/ta_func_api.xml\n" ); + printf( " 16) ta-lib/c/src/ta_abstract/ta_func_api.c\n" ); + printf( "\n" ); + printf( " The function header, parameters and validation code of all TA\n" ); + printf( " function in c/src/ta_func are also updated.\n" ); + printf( "\n" ); + printf( "** Must be directly run from the 'bin' directory.\n" ); + exit(-1); + } + + printf( "gen_code V%s\n", TA_GetVersionString() ); + + retCode = TA_Initialize(); + if( retCode != TA_SUCCESS ) + { + printf( "\nCannot initialize the library\n"); + return -1; + } + + printf( "Now updating source code...\n" ); + + retValue = genCode( argc, argv ); + + retCode = TA_Shutdown(); + if( retCode != TA_SUCCESS ) + { + printf( "Shutdown failed (%d)\n", retCode ); + } + + return retValue; +} + + +/* The following I/O function allows to manipulate + * more easily files. + * + * When opening the file, the caller can specifiy a + * path relative to the position of the binary. + * That is: ta-lib\c\bin + * + * 'templateFile' allows to create a new file using + * a template. This template must contain one + * line starting with '%%%GENCODE%%%'. + * All character before this string are added to the output + * file on fileOpen, and all character after this string are + * added to the output file on fileClose. Obviously, all + * character added to the file between fileOpen/fileClose + * will replace the "%%%GENCODE%%%" line. + * + * 'templateFile' is ignored when FILE_READ is specified. + * + * Another advantage to use fileOpen and fileClose is that + * the writing to the file is done "silently" in a temporary + * file and the target file is touch only if there was actually + * a modification to it. + * + * On failure, simply exit the software. + */ +static void init_gToOpen( const char *filePath, const char *suffix ) +{ + + char *ptr; + #ifdef WIN32 + const int sepChar = (int)'\\'; + #else + const int sepChar = (int)'/'; + #endif + + + strcpy( gToOpen, filePath ); + if( suffix ) + strcat( gToOpen, suffix ); + + /* Replace all directory separator with the + * one applicable for this OS. + */ + ptr = gToOpen; + while( *ptr != '\0' ) + { + if( (*ptr == '\\') || (*ptr == '/') ) + *ptr = (char)sepChar; + ptr++; + } +} + + +static FileHandle *fileOpen( const char *fileToOpen, + const char *templateFile, + int flags ) +{ + FileHandle *retValue; + + if( (fileToOpen == NULL) || + ((flags&FILE_READ) && (templateFile != NULL)) ) + { + printf( "Internal error line %d", __LINE__ ); + return (FileHandle *)NULL; + } + + retValue = TA_Malloc( sizeof(FileHandle) ); + if( !retValue ) + { + printf( "Memmory alloc error line %d", __LINE__ ); + return (FileHandle *)NULL; + } + + memset( retValue, 0, sizeof(FileHandle) ); + + retValue->flags = flags; + + init_gToOpen( fileToOpen, NULL ); + strcpy( retValue->f1_name, gToOpen ); + + /* First let's try to open the file. Might fail when + * for writing but that is ok. (the file might not exist). + */ + if( flags&FILE_READ ) + { + retValue->file = fopen( gToOpen, "r" ); + if( retValue->file == NULL ) + { + memset( retValue, 0, sizeof(FileHandle) ); + TA_Free( retValue ); + return (FileHandle *)NULL; + } + } + else if( flags&WRITE_ALWAYS ) + { + retValue->file = fopen( gToOpen, "w" ); + if( retValue->file == NULL ) + { + memset( retValue, 0, sizeof(FileHandle) ); + TA_Free( retValue ); + return (FileHandle *)NULL; + } + } + else + { + retValue->file = fopen( gToOpen, "r" ); + + if( retValue->file ) + { + /* Move pointer to fileTarget. The file + * ptr will become the temporary file who + * is going to be truly write enabled. + */ + retValue->fileTarget = retValue->file; + init_gToOpen( fileToOpen, ".tmp" ); + strcpy( retValue->f2_name, gToOpen ); + retValue->file = fopen( gToOpen, "w" ); + if( !retValue->file ) + { + fclose( retValue->fileTarget ); + memset( retValue, 0, sizeof(FileHandle) ); + TA_Free( retValue ); + return (FileHandle *)NULL; + } + } + else + { + /* File does not exist, directly open for write + * no temporary will be used. + */ + retValue->fileTarget = NULL; + retValue->file = fopen( gToOpen, "w" ); + + if( retValue->file == NULL ) + { + memset( retValue, 0, sizeof(FileHandle) ); + TA_Free( retValue ); + return (FileHandle *)NULL; + } + } + } + + if( !(flags&FILE_READ) ) + { + /* Handle the template. */ + if( templateFile ) + { + init_gToOpen( templateFile, NULL ); + retValue->templateFile = fopen( gToOpen, "r" ); + if( retValue->templateFile == NULL ) + { + if(retValue->fileTarget) fclose( retValue->fileTarget ); + if(retValue->file) fclose( retValue->file ); + if(retValue->templateFile) fclose( retValue->templateFile ); + memset( retValue, 0, sizeof(FileHandle) ); + TA_Free( retValue ); + printf( "\nCannot open template [%s]\n", gToOpen ); + return (FileHandle *)NULL; + } + + /* Copy the header part of the template. */ + if( skipToGenCode( fileToOpen, retValue->file, retValue->templateFile ) != 0 ) + { + if(retValue->fileTarget) fclose( retValue->fileTarget ); + if(retValue->file) fclose( retValue->file ); + if(retValue->templateFile) fclose( retValue->templateFile ); + memset( retValue, 0, sizeof(FileHandle) ); + TA_Free( retValue ); + return (FileHandle *)NULL; + } + } + } + + return retValue; +} + +static void fileClose( FileHandle *handle ) +{ + if( !handle ) return; + + /* Write remaining template info. */ + if( handle->templateFile && handle->file ) + { + while( fgets( gTempBuf, BUFFER_SIZE, handle->templateFile ) != NULL ) + { + if( fputs( gTempBuf, handle->file ) == EOF ) + { + printf( "Cannot write to output file! Disk Full? " ); + break; + } + } + + #if 0 + /* Make sure the last line of the output + * finish with a carriage return. This may + * avoid warning from some compilers. + */ + if( gTempBuf[0] != '\n' ) + { + fprintf( handle->file, "\n" ); + } + #endif + } + + if(handle->fileTarget) fclose( handle->fileTarget ); + if(handle->templateFile) fclose( handle->templateFile ); + if(handle->file) fclose( handle->file ); + + if( !(handle->flags&FILE_READ) && !(handle->flags&WRITE_ALWAYS) && (handle->fileTarget != NULL)) + { + if( !areFileSame( handle->f1_name, handle->f2_name ) ) + copyFile( handle->f2_name, handle->f1_name ); + + fileDelete( handle->f2_name ); + } + + memset( handle, 0, sizeof(FileHandle) ); + TA_Free( handle ); +} + +static void fileDelete( const char *fileToDelete ) +{ + init_gToOpen( fileToDelete, NULL ); + + #if defined (WIN32) + DeleteFile (fileToDelete); + #else + unlink (fileToDelete); + #endif +} + +static int genCode(int argc, char* argv[]) +{ + TA_RetCode retCode; + unsigned int nbGroup; + + #ifdef _MSC_VER + FileHandle *tempFile; + FileHandle *tempFileOut; + #endif + + (void)argc; /* Get ride of compiler warning */ + (void)argv; /* Get ride of compiler warning */ + + #ifdef _MSC_VER + /* Create .NET project files template */ + #define FILE_NET_PROJ "..\\..\\dotnet\\src\\Core\\TA-Lib-Core.vcproj" + #define FILE_NET_PROJ_TMP "..\\temp\\dotnetproj.tmp" + gOutProjFile = fileOpen( FILE_NET_PROJ, NULL, FILE_READ ); + if( gOutProjFile == NULL ) + { + printf( "\nCannot access [%s]\n", gToOpen ); + return -1; + } + tempFile = fileOpen( FILE_NET_PROJ_TMP, NULL, FILE_WRITE|WRITE_ALWAYS ); + if( tempFile == NULL ) + { + printf( "Cannot create temporary .NET project file!\n" ); + return -1; + } + if( createProjTemplate( gOutProjFile, tempFile ) != 0 ) + { + printf( "Failed to parse and write the temporary .NET project file!\n" ); + return -1; + } + fileClose(gOutProjFile); + fileClose(tempFile); + + /* Create MSVC project files template */ + #define FILE_MSVC_PROJ "..\\..\\c\\ide\\msvc\\lib_proj\\ta_func\\ta_func.dsp" + #define FILE_MSVC_PROJ_TMP "..\\temp\\ta_func_dsp.tmp" + gOutMSVCProjFile = fileOpen( FILE_MSVC_PROJ, NULL, FILE_READ ); + if( gOutMSVCProjFile == NULL ) + { + printf( "\nCannot access [%s]\n", gToOpen ); + return -1; + } + tempFile = fileOpen( FILE_MSVC_PROJ_TMP, NULL, FILE_WRITE|WRITE_ALWAYS ); + if( tempFile == NULL ) + { + printf( "Cannot create temporary MSVC project file!\n" ); + return -1; + } + if( createMSVCProjTemplate( gOutMSVCProjFile, tempFile ) != 0 ) + { + printf( "Failed to parse and write the temporary MSVC project file!\n" ); + return -1; + } + fileClose(gOutMSVCProjFile); + fileClose(tempFile); + + /* Create VS2005 project files template */ + #define FILE_VS2005_PROJ "..\\..\\c\\ide\\vs2005\\lib_proj\\ta_func\\ta_func.vcproj" + #define FILE_VS2005_PROJ_TMP "..\\temp\\ta_func_vcproj.tmp" + gOutVS2005ProjFile = fileOpen( FILE_VS2005_PROJ, NULL, FILE_READ ); + if( gOutVS2005ProjFile == NULL ) + { + printf( "\nCannot access [%s]\n", gToOpen ); + return -1; + } + tempFile = fileOpen( FILE_VS2005_PROJ_TMP, NULL, FILE_WRITE|WRITE_ALWAYS ); + if( tempFile == NULL ) + { + printf( "Cannot create temporary VS2005 project file!\n" ); + return -1; + } + if( createVS2005ProjTemplate( gOutVS2005ProjFile, tempFile ) != 0 ) + { + printf( "Failed to parse and write the temporary VS2005 project file!\n" ); + return -1; + } + fileClose(gOutVS2005ProjFile); + fileClose(tempFile); + #endif + + #ifdef _MSC_VER + /* Create Java template for Core.java */ + #define FILE_CORE_JAVA "..\\..\\java\\src\\com\\tictactec\\ta\\lib\\Core.java" + #define FILE_CORE_JAVA_TMP "..\\temp\\CoreJava.tmp" + #define FILE_CORE_JAVA_UNF "..\\temp\\CoreJavaUnformated.tmp" + gOutCore_Java = fileOpen( FILE_CORE_JAVA, NULL, FILE_READ ); + if( gOutCore_Java == NULL ) + { + printf( "\nCannot access [%s]\n", gToOpen ); + return -1; + } + tempFile = fileOpen( FILE_CORE_JAVA_TMP, NULL, FILE_WRITE|WRITE_ALWAYS ); + if( tempFile == NULL ) + { + printf( "Cannot create temporary Core.java project file!\n" ); + return -1; + } + if( createTemplate( gOutCore_Java, tempFile ) != 0 ) + { + printf( "Failed to parse and write the temporary Core.java project file!\n" ); + return -1; + } + fileClose(gOutCore_Java); + fileClose(tempFile); + #endif + + /* Create the .NET interface file template */ + #ifdef _MSC_VER + #define FILE_NET_HEADER "..\\..\\dotnet\\src\\Core\\TA-Lib-Core.h" + #define FILE_NET_HEADER_TMP "..\\temp\\dotneth.tmp" + gOutDotNet_H = fileOpen( FILE_NET_HEADER, NULL, FILE_READ ); + if( gOutDotNet_H == NULL ) + { + printf( "\nCannot access [%s]\n", gToOpen ); + return -1; + } + tempFile = fileOpen( FILE_NET_HEADER_TMP, NULL, FILE_WRITE|WRITE_ALWAYS ); + if( tempFile == NULL ) + { + printf( "Cannot create temporary .NET header file!\n" ); + return -1; + } + if( createTemplate( gOutDotNet_H, tempFile ) != 0 ) + { + printf( "Failed to parse and write the temporary .NET header file!\n" ); + return -1; + } + fileClose(gOutDotNet_H); + fileClose(tempFile); + #endif + + /* Create ta_retcode.c */ + if( gen_retcode() != 0 ) + { + printf( "\nCannot generate src/ta_common/ta_retcode.c\n" ); + return -1; + } + + /* Create "ta_func.h" */ + gOutFunc_H = fileOpen( "..\\include\\ta_func.h", + "..\\src\\ta_abstract\\templates\\ta_func.h.template", + FILE_WRITE|WRITE_ON_CHANGE_ONLY ); + + if( gOutFunc_H == NULL ) + { + printf( "\nCannot access [%s]\n", gToOpen ); + return -1; + } + + gOutFunc_XML = fileOpen( "..\\..\\ta_func_api.xml", NULL, FILE_WRITE|WRITE_ON_CHANGE_ONLY ); + if(gOutFunc_XML == NULL) + { + printf( "\nCannot access ta_func_api.xml" ); + } + + + /* Create "ta_func.swg" */ + gOutFunc_SWG = fileOpen( "..\\..\\swig\\src\\interface\\ta_func.swg", + "..\\src\\ta_abstract\\templates\\ta_func.swg.template", + FILE_WRITE|WRITE_ON_CHANGE_ONLY ); + + if( gOutFunc_SWG == NULL ) + { + printf( "\nCannot access [%s]\n", gToOpen ); + return -1; + } + + /* Create the "ta_func_list.txt" */ + gOutFuncList_TXT = fileOpen( "..\\..\\ta_func_list.txt", + NULL, + FILE_WRITE|WRITE_ON_CHANGE_ONLY ); + + if( gOutFuncList_TXT == NULL ) + { + printf( "\nCannot access [%s]\n", gToOpen ); + return -1; + } + + + /* Create the "ta_frame.h" */ + gOutFrame_H = fileOpen( "..\\src\\ta_abstract\\frames\\ta_frame.h", + "..\\src\\ta_abstract\\templates\\ta_frame.h.template", + FILE_WRITE|WRITE_ON_CHANGE_ONLY ); + + if( gOutFrame_H == NULL ) + { + printf( "\nCannot access [%s]\n", gToOpen ); + return -1; + } + + /* Create the "ta_frame.c" */ + gOutFrame_C = fileOpen( "..\\src\\ta_abstract\\frames\\ta_frame.c", + "..\\src\\ta_abstract\\templates\\ta_frame.c.template", + FILE_WRITE|WRITE_ON_CHANGE_ONLY ); + + if( gOutFrame_C == NULL ) + { + printf( "\nCannot access [%s]\n", gToOpen ); + return -1; + } + + /* Create the "Makefile.am" */ + gOutMakefile_AM = fileOpen( "..\\src\\ta_func\\Makefile.am", + "..\\src\\ta_abstract\\templates\\Makefile.am.template", + FILE_WRITE|WRITE_ON_CHANGE_ONLY ); + + if( gOutMakefile_AM == NULL ) + { + printf( "\nCannot access [%s]\n", gToOpen ); + return -1; + } + + + #ifdef _MSC_VER + /* Create "excel_glue.c" */ + gOutExcelGlue_C = fileOpen( "..\\src\\ta_abstract\\excel_glue.c", + "..\\src\\ta_abstract\\templates\\excel_glue.c.template", + FILE_WRITE|WRITE_ON_CHANGE_ONLY ); + + if( gOutExcelGlue_C == NULL ) + { + printf( "\nCannot access [%s]\n", gToOpen ); + return -1; + } + + /* Create "java_defs.h" */ + gOutJavaDefs_H = fileOpen( "..\\src\\ta_abstract\\ta_java_defs.h", + "..\\src\\ta_abstract\\templates\\ta_java_defs.h.template", + FILE_WRITE|WRITE_ON_CHANGE_ONLY ); + + + if( gOutJavaDefs_H == NULL ) + { + printf( "\nCannot access [%s]\n", gToOpen ); + return -1; + } + + /* Re-open the .NET project template. */ + gOutProjFile = fileOpen( FILE_NET_PROJ, FILE_NET_PROJ_TMP, FILE_WRITE|WRITE_ON_CHANGE_ONLY ); + if( gOutProjFile == NULL ) + { + printf( "Cannot update [%s]\n", FILE_NET_PROJ ); + return -1; + } + + /* Re-open the MSVC project template. */ + gOutMSVCProjFile = fileOpen( FILE_MSVC_PROJ, FILE_MSVC_PROJ_TMP, FILE_WRITE|WRITE_ON_CHANGE_ONLY ); + if( gOutMSVCProjFile == NULL ) + { + printf( "Cannot update [%s]\n", FILE_MSVC_PROJ ); + return -1; + } + + /* Re-open the VS2005 project template. */ + gOutVS2005ProjFile = fileOpen( FILE_VS2005_PROJ, FILE_VS2005_PROJ_TMP, FILE_WRITE|WRITE_ON_CHANGE_ONLY ); + if( gOutVS2005ProjFile == NULL ) + { + printf( "Cannot update [%s]\n", FILE_VS2005_PROJ ); + return -1; + } + + /* Create "CoreAnnotated.java" */ + gOutFunc_Annotation = fileOpen( "..\\..\\java\\src\\com\\tictactec\\ta\\lib\\CoreAnnotated.java", + "..\\src\\ta_abstract\\templates\\CoreAnnotated.java.template", + FILE_WRITE|WRITE_ON_CHANGE_ONLY ); + + if(gOutFunc_Annotation == NULL) + { + printf( "\nCannot access CoreAnnotated.java" ); + } + + #endif + + #ifdef _MSC_VER + /* Re-open the Core.java template. */ + gOutCore_Java = fileOpen( FILE_CORE_JAVA_UNF, FILE_CORE_JAVA_TMP, FILE_WRITE|WRITE_ON_CHANGE_ONLY ); + if( gOutCore_Java == NULL ) + { + printf( "Cannot update [%s]\n", FILE_CORE_JAVA_UNF ); + return -1; + } + #endif + + /* Re-open the .NET interface template. */ + #ifdef _MSC_VER + gOutDotNet_H = fileOpen( FILE_NET_HEADER, FILE_NET_HEADER_TMP, FILE_WRITE|WRITE_ON_CHANGE_ONLY ); + if( gOutDotNet_H == NULL ) + { + printf( "Cannot update [%s]\n", FILE_NET_HEADER ); + return -1; + } + #endif + + /* Process each functions. Two phase. */ + TA_ForEachFunc( doForEachFunctionPhase1, NULL ); + TA_ForEachFunc( doForEachFunctionPhase2, NULL ); + + /* Leave empty line for Makefile.am */ + fprintf( gOutMakefile_AM->file, "\n" ); + + /* Seperate generation of xml description file */ + fprintf(gOutFunc_XML->file, "\n"); + fprintf(gOutFunc_XML->file, "\n"); + retCode = TA_ForEachFunc( doForEachFunctionXml, NULL ); + fprintf(gOutFunc_XML->file, "\n"); + + /* Append some "hard coded" prototype for ta_func */ + appendToFunc( gOutFunc_H->file ); + appendToFunc( gOutFunc_SWG->file ); + + /* Close all files who were updated with the list of TA functions. */ + fileClose( gOutFuncList_TXT ); + fileClose( gOutFunc_H ); + fileClose( gOutFunc_SWG ); + fileClose( gOutFrame_H ); + fileClose( gOutFrame_C ); + fileClose( gOutFunc_XML ); + fileClose( gOutMakefile_AM ); + + #ifdef _MSC_VER + fileClose( gOutDotNet_H ); + fileClose( gOutCore_Java ); + fileClose( gOutProjFile ); + fileClose( gOutMSVCProjFile ); + fileClose( gOutVS2005ProjFile ); + fileClose( gOutExcelGlue_C ); + fileClose( gOutJavaDefs_H ); + fileClose( gOutFunc_Annotation ); + fileDelete( FILE_CORE_JAVA_TMP ); + #endif + + if( retCode != TA_SUCCESS ) + { + printf( "Failed [%d]\n", retCode ); + return -1; + } + + /* Create the "ta_group_idx.c" file. */ + genPrefix = 1; + gOutGroupIdx_C = fileOpen( "..\\src\\ta_abstract\\ta_group_idx.c", + "..\\src\\ta_abstract\\templates\\ta_group_idx.c.template", + FILE_WRITE|WRITE_ON_CHANGE_ONLY ); + + if( gOutGroupIdx_C == NULL ) + { + printf( "\nCannot access [%s]\n", gToOpen ); + return -1; + } + + retCode = TA_ForEachFunc( printExternReferenceForEachFunction, NULL ); + if( retCode != TA_SUCCESS ) + { + fileClose( gOutGroupIdx_C ); + return -1; + } + + nbGroup = forEachGroup( printPerGroupList, NULL ); + + print( gOutGroupIdx_C->file, "const TA_FuncDef **TA_PerGroupFuncDef[%d] = {\n", nbGroup ); + forEachGroup( printGroupListAddress, NULL ); + print( gOutGroupIdx_C->file, "};\n\n" ); + + print( gOutGroupIdx_C->file, "const unsigned int TA_PerGroupSize[%d] = {\n", nbGroup ); + forEachGroup( printGroupSize, NULL ); + print( gOutGroupIdx_C->file, "};\n\n" ); + + print( gOutGroupIdx_C->file, "const unsigned int TA_TotalNbFunction =\n" ); + forEachGroup( printGroupSizeAddition, NULL ); + + fileClose( gOutGroupIdx_C ); + genPrefix = 0; + + /* Update "ta_defs.h" */ + doDefsFile(); + + /* Convert the xml description file into a format embedded in the library. */ + if( generateFuncAPI_C() != 1 ) + { + return -1; /* Failed. */ + } + + + /* Run Java Post-Processing. + * On Success, the Java program create a file named "java_success". + */ + #ifndef _MSC_VER + printf( "\nWarning: Java code update supported only for MSVC compiler for now.\n" ); + #else + printf( "\nPost-Processing Java Code\n" ); + #define JAVA_SUCCESS_FILE "..\\temp\\java_success" + #define JAVA_PRETTY_TEMP_FILE "..\\temp\\CoreJavaPretty.tmp" + fileDelete( JAVA_SUCCESS_FILE ); + system( "javac -cp . -d . \"..\\src\\tools\\gen_code\\java\\PrettyCode.java" ); + system( "javac -cp . -d . \"..\\src\\tools\\gen_code\\java\\Main.java" ); + system( "java -cp . Main" ); + tempFile = fileOpen(JAVA_SUCCESS_FILE,NULL,FILE_READ ); + fileDelete( FILE_CORE_JAVA_UNF ); + + if( tempFile == NULL ) + { + printf( "\nWarning: Java code NOT updated.\n" ); + } + else + { + + fileClose( tempFile ); + + /* Java processing done. Overwrite the original Core.java ONLY if there + * is changes (re-use fileOpen/fileClose even if not efficient). + */ + tempFile = fileOpen( JAVA_PRETTY_TEMP_FILE, NULL, FILE_READ ); + tempFileOut = fileOpen( FILE_CORE_JAVA, NULL, + FILE_WRITE|WRITE_ON_CHANGE_ONLY ); + + if( (tempFile == NULL) || (tempFileOut == NULL) ) + { + printf( "\nError: Java code update failed.\n" ); + return -1; + } + else + { + + while( fgets( gTempBuf, BUFFER_SIZE, tempFile->file ) ) + fputs(gTempBuf,tempFileOut->file); + + fileClose(tempFile); + fileClose(tempFileOut); + } + } + fileDelete( JAVA_SUCCESS_FILE ); + fileDelete( JAVA_PRETTY_TEMP_FILE ); + #endif + + /* Remove temporary files. */ + #ifdef _MSC_VER + fileDelete( FILE_NET_PROJ_TMP ); + fileDelete( FILE_MSVC_PROJ_TMP ); + fileDelete( FILE_NET_HEADER_TMP ); + #endif + + printf( "\n** Update completed with success **\n"); + + return 0; +} + +static unsigned int forEachGroup( TA_ForEachGroup forEachGroupFunc, + void *opaqueData ) +{ + TA_RetCode retCode; + TA_StringTable *table; + unsigned int i; + + (void)opaqueData; /* Get ride of compiler warning */ + + retCode = TA_GroupTableAlloc( &table ); + if( retCode != TA_SUCCESS ) + return 0; + + for( i=0; i < table->size; i++ ) + { + forEachGroupFunc( table->string[i], + i, + i==0? 1:0, + i==(table->size-1)? 1:0 ); + } + + retCode = TA_GroupTableFree( table ); + if( retCode != TA_SUCCESS ) + return 0; + + return i; +} + +/* Replaces reserved xml characters with the appropriate escape sequence. */ +static void ReplaceReservedXmlCharacters(const char *input, char *output ) +{ + char *currentPosition; + char tempString[8*1024]; + + if((input == NULL) || (output == NULL)) + { + return; + } + + strcpy(output, input); + + /*Replace '&' with "&" + *Note1: '&' has to be processed first as otherwise we replace the + * '&' in the escaped characters. + *Note2: We assume that the input string does not have any escaped + * characters already. + */ + currentPosition = output; + while((currentPosition = strchr(currentPosition, '&')) != NULL) + { + tempString[0] = '\0'; + if(strlen(currentPosition) > 1) + { + strcpy(tempString, currentPosition+1); + } + sprintf(currentPosition, "&%s", tempString); + } + + /* Replace '<' with "<" */ + currentPosition = output; + while((currentPosition = strchr(currentPosition, '<')) != NULL) + { + tempString[0] = '\0'; + if(strlen(currentPosition) > 1) + { + strcpy(tempString, currentPosition+1); + } + sprintf(currentPosition, "<%s", tempString); + } + + /* Replace '>' with ">" */ + currentPosition = output; + while((currentPosition = strchr(currentPosition, '>')) != NULL) + { + tempString[0] = '\0'; + if(strlen(currentPosition) > 1) + { + strcpy(tempString, currentPosition+1); + } + sprintf(currentPosition, ">%s", tempString); + } + + /* Replace ''' with "'" */ + currentPosition = output; + while((currentPosition = strchr(currentPosition, '\'')) != NULL) + { + tempString[0] = '\0'; + if(strlen(currentPosition) > 1) + { + strcpy(tempString, currentPosition+1); + } + sprintf(currentPosition, "'%s", tempString); + } + + /* Replace '"' with """ */ + currentPosition = output; + while((currentPosition = strchr(currentPosition, '"')) != NULL) + { + tempString[0] = '\0'; + if(strlen(currentPosition) > 1) + { + strcpy(tempString, currentPosition+1); + } + sprintf(currentPosition, ""%s", tempString); + } +} + +static void doForEachFunctionXml(const TA_FuncInfo *funcInfo, + void *opaqueData) +{ + TA_RetCode retCode; + const TA_InputParameterInfo *inputInfo; + const TA_OptInputParameterInfo *optInputInfo; + const TA_OutputParameterInfo *outputInfo; + char tempString[8*1024]; + unsigned int i; + + (void)opaqueData; + + /* General stuff about function */ + fprintf(gOutFunc_XML->file, " \n", funcInfo->name); + fprintf(gOutFunc_XML->file, " \n"); + fprintf(gOutFunc_XML->file, " %s\n", (funcInfo->name == NULL)? "" : funcInfo->name); + fprintf(gOutFunc_XML->file, " %s\n", (funcInfo->camelCaseName == NULL)? "" : funcInfo->camelCaseName); + ReplaceReservedXmlCharacters(funcInfo->hint, tempString); + fprintf(gOutFunc_XML->file, " %s\n", (funcInfo->hint == NULL)? "" : tempString); + fprintf(gOutFunc_XML->file, " %s\n", funcInfo->group); + + /* Optional function flags */ + if(funcInfo->flags & (TA_FUNC_FLG_OVERLAP | TA_FUNC_FLG_VOLUME | TA_FUNC_FLG_CANDLESTICK | TA_FUNC_FLG_UNST_PER)) + { + fprintf(gOutFunc_XML->file, " \n"); + if(funcInfo->flags & TA_FUNC_FLG_OVERLAP) + { + fprintf(gOutFunc_XML->file, " Overlap\n"); + } + if(funcInfo->flags & TA_FUNC_FLG_VOLUME) + { + fprintf(gOutFunc_XML->file, " Volume\n"); + } + if(funcInfo->flags & TA_FUNC_FLG_CANDLESTICK) + { + fprintf(gOutFunc_XML->file, " Candlestick\n"); + } + if(funcInfo->flags & TA_FUNC_FLG_UNST_PER) + { + fprintf(gOutFunc_XML->file, " Unstable Period\n"); + } + + fprintf(gOutFunc_XML->file, " \n"); + } + + + /* Required input arguments */ + fprintf(gOutFunc_XML->file, " \n"); + for(i=0; inbInput; i++) + { + retCode = TA_GetInputParameterInfo( funcInfo->handle, i, &inputInfo); + if(inputInfo->type == TA_Input_Price) + { + if(inputInfo->flags & TA_IN_PRICE_OPEN) + { + fprintf(gOutFunc_XML->file, " \n"); + fprintf(gOutFunc_XML->file, " Open\n"); + fprintf(gOutFunc_XML->file, " Open\n"); + fprintf(gOutFunc_XML->file, " \n"); + } + if(inputInfo->flags & TA_IN_PRICE_HIGH) + { + fprintf(gOutFunc_XML->file, " \n"); + fprintf(gOutFunc_XML->file, " High\n"); + fprintf(gOutFunc_XML->file, " High\n"); + fprintf(gOutFunc_XML->file, " \n"); + } + if(inputInfo->flags & TA_IN_PRICE_LOW) + { + fprintf(gOutFunc_XML->file, " \n"); + fprintf(gOutFunc_XML->file, " Low\n"); + fprintf(gOutFunc_XML->file, " Low\n"); + fprintf(gOutFunc_XML->file, " \n"); + } + if(inputInfo->flags & TA_IN_PRICE_CLOSE) + { + fprintf(gOutFunc_XML->file, " \n"); + fprintf(gOutFunc_XML->file, " Close\n"); + fprintf(gOutFunc_XML->file, " Close\n"); + fprintf(gOutFunc_XML->file, " \n"); + } + if(inputInfo->flags & TA_IN_PRICE_VOLUME) + { + fprintf(gOutFunc_XML->file, " \n"); + fprintf(gOutFunc_XML->file, " Volume\n"); + fprintf(gOutFunc_XML->file, " Volume\n"); + fprintf(gOutFunc_XML->file, " \n"); + } + if(inputInfo->flags & TA_IN_PRICE_OPENINTEREST) + { + fprintf(gOutFunc_XML->file, " \n"); + fprintf(gOutFunc_XML->file, " Open Interest\n"); + fprintf(gOutFunc_XML->file, " Open Interest\n"); + fprintf(gOutFunc_XML->file, " \n"); + } + if(inputInfo->flags & TA_IN_PRICE_TIMESTAMP) + { + fprintf(gOutFunc_XML->file, " \n"); + fprintf(gOutFunc_XML->file, " Timestamp\n"); + fprintf(gOutFunc_XML->file, " Timestamp\n"); + fprintf(gOutFunc_XML->file, " \n"); + } + } + else + { + fprintf(gOutFunc_XML->file, " \n"); + if(inputInfo->type == TA_Input_Real) + { + fprintf(gOutFunc_XML->file, " Double Array\n"); + } + else if(inputInfo->type == TA_Input_Integer) + { + fprintf(gOutFunc_XML->file, " Integer Array\n"); + } + else + { + printf("Unknown input type detected.\n"); + } + fprintf(gOutFunc_XML->file, " %s\n", inputInfo->paramName); + fprintf(gOutFunc_XML->file, " \n"); + } + } + fprintf(gOutFunc_XML->file, " \n"); + + /* Optional input arguments */ + if(funcInfo->nbOptInput > 0) + { + + fprintf(gOutFunc_XML->file, " \n"); + for(i=0; inbOptInput; i++) + { + retCode = TA_GetOptInputParameterInfo( funcInfo->handle, i, &optInputInfo ); + + fprintf(gOutFunc_XML->file, " \n"); + fprintf(gOutFunc_XML->file, " %s\n", optInputInfo->displayName); + ReplaceReservedXmlCharacters(optInputInfo->hint, tempString); + fprintf(gOutFunc_XML->file, " %s\n", (optInputInfo->hint == NULL)? "" : tempString); + if(optInputInfo->flags != 0) + { + fprintf(gOutFunc_XML->file, " \n"); + + if(optInputInfo->flags & TA_OPTIN_IS_PERCENT) + { + fprintf(gOutFunc_XML->file, " Percent\n"); + } + if(optInputInfo->flags & TA_OPTIN_IS_DEGREE) + { + fprintf(gOutFunc_XML->file, " Degree\n"); + } + if(optInputInfo->flags & TA_OPTIN_IS_CURRENCY) + { + fprintf(gOutFunc_XML->file, " Currency\n"); + } + if(optInputInfo->flags & TA_OPTIN_ADVANCED) + { + fprintf(gOutFunc_XML->file, " Advanced\n"); + } + + fprintf(gOutFunc_XML->file, " \n"); + } + + if(optInputInfo->type == TA_OptInput_RealRange) + { + TA_RealRange *doubleRange; + + doubleRange= (TA_RealRange*)optInputInfo->dataSet; + fprintf(gOutFunc_XML->file, " Double\n"); + fprintf(gOutFunc_XML->file, " \n"); + fprintf(gOutFunc_XML->file, " %s\n", doubleToStr(doubleRange->min)); + fprintf(gOutFunc_XML->file, " %s\n", doubleToStr(doubleRange->max)); + fprintf(gOutFunc_XML->file, " %d\n", doubleRange->precision); + fprintf(gOutFunc_XML->file, " %s\n", doubleToStr(doubleRange->suggested_start)); + fprintf(gOutFunc_XML->file, " %s\n", doubleToStr(doubleRange->suggested_end)); + fprintf(gOutFunc_XML->file, " %s\n", doubleToStr(doubleRange->suggested_increment)); + fprintf(gOutFunc_XML->file, " \n"); + fprintf(gOutFunc_XML->file, " %s\n", doubleToStr(optInputInfo->defaultValue)); + } + else if(optInputInfo->type == TA_OptInput_IntegerRange) + { + TA_IntegerRange *integerRange; + + integerRange = (TA_IntegerRange*)optInputInfo->dataSet; + fprintf(gOutFunc_XML->file, " Integer\n"); + fprintf(gOutFunc_XML->file, " \n"); + fprintf(gOutFunc_XML->file, " %d\n", integerRange->min); + fprintf(gOutFunc_XML->file, " %d\n", integerRange->max); + fprintf(gOutFunc_XML->file, " %d\n", integerRange->max); + fprintf(gOutFunc_XML->file, " %d\n", integerRange->max); + fprintf(gOutFunc_XML->file, " %d\n", integerRange->max); + fprintf(gOutFunc_XML->file, " \n"); + fprintf(gOutFunc_XML->file, " %d\n", (int)optInputInfo->defaultValue); + } + else if(optInputInfo->type == TA_OptInput_IntegerList) + { + TA_IntegerList *intList; + + intList = (TA_IntegerList*) optInputInfo->dataSet; + fprintf(gOutFunc_XML->file, " MA Type\n"); + fprintf(gOutFunc_XML->file, " %d\n", (int)optInputInfo->defaultValue); + if( intList != (TA_IntegerList*) TA_DEF_UI_MA_Method.dataSet ) + { + printf("Integer lists are not supported.\n"); + } + } + else + { + printf("Unknown optional input type detected.\n"); + } + + fprintf(gOutFunc_XML->file, " \n"); + } + fprintf(gOutFunc_XML->file, " \n"); + } + + /* Output arguments */ + fprintf(gOutFunc_XML->file, " \n"); + for(i=0; inbOutput; i++) + { + retCode = TA_GetOutputParameterInfo( funcInfo->handle, i, &outputInfo ); + fprintf(gOutFunc_XML->file, " \n"); + if(outputInfo->type == TA_Output_Integer) + { + fprintf(gOutFunc_XML->file, " Integer Array\n"); + } + else if(outputInfo->type == TA_Output_Real) + { + fprintf(gOutFunc_XML->file, " Double Array\n"); + } + else + { + printf("Unknown output type detected.\n"); + } + fprintf(gOutFunc_XML->file, " %s\n", outputInfo->paramName); + if(outputInfo->flags != 0) + { + fprintf(gOutFunc_XML->file, " \n"); + + if(outputInfo->flags & TA_OUT_LINE) + { + fprintf(gOutFunc_XML->file, " Line\n"); + } + if(outputInfo->flags & TA_OUT_DOT_LINE) + { + fprintf(gOutFunc_XML->file, " Dotted Line\n"); + } + if(outputInfo->flags & TA_OUT_DASH_LINE) + { + fprintf(gOutFunc_XML->file, " Dashed Line\n"); + } + if(outputInfo->flags & TA_OUT_DOT) + { + fprintf(gOutFunc_XML->file, " Dots\n"); + } + if(outputInfo->flags & TA_OUT_HISTO) + { + fprintf(gOutFunc_XML->file, " Histogram\n"); + } + if(outputInfo->flags & TA_OUT_PATTERN_BOOL) + { + fprintf(gOutFunc_XML->file, " Pattern Bool\n"); + } + if(outputInfo->flags & TA_OUT_PATTERN_BULL_BEAR) + { + fprintf(gOutFunc_XML->file, " Pattern Bull Bear\n"); + } + if(outputInfo->flags & TA_OUT_PATTERN_STRENGTH) + { + fprintf(gOutFunc_XML->file, " Pattern Strength\n"); + } + if(outputInfo->flags & TA_OUT_POSITIVE) + { + fprintf(gOutFunc_XML->file, " Positive\n"); + } + if(outputInfo->flags & TA_OUT_NEGATIVE) + { + fprintf(gOutFunc_XML->file, " Negative\n"); + } + if(outputInfo->flags & TA_OUT_ZERO) + { + fprintf(gOutFunc_XML->file, " Zero\n"); + } + if(outputInfo->flags & TA_OUT_UPPER_LIMIT) + { + fprintf(gOutFunc_XML->file, " Upper Limit\n"); + } + if(outputInfo->flags & TA_OUT_LOWER_LIMIT) + { + fprintf(gOutFunc_XML->file, " Lower Limit\n"); + } + + fprintf(gOutFunc_XML->file, " \n"); + } + fprintf(gOutFunc_XML->file, " \n"); + } + fprintf(gOutFunc_XML->file, " \n"); + fprintf(gOutFunc_XML->file, " \n"); + fprintf(gOutFunc_XML->file, "\n"); + fprintf(gOutFunc_XML->file, "\n"); +} + +static void doForEachFunctionPhase1( const TA_FuncInfo *funcInfo, + void *opaqueData ) +{ + (void)opaqueData; + + #ifdef _MSC_VER + /* Run the func file through the pre-processor to generate the Java code. */ + genJavaCodePhase1( funcInfo ); + #else + (void)funcInfo; + #endif +} + +static void doForEachFunctionPhase2( const TA_FuncInfo *funcInfo, + void *opaqueData ) +{ + static int firstTime = 1; + + (void)opaqueData; /* Get ride of compiler warning */ + + /* Add this function to the "ta_func_list.txt" */ + genPrefix = 0; + fprintf( gOutFuncList_TXT->file, "%-20s%s\n", funcInfo->name, funcInfo->hint ); + + fprintf( gOutFunc_H->file, "\n" ); + fprintf( gOutFunc_SWG->file, "\n" ); + + printf( "Processing [TA_%s]\n", funcInfo->name ); + + fprintf( gOutFunc_H->file, "/*\n" ); + printFuncHeaderDoc( gOutFunc_H->file, funcInfo, " * " ); + fprintf( gOutFunc_H->file, " */\n" ); + + fprintf( gOutFunc_SWG->file, "/*\n" ); + printFuncHeaderDoc( gOutFunc_SWG->file, funcInfo, " * " ); + fprintf( gOutFunc_SWG->file, " */\n" ); + + /* Generate the defines corresponding to this function. */ + printDefines( gOutFunc_H->file, funcInfo ); + printDefines( gOutFunc_SWG->file, funcInfo ); + + /* Generate the function prototype. */ + printFunc( gOutFunc_H->file, NULL, funcInfo, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ); + fprintf( gOutFunc_H->file, "\n" ); + + printFunc( gOutFunc_H->file, NULL, funcInfo, 1, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0 ); + fprintf( gOutFunc_H->file, "\n" ); + + /* Generate the SWIG interface. */ + printFunc( gOutFunc_SWG->file, NULL, funcInfo, 1, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0 ); + fprintf( gOutFunc_SWG->file, "\n" ); + + /* Generate the corresponding lookback function prototype. */ + printFunc( gOutFunc_H->file, NULL, funcInfo, 1, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0 ); + printFunc( gOutFunc_SWG->file, NULL, funcInfo, 1, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0 ); + + /* Create the frame definition (ta_frame.c) and declaration (ta_frame.h) */ + genPrefix = 1; + printFrameHeader( gOutFrame_H->file, funcInfo, 0 ); + fprintf( gOutFrame_H->file, ";\n" ); + printFrameHeader( gOutFrame_H->file, funcInfo, 1 ); + fprintf( gOutFrame_H->file, ";\n\n" ); + printCallFrame( gOutFrame_C->file, funcInfo ); + + /* Add this function to the Makefile.am */ + if( firstTime ) + fprintf( gOutMakefile_AM->file, "\tta_%s.c", funcInfo->name ); + else + fprintf( gOutMakefile_AM->file, " \\\n\tta_%s.c", funcInfo->name ); + + #ifdef _MSC_VER + /* Add the entry in the .NET project file. */ + fprintf( gOutProjFile->file, " file, " RelativePath=\"..\\..\\..\\c\\src\\ta_func\\ta_%s.c\">\n", funcInfo->name ); + fprintf( gOutProjFile->file, " file, " Name=\"Debug|Win32\">\n" ); + fprintf( gOutProjFile->file, " file, " Name=\"VCCLCompilerTool\"\n" ); + fprintf( gOutProjFile->file, " AdditionalIncludeDirectories=\"\"\n" ); + fprintf( gOutProjFile->file, " UsePrecompiledHeader=\"0\"\n" ); + fprintf( gOutProjFile->file, " CompileAs=\"2\"/>\n" ); + fprintf( gOutProjFile->file, " \n" ); + fprintf( gOutProjFile->file, " file, " Name=\"Release|Win32\">\n" ); + fprintf( gOutProjFile->file, " file, " Name=\"VCCLCompilerTool\"\n" ); + fprintf( gOutProjFile->file, " AdditionalIncludeDirectories=\"\"\n" ); + fprintf( gOutProjFile->file, " UsePrecompiledHeader=\"0\"\n" ); + fprintf( gOutProjFile->file, " CompileAs=\"2\"/>\n" ); + fprintf( gOutProjFile->file, " \n" ); + fprintf( gOutProjFile->file, " file, " Name=\"Debug SubArray|Win32\">\n" ); + fprintf( gOutProjFile->file, " file, " Name=\"VCCLCompilerTool\"\n" ); + fprintf( gOutProjFile->file, " AdditionalIncludeDirectories=\"\"\n" ); + fprintf( gOutProjFile->file, " UsePrecompiledHeader=\"0\"\n" ); + fprintf( gOutProjFile->file, " CompileAs=\"2\"/>\n" ); + fprintf( gOutProjFile->file, " \n" ); + fprintf( gOutProjFile->file, " file, " Name=\"Release SubArray|Win32\">\n" ); + fprintf( gOutProjFile->file, " file, " Name=\"VCCLCompilerTool\"\n" ); + fprintf( gOutProjFile->file, " AdditionalIncludeDirectories=\"\"\n" ); + fprintf( gOutProjFile->file, " UsePrecompiledHeader=\"0\"\n" ); + fprintf( gOutProjFile->file, " CompileAs=\"2\"/>\n" ); + fprintf( gOutProjFile->file, " \n" ); + fprintf( gOutProjFile->file, " \n" ); + + /* Add the entry in the MSVC project file. */ + fprintf( gOutMSVCProjFile->file, "# Begin Source File\n" ); + fprintf( gOutMSVCProjFile->file, "\n" ); + fprintf( gOutMSVCProjFile->file, "SOURCE=..\\..\\..\\..\\src\\ta_func\\ta_%s.c\n", funcInfo->name ); + fprintf( gOutMSVCProjFile->file, "# End Source File\n" ); + + /* Add the entry in the VS2005 project file. */ + printVS2005FileNode( gOutVS2005ProjFile->file, funcInfo->name ); + + /* Generate the excel glue code */ + printExcelGlueCode( gOutExcelGlue_C->file, funcInfo ); + + /* Generate CoreAnnotated */ + printJavaFunctionAnnotation( funcInfo ); + + /* Generate the functions declaration for the .NET interface. */ + printFunc( gOutDotNet_H->file, NULL, funcInfo, 1, 0, 1, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0 ); + + fprintf( gOutDotNet_H->file, " #if defined( _MANAGED ) && defined( USE_SUBARRAY )\n" ); + printFunc( gOutDotNet_H->file, NULL, funcInfo, 1, 0, 1, 0, 0, 1, 1, 0, 0, 0, 0, 1, 0 ); + fprintf( gOutDotNet_H->file, "\n" ); + + printFunc( gOutDotNet_H->file, NULL, funcInfo, 1, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0 ); + + fprintf( gOutDotNet_H->file, " { return " ); + printFunc( gOutDotNet_H->file, NULL, funcInfo, 1, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 1, 1 ); + fprintf( gOutDotNet_H->file, " }\n" ); + + fprintf( gOutDotNet_H->file, " #elif defined( _MANAGED )\n" ); + printFunc( gOutDotNet_H->file, NULL, funcInfo, 1, 0, 1, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0 ); + fprintf( gOutDotNet_H->file, " #endif\n" ); + + printFunc( gOutDotNet_H->file, NULL, funcInfo, 1, 0, 1, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0 ); + fprintf( gOutDotNet_H->file, "\n" ); + fprintf( gOutDotNet_H->file, " #define TA_%s Core::%s\n", funcInfo->name, funcInfo->camelCaseName ); + fprintf( gOutDotNet_H->file, " #define TA_%s_Lookback Core::%sLookback\n\n", funcInfo->name, funcInfo->camelCaseName ); + #endif + + doFuncFile( funcInfo ); + + #ifdef _MSC_VER + /* Run the func file through the pre-processor to generate the Java code. */ + genJavaCodePhase2( funcInfo ); + #endif + + firstTime = 0; +} + +static void doForEachUnstableFunction( const TA_FuncInfo *funcInfo, + void *opaqueData ) +{ + unsigned int *i; + + i = (unsigned int *)opaqueData; + + if( funcInfo->flags & TA_FUNC_FLG_UNST_PER ) + { + print( gOutDefs_H->file, " /* %03d */ ENUM_DEFINE( TA_FUNC_UNST_%s, %s),\n", *i, funcInfo->name, funcInfo->camelCaseName ); + (*i)++; + } +} + +static void printDefines( FILE *out, const TA_FuncInfo *funcInfo ) +{ + TA_RetCode retCode; + const TA_OptInputParameterInfo *optInputParamInfo; + unsigned int i, j; + unsigned int paramNb; + const char *paramName; + const char *defaultParamName; + TA_IntegerList *intList; + TA_RealList *realList; + + /* Go through the optional parameter and print + * the corresponding define for the TA_OptInput_IntegerList + * and TA_OptInput_RealList having a string. + */ + paramNb = 0; + for( i=0; i < funcInfo->nbOptInput; i++ ) + { + retCode = TA_GetOptInputParameterInfo( funcInfo->handle, + i, &optInputParamInfo ); + + if( retCode != TA_SUCCESS ) + { + printf( "[%s] invalid 'optional input' information\n", funcInfo->name ); + return; + } + + paramName = optInputParamInfo->paramName; + + /* TA_MA: Value for parameter */ + + switch( optInputParamInfo->type ) + { + case TA_OptInput_RealList: + defaultParamName = "optInReal"; + break; + case TA_OptInput_IntegerList: + defaultParamName = "optInInteger"; + break; + default: + paramNb++; + continue; /* Skip other type of parameter */ + } + + if( !paramName ) + paramName = defaultParamName; + + /* Output a comment to guide the user. */ + switch( optInputParamInfo->type ) + { + case TA_OptInput_IntegerList: + intList = (TA_IntegerList *)optInputParamInfo->dataSet; + if( intList != (TA_IntegerList *)TA_DEF_UI_MA_Method.dataSet ) + { + fprintf( out, "\n/* TA_%s: Optional Parameter %s */\n", + funcInfo->name, paramName ); + for( j=0; j < intList->nbElement; j++ ) + { + strcpy( gTempBuf, intList->data[j].string ); + cnvtChar( gTempBuf, ' ', '_' ); + trimWhitespace( gTempBuf ); + cnvtToUpperCase( gTempBuf ); + fprintf( out, "#define TA_%s_%s %d\n", + funcInfo->name, + gTempBuf, + intList->data[j].value ); + + } + fprintf( out, "\n" ); + } + break; + case TA_OptInput_RealList: + fprintf( out, "\n/* TA_%s: Optional Parameter %s */\n", + funcInfo->name, paramName ); + + realList = (TA_RealList *)optInputParamInfo->dataSet; + for( j=0; j < realList->nbElement; j++ ) + { + strcpy( gTempBuf, realList->data[j].string ); + cnvtChar( gTempBuf, ' ', '_' ); + trimWhitespace( gTempBuf ); + cnvtToUpperCase( gTempBuf ); + fprintf( out, "#define TA_%s_%s %s\n", + funcInfo->name, + gTempBuf, + doubleToStr(realList->data[j].value) ); + + } + fprintf( out, "\n" ); + break; + default: + /* Do nothing */ + break; + } + + paramNb++; + } +} + +static void printFunc( FILE *out, + const char *prefix, /* Can be NULL */ + const TA_FuncInfo *funcInfo, + unsigned int prototype, /* Boolean */ + unsigned int frame, /* Boolean */ + unsigned int semiColonNeeded, /* Boolean */ + unsigned int validationCode, /* Boolean */ + unsigned int lookbackSignature, /* Boolean */ + unsigned int managedCPPCode, /* Boolean */ + unsigned int managedCPPDeclaration, /* Boolean */ + unsigned int inputIsSinglePrecision, /* Boolean */ + unsigned int outputForSWIG, /* Boolean */ + unsigned int outputForJava, /* Boolean */ + unsigned int lookbackValidationCode, /* Boolean */ + unsigned int useSubArrayObject, /* Boolean */ + unsigned int arrayToSubArrayCnvt /* Boolean */ + ) +{ + TA_RetCode retCode; + unsigned int i, j, k, lastParam; + int indent; + unsigned int paramNb; + const char *paramName; + const char *defaultParamName; + const TA_InputParameterInfo *inputParamInfo; + const TA_OptInputParameterInfo *optInputParamInfo; + const TA_OutputParameterInfo *outputParamInfo; + const char *typeString; + const char *inputDoubleArrayType; + const char *inputIntArrayType; + const char *outputDoubleArrayType; + const char *outputIntArrayType; + const char *outputIntParam; + const char *arrayBracket; + const char *funcName; + int excludeFromManaged; + int isMAType; + + const char *startIdxString; + const char *endIdxString; + const char *outNbElementString; + const char *outBegIdxString; + + char funcNameBuffer[1024]; /* Not safe, but 1024 is realistic, */ + + if( arrayToSubArrayCnvt ) + { + inputIntArrayType = " "; + inputDoubleArrayType = " "; + outputDoubleArrayType = " "; + outputIntArrayType = " "; + outputIntParam = " "; + arrayBracket = " "; + startIdxString = "startIdx"; + endIdxString = "endIdx"; + outNbElementString = "outNBElement"; + outBegIdxString = "outBegIdx"; + funcName = funcInfo->camelCaseName; + } + else if( managedCPPCode ) + { + if( inputIsSinglePrecision ) + { + inputDoubleArrayType = "cli::array^"; + } + else + { + inputDoubleArrayType = useSubArrayObject? "SubArray^":"cli::array^"; + } + + inputIntArrayType = "cli::array^"; + outputDoubleArrayType = "cli::array^"; + outputIntArrayType = "cli::array^"; + outputIntParam = "[Out]int%"; + arrayBracket = ""; + startIdxString = "startIdx"; + endIdxString = "endIdx"; + outNbElementString = "outNBElement"; + outBegIdxString = "outBegIdx"; + funcName = funcInfo->camelCaseName; + } + else if( outputForSWIG ) + { + if( inputIsSinglePrecision ) + inputDoubleArrayType = "const float *"; + else + inputDoubleArrayType = "const double *"; + inputIntArrayType = "const int *"; + outputIntArrayType = "int"; + outputDoubleArrayType = "double"; + outputIntParam = "int"; + arrayBracket = ""; + startIdxString = " START_IDX"; + endIdxString = " END_IDX"; + outNbElementString = "OUT_SIZE"; + outBegIdxString = "BEG_IDX"; + funcName = funcInfo->name; + } + else if( outputForJava ) + { + if( inputIsSinglePrecision ) + inputDoubleArrayType = "float"; + else + inputDoubleArrayType = "double"; + inputIntArrayType = "int"; + outputDoubleArrayType = "double"; + outputIntArrayType = "int"; + outputIntParam = "MInteger"; + arrayBracket = "[]"; + startIdxString = "startIdx"; + endIdxString = "endIdx"; + outNbElementString = "outNBElement"; + outBegIdxString = "outBegIdx"; + funcName = funcNameBuffer; + + /* For Java, first letter is always lowercase. */ + strcpy( funcNameBuffer, funcInfo->camelCaseName ); + funcNameBuffer[0] = tolower(funcNameBuffer[0]); + } + else + { + if( inputIsSinglePrecision ) + inputDoubleArrayType = "const float"; + else + inputDoubleArrayType = "const double"; + inputIntArrayType = "const int"; + outputDoubleArrayType = "double"; + outputIntArrayType = "int"; + outputIntParam = "int"; + arrayBracket = "[]"; + startIdxString = "startIdx"; + endIdxString = "endIdx"; + outNbElementString = "outNBElement"; + outBegIdxString = "outBegIdx"; + funcName = funcInfo->name; + } + + typeString = ""; + defaultParamName = ""; + + if( prototype ) + { + if( lookbackSignature ) + { + if( managedCPPCode ) + { + sprintf( gTempBuf, "%s%sint %s%sLookback( ", + prefix? prefix:"", + managedCPPDeclaration? " static ":"", + managedCPPDeclaration? "":"Core::", + funcName ); + } + else if( outputForJava ) + { + sprintf( gTempBuf, "%spublic int %sLookback( ", + prefix? prefix:"", + funcName ); + } + else + { + sprintf( gTempBuf, "%sint TA_%s_Lookback( ", + prefix? prefix:"", + funcName ); + } + print( out, gTempBuf ); + indent = (unsigned int)strlen(gTempBuf) - 2; + } + else + { + if( arrayToSubArrayCnvt ) + { + sprintf( gTempBuf, "%s%s( %s, ", prefix? prefix:"", funcName, startIdxString ); + } + else if( managedCPPCode ) + { + sprintf( gTempBuf, "%s%senum class %sRetCode %s%s( int %s,\n", + prefix? prefix:"", + managedCPPDeclaration? " static ":"", + managedCPPDeclaration? "":"Core::", + managedCPPDeclaration? "":"Core::", + funcName, + startIdxString ); + } + else if( outputForJava ) + { + sprintf( gTempBuf, "%spublic RetCode %s( int %s,\n", + prefix? prefix:"", + funcName, + startIdxString ); + } + else + { + if( inputIsSinglePrecision ) + sprintf( gTempBuf, "%sTA_RetCode TA_S_%s( int %s,\n", + prefix? prefix:"", + funcName, + startIdxString ); + else + sprintf( gTempBuf, "%sTA_RetCode TA_%s( int %s,\n", + prefix? prefix:"", + funcName, + startIdxString ); + } + print( out, gTempBuf ); + indent = (unsigned int)strlen(gTempBuf); + + if( outputForSWIG ) + indent -= 25; + else + indent -= 17; + + if( indent < 0 ) indent = 0; + + printIndent( out, indent ); + if( arrayToSubArrayCnvt ) + fprintf( out, "%s,\n", endIdxString ); + else + fprintf( out, "int %s,\n", endIdxString ); + } + } + else if( frame ) + { + indent = (unsigned int)strlen(funcName); + if( lookbackSignature ) + { + print( out, "%sTA_%s_Lookback(", prefix == NULL? "" : prefix, funcName ); + indent += 12; + + } + else + { + print( out, "%sTA_%s(\n", prefix == NULL? "" : prefix, funcName ); + indent += 4; + } + } + else if( validationCode ) + { + indent = 3; + } + else + { + printf( "printFunc has nothing to do?\n" ); + return; + } + + if( prefix ) + indent += (unsigned int)strlen(prefix); + if( frame ) + indent -= 5; + + if( frame && !lookbackSignature ) + { + printIndent( out, indent ); + fprintf( out, "%s,\n", startIdxString ); + printIndent( out, indent ); + fprintf( out, "%s,\n", endIdxString ); + } + + /* Go through all the input. */ + if( !lookbackSignature && !lookbackValidationCode ) + { + if( validationCode ) + { + printIndent( out, indent ); + fprintf( out, "#if !defined(_JAVA)\n" ); + } + + paramNb = 0; + for( i=0; i < funcInfo->nbInput; i++ ) + { + retCode = TA_GetInputParameterInfo( funcInfo->handle, + i, &inputParamInfo ); + + if( retCode != TA_SUCCESS ) + { + printf( "[%s] invalid 'input' information (%d,%d)\n", funcName, i, paramNb ); + return; + } + + paramName = inputParamInfo->paramName; + + switch( inputParamInfo->type ) + { + case TA_Input_Price: + /* Find how many component are requested. */ + j = 0; + if( inputParamInfo->flags & TA_IN_PRICE_TIMESTAMP ) + j++; + if( inputParamInfo->flags & TA_IN_PRICE_OPEN ) + j++; + if( inputParamInfo->flags & TA_IN_PRICE_HIGH ) + j++; + if( inputParamInfo->flags & TA_IN_PRICE_LOW ) + j++; + if( inputParamInfo->flags & TA_IN_PRICE_CLOSE ) + j++; + if( inputParamInfo->flags & TA_IN_PRICE_VOLUME ) + j++; + if( inputParamInfo->flags & TA_IN_PRICE_OPENINTEREST ) + j++; + + if( j == 0 ) + { + printf( "[%s] invalid 'price input' information (%d,%d)\n", funcName, i, paramNb ); + return; + } + + if( validationCode ) + { + printIndent( out, indent ); + fprintf( out, "/* Verify required price component. */\n" ); + printIndent( out, indent ); + fprintf( out, "if(" ); + k = 0; + if( inputParamInfo->flags & TA_IN_PRICE_TIMESTAMP ) + { + k++; + fprintf( out, "!inTimestamp%s", k != j? "||":")"); + } + + if( inputParamInfo->flags & TA_IN_PRICE_OPEN ) + { + k++; + fprintf( out, "!inOpen%s", k != j? "||":")"); + } + + if( inputParamInfo->flags & TA_IN_PRICE_HIGH ) + { + k++; + fprintf( out, "!inHigh%s", k != j? "||":")"); + } + + if( inputParamInfo->flags & TA_IN_PRICE_LOW ) + { + k++; + fprintf( out, "!inLow%s", k != j? "||":")"); + } + + if( inputParamInfo->flags & TA_IN_PRICE_CLOSE ) + { + k++; + fprintf( out, "!inClose%s", k != j? "||":")"); + } + + if( inputParamInfo->flags & TA_IN_PRICE_VOLUME ) + { + k++; + fprintf( out, "!inVolume%s", k != j? "||":")"); + } + + if( inputParamInfo->flags & TA_IN_PRICE_OPENINTEREST ) + { + k++; + fprintf( out, "!inOpenInterest%s", k != j? "||":")"); + } + + fprintf( out, "\n" ); + printIndent( out, indent ); + fprintf( out, " return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam);\n" ); + print( out, "\n" ); + } + else + { + if( inputParamInfo->flags & TA_IN_PRICE_OPEN ) + { + printIndent( out, indent ); + if( frame ) + fprintf( out, "params->in[%d].data.inPrice.open, /*", paramNb ); + fprintf( out, "%-*s%s%s%s", + prototype? 12 : 0, + prototype? inputDoubleArrayType : "", + outputForSWIG?"":" ", + outputForSWIG? "IN_ARRAY /* inOpen */": + arrayToSubArrayCnvt? "gcnew SubArray(inOpen,0)" : "inOpen", + prototype? arrayBracket : "" ); + fprintf( out, "%s\n", frame? " */":"," ); + } + + if( inputParamInfo->flags & TA_IN_PRICE_HIGH ) + { + printIndent( out, indent ); + if( frame ) + fprintf( out, "params->in[%d].data.inPrice.high, /*", paramNb ); + fprintf( out, "%-*s%s%s%s", + prototype? 12 : 0, + prototype? inputDoubleArrayType : "", + outputForSWIG?"":" ", + outputForSWIG? "IN_ARRAY /* inHigh */": + arrayToSubArrayCnvt? "gcnew SubArray(inHigh,0)" : "inHigh", + prototype? arrayBracket : "" ); + fprintf( out, "%s\n", frame? " */":"," ); + } + + if( inputParamInfo->flags & TA_IN_PRICE_LOW ) + { + printIndent( out, indent ); + if( frame ) + fprintf( out, "params->in[%d].data.inPrice.low, /*", paramNb ); + fprintf( out, "%-*s%s%s%s", + prototype? 12 : 0, + prototype? inputDoubleArrayType : "", + outputForSWIG?"":" ", + outputForSWIG? "IN_ARRAY /* inLow */": + arrayToSubArrayCnvt? "gcnew SubArray(inLow,0)" : "inLow", + prototype? arrayBracket : "" ); + fprintf( out, "%s\n", frame? " */":"," ); + } + + if( inputParamInfo->flags & TA_IN_PRICE_CLOSE ) + { + printIndent( out, indent ); + if( frame ) + fprintf( out, "params->in[%d].data.inPrice.close, /*", paramNb ); + fprintf( out, "%-*s%s%s%s", + prototype? 12 : 0, + prototype? inputDoubleArrayType : "", + outputForSWIG?"":" ", + outputForSWIG? "IN_ARRAY /* inClose */": + arrayToSubArrayCnvt? "gcnew SubArray(inClose,0)" : "inClose", + prototype? arrayBracket : "" ); + fprintf( out, "%s\n", frame? " */":"," ); + } + + if( inputParamInfo->flags & TA_IN_PRICE_VOLUME ) + { + printIndent( out, indent ); + if( frame ) + fprintf( out, "params->in[%d].data.inPrice.volume, /*", paramNb ); + fprintf( out, "%-*s%s%s%s", + prototype? 12 : 0, + prototype? inputDoubleArrayType : "", + outputForSWIG?"":" ", + outputForSWIG? "IN_ARRAY /* inVolume */": + arrayToSubArrayCnvt? "gcnew SubArray(inVolume,0)" : "inVolume", + prototype? arrayBracket : "" ); + fprintf( out, "%s\n", frame? " */":"," ); + } + + if( inputParamInfo->flags & TA_IN_PRICE_OPENINTEREST ) + { + printIndent( out, indent ); + if( frame ) + fprintf( out, "params->in[%d].data.inPrice.openInterest, /*", paramNb ); + fprintf( out, "%-*s%s%s%s", + prototype? 12 : 0, + prototype? inputDoubleArrayType : "", + outputForSWIG?"":" ", + outputForSWIG? "IN_ARRAY /* inOpenInterest */": + arrayToSubArrayCnvt? "gcnew SubArray(inOpenInterest,0)" : "inOpenInterest", + prototype? arrayBracket : "" ); + fprintf( out, "%s\n", frame? " */":"," ); + } + } + break; + case TA_Input_Real: + typeString = inputDoubleArrayType; + defaultParamName = outputForSWIG? "IN_ARRAY": + arrayToSubArrayCnvt? "gcnew SubArray(inReal,0)" : "inReal"; + break; + case TA_Input_Integer: + typeString = inputIntArrayType; + defaultParamName = outputForSWIG? "IN_ARRAY":"inInteger"; + break; + default: + if( !paramName ) + paramName = "inParam"; + printf( "[%s,%s,%d] invalid 'input' type(%d)\n", + funcName, paramName, paramNb, + inputParamInfo->type ); + return; + } + + if( inputParamInfo->type != TA_Input_Price ) + { + printIndent( out, indent ); + if( validationCode ) + fprintf( out, "if( !%s ) return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam);\n", inputParamInfo->paramName ); + else + { + + if( frame ) + fprintf( out, "params->in[%d].data.%s, /*", paramNb, defaultParamName ); + if( outputForSWIG ) + fprintf( out, "%-*s%s%s /* %s */", + prototype? 12 : 0, + prototype? typeString : "", + defaultParamName, + prototype? arrayBracket : "", + inputParamInfo->paramName ); + else + { + if( arrayToSubArrayCnvt ) + { + fprintf( out, "%-*sgcnew SubArray(%s,0)", + prototype? 12 : 0, "", + inputParamInfo->paramName ); + } + else + { + fprintf( out, "%-*s %s%s", + prototype? 12 : 0, + prototype? typeString : "", + inputParamInfo->paramName, + prototype? arrayBracket : "" ); + } + } + fprintf( out, "%s\n", frame? " */":"," ); + } + } + paramNb++; + } + + if( validationCode ) + { + printIndent( out, indent ); + fprintf( out, "#endif /* !defined(_JAVA)*/\n" ); + } + } + + /* Go through all the optional input */ + paramNb = 0; + lastParam = 0; + for( i=0; i < funcInfo->nbOptInput; i++ ) + { + excludeFromManaged = 0; + + if( (i == (funcInfo->nbOptInput-1)) && lookbackSignature ) + lastParam = 1; + + retCode = TA_GetOptInputParameterInfo( funcInfo->handle, + i, &optInputParamInfo ); + + if( retCode != TA_SUCCESS ) + { + printf( "[%s] invalid 'optional input' information\n", funcName ); + return; + } + + paramName = optInputParamInfo->paramName; + + /* Boolean to detect special TA_MAType enumeration. */ + if( optInputParamInfo->dataSet == TA_DEF_UI_MA_Method.dataSet ) + isMAType = 1; + else + isMAType = 0; + + switch( optInputParamInfo->type ) + { + case TA_OptInput_RealRange: + case TA_OptInput_RealList: + typeString = "double"; + defaultParamName = outputForSWIG? "OPT_REAL":"optInReal"; + break; + case TA_OptInput_IntegerRange: + typeString = "int"; + defaultParamName = outputForSWIG? "OPT_INT":"optInInteger"; + break; + case TA_OptInput_IntegerList: + if( isMAType && !frame ) + { + + typeString = managedCPPCode||outputForJava? "MAType":"TA_MAType"; + defaultParamName = outputForSWIG? "OPT_MATYPE":"optInMAType"; + excludeFromManaged = 1; + } + else + { + typeString = "int"; + defaultParamName = outputForSWIG? "OPT_INT":"optInInteger"; + } + break; + default: + if( !paramName ) + paramName = "optInParam"; + printf( "[%s,%s,%d] invalid 'optional input' type(%d)\n", + funcName, paramName, paramNb, + optInputParamInfo->type ); + return; + } + + if( arrayToSubArrayCnvt ) + typeString = ""; + + if( !paramName ) + paramName = defaultParamName; + + if( validationCode ) + { + if( excludeFromManaged ) + { + printIndent( out, indent ); + fprintf( out, "#if !defined(_MANAGED) && !defined(_JAVA)\n" ); + } + + printOptInputValidation( out, paramName, optInputParamInfo, lookbackValidationCode ); + + if( excludeFromManaged ) + { + printIndent( out, indent ); + fprintf( out, "#endif /* !defined(_MANAGED) && !defined(_JAVA)*/\n" ); + } + } + else + { + if( !(lookbackSignature && (i == 0 )) ) + printIndent( out, indent ); + + if( frame ) + { + fprintf( out, "%sparams->optIn[%d].data.%s%s /*", + isMAType?"(TA_MAType)":"", + paramNb, defaultParamName, + lookbackSignature&&lastParam?"":"," ); + } + if( outputForSWIG ) + fprintf( out, "%-*s %s /* %s */", + prototype? 13 : 0, + prototype? typeString : "", + defaultParamName, paramName ); + else + fprintf( out, "%-*s %s", + prototype? 13 : 0, + prototype? typeString : "", + paramName ); + + if( frame ) + { + if( lookbackSignature && lastParam ) + fprintf( out, "*/ )%s\n", semiColonNeeded? ";":"" ); + else + fprintf( out, "*/\n" ); + } + else + { + switch( optInputParamInfo->type ) + { + case TA_OptInput_RealRange: + if( lookbackSignature && lastParam ) + fprintf( out, " )%s ", semiColonNeeded? ";":"" ); + else + fprintf( out, "," ); + + if( ((TA_RealRange *)(optInputParamInfo->dataSet))->min == TA_REAL_MIN ) + fprintf( out, " /* From TA_REAL_MIN" ); + else + fprintf( out, " /* From %.*g", + ((TA_RealRange *)(optInputParamInfo->dataSet))->precision, + ((TA_RealRange *)(optInputParamInfo->dataSet))->min ); + + if( ((TA_RealRange *)(optInputParamInfo->dataSet))->max == TA_REAL_MAX ) + fprintf( out, " to TA_REAL_MAX */\n" ); + else + { + fprintf( out, " to %.*g%s */\n", + ((TA_RealRange *)(optInputParamInfo->dataSet))->precision, + ((TA_RealRange *)(optInputParamInfo->dataSet))->max, + optInputParamInfo->flags & TA_OPTIN_IS_PERCENT? " %":"" ); + } + break; + case TA_OptInput_IntegerRange: + if( lookbackSignature && lastParam ) + fprintf( out, " )%s ", semiColonNeeded? ";":"" ); + else + fprintf( out, "," ); + + if( ((TA_IntegerRange *)(optInputParamInfo->dataSet))->min == TA_INTEGER_MIN ) + fprintf( out, " /* From TA_INTEGER_MIN" ); + else + { + fprintf( out, " /* From %d", + ((TA_IntegerRange *)(optInputParamInfo->dataSet))->min ); + } + + if( ((TA_IntegerRange *)(optInputParamInfo->dataSet))->max == TA_INTEGER_MAX ) + fprintf( out, " to TA_INTEGER_MAX */\n" ); + else + { + fprintf( out, " to %d */\n", + ((TA_IntegerRange *)(optInputParamInfo->dataSet))->max ); + } + break; + default: + if( lookbackSignature && lastParam ) + fprintf( out, " )%s ", semiColonNeeded? ";":"" ); + else + fprintf( out, ",\n" ); + } + } + } + + paramNb++; + } + + if( lookbackSignature && (funcInfo->nbOptInput == 0) ) + { + if( frame || outputForJava ) + fprintf( out, " )%s\n", semiColonNeeded? ";":"" ); + else + fprintf( out, "void )%s\n", semiColonNeeded? ";":"" ); + } + + /* Go through all the output */ + if( lookbackSignature ) + { + if( !frame ) + print( out, "\n" ); + } + else if( !lookbackValidationCode ) + { + paramNb = 0; + lastParam = 0; + + if( !validationCode ) + { + printIndent( out, indent ); + if( frame ) + fprintf( out, "%s, ", outBegIdxString ); + else + fprintf( out, "%-*s %s%s", + prototype? 12 : 0, + prototype? outputIntParam : "", + prototype&&!managedCPPCode&&!outputForJava? "*" : "", + outBegIdxString ); + + fprintf( out, "%s\n", frame? "":"," ); + + printIndent( out, indent ); + if( frame ) + fprintf( out, "%s, ", outNbElementString ); + else + fprintf( out, "%-*s %s%s", + prototype? 12 : 0, + prototype? outputIntParam : "", + prototype&&!managedCPPCode&&!outputForJava? "*" : "", + outNbElementString ); + fprintf( out, "%s\n", frame? "":"," ); + } + + if( validationCode ) + { + printIndent( out, indent ); + fprintf( out, "#if !defined(_JAVA)\n" ); + } + + for( i=0; i < funcInfo->nbOutput; i++ ) + { + if( i == (funcInfo->nbOutput-1) ) + lastParam = 1; + + retCode = TA_GetOutputParameterInfo( funcInfo->handle, + i, &outputParamInfo ); + + if( retCode != TA_SUCCESS ) + { + printf( "[%s] invalid 'output' information\n", funcName ); + return; + } + + paramName = outputParamInfo->paramName; + + switch( outputParamInfo->type ) + { + case TA_Output_Real: + typeString = outputDoubleArrayType; + defaultParamName = outputForSWIG? "OUT_ARRAY":"outReal"; + break; + case TA_Output_Integer: + typeString = outputIntArrayType;; + defaultParamName = outputForSWIG? "OUT_ARRAY":"outInteger"; + break; + default: + if( !paramName ) + paramName = "outParam"; + printf( "[%s,%s,%d] invalid 'output' type(%d)\n", + funcName, paramName, paramNb, + outputParamInfo->type ); + return; + } + + if( !paramName ) + paramName = defaultParamName; + + if( validationCode ) + { + print( out, " if( !%s )\n", paramName ); + print( out, " return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam);\n" ); + print( out, "\n" ); + } + else + { + printIndent( out, indent ); + if( frame ) + fprintf( out, "params->out[%d].data.%s%s /*", + paramNb, defaultParamName, + lastParam? "":"," ); + + if( outputForSWIG ) + fprintf( out, "%-*s *%s%s /* %s */", + prototype? 12 : 0, + prototype? typeString : "", + defaultParamName, + prototype? arrayBracket : "", + paramName ); + else + fprintf( out, "%-*s %s%s", + prototype? 12 : 0, + prototype? typeString : "", + paramName, + prototype? arrayBracket : "" ); + + if( !lastParam ) + fprintf( out, "%s\n", frame? " */":"," ); + else + { + fprintf( out, "%s )%s\n", + frame? " */":"", + semiColonNeeded? ";":"" ); + } + } + + paramNb++; + } + + if( validationCode ) + { + printIndent( out, indent ); + fprintf( out, "#endif /* !defined(_JAVA) */\n" ); + } + + } + +} + +static void printCallFrame( FILE *out, const TA_FuncInfo *funcInfo ) +{ + genPrefix = 1; + + printFrameHeader( out, funcInfo, 0 ); + print( out, "{\n" ); + printFunc( out, " return ", funcInfo, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ); + print( out, "}\n" ); + + printFrameHeader( out, funcInfo, 1 ); + print( out, "{\n" ); + if( funcInfo->nbOptInput == 0 ) + print( out, " (void)params;\n" ); + printFunc( out, " return ", funcInfo, 0, 1, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0 ); + print( out, "}\n" ); + + genPrefix = 0; +} + + +static void printFrameHeader( FILE *out, const TA_FuncInfo *funcInfo, unsigned int lookbackSignature ) +{ + if( lookbackSignature ) + { + print( out, "unsigned int TA_%s_FramePPLB( const TA_ParamHolderPriv *params )\n", funcInfo->name ); + } + else + { + print( out, "TA_RetCode TA_%s_FramePP( const TA_ParamHolderPriv *params,\n", funcInfo->name ); + print( out, " int startIdx,\n" ); + print( out, " int endIdx,\n" ); + print( out, " int *outBegIdx,\n" ); + print( out, " int *outNBElement )\n" ); + } +} + +static void printExternReferenceForEachFunction( const TA_FuncInfo *info, + void *opaqueData ) +{ + (void)opaqueData; /* Get ride of compiler warning */ + + fprintf( gOutGroupIdx_C->file, "extern const TA_FuncDef TA_DEF_%s;\n", info->name ); +} + +static void printPerGroupList( const char *groupName, + unsigned int index, + unsigned int isFirst, + unsigned int isLast + ) +{ + (void)isLast; /* Get ride of compiler warning. */ + (void)isFirst; /* Get ride of compiler warning. */ + + fprintf( gOutGroupIdx_C->file, + "\nconst TA_FuncDef *TA_PerGroupFunc_%d[] = {\n", index ); + + gCurrentGroupName = groupName; + TA_ForEachFunc( printFunctionAddress, NULL ); + fprintf( gOutGroupIdx_C->file, "NULL };\n" ); + + fprintf( gOutGroupIdx_C->file, + "#define SIZE_GROUP_%d ((sizeof(TA_PerGroupFunc_%d)/sizeof(const TA_FuncDef *))-1)\n", + index, index ); +} + +static void printFunctionAddress( const TA_FuncInfo *info, + void *opaqueData ) +{ + (void)opaqueData; /* Get ride of compiler warning. */ + + if( strcmp( info->group, gCurrentGroupName ) == 0 ) + fprintf( gOutGroupIdx_C->file, "&TA_DEF_%s,\n", info->name ); +} + +static void printGroupListAddress( const char *groupName, + unsigned int index, + unsigned int isFirst, + unsigned int isLast + ) +{ + (void)isFirst; /* Get ride of compiler warning. */ + + if( groupName == NULL ) + fprintf( gOutGroupIdx_C->file, "NULL%s", isLast? "" : "," ); + else fprintf( gOutGroupIdx_C->file, "&TA_PerGroupFunc_%d[0]%s\n", + index, isLast? "" : "," ); +} + +static void printGroupSize( const char *groupName, + unsigned int index, + unsigned int isFirst, + unsigned int isLast + ) +{ + (void)isFirst; /* Get ride of compiler warning. */ + (void)groupName; /* Get ride of compiler warning. */ + + fprintf( gOutGroupIdx_C->file, "SIZE_GROUP_%d%s\n", + index, isLast? "" : "," ); +} + +static void printGroupSizeAddition( const char *groupName, + unsigned int index, + unsigned int isFirst, + unsigned int isLast + ) +{ + (void)isFirst; /* Get ride of compiler warning. */ + (void)groupName; /* Get ride of compiler warning. */ + + fprintf( gOutGroupIdx_C->file, "SIZE_GROUP_%d%s", + index, isLast? ";" : "+\n" ); +} + +static void doFuncFile( const TA_FuncInfo *funcInfo ) +{ + + FileHandle *tempFile1; + + unsigned int useTempFile; + FILE *logicIn; + FILE *logicTmp; + char localBuf1[500]; + + #define TEMPLATE_PASS1 "..\\temp\\pass1.tmp" + #define TEMPLATE_PASS2 "..\\temp\\pass2.tmp" + #define TEMPLATE_DEFAULT "..\\src\\ta_abstract\\templates\\ta_x.c.template" + #define LOGIC_TEMP "..\\temp\\logic.tmp" + + /* Check if the file already exist. */ + sprintf( localBuf1, "..\\src\\ta_func\\ta_%s.c", funcInfo->name ); + + gOutFunc_C = fileOpen( localBuf1, NULL, FILE_READ); + if( gOutFunc_C == NULL ) + useTempFile = 0; + else + { + useTempFile = 1; + /* Create a temporary template using it. */ + tempFile1 = fileOpen( TEMPLATE_PASS1, NULL, FILE_WRITE|WRITE_ALWAYS ); + if( tempFile1 == NULL ) + { + printf( "Cannot create temporary file!\n" ); + return; + } + + createTemplate( gOutFunc_C, tempFile1 ); + + fileClose( tempFile1 ); + fileClose( gOutFunc_C ); + } + + /* Open the file using the template. */ + if( useTempFile ) + gOutFunc_C = fileOpen( TEMPLATE_PASS2, TEMPLATE_PASS1, FILE_WRITE|WRITE_ALWAYS ); + else + gOutFunc_C = fileOpen( TEMPLATE_PASS2, TEMPLATE_DEFAULT, FILE_WRITE|WRITE_ALWAYS ); + + if( gOutFunc_C == NULL ) + { + printf( "Cannot create [%s]\n", localBuf1 ); + return; + } + + /* Generate. 1st Pass */ + writeFuncFile( funcInfo ); + + fileClose( gOutFunc_C ); + + if( !useTempFile ) + { + /* When the file is new, the first pass becomes the + * original. + */ + if( !copyFile( TEMPLATE_PASS2, localBuf1 ) ) + { + printf( "Cannot copy %s to %s\n", TEMPLATE_PASS2, localBuf1 ); + return; + } + } + + /* Extract the TA function code in a temporary file */ + init_gToOpen( localBuf1, NULL ); + logicIn = fopen( gToOpen, "r" ); + if( !logicIn ) + { + printf( "Cannot open [%s] for extracting TA logic\n", localBuf1 ); + return; + } + init_gToOpen( LOGIC_TEMP, NULL ); + logicTmp = fopen( gToOpen, "w" ); + if( !logicTmp ) + { + fclose(logicIn); + printf( "Cannot open logic.tmp\n" ); + return; + } + extractTALogic( logicIn, logicTmp ); + fclose(logicIn); + fclose(logicTmp); + + /* Insert the TA function code in the single-precision frame + * using the template generated from the first pass. + */ + gOutFunc_C = fileOpen( localBuf1, TEMPLATE_PASS2, FILE_WRITE|WRITE_ON_CHANGE_ONLY ); + if( gOutFunc_C == NULL ) + { + printf( "Cannot complete 2nd pass with [%s]\n", localBuf1 ); + return; + } + + /* Duplicate the function, but using float this time */ + print( gOutFunc_C->file, "\n" ); + print( gOutFunc_C->file, "#define USE_SINGLE_PRECISION_INPUT\n" ); + print( gOutFunc_C->file, "#if !defined( _MANAGED ) && !defined( _JAVA )\n" ); + print( gOutFunc_C->file, " #undef TA_PREFIX\n" ); + print( gOutFunc_C->file, " #define TA_PREFIX(x) TA_S_##x\n" ); + print( gOutFunc_C->file, "#endif\n" ); + print( gOutFunc_C->file, "#undef INPUT_TYPE\n" ); + print( gOutFunc_C->file, "#define INPUT_TYPE float\n" ); + + print( gOutFunc_C->file, "#if defined( _MANAGED )\n" ); + printFunc( gOutFunc_C->file, NULL, funcInfo, 1, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0 ); + print( gOutFunc_C->file, "#elif defined( _JAVA )\n" ); + printFunc( gOutFunc_C->file, NULL, funcInfo, 1, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0 ); + print( gOutFunc_C->file, "#else\n" ); + printFunc( gOutFunc_C->file, NULL, funcInfo, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0 ); + print( gOutFunc_C->file, "#endif\n" ); + + /* Insert the internal logic of the function */ + init_gToOpen( LOGIC_TEMP, NULL ); + logicTmp = fopen( gToOpen, "r" ); + if( !logicTmp ) + { + fileClose( gOutFunc_C ); + printf( "Cannot read open logic.tmp\n" ); + return; + } + while( fgets(gTempBuf,BUFFER_SIZE,logicTmp) ) + fputs( gTempBuf, gOutFunc_C->file ); + fclose(logicTmp); + print( gOutFunc_C->file, "\n" ); + + /* Add the suffix at the end of the file. */ + print( gOutFunc_C->file, "#if defined( _MANAGED )\n" ); + print( gOutFunc_C->file, "}}} // Close namespace TicTacTec.TA.Lib\n" ); + print( gOutFunc_C->file, "#endif\n" ); + + fileClose( gOutFunc_C ); + fileDelete( LOGIC_TEMP ); + fileDelete( TEMPLATE_PASS1 ); + fileDelete( TEMPLATE_PASS2 ); +} + +static void doDefsFile( void ) +{ + + FileHandle *tempFile; + FILE *out; + + #define FILE_TA_DEFS_H "..\\include\\ta_defs.h" + #define FILE_TA_DEFS_TMP "..\\temp\\ta_defs.tmp" + + /* Check if the file already exist. If not, this is an error. */ + gOutDefs_H = fileOpen( FILE_TA_DEFS_H, NULL, FILE_READ ); + if( gOutDefs_H == NULL ) + { + printf( "ta_defs.h must exist for being updated!\n" ); + exit(-1); + } + + /* Create the template. The template is just the original file content + * with the GENCODE SECTION emptied (so they can be re-generated) + */ + tempFile = fileOpen( FILE_TA_DEFS_TMP, NULL, FILE_WRITE|WRITE_ALWAYS ); + if( tempFile == NULL ) + { + printf( "Cannot create temporary file!\n" ); + exit(-1); + } + + createTemplate( gOutDefs_H, tempFile ); + + fileClose( tempFile ); + fileClose( gOutDefs_H ); + + /* Re-open the file using the template. */ + gOutDefs_H = fileOpen( FILE_TA_DEFS_H, FILE_TA_DEFS_TMP, FILE_WRITE|WRITE_ON_CHANGE_ONLY ); + + if( gOutDefs_H == NULL ) + { + printf( "Cannot create ta_defs.h\n" ); + exit(-1); + } + + /* Generate the GENCODE SECTION */ + out = gOutDefs_H->file; + + genPrefix = 1; + addUnstablePeriodEnum( out ); + print( out, "\n" ); + genPrefix = 0; + + fileClose( gOutDefs_H ); + fileDelete( FILE_TA_DEFS_TMP ); + #undef FILE_TA_DEFS_H + #undef FILE_TA_DEFS_TMP +} + +#ifdef _MSC_VER +static int createProjTemplate( FileHandle *in, FileHandle *out ) +{ + FILE *inFile; + FILE *outFile; + unsigned int skipSection; + unsigned int sectionDone; + unsigned int step; + + inFile = in->file; + outFile = out->file; + + skipSection = 0; + sectionDone = 0; + step = 0; + + while( fgets( gTempBuf, BUFFER_SIZE, inFile ) ) + { + if( !skipSection ) + { + fputs( gTempBuf, outFile ); + if( !strstr( gTempBuf, "" ) ) + continue; + + skipSection = 1; + fputs( "%%%GENCODE%%%\n", outFile ); + } + else if( strstr( gTempBuf, "" ) ) + { + skipSection = 0; + fputs( gTempBuf, outFile ); + sectionDone++; + } + } + + return 0; +} + +static int createMSVCProjTemplate( FileHandle *in, FileHandle *out ) +{ + FILE *inFile; + FILE *outFile; + unsigned int skipSection; + + inFile = in->file; + outFile = out->file; + + skipSection = 0; + + while( !skipSection && fgets( gTempBuf, BUFFER_SIZE, inFile ) ) + { + if( strstr( gTempBuf, "# Begin Source File") ) + skipSection = 1; + else + fputs( gTempBuf, outFile ); + } + + if( !skipSection ) + { + printf( "Unexpected end-of-file\n" ); + return -1; + } + + fputs( "%%%GENCODE%%%\n", outFile ); + + while( fgets( gTempBuf, BUFFER_SIZE, inFile ) ) + { + if( strstr( gTempBuf, "# End Group" ) ) + { + /* Add the "non TA function" source files. */ + fprintf( outFile, "# Begin Source File\n"); + fprintf( outFile, "\n"); + fprintf( outFile, "SOURCE=..\\..\\..\\..\\src\\ta_func\\ta_utility.c\n"); + fprintf( outFile, "# End Source File\n"); + fprintf( outFile, "# End Group\n"); + break; + } + } + + while( fgets( gTempBuf, BUFFER_SIZE, inFile ) ) + fputs( gTempBuf, outFile ); + + return 0; +} + +static int createVS2005ProjTemplate( FileHandle *in, FileHandle *out ) +{ + FILE *inFile; + FILE *outFile; + unsigned int skipSection; + + inFile = in->file; + outFile = out->file; + + skipSection = 0; + + while( !skipSection && fgets( gTempBuf, BUFFER_SIZE, inFile ) ) + { + if( strstr( gTempBuf, "") ) + skipSection = 1; + else + fputs( gTempBuf, outFile ); + } + + if( !skipSection ) + { + printf( "Unexpected end-of-file. Missing \"\"\n" ); + return -1; + } + + + fputs( gTempBuf, outFile ); + + skipSection = 0; + + while( !skipSection && fgets( gTempBuf, BUFFER_SIZE, inFile ) ) + { + if( strstr( gTempBuf, "" ) ) + { + /* Add the "non TA function" source files. */ + printVS2005FileNode( outFile, "utility" ); + fprintf( outFile, " \n"); + break; + } + } + + while( fgets( gTempBuf, BUFFER_SIZE, inFile ) ) + fputs( gTempBuf, outFile ); + + return 0; +} + +static void printVS2005FileNode( FILE *out, const char *name ) +{ + fprintf( out, " \n" ); +/* + fprintf( out, " \n" ); + fprintf( out, " \n" ); + fprintf( out, " \n" ); + fprintf( out, " \n" ); + fprintf( out, " \n" ); + fprintf( out, " \n" ); + fprintf( out, " \n" ); + fprintf( out, " \n" ); + fprintf( out, " \n" ); + fprintf( out, " \n" ); + fprintf( out, " \n" ); + fprintf( out, " \n" ); + fprintf( out, " \n" ); + fprintf( out, " \n" ); + fprintf( out, " \n" ); + fprintf( out, " \n" ); + fprintf( out, " \n" ); + fprintf( out, " \n" ); +*/ + fprintf( out, " \n" ); +} +#endif + +static int createTemplate( FileHandle *in, FileHandle *out ) +{ + FILE *inFile; + FILE *outFile; + char *inTheLinePtr; + unsigned int skipSection; + unsigned int sectionDone; + + inFile = in->file; + outFile = out->file; + + skipSection = 0; + sectionDone = 0; + while( fgets( gTempBuf, BUFFER_SIZE, inFile ) ) + { + inTheLinePtr = gTempBuf; + /* Skip leading whitespace. */ + while( isspace(*inTheLinePtr) ) inTheLinePtr++; + + if( strncmp( inTheLinePtr, "/**** START GENCODE SECTION", 27 ) == 0 ) + { + skipSection = 1; + fputs( gTempBuf, outFile ); + fputs( "%%%GENCODE%%%\n", outFile ); + } + + else if( strncmp( inTheLinePtr, "/**** END GENCODE SECTION", 25 ) == 0 ) + { + if( skipSection ) + { + skipSection = 0; + sectionDone++; + } + } + + if( !skipSection ) + { + if( fputs( gTempBuf, outFile ) == EOF ) + { + printf( "Cannot write tmp file\n" ); + return -1; + } + } + } + + return 0; +} + +static void writeFuncFile( const TA_FuncInfo *funcInfo ) +{ + FILE *out; + + out = gOutFunc_C->file; + fprintf( out, "/* All code within this section is automatically\n" ); + fprintf( out, " * generated by gen_code. Any modification will be lost\n" ); + fprintf( out, " * next time gen_code is run.\n" ); + fprintf( out, " */\n" ); + + genPrefix = 1; + print( out, "\n" ); + print( out, "#if defined( _MANAGED )\n" ); + print( out, " #include \"TA-Lib-Core.h\"\n" ); + print( out, " #define TA_INTERNAL_ERROR(Id) (RetCode::InternalError)\n" ); + print( out, " namespace TicTacTec { namespace TA { namespace Library {\n" ); + print( out, "#elif defined( _JAVA )\n" ); + print( out, " #include \"ta_defs.h\"\n" ); + print( out, " #include \"ta_java_defs.h\"\n" ); + print( out, " #define TA_INTERNAL_ERROR(Id) (RetCode.InternalError)\n" ); + print( out, "#else\n" ); + print( out, " #include \n" ); + print( out, " #include \n" ); + print( out, " #include \"ta_func.h\"\n" ); + print( out, "#endif\n" ); + print( out, "\n" ); + print( out, "#ifndef TA_UTILITY_H\n" ); + print( out, " #include \"ta_utility.h\"\n" ); + print( out, "#endif\n" ); + print( out, "\n" ); + print( out, "#ifndef TA_MEMORY_H\n" ); + print( out, " #include \"ta_memory.h\"\n" ); + print( out, "#endif\n" ); + print( out, "\n" ); + print( out, "#define TA_PREFIX(x) TA_##x\n" ); + print( out, "#define INPUT_TYPE double\n" ); + print( out, "\n" ); + print( out, "#if defined( _MANAGED )\n" ); + printFunc( out, NULL, funcInfo, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0 ); + print( out, "#elif defined( _JAVA )\n" ); + printFunc( out, NULL, funcInfo, 1, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0 ); + print( out, "#else\n" ); + printFunc( out, NULL, funcInfo, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0 ); + print( out, "#endif\n" ); + + genPrefix = 0; + skipToGenCode( funcInfo->name, gOutFunc_C->file, gOutFunc_C->templateFile ); + + genPrefix = 1; + if( funcInfo->nbOptInput != 0 ) + print( out, "#ifndef TA_FUNC_NO_RANGE_CHECK\n" ); + printFunc( out, NULL, funcInfo, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0 ); + if( funcInfo->nbOptInput != 0 ) + print( out, "#endif /* TA_FUNC_NO_RANGE_CHECK */\n" ); + else + print( out, "/* No parameters to validate. */\n" ); + + genPrefix = 0; + skipToGenCode( funcInfo->name, gOutFunc_C->file, gOutFunc_C->templateFile ); + + genPrefix = 1; + fprintf( out, "/*\n" ); + printFuncHeaderDoc( out, funcInfo, " * " ); + fprintf( out, " */\n" ); + print( out, "\n" ); + print( out, "#if defined( _MANAGED ) && defined( USE_SUBARRAY )\n" ); + printFunc( out, NULL, funcInfo, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0 ); + print( out, "#elif defined( _MANAGED )\n" ); + printFunc( out, NULL, funcInfo, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0 ); + print( out, "#elif defined( _JAVA )\n" ); + + /* Handle special case to avoid duplicate definition of min,max */ + if( strcmp( funcInfo->camelCaseName, "Min" ) == 0 ) + print( out, "#undef min\n" ); + else if( strcmp( funcInfo->camelCaseName, "Max" ) == 0 ) + print( out, "#undef max\n" ); + + printFunc( out, NULL, funcInfo, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0 ); + print( out, "#else\n" ); + printFunc( out, NULL, funcInfo, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ); + print( out, "#endif\n" ); + + genPrefix = 0; + skipToGenCode( funcInfo->name, gOutFunc_C->file, gOutFunc_C->templateFile ); + + genPrefix = 1; + print( out, "\n" ); + print( out, "#ifndef TA_FUNC_NO_RANGE_CHECK\n" ); + print( out, "\n" ); + print( out, " /* Validate the requested output range. */\n" ); + print( out, " if( startIdx < 0 )\n" ); + print( out, " return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_START_INDEX,OutOfRangeStartIndex);\n" ); + print( out, " if( (endIdx < 0) || (endIdx < startIdx))\n" ); + print( out, " return ENUM_VALUE(RetCode,TA_OUT_OF_RANGE_END_INDEX,OutOfRangeEndIndex);\n" ); + print( out, "\n" ); + /* Generate the code for checking the parameters. + * Also generates the code for setting up the + * default values. + */ + printFunc( out, NULL, funcInfo, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0 ); + + print( out, "#endif /* TA_FUNC_NO_RANGE_CHECK */\n" ); + print( out, "\n" ); + + skipToGenCode( funcInfo->name, gOutFunc_C->file, gOutFunc_C->templateFile ); + + /* Put a marker who is going to be used in the second pass */ + fprintf( out, "%%%%%%GENCODE%%%%%%\n" ); +} + +static void printOptInputValidation( FILE *out, + const char *name, + const TA_OptInputParameterInfo *optInputParamInfo, + int lookbackValidationCode /* Boolean */ ) +{ + int minInt, maxInt; + double minReal, maxReal; + unsigned int i; + int isMAType; + + const TA_RealList *realList; + const TA_IntegerList *integerList; + const TA_RealRange *realRange; + const TA_IntegerRange *integerRange; + + minInt = maxInt = (int)0; + minReal = maxReal = (double)0.0; + + switch( optInputParamInfo->type ) + { + case TA_OptInput_RealRange: + realRange = (const TA_RealRange *)optInputParamInfo->dataSet; + minReal = realRange->min; + maxReal = realRange->max; + break; + case TA_OptInput_IntegerRange: + integerRange = (const TA_IntegerRange *)optInputParamInfo->dataSet; + minInt = integerRange->min; + maxInt = integerRange->max; + break; + case TA_OptInput_RealList: + /* Go through the list to find the min/max. */ + realList = (const TA_RealList *)optInputParamInfo->dataSet; + minReal = realList->data[0].value; + maxReal = realList->data[0].value; + for( i=0; i < realList->nbElement; i++ ) + { + minReal = min( realList->data[i].value, minReal ); + maxReal = max( realList->data[i].value, maxReal ); + } + break; + case TA_OptInput_IntegerList: + /* Go through the list to find the min/max. */ + integerList = (const TA_IntegerList *)optInputParamInfo->dataSet; + minInt = integerList->data[0].value; + maxInt = integerList->data[0].value; + for( i=0; i < integerList->nbElement; i++ ) + { + minInt = min( integerList->data[i].value, minInt ); + maxInt = max( integerList->data[i].value, maxInt ); + } + break; + } + + /* Boolean to detect special TA_MAType enumeration. */ + if( optInputParamInfo->dataSet == TA_DEF_UI_MA_Method.dataSet ) + isMAType = 1; + else + isMAType = 0; + + switch( optInputParamInfo->type ) + { + case TA_OptInput_RealList: + print( out, " /* min/max are checked for %s. */\n", name ); + case TA_OptInput_RealRange: + print( out, " if( %s == TA_REAL_DEFAULT )\n", name ); + print( out, " %s = %s;\n", name, doubleToStr(optInputParamInfo->defaultValue) ); + print( out, " else if( (%s < %s) ||", name, doubleToStr(minReal) ); + print( out, " (%s > %s) )\n", name, doubleToStr(maxReal) ); + break; + case TA_OptInput_IntegerRange: + print( out, " /* min/max are checked for %s. */\n", name ); + case TA_OptInput_IntegerList: + print( out, " if( (int)%s == TA_INTEGER_DEFAULT )\n", name ); + print( out, " %s = %s%d;\n", name, isMAType?"(TA_MAType)":"", (int)optInputParamInfo->defaultValue ); + print( out, " else if( ((int)%s < %d) || ((int)%s > %d) )\n", + name, minInt, + name, maxInt ); + break; + } + + if( lookbackValidationCode ) + print( out, " return -1;\n" ); + else + print( out, " return ENUM_VALUE(RetCode,TA_BAD_PARAM,BadParam);\n" ); + + print( out, "\n" ); +} + + +static int skipToGenCode( const char *dstName, FILE *out, FILE *templateFile ) +{ + unsigned int headerWritten = 0; + + while( fgets( gTempBuf, BUFFER_SIZE, templateFile ) ) + { + if( strncmp( gTempBuf, "%%%GENCODE%%%", 13 ) == 0 ) + { + headerWritten = 1; + break; + } + if( out && (fputs( gTempBuf, out ) == EOF) ) + { + printf( "Cannot write to [%s]\n", dstName ); + return -1; + } + } + + if( !headerWritten ) + { + printf( "Line with string %%%%%%GENCODE%%%%%% Missing in [%s]", dstName ); + return -1; + } + + return 0; +} + +static void printFuncHeaderDoc( FILE *out, + const TA_FuncInfo *funcInfo, + const char *prefix ) +{ + TA_RetCode retCode; + unsigned int paramNb; + const char *paramName; + const char *defaultParamName; + const TA_InputParameterInfo *inputParamInfo; + const TA_OptInputParameterInfo *optInputParamInfo; + const TA_OutputParameterInfo *outputParamInfo; + int first; + + fprintf( out, "%sTA_%s - %s\n", prefix, funcInfo->name, funcInfo->hint ); + fprintf( out, prefix ); + + fprintf( out, "\n" ); + fprintf( out, "%sInput = ", prefix ); + for( paramNb=0; paramNb < funcInfo->nbInput; paramNb++ ) + { + retCode = TA_GetInputParameterInfo( funcInfo->handle, + paramNb, &inputParamInfo ); + + if( retCode != TA_SUCCESS ) + { + printf( "[%s] invalid 'input' information\n", funcInfo->name ); + return; + } + + switch( inputParamInfo->type ) + { + case TA_Input_Price: + first = 1; + #define PRICE_PARAM(upperParam,lowerParam) \ + { \ + if( inputParamInfo->flags & TA_IN_PRICE_##upperParam ) \ + { \ + if( !first ) fprintf( out, ", " ); \ + fprintf( out, lowerParam ); \ + first = 0; \ + } \ + } + + PRICE_PARAM( OPEN, "Open" ); + PRICE_PARAM( HIGH, "High" ); + PRICE_PARAM( LOW, "Low" ); + PRICE_PARAM( CLOSE, "Close" ); + PRICE_PARAM( VOLUME, "Volume" ); + PRICE_PARAM( OPENINTEREST, "OpenInterest" ); + PRICE_PARAM( TIMESTAMP, "Timestamp" ); + + #undef PRICE_PARAM + + break; + case TA_Input_Integer: + fprintf( out, "int" ); + break; + case TA_Input_Real: + fprintf( out, "double" ); + break; + } + if( paramNb+1 == funcInfo->nbInput ) + fprintf( out, "\n" ); + else + fprintf( out, ", " ); + } + + fprintf( out, "%sOutput = ", prefix ); + for( paramNb=0; paramNb < funcInfo->nbOutput; paramNb++ ) + { + retCode = TA_GetOutputParameterInfo( funcInfo->handle, + paramNb, &outputParamInfo ); + + if( retCode != TA_SUCCESS ) + { + printf( "[%s] invalid 'output' information\n", funcInfo->name ); + return; + } + + switch( outputParamInfo->type ) + { + case TA_Output_Real: + fprintf( out, "double" ); + break; + case TA_Output_Integer: + fprintf( out, "int" ); + break; + } + if( paramNb+1 == funcInfo->nbOutput ) + fprintf( out, "\n" ); + else + fprintf( out, ", " ); + } + + if( funcInfo->nbOptInput != 0 ) + { + fprintf( out, "%s\n", prefix ); + fprintf( out, "%sOptional Parameters\n", prefix ); + fprintf( out, "%s-------------------\n", prefix ); + + for( paramNb=0; paramNb < funcInfo->nbOptInput; paramNb++ ) + { + retCode = TA_GetOptInputParameterInfo( funcInfo->handle, + paramNb, &optInputParamInfo ); + + if( retCode != TA_SUCCESS ) + { + printf( "[%s] invalid 'optional input' information\n", funcInfo->name ); + return; + } + + paramName = optInputParamInfo->paramName; + + switch( optInputParamInfo->type ) + { + case TA_OptInput_RealRange: + case TA_OptInput_RealList: + defaultParamName = "optInReal"; + break; + case TA_OptInput_IntegerRange: + case TA_OptInput_IntegerList: + defaultParamName = "optInInteger"; + break; + default: + if( !paramName ) + paramName = "optInParam"; + printf( "[%s,%s,%d] invalid 'optional input' type(%d)\n", + funcInfo->name, paramName, paramNb, + optInputParamInfo->type ); + return; + } + + if( !paramName ) + paramName = defaultParamName; + + fprintf( out, "%s%s:", prefix, paramName ); + switch( optInputParamInfo->type ) + { + case TA_OptInput_RealRange: + if( ((TA_RealRange *)(optInputParamInfo->dataSet))->min == TA_REAL_MIN ) + fprintf( out, "(From TA_REAL_MIN" ); + else + { + fprintf( out, "(From %.*g", + ((TA_RealRange *)(optInputParamInfo->dataSet))->precision, + ((TA_RealRange *)(optInputParamInfo->dataSet))->min ); + } + + if( ((TA_RealRange *)(optInputParamInfo->dataSet))->max == TA_REAL_MAX ) + fprintf( out, " to TA_REAL_MAX)\n" ); + else + { + fprintf( out, " to %.*g%s)\n", + ((TA_RealRange *)(optInputParamInfo->dataSet))->precision, + ((TA_RealRange *)(optInputParamInfo->dataSet))->max, + optInputParamInfo->flags & TA_OPTIN_IS_PERCENT? " %":"" ); + } + break; + case TA_OptInput_IntegerRange: + if( ((TA_IntegerRange *)(optInputParamInfo->dataSet))->min == TA_INTEGER_MIN ) + fprintf( out, "(From TA_INTEGER_MIN" ); + else + { + fprintf( out, "(From %d", + ((TA_IntegerRange *)(optInputParamInfo->dataSet))->min ); + } + + if( ((TA_IntegerRange *)(optInputParamInfo->dataSet))->max == TA_INTEGER_MAX ) + fprintf( out, " to TA_INTEGER_MAX)\n" ); + else + { + fprintf( out, " to %d)\n", + ((TA_IntegerRange *)(optInputParamInfo->dataSet))->max ); + } + break; + default: + fprintf( out, "\n" ); + } + fprintf( out, "%s %s\n", prefix, optInputParamInfo->hint ); + fprintf( out, "%s\n", prefix ); + } + } + + fprintf( out, "%s\n", prefix ); +} + +static int addUnstablePeriodEnum( FILE *out ) +{ + TA_RetCode retCode; + unsigned int id; + + print( out, "\n" ); + print( out, "ENUM_BEGIN( FuncUnstId )\n"); + + /* Enumerate the function having an "unstable period". Give + * to each a unique identifier. + */ + id = 0; + retCode = TA_ForEachFunc( doForEachUnstableFunction, &id ); + + print( out, " ENUM_DEFINE( TA_FUNC_UNST_ALL, FuncUnstAll),\n"); + print( out, " ENUM_DEFINE( TA_FUNC_UNST_NONE, FuncUnstNone) = -1\n" ); + print( out, "ENUM_END( FuncUnstId )\n"); + + if( retCode != TA_SUCCESS ) + return -1; + + return 0; +} + +static int gen_retcode( void ) +{ + FileHandle *inHdr; + char *ptr1, *ptr2; + int step1Done; + int retValue; + TA_RetCode retCodeValue; + char *retCodeEnum, *retCodeInfo; + + retValue = -1; + + /* Create "ta_retcode.c" */ + gOutRetCode_C = fileOpen( "..\\src\\ta_common\\ta_retcode.c", + "..\\src\\ta_abstract\\templates\\ta_retcode.c.template", + FILE_WRITE|WRITE_ON_CHANGE_ONLY ); + + if( gOutRetCode_C == NULL ) + { + printf( "\nCannot access [%s]\n", gToOpen ); + return -1; + } + + /* Create "ta_retcode.csv" */ + gOutRetCode_CSV = fileOpen( "..\\src\\ta_common\\ta_retcode.csv", + NULL, + FILE_WRITE|WRITE_ON_CHANGE_ONLY ); + + if( gOutRetCode_CSV == NULL ) + { + fileClose( gOutRetCode_C ); + printf( "\nCannot access [%s]\n", gToOpen ); + return -1; + } + + inHdr = fileOpen( "..\\include\\ta_defs.h", + NULL, + FILE_READ ); + if( inHdr == NULL ) + { + fileClose( gOutRetCode_C ); + fileClose( gOutRetCode_CSV ); + printf( "\nCannot access [%s]\n", gToOpen ); + return -1; + } + + step1Done = 0; + while( fgets( gTempBuf, sizeof( gTempBuf ), inHdr->file ) ) + { + if( !step1Done ) + { + if( strstr( gTempBuf, "ENUM_BEGIN( RetCode )" ) != NULL ) + step1Done = 1; + } + else + { + if( strstr( gTempBuf, "TA_UNKNOWN_ERR" ) != NULL ) + { + retValue = 0; + goto gen_retcode_exit; + } + + ptr1 = strstr( gTempBuf, "/*" ); + ptr2 = strstr( gTempBuf, "/***" ); + if( ptr1 && !ptr2 ) + { + ptr1 += 2; + retCodeValue = (TA_RetCode)atoi(ptr1); + ptr1 = strstr( ptr1, "TA_" ); + if( !ptr1 ) + { + printf( "Can't find TA_" ); + goto gen_retcode_exit; + } + retCodeEnum = ptr1; + + retCodeInfo = NULL; + while( isdigit(*ptr1) || isalpha(*ptr1) || *ptr1 == '_' ) + ptr1++; + if( *ptr1 != '\0' ) + { + *ptr1 = '\0'; + ptr1++; + if( *ptr1 != '\0' ) + { + retCodeInfo = strstr( ptr1, "/* " ); + if( retCodeInfo ) + { + retCodeInfo += 3; + ptr1 = strstr( retCodeInfo, "*/" ); + if( ptr1 == NULL ) + retCodeInfo = NULL; + else + *ptr1 = '\0'; + } + } + } + + if( !retCodeInfo ) + retCodeInfo = "No Info"; + + strcpy( gTempBuf, retCodeEnum ); + ptr1 = trimWhitespace( gTempBuf ); + fprintf( gOutRetCode_C->file, " {(TA_RetCode)%d,\"%s\",", retCodeValue, ptr1 ); + fprintf( gOutRetCode_CSV->file, "%d,%s", retCodeValue, ptr1 ); + strcpy( gTempBuf, retCodeInfo ); + ptr1 = trimWhitespace( gTempBuf ); + fprintf( gOutRetCode_C->file, "\"%s\"},\n", ptr1 ); + fprintf( gOutRetCode_CSV->file, ",%s\n", ptr1 ); + } + } + } + +gen_retcode_exit: + fileClose( inHdr ); + fileClose( gOutRetCode_C ); + fileClose( gOutRetCode_CSV ); + + return retValue; /* Success. */ +} + +const char *doubleToStr( double value ) +{ + int length; + int i, outIdx; + sprintf( gTempDoubleToStr, "%e", value ); + + /* Remove extra "0" added by Microsoft in the + * exponential part. + */ + length = (int)strlen( gTempDoubleToStr ); + outIdx = 0; + for( i=0; i < length; i++ ) + { + /* Will skip two leading zero in the exponent */ + if( (i >= 2) && + (toupper(gTempDoubleToStr[i-2]) == 'E') && + ((gTempDoubleToStr[i-1] == '+')||(gTempDoubleToStr[i-1] == '-')) && + (gTempDoubleToStr[i] == '0') && + (gTempDoubleToStr[i+1] == '0') && + (isdigit(gTempDoubleToStr[i+2])) ) + { + i++; + continue; + } + + /* Will skip one leading zero in the exponent */ + if( (i >= 2) && + (toupper(gTempDoubleToStr[i-2]) == 'E') && + ((gTempDoubleToStr[i-1] == '+')||(gTempDoubleToStr[i-1] == '-')) && + (gTempDoubleToStr[i] == '0') && + (isdigit(gTempDoubleToStr[i+1]))) + { + continue; + } + + gTempDoubleToStr[outIdx++] = gTempDoubleToStr[i]; + } + gTempDoubleToStr[outIdx] = '\0'; + + return gTempDoubleToStr; +} + +static void cnvtToUpperCase( char *str ) +{ + char c; + + if( !str ) return; + + c = *str; + while( c != '\0' ) + { + *str = (char)toupper(c); + str++; + c = *str; + } +} + +static char *trimWhitespace( char *str ) +{ + int i; + + if( !str ) return str; + + while( isspace(*str) ) str++; + if( *str == '\0' ) return str; + + for( i=(int)strlen(str)-1; i >= 0; i-- ) + { + if( !isspace(str[i]) ) + return str; + str[i] = '\0'; + } + + return str; +} + +static void cnvtChar( char *str, char from, char to ) +{ + char c; + + if( !str ) return; + + c = *str; + while( c != '\0' ) + { + if( c == from ) *str = to; + str++; + c = *str; + } +} + +#ifdef _MSC_VER +static void printExcelGlueCode( FILE *out, const TA_FuncInfo *funcInfo ) +{ + /*fprintf( out, "#include \"ta_%s.c\"\n", funcInfo->name ); + fprintf( out, "#include \"ta_%s_frame.c\"\n", funcInfo->name ); */ + int nbParam; + unsigned int i; + TA_RetCode retCode; + const TA_InputParameterInfo *inputParamInfo; + + nbParam = funcInfo->nbOptInput; + + for( i=0; i < funcInfo->nbInput; i++ ) + { + retCode = TA_GetInputParameterInfo( funcInfo->handle, + i, &inputParamInfo ); + + if( retCode != TA_SUCCESS ) + { + printf( "[%s] invalid 'input' information (%d,%d)\n", funcInfo->name, i, nbParam ); + return; + } + + if( inputParamInfo->type != TA_Input_Price ) + nbParam++; + else + { + if( inputParamInfo->flags & TA_IN_PRICE_TIMESTAMP ) + nbParam++; + if( inputParamInfo->flags & TA_IN_PRICE_OPEN ) + nbParam++; + if( inputParamInfo->flags & TA_IN_PRICE_HIGH ) + nbParam++; + if( inputParamInfo->flags & TA_IN_PRICE_LOW ) + nbParam++; + if( inputParamInfo->flags & TA_IN_PRICE_CLOSE ) + nbParam++; + if( inputParamInfo->flags & TA_IN_PRICE_VOLUME ) + nbParam++; + if( inputParamInfo->flags & TA_IN_PRICE_OPENINTEREST ) + nbParam++; + } + } + + fprintf( out, "EXCEL_GLUE_CODE_WITH_%d_PARAM(%s)\n", + nbParam, + funcInfo->name ); +} +#endif + + +static void extractTALogic( FILE *inFile, FILE *outFile ) +{ + int i, length, nbCodeChar; + int commentBlock, commentFirstCharFound, outIdx; + + #define START_DELIMITATOR "/**** END GENCODE SECTION 3" + #define STOP_DELIMITATOR "/**** START GENCODE SECTION 5" + + /* Find the begining of the function */ + while( fgets( gTempBuf, BUFFER_SIZE, inFile ) ) + { + length = (int)strlen(gTempBuf); + if( length > BUFFER_SIZE ) + return; + + if( strncmp( gTempBuf, START_DELIMITATOR, strlen(START_DELIMITATOR) ) == 0) + break; + } + + /* Copy until the end of the function. + * At the same time, eliminate all empty line and + * comments to avoid confusion with original code. + */ + commentBlock = 0; + commentFirstCharFound = 0; + while( fgets( gTempBuf, BUFFER_SIZE, inFile ) ) + { + length = (int)strlen(gTempBuf); + if( length > BUFFER_SIZE ) + return; + + if( strncmp( gTempBuf, STOP_DELIMITATOR, strlen(STOP_DELIMITATOR) ) == 0) + break; + + /* Process the whole line and put it in gTempBuf2 */ + outIdx = 0; + nbCodeChar = 0; + for( i=0; i < length; i++ ) + { + if( !commentBlock ) + { + if( !commentFirstCharFound ) + { + if( gTempBuf[i] == '/' ) + commentFirstCharFound = 1; + else + { + gTempBuf2[outIdx++] = gTempBuf[i]; + if( !isspace(gTempBuf[i]) ) + nbCodeChar++; + } + } + else + { + commentFirstCharFound = 0; + if( gTempBuf[i] == '*' ) + commentBlock = 1; + else + { + gTempBuf2[outIdx++] = '/'; + nbCodeChar++; + if( gTempBuf[i] == '/' ) + commentFirstCharFound = 1; + else + { + gTempBuf2[outIdx++] = gTempBuf[i]; + if( !isspace(gTempBuf[i]) ) + nbCodeChar++; + } + } + } + } + else + { + if( !commentFirstCharFound ) + { + if( gTempBuf[i] == '*' ) + commentFirstCharFound = 1; + } + else + { + commentFirstCharFound = 0; + if( gTempBuf[i] == '/' ) + commentBlock = 0; + else if( gTempBuf[i] == '*' ) + commentFirstCharFound = 1; + } + } + } + + if( nbCodeChar != 0 ) + { + gTempBuf2[outIdx] = '\0'; + fputs( "/* Generated */ ", outFile ); + fputs( gTempBuf2, outFile ); + } + } +} + +static int copyFile( const char *src, const char *dest ) +{ + FILE *in; + FILE *out; + + init_gToOpen( src, NULL ); + in = fopen( gToOpen, "rb" ); + if( !in ) + return 0; + + init_gToOpen( dest, NULL ); + out = fopen( gToOpen, "wb" ); + if( !out ) + { + fclose( in ); + return 0; + } + + while( fgets( gTempBuf, BUFFER_SIZE, in ) ) + { + fputs(gTempBuf,out); + } + + fclose(in); + fclose(out); + return 1; +} + +static int areFileSame( const char *file1, const char *file2 ) +{ + /* Text comparison of both files */ + unsigned int i; + + FILE *f1; + FILE *f2; + + + init_gToOpen( file1, NULL ); + f1 = fopen( gToOpen, "r" ); + if( !f1 ) + return 0; + + init_gToOpen( file2, NULL ); + f2 = fopen( gToOpen, "r" ); + if( !f2 ) + { + fclose( f1 ); + return 0; + } + + memset( gTempBuf, 0, sizeof(gTempBuf ) ); + memset( gTempBuf2, 0, sizeof(gTempBuf2) ); + + while( fgets( gTempBuf, BUFFER_SIZE, f1 ) ) + { + if( !fgets( gTempBuf2, BUFFER_SIZE, f2 ) ) + { + fclose(f1); + fclose(f2); + return 0; + } + + for( i=0; i < sizeof(gTempBuf); i++ ) + { + if( gTempBuf[i] != gTempBuf2[i] ) + { + fclose(f1); + fclose(f2); + return 0; + } + if( gTempBuf[i] == '\0' ) + i = sizeof(gTempBuf); + } + + memset( gTempBuf, 0, sizeof(gTempBuf ) ); + memset( gTempBuf2, 0, sizeof(gTempBuf2) ); + } + + if( fgets( gTempBuf2, BUFFER_SIZE, f2 ) ) + { + fclose(f1); + fclose(f2); + return 0; + } + + fclose(f1); + fclose(f2); + return 1; +} + + +static void appendToFunc( FILE *out ) +{ + fprintf( out, "\n" ); + fprintf( out, "/* Some TA functions takes a certain amount of input data\n" ); + fprintf( out, " * before stabilizing and outputing meaningful data. This is\n" ); + fprintf( out, " * a behavior pertaining to the algo of some TA functions and\n" ); + fprintf( out, " * is not particular to the TA-Lib implementation.\n" ); + fprintf( out, " * TA-Lib allows you to automatically strip off these unstabl\n" ); + fprintf( out, " * data from your output and from any internal processing.\n" ); + fprintf( out, " * (See documentation for more info)\n" ); + fprintf( out, " *\n" ); + fprintf( out, " * Examples:\n" ); + fprintf( out, " * TA_SetUnstablePeriod( TA_FUNC_UNST_EMA, 30 );\n" ); + fprintf( out, " * Always strip off 30 price bar for the TA_EMA function.\n" ); + fprintf( out, " *\n" ); + fprintf( out, " * TA_SetUnstablePeriod( TA_FUNC_UNST_ALL, 30 );\n" ); + fprintf( out, " * Always strip off 30 price bar from ALL functions\n" ); + fprintf( out, " * having an unstable period.\n" ); + fprintf( out, " *\n" ); + fprintf( out, " * See ta_defs.h for the enumeration TA_FuncUnstId\n" ); + fprintf( out, " */\n" ); + fprintf( out, "\n" ); + fprintf( out, "TA_RetCode TA_SetUnstablePeriod( TA_FuncUnstId id,\n" ); + fprintf( out, " unsigned int unstablePeriod );\n" ); + fprintf( out, "\n" ); + fprintf( out, "unsigned int TA_GetUnstablePeriod( TA_FuncUnstId id );\n" ); + fprintf( out, "\n" ); + fprintf( out, "/* You can change slightly the behavior of the TA functions\n" ); + fprintf( out, " * by requesting compatibiliy with some existing software.\n" ); + fprintf( out, " *\n" ); + fprintf( out, " * By default, the behavior is as close as the original \n" ); + fprintf( out, " * author of the TA functions intend it to be.\n" ); + fprintf( out, " *\n" ); + fprintf( out, " * See ta_defs.h for the enumeration TA_Compatibility.\n" ); + fprintf( out, " */\n" ); + fprintf( out, "TA_RetCode TA_SetCompatibility( TA_Compatibility value );\n" ); + fprintf( out, "TA_Compatibility TA_GetCompatibility( void );\n" ); + fprintf( out, "\n" ); + fprintf( out, "/* Candlesticks struct and functions\n" ); + fprintf( out, " * Because candlestick patterns are subjective, it is necessary \n" ); + fprintf( out, " * to allow the user to specify what should be the meaning of \n" ); + fprintf( out, " * 'long body', 'short shadows', etc.\n" ); + fprintf( out, " */\n" ); + fprintf( out, "\n" ); + fprintf( out, "/* Call TA_SetCandleSettings to set that when comparing a candle \n" ); + fprintf( out, " * basing on settingType it must be compared with the average \n" ); + fprintf( out, " * of the last avgPeriod candles' rangeType multiplied by factor.\n" ); + fprintf( out, " * This setting is valid until TA_RestoreCandleDefaultSettings is called\n" ); + fprintf( out, " */\n" ); + fprintf( out, "TA_RetCode TA_SetCandleSettings( TA_CandleSettingType settingType, \n" ); + fprintf( out, " TA_RangeType rangeType, \n" ); + fprintf( out, " int avgPeriod, \n" ); + fprintf( out, " double factor );\n" ); + fprintf( out, "\n" ); + fprintf( out, "/* Call TA_RestoreCandleDefaultSettings after using custom settings \n" ); + fprintf( out, " * to restore the default settings for the specified settingType\n" ); + fprintf( out, " */\n" ); + fprintf( out, "TA_RetCode TA_RestoreCandleDefaultSettings( TA_CandleSettingType settingType );\n" ); +} + +#ifdef _MSC_VER +void genJavaCodePhase1( const TA_FuncInfo *funcInfo ) +{ + fprintf( gOutJavaDefs_H->file, "#define TA_%s_Lookback %c%sLookback\n", funcInfo->name, tolower(funcInfo->camelCaseName[0]), &funcInfo->camelCaseName[1] ); + fprintf( gOutJavaDefs_H->file, "#define TA_%s %c%s\n", funcInfo->name, tolower(funcInfo->camelCaseName[0]), &funcInfo->camelCaseName[1] ); +} + +void genJavaCodePhase2( const TA_FuncInfo *funcInfo ) +{ + FILE *logicTmp; + char buffer[500]; + int idx, again; + static int firstTime = 1; + + if( firstTime == 1 ) + { + /* Clean-up jus tin case. */ + fileDelete( "..\\temp\\CoreJavaCode1.tmp" ); + fileDelete( "..\\temp\\CoreJavaCode2.tmp" ); + firstTime = 0; + } + + init_gToOpen( "..\\temp\\CoreJavaCode1.tmp", NULL ); + logicTmp = fopen( gToOpen, "w" ); + if( !logicTmp ) + { + printf( "Cannot open CoreJavaCode1.tmp\n" ); + return; + } + fprintf( logicTmp, "#include \"ta_java_defs.h\"\n" ); + fclose(logicTmp); + + sprintf( buffer, "..\\src\\tools\\gen_code\\mcpp -c -+ -z -P -I..\\src\\ta_common -I..\\src\\ta_abstract -I..\\include -D _JAVA ..\\src\\ta_func\\TA_%s.c >>..\\temp\\CoreJavaCode1.tmp ", funcInfo->name); + system( buffer ); + + sprintf( buffer, "..\\src\\tools\\gen_code\\mcpp -c -+ -z -P -I..\\src\\ta_common -I..\\src\\ta_abstract -I..\\include -D _JAVA ..\\temp\\CoreJavaCode1.tmp >..\\temp\\CoreJavaCode2.tmp " ); + system( buffer ); + + /* Append the output of the C pre-processor to the Core.Java file. */ + init_gToOpen( "..\\temp\\CoreJavaCode2.tmp", NULL ); + logicTmp = fopen( gToOpen, "r" ); + if( !logicTmp ) + { + printf( "Cannot open CoreJavaCode2.tmp\n" ); + return; + } + while( fgets(gTempBuf,BUFFER_SIZE,logicTmp) ) + { + /* Remove empty lines and lines with only a ';' */ + idx = 0; + again = 1; + while( again && gTempBuf[idx] != '\0' ) + { + if( !isspace(gTempBuf[idx]) && !(gTempBuf[idx] == ';') ) + again = 0; + idx++; + } + if( (again == 0) && (idx > 0) ) + fputs( gTempBuf, gOutCore_Java->file ); + } + + /* Clean-up */ + fclose(logicTmp); + print( gOutCore_Java->file, "\n" ); + fileDelete( "..\\temp\\CoreJavaCode1.tmp" ); + fileDelete( "..\\temp\\CoreJavaCode2.tmp" ); +} +#endif + + +static int generateFuncAPI_C() +{ + FileHandle *inFile; + FILE *out; + FILE *in; + + #define FILE_INPUT "..\\..\\ta_func_api.xml" + #define FILE_OUTPUT "..\\src\\ta_abstract\\ta_func_api.c" + #define FILE_OUTPUT_TEMPLATE "..\\src\\ta_abstract\\templates\\ta_func_api.c.template" + + inFile = fileOpen( FILE_INPUT, NULL, FILE_READ ); + if( inFile == NULL ) + { + printf( "\nCannot access [%s]\n", gToOpen ); + return -1; + } + gOutFuncAPI_C = fileOpen( FILE_OUTPUT, FILE_OUTPUT_TEMPLATE, FILE_WRITE|WRITE_ON_CHANGE_ONLY ); + if( gOutFuncAPI_C == NULL ) + { + printf( "\nCannot write to [%s]\n", gToOpen ); + return -1; + } + + out = gOutFuncAPI_C->file; + in = inFile->file; + + convertFileToCArray(in, out); + + fileClose(gOutFuncAPI_C); + fileClose(inFile); + + return 1; +} + +static void convertFileToCArray( FILE *in, FILE *out ) +{ + int c; + int position; + + position = 0; + c = getc(in); + while( c != EOF ) + { + if( position == 0 ) + fprintf( out, "0x%02X", (char)c ); + else + { + fprintf( out, ",0x%02X", (char)c ); + if( (position % 20) == 0 ) + fprintf( out, "\n" ); + } + position++; + c = getc(in); + } + +} + +#ifdef _MSC_VER +static void printJavaFunctionAnnotation(const TA_FuncInfo *funcInfo) +{ + TA_RetCode retCode; + TA_InputParameterInfo *inputInfo; + TA_OptInputParameterInfo *optInputInfo; + TA_OutputParameterInfo *outputInfo; + TA_RealRange *doubleRange; + TA_IntegerRange *integerRange; + TA_IntegerList *intList; + unsigned int i, j; + #define FUNCNAME_SIZE 100 + char funcName[FUNCNAME_SIZE]; + + memset(funcName, 0, FUNCNAME_SIZE); + if( strlen(funcInfo->name) > (FUNCNAME_SIZE-1) ) + { + printf( "\n*** Error buffer size exceeded (printJavaFunctionAnnotation)\n" ); + strcpy( funcName, "1A2"); /* Substitute name. Will cause Java compilation to fail */ + } + else + { + if (funcInfo->camelCaseName==NULL) { + strcpy(funcName, funcInfo->name); + for (i=0; funcName[i]; i++) { + funcName[i] = tolower(funcName[i]); + } + } else { + strcpy(funcName, funcInfo->camelCaseName); + funcName[0] = tolower(funcName[0]); + } + } + + + /* + * Generate Lookback method + */ + fprintf(gOutFunc_Annotation->file, "public int %sLookback(\n", funcName); + for(i=0; inbOptInput; i++) + { + retCode = TA_GetOptInputParameterInfo( funcInfo->handle, i, (void*)&optInputInfo ); + if(optInputInfo->type == TA_OptInput_RealRange) + { + fprintf(gOutFunc_Annotation->file, " double %s", optInputInfo->paramName); + } + else if(optInputInfo->type == TA_OptInput_IntegerRange) + { + fprintf(gOutFunc_Annotation->file, " int %s", optInputInfo->paramName); + } + else if(optInputInfo->type == TA_OptInput_IntegerList) + { + fprintf(gOutFunc_Annotation->file, " MAType %s", optInputInfo->paramName); + } + else + { + printf( "Unexpected error 1 (doForEachFunctionAnnotation)\n"); + } + if (inbOptInput-1) fprintf(gOutFunc_Annotation->file, ",\n"); + } + fprintf(gOutFunc_Annotation->file, ") {\n"); + fprintf(gOutFunc_Annotation->file, " return super.%sLookback(\n", funcName); + for(i=0; inbOptInput; i++) + { + retCode = TA_GetOptInputParameterInfo( funcInfo->handle, i, (void*)&optInputInfo ); + fprintf(gOutFunc_Annotation->file, " %s", optInputInfo->paramName); + if (inbOptInput-1) fprintf(gOutFunc_Annotation->file, ",\n"); + } + fprintf(gOutFunc_Annotation->file, "); }\n\n"); + + /* + * Annotate Function + */ + fprintf(gOutFunc_Annotation->file, "@FuncInfo(\n"); + fprintf(gOutFunc_Annotation->file, " name = \"%s\",\n", funcInfo->name); + fprintf(gOutFunc_Annotation->file, " group = \"%s\",\n", funcInfo->group); + fprintf(gOutFunc_Annotation->file, " flags = %d,\n", funcInfo->flags); /* TODO: should be like: FuncFlags.TA_FUNC_FLG_OVERLAP | FuncFlags.TA_FUNC_FLG_UNST_PER */ + /*fprintf(gOutFunc_Annotation->file, " hint = \"%s\",\n", funcInfo->hint);*/ + /*fprintf(gOutFunc_Annotation->file, " helpFile = \"%s\",\n", funcInfo->helpFile);*/ + fprintf(gOutFunc_Annotation->file, " nbInput = %d,\n", funcInfo->nbInput); + fprintf(gOutFunc_Annotation->file, " nbOptInput = %d,\n", funcInfo->nbOptInput); + fprintf(gOutFunc_Annotation->file, " nbOutput = %d\n", funcInfo->nbOutput); + fprintf(gOutFunc_Annotation->file, ")\n"); + fprintf(gOutFunc_Annotation->file, "public RetCode %s(\n", funcName); + + fprintf(gOutFunc_Annotation->file, " int startIdx,\n"); + fprintf(gOutFunc_Annotation->file, " int endIdx,\n"); + + + /* + * Anotate Input parameters + */ + for(i=0; inbInput; i++) + { + char idx = ' '; + /*if (funcInfo->nbInput>1) idx='0'+i;*/ /* TODO: compile Java code and see if it is necessary to distinguish parameters*/ + + retCode = TA_GetInputParameterInfo( funcInfo->handle, i, (void*)&inputInfo); + if(inputInfo->type == TA_Input_Price) + { + fprintf(gOutFunc_Annotation->file, " @InputParameterInfo(\n"); + fprintf(gOutFunc_Annotation->file, " paramName = \"%s\",\n", inputInfo->paramName); + fprintf(gOutFunc_Annotation->file, " flags = %d,\n", inputInfo->flags); + /*fprintf(gOutFunc_Annotation->file, " hint = \"%s\",\n", inputInfo->hint);*/ + /*fprintf(gOutFunc_Annotation->file, " helpFile = \"%s\",\n", inputInfo->helpFile);*/ + fprintf(gOutFunc_Annotation->file, " type = InputParameterType.TA_Input_Price\n"); + fprintf(gOutFunc_Annotation->file, " )\n"); + + if(inputInfo->flags & TA_IN_PRICE_OPEN) + { + fprintf(gOutFunc_Annotation->file, " double inOpen%c[],\n",idx); + } + if(inputInfo->flags & TA_IN_PRICE_HIGH) + { + fprintf(gOutFunc_Annotation->file, " double inHigh%c[],\n",idx); + } + if(inputInfo->flags & TA_IN_PRICE_LOW) + { + fprintf(gOutFunc_Annotation->file, " double inLow%c[],\n",idx); + } + if(inputInfo->flags & TA_IN_PRICE_CLOSE) + { + fprintf(gOutFunc_Annotation->file, " double inClose%c[],\n",idx); + } + if(inputInfo->flags & TA_IN_PRICE_VOLUME) + { + fprintf(gOutFunc_Annotation->file, " double inVolume%c[],\n",idx); + } + if(inputInfo->flags & TA_IN_PRICE_OPENINTEREST) + { + fprintf(gOutFunc_Annotation->file, " double inOpenInterest%c[],\n",idx); /* FIXME: does it exist? */ + } + if(inputInfo->flags & TA_IN_PRICE_TIMESTAMP) + { + fprintf(gOutFunc_Annotation->file, " long inTimestamp%c[],\n",idx); /* FIXME: does it exist? */ + } + } + else + { + if(inputInfo->type == TA_Input_Real) + { + fprintf(gOutFunc_Annotation->file, " @InputParameterInfo(\n"); + fprintf(gOutFunc_Annotation->file, " paramName = \"%s\",\n", inputInfo->paramName); + fprintf(gOutFunc_Annotation->file, " flags = %d,\n", inputInfo->flags); + fprintf(gOutFunc_Annotation->file, " type = InputParameterType.TA_Input_Real\n"); + fprintf(gOutFunc_Annotation->file, " )\n"); + fprintf(gOutFunc_Annotation->file, " double %s[],\n", inputInfo->paramName); + } + else if(inputInfo->type == TA_Input_Integer) + { + fprintf(gOutFunc_Annotation->file, " @InputParameterInfo(\n"); + fprintf(gOutFunc_Annotation->file, " paramName = \"%s\",\n", inputInfo->paramName); + fprintf(gOutFunc_Annotation->file, " flags = %d,\n", inputInfo->flags); + fprintf(gOutFunc_Annotation->file, " type = InputParameterType.TA_Input_Integer\n"); + fprintf(gOutFunc_Annotation->file, " )\n"); + fprintf(gOutFunc_Annotation->file, " int %s[],\n", inputInfo->paramName); + } + else + { + printf( "Unexpected error 2(doForEachFunctionAnnotation)\n"); /* FIXME: fatal error! */ + } + } + } + + + + /* + * Annotate Optional input parameters + */ + for(i=0; inbOptInput; i++) + { + retCode = TA_GetOptInputParameterInfo( funcInfo->handle, i, (void*)&optInputInfo ); + fprintf(gOutFunc_Annotation->file, " @OptInputParameterInfo(\n"); + fprintf(gOutFunc_Annotation->file, " paramName = \"%s\",\n", optInputInfo->paramName); + fprintf(gOutFunc_Annotation->file, " displayName = \"%s\",\n", optInputInfo->displayName); + fprintf(gOutFunc_Annotation->file, " flags = %d,\n", optInputInfo->flags); + /*fprintf(gOutFunc_Annotation->file, " hint = \"%s\",\n", optInputInfo->hint);*/ + /*fprintf(gOutFunc_Annotation->file, " helpFile = \"%s\",\n", optInputInfo->helpFile);*/ + if(optInputInfo->type == TA_OptInput_RealRange) + { + fprintf(gOutFunc_Annotation->file, " type = OptInputParameterType.TA_OptInput_RealRange,\n"); + fprintf(gOutFunc_Annotation->file, " dataSet = com.tictactec.ta.lib.meta.annotation.RealRange.class\n"); + fprintf(gOutFunc_Annotation->file, " )\n"); + doubleRange= (TA_RealRange*)optInputInfo->dataSet; + fprintf(gOutFunc_Annotation->file, " @RealRange(\n"); + fprintf(gOutFunc_Annotation->file, " paramName = \"%s\",\n", optInputInfo->paramName); + fprintf(gOutFunc_Annotation->file, " defaultValue = %.5f,\n", (double)optInputInfo->defaultValue); + fprintf(gOutFunc_Annotation->file, " min = %.5f,\n", doubleRange->min); + fprintf(gOutFunc_Annotation->file, " max = %.5f,\n", doubleRange->max); + fprintf(gOutFunc_Annotation->file, " precision = %d,\n", doubleRange->precision); + fprintf(gOutFunc_Annotation->file, " suggested_start = %.5f,\n", doubleRange->suggested_start); + fprintf(gOutFunc_Annotation->file, " suggested_end = %.5f,\n", doubleRange->suggested_end); + fprintf(gOutFunc_Annotation->file, " suggested_increment = %.5f\n", doubleRange->suggested_increment); + fprintf(gOutFunc_Annotation->file, " )\n"); + fprintf(gOutFunc_Annotation->file, " double %s,\n", optInputInfo->paramName); + } + else if(optInputInfo->type == TA_OptInput_IntegerRange) + { + fprintf(gOutFunc_Annotation->file, " type = OptInputParameterType.TA_OptInput_IntegerRange,\n"); + fprintf(gOutFunc_Annotation->file, " dataSet = com.tictactec.ta.lib.meta.annotation.IntegerRange.class\n"); + fprintf(gOutFunc_Annotation->file, " )\n"); + integerRange= (TA_IntegerRange*)optInputInfo->dataSet; + fprintf(gOutFunc_Annotation->file, " @IntegerRange(\n"); + fprintf(gOutFunc_Annotation->file, " paramName = \"%s\",\n", optInputInfo->paramName); + fprintf(gOutFunc_Annotation->file, " defaultValue = %d,\n", (int)optInputInfo->defaultValue); + fprintf(gOutFunc_Annotation->file, " min = %d,\n", integerRange->min); + fprintf(gOutFunc_Annotation->file, " max = %d,\n", integerRange->max); + fprintf(gOutFunc_Annotation->file, " suggested_start = %d,\n", integerRange->suggested_start); + fprintf(gOutFunc_Annotation->file, " suggested_end = %d,\n", integerRange->suggested_end); + fprintf(gOutFunc_Annotation->file, " suggested_increment = %d\n", integerRange->suggested_increment); + fprintf(gOutFunc_Annotation->file, " )\n"); + fprintf(gOutFunc_Annotation->file, " int %s,\n", optInputInfo->paramName); + } + else if(optInputInfo->type == TA_OptInput_IntegerList) + { + fprintf(gOutFunc_Annotation->file, " type = OptInputParameterType.TA_OptInput_IntegerList,\n"); + fprintf(gOutFunc_Annotation->file, " dataSet = com.tictactec.ta.lib.meta.annotation.IntegerList.class\n"); + fprintf(gOutFunc_Annotation->file, " )\n"); + intList = (TA_IntegerList*) optInputInfo->dataSet; + /*if( intList != (TA_IntegerList*) TA_DEF_UI_MA_Method.dataSet ) + *{ + * + *} + */ + fprintf(gOutFunc_Annotation->file, " @IntegerList(\n"); + fprintf(gOutFunc_Annotation->file, " paramName = \"%s\",\n", optInputInfo->paramName); + fprintf(gOutFunc_Annotation->file, " defaultValue = %d,\n", (int)optInputInfo->defaultValue); + + if (intList->nbElement>0) { + fprintf(gOutFunc_Annotation->file, " value = { "); + for (j=0; jnbElement-1; j++) { + fprintf(gOutFunc_Annotation->file, "%d, ", intList->data[j].value); + } + fprintf(gOutFunc_Annotation->file, "%d },\n", intList->data[intList->nbElement-1].value); + fprintf(gOutFunc_Annotation->file, " string = { "); + for (j=0; jnbElement-1; j++) { + fprintf(gOutFunc_Annotation->file, "\"%s\", ", intList->data[j].string); + } + fprintf(gOutFunc_Annotation->file, "\"%s\" }\n", intList->data[intList->nbElement-1].string); + } + + fprintf(gOutFunc_Annotation->file, " )\n"); + fprintf(gOutFunc_Annotation->file, " MAType %s,\n", optInputInfo->paramName); + } + else + { + printf( "Unexpected error 2(doForEachFunctionAnnotation)\n"); /* FIXME: fatal error! */ + } + } + + fprintf(gOutFunc_Annotation->file, " MInteger outBegIdx,\n"); + fprintf(gOutFunc_Annotation->file, " MInteger outNBElement,\n"); + + + /* + * Annotate Output parameters + */ + for(i=0; inbOutput; i++) + { + retCode = TA_GetOutputParameterInfo( funcInfo->handle, i, (void*)&outputInfo ); + if(outputInfo->type == TA_Output_Integer) + { + fprintf(gOutFunc_Annotation->file, " @OutputParameterInfo(\n"); + fprintf(gOutFunc_Annotation->file, " paramName = \"%s\",\n", outputInfo->paramName); + fprintf(gOutFunc_Annotation->file, " flags = %d,\n", outputInfo->flags); + /*fprintf(gOutFunc_Annotation->file, " hint = \"%s\",\n", outputInfo->hint);*/ + /*fprintf(gOutFunc_Annotation->file, " helpFile = \"%s\",\n", outputInfo->helpFile);*/ + fprintf(gOutFunc_Annotation->file, " type = OutputParameterType.TA_Output_Integer\n"); + fprintf(gOutFunc_Annotation->file, " )\n"); + fprintf(gOutFunc_Annotation->file, " int %s[]\n", outputInfo->paramName); + } + else if(outputInfo->type == TA_Output_Real) + { + fprintf(gOutFunc_Annotation->file, " @OutputParameterInfo(\n"); + fprintf(gOutFunc_Annotation->file, " paramName = \"%s\",\n", outputInfo->paramName); + fprintf(gOutFunc_Annotation->file, " flags = %d,\n", outputInfo->flags); + fprintf(gOutFunc_Annotation->file, " type = OutputParameterType.TA_Output_Real\n"); + fprintf(gOutFunc_Annotation->file, " )\n"); + fprintf(gOutFunc_Annotation->file, " double %s[]", outputInfo->paramName); + } + else + { + printf( "Unexpected error 3(doForEachFunctionAnnotation)\n"); /* FIXME: fatal error!*/ + } + + if (inbOutput-1) { + fprintf(gOutFunc_Annotation->file, ","); + } + fprintf(gOutFunc_Annotation->file, "\n"); + + } + + fprintf(gOutFunc_Annotation->file, ") {\n"); + fprintf(gOutFunc_Annotation->file, " return super.%s (\n", funcName); + + fprintf(gOutFunc_Annotation->file, " startIdx,\n"); + fprintf(gOutFunc_Annotation->file, " endIdx,\n"); + + for(i=0; inbInput; i++) + { + retCode = TA_GetInputParameterInfo(funcInfo->handle, i, (void*)&inputInfo); + if(inputInfo->type == TA_Input_Price) + { + char idx = ' '; + /*if (funcInfo->nbInput>1) idx='0'+i;*/ /* TODO: compile Java code and see if it is necessary to distinguish parameters */ + + if(inputInfo->flags & TA_IN_PRICE_OPEN) + { + fprintf(gOutFunc_Annotation->file, " inOpen%c,\n", idx); + } + if(inputInfo->flags & TA_IN_PRICE_HIGH) + { + fprintf(gOutFunc_Annotation->file, " inHigh%c,\n", idx); + } + if(inputInfo->flags & TA_IN_PRICE_LOW) + { + fprintf(gOutFunc_Annotation->file, " inLow%c,\n", idx); + } + if(inputInfo->flags & TA_IN_PRICE_CLOSE) + { + fprintf(gOutFunc_Annotation->file, " inClose%c,\n", idx); + } + if(inputInfo->flags & TA_IN_PRICE_VOLUME) + { + fprintf(gOutFunc_Annotation->file, " inVolume%c,\n", idx); + } + if(inputInfo->flags & TA_IN_PRICE_OPENINTEREST) + { + fprintf(gOutFunc_Annotation->file, " inOpenInterest%c,\n", idx); /* FIXME: does it exist?*/ + } + if(inputInfo->flags & TA_IN_PRICE_TIMESTAMP) + { + fprintf(gOutFunc_Annotation->file, " inTimestamp%c,\n", idx); /* FIXME: does it exist? */ + } + } else { + fprintf(gOutFunc_Annotation->file, " %s,\n", inputInfo->paramName); + } + } + + for(i=0; inbOptInput; i++) + { + retCode = TA_GetOptInputParameterInfo(funcInfo->handle, i, (void*)&optInputInfo); + fprintf(gOutFunc_Annotation->file, " %s,\n", optInputInfo->paramName); + } + + fprintf(gOutFunc_Annotation->file, " outBegIdx,\n"); + fprintf(gOutFunc_Annotation->file, " outNBElement,\n"); + + for(i=0; inbOutput-1; i++) + { + retCode = TA_GetOutputParameterInfo(funcInfo->handle, i, (void*)&outputInfo); + fprintf(gOutFunc_Annotation->file, " %s,\n", outputInfo->paramName); + } + retCode = TA_GetOutputParameterInfo(funcInfo->handle, funcInfo->nbOutput-1, (void*)&outputInfo); + fprintf(gOutFunc_Annotation->file, " %s\n", outputInfo->paramName); + + fprintf(gOutFunc_Annotation->file, "); }\n\n\n"); +} +#endif diff --git a/src/tools/gen_code/java/Main.java b/src/tools/gen_code/java/Main.java new file mode 100644 index 000000000..21f582774 --- /dev/null +++ b/src/tools/gen_code/java/Main.java @@ -0,0 +1,89 @@ +/* TA-LIB Copyright (c) 1999-2006, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * BT Barry Tsung + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 012706 BT First version. + */ + +/* Description: + * Perform text processing to the generated TA-Lib code. + * + * Action Performed: + * - Do proper indentation of the Core.java file. + * + * This Java command line utility is expected to be + * called only by the gen_code tool. + * + * Note: All directory in this code is relative to the 'bin' directory. + * ta-lib/c/bin must be your working directory when launching this + * utility, which is the also the expected directory when launching + * gen_code. + */ +import java.io.BufferedReader; +import java.io.FileNotFoundException; +import java.io.FileReader; +import java.io.IOException; +import java.io.PrintWriter; + +class Main +{ + public static void main(String[] args) { + try { + String inFile = "..\\temp\\CoreJavaUnformated.tmp"; + String outFile = "..\\temp\\CoreJavaPretty.tmp"; + new PrettyCode(inFile,outFile).process().close(); + if( PrettyCode.verify(inFile,outFile) ){ + /* Create a file when all done. The "caller" gen_code will + * look for that file to confirm success. + */ + PrintWriter out = new PrintWriter("..\\temp\\java_success"); + out.print("OK"); + out.close(); + } + } catch (FileNotFoundException e) { + e.printStackTrace(); + } catch (IOException e) { + e.printStackTrace(); + } + } +} + diff --git a/src/tools/gen_code/java/PrettyCode.java b/src/tools/gen_code/java/PrettyCode.java new file mode 100644 index 000000000..5c5b60363 --- /dev/null +++ b/src/tools/gen_code/java/PrettyCode.java @@ -0,0 +1,224 @@ +/* TA-LIB Copyright (c) 1999-2006, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * BT Barry Tsung + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 012706 BT First version. + */ + +/* Description: + * Do formating of Java source code files. + */ + +import java.io.BufferedReader; +import java.io.FileNotFoundException; +import java.io.FileReader; +import java.io.IOException; +import java.io.PrintWriter; + +public class PrettyCode { + int line; + int level; + BufferedReader in; + PrintWriter out; + + String indentString = " "; + + boolean insideOfComment; + + boolean unfinishedStatement; + + String lineBuffer; + + public PrettyCode(String inFileName, String outFileName) throws FileNotFoundException{ + this.in = new BufferedReader(new FileReader(inFileName)); + this.out = new PrintWriter(outFileName); + } + + public PrettyCode process() throws IOException{ + while( (lineBuffer=in.readLine())!=null ){ + processLine(lineBuffer); + out.println(); + line++; + } + out.flush(); + return this; + } + + public PrettyCode close() throws IOException{ + in.close(); + out.close(); + return this; + } + + void processLine(String buffer){ + if( level > 0 ){ + buffer=buffer.trim(); + } + if( insideOfComment ){ + appendIndents(""); + buffer = processComment(buffer); + while((buffer=processBuffer(buffer))!=null); + }else{ + appendIndents(buffer); + while((buffer=processBuffer(buffer))!=null); + } + } + + String processBuffer(String buffer){ + if( buffer == null ){ return null; } + if( buffer.startsWith("/*")){ + if( insideOfComment ){ + error("comment inside of comment"); + } + insideOfComment=true; + out.print(buffer.substring(0,2)); + buffer=processComment(substring(buffer,2)); + }else if(buffer.startsWith( "//")){ + out.print(buffer); + }else if(buffer.startsWith("\"")){ + unfinishedStatement=true; + int i=buffer.indexOf("\""); + if( i == -1 ){ + error("no matching ending \""); + }else{ + out.print(buffer.substring(0,i+1)); + return buffer.substring(i+1); + } + }else{ + for(int i=0;i(s.length()-1)){return "";} + return s.substring(i); + } + + public static boolean verify(String fileName1, String fileName2) throws IOException{ + BufferedReader f1 = new BufferedReader(new FileReader(fileName1)); + BufferedReader f2 = new BufferedReader(new FileReader(fileName2)); + int line=0; + String buf1, buf2; + while((buf1=f1.readLine())!= null){ + if((buf2=f2.readLine())==null){ + System.err.println(fileName2+" is shorter than "+fileName1); + return false; + } + if( !buf1.trim().equals(buf2.trim()) ){ + System.err.println("Error on line "+line); + System.err.println(fileName1+"='"+buf1+"'"); + System.err.println(fileName2+"='"+buf2+"'"); + return false; + } + line++; + } + if( (buf2 = f2.readLine()) != null ){ + System.err.println(fileName1+" is shorter than "+fileName2); + return false; + } + return true; + } +} + diff --git a/src/tools/gen_code/mcpp.exe b/src/tools/gen_code/mcpp.exe new file mode 100644 index 0000000000000000000000000000000000000000..c180a4daebdbb5f515da4aa7054f9f3497fe919b GIT binary patch literal 135168 zcmeEveRx#WwfC9H1coqi21qnQknp7-s8qBSV{C|wqB1%Y8MTTPE9!_}6lMflBG5?+ z!x&2|^lIy^q}X2DdRuC##uhawCBdd`^rmfWX^l2*_b|D=X`NdJJ2mg`xAs0W6F}eR zxzBr_=lw(UWcE2{f2_UsT5GSh_S*XdZrEm(SeE6&H9Txt?fB)tdindoe|qrxq$xi- z$=WmKXH(l9OMW(WY2?l|HLF(NcgN~m?y0%;mV58LFIw}d+iF(F?yb4=-kL>MUsH3> zeJgG|yS%(?hN=3UxsLAV0{1;pxbA)8bGSdxf9?}|@Vn`*6;C|N`_L^Z_$5_WG%Ub2IEFXUH@6$7xMq(p= z*;}S@5fA)l|61Ed>vwoYJjo67GPC^VfB4XHeZgVPlGOj>KY+9M1FAebdfU1v-uJCE z{gS?pEKp-v%gc*nlup~eAz&A)me9l|20p~VhZy(}10Q1GLkxU~f&Y&&5Ka!p2dg{%S;E-q z&&f~eq1a{CszVE{&eC3_wn=IaQoAL!|E^2Tvo1Vayp#DdNS*iZ3oZ3JtYme+vaD8r zF4!8#hLT}VW76*qs=q#MS@He8cvIGjZip;G<|JOLGmrAIyQL$#GFi!n8zYPP&Yumc z*8x_1zo(@mR?EDRC45myNE%hMeiyIX9l6x9qGfITP53kE(VhMb4b@~I6HrwS-dG{Mem73rRiKyJtEZ;tm~8I#6l>tj_<;`Mpc^! z>!Kuj8ClO4-RZ%Q+K$Sla|WTR{dMVgTM+Ff%Q*h&fOuUZWwPMb6G+x(DxT3x`qA|F#O#RhH^w@z87yok%1y)PZOX#=_ze|7mN(yT_h_|3qdG{hFVP~wdoN;)nC?Cca{#YP5jgF z4Z6W)8v&7wLVTUu@-}Z`!EzauP*u_y)Oe4)BcqY<=j?aY;2_ZC6Z!?~0X4_#qU>Mv zlw>&*V6<$bI;2MuWIM}#e^MJ?2h}uz%Oy-VvrUF}7vI>JJ4N`!`tCwYV@XYux;!?5 z2hZ#D_mlzRPJeIY>4jE$Ow!*Q?{Fvly~#jNYsJs_a6!0t%}4qC0xLQ<8R$)p^SGza2szUd$HINIb|B|tBCHz@*%ll%3JD#0Ka_p`_57K48g7?LcI}z@Npow=> z1oeY4Ky)|L@qMmPWG)(L4fi#wpj1}X>hB90Kq5IpP)`W9oGu+eGx3+lHb$1P5HhMs zntWOVeR;5@&{7tnVc5OP!p^lvdxe5AKYh|=tX?MKIP0nn;Og0bfG9-{#8ZxhPSnjp zX)6k;qQwg+XpmA!1TKCd&;}EglrHUj+|uD~Ug;!@Wcc!Vd3Mm-{8!wld0((FL1jBj zYeqF#GjIV@HL=r@mApUTtZCyfq2aG`>fFdPJys!e*{U%H#hKLOs4rf3k-&BdvdoOt zsn;IHv+RYjamjF|QC*VHoUT!~BR|9;MP1CNx?%v^pFvBUE}iM?(m{?Hh9gkOw2PSn znfN|OB9KX+gA8S{Gi*6Jp&;#^(%7ajDAZV*at;pqJ7v zM#Y;lWe<*4AANUtI6V!Gq66{6jzl=qa`3_Nd69jwY3cWbMWd80c$@zWWF*Upv;^p~ zvVS8a1m%H9y1UR1&d1q>u{&Eid7pVLAAnGY;!Q)CeA}2GY|Zi@p`k{#MRIr`f8%wl z1jRGeV`!tZRPH3j+#EvP9}aWc4Z4(}OJlfl38~O@G3reFF&CquS{dxMrD_ZHq|;i3 zBG8SR*c2K516GX&g@~6b)X|3|Q>qjwjj&DiDCgq+u2kZmAXqc~4OX}FU9Aw;q=QG^ zNCXB~Vpbxcjp`>~VF`%p0rhREE|>HV)RuDQ@wO-qP*biZHc>Zyz)_>i#b0(Lq=NK8 z0gl47oahR*Vy=-X$%91)jb3j{67^8yQ=Ll%K7(R!^J=^RX1y;pxax)>4!kYPrO81n zdWP=N0bqlw#{4Y$xD7H&KmOz(9|P>HdM8PG%x-aroCR@YRX-kakO=xX$Q$C0k{cA8 zO}~YFpddZES`WqG-?T=+P54#3NnH}H#@|KJlc{U!2H(R#qQMkM&1g_mA_IhWzk63Z zrNqh+t%kE;T$w_^OlTFr%#Kb{|NW>y8`8BtWojkYMjl1)l9jBgQT;qE6|Xd^=oC;H z+EJhQsin1qq#OD%WCu`_tQ0k&tfWh)5@l-Ck>TNjFtJAn0t(GoX&-Q*DaeSdlmn<& zHv+PF6EI({VOs)eMa)0{_aa(yi;jX0t%Q~Z=pN^+@z%dGr%&CvRnU&=YejX5O@NBO z)t}qqOa?rHeNXx~>Yab#n0qw+i2nb!V9}K)SPz~;0D<4VFOG}9yChZ+A$h?ANdWyp z53&_q2<$G4&5{x!k^mTISrpKTs#~2~RPhQSy_~K~J+(vns7S0KeLnQ*`Y$XNPScg0j|iU?uE3MmdmK_NXuv! zG&{e8XkL$s*5I;##g2#lBsIn`HlEZ)AWZbr`=UD$AWTS0J#O;acwiB1mneFypKN*? z^k+eGf}fHs=N4eywfoFOi^t{L;Q{czRIzY+r9ux{UiUUbs<1IY-dRf7Mgt|nM5`!f zna1JDjj%LBldAH?;PfJa=roYYR>tk z5TS<%Y8YNtgdw*GpdyyvM%^W|EH+!CV$)mfUb0g6z;(s+Qt3elgipYfO}ztpHj<%R z@LCVebouw-=I{?ZDnF`Aeg>8N47qpH1#&$mQ=lBWjy5(=&1){rDIqYn0L3!kR?pro zQUv0xELNJ@J&L-8jkRQDA7ZH~Lxh6cNirGUzI#E~QY14K*WK zxoGD?EB>~-<#pJF;AS(mNUr5NS84{@^S)U5HU_cf_1NeGrGG#QPfFk7la83j`(k-N zl8L~fbR{w}jknD8TL1i>MEFoLa3~SzkMM=sdYEmy;@Q#n!`7?(GjqM2^!LwyIpOb5 z2Kp0$zGS#Be)!G={xf~k58lG(|mANJW>kZ>Bw<$~n5+${%zWXMDyIiKqvI#=o?@t26o?QMCL zG)GkQCd0jgir#or?^WK-kUV(NOLUw+ThK8ZKPhNy){lZPr`wj{PrSpki@&v%{JW+! zwGwqFi-4Gqi3O|%hPvx@&!(5zsLmTZl{5gI4R1q`cJvV3paGPcJJAlSV!g>q8bOJW zE9D~SKu>I3n{>3FUa(Tt_EXDBDJW{4rOQF;Qj&e@Nrro*Pd)Lbo@>3Ery&a*0_@Xn z-KS>!d_Z@;$^xc4F5qsc0k8v|oQXBYv=x_F>`LFfsgCc6 z5^&nPPNb(IHxrACp?oZNq79M()dwF)Z1AqgNY_mf56*L zfB&6GC&T@Xss5?dnf|}Y8J4!u2-zg^$ zU7C6ik2Lm@PLES#A>q(Z#5hhgxC^*(05@mZCgMr?syJpa>}>R;%XFHfk(zicXltcK zf@TlF+S1fjcxcyq>d5v`8LdQCmTwT25gXHB#t%cu00-&{dYBuYS)*T%a``3&%T6$rK+(DsQ33L{9VaFS3GrR0)Lyj z!fRoTbj^Q#>$VAJQXcFWjh}QZeU`Kr&z41}iw>lnhU1{kHMR|I1c9pt-GDlL8>(M! z+7Aqb)NIr8JpC-v1*%dN=HVo8l3*{{;O1nZ`0~gX1y=P0tAfrIAwmtyCFy0@@6*#A z5gRuyl1Vnb7yC-~b0jEp_cLoUykGlDY_k}w(ZLsKZ(cdUB$)_wB>kf0e12NJ^(d|{ z;QBePHeBDv^=n*vas2>SKduz6pWyl%F3a;j`{(dDJ)RPe$0fx}J)`(L+KoSBJf5<# zUzuKS?Z8zv15G&pXa6jxF6ofs`mfXJxD!=oPp`M$!tcSE^;Z2E^;Qq=SKzuH>D9RY zg7gFUwaWfy|Ew~Ubd;4jrFco1i@&9#@Mm;cnS0DPQ1!pz`WBn`pLI@`vO9%4NlIn- z;}AuvLhZfPX1lUjjruvPDNU7aN{F}#_6?|Oen;w;7E(>_J7WvfQ^=)WIfVtGSW_z< z8-QyldO}}ZI13)!g~CuB@;X%;RjQy?sc3jz3n+|AC6<<1EEzzqMs-wE`23FaQmq>N zz{}jOBYl%Pj`YDOp5L*lNt*C(?^xi^#!f59yS(gr)g{s@;j^V7Akr?vy!{KcMR~qY ztuj-OAJz7$0&1p?z{(vOBK5=;0Ma#_`XT)!Kq&4#w2-!HW0AG|&33C7=YB?1HSrU5H9nVr!n#_ErH3{EeMF~R&D#6#+S z`n6?oVqq5FzI`bTIwRHft$1v$9{D%@@XdP54AwFvxTI zrr%i>BzohJ@ZK)~W7c|@1HJJJEoh#6*#qT-FE?DZek@d%O&6m54Qm$4yKcv{ zkK&$*6m)N0j7k`2IEUad<@D?^}HF)KYNEf=J3*Yn`DU1=o z^4q+f3*m3aI%GZiXhr8odh+?sxAPh1p!pCvMBIILt6&_Ey$-VPZ0To<_?P~4QeY4# zs;sGaI$I6_gYUswg|n|!AbKg}O6=g%q`U(sZEDIg_xdqN(DxeC$Pjy_m17Z7?tGIs z=bJ=Acd2zp2ALYw^j}NQR6X9nMjQ@cwmcwIPh9e!x@#Hg&d!dNN$sg!c&pZaj`jevkaXxwj4)xQj8io< z7{L3H8LklI6WNk*?O?0Pa?X|^nJtwE)l(kRa;#xf;^BgPTIg;58R`T~bYXmh1KyOK zE6&*2F~~{&7g^8Ve@g@v=k!r%?>M%&9hF@cTOP0LLAPsS*Qv*DM6T>?3R|h? zU&%f+)kc^*T`k+dSS5f09w|JKB@-repEmv+^BQkcVH9CiQY`6dVK1@N1L0ksua^5J zj)U#O$kS+Cv-anHg$%N+IOD{1?fX14u%D+%dm~y?_X~s2k`~)QgP7D9hi1Y)Zp>Ez z`E2^6C*L_0t%O->OjJm>^~`&~G56R>Trkn$*u`HJxWT5Jx!&d!my2Y=mi0}NnJ#?5 z$-$c)oucYCYD@_qM*0ZVVF+94R{DxGEKgQTk)y^VtC`vHG)=sJEBf7&=X=p_O;K08adP>$lC`qQVS zTk7Erz*9KeroDMoI%--D#^%I@_N}IAwmXc5tM(nk^&DA&hSW708a3w=Hiod0IFAG> ztBa?THR$I(l&oa4vYe3F#bi?EDJ+3y;F3g;(iqerY|*d1U2t-NIciByO?{U^?b?lG zvXbPTfF9D+dz!cT2j~S-Q}DK2GQzC4>3uuFi#D@T64L@gLIU^dO z0sN2^t$-SY6_a@OG>N@I-4-37crzPLJ9vEK?@o@LRy1zoHJ2r6DSlknXZM&c-~-la zP-Voann~YgBi5O|frfMROgLaoYg23yNN<2$X?UPf9ga&++60TT+!Ina5nL*IbdFmx znKTkfSW6FQQX2s@0wXv@sgDyo)NggpPaVgi^CNqJ3Z41Q*CjJ160LH|tlB|L&D1~u zorh65jLo20Hv)#}D7Z+u(mhH8q2l-1bWsz7Cl!dO$s(ez5JI$F^aBMb{H&+ClB>@#V3gS+N#s#^ro`<md4^qpSeVxR#7o%SsD9K-I2k5X>uRNd zjh#-#(6xhUE>k46Faq%di*sdyMucAUVqM>+w*=&a(N7yG{HOQeq*xHnLc}+Dtmq9Z zJ(21?aNe-=U;5Y<p3 z)KqBldU-^wO{{{r4_K4)j(zpLdpM?g!5EHPw=CtD8OpW8zH=bwS-I zp6-F*MzsL77{ytpDwzw~s5b}I?;vnN#H!^QNMRo27s0fb^1i>QXM+7`b5`YJ3%V@WxQ>*YXZE9hr$uAFpLHgmdyTPsl@9f&!4O6|LJq zU$W5V>BQb!%*}{=!HS%wrL!@-AUsAjVYzT}qk0)05ey3!uHm4?iuQ%pdZ#SH672oO z@D}=9hgyYLu)v%H!)8!p1#0vm?UCA5xuB(r@&NzaXu|?&RT4cwj7+r^t3*HYqtryz z|2q&%X0DDm`7Ek^70Aa?Cd`qjj2Gww#3E8@;-!x zQsx2`G)4yP91|o57N>ny>@#K+QD*|rrpIGIg`7cqgQ73NXv)-vb4^#RoGW^wLmLpb zDg(;IivJQ3=cGhfUz}lK%KHcB2t_9J{44m*8sjYes5A+jIDwL>Ao@@w0|?cFdR_o) z2yd%K;cLWM0t4eDTb9|bv$J`U4OO57^s#~kl8b$zNRC}a1!~qoqK`s=vC==0j=S^1 z0n?J3CTGmTP&-e*Bm$gm)gktn3bi0_B!+}x`OLy#dH~#^M_9e5SJiG#F30`5#3&Pe#sUxxo6CFM59DQJ^OB zBy-hasKE_jeLb#odiK5RYK-hAc;#H#4ynDcJgC=T4rDn@~|i2r=cv7nWhj$W#}Z1fTU-bIimYQWRdbzL6D4bcV% zFf$yD7I1J;DSE~_ov$5DNUc9&+l+Xs!mIrF1V)UHAu0#ROedZ8z(8p@cBov>6^3f} zD{R_OImpscOVjKgC!WgaIb%y;$BhL9wr9f?y#TIW^p=835?G)BULkrHwDLK%=wu}y zfn6gPpfPp5?qGV3uJlxT3bGZbG<~XmQnKEs6Qed@&dlD;_6n@f+KXy+&*CqaB&3V2 zEnRq6E1A~L(WD7Gkyvev31(2=-R^@@$dw zGYq57#6=b;_6bHnsPOV2AKilWL|J}v)*57gc1J^ycF1frO=Omr*AGDwnQ4{iiL}|fxKK@vkCuomU2GfKXvgX^c&EXSQhiB;GMFJSWPh` z&fLMEs$OXDm|vPLYoCmwslQVQb48uzZ;DJ37}9ED{P4m=m@D0*yqllp3;zJZ8qc_@ z-ip)%yV@_Y=tZd)x^T-2gk(>HKq5{@C{}~BVs5olKPz(0j0gn!d07EY=TWqbv89c=i86Q!nsdP0+FvEtV62+CmiaWImLI?jC*yeMui6LO`?FSbgB{h zfH*1Wn3Ldz($rqOEpXd(qZqN088rf^VLcdG26?*H1j>oWj5SBvS>RU8!We+`-MY12 z63?Vy0YGS zCQxsE#axT<%gYHW&+{r1;MY)_EOm&V^|bXfF;`B1(3vg-fkb@IqlHI`T1b~l5jG_J zj-cP}xyXd*uzLA{iU_LkAJRVq`bY6c`{X{D?X}0w4s73>^zVhM8q~xHb_9Iptvm!n zm!__VG>A9tohMvTh8EH{ouIri@dxACb@YAhy*^e0Ch`%WFbqf?Dw9A%cE_=_KoC`u!|8lJdbF{$@5CeQ@pOjrr8Ust2@?UTVv_}k(9M(kiY zLvFm!u_rK(+v82`&~or1r~(I=6J9gM72bka7ls*LhblRRbj1(POWehh?7=Z{glp^kg7D97W{p-n*k^_`Ag0vIE^jDkei0j*X8u z?YFQJcayXxA&Zim1G^-)R94SQQ?e3;aHi-*cDGAYb5KH4M0C8An(vhpOp3)ssUpir? zyraNK6aYyw%Qums06PCd#$dzaQ*F zpK(WHD>n|fDN^=B2b0W!_UVDW@uS1BievDT`VFV$a2J$`B(h>3Q2+uU133Xe>6i)k zi`%MS!xuk#hPQbJ2`~(B;SKaQpUk@e?(A?pdtH2bId{24XS6c@?hVjL0d{};SpQxq zZfyXWvH`MJq-|?>KgO9$5FJ?RMlm>9ihAL1pYGqwT~^2SLN7({cVH7zppP|TMRh>1 zIwY}o8SaAMCaDYrl3MbLWsL<4;k`Pz(z&~Ej3y$!f+HkK3 z4*%|2e^0UC2m%u}d#LZ)EaHkT4wmt6~k6` ztr_2FFABS(L22&vq}T{YelzLy>6L6*ymg3v=mQ6-uxWZmQXE_4py|aN9;x{ea-E}d zY3_x>30{$fJa8W90t+)gzg71DdneH^cm#QRf@;@Kk0Ec(*}~6@uZ2**8!ce+dsKb~ zNaCoLYfim%Dr0%aa3Di4_y7(LU@qYRc9%u53VaAIs-rHF|8cnyA=)jKfvfQv3l#_& z_3uvx_QzAx68PJ+ANy3GDx&ay@3Ws9x>2^?bl|6bG@hd7Cs1=cg$UA*FzwOl%}i4* z!1K>CU9QvjF+E17Z)KWJ8sxbSX^fFflcgyaBmwxjOZwc0S0n~GNkL+35!)*FU~_-}+!3cytRSO*?*_Heow6ZzS zM8kUElCETnNhQ4o1-Ax&MrWTg_d4)q>Vz4@%YnAMW{v;m_%*7S$ZZlZuNI_ zKYFh{!tKid0a&L~0Kw3M7HlbTz=1(Q^vUHm3|L5}n(7l_-4jxOmbhwP8Zy;vuZ&KD zjt&{<3n5H|!c~;oVUw@HuIOZ{(JS3VFI4HB=5?`JCGU&t__5AZ=!9KYSvxhU_^ZR1 zP=#AQNs0Qs>*}p1aIL`Q!&QxI7OwMf)#F-%>v~+PaXpXA8jFAOhY5%I$29)spX*!m z*QtNyWr+(nrRK#b{Ei;$c8(cambU>R-!~0%`IHLQk162~&6S^_75D*~N3WlSzY{l1 z1G~i)lp?4J5P^v4PcDR18Q>ky<;kQgjphTD8TFy2jHbYm#gr5qw2NhJ_nWtQD+)=2 z(C^V89L0A7fja>P9mPyPg*2ByjfXBN4}+22d~E!tr-`y8F$|Htc&_e(+6YN06;G6k zu}q2>A|DR4;`=N0ds7~U{bo@WQ2@uDK}KXOZ_8IT`;7KJ^hKST=>5WGojS$a+@w=g z-sUwrRqk!RQ>Q%M=9?vjy=Ksm2CenCQngps>KjqBJR7jqU(ILz*6PcQr0}*>*oDTi z(1x>VJ18Jv!&;bb8LSDtBe)vC(sv4}4dt7f`uW=X`QPw`Va>b`#Sz11FVQ=^&Cer) zQAga~=I=;7giic%JrYdU3&#>Sy7eH)uwXSJR?ZlMWD+t6$U4~Cx(W@4)b9oFRp|x5 zn}ZP_Jrw>5b4(hBY|s4HvHw^UVm;>#tvPiYo zw9$0}Np?;_l3}a12(f~G#<>*!mu^zg4{s3o0E1f~853KF;L@>yf!Hd$dWk}&WI+tZ zr8+wZv9n$_AR?8b`>oL4DMrW$TDYye(UbwdNv~O0!jL-aUBD5i!;~nU9DrF|^VUn^ z{XqC2(h9~6Lim2n5#NvaA%!y!AR*r`-!3Rt`F!A3cpisirD!C5BNopSJ0fhdg@5B} zR6-|S;O+ReHOW>cyw83yyu`~GU<@kh9TsF&i6sRqem;IY2(u~EQmxF5SSzkEl% zmAZ(xe$QCHFFGClKk^0wtm3a*M}C7{N}_3aYW;mQhkUhxL($1L*)ZM!#g6phMf^4E z$Q!jiF%dL$#HlqNTG_oN0$#>*69A=UT_)^dDVc0V^?4xhIR}cd$ zS9_KGy^k>)%5IagjQl9XfvG!wNSkViaT@{8*nrR5jMFkuTgBKgq)?J+Oon=B8T5?v z3!i+JMYV|ptSE%!7FMT^Be%7B%_V!q- zA$F^*4ULom71o+7Y;HUOvyV_)j%9W#V}rmGdQ#!3)?T|beaS6KItM{lugxZ!Ge z`~sfZz|dO1bY`OI3_|IAwc*VAbFlZ#51JiXT^J!&@SrKS0XV3znxG|lpnNwW(#4pA zFTr5q2=V+AkT!&>FEvHOHAmo@^nP$;lv`Kv1=Ts`V4NuMxvmaX$*|whQdm1$Ns7xEV%+Bn3z;@R=OvX7oR87g)doQZLTS zk-kt09p`McvzG}#tQBHWdP3LSlQuX{YH*&kv;S7Q*Uk>a3lkrT!W#X*8WT2NGcSywU^QX27a6=MTcY;&jG=1#mupLd!z(<@Q)SO_U} zr(&$XirsmfS?D@^oQ0D9$L+iqGiEB~6VEgph>s@yk0t|;CVgW=E|}&13c!m9JV@!Z zag;DV6sMSe{AxoLKte8omPm`7vM#x$-dc5szL;K&s~y+RaAk14@+p1&?AChgwiWf( zKXILWTfMazS39m0u8FtTTUX-x46bkC>cI7DTz|ne(bRn@e)FokBxF8ZiivRX2Tp`s z?!-h`>*5GtxpT*^yX%1wIsGUAL}XIu$*Up}t1Uqp7+;Z8Pa+>=h8#MAmq%U$3XVX# zqx4GsR|)aVnU(nOx5ug<=*RPZ;9s(JF&iQwF=GL-dZtoe`fh$wlacf`$E6fUGy2&= zcE&^xh15GBn}lEH>#$4*i{Uilb_{$8+e46X;gAcAw{ z;Jt*@9U8vh2W3Z3C_4cryLzhh%AO^SC|@I$N_UQmXga1lfB2r=ozxqAANG_8-A^Fh z)5eDTu{PjaJ!LJ3iSlpt`#@t0>+uGfq^@m_)HZ2kZF*IPwXOZX)V7~e6Md@_*ln?T zZ=q8&M!Yz`@M5gAPieMx0vtLb%_#mT<%HY1^=Nn7qx~Da(9%o_h}5C@>#_@U=>lDL zfp4*Z2&L5%fE|%$6o32e0{eA={dR$MEFfY@3J6FPe{}u`NFBOBhh5+@7La-&FQg#p zb+4U$ug<>L&R)grQY*xt$YqM66Ulp_2byFU@98o^)9n#Tz0Su0&wP<{^X-{6MTJ~= zhQbn3&N!}~)Rl}4Q~ZfYW1ApB>kK%B<~U~c+-?; z6mTN&G?t%|{-={=V;8%kh~k0t9Rm76qOb!46<}>BIc!4x-I`yu4>k3>C z;Cc$zOSpc8>pyXwYU=jmSJtoLx>yJ4XH>iBOxwK0j*ns=Iaf!NCm>L#uLQo5;}Cdb z#cE7`M^txE*dIpPTT67-8f}76XTpA-q<#uCC7rhMhECg3S>!P`pk#IeBE;hD7qN_R zZ8*wtJgJDAXdOM09L}MChhL0CG}O<0sI$QpOqN0X3_&om#S9!)`p}_8UnMwI>5tik z2fu3y4-S|{wA|7Kv-yH!rCt}&ue-ke+X`>(JSjJq2O+L~(s z64t8hcq+MTZ~`nm4RJ38e$lAkGso|K?0E<%>&Veyq~Zni#X$YA)K`rx4Dj-M(%%3{ z$=pl57s7Zg4sxiN2JPnFrcr2&Pb=J(Psclx^p>>K;g zt%Fa#^HUh7T=bJugQC}h02l_}aaoG%+)3;?a%W{b)Hs;-S%9N1 z^z*qp4WDp!B97I1brJ3nrW57niZN;aEkVs1y%H~7fdjeJBW=Rg2^>{`-TiVzQKFnD zerVX1O0BM4d(gAa(%tyWe>$EA4%60_EVt>mwq{Wpd`X-f zfY)sLAHy8ukoqn|l(=$iD_icLp_lEBgm!^DN3Ft%JYxMuP(d@bT#8{E`1$P>kz^niXuCUg)S zC(#4e6kuGC1$1+hh8_XW4mN{@9uC3*=M*v$cY}gM&4H+?H#wEVP3V2-r)V0{{gEmS zT6nP4wFBxJ`u)dCFcV%c`Mq%YW%#wtz@T(k4-&@ z$fNihm<5#5T@{%}-2TgD0!Rc=hd5B)2HkcQyRc~*PB84$iUgVaPMsTD8%p^dNZ<{! z&+Zd8;F7k%HCORDVZs5KlN;Me`a$&qIv}<@T(c8RkH0NPkLn(O&7`^Y=Sw<`-rs{U zh7+z)U98CoBN9aOAg=}ioX*K&TEyopmJ`yKq&4^}F<1|O7XzbvxL8Vo5Hfir!Q#Q^ zGgh(CR$T}Vlua+Qe;6z3wYrbWQzjk2%uX2uF*XRhiQ`2#W4}ogv|f|u4wub(90hEi zs&I-8_6Ptnp-3|U7^4A5V=W$gzp-E>r?xlS^_fyprb*CfFcjRS zLy!U8S$S|J16&fqCUVL&Hd@Gm-DDt6d}^u<{*V!_m}G@teIQr8p=k)KY5cZ8^bREW z5dyP8U!TZVTgkJ3HjIha@iaJV!?gTNFPrc9kelzevzPBstV0Nzqx|;b8CsF^PMiXV zCq*+|OK5H&8-o$YE-Y-S;(XyHK1dW)DZI_iyy5$5^go+yz~;>u;2ZzJ)Yzf9L+M-8Jod~Iiw+T#gkhXpF#1uJu z1hk`{N=~fE8NSke8FjIg10SgLIkba76sR$|cqgdcU`DG0y)25OOmps}p%lU-%B8gb)Ey0&W4S`A5uxr!czFUe5olMbq7 zi{t@E4e+Jc()AAGf;&|RQ&xKS!}9lWkF#mwfVBY>tZ}5K0R+6kDkXf76v4hUzG&dv z8qREif^I*85Yc{x3b@+^#*ljSWPuEYv2F@&2UhA@stuK?--BXN0O(U|EhUmvcE~rP4QN1@8rPybXHvI&qH+p(~4Wnxal(Is-R>(|NASGkD z?D!5}Wjg%*3t8T+9z!{_fDTt92tBFqIMr%`gKy*vz(Tc6A3@L19Bk>wG@BuPrK{C- zCn)pI1YJhPh{0){$jg>7^L@;;JjIlgdOI83R6Yx`W5j`8fTGRRXy-YZ;KBWIh^(B$5 zBZfjM1!AxntQoT{?DIkVMPCtE#Qo*IMz!Q)Qo%}xp=Q}CaK>!v&~J$#@!4jx#Bh?U z2023ZQ+%)F3#{RIYJ7VZsIm2<92k7f!JKY{D1;p6?DHZ0N$KxtHm0evRKJ8m^|}yxm7m_lAA+n9ln|s6Gn1oYXqy&fY^brs!G_ppA#~6S z6UtV|WbbZsMbDzzA6bmXY^(gmtppUt2_mu$-c8ue!_iYbExOdh1+PA=M-!}_>_ z>|oa*%Vj4%C%&m^&^u<%T+z&#TEYR9xe#^aJ0$!y&+wOtEWvw9*t~{)r5r4PsfU_9 z0#j&F^e-pSSfNjr)3^o&h9VI@GJc7_3!y-fr20ialmAptG1K8E6NdA4Yyr*s^Nibh7;*#(tu=nXx0FWc!O0 zbYJ2{4I>8zr*LEZ&{qE-iG4^oXDHo)M-n~3d2I-kisjCRlUOQ3z!NZEyGM67QTAw}# zGvyrr0NnZcF5|RN6dPbMj-A^6kn|QdB6pQjhZl-viMZq;S%{BePGrN$7wt^h zjF*sv=(gf-2}uLa^z{NMtQnY6T#uulh(w0AM7q@KdJtoQuY$Q+SttMD16Vy=*+;;o zz{dRm(zJXjMPMlE5c;FrGadSv5hXO=@<;sSY6Zk5oSQ?jW;aYxH9Gz4yjE`GXAll_ z61(_y;6=v5lG*Eo=d?>V$(dRRMlp&rjMrI#c)IRtN z$1sbBTL}8a*6BkSH=?)adN&_MorotvP|yooBq-<`_@T5xOz!XS&Y0#-{izHvBmCFf z;iG9(pE#eDV)nqac?L&KITrX2VNCq{{ao~Ql^!7m6L;zG?a%T%%rg$V727TSve z>kF#?7I_Py2?=>fCIyCbnR!E=_UKf|{&lD+9)$f%)M{ypsL-Z@;(!73BJ!U!4^ zJpzOb)vGr#uG8N~CZ!bX6H*3U^nsL{5Tw@IsJ@8_j5=tb7pG)ln;|G38Kh{%ru0vN zXh!bl6{w3jrVq~16vgh~^&T)WR|ofS;zDc+!e!a>i-f~Gkv`u1mkfeS3k`sSksjb| z^8FTsLg0$w`gwD`^#-nIk+w?he-1lgew`!lOG-;!+Q1V1k4Nw7>fzPOvLleWnY@Jh zCf;FADWgboPmDoQxN*jcIiA&_8g&zY`Zi;9v>WTrb6 z;0(ZXDN#K-0B9=cubtDx9Ebs^NZ?G1d?!kIg!eVbZ@gYCf>^ILJlYb@7WqOL^bGUe z#q^s}Gn`L2b_H)7vjpIc$jI1dXuFCh@T&=gq2OAD>mgiU$Mrrt{EyrA&x4PO z_WaBEKxWGL*k7Sjf1gBc7tLl0Mr6FdCW>#Ya0v`+pZ4kZP@nD3(qUmUQ^uGKewc|U zJiTxp5%#}8!dg-I&NEXW=l&I}r@eXUFNtD`y(G}oD%nBz0Y?q(kHQWlbJ9MK5UdsT zJ?c>{gG% z>N{qAGDJGWh=d}86hX!yxlQQ6ru1XflYpmbp6+pD#IrBISo;wv16qc?<)b4M=GKi` zR-|9jU9$N{bl$ufl>u3jWuW^0Q>X9+wRe!x=Pk)%b;0K_@(Wksp-#vi@DN5A!vXW- zd8va|_4kkh5cj`L`3O~k9EQh_;<0^hrFJvJ=y**sA>L|83D*Ye}9Pd8ZRRwz5ZyO*rdY~Xber)m!L6+b!CR!*7 zhfQ;6FQo23S?Jm5PEGW0_&X&!NT&d4Ug)C=787^!4Iy9wBLzgc&G#V+8&b2tBGk|P zD>*kcryZ6e8)@5my_>gT*kGSRpq}?d5vbMp5oxR7ky-*qT4ys)(Uw8T3Bs*;)^q_f ztmvRVB^^ku<=?n7}Du;~|v85Qk1pLYv zQm0ejUMu4WT1ABmQ6a?oLa0!;q9Ytk?M9Zlg9jjCFomok`Y{2xH9(ix0AW?%O3fw; z%zzgBD;fI{)rZi$IvGHEa!S16%ts{%8#emg3~{qRv2I zTKdbwP3~neu#aqOj4n2`1MiT1#zMwC!sMaxmMF8IV1JzqO@e!2!kl6=F<@smy=xG* zMF%rrOCu0+n#{tJWt=Vt05VRC38Q~#YrxH~d*)B`!;lfdh-_XXM=xu2C$fr+^B*$> z*S3=4j3U~Z$`E}D>U7~MR7L5**dy_PJ^OII_0AU%Fof&mZS~f@_&p!LmZOyV1(XW; zXEci<{lfO&=67Lcd3uO=P1$Rmme&?&GJ z;Zz|JEECGYB*tng=n>56VqCq6$4FzN;2=)r$qz;wI|^^cT4;SrzLu%^aYP?Z#G~#a z9xd^h zwAKJb9-fC$7{oiymoM{YpawtUR-#U0NWthC#)grmT{ z&D{`1*y35>A^mwyZ}UOaWcUwzSkSqxe#MbC${jUJc@1Vzp}gB2G6BQ6>1}HxJ`UN8 zKe`S<2R&Elv=zNWqAzYK;QCq{xH&lEw#4(B{el2OK5ZSz>ODlt`5r zXes@bg3V&6S`GJ+zD6a>xM>`Ol)OwFne3D;Jn^ud!DS z&nxZ;VCp8H1`v`mL-z!_DCIIJ84+kWF$U+J+A;lNe59I$%D#x4|n zz%B~QnPERTSw%~KHn!{mmV(KGl>z%{30E4{+{+hOGQi-?(p7UtQ`I`n9%H(qJq#ID zfV9L2{k$^e$eVI9!E1bp=*9w9&WLW~`9-DvC@sg^cnX1z&0UAvpy)8GVt3nAT+rg& z_M-y7qre;~a8?XQ4Ik5lo&5uANc}??oGL{(QyLU+^GmonQ3Z&8)3_58SC73jepIxH z>_}}QtF?(dsn`>ce3pTc3c1w3v6bWC=CBd}KP5nvFtRiRee|;!1co3P2LHg0rSVY# zEgnBG8_a`(#Ekck_O^tI)Cd_DZ_C9ZkoiSzkw&>SW(gGwc+1ErUx&|uvdc7Bq*EJH zr$7(YIL|~3oskAHjqbwifJw{SI-e7m!FACLgtc+49>Kk$8^k#$=HRcBBO8fOE~{0< z4DJTgIGSRpAe}e8%{&Nlp*J{ov5bz))Ar{<*0V=7r|BN)NKd=Pf(8ZFn@afD6u<2t z^EF~L0$*Sg1JT;HunW7^e zzD|}O2dHB}*$(Hv?@|jti?-$Dk0EpHM>Y}5rP?`80&E8VU3wvlBa%)#E0!d8oX2=8s9PDp0i z6Ob8(mFMk38!SW%+h4Drs#lnA^lsh>AQ?&Y>=*wg;O}?_Kl3|));jNwj>Yl*zs5VJ z%BhU0?a0a#a`|T8$_ZlX0oEdMQXq=c>3mal(Ua0A>Asx8etGPkRp2hQ zm<8wzAHYIrU9l7!DuAFkD|L#%38Sf>OHhYrV)Y(dwyV6GyYLn&Ct?9V z^$p^`^(y?>=qTdEoc*kr6Pt2%vB?@pr~&8#P?jq~S=zkx@a6G*#V?Vv|6aUKFNxP( zB>qU8?Z$@1qvQIY6+B7wmVN9uei8?*U@7@ky8x5~X-uW5zLSMbC-X@ypDZ zbZwvQ1fiel-t8Unj?;v8Y&?*{Q%g__rgbcUU^Qb7iKVX&U31!*%9!a4W+FxP;t0aC zqS%<+TgR-u7e`&`yV7gSQKeDynMQ)4IB-dliE;7lnIAmX6HYY3W=zHs zrbocU0uv2@3!{iq>ZxOFU(dzSGCBPwbp@pCF{8W?CGDQU-nLSw7xH+UOK@|7A*Ivp zL_L`4ZAqdI8_**1rX$}T$s$wd!kCdceijROOejrZYk-MLH4oC*+HS0rf;xWO6HPmd z*fDrbkIi3rYX~DcMGG=NPdg@OOkqibSj=4cG|^)}7gS9nsvvKoCi7@yFrQT`Jfz-| z;v`+16M87V=B^)}9lO(pvY=cP<5%#O@PTX2#%Z4dVhxHOhb|p1{5~C?iV|s@o}xbq z3Q7gJhp{wZ@jQFzJv6;KI9>f=Ji5y7bQ6`V z*!}`tH_m8_t5TSFu;!}Qo`-c|i1p1P6?c3VKhQsCqS;9{ofJ48)0`|HLESc+MW`Gn z{uN)w#`W*G+Hf`DdL9?tWa1|?ZZiH9yUmIo=abH33*_JE1m3%@{Tfa*+F5U1*H&+R z8tJaD*IQr1{VTXe@2aZdcCev@2Jsk zB+S1t-mff30Kb{Oc9$#P~+%x>RI9wU;bt|cpM@2)gd_39UN|$3leY^u&)8px1=#QEe z^y@0kdV1fT#L%4%6xpua8tmrA>K&Csx;uA9FSF7JFTxqj)uMRjlA&sZX47%3HUd(( zFJzekYY(}kV-BoHy`2vB$zWq-3v!sfi_<jghMbPY7Sg3Py+vb?VImHT6;Rt{Tn=DDFZ1BL6f| z$?s7KuH)-GR&+t610B_sv`Fp7T1_l;L)d6Vha1aGwOB8BM$Y2*Xwjh`YrjD@0(oHO zu*EeYm4Qw{^IR%PG}P!4i}AfLqomp^2Kda7Y<9GptJ)=>&??^#P`OSdiNeAzFx;pv zkb!flm*7MiX})WH9Y-grOTYnQ;7E*^5Y@&K?w|sgYLq}n2Zd;#gU~}Z?R#$+CKe;> zxe>$!xzc^hL6uJv#gAgu^A=JjEm}Hi zs}Vux$w(YTEA;1u@HnIr%UO{-{d%&JH8e*0S;K2GKIJ*t7f*sJM#j%*J4YRlWYLf&pAb2l4DBpD)lu(7i)VGN}O^Q5Z z10j%%ypn@i5Kys9ape|EaN2Z+Sq+qCg)v;}7oeY%oQ0yxW1w>Bn+o=C4F($a?`_gW zc)Dr-V&$=5|JL9kV__K2M05ar_fG)+m!avSRfH{v2eRKb`MU=Rp^KgJ*c&kxYYk<~u_B)RX}8wF&;eO&Jf zsuJC4TRXqUUL9Xyvv-X|2Fm2bzJa>%W}ycCVL}O ziRN#&O}7)whpwJvQ_D0dLP-*qV`Qd~i2Hd^p~VH1=}6>@8iIvb4yspf()eNk6MdH8 z^Jh_p+FNuv{+@6zN{5=y z{&0Z?Iw@SEj8#SW&#|aV_0Sumqkf9!XS2{*JZ(`J6;A_j9{cpYbj3^_2wX9fM-6wQ zI;=Somj{$L-A#D#X;^P_mQq3{0g4DS8*nEk@Vh|vR~}1Z_D;;bMDd-PaqMW>Y0yllmA&rM$X*gaUE|`1m+}1P1~4x6!x-nenvIdsx);?Y4nI|+LHvS# z2ay*9ZAIsp!9q<&OxR2Kpu_^@=yfeUn*JP=DTuk&rEX^%7ahP}wLK5M-*UtZcE1}I z9B^`CO0m*SHhFMkYa9_@Htv?P@UYC`KAJu1KQwycb#n!04av&8k>FIK6LquXIZQ9T za5+9+#|-dC*n8}$9|{uuY8R)yA}!Q7`|zXv|8V!N002hIUHNfvL{Lp#A$T<$MOs#ftf(g6~7S<)?oTKSDF{bv{x1d#gKjgm3Q*BoL@7(egucaf8^_ zCGwMv@|BT1n3}1$gw(5_V5h;_)YGgePNP&{6?}VkSjRoeu$4tGIaUH8R+3sD_5A}@ z8LEiEcM zIBS`YjKb94sD7(?u5f0@$PwdsnN2MpGZF-(I#PldyP!5yv&LrUEf^U!PXv?CY)h$$ zmPdB-@f#u`T{;3y=s~6^*&>Aa+v{ccWG2r_a1bRLv=5kbI6m+G-?%q(J>e^dD4h*A-gg1RqjwO66iE$h5^UOhglPEn`L~rA7Pb zYzYGRLn~*fZ`dWFgF0RSNHS&R7KzV@u$zl6GazRAruv1o2{#<80 z)CYNMFdV}A1bkK;V)?Ex^3r~Xl1;WuEUvZ(=OkUge0G=?rM5ho(dK=^On61QEfOsk zebx5T>9+M0F@9<~;NT%O#-gD@ZqN%6;4XX@i&BoI+wmpb*}U}feEdx~bA zU(s~}JE*ywm4*}@=*Lv5;p28N2DNdO9s4C_b%AWomCX1+!tThWFkx_bBNLdsNF=fg z7N~4gkr1#`=&{h(JgqmWuiqgfj=C9z#Y3y?9XLfxdkA22dRzZUBx9;v+N$gsv_d5L zU16z1=(DJ4lFwg7$n!IoiA6gOL5?Jsv>XzDH;;0;>uuj>C)z8%l`?WG zFjrepnK*eHHjon_tms?~6h34lK-DxxhR~j=aFJ99SEd11M;7m5CDIiuwt(w*h(3s( zjb0`js)OoVn`kY933^9_0rxgWvXoROweWQXkf(0<~0F zgFd2h%4%fi$sTA$PWJGygx&1C;5K@agpu?fmH5dguP6R__rXiAH(|AKfaIk@_ z0Vx9cLEHcN97Z44d${OSEdJ+k@>pbBJdr;&@{8E%JhIat%qM=!mtZ;&J)8+UEcgS< zU&QjebopZo2*1InjtLK41n(|l*UcuwwyW3)oI4;VmPMAZo-dnW$Bw;Nm3GucmhwfD zevztz{D*&9+e@|rLQf9kevB?eW3L}0oe$W@65|j@J2g>L_HAodVKl%$C+!vf`P+}{ zDT6Vh_VN)tLwS!4Hmxrs*e3M;u#B-MeJiS8f#>NPkhq(P5E4-)79+8aiH{?(o{5h_ z>#k{nmX59P^})y%JhRd86;mHpo&*shSLO*>U?#+=1K5!(-_iv!G^&`4ygS9us^`x( zbL!kAhE3?o?YP$Ax)0Y)xaQ#6ipv`1aF)16{qO!O%@d2BU*dyqGmhKPY4tO~a*nUO0YY>AWepS5}GDr7QY&V}WGWG^1>p*|9vgQy% zY++Zl`d~zvszCXWBk;uD>KEQg$f5Z07kKRbu($b7&>WKTC?Ov^NVf7j2=UaMgigG` z+pE2szb*NAGynCi+kSD7Ot9ld{B)M`hz+V(sU67ESxU1?Za*)#Ji<$E*Rlq4nE!I! zz0|FeWrm$)DYH~=`XhEq1gVjIAr~gXtW$+gCIA*stGImqV!zAb#~EGtET$h^_@9Y20uJg@B(n=1P{6 z%%EB&JzH_GekGs9Uv?!V(Z+XBZFcdufXlP7HcuGV0EW&|&d)*;D+tn15jxMwgH$S? zl!;{UQji%`6Y}pWlI0PQO#C3iNSH`ni`pXDqI&+U2NT0Gu8lc7u3eJxEN09xqrt(8 z`HU6GN~!c!cR~^=2lHC5=G%WHpY?pZeV=Y$GamHzq-R^AeAx;__6sZ09F#=rhhUG0 zt5DZv`MRbR(CON`>w1po>$)jF|am#(KAmSj5A&4YIy?nIV{HRm4{W(*ySN*uBLt(QH=Y2tF(N ze`tFj_^7Hge|RP{NiNBR86bfmL4rht1}z#;V2C7;gdhYGA_)-*+A1AW+alZx+7g&} zGi@f9Tj_7L)voTAQd_&*wRUS+YAYrLli*+e)uON(EI+;DjT$v31BBf7`#k5)WI(&S zpZDE2pWM0Up8w}L&w0*sp7WgNtYKy1O*~q#wlHvN)MD#MBEr|@If%du>m{(?S9k|n z!awk3+^1h=5$Bi91C|zcY!K53j_LG)zTsXyV~H4V;m{pK6(BxuyPO_SfciZBI-uZ{KrA5uv>Vxm zVTDE_G2iLg#&@t;TjPWe1qCvx|7_Bya{qzxZ3}12#_AuNyWHRxvHXtV-5(h5+-lUh z6?c`3dsWuj<#4OP3E^y+U@`@1`Z^TLAEXt0W7{Uh+m%cj4xBGtUmwdOGck`Uqb^=c zzWFkMDzX{Xi{M>IeVyTJyj{g@G3O-)H-5zq4rDWKJ_{#5f75tsB4a7sZCl1RT3z%gCW4WDk#UZxWfJ5_@flB12 z)3tb0fzGIfz08c98B3@*iU_dBsqFyri*@IHEZD}JN*Sbghs8YxT>ca?XUOF@dTmTL zzKwwejI#Y>6@;AI5&0Q@M1A@5NBFd7KkRed38b_y*vS`Jm|MD%XW58gegg_$LWu=B zUwcWL#k>`of}K5z#EMRf2F7js+9Nh1h`dB^S)8nQI+oEe~X zDiISX-8MoH8M7l~^G3g8EQAqHtQ!A-xUrsq;t@dt@P)Evljt6}V*r2?*o`wC9!!uO zD+Mk=qC$g+_1XyKv2w@W!IL7C#jRJy6nd~HcVaKaA!*YIbOJeRVyy*tPZ^QGUVYaQ z&Z5v*%8WgfEF8L>$b<*oNMAaAX^+q^3^x+)(P^zG85y9Y%ay^^yoD6mLHCyS!T=}e zV1R7KYHOZdZM?RH+5jQV5v)X?1#d*AFOWw_z{eOvffgPP^i^fNC0MP!G^?0bsf9F?IOK_eU5rNbg$p(l;z0k5V|ez^ zdv8fDlF_Mg;i+Yi1DyqLzFaxkc%Sj08+mpm)4J;!Ae!;xd>R<^xtk_2EVLf(gdK7` zK|G5NV4;QQK0N>VLXl%Co=t7I%;8{>!`o5hxDwB`c)W*-99!{Zy;$V<9-b`3TY~hn zk!~fPAf7vst_|rNh#x?lIS9WK&x?2*IsE5L67Tr0%blE(laq>XX;e;HdX6V!wAVK# zXRL@YE+>;5Svli#awgZgX{8m&|+q!)4)AKvU65#g8=2M@v1$Nj}fed7yxcI55=(sY<`Xg!UB1M%nNrgXK4J(V0!>8)Q=V9A%-U3 z@4ZjHk}>^G%R^SWkp=DflsU(;*Ebk7mo9FQIc zZRRabtf5#GV7(g8*uC4#CC)uDR%IXuATsiWLXOycWwIav-xeY$HWSf_f7&$3fp`J{ zvQLr8Qy}0Y@C^fe*!ao7ed`DXLr=3a{s4qZ!}#VUX|fX1_;53}Ks%O0?uyTpB&z=f zm&J#AsZO@~?wT$>a7TIzUCDF^m@H+1F(H?eT(ra%t{%`J;d&YUIV~wOSUbU9 zJq?eMiFW&HQGkVw4^hA(go^?Y+b%%(Q31k51t0-JsQ{6d3&4erW~IpSB3F;9JSCo^ za8Z?W*^hF>w2OQwN8#csb0cF_wrMx6sOT+6Cp9=5cGA{kLr$O)pJZLo7|UcKn=Atc z?to{2jM!5oqk_9523A-UpmiF_@_&zV19u^=(aw@f^fK=|(T;WCUidQ-{&OB7p~t*6 zAXC&Ie=%y1qEZLScGQ`HT@>}3mqrCq4LnRyY1}LmQCa$-8t%O$@emS|p8+d`9NDW5NOf(S)8u$&xICXgps&lG{ z5ucL;iE8*;0=>X842ExGN9b5Ujc;rn6YW*c`N?)*%&<)ld~yAod;{Li2Hp-DgJ?{tQjvZ+;KZroM79&kI8jz*{bazB%=rhddhhR;d z7+x4!#gq#fJZ$Fl0i;`CPL1Y`DBTKh^-WYfEn$+(o6TeUi@|*hKUUTp&h3lOj>PBi-D0QD%RHIO<~aIIb0R^ zx=MRvZ70jrU!_Zb$@4OGMHlJYfm`Wy;&LIJe>{e{!MT%>D83)B&? z3LQBZsKrr1K8i}F%#DVmzzIf3Nc7h-a*$wSx`ZBB+IVUngOCfO zT0+kRTP0*gbEPN`^A(*8rZzBaP$3tTC(LEYL8vrchdnf^r@P9yEg?5i0OUqcKeV$V zYY~(c8Jxn_A&SE_Fa433glZfX=!wClZ3Xuff_WEY2FHf1HOj~YF6UCA{EH*AV_JOT19ituFBBFlLFcGgpYfO( zvC?3Eh0Ne$3y2QaZe)mneHm(Tl5#1$mKJg6v6rxko4_po8DkUsoPiY>Zai|&CNW6& zmXk*Yt)QT9N7n&R4C9|~!o*3%ZBAbx(-A=Y#0|;3evwEcSIj!oHoOx=vl4Y&8kh--ycwf zdcJyY#nx#74^`0a?)}$|)VwR1qM;7JCtO-WA8ax(i(E~G1bPaEX;ccP22ya-`4x9y zY87@`s5ya5eEN}^N{fx!lDRzelyBbj%K zF_J?D1{&lf$kQRi&J2sAy`dkY5ulPfg;p8USR#sHFNh8Je%^S0ghCsx(>RYx<07~` zW{WwNk{L^VH`HsHSM7uN2F7JLS!^{bO3)waMOLt9EXWkr2KugK@)A4Qok`aL{TMrO z@0XC6-)f8Z&)^O!c~)Q!^$Bq>+pgtW1m?j*4^bYK#-Sq7Nh}qaBy@#wffRvBC`i)o z1!+Xa05R7dxg;io!6Mw=^fds48xh6v^DF`v7Oh~!_s`<2fobM7frV5F%+|)I!q;vV zM|>zAF;K+Ope*&hxF2Cej5c}pQ1(P)$09T8atsw#b`*BPFvw^RKSX$j^;uF&X@9V> zf0R5Lzqzu6-#od(yp7V5q9om}0=-rmj#19pUmD$(1KxwVn%g02E|u7{ysfQi9z|iD zNw>qBAx`^*6|e)Cmrw^XEkOi3vW|u#r6&>^N3L1G@~+THz`g`cH4gndIx=(`pX&4U zn+AKcOzAX^1M?SeGp^$pM-pus*ar@{%0n6_98scF-*u8*{dFh;QxykR8ee;cG5|K8 z;6muv5idliic}d_#tV6Z2)%8`kWLxt`1T&iBBOcXM?^I#hb0*QWPwe6p1ziPL+=s} z@PYHu-q2t0p)=-(Lp=yL-i95#aOfhtuQChtTAb#hi2?Y~W^puXk;-xF{xm8j{I z+STnpx+RBg@8iNU9wDpuIIw$HX^el1fg|klbL1*x@mB=aamjZ5lyp%yAK1v`2o}~> zJSXGeU%B`OXQ25$5Ew4k23_qw&YmxziTnc^6`9LzCOBNBKnF4*iB6ud2a}M*{JQAV zg$fpg@tbe5P6lCiMcig!m-7yH5$w4vRiI&c1gyYl`4t15awbDQ zPvc8mb-){Wk=lJ^UU+Gj279KfRGGPpWYLj~5ro}df5F@2NPru?Mj$oxY#Y__aV+jdX zP73Q31cAP(G%aq{J>q)*P;g)APU z8q+3#au-{Gtk*JVzg|59dtGvsP*&3xL*)x}2&!T;b#5G_nS5HhDrdDpbCg&ZLFi6% z4dqBecXBhF?D0qN;WEa@${=k7FK))8L}X6}n&0IdV=UJQ`O&zfJSabMQ{LJmh(14m`D(@I5+CTt(@bkSeewW#j!Hy6B^k~GCrHm4S|tuojP!&@laWa zmtY%JpPH!6X|E=!0(NjxLEDD-OhKJZU9T2#{y=(e9o20K&@JCqz^8SmEn>w?HvM{v zjF}jh=#teq^m(br#Vim)v--Jz6VVVlN;S-9PvRxN-C=SDe+iz7`#ZMSwdKpeZ?V|* zs$qgHI4|JkT5J_y9@TJ^5PaG#;>*?7H0%Z-HW!OnJVcH4SKF;Z{e`64_^I#;?8az` zk7Oc~RmR6BsNy~vm=qbSoGYlWc*xqYOO0#*RV-*@8zvBCiSfmn+JX;?>GcA8aN7Wx zz2&(U3NMTzyD+Rx@V4+5gx;p^f!zp*DZoXzuSr~i=IXrCS#A6u7OMzxBZrO)WSAeqyW_P_9xT1&mD6DKSOagCK(YSJP0$5u#wLjdX}2b%D>s( z5K&N#rxa~5kR`2%OA_2!xY&~r^jonm4E!RYfR-;QKq(45g(%{5>^DRNkxh6pE%3Egx#(OpjvpY@wh^bPOa` zW^R@7$T7kM+;T}|B8*cxc6D-HoY?kH!{!)o4oy8Veh z=`V5gLGBGUQ-&|IpPm4%A($oowoU2 zDSTfadC}RI-=H6jC4b?u0~Dr+#0-;Tgv@}d(;5Y%%Aed%;w$JBi(>>>E^QQu%;GDt zw?Vs0IP^;6pJS7KEZXXkOj%=}rVl8)_VY;aEnZofG=+R#CHNG>Ip-)zi6FAcm0R{#kPdwh{9)fM*NwnA@ zZ$VWt=9|vYd?51uq5xy17_|Qj0*uI3;-7gFNR8gEEJvj}ovfxw$7?{%q3Db4*!zh& zpq+Sf5WbkO7qXo_$Fq8b+5_w*6CmWt5k|x_k+D=p90qD{9=a2Gz~11mFg{A7BS%#r zB7_h$P5DX;eZXqRPo4Er=S)1#onwr76{mw+++g#u_yFG}Zg|pJ(g(rIr@y3VIFr*C zx4)K(YC+5f3)dG>cEIsQ%=YtiF-%BC@;45li%OebqYS{t^}uiu%c=P04LADatS~nW zO?ksV#qMLQIQxo~SvraR%6?!cJuOZji_3C)F(;gc5<3T?Vs!qAC8B2`Rzj-X2N)Ju z7F8K@Mru#c*h_N?N^5+DG6p*JR2s*)(rzR2q)3*yWTA5sUjmc25!HqXDl5;lI}W;^ zWT`Mdn;pUKZUfe(#veqIuL-`6ECSfZ0bzsKpyLxbY5{uzq~349hdIJ3!2sMoIo7=# zkVE3$D&xn(S488W_6$ev~%N@EsN9AD&Tl;r++5+$C5@|6His=@OVsU;q%G9i*>{LQZBqZH}kc%=MzqzTCB zC2TVxr@@nx+KNEb+4ObbXYt6xS28rv92}@Op13SBjp)EL@yJKxk&`12U>XeUj|c6G z2T}Ex*)32uF476lEiG}h*F zCxh(rt`IolA0MU!ESY4h0yd{kTy&N305iN`)`z;#2h_}no@%@ZScXbP8=k z2}Dz{=Y$zga(YAm0^kBKV74I#4ZbF!mlF(V4-rm{=V`zf2~!@hI8lXl%!51I*ApNoCgfX_wvizy`X~jbMaZyM&`WlACd0}Ic500ySpA^IfZ*S0OXgqEmRnw? z@_mu#x%DWcSCj_K@0&y!fcK3-33m-GKm!Ft5tGU?W?scLrHLLlJM2h;9&c%HYk5u* zozL!Vxg`gmRO9_Hy)P6m&(Pv30j9I59tU6IdYJPP8IOGG84@Y5(chg>vG%rnN1 zpTJZ%^$_@-f8+tkiR3$DR+Dc|Kov2M6Z|2se30hx2oG-T*fLQPoE8}&c|{B~Ga*G5 zrGWfeq%dRMMqM~5@C$A@H!PO*4@E>{;BnNisl&4DZD>+a+K=dBUCWo2fqlVIT0)~9 z8u-Ay9<5xe5=#l(6mNJ~o=9SbS=f9%jns^u%X7JR;hhyXuz}cKyYl-3J+YW~X2*aX zIn@CXrLOSW69WNgpydPug5Ay7pztpcL`bA zURvH^81p%67^uPCuF;iDi%60+VWTZ3K*9bpmQaw8^x4`1H(*1AgeQ|k11m8oK`7Yk zDJCfdE(j+2!da9Z>)bl*t_k{)aA! zL|G5DQ%uQN;0Jnb{yl!aML*f_j?4mW7C2RD{J_qix;WQ`Gh00{A06MyFuH%r6DZA{ zN~!Ty8#1Nyj)~lF3}cR!D^?oXarA`5^UUCDGUCjCKlFq1vvV&)7IGsiB?g*5eh zD2%5RtTLWM3QRra+{S()k$F6epzlfP;+ZTPVS#2suYG@WyHhbDm5q=vz{5t(x@FC0#t(ZW4fP)s9n{VZ%t`NUWjn5Qfo)7{(15`r{EAtv5 zeK1zr#}~GaV`>sRmYinzMCVdM*6IHG7#q3ygu-9ObFuoZ$-N?Y>N|`!99Rx+gQq>r z>c0^YF}5J8A(J0L^j+ka_-RNDxS{FHnNR15l4$334aoryc@x3##=R$iyk(L%QH>}M zVH&ScxTien&s-D8j%9a~UAq;@MwOAqEhE*SSZrupnb*K12v!|fPWzJRwv4kF6-**$-SH0FfvVUlAw@zQFbFEa9yS+QVtA{%)pP}bzd4Ra=d}(T|6J*Igcj= zRT+!tN<89xFQj)Y^^Iw#LB~jFr)_}hge~{E7OE2*uAaY6xe5^~jT?Bpk**PjrxT1J zh}+xt7^FkJyfHguK9valn0=l-RBiD2O^rj;z@2%vLtcx1nC<<+Z{SJg?fcQ93w*To zCcF@bARy0ygPJcdCkNUtf6d&{l}tBqJPP)tE1AV)h}o4Kgbjl>BsJ^p@a9-J(kF)B zY=?jUOTvec{z^N%B^Hk4cKRZ#$YHl93e)641nit)JG{-E_yko&o2H{kU<%sQEZVe* z+Z3fXd7FvklBIJ*@-`o}KhQRB^IQ0cMDWv3pMuojuC@LN2+$wFWzUq?EqIQp{WI@R1@$!cm0z6%k&5mX@#XDOZrJpFhsw-9@|ox7NIyO{aAgzFN8Jt`>QMyY1D88%4E zNg#~np^sK~B<92DX-#SY^Gj+?U$~2nx-w3V;zJADhgf(-x%uTnH>WQKI@K(*g6fUBkUXU_5(SKQz5d zW0Ph^u0E|Cg@f#Li7S^W`|CxM1V*4$&_5&r0DuJ@Z!cx295^^!IYiT9&m8DK4i8fb$JD`v7?36I3I z7~x-*mJn1lYcvF?+?7TIs`}s^QN1LnDJ51x?J4qxKE_cEG+L+y(OF}N6WILbi0w>F zb_5380Y$msw29I55@X>Sz6{P^@*8{Cv#j`7bX0Q zUs-2QW2onsqK!NQb^T%pbuBQnpD}YkiZt)}(s%%yT!wKIAO3w`9R5vbXpZ}0mBjGp zBFwcW04P+uSieM}$doK}n+ z^bt9LnG=wMUYi^kL=JjMTn@Q;0{bQCVNMNL4kCfrhUlXnvHM3Dt;6EKsqt(O-aB(` zhwR7A5_4xSm-k^}JaHkShUkq8ZD!d3@2yuC+y z49z4`GlJ>9+QH=UujC8Ut$OJkGVFd;UzD=~H%c%&J$BVmt!n8ll+OoZoRW!$CkjC?=^F~NwL z#X*O}$VRCFa3qGh4#t2Jixc_vmt|m#OeY{?0yd04y%0-61^&O!*Sz(A5{twKYx;jD z8C_s2HM)6*DVN<>-QzyRbQe}=))1u=F@b?hNFXVlxCMsCe=fi>1B(~TmMidrULAg& z%C~@p{$x6GwPQx&Nhi=Y_1v|zYeiv1Ej+u)RxUJvBwW)Rsl~!3a2J9S4r#46l2Uk0 zg9Shq`=d^5c7syT7Fl8mP~Apy?}1GF-c_Fa`uFYv3yYDo0A{;*ml8*w?iI^I@XF|5 zhd1N}xYfcuqy~!bL+=FWbSqP|D&q>?hk*Ta@*?H(QNm--v+#hRXfM6*M_VZZUl{?C z(9iJ13@*HB{ByXOY3GA;3&&WpgjGWCrCGtm0%g_dOnWX3b%`U{9`Yps(Ayl#8DV9n z#j*hg5dgR>awI|;L;ybC18!JmS0)Omal~ABW5I)8z`(J85q=`C5cZKeIc-H_=H#wh z;0=9){1dt_mTAct+RMcC7?c^!F78%Q6`=%8=PWPjyvSI}=u#6PShD*$YwtrRP=~+U z8@sUeh()dqMVu`Bp76L7gny?u&i)s@QNr>x^v2msv-&%|(ernDXxsG1KX z!e=i5Y@TnS!I(v7QtC!U?Dsy4Vy700}G}xtIHr z^*VSRY=^UjL{_7SGq}Xq5VOGSPaF@>!%5~z;vI2!R^sG?Ol!66d6L?3FR%dZ@o9q{#$|suhIcs=$hwF&iXB8ZT!1LEwJ~YXORy>4g)0)r9SAaf} z;SVB{77Be;f50*`^aqAbNq^v?>CztgobB$Rm$DCbCE9)H=mSMTfZ>R+b}JjE2`} z@baVXTQcJLcDl_E>*?rvO|7L!#x1~itxv}>Q%muXhYRBfZ!KD5{E5dxw$`q z8z}Rra%zpS2n4vUrlAN$W)`%C%cO7$Im2b1aGBe((g6na}Pi@52*#{}_WAJ^6@;;2b+i}v&+_fi2P;ST! zwbd)B`)QqFruaJ>Q?<^$6w-i=hSnKq)!qP11%=w`l&KBwn($l-Gw!=2Kx(+ccnLzn zx`M;|Hxb3mq9kGW7_}`IwJs#%Sld4+IQGXN1s>EsZI33a?@iI%p*!x!K7zYXjao7k z1{Ie&%2L~N7dM^jLCozZ>N||>nAC%Xgdwz0`4^PiL4dQCx$hsXjcF~(bGIZ}PVc_9 zjwBQdaU3{U{pVup-b;bnSjfcbMvke!v~0YcRu7A6mJ!6MXP4+KOKh=cXR zVn83+^#Fw+)Wk|=C$1C~VpIz&z`pxIt9pXD4p0H?|3L}jC)rdNtrIz-8E)e*3rUxt zPR2fazaK#z=y9~EsrMD+tmDABm6eSOP--hH6RwR~=?5GA$z$)qQ1au$z=w}MuEWQB z_!vzeQ}OXGKGNtT6CXYJkmw_Ij{`5WR1eKTb&;tLnNq(@BJhmes5ZU^>#MAXl-%H4 zYvQzl=>pSIQ>!aIFHjaw;%~!V%B8;2`yT)$e$LZRlzs;2=TrK@VforZj4`P69?HQE zDmH}=#|MT@(9y+in;d2ea$6K5x5)s2Xy&$tmtMXqQK2pvd59qLctCu@zT5TqW;Eok$<4GsGZ_2uhG zii}KZfqsyU__RhzYuAptI{m|2C4bcW;Qbh`gIzrCGutCc>boxWoV0o7XHUX5-^tM! zAYIQ52 z^BX+B!1Fkshw<#fqm}&dY`Em1vv?bL8+iBP-HUf0-hFt(Qtm_jct`P$;yr}-knYy0 zYh8V=Xbch-HMkGY5FVcwd6!D{8xD8urq(99Mayj;)bSE%02Hyfx_teRzJ30X4gb6m z_-9=F?8zaNyUB-Atid+{Ep z;hBSHA)XREEAZTk=Notc=N!N}2k&gWv+>TvI}>jo-afoNczf`c@Rsm)6nNjlsCI+Ql8)Dt5-RfQxC&@r)W&TNX1`&#-5IoW?pZ+^FSDCE@6 zXp&asuIzXPJQZz|mC!t1Q;Q|%_B>zuUon*B8-C5RaeC|M1zu%!+0t@(a_i{U3GYK9h%yJ>#^c&Jei=QYSYJ+$?DQKD zVFjKNJPYy6!7~d_9-bULz~lb~dc=^hsKG%zyYT#s@{ZyC|8Mljk%dwOJ$fed@6sa) zLFfmHygM82d3f%?6Qd(vphpz*e@2fu&saY3QTt!fBRlVBQU0It9K!Poo)dUZ<2j3G z5D)t0e}NuRVVdQ`Z#JG8covdRtY7}W&?B1{p_jhcTGwH(2KBr0puhpnQ>xZZl5FhO z7#}Z>YfW1`?@jq=GmeGXto?`SCu_Bi_P_aR(obq>FVIR6?7(2b%b4fRsh?Q1Xneh( z6P!K9F4m1o&egnpJWemCA~n5-K_65O)o)k_7EoI}H1DK*Bi5B4&pRz&13u?{tP|js z1+UZaN`co2^T+iYM2!~@BVC8S_@a0X(Tm6|jHQ83bAZuNV5?eEqs87`|AK43H}V+X+Ir~)qQwnP|2y@KSI?hImVI}m*HjxT&s!F_=QK8T+3H?9trL{ht#z1p z!>9+yG#VWRq3#|ixy2cjy}`TFpd8gwDz&U11vzx^?op1G^^(>Jj#{r6YH$&mmMUwl zxl}P@`He)Yb3x>u_ID~N-hEK^%)swO@4kv5z&yQuL;boK@kakt*MK5tr?{){fN8Oxw7CGIP-M}eepXS5mQ1*zVvSVdLU)RI%Mz+B2*8a;Zh~! znCYVOrNJ|<@(^;2AtQ_?CLo5r$tF zp9ll=8pk0hb0jDmL74#Rq)UJ*K#B^ldSE5YcAezF7+lSxZ!%m@0j{5D-2~SkF(^iW zI+}qh}n)dQ)6Zw;PQ-*RlY99oda)Kqf=P#e(z-$*SpQA_I7oLE@) zNLUWSVrT(|2W#^fTKH_Vpz3E+vk~e$dTI3uEpiwwvg2rxX`_YDMvGNStlI19H^ecd zn#!`#kr9r|C1m)7y4tK{bo5bAAf|K~Iuh7232Z(a7d3{ES+3Ik?ttW{6|I zQ223RO$esLSUQ)L;hi0oNJf$vevHYG8L1>gB1wsd9s}n?NYzcqW@^>fEowm#D&1|F z3(%A~HO3^=uttj-lR*}!246$wND^vmOh$Yd7bpW;C#P2$$ApWr8|~faEDn!0A;x(h8Q0OOcYI6g(uKIe z3sIFfgV%tXfpo6#@Ha}zCk3a>K5MQFI)(Z}K7>X?;sCLhyJy=~@Nyf_DrJeu`1$B1 znOg2P?nd27it;wdI7=kByGSgN<)2#wk;1k`HO6iTm}uEQr@n)h-PaOwpk(P0>2rNf*=!i3nwTrI`^LP+SepdbN|{CP*rBu##s$RFPsI(frX^ zyc+WX_qs?BJ&T1Z(!x_R4t+$P_rNnIHSva$K>rIYb-2g-gX3rzMSB>lUhQOE=#;nl zAK_&;Ue1lih*&$0=@?W(^iz2(Jw2@OB&#tQ07?12wyJ{nsv&jsdQl?&-4MImGIJtle z<)lnj3#m6DL#r_k0J#BAZzv6UMeab;wXO)6Xh45>Lu1J?+_TLa8rUicKy#Bwo5_Cc%ph*#d&*4Yfx8^f=JG z`&{ikZX0IEwAT144mQV$nGqdJPf#VGg zVT0EOkhl3`eAF0^71%&>qfGN=*cbpzru{dd2753*2569=H6jn?AdZ34T+YJ*S&XVN zegsI>)pyhw)8L@tK(wH~W1uXfNcPhBpM$i6C+q4bwP8N2@4)O2LQ-&wXdf0+XI#N^ zNy<$de=Rv-{i;mTZq7$9@0ea&NoiLhEqcV?1xtn?G(mZE-bJE$sp?8kuKF^lkECwI z>AaK;81w5ouyDj+fB+8TreL7pRDm_0MW8z>_K=WMb3cReIS(g<2ijG6Hi&@Fsdy_5 z9D>EU5vxv~yu`eMd>zWTf%YVMG)&^#K}u43w9L<$ZT~$d)H>uOk}a?6s9u9rB`COR zTN?Lz_oX&K7WgLU8<;No6l>#FcQIRKl3h#9W8Qr?EmeoF)jk5ihVvCSeHWaH<>7(& z)_7E8kZyBrn{eX->Yt&z|53la3^xtkwA6fEy?CwGp(G8Sgp_-o5J!?S21s0CGlajO zAllrM5XjcbccZ^1&7a$Y54p}b!#%20icm;i%fNE^LZ{@LtBw3#WS~V^=>An$c)+K> zt8VKAEhV^cUZLWxt%m6n(KDz|vI?R6aVXdin5r2}^WZX{UVluSkkT+tOPQ2Sj#52Y%i0 zLTJ5=p$No2Y<>E4@!*@QT1!0_KYe=Xyi~sB4&5{aIn+pfAUUY5u4x@Zf&gsB+|zoW z6Z2`Sgm&^fq9?NngY?lydLFH zYq1MVeRk_ch{WL`zhnLm$i8kv>%oYM@vASj@X?`l(J!y>t08Ut+jQ+sk~j_)w0-*Y z;G3?OwP8^A&wkljW)&P>u+-Y-mfg#iL1DWc>XvU~BV;HrT5AgCr;G18z5P-lY4I&y^1_*%-uLD?M z1F;PRHug#&KrDy78YqOIUaSUw4O8}Cx*Pxjp_#tdgJDV?cS_slo4>)0eg8&Rc!Rsa zSzTjX!4^t9{tj#sZeOR>dNvLo#IYPHf2mt+;HGM;Fbn0sIdISwULTcbYHw(7x1Uc| z|29R-e1x_t21?#?2cgV!)PH2lRlx;mipwgEE;c_II2csMUcv%J+6i>ni^s-MX_O6N z4lMOJz0G?Fl(j%yMVh)M8u>r?%x`xcBt5H6u`QzK@U}?%doIm2P?CZI8|Vz7rS#h- zCp>xcGVcPar(yNWz zW(yt$3|KmxbsGoEJd(3kzRM=wkO+oHYb&#tg{<&O_YPleWwp`5CsDB9>oE(|3t-r^ z4((+E;F;LIlJ4%t@qyek#g2g@cdnd4K&&>h7?)5vskK6Ck<3h(GAWfdP?mG!Ss^%Cqwkkjz({WIR!33}KI2w<+18gh)EBC|U6 z?jeV4qlHVh6e#QNoIWX*KI+w{aQdhf8P7?f zl@UvdGsF=mr&}gp8@v#ZrvxwDD~}0Y0HYmAb~r{g4n@x3jYjw)Cxs(7@;V&Bn{QMy zgFBpal+k5n!HSDP^h0DH#kl(r)KN$frQUtQ;oa9UP*Myz)I>U10!A0ms>G2shokjM z42v?PN(^|KGC1Ukd<$=aYxEo5hvuQ{)#%+`{l_%Iqieknk(Q{p`C;-mmI%rYkZ;0s zuWER_p)0X!-8fh}G+RwwJgjg@3At`A=uaRv;RfWcK%WWL{3+D0*g9k~Ec5ouiO&p!+G*l=UN zSAP{D&}Rc|9g!4DI#M4|Fx5l$8{1HmNoV>hkyEuOz(MNM91EJkmeQuSK{*PJs8${gS3Ii~VJz(@#L!Eh z#abaNn6wy6<017>X488?=4W$i*x9aV%D&g9X|9*eG3Bp{)4DGIAKZaM?P z5y_$!8TWXbk01-xNcJ{A0S6%1OfR{LMrd;n;9d^DXE+Xq?7L_IE}6Rq-{!*n_M_3r ztMCz+!SI0MsXz&sNyLdj7pDIF_Q+G5ED8!lsWJ8(1EoVjbPK4bL%zMW^p(!i4`#b@ zf#GRX3w)SqF12G&8hODe+_g8Cd#oH?hoIa#dDKRze{Kv*W-{Jk*m3VhDUL`XH4GSs z+|%$qPEJP7LeJn^1Y{@xn<@Cho61()>fL9-az!1D@$(L2 zFn10z`!m0k&;)EvX-|6TS&Dlai1~XuR#6(YDxko=lTAF{I-R-+>NEo-okiPDnA^ zh@xji?D~HFeru!VT7rE3T)D&;Bo+aKX~zw8BoG<1zd;-zQfpnS z(6%FHmR%J~=_BToh!2%pI^>oUYe|^TWgdYxxTPF1R+8<)yN^I@r+CDiirF-DAj*6S z7Jr93#?LHvymw8p!!@JWu?o-k@jQg53(q=)VRpueyqH!HmKQ=P$V{iY8uK9-sw24` z2ELN4N;uzX;nGuHV~fh~mF z)V5xtvISx#l8`^ zkwVdssw!Gx?`psbTWf?^18b4+`k~g;g?GwVEZi)67h+bt3SIg~C&rmca@g0Lru4^A z)XT3WH8^i;UFuxAphFlT@*fv`x%WVu8ohPrX88`)$d^l1W1@VcYK)e1%DtiApg-oX zAM%EXg5p3eGQvH5x#oYc=MNJ-edf;x+KZG%^>C5-C=f{1{}0X3cr3C_kL4w{Y?8 zTe5?9pm@pZEJ{w(yqLHndTzF_KmF-j)8Wkd>vMS zN;+ye2epLAuQBF30)V9x&@oZ$QMODj^Ct!lKi}46G@|#Jzof2H>E;79&0#AceGTrzM zE>SPIw*RBW6}PfxArlfqsfS8vXpl;u_qU1%^2XY*g5@l_YDDJEQrK;4W0GqHeGkoj zmaSh`Y0M$6lLXPq3K$(j`B&JY^s%-meIF)C5n)kHgA~*ABk4IyiSuH@%SjNUK_`?t zW}>NqzBD*$jfM}IVA!gmW-n0h^P1WQSAkV;3k*vV1cqN7D1zQ-Mx~L8)8;HEbV72M zxqSl1vF1Eu_+kB(KkC%HXB;s(;h!mgv8ZaG<%*TH5Y^k*G_T?|97HHz2-YgY)!tfu zMa$^cqDd`fPF}a{pM_J$M)rR~XcP)yz*JXu@%v#QqLo#S9Do2a(XgzcStqbf1d@2L8HK-b7m2e`#)D)c3b&4?W3Hrq*xO3s1+ogry-RYi{ z+u|&qH&OXeN)sus8`RUSA%o!Y`nu6gxk2h7r(^dt?k%D!MZ27hmz`^76^xE&)c0}>4AYl zMB1FHwq=?Iip6MxoB|>wA>1kU)oR0P=TQCwp7xKu+Uxfmc7qAicR5Q?Gc0wr(aS(K za0JvFdJh3w=Jk5c^>iSm28SJSMzenahbz{5lpXEoagXo$MO$4Bi*D1FyZy^0Wrcb^ zcgvN3LJfo3OUF%pMUs2)_|)6?mkf_ma57GsI?+B&xj3y0fa4a7rdWZ_sXh2eknlJeI_)xV)y{oWAadOleF_0jeV?uJEJ z@GYHXwG_^PwdC4 z!vB`Hxe0~PIltSFx^>S{h%gWdzgLH`@zHBQ;o5)$z#32Ue+eq#*GakQp0Af*RmMr z-NE*rB(0kx=6CBW#`IR{<(XBL#yuy9n}p7>$I75l;!mbFZFQ^Pk}`R?@Q^}`a3M8s zFNHFPzyl>Sp^WMp-5rEr>OqR!IHZ?PP|x5bU|;(=_cHZdZsTb6HS73CEUHoZVF|Xq z2SUSwf#U|G(PX5OhOTzf|4w+lv}GcOh~}SG5uG-i{yOZQcVzn44 zyoJv?ZMhEym6qU6GK3jCXKK54Q=e(ucbCNKdy^)-HkC|U z6P>2?lc-WJFG+txQ~H$&+K-wM-zptKAdUfO!_(%c|5c9Q0FL%jfpr;y>DN{u-`A83 zyO@St6tW?7czg2EGfT}uESa=h&$+d6IaEiHo*u7F6UbF*brrtm3ZO#Ch(r$74 zZ;_NcRV%kKUkrfPkDDME`u2ICIN|lZ({67m3F8^|D)VSJx}tY#x_Q06Dn@(kxcV+e zPY|hz!(JqVMIsS-xtm9pgRo8CBcxINgI?r4FJl1|5Kg4%1xKOW_eJ5ire+gnP^uO>vy z&{y_w1jPIvkwyK_Tw8eCRA|&qIPC;hAU&KGUNL5fXl7JX`dml#l}_@yVF>-BjSd~w zA8>|m1|Kw;kX@lW8vH!Al~jAaflpY{7rS{Nh#`F zTjFd4?X3H|U|CE|O+1m=sVQFIP%-8(38P3P(C0K+Sv2SQyTWBY`71DY<;W$1f(Z+( z<61k!qmcSZybv1s;IbyDDCLlwjsw{%lEOu}a7elZ;JMJ?ZhznFdH`mMF}DVY!r65pwgn@a zuNcsO;@AWp{`|Iu`cj`-9<|h#UI_3ly=4fmuA-qnya2+Mp^qVvD|dGV4S0}eGG(im z_xWGi+69uUuks|5kp`TcLbPzPq~GERmrLPdw|dtAH_iC@s1;`XJkZ52#CV+PNy4O$4LR)MVfJ6;)^^e$ z!yae;Yt9OB&h>{R5!4!SP?xmW2ct{+k@W<55L1S97{c)bst0;ON?3)e|u5ZgL; zc)5gMf1RY<-nt^y4QkO+F^=ZaRQHyt!Nzg%xs-_q=2E?6cZq=V>n0{!MDQh&44y}u zx#sYWO?f^#H;Tboas!4?c!iUO;Tn%#<_s^!afchCk);4441q1d%d3-pFt9f>ku%2V z@*(~90t`|gI4UA^@BpnNmZ~1Y6m&(1+N})PM34gjA^$2#!7?JwYrO_$N=}JEe)I^h zwK4{I9h3)D?h9aF@1d>GZD2bX^4q|LfL-yql%cTVyQI_+YWFd){VJ=4o&PMV%P^7^~H_ z)?bJP`YrtTQ{MhQ1(!mT3zir6(pxQ@!(Taj>1}3(Q}&PpTT|h=ahTHjxExM5)YZ(xOL zjiI;2YO~De>hMRmObR|kay;k+Na573rS3j_G<8v>&C^;ZuJa-4g>+UH@oY`QR9E@( z!)&Bx0euhF!?6>9+=?Xg=T<^*347UP?!Dx)v&hA_HX2GtxRf-7xYTlYYziRi3?;S< z?hsyuvQ&$pP^<3n0lqX@GQ)7dm+Nr+$9+$|4Z^s=0{I?mFu;>=STztAr{EH|I^L6w9kl*YlsN7?u}6I?#pivkIp|>kKH}J zM3Q(EwZ8DGRp#L1U4!11OykKnn zFK@pBx)NKns=+4PHydJ(Q)nTu!L4@LIq-zV={9!@E(oesD}DNoY%sNc?4S&7DbP~= z9or{TW|`HMq}tX1fPm#jcGHnpQz={GLYDr<=;mW0mmB?zTyj=q31A)OkC{`ji5r=L z#5~d{V2PA*wy}?$FF8?U2fAJU7)`>o-XrGpN*vjY+U!NAH$=y4F!~jo^L+vr-q1O5RQ#Cs@{ZX$ z#_gJ+U`s!uSbC*9Tsia{bqvPln66^(9EJ|eOInS@1bBb<7LPjLf=*Mr zWPa-Jp42w2J-n1|)o8&f;SJJE*UU0E=&&Rti_k-zW6Zh07K3NPmUv5@q~AJG;!zhK z!=>gQ2T$qUcYJ1Lw%$Y-XRAmFbsn1Y*I>@a>a|vzuRlhF!T%}NDOwk;E2ir12`v-+ z9a~bJV`f&l%~9%|Ziikhg`FTC5jyeh8VueHt2b_?&ibI= zp}3cnnS=gMx2z;Jlw`~hCZ;XVeB7J(;A2Qm({YEH?A`a7i*rz<&Cl!iN&dktJ9PJW z+$_9hYikPhpNf!Uy>l()c=eJZb5PIm`LWU&mH%mYB4sKncApf!zQul_)6{+W3+yB<-$i?Lm__elriYkpeQG5Q7@Np}DEU>n^@c~g1LKavz!tIA!>u$Jf zU8fUdJ@c`_3u@cAVrYk4#R2fDeyo0Qcy*OA1|I66*`1EG;2lm77M?ah$E2Euw8!cO z&k;FmNUL|xh7qZfJkMi;!^QPFHs24{k@AH|j`w3Fyqh%q4-MHW5|A1qhmV^4UJ^%WoapOa!P(OB@>0!HY`MWb&qN12CdMs@c715 z*U|9!nZ!d&+PTLDEf>f@sRYLc1lPD5N2v!F;w@q{WIr}|uFi!qO;OHK45?8<4mDCd z0s*HxbQt%C?3kjJWjCa{+UpQETtjBbolu#g-yEDZS>Mrkjw4{6NWC-)&3ilFP}`NcVJq z^YB7fMK=9rP;aeL8*`oE#@-F}`mQm-rZwBqP&pT#mXd4to;*RP%PZDRqK>Q}-S!k$ z26X`r5zujRp~r{0jFv3k-!?)TMKTsBexVQEVe!PPXn=;p>#QmygC)WIlSy0qnKbun zD?LqTB-9-0du7;hm9O%j)Gk2bJWAFbtQ(C_VDWb54!84WQ1|?IoY1!}^RLg`Tt@5V z8sm4zdB;V0KyA##=A_nvgBy^nU&udiCTSNq3n(+C6JW7Bi2anM&QdA=q`zzP%^-Z{ zOjNf9W~3^O&Xbs!S+ai}snwNbFGnrWb5u{lNoa(Jh_}G{Ot7v{Hp9qADP8$osKypRGuH z?nTsaX?8Vq(kZf5n#-F&Js>xhl5J((j&#^5hhYBeSWxNyGVs%Abzl+qoi3_+(a+>bhtxk$L^@ zS0F^aE1ZF<#zlAl#3e8vB15_Wr#UVL zU+4(2kGB5o{KnJrM)crmQ33(k&KF~-0*&P$GKeBTp~0rsN&ldH!$4_c5D)Fb4gfV@rOe&kBFr9saf_{B0?GUHIFW zfOtx$Wi%Z^@E6j?v{(H;s)SwQ!7o!&o(-_vQ){dNU1y@VFn;cAd_$6PGrV!PqhZV? zy6=CnPR^+{W|A9l+78fQeUK)Aq!|FyhqcC!h$nE>5r7<_59Lv749`RYS{6ipe+N>r z#VZ}_Q02)uzc$g@DjA>r(Xuu+ZS)LYD1ahk3Mq`1x$R9nyvqYnu2N}Q*`dVG$(vRtMLpRd{CJKZmm{5 zXF+y;uH9nQF&ArXATtJuvC4WKC@k zG_}PUJeu7`m!lkUUah`E&;W49zEQTWH64@Lb3Z5ys^SG6x~(I$O%46`wODPk>WM({ zErmevBZT1ZPSHG!-~%N`(TP{%0x1GCIwmMO=2Gk(yO)sk5*#I-qp3F&(h1Dy)&2~^ zmYQ0x`T(dQl+-@?BEGZ&NfhqjnL2Q@W z5;lVMM<{0gORz9O(v(-Us7RX+h0Oj2Qh}uK+Dgr3&6y3gJ_doj1lnCrEONWH!@&Mf zeknBYeVbcxB9;8SAq`cS-zdo&8j{yS$zEA80v?7|B!~zCy}`zqUASDV7Ro9#nOP%+ zknMi72y0UFS0j-h2l+6@j3>k^Bt`w%?jjjetS30{3UBkPSpAE#K#m;YLh2fGe12)) z-y0%=y`rlDNdX&LP;(tyVa!NWg?_Q;Z_UjEiW<)Y3xv6h)cv56JJ)xpZNuw3s%Tll zCw}NiaSEjTD?y6@rds?pSe2MLt>c>E|5(0xjqwI}EgbWqQ^xXFYirk3Hdxk;90T}y zB_Aj?{*zesGB-~A)FG;}Ux=ZgU5?|Qp9{?$76KVzWL8Ie;h{E&$8p2=GLO_%oXt|M zG5B!n#hD0z7frqp_tVNYjO}v}c7gPpT{H$@ZDR@$-^TjZ5}4J39WCH6rV`1R3-rT~ z@ix=SL0bz!lD9bvPW3`E)K2b@K*!cbXtPPZ00bVOk}|eqz=73;6gtdqx?LVdN_&{CDIzf z;)*~6<~X#Us2X+krbJDzf)5znz0_Xno>7FrSuN;%oQNPb16-Ab=<~DI;2*SwLds#@ z6nXxdTH{Hi)Qq~);G#nLsx`(SneXgX%8LV2+uVzPPJhurC?d2 z!#);ioK)jHYz1-?XK!?OOQrD>Fm75Oj(7S$Lk%TkBd!vxi^T^a(%s*$tf@67a4OPM zE)VmWj}7&E>ClH5>{QtEc?WBXNjU3f}~-A^iWecQ)`*R%fDr z^93OU5)~{e>T57I2!TLQ$p@Ga0>mZ|n0$bI#37lG36q)GnRg&qu%Ur2Va)2bZr6L) zcBSant^M%cw#seY3PO>hx24)`?Z;ZWb-Tk(Z;RC;er$99&pGcqGl5`jyT9N4?cN!9 za?X3c-gBOF&U2pgJkL4rF6c>7Wa<9qjGBSBi>#R(VJj|p^2Ku>y2EO zxc!Cuu3T25{Qs!@@o%e#?17t%Wm3Shns}WG$x+e!3u_9V{L#6=)IxIhPuq9hGTvfZ z6L`ynfww0_UfA|^z+g~VYb0i%yme*9cOsv$(M_Z?i zWIo5{neg%-4=mge$*w`kCsmq_>MBw!i_A1@(m;Pk(QtDHr_-K|XF+Slyz<40)@cO~ zJUi4n?Yr^lOCRD`;N&`~$nkL-mW^b5DDwJ#InZ~<;I3(Ww^FKdJ5{kN)i+Y+knpOM zCXUni(YWD|W&(j(U~MF$=FD0sscIz%8_78H0eKv;vIaj$w@-oB6RXtKs}JnK_S4lG zEq#z7gQ}Hn5bD;Wk#bZMXW0xv9VCUcHeNC^^#M{v&sV)uu; zj*twe##Z&h>!Z)Xxh|X*c}M=7oAq2xG}apX6yGLL)0t)JTzq0{dt0pHDa8t~+qzc@ zJgxr3u;nOR)#$`dx0LJSz)KA@>#@ z&aGWEfS4)tS{n@MFS4pWDNzM`r<2rqS;3wdW$?mD_6xO=VfWke)`C4E1RmbIfl6vC zMK*ehrjy|cJG>b|Y;)|Hzh?rh(?RXc!~Y;zVmGs>)F2S5-ZoRmAk-vC_)m!+j8*k! zWu5P7q=fd^rxfp1IK1~R(A-m|O7&8z4rph&OFZ<5zg`Yk;3@I0nZ2~>c5mpe8?D}yG}$d zJNM0+NNz>WzO5WX&mL$R8R*T59@#YG_^hK==?d$H71mVEB*R5x*d$EynPP^EzE1vd zoC`Zeu~Q>5MDYwTX$H?1S~m@zH^n5h3|$}}y!!f3F0`g#ub;lcv|W{R8y;a{;&YI)#%GcQ zYGGZC3$e09yEysGVx3;dh&sX~jb{t+jRD-f&skSQCmo_qZ+>@1(-iQg45GO}C2zL~ z_rS-wjC03euqM9AwklTz=En0LE40Qbe_`zEJc@gni&Uz98o6SW5JF~Jd~q+LL^-hb zYO_Aq0dXCf`mhjTWGL3)donIW~(WF`+(;Pj`$$!;%M*NyoQ7f;w!P=xLS5PXI-&Ha86oAt3G+> zik;VX$?V}H`L5Wzl)g^*+^fV$i(yuupUVf1#t$@>Wt&=P14aK9*B{He=Riz)bC4@; z6m8CT$)QM*X6Np|et3Jv5a-E~cRC!EI~{U_-Q-ROeOi%|iitZNaySbUKQ-`9DY+2P zH%-Zm=M20vD>9C7f*7WV)b72P;UKI0oD#*C?)5R2tHcdhMijj>RZ77uc z9iUsRe$oT+rgKNK)jl>d9Xsa8;=!L~S`*|`O3e4|6F68mnRS^h^G3JzU*gQThr#4geigy0fWLBEo{#ww|lbINs=jGmj!D8)(W{aFpy*-Z`9r1hJX9)Aa*`!_i;(T+*52EnF?lEA0V?O}d5FTX z#Z!d+`!x8n3g3-|k%(iG*4gIRh9?zesQTtX zi7VLiDhNbud*f$DMtZZ_bQ@x~ax6ksQf|sUHf7+hEM8X{L0Yz~qb=6|HD2=Nvgir# zw+bgS_?3!_88XYttvtGOe09Y~vX;evJ+QbkvT|8l><&_cLj9gQZ~43*f2XsY#1L+Uo9#MP-7#rzTa)BW|Vb zE)+L%Eg=i=wM*2kc9aaS)y=N>6ep}5j|8@_ZsuyJ$-JxJshoe~Ww0T<;V1aG6*?zo zyT7pASH+E#5OW$|yCnH%J4yyQSNTj~!~6`@rJVQ@Cz`kANPN2_XpjGs2&FR7UT~Ya z%N0YAB62DT>CNfQ(`9^Em9aKDbphBou#`X1mD8(E?Yge&WWl}9z?)T_D7fz_aZlcJ zUDb(QS1S|Cqg5w%o~t_f5iC0H$(59UMG7Rti~-cd@^_r~aE#@?>SUy#{99Ey3kBDo zI)a|_h&-;4$A^x@e=WS+D6j;hw_ADO)M@c3EJX4Ox} z2J@|Wp7WG-f(>m>WT6rT=0=}vloyPPJ~@C}_3eAi!87CI*H95r4Nr*X?^P8Tk4LGD zn^5X2<1f3|LXR(;t)X?VOX{tj!8Mj zhMRI44yspP_BDAxtAX8AtqK~NB&BFVsc+)&VR=w~F51NLXk}AyT5x#8)&9)D^&cBA zs5s?)ap3fh^I0dqHca?nQ*MSbyiBUvZ+p8JO2ERypLK^e9z_hjE$F@D#$C5Thv z=kDkoKQ#3&lF!QiOM1!84c39b7A=A3poq$Vk?S z=n(=Bwh#iMW}O%;4&sFbHRBwTKUfIJp0@nOp-IBe9y&xNszlj-ICse+Ge3!3aYk4Cfq@oADC6cy9a-ETcjSm^TIZ=J-|se~)ohA>bP2)`^FV^*nh z4lw*LQC&pk%P6-E-!IY!EOMqJmX`|#G0=Gpv+G$I7?@=p*J`g8jQ*Do9yfQtB^rU9 z-;CF3WoqmhBm|DC!zx^1<*tZa;p%-Op6lxUZ9L1>dv0XvBdl@J z@k7(g$`7xA&c4)SGB$*bm#64%we%$U45iIs4qR@RXk>neb0Y%7j!zzhiAV_iScl^SNi` zV(Xe5?nu0Hq^XeG*t3RLW!UF+k1s9D$R51%uC%41RgPQH|Q=&blC*Ur}v>qvAVq+B`B6kad!nuP; zP5U7+9BJkI4c#*`%XS5#@;}JXZ2^Cqe$ABYzE=LmJ5wo1C*Y82-7b%Rr zO^5MC3(N$jRBW6sh7e-z5c|0b9;%;yKr+d$@ETh|?`WaeTuSL@K1)i`u6+u(Vq=OG z1QO5*6j`wML0*Zy0kZMTwP*Sz*{CsgK!vMWz+`$CO~BY)AG6@OG}KTlVew%98~j>!+hsrhh(jH(r-Zu+WQ&gx6~em{)~u{|-o9>~93c`kmhw%%28T zZezTu`{@4svh*XsyrD0s4V1lfJnvju-H7$4ZD z^cOYpUnPrt{qf-iYv{%!zsUaF@TV72BkWkC&s($iug=iA6Fy1vcGYv+r(j0B|KqYC z=iV>H)L^jw+uGUzKFt0-F-ktl>CbnwLr2)DK9@5cT`V;>nh%OrHg;Sp_T+5xK2yl^ zqmQmTD0P1{-bw*GMi3;)hnyKNx`w$mi$oBLgfn(8u1=gRl)F-{l^2vBR;4}u_~Y?O z71#DN39ZSozaT?Q%y(FV#0*c#HKhLrizNl~^mmcM=W@g^6&xvknw}p#|L>y%52?U+ zBL&J{DVbcYUZsz~3|mEmv25!DgRx0g{t8Rfv4^semmEEGx%!(8_i^;lW#Vt|tyxD^ zrT^$PyV43T2c;DX6SP5HeTeY^vN7%+Y2zT8QfMcK!j&>;4lBlE-=3Ub!lc)5m+Bk) z>wj~6uRNLDv3MKTjJ3XwF)${@RY$g8%em2~Rnpo+Cco$pxia$g$D_}4v*hcaTe4*T zk`e5ePj#&4>hit6e49Q{8gu<>u^^z>Htg_X+>tP%(y)T**tSHp>_J7%?*5^j21|zv z)7W<)s&o~k8$7lF+o@rBWq0&4)@SQV-Svh0AISM7FWGm$32x%kS)#2%9c4-sWygO$ z@UTQ0HMO-M;F)-XjTP>G4_(E*@7t$1Wt|u}V(#0gO5&abcjyZ4g4{mYDelC;88d#` zDU71NfsA-?k*IA^fb{-*Y&LIO_gszy$XJp2EjOBAE+94%t-Xt6o^w@(n&)q>LyCj> zSR~h~Qg_#t|9Ii1jDiP_R^`Ygc9Hz%*xyjfx`T4B9e1|2a5bNGRmCE8<>+NG|4)UJ zv=%!<7W22gA`EWj__4&ppI)CG^UYU=v%e|~c5{2I&rVmcr-qIf6;J*XgI!N#8>+%` zWwo_Ts`8sp%CgcNi$1D^K~%|_LwH+k-Cq)LeBCT8mb2>5512;Hn?Jth$8Wwg<7HN! zsfU@0ZLxC?P#LVOPs@n3FKtyBK9Vxnd-?87eU}4$ChT@Z2bOlM($Ur;<9fZNN_G z54HhIdd|buj7&X2BSrCv!PPCt@b~Bp~&0oH<5u`Yt?rF8>}zsPXmr~J`H#!*wddOe1+v`HdoPJXMY+n zUw;}fa(w6m@o9XClO+S+Wc!<(ABfAAQoc1EEi zaS6{PJdg-4*dy8lF0 z)C}$hK|Ri_f9P*O?>hGQO}X7z`*kxgD+``H<=A6f4Vxj~h(rQ+7*0h#i1BPieZF;B zJh$MfQ=E{o@@wPA#lUO07R?%A?1*MPEB1nKo|Dp) z2wMOBUU|K~G*h?$d#fG3^MbACaLbYG{f$Sm;wjYJ-|NTUf_P< z0pLO4A>d))5#TZ4^S~3pSAavn)4*Zi7;pl30XPL@WcCO7dA(k@d)>O#{2Cf+E9T9- z;i{`9UO}B+Ce4a};QheEz+vEYV43mx=P36CEFmMd`9&j3X6*v#%zNGuc`hj*; zM?7L;llxzFM)&H__GspPn#EUDJH~iuMocBpB{_xxxi5jX# zT>6i01*z%lISy<>ncAx%|t({p0dWZb~tX zJS@Kclz*AVcn4g;= zjDJqNxJG_Pe#RtVGVs3tNj}M)q4U4*e9jx38YEkk_Bj}MKm9LMSALTAPn`dh^oRfZ z52XK>8-LortBpVHpP=y%M?f-1w(;Kor2O~zA=(_7cT=rV4~#STPsbJ-S>udxnT6T) z_4PUOyQR!%mNLweh0SZn=Nh+_m9;lxD`%S05k~G^J$Lalj9{>zUoI&yx6RGPktJRp zjS|CeL<}GQW=a;L#2@kb@OE@8Z(Oycwy|SHeQk4xtG=ejTRhO3PB zAF20u8f%T00Qt%D+?Ckr0pkBT?!N+|h~M(|c}!0z6bPAyF$tRA(zwdy(joF_xEfY2 zPkA(!u4<}nSeXo2b8FfBg_H71&4}N<+2=8>fa&#nEw9_>z1w569CUYj%x>Q83vBnMWOQ5JfIpe<)=TCKTV3yw?-t1yjD$SqHgCv^xP4}K z#NR1po1Jc-PrX3uwcwKFcLe;Ney=sxZHZ%A(!@l)=2b|(WV-`F4+RJO;Q)B(@@(^V zrlhrT>rOG3R_d2848Zx->qUyq%#yIM8jGZQihSRo$#v<{Eo|HhMRQ z+@T#Zmh%{tPH?@9+Z*!onsuWp8N$Y#IdhC^rJM!9FJ>%9{7nIWOT^Re z>1yeTEDL#EZi_s3xc$pKo15IB+F+>3z2lCE|Bi^SHnPR#39jn2RtB~$^>mWVXt`7V z>iP71pw{>fAoHm*SZgc>mV2y5ci5_Bh;8#U2ZE8HAz}Kt-RtiPY&V)b;jnv)XGx%+ z(=%aDsC@pME}zdZX5R;Kv48h}0{=kr*$G$f{r~m$%3m_-nO*c^C&)2YXSLXa)8hmg zl^Ni%E)ohcuAIR9%oR|VWg(A;U8}^mK+EoA!Z!FJDSc{ebBa-7Tsy*+r%&RIt@7L$ zVE(H|NV$|!>tlWyh04Fiqn~osI|F@vZhu#!*YBw{UXhSCPbdrpF^sFSTpnu$kv>md zfPrcl|3kgY>e7LRu}Pknd3~Oi9YK%rB^~RA5(TA-wZ?V{X$o{jd>)+zave#ANzRpw zU_zTEv_3fr+uR|q(4t!7rxIh=sh%;Fr`oX86ShKu9Y(Hts)K@9V5vW=P18Yzw21Sh zn`>;%Y!Z62WQXNx3AB5=Jas+pknumIe3uns=1ME5%U4H-w4;K_a+0?M5@i^bnT>T# z?x4;~zN*w`a(Sg3nJ;P@v$6_4rOnMkAUq-FvQg&?gl*gy|6(ljMZ!IjVo9XCn{F_S zzs_n8c`c8G8Jn|O{XMEXy6XEoJwc)KM5vPfk0DJ?L7=WxxYqd9C1To*CaK@WS&UU< zhtr}LGS^tXR{wTpy3u54tV`99R7l%g$&vAR<{F5)skjB9O zUl?e9nEiy^rORyUXjr@ORs;3BQ4$P!x;)+JCA*Z-NGW+xnHhC%{|7BonId@o!H8vcqkuAt zio->7#GJzriwTsMhNRyPq@)i-tcx?aNz)k&&cQ|`HEod{RwRX@QZkCWv~@yp82b;* z3_L-t&JBe0duRBls#)yoBCYn5C#;`U^$0JWH@|$rEw|pbu%ZlnHa4uR*ZAt_Sk};J z`-_U_l!wjY&f-q9c+P@w5!pz)w6-M~zfeLuI$9cwCy>Zo6+Uty28)S$$8 zlb0&up{!`^p=F3`hI;}LUzgNtv&T%(Aw%Q8i+R*m+fln_xr=#qae5~e`0w$UeQxZ2 zWI`p2!F0|P3bM@`h=hGRbP{Q&DvP9c38p)ojJtS@qejPgf{7_pFfsNLp>{j#`-0XE zGZAVOVL()5Bi*8YJ`5C6qDQrDX(Z_LcFLGY4l+1XK4D`D;x7+No zw#)d_h)+~ky%4JHE5+0eTNcu53bxsUHI0SJkw47$z$RyyHefH?_) zQRo!>C(28dz>#X(iX}nWlA|FpNK)UUXrtH*DoZw}dv!;uv9aB)u;gUEcM$qkQ zy*5qg-OY0ia{{SY2*Z_3&j|$ZOKr2lJ7IYwvkjn_63&}+UFJ}btX0rKsW0(E4`DX|Hv{t0Vqg{^d_i@!VJya84#%iogdcY??jqm@;3l3o z0Xu=4c-V>OcKnrqG_J&t6&4;v&+(T!w6n_$M>dxx>qnXfzoM+HnSr39{pKRGxNEk# z+3P1j`xS-shK0;ZGYuUPp3U^=VunbnvIT+Bd1M(;*~!u54F`RgnszDcOv{b=;U)T3 ztT!bd`f9m5w~_+_tro)|rbjZM<^5*B&mth}fk&rXU);5k_l%nF$yRC}f?2Fb32Ph+ zlFX7$nJv%=nQyeIm=@7(yrnzg@=o2Udp--z47?NV~pPlG;;D%_>rQS!heA8u$uflC2?O=S)|&h$a;dZ z3F%jzK|Yt@oFzpO9DB?#ie*fzp4ai3fFz^y66?+q>|~vp5#Hgq-2HlGwn7ob2XwnN z!!SFsn0Lu)uK4X%S>=T?nBg6Ln*%;osRZZ3+@jqbomj-NP+5_XKWsX@Ggh3!2#w+d z^_Wq4SZGtS*gUl4k<~>CbYl-3QVc*@e{tD-U;hPZoc_{ia`;1r%@&(Qz(P!q+SED= zUQ>Ah&})d5Udk(-!A@oEhK`Y`!G2M)rtd48yv|UzfThWt+uz6gg{erca;lh%%3&rc z)9BL8*ed?M23=5KYu!qWzx`sl9LCJr+r2||gr3a8g%uT-E%f!vFgDcw1WE)sAPW_f zU5zIUXKs4Joo*vp(y=4=gkhbWrT)UfpDedH%&M*P z>Ajt7@MfAaUFY2jn)($^MyJuyj3nYBY`6s)pfUY|Iz{Ex3Z?k3(ozXj6gRQnnCpw@ zcWpHJqZT(|iHq^71yFUptT~z(o4i8(v{|efU?5;^zg-vsNW4&D&EP0}3Wb*qnN4&x z|Lbfmr4MvkIUu1a&IRk*#nCbz)b7&nk$tJ~8M4Q8$}9=9VIHekwZGPNq^e%a5cX3} zgfPLBvHyk7)f6ebh({eY>0&wxFX5(3nJGOU9@W~w{!Zo>qscBO@hmUl2NS~f*NVu# z+fFhnOp>MUslXRx!JcRr5LJR@oGNBMRZgLKReH+H8Y^@|8MjMcXtvr$zuGgpg_j`R zSZjzj1ZIQABEiZlBM-7aYBMiX5CRg0-%9p4sFD$)cufay8Z8|@&o+;*w3Oi_%&3Xn zXf(QhFMikPev(5T93<)2+>}fsJvI` zg?wKysQZ!<4o03FY6{CtvXR^wK=9CMb%2ww)8nb{PxUu4f~k_?o5X#;aiia%2ijO+ zU6H<^VrZBko$5@IGf$)o^9;M+?ERfIK#RRxG6;#~TI1Dk{#hho>4PFpKGsoAPWV!|3Yq<7K4H!Jg^ne&B;|T3 zVY6WsEC`g1C21rFy0nys>W$tba6GPyj!=t0N+UE)e(#2^c4~fUl3;9L%}MlQFj#6Y zpDDeZ#Fy|z4ti8Q{{TKot-H-~v%wR+_Uu3i zq$QBZFA@p>wdy3tr7b~LFQJZ!@#+g~LAJ(g1%B`YtM& zJM)9pH!LnSW~|?^anpx)?z+ctTF%yuLy^HA;ZzcQGELw* zmJaBPboOv?Hr%tB4LS2u3H>5)9+t66%a!{)EV(<(k`Svp!hS}N9QS47+oRjp&)9=4 zQT&G%ZpmI;%f)0(6+DXTaE3HZ@q-f99SZc3K$0^sDT+%!zEDPY$&2Df&7kLzszX7 zOJ6$uFqbpta$nADATjn+*9Dd;a4HHEwI}_3x*tae<8T!Y52X0fG4x6{{wmEFDQ_ZY`lp6B(k=X*HDG{vBrNGM`0ZzE+=+r7bO4pE(-zxc+iXScWRpAU8MbDvUhIo=~oHb?xo%Es)6%Z|; z**0hXoCR~{nI-ef$`;HmD~D0ORJg09cIDFAHBxoPLeg*c1rWF(%`zG5DSqdKvk=iB zbV||bMBp61$1-_oxseF^J?W&;05dnQ{(j_S)+s8aP~sat9xl5)n0-awf}?r_-C$I;giYACII zED}b7TX{Sz8ulCohGMy351S4+Iv^=>PaS1=;4zbaa9)!`fZ%A0avem3p)iO$#n$;@X z;`NKF)y97DMk!s|yi`dfop@m@>=b5+jq%EPQc9wX64~L*l#=YN^Cil%)2R}jlu}NQ zS?yn}+qTA2$~#zQlz5CCto_(!H`1m9&YV|8`4_8hH%c4KYRyBiMo=CHPe%nXilobC z*m_y`PIrg}NAzNPFw!?!VFNN8a>2ouxlNJ-Y9=%kfy)jXbrL4U$HVkhWLQ+yH zH$wg{ubW|mY@t&Pl+q^hH>p2Ml~4U`7Vm2Ak_fS$ioYerzf7rI8Lzq*Ow%5(_KT!J z%r;q=Q26iA44e>{KKE97%jePc?lY^24#?sq-C2j~A1$y{*d8}y%TJv=f)g}2@IHDT zI(6|xIy-uUNEsrXFv(js&o7@hf3~?b+<6O^SBUy$OSjB|5Kh#+FYU*5; zvP+vUe2?9InjaOmN%z%ioz5;Vr6&a&33Hd^%!3ZXgJ{~~N}V_Mv~d zSru%f8jZ(xvswwK7_^*bH|=%XRAH*3c5KP2HNu#GxNP>k+4E;Fn7wfJyjyq8b_Ta5 zih_^rxFqgs9UAB$qp->pDd%EeYU#%2HOnT zM=1JJK1RH=(a=NLD4oSTXbGx>GFF{6POd)D6JAwUXqT-nwAnMotK}Kx_I@_&lZftdRG_0&^Y+Wje9bbaC zwZ}{9@*}&IIqdo8&XK?3&Q4LaD7eB~rQB=-{x;;9;$AAP)@ZUvA&vA`U~{iw zvaQ0tB4yX$=q6FHC~dQtKWSqg=?f`e?FUk`*c*j8#JSXZEaP448$`b0KvPoEYRe5$ zbk5F-PWp@RBi+ZIk9vv?KtjYoQh4U2b>en(u&#D!`bkoGPDsureuizBml`fRl+n+U zFQ6nd*ktNeze7ZD5^hrz#!S$DU%013O=>Bhasom7v4eVSj%-mWJ33fzQ=WC{*pabA zc5)|kqF?Y>7_Yf~BGhr}Eak5f8@&X5k)FuYdmOe~Zre6Y%EUZHhxb6VgyYyO20Kp7 zSaBL>GA1rnC((_wztd`Q(mDIY(YAO=TfK;A@JWXd51S*#BjZ5t*6DY};Y&PYN$GPtI^fzMrX3wx z1ft_ehZ4m$xsfsM(5VF9DJ9d(Y;fpPy(wZrD%EqI6+mX1&}ff;3)Hkn`SmkguovV#StJ#z$vQ*wCCCe*c!u zl85x2QvTgN%2BQpww3wrCKA`MIX&F|d1Ynu*jM|*NQET-R-q4D1IkgZ6V@qQAaT8J z6m?VvuhARy8+Ndv^u%`E`@&n@{$8(YgA;GJA!TDrt@3|EC8y3r9dOl0&DlkZ z);)|lrw?RK3sgGN8(ZoqvV_D;V=|G1G+x`v*x{8*RbCw{DGXzP4>~$-h7|1lQi*{b zCUhh}Sw*V1*45FTb-C@S0Od+D&61je#@<(ili%AdP`E2GSTvV<3%zGzQWbNMj(4fiwov z7)WCvje#@<(ili%AdP`E2GSTvV<3%zGzQWbNMj(4f&bJP5Zi#$7!>4S;yBT6$+h^! z7E*qnOz{un7u!hr{Y8rZz7+rcDgM7q@qawU|A`cT7G?1TTxFAaFRq#MiK}oDKe3nk z$*{J`d;)g@&wFsi81gP$v2$2}dl_yv?&Y|r@2xei!2JsDG~AuIQfLeA)wt7fufcs4 zdx`0|PvgpA^UveTheIF2y&Lyl+;?&J;mUU-`f>gJW5YmD+hv@6ZDgd`B_|aB_+RtV zKP~?wnM;gU0r`ooM`}${pT&P2kyXH*fZ*V-fv*DJ16~I%V{DWGD}g@1$%A>nu?`UX zNydor72qY{H$Wlj<^oNC50IZYR|1X=obSLG5(B6z&JqqSjI#?AmdG32@_ZP zUE*Y{I&o62<@5n2K=-S$6vCCdN;@R|03dbVZMz@EmH0tG;`abj4s%7_hxcjw`2eoe?-4-W z_gO&FJq1Ypz70tH4*-du22un+8JXE?iar8@@A~MDkKRC-{QmBz+CA{7c6a~nX&Kr^ z%{>FkeT?)+4*uw%siQCYyZd)KsK$1``aaXw+UcJp{dYd|>SwMt{^c{V&#b?6`S%=9 zIaV_uR{v +#include +#include +#include + +#include "ta_test_priv.h" +#include "ta_test_func.h" +#include "ta_utility.h" + +/**** External functions declarations. ****/ +/* None */ + +/**** External variables declarations. ****/ +/* None */ + +/**** Global variables definitions. ****/ +int nbProfiledCall; +double timeInProfiledCall; +double worstProfiledCall; +int insufficientClockPrecision; +int doExtensiveProfiling; + +/**** Local declarations. ****/ +/* None */ + +/**** Local functions declarations. ****/ +static ErrorNumber testTAFunction_ALL( void ); +static ErrorNumber test_with_simulator( void ); +static void printUsage(void); + +/**** Local variables definitions. ****/ +/* None */ + +/**** Global functions definitions. ****/ +int main( int argc, char **argv ) +{ +#ifdef WIN32 + LARGE_INTEGER QPFrequency; +#endif + double freq; + + ErrorNumber retValue; + + (void)argv; + + insufficientClockPrecision = 0; + timeInProfiledCall = 0.0; + worstProfiledCall = 0.0; + nbProfiledCall = 0; + doExtensiveProfiling = 0; + + printf( "\n" ); + printf( "ta_regtest V%s - Regression Tests of TA-Lib code\n", TA_GetVersionString() ); + printf( "\n" ); + + if( argc == 2 ) + { + /* Detect option to perform extended profiling. */ + if( (argv[1][0] == '-') && (argv[1][1] == 'p') && (argv[1][2] == '\0')) + { + doExtensiveProfiling = 1; + } + else + { + printUsage(); + return TA_REGTEST_BAD_USER_PARAM; + } + } + + if( argc > 2 ) + { + printUsage(); + return TA_REGTEST_BAD_USER_PARAM; + } + + /* Some tests are using randomness. */ + srand( (unsigned)time( NULL ) ); + + /* Test utility like List/Stack/Dictionary/Memory Allocation etc... */ + retValue = test_internals(); + if( retValue != TA_TEST_PASS ) + { + printf( "\nFailed an internal test with code=%d\n", retValue ); + return retValue; + } + + /* Test abstract interface. */ + retValue = test_abstract(); + if( retValue != TA_TEST_PASS ) + { + printf( "Failed: Abstract interface Tests (error number = %d)\n", retValue ); + return retValue; + } + + /* Perform all regresstions tests (except when ta_regtest is executed for profiling only). */ + if( !doExtensiveProfiling ) + { + retValue = test_with_simulator(); + if( retValue != TA_TEST_PASS ) + return retValue; + + if( insufficientClockPrecision != 0 ) + { + printf( "\nWarning: Code profiling not supported for this platform.\n" ); + } + else if( nbProfiledCall > 0 ) + { + printf( "\nNumber profiled function call = %d function calls", nbProfiledCall ); + +#ifdef WIN32 + QueryPerformanceFrequency(&QPFrequency); + freq = (double)QPFrequency.QuadPart; + printf( "\nTotal execution time = %g milliseconds", (timeInProfiledCall/freq)*1000.0 ); + printf( "\nWorst single function call = %g milliseconds", (worstProfiledCall/freq)*1000.0 ); + printf( "\nAverage execution time per function = %g microseconds\n", ((timeInProfiledCall/freq)*1000000.0)/((double)nbProfiledCall) ); +#else + freq = (double)CLOCKS_PER_SEC; + printf( "\nTotal execution time = %g milliseconds", timeInProfiledCall/freq/1000.0 ); + printf( "\nWorst single function call = %g milliseconds", worstProfiledCall/freq/1000.0 ); + printf( "\nAverage execution time per function = %g microseconds\n", (timeInProfiledCall/freq/1000000.0)/((double)nbProfiledCall) ); +#endif + } + printf( "\n* All tests succeeded. Enjoy the library. *\n" ); + } + + + return TA_TEST_PASS; /* Everything succeed !!! */ +} + +/**** Local functions definitions. ****/ +static ErrorNumber test_with_simulator( void ) +{ + ErrorNumber retValue; + + /* Initialize the library. */ + retValue = allocLib(); + if( retValue != TA_TEST_PASS ) + return retValue; + + /* Perform testing of each of the TA Functions. */ + retValue = testTAFunction_ALL(); + if( retValue != TA_TEST_PASS ) + { + return retValue; + } + + /* Clean-up and exit. */ + + retValue = freeLib( ); + if( retValue != TA_TEST_PASS ) + return retValue; + + return TA_TEST_PASS; /* All test succeed. */ +} + +extern TA_Real TA_SREF_open_daily_ref_0_PRIV[]; +extern TA_Real TA_SREF_high_daily_ref_0_PRIV[]; +extern TA_Real TA_SREF_low_daily_ref_0_PRIV[]; +extern TA_Real TA_SREF_close_daily_ref_0_PRIV[]; +extern TA_Real TA_SREF_volume_daily_ref_0_PRIV[]; + +static ErrorNumber testTAFunction_ALL( void ) +{ + ErrorNumber retValue; + TA_History history; + + history.nbBars = 252; + history.open = TA_SREF_open_daily_ref_0_PRIV; + history.high = TA_SREF_high_daily_ref_0_PRIV; + history.low = TA_SREF_low_daily_ref_0_PRIV; + history.close = TA_SREF_close_daily_ref_0_PRIV; + history.volume = TA_SREF_volume_daily_ref_0_PRIV; + + printf( "Testing the TA functions\n" ); + + initGlobalBuffer(); + + /* Make tests for each TA functions. */ + #define DO_TEST(func,str) \ + { \ + printf( "%50s: Testing....", str ); \ + fflush(stdout); \ + showFeedback(); \ + TA_SetCompatibility( TA_COMPATIBILITY_DEFAULT ); \ + retValue = func( &history ); \ + if( retValue != TA_TEST_PASS ) \ + return retValue; \ + hideFeedback(); \ + printf( "done.\n" ); \ + fflush(stdout); \ + } + DO_TEST( test_func_1in_1out, "MATH,VECTOR,DCPERIOD/PHASE,TRENDLINE/MODE" ); + DO_TEST( test_func_ma, "All Moving Averages" ); + DO_TEST( test_func_per_hl, "AROON,CORREL,BETA" ); + DO_TEST( test_func_per_hlc, "CCI,WILLR,ULTOSC,NATR" ); + DO_TEST( test_func_per_ohlc, "BOP,AVGPRICE" ); + DO_TEST( test_func_rsi, "RSI,CMO" ); + DO_TEST( test_func_minmax, "MIN,MAX,MININDEX,MAXINDEX,MINMAX,MINMAXINDEX" ); + DO_TEST( test_func_po, "PO,APO" ); + DO_TEST( test_func_adx, "ADX,ADXR,DI,DM,DX" ); + DO_TEST( test_func_sar, "SAR,SAREXT" ); + DO_TEST( test_func_stoch, "STOCH,STOCHF,STOCHRSI" ); + DO_TEST( test_func_per_hlcv, "MFI,AD,ADOSC" ); + DO_TEST( test_func_1in_2out, "PHASOR,SINE" ); + DO_TEST( test_func_per_ema, "TRIX" ); + DO_TEST( test_func_macd, "MACD,MACDFIX,MACDEXT" ); + DO_TEST( test_func_mom_roc, "MOM,ROC,ROCP,ROCR,ROCR100" ); + DO_TEST( test_func_trange, "TRANGE,ATR" ); + DO_TEST( test_func_stddev, "STDDEV,VAR" ); + DO_TEST( test_func_bbands, "BBANDS" ); + DO_TEST( test_candlestick, "All Candlesticks" ); + + return TA_TEST_PASS; /* All tests succeeded. */ +} + +static void printUsage(void) +{ + printf( "Usage: ta_regtest [-p]\n" ); + printf( "\n" ); + printf( " No parameter needed for regression testing.\n" ); + printf( "\n" ); + printf( " This tool will execute a series of tests to\n" ); + printf( " make sure that the library is behaving as\n" ); + printf( " expected.\n"); + printf( "\n" ); + printf( " ** Must be run from the 'bin' directory.\n" ); + printf( "\n" ); + printf( " OPTION:\n" ); + printf( " -p Only generate profiling data on stdout. This is\n" ); + printf( " intended only for the TA-Lib developers. It is\n" ); + printf( " not further documented for general use.\n" ); + printf( "\n" ); + printf( " On success, the exit code is 0.\n" ); + printf( " On failure, the exit code is a number that can be\n" ); + printf( " found in c/src/tools/ta_regtest/ta_error_number.h\n" ); +} diff --git a/src/tools/ta_regtest/ta_test_func.h b/src/tools/ta_regtest/ta_test_func.h new file mode 100644 index 000000000..acdbdd472 --- /dev/null +++ b/src/tools/ta_regtest/ta_test_func.h @@ -0,0 +1,27 @@ +#ifndef TA_TEST_FUNC_H +#define TA_TEST_FUNC_H + +ErrorNumber test_candlestick ( TA_History *history ); +ErrorNumber test_func_adx ( TA_History *history ); +ErrorNumber test_func_ma ( TA_History *history ); +ErrorNumber test_func_trange ( TA_History *history ); +ErrorNumber test_func_rsi ( TA_History *history ); +ErrorNumber test_func_po ( TA_History *history ); +ErrorNumber test_func_macd ( TA_History *history ); +ErrorNumber test_func_stddev ( TA_History *history ); +ErrorNumber test_func_bbands ( TA_History *history ); +ErrorNumber test_func_mom_roc ( TA_History *history ); +ErrorNumber test_func_stoch ( TA_History *history ); +ErrorNumber test_func_minmax ( TA_History *history ); +ErrorNumber test_func_per_ema ( TA_History *history ); +ErrorNumber test_func_per_hl ( TA_History *history ); +ErrorNumber test_func_per_hlc ( TA_History *history ); +ErrorNumber test_func_per_hlcv( TA_History *history ); +ErrorNumber test_func_per_ohlc( TA_History *history ); +ErrorNumber test_func_per ( TA_History *history ); +ErrorNumber test_func_sar ( TA_History *history ); +ErrorNumber test_func_1in_1out( TA_History *history ); +ErrorNumber test_func_1in_2out( TA_History *history ); + + +#endif diff --git a/src/tools/ta_regtest/ta_test_func/test_1in_1out.c b/src/tools/ta_regtest/ta_test_func/test_1in_1out.c new file mode 100644 index 000000000..ea6eaf677 --- /dev/null +++ b/src/tools/ta_regtest/ta_test_func/test_1in_1out.c @@ -0,0 +1,507 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * MF Mario Fortier + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 020203 MF First version. + * + */ + +/* Description: + * + * Test functions which have the following + * characterisic: + * - have one input and one output + * - there is no optional parameters + */ + +/**** Headers ****/ +#include +#include + +#include "ta_test_priv.h" +#include "ta_test_func.h" +#include "ta_utility.h" +#include "ta_memory.h" + +/**** External functions declarations. ****/ +/* None */ + +/**** External variables declarations. ****/ +/* None */ + +/**** Global variables definitions. ****/ +/* None */ + +/**** Local declarations. ****/ +typedef enum { + TA_HT_DCPERIOD_TEST, + TA_HT_DCPHASE_TEST, + TA_HT_TRENDLINE_TEST, + TA_HT_TRENDMODE_TEST, + TA_SIN_TEST +} TA_TestId; + +typedef struct +{ + TA_Integer doRangeTestFlag; + + TA_TestId theFunction; + TA_Integer unstablePeriod; + + TA_Integer startIdx; + TA_Integer endIdx; + + TA_RetCode expectedRetCode; + + TA_Integer oneOfTheExpectedOutRealIndex0; + TA_Real oneOfTheExpectedOutReal0; + + TA_Integer expectedBegIdx; + TA_Integer expectedNbElement; +} TA_Test; + +typedef struct +{ + const TA_Test *test; + const TA_Real *price; +} TA_RangeTestParam; + +/**** Local functions declarations. ****/ +static ErrorNumber do_test( const TA_History *history, + const TA_Test *test ); + +/**** Local variables definitions. ****/ + +static TA_Test tableTest[] = +{ + /********************************/ + /* Some Hilbert Transform Tests */ + /********************************/ + { 1, TA_HT_TRENDMODE_TEST, 0, 0, 251, TA_SUCCESS, 0, 1.0, 63, 252-63 }, /* First Value */ + + { 1, TA_HT_TRENDLINE_TEST, 0, 0, 251, TA_SUCCESS, 0, 88.257, 63, 252-63 }, /* First Value */ + { 0, TA_HT_TRENDLINE_TEST, 0, 0, 251, TA_SUCCESS, 0, 88.257, 63, 252-63 }, + { 0, TA_HT_TRENDLINE_TEST, 0, 0, 251, TA_SUCCESS, 252-66, 109.69, 63, 252-63 }, + { 0, TA_HT_TRENDLINE_TEST, 0, 0, 251, TA_SUCCESS, 252-65, 110.18, 63, 252-63 }, + { 0, TA_HT_TRENDLINE_TEST, 0, 0, 251, TA_SUCCESS, 252-64, 110.46, 63, 252-63 }, /* Last Value */ + + { 1, TA_HT_DCPHASE_TEST, 0, 0, 251, TA_SUCCESS, 0, 22.1495, 63, 252-63 }, /* First Value */ + { 0, TA_HT_DCPHASE_TEST, 0, 0, 251, TA_SUCCESS, 252-66, -31.182, 63, 252-63 }, + { 0, TA_HT_DCPHASE_TEST, 0, 0, 251, TA_SUCCESS, 252-65, 23.2691, 63, 252-63 }, + { 0, TA_HT_DCPHASE_TEST, 0, 0, 251, TA_SUCCESS, 252-64, 47.2765, 63, 252-63 }, /* Last Value */ + + { 1, TA_HT_DCPERIOD_TEST, 0, 0, 251, TA_SUCCESS, 0, 15.5527, 32, 252-32 }, /* First Value */ + { 0, TA_HT_DCPERIOD_TEST, 0, 0, 251, TA_SUCCESS, 252-33, 18.6140, 32, 252-32 }, /* Last Value */ + + /*********************************/ + /* Trigonometric and Vector Math */ + /*********************************/ + { 1, TA_SIN_TEST, 0, 0, 251, TA_SUCCESS, 0, -0.38371, 0, 252 }, /* First Value */ + { 0, TA_SIN_TEST, 0, 0, 251, TA_SUCCESS, 251, 0.870319, 0, 252 } /* Last Value */ + +}; + +#define NB_TEST (sizeof(tableTest)/sizeof(TA_Test)) + +/**** Global functions definitions. ****/ +ErrorNumber test_func_1in_1out( TA_History *history ) +{ + unsigned int i; + ErrorNumber retValue; + + for( i=0; i < NB_TEST; i++ ) + { + /* Re-initialize all the unstable period to zero. */ + TA_SetUnstablePeriod( TA_FUNC_UNST_ALL, 0 ); + + if( (int)tableTest[i].expectedNbElement > (int)history->nbBars ) + { + printf( "Failed Bad Parameter for Test #%d (%d,%d)\n", + i, tableTest[i].expectedNbElement, history->nbBars ); + return TA_TESTUTIL_TFRR_BAD_PARAM; + } + + retValue = do_test( history, &tableTest[i] ); + if( retValue != 0 ) + { + printf( "Failed Test #%d (Code=%d)\n", i, retValue ); + return retValue; + } + } + + /* Re-initialize all the unstable period to zero. */ + TA_SetUnstablePeriod( TA_FUNC_UNST_ALL, 0 ); + + /* All test succeed. */ + return TA_TEST_PASS; +} + +/**** Local functions definitions. ****/ +static TA_RetCode rangeTestFunction( TA_Integer startIdx, + TA_Integer endIdx, + TA_Real *outputBuffer, + TA_Integer *outputBufferInt, + TA_Integer *outBegIdx, + TA_Integer *outNbElement, + TA_Integer *lookback, + void *opaqueData, + unsigned int outputNb, + unsigned int *isOutputInteger ) +{ + TA_RetCode retCode; + TA_RangeTestParam *testParam; + TA_Integer *intBuffer; + int size, i; + + (void)outputNb; + (void)outputBufferInt; + + *isOutputInteger = 0; + + testParam = (TA_RangeTestParam *)opaqueData; + + switch( testParam->test->theFunction ) + { + case TA_HT_DCPERIOD_TEST: + retCode = TA_HT_DCPERIOD( startIdx, + endIdx, + testParam->price, + outBegIdx, + outNbElement, + outputBuffer ); + *lookback = TA_HT_DCPERIOD_Lookback(); + break; + case TA_HT_DCPHASE_TEST: + retCode = TA_HT_DCPHASE( startIdx, + endIdx, + testParam->price, + outBegIdx, + outNbElement, + outputBuffer ); + + *lookback = TA_HT_DCPHASE_Lookback(); + break; + case TA_HT_TRENDLINE_TEST: + retCode = TA_HT_TRENDLINE( startIdx, + endIdx, + testParam->price, + outBegIdx, + outNbElement, + outputBuffer ); + *lookback = TA_HT_TRENDLINE_Lookback(); + break; + case TA_HT_TRENDMODE_TEST: + /* Trendmode returns integers, but this test + * is comparing real, so a translation is done + * here. + */ + #define PRE_SENTINEL ((TA_Integer)0xABABFEDC) + #define POST_SENTINEL ((TA_Integer)0xEFABCDFF) + #define ALLOC_INT_BUFFER(varSize) \ + { \ + intBuffer = TA_Malloc(sizeof(TA_Integer)*(varSize+2)); \ + intBuffer[0] = PRE_SENTINEL; \ + intBuffer[varSize+1] = POST_SENTINEL; \ + } + + size = endIdx-startIdx+1; \ + ALLOC_INT_BUFFER(size); + retCode = TA_HT_TRENDMODE( startIdx, + endIdx, + testParam->price, + outBegIdx, + outNbElement, + &intBuffer[1] ); + *lookback = TA_HT_TRENDMODE_Lookback(); + + #define FREE_INT_BUFFER( destBuffer, varNbElement ) \ + { \ + if( intBuffer[0] != PRE_SENTINEL ) \ + { \ + retCode = TA_INTERNAL_ERROR(138); \ + } \ + else if( intBuffer[size+1] != POST_SENTINEL ) \ + { \ + retCode = TA_INTERNAL_ERROR(139); \ + } \ + else \ + { \ + for( i=0; i < varNbElement; i++ ) \ + destBuffer[i] = (double)intBuffer[i+1]; \ + } \ + TA_Free( intBuffer ); \ + } + + FREE_INT_BUFFER( outputBuffer, *outNbElement ); + break; + case TA_SIN_TEST: + retCode = TA_SIN( startIdx, + endIdx, + testParam->price, + outBegIdx, + outNbElement, + outputBuffer ); + *lookback = TA_SIN_Lookback(); + break; + default: + retCode = TA_INTERNAL_ERROR(132); + } + + return retCode; +} + +static ErrorNumber do_test( const TA_History *history, + const TA_Test *test ) +{ + TA_RetCode retCode; + ErrorNumber errNb; + TA_Integer outBegIdx; + TA_Integer outNbElement; + TA_RangeTestParam testParam; + const TA_Real *referenceInput; + + TA_Integer *intBuffer; + int size, i; + + /* Set to NAN all the elements of the gBuffers. */ + clearAllBuffers(); + + /* Build the input. */ + setInputBuffer( 0, history->close, history->nbBars ); + + /* Change the input to MEDPRICE for some tests. */ + switch( test->theFunction ) + { + case TA_HT_DCPERIOD_TEST: + case TA_HT_DCPHASE_TEST: + case TA_HT_TRENDLINE_TEST: + case TA_HT_TRENDMODE_TEST: + TA_MEDPRICE( 0, history->nbBars-1, history->high, history->low, + &outBegIdx, &outNbElement, gBuffer[0].in ); + + /* Will be use as reference */ + TA_MEDPRICE( 0, history->nbBars-1, history->high, history->low, + &outBegIdx, &outNbElement, gBuffer[1].in ); + + referenceInput = gBuffer[1].in; + break; + default: + referenceInput = history->close; + } + + /* Make a simple first call. */ + size = (test->endIdx-test->startIdx)+1; + + switch( test->theFunction ) + { + case TA_HT_DCPERIOD_TEST: + retCode = TA_HT_DCPERIOD( test->startIdx, + test->endIdx, + gBuffer[0].in, + &outBegIdx, + &outNbElement, + gBuffer[0].out0 ); + break; + + case TA_HT_DCPHASE_TEST: + retCode = TA_HT_DCPHASE( test->startIdx, + test->endIdx, + gBuffer[0].in, + &outBegIdx, + &outNbElement, + gBuffer[0].out0 ); + break; + case TA_HT_TRENDLINE_TEST: + retCode = TA_HT_TRENDLINE( test->startIdx, + test->endIdx, + gBuffer[0].in, + &outBegIdx, + &outNbElement, + gBuffer[0].out0 ); + break; + case TA_HT_TRENDMODE_TEST: + ALLOC_INT_BUFFER(size); + retCode = TA_HT_TRENDMODE( test->startIdx, + test->endIdx, + gBuffer[0].in, + &outBegIdx, + &outNbElement, + &intBuffer[1] ); + FREE_INT_BUFFER( gBuffer[0].out0, outNbElement ); + break; + case TA_SIN_TEST: + retCode = TA_SIN( test->startIdx, + test->endIdx, + gBuffer[0].in, + &outBegIdx, + &outNbElement, + gBuffer[0].out0 ); + break; + default: + retCode = TA_INTERNAL_ERROR(133); + } + + /* Check that the input were preserved. */ + errNb = checkDataSame( gBuffer[0].in, referenceInput, history->nbBars ); + if( errNb != TA_TEST_PASS ) + return errNb; + + CHECK_EXPECTED_VALUE( gBuffer[0].out0, 0 ); + + outBegIdx = outNbElement = 0; + + /* Make another call where the input and the output + * are the same buffer. + */ + switch( test->theFunction ) + { + case TA_HT_DCPERIOD_TEST: + retCode = TA_HT_DCPERIOD( test->startIdx, + test->endIdx, + gBuffer[0].in, + &outBegIdx, + &outNbElement, + gBuffer[0].in + ); + break; + + case TA_HT_DCPHASE_TEST: + retCode = TA_HT_DCPHASE( test->startIdx, + test->endIdx, + gBuffer[0].in, + &outBegIdx, + &outNbElement, + gBuffer[0].in + ); + break; + case TA_HT_TRENDLINE_TEST: + retCode = TA_HT_TRENDLINE( test->startIdx, + test->endIdx, + gBuffer[0].in, + &outBegIdx, + &outNbElement, + gBuffer[0].in + ); + break; + case TA_HT_TRENDMODE_TEST: + ALLOC_INT_BUFFER(size); + retCode = TA_HT_TRENDMODE( test->startIdx, + test->endIdx, + gBuffer[0].in, + &outBegIdx, + &outNbElement, + &intBuffer[1] + ); + FREE_INT_BUFFER( gBuffer[0].in, outNbElement ); + break; + case TA_SIN_TEST: + retCode = TA_SIN( test->startIdx, + test->endIdx, + gBuffer[0].in, + &outBegIdx, + &outNbElement, + gBuffer[0].in + ); + break; + default: + retCode = TA_INTERNAL_ERROR(134); + } + + /* The previous call should have the same output + * as this call. + * + * checkSameContent verify that all value different than NAN in + * the first parameter is identical in the second parameter. + */ + errNb = checkSameContent( gBuffer[0].out0, gBuffer[0].in ); + if( errNb != TA_TEST_PASS ) + return errNb; + + CHECK_EXPECTED_VALUE( gBuffer[0].in, 0 ); + + /* Do a systematic test of most of the + * possible startIdx/endIdx range. + */ + testParam.test = test; + testParam.price = referenceInput; + + if( test->doRangeTestFlag ) + { + switch( test->theFunction ) + { + case TA_HT_DCPERIOD_TEST: + errNb = doRangeTest( rangeTestFunction, + TA_FUNC_UNST_HT_DCPERIOD, + (void *)&testParam, 1, 0 ); + break; + + case TA_HT_DCPHASE_TEST: + errNb = doRangeTest( rangeTestFunction, + TA_FUNC_UNST_HT_DCPHASE, + (void *)&testParam, 1, 360 ); + break; + + case TA_HT_TRENDLINE_TEST: + errNb = doRangeTest( rangeTestFunction, + TA_FUNC_UNST_HT_TRENDLINE, + (void *)&testParam, 1, 0 ); + break; + + case TA_HT_TRENDMODE_TEST: + errNb = doRangeTest( rangeTestFunction, + TA_FUNC_UNST_HT_TRENDMODE, + (void *)&testParam, 1, 0 ); + break; + + default: + errNb = doRangeTest( rangeTestFunction, + TA_FUNC_UNST_NONE, + (void *)&testParam, 1, 0 ); + } + if( errNb != TA_TEST_PASS ) + return errNb; + } + + return TA_TEST_PASS; +} + diff --git a/src/tools/ta_regtest/ta_test_func/test_1in_2out.c b/src/tools/ta_regtest/ta_test_func/test_1in_2out.c new file mode 100644 index 000000000..91232ad1c --- /dev/null +++ b/src/tools/ta_regtest/ta_test_func/test_1in_2out.c @@ -0,0 +1,469 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * MF Mario Fortier + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 020203 MF First version. + * + */ + +/* Description: + * + * Test functions which have the following + * characterisic: + * - have one input and two outputs + * - there is no optional parameters + */ + +/**** Headers ****/ +#include +#include + +#include "ta_test_priv.h" +#include "ta_test_func.h" +#include "ta_utility.h" +#include "ta_memory.h" + +/**** External functions declarations. ****/ +/* None */ + +/**** External variables declarations. ****/ +/* None */ + +/**** Global variables definitions. ****/ +/* None */ + +/**** Local declarations. ****/ +typedef enum { + TA_HT_PHASOR_TEST, + TA_HT_SINE_TEST +} TA_TestId; + +typedef struct +{ + TA_Integer doRangeTestFlag; + + TA_TestId theFunction; + TA_Integer unstablePeriod; + + TA_Integer startIdx; + TA_Integer endIdx; + + TA_RetCode expectedRetCode; + + TA_Integer oneOfTheExpectedOutRealIndex0; + TA_Real oneOfTheExpectedOutReal0; + + TA_Integer oneOfTheExpectedOutRealIndex1; + TA_Real oneOfTheExpectedOutReal1; + + TA_Integer expectedBegIdx; + TA_Integer expectedNbElement; +} TA_Test; + +typedef struct +{ + const TA_Test *test; + const TA_Real *price; +} TA_RangeTestParam; + +/**** Local functions declarations. ****/ +static ErrorNumber do_test( const TA_History *history, + const TA_Test *test ); + +/**** Local variables definitions. ****/ + +static TA_Test tableTest[] = +{ + /********************************/ + /* Some Hilbert Transform Tests */ + /********************************/ + { 1, TA_HT_SINE_TEST, 0, 0, 251, TA_SUCCESS, 0, 0.38, + 0, 0.92, + 63, 252-63 }, + { 0, TA_HT_SINE_TEST, 0, 0, 251, TA_SUCCESS, 1, 0.77, + 1, 1.00, + 63, 252-63 }, + + { 0, TA_HT_SINE_TEST, 0, 0, 251, TA_SUCCESS, 5, 0.65, + 5, -0.08, + 63, 252-63 }, + + { 0, TA_HT_SINE_TEST, 0, 0, 251, TA_SUCCESS, 252-67, -0.94, + 252-67, -0.44, + 63, 252-63 }, + + { 0, TA_HT_SINE_TEST, 0, 0, 251, TA_SUCCESS, 252-66, -0.52, + 252-66, 0.24, + 63, 252-63 }, + + { 0, TA_HT_SINE_TEST, 0, 0, 251, TA_SUCCESS, 252-64, 0.73, + 252-64, 1.00, + 63, 252-63 }, + + { 1, TA_HT_PHASOR_TEST, 0, 0, 251, TA_SUCCESS, 0, 0.9456, + 0, 5.2143, + 32, 252-32 }, /* First Value */ + + { 0, TA_HT_PHASOR_TEST, 0, 0, 251, TA_SUCCESS, 1, 2.7539, + 1, 2.4129, + 32, 252-32 }, + + { 0, TA_HT_PHASOR_TEST, 0, 0, 251, TA_SUCCESS, 9, -0.7235, + 9, -5.9336, + 32, 252-32 }, + + { 0, TA_HT_PHASOR_TEST, 0, 0, 251, TA_SUCCESS, 252-34, 0.8386, + 252-34, -0.8913, + 32, 252-32 }, + + { 0, TA_HT_PHASOR_TEST, 0, 0, 251, TA_SUCCESS, 252-33, 0.3258, + 252-33, -0.9447, + 32, 252-32 }, /* Last Value */ + + +}; + +#define NB_TEST (sizeof(tableTest)/sizeof(TA_Test)) + +/**** Global functions definitions. ****/ +ErrorNumber test_func_1in_2out( TA_History *history ) +{ + unsigned int i; + ErrorNumber retValue; + + + for( i=0; i < NB_TEST; i++ ) + { + /* Re-initialize all the unstable period to zero. */ + TA_SetUnstablePeriod( TA_FUNC_UNST_ALL, 0 ); + + if( (int)tableTest[i].expectedNbElement > (int)history->nbBars ) + { + printf( "Failed Bad Parameter for Test #%d (%d,%d)\n", + i, tableTest[i].expectedNbElement, history->nbBars ); + return TA_TESTUTIL_TFRR_BAD_PARAM; + } + + retValue = do_test( history, &tableTest[i] ); + if( retValue != 0 ) + { + printf( "Failed Test #%d (Code=%d)\n", i, retValue ); + return retValue; + } + } + + /* Re-initialize all the unstable period to zero. */ + TA_SetUnstablePeriod( TA_FUNC_UNST_ALL, 0 ); + + /* All test succeed. */ + return TA_TEST_PASS; +} + +/**** Local functions definitions. ****/ +static TA_RetCode rangeTestFunction( TA_Integer startIdx, + TA_Integer endIdx, + TA_Real *outputBuffer, + TA_Integer *outputBufferInt, + TA_Integer *outBegIdx, + TA_Integer *outNbElement, + TA_Integer *lookback, + void *opaqueData, + unsigned int outputNb, + unsigned int *isOutputInteger ) +{ + TA_RetCode retCode; + TA_RangeTestParam *testParam; + TA_Real *out1; + TA_Real *out2; + TA_Real *dummyOutput; + + (void)outputBufferInt; + + *isOutputInteger = 0; + + testParam = (TA_RangeTestParam *)opaqueData; + + dummyOutput = TA_Malloc( (endIdx-startIdx+1) * sizeof(TA_Real) ); + + if( outputNb == 0 ) + { + out1 = outputBuffer; + out2 = dummyOutput; + } + else + { + out1 = dummyOutput; + out2 = outputBuffer; + } + + switch( testParam->test->theFunction ) + { + case TA_HT_PHASOR_TEST: + retCode = TA_HT_PHASOR( startIdx, + endIdx, + testParam->price, + outBegIdx, + outNbElement, + out1, out2 ); + *lookback = TA_HT_PHASOR_Lookback(); + break; + case TA_HT_SINE_TEST: + retCode = TA_HT_SINE( startIdx, + endIdx, + testParam->price, + outBegIdx, + outNbElement, + out1, out2 ); + *lookback = TA_HT_SINE_Lookback(); + break; + default: + retCode = TA_INTERNAL_ERROR(132); + } + + TA_Free(dummyOutput); + return retCode; +} + +static ErrorNumber do_test( const TA_History *history, + const TA_Test *test ) +{ + TA_RetCode retCode; + ErrorNumber errNb; + TA_Integer outBegIdx; + TA_Integer outNbElement; + TA_RangeTestParam testParam; + const TA_Real *referenceInput; + + /* Set to NAN all the elements of the gBuffers. */ + clearAllBuffers(); + + /* Build the input. */ + setInputBuffer( 0, history->close, history->nbBars ); + setInputBuffer( 1, history->close, history->nbBars ); + setInputBuffer( 2, history->close, history->nbBars ); + + /* Change the input to MEDPRICE for some tests. */ + switch( test->theFunction ) + { + case TA_HT_PHASOR_TEST: + case TA_HT_SINE_TEST: + TA_MEDPRICE( 0, history->nbBars-1, history->high, history->low, + &outBegIdx, &outNbElement, gBuffer[0].in ); + + TA_MEDPRICE( 0, history->nbBars-1, history->high, history->low, + &outBegIdx, &outNbElement, gBuffer[1].in ); + + /* Will be use as reference */ + TA_MEDPRICE( 0, history->nbBars-1, history->high, history->low, + &outBegIdx, &outNbElement, gBuffer[2].in ); + + referenceInput = gBuffer[2].in; + break; + default: + referenceInput = history->close; + } + + /* Make a simple first call. */ + switch( test->theFunction ) + { + case TA_HT_PHASOR_TEST: + retCode = TA_HT_PHASOR( test->startIdx, + test->endIdx, + gBuffer[0].in, + &outBegIdx, + &outNbElement, + gBuffer[0].out0, + gBuffer[0].out1 ); + break; + case TA_HT_SINE_TEST: + retCode = TA_HT_SINE( test->startIdx, + test->endIdx, + gBuffer[0].in, + &outBegIdx, + &outNbElement, + gBuffer[0].out0, + gBuffer[0].out1 ); + break; + default: + retCode = TA_INTERNAL_ERROR(133); + } + + /* Check that the inputs were preserved. */ + errNb = checkDataSame( gBuffer[0].in, referenceInput, history->nbBars ); + if( errNb != TA_TEST_PASS ) + return errNb; + + errNb = checkDataSame( gBuffer[1].in, referenceInput, history->nbBars ); + if( errNb != TA_TEST_PASS ) + return errNb; + + CHECK_EXPECTED_VALUE( gBuffer[0].out0, 0 ); + CHECK_EXPECTED_VALUE( gBuffer[0].out1, 1 ); + + outBegIdx = outNbElement = 0; + + /* Make another call where the input and the output + * are the same buffer. + */ + switch( test->theFunction ) + { + case TA_HT_PHASOR_TEST: + retCode = TA_HT_PHASOR( test->startIdx, + test->endIdx, + gBuffer[0].in, + &outBegIdx, + &outNbElement, + gBuffer[0].in, + gBuffer[1].out1 + ); + break; + case TA_HT_SINE_TEST: + retCode = TA_HT_SINE( test->startIdx, + test->endIdx, + gBuffer[0].in, + &outBegIdx, + &outNbElement, + gBuffer[0].in, + gBuffer[1].out1 + ); + break; + default: + retCode = TA_INTERNAL_ERROR(134); + } + + /* The previous call should have the same output + * as this call. + * + * checkSameContent verify that all value different than NAN in + * the first parameter is identical in the second parameter. + */ + errNb = checkSameContent( gBuffer[0].out0, gBuffer[0].in ); + if( errNb != TA_TEST_PASS ) + return errNb; + + errNb = checkSameContent( gBuffer[0].out1, gBuffer[1].out1 ); + if( errNb != TA_TEST_PASS ) + return errNb; + + CHECK_EXPECTED_VALUE( gBuffer[0].in, 0 ); + CHECK_EXPECTED_VALUE( gBuffer[1].out1, 1 ); + + /* Make another call where the input and the output + * are the same buffer. + */ + switch( test->theFunction ) + { + case TA_HT_PHASOR_TEST: + retCode = TA_HT_PHASOR( test->startIdx, + test->endIdx, + gBuffer[1].in, + &outBegIdx, + &outNbElement, + gBuffer[1].out0, + gBuffer[1].in + ); + break; + case TA_HT_SINE_TEST: + retCode = TA_HT_SINE( test->startIdx, + test->endIdx, + gBuffer[1].in, + &outBegIdx, + &outNbElement, + gBuffer[1].out0, + gBuffer[1].in + ); + break; + default: + retCode = TA_INTERNAL_ERROR(134); + } + + /* The previous call should have the same output + * as this call. + * + * checkSameContent verify that all value different than NAN in + * the first parameter is identical in the second parameter. + */ + errNb = checkSameContent( gBuffer[0].out1, gBuffer[1].in ); + if( errNb != TA_TEST_PASS ) + return errNb; + + errNb = checkSameContent( gBuffer[0].out0, gBuffer[1].out0 ); + if( errNb != TA_TEST_PASS ) + return errNb; + + CHECK_EXPECTED_VALUE( gBuffer[1].in, 1 ); + CHECK_EXPECTED_VALUE( gBuffer[1].out0, 0 ); + + /* Do a systematic test of most of the + * possible startIdx/endIdx range. + */ + testParam.test = test; + testParam.price = referenceInput; + + if( test->doRangeTestFlag ) + { + switch( test->theFunction ) + { + case TA_HT_PHASOR_TEST: + errNb = doRangeTest( rangeTestFunction, + TA_FUNC_UNST_HT_PHASOR, + (void *)&testParam, 1, 0 ); + break; + case TA_HT_SINE_TEST: + errNb = doRangeTest( rangeTestFunction, + TA_FUNC_UNST_HT_SINE, + (void *)&testParam, 1, 10 ); + break; + + default: + errNb = doRangeTest( rangeTestFunction, + TA_FUNC_UNST_NONE, + (void *)&testParam, 1, 0 ); + } + if( errNb != TA_TEST_PASS ) + return errNb; + } + + return TA_TEST_PASS; +} + diff --git a/src/tools/ta_regtest/ta_test_func/test_adx.c b/src/tools/ta_regtest/ta_test_func/test_adx.c new file mode 100644 index 000000000..96abcc040 --- /dev/null +++ b/src/tools/ta_regtest/ta_test_func/test_adx.c @@ -0,0 +1,682 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * MF Mario Fortier + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 112400 MF First version. + * + */ + +/* Description: + * Test all the directional movement functions. + */ + +/**** Headers ****/ +#include +#include + +#include "ta_test_priv.h" +#include "ta_test_func.h" +#include "ta_utility.h" + +/**** External functions declarations. ****/ +/* None */ + +/**** External variables declarations. ****/ +/* None */ + +/**** Global variables definitions. ****/ +/* None */ + +/**** Local declarations. ****/ +typedef enum +{ + TST_MINUS_DM, + TST_MINUS_DI, + TST_PLUS_DM, + TST_PLUS_DI, + TST_DX, + TST_ADX, + TST_ADXR +} TestId; + +typedef struct +{ + TestId id; + + TA_Integer doRangeTestFlag; + + TA_Integer unstablePeriod; + + TA_Integer startIdx; + TA_Integer endIdx; + + TA_Integer optInTimePeriod; + + TA_RetCode expectedRetCode; + + TA_Integer oneOfTheExpectedOutRealIndex0; + TA_Real oneOfTheExpectedOutReal0; + + TA_Integer expectedBegIdx; + TA_Integer expectedNbElement; +} TA_Test; + +typedef struct +{ + const TA_Test *test; + const TA_Real *high; + const TA_Real *low; + const TA_Real *close; +} TA_RangeTestParam; + +/**** Local functions declarations. ****/ +static ErrorNumber do_test( const TA_History *history, + const TA_Test *test ); + +/**** Local variables definitions. ****/ + +static TA_Test tableTest[] = +{ + /* Test the fixes for Bug#1089506 */ + { TST_MINUS_DI, 1, 0, 0, 251, 1, TA_SUCCESS, 0, 0.0, 1, 252-1 }, + { TST_PLUS_DI, 1, 0, 0, 251, 1, TA_SUCCESS, 0, 0.478, 1, 252-1 }, + { TST_MINUS_DM, 1, 0, 0, 251, 1, TA_SUCCESS, 0, 0.0, 1, 252-1 }, + { TST_PLUS_DM, 1, 0, 0, 251, 1, TA_SUCCESS, 0, 1.69, 1, 252-1 }, + + /* Normal regression tests. */ + { TST_ADXR,1, 0, 0, 251, 14, TA_SUCCESS, 0, 19.8666, 40, 252-40 }, /* First Value */ + { TST_ADXR,0, 0, 0, 251, 14, TA_SUCCESS, 1, 18.9092, 40, 252-40 }, + + { TST_ADXR,0, 0, 0, 251, 14, TA_SUCCESS, 210, 21.5972, 40, 252-40 }, + { TST_ADXR,0, 0, 0, 251, 14, TA_SUCCESS, 211, 20.4920, 40, 252-40 }, /* Last Value */ + + { TST_PLUS_DM, 1, 0, 0, 251, 14, TA_SUCCESS, 0, 10.28, 13, 252-13 }, /* First Value */ + { TST_PLUS_DM, 0, 0, 0, 251, 14, TA_SUCCESS, 237, 10.317, 13, 252-13 }, + { TST_PLUS_DM, 0, 0, 0, 251, 14, TA_SUCCESS, 238, 9.58, 13, 252-13 }, /* Last Value */ + + { TST_PLUS_DI, 1, 0, 0, 251, 14, TA_SUCCESS, 0, 20.3781, 14, 252-14 }, /* First Value */ + + { TST_PLUS_DI, 0, 0, 0, 251, 14, TA_SUCCESS, 13, 22.1073, 14, 252-14 }, + { TST_PLUS_DI, 0, 0, 0, 251, 14, TA_SUCCESS, 14, 20.3746, 14, 252-14 }, + { TST_PLUS_DI, 0, 0, 0, 251, 14, TA_SUCCESS, 237, 21.0000, 14, 252-14 }, /* Last Value */ + + { TST_MINUS_DM, 1, 0, 0, 251, 14, TA_SUCCESS, 0, 12.995, 13, 252-13 }, /* First Value */ + { TST_MINUS_DM, 0, 0, 0, 251, 14, TA_SUCCESS, 237, 8.33, 13, 252-13 }, + { TST_MINUS_DM, 0, 0, 0, 251, 14, TA_SUCCESS, 238, 9.672, 13, 252-13 }, /* Last Value */ + + { TST_MINUS_DI, 1, 0, 0, 251, 14, TA_SUCCESS, 0, 30.1684, 14, 252-14 }, /* First Value */ + { TST_MINUS_DI, 0, 0, 0, 251, 14, TA_SUCCESS, 14, 24.969182, 14, 252-14 }, + { TST_MINUS_DI, 0, 0, 0, 251, 14, TA_SUCCESS, 237, 21.1988, 14, 252-14 }, /* Last Value */ + + { TST_DX, 1, 0, 0, 251, 14, TA_SUCCESS, 0, 19.3689, 14, 252-14 }, /* First Value */ + { TST_DX, 0, 0, 0, 251, 14, TA_SUCCESS, 1, 9.7131, 14, 252-14 }, + { TST_DX, 0, 0, 0, 251, 14, TA_SUCCESS, 2, 17.2905, 14, 252-14 }, + { TST_DX, 0, 0, 0, 251, 14, TA_SUCCESS, 236, 10.6731, 14, 252-14 }, + { TST_DX, 0, 0, 0, 251, 14, TA_SUCCESS, 237, 0.4722, 14, 252-14 }, /* Last Value */ + + { TST_ADX, 1, 0, 0, 251, 14, TA_SUCCESS, 0, 23.0000, 27, 252-27 }, /* First Value */ + { TST_ADX, 0, 0, 0, 251, 14, TA_SUCCESS, 1, 22.0802, 27, 252-27 }, + { TST_ADX, 0, 0, 0, 251, 14, TA_SUCCESS, 223, 16.6840, 27, 252-27 }, + { TST_ADX, 0, 0, 0, 251, 14, TA_SUCCESS, 224, 15.5260, 27, 252-27 } /* Last Value */ + +#if 0 + /*These were the values when using integer rounding in the logic */ + { TST_ADXR,1, 0, 0, 251, 14, TA_SUCCESS, 0, 19.0, 40, 252-40 }, /* First Value */ + { TST_ADXR,0, 0, 0, 251, 14, TA_SUCCESS, 1, 18.0, 40, 252-40 }, + { TST_ADXR,0, 0, 0, 251, 14, TA_SUCCESS, 210, 22.0, 40, 252-40 }, + { TST_ADXR,0, 0, 0, 251, 14, TA_SUCCESS, 211, 21.0, 40, 252-40 }, /* Last Value */ + + { TST_PLUS_DI, 1, 0, 0, 251, 14, TA_SUCCESS, 0, 20.0, 14, 252-14 }, /* First Value */ + { TST_PLUS_DI, 0, 0, 0, 251, 14, TA_SUCCESS, 13, 22.0, 14, 252-14 }, + { TST_PLUS_DI, 0, 0, 0, 251, 14, TA_SUCCESS, 14, 20.0, 14, 252-14 }, + { TST_PLUS_DI, 0, 0, 0, 251, 14, TA_SUCCESS, 237, 21.0, 14, 252-14 }, /* Last Value */ + + { TST_MINUS_DI, 1, 0, 0, 251, 14, TA_SUCCESS, 0, 30.0, 14, 252-14 }, /* First Value */ + { TST_MINUS_DI, 0, 0, 0, 251, 14, TA_SUCCESS, 14, 25.0, 14, 252-14 }, + { TST_MINUS_DI, 0, 0, 0, 251, 14, TA_SUCCESS, 237, 21.0, 14, 252-14 }, /* Last Value */ + + { TST_DX, 1, 0, 0, 251, 14, TA_SUCCESS, 0, 20.0, 14, 252-14 }, /* First Value */ + { TST_DX, 0, 0, 0, 251, 14, TA_SUCCESS, 1, 9.0, 14, 252-14 }, + { TST_DX, 0, 0, 0, 251, 14, TA_SUCCESS, 2, 18.0, 14, 252-14 }, + { TST_DX, 0, 0, 0, 251, 14, TA_SUCCESS, 236, 10.0, 14, 252-14 }, + { TST_DX, 0, 0, 0, 251, 14, TA_SUCCESS, 237, 0.0, 14, 252-14 }, /* Last Value */ + + { TST_ADX, 1, 0, 0, 251, 14, TA_SUCCESS, 0, 23.0, 27, 252-27 }, /* First Value */ + { TST_ADX, 0, 0, 0, 251, 14, TA_SUCCESS, 1, 22.0, 27, 252-27 }, + { TST_ADX, 0, 0, 0, 251, 14, TA_SUCCESS, 223, 17.0, 27, 252-27 }, + { TST_ADX, 0, 0, 0, 251, 14, TA_SUCCESS, 224, 16.0, 27, 252-27 } /* Last Value */ +#endif +}; + +#define NB_TEST (sizeof(tableTest)/sizeof(TA_Test)) + +/**** Global functions definitions. ****/ +ErrorNumber test_func_adx( TA_History *history ) +{ + unsigned int i; + ErrorNumber retValue; + + /* Re-initialize all the unstable period to zero. */ + TA_SetUnstablePeriod( TA_FUNC_UNST_ALL, 0 ); + + for( i=0; i < NB_TEST; i++ ) + { + if( (int)tableTest[i].expectedNbElement > (int)history->nbBars ) + { + printf( "%s Failed Bad Parameter for Test #%d (%d,%d)\n", __FILE__, + i, tableTest[i].expectedNbElement, history->nbBars ); + return TA_TESTUTIL_TFRR_BAD_PARAM; + } + + retValue = do_test( history, &tableTest[i] ); + if( retValue != 0 ) + { + printf( "%s Failed Test #%d (Code=%d)\n", __FILE__, + i, retValue ); + return retValue; + } + } + + /* Re-initialize all the unstable period to zero. */ + TA_SetUnstablePeriod( TA_FUNC_UNST_ALL, 0 ); + + /* All test succeed. */ + return TA_TEST_PASS; +} + +/**** Local functions definitions. ****/ +static TA_RetCode rangeTestFunction( TA_Integer startIdx, + TA_Integer endIdx, + TA_Real *outputBuffer, + TA_Integer *outputBufferInt, + TA_Integer *outBegIdx, + TA_Integer *outNbElement, + TA_Integer *lookback, + void *opaqueData, + unsigned int outputNb, + unsigned int *isOutputInteger ) +{ + TA_RetCode retCode; + TA_RangeTestParam *testParam; + + (void)outputNb; + (void)outputBufferInt; + + *isOutputInteger = 0; + + testParam = (TA_RangeTestParam *)opaqueData; + + switch( testParam->test->id ) + { + case TST_MINUS_DM: + retCode = TA_MINUS_DM( startIdx, + endIdx, + testParam->high, + testParam->low, + testParam->test->optInTimePeriod, + outBegIdx, + outNbElement, + outputBuffer ); + + *lookback = TA_MINUS_DM_Lookback( testParam->test->optInTimePeriod ); + break; + + case TST_MINUS_DI: + retCode = TA_MINUS_DI( startIdx, + endIdx, + testParam->high, + testParam->low, + testParam->close, + testParam->test->optInTimePeriod, + outBegIdx, + outNbElement, + outputBuffer ); + + *lookback = TA_MINUS_DI_Lookback( testParam->test->optInTimePeriod ); + break; + + case TST_DX: + retCode = TA_DX( startIdx, + endIdx, + testParam->high, + testParam->low, + testParam->close, + testParam->test->optInTimePeriod, + outBegIdx, + outNbElement, + outputBuffer ); + + *lookback = TA_DX_Lookback( testParam->test->optInTimePeriod ); + break; + + case TST_ADX: + retCode = TA_ADX( startIdx, + endIdx, + testParam->high, + testParam->low, + testParam->close, + testParam->test->optInTimePeriod, + outBegIdx, + outNbElement, + outputBuffer ); + + *lookback = TA_ADX_Lookback( testParam->test->optInTimePeriod ); + break; + + case TST_PLUS_DM: + retCode = TA_PLUS_DM( startIdx, + endIdx, + testParam->high, + testParam->low, + testParam->test->optInTimePeriod, + outBegIdx, + outNbElement, + outputBuffer ); + + *lookback = TA_PLUS_DM_Lookback( testParam->test->optInTimePeriod ); + break; + + case TST_PLUS_DI: + retCode = TA_PLUS_DI( startIdx, + endIdx, + testParam->high, + testParam->low, + testParam->close, + testParam->test->optInTimePeriod, + outBegIdx, + outNbElement, + outputBuffer ); + + *lookback = TA_PLUS_DI_Lookback( testParam->test->optInTimePeriod ); + break; + + case TST_ADXR: + retCode = TA_ADXR( startIdx, + endIdx, + testParam->high, + testParam->low, + testParam->close, + testParam->test->optInTimePeriod, + outBegIdx, + outNbElement, + outputBuffer ); + + *lookback = TA_ADXR_Lookback( testParam->test->optInTimePeriod ); + break; + default: + retCode = TA_BAD_PARAM; + } + + return retCode; +} + +static ErrorNumber do_test( const TA_History *history, + const TA_Test *test ) +{ + TA_RetCode retCode; + ErrorNumber errNb; + TA_Integer outBegIdx; + TA_Integer outNbElement; + TA_RangeTestParam testParam; + + /* Set to NAN all the elements of the gBuffers. */ + clearAllBuffers(); + + /* Build the input. */ + setInputBuffer( 0, history->high, history->nbBars ); + setInputBuffer( 1, history->low, history->nbBars ); + setInputBuffer( 2, history->close, history->nbBars ); + setInputBuffer( 3, history->high, history->nbBars ); + + /* Make a simple first call. */ + switch( test->id ) + { + case TST_MINUS_DM: + retCode = TA_SetUnstablePeriod( + TA_FUNC_UNST_MINUS_DM, + test->unstablePeriod ); + if( retCode != TA_SUCCESS ) + return TA_TEST_TFRR_SETUNSTABLE_PERIOD_FAIL; + + retCode = TA_MINUS_DM( test->startIdx, + test->endIdx, + gBuffer[0].in, + gBuffer[1].in, + test->optInTimePeriod, + &outBegIdx, + &outNbElement, + gBuffer[0].out0 ); + break; + + case TST_MINUS_DI: + retCode = TA_SetUnstablePeriod( TA_FUNC_UNST_MINUS_DI, + test->unstablePeriod ); + if( retCode != TA_SUCCESS ) + return TA_TEST_TFRR_SETUNSTABLE_PERIOD_FAIL; + + retCode = TA_MINUS_DI( test->startIdx, + test->endIdx, + gBuffer[0].in, + gBuffer[1].in, + gBuffer[2].in, + test->optInTimePeriod, + &outBegIdx, + &outNbElement, + gBuffer[0].out0 ); + break; + + case TST_DX: + retCode = TA_SetUnstablePeriod( TA_FUNC_UNST_DX, + test->unstablePeriod ); + if( retCode != TA_SUCCESS ) + return TA_TEST_TFRR_SETUNSTABLE_PERIOD_FAIL; + + retCode = TA_DX( test->startIdx, + test->endIdx, + gBuffer[0].in, + gBuffer[1].in, + gBuffer[2].in, + test->optInTimePeriod, + &outBegIdx, + &outNbElement, + gBuffer[0].out0 ); + break; + + case TST_ADX: + retCode = TA_SetUnstablePeriod( TA_FUNC_UNST_ADX, + test->unstablePeriod ); + if( retCode != TA_SUCCESS ) + return TA_TEST_TFRR_SETUNSTABLE_PERIOD_FAIL; + + retCode = TA_ADX( test->startIdx, + test->endIdx, + gBuffer[0].in, + gBuffer[1].in, + gBuffer[2].in, + test->optInTimePeriod, + &outBegIdx, + &outNbElement, + gBuffer[0].out0 ); + break; + + case TST_PLUS_DM: + retCode = TA_SetUnstablePeriod( TA_FUNC_UNST_PLUS_DM, + test->unstablePeriod ); + if( retCode != TA_SUCCESS ) + return TA_TEST_TFRR_SETUNSTABLE_PERIOD_FAIL; + + retCode = TA_PLUS_DM( test->startIdx, + test->endIdx, + gBuffer[0].in, + gBuffer[1].in, + test->optInTimePeriod, + &outBegIdx, + &outNbElement, + gBuffer[0].out0 ); + break; + + case TST_PLUS_DI: + retCode = TA_SetUnstablePeriod( TA_FUNC_UNST_PLUS_DI, + test->unstablePeriod ); + if( retCode != TA_SUCCESS ) + return TA_TEST_TFRR_SETUNSTABLE_PERIOD_FAIL; + + retCode = TA_PLUS_DI( test->startIdx, + test->endIdx, + gBuffer[0].in, + gBuffer[1].in, + gBuffer[2].in, + test->optInTimePeriod, + &outBegIdx, + &outNbElement, + gBuffer[0].out0 ); + break; + + case TST_ADXR: + retCode = TA_SetUnstablePeriod( TA_FUNC_UNST_ADX, + test->unstablePeriod ); + if( retCode != TA_SUCCESS ) + return TA_TEST_TFRR_SETUNSTABLE_PERIOD_FAIL; + + retCode = TA_ADXR( test->startIdx, + test->endIdx, + gBuffer[0].in, + gBuffer[1].in, + gBuffer[2].in, + test->optInTimePeriod, + &outBegIdx, + &outNbElement, + gBuffer[0].out0 ); + break; + default: + retCode = TA_BAD_PARAM; + } + + /* Verify that the inputs were preserved. */ + errNb = checkDataSame( gBuffer[0].in, history->high, history->nbBars ); + if( errNb != TA_TEST_PASS ) + return errNb; + errNb = checkDataSame( gBuffer[1].in, history->low, history->nbBars ); + if( errNb != TA_TEST_PASS ) + return errNb; + errNb = checkDataSame( gBuffer[2].in, history->close, history->nbBars ); + if( errNb != TA_TEST_PASS ) + return errNb; + + CHECK_EXPECTED_VALUE( gBuffer[0].out0, 0 ); + + outBegIdx = outNbElement = 0; + + /* Make another call where the input and the output are the + * same buffer. + */ + switch( test->id ) + { + case TST_MINUS_DM: + retCode = TA_MINUS_DM( test->startIdx, + test->endIdx, + gBuffer[3].in, + gBuffer[1].in, + test->optInTimePeriod, + &outBegIdx, + &outNbElement, + gBuffer[3].in ); + break; + + case TST_MINUS_DI: + retCode = TA_MINUS_DI( test->startIdx, + test->endIdx, + gBuffer[3].in, + gBuffer[1].in, + gBuffer[2].in, + test->optInTimePeriod, + &outBegIdx, + &outNbElement, + gBuffer[3].in ); + break; + + case TST_DX: + retCode = TA_DX( test->startIdx, + test->endIdx, + gBuffer[3].in, + gBuffer[1].in, + gBuffer[2].in, + test->optInTimePeriod, + &outBegIdx, + &outNbElement, + gBuffer[3].in ); + break; + + case TST_ADX: + retCode = TA_ADX( test->startIdx, + test->endIdx, + gBuffer[3].in, + gBuffer[1].in, + gBuffer[2].in, + test->optInTimePeriod, + &outBegIdx, + &outNbElement, + gBuffer[3].in ); + break; + + case TST_PLUS_DM: + retCode = TA_PLUS_DM( test->startIdx, + test->endIdx, + gBuffer[3].in, + gBuffer[1].in, + test->optInTimePeriod, + &outBegIdx, + &outNbElement, + gBuffer[3].in ); + break; + + case TST_PLUS_DI: + retCode = TA_PLUS_DI( test->startIdx, + test->endIdx, + gBuffer[3].in, + gBuffer[1].in, + gBuffer[2].in, + test->optInTimePeriod, + &outBegIdx, + &outNbElement, + gBuffer[3].in ); + break; + + case TST_ADXR: + retCode = TA_ADXR( test->startIdx, + test->endIdx, + gBuffer[3].in, + gBuffer[1].in, + gBuffer[2].in, + test->optInTimePeriod, + &outBegIdx, + &outNbElement, + gBuffer[3].in ); + break; + default: + retCode = TA_BAD_PARAM; + } + + /* Verify that the inputs were preserved. */ + errNb = checkDataSame( gBuffer[1].in, history->low, history->nbBars ); + if( errNb != TA_TEST_PASS ) + return errNb; + errNb = checkDataSame( gBuffer[2].in, history->close, history->nbBars ); + if( errNb != TA_TEST_PASS ) + return errNb; + + /* The previous call should have the same output as this call. + * + * checkSameContent verify that all value different than NAN in + * the first parameter is identical in the second parameter. + */ + errNb = checkSameContent( gBuffer[0].out0, gBuffer[3].in ); + if( errNb != TA_TEST_PASS ) + return errNb; + + CHECK_EXPECTED_VALUE( gBuffer[3].in, 0 ); + + if( errNb != TA_TEST_PASS ) + return errNb; + + /* Do a systematic test of most of the + * possible startIdx/endIdx range. + */ + testParam.test = test; + testParam.high = history->high; + testParam.low = history->low; + testParam.close = history->close; + + if( test->doRangeTestFlag ) + { + switch( test->id ) + { + case TST_MINUS_DM: + errNb = doRangeTest( rangeTestFunction, + TA_FUNC_UNST_MINUS_DM, + (void *)&testParam, 1, 0 ); + break; + + case TST_MINUS_DI: + errNb = doRangeTest( rangeTestFunction, + TA_FUNC_UNST_MINUS_DI, + (void *)&testParam, 1, 2 ); + break; + + case TST_DX: + errNb = doRangeTest( rangeTestFunction, + TA_FUNC_UNST_DX, + (void *)&testParam, 1, 2 ); + break; + + case TST_ADX: + errNb = doRangeTest( rangeTestFunction, + TA_FUNC_UNST_ADX, + (void *)&testParam, 1, 2 ); + break; + + case TST_PLUS_DM: + errNb = doRangeTest( rangeTestFunction, + TA_FUNC_UNST_PLUS_DM, + (void *)&testParam, 1, 0 ); + break; + + case TST_PLUS_DI: + errNb = doRangeTest( rangeTestFunction, + TA_FUNC_UNST_PLUS_DI, + (void *)&testParam, 1, 2 ); + break; + + case TST_ADXR: + errNb = doRangeTest( rangeTestFunction, + TA_FUNC_UNST_ADX, + (void *)&testParam, 1, 2 ); + break; + } + + if( errNb != TA_TEST_PASS ) + return errNb; + } + + return TA_TEST_PASS; +} diff --git a/src/tools/ta_regtest/ta_test_func/test_bbands.c b/src/tools/ta_regtest/ta_test_func/test_bbands.c new file mode 100644 index 000000000..d77741977 --- /dev/null +++ b/src/tools/ta_regtest/ta_test_func/test_bbands.c @@ -0,0 +1,533 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * MF Mario Fortier + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 112400 MF First version. + * + */ + +/* Description: + * Regression test of Bollinger Bands (BBANDS). + */ + +/**** Headers ****/ +#include +#include + +#include "ta_test_priv.h" +#include "ta_test_func.h" +#include "ta_utility.h" +#include "ta_memory.h" + +/**** External functions declarations. ****/ +/* None */ + +/**** External variables declarations. ****/ +/* None */ + +/**** Global variables definitions. ****/ +/* None */ + +/**** Local declarations. ****/ +typedef struct +{ + TA_Integer doRangeTestFlag; + + TA_Integer startIdx; + TA_Integer endIdx; + + TA_Integer optInTimePeriod; + TA_Real optInNbDevUp; + TA_Real optInNbDevDn; + TA_Integer optInMethod_3; + TA_Integer compatibility; + + TA_RetCode expectedRetCode; + + TA_Integer expectedBegIdx; + TA_Integer expectedNbElement; + + TA_Integer oneOfTheExpectedOutRealIndex0; + TA_Real oneOfTheExpectedOutReal0; + + TA_Integer oneOfTheExpectedOutRealIndex1; + TA_Real oneOfTheExpectedOutReal1; + + TA_Integer oneOfTheExpectedOutRealIndex2; + TA_Real oneOfTheExpectedOutReal2; + +} TA_Test; + +typedef struct +{ + const TA_Test *test; + const TA_Real *close; +} TA_RangeTestParam; + +/**** Local functions declarations. ****/ +static ErrorNumber do_test( const TA_History *history, + const TA_Test *test ); + +/**** Local variables definitions. ****/ +static TA_Test tableTest[] = +{ + + /****************************/ + /* BBANDS - CLASSIC - EMA */ + /****************************/ + + /* No multiplier */ + /* With upper band multiplier only. */ + /* With lower band multiplier only. */ + /* With identical upper/lower multiplier. */ + { 0, 0, 251, 20, 2.0, 2.0, TA_MAType_EMA, TA_COMPATIBILITY_DEFAULT, TA_SUCCESS, + 19, 252-19, + 13, 93.674, /* Upper */ + 13, 87.679, /* Middle */ + 13, 81.685 }, /* Lower */ + + { 0, 0, 251, 20, 2.0, 2.0, TA_MAType_EMA, TA_COMPATIBILITY_DEFAULT, TA_SUCCESS, + 19, 252-19, + 0, 98.0734, /* Upper */ + 0, 92.8910, /* Middle */ + 0, 87.7086 }, /* Lower */ + /* With distinctive upper/lower multiplier. */ + + /****************************/ + /* BBANDS - CLASSIC - SMA */ + /****************************/ + /* No multiplier */ + /* With upper band multiplier only. */ + /* With lower band multiplier only. */ + /* With identical upper/lower multiplier. */ + { 1, 0, 251, 20, 2.0, 2.0, TA_MAType_SMA, TA_COMPATIBILITY_DEFAULT, TA_SUCCESS, + 19, 252-19, + 0, 98.0734, /* Upper */ + 0, 92.8910, /* Middle */ + 0, 87.7086 }, /* Lower */ + /* With distinctive upper/lower multiplier. */ + + + /******************************/ + /* BBANDS - METASTOCK - SMA */ + /******************************/ + + /* No multiplier */ + /* With upper band multiplier only. */ + /* With lower band multiplier only. */ + + /* With identical upper/lower multiplier. */ + { 1, 0, 251, 20, 2.0, 2.0, TA_MAType_SMA, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, + 19, 252-19, + 0, 98.0734, /* Upper */ + 0, 92.8910, /* Middle */ + 0, 87.7086 }, /* Lower */ + + /* With distinctive upper/lower multiplier. */ + + /******************************/ + /* BBANDS - METASTOCK - EMA */ + /******************************/ + + /* No multiplier */ + { 1, 0, 251, 20, 1.0, 1.0, TA_MAType_EMA, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, + 19, 252-19, + 0, 94.6914, /* Upper */ + 0, 92.1002, /* Middle */ + 0, 89.5090 }, /* Lower */ + { 0, 0, 251, 20, 1.0, 1.0, TA_MAType_EMA, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, + 19, 252-19, + 3, 94.0477, /* Upper */ + 3, 90.7270, /* Middle */ + 3, 87.4063 }, /* Lower */ + { 0, 0, 251, 20, 1.0, 1.0, TA_MAType_EMA, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, + 19, 252-19, + 252-20, 111.5415, /* Upper */ + 252-20, 108.5265, /* Middle */ + 252-20, 105.5115 }, /* Lower */ + + /* With upper band multiplier only. */ + { 0, 0, 251, 20, 1.5, 1.0, TA_MAType_EMA, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, + 19, 252-19, + 0, 95.9870, /* Upper */ + 0, 92.1002, /* Middle */ + 0, 89.5090}, /* Lower */ + { 0, 0, 251, 20, 1.5, 1.0, TA_MAType_EMA, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, + 19, 252-19, + 3, 95.7080, /* Upper */ + 3, 90.7270, /* Middle */ + 3, 87.4063}, /* Lower */ + { 0, 0, 251, 20, 1.5, 1.0, TA_MAType_EMA, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, + 19, 252-19, + 252-20, 113.0490, /* Upper */ + 252-20, 108.5265, /* Middle */ + 252-20, 105.5115 }, /* Lower */ + + /* With lower band multiplier only. */ + { 1, 0, 251, 20, 1.0, 1.5, TA_MAType_EMA, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, + 19, 252-19, + 0, 94.6914, /* Upper */ + 0, 92.1002, /* Middle */ + 0, 88.2134 }, /* Lower */ + { 0, 0, 251, 20, 1.0, 1.5, TA_MAType_EMA, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, + 19, 252-19, + 3, 94.0477, /* Upper */ + 3, 90.7270, /* Middle */ + 3, 85.7460}, /* Lower */ + { 0, 0, 251, 20, 1.0, 1.5, TA_MAType_EMA, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, + 19, 252-19, + 252-20, 111.5415, /* Upper */ + 252-20, 108.5265, /* Middle */ + 252-20, 104.0040}, /* Lower */ + + /* With identical upper/lower multiplier. */ + { 0, 0, 251, 20, 2.0, 2.0, TA_MAType_EMA, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, + 19, 252-19, + 0, 97.2826, /* Upper */ + 0, 92.1002, /* Middle */ + 0, 86.9178}, /* Lower */ + { 0, 0, 251, 20, 2.0, 2.0, TA_MAType_EMA, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, + 19, 252-19, + 1, 97.2637, /* Upper */ + 1, 91.7454, /* Middle */ + 1, 86.2271}, /* Lower */ + { 0, 0, 251, 20, 2.0, 2.0, TA_MAType_EMA, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, + 19, 252-19, + 252-20, 114.5564, /* Upper */ + 252-20, 108.5265, /* Middle */ + 252-20, 102.4965}, /* Lower */ + + /* With distinctive upper/lower multiplier. */ + { 0, 0, 251, 20, 2.0, 1.5, TA_MAType_EMA, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, + 19, 252-19, + 0, 97.2826, /* Upper */ + 0, 92.1002, /* Middle */ + 0, 88.2134 }, /* Lower */ + { 0, 0, 251, 20, 2.0, 1.5, TA_MAType_EMA, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, + 19, 252-19, + 3, 97.3684, /* Upper */ + 3, 90.7270, /* Middle */ + 3, 85.7460}, /* Lower */ + { 0, 0, 251, 20, 2.0, 1.5, TA_MAType_EMA, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, + 19, 252-19, + 252-20, 114.5564, /* Upper */ + 252-20, 108.5265, /* Middle */ + 252-20, 104.0040} /* Lower */ + +}; + +#define NB_TEST (sizeof(tableTest)/sizeof(TA_Test)) + +/**** Global functions definitions. ****/ +ErrorNumber test_func_bbands( TA_History *history ) +{ + unsigned int i; + ErrorNumber retValue; + + for( i=0; i < NB_TEST; i++ ) + { + + if( (int)tableTest[i].expectedNbElement > (int)history->nbBars ) + { + printf( "%s Failed Bad Parameter for Test #%d (%d,%d)\n", __FILE__, + i, + tableTest[i].expectedNbElement, + history->nbBars ); + return TA_TESTUTIL_TFRR_BAD_PARAM; + } + + retValue = do_test( history, &tableTest[i] ); + if( retValue != 0 ) + { + printf( "%s Failed Test #%d (Code=%d)\n", __FILE__, i, retValue ); + return retValue; + } + } + + /* All test succeed. */ + return TA_TEST_PASS; +} + +/**** Local functions definitions. ****/ +static TA_RetCode rangeTestFunction( TA_Integer startIdx, + TA_Integer endIdx, + TA_Real *outputBuffer, + TA_Integer *outputBufferInt, + TA_Integer *outBegIdx, + TA_Integer *outNbElement, + TA_Integer *lookback, + void *opaqueData, + unsigned int outputNb, + unsigned int *isOutputInteger ) +{ + TA_RetCode retCode; + TA_RangeTestParam *testParam; + TA_Real *dummyBuffer1, *dummyBuffer2; + TA_Real *out1, *out2, *out3; + + (void)outputBufferInt; + + *isOutputInteger = 0; + + testParam = (TA_RangeTestParam *)opaqueData; + + dummyBuffer1 = TA_Malloc( ((endIdx-startIdx)+1)*sizeof(TA_Real)); + if( !dummyBuffer1 ) + return TA_ALLOC_ERR; + + dummyBuffer2 = TA_Malloc( ((endIdx-startIdx)+1)*sizeof(TA_Real)); + if( !dummyBuffer2 ) + { + TA_Free( dummyBuffer1 ); + return TA_ALLOC_ERR; + } + + switch( outputNb ) + { + case 0: + out1 = outputBuffer; + out2 = dummyBuffer1; + out3 = dummyBuffer2; + break; + case 1: + out2 = outputBuffer; + out1 = dummyBuffer1; + out3 = dummyBuffer2; + break; + case 2: + out3 = outputBuffer; + out2 = dummyBuffer1; + out1 = dummyBuffer2; + break; + default: + TA_Free( dummyBuffer1 ); + TA_Free( dummyBuffer2 ); + return TA_BAD_PARAM; + } + + retCode = TA_BBANDS( startIdx, + endIdx, + testParam->close, + testParam->test->optInTimePeriod, + testParam->test->optInNbDevUp, + testParam->test->optInNbDevDn, + (TA_MAType)testParam->test->optInMethod_3, + outBegIdx, outNbElement, + out1, out2, out3 ); + + *lookback = TA_BBANDS_Lookback( testParam->test->optInTimePeriod, + testParam->test->optInNbDevUp, + testParam->test->optInNbDevDn, + (TA_MAType)testParam->test->optInMethod_3 ); + + TA_Free( dummyBuffer1 ); + TA_Free( dummyBuffer2 ); + + return retCode; +} + + +static ErrorNumber do_test( const TA_History *history, + const TA_Test *test ) +{ + TA_RetCode retCode; + ErrorNumber errNb; + TA_Integer outBegIdx; + TA_Integer outNbElement; + TA_RangeTestParam testParam; + + retCode = TA_SetUnstablePeriod( TA_FUNC_UNST_EMA, 0 ); + if( retCode != TA_SUCCESS ) + return TA_TEST_TFRR_SETUNSTABLE_PERIOD_FAIL; + + /* Set to NAN all the elements of the gBuffers. */ + clearAllBuffers(); + + /* Build the input. */ + setInputBuffer( 0, history->close, history->nbBars ); + setInputBuffer( 1, history->close, history->nbBars ); + setInputBuffer( 2, history->close, history->nbBars ); + setInputBuffer( 3, history->close, history->nbBars ); + + TA_SetCompatibility( (TA_Compatibility)test->compatibility ); + + /* Make a simple first call. */ + retCode = TA_BBANDS( test->startIdx, + test->endIdx, + gBuffer[0].in, + test->optInTimePeriod, + test->optInNbDevUp, + test->optInNbDevDn, + (TA_MAType)test->optInMethod_3, + + &outBegIdx, &outNbElement, + gBuffer[0].out0, + gBuffer[0].out1, + gBuffer[0].out2 ); + + errNb = checkDataSame( gBuffer[0].in, history->close, history->nbBars ); + if( errNb != TA_TEST_PASS ) + return errNb; + + CHECK_EXPECTED_VALUE( gBuffer[0].out0, 0 ); + CHECK_EXPECTED_VALUE( gBuffer[0].out1, 1 ); + CHECK_EXPECTED_VALUE( gBuffer[0].out2, 2 ); + + outBegIdx = outNbElement = 0; + + /* Make another call where the input and the output are the + * same buffer. + */ + retCode = TA_BBANDS( test->startIdx, + test->endIdx, + gBuffer[1].in, + test->optInTimePeriod, + test->optInNbDevUp, + test->optInNbDevDn, + (TA_MAType)test->optInMethod_3, + &outBegIdx, &outNbElement, + gBuffer[1].in, gBuffer[1].out1, gBuffer[1].out2 ); + + /* The previous call should have the same output + * as this call. + * + * checkSameContent verify that all value different than NAN in + * the first parameter is identical in the second parameter. + */ + errNb = checkSameContent( gBuffer[0].out0, gBuffer[1].in ); + if( errNb != TA_TEST_PASS ) + return errNb; + + CHECK_EXPECTED_VALUE( gBuffer[1].in, 0 ); + CHECK_EXPECTED_VALUE( gBuffer[1].out1, 1 ); + CHECK_EXPECTED_VALUE( gBuffer[1].out2, 2 ); + + outBegIdx = outNbElement = 0; + + /* Make another call where the input and the output are the + * same buffer. + */ + retCode = TA_BBANDS( test->startIdx, + test->endIdx, + gBuffer[2].in, + test->optInTimePeriod, + test->optInNbDevUp, + test->optInNbDevDn, + (TA_MAType)test->optInMethod_3, + &outBegIdx, &outNbElement, + gBuffer[2].out1, + gBuffer[2].in, + gBuffer[2].out2 ); + + /* The previous call should have the same output + * as this call. + * + * checkSameContent verify that all value different than NAN in + * the first parameter is identical in the second parameter. + */ + errNb = checkSameContent( gBuffer[1].out1, gBuffer[2].in ); + if( errNb != TA_TEST_PASS ) + return errNb; + + CHECK_EXPECTED_VALUE( gBuffer[2].out1, 0 ); + CHECK_EXPECTED_VALUE( gBuffer[2].in, 1 ); + CHECK_EXPECTED_VALUE( gBuffer[2].out2, 2 ); + + outBegIdx = outNbElement = 0; + + /* Make another call where the input and the output are the + * same buffer. + */ + retCode = TA_BBANDS( test->startIdx, + test->endIdx, + gBuffer[3].in, + test->optInTimePeriod, + test->optInNbDevUp, + test->optInNbDevDn, + (TA_MAType)test->optInMethod_3, + &outBegIdx, &outNbElement, + gBuffer[3].out0, + gBuffer[3].out1, + gBuffer[3].in ); + + /* The previous call should have the same output + * as this call. + * + * checkSameContent verify that all value different than NAN in + * the first parameter is identical in the second parameter. + */ + errNb = checkSameContent( gBuffer[2].out2, gBuffer[3].in ); + if( errNb != TA_TEST_PASS ) + return errNb; + + CHECK_EXPECTED_VALUE( gBuffer[3].out0, 0 ); + CHECK_EXPECTED_VALUE( gBuffer[3].out1, 1 ); + CHECK_EXPECTED_VALUE( gBuffer[3].in, 2 ); + + /* Do a systematic test of most of the + * possible startIdx/endIdx range. + */ + testParam.test = test; + testParam.close = history->close; + + if( test->doRangeTestFlag ) + { + if( test->optInMethod_3 == TA_MAType_EMA ) + { + errNb = doRangeTest( rangeTestFunction, + TA_FUNC_UNST_EMA, + (void *)&testParam, 3, 0 ); + } + else + { + errNb = doRangeTest( rangeTestFunction, + TA_FUNC_UNST_NONE, + (void *)&testParam, 3, 0 ); + } + + if( errNb != TA_TEST_PASS ) + return errNb; + } + + return TA_TEST_PASS; +} diff --git a/src/tools/ta_regtest/ta_test_func/test_candlestick.c b/src/tools/ta_regtest/ta_test_func/test_candlestick.c new file mode 100644 index 000000000..5ce05a43b --- /dev/null +++ b/src/tools/ta_regtest/ta_test_func/test_candlestick.c @@ -0,0 +1,744 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * MF Mario Fortier + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 082304 MF First version. + * 041305 MF Add latest list of function. + */ + +/* Description: + * Test functions for candlestick. + */ + +/**** Headers ****/ +#include +#include + +#include "ta_test_priv.h" +#include "ta_test_func.h" +#include "ta_utility.h" + +/**** External functions declarations. ****/ +/* None */ + +/**** External variables declarations. ****/ +/* None */ + +/**** Global variables definitions. ****/ +/* None */ + +/**** Local declarations. ****/ +#define MAX_OPTIN_PARAM 5 +#define MAX_TESTED_OUTPUT 3 + +TA_RetCode TA_SetCandleSettings( TA_CandleSettingType settingType, + TA_RangeType rangeType, + int avgPeriod, + double factor ); + +typedef struct +{ + TA_RangeType bodyLong_type; + int bodyLong_avg; + double bodyLong_factor; + TA_RangeType bodyVeryLong_type; + int bodyVeryLong_avg; + double bodyVeryLong_factor; + TA_RangeType bodyShort_type; + int bodyShort_avg; + double bodyShort_factor; + TA_RangeType bodyDoji_type; + int bodyDoji_avg; + double bodyDoji_factor; + TA_RangeType shadowLong_type; + int shadowLong_avg; + double shadowLong_factor; + TA_RangeType shadowVeryLong_type; + int shadowVeryLong_avg; + double shadowVeryLong_factor; + TA_RangeType shadowShort_type; + int shadowShort_avg; + double shadowShort_factor; + TA_RangeType shadowVeryShort_type; + int shadowVeryShort_avg; + double shadowVeryShort_factor; + TA_RangeType near_type; + int near_avg; + double near_factor; + TA_RangeType far_type; + int far_avg; + double far_factor; +} TA_CDLGlobals; + +typedef struct +{ + int index; + int value; +} TA_ExpectedOutput; + + +typedef struct +{ + /* Indicate which function will be called */ + const char *name; + + /* Indicate if ranging test should be done. + * (These tests are very time consuming). + */ + int doRangeTestFlag; + + /* Range for the function call. + * When both value are -1 a series of automated range + * tests are performed. + */ + TA_Integer startIdx; + TA_Integer endIdx; + + /* Up to 5 parameters depending of functions. + * Will be converted to integer when input is integer. + */ + TA_Real params[MAX_OPTIN_PARAM]; + + /* The expected return code. */ + TA_RetCode expectedRetCode; + + /* When return code is TA_SUCCESS, the following output's + * element are verified. + */ + TA_ExpectedOutput output[MAX_TESTED_OUTPUT]; +} TA_Test; + + +typedef struct +{ + /* Allows to pass key information as an + * opaque parameter for doRangeTest. + */ + const TA_Test *test; + const TA_Real *open; + const TA_Real *high; + const TA_Real *low; + const TA_Real *close; + + TA_ParamHolder *paramHolder; +} TA_RangeTestParam; + +/**** Local functions declarations. ****/ +static ErrorNumber do_test( const TA_History *history, + const TA_Test *test ); + +static ErrorNumber callCandlestick( TA_ParamHolder **paramHolderPtr, + const char *name, + int startIdx, + int endIdx, + const double *inOpen, + const double *inHigh, + const double *inLow, + const double *inClose, + const double optInArray[], + int *outBegIdx, + int *outNbElement, + int outInteger[], + int *lookback, + TA_RetCode *retCode ); +/**** Local variables definitions. ****/ + +/* Some set of globals */ + +/* List of test to perform. */ +static TA_Test tableTest[] = +{ + { "CDL2CROWS",1, 0, 0, {0.0,0.0}, TA_SUCCESS, { {0,0}, {1,1} }}, + { "CDL3BLACKCROWS",1, 0, 0, {0.0,0.0}, TA_SUCCESS, { {0,0}, {1,1} }}, + { "CDL3INSIDE",1, 0, 0, {0.0,0.0}, TA_SUCCESS, { {0,0}, {1,1} }}, + { "CDL3LINESTRIKE",1, 0, 0, {0.0,0.0}, TA_SUCCESS, { {0,0}, {1,1} }}, + { "CDL3OUTSIDE",1, 0, 0, {0.0,0.0}, TA_SUCCESS, { {0,0}, {1,1} }}, + { "CDL3STARSINSOUTH",1, 0, 0, {0.0,0.0}, TA_SUCCESS, { {0,0}, {1,1} }}, + { "CDL3WHITESOLDIERS",1, 0, 0, {0.0,0.0}, TA_SUCCESS, { {0,0}, {1,1} }}, + { "CDLABANDONEDBABY",1, 0, 0, {0.0,0.0}, TA_SUCCESS, { {0,0}, {1,1} }}, + { "CDLADVANCEBLOCK",1, 0, 0, {0.0,0.0}, TA_SUCCESS, { {0,0}, {1,1} }}, + { "CDLBELTHOLD",1, 0, 0, {0.0,0.0}, TA_SUCCESS, { {0,0}, {1,1} }}, + { "CDLBREAKAWAY",1, 0, 0, {0.0,0.0}, TA_SUCCESS, { {0,0}, {1,1} }}, + { "CDLCLOSINGMARUBOZU",1, 0, 0, {0.0,0.0}, TA_SUCCESS, { {0,0}, {1,1} }}, + { "CDLCONCEALBABYSWALL",1, 0, 0, {0.0,0.0}, TA_SUCCESS, { {0,0}, {1,1} }}, + { "CDLCOUNTERATTACK",1, 0, 0, {0.0,0.0}, TA_SUCCESS, { {0,0}, {1,1} }}, + { "CDLDARKCLOUDCOVER",1, 0, 0, {0.0,0.0}, TA_SUCCESS, { {0,0}, {1,1} }}, + { "CDLDOJI",1, 0, 0, {0.0,0.0}, TA_SUCCESS, { {0,0}, {1,1} }}, + { "CDLDOJISTAR",1, 0, 0, {0.0,0.0}, TA_SUCCESS, { {0,0}, {1,1} }}, + { "CDLDRAGONFLYDOJI",1, 0, 0, {0.0,0.0}, TA_SUCCESS, { {0,0}, {1,1} }}, + { "CDLENGULFING",1, 0, 0, {0.0,0.0}, TA_SUCCESS, { {0,0}, {1,1} }}, + { "CDLEVENINGDOJISTAR",1, 0, 0, {0.0,0.0}, TA_SUCCESS, { {0,0}, {1,1} }}, + { "CDLEVENINGSTAR",1, 0, 0, {0.0,0.0}, TA_SUCCESS, { {0,0}, {1,1} }}, + { "CDLGAPSIDESIDEWHITE",1, 0, 0, {0.0,0.0}, TA_SUCCESS, { {0,0}, {1,1} }}, + { "CDLGRAVESTONEDOJI",1, 0, 0, {0.0,0.0}, TA_SUCCESS, { {0,0}, {1,1} }}, + { "CDLHAMMER",1, 0, 0, {0.0,0.0}, TA_SUCCESS, { {0,0}, {1,1} }}, + { "CDLHANGINGMAN",1, 0, 0, {0.0,0.0}, TA_SUCCESS, { {0,0}, {1,1} }}, + { "CDLHARAMI",1, 0, 0, {0.0,0.0}, TA_SUCCESS, { {0,0}, {1,1} }}, + { "CDLHARAMICROSS",1, 0, 0, {0.0,0.0}, TA_SUCCESS, { {0,0}, {1,1} }}, + { "CDLHIKKAKE",1, 0, 0, {0.0,0.0}, TA_SUCCESS, { {0,0}, {1,1} }}, + { "CDLHIKKAKEMOD",1, 0, 0, {0.0,0.0}, TA_SUCCESS, { {0,0}, {1,1} }}, + { "CDLHIGHWAVE",1, 0, 0, {0.0,0.0}, TA_SUCCESS, { {0,0}, {1,1} }}, + { "CDLHOMINGPIGEON",1, 0, 0, {0.0,0.0}, TA_SUCCESS, { {0,0}, {1,1} }}, + { "CDLIDENTICAL3CROWS",1, 0, 0, {0.0,0.0}, TA_SUCCESS, { {0,0}, {1,1} }}, + { "CDLINNECK",1, 0, 0, {0.0,0.0}, TA_SUCCESS, { {0,0}, {1,1} }}, + { "CDLINVERTEDHAMMER",1, 0, 0, {0.0,0.0}, TA_SUCCESS, { {0,0}, {1,1} }}, + { "CDLKICKING",1, 0, 0, {0.0,0.0}, TA_SUCCESS, { {0,0}, {1,1} }}, + { "CDLKICKINGBYLENGTH",1, 0, 0, {0.0,0.0}, TA_SUCCESS, { {0,0}, {1,1} }}, + { "CDLLADDERBOTTOM",1, 0, 0, {0.0,0.0}, TA_SUCCESS, { {0,0}, {1,1} }}, + { "CDLLONGLEGGEDDOJI",1, 0, 0, {0.0,0.0}, TA_SUCCESS, { {0,0}, {1,1} }}, + { "CDLLONGLINE",1, 0, 0, {0.0,0.0}, TA_SUCCESS, { {0,0}, {1,1} }}, + { "CDLMARUBOZU",1, 0, 0, {0.0,0.0}, TA_SUCCESS, { {0,0}, {1,1} }}, + { "CDLMATCHINGLOW",1, 0, 0, {0.0,0.0}, TA_SUCCESS, { {0,0}, {1,1} }}, + { "CDLMATHOLD",1, 0, 0, {0.0,0.0}, TA_SUCCESS, { {0,0}, {1,1} }}, + { "CDLMORNINGDOJISTAR",1, 0, 0, {0.0,0.0}, TA_SUCCESS, { {0,0}, {1,1} }}, + { "CDLMORNINGSTAR",1, 0, 0, {0.0,0.0}, TA_SUCCESS, { {0,0}, {1,1} }}, + { "CDLONNECK",1, 0, 0, {0.0,0.0}, TA_SUCCESS, { {0,0}, {1,1} }}, + { "CDLPIERCING",1, 0, 0, {0.0,0.0}, TA_SUCCESS, { {0,0}, {1,1} }}, + { "CDLRICKSHAWMAN",1, 0, 0, {0.0,0.0}, TA_SUCCESS, { {0,0}, {1,1} }}, + { "CDLRISEFALL3METHODS",1, 0, 0, {0.0,0.0}, TA_SUCCESS, { {0,0}, {1,1} }}, + { "CDLSEPARATINGLINES",1, 0, 0, {0.0,0.0}, TA_SUCCESS, { {0,0}, {1,1} }}, + { "CDLSHOOTINGSTAR",1, 0, 0, {0.0,0.0}, TA_SUCCESS, { {0,0}, {1,1} }}, + { "CDLSHORTLINE",1, 0, 0, {0.0,0.0}, TA_SUCCESS, { {0,0}, {1,1} }}, + { "CDLSPINNINGTOP",1, 0, 0, {0.0,0.0}, TA_SUCCESS, { {0,0}, {1,1} }}, + { "CDLSTALLEDPATTERN",1, 0, 0, {0.0,0.0}, TA_SUCCESS, { {0,0}, {1,1} }}, + { "CDLSTICKSANDWICH",1, 0, 0, {0.0,0.0}, TA_SUCCESS, { {0,0}, {1,1} }}, + { "CDLTAKURI",1, 0, 0, {0.0,0.0}, TA_SUCCESS, { {0,0}, {1,1} }}, + { "CDLTASUKIGAP",1, 0, 0, {0.0,0.0}, TA_SUCCESS, { {0,0}, {1,1} }}, + { "CDLTHRUSTING",1, 0, 0, {0.0,0.0}, TA_SUCCESS, { {0,0}, {1,1} }}, + { "CDLTRISTAR",1, 0, 0, {0.0,0.0}, TA_SUCCESS, { {0,0}, {1,1} }}, + { "CDLUNIQUE3RIVER",1, 0, 0, {0.0,0.0}, TA_SUCCESS, { {0,0}, {1,1} }}, + { "CDLUPSIDEGAP2CROWS",1, 0, 0, {0.0,0.0}, TA_SUCCESS, { {0,0}, {1,1} }}, + { "CDLXSIDEGAP3METHODS",1, 0, 0, {0.0,0.0}, TA_SUCCESS, { {0,0}, {1,1} }} +}; + +#define NB_TEST (sizeof(tableTest)/sizeof(TA_Test)) + +/**** Global functions definitions. ****/ +ErrorNumber test_candlestick( TA_History *history ) +{ + unsigned int i; + ErrorNumber retValue; + + /* Initialize all the unstable period with a large number that would + * break the logic if a candlestick unexpectably use a function affected + * by an unstable period. + */ + TA_SetUnstablePeriod( TA_FUNC_UNST_ALL, 20000 ); + + /* Perform sequentialy all the tests. */ + for( i=0; i < NB_TEST; i++ ) + { + retValue = do_test( history, &tableTest[i] ); + if( retValue != 0 ) + { + printf( "Failed Test #%d for %s (retValue=%d)\n", i, tableTest[i].name, retValue ); + return retValue; + } + } + + /* Re-initialize all the unstable period to zero. */ + TA_SetUnstablePeriod( TA_FUNC_UNST_ALL, 0 ); + + /* All tests succeed. */ + return TA_TEST_PASS; +} + +/**** Local functions definitions. ****/ + +/* Abstract call for all candlestick functions. + * + * Call the function by 'name'. + * + * Optional inputs are pass as an array of double. + * Elements will be converted to integer as needed. + * + * All outputs are returned in the remaining parameters. + * + * 'lookback' is the return value of the corresponding Lookback function. + * taFuncRetCode is the return code from the call of the TA function. + * + */ +static ErrorNumber callCandlestick( TA_ParamHolder **paramHolderPtr, + const char *name, + int startIdx, + int endIdx, + const double *inOpen, + const double *inHigh, + const double *inLow, + const double *inClose, + const double optInArray[], + int *outBegIdx, + int *outNbElement, + int outInteger[], + int *lookback, + TA_RetCode *taFuncRetCode ) +{ + + /* Use the abstract interface to call the function by name. */ + TA_ParamHolder *paramHolder; + const TA_FuncHandle *handle; + const TA_FuncInfo *funcInfo; + const TA_InputParameterInfo *inputInfo; + const TA_OutputParameterInfo *outputInfo; + + TA_RetCode retCode; + + (void)optInArray; + + /* Speed optimization if paramHolder is already initialized. */ + paramHolder = *paramHolderPtr; + if( !paramHolder ) + { + retCode = TA_GetFuncHandle( name, &handle ); + if( retCode != TA_SUCCESS ) + { + printf( "Can't get the function handle [%d]\n", retCode ); + return TA_TSTCDL_GETFUNCHANDLE_FAIL; + } + + retCode = TA_ParamHolderAlloc( handle, ¶mHolder ); + if( retCode != TA_SUCCESS ) + { + printf( "Can't allocate the param holder [%d]\n", retCode ); + return TA_TSTCDL_PARAMHOLDERALLOC_FAIL; + } + + *paramHolderPtr = paramHolder; + TA_GetFuncInfo( handle, &funcInfo ); + + /* Verify that the input are only OHLC. */ + if( funcInfo->nbInput != 1 ) + { + printf( "Candlestick are expected to use only OHLC as input.\n" ); + return TA_TSTCDL_NBINPUT_WRONG; + } + + TA_GetInputParameterInfo( handle, 0, &inputInfo ); + + if( inputInfo->type != TA_Input_Price ) + { + printf( "Candlestick are expected to use only OHLC as input.\n" ); + return TA_TSTCDL_INPUT_TYPE_WRONG; + } + + if( inputInfo->flags != (TA_IN_PRICE_OPEN | + TA_IN_PRICE_HIGH | + TA_IN_PRICE_LOW | + TA_IN_PRICE_CLOSE) ) + { + printf( "Candlestick are expected to use only OHLC as input.\n" ); + return TA_TSTCDL_INPUT_FLAG_WRONG; + } + + /* Set the optional inputs. */ + + /* Verify that there is only one output. */ + if( funcInfo->nbOutput != 1 ) + { + printf( "Candlestick are expected to have only one output array.\n" ); + return TA_TSTCDL_NBOUTPUT_WRONG; + } + + TA_GetOutputParameterInfo( handle, 0, &outputInfo ); + if( outputInfo->type != TA_Output_Integer ) + { + printf( "Candlestick are expected to have only one output array of type integer.\n" ); + return TA_TSTCDL_OUTPUT_TYPE_WRONG; + } + + /* !!!!!!!!!!!!! TO BE DONE !!!!!!!!!!!!!!!!!! + * For now all candlestick functions will be called with default optional parameter. + */ + } + + /* Set the input buffers. */ + TA_SetInputParamPricePtr( paramHolder, 0, + inOpen, inHigh, inLow, inClose, NULL, NULL ); + + TA_SetOutputParamIntegerPtr(paramHolder,0,outInteger); + + + /* Do the function call. */ + *taFuncRetCode = TA_CallFunc(paramHolder,startIdx,endIdx,outBegIdx,outNbElement); + + if( *taFuncRetCode != TA_SUCCESS ) + { + printf( "TA_CallFunc() failed [%d]\n", *taFuncRetCode ); + TA_ParamHolderFree( paramHolder ); + return TA_TSTCDL_CALLFUNC_FAIL; + } + + /* Do the lookback function call. */ + retCode = TA_GetLookback( paramHolder, lookback ); + if( retCode != TA_SUCCESS ) + { + printf( "TA_GetLookback() failed [%d]\n", retCode ); + TA_ParamHolderFree( paramHolder ); + return TA_TSTCDL_GETLOOKBACK_FAIL; + } + + return TA_TEST_PASS; +} + +/* rangeTestFunction is a different way to call any of + * the TA function. + * + * This is called by doRangeTest found in test_util.c + * + * The doRangeTest verifies behavior that should be common + * for ALL TA functions. It detects bugs like: + * - outBegIdx, outNbElement and lookback inconsistency. + * - off-by-one writes to output. + * - output inconsistency for different start/end index. + * - ... many other limit cases... + * + * In the case of candlestick, the output is integer and + * should be put in outputBufferInt, and outputBuffer is + * ignored. + */ +static TA_RetCode rangeTestFunction( TA_Integer startIdx, + TA_Integer endIdx, + TA_Real *outputBuffer, + TA_Integer *outputBufferInt, + TA_Integer *outBegIdx, + TA_Integer *outNbElement, + TA_Integer *lookback, + void *opaqueData, + unsigned int outputNb, + unsigned int *isOutputInteger ) +{ + TA_RangeTestParam *testParam1; + const TA_Test *testParam2; + ErrorNumber errNb; + + TA_RetCode retCode; + + (void)outputBuffer; + (void)outputNb; + + testParam1 = (TA_RangeTestParam *)opaqueData; + testParam2 = (const TA_Test *)testParam1->test; + + *isOutputInteger = 1; /* Must be != 0 */ + + retCode = TA_INTERNAL_ERROR(166); + + /* Call the TA function by name */ + errNb = callCandlestick( &testParam1->paramHolder, + testParam2->name, + startIdx, endIdx, + testParam1->open, + testParam1->high, + testParam1->low, + testParam1->close, + testParam2->params, + outBegIdx, + outNbElement, + outputBufferInt, + lookback, + &retCode ); + + if( errNb != TA_TEST_PASS ) + retCode = TA_INTERNAL_ERROR(168); + + return retCode; +} + +static ErrorNumber do_test( const TA_History *history, + const TA_Test *test ) +{ + TA_RangeTestParam testParam; + ErrorNumber errNb; + TA_RetCode retCode; + + (void)test; + + /* Set to NAN all the elements of the gBuffers. */ + clearAllBuffers(); + + /* Build the input. */ + setInputBuffer( 0, history->open, history->nbBars ); + setInputBuffer( 1, history->high, history->nbBars ); + setInputBuffer( 2, history->low, history->nbBars ); + setInputBuffer( 3, history->close, history->nbBars ); + + +#if 0 + /* !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! */ + /* Test for specific value not yet implemented */ + + /* Make a simple first call. */ + switch( test->theFunction ) + { + case TA_CCI_TEST: + retCode = TA_CCI( test->startIdx, + test->endIdx, + gBuffer[0].in, + gBuffer[1].in, + gBuffer[2].in, + test->optInTimePeriod, + &outBegIdx, + &outNbElement, + gBuffer[0].out0 ); + break; + + case TA_WILLR_TEST: + retCode = TA_WILLR( test->startIdx, + test->endIdx, + gBuffer[0].in, + gBuffer[1].in, + gBuffer[2].in, + test->optInTimePeriod, + &outBegIdx, + &outNbElement, + gBuffer[0].out0 ); + break; + + default: + retCode = TA_INTERNAL_ERROR(133); + } + + /* Check that the input were preserved. */ + errNb = checkDataSame( gBuffer[0].in, history->high,history->nbBars ); + if( errNb != TA_TEST_PASS ) + return errNb; + errNb = checkDataSame( gBuffer[1].in, history->low, history->nbBars ); + if( errNb != TA_TEST_PASS ) + return errNb; + errNb = checkDataSame( gBuffer[2].in, history->close,history->nbBars ); + if( errNb != TA_TEST_PASS ) + return errNb; + + CHECK_EXPECTED_VALUE( gBuffer[0].out0, 0 ); + + outBegIdx = outNbElement = 0; + + /* Make another call where the input and the output are the + * same buffer. + */ + switch( test->theFunction ) + { + case TA_CCI_TEST: + retCode = TA_CCI( test->startIdx, + test->endIdx, + gBuffer[0].in, + gBuffer[1].in, + gBuffer[2].in, + test->optInTimePeriod, + &outBegIdx, + &outNbElement, + gBuffer[0].in ); + break; + case TA_WILLR_TEST: + retCode = TA_WILLR( test->startIdx, + test->endIdx, + gBuffer[0].in, + gBuffer[1].in, + gBuffer[2].in, + test->optInTimePeriod, + &outBegIdx, + &outNbElement, + gBuffer[0].in ); + break; + default: + retCode = TA_INTERNAL_ERROR(134); + } + + /* Check that the input were preserved. */ + errNb = checkDataSame( gBuffer[1].in, history->low, history->nbBars ); + if( errNb != TA_TEST_PASS ) + return errNb; + errNb = checkDataSame( gBuffer[2].in, history->close,history->nbBars ); + if( errNb != TA_TEST_PASS ) + return errNb; + + /* The previous call to TA_MA should have the same output + * as this call. + * + * checkSameContent verify that all value different than NAN in + * the first parameter is identical in the second parameter. + */ + errNb = checkSameContent( gBuffer[0].out0, gBuffer[0].in ); + if( errNb != TA_TEST_PASS ) + return errNb; + + CHECK_EXPECTED_VALUE( gBuffer[0].in, 0 ); + setInputBuffer( 0, history->high, history->nbBars ); + + /* Make another call where the input and the output are the + * same buffer. + */ + switch( test->theFunction ) + { + case TA_CCI_TEST: + retCode = TA_CCI( test->startIdx, + test->endIdx, + gBuffer[0].in, + gBuffer[1].in, + gBuffer[2].in, + test->optInTimePeriod, + &outBegIdx, + &outNbElement, + gBuffer[1].in ); + break; + case TA_WILLR_TEST: + retCode = TA_WILLR( test->startIdx, + test->endIdx, + gBuffer[0].in, + gBuffer[1].in, + gBuffer[2].in, + test->optInTimePeriod, + &outBegIdx, + &outNbElement, + gBuffer[1].in ); + break; + default: + retCode = TA_INTERNAL_ERROR(135); + } + + /* Check that the input were preserved. */ + errNb = checkDataSame( gBuffer[0].in, history->high,history->nbBars ); + if( errNb != TA_TEST_PASS ) + return errNb; + errNb = checkDataSame( gBuffer[2].in, history->close,history->nbBars ); + if( errNb != TA_TEST_PASS ) + return errNb; + + /* The previous call should have the same output as this call. + * + * checkSameContent verify that all value different than NAN in + * the first parameter is identical in the second parameter. + */ + errNb = checkSameContent( gBuffer[0].out0, gBuffer[1].in ); + if( errNb != TA_TEST_PASS ) + return errNb; + + CHECK_EXPECTED_VALUE( gBuffer[1].in, 0 ); + setInputBuffer( 1, history->low, history->nbBars ); + + /* Make another call where the input and the output are the + * same buffer. + */ + switch( test->theFunction ) + { + case TA_CCI_TEST: + retCode = TA_CCI( test->startIdx, + test->endIdx, + gBuffer[0].in, + gBuffer[1].in, + gBuffer[2].in, + test->optInTimePeriod, + &outBegIdx, + &outNbElement, + gBuffer[2].in ); + break; + case TA_WILLR_TEST: + retCode = TA_WILLR( test->startIdx, + test->endIdx, + gBuffer[0].in, + gBuffer[1].in, + gBuffer[2].in, + test->optInTimePeriod, + &outBegIdx, + &outNbElement, + gBuffer[2].in ); + break; + default: + retCode = TA_INTERNAL_ERROR(136); + } + + /* Check that the input were preserved. */ + errNb = checkDataSame( gBuffer[0].in, history->high,history->nbBars ); + if( errNb != TA_TEST_PASS ) + return errNb; + errNb = checkDataSame( gBuffer[1].in, history->low, history->nbBars ); + if( errNb != TA_TEST_PASS ) + return errNb; + + /* The previous call to TA_MA should have the same output + * as this call. + * + * checkSameContent verify that all value different than NAN in + * the first parameter is identical in the second parameter. + */ + errNb = checkSameContent( gBuffer[0].out0, gBuffer[2].in ); + if( errNb != TA_TEST_PASS ) + return errNb; + + CHECK_EXPECTED_VALUE( gBuffer[2].in, 0 ); + setInputBuffer( 2, history->close, history->nbBars ); +#endif + + /* Do a systematic test of most of the + * possible startIdx/endIdx range. + */ + testParam.test = test; + testParam.open = history->open; + testParam.high = history->high; + testParam.low = history->low; + testParam.close = history->close; + testParam.paramHolder = NULL; + + if( test->doRangeTestFlag ) + { + + errNb = doRangeTest( rangeTestFunction, + TA_FUNC_UNST_NONE, + (void *)&testParam, 1, 0 ); + + if( testParam.paramHolder ) + { + retCode = TA_ParamHolderFree( testParam.paramHolder ); + if( retCode != TA_SUCCESS ) + { + printf( "TA_ParamHolderFree failed [%d]\n", retCode ); + return TA_TSTCDL_PARAMHOLDERFREE_FAIL; + } + } + + if( errNb != TA_TEST_PASS ) + return errNb; + } + + return TA_TEST_PASS; +} diff --git a/src/tools/ta_regtest/ta_test_func/test_ma.c b/src/tools/ta_regtest/ta_test_func/test_ma.c new file mode 100644 index 000000000..7d0ebd6a0 --- /dev/null +++ b/src/tools/ta_regtest/ta_test_func/test_ma.c @@ -0,0 +1,816 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * MF Mario Fortier + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 112400 MF First version. + * 031707 MF Add TA_MAVP tests. + */ + +/* Description: + * Test all MA (Moving Average) functions. + */ + +/**** Headers ****/ +#include +#include + +#include "ta_test_priv.h" +#include "ta_test_func.h" +#include "ta_utility.h" +#include "ta_memory.h" + +/**** External functions declarations. ****/ +/* None */ + +/**** External variables declarations. ****/ +/* None */ + +/**** Global variables definitions. ****/ +/* None */ + +/**** Local declarations. ****/ +typedef enum { + TA_ANY_MA_TEST, + TA_MAMA_TEST, + TA_FAMA_TEST +} TA_TestId; + + +typedef struct +{ + TA_Integer doRangeTestFlag; + TA_TestId id; + + TA_Integer unstablePeriod; + + TA_Integer startIdx; + TA_Integer endIdx; + TA_Integer optInTimePeriod; + TA_Integer optInMAType_1; + TA_Integer compatibility; + + TA_RetCode expectedRetCode; + + TA_Integer oneOfTheExpectedOutRealIndex; + TA_Real oneOfTheExpectedOutReal; + + TA_Integer expectedBegIdx; + TA_Integer expectedNbElement; +} TA_Test; + +typedef struct +{ + const TA_Test *test; + const TA_Real *close; + const TA_Real *mavpPeriod; + int testMAVP; /* Boolean */ +} TA_RangeTestParam; + +/**** Local functions declarations. ****/ +static ErrorNumber do_test_ma( const TA_History *history, + const TA_Test *test, + int testMAVP /* Boolean */ ); + +/**** Local variables definitions. ****/ + +static TA_Test tableTest[] = +{ + /************/ + /* T3 TEST */ + /************/ + { 1, TA_ANY_MA_TEST, 0, 0, 251, 5, TA_MAType_T3, TA_COMPATIBILITY_DEFAULT, TA_SUCCESS, 0, 85.73, 24, 252-24 }, /* First Value */ + { 0, TA_ANY_MA_TEST, 0, 0, 251, 5, TA_MAType_T3, TA_COMPATIBILITY_DEFAULT, TA_SUCCESS, 1, 84.37, 24, 252-24 }, + { 0, TA_ANY_MA_TEST, 0, 0, 251, 5, TA_MAType_T3, TA_COMPATIBILITY_DEFAULT, TA_SUCCESS, 252-26, 109.03, 24, 252-24 }, + { 0, TA_ANY_MA_TEST, 0, 0, 251, 5, TA_MAType_T3, TA_COMPATIBILITY_DEFAULT, TA_SUCCESS, 252-25, 108.88, 24, 252-24 }, /* Last Value */ + + /***************/ + /* TRIMA TEST */ + /***************/ + { 1, TA_ANY_MA_TEST, 0, 0, 251, 10, TA_MAType_TRIMA, TA_COMPATIBILITY_DEFAULT, TA_SUCCESS, 0, 93.6043, 9, 252-9 }, /* First Value */ + { 0, TA_ANY_MA_TEST, 0, 0, 251, 10, TA_MAType_TRIMA, TA_COMPATIBILITY_DEFAULT, TA_SUCCESS, 1, 93.4252, 9, 252-9 }, + { 0, TA_ANY_MA_TEST, 0, 0, 251, 10, TA_MAType_TRIMA, TA_COMPATIBILITY_DEFAULT, TA_SUCCESS, 252-11, 109.1850, 9, 252-9 }, + { 0, TA_ANY_MA_TEST, 0, 0, 251, 10, TA_MAType_TRIMA, TA_COMPATIBILITY_DEFAULT, TA_SUCCESS, 252-10, 109.1407, 9, 252-9 }, /* Last Value */ + + { 1, TA_ANY_MA_TEST, 0, 0, 251, 9, TA_MAType_TRIMA, TA_COMPATIBILITY_DEFAULT, TA_SUCCESS, 0, 93.8176, 8, 252-8 }, /* First Value */ + { 0, TA_ANY_MA_TEST, 0, 0, 251, 9, TA_MAType_TRIMA, TA_COMPATIBILITY_DEFAULT, TA_SUCCESS, 252-9, 109.1312, 8, 252-8 }, /* Last Value */ + + { 1, TA_ANY_MA_TEST, 0, 0, 251, 12, TA_MAType_TRIMA, TA_COMPATIBILITY_DEFAULT, TA_SUCCESS, 0, 93.5329, 11, 252-11 }, /* First Value */ + { 0, TA_ANY_MA_TEST, 0, 0, 251, 12, TA_MAType_TRIMA, TA_COMPATIBILITY_DEFAULT, TA_SUCCESS, 252-12, 109.1157, 11, 252-11 }, /* Last Value */ + + + + /************* + * MAMA TEST * + *************/ + { 1, TA_MAMA_TEST, 0, 0, 251, 10, TA_MAType_MAMA, TA_COMPATIBILITY_DEFAULT, TA_SUCCESS, 0, 85.3643, 32, 252-32 }, /* First Value */ + { 0, TA_MAMA_TEST, 0, 0, 251, 10, TA_MAType_MAMA, TA_COMPATIBILITY_DEFAULT, TA_SUCCESS, 252-33, 110.1116, 32, 252-32 }, /* Last Value */ + + { 0, TA_FAMA_TEST, 0, 0, 251, 10, TA_MAType_MAMA, TA_COMPATIBILITY_DEFAULT, TA_SUCCESS, 0, 81.88, 32, 252-32 }, /* First Value */ + { 0, TA_FAMA_TEST, 0, 0, 251, 10, TA_MAType_MAMA, TA_COMPATIBILITY_DEFAULT, TA_SUCCESS, 252-33, 108.82, 32, 252-32 }, /* Last Value */ + + { 0, TA_ANY_MA_TEST, 0, 0, 251, 10, TA_MAType_MAMA, TA_COMPATIBILITY_DEFAULT, TA_SUCCESS, 0, 85.3643, 32, 252-32 }, /* First Value */ + { 0, TA_ANY_MA_TEST, 0, 0, 251, 10, TA_MAType_MAMA, TA_COMPATIBILITY_DEFAULT, TA_SUCCESS, 252-33, 110.1116, 32, 252-32 }, /* Last Value */ + + /***************************/ + /* KAMA TEST - Classic */ + /***************************/ + + /* No output value. */ + { 0, TA_ANY_MA_TEST, 0, 1, 1, 14, TA_MAType_KAMA, TA_COMPATIBILITY_DEFAULT, TA_SUCCESS, 0, 0, 0, 0}, +#ifndef TA_FUNC_NO_RANGE_CHECK + { 0, TA_ANY_MA_TEST, 0, 0, 251, 0, TA_MAType_KAMA, TA_COMPATIBILITY_DEFAULT, TA_BAD_PARAM, 0, 0, 0, 0 }, +#endif + + /* Test with period 10 */ + { 1, TA_ANY_MA_TEST, 0, 0, 251, 10, TA_MAType_KAMA, TA_COMPATIBILITY_DEFAULT, TA_SUCCESS, 0, 92.6575, 10, 252-10 }, /* First Value */ + { 0, TA_ANY_MA_TEST, 0, 0, 251, 10, TA_MAType_KAMA, TA_COMPATIBILITY_DEFAULT, TA_SUCCESS, 1, 92.7783, 10, 252-10 }, + { 0, TA_ANY_MA_TEST, 0, 0, 251, 10, TA_MAType_KAMA, TA_COMPATIBILITY_DEFAULT, TA_SUCCESS, 252-11, 109.294, 10, 252-10 }, /* Last Value */ + + + /*****************************************/ + /* SMA TEST - CLASSIC/METASTOCK */ + /*****************************************/ + +#ifndef TA_FUNC_NO_RANGE_CHECK + /* Test with invalid parameters */ + { 0, TA_ANY_MA_TEST, 0, 0, 251, -1, TA_MAType_SMA, TA_COMPATIBILITY_DEFAULT, TA_BAD_PARAM, 0, 0, 0, 0 }, +#endif + + /* Test suppose to succeed. */ + { 1, TA_ANY_MA_TEST, 0, 0, 251, 2, TA_MAType_SMA, TA_COMPATIBILITY_DEFAULT, TA_SUCCESS, 0, 93.15, 1, 252-1 }, /* First Value */ + { 0, TA_ANY_MA_TEST, 0, 0, 251, 2, TA_MAType_SMA, TA_COMPATIBILITY_DEFAULT, TA_SUCCESS, 1, 94.59, 1, 252-1 }, + { 0, TA_ANY_MA_TEST, 0, 0, 251, 2, TA_MAType_SMA, TA_COMPATIBILITY_DEFAULT, TA_SUCCESS, 2, 94.73, 1, 252-1 }, + { 0, TA_ANY_MA_TEST, 0, 0, 251, 2, TA_MAType_SMA, TA_COMPATIBILITY_DEFAULT, TA_SUCCESS, 250, 108.31, 1, 252-1 }, /* Last Value */ + + { 1, TA_ANY_MA_TEST, 0, 0, 251, 30, TA_MAType_SMA, TA_COMPATIBILITY_DEFAULT, TA_SUCCESS, 0, 90.42, 29, 252-29 }, /* First Value */ + { 0, TA_ANY_MA_TEST, 0, 0, 251, 30, TA_MAType_SMA, TA_COMPATIBILITY_DEFAULT, TA_SUCCESS, 1, 90.21, 29, 252-29 }, + { 0, TA_ANY_MA_TEST, 0, 0, 251, 30, TA_MAType_SMA, TA_COMPATIBILITY_DEFAULT, TA_SUCCESS, 2, 89.96, 29, 252-29 }, + { 0, TA_ANY_MA_TEST, 0, 0, 251, 30, TA_MAType_SMA, TA_COMPATIBILITY_DEFAULT, TA_SUCCESS, 29, 87.12, 29, 252-29 }, + { 0, TA_ANY_MA_TEST, 0, 0, 251, 30, TA_MAType_SMA, TA_COMPATIBILITY_DEFAULT, TA_SUCCESS, 221, 107.95, 29, 252-29 }, + { 0, TA_ANY_MA_TEST, 0, 0, 251, 30, TA_MAType_SMA, TA_COMPATIBILITY_DEFAULT, TA_SUCCESS, 222, 108.42, 29, 252-29 }, /* Last Value */ + + /* Same test and result as TA_COMPATIBILITY_DEFAULT */ + { 1, TA_ANY_MA_TEST, 0, 0, 251, 2, TA_MAType_SMA, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, 0, 93.15, 1, 252-1 }, /* First Value */ + { 0, TA_ANY_MA_TEST, 0, 0, 251, 2, TA_MAType_SMA, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, 1, 94.59, 1, 252-1 }, + { 0, TA_ANY_MA_TEST, 0, 0, 251, 2, TA_MAType_SMA, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, 2, 94.73, 1, 252-1 }, + { 0, TA_ANY_MA_TEST, 0, 0, 251, 2, TA_MAType_SMA, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, 250, 108.31, 1, 252-1 }, /* Last Value */ + + { 1, TA_ANY_MA_TEST, 0, 0, 251, 30, TA_MAType_SMA, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, 0, 90.42, 29, 252-29 }, /* First Value */ + { 0, TA_ANY_MA_TEST, 0, 0, 251, 30, TA_MAType_SMA, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, 1, 90.21, 29, 252-29 }, + { 0, TA_ANY_MA_TEST, 0, 0, 251, 30, TA_MAType_SMA, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, 2, 89.96, 29, 252-29 }, + { 0, TA_ANY_MA_TEST, 0, 0, 251, 30, TA_MAType_SMA, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, 29, 87.12, 29, 252-29 }, + { 0, TA_ANY_MA_TEST, 0, 0, 251, 30, TA_MAType_SMA, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, 221, 107.95, 29, 252-29 }, + { 0, TA_ANY_MA_TEST, 0, 0, 251, 30, TA_MAType_SMA, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, 222, 108.42, 29, 252-29 }, /* Last Value */ + + + /*******************************/ + /* WMA TEST - CLASSIC */ + /*******************************/ + +#ifndef TA_FUNC_NO_RANGE_CHECK + /* No output value. */ + { 0, TA_ANY_MA_TEST, 0, 0, 251, 0, TA_MAType_WMA, TA_COMPATIBILITY_DEFAULT, TA_BAD_PARAM, 0, 0, 0, 0 }, +#endif + + /* One value tests. */ + { 0, TA_ANY_MA_TEST, 0, 2, 2, 2, TA_MAType_WMA, TA_COMPATIBILITY_DEFAULT, TA_SUCCESS, 0, 94.52, 2, 1 }, + + /* Misc tests: period 2, 30 */ + + { 1, TA_ANY_MA_TEST, 0, 0, 251, 2, TA_MAType_WMA, TA_COMPATIBILITY_DEFAULT, TA_SUCCESS, 0, 93.71, 1, 252-1 }, /* First Value */ + { 0, TA_ANY_MA_TEST, 0, 0, 251, 2, TA_MAType_WMA, TA_COMPATIBILITY_DEFAULT, TA_SUCCESS, 1, 94.52, 1, 252-1 }, + { 0, TA_ANY_MA_TEST, 0, 0, 251, 2, TA_MAType_WMA, TA_COMPATIBILITY_DEFAULT, TA_SUCCESS, 2, 94.85, 1, 252-1 }, + { 0, TA_ANY_MA_TEST, 0, 0, 251, 2, TA_MAType_WMA, TA_COMPATIBILITY_DEFAULT, TA_SUCCESS, 250, 108.16, 1, 252-1 }, /* Last Value */ + + { 1, TA_ANY_MA_TEST, 0, 0, 251, 30, TA_MAType_WMA, TA_COMPATIBILITY_DEFAULT, TA_SUCCESS, 0, 88.567, 29, 252-29 }, /* First Value */ + { 0, TA_ANY_MA_TEST, 0, 0, 251, 30, TA_MAType_WMA, TA_COMPATIBILITY_DEFAULT, TA_SUCCESS, 1, 88.233, 29, 252-29 }, + { 0, TA_ANY_MA_TEST, 0, 0, 251, 30, TA_MAType_WMA, TA_COMPATIBILITY_DEFAULT, TA_SUCCESS, 2, 88.034, 29, 252-29 }, + { 0, TA_ANY_MA_TEST, 0, 0, 251, 30, TA_MAType_WMA, TA_COMPATIBILITY_DEFAULT, TA_SUCCESS, 29, 87.191, 29, 252-29 }, + { 0, TA_ANY_MA_TEST, 0, 0, 251, 30, TA_MAType_WMA, TA_COMPATIBILITY_DEFAULT, TA_SUCCESS, 221, 109.3413, 29, 252-29 }, + { 0, TA_ANY_MA_TEST, 0, 0, 251, 30, TA_MAType_WMA, TA_COMPATIBILITY_DEFAULT, TA_SUCCESS, 222, 109.3466, 29, 252-29 }, /* Last Value */ + + /*******************************/ + /* WMA TEST - METASTOCK */ + /*******************************/ + + /* No output value. */ + { 0, TA_ANY_MA_TEST, 0, 1, 1, 14, TA_MAType_WMA, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, 0, 0, 0, 0}, +#ifndef TA_FUNC_NO_RANGE_CHECK + { 0, TA_ANY_MA_TEST, 0, 0, 251, 0, TA_MAType_WMA, TA_COMPATIBILITY_METASTOCK, TA_BAD_PARAM, 0, 0, 0, 0 }, +#endif + + /* One value tests. */ + { 0, TA_ANY_MA_TEST, 0, 2, 2, 2, TA_MAType_WMA, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, 0, 94.52, 2, 1 }, + + /* Misc tests: period 2, 30 */ + { 1, TA_ANY_MA_TEST, 0, 0, 251, 2, TA_MAType_WMA, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, 0, 93.71, 1, 252-1 }, /* First Value */ + { 0, TA_ANY_MA_TEST, 0, 0, 251, 2, TA_MAType_WMA, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, 1, 94.52, 1, 252-1 }, + { 0, TA_ANY_MA_TEST, 0, 0, 251, 2, TA_MAType_WMA, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, 2, 94.85, 1, 252-1 }, + { 0, TA_ANY_MA_TEST, 0, 0, 251, 2, TA_MAType_WMA, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, 250, 108.16, 1, 252-1 }, /* Last Value */ + + { 1, TA_ANY_MA_TEST, 0, 0, 251, 30, TA_MAType_WMA, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, 0, 88.567, 29, 252-29 }, /* First Value */ + { 0, TA_ANY_MA_TEST, 0, 0, 251, 30, TA_MAType_WMA, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, 1, 88.233, 29, 252-29 }, + { 0, TA_ANY_MA_TEST, 0, 0, 251, 30, TA_MAType_WMA, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, 2, 88.034, 29, 252-29 }, + { 0, TA_ANY_MA_TEST, 0, 0, 251, 30, TA_MAType_WMA, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, 29, 87.191, 29, 252-29 }, + { 0, TA_ANY_MA_TEST, 0, 0, 251, 30, TA_MAType_WMA, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, 221, 109.3413, 29, 252-29 }, + { 0, TA_ANY_MA_TEST, 0, 0, 251, 30, TA_MAType_WMA, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, 222, 109.3466, 29, 252-29 }, /* Last Value */ + + /*******************************/ + /* EMA TEST - Classic */ + /*******************************/ + + /* No output value. */ + { 0, TA_ANY_MA_TEST, 0, 1, 1, 14, TA_MAType_EMA, TA_COMPATIBILITY_DEFAULT, TA_SUCCESS, 0, 0, 0, 0}, +#ifndef TA_FUNC_NO_RANGE_CHECK + { 0, TA_ANY_MA_TEST, 0, 0, 251, 0, TA_MAType_EMA, TA_COMPATIBILITY_DEFAULT, TA_BAD_PARAM, 0, 0, 0, 0 }, +#endif + + /* Misc tests: period 2, 10 */ + { 1, TA_ANY_MA_TEST, 0, 0, 251, 2, TA_MAType_EMA, TA_COMPATIBILITY_DEFAULT, TA_SUCCESS, 0, 93.15, 1, 251 }, /* First Value */ + { 0, TA_ANY_MA_TEST, 0, 0, 251, 2, TA_MAType_EMA, TA_COMPATIBILITY_DEFAULT, TA_SUCCESS, 1, 93.96, 1, 251 }, + { 0, TA_ANY_MA_TEST, 0, 0, 251, 2, TA_MAType_EMA, TA_COMPATIBILITY_DEFAULT, TA_SUCCESS, 250, 108.21, 1, 251 }, /* Last Value */ + + { 1, TA_ANY_MA_TEST, 0, 0, 251, 10, TA_MAType_EMA, TA_COMPATIBILITY_DEFAULT, TA_SUCCESS, 0, 93.22, 9, 243 }, /* First Value */ + { 0, TA_ANY_MA_TEST, 0, 0, 251, 10, TA_MAType_EMA, TA_COMPATIBILITY_DEFAULT, TA_SUCCESS, 1, 93.75, 9, 243 }, + { 0, TA_ANY_MA_TEST, 0, 0, 251, 10, TA_MAType_EMA, TA_COMPATIBILITY_DEFAULT, TA_SUCCESS, 20, 86.46, 9, 243 }, + { 0, TA_ANY_MA_TEST, 0, 0, 251, 10, TA_MAType_EMA, TA_COMPATIBILITY_DEFAULT, TA_SUCCESS, 242, 108.97, 9, 243 }, /* Last Value */ + + /*******************************/ + /* EMA TEST - Metastock */ + /*******************************/ + + + /* No output value. */ + { 0, TA_ANY_MA_TEST, 0, 1, 1, 14, TA_MAType_EMA, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, 0, 0, 0, 0}, +#ifndef TA_FUNC_NO_RANGE_CHECK + { 0, TA_ANY_MA_TEST, 0, 0, 251, 0, TA_MAType_EMA, TA_COMPATIBILITY_METASTOCK, TA_BAD_PARAM, 0, 0, 0, 0 }, +#endif + + /* Test with 1 unstable price bar. Test for period 2, 10 */ + { 1, TA_ANY_MA_TEST, 1, 0, 251, 2, TA_MAType_EMA, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, 0, 94.15, 1+1, 251-1 }, /* First Value */ + { 0, TA_ANY_MA_TEST, 1, 0, 251, 2, TA_MAType_EMA, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, 1, 94.78, 1+1, 251-1 }, + { 0, TA_ANY_MA_TEST, 1, 0, 251, 2, TA_MAType_EMA, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, 250-1, 108.21, 1+1, 251-1 }, /* Last Value */ + + { 1, TA_ANY_MA_TEST, 1, 0, 251, 10, TA_MAType_EMA, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, 0, 93.24, 9+1, 243-1 }, /* First Value */ + { 0, TA_ANY_MA_TEST, 1, 0, 251, 10, TA_MAType_EMA, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, 1, 93.97, 9+1, 243-1 }, + { 0, TA_ANY_MA_TEST, 1, 0, 251, 10, TA_MAType_EMA, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, 20, 86.23, 9+1, 243-1 }, + { 0, TA_ANY_MA_TEST, 1, 0, 251, 10, TA_MAType_EMA, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, 242-1, 108.97, 9+1, 243-1 }, /* Last Value */ + + /* Test with 2 unstable price bar. Test for period 2, 10 */ + { 0, TA_ANY_MA_TEST, 2, 0, 251, 2, TA_MAType_EMA, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, 0, 94.78, 1+2, 251-2 }, /* First Value */ + { 0, TA_ANY_MA_TEST, 2, 0, 251, 2, TA_MAType_EMA, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, 1, 94.11, 1+2, 251-2 }, + { 0, TA_ANY_MA_TEST, 2, 0, 251, 2, TA_MAType_EMA, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, 250-2, 108.21, 1+2, 251-2 }, /* Last Value */ + + { 0, TA_ANY_MA_TEST, 2, 0, 251, 10, TA_MAType_EMA, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, 0, 93.97, 9+2, 243-2 }, /* First Value */ + { 0, TA_ANY_MA_TEST, 2, 0, 251, 10, TA_MAType_EMA, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, 1, 94.79, 9+2, 243-2 }, + { 0, TA_ANY_MA_TEST, 2, 0, 251, 10, TA_MAType_EMA, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, 20, 86.39, 9+2, 243-2 }, + { 0, TA_ANY_MA_TEST, 2, 0, 251, 10, TA_MAType_EMA, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, 242-2, 108.97, 9+2, 243-2 }, /* Last Value */ + + /* Last 3 value with 1 unstable, period 10 */ + { 0, TA_ANY_MA_TEST, 1, 249, 251, 10, TA_MAType_EMA, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, 1, 109.22, 249, 3 }, + { 0, TA_ANY_MA_TEST, 1, 249, 251, 10, TA_MAType_EMA, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, 2, 108.97, 249, 3 }, + + /* Last 3 value with 2 unstable, period 10 */ + { 0, TA_ANY_MA_TEST, 2, 249, 251, 10, TA_MAType_EMA, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, 2, 108.97, 249, 3 }, + + /* Last 3 value with 3 unstable, period 10 */ + { 0, TA_ANY_MA_TEST, 3, 249, 251, 10, TA_MAType_EMA, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, 2, 108.97, 249, 3 }, + + /*******************************/ + /* DEMA TEST - Metastock */ + /*******************************/ + + /* No output value. */ + { 0, TA_ANY_MA_TEST, 0, 1, 1, 14, TA_MAType_DEMA, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, 0, 0, 0, 0}, +#ifndef TA_FUNC_NO_RANGE_CHECK + { 0, TA_ANY_MA_TEST, 0, 0, 251, 0, TA_MAType_DEMA, TA_COMPATIBILITY_METASTOCK, TA_BAD_PARAM, 0, 0, 0, 0 }, +#endif + + /* Test with period 14 */ + { 0, TA_ANY_MA_TEST, 0, 0, 251, 14, TA_MAType_DEMA, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, 0, 83.785, 26, 252-26 }, /* First Value */ + { 0, TA_ANY_MA_TEST, 0, 0, 251, 14, TA_MAType_DEMA, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, 1, 84.768, 26, 252-26 }, + { 0, TA_ANY_MA_TEST, 0, 0, 251, 14, TA_MAType_DEMA, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, 252-27, 109.467, 26, 252-26 }, /* Last Value */ + + /* Test with 1 unstable price bar. Test for period 2, 14 */ + { 1, TA_ANY_MA_TEST, 1, 0, 251, 2, TA_MAType_DEMA, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, 0, 93.960, 4, 252-4 }, /* First Value */ + { 0, TA_ANY_MA_TEST, 1, 0, 251, 2, TA_MAType_DEMA, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, 1, 94.522, 4, 252-4 }, + { 0, TA_ANY_MA_TEST, 1, 0, 251, 2, TA_MAType_DEMA, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, 252-5, 107.94, 4, 252-4 }, /* Last Value */ + + { 1, TA_ANY_MA_TEST, 1, 0, 251, 14, TA_MAType_DEMA, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, 0, 84.91, (13*2)+2, 252-((13*2)+2) }, /* First Value */ + { 0, TA_ANY_MA_TEST, 1, 0, 251, 14, TA_MAType_DEMA, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, 1, 84.97, (13*2)+2, 252-((13*2)+2) }, + { 0, TA_ANY_MA_TEST, 1, 0, 251, 14, TA_MAType_DEMA, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, 2, 84.80, (13*2)+2, 252-((13*2)+2) }, + { 0, TA_ANY_MA_TEST, 1, 0, 251, 14, TA_MAType_DEMA, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, 3, 85.14, (13*2)+2, 252-((13*2)+2) }, + { 0, TA_ANY_MA_TEST, 1, 0, 251, 14, TA_MAType_DEMA, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, 20, 89.83, (13*2)+2, 252-((13*2)+2) }, + { 0, TA_ANY_MA_TEST, 1, 0, 251, 14, TA_MAType_DEMA, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, 252-((13*2)+2+1), 109.4676, (13*2)+2, 252-((13*2)+2) }, /* Last Value */ + + /*******************************/ + /* TEMA TEST - Metastock */ + /*******************************/ + /* No output value. */ + { 0, TA_ANY_MA_TEST, 0, 1, 1, 14, TA_MAType_TEMA, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, 0, 0, 0, 0}, +#ifndef TA_FUNC_NO_RANGE_CHECK + { 0, TA_ANY_MA_TEST, 0, 0, 251, 0, TA_MAType_TEMA, TA_COMPATIBILITY_METASTOCK, TA_BAD_PARAM, 0, 0, 0, 0 }, +#endif + + /* Test with period 14 */ + { 1, TA_ANY_MA_TEST, 0, 0, 251, 14, TA_MAType_TEMA, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, 0, 84.721, 39, 252-39 }, /* First Value */ + { 0, TA_ANY_MA_TEST, 0, 0, 251, 14, TA_MAType_TEMA, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, 1, 84.089, 39, 252-39 }, + { 0, TA_ANY_MA_TEST, 0, 0, 251, 14, TA_MAType_TEMA, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, 252-40, 108.418, 39, 252-39 }, /* Last Value */ +}; + +#define NB_TEST (sizeof(tableTest)/sizeof(TA_Test)) + +/**** Global functions definitions. ****/ +ErrorNumber test_func_ma( TA_History *history ) +{ + unsigned int i; + ErrorNumber retValue; + + /* Re-initialize all the unstable period to zero. */ + TA_SetUnstablePeriod( TA_FUNC_UNST_ALL, 0 ); + + for( i=0; i < NB_TEST; i++ ) + { + + if( (int)tableTest[i].expectedNbElement > (int)history->nbBars ) + { + printf( "TA_MA Failed Bad Parameter for Test #%d (%d,%d)\n", + i, tableTest[i].expectedNbElement, history->nbBars ); + return TA_TESTUTIL_TFRR_BAD_PARAM; + } + + retValue = do_test_ma( history, &tableTest[i], 0 ); + if( retValue != 0 ) + { + printf( "TA_MA Failed Test #%d (Code=%d)\n", i, retValue ); + return retValue; + } + + /* If TA_ANY_MA_TEST. repeat test with TA_MAVP */ + if( tableTest[i].id == TA_ANY_MA_TEST ) + { + retValue = do_test_ma( history, &tableTest[i], 1 ); + if( retValue != 0 ) + { + printf( "TA_MAVP Failed Test #%d (Code=%d)\n", i, retValue ); + return retValue; + } + } + } + + /* Re-initialize all the unstable period to zero. */ + TA_SetUnstablePeriod( TA_FUNC_UNST_ALL, 0 ); + + /* All test succeed. */ + return TA_TEST_PASS; +} + +/**** Local functions definitions. ****/ +static TA_RetCode rangeTestFunction( TA_Integer startIdx, + TA_Integer endIdx, + TA_Real *outputBuffer, + TA_Integer *outputBufferInt, + TA_Integer *outBegIdx, + TA_Integer *outNbElement, + TA_Integer *lookback, + void *opaqueData, + unsigned int outputNb, + unsigned int *isOutputInteger ) +{ + TA_RetCode retCode; + TA_RangeTestParam *testParam; + TA_Real *dummyBuffer; + + (void)outputBufferInt; + + *isOutputInteger = 0; + + testParam = (TA_RangeTestParam *)opaqueData; + + switch( testParam->test->optInMAType_1 ) + { + case TA_MAType_MAMA: + dummyBuffer = TA_Malloc( sizeof(TA_Real)*(endIdx-startIdx+600) ); + if( outputNb == 0 ) + { + retCode = TA_MAMA( startIdx, + endIdx, + testParam->close, + 0.5, 0.05, + outBegIdx, + outNbElement, + outputBuffer, + &dummyBuffer[300] ); + } + else + { + retCode = TA_MAMA( startIdx, + endIdx, + testParam->close, + 0.5, 0.05, + outBegIdx, + outNbElement, + &dummyBuffer[300], + outputBuffer ); + } + TA_Free( dummyBuffer ); + *lookback = TA_MAMA_Lookback( 0.5, 0.05 ); + break; + default: + if( testParam->testMAVP ) + { + retCode = TA_MAVP( startIdx, + endIdx, + testParam->close, + testParam->mavpPeriod, + 2,testParam->test->optInTimePeriod, + (TA_MAType)testParam->test->optInMAType_1, + outBegIdx, + outNbElement, + outputBuffer ); + + *lookback = TA_MAVP_Lookback( 2, testParam->test->optInTimePeriod, + (TA_MAType)testParam->test->optInMAType_1 ); + } + else + { + /* Test for the TA_MA function. All the MA can be done + * through that function. + */ + retCode = TA_MA( startIdx, + endIdx, + testParam->close, + testParam->test->optInTimePeriod, + (TA_MAType)testParam->test->optInMAType_1, + outBegIdx, + outNbElement, + outputBuffer ); + + *lookback = TA_MA_Lookback( testParam->test->optInTimePeriod, + (TA_MAType)testParam->test->optInMAType_1 ); + } + break; + } + + return retCode; +} + +static ErrorNumber do_test_ma( const TA_History *history, + const TA_Test *test, + int testMAVP ) +{ + TA_RetCode retCode; + ErrorNumber errNb; + TA_Integer outBegIdx; + TA_Integer outNbElement; + TA_RangeTestParam testParam; + TA_Integer temp, temp2; + const TA_Real *referenceInput; + + /* TA_MAVP is tested only for TA_ANY_MA_TEST */ + if( testMAVP && (test->id != TA_ANY_MA_TEST) ) + { + return TA_TEST_PASS; + } + + TA_SetCompatibility( (TA_Compatibility)test->compatibility ); + + /* Set to NAN all the elements of the gBuffers. */ + clearAllBuffers(); + + /* Build the input. */ + setInputBuffer( 0, history->close, history->nbBars ); + setInputBuffer( 1, history->close, history->nbBars ); + if( testMAVP ) + { + setInputBufferValue( 2, test->optInTimePeriod, history->nbBars ); + } + + /* Re-initialize all the unstable period to zero. */ + TA_SetUnstablePeriod( TA_FUNC_UNST_ALL, 0 ); + + /* Set the unstable period requested for that test. */ + switch( test->optInMAType_1 ) + { + case TA_MAType_TEMA: + case TA_MAType_DEMA: + case TA_MAType_EMA: + retCode = TA_SetUnstablePeriod( TA_FUNC_UNST_EMA, test->unstablePeriod ); + break; + case TA_MAType_KAMA: + retCode = TA_SetUnstablePeriod( TA_FUNC_UNST_KAMA, test->unstablePeriod ); + break; + case TA_MAType_MAMA: + retCode = TA_SetUnstablePeriod( TA_FUNC_UNST_MAMA, test->unstablePeriod ); + break; + case TA_MAType_T3: + retCode = TA_SetUnstablePeriod( TA_FUNC_UNST_T3, test->unstablePeriod ); + break; + default: + retCode = TA_SUCCESS; + break; + } + + if( retCode != TA_SUCCESS ) + return TA_TEST_TFRR_SETUNSTABLE_PERIOD_FAIL; + + /* Transform the inputs for MAMA (it is an AVGPRICE in John Ehlers book). */ + if( test->optInMAType_1 == TA_MAType_MAMA ) + { + TA_MEDPRICE( 0, history->nbBars-1, history->high, history->low, + &outBegIdx, &outNbElement, gBuffer[0].in ); + + TA_MEDPRICE( 0, history->nbBars-1, history->high, history->low, + &outBegIdx, &outNbElement, gBuffer[1].in ); + + /* Will be use as reference */ + TA_MEDPRICE( 0, history->nbBars-1, history->high, history->low, + &outBegIdx, &outNbElement, gBuffer[2].in ); + referenceInput = gBuffer[2].in; + } + else + referenceInput = history->close; + + + + /* Make a simple first call. */ + switch( test->id ) + { + case TA_ANY_MA_TEST: + if(testMAVP) + { + retCode = TA_MAVP( test->startIdx, + test->endIdx, + gBuffer[0].in, + gBuffer[2].in, + 2, test->optInTimePeriod, + (TA_MAType)test->optInMAType_1, + &outBegIdx, + &outNbElement, + gBuffer[0].out0 ); + } + else + { + retCode = TA_MA( test->startIdx, + test->endIdx, + gBuffer[0].in, + test->optInTimePeriod, + (TA_MAType)test->optInMAType_1, + &outBegIdx, + &outNbElement, + gBuffer[0].out0 ); + } + break; + case TA_MAMA_TEST: + retCode = TA_MAMA( test->startIdx, + test->endIdx, + gBuffer[0].in, + 0.5, 0.05, + &outBegIdx, + &outNbElement, + gBuffer[0].out0, + gBuffer[0].out2 ); + + break; + case TA_FAMA_TEST: + retCode = TA_MAMA( test->startIdx, + test->endIdx, + gBuffer[0].in, + 0.5, 0.05, + &outBegIdx, + &outNbElement, + gBuffer[0].out2, + gBuffer[0].out0 ); + + break; + } + + errNb = checkDataSame( gBuffer[0].in, referenceInput, history->nbBars ); + if( errNb != TA_TEST_PASS ) + return errNb; + + errNb = checkExpectedValue( gBuffer[0].out0, + retCode, test->expectedRetCode, + outBegIdx, test->expectedBegIdx, + outNbElement, test->expectedNbElement, + test->oneOfTheExpectedOutReal, + test->oneOfTheExpectedOutRealIndex ); + if( errNb != TA_TEST_PASS ) + return errNb; + + outBegIdx = outNbElement = 0; + + /* Make another call where the input and the output are the + * same buffer. + */ + switch( test->id ) + { + case TA_ANY_MA_TEST: + if(testMAVP) + { + retCode = TA_MAVP( test->startIdx, + test->endIdx, + gBuffer[1].in, + gBuffer[2].in, + 2,test->optInTimePeriod, + (TA_MAType)test->optInMAType_1, + &outBegIdx, + &outNbElement, + gBuffer[1].in ); + } + else + { + retCode = TA_MA( test->startIdx, + test->endIdx, + gBuffer[1].in, + test->optInTimePeriod, + (TA_MAType)test->optInMAType_1, + &outBegIdx, + &outNbElement, + gBuffer[1].in ); + } + break; + case TA_MAMA_TEST: + retCode = TA_MAMA( test->startIdx, + test->endIdx, + gBuffer[1].in, + 0.5, 0.05, + &outBegIdx, + &outNbElement, + gBuffer[1].in, + gBuffer[0].out2 ); + break; + case TA_FAMA_TEST: + retCode = TA_MAMA( test->startIdx, + test->endIdx, + gBuffer[1].in, + 0.5, 0.05, + &outBegIdx, + &outNbElement, + gBuffer[0].out2, + gBuffer[1].in ); + break; + } + + /* The previous call to TA_MA should have the same output + * as this call. + * + * checkSameContent verify that all value different than NAN in + * the first parameter is identical in the second parameter. + */ + errNb = checkSameContent( gBuffer[0].out0, gBuffer[1].in ); + if( errNb != TA_TEST_PASS ) + return errNb; + + errNb = checkExpectedValue( gBuffer[1].in, + retCode, test->expectedRetCode, + outBegIdx, test->expectedBegIdx, + outNbElement, test->expectedNbElement, + test->oneOfTheExpectedOutReal, + test->oneOfTheExpectedOutRealIndex ); + if( errNb != TA_TEST_PASS ) + return errNb; + + /* Verify that the "all-purpose" TA_MA_Lookback is consistent + * with the corresponding moving average lookback function. + */ + if( test->optInTimePeriod >= 2 ) + { + switch( test->optInMAType_1 ) + { + case TA_MAType_WMA: + temp = TA_WMA_Lookback( test->optInTimePeriod ); + break; + + case TA_MAType_SMA: + temp = TA_SMA_Lookback( test->optInTimePeriod ); + break; + + case TA_MAType_EMA: + temp = TA_EMA_Lookback( test->optInTimePeriod ); + break; + + case TA_MAType_DEMA: + temp = TA_DEMA_Lookback( test->optInTimePeriod ); + break; + + case TA_MAType_TEMA: + temp = TA_TEMA_Lookback( test->optInTimePeriod ); + break; + + case TA_MAType_KAMA: + temp = TA_KAMA_Lookback( test->optInTimePeriod ); + break; + + case TA_MAType_MAMA: + temp = TA_MAMA_Lookback( 0.5, 0.05 ); + break; + + case TA_MAType_TRIMA: + temp = TA_TRIMA_Lookback( test->optInTimePeriod ); + break; + + case TA_MAType_T3: + temp = TA_T3_Lookback( test->optInTimePeriod, 0.7 ); + break; + + default: + return TA_TEST_TFRR_BAD_MA_TYPE; + } + + temp2 = TA_MA_Lookback( test->optInTimePeriod, (TA_MAType)test->optInMAType_1 ); + + if( temp != temp2 ) + { + printf( "\nFailed for MA Type #%d for period %d\n", test->optInMAType_1, test->optInTimePeriod ); + return TA_TEST_TFFR_BAD_MA_LOOKBACK; + } + } + + /* Do a systematic test of most of the + * possible startIdx/endIdx range. + */ + testParam.test = test; + testParam.close = referenceInput; + testParam.testMAVP = testMAVP; + testParam.mavpPeriod = gBuffer[2].in; + + if( test->doRangeTestFlag ) + { + switch( test->optInMAType_1 ) + { + case TA_MAType_TEMA: + case TA_MAType_DEMA: + case TA_MAType_EMA: + errNb = doRangeTest( rangeTestFunction, + TA_FUNC_UNST_EMA, + (void *)&testParam, 1, 0 ); + break; + case TA_MAType_T3: + errNb = doRangeTest( rangeTestFunction, + TA_FUNC_UNST_T3, + (void *)&testParam, 1, 0 ); + break; + case TA_MAType_KAMA: + errNb = doRangeTest( rangeTestFunction, + TA_FUNC_UNST_KAMA, + (void *)&testParam, 1, 0 ); + break; + case TA_MAType_MAMA: + errNb = doRangeTest( rangeTestFunction, + TA_FUNC_UNST_MAMA, + (void *)&testParam, 2, 0 ); + break; + default: + errNb = doRangeTest( rangeTestFunction, + TA_FUNC_UNST_NONE, + (void *)&testParam, 1, 0 ); + } + + if( errNb != TA_TEST_PASS ) + return errNb; + } + + return TA_TEST_PASS; +} + diff --git a/src/tools/ta_regtest/ta_test_func/test_macd.c b/src/tools/ta_regtest/ta_test_func/test_macd.c new file mode 100644 index 000000000..554c962ec --- /dev/null +++ b/src/tools/ta_regtest/ta_test_func/test_macd.c @@ -0,0 +1,603 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * MF Mario Fortier + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 112400 MF First version. + * + */ + +/* Description: + * Regression test of MACD. + */ + +/**** Headers ****/ +#include +#include + +#include "ta_test_priv.h" +#include "ta_test_func.h" +#include "ta_utility.h" +#include "ta_memory.h" + +/**** External functions declarations. ****/ +/* None */ + +/**** External variables declarations. ****/ +/* None */ + +/**** Global variables definitions. ****/ +/* None */ + +/**** Local declarations. ****/ +typedef enum { +TA_MACD_TEST, +TA_MACDFIX_TEST, +TA_MACDEXT_TEST +} TA_TestId; + +typedef struct +{ + TA_Integer doRangeTestFlag; + TA_TestId testId; + + TA_Integer startIdx; + TA_Integer endIdx; + + TA_Integer optInFastPeriod; + TA_Integer optInSlowPeriod; + TA_Integer optInSignalPeriod_2; + TA_Integer compatibility; + + TA_RetCode expectedRetCode; + + TA_Integer expectedBegIdx; + TA_Integer expectedNbElement; + + TA_Integer oneOfTheExpectedOutRealIndex0; + TA_Real oneOfTheExpectedOutReal0; + + TA_Integer oneOfTheExpectedOutRealIndex1; + TA_Real oneOfTheExpectedOutReal1; + + TA_Integer oneOfTheExpectedOutRealIndex2; + TA_Real oneOfTheExpectedOutReal2; + +} TA_Test; + +typedef struct +{ + const TA_Test *test; + const TA_Real *close; +} TA_RangeTestParam; + +/**** Local functions declarations. ****/ +static ErrorNumber do_test( const TA_History *history, + const TA_Test *test ); + +/**** Local variables definitions. ****/ +static TA_Test tableTest[] = +{ + + /*********************/ + /* MACD - CLASSIC */ + /*********************/ + { 0, TA_MACD_TEST, 0, 251, 12, 26, 9, TA_COMPATIBILITY_DEFAULT, TA_SUCCESS, 33, 252-33, /* 25, 252-25,*/ + 0, -1.9738, /* MACD */ + 0, -2.7071, /* Signal */ + 0, (-1.9738)-(-2.7071) }, /* Histogram */ + + /* Test period inversion */ + { 0, TA_MACD_TEST, 0, 251, 26, 12, 9, TA_COMPATIBILITY_DEFAULT, TA_SUCCESS, 33, 252-33, /* 25, 252-25,*/ + 0, -1.9738, /* MACD */ + 0, -2.7071, /* Signal */ + 0, (-1.9738)-(-2.7071) }, /* Histogram */ + + /***********************/ + /* MACD - METASTOCK */ + /***********************/ + + /*******************************/ + /* MACDEXT - MIMIC CLASSIC */ + /*******************************/ + { 0, TA_MACDEXT_TEST, 0, 251, 12, 26, 9, TA_COMPATIBILITY_DEFAULT, TA_SUCCESS, 33, 252-33, /* 25, 252-25,*/ + 0, -1.9738, /* MACD */ + 0, -2.7071, /* Signal */ + 0, (-1.9738)-(-2.7071)}, /* Histogram */ + + /***************************/ + /* MACD FIX - CLASSIC */ + /***************************/ + + /***************************/ + /* MACD FIX - METASTOCK */ + /***************************/ + { 1, TA_MACDFIX_TEST, 0, 251, 12, 26, 9, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, 33, 252-33, /* 25, 252-25,*/ + 0, -1.2185, /* MACD */ + 0, -1.7119, /* Signal */ + 0, (-1.2185)-(-1.7119) }, /* Histogram */ + + { 0, TA_MACDFIX_TEST, 0, 251, 12, 26, 9, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, 33, 252-33, + 252-34, 0.8764, /* MACD */ + 252-34, 1.3533, /* Signal */ + 252-34, (0.8764)-(1.3533)}, /* Histogram */ + /* Test period inversion */ + { 0, TA_MACDFIX_TEST, 0, 251, 26, 12, 9, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, 33, 252-33, + 252-34, 0.8764, /* MACD */ + 252-34, 1.3533, /* Signal */ + 252-34, (0.8764)-(1.3533)} /* Histogram */ + +}; + +#define NB_TEST (sizeof(tableTest)/sizeof(TA_Test)) + +/**** Global functions definitions. ****/ +ErrorNumber test_func_macd( TA_History *history ) +{ + unsigned int i; + ErrorNumber retValue; + + for( i=0; i < NB_TEST; i++ ) + { + + if( (int)tableTest[i].expectedNbElement > (int)history->nbBars ) + { + printf( "TA_MACD Failed Bad Parameter for Test #%d (%d,%d)\n", + i, + tableTest[i].expectedNbElement, + history->nbBars ); + return TA_TESTUTIL_TFRR_BAD_PARAM; + } + + retValue = do_test( history, &tableTest[i] ); + if( retValue != 0 ) + { + printf( "TA_MACD Failed Test #%d (Code=%d)\n", i, retValue ); + return retValue; + } + } + + /* All test succeed. */ + return TA_TEST_PASS; +} + +/**** Local functions definitions. ****/ +static TA_RetCode rangeTestFunction( TA_Integer startIdx, + TA_Integer endIdx, + TA_Real *outputBuffer, + TA_Integer *outputBufferInt, + TA_Integer *outBegIdx, + TA_Integer *outNbElement, + TA_Integer *lookback, + void *opaqueData, + unsigned int outputNb, + unsigned int *isOutputInteger ) +{ + TA_RetCode retCode; + TA_RangeTestParam *testParam; + TA_Real *dummyBuffer1, *dummyBuffer2; + TA_Real *out1, *out2, *out3; + + (void)outputBufferInt; + + *isOutputInteger = 0; + + testParam = (TA_RangeTestParam *)opaqueData; + + dummyBuffer1 = TA_Malloc( ((endIdx-startIdx)+1)*sizeof(TA_Real)); + if( !dummyBuffer1 ) + return TA_ALLOC_ERR; + + dummyBuffer2 = TA_Malloc( ((endIdx-startIdx)+1)*sizeof(TA_Real)); + if( !dummyBuffer2 ) + { + TA_Free( dummyBuffer1 ); + return TA_ALLOC_ERR; + } + + switch( outputNb ) + { + case 0: + out1 = outputBuffer; + out2 = dummyBuffer1; + out3 = dummyBuffer2; + break; + case 1: + out2 = outputBuffer; + out1 = dummyBuffer1; + out3 = dummyBuffer2; + break; + case 2: + out3 = outputBuffer; + out2 = dummyBuffer1; + out1 = dummyBuffer2; + break; + default: + TA_Free( dummyBuffer1 ); + TA_Free( dummyBuffer2 ); + return TA_BAD_PARAM; + } + + switch( testParam->test->testId ) + { + case TA_MACDFIX_TEST: + retCode = TA_MACDFIX( startIdx, + endIdx, + testParam->close, + testParam->test->optInSignalPeriod_2, + outBegIdx, outNbElement, + out1, out2, out3 ); + *lookback = TA_MACDFIX_Lookback( testParam->test->optInSignalPeriod_2 ); + break; + case TA_MACD_TEST: + retCode = TA_MACD( startIdx, + endIdx, + testParam->close, + testParam->test->optInFastPeriod, + testParam->test->optInSlowPeriod, + testParam->test->optInSignalPeriod_2, + outBegIdx, outNbElement, + out1, out2, out3 ); + + *lookback = TA_MACD_Lookback( testParam->test->optInFastPeriod, + testParam->test->optInSlowPeriod, + testParam->test->optInSignalPeriod_2 ); + break; + case TA_MACDEXT_TEST: + retCode = TA_MACDEXT( startIdx, + endIdx, + testParam->close, + testParam->test->optInFastPeriod, + TA_MAType_EMA, + testParam->test->optInSlowPeriod, + TA_MAType_EMA, + testParam->test->optInSignalPeriod_2, + TA_MAType_EMA, + outBegIdx, outNbElement, + out1, out2, out3 ); + + *lookback = TA_MACDEXT_Lookback( testParam->test->optInFastPeriod, + TA_MAType_EMA, + testParam->test->optInSlowPeriod, + TA_MAType_EMA, + testParam->test->optInSignalPeriod_2, + TA_MAType_EMA ); + break; + default: + retCode = TA_BAD_PARAM; + } + + TA_Free( dummyBuffer1 ); + TA_Free( dummyBuffer2 ); + + return retCode; +} + +static ErrorNumber do_test( const TA_History *history, + const TA_Test *test ) +{ + TA_RetCode retCode; + ErrorNumber errNb; + TA_Integer outBegIdx; + TA_Integer outNbElement; + TA_RangeTestParam testParam; + + retCode = TA_SetUnstablePeriod( TA_FUNC_UNST_EMA, 0 ); + if( retCode != TA_SUCCESS ) + return TA_TEST_TFRR_SETUNSTABLE_PERIOD_FAIL; + + TA_SetCompatibility( (TA_Compatibility)test->compatibility ); + + /* Set to NAN all the elements of the gBuffers. */ + clearAllBuffers(); + + /* Build the input. */ + setInputBuffer( 0, history->close, history->nbBars ); + setInputBuffer( 1, history->close, history->nbBars ); + setInputBuffer( 2, history->close, history->nbBars ); + setInputBuffer( 3, history->close, history->nbBars ); + + CLEAR_EXPECTED_VALUE(0); + CLEAR_EXPECTED_VALUE(1); + CLEAR_EXPECTED_VALUE(2); + + /* Make a simple first call. */ + switch( test->testId ) + { + case TA_MACDFIX_TEST: + retCode = TA_MACDFIX( test->startIdx, + test->endIdx, + gBuffer[0].in, + test->optInSignalPeriod_2, + &outBegIdx, &outNbElement, + gBuffer[0].out0, + gBuffer[0].out1, + gBuffer[0].out2 ); + break; + case TA_MACD_TEST: + retCode = TA_MACD(test->startIdx, + test->endIdx, + gBuffer[0].in, + test->optInFastPeriod, + test->optInSlowPeriod, + test->optInSignalPeriod_2, + &outBegIdx, &outNbElement, + gBuffer[0].out0, + gBuffer[0].out1, + gBuffer[0].out2 ); + break; + case TA_MACDEXT_TEST: + retCode = TA_MACDEXT( test->startIdx, + test->endIdx, + gBuffer[0].in, + test->optInFastPeriod, + TA_MAType_EMA, + test->optInSlowPeriod, + TA_MAType_EMA, + test->optInSignalPeriod_2, + TA_MAType_EMA, + &outBegIdx, &outNbElement, + gBuffer[0].out0, + gBuffer[0].out1, + gBuffer[0].out2 ); + break; + } + + + errNb = checkDataSame( gBuffer[0].in, history->close, history->nbBars ); + if( errNb != TA_TEST_PASS ) + return errNb; + + CHECK_EXPECTED_VALUE( gBuffer[0].out0, 0 ); + CHECK_EXPECTED_VALUE( gBuffer[0].out1, 1 ); + CHECK_EXPECTED_VALUE( gBuffer[0].out2, 2 ); + + outBegIdx = outNbElement = 0; + + /* Make another call where the input and the output are the + * same buffer. + */ + switch( test->testId ) + { + case TA_MACDFIX_TEST: + retCode = TA_MACDFIX( + test->startIdx, + test->endIdx, + gBuffer[1].in, + test->optInSignalPeriod_2, + &outBegIdx, &outNbElement, + gBuffer[1].in, + gBuffer[1].out1, + gBuffer[1].out2 ); + break; + case TA_MACD_TEST: + retCode = TA_MACD(test->startIdx, + test->endIdx, + gBuffer[1].in, + test->optInFastPeriod, + test->optInSlowPeriod, + test->optInSignalPeriod_2, + &outBegIdx, &outNbElement, + gBuffer[1].in, + gBuffer[1].out1, + gBuffer[1].out2 ); + break; + case TA_MACDEXT_TEST: + retCode = TA_MACDEXT( test->startIdx, + test->endIdx, + gBuffer[1].in, + test->optInFastPeriod, + TA_MAType_EMA, + test->optInSlowPeriod, + TA_MAType_EMA, + test->optInSignalPeriod_2, + TA_MAType_EMA, + &outBegIdx, &outNbElement, + gBuffer[1].in, + gBuffer[1].out1, + gBuffer[1].out2 ); + break; + } + + /* The previous call should have the same output + * as this call. + * + * checkSameContent verify that all value different than NAN in + * the first parameter is identical in the second parameter. + */ + errNb = checkSameContent( gBuffer[0].out0, gBuffer[1].in ); + if( errNb != TA_TEST_PASS ) + return errNb; + + CHECK_EXPECTED_VALUE( gBuffer[1].in, 0 ); + CHECK_EXPECTED_VALUE( gBuffer[1].out1, 1 ); + CHECK_EXPECTED_VALUE( gBuffer[1].out2, 2 ); + + outBegIdx = outNbElement = 0; + + CLEAR_EXPECTED_VALUE(0); + CLEAR_EXPECTED_VALUE(1); + CLEAR_EXPECTED_VALUE(2); + + /* Make another call where the input and the output are the + * same buffer. + */ + switch( test->testId ) + { + case TA_MACDFIX_TEST: + retCode = TA_MACDFIX( + test->startIdx, + test->endIdx, + gBuffer[2].in, + test->optInSignalPeriod_2, + &outBegIdx, &outNbElement, + gBuffer[2].out1, + gBuffer[2].in, + gBuffer[2].out2 ); + break; + + case TA_MACD_TEST: + retCode = TA_MACD( + test->startIdx, + test->endIdx, + gBuffer[2].in, + test->optInFastPeriod, + test->optInSlowPeriod, + test->optInSignalPeriod_2, + &outBegIdx, &outNbElement, + gBuffer[2].out1, + gBuffer[2].in, + gBuffer[2].out2 ); + break; + case TA_MACDEXT_TEST: + retCode = TA_MACDEXT( + test->startIdx, + test->endIdx, + gBuffer[2].in, + test->optInFastPeriod, + TA_MAType_EMA, + test->optInSlowPeriod, + TA_MAType_EMA, + test->optInSignalPeriod_2, + TA_MAType_EMA, + &outBegIdx, &outNbElement, + gBuffer[2].out1, + gBuffer[2].in, + gBuffer[2].out2 ); + break; + } + + /* The previous call should have the same output + * as this call. + * + * checkSameContent verify that all value different than NAN in + * the first parameter is identical in the second parameter. + */ + errNb = checkSameContent( gBuffer[1].out1, gBuffer[2].in ); + if( errNb != TA_TEST_PASS ) + return errNb; + + CHECK_EXPECTED_VALUE( gBuffer[2].out1, 0 ); + CHECK_EXPECTED_VALUE( gBuffer[2].in, 1 ); + CHECK_EXPECTED_VALUE( gBuffer[2].out2, 2 ); + + outBegIdx = outNbElement = 0; + + CLEAR_EXPECTED_VALUE(0); + CLEAR_EXPECTED_VALUE(1); + CLEAR_EXPECTED_VALUE(2); + + /* Make another call where the input and the output are the + * same buffer. + */ + switch( test->testId ) + { + case TA_MACDFIX_TEST: + retCode = TA_MACDFIX( test->startIdx, + test->endIdx, + gBuffer[3].in, + test->optInSignalPeriod_2, + &outBegIdx, &outNbElement, + gBuffer[3].out1, + gBuffer[3].out2, + gBuffer[3].in ); + break; + case TA_MACD_TEST: + retCode = TA_MACD(test->startIdx, + test->endIdx, + gBuffer[3].in, + test->optInFastPeriod, + test->optInSlowPeriod, + test->optInSignalPeriod_2, + &outBegIdx, &outNbElement, + gBuffer[3].out1, + gBuffer[3].out2, + gBuffer[3].in ); + break; + case TA_MACDEXT_TEST: + retCode = TA_MACDEXT( test->startIdx, + test->endIdx, + gBuffer[3].in, + test->optInFastPeriod, + TA_MAType_EMA, + test->optInSlowPeriod, + TA_MAType_EMA, + test->optInSignalPeriod_2, + TA_MAType_EMA, + &outBegIdx, &outNbElement, + gBuffer[3].out1, + gBuffer[3].out2, + gBuffer[3].in ); + break; + } + + /* The previous call should have the same output + * as this call. + * + * checkSameContent verify that all value different than NAN in + * the first parameter is identical in the second parameter. + */ + errNb = checkSameContent( gBuffer[2].out2, gBuffer[3].in ); + if( errNb != TA_TEST_PASS ) + return errNb; + + CHECK_EXPECTED_VALUE( gBuffer[3].out1, 0 ); + CHECK_EXPECTED_VALUE( gBuffer[3].out2, 1 ); + CHECK_EXPECTED_VALUE( gBuffer[3].in, 2 ); + + /* Do a systematic test of most of the + * possible startIdx/endIdx range. + */ + testParam.test = test; + testParam.close = history->close; + + if( test->doRangeTestFlag ) + { + errNb = doRangeTest( rangeTestFunction, + TA_FUNC_UNST_EMA, + (void *)&testParam, 3, 0 ); + if( errNb != TA_TEST_PASS ) + return errNb; + } + + return TA_TEST_PASS; +} diff --git a/src/tools/ta_regtest/ta_test_func/test_minmax.c b/src/tools/ta_regtest/ta_test_func/test_minmax.c new file mode 100644 index 000000000..251de602a --- /dev/null +++ b/src/tools/ta_regtest/ta_test_func/test_minmax.c @@ -0,0 +1,833 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * MF Mario Fortier + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 112400 MF First version. + * 122506 MF Add tests for MININDEX,MAXINDEX,MINMAX and MINMAXINDEX. + */ + +/* Description: + * Test the min/max related functions. + * + */ + +/**** Headers ****/ +#include +#include + +#include "ta_test_priv.h" +#include "ta_test_func.h" +#include "ta_utility.h" +#include "ta_memory.h" + +/**** External functions declarations. ****/ +/* None */ + +/**** External variables declarations. ****/ +/* None */ + +/**** Global variables definitions. ****/ +/* None */ + +/**** Local declarations. ****/ +typedef enum { +TA_MIN_TEST, +TA_MAX_TEST, +TA_MINMAX_TEST, +TA_MININDEX_TEST, +TA_MAXINDEX_TEST, +TA_MINMAXINDEX_TEST +} TA_TestId; + +typedef struct +{ + TA_Integer doRangeTestFlag; + + TA_TestId theFunction; + + TA_Integer startIdx; + TA_Integer endIdx; + + TA_Integer optInTimePeriod; + + TA_RetCode expectedRetCode; + + TA_Integer oneOfTheExpectedOutRealIndex0; + TA_Real oneOfTheExpectedOutReal0; + + TA_Integer expectedBegIdx; + TA_Integer expectedNbElement; +} TA_Test; + +typedef struct +{ + const TA_Real *input; + unsigned int nbElement; +} TA_RefTest; + +typedef struct +{ + const TA_Test *test; + const TA_Real *close; +} TA_RangeTestParam; + +/**** Local functions declarations. ****/ +static ErrorNumber do_test( const TA_History *history, + const TA_Test *test ); + +static TA_RetCode referenceMin( TA_Integer startIdx, + TA_Integer endIdx, + const TA_Real inReal[], + TA_Integer optInTimePeriod, + TA_Integer *outBegIdx, + TA_Integer *outNbElement, + TA_Real outReal[] ); + +static TA_RetCode referenceMax( TA_Integer startIdx, + TA_Integer endIdx, + const TA_Real inReal[], + TA_Integer optInTimePeriod, + TA_Integer *outBegIdx, + TA_Integer *outNbElement, + TA_Real outReal[] ); + +static ErrorNumber testCompareToReference( const TA_Real *input, int nbElement ); + +/**** Local variables definitions. ****/ + +static TA_Test tableTest[] = +{ + /**********************/ + /* MIN TEST */ + /**********************/ + + /* No output value. */ + { 0, TA_MIN_TEST, 1, 1, 14, TA_SUCCESS, 0, 0, 0, 0}, + + /* One value tests. */ + { 0, TA_MIN_TEST, 14, 14, 14, TA_SUCCESS, 0, 91.125, 14, 1}, + + /* Index too low test. */ + { 0, TA_MIN_TEST, 0, 15, 14, TA_SUCCESS, 0, 91.125, 13, 3}, + { 0, TA_MIN_TEST, 1, 15, 14, TA_SUCCESS, 0, 91.125, 13, 3}, + { 0, TA_MIN_TEST, 2, 16, 14, TA_SUCCESS, 0, 91.125, 13, 4}, + { 0, TA_MIN_TEST, 2, 16, 14, TA_SUCCESS, 1, 91.125, 13, 4}, + { 0, TA_MIN_TEST, 2, 16, 14, TA_SUCCESS, 2, 91.125, 13, 4}, + { 0, TA_MIN_TEST, 0, 14, 14, TA_SUCCESS, 0, 91.125, 13, 2}, + { 0, TA_MIN_TEST, 0, 13, 14, TA_SUCCESS, 0, 91.125, 13, 1}, + + /* Middle of data test. */ + { 0, TA_MIN_TEST, 20, 21, 14, TA_SUCCESS, 0, 89.345, 20, 2 }, + { 0, TA_MIN_TEST, 20, 21, 14, TA_SUCCESS, 1, 87.94, 20, 2 }, + + /* Misc tests: 2 and 14 periods */ + { 1, TA_MIN_TEST, 0, 251, 14, TA_SUCCESS, 0, 91.125, 13, 252-13 }, /* First Value */ + { 0, TA_MIN_TEST, 0, 251, 14, TA_SUCCESS, 1, 91.125, 13, 252-13 }, + { 0, TA_MIN_TEST, 0, 251, 14, TA_SUCCESS, 2, 91.125, 13, 252-13 }, + { 0, TA_MIN_TEST, 0, 251, 14, TA_SUCCESS, 3, 91.125, 13, 252-13 }, + { 0, TA_MIN_TEST, 0, 251, 14, TA_SUCCESS, 4, 89.75, 13, 252-13 }, + { 0, TA_MIN_TEST, 0, 251, 14, TA_SUCCESS, 252-14, 107.75, 13, 252-13 }, /* Last Value */ + + { 1, TA_MIN_TEST, 0, 251, 2, TA_SUCCESS, 0, 91.5, 1, 252-1 }, /* First Value */ + { 0, TA_MIN_TEST, 0, 251, 2, TA_SUCCESS, 1, 91.5, 1, 252-1 }, + { 0, TA_MIN_TEST, 0, 251, 2, TA_SUCCESS, 2, 93.97, 1, 252-1 }, + { 0, TA_MIN_TEST, 0, 251, 2, TA_SUCCESS, 3, 93.97, 1, 252-1 }, + { 0, TA_MIN_TEST, 0, 251, 2, TA_SUCCESS, 4, 94.5, 1, 252-1 }, + { 0, TA_MIN_TEST, 0, 251, 2, TA_SUCCESS, 252-2, 109.19, 1, 252-1 }, /* Last Value */ + + /**********************/ + /* MAX TEST */ + /**********************/ + + /* One value tests. */ + { 0, TA_MAX_TEST, 14, 14, 14, TA_SUCCESS, 0, 98.815, 14, 1}, + + /* Index too low test. */ + { 0, TA_MAX_TEST, 0, 15, 14, TA_SUCCESS, 0, 98.815, 13, 3}, + { 0, TA_MAX_TEST, 1, 15, 14, TA_SUCCESS, 0, 98.815, 13, 3}, + { 0, TA_MAX_TEST, 2, 16, 14, TA_SUCCESS, 0, 98.815, 13, 4}, + { 0, TA_MAX_TEST, 2, 16, 14, TA_SUCCESS, 1, 98.815, 13, 4}, + { 0, TA_MAX_TEST, 2, 16, 14, TA_SUCCESS, 2, 98.815, 13, 4}, + { 0, TA_MAX_TEST, 0, 14, 14, TA_SUCCESS, 0, 98.815, 13, 2}, + { 0, TA_MAX_TEST, 0, 13, 14, TA_SUCCESS, 0, 98.815, 13, 1}, + + /* Middle of data test. */ + { 0, TA_MAX_TEST, 20, 21, 14, TA_SUCCESS, 0, 98.815, 20, 2 }, + { 0, TA_MAX_TEST, 20, 21, 14, TA_SUCCESS, 1, 98.815, 20, 2 }, + { 0, TA_MAX_TEST, 20, 99, 14, TA_SUCCESS, 6, 93.405, 20, 80 }, + { 0, TA_MAX_TEST, 20, 99, 14, TA_SUCCESS, 6, 93.405, 20, 80 }, + { 0, TA_MAX_TEST, 20, 99, 14, TA_SUCCESS, 13, 89.78, 20, 80 }, + + /* Misc tests: 1, 2 and 14 periods */ + { 1, TA_MAX_TEST, 0, 251, 14, TA_SUCCESS, 0, 98.815, 13, 252-13 }, /* First Value */ + { 0, TA_MAX_TEST, 0, 251, 14, TA_SUCCESS, 1, 98.815, 13, 252-13 }, + { 0, TA_MAX_TEST, 0, 251, 14, TA_SUCCESS, 2, 98.815, 13, 252-13 }, + { 0, TA_MAX_TEST, 0, 251, 14, TA_SUCCESS, 3, 98.815, 13, 252-13 }, + { 0, TA_MAX_TEST, 0, 251, 14, TA_SUCCESS, 4, 98.815, 13, 252-13 }, + { 0, TA_MAX_TEST, 0, 251, 14, TA_SUCCESS, 252-14, 110.69, 13, 252-13 }, /* Last Value */ + + { 1, TA_MAX_TEST, 0, 251, 2, TA_SUCCESS, 0, 92.5, 1, 252-1 }, /* First Value */ + { 0, TA_MAX_TEST, 0, 251, 2, TA_SUCCESS, 1, 95.155, 1, 252-1 }, + { 0, TA_MAX_TEST, 0, 251, 2, TA_SUCCESS, 2, 95.155, 1, 252-1 }, + { 0, TA_MAX_TEST, 0, 251, 2, TA_SUCCESS, 3, 95.5, 1, 252-1 }, + { 0, TA_MAX_TEST, 0, 251, 2, TA_SUCCESS, 4, 95.5, 1, 252-1 }, + { 0, TA_MAX_TEST, 0, 251, 2, TA_SUCCESS, 5, 95.0, 1, 252-1 }, + { 0, TA_MAX_TEST, 0, 251, 2, TA_SUCCESS, 252-2, 109.69, 1, 252-1 }, /* Last Value */ + + /*************************************/ + /* MINMAX and INDEX Functions tests */ + /*************************************/ + + /* Note: for now only range tests done on these */ + { 1, TA_MINMAX_TEST, 0, 251, 14, TA_SUCCESS, 0, 91.125, 13, 252-13 }, + { 1, TA_MINMAXINDEX_TEST, 0, 251, 14, TA_SUCCESS, 0, 91.125, 13, 252-13 }, + { 1, TA_MININDEX_TEST, 0, 251, 14, TA_SUCCESS, 0, 91.125, 13, 252-13 }, + { 1, TA_MAXINDEX_TEST, 0, 251, 14, TA_SUCCESS, 0, 91.125, 13, 252-13 } +}; + +#define NB_TEST (sizeof(tableTest)/sizeof(TA_Test)) + +static TA_Real testSerie1[] = {9,8,7,6,5}; +static TA_Real testSerie2[] = {3,7,9,10,15,33,50}; +static TA_Real testSerie3[] = {0,0,0,1,2,0,0,0}; +static TA_Real testSerie4[] = {0,0,0,2,1,0,0,0}; +static TA_Real testSerie5[] = {2,0,0,0,0,0,0,0}; +static TA_Real testSerie6[] = {0,0,0,0,0,0,0,1}; +static TA_Real testSerie7[] = {-3,2}; +static TA_Real testSerie8[] = {2,-2}; +static TA_Real testSerie9[] = {4,2,3}; +static TA_Real testSerie10[] = {3,3,-3,2,-1,0,2}; + +static TA_RefTest tableRefTest[] = +{ + {testSerie1, sizeof(testSerie1)/sizeof(TA_Real)}, + {testSerie2, sizeof(testSerie2)/sizeof(TA_Real)}, + {testSerie3, sizeof(testSerie3)/sizeof(TA_Real)}, + {testSerie4, sizeof(testSerie4)/sizeof(TA_Real)}, + {testSerie5, sizeof(testSerie5)/sizeof(TA_Real)}, + {testSerie6, sizeof(testSerie6)/sizeof(TA_Real)}, + {testSerie7, sizeof(testSerie7)/sizeof(TA_Real)}, + {testSerie8, sizeof(testSerie8)/sizeof(TA_Real)}, + {testSerie9, sizeof(testSerie10)/sizeof(TA_Real)} +}; + +#define NB_TEST_REF (sizeof(tableRefTest)/sizeof(TA_RefTest)) + +/**** Global functions definitions. ****/ +ErrorNumber test_func_minmax( TA_History *history ) +{ + unsigned int i; + ErrorNumber retValue; + + for( i=0; i < NB_TEST; i++ ) + { + if( (int)tableTest[i].expectedNbElement > (int)history->nbBars ) + { + printf( "%s Failed Bad Parameter for Test #%d (%d,%d)\n", __FILE__, + i, tableTest[i].expectedNbElement, history->nbBars ); + return TA_TESTUTIL_TFRR_BAD_PARAM; + } + + retValue = do_test( history, &tableTest[i] ); + if( retValue != 0 ) + { + printf( "%s Failed Test #%d (Code=%d)\n", __FILE__, + i, retValue ); + return retValue; + } + } + + /* Do tests against a local reference which is the non-optimized implementation */ + for( i=0; i < NB_TEST_REF; i++ ) + { + retValue = testCompareToReference( tableRefTest[i].input, + tableRefTest[i].nbElement ); + if( retValue != 0 ) + { + printf( "%s Failed Ref Test #%d (Code=%d)\n", __FILE__, + i, retValue ); + return retValue; + } + } + + /* All test succeed. */ + return TA_TEST_PASS; +} + +/**** Local functions definitions. ****/ +static TA_RetCode rangeTestFunction( TA_Integer startIdx, + TA_Integer endIdx, + TA_Real *outputBuffer, + TA_Integer *outputBufferInt, + TA_Integer *outBegIdx, + TA_Integer *outNbElement, + TA_Integer *lookback, + void *opaqueData, + unsigned int outputNb, + unsigned int *isOutputInteger ) +{ + TA_RetCode retCode; + TA_RangeTestParam *testParam; + TA_Real *dummyBufferReal; + TA_Real *out1Real; + TA_Real *out2Real; + + TA_Integer *dummyBufferInt; + TA_Integer *out1Int; + TA_Integer *out2Int; + + (void)outputNb; + (void)outputBufferInt; + + *isOutputInteger = 0; + + testParam = (TA_RangeTestParam *)opaqueData; + + dummyBufferReal = TA_Malloc( ((endIdx-startIdx)+1)*sizeof(TA_Real)); + if( !dummyBufferReal ) + return TA_ALLOC_ERR; + + dummyBufferInt = TA_Malloc( ((endIdx-startIdx)+1)*sizeof(TA_Integer)); + if( !dummyBufferInt ) + { + TA_Free( dummyBufferReal ); + return TA_ALLOC_ERR; + } + + switch( outputNb ) + { + case 0: + out1Real = outputBuffer; + out2Real = dummyBufferReal; + out1Int = outputBufferInt; + out2Int = dummyBufferInt; + break; + case 1: + out1Real = dummyBufferReal; + out2Real = outputBuffer; + out1Int = dummyBufferInt; + out2Int = outputBufferInt; + break; + default: + TA_Free( dummyBufferReal ); + return TA_BAD_PARAM; + } + + switch( testParam->test->theFunction ) + { + case TA_MIN_TEST: + retCode = TA_MIN( startIdx, + endIdx, + testParam->close, + testParam->test->optInTimePeriod, + outBegIdx, + outNbElement, + outputBuffer ); + *lookback = TA_MIN_Lookback( testParam->test->optInTimePeriod ); + break; + + case TA_MAX_TEST: + retCode = TA_MAX( startIdx, + endIdx, + testParam->close, + testParam->test->optInTimePeriod, + outBegIdx, + outNbElement, + outputBuffer ); + *lookback = TA_MAX_Lookback( testParam->test->optInTimePeriod ); + break; + + case TA_MINMAX_TEST: + retCode = TA_MINMAX( startIdx, + endIdx, + testParam->close, + testParam->test->optInTimePeriod, + outBegIdx, + outNbElement, + out1Real, out2Real ); + *lookback = TA_MINMAX_Lookback( testParam->test->optInTimePeriod ); + break; + + case TA_MINMAXINDEX_TEST: + retCode = TA_MINMAXINDEX( startIdx, + endIdx, + testParam->close, + testParam->test->optInTimePeriod, + outBegIdx, + outNbElement, + out1Int, out2Int ); + *lookback = TA_MINMAXINDEX_Lookback( testParam->test->optInTimePeriod ); + *isOutputInteger = 1; + break; + + case TA_MININDEX_TEST: + retCode = TA_MININDEX( startIdx, + endIdx, + testParam->close, + testParam->test->optInTimePeriod, + outBegIdx, + outNbElement, + out1Int ); + *lookback = TA_MININDEX_Lookback( testParam->test->optInTimePeriod ); + *isOutputInteger = 1; + break; + + case TA_MAXINDEX_TEST: + retCode = TA_MAXINDEX( startIdx, + endIdx, + testParam->close, + testParam->test->optInTimePeriod, + outBegIdx, + outNbElement, + out1Int ); + *lookback = TA_MAXINDEX_Lookback( testParam->test->optInTimePeriod ); + *isOutputInteger = 1; + break; + + default: + retCode = TA_INTERNAL_ERROR(129); + break; + } + + TA_Free( dummyBufferReal ); + TA_Free( dummyBufferInt ); + + return retCode; +} + +static ErrorNumber do_test( const TA_History *history, + const TA_Test *test ) +{ + TA_RetCode retCode; + ErrorNumber errNb; + TA_Integer outBegIdx; + TA_Integer outNbElement; + TA_RangeTestParam testParam; + + /* Set to NAN all the elements of the gBuffers. */ + clearAllBuffers(); + + /* Build the input. */ + setInputBuffer( 0, history->open, history->nbBars ); + setInputBuffer( 1, history->open, history->nbBars ); + + CLEAR_EXPECTED_VALUE(0); + + /* Do a systematic test of most of the + * possible startIdx/endIdx range. + */ + testParam.test = test; + testParam.close = history->close; + + if( test->doRangeTestFlag ) + { + errNb = doRangeTest( rangeTestFunction, + TA_FUNC_UNST_NONE, + (void *)&testParam, 1, 0 ); + if( errNb != TA_TEST_PASS ) + return errNb; + } + + + /* Make a simple first call. */ + if( test->theFunction == TA_MIN_TEST ) + { + retCode = TA_MIN( test->startIdx, + test->endIdx, + gBuffer[0].in, + test->optInTimePeriod, + &outBegIdx, + &outNbElement, + gBuffer[0].out0 ); + } + else if( test->theFunction == TA_MAX_TEST ) + { + retCode = TA_MAX( test->startIdx, + test->endIdx, + gBuffer[0].in, + test->optInTimePeriod, + &outBegIdx, + &outNbElement, + gBuffer[0].out0 ); + } + else + { + /* For now, tests only MIN and MAX. Only range check tests implemented. */ + return TA_TEST_PASS; + } + + errNb = checkDataSame( gBuffer[0].in, history->open,history->nbBars ); + if( errNb != TA_TEST_PASS ) + return errNb; + + CHECK_EXPECTED_VALUE( gBuffer[0].out0, 0 ); + + outBegIdx = outNbElement = 0; + + /* Make another call where the input and the output are the + * same buffer. + */ + CLEAR_EXPECTED_VALUE(0); + if( test->theFunction == TA_MIN_TEST ) + { + retCode = TA_MIN( test->startIdx, + test->endIdx, + gBuffer[1].in, + test->optInTimePeriod, + &outBegIdx, + &outNbElement, + gBuffer[1].in ); + } + else if( test->theFunction == TA_MAX_TEST ) + { + retCode = TA_MAX( test->startIdx, + test->endIdx, + gBuffer[1].in, + test->optInTimePeriod, + &outBegIdx, + &outNbElement, + gBuffer[1].in ); + } + + /* The previous call should have the same output as this call. + * + * checkSameContent verify that all value different than NAN in + * the first parameter is identical in the second parameter. + */ + errNb = checkSameContent( gBuffer[0].out0, gBuffer[1].in ); + if( errNb != TA_TEST_PASS ) + return errNb; + + CHECK_EXPECTED_VALUE( gBuffer[1].in, 0 ); + + if( errNb != TA_TEST_PASS ) + return errNb; + + + return TA_TEST_PASS; +} + + +/* These reference functions were the original non-optimized + * version of TA_MIN and TA_MAX. + * + * TA-Lib might implement a faster algorithm, at the cost + * of complexity. Consequently, it is important to verify the + * equivalence between the optimize and non-optimized version. + */ +static TA_RetCode referenceMin( TA_Integer startIdx, + TA_Integer endIdx, + const TA_Real inReal[], + TA_Integer optInTimePeriod, + TA_Integer *outBegIdx, + TA_Integer *outNbElement, + TA_Real outReal[] ) +{ + TA_Real lowest, tmp; + TA_Integer outIdx, nbInitialElementNeeded; + TA_Integer trailingIdx, today, i; + + /* Identify the minimum number of price bar needed + * to identify at least one output over the specified + * period. + */ + nbInitialElementNeeded = (optInTimePeriod-1); + + /* Move up the start index if there is not + * enough initial data. + */ + if( startIdx < nbInitialElementNeeded ) + startIdx = nbInitialElementNeeded; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) + { + *outBegIdx = 0; + *outNbElement = 0; + return TA_SUCCESS; + } + + /* Proceed with the calculation for the requested range. + * Note that this algorithm allows the input and + * output to be the same buffer. + */ + outIdx = 0; + today = startIdx; + trailingIdx = startIdx-nbInitialElementNeeded; + + while( today <= endIdx ) + { + lowest = inReal[trailingIdx++]; + for( i=trailingIdx; i <= today; i++ ) + { + tmp = inReal[i]; + if( tmp < lowest) lowest= tmp; + } + + outReal[outIdx++] = lowest; + today++; + } + + /* Keep the outBegIdx relative to the + * caller input before returning. + */ + *outBegIdx = startIdx; + *outNbElement = outIdx; + + return TA_SUCCESS; +} + +static TA_RetCode referenceMax( TA_Integer startIdx, + TA_Integer endIdx, + const TA_Real inReal[], + TA_Integer optInTimePeriod, + TA_Integer *outBegIdx, + TA_Integer *outNbElement, + TA_Real outReal[] ) +{ + /* Insert local variables here. */ + TA_Real highest, tmp; + TA_Integer outIdx, nbInitialElementNeeded; + TA_Integer trailingIdx, today, i; + + +#ifndef TA_FUNC_NO_RANGE_CHECK + + /* Validate the requested output range. */ + if( startIdx < 0 ) + return TA_OUT_OF_RANGE_START_INDEX; + if( (endIdx < 0) || (endIdx < startIdx)) + return TA_OUT_OF_RANGE_END_INDEX; + + /* Validate the parameters. */ + if( !inReal ) return TA_BAD_PARAM; + /* min/max are checked for optInTimePeriod. */ + if( optInTimePeriod == TA_INTEGER_DEFAULT ) + optInTimePeriod = 30; + + if( outReal == NULL ) + return TA_BAD_PARAM; + +#endif /* TA_FUNC_NO_RANGE_CHECK */ + + /* Insert TA function code here. */ + + /* Identify the minimum number of price bar needed + * to identify at least one output over the specified + * period. + */ + nbInitialElementNeeded = (optInTimePeriod-1); + + /* Move up the start index if there is not + * enough initial data. + */ + if( startIdx < nbInitialElementNeeded ) + startIdx = nbInitialElementNeeded; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) + { + *outBegIdx = 0; + *outNbElement = 0; + return TA_SUCCESS; + } + + /* Proceed with the calculation for the requested range. + * Note that this algorithm allows the input and + * output to be the same buffer. + */ + outIdx = 0; + today = startIdx; + trailingIdx = startIdx-nbInitialElementNeeded; + + while( today <= endIdx ) + { + highest = inReal[trailingIdx++]; + for( i=trailingIdx; i <= today; i++ ) + { + tmp = inReal[i]; + if( tmp > highest ) highest = tmp; + } + + outReal[outIdx++] = highest; + today++; + } + + /* Keep the outBegIdx relative to the + * caller input before returning. + */ + *outBegIdx = startIdx; + *outNbElement = outIdx; + + return TA_SUCCESS; +} + +static ErrorNumber testCompareToReference( const TA_Real *input, int nbElement ) +{ + TA_Integer outBegIdx, outNbElement; + TA_RetCode retCode; + + TA_Integer outBegIdxRef, outNbElementRef; + TA_RetCode retCodeRef; + + int period, startIdx, endIdx, testNb; + + ErrorNumber errNb; + + outBegIdxRef = outNbElementRef = -1; + + /* Do a systematic tests, even for failure cases. */ + for( testNb=0; testNb <= 1; testNb++ ) /* 0=TA_MIN, 1=TA_MAX */ + { + for( period=2; period <= nbElement; period++ ) + { + for( startIdx=0; startIdx < nbElement; startIdx++ ) + { + for( endIdx=0; (endIdx < nbElement) && (startIdx <= endIdx); endIdx++ ) + { + /* Set to NAN all the elements of the gBuffers. + * Note: These buffer are used as an attempt to detect + * out-of-bound writing in the output. + */ + clearAllBuffers(); + + /* Build the input. */ + setInputBuffer( 0, input, nbElement ); + + /* Get the reference output. */ + if( testNb == 0 ) + retCodeRef = referenceMin( startIdx, endIdx, input, period, + &outBegIdxRef, &outNbElementRef, gBuffer[0].out0 ); + else + retCodeRef = referenceMax( startIdx, endIdx, input, period, + &outBegIdxRef, &outNbElementRef, gBuffer[0].out0 ); + + /* Verify that the input was preserved */ + errNb = checkDataSame( gBuffer[0].in, input, nbElement ); + if( errNb != TA_TEST_PASS ) + return errNb; + + /* Get the TA-Lib implementation output. */ + if( testNb == 0 ) + retCode = TA_MIN( startIdx, endIdx, input, period, + &outBegIdx, &outNbElement, gBuffer[1].out0 ); + else + retCode = TA_MAX( startIdx, endIdx, input, period, + &outBegIdx, &outNbElement, gBuffer[1].out0 ); + + /* Verify that the input was preserved */ + errNb = checkDataSame( gBuffer[0].in, input, nbElement ); + if( errNb != TA_TEST_PASS ) + return errNb; + + /* The reference and TA-LIB should have the same output. */ + if( retCode != retCodeRef ) + { + printf( "Failure: retCode != retCodeRef\n" ); + return TA_REGTEST_OPTIMIZATION_REF_ERROR; + } + + if( outBegIdx != outBegIdxRef ) + { + printf( "Failure: outBegIdx != outBegIdxRef\n" ); + return TA_REGTEST_OPTIMIZATION_REF_ERROR; + } + + if( outNbElement != outNbElementRef ) + { + printf( "Failure: outNbElement != outNbElementRef\n" ); + return TA_REGTEST_OPTIMIZATION_REF_ERROR; + } + + /* checkSameContent verify that all value different than NAN in + * the first parameter is identical in the second parameter. + */ + errNb = checkSameContent( gBuffer[0].out0, gBuffer[1].out0 ); + if( errNb != TA_TEST_PASS ) + return errNb; + + if( retCode == TA_SUCCESS ) + { + /* Make another test using the same input/output buffer. + * The output should still be the same. + */ + if( testNb == 0 ) + retCode = TA_MIN( startIdx, endIdx, gBuffer[0].in, period, + &outBegIdx, &outNbElement, gBuffer[0].in ); + else + retCode = TA_MAX( startIdx, endIdx, gBuffer[0].in, period, + &outBegIdx, &outNbElement, gBuffer[0].in ); + + /* The reference and TA-LIB should have the same output. */ + if( retCode != retCodeRef ) + { + printf( "Failure: retCode != retCodeRef (2)\n" ); + return TA_REGTEST_OPTIMIZATION_REF_ERROR; + } + + if( outBegIdx != outBegIdxRef ) + { + printf( "Failure: outBegIdx != outBegIdxRef (2)\n" ); + return TA_REGTEST_OPTIMIZATION_REF_ERROR; + } + + if( outNbElement != outNbElementRef ) + { + printf( "Failure: outNbElement != outNbElementRef (2)\n" ); + return TA_REGTEST_OPTIMIZATION_REF_ERROR; + } + + /* checkSameContent verify that all value different than NAN in + * the first parameter is identical in the second parameter. + */ + errNb = checkSameContent( gBuffer[0].out0, gBuffer[0].in ); + if( errNb != TA_TEST_PASS ) + return errNb; + } + } + } + } + } + + return TA_TEST_PASS; +} diff --git a/src/tools/ta_regtest/ta_test_func/test_mom.c b/src/tools/ta_regtest/ta_test_func/test_mom.c new file mode 100644 index 000000000..d95f1d824 --- /dev/null +++ b/src/tools/ta_regtest/ta_test_func/test_mom.c @@ -0,0 +1,553 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * MF Mario Fortier + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 112400 MF First version. + * + */ + +/* Description: + * Test the momentum functions + * + * The interpretation of the rate of change varies widely depending + * which software and/or books you are refering to. + * + * The following is the table of Rate-Of-Change implemented in TA-LIB: + * MOM = (price - prevPrice) [Momentum] + * ROC = ((price/prevPrice)-1)*100 [Rate of change] + * ROCP = (price-prevPrice)/prevPrice [Rate of change Percentage] + * ROCR = (price/prevPrice) [Rate of change ratio] + * ROCR100 = (price/prevPrice)*100 [Rate of change ratio 100 Scale] + * + * Here are the equivalent function in other software: + * TA-Lib | Tradestation | Metastock + * ================================================= + * MOM | Momentum | ROC (Point) + * ROC | ROC | ROC (Percent) + * ROCP | PercentChange | - + * ROCR | - | - + * ROCR100 | - | MO + * + * The MOM function is the only one who is not normalized, and thus + * should be avoided for comparing different time serie of prices. + * + * ROC and ROCP are centered at zero and can have positive and negative + * value. Here are some equivalence: + * ROC = ROCP/100 + * = ((price-prevPrice)/prevPrice)/100 + * = ((price/prevPrice)-1)*100 + * + * ROCR and ROCR100 are ratio respectively centered at 1 and 100 and are + * always positive values. + */ + +/**** Headers ****/ +#include +#include + +#include "ta_test_priv.h" +#include "ta_test_func.h" +#include "ta_utility.h" + +/**** External functions declarations. ****/ +/* None */ + +/**** External variables declarations. ****/ +/* None */ + +/**** Global variables definitions. ****/ +/* None */ + +/**** Local declarations. ****/ +typedef enum { +TA_MOM_TEST, +TA_ROC_TEST, +TA_ROCP_TEST, +TA_ROCR_TEST, +TA_ROCR100_TEST } TA_TestId; + +typedef struct +{ + TA_Integer doRangeTestFlag; + TA_TestId theFunction; + + TA_Integer startIdx; + TA_Integer endIdx; + + TA_Integer optInTimePeriod; + + TA_RetCode expectedRetCode; + + TA_Integer oneOfTheExpectedOutRealIndex0; + TA_Real oneOfTheExpectedOutReal0; + + TA_Integer expectedBegIdx; + TA_Integer expectedNbElement; +} TA_Test; + +typedef struct +{ + const TA_Test *test; + const TA_Real *close; +} TA_RangeTestParam; + +/**** Local functions declarations. ****/ +static ErrorNumber do_test( const TA_History *history, + const TA_Test *test ); + +/**** Local variables definitions. ****/ + +static TA_Test tableTest[] = +{ + /**********************/ + /* MOM TEST */ + /**********************/ + +#ifndef TA_FUNC_NO_RANGE_CHECK + /* Test out of range. */ + { 0, TA_MOM_TEST, -1, 3, 14, TA_OUT_OF_RANGE_START_INDEX, 0, 0, 0, 0}, + { 0, TA_MOM_TEST, 3, -1, 14, TA_OUT_OF_RANGE_END_INDEX, 0, 0, 0, 0}, + { 0, TA_MOM_TEST, 4, 3, 14, TA_OUT_OF_RANGE_END_INDEX, 0, 0, 0, 0}, +#endif + + { 1, TA_MOM_TEST, 0, 251, 14, TA_SUCCESS, 0, -0.50, 14, 252-14 }, /* First Value */ + { 0, TA_MOM_TEST, 0, 251, 14, TA_SUCCESS, 1, -2.00, 14, 252-14 }, + { 0, TA_MOM_TEST, 0, 251, 14, TA_SUCCESS, 2, -5.22, 14, 252-14 }, + { 0, TA_MOM_TEST, 0, 251, 14, TA_SUCCESS, 252-15, -1.13, 14, 252-14 }, /* Last Value */ + + /* No output value. */ + { 0, TA_MOM_TEST, 1, 1, 14, TA_SUCCESS, 0, 0, 0, 0}, + + /* One value tests. */ + { 0, TA_MOM_TEST, 14, 14, 14, TA_SUCCESS, 0, -0.50, 14, 1}, + + /* Index too low test. */ + { 0, TA_MOM_TEST, 0, 15, 14, TA_SUCCESS, 0, -0.50, 14, 2}, + { 0, TA_MOM_TEST, 1, 15, 14, TA_SUCCESS, 0, -0.50, 14, 2}, + { 0, TA_MOM_TEST, 2, 16, 14, TA_SUCCESS, 0, -0.50, 14, 3}, + { 0, TA_MOM_TEST, 2, 16, 14, TA_SUCCESS, 1, -2.00, 14, 3}, + { 0, TA_MOM_TEST, 2, 16, 14, TA_SUCCESS, 2, -5.22, 14, 3}, + { 0, TA_MOM_TEST, 0, 14, 14, TA_SUCCESS, 0, -0.50, 14, 1}, + { 0, TA_MOM_TEST, 0, 13, 14, TA_SUCCESS, 0, -0.50, 14, 0}, + + /* Middle of data test. */ + { 0, TA_MOM_TEST, 20, 21, 14, TA_SUCCESS, 0, -4.15, 20, 2 }, + { 0, TA_MOM_TEST, 20, 21, 14, TA_SUCCESS, 1, -5.12, 20, 2 }, + + /**********************/ + /* ROC TEST */ + /**********************/ + { 1, TA_ROC_TEST, 0, 251, 14, TA_SUCCESS, 0, -0.546, 14, 252-14 }, /* First Value */ + { 0, TA_ROC_TEST, 0, 251, 14, TA_SUCCESS, 1, -2.109, 14, 252-14 }, + { 0, TA_ROC_TEST, 0, 251, 14, TA_SUCCESS, 2, -5.53, 14, 252-14 }, + { 0, TA_ROC_TEST, 0, 251, 14, TA_SUCCESS, 252-15, -1.0367, 14, 252-14 }, /* Last Value */ + + /* No output value. */ + { 0, TA_ROC_TEST, 1, 1, 14, TA_SUCCESS, 0, 0, 0, 0}, + + /* One value tests. */ + { 0, TA_ROC_TEST, 14, 14, 14, TA_SUCCESS, 0, -0.546, 14, 1}, + + /* Index too low test. */ + { 0, TA_ROC_TEST, 0, 15, 14, TA_SUCCESS, 0, -0.546, 14, 2}, + { 0, TA_ROC_TEST, 1, 15, 14, TA_SUCCESS, 0, -0.546, 14, 2}, + { 0, TA_ROC_TEST, 2, 16, 14, TA_SUCCESS, 0, -0.546, 14, 3}, + { 0, TA_ROC_TEST, 2, 16, 14, TA_SUCCESS, 1, -2.109, 14, 3}, + { 0, TA_ROC_TEST, 2, 16, 14, TA_SUCCESS, 2, -5.53, 14, 3}, + { 0, TA_ROC_TEST, 0, 14, 14, TA_SUCCESS, 0, -0.546, 14, 1}, + { 0, TA_ROC_TEST, 0, 13, 14, TA_SUCCESS, 0, -0.546, 14, 0}, + + /* Middle of data test. */ + { 0, TA_ROC_TEST, 20, 21, 14, TA_SUCCESS, 0, -4.49, 20, 2 }, + { 0, TA_ROC_TEST, 20, 21, 14, TA_SUCCESS, 1, -5.5256, 20, 2 }, + + + /**********************/ + /* ROCR TEST */ + /**********************/ + { 1, TA_ROCR_TEST, 0, 251, 14, TA_SUCCESS, 0, 0.994536, 14, 252-14 }, /* First Value */ + { 0, TA_ROCR_TEST, 0, 251, 14, TA_SUCCESS, 1, 0.978906, 14, 252-14 }, + { 0, TA_ROCR_TEST, 0, 251, 14, TA_SUCCESS, 2, 0.944689, 14, 252-14 }, + { 0, TA_ROCR_TEST, 0, 251, 14, TA_SUCCESS, 252-15, 0.989633, 14, 252-14 }, /* Last Value */ + + /* No output value. */ + { 0, TA_ROCR_TEST, 1, 1, 14, TA_SUCCESS, 0, 0, 0, 0}, + + /* One value tests. */ + { 0, TA_ROCR_TEST, 14, 14, 14, TA_SUCCESS, 0, 0.994536, 14, 1}, + + /* Index too low test. */ + { 0, TA_ROCR_TEST, 0, 15, 14, TA_SUCCESS, 0, 0.994536, 14, 2}, + { 0, TA_ROCR_TEST, 1, 15, 14, TA_SUCCESS, 0, 0.994536, 14, 2}, + { 0, TA_ROCR_TEST, 2, 16, 14, TA_SUCCESS, 0, 0.994536, 14, 3}, + { 0, TA_ROCR_TEST, 2, 16, 14, TA_SUCCESS, 1, 0.978906, 14, 3}, + { 0, TA_ROCR_TEST, 2, 16, 14, TA_SUCCESS, 2, 0.944689, 14, 3}, + { 0, TA_ROCR_TEST, 0, 14, 14, TA_SUCCESS, 0, 0.994536, 14, 1}, + { 0, TA_ROCR_TEST, 0, 13, 14, TA_SUCCESS, 0, 0.994536, 14, 0}, + + /* Middle of data test. */ + { 0, TA_ROCR_TEST, 20, 21, 14, TA_SUCCESS, 0, 0.955096, 20, 2 }, + { 0, TA_ROCR_TEST, 20, 21, 14, TA_SUCCESS, 1, 0.944744, 20, 2 }, + + /**********************/ + /* ROCR100 TEST */ + /**********************/ + { 1, TA_ROCR100_TEST, 0, 251, 14, TA_SUCCESS, 0, 99.4536, 14, 252-14 }, /* First Value */ + { 0, TA_ROCR100_TEST, 0, 251, 14, TA_SUCCESS, 1, 97.8906, 14, 252-14 }, + { 0, TA_ROCR100_TEST, 0, 251, 14, TA_SUCCESS, 2, 94.4689, 14, 252-14 }, + { 0, TA_ROCR100_TEST, 0, 251, 14, TA_SUCCESS, 252-15, 98.9633, 14, 252-14 }, /* Last Value */ + + /* No output value. */ + { 0, TA_ROCR100_TEST, 1, 1, 14, TA_SUCCESS, 0, 0, 0, 0}, + + /* One value tests. */ + { 0, TA_ROCR100_TEST, 14, 14, 14, TA_SUCCESS, 0, 99.4536, 14, 1}, + + /* Index too low test. */ + { 0, TA_ROCR100_TEST, 0, 15, 14, TA_SUCCESS, 0, 99.4536, 14, 2}, + { 0, TA_ROCR100_TEST, 1, 15, 14, TA_SUCCESS, 0, 99.4536, 14, 2}, + { 0, TA_ROCR100_TEST, 2, 16, 14, TA_SUCCESS, 0, 99.4536, 14, 3}, + { 0, TA_ROCR100_TEST, 2, 16, 14, TA_SUCCESS, 1, 97.8906, 14, 3}, + { 0, TA_ROCR100_TEST, 2, 16, 14, TA_SUCCESS, 2, 94.4689, 14, 3}, + { 0, TA_ROCR100_TEST, 0, 14, 14, TA_SUCCESS, 0, 99.4536, 14, 1}, + { 0, TA_ROCR100_TEST, 0, 13, 14, TA_SUCCESS, 0, 99.4536, 14, 0}, + + /* Middle of data test. */ + { 0, TA_ROCR100_TEST, 20, 21, 14, TA_SUCCESS, 0, 95.5096, 20, 2 }, + { 0, TA_ROCR100_TEST, 20, 21, 14, TA_SUCCESS, 1, 94.4744, 20, 2 } + +}; + +#define NB_TEST (sizeof(tableTest)/sizeof(TA_Test)) + +/**** Global functions definitions. ****/ +ErrorNumber test_func_mom_roc( TA_History *history ) +{ + unsigned int i; + ErrorNumber retValue; + + for( i=0; i < NB_TEST; i++ ) + { + if( (int)tableTest[i].expectedNbElement > (int)history->nbBars ) + { + printf( "%s Failed Bad Parameter for Test #%d (%d,%d)\n", __FILE__, + i, tableTest[i].expectedNbElement, history->nbBars ); + return TA_TESTUTIL_TFRR_BAD_PARAM; + } + + retValue = do_test( history, &tableTest[i] ); + if( retValue != 0 ) + { + printf( "%s Failed Test #%d (Code=%d)\n", __FILE__, + i, retValue ); + return retValue; + } + } + + /* All test succeed. */ + return TA_TEST_PASS; +} + +/**** Local functions definitions. ****/ +static TA_RetCode rangeTestFunction( TA_Integer startIdx, + TA_Integer endIdx, + TA_Real *outputBuffer, + TA_Integer *outputBufferInt, + TA_Integer *outBegIdx, + TA_Integer *outNbElement, + TA_Integer *lookback, + void *opaqueData, + unsigned int outputNb, + unsigned int *isOutputInteger ) +{ + TA_RetCode retCode; + TA_RangeTestParam *testParam; + + (void)outputNb; + (void)outputBufferInt; + + *isOutputInteger = 0; + + testParam = (TA_RangeTestParam *)opaqueData; + switch( testParam->test->theFunction ) + { + case TA_MOM_TEST: + retCode = TA_MOM( + startIdx, + endIdx, + testParam->close, + testParam->test->optInTimePeriod, + outBegIdx, + outNbElement, + outputBuffer ); + + *lookback = TA_MOM_Lookback(testParam->test->optInTimePeriod ); + break; + case TA_ROC_TEST: + retCode = TA_ROC( + startIdx, + endIdx, + testParam->close, + testParam->test->optInTimePeriod, + outBegIdx, + outNbElement, + outputBuffer ); + *lookback = TA_ROC_Lookback(testParam->test->optInTimePeriod ); + break; + case TA_ROCR_TEST: + retCode = TA_ROCR( + startIdx, + endIdx, + testParam->close, + testParam->test->optInTimePeriod, + outBegIdx, + outNbElement, + outputBuffer ); + *lookback = TA_ROCR_Lookback(testParam->test->optInTimePeriod ); + break; + case TA_ROCR100_TEST: + retCode = TA_ROCR100( + startIdx, + endIdx, + testParam->close, + testParam->test->optInTimePeriod, + outBegIdx, + outNbElement, + outputBuffer ); + *lookback = TA_ROCR100_Lookback(testParam->test->optInTimePeriod ); + break; + case TA_ROCP_TEST: + retCode = TA_ROCP( + startIdx, + endIdx, + testParam->close, + testParam->test->optInTimePeriod, + outBegIdx, + outNbElement, + outputBuffer ); + *lookback = TA_ROCP_Lookback(testParam->test->optInTimePeriod ); + break; + default: + retCode = TA_INTERNAL_ERROR(130); + } + + return retCode; +} + +static ErrorNumber do_test( const TA_History *history, + const TA_Test *test ) +{ + TA_RetCode retCode; + ErrorNumber errNb; + TA_Integer outBegIdx; + TA_Integer outNbElement; + TA_RangeTestParam testParam; + + /* Set to NAN all the elements of the gBuffers. */ + clearAllBuffers(); + + /* Build the input. */ + setInputBuffer( 0, history->close, history->nbBars ); + setInputBuffer( 1, history->close, history->nbBars ); + + CLEAR_EXPECTED_VALUE(0); + + /* Make a simple first call. */ + switch( test->theFunction ) + { + case TA_MOM_TEST: + retCode = TA_MOM( + test->startIdx, + test->endIdx, + gBuffer[0].in, + test->optInTimePeriod, + &outBegIdx, + &outNbElement, + gBuffer[0].out0 ); + break; + + case TA_ROC_TEST: + retCode = TA_ROC( + test->startIdx, + test->endIdx, + gBuffer[0].in, + test->optInTimePeriod, + &outBegIdx, + &outNbElement, + gBuffer[0].out0 ); + break; + case TA_ROCR_TEST: + retCode = TA_ROCR( + test->startIdx, + test->endIdx, + gBuffer[0].in, + test->optInTimePeriod, + &outBegIdx, + &outNbElement, + gBuffer[0].out0 ); + break; + case TA_ROCR100_TEST: + retCode = TA_ROCR100( + test->startIdx, + test->endIdx, + gBuffer[0].in, + test->optInTimePeriod, + &outBegIdx, + &outNbElement, + gBuffer[0].out0 ); + break; + + case TA_ROCP_TEST: + retCode = TA_ROCP( + test->startIdx, + test->endIdx, + gBuffer[0].in, + test->optInTimePeriod, + &outBegIdx, + &outNbElement, + gBuffer[0].out0 ); + break; + + default: + retCode = TA_BAD_PARAM; + } + + errNb = checkDataSame( gBuffer[0].in, history->close,history->nbBars ); + if( errNb != TA_TEST_PASS ) + return errNb; + + CHECK_EXPECTED_VALUE( gBuffer[0].out0, 0 ); + + outBegIdx = outNbElement = 0; + + /* Make another call where the input and the output are the + * same buffer. + */ + CLEAR_EXPECTED_VALUE(0); + switch( test->theFunction ) + { + case TA_MOM_TEST: + retCode = TA_MOM( + test->startIdx, + test->endIdx, + gBuffer[1].in, + test->optInTimePeriod, + &outBegIdx, + &outNbElement, + gBuffer[1].in ); + break; + case TA_ROC_TEST: + retCode = TA_ROC( + test->startIdx, + test->endIdx, + gBuffer[1].in, + test->optInTimePeriod, + &outBegIdx, + &outNbElement, + gBuffer[1].in ); + break; + case TA_ROCR_TEST: + retCode = TA_ROCR( + test->startIdx, + test->endIdx, + gBuffer[1].in, + test->optInTimePeriod, + &outBegIdx, + &outNbElement, + gBuffer[1].in ); + break; + case TA_ROCR100_TEST: + retCode = TA_ROCR100( + test->startIdx, + test->endIdx, + gBuffer[1].in, + test->optInTimePeriod, + &outBegIdx, + &outNbElement, + gBuffer[1].in ); + break; + case TA_ROCP_TEST: + retCode = TA_ROCP( + test->startIdx, + test->endIdx, + gBuffer[1].in, + test->optInTimePeriod, + &outBegIdx, + &outNbElement, + gBuffer[1].in ); + break; + } + + /* The previous call should have the same output as this call. + * + * checkSameContent verify that all value different than NAN in + * the first parameter is identical in the second parameter. + */ + errNb = checkSameContent( gBuffer[0].out0, gBuffer[1].in ); + if( errNb != TA_TEST_PASS ) + return errNb; + + CHECK_EXPECTED_VALUE( gBuffer[1].in, 0 ); + + if( errNb != TA_TEST_PASS ) + return errNb; + + /* Do a systematic test of most of the + * possible startIdx/endIdx range. + */ + testParam.test = test; + testParam.close = history->close; + + if( test->doRangeTestFlag ) + { + errNb = doRangeTest( + rangeTestFunction, + TA_FUNC_UNST_NONE, + (void *)&testParam, 1, 0 ); + if( errNb != TA_TEST_PASS ) + return errNb; + } + + return TA_TEST_PASS; +} + diff --git a/src/tools/ta_regtest/ta_test_func/test_per_ema.c b/src/tools/ta_regtest/ta_test_func/test_per_ema.c new file mode 100644 index 000000000..b3399e506 --- /dev/null +++ b/src/tools/ta_regtest/ta_test_func/test_per_ema.c @@ -0,0 +1,306 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * MF Mario Fortier + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 112400 MF First version. + * + */ + +/* Description: + * Test functions that have one output and takes a period and + * basically use only an EMA in its algorithm. + */ + +/**** Headers ****/ +#include +#include + +#include "ta_test_priv.h" +#include "ta_test_func.h" +#include "ta_utility.h" + +/**** External functions declarations. ****/ +/* None */ + +/**** External variables declarations. ****/ +/* None */ + +/**** Global variables definitions. ****/ +/* None */ + +/**** Local declarations. ****/ +typedef enum { +TA_TRIX_TEST +} TA_TestId; + +typedef struct +{ + TA_Integer doRangeTestFlag; + + TA_TestId theFunction; + + TA_Integer unstablePeriod; + + TA_Integer startIdx; + TA_Integer endIdx; + TA_Integer optInTimePeriod; + + TA_RetCode expectedRetCode; + + TA_Integer oneOfTheExpectedOutRealIndex; + TA_Real oneOfTheExpectedOutReal; + + TA_Integer expectedBegIdx; + TA_Integer expectedNbElement; +} TA_Test; + +typedef struct +{ + const TA_Test *test; + const TA_Real *close; +} TA_RangeTestParam; + +/**** Local functions declarations. ****/ +static ErrorNumber do_test_per_ema( const TA_History *history, + const TA_Test *test ); + +/**** Local variables definitions. ****/ + +static TA_Test tableTest[] = +{ + /****************/ + /* TRIX TEST */ + /****************/ + { 0, TA_TRIX_TEST, 0, 0, 251, 5, TA_SUCCESS, 0, 0.2589, 13, 252-13 }, /* First Value */ + { 0, TA_TRIX_TEST, 0, 0, 251, 5, TA_SUCCESS, 1, 0.010495, 13, 252-13 }, + { 0, TA_TRIX_TEST, 0, 0, 251, 5, TA_SUCCESS, 252-15, -0.058, 13, 252-13 }, + { 0, TA_TRIX_TEST, 0, 0, 251, 5, TA_SUCCESS, 252-14, -0.095, 13, 252-13 }, /* Last Value */ + +#if 0 + /* Metastock values. */ + { 0, TA_TRIX_TEST, 0, 0, 251, 5, TA_SUCCESS, 0, 0.221, 13, 252-13 }, /* First Value */ + { 0, TA_TRIX_TEST, 0, 0, 251, 5, TA_SUCCESS, 1, -0.009, 13, 252-13 }, + { 0, TA_TRIX_TEST, 0, 0, 251, 5, TA_SUCCESS, 252-15, -0.058, 13, 252-13 }, + { 0, TA_TRIX_TEST, 0, 0, 251, 5, TA_SUCCESS, 252-14, -0.095, 13, 252-13 }, /* Last Value */ +#endif + +}; + +#define NB_TEST (sizeof(tableTest)/sizeof(TA_Test)) + +/**** Global functions definitions. ****/ +ErrorNumber test_func_per_ema( TA_History *history ) +{ + unsigned int i; + ErrorNumber retValue; + + /* Re-initialize all the unstable period to zero. */ + TA_SetUnstablePeriod( TA_FUNC_UNST_ALL, 0 ); + + for( i=0; i < NB_TEST; i++ ) + { + if( (int)tableTest[i].expectedNbElement > (int)history->nbBars ) + { + printf( "TA_MA Failed Bad Parameter for Test #%d (%d,%d)\n", + i, tableTest[i].expectedNbElement, history->nbBars ); + return TA_TESTUTIL_TFRR_BAD_PARAM; + } + + retValue = do_test_per_ema( history, &tableTest[i] ); + if( retValue != 0 ) + { + printf( "TA_MA Failed Test #%d (Code=%d)\n", i, retValue ); + return retValue; + } + } + + /* Re-initialize all the unstable period to zero. */ + TA_SetUnstablePeriod( TA_FUNC_UNST_ALL, 0 ); + + /* All test succeed. */ + return TA_TEST_PASS; +} + +/**** Local functions definitions. ****/ +static TA_RetCode rangeTestFunction( TA_Integer startIdx, + TA_Integer endIdx, + TA_Real *outputBuffer, + TA_Integer *outputBufferInt, + TA_Integer *outBegIdx, + TA_Integer *outNbElement, + TA_Integer *lookback, + void *opaqueData, + unsigned int outputNb, + unsigned int *isOutputInteger ) +{ + TA_RetCode retCode; + TA_RangeTestParam *testParam; + + (void)outputNb; + (void)outputBufferInt; + + *isOutputInteger = 0; + + testParam = (TA_RangeTestParam *)opaqueData; + + switch( testParam->test->theFunction ) + { + case TA_TRIX_TEST: + retCode = TA_TRIX( startIdx, + endIdx, + testParam->close, + testParam->test->optInTimePeriod, + outBegIdx, + outNbElement, + outputBuffer ); + *lookback = TA_TRIX_Lookback( testParam->test->optInTimePeriod ); + default: + retCode = TA_INTERNAL_ERROR(131); + } + + return retCode; +} + +static ErrorNumber do_test_per_ema( const TA_History *history, + const TA_Test *test ) +{ + TA_RetCode retCode; + ErrorNumber errNb; + TA_Integer outBegIdx; + TA_Integer outNbElement; + TA_RangeTestParam testParam; + + /* Set to NAN all the elements of the gBuffers. */ + clearAllBuffers(); + + /* Build the input. */ + setInputBuffer( 0, history->close, history->nbBars ); + setInputBuffer( 1, history->close, history->nbBars ); + + /* Set the unstable period requested for that test. */ + retCode = TA_SetUnstablePeriod( TA_FUNC_UNST_EMA, test->unstablePeriod ); + if( retCode != TA_SUCCESS ) + return TA_TEST_TFRR_SETUNSTABLE_PERIOD_FAIL; + + /* Make a simple first call. */ + switch( test->theFunction ) + { + case TA_TRIX_TEST: + retCode = TA_TRIX( test->startIdx, + test->endIdx, + gBuffer[0].in, + test->optInTimePeriod, + &outBegIdx, + &outNbElement, + gBuffer[0].out0 ); + + } + + errNb = checkDataSame( gBuffer[0].in, history->close,history->nbBars ); + + if( errNb != TA_TEST_PASS ) + return errNb; + + errNb = checkExpectedValue( gBuffer[0].out0, + retCode, test->expectedRetCode, + outBegIdx, test->expectedBegIdx, + outNbElement, test->expectedNbElement, + test->oneOfTheExpectedOutReal, + test->oneOfTheExpectedOutRealIndex ); + if( errNb != TA_TEST_PASS ) + return errNb; + + outBegIdx = outNbElement = 0; + + /* Make another call where the input and the output are the + * same buffer. + */ + switch( test->theFunction ) + { + case TA_TRIX_TEST: + retCode = TA_TRIX( test->startIdx, + test->endIdx, + gBuffer[1].in, + test->optInTimePeriod, + &outBegIdx, + &outNbElement, + gBuffer[1].in ); + } + + /* The previous call to TA_MA should have the same output + * as this call. + * + * checkSameContent verify that all value different than NAN in + * the first parameter is identical in the second parameter. + */ + errNb = checkSameContent( gBuffer[0].out0, gBuffer[1].in ); + if( errNb != TA_TEST_PASS ) + return errNb; + + errNb = checkExpectedValue( gBuffer[1].in, + retCode, test->expectedRetCode, + outBegIdx, test->expectedBegIdx, + outNbElement, test->expectedNbElement, + test->oneOfTheExpectedOutReal, + test->oneOfTheExpectedOutRealIndex ); + if( errNb != TA_TEST_PASS ) + return errNb; + + /* Do a systematic test of most of the + * possible startIdx/endIdx range. + */ + testParam.test = test; + testParam.close = history->close; + + if( test->doRangeTestFlag ) + { + errNb = doRangeTest( rangeTestFunction, + TA_FUNC_UNST_EMA, + (void *)&testParam, 1, 0 ); + if( errNb != TA_TEST_PASS ) + return errNb; + } + + return TA_TEST_PASS; +} + diff --git a/src/tools/ta_regtest/ta_test_func/test_per_hl.c b/src/tools/ta_regtest/ta_test_func/test_per_hl.c new file mode 100644 index 000000000..ce3adf0aa --- /dev/null +++ b/src/tools/ta_regtest/ta_test_func/test_per_hl.c @@ -0,0 +1,640 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * MF Mario Fortier + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 020203 MF First version. + * 122506 MF Add TA_BETA tests. + */ + +/* Description: + * + * Test functions which have the following characterisic: + * - two inputs are needed (high and low are used here). + * - has zero or one parameter being a period. + */ + +/**** Headers ****/ +#include +#include + +#include "ta_test_priv.h" +#include "ta_test_func.h" +#include "ta_utility.h" +#include "ta_memory.h" + +/**** External functions declarations. ****/ +/* None */ + +/**** External variables declarations. ****/ +/* None */ + +/**** Global variables definitions. ****/ +/* None */ + +/**** Local declarations. ****/ +typedef enum { +TA_AROON_UP_TEST, +TA_AROON_DOWN_TEST, +TA_AROONOSC_TEST, +TA_CORREL_TEST, +TA_BETA_TEST +} TA_TestId; + +typedef struct +{ + TA_Integer doRangeTestFlag; + + TA_TestId theFunction; + + TA_Integer startIdx; + TA_Integer endIdx; + TA_Integer optInTimePeriod; + + TA_RetCode expectedRetCode; + + TA_Integer oneOfTheExpectedOutRealIndex0; + TA_Real oneOfTheExpectedOutReal0; + + TA_Integer expectedBegIdx; + TA_Integer expectedNbElement; +} TA_Test; + +typedef struct +{ + const TA_Test *test; + const TA_Real *high; + const TA_Real *low; +} TA_RangeTestParam; + +/**** Local functions declarations. ****/ +static ErrorNumber do_test( const TA_History *history, + const TA_Test *test ); + +/**** Local variables definitions. ****/ + +static TA_Test tableTest[] = +{ + /*****************/ + /* BETA TEST */ + /*****************/ + + /* Uncomment following to enable tons of tests. Replace 999.99 with the first + * value you are expecting. + */ + + { 1, TA_BETA_TEST, 0, 251, 5, TA_SUCCESS, 0, 0.62907, 5, 252-5 }, + { 0, TA_BETA_TEST, 0, 251, 5, TA_SUCCESS, 1, 0.83604, 5, 252-5 }, + + /*****************/ + /* CORREL TEST */ + /*****************/ + { 1, TA_CORREL_TEST, 0, 251, 20, TA_SUCCESS, 0, 0.9401569, 19, 252-19 }, /* First Value */ + { 0, TA_CORREL_TEST, 0, 251, 20, TA_SUCCESS, 1, 0.9471812, 19, 252-19 }, + { 0, TA_CORREL_TEST, 0, 251, 20, TA_SUCCESS, 252-20, 0.8866901, 19, 252-19 }, /* Last Value */ + + + /*******************/ + /* AROON UP TEST */ + /*******************/ + { 1, TA_AROON_UP_TEST, 13, 251, 14, TA_SUCCESS, 0, 78.571, 14, 252-14 }, /* First Value */ + { 0, TA_AROON_UP_TEST, 0, 251, 14, TA_SUCCESS, 1, 71.429, 14, 252-14 }, + { 0, TA_AROON_UP_TEST, 13, 251, 14, TA_SUCCESS, 2, 64.2857, 14, 252-14 }, + { 0, TA_AROON_UP_TEST, 13, 251, 14, TA_SUCCESS, 3, 57.143, 14, 252-14 }, + { 0, TA_AROON_UP_TEST, 0, 251, 14, TA_SUCCESS, 4, 50.000, 14, 252-14 }, + { 0, TA_AROON_UP_TEST, 13, 251, 14, TA_SUCCESS, 5, 42.857, 14, 252-14 }, + { 0, TA_AROON_UP_TEST, 13, 251, 14, TA_SUCCESS, 6, 35.714, 14, 252-14 }, + { 0, TA_AROON_UP_TEST, 13, 251, 14, TA_SUCCESS, 7, 28.571, 14, 252-14 }, + { 0, TA_AROON_UP_TEST, 13, 251, 14, TA_SUCCESS, 8, 21.429, 14, 252-14 }, + { 0, TA_AROON_UP_TEST, 0, 251, 14, TA_SUCCESS, 9, 14.286, 14, 252-14 }, + { 0, TA_AROON_UP_TEST, 13, 251, 14, TA_SUCCESS, 10, 7.1429, 14, 252-14 }, + { 0, TA_AROON_UP_TEST, 13, 251, 14, TA_SUCCESS, 11, 0.0000, 14, 252-14 }, + { 0, TA_AROON_UP_TEST, 13, 251, 14, TA_SUCCESS, 12, 0.0000, 14, 252-14 }, + { 0, TA_AROON_UP_TEST, 13, 251, 14, TA_SUCCESS, 13, 21.429, 14, 252-14 }, + { 0, TA_AROON_UP_TEST, 13, 251, 14, TA_SUCCESS, 14, 14.286, 14, 252-14 }, + { 0, TA_AROON_UP_TEST, 13, 251, 14, TA_SUCCESS, 15, 7.1429, 14, 252-14 }, + { 0, TA_AROON_UP_TEST, 13, 251, 14, TA_SUCCESS, 16, 0.0000, 14, 252-14 }, + { 0, TA_AROON_UP_TEST, 13, 251, 14, TA_SUCCESS, 17, 14.286, 14, 252-14 }, + { 0, TA_AROON_UP_TEST, 13, 251, 14, TA_SUCCESS, 20, 0.00, 14, 252-14 }, + { 0, TA_AROON_UP_TEST, 13, 251, 14, TA_SUCCESS, 21, 92.857, 14, 252-14 }, + { 0, TA_AROON_UP_TEST, 13, 251, 14, TA_SUCCESS, 27, 50.000, 14, 252-14 }, + { 0, TA_AROON_UP_TEST, 13, 251, 14, TA_SUCCESS, 28, 42.857, 14, 252-14 }, + { 0, TA_AROON_UP_TEST, 13, 251, 14, TA_SUCCESS, 29,100.000, 14, 252-14 }, + { 0, TA_AROON_UP_TEST, 1, 251, 14, TA_SUCCESS, 252-16, 0.0, 14, 252-14 }, + { 0, TA_AROON_UP_TEST, 0, 251, 14, TA_SUCCESS, 252-15, 7.1429, 14, 252-14 }, /* Last Value */ + + /*******************/ + /* AROON DOWN TEST */ + /*******************/ + { 1, TA_AROON_DOWN_TEST, 13, 251, 14, TA_SUCCESS, 0, 100.0, 14, 252-14 }, /* First Value */ + { 0, TA_AROON_DOWN_TEST, 0, 251, 14, TA_SUCCESS, 1, 92.857, 14, 252-14 }, + { 0, TA_AROON_DOWN_TEST, 13, 251, 14, TA_SUCCESS, 2, 85.714, 14, 252-14 }, + { 0, TA_AROON_DOWN_TEST, 13, 251, 14, TA_SUCCESS, 3, 78.571, 14, 252-14 }, + { 0, TA_AROON_DOWN_TEST, 0, 251, 14, TA_SUCCESS, 4, 71.429, 14, 252-14 }, + { 0, TA_AROON_DOWN_TEST, 13, 251, 14, TA_SUCCESS, 5, 64.286, 14, 252-14 }, + { 0, TA_AROON_DOWN_TEST, 13, 251, 14, TA_SUCCESS, 6, 57.143, 14, 252-14 }, + { 0, TA_AROON_DOWN_TEST, 13, 251, 14, TA_SUCCESS, 7,100.000, 14, 252-14 }, + { 0, TA_AROON_DOWN_TEST, 13, 251, 14, TA_SUCCESS, 8,100.000, 14, 252-14 }, + { 0, TA_AROON_DOWN_TEST, 0, 251, 14, TA_SUCCESS, 9,100.000, 14, 252-14 }, + { 0, TA_AROON_DOWN_TEST, 13, 251, 14, TA_SUCCESS, 10,100.000, 14, 252-14 }, + { 0, TA_AROON_DOWN_TEST, 13, 251, 14, TA_SUCCESS, 11,100.000, 14, 252-14 }, + { 0, TA_AROON_DOWN_TEST, 13, 251, 14, TA_SUCCESS, 12, 92.857, 14, 252-14 }, + { 0, TA_AROON_DOWN_TEST, 13, 251, 14, TA_SUCCESS, 13, 85.714, 14, 252-14 }, + { 0, TA_AROON_DOWN_TEST, 13, 251, 14, TA_SUCCESS, 14, 78.571, 14, 252-14 }, + { 0, TA_AROON_DOWN_TEST, 13, 251, 14, TA_SUCCESS, 15, 71.429, 14, 252-14 }, + { 0, TA_AROON_DOWN_TEST, 13, 251, 14, TA_SUCCESS, 16, 64.286, 14, 252-14 }, + { 0, TA_AROON_DOWN_TEST, 13, 251, 14, TA_SUCCESS, 17, 57.143, 14, 252-14 }, + { 0, TA_AROON_DOWN_TEST, 13, 251, 14, TA_SUCCESS, 18, 50.000, 14, 252-14 }, + { 0, TA_AROON_DOWN_TEST, 13, 251, 14, TA_SUCCESS, 19, 42.857, 14, 252-14 }, + { 0, TA_AROON_DOWN_TEST, 13, 251, 14, TA_SUCCESS, 20, 35.714, 14, 252-14 }, + { 0, TA_AROON_DOWN_TEST, 0, 251, 14, TA_SUCCESS, 21, 28.571, 14, 252-14 }, + { 0, TA_AROON_DOWN_TEST, 0, 251, 14, TA_SUCCESS, 22, 21.429, 14, 252-14 }, + { 0, TA_AROON_DOWN_TEST, 0, 251, 14, TA_SUCCESS, 23, 14.286, 14, 252-14 }, + { 0, TA_AROON_DOWN_TEST, 13, 251, 14, TA_SUCCESS, 24, 7.1429, 14, 252-14 }, + { 0, TA_AROON_DOWN_TEST, 13, 251, 14, TA_SUCCESS, 25, 0.0, 14, 252-14 }, + { 0, TA_AROON_DOWN_TEST, 13, 251, 14, TA_SUCCESS, 26, 0.0, 14, 252-14 }, + { 0, TA_AROON_DOWN_TEST, 13, 251, 14, TA_SUCCESS, 27, 92.857, 14, 252-14 }, + { 0, TA_AROON_DOWN_TEST, 13, 251, 14, TA_SUCCESS, 28, 85.714, 14, 252-14 }, + + { 0, TA_AROON_DOWN_TEST, 4, 251, 14, TA_SUCCESS, 252-16, 28.571, 14, 252-14 }, + { 0, TA_AROON_DOWN_TEST, 0, 251, 14, TA_SUCCESS, 252-15, 21.429, 14, 252-14 }, /* Last Value */ + + /******************/ + /* AROON OSC TEST */ + /******************/ + { 0, TA_AROONOSC_TEST, 13, 251, 14, TA_SUCCESS, 0, -21.4285, 14, 252-14 }, /* First Value */ + { 0, TA_AROONOSC_TEST, 13, 251, 14, TA_SUCCESS, 6, -21.4285, 14, 252-14 }, + { 0, TA_AROONOSC_TEST, 13, 251, 14, TA_SUCCESS, 7, -71.4285, 14, 252-14 }, + { 0, TA_AROONOSC_TEST, 0, 251, 14, TA_SUCCESS, 252-16, -28.5714, 14, 252-14 }, + { 0, TA_AROONOSC_TEST, 0, 251, 14, TA_SUCCESS, 252-15, -14.28571, 14, 252-14 }, /* Last Value */ + +}; + +#define NB_TEST (sizeof(tableTest)/sizeof(TA_Test)) + +/**** Global functions definitions. ****/ +ErrorNumber test_func_per_hl( TA_History *history ) +{ + unsigned int i; + ErrorNumber retValue; + + /* Re-initialize all the unstable period to zero. */ + TA_SetUnstablePeriod( TA_FUNC_UNST_ALL, 0 ); + + for( i=0; i < NB_TEST; i++ ) + { + if( (int)tableTest[i].expectedNbElement > (int)history->nbBars ) + { + printf( "Failed Bad Parameter for Test #%d (%d,%d)\n", + i, tableTest[i].expectedNbElement, history->nbBars ); + return TA_TESTUTIL_TFRR_BAD_PARAM; + } + + retValue = do_test( history, &tableTest[i] ); + if( retValue != 0 ) + { + printf( "Failed Test #%d (Code=%d)\n", i, retValue ); + return retValue; + } + } + + /* Re-initialize all the unstable period to zero. */ + TA_SetUnstablePeriod( TA_FUNC_UNST_ALL, 0 ); + + /* All test succeed. */ + return TA_TEST_PASS; +} + +/**** Local functions definitions. ****/ +static TA_RetCode rangeTestFunction( TA_Integer startIdx, + TA_Integer endIdx, + TA_Real *outputBuffer, + TA_Integer *outputBufferInt, + TA_Integer *outBegIdx, + TA_Integer *outNbElement, + TA_Integer *lookback, + void *opaqueData, + unsigned int outputNb, + unsigned int *isOutputInteger ) +{ + TA_RetCode retCode; + TA_RangeTestParam *testParam; + double *dummyBuffer; + + (void)outputNb; + (void)outputBufferInt; + + *isOutputInteger = 0; + + testParam = (TA_RangeTestParam *)opaqueData; + + /* Allocate a buffer for the output who is going + * to be ignored (make it slightly larger to play + * safe) + */ + dummyBuffer = TA_Malloc( sizeof(double) * (endIdx-startIdx+100) ); + switch( testParam->test->theFunction ) + { + case TA_AROON_UP_TEST: + retCode = TA_AROON( startIdx, + endIdx, + testParam->high, + testParam->low, + testParam->test->optInTimePeriod, + outBegIdx, + outNbElement, + &dummyBuffer[20], + outputBuffer ); + + *lookback = TA_AROON_Lookback( testParam->test->optInTimePeriod ); + break; + case TA_AROON_DOWN_TEST: + retCode = TA_AROON( startIdx, + endIdx, + testParam->high, + testParam->low, + testParam->test->optInTimePeriod, + outBegIdx, + outNbElement, + outputBuffer, + &dummyBuffer[20] + ); + *lookback = TA_AROON_Lookback( testParam->test->optInTimePeriod ); + break; + case TA_AROONOSC_TEST: + retCode = TA_AROONOSC( startIdx, + endIdx, + testParam->high, + testParam->low, + testParam->test->optInTimePeriod, + outBegIdx, + outNbElement, + outputBuffer ); + *lookback = TA_AROONOSC_Lookback( testParam->test->optInTimePeriod ); + break; + case TA_CORREL_TEST: + retCode = TA_CORREL( startIdx, + endIdx, + testParam->high, + testParam->low, + testParam->test->optInTimePeriod, + outBegIdx, + outNbElement, + outputBuffer ); + *lookback = TA_CORREL_Lookback( testParam->test->optInTimePeriod ); + break; + + case TA_BETA_TEST: + retCode = TA_BETA( startIdx, + endIdx, + testParam->high, + testParam->low, + testParam->test->optInTimePeriod, /* time period */ + outBegIdx, + outNbElement, + outputBuffer ); + *lookback = TA_BETA_Lookback(testParam->test->optInTimePeriod); + break; + + default: + retCode = TA_INTERNAL_ERROR(132); + } + + TA_Free( dummyBuffer ); + + return retCode; +} + +static ErrorNumber do_test( const TA_History *history, + const TA_Test *test ) +{ + TA_RetCode retCode; + ErrorNumber errNb; + TA_Integer outBegIdx; + TA_Integer outNbElement; + TA_RangeTestParam testParam; + + /* Set to NAN all the elements of the gBuffers. */ + clearAllBuffers(); + + /* Build the input. */ + setInputBuffer( 0, history->high, history->nbBars ); + setInputBuffer( 1, history->low, history->nbBars ); + + /* Make a simple first call. */ + switch( test->theFunction ) + { + case TA_AROON_UP_TEST: + retCode = TA_AROON( test->startIdx, + test->endIdx, + gBuffer[0].in, + gBuffer[1].in, + test->optInTimePeriod, + &outBegIdx, + &outNbElement, + gBuffer[1].out0, + gBuffer[0].out0 + ); + break; + + case TA_AROON_DOWN_TEST: + retCode = TA_AROON( test->startIdx, + test->endIdx, + gBuffer[0].in, + gBuffer[1].in, + test->optInTimePeriod, + &outBegIdx, + &outNbElement, + gBuffer[0].out0, + gBuffer[1].out0 + ); + break; + + case TA_AROONOSC_TEST: + retCode = TA_AROONOSC( test->startIdx, + test->endIdx, + gBuffer[0].in, + gBuffer[1].in, + test->optInTimePeriod, + &outBegIdx, + &outNbElement, + gBuffer[0].out0 + ); + break; + + case TA_CORREL_TEST: + retCode = TA_CORREL( test->startIdx, + test->endIdx, + gBuffer[0].in, + gBuffer[1].in, + test->optInTimePeriod, + &outBegIdx, + &outNbElement, + gBuffer[0].out0 + ); + break; + + case TA_BETA_TEST: + retCode = TA_BETA( test->startIdx, + test->endIdx, + gBuffer[0].in, + gBuffer[1].in, + test->optInTimePeriod, + &outBegIdx, + &outNbElement, + gBuffer[0].out0 + ); + break; + + default: + retCode = TA_INTERNAL_ERROR(133); + } + + /* Check that the input were preserved. */ + errNb = checkDataSame( gBuffer[0].in, history->high,history->nbBars ); + if( errNb != TA_TEST_PASS ) + return errNb; + errNb = checkDataSame( gBuffer[1].in, history->low, history->nbBars ); + if( errNb != TA_TEST_PASS ) + return errNb; + + CHECK_EXPECTED_VALUE( gBuffer[0].out0, 0 ); + + outBegIdx = outNbElement = 0; + + /* Make another call where one of the input and one of the output + * are the same buffer. + */ + switch( test->theFunction ) + { + case TA_AROON_UP_TEST: + retCode = TA_AROON( test->startIdx, + test->endIdx, + gBuffer[0].in, + gBuffer[1].in, + test->optInTimePeriod, + &outBegIdx, + &outNbElement, + gBuffer[1].out1, + gBuffer[0].in + ); + break; + + case TA_AROON_DOWN_TEST: + retCode = TA_AROON( test->startIdx, + test->endIdx, + gBuffer[0].in, + gBuffer[1].in, + test->optInTimePeriod, + &outBegIdx, + &outNbElement, + gBuffer[0].in, + gBuffer[1].out1 + ); + break; + + case TA_AROONOSC_TEST: + retCode = TA_AROONOSC( test->startIdx, + test->endIdx, + gBuffer[0].in, + gBuffer[1].in, + test->optInTimePeriod, + &outBegIdx, + &outNbElement, + gBuffer[0].in + ); + break; + + case TA_CORREL_TEST: + retCode = TA_CORREL( test->startIdx, + test->endIdx, + gBuffer[0].in, + gBuffer[1].in, + test->optInTimePeriod, + &outBegIdx, + &outNbElement, + gBuffer[0].in + ); + break; + + case TA_BETA_TEST: + retCode = TA_BETA( test->startIdx, + test->endIdx, + gBuffer[0].in, + gBuffer[1].in, + test->optInTimePeriod, + &outBegIdx, + &outNbElement, + gBuffer[0].in + ); + break; + + default: + retCode = TA_INTERNAL_ERROR(134); + } + + /* Check that the other input was preserved. */ + errNb = checkDataSame( gBuffer[1].in, history->low, history->nbBars ); + if( errNb != TA_TEST_PASS ) + return errNb; + + /* The previous call should have the same output + * as this call. + * + * checkSameContent verify that all value different than NAN in + * the first parameter is identical in the second parameter. + */ + errNb = checkSameContent( gBuffer[0].out0, gBuffer[0].in ); + if( errNb != TA_TEST_PASS ) + return errNb; + errNb = checkSameContent( gBuffer[1].out1, gBuffer[1].out0 ); + if( errNb != TA_TEST_PASS ) + return errNb; + + CHECK_EXPECTED_VALUE( gBuffer[0].in, 0 ); + setInputBuffer( 0, history->high, history->nbBars ); + setInputBuffer( 1, history->low, history->nbBars ); + + /* Make another call where the input and the output are the + * same buffer. + */ + switch( test->theFunction ) + { + case TA_AROON_UP_TEST: + retCode = TA_AROON( test->startIdx, + test->endIdx, + gBuffer[0].in, + gBuffer[1].in, + test->optInTimePeriod, + &outBegIdx, + &outNbElement, + gBuffer[1].out2, + gBuffer[1].in + ); + break; + + case TA_AROON_DOWN_TEST: + retCode = TA_AROON( test->startIdx, + test->endIdx, + gBuffer[0].in, + gBuffer[1].in, + test->optInTimePeriod, + &outBegIdx, + &outNbElement, + gBuffer[1].in, + gBuffer[1].out2 + ); + break; + + case TA_AROONOSC_TEST: + retCode = TA_AROONOSC( test->startIdx, + test->endIdx, + gBuffer[0].in, + gBuffer[1].in, + test->optInTimePeriod, + &outBegIdx, + &outNbElement, + gBuffer[1].in + ); + break; + + case TA_CORREL_TEST: + retCode = TA_CORREL( test->startIdx, + test->endIdx, + gBuffer[0].in, + gBuffer[1].in, + test->optInTimePeriod, + &outBegIdx, + &outNbElement, + gBuffer[1].in + ); + break; + + case TA_BETA_TEST: + retCode = TA_BETA( test->startIdx, + test->endIdx, + gBuffer[0].in, + gBuffer[1].in, + test->optInTimePeriod, + &outBegIdx, + &outNbElement, + gBuffer[1].in + ); + break; + + default: + retCode = TA_INTERNAL_ERROR(135); + } + + /* Check that the other input were preserved. */ + errNb = checkDataSame( gBuffer[0].in, history->high, history->nbBars ); + if( errNb != TA_TEST_PASS ) + return errNb; + + /* The previous call should have the same output as this call. + * + * checkSameContent verify that all value different than NAN in + * the first parameter is identical in the second parameter. + */ + errNb = checkSameContent( gBuffer[0].out0, gBuffer[1].in ); + if( errNb != TA_TEST_PASS ) + return errNb; + + /* Do a systematic test of most of the + * possible startIdx/endIdx range. + */ + testParam.test = test; + testParam.high = history->high; + testParam.low = history->low; + + if( test->doRangeTestFlag ) + { + errNb = doRangeTest( rangeTestFunction, + TA_FUNC_UNST_NONE, + (void *)&testParam, 1, 0 ); + if( errNb != TA_TEST_PASS ) + return errNb; + } + + return TA_TEST_PASS; +} + diff --git a/src/tools/ta_regtest/ta_test_func/test_per_hlc.c b/src/tools/ta_regtest/ta_test_func/test_per_hlc.c new file mode 100644 index 000000000..0b6166375 --- /dev/null +++ b/src/tools/ta_regtest/ta_test_func/test_per_hlc.c @@ -0,0 +1,542 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * MF Mario Fortier + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 112400 MF First version. + * 061904 MF Add test to detect cummulative errors in CCI algorithm + * when some values were close to zero (epsilon). + * 021106 MF Add tests for ULTOSC. + * 042206 MF Add tests for NATR + * + */ + +/* Description: + * + * Test functions which have the following + * characterisic: + * - the input is high,low and close. + * + */ + +/**** Headers ****/ +#include +#include + +#include "ta_test_priv.h" +#include "ta_test_func.h" +#include "ta_utility.h" + +/**** External functions declarations. ****/ +/* None */ + +/**** External variables declarations. ****/ +/* None */ + +/**** Global variables definitions. ****/ +/* None */ + +/**** Local declarations. ****/ +typedef enum { +TA_CCI_TEST, +TA_WILLR_TEST, +TA_ULTOSC_TEST, +TA_NATR_TEST +} TA_TestId; + +typedef struct +{ + TA_Integer doRangeTestFlag; + + TA_TestId theFunction; + + TA_Integer startIdx; + TA_Integer endIdx; + + TA_Integer optInTimePeriod1; + TA_Integer optInTimePeriod2; + TA_Integer optInTimePeriod3; + + TA_RetCode expectedRetCode; + + TA_Integer oneOfTheExpectedOutRealIndex0; + TA_Real oneOfTheExpectedOutReal0; + + TA_Integer expectedBegIdx; + TA_Integer expectedNbElement; +} TA_Test; + +typedef struct +{ + const TA_Test *test; + const TA_Real *high; + const TA_Real *low; + const TA_Real *close; +} TA_RangeTestParam; + +/**** Local functions declarations. ****/ +static ErrorNumber do_test( const TA_History *history, + const TA_Test *test ); + +/**** Local variables definitions. ****/ + +static TA_Test tableTest[] = +{ + /****************/ + /* NATR TEST */ + /****************/ + /* TODO Analyze further why NATR requires a very large unstable period. + * for now, just disable range testing. + */ + { 0, TA_NATR_TEST, 0, 251, 14, 0, 0, TA_SUCCESS, 0, 3.9321, 14, 252-14 }, + { 0, TA_NATR_TEST, 0, 251, 14, 0, 0, TA_SUCCESS, 1, 3.7576, 14, 252-14 }, + { 0, TA_NATR_TEST, 0, 251, 14, 0, 0, TA_SUCCESS, 252-15, 3.0229, 14, 252-14 }, + + /****************/ + /* ULTOSC TEST */ + /****************/ + { 0, TA_ULTOSC_TEST, 0, 251, 7, 14, 28, TA_SUCCESS, 0, 47.1713, 28, 252-28 }, + { 0, TA_ULTOSC_TEST, 0, 251, 7, 14, 28, TA_SUCCESS, 1, 46.2802, 28, 252-28 }, + { 1, TA_ULTOSC_TEST, 0, 251, 7, 14, 28, TA_SUCCESS, 252-29, 40.0854, 28, 252-28 }, + + + /****************/ + /* WILLR TEST */ + /****************/ + { 0, TA_WILLR_TEST, 13, 251, 14, 0, 0, TA_SUCCESS, 1, -66.9903, 13, 252-13 }, /* First Value */ + { 1, TA_WILLR_TEST, 0, 251, 14, 0, 0, TA_SUCCESS, 0, -90.1943, 13, 252-13 }, + { 0, TA_WILLR_TEST, 0, 251, 14, 0, 0, TA_SUCCESS, 112, 0.0, 13, 252-13 }, + + { 0, TA_WILLR_TEST, 24, 24, 14, 0, 0, TA_SUCCESS, 0, -89.2857, 24, 1 }, + { 0, TA_WILLR_TEST, 25, 25, 14, 0, 0, TA_SUCCESS, 0, -97.2602, 25, 1 }, + { 0, TA_WILLR_TEST, 26, 26, 14, 0, 0, TA_SUCCESS, 0, -71.5482, 26, 1 }, + + { 0, TA_WILLR_TEST, 251, 251, 14, 0, 0, TA_SUCCESS, 0, -59.1515, 251, 1 }, + { 0, TA_WILLR_TEST, 14, 251, 14, 0, 0, TA_SUCCESS, 252-15, -59.1515, 14, 252-14 }, + + /****************/ + /* CCI TEST */ + /****************/ + + /* The following two should always be identical. */ + { 0, TA_CCI_TEST, 186,187, 2, 0, 0, TA_SUCCESS, 1, 0.0, 186, 2 }, + { 0, TA_CCI_TEST, 187,187, 2, 0, 0, TA_SUCCESS, 0, 0.0, 187, 1 }, + + /* Test period 2, 5 and 11 */ + { 0, TA_CCI_TEST, 0, 251, 2, 0, 0, TA_SUCCESS, 0, 66.666, 1, 252-1 }, + { 1, TA_CCI_TEST, 0, 251, 5, 0, 0, TA_SUCCESS, 0, 18.857, 4, 252-4 }, + + { 0, TA_CCI_TEST, 0, 251, 11, 0, 0, TA_SUCCESS, 0, 87.927, 10, 252-10 }, /* First Value */ + { 0, TA_CCI_TEST, 0, 251, 11, 0, 0, TA_SUCCESS, 1, 180.005, 10, 252-10 }, + { 0, TA_CCI_TEST, 0, 251, 11, 0, 0, TA_SUCCESS, 2, 143.5190963, 10, 252-10 }, + { 0, TA_CCI_TEST, 0, 251, 11, 0, 0, TA_SUCCESS, 3, -113.8669783, 10, 252-10 }, + { 0, TA_CCI_TEST, 0, 251, 11, 0, 0, TA_SUCCESS, 4, -111.064497, 10, 252-10 }, + { 0, TA_CCI_TEST, 0, 251, 11, 0, 0, TA_SUCCESS, 5, -26.77393309, 10, 252-10 }, + { 0, TA_CCI_TEST, 0, 251, 11, 0, 0, TA_SUCCESS, 6, -70.77933765, 10, 252-10 }, + { 0, TA_CCI_TEST, 0, 251, 11, 0, 0, TA_SUCCESS, 7, -83.15662884, 10, 252-10 }, + { 0, TA_CCI_TEST, 0, 251, 11, 0, 0, TA_SUCCESS, 8, -41.14421073, 10, 252-10 }, + { 0, TA_CCI_TEST, 0, 251, 11, 0, 0, TA_SUCCESS, 9, -49.63059589, 10, 252-10 }, + { 0, TA_CCI_TEST, 0, 251, 11, 0, 0, TA_SUCCESS, 10, -86.45142995, 10, 252-10 }, + { 0, TA_CCI_TEST, 0, 251, 11, 0, 0, TA_SUCCESS, 11, -105.6275799, 10, 252-10 }, + { 0, TA_CCI_TEST, 0, 251, 11, 0, 0, TA_SUCCESS, 12, -157.698269, 10, 252-10 }, + { 0, TA_CCI_TEST, 0, 251, 11, 0, 0, TA_SUCCESS, 13, -190.5251436, 10, 252-10 }, + { 0, TA_CCI_TEST, 0, 251, 11, 0, 0, TA_SUCCESS, 14, -142.8364298, 10, 252-10 }, + { 0, TA_CCI_TEST, 0, 251, 11, 0, 0, TA_SUCCESS, 15, -122.4448056, 10, 252-10 }, + { 0, TA_CCI_TEST, 0, 251, 11, 0, 0, TA_SUCCESS, 16, -79.95100041, 10, 252-10 }, + { 0, TA_CCI_TEST, 0, 251, 11, 0, 0, TA_SUCCESS, 17, 22.03829204, 10, 252-10 }, + { 0, TA_CCI_TEST, 0, 251, 11, 0, 0, TA_SUCCESS, 18, 7.765575065, 10, 252-10 }, + { 0, TA_CCI_TEST, 0, 251, 11, 0, 0, TA_SUCCESS, 19, 32.38905945, 10, 252-10 }, + { 0, TA_CCI_TEST, 0, 251, 11, 0, 0, TA_SUCCESS, 20, -0.005587727, 10, 252-10 }, + { 0, TA_CCI_TEST, 0, 251, 11, 0, 0, TA_SUCCESS, 21, 43.84607294, 10, 252-10 }, + { 0, TA_CCI_TEST, 0, 251, 11, 0, 0, TA_SUCCESS, 22, 40.35152301, 10, 252-10 }, + { 0, TA_CCI_TEST, 0, 251, 11, 0, 0, TA_SUCCESS, 23, 92.89237535, 10, 252-10 }, + { 0, TA_CCI_TEST, 0, 251, 11, 0, 0, TA_SUCCESS, 24, 113.4778681, 10, 252-10 }, + { 1, TA_CCI_TEST, 0, 251, 11, 0, 0, TA_SUCCESS, 252-11, -169.65514, 10, 252-10 }, /* Last Value */ +}; + +#define NB_TEST (sizeof(tableTest)/sizeof(TA_Test)) + +/**** Global functions definitions. ****/ +ErrorNumber test_func_per_hlc( TA_History *history ) +{ + unsigned int i; + ErrorNumber retValue; + + /* Re-initialize all the unstable period to zero. */ + TA_SetUnstablePeriod( TA_FUNC_UNST_ALL, 0 ); + + for( i=0; i < NB_TEST; i++ ) + { + if( (int)tableTest[i].expectedNbElement > (int)history->nbBars ) + { + printf( "Failed Bad Parameter for Test #%d (%d,%d)\n", + i, tableTest[i].expectedNbElement, history->nbBars ); + return TA_TESTUTIL_TFRR_BAD_PARAM; + } + + retValue = do_test( history, &tableTest[i] ); + if( retValue != 0 ) + { + printf( "Failed Test #%d (Code=%d)\n", i, retValue ); + return retValue; + } + } + + /* Re-initialize all the unstable period to zero. */ + TA_SetUnstablePeriod( TA_FUNC_UNST_ALL, 0 ); + + /* All test succeed. */ + return TA_TEST_PASS; +} + +/**** Local functions definitions. ****/ +static TA_RetCode rangeTestFunction( TA_Integer startIdx, + TA_Integer endIdx, + TA_Real *outputBuffer, + TA_Integer *outputBufferInt, + TA_Integer *outBegIdx, + TA_Integer *outNbElement, + TA_Integer *lookback, + void *opaqueData, + unsigned int outputNb, + unsigned int *isOutputInteger ) +{ + TA_RetCode retCode; + TA_RangeTestParam *testParam; + + (void)outputNb; + (void)outputBufferInt; + + *isOutputInteger = 0; + + testParam = (TA_RangeTestParam *)opaqueData; + + switch( testParam->test->theFunction ) + { + case TA_NATR_TEST: + retCode = TA_NATR( startIdx, + endIdx, + testParam->high, + testParam->low, + testParam->close, + testParam->test->optInTimePeriod1, + outBegIdx, + outNbElement, + outputBuffer ); + *lookback = TA_NATR_Lookback( testParam->test->optInTimePeriod1 ); + break; + + case TA_CCI_TEST: + retCode = TA_CCI( startIdx, + endIdx, + testParam->high, + testParam->low, + testParam->close, + testParam->test->optInTimePeriod1, + outBegIdx, + outNbElement, + outputBuffer ); + *lookback = TA_CCI_Lookback( testParam->test->optInTimePeriod1 ); + break; + case TA_WILLR_TEST: + retCode = TA_WILLR( startIdx, + endIdx, + testParam->high, + testParam->low, + testParam->close, + testParam->test->optInTimePeriod1, + outBegIdx, + outNbElement, + outputBuffer ); + *lookback = TA_WILLR_Lookback( testParam->test->optInTimePeriod1 ); + break; + + case TA_ULTOSC_TEST: + retCode = TA_ULTOSC( startIdx, + endIdx, + testParam->high, + testParam->low, + testParam->close, + testParam->test->optInTimePeriod1, + testParam->test->optInTimePeriod2, + testParam->test->optInTimePeriod3, + outBegIdx, + outNbElement, + outputBuffer ); + *lookback = TA_ULTOSC_Lookback( testParam->test->optInTimePeriod1, + testParam->test->optInTimePeriod2, + testParam->test->optInTimePeriod3 ); + break; + + default: + retCode = TA_INTERNAL_ERROR(132); + } + + return retCode; +} + +static TA_RetCode do_call( const TA_Test *test, + const double high[], + const double low[], + const double close[], + int *outBegIdx, + int *outNbElement, + double output[] ) +{ + TA_RetCode retCode; + + switch( test->theFunction ) + { + case TA_NATR_TEST: + retCode = TA_NATR( test->startIdx, + test->endIdx, + high, low, close, + test->optInTimePeriod1, + outBegIdx, + outNbElement, + output ); + break; + + case TA_CCI_TEST: + retCode = TA_CCI( test->startIdx, + test->endIdx, + high, low, close, + test->optInTimePeriod1, + outBegIdx, + outNbElement, + output ); + break; + + case TA_WILLR_TEST: + retCode = TA_WILLR( test->startIdx, + test->endIdx, + high, low, close, + test->optInTimePeriod1, + outBegIdx, + outNbElement, + output ); + break; + + case TA_ULTOSC_TEST: + retCode = TA_ULTOSC( test->startIdx, + test->endIdx, + high, low, close, + test->optInTimePeriod1, + test->optInTimePeriod2, + test->optInTimePeriod3, + outBegIdx, + outNbElement, + output ); + break; + + default: + retCode = TA_INTERNAL_ERROR(133); + } + + return retCode; +} + +static ErrorNumber do_test( const TA_History *history, + const TA_Test *test ) +{ + TA_RetCode retCode; + ErrorNumber errNb; + TA_Integer outBegIdx; + TA_Integer outNbElement; + TA_RangeTestParam testParam; + + /* Set to NAN all the elements of the gBuffers. */ + clearAllBuffers(); + + /* Build the input. */ + setInputBuffer( 0, history->high, history->nbBars ); + setInputBuffer( 1, history->low, history->nbBars ); + setInputBuffer( 2, history->close, history->nbBars ); + + /* Make a simple first call. */ + retCode = do_call( test, + gBuffer[0].in, + gBuffer[1].in, + gBuffer[2].in, + &outBegIdx, + &outNbElement, + gBuffer[0].out0 ); + + /* Check that the input were preserved. */ + errNb = checkDataSame( gBuffer[0].in, history->high,history->nbBars ); + if( errNb != TA_TEST_PASS ) + return errNb; + errNb = checkDataSame( gBuffer[1].in, history->low, history->nbBars ); + if( errNb != TA_TEST_PASS ) + return errNb; + errNb = checkDataSame( gBuffer[2].in, history->close,history->nbBars ); + if( errNb != TA_TEST_PASS ) + return errNb; + + CHECK_EXPECTED_VALUE( gBuffer[0].out0, 0 ); + + outBegIdx = outNbElement = 0; + + /* Make another call where the input and the output are the + * same buffer. + */ + retCode = do_call( test, + gBuffer[0].in, + gBuffer[1].in, + gBuffer[2].in, + &outBegIdx, + &outNbElement, + gBuffer[0].in ); + + /* Check that the input were preserved. */ + errNb = checkDataSame( gBuffer[1].in, history->low, history->nbBars ); + if( errNb != TA_TEST_PASS ) + return errNb; + errNb = checkDataSame( gBuffer[2].in, history->close,history->nbBars ); + if( errNb != TA_TEST_PASS ) + return errNb; + + /* The previous call should have the same output as this call. + * + * checkSameContent verify that all value different than NAN in + * the first parameter is identical in the second parameter. + */ + errNb = checkSameContent( gBuffer[0].out0, gBuffer[0].in ); + if( errNb != TA_TEST_PASS ) + return errNb; + + CHECK_EXPECTED_VALUE( gBuffer[0].in, 0 ); + setInputBuffer( 0, history->high, history->nbBars ); + + /* Make another call where the input and the output are the + * same buffer. + */ + retCode = do_call( test, + gBuffer[0].in, + gBuffer[1].in, + gBuffer[2].in, + &outBegIdx, + &outNbElement, + gBuffer[1].in ); + + /* Check that the input were preserved. */ + errNb = checkDataSame( gBuffer[0].in, history->high,history->nbBars ); + if( errNb != TA_TEST_PASS ) + return errNb; + errNb = checkDataSame( gBuffer[2].in, history->close,history->nbBars ); + if( errNb != TA_TEST_PASS ) + return errNb; + + /* The previous call should have the same output as this call. + * + * checkSameContent verify that all value different than NAN in + * the first parameter is identical in the second parameter. + */ + errNb = checkSameContent( gBuffer[0].out0, gBuffer[1].in ); + if( errNb != TA_TEST_PASS ) + return errNb; + + CHECK_EXPECTED_VALUE( gBuffer[1].in, 0 ); + setInputBuffer( 1, history->low, history->nbBars ); + + /* Make another call where the input and the output are the + * same buffer. + */ + retCode = do_call( test, + gBuffer[0].in, + gBuffer[1].in, + gBuffer[2].in, + &outBegIdx, + &outNbElement, + gBuffer[2].in ); + + /* Check that the input were preserved. */ + errNb = checkDataSame( gBuffer[0].in, history->high,history->nbBars ); + if( errNb != TA_TEST_PASS ) + return errNb; + errNb = checkDataSame( gBuffer[1].in, history->low, history->nbBars ); + if( errNb != TA_TEST_PASS ) + return errNb; + + /* The previous call should have the same output as this call. + * + * checkSameContent verify that all value different than NAN in + * the first parameter is identical in the second parameter. + */ + errNb = checkSameContent( gBuffer[0].out0, gBuffer[2].in ); + if( errNb != TA_TEST_PASS ) + return errNb; + + CHECK_EXPECTED_VALUE( gBuffer[2].in, 0 ); + setInputBuffer( 2, history->close, history->nbBars ); + + /* Do a systematic test of most of the + * possible startIdx/endIdx range. + */ + testParam.test = test; + testParam.high = history->high; + testParam.low = history->low; + testParam.close = history->close; + + if( test->doRangeTestFlag ) + { + switch( test->theFunction ) + { + case TA_NATR_TEST: + errNb = doRangeTest( rangeTestFunction, + TA_FUNC_UNST_NATR, + (void *)&testParam, 1, 0 ); + break; + default: + errNb = doRangeTest( rangeTestFunction, + TA_FUNC_UNST_NONE, + (void *)&testParam, 1, 0 ); + break; + } + + if( errNb != TA_TEST_PASS ) + return errNb; + } + + return TA_TEST_PASS; +} + diff --git a/src/tools/ta_regtest/ta_test_func/test_per_hlcv.c b/src/tools/ta_regtest/ta_test_func/test_per_hlcv.c new file mode 100644 index 000000000..8485e010c --- /dev/null +++ b/src/tools/ta_regtest/ta_test_func/test_per_hlcv.c @@ -0,0 +1,710 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * MF Mario Fortier + * AC Angelo Ciceri + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 011103 MF First version. + * 111705 MF Add test for Fix#1359452 (AD Function). + * 110206 AC Change volume and open interest to double + */ + +/* Description: + * + * Test functions which have the following + * characterisic: + * - the inputs are high,low, close and volume. + * - have one output of type real. + * - might have an optional parameter. + * + * + */ + +/**** Headers ****/ +#include +#include + +#include "ta_test_priv.h" +#include "ta_test_func.h" +#include "ta_utility.h" + +/**** External functions declarations. ****/ +/* None */ + +/**** External variables declarations. ****/ +/* None */ + +/**** Global variables definitions. ****/ +/* None */ + +/**** Local declarations. ****/ +typedef enum { +TA_MFI_TEST, +TA_AD_TEST, +TA_ADOSC_3_10_TEST, +TA_ADOSC_5_2_TEST, +} TA_TestId; + +typedef struct +{ + TA_Integer doRangeTestFlag; + + TA_TestId theFunction; + + TA_Integer startIdx; + TA_Integer endIdx; + TA_Integer optInTimePeriod; + + TA_RetCode expectedRetCode; + + TA_Integer oneOfTheExpectedOutRealIndex0; + TA_Real oneOfTheExpectedOutReal0; + + TA_Integer expectedBegIdx; + TA_Integer expectedNbElement; +} TA_Test; + +typedef struct +{ + const TA_Test *test; + const TA_Real *high; + const TA_Real *low; + const TA_Real *close; + const TA_Real *volume; +} TA_RangeTestParam; + +/**** Local functions declarations. ****/ +static ErrorNumber do_test( const TA_History *history, + const TA_Test *test ); + +/**** Local variables definitions. ****/ + +static TA_Test tableTest[] = +{ + /*************/ + /* AD TEST */ + /*************/ + /* Note: the period field is ignored. The period is irrelevant */ + { 1, TA_AD_TEST, 0, 251, -1, TA_SUCCESS, 0, -1631000.00, 0, 252 }, /* First Value */ + { 0, TA_AD_TEST, 0, 251, -1, TA_SUCCESS, 1, 2974412.02, 0, 252 }, + { 0, TA_AD_TEST, 0, 251, -1, TA_SUCCESS, 250, 8707691.07, 0, 252 }, + { 0, TA_AD_TEST, 0, 251, -1, TA_SUCCESS, 251, 8328944.54, 0, 252 }, /* Last Value */ + + /****************/ + /* ADOSC TEST */ + /****************/ + /* Note: the period field is ignored. The periods are always 3 and 10 */ + { 1, TA_ADOSC_3_10_TEST, 0, 251, -1, TA_SUCCESS, 0, 841238.32, 9, 243 }, /* First Value */ + { 0, TA_ADOSC_3_10_TEST, 0, 251, -1, TA_SUCCESS, 1, 2255663.07, 9, 243 }, + { 0, TA_ADOSC_3_10_TEST, 0, 251, -1, TA_SUCCESS, 241, -526700.32, 9, 243 }, + { 0, TA_ADOSC_3_10_TEST, 0, 251, -1, TA_SUCCESS, 242, -1139932.729, 9, 243 }, /* Last Value */ + + /* Note: the period field is ignored. The periods are always 2 and 5 */ + { 1, TA_ADOSC_5_2_TEST, 0, 251, -1, TA_SUCCESS, 0, 585361.28, 4, 248 }, /* First Value */ + + /**************/ + /* MFI TEST */ + /**************/ + { 0, TA_MFI_TEST, 0, 251, 14, TA_SUCCESS, 0, 42.8923, 14, 252-14 }, /* First Value */ + { 0, TA_MFI_TEST, 0, 251, 14, TA_SUCCESS, 1, 45.6072, 14, 252-14 }, + { 0, TA_MFI_TEST, 0, 251, 14, TA_SUCCESS, 252-15, 53.1997, 14, 252-14 }, /* Last Value */ + + { 1, TA_MFI_TEST, 0, 251, 49, TA_SUCCESS, 0, 44.7902, 49, 252-49 }, /* First Value */ + { 0, TA_MFI_TEST, 0, 251, 49, TA_SUCCESS, 1, 43.1963, 49, 252-49 }, + { 0, TA_MFI_TEST, 0, 251, 49, TA_SUCCESS, 252-50, 57.4806, 49, 252-49 }, /* Last Value */ + + { 1, TA_MFI_TEST, 0, 251, 50, TA_SUCCESS, 0, 44.2414, 50, 252-50 }, /* First Value */ + { 0, TA_MFI_TEST, 0, 251, 50, TA_SUCCESS, 1, 42.1108, 50, 252-50 }, + { 0, TA_MFI_TEST, 0, 251, 50, TA_SUCCESS, 252-51, 50.5905, 50, 252-50 }, /* Last Value */ + + { 1, TA_MFI_TEST, 0, 251, 51, TA_SUCCESS, 0, 43.1496, 51, 252-51 }, /* First Value */ + { 0, TA_MFI_TEST, 0, 251, 51, TA_SUCCESS, 1, 40.7692, 51, 252-51 }, + { 0, TA_MFI_TEST, 0, 251, 51, TA_SUCCESS, 252-52, 51.7265, 51, 252-51 }, /* Last Value */ + + { 1, TA_MFI_TEST, 0, 251, 100, TA_SUCCESS, 0, 50.0166, 100, 252-100 }, /* First Value */ + { 0, TA_MFI_TEST, 0, 251, 100, TA_SUCCESS, 1, 50.2648, 100, 252-100 }, + { 0, TA_MFI_TEST, 0, 251, 100, TA_SUCCESS, 252-101, 48.4264, 100, 252-100 } /* Last Value */ + +}; + +#define NB_TEST (sizeof(tableTest)/sizeof(TA_Test)) + +/**** Global functions definitions. ****/ +ErrorNumber test_func_per_hlcv( TA_History *history ) +{ + unsigned int i; + ErrorNumber retValue; + + + for( i=0; i < NB_TEST; i++ ) + { + /* Re-initialize all the unstable period to zero. */ + TA_SetUnstablePeriod( TA_FUNC_UNST_ALL, 0 ); + + if( (int)tableTest[i].expectedNbElement > (int)history->nbBars ) + { + printf( "Failed Bad Parameter for Test #%d (%d,%d)\n", + i, tableTest[i].expectedNbElement, history->nbBars ); + return TA_TESTUTIL_TFRR_BAD_PARAM; + } + + retValue = do_test( history, &tableTest[i] ); + if( retValue != 0 ) + { + printf( "Failed Test #%d (Code=%d)\n", i, retValue ); + return retValue; + } + } + + /* Re-initialize all the unstable period to zero. */ + TA_SetUnstablePeriod( TA_FUNC_UNST_ALL, 0 ); + + /* All test succeed. */ + return TA_TEST_PASS; +} + +/**** Local functions definitions. ****/ +static TA_RetCode rangeTestFunction( TA_Integer startIdx, + TA_Integer endIdx, + TA_Real *outputBuffer, + TA_Integer *outputBufferInt, + TA_Integer *outBegIdx, + TA_Integer *outNbElement, + TA_Integer *lookback, + void *opaqueData, + unsigned int outputNb, + unsigned int *isOutputInteger ) +{ + TA_RetCode retCode; + TA_RangeTestParam *testParam; + + (void)outputNb; + (void)outputBufferInt; + + *isOutputInteger = 0; + + testParam = (TA_RangeTestParam *)opaqueData; + + switch( testParam->test->theFunction ) + { + case TA_MFI_TEST: + retCode = TA_MFI( startIdx, + endIdx, + testParam->high, + testParam->low, + testParam->close, + testParam->volume, + testParam->test->optInTimePeriod, + outBegIdx, + outNbElement, + outputBuffer ); + *lookback = TA_MFI_Lookback( testParam->test->optInTimePeriod ); + break; + + case TA_AD_TEST: + retCode = TA_AD( startIdx, + endIdx, + testParam->high, + testParam->low, + testParam->close, + testParam->volume, + outBegIdx, + outNbElement, + outputBuffer ); + *lookback = TA_AD_Lookback(); + break; + + case TA_ADOSC_3_10_TEST: + retCode = TA_ADOSC( startIdx, + endIdx, + testParam->high, + testParam->low, + testParam->close, + testParam->volume, + 3, 10, + outBegIdx, + outNbElement, + outputBuffer ); + *lookback = TA_ADOSC_Lookback(3,10); + break; + + case TA_ADOSC_5_2_TEST: + retCode = TA_ADOSC( startIdx, + endIdx, + testParam->high, + testParam->low, + testParam->close, + testParam->volume, + 5, 2, + outBegIdx, + outNbElement, + outputBuffer ); + *lookback = TA_ADOSC_Lookback(5,2); + break; + + default: + retCode = TA_INTERNAL_ERROR(132); + } + + return retCode; +} + +static ErrorNumber do_test( const TA_History *history, + const TA_Test *test ) +{ + TA_RetCode retCode; + ErrorNumber errNb; + TA_Integer outBegIdx; + TA_Integer outNbElement; + TA_RangeTestParam testParam; + + /* Set to NAN all the elements of the gBuffers. */ + clearAllBuffers(); + + /* Build the input. */ + setInputBuffer( 0, history->high, history->nbBars ); + setInputBuffer( 1, history->low, history->nbBars ); + setInputBuffer( 2, history->close, history->nbBars ); + + /* Clear the unstable periods from previous tests. */ + retCode = TA_SetUnstablePeriod( TA_FUNC_UNST_MFI, 0 ); + if( retCode != TA_SUCCESS ) + return TA_TEST_TFRR_SETUNSTABLE_PERIOD_FAIL; + + /* Make a simple first call. */ + switch( test->theFunction ) + { + case TA_MFI_TEST: + retCode = TA_MFI( test->startIdx, + test->endIdx, + gBuffer[0].in, + gBuffer[1].in, + gBuffer[2].in, + history->volume, + test->optInTimePeriod, + &outBegIdx, + &outNbElement, + gBuffer[0].out0 ); + break; + case TA_AD_TEST: + retCode = TA_AD( test->startIdx, + test->endIdx, + gBuffer[0].in, + gBuffer[1].in, + gBuffer[2].in, + history->volume, + &outBegIdx, + &outNbElement, + gBuffer[0].out0 ); + break; + + case TA_ADOSC_3_10_TEST: + retCode = TA_ADOSC( test->startIdx, + test->endIdx, + gBuffer[0].in, + gBuffer[1].in, + gBuffer[2].in, + history->volume, + 3, 10, + &outBegIdx, + &outNbElement, + gBuffer[0].out0 ); + break; + + case TA_ADOSC_5_2_TEST: + retCode = TA_ADOSC( test->startIdx, + test->endIdx, + gBuffer[0].in, + gBuffer[1].in, + gBuffer[2].in, + history->volume, + 5, 2, + &outBegIdx, + &outNbElement, + gBuffer[0].out0 ); + break; + default: + retCode = TA_INTERNAL_ERROR(133); + } + + /* Check that the input were preserved. */ + errNb = checkDataSame( gBuffer[0].in, history->high,history->nbBars ); + if( errNb != TA_TEST_PASS ) + return errNb; + errNb = checkDataSame( gBuffer[1].in, history->low, history->nbBars ); + if( errNb != TA_TEST_PASS ) + return errNb; + errNb = checkDataSame( gBuffer[2].in, history->close,history->nbBars ); + if( errNb != TA_TEST_PASS ) + return errNb; + + CHECK_EXPECTED_VALUE( gBuffer[0].out0, 0 ); + + outBegIdx = outNbElement = 0; + + /* Make another call where the input and the output are the + * same buffer. + */ + switch( test->theFunction ) + { + case TA_MFI_TEST: + retCode = TA_MFI( test->startIdx, + test->endIdx, + gBuffer[0].in, + gBuffer[1].in, + gBuffer[2].in, + history->volume, + test->optInTimePeriod, + &outBegIdx, + &outNbElement, + gBuffer[0].in ); + break; + case TA_AD_TEST: + retCode = TA_AD( test->startIdx, + test->endIdx, + gBuffer[0].in, + gBuffer[1].in, + gBuffer[2].in, + history->volume, + &outBegIdx, + &outNbElement, + gBuffer[0].in ); + break; + case TA_ADOSC_3_10_TEST: + retCode = TA_ADOSC( test->startIdx, + test->endIdx, + gBuffer[0].in, + gBuffer[1].in, + gBuffer[2].in, + history->volume, + 3, 10, + &outBegIdx, + &outNbElement, + gBuffer[0].in ); + break; + case TA_ADOSC_5_2_TEST: + retCode = TA_ADOSC( test->startIdx, + test->endIdx, + gBuffer[0].in, + gBuffer[1].in, + gBuffer[2].in, + history->volume, + 5, 2, + &outBegIdx, + &outNbElement, + gBuffer[0].in ); + break; + default: + retCode = TA_INTERNAL_ERROR(134); + } + + /* Check that the input were preserved. */ + errNb = checkDataSame( gBuffer[1].in, history->low, history->nbBars ); + if( errNb != TA_TEST_PASS ) + return errNb; + errNb = checkDataSame( gBuffer[2].in, history->close,history->nbBars ); + if( errNb != TA_TEST_PASS ) + return errNb; + + /* The previous call should have the same output as this call. + * + * checkSameContent verify that all value different than NAN in + * the first parameter is identical in the second parameter. + */ + errNb = checkSameContent( gBuffer[0].out0, gBuffer[0].in ); + if( errNb != TA_TEST_PASS ) + return errNb; + + CHECK_EXPECTED_VALUE( gBuffer[0].in, 0 ); + setInputBuffer( 0, history->high, history->nbBars ); + + /* Make another call where the input and the output are the + * same buffer. + */ + switch( test->theFunction ) + { + case TA_MFI_TEST: + retCode = TA_MFI( test->startIdx, + test->endIdx, + gBuffer[0].in, + gBuffer[1].in, + gBuffer[2].in, + history->volume, + test->optInTimePeriod, + &outBegIdx, + &outNbElement, + gBuffer[1].in ); + break; + case TA_AD_TEST: + retCode = TA_AD( test->startIdx, + test->endIdx, + gBuffer[0].in, + gBuffer[1].in, + gBuffer[2].in, + history->volume, + &outBegIdx, + &outNbElement, + gBuffer[1].in ); + break; + case TA_ADOSC_3_10_TEST: + retCode = TA_ADOSC( test->startIdx, + test->endIdx, + gBuffer[0].in, + gBuffer[1].in, + gBuffer[2].in, + history->volume, + 3, 10, + &outBegIdx, + &outNbElement, + gBuffer[1].in ); + break; + case TA_ADOSC_5_2_TEST: + retCode = TA_ADOSC( test->startIdx, + test->endIdx, + gBuffer[0].in, + gBuffer[1].in, + gBuffer[2].in, + history->volume, + 5, 2, + &outBegIdx, + &outNbElement, + gBuffer[1].in ); + break; + default: + retCode = TA_INTERNAL_ERROR(135); + } + + /* Check that the input were preserved. */ + errNb = checkDataSame( gBuffer[0].in, history->high,history->nbBars ); + if( errNb != TA_TEST_PASS ) + return errNb; + errNb = checkDataSame( gBuffer[2].in, history->close,history->nbBars ); + if( errNb != TA_TEST_PASS ) + return errNb; + + /* The previous call to TA_MA should have the same output + * as this call. + * + * checkSameContent verify that all value different than NAN in + * the first parameter is identical in the second parameter. + */ + errNb = checkSameContent( gBuffer[0].out0, gBuffer[1].in ); + if( errNb != TA_TEST_PASS ) + return errNb; + + CHECK_EXPECTED_VALUE( gBuffer[1].in, 0 ); + setInputBuffer( 1, history->low, history->nbBars ); + + /* Make another call where the input and the output are the + * same buffer. + */ + switch( test->theFunction ) + { + case TA_MFI_TEST: + retCode = TA_MFI( test->startIdx, + test->endIdx, + gBuffer[0].in, + gBuffer[1].in, + gBuffer[2].in, + history->volume, + test->optInTimePeriod, + &outBegIdx, + &outNbElement, + gBuffer[2].in ); + break; + case TA_AD_TEST: + retCode = TA_AD( test->startIdx, + test->endIdx, + gBuffer[0].in, + gBuffer[1].in, + gBuffer[2].in, + history->volume, + &outBegIdx, + &outNbElement, + gBuffer[2].in ); + break; + case TA_ADOSC_3_10_TEST: + retCode = TA_ADOSC( test->startIdx, + test->endIdx, + gBuffer[0].in, + gBuffer[1].in, + gBuffer[2].in, + history->volume, + 3, 10, + &outBegIdx, + &outNbElement, + gBuffer[2].in ); + break; + case TA_ADOSC_5_2_TEST: + retCode = TA_ADOSC( test->startIdx, + test->endIdx, + gBuffer[0].in, + gBuffer[1].in, + gBuffer[2].in, + history->volume, + 5, 2, + &outBegIdx, + &outNbElement, + gBuffer[2].in ); + break; + default: + retCode = TA_INTERNAL_ERROR(136); + } + + /* Check that the input were preserved. */ + errNb = checkDataSame( gBuffer[0].in, history->high,history->nbBars ); + if( errNb != TA_TEST_PASS ) + return errNb; + errNb = checkDataSame( gBuffer[1].in, history->low, history->nbBars ); + if( errNb != TA_TEST_PASS ) + return errNb; + + /* The previous call should have the same output as this call. + * + * checkSameContent verify that all value different than NAN in + * the first parameter is identical in the second parameter. + */ + errNb = checkSameContent( gBuffer[0].out0, gBuffer[2].in ); + if( errNb != TA_TEST_PASS ) + return errNb; + + CHECK_EXPECTED_VALUE( gBuffer[2].in, 0 ); + setInputBuffer( 2, history->close, history->nbBars ); + + if( test->doRangeTestFlag ) + { + /* Do a systematic test of most of the + * possible startIdx/endIdx range. + */ + testParam.test = test; + testParam.high = history->high; + testParam.low = history->low; + testParam.close = history->close; + testParam.volume = history->volume; + + switch( test->theFunction ) + { + case TA_MFI_TEST: + errNb = doRangeTest( rangeTestFunction, + TA_FUNC_UNST_MFI, + (void *)&testParam, 1, 0 ); + if( errNb != TA_TEST_PASS ) + return errNb; + break; + case TA_AD_TEST: + errNb = doRangeTest( rangeTestFunction, + TA_FUNC_UNST_NONE, + (void *)&testParam, 1, + TA_DO_NOT_COMPARE ); + if( errNb != TA_TEST_PASS ) + return errNb; + break; + case TA_ADOSC_3_10_TEST: + case TA_ADOSC_5_2_TEST: + errNb = doRangeTest( rangeTestFunction, + TA_FUNC_UNST_EMA, + (void *)&testParam, 1, + TA_DO_NOT_COMPARE ); + if( errNb != TA_TEST_PASS ) + return errNb; + break; + default: + break; + } + } + + /* Check for fix #1359452 - AD RAnge not working as expected. */ + if( test->theFunction == TA_AD_TEST ) + { + gBuffer[0].out0[0] = -1.0; + gBuffer[0].out0[1] = -1.0; + retCode = TA_AD( 0, + 0, + gBuffer[0].in, + gBuffer[1].in, + gBuffer[2].in, + history->volume, + &outBegIdx, + &outNbElement, + &gBuffer[0].out0[0] ); + if( retCode != TA_SUCCESS ) + { + printf( "Failed AD call for fix #1359452 [%d]\n", retCode ); + return TA_TEST_FAIL_BUG1359452_1; + } + if( gBuffer[0].out0[0] == -1.0 ) + { + printf( "Failed AD call for fix #1359452 out0[0] == -1\n" ); + return TA_TEST_FAIL_BUG1359452_2; + } + + retCode = TA_AD( 1, + 1, + gBuffer[0].in, + gBuffer[1].in, + gBuffer[2].in, + history->volume, + &outBegIdx, + &outNbElement, + &gBuffer[0].out0[1] ); + if( retCode != TA_SUCCESS ) + { + printf( "Failed AD call for fix #1359452 [%d]\n", retCode ); + return TA_TEST_FAIL_BUG1359452_3; + } + if( gBuffer[0].out0[1] == -1.0 ) + { + printf( "Failed AD call for fix #1359452 out0[1] == -1\n" ); + return TA_TEST_FAIL_BUG1359452_4; + } + + /* The two values are to be different. */ + if( gBuffer[0].out0[1] == gBuffer[0].out0[0] ) + { + printf( "Failed AD logic for fix #1359452\n" ); + return TA_TEST_FAIL_BUG1359452_5; + } + } + + return TA_TEST_PASS; +} + diff --git a/src/tools/ta_regtest/ta_test_func/test_per_ohlc.c b/src/tools/ta_regtest/ta_test_func/test_per_ohlc.c new file mode 100644 index 000000000..bacec8ff4 --- /dev/null +++ b/src/tools/ta_regtest/ta_test_func/test_per_ohlc.c @@ -0,0 +1,527 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * MF Mario Fortier + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 112405 MF First version. + * + */ + +/* Description: + * + * Test functions which have the following + * characterisic: + * - have one output + * - zero or one parameter being a period. + * - the input is open, high, low and close. + * + */ + +/**** Headers ****/ +#include +#include + +#include "ta_test_priv.h" +#include "ta_test_func.h" +#include "ta_utility.h" + +/**** External functions declarations. ****/ +/* None */ + +/**** External variables declarations. ****/ +/* None */ + +/**** Global variables definitions. ****/ +/* None */ + +/**** Local declarations. ****/ +typedef enum { +TA_AVGPRICE_TEST, +TA_BOP_TEST +} TA_TestId; + +typedef struct +{ + TA_Integer doRangeTestFlag; + + TA_TestId theFunction; + + TA_Integer startIdx; + TA_Integer endIdx; + TA_Integer optInTimePeriod; + + TA_RetCode expectedRetCode; + + TA_Integer oneOfTheExpectedOutRealIndex0; + TA_Real oneOfTheExpectedOutReal0; + + TA_Integer expectedBegIdx; + TA_Integer expectedNbElement; +} TA_Test; + +typedef struct +{ + const TA_Test *test; + const TA_Real *open; + const TA_Real *high; + const TA_Real *low; + const TA_Real *close; +} TA_RangeTestParam; + +/**** Local functions declarations. ****/ +static ErrorNumber do_test( const TA_History *history, + const TA_Test *test ); + +/**** Local variables definitions. ****/ + +static TA_Test tableTest[] = +{ + /*******************/ + /* AVGPRICE TEST */ + /*******************/ + { 0, TA_AVGPRICE_TEST, 0, 251, 0, TA_SUCCESS, 0, 92.0, 0, 252 }, + { 1, TA_AVGPRICE_TEST, 0, 251, 0, TA_SUCCESS, 1, 93.17, 0, 252 }, + + /*************/ + /* BOP TEST */ + /*************/ + + /* The following two should always be identical. */ + { 0, TA_BOP_TEST, 0, 251, 0, TA_SUCCESS, 0, -0.40, 0, 252 }, + { 1, TA_BOP_TEST, 0, 251, 0, TA_SUCCESS, 1, 0.94, 0, 252 } + +}; + +#define NB_TEST (sizeof(tableTest)/sizeof(TA_Test)) + +/**** Global functions definitions. ****/ +ErrorNumber test_func_per_ohlc( TA_History *history ) +{ + unsigned int i; + ErrorNumber retValue; + + /* Re-initialize all the unstable period to zero. */ + TA_SetUnstablePeriod( TA_FUNC_UNST_ALL, 0 ); + + for( i=0; i < NB_TEST; i++ ) + { + if( (int)tableTest[i].expectedNbElement > (int)history->nbBars ) + { + printf( "Failed Bad Parameter for Test #%d (%d,%d)\n", + i, tableTest[i].expectedNbElement, history->nbBars ); + return TA_TESTUTIL_TFRR_BAD_PARAM; + } + + retValue = do_test( history, &tableTest[i] ); + if( retValue != 0 ) + { + printf( "Failed Test #%d (Code=%d)\n", i, retValue ); + return retValue; + } + } + + /* Re-initialize all the unstable period to zero. */ + TA_SetUnstablePeriod( TA_FUNC_UNST_ALL, 0 ); + + /* All test succeed. */ + return TA_TEST_PASS; +} + +/**** Local functions definitions. ****/ +static TA_RetCode rangeTestFunction( TA_Integer startIdx, + TA_Integer endIdx, + TA_Real *outputBuffer, + TA_Integer *outputBufferInt, + TA_Integer *outBegIdx, + TA_Integer *outNbElement, + TA_Integer *lookback, + void *opaqueData, + unsigned int outputNb, + unsigned int *isOutputInteger ) +{ + TA_RetCode retCode; + TA_RangeTestParam *testParam; + + (void)outputNb; + (void)outputBufferInt; + + *isOutputInteger = 0; + + testParam = (TA_RangeTestParam *)opaqueData; + + switch( testParam->test->theFunction ) + { + case TA_BOP_TEST: + retCode = TA_BOP( startIdx, + endIdx, + testParam->open, + testParam->high, + testParam->low, + testParam->close, + outBegIdx, + outNbElement, + outputBuffer ); + *lookback = TA_BOP_Lookback(); + break; + case TA_AVGPRICE_TEST: + retCode = TA_AVGPRICE( startIdx, + endIdx, + testParam->open, + testParam->high, + testParam->low, + testParam->close, + outBegIdx, + outNbElement, + outputBuffer ); + *lookback = TA_AVGPRICE_Lookback(); + break; + default: + retCode = TA_INTERNAL_ERROR(171); + } + + return retCode; +} + +static ErrorNumber do_test( const TA_History *history, + const TA_Test *test ) +{ + TA_RetCode retCode; + ErrorNumber errNb; + TA_Integer outBegIdx; + TA_Integer outNbElement; + TA_RangeTestParam testParam; + + /* Set to NAN all the elements of the gBuffers. */ + clearAllBuffers(); + + /* Build the input. */ + setInputBuffer( 0, history->open, history->nbBars ); + setInputBuffer( 1, history->high, history->nbBars ); + setInputBuffer( 2, history->low, history->nbBars ); + setInputBuffer( 3, history->close, history->nbBars ); + + /* Make a simple first call. */ + switch( test->theFunction ) + { + case TA_BOP_TEST: + retCode = TA_BOP( test->startIdx, + test->endIdx, + gBuffer[0].in, + gBuffer[1].in, + gBuffer[2].in, + gBuffer[3].in, + &outBegIdx, + &outNbElement, + gBuffer[0].out0 ); + break; + + case TA_AVGPRICE_TEST: + retCode = TA_AVGPRICE( test->startIdx, + test->endIdx, + gBuffer[0].in, + gBuffer[1].in, + gBuffer[2].in, + gBuffer[3].in, + &outBegIdx, + &outNbElement, + gBuffer[0].out0 ); + break; + + default: + retCode = TA_INTERNAL_ERROR(172); + } + + /* Check that the input were preserved. */ + errNb = checkDataSame( gBuffer[0].in, history->open,history->nbBars ); + if( errNb != TA_TEST_PASS ) + return errNb; + errNb = checkDataSame( gBuffer[1].in, history->high, history->nbBars ); + if( errNb != TA_TEST_PASS ) + return errNb; + errNb = checkDataSame( gBuffer[2].in, history->low,history->nbBars ); + if( errNb != TA_TEST_PASS ) + return errNb; + errNb = checkDataSame( gBuffer[3].in, history->close,history->nbBars ); + if( errNb != TA_TEST_PASS ) + return errNb; + + CHECK_EXPECTED_VALUE( gBuffer[0].out0, 0 ); + + outBegIdx = outNbElement = 0; + + /* Make another call where the input and the output are the + * same buffer. + */ + switch( test->theFunction ) + { + case TA_BOP_TEST: + retCode = TA_BOP( test->startIdx, + test->endIdx, + gBuffer[0].in, + gBuffer[1].in, + gBuffer[2].in, + gBuffer[3].in, + &outBegIdx, + &outNbElement, + gBuffer[0].in ); + break; + case TA_AVGPRICE_TEST: + retCode = TA_AVGPRICE( test->startIdx, + test->endIdx, + gBuffer[0].in, + gBuffer[1].in, + gBuffer[2].in, + gBuffer[3].in, + &outBegIdx, + &outNbElement, + gBuffer[0].in ); + break; + default: + retCode = TA_INTERNAL_ERROR(173); + } + + /* Check that the input were preserved. */ + errNb = checkDataSame( gBuffer[1].in, history->high, history->nbBars ); + if( errNb != TA_TEST_PASS ) + return errNb; + errNb = checkDataSame( gBuffer[2].in, history->low,history->nbBars ); + if( errNb != TA_TEST_PASS ) + return errNb; + errNb = checkDataSame( gBuffer[3].in, history->close,history->nbBars ); + if( errNb != TA_TEST_PASS ) + return errNb; + + /* The previous call should have the same output as this call. + * + * checkSameContent verify that all value different than NAN in + * the first parameter is identical in the second parameter. + */ + errNb = checkSameContent( gBuffer[0].out0, gBuffer[0].in ); + if( errNb != TA_TEST_PASS ) + return errNb; + + CHECK_EXPECTED_VALUE( gBuffer[0].in, 0 ); + setInputBuffer( 0, history->open, history->nbBars ); + + /* Make another call where the input and the output are the + * same buffer. + */ + switch( test->theFunction ) + { + case TA_BOP_TEST: + retCode = TA_BOP( test->startIdx, + test->endIdx, + gBuffer[0].in, + gBuffer[1].in, + gBuffer[2].in, + gBuffer[3].in, + &outBegIdx, + &outNbElement, + gBuffer[1].in ); + break; + case TA_AVGPRICE_TEST: + retCode = TA_AVGPRICE( test->startIdx, + test->endIdx, + gBuffer[0].in, + gBuffer[1].in, + gBuffer[2].in, + gBuffer[3].in, + &outBegIdx, + &outNbElement, + gBuffer[1].in ); + break; + default: + retCode = TA_INTERNAL_ERROR(174); + } + + /* Check that the input were preserved. */ + errNb = checkDataSame( gBuffer[0].in, history->open,history->nbBars ); + if( errNb != TA_TEST_PASS ) + return errNb; + errNb = checkDataSame( gBuffer[2].in, history->low,history->nbBars ); + if( errNb != TA_TEST_PASS ) + return errNb; + errNb = checkDataSame( gBuffer[3].in, history->close,history->nbBars ); + if( errNb != TA_TEST_PASS ) + return errNb; + + /* The previous call should have the same output as this call. + * + * checkSameContent verify that all value different than NAN in + * the first parameter is identical in the second parameter. + */ + errNb = checkSameContent( gBuffer[0].out0, gBuffer[1].in ); + if( errNb != TA_TEST_PASS ) + return errNb; + + CHECK_EXPECTED_VALUE( gBuffer[1].in, 0 ); + setInputBuffer( 1, history->high, history->nbBars ); + + /* Make another call where the input and the output are the + * same buffer. + */ + switch( test->theFunction ) + { + case TA_BOP_TEST: + retCode = TA_BOP( test->startIdx, + test->endIdx, + gBuffer[0].in, + gBuffer[1].in, + gBuffer[2].in, + gBuffer[3].in, + &outBegIdx, + &outNbElement, + gBuffer[2].in ); + break; + case TA_AVGPRICE_TEST: + retCode = TA_AVGPRICE( test->startIdx, + test->endIdx, + gBuffer[0].in, + gBuffer[1].in, + gBuffer[2].in, + gBuffer[3].in, + &outBegIdx, + &outNbElement, + gBuffer[2].in ); + break; + default: + retCode = TA_INTERNAL_ERROR(175); + } + + /* Check that the input were preserved. */ + errNb = checkDataSame( gBuffer[0].in, history->open,history->nbBars ); + if( errNb != TA_TEST_PASS ) + return errNb; + errNb = checkDataSame( gBuffer[1].in, history->high, history->nbBars ); + if( errNb != TA_TEST_PASS ) + return errNb; + errNb = checkDataSame( gBuffer[3].in, history->close, history->nbBars ); + if( errNb != TA_TEST_PASS ) + return errNb; + + /* The previous call should have the same output as this call. + * + * checkSameContent verify that all value different than NAN in + * the first parameter is identical in the second parameter. + */ + errNb = checkSameContent( gBuffer[0].out0, gBuffer[2].in ); + if( errNb != TA_TEST_PASS ) + return errNb; + + CHECK_EXPECTED_VALUE( gBuffer[2].in, 0 ); + setInputBuffer( 2, history->low, history->nbBars ); + + /* Make another call where the input and the output are the + * same buffer. + */ + switch( test->theFunction ) + { + case TA_BOP_TEST: + retCode = TA_BOP( test->startIdx, + test->endIdx, + gBuffer[0].in, + gBuffer[1].in, + gBuffer[2].in, + gBuffer[3].in, + &outBegIdx, + &outNbElement, + gBuffer[3].in ); + break; + case TA_AVGPRICE_TEST: + retCode = TA_AVGPRICE( test->startIdx, + test->endIdx, + gBuffer[0].in, + gBuffer[1].in, + gBuffer[2].in, + gBuffer[3].in, + &outBegIdx, + &outNbElement, + gBuffer[3].in ); + break; + default: + retCode = TA_INTERNAL_ERROR(176); + } + + /* Check that the input were preserved. */ + errNb = checkDataSame( gBuffer[0].in, history->open,history->nbBars ); + if( errNb != TA_TEST_PASS ) + return errNb; + errNb = checkDataSame( gBuffer[1].in, history->high, history->nbBars ); + if( errNb != TA_TEST_PASS ) + return errNb; + errNb = checkDataSame( gBuffer[2].in, history->low, history->nbBars ); + if( errNb != TA_TEST_PASS ) + return errNb; + + /* The previous call should have the same output as this call. + * + * checkSameContent verify that all value different than NAN in + * the first parameter is identical in the second parameter. + */ + errNb = checkSameContent( gBuffer[0].out0, gBuffer[3].in ); + if( errNb != TA_TEST_PASS ) + return errNb; + + CHECK_EXPECTED_VALUE( gBuffer[3].in, 0 ); + setInputBuffer( 3, history->close, history->nbBars ); + + /* Do a systematic test of most of the + * possible startIdx/endIdx range. + */ + testParam.test = test; + testParam.open = history->open; + testParam.high = history->high; + testParam.low = history->low; + testParam.close = history->close; + + if( test->doRangeTestFlag ) + { + errNb = doRangeTest( rangeTestFunction, + TA_FUNC_UNST_NONE, + (void *)&testParam, 1, 0 ); + if( errNb != TA_TEST_PASS ) + return errNb; + } + + return TA_TEST_PASS; +} + diff --git a/src/tools/ta_regtest/ta_test_func/test_po.c b/src/tools/ta_regtest/ta_test_func/test_po.c new file mode 100644 index 000000000..7fee88736 --- /dev/null +++ b/src/tools/ta_regtest/ta_test_func/test_po.c @@ -0,0 +1,440 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * MF Mario Fortier + * AA Andrew Atkinson + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 112400 MF First version. + * 020605 MF Add regression test with inverted slow/fast period. + * 020805 AA Fix one of the TA_PPO call (wrong buffer was pass). + */ + +/* Description: + * Regression test of APO(Absolute Price Oscillator). + * Regression test of PPO (Percentage Price Oscillator). + */ + +/**** Headers ****/ +#include +#include + +#include "ta_test_priv.h" +#include "ta_test_func.h" +#include "ta_utility.h" + +/**** External functions declarations. ****/ +/* None */ + +/**** External variables declarations. ****/ +/* None */ + +/**** Global variables definitions. ****/ +/* None */ + +/**** Local declarations. ****/ +typedef struct +{ + TA_Integer doRangeTestFlag; + + TA_Integer doPercentage; + + TA_Integer startIdx; + TA_Integer endIdx; + + TA_Integer optInFastPeriod; /* From 1 to 200 */ + TA_Integer optInSlowPeriod; /* From 1 to 200 */ + TA_Integer optInMethod_2; + TA_Integer compatibility; + + TA_RetCode expectedRetCode; + + TA_Integer oneOfTheExpectedOutRealIndex; + TA_Real oneOfTheExpectedOutReal; + + + TA_Integer expectedBegIdx; + TA_Integer expectedNbElement; +} TA_Test; + +typedef struct +{ + const TA_Test *test; + const TA_Real *close; +} TA_RangeTestParam; + +/**** Local functions declarations. ****/ +static ErrorNumber do_test( const TA_History *history, + const TA_Test *test ); + +/**** Local variables definitions. ****/ +static TA_Test tableTest[] = +{ + /**********************************/ + /* APO TEST - SIMPLE - CLASSIC */ + /**********************************/ + { 1, 0, 0, 251, 26, 12, TA_MAType_SMA, TA_COMPATIBILITY_DEFAULT, TA_SUCCESS, 0, -3.3124, 25, 252-25 }, /* First Value */ + { 1, 0, 0, 251, 12, 26, TA_MAType_SMA, TA_COMPATIBILITY_DEFAULT, TA_SUCCESS, 0, -3.3124, 25, 252-25 }, /* First Value */ + { 0, 0, 0, 251, 12, 26, TA_MAType_SMA, TA_COMPATIBILITY_DEFAULT, TA_SUCCESS, 1, -3.5876, 25, 252-25 }, + { 0, 0, 0, 251, 12, 26, TA_MAType_SMA, TA_COMPATIBILITY_DEFAULT, TA_SUCCESS, 252-26, -0.1667, 25, 252-25 }, /* Last Value */ + + { 0, 0, 0, 1, 12, 26, TA_MAType_SMA, TA_COMPATIBILITY_DEFAULT, TA_SUCCESS, 0, 0, 0, 0 }, /* Out of range value */ + { 0, 0, 1, 1, 12, 26, TA_MAType_SMA, TA_COMPATIBILITY_DEFAULT, TA_SUCCESS, 0, 0, 0, 0 }, /* Out of range value */ + { 0, 0, 25, 25, 12, 26, TA_MAType_SMA, TA_COMPATIBILITY_DEFAULT, TA_SUCCESS, 0, -3.3124, 25, 1 }, /* First/Last Value */ + { 0, 0, 250, 251, 12, 26, TA_MAType_SMA, TA_COMPATIBILITY_DEFAULT, TA_SUCCESS, 1, -0.1667, 250, 2 }, /* Last Value */ + + /************************************/ + /* APO TEST - SIMPLE - METASTOCK */ + /************************************/ + { 0, 0, 0, 251, 12, 26, TA_MAType_SMA, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, 0, -3.3124, 25, 252-25 }, /* First Value */ + { 0, 0, 0, 251, 12, 26, TA_MAType_SMA, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, 1, -3.5876, 25, 252-25 }, + { 0, 0, 0, 251, 12, 26, TA_MAType_SMA, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, 252-26, -0.1667, 25, 252-25 }, /* Last Value */ + + { 0, 0, 0, 1, 12, 26, TA_MAType_SMA, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, 0, 0, 0, 0 }, /* Out of range value */ + { 0, 0, 1, 1, 12, 26, TA_MAType_SMA, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, 0, 0, 0, 0 }, /* Out of range value */ + { 0, 0, 25, 25, 12, 26, TA_MAType_SMA, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, 0, -3.3124, 25, 1 }, /* First/Last Value */ + { 0, 0, 250, 251, 12, 26, TA_MAType_SMA, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, 1, -0.1667, 250, 2 }, /* Last Value */ + + + /***************************************/ + /* APO TEST - EXPONENTIAL - CLASSIC */ + /***************************************/ + /* !!! To be done. */ + + /*****************************************/ + /* APO TEST - EXPONENTIAL - METASTOCK */ + /*****************************************/ + { 1, 0, 0, 251, 12, 26, TA_MAType_EMA, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, 0, -2.4193, 25, 252-25 }, /* First Value */ + { 0, 0, 0, 251, 12, 26, TA_MAType_EMA, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, 1, -2.4367, 25, 252-25 }, + { 0, 0, 0, 251, 12, 26, TA_MAType_EMA, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, 252-26, 0.90401, 25, 252-25 }, /* Last Value */ + + { 0, 0, 0, 1, 12, 26, TA_MAType_EMA, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, 0, 0, 0, 0 }, /* Out of range value */ + { 0, 0, 1, 1, 12, 26, TA_MAType_EMA, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, 0, 0, 0, 0 }, /* Out of range value */ + { 0, 0, 25, 25, 12, 26, TA_MAType_EMA, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, 0, -2.4193, 25, 1 }, + { 0, 0, 250, 251, 12, 26, TA_MAType_EMA, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, 1, 0.90401, 250, 2 }, /* Last Value */ + + { 0, 0, 251, 251, 12, 26, TA_MAType_EMA, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, 0, 0.90401, 251, 1 }, /* Last Value */ + { 0, 0, 25, 25, 12, 26, TA_MAType_EMA, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, 0, -2.4193, 25, 1 }, /* Just enough to calculate first. */ + { 0, 0, 26, 26, 12, 26, TA_MAType_EMA, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, 0, -2.4367, 26, 1 }, /* Just enough to calculate second. */ + + /**********************************/ + /* PPO TEST - SIMPLE - CLASSIC */ + /**********************************/ + { 1, 1, 0, 251, 2, 3, TA_MAType_SMA, TA_COMPATIBILITY_DEFAULT, TA_SUCCESS, 0, 1.10264, 2, 252-2 }, /* First Value */ + { 0, 1, 0, 251, 2, 3, TA_MAType_SMA, TA_COMPATIBILITY_DEFAULT, TA_SUCCESS, 1, -0.02813, 2, 252-2 }, + { 0, 1, 0, 251, 2, 3, TA_MAType_SMA, TA_COMPATIBILITY_DEFAULT, TA_SUCCESS, 249, -0.21191, 2, 252-2 }, /* Last Value */ + + { 0, 1, 0, 1, 2, 3, TA_MAType_SMA, TA_COMPATIBILITY_DEFAULT, TA_SUCCESS, 0, 0, 0, 0 }, /* Out of range value */ + { 0, 1, 1, 1, 2, 3, TA_MAType_SMA, TA_COMPATIBILITY_DEFAULT, TA_SUCCESS, 0, 0, 0, 0 }, /* Out of range value */ + { 0, 1, 2, 2, 2, 3, TA_MAType_SMA, TA_COMPATIBILITY_DEFAULT, TA_SUCCESS, 0, 1.10264, 2, 1 }, /* First/Last Value */ + { 0, 1, 250, 251, 2, 3, TA_MAType_SMA, TA_COMPATIBILITY_DEFAULT, TA_SUCCESS, 1, -0.21191, 250, 2 }, /* Last Value */ + + /************************************/ + /* PPO TEST - SIMPLE - METASTOCK */ + /************************************/ + { 0, 1, 0, 251, 3, 2, TA_MAType_SMA, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, 0, 1.10264, 2, 252-2 }, /* First Value */ + { 0, 1, 0, 251, 2, 3, TA_MAType_SMA, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, 1, -0.02813, 2, 252-2 }, + { 0, 1, 0, 251, 3, 2, TA_MAType_SMA, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, 249, -0.21191, 2, 252-2 }, /* Last Value */ + + { 0, 1, 0, 1, 2, 3, TA_MAType_SMA, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, 0, 0, 0, 0 }, /* Out of range value */ + { 1, 1, 1, 1, 3, 2, TA_MAType_SMA, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, 0, 0, 0, 0 }, /* Out of range value */ + { 1, 1, 2, 2, 2, 3, TA_MAType_SMA, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, 0, 1.10264, 2, 1 }, /* First/Last Value */ + { 0, 1, 250, 251, 3, 2, TA_MAType_SMA, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, 1, -0.21191, 250, 2 }, /* Last Value */ + + { 0, 1, 0, 251, 12, 26, TA_MAType_SMA, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, 0, -3.6393, 25, 252-25 }, /* First Value */ + { 0, 1, 0, 251, 12, 26, TA_MAType_SMA, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, 1, -3.9534, 25, 252-25 }, + { 0, 1, 0, 251, 12, 26, TA_MAType_SMA, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, 252-26, -0.15281, 25, 252-25 }, /* Last Value */ + + { 0, 1, 0, 1, 12, 26, TA_MAType_SMA, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, 0, 0, 0, 0 }, /* Out of range value */ + { 0, 1, 1, 1, 12, 26, TA_MAType_SMA, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, 0, 0, 0, 0 }, /* Out of range value */ + { 0, 1, 25, 25, 12, 26, TA_MAType_SMA, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, 0, -3.6393, 25, 1 }, /* First/Last Value */ + { 0, 1, 250, 251, 12, 26, TA_MAType_SMA, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, 1, -0.15281, 250, 2 }, /* Last Value */ + + /***************************************/ + /* PPO TEST - EXPONENTIAL - CLASSIC */ + /***************************************/ + /* !!! To be done. */ + + /*****************************************/ + /* PPO TEST - EXPONENTIAL - METASTOCK */ + /*****************************************/ + { 1, 1, 0, 251, 26, 12, TA_MAType_EMA, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, 0, -2.7083, 25, 252-25 }, /* First Value */ + { 0, 1, 0, 251, 12, 26, TA_MAType_EMA, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, 1, -2.7390, 25, 252-25 }, + { 0, 1, 0, 251, 12, 26, TA_MAType_EMA, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, 252-26, 0.83644, 25, 252-25 }, /* Last Value */ + + { 0, 1, 0, 1, 12, 26, TA_MAType_EMA, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, 0, 0, 0, 0 }, /* Out of range value */ + { 0, 1, 1, 1, 12, 26, TA_MAType_EMA, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, 0, 0, 0, 0 }, /* Out of range value */ + { 0, 1, 25, 25, 12, 26, TA_MAType_EMA, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, 0, -2.7083, 25, 1 }, + { 0, 1, 250, 251, 12, 26, TA_MAType_EMA, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, 1, 0.83644, 250, 2 }, /* Last Value */ + + { 0, 1, 251, 251, 12, 26, TA_MAType_EMA, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, 0, 0.83644, 251, 1 }, /* Last Value */ + { 0, 1, 25, 25, 12, 26, TA_MAType_EMA, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, 0, -2.7083, 25, 1 }, /* Just enough to calculate first. */ + { 0, 1, 26, 26, 12, 26, TA_MAType_EMA, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, 0, -2.7390, 26, 1 }, /* Just enough to calculate second. */ +}; + +#define NB_TEST (sizeof(tableTest)/sizeof(TA_Test)) + +/**** Global functions definitions. ****/ +ErrorNumber test_func_po( TA_History *history ) +{ + unsigned int i; + ErrorNumber retValue; + + for( i=0; i < NB_TEST; i++ ) + { + + if( (int)tableTest[i].expectedNbElement > (int)history->nbBars ) + { + printf( "TA_APO/TA_PPO Failed Bad Parameter for Test #%d (%d,%d)\n", + i, tableTest[i].expectedNbElement, history->nbBars ); + return TA_TESTUTIL_TFRR_BAD_PARAM; + } + + retValue = do_test( history, &tableTest[i] ); + if( retValue != 0 ) + { + printf( "TA_APO/TA_PPO Failed Test #%d (Code=%d)\n", i, retValue ); + return retValue; + } + } + + /* All test succeed. */ + return TA_TEST_PASS; +} + +/**** Local functions definitions. ****/ +static TA_RetCode rangeTestFunction( TA_Integer startIdx, + TA_Integer endIdx, + TA_Real *outputBuffer, + TA_Integer *outputBufferInt, + TA_Integer *outBegIdx, + TA_Integer *outNbElement, + TA_Integer *lookback, + void *opaqueData, + unsigned int outputNb, + unsigned int *isOutputInteger ) +{ + TA_RetCode retCode; + TA_RangeTestParam *testParam; + + (void)outputNb; + (void)outputBufferInt; + + *isOutputInteger = 0; + + testParam = (TA_RangeTestParam *)opaqueData; + + if( testParam->test->doPercentage ) + { + retCode = TA_PPO( startIdx, + endIdx, + testParam->close, + testParam->test->optInFastPeriod, + testParam->test->optInSlowPeriod, + (TA_MAType)testParam->test->optInMethod_2, + outBegIdx, + outNbElement, + outputBuffer ); + + *lookback = TA_PPO_Lookback( testParam->test->optInFastPeriod, + testParam->test->optInSlowPeriod, + (TA_MAType)testParam->test->optInMethod_2 ); + } + else + { + retCode = TA_APO( startIdx, + endIdx, + testParam->close, + testParam->test->optInFastPeriod, + testParam->test->optInSlowPeriod, + (TA_MAType)testParam->test->optInMethod_2, + outBegIdx, + outNbElement, + outputBuffer ); + + + *lookback = TA_APO_Lookback( testParam->test->optInFastPeriod, + testParam->test->optInSlowPeriod, + (TA_MAType)testParam->test->optInMethod_2 ); + } + + return retCode; +} + + +static ErrorNumber do_test( const TA_History *history, + const TA_Test *test ) +{ + TA_RetCode retCode; + ErrorNumber errNb; + TA_Integer outBegIdx; + TA_Integer outNbElement; + + TA_RangeTestParam testParam; + + /* Set to NAN all the elements of the gBuffers. */ + clearAllBuffers(); + + TA_SetCompatibility( (TA_Compatibility)test->compatibility ); + + /* Build the input. */ + setInputBuffer( 0, history->close, history->nbBars ); + setInputBuffer( 1, history->close, history->nbBars ); + + TA_SetUnstablePeriod( TA_FUNC_UNST_EMA, 0 ); + + /* Make a simple first call. */ + if( test->doPercentage ) + { + retCode = TA_PPO( test->startIdx, + test->endIdx, + gBuffer[0].in, + test->optInFastPeriod, + test->optInSlowPeriod, + (TA_MAType)test->optInMethod_2, + &outBegIdx, + &outNbElement, + gBuffer[0].out0 ); + } + else + { + retCode = TA_APO( test->startIdx, + test->endIdx, + gBuffer[0].in, + test->optInFastPeriod, + test->optInSlowPeriod, + (TA_MAType)test->optInMethod_2, + &outBegIdx, + &outNbElement, + gBuffer[0].out0 ); + } + + errNb = checkDataSame( gBuffer[0].in, history->close, history->nbBars ); + if( errNb != TA_TEST_PASS ) + return errNb; + + errNb = checkExpectedValue( gBuffer[0].out0, + retCode, test->expectedRetCode, + outBegIdx, test->expectedBegIdx, + outNbElement, test->expectedNbElement, + test->oneOfTheExpectedOutReal, + test->oneOfTheExpectedOutRealIndex ); + if( errNb != TA_TEST_PASS ) + return errNb; + + outBegIdx = outNbElement = 0; + + /* Make another call where the input and the output are the + * same buffer. + */ + if( test->doPercentage ) + { + retCode = TA_PPO( test->startIdx, + test->endIdx, + gBuffer[1].in, + test->optInFastPeriod, + test->optInSlowPeriod, + (TA_MAType)test->optInMethod_2, + &outBegIdx, + &outNbElement, + gBuffer[1].in ); + } + else + { + retCode = TA_APO( test->startIdx, + test->endIdx, + gBuffer[1].in, + test->optInFastPeriod, + test->optInSlowPeriod, + (TA_MAType)test->optInMethod_2, + &outBegIdx, + &outNbElement, + gBuffer[1].in ); + } + + /* The previous call should have the same output + * as this call. + * + * checkSameContent verify that all value different than NAN in + * the first parameter is identical in the second parameter. + */ + errNb = checkSameContent( gBuffer[0].out0, gBuffer[1].in ); + if( errNb != TA_TEST_PASS ) + return errNb; + + errNb = checkExpectedValue( gBuffer[1].in, + retCode, test->expectedRetCode, + outBegIdx, test->expectedBegIdx, + outNbElement, test->expectedNbElement, + test->oneOfTheExpectedOutReal, + test->oneOfTheExpectedOutRealIndex ); + if( errNb != TA_TEST_PASS ) + return errNb; + + /* Do a systematic test of most of the + * possible startIdx/endIdx range. + */ + testParam.test = test; + testParam.close = history->close; + + if( test->doRangeTestFlag ) + { + + if( test->optInMethod_2 == TA_MAType_EMA ) + { + errNb = doRangeTest( rangeTestFunction, + TA_FUNC_UNST_EMA, + (void *)&testParam, 1, 0 ); + if( errNb != TA_TEST_PASS ) + return errNb; + } + else + { + errNb = doRangeTest( rangeTestFunction, + TA_FUNC_UNST_NONE, + (void *)&testParam, 1, 0 ); + if( errNb != TA_TEST_PASS ) + return errNb; + } + } + + return TA_TEST_PASS; +} + diff --git a/src/tools/ta_regtest/ta_test_func/test_rsi.c b/src/tools/ta_regtest/ta_test_func/test_rsi.c new file mode 100644 index 000000000..4aabadd55 --- /dev/null +++ b/src/tools/ta_regtest/ta_test_func/test_rsi.c @@ -0,0 +1,507 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * MF Mario Fortier + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 112400 MF First version. + * 112605 MF Add CMO test. + */ + +/* Description: + * Test RSI/CMO function. + */ + +/**** Headers ****/ +#include +#include + +#include "ta_test_priv.h" +#include "ta_test_func.h" +#include "ta_utility.h" + +/**** External functions declarations. ****/ +/* None */ + +/**** External variables declarations. ****/ +/* None */ + +/**** Global variables definitions. ****/ +/* None */ + +/**** Local declarations. ****/ +typedef enum { +TA_RSI_TEST, +TA_CMO_TEST +} TA_TestId; + +typedef struct +{ + TA_Integer doRangeTestFlag; + + TA_TestId theFunction; + + TA_Integer unstablePeriod; + + TA_Integer startIdx; + TA_Integer endIdx; + + TA_Integer optInTimePeriod; + TA_Integer compatibility; + + TA_RetCode expectedRetCode; + + TA_Integer oneOfTheExpectedOutRealIndex0; + TA_Real oneOfTheExpectedOutReal0; + + TA_Integer expectedBegIdx; + TA_Integer expectedNbElement; +} TA_Test; + +typedef struct +{ + const TA_Test *test; + const TA_Real *close; +} TA_RangeTestParam; + +/**** Local functions declarations. ****/ +static ErrorNumber do_test( const TA_History *history, + const TA_Test *test ); + +/**** Local variables definitions. ****/ + +static TA_Test tableTest[] = +{ + /**********************/ + /* RSI TEST */ + /**********************/ + { 1, TA_RSI_TEST, 0, 0, 251, 14, TA_COMPATIBILITY_DEFAULT, TA_SUCCESS, 0, 49.14, 14, 252-14 }, /* First Value */ + { 0, TA_RSI_TEST, 0, 0, 251, 14, TA_COMPATIBILITY_DEFAULT, TA_SUCCESS, 1, 52.32, 14, 252-14 }, + { 0, TA_RSI_TEST, 0, 0, 251, 14, TA_COMPATIBILITY_DEFAULT, TA_SUCCESS, 2, 46.07, 14, 252-14 }, + { 0, TA_RSI_TEST, 0, 0, 251, 14, TA_COMPATIBILITY_DEFAULT, TA_SUCCESS, 252-15, 49.63, 14, 252-14 }, /* Last Value */ + + /* No output value. */ + { 0, TA_RSI_TEST, 0, 1, 1, 14, TA_COMPATIBILITY_DEFAULT, TA_SUCCESS, 0, 0, 0, 0}, + + /* One value tests. */ + { 0, TA_RSI_TEST, 0, 14, 14, 14, TA_COMPATIBILITY_DEFAULT, TA_SUCCESS, 0, 49.14, 14, 1}, + + /* Index too low test. */ + { 0, TA_RSI_TEST, 0, 0, 15, 14, TA_COMPATIBILITY_DEFAULT, TA_SUCCESS, 0, 49.14, 14, 2}, + { 0, TA_RSI_TEST, 0, 1, 15, 14, TA_COMPATIBILITY_DEFAULT, TA_SUCCESS, 0, 49.14, 14, 2}, + { 0, TA_RSI_TEST, 0, 2, 16, 14, TA_COMPATIBILITY_DEFAULT, TA_SUCCESS, 0, 49.14, 14, 3}, + { 0, TA_RSI_TEST, 0, 2, 16, 14, TA_COMPATIBILITY_DEFAULT, TA_SUCCESS, 1, 52.32, 14, 3}, + { 0, TA_RSI_TEST, 0, 2, 16, 14, TA_COMPATIBILITY_DEFAULT, TA_SUCCESS, 2, 46.07, 14, 3}, + { 0, TA_RSI_TEST, 0, 0, 14, 14, TA_COMPATIBILITY_DEFAULT, TA_SUCCESS, 0, 49.14, 14, 1}, + { 0, TA_RSI_TEST, 0, 0, 13, 14, TA_COMPATIBILITY_DEFAULT, TA_SUCCESS, 0, 49.14, 14, 0}, + + /* Test with 1 unstable price bar. Test for period 1, 2, 14 */ + { 0, TA_RSI_TEST, 1, 0, 251, 14, TA_COMPATIBILITY_DEFAULT, TA_SUCCESS, 0, 52.32, 15, 252-(14+1) }, + { 0, TA_RSI_TEST, 1, 0, 251, 14, TA_COMPATIBILITY_DEFAULT, TA_SUCCESS, 1, 46.07, 15, 252-(14+1) }, + { 0, TA_RSI_TEST, 1, 0, 251, 14, TA_COMPATIBILITY_DEFAULT, TA_SUCCESS, 252-(15+1), 49.63, 15, 252-(14+1) }, /* Last Value */ + + /* Test with 2 unstable price bar. Test for period 1, 2, 14 */ + { 0, TA_RSI_TEST, 2, 0, 251, 14, TA_COMPATIBILITY_DEFAULT, TA_SUCCESS, 0, 46.07, 16, 252-(14+2) }, + { 0, TA_RSI_TEST, 2, 0, 251, 14, TA_COMPATIBILITY_DEFAULT, TA_SUCCESS, 252-(15+2), 49.63, 16, 252-(14+2) }, /* Last Value */ + + + /**********************/ + /* RSI Metastock TEST */ + /**********************/ + { 1, TA_RSI_TEST, 0, 0, 251, 14, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, 0, 47.11, 13, 252-13 }, /* First Value */ + { 0, TA_RSI_TEST, 0, 0, 251, 14, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, 1, 49.14, 13, 252-13 }, + { 0, TA_RSI_TEST, 0, 0, 251, 14, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, 2, 52.32, 13, 252-13 }, + { 0, TA_RSI_TEST, 0, 0, 251, 14, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, 3, 46.07, 13, 252-13 }, + { 0, TA_RSI_TEST, 0, 0, 251, 14, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, 252-14, 49.63, 13, 252-13 }, /* Last Value */ + + /* No output value. */ + { 0, TA_RSI_TEST, 0, 1, 1, 14, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, 0, 0, 0, 0}, + + /* One value tests. */ + { 0, TA_RSI_TEST, 0, 13, 13, 14, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, 0, 47.11, 13, 1}, + { 0, TA_RSI_TEST, 0, 13, 13, 14, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, 0, 47.11, 13, 1}, + + /* Index too low test. */ + { 0, TA_RSI_TEST, 0, 0, 15, 14, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, 0, 47.11, 13, 3}, + { 0, TA_RSI_TEST, 0, 1, 15, 14, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, 0, 47.11, 13, 3}, + { 0, TA_RSI_TEST, 0, 2, 16, 14, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, 0, 47.11, 13, 4}, + { 0, TA_RSI_TEST, 0, 2, 16, 14, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, 1, 49.14, 13, 4}, + { 0, TA_RSI_TEST, 0, 2, 16, 14, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, 2, 52.32, 13, 4}, + { 0, TA_RSI_TEST, 0, 0, 14, 14, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, 0, 47.11, 13, 2}, + { 0, TA_RSI_TEST, 0, 0, 13, 14, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, 0, 47.11, 13, 1}, + { 0, TA_RSI_TEST, 0, 0, 12, 14, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, 0, 47.11, 13, 0}, + + /* Test with 1 unstable price bar. Test for period 1, 2, 14 */ + { 0, TA_RSI_TEST, 1, 0, 251, 14, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, 0, 49.14, 14, 252-(13+1) }, + { 0, TA_RSI_TEST, 1, 0, 251, 14, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, 1, 52.32, 14, 252-(13+1) }, + { 0, TA_RSI_TEST, 1, 0, 251, 14, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, 252-(14+1), 49.63, 14, 252-(13+1) }, /* Last Value */ + + /* Test with 2 unstable price bar. Test for period 1, 2, 14 */ + { 0, TA_RSI_TEST, 2, 0, 251, 14, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, 0, 52.32, 15, 252-(13+2) }, + { 0, TA_RSI_TEST, 2, 0, 251, 14, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, 252-(14+2), 49.63, 15, 252-(13+2) }, /* Last Value */ + + /**********************/ + /* CMO TEST */ + /**********************/ + { 1, TA_CMO_TEST, 0, 0, 251, 14, TA_COMPATIBILITY_DEFAULT, TA_SUCCESS, 0, -1.70, 14, 252-14 }, + { 1, TA_CMO_TEST, 0, 0, 251, 14, TA_COMPATIBILITY_METASTOCK, TA_SUCCESS, 0, -5.76, 13, 252-13 }, + +}; + +#define NB_TEST (sizeof(tableTest)/sizeof(TA_Test)) + +/**** Global functions definitions. ****/ +ErrorNumber test_func_rsi( TA_History *history ) +{ + unsigned int i; + ErrorNumber retValue; + + /* Re-initialize all the unstable period to zero. */ + TA_SetUnstablePeriod( TA_FUNC_UNST_ALL, 0 ); + + for( i=0; i < NB_TEST; i++ ) + { + if( (int)tableTest[i].expectedNbElement > (int)history->nbBars ) + { + printf( "%s Failed Bad Parameter for Test #%d (%d,%d)\n", __FILE__, + i, tableTest[i].expectedNbElement, history->nbBars ); + return TA_TESTUTIL_TFRR_BAD_PARAM; + } + + retValue = do_test( history, &tableTest[i] ); + if( retValue != 0 ) + { + printf( "%s Failed Test #%d (Code=%d)\n", __FILE__, + i, retValue ); + return retValue; + } + } + + /* Re-initialize all the unstable period to zero. */ + TA_SetUnstablePeriod( TA_FUNC_UNST_ALL, 0 ); + + /* All test succeed. */ + return TA_TEST_PASS; +} + +/**** Local functions definitions. ****/ +static TA_RetCode rangeTestFunction( TA_Integer startIdx, + TA_Integer endIdx, + TA_Real *outputBuffer, + TA_Integer *outputBufferInt, + TA_Integer *outBegIdx, + TA_Integer *outNbElement, + TA_Integer *lookback, + void *opaqueData, + unsigned int outputNb, + unsigned int *isOutputInteger ) +{ + TA_RetCode retCode; + TA_RangeTestParam *testParam; + + (void)outputNb; + (void)outputBufferInt; + + *isOutputInteger = 0; + + testParam = (TA_RangeTestParam *)opaqueData; + + + switch( testParam->test->theFunction ) + { + case TA_RSI_TEST: + retCode = TA_RSI( startIdx, + endIdx, + testParam->close, + testParam->test->optInTimePeriod, + outBegIdx, + outNbElement, + outputBuffer ); + + *lookback = TA_RSI_Lookback( testParam->test->optInTimePeriod); + break; + case TA_CMO_TEST: + retCode = TA_CMO( startIdx, + endIdx, + testParam->close, + testParam->test->optInTimePeriod, + outBegIdx, + outNbElement, + outputBuffer ); + + *lookback = TA_CMO_Lookback( testParam->test->optInTimePeriod); + break; + default: + retCode = TA_INTERNAL_ERROR(177); + } + + return retCode; +} + +static ErrorNumber do_test( const TA_History *history, + const TA_Test *test ) +{ + TA_RetCode retCode; + ErrorNumber errNb; + TA_Integer outBegIdx; + TA_Integer outNbElement; + TA_RangeTestParam testParam; + const TA_FuncHandle *funcHandle; + const TA_FuncInfo *funcInfo; + TA_ParamHolder *params; + + retCode = TA_SUCCESS; + + /* Set to NAN all the elements of the gBuffers. */ + clearAllBuffers(); + + TA_SetCompatibility( (TA_Compatibility)test->compatibility ); + + /* Build the input. */ + setInputBuffer( 0, history->close, history->nbBars ); + setInputBuffer( 1, history->close, history->nbBars ); + + /* Set the unstable period requested for that test. */ + switch( test->theFunction ) + { + case TA_RSI_TEST: + retCode = TA_SetUnstablePeriod( TA_FUNC_UNST_RSI, test->unstablePeriod ); + break; + case TA_CMO_TEST: + retCode = TA_SetUnstablePeriod( TA_FUNC_UNST_CMO, test->unstablePeriod ); + break; + } + + if( retCode != TA_SUCCESS ) + return TA_TEST_TFRR_SETUNSTABLE_PERIOD_FAIL; + + /* Make a simple first call. */ + switch( test->theFunction ) + { + case TA_RSI_TEST: + retCode = TA_RSI( test->startIdx, + test->endIdx, + gBuffer[0].in, + test->optInTimePeriod, + &outBegIdx, + &outNbElement, + gBuffer[0].out0 ); + break; + case TA_CMO_TEST: + retCode = TA_CMO( test->startIdx, + test->endIdx, + gBuffer[0].in, + test->optInTimePeriod, + &outBegIdx, + &outNbElement, + gBuffer[0].out0 ); + break; + default: + retCode = TA_INTERNAL_ERROR(178); + } + + errNb = checkDataSame( gBuffer[0].in, history->close,history->nbBars ); + if( errNb != TA_TEST_PASS ) + return errNb; + + CHECK_EXPECTED_VALUE( gBuffer[0].out0, 0 ); + + outBegIdx = outNbElement = 0; + + /* Make another call where the input and the output are the + * same buffer. + */ + switch( test->theFunction ) + { + case TA_RSI_TEST: + retCode = TA_RSI( test->startIdx, + test->endIdx, + gBuffer[1].in, + test->optInTimePeriod, + &outBegIdx, + &outNbElement, + gBuffer[1].in ); + break; + case TA_CMO_TEST: + retCode = TA_CMO( test->startIdx, + test->endIdx, + gBuffer[1].in, + test->optInTimePeriod, + &outBegIdx, + &outNbElement, + gBuffer[1].in ); + break; + default: + retCode = TA_INTERNAL_ERROR(179); + } + + + /* The previous call should have the same output as this call. + * + * checkSameContent verify that all value different than NAN in + * the first parameter is identical in the second parameter. + */ + errNb = checkSameContent( gBuffer[0].out0, gBuffer[1].in ); + if( errNb != TA_TEST_PASS ) + return errNb; + + CHECK_EXPECTED_VALUE( gBuffer[1].in, 0 ); + + if( errNb != TA_TEST_PASS ) + return errNb; + + /* Make a call using the abstract interface. */ + switch( test->theFunction ) + { + case TA_RSI_TEST: + retCode = TA_GetFuncHandle( "RSI", &funcHandle ); + break; + case TA_CMO_TEST: + retCode = TA_GetFuncHandle( "CMO", &funcHandle ); + break; + default: + retCode = TA_INTERNAL_ERROR(180); + } + + if( retCode != TA_SUCCESS ) + { + printf( "Fail: TA_GetFuncHandle with retCode = %d\n", retCode ); + return TA_ABS_TST_FAIL_GETFUNCHANDLE; + } + + retCode = TA_GetFuncInfo( funcHandle, &funcInfo ); + if( retCode != TA_SUCCESS ) + { + printf( "Fail: TA_GetFuncInfo with retCode = %d\n", retCode ); + return TA_ABS_TST_FAIL_GETFUNCINFO; + } + + retCode = TA_ParamHolderAlloc( funcHandle, ¶ms ); + if( retCode != TA_SUCCESS ) + { + printf( "Fail: TA_ParamHolderAlloc with retCode = %d\n", retCode ); + return TA_ABS_TST_FAIL_PARAMHOLDERALLOC; + } + + retCode = TA_SetInputParamRealPtr( params, 0, gBuffer[0].in ); + if( retCode != TA_SUCCESS ) + { + printf( "Fail: TA_SetInputParamRealPtr with retCode = %d\n", retCode ); + return TA_ABS_TST_FAIL_PARAMREALPTR; + } + + retCode = TA_SetOptInputParamInteger( params, 0, test->optInTimePeriod ); + if( retCode != TA_SUCCESS ) + { + printf( "Fail: TA_SetOptInputParamInteger with retCode = %d\n", retCode ); + return TA_ABS_TST_FAIL_OPTINPUTPARAMINTEGER; + } + + retCode = TA_SetOutputParamRealPtr( params, 0, gBuffer[1].out0 ); + if( retCode != TA_SUCCESS ) + { + printf( "Fail: TA_SetOutputParamRealPtr with retCode = %d\n", retCode ); + return TA_ABS_TST_FAIL_SETOUTPUTPARAMREALPTR; + } + + retCode = TA_CallFunc( params, + test->startIdx, + test->endIdx, + &outBegIdx, + &outNbElement ); + + if( retCode != TA_SUCCESS ) + { + printf( "Fail: TA_CallFunc with retCode = %d\n", retCode ); + return TA_ABS_TST_FAIL_CALLFUNC; + } + + retCode = TA_ParamHolderFree( params ); + if( retCode != TA_SUCCESS ) + { + printf( "Fail: TA_GetFuncHandle with retCode = %d\n", retCode ); + return TA_ABS_TST_FAIL_PARAMHOLDERFREE; + } + + + /* The previous call should have the same output as this call. + * + * checkSameContent verify that all value different than NAN in + * the first parameter is identical in the second parameter. + */ + errNb = checkSameContent( gBuffer[0].out0, gBuffer[1].out0 ); + if( errNb != TA_TEST_PASS ) + return errNb; + + CHECK_EXPECTED_VALUE( gBuffer[1].out0, 0 ); + + if( errNb != TA_TEST_PASS ) + return errNb; + + /* Do a systematic test of most of the + * possible startIdx/endIdx range. + */ + testParam.test = test; + testParam.close = history->close; + + if( test->doRangeTestFlag ) + { + switch( test->theFunction ) + { + case TA_RSI_TEST: + errNb = doRangeTest( rangeTestFunction, + TA_FUNC_UNST_RSI, + (void *)&testParam, 1, 0 ); + break; + case TA_CMO_TEST: + errNb = doRangeTest( rangeTestFunction, + TA_FUNC_UNST_CMO, + (void *)&testParam, 1, 0 ); + break; + } + + if( errNb != TA_TEST_PASS ) + return errNb; + } + + return TA_TEST_PASS; +} + diff --git a/src/tools/ta_regtest/ta_test_func/test_sar.c b/src/tools/ta_regtest/ta_test_func/test_sar.c new file mode 100644 index 000000000..6df057073 --- /dev/null +++ b/src/tools/ta_regtest/ta_test_func/test_sar.c @@ -0,0 +1,301 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * MF Mario Fortier + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 112400 MF First version. + * + */ + +/* Description: + * Test Parabolic SAR function using the example given + * in Wilder's book. + */ + +/**** Headers ****/ +#include +#include + +#include "ta_test_priv.h" +#include "ta_test_func.h" +#include "ta_utility.h" + +/**** External functions declarations. ****/ +/* None */ + +/**** External variables declarations. ****/ +/* None */ + +/**** Global variables definitions. ****/ +/* None */ + +/**** Local declarations. ****/ +typedef struct +{ + TA_Integer useWilderData; + TA_Integer startIdx; + TA_Integer endIdx; + + TA_Real optInAcceleration; + TA_Real optInMaximum; + + TA_RetCode expectedRetCode; + + TA_Integer oneOfTheExpectedOutRealIndex0; + TA_Real oneOfTheExpectedOutReal0; + + TA_Integer expectedBegIdx; + TA_Integer expectedNbElement; +} TA_Test; + +typedef struct +{ + const TA_Test *test; + const TA_Real *close; +} TA_RangeTestParam; + +/**** Local functions declarations. ****/ +static ErrorNumber do_test( const TA_History *history, + const TA_Test *test ); + +/**** Local variables definitions. ****/ + +static TA_Real wilderHigh[] = +{ +51.12, +52.35,52.1,51.8,52.1,52.5,52.8,52.5,53.5,53.5,53.8,54.2,53.4,53.5, +54.4,55.2,55.7,57,57.5,58,57.7,58,57.5,57,56.7,57.5, +56.70,56.00,56.20,54.80,55.50,54.70,54.00,52.50,51.00,51.50,51.70,53.00 +}; + +static TA_Real wilderLow[] = +{ +50.0, +51.5,51,50.5,51.25,51.7,51.85,51.5,52.3,52.5,53,53.5,52.5,52.1,53, +54,55,56,56.5,57,56.5,57.3,56.7,56.3,56.2,56, +55.50,55.00,54.90,54.00,54.50,53.80,53.00,51.50,50.00,50.50,50.20,51.50 +}; + +#define WILDER_NB_BAR (sizeof(wilderLow)/sizeof(TA_Real)) + +static TA_Test tableTest[] = +{ + /**************************************/ + /* SAR TEST WITH WILDER DATA */ + /**************************************/ + { 1, 0, (WILDER_NB_BAR-1), 0.02, 0.20, TA_SUCCESS, 0, 50.00, 1, (WILDER_NB_BAR-1) }, /* First Value */ + { 1, 0, (WILDER_NB_BAR-1), 0.02, 0.20, TA_SUCCESS, 1, 50.047, 1, (WILDER_NB_BAR-1) }, + { 1, 0, (WILDER_NB_BAR-1), 0.02, 0.20, TA_SUCCESS, 4, 50.182, 1, (WILDER_NB_BAR-1) }, + { 1, 0, (WILDER_NB_BAR-1), 0.02, 0.20, TA_SUCCESS, 35, 52.93, 1, (WILDER_NB_BAR-1) }, + { 1, 0, (WILDER_NB_BAR-1), 0.02, 0.20, TA_SUCCESS, 36, 50.00, 1, (WILDER_NB_BAR-1) } /* Last value */ +}; + +#define NB_TEST (sizeof(tableTest)/sizeof(TA_Test)) + +/**** Global functions definitions. ****/ +ErrorNumber test_func_sar( TA_History *history ) +{ + unsigned int i; + ErrorNumber retValue; + + /* Set all the unstable period to a weird value. This is to make sure + * that no unstable period affects the SAR. + */ + TA_SetUnstablePeriod( TA_FUNC_UNST_ALL, 124 ); + + for( i=0; i < NB_TEST; i++ ) + { + if( (int)tableTest[i].expectedNbElement > (int)history->nbBars ) + { + printf( "%s Failed Bad Parameter for Test #%d (%d,%d)\n", __FILE__, + i, tableTest[i].expectedNbElement, history->nbBars ); + return TA_TESTUTIL_TFRR_BAD_PARAM; + } + + retValue = do_test( history, &tableTest[i] ); + if( retValue != 0 ) + { + printf( "%s Failed Test #%d (Code=%d)\n", __FILE__, + i, retValue ); + return retValue; + } + } + + /* Re-initialize all the unstable period to zero. */ + TA_SetUnstablePeriod( TA_FUNC_UNST_ALL, 0 ); + + /* All test succeed. */ + return TA_TEST_PASS; +} + +/**** Local functions definitions. ****/ + +static ErrorNumber do_test( const TA_History *history, + const TA_Test *test ) +{ + TA_RetCode retCode; + ErrorNumber errNb; + TA_Integer outBegIdx; + TA_Integer outNbElement; + + const TA_Real *highPtr; + const TA_Real *lowPtr; + TA_Integer nbPriceBar; + + /* Set to NAN all the elements of the gBuffers. */ + clearAllBuffers(); + + /* Build the input. */ + if( test->useWilderData ) + { + highPtr = wilderHigh; + lowPtr = wilderLow; + nbPriceBar = WILDER_NB_BAR; + } + else + { + highPtr = history->high; + lowPtr = history->low; + nbPriceBar = history->nbBars; + } + + setInputBuffer( 0, highPtr, nbPriceBar ); + setInputBuffer( 1, lowPtr, nbPriceBar ); + + /* Make a simple first call. */ + retCode = TA_SAR( test->startIdx, + test->endIdx, + gBuffer[0].in, + gBuffer[1].in, + test->optInAcceleration, + test->optInMaximum, + &outBegIdx, + &outNbElement, + gBuffer[0].out0 ); + + errNb = checkDataSame( gBuffer[0].in, highPtr, nbPriceBar ); + if( errNb != TA_TEST_PASS ) + return errNb; + errNb = checkDataSame( gBuffer[1].in, lowPtr, nbPriceBar ); + if( errNb != TA_TEST_PASS ) + return errNb; + + CHECK_EXPECTED_VALUE( gBuffer[0].out0, 0 ); + + outBegIdx = outNbElement = 0; + + /* Make another call where the input and the output are the + * same buffer. + */ + retCode = TA_SAR( test->startIdx, + test->endIdx, + gBuffer[0].in, + gBuffer[1].in, + test->optInAcceleration, + test->optInMaximum, + &outBegIdx, + &outNbElement, + gBuffer[1].in ); + + /* The previous call should have the same output as this call. + * + * checkSameContent verify that all value different than NAN in + * the first parameter is identical in the second parameter. + */ + errNb = checkSameContent( gBuffer[0].out0, gBuffer[1].in ); + if( errNb != TA_TEST_PASS ) + return errNb; + + CHECK_EXPECTED_VALUE( gBuffer[1].in, 0 ); + + if( errNb != TA_TEST_PASS ) + return errNb; + + /* Make sure the other input is untouched. */ + errNb = checkDataSame( gBuffer[0].in, highPtr, nbPriceBar ); + if( errNb != TA_TEST_PASS ) + return errNb; + + /* Repeat that last test but with the first parameter this time. */ + + /* Set to NAN all the elements of the gBuffers. */ + clearAllBuffers(); + + /* Build the input. */ + setInputBuffer( 0, highPtr, nbPriceBar ); + setInputBuffer( 1, lowPtr, nbPriceBar ); + + /* Make another call where the input and the output are the + * same buffer. + */ + retCode = TA_SAR( test->startIdx, + test->endIdx, + gBuffer[0].in, + gBuffer[1].in, + test->optInAcceleration, + test->optInMaximum, + &outBegIdx, + &outNbElement, + gBuffer[0].in ); + + /* The previous call should have the same output as this call. + * + * checkSameContent verify that all value different than NAN in + * the first parameter is identical in the second parameter. + */ + errNb = checkSameContent( gBuffer[0].out0, gBuffer[0].in ); + if( errNb != TA_TEST_PASS ) + return errNb; + + CHECK_EXPECTED_VALUE( gBuffer[0].in, 0 ); + + if( errNb != TA_TEST_PASS ) + return errNb; + + /* Make sure the other input is untouched. */ + errNb = checkDataSame( gBuffer[1].in, lowPtr, nbPriceBar); + if( errNb != TA_TEST_PASS ) + return errNb; + + return TA_TEST_PASS; +} + diff --git a/src/tools/ta_regtest/ta_test_func/test_stddev.c b/src/tools/ta_regtest/ta_test_func/test_stddev.c new file mode 100644 index 000000000..ad33f3a47 --- /dev/null +++ b/src/tools/ta_regtest/ta_test_func/test_stddev.c @@ -0,0 +1,265 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * MF Mario Fortier + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 112400 MF First version. + * + */ + +/* Description: + * Test STDDEV function. This tests indirectly the VAR function. + */ + +/**** Headers ****/ +#include +#include + +#include "ta_test_priv.h" +#include "ta_test_func.h" +#include "ta_utility.h" + +/**** External functions declarations. ****/ +/* None */ + +/**** External variables declarations. ****/ +/* None */ + +/**** Global variables definitions. ****/ +/* None */ + +/**** Local declarations. ****/ +typedef struct +{ + TA_Integer doRangeTestFlag; /* One will do a call to doRangeTest */ + + TA_Integer startIdx; + TA_Integer endIdx; + + TA_Integer optInTimePeriod; + TA_Real optInNbDeviation_1; + + TA_RetCode expectedRetCode; + + TA_Integer oneOfTheExpectedOutRealIndex0; + TA_Real oneOfTheExpectedOutReal0; + + TA_Integer expectedBegIdx; + TA_Integer expectedNbElement; +} TA_Test; + +typedef struct +{ + const TA_Test *test; + const TA_Real *close; +} TA_RangeTestParam; + +/**** Local functions declarations. ****/ +static ErrorNumber do_test( const TA_History *history, + const TA_Test *test ); + +/**** Local variables definitions. ****/ + +static TA_Test tableTest[] = +{ + /*************************/ + /* STDDEV TEST */ + /*************************/ + { 1, 0, 251, 5, 1.0, TA_SUCCESS, 0, 1.2856, 4, 252-4 }, /* First Value */ + { 0, 0, 251, 5, 1.0, TA_SUCCESS, 1, 0.4462, 4, 252-4 }, + { 0, 0, 251, 5, 1.0, TA_SUCCESS, 252-5, 0.7144, 4, 252-4 }, /* Last Value */ + + { 1, 0, 251, 5, 1.5, TA_SUCCESS, 0, 1.9285, 4, 252-4 }, /* First Value */ + { 0, 0, 251, 5, 1.5, TA_SUCCESS, 1, 0.66937, 4, 252-4 }, + { 0, 0, 251, 5, 1.5, TA_SUCCESS, 252-5, 1.075, 4, 252-4 } /* Last Value */ +}; + +#define NB_TEST (sizeof(tableTest)/sizeof(TA_Test)) + +/**** Global functions definitions. ****/ +ErrorNumber test_func_stddev( TA_History *history ) +{ + unsigned int i; + ErrorNumber retValue; + + for( i=0; i < NB_TEST; i++ ) + { + if( (int)tableTest[i].expectedNbElement > (int)history->nbBars ) + { + printf( "%s Failed Bad Parameter for Test #%d (%d,%d)\n", __FILE__, + i, tableTest[i].expectedNbElement, history->nbBars ); + return TA_TESTUTIL_TFRR_BAD_PARAM; + } + + retValue = do_test( history, &tableTest[i] ); + if( retValue != 0 ) + { + printf( "%s Failed Test #%d (Code=%d)\n", __FILE__, + i, retValue ); + return retValue; + } + } + + /* All test succeed. */ + return TA_TEST_PASS; +} + +/**** Local functions definitions. ****/ +static TA_RetCode rangeTestFunction( TA_Integer startIdx, + TA_Integer endIdx, + TA_Real *outputBuffer, + TA_Integer *outputBufferInt, + TA_Integer *outBegIdx, + TA_Integer *outNbElement, + TA_Integer *lookback, + void *opaqueData, + unsigned int outputNb, + unsigned int *isOutputInteger ) +{ + TA_RetCode retCode; + TA_RangeTestParam *testParam; + + (void)outputNb; + (void)outputBufferInt; + + *isOutputInteger = 0; + + testParam = (TA_RangeTestParam *)opaqueData; + + retCode = TA_STDDEV( + startIdx, + endIdx, + testParam->close, + testParam->test->optInTimePeriod, + testParam->test->optInNbDeviation_1, + outBegIdx, + outNbElement, + outputBuffer ); + + + *lookback = TA_STDDEV_Lookback( testParam->test->optInTimePeriod, + testParam->test->optInNbDeviation_1 ); + + return retCode; +} + +static ErrorNumber do_test( const TA_History *history, + const TA_Test *test ) +{ + TA_RetCode retCode; + ErrorNumber errNb; + TA_Integer outBegIdx; + TA_Integer outNbElement; + TA_RangeTestParam testParam; + + /* Set to NAN all the elements of the gBuffers. */ + clearAllBuffers(); + + /* Build the input. */ + setInputBuffer( 0, history->close, history->nbBars ); + setInputBuffer( 1, history->close, history->nbBars ); + + /* Make a simple first call. */ + retCode = TA_STDDEV( + test->startIdx, + test->endIdx, + gBuffer[0].in, + test->optInTimePeriod, + test->optInNbDeviation_1, + &outBegIdx, + &outNbElement, + gBuffer[0].out0 ); + + errNb = checkDataSame( gBuffer[0].in, history->close,history->nbBars ); + if( errNb != TA_TEST_PASS ) + return errNb; + + CHECK_EXPECTED_VALUE( gBuffer[0].out0, 0 ); + + outBegIdx = outNbElement = 0; + + /* Make another call where the input and the output are the + * same buffer. + */ + retCode = TA_STDDEV( + test->startIdx, + test->endIdx, + gBuffer[1].in, + test->optInTimePeriod, + test->optInNbDeviation_1, + &outBegIdx, + &outNbElement, + gBuffer[1].in ); + + /* The previous call should have the same output as this call. + * + * checkSameContent verify that all value different than NAN in + * the first parameter is identical in the second parameter. + */ + errNb = checkSameContent( gBuffer[0].out0, gBuffer[1].in ); + if( errNb != TA_TEST_PASS ) + return errNb; + + CHECK_EXPECTED_VALUE( gBuffer[1].in, 0 ); + + if( errNb != TA_TEST_PASS ) + return errNb; + + /* Do a systematic test of most of the + * possible startIdx/endIdx range. + */ + testParam.test = test; + testParam.close = history->close; + + if( test->doRangeTestFlag ) + { + errNb = doRangeTest( + rangeTestFunction, + TA_FUNC_UNST_NONE, + (void *)&testParam, 1, 0 ); + if( errNb != TA_TEST_PASS ) + return errNb; + } + + return TA_TEST_PASS; +} + diff --git a/src/tools/ta_regtest/ta_test_func/test_stoch.c b/src/tools/ta_regtest/ta_test_func/test_stoch.c new file mode 100644 index 000000000..f8d01aa92 --- /dev/null +++ b/src/tools/ta_regtest/ta_test_func/test_stoch.c @@ -0,0 +1,794 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * MF Mario Fortier + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 122101 MF First version. + * 111603 MF Add test of TA_STOCHRSI + */ + +/* Description: + * Test the Stochastic function. + */ + +/**** Headers ****/ +#include +#include + +#include "ta_test_priv.h" +#include "ta_test_func.h" +#include "ta_utility.h" +#include "ta_memory.h" + +/**** External functions declarations. ****/ +/* None */ + +/**** External variables declarations. ****/ +/* None */ + +/**** Global variables definitions. ****/ +/* None */ + +/**** Local declarations. ****/ +typedef enum +{ + TEST_STOCH, + TEST_STOCHF, + TEST_STOCHRSI +} TestId; + +typedef struct +{ + TestId testId; + + TA_Integer doRangeTestFlag; /* One will do a call to doRangeTest */ + + TA_Integer unstablePeriod; + + TA_Integer startIdx; + TA_Integer endIdx; + + TA_Integer optInPeriod_0; + TA_Integer optInPeriod_1; + TA_Integer optInMAType_1; + TA_Integer optInPeriod_2; + TA_Integer optInMAType_2; + + TA_RetCode expectedRetCode; + + TA_Integer expectedBegIdx; + TA_Integer expectedNbElement; + + TA_Integer oneOfTheExpectedOutRealIndex0; + TA_Real oneOfTheExpectedOutReal0; + + TA_Integer oneOfTheExpectedOutRealIndex1; + TA_Real oneOfTheExpectedOutReal1; +} TA_Test; + +typedef struct +{ + const TA_Test *test; + const TA_Real *high; + const TA_Real *low; + const TA_Real *close; +} TA_RangeTestParam; + +/**** Local functions declarations. ****/ +static ErrorNumber do_test( const TA_History *history, + const TA_Test *test ); + +static TA_RetCode referenceStoch( TA_Integer startIdx, + TA_Integer endIdx, + const TA_Real inHigh[], + const TA_Real inLow[], + const TA_Real inClose[], + TA_Integer optInPeriod_0, /* From 1 to TA_INTEGER_MAX */ + TA_Integer optInPeriod_1, /* From 1 to TA_INTEGER_MAX */ + TA_Integer optInMAType_1, + TA_Integer optInPeriod_2, /* From 1 to TA_INTEGER_MAX */ + TA_Integer optInMAType_2, + TA_Integer *outBegIdx, + TA_Integer *outNbElement, + TA_Real outSlowK_0[], + TA_Real outSlowD_1[] ); + +/**** Local variables definitions. ****/ + +static TA_Test tableTest[] = +{ + /**************/ + /* STOCH TEST */ + /**************/ + { TEST_STOCH, 1, 0, 9, 9, 5, 3, TA_MAType_SMA, 4, TA_MAType_SMA, TA_SUCCESS, 9, 1, + 0, 38.139, + 0, 36.725 }, /* Test one value */ + + + { TEST_STOCH, 0, 0, 0, 251, 5, 3, TA_MAType_SMA, 3, TA_MAType_SMA, TA_SUCCESS, 8, 252-8, + 0, 24.0128, + 0, 36.254, }, /* First Value */ + + { TEST_STOCH, 0, 0, 0, 251, 5, 3, TA_MAType_SMA, 4, TA_MAType_SMA, TA_SUCCESS, 9, 252-9, + 252-10, 30.194, + 252-10, 46.641, }, /* Last Value */ + + { TEST_STOCH, 0, 0, 0, 251, 5, 3, TA_MAType_SMA, 3, TA_MAType_SMA, TA_SUCCESS, 8, 252-8, + 252-9, 30.194, + 252-9, 43.69, }, /* Last Value */ + + /*****************/ + /* STOCHRSI TEST */ + /*****************/ + { TEST_STOCHRSI, 0, 0, 27, 27, 14, 14, -1, 1, TA_MAType_SMA, TA_SUCCESS, 27, 1, + 0, 94.156709, + 0, 94.156709 }, /* Test one Value */ + + { TEST_STOCHRSI, 1, 0, 0, 251, 14, 14, -1, 1, TA_MAType_SMA, TA_SUCCESS, 27, 252-27, + 0, 94.156709, + 0, 94.156709 }, /* First Value */ + + { TEST_STOCHRSI, 0, 0, 0, 251, 14, 14, -1, 1, TA_MAType_SMA, TA_SUCCESS, 27, 252-27, + 251-27, 0.0, + 251-27, 0.0 }, /* Last Value */ + + { TEST_STOCHRSI, 0, 0, 0, 251, 14, 45, -1, 1, TA_MAType_SMA, TA_SUCCESS, 58, 252-58, + 0, 79.729186, + 0, 79.729186 }, /* First Value */ + + { TEST_STOCHRSI, 0, 0, 0, 251, 14, 45, -1, 1, TA_MAType_SMA, TA_SUCCESS, 58, 252-58, + 251-58, 48.1550743, + 251-58, 48.1550743 }, /* Last Value */ + + + { TEST_STOCHRSI, 1, 0, 0, 251, 11, 13, -1, 16, TA_MAType_SMA, TA_SUCCESS, 38, 252-38, + 0, 5.25947, + 0, 57.1711}, /* First Value */ + + { TEST_STOCHRSI, 0, 0, 0, 251, 11, 13, -1, 16, TA_MAType_SMA, TA_SUCCESS, 38, 252-38, + 251-38, 0.0, + 251-38, 15.7303 }, /* Last Value */ + + /* More test needed!!! */ +}; + +#define NB_TEST (sizeof(tableTest)/sizeof(TA_Test)) + +/**** Global functions definitions. ****/ +ErrorNumber test_func_stoch( TA_History *history ) +{ + unsigned int i; + ErrorNumber retValue; + + /* Re-initialize all the unstable period to zero. */ + TA_SetUnstablePeriod( TA_FUNC_UNST_ALL, 0 ); + + for( i=0; i < NB_TEST; i++ ) + { + if( (int)tableTest[i].expectedNbElement > (int)history->nbBars ) + { + printf( "%s Failed Bad Parameter for Test #%d (%d,%d)\n", __FILE__, + i, tableTest[i].expectedNbElement, history->nbBars ); + return TA_TESTUTIL_TFRR_BAD_PARAM; + } + + retValue = do_test( history, &tableTest[i] ); + if( retValue != 0 ) + { + printf( "%s Failed Test #%d (Code=%d)\n", __FILE__, + i, retValue ); + return retValue; + } + } + + /* Re-initialize all the unstable period to zero. */ + TA_SetUnstablePeriod( TA_FUNC_UNST_ALL, 0 ); + + /* All test succeed. */ + return TA_TEST_PASS; +} + +/**** Local functions definitions. ****/ +static TA_RetCode rangeTestFunction( TA_Integer startIdx, + TA_Integer endIdx, + TA_Real *outputBuffer, + TA_Integer *outputBufferInt, + TA_Integer *outBegIdx, + TA_Integer *outNbElement, + TA_Integer *lookback, + void *opaqueData, + unsigned int outputNb, + unsigned int *isOutputInteger ) +{ + TA_RetCode retCode; + TA_RangeTestParam *testParam; + TA_Real *dummyOutput; + + (void)outputBufferInt; + + *isOutputInteger = 0; + + retCode = TA_NOT_SUPPORTED; + + testParam = (TA_RangeTestParam *)opaqueData; + + + dummyOutput = TA_Malloc( (endIdx-startIdx+1) * sizeof(TA_Real) ); + + switch( testParam->test->testId ) + { + case TEST_STOCH: + if( outputNb == 0 ) + { + retCode = TA_STOCH( startIdx, + endIdx, + testParam->high, + testParam->low, + testParam->close, + testParam->test->optInPeriod_0, + testParam->test->optInPeriod_1, + (TA_MAType)testParam->test->optInMAType_1, + testParam->test->optInPeriod_2, + (TA_MAType)testParam->test->optInMAType_2, + outBegIdx, outNbElement, + outputBuffer, + dummyOutput ); + + } + else + { + retCode = TA_STOCH( startIdx, + endIdx, + testParam->high, + testParam->low, + testParam->close, + testParam->test->optInPeriod_0, + testParam->test->optInPeriod_1, + (TA_MAType)testParam->test->optInMAType_1, + testParam->test->optInPeriod_2, + (TA_MAType)testParam->test->optInMAType_2, + outBegIdx, outNbElement, + dummyOutput, + outputBuffer ); + } + + *lookback = TA_STOCH_Lookback( testParam->test->optInPeriod_0, + testParam->test->optInPeriod_1, + (TA_MAType)testParam->test->optInMAType_1, + testParam->test->optInPeriod_2, + (TA_MAType)testParam->test->optInMAType_2 ); + break; + case TEST_STOCHF: + if( outputNb == 0 ) + { + retCode = TA_STOCHF( startIdx, + endIdx, + testParam->high, + testParam->low, + testParam->close, + testParam->test->optInPeriod_0, + testParam->test->optInPeriod_1, + (TA_MAType)testParam->test->optInMAType_1, + outBegIdx, outNbElement, + outputBuffer, + dummyOutput ); + + } + else + { + retCode = TA_STOCHF( startIdx, + endIdx, + testParam->high, + testParam->low, + testParam->close, + testParam->test->optInPeriod_0, + testParam->test->optInPeriod_1, + (TA_MAType)testParam->test->optInMAType_1, + outBegIdx, outNbElement, + dummyOutput, + outputBuffer ); + } + + *lookback = TA_STOCHF_Lookback( testParam->test->optInPeriod_0, + testParam->test->optInPeriod_1, + (TA_MAType)testParam->test->optInMAType_1 ); + break; + + case TEST_STOCHRSI: + if( outputNb == 0 ) + { + retCode = TA_STOCHRSI( startIdx, + endIdx, + testParam->close, + testParam->test->optInPeriod_0, + testParam->test->optInPeriod_1, + testParam->test->optInPeriod_2, + (TA_MAType)testParam->test->optInMAType_2, + outBegIdx, outNbElement, + outputBuffer, + dummyOutput ); + + } + else + { + retCode = TA_STOCHRSI( startIdx, + endIdx, + testParam->close, + testParam->test->optInPeriod_0, + testParam->test->optInPeriod_1, + testParam->test->optInPeriod_2, + (TA_MAType)testParam->test->optInMAType_2, + outBegIdx, outNbElement, + dummyOutput, + outputBuffer ); + } + + *lookback = TA_STOCHRSI_Lookback( testParam->test->optInPeriod_0, + testParam->test->optInPeriod_1, + testParam->test->optInPeriod_2, + (TA_MAType)testParam->test->optInMAType_2 ); + break; + } + + TA_Free( dummyOutput ); + + return retCode; +} + +static ErrorNumber do_test( const TA_History *history, + const TA_Test *test ) +{ + TA_RetCode retCode; + ErrorNumber errNb; + TA_Integer outBegIdx; + TA_Integer outNbElement; + TA_RangeTestParam testParam; + + retCode = TA_NOT_SUPPORTED; + + /* Set to NAN all the elements of the gBuffers. */ + clearAllBuffers(); + + /* Build the input. */ + setInputBuffer( 0, history->high, history->nbBars ); + setInputBuffer( 1, history->low, history->nbBars ); + setInputBuffer( 2, history->close, history->nbBars ); + + /* Re-initialize all the unstable period to zero. */ + TA_SetUnstablePeriod( TA_FUNC_UNST_ALL, 0 ); + + /* Set the unstable period requested for that test. */ + switch( test->optInMAType_1 ) + { + case TA_MAType_EMA: + retCode = TA_SetUnstablePeriod( TA_FUNC_UNST_EMA, test->unstablePeriod ); + if( retCode != TA_SUCCESS ) + return TA_TEST_TFRR_SETUNSTABLE_PERIOD_FAIL; + break; + default: + /* No unstable period for other methods. */ + break; + } + + /* Make a simple first call. */ + switch( test->testId ) + { + case TEST_STOCH: + retCode = TA_STOCH( test->startIdx, + test->endIdx, + gBuffer[0].in, + gBuffer[1].in, + gBuffer[2].in, + test->optInPeriod_0, + test->optInPeriod_1, + (TA_MAType)test->optInMAType_1, + test->optInPeriod_2, + (TA_MAType)test->optInMAType_2, + &outBegIdx, &outNbElement, + gBuffer[0].out0, + gBuffer[0].out1 ); + break; + case TEST_STOCHF: + retCode = TA_STOCHF( test->startIdx, + test->endIdx, + gBuffer[0].in, + gBuffer[1].in, + gBuffer[2].in, + test->optInPeriod_0, + test->optInPeriod_1, + (TA_MAType)test->optInMAType_1, + &outBegIdx, &outNbElement, + gBuffer[0].out0, + gBuffer[0].out1 ); + break; + case TEST_STOCHRSI: + retCode = TA_STOCHRSI( test->startIdx, + test->endIdx, + gBuffer[2].in, + test->optInPeriod_0, + test->optInPeriod_1, + test->optInPeriod_2, + (TA_MAType)test->optInMAType_2, + &outBegIdx, &outNbElement, + gBuffer[0].out0, + gBuffer[0].out1 ); + break; + } + + errNb = checkDataSame( gBuffer[0].in, history->high,history->nbBars ); + if( errNb != TA_TEST_PASS ) + return errNb; + errNb = checkDataSame( gBuffer[1].in, history->low, history->nbBars ); + if( errNb != TA_TEST_PASS ) + return errNb; + errNb = checkDataSame( gBuffer[2].in, history->close,history->nbBars ); + if( errNb != TA_TEST_PASS ) + return errNb; + + CHECK_EXPECTED_VALUE( gBuffer[0].out0, 0 ); + CHECK_EXPECTED_VALUE( gBuffer[0].out1, 1 ); + + outBegIdx = outNbElement = 0; + + if( test->testId == TEST_STOCH ) + { + /* Call a local non-optimized version of the function. + * This way, we make sure that the currently speed optimized + * version in TA-Lib is not broken. + */ + retCode = referenceStoch( + test->startIdx, + test->endIdx, + gBuffer[0].in, + gBuffer[1].in, + gBuffer[2].in, + test->optInPeriod_0, + test->optInPeriod_1, + test->optInMAType_1, + test->optInPeriod_2, + test->optInMAType_2, + &outBegIdx, &outNbElement, + gBuffer[1].out0, + gBuffer[1].out1 ); + + errNb = checkDataSame( gBuffer[0].in, history->high,history->nbBars ); + if( errNb != TA_TEST_PASS ) + return errNb; + errNb = checkDataSame( gBuffer[1].in, history->low, history->nbBars ); + if( errNb != TA_TEST_PASS ) + return errNb; + errNb = checkDataSame( gBuffer[2].in, history->close,history->nbBars ); + if( errNb != TA_TEST_PASS ) + return errNb; + + CHECK_EXPECTED_VALUE( gBuffer[1].out0, 0 ); + CHECK_EXPECTED_VALUE( gBuffer[1].out1, 1 ); + + /* The non-optimized reference shall be identical to the optimized + * TA-Lib implementation. + * + * checkSameContent verify that all value different than NAN in + * the first parameter is identical in the second parameter. + */ + errNb = checkSameContent( gBuffer[1].out0, gBuffer[0].out0 ); + if( errNb != TA_TEST_PASS ) + return errNb; + + errNb = checkSameContent( gBuffer[1].out1, gBuffer[0].out1 ); + if( errNb != TA_TEST_PASS ) + return errNb; + } + + /* Make another call where the input and the output are the + * same buffer. + */ + switch( test->testId ) + { + case TEST_STOCH: + retCode = TA_STOCH( test->startIdx, + test->endIdx, + gBuffer[0].in, + gBuffer[1].in, + gBuffer[2].in, + test->optInPeriod_0, + test->optInPeriod_1, + (TA_MAType)test->optInMAType_1, + test->optInPeriod_2, + (TA_MAType)test->optInMAType_2, + &outBegIdx, &outNbElement, + gBuffer[0].in, + gBuffer[1].in ); + break; + case TEST_STOCHF: + retCode = TA_STOCHF( test->startIdx, + test->endIdx, + gBuffer[0].in, + gBuffer[1].in, + gBuffer[2].in, + test->optInPeriod_0, + test->optInPeriod_1, + (TA_MAType)test->optInMAType_1, + &outBegIdx, &outNbElement, + gBuffer[0].in, + gBuffer[1].in ); + break; + case TEST_STOCHRSI: + retCode = TA_STOCHRSI( test->startIdx, + test->endIdx, + gBuffer[2].in, + test->optInPeriod_0, + test->optInPeriod_1, + test->optInPeriod_2, + (TA_MAType)test->optInMAType_2, + &outBegIdx, &outNbElement, + gBuffer[0].in, + gBuffer[1].in ); + break; + + } + + /* The previous call should have the same output as this call. + * + * checkSameContent verify that all value different than NAN in + * the first parameter is identical in the second parameter. + */ + errNb = checkSameContent( gBuffer[0].out0, gBuffer[0].in ); + if( errNb != TA_TEST_PASS ) + return errNb; + + errNb = checkSameContent( gBuffer[0].out1, gBuffer[1].in ); + if( errNb != TA_TEST_PASS ) + return errNb; + + CHECK_EXPECTED_VALUE( gBuffer[0].in, 0 ); + CHECK_EXPECTED_VALUE( gBuffer[1].in, 1 ); + + if( errNb != TA_TEST_PASS ) + return errNb; + + + /* Do a systematic test of most of the + * possible startIdx/endIdx range. + */ + testParam.test = test; + testParam.high = history->high; + testParam.low = history->low; + testParam.close = history->close; + + if( test->doRangeTestFlag ) + { + switch( test->testId ) + { + case TEST_STOCH: + case TEST_STOCHF: + errNb = doRangeTest( rangeTestFunction, + TA_FUNC_UNST_NONE, + (void *)&testParam, 2, 0 ); + break; + case TEST_STOCHRSI: + errNb = doRangeTest( rangeTestFunction, + TA_FUNC_UNST_RSI, + (void *)&testParam, 2, 0 ); + break; + } + + if( errNb != TA_TEST_PASS ) + return errNb; + } + + return TA_TEST_PASS; +} + + +/* This is an un-optimized version of the STOCH function */ +static TA_RetCode referenceStoch( TA_Integer startIdx, + TA_Integer endIdx, + const TA_Real inHigh[], + const TA_Real inLow[], + const TA_Real inClose[], + TA_Integer optInPeriod_0, /* From 1 to TA_INTEGER_MAX */ + TA_Integer optInPeriod_1, /* From 1 to TA_INTEGER_MAX */ + TA_Integer optInMAType_1, + TA_Integer optInPeriod_2, /* From 1 to TA_INTEGER_MAX */ + TA_Integer optInMAType_2, + TA_Integer *outBegIdx, + TA_Integer *outNbElement, + TA_Real outSlowK_0[], + TA_Real outSlowD_1[] ) +{ + TA_RetCode retCode; + double Lt, Ht, tmp, *tempBuffer; + int outIdx; + int lookbackTotal, lookbackK, lookbackKSlow, lookbackDSlow; + int trailingIdx, today, i, bufferIsAllocated; + + /* Identify the lookback needed. */ + lookbackK = optInPeriod_0-1; + lookbackKSlow = TA_MA_Lookback( optInPeriod_1, (TA_MAType)optInMAType_1 ); + lookbackDSlow = TA_MA_Lookback( optInPeriod_2, (TA_MAType)optInMAType_2 ); + lookbackTotal = lookbackK + lookbackDSlow + lookbackKSlow; + + /* Move up the start index if there is not + * enough initial data. + */ + if( startIdx < lookbackTotal ) + startIdx = lookbackTotal; + + /* Make sure there is still something to evaluate. */ + if( startIdx > endIdx ) + { + /* Succeed... but no data in the output. */ + *outBegIdx = 0; + *outNbElement = 0; + return TA_SUCCESS; + } + + /* Do the K calculation: + * + * Kt = 100 x ((Ct-Lt)/(Ht-Lt)) + * + * Kt is today stochastic + * Ct is today closing price. + * Lt is the lowest price of the last K Period (including today) + * Ht is the highest price of the last K Period (including today) + */ + + /* Proceed with the calculation for the requested range. + * Note that this algorithm allows the input and + * output to be the same buffer. + */ + outIdx = 0; + + /* Calculate just enough K for ending up with the caller + * requested range. (The range of k must consider all + * the lookback involve with the smoothing). + */ + trailingIdx = startIdx-lookbackTotal; + today = trailingIdx+lookbackK; + + /* Allocate a temporary buffer large enough to + * store the K. + * + * If the output is the same as the input, great + * we just save ourself one memory allocation. + */ + bufferIsAllocated = 0; + if( (outSlowK_0 == inHigh) || + (outSlowK_0 == inLow) || + (outSlowK_0 == inClose) ) + { + tempBuffer = outSlowK_0; + } + else if( (outSlowD_1 == inHigh) || + (outSlowD_1 == inLow) || + (outSlowD_1 == inClose) ) + { + tempBuffer = outSlowD_1; + } + else + { + bufferIsAllocated = 1; + tempBuffer = TA_Malloc( (endIdx-today+1)*sizeof(TA_Real) ); + } + + /* Do the K calculation */ + while( today <= endIdx ) + { + /* Find Lt and Ht for the requested K period. */ + Lt = inLow [trailingIdx]; + Ht = inHigh[trailingIdx]; + trailingIdx++; + for( i=trailingIdx; i <= today; i++ ) + { + tmp = inLow[i]; + if( tmp < Lt ) Lt = tmp; + tmp = inHigh[i]; + if( tmp > Ht ) Ht = tmp; + } + + /* Calculate stochastic. */ + tmp = Ht-Lt; + if( tmp > 0.0 ) + tempBuffer[outIdx++] = 100.0*((inClose[today]-Lt)/tmp); + else + tempBuffer[outIdx++] = 100.0; + + today++; + } + + /* Un-smoothed K calculation completed. This K calculation is not returned + * to the caller. It is always smoothed and then return. + * Some documentation will refer to the smoothed version as being + * "K-Slow", but often this end up to be shorten to "K". + */ + retCode = TA_MA( 0, outIdx-1, + tempBuffer, optInPeriod_1, + (TA_MAType)optInMAType_1, + outBegIdx, outNbElement, tempBuffer ); + + + if( (retCode != TA_SUCCESS) || (*outNbElement == 0) ) + { + if( bufferIsAllocated ) + TA_Free( tempBuffer ); + /* Something wrong happen? No further data? */ + *outBegIdx = 0; + *outNbElement = 0; + return retCode; + } + + /* Calculate the %D which is simply a moving average of + * the already smoothed %K. + */ + retCode = TA_MA( 0, (*outNbElement)-1, + tempBuffer, optInPeriod_2, + (TA_MAType)optInMAType_2, + outBegIdx, outNbElement, outSlowD_1 ); + + /* Copy tempBuffer into the caller buffer. + * (Calculation could not be done directly in the + * caller buffer because more input data then the + * requested range was needed for doing %D). + */ + memmove( outSlowK_0, &tempBuffer[lookbackDSlow], (*outNbElement) * sizeof(TA_Real) ); + + /* Don't need K anymore, free it if it was allocated here. */ + if( bufferIsAllocated ) + TA_Free( tempBuffer ); + + if( retCode != TA_SUCCESS ) + { + /* Something wrong happen while processing %D? */ + *outBegIdx = 0; + *outNbElement = 0; + return retCode; + } + + /* Note: Keep the outBegIdx relative to the + * caller input before returning. + */ + *outBegIdx = startIdx; + + return TA_SUCCESS; +} + + diff --git a/src/tools/ta_regtest/ta_test_func/test_trange.c b/src/tools/ta_regtest/ta_test_func/test_trange.c new file mode 100644 index 000000000..e13e70028 --- /dev/null +++ b/src/tools/ta_regtest/ta_test_func/test_trange.c @@ -0,0 +1,349 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * MF Mario Fortier + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 112400 MF First version. + * + */ + +/* Description: + * Test TRANGE and ATR function. + */ + +/**** Headers ****/ +#include +#include + +#include "ta_test_priv.h" +#include "ta_test_func.h" +#include "ta_utility.h" + +/**** External functions declarations. ****/ +/* None */ + +/**** External variables declarations. ****/ +/* None */ + +/**** Global variables definitions. ****/ +/* None */ + +/**** Local declarations. ****/ +typedef struct +{ + TA_Integer doRangeTestFlag; /* One will do a call to doRangeTest */ + + TA_Integer unstablePeriod; + + TA_Integer startIdx; + TA_Integer endIdx; + + TA_Integer doAverage; /* 1 indicate ATR, else TRANGE. */ + TA_Integer optInTimePeriod; /* Meaningful only for ATR. */ + + TA_RetCode expectedRetCode; + + TA_Integer oneOfTheExpectedOutRealIndex; + TA_Real oneOfTheExpectedOutReal; + + TA_Integer expectedBegIdx; + TA_Integer expectedNbElement; +} TA_Test; + +typedef struct +{ + const TA_Test *test; + const TA_Real *high; + const TA_Real *low; + const TA_Real *close; +} TA_RangeTestParam; + +/**** Local functions declarations. ****/ +static ErrorNumber do_test( const TA_History *history, + const TA_Test *test ); + +/**** Local variables definitions. ****/ + +static TA_Test tableTest[] = +{ + /* TRANGE TEST */ + { 1, 0, 0, 251, 0, 0, TA_SUCCESS, 0, 3.535, 1, 251 }, /* First Value */ + { 0, 0, 0, 251, 0, 0, TA_SUCCESS, 12, 9.685, 1, 251 }, + { 0, 0, 0, 251, 0, 0, TA_SUCCESS, 40, 5.125, 1, 251 }, + { 0, 0, 0, 251, 0, 0, TA_SUCCESS, 250, 2.88, 1, 251 }, /* Last Value */ + + /* ATR TEST */ + { 1, 0, 0, 251, 1, 1, TA_SUCCESS, 0, 3.535, 1, 251 }, /* First Value */ + { 0, 0, 0, 251, 1, 1, TA_SUCCESS, 12, 9.685, 1, 251 }, + { 0, 0, 0, 251, 1, 1, TA_SUCCESS, 40, 5.125, 1, 251 }, + { 0, 0, 0, 251, 1, 1, TA_SUCCESS, 250, 2.88, 1, 251 }, /* Last Value */ + + { 0, 1, 14, 15, 1, 14, TA_SUCCESS, 0, 3.4876, 15, 1 }, + { 0, 1, 15, 16, 1, 14, TA_SUCCESS, 0, 3.4876, 15, 2 }, + + { 1, 0, 0, 251, 1, 14, TA_SUCCESS, 0, 3.578, 14, 252-14 }, /* First Value */ + { 0, 0, 0, 251, 1, 14, TA_SUCCESS, 1, 3.4876, 14, 252-14 }, + { 0, 0, 0, 251, 1, 14, TA_SUCCESS, 2, 3.55, 14, 252-14 }, + { 0, 0, 0, 251, 1, 14, TA_SUCCESS, 12, 3.245, 14, 252-14 }, + { 0, 0, 0, 251, 1, 14, TA_SUCCESS, 13, 3.394, 14, 252-14 }, + { 0, 0, 0, 251, 1, 14, TA_SUCCESS, 14, 3.413, 14, 252-14 }, + { 0, 0, 0, 251, 1, 14, TA_SUCCESS, 237, 3.26, 14, 252-14 }, /* Last Value */ + +}; + +#define NB_TEST (sizeof(tableTest)/sizeof(TA_Test)) + +/**** Global functions definitions. ****/ +ErrorNumber test_func_trange( TA_History *history ) +{ + unsigned int i; + ErrorNumber retValue; + + for( i=0; i < NB_TEST; i++ ) + { + if( (int)tableTest[i].expectedNbElement > (int)history->nbBars ) + { + printf( "%s Failed Bad Parameter for Test #%d (%d,%d)\n", + tableTest[i].doAverage? "TA_ATR":"TA_TRANGE", + i, tableTest[i].expectedNbElement, history->nbBars ); + return TA_TESTUTIL_TFRR_BAD_PARAM; + } + + retValue = do_test( history, &tableTest[i] ); + if( retValue != 0 ) + { + printf( "%s Failed Test #%d (Code=%d)\n", + tableTest[i].doAverage? "TA_ATR":"TA_TRANGE", + i, retValue ); + return retValue; + } + } + + + /* All test succeed. */ + return TA_TEST_PASS; +} + +/**** Local functions definitions. ****/ +static TA_RetCode rangeTestFunction( TA_Integer startIdx, + TA_Integer endIdx, + TA_Real *outputBuffer, + TA_Integer *outputBufferInt, + TA_Integer *outBegIdx, + TA_Integer *outNbElement, + TA_Integer *lookback, + void *opaqueData, + unsigned int outputNb, + unsigned int *isOutputInteger ) +{ + TA_RetCode retCode; + TA_RangeTestParam *testParam; + + (void)outputNb; + (void)outputBufferInt; + + *isOutputInteger = 0; + + testParam = (TA_RangeTestParam *)opaqueData; + + + if( testParam->test->doAverage ) + { + retCode = TA_ATR( + startIdx, + endIdx, + testParam->high, + testParam->low, + testParam->close, + testParam->test->optInTimePeriod, + outBegIdx, + outNbElement, + outputBuffer ); + *lookback = TA_ATR_Lookback( testParam->test->optInTimePeriod ); + } + else + { + retCode = TA_TRANGE( + startIdx, + endIdx, + testParam->high, + testParam->low, + testParam->close, + outBegIdx, + outNbElement, + outputBuffer ); + + *lookback = TA_TRANGE_Lookback(); + } + + return retCode; +} + +static ErrorNumber do_test( const TA_History *history, + const TA_Test *test ) +{ + TA_RetCode retCode; + ErrorNumber errNb; + TA_Integer outBegIdx; + TA_Integer outNbElement; + TA_RangeTestParam testParam; + + /* Set to NAN all the elements of the gBuffers. */ + clearAllBuffers(); + + /* Build the input. */ + setInputBuffer( 0, history->high, history->nbBars ); + setInputBuffer( 1, history->low, history->nbBars ); + setInputBuffer( 2, history->close, history->nbBars ); + + if( test->doAverage ) + { + TA_SetUnstablePeriod( TA_FUNC_UNST_ATR, test->unstablePeriod ); + retCode = TA_ATR( test->startIdx, + test->endIdx, + gBuffer[0].in, + gBuffer[1].in, + gBuffer[2].in, + test->optInTimePeriod, + &outBegIdx, + &outNbElement, + gBuffer[0].out0 ); + } + else + { + retCode = TA_TRANGE( test->startIdx, + test->endIdx, + gBuffer[0].in, + gBuffer[1].in, + gBuffer[2].in, + &outBegIdx, + &outNbElement, + gBuffer[0].out0 ); + } + + errNb = checkDataSame( gBuffer[0].in, history->high,history->nbBars ); + if( errNb != TA_TEST_PASS ) + return errNb; + errNb = checkDataSame( gBuffer[1].in, history->low, history->nbBars ); + if( errNb != TA_TEST_PASS ) + return errNb; + errNb = checkDataSame( gBuffer[2].in, history->close, history->nbBars ); + if( errNb != TA_TEST_PASS ) + return errNb; + + errNb = checkExpectedValue( gBuffer[0].out0, + retCode, test->expectedRetCode, + outBegIdx, test->expectedBegIdx, + outNbElement, test->expectedNbElement, + test->oneOfTheExpectedOutReal, + test->oneOfTheExpectedOutRealIndex ); + if( errNb != TA_TEST_PASS ) + return errNb; + + outBegIdx = outNbElement = 0; + + /* Make another call where the input and the output are the + * same buffer. + */ + if( test->doAverage ) + { + TA_SetUnstablePeriod( TA_FUNC_UNST_ATR, test->unstablePeriod ); + retCode = TA_ATR( test->startIdx, + test->endIdx, + gBuffer[0].in, + gBuffer[1].in, + gBuffer[2].in, + test->optInTimePeriod, + &outBegIdx, + &outNbElement, + gBuffer[0].in ); + } + else + { + retCode = TA_TRANGE( test->startIdx, + test->endIdx, + gBuffer[0].in, + gBuffer[1].in, + gBuffer[2].in, + &outBegIdx, + &outNbElement, + gBuffer[0].in ); + } + + /* The previous call to TA_MA should have the same output + * as this call. + * + * checkSameContent verify that all value different than NAN in + * the first parameter is identical in the second parameter. + */ + errNb = checkSameContent( gBuffer[0].out0, gBuffer[0].in ); + if( errNb != TA_TEST_PASS ) + return errNb; + + errNb = checkExpectedValue( gBuffer[0].in, + retCode, test->expectedRetCode, + outBegIdx, test->expectedBegIdx, + outNbElement, test->expectedNbElement, + test->oneOfTheExpectedOutReal, + test->oneOfTheExpectedOutRealIndex ); + if( errNb != TA_TEST_PASS ) + return errNb; + + /* Do a systematic test of most of the + * possible startIdx/endIdx range. + */ + testParam.test = test; + testParam.high = history->high; + testParam.low = history->low; + testParam.close = history->close; + + if( test->doRangeTestFlag ) + { + errNb = doRangeTest( rangeTestFunction, + TA_FUNC_UNST_ATR, + (void *)&testParam, 1, 0 ); + if( errNb != TA_TEST_PASS ) + return errNb; + } + + return TA_TEST_PASS; +} diff --git a/src/tools/ta_regtest/ta_test_priv.h b/src/tools/ta_regtest/ta_test_priv.h new file mode 100644 index 000000000..435f06758 --- /dev/null +++ b/src/tools/ta_regtest/ta_test_priv.h @@ -0,0 +1,210 @@ +#ifndef TA_TEST_PRIV_H +#define TA_TEST_PRIV_H + +#ifndef TA_LIBC_H + #include "ta_libc.h" +#endif + +#ifndef TA_ERROR_NUMBER_H + #include "ta_error_number.h" +#endif + +typedef struct +{ + unsigned int nbBars; /* Nb of element into the following arrays. */ + + /* The arrays containing data. Unused array are set to NULL. */ + TA_Real *open; + TA_Real *high; + TA_Real *low; + TA_Real *close; + TA_Real *volume; + TA_Real *openInterest; +} TA_History; + +ErrorNumber test_internals( void ); +ErrorNumber test_abstract( void ); + +ErrorNumber freeLib( void ); +ErrorNumber allocLib( void ); + +void reportError( const char *str, TA_RetCode retCode ); + +/* Global Temporary Used by the ta_func_xxx function. */ + + +typedef struct +{ + TA_Real *in; + + TA_Real *out0; + TA_Real *out1; + TA_Real *out2; +} TestBuffer; + + +/* That's quite a lot of global data, but who cares for + * regression testing... it simplify memory alloc/dealloc. + */ +#define NB_GLOBAL_BUFFER 5 +extern TestBuffer gBuffer[NB_GLOBAL_BUFFER]; + +/* Maximum number of element that can be written + * at a gBuffer[n].ptr + */ +#define MAX_NB_TEST_ELEMENT 280 + +/* Must be called once to initialize the gBuffer. */ +void initGlobalBuffer( void ); + +/* Will set to NAN all elements of gBuffer. */ +void clearAllBuffers( void ); + +/* Initialize the 'gBuffer[i].in' with the provided data. */ +void setInputBuffer( unsigned int i, const TA_Real *data, unsigned int nbElement ); + +/* Same as setInputBuffer but fill with a single value. */ +void setInputBufferValue( unsigned int i, const TA_Real data, unsigned int nbElement ); + +/* Check that a buffer (within a TestBuffer) is not containing + * NAN within the specified range (it also checks that all value + * outside the range are untouched). + * + * Return TA_TEST_PASS if all ok. + */ +ErrorNumber checkForNAN( const TA_Real *buffer, + unsigned int nbElement ); + +/* Check that the 'data' is equal to the provided + * originalInput. + * + * The data must be one of the 'gBuffer[n].buffer'. + * + * It is also checked that all value outside of the + * nbElement range are not-a-number. + * + * Return TA_TEST_PASS if no difference are found. + */ +ErrorNumber checkDataSame( const TA_Real *data, + const TA_Real *originalInput, + unsigned int nbElement ); + +/* Check that the content of the first buffer + * is found in the second buffer (when the elements + * in the first buffer is NAN, no check is done for + * this paricular element). + * + * Return TA_TEST_PASS if no difference are found. + */ +ErrorNumber checkSameContent( TA_Real *buffer1, + TA_Real *buffer2 ); + +ErrorNumber checkExpectedValue( const TA_Real *data, + TA_RetCode retCode, TA_RetCode expectedRetCode, + unsigned int outBegIdx, unsigned int expectedBegIdx, + unsigned int outNbElement, unsigned int expectedNbElement, + TA_Real oneOfTheExpectedOutReal, + unsigned int oneOfTheExpectedOutRealIndex ); + +#define CHECK_EXPECTED_VALUE(bufid,id) \ + { \ + errNb = checkExpectedValue( bufid, \ + retCode, test->expectedRetCode, \ + outBegIdx, test->expectedBegIdx, \ + outNbElement, test->expectedNbElement, \ + test->oneOfTheExpectedOutReal##id, \ + test->oneOfTheExpectedOutRealIndex##id ); \ + if( errNb != TA_TEST_PASS ) \ + { \ + printf( "Fail for output id=%d\n", id ); \ + return errNb; \ + } \ + } + +#define CLEAR_EXPECTED_VALUE(id) \ + { \ + retCode = TA_INTERNAL_ERROR(127); \ + outBegIdx = 0;\ + outNbElement = 0;\ + } + + +/* A systematic test can be done for most of the possible + * range that a TA function can be called with. This test + * is common to all TA function and can be easily done + * with a RangeTestFunction. + * + * The RangeTestFunction is making abstraction of the + * TA function (handles the inputs, the parameters etc...) + * The RangeTestFunction must call the TA function for + * the requested startIdx/endIdx range and put the output + * in the provided buffer. + * + * The RangeTestFunction must also set the outBegIdx and + * outNbElement for verification. + * + * Opaque data (for mostly passing optional parameters) are + * pass through the pointer 'void * opaqueData'. + * + * The output of the function must be put in the outputBuffer + * or outputBufferInt depending of the return type. + */ +#define MAX_RANGE_SIZE 252 +#define MAX_RANGE_END (MAX_RANGE_SIZE-1) + +typedef TA_RetCode (*RangeTestFunction)( TA_Integer startIdx, + TA_Integer endIdx, + TA_Real *outputBuffer, + TA_Integer *outputBufferInt, + TA_Integer *outBegIdx, + TA_Integer *outNbElement, + TA_Integer *lookback, + void *opaqueData, + unsigned int outputNb, + unsigned int *isOutputInteger ); + +/* This is the function starting the range tests. + * The parameter 'nbOutput' allows to repeat the + * tests indepedently for each outputs. + * + * A lot of coherency tests are performed, + * including comparing that the same value are + * returned even when using a different startIdx + * and endIdx. + * + * Because of the complexity added by algorithm that + * have an unstable period, the comparison is + * done using a tolerance algorithm (see test_util.c). + * + * Comparison can be ignored by specifiying + * an integerTolerance == TA_DO_NOT_COMPARE + * + * Even without comparison, a lot of coherency + * tests are still performed (like making sure the + * lookback function is coherent with its TA function). + * + * In the case that the TA function output are + * integer, the integerTolerance indicate by how much + * the value can vary for a function having an + * unstable period. Example: If 2 is pass, the + * value can vary of no more or less 2. + * When passing zero, the tolerance is done using + * a "reasonable" logic using double calculation (see + * test_util.c for more info). + */ +#define TA_DO_NOT_COMPARE 0xFFFFFFFF +ErrorNumber doRangeTest( RangeTestFunction testFunction, + TA_FuncUnstId unstId, + void *opaqueData, + unsigned int nbOutput, + unsigned int integerTolerance ); + +/* Print out info about a retCode */ +void printRetCode( TA_RetCode retCode ); + +/* Function to print character to show that the software is still alive. */ +void showFeedback(void); +void hideFeedback(void); + +#endif + diff --git a/src/tools/ta_regtest/test_abstract.c b/src/tools/ta_regtest/test_abstract.c new file mode 100644 index 000000000..909ef9c67 --- /dev/null +++ b/src/tools/ta_regtest/test_abstract.c @@ -0,0 +1,762 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * MF Mario Fortier + * AC Angelo Ciceri + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 112703 MF First version. + * 030104 MF Add tests for TA_GetLookback + * 062504 MF Add test_default_calls. + * 110206 AC Change volume and open interest to double + * 082607 MF Add profiling feature. + */ + +/* Description: + * Regression testing of the functionality provided + * by the ta_abstract module. + * + * Also perform call to all functions for the purpose + * of profiling (doExtensiveProfiling option). + */ + +/**** Headers ****/ +#ifdef WIN32 + #include "windows.h" +#else + #include "time.h" +#endif + +#include +#include +#include +#include +#include "ta_test_priv.h" + +/**** External functions declarations. ****/ +/* None */ + +/**** External variables declarations. ****/ +extern int doExtensiveProfiling; + +extern double gDataOpen[]; +extern double gDataHigh[]; +extern double gDataLow[]; +extern double gDataClose[]; + +extern int nbProfiledCall; +extern double timeInProfiledCall; +extern double worstProfiledCall; +extern int insufficientClockPrecision; + +/**** Global variables definitions. ****/ +/* None */ + +/**** Local declarations. ****/ +typedef enum +{ + PROFILING_10000, + PROFILING_8000, + PROFILING_5000, + PROFILING_2000, + PROFILING_1000, + PROFILING_500, + PROFILING_100 +} ProfilingType; + +/**** Local functions declarations. ****/ +static ErrorNumber testLookback(TA_ParamHolder *paramHolder ); +static ErrorNumber test_default_calls(void); +static ErrorNumber callWithDefaults( const char *funcName, + const double *input, + const int *input_int, int size ); +static ErrorNumber callAndProfile( const char *funcName, ProfilingType type ); + +/**** Local variables definitions. ****/ +static double inputNegData[100]; +static double inputZeroData[100]; +static double inputRandFltEpsilon[100]; +static double inputRandDblEpsilon[100]; +static double inputRandomData[2000]; + +static int inputNegData_int[100]; +static int inputZeroData_int[100]; +static int inputRandFltEpsilon_int[100]; +static int inputRandDblEpsilon_int[100]; +static int inputRandomData_int[2000]; + +static double output[10][2000]; +static int output_int[10][2000]; + +/**** Global functions definitions. ****/ +ErrorNumber test_abstract( void ) +{ + ErrorNumber retValue; + TA_RetCode retCode; + TA_ParamHolder *paramHolder; + const TA_FuncHandle *handle; + int i; + const char *xmlArray; + + printf( "Testing Abstract interface\n" ); + + retValue = allocLib(); + if( retValue != TA_TEST_PASS ) + return retValue; + + /* Verify TA_GetLookback. */ + retCode = TA_GetFuncHandle( "STOCH", &handle ); + if( retCode != TA_SUCCESS ) + { + printf( "Can't get the function handle [%d]\n", retCode ); + return TA_ABS_TST_FAIL_GETFUNCHANDLE; + } + + retCode = TA_ParamHolderAlloc( handle, ¶mHolder ); + if( retCode != TA_SUCCESS ) + { + printf( "Can't allocate the param holder [%d]\n", retCode ); + return TA_ABS_TST_FAIL_PARAMHOLDERALLOC; + } + + retValue = testLookback(paramHolder); + if( retValue != TA_SUCCESS ) + { + printf( "testLookback() failed [%d]\n", retValue ); + TA_ParamHolderFree( paramHolder ); + return retValue; + } + + retCode = TA_ParamHolderFree( paramHolder ); + if( retCode != TA_SUCCESS ) + { + printf( "TA_ParamHolderFree failed [%d]\n", retCode ); + return TA_ABS_TST_FAIL_PARAMHOLDERFREE; + } + + retValue = freeLib(); + if( retValue != TA_TEST_PASS ) + return retValue; + + /* Call all the TA functions through the abstract interface. */ + retValue = allocLib(); + if( retValue != TA_TEST_PASS ) + return retValue; + + retValue = test_default_calls(); + if( retValue != TA_TEST_PASS ) + { + printf( "TA-Abstract default call failed\n" ); + return retValue; + } + + retValue = freeLib(); + if( retValue != TA_TEST_PASS ) + return retValue; + + /* Verify that the TA_FunctionDescription is null terminated + * and as at least 500 characters (less is guaranteed bad...) + */ + xmlArray = TA_FunctionDescriptionXML(); + for( i=0; i < 1000000; i++ ) + { + if( xmlArray[i] == 0x0 ) + break; + } + + if( i < 500) + { + printf( "TA_FunctionDescriptionXML failed. Size too small.\n" ); + return TA_ABS_TST_FAIL_FUNCTION_DESC_SMALL; + } + + if( i == 1000000 ) + { + printf( "TA_FunctionDescriptionXML failed. Size too large (missing null?).\n" ); + return TA_ABS_TST_FAIL_FUNCTION_DESC_LARGE; + } + + return TA_TEST_PASS; /* Succcess. */ +} + +/**** Local functions definitions. ****/ +static ErrorNumber testLookback( TA_ParamHolder *paramHolder ) +{ + TA_RetCode retCode; + int lookback; + + /* Change the parameters of STOCH and verify that TA_GetLookback respond correctly. */ + retCode = TA_SetOptInputParamInteger( paramHolder, 0, 3 ); + if( retCode != TA_SUCCESS ) + { + printf( "TA_SetOptInputParamInteger call failed [%d]\n", retCode ); + return TA_ABS_TST_FAIL_OPTINPUTPARAMINTEGER; + } + + retCode = TA_SetOptInputParamInteger( paramHolder, 1, 4 ); + if( retCode != TA_SUCCESS ) + { + printf( "TA_SetOptInputParamInteger call failed [%d]\n", retCode ); + return TA_ABS_TST_FAIL_OPTINPUTPARAMINTEGER; + } + + retCode = TA_SetOptInputParamInteger( paramHolder, 2, (TA_Integer)TA_MAType_SMA ); + if( retCode != TA_SUCCESS ) + { + printf( "TA_SetOptInputParamInteger call failed [%d]\n", retCode ); + return TA_ABS_TST_FAIL_OPTINPUTPARAMINTEGER; + } + + retCode = TA_SetOptInputParamInteger( paramHolder, 3, 4 ); + if( retCode != TA_SUCCESS ) + { + printf( "TA_SetOptInputParamInteger call failed [%d]\n", retCode ); + return TA_ABS_TST_FAIL_OPTINPUTPARAMINTEGER; + } + + retCode = TA_SetOptInputParamInteger( paramHolder, 4, (TA_Integer)TA_MAType_SMA ); + if( retCode != TA_SUCCESS ) + { + printf( "TA_SetOptInputParamInteger call failed [%d]\n", retCode ); + return TA_ABS_TST_FAIL_OPTINPUTPARAMINTEGER; + } + + retCode = TA_GetLookback(paramHolder,&lookback); + if( retCode != TA_SUCCESS ) + { + printf( "TA_GetLookback failed [%d]\n", retCode ); + return TA_ABS_TST_FAIL_GETLOOKBACK_CALL_1; + } + + if( lookback != 8 ) + { + printf( "TA_GetLookback failed [%d != 8]\n", lookback ); + return TA_ABS_TST_FAIL_GETLOOKBACK_1; + } + + /* Change one parameter and check again. */ + retCode = TA_SetOptInputParamInteger( paramHolder, 3, 3 ); + if( retCode != TA_SUCCESS ) + { + printf( "TA_SetOptInputParamInteger call failed [%d]\n", retCode ); + return TA_ABS_TST_FAIL_OPTINPUTPARAMINTEGER; + } + + retCode = TA_GetLookback(paramHolder,&lookback); + if( retCode != TA_SUCCESS ) + { + printf( "TA_GetLookback failed [%d]\n", retCode ); + return TA_ABS_TST_FAIL_GETLOOKBACK_CALL_2; + } + + if( lookback != 7 ) + { + printf( "TA_GetLookback failed [%d != 7]\n", lookback ); + return TA_ABS_TST_FAIL_GETLOOKBACK_2; + } + + return TA_TEST_PASS; +} + + +static void testDefault( const TA_FuncInfo *funcInfo, void *opaqueData ) +{ + static int nbFunctionDone = 0; + ErrorNumber *errorNumber; + errorNumber = (ErrorNumber *)opaqueData; + if( *errorNumber != TA_TEST_PASS ) + return; + +#define CALL(x) { \ + *errorNumber = callWithDefaults( funcInfo->name, x, x##_int, sizeof(x)/sizeof(double) ); \ + if( *errorNumber != TA_TEST_PASS ) { \ + printf( "Failed for [%s][%s]\n", funcInfo->name, #x ); \ + return; \ + } \ +} + /* Do not test value outside the ]0..1[ domain for the "Math" groups. */ + if( (strlen(funcInfo->group) < 4) || + !((tolower(funcInfo->group[0]) == 'm') && + (tolower(funcInfo->group[1]) == 'a') && + (tolower(funcInfo->group[2]) == 't') && + (tolower(funcInfo->group[3]) == 'h'))) + { + CALL( inputNegData ); + CALL( inputZeroData ); + CALL( inputRandFltEpsilon ); + CALL( inputRandDblEpsilon ); + } + + CALL( inputRandomData ); + +#undef CALL + +#define CALL(x) { \ + *errorNumber = callAndProfile( funcInfo->name, x ); \ + if( *errorNumber != TA_TEST_PASS ) { \ + printf( "Failed for [%s][%s]\n", funcInfo->name, #x ); \ + return; \ + } \ +} + if( doExtensiveProfiling /*&& (nbFunctionDone<5)*/ ) + { + nbFunctionDone++; + printf( "%s ", funcInfo->name ); + CALL( PROFILING_100 ); + CALL( PROFILING_500 ); + CALL( PROFILING_1000 ); + CALL( PROFILING_2000 ); + CALL( PROFILING_5000 ); + CALL( PROFILING_8000 ); + CALL( PROFILING_10000 ); + printf( "\n" ); + } +} + +static ErrorNumber callWithDefaults( const char *funcName, const double *input, const int *input_int, int size ) +{ + TA_ParamHolder *paramHolder; + const TA_FuncHandle *handle; + const TA_FuncInfo *funcInfo; + const TA_InputParameterInfo *inputInfo; + const TA_OutputParameterInfo *outputInfo; + + TA_RetCode retCode; + unsigned int i; + int j; + int outBegIdx, outNbElement, lookback; + + retCode = TA_GetFuncHandle( funcName, &handle ); + if( retCode != TA_SUCCESS ) + { + printf( "Can't get the function handle [%d]\n", retCode ); + return TA_ABS_TST_FAIL_GETFUNCHANDLE; + } + + retCode = TA_ParamHolderAlloc( handle, ¶mHolder ); + if( retCode != TA_SUCCESS ) + { + printf( "Can't allocate the param holder [%d]\n", retCode ); + return TA_ABS_TST_FAIL_PARAMHOLDERALLOC; + } + + TA_GetFuncInfo( handle, &funcInfo ); + + for( i=0; i < funcInfo->nbInput; i++ ) + { + TA_GetInputParameterInfo( handle, i, &inputInfo ); + switch(inputInfo->type) + { + case TA_Input_Price: + TA_SetInputParamPricePtr( paramHolder, i, + inputInfo->flags&TA_IN_PRICE_OPEN?input:NULL, + inputInfo->flags&TA_IN_PRICE_HIGH?input:NULL, + inputInfo->flags&TA_IN_PRICE_LOW?input:NULL, + inputInfo->flags&TA_IN_PRICE_CLOSE?input:NULL, + inputInfo->flags&TA_IN_PRICE_VOLUME?input:NULL, NULL ); + break; + case TA_Input_Real: + TA_SetInputParamRealPtr( paramHolder, i, input ); + break; + case TA_Input_Integer: + TA_SetInputParamIntegerPtr( paramHolder, i, input_int ); + break; + } + } + + for( i=0; i < funcInfo->nbOutput; i++ ) + { + TA_GetOutputParameterInfo( handle, i, &outputInfo ); + switch(outputInfo->type) + { + case TA_Output_Real: + TA_SetOutputParamRealPtr(paramHolder,i,&output[i][0]); + for( j=0; j < 2000; j++ ) + output[i][j] = TA_REAL_MIN; + break; + case TA_Output_Integer: + TA_SetOutputParamIntegerPtr(paramHolder,i,&output_int[i][0]); + for( j=0; j < 2000; j++ ) + output_int[i][j] = TA_INTEGER_MIN; + break; + } + } + + /* Do the function call. */ + retCode = TA_CallFunc(paramHolder,0,size-1,&outBegIdx,&outNbElement); + if( retCode != TA_SUCCESS ) + { + printf( "TA_CallFunc() failed zero data test [%d]\n", retCode ); + TA_ParamHolderFree( paramHolder ); + return TA_ABS_TST_FAIL_CALLFUNC_1; + } + + /* Verify consistency with Lookback */ + retCode = TA_GetLookback( paramHolder, &lookback ); + if( retCode != TA_SUCCESS ) + { + printf( "TA_GetLookback() failed zero data test [%d]\n", retCode ); + TA_ParamHolderFree( paramHolder ); + return TA_ABS_TST_FAIL_CALLFUNC_2; + } + + if( outBegIdx != lookback ) + { + printf( "TA_GetLookback() != outBegIdx [%d != %d]\n", lookback, outBegIdx ); + TA_ParamHolderFree( paramHolder ); + return TA_ABS_TST_FAIL_CALLFUNC_3; + } + + /* TODO Add back nan/inf tests. + for( i=0; i < funcInfo->nbOutput; i++ ) + { + switch(outputInfo->type) + { + case TA_Output_Real: + for( j=0; j < outNbElement; j++ ) + { + if( trio_isnan(output[i][j]) || + trio_isinf(output[i][j])) + { + printf( "Failed for output[%d][%d] = %e\n", i, j, output[i][j] ); + return TA_ABS_TST_FAIL_INVALID_OUTPUT; + } + } + break; + case TA_Output_Integer: + break; + } + }*/ + + /* Do another function call where startIdx == endIdx == 0. + * In that case, outBegIdx should ALWAYS be zero. + */ + retCode = TA_CallFunc(paramHolder,0,0,&outBegIdx,&outNbElement); + if( retCode != TA_SUCCESS ) + { + printf( "TA_CallFunc() failed data test 4 [%d]\n", retCode ); + TA_ParamHolderFree( paramHolder ); + return TA_ABS_TST_FAIL_CALLFUNC_4; + } + + if( outBegIdx != 0 ) + { + printf( "failed outBegIdx=%d when startIdx==endIdx==0\n", outBegIdx ); + TA_ParamHolderFree( paramHolder ); + return TA_ABS_TST_FAIL_STARTEND_ZERO; + } + + retCode = TA_ParamHolderFree( paramHolder ); + if( retCode != TA_SUCCESS ) + { + printf( "TA_ParamHolderFree failed [%d]\n", retCode ); + return TA_ABS_TST_FAIL_PARAMHOLDERFREE; + } + + return TA_TEST_PASS; +} + +static ErrorNumber test_default_calls(void) +{ + ErrorNumber errNumber; + unsigned int i; + unsigned int sign; + double tempDouble; + + errNumber = TA_TEST_PASS; + + for( i=0; i < sizeof(inputNegData)/sizeof(double); i++ ) + { + inputNegData[i] = -((double)((int)i)); + inputNegData_int[i] = -(int)i; + } + + for( i=0; i < sizeof(inputZeroData)/sizeof(double); i++ ) + { + inputZeroData[i] = 0.0; + inputZeroData_int[i] = (int)inputZeroData[i]; + } + + for( i=0; i < sizeof(inputRandomData)/sizeof(double); i++ ) + { + /* Make 100% sure input range is ]0..1[ */ + tempDouble = (double)rand() / ((double)(RAND_MAX)+(double)(1)); + while( (tempDouble <= 0.0) || (tempDouble >= 1.0) ) + { + tempDouble = (double)rand() / ((double)(RAND_MAX)+(double)(1)); + } + inputRandomData[i] = tempDouble; + inputRandomData_int[i] = (int)inputRandomData[i]; + } + + for( i=0; i < sizeof(inputRandFltEpsilon)/sizeof(double); i++ ) + { + sign= (unsigned int)rand()%2; + inputRandFltEpsilon[i] = (sign?1.0:-1.0)*(FLT_EPSILON); + inputRandFltEpsilon_int[i] = sign?TA_INTEGER_MIN:TA_INTEGER_MAX; + } + + for( i=0; i < sizeof(inputRandFltEpsilon)/sizeof(double); i++ ) + { + sign= (unsigned int)rand()%2; + inputRandFltEpsilon[i] = (sign?1.0:-1.0)*(DBL_EPSILON); + inputRandFltEpsilon_int[i] = sign?1:-1; + } + + if( doExtensiveProfiling ) + { + printf( "\n[PROFILING START]\n" ); + } + + TA_ForEachFunc( testDefault, &errNumber ); + + if( doExtensiveProfiling ) + { + printf( "[PROFILING END]\n" ); + } + + + return errNumber; +} + +static ErrorNumber callAndProfile( const char *funcName, ProfilingType type ) +{ + TA_ParamHolder *paramHolder; + const TA_FuncHandle *handle; + const TA_FuncInfo *funcInfo; + const TA_InputParameterInfo *inputInfo; + const TA_OutputParameterInfo *outputInfo; + + TA_RetCode retCode; + int h, i, j, k; + int outBegIdx, outNbElement; + + /* Variables to control iteration and corresponding input size */ + int nbInnerLoop, nbOuterLoop; + int stepSize; + int inputSize; + + /* Variables measuring the execution time */ +#ifdef WIN32 + LARGE_INTEGER startClock; + LARGE_INTEGER endClock; +#else + clock_t startClock; + clock_t endClock; +#endif + double clockDelta; + int nbProfiledCallLocal; + double timeInProfiledCallLocal; + double worstProfiledCallLocal; + + nbProfiledCallLocal = 0; + timeInProfiledCallLocal = 0.0; + worstProfiledCallLocal = 0.0; + nbInnerLoop = nbOuterLoop = stepSize = inputSize = 0; + + switch( type ) + { + case PROFILING_10000: + nbInnerLoop = 1; + nbOuterLoop = 100; + stepSize = 10000; + inputSize = 10000; + break; + case PROFILING_8000: + nbInnerLoop = 2; + nbOuterLoop = 50; + stepSize = 2000; + inputSize = 8000; + break; + case PROFILING_5000: + nbInnerLoop = 2; + nbOuterLoop = 50; + stepSize = 5000; + inputSize = 5000; + break; + case PROFILING_2000: + nbInnerLoop = 5; + nbOuterLoop = 20; + stepSize = 2000; + inputSize = 2000; + break; + case PROFILING_1000: + nbInnerLoop = 10; + nbOuterLoop = 10; + stepSize = 1000; + inputSize = 1000; + break; + case PROFILING_500: + nbInnerLoop = 20; + nbOuterLoop = 5; + stepSize = 500; + inputSize = 500; + break; + case PROFILING_100: + nbInnerLoop = 100; + nbOuterLoop = 1; + stepSize = 100; + inputSize = 100; + break; + } + + retCode = TA_GetFuncHandle( funcName, &handle ); + if( retCode != TA_SUCCESS ) + { + printf( "Can't get the function handle [%d]\n", retCode ); + return TA_ABS_TST_FAIL_GETFUNCHANDLE; + } + + retCode = TA_ParamHolderAlloc( handle, ¶mHolder ); + if( retCode != TA_SUCCESS ) + { + printf( "Can't allocate the param holder [%d]\n", retCode ); + return TA_ABS_TST_FAIL_PARAMHOLDERALLOC; + } + + TA_GetFuncInfo( handle, &funcInfo ); + + for( i=0; i < (int)funcInfo->nbOutput; i++ ) + { + TA_GetOutputParameterInfo( handle, i, &outputInfo ); + switch(outputInfo->type) + { + case TA_Output_Real: + TA_SetOutputParamRealPtr(paramHolder,i,&output[i][0]); + for( j=0; j < 2000; j++ ) + output[i][j] = TA_REAL_MIN; + break; + case TA_Output_Integer: + TA_SetOutputParamIntegerPtr(paramHolder,i,&output_int[i][0]); + for( j=0; j < 2000; j++ ) + output_int[i][j] = TA_INTEGER_MIN; + break; + } + } + + for( h=0; h < 2; h++ ) + { + for( i=0; i < nbOuterLoop; i++ ) + { + for( j=0; j < nbInnerLoop; j++ ) + { + /* Prepare input. */ + for( k=0; k < (int)funcInfo->nbInput; k++ ) + { + TA_GetInputParameterInfo( handle, k, &inputInfo ); + switch(inputInfo->type) + { + case TA_Input_Price: + TA_SetInputParamPricePtr( paramHolder, k, + inputInfo->flags&TA_IN_PRICE_OPEN?&gDataOpen[j*stepSize]:NULL, + inputInfo->flags&TA_IN_PRICE_HIGH?&gDataHigh[j*stepSize]:NULL, + inputInfo->flags&TA_IN_PRICE_LOW?&gDataLow[j*stepSize]:NULL, + inputInfo->flags&TA_IN_PRICE_CLOSE?&gDataClose[j*stepSize]:NULL, + inputInfo->flags&TA_IN_PRICE_VOLUME?&gDataClose[j*stepSize]:NULL, NULL ); + break; + case TA_Input_Real: + TA_SetInputParamRealPtr( paramHolder, k, &gDataClose[j*stepSize] ); + break; + case TA_Input_Integer: + printf( "\nError: Integer input not yet supported for profiling.\n" ); + return TA_ABS_TST_FAIL_CALLFUNC_1; + break; + } + } + + #ifdef WIN32 + QueryPerformanceCounter(&startClock); + #else + startClock = clock(); + #endif + + /* Do the function call. */ + retCode = TA_CallFunc(paramHolder,0,inputSize-1,&outBegIdx,&outNbElement); + if( retCode != TA_SUCCESS ) + { + printf( "TA_CallFunc() failed zero data test [%d]\n", retCode ); + TA_ParamHolderFree( paramHolder ); + return TA_ABS_TST_FAIL_CALLFUNC_1; + } + + #ifdef WIN32 + QueryPerformanceCounter(&endClock); + clockDelta = (double)((__int64)endClock.QuadPart - (__int64) startClock.QuadPart); + #else + endClock = clock(); + clockDelta = (double)(endClock - startClock); + #endif + + /* Setup global profiling info. */ + if( clockDelta <= 0 ) + { + printf( "Error: Insufficient timer precision to perform benchmarking on this platform.\n" ); + return TA_ABS_TST_FAIL_CALLFUNC_1; + } + else + { + if( clockDelta > worstProfiledCall ) + worstProfiledCall = clockDelta; + timeInProfiledCall += clockDelta; + nbProfiledCall++; + } + + /* Setup local profiling info for this particular function. */ + if( clockDelta > worstProfiledCallLocal ) + worstProfiledCallLocal = clockDelta; + timeInProfiledCallLocal += clockDelta; + nbProfiledCallLocal++; + } + } + } + + /* Output statistic (remove worst call, average the others. */ + printf( "%g ", (timeInProfiledCallLocal-worstProfiledCallLocal)/(double)(nbProfiledCallLocal-1)); + + retCode = TA_ParamHolderFree( paramHolder ); + if( retCode != TA_SUCCESS ) + { + printf( "TA_ParamHolderFree failed [%d]\n", retCode ); + return TA_ABS_TST_FAIL_PARAMHOLDERFREE; + } + + return TA_TEST_PASS; +} diff --git a/src/tools/ta_regtest/test_data.c b/src/tools/ta_regtest/test_data.c new file mode 100644 index 000000000..c4400e043 --- /dev/null +++ b/src/tools/ta_regtest/test_data.c @@ -0,0 +1,145 @@ +/* Input price data used to do regression tests. */ +#include "ta_libc.h" + +/* Market data used for profiling (10000 price bars). */ +#include "ta_gDataOpen.c" +#include "ta_gDataHigh.c" +#include "ta_gDataLow.c" +#include "ta_gDataClose.c" + +/* Market data used for regression tests (252 price bars). */ +TA_Real TA_SREF_open_daily_ref_0_PRIV[252] = {92.500000,91.500000,95.155000,93.970000,95.500000,94.500000,95.000000,91.500000,91.815000,91.125000,93.875000, +97.500000,98.815000,92.000000,91.125000,91.875000,93.405000,89.750000,89.345000,92.250000,89.780000, +87.940000,87.595000,85.220000,83.500000,83.500000,81.250000,85.125000,88.125000,87.500000,85.250000, +86.000000,87.190000,86.125000,89.000000,88.625000,86.000000,85.500000,84.750000,85.250000,84.250000, +86.750000,86.940000,89.315000,89.940000,90.815000,91.190000,91.345000,89.595000,91.000000,89.750000, +88.750000,88.315000,84.345000,83.500000,84.000000,86.000000,85.530000,87.500000,88.500000,90.000000, +88.655000,89.500000,91.565000,92.000000,93.000000,92.815000,91.750000,92.000000,91.375000,89.750000, +88.750000,85.440000,83.500000,84.875000,98.625000,96.690000,102.375000,106.000000,104.625000,102.500000, +104.250000,104.000000,106.125000,106.065000,105.940000,105.625000,108.625000,110.250000,110.565000,117.000000, +120.750000,118.000000,119.125000,119.125000,117.815000,116.375000,115.155000,111.250000,111.500000,116.690000, +116.000000,113.620000,111.750000,114.560000,113.620000,118.120000,119.870000,116.620000,115.870000,115.060000, +115.870000,117.500000,119.870000,119.250000,120.190000,122.870000,123.870000,122.250000,123.120000,123.310000, +124.000000,123.000000,124.810000,130.000000,130.880000,132.500000,131.000000,132.500000,134.000000,137.440000, +135.750000,138.310000,138.000000,136.380000,136.500000,132.000000,127.500000,127.620000,124.000000,123.620000, +125.000000,126.370000,126.250000,125.940000,124.000000,122.750000,120.000000,120.000000,122.000000,123.620000, +121.500000,120.120000,123.750000,122.750000,125.000000,128.500000,128.380000,123.870000,124.370000,122.750000, +123.370000,122.000000,122.620000,125.000000,124.250000,124.370000,125.620000,126.500000,128.380000,128.880000, +131.500000,132.500000,137.500000,134.630000,132.000000,134.000000,132.000000,131.380000,126.500000,128.750000, +127.190000,127.500000,120.500000,126.620000,123.000000,122.060000,121.000000,121.000000,118.000000,122.000000, +122.250000,119.120000,115.000000,113.500000,114.000000,110.810000,106.500000,106.440000,108.000000,107.000000, +108.620000,93.000000,93.750000,94.250000,94.870000,95.500000,94.500000,97.000000,98.500000,96.750000, +95.870000,94.440000,92.750000,90.500000,95.060000,94.620000,97.500000,96.000000,96.000000,94.620000, +94.870000,94.000000,99.000000,105.500000,108.810000,105.000000,105.940000,104.940000,103.690000,102.560000, +103.440000,109.810000,113.000000,117.000000,116.250000,120.500000,111.620000,108.120000,110.190000,107.750000, +108.000000,110.690000,109.060000,108.500000,109.870000,109.120000,109.690000,109.560000,110.440000,109.690000, +109.190000}; + +TA_Real TA_SREF_high_daily_ref_0_PRIV[252] = {93.250000,94.940000,96.375000,96.190000,96.000000,94.720000,95.000000,93.720000,92.470000,92.750000,96.250000, +99.625000,99.125000,92.750000,91.315000,93.250000,93.405000,90.655000,91.970000,92.250000,90.345000, +88.500000,88.250000,85.500000,84.440000,84.750000,84.440000,89.405000,88.125000,89.125000,87.155000, +87.250000,87.375000,88.970000,90.000000,89.845000,86.970000,85.940000,84.750000,85.470000,84.470000, +88.500000,89.470000,90.000000,92.440000,91.440000,92.970000,91.720000,91.155000,91.750000,90.000000, +88.875000,89.000000,85.250000,83.815000,85.250000,86.625000,87.940000,89.375000,90.625000,90.750000, +88.845000,91.970000,93.375000,93.815000,94.030000,94.030000,91.815000,92.000000,91.940000,89.750000, +88.750000,86.155000,84.875000,85.940000,99.375000,103.280000,105.375000,107.625000,105.250000,104.500000, +105.500000,106.125000,107.940000,106.250000,107.000000,108.750000,110.940000,110.940000,114.220000,123.000000, +121.750000,119.815000,120.315000,119.375000,118.190000,116.690000,115.345000,113.000000,118.315000,116.870000, +116.750000,113.870000,114.620000,115.310000,116.000000,121.690000,119.870000,120.870000,116.750000,116.500000, +116.000000,118.310000,121.500000,122.000000,121.440000,125.750000,127.750000,124.190000,124.440000,125.750000, +124.690000,125.310000,132.000000,131.310000,132.250000,133.880000,133.500000,135.500000,137.440000,138.690000, +139.190000,138.500000,138.130000,137.500000,138.880000,132.130000,129.750000,128.500000,125.440000,125.120000, +126.500000,128.690000,126.620000,126.690000,126.000000,123.120000,121.870000,124.000000,127.000000,124.440000, +122.500000,123.750000,123.810000,124.500000,127.870000,128.560000,129.630000,124.870000,124.370000,124.870000, +123.620000,124.060000,125.870000,125.190000,125.620000,126.000000,128.500000,126.750000,129.750000,132.690000, +133.940000,136.500000,137.690000,135.560000,133.560000,135.000000,132.380000,131.440000,130.880000,129.630000, +127.250000,127.810000,125.000000,126.810000,124.750000,122.810000,122.250000,121.060000,120.000000,123.250000, +122.750000,119.190000,115.060000,116.690000,114.870000,110.870000,107.250000,108.870000,109.000000,108.500000, +113.060000,93.000000,94.620000,95.120000,96.000000,95.560000,95.310000,99.000000,98.810000,96.810000, +95.940000,94.440000,92.940000,93.940000,95.500000,97.060000,97.500000,96.250000,96.370000,95.000000, +94.870000,98.250000,105.120000,108.440000,109.870000,105.000000,106.000000,104.940000,104.500000,104.440000, +106.310000,112.870000,116.500000,119.190000,121.000000,122.120000,111.940000,112.750000,110.190000,107.940000, +109.690000,111.060000,110.440000,110.120000,110.310000,110.440000,110.000000,110.750000,110.500000,110.500000, +109.500000}; + +TA_Real TA_SREF_low_daily_ref_0_PRIV[252] = {90.750000,91.405000,94.250000,93.500000,92.815000,93.500000,92.000000,89.750000,89.440000,90.625000,92.750000, +96.315000,96.030000,88.815000,86.750000,90.940000,88.905000,88.780000,89.250000,89.750000,87.500000, +86.530000,84.625000,82.280000,81.565000,80.875000,81.250000,84.065000,85.595000,85.970000,84.405000, +85.095000,85.500000,85.530000,87.875000,86.565000,84.655000,83.250000,82.565000,83.440000,82.530000, +85.065000,86.875000,88.530000,89.280000,90.125000,90.750000,89.000000,88.565000,90.095000,89.000000, +86.470000,84.000000,83.315000,82.000000,83.250000,84.750000,85.280000,87.190000,88.440000,88.250000, +87.345000,89.280000,91.095000,89.530000,91.155000,92.000000,90.530000,89.970000,88.815000,86.750000, +85.065000,82.030000,81.500000,82.565000,96.345000,96.470000,101.155000,104.250000,101.750000,101.720000, +101.720000,103.155000,105.690000,103.655000,104.000000,105.530000,108.530000,108.750000,107.750000,117.000000, +118.000000,116.000000,118.500000,116.530000,116.250000,114.595000,110.875000,110.500000,110.720000,112.620000, +114.190000,111.190000,109.440000,111.560000,112.440000,117.500000,116.060000,116.560000,113.310000,112.560000, +114.000000,114.750000,118.870000,119.000000,119.750000,122.620000,123.000000,121.750000,121.560000,123.120000, +122.190000,122.750000,124.370000,128.000000,129.500000,130.810000,130.630000,132.130000,133.880000,135.380000, +135.750000,136.190000,134.500000,135.380000,133.690000,126.060000,126.870000,123.500000,122.620000,122.750000, +123.560000,125.810000,124.620000,124.370000,121.810000,118.190000,118.060000,117.560000,121.000000,121.120000, +118.940000,119.810000,121.000000,122.000000,124.500000,126.560000,123.500000,121.250000,121.060000,122.310000, +121.000000,120.870000,122.060000,122.750000,122.690000,122.870000,125.500000,124.250000,128.000000,128.380000, +130.690000,131.630000,134.380000,132.000000,131.940000,131.940000,129.560000,123.750000,126.000000,126.250000, +124.370000,121.440000,120.440000,121.370000,121.690000,120.000000,119.620000,115.500000,116.750000,119.060000, +119.060000,115.060000,111.060000,113.120000,110.000000,105.000000,104.690000,103.870000,104.690000,105.440000, +107.000000,89.000000,92.500000,92.120000,94.620000,92.810000,94.250000,96.250000,96.370000,93.690000, +93.500000,90.000000,90.190000,90.500000,92.120000,94.120000,94.870000,93.000000,93.870000,93.000000, +92.620000,93.560000,98.370000,104.440000,106.000000,101.810000,104.120000,103.370000,102.120000,102.250000, +103.370000,107.940000,112.500000,115.440000,115.500000,112.250000,107.560000,106.560000,106.870000,104.500000, +105.750000,108.620000,107.750000,108.060000,108.000000,108.190000,108.120000,109.060000,108.750000,108.560000, +106.620000}; + +TA_Real TA_SREF_close_daily_ref_0_PRIV[252] = {91.500000,94.815000,94.375000,95.095000,93.780000,94.625000,92.530000,92.750000,90.315000,92.470000,96.125000, +97.250000,98.500000,89.875000,91.000000,92.815000,89.155000,89.345000,91.625000,89.875000,88.375000, +87.625000,84.780000,83.000000,83.500000,81.375000,84.440000,89.250000,86.375000,86.250000,85.250000, +87.125000,85.815000,88.970000,88.470000,86.875000,86.815000,84.875000,84.190000,83.875000,83.375000, +85.500000,89.190000,89.440000,91.095000,90.750000,91.440000,89.000000,91.000000,90.500000,89.030000, +88.815000,84.280000,83.500000,82.690000,84.750000,85.655000,86.190000,88.940000,89.280000,88.625000, +88.500000,91.970000,91.500000,93.250000,93.500000,93.155000,91.720000,90.000000,89.690000,88.875000, +85.190000,83.375000,84.875000,85.940000,97.250000,99.875000,104.940000,106.000000,102.500000,102.405000, +104.595000,106.125000,106.000000,106.065000,104.625000,108.625000,109.315000,110.500000,112.750000,123.000000, +119.625000,118.750000,119.250000,117.940000,116.440000,115.190000,111.875000,110.595000,118.125000,116.000000, +116.000000,112.000000,113.750000,112.940000,116.000000,120.500000,116.620000,117.000000,115.250000,114.310000, +115.500000,115.870000,120.690000,120.190000,120.750000,124.750000,123.370000,122.940000,122.560000,123.120000, +122.560000,124.620000,129.250000,131.000000,132.250000,131.000000,132.810000,134.000000,137.380000,137.810000, +137.880000,137.250000,136.310000,136.250000,134.630000,128.250000,129.000000,123.870000,124.810000,123.000000, +126.250000,128.380000,125.370000,125.690000,122.250000,119.370000,118.500000,123.190000,123.500000,122.190000, +119.310000,123.310000,121.120000,123.370000,127.370000,128.500000,123.870000,122.940000,121.750000,124.440000, +122.000000,122.370000,122.940000,124.000000,123.190000,124.560000,127.250000,125.870000,128.860000,132.000000, +130.750000,134.750000,135.000000,132.380000,133.310000,131.940000,130.000000,125.370000,130.130000,127.120000, +125.190000,122.000000,125.000000,123.000000,123.500000,120.060000,121.000000,117.750000,119.870000,122.000000, +119.190000,116.370000,113.500000,114.250000,110.000000,105.060000,107.000000,107.870000,107.000000,107.120000, +107.000000,91.000000,93.940000,93.870000,95.500000,93.000000,94.940000,98.250000,96.750000,94.810000, +94.370000,91.560000,90.250000,93.940000,93.620000,97.000000,95.000000,95.870000,94.060000,94.620000, +93.750000,98.000000,103.940000,107.870000,106.060000,104.500000,105.000000,104.190000,103.060000,103.420000, +105.270000,111.870000,116.000000,116.620000,118.280000,113.370000,109.000000,109.700000,109.250000,107.000000, +109.190000,110.000000,109.200000,110.120000,108.000000,108.620000,109.750000,109.810000,109.000000,108.750000, +107.870000}; + +TA_Real TA_SREF_volume_daily_ref_0_PRIV[252] = {4077500,4955900,4775300,4155300,4593100,3631300,3382800,4954200,4500000,3397500,4204500, +6321400,10203600,19043900,11692000,9553300,8920300,5970900,5062300,3705600,5865600, +5603000,5811900,8483800,5995200,5408800,5430500,6283800,5834800,4515500,4493300, +4346100,3700300,4600200,4557200,4323600,5237500,7404100,4798400,4372800,3872300, +10750800,5804800,3785500,5014800,3507700,4298800,4842500,3952200,3304700,3462000, +7253900,9753100,5953000,5011700,5910800,4916900,4135000,4054200,3735300,2921900, +2658400,4624400,4372200,5831600,4268600,3059200,4495500,3425000,3630800,4168100, +5966900,7692800,7362500,6581300,19587700,10378600,9334700,10467200,5671400,5645000, +4518600,4519500,5569700,4239700,4175300,4995300,4776600,4190000,6035300,12168900, +9040800,5780300,4320800,3899100,3221400,3455500,4304200,4703900,8316300,10553900, +6384800,7163300,7007800,5114100,5263800,6666100,7398400,5575000,4852300,4298100, +4900500,4887700,6964800,4679200,9165000,6469800,6792000,4423800,5231900,4565600, +6235200,5225900,8261400,5912500,3545600,5714500,6653900,6094500,4799200,5050800, +5648900,4726300,5585600,5124800,7630200,14311600,8793600,8874200,6966600,5525500, +6515500,5291900,5711700,4327700,4568000,6859200,5757500,7367000,6144100,4052700, +5849700,5544700,5032200,4400600,4894100,5140000,6610900,7585200,5963100,6045500, +8443300,6464700,6248300,4357200,4774700,6216900,6266900,5584800,5284500,7554500, +7209500,8424800,5094500,4443600,4591100,5658400,6094100,14862200,7544700,6985600, +8093000,7590000,7451300,7078000,7105300,8778800,6643900,10563900,7043100,6438900, +8057700,14240000,17872300,7831100,8277700,15017800,14183300,13921100,9683000,9187300, +11380500,69447300,26673600,13768400,11371600,9872200,9450500,11083300,9552800,11108400, +10374200,16701900,13741900,8523600,9551900,8680500,7151700,9673100,6264700,8541600, +8358000,18720800,19683100,13682500,10668100,9710600,3113100,5682000,5763600,5340000, +6220800,14680500,9933000,11329500,8145300,16644700,12593800,7138100,7442300,9442300, +7123600,7680600,4839800,4775500,4008800,4533600,3741100,4084800,2685200,3438000, +2870500}; + diff --git a/src/tools/ta_regtest/test_internals.c b/src/tools/ta_regtest/test_internals.c new file mode 100644 index 000000000..00ba471be --- /dev/null +++ b/src/tools/ta_regtest/test_internals.c @@ -0,0 +1,274 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * MF Mario Fortier + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 070401 MF First version. + * 050104 MF Add TA_RegressionTest calls. + * 080605 MF Add tests for pseudo-random generator. + * 091705 MF Add tests for TA_AddTimeToTimestamp (Fix#1293953). + * 110906 MF Remove pseudo-random to eliminate dependencies. + */ + +/* Description: + * Regression testing of some internal utility like: + * - collections: List/Stack/Circular buffer. + * - Memory allocation mechanism. + * etc... + */ + +/**** Headers ****/ +#include +#include + +#include "ta_test_priv.h" +#include "ta_memory.h" +#include "ta_defs.h" +#include "ta_common.h" + + +/**** External functions declarations. ****/ +/* None */ + +/**** External variables declarations. ****/ +/* None */ + +/**** Global variables definitions. ****/ +/* None */ + +/**** Local declarations. ****/ +/* None */ + +/**** Local functions declarations. ****/ +static ErrorNumber testCircularBuffer( void ); + +static TA_RetCode circBufferFillFrom0ToSize( int size, int *buffer ); + + +/**** Local variables definitions. ****/ +/* None */ + +/**** Global functions definitions. ****/ +/* None */ + +/**** Local functions definitions. ****/ +ErrorNumber test_internals( void ) +{ + ErrorNumber retValue; + + printf( "Testing utility functions\n" ); + + retValue = testCircularBuffer(); + if( retValue != TA_TEST_PASS ) + { + printf( "\nFailed: Circular buffer tests (%d)\n", retValue ); + return retValue; + } + + return TA_TEST_PASS; /* Success. */ +} + +static ErrorNumber testCircularBuffer( void ) +{ + TA_RetCode retCode; + int i; + int buffer[20]; + ErrorNumber retValue; + + /* Initialize the library. */ + retValue = allocLib(); + if( retValue != TA_TEST_PASS ) + { + printf( "\nFailed: Can't initialize the library\n" ); + return retValue; + } + + /* The following function is supose to fill + * the buffer with the value 0 to 8 sequentialy, + * if somehow it is not 0 to 8, there is a bug! + */ + memset( buffer, 0xFF, sizeof(buffer) ); + retCode = circBufferFillFrom0ToSize( 1, buffer ); + if( retCode != TA_SUCCESS ) + { + printf( "\nFailed circular buffer test RetCode = %d\n", retCode ); + return TA_INTERNAL_CIRC_BUFF_FAIL_0; + } + for( i=0; i < (1+3); i++ ) + { + if( buffer[i] != i ) + { + printf( "\nFailed circular buffer test (%d != %d)\n", buffer[i], i ); + return TA_INTERNAL_CIRC_BUFF_FAIL_1; + } + } + + memset( buffer, 0xFF, sizeof(buffer) ); + retCode = circBufferFillFrom0ToSize( 2, buffer ); + if( retCode != TA_SUCCESS ) + { + printf( "\nFailed circular buffer test RetCode = %d\n", retCode ); + return TA_INTERNAL_CIRC_BUFF_FAIL_0; + } + for( i=0; i < (2+3); i++ ) + { + if( buffer[i] != i ) + { + printf( "\nFailed circular buffer test (%d != %d)\n", buffer[i], i ); + return TA_INTERNAL_CIRC_BUFF_FAIL_2; + } + } + + memset( buffer, 0xFF, sizeof(buffer) ); + retCode = circBufferFillFrom0ToSize( 3, buffer ); + if( retCode != TA_SUCCESS ) + { + printf( "\nFailed circular buffer test RetCode = %d\n", retCode ); + return TA_INTERNAL_CIRC_BUFF_FAIL_0; + } + for( i=0; i < (3+3); i++ ) + { + if( buffer[i] != i ) + { + printf( "\nFailed circular buffer test (%d != %d)\n", buffer[i], i ); + return TA_INTERNAL_CIRC_BUFF_FAIL_3; + } + } + + memset( buffer, 0xFF, sizeof(buffer) ); + retCode = circBufferFillFrom0ToSize( 4, buffer ); + if( retCode != TA_SUCCESS ) + { + printf( "\nFailed circular buffer test RetCode = %d\n", retCode ); + return TA_INTERNAL_CIRC_BUFF_FAIL_0; + } + for( i=0; i < (4+3); i++ ) + { + if( buffer[i] != i ) + { + printf( "\nFailed circular buffer test (%d != %d)\n", buffer[i], i ); + return TA_INTERNAL_CIRC_BUFF_FAIL_4; + } + } + + memset( buffer, 0xFF, sizeof(buffer) ); + retCode = circBufferFillFrom0ToSize( 5, buffer ); + if( retCode != TA_SUCCESS ) + { + printf( "\nFailed circular buffer test RetCode = %d\n", retCode ); + return TA_INTERNAL_CIRC_BUFF_FAIL_0; + } + for( i=0; i < (5+3); i++ ) + { + if( buffer[i] != i ) + { + printf( "\nFailed circular buffer test (%d != %d)\n", buffer[i], i ); + return TA_INTERNAL_CIRC_BUFF_FAIL_5; + } + } + + memset( buffer, 0xFF, sizeof(buffer) ); + retCode = circBufferFillFrom0ToSize( 6, buffer ); + if( retCode != TA_SUCCESS ) + { + printf( "\nFailed circular buffer test RetCode = %d\n", retCode ); + return TA_INTERNAL_CIRC_BUFF_FAIL_0; + } + for( i=0; i < (6+3); i++ ) + { + if( buffer[i] != i ) + { + printf( "\nFailed circular buffer test (%d != %d)\n", buffer[i], i ); + return TA_INTERNAL_CIRC_BUFF_FAIL_6; + } + } + + retValue = freeLib(); + if( retValue != TA_TEST_PASS ) + return retValue; + + return TA_TEST_PASS; /* Success. */ +} + +/* This function is suppose to fill the buffer + * with values going from 0 to 'size'. + * The filling is done using the CIRCBUF macros. + */ +static TA_RetCode circBufferFillFrom0ToSize( int size, int *buffer ) +{ + CIRCBUF_PROLOG(MyBuf,int,4); + int i, value; + int outIdx; + + CIRCBUF_INIT(MyBuf,int,size); + + outIdx = 0; + + // 1st Loop: Fill MyBuf with initial values + // (must be done). + value = 0; + for( i=0; i < size; i++ ) + { + MyBuf[MyBuf_Idx] = value++; + CIRCBUF_NEXT(MyBuf); + } + + // 2nd Loop: Get and Add subsequent values + // in MyBuf (optional) + for( i=0; i < 3; i++ ) + { + buffer[outIdx++] = MyBuf[MyBuf_Idx]; + MyBuf[MyBuf_Idx] = value++; + CIRCBUF_NEXT(MyBuf); + } + + // 3rd Loop: Empty MyBuf (optional) + for( i=0; i < size; i++ ) + { + buffer[outIdx++] = MyBuf[MyBuf_Idx]; + CIRCBUF_NEXT(MyBuf); + } + + CIRCBUF_DESTROY(MyBuf); + + return TA_SUCCESS; +} diff --git a/src/tools/ta_regtest/test_util.c b/src/tools/ta_regtest/test_util.c new file mode 100644 index 000000000..b32757f86 --- /dev/null +++ b/src/tools/ta_regtest/test_util.c @@ -0,0 +1,1338 @@ +/* TA-LIB Copyright (c) 1999-2007, Mario Fortier + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or + * without modification, are permitted provided that the following + * conditions are met: + * + * - Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * + * - Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * + * - Neither name of author nor the names of its contributors + * may be used to endorse or promote products derived from this + * software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS + * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE + * REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS + * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, + * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE + * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, + * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +/* List of contributors: + * + * Initial Name/description + * ------------------------------------------------------------------- + * MF Mario Fortier + * + * + * Change history: + * + * MMDDYY BY Description + * ------------------------------------------------------------------- + * 112400 MF First version. + * + */ + +/* Description: + * Provide utility function internally used in ta_regtest only. + */ + +/**** Headers ****/ +#ifdef WIN32 + #include "windows.h" +#endif + +#include +#include +#include +#include +#include "ta_test_priv.h" +#include "ta_utility.h" +#include "ta_memory.h" + + +/**** External functions declarations. ****/ +/* None */ + +/**** External variables declarations. ****/ +extern int nbProfiledCall; +extern double timeInProfiledCall; +extern double worstProfiledCall; +extern int insufficientClockPrecision; + +/**** Global variables definitions. ****/ + +/* Global temporary buffers used while testing. */ +#define RESV_PATTERN_MEMGUARD_1 (2.4789205E-150) +#define RESV_PATTERN_MEMGUARD_2 (4.2302468E-165) + +#define RESV_PATTERN_PREFIX (9.1349043E-200) +#define RESV_PATTERN_SUFFIX (8.1489031E-158) +#define RESV_PATTERN_IMPROBABLE (-2.849284E-199) + +#define RESV_PATTERN_PREFIX_INT (TA_INTEGER_DEFAULT) +#define RESV_PATTERN_SUFFIX_INT (TA_INTEGER_DEFAULT) +#define RESV_PATTERN_IMPROBABLE_INT (TA_INTEGER_DEFAULT) + +#define TA_BUF_PREFIX 100 +#define TA_BUF_SUFFIX 100 +#define TA_BUF_SIZE (TA_BUF_PREFIX+MAX_NB_TEST_ELEMENT+TA_BUF_SUFFIX) + +#define TA_NB_OUT 3 +#define TA_NB_IN 1 +#define TA_NB_OUT_IN (TA_NB_OUT+TA_NB_IN) + +TA_Real memoryGuard1 = RESV_PATTERN_MEMGUARD_1; /* Magic number to detect problem. */ +TA_Real buf[NB_GLOBAL_BUFFER][TA_NB_OUT_IN][TA_BUF_SIZE]; /* The global buffers. */ +TA_Real memoryGuard2 = RESV_PATTERN_MEMGUARD_2; /* Magic number to detect problem. */ + +#define NB_TOTAL_ELEMENTS (sizeof(buf)/sizeof(TA_Real)) + +TestBuffer gBuffer[5]; /* See initGlobalBuffer. */ + +/**** Local declarations. ****/ +/* None */ + +/**** Local functions declarations. ****/ +static ErrorNumber doRangeTestFixSize( RangeTestFunction testFunction, + void *opaqueData, + TA_Integer refOutBeg, + TA_Integer refOutNbElement, + TA_Integer refLookback, + const TA_Real *refBuffer, + const TA_Integer *refBufferInt, + TA_FuncUnstId unstId, + TA_Integer fixSize, + unsigned int outputNb, + unsigned int integerTolerance ); + +static int dataWithinReasonableRange( TA_Real val1, TA_Real val2, + unsigned int outputPosition, + TA_FuncUnstId unstId, + unsigned int integerTolerance ); + +static ErrorNumber doRangeTestForOneOutput( RangeTestFunction testFunction, + TA_FuncUnstId unstId, + void *opaqueData, + unsigned int outputNb, + unsigned int integerTolerance ); + +static TA_RetCode CallTestFunction( RangeTestFunction testFunction, + TA_Integer startIdx, + TA_Integer endIdx, + TA_Real *outputBuffer, + TA_Integer *outputBufferInt, + TA_Integer *outBegIdx, + TA_Integer *outNbElement, + TA_Integer *lookback, + void *opaqueData, + unsigned int outputNb, + unsigned int *isOutputInteger ); + +/**** Local variables definitions. ****/ +/* None */ + +/**** Global functions definitions. ****/ +static int ta_g_val = 0; +static const char *ta_g_wheel = "-\\|/"; +void showFeedback() +{ + if( ta_g_wheel[ta_g_val] == '\0' ) + ta_g_val = 0; + putchar('\b'); + putchar(ta_g_wheel[ta_g_val]); + fflush(stdout); + ta_g_val++; +} + +void hideFeedback() +{ + putchar('\b'); + fflush(stdout); + ta_g_val = 0; +} + +ErrorNumber allocLib() +{ + TA_RetCode retCode; + + /* Initialize the library. */ + retCode = TA_Initialize(); + if( retCode != TA_SUCCESS ) + { + printf( "TA_Initialize failed [%d]\n", retCode ); + return TA_TESTUTIL_INIT_FAILED; + } + + return TA_TEST_PASS; +} + +ErrorNumber freeLib() +{ + TA_RetCode retCode; + + /* For testing purpose */ + /* TA_FATAL_RET( "Test again", 100, 200, 0 ); */ + + retCode = TA_Shutdown(); + if( retCode != TA_SUCCESS ) + { + printf( "TA_Shutdown failed [%d]\n", retCode ); + return TA_TESTUTIL_SHUTDOWN_FAILED; + } + + return TA_TEST_PASS; +} + +void reportError( const char *str, TA_RetCode retCode ) +{ + TA_RetCodeInfo retCodeInfo; + + TA_SetRetCodeInfo( retCode, &retCodeInfo ); + + printf( "%s,%d==%s\n", str, retCode, retCodeInfo.enumStr ); + printf( "[%s]\n", retCodeInfo.infoStr ); +} + +/* Need to be called only once. */ +void initGlobalBuffer( void ) +{ + gBuffer[0].in = &buf[0][0][TA_BUF_PREFIX]; + gBuffer[0].out0 = &buf[0][1][TA_BUF_PREFIX]; + gBuffer[0].out1 = &buf[0][2][TA_BUF_PREFIX]; + gBuffer[0].out2 = &buf[0][3][TA_BUF_PREFIX]; + + gBuffer[1].in = &buf[1][0][TA_BUF_PREFIX]; + gBuffer[1].out0 = &buf[1][1][TA_BUF_PREFIX]; + gBuffer[1].out1 = &buf[1][2][TA_BUF_PREFIX]; + gBuffer[1].out2 = &buf[1][3][TA_BUF_PREFIX]; + + gBuffer[2].in = &buf[2][0][TA_BUF_PREFIX]; + gBuffer[2].out0 = &buf[2][1][TA_BUF_PREFIX]; + gBuffer[2].out1 = &buf[2][2][TA_BUF_PREFIX]; + gBuffer[2].out2 = &buf[2][3][TA_BUF_PREFIX]; + + gBuffer[3].in = &buf[3][0][TA_BUF_PREFIX]; + gBuffer[3].out0 = &buf[3][1][TA_BUF_PREFIX]; + gBuffer[3].out1 = &buf[3][2][TA_BUF_PREFIX]; + gBuffer[3].out2 = &buf[3][3][TA_BUF_PREFIX]; + + gBuffer[4].in = &buf[4][0][TA_BUF_PREFIX]; + gBuffer[4].out0 = &buf[4][1][TA_BUF_PREFIX]; + gBuffer[4].out1 = &buf[4][2][TA_BUF_PREFIX]; + gBuffer[4].out2 = &buf[4][3][TA_BUF_PREFIX]; +} + +/* Will set some values in the buffers allowing + * to detect later if the function is writing + * out-of-bound (and to make sure the + * function is writing exactly the number + * of values it pretends to do). + */ +void clearAllBuffers( void ) +{ + unsigned int i,j,k; + + for( i=0; i < NB_GLOBAL_BUFFER; i++ ) + { + for( j=0; j < TA_NB_OUT_IN; j++ ) + { + for( k=0; k < TA_BUF_PREFIX; k++ ) + buf[i][j][k] = RESV_PATTERN_PREFIX; + for( ; k < TA_BUF_SIZE; k++ ) + buf[i][j][k] = RESV_PATTERN_SUFFIX; + } + } +} + +void setInputBuffer( unsigned int i, const TA_Real *data, unsigned int nbElement ) +{ + unsigned int j; + for( j=0; j < nbElement; j++ ) + buf[i][0][j+TA_BUF_PREFIX] = data[j]; +} + +void setInputBufferValue( unsigned int i, const TA_Real data, unsigned int nbElement ) +{ + unsigned int j; + for( j=0; j < nbElement; j++ ) + buf[i][0][j+TA_BUF_PREFIX] = data; + +} + +/* Check that a buffer (within a TestBuffer) is not containing + * NAN (or any reserved "impossible" value) within the specified + * range (it also checks that all out-of-bound values are untouch). + * + * Return 1 on success. + */ +ErrorNumber checkForNAN( const TA_Real *buffer, + unsigned int nbElement ) +{ + unsigned int i; + unsigned int idx; + + const TA_Real *theBuffer; + theBuffer = buffer - TA_BUF_PREFIX; + + /* Check that the prefix are all still untouch. */ + for( idx=0; idx < TA_BUF_PREFIX; idx++ ) + { + if( theBuffer[idx] != RESV_PATTERN_PREFIX ) + { + printf( "Fail: Out of range writing in prefix buffer (%d,%f)\n", idx, theBuffer[idx] ); + return TA_TEST_TFRR_OVERLAP_OR_NAN_0; + } + } + + if( nbElement > MAX_NB_TEST_ELEMENT ) + { + printf( "Fail: outNbElement is out of range 0 (%d)\n", nbElement ); + return TA_TEST_TFRR_NB_ELEMENT_OUT_OF_RANGE; + } + + /* Check that no NAN (or reserved "impossible" value) exist + * in the specified range. + */ + for( i=0; i < nbElement; i++,idx++ ) + { + /* TODO Add back some nan/inf checking + if( trio_isnan(theBuffer[idx]) ) + { + printf( "Fail: Not a number find within the data (%d,%f)\n", i, theBuffer[idx] ); + return TA_TEST_TFRR_OVERLAP_OR_NAN_1; + } + + if( trio_isinf(theBuffer[idx]) ) + { + printf( "Fail: Not a number find within the data (%d,%f)\n", i, theBuffer[idx] ); + return TA_TEST_TFRR_OVERLAP_OR_NAN_2; + }*/ + + if( theBuffer[idx] == RESV_PATTERN_PREFIX ) + { + printf( "Fail: Not a number find within the data (%d,%f)\n", i, theBuffer[idx] ); + return TA_TEST_TFRR_OVERLAP_OR_NAN_3; + } + + if( theBuffer[idx] == RESV_PATTERN_SUFFIX ) + { + printf( "Fail: Not a number find within the data (%d,%f)\n", i, theBuffer[idx] ); + return TA_TEST_TFRR_OVERLAP_OR_NAN_4; + } + } + + /* Make sure that the remaining of the buffer is untouch. */ + for( ; idx < TA_BUF_SIZE; idx++ ) + { + if( theBuffer[idx] != RESV_PATTERN_SUFFIX ) + { + printf( "Fail: Out of range writing in suffix buffer (%d,%f)\n", idx, theBuffer[idx] ); + return TA_TEST_TFRR_OVERLAP_OR_NAN_5; + } + + idx++; + } + + /* Make sure the global memory guard are untouch. */ + if( memoryGuard1 != RESV_PATTERN_MEMGUARD_1 ) + { + printf( "Fail: MemoryGuard1 have been modified (%f,%f)\n", memoryGuard1, RESV_PATTERN_MEMGUARD_1 ); + return TA_TEST_TFRR_OVERLAP_OR_NAN_6; + } + + if( memoryGuard2 != RESV_PATTERN_MEMGUARD_2 ) + { + printf( "Fail: MemoryGuard2 have been modified (%f,%f)\n", memoryGuard2, RESV_PATTERN_MEMGUARD_2 ); + return TA_TEST_TFRR_OVERLAP_OR_NAN_7; + } + + /* Everything looks good! */ + return TA_TEST_PASS; +} + +/* Return 1 on success */ +ErrorNumber checkSameContent( TA_Real *buffer1, + TA_Real *buffer2 ) +{ + const TA_Real *theBuffer1; + const TA_Real *theBuffer2; + + unsigned int i; + + theBuffer1 = buffer1 - TA_BUF_PREFIX; + theBuffer2 = buffer2 - TA_BUF_PREFIX; + + for( i=0; i < TA_BUF_SIZE; i++ ) + { + /* TODO Add back nan/inf checking + (!trio_isnan(theBuffer1[i])) && + (!trio_isinf(theBuffer1[i])) && + */ + + if( (theBuffer1[i] != RESV_PATTERN_SUFFIX) && + (theBuffer1[i] != RESV_PATTERN_PREFIX) ) + { + + if(!TA_REAL_EQ( theBuffer1[i], theBuffer2[i], 0.000001)) + { + printf( "Fail: Large difference found between two value expected identical (%f,%f,%d)\n", + theBuffer1[i], theBuffer2[i], i ); + return TA_TEST_TFRR_CHECK_SAME_CONTENT; + } + } + } + + return TA_TEST_PASS; +} + +ErrorNumber checkDataSame( const TA_Real *data, + const TA_Real *originalInput, + unsigned int nbElement ) +{ + unsigned int i; + ErrorNumber errNb; + + errNb = checkForNAN( data, nbElement ); + + if( errNb != TA_TEST_PASS ) + return errNb; + + if( nbElement > MAX_NB_TEST_ELEMENT ) + { + printf( "Fail: outNbElement is out of range 1 (%d)\n", nbElement ); + return TA_TEST_TFRR_NB_ELEMENT_OUT_OF_RANGE; + } + + for( i=0; i < nbElement; i++ ) + { + if( originalInput[i] != data[i] ) + { + printf( "Fail: Data was wrongly modified (%f,%f,%d)\n", + originalInput[i], + data[i], i ); + return TA_TEST_TFRR_INPUT_HAS_BEEN_MODIFIED; + } + } + + return TA_TEST_PASS; +} + +ErrorNumber checkExpectedValue( const TA_Real *data, + TA_RetCode retCode, TA_RetCode expectedRetCode, + unsigned int outBegIdx, unsigned int expectedBegIdx, + unsigned int outNbElement, unsigned int expectedNbElement, + TA_Real oneOfTheExpectedOutReal, + unsigned int oneOfTheExpectedOutRealIndex ) +{ + if( retCode != expectedRetCode ) + { + printf( "Fail: RetCode %d different than expected %d\n", retCode, expectedRetCode ); + return TA_TESTUTIL_TFRR_BAD_RETCODE; + } + + if( retCode != TA_SUCCESS ) + { + /* An error did occured, but it + * was expected. No need to go + * further. + */ + return TA_TEST_PASS; + } + + if( outNbElement > MAX_NB_TEST_ELEMENT ) + { + printf( "Fail: outNbElement is out of range 2 (%d)\n", outNbElement ); + return TA_TEST_TFRR_NB_ELEMENT_OUT_OF_RANGE; + } + + + /* Make sure the range of output does not contains NAN. */ + /* TODO Add back nan/inf checking + for( i=0; i < outNbElement; i++ ) + { + if( trio_isnan(data[i]) ) + { + printf( "Fail: Not a number find within the data (%d,%f)\n", i, data[i] ); + return TA_TEST_TFRR_OVERLAP_OR_NAN_3; + } + }*/ + + /* Verify that the expected output is there. */ + + if( outNbElement != expectedNbElement ) + { + printf( "Fail: outNbElement expected %d but got %d\n", + expectedNbElement, outNbElement ); + return TA_TESTUTIL_TFRR_BAD_OUTNBELEMENT; + } + + if( expectedNbElement > 0 ) + { + if( !TA_REAL_EQ( oneOfTheExpectedOutReal, data[oneOfTheExpectedOutRealIndex], 0.01 ) ) + { + printf( "Fail: For index %d, Expected value = %f but calculate value is %f\n", + oneOfTheExpectedOutRealIndex, + oneOfTheExpectedOutReal, + data[oneOfTheExpectedOutRealIndex] ); + return TA_TESTUTIL_TFRR_BAD_CALCULATION; + } + + if( expectedBegIdx != outBegIdx ) + { + printf( "Fail: outBegIdx expected %d but got %d\n", expectedBegIdx, outBegIdx ); + return TA_TESTUTIL_TFRR_BAD_BEGIDX; + } + } + + /* Succeed. */ + return TA_TEST_PASS; +} + + +ErrorNumber doRangeTest( RangeTestFunction testFunction, + TA_FuncUnstId unstId, + void *opaqueData, + unsigned int nbOutput, + unsigned int integerTolerance ) +{ + unsigned int outputNb; + ErrorNumber errNb; + + /* Test all the outputs individually. */ + for( outputNb=0; outputNb < nbOutput; outputNb++ ) + { + errNb = doRangeTestForOneOutput( testFunction, + unstId, + opaqueData, + outputNb, + integerTolerance ); + if( errNb != TA_TEST_PASS ) + { + printf( "Failed: For output #%d of %d\n", outputNb+1, nbOutput ); + return errNb; + } + } + + return TA_TEST_PASS; +} + +void printRetCode( TA_RetCode retCode ) +{ + TA_RetCodeInfo retCodeInfo; + + TA_SetRetCodeInfo( retCode, &retCodeInfo ); + printf( "\nFailed: ErrorCode %d=%s:[%s]\n", retCode, + retCodeInfo.enumStr, + retCodeInfo.infoStr ); +} + + + +/**** Local functions definitions. ****/ +static ErrorNumber doRangeTestForOneOutput( RangeTestFunction testFunction, + TA_FuncUnstId unstId, + void *opaqueData, + unsigned int outputNb, + unsigned int integerTolerance ) +{ + TA_RetCode retCode; + TA_Integer refOutBeg, refOutNbElement, refLookback; + TA_Integer fixSize; + TA_Real *refBuffer; + TA_Integer *refBufferInt; + ErrorNumber errNb; + TA_Integer unstablePeriod, temp; + unsigned int outputIsInteger; + + showFeedback(); + + /* Caculate the whole range. This is going + * to be the reference for all subsequent test. + */ + refBuffer = (TA_Real *)TA_Malloc( MAX_RANGE_SIZE * sizeof( TA_Real ) ); + + if( !refBuffer ) + return TA_TESTUTIL_DRT_ALLOC_ERR; + + refBufferInt = (TA_Integer *)TA_Malloc( MAX_RANGE_SIZE * sizeof( TA_Integer ) ); + + if( !refBufferInt ) + { + TA_Free( refBuffer ); + return TA_TESTUTIL_DRT_ALLOC_ERR; + } + + if( unstId != TA_FUNC_UNST_NONE ) + { + /* Caller wish to test for a range of unstable + * period values. But the reference is calculated + * on the whole range by keeping that unstable period + * to zero. + */ + TA_SetUnstablePeriod( unstId, 0 ); + } + + outputIsInteger = 0; + retCode = CallTestFunction( testFunction, 0, MAX_RANGE_END, refBuffer, refBufferInt, + &refOutBeg, &refOutNbElement, &refLookback, + opaqueData, outputNb, &outputIsInteger ); + + if( retCode != TA_SUCCESS ) + { + printf( "Fail: doRangeTest whole range failed (%d)\n", retCode ); + TA_Free( refBuffer ); + TA_Free( refBufferInt ); + return TA_TESTUTIL_DRT_REF_FAILED; + } + + /* When calculating for the whole range, the lookback and the + * refOutBeg are supppose to be equal. + */ + if( refLookback != refOutBeg ) + { + printf( "Fail: doRangeTest refLookback != refOutBeg (%d != %d)\n", refLookback, refOutBeg ); + TA_Free( refBuffer ); + TA_Free( refBufferInt ); + return TA_TESTUTIL_DRT_LOOKBACK_INCORRECT; + } + + temp = MAX_RANGE_SIZE-refLookback; + if( temp != refOutNbElement ) + { + printf( "Fail: doRangeTest either refOutNbElement or refLookback bad (%d,%d)\n", temp, refOutNbElement ); + TA_Free( refBuffer ); + TA_Free( refBufferInt ); + return TA_TESTUTIL_DRT_REF_OUTPUT_INCORRECT; + } + + /* Calculate each value ONE by ONE and make sure it is identical + * to the reference. + * + * Then repeat the test but calculate TWO by TWO and so on... + */ + for( fixSize=1; fixSize <= MAX_RANGE_SIZE; fixSize++ ) + { + /* When a function has an unstable period, verify some + * unstable period between 0 and MAX_RANGE_SIZE. + */ + if( unstId == TA_FUNC_UNST_NONE ) + { + errNb = doRangeTestFixSize( testFunction, opaqueData, + refOutBeg, refOutNbElement, refLookback, + refBuffer, refBufferInt, + unstId, fixSize, outputNb, integerTolerance ); + if( errNb != TA_TEST_PASS) + { + TA_Free( refBuffer ); + TA_Free( refBufferInt ); + return errNb; + } + } + else + { + for( unstablePeriod=0; unstablePeriod <= MAX_RANGE_SIZE; unstablePeriod++ ) + { + TA_SetUnstablePeriod( unstId, unstablePeriod ); + + errNb = doRangeTestFixSize( testFunction, opaqueData, + refOutBeg, refOutNbElement, refLookback, + refBuffer, refBufferInt, + unstId, fixSize, outputNb, integerTolerance ); + if( errNb != TA_TEST_PASS) + { + printf( "Fail: Using unstable period %d\n", unstablePeriod ); + TA_Free( refBuffer ); + TA_Free( refBufferInt ); + return errNb; + } + + /* Randomly skip the test of some unstable period (limit case are + * always tested though). + */ + if( (unstablePeriod > 5) && (unstablePeriod < 240) ) + { + /* Randomly skips from 0 to 239 tests. Never + * make unstablePeriod exceed 240. + */ + temp = (rand() % 240); + unstablePeriod += temp; + if( unstablePeriod > 240 ) + unstablePeriod = 240; + } + } + + /* Because the tests with an unstable period are very intensive + * and kinda repetitive, skip the test of some fixSize (limit + * case are always tested though). + */ + if( (fixSize > 5) && (fixSize < 240) ) + { + /* Randomly skips from 0 to 239 tests. Never + * make fixSize exceed 240. + */ + temp = (rand() % 239); + fixSize += temp; + if( fixSize > 240 ) + fixSize = 240; + } + } + } + + TA_Free( refBuffer ); + TA_Free( refBufferInt ); + return TA_TEST_PASS; +} + +static ErrorNumber doRangeTestFixSize( RangeTestFunction testFunction, + void *opaqueData, + TA_Integer refOutBeg, + TA_Integer refOutNbElement, + TA_Integer refLookback, + const TA_Real *refBuffer, + const TA_Integer *refBufferInt, + TA_FuncUnstId unstId, + TA_Integer fixSize, + unsigned int outputNb, + unsigned int integerTolerance ) +{ + TA_RetCode retCode; + TA_Real *outputBuffer; + TA_Real val1, val2; + TA_Integer i, temp; + TA_Integer outputBegIdx, outputNbElement, lookback; + TA_Integer startIdx, endIdx, relativeIdx, outputSizeByOptimalLogic; + TA_Integer *outputBufferInt; + unsigned int outputIsInteger; + + (void)refLookback; + + /* Allocate the output buffer (+prefix and suffix memory guard). */ + outputBuffer = (TA_Real *)TA_Malloc( (fixSize+2) * sizeof( TA_Real ) ); + + if( !outputBuffer ) + return TA_TESTUTIL_DRT_ALLOC_ERR; + + outputBufferInt = (TA_Integer *)TA_Malloc( (fixSize+2) * sizeof( TA_Integer ) ); + + if( !refBufferInt ) + { + TA_Free( outputBuffer ); + return TA_TESTUTIL_DRT_ALLOC_ERR; + } + + outputBuffer[0] = RESV_PATTERN_PREFIX; + outputBuffer[fixSize+1] = RESV_PATTERN_SUFFIX; + + outputBufferInt[0] = RESV_PATTERN_PREFIX_INT; + outputBufferInt[fixSize+1] = RESV_PATTERN_SUFFIX_INT; + + /* Initialize the outputs with improbable values. */ + for( i=1; i <= fixSize; i++ ) + { + outputBuffer[i] = RESV_PATTERN_IMPROBABLE; + outputBufferInt[i] = RESV_PATTERN_IMPROBABLE_INT; + } + + /* Test for a large number of possible startIdx */ + for( startIdx=0; startIdx <= (MAX_RANGE_SIZE-fixSize); startIdx++ ) + { + /* Call the TA function. */ + endIdx = startIdx+fixSize-1; + retCode = CallTestFunction( testFunction, startIdx, endIdx, + &outputBuffer[1], &outputBufferInt[1], + &outputBegIdx, &outputNbElement, &lookback, + opaqueData, outputNb, &outputIsInteger ); + + if( retCode != TA_SUCCESS ) + { + /* No call shall never fail here. When the range + * is "out-of-range" the function shall still return + * TA_SUCCESS with the outNbElement equal to zero. + */ + printf( "Fail: doRangeTestFixSize testFunction return error=(%d) (%d,%d)\n", retCode, fixSize, startIdx ); + TA_Free( outputBuffer ); + TA_Free( outputBufferInt ); + return TA_TESTUTIL_DRT_RETCODE_ERR; + } + else + { + /* Possible startIdx gap of the output shall be always the + * same regardless of the range. + */ + if( outputNbElement == 0 ) + { + /* Trap cases where there is no output. */ + if( (startIdx > lookback) || (endIdx > lookback) ) + { + /* Whenever startIdx is greater than lookback, some data + * shall be return. Same idea with endIdx. + * + * Note: + * some output will never start at the startIdx, particularly + * when a TA function have multiple output. Usually, the first output + * will be between startIdx/endIdx and other outputs may have a "gap" + * from the startIdx. + * + * Example: + * Stochastic %K is between startIdx/endIdx, but %D output will + * have less data because it is a MA of %K. A gap will then + * exist for the %D output. + */ + printf( "Fail: doRangeTestFixSize data missing (%d,%d,%d)\n", startIdx, endIdx, lookback ); + + TA_Free( outputBuffer ); + TA_Free( outputBufferInt ); + return TA_TESTUTIL_DRT_MISSING_DATA; + } + } + else + { + /* Some output was returned. Are the returned index correct? */ + if( (outputBegIdx < startIdx) || (outputBegIdx > endIdx) || (outputBegIdx < refOutBeg)) + { + printf( "Fail: doRangeTestFixSize bad outBegIdx\n" ); + printf( "Fail: doRangeTestFixSize (%d,%d,%d,%d,%d)\n", startIdx, endIdx, outputBegIdx, outputNbElement, fixSize ); + printf( "Fail: doRangeTestFixSize refOutBeg,refOutNbElement (%d,%d)\n", refOutBeg, refOutNbElement ); + TA_Free( outputBuffer ); + TA_Free( outputBufferInt ); + return TA_TESTUTIL_DRT_BAD_OUTBEGIDX; + } + + if( (outputNbElement > fixSize) || (outputNbElement > refOutNbElement) ) + { + printf( "Fail: doRangeTestFixSize Incorrect outputNbElement\n" ); + printf( "Fail: doRangeTestFixSize (%d,%d,%d,%d,%d)\n", startIdx, endIdx, outputBegIdx, outputNbElement, fixSize ); + printf( "Fail: doRangeTestFixSize refOutBeg,refOutNbElement (%d,%d)\n", refOutBeg, refOutNbElement ); + TA_Free( outputBuffer ); + return TA_TESTUTIL_DRT_BAD_OUTNBLEMENT; + } + + /* Is the calculated lookback too high? */ + if( outputBegIdx < lookback ) + { + printf( "Fail: doRangeTestFixSize Lookback calculation too high? (%d)\n", lookback ); + printf( "Fail: doRangeTestFixSize (%d,%d,%d,%d,%d)\n", startIdx, endIdx, outputBegIdx, outputNbElement, fixSize ); + printf( "Fail: doRangeTestFixSize refOutBeg,refOutNbElement (%d,%d)\n", refOutBeg, refOutNbElement ); + TA_Free( outputBuffer ); + TA_Free( outputBufferInt ); + return TA_TESTUTIL_DRT_LOOKBACK_TOO_HIGH; + } + + /* Is the output identical to the reference? */ + relativeIdx = outputBegIdx-refOutBeg; + for( i=0; i < outputNbElement; i++ ) + { + if( outputIsInteger ) + { + if( outputBufferInt[1+i] != refBufferInt[relativeIdx+i] ) + { + printf( "Fail: doRangeTestFixSize diff data for idx=%d (%d,%d)\n", i, + outputBufferInt[1+i], refBufferInt[relativeIdx+i] ); + printf( "Fail: doRangeTestFixSize (%d,%d,%d,%d,%d)\n", startIdx, endIdx, outputBegIdx, outputNbElement, fixSize ); + printf( "Fail: doRangeTestFixSize refOutBeg,refOutNbElement (%d,%d)\n", refOutBeg, refOutNbElement ); + TA_Free( outputBuffer ); + TA_Free( outputBufferInt ); + return TA_TESTUTIL_DRT_DATA_DIFF_INT; + } + } + else + { + val1 = outputBuffer[1+i]; + val2 = refBuffer[relativeIdx+i]; + if( !dataWithinReasonableRange( val1, val2, i, unstId, integerTolerance ) ) + { + printf( "Fail: doRangeTestFixSize diff data for idx=%d (%e,%e)\n", i, val1, val2 ); + printf( "Fail: doRangeTestFixSize (%d,%d,%d,%d,%d)\n", startIdx, endIdx, outputBegIdx, outputNbElement, fixSize ); + printf( "Fail: doRangeTestFixSize refOutBeg,refOutNbElement (%d,%d)\n", refOutBeg, refOutNbElement ); + if( val1 != 0.0 ) + printf( "Fail: Diff %g %%\n", ((val2-val1)/val1)*100.0 ); + TA_Free( outputBuffer ); + TA_Free( outputBufferInt ); + return TA_TESTUTIL_DRT_DATA_DIFF; + } + } + + /* Randomly skip the verification of some value. Limit + * cases are always checked though. + */ + if( outputNbElement > 30 ) + { + temp = outputNbElement-20; + if( (i > 20) && (i < temp) ) + { + /* Randomly skips from 0 to 200 verification. + * Never make it skip the last 20 values. + */ + i += (rand() % 200); + if( i > temp ) + i = temp; + } + } + } + + /* Verify out-of-bound writing in the output buffer. */ + outputSizeByOptimalLogic = max(lookback,startIdx); + if( outputSizeByOptimalLogic > endIdx ) + outputSizeByOptimalLogic = 0; + else + outputSizeByOptimalLogic = endIdx-outputSizeByOptimalLogic+1; + + if( (fixSize != outputNbElement) && (outputBuffer[1+outputSizeByOptimalLogic] != RESV_PATTERN_IMPROBABLE) ) + { + printf( "Fail: doRangeTestFixSize out-of-bound output (%e)\n", outputBuffer[1+outputSizeByOptimalLogic] ); + printf( "Fail: doRangeTestFixSize (%d,%d,%d,%d,%d)\n", startIdx, endIdx, outputBegIdx, outputNbElement, fixSize ); + printf( "Fail: doRangeTestFixSize refOutBeg,refOutNbElement (%d,%d)\n", refOutBeg, refOutNbElement ); + TA_Free( outputBuffer ); + TA_Free( outputBufferInt ); + return TA_TESTUTIL_DRT_OUT_OF_BOUND_OUT; + } + + if( (fixSize != outputNbElement) && (outputBufferInt[1+outputSizeByOptimalLogic] != RESV_PATTERN_IMPROBABLE_INT) ) + { + printf( "Fail: doRangeTestFixSize out-of-bound output (%d)\n", outputBufferInt[1+outputSizeByOptimalLogic] ); + printf( "Fail: doRangeTestFixSize (%d,%d,%d,%d,%d)\n", startIdx, endIdx, outputBegIdx, outputNbElement, fixSize ); + printf( "Fail: doRangeTestFixSize refOutBeg,refOutNbElement (%d,%d)\n", refOutBeg, refOutNbElement ); + TA_Free( outputBuffer ); + TA_Free( outputBufferInt ); + return TA_TESTUTIL_DRT_OUT_OF_BOUND_OUT_INT; + } + + /* Verify that the memory guard were preserved. */ + if( outputBuffer[0] != RESV_PATTERN_PREFIX ) + { + printf( "Fail: doRangeTestFixSize bad RESV_PATTERN_PREFIX (%e)\n", outputBuffer[0] ); + printf( "Fail: doRangeTestFixSize (%d,%d,%d,%d,%d)\n", startIdx, endIdx, outputBegIdx, outputNbElement, fixSize ); + printf( "Fail: doRangeTestFixSize refOutBeg,refOutNbElement (%d,%d)\n", refOutBeg, refOutNbElement ); + TA_Free( outputBuffer ); + TA_Free( outputBufferInt ); + return TA_TESTUTIL_DRT_BAD_PREFIX; + } + + if( outputBufferInt[0] != RESV_PATTERN_PREFIX_INT ) + { + printf( "Fail: doRangeTestFixSize bad RESV_PATTERN_PREFIX_INT (%d)\n", outputBufferInt[0] ); + printf( "Fail: doRangeTestFixSize (%d,%d,%d,%d,%d)\n", startIdx, endIdx, outputBegIdx, outputNbElement, fixSize ); + printf( "Fail: doRangeTestFixSize refOutBeg,refOutNbElement (%d,%d)\n", refOutBeg, refOutNbElement ); + TA_Free( outputBuffer ); + TA_Free( outputBufferInt ); + return TA_TESTUTIL_DRT_BAD_PREFIX; + } + + if( outputBuffer[fixSize+1] != RESV_PATTERN_SUFFIX ) + { + printf( "Fail: doRangeTestFixSize bad RESV_PATTERN_SUFFIX (%e)\n", outputBuffer[fixSize+1] ); + printf( "Fail: doRangeTestFixSize (%d,%d,%d,%d,%d)\n", startIdx, endIdx, outputBegIdx, outputNbElement, fixSize ); + printf( "Fail: doRangeTestFixSize refOutBeg,refOutNbElement (%d,%d)\n", refOutBeg, refOutNbElement ); + TA_Free( outputBuffer ); + TA_Free( outputBufferInt ); + return TA_TESTUTIL_DRT_BAD_SUFFIX; + } + + if( outputBufferInt[fixSize+1] != RESV_PATTERN_SUFFIX_INT ) + { + printf( "Fail: doRangeTestFixSize bad RESV_PATTERN_SUFFIX_INT (%d)\n", outputBufferInt[fixSize+1] ); + printf( "Fail: doRangeTestFixSize (%d,%d,%d,%d,%d)\n", startIdx, endIdx, outputBegIdx, outputNbElement, fixSize ); + printf( "Fail: doRangeTestFixSize refOutBeg,refOutNbElement (%d,%d)\n", refOutBeg, refOutNbElement ); + TA_Free( outputBuffer ); + TA_Free( outputBufferInt ); + return TA_TESTUTIL_DRT_BAD_SUFFIX; + } + + /* Clean-up for next test. */ + if( outputIsInteger ) + { + for( i=1; i <= fixSize; i++ ) + outputBufferInt[i] = RESV_PATTERN_IMPROBABLE_INT; + } + else + { + for( i=1; i <= fixSize; i++ ) + outputBuffer[i] = RESV_PATTERN_IMPROBABLE; + } + } + + /* Skip some startIdx at random. Limit case are still + * tested though. + */ + if( (startIdx > 30) && ((startIdx+100) <= (MAX_RANGE_SIZE-fixSize)) ) + { + /* Randomly skips from 40 to 100 tests. */ + temp = (rand() % 100)+40; + startIdx += temp; + } + } + + /* Loop and move forward for the next startIdx to test. */ + } + + TA_Free( outputBuffer ); + TA_Free( outputBufferInt ); + return TA_TEST_PASS; +} + +/* This function compares two value. + * The value is determined to be equal + * if it is within a certain error range. + */ +static int dataWithinReasonableRange( TA_Real val1, TA_Real val2, + unsigned int outputPosition, + TA_FuncUnstId unstId, + unsigned int integerTolerance ) +{ + TA_Real difference, tolerance, temp; + unsigned int val1_int, val2_int, tempInt, periodToIgnore; + + if( integerTolerance == TA_DO_NOT_COMPARE ) + return 1; /* Don't compare, says that everything is fine */ + + /* If the function does not have an unstable period, + * the compared value shall be identical. + * + * Because the algo may vary slightly allow for + * a small epsilon error because of the nature + * of floating point operations. + */ + if( unstId == TA_FUNC_UNST_NONE ) + return TA_REAL_EQ( val1, val2, 0.000000001 ); + + /* In the context of the TA functions, all value + * below 0.00001 are considered equal to zero and + * are considered to be equal within a reasonable range. + * (the percentage difference might be large, but + * unsignificant at that level, so no tolerance + * check is being done). + */ + if( (val1 < 0.00001) && (val2 < 0.00001) ) + return 1; + + /* When the function is unstable, the comparison + * tolerate at first a large difference. + * + * As the number of "outputPosition" is higher + * the tolerance is reduced. + * + * In the same way, as the unstable period + * increase, the tolerance is reduced (that's + * what the unstable period is for... reducing + * difference). + * + * When dealing with an unstable period, the + * first 100 values are ignored. + * + * Following 100, the tolerance is + * progressively reduced as follow: + * + * 1 == 0.5/1 == 50 % + * 2 == 0.5/2 == 25 % + * ... + * 100 == 0.5/100 == 0.005 % + * ... + * + * Overall, the following is a fair estimation: + * When using a unstable period of 200, you + * can expect the output to not vary more + * than 0.005 % + * + * The logic is sligthly different if the + * output are rounded integer, but it is + * the same idea. + * + * The following describe the special meaning of + * the integerTolerance: + * + * Value 10 -> A tolerance of 1/10 is used. + * + * Value 100 -> A tolerance of 1/100 is used. + * + * Value 1000 -> A tolerance of 1/1000 is used. + * + * Value 360 -> Useful when the output are + * degrees. In that case, a fix + * tolerance of 1 degree is used. + * + * Value TA_DO_NOT_COMPARE -> + * Indicate that NO COMPARISON take + * place. This is useful for functions + * that cannot be compare when changing + * the range (like the accumulative + * algorithm used for TA_AD and TA_ADOSC). + */ + + + /* Some functions requires a longer unstable period. + * These are trap here. + */ + switch( unstId ) + { + case TA_FUNC_UNST_T3: + periodToIgnore = 200; + break; + default: + periodToIgnore = 100; + break; + } + + if( integerTolerance == 1000 ) + { + /* Check for no difference of more + * than 1/1000 + */ + if( val1 > val2 ) + difference = (val1-val2); + else + difference = (val2-val1); + + difference *= 1000.0; + + temp = outputPosition+TA_GetUnstablePeriod(unstId)+1; + if( temp <= periodToIgnore ) + { + /* Pretend it is fine. */ + return 1; + } + else if( (int)difference > 1 ) + { + printf( "\nFail: Value diffferent by more than 1/1000 (%f)\n", difference ); + return 0; + } + } + else if( integerTolerance == 100 ) + { + /* Check for no difference of more + * than 1/1000 + */ + if( val1 > val2 ) + difference = (val1-val2); + else + difference = (val2-val1); + + difference *= 100.0; + + temp = outputPosition+TA_GetUnstablePeriod(unstId)+1; + if( temp <= periodToIgnore ) + { + /* Pretend it is fine. */ + return 1; + } + else if( (int)difference > 1 ) + { + printf( "\nFail: Value diffferent by more than 1/100 (%f)\n", difference ); + return 0; + } + } + else if( integerTolerance == 10 ) + { + /* Check for no difference of more + * than 1/1000 + */ + if( val1 > val2 ) + difference = (val1-val2); + else + difference = (val2-val1); + + difference *= 10.0; + + temp = outputPosition+TA_GetUnstablePeriod(unstId)+1; + if( temp <= periodToIgnore ) + { + /* Pretend it is fine. */ + return 1; + } + else if( (int)difference > 1 ) + { + printf( "\nFail: Value diffferent by more than 1/10 (%f)\n", difference ); + return 0; + } + } + else if( integerTolerance == 360 ) + { + /* Check for no difference of no more + * than 10% when the value is higher than + * 1 degree. + * + * Difference of less than 1 degree are not significant. + */ + val1_int = (unsigned int)val1; + val2_int = (unsigned int)val2; + if( val1_int > val2_int ) + tempInt = val1_int - val2_int; + else + tempInt = val2_int - val1_int; + + if( val1 > val2 ) + difference = (val1-val2)/val1; + else + difference = (val2-val1)/val2; + + temp = outputPosition+TA_GetUnstablePeriod(unstId)+1; + if( temp <= periodToIgnore ) + { + /* Pretend it is fine. */ + return 1; + } + else if( (tempInt > 1) && (difference > 0.10) ) + { + printf( "\nFail: Value diffferent by more than 10 percent over 1 degree (%d)\n", tempInt ); + return 0; + } + } + else if( integerTolerance ) + { + /* Check that the integer part of the value + * is not different more than the specified + * integerTolerance. + */ + val1_int = (unsigned int)val1; + val2_int = (unsigned int)val2; + if( val1_int > val2_int ) + tempInt = val1_int - val2_int; + else + tempInt = val2_int - val1_int; + + temp = outputPosition+TA_GetUnstablePeriod(unstId)+1; + if( temp <= periodToIgnore ) + { + /* Pretend it is fine. */ + return 1; + } + else if( temp < 100 ) + { + if( tempInt >= 3*integerTolerance ) + { + printf( "\nFail: Value out of 3*tolerance range (%d,%d)\n", tempInt, integerTolerance ); + return 0; /* Value considered different */ + } + } + else if( temp < 150 ) + { + if( tempInt >= 2*integerTolerance ) + { + printf( "\nFail: Value out of 2*tolerance range (%d,%d)\n", tempInt, integerTolerance ); + return 0; /* Value considered different */ + } + } + else if( temp < 200 ) + { + if( tempInt >= integerTolerance ) + { + printf( "\nFail: Value out of tolerance range (%d,%d)\n", tempInt, integerTolerance ); + return 0; /* Value considered different */ + } + } + else if( tempInt >= 1 ) + { + printf( "\nFail: Value not equal (difference is %d)\n", tempInt ); + return 0; /* Value considered different */ + } + } + else + { + if( val1 > val2 ) + difference = (val1-val2)/val1; + else + difference = (val2-val1)/val2; + + temp = outputPosition+TA_GetUnstablePeriod(unstId)+1; + if( temp <= periodToIgnore ) + { + /* Pretend it is fine. */ + return 1; + } + else + { + temp -= periodToIgnore; + tolerance = 0.5/temp; + } + + if( difference > tolerance ) + { + printf( "\nFail: Value out of tolerance range (%g,%g)\n", difference, tolerance ); + return 0; /* Out of tolerance... values are not equal. */ + } + } + + return 1; /* Value equal within tolerance. */ +} + +static TA_RetCode CallTestFunction( RangeTestFunction testFunction, + TA_Integer startIdx, + TA_Integer endIdx, + TA_Real *outputBuffer, + TA_Integer *outputBufferInt, + TA_Integer *outBegIdx, + TA_Integer *outNbElement, + TA_Integer *lookback, + void *opaqueData, + unsigned int outputNb, + unsigned int *isOutputInteger ) +{ + /* Call the function and do profiling. */ + TA_RetCode retCode; + double clockDelta; + +#ifdef WIN32 + LARGE_INTEGER startClock; + LARGE_INTEGER endClock; +#else + clock_t startClock; + clock_t endClock; +#endif + +#ifdef WIN32 + QueryPerformanceCounter(&startClock); +#else + startClock = clock(); +#endif + retCode = testFunction( startIdx, + endIdx, + outputBuffer, + outputBufferInt, + outBegIdx, + outNbElement, + lookback, + opaqueData, + outputNb, + isOutputInteger ); + + /* Profile only functions producing at least 20 values. */ + if( *outNbElement < 20 ) + { + return retCode; + } + +#ifdef WIN32 + QueryPerformanceCounter(&endClock); + clockDelta = (double)((__int64)endClock.QuadPart - (__int64) startClock.QuadPart); +#else + endClock = clock(); + clockDelta = (double)(endClock - startClock); +#endif + + if( clockDelta <= 0 ) + { + insufficientClockPrecision = 1; + } + else + { + if( clockDelta > worstProfiledCall ) + worstProfiledCall = clockDelta; + timeInProfiledCall += clockDelta; + nbProfiledCall++; + } + + return retCode; +} diff --git a/ta-lib-config.in b/ta-lib-config.in new file mode 100644 index 000000000..8105d8b14 --- /dev/null +++ b/ta-lib-config.in @@ -0,0 +1,28 @@ +#!/bin/sh + +usage="\ +Usage: ta-lib-config [--version] [--libs] [--cflags]" + +if test $# -eq 0; then + echo "${usage}" 1>&2 + exit 1 +fi + +while test $# -gt 0; do + case $1 in + --version) + echo @VERSION@ + ;; + --cflags) + echo -I@includedir@/ta-lib @DEFS@ + ;; + --libs) + echo -L@libdir@ @LIBS@ + ;; + *) + echo "${usage}" 1>&2 + exit 1 + ;; + esac + shift +done diff --git a/ta-lib.dpkg.in b/ta-lib.dpkg.in new file mode 100644 index 000000000..d41b81b2c --- /dev/null +++ b/ta-lib.dpkg.in @@ -0,0 +1,16 @@ +Package: ta-lib +Version: @VERSION@ +Section: dev-libs +Priority: optional +Architecture: i686 +Essential: no +Depends: +Pre-Depends: +Recommends: +Suggests: +Installed-Size: 3700000 +Maintainer: Mario Fortier [mfortier@ta-lib.org] +Conflicts: +Replaces: +Provides: +Description: TA-Lib provides common functions for the technical analysis of stock/future/commodity market data. diff --git a/ta-lib.spec.in b/ta-lib.spec.in new file mode 100644 index 000000000..7f502df6a --- /dev/null +++ b/ta-lib.spec.in @@ -0,0 +1,25 @@ +Summary: Technical Analysis Library +Name: ta-lib +Version: @VERSION@ +Release: 1 +License: BSD +Group: Development/Libraries + +%description +TA-Lib provides common functions for the technical analysis of stock/future/commodity market data. + +%build +./autogen.sh +CFLAGS="-g0 -O2 -pipe" ./configure --prefix=/usr +make + +%install +rm -rf $RPM_BUILD_ROOT +make DESTDIR=$RPM_BUILD_ROOT install + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%defattr(-,root,root) +/usr diff --git a/temp/cdd/gen_code/HOLDER b/temp/cdd/gen_code/HOLDER new file mode 100644 index 000000000..549a58e9f --- /dev/null +++ b/temp/cdd/gen_code/HOLDER @@ -0,0 +1,2 @@ +Do not erase this file. +Some maintenance tools ignore empty directory. This file prevents this directory to be empty. diff --git a/temp/cdd/ta_abstract/HOLDER b/temp/cdd/ta_abstract/HOLDER new file mode 100644 index 000000000..549a58e9f --- /dev/null +++ b/temp/cdd/ta_abstract/HOLDER @@ -0,0 +1,2 @@ +Do not erase this file. +Some maintenance tools ignore empty directory. This file prevents this directory to be empty. diff --git a/temp/cdd/ta_common/HOLDER b/temp/cdd/ta_common/HOLDER new file mode 100644 index 000000000..549a58e9f --- /dev/null +++ b/temp/cdd/ta_common/HOLDER @@ -0,0 +1,2 @@ +Do not erase this file. +Some maintenance tools ignore empty directory. This file prevents this directory to be empty. diff --git a/temp/cdd/ta_func/HOLDER b/temp/cdd/ta_func/HOLDER new file mode 100644 index 000000000..549a58e9f --- /dev/null +++ b/temp/cdd/ta_func/HOLDER @@ -0,0 +1,2 @@ +Do not erase this file. +Some maintenance tools ignore empty directory. This file prevents this directory to be empty. diff --git a/temp/cdd/ta_libc/HOLDER b/temp/cdd/ta_libc/HOLDER new file mode 100644 index 000000000..549a58e9f --- /dev/null +++ b/temp/cdd/ta_libc/HOLDER @@ -0,0 +1,2 @@ +Do not erase this file. +Some maintenance tools ignore empty directory. This file prevents this directory to be empty. diff --git a/temp/cdd/ta_regtest/HOLDER b/temp/cdd/ta_regtest/HOLDER new file mode 100644 index 000000000..549a58e9f --- /dev/null +++ b/temp/cdd/ta_regtest/HOLDER @@ -0,0 +1,2 @@ +Do not erase this file. +Some maintenance tools ignore empty directory. This file prevents this directory to be empty. diff --git a/temp/cdr/gen_code/HOLDER b/temp/cdr/gen_code/HOLDER new file mode 100644 index 000000000..549a58e9f --- /dev/null +++ b/temp/cdr/gen_code/HOLDER @@ -0,0 +1,2 @@ +Do not erase this file. +Some maintenance tools ignore empty directory. This file prevents this directory to be empty. diff --git a/temp/cdr/ta_abstract/HOLDER b/temp/cdr/ta_abstract/HOLDER new file mode 100644 index 000000000..549a58e9f --- /dev/null +++ b/temp/cdr/ta_abstract/HOLDER @@ -0,0 +1,2 @@ +Do not erase this file. +Some maintenance tools ignore empty directory. This file prevents this directory to be empty. diff --git a/temp/cdr/ta_common/HOLDER b/temp/cdr/ta_common/HOLDER new file mode 100644 index 000000000..549a58e9f --- /dev/null +++ b/temp/cdr/ta_common/HOLDER @@ -0,0 +1,2 @@ +Do not erase this file. +Some maintenance tools ignore empty directory. This file prevents this directory to be empty. diff --git a/temp/cdr/ta_func/HOLDER b/temp/cdr/ta_func/HOLDER new file mode 100644 index 000000000..549a58e9f --- /dev/null +++ b/temp/cdr/ta_func/HOLDER @@ -0,0 +1,2 @@ +Do not erase this file. +Some maintenance tools ignore empty directory. This file prevents this directory to be empty. diff --git a/temp/cdr/ta_libc/HOLDER b/temp/cdr/ta_libc/HOLDER new file mode 100644 index 000000000..549a58e9f --- /dev/null +++ b/temp/cdr/ta_libc/HOLDER @@ -0,0 +1,2 @@ +Do not erase this file. +Some maintenance tools ignore empty directory. This file prevents this directory to be empty. diff --git a/temp/cdr/ta_regtest/HOLDER b/temp/cdr/ta_regtest/HOLDER new file mode 100644 index 000000000..549a58e9f --- /dev/null +++ b/temp/cdr/ta_regtest/HOLDER @@ -0,0 +1,2 @@ +Do not erase this file. +Some maintenance tools ignore empty directory. This file prevents this directory to be empty. diff --git a/temp/cmd/gen_code/HOLDER b/temp/cmd/gen_code/HOLDER new file mode 100644 index 000000000..549a58e9f --- /dev/null +++ b/temp/cmd/gen_code/HOLDER @@ -0,0 +1,2 @@ +Do not erase this file. +Some maintenance tools ignore empty directory. This file prevents this directory to be empty. diff --git a/temp/cmd/ta_abstract/HOLDER b/temp/cmd/ta_abstract/HOLDER new file mode 100644 index 000000000..549a58e9f --- /dev/null +++ b/temp/cmd/ta_abstract/HOLDER @@ -0,0 +1,2 @@ +Do not erase this file. +Some maintenance tools ignore empty directory. This file prevents this directory to be empty. diff --git a/temp/cmd/ta_common/HOLDER b/temp/cmd/ta_common/HOLDER new file mode 100644 index 000000000..549a58e9f --- /dev/null +++ b/temp/cmd/ta_common/HOLDER @@ -0,0 +1,2 @@ +Do not erase this file. +Some maintenance tools ignore empty directory. This file prevents this directory to be empty. diff --git a/temp/cmd/ta_func/HOLDER b/temp/cmd/ta_func/HOLDER new file mode 100644 index 000000000..549a58e9f --- /dev/null +++ b/temp/cmd/ta_func/HOLDER @@ -0,0 +1,2 @@ +Do not erase this file. +Some maintenance tools ignore empty directory. This file prevents this directory to be empty. diff --git a/temp/cmd/ta_libc/HOLDER b/temp/cmd/ta_libc/HOLDER new file mode 100644 index 000000000..549a58e9f --- /dev/null +++ b/temp/cmd/ta_libc/HOLDER @@ -0,0 +1,2 @@ +Do not erase this file. +Some maintenance tools ignore empty directory. This file prevents this directory to be empty. diff --git a/temp/cmd/ta_regtest/HOLDER b/temp/cmd/ta_regtest/HOLDER new file mode 100644 index 000000000..549a58e9f --- /dev/null +++ b/temp/cmd/ta_regtest/HOLDER @@ -0,0 +1,2 @@ +Do not erase this file. +Some maintenance tools ignore empty directory. This file prevents this directory to be empty. diff --git a/temp/cmp/gen_code/HOLDER b/temp/cmp/gen_code/HOLDER new file mode 100644 index 000000000..549a58e9f --- /dev/null +++ b/temp/cmp/gen_code/HOLDER @@ -0,0 +1,2 @@ +Do not erase this file. +Some maintenance tools ignore empty directory. This file prevents this directory to be empty. diff --git a/temp/cmp/ta_abstract/HOLDER b/temp/cmp/ta_abstract/HOLDER new file mode 100644 index 000000000..549a58e9f --- /dev/null +++ b/temp/cmp/ta_abstract/HOLDER @@ -0,0 +1,2 @@ +Do not erase this file. +Some maintenance tools ignore empty directory. This file prevents this directory to be empty. diff --git a/temp/cmp/ta_common/HOLDER b/temp/cmp/ta_common/HOLDER new file mode 100644 index 000000000..549a58e9f --- /dev/null +++ b/temp/cmp/ta_common/HOLDER @@ -0,0 +1,2 @@ +Do not erase this file. +Some maintenance tools ignore empty directory. This file prevents this directory to be empty. diff --git a/temp/cmp/ta_func/HOLDER b/temp/cmp/ta_func/HOLDER new file mode 100644 index 000000000..549a58e9f --- /dev/null +++ b/temp/cmp/ta_func/HOLDER @@ -0,0 +1,2 @@ +Do not erase this file. +Some maintenance tools ignore empty directory. This file prevents this directory to be empty. diff --git a/temp/cmp/ta_libc/HOLDER b/temp/cmp/ta_libc/HOLDER new file mode 100644 index 000000000..549a58e9f --- /dev/null +++ b/temp/cmp/ta_libc/HOLDER @@ -0,0 +1,2 @@ +Do not erase this file. +Some maintenance tools ignore empty directory. This file prevents this directory to be empty. diff --git a/temp/cmp/ta_regtest/HOLDER b/temp/cmp/ta_regtest/HOLDER new file mode 100644 index 000000000..549a58e9f --- /dev/null +++ b/temp/cmp/ta_regtest/HOLDER @@ -0,0 +1,2 @@ +Do not erase this file. +Some maintenance tools ignore empty directory. This file prevents this directory to be empty. diff --git a/temp/cmr/gen_code/HOLDER b/temp/cmr/gen_code/HOLDER new file mode 100644 index 000000000..549a58e9f --- /dev/null +++ b/temp/cmr/gen_code/HOLDER @@ -0,0 +1,2 @@ +Do not erase this file. +Some maintenance tools ignore empty directory. This file prevents this directory to be empty. diff --git a/temp/cmr/ta_abstract/HOLDER b/temp/cmr/ta_abstract/HOLDER new file mode 100644 index 000000000..549a58e9f --- /dev/null +++ b/temp/cmr/ta_abstract/HOLDER @@ -0,0 +1,2 @@ +Do not erase this file. +Some maintenance tools ignore empty directory. This file prevents this directory to be empty. diff --git a/temp/cmr/ta_common/HOLDER b/temp/cmr/ta_common/HOLDER new file mode 100644 index 000000000..549a58e9f --- /dev/null +++ b/temp/cmr/ta_common/HOLDER @@ -0,0 +1,2 @@ +Do not erase this file. +Some maintenance tools ignore empty directory. This file prevents this directory to be empty. diff --git a/temp/cmr/ta_func/HOLDER b/temp/cmr/ta_func/HOLDER new file mode 100644 index 000000000..549a58e9f --- /dev/null +++ b/temp/cmr/ta_func/HOLDER @@ -0,0 +1,2 @@ +Do not erase this file. +Some maintenance tools ignore empty directory. This file prevents this directory to be empty. diff --git a/temp/cmr/ta_libc/HOLDER b/temp/cmr/ta_libc/HOLDER new file mode 100644 index 000000000..549a58e9f --- /dev/null +++ b/temp/cmr/ta_libc/HOLDER @@ -0,0 +1,2 @@ +Do not erase this file. +Some maintenance tools ignore empty directory. This file prevents this directory to be empty. diff --git a/temp/cmr/ta_regtest/HOLDER b/temp/cmr/ta_regtest/HOLDER new file mode 100644 index 000000000..549a58e9f --- /dev/null +++ b/temp/cmr/ta_regtest/HOLDER @@ -0,0 +1,2 @@ +Do not erase this file. +Some maintenance tools ignore empty directory. This file prevents this directory to be empty. diff --git a/temp/csd/gen_code/HOLDER b/temp/csd/gen_code/HOLDER new file mode 100644 index 000000000..549a58e9f --- /dev/null +++ b/temp/csd/gen_code/HOLDER @@ -0,0 +1,2 @@ +Do not erase this file. +Some maintenance tools ignore empty directory. This file prevents this directory to be empty. diff --git a/temp/csd/ta_abstract/HOLDER b/temp/csd/ta_abstract/HOLDER new file mode 100644 index 000000000..549a58e9f --- /dev/null +++ b/temp/csd/ta_abstract/HOLDER @@ -0,0 +1,2 @@ +Do not erase this file. +Some maintenance tools ignore empty directory. This file prevents this directory to be empty. diff --git a/temp/csd/ta_common/HOLDER b/temp/csd/ta_common/HOLDER new file mode 100644 index 000000000..549a58e9f --- /dev/null +++ b/temp/csd/ta_common/HOLDER @@ -0,0 +1,2 @@ +Do not erase this file. +Some maintenance tools ignore empty directory. This file prevents this directory to be empty. diff --git a/temp/csd/ta_func/HOLDER b/temp/csd/ta_func/HOLDER new file mode 100644 index 000000000..549a58e9f --- /dev/null +++ b/temp/csd/ta_func/HOLDER @@ -0,0 +1,2 @@ +Do not erase this file. +Some maintenance tools ignore empty directory. This file prevents this directory to be empty. diff --git a/temp/csd/ta_libc/HOLDER b/temp/csd/ta_libc/HOLDER new file mode 100644 index 000000000..549a58e9f --- /dev/null +++ b/temp/csd/ta_libc/HOLDER @@ -0,0 +1,2 @@ +Do not erase this file. +Some maintenance tools ignore empty directory. This file prevents this directory to be empty. diff --git a/temp/csd/ta_regtest/HOLDER b/temp/csd/ta_regtest/HOLDER new file mode 100644 index 000000000..549a58e9f --- /dev/null +++ b/temp/csd/ta_regtest/HOLDER @@ -0,0 +1,2 @@ +Do not erase this file. +Some maintenance tools ignore empty directory. This file prevents this directory to be empty. diff --git a/temp/csp/gen_code/HOLDER b/temp/csp/gen_code/HOLDER new file mode 100644 index 000000000..549a58e9f --- /dev/null +++ b/temp/csp/gen_code/HOLDER @@ -0,0 +1,2 @@ +Do not erase this file. +Some maintenance tools ignore empty directory. This file prevents this directory to be empty. diff --git a/temp/csp/ta_abstract/HOLDER b/temp/csp/ta_abstract/HOLDER new file mode 100644 index 000000000..549a58e9f --- /dev/null +++ b/temp/csp/ta_abstract/HOLDER @@ -0,0 +1,2 @@ +Do not erase this file. +Some maintenance tools ignore empty directory. This file prevents this directory to be empty. diff --git a/temp/csp/ta_common/HOLDER b/temp/csp/ta_common/HOLDER new file mode 100644 index 000000000..549a58e9f --- /dev/null +++ b/temp/csp/ta_common/HOLDER @@ -0,0 +1,2 @@ +Do not erase this file. +Some maintenance tools ignore empty directory. This file prevents this directory to be empty. diff --git a/temp/csp/ta_func/HOLDER b/temp/csp/ta_func/HOLDER new file mode 100644 index 000000000..549a58e9f --- /dev/null +++ b/temp/csp/ta_func/HOLDER @@ -0,0 +1,2 @@ +Do not erase this file. +Some maintenance tools ignore empty directory. This file prevents this directory to be empty. diff --git a/temp/csp/ta_libc/HOLDER b/temp/csp/ta_libc/HOLDER new file mode 100644 index 000000000..549a58e9f --- /dev/null +++ b/temp/csp/ta_libc/HOLDER @@ -0,0 +1,2 @@ +Do not erase this file. +Some maintenance tools ignore empty directory. This file prevents this directory to be empty. diff --git a/temp/csp/ta_regtest/HOLDER b/temp/csp/ta_regtest/HOLDER new file mode 100644 index 000000000..549a58e9f --- /dev/null +++ b/temp/csp/ta_regtest/HOLDER @@ -0,0 +1,2 @@ +Do not erase this file. +Some maintenance tools ignore empty directory. This file prevents this directory to be empty. diff --git a/temp/csr/gen_code/HOLDER b/temp/csr/gen_code/HOLDER new file mode 100644 index 000000000..549a58e9f --- /dev/null +++ b/temp/csr/gen_code/HOLDER @@ -0,0 +1,2 @@ +Do not erase this file. +Some maintenance tools ignore empty directory. This file prevents this directory to be empty. diff --git a/temp/csr/ta_abstract/HOLDER b/temp/csr/ta_abstract/HOLDER new file mode 100644 index 000000000..549a58e9f --- /dev/null +++ b/temp/csr/ta_abstract/HOLDER @@ -0,0 +1,2 @@ +Do not erase this file. +Some maintenance tools ignore empty directory. This file prevents this directory to be empty. diff --git a/temp/csr/ta_common/HOLDER b/temp/csr/ta_common/HOLDER new file mode 100644 index 000000000..549a58e9f --- /dev/null +++ b/temp/csr/ta_common/HOLDER @@ -0,0 +1,2 @@ +Do not erase this file. +Some maintenance tools ignore empty directory. This file prevents this directory to be empty. diff --git a/temp/csr/ta_func/HOLDER b/temp/csr/ta_func/HOLDER new file mode 100644 index 000000000..549a58e9f --- /dev/null +++ b/temp/csr/ta_func/HOLDER @@ -0,0 +1,2 @@ +Do not erase this file. +Some maintenance tools ignore empty directory. This file prevents this directory to be empty. diff --git a/temp/csr/ta_libc/HOLDER b/temp/csr/ta_libc/HOLDER new file mode 100644 index 000000000..549a58e9f --- /dev/null +++ b/temp/csr/ta_libc/HOLDER @@ -0,0 +1,2 @@ +Do not erase this file. +Some maintenance tools ignore empty directory. This file prevents this directory to be empty. diff --git a/temp/csr/ta_regtest/HOLDER b/temp/csr/ta_regtest/HOLDER new file mode 100644 index 000000000..549a58e9f --- /dev/null +++ b/temp/csr/ta_regtest/HOLDER @@ -0,0 +1,2 @@ +Do not erase this file. +Some maintenance tools ignore empty directory. This file prevents this directory to be empty. From 561336576854030478bfcd35e89de4a42795cb76 Mon Sep 17 00:00:00 2001 From: mckelvin Date: Mon, 22 Aug 2016 12:47:44 +0800 Subject: [PATCH 02/13] mv testing files to tests and setup pytest --- setup.py | 24 +++++++++++++++++++++++- {talib => tests}/test_abstract.py | 0 {talib => tests}/test_data.py | 0 {talib => tests}/test_func.py | 0 {talib => tests}/test_stream.py | 0 5 files changed, 23 insertions(+), 1 deletion(-) rename {talib => tests}/test_abstract.py (100%) rename {talib => tests}/test_data.py (100%) rename {talib => tests}/test_func.py (100%) rename {talib => tests}/test_stream.py (100%) diff --git a/setup.py b/setup.py index 206562bb1..a6e5135fe 100644 --- a/setup.py +++ b/setup.py @@ -5,6 +5,27 @@ import warnings from distutils.dist import Distribution +from setuptools.command.test import test as TestCommand + + +class PyTest(TestCommand): + user_options = [('pytest-args=', 'a', "Arguments to pass to py.test")] + + def initialize_options(self): + TestCommand.initialize_options(self) + self.pytest_args = ['tests'] + + def finalize_options(self): + TestCommand.finalize_options(self) + self.test_args = [] + self.test_suite = True + + def run_tests(self): + # import here, cause outside the eggs aren't loaded + import pytest + errno = pytest.main(self.pytest_args) + sys.exit(errno) + display_option_names = Distribution.display_option_names + ['help', 'help-commands'] query_only = any('--' + opt in sys.argv for opt in display_option_names) or len(sys.argv) < 2 or sys.argv[1] == 'egg_info' @@ -76,7 +97,7 @@ else: warnings.warn('Cannot find ta-lib library, installation may fail.') -cmdclass = {} +cmdclass = {"test": PyTest} if has_cython: cmdclass['build_ext'] = build_ext @@ -91,6 +112,7 @@ ) ext_modules.append(ext) + setup( name = 'TA-Lib', version = '0.4.10', diff --git a/talib/test_abstract.py b/tests/test_abstract.py similarity index 100% rename from talib/test_abstract.py rename to tests/test_abstract.py diff --git a/talib/test_data.py b/tests/test_data.py similarity index 100% rename from talib/test_data.py rename to tests/test_data.py diff --git a/talib/test_func.py b/tests/test_func.py similarity index 100% rename from talib/test_func.py rename to tests/test_func.py diff --git a/talib/test_stream.py b/tests/test_stream.py similarity index 100% rename from talib/test_stream.py rename to tests/test_stream.py From 425e8f056c9ebe26c877fee6daa196de1482e949 Mon Sep 17 00:00:00 2001 From: mckelvin Date: Mon, 22 Aug 2016 12:48:12 +0800 Subject: [PATCH 03/13] Refactor tests for pytest --- tests/test_abstract.py | 69 ++++++++++++++++++++---------------------- tests/test_data.py | 9 +++--- tests/test_func.py | 60 ++++++++++++++++++------------------ tests/test_stream.py | 17 +++++------ 4 files changed, 75 insertions(+), 80 deletions(-) diff --git a/tests/test_abstract.py b/tests/test_abstract.py index ee2fb2f7d..323f88806 100644 --- a/tests/test_abstract.py +++ b/tests/test_abstract.py @@ -1,10 +1,5 @@ import numpy as np -from nose.tools import ( - assert_equals, - assert_true, - assert_false, - assert_raises, - ) +import pytest try: from collections import OrderedDict @@ -14,7 +9,7 @@ import talib from talib import func from talib import abstract -from talib.test_data import ford_2012, assert_np_arrays_equal, assert_np_arrays_not_equal +from test_data import ford_2012, assert_np_arrays_equal, assert_np_arrays_not_equal def test_pandas(): @@ -24,20 +19,20 @@ def test_pandas(): expected_k, expected_d = func.STOCH(ford_2012['high'], ford_2012['low'], ford_2012['close']) # 5, 3, 0, 3, 0 output = abstract.Function('stoch', input_df).outputs - assert_true(isinstance(output, pandas.DataFrame)) + assert isinstance(output, pandas.DataFrame) assert_np_arrays_equal(expected_k, output['slowk']) assert_np_arrays_equal(expected_d, output['slowd']) output = abstract.Function('stoch', input_dict).outputs - assert_true(isinstance(output, list)) + assert isinstance(output, list) assert_np_arrays_equal(expected_k, output[0]) assert_np_arrays_equal(expected_d, output[1]) expected = func.SMA(ford_2012['close'], 10) output = abstract.Function('sma', input_df, 10).outputs - assert_true(isinstance(output, pandas.Series)) + assert isinstance(output, pandas.Series) assert_np_arrays_equal(expected, output) output = abstract.Function('sma', input_dict, 10).outputs - assert_true(isinstance(output, np.ndarray)) + assert isinstance(output, np.ndarray) assert_np_arrays_equal(expected, output) @@ -86,12 +81,13 @@ def test_doji_candle(): def test_MAVP(): mavp = abstract.MAVP - assert_raises(Exception, mavp.set_input_arrays, ford_2012) + with pytest.raises(Exception): + mavp.set_input_arrays(ford_2012) input_d = {} input_d['close'] = ford_2012['close'] input_d['periods'] = np.arange(30) - assert_true(mavp.set_input_arrays(input_d)) - assert_equals(mavp.input_arrays, input_d) + assert mavp.set_input_arrays(input_d) + assert mavp.input_arrays == input_d def test_info(): stochrsi = abstract.Function('STOCHRSI') @@ -115,7 +111,7 @@ def test_info(): ('fastd_matype', 1), ]), } - assert_equals(expected, stochrsi.info) + assert expected == stochrsi.info expected = { 'display_name': 'Bollinger Bands', @@ -136,11 +132,11 @@ def test_info(): ('matype', 0), ]), } - assert_equals(expected, abstract.Function('BBANDS').info) + assert expected == abstract.Function('BBANDS').info def test_input_names(): expected = OrderedDict([('price', 'close')]) - assert_equals(expected, abstract.Function('MAMA').input_names) + assert expected == abstract.Function('MAMA').input_names # test setting input_names obv = abstract.Function('OBV') @@ -149,13 +145,13 @@ def test_input_names(): ('prices', ['volume']), ]) obv.input_names = expected - assert_equals(obv.input_names, expected) + assert obv.input_names == expected obv.input_names = { 'price': 'open', 'prices': ['volume'], } - assert_equals(obv.input_names, expected) + assert obv.input_names == expected def test_input_arrays(): mama = abstract.Function('MAMA') @@ -167,33 +163,34 @@ def test_input_arrays(): 'close': None, 'volume': None, } - assert_equals(expected, mama.get_input_arrays()) + assert expected == mama.get_input_arrays() # test setting/getting input_arrays - assert_true(mama.set_input_arrays(ford_2012)) - assert_equals(mama.get_input_arrays(), ford_2012) - assert_raises(Exception, - mama.set_input_arrays, {'hello': 'fail', 'world': 'bye'}) + assert mama.set_input_arrays(ford_2012) + assert mama.get_input_arrays() == ford_2012 + with pytest.raises(Exception): + mama.set_input_arrays({'hello': 'fail', 'world': 'bye'}) # test only required keys are needed willr = abstract.Function('WILLR') reqd = willr.input_names['prices'] input_d = dict([(key, ford_2012[key]) for key in reqd]) - assert_true(willr.set_input_arrays(input_d)) - assert_equals(willr.input_arrays, input_d) + assert willr.set_input_arrays(input_d) + assert willr.input_arrays == input_d # test extraneous keys are ignored input_d['extra_stuffs'] = 'you should never see me' input_d['date'] = np.random.rand(100) - assert_true(willr.set_input_arrays(input_d)) + assert willr.set_input_arrays(input_d) # test missing keys get detected input_d['open'] = ford_2012['open'] input_d.pop('close') - assert_raises(Exception, willr.set_input_arrays, input_d) + with pytest.raises(Exception): + willr.set_input_arrays(input_d) # test changing input_names on the Function willr.input_names = {'prices': ['high', 'low', 'open']} - assert_true(willr.set_input_arrays(input_d)) + assert willr.set_input_arrays(input_d) def test_parameters(): stoch = abstract.Function('STOCH') @@ -204,20 +201,20 @@ def test_parameters(): ('slowd_period', 3), ('slowd_matype', 0), ]) - assert_equals(expected, stoch.parameters) + assert expected == stoch.parameters stoch.parameters = {'fastk_period': 10} expected['fastk_period'] = 10 - assert_equals(expected, stoch.parameters) + assert expected == stoch.parameters stoch.parameters = {'slowk_period': 8, 'slowd_period': 5} expected['slowk_period'] = 8 expected['slowd_period'] = 5 - assert_equals(expected, stoch.parameters) + assert expected == stoch.parameters stoch.parameters = {'slowd_matype': talib.MA_Type.T3} expected['slowd_matype'] = 8 - assert_equals(expected, stoch.parameters) + assert expected == stoch.parameters stoch.parameters = { 'slowk_matype': talib.MA_Type.WMA, @@ -225,10 +222,10 @@ def test_parameters(): } expected['slowk_matype'] = 2 expected['slowd_matype'] = 1 - assert_equals(expected, stoch.parameters) + assert expected == stoch.parameters def test_lookback(): - assert_equals(abstract.Function('SMA', 10).lookback, 9) + assert abstract.Function('SMA', 10).lookback == 9 stochrsi = abstract.Function('stochrsi', 20, 5, 3) - assert_equals(stochrsi.lookback, 26) + assert stochrsi.lookback == 26 diff --git a/tests/test_data.py b/tests/test_data.py index 3fbaf37f5..11c4cbf6d 100644 --- a/tests/test_data.py +++ b/tests/test_data.py @@ -3,7 +3,6 @@ import numpy as np -from nose.tools import assert_equal, assert_not_equal, assert_true ford_2012_dates = np.asarray([ 20120103, 20120104, 20120105, 20120106, 20120109, 20120110, 20120111, 20120112, 20120113, 20120117, 20120118, 20120119, @@ -217,9 +216,9 @@ def assert_np_arrays_equal(expected, got): for i, value in enumerate(expected): if np.isnan(value): - assert_true(np.isnan(got[i])) + assert np.isnan(got[i]) else: - assert_equal(value, got[i]) + assert value == got[i] def assert_np_arrays_not_equal(expected, got): ''' Verifies expected and got have the same number of leading nan fields, @@ -229,11 +228,11 @@ def assert_np_arrays_not_equal(expected, got): equals = [] for i, value in enumerate(expected): if np.isnan(value): - assert_true(np.isnan(got[i])) + assert np.isnan(got[i]) nans.append(value) else: try: - assert_not_equal(value, got[i]) + assert value != got[i] except AssertionError: equals.append(got[i]) if len(equals) == len(expected[len(nans):]): diff --git a/tests/test_func.py b/tests/test_func.py index 4350fb086..3cb6a9f4f 100644 --- a/tests/test_func.py +++ b/tests/test_func.py @@ -1,20 +1,20 @@ import numpy as np -from nose.tools import assert_equals, assert_true, assert_raises +import pytest import talib from talib import func -from talib.test_data import series, assert_np_arrays_equal, assert_np_arrays_not_equal +from test_data import series, assert_np_arrays_equal, assert_np_arrays_not_equal def test_input_lengths(): a1 = np.arange(10, dtype=float) a2 = np.arange(11, dtype=float) - with assert_raises(Exception): + with pytest.raises(Exception): func.BOP(a2, a1, a1, a1) - with assert_raises(Exception): + with pytest.raises(Exception): func.BOP(a1, a2, a1, a1) - with assert_raises(Exception): + with pytest.raises(Exception): func.BOP(a1, a1, a2, a1) - with assert_raises(Exception): + with pytest.raises(Exception): func.BOP(a1, a1, a1, a2) def test_input_nans(): @@ -41,11 +41,11 @@ def test_unstable_period(): def test_MIN(): result = func.MIN(series, timeperiod=4) i = np.where(~np.isnan(result))[0][0] - assert_equals(len(series), len(result)) - assert_equals(result[i + 1], 93.780) - assert_equals(result[i + 2], 93.780) - assert_equals(result[i + 3], 92.530) - assert_equals(result[i + 4], 92.530) + assert len(series) == len(result) + assert result[i + 1] == 93.780 + assert result[i + 2] == 93.780 + assert result[i + 3] == 92.530 + assert result[i + 4] == 92.530 values = np.array([np.nan, 5., 4., 3., 5., 7.]) result = func.MIN(values, timeperiod=2) assert_np_arrays_equal(result, [np.nan, np.nan, 4, 3, 3, 5]) @@ -53,11 +53,11 @@ def test_MIN(): def test_MAX(): result = func.MAX(series, timeperiod=4) i = np.where(~np.isnan(result))[0][0] - assert_equals(len(series), len(result)) - assert_equals(result[i + 2], 95.090) - assert_equals(result[i + 3], 95.090) - assert_equals(result[i + 4], 94.620) - assert_equals(result[i + 5], 94.620) + assert len(series) == len(result) + assert result[i + 2] == 95.090 + assert result[i + 3] == 95.090 + assert result[i + 4] == 94.620 + assert result[i + 5] == 94.620 def test_MOM(): values = np.array([90.0,88.0,89.0]) @@ -75,29 +75,29 @@ def test_BBANDS(): nbdevup=2.0, nbdevdn=2.0, matype=talib.MA_Type.EMA) i = np.where(~np.isnan(upper))[0][0] - assert_true(len(upper) == len(middle) == len(lower) == len(series)) - #assert_true(abs(upper[i + 0] - 98.0734) < 1e-3) - assert_true(abs(middle[i + 0] - 92.8910) < 1e-3) - assert_true(abs(lower[i + 0] - 87.7086) < 1e-3) - #assert_true(abs(upper[i + 13] - 93.674) < 1e-3) - assert_true(abs(middle[i + 13] - 87.679) < 1e-3) - assert_true(abs(lower[i + 13] - 81.685) < 1e-3) + assert len(upper) == len(middle) == len(lower) == len(series) + # assert abs(upper[i + 0] - 98.0734) < 1e-3 + assert abs(middle[i + 0] - 92.8910) < 1e-3 + assert abs(lower[i + 0] - 87.7086) < 1e-3 + # assert abs(upper[i + 13] - 93.674) < 1e-3 + assert abs(middle[i + 13] - 87.679) < 1e-3 + assert abs(lower[i + 13] - 81.685) < 1e-3 def test_DEMA(): result = func.DEMA(series) i = np.where(~np.isnan(result))[0][0] - assert_true(len(series) == len(result)) - assert_true(abs(result[i + 1] - 86.765) < 1e-3) - assert_true(abs(result[i + 2] - 86.942) < 1e-3) - assert_true(abs(result[i + 3] - 87.089) < 1e-3) - assert_true(abs(result[i + 4] - 87.656) < 1e-3) + assert len(series) == len(result) + assert abs(result[i + 1] - 86.765) < 1e-3 + assert abs(result[i + 2] - 86.942) < 1e-3 + assert abs(result[i + 3] - 87.089) < 1e-3 + assert abs(result[i + 4] - 87.656) < 1e-3 def test_EMAEMA(): result = func.EMA(series, timeperiod=2) result = func.EMA(result, timeperiod=2) i = np.where(~np.isnan(result))[0][0] - assert_true(len(series) == len(result)) - assert_equals(i, 2) + assert len(series) == len(result) + assert i == 2 def test_CDL3BLACKCROWS(): o = np.array([39.00, 39.00, 39.00, 39.00, 39.00, 39.00, 39.00, 39.00, 39.00, 39.00, 39.00, 39.00, 39.00, 39.00, 40.32, 40.51, 38.09, 35.00, 27.66, 30.80]) diff --git a/tests/test_stream.py b/tests/test_stream.py index 0abd8dc78..c760926c9 100644 --- a/tests/test_stream.py +++ b/tests/test_stream.py @@ -1,5 +1,4 @@ import numpy as np -from nose.tools import assert_equals, assert_true, assert_raises import talib from talib import stream @@ -7,19 +6,19 @@ def test_streaming(): a = np.array([1,1,2,3,5,8,13], dtype=float) r = stream.MOM(a, timeperiod=1) - assert_equals(r, 5) + assert r == 5 r = stream.MOM(a, timeperiod=2) - assert_equals(r, 8) + assert r == 8 r = stream.MOM(a, timeperiod=3) - assert_equals(r, 10) + assert r == 10 r = stream.MOM(a, timeperiod=4) - assert_equals(r, 11) + assert r == 11 r = stream.MOM(a, timeperiod=5) - assert_equals(r, 12) + assert r == 12 r = stream.MOM(a, timeperiod=6) - assert_equals(r, 12) + assert r == 12 r = stream.MOM(a, timeperiod=7) - assert_true(np.isnan(r)) + assert np.isnan(r) def test_CDL3BLACKCROWS(): o = np.array([39.00, 39.00, 39.00, 39.00, 39.00, 39.00, 39.00, 39.00, 39.00, 39.00, 39.00, 39.00, 39.00, 39.00, 40.32, 40.51, 38.09, 35.00]) @@ -28,4 +27,4 @@ def test_CDL3BLACKCROWS(): c = np.array([40.29, 40.29, 40.29, 40.29, 40.29, 40.29, 40.29, 40.29, 40.29, 40.29, 40.29, 40.29, 40.29, 40.29, 40.46, 37.08, 33.37, 30.03]) r = stream.CDL3BLACKCROWS(o, h, l, c) - assert_equals(r, -100) + assert r == -100 From d222fc98c6b0281f02736a65013d2e236f78f182 Mon Sep 17 00:00:00 2001 From: mckelvin Date: Tue, 23 Aug 2016 15:06:32 +0800 Subject: [PATCH 04/13] Remove generated .c files in talib/ --- talib/abstract.c | 20518 ------- talib/common.c | 5519 -- talib/func.c | 138741 -------------------------------------------- talib/stream.c | 102155 -------------------------------- 4 files changed, 266933 deletions(-) delete mode 100644 talib/abstract.c delete mode 100644 talib/common.c delete mode 100644 talib/func.c delete mode 100644 talib/stream.c diff --git a/talib/abstract.c b/talib/abstract.c deleted file mode 100644 index 7e248582c..000000000 --- a/talib/abstract.c +++ /dev/null @@ -1,20518 +0,0 @@ -/* Generated by Cython 0.23.4 */ - -#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_23_4" -#include -#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_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) -#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])) -#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 -#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 - #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 -#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 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__abstract -#define __PYX_HAVE_API__talib__abstract -#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 -#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; 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 - #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_Int(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 && __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 int __pyx_lineno; -static int __pyx_clineno = 0; -static const char * __pyx_cfilenm= __FILE__; -static const char *__pyx_filename; - -#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 - #else - #include - #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/abstract.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; -#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 - -#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) --- */ -#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) - -#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 - -static PyObject *__Pyx_GetBuiltinName(PyObject *name); - -#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 - -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); - -static void __Pyx_RaiseDoubleKeywordsError(const char* func_name, PyObject* kw_name); - -static int __Pyx_ParseOptionalKeywords(PyObject *kwds, PyObject **argnames[],\ - PyObject *kwds2, PyObject *values[], Py_ssize_t num_pos_args,\ - const char* function_name); - -#if CYTHON_COMPILING_IN_CPYTHON -static CYTHON_INLINE PyObject* __Pyx_PyObject_CallMethO(PyObject *func, PyObject *arg); -#endif - -static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObject *arg); - -#if CYTHON_COMPILING_IN_CPYTHON -static CYTHON_INLINE PyObject* __Pyx_PyObject_CallNoArg(PyObject *func); -#else -#define __Pyx_PyObject_CallNoArg(func) __Pyx_PyObject_Call(func, __pyx_empty_tuple, NULL) -#endif - -#if CYTHON_COMPILING_IN_CPYTHON -#define __Pyx_PyObject_DelAttrStr(o,n) __Pyx_PyObject_SetAttrStr(o,n,NULL) -static CYTHON_INLINE int __Pyx_PyObject_SetAttrStr(PyObject* obj, PyObject* attr_name, PyObject* value) { - PyTypeObject* tp = Py_TYPE(obj); - if (likely(tp->tp_setattro)) - return tp->tp_setattro(obj, attr_name, value); -#if PY_MAJOR_VERSION < 3 - if (likely(tp->tp_setattr)) - return tp->tp_setattr(obj, PyString_AS_STRING(attr_name), value); -#endif - return PyObject_SetAttr(obj, attr_name, value); -} -#else -#define __Pyx_PyObject_DelAttrStr(o,n) PyObject_DelAttr(o,n) -#define __Pyx_PyObject_SetAttrStr(o,n,v) PyObject_SetAttr(o,n,v) -#endif - -static CYTHON_INLINE PyObject *__Pyx_GetModuleGlobalName(PyObject *name); - -static CYTHON_INLINE int __Pyx_PySequence_ContainsTF(PyObject* item, PyObject* seq, int eq) { - int result = PySequence_Contains(seq, item); - return unlikely(result < 0) ? result : (result == (eq == Py_EQ)); -} - -static CYTHON_INLINE void __Pyx_ErrRestore(PyObject *type, PyObject *value, PyObject *tb); -static CYTHON_INLINE void __Pyx_ErrFetch(PyObject **type, PyObject **value, PyObject **tb); - -static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb, PyObject *cause); - -static CYTHON_INLINE void __Pyx_RaiseTooManyValuesError(Py_ssize_t expected); - -static CYTHON_INLINE void __Pyx_RaiseNeedMoreValuesError(Py_ssize_t index); - -static CYTHON_INLINE int __Pyx_IterFinish(void); - -static int __Pyx_IternextUnpackEndCheck(PyObject *retval, Py_ssize_t expected); - -#if CYTHON_COMPILING_IN_CPYTHON -static CYTHON_INLINE int __Pyx_PyList_Append(PyObject* list, PyObject* x) { - PyListObject* L = (PyListObject*) list; - Py_ssize_t len = Py_SIZE(list); - if (likely(L->allocated > len) & likely(len > (L->allocated >> 1))) { - Py_INCREF(x); - PyList_SET_ITEM(list, len, x); - Py_SIZE(list) = len+1; - return 0; - } - return PyList_Append(list, x); -} -#else -#define __Pyx_PyList_Append(L,x) PyList_Append(L,x) -#endif - -#if PY_MAJOR_VERSION < 3 -#define __Pyx_PyString_Join __Pyx_PyBytes_Join -#define __Pyx_PyBaseString_Join(s, v) (PyUnicode_CheckExact(s) ? PyUnicode_Join(s, v) : __Pyx_PyBytes_Join(s, v)) -#else -#define __Pyx_PyString_Join PyUnicode_Join -#define __Pyx_PyBaseString_Join PyUnicode_Join -#endif -#if CYTHON_COMPILING_IN_CPYTHON - #if PY_MAJOR_VERSION < 3 - #define __Pyx_PyBytes_Join _PyString_Join - #else - #define __Pyx_PyBytes_Join _PyBytes_Join - #endif -#else -static CYTHON_INLINE PyObject* __Pyx_PyBytes_Join(PyObject* sep, PyObject* values); -#endif - -static PyObject* __Pyx_PyObject_CallMethod0(PyObject* obj, PyObject* method_name); - -static CYTHON_INLINE void __Pyx_RaiseNoneNotIterableError(void); - -static void __Pyx_UnpackTupleError(PyObject *, Py_ssize_t index); - -static CYTHON_INLINE int __Pyx_unpack_tuple2(PyObject* tuple, PyObject** value1, PyObject** value2, - int is_tuple, int has_known_size, int decref_tuple); - -static CYTHON_INLINE PyObject* __Pyx_dict_iterator(PyObject* dict, int is_dict, PyObject* method_name, - Py_ssize_t* p_orig_length, int* p_is_dict); -static CYTHON_INLINE int __Pyx_dict_iter_next(PyObject* dict_or_iter, Py_ssize_t orig_length, Py_ssize_t* ppos, - PyObject** pkey, PyObject** pvalue, PyObject** pitem, int is_dict); - -#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 - -#define __Pyx_GetItemInt(o, i, type, is_signed, to_py_func, is_list, wraparound, boundscheck)\ - (__Pyx_fits_Py_ssize_t(i, type, is_signed) ?\ - __Pyx_GetItemInt_Fast(o, (Py_ssize_t)i, is_list, wraparound, boundscheck) :\ - (is_list ? (PyErr_SetString(PyExc_IndexError, "list index out of range"), (PyObject*)NULL) :\ - __Pyx_GetItemInt_Generic(o, to_py_func(i)))) -#define __Pyx_GetItemInt_List(o, i, type, is_signed, to_py_func, is_list, wraparound, boundscheck)\ - (__Pyx_fits_Py_ssize_t(i, type, is_signed) ?\ - __Pyx_GetItemInt_List_Fast(o, (Py_ssize_t)i, wraparound, boundscheck) :\ - (PyErr_SetString(PyExc_IndexError, "list index out of range"), (PyObject*)NULL)) -static CYTHON_INLINE PyObject *__Pyx_GetItemInt_List_Fast(PyObject *o, Py_ssize_t i, - int wraparound, int boundscheck); -#define __Pyx_GetItemInt_Tuple(o, i, type, is_signed, to_py_func, is_list, wraparound, boundscheck)\ - (__Pyx_fits_Py_ssize_t(i, type, is_signed) ?\ - __Pyx_GetItemInt_Tuple_Fast(o, (Py_ssize_t)i, wraparound, boundscheck) :\ - (PyErr_SetString(PyExc_IndexError, "tuple index out of range"), (PyObject*)NULL)) -static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Tuple_Fast(PyObject *o, Py_ssize_t i, - int wraparound, int boundscheck); -static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Generic(PyObject *o, PyObject* j); -static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Fast(PyObject *o, Py_ssize_t i, - int is_list, int wraparound, int boundscheck); - -#if CYTHON_COMPILING_IN_CPYTHON -static PyObject* __Pyx_PyInt_AddObjC(PyObject *op1, PyObject *op2, long intval, int inplace); -#else -#define __Pyx_PyInt_AddObjC(op1, op2, intval, inplace)\ - (inplace ? PyNumber_InPlaceAdd(op1, op2) : PyNumber_Add(op1, op2)) -#endif - -static CYTHON_INLINE int __Pyx_ArgTypeTest(PyObject *obj, PyTypeObject *type, int none_allowed, - const char *name, int exact); - -static CYTHON_INLINE PyObject* __Pyx_PyDict_Keys(PyObject* d); - -typedef struct { - PyObject *type; - PyObject **method_name; - PyCFunction func; - PyObject *method; - int flag; -} __Pyx_CachedCFunction; - -static PyObject* __Pyx__CallUnboundCMethod0(__Pyx_CachedCFunction* cfunc, PyObject* self); -#if CYTHON_COMPILING_IN_CPYTHON -#define __Pyx_CallUnboundCMethod0(cfunc, self)\ - ((likely((cfunc)->func)) ?\ - (likely((cfunc)->flag == METH_NOARGS) ? (*((cfunc)->func))(self, NULL) :\ - (likely((cfunc)->flag == (METH_VARARGS | METH_KEYWORDS)) ? ((*(PyCFunctionWithKeywords)(cfunc)->func)(self, __pyx_empty_tuple, NULL)) :\ - ((cfunc)->flag == METH_VARARGS ? (*((cfunc)->func))(self, __pyx_empty_tuple) : __Pyx__CallUnboundCMethod0(cfunc, self)))) :\ - __Pyx__CallUnboundCMethod0(cfunc, self)) -#else -#define __Pyx_CallUnboundCMethod0(cfunc, self) __Pyx__CallUnboundCMethod0(cfunc, self) -#endif - -#define __Pyx_PyNumber_InPlacePowerOf2(a, b, c) __Pyx__PyNumber_PowerOf2(a, b, c, 1) -#define __Pyx_PyNumber_PowerOf2(a, b, c) __Pyx__PyNumber_PowerOf2(a, b, c, 0) -static PyObject* __Pyx__PyNumber_PowerOf2(PyObject *two, PyObject *exp, PyObject *none, int inplace); - -static CYTHON_INLINE PyObject* __Pyx_PyObject_GetSlice( - PyObject* obj, Py_ssize_t cstart, Py_ssize_t cstop, - PyObject** py_start, PyObject** py_stop, PyObject** py_slice, - int has_cstart, int has_cstop, int wraparound); - -#if CYTHON_COMPILING_IN_CPYTHON -static PyObject* __Pyx_PyInt_EqObjC(PyObject *op1, PyObject *op2, long intval, int inplace); -#else -#define __Pyx_PyInt_EqObjC(op1, op2, intval, inplace)\ - PyObject_RichCompare(op1, op2, Py_EQ) - #endif - -#if CYTHON_COMPILING_IN_CPYTHON -static PyObject* __Pyx_PyInt_RemainderObjC(PyObject *op1, PyObject *op2, long intval, int inplace); -#else -#define __Pyx_PyInt_RemainderObjC(op1, op2, intval, inplace)\ - (inplace ? PyNumber_InPlaceRemainder(op1, op2) : PyNumber_Remainder(op1, op2)) -#endif - -#include - -static CYTHON_INLINE int __Pyx_PyBytes_Equals(PyObject* s1, PyObject* s2, int equals); - -static CYTHON_INLINE int __Pyx_PyUnicode_Equals(PyObject* s1, PyObject* s2, int equals); - -#if PY_MAJOR_VERSION >= 3 -#define __Pyx_PyString_Equals __Pyx_PyUnicode_Equals -#else -#define __Pyx_PyString_Equals __Pyx_PyBytes_Equals -#endif - -#define __Pyx_SetItemInt(o, i, v, type, is_signed, to_py_func, is_list, wraparound, boundscheck)\ - (__Pyx_fits_Py_ssize_t(i, type, is_signed) ?\ - __Pyx_SetItemInt_Fast(o, (Py_ssize_t)i, v, is_list, wraparound, boundscheck) :\ - (is_list ? (PyErr_SetString(PyExc_IndexError, "list assignment index out of range"), -1) :\ - __Pyx_SetItemInt_Generic(o, to_py_func(i), v))) -static CYTHON_INLINE int __Pyx_SetItemInt_Generic(PyObject *o, PyObject *j, PyObject *v); -static CYTHON_INLINE int __Pyx_SetItemInt_Fast(PyObject *o, Py_ssize_t i, PyObject *v, - int is_list, int wraparound, int boundscheck); - -static void __Pyx_WriteUnraisable(const char *name, int clineno, - int lineno, const char *filename, - int full_traceback, int nogil); - -static CYTHON_INLINE int __Pyx_TypeTest(PyObject *obj, PyTypeObject *type); - -static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list, int level); - -static PyObject* __Pyx_ImportFrom(PyObject* module, PyObject* name); - -static CYTHON_INLINE void __Pyx_ExceptionSave(PyObject **type, PyObject **value, PyObject **tb); -static void __Pyx_ExceptionReset(PyObject *type, PyObject *value, PyObject *tb); - -static int __Pyx_GetException(PyObject **type, PyObject **value, PyObject **tb); - -static PyObject *__Pyx_CalculateMetaclass(PyTypeObject *metaclass, PyObject *bases); - -static PyTypeObject* __Pyx_FetchCommonType(PyTypeObject* type); - -#define __Pyx_CyFunction_USED 1 -#include -#define __Pyx_CYFUNCTION_STATICMETHOD 0x01 -#define __Pyx_CYFUNCTION_CLASSMETHOD 0x02 -#define __Pyx_CYFUNCTION_CCLASS 0x04 -#define __Pyx_CyFunction_GetClosure(f)\ - (((__pyx_CyFunctionObject *) (f))->func_closure) -#define __Pyx_CyFunction_GetClassObj(f)\ - (((__pyx_CyFunctionObject *) (f))->func_classobj) -#define __Pyx_CyFunction_Defaults(type, f)\ - ((type *)(((__pyx_CyFunctionObject *) (f))->defaults)) -#define __Pyx_CyFunction_SetDefaultsGetter(f, g)\ - ((__pyx_CyFunctionObject *) (f))->defaults_getter = (g) -typedef struct { - PyCFunctionObject func; -#if PY_VERSION_HEX < 0x030500A0 - PyObject *func_weakreflist; -#endif - PyObject *func_dict; - PyObject *func_name; - PyObject *func_qualname; - PyObject *func_doc; - PyObject *func_globals; - PyObject *func_code; - PyObject *func_closure; - PyObject *func_classobj; - void *defaults; - int defaults_pyobjects; - int flags; - PyObject *defaults_tuple; - PyObject *defaults_kwdict; - PyObject *(*defaults_getter)(PyObject *); - PyObject *func_annotations; -} __pyx_CyFunctionObject; -static PyTypeObject *__pyx_CyFunctionType = 0; -#define __Pyx_CyFunction_NewEx(ml, flags, qualname, self, module, globals, code)\ - __Pyx_CyFunction_New(__pyx_CyFunctionType, ml, flags, qualname, self, module, globals, code) -static PyObject *__Pyx_CyFunction_New(PyTypeObject *, PyMethodDef *ml, - int flags, PyObject* qualname, - PyObject *self, - PyObject *module, PyObject *globals, - PyObject* code); -static CYTHON_INLINE void *__Pyx_CyFunction_InitDefaults(PyObject *m, - size_t size, - int pyobjects); -static CYTHON_INLINE void __Pyx_CyFunction_SetDefaultsTuple(PyObject *m, - PyObject *tuple); -static CYTHON_INLINE void __Pyx_CyFunction_SetDefaultsKwDict(PyObject *m, - PyObject *dict); -static CYTHON_INLINE void __Pyx_CyFunction_SetAnnotationsDict(PyObject *m, - PyObject *dict); -static int __pyx_CyFunction_init(void); - -static PyObject *__Pyx_Py3MetaclassPrepare(PyObject *metaclass, PyObject *bases, PyObject *name, PyObject *qualname, - PyObject *mkw, PyObject *modname, PyObject *doc); -static PyObject *__Pyx_Py3ClassCreate(PyObject *metaclass, PyObject *name, PyObject *bases, PyObject *dict, - PyObject *mkw, int calculate_metaclass, int allow_py2_metaclass); - -typedef struct { - int code_line; - PyCodeObject* code_object; -} __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); - -static void __Pyx_AddTraceback(const char *funcname, int c_line, - int py_line, const char *filename); - -static CYTHON_INLINE int __Pyx_PyInt_As_int(PyObject *); - -static CYTHON_INLINE PyObject *__Pyx_GetAttr(PyObject *, PyObject *); - -static PyObject* __Pyx_Globals(void); - -static PyObject* __Pyx_PyExec3(PyObject*, PyObject*, PyObject*); -static CYTHON_INLINE PyObject* __Pyx_PyExec2(PyObject*, PyObject*); - -static CYTHON_INLINE PyObject* __Pyx_PyInt_From_long(long value); - -static CYTHON_INLINE PyObject* __Pyx_PyInt_From_TA_OptInputParameterType(TA_OptInputParameterType value); - -static CYTHON_INLINE PyObject* __Pyx_PyInt_From_int(int value); - -static CYTHON_INLINE PyObject* __Pyx_PyInt_From_TA_RetCode(TA_RetCode value); - -static CYTHON_INLINE PyObject* __Pyx_PyInt_From_unsigned_int(unsigned int value); - -static CYTHON_INLINE unsigned int __Pyx_PyInt_As_unsigned_int(PyObject *); - -static CYTHON_INLINE PyObject* __Pyx_PyInt_From_TA_FuncFlags(TA_FuncFlags value); - -static CYTHON_INLINE PyObject* __Pyx_PyInt_From_TA_InputFlags(TA_InputFlags value); - -static CYTHON_INLINE PyObject* __Pyx_PyInt_From_TA_OutputFlags(TA_OutputFlags value); - -#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(_WIN32) || defined(__clang__)) && defined(__cplusplus) && CYTHON_CCOMPLEX - #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 - -static CYTHON_INLINE __pyx_t_float_complex __pyx_t_float_complex_from_parts(float, float); - -#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 - -static CYTHON_INLINE __pyx_t_double_complex __pyx_t_double_complex_from_parts(double, double); - -#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 - -static CYTHON_INLINE PyObject* __Pyx_PyInt_From_enum__NPY_TYPES(enum NPY_TYPES value); - -static CYTHON_INLINE long __Pyx_PyInt_As_long(PyObject *); - -static int __Pyx_check_binary_version(void); - -#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 - -static PyObject *__Pyx_ImportModule(const char *name); - -static PyTypeObject *__Pyx_ImportType(const char *module_name, const char *class_name, size_t size, int strict); - -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.abstract' */ -static TA_FuncHandle *__pyx_f_5talib_8abstract___ta_getFuncHandle(char *); /*proto*/ -static TA_ParamHolder *__pyx_f_5talib_8abstract___ta_paramHolderAlloc(char *); /*proto*/ -static int __pyx_f_5talib_8abstract___ta_paramHolderFree(TA_ParamHolder *); /*proto*/ -static int __pyx_f_5talib_8abstract___ta_setOptInputParamInteger(TA_ParamHolder *, int, int); /*proto*/ -static int __pyx_f_5talib_8abstract___ta_setOptInputParamReal(TA_ParamHolder *, int, int); /*proto*/ -static int __pyx_f_5talib_8abstract___ta_getLookback(TA_ParamHolder *); /*proto*/ -#define __Pyx_MODULE_NAME "talib.abstract" -int __pyx_module_is_main_talib__abstract = 0; - -/* Implementation of 'talib.abstract' */ -static PyObject *__pyx_builtin_ImportError; -static PyObject *__pyx_builtin_object; -static PyObject *__pyx_builtin_property; -static PyObject *__pyx_builtin_Exception; -static PyObject *__pyx_builtin_xrange; -static PyObject *__pyx_builtin_enumerate; -static PyObject *__pyx_builtin_min; -static PyObject *__pyx_builtin_max; -static PyObject *__pyx_builtin_ValueError; -static PyObject *__pyx_builtin_range; -static PyObject *__pyx_builtin_RuntimeError; -static char __pyx_k_3[] = "3"; -static char __pyx_k_B[] = "B"; -static char __pyx_k_H[] = "H"; -static char __pyx_k_I[] = "I"; -static char __pyx_k_L[] = "L"; -static char __pyx_k_O[] = "O"; -static char __pyx_k_Q[] = "Q"; -static char __pyx_k_b[] = "b"; -static char __pyx_k_d[] = "d"; -static char __pyx_k_f[] = "f"; -static char __pyx_k_g[] = "g"; -static char __pyx_k_h[] = "h"; -static char __pyx_k_i[] = "i"; -static char __pyx_k_l[] = "l"; -static char __pyx_k_q[] = "q"; -static char __pyx_k_s[] = "s"; -static char __pyx_k_Zd[] = "Zd"; -static char __pyx_k_Zf[] = "Zf"; -static char __pyx_k_Zg[] = "Zg"; -static char __pyx_k__5[] = ""; -static char __pyx_k__6[] = ", "; -static char __pyx_k__8[] = "("; -static char __pyx_k__9[] = " "; -static char __pyx_k_in[] = "in"; -static char __pyx_k_Dot[] = "Dot"; -static char __pyx_k__10[] = ")\n"; -static char __pyx_k__11[] = "\n"; -static char __pyx_k_all[] = "__all__"; -static char __pyx_k_doc[] = "__doc__"; -static char __pyx_k_idx[] = "idx"; -static char __pyx_k_key[] = "key"; -static char __pyx_k_log[] = "log"; -static char __pyx_k_low[] = "low"; -static char __pyx_k_max[] = "max"; -static char __pyx_k_min[] = "min"; -static char __pyx_k_out[] = "out"; -static char __pyx_k_pop[] = "pop"; -static char __pyx_k_ret[] = "ret"; -static char __pyx_k_run[] = "run"; -static char __pyx_k_s_2[] = "%s"; -static char __pyx_k_s_3[] = "(%s)"; -static char __pyx_k_s_4[] = " %s"; -static char __pyx_k_s_s[] = " %s: %s"; -static char __pyx_k_str[] = "__str__"; -static char __pyx_k_sys[] = "sys"; -static char __pyx_k_Line[] = "Line"; -static char __pyx_k_args[] = "args"; -static char __pyx_k_call[] = "__call__"; -static char __pyx_k_copy[] = "copy"; -static char __pyx_k_docs[] = "docs"; -static char __pyx_k_flag[] = "flag"; -static char __pyx_k_func[] = "func"; -static char __pyx_k_help[] = "help"; -static char __pyx_k_high[] = "high"; -static char __pyx_k_info[] = "info"; -static char __pyx_k_init[] = "__init__"; -static char __pyx_k_join[] = "join"; -static char __pyx_k_keys[] = "keys"; -static char __pyx_k_main[] = "__main__"; -static char __pyx_k_math[] = "math"; -static char __pyx_k_name[] = "name"; -static char __pyx_k_open[] = "open"; -static char __pyx_k_real[] = "real"; -static char __pyx_k_repr[] = "__repr__"; -static char __pyx_k_self[] = "self"; -static char __pyx_k_test[] = "__test__"; -static char __pyx_k_type[] = "type"; -static char __pyx_k_ascii[] = "ascii"; -static char __pyx_k_close[] = "close"; -static char __pyx_k_flags[] = "flags"; -static char __pyx_k_group[] = "group"; -static char __pyx_k_index[] = "index"; -static char __pyx_k_items[] = "items"; -static char __pyx_k_lower[] = "lower"; -static char __pyx_k_numpy[] = "numpy"; -static char __pyx_k_optIn[] = "optIn"; -static char __pyx_k_param[] = "param"; -static char __pyx_k_price[] = "price"; -static char __pyx_k_range[] = "range"; -static char __pyx_k_real0[] = "real0"; -static char __pyx_k_real1[] = "real1"; -static char __pyx_k_s_s_2[] = "[%s=%s]"; -static char __pyx_k_table[] = "table"; -static char __pyx_k_upper[] = "upper"; -static char __pyx_k_value[] = "value"; -static char __pyx_k_Inputs[] = "Inputs:"; -static char __pyx_k_Series[] = "Series"; -static char __pyx_k_common[] = "common"; -static char __pyx_k_decode[] = "decode"; -static char __pyx_k_func_c[] = "func_c"; -static char __pyx_k_groups[] = "groups"; -static char __pyx_k_holder[] = "holder"; -static char __pyx_k_import[] = "__import__"; -static char __pyx_k_kwargs[] = "kwargs"; -static char __pyx_k_matype[] = "matype"; -static char __pyx_k_module[] = "__module__"; -static char __pyx_k_object[] = "object"; -static char __pyx_k_output[] = "output"; -static char __pyx_k_pandas[] = "pandas"; -static char __pyx_k_params[] = "params"; -static char __pyx_k_price0[] = "price0"; -static char __pyx_k_price1[] = "price1"; -static char __pyx_k_prices[] = "prices"; -static char __pyx_k_series[] = "series"; -static char __pyx_k_type_2[] = "type_"; -static char __pyx_k_values[] = "values"; -static char __pyx_k_volume[] = "volume"; -static char __pyx_k_xrange[] = "xrange"; -static char __pyx_k_MA_Type[] = "MA_Type"; -static char __pyx_k_Outputs[] = "Outputs:"; -static char __pyx_k_columns[] = "columns"; -static char __pyx_k_integer[] = "integer"; -static char __pyx_k_max_int[] = "max_int"; -static char __pyx_k_min_int[] = "min_int"; -static char __pyx_k_outputs[] = "outputs"; -static char __pyx_k_periods[] = "periods"; -static char __pyx_k_prepare[] = "__prepare__"; -static char __pyx_k_replace[] = "replace"; -static char __pyx_k_results[] = "results"; -static char __pyx_k_retCode[] = "retCode"; -static char __pyx_k_unicode[] = "__unicode__"; -static char __pyx_k_version[] = "version"; -static char __pyx_k_Function[] = "Function"; -static char __pyx_k_builtins[] = "__builtins__"; -static char __pyx_k_defaults[] = "defaults"; -static char __pyx_k_lookback[] = "lookback"; -static char __pyx_k_property[] = "property"; -static char __pyx_k_qualname[] = "__qualname__"; -static char __pyx_k_DataFrame[] = "DataFrame"; -static char __pyx_k_Exception[] = "Exception"; -static char __pyx_k_Histogram[] = "Histogram"; -static char __pyx_k_bytes2str[] = "bytes2str"; -static char __pyx_k_enumerate[] = "enumerate"; -static char __pyx_k_func_args[] = "func_args"; -static char __pyx_k_func_info[] = "func_info"; -static char __pyx_k_func_line[] = "func_line"; -static char __pyx_k_functions[] = "functions"; -static char __pyx_k_get_flags[] = "__get_flags"; -static char __pyx_k_metaclass[] = "__metaclass__"; -static char __pyx_k_opt_input[] = "opt_input"; -static char __pyx_k_str2bytes[] = "str2bytes"; -static char __pyx_k_timeStamp[] = "timeStamp"; -static char __pyx_k_Parameters[] = "Parameters:"; -static char __pyx_k_ValueError[] = "ValueError"; -static char __pyx_k_input_name[] = "input_name"; -static char __pyx_k_num_inputs[] = "num_inputs"; -static char __pyx_k_param_name[] = "param_name"; -static char __pyx_k_parameters[] = "parameters"; -static char __pyx_k_skip_first[] = "skip_first"; -static char __pyx_k_Dashed_Line[] = "Dashed Line"; -static char __pyx_k_Dotted_Line[] = "Dotted Line"; -static char __pyx_k_ImportError[] = "ImportError"; -static char __pyx_k_OrderedDict[] = "OrderedDict"; -static char __pyx_k_any_ndarray[] = "(any ndarray)"; -static char __pyx_k_collections[] = "collections"; -static char __pyx_k_input_names[] = "input_names"; -static char __pyx_k_num_outputs[] = "num_outputs"; -static char __pyx_k_ordereddict[] = "ordereddict"; -static char __pyx_k_output_name[] = "output_name"; -static char __pyx_k_update_info[] = "update_info"; -static char __pyx_k_value_range[] = "value_range"; -static char __pyx_k_Function_run[] = "Function.run"; -static char __pyx_k_Pattern_Bool[] = "Pattern (Bool)"; -static char __pyx_k_RuntimeError[] = "RuntimeError"; -static char __pyx_k_column_stack[] = "column_stack"; -static char __pyx_k_display_name[] = "display_name"; -static char __pyx_k_getattribute[] = "__getattribute__"; -static char __pyx_k_input_arrays[] = "input_arrays"; -static char __pyx_k_missing_keys[] = "missing_keys"; -static char __pyx_k_openInterest[] = "openInterest"; -static char __pyx_k_output_flags[] = "output_flags"; -static char __pyx_k_output_names[] = "output_names"; -static char __pyx_k_price_series[] = "price_series"; -static char __pyx_k_s_Function_s[] = "%s = Function('%s')"; -static char __pyx_k_Function_info[] = "Function.info"; -static char __pyx_k_PANDAS_SERIES[] = "__PANDAS_SERIES"; -static char __pyx_k_TA_FUNC_FLAGS[] = "TA_FUNC_FLAGS"; -static char __pyx_k_call_function[] = "__call_function"; -static char __pyx_k_default_value[] = "default_value"; -static char __pyx_k_documentation[] = "documentation"; -static char __pyx_k_function_name[] = "function_name"; -static char __pyx_k_FUNCTION_NAMES[] = "__FUNCTION_NAMES"; -static char __pyx_k_Function___str[] = "Function.__str__"; -static char __pyx_k_Function__info[] = "_Function__info"; -static char __pyx_k_Function__name[] = "_Function__name"; -static char __pyx_k_TA_GetFuncInfo[] = "TA_GetFuncInfo"; -static char __pyx_k_TA_GetLookback[] = "TA_GetLookback"; -static char __pyx_k_TA_INPUT_FLAGS[] = "TA_INPUT_FLAGS"; -static char __pyx_k_function_flags[] = "function_flags"; -static char __pyx_k_get_parameters[] = "get_parameters"; -static char __pyx_k_input_arrays_2[] = "[input_arrays]"; -static char __pyx_k_num_opt_inputs[] = "num_opt_inputs"; -static char __pyx_k_set_parameters[] = "set_parameters"; -static char __pyx_k_ta_getFuncInfo[] = "_ta_getFuncInfo"; -static char __pyx_k_talib_abstract[] = "talib.abstract"; -static char __pyx_k_Function___call[] = "Function.__call__"; -static char __pyx_k_Function___init[] = "Function.__init__"; -static char __pyx_k_Function___repr[] = "Function.__repr__"; -static char __pyx_k_TA_OUTPUT_FLAGS[] = "TA_OUTPUT_FLAGS"; -static char __pyx_k_get_input_names[] = "get_input_names"; -static char __pyx_k_set_input_names[] = "set_input_names"; -static char __pyx_k_ta_getFuncTable[] = "_ta_getFuncTable"; -static char __pyx_k_Function_outputs[] = "Function.outputs"; -static char __pyx_k_PANDAS_DATAFRAME[] = "__PANDAS_DATAFRAME"; -static char __pyx_k_TA_FuncTableFree[] = "TA_FuncTableFree"; -static char __pyx_k_TA_GetFuncHandle[] = "TA_GetFuncHandle"; -static char __pyx_k_get_input_arrays[] = "get_input_arrays"; -static char __pyx_k_set_input_arrays[] = "set_input_arrays"; -static char __pyx_k_ta_check_success[] = "_ta_check_success"; -static char __pyx_k_ta_getGroupTable[] = "_ta_getGroupTable"; -static char __pyx_k_Function__namestr[] = "_Function__namestr"; -static char __pyx_k_Function__outputs[] = "_Function__outputs"; -static char __pyx_k_Function_lookback[] = "Function.lookback"; -static char __pyx_k_TA_FuncTableAlloc[] = "TA_FuncTableAlloc"; -static char __pyx_k_TA_GroupTableFree[] = "TA_GroupTableFree"; -static char __pyx_k_flags_lookup_dict[] = "flags_lookup_dict"; -static char __pyx_k_set_function_args[] = "set_function_args"; -static char __pyx_k_Function___unicode[] = "Function.__unicode__"; -static char __pyx_k_INPUT_ARRAYS_TYPES[] = "__INPUT_ARRAYS_TYPES"; -static char __pyx_k_Output_can_be_zero[] = "Output can be zero"; -static char __pyx_k_TA_GroupTableAlloc[] = "TA_GroupTableAlloc"; -static char __pyx_k_TA_ParamHolderFree[] = "TA_ParamHolderFree"; -static char __pyx_k_TA_ParamHolderAlloc[] = "TA_ParamHolderAlloc"; -static char __pyx_k_get_opt_input_value[] = "__get_opt_input_value"; -static char __pyx_k_Function__opt_inputs[] = "_Function__opt_inputs"; -static char __pyx_k_Function__input_names[] = "_Function__input_names"; -static char __pyx_k_Function_output_flags[] = "Function.output_flags"; -static char __pyx_k_Function_output_names[] = "Function.output_names"; -static char __pyx_k_INPUT_ARRAYS_DEFAULTS[] = "__INPUT_ARRAYS_DEFAULTS"; -static char __pyx_k_Output_is_over_volume[] = "Output is over volume"; -static char __pyx_k_get_defaults_and_docs[] = "_get_defaults_and_docs"; -static char __pyx_k_Function__input_arrays[] = "_Function__input_arrays"; -static char __pyx_k_Output_can_be_negative[] = "Output can be negative"; -static char __pyx_k_Output_can_be_positive[] = "Output can be positive"; -static char __pyx_k_display_name_s_group_s[] = "%(display_name)s (%(group)s)\n"; -static char __pyx_k_Function__call_function[] = "_Function__call_function"; -static char __pyx_k_Function__outputs_valid[] = "_Function__outputs_valid"; -static char __pyx_k_Function_function_flags[] = "Function.function_flags"; -static char __pyx_k_Function_get_parameters[] = "Function.get_parameters"; -static char __pyx_k_Function_set_parameters[] = "Function.set_parameters"; -static char __pyx_k_Output_is_a_candlestick[] = "Output is a candlestick"; -static char __pyx_k_TA_SetOptInputParamReal[] = "TA_SetOptInputParamReal"; -static char __pyx_k_Function___call_function[] = "Function.__call_function"; -static char __pyx_k_Function_get_input_names[] = "Function.get_input_names"; -static char __pyx_k_Function_set_input_names[] = "Function.set_input_names"; -static char __pyx_k_TA_GetInputParameterInfo[] = "TA_GetInputParameterInfo"; -static char __pyx_k_initialize_function_info[] = "__initialize_function_info"; -static char __pyx_k_input_price_series_names[] = "input_price_series_names"; -static char __pyx_k_ta_getInputParameterInfo[] = "_ta_getInputParameterInfo"; -static char __pyx_k_Function_get_input_arrays[] = "Function.get_input_arrays"; -static char __pyx_k_Function_set_input_arrays[] = "Function.set_input_arrays"; -static char __pyx_k_TA_GetOutputParameterInfo[] = "TA_GetOutputParameterInfo"; -static char __pyx_k_s_not_supported_by_TA_LIB[] = "%s not supported by TA-LIB."; -static char __pyx_k_ta_getOutputParameterInfo[] = "_ta_getOutputParameterInfo"; -static char __pyx_k_Function_set_function_args[] = "Function.set_function_args"; -static char __pyx_k_Output_scale_same_as_input[] = "Output scale same as input"; -static char __pyx_k_TA_SetOptInputParamInteger[] = "TA_SetOptInputParamInteger"; -static char __pyx_k_input_price_series_names_2[] = "__input_price_series_names"; -static char __pyx_k_INPUT_PRICE_SERIES_DEFAULTS[] = "__INPUT_PRICE_SERIES_DEFAULTS"; -static char __pyx_k_TA_GetOptInputParameterInfo[] = "TA_GetOptInputParameterInfo"; -static char __pyx_k_ndarray_is_not_C_contiguous[] = "ndarray is not C contiguous"; -static char __pyx_k_ta_getOptInputParameterInfo[] = "_ta_getOptInputParameterInfo"; -static char __pyx_k_Function__get_opt_input_value[] = "_Function__get_opt_input_value"; -static char __pyx_k_Function___get_opt_input_value[] = "Function.__get_opt_input_value"; -static char __pyx_k_Values_represent_a_lower_limit[] = "Values represent a lower limit"; -static char __pyx_k_Function__initialize_function_i[] = "_Function__initialize_function_info"; -static char __pyx_k_Function__input_price_series_na[] = "_Function__input_price_series_names"; -static char __pyx_k_Function_has_an_unstable_period[] = "Function has an unstable period"; -static char __pyx_k_This_file_Copyright_c_2013_Bria[] = "\nThis file Copyright (c) 2013 Brian A Cappello \n"; -static char __pyx_k_This_is_a_pythonic_wrapper_arou[] = "\n This is a pythonic wrapper around TALIB's abstract interface. It is\n intended to simplify using individual TALIB functions by providing a\n unified interface for setting/controlling input data, setting function\n parameters and retrieving results. Input data consists of a ``dict`` of\n ``numpy`` arrays (or a ``pandas.DataFrame``), one array for each of open,\n high, low, close and volume. This can be set with the set_input_arrays()\n method. Which keyed array(s) are used as inputs when calling the function\n is controlled using the input_names property.\n\n This class gets initialized with a TALIB function name and optionally an\n input_arrays object. It provides the following primary functions for\n setting inputs and retrieving results:\n\n ---- input_array/TA-function-parameter set-only functions -----\n - set_input_arrays(input_arrays)\n - set_function_args([input_arrays,] [param_args_andor_kwargs])\n\n Documentation for param_args_andor_kwargs can be seen by printing the\n Function instance or programatically via the info, input_names and\n parameters properties.\n\n ----- result-returning functions -----\n - the outputs property wraps a method which ensures results are always valid\n - run([input_arrays]) # calls set_input_arrays and returns self.outputs\n - FunctionInstance([input_arrays,] [param_args_andor_kwargs]) # calls set_function_args and returns self.outputs\n "; -static char __pyx_k_Users_jbenedik_Dev_ta_lib_talib[] = "/Users/jbenedik/Dev/ta-lib/talib/abstract.pyx"; -static char __pyx_k_Values_represent_an_upper_limit[] = "Values represent an upper limit"; -static char __pyx_k_integer_values_are_100_0_or_100[] = "integer (values are -100, 0 or 100)"; -static char __pyx_k_unknown_dtype_code_in_numpy_pxd[] = "unknown dtype code in numpy.pxd (%d)"; -static char __pyx_k_Bull_Bear_Pattern_Bearish_0_Neut[] = "Bull/Bear Pattern (Bearish < 0, Neutral = 0, Bullish > 0)"; -static char __pyx_k_Format_string_allocated_too_shor[] = "Format string allocated too short, see comment in numpy.pxd"; -static char __pyx_k_Function___initialize_function_i[] = "Function.__initialize_function_info"; -static char __pyx_k_Function___input_price_series_na[] = "Function.__input_price_series_names"; -static char __pyx_k_Non_native_byte_order_not_suppor[] = "Non-native byte order not supported"; -static char __pyx_k_Strength_Pattern_200_100_Bearish[] = "Strength Pattern ([-200..-100] = Bearish, [-100..0] = Getting Bearish, 0 = Neutral, [0..100] = Getting Bullish, [100-200] = Bullish)"; -static char __pyx_k_input_arrays_parameter_missing_r[] = "input_arrays parameter missing required data key%s: %s"; -static char __pyx_k_ndarray_is_not_Fortran_contiguou[] = "ndarray is not Fortran contiguous"; -static char __pyx_k_Format_string_allocated_too_shor_2[] = "Format string allocated too short."; -static PyObject *__pyx_kp_s_3; -static PyObject *__pyx_kp_s_Bull_Bear_Pattern_Bearish_0_Neut; -static PyObject *__pyx_kp_s_Dashed_Line; -static PyObject *__pyx_n_s_DataFrame; -static PyObject *__pyx_n_s_Dot; -static PyObject *__pyx_kp_s_Dotted_Line; -static PyObject *__pyx_n_s_Exception; -static PyObject *__pyx_n_s_FUNCTION_NAMES; -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_Function; -static PyObject *__pyx_n_s_Function___call; -static PyObject *__pyx_n_s_Function___call_function; -static PyObject *__pyx_n_s_Function___get_opt_input_value; -static PyObject *__pyx_n_s_Function___init; -static PyObject *__pyx_n_s_Function___initialize_function_i; -static PyObject *__pyx_n_s_Function___input_price_series_na; -static PyObject *__pyx_n_s_Function___repr; -static PyObject *__pyx_n_s_Function___str; -static PyObject *__pyx_n_s_Function___unicode; -static PyObject *__pyx_n_s_Function__call_function; -static PyObject *__pyx_n_s_Function__get_opt_input_value; -static PyObject *__pyx_n_s_Function__info; -static PyObject *__pyx_n_s_Function__initialize_function_i; -static PyObject *__pyx_n_s_Function__input_arrays; -static PyObject *__pyx_n_s_Function__input_names; -static PyObject *__pyx_n_s_Function__input_price_series_na; -static PyObject *__pyx_n_s_Function__name; -static PyObject *__pyx_n_s_Function__namestr; -static PyObject *__pyx_n_s_Function__opt_inputs; -static PyObject *__pyx_n_s_Function__outputs; -static PyObject *__pyx_n_s_Function__outputs_valid; -static PyObject *__pyx_n_s_Function_function_flags; -static PyObject *__pyx_n_s_Function_get_input_arrays; -static PyObject *__pyx_n_s_Function_get_input_names; -static PyObject *__pyx_n_s_Function_get_parameters; -static PyObject *__pyx_kp_s_Function_has_an_unstable_period; -static PyObject *__pyx_n_s_Function_info; -static PyObject *__pyx_n_s_Function_lookback; -static PyObject *__pyx_n_s_Function_output_flags; -static PyObject *__pyx_n_s_Function_output_names; -static PyObject *__pyx_n_s_Function_outputs; -static PyObject *__pyx_n_s_Function_run; -static PyObject *__pyx_n_s_Function_set_function_args; -static PyObject *__pyx_n_s_Function_set_input_arrays; -static PyObject *__pyx_n_s_Function_set_input_names; -static PyObject *__pyx_n_s_Function_set_parameters; -static PyObject *__pyx_n_s_Histogram; -static PyObject *__pyx_n_s_INPUT_ARRAYS_DEFAULTS; -static PyObject *__pyx_n_s_INPUT_ARRAYS_TYPES; -static PyObject *__pyx_n_s_INPUT_PRICE_SERIES_DEFAULTS; -static PyObject *__pyx_n_s_ImportError; -static PyObject *__pyx_kp_s_Inputs; -static PyObject *__pyx_n_s_Line; -static PyObject *__pyx_n_s_MA_Type; -static PyObject *__pyx_kp_u_Non_native_byte_order_not_suppor; -static PyObject *__pyx_n_s_OrderedDict; -static PyObject *__pyx_kp_s_Output_can_be_negative; -static PyObject *__pyx_kp_s_Output_can_be_positive; -static PyObject *__pyx_kp_s_Output_can_be_zero; -static PyObject *__pyx_kp_s_Output_is_a_candlestick; -static PyObject *__pyx_kp_s_Output_is_over_volume; -static PyObject *__pyx_kp_s_Output_scale_same_as_input; -static PyObject *__pyx_kp_s_Outputs; -static PyObject *__pyx_n_s_PANDAS_DATAFRAME; -static PyObject *__pyx_n_s_PANDAS_SERIES; -static PyObject *__pyx_kp_s_Parameters; -static PyObject *__pyx_kp_s_Pattern_Bool; -static PyObject *__pyx_n_s_RuntimeError; -static PyObject *__pyx_n_s_Series; -static PyObject *__pyx_kp_s_Strength_Pattern_200_100_Bearish; -static PyObject *__pyx_n_s_TA_FUNC_FLAGS; -static PyObject *__pyx_n_s_TA_FuncTableAlloc; -static PyObject *__pyx_n_s_TA_FuncTableFree; -static PyObject *__pyx_n_s_TA_GetFuncHandle; -static PyObject *__pyx_n_s_TA_GetFuncInfo; -static PyObject *__pyx_n_s_TA_GetInputParameterInfo; -static PyObject *__pyx_n_s_TA_GetLookback; -static PyObject *__pyx_n_s_TA_GetOptInputParameterInfo; -static PyObject *__pyx_n_s_TA_GetOutputParameterInfo; -static PyObject *__pyx_n_s_TA_GroupTableAlloc; -static PyObject *__pyx_n_s_TA_GroupTableFree; -static PyObject *__pyx_n_s_TA_INPUT_FLAGS; -static PyObject *__pyx_n_s_TA_OUTPUT_FLAGS; -static PyObject *__pyx_n_s_TA_ParamHolderAlloc; -static PyObject *__pyx_n_s_TA_ParamHolderFree; -static PyObject *__pyx_n_s_TA_SetOptInputParamInteger; -static PyObject *__pyx_n_s_TA_SetOptInputParamReal; -static PyObject *__pyx_kp_s_This_is_a_pythonic_wrapper_arou; -static PyObject *__pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib; -static PyObject *__pyx_n_s_ValueError; -static PyObject *__pyx_kp_s_Values_represent_a_lower_limit; -static PyObject *__pyx_kp_s_Values_represent_an_upper_limit; -static PyObject *__pyx_kp_s__10; -static PyObject *__pyx_kp_s__11; -static PyObject *__pyx_kp_s__5; -static PyObject *__pyx_kp_s__6; -static PyObject *__pyx_kp_s__8; -static PyObject *__pyx_kp_s__9; -static PyObject *__pyx_n_s_all; -static PyObject *__pyx_kp_s_any_ndarray; -static PyObject *__pyx_n_s_args; -static PyObject *__pyx_n_s_ascii; -static PyObject *__pyx_n_s_b; -static PyObject *__pyx_n_s_builtins; -static PyObject *__pyx_n_s_bytes2str; -static PyObject *__pyx_n_s_call; -static PyObject *__pyx_n_s_call_function; -static PyObject *__pyx_n_s_close; -static PyObject *__pyx_n_s_collections; -static PyObject *__pyx_n_s_column_stack; -static PyObject *__pyx_n_s_columns; -static PyObject *__pyx_n_s_common; -static PyObject *__pyx_n_s_copy; -static PyObject *__pyx_n_s_decode; -static PyObject *__pyx_n_s_default_value; -static PyObject *__pyx_n_s_defaults; -static PyObject *__pyx_n_s_display_name; -static PyObject *__pyx_kp_s_display_name_s_group_s; -static PyObject *__pyx_n_s_doc; -static PyObject *__pyx_n_s_docs; -static PyObject *__pyx_n_s_documentation; -static PyObject *__pyx_n_s_enumerate; -static PyObject *__pyx_n_s_flag; -static PyObject *__pyx_n_s_flags; -static PyObject *__pyx_n_s_flags_lookup_dict; -static PyObject *__pyx_n_s_func; -static PyObject *__pyx_n_s_func_args; -static PyObject *__pyx_n_s_func_c; -static PyObject *__pyx_n_s_func_info; -static PyObject *__pyx_n_s_func_line; -static PyObject *__pyx_n_s_function_flags; -static PyObject *__pyx_n_s_function_name; -static PyObject *__pyx_n_s_functions; -static PyObject *__pyx_n_s_get_defaults_and_docs; -static PyObject *__pyx_n_s_get_flags; -static PyObject *__pyx_n_s_get_input_arrays; -static PyObject *__pyx_n_s_get_input_names; -static PyObject *__pyx_n_s_get_opt_input_value; -static PyObject *__pyx_n_s_get_parameters; -static PyObject *__pyx_n_s_getattribute; -static PyObject *__pyx_n_s_group; -static PyObject *__pyx_n_s_groups; -static PyObject *__pyx_n_s_help; -static PyObject *__pyx_n_s_high; -static PyObject *__pyx_n_s_holder; -static PyObject *__pyx_n_s_i; -static PyObject *__pyx_n_s_idx; -static PyObject *__pyx_n_s_import; -static PyObject *__pyx_n_s_in; -static PyObject *__pyx_n_s_index; -static PyObject *__pyx_n_s_info; -static PyObject *__pyx_n_s_init; -static PyObject *__pyx_n_s_initialize_function_info; -static PyObject *__pyx_n_s_input_arrays; -static PyObject *__pyx_kp_s_input_arrays_2; -static PyObject *__pyx_kp_s_input_arrays_parameter_missing_r; -static PyObject *__pyx_n_s_input_name; -static PyObject *__pyx_n_s_input_names; -static PyObject *__pyx_n_s_input_price_series_names; -static PyObject *__pyx_n_s_input_price_series_names_2; -static PyObject *__pyx_n_s_integer; -static PyObject *__pyx_kp_s_integer_values_are_100_0_or_100; -static PyObject *__pyx_n_s_items; -static PyObject *__pyx_n_s_join; -static PyObject *__pyx_n_s_key; -static PyObject *__pyx_n_s_keys; -static PyObject *__pyx_n_s_kwargs; -static PyObject *__pyx_n_s_log; -static PyObject *__pyx_n_s_lookback; -static PyObject *__pyx_n_s_low; -static PyObject *__pyx_n_s_lower; -static PyObject *__pyx_n_s_main; -static PyObject *__pyx_n_s_math; -static PyObject *__pyx_n_s_matype; -static PyObject *__pyx_n_s_max; -static PyObject *__pyx_n_s_max_int; -static PyObject *__pyx_n_s_metaclass; -static PyObject *__pyx_n_s_min; -static PyObject *__pyx_n_s_min_int; -static PyObject *__pyx_n_s_missing_keys; -static PyObject *__pyx_n_s_module; -static PyObject *__pyx_n_s_name; -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_num_inputs; -static PyObject *__pyx_n_s_num_opt_inputs; -static PyObject *__pyx_n_s_num_outputs; -static PyObject *__pyx_n_s_numpy; -static PyObject *__pyx_n_s_object; -static PyObject *__pyx_n_s_open; -static PyObject *__pyx_n_s_openInterest; -static PyObject *__pyx_n_s_optIn; -static PyObject *__pyx_n_s_opt_input; -static PyObject *__pyx_n_s_ordereddict; -static PyObject *__pyx_n_s_out; -static PyObject *__pyx_n_s_output; -static PyObject *__pyx_n_s_output_flags; -static PyObject *__pyx_n_s_output_name; -static PyObject *__pyx_n_s_output_names; -static PyObject *__pyx_n_s_outputs; -static PyObject *__pyx_n_s_pandas; -static PyObject *__pyx_n_s_param; -static PyObject *__pyx_n_s_param_name; -static PyObject *__pyx_n_s_parameters; -static PyObject *__pyx_n_s_params; -static PyObject *__pyx_n_s_periods; -static PyObject *__pyx_n_s_pop; -static PyObject *__pyx_n_s_prepare; -static PyObject *__pyx_n_s_price; -static PyObject *__pyx_n_s_price0; -static PyObject *__pyx_n_s_price1; -static PyObject *__pyx_n_s_price_series; -static PyObject *__pyx_n_s_prices; -static PyObject *__pyx_n_s_property; -static PyObject *__pyx_n_s_qualname; -static PyObject *__pyx_n_s_range; -static PyObject *__pyx_n_s_real; -static PyObject *__pyx_n_s_real0; -static PyObject *__pyx_n_s_real1; -static PyObject *__pyx_n_s_replace; -static PyObject *__pyx_n_s_repr; -static PyObject *__pyx_n_s_results; -static PyObject *__pyx_n_s_ret; -static PyObject *__pyx_n_s_retCode; -static PyObject *__pyx_n_s_run; -static PyObject *__pyx_n_s_s; -static PyObject *__pyx_kp_s_s_2; -static PyObject *__pyx_kp_s_s_3; -static PyObject *__pyx_kp_s_s_4; -static PyObject *__pyx_kp_s_s_Function_s; -static PyObject *__pyx_kp_s_s_not_supported_by_TA_LIB; -static PyObject *__pyx_kp_s_s_s; -static PyObject *__pyx_kp_s_s_s_2; -static PyObject *__pyx_n_s_self; -static PyObject *__pyx_n_s_series; -static PyObject *__pyx_n_s_set_function_args; -static PyObject *__pyx_n_s_set_input_arrays; -static PyObject *__pyx_n_s_set_input_names; -static PyObject *__pyx_n_s_set_parameters; -static PyObject *__pyx_n_s_skip_first; -static PyObject *__pyx_n_s_str; -static PyObject *__pyx_n_s_str2bytes; -static PyObject *__pyx_n_s_sys; -static PyObject *__pyx_n_s_ta_check_success; -static PyObject *__pyx_n_s_ta_getFuncInfo; -static PyObject *__pyx_n_s_ta_getFuncTable; -static PyObject *__pyx_n_s_ta_getGroupTable; -static PyObject *__pyx_n_s_ta_getInputParameterInfo; -static PyObject *__pyx_n_s_ta_getOptInputParameterInfo; -static PyObject *__pyx_n_s_ta_getOutputParameterInfo; -static PyObject *__pyx_n_s_table; -static PyObject *__pyx_n_s_talib_abstract; -static PyObject *__pyx_n_s_test; -static PyObject *__pyx_n_s_timeStamp; -static PyObject *__pyx_n_s_type; -static PyObject *__pyx_n_s_type_2; -static PyObject *__pyx_n_s_unicode; -static PyObject *__pyx_kp_u_unknown_dtype_code_in_numpy_pxd; -static PyObject *__pyx_n_s_update_info; -static PyObject *__pyx_n_s_upper; -static PyObject *__pyx_n_s_value; -static PyObject *__pyx_n_s_value_range; -static PyObject *__pyx_n_s_values; -static PyObject *__pyx_n_s_version; -static PyObject *__pyx_n_s_volume; -static PyObject *__pyx_n_s_xrange; -static PyObject *__pyx_pf_5talib_8abstract_str2bytes(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_s); /* proto */ -static PyObject *__pyx_pf_5talib_8abstract_2bytes2str(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_b); /* proto */ -static PyObject *__pyx_pf_5talib_8abstract_4str2bytes(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_s); /* proto */ -static PyObject *__pyx_pf_5talib_8abstract_6bytes2str(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_b); /* proto */ -static PyObject *__pyx_pf_5talib_8abstract_8Function___init__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_function_name, PyObject *__pyx_v_args, PyObject *__pyx_v_kwargs); /* proto */ -static PyObject *__pyx_pf_5talib_8abstract_8Function_2__initialize_function_info(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self); /* proto */ -static PyObject *__pyx_pf_5talib_8abstract_8Function_4info(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self); /* proto */ -static PyObject *__pyx_pf_5talib_8abstract_8Function_6function_flags(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self); /* proto */ -static PyObject *__pyx_pf_5talib_8abstract_8Function_8output_flags(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self); /* proto */ -static PyObject *__pyx_pf_5talib_8abstract_8Function_10get_input_names(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self); /* proto */ -static PyObject *__pyx_pf_5talib_8abstract_8Function_12set_input_names(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_input_names); /* proto */ -static PyObject *__pyx_pf_5talib_8abstract_8Function_14get_input_arrays(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self); /* proto */ -static PyObject *__pyx_pf_5talib_8abstract_8Function_16set_input_arrays(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_input_arrays); /* proto */ -static PyObject *__pyx_pf_5talib_8abstract_8Function_18get_parameters(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self); /* proto */ -static PyObject *__pyx_pf_5talib_8abstract_8Function_20set_parameters(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_parameters); /* proto */ -static PyObject *__pyx_pf_5talib_8abstract_8Function_22set_function_args(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_args, PyObject *__pyx_v_kwargs); /* proto */ -static PyObject *__pyx_pf_5talib_8abstract_8Function_24lookback(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self); /* proto */ -static PyObject *__pyx_pf_5talib_8abstract_8Function_26output_names(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self); /* proto */ -static PyObject *__pyx_pf_5talib_8abstract_8Function_28outputs(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self); /* proto */ -static PyObject *__pyx_pf_5talib_8abstract_8Function_30run(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_input_arrays); /* proto */ -static PyObject *__pyx_pf_5talib_8abstract_8Function_32__call__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_args, PyObject *__pyx_v_kwargs); /* proto */ -static PyObject *__pyx_pf_5talib_8abstract_8Function_34__input_price_series_names(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self); /* proto */ -static PyObject *__pyx_pf_5talib_8abstract_8Function_36__call_function(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self); /* proto */ -static PyObject *__pyx_pf_5talib_8abstract_8Function_38__get_opt_input_value(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_input_name); /* proto */ -static PyObject *__pyx_pf_5talib_8abstract_8Function_40__repr__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self); /* proto */ -static PyObject *__pyx_pf_5talib_8abstract_8Function_42__unicode__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self); /* proto */ -static PyObject *__pyx_pf_5talib_8abstract_8Function_44__str__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self); /* proto */ -static PyObject *__pyx_pf_5talib_8abstract_8_ta_getGroupTable(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ -static PyObject *__pyx_pf_5talib_8abstract_10_ta_getFuncTable(CYTHON_UNUSED PyObject *__pyx_self, char *__pyx_v_group); /* proto */ -static PyObject *__pyx_pf_5talib_8abstract_12__get_flags(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_flag, PyObject *__pyx_v_flags_lookup_dict); /* proto */ -static PyObject *__pyx_pf_5talib_8abstract_14_ta_getFuncInfo(CYTHON_UNUSED PyObject *__pyx_self, char *__pyx_v_function_name); /* proto */ -static PyObject *__pyx_pf_5talib_8abstract_16_ta_getInputParameterInfo(CYTHON_UNUSED PyObject *__pyx_self, char *__pyx_v_function_name, int __pyx_v_idx); /* proto */ -static PyObject *__pyx_pf_5talib_8abstract_18_ta_getOptInputParameterInfo(CYTHON_UNUSED PyObject *__pyx_self, char *__pyx_v_function_name, int __pyx_v_idx); /* proto */ -static PyObject *__pyx_pf_5talib_8abstract_20_ta_getOutputParameterInfo(CYTHON_UNUSED PyObject *__pyx_self, char *__pyx_v_function_name, int __pyx_v_idx); /* proto */ -static PyObject *__pyx_pf_5talib_8abstract_22_get_defaults_and_docs(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_func_info); /* 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 __Pyx_CachedCFunction __pyx_umethod_PyDict_Type_keys = {0, &__pyx_n_s_keys, 0, 0, 0}; -static PyObject *__pyx_int_0; -static PyObject *__pyx_int_1; -static PyObject *__pyx_int_2; -static PyObject *__pyx_int_4; -static PyObject *__pyx_int_8; -static PyObject *__pyx_int_16; -static PyObject *__pyx_int_32; -static PyObject *__pyx_int_64; -static PyObject *__pyx_int_128; -static PyObject *__pyx_int_256; -static PyObject *__pyx_int_512; -static PyObject *__pyx_int_1024; -static PyObject *__pyx_int_2048; -static PyObject *__pyx_int_4096; -static PyObject *__pyx_int_16777216; -static PyObject *__pyx_int_67108864; -static PyObject *__pyx_int_134217728; -static PyObject *__pyx_int_268435456; -static PyObject *__pyx_tuple_; -static PyObject *__pyx_tuple__2; -static PyObject *__pyx_tuple__3; -static PyObject *__pyx_tuple__4; -static PyObject *__pyx_tuple__7; -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__20; -static PyObject *__pyx_tuple__22; -static PyObject *__pyx_tuple__24; -static PyObject *__pyx_tuple__26; -static PyObject *__pyx_tuple__28; -static PyObject *__pyx_tuple__30; -static PyObject *__pyx_tuple__32; -static PyObject *__pyx_tuple__34; -static PyObject *__pyx_tuple__36; -static PyObject *__pyx_tuple__38; -static PyObject *__pyx_tuple__40; -static PyObject *__pyx_tuple__42; -static PyObject *__pyx_tuple__44; -static PyObject *__pyx_tuple__46; -static PyObject *__pyx_tuple__48; -static PyObject *__pyx_tuple__50; -static PyObject *__pyx_tuple__52; -static PyObject *__pyx_tuple__54; -static PyObject *__pyx_tuple__56; -static PyObject *__pyx_tuple__58; -static PyObject *__pyx_tuple__59; -static PyObject *__pyx_tuple__61; -static PyObject *__pyx_tuple__63; -static PyObject *__pyx_tuple__65; -static PyObject *__pyx_tuple__67; -static PyObject *__pyx_tuple__69; -static PyObject *__pyx_tuple__71; -static PyObject *__pyx_tuple__73; -static PyObject *__pyx_tuple__75; -static PyObject *__pyx_tuple__77; -static PyObject *__pyx_tuple__79; -static PyObject *__pyx_tuple__81; -static PyObject *__pyx_tuple__83; -static PyObject *__pyx_tuple__85; -static PyObject *__pyx_tuple__87; -static PyObject *__pyx_codeobj__19; -static PyObject *__pyx_codeobj__21; -static PyObject *__pyx_codeobj__23; -static PyObject *__pyx_codeobj__25; -static PyObject *__pyx_codeobj__27; -static PyObject *__pyx_codeobj__29; -static PyObject *__pyx_codeobj__31; -static PyObject *__pyx_codeobj__33; -static PyObject *__pyx_codeobj__35; -static PyObject *__pyx_codeobj__37; -static PyObject *__pyx_codeobj__39; -static PyObject *__pyx_codeobj__41; -static PyObject *__pyx_codeobj__43; -static PyObject *__pyx_codeobj__45; -static PyObject *__pyx_codeobj__47; -static PyObject *__pyx_codeobj__49; -static PyObject *__pyx_codeobj__51; -static PyObject *__pyx_codeobj__53; -static PyObject *__pyx_codeobj__55; -static PyObject *__pyx_codeobj__57; -static PyObject *__pyx_codeobj__60; -static PyObject *__pyx_codeobj__62; -static PyObject *__pyx_codeobj__64; -static PyObject *__pyx_codeobj__66; -static PyObject *__pyx_codeobj__68; -static PyObject *__pyx_codeobj__70; -static PyObject *__pyx_codeobj__72; -static PyObject *__pyx_codeobj__74; -static PyObject *__pyx_codeobj__76; -static PyObject *__pyx_codeobj__78; -static PyObject *__pyx_codeobj__80; -static PyObject *__pyx_codeobj__82; -static PyObject *__pyx_codeobj__84; -static PyObject *__pyx_codeobj__86; -static PyObject *__pyx_codeobj__88; - -/* "talib/abstract.pyx":50 - * if sys.version >= '3': - * - * def str2bytes(s): # <<<<<<<<<<<<<< - * return bytes(s, 'ascii') - * - */ - -/* Python wrapper */ -static PyObject *__pyx_pw_5talib_8abstract_1str2bytes(PyObject *__pyx_self, PyObject *__pyx_v_s); /*proto*/ -static PyMethodDef __pyx_mdef_5talib_8abstract_1str2bytes = {"str2bytes", (PyCFunction)__pyx_pw_5talib_8abstract_1str2bytes, METH_O, 0}; -static PyObject *__pyx_pw_5talib_8abstract_1str2bytes(PyObject *__pyx_self, PyObject *__pyx_v_s) { - PyObject *__pyx_r = 0; - __Pyx_RefNannyDeclarations - __Pyx_RefNannySetupContext("str2bytes (wrapper)", 0); - __pyx_r = __pyx_pf_5talib_8abstract_str2bytes(__pyx_self, ((PyObject *)__pyx_v_s)); - - /* function exit code */ - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -static PyObject *__pyx_pf_5talib_8abstract_str2bytes(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_s) { - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - PyObject *__pyx_t_1 = NULL; - PyObject *__pyx_t_2 = NULL; - int __pyx_lineno = 0; - const char *__pyx_filename = NULL; - int __pyx_clineno = 0; - __Pyx_RefNannySetupContext("str2bytes", 0); - - /* "talib/abstract.pyx":51 - * - * def str2bytes(s): - * return bytes(s, 'ascii') # <<<<<<<<<<<<<< - * - * def bytes2str(b): - */ - __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 51; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - __Pyx_INCREF(__pyx_v_s); - __Pyx_GIVEREF(__pyx_v_s); - PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_s); - __Pyx_INCREF(__pyx_n_s_ascii); - __Pyx_GIVEREF(__pyx_n_s_ascii); - PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_n_s_ascii); - __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)(&PyBytes_Type)), __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 51; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __pyx_r = __pyx_t_2; - __pyx_t_2 = 0; - goto __pyx_L0; - - /* "talib/abstract.pyx":50 - * if sys.version >= '3': - * - * def str2bytes(s): # <<<<<<<<<<<<<< - * return bytes(s, 'ascii') - * - */ - - /* function exit code */ - __pyx_L1_error:; - __Pyx_XDECREF(__pyx_t_1); - __Pyx_XDECREF(__pyx_t_2); - __Pyx_AddTraceback("talib.abstract.str2bytes", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "talib/abstract.pyx":53 - * return bytes(s, 'ascii') - * - * def bytes2str(b): # <<<<<<<<<<<<<< - * return b.decode('ascii') - * - */ - -/* Python wrapper */ -static PyObject *__pyx_pw_5talib_8abstract_3bytes2str(PyObject *__pyx_self, PyObject *__pyx_v_b); /*proto*/ -static PyMethodDef __pyx_mdef_5talib_8abstract_3bytes2str = {"bytes2str", (PyCFunction)__pyx_pw_5talib_8abstract_3bytes2str, METH_O, 0}; -static PyObject *__pyx_pw_5talib_8abstract_3bytes2str(PyObject *__pyx_self, PyObject *__pyx_v_b) { - PyObject *__pyx_r = 0; - __Pyx_RefNannyDeclarations - __Pyx_RefNannySetupContext("bytes2str (wrapper)", 0); - __pyx_r = __pyx_pf_5talib_8abstract_2bytes2str(__pyx_self, ((PyObject *)__pyx_v_b)); - - /* function exit code */ - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -static PyObject *__pyx_pf_5talib_8abstract_2bytes2str(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_b) { - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - PyObject *__pyx_t_1 = NULL; - PyObject *__pyx_t_2 = NULL; - int __pyx_lineno = 0; - const char *__pyx_filename = NULL; - int __pyx_clineno = 0; - __Pyx_RefNannySetupContext("bytes2str", 0); - - /* "talib/abstract.pyx":54 - * - * def bytes2str(b): - * return b.decode('ascii') # <<<<<<<<<<<<<< - * - * else: - */ - __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_b, __pyx_n_s_decode); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 54; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple_, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 54; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __pyx_r = __pyx_t_2; - __pyx_t_2 = 0; - goto __pyx_L0; - - /* "talib/abstract.pyx":53 - * return bytes(s, 'ascii') - * - * def bytes2str(b): # <<<<<<<<<<<<<< - * return b.decode('ascii') - * - */ - - /* function exit code */ - __pyx_L1_error:; - __Pyx_XDECREF(__pyx_t_1); - __Pyx_XDECREF(__pyx_t_2); - __Pyx_AddTraceback("talib.abstract.bytes2str", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "talib/abstract.pyx":58 - * else: - * - * def str2bytes(s): # <<<<<<<<<<<<<< - * return s - * - */ - -/* Python wrapper */ -static PyObject *__pyx_pw_5talib_8abstract_5str2bytes(PyObject *__pyx_self, PyObject *__pyx_v_s); /*proto*/ -static PyMethodDef __pyx_mdef_5talib_8abstract_5str2bytes = {"str2bytes", (PyCFunction)__pyx_pw_5talib_8abstract_5str2bytes, METH_O, 0}; -static PyObject *__pyx_pw_5talib_8abstract_5str2bytes(PyObject *__pyx_self, PyObject *__pyx_v_s) { - PyObject *__pyx_r = 0; - __Pyx_RefNannyDeclarations - __Pyx_RefNannySetupContext("str2bytes (wrapper)", 0); - __pyx_r = __pyx_pf_5talib_8abstract_4str2bytes(__pyx_self, ((PyObject *)__pyx_v_s)); - - /* function exit code */ - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -static PyObject *__pyx_pf_5talib_8abstract_4str2bytes(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_s) { - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - __Pyx_RefNannySetupContext("str2bytes", 0); - - /* "talib/abstract.pyx":59 - * - * def str2bytes(s): - * return s # <<<<<<<<<<<<<< - * - * def bytes2str(b): - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(__pyx_v_s); - __pyx_r = __pyx_v_s; - goto __pyx_L0; - - /* "talib/abstract.pyx":58 - * else: - * - * def str2bytes(s): # <<<<<<<<<<<<<< - * return s - * - */ - - /* function exit code */ - __pyx_L0:; - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "talib/abstract.pyx":61 - * return s - * - * def bytes2str(b): # <<<<<<<<<<<<<< - * return b - * - */ - -/* Python wrapper */ -static PyObject *__pyx_pw_5talib_8abstract_7bytes2str(PyObject *__pyx_self, PyObject *__pyx_v_b); /*proto*/ -static PyMethodDef __pyx_mdef_5talib_8abstract_7bytes2str = {"bytes2str", (PyCFunction)__pyx_pw_5talib_8abstract_7bytes2str, METH_O, 0}; -static PyObject *__pyx_pw_5talib_8abstract_7bytes2str(PyObject *__pyx_self, PyObject *__pyx_v_b) { - PyObject *__pyx_r = 0; - __Pyx_RefNannyDeclarations - __Pyx_RefNannySetupContext("bytes2str (wrapper)", 0); - __pyx_r = __pyx_pf_5talib_8abstract_6bytes2str(__pyx_self, ((PyObject *)__pyx_v_b)); - - /* function exit code */ - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -static PyObject *__pyx_pf_5talib_8abstract_6bytes2str(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_b) { - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - __Pyx_RefNannySetupContext("bytes2str", 0); - - /* "talib/abstract.pyx":62 - * - * def bytes2str(b): - * return b # <<<<<<<<<<<<<< - * - * class Function(object): - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(__pyx_v_b); - __pyx_r = __pyx_v_b; - goto __pyx_L0; - - /* "talib/abstract.pyx":61 - * return s - * - * def bytes2str(b): # <<<<<<<<<<<<<< - * return b - * - */ - - /* function exit code */ - __pyx_L0:; - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "talib/abstract.pyx":93 - * """ - * - * def __init__(self, function_name, *args, **kwargs): # <<<<<<<<<<<<<< - * # make sure the function_name is valid and define all of our variables - * self.__name = function_name.upper() - */ - -/* Python wrapper */ -static PyObject *__pyx_pw_5talib_8abstract_8Function_1__init__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static PyMethodDef __pyx_mdef_5talib_8abstract_8Function_1__init__ = {"__init__", (PyCFunction)__pyx_pw_5talib_8abstract_8Function_1__init__, METH_VARARGS|METH_KEYWORDS, 0}; -static PyObject *__pyx_pw_5talib_8abstract_8Function_1__init__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { - PyObject *__pyx_v_self = 0; - PyObject *__pyx_v_function_name = 0; - PyObject *__pyx_v_args = 0; - PyObject *__pyx_v_kwargs = 0; - int __pyx_lineno = 0; - const char *__pyx_filename = NULL; - int __pyx_clineno = 0; - PyObject *__pyx_r = 0; - __Pyx_RefNannyDeclarations - __Pyx_RefNannySetupContext("__init__ (wrapper)", 0); - __pyx_v_kwargs = PyDict_New(); if (unlikely(!__pyx_v_kwargs)) return NULL; - __Pyx_GOTREF(__pyx_v_kwargs); - if (PyTuple_GET_SIZE(__pyx_args) > 2) { - __pyx_v_args = PyTuple_GetSlice(__pyx_args, 2, PyTuple_GET_SIZE(__pyx_args)); - if (unlikely(!__pyx_v_args)) { - __Pyx_DECREF(__pyx_v_kwargs); __pyx_v_kwargs = 0; - __Pyx_RefNannyFinishContext(); - return NULL; - } - __Pyx_GOTREF(__pyx_v_args); - } else { - __pyx_v_args = __pyx_empty_tuple; __Pyx_INCREF(__pyx_empty_tuple); - } - { - static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_self,&__pyx_n_s_function_name,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) { - default: - case 2: values[1] = PyTuple_GET_ITEM(__pyx_args, 1); - case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); - case 0: break; - } - kw_args = PyDict_Size(__pyx_kwds); - switch (pos_args) { - case 0: - if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_self)) != 0)) kw_args--; - else goto __pyx_L5_argtuple_error; - case 1: - if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_function_name)) != 0)) kw_args--; - else { - __Pyx_RaiseArgtupleInvalid("__init__", 0, 2, 2, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 93; __pyx_clineno = __LINE__; goto __pyx_L3_error;} - } - } - if (unlikely(kw_args > 0)) { - const Py_ssize_t used_pos_args = (pos_args < 2) ? pos_args : 2; - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, __pyx_v_kwargs, values, used_pos_args, "__init__") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 93; __pyx_clineno = __LINE__; goto __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_self = values[0]; - __pyx_v_function_name = values[1]; - } - goto __pyx_L4_argument_unpacking_done; - __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("__init__", 0, 2, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 93; __pyx_clineno = __LINE__; goto __pyx_L3_error;} - __pyx_L3_error:; - __Pyx_DECREF(__pyx_v_args); __pyx_v_args = 0; - __Pyx_DECREF(__pyx_v_kwargs); __pyx_v_kwargs = 0; - __Pyx_AddTraceback("talib.abstract.Function.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); - __Pyx_RefNannyFinishContext(); - return NULL; - __pyx_L4_argument_unpacking_done:; - __pyx_r = __pyx_pf_5talib_8abstract_8Function___init__(__pyx_self, __pyx_v_self, __pyx_v_function_name, __pyx_v_args, __pyx_v_kwargs); - - /* function exit code */ - __Pyx_XDECREF(__pyx_v_args); - __Pyx_XDECREF(__pyx_v_kwargs); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -static PyObject *__pyx_pf_5talib_8abstract_8Function___init__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_function_name, PyObject *__pyx_v_args, PyObject *__pyx_v_kwargs) { - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - PyObject *__pyx_t_1 = NULL; - PyObject *__pyx_t_2 = NULL; - PyObject *__pyx_t_3 = NULL; - int __pyx_t_4; - int __pyx_t_5; - PyObject *__pyx_t_6 = NULL; - PyObject *__pyx_t_7 = NULL; - int __pyx_lineno = 0; - const char *__pyx_filename = NULL; - int __pyx_clineno = 0; - __Pyx_RefNannySetupContext("__init__", 0); - - /* "talib/abstract.pyx":95 - * def __init__(self, function_name, *args, **kwargs): - * # make sure the function_name is valid and define all of our variables - * self.__name = function_name.upper() # <<<<<<<<<<<<<< - * if self.__name not in __FUNCTION_NAMES: - * raise Exception('%s not supported by TA-LIB.' % self.__name) - */ - __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_function_name, __pyx_n_s_upper); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 95; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __pyx_t_3 = NULL; - if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_2))) { - __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); - if (likely(__pyx_t_3)) { - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); - __Pyx_INCREF(__pyx_t_3); - __Pyx_INCREF(function); - __Pyx_DECREF_SET(__pyx_t_2, function); - } - } - if (__pyx_t_3) { - __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 95; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - } else { - __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 95; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - } - __Pyx_GOTREF(__pyx_t_1); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_Function__name, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 95; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - - /* "talib/abstract.pyx":96 - * # make sure the function_name is valid and define all of our variables - * self.__name = function_name.upper() - * if self.__name not in __FUNCTION_NAMES: # <<<<<<<<<<<<<< - * raise Exception('%s not supported by TA-LIB.' % self.__name) - * self.__namestr = self.__name - */ - __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__name); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 96; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_FUNCTION_NAMES); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 96; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __pyx_t_4 = (__Pyx_PySequence_ContainsTF(__pyx_t_1, __pyx_t_2, Py_NE)); if (unlikely(__pyx_t_4 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 96; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __pyx_t_5 = (__pyx_t_4 != 0); - if (__pyx_t_5) { - - /* "talib/abstract.pyx":97 - * self.__name = function_name.upper() - * if self.__name not in __FUNCTION_NAMES: - * raise Exception('%s not supported by TA-LIB.' % self.__name) # <<<<<<<<<<<<<< - * self.__namestr = self.__name - * self.__name = str2bytes(self.__name) - */ - __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__name); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 97; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __pyx_t_1 = __Pyx_PyString_Format(__pyx_kp_s_s_not_supported_by_TA_LIB, __pyx_t_2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 97; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 97; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __Pyx_GIVEREF(__pyx_t_1); - PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1); - __pyx_t_1 = 0; - __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_t_2, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 97; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __Pyx_Raise(__pyx_t_1, 0, 0, 0); - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - {__pyx_filename = __pyx_f[0]; __pyx_lineno = 97; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - - /* "talib/abstract.pyx":96 - * # make sure the function_name is valid and define all of our variables - * self.__name = function_name.upper() - * if self.__name not in __FUNCTION_NAMES: # <<<<<<<<<<<<<< - * raise Exception('%s not supported by TA-LIB.' % self.__name) - * self.__namestr = self.__name - */ - } - - /* "talib/abstract.pyx":98 - * if self.__name not in __FUNCTION_NAMES: - * raise Exception('%s not supported by TA-LIB.' % self.__name) - * self.__namestr = self.__name # <<<<<<<<<<<<<< - * self.__name = str2bytes(self.__name) - * self.__info = None - */ - __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__name); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 98; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_Function__namestr, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 98; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - - /* "talib/abstract.pyx":99 - * raise Exception('%s not supported by TA-LIB.' % self.__name) - * self.__namestr = self.__name - * self.__name = str2bytes(self.__name) # <<<<<<<<<<<<<< - * self.__info = None - * self.__input_arrays = __INPUT_ARRAYS_DEFAULTS - */ - __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_str2bytes); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 99; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__name); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 99; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_3); - __pyx_t_6 = NULL; - if (CYTHON_COMPILING_IN_CPYTHON && unlikely(PyMethod_Check(__pyx_t_2))) { - __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_2); - if (likely(__pyx_t_6)) { - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); - __Pyx_INCREF(__pyx_t_6); - __Pyx_INCREF(function); - __Pyx_DECREF_SET(__pyx_t_2, function); - } - } - if (!__pyx_t_6) { - __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 99; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __Pyx_GOTREF(__pyx_t_1); - } else { - __pyx_t_7 = PyTuple_New(1+1); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 99; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_7); - __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_6); __pyx_t_6 = NULL; - __Pyx_GIVEREF(__pyx_t_3); - PyTuple_SET_ITEM(__pyx_t_7, 0+1, __pyx_t_3); - __pyx_t_3 = 0; - __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_7, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 99; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - } - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_Function__name, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 99; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - - /* "talib/abstract.pyx":100 - * self.__namestr = self.__name - * self.__name = str2bytes(self.__name) - * self.__info = None # <<<<<<<<<<<<<< - * self.__input_arrays = __INPUT_ARRAYS_DEFAULTS - * - */ - if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_Function__info, Py_None) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 100; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - - /* "talib/abstract.pyx":101 - * self.__name = str2bytes(self.__name) - * self.__info = None - * self.__input_arrays = __INPUT_ARRAYS_DEFAULTS # <<<<<<<<<<<<<< - * - * # dictionaries of function args. keys are input/opt_input/output parameter names - */ - __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_INPUT_ARRAYS_DEFAULTS); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 101; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_Function__input_arrays, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 101; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - - /* "talib/abstract.pyx":104 - * - * # dictionaries of function args. keys are input/opt_input/output parameter names - * self.__input_names = OrderedDict() # <<<<<<<<<<<<<< - * self.__opt_inputs = OrderedDict() - * self.__outputs = OrderedDict() - */ - __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_OrderedDict); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 104; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __pyx_t_7 = NULL; - if (CYTHON_COMPILING_IN_CPYTHON && unlikely(PyMethod_Check(__pyx_t_2))) { - __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_2); - if (likely(__pyx_t_7)) { - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); - __Pyx_INCREF(__pyx_t_7); - __Pyx_INCREF(function); - __Pyx_DECREF_SET(__pyx_t_2, function); - } - } - if (__pyx_t_7) { - __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_7); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 104; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - } else { - __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 104; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - } - __Pyx_GOTREF(__pyx_t_1); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_Function__input_names, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 104; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - - /* "talib/abstract.pyx":105 - * # dictionaries of function args. keys are input/opt_input/output parameter names - * self.__input_names = OrderedDict() - * self.__opt_inputs = OrderedDict() # <<<<<<<<<<<<<< - * self.__outputs = OrderedDict() - * self.__outputs_valid = False - */ - __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_OrderedDict); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 105; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __pyx_t_7 = NULL; - if (CYTHON_COMPILING_IN_CPYTHON && unlikely(PyMethod_Check(__pyx_t_2))) { - __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_2); - if (likely(__pyx_t_7)) { - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); - __Pyx_INCREF(__pyx_t_7); - __Pyx_INCREF(function); - __Pyx_DECREF_SET(__pyx_t_2, function); - } - } - if (__pyx_t_7) { - __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_7); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 105; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - } else { - __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 105; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - } - __Pyx_GOTREF(__pyx_t_1); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_Function__opt_inputs, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 105; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - - /* "talib/abstract.pyx":106 - * self.__input_names = OrderedDict() - * self.__opt_inputs = OrderedDict() - * self.__outputs = OrderedDict() # <<<<<<<<<<<<<< - * self.__outputs_valid = False - * - */ - __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_OrderedDict); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 106; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __pyx_t_7 = NULL; - if (CYTHON_COMPILING_IN_CPYTHON && unlikely(PyMethod_Check(__pyx_t_2))) { - __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_2); - if (likely(__pyx_t_7)) { - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); - __Pyx_INCREF(__pyx_t_7); - __Pyx_INCREF(function); - __Pyx_DECREF_SET(__pyx_t_2, function); - } - } - if (__pyx_t_7) { - __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_7); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 106; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - } else { - __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 106; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - } - __Pyx_GOTREF(__pyx_t_1); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_Function__outputs, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 106; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - - /* "talib/abstract.pyx":107 - * self.__opt_inputs = OrderedDict() - * self.__outputs = OrderedDict() - * self.__outputs_valid = False # <<<<<<<<<<<<<< - * - * # finish initializing: query the TALIB abstract interface and set arguments - */ - if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_Function__outputs_valid, Py_False) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 107; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - - /* "talib/abstract.pyx":110 - * - * # finish initializing: query the TALIB abstract interface and set arguments - * self.__initialize_function_info() # <<<<<<<<<<<<<< - * self.set_function_args(*args, **kwargs) - * - */ - __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__initialize_function_i); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 110; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __pyx_t_7 = NULL; - if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_2))) { - __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_2); - if (likely(__pyx_t_7)) { - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); - __Pyx_INCREF(__pyx_t_7); - __Pyx_INCREF(function); - __Pyx_DECREF_SET(__pyx_t_2, function); - } - } - if (__pyx_t_7) { - __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_7); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 110; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - } else { - __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 110; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - } - __Pyx_GOTREF(__pyx_t_1); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - - /* "talib/abstract.pyx":111 - * # finish initializing: query the TALIB abstract interface and set arguments - * self.__initialize_function_info() - * self.set_function_args(*args, **kwargs) # <<<<<<<<<<<<<< - * - * def __initialize_function_info(self): - */ - __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_set_function_args); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 111; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_v_args, __pyx_v_kwargs); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 111; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/abstract.pyx":93 - * """ - * - * def __init__(self, function_name, *args, **kwargs): # <<<<<<<<<<<<<< - * # make sure the function_name is valid and define all of our variables - * self.__name = function_name.upper() - */ - - /* function exit code */ - __pyx_r = Py_None; __Pyx_INCREF(Py_None); - goto __pyx_L0; - __pyx_L1_error:; - __Pyx_XDECREF(__pyx_t_1); - __Pyx_XDECREF(__pyx_t_2); - __Pyx_XDECREF(__pyx_t_3); - __Pyx_XDECREF(__pyx_t_6); - __Pyx_XDECREF(__pyx_t_7); - __Pyx_AddTraceback("talib.abstract.Function.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "talib/abstract.pyx":113 - * self.set_function_args(*args, **kwargs) - * - * def __initialize_function_info(self): # <<<<<<<<<<<<<< - * # function info - * self.__info = _ta_getFuncInfo(self.__name) - */ - -/* Python wrapper */ -static PyObject *__pyx_pw_5talib_8abstract_8Function_3__initialize_function_info(PyObject *__pyx_self, PyObject *__pyx_v_self); /*proto*/ -static PyMethodDef __pyx_mdef_5talib_8abstract_8Function_3__initialize_function_info = {"__initialize_function_info", (PyCFunction)__pyx_pw_5talib_8abstract_8Function_3__initialize_function_info, METH_O, 0}; -static PyObject *__pyx_pw_5talib_8abstract_8Function_3__initialize_function_info(PyObject *__pyx_self, PyObject *__pyx_v_self) { - PyObject *__pyx_r = 0; - __Pyx_RefNannyDeclarations - __Pyx_RefNannySetupContext("__initialize_function_info (wrapper)", 0); - __pyx_r = __pyx_pf_5talib_8abstract_8Function_2__initialize_function_info(__pyx_self, ((PyObject *)__pyx_v_self)); - - /* function exit code */ - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -static PyObject *__pyx_pf_5talib_8abstract_8Function_2__initialize_function_info(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self) { - PyObject *__pyx_v_i = NULL; - PyObject *__pyx_v_info = NULL; - PyObject *__pyx_v_input_name = NULL; - PyObject *__pyx_v_param_name = NULL; - PyObject *__pyx_v_output_name = NULL; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - PyObject *__pyx_t_1 = NULL; - PyObject *__pyx_t_2 = NULL; - PyObject *__pyx_t_3 = NULL; - PyObject *__pyx_t_4 = NULL; - PyObject *__pyx_t_5 = NULL; - Py_ssize_t __pyx_t_6; - PyObject *(*__pyx_t_7)(PyObject *); - Py_ssize_t __pyx_t_8; - PyObject *__pyx_t_9 = NULL; - int __pyx_t_10; - int __pyx_t_11; - int __pyx_lineno = 0; - const char *__pyx_filename = NULL; - int __pyx_clineno = 0; - __Pyx_RefNannySetupContext("__initialize_function_info", 0); - - /* "talib/abstract.pyx":115 - * def __initialize_function_info(self): - * # function info - * self.__info = _ta_getFuncInfo(self.__name) # <<<<<<<<<<<<<< - * - * # inputs (price series names) - */ - __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_ta_getFuncInfo); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 115; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__name); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 115; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_3); - __pyx_t_4 = NULL; - if (CYTHON_COMPILING_IN_CPYTHON && unlikely(PyMethod_Check(__pyx_t_2))) { - __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2); - if (likely(__pyx_t_4)) { - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); - __Pyx_INCREF(__pyx_t_4); - __Pyx_INCREF(function); - __Pyx_DECREF_SET(__pyx_t_2, function); - } - } - if (!__pyx_t_4) { - __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 115; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __Pyx_GOTREF(__pyx_t_1); - } else { - __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 115; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_5); - __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL; - __Pyx_GIVEREF(__pyx_t_3); - PyTuple_SET_ITEM(__pyx_t_5, 0+1, __pyx_t_3); - __pyx_t_3 = 0; - __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 115; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - } - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_Function__info, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 115; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - - /* "talib/abstract.pyx":118 - * - * # inputs (price series names) - * for i in xrange(self.__info.pop('num_inputs')): # <<<<<<<<<<<<<< - * info = _ta_getInputParameterInfo(self.__name, i) - * input_name = info['name'] - */ - __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__info); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 118; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_pop); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 118; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__2, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 118; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 118; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __Pyx_GIVEREF(__pyx_t_1); - PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1); - __pyx_t_1 = 0; - __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_xrange, __pyx_t_2, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 118; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - if (likely(PyList_CheckExact(__pyx_t_1)) || PyTuple_CheckExact(__pyx_t_1)) { - __pyx_t_2 = __pyx_t_1; __Pyx_INCREF(__pyx_t_2); __pyx_t_6 = 0; - __pyx_t_7 = NULL; - } else { - __pyx_t_6 = -1; __pyx_t_2 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 118; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __pyx_t_7 = Py_TYPE(__pyx_t_2)->tp_iternext; if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 118; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - } - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - for (;;) { - if (likely(!__pyx_t_7)) { - if (likely(PyList_CheckExact(__pyx_t_2))) { - if (__pyx_t_6 >= PyList_GET_SIZE(__pyx_t_2)) break; - #if CYTHON_COMPILING_IN_CPYTHON - __pyx_t_1 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_6); __Pyx_INCREF(__pyx_t_1); __pyx_t_6++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 118; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - #else - __pyx_t_1 = PySequence_ITEM(__pyx_t_2, __pyx_t_6); __pyx_t_6++; if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 118; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - #endif - } else { - if (__pyx_t_6 >= PyTuple_GET_SIZE(__pyx_t_2)) break; - #if CYTHON_COMPILING_IN_CPYTHON - __pyx_t_1 = PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_6); __Pyx_INCREF(__pyx_t_1); __pyx_t_6++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 118; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - #else - __pyx_t_1 = PySequence_ITEM(__pyx_t_2, __pyx_t_6); __pyx_t_6++; if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 118; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - #endif - } - } else { - __pyx_t_1 = __pyx_t_7(__pyx_t_2); - if (unlikely(!__pyx_t_1)) { - PyObject* exc_type = PyErr_Occurred(); - if (exc_type) { - if (likely(exc_type == PyExc_StopIteration || PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); - else {__pyx_filename = __pyx_f[0]; __pyx_lineno = 118; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - } - break; - } - __Pyx_GOTREF(__pyx_t_1); - } - __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_1); - __pyx_t_1 = 0; - - /* "talib/abstract.pyx":119 - * # inputs (price series names) - * for i in xrange(self.__info.pop('num_inputs')): - * info = _ta_getInputParameterInfo(self.__name, i) # <<<<<<<<<<<<<< - * input_name = info['name'] - * if info['price_series'] is None: - */ - __pyx_t_5 = __Pyx_GetModuleGlobalName(__pyx_n_s_ta_getInputParameterInfo); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 119; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_5); - __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__name); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 119; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_3); - __pyx_t_4 = NULL; - __pyx_t_8 = 0; - if (CYTHON_COMPILING_IN_CPYTHON && unlikely(PyMethod_Check(__pyx_t_5))) { - __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_5); - if (likely(__pyx_t_4)) { - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); - __Pyx_INCREF(__pyx_t_4); - __Pyx_INCREF(function); - __Pyx_DECREF_SET(__pyx_t_5, function); - __pyx_t_8 = 1; - } - } - __pyx_t_9 = PyTuple_New(2+__pyx_t_8); if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 119; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_9); - if (__pyx_t_4) { - __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_4); __pyx_t_4 = NULL; - } - __Pyx_GIVEREF(__pyx_t_3); - PyTuple_SET_ITEM(__pyx_t_9, 0+__pyx_t_8, __pyx_t_3); - __Pyx_INCREF(__pyx_v_i); - __Pyx_GIVEREF(__pyx_v_i); - PyTuple_SET_ITEM(__pyx_t_9, 1+__pyx_t_8, __pyx_v_i); - __pyx_t_3 = 0; - __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_9, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 119; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - __Pyx_XDECREF_SET(__pyx_v_info, __pyx_t_1); - __pyx_t_1 = 0; - - /* "talib/abstract.pyx":120 - * for i in xrange(self.__info.pop('num_inputs')): - * info = _ta_getInputParameterInfo(self.__name, i) - * input_name = info['name'] # <<<<<<<<<<<<<< - * if info['price_series'] is None: - * info['price_series'] = __INPUT_PRICE_SERIES_DEFAULTS[input_name] - */ - __pyx_t_1 = PyObject_GetItem(__pyx_v_info, __pyx_n_s_name); if (unlikely(__pyx_t_1 == NULL)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 120; __pyx_clineno = __LINE__; goto __pyx_L1_error;}; - __Pyx_GOTREF(__pyx_t_1); - __Pyx_XDECREF_SET(__pyx_v_input_name, __pyx_t_1); - __pyx_t_1 = 0; - - /* "talib/abstract.pyx":121 - * info = _ta_getInputParameterInfo(self.__name, i) - * input_name = info['name'] - * if info['price_series'] is None: # <<<<<<<<<<<<<< - * info['price_series'] = __INPUT_PRICE_SERIES_DEFAULTS[input_name] - * self.__input_names[input_name] = info - */ - __pyx_t_1 = PyObject_GetItem(__pyx_v_info, __pyx_n_s_price_series); if (unlikely(__pyx_t_1 == NULL)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 121; __pyx_clineno = __LINE__; goto __pyx_L1_error;}; - __Pyx_GOTREF(__pyx_t_1); - __pyx_t_10 = (__pyx_t_1 == Py_None); - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __pyx_t_11 = (__pyx_t_10 != 0); - if (__pyx_t_11) { - - /* "talib/abstract.pyx":122 - * input_name = info['name'] - * if info['price_series'] is None: - * info['price_series'] = __INPUT_PRICE_SERIES_DEFAULTS[input_name] # <<<<<<<<<<<<<< - * self.__input_names[input_name] = info - * self.__info['input_names'] = self.input_names - */ - __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_INPUT_PRICE_SERIES_DEFAULTS); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 122; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - __pyx_t_5 = PyObject_GetItem(__pyx_t_1, __pyx_v_input_name); if (unlikely(__pyx_t_5 == NULL)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 122; __pyx_clineno = __LINE__; goto __pyx_L1_error;}; - __Pyx_GOTREF(__pyx_t_5); - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - if (unlikely(PyObject_SetItem(__pyx_v_info, __pyx_n_s_price_series, __pyx_t_5) < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 122; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - - /* "talib/abstract.pyx":121 - * info = _ta_getInputParameterInfo(self.__name, i) - * input_name = info['name'] - * if info['price_series'] is None: # <<<<<<<<<<<<<< - * info['price_series'] = __INPUT_PRICE_SERIES_DEFAULTS[input_name] - * self.__input_names[input_name] = info - */ - } - - /* "talib/abstract.pyx":123 - * if info['price_series'] is None: - * info['price_series'] = __INPUT_PRICE_SERIES_DEFAULTS[input_name] - * self.__input_names[input_name] = info # <<<<<<<<<<<<<< - * self.__info['input_names'] = self.input_names - * - */ - __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__input_names); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 123; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_5); - if (unlikely(PyObject_SetItem(__pyx_t_5, __pyx_v_input_name, __pyx_v_info) < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 123; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - - /* "talib/abstract.pyx":118 - * - * # inputs (price series names) - * for i in xrange(self.__info.pop('num_inputs')): # <<<<<<<<<<<<<< - * info = _ta_getInputParameterInfo(self.__name, i) - * input_name = info['name'] - */ - } - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/abstract.pyx":124 - * info['price_series'] = __INPUT_PRICE_SERIES_DEFAULTS[input_name] - * self.__input_names[input_name] = info - * self.__info['input_names'] = self.input_names # <<<<<<<<<<<<<< - * - * # optional inputs (function parameters) - */ - __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_input_names); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 124; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__info); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 124; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_5); - if (unlikely(PyObject_SetItem(__pyx_t_5, __pyx_n_s_input_names, __pyx_t_2) < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 124; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/abstract.pyx":127 - * - * # optional inputs (function parameters) - * for i in xrange(self.__info.pop('num_opt_inputs')): # <<<<<<<<<<<<<< - * info = _ta_getOptInputParameterInfo(self.__name, i) - * param_name = info['name'] - */ - __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__info); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 127; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_pop); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 127; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_5); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_tuple__3, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 127; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 127; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_5); - __Pyx_GIVEREF(__pyx_t_2); - PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_2); - __pyx_t_2 = 0; - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_xrange, __pyx_t_5, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 127; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - if (likely(PyList_CheckExact(__pyx_t_2)) || PyTuple_CheckExact(__pyx_t_2)) { - __pyx_t_5 = __pyx_t_2; __Pyx_INCREF(__pyx_t_5); __pyx_t_6 = 0; - __pyx_t_7 = NULL; - } else { - __pyx_t_6 = -1; __pyx_t_5 = PyObject_GetIter(__pyx_t_2); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 127; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_5); - __pyx_t_7 = Py_TYPE(__pyx_t_5)->tp_iternext; if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 127; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - } - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - for (;;) { - if (likely(!__pyx_t_7)) { - if (likely(PyList_CheckExact(__pyx_t_5))) { - if (__pyx_t_6 >= PyList_GET_SIZE(__pyx_t_5)) break; - #if CYTHON_COMPILING_IN_CPYTHON - __pyx_t_2 = PyList_GET_ITEM(__pyx_t_5, __pyx_t_6); __Pyx_INCREF(__pyx_t_2); __pyx_t_6++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 127; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - #else - __pyx_t_2 = PySequence_ITEM(__pyx_t_5, __pyx_t_6); __pyx_t_6++; if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 127; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - #endif - } else { - if (__pyx_t_6 >= PyTuple_GET_SIZE(__pyx_t_5)) break; - #if CYTHON_COMPILING_IN_CPYTHON - __pyx_t_2 = PyTuple_GET_ITEM(__pyx_t_5, __pyx_t_6); __Pyx_INCREF(__pyx_t_2); __pyx_t_6++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 127; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - #else - __pyx_t_2 = PySequence_ITEM(__pyx_t_5, __pyx_t_6); __pyx_t_6++; if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 127; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - #endif - } - } else { - __pyx_t_2 = __pyx_t_7(__pyx_t_5); - if (unlikely(!__pyx_t_2)) { - PyObject* exc_type = PyErr_Occurred(); - if (exc_type) { - if (likely(exc_type == PyExc_StopIteration || PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); - else {__pyx_filename = __pyx_f[0]; __pyx_lineno = 127; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - } - break; - } - __Pyx_GOTREF(__pyx_t_2); - } - __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/abstract.pyx":128 - * # optional inputs (function parameters) - * for i in xrange(self.__info.pop('num_opt_inputs')): - * info = _ta_getOptInputParameterInfo(self.__name, i) # <<<<<<<<<<<<<< - * param_name = info['name'] - * self.__opt_inputs[param_name] = info - */ - __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_ta_getOptInputParameterInfo); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 128; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__name); if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 128; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_9); - __pyx_t_3 = NULL; - __pyx_t_8 = 0; - if (CYTHON_COMPILING_IN_CPYTHON && unlikely(PyMethod_Check(__pyx_t_1))) { - __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_1); - if (likely(__pyx_t_3)) { - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); - __Pyx_INCREF(__pyx_t_3); - __Pyx_INCREF(function); - __Pyx_DECREF_SET(__pyx_t_1, function); - __pyx_t_8 = 1; - } - } - __pyx_t_4 = PyTuple_New(2+__pyx_t_8); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 128; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_4); - if (__pyx_t_3) { - __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3); __pyx_t_3 = NULL; - } - __Pyx_GIVEREF(__pyx_t_9); - PyTuple_SET_ITEM(__pyx_t_4, 0+__pyx_t_8, __pyx_t_9); - __Pyx_INCREF(__pyx_v_i); - __Pyx_GIVEREF(__pyx_v_i); - PyTuple_SET_ITEM(__pyx_t_4, 1+__pyx_t_8, __pyx_v_i); - __pyx_t_9 = 0; - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_4, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 128; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __Pyx_XDECREF_SET(__pyx_v_info, __pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/abstract.pyx":129 - * for i in xrange(self.__info.pop('num_opt_inputs')): - * info = _ta_getOptInputParameterInfo(self.__name, i) - * param_name = info['name'] # <<<<<<<<<<<<<< - * self.__opt_inputs[param_name] = info - * self.__info['parameters'] = self.parameters - */ - __pyx_t_2 = PyObject_GetItem(__pyx_v_info, __pyx_n_s_name); if (unlikely(__pyx_t_2 == NULL)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 129; __pyx_clineno = __LINE__; goto __pyx_L1_error;}; - __Pyx_GOTREF(__pyx_t_2); - __Pyx_XDECREF_SET(__pyx_v_param_name, __pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/abstract.pyx":130 - * info = _ta_getOptInputParameterInfo(self.__name, i) - * param_name = info['name'] - * self.__opt_inputs[param_name] = info # <<<<<<<<<<<<<< - * self.__info['parameters'] = self.parameters - * - */ - __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__opt_inputs); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 130; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - if (unlikely(PyObject_SetItem(__pyx_t_2, __pyx_v_param_name, __pyx_v_info) < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 130; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/abstract.pyx":127 - * - * # optional inputs (function parameters) - * for i in xrange(self.__info.pop('num_opt_inputs')): # <<<<<<<<<<<<<< - * info = _ta_getOptInputParameterInfo(self.__name, i) - * param_name = info['name'] - */ - } - __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - - /* "talib/abstract.pyx":131 - * param_name = info['name'] - * self.__opt_inputs[param_name] = info - * self.__info['parameters'] = self.parameters # <<<<<<<<<<<<<< - * - * # outputs - */ - __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_parameters); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 131; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_5); - __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__info); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 131; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - if (unlikely(PyObject_SetItem(__pyx_t_2, __pyx_n_s_parameters, __pyx_t_5) < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 131; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - - /* "talib/abstract.pyx":134 - * - * # outputs - * self.__info['output_flags'] = OrderedDict() # <<<<<<<<<<<<<< - * for i in xrange(self.__info.pop('num_outputs')): - * info = _ta_getOutputParameterInfo(self.__name, i) - */ - __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_OrderedDict); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 134; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __pyx_t_1 = NULL; - if (CYTHON_COMPILING_IN_CPYTHON && unlikely(PyMethod_Check(__pyx_t_2))) { - __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_2); - if (likely(__pyx_t_1)) { - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); - __Pyx_INCREF(__pyx_t_1); - __Pyx_INCREF(function); - __Pyx_DECREF_SET(__pyx_t_2, function); - } - } - if (__pyx_t_1) { - __pyx_t_5 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_1); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 134; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - } else { - __pyx_t_5 = __Pyx_PyObject_CallNoArg(__pyx_t_2); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 134; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - } - __Pyx_GOTREF(__pyx_t_5); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__info); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 134; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - if (unlikely(PyObject_SetItem(__pyx_t_2, __pyx_n_s_output_flags, __pyx_t_5) < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 134; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - - /* "talib/abstract.pyx":135 - * # outputs - * self.__info['output_flags'] = OrderedDict() - * for i in xrange(self.__info.pop('num_outputs')): # <<<<<<<<<<<<<< - * info = _ta_getOutputParameterInfo(self.__name, i) - * output_name = info['name'] - */ - __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__info); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 135; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_5); - __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_pop); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 135; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__4, NULL); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 135; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_5); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 135; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __Pyx_GIVEREF(__pyx_t_5); - PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_5); - __pyx_t_5 = 0; - __pyx_t_5 = __Pyx_PyObject_Call(__pyx_builtin_xrange, __pyx_t_2, NULL); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 135; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_5); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - if (likely(PyList_CheckExact(__pyx_t_5)) || PyTuple_CheckExact(__pyx_t_5)) { - __pyx_t_2 = __pyx_t_5; __Pyx_INCREF(__pyx_t_2); __pyx_t_6 = 0; - __pyx_t_7 = NULL; - } else { - __pyx_t_6 = -1; __pyx_t_2 = PyObject_GetIter(__pyx_t_5); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 135; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __pyx_t_7 = Py_TYPE(__pyx_t_2)->tp_iternext; if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 135; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - } - __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - for (;;) { - if (likely(!__pyx_t_7)) { - if (likely(PyList_CheckExact(__pyx_t_2))) { - if (__pyx_t_6 >= PyList_GET_SIZE(__pyx_t_2)) break; - #if CYTHON_COMPILING_IN_CPYTHON - __pyx_t_5 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_6); __Pyx_INCREF(__pyx_t_5); __pyx_t_6++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 135; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - #else - __pyx_t_5 = PySequence_ITEM(__pyx_t_2, __pyx_t_6); __pyx_t_6++; if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 135; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_5); - #endif - } else { - if (__pyx_t_6 >= PyTuple_GET_SIZE(__pyx_t_2)) break; - #if CYTHON_COMPILING_IN_CPYTHON - __pyx_t_5 = PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_6); __Pyx_INCREF(__pyx_t_5); __pyx_t_6++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 135; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - #else - __pyx_t_5 = PySequence_ITEM(__pyx_t_2, __pyx_t_6); __pyx_t_6++; if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 135; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_5); - #endif - } - } else { - __pyx_t_5 = __pyx_t_7(__pyx_t_2); - if (unlikely(!__pyx_t_5)) { - PyObject* exc_type = PyErr_Occurred(); - if (exc_type) { - if (likely(exc_type == PyExc_StopIteration || PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); - else {__pyx_filename = __pyx_f[0]; __pyx_lineno = 135; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - } - break; - } - __Pyx_GOTREF(__pyx_t_5); - } - __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_5); - __pyx_t_5 = 0; - - /* "talib/abstract.pyx":136 - * self.__info['output_flags'] = OrderedDict() - * for i in xrange(self.__info.pop('num_outputs')): - * info = _ta_getOutputParameterInfo(self.__name, i) # <<<<<<<<<<<<<< - * output_name = info['name'] - * self.__info['output_flags'][output_name] = info['flags'] - */ - __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_ta_getOutputParameterInfo); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 136; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__name); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 136; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_4); - __pyx_t_9 = NULL; - __pyx_t_8 = 0; - if (CYTHON_COMPILING_IN_CPYTHON && unlikely(PyMethod_Check(__pyx_t_1))) { - __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_1); - if (likely(__pyx_t_9)) { - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); - __Pyx_INCREF(__pyx_t_9); - __Pyx_INCREF(function); - __Pyx_DECREF_SET(__pyx_t_1, function); - __pyx_t_8 = 1; - } - } - __pyx_t_3 = PyTuple_New(2+__pyx_t_8); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 136; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_3); - if (__pyx_t_9) { - __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_9); __pyx_t_9 = NULL; - } - __Pyx_GIVEREF(__pyx_t_4); - PyTuple_SET_ITEM(__pyx_t_3, 0+__pyx_t_8, __pyx_t_4); - __Pyx_INCREF(__pyx_v_i); - __Pyx_GIVEREF(__pyx_v_i); - PyTuple_SET_ITEM(__pyx_t_3, 1+__pyx_t_8, __pyx_v_i); - __pyx_t_4 = 0; - __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_3, NULL); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 136; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_5); - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __Pyx_XDECREF_SET(__pyx_v_info, __pyx_t_5); - __pyx_t_5 = 0; - - /* "talib/abstract.pyx":137 - * for i in xrange(self.__info.pop('num_outputs')): - * info = _ta_getOutputParameterInfo(self.__name, i) - * output_name = info['name'] # <<<<<<<<<<<<<< - * self.__info['output_flags'][output_name] = info['flags'] - * self.__outputs[output_name] = None - */ - __pyx_t_5 = PyObject_GetItem(__pyx_v_info, __pyx_n_s_name); if (unlikely(__pyx_t_5 == NULL)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 137; __pyx_clineno = __LINE__; goto __pyx_L1_error;}; - __Pyx_GOTREF(__pyx_t_5); - __Pyx_XDECREF_SET(__pyx_v_output_name, __pyx_t_5); - __pyx_t_5 = 0; - - /* "talib/abstract.pyx":138 - * info = _ta_getOutputParameterInfo(self.__name, i) - * output_name = info['name'] - * self.__info['output_flags'][output_name] = info['flags'] # <<<<<<<<<<<<<< - * self.__outputs[output_name] = None - * self.__info['output_names'] = self.output_names - */ - __pyx_t_5 = PyObject_GetItem(__pyx_v_info, __pyx_n_s_flags); if (unlikely(__pyx_t_5 == NULL)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 138; __pyx_clineno = __LINE__; goto __pyx_L1_error;}; - __Pyx_GOTREF(__pyx_t_5); - __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__info); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 138; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - __pyx_t_3 = PyObject_GetItem(__pyx_t_1, __pyx_n_s_output_flags); if (unlikely(__pyx_t_3 == NULL)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 138; __pyx_clineno = __LINE__; goto __pyx_L1_error;}; - __Pyx_GOTREF(__pyx_t_3); - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - if (unlikely(PyObject_SetItem(__pyx_t_3, __pyx_v_output_name, __pyx_t_5) < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 138; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - - /* "talib/abstract.pyx":139 - * output_name = info['name'] - * self.__info['output_flags'][output_name] = info['flags'] - * self.__outputs[output_name] = None # <<<<<<<<<<<<<< - * self.__info['output_names'] = self.output_names - * - */ - __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__outputs); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 139; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_5); - if (unlikely(PyObject_SetItem(__pyx_t_5, __pyx_v_output_name, Py_None) < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 139; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - - /* "talib/abstract.pyx":135 - * # outputs - * self.__info['output_flags'] = OrderedDict() - * for i in xrange(self.__info.pop('num_outputs')): # <<<<<<<<<<<<<< - * info = _ta_getOutputParameterInfo(self.__name, i) - * output_name = info['name'] - */ - } - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/abstract.pyx":140 - * self.__info['output_flags'][output_name] = info['flags'] - * self.__outputs[output_name] = None - * self.__info['output_names'] = self.output_names # <<<<<<<<<<<<<< - * - * @property - */ - __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_output_names); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 140; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__info); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 140; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_5); - if (unlikely(PyObject_SetItem(__pyx_t_5, __pyx_n_s_output_names, __pyx_t_2) < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 140; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/abstract.pyx":113 - * self.set_function_args(*args, **kwargs) - * - * def __initialize_function_info(self): # <<<<<<<<<<<<<< - * # function info - * self.__info = _ta_getFuncInfo(self.__name) - */ - - /* function exit code */ - __pyx_r = Py_None; __Pyx_INCREF(Py_None); - goto __pyx_L0; - __pyx_L1_error:; - __Pyx_XDECREF(__pyx_t_1); - __Pyx_XDECREF(__pyx_t_2); - __Pyx_XDECREF(__pyx_t_3); - __Pyx_XDECREF(__pyx_t_4); - __Pyx_XDECREF(__pyx_t_5); - __Pyx_XDECREF(__pyx_t_9); - __Pyx_AddTraceback("talib.abstract.Function.__initialize_function_info", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF(__pyx_v_i); - __Pyx_XDECREF(__pyx_v_info); - __Pyx_XDECREF(__pyx_v_input_name); - __Pyx_XDECREF(__pyx_v_param_name); - __Pyx_XDECREF(__pyx_v_output_name); - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "talib/abstract.pyx":143 - * - * @property - * def info(self): # <<<<<<<<<<<<<< - * """ - * Returns a copy of the function's info dict. - */ - -/* Python wrapper */ -static PyObject *__pyx_pw_5talib_8abstract_8Function_5info(PyObject *__pyx_self, PyObject *__pyx_v_self); /*proto*/ -static char __pyx_doc_5talib_8abstract_8Function_4info[] = "\n Returns a copy of the function's info dict.\n "; -static PyMethodDef __pyx_mdef_5talib_8abstract_8Function_5info = {"info", (PyCFunction)__pyx_pw_5talib_8abstract_8Function_5info, METH_O, __pyx_doc_5talib_8abstract_8Function_4info}; -static PyObject *__pyx_pw_5talib_8abstract_8Function_5info(PyObject *__pyx_self, PyObject *__pyx_v_self) { - PyObject *__pyx_r = 0; - __Pyx_RefNannyDeclarations - __Pyx_RefNannySetupContext("info (wrapper)", 0); - __pyx_r = __pyx_pf_5talib_8abstract_8Function_4info(__pyx_self, ((PyObject *)__pyx_v_self)); - - /* function exit code */ - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -static PyObject *__pyx_pf_5talib_8abstract_8Function_4info(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self) { - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - PyObject *__pyx_t_1 = NULL; - PyObject *__pyx_t_2 = NULL; - PyObject *__pyx_t_3 = NULL; - int __pyx_lineno = 0; - const char *__pyx_filename = NULL; - int __pyx_clineno = 0; - __Pyx_RefNannySetupContext("info", 0); - - /* "talib/abstract.pyx":147 - * Returns a copy of the function's info dict. - * """ - * return self.__info.copy() # <<<<<<<<<<<<<< - * - * @property - */ - __Pyx_XDECREF(__pyx_r); - __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__info); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 147; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_copy); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 147; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_3); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __pyx_t_2 = NULL; - if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_3))) { - __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3); - if (likely(__pyx_t_2)) { - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); - __Pyx_INCREF(__pyx_t_2); - __Pyx_INCREF(function); - __Pyx_DECREF_SET(__pyx_t_3, function); - } - } - if (__pyx_t_2) { - __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 147; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - } else { - __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_3); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 147; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - } - __Pyx_GOTREF(__pyx_t_1); - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __pyx_r = __pyx_t_1; - __pyx_t_1 = 0; - goto __pyx_L0; - - /* "talib/abstract.pyx":143 - * - * @property - * def info(self): # <<<<<<<<<<<<<< - * """ - * Returns a copy of the function's info dict. - */ - - /* function exit code */ - __pyx_L1_error:; - __Pyx_XDECREF(__pyx_t_1); - __Pyx_XDECREF(__pyx_t_2); - __Pyx_XDECREF(__pyx_t_3); - __Pyx_AddTraceback("talib.abstract.Function.info", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "talib/abstract.pyx":150 - * - * @property - * def function_flags(self): # <<<<<<<<<<<<<< - * """ - * Returns any function flags defined for this indicator function. - */ - -/* Python wrapper */ -static PyObject *__pyx_pw_5talib_8abstract_8Function_7function_flags(PyObject *__pyx_self, PyObject *__pyx_v_self); /*proto*/ -static char __pyx_doc_5talib_8abstract_8Function_6function_flags[] = "\n Returns any function flags defined for this indicator function.\n "; -static PyMethodDef __pyx_mdef_5talib_8abstract_8Function_7function_flags = {"function_flags", (PyCFunction)__pyx_pw_5talib_8abstract_8Function_7function_flags, METH_O, __pyx_doc_5talib_8abstract_8Function_6function_flags}; -static PyObject *__pyx_pw_5talib_8abstract_8Function_7function_flags(PyObject *__pyx_self, PyObject *__pyx_v_self) { - PyObject *__pyx_r = 0; - __Pyx_RefNannyDeclarations - __Pyx_RefNannySetupContext("function_flags (wrapper)", 0); - __pyx_r = __pyx_pf_5talib_8abstract_8Function_6function_flags(__pyx_self, ((PyObject *)__pyx_v_self)); - - /* function exit code */ - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -static PyObject *__pyx_pf_5talib_8abstract_8Function_6function_flags(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self) { - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - PyObject *__pyx_t_1 = NULL; - PyObject *__pyx_t_2 = NULL; - int __pyx_lineno = 0; - const char *__pyx_filename = NULL; - int __pyx_clineno = 0; - __Pyx_RefNannySetupContext("function_flags", 0); - - /* "talib/abstract.pyx":154 - * Returns any function flags defined for this indicator function. - * """ - * return self.__info['function_flags'] # <<<<<<<<<<<<<< - * - * @property - */ - __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__info); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 154; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - __pyx_t_2 = PyObject_GetItem(__pyx_t_1, __pyx_n_s_function_flags); if (unlikely(__pyx_t_2 == NULL)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 154; __pyx_clineno = __LINE__; goto __pyx_L1_error;}; - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __pyx_r = __pyx_t_2; - __pyx_t_2 = 0; - goto __pyx_L0; - - /* "talib/abstract.pyx":150 - * - * @property - * def function_flags(self): # <<<<<<<<<<<<<< - * """ - * Returns any function flags defined for this indicator function. - */ - - /* function exit code */ - __pyx_L1_error:; - __Pyx_XDECREF(__pyx_t_1); - __Pyx_XDECREF(__pyx_t_2); - __Pyx_AddTraceback("talib.abstract.Function.function_flags", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "talib/abstract.pyx":157 - * - * @property - * def output_flags(self): # <<<<<<<<<<<<<< - * """ - * Returns the flags for each output for this indicator function. - */ - -/* Python wrapper */ -static PyObject *__pyx_pw_5talib_8abstract_8Function_9output_flags(PyObject *__pyx_self, PyObject *__pyx_v_self); /*proto*/ -static char __pyx_doc_5talib_8abstract_8Function_8output_flags[] = "\n Returns the flags for each output for this indicator function.\n "; -static PyMethodDef __pyx_mdef_5talib_8abstract_8Function_9output_flags = {"output_flags", (PyCFunction)__pyx_pw_5talib_8abstract_8Function_9output_flags, METH_O, __pyx_doc_5talib_8abstract_8Function_8output_flags}; -static PyObject *__pyx_pw_5talib_8abstract_8Function_9output_flags(PyObject *__pyx_self, PyObject *__pyx_v_self) { - PyObject *__pyx_r = 0; - __Pyx_RefNannyDeclarations - __Pyx_RefNannySetupContext("output_flags (wrapper)", 0); - __pyx_r = __pyx_pf_5talib_8abstract_8Function_8output_flags(__pyx_self, ((PyObject *)__pyx_v_self)); - - /* function exit code */ - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -static PyObject *__pyx_pf_5talib_8abstract_8Function_8output_flags(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self) { - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - PyObject *__pyx_t_1 = NULL; - PyObject *__pyx_t_2 = NULL; - PyObject *__pyx_t_3 = NULL; - int __pyx_lineno = 0; - const char *__pyx_filename = NULL; - int __pyx_clineno = 0; - __Pyx_RefNannySetupContext("output_flags", 0); - - /* "talib/abstract.pyx":161 - * Returns the flags for each output for this indicator function. - * """ - * return self.__info['output_flags'].copy() # <<<<<<<<<<<<<< - * - * def get_input_names(self): - */ - __Pyx_XDECREF(__pyx_r); - __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__info); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 161; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __pyx_t_3 = PyObject_GetItem(__pyx_t_2, __pyx_n_s_output_flags); if (unlikely(__pyx_t_3 == NULL)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 161; __pyx_clineno = __LINE__; goto __pyx_L1_error;}; - __Pyx_GOTREF(__pyx_t_3); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_copy); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 161; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __pyx_t_3 = NULL; - if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_2))) { - __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); - if (likely(__pyx_t_3)) { - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); - __Pyx_INCREF(__pyx_t_3); - __Pyx_INCREF(function); - __Pyx_DECREF_SET(__pyx_t_2, function); - } - } - if (__pyx_t_3) { - __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 161; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - } else { - __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 161; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - } - __Pyx_GOTREF(__pyx_t_1); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __pyx_r = __pyx_t_1; - __pyx_t_1 = 0; - goto __pyx_L0; - - /* "talib/abstract.pyx":157 - * - * @property - * def output_flags(self): # <<<<<<<<<<<<<< - * """ - * Returns the flags for each output for this indicator function. - */ - - /* function exit code */ - __pyx_L1_error:; - __Pyx_XDECREF(__pyx_t_1); - __Pyx_XDECREF(__pyx_t_2); - __Pyx_XDECREF(__pyx_t_3); - __Pyx_AddTraceback("talib.abstract.Function.output_flags", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "talib/abstract.pyx":163 - * return self.__info['output_flags'].copy() - * - * def get_input_names(self): # <<<<<<<<<<<<<< - * """ - * Returns the dict of input price series names that specifies which - */ - -/* Python wrapper */ -static PyObject *__pyx_pw_5talib_8abstract_8Function_11get_input_names(PyObject *__pyx_self, PyObject *__pyx_v_self); /*proto*/ -static char __pyx_doc_5talib_8abstract_8Function_10get_input_names[] = "\n Returns the dict of input price series names that specifies which\n of the ndarrays in input_arrays will be used to calculate the function.\n "; -static PyMethodDef __pyx_mdef_5talib_8abstract_8Function_11get_input_names = {"get_input_names", (PyCFunction)__pyx_pw_5talib_8abstract_8Function_11get_input_names, METH_O, __pyx_doc_5talib_8abstract_8Function_10get_input_names}; -static PyObject *__pyx_pw_5talib_8abstract_8Function_11get_input_names(PyObject *__pyx_self, PyObject *__pyx_v_self) { - PyObject *__pyx_r = 0; - __Pyx_RefNannyDeclarations - __Pyx_RefNannySetupContext("get_input_names (wrapper)", 0); - __pyx_r = __pyx_pf_5talib_8abstract_8Function_10get_input_names(__pyx_self, ((PyObject *)__pyx_v_self)); - - /* function exit code */ - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -static PyObject *__pyx_pf_5talib_8abstract_8Function_10get_input_names(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self) { - PyObject *__pyx_v_ret = NULL; - PyObject *__pyx_v_input_name = NULL; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - PyObject *__pyx_t_1 = NULL; - PyObject *__pyx_t_2 = NULL; - PyObject *__pyx_t_3 = NULL; - Py_ssize_t __pyx_t_4; - PyObject *(*__pyx_t_5)(PyObject *); - int __pyx_lineno = 0; - const char *__pyx_filename = NULL; - int __pyx_clineno = 0; - __Pyx_RefNannySetupContext("get_input_names", 0); - - /* "talib/abstract.pyx":168 - * of the ndarrays in input_arrays will be used to calculate the function. - * """ - * ret = OrderedDict() # <<<<<<<<<<<<<< - * for input_name in self.__input_names: - * ret[input_name] = self.__input_names[input_name]['price_series'] - */ - __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_OrderedDict); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 168; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __pyx_t_3 = NULL; - if (CYTHON_COMPILING_IN_CPYTHON && unlikely(PyMethod_Check(__pyx_t_2))) { - __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); - if (likely(__pyx_t_3)) { - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); - __Pyx_INCREF(__pyx_t_3); - __Pyx_INCREF(function); - __Pyx_DECREF_SET(__pyx_t_2, function); - } - } - if (__pyx_t_3) { - __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 168; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - } else { - __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 168; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - } - __Pyx_GOTREF(__pyx_t_1); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __pyx_v_ret = __pyx_t_1; - __pyx_t_1 = 0; - - /* "talib/abstract.pyx":169 - * """ - * ret = OrderedDict() - * for input_name in self.__input_names: # <<<<<<<<<<<<<< - * ret[input_name] = self.__input_names[input_name]['price_series'] - * return ret - */ - __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__input_names); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 169; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - if (likely(PyList_CheckExact(__pyx_t_1)) || PyTuple_CheckExact(__pyx_t_1)) { - __pyx_t_2 = __pyx_t_1; __Pyx_INCREF(__pyx_t_2); __pyx_t_4 = 0; - __pyx_t_5 = NULL; - } else { - __pyx_t_4 = -1; __pyx_t_2 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 169; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __pyx_t_5 = Py_TYPE(__pyx_t_2)->tp_iternext; if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 169; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - } - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - for (;;) { - if (likely(!__pyx_t_5)) { - if (likely(PyList_CheckExact(__pyx_t_2))) { - if (__pyx_t_4 >= PyList_GET_SIZE(__pyx_t_2)) break; - #if CYTHON_COMPILING_IN_CPYTHON - __pyx_t_1 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_4); __Pyx_INCREF(__pyx_t_1); __pyx_t_4++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 169; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - #else - __pyx_t_1 = PySequence_ITEM(__pyx_t_2, __pyx_t_4); __pyx_t_4++; if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 169; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - #endif - } else { - if (__pyx_t_4 >= PyTuple_GET_SIZE(__pyx_t_2)) break; - #if CYTHON_COMPILING_IN_CPYTHON - __pyx_t_1 = PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_4); __Pyx_INCREF(__pyx_t_1); __pyx_t_4++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 169; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - #else - __pyx_t_1 = PySequence_ITEM(__pyx_t_2, __pyx_t_4); __pyx_t_4++; if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 169; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - #endif - } - } else { - __pyx_t_1 = __pyx_t_5(__pyx_t_2); - if (unlikely(!__pyx_t_1)) { - PyObject* exc_type = PyErr_Occurred(); - if (exc_type) { - if (likely(exc_type == PyExc_StopIteration || PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); - else {__pyx_filename = __pyx_f[0]; __pyx_lineno = 169; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - } - break; - } - __Pyx_GOTREF(__pyx_t_1); - } - __Pyx_XDECREF_SET(__pyx_v_input_name, __pyx_t_1); - __pyx_t_1 = 0; - - /* "talib/abstract.pyx":170 - * ret = OrderedDict() - * for input_name in self.__input_names: - * ret[input_name] = self.__input_names[input_name]['price_series'] # <<<<<<<<<<<<<< - * return ret - * - */ - __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__input_names); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 170; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - __pyx_t_3 = PyObject_GetItem(__pyx_t_1, __pyx_v_input_name); if (unlikely(__pyx_t_3 == NULL)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 170; __pyx_clineno = __LINE__; goto __pyx_L1_error;}; - __Pyx_GOTREF(__pyx_t_3); - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __pyx_t_1 = PyObject_GetItem(__pyx_t_3, __pyx_n_s_price_series); if (unlikely(__pyx_t_1 == NULL)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 170; __pyx_clineno = __LINE__; goto __pyx_L1_error;}; - __Pyx_GOTREF(__pyx_t_1); - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - if (unlikely(PyObject_SetItem(__pyx_v_ret, __pyx_v_input_name, __pyx_t_1) < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 170; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - - /* "talib/abstract.pyx":169 - * """ - * ret = OrderedDict() - * for input_name in self.__input_names: # <<<<<<<<<<<<<< - * ret[input_name] = self.__input_names[input_name]['price_series'] - * return ret - */ - } - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/abstract.pyx":171 - * for input_name in self.__input_names: - * ret[input_name] = self.__input_names[input_name]['price_series'] - * return ret # <<<<<<<<<<<<<< - * - * def set_input_names(self, input_names): - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(__pyx_v_ret); - __pyx_r = __pyx_v_ret; - goto __pyx_L0; - - /* "talib/abstract.pyx":163 - * return self.__info['output_flags'].copy() - * - * def get_input_names(self): # <<<<<<<<<<<<<< - * """ - * Returns the dict of input price series names that specifies which - */ - - /* function exit code */ - __pyx_L1_error:; - __Pyx_XDECREF(__pyx_t_1); - __Pyx_XDECREF(__pyx_t_2); - __Pyx_XDECREF(__pyx_t_3); - __Pyx_AddTraceback("talib.abstract.Function.get_input_names", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF(__pyx_v_ret); - __Pyx_XDECREF(__pyx_v_input_name); - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "talib/abstract.pyx":173 - * return ret - * - * def set_input_names(self, input_names): # <<<<<<<<<<<<<< - * """ - * Sets the input price series names to use. - */ - -/* Python wrapper */ -static PyObject *__pyx_pw_5talib_8abstract_8Function_13set_input_names(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_8abstract_8Function_12set_input_names[] = "\n Sets the input price series names to use.\n "; -static PyMethodDef __pyx_mdef_5talib_8abstract_8Function_13set_input_names = {"set_input_names", (PyCFunction)__pyx_pw_5talib_8abstract_8Function_13set_input_names, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8abstract_8Function_12set_input_names}; -static PyObject *__pyx_pw_5talib_8abstract_8Function_13set_input_names(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { - PyObject *__pyx_v_self = 0; - PyObject *__pyx_v_input_names = 0; - int __pyx_lineno = 0; - const char *__pyx_filename = NULL; - int __pyx_clineno = 0; - PyObject *__pyx_r = 0; - __Pyx_RefNannyDeclarations - __Pyx_RefNannySetupContext("set_input_names (wrapper)", 0); - { - static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_self,&__pyx_n_s_input_names,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_self)) != 0)) kw_args--; - else goto __pyx_L5_argtuple_error; - case 1: - if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_input_names)) != 0)) kw_args--; - else { - __Pyx_RaiseArgtupleInvalid("set_input_names", 1, 2, 2, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 173; __pyx_clineno = __LINE__; goto __pyx_L3_error;} - } - } - if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "set_input_names") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 173; __pyx_clineno = __LINE__; goto __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_self = values[0]; - __pyx_v_input_names = values[1]; - } - goto __pyx_L4_argument_unpacking_done; - __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("set_input_names", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 173; __pyx_clineno = __LINE__; goto __pyx_L3_error;} - __pyx_L3_error:; - __Pyx_AddTraceback("talib.abstract.Function.set_input_names", __pyx_clineno, __pyx_lineno, __pyx_filename); - __Pyx_RefNannyFinishContext(); - return NULL; - __pyx_L4_argument_unpacking_done:; - __pyx_r = __pyx_pf_5talib_8abstract_8Function_12set_input_names(__pyx_self, __pyx_v_self, __pyx_v_input_names); - - /* function exit code */ - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -static PyObject *__pyx_pf_5talib_8abstract_8Function_12set_input_names(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_input_names) { - PyObject *__pyx_v_input_name = NULL; - PyObject *__pyx_v_price_series = NULL; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - PyObject *__pyx_t_1 = NULL; - PyObject *__pyx_t_2 = NULL; - PyObject *__pyx_t_3 = NULL; - Py_ssize_t __pyx_t_4; - PyObject *(*__pyx_t_5)(PyObject *); - PyObject *__pyx_t_6 = NULL; - PyObject *__pyx_t_7 = NULL; - PyObject *(*__pyx_t_8)(PyObject *); - int __pyx_lineno = 0; - const char *__pyx_filename = NULL; - int __pyx_clineno = 0; - __Pyx_RefNannySetupContext("set_input_names", 0); - - /* "talib/abstract.pyx":177 - * Sets the input price series names to use. - * """ - * for input_name, price_series in input_names.items(): # <<<<<<<<<<<<<< - * self.__input_names[input_name]['price_series'] = price_series - * self.__info['input_names'][input_name] = price_series - */ - __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_input_names, __pyx_n_s_items); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 177; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __pyx_t_3 = NULL; - if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_2))) { - __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); - if (likely(__pyx_t_3)) { - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); - __Pyx_INCREF(__pyx_t_3); - __Pyx_INCREF(function); - __Pyx_DECREF_SET(__pyx_t_2, function); - } - } - if (__pyx_t_3) { - __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 177; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - } else { - __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 177; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - } - __Pyx_GOTREF(__pyx_t_1); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - if (likely(PyList_CheckExact(__pyx_t_1)) || PyTuple_CheckExact(__pyx_t_1)) { - __pyx_t_2 = __pyx_t_1; __Pyx_INCREF(__pyx_t_2); __pyx_t_4 = 0; - __pyx_t_5 = NULL; - } else { - __pyx_t_4 = -1; __pyx_t_2 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 177; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __pyx_t_5 = Py_TYPE(__pyx_t_2)->tp_iternext; if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 177; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - } - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - for (;;) { - if (likely(!__pyx_t_5)) { - if (likely(PyList_CheckExact(__pyx_t_2))) { - if (__pyx_t_4 >= PyList_GET_SIZE(__pyx_t_2)) break; - #if CYTHON_COMPILING_IN_CPYTHON - __pyx_t_1 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_4); __Pyx_INCREF(__pyx_t_1); __pyx_t_4++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 177; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - #else - __pyx_t_1 = PySequence_ITEM(__pyx_t_2, __pyx_t_4); __pyx_t_4++; if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 177; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - #endif - } else { - if (__pyx_t_4 >= PyTuple_GET_SIZE(__pyx_t_2)) break; - #if CYTHON_COMPILING_IN_CPYTHON - __pyx_t_1 = PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_4); __Pyx_INCREF(__pyx_t_1); __pyx_t_4++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 177; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - #else - __pyx_t_1 = PySequence_ITEM(__pyx_t_2, __pyx_t_4); __pyx_t_4++; if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 177; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - #endif - } - } else { - __pyx_t_1 = __pyx_t_5(__pyx_t_2); - if (unlikely(!__pyx_t_1)) { - PyObject* exc_type = PyErr_Occurred(); - if (exc_type) { - if (likely(exc_type == PyExc_StopIteration || PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); - else {__pyx_filename = __pyx_f[0]; __pyx_lineno = 177; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - } - break; - } - __Pyx_GOTREF(__pyx_t_1); - } - if ((likely(PyTuple_CheckExact(__pyx_t_1))) || (PyList_CheckExact(__pyx_t_1))) { - PyObject* sequence = __pyx_t_1; - #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_filename = __pyx_f[0]; __pyx_lineno = 177; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - } - #if CYTHON_COMPILING_IN_CPYTHON - if (likely(PyTuple_CheckExact(sequence))) { - __pyx_t_3 = PyTuple_GET_ITEM(sequence, 0); - __pyx_t_6 = PyTuple_GET_ITEM(sequence, 1); - } else { - __pyx_t_3 = PyList_GET_ITEM(sequence, 0); - __pyx_t_6 = PyList_GET_ITEM(sequence, 1); - } - __Pyx_INCREF(__pyx_t_3); - __Pyx_INCREF(__pyx_t_6); - #else - __pyx_t_3 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 177; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_3); - __pyx_t_6 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 177; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_6); - #endif - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - } else { - Py_ssize_t index = -1; - __pyx_t_7 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 177; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_7); - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __pyx_t_8 = Py_TYPE(__pyx_t_7)->tp_iternext; - index = 0; __pyx_t_3 = __pyx_t_8(__pyx_t_7); if (unlikely(!__pyx_t_3)) goto __pyx_L5_unpacking_failed; - __Pyx_GOTREF(__pyx_t_3); - index = 1; __pyx_t_6 = __pyx_t_8(__pyx_t_7); if (unlikely(!__pyx_t_6)) goto __pyx_L5_unpacking_failed; - __Pyx_GOTREF(__pyx_t_6); - if (__Pyx_IternextUnpackEndCheck(__pyx_t_8(__pyx_t_7), 2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 177; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __pyx_t_8 = NULL; - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - goto __pyx_L6_unpacking_done; - __pyx_L5_unpacking_failed:; - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - __pyx_t_8 = NULL; - if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index); - {__pyx_filename = __pyx_f[0]; __pyx_lineno = 177; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __pyx_L6_unpacking_done:; - } - __Pyx_XDECREF_SET(__pyx_v_input_name, __pyx_t_3); - __pyx_t_3 = 0; - __Pyx_XDECREF_SET(__pyx_v_price_series, __pyx_t_6); - __pyx_t_6 = 0; - - /* "talib/abstract.pyx":178 - * """ - * for input_name, price_series in input_names.items(): - * self.__input_names[input_name]['price_series'] = price_series # <<<<<<<<<<<<<< - * self.__info['input_names'][input_name] = price_series - * self.__outputs_valid = False - */ - __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__input_names); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 178; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - __pyx_t_6 = PyObject_GetItem(__pyx_t_1, __pyx_v_input_name); if (unlikely(__pyx_t_6 == NULL)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 178; __pyx_clineno = __LINE__; goto __pyx_L1_error;}; - __Pyx_GOTREF(__pyx_t_6); - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - if (unlikely(PyObject_SetItem(__pyx_t_6, __pyx_n_s_price_series, __pyx_v_price_series) < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 178; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - - /* "talib/abstract.pyx":179 - * for input_name, price_series in input_names.items(): - * self.__input_names[input_name]['price_series'] = price_series - * self.__info['input_names'][input_name] = price_series # <<<<<<<<<<<<<< - * self.__outputs_valid = False - * - */ - __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__info); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 179; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_6); - __pyx_t_1 = PyObject_GetItem(__pyx_t_6, __pyx_n_s_input_names); if (unlikely(__pyx_t_1 == NULL)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 179; __pyx_clineno = __LINE__; goto __pyx_L1_error;}; - __Pyx_GOTREF(__pyx_t_1); - __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - if (unlikely(PyObject_SetItem(__pyx_t_1, __pyx_v_input_name, __pyx_v_price_series) < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 179; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - - /* "talib/abstract.pyx":177 - * Sets the input price series names to use. - * """ - * for input_name, price_series in input_names.items(): # <<<<<<<<<<<<<< - * self.__input_names[input_name]['price_series'] = price_series - * self.__info['input_names'][input_name] = price_series - */ - } - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/abstract.pyx":180 - * self.__input_names[input_name]['price_series'] = price_series - * self.__info['input_names'][input_name] = price_series - * self.__outputs_valid = False # <<<<<<<<<<<<<< - * - * input_names = property(get_input_names, set_input_names) - */ - if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_Function__outputs_valid, Py_False) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 180; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - - /* "talib/abstract.pyx":173 - * return ret - * - * def set_input_names(self, input_names): # <<<<<<<<<<<<<< - * """ - * Sets the input price series names to use. - */ - - /* function exit code */ - __pyx_r = Py_None; __Pyx_INCREF(Py_None); - goto __pyx_L0; - __pyx_L1_error:; - __Pyx_XDECREF(__pyx_t_1); - __Pyx_XDECREF(__pyx_t_2); - __Pyx_XDECREF(__pyx_t_3); - __Pyx_XDECREF(__pyx_t_6); - __Pyx_XDECREF(__pyx_t_7); - __Pyx_AddTraceback("talib.abstract.Function.set_input_names", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF(__pyx_v_input_name); - __Pyx_XDECREF(__pyx_v_price_series); - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "talib/abstract.pyx":184 - * input_names = property(get_input_names, set_input_names) - * - * def get_input_arrays(self): # <<<<<<<<<<<<<< - * """ - * Returns a copy of the dict of input arrays in use. - */ - -/* Python wrapper */ -static PyObject *__pyx_pw_5talib_8abstract_8Function_15get_input_arrays(PyObject *__pyx_self, PyObject *__pyx_v_self); /*proto*/ -static char __pyx_doc_5talib_8abstract_8Function_14get_input_arrays[] = "\n Returns a copy of the dict of input arrays in use.\n "; -static PyMethodDef __pyx_mdef_5talib_8abstract_8Function_15get_input_arrays = {"get_input_arrays", (PyCFunction)__pyx_pw_5talib_8abstract_8Function_15get_input_arrays, METH_O, __pyx_doc_5talib_8abstract_8Function_14get_input_arrays}; -static PyObject *__pyx_pw_5talib_8abstract_8Function_15get_input_arrays(PyObject *__pyx_self, PyObject *__pyx_v_self) { - PyObject *__pyx_r = 0; - __Pyx_RefNannyDeclarations - __Pyx_RefNannySetupContext("get_input_arrays (wrapper)", 0); - __pyx_r = __pyx_pf_5talib_8abstract_8Function_14get_input_arrays(__pyx_self, ((PyObject *)__pyx_v_self)); - - /* function exit code */ - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -static PyObject *__pyx_pf_5talib_8abstract_8Function_14get_input_arrays(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self) { - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - PyObject *__pyx_t_1 = NULL; - PyObject *__pyx_t_2 = NULL; - PyObject *__pyx_t_3 = NULL; - int __pyx_lineno = 0; - const char *__pyx_filename = NULL; - int __pyx_clineno = 0; - __Pyx_RefNannySetupContext("get_input_arrays", 0); - - /* "talib/abstract.pyx":188 - * Returns a copy of the dict of input arrays in use. - * """ - * return self.__input_arrays.copy() # <<<<<<<<<<<<<< - * - * def set_input_arrays(self, input_arrays): - */ - __Pyx_XDECREF(__pyx_r); - __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__input_arrays); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 188; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_copy); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 188; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_3); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __pyx_t_2 = NULL; - if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_3))) { - __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3); - if (likely(__pyx_t_2)) { - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); - __Pyx_INCREF(__pyx_t_2); - __Pyx_INCREF(function); - __Pyx_DECREF_SET(__pyx_t_3, function); - } - } - if (__pyx_t_2) { - __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 188; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - } else { - __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_3); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 188; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - } - __Pyx_GOTREF(__pyx_t_1); - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __pyx_r = __pyx_t_1; - __pyx_t_1 = 0; - goto __pyx_L0; - - /* "talib/abstract.pyx":184 - * input_names = property(get_input_names, set_input_names) - * - * def get_input_arrays(self): # <<<<<<<<<<<<<< - * """ - * Returns a copy of the dict of input arrays in use. - */ - - /* function exit code */ - __pyx_L1_error:; - __Pyx_XDECREF(__pyx_t_1); - __Pyx_XDECREF(__pyx_t_2); - __Pyx_XDECREF(__pyx_t_3); - __Pyx_AddTraceback("talib.abstract.Function.get_input_arrays", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "talib/abstract.pyx":190 - * return self.__input_arrays.copy() - * - * def set_input_arrays(self, input_arrays): # <<<<<<<<<<<<<< - * """ - * Sets the dict of input_arrays to use. Returns True/False for - */ - -/* Python wrapper */ -static PyObject *__pyx_pw_5talib_8abstract_8Function_17set_input_arrays(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_8abstract_8Function_16set_input_arrays[] = "\n Sets the dict of input_arrays to use. Returns True/False for\n subclasses:\n\n If input_arrays is a dict with the keys open, high, low, close and\n volume, it is assigned as the input_array to use and this function\n returns True, returning False otherwise. If you implement your own\n data type and wish to subclass Function, you should wrap this function\n with an if-statement:\n\n class CustomFunction(Function):\n def __init__(self, function_name):\n Function.__init__(self, function_name)\n\n def set_input_arrays(self, input_data):\n if Function.set_input_arrays(self, input_data):\n return True\n elif isinstance(input_data, some_module.CustomDataType):\n input_arrays = Function.get_input_arrays(self)\n # convert input_data to input_arrays and then call the super\n Function.set_input_arrays(self, input_arrays)\n return True\n return False\n "; -static PyMethodDef __pyx_mdef_5talib_8abstract_8Function_17set_input_arrays = {"set_input_arrays", (PyCFunction)__pyx_pw_5talib_8abstract_8Function_17set_input_arrays, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8abstract_8Function_16set_input_arrays}; -static PyObject *__pyx_pw_5talib_8abstract_8Function_17set_input_arrays(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { - PyObject *__pyx_v_self = 0; - PyObject *__pyx_v_input_arrays = 0; - int __pyx_lineno = 0; - const char *__pyx_filename = NULL; - int __pyx_clineno = 0; - PyObject *__pyx_r = 0; - __Pyx_RefNannyDeclarations - __Pyx_RefNannySetupContext("set_input_arrays (wrapper)", 0); - { - static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_self,&__pyx_n_s_input_arrays,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_self)) != 0)) kw_args--; - else goto __pyx_L5_argtuple_error; - case 1: - if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_input_arrays)) != 0)) kw_args--; - else { - __Pyx_RaiseArgtupleInvalid("set_input_arrays", 1, 2, 2, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 190; __pyx_clineno = __LINE__; goto __pyx_L3_error;} - } - } - if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "set_input_arrays") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 190; __pyx_clineno = __LINE__; goto __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_self = values[0]; - __pyx_v_input_arrays = values[1]; - } - goto __pyx_L4_argument_unpacking_done; - __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("set_input_arrays", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 190; __pyx_clineno = __LINE__; goto __pyx_L3_error;} - __pyx_L3_error:; - __Pyx_AddTraceback("talib.abstract.Function.set_input_arrays", __pyx_clineno, __pyx_lineno, __pyx_filename); - __Pyx_RefNannyFinishContext(); - return NULL; - __pyx_L4_argument_unpacking_done:; - __pyx_r = __pyx_pf_5talib_8abstract_8Function_16set_input_arrays(__pyx_self, __pyx_v_self, __pyx_v_input_arrays); - - /* function exit code */ - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -static PyObject *__pyx_pf_5talib_8abstract_8Function_16set_input_arrays(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_input_arrays) { - PyObject *__pyx_v_missing_keys = NULL; - PyObject *__pyx_v_key = NULL; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - PyObject *__pyx_t_1 = NULL; - int __pyx_t_2; - int __pyx_t_3; - PyObject *__pyx_t_4 = NULL; - PyObject *__pyx_t_5 = NULL; - Py_ssize_t __pyx_t_6; - PyObject *(*__pyx_t_7)(PyObject *); - int __pyx_t_8; - int __pyx_lineno = 0; - const char *__pyx_filename = NULL; - int __pyx_clineno = 0; - __Pyx_RefNannySetupContext("set_input_arrays", 0); - - /* "talib/abstract.pyx":215 - * return False - * """ - * if isinstance(input_arrays, __INPUT_ARRAYS_TYPES): # <<<<<<<<<<<<<< - * missing_keys = [] - * for key in self.__input_price_series_names(): - */ - __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_INPUT_ARRAYS_TYPES); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 215; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - __pyx_t_2 = PyObject_IsInstance(__pyx_v_input_arrays, __pyx_t_1); if (unlikely(__pyx_t_2 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 215; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __pyx_t_3 = (__pyx_t_2 != 0); - if (__pyx_t_3) { - - /* "talib/abstract.pyx":216 - * """ - * if isinstance(input_arrays, __INPUT_ARRAYS_TYPES): - * missing_keys = [] # <<<<<<<<<<<<<< - * for key in self.__input_price_series_names(): - * if key not in input_arrays: - */ - __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 216; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - __pyx_v_missing_keys = ((PyObject*)__pyx_t_1); - __pyx_t_1 = 0; - - /* "talib/abstract.pyx":217 - * if isinstance(input_arrays, __INPUT_ARRAYS_TYPES): - * missing_keys = [] - * for key in self.__input_price_series_names(): # <<<<<<<<<<<<<< - * if key not in input_arrays: - * missing_keys.append(key) - */ - __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__input_price_series_na); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 217; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_4); - __pyx_t_5 = NULL; - if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_4))) { - __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4); - if (likely(__pyx_t_5)) { - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); - __Pyx_INCREF(__pyx_t_5); - __Pyx_INCREF(function); - __Pyx_DECREF_SET(__pyx_t_4, function); - } - } - if (__pyx_t_5) { - __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_5); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 217; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - } else { - __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_4); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 217; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - } - __Pyx_GOTREF(__pyx_t_1); - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - if (likely(PyList_CheckExact(__pyx_t_1)) || PyTuple_CheckExact(__pyx_t_1)) { - __pyx_t_4 = __pyx_t_1; __Pyx_INCREF(__pyx_t_4); __pyx_t_6 = 0; - __pyx_t_7 = NULL; - } else { - __pyx_t_6 = -1; __pyx_t_4 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 217; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_4); - __pyx_t_7 = Py_TYPE(__pyx_t_4)->tp_iternext; if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 217; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - } - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - for (;;) { - if (likely(!__pyx_t_7)) { - if (likely(PyList_CheckExact(__pyx_t_4))) { - if (__pyx_t_6 >= PyList_GET_SIZE(__pyx_t_4)) break; - #if CYTHON_COMPILING_IN_CPYTHON - __pyx_t_1 = PyList_GET_ITEM(__pyx_t_4, __pyx_t_6); __Pyx_INCREF(__pyx_t_1); __pyx_t_6++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 217; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - #else - __pyx_t_1 = PySequence_ITEM(__pyx_t_4, __pyx_t_6); __pyx_t_6++; if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 217; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - #endif - } else { - if (__pyx_t_6 >= PyTuple_GET_SIZE(__pyx_t_4)) break; - #if CYTHON_COMPILING_IN_CPYTHON - __pyx_t_1 = PyTuple_GET_ITEM(__pyx_t_4, __pyx_t_6); __Pyx_INCREF(__pyx_t_1); __pyx_t_6++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 217; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - #else - __pyx_t_1 = PySequence_ITEM(__pyx_t_4, __pyx_t_6); __pyx_t_6++; if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 217; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - #endif - } - } else { - __pyx_t_1 = __pyx_t_7(__pyx_t_4); - if (unlikely(!__pyx_t_1)) { - PyObject* exc_type = PyErr_Occurred(); - if (exc_type) { - if (likely(exc_type == PyExc_StopIteration || PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); - else {__pyx_filename = __pyx_f[0]; __pyx_lineno = 217; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - } - break; - } - __Pyx_GOTREF(__pyx_t_1); - } - __Pyx_XDECREF_SET(__pyx_v_key, __pyx_t_1); - __pyx_t_1 = 0; - - /* "talib/abstract.pyx":218 - * missing_keys = [] - * for key in self.__input_price_series_names(): - * if key not in input_arrays: # <<<<<<<<<<<<<< - * missing_keys.append(key) - * if len(missing_keys) == 0: - */ - __pyx_t_3 = (__Pyx_PySequence_ContainsTF(__pyx_v_key, __pyx_v_input_arrays, Py_NE)); if (unlikely(__pyx_t_3 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 218; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __pyx_t_2 = (__pyx_t_3 != 0); - if (__pyx_t_2) { - - /* "talib/abstract.pyx":219 - * for key in self.__input_price_series_names(): - * if key not in input_arrays: - * missing_keys.append(key) # <<<<<<<<<<<<<< - * if len(missing_keys) == 0: - * self.__input_arrays = input_arrays - */ - __pyx_t_8 = __Pyx_PyList_Append(__pyx_v_missing_keys, __pyx_v_key); if (unlikely(__pyx_t_8 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 219; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - - /* "talib/abstract.pyx":218 - * missing_keys = [] - * for key in self.__input_price_series_names(): - * if key not in input_arrays: # <<<<<<<<<<<<<< - * missing_keys.append(key) - * if len(missing_keys) == 0: - */ - } - - /* "talib/abstract.pyx":217 - * if isinstance(input_arrays, __INPUT_ARRAYS_TYPES): - * missing_keys = [] - * for key in self.__input_price_series_names(): # <<<<<<<<<<<<<< - * if key not in input_arrays: - * missing_keys.append(key) - */ - } - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - - /* "talib/abstract.pyx":220 - * if key not in input_arrays: - * missing_keys.append(key) - * if len(missing_keys) == 0: # <<<<<<<<<<<<<< - * self.__input_arrays = input_arrays - * self.__outputs_valid = False - */ - __pyx_t_6 = PyList_GET_SIZE(__pyx_v_missing_keys); if (unlikely(__pyx_t_6 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 220; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __pyx_t_2 = ((__pyx_t_6 == 0) != 0); - if (__pyx_t_2) { - - /* "talib/abstract.pyx":221 - * missing_keys.append(key) - * if len(missing_keys) == 0: - * self.__input_arrays = input_arrays # <<<<<<<<<<<<<< - * self.__outputs_valid = False - * return True - */ - if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_Function__input_arrays, __pyx_v_input_arrays) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 221; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - - /* "talib/abstract.pyx":222 - * if len(missing_keys) == 0: - * self.__input_arrays = input_arrays - * self.__outputs_valid = False # <<<<<<<<<<<<<< - * return True - * else: - */ - if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_Function__outputs_valid, Py_False) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 222; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - - /* "talib/abstract.pyx":223 - * self.__input_arrays = input_arrays - * self.__outputs_valid = False - * return True # <<<<<<<<<<<<<< - * else: - * raise Exception('input_arrays parameter missing required data '\ - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(Py_True); - __pyx_r = Py_True; - goto __pyx_L0; - - /* "talib/abstract.pyx":220 - * if key not in input_arrays: - * missing_keys.append(key) - * if len(missing_keys) == 0: # <<<<<<<<<<<<<< - * self.__input_arrays = input_arrays - * self.__outputs_valid = False - */ - } - - /* "talib/abstract.pyx":225 - * return True - * else: - * raise Exception('input_arrays parameter missing required data '\ # <<<<<<<<<<<<<< - * 'key%s: %s' % ('s' if len(missing_keys) > 1 \ - * else '', - */ - /*else*/ { - - /* "talib/abstract.pyx":226 - * else: - * raise Exception('input_arrays parameter missing required data '\ - * 'key%s: %s' % ('s' if len(missing_keys) > 1 \ # <<<<<<<<<<<<<< - * else '', - * ', '.join(missing_keys))) - */ - __pyx_t_6 = PyList_GET_SIZE(__pyx_v_missing_keys); if (unlikely(__pyx_t_6 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 226; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - if (((__pyx_t_6 > 1) != 0)) { - __Pyx_INCREF(__pyx_n_s_s); - __pyx_t_4 = __pyx_n_s_s; - } else { - __Pyx_INCREF(__pyx_kp_s__5); - __pyx_t_4 = __pyx_kp_s__5; - } - - /* "talib/abstract.pyx":228 - * 'key%s: %s' % ('s' if len(missing_keys) > 1 \ - * else '', - * ', '.join(missing_keys))) # <<<<<<<<<<<<<< - * return False - * - */ - __pyx_t_1 = __Pyx_PyString_Join(__pyx_kp_s__6, __pyx_v_missing_keys); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 228; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - - /* "talib/abstract.pyx":226 - * else: - * raise Exception('input_arrays parameter missing required data '\ - * 'key%s: %s' % ('s' if len(missing_keys) > 1 \ # <<<<<<<<<<<<<< - * else '', - * ', '.join(missing_keys))) - */ - __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 226; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_5); - __Pyx_GIVEREF(__pyx_t_4); - PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); - __Pyx_GIVEREF(__pyx_t_1); - PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_1); - __pyx_t_4 = 0; - __pyx_t_1 = 0; - __pyx_t_1 = __Pyx_PyString_Format(__pyx_kp_s_input_arrays_parameter_missing_r, __pyx_t_5); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 226; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - - /* "talib/abstract.pyx":225 - * return True - * else: - * raise Exception('input_arrays parameter missing required data '\ # <<<<<<<<<<<<<< - * 'key%s: %s' % ('s' if len(missing_keys) > 1 \ - * else '', - */ - __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 225; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_5); - __Pyx_GIVEREF(__pyx_t_1); - PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_1); - __pyx_t_1 = 0; - __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 225; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - __Pyx_Raise(__pyx_t_1, 0, 0, 0); - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - {__pyx_filename = __pyx_f[0]; __pyx_lineno = 225; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - } - - /* "talib/abstract.pyx":215 - * return False - * """ - * if isinstance(input_arrays, __INPUT_ARRAYS_TYPES): # <<<<<<<<<<<<<< - * missing_keys = [] - * for key in self.__input_price_series_names(): - */ - } - - /* "talib/abstract.pyx":229 - * else '', - * ', '.join(missing_keys))) - * return False # <<<<<<<<<<<<<< - * - * input_arrays = property(get_input_arrays, set_input_arrays) - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(Py_False); - __pyx_r = Py_False; - goto __pyx_L0; - - /* "talib/abstract.pyx":190 - * return self.__input_arrays.copy() - * - * def set_input_arrays(self, input_arrays): # <<<<<<<<<<<<<< - * """ - * Sets the dict of input_arrays to use. Returns True/False for - */ - - /* function exit code */ - __pyx_L1_error:; - __Pyx_XDECREF(__pyx_t_1); - __Pyx_XDECREF(__pyx_t_4); - __Pyx_XDECREF(__pyx_t_5); - __Pyx_AddTraceback("talib.abstract.Function.set_input_arrays", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF(__pyx_v_missing_keys); - __Pyx_XDECREF(__pyx_v_key); - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "talib/abstract.pyx":233 - * input_arrays = property(get_input_arrays, set_input_arrays) - * - * def get_parameters(self): # <<<<<<<<<<<<<< - * """ - * Returns the function's optional parameters and their default values. - */ - -/* Python wrapper */ -static PyObject *__pyx_pw_5talib_8abstract_8Function_19get_parameters(PyObject *__pyx_self, PyObject *__pyx_v_self); /*proto*/ -static char __pyx_doc_5talib_8abstract_8Function_18get_parameters[] = "\n Returns the function's optional parameters and their default values.\n "; -static PyMethodDef __pyx_mdef_5talib_8abstract_8Function_19get_parameters = {"get_parameters", (PyCFunction)__pyx_pw_5talib_8abstract_8Function_19get_parameters, METH_O, __pyx_doc_5talib_8abstract_8Function_18get_parameters}; -static PyObject *__pyx_pw_5talib_8abstract_8Function_19get_parameters(PyObject *__pyx_self, PyObject *__pyx_v_self) { - PyObject *__pyx_r = 0; - __Pyx_RefNannyDeclarations - __Pyx_RefNannySetupContext("get_parameters (wrapper)", 0); - __pyx_r = __pyx_pf_5talib_8abstract_8Function_18get_parameters(__pyx_self, ((PyObject *)__pyx_v_self)); - - /* function exit code */ - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -static PyObject *__pyx_pf_5talib_8abstract_8Function_18get_parameters(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self) { - PyObject *__pyx_v_ret = NULL; - PyObject *__pyx_v_opt_input = NULL; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - PyObject *__pyx_t_1 = NULL; - PyObject *__pyx_t_2 = NULL; - PyObject *__pyx_t_3 = NULL; - Py_ssize_t __pyx_t_4; - PyObject *(*__pyx_t_5)(PyObject *); - PyObject *__pyx_t_6 = NULL; - PyObject *__pyx_t_7 = NULL; - int __pyx_lineno = 0; - const char *__pyx_filename = NULL; - int __pyx_clineno = 0; - __Pyx_RefNannySetupContext("get_parameters", 0); - - /* "talib/abstract.pyx":237 - * Returns the function's optional parameters and their default values. - * """ - * ret = OrderedDict() # <<<<<<<<<<<<<< - * for opt_input in self.__opt_inputs: - * ret[opt_input] = self.__get_opt_input_value(opt_input) - */ - __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_OrderedDict); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 237; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __pyx_t_3 = NULL; - if (CYTHON_COMPILING_IN_CPYTHON && unlikely(PyMethod_Check(__pyx_t_2))) { - __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); - if (likely(__pyx_t_3)) { - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); - __Pyx_INCREF(__pyx_t_3); - __Pyx_INCREF(function); - __Pyx_DECREF_SET(__pyx_t_2, function); - } - } - if (__pyx_t_3) { - __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 237; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - } else { - __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 237; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - } - __Pyx_GOTREF(__pyx_t_1); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __pyx_v_ret = __pyx_t_1; - __pyx_t_1 = 0; - - /* "talib/abstract.pyx":238 - * """ - * ret = OrderedDict() - * for opt_input in self.__opt_inputs: # <<<<<<<<<<<<<< - * ret[opt_input] = self.__get_opt_input_value(opt_input) - * return ret - */ - __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__opt_inputs); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 238; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - if (likely(PyList_CheckExact(__pyx_t_1)) || PyTuple_CheckExact(__pyx_t_1)) { - __pyx_t_2 = __pyx_t_1; __Pyx_INCREF(__pyx_t_2); __pyx_t_4 = 0; - __pyx_t_5 = NULL; - } else { - __pyx_t_4 = -1; __pyx_t_2 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 238; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __pyx_t_5 = Py_TYPE(__pyx_t_2)->tp_iternext; if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 238; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - } - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - for (;;) { - if (likely(!__pyx_t_5)) { - if (likely(PyList_CheckExact(__pyx_t_2))) { - if (__pyx_t_4 >= PyList_GET_SIZE(__pyx_t_2)) break; - #if CYTHON_COMPILING_IN_CPYTHON - __pyx_t_1 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_4); __Pyx_INCREF(__pyx_t_1); __pyx_t_4++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 238; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - #else - __pyx_t_1 = PySequence_ITEM(__pyx_t_2, __pyx_t_4); __pyx_t_4++; if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 238; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - #endif - } else { - if (__pyx_t_4 >= PyTuple_GET_SIZE(__pyx_t_2)) break; - #if CYTHON_COMPILING_IN_CPYTHON - __pyx_t_1 = PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_4); __Pyx_INCREF(__pyx_t_1); __pyx_t_4++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 238; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - #else - __pyx_t_1 = PySequence_ITEM(__pyx_t_2, __pyx_t_4); __pyx_t_4++; if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 238; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - #endif - } - } else { - __pyx_t_1 = __pyx_t_5(__pyx_t_2); - if (unlikely(!__pyx_t_1)) { - PyObject* exc_type = PyErr_Occurred(); - if (exc_type) { - if (likely(exc_type == PyExc_StopIteration || PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); - else {__pyx_filename = __pyx_f[0]; __pyx_lineno = 238; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - } - break; - } - __Pyx_GOTREF(__pyx_t_1); - } - __Pyx_XDECREF_SET(__pyx_v_opt_input, __pyx_t_1); - __pyx_t_1 = 0; - - /* "talib/abstract.pyx":239 - * ret = OrderedDict() - * for opt_input in self.__opt_inputs: - * ret[opt_input] = self.__get_opt_input_value(opt_input) # <<<<<<<<<<<<<< - * return ret - * - */ - __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__get_opt_input_value); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 239; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_3); - __pyx_t_6 = NULL; - if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_3))) { - __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_3); - if (likely(__pyx_t_6)) { - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); - __Pyx_INCREF(__pyx_t_6); - __Pyx_INCREF(function); - __Pyx_DECREF_SET(__pyx_t_3, function); - } - } - if (!__pyx_t_6) { - __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_v_opt_input); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 239; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - } else { - __pyx_t_7 = PyTuple_New(1+1); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 239; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_7); - __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_6); __pyx_t_6 = NULL; - __Pyx_INCREF(__pyx_v_opt_input); - __Pyx_GIVEREF(__pyx_v_opt_input); - PyTuple_SET_ITEM(__pyx_t_7, 0+1, __pyx_v_opt_input); - __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_7, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 239; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - } - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - if (unlikely(PyObject_SetItem(__pyx_v_ret, __pyx_v_opt_input, __pyx_t_1) < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 239; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - - /* "talib/abstract.pyx":238 - * """ - * ret = OrderedDict() - * for opt_input in self.__opt_inputs: # <<<<<<<<<<<<<< - * ret[opt_input] = self.__get_opt_input_value(opt_input) - * return ret - */ - } - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/abstract.pyx":240 - * for opt_input in self.__opt_inputs: - * ret[opt_input] = self.__get_opt_input_value(opt_input) - * return ret # <<<<<<<<<<<<<< - * - * def set_parameters(self, parameters): - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(__pyx_v_ret); - __pyx_r = __pyx_v_ret; - goto __pyx_L0; - - /* "talib/abstract.pyx":233 - * input_arrays = property(get_input_arrays, set_input_arrays) - * - * def get_parameters(self): # <<<<<<<<<<<<<< - * """ - * Returns the function's optional parameters and their default values. - */ - - /* function exit code */ - __pyx_L1_error:; - __Pyx_XDECREF(__pyx_t_1); - __Pyx_XDECREF(__pyx_t_2); - __Pyx_XDECREF(__pyx_t_3); - __Pyx_XDECREF(__pyx_t_6); - __Pyx_XDECREF(__pyx_t_7); - __Pyx_AddTraceback("talib.abstract.Function.get_parameters", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF(__pyx_v_ret); - __Pyx_XDECREF(__pyx_v_opt_input); - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "talib/abstract.pyx":242 - * return ret - * - * def set_parameters(self, parameters): # <<<<<<<<<<<<<< - * """ - * Sets the function parameter values. - */ - -/* Python wrapper */ -static PyObject *__pyx_pw_5talib_8abstract_8Function_21set_parameters(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_8abstract_8Function_20set_parameters[] = "\n Sets the function parameter values.\n "; -static PyMethodDef __pyx_mdef_5talib_8abstract_8Function_21set_parameters = {"set_parameters", (PyCFunction)__pyx_pw_5talib_8abstract_8Function_21set_parameters, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8abstract_8Function_20set_parameters}; -static PyObject *__pyx_pw_5talib_8abstract_8Function_21set_parameters(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { - PyObject *__pyx_v_self = 0; - PyObject *__pyx_v_parameters = 0; - int __pyx_lineno = 0; - const char *__pyx_filename = NULL; - int __pyx_clineno = 0; - PyObject *__pyx_r = 0; - __Pyx_RefNannyDeclarations - __Pyx_RefNannySetupContext("set_parameters (wrapper)", 0); - { - static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_self,&__pyx_n_s_parameters,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_self)) != 0)) kw_args--; - else goto __pyx_L5_argtuple_error; - case 1: - if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_parameters)) != 0)) kw_args--; - else { - __Pyx_RaiseArgtupleInvalid("set_parameters", 1, 2, 2, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 242; __pyx_clineno = __LINE__; goto __pyx_L3_error;} - } - } - if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "set_parameters") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 242; __pyx_clineno = __LINE__; goto __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_self = values[0]; - __pyx_v_parameters = values[1]; - } - goto __pyx_L4_argument_unpacking_done; - __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("set_parameters", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 242; __pyx_clineno = __LINE__; goto __pyx_L3_error;} - __pyx_L3_error:; - __Pyx_AddTraceback("talib.abstract.Function.set_parameters", __pyx_clineno, __pyx_lineno, __pyx_filename); - __Pyx_RefNannyFinishContext(); - return NULL; - __pyx_L4_argument_unpacking_done:; - __pyx_r = __pyx_pf_5talib_8abstract_8Function_20set_parameters(__pyx_self, __pyx_v_self, __pyx_v_parameters); - - /* function exit code */ - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -static PyObject *__pyx_pf_5talib_8abstract_8Function_20set_parameters(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_parameters) { - PyObject *__pyx_v_param = NULL; - PyObject *__pyx_v_value = NULL; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - PyObject *__pyx_t_1 = NULL; - PyObject *__pyx_t_2 = NULL; - PyObject *__pyx_t_3 = NULL; - Py_ssize_t __pyx_t_4; - PyObject *(*__pyx_t_5)(PyObject *); - PyObject *__pyx_t_6 = NULL; - PyObject *__pyx_t_7 = NULL; - PyObject *(*__pyx_t_8)(PyObject *); - int __pyx_lineno = 0; - const char *__pyx_filename = NULL; - int __pyx_clineno = 0; - __Pyx_RefNannySetupContext("set_parameters", 0); - - /* "talib/abstract.pyx":246 - * Sets the function parameter values. - * """ - * for param, value in parameters.items(): # <<<<<<<<<<<<<< - * self.__opt_inputs[param]['value'] = value - * self.__outputs_valid = False - */ - __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_parameters, __pyx_n_s_items); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 246; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __pyx_t_3 = NULL; - if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_2))) { - __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); - if (likely(__pyx_t_3)) { - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); - __Pyx_INCREF(__pyx_t_3); - __Pyx_INCREF(function); - __Pyx_DECREF_SET(__pyx_t_2, function); - } - } - if (__pyx_t_3) { - __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 246; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - } else { - __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 246; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - } - __Pyx_GOTREF(__pyx_t_1); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - if (likely(PyList_CheckExact(__pyx_t_1)) || PyTuple_CheckExact(__pyx_t_1)) { - __pyx_t_2 = __pyx_t_1; __Pyx_INCREF(__pyx_t_2); __pyx_t_4 = 0; - __pyx_t_5 = NULL; - } else { - __pyx_t_4 = -1; __pyx_t_2 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 246; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __pyx_t_5 = Py_TYPE(__pyx_t_2)->tp_iternext; if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 246; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - } - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - for (;;) { - if (likely(!__pyx_t_5)) { - if (likely(PyList_CheckExact(__pyx_t_2))) { - if (__pyx_t_4 >= PyList_GET_SIZE(__pyx_t_2)) break; - #if CYTHON_COMPILING_IN_CPYTHON - __pyx_t_1 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_4); __Pyx_INCREF(__pyx_t_1); __pyx_t_4++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 246; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - #else - __pyx_t_1 = PySequence_ITEM(__pyx_t_2, __pyx_t_4); __pyx_t_4++; if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 246; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - #endif - } else { - if (__pyx_t_4 >= PyTuple_GET_SIZE(__pyx_t_2)) break; - #if CYTHON_COMPILING_IN_CPYTHON - __pyx_t_1 = PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_4); __Pyx_INCREF(__pyx_t_1); __pyx_t_4++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 246; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - #else - __pyx_t_1 = PySequence_ITEM(__pyx_t_2, __pyx_t_4); __pyx_t_4++; if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 246; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - #endif - } - } else { - __pyx_t_1 = __pyx_t_5(__pyx_t_2); - if (unlikely(!__pyx_t_1)) { - PyObject* exc_type = PyErr_Occurred(); - if (exc_type) { - if (likely(exc_type == PyExc_StopIteration || PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); - else {__pyx_filename = __pyx_f[0]; __pyx_lineno = 246; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - } - break; - } - __Pyx_GOTREF(__pyx_t_1); - } - if ((likely(PyTuple_CheckExact(__pyx_t_1))) || (PyList_CheckExact(__pyx_t_1))) { - PyObject* sequence = __pyx_t_1; - #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_filename = __pyx_f[0]; __pyx_lineno = 246; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - } - #if CYTHON_COMPILING_IN_CPYTHON - if (likely(PyTuple_CheckExact(sequence))) { - __pyx_t_3 = PyTuple_GET_ITEM(sequence, 0); - __pyx_t_6 = PyTuple_GET_ITEM(sequence, 1); - } else { - __pyx_t_3 = PyList_GET_ITEM(sequence, 0); - __pyx_t_6 = PyList_GET_ITEM(sequence, 1); - } - __Pyx_INCREF(__pyx_t_3); - __Pyx_INCREF(__pyx_t_6); - #else - __pyx_t_3 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 246; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_3); - __pyx_t_6 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 246; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_6); - #endif - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - } else { - Py_ssize_t index = -1; - __pyx_t_7 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 246; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_7); - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __pyx_t_8 = Py_TYPE(__pyx_t_7)->tp_iternext; - index = 0; __pyx_t_3 = __pyx_t_8(__pyx_t_7); if (unlikely(!__pyx_t_3)) goto __pyx_L5_unpacking_failed; - __Pyx_GOTREF(__pyx_t_3); - index = 1; __pyx_t_6 = __pyx_t_8(__pyx_t_7); if (unlikely(!__pyx_t_6)) goto __pyx_L5_unpacking_failed; - __Pyx_GOTREF(__pyx_t_6); - if (__Pyx_IternextUnpackEndCheck(__pyx_t_8(__pyx_t_7), 2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 246; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __pyx_t_8 = NULL; - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - goto __pyx_L6_unpacking_done; - __pyx_L5_unpacking_failed:; - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - __pyx_t_8 = NULL; - if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index); - {__pyx_filename = __pyx_f[0]; __pyx_lineno = 246; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __pyx_L6_unpacking_done:; - } - __Pyx_XDECREF_SET(__pyx_v_param, __pyx_t_3); - __pyx_t_3 = 0; - __Pyx_XDECREF_SET(__pyx_v_value, __pyx_t_6); - __pyx_t_6 = 0; - - /* "talib/abstract.pyx":247 - * """ - * for param, value in parameters.items(): - * self.__opt_inputs[param]['value'] = value # <<<<<<<<<<<<<< - * self.__outputs_valid = False - * self.__info['parameters'] = self.parameters - */ - __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__opt_inputs); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 247; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - __pyx_t_6 = PyObject_GetItem(__pyx_t_1, __pyx_v_param); if (unlikely(__pyx_t_6 == NULL)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 247; __pyx_clineno = __LINE__; goto __pyx_L1_error;}; - __Pyx_GOTREF(__pyx_t_6); - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - if (unlikely(PyObject_SetItem(__pyx_t_6, __pyx_n_s_value, __pyx_v_value) < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 247; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - - /* "talib/abstract.pyx":246 - * Sets the function parameter values. - * """ - * for param, value in parameters.items(): # <<<<<<<<<<<<<< - * self.__opt_inputs[param]['value'] = value - * self.__outputs_valid = False - */ - } - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/abstract.pyx":248 - * for param, value in parameters.items(): - * self.__opt_inputs[param]['value'] = value - * self.__outputs_valid = False # <<<<<<<<<<<<<< - * self.__info['parameters'] = self.parameters - * - */ - if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_Function__outputs_valid, Py_False) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 248; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - - /* "talib/abstract.pyx":249 - * self.__opt_inputs[param]['value'] = value - * self.__outputs_valid = False - * self.__info['parameters'] = self.parameters # <<<<<<<<<<<<<< - * - * parameters = property(get_parameters, set_parameters) - */ - __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_parameters); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 249; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__info); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 249; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_6); - if (unlikely(PyObject_SetItem(__pyx_t_6, __pyx_n_s_parameters, __pyx_t_2) < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 249; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/abstract.pyx":242 - * return ret - * - * def set_parameters(self, parameters): # <<<<<<<<<<<<<< - * """ - * Sets the function parameter values. - */ - - /* function exit code */ - __pyx_r = Py_None; __Pyx_INCREF(Py_None); - goto __pyx_L0; - __pyx_L1_error:; - __Pyx_XDECREF(__pyx_t_1); - __Pyx_XDECREF(__pyx_t_2); - __Pyx_XDECREF(__pyx_t_3); - __Pyx_XDECREF(__pyx_t_6); - __Pyx_XDECREF(__pyx_t_7); - __Pyx_AddTraceback("talib.abstract.Function.set_parameters", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF(__pyx_v_param); - __Pyx_XDECREF(__pyx_v_value); - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "talib/abstract.pyx":253 - * parameters = property(get_parameters, set_parameters) - * - * def set_function_args(self, *args, **kwargs): # <<<<<<<<<<<<<< - * """ - * optionl args:[input_arrays,] [parameter_args,] [input_price_series_kwargs,] [parameter_kwargs] - */ - -/* Python wrapper */ -static PyObject *__pyx_pw_5talib_8abstract_8Function_23set_function_args(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_8abstract_8Function_22set_function_args[] = "\n optionl args:[input_arrays,] [parameter_args,] [input_price_series_kwargs,] [parameter_kwargs]\n "; -static PyMethodDef __pyx_mdef_5talib_8abstract_8Function_23set_function_args = {"set_function_args", (PyCFunction)__pyx_pw_5talib_8abstract_8Function_23set_function_args, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8abstract_8Function_22set_function_args}; -static PyObject *__pyx_pw_5talib_8abstract_8Function_23set_function_args(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { - PyObject *__pyx_v_self = 0; - PyObject *__pyx_v_args = 0; - PyObject *__pyx_v_kwargs = 0; - int __pyx_lineno = 0; - const char *__pyx_filename = NULL; - int __pyx_clineno = 0; - PyObject *__pyx_r = 0; - __Pyx_RefNannyDeclarations - __Pyx_RefNannySetupContext("set_function_args (wrapper)", 0); - __pyx_v_kwargs = PyDict_New(); if (unlikely(!__pyx_v_kwargs)) return NULL; - __Pyx_GOTREF(__pyx_v_kwargs); - if (PyTuple_GET_SIZE(__pyx_args) > 1) { - __pyx_v_args = PyTuple_GetSlice(__pyx_args, 1, PyTuple_GET_SIZE(__pyx_args)); - if (unlikely(!__pyx_v_args)) { - __Pyx_DECREF(__pyx_v_kwargs); __pyx_v_kwargs = 0; - __Pyx_RefNannyFinishContext(); - return NULL; - } - __Pyx_GOTREF(__pyx_v_args); - } else { - __pyx_v_args = __pyx_empty_tuple; __Pyx_INCREF(__pyx_empty_tuple); - } - { - static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_self,0}; - PyObject* values[1] = {0}; - if (unlikely(__pyx_kwds)) { - Py_ssize_t kw_args; - const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); - switch (pos_args) { - default: - case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); - case 0: break; - } - kw_args = PyDict_Size(__pyx_kwds); - switch (pos_args) { - case 0: - if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_self)) != 0)) kw_args--; - else goto __pyx_L5_argtuple_error; - } - if (unlikely(kw_args > 0)) { - const Py_ssize_t used_pos_args = (pos_args < 1) ? pos_args : 1; - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, __pyx_v_kwargs, values, used_pos_args, "set_function_args") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 253; __pyx_clineno = __LINE__; goto __pyx_L3_error;} - } - } else if (PyTuple_GET_SIZE(__pyx_args) < 1) { - goto __pyx_L5_argtuple_error; - } else { - values[0] = PyTuple_GET_ITEM(__pyx_args, 0); - } - __pyx_v_self = values[0]; - } - goto __pyx_L4_argument_unpacking_done; - __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("set_function_args", 0, 1, 1, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 253; __pyx_clineno = __LINE__; goto __pyx_L3_error;} - __pyx_L3_error:; - __Pyx_DECREF(__pyx_v_args); __pyx_v_args = 0; - __Pyx_DECREF(__pyx_v_kwargs); __pyx_v_kwargs = 0; - __Pyx_AddTraceback("talib.abstract.Function.set_function_args", __pyx_clineno, __pyx_lineno, __pyx_filename); - __Pyx_RefNannyFinishContext(); - return NULL; - __pyx_L4_argument_unpacking_done:; - __pyx_r = __pyx_pf_5talib_8abstract_8Function_22set_function_args(__pyx_self, __pyx_v_self, __pyx_v_args, __pyx_v_kwargs); - - /* function exit code */ - __Pyx_XDECREF(__pyx_v_args); - __Pyx_XDECREF(__pyx_v_kwargs); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -static PyObject *__pyx_pf_5talib_8abstract_8Function_22set_function_args(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_args, PyObject *__pyx_v_kwargs) { - int __pyx_v_update_info; - PyObject *__pyx_v_key = NULL; - PyObject *__pyx_v_skip_first = NULL; - PyObject *__pyx_v_i = NULL; - PyObject *__pyx_v_param_name = NULL; - PyObject *__pyx_v_value = NULL; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - PyObject *__pyx_t_1 = NULL; - Py_ssize_t __pyx_t_2; - Py_ssize_t __pyx_t_3; - int __pyx_t_4; - PyObject *__pyx_t_5 = NULL; - int __pyx_t_6; - int __pyx_t_7; - int __pyx_t_8; - PyObject *__pyx_t_9 = NULL; - PyObject *__pyx_t_10 = NULL; - PyObject *__pyx_t_11 = NULL; - PyObject *(*__pyx_t_12)(PyObject *); - int __pyx_lineno = 0; - const char *__pyx_filename = NULL; - int __pyx_clineno = 0; - __Pyx_RefNannySetupContext("set_function_args", 0); - - /* "talib/abstract.pyx":257 - * optionl args:[input_arrays,] [parameter_args,] [input_price_series_kwargs,] [parameter_kwargs] - * """ - * update_info = False # <<<<<<<<<<<<<< - * - * for key in kwargs: - */ - __pyx_v_update_info = 0; - - /* "talib/abstract.pyx":259 - * update_info = False - * - * for key in kwargs: # <<<<<<<<<<<<<< - * if key in self.__opt_inputs: - * self.__opt_inputs[key]['value'] = kwargs[key] - */ - __pyx_t_2 = 0; - __pyx_t_5 = __Pyx_dict_iterator(__pyx_v_kwargs, 1, ((PyObject *)NULL), (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 259; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_5); - __Pyx_XDECREF(__pyx_t_1); - __pyx_t_1 = __pyx_t_5; - __pyx_t_5 = 0; - while (1) { - __pyx_t_6 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, &__pyx_t_5, NULL, NULL, __pyx_t_4); - if (unlikely(__pyx_t_6 == 0)) break; - if (unlikely(__pyx_t_6 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 259; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_5); - __Pyx_XDECREF_SET(__pyx_v_key, __pyx_t_5); - __pyx_t_5 = 0; - - /* "talib/abstract.pyx":260 - * - * for key in kwargs: - * if key in self.__opt_inputs: # <<<<<<<<<<<<<< - * self.__opt_inputs[key]['value'] = kwargs[key] - * update_info = True - */ - __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__opt_inputs); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 260; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_5); - __pyx_t_7 = (__Pyx_PySequence_ContainsTF(__pyx_v_key, __pyx_t_5, Py_EQ)); if (unlikely(__pyx_t_7 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 260; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - __pyx_t_8 = (__pyx_t_7 != 0); - if (__pyx_t_8) { - - /* "talib/abstract.pyx":261 - * for key in kwargs: - * if key in self.__opt_inputs: - * self.__opt_inputs[key]['value'] = kwargs[key] # <<<<<<<<<<<<<< - * update_info = True - * elif key in self.__input_names: - */ - __pyx_t_5 = __Pyx_PyDict_GetItem(__pyx_v_kwargs, __pyx_v_key); if (unlikely(__pyx_t_5 == NULL)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 261; __pyx_clineno = __LINE__; goto __pyx_L1_error;}; - __Pyx_GOTREF(__pyx_t_5); - __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__opt_inputs); if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 261; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_9); - __pyx_t_10 = PyObject_GetItem(__pyx_t_9, __pyx_v_key); if (unlikely(__pyx_t_10 == NULL)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 261; __pyx_clineno = __LINE__; goto __pyx_L1_error;}; - __Pyx_GOTREF(__pyx_t_10); - __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - if (unlikely(PyObject_SetItem(__pyx_t_10, __pyx_n_s_value, __pyx_t_5) < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 261; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; - __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - - /* "talib/abstract.pyx":262 - * if key in self.__opt_inputs: - * self.__opt_inputs[key]['value'] = kwargs[key] - * update_info = True # <<<<<<<<<<<<<< - * elif key in self.__input_names: - * self.__input_names[key]['price_series'] = kwargs[key] - */ - __pyx_v_update_info = 1; - - /* "talib/abstract.pyx":260 - * - * for key in kwargs: - * if key in self.__opt_inputs: # <<<<<<<<<<<<<< - * self.__opt_inputs[key]['value'] = kwargs[key] - * update_info = True - */ - goto __pyx_L5; - } - - /* "talib/abstract.pyx":263 - * self.__opt_inputs[key]['value'] = kwargs[key] - * update_info = True - * elif key in self.__input_names: # <<<<<<<<<<<<<< - * self.__input_names[key]['price_series'] = kwargs[key] - * self.__info['input_names'][key] = kwargs[key] - */ - __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__input_names); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 263; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_5); - __pyx_t_8 = (__Pyx_PySequence_ContainsTF(__pyx_v_key, __pyx_t_5, Py_EQ)); if (unlikely(__pyx_t_8 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 263; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - __pyx_t_7 = (__pyx_t_8 != 0); - if (__pyx_t_7) { - - /* "talib/abstract.pyx":264 - * update_info = True - * elif key in self.__input_names: - * self.__input_names[key]['price_series'] = kwargs[key] # <<<<<<<<<<<<<< - * self.__info['input_names'][key] = kwargs[key] - * - */ - __pyx_t_5 = __Pyx_PyDict_GetItem(__pyx_v_kwargs, __pyx_v_key); if (unlikely(__pyx_t_5 == NULL)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 264; __pyx_clineno = __LINE__; goto __pyx_L1_error;}; - __Pyx_GOTREF(__pyx_t_5); - __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__input_names); if (unlikely(!__pyx_t_10)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 264; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_10); - __pyx_t_9 = PyObject_GetItem(__pyx_t_10, __pyx_v_key); if (unlikely(__pyx_t_9 == NULL)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 264; __pyx_clineno = __LINE__; goto __pyx_L1_error;}; - __Pyx_GOTREF(__pyx_t_9); - __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; - if (unlikely(PyObject_SetItem(__pyx_t_9, __pyx_n_s_price_series, __pyx_t_5) < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 264; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - - /* "talib/abstract.pyx":265 - * elif key in self.__input_names: - * self.__input_names[key]['price_series'] = kwargs[key] - * self.__info['input_names'][key] = kwargs[key] # <<<<<<<<<<<<<< - * - * if args: - */ - __pyx_t_5 = __Pyx_PyDict_GetItem(__pyx_v_kwargs, __pyx_v_key); if (unlikely(__pyx_t_5 == NULL)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 265; __pyx_clineno = __LINE__; goto __pyx_L1_error;}; - __Pyx_GOTREF(__pyx_t_5); - __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__info); if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 265; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_9); - __pyx_t_10 = PyObject_GetItem(__pyx_t_9, __pyx_n_s_input_names); if (unlikely(__pyx_t_10 == NULL)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 265; __pyx_clineno = __LINE__; goto __pyx_L1_error;}; - __Pyx_GOTREF(__pyx_t_10); - __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - if (unlikely(PyObject_SetItem(__pyx_t_10, __pyx_v_key, __pyx_t_5) < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 265; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; - __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - - /* "talib/abstract.pyx":263 - * self.__opt_inputs[key]['value'] = kwargs[key] - * update_info = True - * elif key in self.__input_names: # <<<<<<<<<<<<<< - * self.__input_names[key]['price_series'] = kwargs[key] - * self.__info['input_names'][key] = kwargs[key] - */ - } - __pyx_L5:; - } - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - - /* "talib/abstract.pyx":267 - * self.__info['input_names'][key] = kwargs[key] - * - * if args: # <<<<<<<<<<<<<< - * skip_first = 0 - * if self.set_input_arrays(args[0]): - */ - __pyx_t_7 = (__pyx_v_args != Py_None) && (PyTuple_GET_SIZE(__pyx_v_args) != 0); - if (__pyx_t_7) { - - /* "talib/abstract.pyx":268 - * - * if args: - * skip_first = 0 # <<<<<<<<<<<<<< - * if self.set_input_arrays(args[0]): - * skip_first = 1 - */ - __Pyx_INCREF(__pyx_int_0); - __pyx_v_skip_first = __pyx_int_0; - - /* "talib/abstract.pyx":269 - * if args: - * skip_first = 0 - * if self.set_input_arrays(args[0]): # <<<<<<<<<<<<<< - * skip_first = 1 - * if len(args) > skip_first: - */ - __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_set_input_arrays); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 269; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_5); - __pyx_t_10 = __Pyx_GetItemInt_Tuple(__pyx_v_args, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(__pyx_t_10 == NULL)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 269; __pyx_clineno = __LINE__; goto __pyx_L1_error;}; - __Pyx_GOTREF(__pyx_t_10); - __pyx_t_9 = NULL; - if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_5))) { - __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_5); - if (likely(__pyx_t_9)) { - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); - __Pyx_INCREF(__pyx_t_9); - __Pyx_INCREF(function); - __Pyx_DECREF_SET(__pyx_t_5, function); - } - } - if (!__pyx_t_9) { - __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_t_10); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 269; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; - __Pyx_GOTREF(__pyx_t_1); - } else { - __pyx_t_11 = PyTuple_New(1+1); if (unlikely(!__pyx_t_11)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 269; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_11); - __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_11, 0, __pyx_t_9); __pyx_t_9 = NULL; - __Pyx_GIVEREF(__pyx_t_10); - PyTuple_SET_ITEM(__pyx_t_11, 0+1, __pyx_t_10); - __pyx_t_10 = 0; - __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_11, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 269; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; - } - __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_7 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 269; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - if (__pyx_t_7) { - - /* "talib/abstract.pyx":270 - * skip_first = 0 - * if self.set_input_arrays(args[0]): - * skip_first = 1 # <<<<<<<<<<<<<< - * if len(args) > skip_first: - * for i, param_name in enumerate(self.__opt_inputs): - */ - __Pyx_INCREF(__pyx_int_1); - __Pyx_DECREF_SET(__pyx_v_skip_first, __pyx_int_1); - - /* "talib/abstract.pyx":269 - * if args: - * skip_first = 0 - * if self.set_input_arrays(args[0]): # <<<<<<<<<<<<<< - * skip_first = 1 - * if len(args) > skip_first: - */ - } - - /* "talib/abstract.pyx":271 - * if self.set_input_arrays(args[0]): - * skip_first = 1 - * if len(args) > skip_first: # <<<<<<<<<<<<<< - * for i, param_name in enumerate(self.__opt_inputs): - * i += skip_first - */ - __pyx_t_3 = PyTuple_GET_SIZE(__pyx_v_args); if (unlikely(__pyx_t_3 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 271; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __pyx_t_1 = PyInt_FromSsize_t(__pyx_t_3); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 271; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - __pyx_t_5 = PyObject_RichCompare(__pyx_t_1, __pyx_v_skip_first, Py_GT); __Pyx_XGOTREF(__pyx_t_5); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 271; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely(__pyx_t_7 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 271; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - if (__pyx_t_7) { - - /* "talib/abstract.pyx":272 - * skip_first = 1 - * if len(args) > skip_first: - * for i, param_name in enumerate(self.__opt_inputs): # <<<<<<<<<<<<<< - * i += skip_first - * if i < len(args): - */ - __Pyx_INCREF(__pyx_int_0); - __pyx_t_5 = __pyx_int_0; - __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__opt_inputs); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 272; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - if (likely(PyList_CheckExact(__pyx_t_1)) || PyTuple_CheckExact(__pyx_t_1)) { - __pyx_t_11 = __pyx_t_1; __Pyx_INCREF(__pyx_t_11); __pyx_t_3 = 0; - __pyx_t_12 = NULL; - } else { - __pyx_t_3 = -1; __pyx_t_11 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_11)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 272; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_11); - __pyx_t_12 = Py_TYPE(__pyx_t_11)->tp_iternext; if (unlikely(!__pyx_t_12)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 272; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - } - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - for (;;) { - if (likely(!__pyx_t_12)) { - if (likely(PyList_CheckExact(__pyx_t_11))) { - if (__pyx_t_3 >= PyList_GET_SIZE(__pyx_t_11)) break; - #if CYTHON_COMPILING_IN_CPYTHON - __pyx_t_1 = PyList_GET_ITEM(__pyx_t_11, __pyx_t_3); __Pyx_INCREF(__pyx_t_1); __pyx_t_3++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 272; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - #else - __pyx_t_1 = PySequence_ITEM(__pyx_t_11, __pyx_t_3); __pyx_t_3++; if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 272; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - #endif - } else { - if (__pyx_t_3 >= PyTuple_GET_SIZE(__pyx_t_11)) break; - #if CYTHON_COMPILING_IN_CPYTHON - __pyx_t_1 = PyTuple_GET_ITEM(__pyx_t_11, __pyx_t_3); __Pyx_INCREF(__pyx_t_1); __pyx_t_3++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 272; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - #else - __pyx_t_1 = PySequence_ITEM(__pyx_t_11, __pyx_t_3); __pyx_t_3++; if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 272; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - #endif - } - } else { - __pyx_t_1 = __pyx_t_12(__pyx_t_11); - if (unlikely(!__pyx_t_1)) { - PyObject* exc_type = PyErr_Occurred(); - if (exc_type) { - if (likely(exc_type == PyExc_StopIteration || PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); - else {__pyx_filename = __pyx_f[0]; __pyx_lineno = 272; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - } - break; - } - __Pyx_GOTREF(__pyx_t_1); - } - __Pyx_XDECREF_SET(__pyx_v_param_name, __pyx_t_1); - __pyx_t_1 = 0; - __Pyx_INCREF(__pyx_t_5); - __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_5); - __pyx_t_1 = __Pyx_PyInt_AddObjC(__pyx_t_5, __pyx_int_1, 1, 0); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 272; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - __Pyx_DECREF(__pyx_t_5); - __pyx_t_5 = __pyx_t_1; - __pyx_t_1 = 0; - - /* "talib/abstract.pyx":273 - * if len(args) > skip_first: - * for i, param_name in enumerate(self.__opt_inputs): - * i += skip_first # <<<<<<<<<<<<<< - * if i < len(args): - * value = args[i] - */ - __pyx_t_1 = PyNumber_InPlaceAdd(__pyx_v_i, __pyx_v_skip_first); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 273; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - __Pyx_DECREF_SET(__pyx_v_i, __pyx_t_1); - __pyx_t_1 = 0; - - /* "talib/abstract.pyx":274 - * for i, param_name in enumerate(self.__opt_inputs): - * i += skip_first - * if i < len(args): # <<<<<<<<<<<<<< - * value = args[i] - * self.__opt_inputs[param_name]['value'] = value - */ - __pyx_t_2 = PyTuple_GET_SIZE(__pyx_v_args); if (unlikely(__pyx_t_2 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 274; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __pyx_t_1 = PyInt_FromSsize_t(__pyx_t_2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 274; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - __pyx_t_10 = PyObject_RichCompare(__pyx_v_i, __pyx_t_1, Py_LT); __Pyx_XGOTREF(__pyx_t_10); if (unlikely(!__pyx_t_10)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 274; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_10); if (unlikely(__pyx_t_7 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 274; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; - if (__pyx_t_7) { - - /* "talib/abstract.pyx":275 - * i += skip_first - * if i < len(args): - * value = args[i] # <<<<<<<<<<<<<< - * self.__opt_inputs[param_name]['value'] = value - * update_info = True - */ - __pyx_t_10 = PyObject_GetItem(__pyx_v_args, __pyx_v_i); if (unlikely(__pyx_t_10 == NULL)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 275; __pyx_clineno = __LINE__; goto __pyx_L1_error;}; - __Pyx_GOTREF(__pyx_t_10); - __Pyx_XDECREF_SET(__pyx_v_value, __pyx_t_10); - __pyx_t_10 = 0; - - /* "talib/abstract.pyx":276 - * if i < len(args): - * value = args[i] - * self.__opt_inputs[param_name]['value'] = value # <<<<<<<<<<<<<< - * update_info = True - * - */ - __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__opt_inputs); if (unlikely(!__pyx_t_10)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 276; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_10); - __pyx_t_1 = PyObject_GetItem(__pyx_t_10, __pyx_v_param_name); if (unlikely(__pyx_t_1 == NULL)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 276; __pyx_clineno = __LINE__; goto __pyx_L1_error;}; - __Pyx_GOTREF(__pyx_t_1); - __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; - if (unlikely(PyObject_SetItem(__pyx_t_1, __pyx_n_s_value, __pyx_v_value) < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 276; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - - /* "talib/abstract.pyx":277 - * value = args[i] - * self.__opt_inputs[param_name]['value'] = value - * update_info = True # <<<<<<<<<<<<<< - * - * if args or kwargs: - */ - __pyx_v_update_info = 1; - - /* "talib/abstract.pyx":274 - * for i, param_name in enumerate(self.__opt_inputs): - * i += skip_first - * if i < len(args): # <<<<<<<<<<<<<< - * value = args[i] - * self.__opt_inputs[param_name]['value'] = value - */ - } - - /* "talib/abstract.pyx":272 - * skip_first = 1 - * if len(args) > skip_first: - * for i, param_name in enumerate(self.__opt_inputs): # <<<<<<<<<<<<<< - * i += skip_first - * if i < len(args): - */ - } - __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; - __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - - /* "talib/abstract.pyx":271 - * if self.set_input_arrays(args[0]): - * skip_first = 1 - * if len(args) > skip_first: # <<<<<<<<<<<<<< - * for i, param_name in enumerate(self.__opt_inputs): - * i += skip_first - */ - } - - /* "talib/abstract.pyx":267 - * self.__info['input_names'][key] = kwargs[key] - * - * if args: # <<<<<<<<<<<<<< - * skip_first = 0 - * if self.set_input_arrays(args[0]): - */ - } - - /* "talib/abstract.pyx":279 - * update_info = True - * - * if args or kwargs: # <<<<<<<<<<<<<< - * if update_info: - * self.__info['parameters'] = self.parameters - */ - __pyx_t_8 = (__pyx_v_args != Py_None) && (PyTuple_GET_SIZE(__pyx_v_args) != 0); - if (!__pyx_t_8) { - } else { - __pyx_t_7 = __pyx_t_8; - goto __pyx_L13_bool_binop_done; - } - __pyx_t_8 = __Pyx_PyObject_IsTrue(__pyx_v_kwargs); if (unlikely(__pyx_t_8 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 279; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __pyx_t_7 = __pyx_t_8; - __pyx_L13_bool_binop_done:; - if (__pyx_t_7) { - - /* "talib/abstract.pyx":280 - * - * if args or kwargs: - * if update_info: # <<<<<<<<<<<<<< - * self.__info['parameters'] = self.parameters - * self.__outputs_valid = False - */ - __pyx_t_7 = (__pyx_v_update_info != 0); - if (__pyx_t_7) { - - /* "talib/abstract.pyx":281 - * if args or kwargs: - * if update_info: - * self.__info['parameters'] = self.parameters # <<<<<<<<<<<<<< - * self.__outputs_valid = False - * - */ - __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_parameters); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 281; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_5); - __pyx_t_11 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__info); if (unlikely(!__pyx_t_11)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 281; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_11); - if (unlikely(PyObject_SetItem(__pyx_t_11, __pyx_n_s_parameters, __pyx_t_5) < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 281; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; - __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - - /* "talib/abstract.pyx":280 - * - * if args or kwargs: - * if update_info: # <<<<<<<<<<<<<< - * self.__info['parameters'] = self.parameters - * self.__outputs_valid = False - */ - } - - /* "talib/abstract.pyx":282 - * if update_info: - * self.__info['parameters'] = self.parameters - * self.__outputs_valid = False # <<<<<<<<<<<<<< - * - * @property - */ - if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_Function__outputs_valid, Py_False) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 282; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - - /* "talib/abstract.pyx":279 - * update_info = True - * - * if args or kwargs: # <<<<<<<<<<<<<< - * if update_info: - * self.__info['parameters'] = self.parameters - */ - } - - /* "talib/abstract.pyx":253 - * parameters = property(get_parameters, set_parameters) - * - * def set_function_args(self, *args, **kwargs): # <<<<<<<<<<<<<< - * """ - * optionl args:[input_arrays,] [parameter_args,] [input_price_series_kwargs,] [parameter_kwargs] - */ - - /* function exit code */ - __pyx_r = Py_None; __Pyx_INCREF(Py_None); - goto __pyx_L0; - __pyx_L1_error:; - __Pyx_XDECREF(__pyx_t_1); - __Pyx_XDECREF(__pyx_t_5); - __Pyx_XDECREF(__pyx_t_9); - __Pyx_XDECREF(__pyx_t_10); - __Pyx_XDECREF(__pyx_t_11); - __Pyx_AddTraceback("talib.abstract.Function.set_function_args", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF(__pyx_v_key); - __Pyx_XDECREF(__pyx_v_skip_first); - __Pyx_XDECREF(__pyx_v_i); - __Pyx_XDECREF(__pyx_v_param_name); - __Pyx_XDECREF(__pyx_v_value); - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "talib/abstract.pyx":285 - * - * @property - * def lookback(self): # <<<<<<<<<<<<<< - * """ - * Returns the lookback window size for the function with the parameter - */ - -/* Python wrapper */ -static PyObject *__pyx_pw_5talib_8abstract_8Function_25lookback(PyObject *__pyx_self, PyObject *__pyx_v_self); /*proto*/ -static char __pyx_doc_5talib_8abstract_8Function_24lookback[] = "\n Returns the lookback window size for the function with the parameter\n values that are currently set.\n "; -static PyMethodDef __pyx_mdef_5talib_8abstract_8Function_25lookback = {"lookback", (PyCFunction)__pyx_pw_5talib_8abstract_8Function_25lookback, METH_O, __pyx_doc_5talib_8abstract_8Function_24lookback}; -static PyObject *__pyx_pw_5talib_8abstract_8Function_25lookback(PyObject *__pyx_self, PyObject *__pyx_v_self) { - PyObject *__pyx_r = 0; - __Pyx_RefNannyDeclarations - __Pyx_RefNannySetupContext("lookback (wrapper)", 0); - __pyx_r = __pyx_pf_5talib_8abstract_8Function_24lookback(__pyx_self, ((PyObject *)__pyx_v_self)); - - /* function exit code */ - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -static PyObject *__pyx_pf_5talib_8abstract_8Function_24lookback(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self) { - TA_ParamHolder *__pyx_v_holder; - PyObject *__pyx_v_i = NULL; - PyObject *__pyx_v_opt_input = NULL; - PyObject *__pyx_v_value = NULL; - PyObject *__pyx_v_type_ = NULL; - int __pyx_v_lookback; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - PyObject *__pyx_t_1 = NULL; - char *__pyx_t_2; - PyObject *__pyx_t_3 = NULL; - PyObject *__pyx_t_4 = NULL; - Py_ssize_t __pyx_t_5; - PyObject *(*__pyx_t_6)(PyObject *); - PyObject *__pyx_t_7 = NULL; - PyObject *__pyx_t_8 = NULL; - PyObject *__pyx_t_9 = NULL; - int __pyx_t_10; - int __pyx_t_11; - int __pyx_t_12; - int __pyx_t_13; - int __pyx_lineno = 0; - const char *__pyx_filename = NULL; - int __pyx_clineno = 0; - __Pyx_RefNannySetupContext("lookback", 0); - - /* "talib/abstract.pyx":291 - * """ - * cdef lib.TA_ParamHolder *holder - * holder = __ta_paramHolderAlloc(self.__name) # <<<<<<<<<<<<<< - * for i, opt_input in enumerate(self.__opt_inputs): - * value = self.__get_opt_input_value(opt_input) - */ - __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__name); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 291; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - __pyx_t_2 = __Pyx_PyObject_AsString(__pyx_t_1); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 291; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __pyx_v_holder = __pyx_f_5talib_8abstract___ta_paramHolderAlloc(__pyx_t_2); - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - - /* "talib/abstract.pyx":292 - * cdef lib.TA_ParamHolder *holder - * holder = __ta_paramHolderAlloc(self.__name) - * for i, opt_input in enumerate(self.__opt_inputs): # <<<<<<<<<<<<<< - * value = self.__get_opt_input_value(opt_input) - * type_ = self.__opt_inputs[opt_input]['type'] - */ - __Pyx_INCREF(__pyx_int_0); - __pyx_t_1 = __pyx_int_0; - __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__opt_inputs); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 292; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_3); - if (likely(PyList_CheckExact(__pyx_t_3)) || PyTuple_CheckExact(__pyx_t_3)) { - __pyx_t_4 = __pyx_t_3; __Pyx_INCREF(__pyx_t_4); __pyx_t_5 = 0; - __pyx_t_6 = NULL; - } else { - __pyx_t_5 = -1; __pyx_t_4 = PyObject_GetIter(__pyx_t_3); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 292; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_4); - __pyx_t_6 = Py_TYPE(__pyx_t_4)->tp_iternext; if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 292; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - } - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - for (;;) { - if (likely(!__pyx_t_6)) { - if (likely(PyList_CheckExact(__pyx_t_4))) { - if (__pyx_t_5 >= PyList_GET_SIZE(__pyx_t_4)) break; - #if CYTHON_COMPILING_IN_CPYTHON - __pyx_t_3 = PyList_GET_ITEM(__pyx_t_4, __pyx_t_5); __Pyx_INCREF(__pyx_t_3); __pyx_t_5++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 292; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - #else - __pyx_t_3 = PySequence_ITEM(__pyx_t_4, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 292; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_3); - #endif - } else { - if (__pyx_t_5 >= PyTuple_GET_SIZE(__pyx_t_4)) break; - #if CYTHON_COMPILING_IN_CPYTHON - __pyx_t_3 = PyTuple_GET_ITEM(__pyx_t_4, __pyx_t_5); __Pyx_INCREF(__pyx_t_3); __pyx_t_5++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 292; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - #else - __pyx_t_3 = PySequence_ITEM(__pyx_t_4, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 292; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_3); - #endif - } - } else { - __pyx_t_3 = __pyx_t_6(__pyx_t_4); - if (unlikely(!__pyx_t_3)) { - PyObject* exc_type = PyErr_Occurred(); - if (exc_type) { - if (likely(exc_type == PyExc_StopIteration || PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); - else {__pyx_filename = __pyx_f[0]; __pyx_lineno = 292; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - } - break; - } - __Pyx_GOTREF(__pyx_t_3); - } - __Pyx_XDECREF_SET(__pyx_v_opt_input, __pyx_t_3); - __pyx_t_3 = 0; - __Pyx_INCREF(__pyx_t_1); - __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_1); - __pyx_t_3 = __Pyx_PyInt_AddObjC(__pyx_t_1, __pyx_int_1, 1, 0); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 292; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_3); - __Pyx_DECREF(__pyx_t_1); - __pyx_t_1 = __pyx_t_3; - __pyx_t_3 = 0; - - /* "talib/abstract.pyx":293 - * holder = __ta_paramHolderAlloc(self.__name) - * for i, opt_input in enumerate(self.__opt_inputs): - * value = self.__get_opt_input_value(opt_input) # <<<<<<<<<<<<<< - * type_ = self.__opt_inputs[opt_input]['type'] - * if type_ == lib.TA_OptInput_RealRange or type_ == lib.TA_OptInput_RealList: - */ - __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__get_opt_input_value); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 293; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_7); - __pyx_t_8 = NULL; - if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_7))) { - __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_7); - if (likely(__pyx_t_8)) { - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); - __Pyx_INCREF(__pyx_t_8); - __Pyx_INCREF(function); - __Pyx_DECREF_SET(__pyx_t_7, function); - } - } - if (!__pyx_t_8) { - __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_7, __pyx_v_opt_input); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 293; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_3); - } else { - __pyx_t_9 = PyTuple_New(1+1); if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 293; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_9); - __Pyx_GIVEREF(__pyx_t_8); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_8); __pyx_t_8 = NULL; - __Pyx_INCREF(__pyx_v_opt_input); - __Pyx_GIVEREF(__pyx_v_opt_input); - PyTuple_SET_ITEM(__pyx_t_9, 0+1, __pyx_v_opt_input); - __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_t_9, NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 293; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_3); - __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - } - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - __Pyx_XDECREF_SET(__pyx_v_value, __pyx_t_3); - __pyx_t_3 = 0; - - /* "talib/abstract.pyx":294 - * for i, opt_input in enumerate(self.__opt_inputs): - * value = self.__get_opt_input_value(opt_input) - * type_ = self.__opt_inputs[opt_input]['type'] # <<<<<<<<<<<<<< - * if type_ == lib.TA_OptInput_RealRange or type_ == lib.TA_OptInput_RealList: - * __ta_setOptInputParamReal(holder, i, value) - */ - __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__opt_inputs); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 294; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_3); - __pyx_t_7 = PyObject_GetItem(__pyx_t_3, __pyx_v_opt_input); if (unlikely(__pyx_t_7 == NULL)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 294; __pyx_clineno = __LINE__; goto __pyx_L1_error;}; - __Pyx_GOTREF(__pyx_t_7); - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __pyx_t_3 = PyObject_GetItem(__pyx_t_7, __pyx_n_s_type); if (unlikely(__pyx_t_3 == NULL)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 294; __pyx_clineno = __LINE__; goto __pyx_L1_error;}; - __Pyx_GOTREF(__pyx_t_3); - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - __Pyx_XDECREF_SET(__pyx_v_type_, __pyx_t_3); - __pyx_t_3 = 0; - - /* "talib/abstract.pyx":295 - * value = self.__get_opt_input_value(opt_input) - * type_ = self.__opt_inputs[opt_input]['type'] - * if type_ == lib.TA_OptInput_RealRange or type_ == lib.TA_OptInput_RealList: # <<<<<<<<<<<<<< - * __ta_setOptInputParamReal(holder, i, value) - * elif type_ == lib.TA_OptInput_IntegerRange or type_ == lib.TA_OptInput_IntegerList: - */ - __pyx_t_3 = __Pyx_PyInt_From_TA_OptInputParameterType(TA_OptInput_RealRange); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 295; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_3); - __pyx_t_7 = PyObject_RichCompare(__pyx_v_type_, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_7); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 295; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __pyx_t_11 = __Pyx_PyObject_IsTrue(__pyx_t_7); if (unlikely(__pyx_t_11 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 295; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - if (!__pyx_t_11) { - } else { - __pyx_t_10 = __pyx_t_11; - goto __pyx_L6_bool_binop_done; - } - __pyx_t_7 = __Pyx_PyInt_From_TA_OptInputParameterType(TA_OptInput_RealList); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 295; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_7); - __pyx_t_3 = PyObject_RichCompare(__pyx_v_type_, __pyx_t_7, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 295; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - __pyx_t_11 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_11 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 295; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __pyx_t_10 = __pyx_t_11; - __pyx_L6_bool_binop_done:; - if (__pyx_t_10) { - - /* "talib/abstract.pyx":296 - * type_ = self.__opt_inputs[opt_input]['type'] - * if type_ == lib.TA_OptInput_RealRange or type_ == lib.TA_OptInput_RealList: - * __ta_setOptInputParamReal(holder, i, value) # <<<<<<<<<<<<<< - * elif type_ == lib.TA_OptInput_IntegerRange or type_ == lib.TA_OptInput_IntegerList: - * __ta_setOptInputParamInteger(holder, i, value) - */ - __pyx_t_12 = __Pyx_PyInt_As_int(__pyx_v_i); if (unlikely((__pyx_t_12 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 296; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __pyx_t_13 = __Pyx_PyInt_As_int(__pyx_v_value); if (unlikely((__pyx_t_13 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 296; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __pyx_f_5talib_8abstract___ta_setOptInputParamReal(__pyx_v_holder, __pyx_t_12, __pyx_t_13); - - /* "talib/abstract.pyx":295 - * value = self.__get_opt_input_value(opt_input) - * type_ = self.__opt_inputs[opt_input]['type'] - * if type_ == lib.TA_OptInput_RealRange or type_ == lib.TA_OptInput_RealList: # <<<<<<<<<<<<<< - * __ta_setOptInputParamReal(holder, i, value) - * elif type_ == lib.TA_OptInput_IntegerRange or type_ == lib.TA_OptInput_IntegerList: - */ - goto __pyx_L5; - } - - /* "talib/abstract.pyx":297 - * if type_ == lib.TA_OptInput_RealRange or type_ == lib.TA_OptInput_RealList: - * __ta_setOptInputParamReal(holder, i, value) - * elif type_ == lib.TA_OptInput_IntegerRange or type_ == lib.TA_OptInput_IntegerList: # <<<<<<<<<<<<<< - * __ta_setOptInputParamInteger(holder, i, value) - * - */ - __pyx_t_3 = __Pyx_PyInt_From_TA_OptInputParameterType(TA_OptInput_IntegerRange); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 297; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_3); - __pyx_t_7 = PyObject_RichCompare(__pyx_v_type_, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_7); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 297; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __pyx_t_11 = __Pyx_PyObject_IsTrue(__pyx_t_7); if (unlikely(__pyx_t_11 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 297; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - if (!__pyx_t_11) { - } else { - __pyx_t_10 = __pyx_t_11; - goto __pyx_L8_bool_binop_done; - } - __pyx_t_7 = __Pyx_PyInt_From_TA_OptInputParameterType(TA_OptInput_IntegerList); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 297; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_7); - __pyx_t_3 = PyObject_RichCompare(__pyx_v_type_, __pyx_t_7, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 297; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - __pyx_t_11 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_11 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 297; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __pyx_t_10 = __pyx_t_11; - __pyx_L8_bool_binop_done:; - if (__pyx_t_10) { - - /* "talib/abstract.pyx":298 - * __ta_setOptInputParamReal(holder, i, value) - * elif type_ == lib.TA_OptInput_IntegerRange or type_ == lib.TA_OptInput_IntegerList: - * __ta_setOptInputParamInteger(holder, i, value) # <<<<<<<<<<<<<< - * - * lookback = __ta_getLookback(holder) - */ - __pyx_t_13 = __Pyx_PyInt_As_int(__pyx_v_i); if (unlikely((__pyx_t_13 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 298; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __pyx_t_12 = __Pyx_PyInt_As_int(__pyx_v_value); if (unlikely((__pyx_t_12 == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 298; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __pyx_f_5talib_8abstract___ta_setOptInputParamInteger(__pyx_v_holder, __pyx_t_13, __pyx_t_12); - - /* "talib/abstract.pyx":297 - * if type_ == lib.TA_OptInput_RealRange or type_ == lib.TA_OptInput_RealList: - * __ta_setOptInputParamReal(holder, i, value) - * elif type_ == lib.TA_OptInput_IntegerRange or type_ == lib.TA_OptInput_IntegerList: # <<<<<<<<<<<<<< - * __ta_setOptInputParamInteger(holder, i, value) - * - */ - } - __pyx_L5:; - - /* "talib/abstract.pyx":292 - * cdef lib.TA_ParamHolder *holder - * holder = __ta_paramHolderAlloc(self.__name) - * for i, opt_input in enumerate(self.__opt_inputs): # <<<<<<<<<<<<<< - * value = self.__get_opt_input_value(opt_input) - * type_ = self.__opt_inputs[opt_input]['type'] - */ - } - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - - /* "talib/abstract.pyx":300 - * __ta_setOptInputParamInteger(holder, i, value) - * - * lookback = __ta_getLookback(holder) # <<<<<<<<<<<<<< - * __ta_paramHolderFree(holder) - * return lookback - */ - __pyx_v_lookback = __pyx_f_5talib_8abstract___ta_getLookback(__pyx_v_holder); - - /* "talib/abstract.pyx":301 - * - * lookback = __ta_getLookback(holder) - * __ta_paramHolderFree(holder) # <<<<<<<<<<<<<< - * return lookback - * - */ - __pyx_f_5talib_8abstract___ta_paramHolderFree(__pyx_v_holder); - - /* "talib/abstract.pyx":302 - * lookback = __ta_getLookback(holder) - * __ta_paramHolderFree(holder) - * return lookback # <<<<<<<<<<<<<< - * - * @property - */ - __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_lookback); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 302; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - __pyx_r = __pyx_t_1; - __pyx_t_1 = 0; - goto __pyx_L0; - - /* "talib/abstract.pyx":285 - * - * @property - * def lookback(self): # <<<<<<<<<<<<<< - * """ - * Returns the lookback window size for the function with the parameter - */ - - /* function exit code */ - __pyx_L1_error:; - __Pyx_XDECREF(__pyx_t_1); - __Pyx_XDECREF(__pyx_t_3); - __Pyx_XDECREF(__pyx_t_4); - __Pyx_XDECREF(__pyx_t_7); - __Pyx_XDECREF(__pyx_t_8); - __Pyx_XDECREF(__pyx_t_9); - __Pyx_AddTraceback("talib.abstract.Function.lookback", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF(__pyx_v_i); - __Pyx_XDECREF(__pyx_v_opt_input); - __Pyx_XDECREF(__pyx_v_value); - __Pyx_XDECREF(__pyx_v_type_); - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "talib/abstract.pyx":305 - * - * @property - * def output_names(self): # <<<<<<<<<<<<<< - * """ - * Returns a list of the output names returned by this function. - */ - -/* Python wrapper */ -static PyObject *__pyx_pw_5talib_8abstract_8Function_27output_names(PyObject *__pyx_self, PyObject *__pyx_v_self); /*proto*/ -static char __pyx_doc_5talib_8abstract_8Function_26output_names[] = "\n Returns a list of the output names returned by this function.\n "; -static PyMethodDef __pyx_mdef_5talib_8abstract_8Function_27output_names = {"output_names", (PyCFunction)__pyx_pw_5talib_8abstract_8Function_27output_names, METH_O, __pyx_doc_5talib_8abstract_8Function_26output_names}; -static PyObject *__pyx_pw_5talib_8abstract_8Function_27output_names(PyObject *__pyx_self, PyObject *__pyx_v_self) { - PyObject *__pyx_r = 0; - __Pyx_RefNannyDeclarations - __Pyx_RefNannySetupContext("output_names (wrapper)", 0); - __pyx_r = __pyx_pf_5talib_8abstract_8Function_26output_names(__pyx_self, ((PyObject *)__pyx_v_self)); - - /* function exit code */ - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -static PyObject *__pyx_pf_5talib_8abstract_8Function_26output_names(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self) { - PyObject *__pyx_v_ret = NULL; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - PyObject *__pyx_t_1 = NULL; - PyObject *__pyx_t_2 = NULL; - PyObject *__pyx_t_3 = NULL; - int __pyx_t_4; - int __pyx_t_5; - int __pyx_lineno = 0; - const char *__pyx_filename = NULL; - int __pyx_clineno = 0; - __Pyx_RefNannySetupContext("output_names", 0); - - /* "talib/abstract.pyx":309 - * Returns a list of the output names returned by this function. - * """ - * ret = self.__outputs.keys() # <<<<<<<<<<<<<< - * if not isinstance(ret, list): - * ret = list(ret) - */ - __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__outputs); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 309; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_keys); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 309; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_3); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __pyx_t_2 = NULL; - if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_3))) { - __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3); - if (likely(__pyx_t_2)) { - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); - __Pyx_INCREF(__pyx_t_2); - __Pyx_INCREF(function); - __Pyx_DECREF_SET(__pyx_t_3, function); - } - } - if (__pyx_t_2) { - __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 309; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - } else { - __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_3); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 309; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - } - __Pyx_GOTREF(__pyx_t_1); - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __pyx_v_ret = __pyx_t_1; - __pyx_t_1 = 0; - - /* "talib/abstract.pyx":310 - * """ - * ret = self.__outputs.keys() - * if not isinstance(ret, list): # <<<<<<<<<<<<<< - * ret = list(ret) - * return ret - */ - __pyx_t_4 = PyList_Check(__pyx_v_ret); - __pyx_t_5 = ((!(__pyx_t_4 != 0)) != 0); - if (__pyx_t_5) { - - /* "talib/abstract.pyx":311 - * ret = self.__outputs.keys() - * if not isinstance(ret, list): - * ret = list(ret) # <<<<<<<<<<<<<< - * return ret - * - */ - __pyx_t_1 = PySequence_List(__pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 311; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - __Pyx_DECREF_SET(__pyx_v_ret, __pyx_t_1); - __pyx_t_1 = 0; - - /* "talib/abstract.pyx":310 - * """ - * ret = self.__outputs.keys() - * if not isinstance(ret, list): # <<<<<<<<<<<<<< - * ret = list(ret) - * return ret - */ - } - - /* "talib/abstract.pyx":312 - * if not isinstance(ret, list): - * ret = list(ret) - * return ret # <<<<<<<<<<<<<< - * - * @property - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(__pyx_v_ret); - __pyx_r = __pyx_v_ret; - goto __pyx_L0; - - /* "talib/abstract.pyx":305 - * - * @property - * def output_names(self): # <<<<<<<<<<<<<< - * """ - * Returns a list of the output names returned by this function. - */ - - /* function exit code */ - __pyx_L1_error:; - __Pyx_XDECREF(__pyx_t_1); - __Pyx_XDECREF(__pyx_t_2); - __Pyx_XDECREF(__pyx_t_3); - __Pyx_AddTraceback("talib.abstract.Function.output_names", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF(__pyx_v_ret); - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "talib/abstract.pyx":315 - * - * @property - * def outputs(self): # <<<<<<<<<<<<<< - * """ - * Returns the TA function values for the currently set input_arrays and - */ - -/* Python wrapper */ -static PyObject *__pyx_pw_5talib_8abstract_8Function_29outputs(PyObject *__pyx_self, PyObject *__pyx_v_self); /*proto*/ -static char __pyx_doc_5talib_8abstract_8Function_28outputs[] = "\n Returns the TA function values for the currently set input_arrays and\n parameters. Returned values are a ndarray if there is only one output\n or a list of ndarrays for more than one output.\n "; -static PyMethodDef __pyx_mdef_5talib_8abstract_8Function_29outputs = {"outputs", (PyCFunction)__pyx_pw_5talib_8abstract_8Function_29outputs, METH_O, __pyx_doc_5talib_8abstract_8Function_28outputs}; -static PyObject *__pyx_pw_5talib_8abstract_8Function_29outputs(PyObject *__pyx_self, PyObject *__pyx_v_self) { - PyObject *__pyx_r = 0; - __Pyx_RefNannyDeclarations - __Pyx_RefNannySetupContext("outputs (wrapper)", 0); - __pyx_r = __pyx_pf_5talib_8abstract_8Function_28outputs(__pyx_self, ((PyObject *)__pyx_v_self)); - - /* function exit code */ - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -static PyObject *__pyx_pf_5talib_8abstract_8Function_28outputs(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self) { - PyObject *__pyx_v_ret = NULL; - PyObject *__pyx_v_index = NULL; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - PyObject *__pyx_t_1 = NULL; - int __pyx_t_2; - int __pyx_t_3; - PyObject *__pyx_t_4 = NULL; - PyObject *__pyx_t_5 = NULL; - int __pyx_t_6; - Py_ssize_t __pyx_t_7; - PyObject *__pyx_t_8 = NULL; - PyObject *__pyx_t_9 = NULL; - int __pyx_lineno = 0; - const char *__pyx_filename = NULL; - int __pyx_clineno = 0; - __Pyx_RefNannySetupContext("outputs", 0); - - /* "talib/abstract.pyx":321 - * or a list of ndarrays for more than one output. - * """ - * if not self.__outputs_valid: # <<<<<<<<<<<<<< - * self.__call_function() - * ret = self.__outputs.values() - */ - __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__outputs_valid); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 321; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_2 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 321; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __pyx_t_3 = ((!__pyx_t_2) != 0); - if (__pyx_t_3) { - - /* "talib/abstract.pyx":322 - * """ - * if not self.__outputs_valid: - * self.__call_function() # <<<<<<<<<<<<<< - * ret = self.__outputs.values() - * if not isinstance(ret, list): - */ - __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__call_function); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 322; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_4); - __pyx_t_5 = NULL; - if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_4))) { - __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4); - if (likely(__pyx_t_5)) { - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); - __Pyx_INCREF(__pyx_t_5); - __Pyx_INCREF(function); - __Pyx_DECREF_SET(__pyx_t_4, function); - } - } - if (__pyx_t_5) { - __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_5); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 322; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - } else { - __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_4); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 322; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - } - __Pyx_GOTREF(__pyx_t_1); - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - - /* "talib/abstract.pyx":321 - * or a list of ndarrays for more than one output. - * """ - * if not self.__outputs_valid: # <<<<<<<<<<<<<< - * self.__call_function() - * ret = self.__outputs.values() - */ - } - - /* "talib/abstract.pyx":323 - * if not self.__outputs_valid: - * self.__call_function() - * ret = self.__outputs.values() # <<<<<<<<<<<<<< - * if not isinstance(ret, list): - * ret = list(ret) - */ - __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__outputs); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 323; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_4); - __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_values); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 323; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_5); - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __pyx_t_4 = NULL; - if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_5))) { - __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_5); - if (likely(__pyx_t_4)) { - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); - __Pyx_INCREF(__pyx_t_4); - __Pyx_INCREF(function); - __Pyx_DECREF_SET(__pyx_t_5, function); - } - } - if (__pyx_t_4) { - __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_t_4); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 323; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - } else { - __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_5); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 323; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - } - __Pyx_GOTREF(__pyx_t_1); - __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - __pyx_v_ret = __pyx_t_1; - __pyx_t_1 = 0; - - /* "talib/abstract.pyx":324 - * self.__call_function() - * ret = self.__outputs.values() - * if not isinstance(ret, list): # <<<<<<<<<<<<<< - * ret = list(ret) - * if __PANDAS_DATAFRAME is not None and \ - */ - __pyx_t_3 = PyList_Check(__pyx_v_ret); - __pyx_t_2 = ((!(__pyx_t_3 != 0)) != 0); - if (__pyx_t_2) { - - /* "talib/abstract.pyx":325 - * ret = self.__outputs.values() - * if not isinstance(ret, list): - * ret = list(ret) # <<<<<<<<<<<<<< - * if __PANDAS_DATAFRAME is not None and \ - * isinstance(self.__input_arrays, __PANDAS_DATAFRAME): - */ - __pyx_t_1 = PySequence_List(__pyx_v_ret); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 325; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - __Pyx_DECREF_SET(__pyx_v_ret, __pyx_t_1); - __pyx_t_1 = 0; - - /* "talib/abstract.pyx":324 - * self.__call_function() - * ret = self.__outputs.values() - * if not isinstance(ret, list): # <<<<<<<<<<<<<< - * ret = list(ret) - * if __PANDAS_DATAFRAME is not None and \ - */ - } - - /* "talib/abstract.pyx":326 - * if not isinstance(ret, list): - * ret = list(ret) - * if __PANDAS_DATAFRAME is not None and \ # <<<<<<<<<<<<<< - * isinstance(self.__input_arrays, __PANDAS_DATAFRAME): - * index = self.__input_arrays.index - */ - __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_PANDAS_DATAFRAME); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 326; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - __pyx_t_3 = (__pyx_t_1 != Py_None); - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __pyx_t_6 = (__pyx_t_3 != 0); - if (__pyx_t_6) { - } else { - __pyx_t_2 = __pyx_t_6; - goto __pyx_L6_bool_binop_done; - } - - /* "talib/abstract.pyx":327 - * ret = list(ret) - * if __PANDAS_DATAFRAME is not None and \ - * isinstance(self.__input_arrays, __PANDAS_DATAFRAME): # <<<<<<<<<<<<<< - * index = self.__input_arrays.index - * if len(ret) == 1: - */ - __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__input_arrays); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 327; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - __pyx_t_5 = __Pyx_GetModuleGlobalName(__pyx_n_s_PANDAS_DATAFRAME); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 327; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_5); - __pyx_t_6 = PyObject_IsInstance(__pyx_t_1, __pyx_t_5); if (unlikely(__pyx_t_6 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 327; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - __pyx_t_3 = (__pyx_t_6 != 0); - __pyx_t_2 = __pyx_t_3; - __pyx_L6_bool_binop_done:; - - /* "talib/abstract.pyx":326 - * if not isinstance(ret, list): - * ret = list(ret) - * if __PANDAS_DATAFRAME is not None and \ # <<<<<<<<<<<<<< - * isinstance(self.__input_arrays, __PANDAS_DATAFRAME): - * index = self.__input_arrays.index - */ - if (__pyx_t_2) { - - /* "talib/abstract.pyx":328 - * if __PANDAS_DATAFRAME is not None and \ - * isinstance(self.__input_arrays, __PANDAS_DATAFRAME): - * index = self.__input_arrays.index # <<<<<<<<<<<<<< - * if len(ret) == 1: - * return __PANDAS_SERIES(ret[0], index=index) - */ - __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__input_arrays); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 328; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_5); - __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_index); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 328; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - __pyx_v_index = __pyx_t_1; - __pyx_t_1 = 0; - - /* "talib/abstract.pyx":329 - * isinstance(self.__input_arrays, __PANDAS_DATAFRAME): - * index = self.__input_arrays.index - * if len(ret) == 1: # <<<<<<<<<<<<<< - * return __PANDAS_SERIES(ret[0], index=index) - * else: - */ - __pyx_t_7 = PyObject_Length(__pyx_v_ret); if (unlikely(__pyx_t_7 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 329; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __pyx_t_2 = ((__pyx_t_7 == 1) != 0); - if (__pyx_t_2) { - - /* "talib/abstract.pyx":330 - * index = self.__input_arrays.index - * if len(ret) == 1: - * return __PANDAS_SERIES(ret[0], index=index) # <<<<<<<<<<<<<< - * else: - * return __PANDAS_DATAFRAME(numpy.column_stack(ret), - */ - __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_PANDAS_SERIES); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 330; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - __pyx_t_5 = __Pyx_GetItemInt(__pyx_v_ret, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(__pyx_t_5 == NULL)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 330; __pyx_clineno = __LINE__; goto __pyx_L1_error;}; - __Pyx_GOTREF(__pyx_t_5); - __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 330; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_4); - __Pyx_GIVEREF(__pyx_t_5); - PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_5); - __pyx_t_5 = 0; - __pyx_t_5 = PyDict_New(); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 330; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_5); - if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_index, __pyx_v_index) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 330; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __pyx_t_8 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_4, __pyx_t_5); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 330; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_8); - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - __pyx_r = __pyx_t_8; - __pyx_t_8 = 0; - goto __pyx_L0; - - /* "talib/abstract.pyx":329 - * isinstance(self.__input_arrays, __PANDAS_DATAFRAME): - * index = self.__input_arrays.index - * if len(ret) == 1: # <<<<<<<<<<<<<< - * return __PANDAS_SERIES(ret[0], index=index) - * else: - */ - } - - /* "talib/abstract.pyx":332 - * return __PANDAS_SERIES(ret[0], index=index) - * else: - * return __PANDAS_DATAFRAME(numpy.column_stack(ret), # <<<<<<<<<<<<<< - * index=index, - * columns=self.output_names) - */ - /*else*/ { - __Pyx_XDECREF(__pyx_r); - __pyx_t_8 = __Pyx_GetModuleGlobalName(__pyx_n_s_PANDAS_DATAFRAME); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 332; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_8); - __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_numpy); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 332; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_4); - __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_column_stack); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 332; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __pyx_t_4 = NULL; - if (CYTHON_COMPILING_IN_CPYTHON && unlikely(PyMethod_Check(__pyx_t_1))) { - __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_1); - if (likely(__pyx_t_4)) { - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); - __Pyx_INCREF(__pyx_t_4); - __Pyx_INCREF(function); - __Pyx_DECREF_SET(__pyx_t_1, function); - } - } - if (!__pyx_t_4) { - __pyx_t_5 = __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_v_ret); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 332; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_5); - } else { - __pyx_t_9 = PyTuple_New(1+1); if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 332; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_9); - __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_4); __pyx_t_4 = NULL; - __Pyx_INCREF(__pyx_v_ret); - __Pyx_GIVEREF(__pyx_v_ret); - PyTuple_SET_ITEM(__pyx_t_9, 0+1, __pyx_v_ret); - __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_9, NULL); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 332; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_5); - __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - } - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 332; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - __Pyx_GIVEREF(__pyx_t_5); - PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_5); - __pyx_t_5 = 0; - - /* "talib/abstract.pyx":333 - * else: - * return __PANDAS_DATAFRAME(numpy.column_stack(ret), - * index=index, # <<<<<<<<<<<<<< - * columns=self.output_names) - * else: - */ - __pyx_t_5 = PyDict_New(); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 333; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_5); - if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_index, __pyx_v_index) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 333; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - - /* "talib/abstract.pyx":334 - * return __PANDAS_DATAFRAME(numpy.column_stack(ret), - * index=index, - * columns=self.output_names) # <<<<<<<<<<<<<< - * else: - * return ret[0] if len(ret) == 1 else ret - */ - __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_output_names); if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 334; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_9); - if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_columns, __pyx_t_9) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 333; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - - /* "talib/abstract.pyx":332 - * return __PANDAS_SERIES(ret[0], index=index) - * else: - * return __PANDAS_DATAFRAME(numpy.column_stack(ret), # <<<<<<<<<<<<<< - * index=index, - * columns=self.output_names) - */ - __pyx_t_9 = __Pyx_PyObject_Call(__pyx_t_8, __pyx_t_1, __pyx_t_5); if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 332; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_9); - __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - __pyx_r = __pyx_t_9; - __pyx_t_9 = 0; - goto __pyx_L0; - } - - /* "talib/abstract.pyx":326 - * if not isinstance(ret, list): - * ret = list(ret) - * if __PANDAS_DATAFRAME is not None and \ # <<<<<<<<<<<<<< - * isinstance(self.__input_arrays, __PANDAS_DATAFRAME): - * index = self.__input_arrays.index - */ - } - - /* "talib/abstract.pyx":336 - * columns=self.output_names) - * else: - * return ret[0] if len(ret) == 1 else ret # <<<<<<<<<<<<<< - * - * def run(self, input_arrays=None): - */ - /*else*/ { - __Pyx_XDECREF(__pyx_r); - __pyx_t_7 = PyObject_Length(__pyx_v_ret); if (unlikely(__pyx_t_7 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 336; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - if (((__pyx_t_7 == 1) != 0)) { - __pyx_t_5 = __Pyx_GetItemInt(__pyx_v_ret, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(__pyx_t_5 == NULL)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 336; __pyx_clineno = __LINE__; goto __pyx_L1_error;}; - __Pyx_GOTREF(__pyx_t_5); - __pyx_t_9 = __pyx_t_5; - __pyx_t_5 = 0; - } else { - __Pyx_INCREF(__pyx_v_ret); - __pyx_t_9 = __pyx_v_ret; - } - __pyx_r = __pyx_t_9; - __pyx_t_9 = 0; - goto __pyx_L0; - } - - /* "talib/abstract.pyx":315 - * - * @property - * def outputs(self): # <<<<<<<<<<<<<< - * """ - * Returns the TA function values for the currently set input_arrays and - */ - - /* function exit code */ - __pyx_L1_error:; - __Pyx_XDECREF(__pyx_t_1); - __Pyx_XDECREF(__pyx_t_4); - __Pyx_XDECREF(__pyx_t_5); - __Pyx_XDECREF(__pyx_t_8); - __Pyx_XDECREF(__pyx_t_9); - __Pyx_AddTraceback("talib.abstract.Function.outputs", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF(__pyx_v_ret); - __Pyx_XDECREF(__pyx_v_index); - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "talib/abstract.pyx":338 - * return ret[0] if len(ret) == 1 else ret - * - * def run(self, input_arrays=None): # <<<<<<<<<<<<<< - * """ - * run([input_arrays=None]) - */ - -/* Python wrapper */ -static PyObject *__pyx_pw_5talib_8abstract_8Function_31run(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_8abstract_8Function_30run[] = "\n run([input_arrays=None])\n\n This is a shortcut to the outputs property that also allows setting\n the input_arrays dict.\n "; -static PyMethodDef __pyx_mdef_5talib_8abstract_8Function_31run = {"run", (PyCFunction)__pyx_pw_5talib_8abstract_8Function_31run, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8abstract_8Function_30run}; -static PyObject *__pyx_pw_5talib_8abstract_8Function_31run(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { - PyObject *__pyx_v_self = 0; - PyObject *__pyx_v_input_arrays = 0; - int __pyx_lineno = 0; - const char *__pyx_filename = NULL; - int __pyx_clineno = 0; - PyObject *__pyx_r = 0; - __Pyx_RefNannyDeclarations - __Pyx_RefNannySetupContext("run (wrapper)", 0); - { - static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_self,&__pyx_n_s_input_arrays,0}; - PyObject* values[2] = {0,0}; - values[1] = ((PyObject *)((PyObject *)Py_None)); - 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_self)) != 0)) kw_args--; - else goto __pyx_L5_argtuple_error; - case 1: - if (kw_args > 0) { - PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_input_arrays); - if (value) { values[1] = value; kw_args--; } - } - } - if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "run") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 338; __pyx_clineno = __LINE__; goto __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_self = values[0]; - __pyx_v_input_arrays = values[1]; - } - goto __pyx_L4_argument_unpacking_done; - __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("run", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 338; __pyx_clineno = __LINE__; goto __pyx_L3_error;} - __pyx_L3_error:; - __Pyx_AddTraceback("talib.abstract.Function.run", __pyx_clineno, __pyx_lineno, __pyx_filename); - __Pyx_RefNannyFinishContext(); - return NULL; - __pyx_L4_argument_unpacking_done:; - __pyx_r = __pyx_pf_5talib_8abstract_8Function_30run(__pyx_self, __pyx_v_self, __pyx_v_input_arrays); - - /* function exit code */ - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -static PyObject *__pyx_pf_5talib_8abstract_8Function_30run(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_input_arrays) { - 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; - int __pyx_lineno = 0; - const char *__pyx_filename = NULL; - int __pyx_clineno = 0; - __Pyx_RefNannySetupContext("run", 0); - - /* "talib/abstract.pyx":345 - * the input_arrays dict. - * """ - * if input_arrays: # <<<<<<<<<<<<<< - * self.set_input_arrays(input_arrays) - * self.__call_function() - */ - __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_input_arrays); if (unlikely(__pyx_t_1 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 345; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - if (__pyx_t_1) { - - /* "talib/abstract.pyx":346 - * """ - * if input_arrays: - * self.set_input_arrays(input_arrays) # <<<<<<<<<<<<<< - * self.__call_function() - * return self.outputs - */ - __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_set_input_arrays); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 346; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_3); - __pyx_t_4 = NULL; - if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_3))) { - __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); - if (likely(__pyx_t_4)) { - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); - __Pyx_INCREF(__pyx_t_4); - __Pyx_INCREF(function); - __Pyx_DECREF_SET(__pyx_t_3, function); - } - } - if (!__pyx_t_4) { - __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_v_input_arrays); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 346; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - } else { - __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 346; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_5); - __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL; - __Pyx_INCREF(__pyx_v_input_arrays); - __Pyx_GIVEREF(__pyx_v_input_arrays); - PyTuple_SET_ITEM(__pyx_t_5, 0+1, __pyx_v_input_arrays); - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_5, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 346; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - } - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/abstract.pyx":345 - * the input_arrays dict. - * """ - * if input_arrays: # <<<<<<<<<<<<<< - * self.set_input_arrays(input_arrays) - * self.__call_function() - */ - } - - /* "talib/abstract.pyx":347 - * if input_arrays: - * self.set_input_arrays(input_arrays) - * self.__call_function() # <<<<<<<<<<<<<< - * return self.outputs - * - */ - __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__call_function); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 347; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_3); - __pyx_t_5 = NULL; - if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_3))) { - __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_3); - if (likely(__pyx_t_5)) { - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); - __Pyx_INCREF(__pyx_t_5); - __Pyx_INCREF(function); - __Pyx_DECREF_SET(__pyx_t_3, function); - } - } - if (__pyx_t_5) { - __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_5); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 347; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - } else { - __pyx_t_2 = __Pyx_PyObject_CallNoArg(__pyx_t_3); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 347; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - } - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/abstract.pyx":348 - * self.set_input_arrays(input_arrays) - * self.__call_function() - * return self.outputs # <<<<<<<<<<<<<< - * - * def __call__(self, *args, **kwargs): - */ - __Pyx_XDECREF(__pyx_r); - __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_outputs); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 348; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __pyx_r = __pyx_t_2; - __pyx_t_2 = 0; - goto __pyx_L0; - - /* "talib/abstract.pyx":338 - * return ret[0] if len(ret) == 1 else ret - * - * def run(self, input_arrays=None): # <<<<<<<<<<<<<< - * """ - * run([input_arrays=None]) - */ - - /* 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.abstract.Function.run", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "talib/abstract.pyx":350 - * return self.outputs - * - * def __call__(self, *args, **kwargs): # <<<<<<<<<<<<<< - * """ - * func_instance([input_arrays,] [parameter_args,] [input_price_series_kwargs,] [parameter_kwargs]) - */ - -/* Python wrapper */ -static PyObject *__pyx_pw_5talib_8abstract_8Function_33__call__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_8abstract_8Function_32__call__[] = "\n func_instance([input_arrays,] [parameter_args,] [input_price_series_kwargs,] [parameter_kwargs])\n\n This is a shortcut to the outputs property that also allows setting\n the input_arrays dict and function parameters.\n "; -static PyMethodDef __pyx_mdef_5talib_8abstract_8Function_33__call__ = {"__call__", (PyCFunction)__pyx_pw_5talib_8abstract_8Function_33__call__, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8abstract_8Function_32__call__}; -static PyObject *__pyx_pw_5talib_8abstract_8Function_33__call__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { - PyObject *__pyx_v_self = 0; - PyObject *__pyx_v_args = 0; - PyObject *__pyx_v_kwargs = 0; - int __pyx_lineno = 0; - const char *__pyx_filename = NULL; - int __pyx_clineno = 0; - PyObject *__pyx_r = 0; - __Pyx_RefNannyDeclarations - __Pyx_RefNannySetupContext("__call__ (wrapper)", 0); - __pyx_v_kwargs = PyDict_New(); if (unlikely(!__pyx_v_kwargs)) return NULL; - __Pyx_GOTREF(__pyx_v_kwargs); - if (PyTuple_GET_SIZE(__pyx_args) > 1) { - __pyx_v_args = PyTuple_GetSlice(__pyx_args, 1, PyTuple_GET_SIZE(__pyx_args)); - if (unlikely(!__pyx_v_args)) { - __Pyx_DECREF(__pyx_v_kwargs); __pyx_v_kwargs = 0; - __Pyx_RefNannyFinishContext(); - return NULL; - } - __Pyx_GOTREF(__pyx_v_args); - } else { - __pyx_v_args = __pyx_empty_tuple; __Pyx_INCREF(__pyx_empty_tuple); - } - { - static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_self,0}; - PyObject* values[1] = {0}; - if (unlikely(__pyx_kwds)) { - Py_ssize_t kw_args; - const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); - switch (pos_args) { - default: - case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); - case 0: break; - } - kw_args = PyDict_Size(__pyx_kwds); - switch (pos_args) { - case 0: - if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_self)) != 0)) kw_args--; - else goto __pyx_L5_argtuple_error; - } - if (unlikely(kw_args > 0)) { - const Py_ssize_t used_pos_args = (pos_args < 1) ? pos_args : 1; - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, __pyx_v_kwargs, values, used_pos_args, "__call__") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 350; __pyx_clineno = __LINE__; goto __pyx_L3_error;} - } - } else if (PyTuple_GET_SIZE(__pyx_args) < 1) { - goto __pyx_L5_argtuple_error; - } else { - values[0] = PyTuple_GET_ITEM(__pyx_args, 0); - } - __pyx_v_self = values[0]; - } - goto __pyx_L4_argument_unpacking_done; - __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("__call__", 0, 1, 1, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 350; __pyx_clineno = __LINE__; goto __pyx_L3_error;} - __pyx_L3_error:; - __Pyx_DECREF(__pyx_v_args); __pyx_v_args = 0; - __Pyx_DECREF(__pyx_v_kwargs); __pyx_v_kwargs = 0; - __Pyx_AddTraceback("talib.abstract.Function.__call__", __pyx_clineno, __pyx_lineno, __pyx_filename); - __Pyx_RefNannyFinishContext(); - return NULL; - __pyx_L4_argument_unpacking_done:; - __pyx_r = __pyx_pf_5talib_8abstract_8Function_32__call__(__pyx_self, __pyx_v_self, __pyx_v_args, __pyx_v_kwargs); - - /* function exit code */ - __Pyx_XDECREF(__pyx_v_args); - __Pyx_XDECREF(__pyx_v_kwargs); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -static PyObject *__pyx_pf_5talib_8abstract_8Function_32__call__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_args, PyObject *__pyx_v_kwargs) { - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - PyObject *__pyx_t_1 = NULL; - PyObject *__pyx_t_2 = NULL; - PyObject *__pyx_t_3 = NULL; - int __pyx_lineno = 0; - const char *__pyx_filename = NULL; - int __pyx_clineno = 0; - __Pyx_RefNannySetupContext("__call__", 0); - - /* "talib/abstract.pyx":357 - * the input_arrays dict and function parameters. - * """ - * self.set_function_args(*args, **kwargs) # <<<<<<<<<<<<<< - * self.__call_function() - * return self.outputs - */ - __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_set_function_args); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 357; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_v_args, __pyx_v_kwargs); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 357; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/abstract.pyx":358 - * """ - * self.set_function_args(*args, **kwargs) - * self.__call_function() # <<<<<<<<<<<<<< - * return self.outputs - * - */ - __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__call_function); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 358; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - __pyx_t_3 = NULL; - if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_1))) { - __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_1); - if (likely(__pyx_t_3)) { - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); - __Pyx_INCREF(__pyx_t_3); - __Pyx_INCREF(function); - __Pyx_DECREF_SET(__pyx_t_1, function); - } - } - if (__pyx_t_3) { - __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_3); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 358; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - } else { - __pyx_t_2 = __Pyx_PyObject_CallNoArg(__pyx_t_1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 358; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - } - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/abstract.pyx":359 - * self.set_function_args(*args, **kwargs) - * self.__call_function() - * return self.outputs # <<<<<<<<<<<<<< - * - * # figure out which price series names we're using for inputs - */ - __Pyx_XDECREF(__pyx_r); - __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_outputs); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 359; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __pyx_r = __pyx_t_2; - __pyx_t_2 = 0; - goto __pyx_L0; - - /* "talib/abstract.pyx":350 - * return self.outputs - * - * def __call__(self, *args, **kwargs): # <<<<<<<<<<<<<< - * """ - * func_instance([input_arrays,] [parameter_args,] [input_price_series_kwargs,] [parameter_kwargs]) - */ - - /* function exit code */ - __pyx_L1_error:; - __Pyx_XDECREF(__pyx_t_1); - __Pyx_XDECREF(__pyx_t_2); - __Pyx_XDECREF(__pyx_t_3); - __Pyx_AddTraceback("talib.abstract.Function.__call__", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "talib/abstract.pyx":362 - * - * # figure out which price series names we're using for inputs - * def __input_price_series_names(self): # <<<<<<<<<<<<<< - * input_price_series_names = [] - * for input_name in self.__input_names: - */ - -/* Python wrapper */ -static PyObject *__pyx_pw_5talib_8abstract_8Function_35__input_price_series_names(PyObject *__pyx_self, PyObject *__pyx_v_self); /*proto*/ -static PyMethodDef __pyx_mdef_5talib_8abstract_8Function_35__input_price_series_names = {"__input_price_series_names", (PyCFunction)__pyx_pw_5talib_8abstract_8Function_35__input_price_series_names, METH_O, 0}; -static PyObject *__pyx_pw_5talib_8abstract_8Function_35__input_price_series_names(PyObject *__pyx_self, PyObject *__pyx_v_self) { - PyObject *__pyx_r = 0; - __Pyx_RefNannyDeclarations - __Pyx_RefNannySetupContext("__input_price_series_names (wrapper)", 0); - __pyx_r = __pyx_pf_5talib_8abstract_8Function_34__input_price_series_names(__pyx_self, ((PyObject *)__pyx_v_self)); - - /* function exit code */ - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -static PyObject *__pyx_pf_5talib_8abstract_8Function_34__input_price_series_names(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self) { - PyObject *__pyx_v_input_price_series_names = NULL; - PyObject *__pyx_v_input_name = NULL; - PyObject *__pyx_v_price_series = NULL; - PyObject *__pyx_v_name = NULL; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - PyObject *__pyx_t_1 = NULL; - PyObject *__pyx_t_2 = NULL; - Py_ssize_t __pyx_t_3; - PyObject *(*__pyx_t_4)(PyObject *); - PyObject *__pyx_t_5 = NULL; - int __pyx_t_6; - int __pyx_t_7; - Py_ssize_t __pyx_t_8; - PyObject *(*__pyx_t_9)(PyObject *); - int __pyx_t_10; - int __pyx_lineno = 0; - const char *__pyx_filename = NULL; - int __pyx_clineno = 0; - __Pyx_RefNannySetupContext("__input_price_series_names", 0); - - /* "talib/abstract.pyx":363 - * # figure out which price series names we're using for inputs - * def __input_price_series_names(self): - * input_price_series_names = [] # <<<<<<<<<<<<<< - * for input_name in self.__input_names: - * price_series = self.__input_names[input_name]['price_series'] - */ - __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 363; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - __pyx_v_input_price_series_names = ((PyObject*)__pyx_t_1); - __pyx_t_1 = 0; - - /* "talib/abstract.pyx":364 - * def __input_price_series_names(self): - * input_price_series_names = [] - * for input_name in self.__input_names: # <<<<<<<<<<<<<< - * price_series = self.__input_names[input_name]['price_series'] - * if isinstance(price_series, list): # TALIB-supplied input names - */ - __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__input_names); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 364; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - if (likely(PyList_CheckExact(__pyx_t_1)) || PyTuple_CheckExact(__pyx_t_1)) { - __pyx_t_2 = __pyx_t_1; __Pyx_INCREF(__pyx_t_2); __pyx_t_3 = 0; - __pyx_t_4 = NULL; - } else { - __pyx_t_3 = -1; __pyx_t_2 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 364; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __pyx_t_4 = Py_TYPE(__pyx_t_2)->tp_iternext; if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 364; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - } - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - for (;;) { - if (likely(!__pyx_t_4)) { - if (likely(PyList_CheckExact(__pyx_t_2))) { - if (__pyx_t_3 >= PyList_GET_SIZE(__pyx_t_2)) break; - #if CYTHON_COMPILING_IN_CPYTHON - __pyx_t_1 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_3); __Pyx_INCREF(__pyx_t_1); __pyx_t_3++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 364; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - #else - __pyx_t_1 = PySequence_ITEM(__pyx_t_2, __pyx_t_3); __pyx_t_3++; if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 364; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - #endif - } else { - if (__pyx_t_3 >= PyTuple_GET_SIZE(__pyx_t_2)) break; - #if CYTHON_COMPILING_IN_CPYTHON - __pyx_t_1 = PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_3); __Pyx_INCREF(__pyx_t_1); __pyx_t_3++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 364; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - #else - __pyx_t_1 = PySequence_ITEM(__pyx_t_2, __pyx_t_3); __pyx_t_3++; if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 364; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - #endif - } - } else { - __pyx_t_1 = __pyx_t_4(__pyx_t_2); - if (unlikely(!__pyx_t_1)) { - PyObject* exc_type = PyErr_Occurred(); - if (exc_type) { - if (likely(exc_type == PyExc_StopIteration || PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); - else {__pyx_filename = __pyx_f[0]; __pyx_lineno = 364; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - } - break; - } - __Pyx_GOTREF(__pyx_t_1); - } - __Pyx_XDECREF_SET(__pyx_v_input_name, __pyx_t_1); - __pyx_t_1 = 0; - - /* "talib/abstract.pyx":365 - * input_price_series_names = [] - * for input_name in self.__input_names: - * price_series = self.__input_names[input_name]['price_series'] # <<<<<<<<<<<<<< - * if isinstance(price_series, list): # TALIB-supplied input names - * for name in price_series: - */ - __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__input_names); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 365; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - __pyx_t_5 = PyObject_GetItem(__pyx_t_1, __pyx_v_input_name); if (unlikely(__pyx_t_5 == NULL)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 365; __pyx_clineno = __LINE__; goto __pyx_L1_error;}; - __Pyx_GOTREF(__pyx_t_5); - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __pyx_t_1 = PyObject_GetItem(__pyx_t_5, __pyx_n_s_price_series); if (unlikely(__pyx_t_1 == NULL)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 365; __pyx_clineno = __LINE__; goto __pyx_L1_error;}; - __Pyx_GOTREF(__pyx_t_1); - __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - __Pyx_XDECREF_SET(__pyx_v_price_series, __pyx_t_1); - __pyx_t_1 = 0; - - /* "talib/abstract.pyx":366 - * for input_name in self.__input_names: - * price_series = self.__input_names[input_name]['price_series'] - * if isinstance(price_series, list): # TALIB-supplied input names # <<<<<<<<<<<<<< - * for name in price_series: - * input_price_series_names.append(name) - */ - __pyx_t_6 = PyList_Check(__pyx_v_price_series); - __pyx_t_7 = (__pyx_t_6 != 0); - if (__pyx_t_7) { - - /* "talib/abstract.pyx":367 - * price_series = self.__input_names[input_name]['price_series'] - * if isinstance(price_series, list): # TALIB-supplied input names - * for name in price_series: # <<<<<<<<<<<<<< - * input_price_series_names.append(name) - * else: # name came from __INPUT_PRICE_SERIES_DEFAULTS - */ - if (likely(PyList_CheckExact(__pyx_v_price_series)) || PyTuple_CheckExact(__pyx_v_price_series)) { - __pyx_t_1 = __pyx_v_price_series; __Pyx_INCREF(__pyx_t_1); __pyx_t_8 = 0; - __pyx_t_9 = NULL; - } else { - __pyx_t_8 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_v_price_series); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 367; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - __pyx_t_9 = Py_TYPE(__pyx_t_1)->tp_iternext; if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 367; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - } - for (;;) { - if (likely(!__pyx_t_9)) { - if (likely(PyList_CheckExact(__pyx_t_1))) { - if (__pyx_t_8 >= PyList_GET_SIZE(__pyx_t_1)) break; - #if CYTHON_COMPILING_IN_CPYTHON - __pyx_t_5 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_8); __Pyx_INCREF(__pyx_t_5); __pyx_t_8++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 367; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - #else - __pyx_t_5 = PySequence_ITEM(__pyx_t_1, __pyx_t_8); __pyx_t_8++; if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 367; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_5); - #endif - } else { - if (__pyx_t_8 >= PyTuple_GET_SIZE(__pyx_t_1)) break; - #if CYTHON_COMPILING_IN_CPYTHON - __pyx_t_5 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_8); __Pyx_INCREF(__pyx_t_5); __pyx_t_8++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 367; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - #else - __pyx_t_5 = PySequence_ITEM(__pyx_t_1, __pyx_t_8); __pyx_t_8++; if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 367; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_5); - #endif - } - } else { - __pyx_t_5 = __pyx_t_9(__pyx_t_1); - if (unlikely(!__pyx_t_5)) { - PyObject* exc_type = PyErr_Occurred(); - if (exc_type) { - if (likely(exc_type == PyExc_StopIteration || PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); - else {__pyx_filename = __pyx_f[0]; __pyx_lineno = 367; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - } - break; - } - __Pyx_GOTREF(__pyx_t_5); - } - __Pyx_XDECREF_SET(__pyx_v_name, __pyx_t_5); - __pyx_t_5 = 0; - - /* "talib/abstract.pyx":368 - * if isinstance(price_series, list): # TALIB-supplied input names - * for name in price_series: - * input_price_series_names.append(name) # <<<<<<<<<<<<<< - * else: # name came from __INPUT_PRICE_SERIES_DEFAULTS - * input_price_series_names.append(price_series) - */ - __pyx_t_10 = __Pyx_PyList_Append(__pyx_v_input_price_series_names, __pyx_v_name); if (unlikely(__pyx_t_10 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 368; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - - /* "talib/abstract.pyx":367 - * price_series = self.__input_names[input_name]['price_series'] - * if isinstance(price_series, list): # TALIB-supplied input names - * for name in price_series: # <<<<<<<<<<<<<< - * input_price_series_names.append(name) - * else: # name came from __INPUT_PRICE_SERIES_DEFAULTS - */ - } - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - - /* "talib/abstract.pyx":366 - * for input_name in self.__input_names: - * price_series = self.__input_names[input_name]['price_series'] - * if isinstance(price_series, list): # TALIB-supplied input names # <<<<<<<<<<<<<< - * for name in price_series: - * input_price_series_names.append(name) - */ - goto __pyx_L5; - } - - /* "talib/abstract.pyx":370 - * input_price_series_names.append(name) - * else: # name came from __INPUT_PRICE_SERIES_DEFAULTS - * input_price_series_names.append(price_series) # <<<<<<<<<<<<<< - * return input_price_series_names - * - */ - /*else*/ { - __pyx_t_10 = __Pyx_PyList_Append(__pyx_v_input_price_series_names, __pyx_v_price_series); if (unlikely(__pyx_t_10 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 370; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - } - __pyx_L5:; - - /* "talib/abstract.pyx":364 - * def __input_price_series_names(self): - * input_price_series_names = [] - * for input_name in self.__input_names: # <<<<<<<<<<<<<< - * price_series = self.__input_names[input_name]['price_series'] - * if isinstance(price_series, list): # TALIB-supplied input names - */ - } - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/abstract.pyx":371 - * else: # name came from __INPUT_PRICE_SERIES_DEFAULTS - * input_price_series_names.append(price_series) - * return input_price_series_names # <<<<<<<<<<<<<< - * - * def __call_function(self): - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(__pyx_v_input_price_series_names); - __pyx_r = __pyx_v_input_price_series_names; - goto __pyx_L0; - - /* "talib/abstract.pyx":362 - * - * # figure out which price series names we're using for inputs - * def __input_price_series_names(self): # <<<<<<<<<<<<<< - * input_price_series_names = [] - * for input_name in self.__input_names: - */ - - /* function exit code */ - __pyx_L1_error:; - __Pyx_XDECREF(__pyx_t_1); - __Pyx_XDECREF(__pyx_t_2); - __Pyx_XDECREF(__pyx_t_5); - __Pyx_AddTraceback("talib.abstract.Function.__input_price_series_names", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF(__pyx_v_input_price_series_names); - __Pyx_XDECREF(__pyx_v_input_name); - __Pyx_XDECREF(__pyx_v_price_series); - __Pyx_XDECREF(__pyx_v_name); - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "talib/abstract.pyx":373 - * return input_price_series_names - * - * def __call_function(self): # <<<<<<<<<<<<<< - * input_price_series_names = self.__input_price_series_names() - * - */ - -/* Python wrapper */ -static PyObject *__pyx_pw_5talib_8abstract_8Function_37__call_function(PyObject *__pyx_self, PyObject *__pyx_v_self); /*proto*/ -static PyMethodDef __pyx_mdef_5talib_8abstract_8Function_37__call_function = {"__call_function", (PyCFunction)__pyx_pw_5talib_8abstract_8Function_37__call_function, METH_O, 0}; -static PyObject *__pyx_pw_5talib_8abstract_8Function_37__call_function(PyObject *__pyx_self, PyObject *__pyx_v_self) { - PyObject *__pyx_r = 0; - __Pyx_RefNannyDeclarations - __Pyx_RefNannySetupContext("__call_function (wrapper)", 0); - __pyx_r = __pyx_pf_5talib_8abstract_8Function_36__call_function(__pyx_self, ((PyObject *)__pyx_v_self)); - - /* function exit code */ - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -static PyObject *__pyx_pf_5talib_8abstract_8Function_36__call_function(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self) { - PyObject *__pyx_v_input_price_series_names = NULL; - PyObject *__pyx_v_args = NULL; - PyObject *__pyx_v_price_series = NULL; - PyObject *__pyx_v_series = NULL; - PyObject *__pyx_v_opt_input = NULL; - PyObject *__pyx_v_value = NULL; - PyObject *__pyx_v_results = NULL; - PyObject *__pyx_v_keys = NULL; - PyObject *__pyx_v_i = NULL; - PyObject *__pyx_v_output = NULL; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - PyObject *__pyx_t_1 = NULL; - PyObject *__pyx_t_2 = NULL; - PyObject *__pyx_t_3 = NULL; - Py_ssize_t __pyx_t_4; - PyObject *(*__pyx_t_5)(PyObject *); - int __pyx_t_6; - int __pyx_t_7; - int __pyx_t_8; - int __pyx_t_9; - PyObject *__pyx_t_10 = NULL; - PyObject *__pyx_t_11 = NULL; - int __pyx_lineno = 0; - const char *__pyx_filename = NULL; - int __pyx_clineno = 0; - __Pyx_RefNannySetupContext("__call_function", 0); - - /* "talib/abstract.pyx":374 - * - * def __call_function(self): - * input_price_series_names = self.__input_price_series_names() # <<<<<<<<<<<<<< - * - * # populate the ordered args we'll call the function with - */ - __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__input_price_series_na); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 374; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __pyx_t_3 = NULL; - if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_2))) { - __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); - if (likely(__pyx_t_3)) { - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); - __Pyx_INCREF(__pyx_t_3); - __Pyx_INCREF(function); - __Pyx_DECREF_SET(__pyx_t_2, function); - } - } - if (__pyx_t_3) { - __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 374; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - } else { - __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 374; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - } - __Pyx_GOTREF(__pyx_t_1); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __pyx_v_input_price_series_names = __pyx_t_1; - __pyx_t_1 = 0; - - /* "talib/abstract.pyx":377 - * - * # populate the ordered args we'll call the function with - * args = [] # <<<<<<<<<<<<<< - * for price_series in input_price_series_names: - * series = self.__input_arrays[price_series] - */ - __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 377; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - __pyx_v_args = ((PyObject*)__pyx_t_1); - __pyx_t_1 = 0; - - /* "talib/abstract.pyx":378 - * # populate the ordered args we'll call the function with - * args = [] - * for price_series in input_price_series_names: # <<<<<<<<<<<<<< - * series = self.__input_arrays[price_series] - * if __PANDAS_SERIES is not None and \ - */ - if (likely(PyList_CheckExact(__pyx_v_input_price_series_names)) || PyTuple_CheckExact(__pyx_v_input_price_series_names)) { - __pyx_t_1 = __pyx_v_input_price_series_names; __Pyx_INCREF(__pyx_t_1); __pyx_t_4 = 0; - __pyx_t_5 = NULL; - } else { - __pyx_t_4 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_v_input_price_series_names); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 378; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - __pyx_t_5 = Py_TYPE(__pyx_t_1)->tp_iternext; if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 378; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - } - for (;;) { - if (likely(!__pyx_t_5)) { - if (likely(PyList_CheckExact(__pyx_t_1))) { - if (__pyx_t_4 >= PyList_GET_SIZE(__pyx_t_1)) break; - #if CYTHON_COMPILING_IN_CPYTHON - __pyx_t_2 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_4); __Pyx_INCREF(__pyx_t_2); __pyx_t_4++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 378; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - #else - __pyx_t_2 = PySequence_ITEM(__pyx_t_1, __pyx_t_4); __pyx_t_4++; if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 378; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - #endif - } else { - if (__pyx_t_4 >= PyTuple_GET_SIZE(__pyx_t_1)) break; - #if CYTHON_COMPILING_IN_CPYTHON - __pyx_t_2 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_4); __Pyx_INCREF(__pyx_t_2); __pyx_t_4++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 378; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - #else - __pyx_t_2 = PySequence_ITEM(__pyx_t_1, __pyx_t_4); __pyx_t_4++; if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 378; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - #endif - } - } else { - __pyx_t_2 = __pyx_t_5(__pyx_t_1); - if (unlikely(!__pyx_t_2)) { - PyObject* exc_type = PyErr_Occurred(); - if (exc_type) { - if (likely(exc_type == PyExc_StopIteration || PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); - else {__pyx_filename = __pyx_f[0]; __pyx_lineno = 378; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - } - break; - } - __Pyx_GOTREF(__pyx_t_2); - } - __Pyx_XDECREF_SET(__pyx_v_price_series, __pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/abstract.pyx":379 - * args = [] - * for price_series in input_price_series_names: - * series = self.__input_arrays[price_series] # <<<<<<<<<<<<<< - * if __PANDAS_SERIES is not None and \ - * isinstance(series, __PANDAS_SERIES): - */ - __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__input_arrays); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 379; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __pyx_t_3 = PyObject_GetItem(__pyx_t_2, __pyx_v_price_series); if (unlikely(__pyx_t_3 == NULL)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 379; __pyx_clineno = __LINE__; goto __pyx_L1_error;}; - __Pyx_GOTREF(__pyx_t_3); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __Pyx_XDECREF_SET(__pyx_v_series, __pyx_t_3); - __pyx_t_3 = 0; - - /* "talib/abstract.pyx":380 - * for price_series in input_price_series_names: - * series = self.__input_arrays[price_series] - * if __PANDAS_SERIES is not None and \ # <<<<<<<<<<<<<< - * isinstance(series, __PANDAS_SERIES): - * series = series.values - */ - __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_PANDAS_SERIES); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 380; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_3); - __pyx_t_7 = (__pyx_t_3 != Py_None); - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __pyx_t_8 = (__pyx_t_7 != 0); - if (__pyx_t_8) { - } else { - __pyx_t_6 = __pyx_t_8; - goto __pyx_L6_bool_binop_done; - } - - /* "talib/abstract.pyx":381 - * series = self.__input_arrays[price_series] - * if __PANDAS_SERIES is not None and \ - * isinstance(series, __PANDAS_SERIES): # <<<<<<<<<<<<<< - * series = series.values - * args.append(series) - */ - __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_PANDAS_SERIES); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 381; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_3); - __pyx_t_8 = PyObject_IsInstance(__pyx_v_series, __pyx_t_3); if (unlikely(__pyx_t_8 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 381; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __pyx_t_7 = (__pyx_t_8 != 0); - __pyx_t_6 = __pyx_t_7; - __pyx_L6_bool_binop_done:; - - /* "talib/abstract.pyx":380 - * for price_series in input_price_series_names: - * series = self.__input_arrays[price_series] - * if __PANDAS_SERIES is not None and \ # <<<<<<<<<<<<<< - * isinstance(series, __PANDAS_SERIES): - * series = series.values - */ - if (__pyx_t_6) { - - /* "talib/abstract.pyx":382 - * if __PANDAS_SERIES is not None and \ - * isinstance(series, __PANDAS_SERIES): - * series = series.values # <<<<<<<<<<<<<< - * args.append(series) - * for opt_input in self.__opt_inputs: - */ - __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_series, __pyx_n_s_values); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 382; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_3); - __Pyx_DECREF_SET(__pyx_v_series, __pyx_t_3); - __pyx_t_3 = 0; - - /* "talib/abstract.pyx":380 - * for price_series in input_price_series_names: - * series = self.__input_arrays[price_series] - * if __PANDAS_SERIES is not None and \ # <<<<<<<<<<<<<< - * isinstance(series, __PANDAS_SERIES): - * series = series.values - */ - } - - /* "talib/abstract.pyx":383 - * isinstance(series, __PANDAS_SERIES): - * series = series.values - * args.append(series) # <<<<<<<<<<<<<< - * for opt_input in self.__opt_inputs: - * value = self.__get_opt_input_value(opt_input) - */ - __pyx_t_9 = __Pyx_PyList_Append(__pyx_v_args, __pyx_v_series); if (unlikely(__pyx_t_9 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 383; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - - /* "talib/abstract.pyx":378 - * # populate the ordered args we'll call the function with - * args = [] - * for price_series in input_price_series_names: # <<<<<<<<<<<<<< - * series = self.__input_arrays[price_series] - * if __PANDAS_SERIES is not None and \ - */ - } - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - - /* "talib/abstract.pyx":384 - * series = series.values - * args.append(series) - * for opt_input in self.__opt_inputs: # <<<<<<<<<<<<<< - * value = self.__get_opt_input_value(opt_input) - * args.append(value) - */ - __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__opt_inputs); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 384; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - if (likely(PyList_CheckExact(__pyx_t_1)) || PyTuple_CheckExact(__pyx_t_1)) { - __pyx_t_3 = __pyx_t_1; __Pyx_INCREF(__pyx_t_3); __pyx_t_4 = 0; - __pyx_t_5 = NULL; - } else { - __pyx_t_4 = -1; __pyx_t_3 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 384; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_3); - __pyx_t_5 = Py_TYPE(__pyx_t_3)->tp_iternext; if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 384; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - } - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - for (;;) { - if (likely(!__pyx_t_5)) { - if (likely(PyList_CheckExact(__pyx_t_3))) { - if (__pyx_t_4 >= PyList_GET_SIZE(__pyx_t_3)) break; - #if CYTHON_COMPILING_IN_CPYTHON - __pyx_t_1 = PyList_GET_ITEM(__pyx_t_3, __pyx_t_4); __Pyx_INCREF(__pyx_t_1); __pyx_t_4++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 384; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - #else - __pyx_t_1 = PySequence_ITEM(__pyx_t_3, __pyx_t_4); __pyx_t_4++; if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 384; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - #endif - } else { - if (__pyx_t_4 >= PyTuple_GET_SIZE(__pyx_t_3)) break; - #if CYTHON_COMPILING_IN_CPYTHON - __pyx_t_1 = PyTuple_GET_ITEM(__pyx_t_3, __pyx_t_4); __Pyx_INCREF(__pyx_t_1); __pyx_t_4++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 384; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - #else - __pyx_t_1 = PySequence_ITEM(__pyx_t_3, __pyx_t_4); __pyx_t_4++; if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 384; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - #endif - } - } else { - __pyx_t_1 = __pyx_t_5(__pyx_t_3); - if (unlikely(!__pyx_t_1)) { - PyObject* exc_type = PyErr_Occurred(); - if (exc_type) { - if (likely(exc_type == PyExc_StopIteration || PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); - else {__pyx_filename = __pyx_f[0]; __pyx_lineno = 384; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - } - break; - } - __Pyx_GOTREF(__pyx_t_1); - } - __Pyx_XDECREF_SET(__pyx_v_opt_input, __pyx_t_1); - __pyx_t_1 = 0; - - /* "talib/abstract.pyx":385 - * args.append(series) - * for opt_input in self.__opt_inputs: - * value = self.__get_opt_input_value(opt_input) # <<<<<<<<<<<<<< - * args.append(value) - * - */ - __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__get_opt_input_value); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 385; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __pyx_t_10 = NULL; - if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_2))) { - __pyx_t_10 = PyMethod_GET_SELF(__pyx_t_2); - if (likely(__pyx_t_10)) { - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); - __Pyx_INCREF(__pyx_t_10); - __Pyx_INCREF(function); - __Pyx_DECREF_SET(__pyx_t_2, function); - } - } - if (!__pyx_t_10) { - __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_v_opt_input); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 385; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - } else { - __pyx_t_11 = PyTuple_New(1+1); if (unlikely(!__pyx_t_11)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 385; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_11); - __Pyx_GIVEREF(__pyx_t_10); PyTuple_SET_ITEM(__pyx_t_11, 0, __pyx_t_10); __pyx_t_10 = NULL; - __Pyx_INCREF(__pyx_v_opt_input); - __Pyx_GIVEREF(__pyx_v_opt_input); - PyTuple_SET_ITEM(__pyx_t_11, 0+1, __pyx_v_opt_input); - __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_11, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 385; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; - } - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __Pyx_XDECREF_SET(__pyx_v_value, __pyx_t_1); - __pyx_t_1 = 0; - - /* "talib/abstract.pyx":386 - * for opt_input in self.__opt_inputs: - * value = self.__get_opt_input_value(opt_input) - * args.append(value) # <<<<<<<<<<<<<< - * - * # Use the func module to actually call the function. - */ - __pyx_t_9 = __Pyx_PyList_Append(__pyx_v_args, __pyx_v_value); if (unlikely(__pyx_t_9 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 386; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - - /* "talib/abstract.pyx":384 - * series = series.values - * args.append(series) - * for opt_input in self.__opt_inputs: # <<<<<<<<<<<<<< - * value = self.__get_opt_input_value(opt_input) - * args.append(value) - */ - } - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/abstract.pyx":389 - * - * # Use the func module to actually call the function. - * results = func_c.__getattribute__(self.__namestr)(*args) # <<<<<<<<<<<<<< - * if isinstance(results, np.ndarray): - * keys = self.__outputs.keys() - */ - __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_func_c); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 389; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_getattribute); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 389; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__namestr); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 389; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - __pyx_t_11 = NULL; - if (CYTHON_COMPILING_IN_CPYTHON && unlikely(PyMethod_Check(__pyx_t_2))) { - __pyx_t_11 = PyMethod_GET_SELF(__pyx_t_2); - if (likely(__pyx_t_11)) { - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); - __Pyx_INCREF(__pyx_t_11); - __Pyx_INCREF(function); - __Pyx_DECREF_SET(__pyx_t_2, function); - } - } - if (!__pyx_t_11) { - __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 389; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __Pyx_GOTREF(__pyx_t_3); - } else { - __pyx_t_10 = PyTuple_New(1+1); if (unlikely(!__pyx_t_10)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 389; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_10); - __Pyx_GIVEREF(__pyx_t_11); PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_t_11); __pyx_t_11 = NULL; - __Pyx_GIVEREF(__pyx_t_1); - PyTuple_SET_ITEM(__pyx_t_10, 0+1, __pyx_t_1); - __pyx_t_1 = 0; - __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_10, NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 389; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_3); - __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; - } - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __pyx_t_2 = PySequence_Tuple(__pyx_v_args); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 389; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __pyx_t_10 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_2, NULL); if (unlikely(!__pyx_t_10)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 389; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_10); - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __pyx_v_results = __pyx_t_10; - __pyx_t_10 = 0; - - /* "talib/abstract.pyx":390 - * # Use the func module to actually call the function. - * results = func_c.__getattribute__(self.__namestr)(*args) - * if isinstance(results, np.ndarray): # <<<<<<<<<<<<<< - * keys = self.__outputs.keys() - * if not isinstance(keys, list): - */ - __pyx_t_6 = __Pyx_TypeCheck(__pyx_v_results, __pyx_ptype_5numpy_ndarray); - __pyx_t_7 = (__pyx_t_6 != 0); - if (__pyx_t_7) { - - /* "talib/abstract.pyx":391 - * results = func_c.__getattribute__(self.__namestr)(*args) - * if isinstance(results, np.ndarray): - * keys = self.__outputs.keys() # <<<<<<<<<<<<<< - * if not isinstance(keys, list): - * keys = list(keys) - */ - __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__outputs); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 391; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_keys); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 391; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_3); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __pyx_t_2 = NULL; - if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_3))) { - __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3); - if (likely(__pyx_t_2)) { - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); - __Pyx_INCREF(__pyx_t_2); - __Pyx_INCREF(function); - __Pyx_DECREF_SET(__pyx_t_3, function); - } - } - if (__pyx_t_2) { - __pyx_t_10 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_2); if (unlikely(!__pyx_t_10)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 391; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - } else { - __pyx_t_10 = __Pyx_PyObject_CallNoArg(__pyx_t_3); if (unlikely(!__pyx_t_10)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 391; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - } - __Pyx_GOTREF(__pyx_t_10); - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __pyx_v_keys = __pyx_t_10; - __pyx_t_10 = 0; - - /* "talib/abstract.pyx":392 - * if isinstance(results, np.ndarray): - * keys = self.__outputs.keys() - * if not isinstance(keys, list): # <<<<<<<<<<<<<< - * keys = list(keys) - * self.__outputs[keys[0]] = results - */ - __pyx_t_7 = PyList_Check(__pyx_v_keys); - __pyx_t_6 = ((!(__pyx_t_7 != 0)) != 0); - if (__pyx_t_6) { - - /* "talib/abstract.pyx":393 - * keys = self.__outputs.keys() - * if not isinstance(keys, list): - * keys = list(keys) # <<<<<<<<<<<<<< - * self.__outputs[keys[0]] = results - * else: - */ - __pyx_t_10 = PySequence_List(__pyx_v_keys); if (unlikely(!__pyx_t_10)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 393; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_10); - __Pyx_DECREF_SET(__pyx_v_keys, __pyx_t_10); - __pyx_t_10 = 0; - - /* "talib/abstract.pyx":392 - * if isinstance(results, np.ndarray): - * keys = self.__outputs.keys() - * if not isinstance(keys, list): # <<<<<<<<<<<<<< - * keys = list(keys) - * self.__outputs[keys[0]] = results - */ - } - - /* "talib/abstract.pyx":394 - * if not isinstance(keys, list): - * keys = list(keys) - * self.__outputs[keys[0]] = results # <<<<<<<<<<<<<< - * else: - * for i, output in enumerate(self.__outputs): - */ - __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__outputs); if (unlikely(!__pyx_t_10)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 394; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_10); - __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_keys, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(__pyx_t_3 == NULL)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 394; __pyx_clineno = __LINE__; goto __pyx_L1_error;}; - __Pyx_GOTREF(__pyx_t_3); - if (unlikely(PyObject_SetItem(__pyx_t_10, __pyx_t_3, __pyx_v_results) < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 394; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/abstract.pyx":390 - * # Use the func module to actually call the function. - * results = func_c.__getattribute__(self.__namestr)(*args) - * if isinstance(results, np.ndarray): # <<<<<<<<<<<<<< - * keys = self.__outputs.keys() - * if not isinstance(keys, list): - */ - goto __pyx_L10; - } - - /* "talib/abstract.pyx":396 - * self.__outputs[keys[0]] = results - * else: - * for i, output in enumerate(self.__outputs): # <<<<<<<<<<<<<< - * self.__outputs[output] = results[i] - * self.__outputs_valid = True - */ - /*else*/ { - __Pyx_INCREF(__pyx_int_0); - __pyx_t_3 = __pyx_int_0; - __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__outputs); if (unlikely(!__pyx_t_10)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 396; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_10); - if (likely(PyList_CheckExact(__pyx_t_10)) || PyTuple_CheckExact(__pyx_t_10)) { - __pyx_t_2 = __pyx_t_10; __Pyx_INCREF(__pyx_t_2); __pyx_t_4 = 0; - __pyx_t_5 = NULL; - } else { - __pyx_t_4 = -1; __pyx_t_2 = PyObject_GetIter(__pyx_t_10); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 396; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __pyx_t_5 = Py_TYPE(__pyx_t_2)->tp_iternext; if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 396; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - } - __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; - for (;;) { - if (likely(!__pyx_t_5)) { - if (likely(PyList_CheckExact(__pyx_t_2))) { - if (__pyx_t_4 >= PyList_GET_SIZE(__pyx_t_2)) break; - #if CYTHON_COMPILING_IN_CPYTHON - __pyx_t_10 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_4); __Pyx_INCREF(__pyx_t_10); __pyx_t_4++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 396; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - #else - __pyx_t_10 = PySequence_ITEM(__pyx_t_2, __pyx_t_4); __pyx_t_4++; if (unlikely(!__pyx_t_10)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 396; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_10); - #endif - } else { - if (__pyx_t_4 >= PyTuple_GET_SIZE(__pyx_t_2)) break; - #if CYTHON_COMPILING_IN_CPYTHON - __pyx_t_10 = PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_4); __Pyx_INCREF(__pyx_t_10); __pyx_t_4++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 396; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - #else - __pyx_t_10 = PySequence_ITEM(__pyx_t_2, __pyx_t_4); __pyx_t_4++; if (unlikely(!__pyx_t_10)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 396; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_10); - #endif - } - } else { - __pyx_t_10 = __pyx_t_5(__pyx_t_2); - if (unlikely(!__pyx_t_10)) { - PyObject* exc_type = PyErr_Occurred(); - if (exc_type) { - if (likely(exc_type == PyExc_StopIteration || PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); - else {__pyx_filename = __pyx_f[0]; __pyx_lineno = 396; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - } - break; - } - __Pyx_GOTREF(__pyx_t_10); - } - __Pyx_XDECREF_SET(__pyx_v_output, __pyx_t_10); - __pyx_t_10 = 0; - __Pyx_INCREF(__pyx_t_3); - __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_3); - __pyx_t_10 = __Pyx_PyInt_AddObjC(__pyx_t_3, __pyx_int_1, 1, 0); if (unlikely(!__pyx_t_10)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 396; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_10); - __Pyx_DECREF(__pyx_t_3); - __pyx_t_3 = __pyx_t_10; - __pyx_t_10 = 0; - - /* "talib/abstract.pyx":397 - * else: - * for i, output in enumerate(self.__outputs): - * self.__outputs[output] = results[i] # <<<<<<<<<<<<<< - * self.__outputs_valid = True - * - */ - __pyx_t_10 = PyObject_GetItem(__pyx_v_results, __pyx_v_i); if (unlikely(__pyx_t_10 == NULL)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 397; __pyx_clineno = __LINE__; goto __pyx_L1_error;}; - __Pyx_GOTREF(__pyx_t_10); - __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__outputs); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 397; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - if (unlikely(PyObject_SetItem(__pyx_t_1, __pyx_v_output, __pyx_t_10) < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 397; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; - - /* "talib/abstract.pyx":396 - * self.__outputs[keys[0]] = results - * else: - * for i, output in enumerate(self.__outputs): # <<<<<<<<<<<<<< - * self.__outputs[output] = results[i] - * self.__outputs_valid = True - */ - } - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - } - __pyx_L10:; - - /* "talib/abstract.pyx":398 - * for i, output in enumerate(self.__outputs): - * self.__outputs[output] = results[i] - * self.__outputs_valid = True # <<<<<<<<<<<<<< - * - * def __get_opt_input_value(self, input_name): - */ - if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_Function__outputs_valid, Py_True) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 398; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - - /* "talib/abstract.pyx":373 - * return input_price_series_names - * - * def __call_function(self): # <<<<<<<<<<<<<< - * input_price_series_names = self.__input_price_series_names() - * - */ - - /* function exit code */ - __pyx_r = Py_None; __Pyx_INCREF(Py_None); - goto __pyx_L0; - __pyx_L1_error:; - __Pyx_XDECREF(__pyx_t_1); - __Pyx_XDECREF(__pyx_t_2); - __Pyx_XDECREF(__pyx_t_3); - __Pyx_XDECREF(__pyx_t_10); - __Pyx_XDECREF(__pyx_t_11); - __Pyx_AddTraceback("talib.abstract.Function.__call_function", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF(__pyx_v_input_price_series_names); - __Pyx_XDECREF(__pyx_v_args); - __Pyx_XDECREF(__pyx_v_price_series); - __Pyx_XDECREF(__pyx_v_series); - __Pyx_XDECREF(__pyx_v_opt_input); - __Pyx_XDECREF(__pyx_v_value); - __Pyx_XDECREF(__pyx_v_results); - __Pyx_XDECREF(__pyx_v_keys); - __Pyx_XDECREF(__pyx_v_i); - __Pyx_XDECREF(__pyx_v_output); - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "talib/abstract.pyx":400 - * self.__outputs_valid = True - * - * def __get_opt_input_value(self, input_name): # <<<<<<<<<<<<<< - * """ - * Returns the user-set value if there is one, otherwise the default. - */ - -/* Python wrapper */ -static PyObject *__pyx_pw_5talib_8abstract_8Function_39__get_opt_input_value(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_8abstract_8Function_38__get_opt_input_value[] = "\n Returns the user-set value if there is one, otherwise the default.\n "; -static PyMethodDef __pyx_mdef_5talib_8abstract_8Function_39__get_opt_input_value = {"__get_opt_input_value", (PyCFunction)__pyx_pw_5talib_8abstract_8Function_39__get_opt_input_value, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8abstract_8Function_38__get_opt_input_value}; -static PyObject *__pyx_pw_5talib_8abstract_8Function_39__get_opt_input_value(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { - PyObject *__pyx_v_self = 0; - PyObject *__pyx_v_input_name = 0; - int __pyx_lineno = 0; - const char *__pyx_filename = NULL; - int __pyx_clineno = 0; - PyObject *__pyx_r = 0; - __Pyx_RefNannyDeclarations - __Pyx_RefNannySetupContext("__get_opt_input_value (wrapper)", 0); - { - static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_self,&__pyx_n_s_input_name,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_self)) != 0)) kw_args--; - else goto __pyx_L5_argtuple_error; - case 1: - if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_input_name)) != 0)) kw_args--; - else { - __Pyx_RaiseArgtupleInvalid("__get_opt_input_value", 1, 2, 2, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 400; __pyx_clineno = __LINE__; goto __pyx_L3_error;} - } - } - if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__get_opt_input_value") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 400; __pyx_clineno = __LINE__; goto __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_self = values[0]; - __pyx_v_input_name = values[1]; - } - goto __pyx_L4_argument_unpacking_done; - __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("__get_opt_input_value", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 400; __pyx_clineno = __LINE__; goto __pyx_L3_error;} - __pyx_L3_error:; - __Pyx_AddTraceback("talib.abstract.Function.__get_opt_input_value", __pyx_clineno, __pyx_lineno, __pyx_filename); - __Pyx_RefNannyFinishContext(); - return NULL; - __pyx_L4_argument_unpacking_done:; - __pyx_r = __pyx_pf_5talib_8abstract_8Function_38__get_opt_input_value(__pyx_self, __pyx_v_self, __pyx_v_input_name); - - /* function exit code */ - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -static PyObject *__pyx_pf_5talib_8abstract_8Function_38__get_opt_input_value(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_input_name) { - PyObject *__pyx_v_value = NULL; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - PyObject *__pyx_t_1 = NULL; - PyObject *__pyx_t_2 = NULL; - int __pyx_t_3; - int __pyx_t_4; - int __pyx_lineno = 0; - const char *__pyx_filename = NULL; - int __pyx_clineno = 0; - __Pyx_RefNannySetupContext("__get_opt_input_value", 0); - - /* "talib/abstract.pyx":404 - * Returns the user-set value if there is one, otherwise the default. - * """ - * value = self.__opt_inputs[input_name]['value'] # <<<<<<<<<<<<<< - * if value is None: - * value = self.__opt_inputs[input_name]['default_value'] - */ - __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__opt_inputs); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 404; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - __pyx_t_2 = PyObject_GetItem(__pyx_t_1, __pyx_v_input_name); if (unlikely(__pyx_t_2 == NULL)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 404; __pyx_clineno = __LINE__; goto __pyx_L1_error;}; - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __pyx_t_1 = PyObject_GetItem(__pyx_t_2, __pyx_n_s_value); if (unlikely(__pyx_t_1 == NULL)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 404; __pyx_clineno = __LINE__; goto __pyx_L1_error;}; - __Pyx_GOTREF(__pyx_t_1); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __pyx_v_value = __pyx_t_1; - __pyx_t_1 = 0; - - /* "talib/abstract.pyx":405 - * """ - * value = self.__opt_inputs[input_name]['value'] - * if value is None: # <<<<<<<<<<<<<< - * value = self.__opt_inputs[input_name]['default_value'] - * return value - */ - __pyx_t_3 = (__pyx_v_value == Py_None); - __pyx_t_4 = (__pyx_t_3 != 0); - if (__pyx_t_4) { - - /* "talib/abstract.pyx":406 - * value = self.__opt_inputs[input_name]['value'] - * if value is None: - * value = self.__opt_inputs[input_name]['default_value'] # <<<<<<<<<<<<<< - * return value - * - */ - __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__opt_inputs); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 406; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - __pyx_t_2 = PyObject_GetItem(__pyx_t_1, __pyx_v_input_name); if (unlikely(__pyx_t_2 == NULL)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 406; __pyx_clineno = __LINE__; goto __pyx_L1_error;}; - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __pyx_t_1 = PyObject_GetItem(__pyx_t_2, __pyx_n_s_default_value); if (unlikely(__pyx_t_1 == NULL)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 406; __pyx_clineno = __LINE__; goto __pyx_L1_error;}; - __Pyx_GOTREF(__pyx_t_1); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __Pyx_DECREF_SET(__pyx_v_value, __pyx_t_1); - __pyx_t_1 = 0; - - /* "talib/abstract.pyx":405 - * """ - * value = self.__opt_inputs[input_name]['value'] - * if value is None: # <<<<<<<<<<<<<< - * value = self.__opt_inputs[input_name]['default_value'] - * return value - */ - } - - /* "talib/abstract.pyx":407 - * if value is None: - * value = self.__opt_inputs[input_name]['default_value'] - * return value # <<<<<<<<<<<<<< - * - * def __repr__(self): - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(__pyx_v_value); - __pyx_r = __pyx_v_value; - goto __pyx_L0; - - /* "talib/abstract.pyx":400 - * self.__outputs_valid = True - * - * def __get_opt_input_value(self, input_name): # <<<<<<<<<<<<<< - * """ - * Returns the user-set value if there is one, otherwise the default. - */ - - /* function exit code */ - __pyx_L1_error:; - __Pyx_XDECREF(__pyx_t_1); - __Pyx_XDECREF(__pyx_t_2); - __Pyx_AddTraceback("talib.abstract.Function.__get_opt_input_value", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF(__pyx_v_value); - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "talib/abstract.pyx":409 - * return value - * - * def __repr__(self): # <<<<<<<<<<<<<< - * return '%s' % self.info - * - */ - -/* Python wrapper */ -static PyObject *__pyx_pw_5talib_8abstract_8Function_41__repr__(PyObject *__pyx_self, PyObject *__pyx_v_self); /*proto*/ -static PyMethodDef __pyx_mdef_5talib_8abstract_8Function_41__repr__ = {"__repr__", (PyCFunction)__pyx_pw_5talib_8abstract_8Function_41__repr__, METH_O, 0}; -static PyObject *__pyx_pw_5talib_8abstract_8Function_41__repr__(PyObject *__pyx_self, PyObject *__pyx_v_self) { - PyObject *__pyx_r = 0; - __Pyx_RefNannyDeclarations - __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0); - __pyx_r = __pyx_pf_5talib_8abstract_8Function_40__repr__(__pyx_self, ((PyObject *)__pyx_v_self)); - - /* function exit code */ - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -static PyObject *__pyx_pf_5talib_8abstract_8Function_40__repr__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self) { - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - PyObject *__pyx_t_1 = NULL; - PyObject *__pyx_t_2 = NULL; - int __pyx_lineno = 0; - const char *__pyx_filename = NULL; - int __pyx_clineno = 0; - __Pyx_RefNannySetupContext("__repr__", 0); - - /* "talib/abstract.pyx":410 - * - * def __repr__(self): - * return '%s' % self.info # <<<<<<<<<<<<<< - * - * def __unicode__(self): - */ - __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_info); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 410; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - __pyx_t_2 = __Pyx_PyString_Format(__pyx_kp_s_s_2, __pyx_t_1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 410; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __pyx_r = __pyx_t_2; - __pyx_t_2 = 0; - goto __pyx_L0; - - /* "talib/abstract.pyx":409 - * return value - * - * def __repr__(self): # <<<<<<<<<<<<<< - * return '%s' % self.info - * - */ - - /* function exit code */ - __pyx_L1_error:; - __Pyx_XDECREF(__pyx_t_1); - __Pyx_XDECREF(__pyx_t_2); - __Pyx_AddTraceback("talib.abstract.Function.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "talib/abstract.pyx":412 - * return '%s' % self.info - * - * def __unicode__(self): # <<<<<<<<<<<<<< - * return unicode(self.__str__()) - * - */ - -/* Python wrapper */ -static PyObject *__pyx_pw_5talib_8abstract_8Function_43__unicode__(PyObject *__pyx_self, PyObject *__pyx_v_self); /*proto*/ -static PyMethodDef __pyx_mdef_5talib_8abstract_8Function_43__unicode__ = {"__unicode__", (PyCFunction)__pyx_pw_5talib_8abstract_8Function_43__unicode__, METH_O, 0}; -static PyObject *__pyx_pw_5talib_8abstract_8Function_43__unicode__(PyObject *__pyx_self, PyObject *__pyx_v_self) { - PyObject *__pyx_r = 0; - __Pyx_RefNannyDeclarations - __Pyx_RefNannySetupContext("__unicode__ (wrapper)", 0); - __pyx_r = __pyx_pf_5talib_8abstract_8Function_42__unicode__(__pyx_self, ((PyObject *)__pyx_v_self)); - - /* function exit code */ - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -static PyObject *__pyx_pf_5talib_8abstract_8Function_42__unicode__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self) { - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - PyObject *__pyx_t_1 = NULL; - PyObject *__pyx_t_2 = NULL; - PyObject *__pyx_t_3 = NULL; - int __pyx_lineno = 0; - const char *__pyx_filename = NULL; - int __pyx_clineno = 0; - __Pyx_RefNannySetupContext("__unicode__", 0); - - /* "talib/abstract.pyx":413 - * - * def __unicode__(self): - * return unicode(self.__str__()) # <<<<<<<<<<<<<< - * - * def __str__(self): - */ - __Pyx_XDECREF(__pyx_r); - __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_str); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 413; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __pyx_t_3 = NULL; - if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_2))) { - __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); - if (likely(__pyx_t_3)) { - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); - __Pyx_INCREF(__pyx_t_3); - __Pyx_INCREF(function); - __Pyx_DECREF_SET(__pyx_t_2, function); - } - } - if (__pyx_t_3) { - __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 413; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - } else { - __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 413; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - } - __Pyx_GOTREF(__pyx_t_1); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 413; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __Pyx_GIVEREF(__pyx_t_1); - PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1); - __pyx_t_1 = 0; - __pyx_t_1 = __Pyx_PyObject_Call(((PyObject *)(&PyUnicode_Type)), __pyx_t_2, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 413; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __pyx_r = __pyx_t_1; - __pyx_t_1 = 0; - goto __pyx_L0; - - /* "talib/abstract.pyx":412 - * return '%s' % self.info - * - * def __unicode__(self): # <<<<<<<<<<<<<< - * return unicode(self.__str__()) - * - */ - - /* function exit code */ - __pyx_L1_error:; - __Pyx_XDECREF(__pyx_t_1); - __Pyx_XDECREF(__pyx_t_2); - __Pyx_XDECREF(__pyx_t_3); - __Pyx_AddTraceback("talib.abstract.Function.__unicode__", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "talib/abstract.pyx":415 - * return unicode(self.__str__()) - * - * def __str__(self): # <<<<<<<<<<<<<< - * return _get_defaults_and_docs(self.info)[1] # docstring includes defaults - * - */ - -/* Python wrapper */ -static PyObject *__pyx_pw_5talib_8abstract_8Function_45__str__(PyObject *__pyx_self, PyObject *__pyx_v_self); /*proto*/ -static PyMethodDef __pyx_mdef_5talib_8abstract_8Function_45__str__ = {"__str__", (PyCFunction)__pyx_pw_5talib_8abstract_8Function_45__str__, METH_O, 0}; -static PyObject *__pyx_pw_5talib_8abstract_8Function_45__str__(PyObject *__pyx_self, PyObject *__pyx_v_self) { - PyObject *__pyx_r = 0; - __Pyx_RefNannyDeclarations - __Pyx_RefNannySetupContext("__str__ (wrapper)", 0); - __pyx_r = __pyx_pf_5talib_8abstract_8Function_44__str__(__pyx_self, ((PyObject *)__pyx_v_self)); - - /* function exit code */ - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -static PyObject *__pyx_pf_5talib_8abstract_8Function_44__str__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self) { - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - PyObject *__pyx_t_1 = NULL; - PyObject *__pyx_t_2 = NULL; - PyObject *__pyx_t_3 = NULL; - PyObject *__pyx_t_4 = NULL; - PyObject *__pyx_t_5 = NULL; - int __pyx_lineno = 0; - const char *__pyx_filename = NULL; - int __pyx_clineno = 0; - __Pyx_RefNannySetupContext("__str__", 0); - - /* "talib/abstract.pyx":416 - * - * def __str__(self): - * return _get_defaults_and_docs(self.info)[1] # docstring includes defaults # <<<<<<<<<<<<<< - * - * - */ - __Pyx_XDECREF(__pyx_r); - __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_get_defaults_and_docs); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 416; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_info); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 416; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_3); - __pyx_t_4 = NULL; - if (CYTHON_COMPILING_IN_CPYTHON && unlikely(PyMethod_Check(__pyx_t_2))) { - __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2); - if (likely(__pyx_t_4)) { - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); - __Pyx_INCREF(__pyx_t_4); - __Pyx_INCREF(function); - __Pyx_DECREF_SET(__pyx_t_2, function); - } - } - if (!__pyx_t_4) { - __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 416; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __Pyx_GOTREF(__pyx_t_1); - } else { - __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 416; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_5); - __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL; - __Pyx_GIVEREF(__pyx_t_3); - PyTuple_SET_ITEM(__pyx_t_5, 0+1, __pyx_t_3); - __pyx_t_3 = 0; - __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 416; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - } - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __pyx_t_2 = __Pyx_GetItemInt(__pyx_t_1, 1, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(__pyx_t_2 == NULL)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 416; __pyx_clineno = __LINE__; goto __pyx_L1_error;}; - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __pyx_r = __pyx_t_2; - __pyx_t_2 = 0; - goto __pyx_L0; - - /* "talib/abstract.pyx":415 - * return unicode(self.__str__()) - * - * def __str__(self): # <<<<<<<<<<<<<< - * return _get_defaults_and_docs(self.info)[1] # docstring includes defaults - * - */ - - /* function exit code */ - __pyx_L1_error:; - __Pyx_XDECREF(__pyx_t_1); - __Pyx_XDECREF(__pyx_t_2); - __Pyx_XDECREF(__pyx_t_3); - __Pyx_XDECREF(__pyx_t_4); - __Pyx_XDECREF(__pyx_t_5); - __Pyx_AddTraceback("talib.abstract.Function.__str__", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "talib/abstract.pyx":429 - * # therefore recommended over using these functions directly. - * - * def _ta_getGroupTable(): # <<<<<<<<<<<<<< - * """ - * Returns the list of available TALIB function group names. *slow* - */ - -/* Python wrapper */ -static PyObject *__pyx_pw_5talib_8abstract_9_ta_getGroupTable(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ -static char __pyx_doc_5talib_8abstract_8_ta_getGroupTable[] = "\n Returns the list of available TALIB function group names. *slow*\n "; -static PyMethodDef __pyx_mdef_5talib_8abstract_9_ta_getGroupTable = {"_ta_getGroupTable", (PyCFunction)__pyx_pw_5talib_8abstract_9_ta_getGroupTable, METH_NOARGS, __pyx_doc_5talib_8abstract_8_ta_getGroupTable}; -static PyObject *__pyx_pw_5talib_8abstract_9_ta_getGroupTable(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { - PyObject *__pyx_r = 0; - __Pyx_RefNannyDeclarations - __Pyx_RefNannySetupContext("_ta_getGroupTable (wrapper)", 0); - __pyx_r = __pyx_pf_5talib_8abstract_8_ta_getGroupTable(__pyx_self); - - /* function exit code */ - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -static PyObject *__pyx_pf_5talib_8abstract_8_ta_getGroupTable(CYTHON_UNUSED PyObject *__pyx_self) { - TA_StringTable *__pyx_v_table; - PyObject *__pyx_v_groups = NULL; - unsigned int __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - PyObject *__pyx_t_1 = NULL; - PyObject *__pyx_t_2 = NULL; - PyObject *__pyx_t_3 = NULL; - PyObject *__pyx_t_4 = NULL; - Py_ssize_t __pyx_t_5; - PyObject *__pyx_t_6 = NULL; - unsigned int __pyx_t_7; - unsigned int __pyx_t_8; - int __pyx_t_9; - int __pyx_lineno = 0; - const char *__pyx_filename = NULL; - int __pyx_clineno = 0; - __Pyx_RefNannySetupContext("_ta_getGroupTable", 0); - - /* "talib/abstract.pyx":434 - * """ - * cdef lib.TA_StringTable *table - * _ta_check_success('TA_GroupTableAlloc', lib.TA_GroupTableAlloc(&table)) # <<<<<<<<<<<<<< - * groups = [] - * for i in xrange(table.size): - */ - __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_ta_check_success); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 434; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __pyx_t_3 = __Pyx_PyInt_From_TA_RetCode(TA_GroupTableAlloc((&__pyx_v_table))); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 434; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_3); - __pyx_t_4 = NULL; - __pyx_t_5 = 0; - if (CYTHON_COMPILING_IN_CPYTHON && unlikely(PyMethod_Check(__pyx_t_2))) { - __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2); - if (likely(__pyx_t_4)) { - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); - __Pyx_INCREF(__pyx_t_4); - __Pyx_INCREF(function); - __Pyx_DECREF_SET(__pyx_t_2, function); - __pyx_t_5 = 1; - } - } - __pyx_t_6 = PyTuple_New(2+__pyx_t_5); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 434; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_6); - if (__pyx_t_4) { - __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_4); __pyx_t_4 = NULL; - } - __Pyx_INCREF(__pyx_n_s_TA_GroupTableAlloc); - __Pyx_GIVEREF(__pyx_n_s_TA_GroupTableAlloc); - PyTuple_SET_ITEM(__pyx_t_6, 0+__pyx_t_5, __pyx_n_s_TA_GroupTableAlloc); - __Pyx_GIVEREF(__pyx_t_3); - PyTuple_SET_ITEM(__pyx_t_6, 1+__pyx_t_5, __pyx_t_3); - __pyx_t_3 = 0; - __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_6, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 434; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - - /* "talib/abstract.pyx":435 - * cdef lib.TA_StringTable *table - * _ta_check_success('TA_GroupTableAlloc', lib.TA_GroupTableAlloc(&table)) - * groups = [] # <<<<<<<<<<<<<< - * for i in xrange(table.size): - * groups.append(deref(&table.string[i])) - */ - __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 435; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - __pyx_v_groups = ((PyObject*)__pyx_t_1); - __pyx_t_1 = 0; - - /* "talib/abstract.pyx":436 - * _ta_check_success('TA_GroupTableAlloc', lib.TA_GroupTableAlloc(&table)) - * groups = [] - * for i in xrange(table.size): # <<<<<<<<<<<<<< - * groups.append(deref(&table.string[i])) - * _ta_check_success('TA_GroupTableFree', lib.TA_GroupTableFree(table)) - */ - __pyx_t_7 = __pyx_v_table->size; - for (__pyx_t_8 = 0; __pyx_t_8 < __pyx_t_7; __pyx_t_8+=1) { - __pyx_v_i = __pyx_t_8; - - /* "talib/abstract.pyx":437 - * groups = [] - * for i in xrange(table.size): - * groups.append(deref(&table.string[i])) # <<<<<<<<<<<<<< - * _ta_check_success('TA_GroupTableFree', lib.TA_GroupTableFree(table)) - * return groups - */ - __pyx_t_1 = __Pyx_PyBytes_FromString((*(&(__pyx_v_table->string[__pyx_v_i])))); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 437; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - __pyx_t_9 = __Pyx_PyList_Append(__pyx_v_groups, __pyx_t_1); if (unlikely(__pyx_t_9 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 437; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - } - - /* "talib/abstract.pyx":438 - * for i in xrange(table.size): - * groups.append(deref(&table.string[i])) - * _ta_check_success('TA_GroupTableFree', lib.TA_GroupTableFree(table)) # <<<<<<<<<<<<<< - * return groups - * - */ - __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_ta_check_success); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 438; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __pyx_t_6 = __Pyx_PyInt_From_TA_RetCode(TA_GroupTableFree(__pyx_v_table)); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 438; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_6); - __pyx_t_3 = NULL; - __pyx_t_5 = 0; - if (CYTHON_COMPILING_IN_CPYTHON && unlikely(PyMethod_Check(__pyx_t_2))) { - __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); - if (likely(__pyx_t_3)) { - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); - __Pyx_INCREF(__pyx_t_3); - __Pyx_INCREF(function); - __Pyx_DECREF_SET(__pyx_t_2, function); - __pyx_t_5 = 1; - } - } - __pyx_t_4 = PyTuple_New(2+__pyx_t_5); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 438; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_4); - if (__pyx_t_3) { - __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3); __pyx_t_3 = NULL; - } - __Pyx_INCREF(__pyx_n_s_TA_GroupTableFree); - __Pyx_GIVEREF(__pyx_n_s_TA_GroupTableFree); - PyTuple_SET_ITEM(__pyx_t_4, 0+__pyx_t_5, __pyx_n_s_TA_GroupTableFree); - __Pyx_GIVEREF(__pyx_t_6); - PyTuple_SET_ITEM(__pyx_t_4, 1+__pyx_t_5, __pyx_t_6); - __pyx_t_6 = 0; - __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_4, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 438; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - - /* "talib/abstract.pyx":439 - * groups.append(deref(&table.string[i])) - * _ta_check_success('TA_GroupTableFree', lib.TA_GroupTableFree(table)) - * return groups # <<<<<<<<<<<<<< - * - * def _ta_getFuncTable(char *group): - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(__pyx_v_groups); - __pyx_r = __pyx_v_groups; - goto __pyx_L0; - - /* "talib/abstract.pyx":429 - * # therefore recommended over using these functions directly. - * - * def _ta_getGroupTable(): # <<<<<<<<<<<<<< - * """ - * Returns the list of available TALIB function group names. *slow* - */ - - /* function exit code */ - __pyx_L1_error:; - __Pyx_XDECREF(__pyx_t_1); - __Pyx_XDECREF(__pyx_t_2); - __Pyx_XDECREF(__pyx_t_3); - __Pyx_XDECREF(__pyx_t_4); - __Pyx_XDECREF(__pyx_t_6); - __Pyx_AddTraceback("talib.abstract._ta_getGroupTable", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF(__pyx_v_groups); - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "talib/abstract.pyx":441 - * return groups - * - * def _ta_getFuncTable(char *group): # <<<<<<<<<<<<<< - * """ - * Returns a list of the functions for the specified group name. *slow* - */ - -/* Python wrapper */ -static PyObject *__pyx_pw_5talib_8abstract_11_ta_getFuncTable(PyObject *__pyx_self, PyObject *__pyx_arg_group); /*proto*/ -static char __pyx_doc_5talib_8abstract_10_ta_getFuncTable[] = "\n Returns a list of the functions for the specified group name. *slow*\n "; -static PyMethodDef __pyx_mdef_5talib_8abstract_11_ta_getFuncTable = {"_ta_getFuncTable", (PyCFunction)__pyx_pw_5talib_8abstract_11_ta_getFuncTable, METH_O, __pyx_doc_5talib_8abstract_10_ta_getFuncTable}; -static PyObject *__pyx_pw_5talib_8abstract_11_ta_getFuncTable(PyObject *__pyx_self, PyObject *__pyx_arg_group) { - char *__pyx_v_group; - int __pyx_lineno = 0; - const char *__pyx_filename = NULL; - int __pyx_clineno = 0; - PyObject *__pyx_r = 0; - __Pyx_RefNannyDeclarations - __Pyx_RefNannySetupContext("_ta_getFuncTable (wrapper)", 0); - assert(__pyx_arg_group); { - __pyx_v_group = __Pyx_PyObject_AsString(__pyx_arg_group); if (unlikely((!__pyx_v_group) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 441; __pyx_clineno = __LINE__; goto __pyx_L3_error;} - } - goto __pyx_L4_argument_unpacking_done; - __pyx_L3_error:; - __Pyx_AddTraceback("talib.abstract._ta_getFuncTable", __pyx_clineno, __pyx_lineno, __pyx_filename); - __Pyx_RefNannyFinishContext(); - return NULL; - __pyx_L4_argument_unpacking_done:; - __pyx_r = __pyx_pf_5talib_8abstract_10_ta_getFuncTable(__pyx_self, ((char *)__pyx_v_group)); - - /* function exit code */ - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -static PyObject *__pyx_pf_5talib_8abstract_10_ta_getFuncTable(CYTHON_UNUSED PyObject *__pyx_self, char *__pyx_v_group) { - TA_StringTable *__pyx_v_table; - PyObject *__pyx_v_functions = NULL; - unsigned int __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - PyObject *__pyx_t_1 = NULL; - PyObject *__pyx_t_2 = NULL; - PyObject *__pyx_t_3 = NULL; - PyObject *__pyx_t_4 = NULL; - Py_ssize_t __pyx_t_5; - PyObject *__pyx_t_6 = NULL; - unsigned int __pyx_t_7; - unsigned int __pyx_t_8; - int __pyx_t_9; - int __pyx_lineno = 0; - const char *__pyx_filename = NULL; - int __pyx_clineno = 0; - __Pyx_RefNannySetupContext("_ta_getFuncTable", 0); - - /* "talib/abstract.pyx":446 - * """ - * cdef lib.TA_StringTable *table - * _ta_check_success('TA_FuncTableAlloc', lib.TA_FuncTableAlloc(group, &table)) # <<<<<<<<<<<<<< - * functions = [] - * for i in xrange(table.size): - */ - __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_ta_check_success); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 446; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __pyx_t_3 = __Pyx_PyInt_From_TA_RetCode(TA_FuncTableAlloc(__pyx_v_group, (&__pyx_v_table))); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 446; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_3); - __pyx_t_4 = NULL; - __pyx_t_5 = 0; - if (CYTHON_COMPILING_IN_CPYTHON && unlikely(PyMethod_Check(__pyx_t_2))) { - __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2); - if (likely(__pyx_t_4)) { - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); - __Pyx_INCREF(__pyx_t_4); - __Pyx_INCREF(function); - __Pyx_DECREF_SET(__pyx_t_2, function); - __pyx_t_5 = 1; - } - } - __pyx_t_6 = PyTuple_New(2+__pyx_t_5); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 446; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_6); - if (__pyx_t_4) { - __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_4); __pyx_t_4 = NULL; - } - __Pyx_INCREF(__pyx_n_s_TA_FuncTableAlloc); - __Pyx_GIVEREF(__pyx_n_s_TA_FuncTableAlloc); - PyTuple_SET_ITEM(__pyx_t_6, 0+__pyx_t_5, __pyx_n_s_TA_FuncTableAlloc); - __Pyx_GIVEREF(__pyx_t_3); - PyTuple_SET_ITEM(__pyx_t_6, 1+__pyx_t_5, __pyx_t_3); - __pyx_t_3 = 0; - __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_6, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 446; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - - /* "talib/abstract.pyx":447 - * cdef lib.TA_StringTable *table - * _ta_check_success('TA_FuncTableAlloc', lib.TA_FuncTableAlloc(group, &table)) - * functions = [] # <<<<<<<<<<<<<< - * for i in xrange(table.size): - * functions.append(deref(&table.string[i])) - */ - __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 447; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - __pyx_v_functions = ((PyObject*)__pyx_t_1); - __pyx_t_1 = 0; - - /* "talib/abstract.pyx":448 - * _ta_check_success('TA_FuncTableAlloc', lib.TA_FuncTableAlloc(group, &table)) - * functions = [] - * for i in xrange(table.size): # <<<<<<<<<<<<<< - * functions.append(deref(&table.string[i])) - * _ta_check_success('TA_FuncTableFree', lib.TA_FuncTableFree(table)) - */ - __pyx_t_7 = __pyx_v_table->size; - for (__pyx_t_8 = 0; __pyx_t_8 < __pyx_t_7; __pyx_t_8+=1) { - __pyx_v_i = __pyx_t_8; - - /* "talib/abstract.pyx":449 - * functions = [] - * for i in xrange(table.size): - * functions.append(deref(&table.string[i])) # <<<<<<<<<<<<<< - * _ta_check_success('TA_FuncTableFree', lib.TA_FuncTableFree(table)) - * return functions - */ - __pyx_t_1 = __Pyx_PyBytes_FromString((*(&(__pyx_v_table->string[__pyx_v_i])))); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 449; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - __pyx_t_9 = __Pyx_PyList_Append(__pyx_v_functions, __pyx_t_1); if (unlikely(__pyx_t_9 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 449; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - } - - /* "talib/abstract.pyx":450 - * for i in xrange(table.size): - * functions.append(deref(&table.string[i])) - * _ta_check_success('TA_FuncTableFree', lib.TA_FuncTableFree(table)) # <<<<<<<<<<<<<< - * return functions - * - */ - __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_ta_check_success); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 450; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __pyx_t_6 = __Pyx_PyInt_From_TA_RetCode(TA_FuncTableFree(__pyx_v_table)); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 450; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_6); - __pyx_t_3 = NULL; - __pyx_t_5 = 0; - if (CYTHON_COMPILING_IN_CPYTHON && unlikely(PyMethod_Check(__pyx_t_2))) { - __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); - if (likely(__pyx_t_3)) { - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); - __Pyx_INCREF(__pyx_t_3); - __Pyx_INCREF(function); - __Pyx_DECREF_SET(__pyx_t_2, function); - __pyx_t_5 = 1; - } - } - __pyx_t_4 = PyTuple_New(2+__pyx_t_5); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 450; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_4); - if (__pyx_t_3) { - __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3); __pyx_t_3 = NULL; - } - __Pyx_INCREF(__pyx_n_s_TA_FuncTableFree); - __Pyx_GIVEREF(__pyx_n_s_TA_FuncTableFree); - PyTuple_SET_ITEM(__pyx_t_4, 0+__pyx_t_5, __pyx_n_s_TA_FuncTableFree); - __Pyx_GIVEREF(__pyx_t_6); - PyTuple_SET_ITEM(__pyx_t_4, 1+__pyx_t_5, __pyx_t_6); - __pyx_t_6 = 0; - __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_4, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 450; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - - /* "talib/abstract.pyx":451 - * functions.append(deref(&table.string[i])) - * _ta_check_success('TA_FuncTableFree', lib.TA_FuncTableFree(table)) - * return functions # <<<<<<<<<<<<<< - * - * def __get_flags(int flag, dict flags_lookup_dict): - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(__pyx_v_functions); - __pyx_r = __pyx_v_functions; - goto __pyx_L0; - - /* "talib/abstract.pyx":441 - * return groups - * - * def _ta_getFuncTable(char *group): # <<<<<<<<<<<<<< - * """ - * Returns a list of the functions for the specified group name. *slow* - */ - - /* function exit code */ - __pyx_L1_error:; - __Pyx_XDECREF(__pyx_t_1); - __Pyx_XDECREF(__pyx_t_2); - __Pyx_XDECREF(__pyx_t_3); - __Pyx_XDECREF(__pyx_t_4); - __Pyx_XDECREF(__pyx_t_6); - __Pyx_AddTraceback("talib.abstract._ta_getFuncTable", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF(__pyx_v_functions); - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "talib/abstract.pyx":453 - * return functions - * - * def __get_flags(int flag, dict flags_lookup_dict): # <<<<<<<<<<<<<< - * """ - * TA-LIB provides hints for multiple flags as a bitwise-ORed int. - */ - -/* Python wrapper */ -static PyObject *__pyx_pw_5talib_8abstract_13__get_flags(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_8abstract_12__get_flags[] = "\n TA-LIB provides hints for multiple flags as a bitwise-ORed int.\n This function returns the flags from flag found in the provided\n flags_lookup_dict.\n "; -static PyMethodDef __pyx_mdef_5talib_8abstract_13__get_flags = {"__get_flags", (PyCFunction)__pyx_pw_5talib_8abstract_13__get_flags, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8abstract_12__get_flags}; -static PyObject *__pyx_pw_5talib_8abstract_13__get_flags(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { - int __pyx_v_flag; - PyObject *__pyx_v_flags_lookup_dict = 0; - int __pyx_lineno = 0; - const char *__pyx_filename = NULL; - int __pyx_clineno = 0; - PyObject *__pyx_r = 0; - __Pyx_RefNannyDeclarations - __Pyx_RefNannySetupContext("__get_flags (wrapper)", 0); - { - static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_flag,&__pyx_n_s_flags_lookup_dict,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_flag)) != 0)) kw_args--; - else goto __pyx_L5_argtuple_error; - case 1: - if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_flags_lookup_dict)) != 0)) kw_args--; - else { - __Pyx_RaiseArgtupleInvalid("__get_flags", 1, 2, 2, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 453; __pyx_clineno = __LINE__; goto __pyx_L3_error;} - } - } - if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__get_flags") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 453; __pyx_clineno = __LINE__; goto __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_flag = __Pyx_PyInt_As_int(values[0]); if (unlikely((__pyx_v_flag == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 453; __pyx_clineno = __LINE__; goto __pyx_L3_error;} - __pyx_v_flags_lookup_dict = ((PyObject*)values[1]); - } - goto __pyx_L4_argument_unpacking_done; - __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("__get_flags", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 453; __pyx_clineno = __LINE__; goto __pyx_L3_error;} - __pyx_L3_error:; - __Pyx_AddTraceback("talib.abstract.__get_flags", __pyx_clineno, __pyx_lineno, __pyx_filename); - __Pyx_RefNannyFinishContext(); - return NULL; - __pyx_L4_argument_unpacking_done:; - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_flags_lookup_dict), (&PyDict_Type), 1, "flags_lookup_dict", 1))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 453; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __pyx_r = __pyx_pf_5talib_8abstract_12__get_flags(__pyx_self, __pyx_v_flag, __pyx_v_flags_lookup_dict); - - /* function exit code */ - goto __pyx_L0; - __pyx_L1_error:; - __pyx_r = NULL; - __pyx_L0:; - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -static PyObject *__pyx_pf_5talib_8abstract_12__get_flags(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_flag, PyObject *__pyx_v_flags_lookup_dict) { - PyObject *__pyx_v_value_range = NULL; - PyObject *__pyx_v_min_int = NULL; - PyObject *__pyx_v_max_int = NULL; - PyObject *__pyx_v_ret = NULL; - PyObject *__pyx_v_i = NULL; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - PyObject *__pyx_t_1 = NULL; - int __pyx_t_2; - int __pyx_t_3; - PyObject *__pyx_t_4 = NULL; - PyObject *__pyx_t_5 = NULL; - PyObject *__pyx_t_6 = NULL; - Py_ssize_t __pyx_t_7; - PyObject *__pyx_t_8 = NULL; - PyObject *(*__pyx_t_9)(PyObject *); - int __pyx_t_10; - int __pyx_lineno = 0; - const char *__pyx_filename = NULL; - int __pyx_clineno = 0; - __Pyx_RefNannySetupContext("__get_flags", 0); - - /* "talib/abstract.pyx":459 - * flags_lookup_dict. - * """ - * value_range = flags_lookup_dict.keys() # <<<<<<<<<<<<<< - * if not isinstance(value_range, list): - * value_range = list(value_range) - */ - if (unlikely(__pyx_v_flags_lookup_dict == Py_None)) { - PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%s'", "keys"); - {__pyx_filename = __pyx_f[0]; __pyx_lineno = 459; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - } - __pyx_t_1 = __Pyx_PyDict_Keys(__pyx_v_flags_lookup_dict); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 459; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - __pyx_v_value_range = __pyx_t_1; - __pyx_t_1 = 0; - - /* "talib/abstract.pyx":460 - * """ - * value_range = flags_lookup_dict.keys() - * if not isinstance(value_range, list): # <<<<<<<<<<<<<< - * value_range = list(value_range) - * min_int = int(math.log(min(value_range), 2)) - */ - __pyx_t_2 = PyList_Check(__pyx_v_value_range); - __pyx_t_3 = ((!(__pyx_t_2 != 0)) != 0); - if (__pyx_t_3) { - - /* "talib/abstract.pyx":461 - * value_range = flags_lookup_dict.keys() - * if not isinstance(value_range, list): - * value_range = list(value_range) # <<<<<<<<<<<<<< - * min_int = int(math.log(min(value_range), 2)) - * max_int = int(math.log(max(value_range), 2)) - */ - __pyx_t_1 = PySequence_List(__pyx_v_value_range); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 461; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - __Pyx_DECREF_SET(__pyx_v_value_range, __pyx_t_1); - __pyx_t_1 = 0; - - /* "talib/abstract.pyx":460 - * """ - * value_range = flags_lookup_dict.keys() - * if not isinstance(value_range, list): # <<<<<<<<<<<<<< - * value_range = list(value_range) - * min_int = int(math.log(min(value_range), 2)) - */ - } - - /* "talib/abstract.pyx":462 - * if not isinstance(value_range, list): - * value_range = list(value_range) - * min_int = int(math.log(min(value_range), 2)) # <<<<<<<<<<<<<< - * max_int = int(math.log(max(value_range), 2)) - * - */ - __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_math); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 462; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_4); - __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_log); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 462; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_5); - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 462; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_4); - __Pyx_INCREF(__pyx_v_value_range); - __Pyx_GIVEREF(__pyx_v_value_range); - PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_v_value_range); - __pyx_t_6 = __Pyx_PyObject_Call(__pyx_builtin_min, __pyx_t_4, NULL); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 462; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_6); - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __pyx_t_4 = NULL; - __pyx_t_7 = 0; - if (CYTHON_COMPILING_IN_CPYTHON && unlikely(PyMethod_Check(__pyx_t_5))) { - __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_5); - if (likely(__pyx_t_4)) { - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); - __Pyx_INCREF(__pyx_t_4); - __Pyx_INCREF(function); - __Pyx_DECREF_SET(__pyx_t_5, function); - __pyx_t_7 = 1; - } - } - __pyx_t_8 = PyTuple_New(2+__pyx_t_7); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 462; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_8); - if (__pyx_t_4) { - __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_4); __pyx_t_4 = NULL; - } - __Pyx_GIVEREF(__pyx_t_6); - PyTuple_SET_ITEM(__pyx_t_8, 0+__pyx_t_7, __pyx_t_6); - __Pyx_INCREF(__pyx_int_2); - __Pyx_GIVEREF(__pyx_int_2); - PyTuple_SET_ITEM(__pyx_t_8, 1+__pyx_t_7, __pyx_int_2); - __pyx_t_6 = 0; - __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_8, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 462; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - __pyx_t_5 = PyNumber_Int(__pyx_t_1); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 462; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_5); - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __pyx_v_min_int = __pyx_t_5; - __pyx_t_5 = 0; - - /* "talib/abstract.pyx":463 - * value_range = list(value_range) - * min_int = int(math.log(min(value_range), 2)) - * max_int = int(math.log(max(value_range), 2)) # <<<<<<<<<<<<<< - * - * # if the flag we got is out-of-range, it just means no extra info provided - */ - __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_math); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 463; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_log); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 463; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_8); - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 463; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - __Pyx_INCREF(__pyx_v_value_range); - __Pyx_GIVEREF(__pyx_v_value_range); - PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_value_range); - __pyx_t_6 = __Pyx_PyObject_Call(__pyx_builtin_max, __pyx_t_1, NULL); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 463; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_6); - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __pyx_t_1 = NULL; - __pyx_t_7 = 0; - if (CYTHON_COMPILING_IN_CPYTHON && unlikely(PyMethod_Check(__pyx_t_8))) { - __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_8); - if (likely(__pyx_t_1)) { - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_8); - __Pyx_INCREF(__pyx_t_1); - __Pyx_INCREF(function); - __Pyx_DECREF_SET(__pyx_t_8, function); - __pyx_t_7 = 1; - } - } - __pyx_t_4 = PyTuple_New(2+__pyx_t_7); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 463; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_4); - if (__pyx_t_1) { - __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_1); __pyx_t_1 = NULL; - } - __Pyx_GIVEREF(__pyx_t_6); - PyTuple_SET_ITEM(__pyx_t_4, 0+__pyx_t_7, __pyx_t_6); - __Pyx_INCREF(__pyx_int_2); - __Pyx_GIVEREF(__pyx_int_2); - PyTuple_SET_ITEM(__pyx_t_4, 1+__pyx_t_7, __pyx_int_2); - __pyx_t_6 = 0; - __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_8, __pyx_t_4, NULL); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 463; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_5); - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - __pyx_t_8 = PyNumber_Int(__pyx_t_5); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 463; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_8); - __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - __pyx_v_max_int = __pyx_t_8; - __pyx_t_8 = 0; - - /* "talib/abstract.pyx":466 - * - * # if the flag we got is out-of-range, it just means no extra info provided - * if flag < 1 or flag > 2**max_int: # <<<<<<<<<<<<<< - * return None - * - */ - __pyx_t_2 = ((__pyx_v_flag < 1) != 0); - if (!__pyx_t_2) { - } else { - __pyx_t_3 = __pyx_t_2; - goto __pyx_L5_bool_binop_done; - } - __pyx_t_8 = __Pyx_PyInt_From_int(__pyx_v_flag); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 466; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_8); - __pyx_t_5 = __Pyx_PyNumber_PowerOf2(__pyx_int_2, __pyx_v_max_int, Py_None); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 466; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_5); - __pyx_t_4 = PyObject_RichCompare(__pyx_t_8, __pyx_t_5, Py_GT); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 466; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_2 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 466; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __pyx_t_3 = __pyx_t_2; - __pyx_L5_bool_binop_done:; - if (__pyx_t_3) { - - /* "talib/abstract.pyx":467 - * # if the flag we got is out-of-range, it just means no extra info provided - * if flag < 1 or flag > 2**max_int: - * return None # <<<<<<<<<<<<<< - * - * # In this loop, i is essentially the bit-position, which represents an - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(Py_None); - __pyx_r = Py_None; - goto __pyx_L0; - - /* "talib/abstract.pyx":466 - * - * # if the flag we got is out-of-range, it just means no extra info provided - * if flag < 1 or flag > 2**max_int: # <<<<<<<<<<<<<< - * return None - * - */ - } - - /* "talib/abstract.pyx":472 - * # input from flags_lookup_dict. We loop through as many flags_lookup_dict - * # bit-positions as we need to check, bitwise-ANDing each with flag for a hit. - * ret = [] # <<<<<<<<<<<<<< - * for i in xrange(min_int, max_int+1): - * if 2**i & flag: - */ - __pyx_t_4 = PyList_New(0); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 472; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_4); - __pyx_v_ret = ((PyObject*)__pyx_t_4); - __pyx_t_4 = 0; - - /* "talib/abstract.pyx":473 - * # bit-positions as we need to check, bitwise-ANDing each with flag for a hit. - * ret = [] - * for i in xrange(min_int, max_int+1): # <<<<<<<<<<<<<< - * if 2**i & flag: - * ret.append(flags_lookup_dict[2**i]) - */ - __pyx_t_4 = __Pyx_PyInt_AddObjC(__pyx_v_max_int, __pyx_int_1, 1, 0); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 473; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_4); - __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 473; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_5); - __Pyx_INCREF(__pyx_v_min_int); - __Pyx_GIVEREF(__pyx_v_min_int); - PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_v_min_int); - __Pyx_GIVEREF(__pyx_t_4); - PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_4); - __pyx_t_4 = 0; - __pyx_t_4 = __Pyx_PyObject_Call(__pyx_builtin_xrange, __pyx_t_5, NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 473; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_4); - __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - if (likely(PyList_CheckExact(__pyx_t_4)) || PyTuple_CheckExact(__pyx_t_4)) { - __pyx_t_5 = __pyx_t_4; __Pyx_INCREF(__pyx_t_5); __pyx_t_7 = 0; - __pyx_t_9 = NULL; - } else { - __pyx_t_7 = -1; __pyx_t_5 = PyObject_GetIter(__pyx_t_4); if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 473; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_5); - __pyx_t_9 = Py_TYPE(__pyx_t_5)->tp_iternext; if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 473; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - } - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - for (;;) { - if (likely(!__pyx_t_9)) { - if (likely(PyList_CheckExact(__pyx_t_5))) { - if (__pyx_t_7 >= PyList_GET_SIZE(__pyx_t_5)) break; - #if CYTHON_COMPILING_IN_CPYTHON - __pyx_t_4 = PyList_GET_ITEM(__pyx_t_5, __pyx_t_7); __Pyx_INCREF(__pyx_t_4); __pyx_t_7++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 473; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - #else - __pyx_t_4 = PySequence_ITEM(__pyx_t_5, __pyx_t_7); __pyx_t_7++; if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 473; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_4); - #endif - } else { - if (__pyx_t_7 >= PyTuple_GET_SIZE(__pyx_t_5)) break; - #if CYTHON_COMPILING_IN_CPYTHON - __pyx_t_4 = PyTuple_GET_ITEM(__pyx_t_5, __pyx_t_7); __Pyx_INCREF(__pyx_t_4); __pyx_t_7++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 473; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - #else - __pyx_t_4 = PySequence_ITEM(__pyx_t_5, __pyx_t_7); __pyx_t_7++; if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 473; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_4); - #endif - } - } else { - __pyx_t_4 = __pyx_t_9(__pyx_t_5); - if (unlikely(!__pyx_t_4)) { - PyObject* exc_type = PyErr_Occurred(); - if (exc_type) { - if (likely(exc_type == PyExc_StopIteration || PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); - else {__pyx_filename = __pyx_f[0]; __pyx_lineno = 473; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - } - break; - } - __Pyx_GOTREF(__pyx_t_4); - } - __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_4); - __pyx_t_4 = 0; - - /* "talib/abstract.pyx":474 - * ret = [] - * for i in xrange(min_int, max_int+1): - * if 2**i & flag: # <<<<<<<<<<<<<< - * ret.append(flags_lookup_dict[2**i]) - * return ret - */ - __pyx_t_4 = __Pyx_PyNumber_PowerOf2(__pyx_int_2, __pyx_v_i, Py_None); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 474; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_4); - __pyx_t_8 = __Pyx_PyInt_From_int(__pyx_v_flag); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 474; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_8); - __pyx_t_6 = PyNumber_And(__pyx_t_4, __pyx_t_8); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 474; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_6); - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_6); if (unlikely(__pyx_t_3 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 474; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - if (__pyx_t_3) { - - /* "talib/abstract.pyx":475 - * for i in xrange(min_int, max_int+1): - * if 2**i & flag: - * ret.append(flags_lookup_dict[2**i]) # <<<<<<<<<<<<<< - * return ret - * - */ - if (unlikely(__pyx_v_flags_lookup_dict == Py_None)) { - PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); - {__pyx_filename = __pyx_f[0]; __pyx_lineno = 475; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - } - __pyx_t_6 = __Pyx_PyNumber_PowerOf2(__pyx_int_2, __pyx_v_i, Py_None); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 475; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_6); - __pyx_t_8 = __Pyx_PyDict_GetItem(__pyx_v_flags_lookup_dict, __pyx_t_6); if (unlikely(__pyx_t_8 == NULL)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 475; __pyx_clineno = __LINE__; goto __pyx_L1_error;}; - __Pyx_GOTREF(__pyx_t_8); - __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __pyx_t_10 = __Pyx_PyList_Append(__pyx_v_ret, __pyx_t_8); if (unlikely(__pyx_t_10 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 475; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - - /* "talib/abstract.pyx":474 - * ret = [] - * for i in xrange(min_int, max_int+1): - * if 2**i & flag: # <<<<<<<<<<<<<< - * ret.append(flags_lookup_dict[2**i]) - * return ret - */ - } - - /* "talib/abstract.pyx":473 - * # bit-positions as we need to check, bitwise-ANDing each with flag for a hit. - * ret = [] - * for i in xrange(min_int, max_int+1): # <<<<<<<<<<<<<< - * if 2**i & flag: - * ret.append(flags_lookup_dict[2**i]) - */ - } - __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - - /* "talib/abstract.pyx":476 - * if 2**i & flag: - * ret.append(flags_lookup_dict[2**i]) - * return ret # <<<<<<<<<<<<<< - * - * TA_FUNC_FLAGS = { - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(__pyx_v_ret); - __pyx_r = __pyx_v_ret; - goto __pyx_L0; - - /* "talib/abstract.pyx":453 - * return functions - * - * def __get_flags(int flag, dict flags_lookup_dict): # <<<<<<<<<<<<<< - * """ - * TA-LIB provides hints for multiple flags as a bitwise-ORed int. - */ - - /* function exit code */ - __pyx_L1_error:; - __Pyx_XDECREF(__pyx_t_1); - __Pyx_XDECREF(__pyx_t_4); - __Pyx_XDECREF(__pyx_t_5); - __Pyx_XDECREF(__pyx_t_6); - __Pyx_XDECREF(__pyx_t_8); - __Pyx_AddTraceback("talib.abstract.__get_flags", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF(__pyx_v_value_range); - __Pyx_XDECREF(__pyx_v_min_int); - __Pyx_XDECREF(__pyx_v_max_int); - __Pyx_XDECREF(__pyx_v_ret); - __Pyx_XDECREF(__pyx_v_i); - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "talib/abstract.pyx":512 - * } - * - * def _ta_getFuncInfo(char *function_name): # <<<<<<<<<<<<<< - * """ - * Returns the info dict for the function. It has the following keys: name, - */ - -/* Python wrapper */ -static PyObject *__pyx_pw_5talib_8abstract_15_ta_getFuncInfo(PyObject *__pyx_self, PyObject *__pyx_arg_function_name); /*proto*/ -static char __pyx_doc_5talib_8abstract_14_ta_getFuncInfo[] = "\n Returns the info dict for the function. It has the following keys: name,\n group, help, flags, num_inputs, num_opt_inputs and num_outputs.\n "; -static PyMethodDef __pyx_mdef_5talib_8abstract_15_ta_getFuncInfo = {"_ta_getFuncInfo", (PyCFunction)__pyx_pw_5talib_8abstract_15_ta_getFuncInfo, METH_O, __pyx_doc_5talib_8abstract_14_ta_getFuncInfo}; -static PyObject *__pyx_pw_5talib_8abstract_15_ta_getFuncInfo(PyObject *__pyx_self, PyObject *__pyx_arg_function_name) { - char *__pyx_v_function_name; - int __pyx_lineno = 0; - const char *__pyx_filename = NULL; - int __pyx_clineno = 0; - PyObject *__pyx_r = 0; - __Pyx_RefNannyDeclarations - __Pyx_RefNannySetupContext("_ta_getFuncInfo (wrapper)", 0); - assert(__pyx_arg_function_name); { - __pyx_v_function_name = __Pyx_PyObject_AsString(__pyx_arg_function_name); if (unlikely((!__pyx_v_function_name) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 512; __pyx_clineno = __LINE__; goto __pyx_L3_error;} - } - goto __pyx_L4_argument_unpacking_done; - __pyx_L3_error:; - __Pyx_AddTraceback("talib.abstract._ta_getFuncInfo", __pyx_clineno, __pyx_lineno, __pyx_filename); - __Pyx_RefNannyFinishContext(); - return NULL; - __pyx_L4_argument_unpacking_done:; - __pyx_r = __pyx_pf_5talib_8abstract_14_ta_getFuncInfo(__pyx_self, ((char *)__pyx_v_function_name)); - - /* function exit code */ - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -static PyObject *__pyx_pf_5talib_8abstract_14_ta_getFuncInfo(CYTHON_UNUSED PyObject *__pyx_self, char *__pyx_v_function_name) { - TA_FuncInfo *__pyx_v_info; - TA_RetCode __pyx_v_retCode; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - PyObject *__pyx_t_1 = NULL; - PyObject *__pyx_t_2 = NULL; - PyObject *__pyx_t_3 = NULL; - PyObject *__pyx_t_4 = NULL; - Py_ssize_t __pyx_t_5; - PyObject *__pyx_t_6 = NULL; - PyObject *__pyx_t_7 = NULL; - PyObject *__pyx_t_8 = NULL; - int __pyx_lineno = 0; - const char *__pyx_filename = NULL; - int __pyx_clineno = 0; - __Pyx_RefNannySetupContext("_ta_getFuncInfo", 0); - - /* "talib/abstract.pyx":518 - * """ - * cdef lib.TA_FuncInfo *info - * retCode = lib.TA_GetFuncInfo(__ta_getFuncHandle(function_name), &info) # <<<<<<<<<<<<<< - * _ta_check_success('TA_GetFuncInfo', retCode) - * - */ - __pyx_v_retCode = TA_GetFuncInfo(__pyx_f_5talib_8abstract___ta_getFuncHandle(__pyx_v_function_name), (&__pyx_v_info)); - - /* "talib/abstract.pyx":519 - * cdef lib.TA_FuncInfo *info - * retCode = lib.TA_GetFuncInfo(__ta_getFuncHandle(function_name), &info) - * _ta_check_success('TA_GetFuncInfo', retCode) # <<<<<<<<<<<<<< - * - * return { - */ - __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_ta_check_success); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 519; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __pyx_t_3 = __Pyx_PyInt_From_TA_RetCode(__pyx_v_retCode); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 519; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_3); - __pyx_t_4 = NULL; - __pyx_t_5 = 0; - if (CYTHON_COMPILING_IN_CPYTHON && unlikely(PyMethod_Check(__pyx_t_2))) { - __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2); - if (likely(__pyx_t_4)) { - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); - __Pyx_INCREF(__pyx_t_4); - __Pyx_INCREF(function); - __Pyx_DECREF_SET(__pyx_t_2, function); - __pyx_t_5 = 1; - } - } - __pyx_t_6 = PyTuple_New(2+__pyx_t_5); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 519; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_6); - if (__pyx_t_4) { - __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_4); __pyx_t_4 = NULL; - } - __Pyx_INCREF(__pyx_n_s_TA_GetFuncInfo); - __Pyx_GIVEREF(__pyx_n_s_TA_GetFuncInfo); - PyTuple_SET_ITEM(__pyx_t_6, 0+__pyx_t_5, __pyx_n_s_TA_GetFuncInfo); - __Pyx_GIVEREF(__pyx_t_3); - PyTuple_SET_ITEM(__pyx_t_6, 1+__pyx_t_5, __pyx_t_3); - __pyx_t_3 = 0; - __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_6, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 519; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - - /* "talib/abstract.pyx":521 - * _ta_check_success('TA_GetFuncInfo', retCode) - * - * return { # <<<<<<<<<<<<<< - * 'name': bytes2str(info.name), - * 'group': bytes2str(info.group), - */ - __Pyx_XDECREF(__pyx_r); - - /* "talib/abstract.pyx":522 - * - * return { - * 'name': bytes2str(info.name), # <<<<<<<<<<<<<< - * 'group': bytes2str(info.group), - * 'display_name': bytes2str(info.hint), - */ - __pyx_t_1 = PyDict_New(); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 522; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - __pyx_t_6 = __Pyx_GetModuleGlobalName(__pyx_n_s_bytes2str); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 522; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_6); - __pyx_t_3 = __Pyx_PyBytes_FromString(__pyx_v_info->name); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 522; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_3); - __pyx_t_4 = NULL; - if (CYTHON_COMPILING_IN_CPYTHON && unlikely(PyMethod_Check(__pyx_t_6))) { - __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_6); - if (likely(__pyx_t_4)) { - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); - __Pyx_INCREF(__pyx_t_4); - __Pyx_INCREF(function); - __Pyx_DECREF_SET(__pyx_t_6, function); - } - } - if (!__pyx_t_4) { - __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_3); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 522; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __Pyx_GOTREF(__pyx_t_2); - } else { - __pyx_t_7 = PyTuple_New(1+1); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 522; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_7); - __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_4); __pyx_t_4 = NULL; - __Pyx_GIVEREF(__pyx_t_3); - PyTuple_SET_ITEM(__pyx_t_7, 0+1, __pyx_t_3); - __pyx_t_3 = 0; - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_7, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 522; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - } - __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_name, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 522; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/abstract.pyx":523 - * return { - * 'name': bytes2str(info.name), - * 'group': bytes2str(info.group), # <<<<<<<<<<<<<< - * 'display_name': bytes2str(info.hint), - * 'function_flags': __get_flags(info.flags, TA_FUNC_FLAGS), - */ - __pyx_t_6 = __Pyx_GetModuleGlobalName(__pyx_n_s_bytes2str); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 523; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_6); - __pyx_t_7 = __Pyx_PyBytes_FromString(__pyx_v_info->group); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 523; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_7); - __pyx_t_3 = NULL; - if (CYTHON_COMPILING_IN_CPYTHON && unlikely(PyMethod_Check(__pyx_t_6))) { - __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_6); - if (likely(__pyx_t_3)) { - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); - __Pyx_INCREF(__pyx_t_3); - __Pyx_INCREF(function); - __Pyx_DECREF_SET(__pyx_t_6, function); - } - } - if (!__pyx_t_3) { - __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_7); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 523; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - __Pyx_GOTREF(__pyx_t_2); - } else { - __pyx_t_4 = PyTuple_New(1+1); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 523; __pyx_clineno = __LINE__; goto __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 = NULL; - __Pyx_GIVEREF(__pyx_t_7); - PyTuple_SET_ITEM(__pyx_t_4, 0+1, __pyx_t_7); - __pyx_t_7 = 0; - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_4, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 523; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - } - __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_group, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 522; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/abstract.pyx":524 - * 'name': bytes2str(info.name), - * 'group': bytes2str(info.group), - * 'display_name': bytes2str(info.hint), # <<<<<<<<<<<<<< - * 'function_flags': __get_flags(info.flags, TA_FUNC_FLAGS), - * 'num_inputs': int(info.nbInput), - */ - __pyx_t_6 = __Pyx_GetModuleGlobalName(__pyx_n_s_bytes2str); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 524; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_6); - __pyx_t_4 = __Pyx_PyBytes_FromString(__pyx_v_info->hint); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 524; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_4); - __pyx_t_7 = NULL; - if (CYTHON_COMPILING_IN_CPYTHON && unlikely(PyMethod_Check(__pyx_t_6))) { - __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_6); - if (likely(__pyx_t_7)) { - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); - __Pyx_INCREF(__pyx_t_7); - __Pyx_INCREF(function); - __Pyx_DECREF_SET(__pyx_t_6, function); - } - } - if (!__pyx_t_7) { - __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_6, __pyx_t_4); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 524; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __Pyx_GOTREF(__pyx_t_2); - } else { - __pyx_t_3 = PyTuple_New(1+1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 524; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_3); - __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_7); __pyx_t_7 = NULL; - __Pyx_GIVEREF(__pyx_t_4); - PyTuple_SET_ITEM(__pyx_t_3, 0+1, __pyx_t_4); - __pyx_t_4 = 0; - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_3, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 524; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - } - __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_display_name, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 522; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/abstract.pyx":525 - * 'group': bytes2str(info.group), - * 'display_name': bytes2str(info.hint), - * 'function_flags': __get_flags(info.flags, TA_FUNC_FLAGS), # <<<<<<<<<<<<<< - * 'num_inputs': int(info.nbInput), - * 'num_opt_inputs': int(info.nbOptInput), - */ - __pyx_t_6 = __Pyx_GetModuleGlobalName(__pyx_n_s_get_flags); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 525; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_6); - __pyx_t_3 = __Pyx_PyInt_From_TA_FuncFlags(__pyx_v_info->flags); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 525; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_3); - __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_TA_FUNC_FLAGS); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 525; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_4); - __pyx_t_7 = NULL; - __pyx_t_5 = 0; - if (CYTHON_COMPILING_IN_CPYTHON && unlikely(PyMethod_Check(__pyx_t_6))) { - __pyx_t_7 = PyMethod_GET_SELF(__pyx_t_6); - if (likely(__pyx_t_7)) { - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_6); - __Pyx_INCREF(__pyx_t_7); - __Pyx_INCREF(function); - __Pyx_DECREF_SET(__pyx_t_6, function); - __pyx_t_5 = 1; - } - } - __pyx_t_8 = PyTuple_New(2+__pyx_t_5); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 525; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_8); - if (__pyx_t_7) { - __Pyx_GIVEREF(__pyx_t_7); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_7); __pyx_t_7 = NULL; - } - __Pyx_GIVEREF(__pyx_t_3); - PyTuple_SET_ITEM(__pyx_t_8, 0+__pyx_t_5, __pyx_t_3); - __Pyx_GIVEREF(__pyx_t_4); - PyTuple_SET_ITEM(__pyx_t_8, 1+__pyx_t_5, __pyx_t_4); - __pyx_t_3 = 0; - __pyx_t_4 = 0; - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_6, __pyx_t_8, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 525; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_function_flags, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 522; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/abstract.pyx":526 - * 'display_name': bytes2str(info.hint), - * 'function_flags': __get_flags(info.flags, TA_FUNC_FLAGS), - * 'num_inputs': int(info.nbInput), # <<<<<<<<<<<<<< - * 'num_opt_inputs': int(info.nbOptInput), - * 'num_outputs': int(info.nbOutput) - */ - __pyx_t_2 = __Pyx_PyInt_From_unsigned_int(__pyx_v_info->nbInput); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 526; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __pyx_t_6 = PyTuple_New(1); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 526; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_6); - __Pyx_GIVEREF(__pyx_t_2); - PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_2); - __pyx_t_2 = 0; - __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)(&PyInt_Type)), __pyx_t_6, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 526; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_num_inputs, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 522; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/abstract.pyx":527 - * 'function_flags': __get_flags(info.flags, TA_FUNC_FLAGS), - * 'num_inputs': int(info.nbInput), - * 'num_opt_inputs': int(info.nbOptInput), # <<<<<<<<<<<<<< - * 'num_outputs': int(info.nbOutput) - * } - */ - __pyx_t_2 = __Pyx_PyInt_From_unsigned_int(__pyx_v_info->nbOptInput); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 527; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __pyx_t_6 = PyTuple_New(1); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 527; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_6); - __Pyx_GIVEREF(__pyx_t_2); - PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_2); - __pyx_t_2 = 0; - __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)(&PyInt_Type)), __pyx_t_6, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 527; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_num_opt_inputs, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 522; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/abstract.pyx":528 - * 'num_inputs': int(info.nbInput), - * 'num_opt_inputs': int(info.nbOptInput), - * 'num_outputs': int(info.nbOutput) # <<<<<<<<<<<<<< - * } - * - */ - __pyx_t_2 = __Pyx_PyInt_From_unsigned_int(__pyx_v_info->nbOutput); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 528; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __pyx_t_6 = PyTuple_New(1); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 528; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_6); - __Pyx_GIVEREF(__pyx_t_2); - PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_2); - __pyx_t_2 = 0; - __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)(&PyInt_Type)), __pyx_t_6, NULL); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 528; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_num_outputs, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 522; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __pyx_r = __pyx_t_1; - __pyx_t_1 = 0; - goto __pyx_L0; - - /* "talib/abstract.pyx":512 - * } - * - * def _ta_getFuncInfo(char *function_name): # <<<<<<<<<<<<<< - * """ - * Returns the info dict for the function. It has the following keys: name, - */ - - /* function exit code */ - __pyx_L1_error:; - __Pyx_XDECREF(__pyx_t_1); - __Pyx_XDECREF(__pyx_t_2); - __Pyx_XDECREF(__pyx_t_3); - __Pyx_XDECREF(__pyx_t_4); - __Pyx_XDECREF(__pyx_t_6); - __Pyx_XDECREF(__pyx_t_7); - __Pyx_XDECREF(__pyx_t_8); - __Pyx_AddTraceback("talib.abstract._ta_getFuncInfo", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "talib/abstract.pyx":531 - * } - * - * def _ta_getInputParameterInfo(char *function_name, int idx): # <<<<<<<<<<<<<< - * """ - * Returns the function's input info dict for the given index. It has two - */ - -/* Python wrapper */ -static PyObject *__pyx_pw_5talib_8abstract_17_ta_getInputParameterInfo(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_8abstract_16_ta_getInputParameterInfo[] = "\n Returns the function's input info dict for the given index. It has two\n keys: name and flags.\n "; -static PyMethodDef __pyx_mdef_5talib_8abstract_17_ta_getInputParameterInfo = {"_ta_getInputParameterInfo", (PyCFunction)__pyx_pw_5talib_8abstract_17_ta_getInputParameterInfo, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8abstract_16_ta_getInputParameterInfo}; -static PyObject *__pyx_pw_5talib_8abstract_17_ta_getInputParameterInfo(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { - char *__pyx_v_function_name; - int __pyx_v_idx; - int __pyx_lineno = 0; - const char *__pyx_filename = NULL; - int __pyx_clineno = 0; - PyObject *__pyx_r = 0; - __Pyx_RefNannyDeclarations - __Pyx_RefNannySetupContext("_ta_getInputParameterInfo (wrapper)", 0); - { - static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_function_name,&__pyx_n_s_idx,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_function_name)) != 0)) kw_args--; - else goto __pyx_L5_argtuple_error; - case 1: - if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_idx)) != 0)) kw_args--; - else { - __Pyx_RaiseArgtupleInvalid("_ta_getInputParameterInfo", 1, 2, 2, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 531; __pyx_clineno = __LINE__; goto __pyx_L3_error;} - } - } - if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "_ta_getInputParameterInfo") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 531; __pyx_clineno = __LINE__; goto __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_function_name = __Pyx_PyObject_AsString(values[0]); if (unlikely((!__pyx_v_function_name) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 531; __pyx_clineno = __LINE__; goto __pyx_L3_error;} - __pyx_v_idx = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_idx == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 531; __pyx_clineno = __LINE__; goto __pyx_L3_error;} - } - goto __pyx_L4_argument_unpacking_done; - __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("_ta_getInputParameterInfo", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 531; __pyx_clineno = __LINE__; goto __pyx_L3_error;} - __pyx_L3_error:; - __Pyx_AddTraceback("talib.abstract._ta_getInputParameterInfo", __pyx_clineno, __pyx_lineno, __pyx_filename); - __Pyx_RefNannyFinishContext(); - return NULL; - __pyx_L4_argument_unpacking_done:; - __pyx_r = __pyx_pf_5talib_8abstract_16_ta_getInputParameterInfo(__pyx_self, __pyx_v_function_name, __pyx_v_idx); - - /* function exit code */ - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -static PyObject *__pyx_pf_5talib_8abstract_16_ta_getInputParameterInfo(CYTHON_UNUSED PyObject *__pyx_self, char *__pyx_v_function_name, int __pyx_v_idx) { - TA_InputParameterInfo *__pyx_v_info; - TA_RetCode __pyx_v_retCode; - PyObject *__pyx_v_name = NULL; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - PyObject *__pyx_t_1 = NULL; - PyObject *__pyx_t_2 = NULL; - PyObject *__pyx_t_3 = NULL; - PyObject *__pyx_t_4 = NULL; - Py_ssize_t __pyx_t_5; - PyObject *__pyx_t_6 = NULL; - int __pyx_t_7; - int __pyx_t_8; - PyObject *__pyx_t_9 = NULL; - PyObject *__pyx_t_10 = NULL; - int __pyx_lineno = 0; - const char *__pyx_filename = NULL; - int __pyx_clineno = 0; - __Pyx_RefNannySetupContext("_ta_getInputParameterInfo", 0); - - /* "talib/abstract.pyx":537 - * """ - * cdef lib.TA_InputParameterInfo *info - * retCode = lib.TA_GetInputParameterInfo(__ta_getFuncHandle(function_name), idx, &info) # <<<<<<<<<<<<<< - * _ta_check_success('TA_GetInputParameterInfo', retCode) - * - */ - __pyx_v_retCode = TA_GetInputParameterInfo(__pyx_f_5talib_8abstract___ta_getFuncHandle(__pyx_v_function_name), __pyx_v_idx, (&__pyx_v_info)); - - /* "talib/abstract.pyx":538 - * cdef lib.TA_InputParameterInfo *info - * retCode = lib.TA_GetInputParameterInfo(__ta_getFuncHandle(function_name), idx, &info) - * _ta_check_success('TA_GetInputParameterInfo', retCode) # <<<<<<<<<<<<<< - * - * name = bytes2str(info.paramName) - */ - __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_ta_check_success); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 538; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __pyx_t_3 = __Pyx_PyInt_From_TA_RetCode(__pyx_v_retCode); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 538; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_3); - __pyx_t_4 = NULL; - __pyx_t_5 = 0; - if (CYTHON_COMPILING_IN_CPYTHON && unlikely(PyMethod_Check(__pyx_t_2))) { - __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2); - if (likely(__pyx_t_4)) { - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); - __Pyx_INCREF(__pyx_t_4); - __Pyx_INCREF(function); - __Pyx_DECREF_SET(__pyx_t_2, function); - __pyx_t_5 = 1; - } - } - __pyx_t_6 = PyTuple_New(2+__pyx_t_5); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 538; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_6); - if (__pyx_t_4) { - __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_4); __pyx_t_4 = NULL; - } - __Pyx_INCREF(__pyx_n_s_TA_GetInputParameterInfo); - __Pyx_GIVEREF(__pyx_n_s_TA_GetInputParameterInfo); - PyTuple_SET_ITEM(__pyx_t_6, 0+__pyx_t_5, __pyx_n_s_TA_GetInputParameterInfo); - __Pyx_GIVEREF(__pyx_t_3); - PyTuple_SET_ITEM(__pyx_t_6, 1+__pyx_t_5, __pyx_t_3); - __pyx_t_3 = 0; - __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_6, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 538; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - - /* "talib/abstract.pyx":540 - * _ta_check_success('TA_GetInputParameterInfo', retCode) - * - * name = bytes2str(info.paramName) # <<<<<<<<<<<<<< - * name = name[len('in'):].lower() - * if 'real' in name: - */ - __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_bytes2str); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 540; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __pyx_t_6 = __Pyx_PyBytes_FromString(__pyx_v_info->paramName); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 540; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_6); - __pyx_t_3 = NULL; - if (CYTHON_COMPILING_IN_CPYTHON && unlikely(PyMethod_Check(__pyx_t_2))) { - __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); - if (likely(__pyx_t_3)) { - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); - __Pyx_INCREF(__pyx_t_3); - __Pyx_INCREF(function); - __Pyx_DECREF_SET(__pyx_t_2, function); - } - } - if (!__pyx_t_3) { - __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_6); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 540; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __Pyx_GOTREF(__pyx_t_1); - } else { - __pyx_t_4 = PyTuple_New(1+1); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 540; __pyx_clineno = __LINE__; goto __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 = NULL; - __Pyx_GIVEREF(__pyx_t_6); - PyTuple_SET_ITEM(__pyx_t_4, 0+1, __pyx_t_6); - __pyx_t_6 = 0; - __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_4, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 540; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - } - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __pyx_v_name = __pyx_t_1; - __pyx_t_1 = 0; - - /* "talib/abstract.pyx":541 - * - * name = bytes2str(info.paramName) - * name = name[len('in'):].lower() # <<<<<<<<<<<<<< - * if 'real' in name: - * name = name.replace('real', 'price') - */ - __pyx_t_5 = PyObject_Length(__pyx_n_s_in); if (unlikely(__pyx_t_5 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 541; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __pyx_t_2 = __Pyx_PyObject_GetSlice(__pyx_v_name, __pyx_t_5, 0, NULL, NULL, NULL, 1, 0, 1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 541; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_lower); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 541; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_4); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __pyx_t_2 = NULL; - if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_4))) { - __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_4); - if (likely(__pyx_t_2)) { - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); - __Pyx_INCREF(__pyx_t_2); - __Pyx_INCREF(function); - __Pyx_DECREF_SET(__pyx_t_4, function); - } - } - if (__pyx_t_2) { - __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 541; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - } else { - __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_4); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 541; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - } - __Pyx_GOTREF(__pyx_t_1); - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __Pyx_DECREF_SET(__pyx_v_name, __pyx_t_1); - __pyx_t_1 = 0; - - /* "talib/abstract.pyx":542 - * name = bytes2str(info.paramName) - * name = name[len('in'):].lower() - * if 'real' in name: # <<<<<<<<<<<<<< - * name = name.replace('real', 'price') - * elif 'price' in name: - */ - __pyx_t_7 = (__Pyx_PySequence_ContainsTF(__pyx_n_s_real, __pyx_v_name, Py_EQ)); if (unlikely(__pyx_t_7 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 542; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __pyx_t_8 = (__pyx_t_7 != 0); - if (__pyx_t_8) { - - /* "talib/abstract.pyx":543 - * name = name[len('in'):].lower() - * if 'real' in name: - * name = name.replace('real', 'price') # <<<<<<<<<<<<<< - * elif 'price' in name: - * name = 'prices' - */ - __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_name, __pyx_n_s_replace); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 543; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__7, NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 543; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_4); - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __Pyx_DECREF_SET(__pyx_v_name, __pyx_t_4); - __pyx_t_4 = 0; - - /* "talib/abstract.pyx":542 - * name = bytes2str(info.paramName) - * name = name[len('in'):].lower() - * if 'real' in name: # <<<<<<<<<<<<<< - * name = name.replace('real', 'price') - * elif 'price' in name: - */ - goto __pyx_L3; - } - - /* "talib/abstract.pyx":544 - * if 'real' in name: - * name = name.replace('real', 'price') - * elif 'price' in name: # <<<<<<<<<<<<<< - * name = 'prices' - * - */ - __pyx_t_8 = (__Pyx_PySequence_ContainsTF(__pyx_n_s_price, __pyx_v_name, Py_EQ)); if (unlikely(__pyx_t_8 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 544; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __pyx_t_7 = (__pyx_t_8 != 0); - if (__pyx_t_7) { - - /* "talib/abstract.pyx":545 - * name = name.replace('real', 'price') - * elif 'price' in name: - * name = 'prices' # <<<<<<<<<<<<<< - * - * return { - */ - __Pyx_INCREF(__pyx_n_s_prices); - __Pyx_DECREF_SET(__pyx_v_name, __pyx_n_s_prices); - - /* "talib/abstract.pyx":544 - * if 'real' in name: - * name = name.replace('real', 'price') - * elif 'price' in name: # <<<<<<<<<<<<<< - * name = 'prices' - * - */ - } - __pyx_L3:; - - /* "talib/abstract.pyx":547 - * name = 'prices' - * - * return { # <<<<<<<<<<<<<< - * 'name': name, - * 'price_series': __get_flags(info.flags, TA_INPUT_FLAGS) - */ - __Pyx_XDECREF(__pyx_r); - - /* "talib/abstract.pyx":548 - * - * return { - * 'name': name, # <<<<<<<<<<<<<< - * 'price_series': __get_flags(info.flags, TA_INPUT_FLAGS) - * } - */ - __pyx_t_4 = PyDict_New(); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 548; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_4); - if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_name, __pyx_v_name) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 548; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - - /* "talib/abstract.pyx":549 - * return { - * 'name': name, - * 'price_series': __get_flags(info.flags, TA_INPUT_FLAGS) # <<<<<<<<<<<<<< - * } - * - */ - __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_get_flags); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 549; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __pyx_t_6 = __Pyx_PyInt_From_TA_InputFlags(__pyx_v_info->flags); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 549; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_6); - __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_TA_INPUT_FLAGS); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 549; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_3); - __pyx_t_9 = NULL; - __pyx_t_5 = 0; - if (CYTHON_COMPILING_IN_CPYTHON && unlikely(PyMethod_Check(__pyx_t_2))) { - __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_2); - if (likely(__pyx_t_9)) { - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); - __Pyx_INCREF(__pyx_t_9); - __Pyx_INCREF(function); - __Pyx_DECREF_SET(__pyx_t_2, function); - __pyx_t_5 = 1; - } - } - __pyx_t_10 = PyTuple_New(2+__pyx_t_5); if (unlikely(!__pyx_t_10)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 549; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_10); - if (__pyx_t_9) { - __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_t_9); __pyx_t_9 = NULL; - } - __Pyx_GIVEREF(__pyx_t_6); - PyTuple_SET_ITEM(__pyx_t_10, 0+__pyx_t_5, __pyx_t_6); - __Pyx_GIVEREF(__pyx_t_3); - PyTuple_SET_ITEM(__pyx_t_10, 1+__pyx_t_5, __pyx_t_3); - __pyx_t_6 = 0; - __pyx_t_3 = 0; - __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_10, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 549; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_price_series, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 548; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __pyx_r = __pyx_t_4; - __pyx_t_4 = 0; - goto __pyx_L0; - - /* "talib/abstract.pyx":531 - * } - * - * def _ta_getInputParameterInfo(char *function_name, int idx): # <<<<<<<<<<<<<< - * """ - * Returns the function's input info dict for the given index. It has two - */ - - /* function exit code */ - __pyx_L1_error:; - __Pyx_XDECREF(__pyx_t_1); - __Pyx_XDECREF(__pyx_t_2); - __Pyx_XDECREF(__pyx_t_3); - __Pyx_XDECREF(__pyx_t_4); - __Pyx_XDECREF(__pyx_t_6); - __Pyx_XDECREF(__pyx_t_9); - __Pyx_XDECREF(__pyx_t_10); - __Pyx_AddTraceback("talib.abstract._ta_getInputParameterInfo", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF(__pyx_v_name); - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "talib/abstract.pyx":552 - * } - * - * def _ta_getOptInputParameterInfo(char *function_name, int idx): # <<<<<<<<<<<<<< - * """ - * Returns the function's opt_input info dict for the given index. It has the - */ - -/* Python wrapper */ -static PyObject *__pyx_pw_5talib_8abstract_19_ta_getOptInputParameterInfo(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_8abstract_18_ta_getOptInputParameterInfo[] = "\n Returns the function's opt_input info dict for the given index. It has the\n following keys: name, display_name, type, help, default_value and value.\n "; -static PyMethodDef __pyx_mdef_5talib_8abstract_19_ta_getOptInputParameterInfo = {"_ta_getOptInputParameterInfo", (PyCFunction)__pyx_pw_5talib_8abstract_19_ta_getOptInputParameterInfo, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8abstract_18_ta_getOptInputParameterInfo}; -static PyObject *__pyx_pw_5talib_8abstract_19_ta_getOptInputParameterInfo(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { - char *__pyx_v_function_name; - int __pyx_v_idx; - int __pyx_lineno = 0; - const char *__pyx_filename = NULL; - int __pyx_clineno = 0; - PyObject *__pyx_r = 0; - __Pyx_RefNannyDeclarations - __Pyx_RefNannySetupContext("_ta_getOptInputParameterInfo (wrapper)", 0); - { - static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_function_name,&__pyx_n_s_idx,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_function_name)) != 0)) kw_args--; - else goto __pyx_L5_argtuple_error; - case 1: - if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_idx)) != 0)) kw_args--; - else { - __Pyx_RaiseArgtupleInvalid("_ta_getOptInputParameterInfo", 1, 2, 2, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 552; __pyx_clineno = __LINE__; goto __pyx_L3_error;} - } - } - if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "_ta_getOptInputParameterInfo") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 552; __pyx_clineno = __LINE__; goto __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_function_name = __Pyx_PyObject_AsString(values[0]); if (unlikely((!__pyx_v_function_name) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 552; __pyx_clineno = __LINE__; goto __pyx_L3_error;} - __pyx_v_idx = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_idx == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 552; __pyx_clineno = __LINE__; goto __pyx_L3_error;} - } - goto __pyx_L4_argument_unpacking_done; - __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("_ta_getOptInputParameterInfo", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 552; __pyx_clineno = __LINE__; goto __pyx_L3_error;} - __pyx_L3_error:; - __Pyx_AddTraceback("talib.abstract._ta_getOptInputParameterInfo", __pyx_clineno, __pyx_lineno, __pyx_filename); - __Pyx_RefNannyFinishContext(); - return NULL; - __pyx_L4_argument_unpacking_done:; - __pyx_r = __pyx_pf_5talib_8abstract_18_ta_getOptInputParameterInfo(__pyx_self, __pyx_v_function_name, __pyx_v_idx); - - /* function exit code */ - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -static PyObject *__pyx_pf_5talib_8abstract_18_ta_getOptInputParameterInfo(CYTHON_UNUSED PyObject *__pyx_self, char *__pyx_v_function_name, int __pyx_v_idx) { - TA_OptInputParameterInfo *__pyx_v_info; - TA_RetCode __pyx_v_retCode; - PyObject *__pyx_v_name = NULL; - PyObject *__pyx_v_default_value = NULL; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - PyObject *__pyx_t_1 = NULL; - PyObject *__pyx_t_2 = NULL; - PyObject *__pyx_t_3 = NULL; - PyObject *__pyx_t_4 = NULL; - Py_ssize_t __pyx_t_5; - PyObject *__pyx_t_6 = NULL; - int __pyx_t_7; - PyObject *__pyx_t_8 = NULL; - int __pyx_lineno = 0; - const char *__pyx_filename = NULL; - int __pyx_clineno = 0; - __Pyx_RefNannySetupContext("_ta_getOptInputParameterInfo", 0); - - /* "talib/abstract.pyx":558 - * """ - * cdef lib.TA_OptInputParameterInfo *info - * retCode = lib.TA_GetOptInputParameterInfo(__ta_getFuncHandle(function_name), idx, &info) # <<<<<<<<<<<<<< - * _ta_check_success('TA_GetOptInputParameterInfo', retCode) - * - */ - __pyx_v_retCode = TA_GetOptInputParameterInfo(__pyx_f_5talib_8abstract___ta_getFuncHandle(__pyx_v_function_name), __pyx_v_idx, (&__pyx_v_info)); - - /* "talib/abstract.pyx":559 - * cdef lib.TA_OptInputParameterInfo *info - * retCode = lib.TA_GetOptInputParameterInfo(__ta_getFuncHandle(function_name), idx, &info) - * _ta_check_success('TA_GetOptInputParameterInfo', retCode) # <<<<<<<<<<<<<< - * - * name = bytes2str(info.paramName) - */ - __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_ta_check_success); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 559; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __pyx_t_3 = __Pyx_PyInt_From_TA_RetCode(__pyx_v_retCode); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 559; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_3); - __pyx_t_4 = NULL; - __pyx_t_5 = 0; - if (CYTHON_COMPILING_IN_CPYTHON && unlikely(PyMethod_Check(__pyx_t_2))) { - __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2); - if (likely(__pyx_t_4)) { - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); - __Pyx_INCREF(__pyx_t_4); - __Pyx_INCREF(function); - __Pyx_DECREF_SET(__pyx_t_2, function); - __pyx_t_5 = 1; - } - } - __pyx_t_6 = PyTuple_New(2+__pyx_t_5); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 559; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_6); - if (__pyx_t_4) { - __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_4); __pyx_t_4 = NULL; - } - __Pyx_INCREF(__pyx_n_s_TA_GetOptInputParameterInfo); - __Pyx_GIVEREF(__pyx_n_s_TA_GetOptInputParameterInfo); - PyTuple_SET_ITEM(__pyx_t_6, 0+__pyx_t_5, __pyx_n_s_TA_GetOptInputParameterInfo); - __Pyx_GIVEREF(__pyx_t_3); - PyTuple_SET_ITEM(__pyx_t_6, 1+__pyx_t_5, __pyx_t_3); - __pyx_t_3 = 0; - __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_6, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 559; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - - /* "talib/abstract.pyx":561 - * _ta_check_success('TA_GetOptInputParameterInfo', retCode) - * - * name = bytes2str(info.paramName) # <<<<<<<<<<<<<< - * name = name[len('optIn'):].lower() - * default_value = info.defaultValue - */ - __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_bytes2str); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 561; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __pyx_t_6 = __Pyx_PyBytes_FromString(__pyx_v_info->paramName); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 561; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_6); - __pyx_t_3 = NULL; - if (CYTHON_COMPILING_IN_CPYTHON && unlikely(PyMethod_Check(__pyx_t_2))) { - __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); - if (likely(__pyx_t_3)) { - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); - __Pyx_INCREF(__pyx_t_3); - __Pyx_INCREF(function); - __Pyx_DECREF_SET(__pyx_t_2, function); - } - } - if (!__pyx_t_3) { - __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_6); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 561; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __Pyx_GOTREF(__pyx_t_1); - } else { - __pyx_t_4 = PyTuple_New(1+1); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 561; __pyx_clineno = __LINE__; goto __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 = NULL; - __Pyx_GIVEREF(__pyx_t_6); - PyTuple_SET_ITEM(__pyx_t_4, 0+1, __pyx_t_6); - __pyx_t_6 = 0; - __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_4, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 561; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - } - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __pyx_v_name = __pyx_t_1; - __pyx_t_1 = 0; - - /* "talib/abstract.pyx":562 - * - * name = bytes2str(info.paramName) - * name = name[len('optIn'):].lower() # <<<<<<<<<<<<<< - * default_value = info.defaultValue - * if default_value % 1 == 0: - */ - __pyx_t_5 = PyObject_Length(__pyx_n_s_optIn); if (unlikely(__pyx_t_5 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 562; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __pyx_t_2 = __Pyx_PyObject_GetSlice(__pyx_v_name, __pyx_t_5, 0, NULL, NULL, NULL, 1, 0, 1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 562; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_lower); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 562; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_4); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __pyx_t_2 = NULL; - if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_4))) { - __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_4); - if (likely(__pyx_t_2)) { - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); - __Pyx_INCREF(__pyx_t_2); - __Pyx_INCREF(function); - __Pyx_DECREF_SET(__pyx_t_4, function); - } - } - if (__pyx_t_2) { - __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 562; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - } else { - __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_4); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 562; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - } - __Pyx_GOTREF(__pyx_t_1); - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __Pyx_DECREF_SET(__pyx_v_name, __pyx_t_1); - __pyx_t_1 = 0; - - /* "talib/abstract.pyx":563 - * name = bytes2str(info.paramName) - * name = name[len('optIn'):].lower() - * default_value = info.defaultValue # <<<<<<<<<<<<<< - * if default_value % 1 == 0: - * default_value = int(default_value) - */ - __pyx_t_1 = PyFloat_FromDouble(__pyx_v_info->defaultValue); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 563; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - __pyx_v_default_value = __pyx_t_1; - __pyx_t_1 = 0; - - /* "talib/abstract.pyx":564 - * name = name[len('optIn'):].lower() - * default_value = info.defaultValue - * if default_value % 1 == 0: # <<<<<<<<<<<<<< - * default_value = int(default_value) - * - */ - __pyx_t_1 = __Pyx_PyInt_RemainderObjC(__pyx_v_default_value, __pyx_int_1, 1, 0); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 564; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - __pyx_t_4 = __Pyx_PyInt_EqObjC(__pyx_t_1, __pyx_int_0, 0, 0); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 564; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_4); - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_7 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 564; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - if (__pyx_t_7) { - - /* "talib/abstract.pyx":565 - * default_value = info.defaultValue - * if default_value % 1 == 0: - * default_value = int(default_value) # <<<<<<<<<<<<<< - * - * return { - */ - __pyx_t_4 = PyNumber_Int(__pyx_v_default_value); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 565; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_4); - __Pyx_DECREF_SET(__pyx_v_default_value, __pyx_t_4); - __pyx_t_4 = 0; - - /* "talib/abstract.pyx":564 - * name = name[len('optIn'):].lower() - * default_value = info.defaultValue - * if default_value % 1 == 0: # <<<<<<<<<<<<<< - * default_value = int(default_value) - * - */ - } - - /* "talib/abstract.pyx":567 - * default_value = int(default_value) - * - * return { # <<<<<<<<<<<<<< - * 'name': name, - * 'display_name': bytes2str(info.displayName), - */ - __Pyx_XDECREF(__pyx_r); - - /* "talib/abstract.pyx":568 - * - * return { - * 'name': name, # <<<<<<<<<<<<<< - * 'display_name': bytes2str(info.displayName), - * 'type': info.type, - */ - __pyx_t_4 = PyDict_New(); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 568; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_4); - if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_name, __pyx_v_name) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 568; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - - /* "talib/abstract.pyx":569 - * return { - * 'name': name, - * 'display_name': bytes2str(info.displayName), # <<<<<<<<<<<<<< - * 'type': info.type, - * 'help': bytes2str(info.hint), - */ - __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_bytes2str); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 569; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __pyx_t_6 = __Pyx_PyBytes_FromString(__pyx_v_info->displayName); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 569; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_6); - __pyx_t_3 = NULL; - if (CYTHON_COMPILING_IN_CPYTHON && unlikely(PyMethod_Check(__pyx_t_2))) { - __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); - if (likely(__pyx_t_3)) { - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); - __Pyx_INCREF(__pyx_t_3); - __Pyx_INCREF(function); - __Pyx_DECREF_SET(__pyx_t_2, function); - } - } - if (!__pyx_t_3) { - __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_6); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 569; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __Pyx_GOTREF(__pyx_t_1); - } else { - __pyx_t_8 = PyTuple_New(1+1); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 569; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_8); - __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_3); __pyx_t_3 = NULL; - __Pyx_GIVEREF(__pyx_t_6); - PyTuple_SET_ITEM(__pyx_t_8, 0+1, __pyx_t_6); - __pyx_t_6 = 0; - __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_8, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 569; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - } - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_display_name, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 568; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - - /* "talib/abstract.pyx":570 - * 'name': name, - * 'display_name': bytes2str(info.displayName), - * 'type': info.type, # <<<<<<<<<<<<<< - * 'help': bytes2str(info.hint), - * 'default_value': default_value, - */ - __pyx_t_1 = __Pyx_PyInt_From_TA_OptInputParameterType(__pyx_v_info->type); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 570; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_type, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 568; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - - /* "talib/abstract.pyx":571 - * 'display_name': bytes2str(info.displayName), - * 'type': info.type, - * 'help': bytes2str(info.hint), # <<<<<<<<<<<<<< - * 'default_value': default_value, - * 'value': None - */ - __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_bytes2str); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 571; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __pyx_t_8 = __Pyx_PyBytes_FromString(__pyx_v_info->hint); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 571; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_8); - __pyx_t_6 = NULL; - if (CYTHON_COMPILING_IN_CPYTHON && unlikely(PyMethod_Check(__pyx_t_2))) { - __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_2); - if (likely(__pyx_t_6)) { - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); - __Pyx_INCREF(__pyx_t_6); - __Pyx_INCREF(function); - __Pyx_DECREF_SET(__pyx_t_2, function); - } - } - if (!__pyx_t_6) { - __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_8); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 571; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - __Pyx_GOTREF(__pyx_t_1); - } else { - __pyx_t_3 = PyTuple_New(1+1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 571; __pyx_clineno = __LINE__; goto __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 = NULL; - __Pyx_GIVEREF(__pyx_t_8); - PyTuple_SET_ITEM(__pyx_t_3, 0+1, __pyx_t_8); - __pyx_t_8 = 0; - __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_3, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 571; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - } - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_help, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 568; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - - /* "talib/abstract.pyx":572 - * 'type': info.type, - * 'help': bytes2str(info.hint), - * 'default_value': default_value, # <<<<<<<<<<<<<< - * 'value': None - * } - */ - if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_default_value, __pyx_v_default_value) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 568; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - - /* "talib/abstract.pyx":573 - * 'help': bytes2str(info.hint), - * 'default_value': default_value, - * 'value': None # <<<<<<<<<<<<<< - * } - * - */ - if (PyDict_SetItem(__pyx_t_4, __pyx_n_s_value, Py_None) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 568; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __pyx_r = __pyx_t_4; - __pyx_t_4 = 0; - goto __pyx_L0; - - /* "talib/abstract.pyx":552 - * } - * - * def _ta_getOptInputParameterInfo(char *function_name, int idx): # <<<<<<<<<<<<<< - * """ - * Returns the function's opt_input info dict for the given index. It has the - */ - - /* function exit code */ - __pyx_L1_error:; - __Pyx_XDECREF(__pyx_t_1); - __Pyx_XDECREF(__pyx_t_2); - __Pyx_XDECREF(__pyx_t_3); - __Pyx_XDECREF(__pyx_t_4); - __Pyx_XDECREF(__pyx_t_6); - __Pyx_XDECREF(__pyx_t_8); - __Pyx_AddTraceback("talib.abstract._ta_getOptInputParameterInfo", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF(__pyx_v_name); - __Pyx_XDECREF(__pyx_v_default_value); - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "talib/abstract.pyx":576 - * } - * - * def _ta_getOutputParameterInfo(char *function_name, int idx): # <<<<<<<<<<<<<< - * """ - * Returns the function's output info dict for the given index. It has two - */ - -/* Python wrapper */ -static PyObject *__pyx_pw_5talib_8abstract_21_ta_getOutputParameterInfo(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_8abstract_20_ta_getOutputParameterInfo[] = "\n Returns the function's output info dict for the given index. It has two\n keys: name and flags.\n "; -static PyMethodDef __pyx_mdef_5talib_8abstract_21_ta_getOutputParameterInfo = {"_ta_getOutputParameterInfo", (PyCFunction)__pyx_pw_5talib_8abstract_21_ta_getOutputParameterInfo, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8abstract_20_ta_getOutputParameterInfo}; -static PyObject *__pyx_pw_5talib_8abstract_21_ta_getOutputParameterInfo(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { - char *__pyx_v_function_name; - int __pyx_v_idx; - int __pyx_lineno = 0; - const char *__pyx_filename = NULL; - int __pyx_clineno = 0; - PyObject *__pyx_r = 0; - __Pyx_RefNannyDeclarations - __Pyx_RefNannySetupContext("_ta_getOutputParameterInfo (wrapper)", 0); - { - static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_function_name,&__pyx_n_s_idx,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_function_name)) != 0)) kw_args--; - else goto __pyx_L5_argtuple_error; - case 1: - if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_idx)) != 0)) kw_args--; - else { - __Pyx_RaiseArgtupleInvalid("_ta_getOutputParameterInfo", 1, 2, 2, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 576; __pyx_clineno = __LINE__; goto __pyx_L3_error;} - } - } - if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "_ta_getOutputParameterInfo") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 576; __pyx_clineno = __LINE__; goto __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_function_name = __Pyx_PyObject_AsString(values[0]); if (unlikely((!__pyx_v_function_name) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 576; __pyx_clineno = __LINE__; goto __pyx_L3_error;} - __pyx_v_idx = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_idx == (int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 576; __pyx_clineno = __LINE__; goto __pyx_L3_error;} - } - goto __pyx_L4_argument_unpacking_done; - __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("_ta_getOutputParameterInfo", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 576; __pyx_clineno = __LINE__; goto __pyx_L3_error;} - __pyx_L3_error:; - __Pyx_AddTraceback("talib.abstract._ta_getOutputParameterInfo", __pyx_clineno, __pyx_lineno, __pyx_filename); - __Pyx_RefNannyFinishContext(); - return NULL; - __pyx_L4_argument_unpacking_done:; - __pyx_r = __pyx_pf_5talib_8abstract_20_ta_getOutputParameterInfo(__pyx_self, __pyx_v_function_name, __pyx_v_idx); - - /* function exit code */ - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -static PyObject *__pyx_pf_5talib_8abstract_20_ta_getOutputParameterInfo(CYTHON_UNUSED PyObject *__pyx_self, char *__pyx_v_function_name, int __pyx_v_idx) { - TA_OutputParameterInfo *__pyx_v_info; - TA_RetCode __pyx_v_retCode; - PyObject *__pyx_v_name = NULL; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - PyObject *__pyx_t_1 = NULL; - PyObject *__pyx_t_2 = NULL; - PyObject *__pyx_t_3 = NULL; - PyObject *__pyx_t_4 = NULL; - Py_ssize_t __pyx_t_5; - PyObject *__pyx_t_6 = NULL; - int __pyx_t_7; - int __pyx_t_8; - int __pyx_t_9; - PyObject *__pyx_t_10 = NULL; - PyObject *__pyx_t_11 = NULL; - int __pyx_lineno = 0; - const char *__pyx_filename = NULL; - int __pyx_clineno = 0; - __Pyx_RefNannySetupContext("_ta_getOutputParameterInfo", 0); - - /* "talib/abstract.pyx":582 - * """ - * cdef lib.TA_OutputParameterInfo *info - * retCode = lib.TA_GetOutputParameterInfo(__ta_getFuncHandle(function_name), idx, &info) # <<<<<<<<<<<<<< - * _ta_check_success('TA_GetOutputParameterInfo', retCode) - * - */ - __pyx_v_retCode = TA_GetOutputParameterInfo(__pyx_f_5talib_8abstract___ta_getFuncHandle(__pyx_v_function_name), __pyx_v_idx, (&__pyx_v_info)); - - /* "talib/abstract.pyx":583 - * cdef lib.TA_OutputParameterInfo *info - * retCode = lib.TA_GetOutputParameterInfo(__ta_getFuncHandle(function_name), idx, &info) - * _ta_check_success('TA_GetOutputParameterInfo', retCode) # <<<<<<<<<<<<<< - * - * name = bytes2str(info.paramName) - */ - __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_ta_check_success); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 583; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __pyx_t_3 = __Pyx_PyInt_From_TA_RetCode(__pyx_v_retCode); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 583; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_3); - __pyx_t_4 = NULL; - __pyx_t_5 = 0; - if (CYTHON_COMPILING_IN_CPYTHON && unlikely(PyMethod_Check(__pyx_t_2))) { - __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2); - if (likely(__pyx_t_4)) { - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); - __Pyx_INCREF(__pyx_t_4); - __Pyx_INCREF(function); - __Pyx_DECREF_SET(__pyx_t_2, function); - __pyx_t_5 = 1; - } - } - __pyx_t_6 = PyTuple_New(2+__pyx_t_5); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 583; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_6); - if (__pyx_t_4) { - __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_4); __pyx_t_4 = NULL; - } - __Pyx_INCREF(__pyx_n_s_TA_GetOutputParameterInfo); - __Pyx_GIVEREF(__pyx_n_s_TA_GetOutputParameterInfo); - PyTuple_SET_ITEM(__pyx_t_6, 0+__pyx_t_5, __pyx_n_s_TA_GetOutputParameterInfo); - __Pyx_GIVEREF(__pyx_t_3); - PyTuple_SET_ITEM(__pyx_t_6, 1+__pyx_t_5, __pyx_t_3); - __pyx_t_3 = 0; - __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_6, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 583; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - - /* "talib/abstract.pyx":585 - * _ta_check_success('TA_GetOutputParameterInfo', retCode) - * - * name = bytes2str(info.paramName) # <<<<<<<<<<<<<< - * name = name[len('out'):].lower() - * # chop off leading 'real' if a descriptive name follows - */ - __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_bytes2str); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 585; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __pyx_t_6 = __Pyx_PyBytes_FromString(__pyx_v_info->paramName); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 585; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_6); - __pyx_t_3 = NULL; - if (CYTHON_COMPILING_IN_CPYTHON && unlikely(PyMethod_Check(__pyx_t_2))) { - __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); - if (likely(__pyx_t_3)) { - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); - __Pyx_INCREF(__pyx_t_3); - __Pyx_INCREF(function); - __Pyx_DECREF_SET(__pyx_t_2, function); - } - } - if (!__pyx_t_3) { - __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_6); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 585; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __Pyx_GOTREF(__pyx_t_1); - } else { - __pyx_t_4 = PyTuple_New(1+1); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 585; __pyx_clineno = __LINE__; goto __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 = NULL; - __Pyx_GIVEREF(__pyx_t_6); - PyTuple_SET_ITEM(__pyx_t_4, 0+1, __pyx_t_6); - __pyx_t_6 = 0; - __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_4, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 585; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - } - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __pyx_v_name = __pyx_t_1; - __pyx_t_1 = 0; - - /* "talib/abstract.pyx":586 - * - * name = bytes2str(info.paramName) - * name = name[len('out'):].lower() # <<<<<<<<<<<<<< - * # chop off leading 'real' if a descriptive name follows - * if 'real' in name and name not in ['real', 'real0', 'real1']: - */ - __pyx_t_5 = PyObject_Length(__pyx_n_s_out); if (unlikely(__pyx_t_5 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 586; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __pyx_t_2 = __Pyx_PyObject_GetSlice(__pyx_v_name, __pyx_t_5, 0, NULL, NULL, NULL, 1, 0, 1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 586; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_lower); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 586; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_4); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __pyx_t_2 = NULL; - if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_4))) { - __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_4); - if (likely(__pyx_t_2)) { - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); - __Pyx_INCREF(__pyx_t_2); - __Pyx_INCREF(function); - __Pyx_DECREF_SET(__pyx_t_4, function); - } - } - if (__pyx_t_2) { - __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 586; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - } else { - __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_4); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 586; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - } - __Pyx_GOTREF(__pyx_t_1); - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __Pyx_DECREF_SET(__pyx_v_name, __pyx_t_1); - __pyx_t_1 = 0; - - /* "talib/abstract.pyx":588 - * name = name[len('out'):].lower() - * # chop off leading 'real' if a descriptive name follows - * if 'real' in name and name not in ['real', 'real0', 'real1']: # <<<<<<<<<<<<<< - * name = name[len('real'):] - * - */ - __pyx_t_8 = (__Pyx_PySequence_ContainsTF(__pyx_n_s_real, __pyx_v_name, Py_EQ)); if (unlikely(__pyx_t_8 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 588; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __pyx_t_9 = (__pyx_t_8 != 0); - if (__pyx_t_9) { - } else { - __pyx_t_7 = __pyx_t_9; - goto __pyx_L4_bool_binop_done; - } - __Pyx_INCREF(__pyx_v_name); - __pyx_t_1 = __pyx_v_name; - __pyx_t_8 = (__Pyx_PyString_Equals(__pyx_t_1, __pyx_n_s_real, Py_NE)); if (unlikely(__pyx_t_8 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 588; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - if (__pyx_t_8) { - } else { - __pyx_t_9 = __pyx_t_8; - goto __pyx_L6_bool_binop_done; - } - __pyx_t_8 = (__Pyx_PyString_Equals(__pyx_t_1, __pyx_n_s_real0, Py_NE)); if (unlikely(__pyx_t_8 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 588; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - if (__pyx_t_8) { - } else { - __pyx_t_9 = __pyx_t_8; - goto __pyx_L6_bool_binop_done; - } - __pyx_t_8 = (__Pyx_PyString_Equals(__pyx_t_1, __pyx_n_s_real1, Py_NE)); if (unlikely(__pyx_t_8 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 588; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __pyx_t_9 = __pyx_t_8; - __pyx_L6_bool_binop_done:; - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __pyx_t_8 = (__pyx_t_9 != 0); - __pyx_t_7 = __pyx_t_8; - __pyx_L4_bool_binop_done:; - if (__pyx_t_7) { - - /* "talib/abstract.pyx":589 - * # chop off leading 'real' if a descriptive name follows - * if 'real' in name and name not in ['real', 'real0', 'real1']: - * name = name[len('real'):] # <<<<<<<<<<<<<< - * - * return { - */ - __pyx_t_5 = PyObject_Length(__pyx_n_s_real); if (unlikely(__pyx_t_5 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 589; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __pyx_t_1 = __Pyx_PyObject_GetSlice(__pyx_v_name, __pyx_t_5, 0, NULL, NULL, NULL, 1, 0, 1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 589; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - __Pyx_DECREF_SET(__pyx_v_name, __pyx_t_1); - __pyx_t_1 = 0; - - /* "talib/abstract.pyx":588 - * name = name[len('out'):].lower() - * # chop off leading 'real' if a descriptive name follows - * if 'real' in name and name not in ['real', 'real0', 'real1']: # <<<<<<<<<<<<<< - * name = name[len('real'):] - * - */ - } - - /* "talib/abstract.pyx":591 - * name = name[len('real'):] - * - * return { # <<<<<<<<<<<<<< - * 'name': name, - * 'flags': __get_flags(info.flags, TA_OUTPUT_FLAGS) - */ - __Pyx_XDECREF(__pyx_r); - - /* "talib/abstract.pyx":592 - * - * return { - * 'name': name, # <<<<<<<<<<<<<< - * 'flags': __get_flags(info.flags, TA_OUTPUT_FLAGS) - * } - */ - __pyx_t_1 = PyDict_New(); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 592; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_name, __pyx_v_name) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 592; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - - /* "talib/abstract.pyx":593 - * return { - * 'name': name, - * 'flags': __get_flags(info.flags, TA_OUTPUT_FLAGS) # <<<<<<<<<<<<<< - * } - * - */ - __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_get_flags); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 593; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __pyx_t_6 = __Pyx_PyInt_From_TA_OutputFlags(__pyx_v_info->flags); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 593; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_6); - __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_TA_OUTPUT_FLAGS); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 593; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_3); - __pyx_t_10 = NULL; - __pyx_t_5 = 0; - if (CYTHON_COMPILING_IN_CPYTHON && unlikely(PyMethod_Check(__pyx_t_2))) { - __pyx_t_10 = PyMethod_GET_SELF(__pyx_t_2); - if (likely(__pyx_t_10)) { - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); - __Pyx_INCREF(__pyx_t_10); - __Pyx_INCREF(function); - __Pyx_DECREF_SET(__pyx_t_2, function); - __pyx_t_5 = 1; - } - } - __pyx_t_11 = PyTuple_New(2+__pyx_t_5); if (unlikely(!__pyx_t_11)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 593; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_11); - if (__pyx_t_10) { - __Pyx_GIVEREF(__pyx_t_10); PyTuple_SET_ITEM(__pyx_t_11, 0, __pyx_t_10); __pyx_t_10 = NULL; - } - __Pyx_GIVEREF(__pyx_t_6); - PyTuple_SET_ITEM(__pyx_t_11, 0+__pyx_t_5, __pyx_t_6); - __Pyx_GIVEREF(__pyx_t_3); - PyTuple_SET_ITEM(__pyx_t_11, 1+__pyx_t_5, __pyx_t_3); - __pyx_t_6 = 0; - __pyx_t_3 = 0; - __pyx_t_4 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_11, NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 593; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_4); - __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_flags, __pyx_t_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 592; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __pyx_r = __pyx_t_1; - __pyx_t_1 = 0; - goto __pyx_L0; - - /* "talib/abstract.pyx":576 - * } - * - * def _ta_getOutputParameterInfo(char *function_name, int idx): # <<<<<<<<<<<<<< - * """ - * Returns the function's output info dict for the given index. It has two - */ - - /* function exit code */ - __pyx_L1_error:; - __Pyx_XDECREF(__pyx_t_1); - __Pyx_XDECREF(__pyx_t_2); - __Pyx_XDECREF(__pyx_t_3); - __Pyx_XDECREF(__pyx_t_4); - __Pyx_XDECREF(__pyx_t_6); - __Pyx_XDECREF(__pyx_t_10); - __Pyx_XDECREF(__pyx_t_11); - __Pyx_AddTraceback("talib.abstract._ta_getOutputParameterInfo", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF(__pyx_v_name); - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "talib/abstract.pyx":596 - * } - * - * def _get_defaults_and_docs(func_info): # <<<<<<<<<<<<<< - * """ - * Returns a tuple with two outputs: defaults, a dict of parameter defaults, - */ - -/* Python wrapper */ -static PyObject *__pyx_pw_5talib_8abstract_23_get_defaults_and_docs(PyObject *__pyx_self, PyObject *__pyx_v_func_info); /*proto*/ -static char __pyx_doc_5talib_8abstract_22_get_defaults_and_docs[] = "\n Returns a tuple with two outputs: defaults, a dict of parameter defaults,\n and documentation, a formatted docstring for the function.\n .. Note: func_info should come from Function.info, *not* _ta_getFuncInfo.\n "; -static PyMethodDef __pyx_mdef_5talib_8abstract_23_get_defaults_and_docs = {"_get_defaults_and_docs", (PyCFunction)__pyx_pw_5talib_8abstract_23_get_defaults_and_docs, METH_O, __pyx_doc_5talib_8abstract_22_get_defaults_and_docs}; -static PyObject *__pyx_pw_5talib_8abstract_23_get_defaults_and_docs(PyObject *__pyx_self, PyObject *__pyx_v_func_info) { - PyObject *__pyx_r = 0; - __Pyx_RefNannyDeclarations - __Pyx_RefNannySetupContext("_get_defaults_and_docs (wrapper)", 0); - __pyx_r = __pyx_pf_5talib_8abstract_22_get_defaults_and_docs(__pyx_self, ((PyObject *)__pyx_v_func_info)); - - /* function exit code */ - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -static PyObject *__pyx_pf_5talib_8abstract_22_get_defaults_and_docs(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_func_info) { - PyObject *__pyx_v_defaults = NULL; - PyObject *__pyx_v_func_line = NULL; - PyObject *__pyx_v_func_args = NULL; - PyObject *__pyx_v_docs = NULL; - PyObject *__pyx_v_input_names = NULL; - PyObject *__pyx_v_input_name = NULL; - PyObject *__pyx_v_value = NULL; - PyObject *__pyx_v_params = NULL; - PyObject *__pyx_v_param = NULL; - PyObject *__pyx_v_outputs = NULL; - PyObject *__pyx_v_output = NULL; - PyObject *__pyx_v_documentation = NULL; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - PyObject *__pyx_t_1 = NULL; - PyObject *__pyx_t_2 = NULL; - int __pyx_t_3; - Py_ssize_t __pyx_t_4; - PyObject *(*__pyx_t_5)(PyObject *); - int __pyx_t_6; - int __pyx_t_7; - PyObject *__pyx_t_8 = NULL; - PyObject *__pyx_t_9 = NULL; - PyObject *__pyx_t_10 = NULL; - int __pyx_lineno = 0; - const char *__pyx_filename = NULL; - int __pyx_clineno = 0; - __Pyx_RefNannySetupContext("_get_defaults_and_docs", 0); - - /* "talib/abstract.pyx":602 - * .. Note: func_info should come from Function.info, *not* _ta_getFuncInfo. - * """ - * defaults = {} # <<<<<<<<<<<<<< - * func_line = [func_info['name'], '('] - * func_args = ['[input_arrays]'] - */ - __pyx_t_1 = PyDict_New(); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 602; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - __pyx_v_defaults = ((PyObject*)__pyx_t_1); - __pyx_t_1 = 0; - - /* "talib/abstract.pyx":603 - * """ - * defaults = {} - * func_line = [func_info['name'], '('] # <<<<<<<<<<<<<< - * func_args = ['[input_arrays]'] - * docs = [] - */ - __pyx_t_1 = PyObject_GetItem(__pyx_v_func_info, __pyx_n_s_name); if (unlikely(__pyx_t_1 == NULL)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 603; __pyx_clineno = __LINE__; goto __pyx_L1_error;}; - __Pyx_GOTREF(__pyx_t_1); - __pyx_t_2 = PyList_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 603; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __Pyx_GIVEREF(__pyx_t_1); - PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_1); - __Pyx_INCREF(__pyx_kp_s__8); - __Pyx_GIVEREF(__pyx_kp_s__8); - PyList_SET_ITEM(__pyx_t_2, 1, __pyx_kp_s__8); - __pyx_t_1 = 0; - __pyx_v_func_line = ((PyObject*)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/abstract.pyx":604 - * defaults = {} - * func_line = [func_info['name'], '('] - * func_args = ['[input_arrays]'] # <<<<<<<<<<<<<< - * docs = [] - * docs.append('%(display_name)s (%(group)s)\n' % func_info) - */ - __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 604; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __Pyx_INCREF(__pyx_kp_s_input_arrays_2); - __Pyx_GIVEREF(__pyx_kp_s_input_arrays_2); - PyList_SET_ITEM(__pyx_t_2, 0, __pyx_kp_s_input_arrays_2); - __pyx_v_func_args = ((PyObject*)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/abstract.pyx":605 - * func_line = [func_info['name'], '('] - * func_args = ['[input_arrays]'] - * docs = [] # <<<<<<<<<<<<<< - * docs.append('%(display_name)s (%(group)s)\n' % func_info) - * - */ - __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 605; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __pyx_v_docs = ((PyObject*)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/abstract.pyx":606 - * func_args = ['[input_arrays]'] - * docs = [] - * docs.append('%(display_name)s (%(group)s)\n' % func_info) # <<<<<<<<<<<<<< - * - * input_names = func_info['input_names'] - */ - __pyx_t_2 = __Pyx_PyString_Format(__pyx_kp_s_display_name_s_group_s, __pyx_v_func_info); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 606; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __pyx_t_3 = __Pyx_PyList_Append(__pyx_v_docs, __pyx_t_2); if (unlikely(__pyx_t_3 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 606; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/abstract.pyx":608 - * docs.append('%(display_name)s (%(group)s)\n' % func_info) - * - * input_names = func_info['input_names'] # <<<<<<<<<<<<<< - * docs.append('Inputs:') - * for input_name in input_names: - */ - __pyx_t_2 = PyObject_GetItem(__pyx_v_func_info, __pyx_n_s_input_names); if (unlikely(__pyx_t_2 == NULL)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 608; __pyx_clineno = __LINE__; goto __pyx_L1_error;}; - __Pyx_GOTREF(__pyx_t_2); - __pyx_v_input_names = __pyx_t_2; - __pyx_t_2 = 0; - - /* "talib/abstract.pyx":609 - * - * input_names = func_info['input_names'] - * docs.append('Inputs:') # <<<<<<<<<<<<<< - * for input_name in input_names: - * value = input_names[input_name] - */ - __pyx_t_3 = __Pyx_PyList_Append(__pyx_v_docs, __pyx_kp_s_Inputs); if (unlikely(__pyx_t_3 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 609; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - - /* "talib/abstract.pyx":610 - * input_names = func_info['input_names'] - * docs.append('Inputs:') - * for input_name in input_names: # <<<<<<<<<<<<<< - * value = input_names[input_name] - * if not isinstance(value, list): - */ - if (likely(PyList_CheckExact(__pyx_v_input_names)) || PyTuple_CheckExact(__pyx_v_input_names)) { - __pyx_t_2 = __pyx_v_input_names; __Pyx_INCREF(__pyx_t_2); __pyx_t_4 = 0; - __pyx_t_5 = NULL; - } else { - __pyx_t_4 = -1; __pyx_t_2 = PyObject_GetIter(__pyx_v_input_names); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 610; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __pyx_t_5 = Py_TYPE(__pyx_t_2)->tp_iternext; if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 610; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - } - for (;;) { - if (likely(!__pyx_t_5)) { - if (likely(PyList_CheckExact(__pyx_t_2))) { - if (__pyx_t_4 >= PyList_GET_SIZE(__pyx_t_2)) break; - #if CYTHON_COMPILING_IN_CPYTHON - __pyx_t_1 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_4); __Pyx_INCREF(__pyx_t_1); __pyx_t_4++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 610; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - #else - __pyx_t_1 = PySequence_ITEM(__pyx_t_2, __pyx_t_4); __pyx_t_4++; if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 610; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - #endif - } else { - if (__pyx_t_4 >= PyTuple_GET_SIZE(__pyx_t_2)) break; - #if CYTHON_COMPILING_IN_CPYTHON - __pyx_t_1 = PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_4); __Pyx_INCREF(__pyx_t_1); __pyx_t_4++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 610; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - #else - __pyx_t_1 = PySequence_ITEM(__pyx_t_2, __pyx_t_4); __pyx_t_4++; if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 610; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - #endif - } - } else { - __pyx_t_1 = __pyx_t_5(__pyx_t_2); - if (unlikely(!__pyx_t_1)) { - PyObject* exc_type = PyErr_Occurred(); - if (exc_type) { - if (likely(exc_type == PyExc_StopIteration || PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); - else {__pyx_filename = __pyx_f[0]; __pyx_lineno = 610; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - } - break; - } - __Pyx_GOTREF(__pyx_t_1); - } - __Pyx_XDECREF_SET(__pyx_v_input_name, __pyx_t_1); - __pyx_t_1 = 0; - - /* "talib/abstract.pyx":611 - * docs.append('Inputs:') - * for input_name in input_names: - * value = input_names[input_name] # <<<<<<<<<<<<<< - * if not isinstance(value, list): - * value = '(any ndarray)' - */ - __pyx_t_1 = PyObject_GetItem(__pyx_v_input_names, __pyx_v_input_name); if (unlikely(__pyx_t_1 == NULL)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 611; __pyx_clineno = __LINE__; goto __pyx_L1_error;}; - __Pyx_GOTREF(__pyx_t_1); - __Pyx_XDECREF_SET(__pyx_v_value, __pyx_t_1); - __pyx_t_1 = 0; - - /* "talib/abstract.pyx":612 - * for input_name in input_names: - * value = input_names[input_name] - * if not isinstance(value, list): # <<<<<<<<<<<<<< - * value = '(any ndarray)' - * docs.append(' %s: %s' % (input_name, value)) - */ - __pyx_t_6 = PyList_Check(__pyx_v_value); - __pyx_t_7 = ((!(__pyx_t_6 != 0)) != 0); - if (__pyx_t_7) { - - /* "talib/abstract.pyx":613 - * value = input_names[input_name] - * if not isinstance(value, list): - * value = '(any ndarray)' # <<<<<<<<<<<<<< - * docs.append(' %s: %s' % (input_name, value)) - * - */ - __Pyx_INCREF(__pyx_kp_s_any_ndarray); - __Pyx_DECREF_SET(__pyx_v_value, __pyx_kp_s_any_ndarray); - - /* "talib/abstract.pyx":612 - * for input_name in input_names: - * value = input_names[input_name] - * if not isinstance(value, list): # <<<<<<<<<<<<<< - * value = '(any ndarray)' - * docs.append(' %s: %s' % (input_name, value)) - */ - } - - /* "talib/abstract.pyx":614 - * if not isinstance(value, list): - * value = '(any ndarray)' - * docs.append(' %s: %s' % (input_name, value)) # <<<<<<<<<<<<<< - * - * params = func_info['parameters'] - */ - __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 614; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - __Pyx_INCREF(__pyx_v_input_name); - __Pyx_GIVEREF(__pyx_v_input_name); - PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_input_name); - __Pyx_INCREF(__pyx_v_value); - __Pyx_GIVEREF(__pyx_v_value); - PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_v_value); - __pyx_t_8 = __Pyx_PyString_Format(__pyx_kp_s_s_s, __pyx_t_1); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 614; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_8); - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __pyx_t_3 = __Pyx_PyList_Append(__pyx_v_docs, __pyx_t_8); if (unlikely(__pyx_t_3 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 614; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - - /* "talib/abstract.pyx":610 - * input_names = func_info['input_names'] - * docs.append('Inputs:') - * for input_name in input_names: # <<<<<<<<<<<<<< - * value = input_names[input_name] - * if not isinstance(value, list): - */ - } - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/abstract.pyx":616 - * docs.append(' %s: %s' % (input_name, value)) - * - * params = func_info['parameters'] # <<<<<<<<<<<<<< - * if params: - * docs.append('Parameters:') - */ - __pyx_t_2 = PyObject_GetItem(__pyx_v_func_info, __pyx_n_s_parameters); if (unlikely(__pyx_t_2 == NULL)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 616; __pyx_clineno = __LINE__; goto __pyx_L1_error;}; - __Pyx_GOTREF(__pyx_t_2); - __pyx_v_params = __pyx_t_2; - __pyx_t_2 = 0; - - /* "talib/abstract.pyx":617 - * - * params = func_info['parameters'] - * if params: # <<<<<<<<<<<<<< - * docs.append('Parameters:') - * for param in params: - */ - __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_v_params); if (unlikely(__pyx_t_7 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 617; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - if (__pyx_t_7) { - - /* "talib/abstract.pyx":618 - * params = func_info['parameters'] - * if params: - * docs.append('Parameters:') # <<<<<<<<<<<<<< - * for param in params: - * docs.append(' %s: %s' % (param, params[param])) - */ - __pyx_t_3 = __Pyx_PyList_Append(__pyx_v_docs, __pyx_kp_s_Parameters); if (unlikely(__pyx_t_3 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 618; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - - /* "talib/abstract.pyx":617 - * - * params = func_info['parameters'] - * if params: # <<<<<<<<<<<<<< - * docs.append('Parameters:') - * for param in params: - */ - } - - /* "talib/abstract.pyx":619 - * if params: - * docs.append('Parameters:') - * for param in params: # <<<<<<<<<<<<<< - * docs.append(' %s: %s' % (param, params[param])) - * func_args.append('[%s=%s]' % (param, params[param])) - */ - if (likely(PyList_CheckExact(__pyx_v_params)) || PyTuple_CheckExact(__pyx_v_params)) { - __pyx_t_2 = __pyx_v_params; __Pyx_INCREF(__pyx_t_2); __pyx_t_4 = 0; - __pyx_t_5 = NULL; - } else { - __pyx_t_4 = -1; __pyx_t_2 = PyObject_GetIter(__pyx_v_params); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 619; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __pyx_t_5 = Py_TYPE(__pyx_t_2)->tp_iternext; if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 619; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - } - for (;;) { - if (likely(!__pyx_t_5)) { - if (likely(PyList_CheckExact(__pyx_t_2))) { - if (__pyx_t_4 >= PyList_GET_SIZE(__pyx_t_2)) break; - #if CYTHON_COMPILING_IN_CPYTHON - __pyx_t_8 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_4); __Pyx_INCREF(__pyx_t_8); __pyx_t_4++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 619; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - #else - __pyx_t_8 = PySequence_ITEM(__pyx_t_2, __pyx_t_4); __pyx_t_4++; if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 619; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_8); - #endif - } else { - if (__pyx_t_4 >= PyTuple_GET_SIZE(__pyx_t_2)) break; - #if CYTHON_COMPILING_IN_CPYTHON - __pyx_t_8 = PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_4); __Pyx_INCREF(__pyx_t_8); __pyx_t_4++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 619; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - #else - __pyx_t_8 = PySequence_ITEM(__pyx_t_2, __pyx_t_4); __pyx_t_4++; if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 619; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_8); - #endif - } - } else { - __pyx_t_8 = __pyx_t_5(__pyx_t_2); - if (unlikely(!__pyx_t_8)) { - PyObject* exc_type = PyErr_Occurred(); - if (exc_type) { - if (likely(exc_type == PyExc_StopIteration || PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); - else {__pyx_filename = __pyx_f[0]; __pyx_lineno = 619; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - } - break; - } - __Pyx_GOTREF(__pyx_t_8); - } - __Pyx_XDECREF_SET(__pyx_v_param, __pyx_t_8); - __pyx_t_8 = 0; - - /* "talib/abstract.pyx":620 - * docs.append('Parameters:') - * for param in params: - * docs.append(' %s: %s' % (param, params[param])) # <<<<<<<<<<<<<< - * func_args.append('[%s=%s]' % (param, params[param])) - * defaults[param] = params[param] - */ - __pyx_t_8 = PyObject_GetItem(__pyx_v_params, __pyx_v_param); if (unlikely(__pyx_t_8 == NULL)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 620; __pyx_clineno = __LINE__; goto __pyx_L1_error;}; - __Pyx_GOTREF(__pyx_t_8); - __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 620; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - __Pyx_INCREF(__pyx_v_param); - __Pyx_GIVEREF(__pyx_v_param); - PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_param); - __Pyx_GIVEREF(__pyx_t_8); - PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_8); - __pyx_t_8 = 0; - __pyx_t_8 = __Pyx_PyString_Format(__pyx_kp_s_s_s, __pyx_t_1); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 620; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_8); - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __pyx_t_3 = __Pyx_PyList_Append(__pyx_v_docs, __pyx_t_8); if (unlikely(__pyx_t_3 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 620; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - - /* "talib/abstract.pyx":621 - * for param in params: - * docs.append(' %s: %s' % (param, params[param])) - * func_args.append('[%s=%s]' % (param, params[param])) # <<<<<<<<<<<<<< - * defaults[param] = params[param] - * if param == 'matype': - */ - __pyx_t_8 = PyObject_GetItem(__pyx_v_params, __pyx_v_param); if (unlikely(__pyx_t_8 == NULL)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 621; __pyx_clineno = __LINE__; goto __pyx_L1_error;}; - __Pyx_GOTREF(__pyx_t_8); - __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 621; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - __Pyx_INCREF(__pyx_v_param); - __Pyx_GIVEREF(__pyx_v_param); - PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_param); - __Pyx_GIVEREF(__pyx_t_8); - PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_8); - __pyx_t_8 = 0; - __pyx_t_8 = __Pyx_PyString_Format(__pyx_kp_s_s_s_2, __pyx_t_1); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 621; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_8); - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __pyx_t_3 = __Pyx_PyList_Append(__pyx_v_func_args, __pyx_t_8); if (unlikely(__pyx_t_3 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 621; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - - /* "talib/abstract.pyx":622 - * docs.append(' %s: %s' % (param, params[param])) - * func_args.append('[%s=%s]' % (param, params[param])) - * defaults[param] = params[param] # <<<<<<<<<<<<<< - * if param == 'matype': - * docs[-1] = ' '.join([docs[-1], '(%s)' % MA_Type[params[param]]]) - */ - __pyx_t_8 = PyObject_GetItem(__pyx_v_params, __pyx_v_param); if (unlikely(__pyx_t_8 == NULL)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 622; __pyx_clineno = __LINE__; goto __pyx_L1_error;}; - __Pyx_GOTREF(__pyx_t_8); - if (unlikely(PyDict_SetItem(__pyx_v_defaults, __pyx_v_param, __pyx_t_8) < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 622; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - - /* "talib/abstract.pyx":623 - * func_args.append('[%s=%s]' % (param, params[param])) - * defaults[param] = params[param] - * if param == 'matype': # <<<<<<<<<<<<<< - * docs[-1] = ' '.join([docs[-1], '(%s)' % MA_Type[params[param]]]) - * - */ - __pyx_t_7 = (__Pyx_PyString_Equals(__pyx_v_param, __pyx_n_s_matype, Py_EQ)); if (unlikely(__pyx_t_7 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 623; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - if (__pyx_t_7) { - - /* "talib/abstract.pyx":624 - * defaults[param] = params[param] - * if param == 'matype': - * docs[-1] = ' '.join([docs[-1], '(%s)' % MA_Type[params[param]]]) # <<<<<<<<<<<<<< - * - * outputs = func_info['output_names'] - */ - __pyx_t_8 = __Pyx_GetItemInt_List(__pyx_v_docs, -1L, long, 1, __Pyx_PyInt_From_long, 1, 1, 1); if (unlikely(__pyx_t_8 == NULL)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 624; __pyx_clineno = __LINE__; goto __pyx_L1_error;}; - __Pyx_GOTREF(__pyx_t_8); - __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_MA_Type); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 624; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - __pyx_t_9 = PyObject_GetItem(__pyx_v_params, __pyx_v_param); if (unlikely(__pyx_t_9 == NULL)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 624; __pyx_clineno = __LINE__; goto __pyx_L1_error;}; - __Pyx_GOTREF(__pyx_t_9); - __pyx_t_10 = PyObject_GetItem(__pyx_t_1, __pyx_t_9); if (unlikely(__pyx_t_10 == NULL)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 624; __pyx_clineno = __LINE__; goto __pyx_L1_error;}; - __Pyx_GOTREF(__pyx_t_10); - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - __pyx_t_9 = __Pyx_PyString_Format(__pyx_kp_s_s_3, __pyx_t_10); if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 624; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_9); - __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; - __pyx_t_10 = PyList_New(2); if (unlikely(!__pyx_t_10)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 624; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_10); - __Pyx_GIVEREF(__pyx_t_8); - PyList_SET_ITEM(__pyx_t_10, 0, __pyx_t_8); - __Pyx_GIVEREF(__pyx_t_9); - PyList_SET_ITEM(__pyx_t_10, 1, __pyx_t_9); - __pyx_t_8 = 0; - __pyx_t_9 = 0; - __pyx_t_9 = __Pyx_PyString_Join(__pyx_kp_s__9, __pyx_t_10); if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 624; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_9); - __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; - if (unlikely(__Pyx_SetItemInt(__pyx_v_docs, -1L, __pyx_t_9, long, 1, __Pyx_PyInt_From_long, 1, 1, 1) < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 624; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - - /* "talib/abstract.pyx":623 - * func_args.append('[%s=%s]' % (param, params[param])) - * defaults[param] = params[param] - * if param == 'matype': # <<<<<<<<<<<<<< - * docs[-1] = ' '.join([docs[-1], '(%s)' % MA_Type[params[param]]]) - * - */ - } - - /* "talib/abstract.pyx":619 - * if params: - * docs.append('Parameters:') - * for param in params: # <<<<<<<<<<<<<< - * docs.append(' %s: %s' % (param, params[param])) - * func_args.append('[%s=%s]' % (param, params[param])) - */ - } - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/abstract.pyx":626 - * docs[-1] = ' '.join([docs[-1], '(%s)' % MA_Type[params[param]]]) - * - * outputs = func_info['output_names'] # <<<<<<<<<<<<<< - * docs.append('Outputs:') - * for output in outputs: - */ - __pyx_t_2 = PyObject_GetItem(__pyx_v_func_info, __pyx_n_s_output_names); if (unlikely(__pyx_t_2 == NULL)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 626; __pyx_clineno = __LINE__; goto __pyx_L1_error;}; - __Pyx_GOTREF(__pyx_t_2); - __pyx_v_outputs = __pyx_t_2; - __pyx_t_2 = 0; - - /* "talib/abstract.pyx":627 - * - * outputs = func_info['output_names'] - * docs.append('Outputs:') # <<<<<<<<<<<<<< - * for output in outputs: - * if output == 'integer': - */ - __pyx_t_3 = __Pyx_PyList_Append(__pyx_v_docs, __pyx_kp_s_Outputs); if (unlikely(__pyx_t_3 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 627; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - - /* "talib/abstract.pyx":628 - * outputs = func_info['output_names'] - * docs.append('Outputs:') - * for output in outputs: # <<<<<<<<<<<<<< - * if output == 'integer': - * output = 'integer (values are -100, 0 or 100)' - */ - if (likely(PyList_CheckExact(__pyx_v_outputs)) || PyTuple_CheckExact(__pyx_v_outputs)) { - __pyx_t_2 = __pyx_v_outputs; __Pyx_INCREF(__pyx_t_2); __pyx_t_4 = 0; - __pyx_t_5 = NULL; - } else { - __pyx_t_4 = -1; __pyx_t_2 = PyObject_GetIter(__pyx_v_outputs); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 628; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __pyx_t_5 = Py_TYPE(__pyx_t_2)->tp_iternext; if (unlikely(!__pyx_t_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 628; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - } - for (;;) { - if (likely(!__pyx_t_5)) { - if (likely(PyList_CheckExact(__pyx_t_2))) { - if (__pyx_t_4 >= PyList_GET_SIZE(__pyx_t_2)) break; - #if CYTHON_COMPILING_IN_CPYTHON - __pyx_t_9 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_4); __Pyx_INCREF(__pyx_t_9); __pyx_t_4++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 628; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - #else - __pyx_t_9 = PySequence_ITEM(__pyx_t_2, __pyx_t_4); __pyx_t_4++; if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 628; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_9); - #endif - } else { - if (__pyx_t_4 >= PyTuple_GET_SIZE(__pyx_t_2)) break; - #if CYTHON_COMPILING_IN_CPYTHON - __pyx_t_9 = PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_4); __Pyx_INCREF(__pyx_t_9); __pyx_t_4++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 628; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - #else - __pyx_t_9 = PySequence_ITEM(__pyx_t_2, __pyx_t_4); __pyx_t_4++; if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 628; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_9); - #endif - } - } else { - __pyx_t_9 = __pyx_t_5(__pyx_t_2); - if (unlikely(!__pyx_t_9)) { - PyObject* exc_type = PyErr_Occurred(); - if (exc_type) { - if (likely(exc_type == PyExc_StopIteration || PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); - else {__pyx_filename = __pyx_f[0]; __pyx_lineno = 628; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - } - break; - } - __Pyx_GOTREF(__pyx_t_9); - } - __Pyx_XDECREF_SET(__pyx_v_output, __pyx_t_9); - __pyx_t_9 = 0; - - /* "talib/abstract.pyx":629 - * docs.append('Outputs:') - * for output in outputs: - * if output == 'integer': # <<<<<<<<<<<<<< - * output = 'integer (values are -100, 0 or 100)' - * docs.append(' %s' % output) - */ - __pyx_t_7 = (__Pyx_PyString_Equals(__pyx_v_output, __pyx_n_s_integer, Py_EQ)); if (unlikely(__pyx_t_7 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 629; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - if (__pyx_t_7) { - - /* "talib/abstract.pyx":630 - * for output in outputs: - * if output == 'integer': - * output = 'integer (values are -100, 0 or 100)' # <<<<<<<<<<<<<< - * docs.append(' %s' % output) - * - */ - __Pyx_INCREF(__pyx_kp_s_integer_values_are_100_0_or_100); - __Pyx_DECREF_SET(__pyx_v_output, __pyx_kp_s_integer_values_are_100_0_or_100); - - /* "talib/abstract.pyx":629 - * docs.append('Outputs:') - * for output in outputs: - * if output == 'integer': # <<<<<<<<<<<<<< - * output = 'integer (values are -100, 0 or 100)' - * docs.append(' %s' % output) - */ - } - - /* "talib/abstract.pyx":631 - * if output == 'integer': - * output = 'integer (values are -100, 0 or 100)' - * docs.append(' %s' % output) # <<<<<<<<<<<<<< - * - * func_line.append(', '.join(func_args)) - */ - __pyx_t_9 = __Pyx_PyString_Format(__pyx_kp_s_s_4, __pyx_v_output); if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 631; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_9); - __pyx_t_3 = __Pyx_PyList_Append(__pyx_v_docs, __pyx_t_9); if (unlikely(__pyx_t_3 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 631; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - - /* "talib/abstract.pyx":628 - * outputs = func_info['output_names'] - * docs.append('Outputs:') - * for output in outputs: # <<<<<<<<<<<<<< - * if output == 'integer': - * output = 'integer (values are -100, 0 or 100)' - */ - } - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/abstract.pyx":633 - * docs.append(' %s' % output) - * - * func_line.append(', '.join(func_args)) # <<<<<<<<<<<<<< - * func_line.append(')\n') - * docs.insert(0, ''.join(func_line)) - */ - __pyx_t_2 = __Pyx_PyString_Join(__pyx_kp_s__6, __pyx_v_func_args); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 633; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __pyx_t_3 = __Pyx_PyList_Append(__pyx_v_func_line, __pyx_t_2); if (unlikely(__pyx_t_3 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 633; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/abstract.pyx":634 - * - * func_line.append(', '.join(func_args)) - * func_line.append(')\n') # <<<<<<<<<<<<<< - * docs.insert(0, ''.join(func_line)) - * documentation = '\n'.join(docs) - */ - __pyx_t_3 = __Pyx_PyList_Append(__pyx_v_func_line, __pyx_kp_s__10); if (unlikely(__pyx_t_3 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 634; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - - /* "talib/abstract.pyx":635 - * func_line.append(', '.join(func_args)) - * func_line.append(')\n') - * docs.insert(0, ''.join(func_line)) # <<<<<<<<<<<<<< - * documentation = '\n'.join(docs) - * return defaults, documentation - */ - __pyx_t_2 = __Pyx_PyString_Join(__pyx_kp_s__5, __pyx_v_func_line); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 635; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __pyx_t_3 = PyList_Insert(__pyx_v_docs, 0, __pyx_t_2); if (unlikely(__pyx_t_3 == -1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 635; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/abstract.pyx":636 - * func_line.append(')\n') - * docs.insert(0, ''.join(func_line)) - * documentation = '\n'.join(docs) # <<<<<<<<<<<<<< - * return defaults, documentation - * - */ - __pyx_t_2 = __Pyx_PyString_Join(__pyx_kp_s__11, __pyx_v_docs); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 636; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __pyx_v_documentation = ((PyObject*)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/abstract.pyx":637 - * docs.insert(0, ''.join(func_line)) - * documentation = '\n'.join(docs) - * return defaults, documentation # <<<<<<<<<<<<<< - * - * - */ - __Pyx_XDECREF(__pyx_r); - __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 637; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __Pyx_INCREF(__pyx_v_defaults); - __Pyx_GIVEREF(__pyx_v_defaults); - PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_defaults); - __Pyx_INCREF(__pyx_v_documentation); - __Pyx_GIVEREF(__pyx_v_documentation); - PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_v_documentation); - __pyx_r = __pyx_t_2; - __pyx_t_2 = 0; - goto __pyx_L0; - - /* "talib/abstract.pyx":596 - * } - * - * def _get_defaults_and_docs(func_info): # <<<<<<<<<<<<<< - * """ - * Returns a tuple with two outputs: defaults, a dict of parameter defaults, - */ - - /* function exit code */ - __pyx_L1_error:; - __Pyx_XDECREF(__pyx_t_1); - __Pyx_XDECREF(__pyx_t_2); - __Pyx_XDECREF(__pyx_t_8); - __Pyx_XDECREF(__pyx_t_9); - __Pyx_XDECREF(__pyx_t_10); - __Pyx_AddTraceback("talib.abstract._get_defaults_and_docs", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF(__pyx_v_defaults); - __Pyx_XDECREF(__pyx_v_func_line); - __Pyx_XDECREF(__pyx_v_func_args); - __Pyx_XDECREF(__pyx_v_docs); - __Pyx_XDECREF(__pyx_v_input_names); - __Pyx_XDECREF(__pyx_v_input_name); - __Pyx_XDECREF(__pyx_v_value); - __Pyx_XDECREF(__pyx_v_params); - __Pyx_XDECREF(__pyx_v_param); - __Pyx_XDECREF(__pyx_v_outputs); - __Pyx_XDECREF(__pyx_v_output); - __Pyx_XDECREF(__pyx_v_documentation); - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "talib/abstract.pyx":648 - * # - Setting TALIB paramholder optInput values and calling the lookback function - * - * cdef lib.TA_FuncHandle* __ta_getFuncHandle(char *function_name): # <<<<<<<<<<<<<< - * """ - * Returns a pointer to a function handle for the given function name - */ - -static TA_FuncHandle *__pyx_f_5talib_8abstract___ta_getFuncHandle(char *__pyx_v_function_name) { - TA_FuncHandle *__pyx_v_handle; - TA_FuncHandle *__pyx_r; - __Pyx_RefNannyDeclarations - PyObject *__pyx_t_1 = NULL; - PyObject *__pyx_t_2 = NULL; - PyObject *__pyx_t_3 = NULL; - PyObject *__pyx_t_4 = NULL; - Py_ssize_t __pyx_t_5; - PyObject *__pyx_t_6 = NULL; - int __pyx_lineno = 0; - const char *__pyx_filename = NULL; - int __pyx_clineno = 0; - __Pyx_RefNannySetupContext("__ta_getFuncHandle", 0); - - /* "talib/abstract.pyx":653 - * """ - * cdef lib.TA_FuncHandle *handle - * _ta_check_success('TA_GetFuncHandle', lib.TA_GetFuncHandle(function_name, &handle)) # <<<<<<<<<<<<<< - * return handle - * - */ - __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_ta_check_success); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 653; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __pyx_t_3 = __Pyx_PyInt_From_TA_RetCode(TA_GetFuncHandle(__pyx_v_function_name, (&__pyx_v_handle))); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 653; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_3); - __pyx_t_4 = NULL; - __pyx_t_5 = 0; - if (CYTHON_COMPILING_IN_CPYTHON && unlikely(PyMethod_Check(__pyx_t_2))) { - __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2); - if (likely(__pyx_t_4)) { - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); - __Pyx_INCREF(__pyx_t_4); - __Pyx_INCREF(function); - __Pyx_DECREF_SET(__pyx_t_2, function); - __pyx_t_5 = 1; - } - } - __pyx_t_6 = PyTuple_New(2+__pyx_t_5); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 653; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_6); - if (__pyx_t_4) { - __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_4); __pyx_t_4 = NULL; - } - __Pyx_INCREF(__pyx_n_s_TA_GetFuncHandle); - __Pyx_GIVEREF(__pyx_n_s_TA_GetFuncHandle); - PyTuple_SET_ITEM(__pyx_t_6, 0+__pyx_t_5, __pyx_n_s_TA_GetFuncHandle); - __Pyx_GIVEREF(__pyx_t_3); - PyTuple_SET_ITEM(__pyx_t_6, 1+__pyx_t_5, __pyx_t_3); - __pyx_t_3 = 0; - __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_6, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 653; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - - /* "talib/abstract.pyx":654 - * cdef lib.TA_FuncHandle *handle - * _ta_check_success('TA_GetFuncHandle', lib.TA_GetFuncHandle(function_name, &handle)) - * return handle # <<<<<<<<<<<<<< - * - * cdef lib.TA_ParamHolder* __ta_paramHolderAlloc(char *function_name): - */ - __pyx_r = __pyx_v_handle; - goto __pyx_L0; - - /* "talib/abstract.pyx":648 - * # - Setting TALIB paramholder optInput values and calling the lookback function - * - * cdef lib.TA_FuncHandle* __ta_getFuncHandle(char *function_name): # <<<<<<<<<<<<<< - * """ - * Returns a pointer to a function handle for the given function name - */ - - /* function exit code */ - __pyx_L1_error:; - __Pyx_XDECREF(__pyx_t_1); - __Pyx_XDECREF(__pyx_t_2); - __Pyx_XDECREF(__pyx_t_3); - __Pyx_XDECREF(__pyx_t_4); - __Pyx_XDECREF(__pyx_t_6); - __Pyx_WriteUnraisable("talib.abstract.__ta_getFuncHandle", __pyx_clineno, __pyx_lineno, __pyx_filename, 0, 0); - __pyx_r = 0; - __pyx_L0:; - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "talib/abstract.pyx":656 - * return handle - * - * cdef lib.TA_ParamHolder* __ta_paramHolderAlloc(char *function_name): # <<<<<<<<<<<<<< - * """ - * Returns a pointer to a parameter holder for the given function name - */ - -static TA_ParamHolder *__pyx_f_5talib_8abstract___ta_paramHolderAlloc(char *__pyx_v_function_name) { - TA_ParamHolder *__pyx_v_holder; - TA_RetCode __pyx_v_retCode; - TA_ParamHolder *__pyx_r; - __Pyx_RefNannyDeclarations - PyObject *__pyx_t_1 = NULL; - PyObject *__pyx_t_2 = NULL; - PyObject *__pyx_t_3 = NULL; - PyObject *__pyx_t_4 = NULL; - Py_ssize_t __pyx_t_5; - PyObject *__pyx_t_6 = NULL; - int __pyx_lineno = 0; - const char *__pyx_filename = NULL; - int __pyx_clineno = 0; - __Pyx_RefNannySetupContext("__ta_paramHolderAlloc", 0); - - /* "talib/abstract.pyx":661 - * """ - * cdef lib.TA_ParamHolder *holder - * retCode = lib.TA_ParamHolderAlloc(__ta_getFuncHandle(function_name), &holder) # <<<<<<<<<<<<<< - * _ta_check_success('TA_ParamHolderAlloc', retCode) - * return holder - */ - __pyx_v_retCode = TA_ParamHolderAlloc(__pyx_f_5talib_8abstract___ta_getFuncHandle(__pyx_v_function_name), (&__pyx_v_holder)); - - /* "talib/abstract.pyx":662 - * cdef lib.TA_ParamHolder *holder - * retCode = lib.TA_ParamHolderAlloc(__ta_getFuncHandle(function_name), &holder) - * _ta_check_success('TA_ParamHolderAlloc', retCode) # <<<<<<<<<<<<<< - * return holder - * - */ - __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_ta_check_success); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 662; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __pyx_t_3 = __Pyx_PyInt_From_TA_RetCode(__pyx_v_retCode); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 662; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_3); - __pyx_t_4 = NULL; - __pyx_t_5 = 0; - if (CYTHON_COMPILING_IN_CPYTHON && unlikely(PyMethod_Check(__pyx_t_2))) { - __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2); - if (likely(__pyx_t_4)) { - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); - __Pyx_INCREF(__pyx_t_4); - __Pyx_INCREF(function); - __Pyx_DECREF_SET(__pyx_t_2, function); - __pyx_t_5 = 1; - } - } - __pyx_t_6 = PyTuple_New(2+__pyx_t_5); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 662; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_6); - if (__pyx_t_4) { - __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_4); __pyx_t_4 = NULL; - } - __Pyx_INCREF(__pyx_n_s_TA_ParamHolderAlloc); - __Pyx_GIVEREF(__pyx_n_s_TA_ParamHolderAlloc); - PyTuple_SET_ITEM(__pyx_t_6, 0+__pyx_t_5, __pyx_n_s_TA_ParamHolderAlloc); - __Pyx_GIVEREF(__pyx_t_3); - PyTuple_SET_ITEM(__pyx_t_6, 1+__pyx_t_5, __pyx_t_3); - __pyx_t_3 = 0; - __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_6, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 662; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - - /* "talib/abstract.pyx":663 - * retCode = lib.TA_ParamHolderAlloc(__ta_getFuncHandle(function_name), &holder) - * _ta_check_success('TA_ParamHolderAlloc', retCode) - * return holder # <<<<<<<<<<<<<< - * - * cdef int __ta_paramHolderFree(lib.TA_ParamHolder *params): - */ - __pyx_r = __pyx_v_holder; - goto __pyx_L0; - - /* "talib/abstract.pyx":656 - * return handle - * - * cdef lib.TA_ParamHolder* __ta_paramHolderAlloc(char *function_name): # <<<<<<<<<<<<<< - * """ - * Returns a pointer to a parameter holder for the given function name - */ - - /* function exit code */ - __pyx_L1_error:; - __Pyx_XDECREF(__pyx_t_1); - __Pyx_XDECREF(__pyx_t_2); - __Pyx_XDECREF(__pyx_t_3); - __Pyx_XDECREF(__pyx_t_4); - __Pyx_XDECREF(__pyx_t_6); - __Pyx_WriteUnraisable("talib.abstract.__ta_paramHolderAlloc", __pyx_clineno, __pyx_lineno, __pyx_filename, 0, 0); - __pyx_r = 0; - __pyx_L0:; - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "talib/abstract.pyx":665 - * return holder - * - * cdef int __ta_paramHolderFree(lib.TA_ParamHolder *params): # <<<<<<<<<<<<<< - * """ - * Frees the memory allocated by __ta_paramHolderAlloc (call when done with the parameter holder) - */ - -static int __pyx_f_5talib_8abstract___ta_paramHolderFree(TA_ParamHolder *__pyx_v_params) { - int __pyx_r; - __Pyx_RefNannyDeclarations - PyObject *__pyx_t_1 = NULL; - PyObject *__pyx_t_2 = NULL; - PyObject *__pyx_t_3 = NULL; - PyObject *__pyx_t_4 = NULL; - Py_ssize_t __pyx_t_5; - PyObject *__pyx_t_6 = NULL; - int __pyx_lineno = 0; - const char *__pyx_filename = NULL; - int __pyx_clineno = 0; - __Pyx_RefNannySetupContext("__ta_paramHolderFree", 0); - - /* "talib/abstract.pyx":670 - * WARNING: Not properly calling this function will cause memory leaks! - * """ - * _ta_check_success('TA_ParamHolderFree', lib.TA_ParamHolderFree(params)) # <<<<<<<<<<<<<< - * - * cdef int __ta_setOptInputParamInteger(lib.TA_ParamHolder *holder, int idx, int value): - */ - __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_ta_check_success); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 670; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __pyx_t_3 = __Pyx_PyInt_From_TA_RetCode(TA_ParamHolderFree(__pyx_v_params)); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 670; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_3); - __pyx_t_4 = NULL; - __pyx_t_5 = 0; - if (CYTHON_COMPILING_IN_CPYTHON && unlikely(PyMethod_Check(__pyx_t_2))) { - __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2); - if (likely(__pyx_t_4)) { - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); - __Pyx_INCREF(__pyx_t_4); - __Pyx_INCREF(function); - __Pyx_DECREF_SET(__pyx_t_2, function); - __pyx_t_5 = 1; - } - } - __pyx_t_6 = PyTuple_New(2+__pyx_t_5); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 670; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_6); - if (__pyx_t_4) { - __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_4); __pyx_t_4 = NULL; - } - __Pyx_INCREF(__pyx_n_s_TA_ParamHolderFree); - __Pyx_GIVEREF(__pyx_n_s_TA_ParamHolderFree); - PyTuple_SET_ITEM(__pyx_t_6, 0+__pyx_t_5, __pyx_n_s_TA_ParamHolderFree); - __Pyx_GIVEREF(__pyx_t_3); - PyTuple_SET_ITEM(__pyx_t_6, 1+__pyx_t_5, __pyx_t_3); - __pyx_t_3 = 0; - __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_6, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 670; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - - /* "talib/abstract.pyx":665 - * return holder - * - * cdef int __ta_paramHolderFree(lib.TA_ParamHolder *params): # <<<<<<<<<<<<<< - * """ - * Frees the memory allocated by __ta_paramHolderAlloc (call when done with the parameter holder) - */ - - /* function exit code */ - __pyx_r = 0; - goto __pyx_L0; - __pyx_L1_error:; - __Pyx_XDECREF(__pyx_t_1); - __Pyx_XDECREF(__pyx_t_2); - __Pyx_XDECREF(__pyx_t_3); - __Pyx_XDECREF(__pyx_t_4); - __Pyx_XDECREF(__pyx_t_6); - __Pyx_WriteUnraisable("talib.abstract.__ta_paramHolderFree", __pyx_clineno, __pyx_lineno, __pyx_filename, 0, 0); - __pyx_r = 0; - __pyx_L0:; - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "talib/abstract.pyx":672 - * _ta_check_success('TA_ParamHolderFree', lib.TA_ParamHolderFree(params)) - * - * cdef int __ta_setOptInputParamInteger(lib.TA_ParamHolder *holder, int idx, int value): # <<<<<<<<<<<<<< - * retCode = lib.TA_SetOptInputParamInteger(holder, idx, value) - * _ta_check_success('TA_SetOptInputParamInteger', retCode) - */ - -static int __pyx_f_5talib_8abstract___ta_setOptInputParamInteger(TA_ParamHolder *__pyx_v_holder, int __pyx_v_idx, int __pyx_v_value) { - TA_RetCode __pyx_v_retCode; - int __pyx_r; - __Pyx_RefNannyDeclarations - PyObject *__pyx_t_1 = NULL; - PyObject *__pyx_t_2 = NULL; - PyObject *__pyx_t_3 = NULL; - PyObject *__pyx_t_4 = NULL; - Py_ssize_t __pyx_t_5; - PyObject *__pyx_t_6 = NULL; - int __pyx_lineno = 0; - const char *__pyx_filename = NULL; - int __pyx_clineno = 0; - __Pyx_RefNannySetupContext("__ta_setOptInputParamInteger", 0); - - /* "talib/abstract.pyx":673 - * - * cdef int __ta_setOptInputParamInteger(lib.TA_ParamHolder *holder, int idx, int value): - * retCode = lib.TA_SetOptInputParamInteger(holder, idx, value) # <<<<<<<<<<<<<< - * _ta_check_success('TA_SetOptInputParamInteger', retCode) - * - */ - __pyx_v_retCode = TA_SetOptInputParamInteger(__pyx_v_holder, __pyx_v_idx, __pyx_v_value); - - /* "talib/abstract.pyx":674 - * cdef int __ta_setOptInputParamInteger(lib.TA_ParamHolder *holder, int idx, int value): - * retCode = lib.TA_SetOptInputParamInteger(holder, idx, value) - * _ta_check_success('TA_SetOptInputParamInteger', retCode) # <<<<<<<<<<<<<< - * - * cdef int __ta_setOptInputParamReal(lib.TA_ParamHolder *holder, int idx, int value): - */ - __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_ta_check_success); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 674; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __pyx_t_3 = __Pyx_PyInt_From_TA_RetCode(__pyx_v_retCode); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 674; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_3); - __pyx_t_4 = NULL; - __pyx_t_5 = 0; - if (CYTHON_COMPILING_IN_CPYTHON && unlikely(PyMethod_Check(__pyx_t_2))) { - __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2); - if (likely(__pyx_t_4)) { - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); - __Pyx_INCREF(__pyx_t_4); - __Pyx_INCREF(function); - __Pyx_DECREF_SET(__pyx_t_2, function); - __pyx_t_5 = 1; - } - } - __pyx_t_6 = PyTuple_New(2+__pyx_t_5); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 674; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_6); - if (__pyx_t_4) { - __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_4); __pyx_t_4 = NULL; - } - __Pyx_INCREF(__pyx_n_s_TA_SetOptInputParamInteger); - __Pyx_GIVEREF(__pyx_n_s_TA_SetOptInputParamInteger); - PyTuple_SET_ITEM(__pyx_t_6, 0+__pyx_t_5, __pyx_n_s_TA_SetOptInputParamInteger); - __Pyx_GIVEREF(__pyx_t_3); - PyTuple_SET_ITEM(__pyx_t_6, 1+__pyx_t_5, __pyx_t_3); - __pyx_t_3 = 0; - __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_6, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 674; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - - /* "talib/abstract.pyx":672 - * _ta_check_success('TA_ParamHolderFree', lib.TA_ParamHolderFree(params)) - * - * cdef int __ta_setOptInputParamInteger(lib.TA_ParamHolder *holder, int idx, int value): # <<<<<<<<<<<<<< - * retCode = lib.TA_SetOptInputParamInteger(holder, idx, value) - * _ta_check_success('TA_SetOptInputParamInteger', retCode) - */ - - /* function exit code */ - __pyx_r = 0; - goto __pyx_L0; - __pyx_L1_error:; - __Pyx_XDECREF(__pyx_t_1); - __Pyx_XDECREF(__pyx_t_2); - __Pyx_XDECREF(__pyx_t_3); - __Pyx_XDECREF(__pyx_t_4); - __Pyx_XDECREF(__pyx_t_6); - __Pyx_WriteUnraisable("talib.abstract.__ta_setOptInputParamInteger", __pyx_clineno, __pyx_lineno, __pyx_filename, 0, 0); - __pyx_r = 0; - __pyx_L0:; - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "talib/abstract.pyx":676 - * _ta_check_success('TA_SetOptInputParamInteger', retCode) - * - * cdef int __ta_setOptInputParamReal(lib.TA_ParamHolder *holder, int idx, int value): # <<<<<<<<<<<<<< - * retCode = lib.TA_SetOptInputParamReal(holder, idx, value) - * _ta_check_success('TA_SetOptInputParamReal', retCode) - */ - -static int __pyx_f_5talib_8abstract___ta_setOptInputParamReal(TA_ParamHolder *__pyx_v_holder, int __pyx_v_idx, int __pyx_v_value) { - TA_RetCode __pyx_v_retCode; - int __pyx_r; - __Pyx_RefNannyDeclarations - PyObject *__pyx_t_1 = NULL; - PyObject *__pyx_t_2 = NULL; - PyObject *__pyx_t_3 = NULL; - PyObject *__pyx_t_4 = NULL; - Py_ssize_t __pyx_t_5; - PyObject *__pyx_t_6 = NULL; - int __pyx_lineno = 0; - const char *__pyx_filename = NULL; - int __pyx_clineno = 0; - __Pyx_RefNannySetupContext("__ta_setOptInputParamReal", 0); - - /* "talib/abstract.pyx":677 - * - * cdef int __ta_setOptInputParamReal(lib.TA_ParamHolder *holder, int idx, int value): - * retCode = lib.TA_SetOptInputParamReal(holder, idx, value) # <<<<<<<<<<<<<< - * _ta_check_success('TA_SetOptInputParamReal', retCode) - * - */ - __pyx_v_retCode = TA_SetOptInputParamReal(__pyx_v_holder, __pyx_v_idx, __pyx_v_value); - - /* "talib/abstract.pyx":678 - * cdef int __ta_setOptInputParamReal(lib.TA_ParamHolder *holder, int idx, int value): - * retCode = lib.TA_SetOptInputParamReal(holder, idx, value) - * _ta_check_success('TA_SetOptInputParamReal', retCode) # <<<<<<<<<<<<<< - * - * cdef int __ta_getLookback(lib.TA_ParamHolder *holder): - */ - __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_ta_check_success); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 678; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __pyx_t_3 = __Pyx_PyInt_From_TA_RetCode(__pyx_v_retCode); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 678; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_3); - __pyx_t_4 = NULL; - __pyx_t_5 = 0; - if (CYTHON_COMPILING_IN_CPYTHON && unlikely(PyMethod_Check(__pyx_t_2))) { - __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2); - if (likely(__pyx_t_4)) { - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); - __Pyx_INCREF(__pyx_t_4); - __Pyx_INCREF(function); - __Pyx_DECREF_SET(__pyx_t_2, function); - __pyx_t_5 = 1; - } - } - __pyx_t_6 = PyTuple_New(2+__pyx_t_5); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 678; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_6); - if (__pyx_t_4) { - __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_4); __pyx_t_4 = NULL; - } - __Pyx_INCREF(__pyx_n_s_TA_SetOptInputParamReal); - __Pyx_GIVEREF(__pyx_n_s_TA_SetOptInputParamReal); - PyTuple_SET_ITEM(__pyx_t_6, 0+__pyx_t_5, __pyx_n_s_TA_SetOptInputParamReal); - __Pyx_GIVEREF(__pyx_t_3); - PyTuple_SET_ITEM(__pyx_t_6, 1+__pyx_t_5, __pyx_t_3); - __pyx_t_3 = 0; - __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_6, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 678; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - - /* "talib/abstract.pyx":676 - * _ta_check_success('TA_SetOptInputParamInteger', retCode) - * - * cdef int __ta_setOptInputParamReal(lib.TA_ParamHolder *holder, int idx, int value): # <<<<<<<<<<<<<< - * retCode = lib.TA_SetOptInputParamReal(holder, idx, value) - * _ta_check_success('TA_SetOptInputParamReal', retCode) - */ - - /* function exit code */ - __pyx_r = 0; - goto __pyx_L0; - __pyx_L1_error:; - __Pyx_XDECREF(__pyx_t_1); - __Pyx_XDECREF(__pyx_t_2); - __Pyx_XDECREF(__pyx_t_3); - __Pyx_XDECREF(__pyx_t_4); - __Pyx_XDECREF(__pyx_t_6); - __Pyx_WriteUnraisable("talib.abstract.__ta_setOptInputParamReal", __pyx_clineno, __pyx_lineno, __pyx_filename, 0, 0); - __pyx_r = 0; - __pyx_L0:; - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "talib/abstract.pyx":680 - * _ta_check_success('TA_SetOptInputParamReal', retCode) - * - * cdef int __ta_getLookback(lib.TA_ParamHolder *holder): # <<<<<<<<<<<<<< - * cdef int lookback - * retCode = lib.TA_GetLookback(holder, &lookback) - */ - -static int __pyx_f_5talib_8abstract___ta_getLookback(TA_ParamHolder *__pyx_v_holder) { - int __pyx_v_lookback; - TA_RetCode __pyx_v_retCode; - int __pyx_r; - __Pyx_RefNannyDeclarations - PyObject *__pyx_t_1 = NULL; - PyObject *__pyx_t_2 = NULL; - PyObject *__pyx_t_3 = NULL; - PyObject *__pyx_t_4 = NULL; - Py_ssize_t __pyx_t_5; - PyObject *__pyx_t_6 = NULL; - int __pyx_lineno = 0; - const char *__pyx_filename = NULL; - int __pyx_clineno = 0; - __Pyx_RefNannySetupContext("__ta_getLookback", 0); - - /* "talib/abstract.pyx":682 - * cdef int __ta_getLookback(lib.TA_ParamHolder *holder): - * cdef int lookback - * retCode = lib.TA_GetLookback(holder, &lookback) # <<<<<<<<<<<<<< - * _ta_check_success('TA_GetLookback', retCode) - * return lookback - */ - __pyx_v_retCode = TA_GetLookback(__pyx_v_holder, (&__pyx_v_lookback)); - - /* "talib/abstract.pyx":683 - * cdef int lookback - * retCode = lib.TA_GetLookback(holder, &lookback) - * _ta_check_success('TA_GetLookback', retCode) # <<<<<<<<<<<<<< - * return lookback - * - */ - __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_ta_check_success); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 683; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __pyx_t_3 = __Pyx_PyInt_From_TA_RetCode(__pyx_v_retCode); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 683; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_3); - __pyx_t_4 = NULL; - __pyx_t_5 = 0; - if (CYTHON_COMPILING_IN_CPYTHON && unlikely(PyMethod_Check(__pyx_t_2))) { - __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2); - if (likely(__pyx_t_4)) { - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); - __Pyx_INCREF(__pyx_t_4); - __Pyx_INCREF(function); - __Pyx_DECREF_SET(__pyx_t_2, function); - __pyx_t_5 = 1; - } - } - __pyx_t_6 = PyTuple_New(2+__pyx_t_5); if (unlikely(!__pyx_t_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 683; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_6); - if (__pyx_t_4) { - __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_4); __pyx_t_4 = NULL; - } - __Pyx_INCREF(__pyx_n_s_TA_GetLookback); - __Pyx_GIVEREF(__pyx_n_s_TA_GetLookback); - PyTuple_SET_ITEM(__pyx_t_6, 0+__pyx_t_5, __pyx_n_s_TA_GetLookback); - __Pyx_GIVEREF(__pyx_t_3); - PyTuple_SET_ITEM(__pyx_t_6, 1+__pyx_t_5, __pyx_t_3); - __pyx_t_3 = 0; - __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_6, NULL); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 683; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - - /* "talib/abstract.pyx":684 - * retCode = lib.TA_GetLookback(holder, &lookback) - * _ta_check_success('TA_GetLookback', retCode) - * return lookback # <<<<<<<<<<<<<< - * - * # Configure all the available TA-Lib functions to be exported as - */ - __pyx_r = __pyx_v_lookback; - goto __pyx_L0; - - /* "talib/abstract.pyx":680 - * _ta_check_success('TA_SetOptInputParamReal', retCode) - * - * cdef int __ta_getLookback(lib.TA_ParamHolder *holder): # <<<<<<<<<<<<<< - * cdef int lookback - * retCode = lib.TA_GetLookback(holder, &lookback) - */ - - /* function exit code */ - __pyx_L1_error:; - __Pyx_XDECREF(__pyx_t_1); - __Pyx_XDECREF(__pyx_t_2); - __Pyx_XDECREF(__pyx_t_3); - __Pyx_XDECREF(__pyx_t_4); - __Pyx_XDECREF(__pyx_t_6); - __Pyx_WriteUnraisable("talib.abstract.__ta_getLookback", __pyx_clineno, __pyx_lineno, __pyx_filename, 0, 0); - __pyx_r = 0; - __pyx_L0:; - __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; - int __pyx_lineno = 0; - const char *__pyx_filename = NULL; - int __pyx_clineno = 0; - __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 = ((&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 = ((&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 = ((&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__12, NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 218; __pyx_clineno = __LINE__; goto __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_filename = __pyx_f[1]; __pyx_lineno = 218; __pyx_clineno = __LINE__; goto __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__13, NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 222; __pyx_clineno = __LINE__; goto __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_filename = __pyx_f[1]; __pyx_lineno = 222; __pyx_clineno = __LINE__; goto __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 = stdlib.malloc(sizeof(Py_ssize_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 = stdlib.malloc(sizeof(Py_ssize_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 = stdlib.malloc(sizeof(Py_ssize_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 = 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 = PyArray_STRIDES(self) # <<<<<<<<<<<<<< - * info.shape = 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 = PyArray_STRIDES(self) - * info.shape = 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 = PyArray_STRIDES(self) - * info.shape = 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 = 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__14, NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 259; __pyx_clineno = __LINE__; goto __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_filename = __pyx_f[1]; __pyx_lineno = 259; __pyx_clineno = __LINE__; goto __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 = __pyx_k_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 = __pyx_k_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 = __pyx_k_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 = __pyx_k_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 = __pyx_k_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 = __pyx_k_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 = __pyx_k_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 = __pyx_k_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 = __pyx_k_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 = __pyx_k_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 = __pyx_k_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 = __pyx_k_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 = __pyx_k_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 = __pyx_k_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 = __pyx_k_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 = __pyx_k_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 = __pyx_k_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_filename = __pyx_f[1]; __pyx_lineno = 278; __pyx_clineno = __LINE__; goto __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_filename = __pyx_f[1]; __pyx_lineno = 278; __pyx_clineno = __LINE__; goto __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_filename = __pyx_f[1]; __pyx_lineno = 278; __pyx_clineno = __LINE__; goto __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_filename = __pyx_f[1]; __pyx_lineno = 278; __pyx_clineno = __LINE__; goto __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_filename = __pyx_f[1]; __pyx_lineno = 278; __pyx_clineno = __LINE__; goto __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 = 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 = 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 = 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 = 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_filename = __pyx_f[1]; __pyx_lineno = 285; __pyx_clineno = __LINE__; goto __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, 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; - int __pyx_lineno = 0; - const char *__pyx_filename = NULL; - int __pyx_clineno = 0; - __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, 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_filename = __pyx_f[1]; __pyx_lineno = 771; __pyx_clineno = __LINE__; goto __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, 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, a) - * - * cdef inline object PyArray_MultiIterNew2(a, b): # <<<<<<<<<<<<<< - * return PyArray_MultiIterNew(2, a, 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; - int __pyx_lineno = 0; - const char *__pyx_filename = NULL; - int __pyx_clineno = 0; - __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, a, 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_filename = __pyx_f[1]; __pyx_lineno = 774; __pyx_clineno = __LINE__; goto __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, a) - * - * cdef inline object PyArray_MultiIterNew2(a, b): # <<<<<<<<<<<<<< - * return PyArray_MultiIterNew(2, a, 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, a, b) - * - * cdef inline object PyArray_MultiIterNew3(a, b, c): # <<<<<<<<<<<<<< - * return PyArray_MultiIterNew(3, a, b, 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; - int __pyx_lineno = 0; - const char *__pyx_filename = NULL; - int __pyx_clineno = 0; - __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, a, b, 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_filename = __pyx_f[1]; __pyx_lineno = 777; __pyx_clineno = __LINE__; goto __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, a, b) - * - * cdef inline object PyArray_MultiIterNew3(a, b, c): # <<<<<<<<<<<<<< - * return PyArray_MultiIterNew(3, a, b, 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, a, b, c) - * - * cdef inline object PyArray_MultiIterNew4(a, b, c, d): # <<<<<<<<<<<<<< - * return PyArray_MultiIterNew(4, a, b, c, 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; - int __pyx_lineno = 0; - const char *__pyx_filename = NULL; - int __pyx_clineno = 0; - __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, a, b, c, 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_filename = __pyx_f[1]; __pyx_lineno = 780; __pyx_clineno = __LINE__; goto __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, a, b, c) - * - * cdef inline object PyArray_MultiIterNew4(a, b, c, d): # <<<<<<<<<<<<<< - * return PyArray_MultiIterNew(4, a, b, c, 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, a, b, c, d) - * - * cdef inline object PyArray_MultiIterNew5(a, b, c, d, e): # <<<<<<<<<<<<<< - * return PyArray_MultiIterNew(5, a, b, c, d, 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; - int __pyx_lineno = 0; - const char *__pyx_filename = NULL; - int __pyx_clineno = 0; - __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, a, b, c, d, 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_filename = __pyx_f[1]; __pyx_lineno = 783; __pyx_clineno = __LINE__; goto __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, a, b, c, d) - * - * cdef inline object PyArray_MultiIterNew5(a, b, c, d, e): # <<<<<<<<<<<<<< - * return PyArray_MultiIterNew(5, a, b, c, d, 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, a, b, c, d, 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; - int __pyx_lineno = 0; - const char *__pyx_filename = NULL; - int __pyx_clineno = 0; - __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 = ((&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 = ((&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_filename = __pyx_f[1]; __pyx_lineno = 794; __pyx_clineno = __LINE__; goto __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_filename = __pyx_f[1]; __pyx_lineno = 794; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - #else - __pyx_t_3 = PySequence_ITEM(__pyx_t_1, __pyx_t_2); __pyx_t_2++; if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 794; __pyx_clineno = __LINE__; goto __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_filename = __pyx_f[1]; __pyx_lineno = 795; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - } - __pyx_t_3 = __Pyx_PyDict_GetItem(__pyx_v_descr->fields, __pyx_v_childname); if (unlikely(__pyx_t_3 == NULL)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 795; __pyx_clineno = __LINE__; goto __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_filename = __pyx_f[1]; __pyx_lineno = 795; __pyx_clineno = __LINE__; goto __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) - (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_filename = __pyx_f[1]; __pyx_lineno = 796; __pyx_clineno = __LINE__; goto __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_filename = __pyx_f[1]; __pyx_lineno = 796; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_3); - __pyx_t_4 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 796; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_4); - #endif - } else { - __Pyx_RaiseNoneNotIterableError(); {__pyx_filename = __pyx_f[1]; __pyx_lineno = 796; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - } - if (!(likely(((__pyx_t_3) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_3, __pyx_ptype_5numpy_dtype))))) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 796; __pyx_clineno = __LINE__; goto __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) - (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_filename = __pyx_f[1]; __pyx_lineno = 798; __pyx_clineno = __LINE__; goto __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_filename = __pyx_f[1]; __pyx_lineno = 798; __pyx_clineno = __LINE__; goto __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_filename = __pyx_f[1]; __pyx_lineno = 798; __pyx_clineno = __LINE__; goto __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) - (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__15, NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 799; __pyx_clineno = __LINE__; goto __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_filename = __pyx_f[1]; __pyx_lineno = 799; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - - /* "../../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":798 - * child, new_offset = fields - * - * if (end - f) - (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__16, NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 803; __pyx_clineno = __LINE__; goto __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_filename = __pyx_f[1]; __pyx_lineno = 803; __pyx_clineno = __LINE__; goto __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_filename = __pyx_f[1]; __pyx_lineno = 813; __pyx_clineno = __LINE__; goto __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_filename = __pyx_f[1]; __pyx_lineno = 813; __pyx_clineno = __LINE__; goto __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_filename = __pyx_f[1]; __pyx_lineno = 813; __pyx_clineno = __LINE__; goto __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_filename = __pyx_f[1]; __pyx_lineno = 821; __pyx_clineno = __LINE__; goto __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__17, NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 823; __pyx_clineno = __LINE__; goto __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_filename = __pyx_f[1]; __pyx_lineno = 823; __pyx_clineno = __LINE__; goto __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_filename = __pyx_f[1]; __pyx_lineno = 826; __pyx_clineno = __LINE__; goto __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_filename = __pyx_f[1]; __pyx_lineno = 826; __pyx_clineno = __LINE__; goto __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_filename = __pyx_f[1]; __pyx_lineno = 826; __pyx_clineno = __LINE__; goto __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_filename = __pyx_f[1]; __pyx_lineno = 827; __pyx_clineno = __LINE__; goto __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_filename = __pyx_f[1]; __pyx_lineno = 827; __pyx_clineno = __LINE__; goto __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_filename = __pyx_f[1]; __pyx_lineno = 827; __pyx_clineno = __LINE__; goto __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_filename = __pyx_f[1]; __pyx_lineno = 828; __pyx_clineno = __LINE__; goto __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_filename = __pyx_f[1]; __pyx_lineno = 828; __pyx_clineno = __LINE__; goto __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_filename = __pyx_f[1]; __pyx_lineno = 828; __pyx_clineno = __LINE__; goto __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_filename = __pyx_f[1]; __pyx_lineno = 829; __pyx_clineno = __LINE__; goto __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_filename = __pyx_f[1]; __pyx_lineno = 829; __pyx_clineno = __LINE__; goto __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_filename = __pyx_f[1]; __pyx_lineno = 829; __pyx_clineno = __LINE__; goto __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_filename = __pyx_f[1]; __pyx_lineno = 830; __pyx_clineno = __LINE__; goto __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_filename = __pyx_f[1]; __pyx_lineno = 830; __pyx_clineno = __LINE__; goto __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_filename = __pyx_f[1]; __pyx_lineno = 830; __pyx_clineno = __LINE__; goto __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_filename = __pyx_f[1]; __pyx_lineno = 831; __pyx_clineno = __LINE__; goto __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_filename = __pyx_f[1]; __pyx_lineno = 831; __pyx_clineno = __LINE__; goto __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_filename = __pyx_f[1]; __pyx_lineno = 831; __pyx_clineno = __LINE__; goto __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_filename = __pyx_f[1]; __pyx_lineno = 832; __pyx_clineno = __LINE__; goto __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_filename = __pyx_f[1]; __pyx_lineno = 832; __pyx_clineno = __LINE__; goto __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_filename = __pyx_f[1]; __pyx_lineno = 832; __pyx_clineno = __LINE__; goto __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_filename = __pyx_f[1]; __pyx_lineno = 833; __pyx_clineno = __LINE__; goto __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_filename = __pyx_f[1]; __pyx_lineno = 833; __pyx_clineno = __LINE__; goto __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_filename = __pyx_f[1]; __pyx_lineno = 833; __pyx_clineno = __LINE__; goto __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_filename = __pyx_f[1]; __pyx_lineno = 834; __pyx_clineno = __LINE__; goto __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_filename = __pyx_f[1]; __pyx_lineno = 834; __pyx_clineno = __LINE__; goto __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_filename = __pyx_f[1]; __pyx_lineno = 834; __pyx_clineno = __LINE__; goto __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_filename = __pyx_f[1]; __pyx_lineno = 835; __pyx_clineno = __LINE__; goto __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_filename = __pyx_f[1]; __pyx_lineno = 835; __pyx_clineno = __LINE__; goto __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_filename = __pyx_f[1]; __pyx_lineno = 835; __pyx_clineno = __LINE__; goto __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_filename = __pyx_f[1]; __pyx_lineno = 836; __pyx_clineno = __LINE__; goto __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_filename = __pyx_f[1]; __pyx_lineno = 836; __pyx_clineno = __LINE__; goto __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_filename = __pyx_f[1]; __pyx_lineno = 836; __pyx_clineno = __LINE__; goto __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_filename = __pyx_f[1]; __pyx_lineno = 837; __pyx_clineno = __LINE__; goto __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_filename = __pyx_f[1]; __pyx_lineno = 837; __pyx_clineno = __LINE__; goto __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_filename = __pyx_f[1]; __pyx_lineno = 837; __pyx_clineno = __LINE__; goto __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_filename = __pyx_f[1]; __pyx_lineno = 838; __pyx_clineno = __LINE__; goto __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_filename = __pyx_f[1]; __pyx_lineno = 838; __pyx_clineno = __LINE__; goto __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_filename = __pyx_f[1]; __pyx_lineno = 838; __pyx_clineno = __LINE__; goto __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_filename = __pyx_f[1]; __pyx_lineno = 839; __pyx_clineno = __LINE__; goto __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_filename = __pyx_f[1]; __pyx_lineno = 839; __pyx_clineno = __LINE__; goto __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_filename = __pyx_f[1]; __pyx_lineno = 839; __pyx_clineno = __LINE__; goto __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_filename = __pyx_f[1]; __pyx_lineno = 840; __pyx_clineno = __LINE__; goto __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_filename = __pyx_f[1]; __pyx_lineno = 840; __pyx_clineno = __LINE__; goto __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_filename = __pyx_f[1]; __pyx_lineno = 840; __pyx_clineno = __LINE__; goto __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_filename = __pyx_f[1]; __pyx_lineno = 841; __pyx_clineno = __LINE__; goto __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_filename = __pyx_f[1]; __pyx_lineno = 841; __pyx_clineno = __LINE__; goto __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_filename = __pyx_f[1]; __pyx_lineno = 841; __pyx_clineno = __LINE__; goto __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_filename = __pyx_f[1]; __pyx_lineno = 842; __pyx_clineno = __LINE__; goto __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_filename = __pyx_f[1]; __pyx_lineno = 842; __pyx_clineno = __LINE__; goto __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_filename = __pyx_f[1]; __pyx_lineno = 842; __pyx_clineno = __LINE__; goto __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_filename = __pyx_f[1]; __pyx_lineno = 844; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_3); - __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 844; __pyx_clineno = __LINE__; goto __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_filename = __pyx_f[1]; __pyx_lineno = 844; __pyx_clineno = __LINE__; goto __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_filename = __pyx_f[1]; __pyx_lineno = 844; __pyx_clineno = __LINE__; goto __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_filename = __pyx_f[1]; __pyx_lineno = 849; __pyx_clineno = __LINE__; goto __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, a, b, c, d, 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 = 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 = 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 = 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 = 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 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 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 - "abstract", - __pyx_k_This_file_Copyright_c_2013_Bria, /* 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_kp_s_3, __pyx_k_3, sizeof(__pyx_k_3), 0, 0, 1, 0}, - {&__pyx_kp_s_Bull_Bear_Pattern_Bearish_0_Neut, __pyx_k_Bull_Bear_Pattern_Bearish_0_Neut, sizeof(__pyx_k_Bull_Bear_Pattern_Bearish_0_Neut), 0, 0, 1, 0}, - {&__pyx_kp_s_Dashed_Line, __pyx_k_Dashed_Line, sizeof(__pyx_k_Dashed_Line), 0, 0, 1, 0}, - {&__pyx_n_s_DataFrame, __pyx_k_DataFrame, sizeof(__pyx_k_DataFrame), 0, 0, 1, 1}, - {&__pyx_n_s_Dot, __pyx_k_Dot, sizeof(__pyx_k_Dot), 0, 0, 1, 1}, - {&__pyx_kp_s_Dotted_Line, __pyx_k_Dotted_Line, sizeof(__pyx_k_Dotted_Line), 0, 0, 1, 0}, - {&__pyx_n_s_Exception, __pyx_k_Exception, sizeof(__pyx_k_Exception), 0, 0, 1, 1}, - {&__pyx_n_s_FUNCTION_NAMES, __pyx_k_FUNCTION_NAMES, sizeof(__pyx_k_FUNCTION_NAMES), 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_Function, __pyx_k_Function, sizeof(__pyx_k_Function), 0, 0, 1, 1}, - {&__pyx_n_s_Function___call, __pyx_k_Function___call, sizeof(__pyx_k_Function___call), 0, 0, 1, 1}, - {&__pyx_n_s_Function___call_function, __pyx_k_Function___call_function, sizeof(__pyx_k_Function___call_function), 0, 0, 1, 1}, - {&__pyx_n_s_Function___get_opt_input_value, __pyx_k_Function___get_opt_input_value, sizeof(__pyx_k_Function___get_opt_input_value), 0, 0, 1, 1}, - {&__pyx_n_s_Function___init, __pyx_k_Function___init, sizeof(__pyx_k_Function___init), 0, 0, 1, 1}, - {&__pyx_n_s_Function___initialize_function_i, __pyx_k_Function___initialize_function_i, sizeof(__pyx_k_Function___initialize_function_i), 0, 0, 1, 1}, - {&__pyx_n_s_Function___input_price_series_na, __pyx_k_Function___input_price_series_na, sizeof(__pyx_k_Function___input_price_series_na), 0, 0, 1, 1}, - {&__pyx_n_s_Function___repr, __pyx_k_Function___repr, sizeof(__pyx_k_Function___repr), 0, 0, 1, 1}, - {&__pyx_n_s_Function___str, __pyx_k_Function___str, sizeof(__pyx_k_Function___str), 0, 0, 1, 1}, - {&__pyx_n_s_Function___unicode, __pyx_k_Function___unicode, sizeof(__pyx_k_Function___unicode), 0, 0, 1, 1}, - {&__pyx_n_s_Function__call_function, __pyx_k_Function__call_function, sizeof(__pyx_k_Function__call_function), 0, 0, 1, 1}, - {&__pyx_n_s_Function__get_opt_input_value, __pyx_k_Function__get_opt_input_value, sizeof(__pyx_k_Function__get_opt_input_value), 0, 0, 1, 1}, - {&__pyx_n_s_Function__info, __pyx_k_Function__info, sizeof(__pyx_k_Function__info), 0, 0, 1, 1}, - {&__pyx_n_s_Function__initialize_function_i, __pyx_k_Function__initialize_function_i, sizeof(__pyx_k_Function__initialize_function_i), 0, 0, 1, 1}, - {&__pyx_n_s_Function__input_arrays, __pyx_k_Function__input_arrays, sizeof(__pyx_k_Function__input_arrays), 0, 0, 1, 1}, - {&__pyx_n_s_Function__input_names, __pyx_k_Function__input_names, sizeof(__pyx_k_Function__input_names), 0, 0, 1, 1}, - {&__pyx_n_s_Function__input_price_series_na, __pyx_k_Function__input_price_series_na, sizeof(__pyx_k_Function__input_price_series_na), 0, 0, 1, 1}, - {&__pyx_n_s_Function__name, __pyx_k_Function__name, sizeof(__pyx_k_Function__name), 0, 0, 1, 1}, - {&__pyx_n_s_Function__namestr, __pyx_k_Function__namestr, sizeof(__pyx_k_Function__namestr), 0, 0, 1, 1}, - {&__pyx_n_s_Function__opt_inputs, __pyx_k_Function__opt_inputs, sizeof(__pyx_k_Function__opt_inputs), 0, 0, 1, 1}, - {&__pyx_n_s_Function__outputs, __pyx_k_Function__outputs, sizeof(__pyx_k_Function__outputs), 0, 0, 1, 1}, - {&__pyx_n_s_Function__outputs_valid, __pyx_k_Function__outputs_valid, sizeof(__pyx_k_Function__outputs_valid), 0, 0, 1, 1}, - {&__pyx_n_s_Function_function_flags, __pyx_k_Function_function_flags, sizeof(__pyx_k_Function_function_flags), 0, 0, 1, 1}, - {&__pyx_n_s_Function_get_input_arrays, __pyx_k_Function_get_input_arrays, sizeof(__pyx_k_Function_get_input_arrays), 0, 0, 1, 1}, - {&__pyx_n_s_Function_get_input_names, __pyx_k_Function_get_input_names, sizeof(__pyx_k_Function_get_input_names), 0, 0, 1, 1}, - {&__pyx_n_s_Function_get_parameters, __pyx_k_Function_get_parameters, sizeof(__pyx_k_Function_get_parameters), 0, 0, 1, 1}, - {&__pyx_kp_s_Function_has_an_unstable_period, __pyx_k_Function_has_an_unstable_period, sizeof(__pyx_k_Function_has_an_unstable_period), 0, 0, 1, 0}, - {&__pyx_n_s_Function_info, __pyx_k_Function_info, sizeof(__pyx_k_Function_info), 0, 0, 1, 1}, - {&__pyx_n_s_Function_lookback, __pyx_k_Function_lookback, sizeof(__pyx_k_Function_lookback), 0, 0, 1, 1}, - {&__pyx_n_s_Function_output_flags, __pyx_k_Function_output_flags, sizeof(__pyx_k_Function_output_flags), 0, 0, 1, 1}, - {&__pyx_n_s_Function_output_names, __pyx_k_Function_output_names, sizeof(__pyx_k_Function_output_names), 0, 0, 1, 1}, - {&__pyx_n_s_Function_outputs, __pyx_k_Function_outputs, sizeof(__pyx_k_Function_outputs), 0, 0, 1, 1}, - {&__pyx_n_s_Function_run, __pyx_k_Function_run, sizeof(__pyx_k_Function_run), 0, 0, 1, 1}, - {&__pyx_n_s_Function_set_function_args, __pyx_k_Function_set_function_args, sizeof(__pyx_k_Function_set_function_args), 0, 0, 1, 1}, - {&__pyx_n_s_Function_set_input_arrays, __pyx_k_Function_set_input_arrays, sizeof(__pyx_k_Function_set_input_arrays), 0, 0, 1, 1}, - {&__pyx_n_s_Function_set_input_names, __pyx_k_Function_set_input_names, sizeof(__pyx_k_Function_set_input_names), 0, 0, 1, 1}, - {&__pyx_n_s_Function_set_parameters, __pyx_k_Function_set_parameters, sizeof(__pyx_k_Function_set_parameters), 0, 0, 1, 1}, - {&__pyx_n_s_Histogram, __pyx_k_Histogram, sizeof(__pyx_k_Histogram), 0, 0, 1, 1}, - {&__pyx_n_s_INPUT_ARRAYS_DEFAULTS, __pyx_k_INPUT_ARRAYS_DEFAULTS, sizeof(__pyx_k_INPUT_ARRAYS_DEFAULTS), 0, 0, 1, 1}, - {&__pyx_n_s_INPUT_ARRAYS_TYPES, __pyx_k_INPUT_ARRAYS_TYPES, sizeof(__pyx_k_INPUT_ARRAYS_TYPES), 0, 0, 1, 1}, - {&__pyx_n_s_INPUT_PRICE_SERIES_DEFAULTS, __pyx_k_INPUT_PRICE_SERIES_DEFAULTS, sizeof(__pyx_k_INPUT_PRICE_SERIES_DEFAULTS), 0, 0, 1, 1}, - {&__pyx_n_s_ImportError, __pyx_k_ImportError, sizeof(__pyx_k_ImportError), 0, 0, 1, 1}, - {&__pyx_kp_s_Inputs, __pyx_k_Inputs, sizeof(__pyx_k_Inputs), 0, 0, 1, 0}, - {&__pyx_n_s_Line, __pyx_k_Line, sizeof(__pyx_k_Line), 0, 0, 1, 1}, - {&__pyx_n_s_MA_Type, __pyx_k_MA_Type, sizeof(__pyx_k_MA_Type), 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_OrderedDict, __pyx_k_OrderedDict, sizeof(__pyx_k_OrderedDict), 0, 0, 1, 1}, - {&__pyx_kp_s_Output_can_be_negative, __pyx_k_Output_can_be_negative, sizeof(__pyx_k_Output_can_be_negative), 0, 0, 1, 0}, - {&__pyx_kp_s_Output_can_be_positive, __pyx_k_Output_can_be_positive, sizeof(__pyx_k_Output_can_be_positive), 0, 0, 1, 0}, - {&__pyx_kp_s_Output_can_be_zero, __pyx_k_Output_can_be_zero, sizeof(__pyx_k_Output_can_be_zero), 0, 0, 1, 0}, - {&__pyx_kp_s_Output_is_a_candlestick, __pyx_k_Output_is_a_candlestick, sizeof(__pyx_k_Output_is_a_candlestick), 0, 0, 1, 0}, - {&__pyx_kp_s_Output_is_over_volume, __pyx_k_Output_is_over_volume, sizeof(__pyx_k_Output_is_over_volume), 0, 0, 1, 0}, - {&__pyx_kp_s_Output_scale_same_as_input, __pyx_k_Output_scale_same_as_input, sizeof(__pyx_k_Output_scale_same_as_input), 0, 0, 1, 0}, - {&__pyx_kp_s_Outputs, __pyx_k_Outputs, sizeof(__pyx_k_Outputs), 0, 0, 1, 0}, - {&__pyx_n_s_PANDAS_DATAFRAME, __pyx_k_PANDAS_DATAFRAME, sizeof(__pyx_k_PANDAS_DATAFRAME), 0, 0, 1, 1}, - {&__pyx_n_s_PANDAS_SERIES, __pyx_k_PANDAS_SERIES, sizeof(__pyx_k_PANDAS_SERIES), 0, 0, 1, 1}, - {&__pyx_kp_s_Parameters, __pyx_k_Parameters, sizeof(__pyx_k_Parameters), 0, 0, 1, 0}, - {&__pyx_kp_s_Pattern_Bool, __pyx_k_Pattern_Bool, sizeof(__pyx_k_Pattern_Bool), 0, 0, 1, 0}, - {&__pyx_n_s_RuntimeError, __pyx_k_RuntimeError, sizeof(__pyx_k_RuntimeError), 0, 0, 1, 1}, - {&__pyx_n_s_Series, __pyx_k_Series, sizeof(__pyx_k_Series), 0, 0, 1, 1}, - {&__pyx_kp_s_Strength_Pattern_200_100_Bearish, __pyx_k_Strength_Pattern_200_100_Bearish, sizeof(__pyx_k_Strength_Pattern_200_100_Bearish), 0, 0, 1, 0}, - {&__pyx_n_s_TA_FUNC_FLAGS, __pyx_k_TA_FUNC_FLAGS, sizeof(__pyx_k_TA_FUNC_FLAGS), 0, 0, 1, 1}, - {&__pyx_n_s_TA_FuncTableAlloc, __pyx_k_TA_FuncTableAlloc, sizeof(__pyx_k_TA_FuncTableAlloc), 0, 0, 1, 1}, - {&__pyx_n_s_TA_FuncTableFree, __pyx_k_TA_FuncTableFree, sizeof(__pyx_k_TA_FuncTableFree), 0, 0, 1, 1}, - {&__pyx_n_s_TA_GetFuncHandle, __pyx_k_TA_GetFuncHandle, sizeof(__pyx_k_TA_GetFuncHandle), 0, 0, 1, 1}, - {&__pyx_n_s_TA_GetFuncInfo, __pyx_k_TA_GetFuncInfo, sizeof(__pyx_k_TA_GetFuncInfo), 0, 0, 1, 1}, - {&__pyx_n_s_TA_GetInputParameterInfo, __pyx_k_TA_GetInputParameterInfo, sizeof(__pyx_k_TA_GetInputParameterInfo), 0, 0, 1, 1}, - {&__pyx_n_s_TA_GetLookback, __pyx_k_TA_GetLookback, sizeof(__pyx_k_TA_GetLookback), 0, 0, 1, 1}, - {&__pyx_n_s_TA_GetOptInputParameterInfo, __pyx_k_TA_GetOptInputParameterInfo, sizeof(__pyx_k_TA_GetOptInputParameterInfo), 0, 0, 1, 1}, - {&__pyx_n_s_TA_GetOutputParameterInfo, __pyx_k_TA_GetOutputParameterInfo, sizeof(__pyx_k_TA_GetOutputParameterInfo), 0, 0, 1, 1}, - {&__pyx_n_s_TA_GroupTableAlloc, __pyx_k_TA_GroupTableAlloc, sizeof(__pyx_k_TA_GroupTableAlloc), 0, 0, 1, 1}, - {&__pyx_n_s_TA_GroupTableFree, __pyx_k_TA_GroupTableFree, sizeof(__pyx_k_TA_GroupTableFree), 0, 0, 1, 1}, - {&__pyx_n_s_TA_INPUT_FLAGS, __pyx_k_TA_INPUT_FLAGS, sizeof(__pyx_k_TA_INPUT_FLAGS), 0, 0, 1, 1}, - {&__pyx_n_s_TA_OUTPUT_FLAGS, __pyx_k_TA_OUTPUT_FLAGS, sizeof(__pyx_k_TA_OUTPUT_FLAGS), 0, 0, 1, 1}, - {&__pyx_n_s_TA_ParamHolderAlloc, __pyx_k_TA_ParamHolderAlloc, sizeof(__pyx_k_TA_ParamHolderAlloc), 0, 0, 1, 1}, - {&__pyx_n_s_TA_ParamHolderFree, __pyx_k_TA_ParamHolderFree, sizeof(__pyx_k_TA_ParamHolderFree), 0, 0, 1, 1}, - {&__pyx_n_s_TA_SetOptInputParamInteger, __pyx_k_TA_SetOptInputParamInteger, sizeof(__pyx_k_TA_SetOptInputParamInteger), 0, 0, 1, 1}, - {&__pyx_n_s_TA_SetOptInputParamReal, __pyx_k_TA_SetOptInputParamReal, sizeof(__pyx_k_TA_SetOptInputParamReal), 0, 0, 1, 1}, - {&__pyx_kp_s_This_is_a_pythonic_wrapper_arou, __pyx_k_This_is_a_pythonic_wrapper_arou, sizeof(__pyx_k_This_is_a_pythonic_wrapper_arou), 0, 0, 1, 0}, - {&__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_ValueError, __pyx_k_ValueError, sizeof(__pyx_k_ValueError), 0, 0, 1, 1}, - {&__pyx_kp_s_Values_represent_a_lower_limit, __pyx_k_Values_represent_a_lower_limit, sizeof(__pyx_k_Values_represent_a_lower_limit), 0, 0, 1, 0}, - {&__pyx_kp_s_Values_represent_an_upper_limit, __pyx_k_Values_represent_an_upper_limit, sizeof(__pyx_k_Values_represent_an_upper_limit), 0, 0, 1, 0}, - {&__pyx_kp_s__10, __pyx_k__10, sizeof(__pyx_k__10), 0, 0, 1, 0}, - {&__pyx_kp_s__11, __pyx_k__11, sizeof(__pyx_k__11), 0, 0, 1, 0}, - {&__pyx_kp_s__5, __pyx_k__5, sizeof(__pyx_k__5), 0, 0, 1, 0}, - {&__pyx_kp_s__6, __pyx_k__6, sizeof(__pyx_k__6), 0, 0, 1, 0}, - {&__pyx_kp_s__8, __pyx_k__8, sizeof(__pyx_k__8), 0, 0, 1, 0}, - {&__pyx_kp_s__9, __pyx_k__9, sizeof(__pyx_k__9), 0, 0, 1, 0}, - {&__pyx_n_s_all, __pyx_k_all, sizeof(__pyx_k_all), 0, 0, 1, 1}, - {&__pyx_kp_s_any_ndarray, __pyx_k_any_ndarray, sizeof(__pyx_k_any_ndarray), 0, 0, 1, 0}, - {&__pyx_n_s_args, __pyx_k_args, sizeof(__pyx_k_args), 0, 0, 1, 1}, - {&__pyx_n_s_ascii, __pyx_k_ascii, sizeof(__pyx_k_ascii), 0, 0, 1, 1}, - {&__pyx_n_s_b, __pyx_k_b, sizeof(__pyx_k_b), 0, 0, 1, 1}, - {&__pyx_n_s_builtins, __pyx_k_builtins, sizeof(__pyx_k_builtins), 0, 0, 1, 1}, - {&__pyx_n_s_bytes2str, __pyx_k_bytes2str, sizeof(__pyx_k_bytes2str), 0, 0, 1, 1}, - {&__pyx_n_s_call, __pyx_k_call, sizeof(__pyx_k_call), 0, 0, 1, 1}, - {&__pyx_n_s_call_function, __pyx_k_call_function, sizeof(__pyx_k_call_function), 0, 0, 1, 1}, - {&__pyx_n_s_close, __pyx_k_close, sizeof(__pyx_k_close), 0, 0, 1, 1}, - {&__pyx_n_s_collections, __pyx_k_collections, sizeof(__pyx_k_collections), 0, 0, 1, 1}, - {&__pyx_n_s_column_stack, __pyx_k_column_stack, sizeof(__pyx_k_column_stack), 0, 0, 1, 1}, - {&__pyx_n_s_columns, __pyx_k_columns, sizeof(__pyx_k_columns), 0, 0, 1, 1}, - {&__pyx_n_s_common, __pyx_k_common, sizeof(__pyx_k_common), 0, 0, 1, 1}, - {&__pyx_n_s_copy, __pyx_k_copy, sizeof(__pyx_k_copy), 0, 0, 1, 1}, - {&__pyx_n_s_decode, __pyx_k_decode, sizeof(__pyx_k_decode), 0, 0, 1, 1}, - {&__pyx_n_s_default_value, __pyx_k_default_value, sizeof(__pyx_k_default_value), 0, 0, 1, 1}, - {&__pyx_n_s_defaults, __pyx_k_defaults, sizeof(__pyx_k_defaults), 0, 0, 1, 1}, - {&__pyx_n_s_display_name, __pyx_k_display_name, sizeof(__pyx_k_display_name), 0, 0, 1, 1}, - {&__pyx_kp_s_display_name_s_group_s, __pyx_k_display_name_s_group_s, sizeof(__pyx_k_display_name_s_group_s), 0, 0, 1, 0}, - {&__pyx_n_s_doc, __pyx_k_doc, sizeof(__pyx_k_doc), 0, 0, 1, 1}, - {&__pyx_n_s_docs, __pyx_k_docs, sizeof(__pyx_k_docs), 0, 0, 1, 1}, - {&__pyx_n_s_documentation, __pyx_k_documentation, sizeof(__pyx_k_documentation), 0, 0, 1, 1}, - {&__pyx_n_s_enumerate, __pyx_k_enumerate, sizeof(__pyx_k_enumerate), 0, 0, 1, 1}, - {&__pyx_n_s_flag, __pyx_k_flag, sizeof(__pyx_k_flag), 0, 0, 1, 1}, - {&__pyx_n_s_flags, __pyx_k_flags, sizeof(__pyx_k_flags), 0, 0, 1, 1}, - {&__pyx_n_s_flags_lookup_dict, __pyx_k_flags_lookup_dict, sizeof(__pyx_k_flags_lookup_dict), 0, 0, 1, 1}, - {&__pyx_n_s_func, __pyx_k_func, sizeof(__pyx_k_func), 0, 0, 1, 1}, - {&__pyx_n_s_func_args, __pyx_k_func_args, sizeof(__pyx_k_func_args), 0, 0, 1, 1}, - {&__pyx_n_s_func_c, __pyx_k_func_c, sizeof(__pyx_k_func_c), 0, 0, 1, 1}, - {&__pyx_n_s_func_info, __pyx_k_func_info, sizeof(__pyx_k_func_info), 0, 0, 1, 1}, - {&__pyx_n_s_func_line, __pyx_k_func_line, sizeof(__pyx_k_func_line), 0, 0, 1, 1}, - {&__pyx_n_s_function_flags, __pyx_k_function_flags, sizeof(__pyx_k_function_flags), 0, 0, 1, 1}, - {&__pyx_n_s_function_name, __pyx_k_function_name, sizeof(__pyx_k_function_name), 0, 0, 1, 1}, - {&__pyx_n_s_functions, __pyx_k_functions, sizeof(__pyx_k_functions), 0, 0, 1, 1}, - {&__pyx_n_s_get_defaults_and_docs, __pyx_k_get_defaults_and_docs, sizeof(__pyx_k_get_defaults_and_docs), 0, 0, 1, 1}, - {&__pyx_n_s_get_flags, __pyx_k_get_flags, sizeof(__pyx_k_get_flags), 0, 0, 1, 1}, - {&__pyx_n_s_get_input_arrays, __pyx_k_get_input_arrays, sizeof(__pyx_k_get_input_arrays), 0, 0, 1, 1}, - {&__pyx_n_s_get_input_names, __pyx_k_get_input_names, sizeof(__pyx_k_get_input_names), 0, 0, 1, 1}, - {&__pyx_n_s_get_opt_input_value, __pyx_k_get_opt_input_value, sizeof(__pyx_k_get_opt_input_value), 0, 0, 1, 1}, - {&__pyx_n_s_get_parameters, __pyx_k_get_parameters, sizeof(__pyx_k_get_parameters), 0, 0, 1, 1}, - {&__pyx_n_s_getattribute, __pyx_k_getattribute, sizeof(__pyx_k_getattribute), 0, 0, 1, 1}, - {&__pyx_n_s_group, __pyx_k_group, sizeof(__pyx_k_group), 0, 0, 1, 1}, - {&__pyx_n_s_groups, __pyx_k_groups, sizeof(__pyx_k_groups), 0, 0, 1, 1}, - {&__pyx_n_s_help, __pyx_k_help, sizeof(__pyx_k_help), 0, 0, 1, 1}, - {&__pyx_n_s_high, __pyx_k_high, sizeof(__pyx_k_high), 0, 0, 1, 1}, - {&__pyx_n_s_holder, __pyx_k_holder, sizeof(__pyx_k_holder), 0, 0, 1, 1}, - {&__pyx_n_s_i, __pyx_k_i, sizeof(__pyx_k_i), 0, 0, 1, 1}, - {&__pyx_n_s_idx, __pyx_k_idx, sizeof(__pyx_k_idx), 0, 0, 1, 1}, - {&__pyx_n_s_import, __pyx_k_import, sizeof(__pyx_k_import), 0, 0, 1, 1}, - {&__pyx_n_s_in, __pyx_k_in, sizeof(__pyx_k_in), 0, 0, 1, 1}, - {&__pyx_n_s_index, __pyx_k_index, sizeof(__pyx_k_index), 0, 0, 1, 1}, - {&__pyx_n_s_info, __pyx_k_info, sizeof(__pyx_k_info), 0, 0, 1, 1}, - {&__pyx_n_s_init, __pyx_k_init, sizeof(__pyx_k_init), 0, 0, 1, 1}, - {&__pyx_n_s_initialize_function_info, __pyx_k_initialize_function_info, sizeof(__pyx_k_initialize_function_info), 0, 0, 1, 1}, - {&__pyx_n_s_input_arrays, __pyx_k_input_arrays, sizeof(__pyx_k_input_arrays), 0, 0, 1, 1}, - {&__pyx_kp_s_input_arrays_2, __pyx_k_input_arrays_2, sizeof(__pyx_k_input_arrays_2), 0, 0, 1, 0}, - {&__pyx_kp_s_input_arrays_parameter_missing_r, __pyx_k_input_arrays_parameter_missing_r, sizeof(__pyx_k_input_arrays_parameter_missing_r), 0, 0, 1, 0}, - {&__pyx_n_s_input_name, __pyx_k_input_name, sizeof(__pyx_k_input_name), 0, 0, 1, 1}, - {&__pyx_n_s_input_names, __pyx_k_input_names, sizeof(__pyx_k_input_names), 0, 0, 1, 1}, - {&__pyx_n_s_input_price_series_names, __pyx_k_input_price_series_names, sizeof(__pyx_k_input_price_series_names), 0, 0, 1, 1}, - {&__pyx_n_s_input_price_series_names_2, __pyx_k_input_price_series_names_2, sizeof(__pyx_k_input_price_series_names_2), 0, 0, 1, 1}, - {&__pyx_n_s_integer, __pyx_k_integer, sizeof(__pyx_k_integer), 0, 0, 1, 1}, - {&__pyx_kp_s_integer_values_are_100_0_or_100, __pyx_k_integer_values_are_100_0_or_100, sizeof(__pyx_k_integer_values_are_100_0_or_100), 0, 0, 1, 0}, - {&__pyx_n_s_items, __pyx_k_items, sizeof(__pyx_k_items), 0, 0, 1, 1}, - {&__pyx_n_s_join, __pyx_k_join, sizeof(__pyx_k_join), 0, 0, 1, 1}, - {&__pyx_n_s_key, __pyx_k_key, sizeof(__pyx_k_key), 0, 0, 1, 1}, - {&__pyx_n_s_keys, __pyx_k_keys, sizeof(__pyx_k_keys), 0, 0, 1, 1}, - {&__pyx_n_s_kwargs, __pyx_k_kwargs, sizeof(__pyx_k_kwargs), 0, 0, 1, 1}, - {&__pyx_n_s_log, __pyx_k_log, sizeof(__pyx_k_log), 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_lower, __pyx_k_lower, sizeof(__pyx_k_lower), 0, 0, 1, 1}, - {&__pyx_n_s_main, __pyx_k_main, sizeof(__pyx_k_main), 0, 0, 1, 1}, - {&__pyx_n_s_math, __pyx_k_math, sizeof(__pyx_k_math), 0, 0, 1, 1}, - {&__pyx_n_s_matype, __pyx_k_matype, sizeof(__pyx_k_matype), 0, 0, 1, 1}, - {&__pyx_n_s_max, __pyx_k_max, sizeof(__pyx_k_max), 0, 0, 1, 1}, - {&__pyx_n_s_max_int, __pyx_k_max_int, sizeof(__pyx_k_max_int), 0, 0, 1, 1}, - {&__pyx_n_s_metaclass, __pyx_k_metaclass, sizeof(__pyx_k_metaclass), 0, 0, 1, 1}, - {&__pyx_n_s_min, __pyx_k_min, sizeof(__pyx_k_min), 0, 0, 1, 1}, - {&__pyx_n_s_min_int, __pyx_k_min_int, sizeof(__pyx_k_min_int), 0, 0, 1, 1}, - {&__pyx_n_s_missing_keys, __pyx_k_missing_keys, sizeof(__pyx_k_missing_keys), 0, 0, 1, 1}, - {&__pyx_n_s_module, __pyx_k_module, sizeof(__pyx_k_module), 0, 0, 1, 1}, - {&__pyx_n_s_name, __pyx_k_name, sizeof(__pyx_k_name), 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_num_inputs, __pyx_k_num_inputs, sizeof(__pyx_k_num_inputs), 0, 0, 1, 1}, - {&__pyx_n_s_num_opt_inputs, __pyx_k_num_opt_inputs, sizeof(__pyx_k_num_opt_inputs), 0, 0, 1, 1}, - {&__pyx_n_s_num_outputs, __pyx_k_num_outputs, sizeof(__pyx_k_num_outputs), 0, 0, 1, 1}, - {&__pyx_n_s_numpy, __pyx_k_numpy, sizeof(__pyx_k_numpy), 0, 0, 1, 1}, - {&__pyx_n_s_object, __pyx_k_object, sizeof(__pyx_k_object), 0, 0, 1, 1}, - {&__pyx_n_s_open, __pyx_k_open, sizeof(__pyx_k_open), 0, 0, 1, 1}, - {&__pyx_n_s_openInterest, __pyx_k_openInterest, sizeof(__pyx_k_openInterest), 0, 0, 1, 1}, - {&__pyx_n_s_optIn, __pyx_k_optIn, sizeof(__pyx_k_optIn), 0, 0, 1, 1}, - {&__pyx_n_s_opt_input, __pyx_k_opt_input, sizeof(__pyx_k_opt_input), 0, 0, 1, 1}, - {&__pyx_n_s_ordereddict, __pyx_k_ordereddict, sizeof(__pyx_k_ordereddict), 0, 0, 1, 1}, - {&__pyx_n_s_out, __pyx_k_out, sizeof(__pyx_k_out), 0, 0, 1, 1}, - {&__pyx_n_s_output, __pyx_k_output, sizeof(__pyx_k_output), 0, 0, 1, 1}, - {&__pyx_n_s_output_flags, __pyx_k_output_flags, sizeof(__pyx_k_output_flags), 0, 0, 1, 1}, - {&__pyx_n_s_output_name, __pyx_k_output_name, sizeof(__pyx_k_output_name), 0, 0, 1, 1}, - {&__pyx_n_s_output_names, __pyx_k_output_names, sizeof(__pyx_k_output_names), 0, 0, 1, 1}, - {&__pyx_n_s_outputs, __pyx_k_outputs, sizeof(__pyx_k_outputs), 0, 0, 1, 1}, - {&__pyx_n_s_pandas, __pyx_k_pandas, sizeof(__pyx_k_pandas), 0, 0, 1, 1}, - {&__pyx_n_s_param, __pyx_k_param, sizeof(__pyx_k_param), 0, 0, 1, 1}, - {&__pyx_n_s_param_name, __pyx_k_param_name, sizeof(__pyx_k_param_name), 0, 0, 1, 1}, - {&__pyx_n_s_parameters, __pyx_k_parameters, sizeof(__pyx_k_parameters), 0, 0, 1, 1}, - {&__pyx_n_s_params, __pyx_k_params, sizeof(__pyx_k_params), 0, 0, 1, 1}, - {&__pyx_n_s_periods, __pyx_k_periods, sizeof(__pyx_k_periods), 0, 0, 1, 1}, - {&__pyx_n_s_pop, __pyx_k_pop, sizeof(__pyx_k_pop), 0, 0, 1, 1}, - {&__pyx_n_s_prepare, __pyx_k_prepare, sizeof(__pyx_k_prepare), 0, 0, 1, 1}, - {&__pyx_n_s_price, __pyx_k_price, sizeof(__pyx_k_price), 0, 0, 1, 1}, - {&__pyx_n_s_price0, __pyx_k_price0, sizeof(__pyx_k_price0), 0, 0, 1, 1}, - {&__pyx_n_s_price1, __pyx_k_price1, sizeof(__pyx_k_price1), 0, 0, 1, 1}, - {&__pyx_n_s_price_series, __pyx_k_price_series, sizeof(__pyx_k_price_series), 0, 0, 1, 1}, - {&__pyx_n_s_prices, __pyx_k_prices, sizeof(__pyx_k_prices), 0, 0, 1, 1}, - {&__pyx_n_s_property, __pyx_k_property, sizeof(__pyx_k_property), 0, 0, 1, 1}, - {&__pyx_n_s_qualname, __pyx_k_qualname, sizeof(__pyx_k_qualname), 0, 0, 1, 1}, - {&__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_real1, __pyx_k_real1, sizeof(__pyx_k_real1), 0, 0, 1, 1}, - {&__pyx_n_s_replace, __pyx_k_replace, sizeof(__pyx_k_replace), 0, 0, 1, 1}, - {&__pyx_n_s_repr, __pyx_k_repr, sizeof(__pyx_k_repr), 0, 0, 1, 1}, - {&__pyx_n_s_results, __pyx_k_results, sizeof(__pyx_k_results), 0, 0, 1, 1}, - {&__pyx_n_s_ret, __pyx_k_ret, sizeof(__pyx_k_ret), 0, 0, 1, 1}, - {&__pyx_n_s_retCode, __pyx_k_retCode, sizeof(__pyx_k_retCode), 0, 0, 1, 1}, - {&__pyx_n_s_run, __pyx_k_run, sizeof(__pyx_k_run), 0, 0, 1, 1}, - {&__pyx_n_s_s, __pyx_k_s, sizeof(__pyx_k_s), 0, 0, 1, 1}, - {&__pyx_kp_s_s_2, __pyx_k_s_2, sizeof(__pyx_k_s_2), 0, 0, 1, 0}, - {&__pyx_kp_s_s_3, __pyx_k_s_3, sizeof(__pyx_k_s_3), 0, 0, 1, 0}, - {&__pyx_kp_s_s_4, __pyx_k_s_4, sizeof(__pyx_k_s_4), 0, 0, 1, 0}, - {&__pyx_kp_s_s_Function_s, __pyx_k_s_Function_s, sizeof(__pyx_k_s_Function_s), 0, 0, 1, 0}, - {&__pyx_kp_s_s_not_supported_by_TA_LIB, __pyx_k_s_not_supported_by_TA_LIB, sizeof(__pyx_k_s_not_supported_by_TA_LIB), 0, 0, 1, 0}, - {&__pyx_kp_s_s_s, __pyx_k_s_s, sizeof(__pyx_k_s_s), 0, 0, 1, 0}, - {&__pyx_kp_s_s_s_2, __pyx_k_s_s_2, sizeof(__pyx_k_s_s_2), 0, 0, 1, 0}, - {&__pyx_n_s_self, __pyx_k_self, sizeof(__pyx_k_self), 0, 0, 1, 1}, - {&__pyx_n_s_series, __pyx_k_series, sizeof(__pyx_k_series), 0, 0, 1, 1}, - {&__pyx_n_s_set_function_args, __pyx_k_set_function_args, sizeof(__pyx_k_set_function_args), 0, 0, 1, 1}, - {&__pyx_n_s_set_input_arrays, __pyx_k_set_input_arrays, sizeof(__pyx_k_set_input_arrays), 0, 0, 1, 1}, - {&__pyx_n_s_set_input_names, __pyx_k_set_input_names, sizeof(__pyx_k_set_input_names), 0, 0, 1, 1}, - {&__pyx_n_s_set_parameters, __pyx_k_set_parameters, sizeof(__pyx_k_set_parameters), 0, 0, 1, 1}, - {&__pyx_n_s_skip_first, __pyx_k_skip_first, sizeof(__pyx_k_skip_first), 0, 0, 1, 1}, - {&__pyx_n_s_str, __pyx_k_str, sizeof(__pyx_k_str), 0, 0, 1, 1}, - {&__pyx_n_s_str2bytes, __pyx_k_str2bytes, sizeof(__pyx_k_str2bytes), 0, 0, 1, 1}, - {&__pyx_n_s_sys, __pyx_k_sys, sizeof(__pyx_k_sys), 0, 0, 1, 1}, - {&__pyx_n_s_ta_check_success, __pyx_k_ta_check_success, sizeof(__pyx_k_ta_check_success), 0, 0, 1, 1}, - {&__pyx_n_s_ta_getFuncInfo, __pyx_k_ta_getFuncInfo, sizeof(__pyx_k_ta_getFuncInfo), 0, 0, 1, 1}, - {&__pyx_n_s_ta_getFuncTable, __pyx_k_ta_getFuncTable, sizeof(__pyx_k_ta_getFuncTable), 0, 0, 1, 1}, - {&__pyx_n_s_ta_getGroupTable, __pyx_k_ta_getGroupTable, sizeof(__pyx_k_ta_getGroupTable), 0, 0, 1, 1}, - {&__pyx_n_s_ta_getInputParameterInfo, __pyx_k_ta_getInputParameterInfo, sizeof(__pyx_k_ta_getInputParameterInfo), 0, 0, 1, 1}, - {&__pyx_n_s_ta_getOptInputParameterInfo, __pyx_k_ta_getOptInputParameterInfo, sizeof(__pyx_k_ta_getOptInputParameterInfo), 0, 0, 1, 1}, - {&__pyx_n_s_ta_getOutputParameterInfo, __pyx_k_ta_getOutputParameterInfo, sizeof(__pyx_k_ta_getOutputParameterInfo), 0, 0, 1, 1}, - {&__pyx_n_s_table, __pyx_k_table, sizeof(__pyx_k_table), 0, 0, 1, 1}, - {&__pyx_n_s_talib_abstract, __pyx_k_talib_abstract, sizeof(__pyx_k_talib_abstract), 0, 0, 1, 1}, - {&__pyx_n_s_test, __pyx_k_test, sizeof(__pyx_k_test), 0, 0, 1, 1}, - {&__pyx_n_s_timeStamp, __pyx_k_timeStamp, sizeof(__pyx_k_timeStamp), 0, 0, 1, 1}, - {&__pyx_n_s_type, __pyx_k_type, sizeof(__pyx_k_type), 0, 0, 1, 1}, - {&__pyx_n_s_type_2, __pyx_k_type_2, sizeof(__pyx_k_type_2), 0, 0, 1, 1}, - {&__pyx_n_s_unicode, __pyx_k_unicode, sizeof(__pyx_k_unicode), 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_update_info, __pyx_k_update_info, sizeof(__pyx_k_update_info), 0, 0, 1, 1}, - {&__pyx_n_s_upper, __pyx_k_upper, sizeof(__pyx_k_upper), 0, 0, 1, 1}, - {&__pyx_n_s_value, __pyx_k_value, sizeof(__pyx_k_value), 0, 0, 1, 1}, - {&__pyx_n_s_value_range, __pyx_k_value_range, sizeof(__pyx_k_value_range), 0, 0, 1, 1}, - {&__pyx_n_s_values, __pyx_k_values, sizeof(__pyx_k_values), 0, 0, 1, 1}, - {&__pyx_n_s_version, __pyx_k_version, sizeof(__pyx_k_version), 0, 0, 1, 1}, - {&__pyx_n_s_volume, __pyx_k_volume, sizeof(__pyx_k_volume), 0, 0, 1, 1}, - {&__pyx_n_s_xrange, __pyx_k_xrange, sizeof(__pyx_k_xrange), 0, 0, 1, 1}, - {0, 0, 0, 0, 0, 0, 0} -}; -static int __Pyx_InitCachedBuiltins(void) { - __pyx_builtin_ImportError = __Pyx_GetBuiltinName(__pyx_n_s_ImportError); if (!__pyx_builtin_ImportError) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 10; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __pyx_builtin_object = __Pyx_GetBuiltinName(__pyx_n_s_object); if (!__pyx_builtin_object) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 64; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __pyx_builtin_property = __Pyx_GetBuiltinName(__pyx_n_s_property); if (!__pyx_builtin_property) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 142; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __pyx_builtin_Exception = __Pyx_GetBuiltinName(__pyx_n_s_Exception); if (!__pyx_builtin_Exception) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 97; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - #if PY_MAJOR_VERSION >= 3 - __pyx_builtin_xrange = __Pyx_GetBuiltinName(__pyx_n_s_range); if (!__pyx_builtin_xrange) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 118; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - #else - __pyx_builtin_xrange = __Pyx_GetBuiltinName(__pyx_n_s_xrange); if (!__pyx_builtin_xrange) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 118; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - #endif - __pyx_builtin_enumerate = __Pyx_GetBuiltinName(__pyx_n_s_enumerate); if (!__pyx_builtin_enumerate) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 272; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __pyx_builtin_min = __Pyx_GetBuiltinName(__pyx_n_s_min); if (!__pyx_builtin_min) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 462; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __pyx_builtin_max = __Pyx_GetBuiltinName(__pyx_n_s_max); if (!__pyx_builtin_max) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 463; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __pyx_builtin_ValueError = __Pyx_GetBuiltinName(__pyx_n_s_ValueError); if (!__pyx_builtin_ValueError) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 218; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __pyx_builtin_range = __Pyx_GetBuiltinName(__pyx_n_s_range); if (!__pyx_builtin_range) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 231; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __pyx_builtin_RuntimeError = __Pyx_GetBuiltinName(__pyx_n_s_RuntimeError); if (!__pyx_builtin_RuntimeError) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 799; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - return 0; - __pyx_L1_error:; - return -1; -} - -static int __Pyx_InitCachedConstants(void) { - __Pyx_RefNannyDeclarations - __Pyx_RefNannySetupContext("__Pyx_InitCachedConstants", 0); - - /* "talib/abstract.pyx":54 - * - * def bytes2str(b): - * return b.decode('ascii') # <<<<<<<<<<<<<< - * - * else: - */ - __pyx_tuple_ = PyTuple_Pack(1, __pyx_n_s_ascii); if (unlikely(!__pyx_tuple_)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 54; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_tuple_); - __Pyx_GIVEREF(__pyx_tuple_); - - /* "talib/abstract.pyx":118 - * - * # inputs (price series names) - * for i in xrange(self.__info.pop('num_inputs')): # <<<<<<<<<<<<<< - * info = _ta_getInputParameterInfo(self.__name, i) - * input_name = info['name'] - */ - __pyx_tuple__2 = PyTuple_Pack(1, __pyx_n_s_num_inputs); if (unlikely(!__pyx_tuple__2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 118; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_tuple__2); - __Pyx_GIVEREF(__pyx_tuple__2); - - /* "talib/abstract.pyx":127 - * - * # optional inputs (function parameters) - * for i in xrange(self.__info.pop('num_opt_inputs')): # <<<<<<<<<<<<<< - * info = _ta_getOptInputParameterInfo(self.__name, i) - * param_name = info['name'] - */ - __pyx_tuple__3 = PyTuple_Pack(1, __pyx_n_s_num_opt_inputs); if (unlikely(!__pyx_tuple__3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 127; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_tuple__3); - __Pyx_GIVEREF(__pyx_tuple__3); - - /* "talib/abstract.pyx":135 - * # outputs - * self.__info['output_flags'] = OrderedDict() - * for i in xrange(self.__info.pop('num_outputs')): # <<<<<<<<<<<<<< - * info = _ta_getOutputParameterInfo(self.__name, i) - * output_name = info['name'] - */ - __pyx_tuple__4 = PyTuple_Pack(1, __pyx_n_s_num_outputs); if (unlikely(!__pyx_tuple__4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 135; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_tuple__4); - __Pyx_GIVEREF(__pyx_tuple__4); - - /* "talib/abstract.pyx":543 - * name = name[len('in'):].lower() - * if 'real' in name: - * name = name.replace('real', 'price') # <<<<<<<<<<<<<< - * elif 'price' in name: - * name = 'prices' - */ - __pyx_tuple__7 = PyTuple_Pack(2, __pyx_n_s_real, __pyx_n_s_price); if (unlikely(!__pyx_tuple__7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 543; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_tuple__7); - __Pyx_GIVEREF(__pyx_tuple__7); - - /* "../../../../../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__12 = PyTuple_Pack(1, __pyx_kp_u_ndarray_is_not_C_contiguous); if (unlikely(!__pyx_tuple__12)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 218; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_tuple__12); - __Pyx_GIVEREF(__pyx_tuple__12); - - /* "../../../../../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__13 = PyTuple_Pack(1, __pyx_kp_u_ndarray_is_not_Fortran_contiguou); if (unlikely(!__pyx_tuple__13)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 222; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_tuple__13); - __Pyx_GIVEREF(__pyx_tuple__13); - - /* "../../../../../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__14 = PyTuple_Pack(1, __pyx_kp_u_Non_native_byte_order_not_suppor); if (unlikely(!__pyx_tuple__14)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 259; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_tuple__14); - __Pyx_GIVEREF(__pyx_tuple__14); - - /* "../../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":799 - * - * if (end - f) - (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__15 = PyTuple_Pack(1, __pyx_kp_u_Format_string_allocated_too_shor); if (unlikely(!__pyx_tuple__15)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 799; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_tuple__15); - __Pyx_GIVEREF(__pyx_tuple__15); - - /* "../../../../../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__16 = PyTuple_Pack(1, __pyx_kp_u_Non_native_byte_order_not_suppor); if (unlikely(!__pyx_tuple__16)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 803; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_tuple__16); - __Pyx_GIVEREF(__pyx_tuple__16); - - /* "../../../../../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__17 = PyTuple_Pack(1, __pyx_kp_u_Format_string_allocated_too_shor_2); if (unlikely(!__pyx_tuple__17)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 823; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_tuple__17); - __Pyx_GIVEREF(__pyx_tuple__17); - - /* "talib/abstract.pyx":50 - * if sys.version >= '3': - * - * def str2bytes(s): # <<<<<<<<<<<<<< - * return bytes(s, 'ascii') - * - */ - __pyx_tuple__18 = PyTuple_Pack(1, __pyx_n_s_s); if (unlikely(!__pyx_tuple__18)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 50; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_tuple__18); - __Pyx_GIVEREF(__pyx_tuple__18); - __pyx_codeobj__19 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__18, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_str2bytes, 50, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__19)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 50; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - - /* "talib/abstract.pyx":53 - * return bytes(s, 'ascii') - * - * def bytes2str(b): # <<<<<<<<<<<<<< - * return b.decode('ascii') - * - */ - __pyx_tuple__20 = PyTuple_Pack(1, __pyx_n_s_b); if (unlikely(!__pyx_tuple__20)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 53; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_tuple__20); - __Pyx_GIVEREF(__pyx_tuple__20); - __pyx_codeobj__21 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__20, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_bytes2str, 53, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__21)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 53; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - - /* "talib/abstract.pyx":58 - * else: - * - * def str2bytes(s): # <<<<<<<<<<<<<< - * return s - * - */ - __pyx_tuple__22 = PyTuple_Pack(1, __pyx_n_s_s); if (unlikely(!__pyx_tuple__22)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 58; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_tuple__22); - __Pyx_GIVEREF(__pyx_tuple__22); - __pyx_codeobj__23 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__22, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_str2bytes, 58, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__23)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 58; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - - /* "talib/abstract.pyx":61 - * return s - * - * def bytes2str(b): # <<<<<<<<<<<<<< - * return b - * - */ - __pyx_tuple__24 = PyTuple_Pack(1, __pyx_n_s_b); if (unlikely(!__pyx_tuple__24)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 61; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_tuple__24); - __Pyx_GIVEREF(__pyx_tuple__24); - __pyx_codeobj__25 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__24, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_bytes2str, 61, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__25)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 61; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - - /* "talib/abstract.pyx":93 - * """ - * - * def __init__(self, function_name, *args, **kwargs): # <<<<<<<<<<<<<< - * # make sure the function_name is valid and define all of our variables - * self.__name = function_name.upper() - */ - __pyx_tuple__26 = PyTuple_Pack(4, __pyx_n_s_self, __pyx_n_s_function_name, __pyx_n_s_args, __pyx_n_s_kwargs); if (unlikely(!__pyx_tuple__26)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 93; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_tuple__26); - __Pyx_GIVEREF(__pyx_tuple__26); - __pyx_codeobj__27 = (PyObject*)__Pyx_PyCode_New(2, 0, 4, 0, CO_VARARGS|CO_VARKEYWORDS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__26, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_init, 93, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__27)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 93; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - - /* "talib/abstract.pyx":113 - * self.set_function_args(*args, **kwargs) - * - * def __initialize_function_info(self): # <<<<<<<<<<<<<< - * # function info - * self.__info = _ta_getFuncInfo(self.__name) - */ - __pyx_tuple__28 = PyTuple_Pack(6, __pyx_n_s_self, __pyx_n_s_i, __pyx_n_s_info, __pyx_n_s_input_name, __pyx_n_s_param_name, __pyx_n_s_output_name); if (unlikely(!__pyx_tuple__28)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 113; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_tuple__28); - __Pyx_GIVEREF(__pyx_tuple__28); - __pyx_codeobj__29 = (PyObject*)__Pyx_PyCode_New(1, 0, 6, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__28, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_initialize_function_info, 113, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__29)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 113; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - - /* "talib/abstract.pyx":143 - * - * @property - * def info(self): # <<<<<<<<<<<<<< - * """ - * Returns a copy of the function's info dict. - */ - __pyx_tuple__30 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__30)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 143; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_tuple__30); - __Pyx_GIVEREF(__pyx_tuple__30); - __pyx_codeobj__31 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__30, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_info, 143, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__31)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 143; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - - /* "talib/abstract.pyx":150 - * - * @property - * def function_flags(self): # <<<<<<<<<<<<<< - * """ - * Returns any function flags defined for this indicator function. - */ - __pyx_tuple__32 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__32)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 150; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_tuple__32); - __Pyx_GIVEREF(__pyx_tuple__32); - __pyx_codeobj__33 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__32, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_function_flags, 150, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__33)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 150; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - - /* "talib/abstract.pyx":157 - * - * @property - * def output_flags(self): # <<<<<<<<<<<<<< - * """ - * Returns the flags for each output for this indicator function. - */ - __pyx_tuple__34 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__34)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 157; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_tuple__34); - __Pyx_GIVEREF(__pyx_tuple__34); - __pyx_codeobj__35 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__34, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_output_flags, 157, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__35)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 157; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - - /* "talib/abstract.pyx":163 - * return self.__info['output_flags'].copy() - * - * def get_input_names(self): # <<<<<<<<<<<<<< - * """ - * Returns the dict of input price series names that specifies which - */ - __pyx_tuple__36 = PyTuple_Pack(3, __pyx_n_s_self, __pyx_n_s_ret, __pyx_n_s_input_name); if (unlikely(!__pyx_tuple__36)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 163; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_tuple__36); - __Pyx_GIVEREF(__pyx_tuple__36); - __pyx_codeobj__37 = (PyObject*)__Pyx_PyCode_New(1, 0, 3, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__36, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_get_input_names, 163, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__37)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 163; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - - /* "talib/abstract.pyx":173 - * return ret - * - * def set_input_names(self, input_names): # <<<<<<<<<<<<<< - * """ - * Sets the input price series names to use. - */ - __pyx_tuple__38 = PyTuple_Pack(4, __pyx_n_s_self, __pyx_n_s_input_names, __pyx_n_s_input_name, __pyx_n_s_price_series); if (unlikely(!__pyx_tuple__38)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 173; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_tuple__38); - __Pyx_GIVEREF(__pyx_tuple__38); - __pyx_codeobj__39 = (PyObject*)__Pyx_PyCode_New(2, 0, 4, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__38, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_set_input_names, 173, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__39)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 173; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - - /* "talib/abstract.pyx":184 - * input_names = property(get_input_names, set_input_names) - * - * def get_input_arrays(self): # <<<<<<<<<<<<<< - * """ - * Returns a copy of the dict of input arrays in use. - */ - __pyx_tuple__40 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__40)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 184; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_tuple__40); - __Pyx_GIVEREF(__pyx_tuple__40); - __pyx_codeobj__41 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__40, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_get_input_arrays, 184, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__41)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 184; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - - /* "talib/abstract.pyx":190 - * return self.__input_arrays.copy() - * - * def set_input_arrays(self, input_arrays): # <<<<<<<<<<<<<< - * """ - * Sets the dict of input_arrays to use. Returns True/False for - */ - __pyx_tuple__42 = PyTuple_Pack(4, __pyx_n_s_self, __pyx_n_s_input_arrays, __pyx_n_s_missing_keys, __pyx_n_s_key); if (unlikely(!__pyx_tuple__42)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 190; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_tuple__42); - __Pyx_GIVEREF(__pyx_tuple__42); - __pyx_codeobj__43 = (PyObject*)__Pyx_PyCode_New(2, 0, 4, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__42, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_set_input_arrays, 190, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__43)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 190; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - - /* "talib/abstract.pyx":233 - * input_arrays = property(get_input_arrays, set_input_arrays) - * - * def get_parameters(self): # <<<<<<<<<<<<<< - * """ - * Returns the function's optional parameters and their default values. - */ - __pyx_tuple__44 = PyTuple_Pack(3, __pyx_n_s_self, __pyx_n_s_ret, __pyx_n_s_opt_input); if (unlikely(!__pyx_tuple__44)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 233; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_tuple__44); - __Pyx_GIVEREF(__pyx_tuple__44); - __pyx_codeobj__45 = (PyObject*)__Pyx_PyCode_New(1, 0, 3, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__44, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_get_parameters, 233, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__45)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 233; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - - /* "talib/abstract.pyx":242 - * return ret - * - * def set_parameters(self, parameters): # <<<<<<<<<<<<<< - * """ - * Sets the function parameter values. - */ - __pyx_tuple__46 = PyTuple_Pack(4, __pyx_n_s_self, __pyx_n_s_parameters, __pyx_n_s_param, __pyx_n_s_value); if (unlikely(!__pyx_tuple__46)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 242; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_tuple__46); - __Pyx_GIVEREF(__pyx_tuple__46); - __pyx_codeobj__47 = (PyObject*)__Pyx_PyCode_New(2, 0, 4, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__46, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_set_parameters, 242, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__47)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 242; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - - /* "talib/abstract.pyx":253 - * parameters = property(get_parameters, set_parameters) - * - * def set_function_args(self, *args, **kwargs): # <<<<<<<<<<<<<< - * """ - * optionl args:[input_arrays,] [parameter_args,] [input_price_series_kwargs,] [parameter_kwargs] - */ - __pyx_tuple__48 = PyTuple_Pack(9, __pyx_n_s_self, __pyx_n_s_args, __pyx_n_s_kwargs, __pyx_n_s_update_info, __pyx_n_s_key, __pyx_n_s_skip_first, __pyx_n_s_i, __pyx_n_s_param_name, __pyx_n_s_value); if (unlikely(!__pyx_tuple__48)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 253; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_tuple__48); - __Pyx_GIVEREF(__pyx_tuple__48); - __pyx_codeobj__49 = (PyObject*)__Pyx_PyCode_New(1, 0, 9, 0, CO_VARARGS|CO_VARKEYWORDS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__48, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_set_function_args, 253, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__49)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 253; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - - /* "talib/abstract.pyx":285 - * - * @property - * def lookback(self): # <<<<<<<<<<<<<< - * """ - * Returns the lookback window size for the function with the parameter - */ - __pyx_tuple__50 = PyTuple_Pack(7, __pyx_n_s_self, __pyx_n_s_holder, __pyx_n_s_i, __pyx_n_s_opt_input, __pyx_n_s_value, __pyx_n_s_type_2, __pyx_n_s_lookback); if (unlikely(!__pyx_tuple__50)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 285; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_tuple__50); - __Pyx_GIVEREF(__pyx_tuple__50); - __pyx_codeobj__51 = (PyObject*)__Pyx_PyCode_New(1, 0, 7, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__50, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_lookback, 285, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__51)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 285; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - - /* "talib/abstract.pyx":305 - * - * @property - * def output_names(self): # <<<<<<<<<<<<<< - * """ - * Returns a list of the output names returned by this function. - */ - __pyx_tuple__52 = PyTuple_Pack(2, __pyx_n_s_self, __pyx_n_s_ret); if (unlikely(!__pyx_tuple__52)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 305; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_tuple__52); - __Pyx_GIVEREF(__pyx_tuple__52); - __pyx_codeobj__53 = (PyObject*)__Pyx_PyCode_New(1, 0, 2, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__52, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_output_names, 305, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__53)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 305; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - - /* "talib/abstract.pyx":315 - * - * @property - * def outputs(self): # <<<<<<<<<<<<<< - * """ - * Returns the TA function values for the currently set input_arrays and - */ - __pyx_tuple__54 = PyTuple_Pack(3, __pyx_n_s_self, __pyx_n_s_ret, __pyx_n_s_index); if (unlikely(!__pyx_tuple__54)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 315; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_tuple__54); - __Pyx_GIVEREF(__pyx_tuple__54); - __pyx_codeobj__55 = (PyObject*)__Pyx_PyCode_New(1, 0, 3, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__54, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_outputs, 315, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__55)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 315; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - - /* "talib/abstract.pyx":338 - * return ret[0] if len(ret) == 1 else ret - * - * def run(self, input_arrays=None): # <<<<<<<<<<<<<< - * """ - * run([input_arrays=None]) - */ - __pyx_tuple__56 = PyTuple_Pack(2, __pyx_n_s_self, __pyx_n_s_input_arrays); if (unlikely(!__pyx_tuple__56)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 338; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_tuple__56); - __Pyx_GIVEREF(__pyx_tuple__56); - __pyx_codeobj__57 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__56, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_run, 338, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__57)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 338; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __pyx_tuple__58 = PyTuple_Pack(1, ((PyObject *)Py_None)); if (unlikely(!__pyx_tuple__58)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 338; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_tuple__58); - __Pyx_GIVEREF(__pyx_tuple__58); - - /* "talib/abstract.pyx":350 - * return self.outputs - * - * def __call__(self, *args, **kwargs): # <<<<<<<<<<<<<< - * """ - * func_instance([input_arrays,] [parameter_args,] [input_price_series_kwargs,] [parameter_kwargs]) - */ - __pyx_tuple__59 = PyTuple_Pack(3, __pyx_n_s_self, __pyx_n_s_args, __pyx_n_s_kwargs); if (unlikely(!__pyx_tuple__59)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 350; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_tuple__59); - __Pyx_GIVEREF(__pyx_tuple__59); - __pyx_codeobj__60 = (PyObject*)__Pyx_PyCode_New(1, 0, 3, 0, CO_VARARGS|CO_VARKEYWORDS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__59, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_call, 350, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__60)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 350; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - - /* "talib/abstract.pyx":362 - * - * # figure out which price series names we're using for inputs - * def __input_price_series_names(self): # <<<<<<<<<<<<<< - * input_price_series_names = [] - * for input_name in self.__input_names: - */ - __pyx_tuple__61 = PyTuple_Pack(5, __pyx_n_s_self, __pyx_n_s_input_price_series_names, __pyx_n_s_input_name, __pyx_n_s_price_series, __pyx_n_s_name); if (unlikely(!__pyx_tuple__61)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 362; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_tuple__61); - __Pyx_GIVEREF(__pyx_tuple__61); - __pyx_codeobj__62 = (PyObject*)__Pyx_PyCode_New(1, 0, 5, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__61, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_input_price_series_names_2, 362, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__62)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 362; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - - /* "talib/abstract.pyx":373 - * return input_price_series_names - * - * def __call_function(self): # <<<<<<<<<<<<<< - * input_price_series_names = self.__input_price_series_names() - * - */ - __pyx_tuple__63 = PyTuple_Pack(11, __pyx_n_s_self, __pyx_n_s_input_price_series_names, __pyx_n_s_args, __pyx_n_s_price_series, __pyx_n_s_series, __pyx_n_s_opt_input, __pyx_n_s_value, __pyx_n_s_results, __pyx_n_s_keys, __pyx_n_s_i, __pyx_n_s_output); if (unlikely(!__pyx_tuple__63)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 373; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_tuple__63); - __Pyx_GIVEREF(__pyx_tuple__63); - __pyx_codeobj__64 = (PyObject*)__Pyx_PyCode_New(1, 0, 11, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__63, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_call_function, 373, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__64)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 373; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - - /* "talib/abstract.pyx":400 - * self.__outputs_valid = True - * - * def __get_opt_input_value(self, input_name): # <<<<<<<<<<<<<< - * """ - * Returns the user-set value if there is one, otherwise the default. - */ - __pyx_tuple__65 = PyTuple_Pack(3, __pyx_n_s_self, __pyx_n_s_input_name, __pyx_n_s_value); if (unlikely(!__pyx_tuple__65)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 400; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_tuple__65); - __Pyx_GIVEREF(__pyx_tuple__65); - __pyx_codeobj__66 = (PyObject*)__Pyx_PyCode_New(2, 0, 3, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__65, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_get_opt_input_value, 400, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__66)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 400; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - - /* "talib/abstract.pyx":409 - * return value - * - * def __repr__(self): # <<<<<<<<<<<<<< - * return '%s' % self.info - * - */ - __pyx_tuple__67 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__67)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 409; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_tuple__67); - __Pyx_GIVEREF(__pyx_tuple__67); - __pyx_codeobj__68 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__67, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_repr, 409, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__68)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 409; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - - /* "talib/abstract.pyx":412 - * return '%s' % self.info - * - * def __unicode__(self): # <<<<<<<<<<<<<< - * return unicode(self.__str__()) - * - */ - __pyx_tuple__69 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__69)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 412; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_tuple__69); - __Pyx_GIVEREF(__pyx_tuple__69); - __pyx_codeobj__70 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__69, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_unicode, 412, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__70)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 412; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - - /* "talib/abstract.pyx":415 - * return unicode(self.__str__()) - * - * def __str__(self): # <<<<<<<<<<<<<< - * return _get_defaults_and_docs(self.info)[1] # docstring includes defaults - * - */ - __pyx_tuple__71 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__71)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 415; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_tuple__71); - __Pyx_GIVEREF(__pyx_tuple__71); - __pyx_codeobj__72 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__71, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_str, 415, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__72)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 415; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - - /* "talib/abstract.pyx":429 - * # therefore recommended over using these functions directly. - * - * def _ta_getGroupTable(): # <<<<<<<<<<<<<< - * """ - * Returns the list of available TALIB function group names. *slow* - */ - __pyx_tuple__73 = PyTuple_Pack(3, __pyx_n_s_table, __pyx_n_s_groups, __pyx_n_s_i); if (unlikely(!__pyx_tuple__73)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 429; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_tuple__73); - __Pyx_GIVEREF(__pyx_tuple__73); - __pyx_codeobj__74 = (PyObject*)__Pyx_PyCode_New(0, 0, 3, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__73, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_ta_getGroupTable, 429, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__74)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 429; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - - /* "talib/abstract.pyx":441 - * return groups - * - * def _ta_getFuncTable(char *group): # <<<<<<<<<<<<<< - * """ - * Returns a list of the functions for the specified group name. *slow* - */ - __pyx_tuple__75 = PyTuple_Pack(5, __pyx_n_s_group, __pyx_n_s_group, __pyx_n_s_table, __pyx_n_s_functions, __pyx_n_s_i); if (unlikely(!__pyx_tuple__75)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 441; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_tuple__75); - __Pyx_GIVEREF(__pyx_tuple__75); - __pyx_codeobj__76 = (PyObject*)__Pyx_PyCode_New(1, 0, 5, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__75, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_ta_getFuncTable, 441, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__76)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 441; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - - /* "talib/abstract.pyx":453 - * return functions - * - * def __get_flags(int flag, dict flags_lookup_dict): # <<<<<<<<<<<<<< - * """ - * TA-LIB provides hints for multiple flags as a bitwise-ORed int. - */ - __pyx_tuple__77 = PyTuple_Pack(7, __pyx_n_s_flag, __pyx_n_s_flags_lookup_dict, __pyx_n_s_value_range, __pyx_n_s_min_int, __pyx_n_s_max_int, __pyx_n_s_ret, __pyx_n_s_i); if (unlikely(!__pyx_tuple__77)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 453; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_tuple__77); - __Pyx_GIVEREF(__pyx_tuple__77); - __pyx_codeobj__78 = (PyObject*)__Pyx_PyCode_New(2, 0, 7, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__77, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_get_flags, 453, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__78)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 453; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - - /* "talib/abstract.pyx":512 - * } - * - * def _ta_getFuncInfo(char *function_name): # <<<<<<<<<<<<<< - * """ - * Returns the info dict for the function. It has the following keys: name, - */ - __pyx_tuple__79 = PyTuple_Pack(4, __pyx_n_s_function_name, __pyx_n_s_function_name, __pyx_n_s_info, __pyx_n_s_retCode); if (unlikely(!__pyx_tuple__79)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 512; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_tuple__79); - __Pyx_GIVEREF(__pyx_tuple__79); - __pyx_codeobj__80 = (PyObject*)__Pyx_PyCode_New(1, 0, 4, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__79, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_ta_getFuncInfo, 512, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__80)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 512; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - - /* "talib/abstract.pyx":531 - * } - * - * def _ta_getInputParameterInfo(char *function_name, int idx): # <<<<<<<<<<<<<< - * """ - * Returns the function's input info dict for the given index. It has two - */ - __pyx_tuple__81 = PyTuple_Pack(5, __pyx_n_s_function_name, __pyx_n_s_idx, __pyx_n_s_info, __pyx_n_s_retCode, __pyx_n_s_name); if (unlikely(!__pyx_tuple__81)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 531; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_tuple__81); - __Pyx_GIVEREF(__pyx_tuple__81); - __pyx_codeobj__82 = (PyObject*)__Pyx_PyCode_New(2, 0, 5, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__81, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_ta_getInputParameterInfo, 531, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__82)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 531; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - - /* "talib/abstract.pyx":552 - * } - * - * def _ta_getOptInputParameterInfo(char *function_name, int idx): # <<<<<<<<<<<<<< - * """ - * Returns the function's opt_input info dict for the given index. It has the - */ - __pyx_tuple__83 = PyTuple_Pack(6, __pyx_n_s_function_name, __pyx_n_s_idx, __pyx_n_s_info, __pyx_n_s_retCode, __pyx_n_s_name, __pyx_n_s_default_value); if (unlikely(!__pyx_tuple__83)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 552; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_tuple__83); - __Pyx_GIVEREF(__pyx_tuple__83); - __pyx_codeobj__84 = (PyObject*)__Pyx_PyCode_New(2, 0, 6, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__83, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_ta_getOptInputParameterInfo, 552, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__84)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 552; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - - /* "talib/abstract.pyx":576 - * } - * - * def _ta_getOutputParameterInfo(char *function_name, int idx): # <<<<<<<<<<<<<< - * """ - * Returns the function's output info dict for the given index. It has two - */ - __pyx_tuple__85 = PyTuple_Pack(5, __pyx_n_s_function_name, __pyx_n_s_idx, __pyx_n_s_info, __pyx_n_s_retCode, __pyx_n_s_name); if (unlikely(!__pyx_tuple__85)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 576; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_tuple__85); - __Pyx_GIVEREF(__pyx_tuple__85); - __pyx_codeobj__86 = (PyObject*)__Pyx_PyCode_New(2, 0, 5, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__85, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_ta_getOutputParameterInfo, 576, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__86)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 576; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - - /* "talib/abstract.pyx":596 - * } - * - * def _get_defaults_and_docs(func_info): # <<<<<<<<<<<<<< - * """ - * Returns a tuple with two outputs: defaults, a dict of parameter defaults, - */ - __pyx_tuple__87 = PyTuple_Pack(13, __pyx_n_s_func_info, __pyx_n_s_defaults, __pyx_n_s_func_line, __pyx_n_s_func_args, __pyx_n_s_docs, __pyx_n_s_input_names, __pyx_n_s_input_name, __pyx_n_s_value, __pyx_n_s_params, __pyx_n_s_param, __pyx_n_s_outputs, __pyx_n_s_output, __pyx_n_s_documentation); if (unlikely(!__pyx_tuple__87)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 596; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_tuple__87); - __Pyx_GIVEREF(__pyx_tuple__87); - __pyx_codeobj__88 = (PyObject*)__Pyx_PyCode_New(1, 0, 13, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__87, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_get_defaults_and_docs, 596, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__88)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 596; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_RefNannyFinishContext(); - return 0; - __pyx_L1_error:; - __Pyx_RefNannyFinishContext(); - return -1; -} - -static int __Pyx_InitGlobals(void) { - __pyx_umethod_PyDict_Type_keys.type = (PyObject*)&PyDict_Type; - if (__Pyx_InitStrings(__pyx_string_tab) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}; - __pyx_int_0 = PyInt_FromLong(0); if (unlikely(!__pyx_int_0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __pyx_int_1 = PyInt_FromLong(1); if (unlikely(!__pyx_int_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __pyx_int_2 = PyInt_FromLong(2); if (unlikely(!__pyx_int_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __pyx_int_4 = PyInt_FromLong(4); if (unlikely(!__pyx_int_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __pyx_int_8 = PyInt_FromLong(8); if (unlikely(!__pyx_int_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __pyx_int_16 = PyInt_FromLong(16); if (unlikely(!__pyx_int_16)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __pyx_int_32 = PyInt_FromLong(32); if (unlikely(!__pyx_int_32)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __pyx_int_64 = PyInt_FromLong(64); if (unlikely(!__pyx_int_64)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __pyx_int_128 = PyInt_FromLong(128); if (unlikely(!__pyx_int_128)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __pyx_int_256 = PyInt_FromLong(256); if (unlikely(!__pyx_int_256)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __pyx_int_512 = PyInt_FromLong(512); if (unlikely(!__pyx_int_512)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __pyx_int_1024 = PyInt_FromLong(1024); if (unlikely(!__pyx_int_1024)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __pyx_int_2048 = PyInt_FromLong(2048); if (unlikely(!__pyx_int_2048)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __pyx_int_4096 = PyInt_FromLong(4096); if (unlikely(!__pyx_int_4096)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __pyx_int_16777216 = PyInt_FromLong(16777216L); if (unlikely(!__pyx_int_16777216)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __pyx_int_67108864 = PyInt_FromLong(67108864L); if (unlikely(!__pyx_int_67108864)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __pyx_int_134217728 = PyInt_FromLong(134217728L); if (unlikely(!__pyx_int_134217728)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __pyx_int_268435456 = PyInt_FromLong(268435456L); if (unlikely(!__pyx_int_268435456)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - return 0; - __pyx_L1_error:; - return -1; -} - -#if PY_MAJOR_VERSION < 3 -PyMODINIT_FUNC initabstract(void); /*proto*/ -PyMODINIT_FUNC initabstract(void) -#else -PyMODINIT_FUNC PyInit_abstract(void); /*proto*/ -PyMODINIT_FUNC PyInit_abstract(void) -#endif -{ - PyObject *__pyx_t_1 = NULL; - PyObject *__pyx_t_2 = NULL; - PyObject *__pyx_t_3 = NULL; - PyObject *__pyx_t_4 = NULL; - PyObject *__pyx_t_5 = NULL; - int __pyx_t_6; - PyObject *__pyx_t_7 = NULL; - PyObject *__pyx_t_8 = NULL; - PyObject *__pyx_t_9 = NULL; - int __pyx_t_10; - PyObject *__pyx_t_11 = NULL; - Py_ssize_t __pyx_t_12; - PyObject *(*__pyx_t_13)(PyObject *); - int __pyx_lineno = 0; - const char *__pyx_filename = NULL; - int __pyx_clineno = 0; - __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_abstract(void)", 0); - if (__Pyx_check_binary_version() < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __pyx_empty_tuple = PyTuple_New(0); if (unlikely(!__pyx_empty_tuple)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __pyx_empty_bytes = PyBytes_FromStringAndSize("", 0); if (unlikely(!__pyx_empty_bytes)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - #ifdef __Pyx_CyFunction_USED - if (__pyx_CyFunction_init() < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - #endif - #ifdef __Pyx_FusedFunction_USED - if (__pyx_FusedFunction_init() < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - #endif - #ifdef __Pyx_Coroutine_USED - if (__pyx_Coroutine_init() < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - #endif - #ifdef __Pyx_Generator_USED - if (__pyx_Generator_init() < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - #endif - #ifdef __Pyx_StopAsyncIteration_USED - if (__pyx_StopAsyncIteration_init() < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __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("abstract", __pyx_methods, __pyx_k_This_file_Copyright_c_2013_Bria, 0, PYTHON_API_VERSION); Py_XINCREF(__pyx_m); - #else - __pyx_m = PyModule_Create(&__pyx_moduledef); - #endif - if (unlikely(!__pyx_m)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __pyx_d = PyModule_GetDict(__pyx_m); if (unlikely(!__pyx_d)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - Py_INCREF(__pyx_d); - __pyx_b = PyImport_AddModule(__Pyx_BUILTIN_MODULE_NAME); if (unlikely(!__pyx_b)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - #if CYTHON_COMPILING_IN_PYPY - Py_INCREF(__pyx_b); - #endif - if (PyObject_SetAttrString(__pyx_m, "__builtins__", __pyx_b) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;}; - /*--- Initialize various global constants etc. ---*/ - if (__Pyx_InitGlobals() < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __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_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - #endif - if (__pyx_module_is_main_talib__abstract) { - if (PyObject_SetAttrString(__pyx_m, "__name__", __pyx_n_s_main) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - } - #if PY_MAJOR_VERSION >= 3 - { - PyObject *modules = PyImport_GetModuleDict(); if (unlikely(!modules)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - if (!PyDict_GetItemString(modules, "talib.abstract")) { - if (unlikely(PyDict_SetItemString(modules, "talib.abstract", __pyx_m) < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - } - } - #endif - /*--- Builtin init code ---*/ - if (__Pyx_InitCachedBuiltins() < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - /*--- Constants init code ---*/ - if (__Pyx_InitCachedConstants() < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __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_filename = __pyx_f[2]; __pyx_lineno = 9; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __pyx_ptype_5numpy_dtype = __Pyx_ImportType("numpy", "dtype", sizeof(PyArray_Descr), 0); if (unlikely(!__pyx_ptype_5numpy_dtype)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 155; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __pyx_ptype_5numpy_flatiter = __Pyx_ImportType("numpy", "flatiter", sizeof(PyArrayIterObject), 0); if (unlikely(!__pyx_ptype_5numpy_flatiter)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 168; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __pyx_ptype_5numpy_broadcast = __Pyx_ImportType("numpy", "broadcast", sizeof(PyArrayMultiIterObject), 0); if (unlikely(!__pyx_ptype_5numpy_broadcast)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 172; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __pyx_ptype_5numpy_ndarray = __Pyx_ImportType("numpy", "ndarray", sizeof(PyArrayObject), 0); if (unlikely(!__pyx_ptype_5numpy_ndarray)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 181; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __pyx_ptype_5numpy_ufunc = __Pyx_ImportType("numpy", "ufunc", sizeof(PyUFuncObject), 0); if (unlikely(!__pyx_ptype_5numpy_ufunc)) {__pyx_filename = __pyx_f[1]; __pyx_lineno = 861; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - /*--- Variable import code ---*/ - /*--- Function import code ---*/ - /*--- Execution code ---*/ - #if defined(__Pyx_Generator_USED) || defined(__Pyx_Coroutine_USED) - if (__Pyx_patch_abc() < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - #endif - - /* "talib/abstract.pyx":4 - * This file Copyright (c) 2013 Brian A Cappello - * ''' - * import math # <<<<<<<<<<<<<< - * - * from . import func as func_c - */ - __pyx_t_1 = __Pyx_Import(__pyx_n_s_math, 0, -1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 4; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_math, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 4; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - - /* "talib/abstract.pyx":6 - * import math - * - * from . import func as func_c # <<<<<<<<<<<<<< - * from .common import _ta_check_success, MA_Type - * try: - */ - __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 6; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - __Pyx_INCREF(__pyx_n_s_func); - __Pyx_GIVEREF(__pyx_n_s_func); - PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_func); - __pyx_t_2 = __Pyx_Import(__pyx_kp_s__5, __pyx_t_1, 1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 6; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_2, __pyx_n_s_func); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 6; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_func_c, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 6; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/abstract.pyx":7 - * - * from . import func as func_c - * from .common import _ta_check_success, MA_Type # <<<<<<<<<<<<<< - * try: - * from collections import OrderedDict - */ - __pyx_t_2 = PyList_New(2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 7; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __Pyx_INCREF(__pyx_n_s_ta_check_success); - __Pyx_GIVEREF(__pyx_n_s_ta_check_success); - PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_ta_check_success); - __Pyx_INCREF(__pyx_n_s_MA_Type); - __Pyx_GIVEREF(__pyx_n_s_MA_Type); - PyList_SET_ITEM(__pyx_t_2, 1, __pyx_n_s_MA_Type); - __pyx_t_1 = __Pyx_Import(__pyx_n_s_common, __pyx_t_2, 1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 7; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_1, __pyx_n_s_ta_check_success); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 7; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_ta_check_success, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 7; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_1, __pyx_n_s_MA_Type); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 7; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_MA_Type, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 7; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - - /* "talib/abstract.pyx":8 - * from . import func as func_c - * from .common import _ta_check_success, MA_Type - * try: # <<<<<<<<<<<<<< - * from collections import OrderedDict - * except ImportError: # handle python 2.6 and earlier - */ - { - __Pyx_ExceptionSave(&__pyx_t_3, &__pyx_t_4, &__pyx_t_5); - __Pyx_XGOTREF(__pyx_t_3); - __Pyx_XGOTREF(__pyx_t_4); - __Pyx_XGOTREF(__pyx_t_5); - /*try:*/ { - - /* "talib/abstract.pyx":9 - * from .common import _ta_check_success, MA_Type - * try: - * from collections import OrderedDict # <<<<<<<<<<<<<< - * except ImportError: # handle python 2.6 and earlier - * from ordereddict import OrderedDict - */ - __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 9; __pyx_clineno = __LINE__; goto __pyx_L2_error;} - __Pyx_GOTREF(__pyx_t_1); - __Pyx_INCREF(__pyx_n_s_OrderedDict); - __Pyx_GIVEREF(__pyx_n_s_OrderedDict); - PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_OrderedDict); - __pyx_t_2 = __Pyx_Import(__pyx_n_s_collections, __pyx_t_1, -1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 9; __pyx_clineno = __LINE__; goto __pyx_L2_error;} - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_2, __pyx_n_s_OrderedDict); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 9; __pyx_clineno = __LINE__; goto __pyx_L2_error;} - __Pyx_GOTREF(__pyx_t_1); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_OrderedDict, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 9; __pyx_clineno = __LINE__; goto __pyx_L2_error;} - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/abstract.pyx":8 - * from . import func as func_c - * from .common import _ta_check_success, MA_Type - * try: # <<<<<<<<<<<<<< - * from collections import OrderedDict - * except ImportError: # handle python 2.6 and earlier - */ - } - __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; - __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; - __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; - goto __pyx_L9_try_end; - __pyx_L2_error:; - __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; - __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/abstract.pyx":10 - * try: - * from collections import OrderedDict - * except ImportError: # handle python 2.6 and earlier # <<<<<<<<<<<<<< - * from ordereddict import OrderedDict - * from cython.operator cimport dereference as deref - */ - __pyx_t_6 = PyErr_ExceptionMatches(__pyx_builtin_ImportError); - if (__pyx_t_6) { - __Pyx_AddTraceback("talib.abstract", __pyx_clineno, __pyx_lineno, __pyx_filename); - if (__Pyx_GetException(&__pyx_t_2, &__pyx_t_1, &__pyx_t_7) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 10; __pyx_clineno = __LINE__; goto __pyx_L4_except_error;} - __Pyx_GOTREF(__pyx_t_2); - __Pyx_GOTREF(__pyx_t_1); - __Pyx_GOTREF(__pyx_t_7); - - /* "talib/abstract.pyx":11 - * from collections import OrderedDict - * except ImportError: # handle python 2.6 and earlier - * from ordereddict import OrderedDict # <<<<<<<<<<<<<< - * from cython.operator cimport dereference as deref - * import numpy - */ - __pyx_t_8 = PyList_New(1); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 11; __pyx_clineno = __LINE__; goto __pyx_L4_except_error;} - __Pyx_GOTREF(__pyx_t_8); - __Pyx_INCREF(__pyx_n_s_OrderedDict); - __Pyx_GIVEREF(__pyx_n_s_OrderedDict); - PyList_SET_ITEM(__pyx_t_8, 0, __pyx_n_s_OrderedDict); - __pyx_t_9 = __Pyx_Import(__pyx_n_s_ordereddict, __pyx_t_8, -1); if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 11; __pyx_clineno = __LINE__; goto __pyx_L4_except_error;} - __Pyx_GOTREF(__pyx_t_9); - __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - __pyx_t_8 = __Pyx_ImportFrom(__pyx_t_9, __pyx_n_s_OrderedDict); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 11; __pyx_clineno = __LINE__; goto __pyx_L4_except_error;} - __Pyx_GOTREF(__pyx_t_8); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_OrderedDict, __pyx_t_8) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 11; __pyx_clineno = __LINE__; goto __pyx_L4_except_error;} - __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - goto __pyx_L3_exception_handled; - } - goto __pyx_L4_except_error; - __pyx_L4_except_error:; - - /* "talib/abstract.pyx":8 - * from . import func as func_c - * from .common import _ta_check_success, MA_Type - * try: # <<<<<<<<<<<<<< - * from collections import OrderedDict - * except ImportError: # handle python 2.6 and earlier - */ - __Pyx_XGIVEREF(__pyx_t_3); - __Pyx_XGIVEREF(__pyx_t_4); - __Pyx_XGIVEREF(__pyx_t_5); - __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5); - goto __pyx_L1_error; - __pyx_L3_exception_handled:; - __Pyx_XGIVEREF(__pyx_t_3); - __Pyx_XGIVEREF(__pyx_t_4); - __Pyx_XGIVEREF(__pyx_t_5); - __Pyx_ExceptionReset(__pyx_t_3, __pyx_t_4, __pyx_t_5); - __pyx_L9_try_end:; - } - - /* "talib/abstract.pyx":13 - * from ordereddict import OrderedDict - * from cython.operator cimport dereference as deref - * import numpy # <<<<<<<<<<<<<< - * import sys - * - */ - __pyx_t_7 = __Pyx_Import(__pyx_n_s_numpy, 0, -1); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 13; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_7); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_numpy, __pyx_t_7) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 13; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - - /* "talib/abstract.pyx":14 - * from cython.operator cimport dereference as deref - * import numpy - * import sys # <<<<<<<<<<<<<< - * - * cimport numpy as np - */ - __pyx_t_7 = __Pyx_Import(__pyx_n_s_sys, 0, -1); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 14; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_7); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_sys, __pyx_t_7) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 14; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - - /* "talib/abstract.pyx":19 - * cimport libta_lib as lib - * - * lib.TA_Initialize() # <<<<<<<<<<<<<< - * - * __FUNCTION_NAMES = set(func_c.__all__) - */ - TA_Initialize(); - - /* "talib/abstract.pyx":21 - * lib.TA_Initialize() - * - * __FUNCTION_NAMES = set(func_c.__all__) # <<<<<<<<<<<<<< - * - * __INPUT_ARRAYS_DEFAULTS = {'open': None, - */ - __pyx_t_7 = __Pyx_GetModuleGlobalName(__pyx_n_s_func_c); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 21; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_7); - __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_all); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 21; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - __pyx_t_7 = PySet_New(__pyx_t_1); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 21; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_7); - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - if (PyDict_SetItem(__pyx_d, __pyx_n_s_FUNCTION_NAMES, __pyx_t_7) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 21; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - - /* "talib/abstract.pyx":23 - * __FUNCTION_NAMES = set(func_c.__all__) - * - * __INPUT_ARRAYS_DEFAULTS = {'open': None, # <<<<<<<<<<<<<< - * 'high': None, - * 'low': None, - */ - __pyx_t_7 = PyDict_New(); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 23; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_7); - if (PyDict_SetItem(__pyx_t_7, __pyx_n_s_open, Py_None) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 23; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - - /* "talib/abstract.pyx":24 - * - * __INPUT_ARRAYS_DEFAULTS = {'open': None, - * 'high': None, # <<<<<<<<<<<<<< - * 'low': None, - * 'close': None, - */ - if (PyDict_SetItem(__pyx_t_7, __pyx_n_s_high, Py_None) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 23; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - - /* "talib/abstract.pyx":25 - * __INPUT_ARRAYS_DEFAULTS = {'open': None, - * 'high': None, - * 'low': None, # <<<<<<<<<<<<<< - * 'close': None, - * 'volume': None, - */ - if (PyDict_SetItem(__pyx_t_7, __pyx_n_s_low, Py_None) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 23; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - - /* "talib/abstract.pyx":26 - * 'high': None, - * 'low': None, - * 'close': None, # <<<<<<<<<<<<<< - * 'volume': None, - * } - */ - if (PyDict_SetItem(__pyx_t_7, __pyx_n_s_close, Py_None) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 23; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - - /* "talib/abstract.pyx":27 - * 'low': None, - * 'close': None, - * 'volume': None, # <<<<<<<<<<<<<< - * } - * - */ - if (PyDict_SetItem(__pyx_t_7, __pyx_n_s_volume, Py_None) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 23; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - if (PyDict_SetItem(__pyx_d, __pyx_n_s_INPUT_ARRAYS_DEFAULTS, __pyx_t_7) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 23; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - - /* "talib/abstract.pyx":31 - * - * # lookup for TALIB input parameters which don't define expected price series inputs - * __INPUT_PRICE_SERIES_DEFAULTS = {'price': 'close', # <<<<<<<<<<<<<< - * 'price0': 'high', - * 'price1': 'low', - */ - __pyx_t_7 = PyDict_New(); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 31; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_7); - if (PyDict_SetItem(__pyx_t_7, __pyx_n_s_price, __pyx_n_s_close) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 31; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - if (PyDict_SetItem(__pyx_t_7, __pyx_n_s_price0, __pyx_n_s_high) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 31; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - if (PyDict_SetItem(__pyx_t_7, __pyx_n_s_price1, __pyx_n_s_low) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 31; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - if (PyDict_SetItem(__pyx_t_7, __pyx_n_s_periods, __pyx_n_s_periods) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 31; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - if (PyDict_SetItem(__pyx_d, __pyx_n_s_INPUT_PRICE_SERIES_DEFAULTS, __pyx_t_7) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 31; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - - /* "talib/abstract.pyx":38 - * - * # allow use of pandas.DataFrame for input arrays - * try: # <<<<<<<<<<<<<< - * import pandas - * __INPUT_ARRAYS_TYPES = (dict, pandas.DataFrame) - */ - { - __Pyx_ExceptionSave(&__pyx_t_5, &__pyx_t_4, &__pyx_t_3); - __Pyx_XGOTREF(__pyx_t_5); - __Pyx_XGOTREF(__pyx_t_4); - __Pyx_XGOTREF(__pyx_t_3); - /*try:*/ { - - /* "talib/abstract.pyx":39 - * # allow use of pandas.DataFrame for input arrays - * try: - * import pandas # <<<<<<<<<<<<<< - * __INPUT_ARRAYS_TYPES = (dict, pandas.DataFrame) - * __PANDAS_DATAFRAME = pandas.DataFrame - */ - __pyx_t_7 = __Pyx_Import(__pyx_n_s_pandas, 0, -1); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 39; __pyx_clineno = __LINE__; goto __pyx_L12_error;} - __Pyx_GOTREF(__pyx_t_7); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_pandas, __pyx_t_7) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 39; __pyx_clineno = __LINE__; goto __pyx_L12_error;} - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - - /* "talib/abstract.pyx":40 - * try: - * import pandas - * __INPUT_ARRAYS_TYPES = (dict, pandas.DataFrame) # <<<<<<<<<<<<<< - * __PANDAS_DATAFRAME = pandas.DataFrame - * __PANDAS_SERIES = pandas.Series - */ - __pyx_t_7 = __Pyx_GetModuleGlobalName(__pyx_n_s_pandas); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 40; __pyx_clineno = __LINE__; goto __pyx_L12_error;} - __Pyx_GOTREF(__pyx_t_7); - __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_DataFrame); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 40; __pyx_clineno = __LINE__; goto __pyx_L12_error;} - __Pyx_GOTREF(__pyx_t_1); - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - __pyx_t_7 = PyTuple_New(2); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 40; __pyx_clineno = __LINE__; goto __pyx_L12_error;} - __Pyx_GOTREF(__pyx_t_7); - __Pyx_INCREF(((PyObject *)(&PyDict_Type))); - __Pyx_GIVEREF(((PyObject *)(&PyDict_Type))); - PyTuple_SET_ITEM(__pyx_t_7, 0, ((PyObject *)(&PyDict_Type))); - __Pyx_GIVEREF(__pyx_t_1); - PyTuple_SET_ITEM(__pyx_t_7, 1, __pyx_t_1); - __pyx_t_1 = 0; - if (PyDict_SetItem(__pyx_d, __pyx_n_s_INPUT_ARRAYS_TYPES, __pyx_t_7) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 40; __pyx_clineno = __LINE__; goto __pyx_L12_error;} - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - - /* "talib/abstract.pyx":41 - * import pandas - * __INPUT_ARRAYS_TYPES = (dict, pandas.DataFrame) - * __PANDAS_DATAFRAME = pandas.DataFrame # <<<<<<<<<<<<<< - * __PANDAS_SERIES = pandas.Series - * except ImportError: - */ - __pyx_t_7 = __Pyx_GetModuleGlobalName(__pyx_n_s_pandas); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 41; __pyx_clineno = __LINE__; goto __pyx_L12_error;} - __Pyx_GOTREF(__pyx_t_7); - __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_7, __pyx_n_s_DataFrame); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 41; __pyx_clineno = __LINE__; goto __pyx_L12_error;} - __Pyx_GOTREF(__pyx_t_1); - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - if (PyDict_SetItem(__pyx_d, __pyx_n_s_PANDAS_DATAFRAME, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 41; __pyx_clineno = __LINE__; goto __pyx_L12_error;} - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - - /* "talib/abstract.pyx":42 - * __INPUT_ARRAYS_TYPES = (dict, pandas.DataFrame) - * __PANDAS_DATAFRAME = pandas.DataFrame - * __PANDAS_SERIES = pandas.Series # <<<<<<<<<<<<<< - * except ImportError: - * __INPUT_ARRAYS_TYPES = (dict,) - */ - __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_pandas); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 42; __pyx_clineno = __LINE__; goto __pyx_L12_error;} - __Pyx_GOTREF(__pyx_t_1); - __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_Series); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 42; __pyx_clineno = __LINE__; goto __pyx_L12_error;} - __Pyx_GOTREF(__pyx_t_7); - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - if (PyDict_SetItem(__pyx_d, __pyx_n_s_PANDAS_SERIES, __pyx_t_7) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 42; __pyx_clineno = __LINE__; goto __pyx_L12_error;} - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - - /* "talib/abstract.pyx":38 - * - * # allow use of pandas.DataFrame for input arrays - * try: # <<<<<<<<<<<<<< - * import pandas - * __INPUT_ARRAYS_TYPES = (dict, pandas.DataFrame) - */ - } - __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; - __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; - __Pyx_XDECREF(__pyx_t_3); __pyx_t_3 = 0; - goto __pyx_L19_try_end; - __pyx_L12_error:; - __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; - __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; - __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; - __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; - __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; - - /* "talib/abstract.pyx":43 - * __PANDAS_DATAFRAME = pandas.DataFrame - * __PANDAS_SERIES = pandas.Series - * except ImportError: # <<<<<<<<<<<<<< - * __INPUT_ARRAYS_TYPES = (dict,) - * __PANDAS_DATAFRAME = None - */ - __pyx_t_6 = PyErr_ExceptionMatches(__pyx_builtin_ImportError); - if (__pyx_t_6) { - __Pyx_AddTraceback("talib.abstract", __pyx_clineno, __pyx_lineno, __pyx_filename); - if (__Pyx_GetException(&__pyx_t_7, &__pyx_t_1, &__pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 43; __pyx_clineno = __LINE__; goto __pyx_L14_except_error;} - __Pyx_GOTREF(__pyx_t_7); - __Pyx_GOTREF(__pyx_t_1); - __Pyx_GOTREF(__pyx_t_2); - - /* "talib/abstract.pyx":44 - * __PANDAS_SERIES = pandas.Series - * except ImportError: - * __INPUT_ARRAYS_TYPES = (dict,) # <<<<<<<<<<<<<< - * __PANDAS_DATAFRAME = None - * __PANDAS_SERIES = None - */ - __pyx_t_9 = PyTuple_New(1); if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 44; __pyx_clineno = __LINE__; goto __pyx_L14_except_error;} - __Pyx_GOTREF(__pyx_t_9); - __Pyx_INCREF(((PyObject *)(&PyDict_Type))); - __Pyx_GIVEREF(((PyObject *)(&PyDict_Type))); - PyTuple_SET_ITEM(__pyx_t_9, 0, ((PyObject *)(&PyDict_Type))); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_INPUT_ARRAYS_TYPES, __pyx_t_9) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 44; __pyx_clineno = __LINE__; goto __pyx_L14_except_error;} - __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - - /* "talib/abstract.pyx":45 - * except ImportError: - * __INPUT_ARRAYS_TYPES = (dict,) - * __PANDAS_DATAFRAME = None # <<<<<<<<<<<<<< - * __PANDAS_SERIES = None - * - */ - if (PyDict_SetItem(__pyx_d, __pyx_n_s_PANDAS_DATAFRAME, Py_None) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 45; __pyx_clineno = __LINE__; goto __pyx_L14_except_error;} - - /* "talib/abstract.pyx":46 - * __INPUT_ARRAYS_TYPES = (dict,) - * __PANDAS_DATAFRAME = None - * __PANDAS_SERIES = None # <<<<<<<<<<<<<< - * - * if sys.version >= '3': - */ - if (PyDict_SetItem(__pyx_d, __pyx_n_s_PANDAS_SERIES, Py_None) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 46; __pyx_clineno = __LINE__; goto __pyx_L14_except_error;} - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - goto __pyx_L13_exception_handled; - } - goto __pyx_L14_except_error; - __pyx_L14_except_error:; - - /* "talib/abstract.pyx":38 - * - * # allow use of pandas.DataFrame for input arrays - * try: # <<<<<<<<<<<<<< - * import pandas - * __INPUT_ARRAYS_TYPES = (dict, pandas.DataFrame) - */ - __Pyx_XGIVEREF(__pyx_t_5); - __Pyx_XGIVEREF(__pyx_t_4); - __Pyx_XGIVEREF(__pyx_t_3); - __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3); - goto __pyx_L1_error; - __pyx_L13_exception_handled:; - __Pyx_XGIVEREF(__pyx_t_5); - __Pyx_XGIVEREF(__pyx_t_4); - __Pyx_XGIVEREF(__pyx_t_3); - __Pyx_ExceptionReset(__pyx_t_5, __pyx_t_4, __pyx_t_3); - __pyx_L19_try_end:; - } - - /* "talib/abstract.pyx":48 - * __PANDAS_SERIES = None - * - * if sys.version >= '3': # <<<<<<<<<<<<<< - * - * def str2bytes(s): - */ - __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_sys); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 48; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_version); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 48; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __pyx_t_2 = PyObject_RichCompare(__pyx_t_1, __pyx_kp_s_3, Py_GE); __Pyx_XGOTREF(__pyx_t_2); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 48; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __pyx_t_10 = __Pyx_PyObject_IsTrue(__pyx_t_2); if (unlikely(__pyx_t_10 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 48; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - if (__pyx_t_10) { - - /* "talib/abstract.pyx":50 - * if sys.version >= '3': - * - * def str2bytes(s): # <<<<<<<<<<<<<< - * return bytes(s, 'ascii') - * - */ - __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8abstract_1str2bytes, NULL, __pyx_n_s_talib_abstract); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 50; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_str2bytes, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 50; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/abstract.pyx":53 - * return bytes(s, 'ascii') - * - * def bytes2str(b): # <<<<<<<<<<<<<< - * return b.decode('ascii') - * - */ - __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8abstract_3bytes2str, NULL, __pyx_n_s_talib_abstract); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 53; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_bytes2str, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 53; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/abstract.pyx":48 - * __PANDAS_SERIES = None - * - * if sys.version >= '3': # <<<<<<<<<<<<<< - * - * def str2bytes(s): - */ - goto __pyx_L22; - } - - /* "talib/abstract.pyx":58 - * else: - * - * def str2bytes(s): # <<<<<<<<<<<<<< - * return s - * - */ - /*else*/ { - __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8abstract_5str2bytes, NULL, __pyx_n_s_talib_abstract); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 58; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_str2bytes, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 58; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/abstract.pyx":61 - * return s - * - * def bytes2str(b): # <<<<<<<<<<<<<< - * return b - * - */ - __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8abstract_7bytes2str, NULL, __pyx_n_s_talib_abstract); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 61; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_bytes2str, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 61; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - } - __pyx_L22:; - - /* "talib/abstract.pyx":64 - * return b - * - * class Function(object): # <<<<<<<<<<<<<< - * """ - * This is a pythonic wrapper around TALIB's abstract interface. It is - */ - __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 64; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __Pyx_INCREF(__pyx_builtin_object); - __Pyx_GIVEREF(__pyx_builtin_object); - PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_builtin_object); - __pyx_t_1 = __Pyx_CalculateMetaclass(NULL, __pyx_t_2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 64; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - __pyx_t_7 = __Pyx_Py3MetaclassPrepare(__pyx_t_1, __pyx_t_2, __pyx_n_s_Function, __pyx_n_s_Function, (PyObject *) NULL, __pyx_n_s_talib_abstract, __pyx_kp_s_This_is_a_pythonic_wrapper_arou); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 64; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_7); - - /* "talib/abstract.pyx":93 - * """ - * - * def __init__(self, function_name, *args, **kwargs): # <<<<<<<<<<<<<< - * # make sure the function_name is valid and define all of our variables - * self.__name = function_name.upper() - */ - __pyx_t_9 = __Pyx_CyFunction_NewEx(&__pyx_mdef_5talib_8abstract_8Function_1__init__, 0, __pyx_n_s_Function___init, NULL, __pyx_n_s_talib_abstract, __pyx_d, ((PyObject *)__pyx_codeobj__27)); if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 93; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_9); - if (PyObject_SetItem(__pyx_t_7, __pyx_n_s_init, __pyx_t_9) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 93; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - - /* "talib/abstract.pyx":113 - * self.set_function_args(*args, **kwargs) - * - * def __initialize_function_info(self): # <<<<<<<<<<<<<< - * # function info - * self.__info = _ta_getFuncInfo(self.__name) - */ - __pyx_t_9 = __Pyx_CyFunction_NewEx(&__pyx_mdef_5talib_8abstract_8Function_3__initialize_function_info, 0, __pyx_n_s_Function___initialize_function_i, NULL, __pyx_n_s_talib_abstract, __pyx_d, ((PyObject *)__pyx_codeobj__29)); if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 113; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_9); - if (PyObject_SetItem(__pyx_t_7, __pyx_n_s_Function__initialize_function_i, __pyx_t_9) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 113; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - - /* "talib/abstract.pyx":143 - * - * @property - * def info(self): # <<<<<<<<<<<<<< - * """ - * Returns a copy of the function's info dict. - */ - __pyx_t_9 = __Pyx_CyFunction_NewEx(&__pyx_mdef_5talib_8abstract_8Function_5info, 0, __pyx_n_s_Function_info, NULL, __pyx_n_s_talib_abstract, __pyx_d, ((PyObject *)__pyx_codeobj__31)); if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 143; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_9); - - /* "talib/abstract.pyx":142 - * self.__info['output_names'] = self.output_names - * - * @property # <<<<<<<<<<<<<< - * def info(self): - * """ - */ - __pyx_t_8 = PyTuple_New(1); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 142; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_8); - __Pyx_GIVEREF(__pyx_t_9); - PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_9); - __pyx_t_9 = 0; - __pyx_t_9 = __Pyx_PyObject_Call(__pyx_builtin_property, __pyx_t_8, NULL); if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 142; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_9); - __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - if (PyObject_SetItem(__pyx_t_7, __pyx_n_s_info, __pyx_t_9) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 143; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - - /* "talib/abstract.pyx":150 - * - * @property - * def function_flags(self): # <<<<<<<<<<<<<< - * """ - * Returns any function flags defined for this indicator function. - */ - __pyx_t_9 = __Pyx_CyFunction_NewEx(&__pyx_mdef_5talib_8abstract_8Function_7function_flags, 0, __pyx_n_s_Function_function_flags, NULL, __pyx_n_s_talib_abstract, __pyx_d, ((PyObject *)__pyx_codeobj__33)); if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 150; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_9); - - /* "talib/abstract.pyx":149 - * return self.__info.copy() - * - * @property # <<<<<<<<<<<<<< - * def function_flags(self): - * """ - */ - __pyx_t_8 = PyTuple_New(1); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 149; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_8); - __Pyx_GIVEREF(__pyx_t_9); - PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_9); - __pyx_t_9 = 0; - __pyx_t_9 = __Pyx_PyObject_Call(__pyx_builtin_property, __pyx_t_8, NULL); if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 149; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_9); - __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - if (PyObject_SetItem(__pyx_t_7, __pyx_n_s_function_flags, __pyx_t_9) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 150; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - - /* "talib/abstract.pyx":157 - * - * @property - * def output_flags(self): # <<<<<<<<<<<<<< - * """ - * Returns the flags for each output for this indicator function. - */ - __pyx_t_9 = __Pyx_CyFunction_NewEx(&__pyx_mdef_5talib_8abstract_8Function_9output_flags, 0, __pyx_n_s_Function_output_flags, NULL, __pyx_n_s_talib_abstract, __pyx_d, ((PyObject *)__pyx_codeobj__35)); if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 157; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_9); - - /* "talib/abstract.pyx":156 - * return self.__info['function_flags'] - * - * @property # <<<<<<<<<<<<<< - * def output_flags(self): - * """ - */ - __pyx_t_8 = PyTuple_New(1); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 156; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_8); - __Pyx_GIVEREF(__pyx_t_9); - PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_9); - __pyx_t_9 = 0; - __pyx_t_9 = __Pyx_PyObject_Call(__pyx_builtin_property, __pyx_t_8, NULL); if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 156; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_9); - __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - if (PyObject_SetItem(__pyx_t_7, __pyx_n_s_output_flags, __pyx_t_9) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 157; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - - /* "talib/abstract.pyx":163 - * return self.__info['output_flags'].copy() - * - * def get_input_names(self): # <<<<<<<<<<<<<< - * """ - * Returns the dict of input price series names that specifies which - */ - __pyx_t_9 = __Pyx_CyFunction_NewEx(&__pyx_mdef_5talib_8abstract_8Function_11get_input_names, 0, __pyx_n_s_Function_get_input_names, NULL, __pyx_n_s_talib_abstract, __pyx_d, ((PyObject *)__pyx_codeobj__37)); if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 163; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_9); - if (PyObject_SetItem(__pyx_t_7, __pyx_n_s_get_input_names, __pyx_t_9) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 163; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - - /* "talib/abstract.pyx":173 - * return ret - * - * def set_input_names(self, input_names): # <<<<<<<<<<<<<< - * """ - * Sets the input price series names to use. - */ - __pyx_t_9 = __Pyx_CyFunction_NewEx(&__pyx_mdef_5talib_8abstract_8Function_13set_input_names, 0, __pyx_n_s_Function_set_input_names, NULL, __pyx_n_s_talib_abstract, __pyx_d, ((PyObject *)__pyx_codeobj__39)); if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 173; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_9); - if (PyObject_SetItem(__pyx_t_7, __pyx_n_s_set_input_names, __pyx_t_9) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 173; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - - /* "talib/abstract.pyx":182 - * self.__outputs_valid = False - * - * input_names = property(get_input_names, set_input_names) # <<<<<<<<<<<<<< - * - * def get_input_arrays(self): - */ - __pyx_t_9 = PyObject_GetItem(__pyx_t_7, __pyx_n_s_get_input_names); - if (unlikely(!__pyx_t_9)) { - PyErr_Clear(); - __pyx_t_9 = __Pyx_GetModuleGlobalName(__pyx_n_s_get_input_names); - } - if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 182; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_9); - __pyx_t_8 = PyObject_GetItem(__pyx_t_7, __pyx_n_s_set_input_names); - if (unlikely(!__pyx_t_8)) { - PyErr_Clear(); - __pyx_t_8 = __Pyx_GetModuleGlobalName(__pyx_n_s_set_input_names); - } - if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 182; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_8); - __pyx_t_11 = PyTuple_New(2); if (unlikely(!__pyx_t_11)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 182; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_11); - __Pyx_GIVEREF(__pyx_t_9); - PyTuple_SET_ITEM(__pyx_t_11, 0, __pyx_t_9); - __Pyx_GIVEREF(__pyx_t_8); - PyTuple_SET_ITEM(__pyx_t_11, 1, __pyx_t_8); - __pyx_t_9 = 0; - __pyx_t_8 = 0; - __pyx_t_8 = __Pyx_PyObject_Call(__pyx_builtin_property, __pyx_t_11, NULL); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 182; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_8); - __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; - if (PyObject_SetItem(__pyx_t_7, __pyx_n_s_input_names, __pyx_t_8) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 182; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - - /* "talib/abstract.pyx":184 - * input_names = property(get_input_names, set_input_names) - * - * def get_input_arrays(self): # <<<<<<<<<<<<<< - * """ - * Returns a copy of the dict of input arrays in use. - */ - __pyx_t_8 = __Pyx_CyFunction_NewEx(&__pyx_mdef_5talib_8abstract_8Function_15get_input_arrays, 0, __pyx_n_s_Function_get_input_arrays, NULL, __pyx_n_s_talib_abstract, __pyx_d, ((PyObject *)__pyx_codeobj__41)); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 184; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_8); - if (PyObject_SetItem(__pyx_t_7, __pyx_n_s_get_input_arrays, __pyx_t_8) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 184; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - - /* "talib/abstract.pyx":190 - * return self.__input_arrays.copy() - * - * def set_input_arrays(self, input_arrays): # <<<<<<<<<<<<<< - * """ - * Sets the dict of input_arrays to use. Returns True/False for - */ - __pyx_t_8 = __Pyx_CyFunction_NewEx(&__pyx_mdef_5talib_8abstract_8Function_17set_input_arrays, 0, __pyx_n_s_Function_set_input_arrays, NULL, __pyx_n_s_talib_abstract, __pyx_d, ((PyObject *)__pyx_codeobj__43)); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 190; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_8); - if (PyObject_SetItem(__pyx_t_7, __pyx_n_s_set_input_arrays, __pyx_t_8) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 190; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - - /* "talib/abstract.pyx":231 - * return False - * - * input_arrays = property(get_input_arrays, set_input_arrays) # <<<<<<<<<<<<<< - * - * def get_parameters(self): - */ - __pyx_t_8 = PyObject_GetItem(__pyx_t_7, __pyx_n_s_get_input_arrays); - if (unlikely(!__pyx_t_8)) { - PyErr_Clear(); - __pyx_t_8 = __Pyx_GetModuleGlobalName(__pyx_n_s_get_input_arrays); - } - if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 231; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_8); - __pyx_t_11 = PyObject_GetItem(__pyx_t_7, __pyx_n_s_set_input_arrays); - if (unlikely(!__pyx_t_11)) { - PyErr_Clear(); - __pyx_t_11 = __Pyx_GetModuleGlobalName(__pyx_n_s_set_input_arrays); - } - if (unlikely(!__pyx_t_11)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 231; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_11); - __pyx_t_9 = PyTuple_New(2); if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 231; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_9); - __Pyx_GIVEREF(__pyx_t_8); - PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_8); - __Pyx_GIVEREF(__pyx_t_11); - PyTuple_SET_ITEM(__pyx_t_9, 1, __pyx_t_11); - __pyx_t_8 = 0; - __pyx_t_11 = 0; - __pyx_t_11 = __Pyx_PyObject_Call(__pyx_builtin_property, __pyx_t_9, NULL); if (unlikely(!__pyx_t_11)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 231; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_11); - __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - if (PyObject_SetItem(__pyx_t_7, __pyx_n_s_input_arrays, __pyx_t_11) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 231; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; - - /* "talib/abstract.pyx":233 - * input_arrays = property(get_input_arrays, set_input_arrays) - * - * def get_parameters(self): # <<<<<<<<<<<<<< - * """ - * Returns the function's optional parameters and their default values. - */ - __pyx_t_11 = __Pyx_CyFunction_NewEx(&__pyx_mdef_5talib_8abstract_8Function_19get_parameters, 0, __pyx_n_s_Function_get_parameters, NULL, __pyx_n_s_talib_abstract, __pyx_d, ((PyObject *)__pyx_codeobj__45)); if (unlikely(!__pyx_t_11)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 233; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_11); - if (PyObject_SetItem(__pyx_t_7, __pyx_n_s_get_parameters, __pyx_t_11) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 233; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; - - /* "talib/abstract.pyx":242 - * return ret - * - * def set_parameters(self, parameters): # <<<<<<<<<<<<<< - * """ - * Sets the function parameter values. - */ - __pyx_t_11 = __Pyx_CyFunction_NewEx(&__pyx_mdef_5talib_8abstract_8Function_21set_parameters, 0, __pyx_n_s_Function_set_parameters, NULL, __pyx_n_s_talib_abstract, __pyx_d, ((PyObject *)__pyx_codeobj__47)); if (unlikely(!__pyx_t_11)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 242; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_11); - if (PyObject_SetItem(__pyx_t_7, __pyx_n_s_set_parameters, __pyx_t_11) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 242; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; - - /* "talib/abstract.pyx":251 - * self.__info['parameters'] = self.parameters - * - * parameters = property(get_parameters, set_parameters) # <<<<<<<<<<<<<< - * - * def set_function_args(self, *args, **kwargs): - */ - __pyx_t_11 = PyObject_GetItem(__pyx_t_7, __pyx_n_s_get_parameters); - if (unlikely(!__pyx_t_11)) { - PyErr_Clear(); - __pyx_t_11 = __Pyx_GetModuleGlobalName(__pyx_n_s_get_parameters); - } - if (unlikely(!__pyx_t_11)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 251; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_11); - __pyx_t_9 = PyObject_GetItem(__pyx_t_7, __pyx_n_s_set_parameters); - if (unlikely(!__pyx_t_9)) { - PyErr_Clear(); - __pyx_t_9 = __Pyx_GetModuleGlobalName(__pyx_n_s_set_parameters); - } - if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 251; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_9); - __pyx_t_8 = PyTuple_New(2); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 251; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_8); - __Pyx_GIVEREF(__pyx_t_11); - PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_11); - __Pyx_GIVEREF(__pyx_t_9); - PyTuple_SET_ITEM(__pyx_t_8, 1, __pyx_t_9); - __pyx_t_11 = 0; - __pyx_t_9 = 0; - __pyx_t_9 = __Pyx_PyObject_Call(__pyx_builtin_property, __pyx_t_8, NULL); if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 251; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_9); - __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - if (PyObject_SetItem(__pyx_t_7, __pyx_n_s_parameters, __pyx_t_9) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 251; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - - /* "talib/abstract.pyx":253 - * parameters = property(get_parameters, set_parameters) - * - * def set_function_args(self, *args, **kwargs): # <<<<<<<<<<<<<< - * """ - * optionl args:[input_arrays,] [parameter_args,] [input_price_series_kwargs,] [parameter_kwargs] - */ - __pyx_t_9 = __Pyx_CyFunction_NewEx(&__pyx_mdef_5talib_8abstract_8Function_23set_function_args, 0, __pyx_n_s_Function_set_function_args, NULL, __pyx_n_s_talib_abstract, __pyx_d, ((PyObject *)__pyx_codeobj__49)); if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 253; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_9); - if (PyObject_SetItem(__pyx_t_7, __pyx_n_s_set_function_args, __pyx_t_9) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 253; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - - /* "talib/abstract.pyx":285 - * - * @property - * def lookback(self): # <<<<<<<<<<<<<< - * """ - * Returns the lookback window size for the function with the parameter - */ - __pyx_t_9 = __Pyx_CyFunction_NewEx(&__pyx_mdef_5talib_8abstract_8Function_25lookback, 0, __pyx_n_s_Function_lookback, NULL, __pyx_n_s_talib_abstract, __pyx_d, ((PyObject *)__pyx_codeobj__51)); if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 285; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_9); - - /* "talib/abstract.pyx":284 - * self.__outputs_valid = False - * - * @property # <<<<<<<<<<<<<< - * def lookback(self): - * """ - */ - __pyx_t_8 = PyTuple_New(1); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 284; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_8); - __Pyx_GIVEREF(__pyx_t_9); - PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_9); - __pyx_t_9 = 0; - __pyx_t_9 = __Pyx_PyObject_Call(__pyx_builtin_property, __pyx_t_8, NULL); if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 284; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_9); - __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - if (PyObject_SetItem(__pyx_t_7, __pyx_n_s_lookback, __pyx_t_9) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 285; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - - /* "talib/abstract.pyx":305 - * - * @property - * def output_names(self): # <<<<<<<<<<<<<< - * """ - * Returns a list of the output names returned by this function. - */ - __pyx_t_9 = __Pyx_CyFunction_NewEx(&__pyx_mdef_5talib_8abstract_8Function_27output_names, 0, __pyx_n_s_Function_output_names, NULL, __pyx_n_s_talib_abstract, __pyx_d, ((PyObject *)__pyx_codeobj__53)); if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 305; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_9); - - /* "talib/abstract.pyx":304 - * return lookback - * - * @property # <<<<<<<<<<<<<< - * def output_names(self): - * """ - */ - __pyx_t_8 = PyTuple_New(1); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 304; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_8); - __Pyx_GIVEREF(__pyx_t_9); - PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_9); - __pyx_t_9 = 0; - __pyx_t_9 = __Pyx_PyObject_Call(__pyx_builtin_property, __pyx_t_8, NULL); if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 304; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_9); - __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - if (PyObject_SetItem(__pyx_t_7, __pyx_n_s_output_names, __pyx_t_9) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 305; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - - /* "talib/abstract.pyx":315 - * - * @property - * def outputs(self): # <<<<<<<<<<<<<< - * """ - * Returns the TA function values for the currently set input_arrays and - */ - __pyx_t_9 = __Pyx_CyFunction_NewEx(&__pyx_mdef_5talib_8abstract_8Function_29outputs, 0, __pyx_n_s_Function_outputs, NULL, __pyx_n_s_talib_abstract, __pyx_d, ((PyObject *)__pyx_codeobj__55)); if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 315; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_9); - - /* "talib/abstract.pyx":314 - * return ret - * - * @property # <<<<<<<<<<<<<< - * def outputs(self): - * """ - */ - __pyx_t_8 = PyTuple_New(1); if (unlikely(!__pyx_t_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 314; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_8); - __Pyx_GIVEREF(__pyx_t_9); - PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_9); - __pyx_t_9 = 0; - __pyx_t_9 = __Pyx_PyObject_Call(__pyx_builtin_property, __pyx_t_8, NULL); if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 314; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_9); - __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - if (PyObject_SetItem(__pyx_t_7, __pyx_n_s_outputs, __pyx_t_9) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 315; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - - /* "talib/abstract.pyx":338 - * return ret[0] if len(ret) == 1 else ret - * - * def run(self, input_arrays=None): # <<<<<<<<<<<<<< - * """ - * run([input_arrays=None]) - */ - __pyx_t_9 = __Pyx_CyFunction_NewEx(&__pyx_mdef_5talib_8abstract_8Function_31run, 0, __pyx_n_s_Function_run, NULL, __pyx_n_s_talib_abstract, __pyx_d, ((PyObject *)__pyx_codeobj__57)); if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 338; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_9); - __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_9, __pyx_tuple__58); - if (PyObject_SetItem(__pyx_t_7, __pyx_n_s_run, __pyx_t_9) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 338; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - - /* "talib/abstract.pyx":350 - * return self.outputs - * - * def __call__(self, *args, **kwargs): # <<<<<<<<<<<<<< - * """ - * func_instance([input_arrays,] [parameter_args,] [input_price_series_kwargs,] [parameter_kwargs]) - */ - __pyx_t_9 = __Pyx_CyFunction_NewEx(&__pyx_mdef_5talib_8abstract_8Function_33__call__, 0, __pyx_n_s_Function___call, NULL, __pyx_n_s_talib_abstract, __pyx_d, ((PyObject *)__pyx_codeobj__60)); if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 350; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_9); - if (PyObject_SetItem(__pyx_t_7, __pyx_n_s_call, __pyx_t_9) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 350; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - - /* "talib/abstract.pyx":362 - * - * # figure out which price series names we're using for inputs - * def __input_price_series_names(self): # <<<<<<<<<<<<<< - * input_price_series_names = [] - * for input_name in self.__input_names: - */ - __pyx_t_9 = __Pyx_CyFunction_NewEx(&__pyx_mdef_5talib_8abstract_8Function_35__input_price_series_names, 0, __pyx_n_s_Function___input_price_series_na, NULL, __pyx_n_s_talib_abstract, __pyx_d, ((PyObject *)__pyx_codeobj__62)); if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 362; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_9); - if (PyObject_SetItem(__pyx_t_7, __pyx_n_s_Function__input_price_series_na, __pyx_t_9) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 362; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - - /* "talib/abstract.pyx":373 - * return input_price_series_names - * - * def __call_function(self): # <<<<<<<<<<<<<< - * input_price_series_names = self.__input_price_series_names() - * - */ - __pyx_t_9 = __Pyx_CyFunction_NewEx(&__pyx_mdef_5talib_8abstract_8Function_37__call_function, 0, __pyx_n_s_Function___call_function, NULL, __pyx_n_s_talib_abstract, __pyx_d, ((PyObject *)__pyx_codeobj__64)); if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 373; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_9); - if (PyObject_SetItem(__pyx_t_7, __pyx_n_s_Function__call_function, __pyx_t_9) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 373; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - - /* "talib/abstract.pyx":400 - * self.__outputs_valid = True - * - * def __get_opt_input_value(self, input_name): # <<<<<<<<<<<<<< - * """ - * Returns the user-set value if there is one, otherwise the default. - */ - __pyx_t_9 = __Pyx_CyFunction_NewEx(&__pyx_mdef_5talib_8abstract_8Function_39__get_opt_input_value, 0, __pyx_n_s_Function___get_opt_input_value, NULL, __pyx_n_s_talib_abstract, __pyx_d, ((PyObject *)__pyx_codeobj__66)); if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 400; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_9); - if (PyObject_SetItem(__pyx_t_7, __pyx_n_s_Function__get_opt_input_value, __pyx_t_9) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 400; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - - /* "talib/abstract.pyx":409 - * return value - * - * def __repr__(self): # <<<<<<<<<<<<<< - * return '%s' % self.info - * - */ - __pyx_t_9 = __Pyx_CyFunction_NewEx(&__pyx_mdef_5talib_8abstract_8Function_41__repr__, 0, __pyx_n_s_Function___repr, NULL, __pyx_n_s_talib_abstract, __pyx_d, ((PyObject *)__pyx_codeobj__68)); if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 409; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_9); - if (PyObject_SetItem(__pyx_t_7, __pyx_n_s_repr, __pyx_t_9) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 409; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - - /* "talib/abstract.pyx":412 - * return '%s' % self.info - * - * def __unicode__(self): # <<<<<<<<<<<<<< - * return unicode(self.__str__()) - * - */ - __pyx_t_9 = __Pyx_CyFunction_NewEx(&__pyx_mdef_5talib_8abstract_8Function_43__unicode__, 0, __pyx_n_s_Function___unicode, NULL, __pyx_n_s_talib_abstract, __pyx_d, ((PyObject *)__pyx_codeobj__70)); if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 412; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_9); - if (PyObject_SetItem(__pyx_t_7, __pyx_n_s_unicode, __pyx_t_9) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 412; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - - /* "talib/abstract.pyx":415 - * return unicode(self.__str__()) - * - * def __str__(self): # <<<<<<<<<<<<<< - * return _get_defaults_and_docs(self.info)[1] # docstring includes defaults - * - */ - __pyx_t_9 = __Pyx_CyFunction_NewEx(&__pyx_mdef_5talib_8abstract_8Function_45__str__, 0, __pyx_n_s_Function___str, NULL, __pyx_n_s_talib_abstract, __pyx_d, ((PyObject *)__pyx_codeobj__72)); if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 415; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_9); - if (PyObject_SetItem(__pyx_t_7, __pyx_n_s_str, __pyx_t_9) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 415; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - - /* "talib/abstract.pyx":64 - * return b - * - * class Function(object): # <<<<<<<<<<<<<< - * """ - * This is a pythonic wrapper around TALIB's abstract interface. It is - */ - __pyx_t_9 = __Pyx_Py3ClassCreate(__pyx_t_1, __pyx_n_s_Function, __pyx_t_2, __pyx_t_7, NULL, 0, 1); if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 64; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_9); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_Function, __pyx_t_9) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 64; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/abstract.pyx":429 - * # therefore recommended over using these functions directly. - * - * def _ta_getGroupTable(): # <<<<<<<<<<<<<< - * """ - * Returns the list of available TALIB function group names. *slow* - */ - __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8abstract_9_ta_getGroupTable, NULL, __pyx_n_s_talib_abstract); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 429; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_ta_getGroupTable, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 429; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/abstract.pyx":441 - * return groups - * - * def _ta_getFuncTable(char *group): # <<<<<<<<<<<<<< - * """ - * Returns a list of the functions for the specified group name. *slow* - */ - __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8abstract_11_ta_getFuncTable, NULL, __pyx_n_s_talib_abstract); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 441; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_ta_getFuncTable, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 441; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/abstract.pyx":453 - * return functions - * - * def __get_flags(int flag, dict flags_lookup_dict): # <<<<<<<<<<<<<< - * """ - * TA-LIB provides hints for multiple flags as a bitwise-ORed int. - */ - __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8abstract_13__get_flags, NULL, __pyx_n_s_talib_abstract); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 453; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_get_flags, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 453; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/abstract.pyx":479 - * - * TA_FUNC_FLAGS = { - * 16777216: 'Output scale same as input', # <<<<<<<<<<<<<< - * 67108864: 'Output is over volume', - * 134217728: 'Function has an unstable period', - */ - __pyx_t_2 = PyDict_New(); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 479; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - if (PyDict_SetItem(__pyx_t_2, __pyx_int_16777216, __pyx_kp_s_Output_scale_same_as_input) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 479; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - if (PyDict_SetItem(__pyx_t_2, __pyx_int_67108864, __pyx_kp_s_Output_is_over_volume) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 479; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - if (PyDict_SetItem(__pyx_t_2, __pyx_int_134217728, __pyx_kp_s_Function_has_an_unstable_period) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 479; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - if (PyDict_SetItem(__pyx_t_2, __pyx_int_268435456, __pyx_kp_s_Output_is_a_candlestick) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 479; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - if (PyDict_SetItem(__pyx_d, __pyx_n_s_TA_FUNC_FLAGS, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 478; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/abstract.pyx":487 - * # when flag is 0, the function (should) work on any reasonable input ndarray - * TA_INPUT_FLAGS = { - * 1: 'open', # <<<<<<<<<<<<<< - * 2: 'high', - * 4: 'low', - */ - __pyx_t_2 = PyDict_New(); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 487; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - if (PyDict_SetItem(__pyx_t_2, __pyx_int_1, __pyx_n_s_open) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 487; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - if (PyDict_SetItem(__pyx_t_2, __pyx_int_2, __pyx_n_s_high) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 487; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - if (PyDict_SetItem(__pyx_t_2, __pyx_int_4, __pyx_n_s_low) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 487; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - if (PyDict_SetItem(__pyx_t_2, __pyx_int_8, __pyx_n_s_close) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 487; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - if (PyDict_SetItem(__pyx_t_2, __pyx_int_16, __pyx_n_s_volume) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 487; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - if (PyDict_SetItem(__pyx_t_2, __pyx_int_32, __pyx_n_s_openInterest) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 487; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - if (PyDict_SetItem(__pyx_t_2, __pyx_int_64, __pyx_n_s_timeStamp) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 487; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - if (PyDict_SetItem(__pyx_d, __pyx_n_s_TA_INPUT_FLAGS, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 486; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/abstract.pyx":497 - * - * TA_OUTPUT_FLAGS = { - * 1: 'Line', # <<<<<<<<<<<<<< - * 2: 'Dotted Line', - * 4: 'Dashed Line', - */ - __pyx_t_2 = PyDict_New(); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 497; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - if (PyDict_SetItem(__pyx_t_2, __pyx_int_1, __pyx_n_s_Line) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 497; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - if (PyDict_SetItem(__pyx_t_2, __pyx_int_2, __pyx_kp_s_Dotted_Line) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 497; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - if (PyDict_SetItem(__pyx_t_2, __pyx_int_4, __pyx_kp_s_Dashed_Line) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 497; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - if (PyDict_SetItem(__pyx_t_2, __pyx_int_8, __pyx_n_s_Dot) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 497; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - if (PyDict_SetItem(__pyx_t_2, __pyx_int_16, __pyx_n_s_Histogram) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 497; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - if (PyDict_SetItem(__pyx_t_2, __pyx_int_32, __pyx_kp_s_Pattern_Bool) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 497; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - if (PyDict_SetItem(__pyx_t_2, __pyx_int_64, __pyx_kp_s_Bull_Bear_Pattern_Bearish_0_Neut) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 497; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - if (PyDict_SetItem(__pyx_t_2, __pyx_int_128, __pyx_kp_s_Strength_Pattern_200_100_Bearish) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 497; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - if (PyDict_SetItem(__pyx_t_2, __pyx_int_256, __pyx_kp_s_Output_can_be_positive) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 497; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - if (PyDict_SetItem(__pyx_t_2, __pyx_int_512, __pyx_kp_s_Output_can_be_negative) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 497; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - if (PyDict_SetItem(__pyx_t_2, __pyx_int_1024, __pyx_kp_s_Output_can_be_zero) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 497; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - if (PyDict_SetItem(__pyx_t_2, __pyx_int_2048, __pyx_kp_s_Values_represent_an_upper_limit) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 497; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - if (PyDict_SetItem(__pyx_t_2, __pyx_int_4096, __pyx_kp_s_Values_represent_a_lower_limit) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 497; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - if (PyDict_SetItem(__pyx_d, __pyx_n_s_TA_OUTPUT_FLAGS, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 496; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/abstract.pyx":512 - * } - * - * def _ta_getFuncInfo(char *function_name): # <<<<<<<<<<<<<< - * """ - * Returns the info dict for the function. It has the following keys: name, - */ - __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8abstract_15_ta_getFuncInfo, NULL, __pyx_n_s_talib_abstract); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 512; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_ta_getFuncInfo, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 512; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/abstract.pyx":531 - * } - * - * def _ta_getInputParameterInfo(char *function_name, int idx): # <<<<<<<<<<<<<< - * """ - * Returns the function's input info dict for the given index. It has two - */ - __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8abstract_17_ta_getInputParameterInfo, NULL, __pyx_n_s_talib_abstract); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 531; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_ta_getInputParameterInfo, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 531; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/abstract.pyx":552 - * } - * - * def _ta_getOptInputParameterInfo(char *function_name, int idx): # <<<<<<<<<<<<<< - * """ - * Returns the function's opt_input info dict for the given index. It has the - */ - __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8abstract_19_ta_getOptInputParameterInfo, NULL, __pyx_n_s_talib_abstract); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 552; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_ta_getOptInputParameterInfo, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 552; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/abstract.pyx":576 - * } - * - * def _ta_getOutputParameterInfo(char *function_name, int idx): # <<<<<<<<<<<<<< - * """ - * Returns the function's output info dict for the given index. It has two - */ - __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8abstract_21_ta_getOutputParameterInfo, NULL, __pyx_n_s_talib_abstract); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 576; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_ta_getOutputParameterInfo, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 576; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/abstract.pyx":596 - * } - * - * def _get_defaults_and_docs(func_info): # <<<<<<<<<<<<<< - * """ - * Returns a tuple with two outputs: defaults, a dict of parameter defaults, - */ - __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8abstract_23_get_defaults_and_docs, NULL, __pyx_n_s_talib_abstract); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 596; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_get_defaults_and_docs, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 596; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/abstract.pyx":688 - * # Configure all the available TA-Lib functions to be exported as - * # an abstract function wrapper for convenient import. - * for name in __FUNCTION_NAMES: # <<<<<<<<<<<<<< - * exec "%s = Function('%s')" % (name, name) - * - */ - __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_FUNCTION_NAMES); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 688; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - if (likely(PyList_CheckExact(__pyx_t_2)) || PyTuple_CheckExact(__pyx_t_2)) { - __pyx_t_1 = __pyx_t_2; __Pyx_INCREF(__pyx_t_1); __pyx_t_12 = 0; - __pyx_t_13 = NULL; - } else { - __pyx_t_12 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_t_2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 688; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - __pyx_t_13 = Py_TYPE(__pyx_t_1)->tp_iternext; if (unlikely(!__pyx_t_13)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 688; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - } - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - for (;;) { - if (likely(!__pyx_t_13)) { - if (likely(PyList_CheckExact(__pyx_t_1))) { - if (__pyx_t_12 >= PyList_GET_SIZE(__pyx_t_1)) break; - #if CYTHON_COMPILING_IN_CPYTHON - __pyx_t_2 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_12); __Pyx_INCREF(__pyx_t_2); __pyx_t_12++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 688; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - #else - __pyx_t_2 = PySequence_ITEM(__pyx_t_1, __pyx_t_12); __pyx_t_12++; if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 688; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - #endif - } else { - if (__pyx_t_12 >= PyTuple_GET_SIZE(__pyx_t_1)) break; - #if CYTHON_COMPILING_IN_CPYTHON - __pyx_t_2 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_12); __Pyx_INCREF(__pyx_t_2); __pyx_t_12++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 688; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - #else - __pyx_t_2 = PySequence_ITEM(__pyx_t_1, __pyx_t_12); __pyx_t_12++; if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 688; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - #endif - } - } else { - __pyx_t_2 = __pyx_t_13(__pyx_t_1); - if (unlikely(!__pyx_t_2)) { - PyObject* exc_type = PyErr_Occurred(); - if (exc_type) { - if (likely(exc_type == PyExc_StopIteration || PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); - else {__pyx_filename = __pyx_f[0]; __pyx_lineno = 688; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - } - break; - } - __Pyx_GOTREF(__pyx_t_2); - } - if (PyDict_SetItem(__pyx_d, __pyx_n_s_name, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 688; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/abstract.pyx":689 - * # an abstract function wrapper for convenient import. - * for name in __FUNCTION_NAMES: - * exec "%s = Function('%s')" % (name, name) # <<<<<<<<<<<<<< - * - * __all__ = ['Function'] + list(__FUNCTION_NAMES) - */ - __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_name); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 689; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __pyx_t_7 = __Pyx_GetModuleGlobalName(__pyx_n_s_name); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 689; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_7); - __pyx_t_9 = PyTuple_New(2); if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 689; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_9); - __Pyx_GIVEREF(__pyx_t_2); - PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_2); - __Pyx_GIVEREF(__pyx_t_7); - PyTuple_SET_ITEM(__pyx_t_9, 1, __pyx_t_7); - __pyx_t_2 = 0; - __pyx_t_7 = 0; - __pyx_t_7 = __Pyx_PyString_Format(__pyx_kp_s_s_Function_s, __pyx_t_9); if (unlikely(!__pyx_t_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 689; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_7); - __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - __pyx_t_9 = __Pyx_Globals(); if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 689; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_9); - __pyx_t_2 = __Pyx_PyExec3(__pyx_t_7, __pyx_t_9, 0); - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 689; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/abstract.pyx":688 - * # Configure all the available TA-Lib functions to be exported as - * # an abstract function wrapper for convenient import. - * for name in __FUNCTION_NAMES: # <<<<<<<<<<<<<< - * exec "%s = Function('%s')" % (name, name) - * - */ - } - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - - /* "talib/abstract.pyx":691 - * exec "%s = Function('%s')" % (name, name) - * - * __all__ = ['Function'] + list(__FUNCTION_NAMES) # <<<<<<<<<<<<<< - */ - __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 691; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - __Pyx_INCREF(__pyx_n_s_Function); - __Pyx_GIVEREF(__pyx_n_s_Function); - PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_Function); - __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_FUNCTION_NAMES); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 691; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __pyx_t_9 = PySequence_List(__pyx_t_2); if (unlikely(!__pyx_t_9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 691; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_9); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __pyx_t_2 = PyNumber_Add(__pyx_t_1, __pyx_t_9); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 691; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - if (PyDict_SetItem(__pyx_d, __pyx_n_s_all, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 691; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/abstract.pyx":1 - * ''' # <<<<<<<<<<<<<< - * This file Copyright (c) 2013 Brian A Cappello - * ''' - */ - __pyx_t_2 = PyDict_New(); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_test, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 1; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 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_7); - __Pyx_XDECREF(__pyx_t_8); - __Pyx_XDECREF(__pyx_t_9); - __Pyx_XDECREF(__pyx_t_11); - if (__pyx_m) { - if (__pyx_d) { - __Pyx_AddTraceback("init talib.abstract", __pyx_clineno, __pyx_lineno, __pyx_filename); - } - Py_DECREF(__pyx_m); __pyx_m = 0; - } else if (!PyErr_Occurred()) { - PyErr_SetString(PyExc_ImportError, "init talib.abstract"); - } - __pyx_L0:; - __Pyx_RefNannyFinishContext(); - #if PY_MAJOR_VERSION < 3 - return; - #else - return __pyx_m; - #endif -} - -/* --- Runtime support code --- */ -#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 - -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; -} - -#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 - -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); -} - -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 -} - -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; -} - -#if CYTHON_COMPILING_IN_CPYTHON -static CYTHON_INLINE PyObject* __Pyx_PyObject_CallMethO(PyObject *func, PyObject *arg) { - PyObject *self, *result; - PyCFunction cfunc; - cfunc = PyCFunction_GET_FUNCTION(func); - self = PyCFunction_GET_SELF(func); - if (unlikely(Py_EnterRecursiveCall((char*)" while calling a Python object"))) - return NULL; - result = cfunc(self, arg); - Py_LeaveRecursiveCall(); - if (unlikely(!result) && unlikely(!PyErr_Occurred())) { - PyErr_SetString( - PyExc_SystemError, - "NULL result without error in PyObject_Call"); - } - return result; -} -#endif - -#if CYTHON_COMPILING_IN_CPYTHON -static PyObject* __Pyx__PyObject_CallOneArg(PyObject *func, PyObject *arg) { - PyObject *result; - PyObject *args = PyTuple_New(1); - if (unlikely(!args)) return NULL; - Py_INCREF(arg); - PyTuple_SET_ITEM(args, 0, arg); - result = __Pyx_PyObject_Call(func, args, NULL); - Py_DECREF(args); - return result; -} -static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObject *arg) { -#ifdef __Pyx_CyFunction_USED - if (likely(PyCFunction_Check(func) || PyObject_TypeCheck(func, __pyx_CyFunctionType))) { -#else - if (likely(PyCFunction_Check(func))) { -#endif - if (likely(PyCFunction_GET_FLAGS(func) & METH_O)) { - return __Pyx_PyObject_CallMethO(func, arg); - } - } - return __Pyx__PyObject_CallOneArg(func, arg); -} -#else -static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObject *arg) { - PyObject *result; - PyObject *args = PyTuple_Pack(1, arg); - if (unlikely(!args)) return NULL; - result = __Pyx_PyObject_Call(func, args, NULL); - Py_DECREF(args); - return result; -} -#endif - -#if CYTHON_COMPILING_IN_CPYTHON -static CYTHON_INLINE PyObject* __Pyx_PyObject_CallNoArg(PyObject *func) { -#ifdef __Pyx_CyFunction_USED - if (likely(PyCFunction_Check(func) || PyObject_TypeCheck(func, __pyx_CyFunctionType))) { -#else - if (likely(PyCFunction_Check(func))) { -#endif - if (likely(PyCFunction_GET_FLAGS(func) & METH_NOARGS)) { - return __Pyx_PyObject_CallMethO(func, NULL); - } - } - return __Pyx_PyObject_Call(func, __pyx_empty_tuple, NULL); -} -#endif - -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; -} - -static CYTHON_INLINE void __Pyx_ErrRestore(PyObject *type, PyObject *value, PyObject *tb) { -#if CYTHON_COMPILING_IN_CPYTHON - PyObject *tmp_type, *tmp_value, *tmp_tb; - PyThreadState *tstate = PyThreadState_GET(); - 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); -#else - PyErr_Restore(type, value, tb); -#endif -} -static CYTHON_INLINE void __Pyx_ErrFetch(PyObject **type, PyObject **value, PyObject **tb) { -#if CYTHON_COMPILING_IN_CPYTHON - PyThreadState *tstate = PyThreadState_GET(); - *type = tstate->curexc_type; - *value = tstate->curexc_value; - *tb = tstate->curexc_traceback; - tstate->curexc_type = 0; - tstate->curexc_value = 0; - tstate->curexc_traceback = 0; -#else - PyErr_Fetch(type, value, tb); -#endif -} - -#if PY_MAJOR_VERSION < 3 -static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb, - CYTHON_UNUSED PyObject *cause) { - 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_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 - -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); -} - -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"); -} - -static CYTHON_INLINE int __Pyx_IterFinish(void) { -#if CYTHON_COMPILING_IN_CPYTHON - PyThreadState *tstate = PyThreadState_GET(); - PyObject* exc_type = tstate->curexc_type; - if (unlikely(exc_type)) { - if (likely(exc_type == PyExc_StopIteration) || PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration)) { - PyObject *exc_value, *exc_tb; - exc_value = tstate->curexc_value; - exc_tb = tstate->curexc_traceback; - tstate->curexc_type = 0; - tstate->curexc_value = 0; - tstate->curexc_traceback = 0; - Py_DECREF(exc_type); - Py_XDECREF(exc_value); - Py_XDECREF(exc_tb); - return 0; - } else { - return -1; - } - } - return 0; -#else - if (unlikely(PyErr_Occurred())) { - if (likely(PyErr_ExceptionMatches(PyExc_StopIteration))) { - PyErr_Clear(); - return 0; - } else { - return -1; - } - } - return 0; -#endif -} - -static int __Pyx_IternextUnpackEndCheck(PyObject *retval, Py_ssize_t expected) { - if (unlikely(retval)) { - Py_DECREF(retval); - __Pyx_RaiseTooManyValuesError(expected); - return -1; - } else { - return __Pyx_IterFinish(); - } - return 0; -} - -#if !CYTHON_COMPILING_IN_CPYTHON -static CYTHON_INLINE PyObject* __Pyx_PyBytes_Join(PyObject* sep, PyObject* values) { - return PyObject_CallMethodObjArgs(sep, __pyx_n_s_join, values, NULL); -} -#endif - -static PyObject* __Pyx_PyObject_CallMethod0(PyObject* obj, PyObject* method_name) { - PyObject *method, *result = NULL; - method = __Pyx_PyObject_GetAttrStr(obj, method_name); - if (unlikely(!method)) goto bad; -#if CYTHON_COMPILING_IN_CPYTHON - if (likely(PyMethod_Check(method))) { - PyObject *self = PyMethod_GET_SELF(method); - if (likely(self)) { - PyObject *function = PyMethod_GET_FUNCTION(method); - result = __Pyx_PyObject_CallOneArg(function, self); - Py_DECREF(method); - return result; - } - } -#endif - result = __Pyx_PyObject_CallNoArg(method); - Py_DECREF(method); -bad: - return result; -} - -static CYTHON_INLINE void __Pyx_RaiseNoneNotIterableError(void) { - PyErr_SetString(PyExc_TypeError, "'NoneType' object is not iterable"); -} - -static void __Pyx_UnpackTupleError(PyObject *t, Py_ssize_t index) { - if (t == Py_None) { - __Pyx_RaiseNoneNotIterableError(); - } else if (PyTuple_GET_SIZE(t) < index) { - __Pyx_RaiseNeedMoreValuesError(PyTuple_GET_SIZE(t)); - } else { - __Pyx_RaiseTooManyValuesError(index); - } -} - -static CYTHON_INLINE int __Pyx_unpack_tuple2(PyObject* tuple, PyObject** pvalue1, PyObject** pvalue2, - int is_tuple, int has_known_size, int decref_tuple) { - Py_ssize_t index; - PyObject *value1 = NULL, *value2 = NULL, *iter = NULL; - if (!is_tuple && unlikely(!PyTuple_Check(tuple))) { - iternextfunc iternext; - iter = PyObject_GetIter(tuple); - if (unlikely(!iter)) goto bad; - if (decref_tuple) { Py_DECREF(tuple); tuple = NULL; } - iternext = Py_TYPE(iter)->tp_iternext; - value1 = iternext(iter); if (unlikely(!value1)) { index = 0; goto unpacking_failed; } - value2 = iternext(iter); if (unlikely(!value2)) { index = 1; goto unpacking_failed; } - if (!has_known_size && unlikely(__Pyx_IternextUnpackEndCheck(iternext(iter), 2))) goto bad; - Py_DECREF(iter); - } else { - if (!has_known_size && unlikely(PyTuple_GET_SIZE(tuple) != 2)) { - __Pyx_UnpackTupleError(tuple, 2); - goto bad; - } -#if CYTHON_COMPILING_IN_PYPY - value1 = PySequence_ITEM(tuple, 0); - if (unlikely(!value1)) goto bad; - value2 = PySequence_ITEM(tuple, 1); - if (unlikely(!value2)) goto bad; -#else - value1 = PyTuple_GET_ITEM(tuple, 0); - value2 = PyTuple_GET_ITEM(tuple, 1); - Py_INCREF(value1); - Py_INCREF(value2); -#endif - if (decref_tuple) { Py_DECREF(tuple); } - } - *pvalue1 = value1; - *pvalue2 = value2; - return 0; -unpacking_failed: - if (!has_known_size && __Pyx_IterFinish() == 0) - __Pyx_RaiseNeedMoreValuesError(index); -bad: - Py_XDECREF(iter); - Py_XDECREF(value1); - Py_XDECREF(value2); - if (decref_tuple) { Py_XDECREF(tuple); } - return -1; -} - -static CYTHON_INLINE PyObject* __Pyx_dict_iterator(PyObject* iterable, int is_dict, PyObject* method_name, - Py_ssize_t* p_orig_length, int* p_source_is_dict) { - is_dict = is_dict || likely(PyDict_CheckExact(iterable)); - *p_source_is_dict = is_dict; -#if !CYTHON_COMPILING_IN_PYPY - if (is_dict) { - *p_orig_length = PyDict_Size(iterable); - Py_INCREF(iterable); - return iterable; - } -#endif - *p_orig_length = 0; - if (method_name) { - PyObject* iter; - iterable = __Pyx_PyObject_CallMethod0(iterable, method_name); - if (!iterable) - return NULL; -#if !CYTHON_COMPILING_IN_PYPY - if (PyTuple_CheckExact(iterable) || PyList_CheckExact(iterable)) - return iterable; -#endif - iter = PyObject_GetIter(iterable); - Py_DECREF(iterable); - return iter; - } - return PyObject_GetIter(iterable); -} -static CYTHON_INLINE int __Pyx_dict_iter_next( - PyObject* iter_obj, CYTHON_NCP_UNUSED Py_ssize_t orig_length, CYTHON_NCP_UNUSED Py_ssize_t* ppos, - PyObject** pkey, PyObject** pvalue, PyObject** pitem, int source_is_dict) { - PyObject* next_item; -#if !CYTHON_COMPILING_IN_PYPY - if (source_is_dict) { - PyObject *key, *value; - if (unlikely(orig_length != PyDict_Size(iter_obj))) { - PyErr_SetString(PyExc_RuntimeError, "dictionary changed size during iteration"); - return -1; - } - if (unlikely(!PyDict_Next(iter_obj, ppos, &key, &value))) { - return 0; - } - if (pitem) { - PyObject* tuple = PyTuple_New(2); - if (unlikely(!tuple)) { - return -1; - } - Py_INCREF(key); - Py_INCREF(value); - PyTuple_SET_ITEM(tuple, 0, key); - PyTuple_SET_ITEM(tuple, 1, value); - *pitem = tuple; - } else { - if (pkey) { - Py_INCREF(key); - *pkey = key; - } - if (pvalue) { - Py_INCREF(value); - *pvalue = value; - } - } - return 1; - } else if (PyTuple_CheckExact(iter_obj)) { - Py_ssize_t pos = *ppos; - if (unlikely(pos >= PyTuple_GET_SIZE(iter_obj))) return 0; - *ppos = pos + 1; - next_item = PyTuple_GET_ITEM(iter_obj, pos); - Py_INCREF(next_item); - } else if (PyList_CheckExact(iter_obj)) { - Py_ssize_t pos = *ppos; - if (unlikely(pos >= PyList_GET_SIZE(iter_obj))) return 0; - *ppos = pos + 1; - next_item = PyList_GET_ITEM(iter_obj, pos); - Py_INCREF(next_item); - } else -#endif - { - next_item = PyIter_Next(iter_obj); - if (unlikely(!next_item)) { - return __Pyx_IterFinish(); - } - } - if (pitem) { - *pitem = next_item; - } else if (pkey && pvalue) { - if (__Pyx_unpack_tuple2(next_item, pkey, pvalue, source_is_dict, source_is_dict, 1)) - return -1; - } else if (pkey) { - *pkey = next_item; - } else { - *pvalue = next_item; - } - return 1; -} - -static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Generic(PyObject *o, PyObject* j) { - PyObject *r; - if (!j) return NULL; - r = PyObject_GetItem(o, j); - Py_DECREF(j); - return r; -} -static CYTHON_INLINE PyObject *__Pyx_GetItemInt_List_Fast(PyObject *o, Py_ssize_t i, - CYTHON_NCP_UNUSED int wraparound, - CYTHON_NCP_UNUSED int boundscheck) { -#if CYTHON_COMPILING_IN_CPYTHON - if (wraparound & unlikely(i < 0)) i += PyList_GET_SIZE(o); - if ((!boundscheck) || likely((0 <= i) & (i < PyList_GET_SIZE(o)))) { - PyObject *r = PyList_GET_ITEM(o, i); - Py_INCREF(r); - return r; - } - return __Pyx_GetItemInt_Generic(o, PyInt_FromSsize_t(i)); -#else - return PySequence_GetItem(o, i); -#endif -} -static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Tuple_Fast(PyObject *o, Py_ssize_t i, - CYTHON_NCP_UNUSED int wraparound, - CYTHON_NCP_UNUSED int boundscheck) { -#if CYTHON_COMPILING_IN_CPYTHON - if (wraparound & unlikely(i < 0)) i += PyTuple_GET_SIZE(o); - if ((!boundscheck) || likely((0 <= i) & (i < PyTuple_GET_SIZE(o)))) { - PyObject *r = PyTuple_GET_ITEM(o, i); - Py_INCREF(r); - return r; - } - return __Pyx_GetItemInt_Generic(o, PyInt_FromSsize_t(i)); -#else - return PySequence_GetItem(o, i); -#endif -} -static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Fast(PyObject *o, Py_ssize_t i, int is_list, - CYTHON_NCP_UNUSED int wraparound, - CYTHON_NCP_UNUSED int boundscheck) { -#if CYTHON_COMPILING_IN_CPYTHON - if (is_list || PyList_CheckExact(o)) { - Py_ssize_t n = ((!wraparound) | likely(i >= 0)) ? i : i + PyList_GET_SIZE(o); - if ((!boundscheck) || (likely((n >= 0) & (n < PyList_GET_SIZE(o))))) { - PyObject *r = PyList_GET_ITEM(o, n); - Py_INCREF(r); - return r; - } - } - else if (PyTuple_CheckExact(o)) { - Py_ssize_t n = ((!wraparound) | likely(i >= 0)) ? i : i + PyTuple_GET_SIZE(o); - if ((!boundscheck) || likely((n >= 0) & (n < PyTuple_GET_SIZE(o)))) { - PyObject *r = PyTuple_GET_ITEM(o, n); - Py_INCREF(r); - return r; - } - } else { - PySequenceMethods *m = Py_TYPE(o)->tp_as_sequence; - if (likely(m && m->sq_item)) { - if (wraparound && unlikely(i < 0) && likely(m->sq_length)) { - Py_ssize_t l = m->sq_length(o); - if (likely(l >= 0)) { - i += l; - } else { - if (PyErr_ExceptionMatches(PyExc_OverflowError)) - PyErr_Clear(); - else - return NULL; - } - } - return m->sq_item(o, i); - } - } -#else - if (is_list || PySequence_Check(o)) { - return PySequence_GetItem(o, i); - } -#endif - return __Pyx_GetItemInt_Generic(o, PyInt_FromSsize_t(i)); -} - -#if CYTHON_USE_PYLONG_INTERNALS - #include "longintrepr.h" -#endif - -#if CYTHON_COMPILING_IN_CPYTHON -static PyObject* __Pyx_PyInt_AddObjC(PyObject *op1, PyObject *op2, CYTHON_UNUSED long intval, CYTHON_UNUSED int inplace) { - #if PY_MAJOR_VERSION < 3 - if (likely(PyInt_CheckExact(op1))) { - const long b = intval; - long x; - long a = PyInt_AS_LONG(op1); - x = (long)((unsigned long)a + b); - if (likely((x^a) >= 0 || (x^b) >= 0)) - return PyInt_FromLong(x); - return PyLong_Type.tp_as_number->nb_add(op1, op2); - } - #endif - #if CYTHON_USE_PYLONG_INTERNALS && PY_MAJOR_VERSION >= 3 - if (likely(PyLong_CheckExact(op1))) { - const long b = intval; - long a, x; - const PY_LONG_LONG llb = intval; - PY_LONG_LONG lla, llx; - const digit* digits = ((PyLongObject*)op1)->ob_digit; - const Py_ssize_t size = Py_SIZE(op1); - if (likely(__Pyx_sst_abs(size) <= 1)) { - a = likely(size) ? digits[0] : 0; - if (size == -1) a = -a; - } else { - switch (size) { - case -2: - if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) { - a = -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); - break; - } else if (8 * sizeof(PY_LONG_LONG) - 1 > 2 * PyLong_SHIFT) { - lla = -(PY_LONG_LONG) (((((unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0])); - goto long_long; - } - case 2: - if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) { - a = (long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); - break; - } else if (8 * sizeof(PY_LONG_LONG) - 1 > 2 * PyLong_SHIFT) { - lla = (PY_LONG_LONG) (((((unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0])); - goto long_long; - } - case -3: - if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) { - a = -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); - break; - } else if (8 * sizeof(PY_LONG_LONG) - 1 > 3 * PyLong_SHIFT) { - lla = -(PY_LONG_LONG) (((((((unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0])); - goto long_long; - } - case 3: - if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) { - a = (long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); - break; - } else if (8 * sizeof(PY_LONG_LONG) - 1 > 3 * PyLong_SHIFT) { - lla = (PY_LONG_LONG) (((((((unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0])); - goto long_long; - } - case -4: - if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) { - a = -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); - break; - } else if (8 * sizeof(PY_LONG_LONG) - 1 > 4 * PyLong_SHIFT) { - lla = -(PY_LONG_LONG) (((((((((unsigned PY_LONG_LONG)digits[3]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0])); - goto long_long; - } - case 4: - if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) { - a = (long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); - break; - } else if (8 * sizeof(PY_LONG_LONG) - 1 > 4 * PyLong_SHIFT) { - lla = (PY_LONG_LONG) (((((((((unsigned PY_LONG_LONG)digits[3]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0])); - goto long_long; - } - default: return PyLong_Type.tp_as_number->nb_add(op1, op2); - } - } - x = a + b; - return PyLong_FromLong(x); - long_long: - llx = lla + llb; - return PyLong_FromLongLong(llx); - } - #endif - if (PyFloat_CheckExact(op1)) { - const long b = intval; - double a = PyFloat_AS_DOUBLE(op1); - double result; - PyFPE_START_PROTECT("add", return NULL) - result = ((double)a) + (double)b; - PyFPE_END_PROTECT(result) - return PyFloat_FromDouble(result); - } - return (inplace ? PyNumber_InPlaceAdd : PyNumber_Add)(op1, op2); -} -#endif - -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; -} - -static int __Pyx_TryUnpackUnboundCMethod(__Pyx_CachedCFunction* target) { - PyObject *method; - method = __Pyx_PyObject_GetAttrStr(target->type, *target->method_name); - if (unlikely(!method)) - return -1; - target->method = method; -#if CYTHON_COMPILING_IN_CPYTHON - #if PY_MAJOR_VERSION >= 3 - if (likely(PyObject_TypeCheck(method, &PyMethodDescr_Type))) - #endif - { - PyMethodDescrObject *descr = (PyMethodDescrObject*) method; - target->func = descr->d_method->ml_meth; - target->flag = descr->d_method->ml_flags & (METH_VARARGS | METH_KEYWORDS | METH_O | METH_NOARGS); - } -#endif - return 0; -} - -static PyObject* __Pyx__CallUnboundCMethod0(__Pyx_CachedCFunction* cfunc, PyObject* self) { - PyObject *args, *result = NULL; - if (unlikely(!cfunc->method) && unlikely(__Pyx_TryUnpackUnboundCMethod(cfunc) < 0)) return NULL; -#if CYTHON_COMPILING_IN_CPYTHON - args = PyTuple_New(1); - if (unlikely(!args)) goto bad; - Py_INCREF(self); - PyTuple_SET_ITEM(args, 0, self); -#else - args = PyTuple_Pack(1, self); - if (unlikely(!args)) goto bad; -#endif - result = __Pyx_PyObject_Call(cfunc->method, args, NULL); - Py_DECREF(args); -bad: - return result; -} - -static CYTHON_INLINE PyObject* __Pyx_PyDict_Keys(PyObject* d) { - if (PY_MAJOR_VERSION >= 3) - return __Pyx_CallUnboundCMethod0(&__pyx_umethod_PyDict_Type_keys, d); - else - return PyDict_Keys(d); -} - -#if CYTHON_USE_PYLONG_INTERNALS - #include "longintrepr.h" -#endif - -static PyObject* __Pyx__PyNumber_PowerOf2(PyObject *two, PyObject *exp, PyObject *none, int inplace) { -#if CYTHON_COMPILING_IN_CPYTHON - Py_ssize_t shiftby; -#if PY_MAJOR_VERSION < 3 - if (likely(PyInt_CheckExact(exp))) { - shiftby = PyInt_AS_LONG(exp); - } else -#endif - if (likely(PyLong_CheckExact(exp))) { - #if CYTHON_USE_PYLONG_INTERNALS - const Py_ssize_t size = Py_SIZE(exp); - if (likely(size == 1)) { - shiftby = ((PyLongObject*)exp)->ob_digit[0]; - } else if (size == 0) { - return PyInt_FromLong(1L); - } else if (unlikely(size < 0)) { - goto fallback; - } else { - shiftby = PyLong_AsSsize_t(exp); - } - #else - shiftby = PyLong_AsSsize_t(exp); - #endif - } else { - goto fallback; - } - if (likely(shiftby >= 0)) { - if ((size_t)shiftby <= sizeof(long) * 8 - 2) { - long value = 1L << shiftby; - return PyInt_FromLong(value); - } else if ((size_t)shiftby <= sizeof(unsigned PY_LONG_LONG) * 8 - 1) { - unsigned PY_LONG_LONG value = ((unsigned PY_LONG_LONG)1) << shiftby; - return PyLong_FromUnsignedLongLong(value); - } else { - PyObject *one = PyInt_FromLong(1L); - if (unlikely(!one)) return NULL; - return PyNumber_Lshift(one, exp); - } - } else if (shiftby == -1 && PyErr_Occurred()) { - PyErr_Clear(); - } -fallback: -#endif - return (inplace ? PyNumber_InPlacePower : PyNumber_Power)(two, exp, none); -} - -static CYTHON_INLINE PyObject* __Pyx_PyObject_GetSlice(PyObject* obj, - Py_ssize_t cstart, Py_ssize_t cstop, - PyObject** _py_start, PyObject** _py_stop, PyObject** _py_slice, - int has_cstart, int has_cstop, CYTHON_UNUSED int wraparound) { -#if CYTHON_COMPILING_IN_CPYTHON - PyMappingMethods* mp; -#if PY_MAJOR_VERSION < 3 - PySequenceMethods* ms = Py_TYPE(obj)->tp_as_sequence; - if (likely(ms && ms->sq_slice)) { - if (!has_cstart) { - if (_py_start && (*_py_start != Py_None)) { - cstart = __Pyx_PyIndex_AsSsize_t(*_py_start); - if ((cstart == (Py_ssize_t)-1) && PyErr_Occurred()) goto bad; - } else - cstart = 0; - } - if (!has_cstop) { - if (_py_stop && (*_py_stop != Py_None)) { - cstop = __Pyx_PyIndex_AsSsize_t(*_py_stop); - if ((cstop == (Py_ssize_t)-1) && PyErr_Occurred()) goto bad; - } else - cstop = PY_SSIZE_T_MAX; - } - if (wraparound && unlikely((cstart < 0) | (cstop < 0)) && likely(ms->sq_length)) { - Py_ssize_t l = ms->sq_length(obj); - if (likely(l >= 0)) { - if (cstop < 0) { - cstop += l; - if (cstop < 0) cstop = 0; - } - if (cstart < 0) { - cstart += l; - if (cstart < 0) cstart = 0; - } - } else { - if (PyErr_ExceptionMatches(PyExc_OverflowError)) - PyErr_Clear(); - else - goto bad; - } - } - return ms->sq_slice(obj, cstart, cstop); - } -#endif - mp = Py_TYPE(obj)->tp_as_mapping; - if (likely(mp && mp->mp_subscript)) -#endif - { - PyObject* result; - PyObject *py_slice, *py_start, *py_stop; - if (_py_slice) { - py_slice = *_py_slice; - } else { - PyObject* owned_start = NULL; - PyObject* owned_stop = NULL; - if (_py_start) { - py_start = *_py_start; - } else { - if (has_cstart) { - owned_start = py_start = PyInt_FromSsize_t(cstart); - if (unlikely(!py_start)) goto bad; - } else - py_start = Py_None; - } - if (_py_stop) { - py_stop = *_py_stop; - } else { - if (has_cstop) { - owned_stop = py_stop = PyInt_FromSsize_t(cstop); - if (unlikely(!py_stop)) { - Py_XDECREF(owned_start); - goto bad; - } - } else - py_stop = Py_None; - } - py_slice = PySlice_New(py_start, py_stop, Py_None); - Py_XDECREF(owned_start); - Py_XDECREF(owned_stop); - if (unlikely(!py_slice)) goto bad; - } -#if CYTHON_COMPILING_IN_CPYTHON - result = mp->mp_subscript(obj, py_slice); -#else - result = PyObject_GetItem(obj, py_slice); -#endif - if (!_py_slice) { - Py_DECREF(py_slice); - } - return result; - } - PyErr_Format(PyExc_TypeError, - "'%.200s' object is unsliceable", Py_TYPE(obj)->tp_name); -bad: - return NULL; -} - -#if CYTHON_COMPILING_IN_CPYTHON -static PyObject* __Pyx_PyInt_EqObjC(PyObject *op1, PyObject *op2, CYTHON_UNUSED long intval, CYTHON_UNUSED int inplace) { - if (op1 == op2) { - Py_RETURN_TRUE; - } - #if PY_MAJOR_VERSION < 3 - if (likely(PyInt_CheckExact(op1))) { - const long b = intval; - long a = PyInt_AS_LONG(op1); - if (a == b) { - Py_RETURN_TRUE; - } else { - Py_RETURN_FALSE; - } - } - #endif - #if CYTHON_USE_PYLONG_INTERNALS && PY_MAJOR_VERSION >= 3 - if (likely(PyLong_CheckExact(op1))) { - const long b = intval; - long a; - const digit* digits = ((PyLongObject*)op1)->ob_digit; - const Py_ssize_t size = Py_SIZE(op1); - if (likely(__Pyx_sst_abs(size) <= 1)) { - a = likely(size) ? digits[0] : 0; - if (size == -1) a = -a; - } else { - switch (size) { - case -2: - if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) { - a = -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); - break; - } - case 2: - if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) { - a = (long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); - break; - } - case -3: - if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) { - a = -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); - break; - } - case 3: - if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) { - a = (long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); - break; - } - case -4: - if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) { - a = -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); - break; - } - case 4: - if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) { - a = (long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); - break; - } - #if PyLong_SHIFT < 30 && PyLong_SHIFT != 15 - default: return PyLong_Type.tp_richcompare(op1, op2, Py_EQ); - #else - default: Py_RETURN_FALSE; - #endif - } - } - if (a == b) { - Py_RETURN_TRUE; - } else { - Py_RETURN_FALSE; - } - } - #endif - if (PyFloat_CheckExact(op1)) { - const long b = intval; - double a = PyFloat_AS_DOUBLE(op1); - if ((double)a == (double)b) { - Py_RETURN_TRUE; - } else { - Py_RETURN_FALSE; - } - } - return PyObject_RichCompare(op1, op2, Py_EQ); -} -#endif - -#if CYTHON_COMPILING_IN_CPYTHON -static PyObject* __Pyx_PyInt_RemainderObjC(PyObject *op1, PyObject *op2, CYTHON_UNUSED long intval, CYTHON_UNUSED int inplace) { - #if PY_MAJOR_VERSION < 3 - if (likely(PyInt_CheckExact(op1))) { - const long b = intval; - long x; - long a = PyInt_AS_LONG(op1); - x = a % b; - x += ((x != 0) & ((x ^ b) < 0)) * b; - return PyInt_FromLong(x); - } - #endif - #if CYTHON_USE_PYLONG_INTERNALS && PY_MAJOR_VERSION >= 3 - if (likely(PyLong_CheckExact(op1))) { - const long b = intval; - long a, x; - const PY_LONG_LONG llb = intval; - PY_LONG_LONG lla, llx; - const digit* digits = ((PyLongObject*)op1)->ob_digit; - const Py_ssize_t size = Py_SIZE(op1); - if (likely(__Pyx_sst_abs(size) <= 1)) { - a = likely(size) ? digits[0] : 0; - if (size == -1) a = -a; - } else { - switch (size) { - case -2: - if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) { - a = -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); - break; - } else if (8 * sizeof(PY_LONG_LONG) - 1 > 2 * PyLong_SHIFT) { - lla = -(PY_LONG_LONG) (((((unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0])); - goto long_long; - } - case 2: - if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) { - a = (long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); - break; - } else if (8 * sizeof(PY_LONG_LONG) - 1 > 2 * PyLong_SHIFT) { - lla = (PY_LONG_LONG) (((((unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0])); - goto long_long; - } - case -3: - if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) { - a = -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); - break; - } else if (8 * sizeof(PY_LONG_LONG) - 1 > 3 * PyLong_SHIFT) { - lla = -(PY_LONG_LONG) (((((((unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0])); - goto long_long; - } - case 3: - if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) { - a = (long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); - break; - } else if (8 * sizeof(PY_LONG_LONG) - 1 > 3 * PyLong_SHIFT) { - lla = (PY_LONG_LONG) (((((((unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0])); - goto long_long; - } - case -4: - if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) { - a = -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); - break; - } else if (8 * sizeof(PY_LONG_LONG) - 1 > 4 * PyLong_SHIFT) { - lla = -(PY_LONG_LONG) (((((((((unsigned PY_LONG_LONG)digits[3]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0])); - goto long_long; - } - case 4: - if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) { - a = (long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); - break; - } else if (8 * sizeof(PY_LONG_LONG) - 1 > 4 * PyLong_SHIFT) { - lla = (PY_LONG_LONG) (((((((((unsigned PY_LONG_LONG)digits[3]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0])); - goto long_long; - } - default: return PyLong_Type.tp_as_number->nb_remainder(op1, op2); - } - } - x = a % b; - x += ((x != 0) & ((x ^ b) < 0)) * b; - return PyLong_FromLong(x); - long_long: - llx = lla % llb; - llx += ((llx != 0) & ((llx ^ llb) < 0)) * llb; - return PyLong_FromLongLong(llx); - } - #endif - return (inplace ? PyNumber_InPlaceRemainder : PyNumber_Remainder)(op1, op2); -} -#endif - -static CYTHON_INLINE int __Pyx_PyBytes_Equals(PyObject* s1, PyObject* s2, int equals) { -#if CYTHON_COMPILING_IN_PYPY - return PyObject_RichCompareBool(s1, s2, equals); -#else - if (s1 == s2) { - return (equals == Py_EQ); - } else if (PyBytes_CheckExact(s1) & PyBytes_CheckExact(s2)) { - const char *ps1, *ps2; - Py_ssize_t length = PyBytes_GET_SIZE(s1); - if (length != PyBytes_GET_SIZE(s2)) - return (equals == Py_NE); - ps1 = PyBytes_AS_STRING(s1); - ps2 = PyBytes_AS_STRING(s2); - if (ps1[0] != ps2[0]) { - return (equals == Py_NE); - } else if (length == 1) { - return (equals == Py_EQ); - } else { - int result = memcmp(ps1, ps2, (size_t)length); - return (equals == Py_EQ) ? (result == 0) : (result != 0); - } - } else if ((s1 == Py_None) & PyBytes_CheckExact(s2)) { - return (equals == Py_NE); - } else if ((s2 == Py_None) & PyBytes_CheckExact(s1)) { - return (equals == Py_NE); - } else { - int result; - PyObject* py_result = PyObject_RichCompare(s1, s2, equals); - if (!py_result) - return -1; - result = __Pyx_PyObject_IsTrue(py_result); - Py_DECREF(py_result); - return result; - } -#endif -} - -static CYTHON_INLINE int __Pyx_PyUnicode_Equals(PyObject* s1, PyObject* s2, int equals) { -#if CYTHON_COMPILING_IN_PYPY - return PyObject_RichCompareBool(s1, s2, equals); -#else -#if PY_MAJOR_VERSION < 3 - PyObject* owned_ref = NULL; -#endif - int s1_is_unicode, s2_is_unicode; - if (s1 == s2) { - goto return_eq; - } - s1_is_unicode = PyUnicode_CheckExact(s1); - s2_is_unicode = PyUnicode_CheckExact(s2); -#if PY_MAJOR_VERSION < 3 - if ((s1_is_unicode & (!s2_is_unicode)) && PyString_CheckExact(s2)) { - owned_ref = PyUnicode_FromObject(s2); - if (unlikely(!owned_ref)) - return -1; - s2 = owned_ref; - s2_is_unicode = 1; - } else if ((s2_is_unicode & (!s1_is_unicode)) && PyString_CheckExact(s1)) { - owned_ref = PyUnicode_FromObject(s1); - if (unlikely(!owned_ref)) - return -1; - s1 = owned_ref; - s1_is_unicode = 1; - } else if (((!s2_is_unicode) & (!s1_is_unicode))) { - return __Pyx_PyBytes_Equals(s1, s2, equals); - } -#endif - if (s1_is_unicode & s2_is_unicode) { - Py_ssize_t length; - int kind; - void *data1, *data2; - if (unlikely(__Pyx_PyUnicode_READY(s1) < 0) || unlikely(__Pyx_PyUnicode_READY(s2) < 0)) - return -1; - length = __Pyx_PyUnicode_GET_LENGTH(s1); - if (length != __Pyx_PyUnicode_GET_LENGTH(s2)) { - goto return_ne; - } - kind = __Pyx_PyUnicode_KIND(s1); - if (kind != __Pyx_PyUnicode_KIND(s2)) { - goto return_ne; - } - data1 = __Pyx_PyUnicode_DATA(s1); - data2 = __Pyx_PyUnicode_DATA(s2); - if (__Pyx_PyUnicode_READ(kind, data1, 0) != __Pyx_PyUnicode_READ(kind, data2, 0)) { - goto return_ne; - } else if (length == 1) { - goto return_eq; - } else { - int result = memcmp(data1, data2, (size_t)(length * kind)); - #if PY_MAJOR_VERSION < 3 - Py_XDECREF(owned_ref); - #endif - return (equals == Py_EQ) ? (result == 0) : (result != 0); - } - } else if ((s1 == Py_None) & s2_is_unicode) { - goto return_ne; - } else if ((s2 == Py_None) & s1_is_unicode) { - goto return_ne; - } else { - int result; - PyObject* py_result = PyObject_RichCompare(s1, s2, equals); - if (!py_result) - return -1; - result = __Pyx_PyObject_IsTrue(py_result); - Py_DECREF(py_result); - return result; - } -return_eq: - #if PY_MAJOR_VERSION < 3 - Py_XDECREF(owned_ref); - #endif - return (equals == Py_EQ); -return_ne: - #if PY_MAJOR_VERSION < 3 - Py_XDECREF(owned_ref); - #endif - return (equals == Py_NE); -#endif -} - -static CYTHON_INLINE int __Pyx_SetItemInt_Generic(PyObject *o, PyObject *j, PyObject *v) { - int r; - if (!j) return -1; - r = PyObject_SetItem(o, j, v); - Py_DECREF(j); - return r; -} -static CYTHON_INLINE int __Pyx_SetItemInt_Fast(PyObject *o, Py_ssize_t i, PyObject *v, int is_list, - CYTHON_NCP_UNUSED int wraparound, CYTHON_NCP_UNUSED int boundscheck) { -#if CYTHON_COMPILING_IN_CPYTHON - if (is_list || PyList_CheckExact(o)) { - Py_ssize_t n = (!wraparound) ? i : ((likely(i >= 0)) ? i : i + PyList_GET_SIZE(o)); - if ((!boundscheck) || likely((n >= 0) & (n < PyList_GET_SIZE(o)))) { - PyObject* old = PyList_GET_ITEM(o, n); - Py_INCREF(v); - PyList_SET_ITEM(o, n, v); - Py_DECREF(old); - return 1; - } - } else { - PySequenceMethods *m = Py_TYPE(o)->tp_as_sequence; - if (likely(m && m->sq_ass_item)) { - if (wraparound && unlikely(i < 0) && likely(m->sq_length)) { - Py_ssize_t l = m->sq_length(o); - if (likely(l >= 0)) { - i += l; - } else { - if (PyErr_ExceptionMatches(PyExc_OverflowError)) - PyErr_Clear(); - else - return -1; - } - } - return m->sq_ass_item(o, i, v); - } - } -#else -#if CYTHON_COMPILING_IN_PYPY - if (is_list || (PySequence_Check(o) && !PyDict_Check(o))) { -#else - if (is_list || PySequence_Check(o)) { -#endif - return PySequence_SetItem(o, i, v); - } -#endif - return __Pyx_SetItemInt_Generic(o, PyInt_FromSsize_t(i), v); -} - -static void __Pyx_WriteUnraisable(const char *name, CYTHON_UNUSED int clineno, - CYTHON_UNUSED int lineno, CYTHON_UNUSED const char *filename, - int full_traceback, CYTHON_UNUSED int nogil) { - PyObject *old_exc, *old_val, *old_tb; - PyObject *ctx; -#ifdef WITH_THREAD - PyGILState_STATE state; - if (nogil) - state = PyGILState_Ensure(); -#endif - __Pyx_ErrFetch(&old_exc, &old_val, &old_tb); - if (full_traceback) { - Py_XINCREF(old_exc); - Py_XINCREF(old_val); - Py_XINCREF(old_tb); - __Pyx_ErrRestore(old_exc, old_val, old_tb); - PyErr_PrintEx(1); - } - #if PY_MAJOR_VERSION < 3 - ctx = PyString_FromString(name); - #else - ctx = PyUnicode_FromString(name); - #endif - __Pyx_ErrRestore(old_exc, old_val, old_tb); - if (!ctx) { - PyErr_WriteUnraisable(Py_None); - } else { - PyErr_WriteUnraisable(ctx); - Py_DECREF(ctx); - } -#ifdef WITH_THREAD - if (nogil) - PyGILState_Release(state); -#endif -} - -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; -} - -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; -} - -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; -} - -static CYTHON_INLINE void __Pyx_ExceptionSave(PyObject **type, PyObject **value, PyObject **tb) { -#if CYTHON_COMPILING_IN_CPYTHON - PyThreadState *tstate = PyThreadState_GET(); - *type = tstate->exc_type; - *value = tstate->exc_value; - *tb = tstate->exc_traceback; - Py_XINCREF(*type); - Py_XINCREF(*value); - Py_XINCREF(*tb); -#else - PyErr_GetExcInfo(type, value, tb); -#endif -} -static void __Pyx_ExceptionReset(PyObject *type, PyObject *value, PyObject *tb) { -#if CYTHON_COMPILING_IN_CPYTHON - PyObject *tmp_type, *tmp_value, *tmp_tb; - PyThreadState *tstate = PyThreadState_GET(); - tmp_type = tstate->exc_type; - tmp_value = tstate->exc_value; - tmp_tb = tstate->exc_traceback; - tstate->exc_type = type; - tstate->exc_value = value; - tstate->exc_traceback = tb; - Py_XDECREF(tmp_type); - Py_XDECREF(tmp_value); - Py_XDECREF(tmp_tb); -#else - PyErr_SetExcInfo(type, value, tb); -#endif -} - -static int __Pyx_GetException(PyObject **type, PyObject **value, PyObject **tb) { - PyObject *local_type, *local_value, *local_tb; -#if CYTHON_COMPILING_IN_CPYTHON - PyObject *tmp_type, *tmp_value, *tmp_tb; - PyThreadState *tstate = PyThreadState_GET(); - local_type = tstate->curexc_type; - local_value = tstate->curexc_value; - local_tb = tstate->curexc_traceback; - tstate->curexc_type = 0; - tstate->curexc_value = 0; - tstate->curexc_traceback = 0; -#else - PyErr_Fetch(&local_type, &local_value, &local_tb); -#endif - PyErr_NormalizeException(&local_type, &local_value, &local_tb); -#if CYTHON_COMPILING_IN_CPYTHON - if (unlikely(tstate->curexc_type)) -#else - if (unlikely(PyErr_Occurred())) -#endif - goto bad; - #if PY_MAJOR_VERSION >= 3 - if (local_tb) { - if (unlikely(PyException_SetTraceback(local_value, local_tb) < 0)) - goto bad; - } - #endif - Py_XINCREF(local_tb); - Py_XINCREF(local_type); - Py_XINCREF(local_value); - *type = local_type; - *value = local_value; - *tb = local_tb; -#if CYTHON_COMPILING_IN_CPYTHON - tmp_type = tstate->exc_type; - tmp_value = tstate->exc_value; - tmp_tb = tstate->exc_traceback; - tstate->exc_type = local_type; - tstate->exc_value = local_value; - tstate->exc_traceback = local_tb; - Py_XDECREF(tmp_type); - Py_XDECREF(tmp_value); - Py_XDECREF(tmp_tb); -#else - PyErr_SetExcInfo(local_type, local_value, local_tb); -#endif - return 0; -bad: - *type = 0; - *value = 0; - *tb = 0; - Py_XDECREF(local_type); - Py_XDECREF(local_value); - Py_XDECREF(local_tb); - return -1; -} - -static PyObject *__Pyx_CalculateMetaclass(PyTypeObject *metaclass, PyObject *bases) { - Py_ssize_t i, nbases = PyTuple_GET_SIZE(bases); - for (i=0; i < nbases; i++) { - PyTypeObject *tmptype; - PyObject *tmp = PyTuple_GET_ITEM(bases, i); - tmptype = Py_TYPE(tmp); -#if PY_MAJOR_VERSION < 3 - if (tmptype == &PyClass_Type) - continue; -#endif - if (!metaclass) { - metaclass = tmptype; - continue; - } - if (PyType_IsSubtype(metaclass, tmptype)) - continue; - if (PyType_IsSubtype(tmptype, metaclass)) { - metaclass = tmptype; - continue; - } - PyErr_SetString(PyExc_TypeError, - "metaclass conflict: " - "the metaclass of a derived class " - "must be a (non-strict) subclass " - "of the metaclasses of all its bases"); - return NULL; - } - if (!metaclass) { -#if PY_MAJOR_VERSION < 3 - metaclass = &PyClass_Type; -#else - metaclass = &PyType_Type; -#endif - } - Py_INCREF((PyObject*) metaclass); - return (PyObject*) metaclass; -} - -static PyTypeObject* __Pyx_FetchCommonType(PyTypeObject* type) { - PyObject* fake_module; - PyTypeObject* cached_type = NULL; - fake_module = PyImport_AddModule((char*) "_cython_" CYTHON_ABI); - if (!fake_module) return NULL; - Py_INCREF(fake_module); - cached_type = (PyTypeObject*) PyObject_GetAttrString(fake_module, type->tp_name); - if (cached_type) { - if (!PyType_Check((PyObject*)cached_type)) { - PyErr_Format(PyExc_TypeError, - "Shared Cython type %.200s is not a type object", - type->tp_name); - goto bad; - } - if (cached_type->tp_basicsize != type->tp_basicsize) { - PyErr_Format(PyExc_TypeError, - "Shared Cython type %.200s has the wrong size, try recompiling", - type->tp_name); - goto bad; - } - } else { - if (!PyErr_ExceptionMatches(PyExc_AttributeError)) goto bad; - PyErr_Clear(); - if (PyType_Ready(type) < 0) goto bad; - if (PyObject_SetAttrString(fake_module, type->tp_name, (PyObject*) type) < 0) - goto bad; - Py_INCREF(type); - cached_type = type; - } -done: - Py_DECREF(fake_module); - return cached_type; -bad: - Py_XDECREF(cached_type); - cached_type = NULL; - goto done; -} - -static PyObject * -__Pyx_CyFunction_get_doc(__pyx_CyFunctionObject *op, CYTHON_UNUSED void *closure) -{ - if (unlikely(op->func_doc == NULL)) { - if (op->func.m_ml->ml_doc) { -#if PY_MAJOR_VERSION >= 3 - op->func_doc = PyUnicode_FromString(op->func.m_ml->ml_doc); -#else - op->func_doc = PyString_FromString(op->func.m_ml->ml_doc); -#endif - if (unlikely(op->func_doc == NULL)) - return NULL; - } else { - Py_INCREF(Py_None); - return Py_None; - } - } - Py_INCREF(op->func_doc); - return op->func_doc; -} -static int -__Pyx_CyFunction_set_doc(__pyx_CyFunctionObject *op, PyObject *value) -{ - PyObject *tmp = op->func_doc; - if (value == NULL) { - value = Py_None; - } - Py_INCREF(value); - op->func_doc = value; - Py_XDECREF(tmp); - return 0; -} -static PyObject * -__Pyx_CyFunction_get_name(__pyx_CyFunctionObject *op) -{ - if (unlikely(op->func_name == NULL)) { -#if PY_MAJOR_VERSION >= 3 - op->func_name = PyUnicode_InternFromString(op->func.m_ml->ml_name); -#else - op->func_name = PyString_InternFromString(op->func.m_ml->ml_name); -#endif - if (unlikely(op->func_name == NULL)) - return NULL; - } - Py_INCREF(op->func_name); - return op->func_name; -} -static int -__Pyx_CyFunction_set_name(__pyx_CyFunctionObject *op, PyObject *value) -{ - PyObject *tmp; -#if PY_MAJOR_VERSION >= 3 - if (unlikely(value == NULL || !PyUnicode_Check(value))) { -#else - if (unlikely(value == NULL || !PyString_Check(value))) { -#endif - PyErr_SetString(PyExc_TypeError, - "__name__ must be set to a string object"); - return -1; - } - tmp = op->func_name; - Py_INCREF(value); - op->func_name = value; - Py_XDECREF(tmp); - return 0; -} -static PyObject * -__Pyx_CyFunction_get_qualname(__pyx_CyFunctionObject *op) -{ - Py_INCREF(op->func_qualname); - return op->func_qualname; -} -static int -__Pyx_CyFunction_set_qualname(__pyx_CyFunctionObject *op, PyObject *value) -{ - PyObject *tmp; -#if PY_MAJOR_VERSION >= 3 - if (unlikely(value == NULL || !PyUnicode_Check(value))) { -#else - if (unlikely(value == NULL || !PyString_Check(value))) { -#endif - PyErr_SetString(PyExc_TypeError, - "__qualname__ must be set to a string object"); - return -1; - } - tmp = op->func_qualname; - Py_INCREF(value); - op->func_qualname = value; - Py_XDECREF(tmp); - return 0; -} -static PyObject * -__Pyx_CyFunction_get_self(__pyx_CyFunctionObject *m, CYTHON_UNUSED void *closure) -{ - PyObject *self; - self = m->func_closure; - if (self == NULL) - self = Py_None; - Py_INCREF(self); - return self; -} -static PyObject * -__Pyx_CyFunction_get_dict(__pyx_CyFunctionObject *op) -{ - if (unlikely(op->func_dict == NULL)) { - op->func_dict = PyDict_New(); - if (unlikely(op->func_dict == NULL)) - return NULL; - } - Py_INCREF(op->func_dict); - return op->func_dict; -} -static int -__Pyx_CyFunction_set_dict(__pyx_CyFunctionObject *op, PyObject *value) -{ - PyObject *tmp; - if (unlikely(value == NULL)) { - PyErr_SetString(PyExc_TypeError, - "function's dictionary may not be deleted"); - return -1; - } - if (unlikely(!PyDict_Check(value))) { - PyErr_SetString(PyExc_TypeError, - "setting function's dictionary to a non-dict"); - return -1; - } - tmp = op->func_dict; - Py_INCREF(value); - op->func_dict = value; - Py_XDECREF(tmp); - return 0; -} -static PyObject * -__Pyx_CyFunction_get_globals(__pyx_CyFunctionObject *op) -{ - Py_INCREF(op->func_globals); - return op->func_globals; -} -static PyObject * -__Pyx_CyFunction_get_closure(CYTHON_UNUSED __pyx_CyFunctionObject *op) -{ - Py_INCREF(Py_None); - return Py_None; -} -static PyObject * -__Pyx_CyFunction_get_code(__pyx_CyFunctionObject *op) -{ - PyObject* result = (op->func_code) ? op->func_code : Py_None; - Py_INCREF(result); - return result; -} -static int -__Pyx_CyFunction_init_defaults(__pyx_CyFunctionObject *op) { - int result = 0; - PyObject *res = op->defaults_getter((PyObject *) op); - if (unlikely(!res)) - return -1; - #if CYTHON_COMPILING_IN_CPYTHON - op->defaults_tuple = PyTuple_GET_ITEM(res, 0); - Py_INCREF(op->defaults_tuple); - op->defaults_kwdict = PyTuple_GET_ITEM(res, 1); - Py_INCREF(op->defaults_kwdict); - #else - op->defaults_tuple = PySequence_ITEM(res, 0); - if (unlikely(!op->defaults_tuple)) result = -1; - else { - op->defaults_kwdict = PySequence_ITEM(res, 1); - if (unlikely(!op->defaults_kwdict)) result = -1; - } - #endif - Py_DECREF(res); - return result; -} -static int -__Pyx_CyFunction_set_defaults(__pyx_CyFunctionObject *op, PyObject* value) { - PyObject* tmp; - if (!value) { - value = Py_None; - } else if (value != Py_None && !PyTuple_Check(value)) { - PyErr_SetString(PyExc_TypeError, - "__defaults__ must be set to a tuple object"); - return -1; - } - Py_INCREF(value); - tmp = op->defaults_tuple; - op->defaults_tuple = value; - Py_XDECREF(tmp); - return 0; -} -static PyObject * -__Pyx_CyFunction_get_defaults(__pyx_CyFunctionObject *op) { - PyObject* result = op->defaults_tuple; - if (unlikely(!result)) { - if (op->defaults_getter) { - if (__Pyx_CyFunction_init_defaults(op) < 0) return NULL; - result = op->defaults_tuple; - } else { - result = Py_None; - } - } - Py_INCREF(result); - return result; -} -static int -__Pyx_CyFunction_set_kwdefaults(__pyx_CyFunctionObject *op, PyObject* value) { - PyObject* tmp; - if (!value) { - value = Py_None; - } else if (value != Py_None && !PyDict_Check(value)) { - PyErr_SetString(PyExc_TypeError, - "__kwdefaults__ must be set to a dict object"); - return -1; - } - Py_INCREF(value); - tmp = op->defaults_kwdict; - op->defaults_kwdict = value; - Py_XDECREF(tmp); - return 0; -} -static PyObject * -__Pyx_CyFunction_get_kwdefaults(__pyx_CyFunctionObject *op) { - PyObject* result = op->defaults_kwdict; - if (unlikely(!result)) { - if (op->defaults_getter) { - if (__Pyx_CyFunction_init_defaults(op) < 0) return NULL; - result = op->defaults_kwdict; - } else { - result = Py_None; - } - } - Py_INCREF(result); - return result; -} -static int -__Pyx_CyFunction_set_annotations(__pyx_CyFunctionObject *op, PyObject* value) { - PyObject* tmp; - if (!value || value == Py_None) { - value = NULL; - } else if (!PyDict_Check(value)) { - PyErr_SetString(PyExc_TypeError, - "__annotations__ must be set to a dict object"); - return -1; - } - Py_XINCREF(value); - tmp = op->func_annotations; - op->func_annotations = value; - Py_XDECREF(tmp); - return 0; -} -static PyObject * -__Pyx_CyFunction_get_annotations(__pyx_CyFunctionObject *op) { - PyObject* result = op->func_annotations; - if (unlikely(!result)) { - result = PyDict_New(); - if (unlikely(!result)) return NULL; - op->func_annotations = result; - } - Py_INCREF(result); - return result; -} -static PyGetSetDef __pyx_CyFunction_getsets[] = { - {(char *) "func_doc", (getter)__Pyx_CyFunction_get_doc, (setter)__Pyx_CyFunction_set_doc, 0, 0}, - {(char *) "__doc__", (getter)__Pyx_CyFunction_get_doc, (setter)__Pyx_CyFunction_set_doc, 0, 0}, - {(char *) "func_name", (getter)__Pyx_CyFunction_get_name, (setter)__Pyx_CyFunction_set_name, 0, 0}, - {(char *) "__name__", (getter)__Pyx_CyFunction_get_name, (setter)__Pyx_CyFunction_set_name, 0, 0}, - {(char *) "__qualname__", (getter)__Pyx_CyFunction_get_qualname, (setter)__Pyx_CyFunction_set_qualname, 0, 0}, - {(char *) "__self__", (getter)__Pyx_CyFunction_get_self, 0, 0, 0}, - {(char *) "func_dict", (getter)__Pyx_CyFunction_get_dict, (setter)__Pyx_CyFunction_set_dict, 0, 0}, - {(char *) "__dict__", (getter)__Pyx_CyFunction_get_dict, (setter)__Pyx_CyFunction_set_dict, 0, 0}, - {(char *) "func_globals", (getter)__Pyx_CyFunction_get_globals, 0, 0, 0}, - {(char *) "__globals__", (getter)__Pyx_CyFunction_get_globals, 0, 0, 0}, - {(char *) "func_closure", (getter)__Pyx_CyFunction_get_closure, 0, 0, 0}, - {(char *) "__closure__", (getter)__Pyx_CyFunction_get_closure, 0, 0, 0}, - {(char *) "func_code", (getter)__Pyx_CyFunction_get_code, 0, 0, 0}, - {(char *) "__code__", (getter)__Pyx_CyFunction_get_code, 0, 0, 0}, - {(char *) "func_defaults", (getter)__Pyx_CyFunction_get_defaults, (setter)__Pyx_CyFunction_set_defaults, 0, 0}, - {(char *) "__defaults__", (getter)__Pyx_CyFunction_get_defaults, (setter)__Pyx_CyFunction_set_defaults, 0, 0}, - {(char *) "__kwdefaults__", (getter)__Pyx_CyFunction_get_kwdefaults, (setter)__Pyx_CyFunction_set_kwdefaults, 0, 0}, - {(char *) "__annotations__", (getter)__Pyx_CyFunction_get_annotations, (setter)__Pyx_CyFunction_set_annotations, 0, 0}, - {0, 0, 0, 0, 0} -}; -static PyMemberDef __pyx_CyFunction_members[] = { - {(char *) "__module__", T_OBJECT, offsetof(__pyx_CyFunctionObject, func.m_module), PY_WRITE_RESTRICTED, 0}, - {0, 0, 0, 0, 0} -}; -static PyObject * -__Pyx_CyFunction_reduce(__pyx_CyFunctionObject *m, CYTHON_UNUSED PyObject *args) -{ -#if PY_MAJOR_VERSION >= 3 - return PyUnicode_FromString(m->func.m_ml->ml_name); -#else - return PyString_FromString(m->func.m_ml->ml_name); -#endif -} -static PyMethodDef __pyx_CyFunction_methods[] = { - {"__reduce__", (PyCFunction)__Pyx_CyFunction_reduce, METH_VARARGS, 0}, - {0, 0, 0, 0} -}; -#if PY_VERSION_HEX < 0x030500A0 -#define __Pyx_CyFunction_weakreflist(cyfunc) ((cyfunc)->func_weakreflist) -#else -#define __Pyx_CyFunction_weakreflist(cyfunc) ((cyfunc)->func.m_weakreflist) -#endif -static PyObject *__Pyx_CyFunction_New(PyTypeObject *type, PyMethodDef *ml, int flags, PyObject* qualname, - PyObject *closure, PyObject *module, PyObject* globals, PyObject* code) { - __pyx_CyFunctionObject *op = PyObject_GC_New(__pyx_CyFunctionObject, type); - if (op == NULL) - return NULL; - op->flags = flags; - __Pyx_CyFunction_weakreflist(op) = NULL; - op->func.m_ml = ml; - op->func.m_self = (PyObject *) op; - Py_XINCREF(closure); - op->func_closure = closure; - Py_XINCREF(module); - op->func.m_module = module; - op->func_dict = NULL; - op->func_name = NULL; - Py_INCREF(qualname); - op->func_qualname = qualname; - op->func_doc = NULL; - op->func_classobj = NULL; - op->func_globals = globals; - Py_INCREF(op->func_globals); - Py_XINCREF(code); - op->func_code = code; - op->defaults_pyobjects = 0; - op->defaults = NULL; - op->defaults_tuple = NULL; - op->defaults_kwdict = NULL; - op->defaults_getter = NULL; - op->func_annotations = NULL; - PyObject_GC_Track(op); - return (PyObject *) op; -} -static int -__Pyx_CyFunction_clear(__pyx_CyFunctionObject *m) -{ - Py_CLEAR(m->func_closure); - Py_CLEAR(m->func.m_module); - Py_CLEAR(m->func_dict); - Py_CLEAR(m->func_name); - Py_CLEAR(m->func_qualname); - Py_CLEAR(m->func_doc); - Py_CLEAR(m->func_globals); - Py_CLEAR(m->func_code); - Py_CLEAR(m->func_classobj); - Py_CLEAR(m->defaults_tuple); - Py_CLEAR(m->defaults_kwdict); - Py_CLEAR(m->func_annotations); - if (m->defaults) { - PyObject **pydefaults = __Pyx_CyFunction_Defaults(PyObject *, m); - int i; - for (i = 0; i < m->defaults_pyobjects; i++) - Py_XDECREF(pydefaults[i]); - PyMem_Free(m->defaults); - m->defaults = NULL; - } - return 0; -} -static void __Pyx_CyFunction_dealloc(__pyx_CyFunctionObject *m) -{ - PyObject_GC_UnTrack(m); - if (__Pyx_CyFunction_weakreflist(m) != NULL) - PyObject_ClearWeakRefs((PyObject *) m); - __Pyx_CyFunction_clear(m); - PyObject_GC_Del(m); -} -static int __Pyx_CyFunction_traverse(__pyx_CyFunctionObject *m, visitproc visit, void *arg) -{ - Py_VISIT(m->func_closure); - Py_VISIT(m->func.m_module); - Py_VISIT(m->func_dict); - Py_VISIT(m->func_name); - Py_VISIT(m->func_qualname); - Py_VISIT(m->func_doc); - Py_VISIT(m->func_globals); - Py_VISIT(m->func_code); - Py_VISIT(m->func_classobj); - Py_VISIT(m->defaults_tuple); - Py_VISIT(m->defaults_kwdict); - if (m->defaults) { - PyObject **pydefaults = __Pyx_CyFunction_Defaults(PyObject *, m); - int i; - for (i = 0; i < m->defaults_pyobjects; i++) - Py_VISIT(pydefaults[i]); - } - return 0; -} -static PyObject *__Pyx_CyFunction_descr_get(PyObject *func, PyObject *obj, PyObject *type) -{ - __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func; - if (m->flags & __Pyx_CYFUNCTION_STATICMETHOD) { - Py_INCREF(func); - return func; - } - if (m->flags & __Pyx_CYFUNCTION_CLASSMETHOD) { - if (type == NULL) - type = (PyObject *)(Py_TYPE(obj)); - return __Pyx_PyMethod_New(func, type, (PyObject *)(Py_TYPE(type))); - } - if (obj == Py_None) - obj = NULL; - return __Pyx_PyMethod_New(func, obj, type); -} -static PyObject* -__Pyx_CyFunction_repr(__pyx_CyFunctionObject *op) -{ -#if PY_MAJOR_VERSION >= 3 - return PyUnicode_FromFormat("", - op->func_qualname, (void *)op); -#else - return PyString_FromFormat("", - PyString_AsString(op->func_qualname), (void *)op); -#endif -} -#if CYTHON_COMPILING_IN_PYPY -static PyObject * __Pyx_CyFunction_Call(PyObject *func, PyObject *arg, PyObject *kw) { - PyCFunctionObject* f = (PyCFunctionObject*)func; - PyCFunction meth = f->m_ml->ml_meth; - PyObject *self = f->m_self; - Py_ssize_t size; - switch (f->m_ml->ml_flags & (METH_VARARGS | METH_KEYWORDS | METH_NOARGS | METH_O)) { - case METH_VARARGS: - if (likely(kw == NULL || PyDict_Size(kw) == 0)) - return (*meth)(self, arg); - break; - case METH_VARARGS | METH_KEYWORDS: - return (*(PyCFunctionWithKeywords)meth)(self, arg, kw); - case METH_NOARGS: - if (likely(kw == NULL || PyDict_Size(kw) == 0)) { - size = PyTuple_GET_SIZE(arg); - if (likely(size == 0)) - return (*meth)(self, NULL); - PyErr_Format(PyExc_TypeError, - "%.200s() takes no arguments (%" CYTHON_FORMAT_SSIZE_T "d given)", - f->m_ml->ml_name, size); - return NULL; - } - break; - case METH_O: - if (likely(kw == NULL || PyDict_Size(kw) == 0)) { - size = PyTuple_GET_SIZE(arg); - if (likely(size == 1)) { - PyObject *result, *arg0 = PySequence_ITEM(arg, 0); - if (unlikely(!arg0)) return NULL; - result = (*meth)(self, arg0); - Py_DECREF(arg0); - return result; - } - PyErr_Format(PyExc_TypeError, - "%.200s() takes exactly one argument (%" CYTHON_FORMAT_SSIZE_T "d given)", - f->m_ml->ml_name, size); - return NULL; - } - break; - default: - PyErr_SetString(PyExc_SystemError, "Bad call flags in " - "__Pyx_CyFunction_Call. METH_OLDARGS is no " - "longer supported!"); - return NULL; - } - PyErr_Format(PyExc_TypeError, "%.200s() takes no keyword arguments", - f->m_ml->ml_name); - return NULL; -} -#else -static PyObject * __Pyx_CyFunction_Call(PyObject *func, PyObject *arg, PyObject *kw) { - return PyCFunction_Call(func, arg, kw); -} -#endif -static PyTypeObject __pyx_CyFunctionType_type = { - PyVarObject_HEAD_INIT(0, 0) - "cython_function_or_method", - sizeof(__pyx_CyFunctionObject), - 0, - (destructor) __Pyx_CyFunction_dealloc, - 0, - 0, - 0, -#if PY_MAJOR_VERSION < 3 - 0, -#else - 0, -#endif - (reprfunc) __Pyx_CyFunction_repr, - 0, - 0, - 0, - 0, - __Pyx_CyFunction_Call, - 0, - 0, - 0, - 0, - Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC, - 0, - (traverseproc) __Pyx_CyFunction_traverse, - (inquiry) __Pyx_CyFunction_clear, - 0, -#if PY_VERSION_HEX < 0x030500A0 - offsetof(__pyx_CyFunctionObject, func_weakreflist), -#else - offsetof(PyCFunctionObject, m_weakreflist), -#endif - 0, - 0, - __pyx_CyFunction_methods, - __pyx_CyFunction_members, - __pyx_CyFunction_getsets, - 0, - 0, - __Pyx_CyFunction_descr_get, - 0, - offsetof(__pyx_CyFunctionObject, func_dict), - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, -#if PY_VERSION_HEX >= 0x030400a1 - 0, -#endif -}; -static int __pyx_CyFunction_init(void) { -#if !CYTHON_COMPILING_IN_PYPY - __pyx_CyFunctionType_type.tp_call = PyCFunction_Call; -#endif - __pyx_CyFunctionType = __Pyx_FetchCommonType(&__pyx_CyFunctionType_type); - if (__pyx_CyFunctionType == NULL) { - return -1; - } - return 0; -} -static CYTHON_INLINE void *__Pyx_CyFunction_InitDefaults(PyObject *func, size_t size, int pyobjects) { - __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func; - m->defaults = PyMem_Malloc(size); - if (!m->defaults) - return PyErr_NoMemory(); - memset(m->defaults, 0, size); - m->defaults_pyobjects = pyobjects; - return m->defaults; -} -static CYTHON_INLINE void __Pyx_CyFunction_SetDefaultsTuple(PyObject *func, PyObject *tuple) { - __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func; - m->defaults_tuple = tuple; - Py_INCREF(tuple); -} -static CYTHON_INLINE void __Pyx_CyFunction_SetDefaultsKwDict(PyObject *func, PyObject *dict) { - __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func; - m->defaults_kwdict = dict; - Py_INCREF(dict); -} -static CYTHON_INLINE void __Pyx_CyFunction_SetAnnotationsDict(PyObject *func, PyObject *dict) { - __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func; - m->func_annotations = dict; - Py_INCREF(dict); -} - -static PyObject *__Pyx_Py3MetaclassPrepare(PyObject *metaclass, PyObject *bases, PyObject *name, - PyObject *qualname, PyObject *mkw, PyObject *modname, PyObject *doc) { - PyObject *ns; - if (metaclass) { - PyObject *prep = __Pyx_PyObject_GetAttrStr(metaclass, __pyx_n_s_prepare); - if (prep) { - PyObject *pargs = PyTuple_Pack(2, name, bases); - if (unlikely(!pargs)) { - Py_DECREF(prep); - return NULL; - } - ns = PyObject_Call(prep, pargs, mkw); - Py_DECREF(prep); - Py_DECREF(pargs); - } else { - if (unlikely(!PyErr_ExceptionMatches(PyExc_AttributeError))) - return NULL; - PyErr_Clear(); - ns = PyDict_New(); - } - } else { - ns = PyDict_New(); - } - if (unlikely(!ns)) - return NULL; - if (unlikely(PyObject_SetItem(ns, __pyx_n_s_module, modname) < 0)) goto bad; - if (unlikely(PyObject_SetItem(ns, __pyx_n_s_qualname, qualname) < 0)) goto bad; - if (unlikely(doc && PyObject_SetItem(ns, __pyx_n_s_doc, doc) < 0)) goto bad; - return ns; -bad: - Py_DECREF(ns); - return NULL; -} -static PyObject *__Pyx_Py3ClassCreate(PyObject *metaclass, PyObject *name, PyObject *bases, - PyObject *dict, PyObject *mkw, - int calculate_metaclass, int allow_py2_metaclass) { - PyObject *result, *margs; - PyObject *owned_metaclass = NULL; - if (allow_py2_metaclass) { - owned_metaclass = PyObject_GetItem(dict, __pyx_n_s_metaclass); - if (owned_metaclass) { - metaclass = owned_metaclass; - } else if (likely(PyErr_ExceptionMatches(PyExc_KeyError))) { - PyErr_Clear(); - } else { - return NULL; - } - } - if (calculate_metaclass && (!metaclass || PyType_Check(metaclass))) { - metaclass = __Pyx_CalculateMetaclass((PyTypeObject*) metaclass, bases); - Py_XDECREF(owned_metaclass); - if (unlikely(!metaclass)) - return NULL; - owned_metaclass = metaclass; - } - margs = PyTuple_Pack(3, name, bases, dict); - if (unlikely(!margs)) { - result = NULL; - } else { - result = PyObject_Call(metaclass, margs, mkw); - Py_DECREF(margs); - } - Py_XDECREF(owned_metaclass); - return result; -} - -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); -} - -#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); -} - -#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;\ - } - -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) 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_Int(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_Int(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; -} - -static CYTHON_INLINE PyObject *__Pyx_GetAttr(PyObject *o, PyObject *n) { -#if CYTHON_COMPILING_IN_CPYTHON -#if PY_MAJOR_VERSION >= 3 - if (likely(PyUnicode_Check(n))) -#else - if (likely(PyString_Check(n))) -#endif - return __Pyx_PyObject_GetAttrStr(o, n); -#endif - return PyObject_GetAttr(o, n); -} - -static PyObject* __Pyx_Globals(void) { - Py_ssize_t i; - PyObject *names; - PyObject *globals = __pyx_d; - Py_INCREF(globals); - names = PyObject_Dir(__pyx_m); - if (!names) - goto bad; - for (i = PyList_GET_SIZE(names)-1; i >= 0; i--) { -#if CYTHON_COMPILING_IN_PYPY - PyObject* name = PySequence_ITEM(names, i); - if (!name) - goto bad; -#else - PyObject* name = PyList_GET_ITEM(names, i); -#endif - if (!PyDict_Contains(globals, name)) { - PyObject* value = __Pyx_GetAttr(__pyx_m, name); - if (!value) { -#if CYTHON_COMPILING_IN_PYPY - Py_DECREF(name); -#endif - goto bad; - } - if (PyDict_SetItem(globals, name, value) < 0) { -#if CYTHON_COMPILING_IN_PYPY - Py_DECREF(name); -#endif - Py_DECREF(value); - goto bad; - } - } -#if CYTHON_COMPILING_IN_PYPY - Py_DECREF(name); -#endif - } - Py_DECREF(names); - return globals; -bad: - Py_XDECREF(names); - Py_XDECREF(globals); - return NULL; -} - -static CYTHON_INLINE PyObject* __Pyx_PyExec2(PyObject* o, PyObject* globals) { - return __Pyx_PyExec3(o, globals, NULL); -} -static PyObject* __Pyx_PyExec3(PyObject* o, PyObject* globals, PyObject* locals) { - PyObject* result; - PyObject* s = 0; - char *code = 0; - if (!globals || globals == Py_None) { - globals = __pyx_d; - } else if (!PyDict_Check(globals)) { - PyErr_Format(PyExc_TypeError, "exec() arg 2 must be a dict, not %.200s", - Py_TYPE(globals)->tp_name); - goto bad; - } - if (!locals || locals == Py_None) { - locals = globals; - } - if (PyDict_GetItem(globals, __pyx_n_s_builtins) == NULL) { - if (PyDict_SetItem(globals, __pyx_n_s_builtins, PyEval_GetBuiltins()) < 0) - goto bad; - } - if (PyCode_Check(o)) { - if (PyCode_GetNumFree((PyCodeObject *)o) > 0) { - PyErr_SetString(PyExc_TypeError, - "code object passed to exec() may not contain free variables"); - goto bad; - } - #if CYTHON_COMPILING_IN_PYPY || PY_VERSION_HEX < 0x030200B1 - result = PyEval_EvalCode((PyCodeObject *)o, globals, locals); - #else - result = PyEval_EvalCode(o, globals, locals); - #endif - } else { - PyCompilerFlags cf; - cf.cf_flags = 0; - if (PyUnicode_Check(o)) { - cf.cf_flags = PyCF_SOURCE_IS_UTF8; - s = PyUnicode_AsUTF8String(o); - if (!s) goto bad; - o = s; - #if PY_MAJOR_VERSION >= 3 - } else if (!PyBytes_Check(o)) { - #else - } else if (!PyString_Check(o)) { - #endif - PyErr_Format(PyExc_TypeError, - "exec: arg 1 must be string, bytes or code object, got %.200s", - Py_TYPE(o)->tp_name); - goto bad; - } - #if PY_MAJOR_VERSION >= 3 - code = PyBytes_AS_STRING(o); - #else - code = PyString_AS_STRING(o); - #endif - if (PyEval_MergeCompilerFlags(&cf)) { - result = PyRun_StringFlags(code, Py_file_input, globals, locals, &cf); - } else { - result = PyRun_String(code, Py_file_input, globals, locals); - } - Py_XDECREF(s); - } - return result; -bad: - Py_XDECREF(s); - return 0; -} - -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); - } -} - -static CYTHON_INLINE PyObject* __Pyx_PyInt_From_TA_OptInputParameterType(TA_OptInputParameterType value) { - const TA_OptInputParameterType neg_one = (TA_OptInputParameterType) -1, const_zero = (TA_OptInputParameterType) 0; - const int is_unsigned = neg_one > const_zero; - if (is_unsigned) { - if (sizeof(TA_OptInputParameterType) < sizeof(long)) { - return PyInt_FromLong((long) value); - } else if (sizeof(TA_OptInputParameterType) <= sizeof(unsigned long)) { - return PyLong_FromUnsignedLong((unsigned long) value); - } else if (sizeof(TA_OptInputParameterType) <= sizeof(unsigned PY_LONG_LONG)) { - return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value); - } - } else { - if (sizeof(TA_OptInputParameterType) <= sizeof(long)) { - return PyInt_FromLong((long) value); - } else if (sizeof(TA_OptInputParameterType) <= 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(TA_OptInputParameterType), - little, !is_unsigned); - } -} - -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); - } -} - -static CYTHON_INLINE PyObject* __Pyx_PyInt_From_TA_RetCode(TA_RetCode value) { - const TA_RetCode neg_one = (TA_RetCode) -1, const_zero = (TA_RetCode) 0; - const int is_unsigned = neg_one > const_zero; - if (is_unsigned) { - if (sizeof(TA_RetCode) < sizeof(long)) { - return PyInt_FromLong((long) value); - } else if (sizeof(TA_RetCode) <= sizeof(unsigned long)) { - return PyLong_FromUnsignedLong((unsigned long) value); - } else if (sizeof(TA_RetCode) <= sizeof(unsigned PY_LONG_LONG)) { - return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value); - } - } else { - if (sizeof(TA_RetCode) <= sizeof(long)) { - return PyInt_FromLong((long) value); - } else if (sizeof(TA_RetCode) <= 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(TA_RetCode), - little, !is_unsigned); - } -} - -static CYTHON_INLINE PyObject* __Pyx_PyInt_From_unsigned_int(unsigned int value) { - const unsigned int neg_one = (unsigned int) -1, const_zero = (unsigned int) 0; - const int is_unsigned = neg_one > const_zero; - if (is_unsigned) { - if (sizeof(unsigned int) < sizeof(long)) { - return PyInt_FromLong((long) value); - } else if (sizeof(unsigned int) <= sizeof(unsigned long)) { - return PyLong_FromUnsignedLong((unsigned long) value); - } else if (sizeof(unsigned int) <= sizeof(unsigned PY_LONG_LONG)) { - return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value); - } - } else { - if (sizeof(unsigned int) <= sizeof(long)) { - return PyInt_FromLong((long) value); - } else if (sizeof(unsigned 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(unsigned int), - little, !is_unsigned); - } -} - -static CYTHON_INLINE unsigned int __Pyx_PyInt_As_unsigned_int(PyObject *x) { - const unsigned int neg_one = (unsigned int) -1, const_zero = (unsigned int) 0; - const int is_unsigned = neg_one > const_zero; -#if PY_MAJOR_VERSION < 3 - if (likely(PyInt_Check(x))) { - if (sizeof(unsigned int) < sizeof(long)) { - __PYX_VERIFY_RETURN_INT(unsigned int, long, PyInt_AS_LONG(x)) - } else { - long val = PyInt_AS_LONG(x); - if (is_unsigned && unlikely(val < 0)) { - goto raise_neg_overflow; - } - return (unsigned 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 (unsigned int) 0; - case 1: __PYX_VERIFY_RETURN_INT(unsigned int, digit, digits[0]) - case 2: - if (8 * sizeof(unsigned int) > 1 * PyLong_SHIFT) { - if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { - __PYX_VERIFY_RETURN_INT(unsigned int, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) - } else if (8 * sizeof(unsigned int) >= 2 * PyLong_SHIFT) { - return (unsigned int) (((((unsigned int)digits[1]) << PyLong_SHIFT) | (unsigned int)digits[0])); - } - } - break; - case 3: - if (8 * sizeof(unsigned int) > 2 * PyLong_SHIFT) { - if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { - __PYX_VERIFY_RETURN_INT(unsigned int, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) - } else if (8 * sizeof(unsigned int) >= 3 * PyLong_SHIFT) { - return (unsigned int) (((((((unsigned int)digits[2]) << PyLong_SHIFT) | (unsigned int)digits[1]) << PyLong_SHIFT) | (unsigned int)digits[0])); - } - } - break; - case 4: - if (8 * sizeof(unsigned int) > 3 * PyLong_SHIFT) { - if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { - __PYX_VERIFY_RETURN_INT(unsigned 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(unsigned int) >= 4 * PyLong_SHIFT) { - return (unsigned int) (((((((((unsigned int)digits[3]) << PyLong_SHIFT) | (unsigned int)digits[2]) << PyLong_SHIFT) | (unsigned int)digits[1]) << PyLong_SHIFT) | (unsigned 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 (unsigned int) -1; - if (unlikely(result == 1)) - goto raise_neg_overflow; - } -#endif - if (sizeof(unsigned int) <= sizeof(unsigned long)) { - __PYX_VERIFY_RETURN_INT_EXC(unsigned int, unsigned long, PyLong_AsUnsignedLong(x)) - } else if (sizeof(unsigned int) <= sizeof(unsigned PY_LONG_LONG)) { - __PYX_VERIFY_RETURN_INT_EXC(unsigned 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 (unsigned int) 0; - case -1: __PYX_VERIFY_RETURN_INT(unsigned int, sdigit, -(sdigit) digits[0]) - case 1: __PYX_VERIFY_RETURN_INT(unsigned int, digit, +digits[0]) - case -2: - if (8 * sizeof(unsigned int) - 1 > 1 * PyLong_SHIFT) { - if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { - __PYX_VERIFY_RETURN_INT(unsigned int, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) - } else if (8 * sizeof(unsigned int) - 1 > 2 * PyLong_SHIFT) { - return (unsigned int) (((unsigned int)-1)*(((((unsigned int)digits[1]) << PyLong_SHIFT) | (unsigned int)digits[0]))); - } - } - break; - case 2: - if (8 * sizeof(unsigned int) > 1 * PyLong_SHIFT) { - if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { - __PYX_VERIFY_RETURN_INT(unsigned int, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) - } else if (8 * sizeof(unsigned int) - 1 > 2 * PyLong_SHIFT) { - return (unsigned int) ((((((unsigned int)digits[1]) << PyLong_SHIFT) | (unsigned int)digits[0]))); - } - } - break; - case -3: - if (8 * sizeof(unsigned int) - 1 > 2 * PyLong_SHIFT) { - if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { - __PYX_VERIFY_RETURN_INT(unsigned int, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) - } else if (8 * sizeof(unsigned int) - 1 > 3 * PyLong_SHIFT) { - return (unsigned int) (((unsigned int)-1)*(((((((unsigned int)digits[2]) << PyLong_SHIFT) | (unsigned int)digits[1]) << PyLong_SHIFT) | (unsigned int)digits[0]))); - } - } - break; - case 3: - if (8 * sizeof(unsigned int) > 2 * PyLong_SHIFT) { - if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { - __PYX_VERIFY_RETURN_INT(unsigned int, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) - } else if (8 * sizeof(unsigned int) - 1 > 3 * PyLong_SHIFT) { - return (unsigned int) ((((((((unsigned int)digits[2]) << PyLong_SHIFT) | (unsigned int)digits[1]) << PyLong_SHIFT) | (unsigned int)digits[0]))); - } - } - break; - case -4: - if (8 * sizeof(unsigned int) - 1 > 3 * PyLong_SHIFT) { - if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { - __PYX_VERIFY_RETURN_INT(unsigned 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(unsigned int) - 1 > 4 * PyLong_SHIFT) { - return (unsigned int) (((unsigned int)-1)*(((((((((unsigned int)digits[3]) << PyLong_SHIFT) | (unsigned int)digits[2]) << PyLong_SHIFT) | (unsigned int)digits[1]) << PyLong_SHIFT) | (unsigned int)digits[0]))); - } - } - break; - case 4: - if (8 * sizeof(unsigned int) > 3 * PyLong_SHIFT) { - if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { - __PYX_VERIFY_RETURN_INT(unsigned 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(unsigned int) - 1 > 4 * PyLong_SHIFT) { - return (unsigned int) ((((((((((unsigned int)digits[3]) << PyLong_SHIFT) | (unsigned int)digits[2]) << PyLong_SHIFT) | (unsigned int)digits[1]) << PyLong_SHIFT) | (unsigned int)digits[0]))); - } - } - break; - } -#endif - if (sizeof(unsigned int) <= sizeof(long)) { - __PYX_VERIFY_RETURN_INT_EXC(unsigned int, long, PyLong_AsLong(x)) - } else if (sizeof(unsigned int) <= sizeof(PY_LONG_LONG)) { - __PYX_VERIFY_RETURN_INT_EXC(unsigned 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 - unsigned int val; - PyObject *v = __Pyx_PyNumber_Int(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 (unsigned int) -1; - } - } else { - unsigned int val; - PyObject *tmp = __Pyx_PyNumber_Int(x); - if (!tmp) return (unsigned int) -1; - val = __Pyx_PyInt_As_unsigned_int(tmp); - Py_DECREF(tmp); - return val; - } -raise_overflow: - PyErr_SetString(PyExc_OverflowError, - "value too large to convert to unsigned int"); - return (unsigned int) -1; -raise_neg_overflow: - PyErr_SetString(PyExc_OverflowError, - "can't convert negative value to unsigned int"); - return (unsigned int) -1; -} - -static CYTHON_INLINE PyObject* __Pyx_PyInt_From_TA_FuncFlags(TA_FuncFlags value) { - const TA_FuncFlags neg_one = (TA_FuncFlags) -1, const_zero = (TA_FuncFlags) 0; - const int is_unsigned = neg_one > const_zero; - if (is_unsigned) { - if (sizeof(TA_FuncFlags) < sizeof(long)) { - return PyInt_FromLong((long) value); - } else if (sizeof(TA_FuncFlags) <= sizeof(unsigned long)) { - return PyLong_FromUnsignedLong((unsigned long) value); - } else if (sizeof(TA_FuncFlags) <= sizeof(unsigned PY_LONG_LONG)) { - return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value); - } - } else { - if (sizeof(TA_FuncFlags) <= sizeof(long)) { - return PyInt_FromLong((long) value); - } else if (sizeof(TA_FuncFlags) <= 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(TA_FuncFlags), - little, !is_unsigned); - } -} - -static CYTHON_INLINE PyObject* __Pyx_PyInt_From_TA_InputFlags(TA_InputFlags value) { - const TA_InputFlags neg_one = (TA_InputFlags) -1, const_zero = (TA_InputFlags) 0; - const int is_unsigned = neg_one > const_zero; - if (is_unsigned) { - if (sizeof(TA_InputFlags) < sizeof(long)) { - return PyInt_FromLong((long) value); - } else if (sizeof(TA_InputFlags) <= sizeof(unsigned long)) { - return PyLong_FromUnsignedLong((unsigned long) value); - } else if (sizeof(TA_InputFlags) <= sizeof(unsigned PY_LONG_LONG)) { - return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value); - } - } else { - if (sizeof(TA_InputFlags) <= sizeof(long)) { - return PyInt_FromLong((long) value); - } else if (sizeof(TA_InputFlags) <= 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(TA_InputFlags), - little, !is_unsigned); - } -} - -static CYTHON_INLINE PyObject* __Pyx_PyInt_From_TA_OutputFlags(TA_OutputFlags value) { - const TA_OutputFlags neg_one = (TA_OutputFlags) -1, const_zero = (TA_OutputFlags) 0; - const int is_unsigned = neg_one > const_zero; - if (is_unsigned) { - if (sizeof(TA_OutputFlags) < sizeof(long)) { - return PyInt_FromLong((long) value); - } else if (sizeof(TA_OutputFlags) <= sizeof(unsigned long)) { - return PyLong_FromUnsignedLong((unsigned long) value); - } else if (sizeof(TA_OutputFlags) <= sizeof(unsigned PY_LONG_LONG)) { - return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value); - } - } else { - if (sizeof(TA_OutputFlags) <= sizeof(long)) { - return PyInt_FromLong((long) value); - } else if (sizeof(TA_OutputFlags) <= 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(TA_OutputFlags), - little, !is_unsigned); - } -} - -#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 - -#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 - -#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 - -#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 - -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); - } -} - -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) 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_Int(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_Int(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; -} - -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; -} - -#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 - -#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", - module_name, class_name); - 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", - module_name, class_name); - goto bad; - } - return (PyTypeObject *)result; -bad: - Py_XDECREF(py_module); - Py_XDECREF(result); - return NULL; -} -#endif - -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_Int(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 */ diff --git a/talib/common.c b/talib/common.c deleted file mode 100644 index 1194a6467..000000000 --- a/talib/common.c +++ /dev/null @@ -1,5519 +0,0 @@ -/* Generated by Cython 0.23.4 */ - -#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_23_4" -#include -#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_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) -#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])) -#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 -#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 - #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 -#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 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__common -#define __PYX_HAVE_API__talib__common -#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 -#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; 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 - #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_Int(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 && __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 int __pyx_lineno; -static int __pyx_clineno = 0; -static const char * __pyx_cfilenm= __FILE__; -static const char *__pyx_filename; - - -static const char *__pyx_f[] = { - "talib/common.pyx", -}; - -/*--- Type declarations ---*/ - -/* --- Runtime support code (head) --- */ -#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) - -#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 - -static PyObject *__Pyx_GetBuiltinName(PyObject *name); - -#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 - -#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 - -static CYTHON_INLINE void __Pyx_ErrRestore(PyObject *type, PyObject *value, PyObject *tb); -static CYTHON_INLINE void __Pyx_ErrFetch(PyObject **type, PyObject **value, PyObject **tb); - -static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb, PyObject *cause); - -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); - -static void __Pyx_RaiseDoubleKeywordsError(const char* func_name, PyObject* kw_name); - -static int __Pyx_ParseOptionalKeywords(PyObject *kwds, PyObject **argnames[],\ - PyObject *kwds2, PyObject *values[], Py_ssize_t num_pos_args,\ - const char* function_name); - -static CYTHON_INLINE int __Pyx_ArgTypeTest(PyObject *obj, PyTypeObject *type, int none_allowed, - const char *name, int exact); - -static CYTHON_INLINE PyObject *__Pyx_GetModuleGlobalName(PyObject *name); - -#if CYTHON_COMPILING_IN_CPYTHON -#define __Pyx_PyObject_DelAttrStr(o,n) __Pyx_PyObject_SetAttrStr(o,n,NULL) -static CYTHON_INLINE int __Pyx_PyObject_SetAttrStr(PyObject* obj, PyObject* attr_name, PyObject* value) { - PyTypeObject* tp = Py_TYPE(obj); - if (likely(tp->tp_setattro)) - return tp->tp_setattro(obj, attr_name, value); -#if PY_MAJOR_VERSION < 3 - if (likely(tp->tp_setattr)) - return tp->tp_setattr(obj, PyString_AS_STRING(attr_name), value); -#endif - return PyObject_SetAttr(obj, attr_name, value); -} -#else -#define __Pyx_PyObject_DelAttrStr(o,n) PyObject_DelAttr(o,n) -#define __Pyx_PyObject_SetAttrStr(o,n,v) PyObject_SetAttr(o,n,v) -#endif - -static PyObject *__Pyx_CalculateMetaclass(PyTypeObject *metaclass, PyObject *bases); - -static CYTHON_INLINE void __Pyx_RaiseTooManyValuesError(Py_ssize_t expected); - -static CYTHON_INLINE void __Pyx_RaiseNeedMoreValuesError(Py_ssize_t index); - -static CYTHON_INLINE int __Pyx_IterFinish(void); - -static int __Pyx_IternextUnpackEndCheck(PyObject *retval, Py_ssize_t expected); - -static PyTypeObject* __Pyx_FetchCommonType(PyTypeObject* type); - -#define __Pyx_CyFunction_USED 1 -#include -#define __Pyx_CYFUNCTION_STATICMETHOD 0x01 -#define __Pyx_CYFUNCTION_CLASSMETHOD 0x02 -#define __Pyx_CYFUNCTION_CCLASS 0x04 -#define __Pyx_CyFunction_GetClosure(f)\ - (((__pyx_CyFunctionObject *) (f))->func_closure) -#define __Pyx_CyFunction_GetClassObj(f)\ - (((__pyx_CyFunctionObject *) (f))->func_classobj) -#define __Pyx_CyFunction_Defaults(type, f)\ - ((type *)(((__pyx_CyFunctionObject *) (f))->defaults)) -#define __Pyx_CyFunction_SetDefaultsGetter(f, g)\ - ((__pyx_CyFunctionObject *) (f))->defaults_getter = (g) -typedef struct { - PyCFunctionObject func; -#if PY_VERSION_HEX < 0x030500A0 - PyObject *func_weakreflist; -#endif - PyObject *func_dict; - PyObject *func_name; - PyObject *func_qualname; - PyObject *func_doc; - PyObject *func_globals; - PyObject *func_code; - PyObject *func_closure; - PyObject *func_classobj; - void *defaults; - int defaults_pyobjects; - int flags; - PyObject *defaults_tuple; - PyObject *defaults_kwdict; - PyObject *(*defaults_getter)(PyObject *); - PyObject *func_annotations; -} __pyx_CyFunctionObject; -static PyTypeObject *__pyx_CyFunctionType = 0; -#define __Pyx_CyFunction_NewEx(ml, flags, qualname, self, module, globals, code)\ - __Pyx_CyFunction_New(__pyx_CyFunctionType, ml, flags, qualname, self, module, globals, code) -static PyObject *__Pyx_CyFunction_New(PyTypeObject *, PyMethodDef *ml, - int flags, PyObject* qualname, - PyObject *self, - PyObject *module, PyObject *globals, - PyObject* code); -static CYTHON_INLINE void *__Pyx_CyFunction_InitDefaults(PyObject *m, - size_t size, - int pyobjects); -static CYTHON_INLINE void __Pyx_CyFunction_SetDefaultsTuple(PyObject *m, - PyObject *tuple); -static CYTHON_INLINE void __Pyx_CyFunction_SetDefaultsKwDict(PyObject *m, - PyObject *dict); -static CYTHON_INLINE void __Pyx_CyFunction_SetAnnotationsDict(PyObject *m, - PyObject *dict); -static int __pyx_CyFunction_init(void); - -static PyObject *__Pyx_Py3MetaclassPrepare(PyObject *metaclass, PyObject *bases, PyObject *name, PyObject *qualname, - PyObject *mkw, PyObject *modname, PyObject *doc); -static PyObject *__Pyx_Py3ClassCreate(PyObject *metaclass, PyObject *name, PyObject *bases, PyObject *dict, - PyObject *mkw, int calculate_metaclass, int allow_py2_metaclass); - -#if CYTHON_COMPILING_IN_CPYTHON -static CYTHON_INLINE PyObject* __Pyx_PyObject_CallMethO(PyObject *func, PyObject *arg); -#endif - -static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObject *arg); - -#if CYTHON_COMPILING_IN_CPYTHON -static CYTHON_INLINE PyObject* __Pyx_PyObject_CallNoArg(PyObject *func); -#else -#define __Pyx_PyObject_CallNoArg(func) __Pyx_PyObject_Call(func, __pyx_empty_tuple, NULL) -#endif - -#if CYTHON_COMPILING_IN_CPYTHON -static PyObject* __Pyx_PyInt_AddObjC(PyObject *op1, PyObject *op2, long intval, int inplace); -#else -#define __Pyx_PyInt_AddObjC(op1, op2, intval, inplace)\ - (inplace ? PyNumber_InPlaceAdd(op1, op2) : PyNumber_Add(op1, op2)) -#endif - -typedef struct { - int code_line; - PyCodeObject* code_object; -} __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); - -static void __Pyx_AddTraceback(const char *funcname, int c_line, - int py_line, const char *filename); - -static CYTHON_INLINE TA_RetCode __Pyx_PyInt_As_TA_RetCode(PyObject *); - -static CYTHON_INLINE PyObject* __Pyx_PyInt_From_TA_RetCode(TA_RetCode value); - -static CYTHON_INLINE TA_FuncUnstId __Pyx_PyInt_As_TA_FuncUnstId(PyObject *); - -static CYTHON_INLINE unsigned int __Pyx_PyInt_As_unsigned_int(PyObject *); - -static CYTHON_INLINE PyObject* __Pyx_PyInt_From_unsigned_int(unsigned int value); - -static CYTHON_INLINE PyObject* __Pyx_PyInt_From_long(long value); - -static CYTHON_INLINE long __Pyx_PyInt_As_long(PyObject *); - -static CYTHON_INLINE int __Pyx_PyInt_As_int(PyObject *); - -static int __Pyx_check_binary_version(void); - -static int __Pyx_ExportFunction(const char *name, void (*f)(void), const char *sig); - -static int __Pyx_InitStrings(__Pyx_StringTabEntry *t); - - -/* 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*/ -#define __Pyx_MODULE_NAME "talib.common" -int __pyx_module_is_main_talib__common = 0; - -/* Implementation of 'talib.common' */ -static PyObject *__pyx_builtin_object; -static PyObject *__pyx_builtin_range; -static PyObject *__pyx_builtin_enumerate; -static PyObject *__pyx_builtin_Exception; -static char __pyx_k_i[] = "i"; -static char __pyx_k_DX[] = "DX"; -static char __pyx_k_T3[] = "T3"; -static char __pyx_k_id[] = "id"; -static char __pyx_k_ADX[] = "ADX"; -static char __pyx_k_ALL[] = "ALL"; -static char __pyx_k_ATR[] = "ATR"; -static char __pyx_k_CMO[] = "CMO"; -static char __pyx_k_EMA[] = "EMA"; -static char __pyx_k_MFI[] = "MFI"; -static char __pyx_k_RSI[] = "RSI"; -static char __pyx_k_SMA[] = "SMA"; -static char __pyx_k_WMA[] = "WMA"; -static char __pyx_k_doc[] = "__doc__"; -static char __pyx_k_ADXR[] = "ADXR"; -static char __pyx_k_DEMA[] = "DEMA"; -static char __pyx_k_KAMA[] = "KAMA"; -static char __pyx_k_MAMA[] = "MAMA"; -static char __pyx_k_NATR[] = "NATR"; -static char __pyx_k_NONE[] = "NONE"; -static char __pyx_k_TEMA[] = "TEMA"; -static char __pyx_k_init[] = "__init__"; -static char __pyx_k_main[] = "__main__"; -static char __pyx_k_name[] = "name"; -static char __pyx_k_self[] = "self"; -static char __pyx_k_test[] = "__test__"; -static char __pyx_k_type[] = "type_"; -static char __pyx_k_TRIMA[] = "TRIMA"; -static char __pyx_k_range[] = "range"; -static char __pyx_k_lookup[] = "_lookup"; -static char __pyx_k_module[] = "__module__"; -static char __pyx_k_object[] = "object"; -static char __pyx_k_period[] = "period"; -static char __pyx_k_HT_SINE[] = "HT_SINE"; -static char __pyx_k_MA_Type[] = "MA_Type"; -static char __pyx_k_PLUS_DI[] = "PLUS_DI"; -static char __pyx_k_PLUS_DM[] = "PLUS_DM"; -static char __pyx_k_Success[] = "Success"; -static char __pyx_k_getitem[] = "__getitem__"; -static char __pyx_k_prepare[] = "__prepare__"; -static char __pyx_k_MINUS_DI[] = "MINUS_DI"; -static char __pyx_k_MINUS_DM[] = "MINUS_DM"; -static char __pyx_k_STOCHRSI[] = "STOCHRSI"; -static char __pyx_k_qualname[] = "__qualname__"; -static char __pyx_k_ret_code[] = "ret_code"; -static char __pyx_k_Exception[] = "Exception"; -static char __pyx_k_HT_PHASOR[] = "HT_PHASOR"; -static char __pyx_k_enumerate[] = "enumerate"; -static char __pyx_k_metaclass[] = "__metaclass__"; -static char __pyx_k_HT_DCPHASE[] = "HT_DCPHASE"; -static char __pyx_k_ta_version[] = "__ta_version__"; -static char __pyx_k_HT_DCPERIOD[] = "HT_DCPERIOD"; -static char __pyx_k_TA_Shutdown[] = "TA_Shutdown"; -static char __pyx_k_ta_shutdown[] = "_ta_shutdown"; -static char __pyx_k_HT_TRENDLINE[] = "HT_TRENDLINE"; -static char __pyx_k_HT_TRENDMODE[] = "HT_TRENDMODE"; -static char __pyx_k_talib_common[] = "talib.common"; -static char __pyx_k_TA_Initialize[] = "TA_Initialize"; -static char __pyx_k_function_name[] = "function_name"; -static char __pyx_k_ta_initialize[] = "_ta_initialize"; -static char __pyx_k_MA_Type___init[] = "MA_Type.__init__"; -static char __pyx_k_ta_func_unst_ids[] = "_ta_func_unst_ids"; -static char __pyx_k_MA_Type___getitem[] = "MA_Type.__getitem__"; -static char __pyx_k_TA_SetUnstablePeriod[] = "TA_SetUnstablePeriod"; -static char __pyx_k_Simple_Moving_Average[] = "Simple Moving Average"; -static char __pyx_k_ta_get_unstable_period[] = "_ta_get_unstable_period"; -static char __pyx_k_ta_set_unstable_period[] = "_ta_set_unstable_period"; -static char __pyx_k_Weighted_Moving_Average[] = "Weighted Moving Average"; -static char __pyx_k_Bad_Object_TA_BAD_OBJECT[] = "Bad Object (TA_BAD_OBJECT)"; -static char __pyx_k_Triangular_Moving_Average[] = "Triangular Moving Average"; -static char __pyx_k_Bad_Parameter_TA_BAD_PARAM[] = "Bad Parameter (TA_BAD_PARAM)"; -static char __pyx_k_Exponential_Moving_Average[] = "Exponential Moving Average"; -static char __pyx_k_MESA_Adaptive_Moving_Average[] = "MESA Adaptive Moving Average"; -static char __pyx_k_Unknown_Error_TA_UNKNOWN_ERR[] = "Unknown Error (TA_UNKNOWN_ERR)"; -static char __pyx_k_Allocation_Error_TA_ALLOC_ERR[] = "Allocation Error (TA_ALLOC_ERR)"; -static char __pyx_k_Not_Supported_TA_NOT_SUPPORTED[] = "Not Supported (TA_NOT_SUPPORTED)"; -static char __pyx_k_Kaufman_Adaptive_Moving_Average[] = "Kaufman Adaptive Moving Average"; -static char __pyx_k_Out_of_Range_Start_Index_TA_OUT[] = "Out-of-Range Start Index (TA_OUT_OF_RANGE_START_INDEX)"; -static char __pyx_k_Users_jbenedik_Dev_ta_lib_talib[] = "/Users/jbenedik/Dev/ta-lib/talib/common.pyx"; -static char __pyx_k_s_function_failed_with_error_co[] = "%s function failed with error code %s: %s"; -static char __pyx_k_Double_Exponential_Moving_Averag[] = "Double Exponential Moving Average"; -static char __pyx_k_Function_Not_Found_TA_FUNC_NOT_F[] = "Function Not Found (TA_FUNC_NOT_FOUND)"; -static char __pyx_k_Group_Not_Found_TA_GROUP_NOT_FOU[] = "Group Not Found (TA_GROUP_NOT_FOUND)"; -static char __pyx_k_Input_Not_All_Initialized_TA_INP[] = "Input Not All Initialized (TA_INPUT_NOT_ALL_INITIALIZE)"; -static char __pyx_k_Internal_Error_TA_INTERNAL_ERROR[] = "Internal Error (TA_INTERNAL_ERROR)"; -static char __pyx_k_Invalid_Handle_TA_INVALID_HANDLE[] = "Invalid Handle (TA_INVALID_HANDLE)"; -static char __pyx_k_Invalid_List_Type_TA_INVALID_LIS[] = "Invalid List Type (TA_INVALID_LIST_TYPE)"; -static char __pyx_k_Invalid_Parameter_Function_TA_IN[] = "Invalid Parameter Function (TA_INVALID_PARAM_FUNCTION)"; -static char __pyx_k_Invalid_Parameter_Holder_TA_INVA[] = "Invalid Parameter Holder (TA_INVALID_PARAM_HOLDER)"; -static char __pyx_k_Invalid_Parameter_Holder_Type_TA[] = "Invalid Parameter Holder Type (TA_INVALID_PARAM_HOLDER_TYPE)"; -static char __pyx_k_Library_Not_Initialized_TA_LIB_N[] = "Library Not Initialized (TA_LIB_NOT_INITIALIZE)"; -static char __pyx_k_Out_of_Range_End_Index_TA_OUT_OF[] = "Out-of-Range End Index (TA_OUT_OF_RANGE_END_INDEX)"; -static char __pyx_k_Output_Not_All_Initialized_TA_OU[] = "Output Not All Initialized (TA_OUTPUT_NOT_ALL_INITIALIZE)"; -static char __pyx_k_Triple_Exponential_Moving_Averag[] = "Triple Exponential Moving Average"; -static char __pyx_k_Triple_Generalized_Double_Expone[] = "Triple Generalized Double Exponential Moving Average"; -static PyObject *__pyx_n_s_ADX; -static PyObject *__pyx_n_s_ADXR; -static PyObject *__pyx_n_s_ALL; -static PyObject *__pyx_n_s_ATR; -static PyObject *__pyx_kp_s_Allocation_Error_TA_ALLOC_ERR; -static PyObject *__pyx_kp_s_Bad_Object_TA_BAD_OBJECT; -static PyObject *__pyx_kp_s_Bad_Parameter_TA_BAD_PARAM; -static PyObject *__pyx_n_s_CMO; -static PyObject *__pyx_n_s_DEMA; -static PyObject *__pyx_n_s_DX; -static PyObject *__pyx_kp_s_Double_Exponential_Moving_Averag; -static PyObject *__pyx_n_s_EMA; -static PyObject *__pyx_n_s_Exception; -static PyObject *__pyx_kp_s_Exponential_Moving_Average; -static PyObject *__pyx_kp_s_Function_Not_Found_TA_FUNC_NOT_F; -static PyObject *__pyx_kp_s_Group_Not_Found_TA_GROUP_NOT_FOU; -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_kp_s_Input_Not_All_Initialized_TA_INP; -static PyObject *__pyx_kp_s_Internal_Error_TA_INTERNAL_ERROR; -static PyObject *__pyx_kp_s_Invalid_Handle_TA_INVALID_HANDLE; -static PyObject *__pyx_kp_s_Invalid_List_Type_TA_INVALID_LIS; -static PyObject *__pyx_kp_s_Invalid_Parameter_Function_TA_IN; -static PyObject *__pyx_kp_s_Invalid_Parameter_Holder_TA_INVA; -static PyObject *__pyx_kp_s_Invalid_Parameter_Holder_Type_TA; -static PyObject *__pyx_n_s_KAMA; -static PyObject *__pyx_kp_s_Kaufman_Adaptive_Moving_Average; -static PyObject *__pyx_kp_s_Library_Not_Initialized_TA_LIB_N; -static PyObject *__pyx_n_s_MAMA; -static PyObject *__pyx_n_s_MA_Type; -static PyObject *__pyx_n_s_MA_Type___getitem; -static PyObject *__pyx_n_s_MA_Type___init; -static PyObject *__pyx_kp_s_MESA_Adaptive_Moving_Average; -static PyObject *__pyx_n_s_MFI; -static PyObject *__pyx_n_s_MINUS_DI; -static PyObject *__pyx_n_s_MINUS_DM; -static PyObject *__pyx_n_s_NATR; -static PyObject *__pyx_n_s_NONE; -static PyObject *__pyx_kp_s_Not_Supported_TA_NOT_SUPPORTED; -static PyObject *__pyx_kp_s_Out_of_Range_End_Index_TA_OUT_OF; -static PyObject *__pyx_kp_s_Out_of_Range_Start_Index_TA_OUT; -static PyObject *__pyx_kp_s_Output_Not_All_Initialized_TA_OU; -static PyObject *__pyx_n_s_PLUS_DI; -static PyObject *__pyx_n_s_PLUS_DM; -static PyObject *__pyx_n_s_RSI; -static PyObject *__pyx_n_s_SMA; -static PyObject *__pyx_n_s_STOCHRSI; -static PyObject *__pyx_kp_s_Simple_Moving_Average; -static PyObject *__pyx_n_s_Success; -static PyObject *__pyx_n_s_T3; -static PyObject *__pyx_n_s_TA_Initialize; -static PyObject *__pyx_n_s_TA_SetUnstablePeriod; -static PyObject *__pyx_n_s_TA_Shutdown; -static PyObject *__pyx_n_s_TEMA; -static PyObject *__pyx_n_s_TRIMA; -static PyObject *__pyx_kp_s_Triangular_Moving_Average; -static PyObject *__pyx_kp_s_Triple_Exponential_Moving_Averag; -static PyObject *__pyx_kp_s_Triple_Generalized_Double_Expone; -static PyObject *__pyx_kp_s_Unknown_Error_TA_UNKNOWN_ERR; -static PyObject *__pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib; -static PyObject *__pyx_n_s_WMA; -static PyObject *__pyx_kp_s_Weighted_Moving_Average; -static PyObject *__pyx_n_s_doc; -static PyObject *__pyx_n_s_enumerate; -static PyObject *__pyx_n_s_function_name; -static PyObject *__pyx_n_s_getitem; -static PyObject *__pyx_n_s_i; -static PyObject *__pyx_n_s_id; -static PyObject *__pyx_n_s_init; -static PyObject *__pyx_n_s_lookup; -static PyObject *__pyx_n_s_main; -static PyObject *__pyx_n_s_metaclass; -static PyObject *__pyx_n_s_module; -static PyObject *__pyx_n_s_name; -static PyObject *__pyx_n_s_object; -static PyObject *__pyx_n_s_period; -static PyObject *__pyx_n_s_prepare; -static PyObject *__pyx_n_s_qualname; -static PyObject *__pyx_n_s_range; -static PyObject *__pyx_n_s_ret_code; -static PyObject *__pyx_kp_s_s_function_failed_with_error_co; -static PyObject *__pyx_n_s_self; -static PyObject *__pyx_n_s_ta_func_unst_ids; -static PyObject *__pyx_n_s_ta_get_unstable_period; -static PyObject *__pyx_n_s_ta_initialize; -static PyObject *__pyx_n_s_ta_set_unstable_period; -static PyObject *__pyx_n_s_ta_shutdown; -static PyObject *__pyx_n_s_ta_version; -static PyObject *__pyx_n_s_talib_common; -static PyObject *__pyx_n_s_test; -static PyObject *__pyx_n_s_type; -static PyObject *__pyx_pf_5talib_6common__ta_check_success(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_function_name, TA_RetCode __pyx_v_ret_code); /* proto */ -static PyObject *__pyx_pf_5talib_6common_2_ta_initialize(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ -static PyObject *__pyx_pf_5talib_6common_4_ta_shutdown(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ -static PyObject *__pyx_pf_5talib_6common_7MA_Type___init__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self); /* proto */ -static PyObject *__pyx_pf_5talib_6common_7MA_Type_2__getitem__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_type_); /* proto */ -static PyObject *__pyx_pf_5talib_6common_6_ta_set_unstable_period(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_name, PyObject *__pyx_v_period); /* proto */ -static PyObject *__pyx_pf_5talib_6common_8_ta_get_unstable_period(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_name); /* proto */ -static PyObject *__pyx_int_0; -static PyObject *__pyx_int_1; -static PyObject *__pyx_int_2; -static PyObject *__pyx_int_3; -static PyObject *__pyx_int_4; -static PyObject *__pyx_int_5; -static PyObject *__pyx_int_6; -static PyObject *__pyx_int_7; -static PyObject *__pyx_int_8; -static PyObject *__pyx_int_9; -static PyObject *__pyx_int_10; -static PyObject *__pyx_int_11; -static PyObject *__pyx_int_12; -static PyObject *__pyx_int_13; -static PyObject *__pyx_int_14; -static PyObject *__pyx_int_15; -static PyObject *__pyx_int_16; -static PyObject *__pyx_int_5000; -static PyObject *__pyx_int_65535; -static PyObject *__pyx_int_neg_1; -static PyObject *__pyx_tuple_; -static PyObject *__pyx_tuple__3; -static PyObject *__pyx_tuple__5; -static PyObject *__pyx_tuple__6; -static PyObject *__pyx_tuple__8; -static PyObject *__pyx_tuple__10; -static PyObject *__pyx_tuple__12; -static PyObject *__pyx_codeobj__2; -static PyObject *__pyx_codeobj__4; -static PyObject *__pyx_codeobj__7; -static PyObject *__pyx_codeobj__9; -static PyObject *__pyx_codeobj__11; -static PyObject *__pyx_codeobj__13; - -/* "talib/common.pyx":7 - * __ta_version__ = lib.TA_GetVersionString() - * - * cpdef _ta_check_success(str function_name, TA_RetCode ret_code): # <<<<<<<<<<<<<< - * if ret_code == lib.TA_SUCCESS: - * return True - */ - -static PyObject *__pyx_pw_5talib_6common_1_ta_check_success(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static PyObject *__pyx_f_5talib_6common__ta_check_success(PyObject *__pyx_v_function_name, TA_RetCode __pyx_v_ret_code, CYTHON_UNUSED int __pyx_skip_dispatch) { - PyObject *__pyx_v_ta_errors = NULL; - 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; - int __pyx_lineno = 0; - const char *__pyx_filename = NULL; - int __pyx_clineno = 0; - __Pyx_RefNannySetupContext("_ta_check_success", 0); - - /* "talib/common.pyx":8 - * - * cpdef _ta_check_success(str function_name, TA_RetCode ret_code): - * if ret_code == lib.TA_SUCCESS: # <<<<<<<<<<<<<< - * return True - * ta_errors = { - */ - __pyx_t_1 = ((__pyx_v_ret_code == TA_SUCCESS) != 0); - if (__pyx_t_1) { - - /* "talib/common.pyx":9 - * cpdef _ta_check_success(str function_name, TA_RetCode ret_code): - * if ret_code == lib.TA_SUCCESS: - * return True # <<<<<<<<<<<<<< - * ta_errors = { - * 0: 'Success', - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(Py_True); - __pyx_r = Py_True; - goto __pyx_L0; - - /* "talib/common.pyx":8 - * - * cpdef _ta_check_success(str function_name, TA_RetCode ret_code): - * if ret_code == lib.TA_SUCCESS: # <<<<<<<<<<<<<< - * return True - * ta_errors = { - */ - } - - /* "talib/common.pyx":11 - * return True - * ta_errors = { - * 0: 'Success', # <<<<<<<<<<<<<< - * 1: 'Library Not Initialized (TA_LIB_NOT_INITIALIZE)', - * 2: 'Bad Parameter (TA_BAD_PARAM)', - */ - __pyx_t_2 = PyDict_New(); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 11; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - if (PyDict_SetItem(__pyx_t_2, __pyx_int_0, __pyx_n_s_Success) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 11; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - if (PyDict_SetItem(__pyx_t_2, __pyx_int_1, __pyx_kp_s_Library_Not_Initialized_TA_LIB_N) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 11; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - if (PyDict_SetItem(__pyx_t_2, __pyx_int_2, __pyx_kp_s_Bad_Parameter_TA_BAD_PARAM) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 11; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - if (PyDict_SetItem(__pyx_t_2, __pyx_int_3, __pyx_kp_s_Allocation_Error_TA_ALLOC_ERR) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 11; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - if (PyDict_SetItem(__pyx_t_2, __pyx_int_4, __pyx_kp_s_Group_Not_Found_TA_GROUP_NOT_FOU) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 11; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - if (PyDict_SetItem(__pyx_t_2, __pyx_int_5, __pyx_kp_s_Function_Not_Found_TA_FUNC_NOT_F) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 11; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - if (PyDict_SetItem(__pyx_t_2, __pyx_int_6, __pyx_kp_s_Invalid_Handle_TA_INVALID_HANDLE) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 11; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - if (PyDict_SetItem(__pyx_t_2, __pyx_int_7, __pyx_kp_s_Invalid_Parameter_Holder_TA_INVA) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 11; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - if (PyDict_SetItem(__pyx_t_2, __pyx_int_8, __pyx_kp_s_Invalid_Parameter_Holder_Type_TA) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 11; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - if (PyDict_SetItem(__pyx_t_2, __pyx_int_9, __pyx_kp_s_Invalid_Parameter_Function_TA_IN) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 11; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - if (PyDict_SetItem(__pyx_t_2, __pyx_int_10, __pyx_kp_s_Input_Not_All_Initialized_TA_INP) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 11; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - if (PyDict_SetItem(__pyx_t_2, __pyx_int_11, __pyx_kp_s_Output_Not_All_Initialized_TA_OU) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 11; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - if (PyDict_SetItem(__pyx_t_2, __pyx_int_12, __pyx_kp_s_Out_of_Range_Start_Index_TA_OUT) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 11; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - if (PyDict_SetItem(__pyx_t_2, __pyx_int_13, __pyx_kp_s_Out_of_Range_End_Index_TA_OUT_OF) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 11; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - if (PyDict_SetItem(__pyx_t_2, __pyx_int_14, __pyx_kp_s_Invalid_List_Type_TA_INVALID_LIS) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 11; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - if (PyDict_SetItem(__pyx_t_2, __pyx_int_15, __pyx_kp_s_Bad_Object_TA_BAD_OBJECT) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 11; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - if (PyDict_SetItem(__pyx_t_2, __pyx_int_16, __pyx_kp_s_Not_Supported_TA_NOT_SUPPORTED) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 11; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - if (PyDict_SetItem(__pyx_t_2, __pyx_int_5000, __pyx_kp_s_Internal_Error_TA_INTERNAL_ERROR) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 11; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - if (PyDict_SetItem(__pyx_t_2, __pyx_int_65535, __pyx_kp_s_Unknown_Error_TA_UNKNOWN_ERR) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 11; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __pyx_v_ta_errors = ((PyObject*)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/common.pyx":32 - * } - * raise Exception('%s function failed with error code %s: %s' % ( - * function_name, ret_code, ta_errors[ret_code])) # <<<<<<<<<<<<<< - * - * def _ta_initialize(): - */ - __pyx_t_2 = __Pyx_PyInt_From_TA_RetCode(__pyx_v_ret_code); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 32; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __pyx_t_3 = __Pyx_PyInt_From_TA_RetCode(__pyx_v_ret_code); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 32; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_3); - __pyx_t_4 = __Pyx_PyDict_GetItem(__pyx_v_ta_errors, __pyx_t_3); if (unlikely(__pyx_t_4 == NULL)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 32; __pyx_clineno = __LINE__; goto __pyx_L1_error;}; - __Pyx_GOTREF(__pyx_t_4); - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 32; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_3); - __Pyx_INCREF(__pyx_v_function_name); - __Pyx_GIVEREF(__pyx_v_function_name); - PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_function_name); - __Pyx_GIVEREF(__pyx_t_2); - PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2); - __Pyx_GIVEREF(__pyx_t_4); - PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_t_4); - __pyx_t_2 = 0; - __pyx_t_4 = 0; - - /* "talib/common.pyx":31 - * 65535: 'Unknown Error (TA_UNKNOWN_ERR)', - * } - * raise Exception('%s function failed with error code %s: %s' % ( # <<<<<<<<<<<<<< - * function_name, ret_code, ta_errors[ret_code])) - * - */ - __pyx_t_4 = __Pyx_PyString_Format(__pyx_kp_s_s_function_failed_with_error_co, __pyx_t_3); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 31; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_4); - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 31; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_3); - __Pyx_GIVEREF(__pyx_t_4); - PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_4); - __pyx_t_4 = 0; - __pyx_t_4 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_t_3, NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 31; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_4); - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __Pyx_Raise(__pyx_t_4, 0, 0, 0); - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - {__pyx_filename = __pyx_f[0]; __pyx_lineno = 31; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - - /* "talib/common.pyx":7 - * __ta_version__ = lib.TA_GetVersionString() - * - * cpdef _ta_check_success(str function_name, TA_RetCode ret_code): # <<<<<<<<<<<<<< - * if ret_code == lib.TA_SUCCESS: - * return True - */ - - /* function exit code */ - __pyx_L1_error:; - __Pyx_XDECREF(__pyx_t_2); - __Pyx_XDECREF(__pyx_t_3); - __Pyx_XDECREF(__pyx_t_4); - __Pyx_AddTraceback("talib.common._ta_check_success", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = 0; - __pyx_L0:; - __Pyx_XDECREF(__pyx_v_ta_errors); - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* Python wrapper */ -static PyObject *__pyx_pw_5talib_6common_1_ta_check_success(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static PyObject *__pyx_pw_5talib_6common_1_ta_check_success(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { - PyObject *__pyx_v_function_name = 0; - TA_RetCode __pyx_v_ret_code; - int __pyx_lineno = 0; - const char *__pyx_filename = NULL; - int __pyx_clineno = 0; - PyObject *__pyx_r = 0; - __Pyx_RefNannyDeclarations - __Pyx_RefNannySetupContext("_ta_check_success (wrapper)", 0); - { - static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_function_name,&__pyx_n_s_ret_code,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_function_name)) != 0)) kw_args--; - else goto __pyx_L5_argtuple_error; - case 1: - if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_ret_code)) != 0)) kw_args--; - else { - __Pyx_RaiseArgtupleInvalid("_ta_check_success", 1, 2, 2, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 7; __pyx_clineno = __LINE__; goto __pyx_L3_error;} - } - } - if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "_ta_check_success") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 7; __pyx_clineno = __LINE__; goto __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_function_name = ((PyObject*)values[0]); - __pyx_v_ret_code = __Pyx_PyInt_As_TA_RetCode(values[1]); if (unlikely((__pyx_v_ret_code == (TA_RetCode)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 7; __pyx_clineno = __LINE__; goto __pyx_L3_error;} - } - goto __pyx_L4_argument_unpacking_done; - __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("_ta_check_success", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 7; __pyx_clineno = __LINE__; goto __pyx_L3_error;} - __pyx_L3_error:; - __Pyx_AddTraceback("talib.common._ta_check_success", __pyx_clineno, __pyx_lineno, __pyx_filename); - __Pyx_RefNannyFinishContext(); - return NULL; - __pyx_L4_argument_unpacking_done:; - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_function_name), (&PyString_Type), 1, "function_name", 1))) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 7; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __pyx_r = __pyx_pf_5talib_6common__ta_check_success(__pyx_self, __pyx_v_function_name, __pyx_v_ret_code); - - /* function exit code */ - goto __pyx_L0; - __pyx_L1_error:; - __pyx_r = NULL; - __pyx_L0:; - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -static PyObject *__pyx_pf_5talib_6common__ta_check_success(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_function_name, TA_RetCode __pyx_v_ret_code) { - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - PyObject *__pyx_t_1 = NULL; - int __pyx_lineno = 0; - const char *__pyx_filename = NULL; - int __pyx_clineno = 0; - __Pyx_RefNannySetupContext("_ta_check_success", 0); - __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __pyx_f_5talib_6common__ta_check_success(__pyx_v_function_name, __pyx_v_ret_code, 0); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 7; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - __pyx_r = __pyx_t_1; - __pyx_t_1 = 0; - goto __pyx_L0; - - /* function exit code */ - __pyx_L1_error:; - __Pyx_XDECREF(__pyx_t_1); - __Pyx_AddTraceback("talib.common._ta_check_success", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "talib/common.pyx":34 - * function_name, ret_code, ta_errors[ret_code])) - * - * def _ta_initialize(): # <<<<<<<<<<<<<< - * cdef TA_RetCode ret_code - * ret_code = lib.TA_Initialize() - */ - -/* Python wrapper */ -static PyObject *__pyx_pw_5talib_6common_3_ta_initialize(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ -static PyMethodDef __pyx_mdef_5talib_6common_3_ta_initialize = {"_ta_initialize", (PyCFunction)__pyx_pw_5talib_6common_3_ta_initialize, METH_NOARGS, 0}; -static PyObject *__pyx_pw_5talib_6common_3_ta_initialize(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { - PyObject *__pyx_r = 0; - __Pyx_RefNannyDeclarations - __Pyx_RefNannySetupContext("_ta_initialize (wrapper)", 0); - __pyx_r = __pyx_pf_5talib_6common_2_ta_initialize(__pyx_self); - - /* function exit code */ - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -static PyObject *__pyx_pf_5talib_6common_2_ta_initialize(CYTHON_UNUSED PyObject *__pyx_self) { - TA_RetCode __pyx_v_ret_code; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - PyObject *__pyx_t_1 = NULL; - int __pyx_lineno = 0; - const char *__pyx_filename = NULL; - int __pyx_clineno = 0; - __Pyx_RefNannySetupContext("_ta_initialize", 0); - - /* "talib/common.pyx":36 - * def _ta_initialize(): - * cdef TA_RetCode ret_code - * ret_code = lib.TA_Initialize() # <<<<<<<<<<<<<< - * _ta_check_success('TA_Initialize', ret_code) - * - */ - __pyx_v_ret_code = TA_Initialize(); - - /* "talib/common.pyx":37 - * cdef TA_RetCode ret_code - * ret_code = lib.TA_Initialize() - * _ta_check_success('TA_Initialize', ret_code) # <<<<<<<<<<<<<< - * - * def _ta_shutdown(): - */ - __pyx_t_1 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_Initialize, __pyx_v_ret_code, 0); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 37; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - - /* "talib/common.pyx":34 - * function_name, ret_code, ta_errors[ret_code])) - * - * def _ta_initialize(): # <<<<<<<<<<<<<< - * cdef TA_RetCode ret_code - * ret_code = lib.TA_Initialize() - */ - - /* function exit code */ - __pyx_r = Py_None; __Pyx_INCREF(Py_None); - goto __pyx_L0; - __pyx_L1_error:; - __Pyx_XDECREF(__pyx_t_1); - __Pyx_AddTraceback("talib.common._ta_initialize", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "talib/common.pyx":39 - * _ta_check_success('TA_Initialize', ret_code) - * - * def _ta_shutdown(): # <<<<<<<<<<<<<< - * cdef TA_RetCode ret_code - * ret_code = lib.TA_Shutdown() - */ - -/* Python wrapper */ -static PyObject *__pyx_pw_5talib_6common_5_ta_shutdown(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ -static PyMethodDef __pyx_mdef_5talib_6common_5_ta_shutdown = {"_ta_shutdown", (PyCFunction)__pyx_pw_5talib_6common_5_ta_shutdown, METH_NOARGS, 0}; -static PyObject *__pyx_pw_5talib_6common_5_ta_shutdown(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { - PyObject *__pyx_r = 0; - __Pyx_RefNannyDeclarations - __Pyx_RefNannySetupContext("_ta_shutdown (wrapper)", 0); - __pyx_r = __pyx_pf_5talib_6common_4_ta_shutdown(__pyx_self); - - /* function exit code */ - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -static PyObject *__pyx_pf_5talib_6common_4_ta_shutdown(CYTHON_UNUSED PyObject *__pyx_self) { - TA_RetCode __pyx_v_ret_code; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - PyObject *__pyx_t_1 = NULL; - int __pyx_lineno = 0; - const char *__pyx_filename = NULL; - int __pyx_clineno = 0; - __Pyx_RefNannySetupContext("_ta_shutdown", 0); - - /* "talib/common.pyx":41 - * def _ta_shutdown(): - * cdef TA_RetCode ret_code - * ret_code = lib.TA_Shutdown() # <<<<<<<<<<<<<< - * _ta_check_success('TA_Shutdown', ret_code) - * - */ - __pyx_v_ret_code = TA_Shutdown(); - - /* "talib/common.pyx":42 - * cdef TA_RetCode ret_code - * ret_code = lib.TA_Shutdown() - * _ta_check_success('TA_Shutdown', ret_code) # <<<<<<<<<<<<<< - * - * class MA_Type(object): - */ - __pyx_t_1 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_Shutdown, __pyx_v_ret_code, 0); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 42; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - - /* "talib/common.pyx":39 - * _ta_check_success('TA_Initialize', ret_code) - * - * def _ta_shutdown(): # <<<<<<<<<<<<<< - * cdef TA_RetCode ret_code - * ret_code = lib.TA_Shutdown() - */ - - /* function exit code */ - __pyx_r = Py_None; __Pyx_INCREF(Py_None); - goto __pyx_L0; - __pyx_L1_error:; - __Pyx_XDECREF(__pyx_t_1); - __Pyx_AddTraceback("talib.common._ta_shutdown", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "talib/common.pyx":47 - * SMA, EMA, WMA, DEMA, TEMA, TRIMA, KAMA, MAMA, T3 = range(9) - * - * def __init__(self): # <<<<<<<<<<<<<< - * self._lookup = { - * MA_Type.SMA: 'Simple Moving Average', - */ - -/* Python wrapper */ -static PyObject *__pyx_pw_5talib_6common_7MA_Type_1__init__(PyObject *__pyx_self, PyObject *__pyx_v_self); /*proto*/ -static PyMethodDef __pyx_mdef_5talib_6common_7MA_Type_1__init__ = {"__init__", (PyCFunction)__pyx_pw_5talib_6common_7MA_Type_1__init__, METH_O, 0}; -static PyObject *__pyx_pw_5talib_6common_7MA_Type_1__init__(PyObject *__pyx_self, PyObject *__pyx_v_self) { - PyObject *__pyx_r = 0; - __Pyx_RefNannyDeclarations - __Pyx_RefNannySetupContext("__init__ (wrapper)", 0); - __pyx_r = __pyx_pf_5talib_6common_7MA_Type___init__(__pyx_self, ((PyObject *)__pyx_v_self)); - - /* function exit code */ - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -static PyObject *__pyx_pf_5talib_6common_7MA_Type___init__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self) { - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - PyObject *__pyx_t_1 = NULL; - PyObject *__pyx_t_2 = NULL; - PyObject *__pyx_t_3 = NULL; - int __pyx_lineno = 0; - const char *__pyx_filename = NULL; - int __pyx_clineno = 0; - __Pyx_RefNannySetupContext("__init__", 0); - - /* "talib/common.pyx":49 - * def __init__(self): - * self._lookup = { - * MA_Type.SMA: 'Simple Moving Average', # <<<<<<<<<<<<<< - * MA_Type.EMA: 'Exponential Moving Average', - * MA_Type.WMA: 'Weighted Moving Average', - */ - __pyx_t_1 = PyDict_New(); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 49; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_MA_Type); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 49; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_SMA); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 49; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_3); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - if (PyDict_SetItem(__pyx_t_1, __pyx_t_3, __pyx_kp_s_Simple_Moving_Average) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 49; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/common.pyx":50 - * self._lookup = { - * MA_Type.SMA: 'Simple Moving Average', - * MA_Type.EMA: 'Exponential Moving Average', # <<<<<<<<<<<<<< - * MA_Type.WMA: 'Weighted Moving Average', - * MA_Type.DEMA: 'Double Exponential Moving Average', - */ - __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_MA_Type); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 50; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_3); - __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_EMA); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 50; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - if (PyDict_SetItem(__pyx_t_1, __pyx_t_2, __pyx_kp_s_Exponential_Moving_Average) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 49; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/common.pyx":51 - * MA_Type.SMA: 'Simple Moving Average', - * MA_Type.EMA: 'Exponential Moving Average', - * MA_Type.WMA: 'Weighted Moving Average', # <<<<<<<<<<<<<< - * MA_Type.DEMA: 'Double Exponential Moving Average', - * MA_Type.TEMA: 'Triple Exponential Moving Average', - */ - __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_MA_Type); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 51; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_WMA); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 51; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_3); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - if (PyDict_SetItem(__pyx_t_1, __pyx_t_3, __pyx_kp_s_Weighted_Moving_Average) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 49; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/common.pyx":52 - * MA_Type.EMA: 'Exponential Moving Average', - * MA_Type.WMA: 'Weighted Moving Average', - * MA_Type.DEMA: 'Double Exponential Moving Average', # <<<<<<<<<<<<<< - * MA_Type.TEMA: 'Triple Exponential Moving Average', - * MA_Type.TRIMA: 'Triangular Moving Average', - */ - __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_MA_Type); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 52; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_3); - __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_DEMA); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 52; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - if (PyDict_SetItem(__pyx_t_1, __pyx_t_2, __pyx_kp_s_Double_Exponential_Moving_Averag) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 49; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/common.pyx":53 - * MA_Type.WMA: 'Weighted Moving Average', - * MA_Type.DEMA: 'Double Exponential Moving Average', - * MA_Type.TEMA: 'Triple Exponential Moving Average', # <<<<<<<<<<<<<< - * MA_Type.TRIMA: 'Triangular Moving Average', - * MA_Type.KAMA: 'Kaufman Adaptive Moving Average', - */ - __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_MA_Type); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 53; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_TEMA); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 53; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_3); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - if (PyDict_SetItem(__pyx_t_1, __pyx_t_3, __pyx_kp_s_Triple_Exponential_Moving_Averag) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 49; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/common.pyx":54 - * MA_Type.DEMA: 'Double Exponential Moving Average', - * MA_Type.TEMA: 'Triple Exponential Moving Average', - * MA_Type.TRIMA: 'Triangular Moving Average', # <<<<<<<<<<<<<< - * MA_Type.KAMA: 'Kaufman Adaptive Moving Average', - * MA_Type.MAMA: 'MESA Adaptive Moving Average', - */ - __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_MA_Type); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 54; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_3); - __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_TRIMA); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 54; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - if (PyDict_SetItem(__pyx_t_1, __pyx_t_2, __pyx_kp_s_Triangular_Moving_Average) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 49; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/common.pyx":55 - * MA_Type.TEMA: 'Triple Exponential Moving Average', - * MA_Type.TRIMA: 'Triangular Moving Average', - * MA_Type.KAMA: 'Kaufman Adaptive Moving Average', # <<<<<<<<<<<<<< - * MA_Type.MAMA: 'MESA Adaptive Moving Average', - * MA_Type.T3: 'Triple Generalized Double Exponential Moving Average', - */ - __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_MA_Type); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 55; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_KAMA); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 55; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_3); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - if (PyDict_SetItem(__pyx_t_1, __pyx_t_3, __pyx_kp_s_Kaufman_Adaptive_Moving_Average) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 49; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/common.pyx":56 - * MA_Type.TRIMA: 'Triangular Moving Average', - * MA_Type.KAMA: 'Kaufman Adaptive Moving Average', - * MA_Type.MAMA: 'MESA Adaptive Moving Average', # <<<<<<<<<<<<<< - * MA_Type.T3: 'Triple Generalized Double Exponential Moving Average', - * } - */ - __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_MA_Type); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 56; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_3); - __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_MAMA); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 56; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - if (PyDict_SetItem(__pyx_t_1, __pyx_t_2, __pyx_kp_s_MESA_Adaptive_Moving_Average) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 49; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/common.pyx":57 - * MA_Type.KAMA: 'Kaufman Adaptive Moving Average', - * MA_Type.MAMA: 'MESA Adaptive Moving Average', - * MA_Type.T3: 'Triple Generalized Double Exponential Moving Average', # <<<<<<<<<<<<<< - * } - * - */ - __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_MA_Type); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 57; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_T3); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 57; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_3); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - if (PyDict_SetItem(__pyx_t_1, __pyx_t_3, __pyx_kp_s_Triple_Generalized_Double_Expone) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 49; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/common.pyx":48 - * - * def __init__(self): - * self._lookup = { # <<<<<<<<<<<<<< - * MA_Type.SMA: 'Simple Moving Average', - * MA_Type.EMA: 'Exponential Moving Average', - */ - if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_lookup, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 48; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - - /* "talib/common.pyx":47 - * SMA, EMA, WMA, DEMA, TEMA, TRIMA, KAMA, MAMA, T3 = range(9) - * - * def __init__(self): # <<<<<<<<<<<<<< - * self._lookup = { - * MA_Type.SMA: 'Simple Moving Average', - */ - - /* function exit code */ - __pyx_r = Py_None; __Pyx_INCREF(Py_None); - goto __pyx_L0; - __pyx_L1_error:; - __Pyx_XDECREF(__pyx_t_1); - __Pyx_XDECREF(__pyx_t_2); - __Pyx_XDECREF(__pyx_t_3); - __Pyx_AddTraceback("talib.common.MA_Type.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "talib/common.pyx":60 - * } - * - * def __getitem__(self, type_): # <<<<<<<<<<<<<< - * return self._lookup[type_] - * - */ - -/* Python wrapper */ -static PyObject *__pyx_pw_5talib_6common_7MA_Type_3__getitem__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static PyMethodDef __pyx_mdef_5talib_6common_7MA_Type_3__getitem__ = {"__getitem__", (PyCFunction)__pyx_pw_5talib_6common_7MA_Type_3__getitem__, METH_VARARGS|METH_KEYWORDS, 0}; -static PyObject *__pyx_pw_5talib_6common_7MA_Type_3__getitem__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { - PyObject *__pyx_v_self = 0; - PyObject *__pyx_v_type_ = 0; - int __pyx_lineno = 0; - const char *__pyx_filename = NULL; - int __pyx_clineno = 0; - PyObject *__pyx_r = 0; - __Pyx_RefNannyDeclarations - __Pyx_RefNannySetupContext("__getitem__ (wrapper)", 0); - { - static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_self,&__pyx_n_s_type,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_self)) != 0)) kw_args--; - else goto __pyx_L5_argtuple_error; - case 1: - if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_type)) != 0)) kw_args--; - else { - __Pyx_RaiseArgtupleInvalid("__getitem__", 1, 2, 2, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 60; __pyx_clineno = __LINE__; goto __pyx_L3_error;} - } - } - if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__getitem__") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 60; __pyx_clineno = __LINE__; goto __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_self = values[0]; - __pyx_v_type_ = values[1]; - } - goto __pyx_L4_argument_unpacking_done; - __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("__getitem__", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 60; __pyx_clineno = __LINE__; goto __pyx_L3_error;} - __pyx_L3_error:; - __Pyx_AddTraceback("talib.common.MA_Type.__getitem__", __pyx_clineno, __pyx_lineno, __pyx_filename); - __Pyx_RefNannyFinishContext(); - return NULL; - __pyx_L4_argument_unpacking_done:; - __pyx_r = __pyx_pf_5talib_6common_7MA_Type_2__getitem__(__pyx_self, __pyx_v_self, __pyx_v_type_); - - /* function exit code */ - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -static PyObject *__pyx_pf_5talib_6common_7MA_Type_2__getitem__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_type_) { - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - PyObject *__pyx_t_1 = NULL; - PyObject *__pyx_t_2 = NULL; - int __pyx_lineno = 0; - const char *__pyx_filename = NULL; - int __pyx_clineno = 0; - __Pyx_RefNannySetupContext("__getitem__", 0); - - /* "talib/common.pyx":61 - * - * def __getitem__(self, type_): - * return self._lookup[type_] # <<<<<<<<<<<<<< - * - * MA_Type = MA_Type() - */ - __Pyx_XDECREF(__pyx_r); - __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_lookup); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 61; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - __pyx_t_2 = PyObject_GetItem(__pyx_t_1, __pyx_v_type_); if (unlikely(__pyx_t_2 == NULL)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 61; __pyx_clineno = __LINE__; goto __pyx_L1_error;}; - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __pyx_r = __pyx_t_2; - __pyx_t_2 = 0; - goto __pyx_L0; - - /* "talib/common.pyx":60 - * } - * - * def __getitem__(self, type_): # <<<<<<<<<<<<<< - * return self._lookup[type_] - * - */ - - /* function exit code */ - __pyx_L1_error:; - __Pyx_XDECREF(__pyx_t_1); - __Pyx_XDECREF(__pyx_t_2); - __Pyx_AddTraceback("talib.common.MA_Type.__getitem__", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "talib/common.pyx":74 - * _ta_func_unst_ids[name] = i - * - * def _ta_set_unstable_period(name, period): # <<<<<<<<<<<<<< - * cdef TA_RetCode ret_code - * cdef TA_FuncUnstId id = _ta_func_unst_ids[name] - */ - -/* Python wrapper */ -static PyObject *__pyx_pw_5talib_6common_7_ta_set_unstable_period(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static PyMethodDef __pyx_mdef_5talib_6common_7_ta_set_unstable_period = {"_ta_set_unstable_period", (PyCFunction)__pyx_pw_5talib_6common_7_ta_set_unstable_period, METH_VARARGS|METH_KEYWORDS, 0}; -static PyObject *__pyx_pw_5talib_6common_7_ta_set_unstable_period(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { - PyObject *__pyx_v_name = 0; - PyObject *__pyx_v_period = 0; - int __pyx_lineno = 0; - const char *__pyx_filename = NULL; - int __pyx_clineno = 0; - PyObject *__pyx_r = 0; - __Pyx_RefNannyDeclarations - __Pyx_RefNannySetupContext("_ta_set_unstable_period (wrapper)", 0); - { - static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_name,&__pyx_n_s_period,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_name)) != 0)) kw_args--; - else goto __pyx_L5_argtuple_error; - case 1: - if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_period)) != 0)) kw_args--; - else { - __Pyx_RaiseArgtupleInvalid("_ta_set_unstable_period", 1, 2, 2, 1); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 74; __pyx_clineno = __LINE__; goto __pyx_L3_error;} - } - } - if (unlikely(kw_args > 0)) { - if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "_ta_set_unstable_period") < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 74; __pyx_clineno = __LINE__; goto __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_name = values[0]; - __pyx_v_period = values[1]; - } - goto __pyx_L4_argument_unpacking_done; - __pyx_L5_argtuple_error:; - __Pyx_RaiseArgtupleInvalid("_ta_set_unstable_period", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); {__pyx_filename = __pyx_f[0]; __pyx_lineno = 74; __pyx_clineno = __LINE__; goto __pyx_L3_error;} - __pyx_L3_error:; - __Pyx_AddTraceback("talib.common._ta_set_unstable_period", __pyx_clineno, __pyx_lineno, __pyx_filename); - __Pyx_RefNannyFinishContext(); - return NULL; - __pyx_L4_argument_unpacking_done:; - __pyx_r = __pyx_pf_5talib_6common_6_ta_set_unstable_period(__pyx_self, __pyx_v_name, __pyx_v_period); - - /* function exit code */ - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -static PyObject *__pyx_pf_5talib_6common_6_ta_set_unstable_period(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_name, PyObject *__pyx_v_period) { - TA_RetCode __pyx_v_ret_code; - TA_FuncUnstId __pyx_v_id; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - PyObject *__pyx_t_1 = NULL; - PyObject *__pyx_t_2 = NULL; - TA_FuncUnstId __pyx_t_3; - unsigned int __pyx_t_4; - int __pyx_lineno = 0; - const char *__pyx_filename = NULL; - int __pyx_clineno = 0; - __Pyx_RefNannySetupContext("_ta_set_unstable_period", 0); - - /* "talib/common.pyx":76 - * def _ta_set_unstable_period(name, period): - * cdef TA_RetCode ret_code - * cdef TA_FuncUnstId id = _ta_func_unst_ids[name] # <<<<<<<<<<<<<< - * ret_code = lib.TA_SetUnstablePeriod(id, period) - * _ta_check_success('TA_SetUnstablePeriod', ret_code) - */ - __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_ta_func_unst_ids); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 76; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - __pyx_t_2 = PyObject_GetItem(__pyx_t_1, __pyx_v_name); if (unlikely(__pyx_t_2 == NULL)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 76; __pyx_clineno = __LINE__; goto __pyx_L1_error;}; - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __pyx_t_3 = __Pyx_PyInt_As_TA_FuncUnstId(__pyx_t_2); if (unlikely((__pyx_t_3 == (TA_FuncUnstId)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 76; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __pyx_v_id = __pyx_t_3; - - /* "talib/common.pyx":77 - * cdef TA_RetCode ret_code - * cdef TA_FuncUnstId id = _ta_func_unst_ids[name] - * ret_code = lib.TA_SetUnstablePeriod(id, period) # <<<<<<<<<<<<<< - * _ta_check_success('TA_SetUnstablePeriod', ret_code) - * - */ - __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_v_period); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 77; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __pyx_v_ret_code = TA_SetUnstablePeriod(__pyx_v_id, __pyx_t_4); - - /* "talib/common.pyx":78 - * cdef TA_FuncUnstId id = _ta_func_unst_ids[name] - * ret_code = lib.TA_SetUnstablePeriod(id, period) - * _ta_check_success('TA_SetUnstablePeriod', ret_code) # <<<<<<<<<<<<<< - * - * def _ta_get_unstable_period(name): - */ - __pyx_t_2 = __pyx_f_5talib_6common__ta_check_success(__pyx_n_s_TA_SetUnstablePeriod, __pyx_v_ret_code, 0); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 78; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/common.pyx":74 - * _ta_func_unst_ids[name] = i - * - * def _ta_set_unstable_period(name, period): # <<<<<<<<<<<<<< - * cdef TA_RetCode ret_code - * cdef TA_FuncUnstId id = _ta_func_unst_ids[name] - */ - - /* function exit code */ - __pyx_r = Py_None; __Pyx_INCREF(Py_None); - goto __pyx_L0; - __pyx_L1_error:; - __Pyx_XDECREF(__pyx_t_1); - __Pyx_XDECREF(__pyx_t_2); - __Pyx_AddTraceback("talib.common._ta_set_unstable_period", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "talib/common.pyx":80 - * _ta_check_success('TA_SetUnstablePeriod', ret_code) - * - * def _ta_get_unstable_period(name): # <<<<<<<<<<<<<< - * cdef unsigned int period - * cdef TA_FuncUnstId id = _ta_func_unst_ids[name] - */ - -/* Python wrapper */ -static PyObject *__pyx_pw_5talib_6common_9_ta_get_unstable_period(PyObject *__pyx_self, PyObject *__pyx_v_name); /*proto*/ -static PyMethodDef __pyx_mdef_5talib_6common_9_ta_get_unstable_period = {"_ta_get_unstable_period", (PyCFunction)__pyx_pw_5talib_6common_9_ta_get_unstable_period, METH_O, 0}; -static PyObject *__pyx_pw_5talib_6common_9_ta_get_unstable_period(PyObject *__pyx_self, PyObject *__pyx_v_name) { - PyObject *__pyx_r = 0; - __Pyx_RefNannyDeclarations - __Pyx_RefNannySetupContext("_ta_get_unstable_period (wrapper)", 0); - __pyx_r = __pyx_pf_5talib_6common_8_ta_get_unstable_period(__pyx_self, ((PyObject *)__pyx_v_name)); - - /* function exit code */ - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -static PyObject *__pyx_pf_5talib_6common_8_ta_get_unstable_period(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_name) { - unsigned int __pyx_v_period; - TA_FuncUnstId __pyx_v_id; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - PyObject *__pyx_t_1 = NULL; - PyObject *__pyx_t_2 = NULL; - TA_FuncUnstId __pyx_t_3; - int __pyx_lineno = 0; - const char *__pyx_filename = NULL; - int __pyx_clineno = 0; - __Pyx_RefNannySetupContext("_ta_get_unstable_period", 0); - - /* "talib/common.pyx":82 - * def _ta_get_unstable_period(name): - * cdef unsigned int period - * cdef TA_FuncUnstId id = _ta_func_unst_ids[name] # <<<<<<<<<<<<<< - * period = lib.TA_GetUnstablePeriod(id) - * return period - */ - __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_ta_func_unst_ids); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 82; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - __pyx_t_2 = PyObject_GetItem(__pyx_t_1, __pyx_v_name); if (unlikely(__pyx_t_2 == NULL)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 82; __pyx_clineno = __LINE__; goto __pyx_L1_error;}; - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - __pyx_t_3 = __Pyx_PyInt_As_TA_FuncUnstId(__pyx_t_2); if (unlikely((__pyx_t_3 == (TA_FuncUnstId)-1) && PyErr_Occurred())) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 82; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __pyx_v_id = __pyx_t_3; - - /* "talib/common.pyx":83 - * cdef unsigned int period - * cdef TA_FuncUnstId id = _ta_func_unst_ids[name] - * period = lib.TA_GetUnstablePeriod(id) # <<<<<<<<<<<<<< - * return period - */ - __pyx_v_period = TA_GetUnstablePeriod(__pyx_v_id); - - /* "talib/common.pyx":84 - * cdef TA_FuncUnstId id = _ta_func_unst_ids[name] - * period = lib.TA_GetUnstablePeriod(id) - * return period # <<<<<<<<<<<<<< - */ - __Pyx_XDECREF(__pyx_r); - __pyx_t_2 = __Pyx_PyInt_From_unsigned_int(__pyx_v_period); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 84; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __pyx_r = __pyx_t_2; - __pyx_t_2 = 0; - goto __pyx_L0; - - /* "talib/common.pyx":80 - * _ta_check_success('TA_SetUnstablePeriod', ret_code) - * - * def _ta_get_unstable_period(name): # <<<<<<<<<<<<<< - * cdef unsigned int period - * cdef TA_FuncUnstId id = _ta_func_unst_ids[name] - */ - - /* function exit code */ - __pyx_L1_error:; - __Pyx_XDECREF(__pyx_t_1); - __Pyx_XDECREF(__pyx_t_2); - __Pyx_AddTraceback("talib.common._ta_get_unstable_period", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -static PyMethodDef __pyx_methods[] = { - {"_ta_check_success", (PyCFunction)__pyx_pw_5talib_6common_1_ta_check_success, METH_VARARGS|METH_KEYWORDS, 0}, - {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 - "common", - 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_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_ALL, __pyx_k_ALL, sizeof(__pyx_k_ALL), 0, 0, 1, 1}, - {&__pyx_n_s_ATR, __pyx_k_ATR, sizeof(__pyx_k_ATR), 0, 0, 1, 1}, - {&__pyx_kp_s_Allocation_Error_TA_ALLOC_ERR, __pyx_k_Allocation_Error_TA_ALLOC_ERR, sizeof(__pyx_k_Allocation_Error_TA_ALLOC_ERR), 0, 0, 1, 0}, - {&__pyx_kp_s_Bad_Object_TA_BAD_OBJECT, __pyx_k_Bad_Object_TA_BAD_OBJECT, sizeof(__pyx_k_Bad_Object_TA_BAD_OBJECT), 0, 0, 1, 0}, - {&__pyx_kp_s_Bad_Parameter_TA_BAD_PARAM, __pyx_k_Bad_Parameter_TA_BAD_PARAM, sizeof(__pyx_k_Bad_Parameter_TA_BAD_PARAM), 0, 0, 1, 0}, - {&__pyx_n_s_CMO, __pyx_k_CMO, sizeof(__pyx_k_CMO), 0, 0, 1, 1}, - {&__pyx_n_s_DEMA, __pyx_k_DEMA, sizeof(__pyx_k_DEMA), 0, 0, 1, 1}, - {&__pyx_n_s_DX, __pyx_k_DX, sizeof(__pyx_k_DX), 0, 0, 1, 1}, - {&__pyx_kp_s_Double_Exponential_Moving_Averag, __pyx_k_Double_Exponential_Moving_Averag, sizeof(__pyx_k_Double_Exponential_Moving_Averag), 0, 0, 1, 0}, - {&__pyx_n_s_EMA, __pyx_k_EMA, sizeof(__pyx_k_EMA), 0, 0, 1, 1}, - {&__pyx_n_s_Exception, __pyx_k_Exception, sizeof(__pyx_k_Exception), 0, 0, 1, 1}, - {&__pyx_kp_s_Exponential_Moving_Average, __pyx_k_Exponential_Moving_Average, sizeof(__pyx_k_Exponential_Moving_Average), 0, 0, 1, 0}, - {&__pyx_kp_s_Function_Not_Found_TA_FUNC_NOT_F, __pyx_k_Function_Not_Found_TA_FUNC_NOT_F, sizeof(__pyx_k_Function_Not_Found_TA_FUNC_NOT_F), 0, 0, 1, 0}, - {&__pyx_kp_s_Group_Not_Found_TA_GROUP_NOT_FOU, __pyx_k_Group_Not_Found_TA_GROUP_NOT_FOU, sizeof(__pyx_k_Group_Not_Found_TA_GROUP_NOT_FOU), 0, 0, 1, 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_kp_s_Input_Not_All_Initialized_TA_INP, __pyx_k_Input_Not_All_Initialized_TA_INP, sizeof(__pyx_k_Input_Not_All_Initialized_TA_INP), 0, 0, 1, 0}, - {&__pyx_kp_s_Internal_Error_TA_INTERNAL_ERROR, __pyx_k_Internal_Error_TA_INTERNAL_ERROR, sizeof(__pyx_k_Internal_Error_TA_INTERNAL_ERROR), 0, 0, 1, 0}, - {&__pyx_kp_s_Invalid_Handle_TA_INVALID_HANDLE, __pyx_k_Invalid_Handle_TA_INVALID_HANDLE, sizeof(__pyx_k_Invalid_Handle_TA_INVALID_HANDLE), 0, 0, 1, 0}, - {&__pyx_kp_s_Invalid_List_Type_TA_INVALID_LIS, __pyx_k_Invalid_List_Type_TA_INVALID_LIS, sizeof(__pyx_k_Invalid_List_Type_TA_INVALID_LIS), 0, 0, 1, 0}, - {&__pyx_kp_s_Invalid_Parameter_Function_TA_IN, __pyx_k_Invalid_Parameter_Function_TA_IN, sizeof(__pyx_k_Invalid_Parameter_Function_TA_IN), 0, 0, 1, 0}, - {&__pyx_kp_s_Invalid_Parameter_Holder_TA_INVA, __pyx_k_Invalid_Parameter_Holder_TA_INVA, sizeof(__pyx_k_Invalid_Parameter_Holder_TA_INVA), 0, 0, 1, 0}, - {&__pyx_kp_s_Invalid_Parameter_Holder_Type_TA, __pyx_k_Invalid_Parameter_Holder_Type_TA, sizeof(__pyx_k_Invalid_Parameter_Holder_Type_TA), 0, 0, 1, 0}, - {&__pyx_n_s_KAMA, __pyx_k_KAMA, sizeof(__pyx_k_KAMA), 0, 0, 1, 1}, - {&__pyx_kp_s_Kaufman_Adaptive_Moving_Average, __pyx_k_Kaufman_Adaptive_Moving_Average, sizeof(__pyx_k_Kaufman_Adaptive_Moving_Average), 0, 0, 1, 0}, - {&__pyx_kp_s_Library_Not_Initialized_TA_LIB_N, __pyx_k_Library_Not_Initialized_TA_LIB_N, sizeof(__pyx_k_Library_Not_Initialized_TA_LIB_N), 0, 0, 1, 0}, - {&__pyx_n_s_MAMA, __pyx_k_MAMA, sizeof(__pyx_k_MAMA), 0, 0, 1, 1}, - {&__pyx_n_s_MA_Type, __pyx_k_MA_Type, sizeof(__pyx_k_MA_Type), 0, 0, 1, 1}, - {&__pyx_n_s_MA_Type___getitem, __pyx_k_MA_Type___getitem, sizeof(__pyx_k_MA_Type___getitem), 0, 0, 1, 1}, - {&__pyx_n_s_MA_Type___init, __pyx_k_MA_Type___init, sizeof(__pyx_k_MA_Type___init), 0, 0, 1, 1}, - {&__pyx_kp_s_MESA_Adaptive_Moving_Average, __pyx_k_MESA_Adaptive_Moving_Average, sizeof(__pyx_k_MESA_Adaptive_Moving_Average), 0, 0, 1, 0}, - {&__pyx_n_s_MFI, __pyx_k_MFI, sizeof(__pyx_k_MFI), 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_NATR, __pyx_k_NATR, sizeof(__pyx_k_NATR), 0, 0, 1, 1}, - {&__pyx_n_s_NONE, __pyx_k_NONE, sizeof(__pyx_k_NONE), 0, 0, 1, 1}, - {&__pyx_kp_s_Not_Supported_TA_NOT_SUPPORTED, __pyx_k_Not_Supported_TA_NOT_SUPPORTED, sizeof(__pyx_k_Not_Supported_TA_NOT_SUPPORTED), 0, 0, 1, 0}, - {&__pyx_kp_s_Out_of_Range_End_Index_TA_OUT_OF, __pyx_k_Out_of_Range_End_Index_TA_OUT_OF, sizeof(__pyx_k_Out_of_Range_End_Index_TA_OUT_OF), 0, 0, 1, 0}, - {&__pyx_kp_s_Out_of_Range_Start_Index_TA_OUT, __pyx_k_Out_of_Range_Start_Index_TA_OUT, sizeof(__pyx_k_Out_of_Range_Start_Index_TA_OUT), 0, 0, 1, 0}, - {&__pyx_kp_s_Output_Not_All_Initialized_TA_OU, __pyx_k_Output_Not_All_Initialized_TA_OU, sizeof(__pyx_k_Output_Not_All_Initialized_TA_OU), 0, 0, 1, 0}, - {&__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_RSI, __pyx_k_RSI, sizeof(__pyx_k_RSI), 0, 0, 1, 1}, - {&__pyx_n_s_SMA, __pyx_k_SMA, sizeof(__pyx_k_SMA), 0, 0, 1, 1}, - {&__pyx_n_s_STOCHRSI, __pyx_k_STOCHRSI, sizeof(__pyx_k_STOCHRSI), 0, 0, 1, 1}, - {&__pyx_kp_s_Simple_Moving_Average, __pyx_k_Simple_Moving_Average, sizeof(__pyx_k_Simple_Moving_Average), 0, 0, 1, 0}, - {&__pyx_n_s_Success, __pyx_k_Success, sizeof(__pyx_k_Success), 0, 0, 1, 1}, - {&__pyx_n_s_T3, __pyx_k_T3, sizeof(__pyx_k_T3), 0, 0, 1, 1}, - {&__pyx_n_s_TA_Initialize, __pyx_k_TA_Initialize, sizeof(__pyx_k_TA_Initialize), 0, 0, 1, 1}, - {&__pyx_n_s_TA_SetUnstablePeriod, __pyx_k_TA_SetUnstablePeriod, sizeof(__pyx_k_TA_SetUnstablePeriod), 0, 0, 1, 1}, - {&__pyx_n_s_TA_Shutdown, __pyx_k_TA_Shutdown, sizeof(__pyx_k_TA_Shutdown), 0, 0, 1, 1}, - {&__pyx_n_s_TEMA, __pyx_k_TEMA, sizeof(__pyx_k_TEMA), 0, 0, 1, 1}, - {&__pyx_n_s_TRIMA, __pyx_k_TRIMA, sizeof(__pyx_k_TRIMA), 0, 0, 1, 1}, - {&__pyx_kp_s_Triangular_Moving_Average, __pyx_k_Triangular_Moving_Average, sizeof(__pyx_k_Triangular_Moving_Average), 0, 0, 1, 0}, - {&__pyx_kp_s_Triple_Exponential_Moving_Averag, __pyx_k_Triple_Exponential_Moving_Averag, sizeof(__pyx_k_Triple_Exponential_Moving_Averag), 0, 0, 1, 0}, - {&__pyx_kp_s_Triple_Generalized_Double_Expone, __pyx_k_Triple_Generalized_Double_Expone, sizeof(__pyx_k_Triple_Generalized_Double_Expone), 0, 0, 1, 0}, - {&__pyx_kp_s_Unknown_Error_TA_UNKNOWN_ERR, __pyx_k_Unknown_Error_TA_UNKNOWN_ERR, sizeof(__pyx_k_Unknown_Error_TA_UNKNOWN_ERR), 0, 0, 1, 0}, - {&__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_WMA, __pyx_k_WMA, sizeof(__pyx_k_WMA), 0, 0, 1, 1}, - {&__pyx_kp_s_Weighted_Moving_Average, __pyx_k_Weighted_Moving_Average, sizeof(__pyx_k_Weighted_Moving_Average), 0, 0, 1, 0}, - {&__pyx_n_s_doc, __pyx_k_doc, sizeof(__pyx_k_doc), 0, 0, 1, 1}, - {&__pyx_n_s_enumerate, __pyx_k_enumerate, sizeof(__pyx_k_enumerate), 0, 0, 1, 1}, - {&__pyx_n_s_function_name, __pyx_k_function_name, sizeof(__pyx_k_function_name), 0, 0, 1, 1}, - {&__pyx_n_s_getitem, __pyx_k_getitem, sizeof(__pyx_k_getitem), 0, 0, 1, 1}, - {&__pyx_n_s_i, __pyx_k_i, sizeof(__pyx_k_i), 0, 0, 1, 1}, - {&__pyx_n_s_id, __pyx_k_id, sizeof(__pyx_k_id), 0, 0, 1, 1}, - {&__pyx_n_s_init, __pyx_k_init, sizeof(__pyx_k_init), 0, 0, 1, 1}, - {&__pyx_n_s_lookup, __pyx_k_lookup, sizeof(__pyx_k_lookup), 0, 0, 1, 1}, - {&__pyx_n_s_main, __pyx_k_main, sizeof(__pyx_k_main), 0, 0, 1, 1}, - {&__pyx_n_s_metaclass, __pyx_k_metaclass, sizeof(__pyx_k_metaclass), 0, 0, 1, 1}, - {&__pyx_n_s_module, __pyx_k_module, sizeof(__pyx_k_module), 0, 0, 1, 1}, - {&__pyx_n_s_name, __pyx_k_name, sizeof(__pyx_k_name), 0, 0, 1, 1}, - {&__pyx_n_s_object, __pyx_k_object, sizeof(__pyx_k_object), 0, 0, 1, 1}, - {&__pyx_n_s_period, __pyx_k_period, sizeof(__pyx_k_period), 0, 0, 1, 1}, - {&__pyx_n_s_prepare, __pyx_k_prepare, sizeof(__pyx_k_prepare), 0, 0, 1, 1}, - {&__pyx_n_s_qualname, __pyx_k_qualname, sizeof(__pyx_k_qualname), 0, 0, 1, 1}, - {&__pyx_n_s_range, __pyx_k_range, sizeof(__pyx_k_range), 0, 0, 1, 1}, - {&__pyx_n_s_ret_code, __pyx_k_ret_code, sizeof(__pyx_k_ret_code), 0, 0, 1, 1}, - {&__pyx_kp_s_s_function_failed_with_error_co, __pyx_k_s_function_failed_with_error_co, sizeof(__pyx_k_s_function_failed_with_error_co), 0, 0, 1, 0}, - {&__pyx_n_s_self, __pyx_k_self, sizeof(__pyx_k_self), 0, 0, 1, 1}, - {&__pyx_n_s_ta_func_unst_ids, __pyx_k_ta_func_unst_ids, sizeof(__pyx_k_ta_func_unst_ids), 0, 0, 1, 1}, - {&__pyx_n_s_ta_get_unstable_period, __pyx_k_ta_get_unstable_period, sizeof(__pyx_k_ta_get_unstable_period), 0, 0, 1, 1}, - {&__pyx_n_s_ta_initialize, __pyx_k_ta_initialize, sizeof(__pyx_k_ta_initialize), 0, 0, 1, 1}, - {&__pyx_n_s_ta_set_unstable_period, __pyx_k_ta_set_unstable_period, sizeof(__pyx_k_ta_set_unstable_period), 0, 0, 1, 1}, - {&__pyx_n_s_ta_shutdown, __pyx_k_ta_shutdown, sizeof(__pyx_k_ta_shutdown), 0, 0, 1, 1}, - {&__pyx_n_s_ta_version, __pyx_k_ta_version, sizeof(__pyx_k_ta_version), 0, 0, 1, 1}, - {&__pyx_n_s_talib_common, __pyx_k_talib_common, sizeof(__pyx_k_talib_common), 0, 0, 1, 1}, - {&__pyx_n_s_test, __pyx_k_test, sizeof(__pyx_k_test), 0, 0, 1, 1}, - {&__pyx_n_s_type, __pyx_k_type, sizeof(__pyx_k_type), 0, 0, 1, 1}, - {0, 0, 0, 0, 0, 0, 0} -}; -static int __Pyx_InitCachedBuiltins(void) { - __pyx_builtin_object = __Pyx_GetBuiltinName(__pyx_n_s_object); if (!__pyx_builtin_object) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 44; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __pyx_builtin_range = __Pyx_GetBuiltinName(__pyx_n_s_range); if (!__pyx_builtin_range) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 45; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __pyx_builtin_enumerate = __Pyx_GetBuiltinName(__pyx_n_s_enumerate); if (!__pyx_builtin_enumerate) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 66; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __pyx_builtin_Exception = __Pyx_GetBuiltinName(__pyx_n_s_Exception); if (!__pyx_builtin_Exception) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 31; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - return 0; - __pyx_L1_error:; - return -1; -} - -static int __Pyx_InitCachedConstants(void) { - __Pyx_RefNannyDeclarations - __Pyx_RefNannySetupContext("__Pyx_InitCachedConstants", 0); - - /* "talib/common.pyx":34 - * function_name, ret_code, ta_errors[ret_code])) - * - * def _ta_initialize(): # <<<<<<<<<<<<<< - * cdef TA_RetCode ret_code - * ret_code = lib.TA_Initialize() - */ - __pyx_tuple_ = PyTuple_Pack(1, __pyx_n_s_ret_code); if (unlikely(!__pyx_tuple_)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 34; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_tuple_); - __Pyx_GIVEREF(__pyx_tuple_); - __pyx_codeobj__2 = (PyObject*)__Pyx_PyCode_New(0, 0, 1, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple_, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_ta_initialize, 34, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 34; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - - /* "talib/common.pyx":39 - * _ta_check_success('TA_Initialize', ret_code) - * - * def _ta_shutdown(): # <<<<<<<<<<<<<< - * cdef TA_RetCode ret_code - * ret_code = lib.TA_Shutdown() - */ - __pyx_tuple__3 = PyTuple_Pack(1, __pyx_n_s_ret_code); if (unlikely(!__pyx_tuple__3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 39; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_tuple__3); - __Pyx_GIVEREF(__pyx_tuple__3); - __pyx_codeobj__4 = (PyObject*)__Pyx_PyCode_New(0, 0, 1, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__3, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_ta_shutdown, 39, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 39; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - - /* "talib/common.pyx":45 - * - * class MA_Type(object): - * SMA, EMA, WMA, DEMA, TEMA, TRIMA, KAMA, MAMA, T3 = range(9) # <<<<<<<<<<<<<< - * - * def __init__(self): - */ - __pyx_tuple__5 = PyTuple_Pack(1, __pyx_int_9); if (unlikely(!__pyx_tuple__5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 45; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_tuple__5); - __Pyx_GIVEREF(__pyx_tuple__5); - - /* "talib/common.pyx":47 - * SMA, EMA, WMA, DEMA, TEMA, TRIMA, KAMA, MAMA, T3 = range(9) - * - * def __init__(self): # <<<<<<<<<<<<<< - * self._lookup = { - * MA_Type.SMA: 'Simple Moving Average', - */ - __pyx_tuple__6 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 47; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_tuple__6); - __Pyx_GIVEREF(__pyx_tuple__6); - __pyx_codeobj__7 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__6, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_init, 47, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 47; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - - /* "talib/common.pyx":60 - * } - * - * def __getitem__(self, type_): # <<<<<<<<<<<<<< - * return self._lookup[type_] - * - */ - __pyx_tuple__8 = PyTuple_Pack(2, __pyx_n_s_self, __pyx_n_s_type); if (unlikely(!__pyx_tuple__8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 60; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_tuple__8); - __Pyx_GIVEREF(__pyx_tuple__8); - __pyx_codeobj__9 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__8, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_getitem, 60, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 60; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - - /* "talib/common.pyx":74 - * _ta_func_unst_ids[name] = i - * - * def _ta_set_unstable_period(name, period): # <<<<<<<<<<<<<< - * cdef TA_RetCode ret_code - * cdef TA_FuncUnstId id = _ta_func_unst_ids[name] - */ - __pyx_tuple__10 = PyTuple_Pack(4, __pyx_n_s_name, __pyx_n_s_period, __pyx_n_s_ret_code, __pyx_n_s_id); if (unlikely(!__pyx_tuple__10)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 74; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_tuple__10); - __Pyx_GIVEREF(__pyx_tuple__10); - __pyx_codeobj__11 = (PyObject*)__Pyx_PyCode_New(2, 0, 4, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__10, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_ta_set_unstable_period, 74, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__11)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 74; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - - /* "talib/common.pyx":80 - * _ta_check_success('TA_SetUnstablePeriod', ret_code) - * - * def _ta_get_unstable_period(name): # <<<<<<<<<<<<<< - * cdef unsigned int period - * cdef TA_FuncUnstId id = _ta_func_unst_ids[name] - */ - __pyx_tuple__12 = PyTuple_Pack(3, __pyx_n_s_name, __pyx_n_s_period, __pyx_n_s_id); if (unlikely(!__pyx_tuple__12)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 80; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_tuple__12); - __Pyx_GIVEREF(__pyx_tuple__12); - __pyx_codeobj__13 = (PyObject*)__Pyx_PyCode_New(1, 0, 3, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__12, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_ta_get_unstable_period, 80, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__13)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 80; __pyx_clineno = __LINE__; goto __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_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}; - __pyx_int_0 = PyInt_FromLong(0); if (unlikely(!__pyx_int_0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __pyx_int_1 = PyInt_FromLong(1); if (unlikely(!__pyx_int_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __pyx_int_2 = PyInt_FromLong(2); if (unlikely(!__pyx_int_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __pyx_int_3 = PyInt_FromLong(3); if (unlikely(!__pyx_int_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __pyx_int_4 = PyInt_FromLong(4); if (unlikely(!__pyx_int_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __pyx_int_5 = PyInt_FromLong(5); if (unlikely(!__pyx_int_5)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __pyx_int_6 = PyInt_FromLong(6); if (unlikely(!__pyx_int_6)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __pyx_int_7 = PyInt_FromLong(7); if (unlikely(!__pyx_int_7)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __pyx_int_8 = PyInt_FromLong(8); if (unlikely(!__pyx_int_8)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __pyx_int_9 = PyInt_FromLong(9); if (unlikely(!__pyx_int_9)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __pyx_int_10 = PyInt_FromLong(10); if (unlikely(!__pyx_int_10)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __pyx_int_11 = PyInt_FromLong(11); if (unlikely(!__pyx_int_11)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __pyx_int_12 = PyInt_FromLong(12); if (unlikely(!__pyx_int_12)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __pyx_int_13 = PyInt_FromLong(13); if (unlikely(!__pyx_int_13)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __pyx_int_14 = PyInt_FromLong(14); if (unlikely(!__pyx_int_14)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __pyx_int_15 = PyInt_FromLong(15); if (unlikely(!__pyx_int_15)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __pyx_int_16 = PyInt_FromLong(16); if (unlikely(!__pyx_int_16)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __pyx_int_5000 = PyInt_FromLong(5000); if (unlikely(!__pyx_int_5000)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __pyx_int_65535 = PyInt_FromLong(65535L); if (unlikely(!__pyx_int_65535)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __pyx_int_neg_1 = PyInt_FromLong(-1); if (unlikely(!__pyx_int_neg_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - return 0; - __pyx_L1_error:; - return -1; -} - -#if PY_MAJOR_VERSION < 3 -PyMODINIT_FUNC initcommon(void); /*proto*/ -PyMODINIT_FUNC initcommon(void) -#else -PyMODINIT_FUNC PyInit_common(void); /*proto*/ -PyMODINIT_FUNC PyInit_common(void) -#endif -{ - PyObject *__pyx_t_1 = NULL; - PyObject *__pyx_t_2 = NULL; - PyObject *__pyx_t_3 = NULL; - PyObject *__pyx_t_4 = NULL; - PyObject *__pyx_t_5 = NULL; - PyObject *__pyx_t_6 = NULL; - PyObject *__pyx_t_7 = NULL; - PyObject *__pyx_t_8 = NULL; - PyObject *__pyx_t_9 = NULL; - PyObject *__pyx_t_10 = NULL; - PyObject *__pyx_t_11 = NULL; - PyObject *__pyx_t_12 = NULL; - PyObject *__pyx_t_13 = NULL; - PyObject *__pyx_t_14 = NULL; - PyObject *(*__pyx_t_15)(PyObject *); - Py_ssize_t __pyx_t_16; - int __pyx_lineno = 0; - const char *__pyx_filename = NULL; - int __pyx_clineno = 0; - __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_common(void)", 0); - if (__Pyx_check_binary_version() < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __pyx_empty_tuple = PyTuple_New(0); if (unlikely(!__pyx_empty_tuple)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __pyx_empty_bytes = PyBytes_FromStringAndSize("", 0); if (unlikely(!__pyx_empty_bytes)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - #ifdef __Pyx_CyFunction_USED - if (__pyx_CyFunction_init() < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - #endif - #ifdef __Pyx_FusedFunction_USED - if (__pyx_FusedFunction_init() < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - #endif - #ifdef __Pyx_Coroutine_USED - if (__pyx_Coroutine_init() < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - #endif - #ifdef __Pyx_Generator_USED - if (__pyx_Generator_init() < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - #endif - #ifdef __Pyx_StopAsyncIteration_USED - if (__pyx_StopAsyncIteration_init() < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __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("common", __pyx_methods, 0, 0, PYTHON_API_VERSION); Py_XINCREF(__pyx_m); - #else - __pyx_m = PyModule_Create(&__pyx_moduledef); - #endif - if (unlikely(!__pyx_m)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __pyx_d = PyModule_GetDict(__pyx_m); if (unlikely(!__pyx_d)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - Py_INCREF(__pyx_d); - __pyx_b = PyImport_AddModule(__Pyx_BUILTIN_MODULE_NAME); if (unlikely(!__pyx_b)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - #if CYTHON_COMPILING_IN_PYPY - Py_INCREF(__pyx_b); - #endif - if (PyObject_SetAttrString(__pyx_m, "__builtins__", __pyx_b) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;}; - /*--- Initialize various global constants etc. ---*/ - if (__Pyx_InitGlobals() < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __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_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - #endif - if (__pyx_module_is_main_talib__common) { - if (PyObject_SetAttrString(__pyx_m, "__name__", __pyx_n_s_main) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - } - #if PY_MAJOR_VERSION >= 3 - { - PyObject *modules = PyImport_GetModuleDict(); if (unlikely(!modules)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - if (!PyDict_GetItemString(modules, "talib.common")) { - if (unlikely(PyDict_SetItemString(modules, "talib.common", __pyx_m) < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - } - } - #endif - /*--- Builtin init code ---*/ - if (__Pyx_InitCachedBuiltins() < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - /*--- Constants init code ---*/ - if (__Pyx_InitCachedConstants() < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - /*--- Global init code ---*/ - /*--- Variable export code ---*/ - /*--- Function export code ---*/ - if (__Pyx_ExportFunction("_ta_check_success", (void (*)(void))__pyx_f_5talib_6common__ta_check_success, "PyObject *(PyObject *, TA_RetCode, int __pyx_skip_dispatch)") < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - /*--- Type init code ---*/ - /*--- Type import code ---*/ - /*--- Variable import code ---*/ - /*--- Function import code ---*/ - /*--- Execution code ---*/ - #if defined(__Pyx_Generator_USED) || defined(__Pyx_Coroutine_USED) - if (__Pyx_patch_abc() < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - #endif - - /* "talib/common.pyx":5 - * from libta_lib cimport TA_RetCode, TA_FuncUnstId - * - * __ta_version__ = lib.TA_GetVersionString() # <<<<<<<<<<<<<< - * - * cpdef _ta_check_success(str function_name, TA_RetCode ret_code): - */ - __pyx_t_1 = __Pyx_PyBytes_FromString(TA_GetVersionString()); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 5; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_ta_version, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 5; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - - /* "talib/common.pyx":34 - * function_name, ret_code, ta_errors[ret_code])) - * - * def _ta_initialize(): # <<<<<<<<<<<<<< - * cdef TA_RetCode ret_code - * ret_code = lib.TA_Initialize() - */ - __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_5talib_6common_3_ta_initialize, NULL, __pyx_n_s_talib_common); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 34; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_ta_initialize, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 34; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - - /* "talib/common.pyx":39 - * _ta_check_success('TA_Initialize', ret_code) - * - * def _ta_shutdown(): # <<<<<<<<<<<<<< - * cdef TA_RetCode ret_code - * ret_code = lib.TA_Shutdown() - */ - __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_5talib_6common_5_ta_shutdown, NULL, __pyx_n_s_talib_common); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 39; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_ta_shutdown, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 39; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - - /* "talib/common.pyx":44 - * _ta_check_success('TA_Shutdown', ret_code) - * - * class MA_Type(object): # <<<<<<<<<<<<<< - * SMA, EMA, WMA, DEMA, TEMA, TRIMA, KAMA, MAMA, T3 = range(9) - * - */ - __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 44; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - __Pyx_INCREF(__pyx_builtin_object); - __Pyx_GIVEREF(__pyx_builtin_object); - PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_builtin_object); - __pyx_t_2 = __Pyx_CalculateMetaclass(NULL, __pyx_t_1); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 44; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __pyx_t_3 = __Pyx_Py3MetaclassPrepare(__pyx_t_2, __pyx_t_1, __pyx_n_s_MA_Type, __pyx_n_s_MA_Type, (PyObject *) NULL, __pyx_n_s_talib_common, (PyObject *) NULL); if (unlikely(!__pyx_t_3)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 44; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_3); - - /* "talib/common.pyx":45 - * - * class MA_Type(object): - * SMA, EMA, WMA, DEMA, TEMA, TRIMA, KAMA, MAMA, T3 = range(9) # <<<<<<<<<<<<<< - * - * def __init__(self): - */ - __pyx_t_4 = __Pyx_PyObject_Call(__pyx_builtin_range, __pyx_tuple__5, NULL); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 45; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_4); - if ((likely(PyTuple_CheckExact(__pyx_t_4))) || (PyList_CheckExact(__pyx_t_4))) { - PyObject* sequence = __pyx_t_4; - #if CYTHON_COMPILING_IN_CPYTHON - Py_ssize_t size = Py_SIZE(sequence); - #else - Py_ssize_t size = PySequence_Size(sequence); - #endif - if (unlikely(size != 9)) { - if (size > 9) __Pyx_RaiseTooManyValuesError(9); - else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size); - {__pyx_filename = __pyx_f[0]; __pyx_lineno = 45; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - } - #if CYTHON_COMPILING_IN_CPYTHON - if (likely(PyTuple_CheckExact(sequence))) { - __pyx_t_5 = PyTuple_GET_ITEM(sequence, 0); - __pyx_t_6 = PyTuple_GET_ITEM(sequence, 1); - __pyx_t_7 = PyTuple_GET_ITEM(sequence, 2); - __pyx_t_8 = PyTuple_GET_ITEM(sequence, 3); - __pyx_t_9 = PyTuple_GET_ITEM(sequence, 4); - __pyx_t_10 = PyTuple_GET_ITEM(sequence, 5); - __pyx_t_11 = PyTuple_GET_ITEM(sequence, 6); - __pyx_t_12 = PyTuple_GET_ITEM(sequence, 7); - __pyx_t_13 = PyTuple_GET_ITEM(sequence, 8); - } else { - __pyx_t_5 = PyList_GET_ITEM(sequence, 0); - __pyx_t_6 = PyList_GET_ITEM(sequence, 1); - __pyx_t_7 = PyList_GET_ITEM(sequence, 2); - __pyx_t_8 = PyList_GET_ITEM(sequence, 3); - __pyx_t_9 = PyList_GET_ITEM(sequence, 4); - __pyx_t_10 = PyList_GET_ITEM(sequence, 5); - __pyx_t_11 = PyList_GET_ITEM(sequence, 6); - __pyx_t_12 = PyList_GET_ITEM(sequence, 7); - __pyx_t_13 = PyList_GET_ITEM(sequence, 8); - } - __Pyx_INCREF(__pyx_t_5); - __Pyx_INCREF(__pyx_t_6); - __Pyx_INCREF(__pyx_t_7); - __Pyx_INCREF(__pyx_t_8); - __Pyx_INCREF(__pyx_t_9); - __Pyx_INCREF(__pyx_t_10); - __Pyx_INCREF(__pyx_t_11); - __Pyx_INCREF(__pyx_t_12); - __Pyx_INCREF(__pyx_t_13); - #else - { - Py_ssize_t i; - PyObject** temps[9] = {&__pyx_t_5,&__pyx_t_6,&__pyx_t_7,&__pyx_t_8,&__pyx_t_9,&__pyx_t_10,&__pyx_t_11,&__pyx_t_12,&__pyx_t_13}; - for (i=0; i < 9; i++) { - PyObject* item = PySequence_ITEM(sequence, i); if (unlikely(!item)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 45; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(item); - *(temps[i]) = item; - } - } - #endif - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - } else { - Py_ssize_t index = -1; - PyObject** temps[9] = {&__pyx_t_5,&__pyx_t_6,&__pyx_t_7,&__pyx_t_8,&__pyx_t_9,&__pyx_t_10,&__pyx_t_11,&__pyx_t_12,&__pyx_t_13}; - __pyx_t_14 = PyObject_GetIter(__pyx_t_4); if (unlikely(!__pyx_t_14)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 45; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_14); - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __pyx_t_15 = Py_TYPE(__pyx_t_14)->tp_iternext; - for (index=0; index < 9; index++) { - PyObject* item = __pyx_t_15(__pyx_t_14); if (unlikely(!item)) goto __pyx_L2_unpacking_failed; - __Pyx_GOTREF(item); - *(temps[index]) = item; - } - if (__Pyx_IternextUnpackEndCheck(__pyx_t_15(__pyx_t_14), 9) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 45; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __pyx_t_15 = NULL; - __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0; - goto __pyx_L3_unpacking_done; - __pyx_L2_unpacking_failed:; - __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0; - __pyx_t_15 = NULL; - if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index); - {__pyx_filename = __pyx_f[0]; __pyx_lineno = 45; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __pyx_L3_unpacking_done:; - } - if (PyObject_SetItem(__pyx_t_3, __pyx_n_s_SMA, __pyx_t_5) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 45; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; - if (PyObject_SetItem(__pyx_t_3, __pyx_n_s_EMA, __pyx_t_6) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 45; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; - if (PyObject_SetItem(__pyx_t_3, __pyx_n_s_WMA, __pyx_t_7) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 45; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; - if (PyObject_SetItem(__pyx_t_3, __pyx_n_s_DEMA, __pyx_t_8) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 45; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; - if (PyObject_SetItem(__pyx_t_3, __pyx_n_s_TEMA, __pyx_t_9) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 45; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; - if (PyObject_SetItem(__pyx_t_3, __pyx_n_s_TRIMA, __pyx_t_10) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 45; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; - if (PyObject_SetItem(__pyx_t_3, __pyx_n_s_KAMA, __pyx_t_11) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 45; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; - if (PyObject_SetItem(__pyx_t_3, __pyx_n_s_MAMA, __pyx_t_12) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 45; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0; - if (PyObject_SetItem(__pyx_t_3, __pyx_n_s_T3, __pyx_t_13) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 45; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0; - - /* "talib/common.pyx":47 - * SMA, EMA, WMA, DEMA, TEMA, TRIMA, KAMA, MAMA, T3 = range(9) - * - * def __init__(self): # <<<<<<<<<<<<<< - * self._lookup = { - * MA_Type.SMA: 'Simple Moving Average', - */ - __pyx_t_4 = __Pyx_CyFunction_NewEx(&__pyx_mdef_5talib_6common_7MA_Type_1__init__, 0, __pyx_n_s_MA_Type___init, NULL, __pyx_n_s_talib_common, __pyx_d, ((PyObject *)__pyx_codeobj__7)); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 47; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_4); - if (PyObject_SetItem(__pyx_t_3, __pyx_n_s_init, __pyx_t_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 47; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - - /* "talib/common.pyx":60 - * } - * - * def __getitem__(self, type_): # <<<<<<<<<<<<<< - * return self._lookup[type_] - * - */ - __pyx_t_4 = __Pyx_CyFunction_NewEx(&__pyx_mdef_5talib_6common_7MA_Type_3__getitem__, 0, __pyx_n_s_MA_Type___getitem, NULL, __pyx_n_s_talib_common, __pyx_d, ((PyObject *)__pyx_codeobj__9)); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 60; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_4); - if (PyObject_SetItem(__pyx_t_3, __pyx_n_s_getitem, __pyx_t_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 60; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - - /* "talib/common.pyx":44 - * _ta_check_success('TA_Shutdown', ret_code) - * - * class MA_Type(object): # <<<<<<<<<<<<<< - * SMA, EMA, WMA, DEMA, TEMA, TRIMA, KAMA, MAMA, T3 = range(9) - * - */ - __pyx_t_4 = __Pyx_Py3ClassCreate(__pyx_t_2, __pyx_n_s_MA_Type, __pyx_t_1, __pyx_t_3, NULL, 0, 1); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 44; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_4); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_MA_Type, __pyx_t_4) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 44; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - - /* "talib/common.pyx":63 - * return self._lookup[type_] - * - * MA_Type = MA_Type() # <<<<<<<<<<<<<< - * - * _ta_func_unst_ids = {'NONE': -1} - */ - __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_MA_Type); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 63; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __pyx_t_3 = NULL; - if (CYTHON_COMPILING_IN_CPYTHON && unlikely(PyMethod_Check(__pyx_t_2))) { - __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); - if (likely(__pyx_t_3)) { - PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); - __Pyx_INCREF(__pyx_t_3); - __Pyx_INCREF(function); - __Pyx_DECREF_SET(__pyx_t_2, function); - } - } - if (__pyx_t_3) { - __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 63; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - } else { - __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_2); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 63; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - } - __Pyx_GOTREF(__pyx_t_1); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - if (PyDict_SetItem(__pyx_d, __pyx_n_s_MA_Type, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 63; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - - /* "talib/common.pyx":65 - * MA_Type = MA_Type() - * - * _ta_func_unst_ids = {'NONE': -1} # <<<<<<<<<<<<<< - * for i, name in enumerate([ - * 'ADX', 'ADXR', 'ATR', 'CMO', 'DX', 'EMA', 'HT_DCPERIOD', - */ - __pyx_t_1 = PyDict_New(); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 65; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_NONE, __pyx_int_neg_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 65; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - if (PyDict_SetItem(__pyx_d, __pyx_n_s_ta_func_unst_ids, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 65; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - - /* "talib/common.pyx":66 - * - * _ta_func_unst_ids = {'NONE': -1} - * for i, name in enumerate([ # <<<<<<<<<<<<<< - * 'ADX', 'ADXR', 'ATR', 'CMO', 'DX', 'EMA', 'HT_DCPERIOD', - * 'HT_DCPHASE', 'HT_PHASOR', 'HT_SINE', 'HT_TRENDLINE', - */ - __Pyx_INCREF(__pyx_int_0); - __pyx_t_1 = __pyx_int_0; - __pyx_t_2 = PyList_New(24); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 66; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __Pyx_INCREF(__pyx_n_s_ADX); - __Pyx_GIVEREF(__pyx_n_s_ADX); - PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_ADX); - __Pyx_INCREF(__pyx_n_s_ADXR); - __Pyx_GIVEREF(__pyx_n_s_ADXR); - PyList_SET_ITEM(__pyx_t_2, 1, __pyx_n_s_ADXR); - __Pyx_INCREF(__pyx_n_s_ATR); - __Pyx_GIVEREF(__pyx_n_s_ATR); - PyList_SET_ITEM(__pyx_t_2, 2, __pyx_n_s_ATR); - __Pyx_INCREF(__pyx_n_s_CMO); - __Pyx_GIVEREF(__pyx_n_s_CMO); - PyList_SET_ITEM(__pyx_t_2, 3, __pyx_n_s_CMO); - __Pyx_INCREF(__pyx_n_s_DX); - __Pyx_GIVEREF(__pyx_n_s_DX); - PyList_SET_ITEM(__pyx_t_2, 4, __pyx_n_s_DX); - __Pyx_INCREF(__pyx_n_s_EMA); - __Pyx_GIVEREF(__pyx_n_s_EMA); - PyList_SET_ITEM(__pyx_t_2, 5, __pyx_n_s_EMA); - __Pyx_INCREF(__pyx_n_s_HT_DCPERIOD); - __Pyx_GIVEREF(__pyx_n_s_HT_DCPERIOD); - PyList_SET_ITEM(__pyx_t_2, 6, __pyx_n_s_HT_DCPERIOD); - __Pyx_INCREF(__pyx_n_s_HT_DCPHASE); - __Pyx_GIVEREF(__pyx_n_s_HT_DCPHASE); - PyList_SET_ITEM(__pyx_t_2, 7, __pyx_n_s_HT_DCPHASE); - __Pyx_INCREF(__pyx_n_s_HT_PHASOR); - __Pyx_GIVEREF(__pyx_n_s_HT_PHASOR); - PyList_SET_ITEM(__pyx_t_2, 8, __pyx_n_s_HT_PHASOR); - __Pyx_INCREF(__pyx_n_s_HT_SINE); - __Pyx_GIVEREF(__pyx_n_s_HT_SINE); - PyList_SET_ITEM(__pyx_t_2, 9, __pyx_n_s_HT_SINE); - __Pyx_INCREF(__pyx_n_s_HT_TRENDLINE); - __Pyx_GIVEREF(__pyx_n_s_HT_TRENDLINE); - PyList_SET_ITEM(__pyx_t_2, 10, __pyx_n_s_HT_TRENDLINE); - __Pyx_INCREF(__pyx_n_s_HT_TRENDMODE); - __Pyx_GIVEREF(__pyx_n_s_HT_TRENDMODE); - PyList_SET_ITEM(__pyx_t_2, 11, __pyx_n_s_HT_TRENDMODE); - __Pyx_INCREF(__pyx_n_s_KAMA); - __Pyx_GIVEREF(__pyx_n_s_KAMA); - PyList_SET_ITEM(__pyx_t_2, 12, __pyx_n_s_KAMA); - __Pyx_INCREF(__pyx_n_s_MAMA); - __Pyx_GIVEREF(__pyx_n_s_MAMA); - PyList_SET_ITEM(__pyx_t_2, 13, __pyx_n_s_MAMA); - __Pyx_INCREF(__pyx_n_s_MFI); - __Pyx_GIVEREF(__pyx_n_s_MFI); - PyList_SET_ITEM(__pyx_t_2, 14, __pyx_n_s_MFI); - __Pyx_INCREF(__pyx_n_s_MINUS_DI); - __Pyx_GIVEREF(__pyx_n_s_MINUS_DI); - PyList_SET_ITEM(__pyx_t_2, 15, __pyx_n_s_MINUS_DI); - __Pyx_INCREF(__pyx_n_s_MINUS_DM); - __Pyx_GIVEREF(__pyx_n_s_MINUS_DM); - PyList_SET_ITEM(__pyx_t_2, 16, __pyx_n_s_MINUS_DM); - __Pyx_INCREF(__pyx_n_s_NATR); - __Pyx_GIVEREF(__pyx_n_s_NATR); - PyList_SET_ITEM(__pyx_t_2, 17, __pyx_n_s_NATR); - __Pyx_INCREF(__pyx_n_s_PLUS_DI); - __Pyx_GIVEREF(__pyx_n_s_PLUS_DI); - PyList_SET_ITEM(__pyx_t_2, 18, __pyx_n_s_PLUS_DI); - __Pyx_INCREF(__pyx_n_s_PLUS_DM); - __Pyx_GIVEREF(__pyx_n_s_PLUS_DM); - PyList_SET_ITEM(__pyx_t_2, 19, __pyx_n_s_PLUS_DM); - __Pyx_INCREF(__pyx_n_s_RSI); - __Pyx_GIVEREF(__pyx_n_s_RSI); - PyList_SET_ITEM(__pyx_t_2, 20, __pyx_n_s_RSI); - __Pyx_INCREF(__pyx_n_s_STOCHRSI); - __Pyx_GIVEREF(__pyx_n_s_STOCHRSI); - PyList_SET_ITEM(__pyx_t_2, 21, __pyx_n_s_STOCHRSI); - __Pyx_INCREF(__pyx_n_s_T3); - __Pyx_GIVEREF(__pyx_n_s_T3); - PyList_SET_ITEM(__pyx_t_2, 22, __pyx_n_s_T3); - __Pyx_INCREF(__pyx_n_s_ALL); - __Pyx_GIVEREF(__pyx_n_s_ALL); - PyList_SET_ITEM(__pyx_t_2, 23, __pyx_n_s_ALL); - __pyx_t_3 = __pyx_t_2; __Pyx_INCREF(__pyx_t_3); __pyx_t_16 = 0; - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - for (;;) { - if (__pyx_t_16 >= 24) break; - #if CYTHON_COMPILING_IN_CPYTHON - __pyx_t_2 = PyList_GET_ITEM(__pyx_t_3, __pyx_t_16); __Pyx_INCREF(__pyx_t_2); __pyx_t_16++; if (unlikely(0 < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 66; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - #else - __pyx_t_2 = PySequence_ITEM(__pyx_t_3, __pyx_t_16); __pyx_t_16++; if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 66; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - #endif - if (PyDict_SetItem(__pyx_d, __pyx_n_s_name, __pyx_t_2) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 66; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - if (PyDict_SetItem(__pyx_d, __pyx_n_s_i, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 66; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __pyx_t_2 = __Pyx_PyInt_AddObjC(__pyx_t_1, __pyx_int_1, 1, 0); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 66; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_1); - __pyx_t_1 = __pyx_t_2; - __pyx_t_2 = 0; - - /* "talib/common.pyx":72 - * 'NATR', 'PLUS_DI', 'PLUS_DM', 'RSI', 'STOCHRSI', 'T3', 'ALL' - * ]): - * _ta_func_unst_ids[name] = i # <<<<<<<<<<<<<< - * - * def _ta_set_unstable_period(name, period): - */ - __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_i); if (unlikely(!__pyx_t_2)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 72; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_2); - __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_ta_func_unst_ids); if (unlikely(!__pyx_t_4)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 72; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_4); - __pyx_t_13 = __Pyx_GetModuleGlobalName(__pyx_n_s_name); if (unlikely(!__pyx_t_13)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 72; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_13); - if (unlikely(PyObject_SetItem(__pyx_t_4, __pyx_t_13, __pyx_t_2) < 0)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 72; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; - __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0; - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/common.pyx":66 - * - * _ta_func_unst_ids = {'NONE': -1} - * for i, name in enumerate([ # <<<<<<<<<<<<<< - * 'ADX', 'ADXR', 'ATR', 'CMO', 'DX', 'EMA', 'HT_DCPERIOD', - * 'HT_DCPHASE', 'HT_PHASOR', 'HT_SINE', 'HT_TRENDLINE', - */ - } - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - - /* "talib/common.pyx":74 - * _ta_func_unst_ids[name] = i - * - * def _ta_set_unstable_period(name, period): # <<<<<<<<<<<<<< - * cdef TA_RetCode ret_code - * cdef TA_FuncUnstId id = _ta_func_unst_ids[name] - */ - __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_5talib_6common_7_ta_set_unstable_period, NULL, __pyx_n_s_talib_common); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 74; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_ta_set_unstable_period, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 74; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - - /* "talib/common.pyx":80 - * _ta_check_success('TA_SetUnstablePeriod', ret_code) - * - * def _ta_get_unstable_period(name): # <<<<<<<<<<<<<< - * cdef unsigned int period - * cdef TA_FuncUnstId id = _ta_func_unst_ids[name] - */ - __pyx_t_1 = PyCFunction_NewEx(&__pyx_mdef_5talib_6common_9_ta_get_unstable_period, NULL, __pyx_n_s_talib_common); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 80; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_ta_get_unstable_period, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 80; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - - /* "talib/common.pyx":2 - * - * cimport libta_lib as lib # <<<<<<<<<<<<<< - * from libta_lib cimport TA_RetCode, TA_FuncUnstId - * - */ - __pyx_t_1 = PyDict_New(); if (unlikely(!__pyx_t_1)) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_GOTREF(__pyx_t_1); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_test, __pyx_t_1) < 0) {__pyx_filename = __pyx_f[0]; __pyx_lineno = 2; __pyx_clineno = __LINE__; goto __pyx_L1_error;} - __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; - - /*--- Wrapped vars code ---*/ - - goto __pyx_L0; - __pyx_L1_error:; - __Pyx_XDECREF(__pyx_t_1); - __Pyx_XDECREF(__pyx_t_2); - __Pyx_XDECREF(__pyx_t_3); - __Pyx_XDECREF(__pyx_t_4); - __Pyx_XDECREF(__pyx_t_5); - __Pyx_XDECREF(__pyx_t_6); - __Pyx_XDECREF(__pyx_t_7); - __Pyx_XDECREF(__pyx_t_8); - __Pyx_XDECREF(__pyx_t_9); - __Pyx_XDECREF(__pyx_t_10); - __Pyx_XDECREF(__pyx_t_11); - __Pyx_XDECREF(__pyx_t_12); - __Pyx_XDECREF(__pyx_t_13); - __Pyx_XDECREF(__pyx_t_14); - if (__pyx_m) { - if (__pyx_d) { - __Pyx_AddTraceback("init talib.common", __pyx_clineno, __pyx_lineno, __pyx_filename); - } - Py_DECREF(__pyx_m); __pyx_m = 0; - } else if (!PyErr_Occurred()) { - PyErr_SetString(PyExc_ImportError, "init talib.common"); - } - __pyx_L0:; - __Pyx_RefNannyFinishContext(); - #if PY_MAJOR_VERSION < 3 - return; - #else - return __pyx_m; - #endif -} - -/* --- Runtime support code --- */ -#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 - -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; -} - -#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 - -static CYTHON_INLINE void __Pyx_ErrRestore(PyObject *type, PyObject *value, PyObject *tb) { -#if CYTHON_COMPILING_IN_CPYTHON - PyObject *tmp_type, *tmp_value, *tmp_tb; - PyThreadState *tstate = PyThreadState_GET(); - 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); -#else - PyErr_Restore(type, value, tb); -#endif -} -static CYTHON_INLINE void __Pyx_ErrFetch(PyObject **type, PyObject **value, PyObject **tb) { -#if CYTHON_COMPILING_IN_CPYTHON - PyThreadState *tstate = PyThreadState_GET(); - *type = tstate->curexc_type; - *value = tstate->curexc_value; - *tb = tstate->curexc_traceback; - tstate->curexc_type = 0; - tstate->curexc_value = 0; - tstate->curexc_traceback = 0; -#else - PyErr_Fetch(type, value, tb); -#endif -} - -#if PY_MAJOR_VERSION < 3 -static void __Pyx_Raise(PyObject *type, PyObject *value, PyObject *tb, - CYTHON_UNUSED PyObject *cause) { - 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_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 - -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); -} - -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 -} - -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; -} - -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; -} - -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; -} - -static PyObject *__Pyx_CalculateMetaclass(PyTypeObject *metaclass, PyObject *bases) { - Py_ssize_t i, nbases = PyTuple_GET_SIZE(bases); - for (i=0; i < nbases; i++) { - PyTypeObject *tmptype; - PyObject *tmp = PyTuple_GET_ITEM(bases, i); - tmptype = Py_TYPE(tmp); -#if PY_MAJOR_VERSION < 3 - if (tmptype == &PyClass_Type) - continue; -#endif - if (!metaclass) { - metaclass = tmptype; - continue; - } - if (PyType_IsSubtype(metaclass, tmptype)) - continue; - if (PyType_IsSubtype(tmptype, metaclass)) { - metaclass = tmptype; - continue; - } - PyErr_SetString(PyExc_TypeError, - "metaclass conflict: " - "the metaclass of a derived class " - "must be a (non-strict) subclass " - "of the metaclasses of all its bases"); - return NULL; - } - if (!metaclass) { -#if PY_MAJOR_VERSION < 3 - metaclass = &PyClass_Type; -#else - metaclass = &PyType_Type; -#endif - } - Py_INCREF((PyObject*) metaclass); - return (PyObject*) metaclass; -} - -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); -} - -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"); -} - -static CYTHON_INLINE int __Pyx_IterFinish(void) { -#if CYTHON_COMPILING_IN_CPYTHON - PyThreadState *tstate = PyThreadState_GET(); - PyObject* exc_type = tstate->curexc_type; - if (unlikely(exc_type)) { - if (likely(exc_type == PyExc_StopIteration) || PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration)) { - PyObject *exc_value, *exc_tb; - exc_value = tstate->curexc_value; - exc_tb = tstate->curexc_traceback; - tstate->curexc_type = 0; - tstate->curexc_value = 0; - tstate->curexc_traceback = 0; - Py_DECREF(exc_type); - Py_XDECREF(exc_value); - Py_XDECREF(exc_tb); - return 0; - } else { - return -1; - } - } - return 0; -#else - if (unlikely(PyErr_Occurred())) { - if (likely(PyErr_ExceptionMatches(PyExc_StopIteration))) { - PyErr_Clear(); - return 0; - } else { - return -1; - } - } - return 0; -#endif -} - -static int __Pyx_IternextUnpackEndCheck(PyObject *retval, Py_ssize_t expected) { - if (unlikely(retval)) { - Py_DECREF(retval); - __Pyx_RaiseTooManyValuesError(expected); - return -1; - } else { - return __Pyx_IterFinish(); - } - return 0; -} - -static PyTypeObject* __Pyx_FetchCommonType(PyTypeObject* type) { - PyObject* fake_module; - PyTypeObject* cached_type = NULL; - fake_module = PyImport_AddModule((char*) "_cython_" CYTHON_ABI); - if (!fake_module) return NULL; - Py_INCREF(fake_module); - cached_type = (PyTypeObject*) PyObject_GetAttrString(fake_module, type->tp_name); - if (cached_type) { - if (!PyType_Check((PyObject*)cached_type)) { - PyErr_Format(PyExc_TypeError, - "Shared Cython type %.200s is not a type object", - type->tp_name); - goto bad; - } - if (cached_type->tp_basicsize != type->tp_basicsize) { - PyErr_Format(PyExc_TypeError, - "Shared Cython type %.200s has the wrong size, try recompiling", - type->tp_name); - goto bad; - } - } else { - if (!PyErr_ExceptionMatches(PyExc_AttributeError)) goto bad; - PyErr_Clear(); - if (PyType_Ready(type) < 0) goto bad; - if (PyObject_SetAttrString(fake_module, type->tp_name, (PyObject*) type) < 0) - goto bad; - Py_INCREF(type); - cached_type = type; - } -done: - Py_DECREF(fake_module); - return cached_type; -bad: - Py_XDECREF(cached_type); - cached_type = NULL; - goto done; -} - -static PyObject * -__Pyx_CyFunction_get_doc(__pyx_CyFunctionObject *op, CYTHON_UNUSED void *closure) -{ - if (unlikely(op->func_doc == NULL)) { - if (op->func.m_ml->ml_doc) { -#if PY_MAJOR_VERSION >= 3 - op->func_doc = PyUnicode_FromString(op->func.m_ml->ml_doc); -#else - op->func_doc = PyString_FromString(op->func.m_ml->ml_doc); -#endif - if (unlikely(op->func_doc == NULL)) - return NULL; - } else { - Py_INCREF(Py_None); - return Py_None; - } - } - Py_INCREF(op->func_doc); - return op->func_doc; -} -static int -__Pyx_CyFunction_set_doc(__pyx_CyFunctionObject *op, PyObject *value) -{ - PyObject *tmp = op->func_doc; - if (value == NULL) { - value = Py_None; - } - Py_INCREF(value); - op->func_doc = value; - Py_XDECREF(tmp); - return 0; -} -static PyObject * -__Pyx_CyFunction_get_name(__pyx_CyFunctionObject *op) -{ - if (unlikely(op->func_name == NULL)) { -#if PY_MAJOR_VERSION >= 3 - op->func_name = PyUnicode_InternFromString(op->func.m_ml->ml_name); -#else - op->func_name = PyString_InternFromString(op->func.m_ml->ml_name); -#endif - if (unlikely(op->func_name == NULL)) - return NULL; - } - Py_INCREF(op->func_name); - return op->func_name; -} -static int -__Pyx_CyFunction_set_name(__pyx_CyFunctionObject *op, PyObject *value) -{ - PyObject *tmp; -#if PY_MAJOR_VERSION >= 3 - if (unlikely(value == NULL || !PyUnicode_Check(value))) { -#else - if (unlikely(value == NULL || !PyString_Check(value))) { -#endif - PyErr_SetString(PyExc_TypeError, - "__name__ must be set to a string object"); - return -1; - } - tmp = op->func_name; - Py_INCREF(value); - op->func_name = value; - Py_XDECREF(tmp); - return 0; -} -static PyObject * -__Pyx_CyFunction_get_qualname(__pyx_CyFunctionObject *op) -{ - Py_INCREF(op->func_qualname); - return op->func_qualname; -} -static int -__Pyx_CyFunction_set_qualname(__pyx_CyFunctionObject *op, PyObject *value) -{ - PyObject *tmp; -#if PY_MAJOR_VERSION >= 3 - if (unlikely(value == NULL || !PyUnicode_Check(value))) { -#else - if (unlikely(value == NULL || !PyString_Check(value))) { -#endif - PyErr_SetString(PyExc_TypeError, - "__qualname__ must be set to a string object"); - return -1; - } - tmp = op->func_qualname; - Py_INCREF(value); - op->func_qualname = value; - Py_XDECREF(tmp); - return 0; -} -static PyObject * -__Pyx_CyFunction_get_self(__pyx_CyFunctionObject *m, CYTHON_UNUSED void *closure) -{ - PyObject *self; - self = m->func_closure; - if (self == NULL) - self = Py_None; - Py_INCREF(self); - return self; -} -static PyObject * -__Pyx_CyFunction_get_dict(__pyx_CyFunctionObject *op) -{ - if (unlikely(op->func_dict == NULL)) { - op->func_dict = PyDict_New(); - if (unlikely(op->func_dict == NULL)) - return NULL; - } - Py_INCREF(op->func_dict); - return op->func_dict; -} -static int -__Pyx_CyFunction_set_dict(__pyx_CyFunctionObject *op, PyObject *value) -{ - PyObject *tmp; - if (unlikely(value == NULL)) { - PyErr_SetString(PyExc_TypeError, - "function's dictionary may not be deleted"); - return -1; - } - if (unlikely(!PyDict_Check(value))) { - PyErr_SetString(PyExc_TypeError, - "setting function's dictionary to a non-dict"); - return -1; - } - tmp = op->func_dict; - Py_INCREF(value); - op->func_dict = value; - Py_XDECREF(tmp); - return 0; -} -static PyObject * -__Pyx_CyFunction_get_globals(__pyx_CyFunctionObject *op) -{ - Py_INCREF(op->func_globals); - return op->func_globals; -} -static PyObject * -__Pyx_CyFunction_get_closure(CYTHON_UNUSED __pyx_CyFunctionObject *op) -{ - Py_INCREF(Py_None); - return Py_None; -} -static PyObject * -__Pyx_CyFunction_get_code(__pyx_CyFunctionObject *op) -{ - PyObject* result = (op->func_code) ? op->func_code : Py_None; - Py_INCREF(result); - return result; -} -static int -__Pyx_CyFunction_init_defaults(__pyx_CyFunctionObject *op) { - int result = 0; - PyObject *res = op->defaults_getter((PyObject *) op); - if (unlikely(!res)) - return -1; - #if CYTHON_COMPILING_IN_CPYTHON - op->defaults_tuple = PyTuple_GET_ITEM(res, 0); - Py_INCREF(op->defaults_tuple); - op->defaults_kwdict = PyTuple_GET_ITEM(res, 1); - Py_INCREF(op->defaults_kwdict); - #else - op->defaults_tuple = PySequence_ITEM(res, 0); - if (unlikely(!op->defaults_tuple)) result = -1; - else { - op->defaults_kwdict = PySequence_ITEM(res, 1); - if (unlikely(!op->defaults_kwdict)) result = -1; - } - #endif - Py_DECREF(res); - return result; -} -static int -__Pyx_CyFunction_set_defaults(__pyx_CyFunctionObject *op, PyObject* value) { - PyObject* tmp; - if (!value) { - value = Py_None; - } else if (value != Py_None && !PyTuple_Check(value)) { - PyErr_SetString(PyExc_TypeError, - "__defaults__ must be set to a tuple object"); - return -1; - } - Py_INCREF(value); - tmp = op->defaults_tuple; - op->defaults_tuple = value; - Py_XDECREF(tmp); - return 0; -} -static PyObject * -__Pyx_CyFunction_get_defaults(__pyx_CyFunctionObject *op) { - PyObject* result = op->defaults_tuple; - if (unlikely(!result)) { - if (op->defaults_getter) { - if (__Pyx_CyFunction_init_defaults(op) < 0) return NULL; - result = op->defaults_tuple; - } else { - result = Py_None; - } - } - Py_INCREF(result); - return result; -} -static int -__Pyx_CyFunction_set_kwdefaults(__pyx_CyFunctionObject *op, PyObject* value) { - PyObject* tmp; - if (!value) { - value = Py_None; - } else if (value != Py_None && !PyDict_Check(value)) { - PyErr_SetString(PyExc_TypeError, - "__kwdefaults__ must be set to a dict object"); - return -1; - } - Py_INCREF(value); - tmp = op->defaults_kwdict; - op->defaults_kwdict = value; - Py_XDECREF(tmp); - return 0; -} -static PyObject * -__Pyx_CyFunction_get_kwdefaults(__pyx_CyFunctionObject *op) { - PyObject* result = op->defaults_kwdict; - if (unlikely(!result)) { - if (op->defaults_getter) { - if (__Pyx_CyFunction_init_defaults(op) < 0) return NULL; - result = op->defaults_kwdict; - } else { - result = Py_None; - } - } - Py_INCREF(result); - return result; -} -static int -__Pyx_CyFunction_set_annotations(__pyx_CyFunctionObject *op, PyObject* value) { - PyObject* tmp; - if (!value || value == Py_None) { - value = NULL; - } else if (!PyDict_Check(value)) { - PyErr_SetString(PyExc_TypeError, - "__annotations__ must be set to a dict object"); - return -1; - } - Py_XINCREF(value); - tmp = op->func_annotations; - op->func_annotations = value; - Py_XDECREF(tmp); - return 0; -} -static PyObject * -__Pyx_CyFunction_get_annotations(__pyx_CyFunctionObject *op) { - PyObject* result = op->func_annotations; - if (unlikely(!result)) { - result = PyDict_New(); - if (unlikely(!result)) return NULL; - op->func_annotations = result; - } - Py_INCREF(result); - return result; -} -static PyGetSetDef __pyx_CyFunction_getsets[] = { - {(char *) "func_doc", (getter)__Pyx_CyFunction_get_doc, (setter)__Pyx_CyFunction_set_doc, 0, 0}, - {(char *) "__doc__", (getter)__Pyx_CyFunction_get_doc, (setter)__Pyx_CyFunction_set_doc, 0, 0}, - {(char *) "func_name", (getter)__Pyx_CyFunction_get_name, (setter)__Pyx_CyFunction_set_name, 0, 0}, - {(char *) "__name__", (getter)__Pyx_CyFunction_get_name, (setter)__Pyx_CyFunction_set_name, 0, 0}, - {(char *) "__qualname__", (getter)__Pyx_CyFunction_get_qualname, (setter)__Pyx_CyFunction_set_qualname, 0, 0}, - {(char *) "__self__", (getter)__Pyx_CyFunction_get_self, 0, 0, 0}, - {(char *) "func_dict", (getter)__Pyx_CyFunction_get_dict, (setter)__Pyx_CyFunction_set_dict, 0, 0}, - {(char *) "__dict__", (getter)__Pyx_CyFunction_get_dict, (setter)__Pyx_CyFunction_set_dict, 0, 0}, - {(char *) "func_globals", (getter)__Pyx_CyFunction_get_globals, 0, 0, 0}, - {(char *) "__globals__", (getter)__Pyx_CyFunction_get_globals, 0, 0, 0}, - {(char *) "func_closure", (getter)__Pyx_CyFunction_get_closure, 0, 0, 0}, - {(char *) "__closure__", (getter)__Pyx_CyFunction_get_closure, 0, 0, 0}, - {(char *) "func_code", (getter)__Pyx_CyFunction_get_code, 0, 0, 0}, - {(char *) "__code__", (getter)__Pyx_CyFunction_get_code, 0, 0, 0}, - {(char *) "func_defaults", (getter)__Pyx_CyFunction_get_defaults, (setter)__Pyx_CyFunction_set_defaults, 0, 0}, - {(char *) "__defaults__", (getter)__Pyx_CyFunction_get_defaults, (setter)__Pyx_CyFunction_set_defaults, 0, 0}, - {(char *) "__kwdefaults__", (getter)__Pyx_CyFunction_get_kwdefaults, (setter)__Pyx_CyFunction_set_kwdefaults, 0, 0}, - {(char *) "__annotations__", (getter)__Pyx_CyFunction_get_annotations, (setter)__Pyx_CyFunction_set_annotations, 0, 0}, - {0, 0, 0, 0, 0} -}; -static PyMemberDef __pyx_CyFunction_members[] = { - {(char *) "__module__", T_OBJECT, offsetof(__pyx_CyFunctionObject, func.m_module), PY_WRITE_RESTRICTED, 0}, - {0, 0, 0, 0, 0} -}; -static PyObject * -__Pyx_CyFunction_reduce(__pyx_CyFunctionObject *m, CYTHON_UNUSED PyObject *args) -{ -#if PY_MAJOR_VERSION >= 3 - return PyUnicode_FromString(m->func.m_ml->ml_name); -#else - return PyString_FromString(m->func.m_ml->ml_name); -#endif -} -static PyMethodDef __pyx_CyFunction_methods[] = { - {"__reduce__", (PyCFunction)__Pyx_CyFunction_reduce, METH_VARARGS, 0}, - {0, 0, 0, 0} -}; -#if PY_VERSION_HEX < 0x030500A0 -#define __Pyx_CyFunction_weakreflist(cyfunc) ((cyfunc)->func_weakreflist) -#else -#define __Pyx_CyFunction_weakreflist(cyfunc) ((cyfunc)->func.m_weakreflist) -#endif -static PyObject *__Pyx_CyFunction_New(PyTypeObject *type, PyMethodDef *ml, int flags, PyObject* qualname, - PyObject *closure, PyObject *module, PyObject* globals, PyObject* code) { - __pyx_CyFunctionObject *op = PyObject_GC_New(__pyx_CyFunctionObject, type); - if (op == NULL) - return NULL; - op->flags = flags; - __Pyx_CyFunction_weakreflist(op) = NULL; - op->func.m_ml = ml; - op->func.m_self = (PyObject *) op; - Py_XINCREF(closure); - op->func_closure = closure; - Py_XINCREF(module); - op->func.m_module = module; - op->func_dict = NULL; - op->func_name = NULL; - Py_INCREF(qualname); - op->func_qualname = qualname; - op->func_doc = NULL; - op->func_classobj = NULL; - op->func_globals = globals; - Py_INCREF(op->func_globals); - Py_XINCREF(code); - op->func_code = code; - op->defaults_pyobjects = 0; - op->defaults = NULL; - op->defaults_tuple = NULL; - op->defaults_kwdict = NULL; - op->defaults_getter = NULL; - op->func_annotations = NULL; - PyObject_GC_Track(op); - return (PyObject *) op; -} -static int -__Pyx_CyFunction_clear(__pyx_CyFunctionObject *m) -{ - Py_CLEAR(m->func_closure); - Py_CLEAR(m->func.m_module); - Py_CLEAR(m->func_dict); - Py_CLEAR(m->func_name); - Py_CLEAR(m->func_qualname); - Py_CLEAR(m->func_doc); - Py_CLEAR(m->func_globals); - Py_CLEAR(m->func_code); - Py_CLEAR(m->func_classobj); - Py_CLEAR(m->defaults_tuple); - Py_CLEAR(m->defaults_kwdict); - Py_CLEAR(m->func_annotations); - if (m->defaults) { - PyObject **pydefaults = __Pyx_CyFunction_Defaults(PyObject *, m); - int i; - for (i = 0; i < m->defaults_pyobjects; i++) - Py_XDECREF(pydefaults[i]); - PyMem_Free(m->defaults); - m->defaults = NULL; - } - return 0; -} -static void __Pyx_CyFunction_dealloc(__pyx_CyFunctionObject *m) -{ - PyObject_GC_UnTrack(m); - if (__Pyx_CyFunction_weakreflist(m) != NULL) - PyObject_ClearWeakRefs((PyObject *) m); - __Pyx_CyFunction_clear(m); - PyObject_GC_Del(m); -} -static int __Pyx_CyFunction_traverse(__pyx_CyFunctionObject *m, visitproc visit, void *arg) -{ - Py_VISIT(m->func_closure); - Py_VISIT(m->func.m_module); - Py_VISIT(m->func_dict); - Py_VISIT(m->func_name); - Py_VISIT(m->func_qualname); - Py_VISIT(m->func_doc); - Py_VISIT(m->func_globals); - Py_VISIT(m->func_code); - Py_VISIT(m->func_classobj); - Py_VISIT(m->defaults_tuple); - Py_VISIT(m->defaults_kwdict); - if (m->defaults) { - PyObject **pydefaults = __Pyx_CyFunction_Defaults(PyObject *, m); - int i; - for (i = 0; i < m->defaults_pyobjects; i++) - Py_VISIT(pydefaults[i]); - } - return 0; -} -static PyObject *__Pyx_CyFunction_descr_get(PyObject *func, PyObject *obj, PyObject *type) -{ - __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func; - if (m->flags & __Pyx_CYFUNCTION_STATICMETHOD) { - Py_INCREF(func); - return func; - } - if (m->flags & __Pyx_CYFUNCTION_CLASSMETHOD) { - if (type == NULL) - type = (PyObject *)(Py_TYPE(obj)); - return __Pyx_PyMethod_New(func, type, (PyObject *)(Py_TYPE(type))); - } - if (obj == Py_None) - obj = NULL; - return __Pyx_PyMethod_New(func, obj, type); -} -static PyObject* -__Pyx_CyFunction_repr(__pyx_CyFunctionObject *op) -{ -#if PY_MAJOR_VERSION >= 3 - return PyUnicode_FromFormat("", - op->func_qualname, (void *)op); -#else - return PyString_FromFormat("", - PyString_AsString(op->func_qualname), (void *)op); -#endif -} -#if CYTHON_COMPILING_IN_PYPY -static PyObject * __Pyx_CyFunction_Call(PyObject *func, PyObject *arg, PyObject *kw) { - PyCFunctionObject* f = (PyCFunctionObject*)func; - PyCFunction meth = f->m_ml->ml_meth; - PyObject *self = f->m_self; - Py_ssize_t size; - switch (f->m_ml->ml_flags & (METH_VARARGS | METH_KEYWORDS | METH_NOARGS | METH_O)) { - case METH_VARARGS: - if (likely(kw == NULL || PyDict_Size(kw) == 0)) - return (*meth)(self, arg); - break; - case METH_VARARGS | METH_KEYWORDS: - return (*(PyCFunctionWithKeywords)meth)(self, arg, kw); - case METH_NOARGS: - if (likely(kw == NULL || PyDict_Size(kw) == 0)) { - size = PyTuple_GET_SIZE(arg); - if (likely(size == 0)) - return (*meth)(self, NULL); - PyErr_Format(PyExc_TypeError, - "%.200s() takes no arguments (%" CYTHON_FORMAT_SSIZE_T "d given)", - f->m_ml->ml_name, size); - return NULL; - } - break; - case METH_O: - if (likely(kw == NULL || PyDict_Size(kw) == 0)) { - size = PyTuple_GET_SIZE(arg); - if (likely(size == 1)) { - PyObject *result, *arg0 = PySequence_ITEM(arg, 0); - if (unlikely(!arg0)) return NULL; - result = (*meth)(self, arg0); - Py_DECREF(arg0); - return result; - } - PyErr_Format(PyExc_TypeError, - "%.200s() takes exactly one argument (%" CYTHON_FORMAT_SSIZE_T "d given)", - f->m_ml->ml_name, size); - return NULL; - } - break; - default: - PyErr_SetString(PyExc_SystemError, "Bad call flags in " - "__Pyx_CyFunction_Call. METH_OLDARGS is no " - "longer supported!"); - return NULL; - } - PyErr_Format(PyExc_TypeError, "%.200s() takes no keyword arguments", - f->m_ml->ml_name); - return NULL; -} -#else -static PyObject * __Pyx_CyFunction_Call(PyObject *func, PyObject *arg, PyObject *kw) { - return PyCFunction_Call(func, arg, kw); -} -#endif -static PyTypeObject __pyx_CyFunctionType_type = { - PyVarObject_HEAD_INIT(0, 0) - "cython_function_or_method", - sizeof(__pyx_CyFunctionObject), - 0, - (destructor) __Pyx_CyFunction_dealloc, - 0, - 0, - 0, -#if PY_MAJOR_VERSION < 3 - 0, -#else - 0, -#endif - (reprfunc) __Pyx_CyFunction_repr, - 0, - 0, - 0, - 0, - __Pyx_CyFunction_Call, - 0, - 0, - 0, - 0, - Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC, - 0, - (traverseproc) __Pyx_CyFunction_traverse, - (inquiry) __Pyx_CyFunction_clear, - 0, -#if PY_VERSION_HEX < 0x030500A0 - offsetof(__pyx_CyFunctionObject, func_weakreflist), -#else - offsetof(PyCFunctionObject, m_weakreflist), -#endif - 0, - 0, - __pyx_CyFunction_methods, - __pyx_CyFunction_members, - __pyx_CyFunction_getsets, - 0, - 0, - __Pyx_CyFunction_descr_get, - 0, - offsetof(__pyx_CyFunctionObject, func_dict), - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, - 0, -#if PY_VERSION_HEX >= 0x030400a1 - 0, -#endif -}; -static int __pyx_CyFunction_init(void) { -#if !CYTHON_COMPILING_IN_PYPY - __pyx_CyFunctionType_type.tp_call = PyCFunction_Call; -#endif - __pyx_CyFunctionType = __Pyx_FetchCommonType(&__pyx_CyFunctionType_type); - if (__pyx_CyFunctionType == NULL) { - return -1; - } - return 0; -} -static CYTHON_INLINE void *__Pyx_CyFunction_InitDefaults(PyObject *func, size_t size, int pyobjects) { - __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func; - m->defaults = PyMem_Malloc(size); - if (!m->defaults) - return PyErr_NoMemory(); - memset(m->defaults, 0, size); - m->defaults_pyobjects = pyobjects; - return m->defaults; -} -static CYTHON_INLINE void __Pyx_CyFunction_SetDefaultsTuple(PyObject *func, PyObject *tuple) { - __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func; - m->defaults_tuple = tuple; - Py_INCREF(tuple); -} -static CYTHON_INLINE void __Pyx_CyFunction_SetDefaultsKwDict(PyObject *func, PyObject *dict) { - __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func; - m->defaults_kwdict = dict; - Py_INCREF(dict); -} -static CYTHON_INLINE void __Pyx_CyFunction_SetAnnotationsDict(PyObject *func, PyObject *dict) { - __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func; - m->func_annotations = dict; - Py_INCREF(dict); -} - -static PyObject *__Pyx_Py3MetaclassPrepare(PyObject *metaclass, PyObject *bases, PyObject *name, - PyObject *qualname, PyObject *mkw, PyObject *modname, PyObject *doc) { - PyObject *ns; - if (metaclass) { - PyObject *prep = __Pyx_PyObject_GetAttrStr(metaclass, __pyx_n_s_prepare); - if (prep) { - PyObject *pargs = PyTuple_Pack(2, name, bases); - if (unlikely(!pargs)) { - Py_DECREF(prep); - return NULL; - } - ns = PyObject_Call(prep, pargs, mkw); - Py_DECREF(prep); - Py_DECREF(pargs); - } else { - if (unlikely(!PyErr_ExceptionMatches(PyExc_AttributeError))) - return NULL; - PyErr_Clear(); - ns = PyDict_New(); - } - } else { - ns = PyDict_New(); - } - if (unlikely(!ns)) - return NULL; - if (unlikely(PyObject_SetItem(ns, __pyx_n_s_module, modname) < 0)) goto bad; - if (unlikely(PyObject_SetItem(ns, __pyx_n_s_qualname, qualname) < 0)) goto bad; - if (unlikely(doc && PyObject_SetItem(ns, __pyx_n_s_doc, doc) < 0)) goto bad; - return ns; -bad: - Py_DECREF(ns); - return NULL; -} -static PyObject *__Pyx_Py3ClassCreate(PyObject *metaclass, PyObject *name, PyObject *bases, - PyObject *dict, PyObject *mkw, - int calculate_metaclass, int allow_py2_metaclass) { - PyObject *result, *margs; - PyObject *owned_metaclass = NULL; - if (allow_py2_metaclass) { - owned_metaclass = PyObject_GetItem(dict, __pyx_n_s_metaclass); - if (owned_metaclass) { - metaclass = owned_metaclass; - } else if (likely(PyErr_ExceptionMatches(PyExc_KeyError))) { - PyErr_Clear(); - } else { - return NULL; - } - } - if (calculate_metaclass && (!metaclass || PyType_Check(metaclass))) { - metaclass = __Pyx_CalculateMetaclass((PyTypeObject*) metaclass, bases); - Py_XDECREF(owned_metaclass); - if (unlikely(!metaclass)) - return NULL; - owned_metaclass = metaclass; - } - margs = PyTuple_Pack(3, name, bases, dict); - if (unlikely(!margs)) { - result = NULL; - } else { - result = PyObject_Call(metaclass, margs, mkw); - Py_DECREF(margs); - } - Py_XDECREF(owned_metaclass); - return result; -} - -#if CYTHON_COMPILING_IN_CPYTHON -static CYTHON_INLINE PyObject* __Pyx_PyObject_CallMethO(PyObject *func, PyObject *arg) { - PyObject *self, *result; - PyCFunction cfunc; - cfunc = PyCFunction_GET_FUNCTION(func); - self = PyCFunction_GET_SELF(func); - if (unlikely(Py_EnterRecursiveCall((char*)" while calling a Python object"))) - return NULL; - result = cfunc(self, arg); - Py_LeaveRecursiveCall(); - if (unlikely(!result) && unlikely(!PyErr_Occurred())) { - PyErr_SetString( - PyExc_SystemError, - "NULL result without error in PyObject_Call"); - } - return result; -} -#endif - -#if CYTHON_COMPILING_IN_CPYTHON -static PyObject* __Pyx__PyObject_CallOneArg(PyObject *func, PyObject *arg) { - PyObject *result; - PyObject *args = PyTuple_New(1); - if (unlikely(!args)) return NULL; - Py_INCREF(arg); - PyTuple_SET_ITEM(args, 0, arg); - result = __Pyx_PyObject_Call(func, args, NULL); - Py_DECREF(args); - return result; -} -static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObject *arg) { -#ifdef __Pyx_CyFunction_USED - if (likely(PyCFunction_Check(func) || PyObject_TypeCheck(func, __pyx_CyFunctionType))) { -#else - if (likely(PyCFunction_Check(func))) { -#endif - if (likely(PyCFunction_GET_FLAGS(func) & METH_O)) { - return __Pyx_PyObject_CallMethO(func, arg); - } - } - return __Pyx__PyObject_CallOneArg(func, arg); -} -#else -static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObject *arg) { - PyObject *result; - PyObject *args = PyTuple_Pack(1, arg); - if (unlikely(!args)) return NULL; - result = __Pyx_PyObject_Call(func, args, NULL); - Py_DECREF(args); - return result; -} -#endif - -#if CYTHON_COMPILING_IN_CPYTHON -static CYTHON_INLINE PyObject* __Pyx_PyObject_CallNoArg(PyObject *func) { -#ifdef __Pyx_CyFunction_USED - if (likely(PyCFunction_Check(func) || PyObject_TypeCheck(func, __pyx_CyFunctionType))) { -#else - if (likely(PyCFunction_Check(func))) { -#endif - if (likely(PyCFunction_GET_FLAGS(func) & METH_NOARGS)) { - return __Pyx_PyObject_CallMethO(func, NULL); - } - } - return __Pyx_PyObject_Call(func, __pyx_empty_tuple, NULL); -} -#endif - -#if CYTHON_USE_PYLONG_INTERNALS - #include "longintrepr.h" -#endif - -#if CYTHON_COMPILING_IN_CPYTHON -static PyObject* __Pyx_PyInt_AddObjC(PyObject *op1, PyObject *op2, CYTHON_UNUSED long intval, CYTHON_UNUSED int inplace) { - #if PY_MAJOR_VERSION < 3 - if (likely(PyInt_CheckExact(op1))) { - const long b = intval; - long x; - long a = PyInt_AS_LONG(op1); - x = (long)((unsigned long)a + b); - if (likely((x^a) >= 0 || (x^b) >= 0)) - return PyInt_FromLong(x); - return PyLong_Type.tp_as_number->nb_add(op1, op2); - } - #endif - #if CYTHON_USE_PYLONG_INTERNALS && PY_MAJOR_VERSION >= 3 - if (likely(PyLong_CheckExact(op1))) { - const long b = intval; - long a, x; - const PY_LONG_LONG llb = intval; - PY_LONG_LONG lla, llx; - const digit* digits = ((PyLongObject*)op1)->ob_digit; - const Py_ssize_t size = Py_SIZE(op1); - if (likely(__Pyx_sst_abs(size) <= 1)) { - a = likely(size) ? digits[0] : 0; - if (size == -1) a = -a; - } else { - switch (size) { - case -2: - if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) { - a = -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); - break; - } else if (8 * sizeof(PY_LONG_LONG) - 1 > 2 * PyLong_SHIFT) { - lla = -(PY_LONG_LONG) (((((unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0])); - goto long_long; - } - case 2: - if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) { - a = (long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); - break; - } else if (8 * sizeof(PY_LONG_LONG) - 1 > 2 * PyLong_SHIFT) { - lla = (PY_LONG_LONG) (((((unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0])); - goto long_long; - } - case -3: - if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) { - a = -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); - break; - } else if (8 * sizeof(PY_LONG_LONG) - 1 > 3 * PyLong_SHIFT) { - lla = -(PY_LONG_LONG) (((((((unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0])); - goto long_long; - } - case 3: - if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) { - a = (long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); - break; - } else if (8 * sizeof(PY_LONG_LONG) - 1 > 3 * PyLong_SHIFT) { - lla = (PY_LONG_LONG) (((((((unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0])); - goto long_long; - } - case -4: - if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) { - a = -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); - break; - } else if (8 * sizeof(PY_LONG_LONG) - 1 > 4 * PyLong_SHIFT) { - lla = -(PY_LONG_LONG) (((((((((unsigned PY_LONG_LONG)digits[3]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0])); - goto long_long; - } - case 4: - if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) { - a = (long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); - break; - } else if (8 * sizeof(PY_LONG_LONG) - 1 > 4 * PyLong_SHIFT) { - lla = (PY_LONG_LONG) (((((((((unsigned PY_LONG_LONG)digits[3]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0])); - goto long_long; - } - default: return PyLong_Type.tp_as_number->nb_add(op1, op2); - } - } - x = a + b; - return PyLong_FromLong(x); - long_long: - llx = lla + llb; - return PyLong_FromLongLong(llx); - } - #endif - if (PyFloat_CheckExact(op1)) { - const long b = intval; - double a = PyFloat_AS_DOUBLE(op1); - double result; - PyFPE_START_PROTECT("add", return NULL) - result = ((double)a) + (double)b; - PyFPE_END_PROTECT(result) - return PyFloat_FromDouble(result); - } - return (inplace ? PyNumber_InPlaceAdd : PyNumber_Add)(op1, op2); -} -#endif - -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); -} - -#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); -} - -#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;\ - } - -static CYTHON_INLINE TA_RetCode __Pyx_PyInt_As_TA_RetCode(PyObject *x) { - const TA_RetCode neg_one = (TA_RetCode) -1, const_zero = (TA_RetCode) 0; - const int is_unsigned = neg_one > const_zero; -#if PY_MAJOR_VERSION < 3 - if (likely(PyInt_Check(x))) { - if (sizeof(TA_RetCode) < sizeof(long)) { - __PYX_VERIFY_RETURN_INT(TA_RetCode, long, PyInt_AS_LONG(x)) - } else { - long val = PyInt_AS_LONG(x); - if (is_unsigned && unlikely(val < 0)) { - goto raise_neg_overflow; - } - return (TA_RetCode) 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 (TA_RetCode) 0; - case 1: __PYX_VERIFY_RETURN_INT(TA_RetCode, digit, digits[0]) - case 2: - if (8 * sizeof(TA_RetCode) > 1 * PyLong_SHIFT) { - if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { - __PYX_VERIFY_RETURN_INT(TA_RetCode, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) - } else if (8 * sizeof(TA_RetCode) >= 2 * PyLong_SHIFT) { - return (TA_RetCode) (((((TA_RetCode)digits[1]) << PyLong_SHIFT) | (TA_RetCode)digits[0])); - } - } - break; - case 3: - if (8 * sizeof(TA_RetCode) > 2 * PyLong_SHIFT) { - if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { - __PYX_VERIFY_RETURN_INT(TA_RetCode, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) - } else if (8 * sizeof(TA_RetCode) >= 3 * PyLong_SHIFT) { - return (TA_RetCode) (((((((TA_RetCode)digits[2]) << PyLong_SHIFT) | (TA_RetCode)digits[1]) << PyLong_SHIFT) | (TA_RetCode)digits[0])); - } - } - break; - case 4: - if (8 * sizeof(TA_RetCode) > 3 * PyLong_SHIFT) { - if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { - __PYX_VERIFY_RETURN_INT(TA_RetCode, 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(TA_RetCode) >= 4 * PyLong_SHIFT) { - return (TA_RetCode) (((((((((TA_RetCode)digits[3]) << PyLong_SHIFT) | (TA_RetCode)digits[2]) << PyLong_SHIFT) | (TA_RetCode)digits[1]) << PyLong_SHIFT) | (TA_RetCode)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 (TA_RetCode) -1; - if (unlikely(result == 1)) - goto raise_neg_overflow; - } -#endif - if (sizeof(TA_RetCode) <= sizeof(unsigned long)) { - __PYX_VERIFY_RETURN_INT_EXC(TA_RetCode, unsigned long, PyLong_AsUnsignedLong(x)) - } else if (sizeof(TA_RetCode) <= sizeof(unsigned PY_LONG_LONG)) { - __PYX_VERIFY_RETURN_INT_EXC(TA_RetCode, 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 (TA_RetCode) 0; - case -1: __PYX_VERIFY_RETURN_INT(TA_RetCode, sdigit, -(sdigit) digits[0]) - case 1: __PYX_VERIFY_RETURN_INT(TA_RetCode, digit, +digits[0]) - case -2: - if (8 * sizeof(TA_RetCode) - 1 > 1 * PyLong_SHIFT) { - if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { - __PYX_VERIFY_RETURN_INT(TA_RetCode, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) - } else if (8 * sizeof(TA_RetCode) - 1 > 2 * PyLong_SHIFT) { - return (TA_RetCode) (((TA_RetCode)-1)*(((((TA_RetCode)digits[1]) << PyLong_SHIFT) | (TA_RetCode)digits[0]))); - } - } - break; - case 2: - if (8 * sizeof(TA_RetCode) > 1 * PyLong_SHIFT) { - if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { - __PYX_VERIFY_RETURN_INT(TA_RetCode, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) - } else if (8 * sizeof(TA_RetCode) - 1 > 2 * PyLong_SHIFT) { - return (TA_RetCode) ((((((TA_RetCode)digits[1]) << PyLong_SHIFT) | (TA_RetCode)digits[0]))); - } - } - break; - case -3: - if (8 * sizeof(TA_RetCode) - 1 > 2 * PyLong_SHIFT) { - if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { - __PYX_VERIFY_RETURN_INT(TA_RetCode, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) - } else if (8 * sizeof(TA_RetCode) - 1 > 3 * PyLong_SHIFT) { - return (TA_RetCode) (((TA_RetCode)-1)*(((((((TA_RetCode)digits[2]) << PyLong_SHIFT) | (TA_RetCode)digits[1]) << PyLong_SHIFT) | (TA_RetCode)digits[0]))); - } - } - break; - case 3: - if (8 * sizeof(TA_RetCode) > 2 * PyLong_SHIFT) { - if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { - __PYX_VERIFY_RETURN_INT(TA_RetCode, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) - } else if (8 * sizeof(TA_RetCode) - 1 > 3 * PyLong_SHIFT) { - return (TA_RetCode) ((((((((TA_RetCode)digits[2]) << PyLong_SHIFT) | (TA_RetCode)digits[1]) << PyLong_SHIFT) | (TA_RetCode)digits[0]))); - } - } - break; - case -4: - if (8 * sizeof(TA_RetCode) - 1 > 3 * PyLong_SHIFT) { - if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { - __PYX_VERIFY_RETURN_INT(TA_RetCode, 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(TA_RetCode) - 1 > 4 * PyLong_SHIFT) { - return (TA_RetCode) (((TA_RetCode)-1)*(((((((((TA_RetCode)digits[3]) << PyLong_SHIFT) | (TA_RetCode)digits[2]) << PyLong_SHIFT) | (TA_RetCode)digits[1]) << PyLong_SHIFT) | (TA_RetCode)digits[0]))); - } - } - break; - case 4: - if (8 * sizeof(TA_RetCode) > 3 * PyLong_SHIFT) { - if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { - __PYX_VERIFY_RETURN_INT(TA_RetCode, 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(TA_RetCode) - 1 > 4 * PyLong_SHIFT) { - return (TA_RetCode) ((((((((((TA_RetCode)digits[3]) << PyLong_SHIFT) | (TA_RetCode)digits[2]) << PyLong_SHIFT) | (TA_RetCode)digits[1]) << PyLong_SHIFT) | (TA_RetCode)digits[0]))); - } - } - break; - } -#endif - if (sizeof(TA_RetCode) <= sizeof(long)) { - __PYX_VERIFY_RETURN_INT_EXC(TA_RetCode, long, PyLong_AsLong(x)) - } else if (sizeof(TA_RetCode) <= sizeof(PY_LONG_LONG)) { - __PYX_VERIFY_RETURN_INT_EXC(TA_RetCode, 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 - TA_RetCode val; - PyObject *v = __Pyx_PyNumber_Int(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 (TA_RetCode) -1; - } - } else { - TA_RetCode val; - PyObject *tmp = __Pyx_PyNumber_Int(x); - if (!tmp) return (TA_RetCode) -1; - val = __Pyx_PyInt_As_TA_RetCode(tmp); - Py_DECREF(tmp); - return val; - } -raise_overflow: - PyErr_SetString(PyExc_OverflowError, - "value too large to convert to TA_RetCode"); - return (TA_RetCode) -1; -raise_neg_overflow: - PyErr_SetString(PyExc_OverflowError, - "can't convert negative value to TA_RetCode"); - return (TA_RetCode) -1; -} - -static CYTHON_INLINE PyObject* __Pyx_PyInt_From_TA_RetCode(TA_RetCode value) { - const TA_RetCode neg_one = (TA_RetCode) -1, const_zero = (TA_RetCode) 0; - const int is_unsigned = neg_one > const_zero; - if (is_unsigned) { - if (sizeof(TA_RetCode) < sizeof(long)) { - return PyInt_FromLong((long) value); - } else if (sizeof(TA_RetCode) <= sizeof(unsigned long)) { - return PyLong_FromUnsignedLong((unsigned long) value); - } else if (sizeof(TA_RetCode) <= sizeof(unsigned PY_LONG_LONG)) { - return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value); - } - } else { - if (sizeof(TA_RetCode) <= sizeof(long)) { - return PyInt_FromLong((long) value); - } else if (sizeof(TA_RetCode) <= 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(TA_RetCode), - little, !is_unsigned); - } -} - -static CYTHON_INLINE TA_FuncUnstId __Pyx_PyInt_As_TA_FuncUnstId(PyObject *x) { - const TA_FuncUnstId neg_one = (TA_FuncUnstId) -1, const_zero = (TA_FuncUnstId) 0; - const int is_unsigned = neg_one > const_zero; -#if PY_MAJOR_VERSION < 3 - if (likely(PyInt_Check(x))) { - if (sizeof(TA_FuncUnstId) < sizeof(long)) { - __PYX_VERIFY_RETURN_INT(TA_FuncUnstId, long, PyInt_AS_LONG(x)) - } else { - long val = PyInt_AS_LONG(x); - if (is_unsigned && unlikely(val < 0)) { - goto raise_neg_overflow; - } - return (TA_FuncUnstId) 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 (TA_FuncUnstId) 0; - case 1: __PYX_VERIFY_RETURN_INT(TA_FuncUnstId, digit, digits[0]) - case 2: - if (8 * sizeof(TA_FuncUnstId) > 1 * PyLong_SHIFT) { - if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { - __PYX_VERIFY_RETURN_INT(TA_FuncUnstId, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) - } else if (8 * sizeof(TA_FuncUnstId) >= 2 * PyLong_SHIFT) { - return (TA_FuncUnstId) (((((TA_FuncUnstId)digits[1]) << PyLong_SHIFT) | (TA_FuncUnstId)digits[0])); - } - } - break; - case 3: - if (8 * sizeof(TA_FuncUnstId) > 2 * PyLong_SHIFT) { - if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { - __PYX_VERIFY_RETURN_INT(TA_FuncUnstId, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) - } else if (8 * sizeof(TA_FuncUnstId) >= 3 * PyLong_SHIFT) { - return (TA_FuncUnstId) (((((((TA_FuncUnstId)digits[2]) << PyLong_SHIFT) | (TA_FuncUnstId)digits[1]) << PyLong_SHIFT) | (TA_FuncUnstId)digits[0])); - } - } - break; - case 4: - if (8 * sizeof(TA_FuncUnstId) > 3 * PyLong_SHIFT) { - if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { - __PYX_VERIFY_RETURN_INT(TA_FuncUnstId, 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(TA_FuncUnstId) >= 4 * PyLong_SHIFT) { - return (TA_FuncUnstId) (((((((((TA_FuncUnstId)digits[3]) << PyLong_SHIFT) | (TA_FuncUnstId)digits[2]) << PyLong_SHIFT) | (TA_FuncUnstId)digits[1]) << PyLong_SHIFT) | (TA_FuncUnstId)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 (TA_FuncUnstId) -1; - if (unlikely(result == 1)) - goto raise_neg_overflow; - } -#endif - if (sizeof(TA_FuncUnstId) <= sizeof(unsigned long)) { - __PYX_VERIFY_RETURN_INT_EXC(TA_FuncUnstId, unsigned long, PyLong_AsUnsignedLong(x)) - } else if (sizeof(TA_FuncUnstId) <= sizeof(unsigned PY_LONG_LONG)) { - __PYX_VERIFY_RETURN_INT_EXC(TA_FuncUnstId, 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 (TA_FuncUnstId) 0; - case -1: __PYX_VERIFY_RETURN_INT(TA_FuncUnstId, sdigit, -(sdigit) digits[0]) - case 1: __PYX_VERIFY_RETURN_INT(TA_FuncUnstId, digit, +digits[0]) - case -2: - if (8 * sizeof(TA_FuncUnstId) - 1 > 1 * PyLong_SHIFT) { - if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { - __PYX_VERIFY_RETURN_INT(TA_FuncUnstId, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) - } else if (8 * sizeof(TA_FuncUnstId) - 1 > 2 * PyLong_SHIFT) { - return (TA_FuncUnstId) (((TA_FuncUnstId)-1)*(((((TA_FuncUnstId)digits[1]) << PyLong_SHIFT) | (TA_FuncUnstId)digits[0]))); - } - } - break; - case 2: - if (8 * sizeof(TA_FuncUnstId) > 1 * PyLong_SHIFT) { - if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { - __PYX_VERIFY_RETURN_INT(TA_FuncUnstId, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) - } else if (8 * sizeof(TA_FuncUnstId) - 1 > 2 * PyLong_SHIFT) { - return (TA_FuncUnstId) ((((((TA_FuncUnstId)digits[1]) << PyLong_SHIFT) | (TA_FuncUnstId)digits[0]))); - } - } - break; - case -3: - if (8 * sizeof(TA_FuncUnstId) - 1 > 2 * PyLong_SHIFT) { - if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { - __PYX_VERIFY_RETURN_INT(TA_FuncUnstId, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) - } else if (8 * sizeof(TA_FuncUnstId) - 1 > 3 * PyLong_SHIFT) { - return (TA_FuncUnstId) (((TA_FuncUnstId)-1)*(((((((TA_FuncUnstId)digits[2]) << PyLong_SHIFT) | (TA_FuncUnstId)digits[1]) << PyLong_SHIFT) | (TA_FuncUnstId)digits[0]))); - } - } - break; - case 3: - if (8 * sizeof(TA_FuncUnstId) > 2 * PyLong_SHIFT) { - if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { - __PYX_VERIFY_RETURN_INT(TA_FuncUnstId, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) - } else if (8 * sizeof(TA_FuncUnstId) - 1 > 3 * PyLong_SHIFT) { - return (TA_FuncUnstId) ((((((((TA_FuncUnstId)digits[2]) << PyLong_SHIFT) | (TA_FuncUnstId)digits[1]) << PyLong_SHIFT) | (TA_FuncUnstId)digits[0]))); - } - } - break; - case -4: - if (8 * sizeof(TA_FuncUnstId) - 1 > 3 * PyLong_SHIFT) { - if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { - __PYX_VERIFY_RETURN_INT(TA_FuncUnstId, 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(TA_FuncUnstId) - 1 > 4 * PyLong_SHIFT) { - return (TA_FuncUnstId) (((TA_FuncUnstId)-1)*(((((((((TA_FuncUnstId)digits[3]) << PyLong_SHIFT) | (TA_FuncUnstId)digits[2]) << PyLong_SHIFT) | (TA_FuncUnstId)digits[1]) << PyLong_SHIFT) | (TA_FuncUnstId)digits[0]))); - } - } - break; - case 4: - if (8 * sizeof(TA_FuncUnstId) > 3 * PyLong_SHIFT) { - if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { - __PYX_VERIFY_RETURN_INT(TA_FuncUnstId, 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(TA_FuncUnstId) - 1 > 4 * PyLong_SHIFT) { - return (TA_FuncUnstId) ((((((((((TA_FuncUnstId)digits[3]) << PyLong_SHIFT) | (TA_FuncUnstId)digits[2]) << PyLong_SHIFT) | (TA_FuncUnstId)digits[1]) << PyLong_SHIFT) | (TA_FuncUnstId)digits[0]))); - } - } - break; - } -#endif - if (sizeof(TA_FuncUnstId) <= sizeof(long)) { - __PYX_VERIFY_RETURN_INT_EXC(TA_FuncUnstId, long, PyLong_AsLong(x)) - } else if (sizeof(TA_FuncUnstId) <= sizeof(PY_LONG_LONG)) { - __PYX_VERIFY_RETURN_INT_EXC(TA_FuncUnstId, 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 - TA_FuncUnstId val; - PyObject *v = __Pyx_PyNumber_Int(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 (TA_FuncUnstId) -1; - } - } else { - TA_FuncUnstId val; - PyObject *tmp = __Pyx_PyNumber_Int(x); - if (!tmp) return (TA_FuncUnstId) -1; - val = __Pyx_PyInt_As_TA_FuncUnstId(tmp); - Py_DECREF(tmp); - return val; - } -raise_overflow: - PyErr_SetString(PyExc_OverflowError, - "value too large to convert to TA_FuncUnstId"); - return (TA_FuncUnstId) -1; -raise_neg_overflow: - PyErr_SetString(PyExc_OverflowError, - "can't convert negative value to TA_FuncUnstId"); - return (TA_FuncUnstId) -1; -} - -static CYTHON_INLINE unsigned int __Pyx_PyInt_As_unsigned_int(PyObject *x) { - const unsigned int neg_one = (unsigned int) -1, const_zero = (unsigned int) 0; - const int is_unsigned = neg_one > const_zero; -#if PY_MAJOR_VERSION < 3 - if (likely(PyInt_Check(x))) { - if (sizeof(unsigned int) < sizeof(long)) { - __PYX_VERIFY_RETURN_INT(unsigned int, long, PyInt_AS_LONG(x)) - } else { - long val = PyInt_AS_LONG(x); - if (is_unsigned && unlikely(val < 0)) { - goto raise_neg_overflow; - } - return (unsigned 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 (unsigned int) 0; - case 1: __PYX_VERIFY_RETURN_INT(unsigned int, digit, digits[0]) - case 2: - if (8 * sizeof(unsigned int) > 1 * PyLong_SHIFT) { - if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { - __PYX_VERIFY_RETURN_INT(unsigned int, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) - } else if (8 * sizeof(unsigned int) >= 2 * PyLong_SHIFT) { - return (unsigned int) (((((unsigned int)digits[1]) << PyLong_SHIFT) | (unsigned int)digits[0])); - } - } - break; - case 3: - if (8 * sizeof(unsigned int) > 2 * PyLong_SHIFT) { - if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { - __PYX_VERIFY_RETURN_INT(unsigned int, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) - } else if (8 * sizeof(unsigned int) >= 3 * PyLong_SHIFT) { - return (unsigned int) (((((((unsigned int)digits[2]) << PyLong_SHIFT) | (unsigned int)digits[1]) << PyLong_SHIFT) | (unsigned int)digits[0])); - } - } - break; - case 4: - if (8 * sizeof(unsigned int) > 3 * PyLong_SHIFT) { - if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { - __PYX_VERIFY_RETURN_INT(unsigned 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(unsigned int) >= 4 * PyLong_SHIFT) { - return (unsigned int) (((((((((unsigned int)digits[3]) << PyLong_SHIFT) | (unsigned int)digits[2]) << PyLong_SHIFT) | (unsigned int)digits[1]) << PyLong_SHIFT) | (unsigned 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 (unsigned int) -1; - if (unlikely(result == 1)) - goto raise_neg_overflow; - } -#endif - if (sizeof(unsigned int) <= sizeof(unsigned long)) { - __PYX_VERIFY_RETURN_INT_EXC(unsigned int, unsigned long, PyLong_AsUnsignedLong(x)) - } else if (sizeof(unsigned int) <= sizeof(unsigned PY_LONG_LONG)) { - __PYX_VERIFY_RETURN_INT_EXC(unsigned 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 (unsigned int) 0; - case -1: __PYX_VERIFY_RETURN_INT(unsigned int, sdigit, -(sdigit) digits[0]) - case 1: __PYX_VERIFY_RETURN_INT(unsigned int, digit, +digits[0]) - case -2: - if (8 * sizeof(unsigned int) - 1 > 1 * PyLong_SHIFT) { - if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { - __PYX_VERIFY_RETURN_INT(unsigned int, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) - } else if (8 * sizeof(unsigned int) - 1 > 2 * PyLong_SHIFT) { - return (unsigned int) (((unsigned int)-1)*(((((unsigned int)digits[1]) << PyLong_SHIFT) | (unsigned int)digits[0]))); - } - } - break; - case 2: - if (8 * sizeof(unsigned int) > 1 * PyLong_SHIFT) { - if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { - __PYX_VERIFY_RETURN_INT(unsigned int, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) - } else if (8 * sizeof(unsigned int) - 1 > 2 * PyLong_SHIFT) { - return (unsigned int) ((((((unsigned int)digits[1]) << PyLong_SHIFT) | (unsigned int)digits[0]))); - } - } - break; - case -3: - if (8 * sizeof(unsigned int) - 1 > 2 * PyLong_SHIFT) { - if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { - __PYX_VERIFY_RETURN_INT(unsigned int, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) - } else if (8 * sizeof(unsigned int) - 1 > 3 * PyLong_SHIFT) { - return (unsigned int) (((unsigned int)-1)*(((((((unsigned int)digits[2]) << PyLong_SHIFT) | (unsigned int)digits[1]) << PyLong_SHIFT) | (unsigned int)digits[0]))); - } - } - break; - case 3: - if (8 * sizeof(unsigned int) > 2 * PyLong_SHIFT) { - if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { - __PYX_VERIFY_RETURN_INT(unsigned int, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) - } else if (8 * sizeof(unsigned int) - 1 > 3 * PyLong_SHIFT) { - return (unsigned int) ((((((((unsigned int)digits[2]) << PyLong_SHIFT) | (unsigned int)digits[1]) << PyLong_SHIFT) | (unsigned int)digits[0]))); - } - } - break; - case -4: - if (8 * sizeof(unsigned int) - 1 > 3 * PyLong_SHIFT) { - if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { - __PYX_VERIFY_RETURN_INT(unsigned 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(unsigned int) - 1 > 4 * PyLong_SHIFT) { - return (unsigned int) (((unsigned int)-1)*(((((((((unsigned int)digits[3]) << PyLong_SHIFT) | (unsigned int)digits[2]) << PyLong_SHIFT) | (unsigned int)digits[1]) << PyLong_SHIFT) | (unsigned int)digits[0]))); - } - } - break; - case 4: - if (8 * sizeof(unsigned int) > 3 * PyLong_SHIFT) { - if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { - __PYX_VERIFY_RETURN_INT(unsigned 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(unsigned int) - 1 > 4 * PyLong_SHIFT) { - return (unsigned int) ((((((((((unsigned int)digits[3]) << PyLong_SHIFT) | (unsigned int)digits[2]) << PyLong_SHIFT) | (unsigned int)digits[1]) << PyLong_SHIFT) | (unsigned int)digits[0]))); - } - } - break; - } -#endif - if (sizeof(unsigned int) <= sizeof(long)) { - __PYX_VERIFY_RETURN_INT_EXC(unsigned int, long, PyLong_AsLong(x)) - } else if (sizeof(unsigned int) <= sizeof(PY_LONG_LONG)) { - __PYX_VERIFY_RETURN_INT_EXC(unsigned 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 - unsigned int val; - PyObject *v = __Pyx_PyNumber_Int(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 (unsigned int) -1; - } - } else { - unsigned int val; - PyObject *tmp = __Pyx_PyNumber_Int(x); - if (!tmp) return (unsigned int) -1; - val = __Pyx_PyInt_As_unsigned_int(tmp); - Py_DECREF(tmp); - return val; - } -raise_overflow: - PyErr_SetString(PyExc_OverflowError, - "value too large to convert to unsigned int"); - return (unsigned int) -1; -raise_neg_overflow: - PyErr_SetString(PyExc_OverflowError, - "can't convert negative value to unsigned int"); - return (unsigned int) -1; -} - -static CYTHON_INLINE PyObject* __Pyx_PyInt_From_unsigned_int(unsigned int value) { - const unsigned int neg_one = (unsigned int) -1, const_zero = (unsigned int) 0; - const int is_unsigned = neg_one > const_zero; - if (is_unsigned) { - if (sizeof(unsigned int) < sizeof(long)) { - return PyInt_FromLong((long) value); - } else if (sizeof(unsigned int) <= sizeof(unsigned long)) { - return PyLong_FromUnsignedLong((unsigned long) value); - } else if (sizeof(unsigned int) <= sizeof(unsigned PY_LONG_LONG)) { - return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value); - } - } else { - if (sizeof(unsigned int) <= sizeof(long)) { - return PyInt_FromLong((long) value); - } else if (sizeof(unsigned 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(unsigned int), - little, !is_unsigned); - } -} - -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); - } -} - -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) 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_Int(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_Int(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; -} - -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) 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_Int(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_Int(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; -} - -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; -} - -static int __Pyx_ExportFunction(const char *name, void (*f)(void), const char *sig) { - PyObject *d = 0; - PyObject *cobj = 0; - union { - void (*fp)(void); - void *p; - } tmp; - d = PyObject_GetAttrString(__pyx_m, (char *)"__pyx_capi__"); - if (!d) { - PyErr_Clear(); - d = PyDict_New(); - if (!d) - goto bad; - Py_INCREF(d); - if (PyModule_AddObject(__pyx_m, (char *)"__pyx_capi__", d) < 0) - goto bad; - } - tmp.fp = f; -#if PY_VERSION_HEX >= 0x02070000 - cobj = PyCapsule_New(tmp.p, sig, 0); -#else - cobj = PyCObject_FromVoidPtrAndDesc(tmp.p, (void *)sig, 0); -#endif - if (!cobj) - goto bad; - if (PyDict_SetItemString(d, name, cobj) < 0) - goto bad; - Py_DECREF(cobj); - Py_DECREF(d); - return 0; -bad: - Py_XDECREF(cobj); - Py_XDECREF(d); - return -1; -} - -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_Int(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 */ diff --git a/talib/func.c b/talib/func.c deleted file mode 100644 index 7047263ba..000000000 --- a/talib/func.c +++ /dev/null @@ -1,138741 +0,0 @@ -/* 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 -#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 -#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__func -#define __PYX_HAVE_API__talib__func -#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 -#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 - #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 - #else - #include - #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/func.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); - -/* 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_int(int value); - -/* 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.func' */ -static double __pyx_v_5talib_4func_NaN; -#define __Pyx_MODULE_NAME "talib.func" -int __pyx_module_is_main_talib__func = 0; - -/* Implementation of 'talib.func' */ -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_i[] = "i"; -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_talib_func[] = "talib.func"; -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_outmax_data[] = "outmax_data"; -static const char __pyx_k_outmin_data[] = "outmin_data"; -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_outfama_data[] = "outfama_data"; -static const char __pyx_k_outmacd_data[] = "outmacd_data"; -static const char __pyx_k_outmama_data[] = "outmama_data"; -static const char __pyx_k_outnbelement[] = "outnbelement"; -static const char __pyx_k_outreal_data[] = "outreal_data"; -static const char __pyx_k_outsine_data[] = "outsine_data"; -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_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_outfastd_data[] = "outfastd_data"; -static const char __pyx_k_outfastk_data[] = "outfastk_data"; -static const char __pyx_k_outmacdsignal[] = "outmacdsignal"; -static const char __pyx_k_outquadrature[] = "outquadrature"; -static const char __pyx_k_outslowd_data[] = "outslowd_data"; -static const char __pyx_k_outslowk_data[] = "outslowk_data"; -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_outmaxidx_data[] = "outmaxidx_data"; -static const char __pyx_k_outminidx_data[] = "outminidx_data"; -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_outaroonup_data[] = "outaroonup_data"; -static const char __pyx_k_outinphase_data[] = "outinphase_data"; -static const char __pyx_k_outinteger_data[] = "outinteger_data"; -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_outleadsine_data[] = "outleadsine_data"; -static const char __pyx_k_outmacdhist_data[] = "outmacdhist_data"; -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_outaroondown_data[] = "outaroondown_data"; -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_inputs_are_all_NaN[] = "inputs are all NaN"; -static const char __pyx_k_open_is_not_double[] = "open is not double"; -static const char __pyx_k_outmacdsignal_data[] = "outmacdsignal_data"; -static const char __pyx_k_outquadrature_data[] = "outquadrature_data"; -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_outreallowerband_data[] = "outreallowerband_data"; -static const char __pyx_k_outrealupperband_data[] = "outrealupperband_data"; -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_outrealmiddleband_data[] = "outrealmiddleband_data"; -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/func.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_i; -static PyObject *__pyx_n_s_import; -static PyObject *__pyx_kp_s_input_lengths_are_different; -static PyObject *__pyx_kp_s_inputs_are_all_NaN; -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_outaroondown_data; -static PyObject *__pyx_n_s_outaroonup; -static PyObject *__pyx_n_s_outaroonup_data; -static PyObject *__pyx_n_s_outbegidx; -static PyObject *__pyx_n_s_outfama; -static PyObject *__pyx_n_s_outfama_data; -static PyObject *__pyx_n_s_outfastd; -static PyObject *__pyx_n_s_outfastd_data; -static PyObject *__pyx_n_s_outfastk; -static PyObject *__pyx_n_s_outfastk_data; -static PyObject *__pyx_n_s_outinphase; -static PyObject *__pyx_n_s_outinphase_data; -static PyObject *__pyx_n_s_outinteger; -static PyObject *__pyx_n_s_outinteger_data; -static PyObject *__pyx_n_s_outleadsine; -static PyObject *__pyx_n_s_outleadsine_data; -static PyObject *__pyx_n_s_outmacd; -static PyObject *__pyx_n_s_outmacd_data; -static PyObject *__pyx_n_s_outmacdhist; -static PyObject *__pyx_n_s_outmacdhist_data; -static PyObject *__pyx_n_s_outmacdsignal; -static PyObject *__pyx_n_s_outmacdsignal_data; -static PyObject *__pyx_n_s_outmama; -static PyObject *__pyx_n_s_outmama_data; -static PyObject *__pyx_n_s_outmax; -static PyObject *__pyx_n_s_outmax_data; -static PyObject *__pyx_n_s_outmaxidx; -static PyObject *__pyx_n_s_outmaxidx_data; -static PyObject *__pyx_n_s_outmin; -static PyObject *__pyx_n_s_outmin_data; -static PyObject *__pyx_n_s_outminidx; -static PyObject *__pyx_n_s_outminidx_data; -static PyObject *__pyx_n_s_outnbelement; -static PyObject *__pyx_n_s_outquadrature; -static PyObject *__pyx_n_s_outquadrature_data; -static PyObject *__pyx_n_s_outreal; -static PyObject *__pyx_n_s_outreal_data; -static PyObject *__pyx_n_s_outreallowerband; -static PyObject *__pyx_n_s_outreallowerband_data; -static PyObject *__pyx_n_s_outrealmiddleband; -static PyObject *__pyx_n_s_outrealmiddleband_data; -static PyObject *__pyx_n_s_outrealupperband; -static PyObject *__pyx_n_s_outrealupperband_data; -static PyObject *__pyx_n_s_outsine; -static PyObject *__pyx_n_s_outsine_data; -static PyObject *__pyx_n_s_outslowd; -static PyObject *__pyx_n_s_outslowd_data; -static PyObject *__pyx_n_s_outslowk; -static PyObject *__pyx_n_s_outslowk_data; -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_func; -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_4func_ACOS(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real); /* proto */ -static PyObject *__pyx_pf_5talib_4func_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_4func_4ADD(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real0, PyArrayObject *__pyx_v_real1); /* proto */ -static PyObject *__pyx_pf_5talib_4func_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_4func_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_4func_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_4func_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_4func_14AROON(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, int __pyx_v_timeperiod); /* proto */ -static PyObject *__pyx_pf_5talib_4func_16AROONOSC(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, int __pyx_v_timeperiod); /* proto */ -static PyObject *__pyx_pf_5talib_4func_18ASIN(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real); /* proto */ -static PyObject *__pyx_pf_5talib_4func_20ATAN(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real); /* proto */ -static PyObject *__pyx_pf_5talib_4func_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_4func_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_4func_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_4func_28BETA(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real0, PyArrayObject *__pyx_v_real1, int __pyx_v_timeperiod); /* proto */ -static PyObject *__pyx_pf_5talib_4func_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_4func_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_4func_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_4func_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_4func_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_4func_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_4func_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_4func_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_4func_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_4func_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_4func_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_4func_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_4func_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_4func_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_4func_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_4func_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_4func_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_4func_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_4func_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_4func_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_4func_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_4func_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_4func_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_4func_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_4func_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_4func_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_4func_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_4func_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_4func_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_4func_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_4func_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_4func_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_4func_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_4func_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_4func_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_4func_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_4func_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_4func_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_4func_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_4func_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_4func_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_4func_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_4func_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_4func_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_4func_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_4func_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_4func_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_4func_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_4func_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_4func_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_4func_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_4func_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_4func_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_4func_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_4func_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_4func_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_4func_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_4func_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_4func_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_4func_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_4func_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_4func_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_4func_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_4func_156CEIL(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real); /* proto */ -static PyObject *__pyx_pf_5talib_4func_158CMO(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod); /* proto */ -static PyObject *__pyx_pf_5talib_4func_160CORREL(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real0, PyArrayObject *__pyx_v_real1, int __pyx_v_timeperiod); /* proto */ -static PyObject *__pyx_pf_5talib_4func_162COS(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real); /* proto */ -static PyObject *__pyx_pf_5talib_4func_164COSH(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real); /* proto */ -static PyObject *__pyx_pf_5talib_4func_166DEMA(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod); /* proto */ -static PyObject *__pyx_pf_5talib_4func_168DIV(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real0, PyArrayObject *__pyx_v_real1); /* proto */ -static PyObject *__pyx_pf_5talib_4func_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_4func_172EMA(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod); /* proto */ -static PyObject *__pyx_pf_5talib_4func_174EXP(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real); /* proto */ -static PyObject *__pyx_pf_5talib_4func_176FLOOR(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real); /* proto */ -static PyObject *__pyx_pf_5talib_4func_178HT_DCPERIOD(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real); /* proto */ -static PyObject *__pyx_pf_5talib_4func_180HT_DCPHASE(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real); /* proto */ -static PyObject *__pyx_pf_5talib_4func_182HT_PHASOR(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real); /* proto */ -static PyObject *__pyx_pf_5talib_4func_184HT_SINE(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real); /* proto */ -static PyObject *__pyx_pf_5talib_4func_186HT_TRENDLINE(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real); /* proto */ -static PyObject *__pyx_pf_5talib_4func_188HT_TRENDMODE(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real); /* proto */ -static PyObject *__pyx_pf_5talib_4func_190KAMA(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod); /* proto */ -static PyObject *__pyx_pf_5talib_4func_192LINEARREG(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod); /* proto */ -static PyObject *__pyx_pf_5talib_4func_194LINEARREG_ANGLE(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod); /* proto */ -static PyObject *__pyx_pf_5talib_4func_196LINEARREG_INTERCEPT(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod); /* proto */ -static PyObject *__pyx_pf_5talib_4func_198LINEARREG_SLOPE(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod); /* proto */ -static PyObject *__pyx_pf_5talib_4func_200LN(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real); /* proto */ -static PyObject *__pyx_pf_5talib_4func_202LOG10(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real); /* proto */ -static PyObject *__pyx_pf_5talib_4func_204MA(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod, int __pyx_v_matype); /* proto */ -static PyObject *__pyx_pf_5talib_4func_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_4func_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_4func_210MACDFIX(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_signalperiod); /* proto */ -static PyObject *__pyx_pf_5talib_4func_212MAMA(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, double __pyx_v_fastlimit, double __pyx_v_slowlimit); /* proto */ -static PyObject *__pyx_pf_5talib_4func_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_4func_216MAX(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod); /* proto */ -static PyObject *__pyx_pf_5talib_4func_218MAXINDEX(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod); /* proto */ -static PyObject *__pyx_pf_5talib_4func_220MEDPRICE(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low); /* proto */ -static PyObject *__pyx_pf_5talib_4func_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_4func_224MIDPOINT(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod); /* proto */ -static PyObject *__pyx_pf_5talib_4func_226MIDPRICE(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, int __pyx_v_timeperiod); /* proto */ -static PyObject *__pyx_pf_5talib_4func_228MIN(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod); /* proto */ -static PyObject *__pyx_pf_5talib_4func_230MININDEX(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod); /* proto */ -static PyObject *__pyx_pf_5talib_4func_232MINMAX(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod); /* proto */ -static PyObject *__pyx_pf_5talib_4func_234MINMAXINDEX(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod); /* proto */ -static PyObject *__pyx_pf_5talib_4func_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_4func_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_4func_240MOM(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod); /* proto */ -static PyObject *__pyx_pf_5talib_4func_242MULT(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real0, PyArrayObject *__pyx_v_real1); /* proto */ -static PyObject *__pyx_pf_5talib_4func_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_4func_246OBV(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, PyArrayObject *__pyx_v_volume); /* proto */ -static PyObject *__pyx_pf_5talib_4func_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_4func_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_4func_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_4func_254ROC(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod); /* proto */ -static PyObject *__pyx_pf_5talib_4func_256ROCP(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod); /* proto */ -static PyObject *__pyx_pf_5talib_4func_258ROCR(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod); /* proto */ -static PyObject *__pyx_pf_5talib_4func_260ROCR100(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod); /* proto */ -static PyObject *__pyx_pf_5talib_4func_262RSI(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod); /* proto */ -static PyObject *__pyx_pf_5talib_4func_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_4func_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_4func_268SIN(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real); /* proto */ -static PyObject *__pyx_pf_5talib_4func_270SINH(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real); /* proto */ -static PyObject *__pyx_pf_5talib_4func_272SMA(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod); /* proto */ -static PyObject *__pyx_pf_5talib_4func_274SQRT(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real); /* proto */ -static PyObject *__pyx_pf_5talib_4func_276STDDEV(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod, double __pyx_v_nbdev); /* proto */ -static PyObject *__pyx_pf_5talib_4func_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_4func_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_4func_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_4func_284SUB(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real0, PyArrayObject *__pyx_v_real1); /* proto */ -static PyObject *__pyx_pf_5talib_4func_286SUM(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod); /* proto */ -static PyObject *__pyx_pf_5talib_4func_288T3(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod, double __pyx_v_vfactor); /* proto */ -static PyObject *__pyx_pf_5talib_4func_290TAN(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real); /* proto */ -static PyObject *__pyx_pf_5talib_4func_292TANH(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real); /* proto */ -static PyObject *__pyx_pf_5talib_4func_294TEMA(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod); /* proto */ -static PyObject *__pyx_pf_5talib_4func_296TRANGE(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close); /* proto */ -static PyObject *__pyx_pf_5talib_4func_298TRIMA(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod); /* proto */ -static PyObject *__pyx_pf_5talib_4func_300TRIX(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod); /* proto */ -static PyObject *__pyx_pf_5talib_4func_302TSF(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod); /* proto */ -static PyObject *__pyx_pf_5talib_4func_304TYPPRICE(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close); /* proto */ -static PyObject *__pyx_pf_5talib_4func_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_4func_308VAR(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod, double __pyx_v_nbdev); /* proto */ -static PyObject *__pyx_pf_5talib_4func_310WCLPRICE(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close); /* proto */ -static PyObject *__pyx_pf_5talib_4func_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_4func_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__1056; -static PyObject *__pyx_tuple__1057; -static PyObject *__pyx_tuple__1058; -static PyObject *__pyx_tuple__1059; -static PyObject *__pyx_tuple__1060; -static PyObject *__pyx_tuple__1061; -static PyObject *__pyx_tuple__1062; -static PyObject *__pyx_tuple__1063; -static PyObject *__pyx_tuple__1064; -static PyObject *__pyx_tuple__1065; -static PyObject *__pyx_tuple__1066; -static PyObject *__pyx_tuple__1067; -static PyObject *__pyx_tuple__1068; -static PyObject *__pyx_tuple__1069; -static PyObject *__pyx_tuple__1070; -static PyObject *__pyx_tuple__1071; -static PyObject *__pyx_tuple__1072; -static PyObject *__pyx_tuple__1073; -static PyObject *__pyx_tuple__1074; -static PyObject *__pyx_tuple__1075; -static PyObject *__pyx_tuple__1076; -static PyObject *__pyx_tuple__1077; -static PyObject *__pyx_tuple__1078; -static PyObject *__pyx_tuple__1079; -static PyObject *__pyx_tuple__1080; -static PyObject *__pyx_tuple__1081; -static PyObject *__pyx_tuple__1082; -static PyObject *__pyx_tuple__1083; -static PyObject *__pyx_tuple__1084; -static PyObject *__pyx_tuple__1085; -static PyObject *__pyx_tuple__1086; -static PyObject *__pyx_tuple__1087; -static PyObject *__pyx_tuple__1088; -static PyObject *__pyx_tuple__1089; -static PyObject *__pyx_tuple__1090; -static PyObject *__pyx_tuple__1091; -static PyObject *__pyx_tuple__1092; -static PyObject *__pyx_tuple__1093; -static PyObject *__pyx_tuple__1094; -static PyObject *__pyx_tuple__1095; -static PyObject *__pyx_tuple__1096; -static PyObject *__pyx_tuple__1097; -static PyObject *__pyx_tuple__1098; -static PyObject *__pyx_tuple__1099; -static PyObject *__pyx_tuple__1100; -static PyObject *__pyx_tuple__1101; -static PyObject *__pyx_tuple__1102; -static PyObject *__pyx_tuple__1103; -static PyObject *__pyx_tuple__1104; -static PyObject *__pyx_tuple__1105; -static PyObject *__pyx_tuple__1106; -static PyObject *__pyx_tuple__1107; -static PyObject *__pyx_tuple__1108; -static PyObject *__pyx_tuple__1109; -static PyObject *__pyx_tuple__1110; -static PyObject *__pyx_tuple__1111; -static PyObject *__pyx_tuple__1112; -static PyObject *__pyx_tuple__1113; -static PyObject *__pyx_tuple__1114; -static PyObject *__pyx_tuple__1115; -static PyObject *__pyx_tuple__1116; -static PyObject *__pyx_tuple__1117; -static PyObject *__pyx_tuple__1118; -static PyObject *__pyx_tuple__1119; -static PyObject *__pyx_tuple__1120; -static PyObject *__pyx_tuple__1121; -static PyObject *__pyx_tuple__1122; -static PyObject *__pyx_tuple__1123; -static PyObject *__pyx_tuple__1124; -static PyObject *__pyx_tuple__1125; -static PyObject *__pyx_tuple__1126; -static PyObject *__pyx_tuple__1127; -static PyObject *__pyx_tuple__1128; -static PyObject *__pyx_tuple__1129; -static PyObject *__pyx_tuple__1130; -static PyObject *__pyx_tuple__1131; -static PyObject *__pyx_tuple__1132; -static PyObject *__pyx_tuple__1133; -static PyObject *__pyx_tuple__1134; -static PyObject *__pyx_tuple__1135; -static PyObject *__pyx_tuple__1136; -static PyObject *__pyx_tuple__1137; -static PyObject *__pyx_tuple__1138; -static PyObject *__pyx_tuple__1139; -static PyObject *__pyx_tuple__1140; -static PyObject *__pyx_tuple__1141; -static PyObject *__pyx_tuple__1142; -static PyObject *__pyx_tuple__1143; -static PyObject *__pyx_tuple__1144; -static PyObject *__pyx_tuple__1145; -static PyObject *__pyx_tuple__1146; -static PyObject *__pyx_tuple__1147; -static PyObject *__pyx_tuple__1148; -static PyObject *__pyx_tuple__1149; -static PyObject *__pyx_tuple__1150; -static PyObject *__pyx_tuple__1151; -static PyObject *__pyx_tuple__1152; -static PyObject *__pyx_tuple__1153; -static PyObject *__pyx_tuple__1154; -static PyObject *__pyx_tuple__1155; -static PyObject *__pyx_tuple__1156; -static PyObject *__pyx_tuple__1157; -static PyObject *__pyx_tuple__1158; -static PyObject *__pyx_tuple__1159; -static PyObject *__pyx_tuple__1160; -static PyObject *__pyx_tuple__1161; -static PyObject *__pyx_tuple__1162; -static PyObject *__pyx_tuple__1163; -static PyObject *__pyx_tuple__1164; -static PyObject *__pyx_tuple__1165; -static PyObject *__pyx_tuple__1166; -static PyObject *__pyx_tuple__1167; -static PyObject *__pyx_tuple__1168; -static PyObject *__pyx_tuple__1169; -static PyObject *__pyx_tuple__1170; -static PyObject *__pyx_tuple__1171; -static PyObject *__pyx_tuple__1172; -static PyObject *__pyx_tuple__1173; -static PyObject *__pyx_tuple__1174; -static PyObject *__pyx_tuple__1175; -static PyObject *__pyx_tuple__1176; -static PyObject *__pyx_tuple__1177; -static PyObject *__pyx_tuple__1178; -static PyObject *__pyx_tuple__1179; -static PyObject *__pyx_tuple__1180; -static PyObject *__pyx_tuple__1181; -static PyObject *__pyx_tuple__1182; -static PyObject *__pyx_tuple__1183; -static PyObject *__pyx_tuple__1184; -static PyObject *__pyx_tuple__1185; -static PyObject *__pyx_tuple__1186; -static PyObject *__pyx_tuple__1187; -static PyObject *__pyx_tuple__1188; -static PyObject *__pyx_tuple__1189; -static PyObject *__pyx_tuple__1190; -static PyObject *__pyx_tuple__1191; -static PyObject *__pyx_tuple__1192; -static PyObject *__pyx_tuple__1193; -static PyObject *__pyx_tuple__1194; -static PyObject *__pyx_tuple__1195; -static PyObject *__pyx_tuple__1196; -static PyObject *__pyx_tuple__1197; -static PyObject *__pyx_tuple__1198; -static PyObject *__pyx_tuple__1199; -static PyObject *__pyx_tuple__1200; -static PyObject *__pyx_tuple__1201; -static PyObject *__pyx_tuple__1202; -static PyObject *__pyx_tuple__1203; -static PyObject *__pyx_tuple__1204; -static PyObject *__pyx_tuple__1205; -static PyObject *__pyx_tuple__1206; -static PyObject *__pyx_tuple__1207; -static PyObject *__pyx_tuple__1208; -static PyObject *__pyx_tuple__1209; -static PyObject *__pyx_tuple__1210; -static PyObject *__pyx_tuple__1211; -static PyObject *__pyx_tuple__1212; -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_tuple__1371; -static PyObject *__pyx_tuple__1373; -static PyObject *__pyx_tuple__1375; -static PyObject *__pyx_tuple__1377; -static PyObject *__pyx_tuple__1379; -static PyObject *__pyx_tuple__1381; -static PyObject *__pyx_tuple__1383; -static PyObject *__pyx_tuple__1385; -static PyObject *__pyx_tuple__1387; -static PyObject *__pyx_tuple__1389; -static PyObject *__pyx_tuple__1391; -static PyObject *__pyx_tuple__1393; -static PyObject *__pyx_tuple__1395; -static PyObject *__pyx_tuple__1397; -static PyObject *__pyx_tuple__1399; -static PyObject *__pyx_tuple__1401; -static PyObject *__pyx_tuple__1403; -static PyObject *__pyx_tuple__1405; -static PyObject *__pyx_tuple__1407; -static PyObject *__pyx_tuple__1409; -static PyObject *__pyx_tuple__1411; -static PyObject *__pyx_tuple__1413; -static PyObject *__pyx_tuple__1415; -static PyObject *__pyx_tuple__1417; -static PyObject *__pyx_tuple__1419; -static PyObject *__pyx_tuple__1421; -static PyObject *__pyx_tuple__1423; -static PyObject *__pyx_tuple__1425; -static PyObject *__pyx_tuple__1427; -static PyObject *__pyx_tuple__1429; -static PyObject *__pyx_tuple__1431; -static PyObject *__pyx_tuple__1433; -static PyObject *__pyx_tuple__1435; -static PyObject *__pyx_tuple__1437; -static PyObject *__pyx_tuple__1439; -static PyObject *__pyx_tuple__1441; -static PyObject *__pyx_tuple__1443; -static PyObject *__pyx_tuple__1445; -static PyObject *__pyx_tuple__1447; -static PyObject *__pyx_tuple__1449; -static PyObject *__pyx_tuple__1451; -static PyObject *__pyx_tuple__1453; -static PyObject *__pyx_tuple__1455; -static PyObject *__pyx_tuple__1457; -static PyObject *__pyx_tuple__1459; -static PyObject *__pyx_tuple__1461; -static PyObject *__pyx_tuple__1463; -static PyObject *__pyx_tuple__1465; -static PyObject *__pyx_tuple__1467; -static PyObject *__pyx_tuple__1469; -static PyObject *__pyx_tuple__1471; -static PyObject *__pyx_tuple__1473; -static PyObject *__pyx_tuple__1475; -static PyObject *__pyx_tuple__1477; -static PyObject *__pyx_tuple__1479; -static PyObject *__pyx_tuple__1481; -static PyObject *__pyx_tuple__1483; -static PyObject *__pyx_tuple__1485; -static PyObject *__pyx_tuple__1487; -static PyObject *__pyx_tuple__1489; -static PyObject *__pyx_tuple__1491; -static PyObject *__pyx_tuple__1493; -static PyObject *__pyx_tuple__1495; -static PyObject *__pyx_tuple__1497; -static PyObject *__pyx_tuple__1499; -static PyObject *__pyx_tuple__1501; -static PyObject *__pyx_tuple__1503; -static PyObject *__pyx_tuple__1505; -static PyObject *__pyx_tuple__1507; -static PyObject *__pyx_tuple__1509; -static PyObject *__pyx_tuple__1511; -static PyObject *__pyx_tuple__1513; -static PyObject *__pyx_tuple__1515; -static PyObject *__pyx_tuple__1517; -static PyObject *__pyx_tuple__1519; -static PyObject *__pyx_tuple__1521; -static PyObject *__pyx_tuple__1523; -static PyObject *__pyx_tuple__1525; -static PyObject *__pyx_tuple__1527; -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; -static PyObject *__pyx_codeobj__1372; -static PyObject *__pyx_codeobj__1374; -static PyObject *__pyx_codeobj__1376; -static PyObject *__pyx_codeobj__1378; -static PyObject *__pyx_codeobj__1380; -static PyObject *__pyx_codeobj__1382; -static PyObject *__pyx_codeobj__1384; -static PyObject *__pyx_codeobj__1386; -static PyObject *__pyx_codeobj__1388; -static PyObject *__pyx_codeobj__1390; -static PyObject *__pyx_codeobj__1392; -static PyObject *__pyx_codeobj__1394; -static PyObject *__pyx_codeobj__1396; -static PyObject *__pyx_codeobj__1398; -static PyObject *__pyx_codeobj__1400; -static PyObject *__pyx_codeobj__1402; -static PyObject *__pyx_codeobj__1404; -static PyObject *__pyx_codeobj__1406; -static PyObject *__pyx_codeobj__1408; -static PyObject *__pyx_codeobj__1410; -static PyObject *__pyx_codeobj__1412; -static PyObject *__pyx_codeobj__1414; -static PyObject *__pyx_codeobj__1416; -static PyObject *__pyx_codeobj__1418; -static PyObject *__pyx_codeobj__1420; -static PyObject *__pyx_codeobj__1422; -static PyObject *__pyx_codeobj__1424; -static PyObject *__pyx_codeobj__1426; -static PyObject *__pyx_codeobj__1428; -static PyObject *__pyx_codeobj__1430; -static PyObject *__pyx_codeobj__1432; -static PyObject *__pyx_codeobj__1434; -static PyObject *__pyx_codeobj__1436; -static PyObject *__pyx_codeobj__1438; -static PyObject *__pyx_codeobj__1440; -static PyObject *__pyx_codeobj__1442; -static PyObject *__pyx_codeobj__1444; -static PyObject *__pyx_codeobj__1446; -static PyObject *__pyx_codeobj__1448; -static PyObject *__pyx_codeobj__1450; -static PyObject *__pyx_codeobj__1452; -static PyObject *__pyx_codeobj__1454; -static PyObject *__pyx_codeobj__1456; -static PyObject *__pyx_codeobj__1458; -static PyObject *__pyx_codeobj__1460; -static PyObject *__pyx_codeobj__1462; -static PyObject *__pyx_codeobj__1464; -static PyObject *__pyx_codeobj__1466; -static PyObject *__pyx_codeobj__1468; -static PyObject *__pyx_codeobj__1470; -static PyObject *__pyx_codeobj__1472; -static PyObject *__pyx_codeobj__1474; -static PyObject *__pyx_codeobj__1476; -static PyObject *__pyx_codeobj__1478; -static PyObject *__pyx_codeobj__1480; -static PyObject *__pyx_codeobj__1482; -static PyObject *__pyx_codeobj__1484; -static PyObject *__pyx_codeobj__1486; -static PyObject *__pyx_codeobj__1488; -static PyObject *__pyx_codeobj__1490; -static PyObject *__pyx_codeobj__1492; -static PyObject *__pyx_codeobj__1494; -static PyObject *__pyx_codeobj__1496; -static PyObject *__pyx_codeobj__1498; -static PyObject *__pyx_codeobj__1500; -static PyObject *__pyx_codeobj__1502; -static PyObject *__pyx_codeobj__1504; -static PyObject *__pyx_codeobj__1506; -static PyObject *__pyx_codeobj__1508; -static PyObject *__pyx_codeobj__1510; -static PyObject *__pyx_codeobj__1512; -static PyObject *__pyx_codeobj__1514; -static PyObject *__pyx_codeobj__1516; -static PyObject *__pyx_codeobj__1518; -static PyObject *__pyx_codeobj__1520; -static PyObject *__pyx_codeobj__1522; -static PyObject *__pyx_codeobj__1524; -static PyObject *__pyx_codeobj__1526; -static PyObject *__pyx_codeobj__1528; - -/* "talib/func.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_4func_1ACOS(PyObject *__pyx_self, PyObject *__pyx_v_real); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_1ACOS = {"ACOS", (PyCFunction)__pyx_pw_5talib_4func_1ACOS, METH_O, __pyx_doc_5talib_4func_ACOS}; -static PyObject *__pyx_pw_5talib_4func_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_4func_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_4func_ACOS(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real) { - npy_intp __pyx_v_length; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - TA_RetCode __pyx_v_retCode; - double *__pyx_v_real_data; - int __pyx_v_outbegidx; - int __pyx_v_outnbelement; - PyArrayObject *__pyx_v_outreal = 0; - double *__pyx_v_outreal_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __Pyx_RefNannySetupContext("ACOS", 0); - __Pyx_INCREF((PyObject *)__pyx_v_real); - - /* "talib/func.pyx":44 - * np.ndarray outreal - * double* outreal_data - * 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/func.pyx":45 - * double* outreal_data - * 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, 45, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 45, __pyx_L1_error) - - /* "talib/func.pyx":44 - * np.ndarray outreal - * double* outreal_data - * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("real is not double") - * if real.ndim != 1: - */ - } - - /* "talib/func.pyx":46 - * 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/func.pyx":47 - * 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, 47, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 47, __pyx_L1_error) - - /* "talib/func.pyx":46 - * 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/func.pyx":48 - * 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 = real.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":49 - * raise Exception("real has wrong dimensions") - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< - * real_data = real.data - * length = real.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 49, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 49, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":48 - * 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 = real.data - */ - } - - /* "talib/func.pyx":50 - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) - * real_data = real.data # <<<<<<<<<<<<<< - * length = real.shape[0] - * begidx = 0 - */ - __pyx_v_real_data = ((double *)__pyx_v_real->data); - - /* "talib/func.pyx":51 - * real = PyArray_GETCONTIGUOUS(real) - * real_data = real.data - * length = real.shape[0] # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_v_length = (__pyx_v_real->dimensions[0]); - - /* "talib/func.pyx":52 - * real_data = real.data - * length = real.shape[0] - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = real_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":53 - * length = real.shape[0] - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = real_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":54 - * begidx = 0 - * for i from 0 <= i < length: - * val = real_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_real_data[__pyx_v_i]); - - /* "talib/func.pyx":55 - * for i from 0 <= i < length: - * val = real_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":56 - * val = real_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L6_continue; - - /* "talib/func.pyx":55 - * for i from 0 <= i < length: - * val = real_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":57 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":58 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L7_break; - __pyx_L6_continue:; - } - /*else*/ { - - /* "talib/func.pyx":60 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_ACOS_Lookback( ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__3, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 60, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 60, __pyx_L1_error) - } - __pyx_L7_break:; - - /* "talib/func.pyx":61 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_ACOS_Lookback( ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":62 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_ACOS_Lookback( ) # <<<<<<<<<<<<<< - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_ACOS_Lookback()); - - /* "talib/func.pyx":63 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_ACOS_Lookback( ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 63, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 63, __pyx_L1_error) - __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":64 - * lookback = begidx + lib.TA_ACOS_Lookback( ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - */ - __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); - - /* "talib/func.pyx":65 - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outreal_data[i] = NaN - * retCode = lib.TA_ACOS( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":66 - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN # <<<<<<<<<<<<<< - * retCode = lib.TA_ACOS( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_ACOS", retCode) - */ - (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_4func_NaN; - } - - /* "talib/func.pyx":67 - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - * retCode = lib.TA_ACOS( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_ACOS", retCode) - * return outreal - */ - __pyx_v_retCode = TA_ACOS(0, __pyx_v_endidx, ((double *)(__pyx_v_real_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); - - /* "talib/func.pyx":68 - * outreal_data[i] = NaN - * retCode = lib.TA_ACOS( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _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, 68, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":69 - * retCode = lib.TA_ACOS( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_ACOS", retCode) - * return outreal # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); - __pyx_r = ((PyObject *)__pyx_v_outreal); - goto __pyx_L0; - - /* "talib/func.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.func.ACOS", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outreal); - __Pyx_XDECREF((PyObject *)__pyx_v_real); - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "talib/func.pyx":73 - * @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_4func_3AD(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_3AD = {"AD", (PyCFunction)__pyx_pw_5talib_4func_3AD, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_2AD}; -static PyObject *__pyx_pw_5talib_4func_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, 73, __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, 73, __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, 73, __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, 73, __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, 73, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 73, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 73, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 73, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_volume), __pyx_ptype_5numpy_ndarray, 0, "volume", 0))) __PYX_ERR(0, 73, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_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; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - 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; - PyArrayObject *__pyx_v_outreal = 0; - double *__pyx_v_outreal_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __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/func.pyx":96 - * np.ndarray outreal - * double* outreal_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/func.pyx":97 - * double* outreal_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__4, 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/func.pyx":96 - * np.ndarray outreal - * double* outreal_data - * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("high is not double") - * if high.ndim != 1: - */ - } - - /* "talib/func.pyx":98 - * 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/func.pyx":99 - * raise 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__5, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 99, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 99, __pyx_L1_error) - - /* "talib/func.pyx":98 - * 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/func.pyx":100 - * 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 = high.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":101 - * raise Exception("high has wrong dimensions") - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< - * high_data = 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, 101, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 101, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":100 - * 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 = high.data - */ - } - - /* "talib/func.pyx":102 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":103 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":104 - * high_data = 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__6, 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/func.pyx":103 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = high.data - * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("low is not double") - * if low.ndim != 1: - */ - } - - /* "talib/func.pyx":105 - * 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/func.pyx":106 - * raise 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__7, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 106, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 106, __pyx_L1_error) - - /* "talib/func.pyx":105 - * 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/func.pyx":107 - * 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 = low.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":108 - * raise Exception("low has wrong dimensions") - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< - * low_data = 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, 108, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 108, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":107 - * 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 = low.data - */ - } - - /* "talib/func.pyx":109 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":110 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":111 - * low_data = 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__8, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 111, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 111, __pyx_L1_error) - - /* "talib/func.pyx":110 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = low.data - * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("close is not double") - * if close.ndim != 1: - */ - } - - /* "talib/func.pyx":112 - * 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/func.pyx":113 - * raise 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__9, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 113, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 113, __pyx_L1_error) - - /* "talib/func.pyx":112 - * 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/func.pyx":114 - * 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 = close.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":115 - * raise Exception("close has wrong dimensions") - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< - * close_data = 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, 115, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 115, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":114 - * 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 = close.data - */ - } - - /* "talib/func.pyx":116 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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/func.pyx":117 - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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/func.pyx":118 - * close_data = 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__10, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 118, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 118, __pyx_L1_error) - - /* "talib/func.pyx":117 - * close = PyArray_GETCONTIGUOUS(close) - * close_data = close.data - * if PyArray_TYPE(volume) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("volume is not double") - * if volume.ndim != 1: - */ - } - - /* "talib/func.pyx":119 - * 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/func.pyx":120 - * 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__11, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 120, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 120, __pyx_L1_error) - - /* "talib/func.pyx":119 - * 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/func.pyx":121 - * 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 = volume.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_volume) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":122 - * raise Exception("volume has wrong dimensions") - * if not (PyArray_FLAGS(volume) & np.NPY_C_CONTIGUOUS): - * volume = PyArray_GETCONTIGUOUS(volume) # <<<<<<<<<<<<<< - * volume_data = volume.data - * length = high.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_volume); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 122, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 122, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_volume, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":121 - * 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 = volume.data - */ - } - - /* "talib/func.pyx":123 - * if not (PyArray_FLAGS(volume) & np.NPY_C_CONTIGUOUS): - * volume = PyArray_GETCONTIGUOUS(volume) - * volume_data = volume.data # <<<<<<<<<<<<<< - * length = high.shape[0] - * if length != low.shape[0]: - */ - __pyx_v_volume_data = ((double *)__pyx_v_volume->data); - - /* "talib/func.pyx":124 - * volume = PyArray_GETCONTIGUOUS(volume) - * volume_data = 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/func.pyx":125 - * volume_data = 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/func.pyx":126 - * 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__12, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 126, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 126, __pyx_L1_error) - - /* "talib/func.pyx":125 - * volume_data = volume.data - * length = high.shape[0] - * if length != low.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * if length != close.shape[0]: - */ - } - - /* "talib/func.pyx":127 - * 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/func.pyx":128 - * 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__13, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 128, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 128, __pyx_L1_error) - - /* "talib/func.pyx":127 - * 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/func.pyx":129 - * if length != close.shape[0]: - * raise Exception("input lengths are different") - * if length != volume.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - __pyx_t_1 = ((__pyx_v_length != (__pyx_v_volume->dimensions[0])) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":130 - * raise Exception("input lengths are different") - * if length != volume.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__14, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 130, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 130, __pyx_L1_error) - - /* "talib/func.pyx":129 - * if length != close.shape[0]: - * raise Exception("input lengths are different") - * if length != volume.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - } - - /* "talib/func.pyx":131 - * if length != volume.shape[0]: - * raise Exception("input lengths are different") - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = high_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":132 - * raise Exception("input lengths are different") - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = high_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":133 - * begidx = 0 - * for i from 0 <= i < length: - * val = high_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); - - /* "talib/func.pyx":134 - * for i from 0 <= i < length: - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":135 - * val = high_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = low_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":134 - * for i from 0 <= i < length: - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - } - - /* "talib/func.pyx":136 - * if val != val: - * continue - * val = low_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); - - /* "talib/func.pyx":137 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":138 - * val = low_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = close_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":137 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - } - - /* "talib/func.pyx":139 - * if val != val: - * continue - * val = close_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); - - /* "talib/func.pyx":140 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = volume_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":141 - * val = close_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = volume_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":140 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = volume_data[i] - */ - } - - /* "talib/func.pyx":142 - * if val != val: - * continue - * val = volume_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_volume_data[__pyx_v_i]); - - /* "talib/func.pyx":143 - * continue - * val = volume_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":144 - * val = volume_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":143 - * continue - * val = volume_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":145 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":146 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L19_break; - __pyx_L18_continue:; - } - /*else*/ { - - /* "talib/func.pyx":148 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_AD_Lookback( ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__15, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 148, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 148, __pyx_L1_error) - } - __pyx_L19_break:; - - /* "talib/func.pyx":149 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_AD_Lookback( ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":150 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_AD_Lookback( ) # <<<<<<<<<<<<<< - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_AD_Lookback()); - - /* "talib/func.pyx":151 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_AD_Lookback( ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 151, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 151, __pyx_L1_error) - __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":152 - * lookback = begidx + lib.TA_AD_Lookback( ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - */ - __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); - - /* "talib/func.pyx":153 - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outreal_data[i] = NaN - * retCode = lib.TA_AD( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , (volume_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":154 - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN # <<<<<<<<<<<<<< - * retCode = lib.TA_AD( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , (volume_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_AD", retCode) - */ - (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_4func_NaN; - } - - /* "talib/func.pyx":155 - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - * retCode = lib.TA_AD( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , (volume_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_AD", retCode) - * return outreal - */ - __pyx_v_retCode = TA_AD(0, __pyx_v_endidx, ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), ((double *)(__pyx_v_volume_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); - - /* "talib/func.pyx":156 - * outreal_data[i] = NaN - * retCode = lib.TA_AD( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , (volume_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _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, 156, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":157 - * retCode = lib.TA_AD( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , (volume_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_AD", retCode) - * return outreal # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); - __pyx_r = ((PyObject *)__pyx_v_outreal); - goto __pyx_L0; - - /* "talib/func.pyx":73 - * @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.func.AD", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outreal); - __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/func.pyx":161 - * @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_4func_5ADD(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_5ADD = {"ADD", (PyCFunction)__pyx_pw_5talib_4func_5ADD, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_4ADD}; -static PyObject *__pyx_pw_5talib_4func_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, 161, __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, 161, __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, 161, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 161, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_real1), __pyx_ptype_5numpy_ndarray, 0, "real1", 0))) __PYX_ERR(0, 161, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_4ADD(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real0, PyArrayObject *__pyx_v_real1) { - npy_intp __pyx_v_length; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - TA_RetCode __pyx_v_retCode; - double *__pyx_v_real0_data; - double *__pyx_v_real1_data; - int __pyx_v_outbegidx; - int __pyx_v_outnbelement; - PyArrayObject *__pyx_v_outreal = 0; - double *__pyx_v_outreal_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __Pyx_RefNannySetupContext("ADD", 0); - __Pyx_INCREF((PyObject *)__pyx_v_real0); - __Pyx_INCREF((PyObject *)__pyx_v_real1); - - /* "talib/func.pyx":183 - * np.ndarray outreal - * double* outreal_data - * 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/func.pyx":184 - * double* outreal_data - * 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__16, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 184, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 184, __pyx_L1_error) - - /* "talib/func.pyx":183 - * np.ndarray outreal - * double* outreal_data - * if PyArray_TYPE(real0) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("real0 is not double") - * if real0.ndim != 1: - */ - } - - /* "talib/func.pyx":185 - * 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/func.pyx":186 - * 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__17, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 186, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 186, __pyx_L1_error) - - /* "talib/func.pyx":185 - * 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/func.pyx":187 - * 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 = real0.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real0) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":188 - * raise Exception("real0 has wrong dimensions") - * if not (PyArray_FLAGS(real0) & np.NPY_C_CONTIGUOUS): - * real0 = PyArray_GETCONTIGUOUS(real0) # <<<<<<<<<<<<<< - * real0_data = 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, 188, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 188, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_real0, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":187 - * 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 = real0.data - */ - } - - /* "talib/func.pyx":189 - * if not (PyArray_FLAGS(real0) & np.NPY_C_CONTIGUOUS): - * real0 = PyArray_GETCONTIGUOUS(real0) - * real0_data = 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/func.pyx":190 - * real0 = PyArray_GETCONTIGUOUS(real0) - * real0_data = 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/func.pyx":191 - * real0_data = 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__18, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 191, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 191, __pyx_L1_error) - - /* "talib/func.pyx":190 - * real0 = PyArray_GETCONTIGUOUS(real0) - * real0_data = real0.data - * if PyArray_TYPE(real1) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("real1 is not double") - * if real1.ndim != 1: - */ - } - - /* "talib/func.pyx":192 - * 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/func.pyx":193 - * 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__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/func.pyx":192 - * 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/func.pyx":194 - * 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 = real1.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real1) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":195 - * raise Exception("real1 has wrong dimensions") - * if not (PyArray_FLAGS(real1) & np.NPY_C_CONTIGUOUS): - * real1 = PyArray_GETCONTIGUOUS(real1) # <<<<<<<<<<<<<< - * real1_data = real1.data - * length = real0.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 195, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 195, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_real1, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":194 - * 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 = real1.data - */ - } - - /* "talib/func.pyx":196 - * if not (PyArray_FLAGS(real1) & np.NPY_C_CONTIGUOUS): - * real1 = PyArray_GETCONTIGUOUS(real1) - * real1_data = real1.data # <<<<<<<<<<<<<< - * length = real0.shape[0] - * if length != real1.shape[0]: - */ - __pyx_v_real1_data = ((double *)__pyx_v_real1->data); - - /* "talib/func.pyx":197 - * real1 = PyArray_GETCONTIGUOUS(real1) - * real1_data = 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/func.pyx":198 - * real1_data = real1.data - * length = real0.shape[0] - * if length != real1.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - __pyx_t_1 = ((__pyx_v_length != (__pyx_v_real1->dimensions[0])) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":199 - * length = real0.shape[0] - * if length != real1.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__20, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 199, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 199, __pyx_L1_error) - - /* "talib/func.pyx":198 - * real1_data = real1.data - * length = real0.shape[0] - * if length != real1.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - } - - /* "talib/func.pyx":200 - * if length != real1.shape[0]: - * raise Exception("input lengths are different") - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = real0_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":201 - * raise Exception("input lengths are different") - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = real0_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":202 - * begidx = 0 - * for i from 0 <= i < length: - * val = real0_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_real0_data[__pyx_v_i]); - - /* "talib/func.pyx":203 - * for i from 0 <= i < length: - * val = real0_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = real1_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":204 - * val = real0_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = real1_data[i] - * if val != val: - */ - goto __pyx_L10_continue; - - /* "talib/func.pyx":203 - * for i from 0 <= i < length: - * val = real0_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = real1_data[i] - */ - } - - /* "talib/func.pyx":205 - * if val != val: - * continue - * val = real1_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_real1_data[__pyx_v_i]); - - /* "talib/func.pyx":206 - * continue - * val = real1_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":207 - * val = real1_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L10_continue; - - /* "talib/func.pyx":206 - * continue - * val = real1_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":208 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":209 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L11_break; - __pyx_L10_continue:; - } - /*else*/ { - - /* "talib/func.pyx":211 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_ADD_Lookback( ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__21, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 211, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 211, __pyx_L1_error) - } - __pyx_L11_break:; - - /* "talib/func.pyx":212 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_ADD_Lookback( ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":213 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_ADD_Lookback( ) # <<<<<<<<<<<<<< - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_ADD_Lookback()); - - /* "talib/func.pyx":214 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_ADD_Lookback( ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 214, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 214, __pyx_L1_error) - __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":215 - * lookback = begidx + lib.TA_ADD_Lookback( ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - */ - __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); - - /* "talib/func.pyx":216 - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outreal_data[i] = NaN - * retCode = lib.TA_ADD( 0 , endidx , (real0_data+begidx) , (real1_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":217 - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN # <<<<<<<<<<<<<< - * retCode = lib.TA_ADD( 0 , endidx , (real0_data+begidx) , (real1_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_ADD", retCode) - */ - (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_4func_NaN; - } - - /* "talib/func.pyx":218 - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - * retCode = lib.TA_ADD( 0 , endidx , (real0_data+begidx) , (real1_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_ADD", retCode) - * return outreal - */ - __pyx_v_retCode = TA_ADD(0, __pyx_v_endidx, ((double *)(__pyx_v_real0_data + __pyx_v_begidx)), ((double *)(__pyx_v_real1_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); - - /* "talib/func.pyx":219 - * outreal_data[i] = NaN - * retCode = lib.TA_ADD( 0 , endidx , (real0_data+begidx) , (real1_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _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, 219, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":220 - * retCode = lib.TA_ADD( 0 , endidx , (real0_data+begidx) , (real1_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_ADD", retCode) - * return outreal # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); - __pyx_r = ((PyObject *)__pyx_v_outreal); - goto __pyx_L0; - - /* "talib/func.pyx":161 - * @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.func.ADD", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outreal); - __Pyx_XDECREF((PyObject *)__pyx_v_real0); - __Pyx_XDECREF((PyObject *)__pyx_v_real1); - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "talib/func.pyx":224 - * @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_4func_7ADOSC(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_7ADOSC = {"ADOSC", (PyCFunction)__pyx_pw_5talib_4func_7ADOSC, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_6ADOSC}; -static PyObject *__pyx_pw_5talib_4func_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, 224, __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, 224, __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, 224, __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, 224, __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, 224, __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, 224, __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, 224, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 224, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 224, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 224, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_volume), __pyx_ptype_5numpy_ndarray, 0, "volume", 0))) __PYX_ERR(0, 224, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_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; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - 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; - PyArrayObject *__pyx_v_outreal = 0; - double *__pyx_v_outreal_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __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/func.pyx":250 - * np.ndarray outreal - * double* outreal_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/func.pyx":251 - * double* outreal_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__22, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 251, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 251, __pyx_L1_error) - - /* "talib/func.pyx":250 - * np.ndarray outreal - * double* outreal_data - * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("high is not double") - * if high.ndim != 1: - */ - } - - /* "talib/func.pyx":252 - * 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/func.pyx":253 - * raise 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__23, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 253, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 253, __pyx_L1_error) - - /* "talib/func.pyx":252 - * 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/func.pyx":254 - * 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 = high.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":255 - * raise Exception("high has wrong dimensions") - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< - * high_data = 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, 255, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 255, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":254 - * 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 = high.data - */ - } - - /* "talib/func.pyx":256 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":257 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":258 - * high_data = 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__24, 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/func.pyx":257 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = high.data - * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("low is not double") - * if low.ndim != 1: - */ - } - - /* "talib/func.pyx":259 - * 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/func.pyx":260 - * raise 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__25, 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/func.pyx":259 - * 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/func.pyx":261 - * 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 = low.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":262 - * raise Exception("low has wrong dimensions") - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< - * low_data = 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, 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_low, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":261 - * 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 = low.data - */ - } - - /* "talib/func.pyx":263 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":264 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":265 - * low_data = 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__26, 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/func.pyx":264 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = low.data - * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("close is not double") - * if close.ndim != 1: - */ - } - - /* "talib/func.pyx":266 - * 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/func.pyx":267 - * raise 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__27, 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/func.pyx":266 - * 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/func.pyx":268 - * 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 = close.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":269 - * raise Exception("close has wrong dimensions") - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< - * close_data = 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, 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_close, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":268 - * 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 = close.data - */ - } - - /* "talib/func.pyx":270 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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/func.pyx":271 - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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/func.pyx":272 - * close_data = 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__28, 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/func.pyx":271 - * close = PyArray_GETCONTIGUOUS(close) - * close_data = close.data - * if PyArray_TYPE(volume) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("volume is not double") - * if volume.ndim != 1: - */ - } - - /* "talib/func.pyx":273 - * 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/func.pyx":274 - * 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__29, 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/func.pyx":273 - * 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/func.pyx":275 - * 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 = volume.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_volume) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":276 - * raise Exception("volume has wrong dimensions") - * if not (PyArray_FLAGS(volume) & np.NPY_C_CONTIGUOUS): - * volume = PyArray_GETCONTIGUOUS(volume) # <<<<<<<<<<<<<< - * volume_data = volume.data - * length = high.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_volume); 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_volume, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":275 - * 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 = volume.data - */ - } - - /* "talib/func.pyx":277 - * if not (PyArray_FLAGS(volume) & np.NPY_C_CONTIGUOUS): - * volume = PyArray_GETCONTIGUOUS(volume) - * volume_data = volume.data # <<<<<<<<<<<<<< - * length = high.shape[0] - * if length != low.shape[0]: - */ - __pyx_v_volume_data = ((double *)__pyx_v_volume->data); - - /* "talib/func.pyx":278 - * volume = PyArray_GETCONTIGUOUS(volume) - * volume_data = 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/func.pyx":279 - * volume_data = 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/func.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__30, 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/func.pyx":279 - * volume_data = volume.data - * length = high.shape[0] - * if length != low.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * if length != close.shape[0]: - */ - } - - /* "talib/func.pyx":281 - * 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/func.pyx":282 - * 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__31, 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/func.pyx":281 - * 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/func.pyx":283 - * if length != close.shape[0]: - * raise Exception("input lengths are different") - * if length != volume.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - __pyx_t_1 = ((__pyx_v_length != (__pyx_v_volume->dimensions[0])) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":284 - * raise Exception("input lengths are different") - * if length != volume.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__32, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 284, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 284, __pyx_L1_error) - - /* "talib/func.pyx":283 - * if length != close.shape[0]: - * raise Exception("input lengths are different") - * if length != volume.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - } - - /* "talib/func.pyx":285 - * if length != volume.shape[0]: - * raise Exception("input lengths are different") - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = high_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":286 - * raise Exception("input lengths are different") - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = high_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":287 - * begidx = 0 - * for i from 0 <= i < length: - * val = high_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); - - /* "talib/func.pyx":288 - * for i from 0 <= i < length: - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":289 - * val = high_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = low_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":288 - * for i from 0 <= i < length: - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - } - - /* "talib/func.pyx":290 - * if val != val: - * continue - * val = low_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); - - /* "talib/func.pyx":291 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":292 - * val = low_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = close_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":291 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - } - - /* "talib/func.pyx":293 - * if val != val: - * continue - * val = close_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); - - /* "talib/func.pyx":294 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = volume_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":295 - * val = close_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = volume_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":294 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = volume_data[i] - */ - } - - /* "talib/func.pyx":296 - * if val != val: - * continue - * val = volume_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_volume_data[__pyx_v_i]); - - /* "talib/func.pyx":297 - * continue - * val = volume_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":298 - * val = volume_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":297 - * continue - * val = volume_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":299 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":300 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L19_break; - __pyx_L18_continue:; - } - /*else*/ { - - /* "talib/func.pyx":302 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_ADOSC_Lookback( fastperiod , slowperiod ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__33, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 302, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 302, __pyx_L1_error) - } - __pyx_L19_break:; - - /* "talib/func.pyx":303 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_ADOSC_Lookback( fastperiod , slowperiod ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":304 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_ADOSC_Lookback( fastperiod , slowperiod ) # <<<<<<<<<<<<<< - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_ADOSC_Lookback(__pyx_v_fastperiod, __pyx_v_slowperiod)); - - /* "talib/func.pyx":305 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_ADOSC_Lookback( fastperiod , slowperiod ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 305, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 305, __pyx_L1_error) - __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":306 - * lookback = begidx + lib.TA_ADOSC_Lookback( fastperiod , slowperiod ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - */ - __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); - - /* "talib/func.pyx":307 - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outreal_data[i] = NaN - * retCode = lib.TA_ADOSC( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , (volume_data+begidx) , fastperiod , slowperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":308 - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN # <<<<<<<<<<<<<< - * retCode = lib.TA_ADOSC( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , (volume_data+begidx) , fastperiod , slowperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_ADOSC", retCode) - */ - (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_4func_NaN; - } - - /* "talib/func.pyx":309 - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - * retCode = lib.TA_ADOSC( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , (volume_data+begidx) , fastperiod , slowperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_ADOSC", retCode) - * return outreal - */ - __pyx_v_retCode = TA_ADOSC(0, __pyx_v_endidx, ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), ((double *)(__pyx_v_volume_data + __pyx_v_begidx)), __pyx_v_fastperiod, __pyx_v_slowperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); - - /* "talib/func.pyx":310 - * outreal_data[i] = NaN - * retCode = lib.TA_ADOSC( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , (volume_data+begidx) , fastperiod , slowperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _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, 310, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":311 - * retCode = lib.TA_ADOSC( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , (volume_data+begidx) , fastperiod , slowperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_ADOSC", retCode) - * return outreal # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); - __pyx_r = ((PyObject *)__pyx_v_outreal); - goto __pyx_L0; - - /* "talib/func.pyx":224 - * @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.func.ADOSC", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outreal); - __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/func.pyx":315 - * @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_4func_9ADX(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_9ADX = {"ADX", (PyCFunction)__pyx_pw_5talib_4func_9ADX, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_8ADX}; -static PyObject *__pyx_pw_5talib_4func_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, 315, __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, 315, __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, 315, __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, 315, __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, 315, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 315, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 315, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 315, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_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; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - 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; - PyArrayObject *__pyx_v_outreal = 0; - double *__pyx_v_outreal_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __Pyx_RefNannySetupContext("ADX", 0); - __Pyx_INCREF((PyObject *)__pyx_v_high); - __Pyx_INCREF((PyObject *)__pyx_v_low); - __Pyx_INCREF((PyObject *)__pyx_v_close); - - /* "talib/func.pyx":339 - * np.ndarray outreal - * double* outreal_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/func.pyx":340 - * double* outreal_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__34, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 340, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 340, __pyx_L1_error) - - /* "talib/func.pyx":339 - * np.ndarray outreal - * double* outreal_data - * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("high is not double") - * if high.ndim != 1: - */ - } - - /* "talib/func.pyx":341 - * 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/func.pyx":342 - * raise 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__35, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 342, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 342, __pyx_L1_error) - - /* "talib/func.pyx":341 - * 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/func.pyx":343 - * 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 = high.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":344 - * raise Exception("high has wrong dimensions") - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< - * high_data = 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, 344, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 344, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":343 - * 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 = high.data - */ - } - - /* "talib/func.pyx":345 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":346 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":347 - * high_data = 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__36, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 347, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 347, __pyx_L1_error) - - /* "talib/func.pyx":346 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = high.data - * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("low is not double") - * if low.ndim != 1: - */ - } - - /* "talib/func.pyx":348 - * 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/func.pyx":349 - * raise 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__37, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 349, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 349, __pyx_L1_error) - - /* "talib/func.pyx":348 - * 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/func.pyx":350 - * 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 = low.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":351 - * raise Exception("low has wrong dimensions") - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< - * low_data = 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, 351, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 351, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":350 - * 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 = low.data - */ - } - - /* "talib/func.pyx":352 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":353 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":354 - * low_data = 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__38, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 354, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 354, __pyx_L1_error) - - /* "talib/func.pyx":353 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = low.data - * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("close is not double") - * if close.ndim != 1: - */ - } - - /* "talib/func.pyx":355 - * 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/func.pyx":356 - * raise 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__39, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 356, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 356, __pyx_L1_error) - - /* "talib/func.pyx":355 - * 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/func.pyx":357 - * 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 = close.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":358 - * raise Exception("close has wrong dimensions") - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< - * close_data = close.data - * length = high.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 358, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 358, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":357 - * 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 = close.data - */ - } - - /* "talib/func.pyx":359 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = close.data # <<<<<<<<<<<<<< - * length = high.shape[0] - * if length != low.shape[0]: - */ - __pyx_v_close_data = ((double *)__pyx_v_close->data); - - /* "talib/func.pyx":360 - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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/func.pyx":361 - * close_data = 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/func.pyx":362 - * 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__40, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 362, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 362, __pyx_L1_error) - - /* "talib/func.pyx":361 - * close_data = close.data - * length = high.shape[0] - * if length != low.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * if length != close.shape[0]: - */ - } - - /* "talib/func.pyx":363 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":364 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__41, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 364, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 364, __pyx_L1_error) - - /* "talib/func.pyx":363 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - } - - /* "talib/func.pyx":365 - * if length != close.shape[0]: - * raise Exception("input lengths are different") - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = high_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":366 - * raise Exception("input lengths are different") - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = high_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":367 - * begidx = 0 - * for i from 0 <= i < length: - * val = high_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); - - /* "talib/func.pyx":368 - * for i from 0 <= i < length: - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":369 - * val = high_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = low_data[i] - * if val != val: - */ - goto __pyx_L14_continue; - - /* "talib/func.pyx":368 - * for i from 0 <= i < length: - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - } - - /* "talib/func.pyx":370 - * if val != val: - * continue - * val = low_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); - - /* "talib/func.pyx":371 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":372 - * val = low_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = close_data[i] - * if val != val: - */ - goto __pyx_L14_continue; - - /* "talib/func.pyx":371 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - } - - /* "talib/func.pyx":373 - * if val != val: - * continue - * val = close_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); - - /* "talib/func.pyx":374 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":375 - * val = close_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L14_continue; - - /* "talib/func.pyx":374 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":376 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":377 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L15_break; - __pyx_L14_continue:; - } - /*else*/ { - - /* "talib/func.pyx":379 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_ADX_Lookback( timeperiod ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__42, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 379, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 379, __pyx_L1_error) - } - __pyx_L15_break:; - - /* "talib/func.pyx":380 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_ADX_Lookback( timeperiod ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":381 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_ADX_Lookback( timeperiod ) # <<<<<<<<<<<<<< - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_ADX_Lookback(__pyx_v_timeperiod)); - - /* "talib/func.pyx":382 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_ADX_Lookback( timeperiod ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 382, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 382, __pyx_L1_error) - __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":383 - * lookback = begidx + lib.TA_ADX_Lookback( timeperiod ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - */ - __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); - - /* "talib/func.pyx":384 - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outreal_data[i] = NaN - * retCode = lib.TA_ADX( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":385 - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN # <<<<<<<<<<<<<< - * retCode = lib.TA_ADX( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_ADX", retCode) - */ - (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_4func_NaN; - } - - /* "talib/func.pyx":386 - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - * retCode = lib.TA_ADX( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_ADX", retCode) - * return outreal - */ - __pyx_v_retCode = TA_ADX(0, __pyx_v_endidx, ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); - - /* "talib/func.pyx":387 - * outreal_data[i] = NaN - * retCode = lib.TA_ADX( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _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, 387, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":388 - * retCode = lib.TA_ADX( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_ADX", retCode) - * return outreal # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); - __pyx_r = ((PyObject *)__pyx_v_outreal); - goto __pyx_L0; - - /* "talib/func.pyx":315 - * @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.func.ADX", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outreal); - __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/func.pyx":392 - * @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_4func_11ADXR(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_11ADXR = {"ADXR", (PyCFunction)__pyx_pw_5talib_4func_11ADXR, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_10ADXR}; -static PyObject *__pyx_pw_5talib_4func_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, 392, __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, 392, __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, 392, __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, 392, __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, 392, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 392, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 392, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 392, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_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; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - 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; - PyArrayObject *__pyx_v_outreal = 0; - double *__pyx_v_outreal_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __Pyx_RefNannySetupContext("ADXR", 0); - __Pyx_INCREF((PyObject *)__pyx_v_high); - __Pyx_INCREF((PyObject *)__pyx_v_low); - __Pyx_INCREF((PyObject *)__pyx_v_close); - - /* "talib/func.pyx":416 - * np.ndarray outreal - * double* outreal_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/func.pyx":417 - * double* outreal_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__43, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 417, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 417, __pyx_L1_error) - - /* "talib/func.pyx":416 - * np.ndarray outreal - * double* outreal_data - * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("high is not double") - * if high.ndim != 1: - */ - } - - /* "talib/func.pyx":418 - * 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/func.pyx":419 - * raise 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__44, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 419, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 419, __pyx_L1_error) - - /* "talib/func.pyx":418 - * 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/func.pyx":420 - * 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 = high.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":421 - * raise Exception("high has wrong dimensions") - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< - * high_data = 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, 421, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 421, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":420 - * 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 = high.data - */ - } - - /* "talib/func.pyx":422 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":423 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":424 - * high_data = 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__45, 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/func.pyx":423 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = high.data - * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("low is not double") - * if low.ndim != 1: - */ - } - - /* "talib/func.pyx":425 - * 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/func.pyx":426 - * raise 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__46, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 426, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 426, __pyx_L1_error) - - /* "talib/func.pyx":425 - * 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/func.pyx":427 - * 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 = low.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":428 - * raise Exception("low has wrong dimensions") - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< - * low_data = 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, 428, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 428, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":427 - * 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 = low.data - */ - } - - /* "talib/func.pyx":429 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":430 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":431 - * low_data = 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__47, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 431, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 431, __pyx_L1_error) - - /* "talib/func.pyx":430 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = low.data - * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("close is not double") - * if close.ndim != 1: - */ - } - - /* "talib/func.pyx":432 - * 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/func.pyx":433 - * raise 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__48, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 433, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 433, __pyx_L1_error) - - /* "talib/func.pyx":432 - * 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/func.pyx":434 - * 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 = close.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":435 - * raise Exception("close has wrong dimensions") - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< - * close_data = close.data - * length = high.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 435, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 435, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":434 - * 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 = close.data - */ - } - - /* "talib/func.pyx":436 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = close.data # <<<<<<<<<<<<<< - * length = high.shape[0] - * if length != low.shape[0]: - */ - __pyx_v_close_data = ((double *)__pyx_v_close->data); - - /* "talib/func.pyx":437 - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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/func.pyx":438 - * close_data = 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/func.pyx":439 - * 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__49, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 439, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 439, __pyx_L1_error) - - /* "talib/func.pyx":438 - * close_data = close.data - * length = high.shape[0] - * if length != low.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * if length != close.shape[0]: - */ - } - - /* "talib/func.pyx":440 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":441 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__50, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 441, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 441, __pyx_L1_error) - - /* "talib/func.pyx":440 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - } - - /* "talib/func.pyx":442 - * if length != close.shape[0]: - * raise Exception("input lengths are different") - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = high_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":443 - * raise Exception("input lengths are different") - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = high_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":444 - * begidx = 0 - * for i from 0 <= i < length: - * val = high_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); - - /* "talib/func.pyx":445 - * for i from 0 <= i < length: - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":446 - * val = high_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = low_data[i] - * if val != val: - */ - goto __pyx_L14_continue; - - /* "talib/func.pyx":445 - * for i from 0 <= i < length: - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - } - - /* "talib/func.pyx":447 - * if val != val: - * continue - * val = low_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); - - /* "talib/func.pyx":448 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":449 - * val = low_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = close_data[i] - * if val != val: - */ - goto __pyx_L14_continue; - - /* "talib/func.pyx":448 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - } - - /* "talib/func.pyx":450 - * if val != val: - * continue - * val = close_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); - - /* "talib/func.pyx":451 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":452 - * val = close_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L14_continue; - - /* "talib/func.pyx":451 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":453 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":454 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L15_break; - __pyx_L14_continue:; - } - /*else*/ { - - /* "talib/func.pyx":456 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_ADXR_Lookback( timeperiod ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__51, 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) - } - __pyx_L15_break:; - - /* "talib/func.pyx":457 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_ADXR_Lookback( timeperiod ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":458 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_ADXR_Lookback( timeperiod ) # <<<<<<<<<<<<<< - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_ADXR_Lookback(__pyx_v_timeperiod)); - - /* "talib/func.pyx":459 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_ADXR_Lookback( timeperiod ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 459, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 459, __pyx_L1_error) - __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":460 - * lookback = begidx + lib.TA_ADXR_Lookback( timeperiod ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - */ - __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); - - /* "talib/func.pyx":461 - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outreal_data[i] = NaN - * retCode = lib.TA_ADXR( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":462 - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN # <<<<<<<<<<<<<< - * retCode = lib.TA_ADXR( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_ADXR", retCode) - */ - (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_4func_NaN; - } - - /* "talib/func.pyx":463 - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - * retCode = lib.TA_ADXR( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_ADXR", retCode) - * return outreal - */ - __pyx_v_retCode = TA_ADXR(0, __pyx_v_endidx, ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); - - /* "talib/func.pyx":464 - * outreal_data[i] = NaN - * retCode = lib.TA_ADXR( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _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, 464, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":465 - * retCode = lib.TA_ADXR( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_ADXR", retCode) - * return outreal # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); - __pyx_r = ((PyObject *)__pyx_v_outreal); - goto __pyx_L0; - - /* "talib/func.pyx":392 - * @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.func.ADXR", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outreal); - __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/func.pyx":469 - * @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_4func_13APO(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_13APO = {"APO", (PyCFunction)__pyx_pw_5talib_4func_13APO, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_12APO}; -static PyObject *__pyx_pw_5talib_4func_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, 469, __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, 469, __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, 469, __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, 469, __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, 469, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 469, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_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; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - TA_RetCode __pyx_v_retCode; - double *__pyx_v_real_data; - int __pyx_v_outbegidx; - int __pyx_v_outnbelement; - PyArrayObject *__pyx_v_outreal = 0; - double *__pyx_v_outreal_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __Pyx_RefNannySetupContext("APO", 0); - __Pyx_INCREF((PyObject *)__pyx_v_real); - - /* "talib/func.pyx":493 - * np.ndarray outreal - * double* outreal_data - * 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/func.pyx":494 - * double* outreal_data - * 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__52, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 494, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 494, __pyx_L1_error) - - /* "talib/func.pyx":493 - * np.ndarray outreal - * double* outreal_data - * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("real is not double") - * if real.ndim != 1: - */ - } - - /* "talib/func.pyx":495 - * 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/func.pyx":496 - * 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__53, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 496, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 496, __pyx_L1_error) - - /* "talib/func.pyx":495 - * 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/func.pyx":497 - * 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 = real.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":498 - * raise Exception("real has wrong dimensions") - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< - * real_data = real.data - * length = real.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 498, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 498, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":497 - * 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 = real.data - */ - } - - /* "talib/func.pyx":499 - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) - * real_data = real.data # <<<<<<<<<<<<<< - * length = real.shape[0] - * begidx = 0 - */ - __pyx_v_real_data = ((double *)__pyx_v_real->data); - - /* "talib/func.pyx":500 - * real = PyArray_GETCONTIGUOUS(real) - * real_data = real.data - * length = real.shape[0] # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_v_length = (__pyx_v_real->dimensions[0]); - - /* "talib/func.pyx":501 - * real_data = real.data - * length = real.shape[0] - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = real_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":502 - * length = real.shape[0] - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = real_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":503 - * begidx = 0 - * for i from 0 <= i < length: - * val = real_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_real_data[__pyx_v_i]); - - /* "talib/func.pyx":504 - * for i from 0 <= i < length: - * val = real_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":505 - * val = real_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L6_continue; - - /* "talib/func.pyx":504 - * for i from 0 <= i < length: - * val = real_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":506 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":507 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L7_break; - __pyx_L6_continue:; - } - /*else*/ { - - /* "talib/func.pyx":509 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_APO_Lookback( fastperiod , slowperiod , matype ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__54, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 509, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 509, __pyx_L1_error) - } - __pyx_L7_break:; - - /* "talib/func.pyx":510 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_APO_Lookback( fastperiod , slowperiod , matype ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":511 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_APO_Lookback( fastperiod , slowperiod , matype ) # <<<<<<<<<<<<<< - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_APO_Lookback(__pyx_v_fastperiod, __pyx_v_slowperiod, __pyx_v_matype)); - - /* "talib/func.pyx":512 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_APO_Lookback( fastperiod , slowperiod , matype ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 512, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 512, __pyx_L1_error) - __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":513 - * lookback = begidx + lib.TA_APO_Lookback( fastperiod , slowperiod , matype ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - */ - __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); - - /* "talib/func.pyx":514 - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outreal_data[i] = NaN - * retCode = lib.TA_APO( 0 , endidx , (real_data+begidx) , fastperiod , slowperiod , matype , &outbegidx , &outnbelement , (outreal_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":515 - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN # <<<<<<<<<<<<<< - * retCode = lib.TA_APO( 0 , endidx , (real_data+begidx) , fastperiod , slowperiod , matype , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_APO", retCode) - */ - (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_4func_NaN; - } - - /* "talib/func.pyx":516 - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - * retCode = lib.TA_APO( 0 , endidx , (real_data+begidx) , fastperiod , slowperiod , matype , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_APO", retCode) - * return outreal - */ - __pyx_v_retCode = TA_APO(0, __pyx_v_endidx, ((double *)(__pyx_v_real_data + __pyx_v_begidx)), __pyx_v_fastperiod, __pyx_v_slowperiod, __pyx_v_matype, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); - - /* "talib/func.pyx":517 - * outreal_data[i] = NaN - * retCode = lib.TA_APO( 0 , endidx , (real_data+begidx) , fastperiod , slowperiod , matype , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _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, 517, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":518 - * retCode = lib.TA_APO( 0 , endidx , (real_data+begidx) , fastperiod , slowperiod , matype , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_APO", retCode) - * return outreal # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); - __pyx_r = ((PyObject *)__pyx_v_outreal); - goto __pyx_L0; - - /* "talib/func.pyx":469 - * @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.func.APO", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outreal); - __Pyx_XDECREF((PyObject *)__pyx_v_real); - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "talib/func.pyx":522 - * @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_4func_15AROON(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_15AROON = {"AROON", (PyCFunction)__pyx_pw_5talib_4func_15AROON, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_14AROON}; -static PyObject *__pyx_pw_5talib_4func_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, 522, __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, 522, __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, 522, __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, 522, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 522, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 522, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_14AROON(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, int __pyx_v_timeperiod) { - npy_intp __pyx_v_length; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - TA_RetCode __pyx_v_retCode; - double *__pyx_v_high_data; - double *__pyx_v_low_data; - int __pyx_v_outbegidx; - int __pyx_v_outnbelement; - PyArrayObject *__pyx_v_outaroondown = 0; - double *__pyx_v_outaroondown_data; - PyArrayObject *__pyx_v_outaroonup = 0; - double *__pyx_v_outaroonup_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __Pyx_RefNannySetupContext("AROON", 0); - __Pyx_INCREF((PyObject *)__pyx_v_high); - __Pyx_INCREF((PyObject *)__pyx_v_low); - - /* "talib/func.pyx":548 - * np.ndarray outaroonup - * double* outaroonup_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/func.pyx":549 - * double* outaroonup_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__55, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 549, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 549, __pyx_L1_error) - - /* "talib/func.pyx":548 - * np.ndarray outaroonup - * double* outaroonup_data - * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("high is not double") - * if high.ndim != 1: - */ - } - - /* "talib/func.pyx":550 - * 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/func.pyx":551 - * raise 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__56, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 551, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 551, __pyx_L1_error) - - /* "talib/func.pyx":550 - * 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/func.pyx":552 - * 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 = high.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":553 - * raise Exception("high has wrong dimensions") - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< - * high_data = 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, 553, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 553, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":552 - * 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 = high.data - */ - } - - /* "talib/func.pyx":554 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":555 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":556 - * high_data = 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__57, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 556, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 556, __pyx_L1_error) - - /* "talib/func.pyx":555 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = high.data - * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("low is not double") - * if low.ndim != 1: - */ - } - - /* "talib/func.pyx":557 - * 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/func.pyx":558 - * raise 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__58, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 558, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 558, __pyx_L1_error) - - /* "talib/func.pyx":557 - * 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/func.pyx":559 - * 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 = low.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":560 - * raise Exception("low has wrong dimensions") - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< - * low_data = low.data - * length = high.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 560, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 560, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":559 - * 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 = low.data - */ - } - - /* "talib/func.pyx":561 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = low.data # <<<<<<<<<<<<<< - * length = high.shape[0] - * if length != low.shape[0]: - */ - __pyx_v_low_data = ((double *)__pyx_v_low->data); - - /* "talib/func.pyx":562 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":563 - * low_data = low.data - * length = high.shape[0] - * if length != low.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - __pyx_t_1 = ((__pyx_v_length != (__pyx_v_low->dimensions[0])) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":564 - * length = high.shape[0] - * if length != low.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__59, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 564, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 564, __pyx_L1_error) - - /* "talib/func.pyx":563 - * low_data = low.data - * length = high.shape[0] - * if length != low.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - } - - /* "talib/func.pyx":565 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = high_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":566 - * raise Exception("input lengths are different") - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = high_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":567 - * begidx = 0 - * for i from 0 <= i < length: - * val = high_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); - - /* "talib/func.pyx":568 - * for i from 0 <= i < length: - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":569 - * val = high_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = low_data[i] - * if val != val: - */ - goto __pyx_L10_continue; - - /* "talib/func.pyx":568 - * for i from 0 <= i < length: - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - } - - /* "talib/func.pyx":570 - * if val != val: - * continue - * val = low_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); - - /* "talib/func.pyx":571 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":572 - * val = low_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L10_continue; - - /* "talib/func.pyx":571 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":573 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":574 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L11_break; - __pyx_L10_continue:; - } - /*else*/ { - - /* "talib/func.pyx":576 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_AROON_Lookback( timeperiod ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__60, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 576, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 576, __pyx_L1_error) - } - __pyx_L11_break:; - - /* "talib/func.pyx":577 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_AROON_Lookback( timeperiod ) - * outaroondown = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":578 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_AROON_Lookback( timeperiod ) # <<<<<<<<<<<<<< - * outaroondown = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outaroondown_data = outaroondown.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_AROON_Lookback(__pyx_v_timeperiod)); - - /* "talib/func.pyx":579 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_AROON_Lookback( timeperiod ) - * outaroondown = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outaroondown_data = outaroondown.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 579, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 579, __pyx_L1_error) - __pyx_v_outaroondown = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":580 - * lookback = begidx + lib.TA_AROON_Lookback( timeperiod ) - * outaroondown = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outaroondown_data = outaroondown.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outaroondown_data[i] = NaN - */ - __pyx_v_outaroondown_data = ((double *)__pyx_v_outaroondown->data); - - /* "talib/func.pyx":581 - * outaroondown = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outaroondown_data = outaroondown.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outaroondown_data[i] = NaN - * outaroonup = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":582 - * outaroondown_data = outaroondown.data - * for i from 0 <= i < min(lookback, length): - * outaroondown_data[i] = NaN # <<<<<<<<<<<<<< - * outaroonup = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outaroonup_data = outaroonup.data - */ - (__pyx_v_outaroondown_data[__pyx_v_i]) = __pyx_v_5talib_4func_NaN; - } - - /* "talib/func.pyx":583 - * for i from 0 <= i < min(lookback, length): - * outaroondown_data[i] = NaN - * outaroonup = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outaroonup_data = outaroonup.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 583, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 583, __pyx_L1_error) - __pyx_v_outaroonup = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":584 - * outaroondown_data[i] = NaN - * outaroonup = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outaroonup_data = outaroonup.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outaroonup_data[i] = NaN - */ - __pyx_v_outaroonup_data = ((double *)__pyx_v_outaroonup->data); - - /* "talib/func.pyx":585 - * outaroonup = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outaroonup_data = outaroonup.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outaroonup_data[i] = NaN - * retCode = lib.TA_AROON( 0 , endidx , (high_data+begidx) , (low_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outaroondown_data+lookback) , (outaroonup_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":586 - * outaroonup_data = outaroonup.data - * for i from 0 <= i < min(lookback, length): - * outaroonup_data[i] = NaN # <<<<<<<<<<<<<< - * retCode = lib.TA_AROON( 0 , endidx , (high_data+begidx) , (low_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outaroondown_data+lookback) , (outaroonup_data+lookback) ) - * _ta_check_success("TA_AROON", retCode) - */ - (__pyx_v_outaroonup_data[__pyx_v_i]) = __pyx_v_5talib_4func_NaN; - } - - /* "talib/func.pyx":587 - * for i from 0 <= i < min(lookback, length): - * outaroonup_data[i] = NaN - * retCode = lib.TA_AROON( 0 , endidx , (high_data+begidx) , (low_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outaroondown_data+lookback) , (outaroonup_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_AROON", retCode) - * return outaroondown , outaroonup - */ - __pyx_v_retCode = TA_AROON(0, __pyx_v_endidx, ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outaroondown_data + __pyx_v_lookback)), ((double *)(__pyx_v_outaroonup_data + __pyx_v_lookback))); - - /* "talib/func.pyx":588 - * outaroonup_data[i] = NaN - * retCode = lib.TA_AROON( 0 , endidx , (high_data+begidx) , (low_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outaroondown_data+lookback) , (outaroonup_data+lookback) ) - * _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, 588, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":589 - * retCode = lib.TA_AROON( 0 , endidx , (high_data+begidx) , (low_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outaroondown_data+lookback) , (outaroonup_data+lookback) ) - * _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 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 589, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_INCREF(((PyObject *)__pyx_v_outaroondown)); - __Pyx_GIVEREF(((PyObject *)__pyx_v_outaroondown)); - PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_v_outaroondown)); - __Pyx_INCREF(((PyObject *)__pyx_v_outaroonup)); - __Pyx_GIVEREF(((PyObject *)__pyx_v_outaroonup)); - PyTuple_SET_ITEM(__pyx_t_2, 1, ((PyObject *)__pyx_v_outaroonup)); - __pyx_r = __pyx_t_2; - __pyx_t_2 = 0; - goto __pyx_L0; - - /* "talib/func.pyx":522 - * @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_AddTraceback("talib.func.AROON", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outaroondown); - __Pyx_XDECREF((PyObject *)__pyx_v_outaroonup); - __Pyx_XDECREF((PyObject *)__pyx_v_high); - __Pyx_XDECREF((PyObject *)__pyx_v_low); - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "talib/func.pyx":593 - * @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_4func_17AROONOSC(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_17AROONOSC = {"AROONOSC", (PyCFunction)__pyx_pw_5talib_4func_17AROONOSC, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_16AROONOSC}; -static PyObject *__pyx_pw_5talib_4func_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, 593, __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, 593, __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, 593, __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, 593, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 593, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 593, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_16AROONOSC(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, int __pyx_v_timeperiod) { - npy_intp __pyx_v_length; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - TA_RetCode __pyx_v_retCode; - double *__pyx_v_high_data; - double *__pyx_v_low_data; - int __pyx_v_outbegidx; - int __pyx_v_outnbelement; - PyArrayObject *__pyx_v_outreal = 0; - double *__pyx_v_outreal_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __Pyx_RefNannySetupContext("AROONOSC", 0); - __Pyx_INCREF((PyObject *)__pyx_v_high); - __Pyx_INCREF((PyObject *)__pyx_v_low); - - /* "talib/func.pyx":616 - * np.ndarray outreal - * double* outreal_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/func.pyx":617 - * double* outreal_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__61, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 617, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 617, __pyx_L1_error) - - /* "talib/func.pyx":616 - * np.ndarray outreal - * double* outreal_data - * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("high is not double") - * if high.ndim != 1: - */ - } - - /* "talib/func.pyx":618 - * 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/func.pyx":619 - * raise 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__62, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 619, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 619, __pyx_L1_error) - - /* "talib/func.pyx":618 - * 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/func.pyx":620 - * 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 = high.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":621 - * raise Exception("high has wrong dimensions") - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< - * high_data = 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, 621, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 621, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":620 - * 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 = high.data - */ - } - - /* "talib/func.pyx":622 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":623 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":624 - * high_data = 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__63, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 624, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 624, __pyx_L1_error) - - /* "talib/func.pyx":623 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = high.data - * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("low is not double") - * if low.ndim != 1: - */ - } - - /* "talib/func.pyx":625 - * 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/func.pyx":626 - * raise 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__64, 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/func.pyx":625 - * 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/func.pyx":627 - * 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 = low.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":628 - * raise Exception("low has wrong dimensions") - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< - * low_data = low.data - * length = high.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 628, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 628, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":627 - * 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 = low.data - */ - } - - /* "talib/func.pyx":629 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = low.data # <<<<<<<<<<<<<< - * length = high.shape[0] - * if length != low.shape[0]: - */ - __pyx_v_low_data = ((double *)__pyx_v_low->data); - - /* "talib/func.pyx":630 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":631 - * low_data = low.data - * length = high.shape[0] - * if length != low.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - __pyx_t_1 = ((__pyx_v_length != (__pyx_v_low->dimensions[0])) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":632 - * length = high.shape[0] - * if length != low.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__65, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 632, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 632, __pyx_L1_error) - - /* "talib/func.pyx":631 - * low_data = low.data - * length = high.shape[0] - * if length != low.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - } - - /* "talib/func.pyx":633 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = high_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":634 - * raise Exception("input lengths are different") - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = high_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":635 - * begidx = 0 - * for i from 0 <= i < length: - * val = high_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); - - /* "talib/func.pyx":636 - * for i from 0 <= i < length: - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":637 - * val = high_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = low_data[i] - * if val != val: - */ - goto __pyx_L10_continue; - - /* "talib/func.pyx":636 - * for i from 0 <= i < length: - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - } - - /* "talib/func.pyx":638 - * if val != val: - * continue - * val = low_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); - - /* "talib/func.pyx":639 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":640 - * val = low_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L10_continue; - - /* "talib/func.pyx":639 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":641 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":642 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L11_break; - __pyx_L10_continue:; - } - /*else*/ { - - /* "talib/func.pyx":644 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_AROONOSC_Lookback( timeperiod ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__66, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 644, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 644, __pyx_L1_error) - } - __pyx_L11_break:; - - /* "talib/func.pyx":645 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_AROONOSC_Lookback( timeperiod ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":646 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_AROONOSC_Lookback( timeperiod ) # <<<<<<<<<<<<<< - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_AROONOSC_Lookback(__pyx_v_timeperiod)); - - /* "talib/func.pyx":647 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_AROONOSC_Lookback( timeperiod ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 647, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 647, __pyx_L1_error) - __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":648 - * lookback = begidx + lib.TA_AROONOSC_Lookback( timeperiod ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - */ - __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); - - /* "talib/func.pyx":649 - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outreal_data[i] = NaN - * retCode = lib.TA_AROONOSC( 0 , endidx , (high_data+begidx) , (low_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":650 - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN # <<<<<<<<<<<<<< - * retCode = lib.TA_AROONOSC( 0 , endidx , (high_data+begidx) , (low_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_AROONOSC", retCode) - */ - (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_4func_NaN; - } - - /* "talib/func.pyx":651 - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - * retCode = lib.TA_AROONOSC( 0 , endidx , (high_data+begidx) , (low_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_AROONOSC", retCode) - * return outreal - */ - __pyx_v_retCode = TA_AROONOSC(0, __pyx_v_endidx, ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); - - /* "talib/func.pyx":652 - * outreal_data[i] = NaN - * retCode = lib.TA_AROONOSC( 0 , endidx , (high_data+begidx) , (low_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _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, 652, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":653 - * retCode = lib.TA_AROONOSC( 0 , endidx , (high_data+begidx) , (low_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_AROONOSC", retCode) - * return outreal # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); - __pyx_r = ((PyObject *)__pyx_v_outreal); - goto __pyx_L0; - - /* "talib/func.pyx":593 - * @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.func.AROONOSC", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outreal); - __Pyx_XDECREF((PyObject *)__pyx_v_high); - __Pyx_XDECREF((PyObject *)__pyx_v_low); - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "talib/func.pyx":657 - * @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_4func_19ASIN(PyObject *__pyx_self, PyObject *__pyx_v_real); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_19ASIN = {"ASIN", (PyCFunction)__pyx_pw_5talib_4func_19ASIN, METH_O, __pyx_doc_5talib_4func_18ASIN}; -static PyObject *__pyx_pw_5talib_4func_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, 657, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_18ASIN(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real) { - npy_intp __pyx_v_length; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - TA_RetCode __pyx_v_retCode; - double *__pyx_v_real_data; - int __pyx_v_outbegidx; - int __pyx_v_outnbelement; - PyArrayObject *__pyx_v_outreal = 0; - double *__pyx_v_outreal_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __Pyx_RefNannySetupContext("ASIN", 0); - __Pyx_INCREF((PyObject *)__pyx_v_real); - - /* "talib/func.pyx":677 - * np.ndarray outreal - * double* outreal_data - * 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/func.pyx":678 - * double* outreal_data - * 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__67, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 678, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 678, __pyx_L1_error) - - /* "talib/func.pyx":677 - * np.ndarray outreal - * double* outreal_data - * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("real is not double") - * if real.ndim != 1: - */ - } - - /* "talib/func.pyx":679 - * 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/func.pyx":680 - * 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__68, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 680, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 680, __pyx_L1_error) - - /* "talib/func.pyx":679 - * 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/func.pyx":681 - * 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 = real.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":682 - * raise Exception("real has wrong dimensions") - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< - * real_data = real.data - * length = real.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 682, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 682, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":681 - * 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 = real.data - */ - } - - /* "talib/func.pyx":683 - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) - * real_data = real.data # <<<<<<<<<<<<<< - * length = real.shape[0] - * begidx = 0 - */ - __pyx_v_real_data = ((double *)__pyx_v_real->data); - - /* "talib/func.pyx":684 - * real = PyArray_GETCONTIGUOUS(real) - * real_data = real.data - * length = real.shape[0] # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_v_length = (__pyx_v_real->dimensions[0]); - - /* "talib/func.pyx":685 - * real_data = real.data - * length = real.shape[0] - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = real_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":686 - * length = real.shape[0] - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = real_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":687 - * begidx = 0 - * for i from 0 <= i < length: - * val = real_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_real_data[__pyx_v_i]); - - /* "talib/func.pyx":688 - * for i from 0 <= i < length: - * val = real_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":689 - * val = real_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L6_continue; - - /* "talib/func.pyx":688 - * for i from 0 <= i < length: - * val = real_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":690 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":691 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L7_break; - __pyx_L6_continue:; - } - /*else*/ { - - /* "talib/func.pyx":693 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_ASIN_Lookback( ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__69, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 693, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 693, __pyx_L1_error) - } - __pyx_L7_break:; - - /* "talib/func.pyx":694 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_ASIN_Lookback( ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":695 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_ASIN_Lookback( ) # <<<<<<<<<<<<<< - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_ASIN_Lookback()); - - /* "talib/func.pyx":696 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_ASIN_Lookback( ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 696, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 696, __pyx_L1_error) - __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":697 - * lookback = begidx + lib.TA_ASIN_Lookback( ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - */ - __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); - - /* "talib/func.pyx":698 - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outreal_data[i] = NaN - * retCode = lib.TA_ASIN( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":699 - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN # <<<<<<<<<<<<<< - * retCode = lib.TA_ASIN( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_ASIN", retCode) - */ - (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_4func_NaN; - } - - /* "talib/func.pyx":700 - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - * retCode = lib.TA_ASIN( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_ASIN", retCode) - * return outreal - */ - __pyx_v_retCode = TA_ASIN(0, __pyx_v_endidx, ((double *)(__pyx_v_real_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); - - /* "talib/func.pyx":701 - * outreal_data[i] = NaN - * retCode = lib.TA_ASIN( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _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, 701, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":702 - * retCode = lib.TA_ASIN( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_ASIN", retCode) - * return outreal # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); - __pyx_r = ((PyObject *)__pyx_v_outreal); - goto __pyx_L0; - - /* "talib/func.pyx":657 - * @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.func.ASIN", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outreal); - __Pyx_XDECREF((PyObject *)__pyx_v_real); - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "talib/func.pyx":706 - * @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_4func_21ATAN(PyObject *__pyx_self, PyObject *__pyx_v_real); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_21ATAN = {"ATAN", (PyCFunction)__pyx_pw_5talib_4func_21ATAN, METH_O, __pyx_doc_5talib_4func_20ATAN}; -static PyObject *__pyx_pw_5talib_4func_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, 706, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_20ATAN(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real) { - npy_intp __pyx_v_length; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - TA_RetCode __pyx_v_retCode; - double *__pyx_v_real_data; - int __pyx_v_outbegidx; - int __pyx_v_outnbelement; - PyArrayObject *__pyx_v_outreal = 0; - double *__pyx_v_outreal_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __Pyx_RefNannySetupContext("ATAN", 0); - __Pyx_INCREF((PyObject *)__pyx_v_real); - - /* "talib/func.pyx":726 - * np.ndarray outreal - * double* outreal_data - * 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/func.pyx":727 - * double* outreal_data - * 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__70, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 727, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 727, __pyx_L1_error) - - /* "talib/func.pyx":726 - * np.ndarray outreal - * double* outreal_data - * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("real is not double") - * if real.ndim != 1: - */ - } - - /* "talib/func.pyx":728 - * 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/func.pyx":729 - * 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__71, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 729, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 729, __pyx_L1_error) - - /* "talib/func.pyx":728 - * 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/func.pyx":730 - * 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 = real.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":731 - * raise Exception("real has wrong dimensions") - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< - * real_data = real.data - * length = real.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 731, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 731, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":730 - * 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 = real.data - */ - } - - /* "talib/func.pyx":732 - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) - * real_data = real.data # <<<<<<<<<<<<<< - * length = real.shape[0] - * begidx = 0 - */ - __pyx_v_real_data = ((double *)__pyx_v_real->data); - - /* "talib/func.pyx":733 - * real = PyArray_GETCONTIGUOUS(real) - * real_data = real.data - * length = real.shape[0] # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_v_length = (__pyx_v_real->dimensions[0]); - - /* "talib/func.pyx":734 - * real_data = real.data - * length = real.shape[0] - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = real_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":735 - * length = real.shape[0] - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = real_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":736 - * begidx = 0 - * for i from 0 <= i < length: - * val = real_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_real_data[__pyx_v_i]); - - /* "talib/func.pyx":737 - * for i from 0 <= i < length: - * val = real_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":738 - * val = real_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L6_continue; - - /* "talib/func.pyx":737 - * for i from 0 <= i < length: - * val = real_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":739 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":740 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L7_break; - __pyx_L6_continue:; - } - /*else*/ { - - /* "talib/func.pyx":742 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_ATAN_Lookback( ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__72, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 742, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 742, __pyx_L1_error) - } - __pyx_L7_break:; - - /* "talib/func.pyx":743 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_ATAN_Lookback( ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":744 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_ATAN_Lookback( ) # <<<<<<<<<<<<<< - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_ATAN_Lookback()); - - /* "talib/func.pyx":745 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_ATAN_Lookback( ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 745, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 745, __pyx_L1_error) - __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":746 - * lookback = begidx + lib.TA_ATAN_Lookback( ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - */ - __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); - - /* "talib/func.pyx":747 - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outreal_data[i] = NaN - * retCode = lib.TA_ATAN( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":748 - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN # <<<<<<<<<<<<<< - * retCode = lib.TA_ATAN( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_ATAN", retCode) - */ - (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_4func_NaN; - } - - /* "talib/func.pyx":749 - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - * retCode = lib.TA_ATAN( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_ATAN", retCode) - * return outreal - */ - __pyx_v_retCode = TA_ATAN(0, __pyx_v_endidx, ((double *)(__pyx_v_real_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); - - /* "talib/func.pyx":750 - * outreal_data[i] = NaN - * retCode = lib.TA_ATAN( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _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, 750, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":751 - * retCode = lib.TA_ATAN( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_ATAN", retCode) - * return outreal # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); - __pyx_r = ((PyObject *)__pyx_v_outreal); - goto __pyx_L0; - - /* "talib/func.pyx":706 - * @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.func.ATAN", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outreal); - __Pyx_XDECREF((PyObject *)__pyx_v_real); - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "talib/func.pyx":755 - * @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_4func_23ATR(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_23ATR = {"ATR", (PyCFunction)__pyx_pw_5talib_4func_23ATR, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_22ATR}; -static PyObject *__pyx_pw_5talib_4func_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, 755, __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, 755, __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, 755, __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, 755, __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, 755, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 755, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 755, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 755, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_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; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - 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; - PyArrayObject *__pyx_v_outreal = 0; - double *__pyx_v_outreal_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __Pyx_RefNannySetupContext("ATR", 0); - __Pyx_INCREF((PyObject *)__pyx_v_high); - __Pyx_INCREF((PyObject *)__pyx_v_low); - __Pyx_INCREF((PyObject *)__pyx_v_close); - - /* "talib/func.pyx":779 - * np.ndarray outreal - * double* outreal_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/func.pyx":780 - * double* outreal_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__73, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 780, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 780, __pyx_L1_error) - - /* "talib/func.pyx":779 - * np.ndarray outreal - * double* outreal_data - * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("high is not double") - * if high.ndim != 1: - */ - } - - /* "talib/func.pyx":781 - * 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/func.pyx":782 - * raise 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__74, 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/func.pyx":781 - * 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/func.pyx":783 - * 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 = high.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":784 - * raise Exception("high has wrong dimensions") - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< - * high_data = 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, 784, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 784, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":783 - * 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 = high.data - */ - } - - /* "talib/func.pyx":785 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":786 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":787 - * high_data = 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__75, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 787, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 787, __pyx_L1_error) - - /* "talib/func.pyx":786 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = high.data - * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("low is not double") - * if low.ndim != 1: - */ - } - - /* "talib/func.pyx":788 - * 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/func.pyx":789 - * raise 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__76, 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/func.pyx":788 - * 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/func.pyx":790 - * 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 = low.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":791 - * raise Exception("low has wrong dimensions") - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< - * low_data = 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, 791, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 791, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":790 - * 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 = low.data - */ - } - - /* "talib/func.pyx":792 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":793 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":794 - * low_data = 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__77, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 794, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 794, __pyx_L1_error) - - /* "talib/func.pyx":793 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = low.data - * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("close is not double") - * if close.ndim != 1: - */ - } - - /* "talib/func.pyx":795 - * 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/func.pyx":796 - * raise 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__78, 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/func.pyx":795 - * 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/func.pyx":797 - * 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 = close.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":798 - * raise Exception("close has wrong dimensions") - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< - * close_data = close.data - * length = high.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 798, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 798, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":797 - * 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 = close.data - */ - } - - /* "talib/func.pyx":799 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = close.data # <<<<<<<<<<<<<< - * length = high.shape[0] - * if length != low.shape[0]: - */ - __pyx_v_close_data = ((double *)__pyx_v_close->data); - - /* "talib/func.pyx":800 - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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/func.pyx":801 - * close_data = 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/func.pyx":802 - * 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__79, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 802, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 802, __pyx_L1_error) - - /* "talib/func.pyx":801 - * close_data = close.data - * length = high.shape[0] - * if length != low.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * if length != close.shape[0]: - */ - } - - /* "talib/func.pyx":803 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":804 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__80, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 804, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 804, __pyx_L1_error) - - /* "talib/func.pyx":803 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - } - - /* "talib/func.pyx":805 - * if length != close.shape[0]: - * raise Exception("input lengths are different") - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = high_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":806 - * raise Exception("input lengths are different") - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = high_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":807 - * begidx = 0 - * for i from 0 <= i < length: - * val = high_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); - - /* "talib/func.pyx":808 - * for i from 0 <= i < length: - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":809 - * val = high_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = low_data[i] - * if val != val: - */ - goto __pyx_L14_continue; - - /* "talib/func.pyx":808 - * for i from 0 <= i < length: - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - } - - /* "talib/func.pyx":810 - * if val != val: - * continue - * val = low_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); - - /* "talib/func.pyx":811 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":812 - * val = low_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = close_data[i] - * if val != val: - */ - goto __pyx_L14_continue; - - /* "talib/func.pyx":811 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - } - - /* "talib/func.pyx":813 - * if val != val: - * continue - * val = close_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); - - /* "talib/func.pyx":814 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":815 - * val = close_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L14_continue; - - /* "talib/func.pyx":814 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":816 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":817 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L15_break; - __pyx_L14_continue:; - } - /*else*/ { - - /* "talib/func.pyx":819 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_ATR_Lookback( timeperiod ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__81, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 819, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 819, __pyx_L1_error) - } - __pyx_L15_break:; - - /* "talib/func.pyx":820 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_ATR_Lookback( timeperiod ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":821 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_ATR_Lookback( timeperiod ) # <<<<<<<<<<<<<< - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_ATR_Lookback(__pyx_v_timeperiod)); - - /* "talib/func.pyx":822 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_ATR_Lookback( timeperiod ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 822, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 822, __pyx_L1_error) - __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":823 - * lookback = begidx + lib.TA_ATR_Lookback( timeperiod ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - */ - __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); - - /* "talib/func.pyx":824 - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outreal_data[i] = NaN - * retCode = lib.TA_ATR( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":825 - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN # <<<<<<<<<<<<<< - * retCode = lib.TA_ATR( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_ATR", retCode) - */ - (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_4func_NaN; - } - - /* "talib/func.pyx":826 - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - * retCode = lib.TA_ATR( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_ATR", retCode) - * return outreal - */ - __pyx_v_retCode = TA_ATR(0, __pyx_v_endidx, ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); - - /* "talib/func.pyx":827 - * outreal_data[i] = NaN - * retCode = lib.TA_ATR( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _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, 827, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":828 - * retCode = lib.TA_ATR( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_ATR", retCode) - * return outreal # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); - __pyx_r = ((PyObject *)__pyx_v_outreal); - goto __pyx_L0; - - /* "talib/func.pyx":755 - * @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.func.ATR", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outreal); - __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/func.pyx":832 - * @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_4func_25AVGPRICE(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_25AVGPRICE = {"AVGPRICE", (PyCFunction)__pyx_pw_5talib_4func_25AVGPRICE, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_24AVGPRICE}; -static PyObject *__pyx_pw_5talib_4func_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, 832, __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, 832, __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, 832, __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, 832, __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, 832, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 832, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 832, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 832, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 832, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_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; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - 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; - PyArrayObject *__pyx_v_outreal = 0; - double *__pyx_v_outreal_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __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/func.pyx":855 - * np.ndarray outreal - * double* outreal_data - * 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/func.pyx":856 - * double* outreal_data - * 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__82, 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/func.pyx":855 - * np.ndarray outreal - * double* outreal_data - * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("open is not double") - * if open.ndim != 1: - */ - } - - /* "talib/func.pyx":857 - * 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/func.pyx":858 - * 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__83, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 858, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 858, __pyx_L1_error) - - /* "talib/func.pyx":857 - * 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/func.pyx":859 - * 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 = open.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":860 - * raise Exception("open has wrong dimensions") - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< - * open_data = 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, 860, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 860, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":859 - * 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 = open.data - */ - } - - /* "talib/func.pyx":861 - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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/func.pyx":862 - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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/func.pyx":863 - * open_data = 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__84, 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/func.pyx":862 - * open = PyArray_GETCONTIGUOUS(open) - * open_data = open.data - * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("high is not double") - * if high.ndim != 1: - */ - } - - /* "talib/func.pyx":864 - * 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/func.pyx":865 - * raise 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__85, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 865, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 865, __pyx_L1_error) - - /* "talib/func.pyx":864 - * 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/func.pyx":866 - * 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 = high.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":867 - * raise Exception("high has wrong dimensions") - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< - * high_data = 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, 867, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 867, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":866 - * 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 = high.data - */ - } - - /* "talib/func.pyx":868 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":869 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":870 - * high_data = 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__86, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 870, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 870, __pyx_L1_error) - - /* "talib/func.pyx":869 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = high.data - * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("low is not double") - * if low.ndim != 1: - */ - } - - /* "talib/func.pyx":871 - * 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/func.pyx":872 - * raise 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__87, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 872, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 872, __pyx_L1_error) - - /* "talib/func.pyx":871 - * 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/func.pyx":873 - * 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 = low.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":874 - * raise Exception("low has wrong dimensions") - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< - * low_data = 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, 874, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 874, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":873 - * 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 = low.data - */ - } - - /* "talib/func.pyx":875 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":876 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":877 - * low_data = 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__88, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 877, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 877, __pyx_L1_error) - - /* "talib/func.pyx":876 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = low.data - * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("close is not double") - * if close.ndim != 1: - */ - } - - /* "talib/func.pyx":878 - * 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/func.pyx":879 - * raise 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__89, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 879, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 879, __pyx_L1_error) - - /* "talib/func.pyx":878 - * 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/func.pyx":880 - * 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 = close.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":881 - * raise Exception("close has wrong dimensions") - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< - * close_data = close.data - * length = open.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 881, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 881, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":880 - * 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 = close.data - */ - } - - /* "talib/func.pyx":882 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = close.data # <<<<<<<<<<<<<< - * length = open.shape[0] - * if length != high.shape[0]: - */ - __pyx_v_close_data = ((double *)__pyx_v_close->data); - - /* "talib/func.pyx":883 - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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/func.pyx":884 - * close_data = 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/func.pyx":885 - * 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__90, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 885, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 885, __pyx_L1_error) - - /* "talib/func.pyx":884 - * close_data = close.data - * length = open.shape[0] - * if length != high.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * if length != low.shape[0]: - */ - } - - /* "talib/func.pyx":886 - * 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/func.pyx":887 - * 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__91, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 887, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 887, __pyx_L1_error) - - /* "talib/func.pyx":886 - * 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/func.pyx":888 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":889 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__92, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 889, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 889, __pyx_L1_error) - - /* "talib/func.pyx":888 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - } - - /* "talib/func.pyx":890 - * if length != close.shape[0]: - * raise Exception("input lengths are different") - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = open_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":891 - * raise Exception("input lengths are different") - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = open_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":892 - * begidx = 0 - * for i from 0 <= i < length: - * val = open_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_open_data[__pyx_v_i]); - - /* "talib/func.pyx":893 - * for i from 0 <= i < length: - * val = open_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = high_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":894 - * val = open_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = high_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":893 - * for i from 0 <= i < length: - * val = open_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = high_data[i] - */ - } - - /* "talib/func.pyx":895 - * if val != val: - * continue - * val = high_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); - - /* "talib/func.pyx":896 - * continue - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":897 - * val = high_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = low_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":896 - * continue - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - } - - /* "talib/func.pyx":898 - * if val != val: - * continue - * val = low_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); - - /* "talib/func.pyx":899 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":900 - * val = low_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = close_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":899 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - } - - /* "talib/func.pyx":901 - * if val != val: - * continue - * val = close_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); - - /* "talib/func.pyx":902 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":903 - * val = close_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":902 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":904 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":905 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L19_break; - __pyx_L18_continue:; - } - /*else*/ { - - /* "talib/func.pyx":907 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_AVGPRICE_Lookback( ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__93, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 907, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 907, __pyx_L1_error) - } - __pyx_L19_break:; - - /* "talib/func.pyx":908 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_AVGPRICE_Lookback( ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":909 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_AVGPRICE_Lookback( ) # <<<<<<<<<<<<<< - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_AVGPRICE_Lookback()); - - /* "talib/func.pyx":910 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_AVGPRICE_Lookback( ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 910, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 910, __pyx_L1_error) - __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":911 - * lookback = begidx + lib.TA_AVGPRICE_Lookback( ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - */ - __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); - - /* "talib/func.pyx":912 - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outreal_data[i] = NaN - * retCode = lib.TA_AVGPRICE( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":913 - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN # <<<<<<<<<<<<<< - * retCode = lib.TA_AVGPRICE( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_AVGPRICE", retCode) - */ - (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_4func_NaN; - } - - /* "talib/func.pyx":914 - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - * retCode = lib.TA_AVGPRICE( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_AVGPRICE", retCode) - * return outreal - */ - __pyx_v_retCode = TA_AVGPRICE(0, __pyx_v_endidx, ((double *)(__pyx_v_open_data + __pyx_v_begidx)), ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); - - /* "talib/func.pyx":915 - * outreal_data[i] = NaN - * retCode = lib.TA_AVGPRICE( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _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, 915, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":916 - * retCode = lib.TA_AVGPRICE( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_AVGPRICE", retCode) - * return outreal # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); - __pyx_r = ((PyObject *)__pyx_v_outreal); - goto __pyx_L0; - - /* "talib/func.pyx":832 - * @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.func.AVGPRICE", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outreal); - __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/func.pyx":920 - * @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_4func_27BBANDS(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_27BBANDS = {"BBANDS", (PyCFunction)__pyx_pw_5talib_4func_27BBANDS, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_26BBANDS}; -static PyObject *__pyx_pw_5talib_4func_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, 920, __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, 920, __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, 920, __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, 920, __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, 920, __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, 920, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 920, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_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; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - TA_RetCode __pyx_v_retCode; - double *__pyx_v_real_data; - int __pyx_v_outbegidx; - int __pyx_v_outnbelement; - PyArrayObject *__pyx_v_outrealupperband = 0; - double *__pyx_v_outrealupperband_data; - PyArrayObject *__pyx_v_outrealmiddleband = 0; - double *__pyx_v_outrealmiddleband_data; - PyArrayObject *__pyx_v_outreallowerband = 0; - double *__pyx_v_outreallowerband_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __Pyx_RefNannySetupContext("BBANDS", 0); - __Pyx_INCREF((PyObject *)__pyx_v_real); - - /* "talib/func.pyx":951 - * np.ndarray outreallowerband - * double* outreallowerband_data - * 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/func.pyx":952 - * double* outreallowerband_data - * 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__94, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 952, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 952, __pyx_L1_error) - - /* "talib/func.pyx":951 - * np.ndarray outreallowerband - * double* outreallowerband_data - * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("real is not double") - * if real.ndim != 1: - */ - } - - /* "talib/func.pyx":953 - * 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/func.pyx":954 - * 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__95, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 954, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 954, __pyx_L1_error) - - /* "talib/func.pyx":953 - * 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/func.pyx":955 - * 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 = real.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":956 - * raise Exception("real has wrong dimensions") - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< - * real_data = real.data - * length = real.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 956, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 956, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":955 - * 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 = real.data - */ - } - - /* "talib/func.pyx":957 - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) - * real_data = real.data # <<<<<<<<<<<<<< - * length = real.shape[0] - * begidx = 0 - */ - __pyx_v_real_data = ((double *)__pyx_v_real->data); - - /* "talib/func.pyx":958 - * real = PyArray_GETCONTIGUOUS(real) - * real_data = real.data - * length = real.shape[0] # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_v_length = (__pyx_v_real->dimensions[0]); - - /* "talib/func.pyx":959 - * real_data = real.data - * length = real.shape[0] - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = real_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":960 - * length = real.shape[0] - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = real_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":961 - * begidx = 0 - * for i from 0 <= i < length: - * val = real_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_real_data[__pyx_v_i]); - - /* "talib/func.pyx":962 - * for i from 0 <= i < length: - * val = real_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":963 - * val = real_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L6_continue; - - /* "talib/func.pyx":962 - * for i from 0 <= i < length: - * val = real_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":964 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":965 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L7_break; - __pyx_L6_continue:; - } - /*else*/ { - - /* "talib/func.pyx":967 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_BBANDS_Lookback( timeperiod , nbdevup , nbdevdn , matype ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__96, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 967, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 967, __pyx_L1_error) - } - __pyx_L7_break:; - - /* "talib/func.pyx":968 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_BBANDS_Lookback( timeperiod , nbdevup , nbdevdn , matype ) - * outrealupperband = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":969 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_BBANDS_Lookback( timeperiod , nbdevup , nbdevdn , matype ) # <<<<<<<<<<<<<< - * outrealupperband = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outrealupperband_data = outrealupperband.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_BBANDS_Lookback(__pyx_v_timeperiod, __pyx_v_nbdevup, __pyx_v_nbdevdn, __pyx_v_matype)); - - /* "talib/func.pyx":970 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_BBANDS_Lookback( timeperiod , nbdevup , nbdevdn , matype ) - * outrealupperband = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outrealupperband_data = outrealupperband.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); 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_v_outrealupperband = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":971 - * lookback = begidx + lib.TA_BBANDS_Lookback( timeperiod , nbdevup , nbdevdn , matype ) - * outrealupperband = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outrealupperband_data = outrealupperband.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outrealupperband_data[i] = NaN - */ - __pyx_v_outrealupperband_data = ((double *)__pyx_v_outrealupperband->data); - - /* "talib/func.pyx":972 - * outrealupperband = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outrealupperband_data = outrealupperband.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outrealupperband_data[i] = NaN - * outrealmiddleband = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":973 - * outrealupperband_data = outrealupperband.data - * for i from 0 <= i < min(lookback, length): - * outrealupperband_data[i] = NaN # <<<<<<<<<<<<<< - * outrealmiddleband = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outrealmiddleband_data = outrealmiddleband.data - */ - (__pyx_v_outrealupperband_data[__pyx_v_i]) = __pyx_v_5talib_4func_NaN; - } - - /* "talib/func.pyx":974 - * for i from 0 <= i < min(lookback, length): - * outrealupperband_data[i] = NaN - * outrealmiddleband = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outrealmiddleband_data = outrealmiddleband.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 974, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 974, __pyx_L1_error) - __pyx_v_outrealmiddleband = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":975 - * outrealupperband_data[i] = NaN - * outrealmiddleband = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outrealmiddleband_data = outrealmiddleband.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outrealmiddleband_data[i] = NaN - */ - __pyx_v_outrealmiddleband_data = ((double *)__pyx_v_outrealmiddleband->data); - - /* "talib/func.pyx":976 - * outrealmiddleband = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outrealmiddleband_data = outrealmiddleband.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outrealmiddleband_data[i] = NaN - * outreallowerband = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":977 - * outrealmiddleband_data = outrealmiddleband.data - * for i from 0 <= i < min(lookback, length): - * outrealmiddleband_data[i] = NaN # <<<<<<<<<<<<<< - * outreallowerband = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreallowerband_data = outreallowerband.data - */ - (__pyx_v_outrealmiddleband_data[__pyx_v_i]) = __pyx_v_5talib_4func_NaN; - } - - /* "talib/func.pyx":978 - * for i from 0 <= i < min(lookback, length): - * outrealmiddleband_data[i] = NaN - * outreallowerband = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outreallowerband_data = outreallowerband.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 978, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 978, __pyx_L1_error) - __pyx_v_outreallowerband = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":979 - * outrealmiddleband_data[i] = NaN - * outreallowerband = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreallowerband_data = outreallowerband.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outreallowerband_data[i] = NaN - */ - __pyx_v_outreallowerband_data = ((double *)__pyx_v_outreallowerband->data); - - /* "talib/func.pyx":980 - * outreallowerband = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreallowerband_data = outreallowerband.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outreallowerband_data[i] = NaN - * retCode = lib.TA_BBANDS( 0 , endidx , (real_data+begidx) , timeperiod , nbdevup , nbdevdn , matype , &outbegidx , &outnbelement , (outrealupperband_data+lookback) , (outrealmiddleband_data+lookback) , (outreallowerband_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":981 - * outreallowerband_data = outreallowerband.data - * for i from 0 <= i < min(lookback, length): - * outreallowerband_data[i] = NaN # <<<<<<<<<<<<<< - * retCode = lib.TA_BBANDS( 0 , endidx , (real_data+begidx) , timeperiod , nbdevup , nbdevdn , matype , &outbegidx , &outnbelement , (outrealupperband_data+lookback) , (outrealmiddleband_data+lookback) , (outreallowerband_data+lookback) ) - * _ta_check_success("TA_BBANDS", retCode) - */ - (__pyx_v_outreallowerband_data[__pyx_v_i]) = __pyx_v_5talib_4func_NaN; - } - - /* "talib/func.pyx":982 - * for i from 0 <= i < min(lookback, length): - * outreallowerband_data[i] = NaN - * retCode = lib.TA_BBANDS( 0 , endidx , (real_data+begidx) , timeperiod , nbdevup , nbdevdn , matype , &outbegidx , &outnbelement , (outrealupperband_data+lookback) , (outrealmiddleband_data+lookback) , (outreallowerband_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_BBANDS", retCode) - * return outrealupperband , outrealmiddleband , outreallowerband - */ - __pyx_v_retCode = TA_BBANDS(0, __pyx_v_endidx, ((double *)(__pyx_v_real_data + __pyx_v_begidx)), __pyx_v_timeperiod, __pyx_v_nbdevup, __pyx_v_nbdevdn, __pyx_v_matype, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outrealupperband_data + __pyx_v_lookback)), ((double *)(__pyx_v_outrealmiddleband_data + __pyx_v_lookback)), ((double *)(__pyx_v_outreallowerband_data + __pyx_v_lookback))); - - /* "talib/func.pyx":983 - * outreallowerband_data[i] = NaN - * retCode = lib.TA_BBANDS( 0 , endidx , (real_data+begidx) , timeperiod , nbdevup , nbdevdn , matype , &outbegidx , &outnbelement , (outrealupperband_data+lookback) , (outrealmiddleband_data+lookback) , (outreallowerband_data+lookback) ) - * _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, 983, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":984 - * retCode = lib.TA_BBANDS( 0 , endidx , (real_data+begidx) , timeperiod , nbdevup , nbdevdn , matype , &outbegidx , &outnbelement , (outrealupperband_data+lookback) , (outrealmiddleband_data+lookback) , (outreallowerband_data+lookback) ) - * _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 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 984, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_INCREF(((PyObject *)__pyx_v_outrealupperband)); - __Pyx_GIVEREF(((PyObject *)__pyx_v_outrealupperband)); - PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_v_outrealupperband)); - __Pyx_INCREF(((PyObject *)__pyx_v_outrealmiddleband)); - __Pyx_GIVEREF(((PyObject *)__pyx_v_outrealmiddleband)); - PyTuple_SET_ITEM(__pyx_t_2, 1, ((PyObject *)__pyx_v_outrealmiddleband)); - __Pyx_INCREF(((PyObject *)__pyx_v_outreallowerband)); - __Pyx_GIVEREF(((PyObject *)__pyx_v_outreallowerband)); - PyTuple_SET_ITEM(__pyx_t_2, 2, ((PyObject *)__pyx_v_outreallowerband)); - __pyx_r = __pyx_t_2; - __pyx_t_2 = 0; - goto __pyx_L0; - - /* "talib/func.pyx":920 - * @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_AddTraceback("talib.func.BBANDS", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outrealupperband); - __Pyx_XDECREF((PyObject *)__pyx_v_outrealmiddleband); - __Pyx_XDECREF((PyObject *)__pyx_v_outreallowerband); - __Pyx_XDECREF((PyObject *)__pyx_v_real); - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "talib/func.pyx":988 - * @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_4func_29BETA(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_29BETA = {"BETA", (PyCFunction)__pyx_pw_5talib_4func_29BETA, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_28BETA}; -static PyObject *__pyx_pw_5talib_4func_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, 988, __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, 988, __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, 988, __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, 988, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 988, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_real1), __pyx_ptype_5numpy_ndarray, 0, "real1", 0))) __PYX_ERR(0, 988, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_28BETA(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real0, PyArrayObject *__pyx_v_real1, int __pyx_v_timeperiod) { - npy_intp __pyx_v_length; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - TA_RetCode __pyx_v_retCode; - double *__pyx_v_real0_data; - double *__pyx_v_real1_data; - int __pyx_v_outbegidx; - int __pyx_v_outnbelement; - PyArrayObject *__pyx_v_outreal = 0; - double *__pyx_v_outreal_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __Pyx_RefNannySetupContext("BETA", 0); - __Pyx_INCREF((PyObject *)__pyx_v_real0); - __Pyx_INCREF((PyObject *)__pyx_v_real1); - - /* "talib/func.pyx":1012 - * np.ndarray outreal - * double* outreal_data - * 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/func.pyx":1013 - * double* outreal_data - * 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__97, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1013, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 1013, __pyx_L1_error) - - /* "talib/func.pyx":1012 - * np.ndarray outreal - * double* outreal_data - * if PyArray_TYPE(real0) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("real0 is not double") - * if real0.ndim != 1: - */ - } - - /* "talib/func.pyx":1014 - * 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/func.pyx":1015 - * 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__98, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1015, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 1015, __pyx_L1_error) - - /* "talib/func.pyx":1014 - * 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/func.pyx":1016 - * 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 = real0.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real0) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":1017 - * raise Exception("real0 has wrong dimensions") - * if not (PyArray_FLAGS(real0) & np.NPY_C_CONTIGUOUS): - * real0 = PyArray_GETCONTIGUOUS(real0) # <<<<<<<<<<<<<< - * real0_data = 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, 1017, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1017, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_real0, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":1016 - * 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 = real0.data - */ - } - - /* "talib/func.pyx":1018 - * if not (PyArray_FLAGS(real0) & np.NPY_C_CONTIGUOUS): - * real0 = PyArray_GETCONTIGUOUS(real0) - * real0_data = 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/func.pyx":1019 - * real0 = PyArray_GETCONTIGUOUS(real0) - * real0_data = 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/func.pyx":1020 - * real0_data = 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__99, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1020, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 1020, __pyx_L1_error) - - /* "talib/func.pyx":1019 - * real0 = PyArray_GETCONTIGUOUS(real0) - * real0_data = real0.data - * if PyArray_TYPE(real1) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("real1 is not double") - * if real1.ndim != 1: - */ - } - - /* "talib/func.pyx":1021 - * 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/func.pyx":1022 - * 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__100, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1022, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 1022, __pyx_L1_error) - - /* "talib/func.pyx":1021 - * 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/func.pyx":1023 - * 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 = real1.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real1) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":1024 - * raise Exception("real1 has wrong dimensions") - * if not (PyArray_FLAGS(real1) & np.NPY_C_CONTIGUOUS): - * real1 = PyArray_GETCONTIGUOUS(real1) # <<<<<<<<<<<<<< - * real1_data = real1.data - * length = real0.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1024, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1024, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_real1, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":1023 - * 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 = real1.data - */ - } - - /* "talib/func.pyx":1025 - * if not (PyArray_FLAGS(real1) & np.NPY_C_CONTIGUOUS): - * real1 = PyArray_GETCONTIGUOUS(real1) - * real1_data = real1.data # <<<<<<<<<<<<<< - * length = real0.shape[0] - * if length != real1.shape[0]: - */ - __pyx_v_real1_data = ((double *)__pyx_v_real1->data); - - /* "talib/func.pyx":1026 - * real1 = PyArray_GETCONTIGUOUS(real1) - * real1_data = 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/func.pyx":1027 - * real1_data = real1.data - * length = real0.shape[0] - * if length != real1.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - __pyx_t_1 = ((__pyx_v_length != (__pyx_v_real1->dimensions[0])) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":1028 - * length = real0.shape[0] - * if length != real1.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__101, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1028, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 1028, __pyx_L1_error) - - /* "talib/func.pyx":1027 - * real1_data = real1.data - * length = real0.shape[0] - * if length != real1.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - } - - /* "talib/func.pyx":1029 - * if length != real1.shape[0]: - * raise Exception("input lengths are different") - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = real0_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":1030 - * raise Exception("input lengths are different") - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = real0_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":1031 - * begidx = 0 - * for i from 0 <= i < length: - * val = real0_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_real0_data[__pyx_v_i]); - - /* "talib/func.pyx":1032 - * for i from 0 <= i < length: - * val = real0_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = real1_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":1033 - * val = real0_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = real1_data[i] - * if val != val: - */ - goto __pyx_L10_continue; - - /* "talib/func.pyx":1032 - * for i from 0 <= i < length: - * val = real0_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = real1_data[i] - */ - } - - /* "talib/func.pyx":1034 - * if val != val: - * continue - * val = real1_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_real1_data[__pyx_v_i]); - - /* "talib/func.pyx":1035 - * continue - * val = real1_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":1036 - * val = real1_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L10_continue; - - /* "talib/func.pyx":1035 - * continue - * val = real1_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":1037 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":1038 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L11_break; - __pyx_L10_continue:; - } - /*else*/ { - - /* "talib/func.pyx":1040 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_BETA_Lookback( timeperiod ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__102, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1040, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 1040, __pyx_L1_error) - } - __pyx_L11_break:; - - /* "talib/func.pyx":1041 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_BETA_Lookback( timeperiod ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":1042 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_BETA_Lookback( timeperiod ) # <<<<<<<<<<<<<< - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_BETA_Lookback(__pyx_v_timeperiod)); - - /* "talib/func.pyx":1043 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_BETA_Lookback( timeperiod ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1043, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1043, __pyx_L1_error) - __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":1044 - * lookback = begidx + lib.TA_BETA_Lookback( timeperiod ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - */ - __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); - - /* "talib/func.pyx":1045 - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outreal_data[i] = NaN - * retCode = lib.TA_BETA( 0 , endidx , (real0_data+begidx) , (real1_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":1046 - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN # <<<<<<<<<<<<<< - * retCode = lib.TA_BETA( 0 , endidx , (real0_data+begidx) , (real1_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_BETA", retCode) - */ - (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_4func_NaN; - } - - /* "talib/func.pyx":1047 - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - * retCode = lib.TA_BETA( 0 , endidx , (real0_data+begidx) , (real1_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_BETA", retCode) - * return outreal - */ - __pyx_v_retCode = TA_BETA(0, __pyx_v_endidx, ((double *)(__pyx_v_real0_data + __pyx_v_begidx)), ((double *)(__pyx_v_real1_data + __pyx_v_begidx)), __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); - - /* "talib/func.pyx":1048 - * outreal_data[i] = NaN - * retCode = lib.TA_BETA( 0 , endidx , (real0_data+begidx) , (real1_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _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, 1048, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":1049 - * retCode = lib.TA_BETA( 0 , endidx , (real0_data+begidx) , (real1_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_BETA", retCode) - * return outreal # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); - __pyx_r = ((PyObject *)__pyx_v_outreal); - goto __pyx_L0; - - /* "talib/func.pyx":988 - * @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.func.BETA", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outreal); - __Pyx_XDECREF((PyObject *)__pyx_v_real0); - __Pyx_XDECREF((PyObject *)__pyx_v_real1); - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "talib/func.pyx":1053 - * @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_4func_31BOP(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_31BOP = {"BOP", (PyCFunction)__pyx_pw_5talib_4func_31BOP, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_30BOP}; -static PyObject *__pyx_pw_5talib_4func_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, 1053, __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, 1053, __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, 1053, __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, 1053, __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, 1053, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 1053, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 1053, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 1053, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 1053, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_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; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - 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; - PyArrayObject *__pyx_v_outreal = 0; - double *__pyx_v_outreal_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __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/func.pyx":1076 - * np.ndarray outreal - * double* outreal_data - * 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/func.pyx":1077 - * double* outreal_data - * 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__103, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1077, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 1077, __pyx_L1_error) - - /* "talib/func.pyx":1076 - * np.ndarray outreal - * double* outreal_data - * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("open is not double") - * if open.ndim != 1: - */ - } - - /* "talib/func.pyx":1078 - * 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/func.pyx":1079 - * 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__104, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1079, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 1079, __pyx_L1_error) - - /* "talib/func.pyx":1078 - * 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/func.pyx":1080 - * 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 = open.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":1081 - * raise Exception("open has wrong dimensions") - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< - * open_data = 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, 1081, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1081, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":1080 - * 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 = open.data - */ - } - - /* "talib/func.pyx":1082 - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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/func.pyx":1083 - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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/func.pyx":1084 - * open_data = 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__105, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1084, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 1084, __pyx_L1_error) - - /* "talib/func.pyx":1083 - * open = PyArray_GETCONTIGUOUS(open) - * open_data = open.data - * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("high is not double") - * if high.ndim != 1: - */ - } - - /* "talib/func.pyx":1085 - * 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/func.pyx":1086 - * raise 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__106, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1086, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 1086, __pyx_L1_error) - - /* "talib/func.pyx":1085 - * 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/func.pyx":1087 - * 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 = high.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":1088 - * raise Exception("high has wrong dimensions") - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< - * high_data = 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, 1088, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1088, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":1087 - * 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 = high.data - */ - } - - /* "talib/func.pyx":1089 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":1090 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":1091 - * high_data = 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__107, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1091, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 1091, __pyx_L1_error) - - /* "talib/func.pyx":1090 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = high.data - * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("low is not double") - * if low.ndim != 1: - */ - } - - /* "talib/func.pyx":1092 - * 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/func.pyx":1093 - * raise 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__108, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1093, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 1093, __pyx_L1_error) - - /* "talib/func.pyx":1092 - * 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/func.pyx":1094 - * 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 = low.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":1095 - * raise Exception("low has wrong dimensions") - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< - * low_data = 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, 1095, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1095, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":1094 - * 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 = low.data - */ - } - - /* "talib/func.pyx":1096 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":1097 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":1098 - * low_data = 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__109, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1098, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 1098, __pyx_L1_error) - - /* "talib/func.pyx":1097 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = low.data - * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("close is not double") - * if close.ndim != 1: - */ - } - - /* "talib/func.pyx":1099 - * 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/func.pyx":1100 - * raise 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__110, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1100, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 1100, __pyx_L1_error) - - /* "talib/func.pyx":1099 - * 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/func.pyx":1101 - * 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 = close.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":1102 - * raise Exception("close has wrong dimensions") - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< - * close_data = close.data - * length = open.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1102, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1102, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":1101 - * 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 = close.data - */ - } - - /* "talib/func.pyx":1103 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = close.data # <<<<<<<<<<<<<< - * length = open.shape[0] - * if length != high.shape[0]: - */ - __pyx_v_close_data = ((double *)__pyx_v_close->data); - - /* "talib/func.pyx":1104 - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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/func.pyx":1105 - * close_data = 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/func.pyx":1106 - * 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__111, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1106, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 1106, __pyx_L1_error) - - /* "talib/func.pyx":1105 - * close_data = close.data - * length = open.shape[0] - * if length != high.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * if length != low.shape[0]: - */ - } - - /* "talib/func.pyx":1107 - * 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/func.pyx":1108 - * 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__112, 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/func.pyx":1107 - * 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/func.pyx":1109 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":1110 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__113, 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/func.pyx":1109 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - } - - /* "talib/func.pyx":1111 - * if length != close.shape[0]: - * raise Exception("input lengths are different") - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = open_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":1112 - * raise Exception("input lengths are different") - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = open_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":1113 - * begidx = 0 - * for i from 0 <= i < length: - * val = open_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_open_data[__pyx_v_i]); - - /* "talib/func.pyx":1114 - * for i from 0 <= i < length: - * val = open_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = high_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":1115 - * val = open_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = high_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":1114 - * for i from 0 <= i < length: - * val = open_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = high_data[i] - */ - } - - /* "talib/func.pyx":1116 - * if val != val: - * continue - * val = high_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); - - /* "talib/func.pyx":1117 - * continue - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":1118 - * val = high_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = low_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":1117 - * continue - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - } - - /* "talib/func.pyx":1119 - * if val != val: - * continue - * val = low_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); - - /* "talib/func.pyx":1120 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":1121 - * val = low_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = close_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":1120 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - } - - /* "talib/func.pyx":1122 - * if val != val: - * continue - * val = close_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); - - /* "talib/func.pyx":1123 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":1124 - * val = close_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":1123 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":1125 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":1126 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L19_break; - __pyx_L18_continue:; - } - /*else*/ { - - /* "talib/func.pyx":1128 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_BOP_Lookback( ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__114, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1128, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 1128, __pyx_L1_error) - } - __pyx_L19_break:; - - /* "talib/func.pyx":1129 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_BOP_Lookback( ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":1130 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_BOP_Lookback( ) # <<<<<<<<<<<<<< - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_BOP_Lookback()); - - /* "talib/func.pyx":1131 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_BOP_Lookback( ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1131, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1131, __pyx_L1_error) - __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":1132 - * lookback = begidx + lib.TA_BOP_Lookback( ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - */ - __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); - - /* "talib/func.pyx":1133 - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outreal_data[i] = NaN - * retCode = lib.TA_BOP( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":1134 - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN # <<<<<<<<<<<<<< - * retCode = lib.TA_BOP( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_BOP", retCode) - */ - (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_4func_NaN; - } - - /* "talib/func.pyx":1135 - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - * retCode = lib.TA_BOP( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_BOP", retCode) - * return outreal - */ - __pyx_v_retCode = TA_BOP(0, __pyx_v_endidx, ((double *)(__pyx_v_open_data + __pyx_v_begidx)), ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); - - /* "talib/func.pyx":1136 - * outreal_data[i] = NaN - * retCode = lib.TA_BOP( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _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, 1136, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":1137 - * retCode = lib.TA_BOP( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_BOP", retCode) - * return outreal # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); - __pyx_r = ((PyObject *)__pyx_v_outreal); - goto __pyx_L0; - - /* "talib/func.pyx":1053 - * @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.func.BOP", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outreal); - __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/func.pyx":1141 - * @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_4func_33CCI(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_33CCI = {"CCI", (PyCFunction)__pyx_pw_5talib_4func_33CCI, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_32CCI}; -static PyObject *__pyx_pw_5talib_4func_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, 1141, __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, 1141, __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, 1141, __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, 1141, __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, 1141, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 1141, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 1141, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 1141, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_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; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - 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; - PyArrayObject *__pyx_v_outreal = 0; - double *__pyx_v_outreal_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __Pyx_RefNannySetupContext("CCI", 0); - __Pyx_INCREF((PyObject *)__pyx_v_high); - __Pyx_INCREF((PyObject *)__pyx_v_low); - __Pyx_INCREF((PyObject *)__pyx_v_close); - - /* "talib/func.pyx":1165 - * np.ndarray outreal - * double* outreal_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/func.pyx":1166 - * double* outreal_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__115, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1166, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 1166, __pyx_L1_error) - - /* "talib/func.pyx":1165 - * np.ndarray outreal - * double* outreal_data - * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("high is not double") - * if high.ndim != 1: - */ - } - - /* "talib/func.pyx":1167 - * 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/func.pyx":1168 - * raise 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__116, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1168, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 1168, __pyx_L1_error) - - /* "talib/func.pyx":1167 - * 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/func.pyx":1169 - * 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 = high.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":1170 - * raise Exception("high has wrong dimensions") - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< - * high_data = 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, 1170, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1170, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":1169 - * 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 = high.data - */ - } - - /* "talib/func.pyx":1171 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":1172 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":1173 - * high_data = 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__117, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1173, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 1173, __pyx_L1_error) - - /* "talib/func.pyx":1172 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = high.data - * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("low is not double") - * if low.ndim != 1: - */ - } - - /* "talib/func.pyx":1174 - * 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/func.pyx":1175 - * raise 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__118, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1175, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 1175, __pyx_L1_error) - - /* "talib/func.pyx":1174 - * 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/func.pyx":1176 - * 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 = low.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":1177 - * raise Exception("low has wrong dimensions") - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< - * low_data = 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, 1177, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1177, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":1176 - * 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 = low.data - */ - } - - /* "talib/func.pyx":1178 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":1179 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":1180 - * low_data = 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__119, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1180, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 1180, __pyx_L1_error) - - /* "talib/func.pyx":1179 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = low.data - * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("close is not double") - * if close.ndim != 1: - */ - } - - /* "talib/func.pyx":1181 - * 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/func.pyx":1182 - * raise 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__120, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1182, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 1182, __pyx_L1_error) - - /* "talib/func.pyx":1181 - * 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/func.pyx":1183 - * 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 = close.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":1184 - * raise Exception("close has wrong dimensions") - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< - * close_data = close.data - * length = high.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1184, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1184, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":1183 - * 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 = close.data - */ - } - - /* "talib/func.pyx":1185 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = close.data # <<<<<<<<<<<<<< - * length = high.shape[0] - * if length != low.shape[0]: - */ - __pyx_v_close_data = ((double *)__pyx_v_close->data); - - /* "talib/func.pyx":1186 - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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/func.pyx":1187 - * close_data = 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/func.pyx":1188 - * 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__121, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1188, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 1188, __pyx_L1_error) - - /* "talib/func.pyx":1187 - * close_data = close.data - * length = high.shape[0] - * if length != low.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * if length != close.shape[0]: - */ - } - - /* "talib/func.pyx":1189 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":1190 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__122, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1190, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 1190, __pyx_L1_error) - - /* "talib/func.pyx":1189 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - } - - /* "talib/func.pyx":1191 - * if length != close.shape[0]: - * raise Exception("input lengths are different") - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = high_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":1192 - * raise Exception("input lengths are different") - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = high_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":1193 - * begidx = 0 - * for i from 0 <= i < length: - * val = high_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); - - /* "talib/func.pyx":1194 - * for i from 0 <= i < length: - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":1195 - * val = high_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = low_data[i] - * if val != val: - */ - goto __pyx_L14_continue; - - /* "talib/func.pyx":1194 - * for i from 0 <= i < length: - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - } - - /* "talib/func.pyx":1196 - * if val != val: - * continue - * val = low_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); - - /* "talib/func.pyx":1197 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":1198 - * val = low_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = close_data[i] - * if val != val: - */ - goto __pyx_L14_continue; - - /* "talib/func.pyx":1197 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - } - - /* "talib/func.pyx":1199 - * if val != val: - * continue - * val = close_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); - - /* "talib/func.pyx":1200 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":1201 - * val = close_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L14_continue; - - /* "talib/func.pyx":1200 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":1202 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":1203 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L15_break; - __pyx_L14_continue:; - } - /*else*/ { - - /* "talib/func.pyx":1205 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CCI_Lookback( timeperiod ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__123, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1205, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 1205, __pyx_L1_error) - } - __pyx_L15_break:; - - /* "talib/func.pyx":1206 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_CCI_Lookback( timeperiod ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":1207 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CCI_Lookback( timeperiod ) # <<<<<<<<<<<<<< - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_CCI_Lookback(__pyx_v_timeperiod)); - - /* "talib/func.pyx":1208 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CCI_Lookback( timeperiod ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1208, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1208, __pyx_L1_error) - __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":1209 - * lookback = begidx + lib.TA_CCI_Lookback( timeperiod ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - */ - __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); - - /* "talib/func.pyx":1210 - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outreal_data[i] = NaN - * retCode = lib.TA_CCI( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":1211 - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN # <<<<<<<<<<<<<< - * retCode = lib.TA_CCI( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_CCI", retCode) - */ - (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_4func_NaN; - } - - /* "talib/func.pyx":1212 - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - * retCode = lib.TA_CCI( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_CCI", retCode) - * return outreal - */ - __pyx_v_retCode = TA_CCI(0, __pyx_v_endidx, ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); - - /* "talib/func.pyx":1213 - * outreal_data[i] = NaN - * retCode = lib.TA_CCI( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _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, 1213, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":1214 - * retCode = lib.TA_CCI( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_CCI", retCode) - * return outreal # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); - __pyx_r = ((PyObject *)__pyx_v_outreal); - goto __pyx_L0; - - /* "talib/func.pyx":1141 - * @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.func.CCI", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outreal); - __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/func.pyx":1218 - * @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_4func_35CDL2CROWS(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_35CDL2CROWS = {"CDL2CROWS", (PyCFunction)__pyx_pw_5talib_4func_35CDL2CROWS, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_34CDL2CROWS}; -static PyObject *__pyx_pw_5talib_4func_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, 1218, __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, 1218, __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, 1218, __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, 1218, __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, 1218, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 1218, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 1218, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 1218, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 1218, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_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; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - 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; - PyArrayObject *__pyx_v_outinteger = 0; - int *__pyx_v_outinteger_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __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/func.pyx":1241 - * np.ndarray outinteger - * int* outinteger_data - * 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/func.pyx":1242 - * int* outinteger_data - * 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__124, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1242, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 1242, __pyx_L1_error) - - /* "talib/func.pyx":1241 - * np.ndarray outinteger - * int* outinteger_data - * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("open is not double") - * if open.ndim != 1: - */ - } - - /* "talib/func.pyx":1243 - * 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/func.pyx":1244 - * 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__125, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1244, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 1244, __pyx_L1_error) - - /* "talib/func.pyx":1243 - * 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/func.pyx":1245 - * 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 = open.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":1246 - * raise Exception("open has wrong dimensions") - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< - * open_data = 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, 1246, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1246, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":1245 - * 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 = open.data - */ - } - - /* "talib/func.pyx":1247 - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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/func.pyx":1248 - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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/func.pyx":1249 - * open_data = 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__126, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1249, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 1249, __pyx_L1_error) - - /* "talib/func.pyx":1248 - * open = PyArray_GETCONTIGUOUS(open) - * open_data = open.data - * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("high is not double") - * if high.ndim != 1: - */ - } - - /* "talib/func.pyx":1250 - * 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/func.pyx":1251 - * raise 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__127, 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/func.pyx":1250 - * 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/func.pyx":1252 - * 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 = high.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":1253 - * raise Exception("high has wrong dimensions") - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< - * high_data = 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, 1253, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1253, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":1252 - * 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 = high.data - */ - } - - /* "talib/func.pyx":1254 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":1255 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":1256 - * high_data = 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__128, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1256, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 1256, __pyx_L1_error) - - /* "talib/func.pyx":1255 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = high.data - * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("low is not double") - * if low.ndim != 1: - */ - } - - /* "talib/func.pyx":1257 - * 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/func.pyx":1258 - * raise 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__129, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1258, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 1258, __pyx_L1_error) - - /* "talib/func.pyx":1257 - * 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/func.pyx":1259 - * 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 = low.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":1260 - * raise Exception("low has wrong dimensions") - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< - * low_data = 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, 1260, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1260, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":1259 - * 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 = low.data - */ - } - - /* "talib/func.pyx":1261 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":1262 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":1263 - * low_data = 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__130, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1263, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 1263, __pyx_L1_error) - - /* "talib/func.pyx":1262 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = low.data - * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("close is not double") - * if close.ndim != 1: - */ - } - - /* "talib/func.pyx":1264 - * 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/func.pyx":1265 - * raise 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__131, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1265, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 1265, __pyx_L1_error) - - /* "talib/func.pyx":1264 - * 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/func.pyx":1266 - * 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 = close.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":1267 - * raise Exception("close has wrong dimensions") - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< - * close_data = close.data - * length = open.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1267, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1267, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":1266 - * 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 = close.data - */ - } - - /* "talib/func.pyx":1268 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = close.data # <<<<<<<<<<<<<< - * length = open.shape[0] - * if length != high.shape[0]: - */ - __pyx_v_close_data = ((double *)__pyx_v_close->data); - - /* "talib/func.pyx":1269 - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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/func.pyx":1270 - * close_data = 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/func.pyx":1271 - * 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__132, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1271, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 1271, __pyx_L1_error) - - /* "talib/func.pyx":1270 - * close_data = close.data - * length = open.shape[0] - * if length != high.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * if length != low.shape[0]: - */ - } - - /* "talib/func.pyx":1272 - * 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/func.pyx":1273 - * 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__133, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1273, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 1273, __pyx_L1_error) - - /* "talib/func.pyx":1272 - * 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/func.pyx":1274 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":1275 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__134, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1275, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 1275, __pyx_L1_error) - - /* "talib/func.pyx":1274 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - } - - /* "talib/func.pyx":1276 - * if length != close.shape[0]: - * raise Exception("input lengths are different") - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = open_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":1277 - * raise Exception("input lengths are different") - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = open_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":1278 - * begidx = 0 - * for i from 0 <= i < length: - * val = open_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_open_data[__pyx_v_i]); - - /* "talib/func.pyx":1279 - * for i from 0 <= i < length: - * val = open_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = high_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":1280 - * val = open_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = high_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":1279 - * for i from 0 <= i < length: - * val = open_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = high_data[i] - */ - } - - /* "talib/func.pyx":1281 - * if val != val: - * continue - * val = high_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); - - /* "talib/func.pyx":1282 - * continue - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":1283 - * val = high_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = low_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":1282 - * continue - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - } - - /* "talib/func.pyx":1284 - * if val != val: - * continue - * val = low_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); - - /* "talib/func.pyx":1285 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":1286 - * val = low_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = close_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":1285 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - } - - /* "talib/func.pyx":1287 - * if val != val: - * continue - * val = close_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); - - /* "talib/func.pyx":1288 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":1289 - * val = close_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":1288 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":1290 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":1291 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L19_break; - __pyx_L18_continue:; - } - /*else*/ { - - /* "talib/func.pyx":1293 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDL2CROWS_Lookback( ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__135, 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) - } - __pyx_L19_break:; - - /* "talib/func.pyx":1294 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_CDL2CROWS_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":1295 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDL2CROWS_Lookback( ) # <<<<<<<<<<<<<< - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_CDL2CROWS_Lookback()); - - /* "talib/func.pyx":1296 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDL2CROWS_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1296, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1296, __pyx_L1_error) - __pyx_v_outinteger = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":1297 - * lookback = begidx + lib.TA_CDL2CROWS_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 - */ - __pyx_v_outinteger_data = ((int *)__pyx_v_outinteger->data); - - /* "talib/func.pyx":1298 - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outinteger_data[i] = 0 - * retCode = lib.TA_CDL2CROWS( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":1299 - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 # <<<<<<<<<<<<<< - * retCode = lib.TA_CDL2CROWS( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _ta_check_success("TA_CDL2CROWS", retCode) - */ - (__pyx_v_outinteger_data[__pyx_v_i]) = 0; - } - - /* "talib/func.pyx":1300 - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 - * retCode = lib.TA_CDL2CROWS( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_CDL2CROWS", retCode) - * return outinteger - */ - __pyx_v_retCode = TA_CDL2CROWS(0, __pyx_v_endidx, ((double *)(__pyx_v_open_data + __pyx_v_begidx)), ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outinteger_data + __pyx_v_lookback))); - - /* "talib/func.pyx":1301 - * outinteger_data[i] = 0 - * retCode = lib.TA_CDL2CROWS( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _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, 1301, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":1302 - * retCode = lib.TA_CDL2CROWS( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _ta_check_success("TA_CDL2CROWS", retCode) - * return outinteger # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outinteger)); - __pyx_r = ((PyObject *)__pyx_v_outinteger); - goto __pyx_L0; - - /* "talib/func.pyx":1218 - * @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.func.CDL2CROWS", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outinteger); - __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/func.pyx":1306 - * @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_4func_37CDL3BLACKCROWS(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_37CDL3BLACKCROWS = {"CDL3BLACKCROWS", (PyCFunction)__pyx_pw_5talib_4func_37CDL3BLACKCROWS, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_36CDL3BLACKCROWS}; -static PyObject *__pyx_pw_5talib_4func_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, 1306, __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, 1306, __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, 1306, __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, 1306, __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, 1306, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 1306, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 1306, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 1306, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 1306, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_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; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - 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; - PyArrayObject *__pyx_v_outinteger = 0; - int *__pyx_v_outinteger_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __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/func.pyx":1329 - * np.ndarray outinteger - * int* outinteger_data - * 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/func.pyx":1330 - * int* outinteger_data - * 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__136, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1330, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 1330, __pyx_L1_error) - - /* "talib/func.pyx":1329 - * np.ndarray outinteger - * int* outinteger_data - * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("open is not double") - * if open.ndim != 1: - */ - } - - /* "talib/func.pyx":1331 - * 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/func.pyx":1332 - * 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__137, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1332, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 1332, __pyx_L1_error) - - /* "talib/func.pyx":1331 - * 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/func.pyx":1333 - * 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 = open.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":1334 - * raise Exception("open has wrong dimensions") - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< - * open_data = 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, 1334, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1334, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":1333 - * 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 = open.data - */ - } - - /* "talib/func.pyx":1335 - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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/func.pyx":1336 - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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/func.pyx":1337 - * open_data = 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__138, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1337, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 1337, __pyx_L1_error) - - /* "talib/func.pyx":1336 - * open = PyArray_GETCONTIGUOUS(open) - * open_data = open.data - * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("high is not double") - * if high.ndim != 1: - */ - } - - /* "talib/func.pyx":1338 - * 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/func.pyx":1339 - * raise 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__139, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1339, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 1339, __pyx_L1_error) - - /* "talib/func.pyx":1338 - * 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/func.pyx":1340 - * 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 = high.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":1341 - * raise Exception("high has wrong dimensions") - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< - * high_data = 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, 1341, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1341, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":1340 - * 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 = high.data - */ - } - - /* "talib/func.pyx":1342 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":1343 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":1344 - * high_data = 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__140, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1344, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 1344, __pyx_L1_error) - - /* "talib/func.pyx":1343 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = high.data - * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("low is not double") - * if low.ndim != 1: - */ - } - - /* "talib/func.pyx":1345 - * 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/func.pyx":1346 - * raise 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__141, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1346, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 1346, __pyx_L1_error) - - /* "talib/func.pyx":1345 - * 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/func.pyx":1347 - * 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 = low.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":1348 - * raise Exception("low has wrong dimensions") - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< - * low_data = 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, 1348, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1348, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":1347 - * 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 = low.data - */ - } - - /* "talib/func.pyx":1349 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":1350 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":1351 - * low_data = 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__142, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1351, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 1351, __pyx_L1_error) - - /* "talib/func.pyx":1350 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = low.data - * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("close is not double") - * if close.ndim != 1: - */ - } - - /* "talib/func.pyx":1352 - * 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/func.pyx":1353 - * raise 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__143, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1353, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 1353, __pyx_L1_error) - - /* "talib/func.pyx":1352 - * 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/func.pyx":1354 - * 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 = close.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":1355 - * raise Exception("close has wrong dimensions") - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< - * close_data = close.data - * length = open.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1355, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1355, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":1354 - * 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 = close.data - */ - } - - /* "talib/func.pyx":1356 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = close.data # <<<<<<<<<<<<<< - * length = open.shape[0] - * if length != high.shape[0]: - */ - __pyx_v_close_data = ((double *)__pyx_v_close->data); - - /* "talib/func.pyx":1357 - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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/func.pyx":1358 - * close_data = 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/func.pyx":1359 - * 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__144, 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/func.pyx":1358 - * close_data = close.data - * length = open.shape[0] - * if length != high.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * if length != low.shape[0]: - */ - } - - /* "talib/func.pyx":1360 - * 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/func.pyx":1361 - * 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__145, 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/func.pyx":1360 - * 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/func.pyx":1362 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":1363 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__146, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1363, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 1363, __pyx_L1_error) - - /* "talib/func.pyx":1362 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - } - - /* "talib/func.pyx":1364 - * if length != close.shape[0]: - * raise Exception("input lengths are different") - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = open_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":1365 - * raise Exception("input lengths are different") - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = open_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":1366 - * begidx = 0 - * for i from 0 <= i < length: - * val = open_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_open_data[__pyx_v_i]); - - /* "talib/func.pyx":1367 - * for i from 0 <= i < length: - * val = open_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = high_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":1368 - * val = open_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = high_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":1367 - * for i from 0 <= i < length: - * val = open_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = high_data[i] - */ - } - - /* "talib/func.pyx":1369 - * if val != val: - * continue - * val = high_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); - - /* "talib/func.pyx":1370 - * continue - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":1371 - * val = high_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = low_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":1370 - * continue - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - } - - /* "talib/func.pyx":1372 - * if val != val: - * continue - * val = low_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); - - /* "talib/func.pyx":1373 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":1374 - * val = low_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = close_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":1373 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - } - - /* "talib/func.pyx":1375 - * if val != val: - * continue - * val = close_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); - - /* "talib/func.pyx":1376 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":1377 - * val = close_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":1376 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":1378 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":1379 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L19_break; - __pyx_L18_continue:; - } - /*else*/ { - - /* "talib/func.pyx":1381 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDL3BLACKCROWS_Lookback( ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__147, 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) - } - __pyx_L19_break:; - - /* "talib/func.pyx":1382 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_CDL3BLACKCROWS_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":1383 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDL3BLACKCROWS_Lookback( ) # <<<<<<<<<<<<<< - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_CDL3BLACKCROWS_Lookback()); - - /* "talib/func.pyx":1384 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDL3BLACKCROWS_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1384, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1384, __pyx_L1_error) - __pyx_v_outinteger = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":1385 - * lookback = begidx + lib.TA_CDL3BLACKCROWS_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 - */ - __pyx_v_outinteger_data = ((int *)__pyx_v_outinteger->data); - - /* "talib/func.pyx":1386 - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outinteger_data[i] = 0 - * retCode = lib.TA_CDL3BLACKCROWS( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":1387 - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 # <<<<<<<<<<<<<< - * retCode = lib.TA_CDL3BLACKCROWS( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _ta_check_success("TA_CDL3BLACKCROWS", retCode) - */ - (__pyx_v_outinteger_data[__pyx_v_i]) = 0; - } - - /* "talib/func.pyx":1388 - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 - * retCode = lib.TA_CDL3BLACKCROWS( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_CDL3BLACKCROWS", retCode) - * return outinteger - */ - __pyx_v_retCode = TA_CDL3BLACKCROWS(0, __pyx_v_endidx, ((double *)(__pyx_v_open_data + __pyx_v_begidx)), ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outinteger_data + __pyx_v_lookback))); - - /* "talib/func.pyx":1389 - * outinteger_data[i] = 0 - * retCode = lib.TA_CDL3BLACKCROWS( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _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, 1389, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":1390 - * retCode = lib.TA_CDL3BLACKCROWS( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _ta_check_success("TA_CDL3BLACKCROWS", retCode) - * return outinteger # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outinteger)); - __pyx_r = ((PyObject *)__pyx_v_outinteger); - goto __pyx_L0; - - /* "talib/func.pyx":1306 - * @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.func.CDL3BLACKCROWS", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outinteger); - __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/func.pyx":1394 - * @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_4func_39CDL3INSIDE(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_39CDL3INSIDE = {"CDL3INSIDE", (PyCFunction)__pyx_pw_5talib_4func_39CDL3INSIDE, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_38CDL3INSIDE}; -static PyObject *__pyx_pw_5talib_4func_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, 1394, __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, 1394, __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, 1394, __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, 1394, __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, 1394, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 1394, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 1394, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 1394, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 1394, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_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; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - 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; - PyArrayObject *__pyx_v_outinteger = 0; - int *__pyx_v_outinteger_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __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/func.pyx":1417 - * np.ndarray outinteger - * int* outinteger_data - * 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/func.pyx":1418 - * int* outinteger_data - * 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__148, 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/func.pyx":1417 - * np.ndarray outinteger - * int* outinteger_data - * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("open is not double") - * if open.ndim != 1: - */ - } - - /* "talib/func.pyx":1419 - * 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/func.pyx":1420 - * 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__149, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1420, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 1420, __pyx_L1_error) - - /* "talib/func.pyx":1419 - * 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/func.pyx":1421 - * 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 = open.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":1422 - * raise Exception("open has wrong dimensions") - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< - * open_data = 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, 1422, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1422, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":1421 - * 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 = open.data - */ - } - - /* "talib/func.pyx":1423 - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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/func.pyx":1424 - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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/func.pyx":1425 - * open_data = 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__150, 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/func.pyx":1424 - * open = PyArray_GETCONTIGUOUS(open) - * open_data = open.data - * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("high is not double") - * if high.ndim != 1: - */ - } - - /* "talib/func.pyx":1426 - * 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/func.pyx":1427 - * raise 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__151, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1427, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 1427, __pyx_L1_error) - - /* "talib/func.pyx":1426 - * 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/func.pyx":1428 - * 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 = high.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":1429 - * raise Exception("high has wrong dimensions") - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< - * high_data = 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, 1429, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1429, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":1428 - * 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 = high.data - */ - } - - /* "talib/func.pyx":1430 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":1431 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":1432 - * high_data = 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__152, 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/func.pyx":1431 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = high.data - * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("low is not double") - * if low.ndim != 1: - */ - } - - /* "talib/func.pyx":1433 - * 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/func.pyx":1434 - * raise 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__153, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1434, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 1434, __pyx_L1_error) - - /* "talib/func.pyx":1433 - * 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/func.pyx":1435 - * 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 = low.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":1436 - * raise Exception("low has wrong dimensions") - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< - * low_data = 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, 1436, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1436, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":1435 - * 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 = low.data - */ - } - - /* "talib/func.pyx":1437 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":1438 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":1439 - * low_data = 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__154, 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/func.pyx":1438 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = low.data - * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("close is not double") - * if close.ndim != 1: - */ - } - - /* "talib/func.pyx":1440 - * 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/func.pyx":1441 - * raise 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__155, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1441, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 1441, __pyx_L1_error) - - /* "talib/func.pyx":1440 - * 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/func.pyx":1442 - * 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 = close.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":1443 - * raise Exception("close has wrong dimensions") - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< - * close_data = close.data - * length = open.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1443, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1443, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":1442 - * 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 = close.data - */ - } - - /* "talib/func.pyx":1444 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = close.data # <<<<<<<<<<<<<< - * length = open.shape[0] - * if length != high.shape[0]: - */ - __pyx_v_close_data = ((double *)__pyx_v_close->data); - - /* "talib/func.pyx":1445 - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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/func.pyx":1446 - * close_data = 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/func.pyx":1447 - * 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__156, 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/func.pyx":1446 - * close_data = close.data - * length = open.shape[0] - * if length != high.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * if length != low.shape[0]: - */ - } - - /* "talib/func.pyx":1448 - * 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/func.pyx":1449 - * 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__157, 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/func.pyx":1448 - * 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/func.pyx":1450 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":1451 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__158, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1451, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 1451, __pyx_L1_error) - - /* "talib/func.pyx":1450 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - } - - /* "talib/func.pyx":1452 - * if length != close.shape[0]: - * raise Exception("input lengths are different") - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = open_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":1453 - * raise Exception("input lengths are different") - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = open_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":1454 - * begidx = 0 - * for i from 0 <= i < length: - * val = open_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_open_data[__pyx_v_i]); - - /* "talib/func.pyx":1455 - * for i from 0 <= i < length: - * val = open_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = high_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":1456 - * val = open_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = high_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":1455 - * for i from 0 <= i < length: - * val = open_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = high_data[i] - */ - } - - /* "talib/func.pyx":1457 - * if val != val: - * continue - * val = high_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); - - /* "talib/func.pyx":1458 - * continue - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":1459 - * val = high_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = low_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":1458 - * continue - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - } - - /* "talib/func.pyx":1460 - * if val != val: - * continue - * val = low_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); - - /* "talib/func.pyx":1461 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":1462 - * val = low_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = close_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":1461 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - } - - /* "talib/func.pyx":1463 - * if val != val: - * continue - * val = close_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); - - /* "talib/func.pyx":1464 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":1465 - * val = close_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":1464 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":1466 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":1467 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L19_break; - __pyx_L18_continue:; - } - /*else*/ { - - /* "talib/func.pyx":1469 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDL3INSIDE_Lookback( ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__159, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1469, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 1469, __pyx_L1_error) - } - __pyx_L19_break:; - - /* "talib/func.pyx":1470 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_CDL3INSIDE_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":1471 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDL3INSIDE_Lookback( ) # <<<<<<<<<<<<<< - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_CDL3INSIDE_Lookback()); - - /* "talib/func.pyx":1472 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDL3INSIDE_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1472, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1472, __pyx_L1_error) - __pyx_v_outinteger = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":1473 - * lookback = begidx + lib.TA_CDL3INSIDE_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 - */ - __pyx_v_outinteger_data = ((int *)__pyx_v_outinteger->data); - - /* "talib/func.pyx":1474 - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outinteger_data[i] = 0 - * retCode = lib.TA_CDL3INSIDE( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":1475 - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 # <<<<<<<<<<<<<< - * retCode = lib.TA_CDL3INSIDE( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _ta_check_success("TA_CDL3INSIDE", retCode) - */ - (__pyx_v_outinteger_data[__pyx_v_i]) = 0; - } - - /* "talib/func.pyx":1476 - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 - * retCode = lib.TA_CDL3INSIDE( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_CDL3INSIDE", retCode) - * return outinteger - */ - __pyx_v_retCode = TA_CDL3INSIDE(0, __pyx_v_endidx, ((double *)(__pyx_v_open_data + __pyx_v_begidx)), ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outinteger_data + __pyx_v_lookback))); - - /* "talib/func.pyx":1477 - * outinteger_data[i] = 0 - * retCode = lib.TA_CDL3INSIDE( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _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, 1477, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":1478 - * retCode = lib.TA_CDL3INSIDE( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _ta_check_success("TA_CDL3INSIDE", retCode) - * return outinteger # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outinteger)); - __pyx_r = ((PyObject *)__pyx_v_outinteger); - goto __pyx_L0; - - /* "talib/func.pyx":1394 - * @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.func.CDL3INSIDE", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outinteger); - __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/func.pyx":1482 - * @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_4func_41CDL3LINESTRIKE(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_41CDL3LINESTRIKE = {"CDL3LINESTRIKE", (PyCFunction)__pyx_pw_5talib_4func_41CDL3LINESTRIKE, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_40CDL3LINESTRIKE}; -static PyObject *__pyx_pw_5talib_4func_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, 1482, __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, 1482, __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, 1482, __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, 1482, __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, 1482, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 1482, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 1482, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 1482, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 1482, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_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; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - 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; - PyArrayObject *__pyx_v_outinteger = 0; - int *__pyx_v_outinteger_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __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/func.pyx":1505 - * np.ndarray outinteger - * int* outinteger_data - * 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/func.pyx":1506 - * int* outinteger_data - * 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__160, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1506, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 1506, __pyx_L1_error) - - /* "talib/func.pyx":1505 - * np.ndarray outinteger - * int* outinteger_data - * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("open is not double") - * if open.ndim != 1: - */ - } - - /* "talib/func.pyx":1507 - * 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/func.pyx":1508 - * 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__161, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1508, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 1508, __pyx_L1_error) - - /* "talib/func.pyx":1507 - * 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/func.pyx":1509 - * 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 = open.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":1510 - * raise Exception("open has wrong dimensions") - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< - * open_data = 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, 1510, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1510, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":1509 - * 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 = open.data - */ - } - - /* "talib/func.pyx":1511 - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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/func.pyx":1512 - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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/func.pyx":1513 - * open_data = 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__162, 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/func.pyx":1512 - * open = PyArray_GETCONTIGUOUS(open) - * open_data = open.data - * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("high is not double") - * if high.ndim != 1: - */ - } - - /* "talib/func.pyx":1514 - * 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/func.pyx":1515 - * raise 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__163, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1515, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 1515, __pyx_L1_error) - - /* "talib/func.pyx":1514 - * 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/func.pyx":1516 - * 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 = high.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":1517 - * raise Exception("high has wrong dimensions") - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< - * high_data = 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, 1517, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1517, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":1516 - * 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 = high.data - */ - } - - /* "talib/func.pyx":1518 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":1519 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":1520 - * high_data = 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__164, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1520, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 1520, __pyx_L1_error) - - /* "talib/func.pyx":1519 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = high.data - * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("low is not double") - * if low.ndim != 1: - */ - } - - /* "talib/func.pyx":1521 - * 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/func.pyx":1522 - * raise 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__165, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1522, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 1522, __pyx_L1_error) - - /* "talib/func.pyx":1521 - * 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/func.pyx":1523 - * 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 = low.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":1524 - * raise Exception("low has wrong dimensions") - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< - * low_data = 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, 1524, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1524, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":1523 - * 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 = low.data - */ - } - - /* "talib/func.pyx":1525 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":1526 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":1527 - * low_data = 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__166, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1527, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 1527, __pyx_L1_error) - - /* "talib/func.pyx":1526 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = low.data - * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("close is not double") - * if close.ndim != 1: - */ - } - - /* "talib/func.pyx":1528 - * 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/func.pyx":1529 - * raise 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__167, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1529, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 1529, __pyx_L1_error) - - /* "talib/func.pyx":1528 - * 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/func.pyx":1530 - * 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 = close.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":1531 - * raise Exception("close has wrong dimensions") - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< - * close_data = close.data - * length = open.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1531, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1531, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":1530 - * 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 = close.data - */ - } - - /* "talib/func.pyx":1532 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = close.data # <<<<<<<<<<<<<< - * length = open.shape[0] - * if length != high.shape[0]: - */ - __pyx_v_close_data = ((double *)__pyx_v_close->data); - - /* "talib/func.pyx":1533 - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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/func.pyx":1534 - * close_data = 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/func.pyx":1535 - * 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__168, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1535, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 1535, __pyx_L1_error) - - /* "talib/func.pyx":1534 - * close_data = close.data - * length = open.shape[0] - * if length != high.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * if length != low.shape[0]: - */ - } - - /* "talib/func.pyx":1536 - * 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/func.pyx":1537 - * 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__169, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1537, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 1537, __pyx_L1_error) - - /* "talib/func.pyx":1536 - * 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/func.pyx":1538 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":1539 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__170, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1539, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 1539, __pyx_L1_error) - - /* "talib/func.pyx":1538 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - } - - /* "talib/func.pyx":1540 - * if length != close.shape[0]: - * raise Exception("input lengths are different") - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = open_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":1541 - * raise Exception("input lengths are different") - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = open_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":1542 - * begidx = 0 - * for i from 0 <= i < length: - * val = open_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_open_data[__pyx_v_i]); - - /* "talib/func.pyx":1543 - * for i from 0 <= i < length: - * val = open_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = high_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":1544 - * val = open_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = high_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":1543 - * for i from 0 <= i < length: - * val = open_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = high_data[i] - */ - } - - /* "talib/func.pyx":1545 - * if val != val: - * continue - * val = high_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); - - /* "talib/func.pyx":1546 - * continue - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":1547 - * val = high_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = low_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":1546 - * continue - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - } - - /* "talib/func.pyx":1548 - * if val != val: - * continue - * val = low_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); - - /* "talib/func.pyx":1549 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":1550 - * val = low_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = close_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":1549 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - } - - /* "talib/func.pyx":1551 - * if val != val: - * continue - * val = close_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); - - /* "talib/func.pyx":1552 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":1553 - * val = close_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":1552 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":1554 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":1555 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L19_break; - __pyx_L18_continue:; - } - /*else*/ { - - /* "talib/func.pyx":1557 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDL3LINESTRIKE_Lookback( ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__171, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1557, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 1557, __pyx_L1_error) - } - __pyx_L19_break:; - - /* "talib/func.pyx":1558 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_CDL3LINESTRIKE_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":1559 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDL3LINESTRIKE_Lookback( ) # <<<<<<<<<<<<<< - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_CDL3LINESTRIKE_Lookback()); - - /* "talib/func.pyx":1560 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDL3LINESTRIKE_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1560, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1560, __pyx_L1_error) - __pyx_v_outinteger = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":1561 - * lookback = begidx + lib.TA_CDL3LINESTRIKE_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 - */ - __pyx_v_outinteger_data = ((int *)__pyx_v_outinteger->data); - - /* "talib/func.pyx":1562 - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outinteger_data[i] = 0 - * retCode = lib.TA_CDL3LINESTRIKE( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":1563 - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 # <<<<<<<<<<<<<< - * retCode = lib.TA_CDL3LINESTRIKE( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _ta_check_success("TA_CDL3LINESTRIKE", retCode) - */ - (__pyx_v_outinteger_data[__pyx_v_i]) = 0; - } - - /* "talib/func.pyx":1564 - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 - * retCode = lib.TA_CDL3LINESTRIKE( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_CDL3LINESTRIKE", retCode) - * return outinteger - */ - __pyx_v_retCode = TA_CDL3LINESTRIKE(0, __pyx_v_endidx, ((double *)(__pyx_v_open_data + __pyx_v_begidx)), ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outinteger_data + __pyx_v_lookback))); - - /* "talib/func.pyx":1565 - * outinteger_data[i] = 0 - * retCode = lib.TA_CDL3LINESTRIKE( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _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, 1565, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":1566 - * retCode = lib.TA_CDL3LINESTRIKE( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _ta_check_success("TA_CDL3LINESTRIKE", retCode) - * return outinteger # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outinteger)); - __pyx_r = ((PyObject *)__pyx_v_outinteger); - goto __pyx_L0; - - /* "talib/func.pyx":1482 - * @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.func.CDL3LINESTRIKE", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outinteger); - __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/func.pyx":1570 - * @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_4func_43CDL3OUTSIDE(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_43CDL3OUTSIDE = {"CDL3OUTSIDE", (PyCFunction)__pyx_pw_5talib_4func_43CDL3OUTSIDE, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_42CDL3OUTSIDE}; -static PyObject *__pyx_pw_5talib_4func_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, 1570, __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, 1570, __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, 1570, __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, 1570, __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, 1570, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 1570, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 1570, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 1570, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 1570, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_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; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - 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; - PyArrayObject *__pyx_v_outinteger = 0; - int *__pyx_v_outinteger_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __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/func.pyx":1593 - * np.ndarray outinteger - * int* outinteger_data - * 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/func.pyx":1594 - * int* outinteger_data - * 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__172, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1594, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 1594, __pyx_L1_error) - - /* "talib/func.pyx":1593 - * np.ndarray outinteger - * int* outinteger_data - * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("open is not double") - * if open.ndim != 1: - */ - } - - /* "talib/func.pyx":1595 - * 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/func.pyx":1596 - * 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__173, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1596, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 1596, __pyx_L1_error) - - /* "talib/func.pyx":1595 - * 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/func.pyx":1597 - * 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 = open.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":1598 - * raise Exception("open has wrong dimensions") - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< - * open_data = 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, 1598, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1598, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":1597 - * 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 = open.data - */ - } - - /* "talib/func.pyx":1599 - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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/func.pyx":1600 - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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/func.pyx":1601 - * open_data = 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__174, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1601, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 1601, __pyx_L1_error) - - /* "talib/func.pyx":1600 - * open = PyArray_GETCONTIGUOUS(open) - * open_data = open.data - * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("high is not double") - * if high.ndim != 1: - */ - } - - /* "talib/func.pyx":1602 - * 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/func.pyx":1603 - * raise 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__175, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1603, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 1603, __pyx_L1_error) - - /* "talib/func.pyx":1602 - * 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/func.pyx":1604 - * 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 = high.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":1605 - * raise Exception("high has wrong dimensions") - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< - * high_data = 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, 1605, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1605, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":1604 - * 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 = high.data - */ - } - - /* "talib/func.pyx":1606 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":1607 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":1608 - * high_data = 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__176, 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/func.pyx":1607 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = high.data - * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("low is not double") - * if low.ndim != 1: - */ - } - - /* "talib/func.pyx":1609 - * 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/func.pyx":1610 - * raise 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__177, 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/func.pyx":1609 - * 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/func.pyx":1611 - * 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 = low.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":1612 - * raise Exception("low has wrong dimensions") - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< - * low_data = 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, 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_low, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":1611 - * 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 = low.data - */ - } - - /* "talib/func.pyx":1613 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":1614 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":1615 - * low_data = 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__178, 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/func.pyx":1614 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = low.data - * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("close is not double") - * if close.ndim != 1: - */ - } - - /* "talib/func.pyx":1616 - * 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/func.pyx":1617 - * raise 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__179, 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/func.pyx":1616 - * 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/func.pyx":1618 - * 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 = close.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":1619 - * raise Exception("close has wrong dimensions") - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< - * close_data = close.data - * length = open.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); 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_close, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":1618 - * 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 = close.data - */ - } - - /* "talib/func.pyx":1620 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = close.data # <<<<<<<<<<<<<< - * length = open.shape[0] - * if length != high.shape[0]: - */ - __pyx_v_close_data = ((double *)__pyx_v_close->data); - - /* "talib/func.pyx":1621 - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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/func.pyx":1622 - * close_data = 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/func.pyx":1623 - * 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__180, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1623, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 1623, __pyx_L1_error) - - /* "talib/func.pyx":1622 - * close_data = close.data - * length = open.shape[0] - * if length != high.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * if length != low.shape[0]: - */ - } - - /* "talib/func.pyx":1624 - * 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/func.pyx":1625 - * 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__181, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1625, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 1625, __pyx_L1_error) - - /* "talib/func.pyx":1624 - * 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/func.pyx":1626 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":1627 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__182, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1627, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 1627, __pyx_L1_error) - - /* "talib/func.pyx":1626 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - } - - /* "talib/func.pyx":1628 - * if length != close.shape[0]: - * raise Exception("input lengths are different") - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = open_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":1629 - * raise Exception("input lengths are different") - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = open_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":1630 - * begidx = 0 - * for i from 0 <= i < length: - * val = open_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_open_data[__pyx_v_i]); - - /* "talib/func.pyx":1631 - * for i from 0 <= i < length: - * val = open_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = high_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":1632 - * val = open_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = high_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":1631 - * for i from 0 <= i < length: - * val = open_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = high_data[i] - */ - } - - /* "talib/func.pyx":1633 - * if val != val: - * continue - * val = high_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); - - /* "talib/func.pyx":1634 - * continue - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":1635 - * val = high_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = low_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":1634 - * continue - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - } - - /* "talib/func.pyx":1636 - * if val != val: - * continue - * val = low_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); - - /* "talib/func.pyx":1637 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":1638 - * val = low_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = close_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":1637 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - } - - /* "talib/func.pyx":1639 - * if val != val: - * continue - * val = close_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); - - /* "talib/func.pyx":1640 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":1641 - * val = close_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":1640 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":1642 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":1643 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L19_break; - __pyx_L18_continue:; - } - /*else*/ { - - /* "talib/func.pyx":1645 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDL3OUTSIDE_Lookback( ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__183, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1645, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 1645, __pyx_L1_error) - } - __pyx_L19_break:; - - /* "talib/func.pyx":1646 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_CDL3OUTSIDE_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":1647 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDL3OUTSIDE_Lookback( ) # <<<<<<<<<<<<<< - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_CDL3OUTSIDE_Lookback()); - - /* "talib/func.pyx":1648 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDL3OUTSIDE_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1648, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1648, __pyx_L1_error) - __pyx_v_outinteger = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":1649 - * lookback = begidx + lib.TA_CDL3OUTSIDE_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 - */ - __pyx_v_outinteger_data = ((int *)__pyx_v_outinteger->data); - - /* "talib/func.pyx":1650 - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outinteger_data[i] = 0 - * retCode = lib.TA_CDL3OUTSIDE( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":1651 - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 # <<<<<<<<<<<<<< - * retCode = lib.TA_CDL3OUTSIDE( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _ta_check_success("TA_CDL3OUTSIDE", retCode) - */ - (__pyx_v_outinteger_data[__pyx_v_i]) = 0; - } - - /* "talib/func.pyx":1652 - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 - * retCode = lib.TA_CDL3OUTSIDE( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_CDL3OUTSIDE", retCode) - * return outinteger - */ - __pyx_v_retCode = TA_CDL3OUTSIDE(0, __pyx_v_endidx, ((double *)(__pyx_v_open_data + __pyx_v_begidx)), ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outinteger_data + __pyx_v_lookback))); - - /* "talib/func.pyx":1653 - * outinteger_data[i] = 0 - * retCode = lib.TA_CDL3OUTSIDE( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _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, 1653, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":1654 - * retCode = lib.TA_CDL3OUTSIDE( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _ta_check_success("TA_CDL3OUTSIDE", retCode) - * return outinteger # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outinteger)); - __pyx_r = ((PyObject *)__pyx_v_outinteger); - goto __pyx_L0; - - /* "talib/func.pyx":1570 - * @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.func.CDL3OUTSIDE", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outinteger); - __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/func.pyx":1658 - * @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_4func_45CDL3STARSINSOUTH(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_45CDL3STARSINSOUTH = {"CDL3STARSINSOUTH", (PyCFunction)__pyx_pw_5talib_4func_45CDL3STARSINSOUTH, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_44CDL3STARSINSOUTH}; -static PyObject *__pyx_pw_5talib_4func_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, 1658, __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, 1658, __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, 1658, __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, 1658, __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, 1658, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 1658, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 1658, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 1658, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 1658, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_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; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - 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; - PyArrayObject *__pyx_v_outinteger = 0; - int *__pyx_v_outinteger_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __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/func.pyx":1681 - * np.ndarray outinteger - * int* outinteger_data - * 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/func.pyx":1682 - * int* outinteger_data - * 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, 1682, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 1682, __pyx_L1_error) - - /* "talib/func.pyx":1681 - * np.ndarray outinteger - * int* outinteger_data - * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("open is not double") - * if open.ndim != 1: - */ - } - - /* "talib/func.pyx":1683 - * 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/func.pyx":1684 - * 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, 1684, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 1684, __pyx_L1_error) - - /* "talib/func.pyx":1683 - * 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/func.pyx":1685 - * 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 = open.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":1686 - * raise Exception("open has wrong dimensions") - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< - * open_data = 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, 1686, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1686, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":1685 - * 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 = open.data - */ - } - - /* "talib/func.pyx":1687 - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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/func.pyx":1688 - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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/func.pyx":1689 - * open_data = 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, 1689, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 1689, __pyx_L1_error) - - /* "talib/func.pyx":1688 - * open = PyArray_GETCONTIGUOUS(open) - * open_data = open.data - * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("high is not double") - * if high.ndim != 1: - */ - } - - /* "talib/func.pyx":1690 - * 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/func.pyx":1691 - * raise 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, 1691, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 1691, __pyx_L1_error) - - /* "talib/func.pyx":1690 - * 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/func.pyx":1692 - * 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 = high.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":1693 - * raise Exception("high has wrong dimensions") - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< - * high_data = 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, 1693, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1693, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":1692 - * 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 = high.data - */ - } - - /* "talib/func.pyx":1694 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":1695 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":1696 - * high_data = 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, 1696, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 1696, __pyx_L1_error) - - /* "talib/func.pyx":1695 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = high.data - * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("low is not double") - * if low.ndim != 1: - */ - } - - /* "talib/func.pyx":1697 - * 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/func.pyx":1698 - * raise 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, 1698, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 1698, __pyx_L1_error) - - /* "talib/func.pyx":1697 - * 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/func.pyx":1699 - * 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 = low.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":1700 - * raise Exception("low has wrong dimensions") - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< - * low_data = 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, 1700, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1700, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":1699 - * 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 = low.data - */ - } - - /* "talib/func.pyx":1701 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":1702 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":1703 - * low_data = 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, 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/func.pyx":1702 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = low.data - * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("close is not double") - * if close.ndim != 1: - */ - } - - /* "talib/func.pyx":1704 - * 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/func.pyx":1705 - * raise 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, 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/func.pyx":1704 - * 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/func.pyx":1706 - * 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 = close.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":1707 - * raise Exception("close has wrong dimensions") - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< - * close_data = close.data - * length = open.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1707, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1707, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":1706 - * 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 = close.data - */ - } - - /* "talib/func.pyx":1708 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = close.data # <<<<<<<<<<<<<< - * length = open.shape[0] - * if length != high.shape[0]: - */ - __pyx_v_close_data = ((double *)__pyx_v_close->data); - - /* "talib/func.pyx":1709 - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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/func.pyx":1710 - * close_data = 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/func.pyx":1711 - * 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, 1711, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 1711, __pyx_L1_error) - - /* "talib/func.pyx":1710 - * close_data = close.data - * length = open.shape[0] - * if length != high.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * if length != low.shape[0]: - */ - } - - /* "talib/func.pyx":1712 - * 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/func.pyx":1713 - * 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, 1713, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 1713, __pyx_L1_error) - - /* "talib/func.pyx":1712 - * 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/func.pyx":1714 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":1715 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__194, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1715, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 1715, __pyx_L1_error) - - /* "talib/func.pyx":1714 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - } - - /* "talib/func.pyx":1716 - * if length != close.shape[0]: - * raise Exception("input lengths are different") - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = open_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":1717 - * raise Exception("input lengths are different") - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = open_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":1718 - * begidx = 0 - * for i from 0 <= i < length: - * val = open_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_open_data[__pyx_v_i]); - - /* "talib/func.pyx":1719 - * for i from 0 <= i < length: - * val = open_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = high_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":1720 - * val = open_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = high_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":1719 - * for i from 0 <= i < length: - * val = open_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = high_data[i] - */ - } - - /* "talib/func.pyx":1721 - * if val != val: - * continue - * val = high_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); - - /* "talib/func.pyx":1722 - * continue - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":1723 - * val = high_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = low_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":1722 - * continue - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - } - - /* "talib/func.pyx":1724 - * if val != val: - * continue - * val = low_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); - - /* "talib/func.pyx":1725 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":1726 - * val = low_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = close_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":1725 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - } - - /* "talib/func.pyx":1727 - * if val != val: - * continue - * val = close_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); - - /* "talib/func.pyx":1728 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":1729 - * val = close_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":1728 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":1730 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":1731 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L19_break; - __pyx_L18_continue:; - } - /*else*/ { - - /* "talib/func.pyx":1733 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDL3STARSINSOUTH_Lookback( ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__195, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1733, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 1733, __pyx_L1_error) - } - __pyx_L19_break:; - - /* "talib/func.pyx":1734 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_CDL3STARSINSOUTH_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":1735 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDL3STARSINSOUTH_Lookback( ) # <<<<<<<<<<<<<< - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_CDL3STARSINSOUTH_Lookback()); - - /* "talib/func.pyx":1736 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDL3STARSINSOUTH_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1736, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1736, __pyx_L1_error) - __pyx_v_outinteger = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":1737 - * lookback = begidx + lib.TA_CDL3STARSINSOUTH_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 - */ - __pyx_v_outinteger_data = ((int *)__pyx_v_outinteger->data); - - /* "talib/func.pyx":1738 - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outinteger_data[i] = 0 - * retCode = lib.TA_CDL3STARSINSOUTH( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":1739 - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 # <<<<<<<<<<<<<< - * retCode = lib.TA_CDL3STARSINSOUTH( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _ta_check_success("TA_CDL3STARSINSOUTH", retCode) - */ - (__pyx_v_outinteger_data[__pyx_v_i]) = 0; - } - - /* "talib/func.pyx":1740 - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 - * retCode = lib.TA_CDL3STARSINSOUTH( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_CDL3STARSINSOUTH", retCode) - * return outinteger - */ - __pyx_v_retCode = TA_CDL3STARSINSOUTH(0, __pyx_v_endidx, ((double *)(__pyx_v_open_data + __pyx_v_begidx)), ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outinteger_data + __pyx_v_lookback))); - - /* "talib/func.pyx":1741 - * outinteger_data[i] = 0 - * retCode = lib.TA_CDL3STARSINSOUTH( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _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, 1741, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":1742 - * retCode = lib.TA_CDL3STARSINSOUTH( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _ta_check_success("TA_CDL3STARSINSOUTH", retCode) - * return outinteger # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outinteger)); - __pyx_r = ((PyObject *)__pyx_v_outinteger); - goto __pyx_L0; - - /* "talib/func.pyx":1658 - * @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.func.CDL3STARSINSOUTH", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outinteger); - __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/func.pyx":1746 - * @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_4func_47CDL3WHITESOLDIERS(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_47CDL3WHITESOLDIERS = {"CDL3WHITESOLDIERS", (PyCFunction)__pyx_pw_5talib_4func_47CDL3WHITESOLDIERS, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_46CDL3WHITESOLDIERS}; -static PyObject *__pyx_pw_5talib_4func_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, 1746, __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, 1746, __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, 1746, __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, 1746, __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, 1746, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 1746, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 1746, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 1746, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 1746, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_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; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - 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; - PyArrayObject *__pyx_v_outinteger = 0; - int *__pyx_v_outinteger_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __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/func.pyx":1769 - * np.ndarray outinteger - * int* outinteger_data - * 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/func.pyx":1770 - * int* outinteger_data - * 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__196, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1770, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 1770, __pyx_L1_error) - - /* "talib/func.pyx":1769 - * np.ndarray outinteger - * int* outinteger_data - * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("open is not double") - * if open.ndim != 1: - */ - } - - /* "talib/func.pyx":1771 - * 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/func.pyx":1772 - * 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__197, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1772, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 1772, __pyx_L1_error) - - /* "talib/func.pyx":1771 - * 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/func.pyx":1773 - * 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 = open.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":1774 - * raise Exception("open has wrong dimensions") - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< - * open_data = 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, 1774, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1774, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":1773 - * 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 = open.data - */ - } - - /* "talib/func.pyx":1775 - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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/func.pyx":1776 - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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/func.pyx":1777 - * open_data = 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__198, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1777, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 1777, __pyx_L1_error) - - /* "talib/func.pyx":1776 - * open = PyArray_GETCONTIGUOUS(open) - * open_data = open.data - * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("high is not double") - * if high.ndim != 1: - */ - } - - /* "talib/func.pyx":1778 - * 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/func.pyx":1779 - * raise 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__199, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1779, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 1779, __pyx_L1_error) - - /* "talib/func.pyx":1778 - * 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/func.pyx":1780 - * 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 = high.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":1781 - * raise Exception("high has wrong dimensions") - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< - * high_data = 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, 1781, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1781, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":1780 - * 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 = high.data - */ - } - - /* "talib/func.pyx":1782 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":1783 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":1784 - * high_data = 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__200, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1784, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 1784, __pyx_L1_error) - - /* "talib/func.pyx":1783 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = high.data - * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("low is not double") - * if low.ndim != 1: - */ - } - - /* "talib/func.pyx":1785 - * 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/func.pyx":1786 - * raise 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__201, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1786, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 1786, __pyx_L1_error) - - /* "talib/func.pyx":1785 - * 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/func.pyx":1787 - * 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 = low.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":1788 - * raise Exception("low has wrong dimensions") - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< - * low_data = 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, 1788, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1788, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":1787 - * 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 = low.data - */ - } - - /* "talib/func.pyx":1789 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":1790 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":1791 - * low_data = 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__202, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1791, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 1791, __pyx_L1_error) - - /* "talib/func.pyx":1790 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = low.data - * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("close is not double") - * if close.ndim != 1: - */ - } - - /* "talib/func.pyx":1792 - * 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/func.pyx":1793 - * raise 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__203, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1793, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 1793, __pyx_L1_error) - - /* "talib/func.pyx":1792 - * 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/func.pyx":1794 - * 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 = close.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":1795 - * raise Exception("close has wrong dimensions") - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< - * close_data = close.data - * length = open.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1795, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1795, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":1794 - * 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 = close.data - */ - } - - /* "talib/func.pyx":1796 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = close.data # <<<<<<<<<<<<<< - * length = open.shape[0] - * if length != high.shape[0]: - */ - __pyx_v_close_data = ((double *)__pyx_v_close->data); - - /* "talib/func.pyx":1797 - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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/func.pyx":1798 - * close_data = 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/func.pyx":1799 - * 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__204, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1799, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 1799, __pyx_L1_error) - - /* "talib/func.pyx":1798 - * close_data = close.data - * length = open.shape[0] - * if length != high.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * if length != low.shape[0]: - */ - } - - /* "talib/func.pyx":1800 - * 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/func.pyx":1801 - * 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__205, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1801, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 1801, __pyx_L1_error) - - /* "talib/func.pyx":1800 - * 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/func.pyx":1802 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":1803 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__206, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1803, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 1803, __pyx_L1_error) - - /* "talib/func.pyx":1802 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - } - - /* "talib/func.pyx":1804 - * if length != close.shape[0]: - * raise Exception("input lengths are different") - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = open_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":1805 - * raise Exception("input lengths are different") - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = open_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":1806 - * begidx = 0 - * for i from 0 <= i < length: - * val = open_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_open_data[__pyx_v_i]); - - /* "talib/func.pyx":1807 - * for i from 0 <= i < length: - * val = open_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = high_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":1808 - * val = open_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = high_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":1807 - * for i from 0 <= i < length: - * val = open_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = high_data[i] - */ - } - - /* "talib/func.pyx":1809 - * if val != val: - * continue - * val = high_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); - - /* "talib/func.pyx":1810 - * continue - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":1811 - * val = high_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = low_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":1810 - * continue - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - } - - /* "talib/func.pyx":1812 - * if val != val: - * continue - * val = low_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); - - /* "talib/func.pyx":1813 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":1814 - * val = low_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = close_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":1813 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - } - - /* "talib/func.pyx":1815 - * if val != val: - * continue - * val = close_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); - - /* "talib/func.pyx":1816 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":1817 - * val = close_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":1816 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":1818 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":1819 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L19_break; - __pyx_L18_continue:; - } - /*else*/ { - - /* "talib/func.pyx":1821 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDL3WHITESOLDIERS_Lookback( ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__207, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1821, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 1821, __pyx_L1_error) - } - __pyx_L19_break:; - - /* "talib/func.pyx":1822 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_CDL3WHITESOLDIERS_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":1823 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDL3WHITESOLDIERS_Lookback( ) # <<<<<<<<<<<<<< - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_CDL3WHITESOLDIERS_Lookback()); - - /* "talib/func.pyx":1824 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDL3WHITESOLDIERS_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1824, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1824, __pyx_L1_error) - __pyx_v_outinteger = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":1825 - * lookback = begidx + lib.TA_CDL3WHITESOLDIERS_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 - */ - __pyx_v_outinteger_data = ((int *)__pyx_v_outinteger->data); - - /* "talib/func.pyx":1826 - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outinteger_data[i] = 0 - * retCode = lib.TA_CDL3WHITESOLDIERS( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":1827 - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 # <<<<<<<<<<<<<< - * retCode = lib.TA_CDL3WHITESOLDIERS( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _ta_check_success("TA_CDL3WHITESOLDIERS", retCode) - */ - (__pyx_v_outinteger_data[__pyx_v_i]) = 0; - } - - /* "talib/func.pyx":1828 - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 - * retCode = lib.TA_CDL3WHITESOLDIERS( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_CDL3WHITESOLDIERS", retCode) - * return outinteger - */ - __pyx_v_retCode = TA_CDL3WHITESOLDIERS(0, __pyx_v_endidx, ((double *)(__pyx_v_open_data + __pyx_v_begidx)), ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outinteger_data + __pyx_v_lookback))); - - /* "talib/func.pyx":1829 - * outinteger_data[i] = 0 - * retCode = lib.TA_CDL3WHITESOLDIERS( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _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, 1829, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":1830 - * retCode = lib.TA_CDL3WHITESOLDIERS( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _ta_check_success("TA_CDL3WHITESOLDIERS", retCode) - * return outinteger # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outinteger)); - __pyx_r = ((PyObject *)__pyx_v_outinteger); - goto __pyx_L0; - - /* "talib/func.pyx":1746 - * @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.func.CDL3WHITESOLDIERS", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outinteger); - __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/func.pyx":1834 - * @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_4func_49CDLABANDONEDBABY(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_49CDLABANDONEDBABY = {"CDLABANDONEDBABY", (PyCFunction)__pyx_pw_5talib_4func_49CDLABANDONEDBABY, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_48CDLABANDONEDBABY}; -static PyObject *__pyx_pw_5talib_4func_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, 1834, __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, 1834, __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, 1834, __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, 1834, __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, 1834, __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, 1834, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 1834, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 1834, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 1834, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 1834, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_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; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - 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; - PyArrayObject *__pyx_v_outinteger = 0; - int *__pyx_v_outinteger_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __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/func.pyx":1859 - * np.ndarray outinteger - * int* outinteger_data - * 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/func.pyx":1860 - * int* outinteger_data - * 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__208, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1860, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 1860, __pyx_L1_error) - - /* "talib/func.pyx":1859 - * np.ndarray outinteger - * int* outinteger_data - * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("open is not double") - * if open.ndim != 1: - */ - } - - /* "talib/func.pyx":1861 - * 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/func.pyx":1862 - * 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__209, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1862, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 1862, __pyx_L1_error) - - /* "talib/func.pyx":1861 - * 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/func.pyx":1863 - * 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 = open.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":1864 - * raise Exception("open has wrong dimensions") - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< - * open_data = 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, 1864, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1864, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":1863 - * 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 = open.data - */ - } - - /* "talib/func.pyx":1865 - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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/func.pyx":1866 - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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/func.pyx":1867 - * open_data = 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__210, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1867, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 1867, __pyx_L1_error) - - /* "talib/func.pyx":1866 - * open = PyArray_GETCONTIGUOUS(open) - * open_data = open.data - * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("high is not double") - * if high.ndim != 1: - */ - } - - /* "talib/func.pyx":1868 - * 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/func.pyx":1869 - * raise 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__211, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1869, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 1869, __pyx_L1_error) - - /* "talib/func.pyx":1868 - * 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/func.pyx":1870 - * 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 = high.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":1871 - * raise Exception("high has wrong dimensions") - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< - * high_data = 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, 1871, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1871, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":1870 - * 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 = high.data - */ - } - - /* "talib/func.pyx":1872 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":1873 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":1874 - * high_data = 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__212, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1874, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 1874, __pyx_L1_error) - - /* "talib/func.pyx":1873 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = high.data - * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("low is not double") - * if low.ndim != 1: - */ - } - - /* "talib/func.pyx":1875 - * 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/func.pyx":1876 - * raise 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__213, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1876, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 1876, __pyx_L1_error) - - /* "talib/func.pyx":1875 - * 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/func.pyx":1877 - * 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 = low.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":1878 - * raise Exception("low has wrong dimensions") - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< - * low_data = 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, 1878, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1878, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":1877 - * 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 = low.data - */ - } - - /* "talib/func.pyx":1879 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":1880 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":1881 - * low_data = 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__214, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1881, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 1881, __pyx_L1_error) - - /* "talib/func.pyx":1880 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = low.data - * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("close is not double") - * if close.ndim != 1: - */ - } - - /* "talib/func.pyx":1882 - * 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/func.pyx":1883 - * raise 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__215, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1883, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 1883, __pyx_L1_error) - - /* "talib/func.pyx":1882 - * 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/func.pyx":1884 - * 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 = close.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":1885 - * raise Exception("close has wrong dimensions") - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< - * close_data = close.data - * length = open.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1885, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1885, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":1884 - * 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 = close.data - */ - } - - /* "talib/func.pyx":1886 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = close.data # <<<<<<<<<<<<<< - * length = open.shape[0] - * if length != high.shape[0]: - */ - __pyx_v_close_data = ((double *)__pyx_v_close->data); - - /* "talib/func.pyx":1887 - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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/func.pyx":1888 - * close_data = 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/func.pyx":1889 - * 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__216, 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/func.pyx":1888 - * close_data = close.data - * length = open.shape[0] - * if length != high.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * if length != low.shape[0]: - */ - } - - /* "talib/func.pyx":1890 - * 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/func.pyx":1891 - * 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__217, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1891, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 1891, __pyx_L1_error) - - /* "talib/func.pyx":1890 - * 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/func.pyx":1892 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":1893 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__218, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1893, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 1893, __pyx_L1_error) - - /* "talib/func.pyx":1892 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - } - - /* "talib/func.pyx":1894 - * if length != close.shape[0]: - * raise Exception("input lengths are different") - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = open_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":1895 - * raise Exception("input lengths are different") - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = open_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":1896 - * begidx = 0 - * for i from 0 <= i < length: - * val = open_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_open_data[__pyx_v_i]); - - /* "talib/func.pyx":1897 - * for i from 0 <= i < length: - * val = open_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = high_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":1898 - * val = open_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = high_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":1897 - * for i from 0 <= i < length: - * val = open_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = high_data[i] - */ - } - - /* "talib/func.pyx":1899 - * if val != val: - * continue - * val = high_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); - - /* "talib/func.pyx":1900 - * continue - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":1901 - * val = high_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = low_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":1900 - * continue - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - } - - /* "talib/func.pyx":1902 - * if val != val: - * continue - * val = low_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); - - /* "talib/func.pyx":1903 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":1904 - * val = low_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = close_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":1903 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - } - - /* "talib/func.pyx":1905 - * if val != val: - * continue - * val = close_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); - - /* "talib/func.pyx":1906 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":1907 - * val = close_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":1906 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":1908 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":1909 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L19_break; - __pyx_L18_continue:; - } - /*else*/ { - - /* "talib/func.pyx":1911 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLABANDONEDBABY_Lookback( penetration ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__219, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1911, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 1911, __pyx_L1_error) - } - __pyx_L19_break:; - - /* "talib/func.pyx":1912 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_CDLABANDONEDBABY_Lookback( penetration ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":1913 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLABANDONEDBABY_Lookback( penetration ) # <<<<<<<<<<<<<< - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_CDLABANDONEDBABY_Lookback(__pyx_v_penetration)); - - /* "talib/func.pyx":1914 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLABANDONEDBABY_Lookback( penetration ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1914, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1914, __pyx_L1_error) - __pyx_v_outinteger = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":1915 - * lookback = begidx + lib.TA_CDLABANDONEDBABY_Lookback( penetration ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 - */ - __pyx_v_outinteger_data = ((int *)__pyx_v_outinteger->data); - - /* "talib/func.pyx":1916 - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLABANDONEDBABY( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , penetration , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":1917 - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 # <<<<<<<<<<<<<< - * retCode = lib.TA_CDLABANDONEDBABY( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , penetration , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _ta_check_success("TA_CDLABANDONEDBABY", retCode) - */ - (__pyx_v_outinteger_data[__pyx_v_i]) = 0; - } - - /* "talib/func.pyx":1918 - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLABANDONEDBABY( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , penetration , &outbegidx , &outnbelement , (outinteger_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_CDLABANDONEDBABY", retCode) - * return outinteger - */ - __pyx_v_retCode = TA_CDLABANDONEDBABY(0, __pyx_v_endidx, ((double *)(__pyx_v_open_data + __pyx_v_begidx)), ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), __pyx_v_penetration, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outinteger_data + __pyx_v_lookback))); - - /* "talib/func.pyx":1919 - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLABANDONEDBABY( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , penetration , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _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, 1919, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":1920 - * retCode = lib.TA_CDLABANDONEDBABY( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , penetration , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _ta_check_success("TA_CDLABANDONEDBABY", retCode) - * return outinteger # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outinteger)); - __pyx_r = ((PyObject *)__pyx_v_outinteger); - goto __pyx_L0; - - /* "talib/func.pyx":1834 - * @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.func.CDLABANDONEDBABY", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outinteger); - __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/func.pyx":1924 - * @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_4func_51CDLADVANCEBLOCK(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_51CDLADVANCEBLOCK = {"CDLADVANCEBLOCK", (PyCFunction)__pyx_pw_5talib_4func_51CDLADVANCEBLOCK, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_50CDLADVANCEBLOCK}; -static PyObject *__pyx_pw_5talib_4func_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, 1924, __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, 1924, __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, 1924, __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, 1924, __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, 1924, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 1924, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 1924, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 1924, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 1924, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_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; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - 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; - PyArrayObject *__pyx_v_outinteger = 0; - int *__pyx_v_outinteger_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __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/func.pyx":1947 - * np.ndarray outinteger - * int* outinteger_data - * 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/func.pyx":1948 - * int* outinteger_data - * 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__220, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1948, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 1948, __pyx_L1_error) - - /* "talib/func.pyx":1947 - * np.ndarray outinteger - * int* outinteger_data - * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("open is not double") - * if open.ndim != 1: - */ - } - - /* "talib/func.pyx":1949 - * 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/func.pyx":1950 - * 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__221, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1950, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 1950, __pyx_L1_error) - - /* "talib/func.pyx":1949 - * 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/func.pyx":1951 - * 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 = open.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":1952 - * raise Exception("open has wrong dimensions") - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< - * open_data = 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, 1952, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1952, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":1951 - * 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 = open.data - */ - } - - /* "talib/func.pyx":1953 - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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/func.pyx":1954 - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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/func.pyx":1955 - * open_data = 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__222, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1955, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 1955, __pyx_L1_error) - - /* "talib/func.pyx":1954 - * open = PyArray_GETCONTIGUOUS(open) - * open_data = open.data - * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("high is not double") - * if high.ndim != 1: - */ - } - - /* "talib/func.pyx":1956 - * 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/func.pyx":1957 - * raise 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__223, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1957, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 1957, __pyx_L1_error) - - /* "talib/func.pyx":1956 - * 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/func.pyx":1958 - * 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 = high.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":1959 - * raise Exception("high has wrong dimensions") - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< - * high_data = 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, 1959, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1959, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":1958 - * 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 = high.data - */ - } - - /* "talib/func.pyx":1960 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":1961 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":1962 - * high_data = 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__224, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1962, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 1962, __pyx_L1_error) - - /* "talib/func.pyx":1961 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = high.data - * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("low is not double") - * if low.ndim != 1: - */ - } - - /* "talib/func.pyx":1963 - * 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/func.pyx":1964 - * raise 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__225, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1964, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 1964, __pyx_L1_error) - - /* "talib/func.pyx":1963 - * 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/func.pyx":1965 - * 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 = low.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":1966 - * raise Exception("low has wrong dimensions") - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< - * low_data = 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, 1966, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1966, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":1965 - * 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 = low.data - */ - } - - /* "talib/func.pyx":1967 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":1968 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":1969 - * low_data = 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__226, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1969, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 1969, __pyx_L1_error) - - /* "talib/func.pyx":1968 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = low.data - * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("close is not double") - * if close.ndim != 1: - */ - } - - /* "talib/func.pyx":1970 - * 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/func.pyx":1971 - * raise 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__227, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1971, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 1971, __pyx_L1_error) - - /* "talib/func.pyx":1970 - * 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/func.pyx":1972 - * 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 = close.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":1973 - * raise Exception("close has wrong dimensions") - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< - * close_data = close.data - * length = open.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1973, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 1973, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":1972 - * 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 = close.data - */ - } - - /* "talib/func.pyx":1974 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = close.data # <<<<<<<<<<<<<< - * length = open.shape[0] - * if length != high.shape[0]: - */ - __pyx_v_close_data = ((double *)__pyx_v_close->data); - - /* "talib/func.pyx":1975 - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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/func.pyx":1976 - * close_data = 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/func.pyx":1977 - * 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__228, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1977, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 1977, __pyx_L1_error) - - /* "talib/func.pyx":1976 - * close_data = close.data - * length = open.shape[0] - * if length != high.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * if length != low.shape[0]: - */ - } - - /* "talib/func.pyx":1978 - * 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/func.pyx":1979 - * 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__229, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1979, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 1979, __pyx_L1_error) - - /* "talib/func.pyx":1978 - * 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/func.pyx":1980 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":1981 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__230, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1981, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 1981, __pyx_L1_error) - - /* "talib/func.pyx":1980 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - } - - /* "talib/func.pyx":1982 - * if length != close.shape[0]: - * raise Exception("input lengths are different") - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = open_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":1983 - * raise Exception("input lengths are different") - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = open_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":1984 - * begidx = 0 - * for i from 0 <= i < length: - * val = open_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_open_data[__pyx_v_i]); - - /* "talib/func.pyx":1985 - * for i from 0 <= i < length: - * val = open_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = high_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":1986 - * val = open_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = high_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":1985 - * for i from 0 <= i < length: - * val = open_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = high_data[i] - */ - } - - /* "talib/func.pyx":1987 - * if val != val: - * continue - * val = high_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); - - /* "talib/func.pyx":1988 - * continue - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":1989 - * val = high_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = low_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":1988 - * continue - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - } - - /* "talib/func.pyx":1990 - * if val != val: - * continue - * val = low_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); - - /* "talib/func.pyx":1991 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":1992 - * val = low_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = close_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":1991 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - } - - /* "talib/func.pyx":1993 - * if val != val: - * continue - * val = close_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); - - /* "talib/func.pyx":1994 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":1995 - * val = close_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":1994 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":1996 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":1997 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L19_break; - __pyx_L18_continue:; - } - /*else*/ { - - /* "talib/func.pyx":1999 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLADVANCEBLOCK_Lookback( ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__231, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 1999, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 1999, __pyx_L1_error) - } - __pyx_L19_break:; - - /* "talib/func.pyx":2000 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_CDLADVANCEBLOCK_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":2001 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLADVANCEBLOCK_Lookback( ) # <<<<<<<<<<<<<< - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_CDLADVANCEBLOCK_Lookback()); - - /* "talib/func.pyx":2002 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLADVANCEBLOCK_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2002, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2002, __pyx_L1_error) - __pyx_v_outinteger = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":2003 - * lookback = begidx + lib.TA_CDLADVANCEBLOCK_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 - */ - __pyx_v_outinteger_data = ((int *)__pyx_v_outinteger->data); - - /* "talib/func.pyx":2004 - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLADVANCEBLOCK( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":2005 - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 # <<<<<<<<<<<<<< - * retCode = lib.TA_CDLADVANCEBLOCK( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _ta_check_success("TA_CDLADVANCEBLOCK", retCode) - */ - (__pyx_v_outinteger_data[__pyx_v_i]) = 0; - } - - /* "talib/func.pyx":2006 - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLADVANCEBLOCK( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_CDLADVANCEBLOCK", retCode) - * return outinteger - */ - __pyx_v_retCode = TA_CDLADVANCEBLOCK(0, __pyx_v_endidx, ((double *)(__pyx_v_open_data + __pyx_v_begidx)), ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outinteger_data + __pyx_v_lookback))); - - /* "talib/func.pyx":2007 - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLADVANCEBLOCK( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _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, 2007, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":2008 - * retCode = lib.TA_CDLADVANCEBLOCK( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _ta_check_success("TA_CDLADVANCEBLOCK", retCode) - * return outinteger # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outinteger)); - __pyx_r = ((PyObject *)__pyx_v_outinteger); - goto __pyx_L0; - - /* "talib/func.pyx":1924 - * @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.func.CDLADVANCEBLOCK", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outinteger); - __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/func.pyx":2012 - * @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_4func_53CDLBELTHOLD(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_53CDLBELTHOLD = {"CDLBELTHOLD", (PyCFunction)__pyx_pw_5talib_4func_53CDLBELTHOLD, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_52CDLBELTHOLD}; -static PyObject *__pyx_pw_5talib_4func_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, 2012, __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, 2012, __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, 2012, __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, 2012, __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, 2012, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 2012, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 2012, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 2012, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 2012, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_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; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - 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; - PyArrayObject *__pyx_v_outinteger = 0; - int *__pyx_v_outinteger_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __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/func.pyx":2035 - * np.ndarray outinteger - * int* outinteger_data - * 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/func.pyx":2036 - * int* outinteger_data - * 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__232, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2036, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 2036, __pyx_L1_error) - - /* "talib/func.pyx":2035 - * np.ndarray outinteger - * int* outinteger_data - * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("open is not double") - * if open.ndim != 1: - */ - } - - /* "talib/func.pyx":2037 - * 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/func.pyx":2038 - * 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__233, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2038, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 2038, __pyx_L1_error) - - /* "talib/func.pyx":2037 - * 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/func.pyx":2039 - * 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 = open.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":2040 - * raise Exception("open has wrong dimensions") - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< - * open_data = 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, 2040, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2040, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":2039 - * 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 = open.data - */ - } - - /* "talib/func.pyx":2041 - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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/func.pyx":2042 - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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/func.pyx":2043 - * open_data = 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__234, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2043, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 2043, __pyx_L1_error) - - /* "talib/func.pyx":2042 - * open = PyArray_GETCONTIGUOUS(open) - * open_data = open.data - * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("high is not double") - * if high.ndim != 1: - */ - } - - /* "talib/func.pyx":2044 - * 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/func.pyx":2045 - * raise 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__235, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2045, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 2045, __pyx_L1_error) - - /* "talib/func.pyx":2044 - * 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/func.pyx":2046 - * 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 = high.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":2047 - * raise Exception("high has wrong dimensions") - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< - * high_data = 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, 2047, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2047, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":2046 - * 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 = high.data - */ - } - - /* "talib/func.pyx":2048 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":2049 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":2050 - * high_data = 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__236, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2050, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 2050, __pyx_L1_error) - - /* "talib/func.pyx":2049 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = high.data - * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("low is not double") - * if low.ndim != 1: - */ - } - - /* "talib/func.pyx":2051 - * 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/func.pyx":2052 - * raise 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__237, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2052, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 2052, __pyx_L1_error) - - /* "talib/func.pyx":2051 - * 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/func.pyx":2053 - * 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 = low.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":2054 - * raise Exception("low has wrong dimensions") - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< - * low_data = 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, 2054, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2054, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":2053 - * 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 = low.data - */ - } - - /* "talib/func.pyx":2055 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":2056 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":2057 - * low_data = 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__238, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2057, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 2057, __pyx_L1_error) - - /* "talib/func.pyx":2056 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = low.data - * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("close is not double") - * if close.ndim != 1: - */ - } - - /* "talib/func.pyx":2058 - * 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/func.pyx":2059 - * raise 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__239, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2059, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 2059, __pyx_L1_error) - - /* "talib/func.pyx":2058 - * 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/func.pyx":2060 - * 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 = close.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":2061 - * raise Exception("close has wrong dimensions") - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< - * close_data = close.data - * length = open.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2061, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2061, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":2060 - * 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 = close.data - */ - } - - /* "talib/func.pyx":2062 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = close.data # <<<<<<<<<<<<<< - * length = open.shape[0] - * if length != high.shape[0]: - */ - __pyx_v_close_data = ((double *)__pyx_v_close->data); - - /* "talib/func.pyx":2063 - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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/func.pyx":2064 - * close_data = 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/func.pyx":2065 - * 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__240, 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/func.pyx":2064 - * close_data = close.data - * length = open.shape[0] - * if length != high.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * if length != low.shape[0]: - */ - } - - /* "talib/func.pyx":2066 - * 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/func.pyx":2067 - * 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__241, 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/func.pyx":2066 - * 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/func.pyx":2068 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":2069 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__242, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2069, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 2069, __pyx_L1_error) - - /* "talib/func.pyx":2068 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - } - - /* "talib/func.pyx":2070 - * if length != close.shape[0]: - * raise Exception("input lengths are different") - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = open_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":2071 - * raise Exception("input lengths are different") - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = open_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":2072 - * begidx = 0 - * for i from 0 <= i < length: - * val = open_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_open_data[__pyx_v_i]); - - /* "talib/func.pyx":2073 - * for i from 0 <= i < length: - * val = open_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = high_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":2074 - * val = open_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = high_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":2073 - * for i from 0 <= i < length: - * val = open_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = high_data[i] - */ - } - - /* "talib/func.pyx":2075 - * if val != val: - * continue - * val = high_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); - - /* "talib/func.pyx":2076 - * continue - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":2077 - * val = high_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = low_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":2076 - * continue - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - } - - /* "talib/func.pyx":2078 - * if val != val: - * continue - * val = low_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); - - /* "talib/func.pyx":2079 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":2080 - * val = low_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = close_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":2079 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - } - - /* "talib/func.pyx":2081 - * if val != val: - * continue - * val = close_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); - - /* "talib/func.pyx":2082 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":2083 - * val = close_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":2082 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":2084 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":2085 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L19_break; - __pyx_L18_continue:; - } - /*else*/ { - - /* "talib/func.pyx":2087 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLBELTHOLD_Lookback( ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__243, 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) - } - __pyx_L19_break:; - - /* "talib/func.pyx":2088 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_CDLBELTHOLD_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":2089 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLBELTHOLD_Lookback( ) # <<<<<<<<<<<<<< - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_CDLBELTHOLD_Lookback()); - - /* "talib/func.pyx":2090 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLBELTHOLD_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2090, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2090, __pyx_L1_error) - __pyx_v_outinteger = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":2091 - * lookback = begidx + lib.TA_CDLBELTHOLD_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 - */ - __pyx_v_outinteger_data = ((int *)__pyx_v_outinteger->data); - - /* "talib/func.pyx":2092 - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLBELTHOLD( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":2093 - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 # <<<<<<<<<<<<<< - * retCode = lib.TA_CDLBELTHOLD( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _ta_check_success("TA_CDLBELTHOLD", retCode) - */ - (__pyx_v_outinteger_data[__pyx_v_i]) = 0; - } - - /* "talib/func.pyx":2094 - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLBELTHOLD( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_CDLBELTHOLD", retCode) - * return outinteger - */ - __pyx_v_retCode = TA_CDLBELTHOLD(0, __pyx_v_endidx, ((double *)(__pyx_v_open_data + __pyx_v_begidx)), ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outinteger_data + __pyx_v_lookback))); - - /* "talib/func.pyx":2095 - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLBELTHOLD( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _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, 2095, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":2096 - * retCode = lib.TA_CDLBELTHOLD( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _ta_check_success("TA_CDLBELTHOLD", retCode) - * return outinteger # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outinteger)); - __pyx_r = ((PyObject *)__pyx_v_outinteger); - goto __pyx_L0; - - /* "talib/func.pyx":2012 - * @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.func.CDLBELTHOLD", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outinteger); - __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/func.pyx":2100 - * @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_4func_55CDLBREAKAWAY(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_55CDLBREAKAWAY = {"CDLBREAKAWAY", (PyCFunction)__pyx_pw_5talib_4func_55CDLBREAKAWAY, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_54CDLBREAKAWAY}; -static PyObject *__pyx_pw_5talib_4func_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, 2100, __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, 2100, __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, 2100, __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, 2100, __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, 2100, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 2100, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 2100, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 2100, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 2100, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_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; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - 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; - PyArrayObject *__pyx_v_outinteger = 0; - int *__pyx_v_outinteger_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __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/func.pyx":2123 - * np.ndarray outinteger - * int* outinteger_data - * 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/func.pyx":2124 - * int* outinteger_data - * 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__244, 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/func.pyx":2123 - * np.ndarray outinteger - * int* outinteger_data - * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("open is not double") - * if open.ndim != 1: - */ - } - - /* "talib/func.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/func.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__245, 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/func.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/func.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 = open.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":2128 - * raise Exception("open has wrong dimensions") - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< - * open_data = 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/func.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 = open.data - */ - } - - /* "talib/func.pyx":2129 - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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/func.pyx":2130 - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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/func.pyx":2131 - * open_data = 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__246, 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/func.pyx":2130 - * open = PyArray_GETCONTIGUOUS(open) - * open_data = open.data - * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("high is not double") - * if high.ndim != 1: - */ - } - - /* "talib/func.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/func.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__247, 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/func.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/func.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 = high.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":2135 - * raise Exception("high has wrong dimensions") - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< - * high_data = 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/func.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 = high.data - */ - } - - /* "talib/func.pyx":2136 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":2137 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":2138 - * high_data = 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__248, 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/func.pyx":2137 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = high.data - * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("low is not double") - * if low.ndim != 1: - */ - } - - /* "talib/func.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/func.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__249, 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/func.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/func.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 = low.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":2142 - * raise Exception("low has wrong dimensions") - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< - * low_data = 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/func.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 = low.data - */ - } - - /* "talib/func.pyx":2143 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":2144 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":2145 - * low_data = 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__250, 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/func.pyx":2144 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = low.data - * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("close is not double") - * if close.ndim != 1: - */ - } - - /* "talib/func.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/func.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__251, 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/func.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/func.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 = close.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":2149 - * raise Exception("close has wrong dimensions") - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< - * close_data = 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/func.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 = close.data - */ - } - - /* "talib/func.pyx":2150 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = close.data # <<<<<<<<<<<<<< - * length = open.shape[0] - * if length != high.shape[0]: - */ - __pyx_v_close_data = ((double *)__pyx_v_close->data); - - /* "talib/func.pyx":2151 - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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/func.pyx":2152 - * close_data = 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/func.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__252, 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/func.pyx":2152 - * close_data = close.data - * length = open.shape[0] - * if length != high.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * if length != low.shape[0]: - */ - } - - /* "talib/func.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/func.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__253, 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/func.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/func.pyx":2156 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":2157 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__254, 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/func.pyx":2156 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - } - - /* "talib/func.pyx":2158 - * if length != close.shape[0]: - * raise Exception("input lengths are different") - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = open_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":2159 - * raise Exception("input lengths are different") - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = open_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":2160 - * begidx = 0 - * for i from 0 <= i < length: - * val = open_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_open_data[__pyx_v_i]); - - /* "talib/func.pyx":2161 - * for i from 0 <= i < length: - * val = open_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = high_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":2162 - * val = open_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = high_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":2161 - * for i from 0 <= i < length: - * val = open_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = high_data[i] - */ - } - - /* "talib/func.pyx":2163 - * if val != val: - * continue - * val = high_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); - - /* "talib/func.pyx":2164 - * continue - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":2165 - * val = high_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = low_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":2164 - * continue - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - } - - /* "talib/func.pyx":2166 - * if val != val: - * continue - * val = low_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); - - /* "talib/func.pyx":2167 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":2168 - * val = low_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = close_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":2167 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - } - - /* "talib/func.pyx":2169 - * if val != val: - * continue - * val = close_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); - - /* "talib/func.pyx":2170 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":2171 - * val = close_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":2170 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":2172 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":2173 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L19_break; - __pyx_L18_continue:; - } - /*else*/ { - - /* "talib/func.pyx":2175 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLBREAKAWAY_Lookback( ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__255, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2175, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 2175, __pyx_L1_error) - } - __pyx_L19_break:; - - /* "talib/func.pyx":2176 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_CDLBREAKAWAY_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":2177 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLBREAKAWAY_Lookback( ) # <<<<<<<<<<<<<< - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_CDLBREAKAWAY_Lookback()); - - /* "talib/func.pyx":2178 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLBREAKAWAY_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2178, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2178, __pyx_L1_error) - __pyx_v_outinteger = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":2179 - * lookback = begidx + lib.TA_CDLBREAKAWAY_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 - */ - __pyx_v_outinteger_data = ((int *)__pyx_v_outinteger->data); - - /* "talib/func.pyx":2180 - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLBREAKAWAY( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":2181 - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 # <<<<<<<<<<<<<< - * retCode = lib.TA_CDLBREAKAWAY( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _ta_check_success("TA_CDLBREAKAWAY", retCode) - */ - (__pyx_v_outinteger_data[__pyx_v_i]) = 0; - } - - /* "talib/func.pyx":2182 - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLBREAKAWAY( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_CDLBREAKAWAY", retCode) - * return outinteger - */ - __pyx_v_retCode = TA_CDLBREAKAWAY(0, __pyx_v_endidx, ((double *)(__pyx_v_open_data + __pyx_v_begidx)), ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outinteger_data + __pyx_v_lookback))); - - /* "talib/func.pyx":2183 - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLBREAKAWAY( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _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, 2183, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":2184 - * retCode = lib.TA_CDLBREAKAWAY( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _ta_check_success("TA_CDLBREAKAWAY", retCode) - * return outinteger # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outinteger)); - __pyx_r = ((PyObject *)__pyx_v_outinteger); - goto __pyx_L0; - - /* "talib/func.pyx":2100 - * @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.func.CDLBREAKAWAY", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outinteger); - __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/func.pyx":2188 - * @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_4func_57CDLCLOSINGMARUBOZU(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_57CDLCLOSINGMARUBOZU = {"CDLCLOSINGMARUBOZU", (PyCFunction)__pyx_pw_5talib_4func_57CDLCLOSINGMARUBOZU, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_56CDLCLOSINGMARUBOZU}; -static PyObject *__pyx_pw_5talib_4func_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, 2188, __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, 2188, __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, 2188, __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, 2188, __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, 2188, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 2188, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 2188, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 2188, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 2188, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_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; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - 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; - PyArrayObject *__pyx_v_outinteger = 0; - int *__pyx_v_outinteger_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __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/func.pyx":2211 - * np.ndarray outinteger - * int* outinteger_data - * 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/func.pyx":2212 - * int* outinteger_data - * 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__256, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2212, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 2212, __pyx_L1_error) - - /* "talib/func.pyx":2211 - * np.ndarray outinteger - * int* outinteger_data - * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("open is not double") - * if open.ndim != 1: - */ - } - - /* "talib/func.pyx":2213 - * 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/func.pyx":2214 - * 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__257, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2214, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 2214, __pyx_L1_error) - - /* "talib/func.pyx":2213 - * 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/func.pyx":2215 - * 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 = open.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":2216 - * raise Exception("open has wrong dimensions") - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< - * open_data = 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, 2216, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2216, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":2215 - * 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 = open.data - */ - } - - /* "talib/func.pyx":2217 - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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/func.pyx":2218 - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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/func.pyx":2219 - * open_data = 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__258, 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/func.pyx":2218 - * open = PyArray_GETCONTIGUOUS(open) - * open_data = open.data - * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("high is not double") - * if high.ndim != 1: - */ - } - - /* "talib/func.pyx":2220 - * 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/func.pyx":2221 - * raise 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__259, 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/func.pyx":2220 - * 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/func.pyx":2222 - * 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 = high.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":2223 - * raise Exception("high has wrong dimensions") - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< - * high_data = 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, 2223, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2223, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":2222 - * 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 = high.data - */ - } - - /* "talib/func.pyx":2224 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":2225 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":2226 - * high_data = 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__260, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2226, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 2226, __pyx_L1_error) - - /* "talib/func.pyx":2225 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = high.data - * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("low is not double") - * if low.ndim != 1: - */ - } - - /* "talib/func.pyx":2227 - * 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/func.pyx":2228 - * raise 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__261, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2228, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 2228, __pyx_L1_error) - - /* "talib/func.pyx":2227 - * 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/func.pyx":2229 - * 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 = low.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":2230 - * raise Exception("low has wrong dimensions") - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< - * low_data = 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, 2230, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2230, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":2229 - * 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 = low.data - */ - } - - /* "talib/func.pyx":2231 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":2232 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":2233 - * low_data = 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__262, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2233, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 2233, __pyx_L1_error) - - /* "talib/func.pyx":2232 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = low.data - * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("close is not double") - * if close.ndim != 1: - */ - } - - /* "talib/func.pyx":2234 - * 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/func.pyx":2235 - * raise 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__263, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2235, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 2235, __pyx_L1_error) - - /* "talib/func.pyx":2234 - * 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/func.pyx":2236 - * 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 = close.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":2237 - * raise Exception("close has wrong dimensions") - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< - * close_data = close.data - * length = open.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2237, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2237, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":2236 - * 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 = close.data - */ - } - - /* "talib/func.pyx":2238 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = close.data # <<<<<<<<<<<<<< - * length = open.shape[0] - * if length != high.shape[0]: - */ - __pyx_v_close_data = ((double *)__pyx_v_close->data); - - /* "talib/func.pyx":2239 - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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/func.pyx":2240 - * close_data = 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/func.pyx":2241 - * 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__264, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2241, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 2241, __pyx_L1_error) - - /* "talib/func.pyx":2240 - * close_data = close.data - * length = open.shape[0] - * if length != high.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * if length != low.shape[0]: - */ - } - - /* "talib/func.pyx":2242 - * 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/func.pyx":2243 - * 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__265, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2243, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 2243, __pyx_L1_error) - - /* "talib/func.pyx":2242 - * 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/func.pyx":2244 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":2245 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__266, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2245, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 2245, __pyx_L1_error) - - /* "talib/func.pyx":2244 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - } - - /* "talib/func.pyx":2246 - * if length != close.shape[0]: - * raise Exception("input lengths are different") - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = open_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":2247 - * raise Exception("input lengths are different") - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = open_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":2248 - * begidx = 0 - * for i from 0 <= i < length: - * val = open_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_open_data[__pyx_v_i]); - - /* "talib/func.pyx":2249 - * for i from 0 <= i < length: - * val = open_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = high_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":2250 - * val = open_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = high_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":2249 - * for i from 0 <= i < length: - * val = open_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = high_data[i] - */ - } - - /* "talib/func.pyx":2251 - * if val != val: - * continue - * val = high_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); - - /* "talib/func.pyx":2252 - * continue - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":2253 - * val = high_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = low_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":2252 - * continue - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - } - - /* "talib/func.pyx":2254 - * if val != val: - * continue - * val = low_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); - - /* "talib/func.pyx":2255 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":2256 - * val = low_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = close_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":2255 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - } - - /* "talib/func.pyx":2257 - * if val != val: - * continue - * val = close_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); - - /* "talib/func.pyx":2258 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":2259 - * val = close_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":2258 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":2260 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":2261 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L19_break; - __pyx_L18_continue:; - } - /*else*/ { - - /* "talib/func.pyx":2263 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLCLOSINGMARUBOZU_Lookback( ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__267, 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) - } - __pyx_L19_break:; - - /* "talib/func.pyx":2264 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_CDLCLOSINGMARUBOZU_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":2265 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLCLOSINGMARUBOZU_Lookback( ) # <<<<<<<<<<<<<< - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_CDLCLOSINGMARUBOZU_Lookback()); - - /* "talib/func.pyx":2266 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLCLOSINGMARUBOZU_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2266, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2266, __pyx_L1_error) - __pyx_v_outinteger = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":2267 - * lookback = begidx + lib.TA_CDLCLOSINGMARUBOZU_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 - */ - __pyx_v_outinteger_data = ((int *)__pyx_v_outinteger->data); - - /* "talib/func.pyx":2268 - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLCLOSINGMARUBOZU( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":2269 - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 # <<<<<<<<<<<<<< - * retCode = lib.TA_CDLCLOSINGMARUBOZU( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _ta_check_success("TA_CDLCLOSINGMARUBOZU", retCode) - */ - (__pyx_v_outinteger_data[__pyx_v_i]) = 0; - } - - /* "talib/func.pyx":2270 - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLCLOSINGMARUBOZU( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_CDLCLOSINGMARUBOZU", retCode) - * return outinteger - */ - __pyx_v_retCode = TA_CDLCLOSINGMARUBOZU(0, __pyx_v_endidx, ((double *)(__pyx_v_open_data + __pyx_v_begidx)), ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outinteger_data + __pyx_v_lookback))); - - /* "talib/func.pyx":2271 - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLCLOSINGMARUBOZU( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _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, 2271, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":2272 - * retCode = lib.TA_CDLCLOSINGMARUBOZU( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _ta_check_success("TA_CDLCLOSINGMARUBOZU", retCode) - * return outinteger # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outinteger)); - __pyx_r = ((PyObject *)__pyx_v_outinteger); - goto __pyx_L0; - - /* "talib/func.pyx":2188 - * @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.func.CDLCLOSINGMARUBOZU", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outinteger); - __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/func.pyx":2276 - * @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_4func_59CDLCONCEALBABYSWALL(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_59CDLCONCEALBABYSWALL = {"CDLCONCEALBABYSWALL", (PyCFunction)__pyx_pw_5talib_4func_59CDLCONCEALBABYSWALL, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_58CDLCONCEALBABYSWALL}; -static PyObject *__pyx_pw_5talib_4func_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, 2276, __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, 2276, __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, 2276, __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, 2276, __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, 2276, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 2276, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 2276, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 2276, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 2276, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_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; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - 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; - PyArrayObject *__pyx_v_outinteger = 0; - int *__pyx_v_outinteger_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __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/func.pyx":2299 - * np.ndarray outinteger - * int* outinteger_data - * 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/func.pyx":2300 - * int* outinteger_data - * 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__268, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2300, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 2300, __pyx_L1_error) - - /* "talib/func.pyx":2299 - * np.ndarray outinteger - * int* outinteger_data - * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("open is not double") - * if open.ndim != 1: - */ - } - - /* "talib/func.pyx":2301 - * 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/func.pyx":2302 - * 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__269, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2302, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 2302, __pyx_L1_error) - - /* "talib/func.pyx":2301 - * 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/func.pyx":2303 - * 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 = open.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":2304 - * raise Exception("open has wrong dimensions") - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< - * open_data = 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, 2304, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2304, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":2303 - * 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 = open.data - */ - } - - /* "talib/func.pyx":2305 - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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/func.pyx":2306 - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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/func.pyx":2307 - * open_data = 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__270, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2307, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 2307, __pyx_L1_error) - - /* "talib/func.pyx":2306 - * open = PyArray_GETCONTIGUOUS(open) - * open_data = open.data - * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("high is not double") - * if high.ndim != 1: - */ - } - - /* "talib/func.pyx":2308 - * 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/func.pyx":2309 - * raise 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__271, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2309, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 2309, __pyx_L1_error) - - /* "talib/func.pyx":2308 - * 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/func.pyx":2310 - * 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 = high.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":2311 - * raise Exception("high has wrong dimensions") - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< - * high_data = 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, 2311, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2311, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":2310 - * 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 = high.data - */ - } - - /* "talib/func.pyx":2312 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":2313 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":2314 - * high_data = 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__272, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2314, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 2314, __pyx_L1_error) - - /* "talib/func.pyx":2313 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = high.data - * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("low is not double") - * if low.ndim != 1: - */ - } - - /* "talib/func.pyx":2315 - * 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/func.pyx":2316 - * raise 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__273, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2316, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 2316, __pyx_L1_error) - - /* "talib/func.pyx":2315 - * 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/func.pyx":2317 - * 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 = low.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":2318 - * raise Exception("low has wrong dimensions") - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< - * low_data = 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, 2318, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2318, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":2317 - * 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 = low.data - */ - } - - /* "talib/func.pyx":2319 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":2320 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":2321 - * low_data = 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__274, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2321, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 2321, __pyx_L1_error) - - /* "talib/func.pyx":2320 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = low.data - * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("close is not double") - * if close.ndim != 1: - */ - } - - /* "talib/func.pyx":2322 - * 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/func.pyx":2323 - * raise 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__275, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2323, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 2323, __pyx_L1_error) - - /* "talib/func.pyx":2322 - * 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/func.pyx":2324 - * 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 = close.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":2325 - * raise Exception("close has wrong dimensions") - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< - * close_data = close.data - * length = open.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2325, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2325, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":2324 - * 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 = close.data - */ - } - - /* "talib/func.pyx":2326 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = close.data # <<<<<<<<<<<<<< - * length = open.shape[0] - * if length != high.shape[0]: - */ - __pyx_v_close_data = ((double *)__pyx_v_close->data); - - /* "talib/func.pyx":2327 - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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/func.pyx":2328 - * close_data = 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/func.pyx":2329 - * 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__276, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2329, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 2329, __pyx_L1_error) - - /* "talib/func.pyx":2328 - * close_data = close.data - * length = open.shape[0] - * if length != high.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * if length != low.shape[0]: - */ - } - - /* "talib/func.pyx":2330 - * 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/func.pyx":2331 - * 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__277, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2331, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 2331, __pyx_L1_error) - - /* "talib/func.pyx":2330 - * 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/func.pyx":2332 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":2333 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__278, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2333, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 2333, __pyx_L1_error) - - /* "talib/func.pyx":2332 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - } - - /* "talib/func.pyx":2334 - * if length != close.shape[0]: - * raise Exception("input lengths are different") - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = open_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":2335 - * raise Exception("input lengths are different") - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = open_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":2336 - * begidx = 0 - * for i from 0 <= i < length: - * val = open_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_open_data[__pyx_v_i]); - - /* "talib/func.pyx":2337 - * for i from 0 <= i < length: - * val = open_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = high_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":2338 - * val = open_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = high_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":2337 - * for i from 0 <= i < length: - * val = open_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = high_data[i] - */ - } - - /* "talib/func.pyx":2339 - * if val != val: - * continue - * val = high_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); - - /* "talib/func.pyx":2340 - * continue - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":2341 - * val = high_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = low_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":2340 - * continue - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - } - - /* "talib/func.pyx":2342 - * if val != val: - * continue - * val = low_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); - - /* "talib/func.pyx":2343 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":2344 - * val = low_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = close_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":2343 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - } - - /* "talib/func.pyx":2345 - * if val != val: - * continue - * val = close_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); - - /* "talib/func.pyx":2346 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":2347 - * val = close_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":2346 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":2348 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":2349 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L19_break; - __pyx_L18_continue:; - } - /*else*/ { - - /* "talib/func.pyx":2351 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLCONCEALBABYSWALL_Lookback( ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__279, 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) - } - __pyx_L19_break:; - - /* "talib/func.pyx":2352 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_CDLCONCEALBABYSWALL_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":2353 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLCONCEALBABYSWALL_Lookback( ) # <<<<<<<<<<<<<< - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_CDLCONCEALBABYSWALL_Lookback()); - - /* "talib/func.pyx":2354 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLCONCEALBABYSWALL_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2354, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2354, __pyx_L1_error) - __pyx_v_outinteger = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":2355 - * lookback = begidx + lib.TA_CDLCONCEALBABYSWALL_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 - */ - __pyx_v_outinteger_data = ((int *)__pyx_v_outinteger->data); - - /* "talib/func.pyx":2356 - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLCONCEALBABYSWALL( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":2357 - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 # <<<<<<<<<<<<<< - * retCode = lib.TA_CDLCONCEALBABYSWALL( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _ta_check_success("TA_CDLCONCEALBABYSWALL", retCode) - */ - (__pyx_v_outinteger_data[__pyx_v_i]) = 0; - } - - /* "talib/func.pyx":2358 - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLCONCEALBABYSWALL( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_CDLCONCEALBABYSWALL", retCode) - * return outinteger - */ - __pyx_v_retCode = TA_CDLCONCEALBABYSWALL(0, __pyx_v_endidx, ((double *)(__pyx_v_open_data + __pyx_v_begidx)), ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outinteger_data + __pyx_v_lookback))); - - /* "talib/func.pyx":2359 - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLCONCEALBABYSWALL( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _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, 2359, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":2360 - * retCode = lib.TA_CDLCONCEALBABYSWALL( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _ta_check_success("TA_CDLCONCEALBABYSWALL", retCode) - * return outinteger # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outinteger)); - __pyx_r = ((PyObject *)__pyx_v_outinteger); - goto __pyx_L0; - - /* "talib/func.pyx":2276 - * @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.func.CDLCONCEALBABYSWALL", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outinteger); - __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/func.pyx":2364 - * @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_4func_61CDLCOUNTERATTACK(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_61CDLCOUNTERATTACK = {"CDLCOUNTERATTACK", (PyCFunction)__pyx_pw_5talib_4func_61CDLCOUNTERATTACK, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_60CDLCOUNTERATTACK}; -static PyObject *__pyx_pw_5talib_4func_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, 2364, __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, 2364, __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, 2364, __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, 2364, __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, 2364, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 2364, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 2364, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 2364, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 2364, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_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; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - 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; - PyArrayObject *__pyx_v_outinteger = 0; - int *__pyx_v_outinteger_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __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/func.pyx":2387 - * np.ndarray outinteger - * int* outinteger_data - * 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/func.pyx":2388 - * int* outinteger_data - * 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__280, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2388, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 2388, __pyx_L1_error) - - /* "talib/func.pyx":2387 - * np.ndarray outinteger - * int* outinteger_data - * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("open is not double") - * if open.ndim != 1: - */ - } - - /* "talib/func.pyx":2389 - * 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/func.pyx":2390 - * 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__281, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2390, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 2390, __pyx_L1_error) - - /* "talib/func.pyx":2389 - * 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/func.pyx":2391 - * 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 = open.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":2392 - * raise Exception("open has wrong dimensions") - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< - * open_data = 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, 2392, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2392, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":2391 - * 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 = open.data - */ - } - - /* "talib/func.pyx":2393 - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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/func.pyx":2394 - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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/func.pyx":2395 - * open_data = 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__282, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2395, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 2395, __pyx_L1_error) - - /* "talib/func.pyx":2394 - * open = PyArray_GETCONTIGUOUS(open) - * open_data = open.data - * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("high is not double") - * if high.ndim != 1: - */ - } - - /* "talib/func.pyx":2396 - * 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/func.pyx":2397 - * raise 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__283, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2397, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 2397, __pyx_L1_error) - - /* "talib/func.pyx":2396 - * 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/func.pyx":2398 - * 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 = high.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":2399 - * raise Exception("high has wrong dimensions") - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< - * high_data = 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, 2399, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2399, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":2398 - * 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 = high.data - */ - } - - /* "talib/func.pyx":2400 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":2401 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":2402 - * high_data = 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__284, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2402, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 2402, __pyx_L1_error) - - /* "talib/func.pyx":2401 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = high.data - * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("low is not double") - * if low.ndim != 1: - */ - } - - /* "talib/func.pyx":2403 - * 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/func.pyx":2404 - * raise 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__285, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2404, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 2404, __pyx_L1_error) - - /* "talib/func.pyx":2403 - * 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/func.pyx":2405 - * 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 = low.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":2406 - * raise Exception("low has wrong dimensions") - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< - * low_data = 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, 2406, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2406, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":2405 - * 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 = low.data - */ - } - - /* "talib/func.pyx":2407 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":2408 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":2409 - * low_data = 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__286, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2409, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 2409, __pyx_L1_error) - - /* "talib/func.pyx":2408 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = low.data - * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("close is not double") - * if close.ndim != 1: - */ - } - - /* "talib/func.pyx":2410 - * 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/func.pyx":2411 - * raise 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__287, 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/func.pyx":2410 - * 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/func.pyx":2412 - * 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 = close.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":2413 - * raise Exception("close has wrong dimensions") - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< - * close_data = close.data - * length = open.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2413, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2413, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":2412 - * 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 = close.data - */ - } - - /* "talib/func.pyx":2414 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = close.data # <<<<<<<<<<<<<< - * length = open.shape[0] - * if length != high.shape[0]: - */ - __pyx_v_close_data = ((double *)__pyx_v_close->data); - - /* "talib/func.pyx":2415 - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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/func.pyx":2416 - * close_data = 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/func.pyx":2417 - * 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__288, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2417, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 2417, __pyx_L1_error) - - /* "talib/func.pyx":2416 - * close_data = close.data - * length = open.shape[0] - * if length != high.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * if length != low.shape[0]: - */ - } - - /* "talib/func.pyx":2418 - * 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/func.pyx":2419 - * 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__289, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2419, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 2419, __pyx_L1_error) - - /* "talib/func.pyx":2418 - * 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/func.pyx":2420 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":2421 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__290, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2421, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 2421, __pyx_L1_error) - - /* "talib/func.pyx":2420 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - } - - /* "talib/func.pyx":2422 - * if length != close.shape[0]: - * raise Exception("input lengths are different") - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = open_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":2423 - * raise Exception("input lengths are different") - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = open_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":2424 - * begidx = 0 - * for i from 0 <= i < length: - * val = open_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_open_data[__pyx_v_i]); - - /* "talib/func.pyx":2425 - * for i from 0 <= i < length: - * val = open_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = high_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":2426 - * val = open_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = high_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":2425 - * for i from 0 <= i < length: - * val = open_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = high_data[i] - */ - } - - /* "talib/func.pyx":2427 - * if val != val: - * continue - * val = high_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); - - /* "talib/func.pyx":2428 - * continue - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":2429 - * val = high_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = low_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":2428 - * continue - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - } - - /* "talib/func.pyx":2430 - * if val != val: - * continue - * val = low_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); - - /* "talib/func.pyx":2431 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":2432 - * val = low_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = close_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":2431 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - } - - /* "talib/func.pyx":2433 - * if val != val: - * continue - * val = close_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); - - /* "talib/func.pyx":2434 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":2435 - * val = close_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":2434 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":2436 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":2437 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L19_break; - __pyx_L18_continue:; - } - /*else*/ { - - /* "talib/func.pyx":2439 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLCOUNTERATTACK_Lookback( ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__291, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2439, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 2439, __pyx_L1_error) - } - __pyx_L19_break:; - - /* "talib/func.pyx":2440 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_CDLCOUNTERATTACK_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":2441 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLCOUNTERATTACK_Lookback( ) # <<<<<<<<<<<<<< - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_CDLCOUNTERATTACK_Lookback()); - - /* "talib/func.pyx":2442 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLCOUNTERATTACK_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2442, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2442, __pyx_L1_error) - __pyx_v_outinteger = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":2443 - * lookback = begidx + lib.TA_CDLCOUNTERATTACK_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 - */ - __pyx_v_outinteger_data = ((int *)__pyx_v_outinteger->data); - - /* "talib/func.pyx":2444 - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLCOUNTERATTACK( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":2445 - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 # <<<<<<<<<<<<<< - * retCode = lib.TA_CDLCOUNTERATTACK( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _ta_check_success("TA_CDLCOUNTERATTACK", retCode) - */ - (__pyx_v_outinteger_data[__pyx_v_i]) = 0; - } - - /* "talib/func.pyx":2446 - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLCOUNTERATTACK( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_CDLCOUNTERATTACK", retCode) - * return outinteger - */ - __pyx_v_retCode = TA_CDLCOUNTERATTACK(0, __pyx_v_endidx, ((double *)(__pyx_v_open_data + __pyx_v_begidx)), ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outinteger_data + __pyx_v_lookback))); - - /* "talib/func.pyx":2447 - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLCOUNTERATTACK( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _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, 2447, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":2448 - * retCode = lib.TA_CDLCOUNTERATTACK( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _ta_check_success("TA_CDLCOUNTERATTACK", retCode) - * return outinteger # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outinteger)); - __pyx_r = ((PyObject *)__pyx_v_outinteger); - goto __pyx_L0; - - /* "talib/func.pyx":2364 - * @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.func.CDLCOUNTERATTACK", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outinteger); - __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/func.pyx":2452 - * @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_4func_63CDLDARKCLOUDCOVER(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_63CDLDARKCLOUDCOVER = {"CDLDARKCLOUDCOVER", (PyCFunction)__pyx_pw_5talib_4func_63CDLDARKCLOUDCOVER, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_62CDLDARKCLOUDCOVER}; -static PyObject *__pyx_pw_5talib_4func_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, 2452, __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, 2452, __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, 2452, __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, 2452, __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, 2452, __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, 2452, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 2452, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 2452, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 2452, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 2452, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_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; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - 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; - PyArrayObject *__pyx_v_outinteger = 0; - int *__pyx_v_outinteger_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __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/func.pyx":2477 - * np.ndarray outinteger - * int* outinteger_data - * 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/func.pyx":2478 - * int* outinteger_data - * 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__292, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2478, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 2478, __pyx_L1_error) - - /* "talib/func.pyx":2477 - * np.ndarray outinteger - * int* outinteger_data - * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("open is not double") - * if open.ndim != 1: - */ - } - - /* "talib/func.pyx":2479 - * 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/func.pyx":2480 - * 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__293, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2480, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 2480, __pyx_L1_error) - - /* "talib/func.pyx":2479 - * 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/func.pyx":2481 - * 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 = open.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":2482 - * raise Exception("open has wrong dimensions") - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< - * open_data = 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, 2482, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2482, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":2481 - * 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 = open.data - */ - } - - /* "talib/func.pyx":2483 - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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/func.pyx":2484 - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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/func.pyx":2485 - * open_data = 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__294, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2485, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 2485, __pyx_L1_error) - - /* "talib/func.pyx":2484 - * open = PyArray_GETCONTIGUOUS(open) - * open_data = open.data - * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("high is not double") - * if high.ndim != 1: - */ - } - - /* "talib/func.pyx":2486 - * 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/func.pyx":2487 - * raise 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__295, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2487, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 2487, __pyx_L1_error) - - /* "talib/func.pyx":2486 - * 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/func.pyx":2488 - * 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 = high.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":2489 - * raise Exception("high has wrong dimensions") - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< - * high_data = 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, 2489, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2489, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":2488 - * 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 = high.data - */ - } - - /* "talib/func.pyx":2490 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":2491 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":2492 - * high_data = 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__296, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2492, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 2492, __pyx_L1_error) - - /* "talib/func.pyx":2491 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = high.data - * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("low is not double") - * if low.ndim != 1: - */ - } - - /* "talib/func.pyx":2493 - * 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/func.pyx":2494 - * raise 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__297, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2494, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 2494, __pyx_L1_error) - - /* "talib/func.pyx":2493 - * 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/func.pyx":2495 - * 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 = low.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":2496 - * raise Exception("low has wrong dimensions") - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< - * low_data = 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, 2496, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2496, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":2495 - * 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 = low.data - */ - } - - /* "talib/func.pyx":2497 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":2498 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":2499 - * low_data = 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__298, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2499, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 2499, __pyx_L1_error) - - /* "talib/func.pyx":2498 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = low.data - * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("close is not double") - * if close.ndim != 1: - */ - } - - /* "talib/func.pyx":2500 - * 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/func.pyx":2501 - * raise 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__299, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2501, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 2501, __pyx_L1_error) - - /* "talib/func.pyx":2500 - * 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/func.pyx":2502 - * 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 = close.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":2503 - * raise Exception("close has wrong dimensions") - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< - * close_data = close.data - * length = open.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2503, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2503, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":2502 - * 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 = close.data - */ - } - - /* "talib/func.pyx":2504 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = close.data # <<<<<<<<<<<<<< - * length = open.shape[0] - * if length != high.shape[0]: - */ - __pyx_v_close_data = ((double *)__pyx_v_close->data); - - /* "talib/func.pyx":2505 - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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/func.pyx":2506 - * close_data = 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/func.pyx":2507 - * 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__300, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2507, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 2507, __pyx_L1_error) - - /* "talib/func.pyx":2506 - * close_data = close.data - * length = open.shape[0] - * if length != high.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * if length != low.shape[0]: - */ - } - - /* "talib/func.pyx":2508 - * 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/func.pyx":2509 - * 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__301, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2509, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 2509, __pyx_L1_error) - - /* "talib/func.pyx":2508 - * 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/func.pyx":2510 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":2511 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__302, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2511, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 2511, __pyx_L1_error) - - /* "talib/func.pyx":2510 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - } - - /* "talib/func.pyx":2512 - * if length != close.shape[0]: - * raise Exception("input lengths are different") - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = open_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":2513 - * raise Exception("input lengths are different") - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = open_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":2514 - * begidx = 0 - * for i from 0 <= i < length: - * val = open_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_open_data[__pyx_v_i]); - - /* "talib/func.pyx":2515 - * for i from 0 <= i < length: - * val = open_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = high_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":2516 - * val = open_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = high_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":2515 - * for i from 0 <= i < length: - * val = open_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = high_data[i] - */ - } - - /* "talib/func.pyx":2517 - * if val != val: - * continue - * val = high_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); - - /* "talib/func.pyx":2518 - * continue - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":2519 - * val = high_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = low_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":2518 - * continue - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - } - - /* "talib/func.pyx":2520 - * if val != val: - * continue - * val = low_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); - - /* "talib/func.pyx":2521 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":2522 - * val = low_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = close_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":2521 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - } - - /* "talib/func.pyx":2523 - * if val != val: - * continue - * val = close_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); - - /* "talib/func.pyx":2524 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":2525 - * val = close_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":2524 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":2526 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":2527 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L19_break; - __pyx_L18_continue:; - } - /*else*/ { - - /* "talib/func.pyx":2529 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLDARKCLOUDCOVER_Lookback( penetration ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__303, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2529, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 2529, __pyx_L1_error) - } - __pyx_L19_break:; - - /* "talib/func.pyx":2530 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_CDLDARKCLOUDCOVER_Lookback( penetration ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":2531 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLDARKCLOUDCOVER_Lookback( penetration ) # <<<<<<<<<<<<<< - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_CDLDARKCLOUDCOVER_Lookback(__pyx_v_penetration)); - - /* "talib/func.pyx":2532 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLDARKCLOUDCOVER_Lookback( penetration ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2532, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2532, __pyx_L1_error) - __pyx_v_outinteger = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":2533 - * lookback = begidx + lib.TA_CDLDARKCLOUDCOVER_Lookback( penetration ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 - */ - __pyx_v_outinteger_data = ((int *)__pyx_v_outinteger->data); - - /* "talib/func.pyx":2534 - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLDARKCLOUDCOVER( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , penetration , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":2535 - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 # <<<<<<<<<<<<<< - * retCode = lib.TA_CDLDARKCLOUDCOVER( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , penetration , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _ta_check_success("TA_CDLDARKCLOUDCOVER", retCode) - */ - (__pyx_v_outinteger_data[__pyx_v_i]) = 0; - } - - /* "talib/func.pyx":2536 - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLDARKCLOUDCOVER( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , penetration , &outbegidx , &outnbelement , (outinteger_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_CDLDARKCLOUDCOVER", retCode) - * return outinteger - */ - __pyx_v_retCode = TA_CDLDARKCLOUDCOVER(0, __pyx_v_endidx, ((double *)(__pyx_v_open_data + __pyx_v_begidx)), ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), __pyx_v_penetration, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outinteger_data + __pyx_v_lookback))); - - /* "talib/func.pyx":2537 - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLDARKCLOUDCOVER( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , penetration , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _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, 2537, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":2538 - * retCode = lib.TA_CDLDARKCLOUDCOVER( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , penetration , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _ta_check_success("TA_CDLDARKCLOUDCOVER", retCode) - * return outinteger # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outinteger)); - __pyx_r = ((PyObject *)__pyx_v_outinteger); - goto __pyx_L0; - - /* "talib/func.pyx":2452 - * @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.func.CDLDARKCLOUDCOVER", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outinteger); - __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/func.pyx":2542 - * @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_4func_65CDLDOJI(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_65CDLDOJI = {"CDLDOJI", (PyCFunction)__pyx_pw_5talib_4func_65CDLDOJI, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_64CDLDOJI}; -static PyObject *__pyx_pw_5talib_4func_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, 2542, __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, 2542, __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, 2542, __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, 2542, __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, 2542, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 2542, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 2542, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 2542, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 2542, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_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; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - 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; - PyArrayObject *__pyx_v_outinteger = 0; - int *__pyx_v_outinteger_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __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/func.pyx":2565 - * np.ndarray outinteger - * int* outinteger_data - * 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/func.pyx":2566 - * int* outinteger_data - * 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__304, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2566, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 2566, __pyx_L1_error) - - /* "talib/func.pyx":2565 - * np.ndarray outinteger - * int* outinteger_data - * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("open is not double") - * if open.ndim != 1: - */ - } - - /* "talib/func.pyx":2567 - * 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/func.pyx":2568 - * 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__305, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2568, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 2568, __pyx_L1_error) - - /* "talib/func.pyx":2567 - * 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/func.pyx":2569 - * 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 = open.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":2570 - * raise Exception("open has wrong dimensions") - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< - * open_data = 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, 2570, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2570, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":2569 - * 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 = open.data - */ - } - - /* "talib/func.pyx":2571 - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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/func.pyx":2572 - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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/func.pyx":2573 - * open_data = 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__306, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2573, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 2573, __pyx_L1_error) - - /* "talib/func.pyx":2572 - * open = PyArray_GETCONTIGUOUS(open) - * open_data = open.data - * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("high is not double") - * if high.ndim != 1: - */ - } - - /* "talib/func.pyx":2574 - * 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/func.pyx":2575 - * raise 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__307, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2575, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 2575, __pyx_L1_error) - - /* "talib/func.pyx":2574 - * 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/func.pyx":2576 - * 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 = high.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":2577 - * raise Exception("high has wrong dimensions") - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< - * high_data = 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, 2577, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2577, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":2576 - * 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 = high.data - */ - } - - /* "talib/func.pyx":2578 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":2579 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":2580 - * high_data = 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__308, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2580, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 2580, __pyx_L1_error) - - /* "talib/func.pyx":2579 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = high.data - * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("low is not double") - * if low.ndim != 1: - */ - } - - /* "talib/func.pyx":2581 - * 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/func.pyx":2582 - * raise 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__309, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2582, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 2582, __pyx_L1_error) - - /* "talib/func.pyx":2581 - * 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/func.pyx":2583 - * 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 = low.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":2584 - * raise Exception("low has wrong dimensions") - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< - * low_data = 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, 2584, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2584, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":2583 - * 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 = low.data - */ - } - - /* "talib/func.pyx":2585 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":2586 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":2587 - * low_data = 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__310, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2587, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 2587, __pyx_L1_error) - - /* "talib/func.pyx":2586 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = low.data - * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("close is not double") - * if close.ndim != 1: - */ - } - - /* "talib/func.pyx":2588 - * 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/func.pyx":2589 - * raise 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__311, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2589, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 2589, __pyx_L1_error) - - /* "talib/func.pyx":2588 - * 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/func.pyx":2590 - * 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 = close.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":2591 - * raise Exception("close has wrong dimensions") - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< - * close_data = close.data - * length = open.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2591, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2591, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":2590 - * 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 = close.data - */ - } - - /* "talib/func.pyx":2592 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = close.data # <<<<<<<<<<<<<< - * length = open.shape[0] - * if length != high.shape[0]: - */ - __pyx_v_close_data = ((double *)__pyx_v_close->data); - - /* "talib/func.pyx":2593 - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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/func.pyx":2594 - * close_data = 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/func.pyx":2595 - * 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__312, 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/func.pyx":2594 - * close_data = close.data - * length = open.shape[0] - * if length != high.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * if length != low.shape[0]: - */ - } - - /* "talib/func.pyx":2596 - * 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/func.pyx":2597 - * 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__313, 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/func.pyx":2596 - * 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/func.pyx":2598 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":2599 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__314, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2599, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 2599, __pyx_L1_error) - - /* "talib/func.pyx":2598 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - } - - /* "talib/func.pyx":2600 - * if length != close.shape[0]: - * raise Exception("input lengths are different") - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = open_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":2601 - * raise Exception("input lengths are different") - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = open_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":2602 - * begidx = 0 - * for i from 0 <= i < length: - * val = open_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_open_data[__pyx_v_i]); - - /* "talib/func.pyx":2603 - * for i from 0 <= i < length: - * val = open_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = high_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":2604 - * val = open_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = high_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":2603 - * for i from 0 <= i < length: - * val = open_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = high_data[i] - */ - } - - /* "talib/func.pyx":2605 - * if val != val: - * continue - * val = high_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); - - /* "talib/func.pyx":2606 - * continue - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":2607 - * val = high_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = low_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":2606 - * continue - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - } - - /* "talib/func.pyx":2608 - * if val != val: - * continue - * val = low_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); - - /* "talib/func.pyx":2609 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":2610 - * val = low_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = close_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":2609 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - } - - /* "talib/func.pyx":2611 - * if val != val: - * continue - * val = close_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); - - /* "talib/func.pyx":2612 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":2613 - * val = close_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":2612 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":2614 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":2615 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L19_break; - __pyx_L18_continue:; - } - /*else*/ { - - /* "talib/func.pyx":2617 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLDOJI_Lookback( ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__315, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2617, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 2617, __pyx_L1_error) - } - __pyx_L19_break:; - - /* "talib/func.pyx":2618 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_CDLDOJI_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":2619 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLDOJI_Lookback( ) # <<<<<<<<<<<<<< - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_CDLDOJI_Lookback()); - - /* "talib/func.pyx":2620 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLDOJI_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2620, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2620, __pyx_L1_error) - __pyx_v_outinteger = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":2621 - * lookback = begidx + lib.TA_CDLDOJI_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 - */ - __pyx_v_outinteger_data = ((int *)__pyx_v_outinteger->data); - - /* "talib/func.pyx":2622 - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLDOJI( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":2623 - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 # <<<<<<<<<<<<<< - * retCode = lib.TA_CDLDOJI( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _ta_check_success("TA_CDLDOJI", retCode) - */ - (__pyx_v_outinteger_data[__pyx_v_i]) = 0; - } - - /* "talib/func.pyx":2624 - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLDOJI( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_CDLDOJI", retCode) - * return outinteger - */ - __pyx_v_retCode = TA_CDLDOJI(0, __pyx_v_endidx, ((double *)(__pyx_v_open_data + __pyx_v_begidx)), ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outinteger_data + __pyx_v_lookback))); - - /* "talib/func.pyx":2625 - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLDOJI( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _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, 2625, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":2626 - * retCode = lib.TA_CDLDOJI( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _ta_check_success("TA_CDLDOJI", retCode) - * return outinteger # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outinteger)); - __pyx_r = ((PyObject *)__pyx_v_outinteger); - goto __pyx_L0; - - /* "talib/func.pyx":2542 - * @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.func.CDLDOJI", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outinteger); - __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/func.pyx":2630 - * @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_4func_67CDLDOJISTAR(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_67CDLDOJISTAR = {"CDLDOJISTAR", (PyCFunction)__pyx_pw_5talib_4func_67CDLDOJISTAR, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_66CDLDOJISTAR}; -static PyObject *__pyx_pw_5talib_4func_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, 2630, __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, 2630, __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, 2630, __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, 2630, __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, 2630, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 2630, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 2630, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 2630, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 2630, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_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; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - 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; - PyArrayObject *__pyx_v_outinteger = 0; - int *__pyx_v_outinteger_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __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/func.pyx":2653 - * np.ndarray outinteger - * int* outinteger_data - * 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/func.pyx":2654 - * int* outinteger_data - * 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, 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/func.pyx":2653 - * np.ndarray outinteger - * int* outinteger_data - * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("open is not double") - * if open.ndim != 1: - */ - } - - /* "talib/func.pyx":2655 - * 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/func.pyx":2656 - * 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, 2656, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 2656, __pyx_L1_error) - - /* "talib/func.pyx":2655 - * 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/func.pyx":2657 - * 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 = open.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":2658 - * raise Exception("open has wrong dimensions") - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< - * open_data = 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, 2658, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2658, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":2657 - * 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 = open.data - */ - } - - /* "talib/func.pyx":2659 - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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/func.pyx":2660 - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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/func.pyx":2661 - * open_data = 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, 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/func.pyx":2660 - * open = PyArray_GETCONTIGUOUS(open) - * open_data = open.data - * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("high is not double") - * if high.ndim != 1: - */ - } - - /* "talib/func.pyx":2662 - * 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/func.pyx":2663 - * raise 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, 2663, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 2663, __pyx_L1_error) - - /* "talib/func.pyx":2662 - * 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/func.pyx":2664 - * 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 = high.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":2665 - * raise Exception("high has wrong dimensions") - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< - * high_data = 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, 2665, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2665, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":2664 - * 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 = high.data - */ - } - - /* "talib/func.pyx":2666 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":2667 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":2668 - * high_data = 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, 2668, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 2668, __pyx_L1_error) - - /* "talib/func.pyx":2667 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = high.data - * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("low is not double") - * if low.ndim != 1: - */ - } - - /* "talib/func.pyx":2669 - * 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/func.pyx":2670 - * raise 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, 2670, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 2670, __pyx_L1_error) - - /* "talib/func.pyx":2669 - * 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/func.pyx":2671 - * 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 = low.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":2672 - * raise Exception("low has wrong dimensions") - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< - * low_data = 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, 2672, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2672, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":2671 - * 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 = low.data - */ - } - - /* "talib/func.pyx":2673 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":2674 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":2675 - * low_data = 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, 2675, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 2675, __pyx_L1_error) - - /* "talib/func.pyx":2674 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = low.data - * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("close is not double") - * if close.ndim != 1: - */ - } - - /* "talib/func.pyx":2676 - * 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/func.pyx":2677 - * raise 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, 2677, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 2677, __pyx_L1_error) - - /* "talib/func.pyx":2676 - * 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/func.pyx":2678 - * 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 = close.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":2679 - * raise Exception("close has wrong dimensions") - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< - * close_data = close.data - * length = open.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2679, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2679, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":2678 - * 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 = close.data - */ - } - - /* "talib/func.pyx":2680 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = close.data # <<<<<<<<<<<<<< - * length = open.shape[0] - * if length != high.shape[0]: - */ - __pyx_v_close_data = ((double *)__pyx_v_close->data); - - /* "talib/func.pyx":2681 - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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/func.pyx":2682 - * close_data = 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/func.pyx":2683 - * 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, 2683, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 2683, __pyx_L1_error) - - /* "talib/func.pyx":2682 - * close_data = close.data - * length = open.shape[0] - * if length != high.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * if length != low.shape[0]: - */ - } - - /* "talib/func.pyx":2684 - * 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/func.pyx":2685 - * 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, 2685, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 2685, __pyx_L1_error) - - /* "talib/func.pyx":2684 - * 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/func.pyx":2686 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":2687 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__326, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2687, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 2687, __pyx_L1_error) - - /* "talib/func.pyx":2686 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - } - - /* "talib/func.pyx":2688 - * if length != close.shape[0]: - * raise Exception("input lengths are different") - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = open_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":2689 - * raise Exception("input lengths are different") - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = open_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":2690 - * begidx = 0 - * for i from 0 <= i < length: - * val = open_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_open_data[__pyx_v_i]); - - /* "talib/func.pyx":2691 - * for i from 0 <= i < length: - * val = open_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = high_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":2692 - * val = open_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = high_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":2691 - * for i from 0 <= i < length: - * val = open_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = high_data[i] - */ - } - - /* "talib/func.pyx":2693 - * if val != val: - * continue - * val = high_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); - - /* "talib/func.pyx":2694 - * continue - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":2695 - * val = high_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = low_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":2694 - * continue - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - } - - /* "talib/func.pyx":2696 - * if val != val: - * continue - * val = low_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); - - /* "talib/func.pyx":2697 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":2698 - * val = low_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = close_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":2697 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - } - - /* "talib/func.pyx":2699 - * if val != val: - * continue - * val = close_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); - - /* "talib/func.pyx":2700 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":2701 - * val = close_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":2700 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":2702 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":2703 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L19_break; - __pyx_L18_continue:; - } - /*else*/ { - - /* "talib/func.pyx":2705 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLDOJISTAR_Lookback( ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__327, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2705, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 2705, __pyx_L1_error) - } - __pyx_L19_break:; - - /* "talib/func.pyx":2706 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_CDLDOJISTAR_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":2707 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLDOJISTAR_Lookback( ) # <<<<<<<<<<<<<< - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_CDLDOJISTAR_Lookback()); - - /* "talib/func.pyx":2708 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLDOJISTAR_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2708, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2708, __pyx_L1_error) - __pyx_v_outinteger = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":2709 - * lookback = begidx + lib.TA_CDLDOJISTAR_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 - */ - __pyx_v_outinteger_data = ((int *)__pyx_v_outinteger->data); - - /* "talib/func.pyx":2710 - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLDOJISTAR( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":2711 - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 # <<<<<<<<<<<<<< - * retCode = lib.TA_CDLDOJISTAR( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _ta_check_success("TA_CDLDOJISTAR", retCode) - */ - (__pyx_v_outinteger_data[__pyx_v_i]) = 0; - } - - /* "talib/func.pyx":2712 - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLDOJISTAR( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_CDLDOJISTAR", retCode) - * return outinteger - */ - __pyx_v_retCode = TA_CDLDOJISTAR(0, __pyx_v_endidx, ((double *)(__pyx_v_open_data + __pyx_v_begidx)), ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outinteger_data + __pyx_v_lookback))); - - /* "talib/func.pyx":2713 - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLDOJISTAR( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _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, 2713, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":2714 - * retCode = lib.TA_CDLDOJISTAR( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _ta_check_success("TA_CDLDOJISTAR", retCode) - * return outinteger # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outinteger)); - __pyx_r = ((PyObject *)__pyx_v_outinteger); - goto __pyx_L0; - - /* "talib/func.pyx":2630 - * @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.func.CDLDOJISTAR", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outinteger); - __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/func.pyx":2718 - * @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_4func_69CDLDRAGONFLYDOJI(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_69CDLDRAGONFLYDOJI = {"CDLDRAGONFLYDOJI", (PyCFunction)__pyx_pw_5talib_4func_69CDLDRAGONFLYDOJI, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_68CDLDRAGONFLYDOJI}; -static PyObject *__pyx_pw_5talib_4func_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, 2718, __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, 2718, __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, 2718, __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, 2718, __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, 2718, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 2718, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 2718, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 2718, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 2718, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_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; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - 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; - PyArrayObject *__pyx_v_outinteger = 0; - int *__pyx_v_outinteger_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __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/func.pyx":2741 - * np.ndarray outinteger - * int* outinteger_data - * 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/func.pyx":2742 - * int* outinteger_data - * 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__328, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2742, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 2742, __pyx_L1_error) - - /* "talib/func.pyx":2741 - * np.ndarray outinteger - * int* outinteger_data - * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("open is not double") - * if open.ndim != 1: - */ - } - - /* "talib/func.pyx":2743 - * 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/func.pyx":2744 - * 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__329, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2744, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 2744, __pyx_L1_error) - - /* "talib/func.pyx":2743 - * 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/func.pyx":2745 - * 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 = open.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":2746 - * raise Exception("open has wrong dimensions") - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< - * open_data = 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, 2746, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2746, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":2745 - * 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 = open.data - */ - } - - /* "talib/func.pyx":2747 - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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/func.pyx":2748 - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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/func.pyx":2749 - * open_data = 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__330, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2749, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 2749, __pyx_L1_error) - - /* "talib/func.pyx":2748 - * open = PyArray_GETCONTIGUOUS(open) - * open_data = open.data - * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("high is not double") - * if high.ndim != 1: - */ - } - - /* "talib/func.pyx":2750 - * 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/func.pyx":2751 - * raise 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__331, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2751, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 2751, __pyx_L1_error) - - /* "talib/func.pyx":2750 - * 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/func.pyx":2752 - * 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 = high.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":2753 - * raise Exception("high has wrong dimensions") - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< - * high_data = 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, 2753, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2753, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":2752 - * 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 = high.data - */ - } - - /* "talib/func.pyx":2754 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":2755 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":2756 - * high_data = 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__332, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2756, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 2756, __pyx_L1_error) - - /* "talib/func.pyx":2755 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = high.data - * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("low is not double") - * if low.ndim != 1: - */ - } - - /* "talib/func.pyx":2757 - * 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/func.pyx":2758 - * raise 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__333, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2758, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 2758, __pyx_L1_error) - - /* "talib/func.pyx":2757 - * 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/func.pyx":2759 - * 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 = low.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":2760 - * raise Exception("low has wrong dimensions") - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< - * low_data = 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, 2760, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2760, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":2759 - * 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 = low.data - */ - } - - /* "talib/func.pyx":2761 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":2762 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":2763 - * low_data = 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__334, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2763, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 2763, __pyx_L1_error) - - /* "talib/func.pyx":2762 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = low.data - * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("close is not double") - * if close.ndim != 1: - */ - } - - /* "talib/func.pyx":2764 - * 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/func.pyx":2765 - * raise 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__335, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2765, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 2765, __pyx_L1_error) - - /* "talib/func.pyx":2764 - * 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/func.pyx":2766 - * 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 = close.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":2767 - * raise Exception("close has wrong dimensions") - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< - * close_data = close.data - * length = open.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2767, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2767, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":2766 - * 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 = close.data - */ - } - - /* "talib/func.pyx":2768 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = close.data # <<<<<<<<<<<<<< - * length = open.shape[0] - * if length != high.shape[0]: - */ - __pyx_v_close_data = ((double *)__pyx_v_close->data); - - /* "talib/func.pyx":2769 - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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/func.pyx":2770 - * close_data = 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/func.pyx":2771 - * 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__336, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2771, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 2771, __pyx_L1_error) - - /* "talib/func.pyx":2770 - * close_data = close.data - * length = open.shape[0] - * if length != high.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * if length != low.shape[0]: - */ - } - - /* "talib/func.pyx":2772 - * 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/func.pyx":2773 - * 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__337, 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/func.pyx":2772 - * 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/func.pyx":2774 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":2775 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__338, 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/func.pyx":2774 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - } - - /* "talib/func.pyx":2776 - * if length != close.shape[0]: - * raise Exception("input lengths are different") - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = open_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":2777 - * raise Exception("input lengths are different") - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = open_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":2778 - * begidx = 0 - * for i from 0 <= i < length: - * val = open_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_open_data[__pyx_v_i]); - - /* "talib/func.pyx":2779 - * for i from 0 <= i < length: - * val = open_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = high_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":2780 - * val = open_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = high_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":2779 - * for i from 0 <= i < length: - * val = open_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = high_data[i] - */ - } - - /* "talib/func.pyx":2781 - * if val != val: - * continue - * val = high_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); - - /* "talib/func.pyx":2782 - * continue - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":2783 - * val = high_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = low_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":2782 - * continue - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - } - - /* "talib/func.pyx":2784 - * if val != val: - * continue - * val = low_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); - - /* "talib/func.pyx":2785 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":2786 - * val = low_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = close_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":2785 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - } - - /* "talib/func.pyx":2787 - * if val != val: - * continue - * val = close_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); - - /* "talib/func.pyx":2788 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":2789 - * val = close_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":2788 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":2790 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":2791 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L19_break; - __pyx_L18_continue:; - } - /*else*/ { - - /* "talib/func.pyx":2793 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLDRAGONFLYDOJI_Lookback( ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__339, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2793, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 2793, __pyx_L1_error) - } - __pyx_L19_break:; - - /* "talib/func.pyx":2794 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_CDLDRAGONFLYDOJI_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":2795 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLDRAGONFLYDOJI_Lookback( ) # <<<<<<<<<<<<<< - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_CDLDRAGONFLYDOJI_Lookback()); - - /* "talib/func.pyx":2796 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLDRAGONFLYDOJI_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2796, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2796, __pyx_L1_error) - __pyx_v_outinteger = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":2797 - * lookback = begidx + lib.TA_CDLDRAGONFLYDOJI_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 - */ - __pyx_v_outinteger_data = ((int *)__pyx_v_outinteger->data); - - /* "talib/func.pyx":2798 - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLDRAGONFLYDOJI( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":2799 - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 # <<<<<<<<<<<<<< - * retCode = lib.TA_CDLDRAGONFLYDOJI( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _ta_check_success("TA_CDLDRAGONFLYDOJI", retCode) - */ - (__pyx_v_outinteger_data[__pyx_v_i]) = 0; - } - - /* "talib/func.pyx":2800 - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLDRAGONFLYDOJI( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_CDLDRAGONFLYDOJI", retCode) - * return outinteger - */ - __pyx_v_retCode = TA_CDLDRAGONFLYDOJI(0, __pyx_v_endidx, ((double *)(__pyx_v_open_data + __pyx_v_begidx)), ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outinteger_data + __pyx_v_lookback))); - - /* "talib/func.pyx":2801 - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLDRAGONFLYDOJI( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _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, 2801, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":2802 - * retCode = lib.TA_CDLDRAGONFLYDOJI( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _ta_check_success("TA_CDLDRAGONFLYDOJI", retCode) - * return outinteger # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outinteger)); - __pyx_r = ((PyObject *)__pyx_v_outinteger); - goto __pyx_L0; - - /* "talib/func.pyx":2718 - * @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.func.CDLDRAGONFLYDOJI", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outinteger); - __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/func.pyx":2806 - * @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_4func_71CDLENGULFING(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_71CDLENGULFING = {"CDLENGULFING", (PyCFunction)__pyx_pw_5talib_4func_71CDLENGULFING, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_70CDLENGULFING}; -static PyObject *__pyx_pw_5talib_4func_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, 2806, __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, 2806, __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, 2806, __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, 2806, __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, 2806, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 2806, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 2806, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 2806, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 2806, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_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; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - 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; - PyArrayObject *__pyx_v_outinteger = 0; - int *__pyx_v_outinteger_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __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/func.pyx":2829 - * np.ndarray outinteger - * int* outinteger_data - * 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/func.pyx":2830 - * int* outinteger_data - * 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__340, 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/func.pyx":2829 - * np.ndarray outinteger - * int* outinteger_data - * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("open is not double") - * if open.ndim != 1: - */ - } - - /* "talib/func.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/func.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__341, 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/func.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/func.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 = open.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":2834 - * raise Exception("open has wrong dimensions") - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< - * open_data = 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/func.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 = open.data - */ - } - - /* "talib/func.pyx":2835 - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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/func.pyx":2836 - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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/func.pyx":2837 - * open_data = 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__342, 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/func.pyx":2836 - * open = PyArray_GETCONTIGUOUS(open) - * open_data = open.data - * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("high is not double") - * if high.ndim != 1: - */ - } - - /* "talib/func.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/func.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__343, 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/func.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/func.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 = high.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":2841 - * raise Exception("high has wrong dimensions") - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< - * high_data = 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/func.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 = high.data - */ - } - - /* "talib/func.pyx":2842 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":2843 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":2844 - * high_data = 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__344, 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/func.pyx":2843 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = high.data - * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("low is not double") - * if low.ndim != 1: - */ - } - - /* "talib/func.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/func.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__345, 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/func.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/func.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 = low.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":2848 - * raise Exception("low has wrong dimensions") - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< - * low_data = 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/func.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 = low.data - */ - } - - /* "talib/func.pyx":2849 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":2850 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":2851 - * low_data = 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__346, 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/func.pyx":2850 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = low.data - * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("close is not double") - * if close.ndim != 1: - */ - } - - /* "talib/func.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/func.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__347, 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/func.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/func.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 = close.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":2855 - * raise Exception("close has wrong dimensions") - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< - * close_data = 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/func.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 = close.data - */ - } - - /* "talib/func.pyx":2856 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = close.data # <<<<<<<<<<<<<< - * length = open.shape[0] - * if length != high.shape[0]: - */ - __pyx_v_close_data = ((double *)__pyx_v_close->data); - - /* "talib/func.pyx":2857 - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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/func.pyx":2858 - * close_data = 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/func.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__348, 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/func.pyx":2858 - * close_data = close.data - * length = open.shape[0] - * if length != high.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * if length != low.shape[0]: - */ - } - - /* "talib/func.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/func.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__349, 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/func.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/func.pyx":2862 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":2863 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__350, 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/func.pyx":2862 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - } - - /* "talib/func.pyx":2864 - * if length != close.shape[0]: - * raise Exception("input lengths are different") - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = open_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":2865 - * raise Exception("input lengths are different") - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = open_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":2866 - * begidx = 0 - * for i from 0 <= i < length: - * val = open_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_open_data[__pyx_v_i]); - - /* "talib/func.pyx":2867 - * for i from 0 <= i < length: - * val = open_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = high_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":2868 - * val = open_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = high_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":2867 - * for i from 0 <= i < length: - * val = open_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = high_data[i] - */ - } - - /* "talib/func.pyx":2869 - * if val != val: - * continue - * val = high_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); - - /* "talib/func.pyx":2870 - * continue - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":2871 - * val = high_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = low_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":2870 - * continue - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - } - - /* "talib/func.pyx":2872 - * if val != val: - * continue - * val = low_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); - - /* "talib/func.pyx":2873 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":2874 - * val = low_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = close_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":2873 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - } - - /* "talib/func.pyx":2875 - * if val != val: - * continue - * val = close_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); - - /* "talib/func.pyx":2876 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":2877 - * val = close_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":2876 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":2878 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":2879 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L19_break; - __pyx_L18_continue:; - } - /*else*/ { - - /* "talib/func.pyx":2881 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLENGULFING_Lookback( ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__351, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2881, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 2881, __pyx_L1_error) - } - __pyx_L19_break:; - - /* "talib/func.pyx":2882 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_CDLENGULFING_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":2883 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLENGULFING_Lookback( ) # <<<<<<<<<<<<<< - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_CDLENGULFING_Lookback()); - - /* "talib/func.pyx":2884 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLENGULFING_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2884, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2884, __pyx_L1_error) - __pyx_v_outinteger = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":2885 - * lookback = begidx + lib.TA_CDLENGULFING_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 - */ - __pyx_v_outinteger_data = ((int *)__pyx_v_outinteger->data); - - /* "talib/func.pyx":2886 - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLENGULFING( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":2887 - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 # <<<<<<<<<<<<<< - * retCode = lib.TA_CDLENGULFING( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _ta_check_success("TA_CDLENGULFING", retCode) - */ - (__pyx_v_outinteger_data[__pyx_v_i]) = 0; - } - - /* "talib/func.pyx":2888 - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLENGULFING( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_CDLENGULFING", retCode) - * return outinteger - */ - __pyx_v_retCode = TA_CDLENGULFING(0, __pyx_v_endidx, ((double *)(__pyx_v_open_data + __pyx_v_begidx)), ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outinteger_data + __pyx_v_lookback))); - - /* "talib/func.pyx":2889 - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLENGULFING( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _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, 2889, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":2890 - * retCode = lib.TA_CDLENGULFING( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _ta_check_success("TA_CDLENGULFING", retCode) - * return outinteger # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outinteger)); - __pyx_r = ((PyObject *)__pyx_v_outinteger); - goto __pyx_L0; - - /* "talib/func.pyx":2806 - * @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.func.CDLENGULFING", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outinteger); - __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/func.pyx":2894 - * @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_4func_73CDLEVENINGDOJISTAR(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_73CDLEVENINGDOJISTAR = {"CDLEVENINGDOJISTAR", (PyCFunction)__pyx_pw_5talib_4func_73CDLEVENINGDOJISTAR, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_72CDLEVENINGDOJISTAR}; -static PyObject *__pyx_pw_5talib_4func_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, 2894, __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, 2894, __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, 2894, __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, 2894, __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, 2894, __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, 2894, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 2894, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 2894, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 2894, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 2894, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_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; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - 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; - PyArrayObject *__pyx_v_outinteger = 0; - int *__pyx_v_outinteger_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __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/func.pyx":2919 - * np.ndarray outinteger - * int* outinteger_data - * 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/func.pyx":2920 - * int* outinteger_data - * 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__352, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2920, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 2920, __pyx_L1_error) - - /* "talib/func.pyx":2919 - * np.ndarray outinteger - * int* outinteger_data - * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("open is not double") - * if open.ndim != 1: - */ - } - - /* "talib/func.pyx":2921 - * 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/func.pyx":2922 - * 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__353, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2922, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 2922, __pyx_L1_error) - - /* "talib/func.pyx":2921 - * 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/func.pyx":2923 - * 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 = open.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":2924 - * raise Exception("open has wrong dimensions") - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< - * open_data = 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, 2924, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2924, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":2923 - * 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 = open.data - */ - } - - /* "talib/func.pyx":2925 - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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/func.pyx":2926 - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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/func.pyx":2927 - * open_data = 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__354, 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/func.pyx":2926 - * open = PyArray_GETCONTIGUOUS(open) - * open_data = open.data - * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("high is not double") - * if high.ndim != 1: - */ - } - - /* "talib/func.pyx":2928 - * 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/func.pyx":2929 - * raise 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__355, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2929, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 2929, __pyx_L1_error) - - /* "talib/func.pyx":2928 - * 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/func.pyx":2930 - * 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 = high.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":2931 - * raise Exception("high has wrong dimensions") - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< - * high_data = 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, 2931, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2931, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":2930 - * 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 = high.data - */ - } - - /* "talib/func.pyx":2932 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":2933 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":2934 - * high_data = 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__356, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2934, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 2934, __pyx_L1_error) - - /* "talib/func.pyx":2933 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = high.data - * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("low is not double") - * if low.ndim != 1: - */ - } - - /* "talib/func.pyx":2935 - * 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/func.pyx":2936 - * raise 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__357, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2936, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 2936, __pyx_L1_error) - - /* "talib/func.pyx":2935 - * 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/func.pyx":2937 - * 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 = low.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":2938 - * raise Exception("low has wrong dimensions") - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< - * low_data = 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, 2938, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2938, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":2937 - * 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 = low.data - */ - } - - /* "talib/func.pyx":2939 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":2940 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":2941 - * low_data = 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__358, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2941, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 2941, __pyx_L1_error) - - /* "talib/func.pyx":2940 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = low.data - * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("close is not double") - * if close.ndim != 1: - */ - } - - /* "talib/func.pyx":2942 - * 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/func.pyx":2943 - * raise 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__359, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2943, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 2943, __pyx_L1_error) - - /* "talib/func.pyx":2942 - * 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/func.pyx":2944 - * 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 = close.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":2945 - * raise Exception("close has wrong dimensions") - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< - * close_data = close.data - * length = open.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2945, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2945, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":2944 - * 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 = close.data - */ - } - - /* "talib/func.pyx":2946 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = close.data # <<<<<<<<<<<<<< - * length = open.shape[0] - * if length != high.shape[0]: - */ - __pyx_v_close_data = ((double *)__pyx_v_close->data); - - /* "talib/func.pyx":2947 - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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/func.pyx":2948 - * close_data = 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/func.pyx":2949 - * 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__360, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2949, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 2949, __pyx_L1_error) - - /* "talib/func.pyx":2948 - * close_data = close.data - * length = open.shape[0] - * if length != high.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * if length != low.shape[0]: - */ - } - - /* "talib/func.pyx":2950 - * 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/func.pyx":2951 - * 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__361, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2951, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 2951, __pyx_L1_error) - - /* "talib/func.pyx":2950 - * 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/func.pyx":2952 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":2953 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__362, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2953, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 2953, __pyx_L1_error) - - /* "talib/func.pyx":2952 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - } - - /* "talib/func.pyx":2954 - * if length != close.shape[0]: - * raise Exception("input lengths are different") - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = open_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":2955 - * raise Exception("input lengths are different") - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = open_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":2956 - * begidx = 0 - * for i from 0 <= i < length: - * val = open_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_open_data[__pyx_v_i]); - - /* "talib/func.pyx":2957 - * for i from 0 <= i < length: - * val = open_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = high_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":2958 - * val = open_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = high_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":2957 - * for i from 0 <= i < length: - * val = open_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = high_data[i] - */ - } - - /* "talib/func.pyx":2959 - * if val != val: - * continue - * val = high_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); - - /* "talib/func.pyx":2960 - * continue - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":2961 - * val = high_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = low_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":2960 - * continue - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - } - - /* "talib/func.pyx":2962 - * if val != val: - * continue - * val = low_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); - - /* "talib/func.pyx":2963 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":2964 - * val = low_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = close_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":2963 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - } - - /* "talib/func.pyx":2965 - * if val != val: - * continue - * val = close_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); - - /* "talib/func.pyx":2966 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":2967 - * val = close_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":2966 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":2968 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":2969 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L19_break; - __pyx_L18_continue:; - } - /*else*/ { - - /* "talib/func.pyx":2971 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLEVENINGDOJISTAR_Lookback( penetration ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__363, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2971, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 2971, __pyx_L1_error) - } - __pyx_L19_break:; - - /* "talib/func.pyx":2972 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_CDLEVENINGDOJISTAR_Lookback( penetration ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":2973 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLEVENINGDOJISTAR_Lookback( penetration ) # <<<<<<<<<<<<<< - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_CDLEVENINGDOJISTAR_Lookback(__pyx_v_penetration)); - - /* "talib/func.pyx":2974 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLEVENINGDOJISTAR_Lookback( penetration ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2974, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 2974, __pyx_L1_error) - __pyx_v_outinteger = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":2975 - * lookback = begidx + lib.TA_CDLEVENINGDOJISTAR_Lookback( penetration ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 - */ - __pyx_v_outinteger_data = ((int *)__pyx_v_outinteger->data); - - /* "talib/func.pyx":2976 - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLEVENINGDOJISTAR( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , penetration , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":2977 - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 # <<<<<<<<<<<<<< - * retCode = lib.TA_CDLEVENINGDOJISTAR( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , penetration , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _ta_check_success("TA_CDLEVENINGDOJISTAR", retCode) - */ - (__pyx_v_outinteger_data[__pyx_v_i]) = 0; - } - - /* "talib/func.pyx":2978 - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLEVENINGDOJISTAR( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , penetration , &outbegidx , &outnbelement , (outinteger_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_CDLEVENINGDOJISTAR", retCode) - * return outinteger - */ - __pyx_v_retCode = TA_CDLEVENINGDOJISTAR(0, __pyx_v_endidx, ((double *)(__pyx_v_open_data + __pyx_v_begidx)), ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), __pyx_v_penetration, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outinteger_data + __pyx_v_lookback))); - - /* "talib/func.pyx":2979 - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLEVENINGDOJISTAR( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , penetration , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _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, 2979, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":2980 - * retCode = lib.TA_CDLEVENINGDOJISTAR( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , penetration , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _ta_check_success("TA_CDLEVENINGDOJISTAR", retCode) - * return outinteger # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outinteger)); - __pyx_r = ((PyObject *)__pyx_v_outinteger); - goto __pyx_L0; - - /* "talib/func.pyx":2894 - * @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.func.CDLEVENINGDOJISTAR", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outinteger); - __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/func.pyx":2984 - * @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_4func_75CDLEVENINGSTAR(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_75CDLEVENINGSTAR = {"CDLEVENINGSTAR", (PyCFunction)__pyx_pw_5talib_4func_75CDLEVENINGSTAR, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_74CDLEVENINGSTAR}; -static PyObject *__pyx_pw_5talib_4func_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, 2984, __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, 2984, __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, 2984, __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, 2984, __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, 2984, __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, 2984, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 2984, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 2984, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 2984, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 2984, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_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; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - 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; - PyArrayObject *__pyx_v_outinteger = 0; - int *__pyx_v_outinteger_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __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/func.pyx":3009 - * np.ndarray outinteger - * int* outinteger_data - * 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/func.pyx":3010 - * int* outinteger_data - * 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__364, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3010, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 3010, __pyx_L1_error) - - /* "talib/func.pyx":3009 - * np.ndarray outinteger - * int* outinteger_data - * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("open is not double") - * if open.ndim != 1: - */ - } - - /* "talib/func.pyx":3011 - * 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/func.pyx":3012 - * 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__365, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3012, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 3012, __pyx_L1_error) - - /* "talib/func.pyx":3011 - * 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/func.pyx":3013 - * 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 = open.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":3014 - * raise Exception("open has wrong dimensions") - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< - * open_data = 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, 3014, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3014, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":3013 - * 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 = open.data - */ - } - - /* "talib/func.pyx":3015 - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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/func.pyx":3016 - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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/func.pyx":3017 - * open_data = 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__366, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3017, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 3017, __pyx_L1_error) - - /* "talib/func.pyx":3016 - * open = PyArray_GETCONTIGUOUS(open) - * open_data = open.data - * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("high is not double") - * if high.ndim != 1: - */ - } - - /* "talib/func.pyx":3018 - * 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/func.pyx":3019 - * raise 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__367, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3019, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 3019, __pyx_L1_error) - - /* "talib/func.pyx":3018 - * 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/func.pyx":3020 - * 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 = high.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":3021 - * raise Exception("high has wrong dimensions") - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< - * high_data = 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, 3021, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3021, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":3020 - * 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 = high.data - */ - } - - /* "talib/func.pyx":3022 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":3023 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":3024 - * high_data = 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__368, 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/func.pyx":3023 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = high.data - * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("low is not double") - * if low.ndim != 1: - */ - } - - /* "talib/func.pyx":3025 - * 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/func.pyx":3026 - * raise 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__369, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3026, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 3026, __pyx_L1_error) - - /* "talib/func.pyx":3025 - * 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/func.pyx":3027 - * 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 = low.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":3028 - * raise Exception("low has wrong dimensions") - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< - * low_data = 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, 3028, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3028, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":3027 - * 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 = low.data - */ - } - - /* "talib/func.pyx":3029 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":3030 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":3031 - * low_data = 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__370, 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/func.pyx":3030 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = low.data - * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("close is not double") - * if close.ndim != 1: - */ - } - - /* "talib/func.pyx":3032 - * 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/func.pyx":3033 - * raise 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__371, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3033, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 3033, __pyx_L1_error) - - /* "talib/func.pyx":3032 - * 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/func.pyx":3034 - * 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 = close.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":3035 - * raise Exception("close has wrong dimensions") - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< - * close_data = close.data - * length = open.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3035, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3035, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":3034 - * 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 = close.data - */ - } - - /* "talib/func.pyx":3036 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = close.data # <<<<<<<<<<<<<< - * length = open.shape[0] - * if length != high.shape[0]: - */ - __pyx_v_close_data = ((double *)__pyx_v_close->data); - - /* "talib/func.pyx":3037 - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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/func.pyx":3038 - * close_data = 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/func.pyx":3039 - * 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__372, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3039, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 3039, __pyx_L1_error) - - /* "talib/func.pyx":3038 - * close_data = close.data - * length = open.shape[0] - * if length != high.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * if length != low.shape[0]: - */ - } - - /* "talib/func.pyx":3040 - * 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/func.pyx":3041 - * 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__373, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3041, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 3041, __pyx_L1_error) - - /* "talib/func.pyx":3040 - * 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/func.pyx":3042 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":3043 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__374, 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/func.pyx":3042 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - } - - /* "talib/func.pyx":3044 - * if length != close.shape[0]: - * raise Exception("input lengths are different") - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = open_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":3045 - * raise Exception("input lengths are different") - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = open_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":3046 - * begidx = 0 - * for i from 0 <= i < length: - * val = open_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_open_data[__pyx_v_i]); - - /* "talib/func.pyx":3047 - * for i from 0 <= i < length: - * val = open_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = high_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":3048 - * val = open_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = high_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":3047 - * for i from 0 <= i < length: - * val = open_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = high_data[i] - */ - } - - /* "talib/func.pyx":3049 - * if val != val: - * continue - * val = high_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); - - /* "talib/func.pyx":3050 - * continue - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":3051 - * val = high_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = low_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":3050 - * continue - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - } - - /* "talib/func.pyx":3052 - * if val != val: - * continue - * val = low_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); - - /* "talib/func.pyx":3053 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":3054 - * val = low_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = close_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":3053 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - } - - /* "talib/func.pyx":3055 - * if val != val: - * continue - * val = close_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); - - /* "talib/func.pyx":3056 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":3057 - * val = close_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":3056 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":3058 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":3059 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L19_break; - __pyx_L18_continue:; - } - /*else*/ { - - /* "talib/func.pyx":3061 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLEVENINGSTAR_Lookback( penetration ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__375, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3061, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 3061, __pyx_L1_error) - } - __pyx_L19_break:; - - /* "talib/func.pyx":3062 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_CDLEVENINGSTAR_Lookback( penetration ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":3063 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLEVENINGSTAR_Lookback( penetration ) # <<<<<<<<<<<<<< - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_CDLEVENINGSTAR_Lookback(__pyx_v_penetration)); - - /* "talib/func.pyx":3064 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLEVENINGSTAR_Lookback( penetration ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3064, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3064, __pyx_L1_error) - __pyx_v_outinteger = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":3065 - * lookback = begidx + lib.TA_CDLEVENINGSTAR_Lookback( penetration ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 - */ - __pyx_v_outinteger_data = ((int *)__pyx_v_outinteger->data); - - /* "talib/func.pyx":3066 - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLEVENINGSTAR( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , penetration , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":3067 - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 # <<<<<<<<<<<<<< - * retCode = lib.TA_CDLEVENINGSTAR( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , penetration , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _ta_check_success("TA_CDLEVENINGSTAR", retCode) - */ - (__pyx_v_outinteger_data[__pyx_v_i]) = 0; - } - - /* "talib/func.pyx":3068 - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLEVENINGSTAR( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , penetration , &outbegidx , &outnbelement , (outinteger_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_CDLEVENINGSTAR", retCode) - * return outinteger - */ - __pyx_v_retCode = TA_CDLEVENINGSTAR(0, __pyx_v_endidx, ((double *)(__pyx_v_open_data + __pyx_v_begidx)), ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), __pyx_v_penetration, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outinteger_data + __pyx_v_lookback))); - - /* "talib/func.pyx":3069 - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLEVENINGSTAR( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , penetration , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _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, 3069, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":3070 - * retCode = lib.TA_CDLEVENINGSTAR( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , penetration , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _ta_check_success("TA_CDLEVENINGSTAR", retCode) - * return outinteger # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outinteger)); - __pyx_r = ((PyObject *)__pyx_v_outinteger); - goto __pyx_L0; - - /* "talib/func.pyx":2984 - * @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.func.CDLEVENINGSTAR", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outinteger); - __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/func.pyx":3074 - * @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_4func_77CDLGAPSIDESIDEWHITE(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_77CDLGAPSIDESIDEWHITE = {"CDLGAPSIDESIDEWHITE", (PyCFunction)__pyx_pw_5talib_4func_77CDLGAPSIDESIDEWHITE, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_76CDLGAPSIDESIDEWHITE}; -static PyObject *__pyx_pw_5talib_4func_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, 3074, __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, 3074, __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, 3074, __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, 3074, __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, 3074, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 3074, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 3074, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 3074, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 3074, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_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; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - 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; - PyArrayObject *__pyx_v_outinteger = 0; - int *__pyx_v_outinteger_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __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/func.pyx":3097 - * np.ndarray outinteger - * int* outinteger_data - * 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/func.pyx":3098 - * int* outinteger_data - * 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__376, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3098, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 3098, __pyx_L1_error) - - /* "talib/func.pyx":3097 - * np.ndarray outinteger - * int* outinteger_data - * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("open is not double") - * if open.ndim != 1: - */ - } - - /* "talib/func.pyx":3099 - * 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/func.pyx":3100 - * 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__377, 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/func.pyx":3099 - * 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/func.pyx":3101 - * 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 = open.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":3102 - * raise Exception("open has wrong dimensions") - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< - * open_data = 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, 3102, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3102, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":3101 - * 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 = open.data - */ - } - - /* "talib/func.pyx":3103 - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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/func.pyx":3104 - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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/func.pyx":3105 - * open_data = 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__378, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3105, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 3105, __pyx_L1_error) - - /* "talib/func.pyx":3104 - * open = PyArray_GETCONTIGUOUS(open) - * open_data = open.data - * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("high is not double") - * if high.ndim != 1: - */ - } - - /* "talib/func.pyx":3106 - * 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/func.pyx":3107 - * raise 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__379, 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/func.pyx":3106 - * 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/func.pyx":3108 - * 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 = high.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":3109 - * raise Exception("high has wrong dimensions") - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< - * high_data = 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, 3109, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3109, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":3108 - * 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 = high.data - */ - } - - /* "talib/func.pyx":3110 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":3111 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":3112 - * high_data = 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__380, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3112, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 3112, __pyx_L1_error) - - /* "talib/func.pyx":3111 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = high.data - * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("low is not double") - * if low.ndim != 1: - */ - } - - /* "talib/func.pyx":3113 - * 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/func.pyx":3114 - * raise 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__381, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3114, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 3114, __pyx_L1_error) - - /* "talib/func.pyx":3113 - * 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/func.pyx":3115 - * 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 = low.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":3116 - * raise Exception("low has wrong dimensions") - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< - * low_data = 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, 3116, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3116, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":3115 - * 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 = low.data - */ - } - - /* "talib/func.pyx":3117 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":3118 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":3119 - * low_data = 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__382, 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/func.pyx":3118 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = low.data - * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("close is not double") - * if close.ndim != 1: - */ - } - - /* "talib/func.pyx":3120 - * 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/func.pyx":3121 - * raise 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__383, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3121, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 3121, __pyx_L1_error) - - /* "talib/func.pyx":3120 - * 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/func.pyx":3122 - * 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 = close.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":3123 - * raise Exception("close has wrong dimensions") - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< - * close_data = close.data - * length = open.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3123, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3123, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":3122 - * 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 = close.data - */ - } - - /* "talib/func.pyx":3124 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = close.data # <<<<<<<<<<<<<< - * length = open.shape[0] - * if length != high.shape[0]: - */ - __pyx_v_close_data = ((double *)__pyx_v_close->data); - - /* "talib/func.pyx":3125 - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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/func.pyx":3126 - * close_data = 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/func.pyx":3127 - * 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__384, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3127, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 3127, __pyx_L1_error) - - /* "talib/func.pyx":3126 - * close_data = close.data - * length = open.shape[0] - * if length != high.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * if length != low.shape[0]: - */ - } - - /* "talib/func.pyx":3128 - * 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/func.pyx":3129 - * 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__385, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3129, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 3129, __pyx_L1_error) - - /* "talib/func.pyx":3128 - * 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/func.pyx":3130 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":3131 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__386, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3131, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 3131, __pyx_L1_error) - - /* "talib/func.pyx":3130 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - } - - /* "talib/func.pyx":3132 - * if length != close.shape[0]: - * raise Exception("input lengths are different") - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = open_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":3133 - * raise Exception("input lengths are different") - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = open_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":3134 - * begidx = 0 - * for i from 0 <= i < length: - * val = open_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_open_data[__pyx_v_i]); - - /* "talib/func.pyx":3135 - * for i from 0 <= i < length: - * val = open_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = high_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":3136 - * val = open_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = high_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":3135 - * for i from 0 <= i < length: - * val = open_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = high_data[i] - */ - } - - /* "talib/func.pyx":3137 - * if val != val: - * continue - * val = high_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); - - /* "talib/func.pyx":3138 - * continue - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":3139 - * val = high_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = low_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":3138 - * continue - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - } - - /* "talib/func.pyx":3140 - * if val != val: - * continue - * val = low_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); - - /* "talib/func.pyx":3141 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":3142 - * val = low_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = close_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":3141 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - } - - /* "talib/func.pyx":3143 - * if val != val: - * continue - * val = close_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); - - /* "talib/func.pyx":3144 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":3145 - * val = close_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":3144 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":3146 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":3147 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L19_break; - __pyx_L18_continue:; - } - /*else*/ { - - /* "talib/func.pyx":3149 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLGAPSIDESIDEWHITE_Lookback( ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__387, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3149, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 3149, __pyx_L1_error) - } - __pyx_L19_break:; - - /* "talib/func.pyx":3150 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_CDLGAPSIDESIDEWHITE_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":3151 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLGAPSIDESIDEWHITE_Lookback( ) # <<<<<<<<<<<<<< - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_CDLGAPSIDESIDEWHITE_Lookback()); - - /* "talib/func.pyx":3152 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLGAPSIDESIDEWHITE_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3152, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3152, __pyx_L1_error) - __pyx_v_outinteger = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":3153 - * lookback = begidx + lib.TA_CDLGAPSIDESIDEWHITE_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 - */ - __pyx_v_outinteger_data = ((int *)__pyx_v_outinteger->data); - - /* "talib/func.pyx":3154 - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLGAPSIDESIDEWHITE( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":3155 - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 # <<<<<<<<<<<<<< - * retCode = lib.TA_CDLGAPSIDESIDEWHITE( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _ta_check_success("TA_CDLGAPSIDESIDEWHITE", retCode) - */ - (__pyx_v_outinteger_data[__pyx_v_i]) = 0; - } - - /* "talib/func.pyx":3156 - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLGAPSIDESIDEWHITE( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_CDLGAPSIDESIDEWHITE", retCode) - * return outinteger - */ - __pyx_v_retCode = TA_CDLGAPSIDESIDEWHITE(0, __pyx_v_endidx, ((double *)(__pyx_v_open_data + __pyx_v_begidx)), ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outinteger_data + __pyx_v_lookback))); - - /* "talib/func.pyx":3157 - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLGAPSIDESIDEWHITE( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _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, 3157, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":3158 - * retCode = lib.TA_CDLGAPSIDESIDEWHITE( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _ta_check_success("TA_CDLGAPSIDESIDEWHITE", retCode) - * return outinteger # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outinteger)); - __pyx_r = ((PyObject *)__pyx_v_outinteger); - goto __pyx_L0; - - /* "talib/func.pyx":3074 - * @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.func.CDLGAPSIDESIDEWHITE", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outinteger); - __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/func.pyx":3162 - * @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_4func_79CDLGRAVESTONEDOJI(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_79CDLGRAVESTONEDOJI = {"CDLGRAVESTONEDOJI", (PyCFunction)__pyx_pw_5talib_4func_79CDLGRAVESTONEDOJI, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_78CDLGRAVESTONEDOJI}; -static PyObject *__pyx_pw_5talib_4func_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, 3162, __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, 3162, __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, 3162, __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, 3162, __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, 3162, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 3162, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 3162, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 3162, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 3162, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_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; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - 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; - PyArrayObject *__pyx_v_outinteger = 0; - int *__pyx_v_outinteger_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __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/func.pyx":3185 - * np.ndarray outinteger - * int* outinteger_data - * 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/func.pyx":3186 - * int* outinteger_data - * 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__388, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3186, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 3186, __pyx_L1_error) - - /* "talib/func.pyx":3185 - * np.ndarray outinteger - * int* outinteger_data - * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("open is not double") - * if open.ndim != 1: - */ - } - - /* "talib/func.pyx":3187 - * 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/func.pyx":3188 - * 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__389, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3188, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 3188, __pyx_L1_error) - - /* "talib/func.pyx":3187 - * 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/func.pyx":3189 - * 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 = open.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":3190 - * raise Exception("open has wrong dimensions") - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< - * open_data = 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, 3190, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3190, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":3189 - * 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 = open.data - */ - } - - /* "talib/func.pyx":3191 - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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/func.pyx":3192 - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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/func.pyx":3193 - * open_data = 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__390, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3193, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 3193, __pyx_L1_error) - - /* "talib/func.pyx":3192 - * open = PyArray_GETCONTIGUOUS(open) - * open_data = open.data - * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("high is not double") - * if high.ndim != 1: - */ - } - - /* "talib/func.pyx":3194 - * 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/func.pyx":3195 - * raise 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__391, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3195, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 3195, __pyx_L1_error) - - /* "talib/func.pyx":3194 - * 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/func.pyx":3196 - * 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 = high.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":3197 - * raise Exception("high has wrong dimensions") - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< - * high_data = 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, 3197, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3197, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":3196 - * 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 = high.data - */ - } - - /* "talib/func.pyx":3198 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":3199 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":3200 - * high_data = 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__392, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3200, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 3200, __pyx_L1_error) - - /* "talib/func.pyx":3199 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = high.data - * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("low is not double") - * if low.ndim != 1: - */ - } - - /* "talib/func.pyx":3201 - * 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/func.pyx":3202 - * raise 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__393, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3202, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 3202, __pyx_L1_error) - - /* "talib/func.pyx":3201 - * 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/func.pyx":3203 - * 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 = low.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":3204 - * raise Exception("low has wrong dimensions") - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< - * low_data = 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, 3204, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3204, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":3203 - * 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 = low.data - */ - } - - /* "talib/func.pyx":3205 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":3206 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":3207 - * low_data = 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__394, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3207, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 3207, __pyx_L1_error) - - /* "talib/func.pyx":3206 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = low.data - * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("close is not double") - * if close.ndim != 1: - */ - } - - /* "talib/func.pyx":3208 - * 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/func.pyx":3209 - * raise 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__395, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3209, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 3209, __pyx_L1_error) - - /* "talib/func.pyx":3208 - * 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/func.pyx":3210 - * 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 = close.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":3211 - * raise Exception("close has wrong dimensions") - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< - * close_data = close.data - * length = open.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3211, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3211, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":3210 - * 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 = close.data - */ - } - - /* "talib/func.pyx":3212 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = close.data # <<<<<<<<<<<<<< - * length = open.shape[0] - * if length != high.shape[0]: - */ - __pyx_v_close_data = ((double *)__pyx_v_close->data); - - /* "talib/func.pyx":3213 - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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/func.pyx":3214 - * close_data = 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/func.pyx":3215 - * 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__396, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3215, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 3215, __pyx_L1_error) - - /* "talib/func.pyx":3214 - * close_data = close.data - * length = open.shape[0] - * if length != high.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * if length != low.shape[0]: - */ - } - - /* "talib/func.pyx":3216 - * 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/func.pyx":3217 - * 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__397, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3217, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 3217, __pyx_L1_error) - - /* "talib/func.pyx":3216 - * 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/func.pyx":3218 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":3219 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__398, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3219, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 3219, __pyx_L1_error) - - /* "talib/func.pyx":3218 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - } - - /* "talib/func.pyx":3220 - * if length != close.shape[0]: - * raise Exception("input lengths are different") - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = open_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":3221 - * raise Exception("input lengths are different") - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = open_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":3222 - * begidx = 0 - * for i from 0 <= i < length: - * val = open_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_open_data[__pyx_v_i]); - - /* "talib/func.pyx":3223 - * for i from 0 <= i < length: - * val = open_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = high_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":3224 - * val = open_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = high_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":3223 - * for i from 0 <= i < length: - * val = open_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = high_data[i] - */ - } - - /* "talib/func.pyx":3225 - * if val != val: - * continue - * val = high_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); - - /* "talib/func.pyx":3226 - * continue - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":3227 - * val = high_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = low_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":3226 - * continue - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - } - - /* "talib/func.pyx":3228 - * if val != val: - * continue - * val = low_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); - - /* "talib/func.pyx":3229 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":3230 - * val = low_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = close_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":3229 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - } - - /* "talib/func.pyx":3231 - * if val != val: - * continue - * val = close_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); - - /* "talib/func.pyx":3232 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":3233 - * val = close_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":3232 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":3234 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":3235 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L19_break; - __pyx_L18_continue:; - } - /*else*/ { - - /* "talib/func.pyx":3237 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLGRAVESTONEDOJI_Lookback( ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__399, 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) - } - __pyx_L19_break:; - - /* "talib/func.pyx":3238 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_CDLGRAVESTONEDOJI_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":3239 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLGRAVESTONEDOJI_Lookback( ) # <<<<<<<<<<<<<< - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_CDLGRAVESTONEDOJI_Lookback()); - - /* "talib/func.pyx":3240 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLGRAVESTONEDOJI_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3240, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3240, __pyx_L1_error) - __pyx_v_outinteger = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":3241 - * lookback = begidx + lib.TA_CDLGRAVESTONEDOJI_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 - */ - __pyx_v_outinteger_data = ((int *)__pyx_v_outinteger->data); - - /* "talib/func.pyx":3242 - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLGRAVESTONEDOJI( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":3243 - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 # <<<<<<<<<<<<<< - * retCode = lib.TA_CDLGRAVESTONEDOJI( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _ta_check_success("TA_CDLGRAVESTONEDOJI", retCode) - */ - (__pyx_v_outinteger_data[__pyx_v_i]) = 0; - } - - /* "talib/func.pyx":3244 - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLGRAVESTONEDOJI( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_CDLGRAVESTONEDOJI", retCode) - * return outinteger - */ - __pyx_v_retCode = TA_CDLGRAVESTONEDOJI(0, __pyx_v_endidx, ((double *)(__pyx_v_open_data + __pyx_v_begidx)), ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outinteger_data + __pyx_v_lookback))); - - /* "talib/func.pyx":3245 - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLGRAVESTONEDOJI( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _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, 3245, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":3246 - * retCode = lib.TA_CDLGRAVESTONEDOJI( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _ta_check_success("TA_CDLGRAVESTONEDOJI", retCode) - * return outinteger # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outinteger)); - __pyx_r = ((PyObject *)__pyx_v_outinteger); - goto __pyx_L0; - - /* "talib/func.pyx":3162 - * @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.func.CDLGRAVESTONEDOJI", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outinteger); - __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/func.pyx":3250 - * @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_4func_81CDLHAMMER(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_81CDLHAMMER = {"CDLHAMMER", (PyCFunction)__pyx_pw_5talib_4func_81CDLHAMMER, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_80CDLHAMMER}; -static PyObject *__pyx_pw_5talib_4func_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, 3250, __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, 3250, __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, 3250, __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, 3250, __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, 3250, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 3250, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 3250, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 3250, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 3250, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_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; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - 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; - PyArrayObject *__pyx_v_outinteger = 0; - int *__pyx_v_outinteger_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __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/func.pyx":3273 - * np.ndarray outinteger - * int* outinteger_data - * 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/func.pyx":3274 - * int* outinteger_data - * 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__400, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3274, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 3274, __pyx_L1_error) - - /* "talib/func.pyx":3273 - * np.ndarray outinteger - * int* outinteger_data - * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("open is not double") - * if open.ndim != 1: - */ - } - - /* "talib/func.pyx":3275 - * 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/func.pyx":3276 - * 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__401, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3276, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 3276, __pyx_L1_error) - - /* "talib/func.pyx":3275 - * 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/func.pyx":3277 - * 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 = open.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":3278 - * raise Exception("open has wrong dimensions") - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< - * open_data = 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, 3278, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3278, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":3277 - * 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 = open.data - */ - } - - /* "talib/func.pyx":3279 - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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/func.pyx":3280 - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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/func.pyx":3281 - * open_data = 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__402, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3281, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 3281, __pyx_L1_error) - - /* "talib/func.pyx":3280 - * open = PyArray_GETCONTIGUOUS(open) - * open_data = open.data - * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("high is not double") - * if high.ndim != 1: - */ - } - - /* "talib/func.pyx":3282 - * 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/func.pyx":3283 - * raise 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__403, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3283, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 3283, __pyx_L1_error) - - /* "talib/func.pyx":3282 - * 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/func.pyx":3284 - * 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 = high.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":3285 - * raise Exception("high has wrong dimensions") - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< - * high_data = 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, 3285, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3285, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":3284 - * 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 = high.data - */ - } - - /* "talib/func.pyx":3286 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":3287 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":3288 - * high_data = 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__404, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3288, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 3288, __pyx_L1_error) - - /* "talib/func.pyx":3287 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = high.data - * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("low is not double") - * if low.ndim != 1: - */ - } - - /* "talib/func.pyx":3289 - * 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/func.pyx":3290 - * raise 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__405, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3290, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 3290, __pyx_L1_error) - - /* "talib/func.pyx":3289 - * 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/func.pyx":3291 - * 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 = low.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":3292 - * raise Exception("low has wrong dimensions") - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< - * low_data = 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, 3292, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3292, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":3291 - * 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 = low.data - */ - } - - /* "talib/func.pyx":3293 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":3294 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":3295 - * low_data = 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__406, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3295, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 3295, __pyx_L1_error) - - /* "talib/func.pyx":3294 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = low.data - * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("close is not double") - * if close.ndim != 1: - */ - } - - /* "talib/func.pyx":3296 - * 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/func.pyx":3297 - * raise 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__407, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3297, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 3297, __pyx_L1_error) - - /* "talib/func.pyx":3296 - * 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/func.pyx":3298 - * 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 = close.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":3299 - * raise Exception("close has wrong dimensions") - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< - * close_data = close.data - * length = open.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3299, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3299, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":3298 - * 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 = close.data - */ - } - - /* "talib/func.pyx":3300 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = close.data # <<<<<<<<<<<<<< - * length = open.shape[0] - * if length != high.shape[0]: - */ - __pyx_v_close_data = ((double *)__pyx_v_close->data); - - /* "talib/func.pyx":3301 - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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/func.pyx":3302 - * close_data = 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/func.pyx":3303 - * 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__408, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3303, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 3303, __pyx_L1_error) - - /* "talib/func.pyx":3302 - * close_data = close.data - * length = open.shape[0] - * if length != high.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * if length != low.shape[0]: - */ - } - - /* "talib/func.pyx":3304 - * 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/func.pyx":3305 - * 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__409, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3305, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 3305, __pyx_L1_error) - - /* "talib/func.pyx":3304 - * 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/func.pyx":3306 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":3307 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__410, 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/func.pyx":3306 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - } - - /* "talib/func.pyx":3308 - * if length != close.shape[0]: - * raise Exception("input lengths are different") - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = open_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":3309 - * raise Exception("input lengths are different") - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = open_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":3310 - * begidx = 0 - * for i from 0 <= i < length: - * val = open_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_open_data[__pyx_v_i]); - - /* "talib/func.pyx":3311 - * for i from 0 <= i < length: - * val = open_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = high_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":3312 - * val = open_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = high_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":3311 - * for i from 0 <= i < length: - * val = open_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = high_data[i] - */ - } - - /* "talib/func.pyx":3313 - * if val != val: - * continue - * val = high_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); - - /* "talib/func.pyx":3314 - * continue - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":3315 - * val = high_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = low_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":3314 - * continue - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - } - - /* "talib/func.pyx":3316 - * if val != val: - * continue - * val = low_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); - - /* "talib/func.pyx":3317 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":3318 - * val = low_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = close_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":3317 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - } - - /* "talib/func.pyx":3319 - * if val != val: - * continue - * val = close_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); - - /* "talib/func.pyx":3320 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":3321 - * val = close_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":3320 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":3322 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":3323 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L19_break; - __pyx_L18_continue:; - } - /*else*/ { - - /* "talib/func.pyx":3325 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLHAMMER_Lookback( ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__411, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3325, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 3325, __pyx_L1_error) - } - __pyx_L19_break:; - - /* "talib/func.pyx":3326 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_CDLHAMMER_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":3327 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLHAMMER_Lookback( ) # <<<<<<<<<<<<<< - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_CDLHAMMER_Lookback()); - - /* "talib/func.pyx":3328 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLHAMMER_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3328, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3328, __pyx_L1_error) - __pyx_v_outinteger = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":3329 - * lookback = begidx + lib.TA_CDLHAMMER_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 - */ - __pyx_v_outinteger_data = ((int *)__pyx_v_outinteger->data); - - /* "talib/func.pyx":3330 - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLHAMMER( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":3331 - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 # <<<<<<<<<<<<<< - * retCode = lib.TA_CDLHAMMER( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _ta_check_success("TA_CDLHAMMER", retCode) - */ - (__pyx_v_outinteger_data[__pyx_v_i]) = 0; - } - - /* "talib/func.pyx":3332 - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLHAMMER( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_CDLHAMMER", retCode) - * return outinteger - */ - __pyx_v_retCode = TA_CDLHAMMER(0, __pyx_v_endidx, ((double *)(__pyx_v_open_data + __pyx_v_begidx)), ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outinteger_data + __pyx_v_lookback))); - - /* "talib/func.pyx":3333 - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLHAMMER( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _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, 3333, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":3334 - * retCode = lib.TA_CDLHAMMER( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _ta_check_success("TA_CDLHAMMER", retCode) - * return outinteger # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outinteger)); - __pyx_r = ((PyObject *)__pyx_v_outinteger); - goto __pyx_L0; - - /* "talib/func.pyx":3250 - * @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.func.CDLHAMMER", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outinteger); - __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/func.pyx":3338 - * @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_4func_83CDLHANGINGMAN(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_83CDLHANGINGMAN = {"CDLHANGINGMAN", (PyCFunction)__pyx_pw_5talib_4func_83CDLHANGINGMAN, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_82CDLHANGINGMAN}; -static PyObject *__pyx_pw_5talib_4func_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, 3338, __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, 3338, __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, 3338, __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, 3338, __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, 3338, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 3338, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 3338, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 3338, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 3338, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_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; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - 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; - PyArrayObject *__pyx_v_outinteger = 0; - int *__pyx_v_outinteger_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __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/func.pyx":3361 - * np.ndarray outinteger - * int* outinteger_data - * 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/func.pyx":3362 - * int* outinteger_data - * 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__412, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3362, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 3362, __pyx_L1_error) - - /* "talib/func.pyx":3361 - * np.ndarray outinteger - * int* outinteger_data - * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("open is not double") - * if open.ndim != 1: - */ - } - - /* "talib/func.pyx":3363 - * 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/func.pyx":3364 - * 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__413, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3364, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 3364, __pyx_L1_error) - - /* "talib/func.pyx":3363 - * 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/func.pyx":3365 - * 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 = open.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":3366 - * raise Exception("open has wrong dimensions") - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< - * open_data = 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, 3366, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3366, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":3365 - * 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 = open.data - */ - } - - /* "talib/func.pyx":3367 - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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/func.pyx":3368 - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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/func.pyx":3369 - * open_data = 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__414, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3369, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 3369, __pyx_L1_error) - - /* "talib/func.pyx":3368 - * open = PyArray_GETCONTIGUOUS(open) - * open_data = open.data - * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("high is not double") - * if high.ndim != 1: - */ - } - - /* "talib/func.pyx":3370 - * 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/func.pyx":3371 - * raise 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__415, 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/func.pyx":3370 - * 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/func.pyx":3372 - * 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 = high.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":3373 - * raise Exception("high has wrong dimensions") - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< - * high_data = 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, 3373, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3373, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":3372 - * 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 = high.data - */ - } - - /* "talib/func.pyx":3374 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":3375 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":3376 - * high_data = 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__416, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3376, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 3376, __pyx_L1_error) - - /* "talib/func.pyx":3375 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = high.data - * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("low is not double") - * if low.ndim != 1: - */ - } - - /* "talib/func.pyx":3377 - * 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/func.pyx":3378 - * raise 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__417, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3378, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 3378, __pyx_L1_error) - - /* "talib/func.pyx":3377 - * 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/func.pyx":3379 - * 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 = low.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":3380 - * raise Exception("low has wrong dimensions") - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< - * low_data = 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, 3380, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3380, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":3379 - * 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 = low.data - */ - } - - /* "talib/func.pyx":3381 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":3382 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":3383 - * low_data = 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__418, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3383, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 3383, __pyx_L1_error) - - /* "talib/func.pyx":3382 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = low.data - * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("close is not double") - * if close.ndim != 1: - */ - } - - /* "talib/func.pyx":3384 - * 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/func.pyx":3385 - * raise 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__419, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3385, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 3385, __pyx_L1_error) - - /* "talib/func.pyx":3384 - * 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/func.pyx":3386 - * 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 = close.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":3387 - * raise Exception("close has wrong dimensions") - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< - * close_data = close.data - * length = open.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3387, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3387, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":3386 - * 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 = close.data - */ - } - - /* "talib/func.pyx":3388 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = close.data # <<<<<<<<<<<<<< - * length = open.shape[0] - * if length != high.shape[0]: - */ - __pyx_v_close_data = ((double *)__pyx_v_close->data); - - /* "talib/func.pyx":3389 - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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/func.pyx":3390 - * close_data = 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/func.pyx":3391 - * 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__420, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3391, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 3391, __pyx_L1_error) - - /* "talib/func.pyx":3390 - * close_data = close.data - * length = open.shape[0] - * if length != high.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * if length != low.shape[0]: - */ - } - - /* "talib/func.pyx":3392 - * 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/func.pyx":3393 - * 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__421, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3393, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 3393, __pyx_L1_error) - - /* "talib/func.pyx":3392 - * 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/func.pyx":3394 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":3395 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__422, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3395, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 3395, __pyx_L1_error) - - /* "talib/func.pyx":3394 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - } - - /* "talib/func.pyx":3396 - * if length != close.shape[0]: - * raise Exception("input lengths are different") - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = open_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":3397 - * raise Exception("input lengths are different") - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = open_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":3398 - * begidx = 0 - * for i from 0 <= i < length: - * val = open_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_open_data[__pyx_v_i]); - - /* "talib/func.pyx":3399 - * for i from 0 <= i < length: - * val = open_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = high_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":3400 - * val = open_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = high_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":3399 - * for i from 0 <= i < length: - * val = open_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = high_data[i] - */ - } - - /* "talib/func.pyx":3401 - * if val != val: - * continue - * val = high_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); - - /* "talib/func.pyx":3402 - * continue - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":3403 - * val = high_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = low_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":3402 - * continue - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - } - - /* "talib/func.pyx":3404 - * if val != val: - * continue - * val = low_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); - - /* "talib/func.pyx":3405 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":3406 - * val = low_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = close_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":3405 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - } - - /* "talib/func.pyx":3407 - * if val != val: - * continue - * val = close_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); - - /* "talib/func.pyx":3408 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":3409 - * val = close_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":3408 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":3410 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":3411 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L19_break; - __pyx_L18_continue:; - } - /*else*/ { - - /* "talib/func.pyx":3413 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLHANGINGMAN_Lookback( ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__423, 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) - } - __pyx_L19_break:; - - /* "talib/func.pyx":3414 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_CDLHANGINGMAN_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":3415 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLHANGINGMAN_Lookback( ) # <<<<<<<<<<<<<< - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_CDLHANGINGMAN_Lookback()); - - /* "talib/func.pyx":3416 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLHANGINGMAN_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3416, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3416, __pyx_L1_error) - __pyx_v_outinteger = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":3417 - * lookback = begidx + lib.TA_CDLHANGINGMAN_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 - */ - __pyx_v_outinteger_data = ((int *)__pyx_v_outinteger->data); - - /* "talib/func.pyx":3418 - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLHANGINGMAN( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":3419 - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 # <<<<<<<<<<<<<< - * retCode = lib.TA_CDLHANGINGMAN( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _ta_check_success("TA_CDLHANGINGMAN", retCode) - */ - (__pyx_v_outinteger_data[__pyx_v_i]) = 0; - } - - /* "talib/func.pyx":3420 - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLHANGINGMAN( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_CDLHANGINGMAN", retCode) - * return outinteger - */ - __pyx_v_retCode = TA_CDLHANGINGMAN(0, __pyx_v_endidx, ((double *)(__pyx_v_open_data + __pyx_v_begidx)), ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outinteger_data + __pyx_v_lookback))); - - /* "talib/func.pyx":3421 - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLHANGINGMAN( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _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, 3421, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":3422 - * retCode = lib.TA_CDLHANGINGMAN( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _ta_check_success("TA_CDLHANGINGMAN", retCode) - * return outinteger # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outinteger)); - __pyx_r = ((PyObject *)__pyx_v_outinteger); - goto __pyx_L0; - - /* "talib/func.pyx":3338 - * @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.func.CDLHANGINGMAN", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outinteger); - __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/func.pyx":3426 - * @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_4func_85CDLHARAMI(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_85CDLHARAMI = {"CDLHARAMI", (PyCFunction)__pyx_pw_5talib_4func_85CDLHARAMI, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_84CDLHARAMI}; -static PyObject *__pyx_pw_5talib_4func_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, 3426, __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, 3426, __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, 3426, __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, 3426, __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, 3426, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 3426, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 3426, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 3426, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 3426, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_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; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - 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; - PyArrayObject *__pyx_v_outinteger = 0; - int *__pyx_v_outinteger_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __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/func.pyx":3449 - * np.ndarray outinteger - * int* outinteger_data - * 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/func.pyx":3450 - * int* outinteger_data - * 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__424, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3450, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 3450, __pyx_L1_error) - - /* "talib/func.pyx":3449 - * np.ndarray outinteger - * int* outinteger_data - * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("open is not double") - * if open.ndim != 1: - */ - } - - /* "talib/func.pyx":3451 - * 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/func.pyx":3452 - * 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__425, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3452, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 3452, __pyx_L1_error) - - /* "talib/func.pyx":3451 - * 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/func.pyx":3453 - * 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 = open.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":3454 - * raise Exception("open has wrong dimensions") - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< - * open_data = 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, 3454, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3454, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":3453 - * 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 = open.data - */ - } - - /* "talib/func.pyx":3455 - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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/func.pyx":3456 - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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/func.pyx":3457 - * open_data = 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__426, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3457, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 3457, __pyx_L1_error) - - /* "talib/func.pyx":3456 - * open = PyArray_GETCONTIGUOUS(open) - * open_data = open.data - * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("high is not double") - * if high.ndim != 1: - */ - } - - /* "talib/func.pyx":3458 - * 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/func.pyx":3459 - * raise 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__427, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3459, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 3459, __pyx_L1_error) - - /* "talib/func.pyx":3458 - * 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/func.pyx":3460 - * 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 = high.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":3461 - * raise Exception("high has wrong dimensions") - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< - * high_data = 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, 3461, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3461, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":3460 - * 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 = high.data - */ - } - - /* "talib/func.pyx":3462 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":3463 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":3464 - * high_data = 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__428, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3464, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 3464, __pyx_L1_error) - - /* "talib/func.pyx":3463 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = high.data - * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("low is not double") - * if low.ndim != 1: - */ - } - - /* "talib/func.pyx":3465 - * 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/func.pyx":3466 - * raise 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__429, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3466, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 3466, __pyx_L1_error) - - /* "talib/func.pyx":3465 - * 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/func.pyx":3467 - * 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 = low.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":3468 - * raise Exception("low has wrong dimensions") - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< - * low_data = 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, 3468, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3468, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":3467 - * 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 = low.data - */ - } - - /* "talib/func.pyx":3469 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":3470 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":3471 - * low_data = 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__430, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3471, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 3471, __pyx_L1_error) - - /* "talib/func.pyx":3470 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = low.data - * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("close is not double") - * if close.ndim != 1: - */ - } - - /* "talib/func.pyx":3472 - * 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/func.pyx":3473 - * raise 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__431, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3473, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 3473, __pyx_L1_error) - - /* "talib/func.pyx":3472 - * 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/func.pyx":3474 - * 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 = close.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":3475 - * raise Exception("close has wrong dimensions") - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< - * close_data = close.data - * length = open.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3475, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3475, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":3474 - * 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 = close.data - */ - } - - /* "talib/func.pyx":3476 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = close.data # <<<<<<<<<<<<<< - * length = open.shape[0] - * if length != high.shape[0]: - */ - __pyx_v_close_data = ((double *)__pyx_v_close->data); - - /* "talib/func.pyx":3477 - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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/func.pyx":3478 - * close_data = 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/func.pyx":3479 - * 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__432, 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/func.pyx":3478 - * close_data = close.data - * length = open.shape[0] - * if length != high.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * if length != low.shape[0]: - */ - } - - /* "talib/func.pyx":3480 - * 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/func.pyx":3481 - * 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__433, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3481, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 3481, __pyx_L1_error) - - /* "talib/func.pyx":3480 - * 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/func.pyx":3482 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":3483 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__434, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3483, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 3483, __pyx_L1_error) - - /* "talib/func.pyx":3482 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - } - - /* "talib/func.pyx":3484 - * if length != close.shape[0]: - * raise Exception("input lengths are different") - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = open_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":3485 - * raise Exception("input lengths are different") - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = open_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":3486 - * begidx = 0 - * for i from 0 <= i < length: - * val = open_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_open_data[__pyx_v_i]); - - /* "talib/func.pyx":3487 - * for i from 0 <= i < length: - * val = open_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = high_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":3488 - * val = open_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = high_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":3487 - * for i from 0 <= i < length: - * val = open_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = high_data[i] - */ - } - - /* "talib/func.pyx":3489 - * if val != val: - * continue - * val = high_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); - - /* "talib/func.pyx":3490 - * continue - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":3491 - * val = high_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = low_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":3490 - * continue - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - } - - /* "talib/func.pyx":3492 - * if val != val: - * continue - * val = low_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); - - /* "talib/func.pyx":3493 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":3494 - * val = low_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = close_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":3493 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - } - - /* "talib/func.pyx":3495 - * if val != val: - * continue - * val = close_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); - - /* "talib/func.pyx":3496 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":3497 - * val = close_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":3496 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":3498 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":3499 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L19_break; - __pyx_L18_continue:; - } - /*else*/ { - - /* "talib/func.pyx":3501 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLHARAMI_Lookback( ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__435, 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) - } - __pyx_L19_break:; - - /* "talib/func.pyx":3502 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_CDLHARAMI_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":3503 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLHARAMI_Lookback( ) # <<<<<<<<<<<<<< - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_CDLHARAMI_Lookback()); - - /* "talib/func.pyx":3504 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLHARAMI_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3504, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3504, __pyx_L1_error) - __pyx_v_outinteger = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":3505 - * lookback = begidx + lib.TA_CDLHARAMI_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 - */ - __pyx_v_outinteger_data = ((int *)__pyx_v_outinteger->data); - - /* "talib/func.pyx":3506 - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLHARAMI( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":3507 - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 # <<<<<<<<<<<<<< - * retCode = lib.TA_CDLHARAMI( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _ta_check_success("TA_CDLHARAMI", retCode) - */ - (__pyx_v_outinteger_data[__pyx_v_i]) = 0; - } - - /* "talib/func.pyx":3508 - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLHARAMI( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_CDLHARAMI", retCode) - * return outinteger - */ - __pyx_v_retCode = TA_CDLHARAMI(0, __pyx_v_endidx, ((double *)(__pyx_v_open_data + __pyx_v_begidx)), ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outinteger_data + __pyx_v_lookback))); - - /* "talib/func.pyx":3509 - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLHARAMI( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _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, 3509, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":3510 - * retCode = lib.TA_CDLHARAMI( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _ta_check_success("TA_CDLHARAMI", retCode) - * return outinteger # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outinteger)); - __pyx_r = ((PyObject *)__pyx_v_outinteger); - goto __pyx_L0; - - /* "talib/func.pyx":3426 - * @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.func.CDLHARAMI", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outinteger); - __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/func.pyx":3514 - * @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_4func_87CDLHARAMICROSS(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_87CDLHARAMICROSS = {"CDLHARAMICROSS", (PyCFunction)__pyx_pw_5talib_4func_87CDLHARAMICROSS, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_86CDLHARAMICROSS}; -static PyObject *__pyx_pw_5talib_4func_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, 3514, __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, 3514, __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, 3514, __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, 3514, __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, 3514, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 3514, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 3514, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 3514, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 3514, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_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; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - 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; - PyArrayObject *__pyx_v_outinteger = 0; - int *__pyx_v_outinteger_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __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/func.pyx":3537 - * np.ndarray outinteger - * int* outinteger_data - * 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/func.pyx":3538 - * int* outinteger_data - * 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__436, 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/func.pyx":3537 - * np.ndarray outinteger - * int* outinteger_data - * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("open is not double") - * if open.ndim != 1: - */ - } - - /* "talib/func.pyx":3539 - * 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/func.pyx":3540 - * 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__437, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3540, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 3540, __pyx_L1_error) - - /* "talib/func.pyx":3539 - * 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/func.pyx":3541 - * 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 = open.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":3542 - * raise Exception("open has wrong dimensions") - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< - * open_data = 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, 3542, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3542, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":3541 - * 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 = open.data - */ - } - - /* "talib/func.pyx":3543 - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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/func.pyx":3544 - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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/func.pyx":3545 - * open_data = 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__438, 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/func.pyx":3544 - * open = PyArray_GETCONTIGUOUS(open) - * open_data = open.data - * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("high is not double") - * if high.ndim != 1: - */ - } - - /* "talib/func.pyx":3546 - * 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/func.pyx":3547 - * raise 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__439, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3547, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 3547, __pyx_L1_error) - - /* "talib/func.pyx":3546 - * 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/func.pyx":3548 - * 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 = high.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":3549 - * raise Exception("high has wrong dimensions") - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< - * high_data = 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, 3549, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3549, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":3548 - * 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 = high.data - */ - } - - /* "talib/func.pyx":3550 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":3551 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":3552 - * high_data = 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__440, 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/func.pyx":3551 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = high.data - * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("low is not double") - * if low.ndim != 1: - */ - } - - /* "talib/func.pyx":3553 - * 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/func.pyx":3554 - * raise 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__441, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3554, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 3554, __pyx_L1_error) - - /* "talib/func.pyx":3553 - * 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/func.pyx":3555 - * 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 = low.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":3556 - * raise Exception("low has wrong dimensions") - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< - * low_data = 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, 3556, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3556, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":3555 - * 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 = low.data - */ - } - - /* "talib/func.pyx":3557 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":3558 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":3559 - * low_data = 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__442, 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/func.pyx":3558 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = low.data - * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("close is not double") - * if close.ndim != 1: - */ - } - - /* "talib/func.pyx":3560 - * 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/func.pyx":3561 - * raise 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__443, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3561, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 3561, __pyx_L1_error) - - /* "talib/func.pyx":3560 - * 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/func.pyx":3562 - * 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 = close.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":3563 - * raise Exception("close has wrong dimensions") - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< - * close_data = close.data - * length = open.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3563, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3563, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":3562 - * 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 = close.data - */ - } - - /* "talib/func.pyx":3564 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = close.data # <<<<<<<<<<<<<< - * length = open.shape[0] - * if length != high.shape[0]: - */ - __pyx_v_close_data = ((double *)__pyx_v_close->data); - - /* "talib/func.pyx":3565 - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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/func.pyx":3566 - * close_data = 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/func.pyx":3567 - * 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__444, 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/func.pyx":3566 - * close_data = close.data - * length = open.shape[0] - * if length != high.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * if length != low.shape[0]: - */ - } - - /* "talib/func.pyx":3568 - * 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/func.pyx":3569 - * 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__445, 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/func.pyx":3568 - * 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/func.pyx":3570 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":3571 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__446, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3571, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 3571, __pyx_L1_error) - - /* "talib/func.pyx":3570 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - } - - /* "talib/func.pyx":3572 - * if length != close.shape[0]: - * raise Exception("input lengths are different") - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = open_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":3573 - * raise Exception("input lengths are different") - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = open_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":3574 - * begidx = 0 - * for i from 0 <= i < length: - * val = open_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_open_data[__pyx_v_i]); - - /* "talib/func.pyx":3575 - * for i from 0 <= i < length: - * val = open_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = high_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":3576 - * val = open_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = high_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":3575 - * for i from 0 <= i < length: - * val = open_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = high_data[i] - */ - } - - /* "talib/func.pyx":3577 - * if val != val: - * continue - * val = high_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); - - /* "talib/func.pyx":3578 - * continue - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":3579 - * val = high_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = low_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":3578 - * continue - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - } - - /* "talib/func.pyx":3580 - * if val != val: - * continue - * val = low_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); - - /* "talib/func.pyx":3581 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":3582 - * val = low_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = close_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":3581 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - } - - /* "talib/func.pyx":3583 - * if val != val: - * continue - * val = close_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); - - /* "talib/func.pyx":3584 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":3585 - * val = close_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":3584 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":3586 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":3587 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L19_break; - __pyx_L18_continue:; - } - /*else*/ { - - /* "talib/func.pyx":3589 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLHARAMICROSS_Lookback( ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__447, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3589, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 3589, __pyx_L1_error) - } - __pyx_L19_break:; - - /* "talib/func.pyx":3590 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_CDLHARAMICROSS_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":3591 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLHARAMICROSS_Lookback( ) # <<<<<<<<<<<<<< - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_CDLHARAMICROSS_Lookback()); - - /* "talib/func.pyx":3592 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLHARAMICROSS_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3592, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3592, __pyx_L1_error) - __pyx_v_outinteger = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":3593 - * lookback = begidx + lib.TA_CDLHARAMICROSS_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 - */ - __pyx_v_outinteger_data = ((int *)__pyx_v_outinteger->data); - - /* "talib/func.pyx":3594 - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLHARAMICROSS( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":3595 - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 # <<<<<<<<<<<<<< - * retCode = lib.TA_CDLHARAMICROSS( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _ta_check_success("TA_CDLHARAMICROSS", retCode) - */ - (__pyx_v_outinteger_data[__pyx_v_i]) = 0; - } - - /* "talib/func.pyx":3596 - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLHARAMICROSS( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_CDLHARAMICROSS", retCode) - * return outinteger - */ - __pyx_v_retCode = TA_CDLHARAMICROSS(0, __pyx_v_endidx, ((double *)(__pyx_v_open_data + __pyx_v_begidx)), ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outinteger_data + __pyx_v_lookback))); - - /* "talib/func.pyx":3597 - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLHARAMICROSS( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _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, 3597, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":3598 - * retCode = lib.TA_CDLHARAMICROSS( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _ta_check_success("TA_CDLHARAMICROSS", retCode) - * return outinteger # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outinteger)); - __pyx_r = ((PyObject *)__pyx_v_outinteger); - goto __pyx_L0; - - /* "talib/func.pyx":3514 - * @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.func.CDLHARAMICROSS", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outinteger); - __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/func.pyx":3602 - * @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_4func_89CDLHIGHWAVE(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_89CDLHIGHWAVE = {"CDLHIGHWAVE", (PyCFunction)__pyx_pw_5talib_4func_89CDLHIGHWAVE, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_88CDLHIGHWAVE}; -static PyObject *__pyx_pw_5talib_4func_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, 3602, __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, 3602, __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, 3602, __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, 3602, __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, 3602, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 3602, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 3602, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 3602, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 3602, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_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; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - 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; - PyArrayObject *__pyx_v_outinteger = 0; - int *__pyx_v_outinteger_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __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/func.pyx":3625 - * np.ndarray outinteger - * int* outinteger_data - * 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/func.pyx":3626 - * int* outinteger_data - * 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, 3626, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 3626, __pyx_L1_error) - - /* "talib/func.pyx":3625 - * np.ndarray outinteger - * int* outinteger_data - * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("open is not double") - * if open.ndim != 1: - */ - } - - /* "talib/func.pyx":3627 - * 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/func.pyx":3628 - * 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, 3628, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 3628, __pyx_L1_error) - - /* "talib/func.pyx":3627 - * 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/func.pyx":3629 - * 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 = open.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":3630 - * raise Exception("open has wrong dimensions") - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< - * open_data = 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, 3630, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3630, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":3629 - * 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 = open.data - */ - } - - /* "talib/func.pyx":3631 - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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/func.pyx":3632 - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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/func.pyx":3633 - * open_data = 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, 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/func.pyx":3632 - * open = PyArray_GETCONTIGUOUS(open) - * open_data = open.data - * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("high is not double") - * if high.ndim != 1: - */ - } - - /* "talib/func.pyx":3634 - * 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/func.pyx":3635 - * raise 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, 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/func.pyx":3634 - * 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/func.pyx":3636 - * 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 = high.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":3637 - * raise Exception("high has wrong dimensions") - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< - * high_data = 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, 3637, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3637, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":3636 - * 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 = high.data - */ - } - - /* "talib/func.pyx":3638 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":3639 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":3640 - * high_data = 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, 3640, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 3640, __pyx_L1_error) - - /* "talib/func.pyx":3639 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = high.data - * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("low is not double") - * if low.ndim != 1: - */ - } - - /* "talib/func.pyx":3641 - * 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/func.pyx":3642 - * raise 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, 3642, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 3642, __pyx_L1_error) - - /* "talib/func.pyx":3641 - * 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/func.pyx":3643 - * 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 = low.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":3644 - * raise Exception("low has wrong dimensions") - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< - * low_data = 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, 3644, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3644, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":3643 - * 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 = low.data - */ - } - - /* "talib/func.pyx":3645 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":3646 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":3647 - * low_data = 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, 3647, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 3647, __pyx_L1_error) - - /* "talib/func.pyx":3646 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = low.data - * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("close is not double") - * if close.ndim != 1: - */ - } - - /* "talib/func.pyx":3648 - * 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/func.pyx":3649 - * raise 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, 3649, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 3649, __pyx_L1_error) - - /* "talib/func.pyx":3648 - * 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/func.pyx":3650 - * 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 = close.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":3651 - * raise Exception("close has wrong dimensions") - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< - * close_data = close.data - * length = open.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3651, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3651, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":3650 - * 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 = close.data - */ - } - - /* "talib/func.pyx":3652 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = close.data # <<<<<<<<<<<<<< - * length = open.shape[0] - * if length != high.shape[0]: - */ - __pyx_v_close_data = ((double *)__pyx_v_close->data); - - /* "talib/func.pyx":3653 - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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/func.pyx":3654 - * close_data = 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/func.pyx":3655 - * 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, 3655, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 3655, __pyx_L1_error) - - /* "talib/func.pyx":3654 - * close_data = close.data - * length = open.shape[0] - * if length != high.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * if length != low.shape[0]: - */ - } - - /* "talib/func.pyx":3656 - * 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/func.pyx":3657 - * 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, 3657, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 3657, __pyx_L1_error) - - /* "talib/func.pyx":3656 - * 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/func.pyx":3658 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":3659 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__458, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3659, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 3659, __pyx_L1_error) - - /* "talib/func.pyx":3658 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - } - - /* "talib/func.pyx":3660 - * if length != close.shape[0]: - * raise Exception("input lengths are different") - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = open_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":3661 - * raise Exception("input lengths are different") - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = open_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":3662 - * begidx = 0 - * for i from 0 <= i < length: - * val = open_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_open_data[__pyx_v_i]); - - /* "talib/func.pyx":3663 - * for i from 0 <= i < length: - * val = open_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = high_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":3664 - * val = open_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = high_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":3663 - * for i from 0 <= i < length: - * val = open_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = high_data[i] - */ - } - - /* "talib/func.pyx":3665 - * if val != val: - * continue - * val = high_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); - - /* "talib/func.pyx":3666 - * continue - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":3667 - * val = high_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = low_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":3666 - * continue - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - } - - /* "talib/func.pyx":3668 - * if val != val: - * continue - * val = low_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); - - /* "talib/func.pyx":3669 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":3670 - * val = low_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = close_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":3669 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - } - - /* "talib/func.pyx":3671 - * if val != val: - * continue - * val = close_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); - - /* "talib/func.pyx":3672 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":3673 - * val = close_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":3672 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":3674 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":3675 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L19_break; - __pyx_L18_continue:; - } - /*else*/ { - - /* "talib/func.pyx":3677 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLHIGHWAVE_Lookback( ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__459, 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) - } - __pyx_L19_break:; - - /* "talib/func.pyx":3678 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_CDLHIGHWAVE_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":3679 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLHIGHWAVE_Lookback( ) # <<<<<<<<<<<<<< - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_CDLHIGHWAVE_Lookback()); - - /* "talib/func.pyx":3680 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLHIGHWAVE_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3680, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3680, __pyx_L1_error) - __pyx_v_outinteger = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":3681 - * lookback = begidx + lib.TA_CDLHIGHWAVE_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 - */ - __pyx_v_outinteger_data = ((int *)__pyx_v_outinteger->data); - - /* "talib/func.pyx":3682 - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLHIGHWAVE( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":3683 - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 # <<<<<<<<<<<<<< - * retCode = lib.TA_CDLHIGHWAVE( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _ta_check_success("TA_CDLHIGHWAVE", retCode) - */ - (__pyx_v_outinteger_data[__pyx_v_i]) = 0; - } - - /* "talib/func.pyx":3684 - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLHIGHWAVE( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_CDLHIGHWAVE", retCode) - * return outinteger - */ - __pyx_v_retCode = TA_CDLHIGHWAVE(0, __pyx_v_endidx, ((double *)(__pyx_v_open_data + __pyx_v_begidx)), ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outinteger_data + __pyx_v_lookback))); - - /* "talib/func.pyx":3685 - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLHIGHWAVE( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _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, 3685, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":3686 - * retCode = lib.TA_CDLHIGHWAVE( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _ta_check_success("TA_CDLHIGHWAVE", retCode) - * return outinteger # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outinteger)); - __pyx_r = ((PyObject *)__pyx_v_outinteger); - goto __pyx_L0; - - /* "talib/func.pyx":3602 - * @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.func.CDLHIGHWAVE", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outinteger); - __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/func.pyx":3690 - * @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_4func_91CDLHIKKAKE(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_91CDLHIKKAKE = {"CDLHIKKAKE", (PyCFunction)__pyx_pw_5talib_4func_91CDLHIKKAKE, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_90CDLHIKKAKE}; -static PyObject *__pyx_pw_5talib_4func_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, 3690, __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, 3690, __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, 3690, __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, 3690, __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, 3690, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 3690, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 3690, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 3690, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 3690, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_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; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - 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; - PyArrayObject *__pyx_v_outinteger = 0; - int *__pyx_v_outinteger_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __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/func.pyx":3713 - * np.ndarray outinteger - * int* outinteger_data - * 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/func.pyx":3714 - * int* outinteger_data - * 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__460, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3714, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 3714, __pyx_L1_error) - - /* "talib/func.pyx":3713 - * np.ndarray outinteger - * int* outinteger_data - * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("open is not double") - * if open.ndim != 1: - */ - } - - /* "talib/func.pyx":3715 - * 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/func.pyx":3716 - * 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__461, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3716, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 3716, __pyx_L1_error) - - /* "talib/func.pyx":3715 - * 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/func.pyx":3717 - * 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 = open.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":3718 - * raise Exception("open has wrong dimensions") - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< - * open_data = 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, 3718, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3718, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":3717 - * 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 = open.data - */ - } - - /* "talib/func.pyx":3719 - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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/func.pyx":3720 - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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/func.pyx":3721 - * open_data = 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__462, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3721, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 3721, __pyx_L1_error) - - /* "talib/func.pyx":3720 - * open = PyArray_GETCONTIGUOUS(open) - * open_data = open.data - * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("high is not double") - * if high.ndim != 1: - */ - } - - /* "talib/func.pyx":3722 - * 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/func.pyx":3723 - * raise 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__463, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3723, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 3723, __pyx_L1_error) - - /* "talib/func.pyx":3722 - * 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/func.pyx":3724 - * 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 = high.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":3725 - * raise Exception("high has wrong dimensions") - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< - * high_data = 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, 3725, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3725, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":3724 - * 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 = high.data - */ - } - - /* "talib/func.pyx":3726 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":3727 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":3728 - * high_data = 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__464, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3728, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 3728, __pyx_L1_error) - - /* "talib/func.pyx":3727 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = high.data - * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("low is not double") - * if low.ndim != 1: - */ - } - - /* "talib/func.pyx":3729 - * 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/func.pyx":3730 - * raise 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__465, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3730, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 3730, __pyx_L1_error) - - /* "talib/func.pyx":3729 - * 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/func.pyx":3731 - * 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 = low.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":3732 - * raise Exception("low has wrong dimensions") - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< - * low_data = 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, 3732, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3732, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":3731 - * 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 = low.data - */ - } - - /* "talib/func.pyx":3733 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":3734 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":3735 - * low_data = 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__466, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3735, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 3735, __pyx_L1_error) - - /* "talib/func.pyx":3734 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = low.data - * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("close is not double") - * if close.ndim != 1: - */ - } - - /* "talib/func.pyx":3736 - * 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/func.pyx":3737 - * raise 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__467, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3737, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 3737, __pyx_L1_error) - - /* "talib/func.pyx":3736 - * 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/func.pyx":3738 - * 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 = close.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":3739 - * raise Exception("close has wrong dimensions") - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< - * close_data = close.data - * length = open.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3739, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3739, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":3738 - * 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 = close.data - */ - } - - /* "talib/func.pyx":3740 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = close.data # <<<<<<<<<<<<<< - * length = open.shape[0] - * if length != high.shape[0]: - */ - __pyx_v_close_data = ((double *)__pyx_v_close->data); - - /* "talib/func.pyx":3741 - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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/func.pyx":3742 - * close_data = 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/func.pyx":3743 - * 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__468, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3743, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 3743, __pyx_L1_error) - - /* "talib/func.pyx":3742 - * close_data = close.data - * length = open.shape[0] - * if length != high.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * if length != low.shape[0]: - */ - } - - /* "talib/func.pyx":3744 - * 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/func.pyx":3745 - * 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__469, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3745, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 3745, __pyx_L1_error) - - /* "talib/func.pyx":3744 - * 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/func.pyx":3746 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":3747 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__470, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3747, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 3747, __pyx_L1_error) - - /* "talib/func.pyx":3746 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - } - - /* "talib/func.pyx":3748 - * if length != close.shape[0]: - * raise Exception("input lengths are different") - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = open_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":3749 - * raise Exception("input lengths are different") - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = open_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":3750 - * begidx = 0 - * for i from 0 <= i < length: - * val = open_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_open_data[__pyx_v_i]); - - /* "talib/func.pyx":3751 - * for i from 0 <= i < length: - * val = open_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = high_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":3752 - * val = open_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = high_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":3751 - * for i from 0 <= i < length: - * val = open_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = high_data[i] - */ - } - - /* "talib/func.pyx":3753 - * if val != val: - * continue - * val = high_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); - - /* "talib/func.pyx":3754 - * continue - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":3755 - * val = high_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = low_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":3754 - * continue - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - } - - /* "talib/func.pyx":3756 - * if val != val: - * continue - * val = low_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); - - /* "talib/func.pyx":3757 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":3758 - * val = low_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = close_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":3757 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - } - - /* "talib/func.pyx":3759 - * if val != val: - * continue - * val = close_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); - - /* "talib/func.pyx":3760 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":3761 - * val = close_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":3760 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":3762 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":3763 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L19_break; - __pyx_L18_continue:; - } - /*else*/ { - - /* "talib/func.pyx":3765 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLHIKKAKE_Lookback( ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__471, 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) - } - __pyx_L19_break:; - - /* "talib/func.pyx":3766 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_CDLHIKKAKE_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":3767 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLHIKKAKE_Lookback( ) # <<<<<<<<<<<<<< - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_CDLHIKKAKE_Lookback()); - - /* "talib/func.pyx":3768 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLHIKKAKE_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3768, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3768, __pyx_L1_error) - __pyx_v_outinteger = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":3769 - * lookback = begidx + lib.TA_CDLHIKKAKE_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 - */ - __pyx_v_outinteger_data = ((int *)__pyx_v_outinteger->data); - - /* "talib/func.pyx":3770 - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLHIKKAKE( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":3771 - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 # <<<<<<<<<<<<<< - * retCode = lib.TA_CDLHIKKAKE( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _ta_check_success("TA_CDLHIKKAKE", retCode) - */ - (__pyx_v_outinteger_data[__pyx_v_i]) = 0; - } - - /* "talib/func.pyx":3772 - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLHIKKAKE( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_CDLHIKKAKE", retCode) - * return outinteger - */ - __pyx_v_retCode = TA_CDLHIKKAKE(0, __pyx_v_endidx, ((double *)(__pyx_v_open_data + __pyx_v_begidx)), ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outinteger_data + __pyx_v_lookback))); - - /* "talib/func.pyx":3773 - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLHIKKAKE( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _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, 3773, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":3774 - * retCode = lib.TA_CDLHIKKAKE( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _ta_check_success("TA_CDLHIKKAKE", retCode) - * return outinteger # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outinteger)); - __pyx_r = ((PyObject *)__pyx_v_outinteger); - goto __pyx_L0; - - /* "talib/func.pyx":3690 - * @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.func.CDLHIKKAKE", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outinteger); - __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/func.pyx":3778 - * @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_4func_93CDLHIKKAKEMOD(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_93CDLHIKKAKEMOD = {"CDLHIKKAKEMOD", (PyCFunction)__pyx_pw_5talib_4func_93CDLHIKKAKEMOD, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_92CDLHIKKAKEMOD}; -static PyObject *__pyx_pw_5talib_4func_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, 3778, __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, 3778, __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, 3778, __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, 3778, __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, 3778, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 3778, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 3778, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 3778, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 3778, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_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; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - 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; - PyArrayObject *__pyx_v_outinteger = 0; - int *__pyx_v_outinteger_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __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/func.pyx":3801 - * np.ndarray outinteger - * int* outinteger_data - * 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/func.pyx":3802 - * int* outinteger_data - * 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__472, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3802, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 3802, __pyx_L1_error) - - /* "talib/func.pyx":3801 - * np.ndarray outinteger - * int* outinteger_data - * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("open is not double") - * if open.ndim != 1: - */ - } - - /* "talib/func.pyx":3803 - * 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/func.pyx":3804 - * 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__473, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3804, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 3804, __pyx_L1_error) - - /* "talib/func.pyx":3803 - * 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/func.pyx":3805 - * 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 = open.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":3806 - * raise Exception("open has wrong dimensions") - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< - * open_data = 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, 3806, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3806, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":3805 - * 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 = open.data - */ - } - - /* "talib/func.pyx":3807 - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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/func.pyx":3808 - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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/func.pyx":3809 - * open_data = 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__474, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3809, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 3809, __pyx_L1_error) - - /* "talib/func.pyx":3808 - * open = PyArray_GETCONTIGUOUS(open) - * open_data = open.data - * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("high is not double") - * if high.ndim != 1: - */ - } - - /* "talib/func.pyx":3810 - * 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/func.pyx":3811 - * raise 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__475, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3811, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 3811, __pyx_L1_error) - - /* "talib/func.pyx":3810 - * 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/func.pyx":3812 - * 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 = high.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":3813 - * raise Exception("high has wrong dimensions") - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< - * high_data = 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, 3813, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3813, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":3812 - * 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 = high.data - */ - } - - /* "talib/func.pyx":3814 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":3815 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":3816 - * high_data = 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__476, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3816, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 3816, __pyx_L1_error) - - /* "talib/func.pyx":3815 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = high.data - * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("low is not double") - * if low.ndim != 1: - */ - } - - /* "talib/func.pyx":3817 - * 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/func.pyx":3818 - * raise 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__477, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3818, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 3818, __pyx_L1_error) - - /* "talib/func.pyx":3817 - * 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/func.pyx":3819 - * 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 = low.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":3820 - * raise Exception("low has wrong dimensions") - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< - * low_data = 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, 3820, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3820, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":3819 - * 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 = low.data - */ - } - - /* "talib/func.pyx":3821 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":3822 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":3823 - * low_data = 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__478, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3823, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 3823, __pyx_L1_error) - - /* "talib/func.pyx":3822 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = low.data - * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("close is not double") - * if close.ndim != 1: - */ - } - - /* "talib/func.pyx":3824 - * 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/func.pyx":3825 - * raise 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__479, 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/func.pyx":3824 - * 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/func.pyx":3826 - * 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 = close.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":3827 - * raise Exception("close has wrong dimensions") - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< - * close_data = close.data - * length = open.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3827, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3827, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":3826 - * 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 = close.data - */ - } - - /* "talib/func.pyx":3828 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = close.data # <<<<<<<<<<<<<< - * length = open.shape[0] - * if length != high.shape[0]: - */ - __pyx_v_close_data = ((double *)__pyx_v_close->data); - - /* "talib/func.pyx":3829 - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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/func.pyx":3830 - * close_data = 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/func.pyx":3831 - * 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__480, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3831, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 3831, __pyx_L1_error) - - /* "talib/func.pyx":3830 - * close_data = close.data - * length = open.shape[0] - * if length != high.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * if length != low.shape[0]: - */ - } - - /* "talib/func.pyx":3832 - * 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/func.pyx":3833 - * 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__481, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3833, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 3833, __pyx_L1_error) - - /* "talib/func.pyx":3832 - * 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/func.pyx":3834 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":3835 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__482, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3835, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 3835, __pyx_L1_error) - - /* "talib/func.pyx":3834 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - } - - /* "talib/func.pyx":3836 - * if length != close.shape[0]: - * raise Exception("input lengths are different") - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = open_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":3837 - * raise Exception("input lengths are different") - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = open_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":3838 - * begidx = 0 - * for i from 0 <= i < length: - * val = open_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_open_data[__pyx_v_i]); - - /* "talib/func.pyx":3839 - * for i from 0 <= i < length: - * val = open_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = high_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":3840 - * val = open_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = high_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":3839 - * for i from 0 <= i < length: - * val = open_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = high_data[i] - */ - } - - /* "talib/func.pyx":3841 - * if val != val: - * continue - * val = high_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); - - /* "talib/func.pyx":3842 - * continue - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":3843 - * val = high_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = low_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":3842 - * continue - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - } - - /* "talib/func.pyx":3844 - * if val != val: - * continue - * val = low_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); - - /* "talib/func.pyx":3845 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":3846 - * val = low_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = close_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":3845 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - } - - /* "talib/func.pyx":3847 - * if val != val: - * continue - * val = close_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); - - /* "talib/func.pyx":3848 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":3849 - * val = close_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":3848 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":3850 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":3851 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L19_break; - __pyx_L18_continue:; - } - /*else*/ { - - /* "talib/func.pyx":3853 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLHIKKAKEMOD_Lookback( ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__483, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3853, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 3853, __pyx_L1_error) - } - __pyx_L19_break:; - - /* "talib/func.pyx":3854 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_CDLHIKKAKEMOD_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":3855 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLHIKKAKEMOD_Lookback( ) # <<<<<<<<<<<<<< - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_CDLHIKKAKEMOD_Lookback()); - - /* "talib/func.pyx":3856 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLHIKKAKEMOD_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3856, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3856, __pyx_L1_error) - __pyx_v_outinteger = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":3857 - * lookback = begidx + lib.TA_CDLHIKKAKEMOD_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 - */ - __pyx_v_outinteger_data = ((int *)__pyx_v_outinteger->data); - - /* "talib/func.pyx":3858 - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLHIKKAKEMOD( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":3859 - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 # <<<<<<<<<<<<<< - * retCode = lib.TA_CDLHIKKAKEMOD( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _ta_check_success("TA_CDLHIKKAKEMOD", retCode) - */ - (__pyx_v_outinteger_data[__pyx_v_i]) = 0; - } - - /* "talib/func.pyx":3860 - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLHIKKAKEMOD( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_CDLHIKKAKEMOD", retCode) - * return outinteger - */ - __pyx_v_retCode = TA_CDLHIKKAKEMOD(0, __pyx_v_endidx, ((double *)(__pyx_v_open_data + __pyx_v_begidx)), ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outinteger_data + __pyx_v_lookback))); - - /* "talib/func.pyx":3861 - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLHIKKAKEMOD( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _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, 3861, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":3862 - * retCode = lib.TA_CDLHIKKAKEMOD( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _ta_check_success("TA_CDLHIKKAKEMOD", retCode) - * return outinteger # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outinteger)); - __pyx_r = ((PyObject *)__pyx_v_outinteger); - goto __pyx_L0; - - /* "talib/func.pyx":3778 - * @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.func.CDLHIKKAKEMOD", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outinteger); - __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/func.pyx":3866 - * @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_4func_95CDLHOMINGPIGEON(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_95CDLHOMINGPIGEON = {"CDLHOMINGPIGEON", (PyCFunction)__pyx_pw_5talib_4func_95CDLHOMINGPIGEON, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_94CDLHOMINGPIGEON}; -static PyObject *__pyx_pw_5talib_4func_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, 3866, __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, 3866, __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, 3866, __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, 3866, __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, 3866, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 3866, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 3866, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 3866, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 3866, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_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; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - 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; - PyArrayObject *__pyx_v_outinteger = 0; - int *__pyx_v_outinteger_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __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/func.pyx":3889 - * np.ndarray outinteger - * int* outinteger_data - * 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/func.pyx":3890 - * int* outinteger_data - * 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__484, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3890, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 3890, __pyx_L1_error) - - /* "talib/func.pyx":3889 - * np.ndarray outinteger - * int* outinteger_data - * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("open is not double") - * if open.ndim != 1: - */ - } - - /* "talib/func.pyx":3891 - * 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/func.pyx":3892 - * 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__485, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3892, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 3892, __pyx_L1_error) - - /* "talib/func.pyx":3891 - * 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/func.pyx":3893 - * 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 = open.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":3894 - * raise Exception("open has wrong dimensions") - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< - * open_data = 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, 3894, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3894, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":3893 - * 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 = open.data - */ - } - - /* "talib/func.pyx":3895 - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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/func.pyx":3896 - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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/func.pyx":3897 - * open_data = 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__486, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3897, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 3897, __pyx_L1_error) - - /* "talib/func.pyx":3896 - * open = PyArray_GETCONTIGUOUS(open) - * open_data = open.data - * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("high is not double") - * if high.ndim != 1: - */ - } - - /* "talib/func.pyx":3898 - * 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/func.pyx":3899 - * raise 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__487, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3899, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 3899, __pyx_L1_error) - - /* "talib/func.pyx":3898 - * 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/func.pyx":3900 - * 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 = high.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":3901 - * raise Exception("high has wrong dimensions") - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< - * high_data = 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, 3901, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3901, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":3900 - * 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 = high.data - */ - } - - /* "talib/func.pyx":3902 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":3903 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":3904 - * high_data = 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__488, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3904, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 3904, __pyx_L1_error) - - /* "talib/func.pyx":3903 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = high.data - * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("low is not double") - * if low.ndim != 1: - */ - } - - /* "talib/func.pyx":3905 - * 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/func.pyx":3906 - * raise 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__489, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3906, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 3906, __pyx_L1_error) - - /* "talib/func.pyx":3905 - * 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/func.pyx":3907 - * 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 = low.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":3908 - * raise Exception("low has wrong dimensions") - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< - * low_data = 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, 3908, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3908, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":3907 - * 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 = low.data - */ - } - - /* "talib/func.pyx":3909 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":3910 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":3911 - * low_data = 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__490, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3911, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 3911, __pyx_L1_error) - - /* "talib/func.pyx":3910 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = low.data - * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("close is not double") - * if close.ndim != 1: - */ - } - - /* "talib/func.pyx":3912 - * 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/func.pyx":3913 - * raise 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__491, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3913, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 3913, __pyx_L1_error) - - /* "talib/func.pyx":3912 - * 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/func.pyx":3914 - * 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 = close.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":3915 - * raise Exception("close has wrong dimensions") - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< - * close_data = close.data - * length = open.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3915, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3915, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":3914 - * 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 = close.data - */ - } - - /* "talib/func.pyx":3916 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = close.data # <<<<<<<<<<<<<< - * length = open.shape[0] - * if length != high.shape[0]: - */ - __pyx_v_close_data = ((double *)__pyx_v_close->data); - - /* "talib/func.pyx":3917 - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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/func.pyx":3918 - * close_data = 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/func.pyx":3919 - * 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__492, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3919, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 3919, __pyx_L1_error) - - /* "talib/func.pyx":3918 - * close_data = close.data - * length = open.shape[0] - * if length != high.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * if length != low.shape[0]: - */ - } - - /* "talib/func.pyx":3920 - * 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/func.pyx":3921 - * 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__493, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3921, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 3921, __pyx_L1_error) - - /* "talib/func.pyx":3920 - * 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/func.pyx":3922 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":3923 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__494, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3923, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 3923, __pyx_L1_error) - - /* "talib/func.pyx":3922 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - } - - /* "talib/func.pyx":3924 - * if length != close.shape[0]: - * raise Exception("input lengths are different") - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = open_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":3925 - * raise Exception("input lengths are different") - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = open_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":3926 - * begidx = 0 - * for i from 0 <= i < length: - * val = open_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_open_data[__pyx_v_i]); - - /* "talib/func.pyx":3927 - * for i from 0 <= i < length: - * val = open_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = high_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":3928 - * val = open_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = high_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":3927 - * for i from 0 <= i < length: - * val = open_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = high_data[i] - */ - } - - /* "talib/func.pyx":3929 - * if val != val: - * continue - * val = high_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); - - /* "talib/func.pyx":3930 - * continue - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":3931 - * val = high_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = low_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":3930 - * continue - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - } - - /* "talib/func.pyx":3932 - * if val != val: - * continue - * val = low_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); - - /* "talib/func.pyx":3933 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":3934 - * val = low_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = close_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":3933 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - } - - /* "talib/func.pyx":3935 - * if val != val: - * continue - * val = close_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); - - /* "talib/func.pyx":3936 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":3937 - * val = close_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":3936 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":3938 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":3939 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L19_break; - __pyx_L18_continue:; - } - /*else*/ { - - /* "talib/func.pyx":3941 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLHOMINGPIGEON_Lookback( ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__495, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3941, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 3941, __pyx_L1_error) - } - __pyx_L19_break:; - - /* "talib/func.pyx":3942 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_CDLHOMINGPIGEON_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":3943 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLHOMINGPIGEON_Lookback( ) # <<<<<<<<<<<<<< - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_CDLHOMINGPIGEON_Lookback()); - - /* "talib/func.pyx":3944 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLHOMINGPIGEON_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3944, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3944, __pyx_L1_error) - __pyx_v_outinteger = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":3945 - * lookback = begidx + lib.TA_CDLHOMINGPIGEON_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 - */ - __pyx_v_outinteger_data = ((int *)__pyx_v_outinteger->data); - - /* "talib/func.pyx":3946 - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLHOMINGPIGEON( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":3947 - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 # <<<<<<<<<<<<<< - * retCode = lib.TA_CDLHOMINGPIGEON( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _ta_check_success("TA_CDLHOMINGPIGEON", retCode) - */ - (__pyx_v_outinteger_data[__pyx_v_i]) = 0; - } - - /* "talib/func.pyx":3948 - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLHOMINGPIGEON( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_CDLHOMINGPIGEON", retCode) - * return outinteger - */ - __pyx_v_retCode = TA_CDLHOMINGPIGEON(0, __pyx_v_endidx, ((double *)(__pyx_v_open_data + __pyx_v_begidx)), ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outinteger_data + __pyx_v_lookback))); - - /* "talib/func.pyx":3949 - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLHOMINGPIGEON( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _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, 3949, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":3950 - * retCode = lib.TA_CDLHOMINGPIGEON( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _ta_check_success("TA_CDLHOMINGPIGEON", retCode) - * return outinteger # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outinteger)); - __pyx_r = ((PyObject *)__pyx_v_outinteger); - goto __pyx_L0; - - /* "talib/func.pyx":3866 - * @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.func.CDLHOMINGPIGEON", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outinteger); - __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/func.pyx":3954 - * @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_4func_97CDLIDENTICAL3CROWS(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_97CDLIDENTICAL3CROWS = {"CDLIDENTICAL3CROWS", (PyCFunction)__pyx_pw_5talib_4func_97CDLIDENTICAL3CROWS, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_96CDLIDENTICAL3CROWS}; -static PyObject *__pyx_pw_5talib_4func_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, 3954, __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, 3954, __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, 3954, __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, 3954, __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, 3954, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 3954, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 3954, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 3954, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 3954, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_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; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - 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; - PyArrayObject *__pyx_v_outinteger = 0; - int *__pyx_v_outinteger_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __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/func.pyx":3977 - * np.ndarray outinteger - * int* outinteger_data - * 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/func.pyx":3978 - * int* outinteger_data - * 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__496, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3978, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 3978, __pyx_L1_error) - - /* "talib/func.pyx":3977 - * np.ndarray outinteger - * int* outinteger_data - * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("open is not double") - * if open.ndim != 1: - */ - } - - /* "talib/func.pyx":3979 - * 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/func.pyx":3980 - * 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__497, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3980, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 3980, __pyx_L1_error) - - /* "talib/func.pyx":3979 - * 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/func.pyx":3981 - * 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 = open.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":3982 - * raise Exception("open has wrong dimensions") - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< - * open_data = 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, 3982, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3982, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":3981 - * 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 = open.data - */ - } - - /* "talib/func.pyx":3983 - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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/func.pyx":3984 - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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/func.pyx":3985 - * open_data = 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__498, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3985, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 3985, __pyx_L1_error) - - /* "talib/func.pyx":3984 - * open = PyArray_GETCONTIGUOUS(open) - * open_data = open.data - * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("high is not double") - * if high.ndim != 1: - */ - } - - /* "talib/func.pyx":3986 - * 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/func.pyx":3987 - * raise 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__499, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3987, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 3987, __pyx_L1_error) - - /* "talib/func.pyx":3986 - * 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/func.pyx":3988 - * 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 = high.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":3989 - * raise Exception("high has wrong dimensions") - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< - * high_data = 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, 3989, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3989, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":3988 - * 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 = high.data - */ - } - - /* "talib/func.pyx":3990 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":3991 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":3992 - * high_data = 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__500, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3992, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 3992, __pyx_L1_error) - - /* "talib/func.pyx":3991 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = high.data - * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("low is not double") - * if low.ndim != 1: - */ - } - - /* "talib/func.pyx":3993 - * 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/func.pyx":3994 - * raise 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__501, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3994, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 3994, __pyx_L1_error) - - /* "talib/func.pyx":3993 - * 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/func.pyx":3995 - * 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 = low.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":3996 - * raise Exception("low has wrong dimensions") - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< - * low_data = 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, 3996, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 3996, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":3995 - * 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 = low.data - */ - } - - /* "talib/func.pyx":3997 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":3998 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":3999 - * low_data = 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__502, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 3999, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 3999, __pyx_L1_error) - - /* "talib/func.pyx":3998 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = low.data - * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("close is not double") - * if close.ndim != 1: - */ - } - - /* "talib/func.pyx":4000 - * 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/func.pyx":4001 - * raise 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__503, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4001, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 4001, __pyx_L1_error) - - /* "talib/func.pyx":4000 - * 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/func.pyx":4002 - * 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 = close.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":4003 - * raise Exception("close has wrong dimensions") - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< - * close_data = close.data - * length = open.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4003, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4003, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":4002 - * 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 = close.data - */ - } - - /* "talib/func.pyx":4004 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = close.data # <<<<<<<<<<<<<< - * length = open.shape[0] - * if length != high.shape[0]: - */ - __pyx_v_close_data = ((double *)__pyx_v_close->data); - - /* "talib/func.pyx":4005 - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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/func.pyx":4006 - * close_data = 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/func.pyx":4007 - * 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__504, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4007, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 4007, __pyx_L1_error) - - /* "talib/func.pyx":4006 - * close_data = close.data - * length = open.shape[0] - * if length != high.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * if length != low.shape[0]: - */ - } - - /* "talib/func.pyx":4008 - * 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/func.pyx":4009 - * 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__505, 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/func.pyx":4008 - * 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/func.pyx":4010 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":4011 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__506, 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/func.pyx":4010 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - } - - /* "talib/func.pyx":4012 - * if length != close.shape[0]: - * raise Exception("input lengths are different") - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = open_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":4013 - * raise Exception("input lengths are different") - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = open_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":4014 - * begidx = 0 - * for i from 0 <= i < length: - * val = open_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_open_data[__pyx_v_i]); - - /* "talib/func.pyx":4015 - * for i from 0 <= i < length: - * val = open_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = high_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":4016 - * val = open_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = high_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":4015 - * for i from 0 <= i < length: - * val = open_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = high_data[i] - */ - } - - /* "talib/func.pyx":4017 - * if val != val: - * continue - * val = high_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); - - /* "talib/func.pyx":4018 - * continue - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":4019 - * val = high_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = low_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":4018 - * continue - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - } - - /* "talib/func.pyx":4020 - * if val != val: - * continue - * val = low_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); - - /* "talib/func.pyx":4021 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":4022 - * val = low_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = close_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":4021 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - } - - /* "talib/func.pyx":4023 - * if val != val: - * continue - * val = close_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); - - /* "talib/func.pyx":4024 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":4025 - * val = close_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":4024 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":4026 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":4027 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L19_break; - __pyx_L18_continue:; - } - /*else*/ { - - /* "talib/func.pyx":4029 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLIDENTICAL3CROWS_Lookback( ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__507, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4029, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 4029, __pyx_L1_error) - } - __pyx_L19_break:; - - /* "talib/func.pyx":4030 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_CDLIDENTICAL3CROWS_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":4031 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLIDENTICAL3CROWS_Lookback( ) # <<<<<<<<<<<<<< - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_CDLIDENTICAL3CROWS_Lookback()); - - /* "talib/func.pyx":4032 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLIDENTICAL3CROWS_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4032, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4032, __pyx_L1_error) - __pyx_v_outinteger = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":4033 - * lookback = begidx + lib.TA_CDLIDENTICAL3CROWS_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 - */ - __pyx_v_outinteger_data = ((int *)__pyx_v_outinteger->data); - - /* "talib/func.pyx":4034 - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLIDENTICAL3CROWS( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":4035 - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 # <<<<<<<<<<<<<< - * retCode = lib.TA_CDLIDENTICAL3CROWS( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _ta_check_success("TA_CDLIDENTICAL3CROWS", retCode) - */ - (__pyx_v_outinteger_data[__pyx_v_i]) = 0; - } - - /* "talib/func.pyx":4036 - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLIDENTICAL3CROWS( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_CDLIDENTICAL3CROWS", retCode) - * return outinteger - */ - __pyx_v_retCode = TA_CDLIDENTICAL3CROWS(0, __pyx_v_endidx, ((double *)(__pyx_v_open_data + __pyx_v_begidx)), ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outinteger_data + __pyx_v_lookback))); - - /* "talib/func.pyx":4037 - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLIDENTICAL3CROWS( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _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, 4037, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":4038 - * retCode = lib.TA_CDLIDENTICAL3CROWS( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _ta_check_success("TA_CDLIDENTICAL3CROWS", retCode) - * return outinteger # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outinteger)); - __pyx_r = ((PyObject *)__pyx_v_outinteger); - goto __pyx_L0; - - /* "talib/func.pyx":3954 - * @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.func.CDLIDENTICAL3CROWS", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outinteger); - __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/func.pyx":4042 - * @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_4func_99CDLINNECK(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_99CDLINNECK = {"CDLINNECK", (PyCFunction)__pyx_pw_5talib_4func_99CDLINNECK, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_98CDLINNECK}; -static PyObject *__pyx_pw_5talib_4func_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, 4042, __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, 4042, __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, 4042, __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, 4042, __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, 4042, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 4042, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 4042, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 4042, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 4042, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_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; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - 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; - PyArrayObject *__pyx_v_outinteger = 0; - int *__pyx_v_outinteger_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __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/func.pyx":4065 - * np.ndarray outinteger - * int* outinteger_data - * 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/func.pyx":4066 - * int* outinteger_data - * 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__508, 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/func.pyx":4065 - * np.ndarray outinteger - * int* outinteger_data - * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("open is not double") - * if open.ndim != 1: - */ - } - - /* "talib/func.pyx":4067 - * 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/func.pyx":4068 - * 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__509, 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/func.pyx":4067 - * 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/func.pyx":4069 - * 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 = open.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":4070 - * raise Exception("open has wrong dimensions") - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< - * open_data = 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, 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_open, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":4069 - * 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 = open.data - */ - } - - /* "talib/func.pyx":4071 - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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/func.pyx":4072 - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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/func.pyx":4073 - * open_data = 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__510, 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/func.pyx":4072 - * open = PyArray_GETCONTIGUOUS(open) - * open_data = open.data - * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("high is not double") - * if high.ndim != 1: - */ - } - - /* "talib/func.pyx":4074 - * 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/func.pyx":4075 - * raise 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__511, 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/func.pyx":4074 - * 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/func.pyx":4076 - * 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 = high.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":4077 - * raise Exception("high has wrong dimensions") - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< - * high_data = 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, 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_high, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":4076 - * 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 = high.data - */ - } - - /* "talib/func.pyx":4078 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":4079 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":4080 - * high_data = 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__512, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4080, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 4080, __pyx_L1_error) - - /* "talib/func.pyx":4079 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = high.data - * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("low is not double") - * if low.ndim != 1: - */ - } - - /* "talib/func.pyx":4081 - * 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/func.pyx":4082 - * raise 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__513, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4082, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 4082, __pyx_L1_error) - - /* "talib/func.pyx":4081 - * 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/func.pyx":4083 - * 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 = low.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":4084 - * raise Exception("low has wrong dimensions") - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< - * low_data = 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, 4084, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4084, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":4083 - * 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 = low.data - */ - } - - /* "talib/func.pyx":4085 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":4086 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":4087 - * low_data = 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__514, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4087, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 4087, __pyx_L1_error) - - /* "talib/func.pyx":4086 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = low.data - * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("close is not double") - * if close.ndim != 1: - */ - } - - /* "talib/func.pyx":4088 - * 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/func.pyx":4089 - * raise 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__515, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4089, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 4089, __pyx_L1_error) - - /* "talib/func.pyx":4088 - * 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/func.pyx":4090 - * 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 = close.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":4091 - * raise Exception("close has wrong dimensions") - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< - * close_data = close.data - * length = open.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4091, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4091, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":4090 - * 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 = close.data - */ - } - - /* "talib/func.pyx":4092 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = close.data # <<<<<<<<<<<<<< - * length = open.shape[0] - * if length != high.shape[0]: - */ - __pyx_v_close_data = ((double *)__pyx_v_close->data); - - /* "talib/func.pyx":4093 - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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/func.pyx":4094 - * close_data = 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/func.pyx":4095 - * 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__516, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4095, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 4095, __pyx_L1_error) - - /* "talib/func.pyx":4094 - * close_data = close.data - * length = open.shape[0] - * if length != high.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * if length != low.shape[0]: - */ - } - - /* "talib/func.pyx":4096 - * 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/func.pyx":4097 - * 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__517, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4097, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 4097, __pyx_L1_error) - - /* "talib/func.pyx":4096 - * 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/func.pyx":4098 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":4099 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__518, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4099, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 4099, __pyx_L1_error) - - /* "talib/func.pyx":4098 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - } - - /* "talib/func.pyx":4100 - * if length != close.shape[0]: - * raise Exception("input lengths are different") - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = open_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":4101 - * raise Exception("input lengths are different") - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = open_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":4102 - * begidx = 0 - * for i from 0 <= i < length: - * val = open_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_open_data[__pyx_v_i]); - - /* "talib/func.pyx":4103 - * for i from 0 <= i < length: - * val = open_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = high_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":4104 - * val = open_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = high_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":4103 - * for i from 0 <= i < length: - * val = open_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = high_data[i] - */ - } - - /* "talib/func.pyx":4105 - * if val != val: - * continue - * val = high_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); - - /* "talib/func.pyx":4106 - * continue - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":4107 - * val = high_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = low_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":4106 - * continue - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - } - - /* "talib/func.pyx":4108 - * if val != val: - * continue - * val = low_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); - - /* "talib/func.pyx":4109 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":4110 - * val = low_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = close_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":4109 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - } - - /* "talib/func.pyx":4111 - * if val != val: - * continue - * val = close_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); - - /* "talib/func.pyx":4112 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":4113 - * val = close_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":4112 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":4114 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":4115 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L19_break; - __pyx_L18_continue:; - } - /*else*/ { - - /* "talib/func.pyx":4117 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLINNECK_Lookback( ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__519, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4117, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 4117, __pyx_L1_error) - } - __pyx_L19_break:; - - /* "talib/func.pyx":4118 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_CDLINNECK_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":4119 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLINNECK_Lookback( ) # <<<<<<<<<<<<<< - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_CDLINNECK_Lookback()); - - /* "talib/func.pyx":4120 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLINNECK_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); 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_v_outinteger = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":4121 - * lookback = begidx + lib.TA_CDLINNECK_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 - */ - __pyx_v_outinteger_data = ((int *)__pyx_v_outinteger->data); - - /* "talib/func.pyx":4122 - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLINNECK( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":4123 - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 # <<<<<<<<<<<<<< - * retCode = lib.TA_CDLINNECK( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _ta_check_success("TA_CDLINNECK", retCode) - */ - (__pyx_v_outinteger_data[__pyx_v_i]) = 0; - } - - /* "talib/func.pyx":4124 - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLINNECK( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_CDLINNECK", retCode) - * return outinteger - */ - __pyx_v_retCode = TA_CDLINNECK(0, __pyx_v_endidx, ((double *)(__pyx_v_open_data + __pyx_v_begidx)), ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outinteger_data + __pyx_v_lookback))); - - /* "talib/func.pyx":4125 - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLINNECK( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _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, 4125, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":4126 - * retCode = lib.TA_CDLINNECK( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _ta_check_success("TA_CDLINNECK", retCode) - * return outinteger # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outinteger)); - __pyx_r = ((PyObject *)__pyx_v_outinteger); - goto __pyx_L0; - - /* "talib/func.pyx":4042 - * @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.func.CDLINNECK", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outinteger); - __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/func.pyx":4130 - * @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_4func_101CDLINVERTEDHAMMER(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_101CDLINVERTEDHAMMER = {"CDLINVERTEDHAMMER", (PyCFunction)__pyx_pw_5talib_4func_101CDLINVERTEDHAMMER, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_100CDLINVERTEDHAMMER}; -static PyObject *__pyx_pw_5talib_4func_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, 4130, __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, 4130, __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, 4130, __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, 4130, __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, 4130, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 4130, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 4130, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 4130, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 4130, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_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; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - 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; - PyArrayObject *__pyx_v_outinteger = 0; - int *__pyx_v_outinteger_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __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/func.pyx":4153 - * np.ndarray outinteger - * int* outinteger_data - * 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/func.pyx":4154 - * int* outinteger_data - * 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__520, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4154, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 4154, __pyx_L1_error) - - /* "talib/func.pyx":4153 - * np.ndarray outinteger - * int* outinteger_data - * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("open is not double") - * if open.ndim != 1: - */ - } - - /* "talib/func.pyx":4155 - * 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/func.pyx":4156 - * 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__521, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4156, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 4156, __pyx_L1_error) - - /* "talib/func.pyx":4155 - * 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/func.pyx":4157 - * 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 = open.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":4158 - * raise Exception("open has wrong dimensions") - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< - * open_data = 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, 4158, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4158, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":4157 - * 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 = open.data - */ - } - - /* "talib/func.pyx":4159 - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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/func.pyx":4160 - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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/func.pyx":4161 - * open_data = 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__522, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4161, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 4161, __pyx_L1_error) - - /* "talib/func.pyx":4160 - * open = PyArray_GETCONTIGUOUS(open) - * open_data = open.data - * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("high is not double") - * if high.ndim != 1: - */ - } - - /* "talib/func.pyx":4162 - * 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/func.pyx":4163 - * raise 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__523, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4163, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 4163, __pyx_L1_error) - - /* "talib/func.pyx":4162 - * 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/func.pyx":4164 - * 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 = high.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":4165 - * raise Exception("high has wrong dimensions") - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< - * high_data = 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, 4165, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4165, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":4164 - * 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 = high.data - */ - } - - /* "talib/func.pyx":4166 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":4167 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":4168 - * high_data = 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__524, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4168, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 4168, __pyx_L1_error) - - /* "talib/func.pyx":4167 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = high.data - * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("low is not double") - * if low.ndim != 1: - */ - } - - /* "talib/func.pyx":4169 - * 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/func.pyx":4170 - * raise 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__525, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4170, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 4170, __pyx_L1_error) - - /* "talib/func.pyx":4169 - * 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/func.pyx":4171 - * 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 = low.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":4172 - * raise Exception("low has wrong dimensions") - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< - * low_data = 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, 4172, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4172, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":4171 - * 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 = low.data - */ - } - - /* "talib/func.pyx":4173 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":4174 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":4175 - * low_data = 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__526, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4175, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 4175, __pyx_L1_error) - - /* "talib/func.pyx":4174 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = low.data - * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("close is not double") - * if close.ndim != 1: - */ - } - - /* "talib/func.pyx":4176 - * 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/func.pyx":4177 - * raise 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__527, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4177, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 4177, __pyx_L1_error) - - /* "talib/func.pyx":4176 - * 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/func.pyx":4178 - * 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 = close.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":4179 - * raise Exception("close has wrong dimensions") - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< - * close_data = close.data - * length = open.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4179, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4179, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":4178 - * 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 = close.data - */ - } - - /* "talib/func.pyx":4180 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = close.data # <<<<<<<<<<<<<< - * length = open.shape[0] - * if length != high.shape[0]: - */ - __pyx_v_close_data = ((double *)__pyx_v_close->data); - - /* "talib/func.pyx":4181 - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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/func.pyx":4182 - * close_data = 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/func.pyx":4183 - * 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__528, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4183, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 4183, __pyx_L1_error) - - /* "talib/func.pyx":4182 - * close_data = close.data - * length = open.shape[0] - * if length != high.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * if length != low.shape[0]: - */ - } - - /* "talib/func.pyx":4184 - * 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/func.pyx":4185 - * 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__529, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4185, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 4185, __pyx_L1_error) - - /* "talib/func.pyx":4184 - * 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/func.pyx":4186 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":4187 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__530, 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/func.pyx":4186 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - } - - /* "talib/func.pyx":4188 - * if length != close.shape[0]: - * raise Exception("input lengths are different") - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = open_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":4189 - * raise Exception("input lengths are different") - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = open_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":4190 - * begidx = 0 - * for i from 0 <= i < length: - * val = open_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_open_data[__pyx_v_i]); - - /* "talib/func.pyx":4191 - * for i from 0 <= i < length: - * val = open_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = high_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":4192 - * val = open_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = high_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":4191 - * for i from 0 <= i < length: - * val = open_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = high_data[i] - */ - } - - /* "talib/func.pyx":4193 - * if val != val: - * continue - * val = high_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); - - /* "talib/func.pyx":4194 - * continue - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":4195 - * val = high_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = low_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":4194 - * continue - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - } - - /* "talib/func.pyx":4196 - * if val != val: - * continue - * val = low_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); - - /* "talib/func.pyx":4197 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":4198 - * val = low_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = close_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":4197 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - } - - /* "talib/func.pyx":4199 - * if val != val: - * continue - * val = close_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); - - /* "talib/func.pyx":4200 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":4201 - * val = close_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":4200 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":4202 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":4203 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L19_break; - __pyx_L18_continue:; - } - /*else*/ { - - /* "talib/func.pyx":4205 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLINVERTEDHAMMER_Lookback( ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__531, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4205, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 4205, __pyx_L1_error) - } - __pyx_L19_break:; - - /* "talib/func.pyx":4206 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_CDLINVERTEDHAMMER_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":4207 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLINVERTEDHAMMER_Lookback( ) # <<<<<<<<<<<<<< - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_CDLINVERTEDHAMMER_Lookback()); - - /* "talib/func.pyx":4208 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLINVERTEDHAMMER_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4208, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4208, __pyx_L1_error) - __pyx_v_outinteger = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":4209 - * lookback = begidx + lib.TA_CDLINVERTEDHAMMER_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 - */ - __pyx_v_outinteger_data = ((int *)__pyx_v_outinteger->data); - - /* "talib/func.pyx":4210 - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLINVERTEDHAMMER( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":4211 - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 # <<<<<<<<<<<<<< - * retCode = lib.TA_CDLINVERTEDHAMMER( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _ta_check_success("TA_CDLINVERTEDHAMMER", retCode) - */ - (__pyx_v_outinteger_data[__pyx_v_i]) = 0; - } - - /* "talib/func.pyx":4212 - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLINVERTEDHAMMER( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_CDLINVERTEDHAMMER", retCode) - * return outinteger - */ - __pyx_v_retCode = TA_CDLINVERTEDHAMMER(0, __pyx_v_endidx, ((double *)(__pyx_v_open_data + __pyx_v_begidx)), ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outinteger_data + __pyx_v_lookback))); - - /* "talib/func.pyx":4213 - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLINVERTEDHAMMER( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _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, 4213, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":4214 - * retCode = lib.TA_CDLINVERTEDHAMMER( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _ta_check_success("TA_CDLINVERTEDHAMMER", retCode) - * return outinteger # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outinteger)); - __pyx_r = ((PyObject *)__pyx_v_outinteger); - goto __pyx_L0; - - /* "talib/func.pyx":4130 - * @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.func.CDLINVERTEDHAMMER", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outinteger); - __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/func.pyx":4218 - * @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_4func_103CDLKICKING(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_103CDLKICKING = {"CDLKICKING", (PyCFunction)__pyx_pw_5talib_4func_103CDLKICKING, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_102CDLKICKING}; -static PyObject *__pyx_pw_5talib_4func_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, 4218, __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, 4218, __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, 4218, __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, 4218, __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, 4218, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 4218, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 4218, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 4218, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 4218, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_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; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - 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; - PyArrayObject *__pyx_v_outinteger = 0; - int *__pyx_v_outinteger_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __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/func.pyx":4241 - * np.ndarray outinteger - * int* outinteger_data - * 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/func.pyx":4242 - * int* outinteger_data - * 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__532, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4242, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 4242, __pyx_L1_error) - - /* "talib/func.pyx":4241 - * np.ndarray outinteger - * int* outinteger_data - * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("open is not double") - * if open.ndim != 1: - */ - } - - /* "talib/func.pyx":4243 - * 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/func.pyx":4244 - * 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__533, 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/func.pyx":4243 - * 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/func.pyx":4245 - * 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 = open.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":4246 - * raise Exception("open has wrong dimensions") - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< - * open_data = 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, 4246, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4246, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":4245 - * 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 = open.data - */ - } - - /* "talib/func.pyx":4247 - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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/func.pyx":4248 - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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/func.pyx":4249 - * open_data = 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__534, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4249, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 4249, __pyx_L1_error) - - /* "talib/func.pyx":4248 - * open = PyArray_GETCONTIGUOUS(open) - * open_data = open.data - * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("high is not double") - * if high.ndim != 1: - */ - } - - /* "talib/func.pyx":4250 - * 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/func.pyx":4251 - * raise 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__535, 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/func.pyx":4250 - * 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/func.pyx":4252 - * 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 = high.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":4253 - * raise Exception("high has wrong dimensions") - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< - * high_data = 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, 4253, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4253, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":4252 - * 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 = high.data - */ - } - - /* "talib/func.pyx":4254 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":4255 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":4256 - * high_data = 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__536, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4256, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 4256, __pyx_L1_error) - - /* "talib/func.pyx":4255 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = high.data - * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("low is not double") - * if low.ndim != 1: - */ - } - - /* "talib/func.pyx":4257 - * 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/func.pyx":4258 - * raise 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__537, 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/func.pyx":4257 - * 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/func.pyx":4259 - * 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 = low.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":4260 - * raise Exception("low has wrong dimensions") - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< - * low_data = 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, 4260, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4260, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":4259 - * 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 = low.data - */ - } - - /* "talib/func.pyx":4261 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":4262 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":4263 - * low_data = 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__538, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4263, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 4263, __pyx_L1_error) - - /* "talib/func.pyx":4262 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = low.data - * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("close is not double") - * if close.ndim != 1: - */ - } - - /* "talib/func.pyx":4264 - * 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/func.pyx":4265 - * raise 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__539, 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/func.pyx":4264 - * 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/func.pyx":4266 - * 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 = close.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":4267 - * raise Exception("close has wrong dimensions") - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< - * close_data = close.data - * length = open.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4267, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4267, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":4266 - * 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 = close.data - */ - } - - /* "talib/func.pyx":4268 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = close.data # <<<<<<<<<<<<<< - * length = open.shape[0] - * if length != high.shape[0]: - */ - __pyx_v_close_data = ((double *)__pyx_v_close->data); - - /* "talib/func.pyx":4269 - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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/func.pyx":4270 - * close_data = 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/func.pyx":4271 - * 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__540, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4271, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 4271, __pyx_L1_error) - - /* "talib/func.pyx":4270 - * close_data = close.data - * length = open.shape[0] - * if length != high.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * if length != low.shape[0]: - */ - } - - /* "talib/func.pyx":4272 - * 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/func.pyx":4273 - * 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__541, 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/func.pyx":4272 - * 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/func.pyx":4274 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":4275 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__542, 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/func.pyx":4274 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - } - - /* "talib/func.pyx":4276 - * if length != close.shape[0]: - * raise Exception("input lengths are different") - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = open_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":4277 - * raise Exception("input lengths are different") - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = open_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":4278 - * begidx = 0 - * for i from 0 <= i < length: - * val = open_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_open_data[__pyx_v_i]); - - /* "talib/func.pyx":4279 - * for i from 0 <= i < length: - * val = open_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = high_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":4280 - * val = open_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = high_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":4279 - * for i from 0 <= i < length: - * val = open_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = high_data[i] - */ - } - - /* "talib/func.pyx":4281 - * if val != val: - * continue - * val = high_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); - - /* "talib/func.pyx":4282 - * continue - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":4283 - * val = high_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = low_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":4282 - * continue - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - } - - /* "talib/func.pyx":4284 - * if val != val: - * continue - * val = low_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); - - /* "talib/func.pyx":4285 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":4286 - * val = low_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = close_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":4285 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - } - - /* "talib/func.pyx":4287 - * if val != val: - * continue - * val = close_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); - - /* "talib/func.pyx":4288 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":4289 - * val = close_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":4288 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":4290 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":4291 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L19_break; - __pyx_L18_continue:; - } - /*else*/ { - - /* "talib/func.pyx":4293 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLKICKING_Lookback( ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__543, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4293, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 4293, __pyx_L1_error) - } - __pyx_L19_break:; - - /* "talib/func.pyx":4294 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_CDLKICKING_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":4295 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLKICKING_Lookback( ) # <<<<<<<<<<<<<< - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_CDLKICKING_Lookback()); - - /* "talib/func.pyx":4296 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLKICKING_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4296, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4296, __pyx_L1_error) - __pyx_v_outinteger = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":4297 - * lookback = begidx + lib.TA_CDLKICKING_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 - */ - __pyx_v_outinteger_data = ((int *)__pyx_v_outinteger->data); - - /* "talib/func.pyx":4298 - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLKICKING( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":4299 - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 # <<<<<<<<<<<<<< - * retCode = lib.TA_CDLKICKING( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _ta_check_success("TA_CDLKICKING", retCode) - */ - (__pyx_v_outinteger_data[__pyx_v_i]) = 0; - } - - /* "talib/func.pyx":4300 - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLKICKING( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_CDLKICKING", retCode) - * return outinteger - */ - __pyx_v_retCode = TA_CDLKICKING(0, __pyx_v_endidx, ((double *)(__pyx_v_open_data + __pyx_v_begidx)), ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outinteger_data + __pyx_v_lookback))); - - /* "talib/func.pyx":4301 - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLKICKING( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _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, 4301, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":4302 - * retCode = lib.TA_CDLKICKING( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _ta_check_success("TA_CDLKICKING", retCode) - * return outinteger # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outinteger)); - __pyx_r = ((PyObject *)__pyx_v_outinteger); - goto __pyx_L0; - - /* "talib/func.pyx":4218 - * @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.func.CDLKICKING", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outinteger); - __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/func.pyx":4306 - * @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_4func_105CDLKICKINGBYLENGTH(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_105CDLKICKINGBYLENGTH = {"CDLKICKINGBYLENGTH", (PyCFunction)__pyx_pw_5talib_4func_105CDLKICKINGBYLENGTH, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_104CDLKICKINGBYLENGTH}; -static PyObject *__pyx_pw_5talib_4func_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, 4306, __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, 4306, __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, 4306, __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, 4306, __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, 4306, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 4306, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 4306, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 4306, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 4306, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_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; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - 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; - PyArrayObject *__pyx_v_outinteger = 0; - int *__pyx_v_outinteger_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __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/func.pyx":4329 - * np.ndarray outinteger - * int* outinteger_data - * 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/func.pyx":4330 - * int* outinteger_data - * 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__544, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4330, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 4330, __pyx_L1_error) - - /* "talib/func.pyx":4329 - * np.ndarray outinteger - * int* outinteger_data - * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("open is not double") - * if open.ndim != 1: - */ - } - - /* "talib/func.pyx":4331 - * 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/func.pyx":4332 - * 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__545, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4332, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 4332, __pyx_L1_error) - - /* "talib/func.pyx":4331 - * 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/func.pyx":4333 - * 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 = open.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":4334 - * raise Exception("open has wrong dimensions") - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< - * open_data = 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, 4334, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4334, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":4333 - * 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 = open.data - */ - } - - /* "talib/func.pyx":4335 - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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/func.pyx":4336 - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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/func.pyx":4337 - * open_data = 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__546, 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/func.pyx":4336 - * open = PyArray_GETCONTIGUOUS(open) - * open_data = open.data - * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("high is not double") - * if high.ndim != 1: - */ - } - - /* "talib/func.pyx":4338 - * 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/func.pyx":4339 - * raise 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__547, 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/func.pyx":4338 - * 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/func.pyx":4340 - * 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 = high.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":4341 - * raise Exception("high has wrong dimensions") - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< - * high_data = 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, 4341, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4341, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":4340 - * 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 = high.data - */ - } - - /* "talib/func.pyx":4342 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":4343 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":4344 - * high_data = 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__548, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4344, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 4344, __pyx_L1_error) - - /* "talib/func.pyx":4343 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = high.data - * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("low is not double") - * if low.ndim != 1: - */ - } - - /* "talib/func.pyx":4345 - * 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/func.pyx":4346 - * raise 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__549, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4346, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 4346, __pyx_L1_error) - - /* "talib/func.pyx":4345 - * 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/func.pyx":4347 - * 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 = low.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":4348 - * raise Exception("low has wrong dimensions") - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< - * low_data = 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, 4348, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4348, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":4347 - * 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 = low.data - */ - } - - /* "talib/func.pyx":4349 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":4350 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":4351 - * low_data = 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__550, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4351, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 4351, __pyx_L1_error) - - /* "talib/func.pyx":4350 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = low.data - * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("close is not double") - * if close.ndim != 1: - */ - } - - /* "talib/func.pyx":4352 - * 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/func.pyx":4353 - * raise 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__551, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4353, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 4353, __pyx_L1_error) - - /* "talib/func.pyx":4352 - * 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/func.pyx":4354 - * 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 = close.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":4355 - * raise Exception("close has wrong dimensions") - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< - * close_data = close.data - * length = open.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4355, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4355, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":4354 - * 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 = close.data - */ - } - - /* "talib/func.pyx":4356 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = close.data # <<<<<<<<<<<<<< - * length = open.shape[0] - * if length != high.shape[0]: - */ - __pyx_v_close_data = ((double *)__pyx_v_close->data); - - /* "talib/func.pyx":4357 - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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/func.pyx":4358 - * close_data = 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/func.pyx":4359 - * 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__552, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4359, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 4359, __pyx_L1_error) - - /* "talib/func.pyx":4358 - * close_data = close.data - * length = open.shape[0] - * if length != high.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * if length != low.shape[0]: - */ - } - - /* "talib/func.pyx":4360 - * 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/func.pyx":4361 - * 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__553, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4361, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 4361, __pyx_L1_error) - - /* "talib/func.pyx":4360 - * 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/func.pyx":4362 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":4363 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__554, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4363, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 4363, __pyx_L1_error) - - /* "talib/func.pyx":4362 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - } - - /* "talib/func.pyx":4364 - * if length != close.shape[0]: - * raise Exception("input lengths are different") - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = open_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":4365 - * raise Exception("input lengths are different") - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = open_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":4366 - * begidx = 0 - * for i from 0 <= i < length: - * val = open_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_open_data[__pyx_v_i]); - - /* "talib/func.pyx":4367 - * for i from 0 <= i < length: - * val = open_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = high_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":4368 - * val = open_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = high_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":4367 - * for i from 0 <= i < length: - * val = open_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = high_data[i] - */ - } - - /* "talib/func.pyx":4369 - * if val != val: - * continue - * val = high_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); - - /* "talib/func.pyx":4370 - * continue - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":4371 - * val = high_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = low_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":4370 - * continue - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - } - - /* "talib/func.pyx":4372 - * if val != val: - * continue - * val = low_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); - - /* "talib/func.pyx":4373 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":4374 - * val = low_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = close_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":4373 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - } - - /* "talib/func.pyx":4375 - * if val != val: - * continue - * val = close_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); - - /* "talib/func.pyx":4376 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":4377 - * val = close_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":4376 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":4378 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":4379 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L19_break; - __pyx_L18_continue:; - } - /*else*/ { - - /* "talib/func.pyx":4381 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLKICKINGBYLENGTH_Lookback( ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__555, 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) - } - __pyx_L19_break:; - - /* "talib/func.pyx":4382 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_CDLKICKINGBYLENGTH_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":4383 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLKICKINGBYLENGTH_Lookback( ) # <<<<<<<<<<<<<< - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_CDLKICKINGBYLENGTH_Lookback()); - - /* "talib/func.pyx":4384 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLKICKINGBYLENGTH_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4384, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4384, __pyx_L1_error) - __pyx_v_outinteger = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":4385 - * lookback = begidx + lib.TA_CDLKICKINGBYLENGTH_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 - */ - __pyx_v_outinteger_data = ((int *)__pyx_v_outinteger->data); - - /* "talib/func.pyx":4386 - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLKICKINGBYLENGTH( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":4387 - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 # <<<<<<<<<<<<<< - * retCode = lib.TA_CDLKICKINGBYLENGTH( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _ta_check_success("TA_CDLKICKINGBYLENGTH", retCode) - */ - (__pyx_v_outinteger_data[__pyx_v_i]) = 0; - } - - /* "talib/func.pyx":4388 - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLKICKINGBYLENGTH( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_CDLKICKINGBYLENGTH", retCode) - * return outinteger - */ - __pyx_v_retCode = TA_CDLKICKINGBYLENGTH(0, __pyx_v_endidx, ((double *)(__pyx_v_open_data + __pyx_v_begidx)), ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outinteger_data + __pyx_v_lookback))); - - /* "talib/func.pyx":4389 - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLKICKINGBYLENGTH( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _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, 4389, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":4390 - * retCode = lib.TA_CDLKICKINGBYLENGTH( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _ta_check_success("TA_CDLKICKINGBYLENGTH", retCode) - * return outinteger # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outinteger)); - __pyx_r = ((PyObject *)__pyx_v_outinteger); - goto __pyx_L0; - - /* "talib/func.pyx":4306 - * @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.func.CDLKICKINGBYLENGTH", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outinteger); - __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/func.pyx":4394 - * @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_4func_107CDLLADDERBOTTOM(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_107CDLLADDERBOTTOM = {"CDLLADDERBOTTOM", (PyCFunction)__pyx_pw_5talib_4func_107CDLLADDERBOTTOM, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_106CDLLADDERBOTTOM}; -static PyObject *__pyx_pw_5talib_4func_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, 4394, __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, 4394, __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, 4394, __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, 4394, __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, 4394, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 4394, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 4394, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 4394, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 4394, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_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; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - 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; - PyArrayObject *__pyx_v_outinteger = 0; - int *__pyx_v_outinteger_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __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/func.pyx":4417 - * np.ndarray outinteger - * int* outinteger_data - * 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/func.pyx":4418 - * int* outinteger_data - * 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__556, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4418, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 4418, __pyx_L1_error) - - /* "talib/func.pyx":4417 - * np.ndarray outinteger - * int* outinteger_data - * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("open is not double") - * if open.ndim != 1: - */ - } - - /* "talib/func.pyx":4419 - * 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/func.pyx":4420 - * 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__557, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4420, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 4420, __pyx_L1_error) - - /* "talib/func.pyx":4419 - * 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/func.pyx":4421 - * 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 = open.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":4422 - * raise Exception("open has wrong dimensions") - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< - * open_data = 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, 4422, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4422, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":4421 - * 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 = open.data - */ - } - - /* "talib/func.pyx":4423 - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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/func.pyx":4424 - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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/func.pyx":4425 - * open_data = 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__558, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4425, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 4425, __pyx_L1_error) - - /* "talib/func.pyx":4424 - * open = PyArray_GETCONTIGUOUS(open) - * open_data = open.data - * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("high is not double") - * if high.ndim != 1: - */ - } - - /* "talib/func.pyx":4426 - * 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/func.pyx":4427 - * raise 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__559, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4427, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 4427, __pyx_L1_error) - - /* "talib/func.pyx":4426 - * 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/func.pyx":4428 - * 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 = high.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":4429 - * raise Exception("high has wrong dimensions") - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< - * high_data = 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, 4429, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4429, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":4428 - * 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 = high.data - */ - } - - /* "talib/func.pyx":4430 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":4431 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":4432 - * high_data = 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__560, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4432, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 4432, __pyx_L1_error) - - /* "talib/func.pyx":4431 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = high.data - * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("low is not double") - * if low.ndim != 1: - */ - } - - /* "talib/func.pyx":4433 - * 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/func.pyx":4434 - * raise 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__561, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4434, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 4434, __pyx_L1_error) - - /* "talib/func.pyx":4433 - * 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/func.pyx":4435 - * 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 = low.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":4436 - * raise Exception("low has wrong dimensions") - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< - * low_data = 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, 4436, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4436, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":4435 - * 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 = low.data - */ - } - - /* "talib/func.pyx":4437 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":4438 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":4439 - * low_data = 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__562, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4439, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 4439, __pyx_L1_error) - - /* "talib/func.pyx":4438 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = low.data - * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("close is not double") - * if close.ndim != 1: - */ - } - - /* "talib/func.pyx":4440 - * 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/func.pyx":4441 - * raise 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__563, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4441, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 4441, __pyx_L1_error) - - /* "talib/func.pyx":4440 - * 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/func.pyx":4442 - * 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 = close.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":4443 - * raise Exception("close has wrong dimensions") - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< - * close_data = close.data - * length = open.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4443, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4443, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":4442 - * 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 = close.data - */ - } - - /* "talib/func.pyx":4444 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = close.data # <<<<<<<<<<<<<< - * length = open.shape[0] - * if length != high.shape[0]: - */ - __pyx_v_close_data = ((double *)__pyx_v_close->data); - - /* "talib/func.pyx":4445 - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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/func.pyx":4446 - * close_data = 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/func.pyx":4447 - * 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__564, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4447, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 4447, __pyx_L1_error) - - /* "talib/func.pyx":4446 - * close_data = close.data - * length = open.shape[0] - * if length != high.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * if length != low.shape[0]: - */ - } - - /* "talib/func.pyx":4448 - * 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/func.pyx":4449 - * 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__565, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4449, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 4449, __pyx_L1_error) - - /* "talib/func.pyx":4448 - * 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/func.pyx":4450 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":4451 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__566, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4451, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 4451, __pyx_L1_error) - - /* "talib/func.pyx":4450 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - } - - /* "talib/func.pyx":4452 - * if length != close.shape[0]: - * raise Exception("input lengths are different") - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = open_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":4453 - * raise Exception("input lengths are different") - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = open_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":4454 - * begidx = 0 - * for i from 0 <= i < length: - * val = open_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_open_data[__pyx_v_i]); - - /* "talib/func.pyx":4455 - * for i from 0 <= i < length: - * val = open_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = high_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":4456 - * val = open_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = high_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":4455 - * for i from 0 <= i < length: - * val = open_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = high_data[i] - */ - } - - /* "talib/func.pyx":4457 - * if val != val: - * continue - * val = high_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); - - /* "talib/func.pyx":4458 - * continue - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":4459 - * val = high_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = low_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":4458 - * continue - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - } - - /* "talib/func.pyx":4460 - * if val != val: - * continue - * val = low_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); - - /* "talib/func.pyx":4461 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":4462 - * val = low_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = close_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":4461 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - } - - /* "talib/func.pyx":4463 - * if val != val: - * continue - * val = close_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); - - /* "talib/func.pyx":4464 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":4465 - * val = close_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":4464 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":4466 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":4467 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L19_break; - __pyx_L18_continue:; - } - /*else*/ { - - /* "talib/func.pyx":4469 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLLADDERBOTTOM_Lookback( ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__567, 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) - } - __pyx_L19_break:; - - /* "talib/func.pyx":4470 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_CDLLADDERBOTTOM_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":4471 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLLADDERBOTTOM_Lookback( ) # <<<<<<<<<<<<<< - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_CDLLADDERBOTTOM_Lookback()); - - /* "talib/func.pyx":4472 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLLADDERBOTTOM_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4472, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4472, __pyx_L1_error) - __pyx_v_outinteger = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":4473 - * lookback = begidx + lib.TA_CDLLADDERBOTTOM_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 - */ - __pyx_v_outinteger_data = ((int *)__pyx_v_outinteger->data); - - /* "talib/func.pyx":4474 - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLLADDERBOTTOM( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":4475 - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 # <<<<<<<<<<<<<< - * retCode = lib.TA_CDLLADDERBOTTOM( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _ta_check_success("TA_CDLLADDERBOTTOM", retCode) - */ - (__pyx_v_outinteger_data[__pyx_v_i]) = 0; - } - - /* "talib/func.pyx":4476 - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLLADDERBOTTOM( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_CDLLADDERBOTTOM", retCode) - * return outinteger - */ - __pyx_v_retCode = TA_CDLLADDERBOTTOM(0, __pyx_v_endidx, ((double *)(__pyx_v_open_data + __pyx_v_begidx)), ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outinteger_data + __pyx_v_lookback))); - - /* "talib/func.pyx":4477 - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLLADDERBOTTOM( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _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, 4477, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":4478 - * retCode = lib.TA_CDLLADDERBOTTOM( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _ta_check_success("TA_CDLLADDERBOTTOM", retCode) - * return outinteger # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outinteger)); - __pyx_r = ((PyObject *)__pyx_v_outinteger); - goto __pyx_L0; - - /* "talib/func.pyx":4394 - * @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.func.CDLLADDERBOTTOM", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outinteger); - __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/func.pyx":4482 - * @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_4func_109CDLLONGLEGGEDDOJI(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_109CDLLONGLEGGEDDOJI = {"CDLLONGLEGGEDDOJI", (PyCFunction)__pyx_pw_5talib_4func_109CDLLONGLEGGEDDOJI, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_108CDLLONGLEGGEDDOJI}; -static PyObject *__pyx_pw_5talib_4func_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, 4482, __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, 4482, __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, 4482, __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, 4482, __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, 4482, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 4482, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 4482, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 4482, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 4482, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_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; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - 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; - PyArrayObject *__pyx_v_outinteger = 0; - int *__pyx_v_outinteger_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __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/func.pyx":4505 - * np.ndarray outinteger - * int* outinteger_data - * 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/func.pyx":4506 - * int* outinteger_data - * 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__568, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4506, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 4506, __pyx_L1_error) - - /* "talib/func.pyx":4505 - * np.ndarray outinteger - * int* outinteger_data - * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("open is not double") - * if open.ndim != 1: - */ - } - - /* "talib/func.pyx":4507 - * 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/func.pyx":4508 - * 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__569, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4508, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 4508, __pyx_L1_error) - - /* "talib/func.pyx":4507 - * 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/func.pyx":4509 - * 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 = open.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":4510 - * raise Exception("open has wrong dimensions") - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< - * open_data = 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, 4510, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4510, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":4509 - * 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 = open.data - */ - } - - /* "talib/func.pyx":4511 - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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/func.pyx":4512 - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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/func.pyx":4513 - * open_data = 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__570, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4513, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 4513, __pyx_L1_error) - - /* "talib/func.pyx":4512 - * open = PyArray_GETCONTIGUOUS(open) - * open_data = open.data - * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("high is not double") - * if high.ndim != 1: - */ - } - - /* "talib/func.pyx":4514 - * 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/func.pyx":4515 - * raise 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__571, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4515, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 4515, __pyx_L1_error) - - /* "talib/func.pyx":4514 - * 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/func.pyx":4516 - * 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 = high.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":4517 - * raise Exception("high has wrong dimensions") - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< - * high_data = 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, 4517, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4517, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":4516 - * 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 = high.data - */ - } - - /* "talib/func.pyx":4518 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":4519 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":4520 - * high_data = 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__572, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4520, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 4520, __pyx_L1_error) - - /* "talib/func.pyx":4519 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = high.data - * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("low is not double") - * if low.ndim != 1: - */ - } - - /* "talib/func.pyx":4521 - * 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/func.pyx":4522 - * raise 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__573, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4522, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 4522, __pyx_L1_error) - - /* "talib/func.pyx":4521 - * 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/func.pyx":4523 - * 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 = low.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":4524 - * raise Exception("low has wrong dimensions") - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< - * low_data = 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, 4524, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4524, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":4523 - * 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 = low.data - */ - } - - /* "talib/func.pyx":4525 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":4526 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":4527 - * low_data = 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__574, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4527, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 4527, __pyx_L1_error) - - /* "talib/func.pyx":4526 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = low.data - * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("close is not double") - * if close.ndim != 1: - */ - } - - /* "talib/func.pyx":4528 - * 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/func.pyx":4529 - * raise 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__575, 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/func.pyx":4528 - * 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/func.pyx":4530 - * 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 = close.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":4531 - * raise Exception("close has wrong dimensions") - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< - * close_data = close.data - * length = open.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4531, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4531, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":4530 - * 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 = close.data - */ - } - - /* "talib/func.pyx":4532 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = close.data # <<<<<<<<<<<<<< - * length = open.shape[0] - * if length != high.shape[0]: - */ - __pyx_v_close_data = ((double *)__pyx_v_close->data); - - /* "talib/func.pyx":4533 - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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/func.pyx":4534 - * close_data = 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/func.pyx":4535 - * 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__576, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4535, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 4535, __pyx_L1_error) - - /* "talib/func.pyx":4534 - * close_data = close.data - * length = open.shape[0] - * if length != high.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * if length != low.shape[0]: - */ - } - - /* "talib/func.pyx":4536 - * 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/func.pyx":4537 - * 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__577, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4537, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 4537, __pyx_L1_error) - - /* "talib/func.pyx":4536 - * 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/func.pyx":4538 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":4539 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__578, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4539, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 4539, __pyx_L1_error) - - /* "talib/func.pyx":4538 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - } - - /* "talib/func.pyx":4540 - * if length != close.shape[0]: - * raise Exception("input lengths are different") - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = open_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":4541 - * raise Exception("input lengths are different") - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = open_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":4542 - * begidx = 0 - * for i from 0 <= i < length: - * val = open_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_open_data[__pyx_v_i]); - - /* "talib/func.pyx":4543 - * for i from 0 <= i < length: - * val = open_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = high_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":4544 - * val = open_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = high_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":4543 - * for i from 0 <= i < length: - * val = open_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = high_data[i] - */ - } - - /* "talib/func.pyx":4545 - * if val != val: - * continue - * val = high_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); - - /* "talib/func.pyx":4546 - * continue - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":4547 - * val = high_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = low_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":4546 - * continue - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - } - - /* "talib/func.pyx":4548 - * if val != val: - * continue - * val = low_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); - - /* "talib/func.pyx":4549 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":4550 - * val = low_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = close_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":4549 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - } - - /* "talib/func.pyx":4551 - * if val != val: - * continue - * val = close_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); - - /* "talib/func.pyx":4552 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":4553 - * val = close_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":4552 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":4554 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":4555 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L19_break; - __pyx_L18_continue:; - } - /*else*/ { - - /* "talib/func.pyx":4557 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLLONGLEGGEDDOJI_Lookback( ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__579, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4557, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 4557, __pyx_L1_error) - } - __pyx_L19_break:; - - /* "talib/func.pyx":4558 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_CDLLONGLEGGEDDOJI_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":4559 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLLONGLEGGEDDOJI_Lookback( ) # <<<<<<<<<<<<<< - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_CDLLONGLEGGEDDOJI_Lookback()); - - /* "talib/func.pyx":4560 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLLONGLEGGEDDOJI_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4560, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4560, __pyx_L1_error) - __pyx_v_outinteger = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":4561 - * lookback = begidx + lib.TA_CDLLONGLEGGEDDOJI_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 - */ - __pyx_v_outinteger_data = ((int *)__pyx_v_outinteger->data); - - /* "talib/func.pyx":4562 - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLLONGLEGGEDDOJI( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":4563 - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 # <<<<<<<<<<<<<< - * retCode = lib.TA_CDLLONGLEGGEDDOJI( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _ta_check_success("TA_CDLLONGLEGGEDDOJI", retCode) - */ - (__pyx_v_outinteger_data[__pyx_v_i]) = 0; - } - - /* "talib/func.pyx":4564 - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLLONGLEGGEDDOJI( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_CDLLONGLEGGEDDOJI", retCode) - * return outinteger - */ - __pyx_v_retCode = TA_CDLLONGLEGGEDDOJI(0, __pyx_v_endidx, ((double *)(__pyx_v_open_data + __pyx_v_begidx)), ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outinteger_data + __pyx_v_lookback))); - - /* "talib/func.pyx":4565 - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLLONGLEGGEDDOJI( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _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, 4565, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":4566 - * retCode = lib.TA_CDLLONGLEGGEDDOJI( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _ta_check_success("TA_CDLLONGLEGGEDDOJI", retCode) - * return outinteger # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outinteger)); - __pyx_r = ((PyObject *)__pyx_v_outinteger); - goto __pyx_L0; - - /* "talib/func.pyx":4482 - * @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.func.CDLLONGLEGGEDDOJI", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outinteger); - __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/func.pyx":4570 - * @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_4func_111CDLLONGLINE(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_111CDLLONGLINE = {"CDLLONGLINE", (PyCFunction)__pyx_pw_5talib_4func_111CDLLONGLINE, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_110CDLLONGLINE}; -static PyObject *__pyx_pw_5talib_4func_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, 4570, __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, 4570, __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, 4570, __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, 4570, __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, 4570, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 4570, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 4570, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 4570, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 4570, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_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; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - 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; - PyArrayObject *__pyx_v_outinteger = 0; - int *__pyx_v_outinteger_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __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/func.pyx":4593 - * np.ndarray outinteger - * int* outinteger_data - * 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/func.pyx":4594 - * int* outinteger_data - * 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, 4594, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 4594, __pyx_L1_error) - - /* "talib/func.pyx":4593 - * np.ndarray outinteger - * int* outinteger_data - * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("open is not double") - * if open.ndim != 1: - */ - } - - /* "talib/func.pyx":4595 - * 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/func.pyx":4596 - * 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, 4596, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 4596, __pyx_L1_error) - - /* "talib/func.pyx":4595 - * 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/func.pyx":4597 - * 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 = open.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":4598 - * raise Exception("open has wrong dimensions") - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< - * open_data = 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, 4598, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4598, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":4597 - * 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 = open.data - */ - } - - /* "talib/func.pyx":4599 - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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/func.pyx":4600 - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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/func.pyx":4601 - * open_data = 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, 4601, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 4601, __pyx_L1_error) - - /* "talib/func.pyx":4600 - * open = PyArray_GETCONTIGUOUS(open) - * open_data = open.data - * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("high is not double") - * if high.ndim != 1: - */ - } - - /* "talib/func.pyx":4602 - * 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/func.pyx":4603 - * raise 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, 4603, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 4603, __pyx_L1_error) - - /* "talib/func.pyx":4602 - * 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/func.pyx":4604 - * 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 = high.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":4605 - * raise Exception("high has wrong dimensions") - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< - * high_data = 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, 4605, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4605, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":4604 - * 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 = high.data - */ - } - - /* "talib/func.pyx":4606 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":4607 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":4608 - * high_data = 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, 4608, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 4608, __pyx_L1_error) - - /* "talib/func.pyx":4607 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = high.data - * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("low is not double") - * if low.ndim != 1: - */ - } - - /* "talib/func.pyx":4609 - * 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/func.pyx":4610 - * raise 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, 4610, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 4610, __pyx_L1_error) - - /* "talib/func.pyx":4609 - * 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/func.pyx":4611 - * 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 = low.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":4612 - * raise Exception("low has wrong dimensions") - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< - * low_data = 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, 4612, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4612, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":4611 - * 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 = low.data - */ - } - - /* "talib/func.pyx":4613 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":4614 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":4615 - * low_data = 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, 4615, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 4615, __pyx_L1_error) - - /* "talib/func.pyx":4614 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = low.data - * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("close is not double") - * if close.ndim != 1: - */ - } - - /* "talib/func.pyx":4616 - * 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/func.pyx":4617 - * raise 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, 4617, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 4617, __pyx_L1_error) - - /* "talib/func.pyx":4616 - * 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/func.pyx":4618 - * 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 = close.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":4619 - * raise Exception("close has wrong dimensions") - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< - * close_data = close.data - * length = open.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4619, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4619, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":4618 - * 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 = close.data - */ - } - - /* "talib/func.pyx":4620 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = close.data # <<<<<<<<<<<<<< - * length = open.shape[0] - * if length != high.shape[0]: - */ - __pyx_v_close_data = ((double *)__pyx_v_close->data); - - /* "talib/func.pyx":4621 - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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/func.pyx":4622 - * close_data = 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/func.pyx":4623 - * 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, 4623, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 4623, __pyx_L1_error) - - /* "talib/func.pyx":4622 - * close_data = close.data - * length = open.shape[0] - * if length != high.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * if length != low.shape[0]: - */ - } - - /* "talib/func.pyx":4624 - * 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/func.pyx":4625 - * 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, 4625, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 4625, __pyx_L1_error) - - /* "talib/func.pyx":4624 - * 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/func.pyx":4626 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":4627 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__590, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4627, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 4627, __pyx_L1_error) - - /* "talib/func.pyx":4626 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - } - - /* "talib/func.pyx":4628 - * if length != close.shape[0]: - * raise Exception("input lengths are different") - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = open_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":4629 - * raise Exception("input lengths are different") - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = open_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":4630 - * begidx = 0 - * for i from 0 <= i < length: - * val = open_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_open_data[__pyx_v_i]); - - /* "talib/func.pyx":4631 - * for i from 0 <= i < length: - * val = open_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = high_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":4632 - * val = open_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = high_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":4631 - * for i from 0 <= i < length: - * val = open_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = high_data[i] - */ - } - - /* "talib/func.pyx":4633 - * if val != val: - * continue - * val = high_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); - - /* "talib/func.pyx":4634 - * continue - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":4635 - * val = high_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = low_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":4634 - * continue - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - } - - /* "talib/func.pyx":4636 - * if val != val: - * continue - * val = low_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); - - /* "talib/func.pyx":4637 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":4638 - * val = low_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = close_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":4637 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - } - - /* "talib/func.pyx":4639 - * if val != val: - * continue - * val = close_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); - - /* "talib/func.pyx":4640 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":4641 - * val = close_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":4640 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":4642 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":4643 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L19_break; - __pyx_L18_continue:; - } - /*else*/ { - - /* "talib/func.pyx":4645 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLLONGLINE_Lookback( ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__591, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4645, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 4645, __pyx_L1_error) - } - __pyx_L19_break:; - - /* "talib/func.pyx":4646 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_CDLLONGLINE_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":4647 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLLONGLINE_Lookback( ) # <<<<<<<<<<<<<< - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_CDLLONGLINE_Lookback()); - - /* "talib/func.pyx":4648 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLLONGLINE_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4648, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4648, __pyx_L1_error) - __pyx_v_outinteger = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":4649 - * lookback = begidx + lib.TA_CDLLONGLINE_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 - */ - __pyx_v_outinteger_data = ((int *)__pyx_v_outinteger->data); - - /* "talib/func.pyx":4650 - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLLONGLINE( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":4651 - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 # <<<<<<<<<<<<<< - * retCode = lib.TA_CDLLONGLINE( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _ta_check_success("TA_CDLLONGLINE", retCode) - */ - (__pyx_v_outinteger_data[__pyx_v_i]) = 0; - } - - /* "talib/func.pyx":4652 - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLLONGLINE( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_CDLLONGLINE", retCode) - * return outinteger - */ - __pyx_v_retCode = TA_CDLLONGLINE(0, __pyx_v_endidx, ((double *)(__pyx_v_open_data + __pyx_v_begidx)), ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outinteger_data + __pyx_v_lookback))); - - /* "talib/func.pyx":4653 - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLLONGLINE( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _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, 4653, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":4654 - * retCode = lib.TA_CDLLONGLINE( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _ta_check_success("TA_CDLLONGLINE", retCode) - * return outinteger # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outinteger)); - __pyx_r = ((PyObject *)__pyx_v_outinteger); - goto __pyx_L0; - - /* "talib/func.pyx":4570 - * @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.func.CDLLONGLINE", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outinteger); - __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/func.pyx":4658 - * @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_4func_113CDLMARUBOZU(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_113CDLMARUBOZU = {"CDLMARUBOZU", (PyCFunction)__pyx_pw_5talib_4func_113CDLMARUBOZU, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_112CDLMARUBOZU}; -static PyObject *__pyx_pw_5talib_4func_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, 4658, __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, 4658, __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, 4658, __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, 4658, __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, 4658, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 4658, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 4658, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 4658, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 4658, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_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; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - 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; - PyArrayObject *__pyx_v_outinteger = 0; - int *__pyx_v_outinteger_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __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/func.pyx":4681 - * np.ndarray outinteger - * int* outinteger_data - * 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/func.pyx":4682 - * int* outinteger_data - * 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__592, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4682, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 4682, __pyx_L1_error) - - /* "talib/func.pyx":4681 - * np.ndarray outinteger - * int* outinteger_data - * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("open is not double") - * if open.ndim != 1: - */ - } - - /* "talib/func.pyx":4683 - * 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/func.pyx":4684 - * 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__593, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4684, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 4684, __pyx_L1_error) - - /* "talib/func.pyx":4683 - * 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/func.pyx":4685 - * 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 = open.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":4686 - * raise Exception("open has wrong dimensions") - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< - * open_data = 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, 4686, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4686, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":4685 - * 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 = open.data - */ - } - - /* "talib/func.pyx":4687 - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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/func.pyx":4688 - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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/func.pyx":4689 - * open_data = 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__594, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4689, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 4689, __pyx_L1_error) - - /* "talib/func.pyx":4688 - * open = PyArray_GETCONTIGUOUS(open) - * open_data = open.data - * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("high is not double") - * if high.ndim != 1: - */ - } - - /* "talib/func.pyx":4690 - * 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/func.pyx":4691 - * raise 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__595, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4691, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 4691, __pyx_L1_error) - - /* "talib/func.pyx":4690 - * 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/func.pyx":4692 - * 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 = high.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":4693 - * raise Exception("high has wrong dimensions") - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< - * high_data = 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, 4693, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4693, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":4692 - * 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 = high.data - */ - } - - /* "talib/func.pyx":4694 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":4695 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":4696 - * high_data = 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__596, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4696, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 4696, __pyx_L1_error) - - /* "talib/func.pyx":4695 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = high.data - * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("low is not double") - * if low.ndim != 1: - */ - } - - /* "talib/func.pyx":4697 - * 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/func.pyx":4698 - * raise 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__597, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4698, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 4698, __pyx_L1_error) - - /* "talib/func.pyx":4697 - * 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/func.pyx":4699 - * 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 = low.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":4700 - * raise Exception("low has wrong dimensions") - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< - * low_data = 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, 4700, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4700, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":4699 - * 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 = low.data - */ - } - - /* "talib/func.pyx":4701 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":4702 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":4703 - * low_data = 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__598, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4703, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 4703, __pyx_L1_error) - - /* "talib/func.pyx":4702 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = low.data - * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("close is not double") - * if close.ndim != 1: - */ - } - - /* "talib/func.pyx":4704 - * 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/func.pyx":4705 - * raise 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__599, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4705, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 4705, __pyx_L1_error) - - /* "talib/func.pyx":4704 - * 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/func.pyx":4706 - * 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 = close.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":4707 - * raise Exception("close has wrong dimensions") - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< - * close_data = close.data - * length = open.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4707, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4707, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":4706 - * 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 = close.data - */ - } - - /* "talib/func.pyx":4708 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = close.data # <<<<<<<<<<<<<< - * length = open.shape[0] - * if length != high.shape[0]: - */ - __pyx_v_close_data = ((double *)__pyx_v_close->data); - - /* "talib/func.pyx":4709 - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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/func.pyx":4710 - * close_data = 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/func.pyx":4711 - * 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__600, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4711, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 4711, __pyx_L1_error) - - /* "talib/func.pyx":4710 - * close_data = close.data - * length = open.shape[0] - * if length != high.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * if length != low.shape[0]: - */ - } - - /* "talib/func.pyx":4712 - * 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/func.pyx":4713 - * 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__601, 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/func.pyx":4712 - * 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/func.pyx":4714 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":4715 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__602, 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/func.pyx":4714 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - } - - /* "talib/func.pyx":4716 - * if length != close.shape[0]: - * raise Exception("input lengths are different") - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = open_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":4717 - * raise Exception("input lengths are different") - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = open_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":4718 - * begidx = 0 - * for i from 0 <= i < length: - * val = open_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_open_data[__pyx_v_i]); - - /* "talib/func.pyx":4719 - * for i from 0 <= i < length: - * val = open_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = high_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":4720 - * val = open_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = high_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":4719 - * for i from 0 <= i < length: - * val = open_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = high_data[i] - */ - } - - /* "talib/func.pyx":4721 - * if val != val: - * continue - * val = high_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); - - /* "talib/func.pyx":4722 - * continue - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":4723 - * val = high_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = low_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":4722 - * continue - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - } - - /* "talib/func.pyx":4724 - * if val != val: - * continue - * val = low_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); - - /* "talib/func.pyx":4725 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":4726 - * val = low_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = close_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":4725 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - } - - /* "talib/func.pyx":4727 - * if val != val: - * continue - * val = close_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); - - /* "talib/func.pyx":4728 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":4729 - * val = close_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":4728 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":4730 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":4731 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L19_break; - __pyx_L18_continue:; - } - /*else*/ { - - /* "talib/func.pyx":4733 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLMARUBOZU_Lookback( ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__603, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4733, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 4733, __pyx_L1_error) - } - __pyx_L19_break:; - - /* "talib/func.pyx":4734 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_CDLMARUBOZU_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":4735 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLMARUBOZU_Lookback( ) # <<<<<<<<<<<<<< - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_CDLMARUBOZU_Lookback()); - - /* "talib/func.pyx":4736 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLMARUBOZU_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4736, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4736, __pyx_L1_error) - __pyx_v_outinteger = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":4737 - * lookback = begidx + lib.TA_CDLMARUBOZU_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 - */ - __pyx_v_outinteger_data = ((int *)__pyx_v_outinteger->data); - - /* "talib/func.pyx":4738 - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLMARUBOZU( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":4739 - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 # <<<<<<<<<<<<<< - * retCode = lib.TA_CDLMARUBOZU( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _ta_check_success("TA_CDLMARUBOZU", retCode) - */ - (__pyx_v_outinteger_data[__pyx_v_i]) = 0; - } - - /* "talib/func.pyx":4740 - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLMARUBOZU( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_CDLMARUBOZU", retCode) - * return outinteger - */ - __pyx_v_retCode = TA_CDLMARUBOZU(0, __pyx_v_endidx, ((double *)(__pyx_v_open_data + __pyx_v_begidx)), ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outinteger_data + __pyx_v_lookback))); - - /* "talib/func.pyx":4741 - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLMARUBOZU( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _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, 4741, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":4742 - * retCode = lib.TA_CDLMARUBOZU( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _ta_check_success("TA_CDLMARUBOZU", retCode) - * return outinteger # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outinteger)); - __pyx_r = ((PyObject *)__pyx_v_outinteger); - goto __pyx_L0; - - /* "talib/func.pyx":4658 - * @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.func.CDLMARUBOZU", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outinteger); - __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/func.pyx":4746 - * @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_4func_115CDLMATCHINGLOW(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_115CDLMATCHINGLOW = {"CDLMATCHINGLOW", (PyCFunction)__pyx_pw_5talib_4func_115CDLMATCHINGLOW, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_114CDLMATCHINGLOW}; -static PyObject *__pyx_pw_5talib_4func_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, 4746, __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, 4746, __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, 4746, __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, 4746, __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, 4746, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 4746, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 4746, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 4746, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 4746, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_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; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - 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; - PyArrayObject *__pyx_v_outinteger = 0; - int *__pyx_v_outinteger_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __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/func.pyx":4769 - * np.ndarray outinteger - * int* outinteger_data - * 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/func.pyx":4770 - * int* outinteger_data - * 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__604, 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/func.pyx":4769 - * np.ndarray outinteger - * int* outinteger_data - * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("open is not double") - * if open.ndim != 1: - */ - } - - /* "talib/func.pyx":4771 - * 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/func.pyx":4772 - * 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__605, 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/func.pyx":4771 - * 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/func.pyx":4773 - * 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 = open.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":4774 - * raise Exception("open has wrong dimensions") - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< - * open_data = 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, 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_open, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":4773 - * 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 = open.data - */ - } - - /* "talib/func.pyx":4775 - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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/func.pyx":4776 - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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/func.pyx":4777 - * open_data = 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__606, 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/func.pyx":4776 - * open = PyArray_GETCONTIGUOUS(open) - * open_data = open.data - * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("high is not double") - * if high.ndim != 1: - */ - } - - /* "talib/func.pyx":4778 - * 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/func.pyx":4779 - * raise 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__607, 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/func.pyx":4778 - * 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/func.pyx":4780 - * 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 = high.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":4781 - * raise Exception("high has wrong dimensions") - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< - * high_data = 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, 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_high, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":4780 - * 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 = high.data - */ - } - - /* "talib/func.pyx":4782 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":4783 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":4784 - * high_data = 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__608, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4784, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 4784, __pyx_L1_error) - - /* "talib/func.pyx":4783 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = high.data - * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("low is not double") - * if low.ndim != 1: - */ - } - - /* "talib/func.pyx":4785 - * 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/func.pyx":4786 - * raise 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__609, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4786, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 4786, __pyx_L1_error) - - /* "talib/func.pyx":4785 - * 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/func.pyx":4787 - * 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 = low.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":4788 - * raise Exception("low has wrong dimensions") - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< - * low_data = 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, 4788, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4788, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":4787 - * 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 = low.data - */ - } - - /* "talib/func.pyx":4789 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":4790 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":4791 - * low_data = 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__610, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4791, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 4791, __pyx_L1_error) - - /* "talib/func.pyx":4790 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = low.data - * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("close is not double") - * if close.ndim != 1: - */ - } - - /* "talib/func.pyx":4792 - * 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/func.pyx":4793 - * raise 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__611, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4793, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 4793, __pyx_L1_error) - - /* "talib/func.pyx":4792 - * 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/func.pyx":4794 - * 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 = close.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":4795 - * raise Exception("close has wrong dimensions") - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< - * close_data = close.data - * length = open.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4795, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4795, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":4794 - * 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 = close.data - */ - } - - /* "talib/func.pyx":4796 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = close.data # <<<<<<<<<<<<<< - * length = open.shape[0] - * if length != high.shape[0]: - */ - __pyx_v_close_data = ((double *)__pyx_v_close->data); - - /* "talib/func.pyx":4797 - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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/func.pyx":4798 - * close_data = 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/func.pyx":4799 - * 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__612, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4799, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 4799, __pyx_L1_error) - - /* "talib/func.pyx":4798 - * close_data = close.data - * length = open.shape[0] - * if length != high.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * if length != low.shape[0]: - */ - } - - /* "talib/func.pyx":4800 - * 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/func.pyx":4801 - * 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__613, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4801, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 4801, __pyx_L1_error) - - /* "talib/func.pyx":4800 - * 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/func.pyx":4802 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":4803 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__614, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4803, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 4803, __pyx_L1_error) - - /* "talib/func.pyx":4802 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - } - - /* "talib/func.pyx":4804 - * if length != close.shape[0]: - * raise Exception("input lengths are different") - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = open_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":4805 - * raise Exception("input lengths are different") - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = open_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":4806 - * begidx = 0 - * for i from 0 <= i < length: - * val = open_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_open_data[__pyx_v_i]); - - /* "talib/func.pyx":4807 - * for i from 0 <= i < length: - * val = open_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = high_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":4808 - * val = open_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = high_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":4807 - * for i from 0 <= i < length: - * val = open_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = high_data[i] - */ - } - - /* "talib/func.pyx":4809 - * if val != val: - * continue - * val = high_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); - - /* "talib/func.pyx":4810 - * continue - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":4811 - * val = high_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = low_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":4810 - * continue - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - } - - /* "talib/func.pyx":4812 - * if val != val: - * continue - * val = low_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); - - /* "talib/func.pyx":4813 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":4814 - * val = low_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = close_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":4813 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - } - - /* "talib/func.pyx":4815 - * if val != val: - * continue - * val = close_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); - - /* "talib/func.pyx":4816 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":4817 - * val = close_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":4816 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":4818 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":4819 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L19_break; - __pyx_L18_continue:; - } - /*else*/ { - - /* "talib/func.pyx":4821 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLMATCHINGLOW_Lookback( ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__615, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4821, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 4821, __pyx_L1_error) - } - __pyx_L19_break:; - - /* "talib/func.pyx":4822 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_CDLMATCHINGLOW_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":4823 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLMATCHINGLOW_Lookback( ) # <<<<<<<<<<<<<< - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_CDLMATCHINGLOW_Lookback()); - - /* "talib/func.pyx":4824 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLMATCHINGLOW_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4824, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4824, __pyx_L1_error) - __pyx_v_outinteger = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":4825 - * lookback = begidx + lib.TA_CDLMATCHINGLOW_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 - */ - __pyx_v_outinteger_data = ((int *)__pyx_v_outinteger->data); - - /* "talib/func.pyx":4826 - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLMATCHINGLOW( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":4827 - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 # <<<<<<<<<<<<<< - * retCode = lib.TA_CDLMATCHINGLOW( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _ta_check_success("TA_CDLMATCHINGLOW", retCode) - */ - (__pyx_v_outinteger_data[__pyx_v_i]) = 0; - } - - /* "talib/func.pyx":4828 - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLMATCHINGLOW( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_CDLMATCHINGLOW", retCode) - * return outinteger - */ - __pyx_v_retCode = TA_CDLMATCHINGLOW(0, __pyx_v_endidx, ((double *)(__pyx_v_open_data + __pyx_v_begidx)), ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outinteger_data + __pyx_v_lookback))); - - /* "talib/func.pyx":4829 - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLMATCHINGLOW( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _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, 4829, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":4830 - * retCode = lib.TA_CDLMATCHINGLOW( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _ta_check_success("TA_CDLMATCHINGLOW", retCode) - * return outinteger # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outinteger)); - __pyx_r = ((PyObject *)__pyx_v_outinteger); - goto __pyx_L0; - - /* "talib/func.pyx":4746 - * @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.func.CDLMATCHINGLOW", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outinteger); - __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/func.pyx":4834 - * @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_4func_117CDLMATHOLD(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_117CDLMATHOLD = {"CDLMATHOLD", (PyCFunction)__pyx_pw_5talib_4func_117CDLMATHOLD, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_116CDLMATHOLD}; -static PyObject *__pyx_pw_5talib_4func_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, 4834, __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, 4834, __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, 4834, __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, 4834, __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, 4834, __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, 4834, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 4834, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 4834, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 4834, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 4834, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_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; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - 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; - PyArrayObject *__pyx_v_outinteger = 0; - int *__pyx_v_outinteger_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __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/func.pyx":4859 - * np.ndarray outinteger - * int* outinteger_data - * 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/func.pyx":4860 - * int* outinteger_data - * 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__616, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4860, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 4860, __pyx_L1_error) - - /* "talib/func.pyx":4859 - * np.ndarray outinteger - * int* outinteger_data - * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("open is not double") - * if open.ndim != 1: - */ - } - - /* "talib/func.pyx":4861 - * 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/func.pyx":4862 - * 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__617, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4862, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 4862, __pyx_L1_error) - - /* "talib/func.pyx":4861 - * 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/func.pyx":4863 - * 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 = open.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":4864 - * raise Exception("open has wrong dimensions") - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< - * open_data = 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, 4864, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4864, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":4863 - * 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 = open.data - */ - } - - /* "talib/func.pyx":4865 - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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/func.pyx":4866 - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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/func.pyx":4867 - * open_data = 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__618, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4867, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 4867, __pyx_L1_error) - - /* "talib/func.pyx":4866 - * open = PyArray_GETCONTIGUOUS(open) - * open_data = open.data - * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("high is not double") - * if high.ndim != 1: - */ - } - - /* "talib/func.pyx":4868 - * 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/func.pyx":4869 - * raise 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__619, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4869, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 4869, __pyx_L1_error) - - /* "talib/func.pyx":4868 - * 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/func.pyx":4870 - * 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 = high.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":4871 - * raise Exception("high has wrong dimensions") - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< - * high_data = 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, 4871, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4871, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":4870 - * 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 = high.data - */ - } - - /* "talib/func.pyx":4872 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":4873 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":4874 - * high_data = 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__620, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4874, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 4874, __pyx_L1_error) - - /* "talib/func.pyx":4873 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = high.data - * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("low is not double") - * if low.ndim != 1: - */ - } - - /* "talib/func.pyx":4875 - * 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/func.pyx":4876 - * raise 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__621, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4876, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 4876, __pyx_L1_error) - - /* "talib/func.pyx":4875 - * 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/func.pyx":4877 - * 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 = low.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":4878 - * raise Exception("low has wrong dimensions") - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< - * low_data = 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, 4878, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4878, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":4877 - * 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 = low.data - */ - } - - /* "talib/func.pyx":4879 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":4880 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":4881 - * low_data = 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__622, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4881, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 4881, __pyx_L1_error) - - /* "talib/func.pyx":4880 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = low.data - * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("close is not double") - * if close.ndim != 1: - */ - } - - /* "talib/func.pyx":4882 - * 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/func.pyx":4883 - * raise 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__623, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4883, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 4883, __pyx_L1_error) - - /* "talib/func.pyx":4882 - * 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/func.pyx":4884 - * 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 = close.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":4885 - * raise Exception("close has wrong dimensions") - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< - * close_data = close.data - * length = open.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4885, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4885, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":4884 - * 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 = close.data - */ - } - - /* "talib/func.pyx":4886 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = close.data # <<<<<<<<<<<<<< - * length = open.shape[0] - * if length != high.shape[0]: - */ - __pyx_v_close_data = ((double *)__pyx_v_close->data); - - /* "talib/func.pyx":4887 - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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/func.pyx":4888 - * close_data = 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/func.pyx":4889 - * 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__624, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4889, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 4889, __pyx_L1_error) - - /* "talib/func.pyx":4888 - * close_data = close.data - * length = open.shape[0] - * if length != high.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * if length != low.shape[0]: - */ - } - - /* "talib/func.pyx":4890 - * 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/func.pyx":4891 - * 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__625, 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/func.pyx":4890 - * 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/func.pyx":4892 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":4893 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__626, 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/func.pyx":4892 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - } - - /* "talib/func.pyx":4894 - * if length != close.shape[0]: - * raise Exception("input lengths are different") - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = open_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":4895 - * raise Exception("input lengths are different") - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = open_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":4896 - * begidx = 0 - * for i from 0 <= i < length: - * val = open_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_open_data[__pyx_v_i]); - - /* "talib/func.pyx":4897 - * for i from 0 <= i < length: - * val = open_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = high_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":4898 - * val = open_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = high_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":4897 - * for i from 0 <= i < length: - * val = open_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = high_data[i] - */ - } - - /* "talib/func.pyx":4899 - * if val != val: - * continue - * val = high_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); - - /* "talib/func.pyx":4900 - * continue - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":4901 - * val = high_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = low_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":4900 - * continue - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - } - - /* "talib/func.pyx":4902 - * if val != val: - * continue - * val = low_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); - - /* "talib/func.pyx":4903 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":4904 - * val = low_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = close_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":4903 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - } - - /* "talib/func.pyx":4905 - * if val != val: - * continue - * val = close_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); - - /* "talib/func.pyx":4906 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":4907 - * val = close_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":4906 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":4908 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":4909 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L19_break; - __pyx_L18_continue:; - } - /*else*/ { - - /* "talib/func.pyx":4911 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLMATHOLD_Lookback( penetration ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__627, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4911, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 4911, __pyx_L1_error) - } - __pyx_L19_break:; - - /* "talib/func.pyx":4912 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_CDLMATHOLD_Lookback( penetration ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":4913 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLMATHOLD_Lookback( penetration ) # <<<<<<<<<<<<<< - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_CDLMATHOLD_Lookback(__pyx_v_penetration)); - - /* "talib/func.pyx":4914 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLMATHOLD_Lookback( penetration ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4914, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4914, __pyx_L1_error) - __pyx_v_outinteger = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":4915 - * lookback = begidx + lib.TA_CDLMATHOLD_Lookback( penetration ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 - */ - __pyx_v_outinteger_data = ((int *)__pyx_v_outinteger->data); - - /* "talib/func.pyx":4916 - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLMATHOLD( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , penetration , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":4917 - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 # <<<<<<<<<<<<<< - * retCode = lib.TA_CDLMATHOLD( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , penetration , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _ta_check_success("TA_CDLMATHOLD", retCode) - */ - (__pyx_v_outinteger_data[__pyx_v_i]) = 0; - } - - /* "talib/func.pyx":4918 - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLMATHOLD( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , penetration , &outbegidx , &outnbelement , (outinteger_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_CDLMATHOLD", retCode) - * return outinteger - */ - __pyx_v_retCode = TA_CDLMATHOLD(0, __pyx_v_endidx, ((double *)(__pyx_v_open_data + __pyx_v_begidx)), ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), __pyx_v_penetration, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outinteger_data + __pyx_v_lookback))); - - /* "talib/func.pyx":4919 - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLMATHOLD( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , penetration , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _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, 4919, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":4920 - * retCode = lib.TA_CDLMATHOLD( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , penetration , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _ta_check_success("TA_CDLMATHOLD", retCode) - * return outinteger # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outinteger)); - __pyx_r = ((PyObject *)__pyx_v_outinteger); - goto __pyx_L0; - - /* "talib/func.pyx":4834 - * @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.func.CDLMATHOLD", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outinteger); - __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/func.pyx":4924 - * @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_4func_119CDLMORNINGDOJISTAR(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_119CDLMORNINGDOJISTAR = {"CDLMORNINGDOJISTAR", (PyCFunction)__pyx_pw_5talib_4func_119CDLMORNINGDOJISTAR, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_118CDLMORNINGDOJISTAR}; -static PyObject *__pyx_pw_5talib_4func_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, 4924, __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, 4924, __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, 4924, __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, 4924, __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, 4924, __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, 4924, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 4924, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 4924, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 4924, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 4924, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_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; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - 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; - PyArrayObject *__pyx_v_outinteger = 0; - int *__pyx_v_outinteger_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __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/func.pyx":4949 - * np.ndarray outinteger - * int* outinteger_data - * 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/func.pyx":4950 - * int* outinteger_data - * 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__628, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4950, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 4950, __pyx_L1_error) - - /* "talib/func.pyx":4949 - * np.ndarray outinteger - * int* outinteger_data - * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("open is not double") - * if open.ndim != 1: - */ - } - - /* "talib/func.pyx":4951 - * 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/func.pyx":4952 - * 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__629, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4952, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 4952, __pyx_L1_error) - - /* "talib/func.pyx":4951 - * 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/func.pyx":4953 - * 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 = open.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":4954 - * raise Exception("open has wrong dimensions") - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< - * open_data = 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, 4954, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4954, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":4953 - * 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 = open.data - */ - } - - /* "talib/func.pyx":4955 - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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/func.pyx":4956 - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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/func.pyx":4957 - * open_data = 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__630, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4957, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 4957, __pyx_L1_error) - - /* "talib/func.pyx":4956 - * open = PyArray_GETCONTIGUOUS(open) - * open_data = open.data - * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("high is not double") - * if high.ndim != 1: - */ - } - - /* "talib/func.pyx":4958 - * 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/func.pyx":4959 - * raise 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__631, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4959, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 4959, __pyx_L1_error) - - /* "talib/func.pyx":4958 - * 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/func.pyx":4960 - * 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 = high.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":4961 - * raise Exception("high has wrong dimensions") - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< - * high_data = 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, 4961, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4961, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":4960 - * 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 = high.data - */ - } - - /* "talib/func.pyx":4962 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":4963 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":4964 - * high_data = 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__632, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4964, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 4964, __pyx_L1_error) - - /* "talib/func.pyx":4963 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = high.data - * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("low is not double") - * if low.ndim != 1: - */ - } - - /* "talib/func.pyx":4965 - * 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/func.pyx":4966 - * raise 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__633, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4966, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 4966, __pyx_L1_error) - - /* "talib/func.pyx":4965 - * 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/func.pyx":4967 - * 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 = low.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":4968 - * raise Exception("low has wrong dimensions") - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< - * low_data = 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, 4968, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4968, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":4967 - * 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 = low.data - */ - } - - /* "talib/func.pyx":4969 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":4970 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":4971 - * low_data = 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__634, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4971, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 4971, __pyx_L1_error) - - /* "talib/func.pyx":4970 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = low.data - * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("close is not double") - * if close.ndim != 1: - */ - } - - /* "talib/func.pyx":4972 - * 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/func.pyx":4973 - * raise 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__635, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4973, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 4973, __pyx_L1_error) - - /* "talib/func.pyx":4972 - * 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/func.pyx":4974 - * 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 = close.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":4975 - * raise Exception("close has wrong dimensions") - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< - * close_data = close.data - * length = open.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4975, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 4975, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":4974 - * 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 = close.data - */ - } - - /* "talib/func.pyx":4976 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = close.data # <<<<<<<<<<<<<< - * length = open.shape[0] - * if length != high.shape[0]: - */ - __pyx_v_close_data = ((double *)__pyx_v_close->data); - - /* "talib/func.pyx":4977 - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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/func.pyx":4978 - * close_data = 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/func.pyx":4979 - * 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__636, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4979, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 4979, __pyx_L1_error) - - /* "talib/func.pyx":4978 - * close_data = close.data - * length = open.shape[0] - * if length != high.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * if length != low.shape[0]: - */ - } - - /* "talib/func.pyx":4980 - * 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/func.pyx":4981 - * 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__637, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4981, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 4981, __pyx_L1_error) - - /* "talib/func.pyx":4980 - * 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/func.pyx":4982 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":4983 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__638, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 4983, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 4983, __pyx_L1_error) - - /* "talib/func.pyx":4982 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - } - - /* "talib/func.pyx":4984 - * if length != close.shape[0]: - * raise Exception("input lengths are different") - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = open_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":4985 - * raise Exception("input lengths are different") - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = open_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":4986 - * begidx = 0 - * for i from 0 <= i < length: - * val = open_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_open_data[__pyx_v_i]); - - /* "talib/func.pyx":4987 - * for i from 0 <= i < length: - * val = open_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = high_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":4988 - * val = open_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = high_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":4987 - * for i from 0 <= i < length: - * val = open_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = high_data[i] - */ - } - - /* "talib/func.pyx":4989 - * if val != val: - * continue - * val = high_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); - - /* "talib/func.pyx":4990 - * continue - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":4991 - * val = high_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = low_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":4990 - * continue - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - } - - /* "talib/func.pyx":4992 - * if val != val: - * continue - * val = low_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); - - /* "talib/func.pyx":4993 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":4994 - * val = low_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = close_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":4993 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - } - - /* "talib/func.pyx":4995 - * if val != val: - * continue - * val = close_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); - - /* "talib/func.pyx":4996 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":4997 - * val = close_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":4996 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":4998 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":4999 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L19_break; - __pyx_L18_continue:; - } - /*else*/ { - - /* "talib/func.pyx":5001 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLMORNINGDOJISTAR_Lookback( penetration ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__639, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5001, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 5001, __pyx_L1_error) - } - __pyx_L19_break:; - - /* "talib/func.pyx":5002 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_CDLMORNINGDOJISTAR_Lookback( penetration ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":5003 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLMORNINGDOJISTAR_Lookback( penetration ) # <<<<<<<<<<<<<< - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_CDLMORNINGDOJISTAR_Lookback(__pyx_v_penetration)); - - /* "talib/func.pyx":5004 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLMORNINGDOJISTAR_Lookback( penetration ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5004, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 5004, __pyx_L1_error) - __pyx_v_outinteger = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":5005 - * lookback = begidx + lib.TA_CDLMORNINGDOJISTAR_Lookback( penetration ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 - */ - __pyx_v_outinteger_data = ((int *)__pyx_v_outinteger->data); - - /* "talib/func.pyx":5006 - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLMORNINGDOJISTAR( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , penetration , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":5007 - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 # <<<<<<<<<<<<<< - * retCode = lib.TA_CDLMORNINGDOJISTAR( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , penetration , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _ta_check_success("TA_CDLMORNINGDOJISTAR", retCode) - */ - (__pyx_v_outinteger_data[__pyx_v_i]) = 0; - } - - /* "talib/func.pyx":5008 - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLMORNINGDOJISTAR( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , penetration , &outbegidx , &outnbelement , (outinteger_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_CDLMORNINGDOJISTAR", retCode) - * return outinteger - */ - __pyx_v_retCode = TA_CDLMORNINGDOJISTAR(0, __pyx_v_endidx, ((double *)(__pyx_v_open_data + __pyx_v_begidx)), ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), __pyx_v_penetration, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outinteger_data + __pyx_v_lookback))); - - /* "talib/func.pyx":5009 - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLMORNINGDOJISTAR( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , penetration , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _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, 5009, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":5010 - * retCode = lib.TA_CDLMORNINGDOJISTAR( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , penetration , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _ta_check_success("TA_CDLMORNINGDOJISTAR", retCode) - * return outinteger # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outinteger)); - __pyx_r = ((PyObject *)__pyx_v_outinteger); - goto __pyx_L0; - - /* "talib/func.pyx":4924 - * @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.func.CDLMORNINGDOJISTAR", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outinteger); - __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/func.pyx":5014 - * @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_4func_121CDLMORNINGSTAR(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_121CDLMORNINGSTAR = {"CDLMORNINGSTAR", (PyCFunction)__pyx_pw_5talib_4func_121CDLMORNINGSTAR, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_120CDLMORNINGSTAR}; -static PyObject *__pyx_pw_5talib_4func_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, 5014, __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, 5014, __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, 5014, __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, 5014, __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, 5014, __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, 5014, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 5014, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 5014, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 5014, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 5014, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_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; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - 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; - PyArrayObject *__pyx_v_outinteger = 0; - int *__pyx_v_outinteger_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __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/func.pyx":5039 - * np.ndarray outinteger - * int* outinteger_data - * 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/func.pyx":5040 - * int* outinteger_data - * 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__640, 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/func.pyx":5039 - * np.ndarray outinteger - * int* outinteger_data - * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("open is not double") - * if open.ndim != 1: - */ - } - - /* "talib/func.pyx":5041 - * 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/func.pyx":5042 - * 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__641, 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/func.pyx":5041 - * 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/func.pyx":5043 - * 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 = open.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":5044 - * raise Exception("open has wrong dimensions") - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< - * open_data = 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, 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_open, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":5043 - * 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 = open.data - */ - } - - /* "talib/func.pyx":5045 - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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/func.pyx":5046 - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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/func.pyx":5047 - * open_data = 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__642, 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/func.pyx":5046 - * open = PyArray_GETCONTIGUOUS(open) - * open_data = open.data - * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("high is not double") - * if high.ndim != 1: - */ - } - - /* "talib/func.pyx":5048 - * 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/func.pyx":5049 - * raise 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__643, 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/func.pyx":5048 - * 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/func.pyx":5050 - * 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 = high.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":5051 - * raise Exception("high has wrong dimensions") - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< - * high_data = 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, 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_high, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":5050 - * 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 = high.data - */ - } - - /* "talib/func.pyx":5052 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":5053 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":5054 - * high_data = 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__644, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5054, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 5054, __pyx_L1_error) - - /* "talib/func.pyx":5053 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = high.data - * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("low is not double") - * if low.ndim != 1: - */ - } - - /* "talib/func.pyx":5055 - * 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/func.pyx":5056 - * raise 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__645, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5056, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 5056, __pyx_L1_error) - - /* "talib/func.pyx":5055 - * 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/func.pyx":5057 - * 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 = low.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":5058 - * raise Exception("low has wrong dimensions") - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< - * low_data = 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, 5058, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 5058, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":5057 - * 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 = low.data - */ - } - - /* "talib/func.pyx":5059 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":5060 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":5061 - * low_data = 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__646, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5061, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 5061, __pyx_L1_error) - - /* "talib/func.pyx":5060 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = low.data - * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("close is not double") - * if close.ndim != 1: - */ - } - - /* "talib/func.pyx":5062 - * 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/func.pyx":5063 - * raise 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__647, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5063, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 5063, __pyx_L1_error) - - /* "talib/func.pyx":5062 - * 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/func.pyx":5064 - * 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 = close.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":5065 - * raise Exception("close has wrong dimensions") - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< - * close_data = close.data - * length = open.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5065, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 5065, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":5064 - * 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 = close.data - */ - } - - /* "talib/func.pyx":5066 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = close.data # <<<<<<<<<<<<<< - * length = open.shape[0] - * if length != high.shape[0]: - */ - __pyx_v_close_data = ((double *)__pyx_v_close->data); - - /* "talib/func.pyx":5067 - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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/func.pyx":5068 - * close_data = 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/func.pyx":5069 - * 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__648, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5069, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 5069, __pyx_L1_error) - - /* "talib/func.pyx":5068 - * close_data = close.data - * length = open.shape[0] - * if length != high.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * if length != low.shape[0]: - */ - } - - /* "talib/func.pyx":5070 - * 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/func.pyx":5071 - * 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__649, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5071, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 5071, __pyx_L1_error) - - /* "talib/func.pyx":5070 - * 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/func.pyx":5072 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":5073 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__650, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5073, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 5073, __pyx_L1_error) - - /* "talib/func.pyx":5072 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - } - - /* "talib/func.pyx":5074 - * if length != close.shape[0]: - * raise Exception("input lengths are different") - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = open_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":5075 - * raise Exception("input lengths are different") - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = open_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":5076 - * begidx = 0 - * for i from 0 <= i < length: - * val = open_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_open_data[__pyx_v_i]); - - /* "talib/func.pyx":5077 - * for i from 0 <= i < length: - * val = open_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = high_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":5078 - * val = open_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = high_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":5077 - * for i from 0 <= i < length: - * val = open_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = high_data[i] - */ - } - - /* "talib/func.pyx":5079 - * if val != val: - * continue - * val = high_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); - - /* "talib/func.pyx":5080 - * continue - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":5081 - * val = high_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = low_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":5080 - * continue - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - } - - /* "talib/func.pyx":5082 - * if val != val: - * continue - * val = low_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); - - /* "talib/func.pyx":5083 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":5084 - * val = low_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = close_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":5083 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - } - - /* "talib/func.pyx":5085 - * if val != val: - * continue - * val = close_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); - - /* "talib/func.pyx":5086 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":5087 - * val = close_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":5086 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":5088 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":5089 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L19_break; - __pyx_L18_continue:; - } - /*else*/ { - - /* "talib/func.pyx":5091 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLMORNINGSTAR_Lookback( penetration ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__651, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5091, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 5091, __pyx_L1_error) - } - __pyx_L19_break:; - - /* "talib/func.pyx":5092 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_CDLMORNINGSTAR_Lookback( penetration ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":5093 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLMORNINGSTAR_Lookback( penetration ) # <<<<<<<<<<<<<< - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_CDLMORNINGSTAR_Lookback(__pyx_v_penetration)); - - /* "talib/func.pyx":5094 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLMORNINGSTAR_Lookback( penetration ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5094, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 5094, __pyx_L1_error) - __pyx_v_outinteger = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":5095 - * lookback = begidx + lib.TA_CDLMORNINGSTAR_Lookback( penetration ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 - */ - __pyx_v_outinteger_data = ((int *)__pyx_v_outinteger->data); - - /* "talib/func.pyx":5096 - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLMORNINGSTAR( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , penetration , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":5097 - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 # <<<<<<<<<<<<<< - * retCode = lib.TA_CDLMORNINGSTAR( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , penetration , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _ta_check_success("TA_CDLMORNINGSTAR", retCode) - */ - (__pyx_v_outinteger_data[__pyx_v_i]) = 0; - } - - /* "talib/func.pyx":5098 - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLMORNINGSTAR( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , penetration , &outbegidx , &outnbelement , (outinteger_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_CDLMORNINGSTAR", retCode) - * return outinteger - */ - __pyx_v_retCode = TA_CDLMORNINGSTAR(0, __pyx_v_endidx, ((double *)(__pyx_v_open_data + __pyx_v_begidx)), ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), __pyx_v_penetration, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outinteger_data + __pyx_v_lookback))); - - /* "talib/func.pyx":5099 - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLMORNINGSTAR( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , penetration , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _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, 5099, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":5100 - * retCode = lib.TA_CDLMORNINGSTAR( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , penetration , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _ta_check_success("TA_CDLMORNINGSTAR", retCode) - * return outinteger # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outinteger)); - __pyx_r = ((PyObject *)__pyx_v_outinteger); - goto __pyx_L0; - - /* "talib/func.pyx":5014 - * @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.func.CDLMORNINGSTAR", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outinteger); - __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/func.pyx":5104 - * @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_4func_123CDLONNECK(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_123CDLONNECK = {"CDLONNECK", (PyCFunction)__pyx_pw_5talib_4func_123CDLONNECK, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_122CDLONNECK}; -static PyObject *__pyx_pw_5talib_4func_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, 5104, __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, 5104, __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, 5104, __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, 5104, __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, 5104, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 5104, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 5104, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 5104, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 5104, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_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; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - 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; - PyArrayObject *__pyx_v_outinteger = 0; - int *__pyx_v_outinteger_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __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/func.pyx":5127 - * np.ndarray outinteger - * int* outinteger_data - * 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/func.pyx":5128 - * int* outinteger_data - * 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__652, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5128, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 5128, __pyx_L1_error) - - /* "talib/func.pyx":5127 - * np.ndarray outinteger - * int* outinteger_data - * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("open is not double") - * if open.ndim != 1: - */ - } - - /* "talib/func.pyx":5129 - * 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/func.pyx":5130 - * 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__653, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5130, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 5130, __pyx_L1_error) - - /* "talib/func.pyx":5129 - * 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/func.pyx":5131 - * 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 = open.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":5132 - * raise Exception("open has wrong dimensions") - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< - * open_data = 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, 5132, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 5132, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":5131 - * 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 = open.data - */ - } - - /* "talib/func.pyx":5133 - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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/func.pyx":5134 - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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/func.pyx":5135 - * open_data = 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__654, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5135, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 5135, __pyx_L1_error) - - /* "talib/func.pyx":5134 - * open = PyArray_GETCONTIGUOUS(open) - * open_data = open.data - * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("high is not double") - * if high.ndim != 1: - */ - } - - /* "talib/func.pyx":5136 - * 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/func.pyx":5137 - * raise 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__655, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5137, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 5137, __pyx_L1_error) - - /* "talib/func.pyx":5136 - * 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/func.pyx":5138 - * 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 = high.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":5139 - * raise Exception("high has wrong dimensions") - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< - * high_data = 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, 5139, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 5139, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":5138 - * 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 = high.data - */ - } - - /* "talib/func.pyx":5140 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":5141 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":5142 - * high_data = 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__656, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5142, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 5142, __pyx_L1_error) - - /* "talib/func.pyx":5141 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = high.data - * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("low is not double") - * if low.ndim != 1: - */ - } - - /* "talib/func.pyx":5143 - * 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/func.pyx":5144 - * raise 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__657, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5144, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 5144, __pyx_L1_error) - - /* "talib/func.pyx":5143 - * 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/func.pyx":5145 - * 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 = low.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":5146 - * raise Exception("low has wrong dimensions") - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< - * low_data = 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, 5146, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 5146, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":5145 - * 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 = low.data - */ - } - - /* "talib/func.pyx":5147 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":5148 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":5149 - * low_data = 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__658, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5149, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 5149, __pyx_L1_error) - - /* "talib/func.pyx":5148 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = low.data - * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("close is not double") - * if close.ndim != 1: - */ - } - - /* "talib/func.pyx":5150 - * 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/func.pyx":5151 - * raise 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__659, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5151, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 5151, __pyx_L1_error) - - /* "talib/func.pyx":5150 - * 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/func.pyx":5152 - * 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 = close.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":5153 - * raise Exception("close has wrong dimensions") - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< - * close_data = close.data - * length = open.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5153, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 5153, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":5152 - * 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 = close.data - */ - } - - /* "talib/func.pyx":5154 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = close.data # <<<<<<<<<<<<<< - * length = open.shape[0] - * if length != high.shape[0]: - */ - __pyx_v_close_data = ((double *)__pyx_v_close->data); - - /* "talib/func.pyx":5155 - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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/func.pyx":5156 - * close_data = 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/func.pyx":5157 - * 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__660, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5157, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 5157, __pyx_L1_error) - - /* "talib/func.pyx":5156 - * close_data = close.data - * length = open.shape[0] - * if length != high.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * if length != low.shape[0]: - */ - } - - /* "talib/func.pyx":5158 - * 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/func.pyx":5159 - * 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__661, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5159, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 5159, __pyx_L1_error) - - /* "talib/func.pyx":5158 - * 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/func.pyx":5160 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":5161 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__662, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5161, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 5161, __pyx_L1_error) - - /* "talib/func.pyx":5160 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - } - - /* "talib/func.pyx":5162 - * if length != close.shape[0]: - * raise Exception("input lengths are different") - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = open_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":5163 - * raise Exception("input lengths are different") - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = open_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":5164 - * begidx = 0 - * for i from 0 <= i < length: - * val = open_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_open_data[__pyx_v_i]); - - /* "talib/func.pyx":5165 - * for i from 0 <= i < length: - * val = open_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = high_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":5166 - * val = open_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = high_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":5165 - * for i from 0 <= i < length: - * val = open_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = high_data[i] - */ - } - - /* "talib/func.pyx":5167 - * if val != val: - * continue - * val = high_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); - - /* "talib/func.pyx":5168 - * continue - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":5169 - * val = high_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = low_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":5168 - * continue - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - } - - /* "talib/func.pyx":5170 - * if val != val: - * continue - * val = low_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); - - /* "talib/func.pyx":5171 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":5172 - * val = low_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = close_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":5171 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - } - - /* "talib/func.pyx":5173 - * if val != val: - * continue - * val = close_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); - - /* "talib/func.pyx":5174 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":5175 - * val = close_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":5174 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":5176 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":5177 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L19_break; - __pyx_L18_continue:; - } - /*else*/ { - - /* "talib/func.pyx":5179 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLONNECK_Lookback( ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__663, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5179, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 5179, __pyx_L1_error) - } - __pyx_L19_break:; - - /* "talib/func.pyx":5180 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_CDLONNECK_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":5181 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLONNECK_Lookback( ) # <<<<<<<<<<<<<< - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_CDLONNECK_Lookback()); - - /* "talib/func.pyx":5182 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLONNECK_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5182, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 5182, __pyx_L1_error) - __pyx_v_outinteger = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":5183 - * lookback = begidx + lib.TA_CDLONNECK_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 - */ - __pyx_v_outinteger_data = ((int *)__pyx_v_outinteger->data); - - /* "talib/func.pyx":5184 - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLONNECK( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":5185 - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 # <<<<<<<<<<<<<< - * retCode = lib.TA_CDLONNECK( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _ta_check_success("TA_CDLONNECK", retCode) - */ - (__pyx_v_outinteger_data[__pyx_v_i]) = 0; - } - - /* "talib/func.pyx":5186 - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLONNECK( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_CDLONNECK", retCode) - * return outinteger - */ - __pyx_v_retCode = TA_CDLONNECK(0, __pyx_v_endidx, ((double *)(__pyx_v_open_data + __pyx_v_begidx)), ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outinteger_data + __pyx_v_lookback))); - - /* "talib/func.pyx":5187 - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLONNECK( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _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, 5187, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":5188 - * retCode = lib.TA_CDLONNECK( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _ta_check_success("TA_CDLONNECK", retCode) - * return outinteger # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outinteger)); - __pyx_r = ((PyObject *)__pyx_v_outinteger); - goto __pyx_L0; - - /* "talib/func.pyx":5104 - * @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.func.CDLONNECK", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outinteger); - __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/func.pyx":5192 - * @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_4func_125CDLPIERCING(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_125CDLPIERCING = {"CDLPIERCING", (PyCFunction)__pyx_pw_5talib_4func_125CDLPIERCING, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_124CDLPIERCING}; -static PyObject *__pyx_pw_5talib_4func_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, 5192, __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, 5192, __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, 5192, __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, 5192, __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, 5192, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 5192, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 5192, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 5192, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 5192, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_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; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - 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; - PyArrayObject *__pyx_v_outinteger = 0; - int *__pyx_v_outinteger_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __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/func.pyx":5215 - * np.ndarray outinteger - * int* outinteger_data - * 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/func.pyx":5216 - * int* outinteger_data - * 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__664, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5216, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 5216, __pyx_L1_error) - - /* "talib/func.pyx":5215 - * np.ndarray outinteger - * int* outinteger_data - * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("open is not double") - * if open.ndim != 1: - */ - } - - /* "talib/func.pyx":5217 - * 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/func.pyx":5218 - * 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__665, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5218, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 5218, __pyx_L1_error) - - /* "talib/func.pyx":5217 - * 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/func.pyx":5219 - * 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 = open.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":5220 - * raise Exception("open has wrong dimensions") - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< - * open_data = 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, 5220, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 5220, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":5219 - * 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 = open.data - */ - } - - /* "talib/func.pyx":5221 - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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/func.pyx":5222 - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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/func.pyx":5223 - * open_data = 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__666, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5223, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 5223, __pyx_L1_error) - - /* "talib/func.pyx":5222 - * open = PyArray_GETCONTIGUOUS(open) - * open_data = open.data - * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("high is not double") - * if high.ndim != 1: - */ - } - - /* "talib/func.pyx":5224 - * 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/func.pyx":5225 - * raise 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__667, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5225, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 5225, __pyx_L1_error) - - /* "talib/func.pyx":5224 - * 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/func.pyx":5226 - * 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 = high.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":5227 - * raise Exception("high has wrong dimensions") - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< - * high_data = 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, 5227, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 5227, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":5226 - * 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 = high.data - */ - } - - /* "talib/func.pyx":5228 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":5229 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":5230 - * high_data = 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__668, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5230, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 5230, __pyx_L1_error) - - /* "talib/func.pyx":5229 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = high.data - * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("low is not double") - * if low.ndim != 1: - */ - } - - /* "talib/func.pyx":5231 - * 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/func.pyx":5232 - * raise 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__669, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5232, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 5232, __pyx_L1_error) - - /* "talib/func.pyx":5231 - * 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/func.pyx":5233 - * 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 = low.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":5234 - * raise Exception("low has wrong dimensions") - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< - * low_data = 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, 5234, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 5234, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":5233 - * 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 = low.data - */ - } - - /* "talib/func.pyx":5235 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":5236 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":5237 - * low_data = 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__670, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5237, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 5237, __pyx_L1_error) - - /* "talib/func.pyx":5236 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = low.data - * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("close is not double") - * if close.ndim != 1: - */ - } - - /* "talib/func.pyx":5238 - * 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/func.pyx":5239 - * raise 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__671, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5239, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 5239, __pyx_L1_error) - - /* "talib/func.pyx":5238 - * 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/func.pyx":5240 - * 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 = close.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":5241 - * raise Exception("close has wrong dimensions") - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< - * close_data = close.data - * length = open.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5241, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 5241, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":5240 - * 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 = close.data - */ - } - - /* "talib/func.pyx":5242 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = close.data # <<<<<<<<<<<<<< - * length = open.shape[0] - * if length != high.shape[0]: - */ - __pyx_v_close_data = ((double *)__pyx_v_close->data); - - /* "talib/func.pyx":5243 - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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/func.pyx":5244 - * close_data = 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/func.pyx":5245 - * 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__672, 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/func.pyx":5244 - * close_data = close.data - * length = open.shape[0] - * if length != high.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * if length != low.shape[0]: - */ - } - - /* "talib/func.pyx":5246 - * 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/func.pyx":5247 - * 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__673, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5247, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 5247, __pyx_L1_error) - - /* "talib/func.pyx":5246 - * 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/func.pyx":5248 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":5249 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__674, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5249, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 5249, __pyx_L1_error) - - /* "talib/func.pyx":5248 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - } - - /* "talib/func.pyx":5250 - * if length != close.shape[0]: - * raise Exception("input lengths are different") - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = open_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":5251 - * raise Exception("input lengths are different") - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = open_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":5252 - * begidx = 0 - * for i from 0 <= i < length: - * val = open_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_open_data[__pyx_v_i]); - - /* "talib/func.pyx":5253 - * for i from 0 <= i < length: - * val = open_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = high_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":5254 - * val = open_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = high_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":5253 - * for i from 0 <= i < length: - * val = open_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = high_data[i] - */ - } - - /* "talib/func.pyx":5255 - * if val != val: - * continue - * val = high_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); - - /* "talib/func.pyx":5256 - * continue - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":5257 - * val = high_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = low_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":5256 - * continue - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - } - - /* "talib/func.pyx":5258 - * if val != val: - * continue - * val = low_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); - - /* "talib/func.pyx":5259 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":5260 - * val = low_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = close_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":5259 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - } - - /* "talib/func.pyx":5261 - * if val != val: - * continue - * val = close_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); - - /* "talib/func.pyx":5262 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":5263 - * val = close_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":5262 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":5264 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":5265 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L19_break; - __pyx_L18_continue:; - } - /*else*/ { - - /* "talib/func.pyx":5267 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLPIERCING_Lookback( ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__675, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5267, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 5267, __pyx_L1_error) - } - __pyx_L19_break:; - - /* "talib/func.pyx":5268 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_CDLPIERCING_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":5269 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLPIERCING_Lookback( ) # <<<<<<<<<<<<<< - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_CDLPIERCING_Lookback()); - - /* "talib/func.pyx":5270 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLPIERCING_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5270, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 5270, __pyx_L1_error) - __pyx_v_outinteger = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":5271 - * lookback = begidx + lib.TA_CDLPIERCING_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 - */ - __pyx_v_outinteger_data = ((int *)__pyx_v_outinteger->data); - - /* "talib/func.pyx":5272 - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLPIERCING( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":5273 - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 # <<<<<<<<<<<<<< - * retCode = lib.TA_CDLPIERCING( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _ta_check_success("TA_CDLPIERCING", retCode) - */ - (__pyx_v_outinteger_data[__pyx_v_i]) = 0; - } - - /* "talib/func.pyx":5274 - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLPIERCING( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_CDLPIERCING", retCode) - * return outinteger - */ - __pyx_v_retCode = TA_CDLPIERCING(0, __pyx_v_endidx, ((double *)(__pyx_v_open_data + __pyx_v_begidx)), ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outinteger_data + __pyx_v_lookback))); - - /* "talib/func.pyx":5275 - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLPIERCING( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _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, 5275, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":5276 - * retCode = lib.TA_CDLPIERCING( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _ta_check_success("TA_CDLPIERCING", retCode) - * return outinteger # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outinteger)); - __pyx_r = ((PyObject *)__pyx_v_outinteger); - goto __pyx_L0; - - /* "talib/func.pyx":5192 - * @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.func.CDLPIERCING", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outinteger); - __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/func.pyx":5280 - * @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_4func_127CDLRICKSHAWMAN(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_127CDLRICKSHAWMAN = {"CDLRICKSHAWMAN", (PyCFunction)__pyx_pw_5talib_4func_127CDLRICKSHAWMAN, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_126CDLRICKSHAWMAN}; -static PyObject *__pyx_pw_5talib_4func_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, 5280, __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, 5280, __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, 5280, __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, 5280, __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, 5280, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 5280, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 5280, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 5280, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 5280, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_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; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - 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; - PyArrayObject *__pyx_v_outinteger = 0; - int *__pyx_v_outinteger_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __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/func.pyx":5303 - * np.ndarray outinteger - * int* outinteger_data - * 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/func.pyx":5304 - * int* outinteger_data - * 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__676, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5304, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 5304, __pyx_L1_error) - - /* "talib/func.pyx":5303 - * np.ndarray outinteger - * int* outinteger_data - * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("open is not double") - * if open.ndim != 1: - */ - } - - /* "talib/func.pyx":5305 - * 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/func.pyx":5306 - * 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__677, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5306, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 5306, __pyx_L1_error) - - /* "talib/func.pyx":5305 - * 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/func.pyx":5307 - * 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 = open.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":5308 - * raise Exception("open has wrong dimensions") - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< - * open_data = 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, 5308, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 5308, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":5307 - * 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 = open.data - */ - } - - /* "talib/func.pyx":5309 - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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/func.pyx":5310 - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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/func.pyx":5311 - * open_data = 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__678, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5311, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 5311, __pyx_L1_error) - - /* "talib/func.pyx":5310 - * open = PyArray_GETCONTIGUOUS(open) - * open_data = open.data - * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("high is not double") - * if high.ndim != 1: - */ - } - - /* "talib/func.pyx":5312 - * 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/func.pyx":5313 - * raise 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__679, 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/func.pyx":5312 - * 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/func.pyx":5314 - * 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 = high.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":5315 - * raise Exception("high has wrong dimensions") - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< - * high_data = 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, 5315, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 5315, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":5314 - * 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 = high.data - */ - } - - /* "talib/func.pyx":5316 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":5317 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":5318 - * high_data = 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__680, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5318, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 5318, __pyx_L1_error) - - /* "talib/func.pyx":5317 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = high.data - * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("low is not double") - * if low.ndim != 1: - */ - } - - /* "talib/func.pyx":5319 - * 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/func.pyx":5320 - * raise 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__681, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5320, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 5320, __pyx_L1_error) - - /* "talib/func.pyx":5319 - * 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/func.pyx":5321 - * 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 = low.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":5322 - * raise Exception("low has wrong dimensions") - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< - * low_data = 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, 5322, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 5322, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":5321 - * 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 = low.data - */ - } - - /* "talib/func.pyx":5323 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":5324 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":5325 - * low_data = 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__682, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5325, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 5325, __pyx_L1_error) - - /* "talib/func.pyx":5324 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = low.data - * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("close is not double") - * if close.ndim != 1: - */ - } - - /* "talib/func.pyx":5326 - * 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/func.pyx":5327 - * raise 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__683, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5327, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 5327, __pyx_L1_error) - - /* "talib/func.pyx":5326 - * 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/func.pyx":5328 - * 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 = close.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":5329 - * raise Exception("close has wrong dimensions") - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< - * close_data = close.data - * length = open.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5329, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 5329, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":5328 - * 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 = close.data - */ - } - - /* "talib/func.pyx":5330 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = close.data # <<<<<<<<<<<<<< - * length = open.shape[0] - * if length != high.shape[0]: - */ - __pyx_v_close_data = ((double *)__pyx_v_close->data); - - /* "talib/func.pyx":5331 - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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/func.pyx":5332 - * close_data = 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/func.pyx":5333 - * 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__684, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5333, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 5333, __pyx_L1_error) - - /* "talib/func.pyx":5332 - * close_data = close.data - * length = open.shape[0] - * if length != high.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * if length != low.shape[0]: - */ - } - - /* "talib/func.pyx":5334 - * 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/func.pyx":5335 - * 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__685, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5335, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 5335, __pyx_L1_error) - - /* "talib/func.pyx":5334 - * 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/func.pyx":5336 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":5337 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__686, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5337, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 5337, __pyx_L1_error) - - /* "talib/func.pyx":5336 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - } - - /* "talib/func.pyx":5338 - * if length != close.shape[0]: - * raise Exception("input lengths are different") - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = open_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":5339 - * raise Exception("input lengths are different") - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = open_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":5340 - * begidx = 0 - * for i from 0 <= i < length: - * val = open_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_open_data[__pyx_v_i]); - - /* "talib/func.pyx":5341 - * for i from 0 <= i < length: - * val = open_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = high_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":5342 - * val = open_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = high_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":5341 - * for i from 0 <= i < length: - * val = open_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = high_data[i] - */ - } - - /* "talib/func.pyx":5343 - * if val != val: - * continue - * val = high_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); - - /* "talib/func.pyx":5344 - * continue - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":5345 - * val = high_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = low_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":5344 - * continue - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - } - - /* "talib/func.pyx":5346 - * if val != val: - * continue - * val = low_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); - - /* "talib/func.pyx":5347 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":5348 - * val = low_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = close_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":5347 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - } - - /* "talib/func.pyx":5349 - * if val != val: - * continue - * val = close_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); - - /* "talib/func.pyx":5350 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":5351 - * val = close_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":5350 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":5352 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":5353 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L19_break; - __pyx_L18_continue:; - } - /*else*/ { - - /* "talib/func.pyx":5355 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLRICKSHAWMAN_Lookback( ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__687, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5355, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 5355, __pyx_L1_error) - } - __pyx_L19_break:; - - /* "talib/func.pyx":5356 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_CDLRICKSHAWMAN_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":5357 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLRICKSHAWMAN_Lookback( ) # <<<<<<<<<<<<<< - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_CDLRICKSHAWMAN_Lookback()); - - /* "talib/func.pyx":5358 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLRICKSHAWMAN_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5358, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 5358, __pyx_L1_error) - __pyx_v_outinteger = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":5359 - * lookback = begidx + lib.TA_CDLRICKSHAWMAN_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 - */ - __pyx_v_outinteger_data = ((int *)__pyx_v_outinteger->data); - - /* "talib/func.pyx":5360 - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLRICKSHAWMAN( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":5361 - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 # <<<<<<<<<<<<<< - * retCode = lib.TA_CDLRICKSHAWMAN( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _ta_check_success("TA_CDLRICKSHAWMAN", retCode) - */ - (__pyx_v_outinteger_data[__pyx_v_i]) = 0; - } - - /* "talib/func.pyx":5362 - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLRICKSHAWMAN( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_CDLRICKSHAWMAN", retCode) - * return outinteger - */ - __pyx_v_retCode = TA_CDLRICKSHAWMAN(0, __pyx_v_endidx, ((double *)(__pyx_v_open_data + __pyx_v_begidx)), ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outinteger_data + __pyx_v_lookback))); - - /* "talib/func.pyx":5363 - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLRICKSHAWMAN( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _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, 5363, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":5364 - * retCode = lib.TA_CDLRICKSHAWMAN( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _ta_check_success("TA_CDLRICKSHAWMAN", retCode) - * return outinteger # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outinteger)); - __pyx_r = ((PyObject *)__pyx_v_outinteger); - goto __pyx_L0; - - /* "talib/func.pyx":5280 - * @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.func.CDLRICKSHAWMAN", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outinteger); - __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/func.pyx":5368 - * @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_4func_129CDLRISEFALL3METHODS(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_129CDLRISEFALL3METHODS = {"CDLRISEFALL3METHODS", (PyCFunction)__pyx_pw_5talib_4func_129CDLRISEFALL3METHODS, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_128CDLRISEFALL3METHODS}; -static PyObject *__pyx_pw_5talib_4func_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, 5368, __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, 5368, __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, 5368, __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, 5368, __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, 5368, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 5368, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 5368, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 5368, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 5368, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_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; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - 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; - PyArrayObject *__pyx_v_outinteger = 0; - int *__pyx_v_outinteger_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __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/func.pyx":5391 - * np.ndarray outinteger - * int* outinteger_data - * 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/func.pyx":5392 - * int* outinteger_data - * 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__688, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5392, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 5392, __pyx_L1_error) - - /* "talib/func.pyx":5391 - * np.ndarray outinteger - * int* outinteger_data - * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("open is not double") - * if open.ndim != 1: - */ - } - - /* "talib/func.pyx":5393 - * 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/func.pyx":5394 - * 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__689, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5394, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 5394, __pyx_L1_error) - - /* "talib/func.pyx":5393 - * 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/func.pyx":5395 - * 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 = open.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":5396 - * raise Exception("open has wrong dimensions") - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< - * open_data = 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, 5396, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 5396, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":5395 - * 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 = open.data - */ - } - - /* "talib/func.pyx":5397 - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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/func.pyx":5398 - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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/func.pyx":5399 - * open_data = 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__690, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5399, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 5399, __pyx_L1_error) - - /* "talib/func.pyx":5398 - * open = PyArray_GETCONTIGUOUS(open) - * open_data = open.data - * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("high is not double") - * if high.ndim != 1: - */ - } - - /* "talib/func.pyx":5400 - * 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/func.pyx":5401 - * raise 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__691, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5401, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 5401, __pyx_L1_error) - - /* "talib/func.pyx":5400 - * 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/func.pyx":5402 - * 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 = high.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":5403 - * raise Exception("high has wrong dimensions") - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< - * high_data = 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, 5403, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 5403, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":5402 - * 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 = high.data - */ - } - - /* "talib/func.pyx":5404 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":5405 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":5406 - * high_data = 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__692, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5406, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 5406, __pyx_L1_error) - - /* "talib/func.pyx":5405 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = high.data - * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("low is not double") - * if low.ndim != 1: - */ - } - - /* "talib/func.pyx":5407 - * 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/func.pyx":5408 - * raise 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__693, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5408, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 5408, __pyx_L1_error) - - /* "talib/func.pyx":5407 - * 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/func.pyx":5409 - * 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 = low.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":5410 - * raise Exception("low has wrong dimensions") - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< - * low_data = 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, 5410, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 5410, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":5409 - * 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 = low.data - */ - } - - /* "talib/func.pyx":5411 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":5412 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":5413 - * low_data = 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__694, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5413, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 5413, __pyx_L1_error) - - /* "talib/func.pyx":5412 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = low.data - * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("close is not double") - * if close.ndim != 1: - */ - } - - /* "talib/func.pyx":5414 - * 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/func.pyx":5415 - * raise 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__695, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5415, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 5415, __pyx_L1_error) - - /* "talib/func.pyx":5414 - * 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/func.pyx":5416 - * 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 = close.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":5417 - * raise Exception("close has wrong dimensions") - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< - * close_data = close.data - * length = open.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5417, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 5417, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":5416 - * 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 = close.data - */ - } - - /* "talib/func.pyx":5418 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = close.data # <<<<<<<<<<<<<< - * length = open.shape[0] - * if length != high.shape[0]: - */ - __pyx_v_close_data = ((double *)__pyx_v_close->data); - - /* "talib/func.pyx":5419 - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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/func.pyx":5420 - * close_data = 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/func.pyx":5421 - * 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__696, 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/func.pyx":5420 - * close_data = close.data - * length = open.shape[0] - * if length != high.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * if length != low.shape[0]: - */ - } - - /* "talib/func.pyx":5422 - * 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/func.pyx":5423 - * 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__697, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5423, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 5423, __pyx_L1_error) - - /* "talib/func.pyx":5422 - * 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/func.pyx":5424 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":5425 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__698, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5425, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 5425, __pyx_L1_error) - - /* "talib/func.pyx":5424 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - } - - /* "talib/func.pyx":5426 - * if length != close.shape[0]: - * raise Exception("input lengths are different") - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = open_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":5427 - * raise Exception("input lengths are different") - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = open_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":5428 - * begidx = 0 - * for i from 0 <= i < length: - * val = open_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_open_data[__pyx_v_i]); - - /* "talib/func.pyx":5429 - * for i from 0 <= i < length: - * val = open_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = high_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":5430 - * val = open_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = high_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":5429 - * for i from 0 <= i < length: - * val = open_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = high_data[i] - */ - } - - /* "talib/func.pyx":5431 - * if val != val: - * continue - * val = high_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); - - /* "talib/func.pyx":5432 - * continue - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":5433 - * val = high_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = low_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":5432 - * continue - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - } - - /* "talib/func.pyx":5434 - * if val != val: - * continue - * val = low_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); - - /* "talib/func.pyx":5435 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":5436 - * val = low_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = close_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":5435 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - } - - /* "talib/func.pyx":5437 - * if val != val: - * continue - * val = close_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); - - /* "talib/func.pyx":5438 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":5439 - * val = close_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":5438 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":5440 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":5441 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L19_break; - __pyx_L18_continue:; - } - /*else*/ { - - /* "talib/func.pyx":5443 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLRISEFALL3METHODS_Lookback( ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__699, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5443, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 5443, __pyx_L1_error) - } - __pyx_L19_break:; - - /* "talib/func.pyx":5444 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_CDLRISEFALL3METHODS_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":5445 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLRISEFALL3METHODS_Lookback( ) # <<<<<<<<<<<<<< - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_CDLRISEFALL3METHODS_Lookback()); - - /* "talib/func.pyx":5446 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLRISEFALL3METHODS_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5446, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 5446, __pyx_L1_error) - __pyx_v_outinteger = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":5447 - * lookback = begidx + lib.TA_CDLRISEFALL3METHODS_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 - */ - __pyx_v_outinteger_data = ((int *)__pyx_v_outinteger->data); - - /* "talib/func.pyx":5448 - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLRISEFALL3METHODS( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":5449 - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 # <<<<<<<<<<<<<< - * retCode = lib.TA_CDLRISEFALL3METHODS( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _ta_check_success("TA_CDLRISEFALL3METHODS", retCode) - */ - (__pyx_v_outinteger_data[__pyx_v_i]) = 0; - } - - /* "talib/func.pyx":5450 - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLRISEFALL3METHODS( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_CDLRISEFALL3METHODS", retCode) - * return outinteger - */ - __pyx_v_retCode = TA_CDLRISEFALL3METHODS(0, __pyx_v_endidx, ((double *)(__pyx_v_open_data + __pyx_v_begidx)), ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outinteger_data + __pyx_v_lookback))); - - /* "talib/func.pyx":5451 - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLRISEFALL3METHODS( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _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, 5451, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":5452 - * retCode = lib.TA_CDLRISEFALL3METHODS( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _ta_check_success("TA_CDLRISEFALL3METHODS", retCode) - * return outinteger # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outinteger)); - __pyx_r = ((PyObject *)__pyx_v_outinteger); - goto __pyx_L0; - - /* "talib/func.pyx":5368 - * @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.func.CDLRISEFALL3METHODS", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outinteger); - __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/func.pyx":5456 - * @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_4func_131CDLSEPARATINGLINES(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_131CDLSEPARATINGLINES = {"CDLSEPARATINGLINES", (PyCFunction)__pyx_pw_5talib_4func_131CDLSEPARATINGLINES, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_130CDLSEPARATINGLINES}; -static PyObject *__pyx_pw_5talib_4func_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, 5456, __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, 5456, __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, 5456, __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, 5456, __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, 5456, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 5456, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 5456, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 5456, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 5456, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_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; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - 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; - PyArrayObject *__pyx_v_outinteger = 0; - int *__pyx_v_outinteger_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __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/func.pyx":5479 - * np.ndarray outinteger - * int* outinteger_data - * 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/func.pyx":5480 - * int* outinteger_data - * 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__700, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5480, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 5480, __pyx_L1_error) - - /* "talib/func.pyx":5479 - * np.ndarray outinteger - * int* outinteger_data - * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("open is not double") - * if open.ndim != 1: - */ - } - - /* "talib/func.pyx":5481 - * 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/func.pyx":5482 - * 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__701, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5482, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 5482, __pyx_L1_error) - - /* "talib/func.pyx":5481 - * 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/func.pyx":5483 - * 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 = open.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":5484 - * raise Exception("open has wrong dimensions") - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< - * open_data = 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, 5484, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 5484, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":5483 - * 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 = open.data - */ - } - - /* "talib/func.pyx":5485 - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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/func.pyx":5486 - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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/func.pyx":5487 - * open_data = 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__702, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5487, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 5487, __pyx_L1_error) - - /* "talib/func.pyx":5486 - * open = PyArray_GETCONTIGUOUS(open) - * open_data = open.data - * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("high is not double") - * if high.ndim != 1: - */ - } - - /* "talib/func.pyx":5488 - * 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/func.pyx":5489 - * raise 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__703, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5489, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 5489, __pyx_L1_error) - - /* "talib/func.pyx":5488 - * 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/func.pyx":5490 - * 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 = high.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":5491 - * raise Exception("high has wrong dimensions") - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< - * high_data = 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, 5491, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 5491, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":5490 - * 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 = high.data - */ - } - - /* "talib/func.pyx":5492 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":5493 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":5494 - * high_data = 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__704, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5494, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 5494, __pyx_L1_error) - - /* "talib/func.pyx":5493 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = high.data - * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("low is not double") - * if low.ndim != 1: - */ - } - - /* "talib/func.pyx":5495 - * 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/func.pyx":5496 - * raise 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__705, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5496, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 5496, __pyx_L1_error) - - /* "talib/func.pyx":5495 - * 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/func.pyx":5497 - * 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 = low.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":5498 - * raise Exception("low has wrong dimensions") - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< - * low_data = 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, 5498, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 5498, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":5497 - * 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 = low.data - */ - } - - /* "talib/func.pyx":5499 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":5500 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":5501 - * low_data = 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__706, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5501, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 5501, __pyx_L1_error) - - /* "talib/func.pyx":5500 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = low.data - * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("close is not double") - * if close.ndim != 1: - */ - } - - /* "talib/func.pyx":5502 - * 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/func.pyx":5503 - * raise 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__707, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5503, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 5503, __pyx_L1_error) - - /* "talib/func.pyx":5502 - * 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/func.pyx":5504 - * 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 = close.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":5505 - * raise Exception("close has wrong dimensions") - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< - * close_data = close.data - * length = open.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5505, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 5505, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":5504 - * 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 = close.data - */ - } - - /* "talib/func.pyx":5506 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = close.data # <<<<<<<<<<<<<< - * length = open.shape[0] - * if length != high.shape[0]: - */ - __pyx_v_close_data = ((double *)__pyx_v_close->data); - - /* "talib/func.pyx":5507 - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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/func.pyx":5508 - * close_data = 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/func.pyx":5509 - * 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__708, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5509, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 5509, __pyx_L1_error) - - /* "talib/func.pyx":5508 - * close_data = close.data - * length = open.shape[0] - * if length != high.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * if length != low.shape[0]: - */ - } - - /* "talib/func.pyx":5510 - * 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/func.pyx":5511 - * 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__709, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5511, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 5511, __pyx_L1_error) - - /* "talib/func.pyx":5510 - * 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/func.pyx":5512 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":5513 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__710, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5513, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 5513, __pyx_L1_error) - - /* "talib/func.pyx":5512 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - } - - /* "talib/func.pyx":5514 - * if length != close.shape[0]: - * raise Exception("input lengths are different") - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = open_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":5515 - * raise Exception("input lengths are different") - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = open_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":5516 - * begidx = 0 - * for i from 0 <= i < length: - * val = open_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_open_data[__pyx_v_i]); - - /* "talib/func.pyx":5517 - * for i from 0 <= i < length: - * val = open_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = high_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":5518 - * val = open_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = high_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":5517 - * for i from 0 <= i < length: - * val = open_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = high_data[i] - */ - } - - /* "talib/func.pyx":5519 - * if val != val: - * continue - * val = high_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); - - /* "talib/func.pyx":5520 - * continue - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":5521 - * val = high_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = low_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":5520 - * continue - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - } - - /* "talib/func.pyx":5522 - * if val != val: - * continue - * val = low_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); - - /* "talib/func.pyx":5523 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":5524 - * val = low_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = close_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":5523 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - } - - /* "talib/func.pyx":5525 - * if val != val: - * continue - * val = close_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); - - /* "talib/func.pyx":5526 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":5527 - * val = close_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":5526 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":5528 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":5529 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L19_break; - __pyx_L18_continue:; - } - /*else*/ { - - /* "talib/func.pyx":5531 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLSEPARATINGLINES_Lookback( ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__711, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5531, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 5531, __pyx_L1_error) - } - __pyx_L19_break:; - - /* "talib/func.pyx":5532 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_CDLSEPARATINGLINES_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":5533 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLSEPARATINGLINES_Lookback( ) # <<<<<<<<<<<<<< - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_CDLSEPARATINGLINES_Lookback()); - - /* "talib/func.pyx":5534 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLSEPARATINGLINES_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5534, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 5534, __pyx_L1_error) - __pyx_v_outinteger = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":5535 - * lookback = begidx + lib.TA_CDLSEPARATINGLINES_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 - */ - __pyx_v_outinteger_data = ((int *)__pyx_v_outinteger->data); - - /* "talib/func.pyx":5536 - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLSEPARATINGLINES( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":5537 - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 # <<<<<<<<<<<<<< - * retCode = lib.TA_CDLSEPARATINGLINES( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _ta_check_success("TA_CDLSEPARATINGLINES", retCode) - */ - (__pyx_v_outinteger_data[__pyx_v_i]) = 0; - } - - /* "talib/func.pyx":5538 - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLSEPARATINGLINES( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_CDLSEPARATINGLINES", retCode) - * return outinteger - */ - __pyx_v_retCode = TA_CDLSEPARATINGLINES(0, __pyx_v_endidx, ((double *)(__pyx_v_open_data + __pyx_v_begidx)), ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outinteger_data + __pyx_v_lookback))); - - /* "talib/func.pyx":5539 - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLSEPARATINGLINES( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _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, 5539, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":5540 - * retCode = lib.TA_CDLSEPARATINGLINES( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _ta_check_success("TA_CDLSEPARATINGLINES", retCode) - * return outinteger # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outinteger)); - __pyx_r = ((PyObject *)__pyx_v_outinteger); - goto __pyx_L0; - - /* "talib/func.pyx":5456 - * @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.func.CDLSEPARATINGLINES", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outinteger); - __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/func.pyx":5544 - * @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_4func_133CDLSHOOTINGSTAR(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_133CDLSHOOTINGSTAR = {"CDLSHOOTINGSTAR", (PyCFunction)__pyx_pw_5talib_4func_133CDLSHOOTINGSTAR, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_132CDLSHOOTINGSTAR}; -static PyObject *__pyx_pw_5talib_4func_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, 5544, __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, 5544, __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, 5544, __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, 5544, __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, 5544, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 5544, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 5544, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 5544, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 5544, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_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; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - 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; - PyArrayObject *__pyx_v_outinteger = 0; - int *__pyx_v_outinteger_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __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/func.pyx":5567 - * np.ndarray outinteger - * int* outinteger_data - * 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/func.pyx":5568 - * int* outinteger_data - * 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, 5568, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 5568, __pyx_L1_error) - - /* "talib/func.pyx":5567 - * np.ndarray outinteger - * int* outinteger_data - * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("open is not double") - * if open.ndim != 1: - */ - } - - /* "talib/func.pyx":5569 - * 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/func.pyx":5570 - * 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, 5570, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 5570, __pyx_L1_error) - - /* "talib/func.pyx":5569 - * 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/func.pyx":5571 - * 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 = open.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":5572 - * raise Exception("open has wrong dimensions") - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< - * open_data = 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, 5572, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 5572, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":5571 - * 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 = open.data - */ - } - - /* "talib/func.pyx":5573 - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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/func.pyx":5574 - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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/func.pyx":5575 - * open_data = 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, 5575, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 5575, __pyx_L1_error) - - /* "talib/func.pyx":5574 - * open = PyArray_GETCONTIGUOUS(open) - * open_data = open.data - * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("high is not double") - * if high.ndim != 1: - */ - } - - /* "talib/func.pyx":5576 - * 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/func.pyx":5577 - * raise 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, 5577, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 5577, __pyx_L1_error) - - /* "talib/func.pyx":5576 - * 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/func.pyx":5578 - * 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 = high.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":5579 - * raise Exception("high has wrong dimensions") - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< - * high_data = 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, 5579, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 5579, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":5578 - * 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 = high.data - */ - } - - /* "talib/func.pyx":5580 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":5581 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":5582 - * high_data = 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, 5582, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 5582, __pyx_L1_error) - - /* "talib/func.pyx":5581 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = high.data - * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("low is not double") - * if low.ndim != 1: - */ - } - - /* "talib/func.pyx":5583 - * 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/func.pyx":5584 - * raise 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, 5584, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 5584, __pyx_L1_error) - - /* "talib/func.pyx":5583 - * 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/func.pyx":5585 - * 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 = low.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":5586 - * raise Exception("low has wrong dimensions") - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< - * low_data = 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, 5586, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 5586, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":5585 - * 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 = low.data - */ - } - - /* "talib/func.pyx":5587 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":5588 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":5589 - * low_data = 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, 5589, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 5589, __pyx_L1_error) - - /* "talib/func.pyx":5588 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = low.data - * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("close is not double") - * if close.ndim != 1: - */ - } - - /* "talib/func.pyx":5590 - * 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/func.pyx":5591 - * raise 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, 5591, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 5591, __pyx_L1_error) - - /* "talib/func.pyx":5590 - * 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/func.pyx":5592 - * 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 = close.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":5593 - * raise Exception("close has wrong dimensions") - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< - * close_data = close.data - * length = open.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5593, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 5593, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":5592 - * 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 = close.data - */ - } - - /* "talib/func.pyx":5594 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = close.data # <<<<<<<<<<<<<< - * length = open.shape[0] - * if length != high.shape[0]: - */ - __pyx_v_close_data = ((double *)__pyx_v_close->data); - - /* "talib/func.pyx":5595 - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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/func.pyx":5596 - * close_data = 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/func.pyx":5597 - * 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, 5597, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 5597, __pyx_L1_error) - - /* "talib/func.pyx":5596 - * close_data = close.data - * length = open.shape[0] - * if length != high.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * if length != low.shape[0]: - */ - } - - /* "talib/func.pyx":5598 - * 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/func.pyx":5599 - * 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, 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/func.pyx":5598 - * 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/func.pyx":5600 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":5601 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__722, 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/func.pyx":5600 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - } - - /* "talib/func.pyx":5602 - * if length != close.shape[0]: - * raise Exception("input lengths are different") - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = open_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":5603 - * raise Exception("input lengths are different") - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = open_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":5604 - * begidx = 0 - * for i from 0 <= i < length: - * val = open_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_open_data[__pyx_v_i]); - - /* "talib/func.pyx":5605 - * for i from 0 <= i < length: - * val = open_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = high_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":5606 - * val = open_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = high_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":5605 - * for i from 0 <= i < length: - * val = open_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = high_data[i] - */ - } - - /* "talib/func.pyx":5607 - * if val != val: - * continue - * val = high_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); - - /* "talib/func.pyx":5608 - * continue - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":5609 - * val = high_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = low_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":5608 - * continue - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - } - - /* "talib/func.pyx":5610 - * if val != val: - * continue - * val = low_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); - - /* "talib/func.pyx":5611 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":5612 - * val = low_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = close_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":5611 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - } - - /* "talib/func.pyx":5613 - * if val != val: - * continue - * val = close_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); - - /* "talib/func.pyx":5614 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":5615 - * val = close_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":5614 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":5616 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":5617 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L19_break; - __pyx_L18_continue:; - } - /*else*/ { - - /* "talib/func.pyx":5619 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLSHOOTINGSTAR_Lookback( ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__723, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5619, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 5619, __pyx_L1_error) - } - __pyx_L19_break:; - - /* "talib/func.pyx":5620 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_CDLSHOOTINGSTAR_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":5621 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLSHOOTINGSTAR_Lookback( ) # <<<<<<<<<<<<<< - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_CDLSHOOTINGSTAR_Lookback()); - - /* "talib/func.pyx":5622 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLSHOOTINGSTAR_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5622, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 5622, __pyx_L1_error) - __pyx_v_outinteger = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":5623 - * lookback = begidx + lib.TA_CDLSHOOTINGSTAR_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 - */ - __pyx_v_outinteger_data = ((int *)__pyx_v_outinteger->data); - - /* "talib/func.pyx":5624 - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLSHOOTINGSTAR( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":5625 - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 # <<<<<<<<<<<<<< - * retCode = lib.TA_CDLSHOOTINGSTAR( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _ta_check_success("TA_CDLSHOOTINGSTAR", retCode) - */ - (__pyx_v_outinteger_data[__pyx_v_i]) = 0; - } - - /* "talib/func.pyx":5626 - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLSHOOTINGSTAR( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_CDLSHOOTINGSTAR", retCode) - * return outinteger - */ - __pyx_v_retCode = TA_CDLSHOOTINGSTAR(0, __pyx_v_endidx, ((double *)(__pyx_v_open_data + __pyx_v_begidx)), ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outinteger_data + __pyx_v_lookback))); - - /* "talib/func.pyx":5627 - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLSHOOTINGSTAR( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _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, 5627, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":5628 - * retCode = lib.TA_CDLSHOOTINGSTAR( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _ta_check_success("TA_CDLSHOOTINGSTAR", retCode) - * return outinteger # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outinteger)); - __pyx_r = ((PyObject *)__pyx_v_outinteger); - goto __pyx_L0; - - /* "talib/func.pyx":5544 - * @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.func.CDLSHOOTINGSTAR", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outinteger); - __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/func.pyx":5632 - * @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_4func_135CDLSHORTLINE(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_135CDLSHORTLINE = {"CDLSHORTLINE", (PyCFunction)__pyx_pw_5talib_4func_135CDLSHORTLINE, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_134CDLSHORTLINE}; -static PyObject *__pyx_pw_5talib_4func_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, 5632, __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, 5632, __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, 5632, __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, 5632, __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, 5632, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 5632, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 5632, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 5632, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 5632, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_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; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - 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; - PyArrayObject *__pyx_v_outinteger = 0; - int *__pyx_v_outinteger_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __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/func.pyx":5655 - * np.ndarray outinteger - * int* outinteger_data - * 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/func.pyx":5656 - * int* outinteger_data - * 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__724, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5656, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 5656, __pyx_L1_error) - - /* "talib/func.pyx":5655 - * np.ndarray outinteger - * int* outinteger_data - * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("open is not double") - * if open.ndim != 1: - */ - } - - /* "talib/func.pyx":5657 - * 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/func.pyx":5658 - * 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__725, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5658, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 5658, __pyx_L1_error) - - /* "talib/func.pyx":5657 - * 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/func.pyx":5659 - * 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 = open.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":5660 - * raise Exception("open has wrong dimensions") - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< - * open_data = 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, 5660, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 5660, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":5659 - * 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 = open.data - */ - } - - /* "talib/func.pyx":5661 - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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/func.pyx":5662 - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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/func.pyx":5663 - * open_data = 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__726, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5663, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 5663, __pyx_L1_error) - - /* "talib/func.pyx":5662 - * open = PyArray_GETCONTIGUOUS(open) - * open_data = open.data - * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("high is not double") - * if high.ndim != 1: - */ - } - - /* "talib/func.pyx":5664 - * 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/func.pyx":5665 - * raise 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__727, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5665, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 5665, __pyx_L1_error) - - /* "talib/func.pyx":5664 - * 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/func.pyx":5666 - * 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 = high.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":5667 - * raise Exception("high has wrong dimensions") - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< - * high_data = 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, 5667, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 5667, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":5666 - * 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 = high.data - */ - } - - /* "talib/func.pyx":5668 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":5669 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":5670 - * high_data = 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__728, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5670, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 5670, __pyx_L1_error) - - /* "talib/func.pyx":5669 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = high.data - * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("low is not double") - * if low.ndim != 1: - */ - } - - /* "talib/func.pyx":5671 - * 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/func.pyx":5672 - * raise 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__729, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5672, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 5672, __pyx_L1_error) - - /* "talib/func.pyx":5671 - * 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/func.pyx":5673 - * 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 = low.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":5674 - * raise Exception("low has wrong dimensions") - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< - * low_data = 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, 5674, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 5674, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":5673 - * 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 = low.data - */ - } - - /* "talib/func.pyx":5675 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":5676 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":5677 - * low_data = 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__730, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5677, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 5677, __pyx_L1_error) - - /* "talib/func.pyx":5676 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = low.data - * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("close is not double") - * if close.ndim != 1: - */ - } - - /* "talib/func.pyx":5678 - * 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/func.pyx":5679 - * raise 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__731, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5679, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 5679, __pyx_L1_error) - - /* "talib/func.pyx":5678 - * 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/func.pyx":5680 - * 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 = close.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":5681 - * raise Exception("close has wrong dimensions") - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< - * close_data = close.data - * length = open.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5681, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 5681, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":5680 - * 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 = close.data - */ - } - - /* "talib/func.pyx":5682 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = close.data # <<<<<<<<<<<<<< - * length = open.shape[0] - * if length != high.shape[0]: - */ - __pyx_v_close_data = ((double *)__pyx_v_close->data); - - /* "talib/func.pyx":5683 - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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/func.pyx":5684 - * close_data = 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/func.pyx":5685 - * 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__732, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5685, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 5685, __pyx_L1_error) - - /* "talib/func.pyx":5684 - * close_data = close.data - * length = open.shape[0] - * if length != high.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * if length != low.shape[0]: - */ - } - - /* "talib/func.pyx":5686 - * 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/func.pyx":5687 - * 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__733, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5687, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 5687, __pyx_L1_error) - - /* "talib/func.pyx":5686 - * 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/func.pyx":5688 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":5689 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__734, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5689, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 5689, __pyx_L1_error) - - /* "talib/func.pyx":5688 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - } - - /* "talib/func.pyx":5690 - * if length != close.shape[0]: - * raise Exception("input lengths are different") - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = open_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":5691 - * raise Exception("input lengths are different") - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = open_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":5692 - * begidx = 0 - * for i from 0 <= i < length: - * val = open_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_open_data[__pyx_v_i]); - - /* "talib/func.pyx":5693 - * for i from 0 <= i < length: - * val = open_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = high_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":5694 - * val = open_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = high_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":5693 - * for i from 0 <= i < length: - * val = open_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = high_data[i] - */ - } - - /* "talib/func.pyx":5695 - * if val != val: - * continue - * val = high_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); - - /* "talib/func.pyx":5696 - * continue - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":5697 - * val = high_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = low_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":5696 - * continue - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - } - - /* "talib/func.pyx":5698 - * if val != val: - * continue - * val = low_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); - - /* "talib/func.pyx":5699 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":5700 - * val = low_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = close_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":5699 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - } - - /* "talib/func.pyx":5701 - * if val != val: - * continue - * val = close_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); - - /* "talib/func.pyx":5702 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":5703 - * val = close_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":5702 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":5704 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":5705 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L19_break; - __pyx_L18_continue:; - } - /*else*/ { - - /* "talib/func.pyx":5707 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLSHORTLINE_Lookback( ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__735, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5707, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 5707, __pyx_L1_error) - } - __pyx_L19_break:; - - /* "talib/func.pyx":5708 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_CDLSHORTLINE_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":5709 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLSHORTLINE_Lookback( ) # <<<<<<<<<<<<<< - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_CDLSHORTLINE_Lookback()); - - /* "talib/func.pyx":5710 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLSHORTLINE_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5710, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 5710, __pyx_L1_error) - __pyx_v_outinteger = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":5711 - * lookback = begidx + lib.TA_CDLSHORTLINE_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 - */ - __pyx_v_outinteger_data = ((int *)__pyx_v_outinteger->data); - - /* "talib/func.pyx":5712 - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLSHORTLINE( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":5713 - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 # <<<<<<<<<<<<<< - * retCode = lib.TA_CDLSHORTLINE( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _ta_check_success("TA_CDLSHORTLINE", retCode) - */ - (__pyx_v_outinteger_data[__pyx_v_i]) = 0; - } - - /* "talib/func.pyx":5714 - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLSHORTLINE( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_CDLSHORTLINE", retCode) - * return outinteger - */ - __pyx_v_retCode = TA_CDLSHORTLINE(0, __pyx_v_endidx, ((double *)(__pyx_v_open_data + __pyx_v_begidx)), ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outinteger_data + __pyx_v_lookback))); - - /* "talib/func.pyx":5715 - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLSHORTLINE( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _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, 5715, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":5716 - * retCode = lib.TA_CDLSHORTLINE( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _ta_check_success("TA_CDLSHORTLINE", retCode) - * return outinteger # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outinteger)); - __pyx_r = ((PyObject *)__pyx_v_outinteger); - goto __pyx_L0; - - /* "talib/func.pyx":5632 - * @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.func.CDLSHORTLINE", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outinteger); - __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/func.pyx":5720 - * @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_4func_137CDLSPINNINGTOP(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_137CDLSPINNINGTOP = {"CDLSPINNINGTOP", (PyCFunction)__pyx_pw_5talib_4func_137CDLSPINNINGTOP, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_136CDLSPINNINGTOP}; -static PyObject *__pyx_pw_5talib_4func_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, 5720, __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, 5720, __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, 5720, __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, 5720, __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, 5720, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 5720, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 5720, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 5720, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 5720, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_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; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - 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; - PyArrayObject *__pyx_v_outinteger = 0; - int *__pyx_v_outinteger_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __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/func.pyx":5743 - * np.ndarray outinteger - * int* outinteger_data - * 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/func.pyx":5744 - * int* outinteger_data - * 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__736, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5744, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 5744, __pyx_L1_error) - - /* "talib/func.pyx":5743 - * np.ndarray outinteger - * int* outinteger_data - * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("open is not double") - * if open.ndim != 1: - */ - } - - /* "talib/func.pyx":5745 - * 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/func.pyx":5746 - * 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__737, 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/func.pyx":5745 - * 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/func.pyx":5747 - * 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 = open.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":5748 - * raise Exception("open has wrong dimensions") - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< - * open_data = 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, 5748, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 5748, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":5747 - * 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 = open.data - */ - } - - /* "talib/func.pyx":5749 - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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/func.pyx":5750 - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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/func.pyx":5751 - * open_data = 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__738, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5751, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 5751, __pyx_L1_error) - - /* "talib/func.pyx":5750 - * open = PyArray_GETCONTIGUOUS(open) - * open_data = open.data - * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("high is not double") - * if high.ndim != 1: - */ - } - - /* "talib/func.pyx":5752 - * 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/func.pyx":5753 - * raise 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__739, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5753, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 5753, __pyx_L1_error) - - /* "talib/func.pyx":5752 - * 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/func.pyx":5754 - * 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 = high.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":5755 - * raise Exception("high has wrong dimensions") - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< - * high_data = 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, 5755, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 5755, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":5754 - * 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 = high.data - */ - } - - /* "talib/func.pyx":5756 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":5757 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":5758 - * high_data = 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__740, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5758, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 5758, __pyx_L1_error) - - /* "talib/func.pyx":5757 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = high.data - * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("low is not double") - * if low.ndim != 1: - */ - } - - /* "talib/func.pyx":5759 - * 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/func.pyx":5760 - * raise 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__741, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5760, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 5760, __pyx_L1_error) - - /* "talib/func.pyx":5759 - * 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/func.pyx":5761 - * 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 = low.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":5762 - * raise Exception("low has wrong dimensions") - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< - * low_data = 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, 5762, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 5762, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":5761 - * 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 = low.data - */ - } - - /* "talib/func.pyx":5763 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":5764 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":5765 - * low_data = 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__742, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5765, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 5765, __pyx_L1_error) - - /* "talib/func.pyx":5764 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = low.data - * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("close is not double") - * if close.ndim != 1: - */ - } - - /* "talib/func.pyx":5766 - * 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/func.pyx":5767 - * raise 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__743, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5767, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 5767, __pyx_L1_error) - - /* "talib/func.pyx":5766 - * 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/func.pyx":5768 - * 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 = close.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":5769 - * raise Exception("close has wrong dimensions") - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< - * close_data = close.data - * length = open.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5769, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 5769, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":5768 - * 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 = close.data - */ - } - - /* "talib/func.pyx":5770 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = close.data # <<<<<<<<<<<<<< - * length = open.shape[0] - * if length != high.shape[0]: - */ - __pyx_v_close_data = ((double *)__pyx_v_close->data); - - /* "talib/func.pyx":5771 - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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/func.pyx":5772 - * close_data = 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/func.pyx":5773 - * 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__744, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5773, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 5773, __pyx_L1_error) - - /* "talib/func.pyx":5772 - * close_data = close.data - * length = open.shape[0] - * if length != high.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * if length != low.shape[0]: - */ - } - - /* "talib/func.pyx":5774 - * 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/func.pyx":5775 - * 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__745, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5775, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 5775, __pyx_L1_error) - - /* "talib/func.pyx":5774 - * 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/func.pyx":5776 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":5777 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__746, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5777, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 5777, __pyx_L1_error) - - /* "talib/func.pyx":5776 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - } - - /* "talib/func.pyx":5778 - * if length != close.shape[0]: - * raise Exception("input lengths are different") - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = open_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":5779 - * raise Exception("input lengths are different") - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = open_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":5780 - * begidx = 0 - * for i from 0 <= i < length: - * val = open_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_open_data[__pyx_v_i]); - - /* "talib/func.pyx":5781 - * for i from 0 <= i < length: - * val = open_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = high_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":5782 - * val = open_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = high_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":5781 - * for i from 0 <= i < length: - * val = open_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = high_data[i] - */ - } - - /* "talib/func.pyx":5783 - * if val != val: - * continue - * val = high_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); - - /* "talib/func.pyx":5784 - * continue - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":5785 - * val = high_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = low_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":5784 - * continue - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - } - - /* "talib/func.pyx":5786 - * if val != val: - * continue - * val = low_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); - - /* "talib/func.pyx":5787 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":5788 - * val = low_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = close_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":5787 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - } - - /* "talib/func.pyx":5789 - * if val != val: - * continue - * val = close_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); - - /* "talib/func.pyx":5790 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":5791 - * val = close_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":5790 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":5792 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":5793 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L19_break; - __pyx_L18_continue:; - } - /*else*/ { - - /* "talib/func.pyx":5795 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLSPINNINGTOP_Lookback( ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__747, 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) - } - __pyx_L19_break:; - - /* "talib/func.pyx":5796 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_CDLSPINNINGTOP_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":5797 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLSPINNINGTOP_Lookback( ) # <<<<<<<<<<<<<< - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_CDLSPINNINGTOP_Lookback()); - - /* "talib/func.pyx":5798 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLSPINNINGTOP_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5798, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 5798, __pyx_L1_error) - __pyx_v_outinteger = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":5799 - * lookback = begidx + lib.TA_CDLSPINNINGTOP_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 - */ - __pyx_v_outinteger_data = ((int *)__pyx_v_outinteger->data); - - /* "talib/func.pyx":5800 - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLSPINNINGTOP( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":5801 - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 # <<<<<<<<<<<<<< - * retCode = lib.TA_CDLSPINNINGTOP( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _ta_check_success("TA_CDLSPINNINGTOP", retCode) - */ - (__pyx_v_outinteger_data[__pyx_v_i]) = 0; - } - - /* "talib/func.pyx":5802 - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLSPINNINGTOP( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_CDLSPINNINGTOP", retCode) - * return outinteger - */ - __pyx_v_retCode = TA_CDLSPINNINGTOP(0, __pyx_v_endidx, ((double *)(__pyx_v_open_data + __pyx_v_begidx)), ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outinteger_data + __pyx_v_lookback))); - - /* "talib/func.pyx":5803 - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLSPINNINGTOP( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _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, 5803, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":5804 - * retCode = lib.TA_CDLSPINNINGTOP( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _ta_check_success("TA_CDLSPINNINGTOP", retCode) - * return outinteger # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outinteger)); - __pyx_r = ((PyObject *)__pyx_v_outinteger); - goto __pyx_L0; - - /* "talib/func.pyx":5720 - * @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.func.CDLSPINNINGTOP", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outinteger); - __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/func.pyx":5808 - * @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_4func_139CDLSTALLEDPATTERN(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_139CDLSTALLEDPATTERN = {"CDLSTALLEDPATTERN", (PyCFunction)__pyx_pw_5talib_4func_139CDLSTALLEDPATTERN, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_138CDLSTALLEDPATTERN}; -static PyObject *__pyx_pw_5talib_4func_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, 5808, __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, 5808, __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, 5808, __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, 5808, __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, 5808, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 5808, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 5808, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 5808, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 5808, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_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; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - 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; - PyArrayObject *__pyx_v_outinteger = 0; - int *__pyx_v_outinteger_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __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/func.pyx":5831 - * np.ndarray outinteger - * int* outinteger_data - * 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/func.pyx":5832 - * int* outinteger_data - * 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__748, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5832, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 5832, __pyx_L1_error) - - /* "talib/func.pyx":5831 - * np.ndarray outinteger - * int* outinteger_data - * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("open is not double") - * if open.ndim != 1: - */ - } - - /* "talib/func.pyx":5833 - * 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/func.pyx":5834 - * 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__749, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5834, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 5834, __pyx_L1_error) - - /* "talib/func.pyx":5833 - * 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/func.pyx":5835 - * 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 = open.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":5836 - * raise Exception("open has wrong dimensions") - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< - * open_data = 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, 5836, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 5836, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":5835 - * 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 = open.data - */ - } - - /* "talib/func.pyx":5837 - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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/func.pyx":5838 - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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/func.pyx":5839 - * open_data = 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__750, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5839, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 5839, __pyx_L1_error) - - /* "talib/func.pyx":5838 - * open = PyArray_GETCONTIGUOUS(open) - * open_data = open.data - * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("high is not double") - * if high.ndim != 1: - */ - } - - /* "talib/func.pyx":5840 - * 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/func.pyx":5841 - * raise 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__751, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5841, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 5841, __pyx_L1_error) - - /* "talib/func.pyx":5840 - * 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/func.pyx":5842 - * 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 = high.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":5843 - * raise Exception("high has wrong dimensions") - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< - * high_data = 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, 5843, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 5843, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":5842 - * 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 = high.data - */ - } - - /* "talib/func.pyx":5844 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":5845 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":5846 - * high_data = 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__752, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5846, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 5846, __pyx_L1_error) - - /* "talib/func.pyx":5845 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = high.data - * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("low is not double") - * if low.ndim != 1: - */ - } - - /* "talib/func.pyx":5847 - * 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/func.pyx":5848 - * raise 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__753, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5848, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 5848, __pyx_L1_error) - - /* "talib/func.pyx":5847 - * 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/func.pyx":5849 - * 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 = low.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":5850 - * raise Exception("low has wrong dimensions") - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< - * low_data = 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, 5850, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 5850, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":5849 - * 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 = low.data - */ - } - - /* "talib/func.pyx":5851 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":5852 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":5853 - * low_data = 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__754, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5853, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 5853, __pyx_L1_error) - - /* "talib/func.pyx":5852 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = low.data - * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("close is not double") - * if close.ndim != 1: - */ - } - - /* "talib/func.pyx":5854 - * 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/func.pyx":5855 - * raise 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__755, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5855, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 5855, __pyx_L1_error) - - /* "talib/func.pyx":5854 - * 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/func.pyx":5856 - * 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 = close.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":5857 - * raise Exception("close has wrong dimensions") - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< - * close_data = close.data - * length = open.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5857, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 5857, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":5856 - * 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 = close.data - */ - } - - /* "talib/func.pyx":5858 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = close.data # <<<<<<<<<<<<<< - * length = open.shape[0] - * if length != high.shape[0]: - */ - __pyx_v_close_data = ((double *)__pyx_v_close->data); - - /* "talib/func.pyx":5859 - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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/func.pyx":5860 - * close_data = 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/func.pyx":5861 - * 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__756, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5861, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 5861, __pyx_L1_error) - - /* "talib/func.pyx":5860 - * close_data = close.data - * length = open.shape[0] - * if length != high.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * if length != low.shape[0]: - */ - } - - /* "talib/func.pyx":5862 - * 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/func.pyx":5863 - * 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__757, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5863, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 5863, __pyx_L1_error) - - /* "talib/func.pyx":5862 - * 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/func.pyx":5864 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":5865 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__758, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5865, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 5865, __pyx_L1_error) - - /* "talib/func.pyx":5864 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - } - - /* "talib/func.pyx":5866 - * if length != close.shape[0]: - * raise Exception("input lengths are different") - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = open_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":5867 - * raise Exception("input lengths are different") - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = open_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":5868 - * begidx = 0 - * for i from 0 <= i < length: - * val = open_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_open_data[__pyx_v_i]); - - /* "talib/func.pyx":5869 - * for i from 0 <= i < length: - * val = open_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = high_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":5870 - * val = open_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = high_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":5869 - * for i from 0 <= i < length: - * val = open_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = high_data[i] - */ - } - - /* "talib/func.pyx":5871 - * if val != val: - * continue - * val = high_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); - - /* "talib/func.pyx":5872 - * continue - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":5873 - * val = high_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = low_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":5872 - * continue - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - } - - /* "talib/func.pyx":5874 - * if val != val: - * continue - * val = low_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); - - /* "talib/func.pyx":5875 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":5876 - * val = low_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = close_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":5875 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - } - - /* "talib/func.pyx":5877 - * if val != val: - * continue - * val = close_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); - - /* "talib/func.pyx":5878 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":5879 - * val = close_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":5878 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":5880 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":5881 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L19_break; - __pyx_L18_continue:; - } - /*else*/ { - - /* "talib/func.pyx":5883 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLSTALLEDPATTERN_Lookback( ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__759, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5883, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 5883, __pyx_L1_error) - } - __pyx_L19_break:; - - /* "talib/func.pyx":5884 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_CDLSTALLEDPATTERN_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":5885 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLSTALLEDPATTERN_Lookback( ) # <<<<<<<<<<<<<< - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_CDLSTALLEDPATTERN_Lookback()); - - /* "talib/func.pyx":5886 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLSTALLEDPATTERN_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5886, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 5886, __pyx_L1_error) - __pyx_v_outinteger = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":5887 - * lookback = begidx + lib.TA_CDLSTALLEDPATTERN_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 - */ - __pyx_v_outinteger_data = ((int *)__pyx_v_outinteger->data); - - /* "talib/func.pyx":5888 - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLSTALLEDPATTERN( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":5889 - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 # <<<<<<<<<<<<<< - * retCode = lib.TA_CDLSTALLEDPATTERN( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _ta_check_success("TA_CDLSTALLEDPATTERN", retCode) - */ - (__pyx_v_outinteger_data[__pyx_v_i]) = 0; - } - - /* "talib/func.pyx":5890 - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLSTALLEDPATTERN( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_CDLSTALLEDPATTERN", retCode) - * return outinteger - */ - __pyx_v_retCode = TA_CDLSTALLEDPATTERN(0, __pyx_v_endidx, ((double *)(__pyx_v_open_data + __pyx_v_begidx)), ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outinteger_data + __pyx_v_lookback))); - - /* "talib/func.pyx":5891 - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLSTALLEDPATTERN( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _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, 5891, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":5892 - * retCode = lib.TA_CDLSTALLEDPATTERN( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _ta_check_success("TA_CDLSTALLEDPATTERN", retCode) - * return outinteger # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outinteger)); - __pyx_r = ((PyObject *)__pyx_v_outinteger); - goto __pyx_L0; - - /* "talib/func.pyx":5808 - * @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.func.CDLSTALLEDPATTERN", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outinteger); - __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/func.pyx":5896 - * @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_4func_141CDLSTICKSANDWICH(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_141CDLSTICKSANDWICH = {"CDLSTICKSANDWICH", (PyCFunction)__pyx_pw_5talib_4func_141CDLSTICKSANDWICH, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_140CDLSTICKSANDWICH}; -static PyObject *__pyx_pw_5talib_4func_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, 5896, __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, 5896, __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, 5896, __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, 5896, __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, 5896, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 5896, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 5896, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 5896, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 5896, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_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; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - 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; - PyArrayObject *__pyx_v_outinteger = 0; - int *__pyx_v_outinteger_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __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/func.pyx":5919 - * np.ndarray outinteger - * int* outinteger_data - * 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/func.pyx":5920 - * int* outinteger_data - * 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__760, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5920, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 5920, __pyx_L1_error) - - /* "talib/func.pyx":5919 - * np.ndarray outinteger - * int* outinteger_data - * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("open is not double") - * if open.ndim != 1: - */ - } - - /* "talib/func.pyx":5921 - * 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/func.pyx":5922 - * 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__761, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5922, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 5922, __pyx_L1_error) - - /* "talib/func.pyx":5921 - * 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/func.pyx":5923 - * 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 = open.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":5924 - * raise Exception("open has wrong dimensions") - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< - * open_data = 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, 5924, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 5924, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":5923 - * 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 = open.data - */ - } - - /* "talib/func.pyx":5925 - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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/func.pyx":5926 - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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/func.pyx":5927 - * open_data = 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__762, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5927, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 5927, __pyx_L1_error) - - /* "talib/func.pyx":5926 - * open = PyArray_GETCONTIGUOUS(open) - * open_data = open.data - * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("high is not double") - * if high.ndim != 1: - */ - } - - /* "talib/func.pyx":5928 - * 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/func.pyx":5929 - * raise 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__763, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5929, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 5929, __pyx_L1_error) - - /* "talib/func.pyx":5928 - * 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/func.pyx":5930 - * 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 = high.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":5931 - * raise Exception("high has wrong dimensions") - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< - * high_data = 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, 5931, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 5931, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":5930 - * 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 = high.data - */ - } - - /* "talib/func.pyx":5932 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":5933 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":5934 - * high_data = 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__764, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5934, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 5934, __pyx_L1_error) - - /* "talib/func.pyx":5933 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = high.data - * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("low is not double") - * if low.ndim != 1: - */ - } - - /* "talib/func.pyx":5935 - * 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/func.pyx":5936 - * raise 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__765, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5936, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 5936, __pyx_L1_error) - - /* "talib/func.pyx":5935 - * 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/func.pyx":5937 - * 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 = low.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":5938 - * raise Exception("low has wrong dimensions") - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< - * low_data = 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, 5938, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 5938, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":5937 - * 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 = low.data - */ - } - - /* "talib/func.pyx":5939 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":5940 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":5941 - * low_data = 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__766, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5941, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 5941, __pyx_L1_error) - - /* "talib/func.pyx":5940 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = low.data - * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("close is not double") - * if close.ndim != 1: - */ - } - - /* "talib/func.pyx":5942 - * 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/func.pyx":5943 - * raise 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__767, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5943, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 5943, __pyx_L1_error) - - /* "talib/func.pyx":5942 - * 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/func.pyx":5944 - * 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 = close.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":5945 - * raise Exception("close has wrong dimensions") - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< - * close_data = close.data - * length = open.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5945, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 5945, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":5944 - * 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 = close.data - */ - } - - /* "talib/func.pyx":5946 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = close.data # <<<<<<<<<<<<<< - * length = open.shape[0] - * if length != high.shape[0]: - */ - __pyx_v_close_data = ((double *)__pyx_v_close->data); - - /* "talib/func.pyx":5947 - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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/func.pyx":5948 - * close_data = 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/func.pyx":5949 - * 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__768, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5949, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 5949, __pyx_L1_error) - - /* "talib/func.pyx":5948 - * close_data = close.data - * length = open.shape[0] - * if length != high.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * if length != low.shape[0]: - */ - } - - /* "talib/func.pyx":5950 - * 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/func.pyx":5951 - * 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__769, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5951, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 5951, __pyx_L1_error) - - /* "talib/func.pyx":5950 - * 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/func.pyx":5952 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":5953 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__770, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5953, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 5953, __pyx_L1_error) - - /* "talib/func.pyx":5952 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - } - - /* "talib/func.pyx":5954 - * if length != close.shape[0]: - * raise Exception("input lengths are different") - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = open_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":5955 - * raise Exception("input lengths are different") - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = open_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":5956 - * begidx = 0 - * for i from 0 <= i < length: - * val = open_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_open_data[__pyx_v_i]); - - /* "talib/func.pyx":5957 - * for i from 0 <= i < length: - * val = open_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = high_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":5958 - * val = open_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = high_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":5957 - * for i from 0 <= i < length: - * val = open_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = high_data[i] - */ - } - - /* "talib/func.pyx":5959 - * if val != val: - * continue - * val = high_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); - - /* "talib/func.pyx":5960 - * continue - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":5961 - * val = high_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = low_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":5960 - * continue - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - } - - /* "talib/func.pyx":5962 - * if val != val: - * continue - * val = low_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); - - /* "talib/func.pyx":5963 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":5964 - * val = low_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = close_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":5963 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - } - - /* "talib/func.pyx":5965 - * if val != val: - * continue - * val = close_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); - - /* "talib/func.pyx":5966 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":5967 - * val = close_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":5966 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":5968 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":5969 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L19_break; - __pyx_L18_continue:; - } - /*else*/ { - - /* "talib/func.pyx":5971 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLSTICKSANDWICH_Lookback( ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__771, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5971, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 5971, __pyx_L1_error) - } - __pyx_L19_break:; - - /* "talib/func.pyx":5972 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_CDLSTICKSANDWICH_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":5973 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLSTICKSANDWICH_Lookback( ) # <<<<<<<<<<<<<< - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_CDLSTICKSANDWICH_Lookback()); - - /* "talib/func.pyx":5974 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLSTICKSANDWICH_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5974, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 5974, __pyx_L1_error) - __pyx_v_outinteger = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":5975 - * lookback = begidx + lib.TA_CDLSTICKSANDWICH_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 - */ - __pyx_v_outinteger_data = ((int *)__pyx_v_outinteger->data); - - /* "talib/func.pyx":5976 - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLSTICKSANDWICH( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":5977 - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 # <<<<<<<<<<<<<< - * retCode = lib.TA_CDLSTICKSANDWICH( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _ta_check_success("TA_CDLSTICKSANDWICH", retCode) - */ - (__pyx_v_outinteger_data[__pyx_v_i]) = 0; - } - - /* "talib/func.pyx":5978 - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLSTICKSANDWICH( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_CDLSTICKSANDWICH", retCode) - * return outinteger - */ - __pyx_v_retCode = TA_CDLSTICKSANDWICH(0, __pyx_v_endidx, ((double *)(__pyx_v_open_data + __pyx_v_begidx)), ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outinteger_data + __pyx_v_lookback))); - - /* "talib/func.pyx":5979 - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLSTICKSANDWICH( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _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, 5979, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":5980 - * retCode = lib.TA_CDLSTICKSANDWICH( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _ta_check_success("TA_CDLSTICKSANDWICH", retCode) - * return outinteger # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outinteger)); - __pyx_r = ((PyObject *)__pyx_v_outinteger); - goto __pyx_L0; - - /* "talib/func.pyx":5896 - * @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.func.CDLSTICKSANDWICH", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outinteger); - __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/func.pyx":5984 - * @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_4func_143CDLTAKURI(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_143CDLTAKURI = {"CDLTAKURI", (PyCFunction)__pyx_pw_5talib_4func_143CDLTAKURI, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_142CDLTAKURI}; -static PyObject *__pyx_pw_5talib_4func_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, 5984, __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, 5984, __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, 5984, __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, 5984, __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, 5984, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 5984, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 5984, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 5984, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 5984, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_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; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - 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; - PyArrayObject *__pyx_v_outinteger = 0; - int *__pyx_v_outinteger_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __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/func.pyx":6007 - * np.ndarray outinteger - * int* outinteger_data - * 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/func.pyx":6008 - * int* outinteger_data - * 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__772, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6008, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 6008, __pyx_L1_error) - - /* "talib/func.pyx":6007 - * np.ndarray outinteger - * int* outinteger_data - * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("open is not double") - * if open.ndim != 1: - */ - } - - /* "talib/func.pyx":6009 - * 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/func.pyx":6010 - * 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__773, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6010, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 6010, __pyx_L1_error) - - /* "talib/func.pyx":6009 - * 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/func.pyx":6011 - * 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 = open.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":6012 - * raise Exception("open has wrong dimensions") - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< - * open_data = 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, 6012, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 6012, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":6011 - * 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 = open.data - */ - } - - /* "talib/func.pyx":6013 - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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/func.pyx":6014 - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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/func.pyx":6015 - * open_data = 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__774, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6015, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 6015, __pyx_L1_error) - - /* "talib/func.pyx":6014 - * open = PyArray_GETCONTIGUOUS(open) - * open_data = open.data - * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("high is not double") - * if high.ndim != 1: - */ - } - - /* "talib/func.pyx":6016 - * 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/func.pyx":6017 - * raise 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__775, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6017, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 6017, __pyx_L1_error) - - /* "talib/func.pyx":6016 - * 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/func.pyx":6018 - * 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 = high.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":6019 - * raise Exception("high has wrong dimensions") - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< - * high_data = 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, 6019, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 6019, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":6018 - * 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 = high.data - */ - } - - /* "talib/func.pyx":6020 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":6021 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":6022 - * high_data = 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__776, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6022, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 6022, __pyx_L1_error) - - /* "talib/func.pyx":6021 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = high.data - * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("low is not double") - * if low.ndim != 1: - */ - } - - /* "talib/func.pyx":6023 - * 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/func.pyx":6024 - * raise 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__777, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6024, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 6024, __pyx_L1_error) - - /* "talib/func.pyx":6023 - * 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/func.pyx":6025 - * 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 = low.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":6026 - * raise Exception("low has wrong dimensions") - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< - * low_data = 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, 6026, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 6026, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":6025 - * 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 = low.data - */ - } - - /* "talib/func.pyx":6027 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":6028 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":6029 - * low_data = 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__778, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6029, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 6029, __pyx_L1_error) - - /* "talib/func.pyx":6028 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = low.data - * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("close is not double") - * if close.ndim != 1: - */ - } - - /* "talib/func.pyx":6030 - * 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/func.pyx":6031 - * raise 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__779, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6031, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 6031, __pyx_L1_error) - - /* "talib/func.pyx":6030 - * 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/func.pyx":6032 - * 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 = close.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":6033 - * raise Exception("close has wrong dimensions") - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< - * close_data = close.data - * length = open.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6033, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 6033, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":6032 - * 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 = close.data - */ - } - - /* "talib/func.pyx":6034 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = close.data # <<<<<<<<<<<<<< - * length = open.shape[0] - * if length != high.shape[0]: - */ - __pyx_v_close_data = ((double *)__pyx_v_close->data); - - /* "talib/func.pyx":6035 - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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/func.pyx":6036 - * close_data = 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/func.pyx":6037 - * 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__780, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6037, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 6037, __pyx_L1_error) - - /* "talib/func.pyx":6036 - * close_data = close.data - * length = open.shape[0] - * if length != high.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * if length != low.shape[0]: - */ - } - - /* "talib/func.pyx":6038 - * 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/func.pyx":6039 - * 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__781, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6039, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 6039, __pyx_L1_error) - - /* "talib/func.pyx":6038 - * 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/func.pyx":6040 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":6041 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__782, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6041, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 6041, __pyx_L1_error) - - /* "talib/func.pyx":6040 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - } - - /* "talib/func.pyx":6042 - * if length != close.shape[0]: - * raise Exception("input lengths are different") - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = open_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":6043 - * raise Exception("input lengths are different") - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = open_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":6044 - * begidx = 0 - * for i from 0 <= i < length: - * val = open_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_open_data[__pyx_v_i]); - - /* "talib/func.pyx":6045 - * for i from 0 <= i < length: - * val = open_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = high_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":6046 - * val = open_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = high_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":6045 - * for i from 0 <= i < length: - * val = open_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = high_data[i] - */ - } - - /* "talib/func.pyx":6047 - * if val != val: - * continue - * val = high_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); - - /* "talib/func.pyx":6048 - * continue - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":6049 - * val = high_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = low_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":6048 - * continue - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - } - - /* "talib/func.pyx":6050 - * if val != val: - * continue - * val = low_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); - - /* "talib/func.pyx":6051 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":6052 - * val = low_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = close_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":6051 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - } - - /* "talib/func.pyx":6053 - * if val != val: - * continue - * val = close_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); - - /* "talib/func.pyx":6054 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":6055 - * val = close_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":6054 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":6056 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":6057 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L19_break; - __pyx_L18_continue:; - } - /*else*/ { - - /* "talib/func.pyx":6059 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLTAKURI_Lookback( ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__783, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6059, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 6059, __pyx_L1_error) - } - __pyx_L19_break:; - - /* "talib/func.pyx":6060 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_CDLTAKURI_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":6061 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLTAKURI_Lookback( ) # <<<<<<<<<<<<<< - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_CDLTAKURI_Lookback()); - - /* "talib/func.pyx":6062 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLTAKURI_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6062, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 6062, __pyx_L1_error) - __pyx_v_outinteger = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":6063 - * lookback = begidx + lib.TA_CDLTAKURI_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 - */ - __pyx_v_outinteger_data = ((int *)__pyx_v_outinteger->data); - - /* "talib/func.pyx":6064 - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLTAKURI( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":6065 - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 # <<<<<<<<<<<<<< - * retCode = lib.TA_CDLTAKURI( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _ta_check_success("TA_CDLTAKURI", retCode) - */ - (__pyx_v_outinteger_data[__pyx_v_i]) = 0; - } - - /* "talib/func.pyx":6066 - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLTAKURI( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_CDLTAKURI", retCode) - * return outinteger - */ - __pyx_v_retCode = TA_CDLTAKURI(0, __pyx_v_endidx, ((double *)(__pyx_v_open_data + __pyx_v_begidx)), ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outinteger_data + __pyx_v_lookback))); - - /* "talib/func.pyx":6067 - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLTAKURI( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _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, 6067, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":6068 - * retCode = lib.TA_CDLTAKURI( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _ta_check_success("TA_CDLTAKURI", retCode) - * return outinteger # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outinteger)); - __pyx_r = ((PyObject *)__pyx_v_outinteger); - goto __pyx_L0; - - /* "talib/func.pyx":5984 - * @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.func.CDLTAKURI", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outinteger); - __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/func.pyx":6072 - * @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_4func_145CDLTASUKIGAP(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_145CDLTASUKIGAP = {"CDLTASUKIGAP", (PyCFunction)__pyx_pw_5talib_4func_145CDLTASUKIGAP, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_144CDLTASUKIGAP}; -static PyObject *__pyx_pw_5talib_4func_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, 6072, __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, 6072, __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, 6072, __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, 6072, __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, 6072, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 6072, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 6072, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 6072, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 6072, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_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; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - 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; - PyArrayObject *__pyx_v_outinteger = 0; - int *__pyx_v_outinteger_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __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/func.pyx":6095 - * np.ndarray outinteger - * int* outinteger_data - * 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/func.pyx":6096 - * int* outinteger_data - * 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__784, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6096, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 6096, __pyx_L1_error) - - /* "talib/func.pyx":6095 - * np.ndarray outinteger - * int* outinteger_data - * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("open is not double") - * if open.ndim != 1: - */ - } - - /* "talib/func.pyx":6097 - * 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/func.pyx":6098 - * 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__785, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6098, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 6098, __pyx_L1_error) - - /* "talib/func.pyx":6097 - * 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/func.pyx":6099 - * 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 = open.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":6100 - * raise Exception("open has wrong dimensions") - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< - * open_data = 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, 6100, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 6100, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":6099 - * 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 = open.data - */ - } - - /* "talib/func.pyx":6101 - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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/func.pyx":6102 - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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/func.pyx":6103 - * open_data = 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__786, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6103, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 6103, __pyx_L1_error) - - /* "talib/func.pyx":6102 - * open = PyArray_GETCONTIGUOUS(open) - * open_data = open.data - * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("high is not double") - * if high.ndim != 1: - */ - } - - /* "talib/func.pyx":6104 - * 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/func.pyx":6105 - * raise 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__787, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6105, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 6105, __pyx_L1_error) - - /* "talib/func.pyx":6104 - * 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/func.pyx":6106 - * 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 = high.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":6107 - * raise Exception("high has wrong dimensions") - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< - * high_data = 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, 6107, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 6107, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":6106 - * 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 = high.data - */ - } - - /* "talib/func.pyx":6108 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":6109 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":6110 - * high_data = 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__788, 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/func.pyx":6109 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = high.data - * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("low is not double") - * if low.ndim != 1: - */ - } - - /* "talib/func.pyx":6111 - * 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/func.pyx":6112 - * raise 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__789, 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/func.pyx":6111 - * 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/func.pyx":6113 - * 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 = low.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":6114 - * raise Exception("low has wrong dimensions") - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< - * low_data = 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, 6114, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 6114, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":6113 - * 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 = low.data - */ - } - - /* "talib/func.pyx":6115 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":6116 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":6117 - * low_data = 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__790, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6117, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 6117, __pyx_L1_error) - - /* "talib/func.pyx":6116 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = low.data - * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("close is not double") - * if close.ndim != 1: - */ - } - - /* "talib/func.pyx":6118 - * 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/func.pyx":6119 - * raise 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__791, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6119, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 6119, __pyx_L1_error) - - /* "talib/func.pyx":6118 - * 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/func.pyx":6120 - * 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 = close.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":6121 - * raise Exception("close has wrong dimensions") - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< - * close_data = close.data - * length = open.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6121, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 6121, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":6120 - * 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 = close.data - */ - } - - /* "talib/func.pyx":6122 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = close.data # <<<<<<<<<<<<<< - * length = open.shape[0] - * if length != high.shape[0]: - */ - __pyx_v_close_data = ((double *)__pyx_v_close->data); - - /* "talib/func.pyx":6123 - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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/func.pyx":6124 - * close_data = 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/func.pyx":6125 - * 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__792, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6125, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 6125, __pyx_L1_error) - - /* "talib/func.pyx":6124 - * close_data = close.data - * length = open.shape[0] - * if length != high.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * if length != low.shape[0]: - */ - } - - /* "talib/func.pyx":6126 - * 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/func.pyx":6127 - * 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__793, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6127, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 6127, __pyx_L1_error) - - /* "talib/func.pyx":6126 - * 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/func.pyx":6128 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":6129 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__794, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6129, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 6129, __pyx_L1_error) - - /* "talib/func.pyx":6128 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - } - - /* "talib/func.pyx":6130 - * if length != close.shape[0]: - * raise Exception("input lengths are different") - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = open_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":6131 - * raise Exception("input lengths are different") - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = open_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":6132 - * begidx = 0 - * for i from 0 <= i < length: - * val = open_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_open_data[__pyx_v_i]); - - /* "talib/func.pyx":6133 - * for i from 0 <= i < length: - * val = open_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = high_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":6134 - * val = open_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = high_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":6133 - * for i from 0 <= i < length: - * val = open_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = high_data[i] - */ - } - - /* "talib/func.pyx":6135 - * if val != val: - * continue - * val = high_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); - - /* "talib/func.pyx":6136 - * continue - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":6137 - * val = high_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = low_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":6136 - * continue - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - } - - /* "talib/func.pyx":6138 - * if val != val: - * continue - * val = low_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); - - /* "talib/func.pyx":6139 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":6140 - * val = low_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = close_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":6139 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - } - - /* "talib/func.pyx":6141 - * if val != val: - * continue - * val = close_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); - - /* "talib/func.pyx":6142 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":6143 - * val = close_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":6142 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":6144 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":6145 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L19_break; - __pyx_L18_continue:; - } - /*else*/ { - - /* "talib/func.pyx":6147 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLTASUKIGAP_Lookback( ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__795, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6147, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 6147, __pyx_L1_error) - } - __pyx_L19_break:; - - /* "talib/func.pyx":6148 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_CDLTASUKIGAP_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":6149 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLTASUKIGAP_Lookback( ) # <<<<<<<<<<<<<< - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_CDLTASUKIGAP_Lookback()); - - /* "talib/func.pyx":6150 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLTASUKIGAP_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6150, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 6150, __pyx_L1_error) - __pyx_v_outinteger = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":6151 - * lookback = begidx + lib.TA_CDLTASUKIGAP_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 - */ - __pyx_v_outinteger_data = ((int *)__pyx_v_outinteger->data); - - /* "talib/func.pyx":6152 - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLTASUKIGAP( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":6153 - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 # <<<<<<<<<<<<<< - * retCode = lib.TA_CDLTASUKIGAP( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _ta_check_success("TA_CDLTASUKIGAP", retCode) - */ - (__pyx_v_outinteger_data[__pyx_v_i]) = 0; - } - - /* "talib/func.pyx":6154 - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLTASUKIGAP( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_CDLTASUKIGAP", retCode) - * return outinteger - */ - __pyx_v_retCode = TA_CDLTASUKIGAP(0, __pyx_v_endidx, ((double *)(__pyx_v_open_data + __pyx_v_begidx)), ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outinteger_data + __pyx_v_lookback))); - - /* "talib/func.pyx":6155 - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLTASUKIGAP( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _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, 6155, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":6156 - * retCode = lib.TA_CDLTASUKIGAP( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _ta_check_success("TA_CDLTASUKIGAP", retCode) - * return outinteger # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outinteger)); - __pyx_r = ((PyObject *)__pyx_v_outinteger); - goto __pyx_L0; - - /* "talib/func.pyx":6072 - * @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.func.CDLTASUKIGAP", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outinteger); - __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/func.pyx":6160 - * @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_4func_147CDLTHRUSTING(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_147CDLTHRUSTING = {"CDLTHRUSTING", (PyCFunction)__pyx_pw_5talib_4func_147CDLTHRUSTING, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_146CDLTHRUSTING}; -static PyObject *__pyx_pw_5talib_4func_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, 6160, __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, 6160, __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, 6160, __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, 6160, __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, 6160, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 6160, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 6160, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 6160, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 6160, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_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; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - 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; - PyArrayObject *__pyx_v_outinteger = 0; - int *__pyx_v_outinteger_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __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/func.pyx":6183 - * np.ndarray outinteger - * int* outinteger_data - * 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/func.pyx":6184 - * int* outinteger_data - * 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__796, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6184, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 6184, __pyx_L1_error) - - /* "talib/func.pyx":6183 - * np.ndarray outinteger - * int* outinteger_data - * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("open is not double") - * if open.ndim != 1: - */ - } - - /* "talib/func.pyx":6185 - * 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/func.pyx":6186 - * 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__797, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6186, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 6186, __pyx_L1_error) - - /* "talib/func.pyx":6185 - * 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/func.pyx":6187 - * 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 = open.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":6188 - * raise Exception("open has wrong dimensions") - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< - * open_data = 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, 6188, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 6188, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":6187 - * 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 = open.data - */ - } - - /* "talib/func.pyx":6189 - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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/func.pyx":6190 - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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/func.pyx":6191 - * open_data = 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__798, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6191, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 6191, __pyx_L1_error) - - /* "talib/func.pyx":6190 - * open = PyArray_GETCONTIGUOUS(open) - * open_data = open.data - * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("high is not double") - * if high.ndim != 1: - */ - } - - /* "talib/func.pyx":6192 - * 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/func.pyx":6193 - * raise 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, 6193, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 6193, __pyx_L1_error) - - /* "talib/func.pyx":6192 - * 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/func.pyx":6194 - * 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 = high.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":6195 - * raise Exception("high has wrong dimensions") - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< - * high_data = 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, 6195, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 6195, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":6194 - * 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 = high.data - */ - } - - /* "talib/func.pyx":6196 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":6197 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":6198 - * high_data = 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, 6198, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 6198, __pyx_L1_error) - - /* "talib/func.pyx":6197 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = high.data - * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("low is not double") - * if low.ndim != 1: - */ - } - - /* "talib/func.pyx":6199 - * 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/func.pyx":6200 - * raise 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, 6200, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 6200, __pyx_L1_error) - - /* "talib/func.pyx":6199 - * 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/func.pyx":6201 - * 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 = low.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":6202 - * raise Exception("low has wrong dimensions") - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< - * low_data = 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, 6202, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 6202, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":6201 - * 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 = low.data - */ - } - - /* "talib/func.pyx":6203 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":6204 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":6205 - * low_data = 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, 6205, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 6205, __pyx_L1_error) - - /* "talib/func.pyx":6204 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = low.data - * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("close is not double") - * if close.ndim != 1: - */ - } - - /* "talib/func.pyx":6206 - * 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/func.pyx":6207 - * raise 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, 6207, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 6207, __pyx_L1_error) - - /* "talib/func.pyx":6206 - * 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/func.pyx":6208 - * 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 = close.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":6209 - * raise Exception("close has wrong dimensions") - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< - * close_data = close.data - * length = open.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6209, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 6209, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":6208 - * 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 = close.data - */ - } - - /* "talib/func.pyx":6210 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = close.data # <<<<<<<<<<<<<< - * length = open.shape[0] - * if length != high.shape[0]: - */ - __pyx_v_close_data = ((double *)__pyx_v_close->data); - - /* "talib/func.pyx":6211 - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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/func.pyx":6212 - * close_data = 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/func.pyx":6213 - * 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__804, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6213, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 6213, __pyx_L1_error) - - /* "talib/func.pyx":6212 - * close_data = close.data - * length = open.shape[0] - * if length != high.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * if length != low.shape[0]: - */ - } - - /* "talib/func.pyx":6214 - * 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/func.pyx":6215 - * 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__805, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6215, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 6215, __pyx_L1_error) - - /* "talib/func.pyx":6214 - * 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/func.pyx":6216 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":6217 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__806, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6217, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 6217, __pyx_L1_error) - - /* "talib/func.pyx":6216 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - } - - /* "talib/func.pyx":6218 - * if length != close.shape[0]: - * raise Exception("input lengths are different") - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = open_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":6219 - * raise Exception("input lengths are different") - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = open_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":6220 - * begidx = 0 - * for i from 0 <= i < length: - * val = open_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_open_data[__pyx_v_i]); - - /* "talib/func.pyx":6221 - * for i from 0 <= i < length: - * val = open_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = high_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":6222 - * val = open_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = high_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":6221 - * for i from 0 <= i < length: - * val = open_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = high_data[i] - */ - } - - /* "talib/func.pyx":6223 - * if val != val: - * continue - * val = high_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); - - /* "talib/func.pyx":6224 - * continue - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":6225 - * val = high_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = low_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":6224 - * continue - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - } - - /* "talib/func.pyx":6226 - * if val != val: - * continue - * val = low_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); - - /* "talib/func.pyx":6227 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":6228 - * val = low_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = close_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":6227 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - } - - /* "talib/func.pyx":6229 - * if val != val: - * continue - * val = close_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); - - /* "talib/func.pyx":6230 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":6231 - * val = close_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":6230 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":6232 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":6233 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L19_break; - __pyx_L18_continue:; - } - /*else*/ { - - /* "talib/func.pyx":6235 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLTHRUSTING_Lookback( ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__807, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6235, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 6235, __pyx_L1_error) - } - __pyx_L19_break:; - - /* "talib/func.pyx":6236 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_CDLTHRUSTING_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":6237 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLTHRUSTING_Lookback( ) # <<<<<<<<<<<<<< - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_CDLTHRUSTING_Lookback()); - - /* "talib/func.pyx":6238 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLTHRUSTING_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6238, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 6238, __pyx_L1_error) - __pyx_v_outinteger = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":6239 - * lookback = begidx + lib.TA_CDLTHRUSTING_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 - */ - __pyx_v_outinteger_data = ((int *)__pyx_v_outinteger->data); - - /* "talib/func.pyx":6240 - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLTHRUSTING( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":6241 - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 # <<<<<<<<<<<<<< - * retCode = lib.TA_CDLTHRUSTING( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _ta_check_success("TA_CDLTHRUSTING", retCode) - */ - (__pyx_v_outinteger_data[__pyx_v_i]) = 0; - } - - /* "talib/func.pyx":6242 - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLTHRUSTING( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_CDLTHRUSTING", retCode) - * return outinteger - */ - __pyx_v_retCode = TA_CDLTHRUSTING(0, __pyx_v_endidx, ((double *)(__pyx_v_open_data + __pyx_v_begidx)), ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outinteger_data + __pyx_v_lookback))); - - /* "talib/func.pyx":6243 - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLTHRUSTING( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _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, 6243, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":6244 - * retCode = lib.TA_CDLTHRUSTING( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _ta_check_success("TA_CDLTHRUSTING", retCode) - * return outinteger # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outinteger)); - __pyx_r = ((PyObject *)__pyx_v_outinteger); - goto __pyx_L0; - - /* "talib/func.pyx":6160 - * @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.func.CDLTHRUSTING", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outinteger); - __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/func.pyx":6248 - * @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_4func_149CDLTRISTAR(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_149CDLTRISTAR = {"CDLTRISTAR", (PyCFunction)__pyx_pw_5talib_4func_149CDLTRISTAR, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_148CDLTRISTAR}; -static PyObject *__pyx_pw_5talib_4func_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, 6248, __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, 6248, __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, 6248, __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, 6248, __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, 6248, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 6248, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 6248, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 6248, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 6248, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_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; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - 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; - PyArrayObject *__pyx_v_outinteger = 0; - int *__pyx_v_outinteger_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __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/func.pyx":6271 - * np.ndarray outinteger - * int* outinteger_data - * 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/func.pyx":6272 - * int* outinteger_data - * 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__808, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6272, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 6272, __pyx_L1_error) - - /* "talib/func.pyx":6271 - * np.ndarray outinteger - * int* outinteger_data - * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("open is not double") - * if open.ndim != 1: - */ - } - - /* "talib/func.pyx":6273 - * 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/func.pyx":6274 - * 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__809, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6274, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 6274, __pyx_L1_error) - - /* "talib/func.pyx":6273 - * 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/func.pyx":6275 - * 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 = open.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":6276 - * raise Exception("open has wrong dimensions") - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< - * open_data = 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, 6276, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 6276, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":6275 - * 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 = open.data - */ - } - - /* "talib/func.pyx":6277 - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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/func.pyx":6278 - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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/func.pyx":6279 - * open_data = 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__810, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6279, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 6279, __pyx_L1_error) - - /* "talib/func.pyx":6278 - * open = PyArray_GETCONTIGUOUS(open) - * open_data = open.data - * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("high is not double") - * if high.ndim != 1: - */ - } - - /* "talib/func.pyx":6280 - * 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/func.pyx":6281 - * raise 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__811, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6281, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 6281, __pyx_L1_error) - - /* "talib/func.pyx":6280 - * 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/func.pyx":6282 - * 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 = high.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":6283 - * raise Exception("high has wrong dimensions") - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< - * high_data = 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, 6283, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 6283, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":6282 - * 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 = high.data - */ - } - - /* "talib/func.pyx":6284 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":6285 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":6286 - * high_data = 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__812, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6286, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 6286, __pyx_L1_error) - - /* "talib/func.pyx":6285 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = high.data - * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("low is not double") - * if low.ndim != 1: - */ - } - - /* "talib/func.pyx":6287 - * 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/func.pyx":6288 - * raise 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__813, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6288, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 6288, __pyx_L1_error) - - /* "talib/func.pyx":6287 - * 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/func.pyx":6289 - * 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 = low.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":6290 - * raise Exception("low has wrong dimensions") - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< - * low_data = 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, 6290, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 6290, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":6289 - * 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 = low.data - */ - } - - /* "talib/func.pyx":6291 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":6292 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":6293 - * low_data = 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__814, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6293, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 6293, __pyx_L1_error) - - /* "talib/func.pyx":6292 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = low.data - * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("close is not double") - * if close.ndim != 1: - */ - } - - /* "talib/func.pyx":6294 - * 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/func.pyx":6295 - * raise 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__815, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6295, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 6295, __pyx_L1_error) - - /* "talib/func.pyx":6294 - * 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/func.pyx":6296 - * 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 = close.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":6297 - * raise Exception("close has wrong dimensions") - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< - * close_data = close.data - * length = open.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6297, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 6297, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":6296 - * 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 = close.data - */ - } - - /* "talib/func.pyx":6298 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = close.data # <<<<<<<<<<<<<< - * length = open.shape[0] - * if length != high.shape[0]: - */ - __pyx_v_close_data = ((double *)__pyx_v_close->data); - - /* "talib/func.pyx":6299 - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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/func.pyx":6300 - * close_data = 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/func.pyx":6301 - * 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__816, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6301, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 6301, __pyx_L1_error) - - /* "talib/func.pyx":6300 - * close_data = close.data - * length = open.shape[0] - * if length != high.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * if length != low.shape[0]: - */ - } - - /* "talib/func.pyx":6302 - * 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/func.pyx":6303 - * 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__817, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6303, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 6303, __pyx_L1_error) - - /* "talib/func.pyx":6302 - * 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/func.pyx":6304 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":6305 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__818, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6305, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 6305, __pyx_L1_error) - - /* "talib/func.pyx":6304 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - } - - /* "talib/func.pyx":6306 - * if length != close.shape[0]: - * raise Exception("input lengths are different") - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = open_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":6307 - * raise Exception("input lengths are different") - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = open_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":6308 - * begidx = 0 - * for i from 0 <= i < length: - * val = open_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_open_data[__pyx_v_i]); - - /* "talib/func.pyx":6309 - * for i from 0 <= i < length: - * val = open_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = high_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":6310 - * val = open_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = high_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":6309 - * for i from 0 <= i < length: - * val = open_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = high_data[i] - */ - } - - /* "talib/func.pyx":6311 - * if val != val: - * continue - * val = high_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); - - /* "talib/func.pyx":6312 - * continue - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":6313 - * val = high_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = low_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":6312 - * continue - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - } - - /* "talib/func.pyx":6314 - * if val != val: - * continue - * val = low_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); - - /* "talib/func.pyx":6315 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":6316 - * val = low_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = close_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":6315 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - } - - /* "talib/func.pyx":6317 - * if val != val: - * continue - * val = close_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); - - /* "talib/func.pyx":6318 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":6319 - * val = close_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":6318 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":6320 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":6321 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L19_break; - __pyx_L18_continue:; - } - /*else*/ { - - /* "talib/func.pyx":6323 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLTRISTAR_Lookback( ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__819, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6323, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 6323, __pyx_L1_error) - } - __pyx_L19_break:; - - /* "talib/func.pyx":6324 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_CDLTRISTAR_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":6325 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLTRISTAR_Lookback( ) # <<<<<<<<<<<<<< - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_CDLTRISTAR_Lookback()); - - /* "talib/func.pyx":6326 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLTRISTAR_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6326, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 6326, __pyx_L1_error) - __pyx_v_outinteger = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":6327 - * lookback = begidx + lib.TA_CDLTRISTAR_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 - */ - __pyx_v_outinteger_data = ((int *)__pyx_v_outinteger->data); - - /* "talib/func.pyx":6328 - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLTRISTAR( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":6329 - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 # <<<<<<<<<<<<<< - * retCode = lib.TA_CDLTRISTAR( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _ta_check_success("TA_CDLTRISTAR", retCode) - */ - (__pyx_v_outinteger_data[__pyx_v_i]) = 0; - } - - /* "talib/func.pyx":6330 - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLTRISTAR( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_CDLTRISTAR", retCode) - * return outinteger - */ - __pyx_v_retCode = TA_CDLTRISTAR(0, __pyx_v_endidx, ((double *)(__pyx_v_open_data + __pyx_v_begidx)), ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outinteger_data + __pyx_v_lookback))); - - /* "talib/func.pyx":6331 - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLTRISTAR( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _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, 6331, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":6332 - * retCode = lib.TA_CDLTRISTAR( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _ta_check_success("TA_CDLTRISTAR", retCode) - * return outinteger # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outinteger)); - __pyx_r = ((PyObject *)__pyx_v_outinteger); - goto __pyx_L0; - - /* "talib/func.pyx":6248 - * @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.func.CDLTRISTAR", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outinteger); - __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/func.pyx":6336 - * @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_4func_151CDLUNIQUE3RIVER(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_151CDLUNIQUE3RIVER = {"CDLUNIQUE3RIVER", (PyCFunction)__pyx_pw_5talib_4func_151CDLUNIQUE3RIVER, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_150CDLUNIQUE3RIVER}; -static PyObject *__pyx_pw_5talib_4func_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, 6336, __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, 6336, __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, 6336, __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, 6336, __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, 6336, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 6336, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 6336, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 6336, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 6336, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_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; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - 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; - PyArrayObject *__pyx_v_outinteger = 0; - int *__pyx_v_outinteger_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __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/func.pyx":6359 - * np.ndarray outinteger - * int* outinteger_data - * 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/func.pyx":6360 - * int* outinteger_data - * 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__820, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6360, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 6360, __pyx_L1_error) - - /* "talib/func.pyx":6359 - * np.ndarray outinteger - * int* outinteger_data - * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("open is not double") - * if open.ndim != 1: - */ - } - - /* "talib/func.pyx":6361 - * 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/func.pyx":6362 - * 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__821, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6362, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 6362, __pyx_L1_error) - - /* "talib/func.pyx":6361 - * 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/func.pyx":6363 - * 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 = open.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":6364 - * raise Exception("open has wrong dimensions") - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< - * open_data = 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, 6364, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 6364, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":6363 - * 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 = open.data - */ - } - - /* "talib/func.pyx":6365 - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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/func.pyx":6366 - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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/func.pyx":6367 - * open_data = 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__822, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6367, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 6367, __pyx_L1_error) - - /* "talib/func.pyx":6366 - * open = PyArray_GETCONTIGUOUS(open) - * open_data = open.data - * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("high is not double") - * if high.ndim != 1: - */ - } - - /* "talib/func.pyx":6368 - * 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/func.pyx":6369 - * raise 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__823, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6369, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 6369, __pyx_L1_error) - - /* "talib/func.pyx":6368 - * 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/func.pyx":6370 - * 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 = high.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":6371 - * raise Exception("high has wrong dimensions") - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< - * high_data = 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, 6371, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 6371, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":6370 - * 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 = high.data - */ - } - - /* "talib/func.pyx":6372 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":6373 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":6374 - * high_data = 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__824, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6374, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 6374, __pyx_L1_error) - - /* "talib/func.pyx":6373 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = high.data - * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("low is not double") - * if low.ndim != 1: - */ - } - - /* "talib/func.pyx":6375 - * 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/func.pyx":6376 - * raise 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__825, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6376, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 6376, __pyx_L1_error) - - /* "talib/func.pyx":6375 - * 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/func.pyx":6377 - * 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 = low.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":6378 - * raise Exception("low has wrong dimensions") - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< - * low_data = 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, 6378, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 6378, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":6377 - * 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 = low.data - */ - } - - /* "talib/func.pyx":6379 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":6380 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":6381 - * low_data = 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__826, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6381, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 6381, __pyx_L1_error) - - /* "talib/func.pyx":6380 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = low.data - * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("close is not double") - * if close.ndim != 1: - */ - } - - /* "talib/func.pyx":6382 - * 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/func.pyx":6383 - * raise 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__827, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6383, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 6383, __pyx_L1_error) - - /* "talib/func.pyx":6382 - * 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/func.pyx":6384 - * 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 = close.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":6385 - * raise Exception("close has wrong dimensions") - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< - * close_data = close.data - * length = open.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6385, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 6385, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":6384 - * 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 = close.data - */ - } - - /* "talib/func.pyx":6386 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = close.data # <<<<<<<<<<<<<< - * length = open.shape[0] - * if length != high.shape[0]: - */ - __pyx_v_close_data = ((double *)__pyx_v_close->data); - - /* "talib/func.pyx":6387 - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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/func.pyx":6388 - * close_data = 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/func.pyx":6389 - * 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__828, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6389, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 6389, __pyx_L1_error) - - /* "talib/func.pyx":6388 - * close_data = close.data - * length = open.shape[0] - * if length != high.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * if length != low.shape[0]: - */ - } - - /* "talib/func.pyx":6390 - * 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/func.pyx":6391 - * 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__829, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6391, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 6391, __pyx_L1_error) - - /* "talib/func.pyx":6390 - * 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/func.pyx":6392 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":6393 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__830, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6393, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 6393, __pyx_L1_error) - - /* "talib/func.pyx":6392 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - } - - /* "talib/func.pyx":6394 - * if length != close.shape[0]: - * raise Exception("input lengths are different") - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = open_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":6395 - * raise Exception("input lengths are different") - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = open_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":6396 - * begidx = 0 - * for i from 0 <= i < length: - * val = open_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_open_data[__pyx_v_i]); - - /* "talib/func.pyx":6397 - * for i from 0 <= i < length: - * val = open_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = high_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":6398 - * val = open_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = high_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":6397 - * for i from 0 <= i < length: - * val = open_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = high_data[i] - */ - } - - /* "talib/func.pyx":6399 - * if val != val: - * continue - * val = high_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); - - /* "talib/func.pyx":6400 - * continue - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":6401 - * val = high_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = low_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":6400 - * continue - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - } - - /* "talib/func.pyx":6402 - * if val != val: - * continue - * val = low_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); - - /* "talib/func.pyx":6403 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":6404 - * val = low_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = close_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":6403 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - } - - /* "talib/func.pyx":6405 - * if val != val: - * continue - * val = close_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); - - /* "talib/func.pyx":6406 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":6407 - * val = close_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":6406 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":6408 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":6409 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L19_break; - __pyx_L18_continue:; - } - /*else*/ { - - /* "talib/func.pyx":6411 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLUNIQUE3RIVER_Lookback( ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__831, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6411, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 6411, __pyx_L1_error) - } - __pyx_L19_break:; - - /* "talib/func.pyx":6412 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_CDLUNIQUE3RIVER_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":6413 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLUNIQUE3RIVER_Lookback( ) # <<<<<<<<<<<<<< - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_CDLUNIQUE3RIVER_Lookback()); - - /* "talib/func.pyx":6414 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLUNIQUE3RIVER_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6414, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 6414, __pyx_L1_error) - __pyx_v_outinteger = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":6415 - * lookback = begidx + lib.TA_CDLUNIQUE3RIVER_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 - */ - __pyx_v_outinteger_data = ((int *)__pyx_v_outinteger->data); - - /* "talib/func.pyx":6416 - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLUNIQUE3RIVER( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":6417 - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 # <<<<<<<<<<<<<< - * retCode = lib.TA_CDLUNIQUE3RIVER( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _ta_check_success("TA_CDLUNIQUE3RIVER", retCode) - */ - (__pyx_v_outinteger_data[__pyx_v_i]) = 0; - } - - /* "talib/func.pyx":6418 - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLUNIQUE3RIVER( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_CDLUNIQUE3RIVER", retCode) - * return outinteger - */ - __pyx_v_retCode = TA_CDLUNIQUE3RIVER(0, __pyx_v_endidx, ((double *)(__pyx_v_open_data + __pyx_v_begidx)), ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outinteger_data + __pyx_v_lookback))); - - /* "talib/func.pyx":6419 - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLUNIQUE3RIVER( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _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, 6419, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":6420 - * retCode = lib.TA_CDLUNIQUE3RIVER( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _ta_check_success("TA_CDLUNIQUE3RIVER", retCode) - * return outinteger # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outinteger)); - __pyx_r = ((PyObject *)__pyx_v_outinteger); - goto __pyx_L0; - - /* "talib/func.pyx":6336 - * @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.func.CDLUNIQUE3RIVER", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outinteger); - __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/func.pyx":6424 - * @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_4func_153CDLUPSIDEGAP2CROWS(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_153CDLUPSIDEGAP2CROWS = {"CDLUPSIDEGAP2CROWS", (PyCFunction)__pyx_pw_5talib_4func_153CDLUPSIDEGAP2CROWS, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_152CDLUPSIDEGAP2CROWS}; -static PyObject *__pyx_pw_5talib_4func_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, 6424, __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, 6424, __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, 6424, __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, 6424, __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, 6424, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 6424, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 6424, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 6424, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 6424, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_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; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - 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; - PyArrayObject *__pyx_v_outinteger = 0; - int *__pyx_v_outinteger_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __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/func.pyx":6447 - * np.ndarray outinteger - * int* outinteger_data - * 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/func.pyx":6448 - * int* outinteger_data - * 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__832, 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/func.pyx":6447 - * np.ndarray outinteger - * int* outinteger_data - * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("open is not double") - * if open.ndim != 1: - */ - } - - /* "talib/func.pyx":6449 - * 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/func.pyx":6450 - * 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__833, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6450, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 6450, __pyx_L1_error) - - /* "talib/func.pyx":6449 - * 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/func.pyx":6451 - * 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 = open.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":6452 - * raise Exception("open has wrong dimensions") - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< - * open_data = 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, 6452, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 6452, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":6451 - * 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 = open.data - */ - } - - /* "talib/func.pyx":6453 - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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/func.pyx":6454 - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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/func.pyx":6455 - * open_data = 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__834, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6455, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 6455, __pyx_L1_error) - - /* "talib/func.pyx":6454 - * open = PyArray_GETCONTIGUOUS(open) - * open_data = open.data - * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("high is not double") - * if high.ndim != 1: - */ - } - - /* "talib/func.pyx":6456 - * 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/func.pyx":6457 - * raise 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__835, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6457, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 6457, __pyx_L1_error) - - /* "talib/func.pyx":6456 - * 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/func.pyx":6458 - * 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 = high.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":6459 - * raise Exception("high has wrong dimensions") - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< - * high_data = 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, 6459, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 6459, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":6458 - * 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 = high.data - */ - } - - /* "talib/func.pyx":6460 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":6461 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":6462 - * high_data = 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__836, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6462, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 6462, __pyx_L1_error) - - /* "talib/func.pyx":6461 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = high.data - * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("low is not double") - * if low.ndim != 1: - */ - } - - /* "talib/func.pyx":6463 - * 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/func.pyx":6464 - * raise 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__837, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6464, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 6464, __pyx_L1_error) - - /* "talib/func.pyx":6463 - * 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/func.pyx":6465 - * 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 = low.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":6466 - * raise Exception("low has wrong dimensions") - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< - * low_data = 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, 6466, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 6466, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":6465 - * 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 = low.data - */ - } - - /* "talib/func.pyx":6467 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":6468 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":6469 - * low_data = 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__838, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6469, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 6469, __pyx_L1_error) - - /* "talib/func.pyx":6468 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = low.data - * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("close is not double") - * if close.ndim != 1: - */ - } - - /* "talib/func.pyx":6470 - * 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/func.pyx":6471 - * raise 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__839, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6471, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 6471, __pyx_L1_error) - - /* "talib/func.pyx":6470 - * 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/func.pyx":6472 - * 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 = close.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":6473 - * raise Exception("close has wrong dimensions") - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< - * close_data = close.data - * length = open.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6473, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 6473, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":6472 - * 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 = close.data - */ - } - - /* "talib/func.pyx":6474 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = close.data # <<<<<<<<<<<<<< - * length = open.shape[0] - * if length != high.shape[0]: - */ - __pyx_v_close_data = ((double *)__pyx_v_close->data); - - /* "talib/func.pyx":6475 - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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/func.pyx":6476 - * close_data = 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/func.pyx":6477 - * 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__840, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6477, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 6477, __pyx_L1_error) - - /* "talib/func.pyx":6476 - * close_data = close.data - * length = open.shape[0] - * if length != high.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * if length != low.shape[0]: - */ - } - - /* "talib/func.pyx":6478 - * 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/func.pyx":6479 - * 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__841, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6479, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 6479, __pyx_L1_error) - - /* "talib/func.pyx":6478 - * 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/func.pyx":6480 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":6481 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__842, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6481, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 6481, __pyx_L1_error) - - /* "talib/func.pyx":6480 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - } - - /* "talib/func.pyx":6482 - * if length != close.shape[0]: - * raise Exception("input lengths are different") - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = open_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":6483 - * raise Exception("input lengths are different") - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = open_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":6484 - * begidx = 0 - * for i from 0 <= i < length: - * val = open_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_open_data[__pyx_v_i]); - - /* "talib/func.pyx":6485 - * for i from 0 <= i < length: - * val = open_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = high_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":6486 - * val = open_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = high_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":6485 - * for i from 0 <= i < length: - * val = open_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = high_data[i] - */ - } - - /* "talib/func.pyx":6487 - * if val != val: - * continue - * val = high_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); - - /* "talib/func.pyx":6488 - * continue - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":6489 - * val = high_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = low_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":6488 - * continue - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - } - - /* "talib/func.pyx":6490 - * if val != val: - * continue - * val = low_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); - - /* "talib/func.pyx":6491 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":6492 - * val = low_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = close_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":6491 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - } - - /* "talib/func.pyx":6493 - * if val != val: - * continue - * val = close_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); - - /* "talib/func.pyx":6494 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":6495 - * val = close_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":6494 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":6496 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":6497 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L19_break; - __pyx_L18_continue:; - } - /*else*/ { - - /* "talib/func.pyx":6499 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLUPSIDEGAP2CROWS_Lookback( ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__843, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6499, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 6499, __pyx_L1_error) - } - __pyx_L19_break:; - - /* "talib/func.pyx":6500 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_CDLUPSIDEGAP2CROWS_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":6501 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLUPSIDEGAP2CROWS_Lookback( ) # <<<<<<<<<<<<<< - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_CDLUPSIDEGAP2CROWS_Lookback()); - - /* "talib/func.pyx":6502 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLUPSIDEGAP2CROWS_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6502, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 6502, __pyx_L1_error) - __pyx_v_outinteger = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":6503 - * lookback = begidx + lib.TA_CDLUPSIDEGAP2CROWS_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 - */ - __pyx_v_outinteger_data = ((int *)__pyx_v_outinteger->data); - - /* "talib/func.pyx":6504 - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLUPSIDEGAP2CROWS( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":6505 - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 # <<<<<<<<<<<<<< - * retCode = lib.TA_CDLUPSIDEGAP2CROWS( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _ta_check_success("TA_CDLUPSIDEGAP2CROWS", retCode) - */ - (__pyx_v_outinteger_data[__pyx_v_i]) = 0; - } - - /* "talib/func.pyx":6506 - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLUPSIDEGAP2CROWS( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_CDLUPSIDEGAP2CROWS", retCode) - * return outinteger - */ - __pyx_v_retCode = TA_CDLUPSIDEGAP2CROWS(0, __pyx_v_endidx, ((double *)(__pyx_v_open_data + __pyx_v_begidx)), ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outinteger_data + __pyx_v_lookback))); - - /* "talib/func.pyx":6507 - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLUPSIDEGAP2CROWS( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _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, 6507, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":6508 - * retCode = lib.TA_CDLUPSIDEGAP2CROWS( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _ta_check_success("TA_CDLUPSIDEGAP2CROWS", retCode) - * return outinteger # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outinteger)); - __pyx_r = ((PyObject *)__pyx_v_outinteger); - goto __pyx_L0; - - /* "talib/func.pyx":6424 - * @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.func.CDLUPSIDEGAP2CROWS", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outinteger); - __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/func.pyx":6512 - * @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_4func_155CDLXSIDEGAP3METHODS(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_155CDLXSIDEGAP3METHODS = {"CDLXSIDEGAP3METHODS", (PyCFunction)__pyx_pw_5talib_4func_155CDLXSIDEGAP3METHODS, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_154CDLXSIDEGAP3METHODS}; -static PyObject *__pyx_pw_5talib_4func_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, 6512, __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, 6512, __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, 6512, __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, 6512, __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, 6512, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 6512, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(0, 6512, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 6512, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 6512, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_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; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - 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; - PyArrayObject *__pyx_v_outinteger = 0; - int *__pyx_v_outinteger_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __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/func.pyx":6535 - * np.ndarray outinteger - * int* outinteger_data - * 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/func.pyx":6536 - * int* outinteger_data - * 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__844, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6536, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 6536, __pyx_L1_error) - - /* "talib/func.pyx":6535 - * np.ndarray outinteger - * int* outinteger_data - * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("open is not double") - * if open.ndim != 1: - */ - } - - /* "talib/func.pyx":6537 - * 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/func.pyx":6538 - * 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__845, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6538, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 6538, __pyx_L1_error) - - /* "talib/func.pyx":6537 - * 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/func.pyx":6539 - * 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 = open.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":6540 - * raise Exception("open has wrong dimensions") - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< - * open_data = 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, 6540, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 6540, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":6539 - * 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 = open.data - */ - } - - /* "talib/func.pyx":6541 - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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/func.pyx":6542 - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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/func.pyx":6543 - * open_data = 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__846, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6543, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 6543, __pyx_L1_error) - - /* "talib/func.pyx":6542 - * open = PyArray_GETCONTIGUOUS(open) - * open_data = open.data - * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("high is not double") - * if high.ndim != 1: - */ - } - - /* "talib/func.pyx":6544 - * 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/func.pyx":6545 - * raise 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__847, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6545, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 6545, __pyx_L1_error) - - /* "talib/func.pyx":6544 - * 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/func.pyx":6546 - * 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 = high.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":6547 - * raise Exception("high has wrong dimensions") - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< - * high_data = 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, 6547, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 6547, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":6546 - * 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 = high.data - */ - } - - /* "talib/func.pyx":6548 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":6549 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":6550 - * high_data = 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__848, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6550, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 6550, __pyx_L1_error) - - /* "talib/func.pyx":6549 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = high.data - * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("low is not double") - * if low.ndim != 1: - */ - } - - /* "talib/func.pyx":6551 - * 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/func.pyx":6552 - * raise 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__849, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6552, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 6552, __pyx_L1_error) - - /* "talib/func.pyx":6551 - * 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/func.pyx":6553 - * 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 = low.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":6554 - * raise Exception("low has wrong dimensions") - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< - * low_data = 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, 6554, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 6554, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":6553 - * 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 = low.data - */ - } - - /* "talib/func.pyx":6555 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":6556 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":6557 - * low_data = 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__850, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6557, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 6557, __pyx_L1_error) - - /* "talib/func.pyx":6556 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = low.data - * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("close is not double") - * if close.ndim != 1: - */ - } - - /* "talib/func.pyx":6558 - * 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/func.pyx":6559 - * raise 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__851, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6559, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 6559, __pyx_L1_error) - - /* "talib/func.pyx":6558 - * 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/func.pyx":6560 - * 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 = close.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":6561 - * raise Exception("close has wrong dimensions") - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< - * close_data = close.data - * length = open.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6561, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 6561, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":6560 - * 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 = close.data - */ - } - - /* "talib/func.pyx":6562 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = close.data # <<<<<<<<<<<<<< - * length = open.shape[0] - * if length != high.shape[0]: - */ - __pyx_v_close_data = ((double *)__pyx_v_close->data); - - /* "talib/func.pyx":6563 - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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/func.pyx":6564 - * close_data = 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/func.pyx":6565 - * 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__852, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6565, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 6565, __pyx_L1_error) - - /* "talib/func.pyx":6564 - * close_data = close.data - * length = open.shape[0] - * if length != high.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * if length != low.shape[0]: - */ - } - - /* "talib/func.pyx":6566 - * 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/func.pyx":6567 - * 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__853, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6567, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 6567, __pyx_L1_error) - - /* "talib/func.pyx":6566 - * 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/func.pyx":6568 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":6569 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__854, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6569, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 6569, __pyx_L1_error) - - /* "talib/func.pyx":6568 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - } - - /* "talib/func.pyx":6570 - * if length != close.shape[0]: - * raise Exception("input lengths are different") - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = open_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":6571 - * raise Exception("input lengths are different") - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = open_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":6572 - * begidx = 0 - * for i from 0 <= i < length: - * val = open_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_open_data[__pyx_v_i]); - - /* "talib/func.pyx":6573 - * for i from 0 <= i < length: - * val = open_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = high_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":6574 - * val = open_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = high_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":6573 - * for i from 0 <= i < length: - * val = open_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = high_data[i] - */ - } - - /* "talib/func.pyx":6575 - * if val != val: - * continue - * val = high_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); - - /* "talib/func.pyx":6576 - * continue - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":6577 - * val = high_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = low_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":6576 - * continue - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - } - - /* "talib/func.pyx":6578 - * if val != val: - * continue - * val = low_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); - - /* "talib/func.pyx":6579 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":6580 - * val = low_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = close_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":6579 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - } - - /* "talib/func.pyx":6581 - * if val != val: - * continue - * val = close_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); - - /* "talib/func.pyx":6582 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":6583 - * val = close_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":6582 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":6584 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":6585 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L19_break; - __pyx_L18_continue:; - } - /*else*/ { - - /* "talib/func.pyx":6587 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLXSIDEGAP3METHODS_Lookback( ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__855, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6587, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 6587, __pyx_L1_error) - } - __pyx_L19_break:; - - /* "talib/func.pyx":6588 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_CDLXSIDEGAP3METHODS_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":6589 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLXSIDEGAP3METHODS_Lookback( ) # <<<<<<<<<<<<<< - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_CDLXSIDEGAP3METHODS_Lookback()); - - /* "talib/func.pyx":6590 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLXSIDEGAP3METHODS_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6590, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 6590, __pyx_L1_error) - __pyx_v_outinteger = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":6591 - * lookback = begidx + lib.TA_CDLXSIDEGAP3METHODS_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 - */ - __pyx_v_outinteger_data = ((int *)__pyx_v_outinteger->data); - - /* "talib/func.pyx":6592 - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLXSIDEGAP3METHODS( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":6593 - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 # <<<<<<<<<<<<<< - * retCode = lib.TA_CDLXSIDEGAP3METHODS( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _ta_check_success("TA_CDLXSIDEGAP3METHODS", retCode) - */ - (__pyx_v_outinteger_data[__pyx_v_i]) = 0; - } - - /* "talib/func.pyx":6594 - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLXSIDEGAP3METHODS( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_CDLXSIDEGAP3METHODS", retCode) - * return outinteger - */ - __pyx_v_retCode = TA_CDLXSIDEGAP3METHODS(0, __pyx_v_endidx, ((double *)(__pyx_v_open_data + __pyx_v_begidx)), ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outinteger_data + __pyx_v_lookback))); - - /* "talib/func.pyx":6595 - * outinteger_data[i] = 0 - * retCode = lib.TA_CDLXSIDEGAP3METHODS( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _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, 6595, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":6596 - * retCode = lib.TA_CDLXSIDEGAP3METHODS( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _ta_check_success("TA_CDLXSIDEGAP3METHODS", retCode) - * return outinteger # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outinteger)); - __pyx_r = ((PyObject *)__pyx_v_outinteger); - goto __pyx_L0; - - /* "talib/func.pyx":6512 - * @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.func.CDLXSIDEGAP3METHODS", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outinteger); - __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/func.pyx":6600 - * @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_4func_157CEIL(PyObject *__pyx_self, PyObject *__pyx_v_real); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_157CEIL = {"CEIL", (PyCFunction)__pyx_pw_5talib_4func_157CEIL, METH_O, __pyx_doc_5talib_4func_156CEIL}; -static PyObject *__pyx_pw_5talib_4func_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, 6600, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_156CEIL(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real) { - npy_intp __pyx_v_length; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - TA_RetCode __pyx_v_retCode; - double *__pyx_v_real_data; - int __pyx_v_outbegidx; - int __pyx_v_outnbelement; - PyArrayObject *__pyx_v_outreal = 0; - double *__pyx_v_outreal_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __Pyx_RefNannySetupContext("CEIL", 0); - __Pyx_INCREF((PyObject *)__pyx_v_real); - - /* "talib/func.pyx":6620 - * np.ndarray outreal - * double* outreal_data - * 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/func.pyx":6621 - * double* outreal_data - * 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__856, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6621, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 6621, __pyx_L1_error) - - /* "talib/func.pyx":6620 - * np.ndarray outreal - * double* outreal_data - * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("real is not double") - * if real.ndim != 1: - */ - } - - /* "talib/func.pyx":6622 - * 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/func.pyx":6623 - * 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__857, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6623, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 6623, __pyx_L1_error) - - /* "talib/func.pyx":6622 - * 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/func.pyx":6624 - * 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 = real.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":6625 - * raise Exception("real has wrong dimensions") - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< - * real_data = real.data - * length = real.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6625, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 6625, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":6624 - * 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 = real.data - */ - } - - /* "talib/func.pyx":6626 - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) - * real_data = real.data # <<<<<<<<<<<<<< - * length = real.shape[0] - * begidx = 0 - */ - __pyx_v_real_data = ((double *)__pyx_v_real->data); - - /* "talib/func.pyx":6627 - * real = PyArray_GETCONTIGUOUS(real) - * real_data = real.data - * length = real.shape[0] # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_v_length = (__pyx_v_real->dimensions[0]); - - /* "talib/func.pyx":6628 - * real_data = real.data - * length = real.shape[0] - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = real_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":6629 - * length = real.shape[0] - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = real_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":6630 - * begidx = 0 - * for i from 0 <= i < length: - * val = real_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_real_data[__pyx_v_i]); - - /* "talib/func.pyx":6631 - * for i from 0 <= i < length: - * val = real_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":6632 - * val = real_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L6_continue; - - /* "talib/func.pyx":6631 - * for i from 0 <= i < length: - * val = real_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":6633 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":6634 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L7_break; - __pyx_L6_continue:; - } - /*else*/ { - - /* "talib/func.pyx":6636 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CEIL_Lookback( ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__858, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6636, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 6636, __pyx_L1_error) - } - __pyx_L7_break:; - - /* "talib/func.pyx":6637 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_CEIL_Lookback( ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":6638 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CEIL_Lookback( ) # <<<<<<<<<<<<<< - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_CEIL_Lookback()); - - /* "talib/func.pyx":6639 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CEIL_Lookback( ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6639, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 6639, __pyx_L1_error) - __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":6640 - * lookback = begidx + lib.TA_CEIL_Lookback( ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - */ - __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); - - /* "talib/func.pyx":6641 - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outreal_data[i] = NaN - * retCode = lib.TA_CEIL( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":6642 - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN # <<<<<<<<<<<<<< - * retCode = lib.TA_CEIL( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_CEIL", retCode) - */ - (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_4func_NaN; - } - - /* "talib/func.pyx":6643 - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - * retCode = lib.TA_CEIL( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_CEIL", retCode) - * return outreal - */ - __pyx_v_retCode = TA_CEIL(0, __pyx_v_endidx, ((double *)(__pyx_v_real_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); - - /* "talib/func.pyx":6644 - * outreal_data[i] = NaN - * retCode = lib.TA_CEIL( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _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, 6644, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":6645 - * retCode = lib.TA_CEIL( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_CEIL", retCode) - * return outreal # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); - __pyx_r = ((PyObject *)__pyx_v_outreal); - goto __pyx_L0; - - /* "talib/func.pyx":6600 - * @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.func.CEIL", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outreal); - __Pyx_XDECREF((PyObject *)__pyx_v_real); - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "talib/func.pyx":6649 - * @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_4func_159CMO(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_159CMO = {"CMO", (PyCFunction)__pyx_pw_5talib_4func_159CMO, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_158CMO}; -static PyObject *__pyx_pw_5talib_4func_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, 6649, __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, 6649, __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, 6649, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 6649, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_158CMO(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod) { - npy_intp __pyx_v_length; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - TA_RetCode __pyx_v_retCode; - double *__pyx_v_real_data; - int __pyx_v_outbegidx; - int __pyx_v_outnbelement; - PyArrayObject *__pyx_v_outreal = 0; - double *__pyx_v_outreal_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __Pyx_RefNannySetupContext("CMO", 0); - __Pyx_INCREF((PyObject *)__pyx_v_real); - - /* "talib/func.pyx":6671 - * np.ndarray outreal - * double* outreal_data - * 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/func.pyx":6672 - * double* outreal_data - * 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__859, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6672, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 6672, __pyx_L1_error) - - /* "talib/func.pyx":6671 - * np.ndarray outreal - * double* outreal_data - * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("real is not double") - * if real.ndim != 1: - */ - } - - /* "talib/func.pyx":6673 - * 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/func.pyx":6674 - * 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__860, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6674, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 6674, __pyx_L1_error) - - /* "talib/func.pyx":6673 - * 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/func.pyx":6675 - * 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 = real.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":6676 - * raise Exception("real has wrong dimensions") - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< - * real_data = real.data - * length = real.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6676, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 6676, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":6675 - * 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 = real.data - */ - } - - /* "talib/func.pyx":6677 - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) - * real_data = real.data # <<<<<<<<<<<<<< - * length = real.shape[0] - * begidx = 0 - */ - __pyx_v_real_data = ((double *)__pyx_v_real->data); - - /* "talib/func.pyx":6678 - * real = PyArray_GETCONTIGUOUS(real) - * real_data = real.data - * length = real.shape[0] # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_v_length = (__pyx_v_real->dimensions[0]); - - /* "talib/func.pyx":6679 - * real_data = real.data - * length = real.shape[0] - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = real_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":6680 - * length = real.shape[0] - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = real_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":6681 - * begidx = 0 - * for i from 0 <= i < length: - * val = real_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_real_data[__pyx_v_i]); - - /* "talib/func.pyx":6682 - * for i from 0 <= i < length: - * val = real_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":6683 - * val = real_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L6_continue; - - /* "talib/func.pyx":6682 - * for i from 0 <= i < length: - * val = real_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":6684 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":6685 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L7_break; - __pyx_L6_continue:; - } - /*else*/ { - - /* "talib/func.pyx":6687 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CMO_Lookback( timeperiod ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__861, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6687, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 6687, __pyx_L1_error) - } - __pyx_L7_break:; - - /* "talib/func.pyx":6688 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_CMO_Lookback( timeperiod ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":6689 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CMO_Lookback( timeperiod ) # <<<<<<<<<<<<<< - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_CMO_Lookback(__pyx_v_timeperiod)); - - /* "talib/func.pyx":6690 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CMO_Lookback( timeperiod ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6690, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 6690, __pyx_L1_error) - __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":6691 - * lookback = begidx + lib.TA_CMO_Lookback( timeperiod ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - */ - __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); - - /* "talib/func.pyx":6692 - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outreal_data[i] = NaN - * retCode = lib.TA_CMO( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":6693 - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN # <<<<<<<<<<<<<< - * retCode = lib.TA_CMO( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_CMO", retCode) - */ - (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_4func_NaN; - } - - /* "talib/func.pyx":6694 - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - * retCode = lib.TA_CMO( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_CMO", retCode) - * return outreal - */ - __pyx_v_retCode = TA_CMO(0, __pyx_v_endidx, ((double *)(__pyx_v_real_data + __pyx_v_begidx)), __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); - - /* "talib/func.pyx":6695 - * outreal_data[i] = NaN - * retCode = lib.TA_CMO( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _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, 6695, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":6696 - * retCode = lib.TA_CMO( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_CMO", retCode) - * return outreal # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); - __pyx_r = ((PyObject *)__pyx_v_outreal); - goto __pyx_L0; - - /* "talib/func.pyx":6649 - * @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.func.CMO", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outreal); - __Pyx_XDECREF((PyObject *)__pyx_v_real); - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "talib/func.pyx":6700 - * @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_4func_161CORREL(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_161CORREL = {"CORREL", (PyCFunction)__pyx_pw_5talib_4func_161CORREL, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_160CORREL}; -static PyObject *__pyx_pw_5talib_4func_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, 6700, __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, 6700, __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, 6700, __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, 6700, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 6700, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_real1), __pyx_ptype_5numpy_ndarray, 0, "real1", 0))) __PYX_ERR(0, 6700, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_160CORREL(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real0, PyArrayObject *__pyx_v_real1, int __pyx_v_timeperiod) { - npy_intp __pyx_v_length; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - TA_RetCode __pyx_v_retCode; - double *__pyx_v_real0_data; - double *__pyx_v_real1_data; - int __pyx_v_outbegidx; - int __pyx_v_outnbelement; - PyArrayObject *__pyx_v_outreal = 0; - double *__pyx_v_outreal_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __Pyx_RefNannySetupContext("CORREL", 0); - __Pyx_INCREF((PyObject *)__pyx_v_real0); - __Pyx_INCREF((PyObject *)__pyx_v_real1); - - /* "talib/func.pyx":6724 - * np.ndarray outreal - * double* outreal_data - * 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/func.pyx":6725 - * double* outreal_data - * 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__862, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6725, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 6725, __pyx_L1_error) - - /* "talib/func.pyx":6724 - * np.ndarray outreal - * double* outreal_data - * if PyArray_TYPE(real0) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("real0 is not double") - * if real0.ndim != 1: - */ - } - - /* "talib/func.pyx":6726 - * 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/func.pyx":6727 - * 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__863, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6727, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 6727, __pyx_L1_error) - - /* "talib/func.pyx":6726 - * 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/func.pyx":6728 - * 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 = real0.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real0) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":6729 - * raise Exception("real0 has wrong dimensions") - * if not (PyArray_FLAGS(real0) & np.NPY_C_CONTIGUOUS): - * real0 = PyArray_GETCONTIGUOUS(real0) # <<<<<<<<<<<<<< - * real0_data = 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, 6729, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 6729, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_real0, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":6728 - * 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 = real0.data - */ - } - - /* "talib/func.pyx":6730 - * if not (PyArray_FLAGS(real0) & np.NPY_C_CONTIGUOUS): - * real0 = PyArray_GETCONTIGUOUS(real0) - * real0_data = 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/func.pyx":6731 - * real0 = PyArray_GETCONTIGUOUS(real0) - * real0_data = 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/func.pyx":6732 - * real0_data = 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__864, 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/func.pyx":6731 - * real0 = PyArray_GETCONTIGUOUS(real0) - * real0_data = real0.data - * if PyArray_TYPE(real1) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("real1 is not double") - * if real1.ndim != 1: - */ - } - - /* "talib/func.pyx":6733 - * 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/func.pyx":6734 - * 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__865, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6734, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 6734, __pyx_L1_error) - - /* "talib/func.pyx":6733 - * 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/func.pyx":6735 - * 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 = real1.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real1) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":6736 - * raise Exception("real1 has wrong dimensions") - * if not (PyArray_FLAGS(real1) & np.NPY_C_CONTIGUOUS): - * real1 = PyArray_GETCONTIGUOUS(real1) # <<<<<<<<<<<<<< - * real1_data = real1.data - * length = real0.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6736, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 6736, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_real1, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":6735 - * 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 = real1.data - */ - } - - /* "talib/func.pyx":6737 - * if not (PyArray_FLAGS(real1) & np.NPY_C_CONTIGUOUS): - * real1 = PyArray_GETCONTIGUOUS(real1) - * real1_data = real1.data # <<<<<<<<<<<<<< - * length = real0.shape[0] - * if length != real1.shape[0]: - */ - __pyx_v_real1_data = ((double *)__pyx_v_real1->data); - - /* "talib/func.pyx":6738 - * real1 = PyArray_GETCONTIGUOUS(real1) - * real1_data = 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/func.pyx":6739 - * real1_data = real1.data - * length = real0.shape[0] - * if length != real1.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - __pyx_t_1 = ((__pyx_v_length != (__pyx_v_real1->dimensions[0])) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":6740 - * length = real0.shape[0] - * if length != real1.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__866, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6740, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 6740, __pyx_L1_error) - - /* "talib/func.pyx":6739 - * real1_data = real1.data - * length = real0.shape[0] - * if length != real1.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - } - - /* "talib/func.pyx":6741 - * if length != real1.shape[0]: - * raise Exception("input lengths are different") - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = real0_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":6742 - * raise Exception("input lengths are different") - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = real0_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":6743 - * begidx = 0 - * for i from 0 <= i < length: - * val = real0_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_real0_data[__pyx_v_i]); - - /* "talib/func.pyx":6744 - * for i from 0 <= i < length: - * val = real0_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = real1_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":6745 - * val = real0_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = real1_data[i] - * if val != val: - */ - goto __pyx_L10_continue; - - /* "talib/func.pyx":6744 - * for i from 0 <= i < length: - * val = real0_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = real1_data[i] - */ - } - - /* "talib/func.pyx":6746 - * if val != val: - * continue - * val = real1_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_real1_data[__pyx_v_i]); - - /* "talib/func.pyx":6747 - * continue - * val = real1_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":6748 - * val = real1_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L10_continue; - - /* "talib/func.pyx":6747 - * continue - * val = real1_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":6749 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":6750 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L11_break; - __pyx_L10_continue:; - } - /*else*/ { - - /* "talib/func.pyx":6752 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CORREL_Lookback( timeperiod ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__867, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6752, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 6752, __pyx_L1_error) - } - __pyx_L11_break:; - - /* "talib/func.pyx":6753 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_CORREL_Lookback( timeperiod ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":6754 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CORREL_Lookback( timeperiod ) # <<<<<<<<<<<<<< - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_CORREL_Lookback(__pyx_v_timeperiod)); - - /* "talib/func.pyx":6755 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CORREL_Lookback( timeperiod ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6755, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 6755, __pyx_L1_error) - __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":6756 - * lookback = begidx + lib.TA_CORREL_Lookback( timeperiod ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - */ - __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); - - /* "talib/func.pyx":6757 - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outreal_data[i] = NaN - * retCode = lib.TA_CORREL( 0 , endidx , (real0_data+begidx) , (real1_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":6758 - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN # <<<<<<<<<<<<<< - * retCode = lib.TA_CORREL( 0 , endidx , (real0_data+begidx) , (real1_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_CORREL", retCode) - */ - (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_4func_NaN; - } - - /* "talib/func.pyx":6759 - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - * retCode = lib.TA_CORREL( 0 , endidx , (real0_data+begidx) , (real1_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_CORREL", retCode) - * return outreal - */ - __pyx_v_retCode = TA_CORREL(0, __pyx_v_endidx, ((double *)(__pyx_v_real0_data + __pyx_v_begidx)), ((double *)(__pyx_v_real1_data + __pyx_v_begidx)), __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); - - /* "talib/func.pyx":6760 - * outreal_data[i] = NaN - * retCode = lib.TA_CORREL( 0 , endidx , (real0_data+begidx) , (real1_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _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, 6760, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":6761 - * retCode = lib.TA_CORREL( 0 , endidx , (real0_data+begidx) , (real1_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_CORREL", retCode) - * return outreal # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); - __pyx_r = ((PyObject *)__pyx_v_outreal); - goto __pyx_L0; - - /* "talib/func.pyx":6700 - * @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.func.CORREL", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outreal); - __Pyx_XDECREF((PyObject *)__pyx_v_real0); - __Pyx_XDECREF((PyObject *)__pyx_v_real1); - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "talib/func.pyx":6765 - * @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_4func_163COS(PyObject *__pyx_self, PyObject *__pyx_v_real); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_163COS = {"COS", (PyCFunction)__pyx_pw_5talib_4func_163COS, METH_O, __pyx_doc_5talib_4func_162COS}; -static PyObject *__pyx_pw_5talib_4func_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, 6765, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_162COS(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real) { - npy_intp __pyx_v_length; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - TA_RetCode __pyx_v_retCode; - double *__pyx_v_real_data; - int __pyx_v_outbegidx; - int __pyx_v_outnbelement; - PyArrayObject *__pyx_v_outreal = 0; - double *__pyx_v_outreal_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __Pyx_RefNannySetupContext("COS", 0); - __Pyx_INCREF((PyObject *)__pyx_v_real); - - /* "talib/func.pyx":6785 - * np.ndarray outreal - * double* outreal_data - * 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/func.pyx":6786 - * double* outreal_data - * 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__868, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6786, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 6786, __pyx_L1_error) - - /* "talib/func.pyx":6785 - * np.ndarray outreal - * double* outreal_data - * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("real is not double") - * if real.ndim != 1: - */ - } - - /* "talib/func.pyx":6787 - * 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/func.pyx":6788 - * 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__869, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6788, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 6788, __pyx_L1_error) - - /* "talib/func.pyx":6787 - * 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/func.pyx":6789 - * 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 = real.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":6790 - * raise Exception("real has wrong dimensions") - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< - * real_data = real.data - * length = real.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6790, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 6790, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":6789 - * 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 = real.data - */ - } - - /* "talib/func.pyx":6791 - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) - * real_data = real.data # <<<<<<<<<<<<<< - * length = real.shape[0] - * begidx = 0 - */ - __pyx_v_real_data = ((double *)__pyx_v_real->data); - - /* "talib/func.pyx":6792 - * real = PyArray_GETCONTIGUOUS(real) - * real_data = real.data - * length = real.shape[0] # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_v_length = (__pyx_v_real->dimensions[0]); - - /* "talib/func.pyx":6793 - * real_data = real.data - * length = real.shape[0] - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = real_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":6794 - * length = real.shape[0] - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = real_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":6795 - * begidx = 0 - * for i from 0 <= i < length: - * val = real_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_real_data[__pyx_v_i]); - - /* "talib/func.pyx":6796 - * for i from 0 <= i < length: - * val = real_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":6797 - * val = real_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L6_continue; - - /* "talib/func.pyx":6796 - * for i from 0 <= i < length: - * val = real_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":6798 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":6799 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L7_break; - __pyx_L6_continue:; - } - /*else*/ { - - /* "talib/func.pyx":6801 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_COS_Lookback( ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__870, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6801, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 6801, __pyx_L1_error) - } - __pyx_L7_break:; - - /* "talib/func.pyx":6802 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_COS_Lookback( ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":6803 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_COS_Lookback( ) # <<<<<<<<<<<<<< - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_COS_Lookback()); - - /* "talib/func.pyx":6804 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_COS_Lookback( ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); 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_v_outreal = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":6805 - * lookback = begidx + lib.TA_COS_Lookback( ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - */ - __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); - - /* "talib/func.pyx":6806 - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outreal_data[i] = NaN - * retCode = lib.TA_COS( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":6807 - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN # <<<<<<<<<<<<<< - * retCode = lib.TA_COS( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_COS", retCode) - */ - (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_4func_NaN; - } - - /* "talib/func.pyx":6808 - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - * retCode = lib.TA_COS( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_COS", retCode) - * return outreal - */ - __pyx_v_retCode = TA_COS(0, __pyx_v_endidx, ((double *)(__pyx_v_real_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); - - /* "talib/func.pyx":6809 - * outreal_data[i] = NaN - * retCode = lib.TA_COS( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _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, 6809, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":6810 - * retCode = lib.TA_COS( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_COS", retCode) - * return outreal # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); - __pyx_r = ((PyObject *)__pyx_v_outreal); - goto __pyx_L0; - - /* "talib/func.pyx":6765 - * @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.func.COS", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outreal); - __Pyx_XDECREF((PyObject *)__pyx_v_real); - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "talib/func.pyx":6814 - * @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_4func_165COSH(PyObject *__pyx_self, PyObject *__pyx_v_real); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_165COSH = {"COSH", (PyCFunction)__pyx_pw_5talib_4func_165COSH, METH_O, __pyx_doc_5talib_4func_164COSH}; -static PyObject *__pyx_pw_5talib_4func_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, 6814, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_164COSH(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real) { - npy_intp __pyx_v_length; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - TA_RetCode __pyx_v_retCode; - double *__pyx_v_real_data; - int __pyx_v_outbegidx; - int __pyx_v_outnbelement; - PyArrayObject *__pyx_v_outreal = 0; - double *__pyx_v_outreal_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __Pyx_RefNannySetupContext("COSH", 0); - __Pyx_INCREF((PyObject *)__pyx_v_real); - - /* "talib/func.pyx":6834 - * np.ndarray outreal - * double* outreal_data - * 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/func.pyx":6835 - * double* outreal_data - * 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__871, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6835, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 6835, __pyx_L1_error) - - /* "talib/func.pyx":6834 - * np.ndarray outreal - * double* outreal_data - * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("real is not double") - * if real.ndim != 1: - */ - } - - /* "talib/func.pyx":6836 - * 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/func.pyx":6837 - * 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__872, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6837, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 6837, __pyx_L1_error) - - /* "talib/func.pyx":6836 - * 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/func.pyx":6838 - * 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 = real.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":6839 - * raise Exception("real has wrong dimensions") - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< - * real_data = real.data - * length = real.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6839, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 6839, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":6838 - * 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 = real.data - */ - } - - /* "talib/func.pyx":6840 - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) - * real_data = real.data # <<<<<<<<<<<<<< - * length = real.shape[0] - * begidx = 0 - */ - __pyx_v_real_data = ((double *)__pyx_v_real->data); - - /* "talib/func.pyx":6841 - * real = PyArray_GETCONTIGUOUS(real) - * real_data = real.data - * length = real.shape[0] # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_v_length = (__pyx_v_real->dimensions[0]); - - /* "talib/func.pyx":6842 - * real_data = real.data - * length = real.shape[0] - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = real_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":6843 - * length = real.shape[0] - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = real_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":6844 - * begidx = 0 - * for i from 0 <= i < length: - * val = real_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_real_data[__pyx_v_i]); - - /* "talib/func.pyx":6845 - * for i from 0 <= i < length: - * val = real_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":6846 - * val = real_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L6_continue; - - /* "talib/func.pyx":6845 - * for i from 0 <= i < length: - * val = real_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":6847 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":6848 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L7_break; - __pyx_L6_continue:; - } - /*else*/ { - - /* "talib/func.pyx":6850 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_COSH_Lookback( ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__873, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6850, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 6850, __pyx_L1_error) - } - __pyx_L7_break:; - - /* "talib/func.pyx":6851 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_COSH_Lookback( ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":6852 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_COSH_Lookback( ) # <<<<<<<<<<<<<< - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_COSH_Lookback()); - - /* "talib/func.pyx":6853 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_COSH_Lookback( ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6853, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 6853, __pyx_L1_error) - __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":6854 - * lookback = begidx + lib.TA_COSH_Lookback( ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - */ - __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); - - /* "talib/func.pyx":6855 - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outreal_data[i] = NaN - * retCode = lib.TA_COSH( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":6856 - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN # <<<<<<<<<<<<<< - * retCode = lib.TA_COSH( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_COSH", retCode) - */ - (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_4func_NaN; - } - - /* "talib/func.pyx":6857 - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - * retCode = lib.TA_COSH( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_COSH", retCode) - * return outreal - */ - __pyx_v_retCode = TA_COSH(0, __pyx_v_endidx, ((double *)(__pyx_v_real_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); - - /* "talib/func.pyx":6858 - * outreal_data[i] = NaN - * retCode = lib.TA_COSH( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _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, 6858, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":6859 - * retCode = lib.TA_COSH( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_COSH", retCode) - * return outreal # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); - __pyx_r = ((PyObject *)__pyx_v_outreal); - goto __pyx_L0; - - /* "talib/func.pyx":6814 - * @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.func.COSH", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outreal); - __Pyx_XDECREF((PyObject *)__pyx_v_real); - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "talib/func.pyx":6863 - * @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_4func_167DEMA(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_167DEMA = {"DEMA", (PyCFunction)__pyx_pw_5talib_4func_167DEMA, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_166DEMA}; -static PyObject *__pyx_pw_5talib_4func_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, 6863, __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, 6863, __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, 6863, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 6863, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_166DEMA(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod) { - npy_intp __pyx_v_length; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - TA_RetCode __pyx_v_retCode; - double *__pyx_v_real_data; - int __pyx_v_outbegidx; - int __pyx_v_outnbelement; - PyArrayObject *__pyx_v_outreal = 0; - double *__pyx_v_outreal_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __Pyx_RefNannySetupContext("DEMA", 0); - __Pyx_INCREF((PyObject *)__pyx_v_real); - - /* "talib/func.pyx":6885 - * np.ndarray outreal - * double* outreal_data - * 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/func.pyx":6886 - * double* outreal_data - * 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__874, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6886, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 6886, __pyx_L1_error) - - /* "talib/func.pyx":6885 - * np.ndarray outreal - * double* outreal_data - * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("real is not double") - * if real.ndim != 1: - */ - } - - /* "talib/func.pyx":6887 - * 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/func.pyx":6888 - * 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__875, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6888, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 6888, __pyx_L1_error) - - /* "talib/func.pyx":6887 - * 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/func.pyx":6889 - * 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 = real.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":6890 - * raise Exception("real has wrong dimensions") - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< - * real_data = real.data - * length = real.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6890, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 6890, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":6889 - * 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 = real.data - */ - } - - /* "talib/func.pyx":6891 - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) - * real_data = real.data # <<<<<<<<<<<<<< - * length = real.shape[0] - * begidx = 0 - */ - __pyx_v_real_data = ((double *)__pyx_v_real->data); - - /* "talib/func.pyx":6892 - * real = PyArray_GETCONTIGUOUS(real) - * real_data = real.data - * length = real.shape[0] # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_v_length = (__pyx_v_real->dimensions[0]); - - /* "talib/func.pyx":6893 - * real_data = real.data - * length = real.shape[0] - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = real_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":6894 - * length = real.shape[0] - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = real_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":6895 - * begidx = 0 - * for i from 0 <= i < length: - * val = real_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_real_data[__pyx_v_i]); - - /* "talib/func.pyx":6896 - * for i from 0 <= i < length: - * val = real_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":6897 - * val = real_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L6_continue; - - /* "talib/func.pyx":6896 - * for i from 0 <= i < length: - * val = real_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":6898 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":6899 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L7_break; - __pyx_L6_continue:; - } - /*else*/ { - - /* "talib/func.pyx":6901 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_DEMA_Lookback( timeperiod ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__876, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6901, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 6901, __pyx_L1_error) - } - __pyx_L7_break:; - - /* "talib/func.pyx":6902 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_DEMA_Lookback( timeperiod ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":6903 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_DEMA_Lookback( timeperiod ) # <<<<<<<<<<<<<< - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_DEMA_Lookback(__pyx_v_timeperiod)); - - /* "talib/func.pyx":6904 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_DEMA_Lookback( timeperiod ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6904, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 6904, __pyx_L1_error) - __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":6905 - * lookback = begidx + lib.TA_DEMA_Lookback( timeperiod ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - */ - __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); - - /* "talib/func.pyx":6906 - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outreal_data[i] = NaN - * retCode = lib.TA_DEMA( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":6907 - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN # <<<<<<<<<<<<<< - * retCode = lib.TA_DEMA( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_DEMA", retCode) - */ - (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_4func_NaN; - } - - /* "talib/func.pyx":6908 - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - * retCode = lib.TA_DEMA( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_DEMA", retCode) - * return outreal - */ - __pyx_v_retCode = TA_DEMA(0, __pyx_v_endidx, ((double *)(__pyx_v_real_data + __pyx_v_begidx)), __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); - - /* "talib/func.pyx":6909 - * outreal_data[i] = NaN - * retCode = lib.TA_DEMA( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _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, 6909, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":6910 - * retCode = lib.TA_DEMA( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_DEMA", retCode) - * return outreal # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); - __pyx_r = ((PyObject *)__pyx_v_outreal); - goto __pyx_L0; - - /* "talib/func.pyx":6863 - * @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.func.DEMA", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outreal); - __Pyx_XDECREF((PyObject *)__pyx_v_real); - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "talib/func.pyx":6914 - * @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_4func_169DIV(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_169DIV = {"DIV", (PyCFunction)__pyx_pw_5talib_4func_169DIV, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_168DIV}; -static PyObject *__pyx_pw_5talib_4func_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, 6914, __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, 6914, __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, 6914, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 6914, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_real1), __pyx_ptype_5numpy_ndarray, 0, "real1", 0))) __PYX_ERR(0, 6914, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_168DIV(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real0, PyArrayObject *__pyx_v_real1) { - npy_intp __pyx_v_length; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - TA_RetCode __pyx_v_retCode; - double *__pyx_v_real0_data; - double *__pyx_v_real1_data; - int __pyx_v_outbegidx; - int __pyx_v_outnbelement; - PyArrayObject *__pyx_v_outreal = 0; - double *__pyx_v_outreal_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __Pyx_RefNannySetupContext("DIV", 0); - __Pyx_INCREF((PyObject *)__pyx_v_real0); - __Pyx_INCREF((PyObject *)__pyx_v_real1); - - /* "talib/func.pyx":6936 - * np.ndarray outreal - * double* outreal_data - * 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/func.pyx":6937 - * double* outreal_data - * 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__877, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6937, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 6937, __pyx_L1_error) - - /* "talib/func.pyx":6936 - * np.ndarray outreal - * double* outreal_data - * if PyArray_TYPE(real0) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("real0 is not double") - * if real0.ndim != 1: - */ - } - - /* "talib/func.pyx":6938 - * 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/func.pyx":6939 - * 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__878, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6939, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 6939, __pyx_L1_error) - - /* "talib/func.pyx":6938 - * 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/func.pyx":6940 - * 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 = real0.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real0) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":6941 - * raise Exception("real0 has wrong dimensions") - * if not (PyArray_FLAGS(real0) & np.NPY_C_CONTIGUOUS): - * real0 = PyArray_GETCONTIGUOUS(real0) # <<<<<<<<<<<<<< - * real0_data = 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, 6941, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 6941, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_real0, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":6940 - * 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 = real0.data - */ - } - - /* "talib/func.pyx":6942 - * if not (PyArray_FLAGS(real0) & np.NPY_C_CONTIGUOUS): - * real0 = PyArray_GETCONTIGUOUS(real0) - * real0_data = 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/func.pyx":6943 - * real0 = PyArray_GETCONTIGUOUS(real0) - * real0_data = 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/func.pyx":6944 - * real0_data = 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__879, 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/func.pyx":6943 - * real0 = PyArray_GETCONTIGUOUS(real0) - * real0_data = real0.data - * if PyArray_TYPE(real1) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("real1 is not double") - * if real1.ndim != 1: - */ - } - - /* "talib/func.pyx":6945 - * 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/func.pyx":6946 - * 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__880, 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/func.pyx":6945 - * 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/func.pyx":6947 - * 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 = real1.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real1) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":6948 - * raise Exception("real1 has wrong dimensions") - * if not (PyArray_FLAGS(real1) & np.NPY_C_CONTIGUOUS): - * real1 = PyArray_GETCONTIGUOUS(real1) # <<<<<<<<<<<<<< - * real1_data = real1.data - * length = real0.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real1); 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_real1, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":6947 - * 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 = real1.data - */ - } - - /* "talib/func.pyx":6949 - * if not (PyArray_FLAGS(real1) & np.NPY_C_CONTIGUOUS): - * real1 = PyArray_GETCONTIGUOUS(real1) - * real1_data = real1.data # <<<<<<<<<<<<<< - * length = real0.shape[0] - * if length != real1.shape[0]: - */ - __pyx_v_real1_data = ((double *)__pyx_v_real1->data); - - /* "talib/func.pyx":6950 - * real1 = PyArray_GETCONTIGUOUS(real1) - * real1_data = 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/func.pyx":6951 - * real1_data = real1.data - * length = real0.shape[0] - * if length != real1.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - __pyx_t_1 = ((__pyx_v_length != (__pyx_v_real1->dimensions[0])) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":6952 - * length = real0.shape[0] - * if length != real1.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__881, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6952, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 6952, __pyx_L1_error) - - /* "talib/func.pyx":6951 - * real1_data = real1.data - * length = real0.shape[0] - * if length != real1.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - } - - /* "talib/func.pyx":6953 - * if length != real1.shape[0]: - * raise Exception("input lengths are different") - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = real0_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":6954 - * raise Exception("input lengths are different") - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = real0_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":6955 - * begidx = 0 - * for i from 0 <= i < length: - * val = real0_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_real0_data[__pyx_v_i]); - - /* "talib/func.pyx":6956 - * for i from 0 <= i < length: - * val = real0_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = real1_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":6957 - * val = real0_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = real1_data[i] - * if val != val: - */ - goto __pyx_L10_continue; - - /* "talib/func.pyx":6956 - * for i from 0 <= i < length: - * val = real0_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = real1_data[i] - */ - } - - /* "talib/func.pyx":6958 - * if val != val: - * continue - * val = real1_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_real1_data[__pyx_v_i]); - - /* "talib/func.pyx":6959 - * continue - * val = real1_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":6960 - * val = real1_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L10_continue; - - /* "talib/func.pyx":6959 - * continue - * val = real1_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":6961 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":6962 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L11_break; - __pyx_L10_continue:; - } - /*else*/ { - - /* "talib/func.pyx":6964 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_DIV_Lookback( ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__882, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6964, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 6964, __pyx_L1_error) - } - __pyx_L11_break:; - - /* "talib/func.pyx":6965 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_DIV_Lookback( ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":6966 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_DIV_Lookback( ) # <<<<<<<<<<<<<< - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_DIV_Lookback()); - - /* "talib/func.pyx":6967 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_DIV_Lookback( ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6967, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 6967, __pyx_L1_error) - __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":6968 - * lookback = begidx + lib.TA_DIV_Lookback( ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - */ - __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); - - /* "talib/func.pyx":6969 - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outreal_data[i] = NaN - * retCode = lib.TA_DIV( 0 , endidx , (real0_data+begidx) , (real1_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":6970 - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN # <<<<<<<<<<<<<< - * retCode = lib.TA_DIV( 0 , endidx , (real0_data+begidx) , (real1_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_DIV", retCode) - */ - (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_4func_NaN; - } - - /* "talib/func.pyx":6971 - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - * retCode = lib.TA_DIV( 0 , endidx , (real0_data+begidx) , (real1_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_DIV", retCode) - * return outreal - */ - __pyx_v_retCode = TA_DIV(0, __pyx_v_endidx, ((double *)(__pyx_v_real0_data + __pyx_v_begidx)), ((double *)(__pyx_v_real1_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); - - /* "talib/func.pyx":6972 - * outreal_data[i] = NaN - * retCode = lib.TA_DIV( 0 , endidx , (real0_data+begidx) , (real1_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _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, 6972, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":6973 - * retCode = lib.TA_DIV( 0 , endidx , (real0_data+begidx) , (real1_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_DIV", retCode) - * return outreal # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); - __pyx_r = ((PyObject *)__pyx_v_outreal); - goto __pyx_L0; - - /* "talib/func.pyx":6914 - * @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.func.DIV", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outreal); - __Pyx_XDECREF((PyObject *)__pyx_v_real0); - __Pyx_XDECREF((PyObject *)__pyx_v_real1); - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "talib/func.pyx":6977 - * @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_4func_171DX(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_171DX = {"DX", (PyCFunction)__pyx_pw_5talib_4func_171DX, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_170DX}; -static PyObject *__pyx_pw_5talib_4func_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, 6977, __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, 6977, __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, 6977, __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, 6977, __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, 6977, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 6977, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 6977, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 6977, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_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; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - 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; - PyArrayObject *__pyx_v_outreal = 0; - double *__pyx_v_outreal_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __Pyx_RefNannySetupContext("DX", 0); - __Pyx_INCREF((PyObject *)__pyx_v_high); - __Pyx_INCREF((PyObject *)__pyx_v_low); - __Pyx_INCREF((PyObject *)__pyx_v_close); - - /* "talib/func.pyx":7001 - * np.ndarray outreal - * double* outreal_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/func.pyx":7002 - * double* outreal_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__883, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7002, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 7002, __pyx_L1_error) - - /* "talib/func.pyx":7001 - * np.ndarray outreal - * double* outreal_data - * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("high is not double") - * if high.ndim != 1: - */ - } - - /* "talib/func.pyx":7003 - * 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/func.pyx":7004 - * raise 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__884, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7004, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 7004, __pyx_L1_error) - - /* "talib/func.pyx":7003 - * 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/func.pyx":7005 - * 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 = high.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":7006 - * raise Exception("high has wrong dimensions") - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< - * high_data = 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, 7006, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 7006, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":7005 - * 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 = high.data - */ - } - - /* "talib/func.pyx":7007 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":7008 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":7009 - * high_data = 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__885, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7009, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 7009, __pyx_L1_error) - - /* "talib/func.pyx":7008 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = high.data - * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("low is not double") - * if low.ndim != 1: - */ - } - - /* "talib/func.pyx":7010 - * 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/func.pyx":7011 - * raise 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__886, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7011, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 7011, __pyx_L1_error) - - /* "talib/func.pyx":7010 - * 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/func.pyx":7012 - * 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 = low.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":7013 - * raise Exception("low has wrong dimensions") - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< - * low_data = 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, 7013, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 7013, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":7012 - * 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 = low.data - */ - } - - /* "talib/func.pyx":7014 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":7015 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":7016 - * low_data = 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__887, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7016, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 7016, __pyx_L1_error) - - /* "talib/func.pyx":7015 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = low.data - * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("close is not double") - * if close.ndim != 1: - */ - } - - /* "talib/func.pyx":7017 - * 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/func.pyx":7018 - * raise 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__888, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7018, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 7018, __pyx_L1_error) - - /* "talib/func.pyx":7017 - * 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/func.pyx":7019 - * 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 = close.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":7020 - * raise Exception("close has wrong dimensions") - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< - * close_data = close.data - * length = high.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7020, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 7020, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":7019 - * 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 = close.data - */ - } - - /* "talib/func.pyx":7021 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = close.data # <<<<<<<<<<<<<< - * length = high.shape[0] - * if length != low.shape[0]: - */ - __pyx_v_close_data = ((double *)__pyx_v_close->data); - - /* "talib/func.pyx":7022 - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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/func.pyx":7023 - * close_data = 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/func.pyx":7024 - * 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__889, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7024, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 7024, __pyx_L1_error) - - /* "talib/func.pyx":7023 - * close_data = close.data - * length = high.shape[0] - * if length != low.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * if length != close.shape[0]: - */ - } - - /* "talib/func.pyx":7025 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":7026 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__890, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7026, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 7026, __pyx_L1_error) - - /* "talib/func.pyx":7025 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - } - - /* "talib/func.pyx":7027 - * if length != close.shape[0]: - * raise Exception("input lengths are different") - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = high_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":7028 - * raise Exception("input lengths are different") - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = high_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":7029 - * begidx = 0 - * for i from 0 <= i < length: - * val = high_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); - - /* "talib/func.pyx":7030 - * for i from 0 <= i < length: - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":7031 - * val = high_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = low_data[i] - * if val != val: - */ - goto __pyx_L14_continue; - - /* "talib/func.pyx":7030 - * for i from 0 <= i < length: - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - } - - /* "talib/func.pyx":7032 - * if val != val: - * continue - * val = low_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); - - /* "talib/func.pyx":7033 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":7034 - * val = low_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = close_data[i] - * if val != val: - */ - goto __pyx_L14_continue; - - /* "talib/func.pyx":7033 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - } - - /* "talib/func.pyx":7035 - * if val != val: - * continue - * val = close_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); - - /* "talib/func.pyx":7036 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":7037 - * val = close_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L14_continue; - - /* "talib/func.pyx":7036 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":7038 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":7039 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L15_break; - __pyx_L14_continue:; - } - /*else*/ { - - /* "talib/func.pyx":7041 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_DX_Lookback( timeperiod ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__891, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7041, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 7041, __pyx_L1_error) - } - __pyx_L15_break:; - - /* "talib/func.pyx":7042 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_DX_Lookback( timeperiod ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":7043 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_DX_Lookback( timeperiod ) # <<<<<<<<<<<<<< - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_DX_Lookback(__pyx_v_timeperiod)); - - /* "talib/func.pyx":7044 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_DX_Lookback( timeperiod ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7044, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 7044, __pyx_L1_error) - __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":7045 - * lookback = begidx + lib.TA_DX_Lookback( timeperiod ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - */ - __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); - - /* "talib/func.pyx":7046 - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outreal_data[i] = NaN - * retCode = lib.TA_DX( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":7047 - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN # <<<<<<<<<<<<<< - * retCode = lib.TA_DX( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_DX", retCode) - */ - (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_4func_NaN; - } - - /* "talib/func.pyx":7048 - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - * retCode = lib.TA_DX( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_DX", retCode) - * return outreal - */ - __pyx_v_retCode = TA_DX(0, __pyx_v_endidx, ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); - - /* "talib/func.pyx":7049 - * outreal_data[i] = NaN - * retCode = lib.TA_DX( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _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, 7049, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":7050 - * retCode = lib.TA_DX( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_DX", retCode) - * return outreal # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); - __pyx_r = ((PyObject *)__pyx_v_outreal); - goto __pyx_L0; - - /* "talib/func.pyx":6977 - * @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.func.DX", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outreal); - __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/func.pyx":7054 - * @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_4func_173EMA(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_173EMA = {"EMA", (PyCFunction)__pyx_pw_5talib_4func_173EMA, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_172EMA}; -static PyObject *__pyx_pw_5talib_4func_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, 7054, __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, 7054, __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, 7054, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 7054, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_172EMA(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod) { - npy_intp __pyx_v_length; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - TA_RetCode __pyx_v_retCode; - double *__pyx_v_real_data; - int __pyx_v_outbegidx; - int __pyx_v_outnbelement; - PyArrayObject *__pyx_v_outreal = 0; - double *__pyx_v_outreal_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __Pyx_RefNannySetupContext("EMA", 0); - __Pyx_INCREF((PyObject *)__pyx_v_real); - - /* "talib/func.pyx":7076 - * np.ndarray outreal - * double* outreal_data - * 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/func.pyx":7077 - * double* outreal_data - * 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__892, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7077, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 7077, __pyx_L1_error) - - /* "talib/func.pyx":7076 - * np.ndarray outreal - * double* outreal_data - * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("real is not double") - * if real.ndim != 1: - */ - } - - /* "talib/func.pyx":7078 - * 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/func.pyx":7079 - * 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__893, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7079, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 7079, __pyx_L1_error) - - /* "talib/func.pyx":7078 - * 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/func.pyx":7080 - * 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 = real.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":7081 - * raise Exception("real has wrong dimensions") - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< - * real_data = real.data - * length = real.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7081, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 7081, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":7080 - * 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 = real.data - */ - } - - /* "talib/func.pyx":7082 - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) - * real_data = real.data # <<<<<<<<<<<<<< - * length = real.shape[0] - * begidx = 0 - */ - __pyx_v_real_data = ((double *)__pyx_v_real->data); - - /* "talib/func.pyx":7083 - * real = PyArray_GETCONTIGUOUS(real) - * real_data = real.data - * length = real.shape[0] # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_v_length = (__pyx_v_real->dimensions[0]); - - /* "talib/func.pyx":7084 - * real_data = real.data - * length = real.shape[0] - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = real_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":7085 - * length = real.shape[0] - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = real_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":7086 - * begidx = 0 - * for i from 0 <= i < length: - * val = real_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_real_data[__pyx_v_i]); - - /* "talib/func.pyx":7087 - * for i from 0 <= i < length: - * val = real_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":7088 - * val = real_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L6_continue; - - /* "talib/func.pyx":7087 - * for i from 0 <= i < length: - * val = real_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":7089 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":7090 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L7_break; - __pyx_L6_continue:; - } - /*else*/ { - - /* "talib/func.pyx":7092 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_EMA_Lookback( timeperiod ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__894, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7092, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 7092, __pyx_L1_error) - } - __pyx_L7_break:; - - /* "talib/func.pyx":7093 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_EMA_Lookback( timeperiod ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":7094 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_EMA_Lookback( timeperiod ) # <<<<<<<<<<<<<< - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_EMA_Lookback(__pyx_v_timeperiod)); - - /* "talib/func.pyx":7095 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_EMA_Lookback( timeperiod ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7095, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 7095, __pyx_L1_error) - __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":7096 - * lookback = begidx + lib.TA_EMA_Lookback( timeperiod ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - */ - __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); - - /* "talib/func.pyx":7097 - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outreal_data[i] = NaN - * retCode = lib.TA_EMA( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":7098 - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN # <<<<<<<<<<<<<< - * retCode = lib.TA_EMA( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_EMA", retCode) - */ - (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_4func_NaN; - } - - /* "talib/func.pyx":7099 - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - * retCode = lib.TA_EMA( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_EMA", retCode) - * return outreal - */ - __pyx_v_retCode = TA_EMA(0, __pyx_v_endidx, ((double *)(__pyx_v_real_data + __pyx_v_begidx)), __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); - - /* "talib/func.pyx":7100 - * outreal_data[i] = NaN - * retCode = lib.TA_EMA( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _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, 7100, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":7101 - * retCode = lib.TA_EMA( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_EMA", retCode) - * return outreal # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); - __pyx_r = ((PyObject *)__pyx_v_outreal); - goto __pyx_L0; - - /* "talib/func.pyx":7054 - * @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.func.EMA", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outreal); - __Pyx_XDECREF((PyObject *)__pyx_v_real); - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "talib/func.pyx":7105 - * @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_4func_175EXP(PyObject *__pyx_self, PyObject *__pyx_v_real); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_175EXP = {"EXP", (PyCFunction)__pyx_pw_5talib_4func_175EXP, METH_O, __pyx_doc_5talib_4func_174EXP}; -static PyObject *__pyx_pw_5talib_4func_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, 7105, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_174EXP(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real) { - npy_intp __pyx_v_length; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - TA_RetCode __pyx_v_retCode; - double *__pyx_v_real_data; - int __pyx_v_outbegidx; - int __pyx_v_outnbelement; - PyArrayObject *__pyx_v_outreal = 0; - double *__pyx_v_outreal_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __Pyx_RefNannySetupContext("EXP", 0); - __Pyx_INCREF((PyObject *)__pyx_v_real); - - /* "talib/func.pyx":7125 - * np.ndarray outreal - * double* outreal_data - * 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/func.pyx":7126 - * double* outreal_data - * 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__895, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7126, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 7126, __pyx_L1_error) - - /* "talib/func.pyx":7125 - * np.ndarray outreal - * double* outreal_data - * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("real is not double") - * if real.ndim != 1: - */ - } - - /* "talib/func.pyx":7127 - * 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/func.pyx":7128 - * 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__896, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7128, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 7128, __pyx_L1_error) - - /* "talib/func.pyx":7127 - * 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/func.pyx":7129 - * 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 = real.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":7130 - * raise Exception("real has wrong dimensions") - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< - * real_data = real.data - * length = real.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7130, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 7130, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":7129 - * 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 = real.data - */ - } - - /* "talib/func.pyx":7131 - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) - * real_data = real.data # <<<<<<<<<<<<<< - * length = real.shape[0] - * begidx = 0 - */ - __pyx_v_real_data = ((double *)__pyx_v_real->data); - - /* "talib/func.pyx":7132 - * real = PyArray_GETCONTIGUOUS(real) - * real_data = real.data - * length = real.shape[0] # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_v_length = (__pyx_v_real->dimensions[0]); - - /* "talib/func.pyx":7133 - * real_data = real.data - * length = real.shape[0] - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = real_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":7134 - * length = real.shape[0] - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = real_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":7135 - * begidx = 0 - * for i from 0 <= i < length: - * val = real_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_real_data[__pyx_v_i]); - - /* "talib/func.pyx":7136 - * for i from 0 <= i < length: - * val = real_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":7137 - * val = real_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L6_continue; - - /* "talib/func.pyx":7136 - * for i from 0 <= i < length: - * val = real_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":7138 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":7139 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L7_break; - __pyx_L6_continue:; - } - /*else*/ { - - /* "talib/func.pyx":7141 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_EXP_Lookback( ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__897, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7141, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 7141, __pyx_L1_error) - } - __pyx_L7_break:; - - /* "talib/func.pyx":7142 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_EXP_Lookback( ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":7143 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_EXP_Lookback( ) # <<<<<<<<<<<<<< - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_EXP_Lookback()); - - /* "talib/func.pyx":7144 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_EXP_Lookback( ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7144, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 7144, __pyx_L1_error) - __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":7145 - * lookback = begidx + lib.TA_EXP_Lookback( ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - */ - __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); - - /* "talib/func.pyx":7146 - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outreal_data[i] = NaN - * retCode = lib.TA_EXP( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":7147 - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN # <<<<<<<<<<<<<< - * retCode = lib.TA_EXP( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_EXP", retCode) - */ - (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_4func_NaN; - } - - /* "talib/func.pyx":7148 - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - * retCode = lib.TA_EXP( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_EXP", retCode) - * return outreal - */ - __pyx_v_retCode = TA_EXP(0, __pyx_v_endidx, ((double *)(__pyx_v_real_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); - - /* "talib/func.pyx":7149 - * outreal_data[i] = NaN - * retCode = lib.TA_EXP( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _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, 7149, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":7150 - * retCode = lib.TA_EXP( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_EXP", retCode) - * return outreal # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); - __pyx_r = ((PyObject *)__pyx_v_outreal); - goto __pyx_L0; - - /* "talib/func.pyx":7105 - * @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.func.EXP", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outreal); - __Pyx_XDECREF((PyObject *)__pyx_v_real); - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "talib/func.pyx":7154 - * @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_4func_177FLOOR(PyObject *__pyx_self, PyObject *__pyx_v_real); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_177FLOOR = {"FLOOR", (PyCFunction)__pyx_pw_5talib_4func_177FLOOR, METH_O, __pyx_doc_5talib_4func_176FLOOR}; -static PyObject *__pyx_pw_5talib_4func_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, 7154, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_176FLOOR(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real) { - npy_intp __pyx_v_length; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - TA_RetCode __pyx_v_retCode; - double *__pyx_v_real_data; - int __pyx_v_outbegidx; - int __pyx_v_outnbelement; - PyArrayObject *__pyx_v_outreal = 0; - double *__pyx_v_outreal_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __Pyx_RefNannySetupContext("FLOOR", 0); - __Pyx_INCREF((PyObject *)__pyx_v_real); - - /* "talib/func.pyx":7174 - * np.ndarray outreal - * double* outreal_data - * 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/func.pyx":7175 - * double* outreal_data - * 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__898, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7175, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 7175, __pyx_L1_error) - - /* "talib/func.pyx":7174 - * np.ndarray outreal - * double* outreal_data - * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("real is not double") - * if real.ndim != 1: - */ - } - - /* "talib/func.pyx":7176 - * 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/func.pyx":7177 - * 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__899, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7177, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 7177, __pyx_L1_error) - - /* "talib/func.pyx":7176 - * 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/func.pyx":7178 - * 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 = real.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":7179 - * raise Exception("real has wrong dimensions") - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< - * real_data = real.data - * length = real.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7179, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 7179, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":7178 - * 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 = real.data - */ - } - - /* "talib/func.pyx":7180 - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) - * real_data = real.data # <<<<<<<<<<<<<< - * length = real.shape[0] - * begidx = 0 - */ - __pyx_v_real_data = ((double *)__pyx_v_real->data); - - /* "talib/func.pyx":7181 - * real = PyArray_GETCONTIGUOUS(real) - * real_data = real.data - * length = real.shape[0] # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_v_length = (__pyx_v_real->dimensions[0]); - - /* "talib/func.pyx":7182 - * real_data = real.data - * length = real.shape[0] - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = real_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":7183 - * length = real.shape[0] - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = real_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":7184 - * begidx = 0 - * for i from 0 <= i < length: - * val = real_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_real_data[__pyx_v_i]); - - /* "talib/func.pyx":7185 - * for i from 0 <= i < length: - * val = real_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":7186 - * val = real_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L6_continue; - - /* "talib/func.pyx":7185 - * for i from 0 <= i < length: - * val = real_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":7187 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":7188 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L7_break; - __pyx_L6_continue:; - } - /*else*/ { - - /* "talib/func.pyx":7190 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_FLOOR_Lookback( ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__900, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7190, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 7190, __pyx_L1_error) - } - __pyx_L7_break:; - - /* "talib/func.pyx":7191 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_FLOOR_Lookback( ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":7192 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_FLOOR_Lookback( ) # <<<<<<<<<<<<<< - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_FLOOR_Lookback()); - - /* "talib/func.pyx":7193 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_FLOOR_Lookback( ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7193, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 7193, __pyx_L1_error) - __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":7194 - * lookback = begidx + lib.TA_FLOOR_Lookback( ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - */ - __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); - - /* "talib/func.pyx":7195 - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outreal_data[i] = NaN - * retCode = lib.TA_FLOOR( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":7196 - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN # <<<<<<<<<<<<<< - * retCode = lib.TA_FLOOR( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_FLOOR", retCode) - */ - (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_4func_NaN; - } - - /* "talib/func.pyx":7197 - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - * retCode = lib.TA_FLOOR( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_FLOOR", retCode) - * return outreal - */ - __pyx_v_retCode = TA_FLOOR(0, __pyx_v_endidx, ((double *)(__pyx_v_real_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); - - /* "talib/func.pyx":7198 - * outreal_data[i] = NaN - * retCode = lib.TA_FLOOR( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _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, 7198, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":7199 - * retCode = lib.TA_FLOOR( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_FLOOR", retCode) - * return outreal # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); - __pyx_r = ((PyObject *)__pyx_v_outreal); - goto __pyx_L0; - - /* "talib/func.pyx":7154 - * @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.func.FLOOR", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outreal); - __Pyx_XDECREF((PyObject *)__pyx_v_real); - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "talib/func.pyx":7203 - * @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_4func_179HT_DCPERIOD(PyObject *__pyx_self, PyObject *__pyx_v_real); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_179HT_DCPERIOD = {"HT_DCPERIOD", (PyCFunction)__pyx_pw_5talib_4func_179HT_DCPERIOD, METH_O, __pyx_doc_5talib_4func_178HT_DCPERIOD}; -static PyObject *__pyx_pw_5talib_4func_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, 7203, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_178HT_DCPERIOD(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real) { - npy_intp __pyx_v_length; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - TA_RetCode __pyx_v_retCode; - double *__pyx_v_real_data; - int __pyx_v_outbegidx; - int __pyx_v_outnbelement; - PyArrayObject *__pyx_v_outreal = 0; - double *__pyx_v_outreal_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __Pyx_RefNannySetupContext("HT_DCPERIOD", 0); - __Pyx_INCREF((PyObject *)__pyx_v_real); - - /* "talib/func.pyx":7223 - * np.ndarray outreal - * double* outreal_data - * 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/func.pyx":7224 - * double* outreal_data - * 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, 7224, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 7224, __pyx_L1_error) - - /* "talib/func.pyx":7223 - * np.ndarray outreal - * double* outreal_data - * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("real is not double") - * if real.ndim != 1: - */ - } - - /* "talib/func.pyx":7225 - * 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/func.pyx":7226 - * 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, 7226, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 7226, __pyx_L1_error) - - /* "talib/func.pyx":7225 - * 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/func.pyx":7227 - * 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 = real.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":7228 - * raise Exception("real has wrong dimensions") - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< - * real_data = real.data - * length = real.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7228, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 7228, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":7227 - * 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 = real.data - */ - } - - /* "talib/func.pyx":7229 - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) - * real_data = real.data # <<<<<<<<<<<<<< - * length = real.shape[0] - * begidx = 0 - */ - __pyx_v_real_data = ((double *)__pyx_v_real->data); - - /* "talib/func.pyx":7230 - * real = PyArray_GETCONTIGUOUS(real) - * real_data = real.data - * length = real.shape[0] # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_v_length = (__pyx_v_real->dimensions[0]); - - /* "talib/func.pyx":7231 - * real_data = real.data - * length = real.shape[0] - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = real_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":7232 - * length = real.shape[0] - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = real_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":7233 - * begidx = 0 - * for i from 0 <= i < length: - * val = real_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_real_data[__pyx_v_i]); - - /* "talib/func.pyx":7234 - * for i from 0 <= i < length: - * val = real_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":7235 - * val = real_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L6_continue; - - /* "talib/func.pyx":7234 - * for i from 0 <= i < length: - * val = real_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":7236 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":7237 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L7_break; - __pyx_L6_continue:; - } - /*else*/ { - - /* "talib/func.pyx":7239 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_HT_DCPERIOD_Lookback( ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__903, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7239, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 7239, __pyx_L1_error) - } - __pyx_L7_break:; - - /* "talib/func.pyx":7240 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_HT_DCPERIOD_Lookback( ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":7241 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_HT_DCPERIOD_Lookback( ) # <<<<<<<<<<<<<< - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_HT_DCPERIOD_Lookback()); - - /* "talib/func.pyx":7242 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_HT_DCPERIOD_Lookback( ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7242, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 7242, __pyx_L1_error) - __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":7243 - * lookback = begidx + lib.TA_HT_DCPERIOD_Lookback( ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - */ - __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); - - /* "talib/func.pyx":7244 - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outreal_data[i] = NaN - * retCode = lib.TA_HT_DCPERIOD( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":7245 - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN # <<<<<<<<<<<<<< - * retCode = lib.TA_HT_DCPERIOD( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_HT_DCPERIOD", retCode) - */ - (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_4func_NaN; - } - - /* "talib/func.pyx":7246 - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - * retCode = lib.TA_HT_DCPERIOD( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_HT_DCPERIOD", retCode) - * return outreal - */ - __pyx_v_retCode = TA_HT_DCPERIOD(0, __pyx_v_endidx, ((double *)(__pyx_v_real_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); - - /* "talib/func.pyx":7247 - * outreal_data[i] = NaN - * retCode = lib.TA_HT_DCPERIOD( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _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, 7247, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":7248 - * retCode = lib.TA_HT_DCPERIOD( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_HT_DCPERIOD", retCode) - * return outreal # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); - __pyx_r = ((PyObject *)__pyx_v_outreal); - goto __pyx_L0; - - /* "talib/func.pyx":7203 - * @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.func.HT_DCPERIOD", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outreal); - __Pyx_XDECREF((PyObject *)__pyx_v_real); - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "talib/func.pyx":7252 - * @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_4func_181HT_DCPHASE(PyObject *__pyx_self, PyObject *__pyx_v_real); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_181HT_DCPHASE = {"HT_DCPHASE", (PyCFunction)__pyx_pw_5talib_4func_181HT_DCPHASE, METH_O, __pyx_doc_5talib_4func_180HT_DCPHASE}; -static PyObject *__pyx_pw_5talib_4func_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, 7252, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_180HT_DCPHASE(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real) { - npy_intp __pyx_v_length; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - TA_RetCode __pyx_v_retCode; - double *__pyx_v_real_data; - int __pyx_v_outbegidx; - int __pyx_v_outnbelement; - PyArrayObject *__pyx_v_outreal = 0; - double *__pyx_v_outreal_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __Pyx_RefNannySetupContext("HT_DCPHASE", 0); - __Pyx_INCREF((PyObject *)__pyx_v_real); - - /* "talib/func.pyx":7272 - * np.ndarray outreal - * double* outreal_data - * 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/func.pyx":7273 - * double* outreal_data - * 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__904, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7273, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 7273, __pyx_L1_error) - - /* "talib/func.pyx":7272 - * np.ndarray outreal - * double* outreal_data - * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("real is not double") - * if real.ndim != 1: - */ - } - - /* "talib/func.pyx":7274 - * 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/func.pyx":7275 - * 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__905, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7275, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 7275, __pyx_L1_error) - - /* "talib/func.pyx":7274 - * 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/func.pyx":7276 - * 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 = real.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":7277 - * raise Exception("real has wrong dimensions") - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< - * real_data = real.data - * length = real.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7277, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 7277, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":7276 - * 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 = real.data - */ - } - - /* "talib/func.pyx":7278 - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) - * real_data = real.data # <<<<<<<<<<<<<< - * length = real.shape[0] - * begidx = 0 - */ - __pyx_v_real_data = ((double *)__pyx_v_real->data); - - /* "talib/func.pyx":7279 - * real = PyArray_GETCONTIGUOUS(real) - * real_data = real.data - * length = real.shape[0] # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_v_length = (__pyx_v_real->dimensions[0]); - - /* "talib/func.pyx":7280 - * real_data = real.data - * length = real.shape[0] - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = real_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":7281 - * length = real.shape[0] - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = real_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":7282 - * begidx = 0 - * for i from 0 <= i < length: - * val = real_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_real_data[__pyx_v_i]); - - /* "talib/func.pyx":7283 - * for i from 0 <= i < length: - * val = real_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":7284 - * val = real_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L6_continue; - - /* "talib/func.pyx":7283 - * for i from 0 <= i < length: - * val = real_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":7285 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":7286 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L7_break; - __pyx_L6_continue:; - } - /*else*/ { - - /* "talib/func.pyx":7288 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_HT_DCPHASE_Lookback( ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__906, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7288, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 7288, __pyx_L1_error) - } - __pyx_L7_break:; - - /* "talib/func.pyx":7289 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_HT_DCPHASE_Lookback( ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":7290 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_HT_DCPHASE_Lookback( ) # <<<<<<<<<<<<<< - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_HT_DCPHASE_Lookback()); - - /* "talib/func.pyx":7291 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_HT_DCPHASE_Lookback( ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7291, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 7291, __pyx_L1_error) - __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":7292 - * lookback = begidx + lib.TA_HT_DCPHASE_Lookback( ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - */ - __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); - - /* "talib/func.pyx":7293 - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outreal_data[i] = NaN - * retCode = lib.TA_HT_DCPHASE( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":7294 - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN # <<<<<<<<<<<<<< - * retCode = lib.TA_HT_DCPHASE( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_HT_DCPHASE", retCode) - */ - (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_4func_NaN; - } - - /* "talib/func.pyx":7295 - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - * retCode = lib.TA_HT_DCPHASE( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_HT_DCPHASE", retCode) - * return outreal - */ - __pyx_v_retCode = TA_HT_DCPHASE(0, __pyx_v_endidx, ((double *)(__pyx_v_real_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); - - /* "talib/func.pyx":7296 - * outreal_data[i] = NaN - * retCode = lib.TA_HT_DCPHASE( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _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, 7296, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":7297 - * retCode = lib.TA_HT_DCPHASE( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_HT_DCPHASE", retCode) - * return outreal # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); - __pyx_r = ((PyObject *)__pyx_v_outreal); - goto __pyx_L0; - - /* "talib/func.pyx":7252 - * @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.func.HT_DCPHASE", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outreal); - __Pyx_XDECREF((PyObject *)__pyx_v_real); - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "talib/func.pyx":7301 - * @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_4func_183HT_PHASOR(PyObject *__pyx_self, PyObject *__pyx_v_real); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_183HT_PHASOR = {"HT_PHASOR", (PyCFunction)__pyx_pw_5talib_4func_183HT_PHASOR, METH_O, __pyx_doc_5talib_4func_182HT_PHASOR}; -static PyObject *__pyx_pw_5talib_4func_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, 7301, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_182HT_PHASOR(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real) { - npy_intp __pyx_v_length; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - TA_RetCode __pyx_v_retCode; - double *__pyx_v_real_data; - int __pyx_v_outbegidx; - int __pyx_v_outnbelement; - PyArrayObject *__pyx_v_outinphase = 0; - double *__pyx_v_outinphase_data; - PyArrayObject *__pyx_v_outquadrature = 0; - double *__pyx_v_outquadrature_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __Pyx_RefNannySetupContext("HT_PHASOR", 0); - __Pyx_INCREF((PyObject *)__pyx_v_real); - - /* "talib/func.pyx":7324 - * np.ndarray outquadrature - * double* outquadrature_data - * 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/func.pyx":7325 - * double* outquadrature_data - * 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__907, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7325, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 7325, __pyx_L1_error) - - /* "talib/func.pyx":7324 - * np.ndarray outquadrature - * double* outquadrature_data - * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("real is not double") - * if real.ndim != 1: - */ - } - - /* "talib/func.pyx":7326 - * 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/func.pyx":7327 - * 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__908, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7327, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 7327, __pyx_L1_error) - - /* "talib/func.pyx":7326 - * 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/func.pyx":7328 - * 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 = real.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":7329 - * raise Exception("real has wrong dimensions") - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< - * real_data = real.data - * length = real.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7329, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 7329, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":7328 - * 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 = real.data - */ - } - - /* "talib/func.pyx":7330 - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) - * real_data = real.data # <<<<<<<<<<<<<< - * length = real.shape[0] - * begidx = 0 - */ - __pyx_v_real_data = ((double *)__pyx_v_real->data); - - /* "talib/func.pyx":7331 - * real = PyArray_GETCONTIGUOUS(real) - * real_data = real.data - * length = real.shape[0] # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_v_length = (__pyx_v_real->dimensions[0]); - - /* "talib/func.pyx":7332 - * real_data = real.data - * length = real.shape[0] - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = real_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":7333 - * length = real.shape[0] - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = real_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":7334 - * begidx = 0 - * for i from 0 <= i < length: - * val = real_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_real_data[__pyx_v_i]); - - /* "talib/func.pyx":7335 - * for i from 0 <= i < length: - * val = real_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":7336 - * val = real_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L6_continue; - - /* "talib/func.pyx":7335 - * for i from 0 <= i < length: - * val = real_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":7337 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":7338 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L7_break; - __pyx_L6_continue:; - } - /*else*/ { - - /* "talib/func.pyx":7340 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_HT_PHASOR_Lookback( ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__909, 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) - } - __pyx_L7_break:; - - /* "talib/func.pyx":7341 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_HT_PHASOR_Lookback( ) - * outinphase = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":7342 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_HT_PHASOR_Lookback( ) # <<<<<<<<<<<<<< - * outinphase = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outinphase_data = outinphase.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_HT_PHASOR_Lookback()); - - /* "talib/func.pyx":7343 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_HT_PHASOR_Lookback( ) - * outinphase = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outinphase_data = outinphase.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7343, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 7343, __pyx_L1_error) - __pyx_v_outinphase = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":7344 - * lookback = begidx + lib.TA_HT_PHASOR_Lookback( ) - * outinphase = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outinphase_data = outinphase.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outinphase_data[i] = NaN - */ - __pyx_v_outinphase_data = ((double *)__pyx_v_outinphase->data); - - /* "talib/func.pyx":7345 - * outinphase = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outinphase_data = outinphase.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outinphase_data[i] = NaN - * outquadrature = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":7346 - * outinphase_data = outinphase.data - * for i from 0 <= i < min(lookback, length): - * outinphase_data[i] = NaN # <<<<<<<<<<<<<< - * outquadrature = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outquadrature_data = outquadrature.data - */ - (__pyx_v_outinphase_data[__pyx_v_i]) = __pyx_v_5talib_4func_NaN; - } - - /* "talib/func.pyx":7347 - * for i from 0 <= i < min(lookback, length): - * outinphase_data[i] = NaN - * outquadrature = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outquadrature_data = outquadrature.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7347, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 7347, __pyx_L1_error) - __pyx_v_outquadrature = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":7348 - * outinphase_data[i] = NaN - * outquadrature = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outquadrature_data = outquadrature.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outquadrature_data[i] = NaN - */ - __pyx_v_outquadrature_data = ((double *)__pyx_v_outquadrature->data); - - /* "talib/func.pyx":7349 - * outquadrature = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outquadrature_data = outquadrature.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outquadrature_data[i] = NaN - * retCode = lib.TA_HT_PHASOR( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outinphase_data+lookback) , (outquadrature_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":7350 - * outquadrature_data = outquadrature.data - * for i from 0 <= i < min(lookback, length): - * outquadrature_data[i] = NaN # <<<<<<<<<<<<<< - * retCode = lib.TA_HT_PHASOR( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outinphase_data+lookback) , (outquadrature_data+lookback) ) - * _ta_check_success("TA_HT_PHASOR", retCode) - */ - (__pyx_v_outquadrature_data[__pyx_v_i]) = __pyx_v_5talib_4func_NaN; - } - - /* "talib/func.pyx":7351 - * for i from 0 <= i < min(lookback, length): - * outquadrature_data[i] = NaN - * retCode = lib.TA_HT_PHASOR( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outinphase_data+lookback) , (outquadrature_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_HT_PHASOR", retCode) - * return outinphase , outquadrature - */ - __pyx_v_retCode = TA_HT_PHASOR(0, __pyx_v_endidx, ((double *)(__pyx_v_real_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outinphase_data + __pyx_v_lookback)), ((double *)(__pyx_v_outquadrature_data + __pyx_v_lookback))); - - /* "talib/func.pyx":7352 - * outquadrature_data[i] = NaN - * retCode = lib.TA_HT_PHASOR( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outinphase_data+lookback) , (outquadrature_data+lookback) ) - * _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, 7352, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":7353 - * retCode = lib.TA_HT_PHASOR( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outinphase_data+lookback) , (outquadrature_data+lookback) ) - * _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 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7353, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_INCREF(((PyObject *)__pyx_v_outinphase)); - __Pyx_GIVEREF(((PyObject *)__pyx_v_outinphase)); - PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_v_outinphase)); - __Pyx_INCREF(((PyObject *)__pyx_v_outquadrature)); - __Pyx_GIVEREF(((PyObject *)__pyx_v_outquadrature)); - PyTuple_SET_ITEM(__pyx_t_2, 1, ((PyObject *)__pyx_v_outquadrature)); - __pyx_r = __pyx_t_2; - __pyx_t_2 = 0; - goto __pyx_L0; - - /* "talib/func.pyx":7301 - * @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_AddTraceback("talib.func.HT_PHASOR", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outinphase); - __Pyx_XDECREF((PyObject *)__pyx_v_outquadrature); - __Pyx_XDECREF((PyObject *)__pyx_v_real); - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "talib/func.pyx":7357 - * @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_4func_185HT_SINE(PyObject *__pyx_self, PyObject *__pyx_v_real); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_185HT_SINE = {"HT_SINE", (PyCFunction)__pyx_pw_5talib_4func_185HT_SINE, METH_O, __pyx_doc_5talib_4func_184HT_SINE}; -static PyObject *__pyx_pw_5talib_4func_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, 7357, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_184HT_SINE(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real) { - npy_intp __pyx_v_length; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - TA_RetCode __pyx_v_retCode; - double *__pyx_v_real_data; - int __pyx_v_outbegidx; - int __pyx_v_outnbelement; - PyArrayObject *__pyx_v_outsine = 0; - double *__pyx_v_outsine_data; - PyArrayObject *__pyx_v_outleadsine = 0; - double *__pyx_v_outleadsine_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __Pyx_RefNannySetupContext("HT_SINE", 0); - __Pyx_INCREF((PyObject *)__pyx_v_real); - - /* "talib/func.pyx":7380 - * np.ndarray outleadsine - * double* outleadsine_data - * 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/func.pyx":7381 - * double* outleadsine_data - * 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__910, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7381, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 7381, __pyx_L1_error) - - /* "talib/func.pyx":7380 - * np.ndarray outleadsine - * double* outleadsine_data - * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("real is not double") - * if real.ndim != 1: - */ - } - - /* "talib/func.pyx":7382 - * 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/func.pyx":7383 - * 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__911, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7383, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 7383, __pyx_L1_error) - - /* "talib/func.pyx":7382 - * 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/func.pyx":7384 - * 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 = real.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":7385 - * raise Exception("real has wrong dimensions") - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< - * real_data = real.data - * length = real.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7385, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 7385, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":7384 - * 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 = real.data - */ - } - - /* "talib/func.pyx":7386 - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) - * real_data = real.data # <<<<<<<<<<<<<< - * length = real.shape[0] - * begidx = 0 - */ - __pyx_v_real_data = ((double *)__pyx_v_real->data); - - /* "talib/func.pyx":7387 - * real = PyArray_GETCONTIGUOUS(real) - * real_data = real.data - * length = real.shape[0] # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_v_length = (__pyx_v_real->dimensions[0]); - - /* "talib/func.pyx":7388 - * real_data = real.data - * length = real.shape[0] - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = real_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":7389 - * length = real.shape[0] - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = real_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":7390 - * begidx = 0 - * for i from 0 <= i < length: - * val = real_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_real_data[__pyx_v_i]); - - /* "talib/func.pyx":7391 - * for i from 0 <= i < length: - * val = real_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":7392 - * val = real_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L6_continue; - - /* "talib/func.pyx":7391 - * for i from 0 <= i < length: - * val = real_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":7393 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":7394 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L7_break; - __pyx_L6_continue:; - } - /*else*/ { - - /* "talib/func.pyx":7396 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_HT_SINE_Lookback( ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__912, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7396, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 7396, __pyx_L1_error) - } - __pyx_L7_break:; - - /* "talib/func.pyx":7397 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_HT_SINE_Lookback( ) - * outsine = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":7398 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_HT_SINE_Lookback( ) # <<<<<<<<<<<<<< - * outsine = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outsine_data = outsine.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_HT_SINE_Lookback()); - - /* "talib/func.pyx":7399 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_HT_SINE_Lookback( ) - * outsine = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outsine_data = outsine.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7399, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 7399, __pyx_L1_error) - __pyx_v_outsine = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":7400 - * lookback = begidx + lib.TA_HT_SINE_Lookback( ) - * outsine = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outsine_data = outsine.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outsine_data[i] = NaN - */ - __pyx_v_outsine_data = ((double *)__pyx_v_outsine->data); - - /* "talib/func.pyx":7401 - * outsine = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outsine_data = outsine.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outsine_data[i] = NaN - * outleadsine = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":7402 - * outsine_data = outsine.data - * for i from 0 <= i < min(lookback, length): - * outsine_data[i] = NaN # <<<<<<<<<<<<<< - * outleadsine = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outleadsine_data = outleadsine.data - */ - (__pyx_v_outsine_data[__pyx_v_i]) = __pyx_v_5talib_4func_NaN; - } - - /* "talib/func.pyx":7403 - * for i from 0 <= i < min(lookback, length): - * outsine_data[i] = NaN - * outleadsine = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outleadsine_data = outleadsine.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7403, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 7403, __pyx_L1_error) - __pyx_v_outleadsine = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":7404 - * outsine_data[i] = NaN - * outleadsine = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outleadsine_data = outleadsine.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outleadsine_data[i] = NaN - */ - __pyx_v_outleadsine_data = ((double *)__pyx_v_outleadsine->data); - - /* "talib/func.pyx":7405 - * outleadsine = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outleadsine_data = outleadsine.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outleadsine_data[i] = NaN - * retCode = lib.TA_HT_SINE( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outsine_data+lookback) , (outleadsine_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":7406 - * outleadsine_data = outleadsine.data - * for i from 0 <= i < min(lookback, length): - * outleadsine_data[i] = NaN # <<<<<<<<<<<<<< - * retCode = lib.TA_HT_SINE( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outsine_data+lookback) , (outleadsine_data+lookback) ) - * _ta_check_success("TA_HT_SINE", retCode) - */ - (__pyx_v_outleadsine_data[__pyx_v_i]) = __pyx_v_5talib_4func_NaN; - } - - /* "talib/func.pyx":7407 - * for i from 0 <= i < min(lookback, length): - * outleadsine_data[i] = NaN - * retCode = lib.TA_HT_SINE( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outsine_data+lookback) , (outleadsine_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_HT_SINE", retCode) - * return outsine , outleadsine - */ - __pyx_v_retCode = TA_HT_SINE(0, __pyx_v_endidx, ((double *)(__pyx_v_real_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outsine_data + __pyx_v_lookback)), ((double *)(__pyx_v_outleadsine_data + __pyx_v_lookback))); - - /* "talib/func.pyx":7408 - * outleadsine_data[i] = NaN - * retCode = lib.TA_HT_SINE( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outsine_data+lookback) , (outleadsine_data+lookback) ) - * _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, 7408, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":7409 - * retCode = lib.TA_HT_SINE( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outsine_data+lookback) , (outleadsine_data+lookback) ) - * _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 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7409, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_INCREF(((PyObject *)__pyx_v_outsine)); - __Pyx_GIVEREF(((PyObject *)__pyx_v_outsine)); - PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_v_outsine)); - __Pyx_INCREF(((PyObject *)__pyx_v_outleadsine)); - __Pyx_GIVEREF(((PyObject *)__pyx_v_outleadsine)); - PyTuple_SET_ITEM(__pyx_t_2, 1, ((PyObject *)__pyx_v_outleadsine)); - __pyx_r = __pyx_t_2; - __pyx_t_2 = 0; - goto __pyx_L0; - - /* "talib/func.pyx":7357 - * @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_AddTraceback("talib.func.HT_SINE", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outsine); - __Pyx_XDECREF((PyObject *)__pyx_v_outleadsine); - __Pyx_XDECREF((PyObject *)__pyx_v_real); - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "talib/func.pyx":7413 - * @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_4func_187HT_TRENDLINE(PyObject *__pyx_self, PyObject *__pyx_v_real); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_187HT_TRENDLINE = {"HT_TRENDLINE", (PyCFunction)__pyx_pw_5talib_4func_187HT_TRENDLINE, METH_O, __pyx_doc_5talib_4func_186HT_TRENDLINE}; -static PyObject *__pyx_pw_5talib_4func_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, 7413, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_186HT_TRENDLINE(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real) { - npy_intp __pyx_v_length; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - TA_RetCode __pyx_v_retCode; - double *__pyx_v_real_data; - int __pyx_v_outbegidx; - int __pyx_v_outnbelement; - PyArrayObject *__pyx_v_outreal = 0; - double *__pyx_v_outreal_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __Pyx_RefNannySetupContext("HT_TRENDLINE", 0); - __Pyx_INCREF((PyObject *)__pyx_v_real); - - /* "talib/func.pyx":7433 - * np.ndarray outreal - * double* outreal_data - * 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/func.pyx":7434 - * double* outreal_data - * 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__913, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7434, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 7434, __pyx_L1_error) - - /* "talib/func.pyx":7433 - * np.ndarray outreal - * double* outreal_data - * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("real is not double") - * if real.ndim != 1: - */ - } - - /* "talib/func.pyx":7435 - * 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/func.pyx":7436 - * 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__914, 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/func.pyx":7435 - * 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/func.pyx":7437 - * 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 = real.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":7438 - * raise Exception("real has wrong dimensions") - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< - * real_data = real.data - * length = real.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7438, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 7438, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":7437 - * 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 = real.data - */ - } - - /* "talib/func.pyx":7439 - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) - * real_data = real.data # <<<<<<<<<<<<<< - * length = real.shape[0] - * begidx = 0 - */ - __pyx_v_real_data = ((double *)__pyx_v_real->data); - - /* "talib/func.pyx":7440 - * real = PyArray_GETCONTIGUOUS(real) - * real_data = real.data - * length = real.shape[0] # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_v_length = (__pyx_v_real->dimensions[0]); - - /* "talib/func.pyx":7441 - * real_data = real.data - * length = real.shape[0] - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = real_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":7442 - * length = real.shape[0] - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = real_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":7443 - * begidx = 0 - * for i from 0 <= i < length: - * val = real_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_real_data[__pyx_v_i]); - - /* "talib/func.pyx":7444 - * for i from 0 <= i < length: - * val = real_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":7445 - * val = real_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L6_continue; - - /* "talib/func.pyx":7444 - * for i from 0 <= i < length: - * val = real_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":7446 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":7447 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L7_break; - __pyx_L6_continue:; - } - /*else*/ { - - /* "talib/func.pyx":7449 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_HT_TRENDLINE_Lookback( ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__915, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7449, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 7449, __pyx_L1_error) - } - __pyx_L7_break:; - - /* "talib/func.pyx":7450 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_HT_TRENDLINE_Lookback( ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":7451 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_HT_TRENDLINE_Lookback( ) # <<<<<<<<<<<<<< - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_HT_TRENDLINE_Lookback()); - - /* "talib/func.pyx":7452 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_HT_TRENDLINE_Lookback( ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7452, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 7452, __pyx_L1_error) - __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":7453 - * lookback = begidx + lib.TA_HT_TRENDLINE_Lookback( ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - */ - __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); - - /* "talib/func.pyx":7454 - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outreal_data[i] = NaN - * retCode = lib.TA_HT_TRENDLINE( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":7455 - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN # <<<<<<<<<<<<<< - * retCode = lib.TA_HT_TRENDLINE( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_HT_TRENDLINE", retCode) - */ - (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_4func_NaN; - } - - /* "talib/func.pyx":7456 - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - * retCode = lib.TA_HT_TRENDLINE( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_HT_TRENDLINE", retCode) - * return outreal - */ - __pyx_v_retCode = TA_HT_TRENDLINE(0, __pyx_v_endidx, ((double *)(__pyx_v_real_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); - - /* "talib/func.pyx":7457 - * outreal_data[i] = NaN - * retCode = lib.TA_HT_TRENDLINE( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _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, 7457, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":7458 - * retCode = lib.TA_HT_TRENDLINE( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_HT_TRENDLINE", retCode) - * return outreal # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); - __pyx_r = ((PyObject *)__pyx_v_outreal); - goto __pyx_L0; - - /* "talib/func.pyx":7413 - * @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.func.HT_TRENDLINE", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outreal); - __Pyx_XDECREF((PyObject *)__pyx_v_real); - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "talib/func.pyx":7462 - * @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_4func_189HT_TRENDMODE(PyObject *__pyx_self, PyObject *__pyx_v_real); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_189HT_TRENDMODE = {"HT_TRENDMODE", (PyCFunction)__pyx_pw_5talib_4func_189HT_TRENDMODE, METH_O, __pyx_doc_5talib_4func_188HT_TRENDMODE}; -static PyObject *__pyx_pw_5talib_4func_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, 7462, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_188HT_TRENDMODE(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real) { - npy_intp __pyx_v_length; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - TA_RetCode __pyx_v_retCode; - double *__pyx_v_real_data; - int __pyx_v_outbegidx; - int __pyx_v_outnbelement; - PyArrayObject *__pyx_v_outinteger = 0; - int *__pyx_v_outinteger_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __Pyx_RefNannySetupContext("HT_TRENDMODE", 0); - __Pyx_INCREF((PyObject *)__pyx_v_real); - - /* "talib/func.pyx":7482 - * np.ndarray outinteger - * int* outinteger_data - * 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/func.pyx":7483 - * int* outinteger_data - * 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, 7483, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 7483, __pyx_L1_error) - - /* "talib/func.pyx":7482 - * np.ndarray outinteger - * int* outinteger_data - * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("real is not double") - * if real.ndim != 1: - */ - } - - /* "talib/func.pyx":7484 - * 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/func.pyx":7485 - * 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, 7485, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 7485, __pyx_L1_error) - - /* "talib/func.pyx":7484 - * 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/func.pyx":7486 - * 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 = real.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":7487 - * raise Exception("real has wrong dimensions") - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< - * real_data = real.data - * length = real.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7487, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 7487, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":7486 - * 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 = real.data - */ - } - - /* "talib/func.pyx":7488 - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) - * real_data = real.data # <<<<<<<<<<<<<< - * length = real.shape[0] - * begidx = 0 - */ - __pyx_v_real_data = ((double *)__pyx_v_real->data); - - /* "talib/func.pyx":7489 - * real = PyArray_GETCONTIGUOUS(real) - * real_data = real.data - * length = real.shape[0] # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_v_length = (__pyx_v_real->dimensions[0]); - - /* "talib/func.pyx":7490 - * real_data = real.data - * length = real.shape[0] - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = real_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":7491 - * length = real.shape[0] - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = real_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":7492 - * begidx = 0 - * for i from 0 <= i < length: - * val = real_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_real_data[__pyx_v_i]); - - /* "talib/func.pyx":7493 - * for i from 0 <= i < length: - * val = real_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":7494 - * val = real_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L6_continue; - - /* "talib/func.pyx":7493 - * for i from 0 <= i < length: - * val = real_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":7495 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":7496 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L7_break; - __pyx_L6_continue:; - } - /*else*/ { - - /* "talib/func.pyx":7498 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_HT_TRENDMODE_Lookback( ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__918, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7498, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 7498, __pyx_L1_error) - } - __pyx_L7_break:; - - /* "talib/func.pyx":7499 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_HT_TRENDMODE_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":7500 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_HT_TRENDMODE_Lookback( ) # <<<<<<<<<<<<<< - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_HT_TRENDMODE_Lookback()); - - /* "talib/func.pyx":7501 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_HT_TRENDMODE_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7501, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 7501, __pyx_L1_error) - __pyx_v_outinteger = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":7502 - * lookback = begidx + lib.TA_HT_TRENDMODE_Lookback( ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 - */ - __pyx_v_outinteger_data = ((int *)__pyx_v_outinteger->data); - - /* "talib/func.pyx":7503 - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outinteger_data[i] = 0 - * retCode = lib.TA_HT_TRENDMODE( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":7504 - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 # <<<<<<<<<<<<<< - * retCode = lib.TA_HT_TRENDMODE( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _ta_check_success("TA_HT_TRENDMODE", retCode) - */ - (__pyx_v_outinteger_data[__pyx_v_i]) = 0; - } - - /* "talib/func.pyx":7505 - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 - * retCode = lib.TA_HT_TRENDMODE( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_HT_TRENDMODE", retCode) - * return outinteger - */ - __pyx_v_retCode = TA_HT_TRENDMODE(0, __pyx_v_endidx, ((double *)(__pyx_v_real_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outinteger_data + __pyx_v_lookback))); - - /* "talib/func.pyx":7506 - * outinteger_data[i] = 0 - * retCode = lib.TA_HT_TRENDMODE( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _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, 7506, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":7507 - * retCode = lib.TA_HT_TRENDMODE( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _ta_check_success("TA_HT_TRENDMODE", retCode) - * return outinteger # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outinteger)); - __pyx_r = ((PyObject *)__pyx_v_outinteger); - goto __pyx_L0; - - /* "talib/func.pyx":7462 - * @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.func.HT_TRENDMODE", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outinteger); - __Pyx_XDECREF((PyObject *)__pyx_v_real); - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "talib/func.pyx":7511 - * @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_4func_191KAMA(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_191KAMA = {"KAMA", (PyCFunction)__pyx_pw_5talib_4func_191KAMA, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_190KAMA}; -static PyObject *__pyx_pw_5talib_4func_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, 7511, __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, 7511, __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, 7511, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 7511, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_190KAMA(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod) { - npy_intp __pyx_v_length; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - TA_RetCode __pyx_v_retCode; - double *__pyx_v_real_data; - int __pyx_v_outbegidx; - int __pyx_v_outnbelement; - PyArrayObject *__pyx_v_outreal = 0; - double *__pyx_v_outreal_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __Pyx_RefNannySetupContext("KAMA", 0); - __Pyx_INCREF((PyObject *)__pyx_v_real); - - /* "talib/func.pyx":7533 - * np.ndarray outreal - * double* outreal_data - * 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/func.pyx":7534 - * double* outreal_data - * 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__919, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7534, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 7534, __pyx_L1_error) - - /* "talib/func.pyx":7533 - * np.ndarray outreal - * double* outreal_data - * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("real is not double") - * if real.ndim != 1: - */ - } - - /* "talib/func.pyx":7535 - * 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/func.pyx":7536 - * 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__920, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7536, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 7536, __pyx_L1_error) - - /* "talib/func.pyx":7535 - * 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/func.pyx":7537 - * 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 = real.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":7538 - * raise Exception("real has wrong dimensions") - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< - * real_data = real.data - * length = real.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7538, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 7538, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":7537 - * 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 = real.data - */ - } - - /* "talib/func.pyx":7539 - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) - * real_data = real.data # <<<<<<<<<<<<<< - * length = real.shape[0] - * begidx = 0 - */ - __pyx_v_real_data = ((double *)__pyx_v_real->data); - - /* "talib/func.pyx":7540 - * real = PyArray_GETCONTIGUOUS(real) - * real_data = real.data - * length = real.shape[0] # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_v_length = (__pyx_v_real->dimensions[0]); - - /* "talib/func.pyx":7541 - * real_data = real.data - * length = real.shape[0] - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = real_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":7542 - * length = real.shape[0] - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = real_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":7543 - * begidx = 0 - * for i from 0 <= i < length: - * val = real_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_real_data[__pyx_v_i]); - - /* "talib/func.pyx":7544 - * for i from 0 <= i < length: - * val = real_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":7545 - * val = real_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L6_continue; - - /* "talib/func.pyx":7544 - * for i from 0 <= i < length: - * val = real_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":7546 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":7547 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L7_break; - __pyx_L6_continue:; - } - /*else*/ { - - /* "talib/func.pyx":7549 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_KAMA_Lookback( timeperiod ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__921, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7549, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 7549, __pyx_L1_error) - } - __pyx_L7_break:; - - /* "talib/func.pyx":7550 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_KAMA_Lookback( timeperiod ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":7551 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_KAMA_Lookback( timeperiod ) # <<<<<<<<<<<<<< - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_KAMA_Lookback(__pyx_v_timeperiod)); - - /* "talib/func.pyx":7552 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_KAMA_Lookback( timeperiod ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7552, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 7552, __pyx_L1_error) - __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":7553 - * lookback = begidx + lib.TA_KAMA_Lookback( timeperiod ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - */ - __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); - - /* "talib/func.pyx":7554 - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outreal_data[i] = NaN - * retCode = lib.TA_KAMA( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":7555 - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN # <<<<<<<<<<<<<< - * retCode = lib.TA_KAMA( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_KAMA", retCode) - */ - (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_4func_NaN; - } - - /* "talib/func.pyx":7556 - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - * retCode = lib.TA_KAMA( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_KAMA", retCode) - * return outreal - */ - __pyx_v_retCode = TA_KAMA(0, __pyx_v_endidx, ((double *)(__pyx_v_real_data + __pyx_v_begidx)), __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); - - /* "talib/func.pyx":7557 - * outreal_data[i] = NaN - * retCode = lib.TA_KAMA( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _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, 7557, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":7558 - * retCode = lib.TA_KAMA( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_KAMA", retCode) - * return outreal # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); - __pyx_r = ((PyObject *)__pyx_v_outreal); - goto __pyx_L0; - - /* "talib/func.pyx":7511 - * @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.func.KAMA", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outreal); - __Pyx_XDECREF((PyObject *)__pyx_v_real); - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "talib/func.pyx":7562 - * @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_4func_193LINEARREG(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_193LINEARREG = {"LINEARREG", (PyCFunction)__pyx_pw_5talib_4func_193LINEARREG, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_192LINEARREG}; -static PyObject *__pyx_pw_5talib_4func_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, 7562, __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, 7562, __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, 7562, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 7562, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_192LINEARREG(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod) { - npy_intp __pyx_v_length; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - TA_RetCode __pyx_v_retCode; - double *__pyx_v_real_data; - int __pyx_v_outbegidx; - int __pyx_v_outnbelement; - PyArrayObject *__pyx_v_outreal = 0; - double *__pyx_v_outreal_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __Pyx_RefNannySetupContext("LINEARREG", 0); - __Pyx_INCREF((PyObject *)__pyx_v_real); - - /* "talib/func.pyx":7584 - * np.ndarray outreal - * double* outreal_data - * 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/func.pyx":7585 - * double* outreal_data - * 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__922, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7585, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 7585, __pyx_L1_error) - - /* "talib/func.pyx":7584 - * np.ndarray outreal - * double* outreal_data - * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("real is not double") - * if real.ndim != 1: - */ - } - - /* "talib/func.pyx":7586 - * 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/func.pyx":7587 - * 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__923, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7587, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 7587, __pyx_L1_error) - - /* "talib/func.pyx":7586 - * 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/func.pyx":7588 - * 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 = real.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":7589 - * raise Exception("real has wrong dimensions") - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< - * real_data = real.data - * length = real.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7589, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 7589, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":7588 - * 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 = real.data - */ - } - - /* "talib/func.pyx":7590 - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) - * real_data = real.data # <<<<<<<<<<<<<< - * length = real.shape[0] - * begidx = 0 - */ - __pyx_v_real_data = ((double *)__pyx_v_real->data); - - /* "talib/func.pyx":7591 - * real = PyArray_GETCONTIGUOUS(real) - * real_data = real.data - * length = real.shape[0] # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_v_length = (__pyx_v_real->dimensions[0]); - - /* "talib/func.pyx":7592 - * real_data = real.data - * length = real.shape[0] - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = real_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":7593 - * length = real.shape[0] - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = real_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":7594 - * begidx = 0 - * for i from 0 <= i < length: - * val = real_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_real_data[__pyx_v_i]); - - /* "talib/func.pyx":7595 - * for i from 0 <= i < length: - * val = real_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":7596 - * val = real_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L6_continue; - - /* "talib/func.pyx":7595 - * for i from 0 <= i < length: - * val = real_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":7597 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":7598 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L7_break; - __pyx_L6_continue:; - } - /*else*/ { - - /* "talib/func.pyx":7600 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_LINEARREG_Lookback( timeperiod ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__924, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7600, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 7600, __pyx_L1_error) - } - __pyx_L7_break:; - - /* "talib/func.pyx":7601 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_LINEARREG_Lookback( timeperiod ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":7602 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_LINEARREG_Lookback( timeperiod ) # <<<<<<<<<<<<<< - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_LINEARREG_Lookback(__pyx_v_timeperiod)); - - /* "talib/func.pyx":7603 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_LINEARREG_Lookback( timeperiod ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7603, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 7603, __pyx_L1_error) - __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":7604 - * lookback = begidx + lib.TA_LINEARREG_Lookback( timeperiod ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - */ - __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); - - /* "talib/func.pyx":7605 - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outreal_data[i] = NaN - * retCode = lib.TA_LINEARREG( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":7606 - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN # <<<<<<<<<<<<<< - * retCode = lib.TA_LINEARREG( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_LINEARREG", retCode) - */ - (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_4func_NaN; - } - - /* "talib/func.pyx":7607 - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - * retCode = lib.TA_LINEARREG( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_LINEARREG", retCode) - * return outreal - */ - __pyx_v_retCode = TA_LINEARREG(0, __pyx_v_endidx, ((double *)(__pyx_v_real_data + __pyx_v_begidx)), __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); - - /* "talib/func.pyx":7608 - * outreal_data[i] = NaN - * retCode = lib.TA_LINEARREG( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _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, 7608, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":7609 - * retCode = lib.TA_LINEARREG( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_LINEARREG", retCode) - * return outreal # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); - __pyx_r = ((PyObject *)__pyx_v_outreal); - goto __pyx_L0; - - /* "talib/func.pyx":7562 - * @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.func.LINEARREG", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outreal); - __Pyx_XDECREF((PyObject *)__pyx_v_real); - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "talib/func.pyx":7613 - * @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_4func_195LINEARREG_ANGLE(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_195LINEARREG_ANGLE = {"LINEARREG_ANGLE", (PyCFunction)__pyx_pw_5talib_4func_195LINEARREG_ANGLE, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_194LINEARREG_ANGLE}; -static PyObject *__pyx_pw_5talib_4func_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, 7613, __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, 7613, __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, 7613, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 7613, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_194LINEARREG_ANGLE(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod) { - npy_intp __pyx_v_length; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - TA_RetCode __pyx_v_retCode; - double *__pyx_v_real_data; - int __pyx_v_outbegidx; - int __pyx_v_outnbelement; - PyArrayObject *__pyx_v_outreal = 0; - double *__pyx_v_outreal_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __Pyx_RefNannySetupContext("LINEARREG_ANGLE", 0); - __Pyx_INCREF((PyObject *)__pyx_v_real); - - /* "talib/func.pyx":7635 - * np.ndarray outreal - * double* outreal_data - * 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/func.pyx":7636 - * double* outreal_data - * 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__925, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7636, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 7636, __pyx_L1_error) - - /* "talib/func.pyx":7635 - * np.ndarray outreal - * double* outreal_data - * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("real is not double") - * if real.ndim != 1: - */ - } - - /* "talib/func.pyx":7637 - * 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/func.pyx":7638 - * 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__926, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7638, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 7638, __pyx_L1_error) - - /* "talib/func.pyx":7637 - * 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/func.pyx":7639 - * 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 = real.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":7640 - * raise Exception("real has wrong dimensions") - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< - * real_data = real.data - * length = real.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7640, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 7640, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":7639 - * 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 = real.data - */ - } - - /* "talib/func.pyx":7641 - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) - * real_data = real.data # <<<<<<<<<<<<<< - * length = real.shape[0] - * begidx = 0 - */ - __pyx_v_real_data = ((double *)__pyx_v_real->data); - - /* "talib/func.pyx":7642 - * real = PyArray_GETCONTIGUOUS(real) - * real_data = real.data - * length = real.shape[0] # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_v_length = (__pyx_v_real->dimensions[0]); - - /* "talib/func.pyx":7643 - * real_data = real.data - * length = real.shape[0] - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = real_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":7644 - * length = real.shape[0] - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = real_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":7645 - * begidx = 0 - * for i from 0 <= i < length: - * val = real_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_real_data[__pyx_v_i]); - - /* "talib/func.pyx":7646 - * for i from 0 <= i < length: - * val = real_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":7647 - * val = real_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L6_continue; - - /* "talib/func.pyx":7646 - * for i from 0 <= i < length: - * val = real_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":7648 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":7649 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L7_break; - __pyx_L6_continue:; - } - /*else*/ { - - /* "talib/func.pyx":7651 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_LINEARREG_ANGLE_Lookback( timeperiod ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__927, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7651, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 7651, __pyx_L1_error) - } - __pyx_L7_break:; - - /* "talib/func.pyx":7652 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_LINEARREG_ANGLE_Lookback( timeperiod ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":7653 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_LINEARREG_ANGLE_Lookback( timeperiod ) # <<<<<<<<<<<<<< - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_LINEARREG_ANGLE_Lookback(__pyx_v_timeperiod)); - - /* "talib/func.pyx":7654 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_LINEARREG_ANGLE_Lookback( timeperiod ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); 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_v_outreal = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":7655 - * lookback = begidx + lib.TA_LINEARREG_ANGLE_Lookback( timeperiod ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - */ - __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); - - /* "talib/func.pyx":7656 - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outreal_data[i] = NaN - * retCode = lib.TA_LINEARREG_ANGLE( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":7657 - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN # <<<<<<<<<<<<<< - * retCode = lib.TA_LINEARREG_ANGLE( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_LINEARREG_ANGLE", retCode) - */ - (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_4func_NaN; - } - - /* "talib/func.pyx":7658 - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - * retCode = lib.TA_LINEARREG_ANGLE( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_LINEARREG_ANGLE", retCode) - * return outreal - */ - __pyx_v_retCode = TA_LINEARREG_ANGLE(0, __pyx_v_endidx, ((double *)(__pyx_v_real_data + __pyx_v_begidx)), __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); - - /* "talib/func.pyx":7659 - * outreal_data[i] = NaN - * retCode = lib.TA_LINEARREG_ANGLE( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _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, 7659, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":7660 - * retCode = lib.TA_LINEARREG_ANGLE( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_LINEARREG_ANGLE", retCode) - * return outreal # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); - __pyx_r = ((PyObject *)__pyx_v_outreal); - goto __pyx_L0; - - /* "talib/func.pyx":7613 - * @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.func.LINEARREG_ANGLE", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outreal); - __Pyx_XDECREF((PyObject *)__pyx_v_real); - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "talib/func.pyx":7664 - * @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_4func_197LINEARREG_INTERCEPT(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_197LINEARREG_INTERCEPT = {"LINEARREG_INTERCEPT", (PyCFunction)__pyx_pw_5talib_4func_197LINEARREG_INTERCEPT, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_196LINEARREG_INTERCEPT}; -static PyObject *__pyx_pw_5talib_4func_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, 7664, __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, 7664, __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, 7664, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 7664, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_196LINEARREG_INTERCEPT(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod) { - npy_intp __pyx_v_length; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - TA_RetCode __pyx_v_retCode; - double *__pyx_v_real_data; - int __pyx_v_outbegidx; - int __pyx_v_outnbelement; - PyArrayObject *__pyx_v_outreal = 0; - double *__pyx_v_outreal_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __Pyx_RefNannySetupContext("LINEARREG_INTERCEPT", 0); - __Pyx_INCREF((PyObject *)__pyx_v_real); - - /* "talib/func.pyx":7686 - * np.ndarray outreal - * double* outreal_data - * 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/func.pyx":7687 - * double* outreal_data - * 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__928, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7687, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 7687, __pyx_L1_error) - - /* "talib/func.pyx":7686 - * np.ndarray outreal - * double* outreal_data - * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("real is not double") - * if real.ndim != 1: - */ - } - - /* "talib/func.pyx":7688 - * 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/func.pyx":7689 - * 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__929, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7689, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 7689, __pyx_L1_error) - - /* "talib/func.pyx":7688 - * 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/func.pyx":7690 - * 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 = real.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":7691 - * raise Exception("real has wrong dimensions") - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< - * real_data = real.data - * length = real.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7691, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 7691, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":7690 - * 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 = real.data - */ - } - - /* "talib/func.pyx":7692 - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) - * real_data = real.data # <<<<<<<<<<<<<< - * length = real.shape[0] - * begidx = 0 - */ - __pyx_v_real_data = ((double *)__pyx_v_real->data); - - /* "talib/func.pyx":7693 - * real = PyArray_GETCONTIGUOUS(real) - * real_data = real.data - * length = real.shape[0] # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_v_length = (__pyx_v_real->dimensions[0]); - - /* "talib/func.pyx":7694 - * real_data = real.data - * length = real.shape[0] - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = real_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":7695 - * length = real.shape[0] - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = real_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":7696 - * begidx = 0 - * for i from 0 <= i < length: - * val = real_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_real_data[__pyx_v_i]); - - /* "talib/func.pyx":7697 - * for i from 0 <= i < length: - * val = real_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":7698 - * val = real_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L6_continue; - - /* "talib/func.pyx":7697 - * for i from 0 <= i < length: - * val = real_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":7699 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":7700 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L7_break; - __pyx_L6_continue:; - } - /*else*/ { - - /* "talib/func.pyx":7702 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_LINEARREG_INTERCEPT_Lookback( timeperiod ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__930, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7702, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 7702, __pyx_L1_error) - } - __pyx_L7_break:; - - /* "talib/func.pyx":7703 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_LINEARREG_INTERCEPT_Lookback( timeperiod ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":7704 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_LINEARREG_INTERCEPT_Lookback( timeperiod ) # <<<<<<<<<<<<<< - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_LINEARREG_INTERCEPT_Lookback(__pyx_v_timeperiod)); - - /* "talib/func.pyx":7705 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_LINEARREG_INTERCEPT_Lookback( timeperiod ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7705, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 7705, __pyx_L1_error) - __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":7706 - * lookback = begidx + lib.TA_LINEARREG_INTERCEPT_Lookback( timeperiod ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - */ - __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); - - /* "talib/func.pyx":7707 - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outreal_data[i] = NaN - * retCode = lib.TA_LINEARREG_INTERCEPT( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":7708 - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN # <<<<<<<<<<<<<< - * retCode = lib.TA_LINEARREG_INTERCEPT( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_LINEARREG_INTERCEPT", retCode) - */ - (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_4func_NaN; - } - - /* "talib/func.pyx":7709 - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - * retCode = lib.TA_LINEARREG_INTERCEPT( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_LINEARREG_INTERCEPT", retCode) - * return outreal - */ - __pyx_v_retCode = TA_LINEARREG_INTERCEPT(0, __pyx_v_endidx, ((double *)(__pyx_v_real_data + __pyx_v_begidx)), __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); - - /* "talib/func.pyx":7710 - * outreal_data[i] = NaN - * retCode = lib.TA_LINEARREG_INTERCEPT( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _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, 7710, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":7711 - * retCode = lib.TA_LINEARREG_INTERCEPT( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_LINEARREG_INTERCEPT", retCode) - * return outreal # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); - __pyx_r = ((PyObject *)__pyx_v_outreal); - goto __pyx_L0; - - /* "talib/func.pyx":7664 - * @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.func.LINEARREG_INTERCEPT", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outreal); - __Pyx_XDECREF((PyObject *)__pyx_v_real); - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "talib/func.pyx":7715 - * @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_4func_199LINEARREG_SLOPE(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_199LINEARREG_SLOPE = {"LINEARREG_SLOPE", (PyCFunction)__pyx_pw_5talib_4func_199LINEARREG_SLOPE, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_198LINEARREG_SLOPE}; -static PyObject *__pyx_pw_5talib_4func_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, 7715, __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, 7715, __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, 7715, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 7715, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_198LINEARREG_SLOPE(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod) { - npy_intp __pyx_v_length; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - TA_RetCode __pyx_v_retCode; - double *__pyx_v_real_data; - int __pyx_v_outbegidx; - int __pyx_v_outnbelement; - PyArrayObject *__pyx_v_outreal = 0; - double *__pyx_v_outreal_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __Pyx_RefNannySetupContext("LINEARREG_SLOPE", 0); - __Pyx_INCREF((PyObject *)__pyx_v_real); - - /* "talib/func.pyx":7737 - * np.ndarray outreal - * double* outreal_data - * 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/func.pyx":7738 - * double* outreal_data - * 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__931, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7738, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 7738, __pyx_L1_error) - - /* "talib/func.pyx":7737 - * np.ndarray outreal - * double* outreal_data - * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("real is not double") - * if real.ndim != 1: - */ - } - - /* "talib/func.pyx":7739 - * 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/func.pyx":7740 - * 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__932, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7740, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 7740, __pyx_L1_error) - - /* "talib/func.pyx":7739 - * 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/func.pyx":7741 - * 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 = real.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":7742 - * raise Exception("real has wrong dimensions") - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< - * real_data = real.data - * length = real.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7742, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 7742, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":7741 - * 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 = real.data - */ - } - - /* "talib/func.pyx":7743 - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) - * real_data = real.data # <<<<<<<<<<<<<< - * length = real.shape[0] - * begidx = 0 - */ - __pyx_v_real_data = ((double *)__pyx_v_real->data); - - /* "talib/func.pyx":7744 - * real = PyArray_GETCONTIGUOUS(real) - * real_data = real.data - * length = real.shape[0] # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_v_length = (__pyx_v_real->dimensions[0]); - - /* "talib/func.pyx":7745 - * real_data = real.data - * length = real.shape[0] - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = real_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":7746 - * length = real.shape[0] - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = real_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":7747 - * begidx = 0 - * for i from 0 <= i < length: - * val = real_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_real_data[__pyx_v_i]); - - /* "talib/func.pyx":7748 - * for i from 0 <= i < length: - * val = real_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":7749 - * val = real_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L6_continue; - - /* "talib/func.pyx":7748 - * for i from 0 <= i < length: - * val = real_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":7750 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":7751 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L7_break; - __pyx_L6_continue:; - } - /*else*/ { - - /* "talib/func.pyx":7753 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_LINEARREG_SLOPE_Lookback( timeperiod ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__933, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7753, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 7753, __pyx_L1_error) - } - __pyx_L7_break:; - - /* "talib/func.pyx":7754 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_LINEARREG_SLOPE_Lookback( timeperiod ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":7755 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_LINEARREG_SLOPE_Lookback( timeperiod ) # <<<<<<<<<<<<<< - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_LINEARREG_SLOPE_Lookback(__pyx_v_timeperiod)); - - /* "talib/func.pyx":7756 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_LINEARREG_SLOPE_Lookback( timeperiod ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7756, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 7756, __pyx_L1_error) - __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":7757 - * lookback = begidx + lib.TA_LINEARREG_SLOPE_Lookback( timeperiod ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - */ - __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); - - /* "talib/func.pyx":7758 - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outreal_data[i] = NaN - * retCode = lib.TA_LINEARREG_SLOPE( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":7759 - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN # <<<<<<<<<<<<<< - * retCode = lib.TA_LINEARREG_SLOPE( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_LINEARREG_SLOPE", retCode) - */ - (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_4func_NaN; - } - - /* "talib/func.pyx":7760 - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - * retCode = lib.TA_LINEARREG_SLOPE( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_LINEARREG_SLOPE", retCode) - * return outreal - */ - __pyx_v_retCode = TA_LINEARREG_SLOPE(0, __pyx_v_endidx, ((double *)(__pyx_v_real_data + __pyx_v_begidx)), __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); - - /* "talib/func.pyx":7761 - * outreal_data[i] = NaN - * retCode = lib.TA_LINEARREG_SLOPE( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _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, 7761, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":7762 - * retCode = lib.TA_LINEARREG_SLOPE( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_LINEARREG_SLOPE", retCode) - * return outreal # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); - __pyx_r = ((PyObject *)__pyx_v_outreal); - goto __pyx_L0; - - /* "talib/func.pyx":7715 - * @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.func.LINEARREG_SLOPE", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outreal); - __Pyx_XDECREF((PyObject *)__pyx_v_real); - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "talib/func.pyx":7766 - * @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_4func_201LN(PyObject *__pyx_self, PyObject *__pyx_v_real); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_201LN = {"LN", (PyCFunction)__pyx_pw_5talib_4func_201LN, METH_O, __pyx_doc_5talib_4func_200LN}; -static PyObject *__pyx_pw_5talib_4func_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, 7766, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_200LN(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real) { - npy_intp __pyx_v_length; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - TA_RetCode __pyx_v_retCode; - double *__pyx_v_real_data; - int __pyx_v_outbegidx; - int __pyx_v_outnbelement; - PyArrayObject *__pyx_v_outreal = 0; - double *__pyx_v_outreal_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __Pyx_RefNannySetupContext("LN", 0); - __Pyx_INCREF((PyObject *)__pyx_v_real); - - /* "talib/func.pyx":7786 - * np.ndarray outreal - * double* outreal_data - * 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/func.pyx":7787 - * double* outreal_data - * 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, 7787, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 7787, __pyx_L1_error) - - /* "talib/func.pyx":7786 - * np.ndarray outreal - * double* outreal_data - * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("real is not double") - * if real.ndim != 1: - */ - } - - /* "talib/func.pyx":7788 - * 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/func.pyx":7789 - * 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, 7789, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 7789, __pyx_L1_error) - - /* "talib/func.pyx":7788 - * 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/func.pyx":7790 - * 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 = real.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":7791 - * raise Exception("real has wrong dimensions") - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< - * real_data = real.data - * length = real.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7791, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 7791, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":7790 - * 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 = real.data - */ - } - - /* "talib/func.pyx":7792 - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) - * real_data = real.data # <<<<<<<<<<<<<< - * length = real.shape[0] - * begidx = 0 - */ - __pyx_v_real_data = ((double *)__pyx_v_real->data); - - /* "talib/func.pyx":7793 - * real = PyArray_GETCONTIGUOUS(real) - * real_data = real.data - * length = real.shape[0] # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_v_length = (__pyx_v_real->dimensions[0]); - - /* "talib/func.pyx":7794 - * real_data = real.data - * length = real.shape[0] - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = real_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":7795 - * length = real.shape[0] - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = real_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":7796 - * begidx = 0 - * for i from 0 <= i < length: - * val = real_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_real_data[__pyx_v_i]); - - /* "talib/func.pyx":7797 - * for i from 0 <= i < length: - * val = real_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":7798 - * val = real_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L6_continue; - - /* "talib/func.pyx":7797 - * for i from 0 <= i < length: - * val = real_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":7799 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":7800 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L7_break; - __pyx_L6_continue:; - } - /*else*/ { - - /* "talib/func.pyx":7802 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_LN_Lookback( ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__936, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7802, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 7802, __pyx_L1_error) - } - __pyx_L7_break:; - - /* "talib/func.pyx":7803 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_LN_Lookback( ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":7804 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_LN_Lookback( ) # <<<<<<<<<<<<<< - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_LN_Lookback()); - - /* "talib/func.pyx":7805 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_LN_Lookback( ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7805, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 7805, __pyx_L1_error) - __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":7806 - * lookback = begidx + lib.TA_LN_Lookback( ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - */ - __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); - - /* "talib/func.pyx":7807 - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outreal_data[i] = NaN - * retCode = lib.TA_LN( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":7808 - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN # <<<<<<<<<<<<<< - * retCode = lib.TA_LN( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_LN", retCode) - */ - (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_4func_NaN; - } - - /* "talib/func.pyx":7809 - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - * retCode = lib.TA_LN( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_LN", retCode) - * return outreal - */ - __pyx_v_retCode = TA_LN(0, __pyx_v_endidx, ((double *)(__pyx_v_real_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); - - /* "talib/func.pyx":7810 - * outreal_data[i] = NaN - * retCode = lib.TA_LN( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _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, 7810, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":7811 - * retCode = lib.TA_LN( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_LN", retCode) - * return outreal # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); - __pyx_r = ((PyObject *)__pyx_v_outreal); - goto __pyx_L0; - - /* "talib/func.pyx":7766 - * @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.func.LN", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outreal); - __Pyx_XDECREF((PyObject *)__pyx_v_real); - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "talib/func.pyx":7815 - * @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_4func_203LOG10(PyObject *__pyx_self, PyObject *__pyx_v_real); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_203LOG10 = {"LOG10", (PyCFunction)__pyx_pw_5talib_4func_203LOG10, METH_O, __pyx_doc_5talib_4func_202LOG10}; -static PyObject *__pyx_pw_5talib_4func_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, 7815, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_202LOG10(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real) { - npy_intp __pyx_v_length; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - TA_RetCode __pyx_v_retCode; - double *__pyx_v_real_data; - int __pyx_v_outbegidx; - int __pyx_v_outnbelement; - PyArrayObject *__pyx_v_outreal = 0; - double *__pyx_v_outreal_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __Pyx_RefNannySetupContext("LOG10", 0); - __Pyx_INCREF((PyObject *)__pyx_v_real); - - /* "talib/func.pyx":7835 - * np.ndarray outreal - * double* outreal_data - * 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/func.pyx":7836 - * double* outreal_data - * 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__937, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7836, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 7836, __pyx_L1_error) - - /* "talib/func.pyx":7835 - * np.ndarray outreal - * double* outreal_data - * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("real is not double") - * if real.ndim != 1: - */ - } - - /* "talib/func.pyx":7837 - * 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/func.pyx":7838 - * 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__938, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7838, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 7838, __pyx_L1_error) - - /* "talib/func.pyx":7837 - * 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/func.pyx":7839 - * 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 = real.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":7840 - * raise Exception("real has wrong dimensions") - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< - * real_data = real.data - * length = real.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7840, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 7840, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":7839 - * 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 = real.data - */ - } - - /* "talib/func.pyx":7841 - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) - * real_data = real.data # <<<<<<<<<<<<<< - * length = real.shape[0] - * begidx = 0 - */ - __pyx_v_real_data = ((double *)__pyx_v_real->data); - - /* "talib/func.pyx":7842 - * real = PyArray_GETCONTIGUOUS(real) - * real_data = real.data - * length = real.shape[0] # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_v_length = (__pyx_v_real->dimensions[0]); - - /* "talib/func.pyx":7843 - * real_data = real.data - * length = real.shape[0] - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = real_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":7844 - * length = real.shape[0] - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = real_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":7845 - * begidx = 0 - * for i from 0 <= i < length: - * val = real_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_real_data[__pyx_v_i]); - - /* "talib/func.pyx":7846 - * for i from 0 <= i < length: - * val = real_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":7847 - * val = real_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L6_continue; - - /* "talib/func.pyx":7846 - * for i from 0 <= i < length: - * val = real_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":7848 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":7849 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L7_break; - __pyx_L6_continue:; - } - /*else*/ { - - /* "talib/func.pyx":7851 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_LOG10_Lookback( ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__939, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7851, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 7851, __pyx_L1_error) - } - __pyx_L7_break:; - - /* "talib/func.pyx":7852 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_LOG10_Lookback( ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":7853 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_LOG10_Lookback( ) # <<<<<<<<<<<<<< - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_LOG10_Lookback()); - - /* "talib/func.pyx":7854 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_LOG10_Lookback( ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7854, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 7854, __pyx_L1_error) - __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":7855 - * lookback = begidx + lib.TA_LOG10_Lookback( ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - */ - __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); - - /* "talib/func.pyx":7856 - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outreal_data[i] = NaN - * retCode = lib.TA_LOG10( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":7857 - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN # <<<<<<<<<<<<<< - * retCode = lib.TA_LOG10( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_LOG10", retCode) - */ - (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_4func_NaN; - } - - /* "talib/func.pyx":7858 - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - * retCode = lib.TA_LOG10( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_LOG10", retCode) - * return outreal - */ - __pyx_v_retCode = TA_LOG10(0, __pyx_v_endidx, ((double *)(__pyx_v_real_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); - - /* "talib/func.pyx":7859 - * outreal_data[i] = NaN - * retCode = lib.TA_LOG10( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _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, 7859, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":7860 - * retCode = lib.TA_LOG10( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_LOG10", retCode) - * return outreal # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); - __pyx_r = ((PyObject *)__pyx_v_outreal); - goto __pyx_L0; - - /* "talib/func.pyx":7815 - * @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.func.LOG10", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outreal); - __Pyx_XDECREF((PyObject *)__pyx_v_real); - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "talib/func.pyx":7864 - * @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_4func_205MA(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_205MA = {"MA", (PyCFunction)__pyx_pw_5talib_4func_205MA, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_204MA}; -static PyObject *__pyx_pw_5talib_4func_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, 7864, __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, 7864, __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, 7864, __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, 7864, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 7864, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_204MA(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod, int __pyx_v_matype) { - npy_intp __pyx_v_length; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - TA_RetCode __pyx_v_retCode; - double *__pyx_v_real_data; - int __pyx_v_outbegidx; - int __pyx_v_outnbelement; - PyArrayObject *__pyx_v_outreal = 0; - double *__pyx_v_outreal_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __Pyx_RefNannySetupContext("MA", 0); - __Pyx_INCREF((PyObject *)__pyx_v_real); - - /* "talib/func.pyx":7887 - * np.ndarray outreal - * double* outreal_data - * 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/func.pyx":7888 - * double* outreal_data - * 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, 7888, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 7888, __pyx_L1_error) - - /* "talib/func.pyx":7887 - * np.ndarray outreal - * double* outreal_data - * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("real is not double") - * if real.ndim != 1: - */ - } - - /* "talib/func.pyx":7889 - * 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/func.pyx":7890 - * 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, 7890, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 7890, __pyx_L1_error) - - /* "talib/func.pyx":7889 - * 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/func.pyx":7891 - * 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 = real.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":7892 - * raise Exception("real has wrong dimensions") - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< - * real_data = real.data - * length = real.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7892, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 7892, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":7891 - * 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 = real.data - */ - } - - /* "talib/func.pyx":7893 - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) - * real_data = real.data # <<<<<<<<<<<<<< - * length = real.shape[0] - * begidx = 0 - */ - __pyx_v_real_data = ((double *)__pyx_v_real->data); - - /* "talib/func.pyx":7894 - * real = PyArray_GETCONTIGUOUS(real) - * real_data = real.data - * length = real.shape[0] # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_v_length = (__pyx_v_real->dimensions[0]); - - /* "talib/func.pyx":7895 - * real_data = real.data - * length = real.shape[0] - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = real_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":7896 - * length = real.shape[0] - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = real_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":7897 - * begidx = 0 - * for i from 0 <= i < length: - * val = real_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_real_data[__pyx_v_i]); - - /* "talib/func.pyx":7898 - * for i from 0 <= i < length: - * val = real_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":7899 - * val = real_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L6_continue; - - /* "talib/func.pyx":7898 - * for i from 0 <= i < length: - * val = real_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":7900 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":7901 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L7_break; - __pyx_L6_continue:; - } - /*else*/ { - - /* "talib/func.pyx":7903 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_MA_Lookback( timeperiod , matype ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__942, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7903, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 7903, __pyx_L1_error) - } - __pyx_L7_break:; - - /* "talib/func.pyx":7904 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_MA_Lookback( timeperiod , matype ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":7905 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_MA_Lookback( timeperiod , matype ) # <<<<<<<<<<<<<< - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_MA_Lookback(__pyx_v_timeperiod, __pyx_v_matype)); - - /* "talib/func.pyx":7906 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_MA_Lookback( timeperiod , matype ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7906, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 7906, __pyx_L1_error) - __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":7907 - * lookback = begidx + lib.TA_MA_Lookback( timeperiod , matype ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - */ - __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); - - /* "talib/func.pyx":7908 - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outreal_data[i] = NaN - * retCode = lib.TA_MA( 0 , endidx , (real_data+begidx) , timeperiod , matype , &outbegidx , &outnbelement , (outreal_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":7909 - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN # <<<<<<<<<<<<<< - * retCode = lib.TA_MA( 0 , endidx , (real_data+begidx) , timeperiod , matype , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_MA", retCode) - */ - (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_4func_NaN; - } - - /* "talib/func.pyx":7910 - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - * retCode = lib.TA_MA( 0 , endidx , (real_data+begidx) , timeperiod , matype , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_MA", retCode) - * return outreal - */ - __pyx_v_retCode = TA_MA(0, __pyx_v_endidx, ((double *)(__pyx_v_real_data + __pyx_v_begidx)), __pyx_v_timeperiod, __pyx_v_matype, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); - - /* "talib/func.pyx":7911 - * outreal_data[i] = NaN - * retCode = lib.TA_MA( 0 , endidx , (real_data+begidx) , timeperiod , matype , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _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, 7911, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":7912 - * retCode = lib.TA_MA( 0 , endidx , (real_data+begidx) , timeperiod , matype , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_MA", retCode) - * return outreal # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); - __pyx_r = ((PyObject *)__pyx_v_outreal); - goto __pyx_L0; - - /* "talib/func.pyx":7864 - * @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.func.MA", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outreal); - __Pyx_XDECREF((PyObject *)__pyx_v_real); - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "talib/func.pyx":7916 - * @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_4func_207MACD(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_207MACD = {"MACD", (PyCFunction)__pyx_pw_5talib_4func_207MACD, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_206MACD}; -static PyObject *__pyx_pw_5talib_4func_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, 7916, __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, 7916, __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, 7916, __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, 7916, __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, 7916, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 7916, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_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; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - TA_RetCode __pyx_v_retCode; - double *__pyx_v_real_data; - int __pyx_v_outbegidx; - int __pyx_v_outnbelement; - PyArrayObject *__pyx_v_outmacd = 0; - double *__pyx_v_outmacd_data; - PyArrayObject *__pyx_v_outmacdsignal = 0; - double *__pyx_v_outmacdsignal_data; - PyArrayObject *__pyx_v_outmacdhist = 0; - double *__pyx_v_outmacdhist_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __Pyx_RefNannySetupContext("MACD", 0); - __Pyx_INCREF((PyObject *)__pyx_v_real); - - /* "talib/func.pyx":7946 - * np.ndarray outmacdhist - * double* outmacdhist_data - * 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/func.pyx":7947 - * double* outmacdhist_data - * 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__943, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7947, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 7947, __pyx_L1_error) - - /* "talib/func.pyx":7946 - * np.ndarray outmacdhist - * double* outmacdhist_data - * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("real is not double") - * if real.ndim != 1: - */ - } - - /* "talib/func.pyx":7948 - * 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/func.pyx":7949 - * 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__944, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7949, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 7949, __pyx_L1_error) - - /* "talib/func.pyx":7948 - * 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/func.pyx":7950 - * 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 = real.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":7951 - * raise Exception("real has wrong dimensions") - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< - * real_data = real.data - * length = real.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7951, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 7951, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":7950 - * 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 = real.data - */ - } - - /* "talib/func.pyx":7952 - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) - * real_data = real.data # <<<<<<<<<<<<<< - * length = real.shape[0] - * begidx = 0 - */ - __pyx_v_real_data = ((double *)__pyx_v_real->data); - - /* "talib/func.pyx":7953 - * real = PyArray_GETCONTIGUOUS(real) - * real_data = real.data - * length = real.shape[0] # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_v_length = (__pyx_v_real->dimensions[0]); - - /* "talib/func.pyx":7954 - * real_data = real.data - * length = real.shape[0] - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = real_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":7955 - * length = real.shape[0] - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = real_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":7956 - * begidx = 0 - * for i from 0 <= i < length: - * val = real_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_real_data[__pyx_v_i]); - - /* "talib/func.pyx":7957 - * for i from 0 <= i < length: - * val = real_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":7958 - * val = real_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L6_continue; - - /* "talib/func.pyx":7957 - * for i from 0 <= i < length: - * val = real_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":7959 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":7960 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L7_break; - __pyx_L6_continue:; - } - /*else*/ { - - /* "talib/func.pyx":7962 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_MACD_Lookback( fastperiod , slowperiod , signalperiod ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__945, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7962, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 7962, __pyx_L1_error) - } - __pyx_L7_break:; - - /* "talib/func.pyx":7963 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_MACD_Lookback( fastperiod , slowperiod , signalperiod ) - * outmacd = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":7964 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_MACD_Lookback( fastperiod , slowperiod , signalperiod ) # <<<<<<<<<<<<<< - * outmacd = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outmacd_data = outmacd.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_MACD_Lookback(__pyx_v_fastperiod, __pyx_v_slowperiod, __pyx_v_signalperiod)); - - /* "talib/func.pyx":7965 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_MACD_Lookback( fastperiod , slowperiod , signalperiod ) - * outmacd = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outmacd_data = outmacd.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); 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_v_outmacd = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":7966 - * lookback = begidx + lib.TA_MACD_Lookback( fastperiod , slowperiod , signalperiod ) - * outmacd = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outmacd_data = outmacd.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outmacd_data[i] = NaN - */ - __pyx_v_outmacd_data = ((double *)__pyx_v_outmacd->data); - - /* "talib/func.pyx":7967 - * outmacd = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outmacd_data = outmacd.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outmacd_data[i] = NaN - * outmacdsignal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":7968 - * outmacd_data = outmacd.data - * for i from 0 <= i < min(lookback, length): - * outmacd_data[i] = NaN # <<<<<<<<<<<<<< - * outmacdsignal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outmacdsignal_data = outmacdsignal.data - */ - (__pyx_v_outmacd_data[__pyx_v_i]) = __pyx_v_5talib_4func_NaN; - } - - /* "talib/func.pyx":7969 - * for i from 0 <= i < min(lookback, length): - * outmacd_data[i] = NaN - * outmacdsignal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outmacdsignal_data = outmacdsignal.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7969, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 7969, __pyx_L1_error) - __pyx_v_outmacdsignal = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":7970 - * outmacd_data[i] = NaN - * outmacdsignal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outmacdsignal_data = outmacdsignal.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outmacdsignal_data[i] = NaN - */ - __pyx_v_outmacdsignal_data = ((double *)__pyx_v_outmacdsignal->data); - - /* "talib/func.pyx":7971 - * outmacdsignal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outmacdsignal_data = outmacdsignal.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outmacdsignal_data[i] = NaN - * outmacdhist = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":7972 - * outmacdsignal_data = outmacdsignal.data - * for i from 0 <= i < min(lookback, length): - * outmacdsignal_data[i] = NaN # <<<<<<<<<<<<<< - * outmacdhist = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outmacdhist_data = outmacdhist.data - */ - (__pyx_v_outmacdsignal_data[__pyx_v_i]) = __pyx_v_5talib_4func_NaN; - } - - /* "talib/func.pyx":7973 - * for i from 0 <= i < min(lookback, length): - * outmacdsignal_data[i] = NaN - * outmacdhist = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outmacdhist_data = outmacdhist.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7973, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 7973, __pyx_L1_error) - __pyx_v_outmacdhist = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":7974 - * outmacdsignal_data[i] = NaN - * outmacdhist = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outmacdhist_data = outmacdhist.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outmacdhist_data[i] = NaN - */ - __pyx_v_outmacdhist_data = ((double *)__pyx_v_outmacdhist->data); - - /* "talib/func.pyx":7975 - * outmacdhist = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outmacdhist_data = outmacdhist.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outmacdhist_data[i] = NaN - * retCode = lib.TA_MACD( 0 , endidx , (real_data+begidx) , fastperiod , slowperiod , signalperiod , &outbegidx , &outnbelement , (outmacd_data+lookback) , (outmacdsignal_data+lookback) , (outmacdhist_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":7976 - * outmacdhist_data = outmacdhist.data - * for i from 0 <= i < min(lookback, length): - * outmacdhist_data[i] = NaN # <<<<<<<<<<<<<< - * retCode = lib.TA_MACD( 0 , endidx , (real_data+begidx) , fastperiod , slowperiod , signalperiod , &outbegidx , &outnbelement , (outmacd_data+lookback) , (outmacdsignal_data+lookback) , (outmacdhist_data+lookback) ) - * _ta_check_success("TA_MACD", retCode) - */ - (__pyx_v_outmacdhist_data[__pyx_v_i]) = __pyx_v_5talib_4func_NaN; - } - - /* "talib/func.pyx":7977 - * for i from 0 <= i < min(lookback, length): - * outmacdhist_data[i] = NaN - * retCode = lib.TA_MACD( 0 , endidx , (real_data+begidx) , fastperiod , slowperiod , signalperiod , &outbegidx , &outnbelement , (outmacd_data+lookback) , (outmacdsignal_data+lookback) , (outmacdhist_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_MACD", retCode) - * return outmacd , outmacdsignal , outmacdhist - */ - __pyx_v_retCode = TA_MACD(0, __pyx_v_endidx, ((double *)(__pyx_v_real_data + __pyx_v_begidx)), __pyx_v_fastperiod, __pyx_v_slowperiod, __pyx_v_signalperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outmacd_data + __pyx_v_lookback)), ((double *)(__pyx_v_outmacdsignal_data + __pyx_v_lookback)), ((double *)(__pyx_v_outmacdhist_data + __pyx_v_lookback))); - - /* "talib/func.pyx":7978 - * outmacdhist_data[i] = NaN - * retCode = lib.TA_MACD( 0 , endidx , (real_data+begidx) , fastperiod , slowperiod , signalperiod , &outbegidx , &outnbelement , (outmacd_data+lookback) , (outmacdsignal_data+lookback) , (outmacdhist_data+lookback) ) - * _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, 7978, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":7979 - * retCode = lib.TA_MACD( 0 , endidx , (real_data+begidx) , fastperiod , slowperiod , signalperiod , &outbegidx , &outnbelement , (outmacd_data+lookback) , (outmacdsignal_data+lookback) , (outmacdhist_data+lookback) ) - * _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 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 7979, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_INCREF(((PyObject *)__pyx_v_outmacd)); - __Pyx_GIVEREF(((PyObject *)__pyx_v_outmacd)); - PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_v_outmacd)); - __Pyx_INCREF(((PyObject *)__pyx_v_outmacdsignal)); - __Pyx_GIVEREF(((PyObject *)__pyx_v_outmacdsignal)); - PyTuple_SET_ITEM(__pyx_t_2, 1, ((PyObject *)__pyx_v_outmacdsignal)); - __Pyx_INCREF(((PyObject *)__pyx_v_outmacdhist)); - __Pyx_GIVEREF(((PyObject *)__pyx_v_outmacdhist)); - PyTuple_SET_ITEM(__pyx_t_2, 2, ((PyObject *)__pyx_v_outmacdhist)); - __pyx_r = __pyx_t_2; - __pyx_t_2 = 0; - goto __pyx_L0; - - /* "talib/func.pyx":7916 - * @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_AddTraceback("talib.func.MACD", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outmacd); - __Pyx_XDECREF((PyObject *)__pyx_v_outmacdsignal); - __Pyx_XDECREF((PyObject *)__pyx_v_outmacdhist); - __Pyx_XDECREF((PyObject *)__pyx_v_real); - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "talib/func.pyx":7983 - * @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_4func_209MACDEXT(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_209MACDEXT = {"MACDEXT", (PyCFunction)__pyx_pw_5talib_4func_209MACDEXT, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_208MACDEXT}; -static PyObject *__pyx_pw_5talib_4func_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, 7983, __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, 7983, __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, 7983, __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, 7983, __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, 7983, __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, 7983, __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, 7983, __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, 7983, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 7983, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_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; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - TA_RetCode __pyx_v_retCode; - double *__pyx_v_real_data; - int __pyx_v_outbegidx; - int __pyx_v_outnbelement; - PyArrayObject *__pyx_v_outmacd = 0; - double *__pyx_v_outmacd_data; - PyArrayObject *__pyx_v_outmacdsignal = 0; - double *__pyx_v_outmacdsignal_data; - PyArrayObject *__pyx_v_outmacdhist = 0; - double *__pyx_v_outmacdhist_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __Pyx_RefNannySetupContext("MACDEXT", 0); - __Pyx_INCREF((PyObject *)__pyx_v_real); - - /* "talib/func.pyx":8016 - * np.ndarray outmacdhist - * double* outmacdhist_data - * 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/func.pyx":8017 - * double* outmacdhist_data - * 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__946, 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/func.pyx":8016 - * np.ndarray outmacdhist - * double* outmacdhist_data - * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("real is not double") - * if real.ndim != 1: - */ - } - - /* "talib/func.pyx":8018 - * 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/func.pyx":8019 - * 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__947, 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/func.pyx":8018 - * 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/func.pyx":8020 - * 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 = real.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":8021 - * raise Exception("real has wrong dimensions") - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< - * real_data = real.data - * length = real.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); 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_real, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":8020 - * 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 = real.data - */ - } - - /* "talib/func.pyx":8022 - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) - * real_data = real.data # <<<<<<<<<<<<<< - * length = real.shape[0] - * begidx = 0 - */ - __pyx_v_real_data = ((double *)__pyx_v_real->data); - - /* "talib/func.pyx":8023 - * real = PyArray_GETCONTIGUOUS(real) - * real_data = real.data - * length = real.shape[0] # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_v_length = (__pyx_v_real->dimensions[0]); - - /* "talib/func.pyx":8024 - * real_data = real.data - * length = real.shape[0] - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = real_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":8025 - * length = real.shape[0] - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = real_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":8026 - * begidx = 0 - * for i from 0 <= i < length: - * val = real_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_real_data[__pyx_v_i]); - - /* "talib/func.pyx":8027 - * for i from 0 <= i < length: - * val = real_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":8028 - * val = real_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L6_continue; - - /* "talib/func.pyx":8027 - * for i from 0 <= i < length: - * val = real_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":8029 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":8030 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L7_break; - __pyx_L6_continue:; - } - /*else*/ { - - /* "talib/func.pyx":8032 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_MACDEXT_Lookback( fastperiod , fastmatype , slowperiod , slowmatype , signalperiod , signalmatype ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__948, 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) - } - __pyx_L7_break:; - - /* "talib/func.pyx":8033 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_MACDEXT_Lookback( fastperiod , fastmatype , slowperiod , slowmatype , signalperiod , signalmatype ) - * outmacd = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":8034 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_MACDEXT_Lookback( fastperiod , fastmatype , slowperiod , slowmatype , signalperiod , signalmatype ) # <<<<<<<<<<<<<< - * outmacd = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outmacd_data = outmacd.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_MACDEXT_Lookback(__pyx_v_fastperiod, __pyx_v_fastmatype, __pyx_v_slowperiod, __pyx_v_slowmatype, __pyx_v_signalperiod, __pyx_v_signalmatype)); - - /* "talib/func.pyx":8035 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_MACDEXT_Lookback( fastperiod , fastmatype , slowperiod , slowmatype , signalperiod , signalmatype ) - * outmacd = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outmacd_data = outmacd.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8035, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 8035, __pyx_L1_error) - __pyx_v_outmacd = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":8036 - * lookback = begidx + lib.TA_MACDEXT_Lookback( fastperiod , fastmatype , slowperiod , slowmatype , signalperiod , signalmatype ) - * outmacd = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outmacd_data = outmacd.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outmacd_data[i] = NaN - */ - __pyx_v_outmacd_data = ((double *)__pyx_v_outmacd->data); - - /* "talib/func.pyx":8037 - * outmacd = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outmacd_data = outmacd.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outmacd_data[i] = NaN - * outmacdsignal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":8038 - * outmacd_data = outmacd.data - * for i from 0 <= i < min(lookback, length): - * outmacd_data[i] = NaN # <<<<<<<<<<<<<< - * outmacdsignal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outmacdsignal_data = outmacdsignal.data - */ - (__pyx_v_outmacd_data[__pyx_v_i]) = __pyx_v_5talib_4func_NaN; - } - - /* "talib/func.pyx":8039 - * for i from 0 <= i < min(lookback, length): - * outmacd_data[i] = NaN - * outmacdsignal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outmacdsignal_data = outmacdsignal.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8039, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 8039, __pyx_L1_error) - __pyx_v_outmacdsignal = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":8040 - * outmacd_data[i] = NaN - * outmacdsignal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outmacdsignal_data = outmacdsignal.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outmacdsignal_data[i] = NaN - */ - __pyx_v_outmacdsignal_data = ((double *)__pyx_v_outmacdsignal->data); - - /* "talib/func.pyx":8041 - * outmacdsignal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outmacdsignal_data = outmacdsignal.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outmacdsignal_data[i] = NaN - * outmacdhist = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":8042 - * outmacdsignal_data = outmacdsignal.data - * for i from 0 <= i < min(lookback, length): - * outmacdsignal_data[i] = NaN # <<<<<<<<<<<<<< - * outmacdhist = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outmacdhist_data = outmacdhist.data - */ - (__pyx_v_outmacdsignal_data[__pyx_v_i]) = __pyx_v_5talib_4func_NaN; - } - - /* "talib/func.pyx":8043 - * for i from 0 <= i < min(lookback, length): - * outmacdsignal_data[i] = NaN - * outmacdhist = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outmacdhist_data = outmacdhist.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8043, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 8043, __pyx_L1_error) - __pyx_v_outmacdhist = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":8044 - * outmacdsignal_data[i] = NaN - * outmacdhist = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outmacdhist_data = outmacdhist.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outmacdhist_data[i] = NaN - */ - __pyx_v_outmacdhist_data = ((double *)__pyx_v_outmacdhist->data); - - /* "talib/func.pyx":8045 - * outmacdhist = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outmacdhist_data = outmacdhist.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outmacdhist_data[i] = NaN - * retCode = lib.TA_MACDEXT( 0 , endidx , (real_data+begidx) , fastperiod , fastmatype , slowperiod , slowmatype , signalperiod , signalmatype , &outbegidx , &outnbelement , (outmacd_data+lookback) , (outmacdsignal_data+lookback) , (outmacdhist_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":8046 - * outmacdhist_data = outmacdhist.data - * for i from 0 <= i < min(lookback, length): - * outmacdhist_data[i] = NaN # <<<<<<<<<<<<<< - * retCode = lib.TA_MACDEXT( 0 , endidx , (real_data+begidx) , fastperiod , fastmatype , slowperiod , slowmatype , signalperiod , signalmatype , &outbegidx , &outnbelement , (outmacd_data+lookback) , (outmacdsignal_data+lookback) , (outmacdhist_data+lookback) ) - * _ta_check_success("TA_MACDEXT", retCode) - */ - (__pyx_v_outmacdhist_data[__pyx_v_i]) = __pyx_v_5talib_4func_NaN; - } - - /* "talib/func.pyx":8047 - * for i from 0 <= i < min(lookback, length): - * outmacdhist_data[i] = NaN - * retCode = lib.TA_MACDEXT( 0 , endidx , (real_data+begidx) , fastperiod , fastmatype , slowperiod , slowmatype , signalperiod , signalmatype , &outbegidx , &outnbelement , (outmacd_data+lookback) , (outmacdsignal_data+lookback) , (outmacdhist_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_MACDEXT", retCode) - * return outmacd , outmacdsignal , outmacdhist - */ - __pyx_v_retCode = TA_MACDEXT(0, __pyx_v_endidx, ((double *)(__pyx_v_real_data + __pyx_v_begidx)), __pyx_v_fastperiod, __pyx_v_fastmatype, __pyx_v_slowperiod, __pyx_v_slowmatype, __pyx_v_signalperiod, __pyx_v_signalmatype, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outmacd_data + __pyx_v_lookback)), ((double *)(__pyx_v_outmacdsignal_data + __pyx_v_lookback)), ((double *)(__pyx_v_outmacdhist_data + __pyx_v_lookback))); - - /* "talib/func.pyx":8048 - * outmacdhist_data[i] = NaN - * retCode = lib.TA_MACDEXT( 0 , endidx , (real_data+begidx) , fastperiod , fastmatype , slowperiod , slowmatype , signalperiod , signalmatype , &outbegidx , &outnbelement , (outmacd_data+lookback) , (outmacdsignal_data+lookback) , (outmacdhist_data+lookback) ) - * _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, 8048, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":8049 - * retCode = lib.TA_MACDEXT( 0 , endidx , (real_data+begidx) , fastperiod , fastmatype , slowperiod , slowmatype , signalperiod , signalmatype , &outbegidx , &outnbelement , (outmacd_data+lookback) , (outmacdsignal_data+lookback) , (outmacdhist_data+lookback) ) - * _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 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8049, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_INCREF(((PyObject *)__pyx_v_outmacd)); - __Pyx_GIVEREF(((PyObject *)__pyx_v_outmacd)); - PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_v_outmacd)); - __Pyx_INCREF(((PyObject *)__pyx_v_outmacdsignal)); - __Pyx_GIVEREF(((PyObject *)__pyx_v_outmacdsignal)); - PyTuple_SET_ITEM(__pyx_t_2, 1, ((PyObject *)__pyx_v_outmacdsignal)); - __Pyx_INCREF(((PyObject *)__pyx_v_outmacdhist)); - __Pyx_GIVEREF(((PyObject *)__pyx_v_outmacdhist)); - PyTuple_SET_ITEM(__pyx_t_2, 2, ((PyObject *)__pyx_v_outmacdhist)); - __pyx_r = __pyx_t_2; - __pyx_t_2 = 0; - goto __pyx_L0; - - /* "talib/func.pyx":7983 - * @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_AddTraceback("talib.func.MACDEXT", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outmacd); - __Pyx_XDECREF((PyObject *)__pyx_v_outmacdsignal); - __Pyx_XDECREF((PyObject *)__pyx_v_outmacdhist); - __Pyx_XDECREF((PyObject *)__pyx_v_real); - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "talib/func.pyx":8053 - * @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_4func_211MACDFIX(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_211MACDFIX = {"MACDFIX", (PyCFunction)__pyx_pw_5talib_4func_211MACDFIX, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_210MACDFIX}; -static PyObject *__pyx_pw_5talib_4func_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, 8053, __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, 8053, __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, 8053, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 8053, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_210MACDFIX(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_signalperiod) { - npy_intp __pyx_v_length; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - TA_RetCode __pyx_v_retCode; - double *__pyx_v_real_data; - int __pyx_v_outbegidx; - int __pyx_v_outnbelement; - PyArrayObject *__pyx_v_outmacd = 0; - double *__pyx_v_outmacd_data; - PyArrayObject *__pyx_v_outmacdsignal = 0; - double *__pyx_v_outmacdsignal_data; - PyArrayObject *__pyx_v_outmacdhist = 0; - double *__pyx_v_outmacdhist_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __Pyx_RefNannySetupContext("MACDFIX", 0); - __Pyx_INCREF((PyObject *)__pyx_v_real); - - /* "talib/func.pyx":8081 - * np.ndarray outmacdhist - * double* outmacdhist_data - * 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/func.pyx":8082 - * double* outmacdhist_data - * 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__949, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8082, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 8082, __pyx_L1_error) - - /* "talib/func.pyx":8081 - * np.ndarray outmacdhist - * double* outmacdhist_data - * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("real is not double") - * if real.ndim != 1: - */ - } - - /* "talib/func.pyx":8083 - * 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/func.pyx":8084 - * 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__950, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8084, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 8084, __pyx_L1_error) - - /* "talib/func.pyx":8083 - * 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/func.pyx":8085 - * 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 = real.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":8086 - * raise Exception("real has wrong dimensions") - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< - * real_data = real.data - * length = real.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8086, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 8086, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":8085 - * 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 = real.data - */ - } - - /* "talib/func.pyx":8087 - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) - * real_data = real.data # <<<<<<<<<<<<<< - * length = real.shape[0] - * begidx = 0 - */ - __pyx_v_real_data = ((double *)__pyx_v_real->data); - - /* "talib/func.pyx":8088 - * real = PyArray_GETCONTIGUOUS(real) - * real_data = real.data - * length = real.shape[0] # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_v_length = (__pyx_v_real->dimensions[0]); - - /* "talib/func.pyx":8089 - * real_data = real.data - * length = real.shape[0] - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = real_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":8090 - * length = real.shape[0] - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = real_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":8091 - * begidx = 0 - * for i from 0 <= i < length: - * val = real_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_real_data[__pyx_v_i]); - - /* "talib/func.pyx":8092 - * for i from 0 <= i < length: - * val = real_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":8093 - * val = real_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L6_continue; - - /* "talib/func.pyx":8092 - * for i from 0 <= i < length: - * val = real_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":8094 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":8095 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L7_break; - __pyx_L6_continue:; - } - /*else*/ { - - /* "talib/func.pyx":8097 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_MACDFIX_Lookback( signalperiod ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__951, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8097, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 8097, __pyx_L1_error) - } - __pyx_L7_break:; - - /* "talib/func.pyx":8098 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_MACDFIX_Lookback( signalperiod ) - * outmacd = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":8099 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_MACDFIX_Lookback( signalperiod ) # <<<<<<<<<<<<<< - * outmacd = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outmacd_data = outmacd.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_MACDFIX_Lookback(__pyx_v_signalperiod)); - - /* "talib/func.pyx":8100 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_MACDFIX_Lookback( signalperiod ) - * outmacd = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outmacd_data = outmacd.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8100, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 8100, __pyx_L1_error) - __pyx_v_outmacd = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":8101 - * lookback = begidx + lib.TA_MACDFIX_Lookback( signalperiod ) - * outmacd = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outmacd_data = outmacd.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outmacd_data[i] = NaN - */ - __pyx_v_outmacd_data = ((double *)__pyx_v_outmacd->data); - - /* "talib/func.pyx":8102 - * outmacd = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outmacd_data = outmacd.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outmacd_data[i] = NaN - * outmacdsignal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":8103 - * outmacd_data = outmacd.data - * for i from 0 <= i < min(lookback, length): - * outmacd_data[i] = NaN # <<<<<<<<<<<<<< - * outmacdsignal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outmacdsignal_data = outmacdsignal.data - */ - (__pyx_v_outmacd_data[__pyx_v_i]) = __pyx_v_5talib_4func_NaN; - } - - /* "talib/func.pyx":8104 - * for i from 0 <= i < min(lookback, length): - * outmacd_data[i] = NaN - * outmacdsignal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outmacdsignal_data = outmacdsignal.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8104, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 8104, __pyx_L1_error) - __pyx_v_outmacdsignal = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":8105 - * outmacd_data[i] = NaN - * outmacdsignal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outmacdsignal_data = outmacdsignal.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outmacdsignal_data[i] = NaN - */ - __pyx_v_outmacdsignal_data = ((double *)__pyx_v_outmacdsignal->data); - - /* "talib/func.pyx":8106 - * outmacdsignal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outmacdsignal_data = outmacdsignal.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outmacdsignal_data[i] = NaN - * outmacdhist = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":8107 - * outmacdsignal_data = outmacdsignal.data - * for i from 0 <= i < min(lookback, length): - * outmacdsignal_data[i] = NaN # <<<<<<<<<<<<<< - * outmacdhist = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outmacdhist_data = outmacdhist.data - */ - (__pyx_v_outmacdsignal_data[__pyx_v_i]) = __pyx_v_5talib_4func_NaN; - } - - /* "talib/func.pyx":8108 - * for i from 0 <= i < min(lookback, length): - * outmacdsignal_data[i] = NaN - * outmacdhist = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outmacdhist_data = outmacdhist.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8108, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 8108, __pyx_L1_error) - __pyx_v_outmacdhist = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":8109 - * outmacdsignal_data[i] = NaN - * outmacdhist = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outmacdhist_data = outmacdhist.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outmacdhist_data[i] = NaN - */ - __pyx_v_outmacdhist_data = ((double *)__pyx_v_outmacdhist->data); - - /* "talib/func.pyx":8110 - * outmacdhist = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outmacdhist_data = outmacdhist.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outmacdhist_data[i] = NaN - * retCode = lib.TA_MACDFIX( 0 , endidx , (real_data+begidx) , signalperiod , &outbegidx , &outnbelement , (outmacd_data+lookback) , (outmacdsignal_data+lookback) , (outmacdhist_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":8111 - * outmacdhist_data = outmacdhist.data - * for i from 0 <= i < min(lookback, length): - * outmacdhist_data[i] = NaN # <<<<<<<<<<<<<< - * retCode = lib.TA_MACDFIX( 0 , endidx , (real_data+begidx) , signalperiod , &outbegidx , &outnbelement , (outmacd_data+lookback) , (outmacdsignal_data+lookback) , (outmacdhist_data+lookback) ) - * _ta_check_success("TA_MACDFIX", retCode) - */ - (__pyx_v_outmacdhist_data[__pyx_v_i]) = __pyx_v_5talib_4func_NaN; - } - - /* "talib/func.pyx":8112 - * for i from 0 <= i < min(lookback, length): - * outmacdhist_data[i] = NaN - * retCode = lib.TA_MACDFIX( 0 , endidx , (real_data+begidx) , signalperiod , &outbegidx , &outnbelement , (outmacd_data+lookback) , (outmacdsignal_data+lookback) , (outmacdhist_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_MACDFIX", retCode) - * return outmacd , outmacdsignal , outmacdhist - */ - __pyx_v_retCode = TA_MACDFIX(0, __pyx_v_endidx, ((double *)(__pyx_v_real_data + __pyx_v_begidx)), __pyx_v_signalperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outmacd_data + __pyx_v_lookback)), ((double *)(__pyx_v_outmacdsignal_data + __pyx_v_lookback)), ((double *)(__pyx_v_outmacdhist_data + __pyx_v_lookback))); - - /* "talib/func.pyx":8113 - * outmacdhist_data[i] = NaN - * retCode = lib.TA_MACDFIX( 0 , endidx , (real_data+begidx) , signalperiod , &outbegidx , &outnbelement , (outmacd_data+lookback) , (outmacdsignal_data+lookback) , (outmacdhist_data+lookback) ) - * _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, 8113, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":8114 - * retCode = lib.TA_MACDFIX( 0 , endidx , (real_data+begidx) , signalperiod , &outbegidx , &outnbelement , (outmacd_data+lookback) , (outmacdsignal_data+lookback) , (outmacdhist_data+lookback) ) - * _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 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8114, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_INCREF(((PyObject *)__pyx_v_outmacd)); - __Pyx_GIVEREF(((PyObject *)__pyx_v_outmacd)); - PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_v_outmacd)); - __Pyx_INCREF(((PyObject *)__pyx_v_outmacdsignal)); - __Pyx_GIVEREF(((PyObject *)__pyx_v_outmacdsignal)); - PyTuple_SET_ITEM(__pyx_t_2, 1, ((PyObject *)__pyx_v_outmacdsignal)); - __Pyx_INCREF(((PyObject *)__pyx_v_outmacdhist)); - __Pyx_GIVEREF(((PyObject *)__pyx_v_outmacdhist)); - PyTuple_SET_ITEM(__pyx_t_2, 2, ((PyObject *)__pyx_v_outmacdhist)); - __pyx_r = __pyx_t_2; - __pyx_t_2 = 0; - goto __pyx_L0; - - /* "talib/func.pyx":8053 - * @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_AddTraceback("talib.func.MACDFIX", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outmacd); - __Pyx_XDECREF((PyObject *)__pyx_v_outmacdsignal); - __Pyx_XDECREF((PyObject *)__pyx_v_outmacdhist); - __Pyx_XDECREF((PyObject *)__pyx_v_real); - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "talib/func.pyx":8118 - * @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_4func_213MAMA(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_213MAMA = {"MAMA", (PyCFunction)__pyx_pw_5talib_4func_213MAMA, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_212MAMA}; -static PyObject *__pyx_pw_5talib_4func_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, 8118, __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, 8118, __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, 8118, __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, 8118, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 8118, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_212MAMA(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, double __pyx_v_fastlimit, double __pyx_v_slowlimit) { - npy_intp __pyx_v_length; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - TA_RetCode __pyx_v_retCode; - double *__pyx_v_real_data; - int __pyx_v_outbegidx; - int __pyx_v_outnbelement; - PyArrayObject *__pyx_v_outmama = 0; - double *__pyx_v_outmama_data; - PyArrayObject *__pyx_v_outfama = 0; - double *__pyx_v_outfama_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __Pyx_RefNannySetupContext("MAMA", 0); - __Pyx_INCREF((PyObject *)__pyx_v_real); - - /* "talib/func.pyx":8144 - * np.ndarray outfama - * double* outfama_data - * 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/func.pyx":8145 - * double* outfama_data - * 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__952, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8145, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 8145, __pyx_L1_error) - - /* "talib/func.pyx":8144 - * np.ndarray outfama - * double* outfama_data - * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("real is not double") - * if real.ndim != 1: - */ - } - - /* "talib/func.pyx":8146 - * 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/func.pyx":8147 - * 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__953, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8147, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 8147, __pyx_L1_error) - - /* "talib/func.pyx":8146 - * 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/func.pyx":8148 - * 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 = real.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":8149 - * raise Exception("real has wrong dimensions") - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< - * real_data = real.data - * length = real.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8149, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 8149, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":8148 - * 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 = real.data - */ - } - - /* "talib/func.pyx":8150 - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) - * real_data = real.data # <<<<<<<<<<<<<< - * length = real.shape[0] - * begidx = 0 - */ - __pyx_v_real_data = ((double *)__pyx_v_real->data); - - /* "talib/func.pyx":8151 - * real = PyArray_GETCONTIGUOUS(real) - * real_data = real.data - * length = real.shape[0] # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_v_length = (__pyx_v_real->dimensions[0]); - - /* "talib/func.pyx":8152 - * real_data = real.data - * length = real.shape[0] - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = real_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":8153 - * length = real.shape[0] - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = real_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":8154 - * begidx = 0 - * for i from 0 <= i < length: - * val = real_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_real_data[__pyx_v_i]); - - /* "talib/func.pyx":8155 - * for i from 0 <= i < length: - * val = real_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":8156 - * val = real_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L6_continue; - - /* "talib/func.pyx":8155 - * for i from 0 <= i < length: - * val = real_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":8157 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":8158 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L7_break; - __pyx_L6_continue:; - } - /*else*/ { - - /* "talib/func.pyx":8160 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_MAMA_Lookback( fastlimit , slowlimit ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__954, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8160, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 8160, __pyx_L1_error) - } - __pyx_L7_break:; - - /* "talib/func.pyx":8161 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_MAMA_Lookback( fastlimit , slowlimit ) - * outmama = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":8162 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_MAMA_Lookback( fastlimit , slowlimit ) # <<<<<<<<<<<<<< - * outmama = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outmama_data = outmama.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_MAMA_Lookback(__pyx_v_fastlimit, __pyx_v_slowlimit)); - - /* "talib/func.pyx":8163 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_MAMA_Lookback( fastlimit , slowlimit ) - * outmama = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outmama_data = outmama.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8163, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 8163, __pyx_L1_error) - __pyx_v_outmama = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":8164 - * lookback = begidx + lib.TA_MAMA_Lookback( fastlimit , slowlimit ) - * outmama = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outmama_data = outmama.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outmama_data[i] = NaN - */ - __pyx_v_outmama_data = ((double *)__pyx_v_outmama->data); - - /* "talib/func.pyx":8165 - * outmama = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outmama_data = outmama.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outmama_data[i] = NaN - * outfama = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":8166 - * outmama_data = outmama.data - * for i from 0 <= i < min(lookback, length): - * outmama_data[i] = NaN # <<<<<<<<<<<<<< - * outfama = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outfama_data = outfama.data - */ - (__pyx_v_outmama_data[__pyx_v_i]) = __pyx_v_5talib_4func_NaN; - } - - /* "talib/func.pyx":8167 - * for i from 0 <= i < min(lookback, length): - * outmama_data[i] = NaN - * outfama = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outfama_data = outfama.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8167, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 8167, __pyx_L1_error) - __pyx_v_outfama = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":8168 - * outmama_data[i] = NaN - * outfama = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outfama_data = outfama.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outfama_data[i] = NaN - */ - __pyx_v_outfama_data = ((double *)__pyx_v_outfama->data); - - /* "talib/func.pyx":8169 - * outfama = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outfama_data = outfama.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outfama_data[i] = NaN - * retCode = lib.TA_MAMA( 0 , endidx , (real_data+begidx) , fastlimit , slowlimit , &outbegidx , &outnbelement , (outmama_data+lookback) , (outfama_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":8170 - * outfama_data = outfama.data - * for i from 0 <= i < min(lookback, length): - * outfama_data[i] = NaN # <<<<<<<<<<<<<< - * retCode = lib.TA_MAMA( 0 , endidx , (real_data+begidx) , fastlimit , slowlimit , &outbegidx , &outnbelement , (outmama_data+lookback) , (outfama_data+lookback) ) - * _ta_check_success("TA_MAMA", retCode) - */ - (__pyx_v_outfama_data[__pyx_v_i]) = __pyx_v_5talib_4func_NaN; - } - - /* "talib/func.pyx":8171 - * for i from 0 <= i < min(lookback, length): - * outfama_data[i] = NaN - * retCode = lib.TA_MAMA( 0 , endidx , (real_data+begidx) , fastlimit , slowlimit , &outbegidx , &outnbelement , (outmama_data+lookback) , (outfama_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_MAMA", retCode) - * return outmama , outfama - */ - __pyx_v_retCode = TA_MAMA(0, __pyx_v_endidx, ((double *)(__pyx_v_real_data + __pyx_v_begidx)), __pyx_v_fastlimit, __pyx_v_slowlimit, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outmama_data + __pyx_v_lookback)), ((double *)(__pyx_v_outfama_data + __pyx_v_lookback))); - - /* "talib/func.pyx":8172 - * outfama_data[i] = NaN - * retCode = lib.TA_MAMA( 0 , endidx , (real_data+begidx) , fastlimit , slowlimit , &outbegidx , &outnbelement , (outmama_data+lookback) , (outfama_data+lookback) ) - * _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, 8172, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":8173 - * retCode = lib.TA_MAMA( 0 , endidx , (real_data+begidx) , fastlimit , slowlimit , &outbegidx , &outnbelement , (outmama_data+lookback) , (outfama_data+lookback) ) - * _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 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8173, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_INCREF(((PyObject *)__pyx_v_outmama)); - __Pyx_GIVEREF(((PyObject *)__pyx_v_outmama)); - PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_v_outmama)); - __Pyx_INCREF(((PyObject *)__pyx_v_outfama)); - __Pyx_GIVEREF(((PyObject *)__pyx_v_outfama)); - PyTuple_SET_ITEM(__pyx_t_2, 1, ((PyObject *)__pyx_v_outfama)); - __pyx_r = __pyx_t_2; - __pyx_t_2 = 0; - goto __pyx_L0; - - /* "talib/func.pyx":8118 - * @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_AddTraceback("talib.func.MAMA", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outmama); - __Pyx_XDECREF((PyObject *)__pyx_v_outfama); - __Pyx_XDECREF((PyObject *)__pyx_v_real); - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "talib/func.pyx":8177 - * @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_4func_215MAVP(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_215MAVP = {"MAVP", (PyCFunction)__pyx_pw_5talib_4func_215MAVP, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_214MAVP}; -static PyObject *__pyx_pw_5talib_4func_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, 8177, __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, 8177, __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, 8177, __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, 8177, __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, 8177, __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, 8177, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 8177, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_periods), __pyx_ptype_5numpy_ndarray, 0, "periods", 0))) __PYX_ERR(0, 8177, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_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; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - TA_RetCode __pyx_v_retCode; - double *__pyx_v_real_data; - double *__pyx_v_periods_data; - int __pyx_v_outbegidx; - int __pyx_v_outnbelement; - PyArrayObject *__pyx_v_outreal = 0; - double *__pyx_v_outreal_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __Pyx_RefNannySetupContext("MAVP", 0); - __Pyx_INCREF((PyObject *)__pyx_v_real); - __Pyx_INCREF((PyObject *)__pyx_v_periods); - - /* "talib/func.pyx":8203 - * np.ndarray outreal - * double* outreal_data - * 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/func.pyx":8204 - * double* outreal_data - * 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__955, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8204, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 8204, __pyx_L1_error) - - /* "talib/func.pyx":8203 - * np.ndarray outreal - * double* outreal_data - * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("real is not double") - * if real.ndim != 1: - */ - } - - /* "talib/func.pyx":8205 - * 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/func.pyx":8206 - * 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__956, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8206, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 8206, __pyx_L1_error) - - /* "talib/func.pyx":8205 - * 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/func.pyx":8207 - * 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 = real.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":8208 - * raise Exception("real has wrong dimensions") - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< - * real_data = 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, 8208, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 8208, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":8207 - * 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 = real.data - */ - } - - /* "talib/func.pyx":8209 - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) - * real_data = 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/func.pyx":8210 - * real = PyArray_GETCONTIGUOUS(real) - * real_data = 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/func.pyx":8211 - * real_data = 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__957, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8211, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 8211, __pyx_L1_error) - - /* "talib/func.pyx":8210 - * real = PyArray_GETCONTIGUOUS(real) - * real_data = real.data - * if PyArray_TYPE(periods) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("periods is not double") - * if periods.ndim != 1: - */ - } - - /* "talib/func.pyx":8212 - * 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/func.pyx":8213 - * 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__958, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8213, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 8213, __pyx_L1_error) - - /* "talib/func.pyx":8212 - * 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/func.pyx":8214 - * 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 = periods.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_periods) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":8215 - * raise Exception("periods has wrong dimensions") - * if not (PyArray_FLAGS(periods) & np.NPY_C_CONTIGUOUS): - * periods = PyArray_GETCONTIGUOUS(periods) # <<<<<<<<<<<<<< - * periods_data = periods.data - * length = real.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_periods); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8215, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 8215, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_periods, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":8214 - * 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 = periods.data - */ - } - - /* "talib/func.pyx":8216 - * if not (PyArray_FLAGS(periods) & np.NPY_C_CONTIGUOUS): - * periods = PyArray_GETCONTIGUOUS(periods) - * periods_data = periods.data # <<<<<<<<<<<<<< - * length = real.shape[0] - * if length != periods.shape[0]: - */ - __pyx_v_periods_data = ((double *)__pyx_v_periods->data); - - /* "talib/func.pyx":8217 - * periods = PyArray_GETCONTIGUOUS(periods) - * periods_data = 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/func.pyx":8218 - * periods_data = periods.data - * length = real.shape[0] - * if length != periods.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - __pyx_t_1 = ((__pyx_v_length != (__pyx_v_periods->dimensions[0])) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":8219 - * length = real.shape[0] - * if length != periods.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__959, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8219, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 8219, __pyx_L1_error) - - /* "talib/func.pyx":8218 - * periods_data = periods.data - * length = real.shape[0] - * if length != periods.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - } - - /* "talib/func.pyx":8220 - * if length != periods.shape[0]: - * raise Exception("input lengths are different") - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = real_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":8221 - * raise Exception("input lengths are different") - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = real_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":8222 - * begidx = 0 - * for i from 0 <= i < length: - * val = real_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_real_data[__pyx_v_i]); - - /* "talib/func.pyx":8223 - * for i from 0 <= i < length: - * val = real_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = periods_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":8224 - * val = real_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = periods_data[i] - * if val != val: - */ - goto __pyx_L10_continue; - - /* "talib/func.pyx":8223 - * for i from 0 <= i < length: - * val = real_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = periods_data[i] - */ - } - - /* "talib/func.pyx":8225 - * if val != val: - * continue - * val = periods_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_periods_data[__pyx_v_i]); - - /* "talib/func.pyx":8226 - * continue - * val = periods_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":8227 - * val = periods_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L10_continue; - - /* "talib/func.pyx":8226 - * continue - * val = periods_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":8228 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":8229 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L11_break; - __pyx_L10_continue:; - } - /*else*/ { - - /* "talib/func.pyx":8231 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_MAVP_Lookback( minperiod , maxperiod , matype ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__960, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8231, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 8231, __pyx_L1_error) - } - __pyx_L11_break:; - - /* "talib/func.pyx":8232 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_MAVP_Lookback( minperiod , maxperiod , matype ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":8233 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_MAVP_Lookback( minperiod , maxperiod , matype ) # <<<<<<<<<<<<<< - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_MAVP_Lookback(__pyx_v_minperiod, __pyx_v_maxperiod, __pyx_v_matype)); - - /* "talib/func.pyx":8234 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_MAVP_Lookback( minperiod , maxperiod , matype ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8234, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 8234, __pyx_L1_error) - __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":8235 - * lookback = begidx + lib.TA_MAVP_Lookback( minperiod , maxperiod , matype ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - */ - __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); - - /* "talib/func.pyx":8236 - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outreal_data[i] = NaN - * retCode = lib.TA_MAVP( 0 , endidx , (real_data+begidx) , (periods_data+begidx) , minperiod , maxperiod , matype , &outbegidx , &outnbelement , (outreal_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":8237 - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN # <<<<<<<<<<<<<< - * retCode = lib.TA_MAVP( 0 , endidx , (real_data+begidx) , (periods_data+begidx) , minperiod , maxperiod , matype , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_MAVP", retCode) - */ - (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_4func_NaN; - } - - /* "talib/func.pyx":8238 - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - * retCode = lib.TA_MAVP( 0 , endidx , (real_data+begidx) , (periods_data+begidx) , minperiod , maxperiod , matype , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_MAVP", retCode) - * return outreal - */ - __pyx_v_retCode = TA_MAVP(0, __pyx_v_endidx, ((double *)(__pyx_v_real_data + __pyx_v_begidx)), ((double *)(__pyx_v_periods_data + __pyx_v_begidx)), __pyx_v_minperiod, __pyx_v_maxperiod, __pyx_v_matype, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); - - /* "talib/func.pyx":8239 - * outreal_data[i] = NaN - * retCode = lib.TA_MAVP( 0 , endidx , (real_data+begidx) , (periods_data+begidx) , minperiod , maxperiod , matype , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _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, 8239, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":8240 - * retCode = lib.TA_MAVP( 0 , endidx , (real_data+begidx) , (periods_data+begidx) , minperiod , maxperiod , matype , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_MAVP", retCode) - * return outreal # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); - __pyx_r = ((PyObject *)__pyx_v_outreal); - goto __pyx_L0; - - /* "talib/func.pyx":8177 - * @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.func.MAVP", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outreal); - __Pyx_XDECREF((PyObject *)__pyx_v_real); - __Pyx_XDECREF((PyObject *)__pyx_v_periods); - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "talib/func.pyx":8244 - * @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_4func_217MAX(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_217MAX = {"MAX", (PyCFunction)__pyx_pw_5talib_4func_217MAX, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_216MAX}; -static PyObject *__pyx_pw_5talib_4func_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, 8244, __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, 8244, __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, 8244, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 8244, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_216MAX(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod) { - npy_intp __pyx_v_length; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - TA_RetCode __pyx_v_retCode; - double *__pyx_v_real_data; - int __pyx_v_outbegidx; - int __pyx_v_outnbelement; - PyArrayObject *__pyx_v_outreal = 0; - double *__pyx_v_outreal_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __Pyx_RefNannySetupContext("MAX", 0); - __Pyx_INCREF((PyObject *)__pyx_v_real); - - /* "talib/func.pyx":8266 - * np.ndarray outreal - * double* outreal_data - * 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/func.pyx":8267 - * double* outreal_data - * 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__961, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8267, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 8267, __pyx_L1_error) - - /* "talib/func.pyx":8266 - * np.ndarray outreal - * double* outreal_data - * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("real is not double") - * if real.ndim != 1: - */ - } - - /* "talib/func.pyx":8268 - * 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/func.pyx":8269 - * 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__962, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8269, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 8269, __pyx_L1_error) - - /* "talib/func.pyx":8268 - * 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/func.pyx":8270 - * 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 = real.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":8271 - * raise Exception("real has wrong dimensions") - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< - * real_data = real.data - * length = real.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8271, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 8271, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":8270 - * 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 = real.data - */ - } - - /* "talib/func.pyx":8272 - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) - * real_data = real.data # <<<<<<<<<<<<<< - * length = real.shape[0] - * begidx = 0 - */ - __pyx_v_real_data = ((double *)__pyx_v_real->data); - - /* "talib/func.pyx":8273 - * real = PyArray_GETCONTIGUOUS(real) - * real_data = real.data - * length = real.shape[0] # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_v_length = (__pyx_v_real->dimensions[0]); - - /* "talib/func.pyx":8274 - * real_data = real.data - * length = real.shape[0] - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = real_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":8275 - * length = real.shape[0] - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = real_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":8276 - * begidx = 0 - * for i from 0 <= i < length: - * val = real_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_real_data[__pyx_v_i]); - - /* "talib/func.pyx":8277 - * for i from 0 <= i < length: - * val = real_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":8278 - * val = real_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L6_continue; - - /* "talib/func.pyx":8277 - * for i from 0 <= i < length: - * val = real_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":8279 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":8280 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L7_break; - __pyx_L6_continue:; - } - /*else*/ { - - /* "talib/func.pyx":8282 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_MAX_Lookback( timeperiod ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__963, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8282, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 8282, __pyx_L1_error) - } - __pyx_L7_break:; - - /* "talib/func.pyx":8283 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_MAX_Lookback( timeperiod ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":8284 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_MAX_Lookback( timeperiod ) # <<<<<<<<<<<<<< - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_MAX_Lookback(__pyx_v_timeperiod)); - - /* "talib/func.pyx":8285 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_MAX_Lookback( timeperiod ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8285, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 8285, __pyx_L1_error) - __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":8286 - * lookback = begidx + lib.TA_MAX_Lookback( timeperiod ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - */ - __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); - - /* "talib/func.pyx":8287 - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outreal_data[i] = NaN - * retCode = lib.TA_MAX( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":8288 - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN # <<<<<<<<<<<<<< - * retCode = lib.TA_MAX( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_MAX", retCode) - */ - (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_4func_NaN; - } - - /* "talib/func.pyx":8289 - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - * retCode = lib.TA_MAX( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_MAX", retCode) - * return outreal - */ - __pyx_v_retCode = TA_MAX(0, __pyx_v_endidx, ((double *)(__pyx_v_real_data + __pyx_v_begidx)), __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); - - /* "talib/func.pyx":8290 - * outreal_data[i] = NaN - * retCode = lib.TA_MAX( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _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, 8290, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":8291 - * retCode = lib.TA_MAX( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_MAX", retCode) - * return outreal # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); - __pyx_r = ((PyObject *)__pyx_v_outreal); - goto __pyx_L0; - - /* "talib/func.pyx":8244 - * @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.func.MAX", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outreal); - __Pyx_XDECREF((PyObject *)__pyx_v_real); - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "talib/func.pyx":8295 - * @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_4func_219MAXINDEX(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_219MAXINDEX = {"MAXINDEX", (PyCFunction)__pyx_pw_5talib_4func_219MAXINDEX, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_218MAXINDEX}; -static PyObject *__pyx_pw_5talib_4func_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, 8295, __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, 8295, __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, 8295, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 8295, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_218MAXINDEX(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod) { - npy_intp __pyx_v_length; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - TA_RetCode __pyx_v_retCode; - double *__pyx_v_real_data; - int __pyx_v_outbegidx; - int __pyx_v_outnbelement; - PyArrayObject *__pyx_v_outinteger = 0; - int *__pyx_v_outinteger_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __Pyx_RefNannySetupContext("MAXINDEX", 0); - __Pyx_INCREF((PyObject *)__pyx_v_real); - - /* "talib/func.pyx":8317 - * np.ndarray outinteger - * int* outinteger_data - * 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/func.pyx":8318 - * int* outinteger_data - * 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, 8318, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 8318, __pyx_L1_error) - - /* "talib/func.pyx":8317 - * np.ndarray outinteger - * int* outinteger_data - * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("real is not double") - * if real.ndim != 1: - */ - } - - /* "talib/func.pyx":8319 - * 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/func.pyx":8320 - * 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, 8320, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 8320, __pyx_L1_error) - - /* "talib/func.pyx":8319 - * 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/func.pyx":8321 - * 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 = real.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":8322 - * raise Exception("real has wrong dimensions") - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< - * real_data = real.data - * length = real.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8322, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 8322, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":8321 - * 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 = real.data - */ - } - - /* "talib/func.pyx":8323 - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) - * real_data = real.data # <<<<<<<<<<<<<< - * length = real.shape[0] - * begidx = 0 - */ - __pyx_v_real_data = ((double *)__pyx_v_real->data); - - /* "talib/func.pyx":8324 - * real = PyArray_GETCONTIGUOUS(real) - * real_data = real.data - * length = real.shape[0] # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_v_length = (__pyx_v_real->dimensions[0]); - - /* "talib/func.pyx":8325 - * real_data = real.data - * length = real.shape[0] - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = real_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":8326 - * length = real.shape[0] - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = real_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":8327 - * begidx = 0 - * for i from 0 <= i < length: - * val = real_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_real_data[__pyx_v_i]); - - /* "talib/func.pyx":8328 - * for i from 0 <= i < length: - * val = real_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":8329 - * val = real_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L6_continue; - - /* "talib/func.pyx":8328 - * for i from 0 <= i < length: - * val = real_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":8330 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":8331 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L7_break; - __pyx_L6_continue:; - } - /*else*/ { - - /* "talib/func.pyx":8333 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_MAXINDEX_Lookback( timeperiod ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__966, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8333, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 8333, __pyx_L1_error) - } - __pyx_L7_break:; - - /* "talib/func.pyx":8334 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_MAXINDEX_Lookback( timeperiod ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":8335 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_MAXINDEX_Lookback( timeperiod ) # <<<<<<<<<<<<<< - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_MAXINDEX_Lookback(__pyx_v_timeperiod)); - - /* "talib/func.pyx":8336 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_MAXINDEX_Lookback( timeperiod ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8336, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 8336, __pyx_L1_error) - __pyx_v_outinteger = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":8337 - * lookback = begidx + lib.TA_MAXINDEX_Lookback( timeperiod ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 - */ - __pyx_v_outinteger_data = ((int *)__pyx_v_outinteger->data); - - /* "talib/func.pyx":8338 - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outinteger_data[i] = 0 - * retCode = lib.TA_MAXINDEX( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":8339 - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 # <<<<<<<<<<<<<< - * retCode = lib.TA_MAXINDEX( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _ta_check_success("TA_MAXINDEX", retCode) - */ - (__pyx_v_outinteger_data[__pyx_v_i]) = 0; - } - - /* "talib/func.pyx":8340 - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 - * retCode = lib.TA_MAXINDEX( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outinteger_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_MAXINDEX", retCode) - * return outinteger - */ - __pyx_v_retCode = TA_MAXINDEX(0, __pyx_v_endidx, ((double *)(__pyx_v_real_data + __pyx_v_begidx)), __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outinteger_data + __pyx_v_lookback))); - - /* "talib/func.pyx":8341 - * outinteger_data[i] = 0 - * retCode = lib.TA_MAXINDEX( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _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, 8341, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":8342 - * retCode = lib.TA_MAXINDEX( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _ta_check_success("TA_MAXINDEX", retCode) - * return outinteger # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outinteger)); - __pyx_r = ((PyObject *)__pyx_v_outinteger); - goto __pyx_L0; - - /* "talib/func.pyx":8295 - * @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.func.MAXINDEX", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outinteger); - __Pyx_XDECREF((PyObject *)__pyx_v_real); - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "talib/func.pyx":8346 - * @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_4func_221MEDPRICE(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_221MEDPRICE = {"MEDPRICE", (PyCFunction)__pyx_pw_5talib_4func_221MEDPRICE, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_220MEDPRICE}; -static PyObject *__pyx_pw_5talib_4func_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, 8346, __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, 8346, __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, 8346, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 8346, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 8346, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_220MEDPRICE(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low) { - npy_intp __pyx_v_length; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - TA_RetCode __pyx_v_retCode; - double *__pyx_v_high_data; - double *__pyx_v_low_data; - int __pyx_v_outbegidx; - int __pyx_v_outnbelement; - PyArrayObject *__pyx_v_outreal = 0; - double *__pyx_v_outreal_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __Pyx_RefNannySetupContext("MEDPRICE", 0); - __Pyx_INCREF((PyObject *)__pyx_v_high); - __Pyx_INCREF((PyObject *)__pyx_v_low); - - /* "talib/func.pyx":8367 - * np.ndarray outreal - * double* outreal_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/func.pyx":8368 - * double* outreal_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__967, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8368, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 8368, __pyx_L1_error) - - /* "talib/func.pyx":8367 - * np.ndarray outreal - * double* outreal_data - * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("high is not double") - * if high.ndim != 1: - */ - } - - /* "talib/func.pyx":8369 - * 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/func.pyx":8370 - * raise 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__968, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8370, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 8370, __pyx_L1_error) - - /* "talib/func.pyx":8369 - * 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/func.pyx":8371 - * 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 = high.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":8372 - * raise Exception("high has wrong dimensions") - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< - * high_data = 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, 8372, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 8372, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":8371 - * 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 = high.data - */ - } - - /* "talib/func.pyx":8373 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":8374 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":8375 - * high_data = 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__969, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8375, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 8375, __pyx_L1_error) - - /* "talib/func.pyx":8374 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = high.data - * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("low is not double") - * if low.ndim != 1: - */ - } - - /* "talib/func.pyx":8376 - * 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/func.pyx":8377 - * raise 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__970, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8377, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 8377, __pyx_L1_error) - - /* "talib/func.pyx":8376 - * 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/func.pyx":8378 - * 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 = low.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":8379 - * raise Exception("low has wrong dimensions") - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< - * low_data = low.data - * length = high.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8379, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 8379, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":8378 - * 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 = low.data - */ - } - - /* "talib/func.pyx":8380 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = low.data # <<<<<<<<<<<<<< - * length = high.shape[0] - * if length != low.shape[0]: - */ - __pyx_v_low_data = ((double *)__pyx_v_low->data); - - /* "talib/func.pyx":8381 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":8382 - * low_data = low.data - * length = high.shape[0] - * if length != low.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - __pyx_t_1 = ((__pyx_v_length != (__pyx_v_low->dimensions[0])) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":8383 - * length = high.shape[0] - * if length != low.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__971, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8383, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 8383, __pyx_L1_error) - - /* "talib/func.pyx":8382 - * low_data = low.data - * length = high.shape[0] - * if length != low.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - } - - /* "talib/func.pyx":8384 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = high_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":8385 - * raise Exception("input lengths are different") - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = high_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":8386 - * begidx = 0 - * for i from 0 <= i < length: - * val = high_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); - - /* "talib/func.pyx":8387 - * for i from 0 <= i < length: - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":8388 - * val = high_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = low_data[i] - * if val != val: - */ - goto __pyx_L10_continue; - - /* "talib/func.pyx":8387 - * for i from 0 <= i < length: - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - } - - /* "talib/func.pyx":8389 - * if val != val: - * continue - * val = low_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); - - /* "talib/func.pyx":8390 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":8391 - * val = low_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L10_continue; - - /* "talib/func.pyx":8390 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":8392 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":8393 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L11_break; - __pyx_L10_continue:; - } - /*else*/ { - - /* "talib/func.pyx":8395 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_MEDPRICE_Lookback( ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__972, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8395, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 8395, __pyx_L1_error) - } - __pyx_L11_break:; - - /* "talib/func.pyx":8396 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_MEDPRICE_Lookback( ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":8397 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_MEDPRICE_Lookback( ) # <<<<<<<<<<<<<< - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_MEDPRICE_Lookback()); - - /* "talib/func.pyx":8398 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_MEDPRICE_Lookback( ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8398, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 8398, __pyx_L1_error) - __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":8399 - * lookback = begidx + lib.TA_MEDPRICE_Lookback( ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - */ - __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); - - /* "talib/func.pyx":8400 - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outreal_data[i] = NaN - * retCode = lib.TA_MEDPRICE( 0 , endidx , (high_data+begidx) , (low_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":8401 - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN # <<<<<<<<<<<<<< - * retCode = lib.TA_MEDPRICE( 0 , endidx , (high_data+begidx) , (low_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_MEDPRICE", retCode) - */ - (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_4func_NaN; - } - - /* "talib/func.pyx":8402 - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - * retCode = lib.TA_MEDPRICE( 0 , endidx , (high_data+begidx) , (low_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_MEDPRICE", retCode) - * return outreal - */ - __pyx_v_retCode = TA_MEDPRICE(0, __pyx_v_endidx, ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); - - /* "talib/func.pyx":8403 - * outreal_data[i] = NaN - * retCode = lib.TA_MEDPRICE( 0 , endidx , (high_data+begidx) , (low_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _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, 8403, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":8404 - * retCode = lib.TA_MEDPRICE( 0 , endidx , (high_data+begidx) , (low_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_MEDPRICE", retCode) - * return outreal # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); - __pyx_r = ((PyObject *)__pyx_v_outreal); - goto __pyx_L0; - - /* "talib/func.pyx":8346 - * @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.func.MEDPRICE", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outreal); - __Pyx_XDECREF((PyObject *)__pyx_v_high); - __Pyx_XDECREF((PyObject *)__pyx_v_low); - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "talib/func.pyx":8408 - * @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_4func_223MFI(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_223MFI = {"MFI", (PyCFunction)__pyx_pw_5talib_4func_223MFI, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_222MFI}; -static PyObject *__pyx_pw_5talib_4func_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, 8408, __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, 8408, __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, 8408, __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, 8408, __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, 8408, __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, 8408, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 8408, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 8408, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 8408, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_volume), __pyx_ptype_5numpy_ndarray, 0, "volume", 0))) __PYX_ERR(0, 8408, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_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; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - 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; - PyArrayObject *__pyx_v_outreal = 0; - double *__pyx_v_outreal_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __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/func.pyx":8433 - * np.ndarray outreal - * double* outreal_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/func.pyx":8434 - * double* outreal_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__973, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8434, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 8434, __pyx_L1_error) - - /* "talib/func.pyx":8433 - * np.ndarray outreal - * double* outreal_data - * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("high is not double") - * if high.ndim != 1: - */ - } - - /* "talib/func.pyx":8435 - * 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/func.pyx":8436 - * raise 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__974, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8436, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 8436, __pyx_L1_error) - - /* "talib/func.pyx":8435 - * 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/func.pyx":8437 - * 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 = high.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":8438 - * raise Exception("high has wrong dimensions") - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< - * high_data = 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, 8438, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 8438, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":8437 - * 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 = high.data - */ - } - - /* "talib/func.pyx":8439 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":8440 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":8441 - * high_data = 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__975, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8441, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 8441, __pyx_L1_error) - - /* "talib/func.pyx":8440 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = high.data - * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("low is not double") - * if low.ndim != 1: - */ - } - - /* "talib/func.pyx":8442 - * 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/func.pyx":8443 - * raise 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__976, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8443, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 8443, __pyx_L1_error) - - /* "talib/func.pyx":8442 - * 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/func.pyx":8444 - * 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 = low.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":8445 - * raise Exception("low has wrong dimensions") - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< - * low_data = 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, 8445, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 8445, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":8444 - * 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 = low.data - */ - } - - /* "talib/func.pyx":8446 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":8447 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":8448 - * low_data = 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__977, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8448, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 8448, __pyx_L1_error) - - /* "talib/func.pyx":8447 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = low.data - * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("close is not double") - * if close.ndim != 1: - */ - } - - /* "talib/func.pyx":8449 - * 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/func.pyx":8450 - * raise 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__978, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8450, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 8450, __pyx_L1_error) - - /* "talib/func.pyx":8449 - * 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/func.pyx":8451 - * 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 = close.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":8452 - * raise Exception("close has wrong dimensions") - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< - * close_data = 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, 8452, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 8452, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":8451 - * 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 = close.data - */ - } - - /* "talib/func.pyx":8453 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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/func.pyx":8454 - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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/func.pyx":8455 - * close_data = 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__979, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8455, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 8455, __pyx_L1_error) - - /* "talib/func.pyx":8454 - * close = PyArray_GETCONTIGUOUS(close) - * close_data = close.data - * if PyArray_TYPE(volume) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("volume is not double") - * if volume.ndim != 1: - */ - } - - /* "talib/func.pyx":8456 - * 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/func.pyx":8457 - * 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__980, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8457, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 8457, __pyx_L1_error) - - /* "talib/func.pyx":8456 - * 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/func.pyx":8458 - * 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 = volume.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_volume) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":8459 - * raise Exception("volume has wrong dimensions") - * if not (PyArray_FLAGS(volume) & np.NPY_C_CONTIGUOUS): - * volume = PyArray_GETCONTIGUOUS(volume) # <<<<<<<<<<<<<< - * volume_data = volume.data - * length = high.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_volume); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8459, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 8459, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_volume, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":8458 - * 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 = volume.data - */ - } - - /* "talib/func.pyx":8460 - * if not (PyArray_FLAGS(volume) & np.NPY_C_CONTIGUOUS): - * volume = PyArray_GETCONTIGUOUS(volume) - * volume_data = volume.data # <<<<<<<<<<<<<< - * length = high.shape[0] - * if length != low.shape[0]: - */ - __pyx_v_volume_data = ((double *)__pyx_v_volume->data); - - /* "talib/func.pyx":8461 - * volume = PyArray_GETCONTIGUOUS(volume) - * volume_data = 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/func.pyx":8462 - * volume_data = 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/func.pyx":8463 - * 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__981, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8463, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 8463, __pyx_L1_error) - - /* "talib/func.pyx":8462 - * volume_data = volume.data - * length = high.shape[0] - * if length != low.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * if length != close.shape[0]: - */ - } - - /* "talib/func.pyx":8464 - * 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/func.pyx":8465 - * 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__982, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8465, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 8465, __pyx_L1_error) - - /* "talib/func.pyx":8464 - * 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/func.pyx":8466 - * if length != close.shape[0]: - * raise Exception("input lengths are different") - * if length != volume.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - __pyx_t_1 = ((__pyx_v_length != (__pyx_v_volume->dimensions[0])) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":8467 - * raise Exception("input lengths are different") - * if length != volume.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__983, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8467, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 8467, __pyx_L1_error) - - /* "talib/func.pyx":8466 - * if length != close.shape[0]: - * raise Exception("input lengths are different") - * if length != volume.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - } - - /* "talib/func.pyx":8468 - * if length != volume.shape[0]: - * raise Exception("input lengths are different") - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = high_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":8469 - * raise Exception("input lengths are different") - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = high_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":8470 - * begidx = 0 - * for i from 0 <= i < length: - * val = high_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); - - /* "talib/func.pyx":8471 - * for i from 0 <= i < length: - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":8472 - * val = high_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = low_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":8471 - * for i from 0 <= i < length: - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - } - - /* "talib/func.pyx":8473 - * if val != val: - * continue - * val = low_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); - - /* "talib/func.pyx":8474 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":8475 - * val = low_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = close_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":8474 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - } - - /* "talib/func.pyx":8476 - * if val != val: - * continue - * val = close_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); - - /* "talib/func.pyx":8477 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = volume_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":8478 - * val = close_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = volume_data[i] - * if val != val: - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":8477 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = volume_data[i] - */ - } - - /* "talib/func.pyx":8479 - * if val != val: - * continue - * val = volume_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_volume_data[__pyx_v_i]); - - /* "talib/func.pyx":8480 - * continue - * val = volume_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":8481 - * val = volume_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L18_continue; - - /* "talib/func.pyx":8480 - * continue - * val = volume_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":8482 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":8483 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L19_break; - __pyx_L18_continue:; - } - /*else*/ { - - /* "talib/func.pyx":8485 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_MFI_Lookback( timeperiod ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__984, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8485, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 8485, __pyx_L1_error) - } - __pyx_L19_break:; - - /* "talib/func.pyx":8486 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_MFI_Lookback( timeperiod ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":8487 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_MFI_Lookback( timeperiod ) # <<<<<<<<<<<<<< - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_MFI_Lookback(__pyx_v_timeperiod)); - - /* "talib/func.pyx":8488 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_MFI_Lookback( timeperiod ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8488, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 8488, __pyx_L1_error) - __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":8489 - * lookback = begidx + lib.TA_MFI_Lookback( timeperiod ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - */ - __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); - - /* "talib/func.pyx":8490 - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outreal_data[i] = NaN - * retCode = lib.TA_MFI( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , (volume_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":8491 - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN # <<<<<<<<<<<<<< - * retCode = lib.TA_MFI( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , (volume_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_MFI", retCode) - */ - (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_4func_NaN; - } - - /* "talib/func.pyx":8492 - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - * retCode = lib.TA_MFI( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , (volume_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_MFI", retCode) - * return outreal - */ - __pyx_v_retCode = TA_MFI(0, __pyx_v_endidx, ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), ((double *)(__pyx_v_volume_data + __pyx_v_begidx)), __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); - - /* "talib/func.pyx":8493 - * outreal_data[i] = NaN - * retCode = lib.TA_MFI( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , (volume_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _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, 8493, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":8494 - * retCode = lib.TA_MFI( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , (volume_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_MFI", retCode) - * return outreal # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); - __pyx_r = ((PyObject *)__pyx_v_outreal); - goto __pyx_L0; - - /* "talib/func.pyx":8408 - * @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.func.MFI", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outreal); - __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/func.pyx":8498 - * @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_4func_225MIDPOINT(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_225MIDPOINT = {"MIDPOINT", (PyCFunction)__pyx_pw_5talib_4func_225MIDPOINT, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_224MIDPOINT}; -static PyObject *__pyx_pw_5talib_4func_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, 8498, __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, 8498, __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, 8498, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 8498, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_224MIDPOINT(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod) { - npy_intp __pyx_v_length; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - TA_RetCode __pyx_v_retCode; - double *__pyx_v_real_data; - int __pyx_v_outbegidx; - int __pyx_v_outnbelement; - PyArrayObject *__pyx_v_outreal = 0; - double *__pyx_v_outreal_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __Pyx_RefNannySetupContext("MIDPOINT", 0); - __Pyx_INCREF((PyObject *)__pyx_v_real); - - /* "talib/func.pyx":8520 - * np.ndarray outreal - * double* outreal_data - * 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/func.pyx":8521 - * double* outreal_data - * 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__985, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8521, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 8521, __pyx_L1_error) - - /* "talib/func.pyx":8520 - * np.ndarray outreal - * double* outreal_data - * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("real is not double") - * if real.ndim != 1: - */ - } - - /* "talib/func.pyx":8522 - * 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/func.pyx":8523 - * 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__986, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8523, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 8523, __pyx_L1_error) - - /* "talib/func.pyx":8522 - * 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/func.pyx":8524 - * 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 = real.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":8525 - * raise Exception("real has wrong dimensions") - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< - * real_data = real.data - * length = real.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8525, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 8525, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":8524 - * 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 = real.data - */ - } - - /* "talib/func.pyx":8526 - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) - * real_data = real.data # <<<<<<<<<<<<<< - * length = real.shape[0] - * begidx = 0 - */ - __pyx_v_real_data = ((double *)__pyx_v_real->data); - - /* "talib/func.pyx":8527 - * real = PyArray_GETCONTIGUOUS(real) - * real_data = real.data - * length = real.shape[0] # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_v_length = (__pyx_v_real->dimensions[0]); - - /* "talib/func.pyx":8528 - * real_data = real.data - * length = real.shape[0] - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = real_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":8529 - * length = real.shape[0] - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = real_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":8530 - * begidx = 0 - * for i from 0 <= i < length: - * val = real_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_real_data[__pyx_v_i]); - - /* "talib/func.pyx":8531 - * for i from 0 <= i < length: - * val = real_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":8532 - * val = real_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L6_continue; - - /* "talib/func.pyx":8531 - * for i from 0 <= i < length: - * val = real_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":8533 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":8534 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L7_break; - __pyx_L6_continue:; - } - /*else*/ { - - /* "talib/func.pyx":8536 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_MIDPOINT_Lookback( timeperiod ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__987, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8536, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 8536, __pyx_L1_error) - } - __pyx_L7_break:; - - /* "talib/func.pyx":8537 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_MIDPOINT_Lookback( timeperiod ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":8538 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_MIDPOINT_Lookback( timeperiod ) # <<<<<<<<<<<<<< - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_MIDPOINT_Lookback(__pyx_v_timeperiod)); - - /* "talib/func.pyx":8539 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_MIDPOINT_Lookback( timeperiod ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8539, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 8539, __pyx_L1_error) - __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":8540 - * lookback = begidx + lib.TA_MIDPOINT_Lookback( timeperiod ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - */ - __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); - - /* "talib/func.pyx":8541 - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outreal_data[i] = NaN - * retCode = lib.TA_MIDPOINT( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":8542 - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN # <<<<<<<<<<<<<< - * retCode = lib.TA_MIDPOINT( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_MIDPOINT", retCode) - */ - (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_4func_NaN; - } - - /* "talib/func.pyx":8543 - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - * retCode = lib.TA_MIDPOINT( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_MIDPOINT", retCode) - * return outreal - */ - __pyx_v_retCode = TA_MIDPOINT(0, __pyx_v_endidx, ((double *)(__pyx_v_real_data + __pyx_v_begidx)), __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); - - /* "talib/func.pyx":8544 - * outreal_data[i] = NaN - * retCode = lib.TA_MIDPOINT( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _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, 8544, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":8545 - * retCode = lib.TA_MIDPOINT( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_MIDPOINT", retCode) - * return outreal # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); - __pyx_r = ((PyObject *)__pyx_v_outreal); - goto __pyx_L0; - - /* "talib/func.pyx":8498 - * @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.func.MIDPOINT", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outreal); - __Pyx_XDECREF((PyObject *)__pyx_v_real); - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "talib/func.pyx":8549 - * @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_4func_227MIDPRICE(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_227MIDPRICE = {"MIDPRICE", (PyCFunction)__pyx_pw_5talib_4func_227MIDPRICE, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_226MIDPRICE}; -static PyObject *__pyx_pw_5talib_4func_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, 8549, __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, 8549, __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, 8549, __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, 8549, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 8549, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 8549, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_226MIDPRICE(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, int __pyx_v_timeperiod) { - npy_intp __pyx_v_length; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - TA_RetCode __pyx_v_retCode; - double *__pyx_v_high_data; - double *__pyx_v_low_data; - int __pyx_v_outbegidx; - int __pyx_v_outnbelement; - PyArrayObject *__pyx_v_outreal = 0; - double *__pyx_v_outreal_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __Pyx_RefNannySetupContext("MIDPRICE", 0); - __Pyx_INCREF((PyObject *)__pyx_v_high); - __Pyx_INCREF((PyObject *)__pyx_v_low); - - /* "talib/func.pyx":8572 - * np.ndarray outreal - * double* outreal_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/func.pyx":8573 - * double* outreal_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__988, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8573, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 8573, __pyx_L1_error) - - /* "talib/func.pyx":8572 - * np.ndarray outreal - * double* outreal_data - * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("high is not double") - * if high.ndim != 1: - */ - } - - /* "talib/func.pyx":8574 - * 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/func.pyx":8575 - * raise 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__989, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8575, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 8575, __pyx_L1_error) - - /* "talib/func.pyx":8574 - * 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/func.pyx":8576 - * 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 = high.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":8577 - * raise Exception("high has wrong dimensions") - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< - * high_data = 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, 8577, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 8577, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":8576 - * 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 = high.data - */ - } - - /* "talib/func.pyx":8578 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":8579 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":8580 - * high_data = 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__990, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8580, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 8580, __pyx_L1_error) - - /* "talib/func.pyx":8579 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = high.data - * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("low is not double") - * if low.ndim != 1: - */ - } - - /* "talib/func.pyx":8581 - * 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/func.pyx":8582 - * raise 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__991, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8582, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 8582, __pyx_L1_error) - - /* "talib/func.pyx":8581 - * 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/func.pyx":8583 - * 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 = low.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":8584 - * raise Exception("low has wrong dimensions") - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< - * low_data = low.data - * length = high.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8584, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 8584, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":8583 - * 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 = low.data - */ - } - - /* "talib/func.pyx":8585 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = low.data # <<<<<<<<<<<<<< - * length = high.shape[0] - * if length != low.shape[0]: - */ - __pyx_v_low_data = ((double *)__pyx_v_low->data); - - /* "talib/func.pyx":8586 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":8587 - * low_data = low.data - * length = high.shape[0] - * if length != low.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - __pyx_t_1 = ((__pyx_v_length != (__pyx_v_low->dimensions[0])) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":8588 - * length = high.shape[0] - * if length != low.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__992, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8588, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 8588, __pyx_L1_error) - - /* "talib/func.pyx":8587 - * low_data = low.data - * length = high.shape[0] - * if length != low.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - } - - /* "talib/func.pyx":8589 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = high_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":8590 - * raise Exception("input lengths are different") - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = high_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":8591 - * begidx = 0 - * for i from 0 <= i < length: - * val = high_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); - - /* "talib/func.pyx":8592 - * for i from 0 <= i < length: - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":8593 - * val = high_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = low_data[i] - * if val != val: - */ - goto __pyx_L10_continue; - - /* "talib/func.pyx":8592 - * for i from 0 <= i < length: - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - } - - /* "talib/func.pyx":8594 - * if val != val: - * continue - * val = low_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); - - /* "talib/func.pyx":8595 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":8596 - * val = low_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L10_continue; - - /* "talib/func.pyx":8595 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":8597 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":8598 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L11_break; - __pyx_L10_continue:; - } - /*else*/ { - - /* "talib/func.pyx":8600 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_MIDPRICE_Lookback( timeperiod ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__993, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8600, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 8600, __pyx_L1_error) - } - __pyx_L11_break:; - - /* "talib/func.pyx":8601 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_MIDPRICE_Lookback( timeperiod ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":8602 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_MIDPRICE_Lookback( timeperiod ) # <<<<<<<<<<<<<< - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_MIDPRICE_Lookback(__pyx_v_timeperiod)); - - /* "talib/func.pyx":8603 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_MIDPRICE_Lookback( timeperiod ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8603, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 8603, __pyx_L1_error) - __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":8604 - * lookback = begidx + lib.TA_MIDPRICE_Lookback( timeperiod ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - */ - __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); - - /* "talib/func.pyx":8605 - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outreal_data[i] = NaN - * retCode = lib.TA_MIDPRICE( 0 , endidx , (high_data+begidx) , (low_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":8606 - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN # <<<<<<<<<<<<<< - * retCode = lib.TA_MIDPRICE( 0 , endidx , (high_data+begidx) , (low_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_MIDPRICE", retCode) - */ - (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_4func_NaN; - } - - /* "talib/func.pyx":8607 - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - * retCode = lib.TA_MIDPRICE( 0 , endidx , (high_data+begidx) , (low_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_MIDPRICE", retCode) - * return outreal - */ - __pyx_v_retCode = TA_MIDPRICE(0, __pyx_v_endidx, ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); - - /* "talib/func.pyx":8608 - * outreal_data[i] = NaN - * retCode = lib.TA_MIDPRICE( 0 , endidx , (high_data+begidx) , (low_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _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, 8608, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":8609 - * retCode = lib.TA_MIDPRICE( 0 , endidx , (high_data+begidx) , (low_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_MIDPRICE", retCode) - * return outreal # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); - __pyx_r = ((PyObject *)__pyx_v_outreal); - goto __pyx_L0; - - /* "talib/func.pyx":8549 - * @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.func.MIDPRICE", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outreal); - __Pyx_XDECREF((PyObject *)__pyx_v_high); - __Pyx_XDECREF((PyObject *)__pyx_v_low); - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "talib/func.pyx":8613 - * @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_4func_229MIN(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_229MIN = {"MIN", (PyCFunction)__pyx_pw_5talib_4func_229MIN, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_228MIN}; -static PyObject *__pyx_pw_5talib_4func_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, 8613, __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, 8613, __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, 8613, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 8613, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_228MIN(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod) { - npy_intp __pyx_v_length; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - TA_RetCode __pyx_v_retCode; - double *__pyx_v_real_data; - int __pyx_v_outbegidx; - int __pyx_v_outnbelement; - PyArrayObject *__pyx_v_outreal = 0; - double *__pyx_v_outreal_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __Pyx_RefNannySetupContext("MIN", 0); - __Pyx_INCREF((PyObject *)__pyx_v_real); - - /* "talib/func.pyx":8635 - * np.ndarray outreal - * double* outreal_data - * 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/func.pyx":8636 - * double* outreal_data - * 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__994, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8636, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 8636, __pyx_L1_error) - - /* "talib/func.pyx":8635 - * np.ndarray outreal - * double* outreal_data - * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("real is not double") - * if real.ndim != 1: - */ - } - - /* "talib/func.pyx":8637 - * 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/func.pyx":8638 - * 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__995, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8638, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 8638, __pyx_L1_error) - - /* "talib/func.pyx":8637 - * 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/func.pyx":8639 - * 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 = real.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":8640 - * raise Exception("real has wrong dimensions") - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< - * real_data = real.data - * length = real.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8640, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 8640, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":8639 - * 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 = real.data - */ - } - - /* "talib/func.pyx":8641 - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) - * real_data = real.data # <<<<<<<<<<<<<< - * length = real.shape[0] - * begidx = 0 - */ - __pyx_v_real_data = ((double *)__pyx_v_real->data); - - /* "talib/func.pyx":8642 - * real = PyArray_GETCONTIGUOUS(real) - * real_data = real.data - * length = real.shape[0] # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_v_length = (__pyx_v_real->dimensions[0]); - - /* "talib/func.pyx":8643 - * real_data = real.data - * length = real.shape[0] - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = real_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":8644 - * length = real.shape[0] - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = real_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":8645 - * begidx = 0 - * for i from 0 <= i < length: - * val = real_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_real_data[__pyx_v_i]); - - /* "talib/func.pyx":8646 - * for i from 0 <= i < length: - * val = real_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":8647 - * val = real_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L6_continue; - - /* "talib/func.pyx":8646 - * for i from 0 <= i < length: - * val = real_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":8648 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":8649 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L7_break; - __pyx_L6_continue:; - } - /*else*/ { - - /* "talib/func.pyx":8651 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_MIN_Lookback( timeperiod ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__996, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8651, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 8651, __pyx_L1_error) - } - __pyx_L7_break:; - - /* "talib/func.pyx":8652 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_MIN_Lookback( timeperiod ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":8653 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_MIN_Lookback( timeperiod ) # <<<<<<<<<<<<<< - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_MIN_Lookback(__pyx_v_timeperiod)); - - /* "talib/func.pyx":8654 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_MIN_Lookback( timeperiod ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8654, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 8654, __pyx_L1_error) - __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":8655 - * lookback = begidx + lib.TA_MIN_Lookback( timeperiod ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - */ - __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); - - /* "talib/func.pyx":8656 - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outreal_data[i] = NaN - * retCode = lib.TA_MIN( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":8657 - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN # <<<<<<<<<<<<<< - * retCode = lib.TA_MIN( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_MIN", retCode) - */ - (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_4func_NaN; - } - - /* "talib/func.pyx":8658 - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - * retCode = lib.TA_MIN( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_MIN", retCode) - * return outreal - */ - __pyx_v_retCode = TA_MIN(0, __pyx_v_endidx, ((double *)(__pyx_v_real_data + __pyx_v_begidx)), __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); - - /* "talib/func.pyx":8659 - * outreal_data[i] = NaN - * retCode = lib.TA_MIN( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _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, 8659, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":8660 - * retCode = lib.TA_MIN( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_MIN", retCode) - * return outreal # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); - __pyx_r = ((PyObject *)__pyx_v_outreal); - goto __pyx_L0; - - /* "talib/func.pyx":8613 - * @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.func.MIN", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outreal); - __Pyx_XDECREF((PyObject *)__pyx_v_real); - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "talib/func.pyx":8664 - * @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_4func_231MININDEX(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_231MININDEX = {"MININDEX", (PyCFunction)__pyx_pw_5talib_4func_231MININDEX, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_230MININDEX}; -static PyObject *__pyx_pw_5talib_4func_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, 8664, __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, 8664, __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, 8664, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 8664, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_230MININDEX(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod) { - npy_intp __pyx_v_length; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - TA_RetCode __pyx_v_retCode; - double *__pyx_v_real_data; - int __pyx_v_outbegidx; - int __pyx_v_outnbelement; - PyArrayObject *__pyx_v_outinteger = 0; - int *__pyx_v_outinteger_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __Pyx_RefNannySetupContext("MININDEX", 0); - __Pyx_INCREF((PyObject *)__pyx_v_real); - - /* "talib/func.pyx":8686 - * np.ndarray outinteger - * int* outinteger_data - * 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/func.pyx":8687 - * int* outinteger_data - * 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, 8687, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 8687, __pyx_L1_error) - - /* "talib/func.pyx":8686 - * np.ndarray outinteger - * int* outinteger_data - * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("real is not double") - * if real.ndim != 1: - */ - } - - /* "talib/func.pyx":8688 - * 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/func.pyx":8689 - * 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, 8689, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 8689, __pyx_L1_error) - - /* "talib/func.pyx":8688 - * 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/func.pyx":8690 - * 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 = real.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":8691 - * raise Exception("real has wrong dimensions") - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< - * real_data = real.data - * length = real.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8691, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 8691, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":8690 - * 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 = real.data - */ - } - - /* "talib/func.pyx":8692 - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) - * real_data = real.data # <<<<<<<<<<<<<< - * length = real.shape[0] - * begidx = 0 - */ - __pyx_v_real_data = ((double *)__pyx_v_real->data); - - /* "talib/func.pyx":8693 - * real = PyArray_GETCONTIGUOUS(real) - * real_data = real.data - * length = real.shape[0] # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_v_length = (__pyx_v_real->dimensions[0]); - - /* "talib/func.pyx":8694 - * real_data = real.data - * length = real.shape[0] - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = real_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":8695 - * length = real.shape[0] - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = real_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":8696 - * begidx = 0 - * for i from 0 <= i < length: - * val = real_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_real_data[__pyx_v_i]); - - /* "talib/func.pyx":8697 - * for i from 0 <= i < length: - * val = real_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":8698 - * val = real_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L6_continue; - - /* "talib/func.pyx":8697 - * for i from 0 <= i < length: - * val = real_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":8699 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":8700 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L7_break; - __pyx_L6_continue:; - } - /*else*/ { - - /* "talib/func.pyx":8702 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_MININDEX_Lookback( timeperiod ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__999, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8702, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 8702, __pyx_L1_error) - } - __pyx_L7_break:; - - /* "talib/func.pyx":8703 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_MININDEX_Lookback( timeperiod ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":8704 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_MININDEX_Lookback( timeperiod ) # <<<<<<<<<<<<<< - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_MININDEX_Lookback(__pyx_v_timeperiod)); - - /* "talib/func.pyx":8705 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_MININDEX_Lookback( timeperiod ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8705, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 8705, __pyx_L1_error) - __pyx_v_outinteger = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":8706 - * lookback = begidx + lib.TA_MININDEX_Lookback( timeperiod ) - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 - */ - __pyx_v_outinteger_data = ((int *)__pyx_v_outinteger->data); - - /* "talib/func.pyx":8707 - * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outinteger_data[i] = 0 - * retCode = lib.TA_MININDEX( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":8708 - * outinteger_data = outinteger.data - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 # <<<<<<<<<<<<<< - * retCode = lib.TA_MININDEX( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _ta_check_success("TA_MININDEX", retCode) - */ - (__pyx_v_outinteger_data[__pyx_v_i]) = 0; - } - - /* "talib/func.pyx":8709 - * for i from 0 <= i < min(lookback, length): - * outinteger_data[i] = 0 - * retCode = lib.TA_MININDEX( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outinteger_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_MININDEX", retCode) - * return outinteger - */ - __pyx_v_retCode = TA_MININDEX(0, __pyx_v_endidx, ((double *)(__pyx_v_real_data + __pyx_v_begidx)), __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outinteger_data + __pyx_v_lookback))); - - /* "talib/func.pyx":8710 - * outinteger_data[i] = 0 - * retCode = lib.TA_MININDEX( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _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, 8710, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":8711 - * retCode = lib.TA_MININDEX( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outinteger_data+lookback) ) - * _ta_check_success("TA_MININDEX", retCode) - * return outinteger # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outinteger)); - __pyx_r = ((PyObject *)__pyx_v_outinteger); - goto __pyx_L0; - - /* "talib/func.pyx":8664 - * @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.func.MININDEX", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outinteger); - __Pyx_XDECREF((PyObject *)__pyx_v_real); - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "talib/func.pyx":8715 - * @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_4func_233MINMAX(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_233MINMAX = {"MINMAX", (PyCFunction)__pyx_pw_5talib_4func_233MINMAX, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_232MINMAX}; -static PyObject *__pyx_pw_5talib_4func_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, 8715, __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, 8715, __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, 8715, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 8715, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_232MINMAX(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod) { - npy_intp __pyx_v_length; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - TA_RetCode __pyx_v_retCode; - double *__pyx_v_real_data; - int __pyx_v_outbegidx; - int __pyx_v_outnbelement; - PyArrayObject *__pyx_v_outmin = 0; - double *__pyx_v_outmin_data; - PyArrayObject *__pyx_v_outmax = 0; - double *__pyx_v_outmax_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __Pyx_RefNannySetupContext("MINMAX", 0); - __Pyx_INCREF((PyObject *)__pyx_v_real); - - /* "talib/func.pyx":8740 - * np.ndarray outmax - * double* outmax_data - * 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/func.pyx":8741 - * double* outmax_data - * 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__1000, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8741, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 8741, __pyx_L1_error) - - /* "talib/func.pyx":8740 - * np.ndarray outmax - * double* outmax_data - * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("real is not double") - * if real.ndim != 1: - */ - } - - /* "talib/func.pyx":8742 - * 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/func.pyx":8743 - * 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__1001, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8743, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 8743, __pyx_L1_error) - - /* "talib/func.pyx":8742 - * 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/func.pyx":8744 - * 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 = real.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":8745 - * raise Exception("real has wrong dimensions") - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< - * real_data = real.data - * length = real.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8745, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 8745, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":8744 - * 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 = real.data - */ - } - - /* "talib/func.pyx":8746 - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) - * real_data = real.data # <<<<<<<<<<<<<< - * length = real.shape[0] - * begidx = 0 - */ - __pyx_v_real_data = ((double *)__pyx_v_real->data); - - /* "talib/func.pyx":8747 - * real = PyArray_GETCONTIGUOUS(real) - * real_data = real.data - * length = real.shape[0] # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_v_length = (__pyx_v_real->dimensions[0]); - - /* "talib/func.pyx":8748 - * real_data = real.data - * length = real.shape[0] - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = real_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":8749 - * length = real.shape[0] - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = real_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":8750 - * begidx = 0 - * for i from 0 <= i < length: - * val = real_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_real_data[__pyx_v_i]); - - /* "talib/func.pyx":8751 - * for i from 0 <= i < length: - * val = real_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":8752 - * val = real_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L6_continue; - - /* "talib/func.pyx":8751 - * for i from 0 <= i < length: - * val = real_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":8753 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":8754 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L7_break; - __pyx_L6_continue:; - } - /*else*/ { - - /* "talib/func.pyx":8756 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_MINMAX_Lookback( timeperiod ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1002, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8756, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 8756, __pyx_L1_error) - } - __pyx_L7_break:; - - /* "talib/func.pyx":8757 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_MINMAX_Lookback( timeperiod ) - * outmin = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":8758 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_MINMAX_Lookback( timeperiod ) # <<<<<<<<<<<<<< - * outmin = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outmin_data = outmin.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_MINMAX_Lookback(__pyx_v_timeperiod)); - - /* "talib/func.pyx":8759 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_MINMAX_Lookback( timeperiod ) - * outmin = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outmin_data = outmin.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8759, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 8759, __pyx_L1_error) - __pyx_v_outmin = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":8760 - * lookback = begidx + lib.TA_MINMAX_Lookback( timeperiod ) - * outmin = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outmin_data = outmin.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outmin_data[i] = NaN - */ - __pyx_v_outmin_data = ((double *)__pyx_v_outmin->data); - - /* "talib/func.pyx":8761 - * outmin = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outmin_data = outmin.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outmin_data[i] = NaN - * outmax = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":8762 - * outmin_data = outmin.data - * for i from 0 <= i < min(lookback, length): - * outmin_data[i] = NaN # <<<<<<<<<<<<<< - * outmax = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outmax_data = outmax.data - */ - (__pyx_v_outmin_data[__pyx_v_i]) = __pyx_v_5talib_4func_NaN; - } - - /* "talib/func.pyx":8763 - * for i from 0 <= i < min(lookback, length): - * outmin_data[i] = NaN - * outmax = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outmax_data = outmax.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8763, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 8763, __pyx_L1_error) - __pyx_v_outmax = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":8764 - * outmin_data[i] = NaN - * outmax = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outmax_data = outmax.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outmax_data[i] = NaN - */ - __pyx_v_outmax_data = ((double *)__pyx_v_outmax->data); - - /* "talib/func.pyx":8765 - * outmax = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outmax_data = outmax.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outmax_data[i] = NaN - * retCode = lib.TA_MINMAX( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outmin_data+lookback) , (outmax_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":8766 - * outmax_data = outmax.data - * for i from 0 <= i < min(lookback, length): - * outmax_data[i] = NaN # <<<<<<<<<<<<<< - * retCode = lib.TA_MINMAX( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outmin_data+lookback) , (outmax_data+lookback) ) - * _ta_check_success("TA_MINMAX", retCode) - */ - (__pyx_v_outmax_data[__pyx_v_i]) = __pyx_v_5talib_4func_NaN; - } - - /* "talib/func.pyx":8767 - * for i from 0 <= i < min(lookback, length): - * outmax_data[i] = NaN - * retCode = lib.TA_MINMAX( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outmin_data+lookback) , (outmax_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_MINMAX", retCode) - * return outmin , outmax - */ - __pyx_v_retCode = TA_MINMAX(0, __pyx_v_endidx, ((double *)(__pyx_v_real_data + __pyx_v_begidx)), __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outmin_data + __pyx_v_lookback)), ((double *)(__pyx_v_outmax_data + __pyx_v_lookback))); - - /* "talib/func.pyx":8768 - * outmax_data[i] = NaN - * retCode = lib.TA_MINMAX( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outmin_data+lookback) , (outmax_data+lookback) ) - * _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, 8768, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":8769 - * retCode = lib.TA_MINMAX( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outmin_data+lookback) , (outmax_data+lookback) ) - * _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 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8769, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_INCREF(((PyObject *)__pyx_v_outmin)); - __Pyx_GIVEREF(((PyObject *)__pyx_v_outmin)); - PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_v_outmin)); - __Pyx_INCREF(((PyObject *)__pyx_v_outmax)); - __Pyx_GIVEREF(((PyObject *)__pyx_v_outmax)); - PyTuple_SET_ITEM(__pyx_t_2, 1, ((PyObject *)__pyx_v_outmax)); - __pyx_r = __pyx_t_2; - __pyx_t_2 = 0; - goto __pyx_L0; - - /* "talib/func.pyx":8715 - * @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_AddTraceback("talib.func.MINMAX", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outmin); - __Pyx_XDECREF((PyObject *)__pyx_v_outmax); - __Pyx_XDECREF((PyObject *)__pyx_v_real); - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "talib/func.pyx":8773 - * @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_4func_235MINMAXINDEX(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_235MINMAXINDEX = {"MINMAXINDEX", (PyCFunction)__pyx_pw_5talib_4func_235MINMAXINDEX, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_234MINMAXINDEX}; -static PyObject *__pyx_pw_5talib_4func_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, 8773, __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, 8773, __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, 8773, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 8773, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_234MINMAXINDEX(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod) { - npy_intp __pyx_v_length; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - TA_RetCode __pyx_v_retCode; - double *__pyx_v_real_data; - int __pyx_v_outbegidx; - int __pyx_v_outnbelement; - PyArrayObject *__pyx_v_outminidx = 0; - int *__pyx_v_outminidx_data; - PyArrayObject *__pyx_v_outmaxidx = 0; - int *__pyx_v_outmaxidx_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __Pyx_RefNannySetupContext("MINMAXINDEX", 0); - __Pyx_INCREF((PyObject *)__pyx_v_real); - - /* "talib/func.pyx":8798 - * np.ndarray outmaxidx - * int* outmaxidx_data - * 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/func.pyx":8799 - * int* outmaxidx_data - * 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__1003, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8799, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 8799, __pyx_L1_error) - - /* "talib/func.pyx":8798 - * np.ndarray outmaxidx - * int* outmaxidx_data - * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("real is not double") - * if real.ndim != 1: - */ - } - - /* "talib/func.pyx":8800 - * 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/func.pyx":8801 - * 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__1004, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8801, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 8801, __pyx_L1_error) - - /* "talib/func.pyx":8800 - * 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/func.pyx":8802 - * 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 = real.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":8803 - * raise Exception("real has wrong dimensions") - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< - * real_data = real.data - * length = real.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8803, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 8803, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":8802 - * 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 = real.data - */ - } - - /* "talib/func.pyx":8804 - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) - * real_data = real.data # <<<<<<<<<<<<<< - * length = real.shape[0] - * begidx = 0 - */ - __pyx_v_real_data = ((double *)__pyx_v_real->data); - - /* "talib/func.pyx":8805 - * real = PyArray_GETCONTIGUOUS(real) - * real_data = real.data - * length = real.shape[0] # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_v_length = (__pyx_v_real->dimensions[0]); - - /* "talib/func.pyx":8806 - * real_data = real.data - * length = real.shape[0] - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = real_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":8807 - * length = real.shape[0] - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = real_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":8808 - * begidx = 0 - * for i from 0 <= i < length: - * val = real_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_real_data[__pyx_v_i]); - - /* "talib/func.pyx":8809 - * for i from 0 <= i < length: - * val = real_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":8810 - * val = real_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L6_continue; - - /* "talib/func.pyx":8809 - * for i from 0 <= i < length: - * val = real_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":8811 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":8812 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L7_break; - __pyx_L6_continue:; - } - /*else*/ { - - /* "talib/func.pyx":8814 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_MINMAXINDEX_Lookback( timeperiod ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1005, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8814, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 8814, __pyx_L1_error) - } - __pyx_L7_break:; - - /* "talib/func.pyx":8815 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_MINMAXINDEX_Lookback( timeperiod ) - * outminidx = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":8816 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_MINMAXINDEX_Lookback( timeperiod ) # <<<<<<<<<<<<<< - * outminidx = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outminidx_data = outminidx.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_MINMAXINDEX_Lookback(__pyx_v_timeperiod)); - - /* "talib/func.pyx":8817 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_MINMAXINDEX_Lookback( timeperiod ) - * outminidx = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outminidx_data = outminidx.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8817, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 8817, __pyx_L1_error) - __pyx_v_outminidx = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":8818 - * lookback = begidx + lib.TA_MINMAXINDEX_Lookback( timeperiod ) - * outminidx = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outminidx_data = outminidx.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outminidx_data[i] = 0 - */ - __pyx_v_outminidx_data = ((int *)__pyx_v_outminidx->data); - - /* "talib/func.pyx":8819 - * outminidx = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outminidx_data = outminidx.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outminidx_data[i] = 0 - * outmaxidx = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":8820 - * outminidx_data = outminidx.data - * for i from 0 <= i < min(lookback, length): - * outminidx_data[i] = 0 # <<<<<<<<<<<<<< - * outmaxidx = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outmaxidx_data = outmaxidx.data - */ - (__pyx_v_outminidx_data[__pyx_v_i]) = 0; - } - - /* "talib/func.pyx":8821 - * for i from 0 <= i < min(lookback, length): - * outminidx_data[i] = 0 - * outmaxidx = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outmaxidx_data = outmaxidx.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8821, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 8821, __pyx_L1_error) - __pyx_v_outmaxidx = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":8822 - * outminidx_data[i] = 0 - * outmaxidx = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outmaxidx_data = outmaxidx.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outmaxidx_data[i] = 0 - */ - __pyx_v_outmaxidx_data = ((int *)__pyx_v_outmaxidx->data); - - /* "talib/func.pyx":8823 - * outmaxidx = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) - * outmaxidx_data = outmaxidx.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outmaxidx_data[i] = 0 - * retCode = lib.TA_MINMAXINDEX( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outminidx_data+lookback) , (outmaxidx_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":8824 - * outmaxidx_data = outmaxidx.data - * for i from 0 <= i < min(lookback, length): - * outmaxidx_data[i] = 0 # <<<<<<<<<<<<<< - * retCode = lib.TA_MINMAXINDEX( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outminidx_data+lookback) , (outmaxidx_data+lookback) ) - * _ta_check_success("TA_MINMAXINDEX", retCode) - */ - (__pyx_v_outmaxidx_data[__pyx_v_i]) = 0; - } - - /* "talib/func.pyx":8825 - * for i from 0 <= i < min(lookback, length): - * outmaxidx_data[i] = 0 - * retCode = lib.TA_MINMAXINDEX( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outminidx_data+lookback) , (outmaxidx_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_MINMAXINDEX", retCode) - * return outminidx , outmaxidx - */ - __pyx_v_retCode = TA_MINMAXINDEX(0, __pyx_v_endidx, ((double *)(__pyx_v_real_data + __pyx_v_begidx)), __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outminidx_data + __pyx_v_lookback)), ((int *)(__pyx_v_outmaxidx_data + __pyx_v_lookback))); - - /* "talib/func.pyx":8826 - * outmaxidx_data[i] = 0 - * retCode = lib.TA_MINMAXINDEX( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outminidx_data+lookback) , (outmaxidx_data+lookback) ) - * _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, 8826, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":8827 - * retCode = lib.TA_MINMAXINDEX( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outminidx_data+lookback) , (outmaxidx_data+lookback) ) - * _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 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8827, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_INCREF(((PyObject *)__pyx_v_outminidx)); - __Pyx_GIVEREF(((PyObject *)__pyx_v_outminidx)); - PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_v_outminidx)); - __Pyx_INCREF(((PyObject *)__pyx_v_outmaxidx)); - __Pyx_GIVEREF(((PyObject *)__pyx_v_outmaxidx)); - PyTuple_SET_ITEM(__pyx_t_2, 1, ((PyObject *)__pyx_v_outmaxidx)); - __pyx_r = __pyx_t_2; - __pyx_t_2 = 0; - goto __pyx_L0; - - /* "talib/func.pyx":8773 - * @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_AddTraceback("talib.func.MINMAXINDEX", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outminidx); - __Pyx_XDECREF((PyObject *)__pyx_v_outmaxidx); - __Pyx_XDECREF((PyObject *)__pyx_v_real); - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "talib/func.pyx":8831 - * @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_4func_237MINUS_DI(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_237MINUS_DI = {"MINUS_DI", (PyCFunction)__pyx_pw_5talib_4func_237MINUS_DI, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_236MINUS_DI}; -static PyObject *__pyx_pw_5talib_4func_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, 8831, __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, 8831, __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, 8831, __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, 8831, __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, 8831, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 8831, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 8831, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 8831, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_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; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - 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; - PyArrayObject *__pyx_v_outreal = 0; - double *__pyx_v_outreal_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __Pyx_RefNannySetupContext("MINUS_DI", 0); - __Pyx_INCREF((PyObject *)__pyx_v_high); - __Pyx_INCREF((PyObject *)__pyx_v_low); - __Pyx_INCREF((PyObject *)__pyx_v_close); - - /* "talib/func.pyx":8855 - * np.ndarray outreal - * double* outreal_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/func.pyx":8856 - * double* outreal_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__1006, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8856, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 8856, __pyx_L1_error) - - /* "talib/func.pyx":8855 - * np.ndarray outreal - * double* outreal_data - * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("high is not double") - * if high.ndim != 1: - */ - } - - /* "talib/func.pyx":8857 - * 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/func.pyx":8858 - * raise 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__1007, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8858, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 8858, __pyx_L1_error) - - /* "talib/func.pyx":8857 - * 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/func.pyx":8859 - * 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 = high.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":8860 - * raise Exception("high has wrong dimensions") - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< - * high_data = 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, 8860, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 8860, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":8859 - * 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 = high.data - */ - } - - /* "talib/func.pyx":8861 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":8862 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":8863 - * high_data = 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__1008, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8863, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 8863, __pyx_L1_error) - - /* "talib/func.pyx":8862 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = high.data - * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("low is not double") - * if low.ndim != 1: - */ - } - - /* "talib/func.pyx":8864 - * 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/func.pyx":8865 - * raise 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__1009, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8865, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 8865, __pyx_L1_error) - - /* "talib/func.pyx":8864 - * 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/func.pyx":8866 - * 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 = low.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":8867 - * raise Exception("low has wrong dimensions") - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< - * low_data = 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, 8867, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 8867, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":8866 - * 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 = low.data - */ - } - - /* "talib/func.pyx":8868 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":8869 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":8870 - * low_data = 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__1010, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8870, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 8870, __pyx_L1_error) - - /* "talib/func.pyx":8869 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = low.data - * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("close is not double") - * if close.ndim != 1: - */ - } - - /* "talib/func.pyx":8871 - * 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/func.pyx":8872 - * raise 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__1011, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8872, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 8872, __pyx_L1_error) - - /* "talib/func.pyx":8871 - * 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/func.pyx":8873 - * 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 = close.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":8874 - * raise Exception("close has wrong dimensions") - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< - * close_data = close.data - * length = high.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8874, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 8874, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":8873 - * 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 = close.data - */ - } - - /* "talib/func.pyx":8875 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = close.data # <<<<<<<<<<<<<< - * length = high.shape[0] - * if length != low.shape[0]: - */ - __pyx_v_close_data = ((double *)__pyx_v_close->data); - - /* "talib/func.pyx":8876 - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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/func.pyx":8877 - * close_data = 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/func.pyx":8878 - * 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__1012, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8878, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 8878, __pyx_L1_error) - - /* "talib/func.pyx":8877 - * close_data = close.data - * length = high.shape[0] - * if length != low.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * if length != close.shape[0]: - */ - } - - /* "talib/func.pyx":8879 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":8880 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1013, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8880, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 8880, __pyx_L1_error) - - /* "talib/func.pyx":8879 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - } - - /* "talib/func.pyx":8881 - * if length != close.shape[0]: - * raise Exception("input lengths are different") - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = high_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":8882 - * raise Exception("input lengths are different") - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = high_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":8883 - * begidx = 0 - * for i from 0 <= i < length: - * val = high_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); - - /* "talib/func.pyx":8884 - * for i from 0 <= i < length: - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":8885 - * val = high_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = low_data[i] - * if val != val: - */ - goto __pyx_L14_continue; - - /* "talib/func.pyx":8884 - * for i from 0 <= i < length: - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - } - - /* "talib/func.pyx":8886 - * if val != val: - * continue - * val = low_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); - - /* "talib/func.pyx":8887 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":8888 - * val = low_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = close_data[i] - * if val != val: - */ - goto __pyx_L14_continue; - - /* "talib/func.pyx":8887 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - } - - /* "talib/func.pyx":8889 - * if val != val: - * continue - * val = close_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); - - /* "talib/func.pyx":8890 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":8891 - * val = close_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L14_continue; - - /* "talib/func.pyx":8890 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":8892 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":8893 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L15_break; - __pyx_L14_continue:; - } - /*else*/ { - - /* "talib/func.pyx":8895 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_MINUS_DI_Lookback( timeperiod ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1014, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8895, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 8895, __pyx_L1_error) - } - __pyx_L15_break:; - - /* "talib/func.pyx":8896 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_MINUS_DI_Lookback( timeperiod ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":8897 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_MINUS_DI_Lookback( timeperiod ) # <<<<<<<<<<<<<< - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_MINUS_DI_Lookback(__pyx_v_timeperiod)); - - /* "talib/func.pyx":8898 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_MINUS_DI_Lookback( timeperiod ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8898, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 8898, __pyx_L1_error) - __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":8899 - * lookback = begidx + lib.TA_MINUS_DI_Lookback( timeperiod ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - */ - __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); - - /* "talib/func.pyx":8900 - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outreal_data[i] = NaN - * retCode = lib.TA_MINUS_DI( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":8901 - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN # <<<<<<<<<<<<<< - * retCode = lib.TA_MINUS_DI( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_MINUS_DI", retCode) - */ - (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_4func_NaN; - } - - /* "talib/func.pyx":8902 - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - * retCode = lib.TA_MINUS_DI( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_MINUS_DI", retCode) - * return outreal - */ - __pyx_v_retCode = TA_MINUS_DI(0, __pyx_v_endidx, ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); - - /* "talib/func.pyx":8903 - * outreal_data[i] = NaN - * retCode = lib.TA_MINUS_DI( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _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, 8903, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":8904 - * retCode = lib.TA_MINUS_DI( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_MINUS_DI", retCode) - * return outreal # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); - __pyx_r = ((PyObject *)__pyx_v_outreal); - goto __pyx_L0; - - /* "talib/func.pyx":8831 - * @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.func.MINUS_DI", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outreal); - __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/func.pyx":8908 - * @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_4func_239MINUS_DM(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_239MINUS_DM = {"MINUS_DM", (PyCFunction)__pyx_pw_5talib_4func_239MINUS_DM, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_238MINUS_DM}; -static PyObject *__pyx_pw_5talib_4func_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, 8908, __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, 8908, __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, 8908, __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, 8908, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 8908, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 8908, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_238MINUS_DM(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, int __pyx_v_timeperiod) { - npy_intp __pyx_v_length; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - TA_RetCode __pyx_v_retCode; - double *__pyx_v_high_data; - double *__pyx_v_low_data; - int __pyx_v_outbegidx; - int __pyx_v_outnbelement; - PyArrayObject *__pyx_v_outreal = 0; - double *__pyx_v_outreal_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __Pyx_RefNannySetupContext("MINUS_DM", 0); - __Pyx_INCREF((PyObject *)__pyx_v_high); - __Pyx_INCREF((PyObject *)__pyx_v_low); - - /* "talib/func.pyx":8931 - * np.ndarray outreal - * double* outreal_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/func.pyx":8932 - * double* outreal_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__1015, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8932, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 8932, __pyx_L1_error) - - /* "talib/func.pyx":8931 - * np.ndarray outreal - * double* outreal_data - * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("high is not double") - * if high.ndim != 1: - */ - } - - /* "talib/func.pyx":8933 - * 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/func.pyx":8934 - * raise 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__1016, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8934, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 8934, __pyx_L1_error) - - /* "talib/func.pyx":8933 - * 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/func.pyx":8935 - * 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 = high.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":8936 - * raise Exception("high has wrong dimensions") - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< - * high_data = 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, 8936, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 8936, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":8935 - * 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 = high.data - */ - } - - /* "talib/func.pyx":8937 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":8938 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":8939 - * high_data = 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__1017, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8939, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 8939, __pyx_L1_error) - - /* "talib/func.pyx":8938 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = high.data - * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("low is not double") - * if low.ndim != 1: - */ - } - - /* "talib/func.pyx":8940 - * 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/func.pyx":8941 - * raise 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__1018, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8941, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 8941, __pyx_L1_error) - - /* "talib/func.pyx":8940 - * 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/func.pyx":8942 - * 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 = low.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":8943 - * raise Exception("low has wrong dimensions") - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< - * low_data = low.data - * length = high.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8943, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 8943, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":8942 - * 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 = low.data - */ - } - - /* "talib/func.pyx":8944 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = low.data # <<<<<<<<<<<<<< - * length = high.shape[0] - * if length != low.shape[0]: - */ - __pyx_v_low_data = ((double *)__pyx_v_low->data); - - /* "talib/func.pyx":8945 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":8946 - * low_data = low.data - * length = high.shape[0] - * if length != low.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - __pyx_t_1 = ((__pyx_v_length != (__pyx_v_low->dimensions[0])) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":8947 - * length = high.shape[0] - * if length != low.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1019, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8947, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 8947, __pyx_L1_error) - - /* "talib/func.pyx":8946 - * low_data = low.data - * length = high.shape[0] - * if length != low.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - } - - /* "talib/func.pyx":8948 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = high_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":8949 - * raise Exception("input lengths are different") - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = high_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":8950 - * begidx = 0 - * for i from 0 <= i < length: - * val = high_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); - - /* "talib/func.pyx":8951 - * for i from 0 <= i < length: - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":8952 - * val = high_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = low_data[i] - * if val != val: - */ - goto __pyx_L10_continue; - - /* "talib/func.pyx":8951 - * for i from 0 <= i < length: - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - } - - /* "talib/func.pyx":8953 - * if val != val: - * continue - * val = low_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); - - /* "talib/func.pyx":8954 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":8955 - * val = low_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L10_continue; - - /* "talib/func.pyx":8954 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":8956 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":8957 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L11_break; - __pyx_L10_continue:; - } - /*else*/ { - - /* "talib/func.pyx":8959 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_MINUS_DM_Lookback( timeperiod ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1020, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8959, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 8959, __pyx_L1_error) - } - __pyx_L11_break:; - - /* "talib/func.pyx":8960 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_MINUS_DM_Lookback( timeperiod ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":8961 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_MINUS_DM_Lookback( timeperiod ) # <<<<<<<<<<<<<< - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_MINUS_DM_Lookback(__pyx_v_timeperiod)); - - /* "talib/func.pyx":8962 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_MINUS_DM_Lookback( timeperiod ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8962, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 8962, __pyx_L1_error) - __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":8963 - * lookback = begidx + lib.TA_MINUS_DM_Lookback( timeperiod ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - */ - __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); - - /* "talib/func.pyx":8964 - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outreal_data[i] = NaN - * retCode = lib.TA_MINUS_DM( 0 , endidx , (high_data+begidx) , (low_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":8965 - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN # <<<<<<<<<<<<<< - * retCode = lib.TA_MINUS_DM( 0 , endidx , (high_data+begidx) , (low_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_MINUS_DM", retCode) - */ - (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_4func_NaN; - } - - /* "talib/func.pyx":8966 - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - * retCode = lib.TA_MINUS_DM( 0 , endidx , (high_data+begidx) , (low_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_MINUS_DM", retCode) - * return outreal - */ - __pyx_v_retCode = TA_MINUS_DM(0, __pyx_v_endidx, ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); - - /* "talib/func.pyx":8967 - * outreal_data[i] = NaN - * retCode = lib.TA_MINUS_DM( 0 , endidx , (high_data+begidx) , (low_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _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, 8967, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":8968 - * retCode = lib.TA_MINUS_DM( 0 , endidx , (high_data+begidx) , (low_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_MINUS_DM", retCode) - * return outreal # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); - __pyx_r = ((PyObject *)__pyx_v_outreal); - goto __pyx_L0; - - /* "talib/func.pyx":8908 - * @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.func.MINUS_DM", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outreal); - __Pyx_XDECREF((PyObject *)__pyx_v_high); - __Pyx_XDECREF((PyObject *)__pyx_v_low); - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "talib/func.pyx":8972 - * @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_4func_241MOM(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_241MOM = {"MOM", (PyCFunction)__pyx_pw_5talib_4func_241MOM, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_240MOM}; -static PyObject *__pyx_pw_5talib_4func_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, 8972, __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, 8972, __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, 8972, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 8972, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_240MOM(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod) { - npy_intp __pyx_v_length; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - TA_RetCode __pyx_v_retCode; - double *__pyx_v_real_data; - int __pyx_v_outbegidx; - int __pyx_v_outnbelement; - PyArrayObject *__pyx_v_outreal = 0; - double *__pyx_v_outreal_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __Pyx_RefNannySetupContext("MOM", 0); - __Pyx_INCREF((PyObject *)__pyx_v_real); - - /* "talib/func.pyx":8994 - * np.ndarray outreal - * double* outreal_data - * 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/func.pyx":8995 - * double* outreal_data - * 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__1021, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8995, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 8995, __pyx_L1_error) - - /* "talib/func.pyx":8994 - * np.ndarray outreal - * double* outreal_data - * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("real is not double") - * if real.ndim != 1: - */ - } - - /* "talib/func.pyx":8996 - * 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/func.pyx":8997 - * 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__1022, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8997, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 8997, __pyx_L1_error) - - /* "talib/func.pyx":8996 - * 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/func.pyx":8998 - * 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 = real.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":8999 - * raise Exception("real has wrong dimensions") - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< - * real_data = real.data - * length = real.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 8999, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 8999, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":8998 - * 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 = real.data - */ - } - - /* "talib/func.pyx":9000 - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) - * real_data = real.data # <<<<<<<<<<<<<< - * length = real.shape[0] - * begidx = 0 - */ - __pyx_v_real_data = ((double *)__pyx_v_real->data); - - /* "talib/func.pyx":9001 - * real = PyArray_GETCONTIGUOUS(real) - * real_data = real.data - * length = real.shape[0] # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_v_length = (__pyx_v_real->dimensions[0]); - - /* "talib/func.pyx":9002 - * real_data = real.data - * length = real.shape[0] - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = real_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":9003 - * length = real.shape[0] - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = real_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":9004 - * begidx = 0 - * for i from 0 <= i < length: - * val = real_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_real_data[__pyx_v_i]); - - /* "talib/func.pyx":9005 - * for i from 0 <= i < length: - * val = real_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":9006 - * val = real_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L6_continue; - - /* "talib/func.pyx":9005 - * for i from 0 <= i < length: - * val = real_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":9007 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":9008 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L7_break; - __pyx_L6_continue:; - } - /*else*/ { - - /* "talib/func.pyx":9010 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_MOM_Lookback( timeperiod ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1023, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9010, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 9010, __pyx_L1_error) - } - __pyx_L7_break:; - - /* "talib/func.pyx":9011 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_MOM_Lookback( timeperiod ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":9012 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_MOM_Lookback( timeperiod ) # <<<<<<<<<<<<<< - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_MOM_Lookback(__pyx_v_timeperiod)); - - /* "talib/func.pyx":9013 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_MOM_Lookback( timeperiod ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9013, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 9013, __pyx_L1_error) - __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":9014 - * lookback = begidx + lib.TA_MOM_Lookback( timeperiod ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - */ - __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); - - /* "talib/func.pyx":9015 - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outreal_data[i] = NaN - * retCode = lib.TA_MOM( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":9016 - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN # <<<<<<<<<<<<<< - * retCode = lib.TA_MOM( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_MOM", retCode) - */ - (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_4func_NaN; - } - - /* "talib/func.pyx":9017 - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - * retCode = lib.TA_MOM( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_MOM", retCode) - * return outreal - */ - __pyx_v_retCode = TA_MOM(0, __pyx_v_endidx, ((double *)(__pyx_v_real_data + __pyx_v_begidx)), __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); - - /* "talib/func.pyx":9018 - * outreal_data[i] = NaN - * retCode = lib.TA_MOM( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _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, 9018, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":9019 - * retCode = lib.TA_MOM( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_MOM", retCode) - * return outreal # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); - __pyx_r = ((PyObject *)__pyx_v_outreal); - goto __pyx_L0; - - /* "talib/func.pyx":8972 - * @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.func.MOM", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outreal); - __Pyx_XDECREF((PyObject *)__pyx_v_real); - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "talib/func.pyx":9023 - * @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_4func_243MULT(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_243MULT = {"MULT", (PyCFunction)__pyx_pw_5talib_4func_243MULT, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_242MULT}; -static PyObject *__pyx_pw_5talib_4func_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, 9023, __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, 9023, __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, 9023, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 9023, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_real1), __pyx_ptype_5numpy_ndarray, 0, "real1", 0))) __PYX_ERR(0, 9023, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_242MULT(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real0, PyArrayObject *__pyx_v_real1) { - npy_intp __pyx_v_length; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - TA_RetCode __pyx_v_retCode; - double *__pyx_v_real0_data; - double *__pyx_v_real1_data; - int __pyx_v_outbegidx; - int __pyx_v_outnbelement; - PyArrayObject *__pyx_v_outreal = 0; - double *__pyx_v_outreal_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __Pyx_RefNannySetupContext("MULT", 0); - __Pyx_INCREF((PyObject *)__pyx_v_real0); - __Pyx_INCREF((PyObject *)__pyx_v_real1); - - /* "talib/func.pyx":9045 - * np.ndarray outreal - * double* outreal_data - * 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/func.pyx":9046 - * double* outreal_data - * 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__1024, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9046, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 9046, __pyx_L1_error) - - /* "talib/func.pyx":9045 - * np.ndarray outreal - * double* outreal_data - * if PyArray_TYPE(real0) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("real0 is not double") - * if real0.ndim != 1: - */ - } - - /* "talib/func.pyx":9047 - * 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/func.pyx":9048 - * 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__1025, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9048, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 9048, __pyx_L1_error) - - /* "talib/func.pyx":9047 - * 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/func.pyx":9049 - * 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 = real0.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real0) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":9050 - * raise Exception("real0 has wrong dimensions") - * if not (PyArray_FLAGS(real0) & np.NPY_C_CONTIGUOUS): - * real0 = PyArray_GETCONTIGUOUS(real0) # <<<<<<<<<<<<<< - * real0_data = 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, 9050, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 9050, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_real0, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":9049 - * 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 = real0.data - */ - } - - /* "talib/func.pyx":9051 - * if not (PyArray_FLAGS(real0) & np.NPY_C_CONTIGUOUS): - * real0 = PyArray_GETCONTIGUOUS(real0) - * real0_data = 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/func.pyx":9052 - * real0 = PyArray_GETCONTIGUOUS(real0) - * real0_data = 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/func.pyx":9053 - * real0_data = 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__1026, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9053, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 9053, __pyx_L1_error) - - /* "talib/func.pyx":9052 - * real0 = PyArray_GETCONTIGUOUS(real0) - * real0_data = real0.data - * if PyArray_TYPE(real1) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("real1 is not double") - * if real1.ndim != 1: - */ - } - - /* "talib/func.pyx":9054 - * 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/func.pyx":9055 - * 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__1027, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9055, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 9055, __pyx_L1_error) - - /* "talib/func.pyx":9054 - * 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/func.pyx":9056 - * 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 = real1.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real1) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":9057 - * raise Exception("real1 has wrong dimensions") - * if not (PyArray_FLAGS(real1) & np.NPY_C_CONTIGUOUS): - * real1 = PyArray_GETCONTIGUOUS(real1) # <<<<<<<<<<<<<< - * real1_data = real1.data - * length = real0.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9057, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 9057, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_real1, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":9056 - * 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 = real1.data - */ - } - - /* "talib/func.pyx":9058 - * if not (PyArray_FLAGS(real1) & np.NPY_C_CONTIGUOUS): - * real1 = PyArray_GETCONTIGUOUS(real1) - * real1_data = real1.data # <<<<<<<<<<<<<< - * length = real0.shape[0] - * if length != real1.shape[0]: - */ - __pyx_v_real1_data = ((double *)__pyx_v_real1->data); - - /* "talib/func.pyx":9059 - * real1 = PyArray_GETCONTIGUOUS(real1) - * real1_data = 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/func.pyx":9060 - * real1_data = real1.data - * length = real0.shape[0] - * if length != real1.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - __pyx_t_1 = ((__pyx_v_length != (__pyx_v_real1->dimensions[0])) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":9061 - * length = real0.shape[0] - * if length != real1.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1028, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9061, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 9061, __pyx_L1_error) - - /* "talib/func.pyx":9060 - * real1_data = real1.data - * length = real0.shape[0] - * if length != real1.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - } - - /* "talib/func.pyx":9062 - * if length != real1.shape[0]: - * raise Exception("input lengths are different") - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = real0_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":9063 - * raise Exception("input lengths are different") - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = real0_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":9064 - * begidx = 0 - * for i from 0 <= i < length: - * val = real0_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_real0_data[__pyx_v_i]); - - /* "talib/func.pyx":9065 - * for i from 0 <= i < length: - * val = real0_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = real1_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":9066 - * val = real0_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = real1_data[i] - * if val != val: - */ - goto __pyx_L10_continue; - - /* "talib/func.pyx":9065 - * for i from 0 <= i < length: - * val = real0_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = real1_data[i] - */ - } - - /* "talib/func.pyx":9067 - * if val != val: - * continue - * val = real1_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_real1_data[__pyx_v_i]); - - /* "talib/func.pyx":9068 - * continue - * val = real1_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":9069 - * val = real1_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L10_continue; - - /* "talib/func.pyx":9068 - * continue - * val = real1_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":9070 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":9071 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L11_break; - __pyx_L10_continue:; - } - /*else*/ { - - /* "talib/func.pyx":9073 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_MULT_Lookback( ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1029, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9073, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 9073, __pyx_L1_error) - } - __pyx_L11_break:; - - /* "talib/func.pyx":9074 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_MULT_Lookback( ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":9075 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_MULT_Lookback( ) # <<<<<<<<<<<<<< - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_MULT_Lookback()); - - /* "talib/func.pyx":9076 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_MULT_Lookback( ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9076, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 9076, __pyx_L1_error) - __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":9077 - * lookback = begidx + lib.TA_MULT_Lookback( ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - */ - __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); - - /* "talib/func.pyx":9078 - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outreal_data[i] = NaN - * retCode = lib.TA_MULT( 0 , endidx , (real0_data+begidx) , (real1_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":9079 - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN # <<<<<<<<<<<<<< - * retCode = lib.TA_MULT( 0 , endidx , (real0_data+begidx) , (real1_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_MULT", retCode) - */ - (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_4func_NaN; - } - - /* "talib/func.pyx":9080 - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - * retCode = lib.TA_MULT( 0 , endidx , (real0_data+begidx) , (real1_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_MULT", retCode) - * return outreal - */ - __pyx_v_retCode = TA_MULT(0, __pyx_v_endidx, ((double *)(__pyx_v_real0_data + __pyx_v_begidx)), ((double *)(__pyx_v_real1_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); - - /* "talib/func.pyx":9081 - * outreal_data[i] = NaN - * retCode = lib.TA_MULT( 0 , endidx , (real0_data+begidx) , (real1_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _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, 9081, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":9082 - * retCode = lib.TA_MULT( 0 , endidx , (real0_data+begidx) , (real1_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_MULT", retCode) - * return outreal # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); - __pyx_r = ((PyObject *)__pyx_v_outreal); - goto __pyx_L0; - - /* "talib/func.pyx":9023 - * @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.func.MULT", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outreal); - __Pyx_XDECREF((PyObject *)__pyx_v_real0); - __Pyx_XDECREF((PyObject *)__pyx_v_real1); - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "talib/func.pyx":9086 - * @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_4func_245NATR(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_245NATR = {"NATR", (PyCFunction)__pyx_pw_5talib_4func_245NATR, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_244NATR}; -static PyObject *__pyx_pw_5talib_4func_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, 9086, __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, 9086, __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, 9086, __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, 9086, __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, 9086, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 9086, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 9086, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 9086, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_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; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - 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; - PyArrayObject *__pyx_v_outreal = 0; - double *__pyx_v_outreal_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __Pyx_RefNannySetupContext("NATR", 0); - __Pyx_INCREF((PyObject *)__pyx_v_high); - __Pyx_INCREF((PyObject *)__pyx_v_low); - __Pyx_INCREF((PyObject *)__pyx_v_close); - - /* "talib/func.pyx":9110 - * np.ndarray outreal - * double* outreal_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/func.pyx":9111 - * double* outreal_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__1030, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9111, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 9111, __pyx_L1_error) - - /* "talib/func.pyx":9110 - * np.ndarray outreal - * double* outreal_data - * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("high is not double") - * if high.ndim != 1: - */ - } - - /* "talib/func.pyx":9112 - * 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/func.pyx":9113 - * raise 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__1031, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9113, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 9113, __pyx_L1_error) - - /* "talib/func.pyx":9112 - * 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/func.pyx":9114 - * 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 = high.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":9115 - * raise Exception("high has wrong dimensions") - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< - * high_data = 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, 9115, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 9115, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":9114 - * 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 = high.data - */ - } - - /* "talib/func.pyx":9116 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":9117 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":9118 - * high_data = 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__1032, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9118, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 9118, __pyx_L1_error) - - /* "talib/func.pyx":9117 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = high.data - * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("low is not double") - * if low.ndim != 1: - */ - } - - /* "talib/func.pyx":9119 - * 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/func.pyx":9120 - * raise 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__1033, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9120, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 9120, __pyx_L1_error) - - /* "talib/func.pyx":9119 - * 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/func.pyx":9121 - * 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 = low.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":9122 - * raise Exception("low has wrong dimensions") - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< - * low_data = 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, 9122, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 9122, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":9121 - * 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 = low.data - */ - } - - /* "talib/func.pyx":9123 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":9124 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":9125 - * low_data = 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__1034, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9125, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 9125, __pyx_L1_error) - - /* "talib/func.pyx":9124 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = low.data - * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("close is not double") - * if close.ndim != 1: - */ - } - - /* "talib/func.pyx":9126 - * 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/func.pyx":9127 - * raise 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__1035, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9127, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 9127, __pyx_L1_error) - - /* "talib/func.pyx":9126 - * 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/func.pyx":9128 - * 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 = close.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":9129 - * raise Exception("close has wrong dimensions") - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< - * close_data = close.data - * length = high.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9129, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 9129, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":9128 - * 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 = close.data - */ - } - - /* "talib/func.pyx":9130 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = close.data # <<<<<<<<<<<<<< - * length = high.shape[0] - * if length != low.shape[0]: - */ - __pyx_v_close_data = ((double *)__pyx_v_close->data); - - /* "talib/func.pyx":9131 - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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/func.pyx":9132 - * close_data = 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/func.pyx":9133 - * 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__1036, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9133, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 9133, __pyx_L1_error) - - /* "talib/func.pyx":9132 - * close_data = close.data - * length = high.shape[0] - * if length != low.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * if length != close.shape[0]: - */ - } - - /* "talib/func.pyx":9134 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":9135 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1037, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9135, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 9135, __pyx_L1_error) - - /* "talib/func.pyx":9134 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - } - - /* "talib/func.pyx":9136 - * if length != close.shape[0]: - * raise Exception("input lengths are different") - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = high_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":9137 - * raise Exception("input lengths are different") - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = high_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":9138 - * begidx = 0 - * for i from 0 <= i < length: - * val = high_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); - - /* "talib/func.pyx":9139 - * for i from 0 <= i < length: - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":9140 - * val = high_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = low_data[i] - * if val != val: - */ - goto __pyx_L14_continue; - - /* "talib/func.pyx":9139 - * for i from 0 <= i < length: - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - } - - /* "talib/func.pyx":9141 - * if val != val: - * continue - * val = low_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); - - /* "talib/func.pyx":9142 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":9143 - * val = low_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = close_data[i] - * if val != val: - */ - goto __pyx_L14_continue; - - /* "talib/func.pyx":9142 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - } - - /* "talib/func.pyx":9144 - * if val != val: - * continue - * val = close_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); - - /* "talib/func.pyx":9145 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":9146 - * val = close_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L14_continue; - - /* "talib/func.pyx":9145 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":9147 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":9148 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L15_break; - __pyx_L14_continue:; - } - /*else*/ { - - /* "talib/func.pyx":9150 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_NATR_Lookback( timeperiod ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1038, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9150, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 9150, __pyx_L1_error) - } - __pyx_L15_break:; - - /* "talib/func.pyx":9151 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_NATR_Lookback( timeperiod ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":9152 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_NATR_Lookback( timeperiod ) # <<<<<<<<<<<<<< - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_NATR_Lookback(__pyx_v_timeperiod)); - - /* "talib/func.pyx":9153 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_NATR_Lookback( timeperiod ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9153, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 9153, __pyx_L1_error) - __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":9154 - * lookback = begidx + lib.TA_NATR_Lookback( timeperiod ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - */ - __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); - - /* "talib/func.pyx":9155 - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outreal_data[i] = NaN - * retCode = lib.TA_NATR( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":9156 - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN # <<<<<<<<<<<<<< - * retCode = lib.TA_NATR( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_NATR", retCode) - */ - (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_4func_NaN; - } - - /* "talib/func.pyx":9157 - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - * retCode = lib.TA_NATR( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_NATR", retCode) - * return outreal - */ - __pyx_v_retCode = TA_NATR(0, __pyx_v_endidx, ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); - - /* "talib/func.pyx":9158 - * outreal_data[i] = NaN - * retCode = lib.TA_NATR( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _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, 9158, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":9159 - * retCode = lib.TA_NATR( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_NATR", retCode) - * return outreal # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); - __pyx_r = ((PyObject *)__pyx_v_outreal); - goto __pyx_L0; - - /* "talib/func.pyx":9086 - * @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.func.NATR", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outreal); - __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/func.pyx":9163 - * @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_4func_247OBV(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_247OBV = {"OBV", (PyCFunction)__pyx_pw_5talib_4func_247OBV, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_246OBV}; -static PyObject *__pyx_pw_5talib_4func_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, 9163, __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, 9163, __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, 9163, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 9163, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_volume), __pyx_ptype_5numpy_ndarray, 0, "volume", 0))) __PYX_ERR(0, 9163, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_246OBV(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, PyArrayObject *__pyx_v_volume) { - npy_intp __pyx_v_length; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - TA_RetCode __pyx_v_retCode; - double *__pyx_v_real_data; - double *__pyx_v_volume_data; - int __pyx_v_outbegidx; - int __pyx_v_outnbelement; - PyArrayObject *__pyx_v_outreal = 0; - double *__pyx_v_outreal_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __Pyx_RefNannySetupContext("OBV", 0); - __Pyx_INCREF((PyObject *)__pyx_v_real); - __Pyx_INCREF((PyObject *)__pyx_v_volume); - - /* "talib/func.pyx":9185 - * np.ndarray outreal - * double* outreal_data - * 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/func.pyx":9186 - * double* outreal_data - * 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__1039, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9186, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 9186, __pyx_L1_error) - - /* "talib/func.pyx":9185 - * np.ndarray outreal - * double* outreal_data - * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("real is not double") - * if real.ndim != 1: - */ - } - - /* "talib/func.pyx":9187 - * 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/func.pyx":9188 - * 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__1040, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9188, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 9188, __pyx_L1_error) - - /* "talib/func.pyx":9187 - * 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/func.pyx":9189 - * 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 = real.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":9190 - * raise Exception("real has wrong dimensions") - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< - * real_data = 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, 9190, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 9190, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":9189 - * 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 = real.data - */ - } - - /* "talib/func.pyx":9191 - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) - * real_data = 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/func.pyx":9192 - * real = PyArray_GETCONTIGUOUS(real) - * real_data = 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/func.pyx":9193 - * real_data = 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__1041, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9193, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 9193, __pyx_L1_error) - - /* "talib/func.pyx":9192 - * real = PyArray_GETCONTIGUOUS(real) - * real_data = real.data - * if PyArray_TYPE(volume) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("volume is not double") - * if volume.ndim != 1: - */ - } - - /* "talib/func.pyx":9194 - * 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/func.pyx":9195 - * 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__1042, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9195, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 9195, __pyx_L1_error) - - /* "talib/func.pyx":9194 - * 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/func.pyx":9196 - * 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 = volume.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_volume) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":9197 - * raise Exception("volume has wrong dimensions") - * if not (PyArray_FLAGS(volume) & np.NPY_C_CONTIGUOUS): - * volume = PyArray_GETCONTIGUOUS(volume) # <<<<<<<<<<<<<< - * volume_data = volume.data - * length = real.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_volume); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9197, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 9197, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_volume, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":9196 - * 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 = volume.data - */ - } - - /* "talib/func.pyx":9198 - * if not (PyArray_FLAGS(volume) & np.NPY_C_CONTIGUOUS): - * volume = PyArray_GETCONTIGUOUS(volume) - * volume_data = volume.data # <<<<<<<<<<<<<< - * length = real.shape[0] - * if length != volume.shape[0]: - */ - __pyx_v_volume_data = ((double *)__pyx_v_volume->data); - - /* "talib/func.pyx":9199 - * volume = PyArray_GETCONTIGUOUS(volume) - * volume_data = 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/func.pyx":9200 - * volume_data = volume.data - * length = real.shape[0] - * if length != volume.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - __pyx_t_1 = ((__pyx_v_length != (__pyx_v_volume->dimensions[0])) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":9201 - * length = real.shape[0] - * if length != volume.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1043, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9201, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 9201, __pyx_L1_error) - - /* "talib/func.pyx":9200 - * volume_data = volume.data - * length = real.shape[0] - * if length != volume.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - } - - /* "talib/func.pyx":9202 - * if length != volume.shape[0]: - * raise Exception("input lengths are different") - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = real_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":9203 - * raise Exception("input lengths are different") - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = real_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":9204 - * begidx = 0 - * for i from 0 <= i < length: - * val = real_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_real_data[__pyx_v_i]); - - /* "talib/func.pyx":9205 - * for i from 0 <= i < length: - * val = real_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = volume_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":9206 - * val = real_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = volume_data[i] - * if val != val: - */ - goto __pyx_L10_continue; - - /* "talib/func.pyx":9205 - * for i from 0 <= i < length: - * val = real_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = volume_data[i] - */ - } - - /* "talib/func.pyx":9207 - * if val != val: - * continue - * val = volume_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_volume_data[__pyx_v_i]); - - /* "talib/func.pyx":9208 - * continue - * val = volume_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":9209 - * val = volume_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L10_continue; - - /* "talib/func.pyx":9208 - * continue - * val = volume_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":9210 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":9211 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L11_break; - __pyx_L10_continue:; - } - /*else*/ { - - /* "talib/func.pyx":9213 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_OBV_Lookback( ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1044, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9213, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 9213, __pyx_L1_error) - } - __pyx_L11_break:; - - /* "talib/func.pyx":9214 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_OBV_Lookback( ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":9215 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_OBV_Lookback( ) # <<<<<<<<<<<<<< - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_OBV_Lookback()); - - /* "talib/func.pyx":9216 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_OBV_Lookback( ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9216, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 9216, __pyx_L1_error) - __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":9217 - * lookback = begidx + lib.TA_OBV_Lookback( ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - */ - __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); - - /* "talib/func.pyx":9218 - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outreal_data[i] = NaN - * retCode = lib.TA_OBV( 0 , endidx , (real_data+begidx) , (volume_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":9219 - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN # <<<<<<<<<<<<<< - * retCode = lib.TA_OBV( 0 , endidx , (real_data+begidx) , (volume_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_OBV", retCode) - */ - (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_4func_NaN; - } - - /* "talib/func.pyx":9220 - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - * retCode = lib.TA_OBV( 0 , endidx , (real_data+begidx) , (volume_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_OBV", retCode) - * return outreal - */ - __pyx_v_retCode = TA_OBV(0, __pyx_v_endidx, ((double *)(__pyx_v_real_data + __pyx_v_begidx)), ((double *)(__pyx_v_volume_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); - - /* "talib/func.pyx":9221 - * outreal_data[i] = NaN - * retCode = lib.TA_OBV( 0 , endidx , (real_data+begidx) , (volume_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _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, 9221, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":9222 - * retCode = lib.TA_OBV( 0 , endidx , (real_data+begidx) , (volume_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_OBV", retCode) - * return outreal # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); - __pyx_r = ((PyObject *)__pyx_v_outreal); - goto __pyx_L0; - - /* "talib/func.pyx":9163 - * @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.func.OBV", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outreal); - __Pyx_XDECREF((PyObject *)__pyx_v_real); - __Pyx_XDECREF((PyObject *)__pyx_v_volume); - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "talib/func.pyx":9226 - * @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_4func_249PLUS_DI(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_249PLUS_DI = {"PLUS_DI", (PyCFunction)__pyx_pw_5talib_4func_249PLUS_DI, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_248PLUS_DI}; -static PyObject *__pyx_pw_5talib_4func_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, 9226, __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, 9226, __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, 9226, __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, 9226, __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, 9226, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 9226, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 9226, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 9226, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_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; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - 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; - PyArrayObject *__pyx_v_outreal = 0; - double *__pyx_v_outreal_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __Pyx_RefNannySetupContext("PLUS_DI", 0); - __Pyx_INCREF((PyObject *)__pyx_v_high); - __Pyx_INCREF((PyObject *)__pyx_v_low); - __Pyx_INCREF((PyObject *)__pyx_v_close); - - /* "talib/func.pyx":9250 - * np.ndarray outreal - * double* outreal_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/func.pyx":9251 - * double* outreal_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__1045, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9251, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 9251, __pyx_L1_error) - - /* "talib/func.pyx":9250 - * np.ndarray outreal - * double* outreal_data - * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("high is not double") - * if high.ndim != 1: - */ - } - - /* "talib/func.pyx":9252 - * 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/func.pyx":9253 - * raise 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__1046, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9253, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 9253, __pyx_L1_error) - - /* "talib/func.pyx":9252 - * 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/func.pyx":9254 - * 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 = high.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":9255 - * raise Exception("high has wrong dimensions") - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< - * high_data = 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, 9255, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 9255, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":9254 - * 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 = high.data - */ - } - - /* "talib/func.pyx":9256 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":9257 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":9258 - * high_data = 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__1047, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9258, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 9258, __pyx_L1_error) - - /* "talib/func.pyx":9257 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = high.data - * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("low is not double") - * if low.ndim != 1: - */ - } - - /* "talib/func.pyx":9259 - * 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/func.pyx":9260 - * raise 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__1048, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9260, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 9260, __pyx_L1_error) - - /* "talib/func.pyx":9259 - * 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/func.pyx":9261 - * 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 = low.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":9262 - * raise Exception("low has wrong dimensions") - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< - * low_data = 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, 9262, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 9262, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":9261 - * 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 = low.data - */ - } - - /* "talib/func.pyx":9263 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":9264 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":9265 - * low_data = 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__1049, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9265, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 9265, __pyx_L1_error) - - /* "talib/func.pyx":9264 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = low.data - * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("close is not double") - * if close.ndim != 1: - */ - } - - /* "talib/func.pyx":9266 - * 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/func.pyx":9267 - * raise 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__1050, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9267, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 9267, __pyx_L1_error) - - /* "talib/func.pyx":9266 - * 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/func.pyx":9268 - * 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 = close.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":9269 - * raise Exception("close has wrong dimensions") - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< - * close_data = close.data - * length = high.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9269, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 9269, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":9268 - * 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 = close.data - */ - } - - /* "talib/func.pyx":9270 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = close.data # <<<<<<<<<<<<<< - * length = high.shape[0] - * if length != low.shape[0]: - */ - __pyx_v_close_data = ((double *)__pyx_v_close->data); - - /* "talib/func.pyx":9271 - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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/func.pyx":9272 - * close_data = 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/func.pyx":9273 - * 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__1051, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9273, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 9273, __pyx_L1_error) - - /* "talib/func.pyx":9272 - * close_data = close.data - * length = high.shape[0] - * if length != low.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * if length != close.shape[0]: - */ - } - - /* "talib/func.pyx":9274 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":9275 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1052, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9275, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 9275, __pyx_L1_error) - - /* "talib/func.pyx":9274 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - } - - /* "talib/func.pyx":9276 - * if length != close.shape[0]: - * raise Exception("input lengths are different") - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = high_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":9277 - * raise Exception("input lengths are different") - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = high_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":9278 - * begidx = 0 - * for i from 0 <= i < length: - * val = high_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); - - /* "talib/func.pyx":9279 - * for i from 0 <= i < length: - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":9280 - * val = high_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = low_data[i] - * if val != val: - */ - goto __pyx_L14_continue; - - /* "talib/func.pyx":9279 - * for i from 0 <= i < length: - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - } - - /* "talib/func.pyx":9281 - * if val != val: - * continue - * val = low_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); - - /* "talib/func.pyx":9282 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":9283 - * val = low_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = close_data[i] - * if val != val: - */ - goto __pyx_L14_continue; - - /* "talib/func.pyx":9282 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - } - - /* "talib/func.pyx":9284 - * if val != val: - * continue - * val = close_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); - - /* "talib/func.pyx":9285 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":9286 - * val = close_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L14_continue; - - /* "talib/func.pyx":9285 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":9287 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":9288 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L15_break; - __pyx_L14_continue:; - } - /*else*/ { - - /* "talib/func.pyx":9290 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_PLUS_DI_Lookback( timeperiod ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1053, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9290, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 9290, __pyx_L1_error) - } - __pyx_L15_break:; - - /* "talib/func.pyx":9291 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_PLUS_DI_Lookback( timeperiod ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":9292 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_PLUS_DI_Lookback( timeperiod ) # <<<<<<<<<<<<<< - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_PLUS_DI_Lookback(__pyx_v_timeperiod)); - - /* "talib/func.pyx":9293 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_PLUS_DI_Lookback( timeperiod ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9293, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 9293, __pyx_L1_error) - __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":9294 - * lookback = begidx + lib.TA_PLUS_DI_Lookback( timeperiod ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - */ - __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); - - /* "talib/func.pyx":9295 - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outreal_data[i] = NaN - * retCode = lib.TA_PLUS_DI( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":9296 - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN # <<<<<<<<<<<<<< - * retCode = lib.TA_PLUS_DI( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_PLUS_DI", retCode) - */ - (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_4func_NaN; - } - - /* "talib/func.pyx":9297 - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - * retCode = lib.TA_PLUS_DI( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_PLUS_DI", retCode) - * return outreal - */ - __pyx_v_retCode = TA_PLUS_DI(0, __pyx_v_endidx, ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); - - /* "talib/func.pyx":9298 - * outreal_data[i] = NaN - * retCode = lib.TA_PLUS_DI( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _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, 9298, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":9299 - * retCode = lib.TA_PLUS_DI( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_PLUS_DI", retCode) - * return outreal # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); - __pyx_r = ((PyObject *)__pyx_v_outreal); - goto __pyx_L0; - - /* "talib/func.pyx":9226 - * @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.func.PLUS_DI", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outreal); - __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/func.pyx":9303 - * @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_4func_251PLUS_DM(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_251PLUS_DM = {"PLUS_DM", (PyCFunction)__pyx_pw_5talib_4func_251PLUS_DM, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_250PLUS_DM}; -static PyObject *__pyx_pw_5talib_4func_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, 9303, __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, 9303, __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, 9303, __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, 9303, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 9303, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 9303, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_250PLUS_DM(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, int __pyx_v_timeperiod) { - npy_intp __pyx_v_length; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - TA_RetCode __pyx_v_retCode; - double *__pyx_v_high_data; - double *__pyx_v_low_data; - int __pyx_v_outbegidx; - int __pyx_v_outnbelement; - PyArrayObject *__pyx_v_outreal = 0; - double *__pyx_v_outreal_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __Pyx_RefNannySetupContext("PLUS_DM", 0); - __Pyx_INCREF((PyObject *)__pyx_v_high); - __Pyx_INCREF((PyObject *)__pyx_v_low); - - /* "talib/func.pyx":9326 - * np.ndarray outreal - * double* outreal_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/func.pyx":9327 - * double* outreal_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__1054, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9327, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 9327, __pyx_L1_error) - - /* "talib/func.pyx":9326 - * np.ndarray outreal - * double* outreal_data - * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("high is not double") - * if high.ndim != 1: - */ - } - - /* "talib/func.pyx":9328 - * 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/func.pyx":9329 - * raise 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__1055, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9329, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 9329, __pyx_L1_error) - - /* "talib/func.pyx":9328 - * 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/func.pyx":9330 - * 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 = high.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":9331 - * raise Exception("high has wrong dimensions") - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< - * high_data = 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, 9331, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 9331, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":9330 - * 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 = high.data - */ - } - - /* "talib/func.pyx":9332 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":9333 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":9334 - * high_data = 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__1056, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9334, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 9334, __pyx_L1_error) - - /* "talib/func.pyx":9333 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = high.data - * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("low is not double") - * if low.ndim != 1: - */ - } - - /* "talib/func.pyx":9335 - * 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/func.pyx":9336 - * raise 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__1057, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9336, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 9336, __pyx_L1_error) - - /* "talib/func.pyx":9335 - * 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/func.pyx":9337 - * 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 = low.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":9338 - * raise Exception("low has wrong dimensions") - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< - * low_data = low.data - * length = high.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9338, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 9338, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":9337 - * 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 = low.data - */ - } - - /* "talib/func.pyx":9339 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = low.data # <<<<<<<<<<<<<< - * length = high.shape[0] - * if length != low.shape[0]: - */ - __pyx_v_low_data = ((double *)__pyx_v_low->data); - - /* "talib/func.pyx":9340 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":9341 - * low_data = low.data - * length = high.shape[0] - * if length != low.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - __pyx_t_1 = ((__pyx_v_length != (__pyx_v_low->dimensions[0])) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":9342 - * length = high.shape[0] - * if length != low.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1058, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9342, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 9342, __pyx_L1_error) - - /* "talib/func.pyx":9341 - * low_data = low.data - * length = high.shape[0] - * if length != low.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - } - - /* "talib/func.pyx":9343 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = high_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":9344 - * raise Exception("input lengths are different") - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = high_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":9345 - * begidx = 0 - * for i from 0 <= i < length: - * val = high_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); - - /* "talib/func.pyx":9346 - * for i from 0 <= i < length: - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":9347 - * val = high_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = low_data[i] - * if val != val: - */ - goto __pyx_L10_continue; - - /* "talib/func.pyx":9346 - * for i from 0 <= i < length: - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - } - - /* "talib/func.pyx":9348 - * if val != val: - * continue - * val = low_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); - - /* "talib/func.pyx":9349 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":9350 - * val = low_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L10_continue; - - /* "talib/func.pyx":9349 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":9351 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":9352 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L11_break; - __pyx_L10_continue:; - } - /*else*/ { - - /* "talib/func.pyx":9354 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_PLUS_DM_Lookback( timeperiod ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1059, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9354, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 9354, __pyx_L1_error) - } - __pyx_L11_break:; - - /* "talib/func.pyx":9355 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_PLUS_DM_Lookback( timeperiod ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":9356 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_PLUS_DM_Lookback( timeperiod ) # <<<<<<<<<<<<<< - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_PLUS_DM_Lookback(__pyx_v_timeperiod)); - - /* "talib/func.pyx":9357 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_PLUS_DM_Lookback( timeperiod ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9357, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 9357, __pyx_L1_error) - __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":9358 - * lookback = begidx + lib.TA_PLUS_DM_Lookback( timeperiod ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - */ - __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); - - /* "talib/func.pyx":9359 - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outreal_data[i] = NaN - * retCode = lib.TA_PLUS_DM( 0 , endidx , (high_data+begidx) , (low_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":9360 - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN # <<<<<<<<<<<<<< - * retCode = lib.TA_PLUS_DM( 0 , endidx , (high_data+begidx) , (low_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_PLUS_DM", retCode) - */ - (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_4func_NaN; - } - - /* "talib/func.pyx":9361 - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - * retCode = lib.TA_PLUS_DM( 0 , endidx , (high_data+begidx) , (low_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_PLUS_DM", retCode) - * return outreal - */ - __pyx_v_retCode = TA_PLUS_DM(0, __pyx_v_endidx, ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); - - /* "talib/func.pyx":9362 - * outreal_data[i] = NaN - * retCode = lib.TA_PLUS_DM( 0 , endidx , (high_data+begidx) , (low_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _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, 9362, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":9363 - * retCode = lib.TA_PLUS_DM( 0 , endidx , (high_data+begidx) , (low_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_PLUS_DM", retCode) - * return outreal # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); - __pyx_r = ((PyObject *)__pyx_v_outreal); - goto __pyx_L0; - - /* "talib/func.pyx":9303 - * @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.func.PLUS_DM", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outreal); - __Pyx_XDECREF((PyObject *)__pyx_v_high); - __Pyx_XDECREF((PyObject *)__pyx_v_low); - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "talib/func.pyx":9367 - * @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_4func_253PPO(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_253PPO = {"PPO", (PyCFunction)__pyx_pw_5talib_4func_253PPO, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_252PPO}; -static PyObject *__pyx_pw_5talib_4func_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, 9367, __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, 9367, __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, 9367, __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, 9367, __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, 9367, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 9367, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_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; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - TA_RetCode __pyx_v_retCode; - double *__pyx_v_real_data; - int __pyx_v_outbegidx; - int __pyx_v_outnbelement; - PyArrayObject *__pyx_v_outreal = 0; - double *__pyx_v_outreal_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __Pyx_RefNannySetupContext("PPO", 0); - __Pyx_INCREF((PyObject *)__pyx_v_real); - - /* "talib/func.pyx":9391 - * np.ndarray outreal - * double* outreal_data - * 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/func.pyx":9392 - * double* outreal_data - * 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__1060, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9392, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 9392, __pyx_L1_error) - - /* "talib/func.pyx":9391 - * np.ndarray outreal - * double* outreal_data - * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("real is not double") - * if real.ndim != 1: - */ - } - - /* "talib/func.pyx":9393 - * 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/func.pyx":9394 - * 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__1061, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9394, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 9394, __pyx_L1_error) - - /* "talib/func.pyx":9393 - * 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/func.pyx":9395 - * 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 = real.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":9396 - * raise Exception("real has wrong dimensions") - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< - * real_data = real.data - * length = real.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9396, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 9396, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":9395 - * 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 = real.data - */ - } - - /* "talib/func.pyx":9397 - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) - * real_data = real.data # <<<<<<<<<<<<<< - * length = real.shape[0] - * begidx = 0 - */ - __pyx_v_real_data = ((double *)__pyx_v_real->data); - - /* "talib/func.pyx":9398 - * real = PyArray_GETCONTIGUOUS(real) - * real_data = real.data - * length = real.shape[0] # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_v_length = (__pyx_v_real->dimensions[0]); - - /* "talib/func.pyx":9399 - * real_data = real.data - * length = real.shape[0] - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = real_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":9400 - * length = real.shape[0] - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = real_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":9401 - * begidx = 0 - * for i from 0 <= i < length: - * val = real_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_real_data[__pyx_v_i]); - - /* "talib/func.pyx":9402 - * for i from 0 <= i < length: - * val = real_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":9403 - * val = real_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L6_continue; - - /* "talib/func.pyx":9402 - * for i from 0 <= i < length: - * val = real_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":9404 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":9405 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L7_break; - __pyx_L6_continue:; - } - /*else*/ { - - /* "talib/func.pyx":9407 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_PPO_Lookback( fastperiod , slowperiod , matype ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1062, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9407, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 9407, __pyx_L1_error) - } - __pyx_L7_break:; - - /* "talib/func.pyx":9408 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_PPO_Lookback( fastperiod , slowperiod , matype ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":9409 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_PPO_Lookback( fastperiod , slowperiod , matype ) # <<<<<<<<<<<<<< - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_PPO_Lookback(__pyx_v_fastperiod, __pyx_v_slowperiod, __pyx_v_matype)); - - /* "talib/func.pyx":9410 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_PPO_Lookback( fastperiod , slowperiod , matype ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9410, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 9410, __pyx_L1_error) - __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":9411 - * lookback = begidx + lib.TA_PPO_Lookback( fastperiod , slowperiod , matype ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - */ - __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); - - /* "talib/func.pyx":9412 - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outreal_data[i] = NaN - * retCode = lib.TA_PPO( 0 , endidx , (real_data+begidx) , fastperiod , slowperiod , matype , &outbegidx , &outnbelement , (outreal_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":9413 - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN # <<<<<<<<<<<<<< - * retCode = lib.TA_PPO( 0 , endidx , (real_data+begidx) , fastperiod , slowperiod , matype , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_PPO", retCode) - */ - (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_4func_NaN; - } - - /* "talib/func.pyx":9414 - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - * retCode = lib.TA_PPO( 0 , endidx , (real_data+begidx) , fastperiod , slowperiod , matype , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_PPO", retCode) - * return outreal - */ - __pyx_v_retCode = TA_PPO(0, __pyx_v_endidx, ((double *)(__pyx_v_real_data + __pyx_v_begidx)), __pyx_v_fastperiod, __pyx_v_slowperiod, __pyx_v_matype, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); - - /* "talib/func.pyx":9415 - * outreal_data[i] = NaN - * retCode = lib.TA_PPO( 0 , endidx , (real_data+begidx) , fastperiod , slowperiod , matype , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _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, 9415, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":9416 - * retCode = lib.TA_PPO( 0 , endidx , (real_data+begidx) , fastperiod , slowperiod , matype , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_PPO", retCode) - * return outreal # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); - __pyx_r = ((PyObject *)__pyx_v_outreal); - goto __pyx_L0; - - /* "talib/func.pyx":9367 - * @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.func.PPO", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outreal); - __Pyx_XDECREF((PyObject *)__pyx_v_real); - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "talib/func.pyx":9420 - * @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_4func_255ROC(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_255ROC = {"ROC", (PyCFunction)__pyx_pw_5talib_4func_255ROC, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_254ROC}; -static PyObject *__pyx_pw_5talib_4func_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, 9420, __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, 9420, __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, 9420, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 9420, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_254ROC(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod) { - npy_intp __pyx_v_length; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - TA_RetCode __pyx_v_retCode; - double *__pyx_v_real_data; - int __pyx_v_outbegidx; - int __pyx_v_outnbelement; - PyArrayObject *__pyx_v_outreal = 0; - double *__pyx_v_outreal_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __Pyx_RefNannySetupContext("ROC", 0); - __Pyx_INCREF((PyObject *)__pyx_v_real); - - /* "talib/func.pyx":9442 - * np.ndarray outreal - * double* outreal_data - * 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/func.pyx":9443 - * double* outreal_data - * 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__1063, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9443, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 9443, __pyx_L1_error) - - /* "talib/func.pyx":9442 - * np.ndarray outreal - * double* outreal_data - * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("real is not double") - * if real.ndim != 1: - */ - } - - /* "talib/func.pyx":9444 - * 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/func.pyx":9445 - * 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__1064, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9445, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 9445, __pyx_L1_error) - - /* "talib/func.pyx":9444 - * 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/func.pyx":9446 - * 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 = real.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":9447 - * raise Exception("real has wrong dimensions") - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< - * real_data = real.data - * length = real.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9447, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 9447, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":9446 - * 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 = real.data - */ - } - - /* "talib/func.pyx":9448 - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) - * real_data = real.data # <<<<<<<<<<<<<< - * length = real.shape[0] - * begidx = 0 - */ - __pyx_v_real_data = ((double *)__pyx_v_real->data); - - /* "talib/func.pyx":9449 - * real = PyArray_GETCONTIGUOUS(real) - * real_data = real.data - * length = real.shape[0] # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_v_length = (__pyx_v_real->dimensions[0]); - - /* "talib/func.pyx":9450 - * real_data = real.data - * length = real.shape[0] - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = real_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":9451 - * length = real.shape[0] - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = real_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":9452 - * begidx = 0 - * for i from 0 <= i < length: - * val = real_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_real_data[__pyx_v_i]); - - /* "talib/func.pyx":9453 - * for i from 0 <= i < length: - * val = real_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":9454 - * val = real_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L6_continue; - - /* "talib/func.pyx":9453 - * for i from 0 <= i < length: - * val = real_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":9455 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":9456 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L7_break; - __pyx_L6_continue:; - } - /*else*/ { - - /* "talib/func.pyx":9458 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_ROC_Lookback( timeperiod ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1065, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9458, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 9458, __pyx_L1_error) - } - __pyx_L7_break:; - - /* "talib/func.pyx":9459 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_ROC_Lookback( timeperiod ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":9460 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_ROC_Lookback( timeperiod ) # <<<<<<<<<<<<<< - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_ROC_Lookback(__pyx_v_timeperiod)); - - /* "talib/func.pyx":9461 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_ROC_Lookback( timeperiod ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9461, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 9461, __pyx_L1_error) - __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":9462 - * lookback = begidx + lib.TA_ROC_Lookback( timeperiod ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - */ - __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); - - /* "talib/func.pyx":9463 - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outreal_data[i] = NaN - * retCode = lib.TA_ROC( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":9464 - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN # <<<<<<<<<<<<<< - * retCode = lib.TA_ROC( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_ROC", retCode) - */ - (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_4func_NaN; - } - - /* "talib/func.pyx":9465 - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - * retCode = lib.TA_ROC( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_ROC", retCode) - * return outreal - */ - __pyx_v_retCode = TA_ROC(0, __pyx_v_endidx, ((double *)(__pyx_v_real_data + __pyx_v_begidx)), __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); - - /* "talib/func.pyx":9466 - * outreal_data[i] = NaN - * retCode = lib.TA_ROC( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _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, 9466, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":9467 - * retCode = lib.TA_ROC( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_ROC", retCode) - * return outreal # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); - __pyx_r = ((PyObject *)__pyx_v_outreal); - goto __pyx_L0; - - /* "talib/func.pyx":9420 - * @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.func.ROC", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outreal); - __Pyx_XDECREF((PyObject *)__pyx_v_real); - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "talib/func.pyx":9471 - * @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_4func_257ROCP(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_257ROCP = {"ROCP", (PyCFunction)__pyx_pw_5talib_4func_257ROCP, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_256ROCP}; -static PyObject *__pyx_pw_5talib_4func_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, 9471, __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, 9471, __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, 9471, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 9471, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_256ROCP(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod) { - npy_intp __pyx_v_length; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - TA_RetCode __pyx_v_retCode; - double *__pyx_v_real_data; - int __pyx_v_outbegidx; - int __pyx_v_outnbelement; - PyArrayObject *__pyx_v_outreal = 0; - double *__pyx_v_outreal_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __Pyx_RefNannySetupContext("ROCP", 0); - __Pyx_INCREF((PyObject *)__pyx_v_real); - - /* "talib/func.pyx":9493 - * np.ndarray outreal - * double* outreal_data - * 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/func.pyx":9494 - * double* outreal_data - * 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__1066, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9494, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 9494, __pyx_L1_error) - - /* "talib/func.pyx":9493 - * np.ndarray outreal - * double* outreal_data - * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("real is not double") - * if real.ndim != 1: - */ - } - - /* "talib/func.pyx":9495 - * 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/func.pyx":9496 - * 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__1067, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9496, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 9496, __pyx_L1_error) - - /* "talib/func.pyx":9495 - * 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/func.pyx":9497 - * 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 = real.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":9498 - * raise Exception("real has wrong dimensions") - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< - * real_data = real.data - * length = real.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9498, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 9498, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":9497 - * 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 = real.data - */ - } - - /* "talib/func.pyx":9499 - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) - * real_data = real.data # <<<<<<<<<<<<<< - * length = real.shape[0] - * begidx = 0 - */ - __pyx_v_real_data = ((double *)__pyx_v_real->data); - - /* "talib/func.pyx":9500 - * real = PyArray_GETCONTIGUOUS(real) - * real_data = real.data - * length = real.shape[0] # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_v_length = (__pyx_v_real->dimensions[0]); - - /* "talib/func.pyx":9501 - * real_data = real.data - * length = real.shape[0] - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = real_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":9502 - * length = real.shape[0] - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = real_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":9503 - * begidx = 0 - * for i from 0 <= i < length: - * val = real_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_real_data[__pyx_v_i]); - - /* "talib/func.pyx":9504 - * for i from 0 <= i < length: - * val = real_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":9505 - * val = real_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L6_continue; - - /* "talib/func.pyx":9504 - * for i from 0 <= i < length: - * val = real_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":9506 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":9507 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L7_break; - __pyx_L6_continue:; - } - /*else*/ { - - /* "talib/func.pyx":9509 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_ROCP_Lookback( timeperiod ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1068, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9509, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 9509, __pyx_L1_error) - } - __pyx_L7_break:; - - /* "talib/func.pyx":9510 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_ROCP_Lookback( timeperiod ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":9511 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_ROCP_Lookback( timeperiod ) # <<<<<<<<<<<<<< - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_ROCP_Lookback(__pyx_v_timeperiod)); - - /* "talib/func.pyx":9512 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_ROCP_Lookback( timeperiod ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9512, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 9512, __pyx_L1_error) - __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":9513 - * lookback = begidx + lib.TA_ROCP_Lookback( timeperiod ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - */ - __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); - - /* "talib/func.pyx":9514 - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outreal_data[i] = NaN - * retCode = lib.TA_ROCP( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":9515 - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN # <<<<<<<<<<<<<< - * retCode = lib.TA_ROCP( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_ROCP", retCode) - */ - (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_4func_NaN; - } - - /* "talib/func.pyx":9516 - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - * retCode = lib.TA_ROCP( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_ROCP", retCode) - * return outreal - */ - __pyx_v_retCode = TA_ROCP(0, __pyx_v_endidx, ((double *)(__pyx_v_real_data + __pyx_v_begidx)), __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); - - /* "talib/func.pyx":9517 - * outreal_data[i] = NaN - * retCode = lib.TA_ROCP( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _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, 9517, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":9518 - * retCode = lib.TA_ROCP( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_ROCP", retCode) - * return outreal # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); - __pyx_r = ((PyObject *)__pyx_v_outreal); - goto __pyx_L0; - - /* "talib/func.pyx":9471 - * @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.func.ROCP", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outreal); - __Pyx_XDECREF((PyObject *)__pyx_v_real); - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "talib/func.pyx":9522 - * @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_4func_259ROCR(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_259ROCR = {"ROCR", (PyCFunction)__pyx_pw_5talib_4func_259ROCR, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_258ROCR}; -static PyObject *__pyx_pw_5talib_4func_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, 9522, __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, 9522, __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, 9522, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 9522, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_258ROCR(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod) { - npy_intp __pyx_v_length; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - TA_RetCode __pyx_v_retCode; - double *__pyx_v_real_data; - int __pyx_v_outbegidx; - int __pyx_v_outnbelement; - PyArrayObject *__pyx_v_outreal = 0; - double *__pyx_v_outreal_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __Pyx_RefNannySetupContext("ROCR", 0); - __Pyx_INCREF((PyObject *)__pyx_v_real); - - /* "talib/func.pyx":9544 - * np.ndarray outreal - * double* outreal_data - * 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/func.pyx":9545 - * double* outreal_data - * 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__1069, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9545, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 9545, __pyx_L1_error) - - /* "talib/func.pyx":9544 - * np.ndarray outreal - * double* outreal_data - * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("real is not double") - * if real.ndim != 1: - */ - } - - /* "talib/func.pyx":9546 - * 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/func.pyx":9547 - * 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__1070, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9547, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 9547, __pyx_L1_error) - - /* "talib/func.pyx":9546 - * 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/func.pyx":9548 - * 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 = real.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":9549 - * raise Exception("real has wrong dimensions") - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< - * real_data = real.data - * length = real.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9549, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 9549, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":9548 - * 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 = real.data - */ - } - - /* "talib/func.pyx":9550 - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) - * real_data = real.data # <<<<<<<<<<<<<< - * length = real.shape[0] - * begidx = 0 - */ - __pyx_v_real_data = ((double *)__pyx_v_real->data); - - /* "talib/func.pyx":9551 - * real = PyArray_GETCONTIGUOUS(real) - * real_data = real.data - * length = real.shape[0] # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_v_length = (__pyx_v_real->dimensions[0]); - - /* "talib/func.pyx":9552 - * real_data = real.data - * length = real.shape[0] - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = real_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":9553 - * length = real.shape[0] - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = real_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":9554 - * begidx = 0 - * for i from 0 <= i < length: - * val = real_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_real_data[__pyx_v_i]); - - /* "talib/func.pyx":9555 - * for i from 0 <= i < length: - * val = real_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":9556 - * val = real_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L6_continue; - - /* "talib/func.pyx":9555 - * for i from 0 <= i < length: - * val = real_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":9557 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":9558 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L7_break; - __pyx_L6_continue:; - } - /*else*/ { - - /* "talib/func.pyx":9560 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_ROCR_Lookback( timeperiod ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1071, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9560, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 9560, __pyx_L1_error) - } - __pyx_L7_break:; - - /* "talib/func.pyx":9561 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_ROCR_Lookback( timeperiod ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":9562 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_ROCR_Lookback( timeperiod ) # <<<<<<<<<<<<<< - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_ROCR_Lookback(__pyx_v_timeperiod)); - - /* "talib/func.pyx":9563 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_ROCR_Lookback( timeperiod ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9563, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 9563, __pyx_L1_error) - __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":9564 - * lookback = begidx + lib.TA_ROCR_Lookback( timeperiod ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - */ - __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); - - /* "talib/func.pyx":9565 - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outreal_data[i] = NaN - * retCode = lib.TA_ROCR( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":9566 - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN # <<<<<<<<<<<<<< - * retCode = lib.TA_ROCR( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_ROCR", retCode) - */ - (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_4func_NaN; - } - - /* "talib/func.pyx":9567 - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - * retCode = lib.TA_ROCR( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_ROCR", retCode) - * return outreal - */ - __pyx_v_retCode = TA_ROCR(0, __pyx_v_endidx, ((double *)(__pyx_v_real_data + __pyx_v_begidx)), __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); - - /* "talib/func.pyx":9568 - * outreal_data[i] = NaN - * retCode = lib.TA_ROCR( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _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, 9568, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":9569 - * retCode = lib.TA_ROCR( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_ROCR", retCode) - * return outreal # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); - __pyx_r = ((PyObject *)__pyx_v_outreal); - goto __pyx_L0; - - /* "talib/func.pyx":9522 - * @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.func.ROCR", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outreal); - __Pyx_XDECREF((PyObject *)__pyx_v_real); - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "talib/func.pyx":9573 - * @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_4func_261ROCR100(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_261ROCR100 = {"ROCR100", (PyCFunction)__pyx_pw_5talib_4func_261ROCR100, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_260ROCR100}; -static PyObject *__pyx_pw_5talib_4func_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, 9573, __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, 9573, __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, 9573, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 9573, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_260ROCR100(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod) { - npy_intp __pyx_v_length; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - TA_RetCode __pyx_v_retCode; - double *__pyx_v_real_data; - int __pyx_v_outbegidx; - int __pyx_v_outnbelement; - PyArrayObject *__pyx_v_outreal = 0; - double *__pyx_v_outreal_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __Pyx_RefNannySetupContext("ROCR100", 0); - __Pyx_INCREF((PyObject *)__pyx_v_real); - - /* "talib/func.pyx":9595 - * np.ndarray outreal - * double* outreal_data - * 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/func.pyx":9596 - * double* outreal_data - * 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__1072, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9596, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 9596, __pyx_L1_error) - - /* "talib/func.pyx":9595 - * np.ndarray outreal - * double* outreal_data - * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("real is not double") - * if real.ndim != 1: - */ - } - - /* "talib/func.pyx":9597 - * 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/func.pyx":9598 - * 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__1073, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9598, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 9598, __pyx_L1_error) - - /* "talib/func.pyx":9597 - * 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/func.pyx":9599 - * 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 = real.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":9600 - * raise Exception("real has wrong dimensions") - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< - * real_data = real.data - * length = real.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9600, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 9600, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":9599 - * 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 = real.data - */ - } - - /* "talib/func.pyx":9601 - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) - * real_data = real.data # <<<<<<<<<<<<<< - * length = real.shape[0] - * begidx = 0 - */ - __pyx_v_real_data = ((double *)__pyx_v_real->data); - - /* "talib/func.pyx":9602 - * real = PyArray_GETCONTIGUOUS(real) - * real_data = real.data - * length = real.shape[0] # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_v_length = (__pyx_v_real->dimensions[0]); - - /* "talib/func.pyx":9603 - * real_data = real.data - * length = real.shape[0] - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = real_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":9604 - * length = real.shape[0] - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = real_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":9605 - * begidx = 0 - * for i from 0 <= i < length: - * val = real_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_real_data[__pyx_v_i]); - - /* "talib/func.pyx":9606 - * for i from 0 <= i < length: - * val = real_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":9607 - * val = real_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L6_continue; - - /* "talib/func.pyx":9606 - * for i from 0 <= i < length: - * val = real_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":9608 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":9609 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L7_break; - __pyx_L6_continue:; - } - /*else*/ { - - /* "talib/func.pyx":9611 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_ROCR100_Lookback( timeperiod ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1074, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9611, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 9611, __pyx_L1_error) - } - __pyx_L7_break:; - - /* "talib/func.pyx":9612 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_ROCR100_Lookback( timeperiod ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":9613 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_ROCR100_Lookback( timeperiod ) # <<<<<<<<<<<<<< - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_ROCR100_Lookback(__pyx_v_timeperiod)); - - /* "talib/func.pyx":9614 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_ROCR100_Lookback( timeperiod ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9614, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 9614, __pyx_L1_error) - __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":9615 - * lookback = begidx + lib.TA_ROCR100_Lookback( timeperiod ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - */ - __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); - - /* "talib/func.pyx":9616 - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outreal_data[i] = NaN - * retCode = lib.TA_ROCR100( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":9617 - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN # <<<<<<<<<<<<<< - * retCode = lib.TA_ROCR100( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_ROCR100", retCode) - */ - (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_4func_NaN; - } - - /* "talib/func.pyx":9618 - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - * retCode = lib.TA_ROCR100( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_ROCR100", retCode) - * return outreal - */ - __pyx_v_retCode = TA_ROCR100(0, __pyx_v_endidx, ((double *)(__pyx_v_real_data + __pyx_v_begidx)), __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); - - /* "talib/func.pyx":9619 - * outreal_data[i] = NaN - * retCode = lib.TA_ROCR100( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _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, 9619, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":9620 - * retCode = lib.TA_ROCR100( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_ROCR100", retCode) - * return outreal # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); - __pyx_r = ((PyObject *)__pyx_v_outreal); - goto __pyx_L0; - - /* "talib/func.pyx":9573 - * @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.func.ROCR100", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outreal); - __Pyx_XDECREF((PyObject *)__pyx_v_real); - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "talib/func.pyx":9624 - * @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_4func_263RSI(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_263RSI = {"RSI", (PyCFunction)__pyx_pw_5talib_4func_263RSI, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_262RSI}; -static PyObject *__pyx_pw_5talib_4func_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, 9624, __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, 9624, __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, 9624, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 9624, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_262RSI(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod) { - npy_intp __pyx_v_length; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - TA_RetCode __pyx_v_retCode; - double *__pyx_v_real_data; - int __pyx_v_outbegidx; - int __pyx_v_outnbelement; - PyArrayObject *__pyx_v_outreal = 0; - double *__pyx_v_outreal_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __Pyx_RefNannySetupContext("RSI", 0); - __Pyx_INCREF((PyObject *)__pyx_v_real); - - /* "talib/func.pyx":9646 - * np.ndarray outreal - * double* outreal_data - * 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/func.pyx":9647 - * double* outreal_data - * 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__1075, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9647, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 9647, __pyx_L1_error) - - /* "talib/func.pyx":9646 - * np.ndarray outreal - * double* outreal_data - * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("real is not double") - * if real.ndim != 1: - */ - } - - /* "talib/func.pyx":9648 - * 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/func.pyx":9649 - * 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__1076, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9649, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 9649, __pyx_L1_error) - - /* "talib/func.pyx":9648 - * 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/func.pyx":9650 - * 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 = real.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":9651 - * raise Exception("real has wrong dimensions") - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< - * real_data = real.data - * length = real.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9651, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 9651, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":9650 - * 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 = real.data - */ - } - - /* "talib/func.pyx":9652 - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) - * real_data = real.data # <<<<<<<<<<<<<< - * length = real.shape[0] - * begidx = 0 - */ - __pyx_v_real_data = ((double *)__pyx_v_real->data); - - /* "talib/func.pyx":9653 - * real = PyArray_GETCONTIGUOUS(real) - * real_data = real.data - * length = real.shape[0] # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_v_length = (__pyx_v_real->dimensions[0]); - - /* "talib/func.pyx":9654 - * real_data = real.data - * length = real.shape[0] - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = real_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":9655 - * length = real.shape[0] - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = real_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":9656 - * begidx = 0 - * for i from 0 <= i < length: - * val = real_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_real_data[__pyx_v_i]); - - /* "talib/func.pyx":9657 - * for i from 0 <= i < length: - * val = real_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":9658 - * val = real_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L6_continue; - - /* "talib/func.pyx":9657 - * for i from 0 <= i < length: - * val = real_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":9659 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":9660 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L7_break; - __pyx_L6_continue:; - } - /*else*/ { - - /* "talib/func.pyx":9662 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_RSI_Lookback( timeperiod ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1077, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9662, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 9662, __pyx_L1_error) - } - __pyx_L7_break:; - - /* "talib/func.pyx":9663 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_RSI_Lookback( timeperiod ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":9664 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_RSI_Lookback( timeperiod ) # <<<<<<<<<<<<<< - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_RSI_Lookback(__pyx_v_timeperiod)); - - /* "talib/func.pyx":9665 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_RSI_Lookback( timeperiod ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9665, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 9665, __pyx_L1_error) - __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":9666 - * lookback = begidx + lib.TA_RSI_Lookback( timeperiod ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - */ - __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); - - /* "talib/func.pyx":9667 - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outreal_data[i] = NaN - * retCode = lib.TA_RSI( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":9668 - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN # <<<<<<<<<<<<<< - * retCode = lib.TA_RSI( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_RSI", retCode) - */ - (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_4func_NaN; - } - - /* "talib/func.pyx":9669 - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - * retCode = lib.TA_RSI( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_RSI", retCode) - * return outreal - */ - __pyx_v_retCode = TA_RSI(0, __pyx_v_endidx, ((double *)(__pyx_v_real_data + __pyx_v_begidx)), __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); - - /* "talib/func.pyx":9670 - * outreal_data[i] = NaN - * retCode = lib.TA_RSI( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _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, 9670, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":9671 - * retCode = lib.TA_RSI( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_RSI", retCode) - * return outreal # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); - __pyx_r = ((PyObject *)__pyx_v_outreal); - goto __pyx_L0; - - /* "talib/func.pyx":9624 - * @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.func.RSI", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outreal); - __Pyx_XDECREF((PyObject *)__pyx_v_real); - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "talib/func.pyx":9675 - * @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_4func_265SAR(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_265SAR = {"SAR", (PyCFunction)__pyx_pw_5talib_4func_265SAR, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_264SAR}; -static PyObject *__pyx_pw_5talib_4func_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, 9675, __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, 9675, __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, 9675, __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, 9675, __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, 9675, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 9675, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 9675, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_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; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - TA_RetCode __pyx_v_retCode; - double *__pyx_v_high_data; - double *__pyx_v_low_data; - int __pyx_v_outbegidx; - int __pyx_v_outnbelement; - PyArrayObject *__pyx_v_outreal = 0; - double *__pyx_v_outreal_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __Pyx_RefNannySetupContext("SAR", 0); - __Pyx_INCREF((PyObject *)__pyx_v_high); - __Pyx_INCREF((PyObject *)__pyx_v_low); - - /* "talib/func.pyx":9699 - * np.ndarray outreal - * double* outreal_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/func.pyx":9700 - * double* outreal_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__1078, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9700, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 9700, __pyx_L1_error) - - /* "talib/func.pyx":9699 - * np.ndarray outreal - * double* outreal_data - * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("high is not double") - * if high.ndim != 1: - */ - } - - /* "talib/func.pyx":9701 - * 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/func.pyx":9702 - * raise 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__1079, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9702, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 9702, __pyx_L1_error) - - /* "talib/func.pyx":9701 - * 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/func.pyx":9703 - * 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 = high.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":9704 - * raise Exception("high has wrong dimensions") - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< - * high_data = 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, 9704, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 9704, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":9703 - * 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 = high.data - */ - } - - /* "talib/func.pyx":9705 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":9706 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":9707 - * high_data = 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__1080, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9707, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 9707, __pyx_L1_error) - - /* "talib/func.pyx":9706 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = high.data - * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("low is not double") - * if low.ndim != 1: - */ - } - - /* "talib/func.pyx":9708 - * 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/func.pyx":9709 - * raise 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__1081, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9709, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 9709, __pyx_L1_error) - - /* "talib/func.pyx":9708 - * 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/func.pyx":9710 - * 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 = low.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":9711 - * raise Exception("low has wrong dimensions") - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< - * low_data = low.data - * length = high.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9711, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 9711, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":9710 - * 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 = low.data - */ - } - - /* "talib/func.pyx":9712 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = low.data # <<<<<<<<<<<<<< - * length = high.shape[0] - * if length != low.shape[0]: - */ - __pyx_v_low_data = ((double *)__pyx_v_low->data); - - /* "talib/func.pyx":9713 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":9714 - * low_data = low.data - * length = high.shape[0] - * if length != low.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - __pyx_t_1 = ((__pyx_v_length != (__pyx_v_low->dimensions[0])) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":9715 - * length = high.shape[0] - * if length != low.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1082, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9715, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 9715, __pyx_L1_error) - - /* "talib/func.pyx":9714 - * low_data = low.data - * length = high.shape[0] - * if length != low.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - } - - /* "talib/func.pyx":9716 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = high_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":9717 - * raise Exception("input lengths are different") - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = high_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":9718 - * begidx = 0 - * for i from 0 <= i < length: - * val = high_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); - - /* "talib/func.pyx":9719 - * for i from 0 <= i < length: - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":9720 - * val = high_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = low_data[i] - * if val != val: - */ - goto __pyx_L10_continue; - - /* "talib/func.pyx":9719 - * for i from 0 <= i < length: - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - } - - /* "talib/func.pyx":9721 - * if val != val: - * continue - * val = low_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); - - /* "talib/func.pyx":9722 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":9723 - * val = low_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L10_continue; - - /* "talib/func.pyx":9722 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":9724 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":9725 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L11_break; - __pyx_L10_continue:; - } - /*else*/ { - - /* "talib/func.pyx":9727 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_SAR_Lookback( acceleration , maximum ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1083, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9727, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 9727, __pyx_L1_error) - } - __pyx_L11_break:; - - /* "talib/func.pyx":9728 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_SAR_Lookback( acceleration , maximum ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":9729 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_SAR_Lookback( acceleration , maximum ) # <<<<<<<<<<<<<< - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_SAR_Lookback(__pyx_v_acceleration, __pyx_v_maximum)); - - /* "talib/func.pyx":9730 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_SAR_Lookback( acceleration , maximum ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9730, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 9730, __pyx_L1_error) - __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":9731 - * lookback = begidx + lib.TA_SAR_Lookback( acceleration , maximum ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - */ - __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); - - /* "talib/func.pyx":9732 - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outreal_data[i] = NaN - * retCode = lib.TA_SAR( 0 , endidx , (high_data+begidx) , (low_data+begidx) , acceleration , maximum , &outbegidx , &outnbelement , (outreal_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":9733 - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN # <<<<<<<<<<<<<< - * retCode = lib.TA_SAR( 0 , endidx , (high_data+begidx) , (low_data+begidx) , acceleration , maximum , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_SAR", retCode) - */ - (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_4func_NaN; - } - - /* "talib/func.pyx":9734 - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - * retCode = lib.TA_SAR( 0 , endidx , (high_data+begidx) , (low_data+begidx) , acceleration , maximum , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_SAR", retCode) - * return outreal - */ - __pyx_v_retCode = TA_SAR(0, __pyx_v_endidx, ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), __pyx_v_acceleration, __pyx_v_maximum, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); - - /* "talib/func.pyx":9735 - * outreal_data[i] = NaN - * retCode = lib.TA_SAR( 0 , endidx , (high_data+begidx) , (low_data+begidx) , acceleration , maximum , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _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, 9735, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":9736 - * retCode = lib.TA_SAR( 0 , endidx , (high_data+begidx) , (low_data+begidx) , acceleration , maximum , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_SAR", retCode) - * return outreal # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); - __pyx_r = ((PyObject *)__pyx_v_outreal); - goto __pyx_L0; - - /* "talib/func.pyx":9675 - * @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.func.SAR", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outreal); - __Pyx_XDECREF((PyObject *)__pyx_v_high); - __Pyx_XDECREF((PyObject *)__pyx_v_low); - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "talib/func.pyx":9740 - * @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_4func_267SAREXT(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_267SAREXT = {"SAREXT", (PyCFunction)__pyx_pw_5talib_4func_267SAREXT, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_266SAREXT}; -static PyObject *__pyx_pw_5talib_4func_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, 9740, __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, 9740, __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, 9740, __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, 9740, __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, 9740, __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, 9740, __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, 9740, __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, 9740, __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, 9740, __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, 9740, __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, 9740, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 9740, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 9740, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_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; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - TA_RetCode __pyx_v_retCode; - double *__pyx_v_high_data; - double *__pyx_v_low_data; - int __pyx_v_outbegidx; - int __pyx_v_outnbelement; - PyArrayObject *__pyx_v_outreal = 0; - double *__pyx_v_outreal_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __Pyx_RefNannySetupContext("SAREXT", 0); - __Pyx_INCREF((PyObject *)__pyx_v_high); - __Pyx_INCREF((PyObject *)__pyx_v_low); - - /* "talib/func.pyx":9770 - * np.ndarray outreal - * double* outreal_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/func.pyx":9771 - * double* outreal_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__1084, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9771, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 9771, __pyx_L1_error) - - /* "talib/func.pyx":9770 - * np.ndarray outreal - * double* outreal_data - * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("high is not double") - * if high.ndim != 1: - */ - } - - /* "talib/func.pyx":9772 - * 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/func.pyx":9773 - * raise 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__1085, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9773, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 9773, __pyx_L1_error) - - /* "talib/func.pyx":9772 - * 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/func.pyx":9774 - * 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 = high.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":9775 - * raise Exception("high has wrong dimensions") - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< - * high_data = 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, 9775, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 9775, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":9774 - * 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 = high.data - */ - } - - /* "talib/func.pyx":9776 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":9777 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":9778 - * high_data = 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__1086, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9778, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 9778, __pyx_L1_error) - - /* "talib/func.pyx":9777 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = high.data - * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("low is not double") - * if low.ndim != 1: - */ - } - - /* "talib/func.pyx":9779 - * 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/func.pyx":9780 - * raise 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__1087, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9780, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 9780, __pyx_L1_error) - - /* "talib/func.pyx":9779 - * 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/func.pyx":9781 - * 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 = low.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":9782 - * raise Exception("low has wrong dimensions") - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< - * low_data = low.data - * length = high.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9782, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 9782, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":9781 - * 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 = low.data - */ - } - - /* "talib/func.pyx":9783 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = low.data # <<<<<<<<<<<<<< - * length = high.shape[0] - * if length != low.shape[0]: - */ - __pyx_v_low_data = ((double *)__pyx_v_low->data); - - /* "talib/func.pyx":9784 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":9785 - * low_data = low.data - * length = high.shape[0] - * if length != low.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - __pyx_t_1 = ((__pyx_v_length != (__pyx_v_low->dimensions[0])) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":9786 - * length = high.shape[0] - * if length != low.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1088, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9786, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 9786, __pyx_L1_error) - - /* "talib/func.pyx":9785 - * low_data = low.data - * length = high.shape[0] - * if length != low.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - } - - /* "talib/func.pyx":9787 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = high_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":9788 - * raise Exception("input lengths are different") - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = high_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":9789 - * begidx = 0 - * for i from 0 <= i < length: - * val = high_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); - - /* "talib/func.pyx":9790 - * for i from 0 <= i < length: - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":9791 - * val = high_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = low_data[i] - * if val != val: - */ - goto __pyx_L10_continue; - - /* "talib/func.pyx":9790 - * for i from 0 <= i < length: - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - } - - /* "talib/func.pyx":9792 - * if val != val: - * continue - * val = low_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); - - /* "talib/func.pyx":9793 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":9794 - * val = low_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L10_continue; - - /* "talib/func.pyx":9793 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":9795 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":9796 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L11_break; - __pyx_L10_continue:; - } - /*else*/ { - - /* "talib/func.pyx":9798 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_SAREXT_Lookback( startvalue , offsetonreverse , accelerationinitlong , accelerationlong , accelerationmaxlong , accelerationinitshort , accelerationshort , accelerationmaxshort ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1089, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9798, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 9798, __pyx_L1_error) - } - __pyx_L11_break:; - - /* "talib/func.pyx":9799 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_SAREXT_Lookback( startvalue , offsetonreverse , accelerationinitlong , accelerationlong , accelerationmaxlong , accelerationinitshort , accelerationshort , accelerationmaxshort ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":9800 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_SAREXT_Lookback( startvalue , offsetonreverse , accelerationinitlong , accelerationlong , accelerationmaxlong , accelerationinitshort , accelerationshort , accelerationmaxshort ) # <<<<<<<<<<<<<< - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_SAREXT_Lookback(__pyx_v_startvalue, __pyx_v_offsetonreverse, __pyx_v_accelerationinitlong, __pyx_v_accelerationlong, __pyx_v_accelerationmaxlong, __pyx_v_accelerationinitshort, __pyx_v_accelerationshort, __pyx_v_accelerationmaxshort)); - - /* "talib/func.pyx":9801 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_SAREXT_Lookback( startvalue , offsetonreverse , accelerationinitlong , accelerationlong , accelerationmaxlong , accelerationinitshort , accelerationshort , accelerationmaxshort ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9801, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 9801, __pyx_L1_error) - __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":9802 - * lookback = begidx + lib.TA_SAREXT_Lookback( startvalue , offsetonreverse , accelerationinitlong , accelerationlong , accelerationmaxlong , accelerationinitshort , accelerationshort , accelerationmaxshort ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - */ - __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); - - /* "talib/func.pyx":9803 - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outreal_data[i] = NaN - * retCode = lib.TA_SAREXT( 0 , endidx , (high_data+begidx) , (low_data+begidx) , startvalue , offsetonreverse , accelerationinitlong , accelerationlong , accelerationmaxlong , accelerationinitshort , accelerationshort , accelerationmaxshort , &outbegidx , &outnbelement , (outreal_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":9804 - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN # <<<<<<<<<<<<<< - * retCode = lib.TA_SAREXT( 0 , endidx , (high_data+begidx) , (low_data+begidx) , startvalue , offsetonreverse , accelerationinitlong , accelerationlong , accelerationmaxlong , accelerationinitshort , accelerationshort , accelerationmaxshort , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_SAREXT", retCode) - */ - (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_4func_NaN; - } - - /* "talib/func.pyx":9805 - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - * retCode = lib.TA_SAREXT( 0 , endidx , (high_data+begidx) , (low_data+begidx) , startvalue , offsetonreverse , accelerationinitlong , accelerationlong , accelerationmaxlong , accelerationinitshort , accelerationshort , accelerationmaxshort , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_SAREXT", retCode) - * return outreal - */ - __pyx_v_retCode = TA_SAREXT(0, __pyx_v_endidx, ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), __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), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); - - /* "talib/func.pyx":9806 - * outreal_data[i] = NaN - * retCode = lib.TA_SAREXT( 0 , endidx , (high_data+begidx) , (low_data+begidx) , startvalue , offsetonreverse , accelerationinitlong , accelerationlong , accelerationmaxlong , accelerationinitshort , accelerationshort , accelerationmaxshort , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _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, 9806, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":9807 - * retCode = lib.TA_SAREXT( 0 , endidx , (high_data+begidx) , (low_data+begidx) , startvalue , offsetonreverse , accelerationinitlong , accelerationlong , accelerationmaxlong , accelerationinitshort , accelerationshort , accelerationmaxshort , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_SAREXT", retCode) - * return outreal # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); - __pyx_r = ((PyObject *)__pyx_v_outreal); - goto __pyx_L0; - - /* "talib/func.pyx":9740 - * @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.func.SAREXT", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outreal); - __Pyx_XDECREF((PyObject *)__pyx_v_high); - __Pyx_XDECREF((PyObject *)__pyx_v_low); - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "talib/func.pyx":9811 - * @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_4func_269SIN(PyObject *__pyx_self, PyObject *__pyx_v_real); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_269SIN = {"SIN", (PyCFunction)__pyx_pw_5talib_4func_269SIN, METH_O, __pyx_doc_5talib_4func_268SIN}; -static PyObject *__pyx_pw_5talib_4func_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, 9811, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_268SIN(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real) { - npy_intp __pyx_v_length; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - TA_RetCode __pyx_v_retCode; - double *__pyx_v_real_data; - int __pyx_v_outbegidx; - int __pyx_v_outnbelement; - PyArrayObject *__pyx_v_outreal = 0; - double *__pyx_v_outreal_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __Pyx_RefNannySetupContext("SIN", 0); - __Pyx_INCREF((PyObject *)__pyx_v_real); - - /* "talib/func.pyx":9831 - * np.ndarray outreal - * double* outreal_data - * 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/func.pyx":9832 - * double* outreal_data - * 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__1090, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9832, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 9832, __pyx_L1_error) - - /* "talib/func.pyx":9831 - * np.ndarray outreal - * double* outreal_data - * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("real is not double") - * if real.ndim != 1: - */ - } - - /* "talib/func.pyx":9833 - * 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/func.pyx":9834 - * 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__1091, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9834, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 9834, __pyx_L1_error) - - /* "talib/func.pyx":9833 - * 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/func.pyx":9835 - * 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 = real.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":9836 - * raise Exception("real has wrong dimensions") - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< - * real_data = real.data - * length = real.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9836, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 9836, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":9835 - * 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 = real.data - */ - } - - /* "talib/func.pyx":9837 - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) - * real_data = real.data # <<<<<<<<<<<<<< - * length = real.shape[0] - * begidx = 0 - */ - __pyx_v_real_data = ((double *)__pyx_v_real->data); - - /* "talib/func.pyx":9838 - * real = PyArray_GETCONTIGUOUS(real) - * real_data = real.data - * length = real.shape[0] # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_v_length = (__pyx_v_real->dimensions[0]); - - /* "talib/func.pyx":9839 - * real_data = real.data - * length = real.shape[0] - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = real_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":9840 - * length = real.shape[0] - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = real_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":9841 - * begidx = 0 - * for i from 0 <= i < length: - * val = real_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_real_data[__pyx_v_i]); - - /* "talib/func.pyx":9842 - * for i from 0 <= i < length: - * val = real_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":9843 - * val = real_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L6_continue; - - /* "talib/func.pyx":9842 - * for i from 0 <= i < length: - * val = real_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":9844 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":9845 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L7_break; - __pyx_L6_continue:; - } - /*else*/ { - - /* "talib/func.pyx":9847 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_SIN_Lookback( ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1092, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9847, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 9847, __pyx_L1_error) - } - __pyx_L7_break:; - - /* "talib/func.pyx":9848 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_SIN_Lookback( ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":9849 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_SIN_Lookback( ) # <<<<<<<<<<<<<< - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_SIN_Lookback()); - - /* "talib/func.pyx":9850 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_SIN_Lookback( ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9850, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 9850, __pyx_L1_error) - __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":9851 - * lookback = begidx + lib.TA_SIN_Lookback( ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - */ - __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); - - /* "talib/func.pyx":9852 - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outreal_data[i] = NaN - * retCode = lib.TA_SIN( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":9853 - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN # <<<<<<<<<<<<<< - * retCode = lib.TA_SIN( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_SIN", retCode) - */ - (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_4func_NaN; - } - - /* "talib/func.pyx":9854 - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - * retCode = lib.TA_SIN( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_SIN", retCode) - * return outreal - */ - __pyx_v_retCode = TA_SIN(0, __pyx_v_endidx, ((double *)(__pyx_v_real_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); - - /* "talib/func.pyx":9855 - * outreal_data[i] = NaN - * retCode = lib.TA_SIN( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _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, 9855, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":9856 - * retCode = lib.TA_SIN( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_SIN", retCode) - * return outreal # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); - __pyx_r = ((PyObject *)__pyx_v_outreal); - goto __pyx_L0; - - /* "talib/func.pyx":9811 - * @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.func.SIN", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outreal); - __Pyx_XDECREF((PyObject *)__pyx_v_real); - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "talib/func.pyx":9860 - * @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_4func_271SINH(PyObject *__pyx_self, PyObject *__pyx_v_real); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_271SINH = {"SINH", (PyCFunction)__pyx_pw_5talib_4func_271SINH, METH_O, __pyx_doc_5talib_4func_270SINH}; -static PyObject *__pyx_pw_5talib_4func_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, 9860, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_270SINH(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real) { - npy_intp __pyx_v_length; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - TA_RetCode __pyx_v_retCode; - double *__pyx_v_real_data; - int __pyx_v_outbegidx; - int __pyx_v_outnbelement; - PyArrayObject *__pyx_v_outreal = 0; - double *__pyx_v_outreal_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __Pyx_RefNannySetupContext("SINH", 0); - __Pyx_INCREF((PyObject *)__pyx_v_real); - - /* "talib/func.pyx":9880 - * np.ndarray outreal - * double* outreal_data - * 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/func.pyx":9881 - * double* outreal_data - * 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__1093, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9881, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 9881, __pyx_L1_error) - - /* "talib/func.pyx":9880 - * np.ndarray outreal - * double* outreal_data - * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("real is not double") - * if real.ndim != 1: - */ - } - - /* "talib/func.pyx":9882 - * 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/func.pyx":9883 - * 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__1094, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9883, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 9883, __pyx_L1_error) - - /* "talib/func.pyx":9882 - * 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/func.pyx":9884 - * 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 = real.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":9885 - * raise Exception("real has wrong dimensions") - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< - * real_data = real.data - * length = real.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9885, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 9885, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":9884 - * 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 = real.data - */ - } - - /* "talib/func.pyx":9886 - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) - * real_data = real.data # <<<<<<<<<<<<<< - * length = real.shape[0] - * begidx = 0 - */ - __pyx_v_real_data = ((double *)__pyx_v_real->data); - - /* "talib/func.pyx":9887 - * real = PyArray_GETCONTIGUOUS(real) - * real_data = real.data - * length = real.shape[0] # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_v_length = (__pyx_v_real->dimensions[0]); - - /* "talib/func.pyx":9888 - * real_data = real.data - * length = real.shape[0] - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = real_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":9889 - * length = real.shape[0] - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = real_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":9890 - * begidx = 0 - * for i from 0 <= i < length: - * val = real_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_real_data[__pyx_v_i]); - - /* "talib/func.pyx":9891 - * for i from 0 <= i < length: - * val = real_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":9892 - * val = real_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L6_continue; - - /* "talib/func.pyx":9891 - * for i from 0 <= i < length: - * val = real_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":9893 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":9894 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L7_break; - __pyx_L6_continue:; - } - /*else*/ { - - /* "talib/func.pyx":9896 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_SINH_Lookback( ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1095, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9896, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 9896, __pyx_L1_error) - } - __pyx_L7_break:; - - /* "talib/func.pyx":9897 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_SINH_Lookback( ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":9898 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_SINH_Lookback( ) # <<<<<<<<<<<<<< - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_SINH_Lookback()); - - /* "talib/func.pyx":9899 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_SINH_Lookback( ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9899, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 9899, __pyx_L1_error) - __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":9900 - * lookback = begidx + lib.TA_SINH_Lookback( ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - */ - __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); - - /* "talib/func.pyx":9901 - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outreal_data[i] = NaN - * retCode = lib.TA_SINH( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":9902 - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN # <<<<<<<<<<<<<< - * retCode = lib.TA_SINH( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_SINH", retCode) - */ - (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_4func_NaN; - } - - /* "talib/func.pyx":9903 - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - * retCode = lib.TA_SINH( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_SINH", retCode) - * return outreal - */ - __pyx_v_retCode = TA_SINH(0, __pyx_v_endidx, ((double *)(__pyx_v_real_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); - - /* "talib/func.pyx":9904 - * outreal_data[i] = NaN - * retCode = lib.TA_SINH( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _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, 9904, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":9905 - * retCode = lib.TA_SINH( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_SINH", retCode) - * return outreal # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); - __pyx_r = ((PyObject *)__pyx_v_outreal); - goto __pyx_L0; - - /* "talib/func.pyx":9860 - * @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.func.SINH", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outreal); - __Pyx_XDECREF((PyObject *)__pyx_v_real); - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "talib/func.pyx":9909 - * @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_4func_273SMA(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_273SMA = {"SMA", (PyCFunction)__pyx_pw_5talib_4func_273SMA, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_272SMA}; -static PyObject *__pyx_pw_5talib_4func_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, 9909, __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, 9909, __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, 9909, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 9909, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_272SMA(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod) { - npy_intp __pyx_v_length; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - TA_RetCode __pyx_v_retCode; - double *__pyx_v_real_data; - int __pyx_v_outbegidx; - int __pyx_v_outnbelement; - PyArrayObject *__pyx_v_outreal = 0; - double *__pyx_v_outreal_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __Pyx_RefNannySetupContext("SMA", 0); - __Pyx_INCREF((PyObject *)__pyx_v_real); - - /* "talib/func.pyx":9931 - * np.ndarray outreal - * double* outreal_data - * 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/func.pyx":9932 - * double* outreal_data - * 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__1096, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9932, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 9932, __pyx_L1_error) - - /* "talib/func.pyx":9931 - * np.ndarray outreal - * double* outreal_data - * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("real is not double") - * if real.ndim != 1: - */ - } - - /* "talib/func.pyx":9933 - * 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/func.pyx":9934 - * 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__1097, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9934, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 9934, __pyx_L1_error) - - /* "talib/func.pyx":9933 - * 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/func.pyx":9935 - * 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 = real.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":9936 - * raise Exception("real has wrong dimensions") - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< - * real_data = real.data - * length = real.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9936, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 9936, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":9935 - * 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 = real.data - */ - } - - /* "talib/func.pyx":9937 - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) - * real_data = real.data # <<<<<<<<<<<<<< - * length = real.shape[0] - * begidx = 0 - */ - __pyx_v_real_data = ((double *)__pyx_v_real->data); - - /* "talib/func.pyx":9938 - * real = PyArray_GETCONTIGUOUS(real) - * real_data = real.data - * length = real.shape[0] # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_v_length = (__pyx_v_real->dimensions[0]); - - /* "talib/func.pyx":9939 - * real_data = real.data - * length = real.shape[0] - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = real_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":9940 - * length = real.shape[0] - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = real_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":9941 - * begidx = 0 - * for i from 0 <= i < length: - * val = real_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_real_data[__pyx_v_i]); - - /* "talib/func.pyx":9942 - * for i from 0 <= i < length: - * val = real_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":9943 - * val = real_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L6_continue; - - /* "talib/func.pyx":9942 - * for i from 0 <= i < length: - * val = real_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":9944 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":9945 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L7_break; - __pyx_L6_continue:; - } - /*else*/ { - - /* "talib/func.pyx":9947 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_SMA_Lookback( timeperiod ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1098, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9947, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 9947, __pyx_L1_error) - } - __pyx_L7_break:; - - /* "talib/func.pyx":9948 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_SMA_Lookback( timeperiod ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":9949 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_SMA_Lookback( timeperiod ) # <<<<<<<<<<<<<< - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_SMA_Lookback(__pyx_v_timeperiod)); - - /* "talib/func.pyx":9950 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_SMA_Lookback( timeperiod ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9950, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 9950, __pyx_L1_error) - __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":9951 - * lookback = begidx + lib.TA_SMA_Lookback( timeperiod ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - */ - __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); - - /* "talib/func.pyx":9952 - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outreal_data[i] = NaN - * retCode = lib.TA_SMA( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":9953 - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN # <<<<<<<<<<<<<< - * retCode = lib.TA_SMA( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_SMA", retCode) - */ - (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_4func_NaN; - } - - /* "talib/func.pyx":9954 - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - * retCode = lib.TA_SMA( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_SMA", retCode) - * return outreal - */ - __pyx_v_retCode = TA_SMA(0, __pyx_v_endidx, ((double *)(__pyx_v_real_data + __pyx_v_begidx)), __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); - - /* "talib/func.pyx":9955 - * outreal_data[i] = NaN - * retCode = lib.TA_SMA( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _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, 9955, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":9956 - * retCode = lib.TA_SMA( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_SMA", retCode) - * return outreal # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); - __pyx_r = ((PyObject *)__pyx_v_outreal); - goto __pyx_L0; - - /* "talib/func.pyx":9909 - * @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.func.SMA", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outreal); - __Pyx_XDECREF((PyObject *)__pyx_v_real); - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "talib/func.pyx":9960 - * @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_4func_275SQRT(PyObject *__pyx_self, PyObject *__pyx_v_real); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_275SQRT = {"SQRT", (PyCFunction)__pyx_pw_5talib_4func_275SQRT, METH_O, __pyx_doc_5talib_4func_274SQRT}; -static PyObject *__pyx_pw_5talib_4func_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, 9960, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_274SQRT(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real) { - npy_intp __pyx_v_length; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - TA_RetCode __pyx_v_retCode; - double *__pyx_v_real_data; - int __pyx_v_outbegidx; - int __pyx_v_outnbelement; - PyArrayObject *__pyx_v_outreal = 0; - double *__pyx_v_outreal_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __Pyx_RefNannySetupContext("SQRT", 0); - __Pyx_INCREF((PyObject *)__pyx_v_real); - - /* "talib/func.pyx":9980 - * np.ndarray outreal - * double* outreal_data - * 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/func.pyx":9981 - * double* outreal_data - * 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__1099, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9981, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 9981, __pyx_L1_error) - - /* "talib/func.pyx":9980 - * np.ndarray outreal - * double* outreal_data - * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("real is not double") - * if real.ndim != 1: - */ - } - - /* "talib/func.pyx":9982 - * 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/func.pyx":9983 - * 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__1100, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9983, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 9983, __pyx_L1_error) - - /* "talib/func.pyx":9982 - * 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/func.pyx":9984 - * 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 = real.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":9985 - * raise Exception("real has wrong dimensions") - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< - * real_data = real.data - * length = real.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9985, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 9985, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":9984 - * 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 = real.data - */ - } - - /* "talib/func.pyx":9986 - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) - * real_data = real.data # <<<<<<<<<<<<<< - * length = real.shape[0] - * begidx = 0 - */ - __pyx_v_real_data = ((double *)__pyx_v_real->data); - - /* "talib/func.pyx":9987 - * real = PyArray_GETCONTIGUOUS(real) - * real_data = real.data - * length = real.shape[0] # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_v_length = (__pyx_v_real->dimensions[0]); - - /* "talib/func.pyx":9988 - * real_data = real.data - * length = real.shape[0] - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = real_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":9989 - * length = real.shape[0] - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = real_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":9990 - * begidx = 0 - * for i from 0 <= i < length: - * val = real_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_real_data[__pyx_v_i]); - - /* "talib/func.pyx":9991 - * for i from 0 <= i < length: - * val = real_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":9992 - * val = real_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L6_continue; - - /* "talib/func.pyx":9991 - * for i from 0 <= i < length: - * val = real_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":9993 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":9994 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L7_break; - __pyx_L6_continue:; - } - /*else*/ { - - /* "talib/func.pyx":9996 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_SQRT_Lookback( ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1101, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9996, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 9996, __pyx_L1_error) - } - __pyx_L7_break:; - - /* "talib/func.pyx":9997 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_SQRT_Lookback( ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":9998 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_SQRT_Lookback( ) # <<<<<<<<<<<<<< - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_SQRT_Lookback()); - - /* "talib/func.pyx":9999 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_SQRT_Lookback( ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 9999, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 9999, __pyx_L1_error) - __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":10000 - * lookback = begidx + lib.TA_SQRT_Lookback( ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - */ - __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); - - /* "talib/func.pyx":10001 - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outreal_data[i] = NaN - * retCode = lib.TA_SQRT( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":10002 - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN # <<<<<<<<<<<<<< - * retCode = lib.TA_SQRT( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_SQRT", retCode) - */ - (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_4func_NaN; - } - - /* "talib/func.pyx":10003 - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - * retCode = lib.TA_SQRT( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_SQRT", retCode) - * return outreal - */ - __pyx_v_retCode = TA_SQRT(0, __pyx_v_endidx, ((double *)(__pyx_v_real_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); - - /* "talib/func.pyx":10004 - * outreal_data[i] = NaN - * retCode = lib.TA_SQRT( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _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, 10004, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":10005 - * retCode = lib.TA_SQRT( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_SQRT", retCode) - * return outreal # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); - __pyx_r = ((PyObject *)__pyx_v_outreal); - goto __pyx_L0; - - /* "talib/func.pyx":9960 - * @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.func.SQRT", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outreal); - __Pyx_XDECREF((PyObject *)__pyx_v_real); - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "talib/func.pyx":10009 - * @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_4func_277STDDEV(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_277STDDEV = {"STDDEV", (PyCFunction)__pyx_pw_5talib_4func_277STDDEV, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_276STDDEV}; -static PyObject *__pyx_pw_5talib_4func_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, 10009, __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, 10009, __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, 10009, __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, 10009, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 10009, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_276STDDEV(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod, double __pyx_v_nbdev) { - npy_intp __pyx_v_length; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - TA_RetCode __pyx_v_retCode; - double *__pyx_v_real_data; - int __pyx_v_outbegidx; - int __pyx_v_outnbelement; - PyArrayObject *__pyx_v_outreal = 0; - double *__pyx_v_outreal_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __Pyx_RefNannySetupContext("STDDEV", 0); - __Pyx_INCREF((PyObject *)__pyx_v_real); - - /* "talib/func.pyx":10032 - * np.ndarray outreal - * double* outreal_data - * 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/func.pyx":10033 - * double* outreal_data - * 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__1102, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10033, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 10033, __pyx_L1_error) - - /* "talib/func.pyx":10032 - * np.ndarray outreal - * double* outreal_data - * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("real is not double") - * if real.ndim != 1: - */ - } - - /* "talib/func.pyx":10034 - * 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/func.pyx":10035 - * 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__1103, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10035, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 10035, __pyx_L1_error) - - /* "talib/func.pyx":10034 - * 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/func.pyx":10036 - * 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 = real.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":10037 - * raise Exception("real has wrong dimensions") - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< - * real_data = real.data - * length = real.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10037, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 10037, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":10036 - * 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 = real.data - */ - } - - /* "talib/func.pyx":10038 - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) - * real_data = real.data # <<<<<<<<<<<<<< - * length = real.shape[0] - * begidx = 0 - */ - __pyx_v_real_data = ((double *)__pyx_v_real->data); - - /* "talib/func.pyx":10039 - * real = PyArray_GETCONTIGUOUS(real) - * real_data = real.data - * length = real.shape[0] # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_v_length = (__pyx_v_real->dimensions[0]); - - /* "talib/func.pyx":10040 - * real_data = real.data - * length = real.shape[0] - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = real_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":10041 - * length = real.shape[0] - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = real_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":10042 - * begidx = 0 - * for i from 0 <= i < length: - * val = real_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_real_data[__pyx_v_i]); - - /* "talib/func.pyx":10043 - * for i from 0 <= i < length: - * val = real_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":10044 - * val = real_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L6_continue; - - /* "talib/func.pyx":10043 - * for i from 0 <= i < length: - * val = real_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":10045 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":10046 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L7_break; - __pyx_L6_continue:; - } - /*else*/ { - - /* "talib/func.pyx":10048 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_STDDEV_Lookback( timeperiod , nbdev ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1104, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10048, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 10048, __pyx_L1_error) - } - __pyx_L7_break:; - - /* "talib/func.pyx":10049 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_STDDEV_Lookback( timeperiod , nbdev ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":10050 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_STDDEV_Lookback( timeperiod , nbdev ) # <<<<<<<<<<<<<< - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_STDDEV_Lookback(__pyx_v_timeperiod, __pyx_v_nbdev)); - - /* "talib/func.pyx":10051 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_STDDEV_Lookback( timeperiod , nbdev ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10051, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 10051, __pyx_L1_error) - __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":10052 - * lookback = begidx + lib.TA_STDDEV_Lookback( timeperiod , nbdev ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - */ - __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); - - /* "talib/func.pyx":10053 - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outreal_data[i] = NaN - * retCode = lib.TA_STDDEV( 0 , endidx , (real_data+begidx) , timeperiod , nbdev , &outbegidx , &outnbelement , (outreal_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":10054 - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN # <<<<<<<<<<<<<< - * retCode = lib.TA_STDDEV( 0 , endidx , (real_data+begidx) , timeperiod , nbdev , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_STDDEV", retCode) - */ - (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_4func_NaN; - } - - /* "talib/func.pyx":10055 - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - * retCode = lib.TA_STDDEV( 0 , endidx , (real_data+begidx) , timeperiod , nbdev , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_STDDEV", retCode) - * return outreal - */ - __pyx_v_retCode = TA_STDDEV(0, __pyx_v_endidx, ((double *)(__pyx_v_real_data + __pyx_v_begidx)), __pyx_v_timeperiod, __pyx_v_nbdev, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); - - /* "talib/func.pyx":10056 - * outreal_data[i] = NaN - * retCode = lib.TA_STDDEV( 0 , endidx , (real_data+begidx) , timeperiod , nbdev , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _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, 10056, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":10057 - * retCode = lib.TA_STDDEV( 0 , endidx , (real_data+begidx) , timeperiod , nbdev , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_STDDEV", retCode) - * return outreal # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); - __pyx_r = ((PyObject *)__pyx_v_outreal); - goto __pyx_L0; - - /* "talib/func.pyx":10009 - * @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.func.STDDEV", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outreal); - __Pyx_XDECREF((PyObject *)__pyx_v_real); - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "talib/func.pyx":10061 - * @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_4func_279STOCH(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_279STOCH = {"STOCH", (PyCFunction)__pyx_pw_5talib_4func_279STOCH, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_278STOCH}; -static PyObject *__pyx_pw_5talib_4func_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, 10061, __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, 10061, __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, 10061, __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, 10061, __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, 10061, __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, 10061, __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, 10061, __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, 10061, __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, 10061, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 10061, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 10061, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 10061, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_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; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - 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; - PyArrayObject *__pyx_v_outslowk = 0; - double *__pyx_v_outslowk_data; - PyArrayObject *__pyx_v_outslowd = 0; - double *__pyx_v_outslowd_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __Pyx_RefNannySetupContext("STOCH", 0); - __Pyx_INCREF((PyObject *)__pyx_v_high); - __Pyx_INCREF((PyObject *)__pyx_v_low); - __Pyx_INCREF((PyObject *)__pyx_v_close); - - /* "talib/func.pyx":10092 - * np.ndarray outslowd - * double* outslowd_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/func.pyx":10093 - * double* outslowd_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__1105, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10093, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 10093, __pyx_L1_error) - - /* "talib/func.pyx":10092 - * np.ndarray outslowd - * double* outslowd_data - * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("high is not double") - * if high.ndim != 1: - */ - } - - /* "talib/func.pyx":10094 - * 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/func.pyx":10095 - * raise 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__1106, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10095, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 10095, __pyx_L1_error) - - /* "talib/func.pyx":10094 - * 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/func.pyx":10096 - * 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 = high.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":10097 - * raise Exception("high has wrong dimensions") - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< - * high_data = 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, 10097, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 10097, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":10096 - * 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 = high.data - */ - } - - /* "talib/func.pyx":10098 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":10099 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":10100 - * high_data = 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__1107, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10100, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 10100, __pyx_L1_error) - - /* "talib/func.pyx":10099 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = high.data - * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("low is not double") - * if low.ndim != 1: - */ - } - - /* "talib/func.pyx":10101 - * 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/func.pyx":10102 - * raise 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__1108, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10102, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 10102, __pyx_L1_error) - - /* "talib/func.pyx":10101 - * 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/func.pyx":10103 - * 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 = low.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":10104 - * raise Exception("low has wrong dimensions") - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< - * low_data = 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, 10104, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 10104, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":10103 - * 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 = low.data - */ - } - - /* "talib/func.pyx":10105 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":10106 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":10107 - * low_data = 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__1109, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10107, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 10107, __pyx_L1_error) - - /* "talib/func.pyx":10106 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = low.data - * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("close is not double") - * if close.ndim != 1: - */ - } - - /* "talib/func.pyx":10108 - * 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/func.pyx":10109 - * raise 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__1110, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10109, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 10109, __pyx_L1_error) - - /* "talib/func.pyx":10108 - * 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/func.pyx":10110 - * 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 = close.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":10111 - * raise Exception("close has wrong dimensions") - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< - * close_data = close.data - * length = high.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10111, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 10111, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":10110 - * 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 = close.data - */ - } - - /* "talib/func.pyx":10112 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = close.data # <<<<<<<<<<<<<< - * length = high.shape[0] - * if length != low.shape[0]: - */ - __pyx_v_close_data = ((double *)__pyx_v_close->data); - - /* "talib/func.pyx":10113 - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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/func.pyx":10114 - * close_data = 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/func.pyx":10115 - * 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__1111, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10115, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 10115, __pyx_L1_error) - - /* "talib/func.pyx":10114 - * close_data = close.data - * length = high.shape[0] - * if length != low.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * if length != close.shape[0]: - */ - } - - /* "talib/func.pyx":10116 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":10117 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1112, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10117, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 10117, __pyx_L1_error) - - /* "talib/func.pyx":10116 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - } - - /* "talib/func.pyx":10118 - * if length != close.shape[0]: - * raise Exception("input lengths are different") - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = high_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":10119 - * raise Exception("input lengths are different") - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = high_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":10120 - * begidx = 0 - * for i from 0 <= i < length: - * val = high_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); - - /* "talib/func.pyx":10121 - * for i from 0 <= i < length: - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":10122 - * val = high_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = low_data[i] - * if val != val: - */ - goto __pyx_L14_continue; - - /* "talib/func.pyx":10121 - * for i from 0 <= i < length: - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - } - - /* "talib/func.pyx":10123 - * if val != val: - * continue - * val = low_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); - - /* "talib/func.pyx":10124 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":10125 - * val = low_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = close_data[i] - * if val != val: - */ - goto __pyx_L14_continue; - - /* "talib/func.pyx":10124 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - } - - /* "talib/func.pyx":10126 - * if val != val: - * continue - * val = close_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); - - /* "talib/func.pyx":10127 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":10128 - * val = close_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L14_continue; - - /* "talib/func.pyx":10127 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":10129 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":10130 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L15_break; - __pyx_L14_continue:; - } - /*else*/ { - - /* "talib/func.pyx":10132 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_STOCH_Lookback( fastk_period , slowk_period , slowk_matype , slowd_period , slowd_matype ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1113, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10132, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 10132, __pyx_L1_error) - } - __pyx_L15_break:; - - /* "talib/func.pyx":10133 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_STOCH_Lookback( fastk_period , slowk_period , slowk_matype , slowd_period , slowd_matype ) - * outslowk = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":10134 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_STOCH_Lookback( fastk_period , slowk_period , slowk_matype , slowd_period , slowd_matype ) # <<<<<<<<<<<<<< - * outslowk = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outslowk_data = outslowk.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_STOCH_Lookback(__pyx_v_fastk_period, __pyx_v_slowk_period, __pyx_v_slowk_matype, __pyx_v_slowd_period, __pyx_v_slowd_matype)); - - /* "talib/func.pyx":10135 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_STOCH_Lookback( fastk_period , slowk_period , slowk_matype , slowd_period , slowd_matype ) - * outslowk = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outslowk_data = outslowk.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10135, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 10135, __pyx_L1_error) - __pyx_v_outslowk = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":10136 - * lookback = begidx + lib.TA_STOCH_Lookback( fastk_period , slowk_period , slowk_matype , slowd_period , slowd_matype ) - * outslowk = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outslowk_data = outslowk.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outslowk_data[i] = NaN - */ - __pyx_v_outslowk_data = ((double *)__pyx_v_outslowk->data); - - /* "talib/func.pyx":10137 - * outslowk = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outslowk_data = outslowk.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outslowk_data[i] = NaN - * outslowd = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":10138 - * outslowk_data = outslowk.data - * for i from 0 <= i < min(lookback, length): - * outslowk_data[i] = NaN # <<<<<<<<<<<<<< - * outslowd = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outslowd_data = outslowd.data - */ - (__pyx_v_outslowk_data[__pyx_v_i]) = __pyx_v_5talib_4func_NaN; - } - - /* "talib/func.pyx":10139 - * for i from 0 <= i < min(lookback, length): - * outslowk_data[i] = NaN - * outslowd = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outslowd_data = outslowd.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10139, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 10139, __pyx_L1_error) - __pyx_v_outslowd = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":10140 - * outslowk_data[i] = NaN - * outslowd = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outslowd_data = outslowd.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outslowd_data[i] = NaN - */ - __pyx_v_outslowd_data = ((double *)__pyx_v_outslowd->data); - - /* "talib/func.pyx":10141 - * outslowd = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outslowd_data = outslowd.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outslowd_data[i] = NaN - * retCode = lib.TA_STOCH( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , fastk_period , slowk_period , slowk_matype , slowd_period , slowd_matype , &outbegidx , &outnbelement , (outslowk_data+lookback) , (outslowd_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":10142 - * outslowd_data = outslowd.data - * for i from 0 <= i < min(lookback, length): - * outslowd_data[i] = NaN # <<<<<<<<<<<<<< - * retCode = lib.TA_STOCH( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , fastk_period , slowk_period , slowk_matype , slowd_period , slowd_matype , &outbegidx , &outnbelement , (outslowk_data+lookback) , (outslowd_data+lookback) ) - * _ta_check_success("TA_STOCH", retCode) - */ - (__pyx_v_outslowd_data[__pyx_v_i]) = __pyx_v_5talib_4func_NaN; - } - - /* "talib/func.pyx":10143 - * for i from 0 <= i < min(lookback, length): - * outslowd_data[i] = NaN - * retCode = lib.TA_STOCH( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , fastk_period , slowk_period , slowk_matype , slowd_period , slowd_matype , &outbegidx , &outnbelement , (outslowk_data+lookback) , (outslowd_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_STOCH", retCode) - * return outslowk , outslowd - */ - __pyx_v_retCode = TA_STOCH(0, __pyx_v_endidx, ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), __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), ((double *)(__pyx_v_outslowk_data + __pyx_v_lookback)), ((double *)(__pyx_v_outslowd_data + __pyx_v_lookback))); - - /* "talib/func.pyx":10144 - * outslowd_data[i] = NaN - * retCode = lib.TA_STOCH( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , fastk_period , slowk_period , slowk_matype , slowd_period , slowd_matype , &outbegidx , &outnbelement , (outslowk_data+lookback) , (outslowd_data+lookback) ) - * _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, 10144, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":10145 - * retCode = lib.TA_STOCH( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , fastk_period , slowk_period , slowk_matype , slowd_period , slowd_matype , &outbegidx , &outnbelement , (outslowk_data+lookback) , (outslowd_data+lookback) ) - * _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 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10145, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_INCREF(((PyObject *)__pyx_v_outslowk)); - __Pyx_GIVEREF(((PyObject *)__pyx_v_outslowk)); - PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_v_outslowk)); - __Pyx_INCREF(((PyObject *)__pyx_v_outslowd)); - __Pyx_GIVEREF(((PyObject *)__pyx_v_outslowd)); - PyTuple_SET_ITEM(__pyx_t_2, 1, ((PyObject *)__pyx_v_outslowd)); - __pyx_r = __pyx_t_2; - __pyx_t_2 = 0; - goto __pyx_L0; - - /* "talib/func.pyx":10061 - * @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_AddTraceback("talib.func.STOCH", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outslowk); - __Pyx_XDECREF((PyObject *)__pyx_v_outslowd); - __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/func.pyx":10149 - * @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_4func_281STOCHF(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_281STOCHF = {"STOCHF", (PyCFunction)__pyx_pw_5talib_4func_281STOCHF, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_280STOCHF}; -static PyObject *__pyx_pw_5talib_4func_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, 10149, __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, 10149, __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, 10149, __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, 10149, __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, 10149, __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, 10149, __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, 10149, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 10149, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 10149, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 10149, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_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; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - 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; - PyArrayObject *__pyx_v_outfastk = 0; - double *__pyx_v_outfastk_data; - PyArrayObject *__pyx_v_outfastd = 0; - double *__pyx_v_outfastd_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __Pyx_RefNannySetupContext("STOCHF", 0); - __Pyx_INCREF((PyObject *)__pyx_v_high); - __Pyx_INCREF((PyObject *)__pyx_v_low); - __Pyx_INCREF((PyObject *)__pyx_v_close); - - /* "talib/func.pyx":10178 - * np.ndarray outfastd - * double* outfastd_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/func.pyx":10179 - * double* outfastd_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__1114, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10179, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 10179, __pyx_L1_error) - - /* "talib/func.pyx":10178 - * np.ndarray outfastd - * double* outfastd_data - * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("high is not double") - * if high.ndim != 1: - */ - } - - /* "talib/func.pyx":10180 - * 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/func.pyx":10181 - * raise 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__1115, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10181, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 10181, __pyx_L1_error) - - /* "talib/func.pyx":10180 - * 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/func.pyx":10182 - * 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 = high.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":10183 - * raise Exception("high has wrong dimensions") - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< - * high_data = 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, 10183, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 10183, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":10182 - * 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 = high.data - */ - } - - /* "talib/func.pyx":10184 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":10185 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":10186 - * high_data = 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__1116, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10186, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 10186, __pyx_L1_error) - - /* "talib/func.pyx":10185 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = high.data - * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("low is not double") - * if low.ndim != 1: - */ - } - - /* "talib/func.pyx":10187 - * 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/func.pyx":10188 - * raise 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__1117, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10188, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 10188, __pyx_L1_error) - - /* "talib/func.pyx":10187 - * 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/func.pyx":10189 - * 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 = low.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":10190 - * raise Exception("low has wrong dimensions") - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< - * low_data = 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, 10190, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 10190, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":10189 - * 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 = low.data - */ - } - - /* "talib/func.pyx":10191 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":10192 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":10193 - * low_data = 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__1118, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10193, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 10193, __pyx_L1_error) - - /* "talib/func.pyx":10192 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = low.data - * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("close is not double") - * if close.ndim != 1: - */ - } - - /* "talib/func.pyx":10194 - * 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/func.pyx":10195 - * raise 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__1119, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10195, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 10195, __pyx_L1_error) - - /* "talib/func.pyx":10194 - * 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/func.pyx":10196 - * 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 = close.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":10197 - * raise Exception("close has wrong dimensions") - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< - * close_data = close.data - * length = high.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10197, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 10197, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":10196 - * 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 = close.data - */ - } - - /* "talib/func.pyx":10198 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = close.data # <<<<<<<<<<<<<< - * length = high.shape[0] - * if length != low.shape[0]: - */ - __pyx_v_close_data = ((double *)__pyx_v_close->data); - - /* "talib/func.pyx":10199 - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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/func.pyx":10200 - * close_data = 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/func.pyx":10201 - * 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__1120, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10201, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 10201, __pyx_L1_error) - - /* "talib/func.pyx":10200 - * close_data = close.data - * length = high.shape[0] - * if length != low.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * if length != close.shape[0]: - */ - } - - /* "talib/func.pyx":10202 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":10203 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1121, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10203, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 10203, __pyx_L1_error) - - /* "talib/func.pyx":10202 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - } - - /* "talib/func.pyx":10204 - * if length != close.shape[0]: - * raise Exception("input lengths are different") - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = high_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":10205 - * raise Exception("input lengths are different") - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = high_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":10206 - * begidx = 0 - * for i from 0 <= i < length: - * val = high_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); - - /* "talib/func.pyx":10207 - * for i from 0 <= i < length: - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":10208 - * val = high_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = low_data[i] - * if val != val: - */ - goto __pyx_L14_continue; - - /* "talib/func.pyx":10207 - * for i from 0 <= i < length: - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - } - - /* "talib/func.pyx":10209 - * if val != val: - * continue - * val = low_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); - - /* "talib/func.pyx":10210 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":10211 - * val = low_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = close_data[i] - * if val != val: - */ - goto __pyx_L14_continue; - - /* "talib/func.pyx":10210 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - } - - /* "talib/func.pyx":10212 - * if val != val: - * continue - * val = close_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); - - /* "talib/func.pyx":10213 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":10214 - * val = close_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L14_continue; - - /* "talib/func.pyx":10213 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":10215 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":10216 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L15_break; - __pyx_L14_continue:; - } - /*else*/ { - - /* "talib/func.pyx":10218 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_STOCHF_Lookback( fastk_period , fastd_period , fastd_matype ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1122, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10218, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 10218, __pyx_L1_error) - } - __pyx_L15_break:; - - /* "talib/func.pyx":10219 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_STOCHF_Lookback( fastk_period , fastd_period , fastd_matype ) - * outfastk = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":10220 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_STOCHF_Lookback( fastk_period , fastd_period , fastd_matype ) # <<<<<<<<<<<<<< - * outfastk = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outfastk_data = outfastk.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_STOCHF_Lookback(__pyx_v_fastk_period, __pyx_v_fastd_period, __pyx_v_fastd_matype)); - - /* "talib/func.pyx":10221 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_STOCHF_Lookback( fastk_period , fastd_period , fastd_matype ) - * outfastk = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outfastk_data = outfastk.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10221, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 10221, __pyx_L1_error) - __pyx_v_outfastk = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":10222 - * lookback = begidx + lib.TA_STOCHF_Lookback( fastk_period , fastd_period , fastd_matype ) - * outfastk = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outfastk_data = outfastk.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outfastk_data[i] = NaN - */ - __pyx_v_outfastk_data = ((double *)__pyx_v_outfastk->data); - - /* "talib/func.pyx":10223 - * outfastk = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outfastk_data = outfastk.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outfastk_data[i] = NaN - * outfastd = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":10224 - * outfastk_data = outfastk.data - * for i from 0 <= i < min(lookback, length): - * outfastk_data[i] = NaN # <<<<<<<<<<<<<< - * outfastd = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outfastd_data = outfastd.data - */ - (__pyx_v_outfastk_data[__pyx_v_i]) = __pyx_v_5talib_4func_NaN; - } - - /* "talib/func.pyx":10225 - * for i from 0 <= i < min(lookback, length): - * outfastk_data[i] = NaN - * outfastd = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outfastd_data = outfastd.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10225, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 10225, __pyx_L1_error) - __pyx_v_outfastd = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":10226 - * outfastk_data[i] = NaN - * outfastd = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outfastd_data = outfastd.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outfastd_data[i] = NaN - */ - __pyx_v_outfastd_data = ((double *)__pyx_v_outfastd->data); - - /* "talib/func.pyx":10227 - * outfastd = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outfastd_data = outfastd.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outfastd_data[i] = NaN - * retCode = lib.TA_STOCHF( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , fastk_period , fastd_period , fastd_matype , &outbegidx , &outnbelement , (outfastk_data+lookback) , (outfastd_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":10228 - * outfastd_data = outfastd.data - * for i from 0 <= i < min(lookback, length): - * outfastd_data[i] = NaN # <<<<<<<<<<<<<< - * retCode = lib.TA_STOCHF( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , fastk_period , fastd_period , fastd_matype , &outbegidx , &outnbelement , (outfastk_data+lookback) , (outfastd_data+lookback) ) - * _ta_check_success("TA_STOCHF", retCode) - */ - (__pyx_v_outfastd_data[__pyx_v_i]) = __pyx_v_5talib_4func_NaN; - } - - /* "talib/func.pyx":10229 - * for i from 0 <= i < min(lookback, length): - * outfastd_data[i] = NaN - * retCode = lib.TA_STOCHF( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , fastk_period , fastd_period , fastd_matype , &outbegidx , &outnbelement , (outfastk_data+lookback) , (outfastd_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_STOCHF", retCode) - * return outfastk , outfastd - */ - __pyx_v_retCode = TA_STOCHF(0, __pyx_v_endidx, ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), __pyx_v_fastk_period, __pyx_v_fastd_period, __pyx_v_fastd_matype, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outfastk_data + __pyx_v_lookback)), ((double *)(__pyx_v_outfastd_data + __pyx_v_lookback))); - - /* "talib/func.pyx":10230 - * outfastd_data[i] = NaN - * retCode = lib.TA_STOCHF( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , fastk_period , fastd_period , fastd_matype , &outbegidx , &outnbelement , (outfastk_data+lookback) , (outfastd_data+lookback) ) - * _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, 10230, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":10231 - * retCode = lib.TA_STOCHF( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , fastk_period , fastd_period , fastd_matype , &outbegidx , &outnbelement , (outfastk_data+lookback) , (outfastd_data+lookback) ) - * _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 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10231, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_INCREF(((PyObject *)__pyx_v_outfastk)); - __Pyx_GIVEREF(((PyObject *)__pyx_v_outfastk)); - PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_v_outfastk)); - __Pyx_INCREF(((PyObject *)__pyx_v_outfastd)); - __Pyx_GIVEREF(((PyObject *)__pyx_v_outfastd)); - PyTuple_SET_ITEM(__pyx_t_2, 1, ((PyObject *)__pyx_v_outfastd)); - __pyx_r = __pyx_t_2; - __pyx_t_2 = 0; - goto __pyx_L0; - - /* "talib/func.pyx":10149 - * @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_AddTraceback("talib.func.STOCHF", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outfastk); - __Pyx_XDECREF((PyObject *)__pyx_v_outfastd); - __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/func.pyx":10235 - * @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_4func_283STOCHRSI(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_283STOCHRSI = {"STOCHRSI", (PyCFunction)__pyx_pw_5talib_4func_283STOCHRSI, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_282STOCHRSI}; -static PyObject *__pyx_pw_5talib_4func_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, 10235, __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, 10235, __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, 10235, __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, 10235, __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, 10235, __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, 10235, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 10235, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_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; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - TA_RetCode __pyx_v_retCode; - double *__pyx_v_real_data; - int __pyx_v_outbegidx; - int __pyx_v_outnbelement; - PyArrayObject *__pyx_v_outfastk = 0; - double *__pyx_v_outfastk_data; - PyArrayObject *__pyx_v_outfastd = 0; - double *__pyx_v_outfastd_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __Pyx_RefNannySetupContext("STOCHRSI", 0); - __Pyx_INCREF((PyObject *)__pyx_v_real); - - /* "talib/func.pyx":10263 - * np.ndarray outfastd - * double* outfastd_data - * 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/func.pyx":10264 - * double* outfastd_data - * 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__1123, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10264, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 10264, __pyx_L1_error) - - /* "talib/func.pyx":10263 - * np.ndarray outfastd - * double* outfastd_data - * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("real is not double") - * if real.ndim != 1: - */ - } - - /* "talib/func.pyx":10265 - * 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/func.pyx":10266 - * 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__1124, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10266, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 10266, __pyx_L1_error) - - /* "talib/func.pyx":10265 - * 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/func.pyx":10267 - * 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 = real.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":10268 - * raise Exception("real has wrong dimensions") - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< - * real_data = real.data - * length = real.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10268, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 10268, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":10267 - * 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 = real.data - */ - } - - /* "talib/func.pyx":10269 - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) - * real_data = real.data # <<<<<<<<<<<<<< - * length = real.shape[0] - * begidx = 0 - */ - __pyx_v_real_data = ((double *)__pyx_v_real->data); - - /* "talib/func.pyx":10270 - * real = PyArray_GETCONTIGUOUS(real) - * real_data = real.data - * length = real.shape[0] # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_v_length = (__pyx_v_real->dimensions[0]); - - /* "talib/func.pyx":10271 - * real_data = real.data - * length = real.shape[0] - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = real_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":10272 - * length = real.shape[0] - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = real_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":10273 - * begidx = 0 - * for i from 0 <= i < length: - * val = real_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_real_data[__pyx_v_i]); - - /* "talib/func.pyx":10274 - * for i from 0 <= i < length: - * val = real_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":10275 - * val = real_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L6_continue; - - /* "talib/func.pyx":10274 - * for i from 0 <= i < length: - * val = real_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":10276 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":10277 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L7_break; - __pyx_L6_continue:; - } - /*else*/ { - - /* "talib/func.pyx":10279 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_STOCHRSI_Lookback( timeperiod , fastk_period , fastd_period , fastd_matype ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1125, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10279, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 10279, __pyx_L1_error) - } - __pyx_L7_break:; - - /* "talib/func.pyx":10280 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_STOCHRSI_Lookback( timeperiod , fastk_period , fastd_period , fastd_matype ) - * outfastk = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":10281 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_STOCHRSI_Lookback( timeperiod , fastk_period , fastd_period , fastd_matype ) # <<<<<<<<<<<<<< - * outfastk = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outfastk_data = outfastk.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_STOCHRSI_Lookback(__pyx_v_timeperiod, __pyx_v_fastk_period, __pyx_v_fastd_period, __pyx_v_fastd_matype)); - - /* "talib/func.pyx":10282 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_STOCHRSI_Lookback( timeperiod , fastk_period , fastd_period , fastd_matype ) - * outfastk = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outfastk_data = outfastk.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10282, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 10282, __pyx_L1_error) - __pyx_v_outfastk = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":10283 - * lookback = begidx + lib.TA_STOCHRSI_Lookback( timeperiod , fastk_period , fastd_period , fastd_matype ) - * outfastk = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outfastk_data = outfastk.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outfastk_data[i] = NaN - */ - __pyx_v_outfastk_data = ((double *)__pyx_v_outfastk->data); - - /* "talib/func.pyx":10284 - * outfastk = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outfastk_data = outfastk.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outfastk_data[i] = NaN - * outfastd = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":10285 - * outfastk_data = outfastk.data - * for i from 0 <= i < min(lookback, length): - * outfastk_data[i] = NaN # <<<<<<<<<<<<<< - * outfastd = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outfastd_data = outfastd.data - */ - (__pyx_v_outfastk_data[__pyx_v_i]) = __pyx_v_5talib_4func_NaN; - } - - /* "talib/func.pyx":10286 - * for i from 0 <= i < min(lookback, length): - * outfastk_data[i] = NaN - * outfastd = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outfastd_data = outfastd.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10286, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 10286, __pyx_L1_error) - __pyx_v_outfastd = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":10287 - * outfastk_data[i] = NaN - * outfastd = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outfastd_data = outfastd.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outfastd_data[i] = NaN - */ - __pyx_v_outfastd_data = ((double *)__pyx_v_outfastd->data); - - /* "talib/func.pyx":10288 - * outfastd = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outfastd_data = outfastd.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outfastd_data[i] = NaN - * retCode = lib.TA_STOCHRSI( 0 , endidx , (real_data+begidx) , timeperiod , fastk_period , fastd_period , fastd_matype , &outbegidx , &outnbelement , (outfastk_data+lookback) , (outfastd_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":10289 - * outfastd_data = outfastd.data - * for i from 0 <= i < min(lookback, length): - * outfastd_data[i] = NaN # <<<<<<<<<<<<<< - * retCode = lib.TA_STOCHRSI( 0 , endidx , (real_data+begidx) , timeperiod , fastk_period , fastd_period , fastd_matype , &outbegidx , &outnbelement , (outfastk_data+lookback) , (outfastd_data+lookback) ) - * _ta_check_success("TA_STOCHRSI", retCode) - */ - (__pyx_v_outfastd_data[__pyx_v_i]) = __pyx_v_5talib_4func_NaN; - } - - /* "talib/func.pyx":10290 - * for i from 0 <= i < min(lookback, length): - * outfastd_data[i] = NaN - * retCode = lib.TA_STOCHRSI( 0 , endidx , (real_data+begidx) , timeperiod , fastk_period , fastd_period , fastd_matype , &outbegidx , &outnbelement , (outfastk_data+lookback) , (outfastd_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_STOCHRSI", retCode) - * return outfastk , outfastd - */ - __pyx_v_retCode = TA_STOCHRSI(0, __pyx_v_endidx, ((double *)(__pyx_v_real_data + __pyx_v_begidx)), __pyx_v_timeperiod, __pyx_v_fastk_period, __pyx_v_fastd_period, __pyx_v_fastd_matype, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outfastk_data + __pyx_v_lookback)), ((double *)(__pyx_v_outfastd_data + __pyx_v_lookback))); - - /* "talib/func.pyx":10291 - * outfastd_data[i] = NaN - * retCode = lib.TA_STOCHRSI( 0 , endidx , (real_data+begidx) , timeperiod , fastk_period , fastd_period , fastd_matype , &outbegidx , &outnbelement , (outfastk_data+lookback) , (outfastd_data+lookback) ) - * _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, 10291, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":10292 - * retCode = lib.TA_STOCHRSI( 0 , endidx , (real_data+begidx) , timeperiod , fastk_period , fastd_period , fastd_matype , &outbegidx , &outnbelement , (outfastk_data+lookback) , (outfastd_data+lookback) ) - * _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 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10292, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_INCREF(((PyObject *)__pyx_v_outfastk)); - __Pyx_GIVEREF(((PyObject *)__pyx_v_outfastk)); - PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_v_outfastk)); - __Pyx_INCREF(((PyObject *)__pyx_v_outfastd)); - __Pyx_GIVEREF(((PyObject *)__pyx_v_outfastd)); - PyTuple_SET_ITEM(__pyx_t_2, 1, ((PyObject *)__pyx_v_outfastd)); - __pyx_r = __pyx_t_2; - __pyx_t_2 = 0; - goto __pyx_L0; - - /* "talib/func.pyx":10235 - * @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_AddTraceback("talib.func.STOCHRSI", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outfastk); - __Pyx_XDECREF((PyObject *)__pyx_v_outfastd); - __Pyx_XDECREF((PyObject *)__pyx_v_real); - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "talib/func.pyx":10296 - * @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_4func_285SUB(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_285SUB = {"SUB", (PyCFunction)__pyx_pw_5talib_4func_285SUB, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_284SUB}; -static PyObject *__pyx_pw_5talib_4func_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, 10296, __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, 10296, __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, 10296, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 10296, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_real1), __pyx_ptype_5numpy_ndarray, 0, "real1", 0))) __PYX_ERR(0, 10296, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_284SUB(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real0, PyArrayObject *__pyx_v_real1) { - npy_intp __pyx_v_length; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - TA_RetCode __pyx_v_retCode; - double *__pyx_v_real0_data; - double *__pyx_v_real1_data; - int __pyx_v_outbegidx; - int __pyx_v_outnbelement; - PyArrayObject *__pyx_v_outreal = 0; - double *__pyx_v_outreal_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __Pyx_RefNannySetupContext("SUB", 0); - __Pyx_INCREF((PyObject *)__pyx_v_real0); - __Pyx_INCREF((PyObject *)__pyx_v_real1); - - /* "talib/func.pyx":10318 - * np.ndarray outreal - * double* outreal_data - * 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/func.pyx":10319 - * double* outreal_data - * 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__1126, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10319, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 10319, __pyx_L1_error) - - /* "talib/func.pyx":10318 - * np.ndarray outreal - * double* outreal_data - * if PyArray_TYPE(real0) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("real0 is not double") - * if real0.ndim != 1: - */ - } - - /* "talib/func.pyx":10320 - * 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/func.pyx":10321 - * 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__1127, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10321, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 10321, __pyx_L1_error) - - /* "talib/func.pyx":10320 - * 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/func.pyx":10322 - * 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 = real0.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real0) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":10323 - * raise Exception("real0 has wrong dimensions") - * if not (PyArray_FLAGS(real0) & np.NPY_C_CONTIGUOUS): - * real0 = PyArray_GETCONTIGUOUS(real0) # <<<<<<<<<<<<<< - * real0_data = 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, 10323, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 10323, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_real0, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":10322 - * 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 = real0.data - */ - } - - /* "talib/func.pyx":10324 - * if not (PyArray_FLAGS(real0) & np.NPY_C_CONTIGUOUS): - * real0 = PyArray_GETCONTIGUOUS(real0) - * real0_data = 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/func.pyx":10325 - * real0 = PyArray_GETCONTIGUOUS(real0) - * real0_data = 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/func.pyx":10326 - * real0_data = 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__1128, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10326, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 10326, __pyx_L1_error) - - /* "talib/func.pyx":10325 - * real0 = PyArray_GETCONTIGUOUS(real0) - * real0_data = real0.data - * if PyArray_TYPE(real1) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("real1 is not double") - * if real1.ndim != 1: - */ - } - - /* "talib/func.pyx":10327 - * 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/func.pyx":10328 - * 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__1129, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10328, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 10328, __pyx_L1_error) - - /* "talib/func.pyx":10327 - * 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/func.pyx":10329 - * 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 = real1.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real1) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":10330 - * raise Exception("real1 has wrong dimensions") - * if not (PyArray_FLAGS(real1) & np.NPY_C_CONTIGUOUS): - * real1 = PyArray_GETCONTIGUOUS(real1) # <<<<<<<<<<<<<< - * real1_data = real1.data - * length = real0.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10330, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 10330, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_real1, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":10329 - * 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 = real1.data - */ - } - - /* "talib/func.pyx":10331 - * if not (PyArray_FLAGS(real1) & np.NPY_C_CONTIGUOUS): - * real1 = PyArray_GETCONTIGUOUS(real1) - * real1_data = real1.data # <<<<<<<<<<<<<< - * length = real0.shape[0] - * if length != real1.shape[0]: - */ - __pyx_v_real1_data = ((double *)__pyx_v_real1->data); - - /* "talib/func.pyx":10332 - * real1 = PyArray_GETCONTIGUOUS(real1) - * real1_data = 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/func.pyx":10333 - * real1_data = real1.data - * length = real0.shape[0] - * if length != real1.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - __pyx_t_1 = ((__pyx_v_length != (__pyx_v_real1->dimensions[0])) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":10334 - * length = real0.shape[0] - * if length != real1.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1130, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10334, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 10334, __pyx_L1_error) - - /* "talib/func.pyx":10333 - * real1_data = real1.data - * length = real0.shape[0] - * if length != real1.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - } - - /* "talib/func.pyx":10335 - * if length != real1.shape[0]: - * raise Exception("input lengths are different") - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = real0_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":10336 - * raise Exception("input lengths are different") - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = real0_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":10337 - * begidx = 0 - * for i from 0 <= i < length: - * val = real0_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_real0_data[__pyx_v_i]); - - /* "talib/func.pyx":10338 - * for i from 0 <= i < length: - * val = real0_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = real1_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":10339 - * val = real0_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = real1_data[i] - * if val != val: - */ - goto __pyx_L10_continue; - - /* "talib/func.pyx":10338 - * for i from 0 <= i < length: - * val = real0_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = real1_data[i] - */ - } - - /* "talib/func.pyx":10340 - * if val != val: - * continue - * val = real1_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_real1_data[__pyx_v_i]); - - /* "talib/func.pyx":10341 - * continue - * val = real1_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":10342 - * val = real1_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L10_continue; - - /* "talib/func.pyx":10341 - * continue - * val = real1_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":10343 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":10344 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L11_break; - __pyx_L10_continue:; - } - /*else*/ { - - /* "talib/func.pyx":10346 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_SUB_Lookback( ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1131, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10346, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 10346, __pyx_L1_error) - } - __pyx_L11_break:; - - /* "talib/func.pyx":10347 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_SUB_Lookback( ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":10348 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_SUB_Lookback( ) # <<<<<<<<<<<<<< - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_SUB_Lookback()); - - /* "talib/func.pyx":10349 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_SUB_Lookback( ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10349, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 10349, __pyx_L1_error) - __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":10350 - * lookback = begidx + lib.TA_SUB_Lookback( ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - */ - __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); - - /* "talib/func.pyx":10351 - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outreal_data[i] = NaN - * retCode = lib.TA_SUB( 0 , endidx , (real0_data+begidx) , (real1_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":10352 - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN # <<<<<<<<<<<<<< - * retCode = lib.TA_SUB( 0 , endidx , (real0_data+begidx) , (real1_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_SUB", retCode) - */ - (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_4func_NaN; - } - - /* "talib/func.pyx":10353 - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - * retCode = lib.TA_SUB( 0 , endidx , (real0_data+begidx) , (real1_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_SUB", retCode) - * return outreal - */ - __pyx_v_retCode = TA_SUB(0, __pyx_v_endidx, ((double *)(__pyx_v_real0_data + __pyx_v_begidx)), ((double *)(__pyx_v_real1_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); - - /* "talib/func.pyx":10354 - * outreal_data[i] = NaN - * retCode = lib.TA_SUB( 0 , endidx , (real0_data+begidx) , (real1_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _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, 10354, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":10355 - * retCode = lib.TA_SUB( 0 , endidx , (real0_data+begidx) , (real1_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_SUB", retCode) - * return outreal # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); - __pyx_r = ((PyObject *)__pyx_v_outreal); - goto __pyx_L0; - - /* "talib/func.pyx":10296 - * @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.func.SUB", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outreal); - __Pyx_XDECREF((PyObject *)__pyx_v_real0); - __Pyx_XDECREF((PyObject *)__pyx_v_real1); - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "talib/func.pyx":10359 - * @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_4func_287SUM(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_287SUM = {"SUM", (PyCFunction)__pyx_pw_5talib_4func_287SUM, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_286SUM}; -static PyObject *__pyx_pw_5talib_4func_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, 10359, __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, 10359, __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, 10359, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 10359, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_286SUM(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod) { - npy_intp __pyx_v_length; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - TA_RetCode __pyx_v_retCode; - double *__pyx_v_real_data; - int __pyx_v_outbegidx; - int __pyx_v_outnbelement; - PyArrayObject *__pyx_v_outreal = 0; - double *__pyx_v_outreal_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __Pyx_RefNannySetupContext("SUM", 0); - __Pyx_INCREF((PyObject *)__pyx_v_real); - - /* "talib/func.pyx":10381 - * np.ndarray outreal - * double* outreal_data - * 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/func.pyx":10382 - * double* outreal_data - * 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__1132, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10382, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 10382, __pyx_L1_error) - - /* "talib/func.pyx":10381 - * np.ndarray outreal - * double* outreal_data - * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("real is not double") - * if real.ndim != 1: - */ - } - - /* "talib/func.pyx":10383 - * 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/func.pyx":10384 - * 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__1133, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10384, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 10384, __pyx_L1_error) - - /* "talib/func.pyx":10383 - * 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/func.pyx":10385 - * 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 = real.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":10386 - * raise Exception("real has wrong dimensions") - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< - * real_data = real.data - * length = real.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10386, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 10386, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":10385 - * 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 = real.data - */ - } - - /* "talib/func.pyx":10387 - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) - * real_data = real.data # <<<<<<<<<<<<<< - * length = real.shape[0] - * begidx = 0 - */ - __pyx_v_real_data = ((double *)__pyx_v_real->data); - - /* "talib/func.pyx":10388 - * real = PyArray_GETCONTIGUOUS(real) - * real_data = real.data - * length = real.shape[0] # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_v_length = (__pyx_v_real->dimensions[0]); - - /* "talib/func.pyx":10389 - * real_data = real.data - * length = real.shape[0] - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = real_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":10390 - * length = real.shape[0] - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = real_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":10391 - * begidx = 0 - * for i from 0 <= i < length: - * val = real_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_real_data[__pyx_v_i]); - - /* "talib/func.pyx":10392 - * for i from 0 <= i < length: - * val = real_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":10393 - * val = real_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L6_continue; - - /* "talib/func.pyx":10392 - * for i from 0 <= i < length: - * val = real_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":10394 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":10395 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L7_break; - __pyx_L6_continue:; - } - /*else*/ { - - /* "talib/func.pyx":10397 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_SUM_Lookback( timeperiod ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1134, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10397, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 10397, __pyx_L1_error) - } - __pyx_L7_break:; - - /* "talib/func.pyx":10398 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_SUM_Lookback( timeperiod ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":10399 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_SUM_Lookback( timeperiod ) # <<<<<<<<<<<<<< - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_SUM_Lookback(__pyx_v_timeperiod)); - - /* "talib/func.pyx":10400 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_SUM_Lookback( timeperiod ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10400, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 10400, __pyx_L1_error) - __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":10401 - * lookback = begidx + lib.TA_SUM_Lookback( timeperiod ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - */ - __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); - - /* "talib/func.pyx":10402 - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outreal_data[i] = NaN - * retCode = lib.TA_SUM( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":10403 - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN # <<<<<<<<<<<<<< - * retCode = lib.TA_SUM( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_SUM", retCode) - */ - (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_4func_NaN; - } - - /* "talib/func.pyx":10404 - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - * retCode = lib.TA_SUM( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_SUM", retCode) - * return outreal - */ - __pyx_v_retCode = TA_SUM(0, __pyx_v_endidx, ((double *)(__pyx_v_real_data + __pyx_v_begidx)), __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); - - /* "talib/func.pyx":10405 - * outreal_data[i] = NaN - * retCode = lib.TA_SUM( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _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, 10405, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":10406 - * retCode = lib.TA_SUM( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_SUM", retCode) - * return outreal # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); - __pyx_r = ((PyObject *)__pyx_v_outreal); - goto __pyx_L0; - - /* "talib/func.pyx":10359 - * @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.func.SUM", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outreal); - __Pyx_XDECREF((PyObject *)__pyx_v_real); - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "talib/func.pyx":10410 - * @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_4func_289T3(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_289T3 = {"T3", (PyCFunction)__pyx_pw_5talib_4func_289T3, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_288T3}; -static PyObject *__pyx_pw_5talib_4func_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, 10410, __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, 10410, __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, 10410, __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, 10410, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 10410, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_288T3(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod, double __pyx_v_vfactor) { - npy_intp __pyx_v_length; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - TA_RetCode __pyx_v_retCode; - double *__pyx_v_real_data; - int __pyx_v_outbegidx; - int __pyx_v_outnbelement; - PyArrayObject *__pyx_v_outreal = 0; - double *__pyx_v_outreal_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __Pyx_RefNannySetupContext("T3", 0); - __Pyx_INCREF((PyObject *)__pyx_v_real); - - /* "talib/func.pyx":10433 - * np.ndarray outreal - * double* outreal_data - * 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/func.pyx":10434 - * double* outreal_data - * 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__1135, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10434, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 10434, __pyx_L1_error) - - /* "talib/func.pyx":10433 - * np.ndarray outreal - * double* outreal_data - * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("real is not double") - * if real.ndim != 1: - */ - } - - /* "talib/func.pyx":10435 - * 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/func.pyx":10436 - * 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__1136, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10436, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 10436, __pyx_L1_error) - - /* "talib/func.pyx":10435 - * 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/func.pyx":10437 - * 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 = real.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":10438 - * raise Exception("real has wrong dimensions") - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< - * real_data = real.data - * length = real.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10438, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 10438, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":10437 - * 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 = real.data - */ - } - - /* "talib/func.pyx":10439 - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) - * real_data = real.data # <<<<<<<<<<<<<< - * length = real.shape[0] - * begidx = 0 - */ - __pyx_v_real_data = ((double *)__pyx_v_real->data); - - /* "talib/func.pyx":10440 - * real = PyArray_GETCONTIGUOUS(real) - * real_data = real.data - * length = real.shape[0] # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_v_length = (__pyx_v_real->dimensions[0]); - - /* "talib/func.pyx":10441 - * real_data = real.data - * length = real.shape[0] - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = real_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":10442 - * length = real.shape[0] - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = real_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":10443 - * begidx = 0 - * for i from 0 <= i < length: - * val = real_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_real_data[__pyx_v_i]); - - /* "talib/func.pyx":10444 - * for i from 0 <= i < length: - * val = real_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":10445 - * val = real_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L6_continue; - - /* "talib/func.pyx":10444 - * for i from 0 <= i < length: - * val = real_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":10446 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":10447 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L7_break; - __pyx_L6_continue:; - } - /*else*/ { - - /* "talib/func.pyx":10449 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_T3_Lookback( timeperiod , vfactor ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1137, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10449, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 10449, __pyx_L1_error) - } - __pyx_L7_break:; - - /* "talib/func.pyx":10450 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_T3_Lookback( timeperiod , vfactor ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":10451 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_T3_Lookback( timeperiod , vfactor ) # <<<<<<<<<<<<<< - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_T3_Lookback(__pyx_v_timeperiod, __pyx_v_vfactor)); - - /* "talib/func.pyx":10452 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_T3_Lookback( timeperiod , vfactor ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10452, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 10452, __pyx_L1_error) - __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":10453 - * lookback = begidx + lib.TA_T3_Lookback( timeperiod , vfactor ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - */ - __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); - - /* "talib/func.pyx":10454 - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outreal_data[i] = NaN - * retCode = lib.TA_T3( 0 , endidx , (real_data+begidx) , timeperiod , vfactor , &outbegidx , &outnbelement , (outreal_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":10455 - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN # <<<<<<<<<<<<<< - * retCode = lib.TA_T3( 0 , endidx , (real_data+begidx) , timeperiod , vfactor , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_T3", retCode) - */ - (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_4func_NaN; - } - - /* "talib/func.pyx":10456 - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - * retCode = lib.TA_T3( 0 , endidx , (real_data+begidx) , timeperiod , vfactor , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_T3", retCode) - * return outreal - */ - __pyx_v_retCode = TA_T3(0, __pyx_v_endidx, ((double *)(__pyx_v_real_data + __pyx_v_begidx)), __pyx_v_timeperiod, __pyx_v_vfactor, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); - - /* "talib/func.pyx":10457 - * outreal_data[i] = NaN - * retCode = lib.TA_T3( 0 , endidx , (real_data+begidx) , timeperiod , vfactor , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _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, 10457, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":10458 - * retCode = lib.TA_T3( 0 , endidx , (real_data+begidx) , timeperiod , vfactor , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_T3", retCode) - * return outreal # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); - __pyx_r = ((PyObject *)__pyx_v_outreal); - goto __pyx_L0; - - /* "talib/func.pyx":10410 - * @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.func.T3", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outreal); - __Pyx_XDECREF((PyObject *)__pyx_v_real); - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "talib/func.pyx":10462 - * @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_4func_291TAN(PyObject *__pyx_self, PyObject *__pyx_v_real); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_291TAN = {"TAN", (PyCFunction)__pyx_pw_5talib_4func_291TAN, METH_O, __pyx_doc_5talib_4func_290TAN}; -static PyObject *__pyx_pw_5talib_4func_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, 10462, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_290TAN(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real) { - npy_intp __pyx_v_length; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - TA_RetCode __pyx_v_retCode; - double *__pyx_v_real_data; - int __pyx_v_outbegidx; - int __pyx_v_outnbelement; - PyArrayObject *__pyx_v_outreal = 0; - double *__pyx_v_outreal_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __Pyx_RefNannySetupContext("TAN", 0); - __Pyx_INCREF((PyObject *)__pyx_v_real); - - /* "talib/func.pyx":10482 - * np.ndarray outreal - * double* outreal_data - * 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/func.pyx":10483 - * double* outreal_data - * 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__1138, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10483, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 10483, __pyx_L1_error) - - /* "talib/func.pyx":10482 - * np.ndarray outreal - * double* outreal_data - * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("real is not double") - * if real.ndim != 1: - */ - } - - /* "talib/func.pyx":10484 - * 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/func.pyx":10485 - * 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__1139, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10485, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 10485, __pyx_L1_error) - - /* "talib/func.pyx":10484 - * 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/func.pyx":10486 - * 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 = real.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":10487 - * raise Exception("real has wrong dimensions") - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< - * real_data = real.data - * length = real.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10487, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 10487, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":10486 - * 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 = real.data - */ - } - - /* "talib/func.pyx":10488 - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) - * real_data = real.data # <<<<<<<<<<<<<< - * length = real.shape[0] - * begidx = 0 - */ - __pyx_v_real_data = ((double *)__pyx_v_real->data); - - /* "talib/func.pyx":10489 - * real = PyArray_GETCONTIGUOUS(real) - * real_data = real.data - * length = real.shape[0] # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_v_length = (__pyx_v_real->dimensions[0]); - - /* "talib/func.pyx":10490 - * real_data = real.data - * length = real.shape[0] - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = real_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":10491 - * length = real.shape[0] - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = real_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":10492 - * begidx = 0 - * for i from 0 <= i < length: - * val = real_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_real_data[__pyx_v_i]); - - /* "talib/func.pyx":10493 - * for i from 0 <= i < length: - * val = real_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":10494 - * val = real_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L6_continue; - - /* "talib/func.pyx":10493 - * for i from 0 <= i < length: - * val = real_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":10495 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":10496 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L7_break; - __pyx_L6_continue:; - } - /*else*/ { - - /* "talib/func.pyx":10498 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_TAN_Lookback( ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1140, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10498, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 10498, __pyx_L1_error) - } - __pyx_L7_break:; - - /* "talib/func.pyx":10499 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_TAN_Lookback( ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":10500 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_TAN_Lookback( ) # <<<<<<<<<<<<<< - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_TAN_Lookback()); - - /* "talib/func.pyx":10501 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_TAN_Lookback( ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10501, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 10501, __pyx_L1_error) - __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":10502 - * lookback = begidx + lib.TA_TAN_Lookback( ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - */ - __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); - - /* "talib/func.pyx":10503 - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outreal_data[i] = NaN - * retCode = lib.TA_TAN( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":10504 - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN # <<<<<<<<<<<<<< - * retCode = lib.TA_TAN( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_TAN", retCode) - */ - (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_4func_NaN; - } - - /* "talib/func.pyx":10505 - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - * retCode = lib.TA_TAN( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_TAN", retCode) - * return outreal - */ - __pyx_v_retCode = TA_TAN(0, __pyx_v_endidx, ((double *)(__pyx_v_real_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); - - /* "talib/func.pyx":10506 - * outreal_data[i] = NaN - * retCode = lib.TA_TAN( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _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, 10506, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":10507 - * retCode = lib.TA_TAN( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_TAN", retCode) - * return outreal # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); - __pyx_r = ((PyObject *)__pyx_v_outreal); - goto __pyx_L0; - - /* "talib/func.pyx":10462 - * @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.func.TAN", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outreal); - __Pyx_XDECREF((PyObject *)__pyx_v_real); - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "talib/func.pyx":10511 - * @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_4func_293TANH(PyObject *__pyx_self, PyObject *__pyx_v_real); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_293TANH = {"TANH", (PyCFunction)__pyx_pw_5talib_4func_293TANH, METH_O, __pyx_doc_5talib_4func_292TANH}; -static PyObject *__pyx_pw_5talib_4func_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, 10511, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_292TANH(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real) { - npy_intp __pyx_v_length; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - TA_RetCode __pyx_v_retCode; - double *__pyx_v_real_data; - int __pyx_v_outbegidx; - int __pyx_v_outnbelement; - PyArrayObject *__pyx_v_outreal = 0; - double *__pyx_v_outreal_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __Pyx_RefNannySetupContext("TANH", 0); - __Pyx_INCREF((PyObject *)__pyx_v_real); - - /* "talib/func.pyx":10531 - * np.ndarray outreal - * double* outreal_data - * 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/func.pyx":10532 - * double* outreal_data - * 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__1141, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10532, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 10532, __pyx_L1_error) - - /* "talib/func.pyx":10531 - * np.ndarray outreal - * double* outreal_data - * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("real is not double") - * if real.ndim != 1: - */ - } - - /* "talib/func.pyx":10533 - * 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/func.pyx":10534 - * 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__1142, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10534, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 10534, __pyx_L1_error) - - /* "talib/func.pyx":10533 - * 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/func.pyx":10535 - * 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 = real.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":10536 - * raise Exception("real has wrong dimensions") - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< - * real_data = real.data - * length = real.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10536, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 10536, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":10535 - * 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 = real.data - */ - } - - /* "talib/func.pyx":10537 - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) - * real_data = real.data # <<<<<<<<<<<<<< - * length = real.shape[0] - * begidx = 0 - */ - __pyx_v_real_data = ((double *)__pyx_v_real->data); - - /* "talib/func.pyx":10538 - * real = PyArray_GETCONTIGUOUS(real) - * real_data = real.data - * length = real.shape[0] # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_v_length = (__pyx_v_real->dimensions[0]); - - /* "talib/func.pyx":10539 - * real_data = real.data - * length = real.shape[0] - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = real_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":10540 - * length = real.shape[0] - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = real_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":10541 - * begidx = 0 - * for i from 0 <= i < length: - * val = real_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_real_data[__pyx_v_i]); - - /* "talib/func.pyx":10542 - * for i from 0 <= i < length: - * val = real_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":10543 - * val = real_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L6_continue; - - /* "talib/func.pyx":10542 - * for i from 0 <= i < length: - * val = real_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":10544 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":10545 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L7_break; - __pyx_L6_continue:; - } - /*else*/ { - - /* "talib/func.pyx":10547 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_TANH_Lookback( ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1143, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10547, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 10547, __pyx_L1_error) - } - __pyx_L7_break:; - - /* "talib/func.pyx":10548 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_TANH_Lookback( ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":10549 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_TANH_Lookback( ) # <<<<<<<<<<<<<< - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_TANH_Lookback()); - - /* "talib/func.pyx":10550 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_TANH_Lookback( ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10550, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 10550, __pyx_L1_error) - __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":10551 - * lookback = begidx + lib.TA_TANH_Lookback( ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - */ - __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); - - /* "talib/func.pyx":10552 - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outreal_data[i] = NaN - * retCode = lib.TA_TANH( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":10553 - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN # <<<<<<<<<<<<<< - * retCode = lib.TA_TANH( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_TANH", retCode) - */ - (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_4func_NaN; - } - - /* "talib/func.pyx":10554 - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - * retCode = lib.TA_TANH( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_TANH", retCode) - * return outreal - */ - __pyx_v_retCode = TA_TANH(0, __pyx_v_endidx, ((double *)(__pyx_v_real_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); - - /* "talib/func.pyx":10555 - * outreal_data[i] = NaN - * retCode = lib.TA_TANH( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _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, 10555, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":10556 - * retCode = lib.TA_TANH( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_TANH", retCode) - * return outreal # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); - __pyx_r = ((PyObject *)__pyx_v_outreal); - goto __pyx_L0; - - /* "talib/func.pyx":10511 - * @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.func.TANH", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outreal); - __Pyx_XDECREF((PyObject *)__pyx_v_real); - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "talib/func.pyx":10560 - * @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_4func_295TEMA(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_295TEMA = {"TEMA", (PyCFunction)__pyx_pw_5talib_4func_295TEMA, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_294TEMA}; -static PyObject *__pyx_pw_5talib_4func_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, 10560, __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, 10560, __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, 10560, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 10560, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_294TEMA(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod) { - npy_intp __pyx_v_length; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - TA_RetCode __pyx_v_retCode; - double *__pyx_v_real_data; - int __pyx_v_outbegidx; - int __pyx_v_outnbelement; - PyArrayObject *__pyx_v_outreal = 0; - double *__pyx_v_outreal_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __Pyx_RefNannySetupContext("TEMA", 0); - __Pyx_INCREF((PyObject *)__pyx_v_real); - - /* "talib/func.pyx":10582 - * np.ndarray outreal - * double* outreal_data - * 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/func.pyx":10583 - * double* outreal_data - * 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__1144, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10583, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 10583, __pyx_L1_error) - - /* "talib/func.pyx":10582 - * np.ndarray outreal - * double* outreal_data - * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("real is not double") - * if real.ndim != 1: - */ - } - - /* "talib/func.pyx":10584 - * 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/func.pyx":10585 - * 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__1145, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10585, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 10585, __pyx_L1_error) - - /* "talib/func.pyx":10584 - * 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/func.pyx":10586 - * 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 = real.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":10587 - * raise Exception("real has wrong dimensions") - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< - * real_data = real.data - * length = real.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10587, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 10587, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":10586 - * 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 = real.data - */ - } - - /* "talib/func.pyx":10588 - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) - * real_data = real.data # <<<<<<<<<<<<<< - * length = real.shape[0] - * begidx = 0 - */ - __pyx_v_real_data = ((double *)__pyx_v_real->data); - - /* "talib/func.pyx":10589 - * real = PyArray_GETCONTIGUOUS(real) - * real_data = real.data - * length = real.shape[0] # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_v_length = (__pyx_v_real->dimensions[0]); - - /* "talib/func.pyx":10590 - * real_data = real.data - * length = real.shape[0] - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = real_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":10591 - * length = real.shape[0] - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = real_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":10592 - * begidx = 0 - * for i from 0 <= i < length: - * val = real_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_real_data[__pyx_v_i]); - - /* "talib/func.pyx":10593 - * for i from 0 <= i < length: - * val = real_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":10594 - * val = real_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L6_continue; - - /* "talib/func.pyx":10593 - * for i from 0 <= i < length: - * val = real_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":10595 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":10596 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L7_break; - __pyx_L6_continue:; - } - /*else*/ { - - /* "talib/func.pyx":10598 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_TEMA_Lookback( timeperiod ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1146, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10598, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 10598, __pyx_L1_error) - } - __pyx_L7_break:; - - /* "talib/func.pyx":10599 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_TEMA_Lookback( timeperiod ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":10600 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_TEMA_Lookback( timeperiod ) # <<<<<<<<<<<<<< - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_TEMA_Lookback(__pyx_v_timeperiod)); - - /* "talib/func.pyx":10601 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_TEMA_Lookback( timeperiod ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10601, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 10601, __pyx_L1_error) - __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":10602 - * lookback = begidx + lib.TA_TEMA_Lookback( timeperiod ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - */ - __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); - - /* "talib/func.pyx":10603 - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outreal_data[i] = NaN - * retCode = lib.TA_TEMA( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":10604 - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN # <<<<<<<<<<<<<< - * retCode = lib.TA_TEMA( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_TEMA", retCode) - */ - (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_4func_NaN; - } - - /* "talib/func.pyx":10605 - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - * retCode = lib.TA_TEMA( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_TEMA", retCode) - * return outreal - */ - __pyx_v_retCode = TA_TEMA(0, __pyx_v_endidx, ((double *)(__pyx_v_real_data + __pyx_v_begidx)), __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); - - /* "talib/func.pyx":10606 - * outreal_data[i] = NaN - * retCode = lib.TA_TEMA( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _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, 10606, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":10607 - * retCode = lib.TA_TEMA( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_TEMA", retCode) - * return outreal # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); - __pyx_r = ((PyObject *)__pyx_v_outreal); - goto __pyx_L0; - - /* "talib/func.pyx":10560 - * @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.func.TEMA", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outreal); - __Pyx_XDECREF((PyObject *)__pyx_v_real); - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "talib/func.pyx":10611 - * @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_4func_297TRANGE(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_297TRANGE = {"TRANGE", (PyCFunction)__pyx_pw_5talib_4func_297TRANGE, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_296TRANGE}; -static PyObject *__pyx_pw_5talib_4func_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, 10611, __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, 10611, __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, 10611, __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, 10611, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 10611, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 10611, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 10611, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_296TRANGE(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close) { - npy_intp __pyx_v_length; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - 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; - PyArrayObject *__pyx_v_outreal = 0; - double *__pyx_v_outreal_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __Pyx_RefNannySetupContext("TRANGE", 0); - __Pyx_INCREF((PyObject *)__pyx_v_high); - __Pyx_INCREF((PyObject *)__pyx_v_low); - __Pyx_INCREF((PyObject *)__pyx_v_close); - - /* "talib/func.pyx":10633 - * np.ndarray outreal - * double* outreal_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/func.pyx":10634 - * double* outreal_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__1147, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10634, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 10634, __pyx_L1_error) - - /* "talib/func.pyx":10633 - * np.ndarray outreal - * double* outreal_data - * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("high is not double") - * if high.ndim != 1: - */ - } - - /* "talib/func.pyx":10635 - * 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/func.pyx":10636 - * raise 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__1148, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10636, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 10636, __pyx_L1_error) - - /* "talib/func.pyx":10635 - * 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/func.pyx":10637 - * 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 = high.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":10638 - * raise Exception("high has wrong dimensions") - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< - * high_data = 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, 10638, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 10638, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":10637 - * 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 = high.data - */ - } - - /* "talib/func.pyx":10639 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":10640 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":10641 - * high_data = 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__1149, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10641, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 10641, __pyx_L1_error) - - /* "talib/func.pyx":10640 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = high.data - * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("low is not double") - * if low.ndim != 1: - */ - } - - /* "talib/func.pyx":10642 - * 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/func.pyx":10643 - * raise 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__1150, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10643, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 10643, __pyx_L1_error) - - /* "talib/func.pyx":10642 - * 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/func.pyx":10644 - * 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 = low.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":10645 - * raise Exception("low has wrong dimensions") - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< - * low_data = 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, 10645, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 10645, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":10644 - * 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 = low.data - */ - } - - /* "talib/func.pyx":10646 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":10647 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":10648 - * low_data = 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__1151, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10648, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 10648, __pyx_L1_error) - - /* "talib/func.pyx":10647 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = low.data - * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("close is not double") - * if close.ndim != 1: - */ - } - - /* "talib/func.pyx":10649 - * 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/func.pyx":10650 - * raise 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__1152, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10650, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 10650, __pyx_L1_error) - - /* "talib/func.pyx":10649 - * 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/func.pyx":10651 - * 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 = close.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":10652 - * raise Exception("close has wrong dimensions") - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< - * close_data = close.data - * length = high.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10652, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 10652, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":10651 - * 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 = close.data - */ - } - - /* "talib/func.pyx":10653 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = close.data # <<<<<<<<<<<<<< - * length = high.shape[0] - * if length != low.shape[0]: - */ - __pyx_v_close_data = ((double *)__pyx_v_close->data); - - /* "talib/func.pyx":10654 - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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/func.pyx":10655 - * close_data = 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/func.pyx":10656 - * 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__1153, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10656, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 10656, __pyx_L1_error) - - /* "talib/func.pyx":10655 - * close_data = close.data - * length = high.shape[0] - * if length != low.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * if length != close.shape[0]: - */ - } - - /* "talib/func.pyx":10657 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":10658 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1154, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10658, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 10658, __pyx_L1_error) - - /* "talib/func.pyx":10657 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - } - - /* "talib/func.pyx":10659 - * if length != close.shape[0]: - * raise Exception("input lengths are different") - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = high_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":10660 - * raise Exception("input lengths are different") - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = high_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":10661 - * begidx = 0 - * for i from 0 <= i < length: - * val = high_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); - - /* "talib/func.pyx":10662 - * for i from 0 <= i < length: - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":10663 - * val = high_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = low_data[i] - * if val != val: - */ - goto __pyx_L14_continue; - - /* "talib/func.pyx":10662 - * for i from 0 <= i < length: - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - } - - /* "talib/func.pyx":10664 - * if val != val: - * continue - * val = low_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); - - /* "talib/func.pyx":10665 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":10666 - * val = low_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = close_data[i] - * if val != val: - */ - goto __pyx_L14_continue; - - /* "talib/func.pyx":10665 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - } - - /* "talib/func.pyx":10667 - * if val != val: - * continue - * val = close_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); - - /* "talib/func.pyx":10668 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":10669 - * val = close_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L14_continue; - - /* "talib/func.pyx":10668 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":10670 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":10671 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L15_break; - __pyx_L14_continue:; - } - /*else*/ { - - /* "talib/func.pyx":10673 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_TRANGE_Lookback( ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1155, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10673, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 10673, __pyx_L1_error) - } - __pyx_L15_break:; - - /* "talib/func.pyx":10674 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_TRANGE_Lookback( ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":10675 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_TRANGE_Lookback( ) # <<<<<<<<<<<<<< - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_TRANGE_Lookback()); - - /* "talib/func.pyx":10676 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_TRANGE_Lookback( ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10676, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 10676, __pyx_L1_error) - __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":10677 - * lookback = begidx + lib.TA_TRANGE_Lookback( ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - */ - __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); - - /* "talib/func.pyx":10678 - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outreal_data[i] = NaN - * retCode = lib.TA_TRANGE( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":10679 - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN # <<<<<<<<<<<<<< - * retCode = lib.TA_TRANGE( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_TRANGE", retCode) - */ - (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_4func_NaN; - } - - /* "talib/func.pyx":10680 - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - * retCode = lib.TA_TRANGE( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_TRANGE", retCode) - * return outreal - */ - __pyx_v_retCode = TA_TRANGE(0, __pyx_v_endidx, ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); - - /* "talib/func.pyx":10681 - * outreal_data[i] = NaN - * retCode = lib.TA_TRANGE( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _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, 10681, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":10682 - * retCode = lib.TA_TRANGE( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_TRANGE", retCode) - * return outreal # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); - __pyx_r = ((PyObject *)__pyx_v_outreal); - goto __pyx_L0; - - /* "talib/func.pyx":10611 - * @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.func.TRANGE", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outreal); - __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/func.pyx":10686 - * @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_4func_299TRIMA(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_299TRIMA = {"TRIMA", (PyCFunction)__pyx_pw_5talib_4func_299TRIMA, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_298TRIMA}; -static PyObject *__pyx_pw_5talib_4func_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, 10686, __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, 10686, __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, 10686, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 10686, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_298TRIMA(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod) { - npy_intp __pyx_v_length; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - TA_RetCode __pyx_v_retCode; - double *__pyx_v_real_data; - int __pyx_v_outbegidx; - int __pyx_v_outnbelement; - PyArrayObject *__pyx_v_outreal = 0; - double *__pyx_v_outreal_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __Pyx_RefNannySetupContext("TRIMA", 0); - __Pyx_INCREF((PyObject *)__pyx_v_real); - - /* "talib/func.pyx":10708 - * np.ndarray outreal - * double* outreal_data - * 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/func.pyx":10709 - * double* outreal_data - * 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__1156, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10709, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 10709, __pyx_L1_error) - - /* "talib/func.pyx":10708 - * np.ndarray outreal - * double* outreal_data - * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("real is not double") - * if real.ndim != 1: - */ - } - - /* "talib/func.pyx":10710 - * 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/func.pyx":10711 - * 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__1157, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10711, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 10711, __pyx_L1_error) - - /* "talib/func.pyx":10710 - * 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/func.pyx":10712 - * 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 = real.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":10713 - * raise Exception("real has wrong dimensions") - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< - * real_data = real.data - * length = real.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10713, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 10713, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":10712 - * 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 = real.data - */ - } - - /* "talib/func.pyx":10714 - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) - * real_data = real.data # <<<<<<<<<<<<<< - * length = real.shape[0] - * begidx = 0 - */ - __pyx_v_real_data = ((double *)__pyx_v_real->data); - - /* "talib/func.pyx":10715 - * real = PyArray_GETCONTIGUOUS(real) - * real_data = real.data - * length = real.shape[0] # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_v_length = (__pyx_v_real->dimensions[0]); - - /* "talib/func.pyx":10716 - * real_data = real.data - * length = real.shape[0] - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = real_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":10717 - * length = real.shape[0] - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = real_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":10718 - * begidx = 0 - * for i from 0 <= i < length: - * val = real_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_real_data[__pyx_v_i]); - - /* "talib/func.pyx":10719 - * for i from 0 <= i < length: - * val = real_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":10720 - * val = real_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L6_continue; - - /* "talib/func.pyx":10719 - * for i from 0 <= i < length: - * val = real_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":10721 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":10722 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L7_break; - __pyx_L6_continue:; - } - /*else*/ { - - /* "talib/func.pyx":10724 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_TRIMA_Lookback( timeperiod ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1158, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10724, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 10724, __pyx_L1_error) - } - __pyx_L7_break:; - - /* "talib/func.pyx":10725 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_TRIMA_Lookback( timeperiod ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":10726 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_TRIMA_Lookback( timeperiod ) # <<<<<<<<<<<<<< - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_TRIMA_Lookback(__pyx_v_timeperiod)); - - /* "talib/func.pyx":10727 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_TRIMA_Lookback( timeperiod ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10727, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 10727, __pyx_L1_error) - __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":10728 - * lookback = begidx + lib.TA_TRIMA_Lookback( timeperiod ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - */ - __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); - - /* "talib/func.pyx":10729 - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outreal_data[i] = NaN - * retCode = lib.TA_TRIMA( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":10730 - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN # <<<<<<<<<<<<<< - * retCode = lib.TA_TRIMA( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_TRIMA", retCode) - */ - (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_4func_NaN; - } - - /* "talib/func.pyx":10731 - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - * retCode = lib.TA_TRIMA( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_TRIMA", retCode) - * return outreal - */ - __pyx_v_retCode = TA_TRIMA(0, __pyx_v_endidx, ((double *)(__pyx_v_real_data + __pyx_v_begidx)), __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); - - /* "talib/func.pyx":10732 - * outreal_data[i] = NaN - * retCode = lib.TA_TRIMA( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _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, 10732, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":10733 - * retCode = lib.TA_TRIMA( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_TRIMA", retCode) - * return outreal # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); - __pyx_r = ((PyObject *)__pyx_v_outreal); - goto __pyx_L0; - - /* "talib/func.pyx":10686 - * @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.func.TRIMA", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outreal); - __Pyx_XDECREF((PyObject *)__pyx_v_real); - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "talib/func.pyx":10737 - * @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_4func_301TRIX(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_301TRIX = {"TRIX", (PyCFunction)__pyx_pw_5talib_4func_301TRIX, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_300TRIX}; -static PyObject *__pyx_pw_5talib_4func_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, 10737, __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, 10737, __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, 10737, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 10737, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_300TRIX(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod) { - npy_intp __pyx_v_length; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - TA_RetCode __pyx_v_retCode; - double *__pyx_v_real_data; - int __pyx_v_outbegidx; - int __pyx_v_outnbelement; - PyArrayObject *__pyx_v_outreal = 0; - double *__pyx_v_outreal_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __Pyx_RefNannySetupContext("TRIX", 0); - __Pyx_INCREF((PyObject *)__pyx_v_real); - - /* "talib/func.pyx":10759 - * np.ndarray outreal - * double* outreal_data - * 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/func.pyx":10760 - * double* outreal_data - * 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__1159, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10760, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 10760, __pyx_L1_error) - - /* "talib/func.pyx":10759 - * np.ndarray outreal - * double* outreal_data - * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("real is not double") - * if real.ndim != 1: - */ - } - - /* "talib/func.pyx":10761 - * 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/func.pyx":10762 - * 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__1160, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10762, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 10762, __pyx_L1_error) - - /* "talib/func.pyx":10761 - * 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/func.pyx":10763 - * 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 = real.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":10764 - * raise Exception("real has wrong dimensions") - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< - * real_data = real.data - * length = real.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10764, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 10764, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":10763 - * 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 = real.data - */ - } - - /* "talib/func.pyx":10765 - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) - * real_data = real.data # <<<<<<<<<<<<<< - * length = real.shape[0] - * begidx = 0 - */ - __pyx_v_real_data = ((double *)__pyx_v_real->data); - - /* "talib/func.pyx":10766 - * real = PyArray_GETCONTIGUOUS(real) - * real_data = real.data - * length = real.shape[0] # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_v_length = (__pyx_v_real->dimensions[0]); - - /* "talib/func.pyx":10767 - * real_data = real.data - * length = real.shape[0] - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = real_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":10768 - * length = real.shape[0] - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = real_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":10769 - * begidx = 0 - * for i from 0 <= i < length: - * val = real_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_real_data[__pyx_v_i]); - - /* "talib/func.pyx":10770 - * for i from 0 <= i < length: - * val = real_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":10771 - * val = real_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L6_continue; - - /* "talib/func.pyx":10770 - * for i from 0 <= i < length: - * val = real_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":10772 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":10773 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L7_break; - __pyx_L6_continue:; - } - /*else*/ { - - /* "talib/func.pyx":10775 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_TRIX_Lookback( timeperiod ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1161, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10775, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 10775, __pyx_L1_error) - } - __pyx_L7_break:; - - /* "talib/func.pyx":10776 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_TRIX_Lookback( timeperiod ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":10777 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_TRIX_Lookback( timeperiod ) # <<<<<<<<<<<<<< - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_TRIX_Lookback(__pyx_v_timeperiod)); - - /* "talib/func.pyx":10778 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_TRIX_Lookback( timeperiod ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10778, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 10778, __pyx_L1_error) - __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":10779 - * lookback = begidx + lib.TA_TRIX_Lookback( timeperiod ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - */ - __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); - - /* "talib/func.pyx":10780 - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outreal_data[i] = NaN - * retCode = lib.TA_TRIX( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":10781 - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN # <<<<<<<<<<<<<< - * retCode = lib.TA_TRIX( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_TRIX", retCode) - */ - (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_4func_NaN; - } - - /* "talib/func.pyx":10782 - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - * retCode = lib.TA_TRIX( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_TRIX", retCode) - * return outreal - */ - __pyx_v_retCode = TA_TRIX(0, __pyx_v_endidx, ((double *)(__pyx_v_real_data + __pyx_v_begidx)), __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); - - /* "talib/func.pyx":10783 - * outreal_data[i] = NaN - * retCode = lib.TA_TRIX( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _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, 10783, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":10784 - * retCode = lib.TA_TRIX( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_TRIX", retCode) - * return outreal # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); - __pyx_r = ((PyObject *)__pyx_v_outreal); - goto __pyx_L0; - - /* "talib/func.pyx":10737 - * @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.func.TRIX", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outreal); - __Pyx_XDECREF((PyObject *)__pyx_v_real); - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "talib/func.pyx":10788 - * @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_4func_303TSF(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_303TSF = {"TSF", (PyCFunction)__pyx_pw_5talib_4func_303TSF, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_302TSF}; -static PyObject *__pyx_pw_5talib_4func_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, 10788, __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, 10788, __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, 10788, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 10788, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_302TSF(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod) { - npy_intp __pyx_v_length; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - TA_RetCode __pyx_v_retCode; - double *__pyx_v_real_data; - int __pyx_v_outbegidx; - int __pyx_v_outnbelement; - PyArrayObject *__pyx_v_outreal = 0; - double *__pyx_v_outreal_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __Pyx_RefNannySetupContext("TSF", 0); - __Pyx_INCREF((PyObject *)__pyx_v_real); - - /* "talib/func.pyx":10810 - * np.ndarray outreal - * double* outreal_data - * 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/func.pyx":10811 - * double* outreal_data - * 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__1162, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10811, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 10811, __pyx_L1_error) - - /* "talib/func.pyx":10810 - * np.ndarray outreal - * double* outreal_data - * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("real is not double") - * if real.ndim != 1: - */ - } - - /* "talib/func.pyx":10812 - * 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/func.pyx":10813 - * 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__1163, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10813, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 10813, __pyx_L1_error) - - /* "talib/func.pyx":10812 - * 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/func.pyx":10814 - * 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 = real.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":10815 - * raise Exception("real has wrong dimensions") - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< - * real_data = real.data - * length = real.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10815, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 10815, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":10814 - * 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 = real.data - */ - } - - /* "talib/func.pyx":10816 - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) - * real_data = real.data # <<<<<<<<<<<<<< - * length = real.shape[0] - * begidx = 0 - */ - __pyx_v_real_data = ((double *)__pyx_v_real->data); - - /* "talib/func.pyx":10817 - * real = PyArray_GETCONTIGUOUS(real) - * real_data = real.data - * length = real.shape[0] # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_v_length = (__pyx_v_real->dimensions[0]); - - /* "talib/func.pyx":10818 - * real_data = real.data - * length = real.shape[0] - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = real_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":10819 - * length = real.shape[0] - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = real_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":10820 - * begidx = 0 - * for i from 0 <= i < length: - * val = real_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_real_data[__pyx_v_i]); - - /* "talib/func.pyx":10821 - * for i from 0 <= i < length: - * val = real_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":10822 - * val = real_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L6_continue; - - /* "talib/func.pyx":10821 - * for i from 0 <= i < length: - * val = real_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":10823 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":10824 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L7_break; - __pyx_L6_continue:; - } - /*else*/ { - - /* "talib/func.pyx":10826 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_TSF_Lookback( timeperiod ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1164, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10826, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 10826, __pyx_L1_error) - } - __pyx_L7_break:; - - /* "talib/func.pyx":10827 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_TSF_Lookback( timeperiod ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":10828 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_TSF_Lookback( timeperiod ) # <<<<<<<<<<<<<< - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_TSF_Lookback(__pyx_v_timeperiod)); - - /* "talib/func.pyx":10829 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_TSF_Lookback( timeperiod ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10829, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 10829, __pyx_L1_error) - __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":10830 - * lookback = begidx + lib.TA_TSF_Lookback( timeperiod ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - */ - __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); - - /* "talib/func.pyx":10831 - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outreal_data[i] = NaN - * retCode = lib.TA_TSF( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":10832 - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN # <<<<<<<<<<<<<< - * retCode = lib.TA_TSF( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_TSF", retCode) - */ - (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_4func_NaN; - } - - /* "talib/func.pyx":10833 - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - * retCode = lib.TA_TSF( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_TSF", retCode) - * return outreal - */ - __pyx_v_retCode = TA_TSF(0, __pyx_v_endidx, ((double *)(__pyx_v_real_data + __pyx_v_begidx)), __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); - - /* "talib/func.pyx":10834 - * outreal_data[i] = NaN - * retCode = lib.TA_TSF( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _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, 10834, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":10835 - * retCode = lib.TA_TSF( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_TSF", retCode) - * return outreal # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); - __pyx_r = ((PyObject *)__pyx_v_outreal); - goto __pyx_L0; - - /* "talib/func.pyx":10788 - * @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.func.TSF", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outreal); - __Pyx_XDECREF((PyObject *)__pyx_v_real); - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "talib/func.pyx":10839 - * @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_4func_305TYPPRICE(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_305TYPPRICE = {"TYPPRICE", (PyCFunction)__pyx_pw_5talib_4func_305TYPPRICE, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_304TYPPRICE}; -static PyObject *__pyx_pw_5talib_4func_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, 10839, __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, 10839, __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, 10839, __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, 10839, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 10839, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 10839, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 10839, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_304TYPPRICE(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close) { - npy_intp __pyx_v_length; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - 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; - PyArrayObject *__pyx_v_outreal = 0; - double *__pyx_v_outreal_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __Pyx_RefNannySetupContext("TYPPRICE", 0); - __Pyx_INCREF((PyObject *)__pyx_v_high); - __Pyx_INCREF((PyObject *)__pyx_v_low); - __Pyx_INCREF((PyObject *)__pyx_v_close); - - /* "talib/func.pyx":10861 - * np.ndarray outreal - * double* outreal_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/func.pyx":10862 - * double* outreal_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__1165, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10862, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 10862, __pyx_L1_error) - - /* "talib/func.pyx":10861 - * np.ndarray outreal - * double* outreal_data - * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("high is not double") - * if high.ndim != 1: - */ - } - - /* "talib/func.pyx":10863 - * 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/func.pyx":10864 - * raise 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__1166, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10864, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 10864, __pyx_L1_error) - - /* "talib/func.pyx":10863 - * 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/func.pyx":10865 - * 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 = high.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":10866 - * raise Exception("high has wrong dimensions") - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< - * high_data = 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, 10866, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 10866, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":10865 - * 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 = high.data - */ - } - - /* "talib/func.pyx":10867 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":10868 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":10869 - * high_data = 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__1167, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10869, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 10869, __pyx_L1_error) - - /* "talib/func.pyx":10868 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = high.data - * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("low is not double") - * if low.ndim != 1: - */ - } - - /* "talib/func.pyx":10870 - * 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/func.pyx":10871 - * raise 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__1168, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10871, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 10871, __pyx_L1_error) - - /* "talib/func.pyx":10870 - * 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/func.pyx":10872 - * 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 = low.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":10873 - * raise Exception("low has wrong dimensions") - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< - * low_data = 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, 10873, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 10873, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":10872 - * 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 = low.data - */ - } - - /* "talib/func.pyx":10874 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":10875 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":10876 - * low_data = 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__1169, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10876, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 10876, __pyx_L1_error) - - /* "talib/func.pyx":10875 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = low.data - * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("close is not double") - * if close.ndim != 1: - */ - } - - /* "talib/func.pyx":10877 - * 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/func.pyx":10878 - * raise 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__1170, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10878, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 10878, __pyx_L1_error) - - /* "talib/func.pyx":10877 - * 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/func.pyx":10879 - * 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 = close.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":10880 - * raise Exception("close has wrong dimensions") - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< - * close_data = close.data - * length = high.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10880, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 10880, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":10879 - * 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 = close.data - */ - } - - /* "talib/func.pyx":10881 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = close.data # <<<<<<<<<<<<<< - * length = high.shape[0] - * if length != low.shape[0]: - */ - __pyx_v_close_data = ((double *)__pyx_v_close->data); - - /* "talib/func.pyx":10882 - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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/func.pyx":10883 - * close_data = 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/func.pyx":10884 - * 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__1171, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10884, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 10884, __pyx_L1_error) - - /* "talib/func.pyx":10883 - * close_data = close.data - * length = high.shape[0] - * if length != low.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * if length != close.shape[0]: - */ - } - - /* "talib/func.pyx":10885 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":10886 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1172, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10886, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 10886, __pyx_L1_error) - - /* "talib/func.pyx":10885 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - } - - /* "talib/func.pyx":10887 - * if length != close.shape[0]: - * raise Exception("input lengths are different") - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = high_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":10888 - * raise Exception("input lengths are different") - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = high_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":10889 - * begidx = 0 - * for i from 0 <= i < length: - * val = high_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); - - /* "talib/func.pyx":10890 - * for i from 0 <= i < length: - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":10891 - * val = high_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = low_data[i] - * if val != val: - */ - goto __pyx_L14_continue; - - /* "talib/func.pyx":10890 - * for i from 0 <= i < length: - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - } - - /* "talib/func.pyx":10892 - * if val != val: - * continue - * val = low_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); - - /* "talib/func.pyx":10893 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":10894 - * val = low_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = close_data[i] - * if val != val: - */ - goto __pyx_L14_continue; - - /* "talib/func.pyx":10893 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - } - - /* "talib/func.pyx":10895 - * if val != val: - * continue - * val = close_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); - - /* "talib/func.pyx":10896 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":10897 - * val = close_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L14_continue; - - /* "talib/func.pyx":10896 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":10898 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":10899 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L15_break; - __pyx_L14_continue:; - } - /*else*/ { - - /* "talib/func.pyx":10901 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_TYPPRICE_Lookback( ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1173, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10901, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 10901, __pyx_L1_error) - } - __pyx_L15_break:; - - /* "talib/func.pyx":10902 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_TYPPRICE_Lookback( ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":10903 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_TYPPRICE_Lookback( ) # <<<<<<<<<<<<<< - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_TYPPRICE_Lookback()); - - /* "talib/func.pyx":10904 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_TYPPRICE_Lookback( ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10904, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 10904, __pyx_L1_error) - __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":10905 - * lookback = begidx + lib.TA_TYPPRICE_Lookback( ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - */ - __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); - - /* "talib/func.pyx":10906 - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outreal_data[i] = NaN - * retCode = lib.TA_TYPPRICE( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":10907 - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN # <<<<<<<<<<<<<< - * retCode = lib.TA_TYPPRICE( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_TYPPRICE", retCode) - */ - (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_4func_NaN; - } - - /* "talib/func.pyx":10908 - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - * retCode = lib.TA_TYPPRICE( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_TYPPRICE", retCode) - * return outreal - */ - __pyx_v_retCode = TA_TYPPRICE(0, __pyx_v_endidx, ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); - - /* "talib/func.pyx":10909 - * outreal_data[i] = NaN - * retCode = lib.TA_TYPPRICE( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _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, 10909, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":10910 - * retCode = lib.TA_TYPPRICE( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_TYPPRICE", retCode) - * return outreal # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); - __pyx_r = ((PyObject *)__pyx_v_outreal); - goto __pyx_L0; - - /* "talib/func.pyx":10839 - * @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.func.TYPPRICE", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outreal); - __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/func.pyx":10914 - * @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_4func_307ULTOSC(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_307ULTOSC = {"ULTOSC", (PyCFunction)__pyx_pw_5talib_4func_307ULTOSC, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_306ULTOSC}; -static PyObject *__pyx_pw_5talib_4func_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, 10914, __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, 10914, __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, 10914, __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, 10914, __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, 10914, __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, 10914, __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, 10914, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 10914, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 10914, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 10914, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_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; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - 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; - PyArrayObject *__pyx_v_outreal = 0; - double *__pyx_v_outreal_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __Pyx_RefNannySetupContext("ULTOSC", 0); - __Pyx_INCREF((PyObject *)__pyx_v_high); - __Pyx_INCREF((PyObject *)__pyx_v_low); - __Pyx_INCREF((PyObject *)__pyx_v_close); - - /* "talib/func.pyx":10940 - * np.ndarray outreal - * double* outreal_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/func.pyx":10941 - * double* outreal_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__1174, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10941, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 10941, __pyx_L1_error) - - /* "talib/func.pyx":10940 - * np.ndarray outreal - * double* outreal_data - * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("high is not double") - * if high.ndim != 1: - */ - } - - /* "talib/func.pyx":10942 - * 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/func.pyx":10943 - * raise 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__1175, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10943, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 10943, __pyx_L1_error) - - /* "talib/func.pyx":10942 - * 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/func.pyx":10944 - * 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 = high.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":10945 - * raise Exception("high has wrong dimensions") - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< - * high_data = 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, 10945, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 10945, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":10944 - * 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 = high.data - */ - } - - /* "talib/func.pyx":10946 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":10947 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":10948 - * high_data = 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__1176, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10948, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 10948, __pyx_L1_error) - - /* "talib/func.pyx":10947 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = high.data - * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("low is not double") - * if low.ndim != 1: - */ - } - - /* "talib/func.pyx":10949 - * 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/func.pyx":10950 - * raise 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__1177, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10950, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 10950, __pyx_L1_error) - - /* "talib/func.pyx":10949 - * 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/func.pyx":10951 - * 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 = low.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":10952 - * raise Exception("low has wrong dimensions") - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< - * low_data = 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, 10952, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 10952, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":10951 - * 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 = low.data - */ - } - - /* "talib/func.pyx":10953 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":10954 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":10955 - * low_data = 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__1178, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10955, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 10955, __pyx_L1_error) - - /* "talib/func.pyx":10954 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = low.data - * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("close is not double") - * if close.ndim != 1: - */ - } - - /* "talib/func.pyx":10956 - * 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/func.pyx":10957 - * raise 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__1179, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10957, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 10957, __pyx_L1_error) - - /* "talib/func.pyx":10956 - * 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/func.pyx":10958 - * 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 = close.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":10959 - * raise Exception("close has wrong dimensions") - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< - * close_data = close.data - * length = high.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10959, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 10959, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":10958 - * 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 = close.data - */ - } - - /* "talib/func.pyx":10960 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = close.data # <<<<<<<<<<<<<< - * length = high.shape[0] - * if length != low.shape[0]: - */ - __pyx_v_close_data = ((double *)__pyx_v_close->data); - - /* "talib/func.pyx":10961 - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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/func.pyx":10962 - * close_data = 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/func.pyx":10963 - * 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__1180, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10963, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 10963, __pyx_L1_error) - - /* "talib/func.pyx":10962 - * close_data = close.data - * length = high.shape[0] - * if length != low.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * if length != close.shape[0]: - */ - } - - /* "talib/func.pyx":10964 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":10965 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1181, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10965, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 10965, __pyx_L1_error) - - /* "talib/func.pyx":10964 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - } - - /* "talib/func.pyx":10966 - * if length != close.shape[0]: - * raise Exception("input lengths are different") - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = high_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":10967 - * raise Exception("input lengths are different") - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = high_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":10968 - * begidx = 0 - * for i from 0 <= i < length: - * val = high_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); - - /* "talib/func.pyx":10969 - * for i from 0 <= i < length: - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":10970 - * val = high_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = low_data[i] - * if val != val: - */ - goto __pyx_L14_continue; - - /* "talib/func.pyx":10969 - * for i from 0 <= i < length: - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - } - - /* "talib/func.pyx":10971 - * if val != val: - * continue - * val = low_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); - - /* "talib/func.pyx":10972 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":10973 - * val = low_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = close_data[i] - * if val != val: - */ - goto __pyx_L14_continue; - - /* "talib/func.pyx":10972 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - } - - /* "talib/func.pyx":10974 - * if val != val: - * continue - * val = close_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); - - /* "talib/func.pyx":10975 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":10976 - * val = close_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L14_continue; - - /* "talib/func.pyx":10975 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":10977 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":10978 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L15_break; - __pyx_L14_continue:; - } - /*else*/ { - - /* "talib/func.pyx":10980 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_ULTOSC_Lookback( timeperiod1 , timeperiod2 , timeperiod3 ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1182, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10980, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 10980, __pyx_L1_error) - } - __pyx_L15_break:; - - /* "talib/func.pyx":10981 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_ULTOSC_Lookback( timeperiod1 , timeperiod2 , timeperiod3 ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":10982 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_ULTOSC_Lookback( timeperiod1 , timeperiod2 , timeperiod3 ) # <<<<<<<<<<<<<< - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_ULTOSC_Lookback(__pyx_v_timeperiod1, __pyx_v_timeperiod2, __pyx_v_timeperiod3)); - - /* "talib/func.pyx":10983 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_ULTOSC_Lookback( timeperiod1 , timeperiod2 , timeperiod3 ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 10983, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 10983, __pyx_L1_error) - __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":10984 - * lookback = begidx + lib.TA_ULTOSC_Lookback( timeperiod1 , timeperiod2 , timeperiod3 ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - */ - __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); - - /* "talib/func.pyx":10985 - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outreal_data[i] = NaN - * retCode = lib.TA_ULTOSC( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , timeperiod1 , timeperiod2 , timeperiod3 , &outbegidx , &outnbelement , (outreal_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":10986 - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN # <<<<<<<<<<<<<< - * retCode = lib.TA_ULTOSC( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , timeperiod1 , timeperiod2 , timeperiod3 , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_ULTOSC", retCode) - */ - (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_4func_NaN; - } - - /* "talib/func.pyx":10987 - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - * retCode = lib.TA_ULTOSC( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , timeperiod1 , timeperiod2 , timeperiod3 , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_ULTOSC", retCode) - * return outreal - */ - __pyx_v_retCode = TA_ULTOSC(0, __pyx_v_endidx, ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), __pyx_v_timeperiod1, __pyx_v_timeperiod2, __pyx_v_timeperiod3, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); - - /* "talib/func.pyx":10988 - * outreal_data[i] = NaN - * retCode = lib.TA_ULTOSC( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , timeperiod1 , timeperiod2 , timeperiod3 , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _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, 10988, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":10989 - * retCode = lib.TA_ULTOSC( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , timeperiod1 , timeperiod2 , timeperiod3 , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_ULTOSC", retCode) - * return outreal # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); - __pyx_r = ((PyObject *)__pyx_v_outreal); - goto __pyx_L0; - - /* "talib/func.pyx":10914 - * @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.func.ULTOSC", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outreal); - __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/func.pyx":10993 - * @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_4func_309VAR(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_309VAR = {"VAR", (PyCFunction)__pyx_pw_5talib_4func_309VAR, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_308VAR}; -static PyObject *__pyx_pw_5talib_4func_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, 10993, __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, 10993, __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, 10993, __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, 10993, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 10993, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_308VAR(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod, double __pyx_v_nbdev) { - npy_intp __pyx_v_length; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - TA_RetCode __pyx_v_retCode; - double *__pyx_v_real_data; - int __pyx_v_outbegidx; - int __pyx_v_outnbelement; - PyArrayObject *__pyx_v_outreal = 0; - double *__pyx_v_outreal_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __Pyx_RefNannySetupContext("VAR", 0); - __Pyx_INCREF((PyObject *)__pyx_v_real); - - /* "talib/func.pyx":11016 - * np.ndarray outreal - * double* outreal_data - * 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/func.pyx":11017 - * double* outreal_data - * 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__1183, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11017, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 11017, __pyx_L1_error) - - /* "talib/func.pyx":11016 - * np.ndarray outreal - * double* outreal_data - * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("real is not double") - * if real.ndim != 1: - */ - } - - /* "talib/func.pyx":11018 - * 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/func.pyx":11019 - * 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__1184, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11019, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 11019, __pyx_L1_error) - - /* "talib/func.pyx":11018 - * 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/func.pyx":11020 - * 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 = real.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":11021 - * raise Exception("real has wrong dimensions") - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< - * real_data = real.data - * length = real.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11021, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 11021, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":11020 - * 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 = real.data - */ - } - - /* "talib/func.pyx":11022 - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) - * real_data = real.data # <<<<<<<<<<<<<< - * length = real.shape[0] - * begidx = 0 - */ - __pyx_v_real_data = ((double *)__pyx_v_real->data); - - /* "talib/func.pyx":11023 - * real = PyArray_GETCONTIGUOUS(real) - * real_data = real.data - * length = real.shape[0] # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_v_length = (__pyx_v_real->dimensions[0]); - - /* "talib/func.pyx":11024 - * real_data = real.data - * length = real.shape[0] - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = real_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":11025 - * length = real.shape[0] - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = real_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":11026 - * begidx = 0 - * for i from 0 <= i < length: - * val = real_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_real_data[__pyx_v_i]); - - /* "talib/func.pyx":11027 - * for i from 0 <= i < length: - * val = real_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":11028 - * val = real_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L6_continue; - - /* "talib/func.pyx":11027 - * for i from 0 <= i < length: - * val = real_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":11029 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":11030 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L7_break; - __pyx_L6_continue:; - } - /*else*/ { - - /* "talib/func.pyx":11032 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_VAR_Lookback( timeperiod , nbdev ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1185, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11032, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 11032, __pyx_L1_error) - } - __pyx_L7_break:; - - /* "talib/func.pyx":11033 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_VAR_Lookback( timeperiod , nbdev ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":11034 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_VAR_Lookback( timeperiod , nbdev ) # <<<<<<<<<<<<<< - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_VAR_Lookback(__pyx_v_timeperiod, __pyx_v_nbdev)); - - /* "talib/func.pyx":11035 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_VAR_Lookback( timeperiod , nbdev ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11035, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 11035, __pyx_L1_error) - __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":11036 - * lookback = begidx + lib.TA_VAR_Lookback( timeperiod , nbdev ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - */ - __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); - - /* "talib/func.pyx":11037 - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outreal_data[i] = NaN - * retCode = lib.TA_VAR( 0 , endidx , (real_data+begidx) , timeperiod , nbdev , &outbegidx , &outnbelement , (outreal_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":11038 - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN # <<<<<<<<<<<<<< - * retCode = lib.TA_VAR( 0 , endidx , (real_data+begidx) , timeperiod , nbdev , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_VAR", retCode) - */ - (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_4func_NaN; - } - - /* "talib/func.pyx":11039 - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - * retCode = lib.TA_VAR( 0 , endidx , (real_data+begidx) , timeperiod , nbdev , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_VAR", retCode) - * return outreal - */ - __pyx_v_retCode = TA_VAR(0, __pyx_v_endidx, ((double *)(__pyx_v_real_data + __pyx_v_begidx)), __pyx_v_timeperiod, __pyx_v_nbdev, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); - - /* "talib/func.pyx":11040 - * outreal_data[i] = NaN - * retCode = lib.TA_VAR( 0 , endidx , (real_data+begidx) , timeperiod , nbdev , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _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, 11040, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":11041 - * retCode = lib.TA_VAR( 0 , endidx , (real_data+begidx) , timeperiod , nbdev , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_VAR", retCode) - * return outreal # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); - __pyx_r = ((PyObject *)__pyx_v_outreal); - goto __pyx_L0; - - /* "talib/func.pyx":10993 - * @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.func.VAR", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outreal); - __Pyx_XDECREF((PyObject *)__pyx_v_real); - __Pyx_XGIVEREF(__pyx_r); - __Pyx_RefNannyFinishContext(); - return __pyx_r; -} - -/* "talib/func.pyx":11045 - * @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_4func_311WCLPRICE(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_311WCLPRICE = {"WCLPRICE", (PyCFunction)__pyx_pw_5talib_4func_311WCLPRICE, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_310WCLPRICE}; -static PyObject *__pyx_pw_5talib_4func_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, 11045, __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, 11045, __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, 11045, __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, 11045, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 11045, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 11045, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 11045, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_310WCLPRICE(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close) { - npy_intp __pyx_v_length; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - 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; - PyArrayObject *__pyx_v_outreal = 0; - double *__pyx_v_outreal_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __Pyx_RefNannySetupContext("WCLPRICE", 0); - __Pyx_INCREF((PyObject *)__pyx_v_high); - __Pyx_INCREF((PyObject *)__pyx_v_low); - __Pyx_INCREF((PyObject *)__pyx_v_close); - - /* "talib/func.pyx":11067 - * np.ndarray outreal - * double* outreal_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/func.pyx":11068 - * double* outreal_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__1186, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11068, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 11068, __pyx_L1_error) - - /* "talib/func.pyx":11067 - * np.ndarray outreal - * double* outreal_data - * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("high is not double") - * if high.ndim != 1: - */ - } - - /* "talib/func.pyx":11069 - * 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/func.pyx":11070 - * raise 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__1187, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11070, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 11070, __pyx_L1_error) - - /* "talib/func.pyx":11069 - * 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/func.pyx":11071 - * 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 = high.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":11072 - * raise Exception("high has wrong dimensions") - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< - * high_data = 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, 11072, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 11072, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":11071 - * 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 = high.data - */ - } - - /* "talib/func.pyx":11073 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":11074 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":11075 - * high_data = 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__1188, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11075, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 11075, __pyx_L1_error) - - /* "talib/func.pyx":11074 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = high.data - * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("low is not double") - * if low.ndim != 1: - */ - } - - /* "talib/func.pyx":11076 - * 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/func.pyx":11077 - * raise 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__1189, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11077, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 11077, __pyx_L1_error) - - /* "talib/func.pyx":11076 - * 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/func.pyx":11078 - * 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 = low.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":11079 - * raise Exception("low has wrong dimensions") - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< - * low_data = 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, 11079, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 11079, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":11078 - * 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 = low.data - */ - } - - /* "talib/func.pyx":11080 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":11081 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":11082 - * low_data = 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__1190, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11082, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 11082, __pyx_L1_error) - - /* "talib/func.pyx":11081 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = low.data - * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("close is not double") - * if close.ndim != 1: - */ - } - - /* "talib/func.pyx":11083 - * 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/func.pyx":11084 - * raise 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__1191, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11084, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 11084, __pyx_L1_error) - - /* "talib/func.pyx":11083 - * 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/func.pyx":11085 - * 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 = close.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":11086 - * raise Exception("close has wrong dimensions") - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< - * close_data = close.data - * length = high.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11086, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 11086, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":11085 - * 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 = close.data - */ - } - - /* "talib/func.pyx":11087 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = close.data # <<<<<<<<<<<<<< - * length = high.shape[0] - * if length != low.shape[0]: - */ - __pyx_v_close_data = ((double *)__pyx_v_close->data); - - /* "talib/func.pyx":11088 - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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/func.pyx":11089 - * close_data = 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/func.pyx":11090 - * 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__1192, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11090, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 11090, __pyx_L1_error) - - /* "talib/func.pyx":11089 - * close_data = close.data - * length = high.shape[0] - * if length != low.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * if length != close.shape[0]: - */ - } - - /* "talib/func.pyx":11091 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":11092 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1193, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11092, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 11092, __pyx_L1_error) - - /* "talib/func.pyx":11091 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - } - - /* "talib/func.pyx":11093 - * if length != close.shape[0]: - * raise Exception("input lengths are different") - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = high_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":11094 - * raise Exception("input lengths are different") - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = high_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":11095 - * begidx = 0 - * for i from 0 <= i < length: - * val = high_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); - - /* "talib/func.pyx":11096 - * for i from 0 <= i < length: - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":11097 - * val = high_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = low_data[i] - * if val != val: - */ - goto __pyx_L14_continue; - - /* "talib/func.pyx":11096 - * for i from 0 <= i < length: - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - } - - /* "talib/func.pyx":11098 - * if val != val: - * continue - * val = low_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); - - /* "talib/func.pyx":11099 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":11100 - * val = low_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = close_data[i] - * if val != val: - */ - goto __pyx_L14_continue; - - /* "talib/func.pyx":11099 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - } - - /* "talib/func.pyx":11101 - * if val != val: - * continue - * val = close_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); - - /* "talib/func.pyx":11102 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":11103 - * val = close_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L14_continue; - - /* "talib/func.pyx":11102 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":11104 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":11105 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L15_break; - __pyx_L14_continue:; - } - /*else*/ { - - /* "talib/func.pyx":11107 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_WCLPRICE_Lookback( ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1194, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11107, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 11107, __pyx_L1_error) - } - __pyx_L15_break:; - - /* "talib/func.pyx":11108 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_WCLPRICE_Lookback( ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":11109 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_WCLPRICE_Lookback( ) # <<<<<<<<<<<<<< - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_WCLPRICE_Lookback()); - - /* "talib/func.pyx":11110 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_WCLPRICE_Lookback( ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11110, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 11110, __pyx_L1_error) - __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":11111 - * lookback = begidx + lib.TA_WCLPRICE_Lookback( ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - */ - __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); - - /* "talib/func.pyx":11112 - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outreal_data[i] = NaN - * retCode = lib.TA_WCLPRICE( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":11113 - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN # <<<<<<<<<<<<<< - * retCode = lib.TA_WCLPRICE( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_WCLPRICE", retCode) - */ - (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_4func_NaN; - } - - /* "talib/func.pyx":11114 - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - * retCode = lib.TA_WCLPRICE( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_WCLPRICE", retCode) - * return outreal - */ - __pyx_v_retCode = TA_WCLPRICE(0, __pyx_v_endidx, ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); - - /* "talib/func.pyx":11115 - * outreal_data[i] = NaN - * retCode = lib.TA_WCLPRICE( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _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, 11115, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":11116 - * retCode = lib.TA_WCLPRICE( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_WCLPRICE", retCode) - * return outreal # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); - __pyx_r = ((PyObject *)__pyx_v_outreal); - goto __pyx_L0; - - /* "talib/func.pyx":11045 - * @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.func.WCLPRICE", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outreal); - __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/func.pyx":11120 - * @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_4func_313WILLR(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_313WILLR = {"WILLR", (PyCFunction)__pyx_pw_5talib_4func_313WILLR, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_312WILLR}; -static PyObject *__pyx_pw_5talib_4func_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, 11120, __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, 11120, __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, 11120, __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, 11120, __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, 11120, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 11120, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(0, 11120, __pyx_L1_error) - if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(0, 11120, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_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; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - 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; - PyArrayObject *__pyx_v_outreal = 0; - double *__pyx_v_outreal_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __Pyx_RefNannySetupContext("WILLR", 0); - __Pyx_INCREF((PyObject *)__pyx_v_high); - __Pyx_INCREF((PyObject *)__pyx_v_low); - __Pyx_INCREF((PyObject *)__pyx_v_close); - - /* "talib/func.pyx":11144 - * np.ndarray outreal - * double* outreal_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/func.pyx":11145 - * double* outreal_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__1195, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11145, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 11145, __pyx_L1_error) - - /* "talib/func.pyx":11144 - * np.ndarray outreal - * double* outreal_data - * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("high is not double") - * if high.ndim != 1: - */ - } - - /* "talib/func.pyx":11146 - * 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/func.pyx":11147 - * raise 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__1196, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11147, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 11147, __pyx_L1_error) - - /* "talib/func.pyx":11146 - * 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/func.pyx":11148 - * 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 = high.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":11149 - * raise Exception("high has wrong dimensions") - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< - * high_data = 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, 11149, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 11149, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":11148 - * 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 = high.data - */ - } - - /* "talib/func.pyx":11150 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":11151 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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/func.pyx":11152 - * high_data = 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__1197, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11152, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 11152, __pyx_L1_error) - - /* "talib/func.pyx":11151 - * high = PyArray_GETCONTIGUOUS(high) - * high_data = high.data - * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("low is not double") - * if low.ndim != 1: - */ - } - - /* "talib/func.pyx":11153 - * 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/func.pyx":11154 - * raise 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__1198, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11154, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 11154, __pyx_L1_error) - - /* "talib/func.pyx":11153 - * 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/func.pyx":11155 - * 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 = low.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":11156 - * raise Exception("low has wrong dimensions") - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< - * low_data = 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, 11156, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 11156, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":11155 - * 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 = low.data - */ - } - - /* "talib/func.pyx":11157 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":11158 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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/func.pyx":11159 - * low_data = 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__1199, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11159, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 11159, __pyx_L1_error) - - /* "talib/func.pyx":11158 - * low = PyArray_GETCONTIGUOUS(low) - * low_data = low.data - * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("close is not double") - * if close.ndim != 1: - */ - } - - /* "talib/func.pyx":11160 - * 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/func.pyx":11161 - * raise 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__1200, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11161, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 11161, __pyx_L1_error) - - /* "talib/func.pyx":11160 - * 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/func.pyx":11162 - * 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 = close.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":11163 - * raise Exception("close has wrong dimensions") - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< - * close_data = close.data - * length = high.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11163, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 11163, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":11162 - * 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 = close.data - */ - } - - /* "talib/func.pyx":11164 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = close.data # <<<<<<<<<<<<<< - * length = high.shape[0] - * if length != low.shape[0]: - */ - __pyx_v_close_data = ((double *)__pyx_v_close->data); - - /* "talib/func.pyx":11165 - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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/func.pyx":11166 - * close_data = 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/func.pyx":11167 - * 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__1201, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11167, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 11167, __pyx_L1_error) - - /* "talib/func.pyx":11166 - * close_data = close.data - * length = high.shape[0] - * if length != low.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * if length != close.shape[0]: - */ - } - - /* "talib/func.pyx":11168 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":11169 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1202, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11169, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 11169, __pyx_L1_error) - - /* "talib/func.pyx":11168 - * if length != low.shape[0]: - * raise Exception("input lengths are different") - * if length != close.shape[0]: # <<<<<<<<<<<<<< - * raise Exception("input lengths are different") - * begidx = 0 - */ - } - - /* "talib/func.pyx":11170 - * if length != close.shape[0]: - * raise Exception("input lengths are different") - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = high_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":11171 - * raise Exception("input lengths are different") - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = high_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":11172 - * begidx = 0 - * for i from 0 <= i < length: - * val = high_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); - - /* "talib/func.pyx":11173 - * for i from 0 <= i < length: - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":11174 - * val = high_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = low_data[i] - * if val != val: - */ - goto __pyx_L14_continue; - - /* "talib/func.pyx":11173 - * for i from 0 <= i < length: - * val = high_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = low_data[i] - */ - } - - /* "talib/func.pyx":11175 - * if val != val: - * continue - * val = low_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); - - /* "talib/func.pyx":11176 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":11177 - * val = low_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * val = close_data[i] - * if val != val: - */ - goto __pyx_L14_continue; - - /* "talib/func.pyx":11176 - * continue - * val = low_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * val = close_data[i] - */ - } - - /* "talib/func.pyx":11178 - * if val != val: - * continue - * val = close_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); - - /* "talib/func.pyx":11179 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":11180 - * val = close_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L14_continue; - - /* "talib/func.pyx":11179 - * continue - * val = close_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":11181 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":11182 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L15_break; - __pyx_L14_continue:; - } - /*else*/ { - - /* "talib/func.pyx":11184 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_WILLR_Lookback( timeperiod ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1203, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11184, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 11184, __pyx_L1_error) - } - __pyx_L15_break:; - - /* "talib/func.pyx":11185 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_WILLR_Lookback( timeperiod ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":11186 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_WILLR_Lookback( timeperiod ) # <<<<<<<<<<<<<< - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_WILLR_Lookback(__pyx_v_timeperiod)); - - /* "talib/func.pyx":11187 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_WILLR_Lookback( timeperiod ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11187, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 11187, __pyx_L1_error) - __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":11188 - * lookback = begidx + lib.TA_WILLR_Lookback( timeperiod ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - */ - __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); - - /* "talib/func.pyx":11189 - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outreal_data[i] = NaN - * retCode = lib.TA_WILLR( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":11190 - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN # <<<<<<<<<<<<<< - * retCode = lib.TA_WILLR( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_WILLR", retCode) - */ - (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_4func_NaN; - } - - /* "talib/func.pyx":11191 - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - * retCode = lib.TA_WILLR( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_WILLR", retCode) - * return outreal - */ - __pyx_v_retCode = TA_WILLR(0, __pyx_v_endidx, ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); - - /* "talib/func.pyx":11192 - * outreal_data[i] = NaN - * retCode = lib.TA_WILLR( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _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, 11192, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":11193 - * retCode = lib.TA_WILLR( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_WILLR", retCode) - * return outreal # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - __Pyx_XDECREF(__pyx_r); - __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); - __pyx_r = ((PyObject *)__pyx_v_outreal); - goto __pyx_L0; - - /* "talib/func.pyx":11120 - * @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.func.WILLR", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outreal); - __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/func.pyx":11197 - * @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_4func_315WMA(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ -static char __pyx_doc_5talib_4func_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_4func_315WMA = {"WMA", (PyCFunction)__pyx_pw_5talib_4func_315WMA, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_4func_314WMA}; -static PyObject *__pyx_pw_5talib_4func_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, 11197, __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, 11197, __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, 11197, __pyx_L3_error) - __pyx_L3_error:; - __Pyx_AddTraceback("talib.func.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, 11197, __pyx_L1_error) - __pyx_r = __pyx_pf_5talib_4func_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_4func_314WMA(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod) { - npy_intp __pyx_v_length; - double __pyx_v_val; - int __pyx_v_begidx; - int __pyx_v_endidx; - int __pyx_v_lookback; - TA_RetCode __pyx_v_retCode; - double *__pyx_v_real_data; - int __pyx_v_outbegidx; - int __pyx_v_outnbelement; - PyArrayObject *__pyx_v_outreal = 0; - double *__pyx_v_outreal_data; - long __pyx_v_i; - PyObject *__pyx_r = NULL; - __Pyx_RefNannyDeclarations - int __pyx_t_1; - PyObject *__pyx_t_2 = NULL; - npy_intp __pyx_t_3; - int __pyx_t_4; - npy_intp __pyx_t_5; - __Pyx_RefNannySetupContext("WMA", 0); - __Pyx_INCREF((PyObject *)__pyx_v_real); - - /* "talib/func.pyx":11219 - * np.ndarray outreal - * double* outreal_data - * 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/func.pyx":11220 - * double* outreal_data - * 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__1204, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11220, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 11220, __pyx_L1_error) - - /* "talib/func.pyx":11219 - * np.ndarray outreal - * double* outreal_data - * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< - * raise Exception("real is not double") - * if real.ndim != 1: - */ - } - - /* "talib/func.pyx":11221 - * 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/func.pyx":11222 - * 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__1205, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11222, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 11222, __pyx_L1_error) - - /* "talib/func.pyx":11221 - * 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/func.pyx":11223 - * 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 = real.data - */ - __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":11224 - * raise Exception("real has wrong dimensions") - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< - * real_data = real.data - * length = real.shape[0] - */ - __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11224, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 11224, __pyx_L1_error) - __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); - __pyx_t_2 = 0; - - /* "talib/func.pyx":11223 - * 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 = real.data - */ - } - - /* "talib/func.pyx":11225 - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) - * real_data = real.data # <<<<<<<<<<<<<< - * length = real.shape[0] - * begidx = 0 - */ - __pyx_v_real_data = ((double *)__pyx_v_real->data); - - /* "talib/func.pyx":11226 - * real = PyArray_GETCONTIGUOUS(real) - * real_data = real.data - * length = real.shape[0] # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_v_length = (__pyx_v_real->dimensions[0]); - - /* "talib/func.pyx":11227 - * real_data = real.data - * length = real.shape[0] - * begidx = 0 # <<<<<<<<<<<<<< - * for i from 0 <= i < length: - * val = real_data[i] - */ - __pyx_v_begidx = 0; - - /* "talib/func.pyx":11228 - * length = real.shape[0] - * begidx = 0 - * for i from 0 <= i < length: # <<<<<<<<<<<<<< - * val = real_data[i] - * if val != val: - */ - __pyx_t_3 = __pyx_v_length; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":11229 - * begidx = 0 - * for i from 0 <= i < length: - * val = real_data[i] # <<<<<<<<<<<<<< - * if val != val: - * continue - */ - __pyx_v_val = (__pyx_v_real_data[__pyx_v_i]); - - /* "talib/func.pyx":11230 - * for i from 0 <= i < length: - * val = real_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); - if (__pyx_t_1) { - - /* "talib/func.pyx":11231 - * val = real_data[i] - * if val != val: - * continue # <<<<<<<<<<<<<< - * begidx = i - * break - */ - goto __pyx_L6_continue; - - /* "talib/func.pyx":11230 - * for i from 0 <= i < length: - * val = real_data[i] - * if val != val: # <<<<<<<<<<<<<< - * continue - * begidx = i - */ - } - - /* "talib/func.pyx":11232 - * if val != val: - * continue - * begidx = i # <<<<<<<<<<<<<< - * break - * else: - */ - __pyx_v_begidx = __pyx_v_i; - - /* "talib/func.pyx":11233 - * continue - * begidx = i - * break # <<<<<<<<<<<<<< - * else: - * raise Exception("inputs are all NaN") - */ - goto __pyx_L7_break; - __pyx_L6_continue:; - } - /*else*/ { - - /* "talib/func.pyx":11235 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_WMA_Lookback( timeperiod ) - */ - __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1206, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11235, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_Raise(__pyx_t_2, 0, 0, 0); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - __PYX_ERR(0, 11235, __pyx_L1_error) - } - __pyx_L7_break:; - - /* "talib/func.pyx":11236 - * else: - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 # <<<<<<<<<<<<<< - * lookback = begidx + lib.TA_WMA_Lookback( timeperiod ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - */ - __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); - - /* "talib/func.pyx":11237 - * raise Exception("inputs are all NaN") - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_WMA_Lookback( timeperiod ) # <<<<<<<<<<<<<< - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - */ - __pyx_v_lookback = (__pyx_v_begidx + TA_WMA_Lookback(__pyx_v_timeperiod)); - - /* "talib/func.pyx":11238 - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_WMA_Lookback( timeperiod ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - */ - __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 11238, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(0, 11238, __pyx_L1_error) - __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); - __pyx_t_2 = 0; - - /* "talib/func.pyx":11239 - * lookback = begidx + lib.TA_WMA_Lookback( timeperiod ) - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data # <<<<<<<<<<<<<< - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - */ - __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); - - /* "talib/func.pyx":11240 - * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< - * outreal_data[i] = NaN - * retCode = lib.TA_WMA( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - */ - __pyx_t_3 = __pyx_v_length; - __pyx_t_4 = __pyx_v_lookback; - if (((__pyx_t_3 < __pyx_t_4) != 0)) { - __pyx_t_5 = __pyx_t_3; - } else { - __pyx_t_5 = __pyx_t_4; - } - __pyx_t_3 = __pyx_t_5; - for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { - - /* "talib/func.pyx":11241 - * outreal_data = outreal.data - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN # <<<<<<<<<<<<<< - * retCode = lib.TA_WMA( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _ta_check_success("TA_WMA", retCode) - */ - (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_4func_NaN; - } - - /* "talib/func.pyx":11242 - * for i from 0 <= i < min(lookback, length): - * outreal_data[i] = NaN - * retCode = lib.TA_WMA( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< - * _ta_check_success("TA_WMA", retCode) - * return outreal - */ - __pyx_v_retCode = TA_WMA(0, __pyx_v_endidx, ((double *)(__pyx_v_real_data + __pyx_v_begidx)), __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); - - /* "talib/func.pyx":11243 - * outreal_data[i] = NaN - * retCode = lib.TA_WMA( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _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, 11243, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_2); - __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; - - /* "talib/func.pyx":11244 - * retCode = lib.TA_WMA( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) - * _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_INCREF(((PyObject *)__pyx_v_outreal)); - __pyx_r = ((PyObject *)__pyx_v_outreal); - goto __pyx_L0; - - /* "talib/func.pyx":11197 - * @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.func.WMA", __pyx_clineno, __pyx_lineno, __pyx_filename); - __pyx_r = NULL; - __pyx_L0:; - __Pyx_XDECREF((PyObject *)__pyx_v_outreal); - __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 = ((&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 = ((&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 = ((&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__1207, 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__1208, 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 = stdlib.malloc(sizeof(Py_ssize_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 = stdlib.malloc(sizeof(Py_ssize_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 = stdlib.malloc(sizeof(Py_ssize_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 = 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 = PyArray_STRIDES(self) # <<<<<<<<<<<<<< - * info.shape = 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 = PyArray_STRIDES(self) - * info.shape = 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 = PyArray_STRIDES(self) - * info.shape = 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 = 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__1209, 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 = 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 = 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 = 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 = 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, 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, 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, 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, a) - * - * cdef inline object PyArray_MultiIterNew2(a, b): # <<<<<<<<<<<<<< - * return PyArray_MultiIterNew(2, a, 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, a, 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, a) - * - * cdef inline object PyArray_MultiIterNew2(a, b): # <<<<<<<<<<<<<< - * return PyArray_MultiIterNew(2, a, 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, a, b) - * - * cdef inline object PyArray_MultiIterNew3(a, b, c): # <<<<<<<<<<<<<< - * return PyArray_MultiIterNew(3, a, b, 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, a, b, 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, a, b) - * - * cdef inline object PyArray_MultiIterNew3(a, b, c): # <<<<<<<<<<<<<< - * return PyArray_MultiIterNew(3, a, b, 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, a, b, c) - * - * cdef inline object PyArray_MultiIterNew4(a, b, c, d): # <<<<<<<<<<<<<< - * return PyArray_MultiIterNew(4, a, b, c, 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, a, b, c, 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, a, b, c) - * - * cdef inline object PyArray_MultiIterNew4(a, b, c, d): # <<<<<<<<<<<<<< - * return PyArray_MultiIterNew(4, a, b, c, 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, a, b, c, d) - * - * cdef inline object PyArray_MultiIterNew5(a, b, c, d, e): # <<<<<<<<<<<<<< - * return PyArray_MultiIterNew(5, a, b, c, d, 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, a, b, c, d, 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, a, b, c, d) - * - * cdef inline object PyArray_MultiIterNew5(a, b, c, d, e): # <<<<<<<<<<<<<< - * return PyArray_MultiIterNew(5, a, b, c, d, 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, a, b, c, d, 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 = ((&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 = ((&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) - (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) - (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) - (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__1210, 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) - (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__1211, 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__1212, 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, a, b, c, d, 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 = 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 = 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 = 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 = 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 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 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 - "func", - 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_i, __pyx_k_i, sizeof(__pyx_k_i), 0, 0, 1, 1}, - {&__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_kp_s_inputs_are_all_NaN, __pyx_k_inputs_are_all_NaN, sizeof(__pyx_k_inputs_are_all_NaN), 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_outaroondown_data, __pyx_k_outaroondown_data, sizeof(__pyx_k_outaroondown_data), 0, 0, 1, 1}, - {&__pyx_n_s_outaroonup, __pyx_k_outaroonup, sizeof(__pyx_k_outaroonup), 0, 0, 1, 1}, - {&__pyx_n_s_outaroonup_data, __pyx_k_outaroonup_data, sizeof(__pyx_k_outaroonup_data), 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_outfama_data, __pyx_k_outfama_data, sizeof(__pyx_k_outfama_data), 0, 0, 1, 1}, - {&__pyx_n_s_outfastd, __pyx_k_outfastd, sizeof(__pyx_k_outfastd), 0, 0, 1, 1}, - {&__pyx_n_s_outfastd_data, __pyx_k_outfastd_data, sizeof(__pyx_k_outfastd_data), 0, 0, 1, 1}, - {&__pyx_n_s_outfastk, __pyx_k_outfastk, sizeof(__pyx_k_outfastk), 0, 0, 1, 1}, - {&__pyx_n_s_outfastk_data, __pyx_k_outfastk_data, sizeof(__pyx_k_outfastk_data), 0, 0, 1, 1}, - {&__pyx_n_s_outinphase, __pyx_k_outinphase, sizeof(__pyx_k_outinphase), 0, 0, 1, 1}, - {&__pyx_n_s_outinphase_data, __pyx_k_outinphase_data, sizeof(__pyx_k_outinphase_data), 0, 0, 1, 1}, - {&__pyx_n_s_outinteger, __pyx_k_outinteger, sizeof(__pyx_k_outinteger), 0, 0, 1, 1}, - {&__pyx_n_s_outinteger_data, __pyx_k_outinteger_data, sizeof(__pyx_k_outinteger_data), 0, 0, 1, 1}, - {&__pyx_n_s_outleadsine, __pyx_k_outleadsine, sizeof(__pyx_k_outleadsine), 0, 0, 1, 1}, - {&__pyx_n_s_outleadsine_data, __pyx_k_outleadsine_data, sizeof(__pyx_k_outleadsine_data), 0, 0, 1, 1}, - {&__pyx_n_s_outmacd, __pyx_k_outmacd, sizeof(__pyx_k_outmacd), 0, 0, 1, 1}, - {&__pyx_n_s_outmacd_data, __pyx_k_outmacd_data, sizeof(__pyx_k_outmacd_data), 0, 0, 1, 1}, - {&__pyx_n_s_outmacdhist, __pyx_k_outmacdhist, sizeof(__pyx_k_outmacdhist), 0, 0, 1, 1}, - {&__pyx_n_s_outmacdhist_data, __pyx_k_outmacdhist_data, sizeof(__pyx_k_outmacdhist_data), 0, 0, 1, 1}, - {&__pyx_n_s_outmacdsignal, __pyx_k_outmacdsignal, sizeof(__pyx_k_outmacdsignal), 0, 0, 1, 1}, - {&__pyx_n_s_outmacdsignal_data, __pyx_k_outmacdsignal_data, sizeof(__pyx_k_outmacdsignal_data), 0, 0, 1, 1}, - {&__pyx_n_s_outmama, __pyx_k_outmama, sizeof(__pyx_k_outmama), 0, 0, 1, 1}, - {&__pyx_n_s_outmama_data, __pyx_k_outmama_data, sizeof(__pyx_k_outmama_data), 0, 0, 1, 1}, - {&__pyx_n_s_outmax, __pyx_k_outmax, sizeof(__pyx_k_outmax), 0, 0, 1, 1}, - {&__pyx_n_s_outmax_data, __pyx_k_outmax_data, sizeof(__pyx_k_outmax_data), 0, 0, 1, 1}, - {&__pyx_n_s_outmaxidx, __pyx_k_outmaxidx, sizeof(__pyx_k_outmaxidx), 0, 0, 1, 1}, - {&__pyx_n_s_outmaxidx_data, __pyx_k_outmaxidx_data, sizeof(__pyx_k_outmaxidx_data), 0, 0, 1, 1}, - {&__pyx_n_s_outmin, __pyx_k_outmin, sizeof(__pyx_k_outmin), 0, 0, 1, 1}, - {&__pyx_n_s_outmin_data, __pyx_k_outmin_data, sizeof(__pyx_k_outmin_data), 0, 0, 1, 1}, - {&__pyx_n_s_outminidx, __pyx_k_outminidx, sizeof(__pyx_k_outminidx), 0, 0, 1, 1}, - {&__pyx_n_s_outminidx_data, __pyx_k_outminidx_data, sizeof(__pyx_k_outminidx_data), 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_outquadrature_data, __pyx_k_outquadrature_data, sizeof(__pyx_k_outquadrature_data), 0, 0, 1, 1}, - {&__pyx_n_s_outreal, __pyx_k_outreal, sizeof(__pyx_k_outreal), 0, 0, 1, 1}, - {&__pyx_n_s_outreal_data, __pyx_k_outreal_data, sizeof(__pyx_k_outreal_data), 0, 0, 1, 1}, - {&__pyx_n_s_outreallowerband, __pyx_k_outreallowerband, sizeof(__pyx_k_outreallowerband), 0, 0, 1, 1}, - {&__pyx_n_s_outreallowerband_data, __pyx_k_outreallowerband_data, sizeof(__pyx_k_outreallowerband_data), 0, 0, 1, 1}, - {&__pyx_n_s_outrealmiddleband, __pyx_k_outrealmiddleband, sizeof(__pyx_k_outrealmiddleband), 0, 0, 1, 1}, - {&__pyx_n_s_outrealmiddleband_data, __pyx_k_outrealmiddleband_data, sizeof(__pyx_k_outrealmiddleband_data), 0, 0, 1, 1}, - {&__pyx_n_s_outrealupperband, __pyx_k_outrealupperband, sizeof(__pyx_k_outrealupperband), 0, 0, 1, 1}, - {&__pyx_n_s_outrealupperband_data, __pyx_k_outrealupperband_data, sizeof(__pyx_k_outrealupperband_data), 0, 0, 1, 1}, - {&__pyx_n_s_outsine, __pyx_k_outsine, sizeof(__pyx_k_outsine), 0, 0, 1, 1}, - {&__pyx_n_s_outsine_data, __pyx_k_outsine_data, sizeof(__pyx_k_outsine_data), 0, 0, 1, 1}, - {&__pyx_n_s_outslowd, __pyx_k_outslowd, sizeof(__pyx_k_outslowd), 0, 0, 1, 1}, - {&__pyx_n_s_outslowd_data, __pyx_k_outslowd_data, sizeof(__pyx_k_outslowd_data), 0, 0, 1, 1}, - {&__pyx_n_s_outslowk, __pyx_k_outslowk, sizeof(__pyx_k_outslowk), 0, 0, 1, 1}, - {&__pyx_n_s_outslowk_data, __pyx_k_outslowk_data, sizeof(__pyx_k_outslowk_data), 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_func, __pyx_k_talib_func, sizeof(__pyx_k_talib_func), 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, 45, __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/func.pyx":45 - * double* outreal_data - * 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, 45, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple_); - __Pyx_GIVEREF(__pyx_tuple_); - - /* "talib/func.pyx":47 - * 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, 47, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__2); - __Pyx_GIVEREF(__pyx_tuple__2); - - /* "talib/func.pyx":60 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_ACOS_Lookback( ) - */ - __pyx_tuple__3 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__3)) __PYX_ERR(0, 60, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__3); - __Pyx_GIVEREF(__pyx_tuple__3); - - /* "talib/func.pyx":97 - * double* outreal_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__4 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__4)) __PYX_ERR(0, 97, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__4); - __Pyx_GIVEREF(__pyx_tuple__4); - - /* "talib/func.pyx":99 - * raise 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__5 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__5)) __PYX_ERR(0, 99, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__5); - __Pyx_GIVEREF(__pyx_tuple__5); - - /* "talib/func.pyx":104 - * high_data = 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__6 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__6)) __PYX_ERR(0, 104, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__6); - __Pyx_GIVEREF(__pyx_tuple__6); - - /* "talib/func.pyx":106 - * raise 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__7 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__7)) __PYX_ERR(0, 106, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__7); - __Pyx_GIVEREF(__pyx_tuple__7); - - /* "talib/func.pyx":111 - * low_data = 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__8 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__8)) __PYX_ERR(0, 111, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__8); - __Pyx_GIVEREF(__pyx_tuple__8); - - /* "talib/func.pyx":113 - * raise 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__9 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__9)) __PYX_ERR(0, 113, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__9); - __Pyx_GIVEREF(__pyx_tuple__9); - - /* "talib/func.pyx":118 - * close_data = 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__10 = PyTuple_Pack(1, __pyx_kp_s_volume_is_not_double); if (unlikely(!__pyx_tuple__10)) __PYX_ERR(0, 118, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__10); - __Pyx_GIVEREF(__pyx_tuple__10); - - /* "talib/func.pyx":120 - * 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__11 = PyTuple_Pack(1, __pyx_kp_s_volume_has_wrong_dimensions); if (unlikely(!__pyx_tuple__11)) __PYX_ERR(0, 120, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__11); - __Pyx_GIVEREF(__pyx_tuple__11); - - /* "talib/func.pyx":126 - * 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__12 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__12)) __PYX_ERR(0, 126, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__12); - __Pyx_GIVEREF(__pyx_tuple__12); - - /* "talib/func.pyx":128 - * 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__13 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__13)) __PYX_ERR(0, 128, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__13); - __Pyx_GIVEREF(__pyx_tuple__13); - - /* "talib/func.pyx":130 - * raise Exception("input lengths are different") - * if length != volume.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_tuple__14 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__14)) __PYX_ERR(0, 130, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__14); - __Pyx_GIVEREF(__pyx_tuple__14); - - /* "talib/func.pyx":148 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_AD_Lookback( ) - */ - __pyx_tuple__15 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__15)) __PYX_ERR(0, 148, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__15); - __Pyx_GIVEREF(__pyx_tuple__15); - - /* "talib/func.pyx":184 - * double* outreal_data - * 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__16 = PyTuple_Pack(1, __pyx_kp_s_real0_is_not_double); if (unlikely(!__pyx_tuple__16)) __PYX_ERR(0, 184, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__16); - __Pyx_GIVEREF(__pyx_tuple__16); - - /* "talib/func.pyx":186 - * 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__17 = PyTuple_Pack(1, __pyx_kp_s_real0_has_wrong_dimensions); if (unlikely(!__pyx_tuple__17)) __PYX_ERR(0, 186, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__17); - __Pyx_GIVEREF(__pyx_tuple__17); - - /* "talib/func.pyx":191 - * real0_data = 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__18 = PyTuple_Pack(1, __pyx_kp_s_real1_is_not_double); if (unlikely(!__pyx_tuple__18)) __PYX_ERR(0, 191, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__18); - __Pyx_GIVEREF(__pyx_tuple__18); - - /* "talib/func.pyx":193 - * 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__19 = PyTuple_Pack(1, __pyx_kp_s_real1_has_wrong_dimensions); if (unlikely(!__pyx_tuple__19)) __PYX_ERR(0, 193, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__19); - __Pyx_GIVEREF(__pyx_tuple__19); - - /* "talib/func.pyx":199 - * length = real0.shape[0] - * if length != real1.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_tuple__20 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__20)) __PYX_ERR(0, 199, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__20); - __Pyx_GIVEREF(__pyx_tuple__20); - - /* "talib/func.pyx":211 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_ADD_Lookback( ) - */ - __pyx_tuple__21 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__21)) __PYX_ERR(0, 211, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__21); - __Pyx_GIVEREF(__pyx_tuple__21); - - /* "talib/func.pyx":251 - * double* outreal_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__22 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__22)) __PYX_ERR(0, 251, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__22); - __Pyx_GIVEREF(__pyx_tuple__22); - - /* "talib/func.pyx":253 - * raise 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__23 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__23)) __PYX_ERR(0, 253, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__23); - __Pyx_GIVEREF(__pyx_tuple__23); - - /* "talib/func.pyx":258 - * high_data = 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__24 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__24)) __PYX_ERR(0, 258, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__24); - __Pyx_GIVEREF(__pyx_tuple__24); - - /* "talib/func.pyx":260 - * raise 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__25 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__25)) __PYX_ERR(0, 260, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__25); - __Pyx_GIVEREF(__pyx_tuple__25); - - /* "talib/func.pyx":265 - * low_data = 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__26 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__26)) __PYX_ERR(0, 265, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__26); - __Pyx_GIVEREF(__pyx_tuple__26); - - /* "talib/func.pyx":267 - * raise 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__27 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__27)) __PYX_ERR(0, 267, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__27); - __Pyx_GIVEREF(__pyx_tuple__27); - - /* "talib/func.pyx":272 - * close_data = 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__28 = PyTuple_Pack(1, __pyx_kp_s_volume_is_not_double); if (unlikely(!__pyx_tuple__28)) __PYX_ERR(0, 272, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__28); - __Pyx_GIVEREF(__pyx_tuple__28); - - /* "talib/func.pyx":274 - * 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__29 = PyTuple_Pack(1, __pyx_kp_s_volume_has_wrong_dimensions); if (unlikely(!__pyx_tuple__29)) __PYX_ERR(0, 274, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__29); - __Pyx_GIVEREF(__pyx_tuple__29); - - /* "talib/func.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__30 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__30)) __PYX_ERR(0, 280, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__30); - __Pyx_GIVEREF(__pyx_tuple__30); - - /* "talib/func.pyx":282 - * 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__31 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__31)) __PYX_ERR(0, 282, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__31); - __Pyx_GIVEREF(__pyx_tuple__31); - - /* "talib/func.pyx":284 - * raise Exception("input lengths are different") - * if length != volume.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_tuple__32 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__32)) __PYX_ERR(0, 284, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__32); - __Pyx_GIVEREF(__pyx_tuple__32); - - /* "talib/func.pyx":302 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_ADOSC_Lookback( fastperiod , slowperiod ) - */ - __pyx_tuple__33 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__33)) __PYX_ERR(0, 302, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__33); - __Pyx_GIVEREF(__pyx_tuple__33); - - /* "talib/func.pyx":340 - * double* outreal_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__34 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__34)) __PYX_ERR(0, 340, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__34); - __Pyx_GIVEREF(__pyx_tuple__34); - - /* "talib/func.pyx":342 - * raise 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__35 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__35)) __PYX_ERR(0, 342, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__35); - __Pyx_GIVEREF(__pyx_tuple__35); - - /* "talib/func.pyx":347 - * high_data = 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__36 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__36)) __PYX_ERR(0, 347, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__36); - __Pyx_GIVEREF(__pyx_tuple__36); - - /* "talib/func.pyx":349 - * raise 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__37 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__37)) __PYX_ERR(0, 349, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__37); - __Pyx_GIVEREF(__pyx_tuple__37); - - /* "talib/func.pyx":354 - * low_data = 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__38 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__38)) __PYX_ERR(0, 354, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__38); - __Pyx_GIVEREF(__pyx_tuple__38); - - /* "talib/func.pyx":356 - * raise 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__39 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__39)) __PYX_ERR(0, 356, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__39); - __Pyx_GIVEREF(__pyx_tuple__39); - - /* "talib/func.pyx":362 - * 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__40 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__40)) __PYX_ERR(0, 362, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__40); - __Pyx_GIVEREF(__pyx_tuple__40); - - /* "talib/func.pyx":364 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_tuple__41 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__41)) __PYX_ERR(0, 364, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__41); - __Pyx_GIVEREF(__pyx_tuple__41); - - /* "talib/func.pyx":379 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_ADX_Lookback( timeperiod ) - */ - __pyx_tuple__42 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__42)) __PYX_ERR(0, 379, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__42); - __Pyx_GIVEREF(__pyx_tuple__42); - - /* "talib/func.pyx":417 - * double* outreal_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__43 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__43)) __PYX_ERR(0, 417, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__43); - __Pyx_GIVEREF(__pyx_tuple__43); - - /* "talib/func.pyx":419 - * raise 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__44 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__44)) __PYX_ERR(0, 419, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__44); - __Pyx_GIVEREF(__pyx_tuple__44); - - /* "talib/func.pyx":424 - * high_data = 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__45 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__45)) __PYX_ERR(0, 424, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__45); - __Pyx_GIVEREF(__pyx_tuple__45); - - /* "talib/func.pyx":426 - * raise 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__46 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__46)) __PYX_ERR(0, 426, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__46); - __Pyx_GIVEREF(__pyx_tuple__46); - - /* "talib/func.pyx":431 - * low_data = 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__47 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__47)) __PYX_ERR(0, 431, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__47); - __Pyx_GIVEREF(__pyx_tuple__47); - - /* "talib/func.pyx":433 - * raise 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__48 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__48)) __PYX_ERR(0, 433, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__48); - __Pyx_GIVEREF(__pyx_tuple__48); - - /* "talib/func.pyx":439 - * 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__49 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__49)) __PYX_ERR(0, 439, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__49); - __Pyx_GIVEREF(__pyx_tuple__49); - - /* "talib/func.pyx":441 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_tuple__50 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__50)) __PYX_ERR(0, 441, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__50); - __Pyx_GIVEREF(__pyx_tuple__50); - - /* "talib/func.pyx":456 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_ADXR_Lookback( timeperiod ) - */ - __pyx_tuple__51 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__51)) __PYX_ERR(0, 456, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__51); - __Pyx_GIVEREF(__pyx_tuple__51); - - /* "talib/func.pyx":494 - * double* outreal_data - * 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__52 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__52)) __PYX_ERR(0, 494, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__52); - __Pyx_GIVEREF(__pyx_tuple__52); - - /* "talib/func.pyx":496 - * 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__53 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__53)) __PYX_ERR(0, 496, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__53); - __Pyx_GIVEREF(__pyx_tuple__53); - - /* "talib/func.pyx":509 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_APO_Lookback( fastperiod , slowperiod , matype ) - */ - __pyx_tuple__54 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__54)) __PYX_ERR(0, 509, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__54); - __Pyx_GIVEREF(__pyx_tuple__54); - - /* "talib/func.pyx":549 - * double* outaroonup_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__55 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__55)) __PYX_ERR(0, 549, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__55); - __Pyx_GIVEREF(__pyx_tuple__55); - - /* "talib/func.pyx":551 - * raise 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__56 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__56)) __PYX_ERR(0, 551, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__56); - __Pyx_GIVEREF(__pyx_tuple__56); - - /* "talib/func.pyx":556 - * high_data = 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__57 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__57)) __PYX_ERR(0, 556, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__57); - __Pyx_GIVEREF(__pyx_tuple__57); - - /* "talib/func.pyx":558 - * raise 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__58 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__58)) __PYX_ERR(0, 558, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__58); - __Pyx_GIVEREF(__pyx_tuple__58); - - /* "talib/func.pyx":564 - * length = high.shape[0] - * if length != low.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_tuple__59 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__59)) __PYX_ERR(0, 564, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__59); - __Pyx_GIVEREF(__pyx_tuple__59); - - /* "talib/func.pyx":576 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_AROON_Lookback( timeperiod ) - */ - __pyx_tuple__60 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__60)) __PYX_ERR(0, 576, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__60); - __Pyx_GIVEREF(__pyx_tuple__60); - - /* "talib/func.pyx":617 - * double* outreal_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__61 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__61)) __PYX_ERR(0, 617, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__61); - __Pyx_GIVEREF(__pyx_tuple__61); - - /* "talib/func.pyx":619 - * raise 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__62 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__62)) __PYX_ERR(0, 619, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__62); - __Pyx_GIVEREF(__pyx_tuple__62); - - /* "talib/func.pyx":624 - * high_data = 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__63 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__63)) __PYX_ERR(0, 624, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__63); - __Pyx_GIVEREF(__pyx_tuple__63); - - /* "talib/func.pyx":626 - * raise 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__64 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__64)) __PYX_ERR(0, 626, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__64); - __Pyx_GIVEREF(__pyx_tuple__64); - - /* "talib/func.pyx":632 - * length = high.shape[0] - * if length != low.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_tuple__65 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__65)) __PYX_ERR(0, 632, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__65); - __Pyx_GIVEREF(__pyx_tuple__65); - - /* "talib/func.pyx":644 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_AROONOSC_Lookback( timeperiod ) - */ - __pyx_tuple__66 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__66)) __PYX_ERR(0, 644, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__66); - __Pyx_GIVEREF(__pyx_tuple__66); - - /* "talib/func.pyx":678 - * double* outreal_data - * 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__67 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__67)) __PYX_ERR(0, 678, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__67); - __Pyx_GIVEREF(__pyx_tuple__67); - - /* "talib/func.pyx":680 - * 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__68 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__68)) __PYX_ERR(0, 680, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__68); - __Pyx_GIVEREF(__pyx_tuple__68); - - /* "talib/func.pyx":693 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_ASIN_Lookback( ) - */ - __pyx_tuple__69 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__69)) __PYX_ERR(0, 693, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__69); - __Pyx_GIVEREF(__pyx_tuple__69); - - /* "talib/func.pyx":727 - * double* outreal_data - * 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__70 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__70)) __PYX_ERR(0, 727, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__70); - __Pyx_GIVEREF(__pyx_tuple__70); - - /* "talib/func.pyx":729 - * 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__71 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__71)) __PYX_ERR(0, 729, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__71); - __Pyx_GIVEREF(__pyx_tuple__71); - - /* "talib/func.pyx":742 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_ATAN_Lookback( ) - */ - __pyx_tuple__72 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__72)) __PYX_ERR(0, 742, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__72); - __Pyx_GIVEREF(__pyx_tuple__72); - - /* "talib/func.pyx":780 - * double* outreal_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__73 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__73)) __PYX_ERR(0, 780, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__73); - __Pyx_GIVEREF(__pyx_tuple__73); - - /* "talib/func.pyx":782 - * raise 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__74 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__74)) __PYX_ERR(0, 782, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__74); - __Pyx_GIVEREF(__pyx_tuple__74); - - /* "talib/func.pyx":787 - * high_data = 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__75 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__75)) __PYX_ERR(0, 787, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__75); - __Pyx_GIVEREF(__pyx_tuple__75); - - /* "talib/func.pyx":789 - * raise 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__76 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__76)) __PYX_ERR(0, 789, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__76); - __Pyx_GIVEREF(__pyx_tuple__76); - - /* "talib/func.pyx":794 - * low_data = 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__77 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__77)) __PYX_ERR(0, 794, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__77); - __Pyx_GIVEREF(__pyx_tuple__77); - - /* "talib/func.pyx":796 - * raise 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__78 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__78)) __PYX_ERR(0, 796, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__78); - __Pyx_GIVEREF(__pyx_tuple__78); - - /* "talib/func.pyx":802 - * 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__79 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__79)) __PYX_ERR(0, 802, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__79); - __Pyx_GIVEREF(__pyx_tuple__79); - - /* "talib/func.pyx":804 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_tuple__80 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__80)) __PYX_ERR(0, 804, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__80); - __Pyx_GIVEREF(__pyx_tuple__80); - - /* "talib/func.pyx":819 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_ATR_Lookback( timeperiod ) - */ - __pyx_tuple__81 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__81)) __PYX_ERR(0, 819, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__81); - __Pyx_GIVEREF(__pyx_tuple__81); - - /* "talib/func.pyx":856 - * double* outreal_data - * 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__82 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__82)) __PYX_ERR(0, 856, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__82); - __Pyx_GIVEREF(__pyx_tuple__82); - - /* "talib/func.pyx":858 - * 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__83 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__83)) __PYX_ERR(0, 858, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__83); - __Pyx_GIVEREF(__pyx_tuple__83); - - /* "talib/func.pyx":863 - * open_data = 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__84 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__84)) __PYX_ERR(0, 863, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__84); - __Pyx_GIVEREF(__pyx_tuple__84); - - /* "talib/func.pyx":865 - * raise 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__85 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__85)) __PYX_ERR(0, 865, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__85); - __Pyx_GIVEREF(__pyx_tuple__85); - - /* "talib/func.pyx":870 - * high_data = 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__86 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__86)) __PYX_ERR(0, 870, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__86); - __Pyx_GIVEREF(__pyx_tuple__86); - - /* "talib/func.pyx":872 - * raise 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__87 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__87)) __PYX_ERR(0, 872, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__87); - __Pyx_GIVEREF(__pyx_tuple__87); - - /* "talib/func.pyx":877 - * low_data = 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__88 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__88)) __PYX_ERR(0, 877, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__88); - __Pyx_GIVEREF(__pyx_tuple__88); - - /* "talib/func.pyx":879 - * raise 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__89 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__89)) __PYX_ERR(0, 879, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__89); - __Pyx_GIVEREF(__pyx_tuple__89); - - /* "talib/func.pyx":885 - * 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__90 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__90)) __PYX_ERR(0, 885, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__90); - __Pyx_GIVEREF(__pyx_tuple__90); - - /* "talib/func.pyx":887 - * 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__91 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__91)) __PYX_ERR(0, 887, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__91); - __Pyx_GIVEREF(__pyx_tuple__91); - - /* "talib/func.pyx":889 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_tuple__92 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__92)) __PYX_ERR(0, 889, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__92); - __Pyx_GIVEREF(__pyx_tuple__92); - - /* "talib/func.pyx":907 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_AVGPRICE_Lookback( ) - */ - __pyx_tuple__93 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__93)) __PYX_ERR(0, 907, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__93); - __Pyx_GIVEREF(__pyx_tuple__93); - - /* "talib/func.pyx":952 - * double* outreallowerband_data - * 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__94 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__94)) __PYX_ERR(0, 952, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__94); - __Pyx_GIVEREF(__pyx_tuple__94); - - /* "talib/func.pyx":954 - * 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__95 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__95)) __PYX_ERR(0, 954, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__95); - __Pyx_GIVEREF(__pyx_tuple__95); - - /* "talib/func.pyx":967 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_BBANDS_Lookback( timeperiod , nbdevup , nbdevdn , matype ) - */ - __pyx_tuple__96 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__96)) __PYX_ERR(0, 967, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__96); - __Pyx_GIVEREF(__pyx_tuple__96); - - /* "talib/func.pyx":1013 - * double* outreal_data - * 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__97 = PyTuple_Pack(1, __pyx_kp_s_real0_is_not_double); if (unlikely(!__pyx_tuple__97)) __PYX_ERR(0, 1013, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__97); - __Pyx_GIVEREF(__pyx_tuple__97); - - /* "talib/func.pyx":1015 - * 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__98 = PyTuple_Pack(1, __pyx_kp_s_real0_has_wrong_dimensions); if (unlikely(!__pyx_tuple__98)) __PYX_ERR(0, 1015, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__98); - __Pyx_GIVEREF(__pyx_tuple__98); - - /* "talib/func.pyx":1020 - * real0_data = 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__99 = PyTuple_Pack(1, __pyx_kp_s_real1_is_not_double); if (unlikely(!__pyx_tuple__99)) __PYX_ERR(0, 1020, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__99); - __Pyx_GIVEREF(__pyx_tuple__99); - - /* "talib/func.pyx":1022 - * 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__100 = PyTuple_Pack(1, __pyx_kp_s_real1_has_wrong_dimensions); if (unlikely(!__pyx_tuple__100)) __PYX_ERR(0, 1022, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__100); - __Pyx_GIVEREF(__pyx_tuple__100); - - /* "talib/func.pyx":1028 - * length = real0.shape[0] - * if length != real1.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_tuple__101 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__101)) __PYX_ERR(0, 1028, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__101); - __Pyx_GIVEREF(__pyx_tuple__101); - - /* "talib/func.pyx":1040 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_BETA_Lookback( timeperiod ) - */ - __pyx_tuple__102 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__102)) __PYX_ERR(0, 1040, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__102); - __Pyx_GIVEREF(__pyx_tuple__102); - - /* "talib/func.pyx":1077 - * double* outreal_data - * 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__103 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__103)) __PYX_ERR(0, 1077, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__103); - __Pyx_GIVEREF(__pyx_tuple__103); - - /* "talib/func.pyx":1079 - * 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__104 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__104)) __PYX_ERR(0, 1079, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__104); - __Pyx_GIVEREF(__pyx_tuple__104); - - /* "talib/func.pyx":1084 - * open_data = 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__105 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__105)) __PYX_ERR(0, 1084, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__105); - __Pyx_GIVEREF(__pyx_tuple__105); - - /* "talib/func.pyx":1086 - * raise 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__106 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__106)) __PYX_ERR(0, 1086, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__106); - __Pyx_GIVEREF(__pyx_tuple__106); - - /* "talib/func.pyx":1091 - * high_data = 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__107 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__107)) __PYX_ERR(0, 1091, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__107); - __Pyx_GIVEREF(__pyx_tuple__107); - - /* "talib/func.pyx":1093 - * raise 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__108 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__108)) __PYX_ERR(0, 1093, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__108); - __Pyx_GIVEREF(__pyx_tuple__108); - - /* "talib/func.pyx":1098 - * low_data = 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__109 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__109)) __PYX_ERR(0, 1098, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__109); - __Pyx_GIVEREF(__pyx_tuple__109); - - /* "talib/func.pyx":1100 - * raise 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__110 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__110)) __PYX_ERR(0, 1100, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__110); - __Pyx_GIVEREF(__pyx_tuple__110); - - /* "talib/func.pyx":1106 - * 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__111 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__111)) __PYX_ERR(0, 1106, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__111); - __Pyx_GIVEREF(__pyx_tuple__111); - - /* "talib/func.pyx":1108 - * 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__112 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__112)) __PYX_ERR(0, 1108, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__112); - __Pyx_GIVEREF(__pyx_tuple__112); - - /* "talib/func.pyx":1110 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_tuple__113 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__113)) __PYX_ERR(0, 1110, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__113); - __Pyx_GIVEREF(__pyx_tuple__113); - - /* "talib/func.pyx":1128 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_BOP_Lookback( ) - */ - __pyx_tuple__114 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__114)) __PYX_ERR(0, 1128, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__114); - __Pyx_GIVEREF(__pyx_tuple__114); - - /* "talib/func.pyx":1166 - * double* outreal_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__115 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__115)) __PYX_ERR(0, 1166, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__115); - __Pyx_GIVEREF(__pyx_tuple__115); - - /* "talib/func.pyx":1168 - * raise 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__116 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__116)) __PYX_ERR(0, 1168, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__116); - __Pyx_GIVEREF(__pyx_tuple__116); - - /* "talib/func.pyx":1173 - * high_data = 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__117 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__117)) __PYX_ERR(0, 1173, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__117); - __Pyx_GIVEREF(__pyx_tuple__117); - - /* "talib/func.pyx":1175 - * raise 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__118 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__118)) __PYX_ERR(0, 1175, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__118); - __Pyx_GIVEREF(__pyx_tuple__118); - - /* "talib/func.pyx":1180 - * low_data = 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__119 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__119)) __PYX_ERR(0, 1180, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__119); - __Pyx_GIVEREF(__pyx_tuple__119); - - /* "talib/func.pyx":1182 - * raise 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__120 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__120)) __PYX_ERR(0, 1182, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__120); - __Pyx_GIVEREF(__pyx_tuple__120); - - /* "talib/func.pyx":1188 - * 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__121 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__121)) __PYX_ERR(0, 1188, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__121); - __Pyx_GIVEREF(__pyx_tuple__121); - - /* "talib/func.pyx":1190 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_tuple__122 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__122)) __PYX_ERR(0, 1190, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__122); - __Pyx_GIVEREF(__pyx_tuple__122); - - /* "talib/func.pyx":1205 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CCI_Lookback( timeperiod ) - */ - __pyx_tuple__123 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__123)) __PYX_ERR(0, 1205, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__123); - __Pyx_GIVEREF(__pyx_tuple__123); - - /* "talib/func.pyx":1242 - * int* outinteger_data - * 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__124 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__124)) __PYX_ERR(0, 1242, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__124); - __Pyx_GIVEREF(__pyx_tuple__124); - - /* "talib/func.pyx":1244 - * 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__125 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__125)) __PYX_ERR(0, 1244, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__125); - __Pyx_GIVEREF(__pyx_tuple__125); - - /* "talib/func.pyx":1249 - * open_data = 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__126 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__126)) __PYX_ERR(0, 1249, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__126); - __Pyx_GIVEREF(__pyx_tuple__126); - - /* "talib/func.pyx":1251 - * raise 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__127 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__127)) __PYX_ERR(0, 1251, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__127); - __Pyx_GIVEREF(__pyx_tuple__127); - - /* "talib/func.pyx":1256 - * high_data = 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__128 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__128)) __PYX_ERR(0, 1256, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__128); - __Pyx_GIVEREF(__pyx_tuple__128); - - /* "talib/func.pyx":1258 - * raise 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__129 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__129)) __PYX_ERR(0, 1258, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__129); - __Pyx_GIVEREF(__pyx_tuple__129); - - /* "talib/func.pyx":1263 - * low_data = 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__130 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__130)) __PYX_ERR(0, 1263, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__130); - __Pyx_GIVEREF(__pyx_tuple__130); - - /* "talib/func.pyx":1265 - * raise 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__131 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__131)) __PYX_ERR(0, 1265, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__131); - __Pyx_GIVEREF(__pyx_tuple__131); - - /* "talib/func.pyx":1271 - * 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__132 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__132)) __PYX_ERR(0, 1271, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__132); - __Pyx_GIVEREF(__pyx_tuple__132); - - /* "talib/func.pyx":1273 - * 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__133 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__133)) __PYX_ERR(0, 1273, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__133); - __Pyx_GIVEREF(__pyx_tuple__133); - - /* "talib/func.pyx":1275 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_tuple__134 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__134)) __PYX_ERR(0, 1275, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__134); - __Pyx_GIVEREF(__pyx_tuple__134); - - /* "talib/func.pyx":1293 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDL2CROWS_Lookback( ) - */ - __pyx_tuple__135 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__135)) __PYX_ERR(0, 1293, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__135); - __Pyx_GIVEREF(__pyx_tuple__135); - - /* "talib/func.pyx":1330 - * int* outinteger_data - * 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__136 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__136)) __PYX_ERR(0, 1330, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__136); - __Pyx_GIVEREF(__pyx_tuple__136); - - /* "talib/func.pyx":1332 - * 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__137 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__137)) __PYX_ERR(0, 1332, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__137); - __Pyx_GIVEREF(__pyx_tuple__137); - - /* "talib/func.pyx":1337 - * open_data = 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__138 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__138)) __PYX_ERR(0, 1337, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__138); - __Pyx_GIVEREF(__pyx_tuple__138); - - /* "talib/func.pyx":1339 - * raise 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__139 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__139)) __PYX_ERR(0, 1339, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__139); - __Pyx_GIVEREF(__pyx_tuple__139); - - /* "talib/func.pyx":1344 - * high_data = 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__140 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__140)) __PYX_ERR(0, 1344, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__140); - __Pyx_GIVEREF(__pyx_tuple__140); - - /* "talib/func.pyx":1346 - * raise 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__141 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__141)) __PYX_ERR(0, 1346, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__141); - __Pyx_GIVEREF(__pyx_tuple__141); - - /* "talib/func.pyx":1351 - * low_data = 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__142 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__142)) __PYX_ERR(0, 1351, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__142); - __Pyx_GIVEREF(__pyx_tuple__142); - - /* "talib/func.pyx":1353 - * raise 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__143 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__143)) __PYX_ERR(0, 1353, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__143); - __Pyx_GIVEREF(__pyx_tuple__143); - - /* "talib/func.pyx":1359 - * 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__144 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__144)) __PYX_ERR(0, 1359, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__144); - __Pyx_GIVEREF(__pyx_tuple__144); - - /* "talib/func.pyx":1361 - * 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__145 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__145)) __PYX_ERR(0, 1361, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__145); - __Pyx_GIVEREF(__pyx_tuple__145); - - /* "talib/func.pyx":1363 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_tuple__146 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__146)) __PYX_ERR(0, 1363, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__146); - __Pyx_GIVEREF(__pyx_tuple__146); - - /* "talib/func.pyx":1381 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDL3BLACKCROWS_Lookback( ) - */ - __pyx_tuple__147 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__147)) __PYX_ERR(0, 1381, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__147); - __Pyx_GIVEREF(__pyx_tuple__147); - - /* "talib/func.pyx":1418 - * int* outinteger_data - * 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__148 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__148)) __PYX_ERR(0, 1418, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__148); - __Pyx_GIVEREF(__pyx_tuple__148); - - /* "talib/func.pyx":1420 - * 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__149 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__149)) __PYX_ERR(0, 1420, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__149); - __Pyx_GIVEREF(__pyx_tuple__149); - - /* "talib/func.pyx":1425 - * open_data = 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__150 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__150)) __PYX_ERR(0, 1425, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__150); - __Pyx_GIVEREF(__pyx_tuple__150); - - /* "talib/func.pyx":1427 - * raise 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__151 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__151)) __PYX_ERR(0, 1427, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__151); - __Pyx_GIVEREF(__pyx_tuple__151); - - /* "talib/func.pyx":1432 - * high_data = 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__152 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__152)) __PYX_ERR(0, 1432, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__152); - __Pyx_GIVEREF(__pyx_tuple__152); - - /* "talib/func.pyx":1434 - * raise 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__153 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__153)) __PYX_ERR(0, 1434, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__153); - __Pyx_GIVEREF(__pyx_tuple__153); - - /* "talib/func.pyx":1439 - * low_data = 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__154 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__154)) __PYX_ERR(0, 1439, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__154); - __Pyx_GIVEREF(__pyx_tuple__154); - - /* "talib/func.pyx":1441 - * raise 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__155 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__155)) __PYX_ERR(0, 1441, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__155); - __Pyx_GIVEREF(__pyx_tuple__155); - - /* "talib/func.pyx":1447 - * 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__156 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__156)) __PYX_ERR(0, 1447, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__156); - __Pyx_GIVEREF(__pyx_tuple__156); - - /* "talib/func.pyx":1449 - * 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__157 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__157)) __PYX_ERR(0, 1449, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__157); - __Pyx_GIVEREF(__pyx_tuple__157); - - /* "talib/func.pyx":1451 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_tuple__158 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__158)) __PYX_ERR(0, 1451, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__158); - __Pyx_GIVEREF(__pyx_tuple__158); - - /* "talib/func.pyx":1469 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDL3INSIDE_Lookback( ) - */ - __pyx_tuple__159 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__159)) __PYX_ERR(0, 1469, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__159); - __Pyx_GIVEREF(__pyx_tuple__159); - - /* "talib/func.pyx":1506 - * int* outinteger_data - * 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__160 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__160)) __PYX_ERR(0, 1506, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__160); - __Pyx_GIVEREF(__pyx_tuple__160); - - /* "talib/func.pyx":1508 - * 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__161 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__161)) __PYX_ERR(0, 1508, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__161); - __Pyx_GIVEREF(__pyx_tuple__161); - - /* "talib/func.pyx":1513 - * open_data = 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__162 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__162)) __PYX_ERR(0, 1513, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__162); - __Pyx_GIVEREF(__pyx_tuple__162); - - /* "talib/func.pyx":1515 - * raise 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__163 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__163)) __PYX_ERR(0, 1515, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__163); - __Pyx_GIVEREF(__pyx_tuple__163); - - /* "talib/func.pyx":1520 - * high_data = 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__164 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__164)) __PYX_ERR(0, 1520, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__164); - __Pyx_GIVEREF(__pyx_tuple__164); - - /* "talib/func.pyx":1522 - * raise 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__165 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__165)) __PYX_ERR(0, 1522, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__165); - __Pyx_GIVEREF(__pyx_tuple__165); - - /* "talib/func.pyx":1527 - * low_data = 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__166 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__166)) __PYX_ERR(0, 1527, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__166); - __Pyx_GIVEREF(__pyx_tuple__166); - - /* "talib/func.pyx":1529 - * raise 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__167 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__167)) __PYX_ERR(0, 1529, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__167); - __Pyx_GIVEREF(__pyx_tuple__167); - - /* "talib/func.pyx":1535 - * 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__168 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__168)) __PYX_ERR(0, 1535, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__168); - __Pyx_GIVEREF(__pyx_tuple__168); - - /* "talib/func.pyx":1537 - * 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__169 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__169)) __PYX_ERR(0, 1537, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__169); - __Pyx_GIVEREF(__pyx_tuple__169); - - /* "talib/func.pyx":1539 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_tuple__170 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__170)) __PYX_ERR(0, 1539, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__170); - __Pyx_GIVEREF(__pyx_tuple__170); - - /* "talib/func.pyx":1557 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDL3LINESTRIKE_Lookback( ) - */ - __pyx_tuple__171 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__171)) __PYX_ERR(0, 1557, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__171); - __Pyx_GIVEREF(__pyx_tuple__171); - - /* "talib/func.pyx":1594 - * int* outinteger_data - * 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__172 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__172)) __PYX_ERR(0, 1594, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__172); - __Pyx_GIVEREF(__pyx_tuple__172); - - /* "talib/func.pyx":1596 - * 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__173 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__173)) __PYX_ERR(0, 1596, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__173); - __Pyx_GIVEREF(__pyx_tuple__173); - - /* "talib/func.pyx":1601 - * open_data = 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__174 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__174)) __PYX_ERR(0, 1601, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__174); - __Pyx_GIVEREF(__pyx_tuple__174); - - /* "talib/func.pyx":1603 - * raise 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__175 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__175)) __PYX_ERR(0, 1603, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__175); - __Pyx_GIVEREF(__pyx_tuple__175); - - /* "talib/func.pyx":1608 - * high_data = 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__176 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__176)) __PYX_ERR(0, 1608, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__176); - __Pyx_GIVEREF(__pyx_tuple__176); - - /* "talib/func.pyx":1610 - * raise 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__177 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__177)) __PYX_ERR(0, 1610, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__177); - __Pyx_GIVEREF(__pyx_tuple__177); - - /* "talib/func.pyx":1615 - * low_data = 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__178 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__178)) __PYX_ERR(0, 1615, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__178); - __Pyx_GIVEREF(__pyx_tuple__178); - - /* "talib/func.pyx":1617 - * raise 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__179 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__179)) __PYX_ERR(0, 1617, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__179); - __Pyx_GIVEREF(__pyx_tuple__179); - - /* "talib/func.pyx":1623 - * 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__180 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__180)) __PYX_ERR(0, 1623, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__180); - __Pyx_GIVEREF(__pyx_tuple__180); - - /* "talib/func.pyx":1625 - * 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__181 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__181)) __PYX_ERR(0, 1625, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__181); - __Pyx_GIVEREF(__pyx_tuple__181); - - /* "talib/func.pyx":1627 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_tuple__182 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__182)) __PYX_ERR(0, 1627, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__182); - __Pyx_GIVEREF(__pyx_tuple__182); - - /* "talib/func.pyx":1645 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDL3OUTSIDE_Lookback( ) - */ - __pyx_tuple__183 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__183)) __PYX_ERR(0, 1645, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__183); - __Pyx_GIVEREF(__pyx_tuple__183); - - /* "talib/func.pyx":1682 - * int* outinteger_data - * 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, 1682, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__184); - __Pyx_GIVEREF(__pyx_tuple__184); - - /* "talib/func.pyx":1684 - * 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, 1684, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__185); - __Pyx_GIVEREF(__pyx_tuple__185); - - /* "talib/func.pyx":1689 - * open_data = 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, 1689, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__186); - __Pyx_GIVEREF(__pyx_tuple__186); - - /* "talib/func.pyx":1691 - * raise 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, 1691, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__187); - __Pyx_GIVEREF(__pyx_tuple__187); - - /* "talib/func.pyx":1696 - * high_data = 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, 1696, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__188); - __Pyx_GIVEREF(__pyx_tuple__188); - - /* "talib/func.pyx":1698 - * raise 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, 1698, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__189); - __Pyx_GIVEREF(__pyx_tuple__189); - - /* "talib/func.pyx":1703 - * low_data = 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, 1703, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__190); - __Pyx_GIVEREF(__pyx_tuple__190); - - /* "talib/func.pyx":1705 - * raise 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, 1705, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__191); - __Pyx_GIVEREF(__pyx_tuple__191); - - /* "talib/func.pyx":1711 - * 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, 1711, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__192); - __Pyx_GIVEREF(__pyx_tuple__192); - - /* "talib/func.pyx":1713 - * 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, 1713, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__193); - __Pyx_GIVEREF(__pyx_tuple__193); - - /* "talib/func.pyx":1715 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_tuple__194 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__194)) __PYX_ERR(0, 1715, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__194); - __Pyx_GIVEREF(__pyx_tuple__194); - - /* "talib/func.pyx":1733 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDL3STARSINSOUTH_Lookback( ) - */ - __pyx_tuple__195 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__195)) __PYX_ERR(0, 1733, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__195); - __Pyx_GIVEREF(__pyx_tuple__195); - - /* "talib/func.pyx":1770 - * int* outinteger_data - * 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__196 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__196)) __PYX_ERR(0, 1770, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__196); - __Pyx_GIVEREF(__pyx_tuple__196); - - /* "talib/func.pyx":1772 - * 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__197 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__197)) __PYX_ERR(0, 1772, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__197); - __Pyx_GIVEREF(__pyx_tuple__197); - - /* "talib/func.pyx":1777 - * open_data = 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__198 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__198)) __PYX_ERR(0, 1777, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__198); - __Pyx_GIVEREF(__pyx_tuple__198); - - /* "talib/func.pyx":1779 - * raise 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__199 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__199)) __PYX_ERR(0, 1779, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__199); - __Pyx_GIVEREF(__pyx_tuple__199); - - /* "talib/func.pyx":1784 - * high_data = 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__200 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__200)) __PYX_ERR(0, 1784, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__200); - __Pyx_GIVEREF(__pyx_tuple__200); - - /* "talib/func.pyx":1786 - * raise 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__201 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__201)) __PYX_ERR(0, 1786, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__201); - __Pyx_GIVEREF(__pyx_tuple__201); - - /* "talib/func.pyx":1791 - * low_data = 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__202 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__202)) __PYX_ERR(0, 1791, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__202); - __Pyx_GIVEREF(__pyx_tuple__202); - - /* "talib/func.pyx":1793 - * raise 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__203 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__203)) __PYX_ERR(0, 1793, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__203); - __Pyx_GIVEREF(__pyx_tuple__203); - - /* "talib/func.pyx":1799 - * 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__204 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__204)) __PYX_ERR(0, 1799, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__204); - __Pyx_GIVEREF(__pyx_tuple__204); - - /* "talib/func.pyx":1801 - * 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__205 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__205)) __PYX_ERR(0, 1801, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__205); - __Pyx_GIVEREF(__pyx_tuple__205); - - /* "talib/func.pyx":1803 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_tuple__206 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__206)) __PYX_ERR(0, 1803, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__206); - __Pyx_GIVEREF(__pyx_tuple__206); - - /* "talib/func.pyx":1821 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDL3WHITESOLDIERS_Lookback( ) - */ - __pyx_tuple__207 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__207)) __PYX_ERR(0, 1821, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__207); - __Pyx_GIVEREF(__pyx_tuple__207); - - /* "talib/func.pyx":1860 - * int* outinteger_data - * 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__208 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__208)) __PYX_ERR(0, 1860, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__208); - __Pyx_GIVEREF(__pyx_tuple__208); - - /* "talib/func.pyx":1862 - * 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__209 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__209)) __PYX_ERR(0, 1862, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__209); - __Pyx_GIVEREF(__pyx_tuple__209); - - /* "talib/func.pyx":1867 - * open_data = 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__210 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__210)) __PYX_ERR(0, 1867, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__210); - __Pyx_GIVEREF(__pyx_tuple__210); - - /* "talib/func.pyx":1869 - * raise 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__211 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__211)) __PYX_ERR(0, 1869, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__211); - __Pyx_GIVEREF(__pyx_tuple__211); - - /* "talib/func.pyx":1874 - * high_data = 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__212 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__212)) __PYX_ERR(0, 1874, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__212); - __Pyx_GIVEREF(__pyx_tuple__212); - - /* "talib/func.pyx":1876 - * raise 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__213 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__213)) __PYX_ERR(0, 1876, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__213); - __Pyx_GIVEREF(__pyx_tuple__213); - - /* "talib/func.pyx":1881 - * low_data = 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__214 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__214)) __PYX_ERR(0, 1881, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__214); - __Pyx_GIVEREF(__pyx_tuple__214); - - /* "talib/func.pyx":1883 - * raise 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__215 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__215)) __PYX_ERR(0, 1883, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__215); - __Pyx_GIVEREF(__pyx_tuple__215); - - /* "talib/func.pyx":1889 - * 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__216 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__216)) __PYX_ERR(0, 1889, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__216); - __Pyx_GIVEREF(__pyx_tuple__216); - - /* "talib/func.pyx":1891 - * 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__217 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__217)) __PYX_ERR(0, 1891, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__217); - __Pyx_GIVEREF(__pyx_tuple__217); - - /* "talib/func.pyx":1893 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_tuple__218 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__218)) __PYX_ERR(0, 1893, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__218); - __Pyx_GIVEREF(__pyx_tuple__218); - - /* "talib/func.pyx":1911 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLABANDONEDBABY_Lookback( penetration ) - */ - __pyx_tuple__219 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__219)) __PYX_ERR(0, 1911, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__219); - __Pyx_GIVEREF(__pyx_tuple__219); - - /* "talib/func.pyx":1948 - * int* outinteger_data - * 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__220 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__220)) __PYX_ERR(0, 1948, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__220); - __Pyx_GIVEREF(__pyx_tuple__220); - - /* "talib/func.pyx":1950 - * 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__221 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__221)) __PYX_ERR(0, 1950, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__221); - __Pyx_GIVEREF(__pyx_tuple__221); - - /* "talib/func.pyx":1955 - * open_data = 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__222 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__222)) __PYX_ERR(0, 1955, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__222); - __Pyx_GIVEREF(__pyx_tuple__222); - - /* "talib/func.pyx":1957 - * raise 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__223 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__223)) __PYX_ERR(0, 1957, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__223); - __Pyx_GIVEREF(__pyx_tuple__223); - - /* "talib/func.pyx":1962 - * high_data = 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__224 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__224)) __PYX_ERR(0, 1962, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__224); - __Pyx_GIVEREF(__pyx_tuple__224); - - /* "talib/func.pyx":1964 - * raise 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__225 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__225)) __PYX_ERR(0, 1964, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__225); - __Pyx_GIVEREF(__pyx_tuple__225); - - /* "talib/func.pyx":1969 - * low_data = 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__226 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__226)) __PYX_ERR(0, 1969, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__226); - __Pyx_GIVEREF(__pyx_tuple__226); - - /* "talib/func.pyx":1971 - * raise 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__227 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__227)) __PYX_ERR(0, 1971, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__227); - __Pyx_GIVEREF(__pyx_tuple__227); - - /* "talib/func.pyx":1977 - * 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__228 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__228)) __PYX_ERR(0, 1977, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__228); - __Pyx_GIVEREF(__pyx_tuple__228); - - /* "talib/func.pyx":1979 - * 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__229 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__229)) __PYX_ERR(0, 1979, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__229); - __Pyx_GIVEREF(__pyx_tuple__229); - - /* "talib/func.pyx":1981 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_tuple__230 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__230)) __PYX_ERR(0, 1981, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__230); - __Pyx_GIVEREF(__pyx_tuple__230); - - /* "talib/func.pyx":1999 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLADVANCEBLOCK_Lookback( ) - */ - __pyx_tuple__231 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__231)) __PYX_ERR(0, 1999, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__231); - __Pyx_GIVEREF(__pyx_tuple__231); - - /* "talib/func.pyx":2036 - * int* outinteger_data - * 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__232 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__232)) __PYX_ERR(0, 2036, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__232); - __Pyx_GIVEREF(__pyx_tuple__232); - - /* "talib/func.pyx":2038 - * 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__233 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__233)) __PYX_ERR(0, 2038, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__233); - __Pyx_GIVEREF(__pyx_tuple__233); - - /* "talib/func.pyx":2043 - * open_data = 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__234 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__234)) __PYX_ERR(0, 2043, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__234); - __Pyx_GIVEREF(__pyx_tuple__234); - - /* "talib/func.pyx":2045 - * raise 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__235 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__235)) __PYX_ERR(0, 2045, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__235); - __Pyx_GIVEREF(__pyx_tuple__235); - - /* "talib/func.pyx":2050 - * high_data = 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__236 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__236)) __PYX_ERR(0, 2050, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__236); - __Pyx_GIVEREF(__pyx_tuple__236); - - /* "talib/func.pyx":2052 - * raise 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__237 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__237)) __PYX_ERR(0, 2052, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__237); - __Pyx_GIVEREF(__pyx_tuple__237); - - /* "talib/func.pyx":2057 - * low_data = 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__238 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__238)) __PYX_ERR(0, 2057, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__238); - __Pyx_GIVEREF(__pyx_tuple__238); - - /* "talib/func.pyx":2059 - * raise 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__239 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__239)) __PYX_ERR(0, 2059, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__239); - __Pyx_GIVEREF(__pyx_tuple__239); - - /* "talib/func.pyx":2065 - * 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__240 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__240)) __PYX_ERR(0, 2065, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__240); - __Pyx_GIVEREF(__pyx_tuple__240); - - /* "talib/func.pyx":2067 - * 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__241 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__241)) __PYX_ERR(0, 2067, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__241); - __Pyx_GIVEREF(__pyx_tuple__241); - - /* "talib/func.pyx":2069 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_tuple__242 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__242)) __PYX_ERR(0, 2069, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__242); - __Pyx_GIVEREF(__pyx_tuple__242); - - /* "talib/func.pyx":2087 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLBELTHOLD_Lookback( ) - */ - __pyx_tuple__243 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__243)) __PYX_ERR(0, 2087, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__243); - __Pyx_GIVEREF(__pyx_tuple__243); - - /* "talib/func.pyx":2124 - * int* outinteger_data - * 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__244 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__244)) __PYX_ERR(0, 2124, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__244); - __Pyx_GIVEREF(__pyx_tuple__244); - - /* "talib/func.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__245 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__245)) __PYX_ERR(0, 2126, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__245); - __Pyx_GIVEREF(__pyx_tuple__245); - - /* "talib/func.pyx":2131 - * open_data = 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__246 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__246)) __PYX_ERR(0, 2131, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__246); - __Pyx_GIVEREF(__pyx_tuple__246); - - /* "talib/func.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__247 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__247)) __PYX_ERR(0, 2133, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__247); - __Pyx_GIVEREF(__pyx_tuple__247); - - /* "talib/func.pyx":2138 - * high_data = 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__248 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__248)) __PYX_ERR(0, 2138, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__248); - __Pyx_GIVEREF(__pyx_tuple__248); - - /* "talib/func.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__249 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__249)) __PYX_ERR(0, 2140, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__249); - __Pyx_GIVEREF(__pyx_tuple__249); - - /* "talib/func.pyx":2145 - * low_data = 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__250 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__250)) __PYX_ERR(0, 2145, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__250); - __Pyx_GIVEREF(__pyx_tuple__250); - - /* "talib/func.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__251 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__251)) __PYX_ERR(0, 2147, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__251); - __Pyx_GIVEREF(__pyx_tuple__251); - - /* "talib/func.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__252 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__252)) __PYX_ERR(0, 2153, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__252); - __Pyx_GIVEREF(__pyx_tuple__252); - - /* "talib/func.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__253 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__253)) __PYX_ERR(0, 2155, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__253); - __Pyx_GIVEREF(__pyx_tuple__253); - - /* "talib/func.pyx":2157 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_tuple__254 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__254)) __PYX_ERR(0, 2157, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__254); - __Pyx_GIVEREF(__pyx_tuple__254); - - /* "talib/func.pyx":2175 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLBREAKAWAY_Lookback( ) - */ - __pyx_tuple__255 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__255)) __PYX_ERR(0, 2175, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__255); - __Pyx_GIVEREF(__pyx_tuple__255); - - /* "talib/func.pyx":2212 - * int* outinteger_data - * 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__256 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__256)) __PYX_ERR(0, 2212, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__256); - __Pyx_GIVEREF(__pyx_tuple__256); - - /* "talib/func.pyx":2214 - * 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__257 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__257)) __PYX_ERR(0, 2214, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__257); - __Pyx_GIVEREF(__pyx_tuple__257); - - /* "talib/func.pyx":2219 - * open_data = 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__258 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__258)) __PYX_ERR(0, 2219, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__258); - __Pyx_GIVEREF(__pyx_tuple__258); - - /* "talib/func.pyx":2221 - * raise 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__259 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__259)) __PYX_ERR(0, 2221, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__259); - __Pyx_GIVEREF(__pyx_tuple__259); - - /* "talib/func.pyx":2226 - * high_data = 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__260 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__260)) __PYX_ERR(0, 2226, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__260); - __Pyx_GIVEREF(__pyx_tuple__260); - - /* "talib/func.pyx":2228 - * raise 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__261 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__261)) __PYX_ERR(0, 2228, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__261); - __Pyx_GIVEREF(__pyx_tuple__261); - - /* "talib/func.pyx":2233 - * low_data = 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__262 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__262)) __PYX_ERR(0, 2233, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__262); - __Pyx_GIVEREF(__pyx_tuple__262); - - /* "talib/func.pyx":2235 - * raise 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__263 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__263)) __PYX_ERR(0, 2235, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__263); - __Pyx_GIVEREF(__pyx_tuple__263); - - /* "talib/func.pyx":2241 - * 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__264 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__264)) __PYX_ERR(0, 2241, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__264); - __Pyx_GIVEREF(__pyx_tuple__264); - - /* "talib/func.pyx":2243 - * 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__265 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__265)) __PYX_ERR(0, 2243, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__265); - __Pyx_GIVEREF(__pyx_tuple__265); - - /* "talib/func.pyx":2245 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_tuple__266 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__266)) __PYX_ERR(0, 2245, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__266); - __Pyx_GIVEREF(__pyx_tuple__266); - - /* "talib/func.pyx":2263 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLCLOSINGMARUBOZU_Lookback( ) - */ - __pyx_tuple__267 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__267)) __PYX_ERR(0, 2263, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__267); - __Pyx_GIVEREF(__pyx_tuple__267); - - /* "talib/func.pyx":2300 - * int* outinteger_data - * 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__268 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__268)) __PYX_ERR(0, 2300, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__268); - __Pyx_GIVEREF(__pyx_tuple__268); - - /* "talib/func.pyx":2302 - * 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__269 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__269)) __PYX_ERR(0, 2302, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__269); - __Pyx_GIVEREF(__pyx_tuple__269); - - /* "talib/func.pyx":2307 - * open_data = 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__270 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__270)) __PYX_ERR(0, 2307, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__270); - __Pyx_GIVEREF(__pyx_tuple__270); - - /* "talib/func.pyx":2309 - * raise 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__271 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__271)) __PYX_ERR(0, 2309, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__271); - __Pyx_GIVEREF(__pyx_tuple__271); - - /* "talib/func.pyx":2314 - * high_data = 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__272 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__272)) __PYX_ERR(0, 2314, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__272); - __Pyx_GIVEREF(__pyx_tuple__272); - - /* "talib/func.pyx":2316 - * raise 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__273 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__273)) __PYX_ERR(0, 2316, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__273); - __Pyx_GIVEREF(__pyx_tuple__273); - - /* "talib/func.pyx":2321 - * low_data = 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__274 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__274)) __PYX_ERR(0, 2321, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__274); - __Pyx_GIVEREF(__pyx_tuple__274); - - /* "talib/func.pyx":2323 - * raise 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__275 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__275)) __PYX_ERR(0, 2323, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__275); - __Pyx_GIVEREF(__pyx_tuple__275); - - /* "talib/func.pyx":2329 - * 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__276 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__276)) __PYX_ERR(0, 2329, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__276); - __Pyx_GIVEREF(__pyx_tuple__276); - - /* "talib/func.pyx":2331 - * 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__277 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__277)) __PYX_ERR(0, 2331, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__277); - __Pyx_GIVEREF(__pyx_tuple__277); - - /* "talib/func.pyx":2333 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_tuple__278 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__278)) __PYX_ERR(0, 2333, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__278); - __Pyx_GIVEREF(__pyx_tuple__278); - - /* "talib/func.pyx":2351 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLCONCEALBABYSWALL_Lookback( ) - */ - __pyx_tuple__279 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__279)) __PYX_ERR(0, 2351, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__279); - __Pyx_GIVEREF(__pyx_tuple__279); - - /* "talib/func.pyx":2388 - * int* outinteger_data - * 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__280 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__280)) __PYX_ERR(0, 2388, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__280); - __Pyx_GIVEREF(__pyx_tuple__280); - - /* "talib/func.pyx":2390 - * 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__281 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__281)) __PYX_ERR(0, 2390, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__281); - __Pyx_GIVEREF(__pyx_tuple__281); - - /* "talib/func.pyx":2395 - * open_data = 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__282 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__282)) __PYX_ERR(0, 2395, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__282); - __Pyx_GIVEREF(__pyx_tuple__282); - - /* "talib/func.pyx":2397 - * raise 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__283 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__283)) __PYX_ERR(0, 2397, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__283); - __Pyx_GIVEREF(__pyx_tuple__283); - - /* "talib/func.pyx":2402 - * high_data = 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__284 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__284)) __PYX_ERR(0, 2402, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__284); - __Pyx_GIVEREF(__pyx_tuple__284); - - /* "talib/func.pyx":2404 - * raise 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__285 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__285)) __PYX_ERR(0, 2404, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__285); - __Pyx_GIVEREF(__pyx_tuple__285); - - /* "talib/func.pyx":2409 - * low_data = 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__286 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__286)) __PYX_ERR(0, 2409, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__286); - __Pyx_GIVEREF(__pyx_tuple__286); - - /* "talib/func.pyx":2411 - * raise 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__287 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__287)) __PYX_ERR(0, 2411, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__287); - __Pyx_GIVEREF(__pyx_tuple__287); - - /* "talib/func.pyx":2417 - * 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__288 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__288)) __PYX_ERR(0, 2417, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__288); - __Pyx_GIVEREF(__pyx_tuple__288); - - /* "talib/func.pyx":2419 - * 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__289 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__289)) __PYX_ERR(0, 2419, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__289); - __Pyx_GIVEREF(__pyx_tuple__289); - - /* "talib/func.pyx":2421 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_tuple__290 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__290)) __PYX_ERR(0, 2421, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__290); - __Pyx_GIVEREF(__pyx_tuple__290); - - /* "talib/func.pyx":2439 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLCOUNTERATTACK_Lookback( ) - */ - __pyx_tuple__291 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__291)) __PYX_ERR(0, 2439, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__291); - __Pyx_GIVEREF(__pyx_tuple__291); - - /* "talib/func.pyx":2478 - * int* outinteger_data - * 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__292 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__292)) __PYX_ERR(0, 2478, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__292); - __Pyx_GIVEREF(__pyx_tuple__292); - - /* "talib/func.pyx":2480 - * 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__293 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__293)) __PYX_ERR(0, 2480, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__293); - __Pyx_GIVEREF(__pyx_tuple__293); - - /* "talib/func.pyx":2485 - * open_data = 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__294 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__294)) __PYX_ERR(0, 2485, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__294); - __Pyx_GIVEREF(__pyx_tuple__294); - - /* "talib/func.pyx":2487 - * raise 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__295 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__295)) __PYX_ERR(0, 2487, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__295); - __Pyx_GIVEREF(__pyx_tuple__295); - - /* "talib/func.pyx":2492 - * high_data = 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__296 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__296)) __PYX_ERR(0, 2492, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__296); - __Pyx_GIVEREF(__pyx_tuple__296); - - /* "talib/func.pyx":2494 - * raise 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__297 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__297)) __PYX_ERR(0, 2494, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__297); - __Pyx_GIVEREF(__pyx_tuple__297); - - /* "talib/func.pyx":2499 - * low_data = 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__298 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__298)) __PYX_ERR(0, 2499, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__298); - __Pyx_GIVEREF(__pyx_tuple__298); - - /* "talib/func.pyx":2501 - * raise 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__299 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__299)) __PYX_ERR(0, 2501, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__299); - __Pyx_GIVEREF(__pyx_tuple__299); - - /* "talib/func.pyx":2507 - * 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__300 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__300)) __PYX_ERR(0, 2507, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__300); - __Pyx_GIVEREF(__pyx_tuple__300); - - /* "talib/func.pyx":2509 - * 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__301 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__301)) __PYX_ERR(0, 2509, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__301); - __Pyx_GIVEREF(__pyx_tuple__301); - - /* "talib/func.pyx":2511 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_tuple__302 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__302)) __PYX_ERR(0, 2511, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__302); - __Pyx_GIVEREF(__pyx_tuple__302); - - /* "talib/func.pyx":2529 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLDARKCLOUDCOVER_Lookback( penetration ) - */ - __pyx_tuple__303 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__303)) __PYX_ERR(0, 2529, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__303); - __Pyx_GIVEREF(__pyx_tuple__303); - - /* "talib/func.pyx":2566 - * int* outinteger_data - * 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__304 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__304)) __PYX_ERR(0, 2566, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__304); - __Pyx_GIVEREF(__pyx_tuple__304); - - /* "talib/func.pyx":2568 - * 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__305 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__305)) __PYX_ERR(0, 2568, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__305); - __Pyx_GIVEREF(__pyx_tuple__305); - - /* "talib/func.pyx":2573 - * open_data = 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__306 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__306)) __PYX_ERR(0, 2573, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__306); - __Pyx_GIVEREF(__pyx_tuple__306); - - /* "talib/func.pyx":2575 - * raise 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__307 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__307)) __PYX_ERR(0, 2575, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__307); - __Pyx_GIVEREF(__pyx_tuple__307); - - /* "talib/func.pyx":2580 - * high_data = 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__308 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__308)) __PYX_ERR(0, 2580, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__308); - __Pyx_GIVEREF(__pyx_tuple__308); - - /* "talib/func.pyx":2582 - * raise 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__309 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__309)) __PYX_ERR(0, 2582, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__309); - __Pyx_GIVEREF(__pyx_tuple__309); - - /* "talib/func.pyx":2587 - * low_data = 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__310 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__310)) __PYX_ERR(0, 2587, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__310); - __Pyx_GIVEREF(__pyx_tuple__310); - - /* "talib/func.pyx":2589 - * raise 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__311 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__311)) __PYX_ERR(0, 2589, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__311); - __Pyx_GIVEREF(__pyx_tuple__311); - - /* "talib/func.pyx":2595 - * 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__312 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__312)) __PYX_ERR(0, 2595, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__312); - __Pyx_GIVEREF(__pyx_tuple__312); - - /* "talib/func.pyx":2597 - * 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__313 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__313)) __PYX_ERR(0, 2597, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__313); - __Pyx_GIVEREF(__pyx_tuple__313); - - /* "talib/func.pyx":2599 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_tuple__314 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__314)) __PYX_ERR(0, 2599, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__314); - __Pyx_GIVEREF(__pyx_tuple__314); - - /* "talib/func.pyx":2617 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLDOJI_Lookback( ) - */ - __pyx_tuple__315 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__315)) __PYX_ERR(0, 2617, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__315); - __Pyx_GIVEREF(__pyx_tuple__315); - - /* "talib/func.pyx":2654 - * int* outinteger_data - * 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, 2654, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__316); - __Pyx_GIVEREF(__pyx_tuple__316); - - /* "talib/func.pyx":2656 - * 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, 2656, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__317); - __Pyx_GIVEREF(__pyx_tuple__317); - - /* "talib/func.pyx":2661 - * open_data = 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, 2661, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__318); - __Pyx_GIVEREF(__pyx_tuple__318); - - /* "talib/func.pyx":2663 - * raise 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, 2663, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__319); - __Pyx_GIVEREF(__pyx_tuple__319); - - /* "talib/func.pyx":2668 - * high_data = 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, 2668, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__320); - __Pyx_GIVEREF(__pyx_tuple__320); - - /* "talib/func.pyx":2670 - * raise 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, 2670, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__321); - __Pyx_GIVEREF(__pyx_tuple__321); - - /* "talib/func.pyx":2675 - * low_data = 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, 2675, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__322); - __Pyx_GIVEREF(__pyx_tuple__322); - - /* "talib/func.pyx":2677 - * raise 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, 2677, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__323); - __Pyx_GIVEREF(__pyx_tuple__323); - - /* "talib/func.pyx":2683 - * 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, 2683, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__324); - __Pyx_GIVEREF(__pyx_tuple__324); - - /* "talib/func.pyx":2685 - * 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, 2685, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__325); - __Pyx_GIVEREF(__pyx_tuple__325); - - /* "talib/func.pyx":2687 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_tuple__326 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__326)) __PYX_ERR(0, 2687, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__326); - __Pyx_GIVEREF(__pyx_tuple__326); - - /* "talib/func.pyx":2705 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLDOJISTAR_Lookback( ) - */ - __pyx_tuple__327 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__327)) __PYX_ERR(0, 2705, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__327); - __Pyx_GIVEREF(__pyx_tuple__327); - - /* "talib/func.pyx":2742 - * int* outinteger_data - * 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__328 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__328)) __PYX_ERR(0, 2742, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__328); - __Pyx_GIVEREF(__pyx_tuple__328); - - /* "talib/func.pyx":2744 - * 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__329 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__329)) __PYX_ERR(0, 2744, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__329); - __Pyx_GIVEREF(__pyx_tuple__329); - - /* "talib/func.pyx":2749 - * open_data = 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__330 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__330)) __PYX_ERR(0, 2749, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__330); - __Pyx_GIVEREF(__pyx_tuple__330); - - /* "talib/func.pyx":2751 - * raise 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__331 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__331)) __PYX_ERR(0, 2751, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__331); - __Pyx_GIVEREF(__pyx_tuple__331); - - /* "talib/func.pyx":2756 - * high_data = 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__332 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__332)) __PYX_ERR(0, 2756, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__332); - __Pyx_GIVEREF(__pyx_tuple__332); - - /* "talib/func.pyx":2758 - * raise 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__333 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__333)) __PYX_ERR(0, 2758, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__333); - __Pyx_GIVEREF(__pyx_tuple__333); - - /* "talib/func.pyx":2763 - * low_data = 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__334 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__334)) __PYX_ERR(0, 2763, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__334); - __Pyx_GIVEREF(__pyx_tuple__334); - - /* "talib/func.pyx":2765 - * raise 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__335 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__335)) __PYX_ERR(0, 2765, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__335); - __Pyx_GIVEREF(__pyx_tuple__335); - - /* "talib/func.pyx":2771 - * 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__336 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__336)) __PYX_ERR(0, 2771, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__336); - __Pyx_GIVEREF(__pyx_tuple__336); - - /* "talib/func.pyx":2773 - * 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__337 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__337)) __PYX_ERR(0, 2773, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__337); - __Pyx_GIVEREF(__pyx_tuple__337); - - /* "talib/func.pyx":2775 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_tuple__338 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__338)) __PYX_ERR(0, 2775, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__338); - __Pyx_GIVEREF(__pyx_tuple__338); - - /* "talib/func.pyx":2793 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLDRAGONFLYDOJI_Lookback( ) - */ - __pyx_tuple__339 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__339)) __PYX_ERR(0, 2793, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__339); - __Pyx_GIVEREF(__pyx_tuple__339); - - /* "talib/func.pyx":2830 - * int* outinteger_data - * 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__340 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__340)) __PYX_ERR(0, 2830, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__340); - __Pyx_GIVEREF(__pyx_tuple__340); - - /* "talib/func.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__341 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__341)) __PYX_ERR(0, 2832, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__341); - __Pyx_GIVEREF(__pyx_tuple__341); - - /* "talib/func.pyx":2837 - * open_data = 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__342 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__342)) __PYX_ERR(0, 2837, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__342); - __Pyx_GIVEREF(__pyx_tuple__342); - - /* "talib/func.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__343 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__343)) __PYX_ERR(0, 2839, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__343); - __Pyx_GIVEREF(__pyx_tuple__343); - - /* "talib/func.pyx":2844 - * high_data = 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__344 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__344)) __PYX_ERR(0, 2844, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__344); - __Pyx_GIVEREF(__pyx_tuple__344); - - /* "talib/func.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__345 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__345)) __PYX_ERR(0, 2846, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__345); - __Pyx_GIVEREF(__pyx_tuple__345); - - /* "talib/func.pyx":2851 - * low_data = 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__346 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__346)) __PYX_ERR(0, 2851, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__346); - __Pyx_GIVEREF(__pyx_tuple__346); - - /* "talib/func.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__347 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__347)) __PYX_ERR(0, 2853, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__347); - __Pyx_GIVEREF(__pyx_tuple__347); - - /* "talib/func.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__348 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__348)) __PYX_ERR(0, 2859, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__348); - __Pyx_GIVEREF(__pyx_tuple__348); - - /* "talib/func.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__349 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__349)) __PYX_ERR(0, 2861, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__349); - __Pyx_GIVEREF(__pyx_tuple__349); - - /* "talib/func.pyx":2863 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_tuple__350 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__350)) __PYX_ERR(0, 2863, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__350); - __Pyx_GIVEREF(__pyx_tuple__350); - - /* "talib/func.pyx":2881 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLENGULFING_Lookback( ) - */ - __pyx_tuple__351 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__351)) __PYX_ERR(0, 2881, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__351); - __Pyx_GIVEREF(__pyx_tuple__351); - - /* "talib/func.pyx":2920 - * int* outinteger_data - * 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__352 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__352)) __PYX_ERR(0, 2920, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__352); - __Pyx_GIVEREF(__pyx_tuple__352); - - /* "talib/func.pyx":2922 - * 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__353 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__353)) __PYX_ERR(0, 2922, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__353); - __Pyx_GIVEREF(__pyx_tuple__353); - - /* "talib/func.pyx":2927 - * open_data = 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__354 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__354)) __PYX_ERR(0, 2927, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__354); - __Pyx_GIVEREF(__pyx_tuple__354); - - /* "talib/func.pyx":2929 - * raise 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__355 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__355)) __PYX_ERR(0, 2929, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__355); - __Pyx_GIVEREF(__pyx_tuple__355); - - /* "talib/func.pyx":2934 - * high_data = 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__356 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__356)) __PYX_ERR(0, 2934, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__356); - __Pyx_GIVEREF(__pyx_tuple__356); - - /* "talib/func.pyx":2936 - * raise 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__357 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__357)) __PYX_ERR(0, 2936, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__357); - __Pyx_GIVEREF(__pyx_tuple__357); - - /* "talib/func.pyx":2941 - * low_data = 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__358 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__358)) __PYX_ERR(0, 2941, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__358); - __Pyx_GIVEREF(__pyx_tuple__358); - - /* "talib/func.pyx":2943 - * raise 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__359 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__359)) __PYX_ERR(0, 2943, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__359); - __Pyx_GIVEREF(__pyx_tuple__359); - - /* "talib/func.pyx":2949 - * 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__360 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__360)) __PYX_ERR(0, 2949, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__360); - __Pyx_GIVEREF(__pyx_tuple__360); - - /* "talib/func.pyx":2951 - * 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__361 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__361)) __PYX_ERR(0, 2951, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__361); - __Pyx_GIVEREF(__pyx_tuple__361); - - /* "talib/func.pyx":2953 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_tuple__362 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__362)) __PYX_ERR(0, 2953, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__362); - __Pyx_GIVEREF(__pyx_tuple__362); - - /* "talib/func.pyx":2971 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLEVENINGDOJISTAR_Lookback( penetration ) - */ - __pyx_tuple__363 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__363)) __PYX_ERR(0, 2971, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__363); - __Pyx_GIVEREF(__pyx_tuple__363); - - /* "talib/func.pyx":3010 - * int* outinteger_data - * 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__364 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__364)) __PYX_ERR(0, 3010, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__364); - __Pyx_GIVEREF(__pyx_tuple__364); - - /* "talib/func.pyx":3012 - * 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__365 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__365)) __PYX_ERR(0, 3012, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__365); - __Pyx_GIVEREF(__pyx_tuple__365); - - /* "talib/func.pyx":3017 - * open_data = 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__366 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__366)) __PYX_ERR(0, 3017, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__366); - __Pyx_GIVEREF(__pyx_tuple__366); - - /* "talib/func.pyx":3019 - * raise 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__367 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__367)) __PYX_ERR(0, 3019, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__367); - __Pyx_GIVEREF(__pyx_tuple__367); - - /* "talib/func.pyx":3024 - * high_data = 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__368 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__368)) __PYX_ERR(0, 3024, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__368); - __Pyx_GIVEREF(__pyx_tuple__368); - - /* "talib/func.pyx":3026 - * raise 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__369 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__369)) __PYX_ERR(0, 3026, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__369); - __Pyx_GIVEREF(__pyx_tuple__369); - - /* "talib/func.pyx":3031 - * low_data = 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__370 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__370)) __PYX_ERR(0, 3031, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__370); - __Pyx_GIVEREF(__pyx_tuple__370); - - /* "talib/func.pyx":3033 - * raise 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__371 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__371)) __PYX_ERR(0, 3033, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__371); - __Pyx_GIVEREF(__pyx_tuple__371); - - /* "talib/func.pyx":3039 - * 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__372 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__372)) __PYX_ERR(0, 3039, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__372); - __Pyx_GIVEREF(__pyx_tuple__372); - - /* "talib/func.pyx":3041 - * 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__373 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__373)) __PYX_ERR(0, 3041, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__373); - __Pyx_GIVEREF(__pyx_tuple__373); - - /* "talib/func.pyx":3043 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_tuple__374 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__374)) __PYX_ERR(0, 3043, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__374); - __Pyx_GIVEREF(__pyx_tuple__374); - - /* "talib/func.pyx":3061 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLEVENINGSTAR_Lookback( penetration ) - */ - __pyx_tuple__375 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__375)) __PYX_ERR(0, 3061, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__375); - __Pyx_GIVEREF(__pyx_tuple__375); - - /* "talib/func.pyx":3098 - * int* outinteger_data - * 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__376 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__376)) __PYX_ERR(0, 3098, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__376); - __Pyx_GIVEREF(__pyx_tuple__376); - - /* "talib/func.pyx":3100 - * 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__377 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__377)) __PYX_ERR(0, 3100, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__377); - __Pyx_GIVEREF(__pyx_tuple__377); - - /* "talib/func.pyx":3105 - * open_data = 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__378 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__378)) __PYX_ERR(0, 3105, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__378); - __Pyx_GIVEREF(__pyx_tuple__378); - - /* "talib/func.pyx":3107 - * raise 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__379 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__379)) __PYX_ERR(0, 3107, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__379); - __Pyx_GIVEREF(__pyx_tuple__379); - - /* "talib/func.pyx":3112 - * high_data = 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__380 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__380)) __PYX_ERR(0, 3112, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__380); - __Pyx_GIVEREF(__pyx_tuple__380); - - /* "talib/func.pyx":3114 - * raise 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__381 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__381)) __PYX_ERR(0, 3114, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__381); - __Pyx_GIVEREF(__pyx_tuple__381); - - /* "talib/func.pyx":3119 - * low_data = 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__382 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__382)) __PYX_ERR(0, 3119, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__382); - __Pyx_GIVEREF(__pyx_tuple__382); - - /* "talib/func.pyx":3121 - * raise 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__383 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__383)) __PYX_ERR(0, 3121, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__383); - __Pyx_GIVEREF(__pyx_tuple__383); - - /* "talib/func.pyx":3127 - * 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__384 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__384)) __PYX_ERR(0, 3127, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__384); - __Pyx_GIVEREF(__pyx_tuple__384); - - /* "talib/func.pyx":3129 - * 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__385 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__385)) __PYX_ERR(0, 3129, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__385); - __Pyx_GIVEREF(__pyx_tuple__385); - - /* "talib/func.pyx":3131 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_tuple__386 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__386)) __PYX_ERR(0, 3131, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__386); - __Pyx_GIVEREF(__pyx_tuple__386); - - /* "talib/func.pyx":3149 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLGAPSIDESIDEWHITE_Lookback( ) - */ - __pyx_tuple__387 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__387)) __PYX_ERR(0, 3149, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__387); - __Pyx_GIVEREF(__pyx_tuple__387); - - /* "talib/func.pyx":3186 - * int* outinteger_data - * 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__388 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__388)) __PYX_ERR(0, 3186, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__388); - __Pyx_GIVEREF(__pyx_tuple__388); - - /* "talib/func.pyx":3188 - * 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__389 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__389)) __PYX_ERR(0, 3188, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__389); - __Pyx_GIVEREF(__pyx_tuple__389); - - /* "talib/func.pyx":3193 - * open_data = 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__390 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__390)) __PYX_ERR(0, 3193, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__390); - __Pyx_GIVEREF(__pyx_tuple__390); - - /* "talib/func.pyx":3195 - * raise 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__391 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__391)) __PYX_ERR(0, 3195, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__391); - __Pyx_GIVEREF(__pyx_tuple__391); - - /* "talib/func.pyx":3200 - * high_data = 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__392 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__392)) __PYX_ERR(0, 3200, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__392); - __Pyx_GIVEREF(__pyx_tuple__392); - - /* "talib/func.pyx":3202 - * raise 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__393 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__393)) __PYX_ERR(0, 3202, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__393); - __Pyx_GIVEREF(__pyx_tuple__393); - - /* "talib/func.pyx":3207 - * low_data = 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__394 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__394)) __PYX_ERR(0, 3207, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__394); - __Pyx_GIVEREF(__pyx_tuple__394); - - /* "talib/func.pyx":3209 - * raise 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__395 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__395)) __PYX_ERR(0, 3209, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__395); - __Pyx_GIVEREF(__pyx_tuple__395); - - /* "talib/func.pyx":3215 - * 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__396 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__396)) __PYX_ERR(0, 3215, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__396); - __Pyx_GIVEREF(__pyx_tuple__396); - - /* "talib/func.pyx":3217 - * 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__397 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__397)) __PYX_ERR(0, 3217, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__397); - __Pyx_GIVEREF(__pyx_tuple__397); - - /* "talib/func.pyx":3219 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_tuple__398 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__398)) __PYX_ERR(0, 3219, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__398); - __Pyx_GIVEREF(__pyx_tuple__398); - - /* "talib/func.pyx":3237 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLGRAVESTONEDOJI_Lookback( ) - */ - __pyx_tuple__399 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__399)) __PYX_ERR(0, 3237, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__399); - __Pyx_GIVEREF(__pyx_tuple__399); - - /* "talib/func.pyx":3274 - * int* outinteger_data - * 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__400 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__400)) __PYX_ERR(0, 3274, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__400); - __Pyx_GIVEREF(__pyx_tuple__400); - - /* "talib/func.pyx":3276 - * 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__401 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__401)) __PYX_ERR(0, 3276, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__401); - __Pyx_GIVEREF(__pyx_tuple__401); - - /* "talib/func.pyx":3281 - * open_data = 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__402 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__402)) __PYX_ERR(0, 3281, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__402); - __Pyx_GIVEREF(__pyx_tuple__402); - - /* "talib/func.pyx":3283 - * raise 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__403 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__403)) __PYX_ERR(0, 3283, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__403); - __Pyx_GIVEREF(__pyx_tuple__403); - - /* "talib/func.pyx":3288 - * high_data = 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__404 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__404)) __PYX_ERR(0, 3288, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__404); - __Pyx_GIVEREF(__pyx_tuple__404); - - /* "talib/func.pyx":3290 - * raise 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__405 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__405)) __PYX_ERR(0, 3290, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__405); - __Pyx_GIVEREF(__pyx_tuple__405); - - /* "talib/func.pyx":3295 - * low_data = 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__406 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__406)) __PYX_ERR(0, 3295, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__406); - __Pyx_GIVEREF(__pyx_tuple__406); - - /* "talib/func.pyx":3297 - * raise 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__407 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__407)) __PYX_ERR(0, 3297, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__407); - __Pyx_GIVEREF(__pyx_tuple__407); - - /* "talib/func.pyx":3303 - * 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__408 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__408)) __PYX_ERR(0, 3303, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__408); - __Pyx_GIVEREF(__pyx_tuple__408); - - /* "talib/func.pyx":3305 - * 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__409 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__409)) __PYX_ERR(0, 3305, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__409); - __Pyx_GIVEREF(__pyx_tuple__409); - - /* "talib/func.pyx":3307 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_tuple__410 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__410)) __PYX_ERR(0, 3307, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__410); - __Pyx_GIVEREF(__pyx_tuple__410); - - /* "talib/func.pyx":3325 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLHAMMER_Lookback( ) - */ - __pyx_tuple__411 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__411)) __PYX_ERR(0, 3325, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__411); - __Pyx_GIVEREF(__pyx_tuple__411); - - /* "talib/func.pyx":3362 - * int* outinteger_data - * 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__412 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__412)) __PYX_ERR(0, 3362, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__412); - __Pyx_GIVEREF(__pyx_tuple__412); - - /* "talib/func.pyx":3364 - * 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__413 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__413)) __PYX_ERR(0, 3364, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__413); - __Pyx_GIVEREF(__pyx_tuple__413); - - /* "talib/func.pyx":3369 - * open_data = 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__414 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__414)) __PYX_ERR(0, 3369, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__414); - __Pyx_GIVEREF(__pyx_tuple__414); - - /* "talib/func.pyx":3371 - * raise 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__415 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__415)) __PYX_ERR(0, 3371, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__415); - __Pyx_GIVEREF(__pyx_tuple__415); - - /* "talib/func.pyx":3376 - * high_data = 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__416 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__416)) __PYX_ERR(0, 3376, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__416); - __Pyx_GIVEREF(__pyx_tuple__416); - - /* "talib/func.pyx":3378 - * raise 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__417 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__417)) __PYX_ERR(0, 3378, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__417); - __Pyx_GIVEREF(__pyx_tuple__417); - - /* "talib/func.pyx":3383 - * low_data = 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__418 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__418)) __PYX_ERR(0, 3383, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__418); - __Pyx_GIVEREF(__pyx_tuple__418); - - /* "talib/func.pyx":3385 - * raise 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__419 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__419)) __PYX_ERR(0, 3385, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__419); - __Pyx_GIVEREF(__pyx_tuple__419); - - /* "talib/func.pyx":3391 - * 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__420 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__420)) __PYX_ERR(0, 3391, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__420); - __Pyx_GIVEREF(__pyx_tuple__420); - - /* "talib/func.pyx":3393 - * 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__421 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__421)) __PYX_ERR(0, 3393, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__421); - __Pyx_GIVEREF(__pyx_tuple__421); - - /* "talib/func.pyx":3395 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_tuple__422 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__422)) __PYX_ERR(0, 3395, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__422); - __Pyx_GIVEREF(__pyx_tuple__422); - - /* "talib/func.pyx":3413 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLHANGINGMAN_Lookback( ) - */ - __pyx_tuple__423 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__423)) __PYX_ERR(0, 3413, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__423); - __Pyx_GIVEREF(__pyx_tuple__423); - - /* "talib/func.pyx":3450 - * int* outinteger_data - * 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__424 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__424)) __PYX_ERR(0, 3450, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__424); - __Pyx_GIVEREF(__pyx_tuple__424); - - /* "talib/func.pyx":3452 - * 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__425 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__425)) __PYX_ERR(0, 3452, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__425); - __Pyx_GIVEREF(__pyx_tuple__425); - - /* "talib/func.pyx":3457 - * open_data = 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__426 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__426)) __PYX_ERR(0, 3457, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__426); - __Pyx_GIVEREF(__pyx_tuple__426); - - /* "talib/func.pyx":3459 - * raise 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__427 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__427)) __PYX_ERR(0, 3459, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__427); - __Pyx_GIVEREF(__pyx_tuple__427); - - /* "talib/func.pyx":3464 - * high_data = 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__428 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__428)) __PYX_ERR(0, 3464, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__428); - __Pyx_GIVEREF(__pyx_tuple__428); - - /* "talib/func.pyx":3466 - * raise 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__429 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__429)) __PYX_ERR(0, 3466, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__429); - __Pyx_GIVEREF(__pyx_tuple__429); - - /* "talib/func.pyx":3471 - * low_data = 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__430 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__430)) __PYX_ERR(0, 3471, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__430); - __Pyx_GIVEREF(__pyx_tuple__430); - - /* "talib/func.pyx":3473 - * raise 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__431 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__431)) __PYX_ERR(0, 3473, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__431); - __Pyx_GIVEREF(__pyx_tuple__431); - - /* "talib/func.pyx":3479 - * 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__432 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__432)) __PYX_ERR(0, 3479, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__432); - __Pyx_GIVEREF(__pyx_tuple__432); - - /* "talib/func.pyx":3481 - * 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__433 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__433)) __PYX_ERR(0, 3481, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__433); - __Pyx_GIVEREF(__pyx_tuple__433); - - /* "talib/func.pyx":3483 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_tuple__434 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__434)) __PYX_ERR(0, 3483, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__434); - __Pyx_GIVEREF(__pyx_tuple__434); - - /* "talib/func.pyx":3501 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLHARAMI_Lookback( ) - */ - __pyx_tuple__435 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__435)) __PYX_ERR(0, 3501, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__435); - __Pyx_GIVEREF(__pyx_tuple__435); - - /* "talib/func.pyx":3538 - * int* outinteger_data - * 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__436 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__436)) __PYX_ERR(0, 3538, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__436); - __Pyx_GIVEREF(__pyx_tuple__436); - - /* "talib/func.pyx":3540 - * 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__437 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__437)) __PYX_ERR(0, 3540, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__437); - __Pyx_GIVEREF(__pyx_tuple__437); - - /* "talib/func.pyx":3545 - * open_data = 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__438 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__438)) __PYX_ERR(0, 3545, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__438); - __Pyx_GIVEREF(__pyx_tuple__438); - - /* "talib/func.pyx":3547 - * raise 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__439 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__439)) __PYX_ERR(0, 3547, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__439); - __Pyx_GIVEREF(__pyx_tuple__439); - - /* "talib/func.pyx":3552 - * high_data = 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__440 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__440)) __PYX_ERR(0, 3552, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__440); - __Pyx_GIVEREF(__pyx_tuple__440); - - /* "talib/func.pyx":3554 - * raise 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__441 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__441)) __PYX_ERR(0, 3554, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__441); - __Pyx_GIVEREF(__pyx_tuple__441); - - /* "talib/func.pyx":3559 - * low_data = 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__442 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__442)) __PYX_ERR(0, 3559, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__442); - __Pyx_GIVEREF(__pyx_tuple__442); - - /* "talib/func.pyx":3561 - * raise 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__443 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__443)) __PYX_ERR(0, 3561, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__443); - __Pyx_GIVEREF(__pyx_tuple__443); - - /* "talib/func.pyx":3567 - * 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__444 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__444)) __PYX_ERR(0, 3567, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__444); - __Pyx_GIVEREF(__pyx_tuple__444); - - /* "talib/func.pyx":3569 - * 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__445 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__445)) __PYX_ERR(0, 3569, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__445); - __Pyx_GIVEREF(__pyx_tuple__445); - - /* "talib/func.pyx":3571 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_tuple__446 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__446)) __PYX_ERR(0, 3571, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__446); - __Pyx_GIVEREF(__pyx_tuple__446); - - /* "talib/func.pyx":3589 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLHARAMICROSS_Lookback( ) - */ - __pyx_tuple__447 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__447)) __PYX_ERR(0, 3589, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__447); - __Pyx_GIVEREF(__pyx_tuple__447); - - /* "talib/func.pyx":3626 - * int* outinteger_data - * 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, 3626, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__448); - __Pyx_GIVEREF(__pyx_tuple__448); - - /* "talib/func.pyx":3628 - * 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, 3628, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__449); - __Pyx_GIVEREF(__pyx_tuple__449); - - /* "talib/func.pyx":3633 - * open_data = 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, 3633, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__450); - __Pyx_GIVEREF(__pyx_tuple__450); - - /* "talib/func.pyx":3635 - * raise 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, 3635, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__451); - __Pyx_GIVEREF(__pyx_tuple__451); - - /* "talib/func.pyx":3640 - * high_data = 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, 3640, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__452); - __Pyx_GIVEREF(__pyx_tuple__452); - - /* "talib/func.pyx":3642 - * raise 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, 3642, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__453); - __Pyx_GIVEREF(__pyx_tuple__453); - - /* "talib/func.pyx":3647 - * low_data = 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, 3647, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__454); - __Pyx_GIVEREF(__pyx_tuple__454); - - /* "talib/func.pyx":3649 - * raise 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, 3649, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__455); - __Pyx_GIVEREF(__pyx_tuple__455); - - /* "talib/func.pyx":3655 - * 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, 3655, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__456); - __Pyx_GIVEREF(__pyx_tuple__456); - - /* "talib/func.pyx":3657 - * 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, 3657, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__457); - __Pyx_GIVEREF(__pyx_tuple__457); - - /* "talib/func.pyx":3659 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_tuple__458 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__458)) __PYX_ERR(0, 3659, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__458); - __Pyx_GIVEREF(__pyx_tuple__458); - - /* "talib/func.pyx":3677 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLHIGHWAVE_Lookback( ) - */ - __pyx_tuple__459 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__459)) __PYX_ERR(0, 3677, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__459); - __Pyx_GIVEREF(__pyx_tuple__459); - - /* "talib/func.pyx":3714 - * int* outinteger_data - * 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__460 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__460)) __PYX_ERR(0, 3714, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__460); - __Pyx_GIVEREF(__pyx_tuple__460); - - /* "talib/func.pyx":3716 - * 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__461 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__461)) __PYX_ERR(0, 3716, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__461); - __Pyx_GIVEREF(__pyx_tuple__461); - - /* "talib/func.pyx":3721 - * open_data = 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__462 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__462)) __PYX_ERR(0, 3721, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__462); - __Pyx_GIVEREF(__pyx_tuple__462); - - /* "talib/func.pyx":3723 - * raise 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__463 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__463)) __PYX_ERR(0, 3723, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__463); - __Pyx_GIVEREF(__pyx_tuple__463); - - /* "talib/func.pyx":3728 - * high_data = 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__464 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__464)) __PYX_ERR(0, 3728, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__464); - __Pyx_GIVEREF(__pyx_tuple__464); - - /* "talib/func.pyx":3730 - * raise 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__465 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__465)) __PYX_ERR(0, 3730, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__465); - __Pyx_GIVEREF(__pyx_tuple__465); - - /* "talib/func.pyx":3735 - * low_data = 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__466 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__466)) __PYX_ERR(0, 3735, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__466); - __Pyx_GIVEREF(__pyx_tuple__466); - - /* "talib/func.pyx":3737 - * raise 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__467 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__467)) __PYX_ERR(0, 3737, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__467); - __Pyx_GIVEREF(__pyx_tuple__467); - - /* "talib/func.pyx":3743 - * 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__468 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__468)) __PYX_ERR(0, 3743, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__468); - __Pyx_GIVEREF(__pyx_tuple__468); - - /* "talib/func.pyx":3745 - * 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__469 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__469)) __PYX_ERR(0, 3745, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__469); - __Pyx_GIVEREF(__pyx_tuple__469); - - /* "talib/func.pyx":3747 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_tuple__470 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__470)) __PYX_ERR(0, 3747, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__470); - __Pyx_GIVEREF(__pyx_tuple__470); - - /* "talib/func.pyx":3765 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLHIKKAKE_Lookback( ) - */ - __pyx_tuple__471 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__471)) __PYX_ERR(0, 3765, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__471); - __Pyx_GIVEREF(__pyx_tuple__471); - - /* "talib/func.pyx":3802 - * int* outinteger_data - * 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__472 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__472)) __PYX_ERR(0, 3802, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__472); - __Pyx_GIVEREF(__pyx_tuple__472); - - /* "talib/func.pyx":3804 - * 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__473 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__473)) __PYX_ERR(0, 3804, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__473); - __Pyx_GIVEREF(__pyx_tuple__473); - - /* "talib/func.pyx":3809 - * open_data = 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__474 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__474)) __PYX_ERR(0, 3809, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__474); - __Pyx_GIVEREF(__pyx_tuple__474); - - /* "talib/func.pyx":3811 - * raise 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__475 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__475)) __PYX_ERR(0, 3811, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__475); - __Pyx_GIVEREF(__pyx_tuple__475); - - /* "talib/func.pyx":3816 - * high_data = 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__476 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__476)) __PYX_ERR(0, 3816, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__476); - __Pyx_GIVEREF(__pyx_tuple__476); - - /* "talib/func.pyx":3818 - * raise 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__477 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__477)) __PYX_ERR(0, 3818, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__477); - __Pyx_GIVEREF(__pyx_tuple__477); - - /* "talib/func.pyx":3823 - * low_data = 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__478 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__478)) __PYX_ERR(0, 3823, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__478); - __Pyx_GIVEREF(__pyx_tuple__478); - - /* "talib/func.pyx":3825 - * raise 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__479 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__479)) __PYX_ERR(0, 3825, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__479); - __Pyx_GIVEREF(__pyx_tuple__479); - - /* "talib/func.pyx":3831 - * 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__480 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__480)) __PYX_ERR(0, 3831, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__480); - __Pyx_GIVEREF(__pyx_tuple__480); - - /* "talib/func.pyx":3833 - * 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__481 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__481)) __PYX_ERR(0, 3833, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__481); - __Pyx_GIVEREF(__pyx_tuple__481); - - /* "talib/func.pyx":3835 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_tuple__482 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__482)) __PYX_ERR(0, 3835, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__482); - __Pyx_GIVEREF(__pyx_tuple__482); - - /* "talib/func.pyx":3853 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLHIKKAKEMOD_Lookback( ) - */ - __pyx_tuple__483 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__483)) __PYX_ERR(0, 3853, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__483); - __Pyx_GIVEREF(__pyx_tuple__483); - - /* "talib/func.pyx":3890 - * int* outinteger_data - * 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__484 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__484)) __PYX_ERR(0, 3890, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__484); - __Pyx_GIVEREF(__pyx_tuple__484); - - /* "talib/func.pyx":3892 - * 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__485 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__485)) __PYX_ERR(0, 3892, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__485); - __Pyx_GIVEREF(__pyx_tuple__485); - - /* "talib/func.pyx":3897 - * open_data = 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__486 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__486)) __PYX_ERR(0, 3897, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__486); - __Pyx_GIVEREF(__pyx_tuple__486); - - /* "talib/func.pyx":3899 - * raise 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__487 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__487)) __PYX_ERR(0, 3899, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__487); - __Pyx_GIVEREF(__pyx_tuple__487); - - /* "talib/func.pyx":3904 - * high_data = 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__488 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__488)) __PYX_ERR(0, 3904, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__488); - __Pyx_GIVEREF(__pyx_tuple__488); - - /* "talib/func.pyx":3906 - * raise 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__489 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__489)) __PYX_ERR(0, 3906, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__489); - __Pyx_GIVEREF(__pyx_tuple__489); - - /* "talib/func.pyx":3911 - * low_data = 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__490 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__490)) __PYX_ERR(0, 3911, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__490); - __Pyx_GIVEREF(__pyx_tuple__490); - - /* "talib/func.pyx":3913 - * raise 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__491 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__491)) __PYX_ERR(0, 3913, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__491); - __Pyx_GIVEREF(__pyx_tuple__491); - - /* "talib/func.pyx":3919 - * 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__492 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__492)) __PYX_ERR(0, 3919, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__492); - __Pyx_GIVEREF(__pyx_tuple__492); - - /* "talib/func.pyx":3921 - * 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__493 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__493)) __PYX_ERR(0, 3921, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__493); - __Pyx_GIVEREF(__pyx_tuple__493); - - /* "talib/func.pyx":3923 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_tuple__494 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__494)) __PYX_ERR(0, 3923, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__494); - __Pyx_GIVEREF(__pyx_tuple__494); - - /* "talib/func.pyx":3941 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLHOMINGPIGEON_Lookback( ) - */ - __pyx_tuple__495 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__495)) __PYX_ERR(0, 3941, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__495); - __Pyx_GIVEREF(__pyx_tuple__495); - - /* "talib/func.pyx":3978 - * int* outinteger_data - * 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__496 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__496)) __PYX_ERR(0, 3978, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__496); - __Pyx_GIVEREF(__pyx_tuple__496); - - /* "talib/func.pyx":3980 - * 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__497 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__497)) __PYX_ERR(0, 3980, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__497); - __Pyx_GIVEREF(__pyx_tuple__497); - - /* "talib/func.pyx":3985 - * open_data = 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__498 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__498)) __PYX_ERR(0, 3985, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__498); - __Pyx_GIVEREF(__pyx_tuple__498); - - /* "talib/func.pyx":3987 - * raise 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__499 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__499)) __PYX_ERR(0, 3987, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__499); - __Pyx_GIVEREF(__pyx_tuple__499); - - /* "talib/func.pyx":3992 - * high_data = 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__500 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__500)) __PYX_ERR(0, 3992, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__500); - __Pyx_GIVEREF(__pyx_tuple__500); - - /* "talib/func.pyx":3994 - * raise 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__501 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__501)) __PYX_ERR(0, 3994, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__501); - __Pyx_GIVEREF(__pyx_tuple__501); - - /* "talib/func.pyx":3999 - * low_data = 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__502 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__502)) __PYX_ERR(0, 3999, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__502); - __Pyx_GIVEREF(__pyx_tuple__502); - - /* "talib/func.pyx":4001 - * raise 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__503 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__503)) __PYX_ERR(0, 4001, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__503); - __Pyx_GIVEREF(__pyx_tuple__503); - - /* "talib/func.pyx":4007 - * 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__504 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__504)) __PYX_ERR(0, 4007, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__504); - __Pyx_GIVEREF(__pyx_tuple__504); - - /* "talib/func.pyx":4009 - * 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__505 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__505)) __PYX_ERR(0, 4009, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__505); - __Pyx_GIVEREF(__pyx_tuple__505); - - /* "talib/func.pyx":4011 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_tuple__506 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__506)) __PYX_ERR(0, 4011, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__506); - __Pyx_GIVEREF(__pyx_tuple__506); - - /* "talib/func.pyx":4029 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLIDENTICAL3CROWS_Lookback( ) - */ - __pyx_tuple__507 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__507)) __PYX_ERR(0, 4029, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__507); - __Pyx_GIVEREF(__pyx_tuple__507); - - /* "talib/func.pyx":4066 - * int* outinteger_data - * 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__508 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__508)) __PYX_ERR(0, 4066, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__508); - __Pyx_GIVEREF(__pyx_tuple__508); - - /* "talib/func.pyx":4068 - * 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__509 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__509)) __PYX_ERR(0, 4068, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__509); - __Pyx_GIVEREF(__pyx_tuple__509); - - /* "talib/func.pyx":4073 - * open_data = 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__510 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__510)) __PYX_ERR(0, 4073, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__510); - __Pyx_GIVEREF(__pyx_tuple__510); - - /* "talib/func.pyx":4075 - * raise 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__511 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__511)) __PYX_ERR(0, 4075, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__511); - __Pyx_GIVEREF(__pyx_tuple__511); - - /* "talib/func.pyx":4080 - * high_data = 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__512 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__512)) __PYX_ERR(0, 4080, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__512); - __Pyx_GIVEREF(__pyx_tuple__512); - - /* "talib/func.pyx":4082 - * raise 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__513 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__513)) __PYX_ERR(0, 4082, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__513); - __Pyx_GIVEREF(__pyx_tuple__513); - - /* "talib/func.pyx":4087 - * low_data = 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__514 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__514)) __PYX_ERR(0, 4087, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__514); - __Pyx_GIVEREF(__pyx_tuple__514); - - /* "talib/func.pyx":4089 - * raise 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__515 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__515)) __PYX_ERR(0, 4089, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__515); - __Pyx_GIVEREF(__pyx_tuple__515); - - /* "talib/func.pyx":4095 - * 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__516 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__516)) __PYX_ERR(0, 4095, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__516); - __Pyx_GIVEREF(__pyx_tuple__516); - - /* "talib/func.pyx":4097 - * 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__517 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__517)) __PYX_ERR(0, 4097, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__517); - __Pyx_GIVEREF(__pyx_tuple__517); - - /* "talib/func.pyx":4099 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_tuple__518 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__518)) __PYX_ERR(0, 4099, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__518); - __Pyx_GIVEREF(__pyx_tuple__518); - - /* "talib/func.pyx":4117 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLINNECK_Lookback( ) - */ - __pyx_tuple__519 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__519)) __PYX_ERR(0, 4117, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__519); - __Pyx_GIVEREF(__pyx_tuple__519); - - /* "talib/func.pyx":4154 - * int* outinteger_data - * 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__520 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__520)) __PYX_ERR(0, 4154, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__520); - __Pyx_GIVEREF(__pyx_tuple__520); - - /* "talib/func.pyx":4156 - * 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__521 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__521)) __PYX_ERR(0, 4156, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__521); - __Pyx_GIVEREF(__pyx_tuple__521); - - /* "talib/func.pyx":4161 - * open_data = 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__522 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__522)) __PYX_ERR(0, 4161, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__522); - __Pyx_GIVEREF(__pyx_tuple__522); - - /* "talib/func.pyx":4163 - * raise 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__523 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__523)) __PYX_ERR(0, 4163, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__523); - __Pyx_GIVEREF(__pyx_tuple__523); - - /* "talib/func.pyx":4168 - * high_data = 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__524 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__524)) __PYX_ERR(0, 4168, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__524); - __Pyx_GIVEREF(__pyx_tuple__524); - - /* "talib/func.pyx":4170 - * raise 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__525 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__525)) __PYX_ERR(0, 4170, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__525); - __Pyx_GIVEREF(__pyx_tuple__525); - - /* "talib/func.pyx":4175 - * low_data = 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__526 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__526)) __PYX_ERR(0, 4175, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__526); - __Pyx_GIVEREF(__pyx_tuple__526); - - /* "talib/func.pyx":4177 - * raise 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__527 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__527)) __PYX_ERR(0, 4177, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__527); - __Pyx_GIVEREF(__pyx_tuple__527); - - /* "talib/func.pyx":4183 - * 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__528 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__528)) __PYX_ERR(0, 4183, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__528); - __Pyx_GIVEREF(__pyx_tuple__528); - - /* "talib/func.pyx":4185 - * 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__529 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__529)) __PYX_ERR(0, 4185, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__529); - __Pyx_GIVEREF(__pyx_tuple__529); - - /* "talib/func.pyx":4187 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_tuple__530 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__530)) __PYX_ERR(0, 4187, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__530); - __Pyx_GIVEREF(__pyx_tuple__530); - - /* "talib/func.pyx":4205 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLINVERTEDHAMMER_Lookback( ) - */ - __pyx_tuple__531 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__531)) __PYX_ERR(0, 4205, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__531); - __Pyx_GIVEREF(__pyx_tuple__531); - - /* "talib/func.pyx":4242 - * int* outinteger_data - * 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__532 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__532)) __PYX_ERR(0, 4242, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__532); - __Pyx_GIVEREF(__pyx_tuple__532); - - /* "talib/func.pyx":4244 - * 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__533 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__533)) __PYX_ERR(0, 4244, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__533); - __Pyx_GIVEREF(__pyx_tuple__533); - - /* "talib/func.pyx":4249 - * open_data = 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__534 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__534)) __PYX_ERR(0, 4249, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__534); - __Pyx_GIVEREF(__pyx_tuple__534); - - /* "talib/func.pyx":4251 - * raise 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__535 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__535)) __PYX_ERR(0, 4251, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__535); - __Pyx_GIVEREF(__pyx_tuple__535); - - /* "talib/func.pyx":4256 - * high_data = 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__536 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__536)) __PYX_ERR(0, 4256, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__536); - __Pyx_GIVEREF(__pyx_tuple__536); - - /* "talib/func.pyx":4258 - * raise 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__537 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__537)) __PYX_ERR(0, 4258, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__537); - __Pyx_GIVEREF(__pyx_tuple__537); - - /* "talib/func.pyx":4263 - * low_data = 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__538 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__538)) __PYX_ERR(0, 4263, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__538); - __Pyx_GIVEREF(__pyx_tuple__538); - - /* "talib/func.pyx":4265 - * raise 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__539 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__539)) __PYX_ERR(0, 4265, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__539); - __Pyx_GIVEREF(__pyx_tuple__539); - - /* "talib/func.pyx":4271 - * 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__540 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__540)) __PYX_ERR(0, 4271, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__540); - __Pyx_GIVEREF(__pyx_tuple__540); - - /* "talib/func.pyx":4273 - * 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__541 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__541)) __PYX_ERR(0, 4273, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__541); - __Pyx_GIVEREF(__pyx_tuple__541); - - /* "talib/func.pyx":4275 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_tuple__542 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__542)) __PYX_ERR(0, 4275, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__542); - __Pyx_GIVEREF(__pyx_tuple__542); - - /* "talib/func.pyx":4293 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLKICKING_Lookback( ) - */ - __pyx_tuple__543 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__543)) __PYX_ERR(0, 4293, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__543); - __Pyx_GIVEREF(__pyx_tuple__543); - - /* "talib/func.pyx":4330 - * int* outinteger_data - * 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__544 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__544)) __PYX_ERR(0, 4330, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__544); - __Pyx_GIVEREF(__pyx_tuple__544); - - /* "talib/func.pyx":4332 - * 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__545 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__545)) __PYX_ERR(0, 4332, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__545); - __Pyx_GIVEREF(__pyx_tuple__545); - - /* "talib/func.pyx":4337 - * open_data = 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__546 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__546)) __PYX_ERR(0, 4337, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__546); - __Pyx_GIVEREF(__pyx_tuple__546); - - /* "talib/func.pyx":4339 - * raise 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__547 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__547)) __PYX_ERR(0, 4339, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__547); - __Pyx_GIVEREF(__pyx_tuple__547); - - /* "talib/func.pyx":4344 - * high_data = 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__548 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__548)) __PYX_ERR(0, 4344, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__548); - __Pyx_GIVEREF(__pyx_tuple__548); - - /* "talib/func.pyx":4346 - * raise 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__549 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__549)) __PYX_ERR(0, 4346, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__549); - __Pyx_GIVEREF(__pyx_tuple__549); - - /* "talib/func.pyx":4351 - * low_data = 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__550 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__550)) __PYX_ERR(0, 4351, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__550); - __Pyx_GIVEREF(__pyx_tuple__550); - - /* "talib/func.pyx":4353 - * raise 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__551 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__551)) __PYX_ERR(0, 4353, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__551); - __Pyx_GIVEREF(__pyx_tuple__551); - - /* "talib/func.pyx":4359 - * 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__552 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__552)) __PYX_ERR(0, 4359, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__552); - __Pyx_GIVEREF(__pyx_tuple__552); - - /* "talib/func.pyx":4361 - * 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__553 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__553)) __PYX_ERR(0, 4361, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__553); - __Pyx_GIVEREF(__pyx_tuple__553); - - /* "talib/func.pyx":4363 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_tuple__554 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__554)) __PYX_ERR(0, 4363, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__554); - __Pyx_GIVEREF(__pyx_tuple__554); - - /* "talib/func.pyx":4381 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLKICKINGBYLENGTH_Lookback( ) - */ - __pyx_tuple__555 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__555)) __PYX_ERR(0, 4381, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__555); - __Pyx_GIVEREF(__pyx_tuple__555); - - /* "talib/func.pyx":4418 - * int* outinteger_data - * 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__556 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__556)) __PYX_ERR(0, 4418, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__556); - __Pyx_GIVEREF(__pyx_tuple__556); - - /* "talib/func.pyx":4420 - * 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__557 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__557)) __PYX_ERR(0, 4420, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__557); - __Pyx_GIVEREF(__pyx_tuple__557); - - /* "talib/func.pyx":4425 - * open_data = 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__558 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__558)) __PYX_ERR(0, 4425, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__558); - __Pyx_GIVEREF(__pyx_tuple__558); - - /* "talib/func.pyx":4427 - * raise 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__559 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__559)) __PYX_ERR(0, 4427, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__559); - __Pyx_GIVEREF(__pyx_tuple__559); - - /* "talib/func.pyx":4432 - * high_data = 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__560 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__560)) __PYX_ERR(0, 4432, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__560); - __Pyx_GIVEREF(__pyx_tuple__560); - - /* "talib/func.pyx":4434 - * raise 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__561 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__561)) __PYX_ERR(0, 4434, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__561); - __Pyx_GIVEREF(__pyx_tuple__561); - - /* "talib/func.pyx":4439 - * low_data = 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__562 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__562)) __PYX_ERR(0, 4439, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__562); - __Pyx_GIVEREF(__pyx_tuple__562); - - /* "talib/func.pyx":4441 - * raise 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__563 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__563)) __PYX_ERR(0, 4441, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__563); - __Pyx_GIVEREF(__pyx_tuple__563); - - /* "talib/func.pyx":4447 - * 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__564 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__564)) __PYX_ERR(0, 4447, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__564); - __Pyx_GIVEREF(__pyx_tuple__564); - - /* "talib/func.pyx":4449 - * 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__565 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__565)) __PYX_ERR(0, 4449, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__565); - __Pyx_GIVEREF(__pyx_tuple__565); - - /* "talib/func.pyx":4451 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_tuple__566 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__566)) __PYX_ERR(0, 4451, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__566); - __Pyx_GIVEREF(__pyx_tuple__566); - - /* "talib/func.pyx":4469 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLLADDERBOTTOM_Lookback( ) - */ - __pyx_tuple__567 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__567)) __PYX_ERR(0, 4469, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__567); - __Pyx_GIVEREF(__pyx_tuple__567); - - /* "talib/func.pyx":4506 - * int* outinteger_data - * 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__568 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__568)) __PYX_ERR(0, 4506, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__568); - __Pyx_GIVEREF(__pyx_tuple__568); - - /* "talib/func.pyx":4508 - * 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__569 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__569)) __PYX_ERR(0, 4508, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__569); - __Pyx_GIVEREF(__pyx_tuple__569); - - /* "talib/func.pyx":4513 - * open_data = 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__570 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__570)) __PYX_ERR(0, 4513, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__570); - __Pyx_GIVEREF(__pyx_tuple__570); - - /* "talib/func.pyx":4515 - * raise 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__571 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__571)) __PYX_ERR(0, 4515, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__571); - __Pyx_GIVEREF(__pyx_tuple__571); - - /* "talib/func.pyx":4520 - * high_data = 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__572 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__572)) __PYX_ERR(0, 4520, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__572); - __Pyx_GIVEREF(__pyx_tuple__572); - - /* "talib/func.pyx":4522 - * raise 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__573 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__573)) __PYX_ERR(0, 4522, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__573); - __Pyx_GIVEREF(__pyx_tuple__573); - - /* "talib/func.pyx":4527 - * low_data = 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__574 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__574)) __PYX_ERR(0, 4527, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__574); - __Pyx_GIVEREF(__pyx_tuple__574); - - /* "talib/func.pyx":4529 - * raise 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__575 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__575)) __PYX_ERR(0, 4529, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__575); - __Pyx_GIVEREF(__pyx_tuple__575); - - /* "talib/func.pyx":4535 - * 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__576 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__576)) __PYX_ERR(0, 4535, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__576); - __Pyx_GIVEREF(__pyx_tuple__576); - - /* "talib/func.pyx":4537 - * 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__577 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__577)) __PYX_ERR(0, 4537, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__577); - __Pyx_GIVEREF(__pyx_tuple__577); - - /* "talib/func.pyx":4539 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_tuple__578 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__578)) __PYX_ERR(0, 4539, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__578); - __Pyx_GIVEREF(__pyx_tuple__578); - - /* "talib/func.pyx":4557 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLLONGLEGGEDDOJI_Lookback( ) - */ - __pyx_tuple__579 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__579)) __PYX_ERR(0, 4557, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__579); - __Pyx_GIVEREF(__pyx_tuple__579); - - /* "talib/func.pyx":4594 - * int* outinteger_data - * 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, 4594, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__580); - __Pyx_GIVEREF(__pyx_tuple__580); - - /* "talib/func.pyx":4596 - * 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, 4596, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__581); - __Pyx_GIVEREF(__pyx_tuple__581); - - /* "talib/func.pyx":4601 - * open_data = 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, 4601, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__582); - __Pyx_GIVEREF(__pyx_tuple__582); - - /* "talib/func.pyx":4603 - * raise 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, 4603, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__583); - __Pyx_GIVEREF(__pyx_tuple__583); - - /* "talib/func.pyx":4608 - * high_data = 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, 4608, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__584); - __Pyx_GIVEREF(__pyx_tuple__584); - - /* "talib/func.pyx":4610 - * raise 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, 4610, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__585); - __Pyx_GIVEREF(__pyx_tuple__585); - - /* "talib/func.pyx":4615 - * low_data = 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, 4615, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__586); - __Pyx_GIVEREF(__pyx_tuple__586); - - /* "talib/func.pyx":4617 - * raise 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, 4617, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__587); - __Pyx_GIVEREF(__pyx_tuple__587); - - /* "talib/func.pyx":4623 - * 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, 4623, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__588); - __Pyx_GIVEREF(__pyx_tuple__588); - - /* "talib/func.pyx":4625 - * 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, 4625, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__589); - __Pyx_GIVEREF(__pyx_tuple__589); - - /* "talib/func.pyx":4627 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_tuple__590 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__590)) __PYX_ERR(0, 4627, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__590); - __Pyx_GIVEREF(__pyx_tuple__590); - - /* "talib/func.pyx":4645 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLLONGLINE_Lookback( ) - */ - __pyx_tuple__591 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__591)) __PYX_ERR(0, 4645, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__591); - __Pyx_GIVEREF(__pyx_tuple__591); - - /* "talib/func.pyx":4682 - * int* outinteger_data - * 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__592 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__592)) __PYX_ERR(0, 4682, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__592); - __Pyx_GIVEREF(__pyx_tuple__592); - - /* "talib/func.pyx":4684 - * 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__593 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__593)) __PYX_ERR(0, 4684, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__593); - __Pyx_GIVEREF(__pyx_tuple__593); - - /* "talib/func.pyx":4689 - * open_data = 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__594 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__594)) __PYX_ERR(0, 4689, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__594); - __Pyx_GIVEREF(__pyx_tuple__594); - - /* "talib/func.pyx":4691 - * raise 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__595 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__595)) __PYX_ERR(0, 4691, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__595); - __Pyx_GIVEREF(__pyx_tuple__595); - - /* "talib/func.pyx":4696 - * high_data = 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__596 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__596)) __PYX_ERR(0, 4696, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__596); - __Pyx_GIVEREF(__pyx_tuple__596); - - /* "talib/func.pyx":4698 - * raise 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__597 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__597)) __PYX_ERR(0, 4698, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__597); - __Pyx_GIVEREF(__pyx_tuple__597); - - /* "talib/func.pyx":4703 - * low_data = 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__598 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__598)) __PYX_ERR(0, 4703, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__598); - __Pyx_GIVEREF(__pyx_tuple__598); - - /* "talib/func.pyx":4705 - * raise 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__599 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__599)) __PYX_ERR(0, 4705, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__599); - __Pyx_GIVEREF(__pyx_tuple__599); - - /* "talib/func.pyx":4711 - * 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__600 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__600)) __PYX_ERR(0, 4711, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__600); - __Pyx_GIVEREF(__pyx_tuple__600); - - /* "talib/func.pyx":4713 - * 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__601 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__601)) __PYX_ERR(0, 4713, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__601); - __Pyx_GIVEREF(__pyx_tuple__601); - - /* "talib/func.pyx":4715 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_tuple__602 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__602)) __PYX_ERR(0, 4715, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__602); - __Pyx_GIVEREF(__pyx_tuple__602); - - /* "talib/func.pyx":4733 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLMARUBOZU_Lookback( ) - */ - __pyx_tuple__603 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__603)) __PYX_ERR(0, 4733, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__603); - __Pyx_GIVEREF(__pyx_tuple__603); - - /* "talib/func.pyx":4770 - * int* outinteger_data - * 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__604 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__604)) __PYX_ERR(0, 4770, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__604); - __Pyx_GIVEREF(__pyx_tuple__604); - - /* "talib/func.pyx":4772 - * 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__605 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__605)) __PYX_ERR(0, 4772, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__605); - __Pyx_GIVEREF(__pyx_tuple__605); - - /* "talib/func.pyx":4777 - * open_data = 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__606 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__606)) __PYX_ERR(0, 4777, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__606); - __Pyx_GIVEREF(__pyx_tuple__606); - - /* "talib/func.pyx":4779 - * raise 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__607 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__607)) __PYX_ERR(0, 4779, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__607); - __Pyx_GIVEREF(__pyx_tuple__607); - - /* "talib/func.pyx":4784 - * high_data = 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__608 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__608)) __PYX_ERR(0, 4784, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__608); - __Pyx_GIVEREF(__pyx_tuple__608); - - /* "talib/func.pyx":4786 - * raise 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__609 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__609)) __PYX_ERR(0, 4786, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__609); - __Pyx_GIVEREF(__pyx_tuple__609); - - /* "talib/func.pyx":4791 - * low_data = 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__610 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__610)) __PYX_ERR(0, 4791, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__610); - __Pyx_GIVEREF(__pyx_tuple__610); - - /* "talib/func.pyx":4793 - * raise 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__611 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__611)) __PYX_ERR(0, 4793, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__611); - __Pyx_GIVEREF(__pyx_tuple__611); - - /* "talib/func.pyx":4799 - * 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__612 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__612)) __PYX_ERR(0, 4799, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__612); - __Pyx_GIVEREF(__pyx_tuple__612); - - /* "talib/func.pyx":4801 - * 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__613 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__613)) __PYX_ERR(0, 4801, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__613); - __Pyx_GIVEREF(__pyx_tuple__613); - - /* "talib/func.pyx":4803 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_tuple__614 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__614)) __PYX_ERR(0, 4803, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__614); - __Pyx_GIVEREF(__pyx_tuple__614); - - /* "talib/func.pyx":4821 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLMATCHINGLOW_Lookback( ) - */ - __pyx_tuple__615 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__615)) __PYX_ERR(0, 4821, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__615); - __Pyx_GIVEREF(__pyx_tuple__615); - - /* "talib/func.pyx":4860 - * int* outinteger_data - * 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__616 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__616)) __PYX_ERR(0, 4860, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__616); - __Pyx_GIVEREF(__pyx_tuple__616); - - /* "talib/func.pyx":4862 - * 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__617 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__617)) __PYX_ERR(0, 4862, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__617); - __Pyx_GIVEREF(__pyx_tuple__617); - - /* "talib/func.pyx":4867 - * open_data = 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__618 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__618)) __PYX_ERR(0, 4867, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__618); - __Pyx_GIVEREF(__pyx_tuple__618); - - /* "talib/func.pyx":4869 - * raise 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__619 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__619)) __PYX_ERR(0, 4869, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__619); - __Pyx_GIVEREF(__pyx_tuple__619); - - /* "talib/func.pyx":4874 - * high_data = 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__620 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__620)) __PYX_ERR(0, 4874, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__620); - __Pyx_GIVEREF(__pyx_tuple__620); - - /* "talib/func.pyx":4876 - * raise 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__621 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__621)) __PYX_ERR(0, 4876, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__621); - __Pyx_GIVEREF(__pyx_tuple__621); - - /* "talib/func.pyx":4881 - * low_data = 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__622 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__622)) __PYX_ERR(0, 4881, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__622); - __Pyx_GIVEREF(__pyx_tuple__622); - - /* "talib/func.pyx":4883 - * raise 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__623 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__623)) __PYX_ERR(0, 4883, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__623); - __Pyx_GIVEREF(__pyx_tuple__623); - - /* "talib/func.pyx":4889 - * 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__624 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__624)) __PYX_ERR(0, 4889, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__624); - __Pyx_GIVEREF(__pyx_tuple__624); - - /* "talib/func.pyx":4891 - * 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__625 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__625)) __PYX_ERR(0, 4891, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__625); - __Pyx_GIVEREF(__pyx_tuple__625); - - /* "talib/func.pyx":4893 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_tuple__626 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__626)) __PYX_ERR(0, 4893, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__626); - __Pyx_GIVEREF(__pyx_tuple__626); - - /* "talib/func.pyx":4911 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLMATHOLD_Lookback( penetration ) - */ - __pyx_tuple__627 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__627)) __PYX_ERR(0, 4911, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__627); - __Pyx_GIVEREF(__pyx_tuple__627); - - /* "talib/func.pyx":4950 - * int* outinteger_data - * 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__628 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__628)) __PYX_ERR(0, 4950, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__628); - __Pyx_GIVEREF(__pyx_tuple__628); - - /* "talib/func.pyx":4952 - * 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__629 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__629)) __PYX_ERR(0, 4952, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__629); - __Pyx_GIVEREF(__pyx_tuple__629); - - /* "talib/func.pyx":4957 - * open_data = 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__630 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__630)) __PYX_ERR(0, 4957, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__630); - __Pyx_GIVEREF(__pyx_tuple__630); - - /* "talib/func.pyx":4959 - * raise 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__631 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__631)) __PYX_ERR(0, 4959, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__631); - __Pyx_GIVEREF(__pyx_tuple__631); - - /* "talib/func.pyx":4964 - * high_data = 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__632 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__632)) __PYX_ERR(0, 4964, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__632); - __Pyx_GIVEREF(__pyx_tuple__632); - - /* "talib/func.pyx":4966 - * raise 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__633 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__633)) __PYX_ERR(0, 4966, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__633); - __Pyx_GIVEREF(__pyx_tuple__633); - - /* "talib/func.pyx":4971 - * low_data = 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__634 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__634)) __PYX_ERR(0, 4971, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__634); - __Pyx_GIVEREF(__pyx_tuple__634); - - /* "talib/func.pyx":4973 - * raise 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__635 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__635)) __PYX_ERR(0, 4973, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__635); - __Pyx_GIVEREF(__pyx_tuple__635); - - /* "talib/func.pyx":4979 - * 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__636 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__636)) __PYX_ERR(0, 4979, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__636); - __Pyx_GIVEREF(__pyx_tuple__636); - - /* "talib/func.pyx":4981 - * 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__637 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__637)) __PYX_ERR(0, 4981, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__637); - __Pyx_GIVEREF(__pyx_tuple__637); - - /* "talib/func.pyx":4983 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_tuple__638 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__638)) __PYX_ERR(0, 4983, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__638); - __Pyx_GIVEREF(__pyx_tuple__638); - - /* "talib/func.pyx":5001 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLMORNINGDOJISTAR_Lookback( penetration ) - */ - __pyx_tuple__639 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__639)) __PYX_ERR(0, 5001, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__639); - __Pyx_GIVEREF(__pyx_tuple__639); - - /* "talib/func.pyx":5040 - * int* outinteger_data - * 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__640 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__640)) __PYX_ERR(0, 5040, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__640); - __Pyx_GIVEREF(__pyx_tuple__640); - - /* "talib/func.pyx":5042 - * 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__641 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__641)) __PYX_ERR(0, 5042, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__641); - __Pyx_GIVEREF(__pyx_tuple__641); - - /* "talib/func.pyx":5047 - * open_data = 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__642 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__642)) __PYX_ERR(0, 5047, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__642); - __Pyx_GIVEREF(__pyx_tuple__642); - - /* "talib/func.pyx":5049 - * raise 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__643 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__643)) __PYX_ERR(0, 5049, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__643); - __Pyx_GIVEREF(__pyx_tuple__643); - - /* "talib/func.pyx":5054 - * high_data = 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__644 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__644)) __PYX_ERR(0, 5054, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__644); - __Pyx_GIVEREF(__pyx_tuple__644); - - /* "talib/func.pyx":5056 - * raise 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__645 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__645)) __PYX_ERR(0, 5056, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__645); - __Pyx_GIVEREF(__pyx_tuple__645); - - /* "talib/func.pyx":5061 - * low_data = 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__646 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__646)) __PYX_ERR(0, 5061, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__646); - __Pyx_GIVEREF(__pyx_tuple__646); - - /* "talib/func.pyx":5063 - * raise 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__647 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__647)) __PYX_ERR(0, 5063, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__647); - __Pyx_GIVEREF(__pyx_tuple__647); - - /* "talib/func.pyx":5069 - * 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__648 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__648)) __PYX_ERR(0, 5069, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__648); - __Pyx_GIVEREF(__pyx_tuple__648); - - /* "talib/func.pyx":5071 - * 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__649 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__649)) __PYX_ERR(0, 5071, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__649); - __Pyx_GIVEREF(__pyx_tuple__649); - - /* "talib/func.pyx":5073 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_tuple__650 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__650)) __PYX_ERR(0, 5073, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__650); - __Pyx_GIVEREF(__pyx_tuple__650); - - /* "talib/func.pyx":5091 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLMORNINGSTAR_Lookback( penetration ) - */ - __pyx_tuple__651 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__651)) __PYX_ERR(0, 5091, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__651); - __Pyx_GIVEREF(__pyx_tuple__651); - - /* "talib/func.pyx":5128 - * int* outinteger_data - * 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__652 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__652)) __PYX_ERR(0, 5128, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__652); - __Pyx_GIVEREF(__pyx_tuple__652); - - /* "talib/func.pyx":5130 - * 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__653 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__653)) __PYX_ERR(0, 5130, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__653); - __Pyx_GIVEREF(__pyx_tuple__653); - - /* "talib/func.pyx":5135 - * open_data = 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__654 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__654)) __PYX_ERR(0, 5135, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__654); - __Pyx_GIVEREF(__pyx_tuple__654); - - /* "talib/func.pyx":5137 - * raise 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__655 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__655)) __PYX_ERR(0, 5137, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__655); - __Pyx_GIVEREF(__pyx_tuple__655); - - /* "talib/func.pyx":5142 - * high_data = 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__656 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__656)) __PYX_ERR(0, 5142, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__656); - __Pyx_GIVEREF(__pyx_tuple__656); - - /* "talib/func.pyx":5144 - * raise 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__657 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__657)) __PYX_ERR(0, 5144, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__657); - __Pyx_GIVEREF(__pyx_tuple__657); - - /* "talib/func.pyx":5149 - * low_data = 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__658 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__658)) __PYX_ERR(0, 5149, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__658); - __Pyx_GIVEREF(__pyx_tuple__658); - - /* "talib/func.pyx":5151 - * raise 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__659 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__659)) __PYX_ERR(0, 5151, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__659); - __Pyx_GIVEREF(__pyx_tuple__659); - - /* "talib/func.pyx":5157 - * 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__660 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__660)) __PYX_ERR(0, 5157, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__660); - __Pyx_GIVEREF(__pyx_tuple__660); - - /* "talib/func.pyx":5159 - * 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__661 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__661)) __PYX_ERR(0, 5159, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__661); - __Pyx_GIVEREF(__pyx_tuple__661); - - /* "talib/func.pyx":5161 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_tuple__662 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__662)) __PYX_ERR(0, 5161, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__662); - __Pyx_GIVEREF(__pyx_tuple__662); - - /* "talib/func.pyx":5179 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLONNECK_Lookback( ) - */ - __pyx_tuple__663 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__663)) __PYX_ERR(0, 5179, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__663); - __Pyx_GIVEREF(__pyx_tuple__663); - - /* "talib/func.pyx":5216 - * int* outinteger_data - * 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__664 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__664)) __PYX_ERR(0, 5216, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__664); - __Pyx_GIVEREF(__pyx_tuple__664); - - /* "talib/func.pyx":5218 - * 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__665 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__665)) __PYX_ERR(0, 5218, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__665); - __Pyx_GIVEREF(__pyx_tuple__665); - - /* "talib/func.pyx":5223 - * open_data = 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__666 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__666)) __PYX_ERR(0, 5223, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__666); - __Pyx_GIVEREF(__pyx_tuple__666); - - /* "talib/func.pyx":5225 - * raise 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__667 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__667)) __PYX_ERR(0, 5225, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__667); - __Pyx_GIVEREF(__pyx_tuple__667); - - /* "talib/func.pyx":5230 - * high_data = 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__668 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__668)) __PYX_ERR(0, 5230, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__668); - __Pyx_GIVEREF(__pyx_tuple__668); - - /* "talib/func.pyx":5232 - * raise 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__669 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__669)) __PYX_ERR(0, 5232, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__669); - __Pyx_GIVEREF(__pyx_tuple__669); - - /* "talib/func.pyx":5237 - * low_data = 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__670 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__670)) __PYX_ERR(0, 5237, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__670); - __Pyx_GIVEREF(__pyx_tuple__670); - - /* "talib/func.pyx":5239 - * raise 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__671 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__671)) __PYX_ERR(0, 5239, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__671); - __Pyx_GIVEREF(__pyx_tuple__671); - - /* "talib/func.pyx":5245 - * 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__672 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__672)) __PYX_ERR(0, 5245, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__672); - __Pyx_GIVEREF(__pyx_tuple__672); - - /* "talib/func.pyx":5247 - * 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__673 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__673)) __PYX_ERR(0, 5247, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__673); - __Pyx_GIVEREF(__pyx_tuple__673); - - /* "talib/func.pyx":5249 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_tuple__674 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__674)) __PYX_ERR(0, 5249, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__674); - __Pyx_GIVEREF(__pyx_tuple__674); - - /* "talib/func.pyx":5267 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLPIERCING_Lookback( ) - */ - __pyx_tuple__675 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__675)) __PYX_ERR(0, 5267, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__675); - __Pyx_GIVEREF(__pyx_tuple__675); - - /* "talib/func.pyx":5304 - * int* outinteger_data - * 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__676 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__676)) __PYX_ERR(0, 5304, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__676); - __Pyx_GIVEREF(__pyx_tuple__676); - - /* "talib/func.pyx":5306 - * 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__677 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__677)) __PYX_ERR(0, 5306, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__677); - __Pyx_GIVEREF(__pyx_tuple__677); - - /* "talib/func.pyx":5311 - * open_data = 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__678 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__678)) __PYX_ERR(0, 5311, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__678); - __Pyx_GIVEREF(__pyx_tuple__678); - - /* "talib/func.pyx":5313 - * raise 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__679 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__679)) __PYX_ERR(0, 5313, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__679); - __Pyx_GIVEREF(__pyx_tuple__679); - - /* "talib/func.pyx":5318 - * high_data = 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__680 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__680)) __PYX_ERR(0, 5318, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__680); - __Pyx_GIVEREF(__pyx_tuple__680); - - /* "talib/func.pyx":5320 - * raise 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__681 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__681)) __PYX_ERR(0, 5320, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__681); - __Pyx_GIVEREF(__pyx_tuple__681); - - /* "talib/func.pyx":5325 - * low_data = 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__682 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__682)) __PYX_ERR(0, 5325, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__682); - __Pyx_GIVEREF(__pyx_tuple__682); - - /* "talib/func.pyx":5327 - * raise 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__683 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__683)) __PYX_ERR(0, 5327, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__683); - __Pyx_GIVEREF(__pyx_tuple__683); - - /* "talib/func.pyx":5333 - * 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__684 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__684)) __PYX_ERR(0, 5333, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__684); - __Pyx_GIVEREF(__pyx_tuple__684); - - /* "talib/func.pyx":5335 - * 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__685 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__685)) __PYX_ERR(0, 5335, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__685); - __Pyx_GIVEREF(__pyx_tuple__685); - - /* "talib/func.pyx":5337 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_tuple__686 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__686)) __PYX_ERR(0, 5337, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__686); - __Pyx_GIVEREF(__pyx_tuple__686); - - /* "talib/func.pyx":5355 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLRICKSHAWMAN_Lookback( ) - */ - __pyx_tuple__687 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__687)) __PYX_ERR(0, 5355, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__687); - __Pyx_GIVEREF(__pyx_tuple__687); - - /* "talib/func.pyx":5392 - * int* outinteger_data - * 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__688 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__688)) __PYX_ERR(0, 5392, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__688); - __Pyx_GIVEREF(__pyx_tuple__688); - - /* "talib/func.pyx":5394 - * 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__689 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__689)) __PYX_ERR(0, 5394, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__689); - __Pyx_GIVEREF(__pyx_tuple__689); - - /* "talib/func.pyx":5399 - * open_data = 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__690 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__690)) __PYX_ERR(0, 5399, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__690); - __Pyx_GIVEREF(__pyx_tuple__690); - - /* "talib/func.pyx":5401 - * raise 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__691 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__691)) __PYX_ERR(0, 5401, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__691); - __Pyx_GIVEREF(__pyx_tuple__691); - - /* "talib/func.pyx":5406 - * high_data = 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__692 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__692)) __PYX_ERR(0, 5406, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__692); - __Pyx_GIVEREF(__pyx_tuple__692); - - /* "talib/func.pyx":5408 - * raise 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__693 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__693)) __PYX_ERR(0, 5408, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__693); - __Pyx_GIVEREF(__pyx_tuple__693); - - /* "talib/func.pyx":5413 - * low_data = 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__694 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__694)) __PYX_ERR(0, 5413, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__694); - __Pyx_GIVEREF(__pyx_tuple__694); - - /* "talib/func.pyx":5415 - * raise 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__695 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__695)) __PYX_ERR(0, 5415, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__695); - __Pyx_GIVEREF(__pyx_tuple__695); - - /* "talib/func.pyx":5421 - * 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__696 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__696)) __PYX_ERR(0, 5421, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__696); - __Pyx_GIVEREF(__pyx_tuple__696); - - /* "talib/func.pyx":5423 - * 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__697 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__697)) __PYX_ERR(0, 5423, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__697); - __Pyx_GIVEREF(__pyx_tuple__697); - - /* "talib/func.pyx":5425 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_tuple__698 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__698)) __PYX_ERR(0, 5425, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__698); - __Pyx_GIVEREF(__pyx_tuple__698); - - /* "talib/func.pyx":5443 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLRISEFALL3METHODS_Lookback( ) - */ - __pyx_tuple__699 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__699)) __PYX_ERR(0, 5443, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__699); - __Pyx_GIVEREF(__pyx_tuple__699); - - /* "talib/func.pyx":5480 - * int* outinteger_data - * 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__700 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__700)) __PYX_ERR(0, 5480, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__700); - __Pyx_GIVEREF(__pyx_tuple__700); - - /* "talib/func.pyx":5482 - * 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__701 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__701)) __PYX_ERR(0, 5482, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__701); - __Pyx_GIVEREF(__pyx_tuple__701); - - /* "talib/func.pyx":5487 - * open_data = 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__702 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__702)) __PYX_ERR(0, 5487, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__702); - __Pyx_GIVEREF(__pyx_tuple__702); - - /* "talib/func.pyx":5489 - * raise 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__703 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__703)) __PYX_ERR(0, 5489, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__703); - __Pyx_GIVEREF(__pyx_tuple__703); - - /* "talib/func.pyx":5494 - * high_data = 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__704 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__704)) __PYX_ERR(0, 5494, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__704); - __Pyx_GIVEREF(__pyx_tuple__704); - - /* "talib/func.pyx":5496 - * raise 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__705 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__705)) __PYX_ERR(0, 5496, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__705); - __Pyx_GIVEREF(__pyx_tuple__705); - - /* "talib/func.pyx":5501 - * low_data = 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__706 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__706)) __PYX_ERR(0, 5501, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__706); - __Pyx_GIVEREF(__pyx_tuple__706); - - /* "talib/func.pyx":5503 - * raise 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__707 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__707)) __PYX_ERR(0, 5503, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__707); - __Pyx_GIVEREF(__pyx_tuple__707); - - /* "talib/func.pyx":5509 - * 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__708 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__708)) __PYX_ERR(0, 5509, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__708); - __Pyx_GIVEREF(__pyx_tuple__708); - - /* "talib/func.pyx":5511 - * 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__709 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__709)) __PYX_ERR(0, 5511, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__709); - __Pyx_GIVEREF(__pyx_tuple__709); - - /* "talib/func.pyx":5513 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_tuple__710 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__710)) __PYX_ERR(0, 5513, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__710); - __Pyx_GIVEREF(__pyx_tuple__710); - - /* "talib/func.pyx":5531 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLSEPARATINGLINES_Lookback( ) - */ - __pyx_tuple__711 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__711)) __PYX_ERR(0, 5531, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__711); - __Pyx_GIVEREF(__pyx_tuple__711); - - /* "talib/func.pyx":5568 - * int* outinteger_data - * 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, 5568, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__712); - __Pyx_GIVEREF(__pyx_tuple__712); - - /* "talib/func.pyx":5570 - * 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, 5570, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__713); - __Pyx_GIVEREF(__pyx_tuple__713); - - /* "talib/func.pyx":5575 - * open_data = 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, 5575, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__714); - __Pyx_GIVEREF(__pyx_tuple__714); - - /* "talib/func.pyx":5577 - * raise 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, 5577, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__715); - __Pyx_GIVEREF(__pyx_tuple__715); - - /* "talib/func.pyx":5582 - * high_data = 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, 5582, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__716); - __Pyx_GIVEREF(__pyx_tuple__716); - - /* "talib/func.pyx":5584 - * raise 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, 5584, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__717); - __Pyx_GIVEREF(__pyx_tuple__717); - - /* "talib/func.pyx":5589 - * low_data = 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, 5589, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__718); - __Pyx_GIVEREF(__pyx_tuple__718); - - /* "talib/func.pyx":5591 - * raise 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, 5591, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__719); - __Pyx_GIVEREF(__pyx_tuple__719); - - /* "talib/func.pyx":5597 - * 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, 5597, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__720); - __Pyx_GIVEREF(__pyx_tuple__720); - - /* "talib/func.pyx":5599 - * 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, 5599, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__721); - __Pyx_GIVEREF(__pyx_tuple__721); - - /* "talib/func.pyx":5601 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_tuple__722 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__722)) __PYX_ERR(0, 5601, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__722); - __Pyx_GIVEREF(__pyx_tuple__722); - - /* "talib/func.pyx":5619 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLSHOOTINGSTAR_Lookback( ) - */ - __pyx_tuple__723 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__723)) __PYX_ERR(0, 5619, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__723); - __Pyx_GIVEREF(__pyx_tuple__723); - - /* "talib/func.pyx":5656 - * int* outinteger_data - * 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__724 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__724)) __PYX_ERR(0, 5656, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__724); - __Pyx_GIVEREF(__pyx_tuple__724); - - /* "talib/func.pyx":5658 - * 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__725 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__725)) __PYX_ERR(0, 5658, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__725); - __Pyx_GIVEREF(__pyx_tuple__725); - - /* "talib/func.pyx":5663 - * open_data = 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__726 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__726)) __PYX_ERR(0, 5663, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__726); - __Pyx_GIVEREF(__pyx_tuple__726); - - /* "talib/func.pyx":5665 - * raise 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__727 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__727)) __PYX_ERR(0, 5665, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__727); - __Pyx_GIVEREF(__pyx_tuple__727); - - /* "talib/func.pyx":5670 - * high_data = 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__728 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__728)) __PYX_ERR(0, 5670, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__728); - __Pyx_GIVEREF(__pyx_tuple__728); - - /* "talib/func.pyx":5672 - * raise 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__729 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__729)) __PYX_ERR(0, 5672, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__729); - __Pyx_GIVEREF(__pyx_tuple__729); - - /* "talib/func.pyx":5677 - * low_data = 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__730 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__730)) __PYX_ERR(0, 5677, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__730); - __Pyx_GIVEREF(__pyx_tuple__730); - - /* "talib/func.pyx":5679 - * raise 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__731 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__731)) __PYX_ERR(0, 5679, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__731); - __Pyx_GIVEREF(__pyx_tuple__731); - - /* "talib/func.pyx":5685 - * 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__732 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__732)) __PYX_ERR(0, 5685, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__732); - __Pyx_GIVEREF(__pyx_tuple__732); - - /* "talib/func.pyx":5687 - * 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__733 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__733)) __PYX_ERR(0, 5687, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__733); - __Pyx_GIVEREF(__pyx_tuple__733); - - /* "talib/func.pyx":5689 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_tuple__734 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__734)) __PYX_ERR(0, 5689, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__734); - __Pyx_GIVEREF(__pyx_tuple__734); - - /* "talib/func.pyx":5707 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLSHORTLINE_Lookback( ) - */ - __pyx_tuple__735 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__735)) __PYX_ERR(0, 5707, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__735); - __Pyx_GIVEREF(__pyx_tuple__735); - - /* "talib/func.pyx":5744 - * int* outinteger_data - * 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__736 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__736)) __PYX_ERR(0, 5744, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__736); - __Pyx_GIVEREF(__pyx_tuple__736); - - /* "talib/func.pyx":5746 - * 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__737 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__737)) __PYX_ERR(0, 5746, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__737); - __Pyx_GIVEREF(__pyx_tuple__737); - - /* "talib/func.pyx":5751 - * open_data = 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__738 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__738)) __PYX_ERR(0, 5751, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__738); - __Pyx_GIVEREF(__pyx_tuple__738); - - /* "talib/func.pyx":5753 - * raise 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__739 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__739)) __PYX_ERR(0, 5753, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__739); - __Pyx_GIVEREF(__pyx_tuple__739); - - /* "talib/func.pyx":5758 - * high_data = 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__740 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__740)) __PYX_ERR(0, 5758, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__740); - __Pyx_GIVEREF(__pyx_tuple__740); - - /* "talib/func.pyx":5760 - * raise 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__741 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__741)) __PYX_ERR(0, 5760, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__741); - __Pyx_GIVEREF(__pyx_tuple__741); - - /* "talib/func.pyx":5765 - * low_data = 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__742 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__742)) __PYX_ERR(0, 5765, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__742); - __Pyx_GIVEREF(__pyx_tuple__742); - - /* "talib/func.pyx":5767 - * raise 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__743 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__743)) __PYX_ERR(0, 5767, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__743); - __Pyx_GIVEREF(__pyx_tuple__743); - - /* "talib/func.pyx":5773 - * 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__744 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__744)) __PYX_ERR(0, 5773, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__744); - __Pyx_GIVEREF(__pyx_tuple__744); - - /* "talib/func.pyx":5775 - * 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__745 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__745)) __PYX_ERR(0, 5775, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__745); - __Pyx_GIVEREF(__pyx_tuple__745); - - /* "talib/func.pyx":5777 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_tuple__746 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__746)) __PYX_ERR(0, 5777, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__746); - __Pyx_GIVEREF(__pyx_tuple__746); - - /* "talib/func.pyx":5795 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLSPINNINGTOP_Lookback( ) - */ - __pyx_tuple__747 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__747)) __PYX_ERR(0, 5795, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__747); - __Pyx_GIVEREF(__pyx_tuple__747); - - /* "talib/func.pyx":5832 - * int* outinteger_data - * 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__748 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__748)) __PYX_ERR(0, 5832, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__748); - __Pyx_GIVEREF(__pyx_tuple__748); - - /* "talib/func.pyx":5834 - * 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__749 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__749)) __PYX_ERR(0, 5834, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__749); - __Pyx_GIVEREF(__pyx_tuple__749); - - /* "talib/func.pyx":5839 - * open_data = 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__750 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__750)) __PYX_ERR(0, 5839, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__750); - __Pyx_GIVEREF(__pyx_tuple__750); - - /* "talib/func.pyx":5841 - * raise 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__751 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__751)) __PYX_ERR(0, 5841, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__751); - __Pyx_GIVEREF(__pyx_tuple__751); - - /* "talib/func.pyx":5846 - * high_data = 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__752 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__752)) __PYX_ERR(0, 5846, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__752); - __Pyx_GIVEREF(__pyx_tuple__752); - - /* "talib/func.pyx":5848 - * raise 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__753 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__753)) __PYX_ERR(0, 5848, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__753); - __Pyx_GIVEREF(__pyx_tuple__753); - - /* "talib/func.pyx":5853 - * low_data = 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__754 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__754)) __PYX_ERR(0, 5853, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__754); - __Pyx_GIVEREF(__pyx_tuple__754); - - /* "talib/func.pyx":5855 - * raise 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__755 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__755)) __PYX_ERR(0, 5855, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__755); - __Pyx_GIVEREF(__pyx_tuple__755); - - /* "talib/func.pyx":5861 - * 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__756 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__756)) __PYX_ERR(0, 5861, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__756); - __Pyx_GIVEREF(__pyx_tuple__756); - - /* "talib/func.pyx":5863 - * 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__757 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__757)) __PYX_ERR(0, 5863, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__757); - __Pyx_GIVEREF(__pyx_tuple__757); - - /* "talib/func.pyx":5865 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_tuple__758 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__758)) __PYX_ERR(0, 5865, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__758); - __Pyx_GIVEREF(__pyx_tuple__758); - - /* "talib/func.pyx":5883 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLSTALLEDPATTERN_Lookback( ) - */ - __pyx_tuple__759 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__759)) __PYX_ERR(0, 5883, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__759); - __Pyx_GIVEREF(__pyx_tuple__759); - - /* "talib/func.pyx":5920 - * int* outinteger_data - * 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__760 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__760)) __PYX_ERR(0, 5920, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__760); - __Pyx_GIVEREF(__pyx_tuple__760); - - /* "talib/func.pyx":5922 - * 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__761 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__761)) __PYX_ERR(0, 5922, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__761); - __Pyx_GIVEREF(__pyx_tuple__761); - - /* "talib/func.pyx":5927 - * open_data = 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__762 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__762)) __PYX_ERR(0, 5927, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__762); - __Pyx_GIVEREF(__pyx_tuple__762); - - /* "talib/func.pyx":5929 - * raise 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__763 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__763)) __PYX_ERR(0, 5929, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__763); - __Pyx_GIVEREF(__pyx_tuple__763); - - /* "talib/func.pyx":5934 - * high_data = 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__764 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__764)) __PYX_ERR(0, 5934, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__764); - __Pyx_GIVEREF(__pyx_tuple__764); - - /* "talib/func.pyx":5936 - * raise 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__765 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__765)) __PYX_ERR(0, 5936, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__765); - __Pyx_GIVEREF(__pyx_tuple__765); - - /* "talib/func.pyx":5941 - * low_data = 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__766 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__766)) __PYX_ERR(0, 5941, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__766); - __Pyx_GIVEREF(__pyx_tuple__766); - - /* "talib/func.pyx":5943 - * raise 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__767 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__767)) __PYX_ERR(0, 5943, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__767); - __Pyx_GIVEREF(__pyx_tuple__767); - - /* "talib/func.pyx":5949 - * 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__768 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__768)) __PYX_ERR(0, 5949, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__768); - __Pyx_GIVEREF(__pyx_tuple__768); - - /* "talib/func.pyx":5951 - * 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__769 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__769)) __PYX_ERR(0, 5951, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__769); - __Pyx_GIVEREF(__pyx_tuple__769); - - /* "talib/func.pyx":5953 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_tuple__770 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__770)) __PYX_ERR(0, 5953, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__770); - __Pyx_GIVEREF(__pyx_tuple__770); - - /* "talib/func.pyx":5971 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLSTICKSANDWICH_Lookback( ) - */ - __pyx_tuple__771 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__771)) __PYX_ERR(0, 5971, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__771); - __Pyx_GIVEREF(__pyx_tuple__771); - - /* "talib/func.pyx":6008 - * int* outinteger_data - * 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__772 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__772)) __PYX_ERR(0, 6008, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__772); - __Pyx_GIVEREF(__pyx_tuple__772); - - /* "talib/func.pyx":6010 - * 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__773 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__773)) __PYX_ERR(0, 6010, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__773); - __Pyx_GIVEREF(__pyx_tuple__773); - - /* "talib/func.pyx":6015 - * open_data = 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__774 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__774)) __PYX_ERR(0, 6015, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__774); - __Pyx_GIVEREF(__pyx_tuple__774); - - /* "talib/func.pyx":6017 - * raise 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__775 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__775)) __PYX_ERR(0, 6017, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__775); - __Pyx_GIVEREF(__pyx_tuple__775); - - /* "talib/func.pyx":6022 - * high_data = 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__776 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__776)) __PYX_ERR(0, 6022, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__776); - __Pyx_GIVEREF(__pyx_tuple__776); - - /* "talib/func.pyx":6024 - * raise 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__777 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__777)) __PYX_ERR(0, 6024, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__777); - __Pyx_GIVEREF(__pyx_tuple__777); - - /* "talib/func.pyx":6029 - * low_data = 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__778 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__778)) __PYX_ERR(0, 6029, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__778); - __Pyx_GIVEREF(__pyx_tuple__778); - - /* "talib/func.pyx":6031 - * raise 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__779 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__779)) __PYX_ERR(0, 6031, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__779); - __Pyx_GIVEREF(__pyx_tuple__779); - - /* "talib/func.pyx":6037 - * 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__780 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__780)) __PYX_ERR(0, 6037, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__780); - __Pyx_GIVEREF(__pyx_tuple__780); - - /* "talib/func.pyx":6039 - * 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__781 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__781)) __PYX_ERR(0, 6039, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__781); - __Pyx_GIVEREF(__pyx_tuple__781); - - /* "talib/func.pyx":6041 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_tuple__782 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__782)) __PYX_ERR(0, 6041, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__782); - __Pyx_GIVEREF(__pyx_tuple__782); - - /* "talib/func.pyx":6059 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLTAKURI_Lookback( ) - */ - __pyx_tuple__783 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__783)) __PYX_ERR(0, 6059, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__783); - __Pyx_GIVEREF(__pyx_tuple__783); - - /* "talib/func.pyx":6096 - * int* outinteger_data - * 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__784 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__784)) __PYX_ERR(0, 6096, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__784); - __Pyx_GIVEREF(__pyx_tuple__784); - - /* "talib/func.pyx":6098 - * 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__785 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__785)) __PYX_ERR(0, 6098, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__785); - __Pyx_GIVEREF(__pyx_tuple__785); - - /* "talib/func.pyx":6103 - * open_data = 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__786 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__786)) __PYX_ERR(0, 6103, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__786); - __Pyx_GIVEREF(__pyx_tuple__786); - - /* "talib/func.pyx":6105 - * raise 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__787 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__787)) __PYX_ERR(0, 6105, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__787); - __Pyx_GIVEREF(__pyx_tuple__787); - - /* "talib/func.pyx":6110 - * high_data = 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__788 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__788)) __PYX_ERR(0, 6110, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__788); - __Pyx_GIVEREF(__pyx_tuple__788); - - /* "talib/func.pyx":6112 - * raise 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__789 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__789)) __PYX_ERR(0, 6112, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__789); - __Pyx_GIVEREF(__pyx_tuple__789); - - /* "talib/func.pyx":6117 - * low_data = 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__790 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__790)) __PYX_ERR(0, 6117, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__790); - __Pyx_GIVEREF(__pyx_tuple__790); - - /* "talib/func.pyx":6119 - * raise 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__791 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__791)) __PYX_ERR(0, 6119, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__791); - __Pyx_GIVEREF(__pyx_tuple__791); - - /* "talib/func.pyx":6125 - * 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__792 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__792)) __PYX_ERR(0, 6125, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__792); - __Pyx_GIVEREF(__pyx_tuple__792); - - /* "talib/func.pyx":6127 - * 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__793 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__793)) __PYX_ERR(0, 6127, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__793); - __Pyx_GIVEREF(__pyx_tuple__793); - - /* "talib/func.pyx":6129 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_tuple__794 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__794)) __PYX_ERR(0, 6129, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__794); - __Pyx_GIVEREF(__pyx_tuple__794); - - /* "talib/func.pyx":6147 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLTASUKIGAP_Lookback( ) - */ - __pyx_tuple__795 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__795)) __PYX_ERR(0, 6147, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__795); - __Pyx_GIVEREF(__pyx_tuple__795); - - /* "talib/func.pyx":6184 - * int* outinteger_data - * 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__796 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__796)) __PYX_ERR(0, 6184, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__796); - __Pyx_GIVEREF(__pyx_tuple__796); - - /* "talib/func.pyx":6186 - * 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__797 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__797)) __PYX_ERR(0, 6186, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__797); - __Pyx_GIVEREF(__pyx_tuple__797); - - /* "talib/func.pyx":6191 - * open_data = 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__798 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__798)) __PYX_ERR(0, 6191, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__798); - __Pyx_GIVEREF(__pyx_tuple__798); - - /* "talib/func.pyx":6193 - * raise 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, 6193, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__799); - __Pyx_GIVEREF(__pyx_tuple__799); - - /* "talib/func.pyx":6198 - * high_data = 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, 6198, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__800); - __Pyx_GIVEREF(__pyx_tuple__800); - - /* "talib/func.pyx":6200 - * raise 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, 6200, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__801); - __Pyx_GIVEREF(__pyx_tuple__801); - - /* "talib/func.pyx":6205 - * low_data = 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, 6205, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__802); - __Pyx_GIVEREF(__pyx_tuple__802); - - /* "talib/func.pyx":6207 - * raise 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, 6207, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__803); - __Pyx_GIVEREF(__pyx_tuple__803); - - /* "talib/func.pyx":6213 - * 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__804 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__804)) __PYX_ERR(0, 6213, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__804); - __Pyx_GIVEREF(__pyx_tuple__804); - - /* "talib/func.pyx":6215 - * 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__805 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__805)) __PYX_ERR(0, 6215, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__805); - __Pyx_GIVEREF(__pyx_tuple__805); - - /* "talib/func.pyx":6217 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_tuple__806 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__806)) __PYX_ERR(0, 6217, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__806); - __Pyx_GIVEREF(__pyx_tuple__806); - - /* "talib/func.pyx":6235 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLTHRUSTING_Lookback( ) - */ - __pyx_tuple__807 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__807)) __PYX_ERR(0, 6235, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__807); - __Pyx_GIVEREF(__pyx_tuple__807); - - /* "talib/func.pyx":6272 - * int* outinteger_data - * 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__808 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__808)) __PYX_ERR(0, 6272, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__808); - __Pyx_GIVEREF(__pyx_tuple__808); - - /* "talib/func.pyx":6274 - * 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__809 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__809)) __PYX_ERR(0, 6274, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__809); - __Pyx_GIVEREF(__pyx_tuple__809); - - /* "talib/func.pyx":6279 - * open_data = 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__810 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__810)) __PYX_ERR(0, 6279, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__810); - __Pyx_GIVEREF(__pyx_tuple__810); - - /* "talib/func.pyx":6281 - * raise 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__811 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__811)) __PYX_ERR(0, 6281, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__811); - __Pyx_GIVEREF(__pyx_tuple__811); - - /* "talib/func.pyx":6286 - * high_data = 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__812 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__812)) __PYX_ERR(0, 6286, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__812); - __Pyx_GIVEREF(__pyx_tuple__812); - - /* "talib/func.pyx":6288 - * raise 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__813 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__813)) __PYX_ERR(0, 6288, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__813); - __Pyx_GIVEREF(__pyx_tuple__813); - - /* "talib/func.pyx":6293 - * low_data = 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__814 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__814)) __PYX_ERR(0, 6293, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__814); - __Pyx_GIVEREF(__pyx_tuple__814); - - /* "talib/func.pyx":6295 - * raise 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__815 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__815)) __PYX_ERR(0, 6295, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__815); - __Pyx_GIVEREF(__pyx_tuple__815); - - /* "talib/func.pyx":6301 - * 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__816 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__816)) __PYX_ERR(0, 6301, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__816); - __Pyx_GIVEREF(__pyx_tuple__816); - - /* "talib/func.pyx":6303 - * 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__817 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__817)) __PYX_ERR(0, 6303, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__817); - __Pyx_GIVEREF(__pyx_tuple__817); - - /* "talib/func.pyx":6305 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_tuple__818 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__818)) __PYX_ERR(0, 6305, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__818); - __Pyx_GIVEREF(__pyx_tuple__818); - - /* "talib/func.pyx":6323 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLTRISTAR_Lookback( ) - */ - __pyx_tuple__819 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__819)) __PYX_ERR(0, 6323, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__819); - __Pyx_GIVEREF(__pyx_tuple__819); - - /* "talib/func.pyx":6360 - * int* outinteger_data - * 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__820 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__820)) __PYX_ERR(0, 6360, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__820); - __Pyx_GIVEREF(__pyx_tuple__820); - - /* "talib/func.pyx":6362 - * 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__821 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__821)) __PYX_ERR(0, 6362, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__821); - __Pyx_GIVEREF(__pyx_tuple__821); - - /* "talib/func.pyx":6367 - * open_data = 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__822 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__822)) __PYX_ERR(0, 6367, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__822); - __Pyx_GIVEREF(__pyx_tuple__822); - - /* "talib/func.pyx":6369 - * raise 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__823 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__823)) __PYX_ERR(0, 6369, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__823); - __Pyx_GIVEREF(__pyx_tuple__823); - - /* "talib/func.pyx":6374 - * high_data = 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__824 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__824)) __PYX_ERR(0, 6374, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__824); - __Pyx_GIVEREF(__pyx_tuple__824); - - /* "talib/func.pyx":6376 - * raise 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__825 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__825)) __PYX_ERR(0, 6376, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__825); - __Pyx_GIVEREF(__pyx_tuple__825); - - /* "talib/func.pyx":6381 - * low_data = 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__826 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__826)) __PYX_ERR(0, 6381, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__826); - __Pyx_GIVEREF(__pyx_tuple__826); - - /* "talib/func.pyx":6383 - * raise 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__827 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__827)) __PYX_ERR(0, 6383, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__827); - __Pyx_GIVEREF(__pyx_tuple__827); - - /* "talib/func.pyx":6389 - * 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__828 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__828)) __PYX_ERR(0, 6389, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__828); - __Pyx_GIVEREF(__pyx_tuple__828); - - /* "talib/func.pyx":6391 - * 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__829 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__829)) __PYX_ERR(0, 6391, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__829); - __Pyx_GIVEREF(__pyx_tuple__829); - - /* "talib/func.pyx":6393 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_tuple__830 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__830)) __PYX_ERR(0, 6393, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__830); - __Pyx_GIVEREF(__pyx_tuple__830); - - /* "talib/func.pyx":6411 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLUNIQUE3RIVER_Lookback( ) - */ - __pyx_tuple__831 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__831)) __PYX_ERR(0, 6411, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__831); - __Pyx_GIVEREF(__pyx_tuple__831); - - /* "talib/func.pyx":6448 - * int* outinteger_data - * 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__832 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__832)) __PYX_ERR(0, 6448, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__832); - __Pyx_GIVEREF(__pyx_tuple__832); - - /* "talib/func.pyx":6450 - * 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__833 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__833)) __PYX_ERR(0, 6450, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__833); - __Pyx_GIVEREF(__pyx_tuple__833); - - /* "talib/func.pyx":6455 - * open_data = 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__834 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__834)) __PYX_ERR(0, 6455, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__834); - __Pyx_GIVEREF(__pyx_tuple__834); - - /* "talib/func.pyx":6457 - * raise 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__835 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__835)) __PYX_ERR(0, 6457, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__835); - __Pyx_GIVEREF(__pyx_tuple__835); - - /* "talib/func.pyx":6462 - * high_data = 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__836 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__836)) __PYX_ERR(0, 6462, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__836); - __Pyx_GIVEREF(__pyx_tuple__836); - - /* "talib/func.pyx":6464 - * raise 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__837 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__837)) __PYX_ERR(0, 6464, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__837); - __Pyx_GIVEREF(__pyx_tuple__837); - - /* "talib/func.pyx":6469 - * low_data = 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__838 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__838)) __PYX_ERR(0, 6469, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__838); - __Pyx_GIVEREF(__pyx_tuple__838); - - /* "talib/func.pyx":6471 - * raise 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__839 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__839)) __PYX_ERR(0, 6471, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__839); - __Pyx_GIVEREF(__pyx_tuple__839); - - /* "talib/func.pyx":6477 - * 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__840 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__840)) __PYX_ERR(0, 6477, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__840); - __Pyx_GIVEREF(__pyx_tuple__840); - - /* "talib/func.pyx":6479 - * 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__841 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__841)) __PYX_ERR(0, 6479, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__841); - __Pyx_GIVEREF(__pyx_tuple__841); - - /* "talib/func.pyx":6481 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_tuple__842 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__842)) __PYX_ERR(0, 6481, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__842); - __Pyx_GIVEREF(__pyx_tuple__842); - - /* "talib/func.pyx":6499 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLUPSIDEGAP2CROWS_Lookback( ) - */ - __pyx_tuple__843 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__843)) __PYX_ERR(0, 6499, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__843); - __Pyx_GIVEREF(__pyx_tuple__843); - - /* "talib/func.pyx":6536 - * int* outinteger_data - * 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__844 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__844)) __PYX_ERR(0, 6536, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__844); - __Pyx_GIVEREF(__pyx_tuple__844); - - /* "talib/func.pyx":6538 - * 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__845 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__845)) __PYX_ERR(0, 6538, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__845); - __Pyx_GIVEREF(__pyx_tuple__845); - - /* "talib/func.pyx":6543 - * open_data = 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__846 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__846)) __PYX_ERR(0, 6543, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__846); - __Pyx_GIVEREF(__pyx_tuple__846); - - /* "talib/func.pyx":6545 - * raise 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__847 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__847)) __PYX_ERR(0, 6545, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__847); - __Pyx_GIVEREF(__pyx_tuple__847); - - /* "talib/func.pyx":6550 - * high_data = 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__848 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__848)) __PYX_ERR(0, 6550, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__848); - __Pyx_GIVEREF(__pyx_tuple__848); - - /* "talib/func.pyx":6552 - * raise 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__849 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__849)) __PYX_ERR(0, 6552, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__849); - __Pyx_GIVEREF(__pyx_tuple__849); - - /* "talib/func.pyx":6557 - * low_data = 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__850 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__850)) __PYX_ERR(0, 6557, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__850); - __Pyx_GIVEREF(__pyx_tuple__850); - - /* "talib/func.pyx":6559 - * raise 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__851 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__851)) __PYX_ERR(0, 6559, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__851); - __Pyx_GIVEREF(__pyx_tuple__851); - - /* "talib/func.pyx":6565 - * 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__852 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__852)) __PYX_ERR(0, 6565, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__852); - __Pyx_GIVEREF(__pyx_tuple__852); - - /* "talib/func.pyx":6567 - * 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__853 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__853)) __PYX_ERR(0, 6567, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__853); - __Pyx_GIVEREF(__pyx_tuple__853); - - /* "talib/func.pyx":6569 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_tuple__854 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__854)) __PYX_ERR(0, 6569, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__854); - __Pyx_GIVEREF(__pyx_tuple__854); - - /* "talib/func.pyx":6587 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CDLXSIDEGAP3METHODS_Lookback( ) - */ - __pyx_tuple__855 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__855)) __PYX_ERR(0, 6587, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__855); - __Pyx_GIVEREF(__pyx_tuple__855); - - /* "talib/func.pyx":6621 - * double* outreal_data - * 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__856 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__856)) __PYX_ERR(0, 6621, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__856); - __Pyx_GIVEREF(__pyx_tuple__856); - - /* "talib/func.pyx":6623 - * 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__857 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__857)) __PYX_ERR(0, 6623, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__857); - __Pyx_GIVEREF(__pyx_tuple__857); - - /* "talib/func.pyx":6636 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CEIL_Lookback( ) - */ - __pyx_tuple__858 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__858)) __PYX_ERR(0, 6636, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__858); - __Pyx_GIVEREF(__pyx_tuple__858); - - /* "talib/func.pyx":6672 - * double* outreal_data - * 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__859 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__859)) __PYX_ERR(0, 6672, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__859); - __Pyx_GIVEREF(__pyx_tuple__859); - - /* "talib/func.pyx":6674 - * 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__860 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__860)) __PYX_ERR(0, 6674, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__860); - __Pyx_GIVEREF(__pyx_tuple__860); - - /* "talib/func.pyx":6687 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CMO_Lookback( timeperiod ) - */ - __pyx_tuple__861 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__861)) __PYX_ERR(0, 6687, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__861); - __Pyx_GIVEREF(__pyx_tuple__861); - - /* "talib/func.pyx":6725 - * double* outreal_data - * 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__862 = PyTuple_Pack(1, __pyx_kp_s_real0_is_not_double); if (unlikely(!__pyx_tuple__862)) __PYX_ERR(0, 6725, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__862); - __Pyx_GIVEREF(__pyx_tuple__862); - - /* "talib/func.pyx":6727 - * 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__863 = PyTuple_Pack(1, __pyx_kp_s_real0_has_wrong_dimensions); if (unlikely(!__pyx_tuple__863)) __PYX_ERR(0, 6727, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__863); - __Pyx_GIVEREF(__pyx_tuple__863); - - /* "talib/func.pyx":6732 - * real0_data = 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__864 = PyTuple_Pack(1, __pyx_kp_s_real1_is_not_double); if (unlikely(!__pyx_tuple__864)) __PYX_ERR(0, 6732, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__864); - __Pyx_GIVEREF(__pyx_tuple__864); - - /* "talib/func.pyx":6734 - * 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__865 = PyTuple_Pack(1, __pyx_kp_s_real1_has_wrong_dimensions); if (unlikely(!__pyx_tuple__865)) __PYX_ERR(0, 6734, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__865); - __Pyx_GIVEREF(__pyx_tuple__865); - - /* "talib/func.pyx":6740 - * length = real0.shape[0] - * if length != real1.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_tuple__866 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__866)) __PYX_ERR(0, 6740, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__866); - __Pyx_GIVEREF(__pyx_tuple__866); - - /* "talib/func.pyx":6752 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_CORREL_Lookback( timeperiod ) - */ - __pyx_tuple__867 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__867)) __PYX_ERR(0, 6752, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__867); - __Pyx_GIVEREF(__pyx_tuple__867); - - /* "talib/func.pyx":6786 - * double* outreal_data - * 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__868 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__868)) __PYX_ERR(0, 6786, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__868); - __Pyx_GIVEREF(__pyx_tuple__868); - - /* "talib/func.pyx":6788 - * 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__869 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__869)) __PYX_ERR(0, 6788, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__869); - __Pyx_GIVEREF(__pyx_tuple__869); - - /* "talib/func.pyx":6801 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_COS_Lookback( ) - */ - __pyx_tuple__870 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__870)) __PYX_ERR(0, 6801, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__870); - __Pyx_GIVEREF(__pyx_tuple__870); - - /* "talib/func.pyx":6835 - * double* outreal_data - * 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__871 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__871)) __PYX_ERR(0, 6835, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__871); - __Pyx_GIVEREF(__pyx_tuple__871); - - /* "talib/func.pyx":6837 - * 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__872 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__872)) __PYX_ERR(0, 6837, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__872); - __Pyx_GIVEREF(__pyx_tuple__872); - - /* "talib/func.pyx":6850 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_COSH_Lookback( ) - */ - __pyx_tuple__873 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__873)) __PYX_ERR(0, 6850, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__873); - __Pyx_GIVEREF(__pyx_tuple__873); - - /* "talib/func.pyx":6886 - * double* outreal_data - * 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__874 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__874)) __PYX_ERR(0, 6886, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__874); - __Pyx_GIVEREF(__pyx_tuple__874); - - /* "talib/func.pyx":6888 - * 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__875 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__875)) __PYX_ERR(0, 6888, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__875); - __Pyx_GIVEREF(__pyx_tuple__875); - - /* "talib/func.pyx":6901 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_DEMA_Lookback( timeperiod ) - */ - __pyx_tuple__876 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__876)) __PYX_ERR(0, 6901, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__876); - __Pyx_GIVEREF(__pyx_tuple__876); - - /* "talib/func.pyx":6937 - * double* outreal_data - * 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__877 = PyTuple_Pack(1, __pyx_kp_s_real0_is_not_double); if (unlikely(!__pyx_tuple__877)) __PYX_ERR(0, 6937, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__877); - __Pyx_GIVEREF(__pyx_tuple__877); - - /* "talib/func.pyx":6939 - * 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__878 = PyTuple_Pack(1, __pyx_kp_s_real0_has_wrong_dimensions); if (unlikely(!__pyx_tuple__878)) __PYX_ERR(0, 6939, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__878); - __Pyx_GIVEREF(__pyx_tuple__878); - - /* "talib/func.pyx":6944 - * real0_data = 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__879 = PyTuple_Pack(1, __pyx_kp_s_real1_is_not_double); if (unlikely(!__pyx_tuple__879)) __PYX_ERR(0, 6944, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__879); - __Pyx_GIVEREF(__pyx_tuple__879); - - /* "talib/func.pyx":6946 - * 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__880 = PyTuple_Pack(1, __pyx_kp_s_real1_has_wrong_dimensions); if (unlikely(!__pyx_tuple__880)) __PYX_ERR(0, 6946, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__880); - __Pyx_GIVEREF(__pyx_tuple__880); - - /* "talib/func.pyx":6952 - * length = real0.shape[0] - * if length != real1.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_tuple__881 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__881)) __PYX_ERR(0, 6952, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__881); - __Pyx_GIVEREF(__pyx_tuple__881); - - /* "talib/func.pyx":6964 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_DIV_Lookback( ) - */ - __pyx_tuple__882 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__882)) __PYX_ERR(0, 6964, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__882); - __Pyx_GIVEREF(__pyx_tuple__882); - - /* "talib/func.pyx":7002 - * double* outreal_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__883 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__883)) __PYX_ERR(0, 7002, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__883); - __Pyx_GIVEREF(__pyx_tuple__883); - - /* "talib/func.pyx":7004 - * raise 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__884 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__884)) __PYX_ERR(0, 7004, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__884); - __Pyx_GIVEREF(__pyx_tuple__884); - - /* "talib/func.pyx":7009 - * high_data = 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__885 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__885)) __PYX_ERR(0, 7009, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__885); - __Pyx_GIVEREF(__pyx_tuple__885); - - /* "talib/func.pyx":7011 - * raise 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__886 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__886)) __PYX_ERR(0, 7011, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__886); - __Pyx_GIVEREF(__pyx_tuple__886); - - /* "talib/func.pyx":7016 - * low_data = 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__887 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__887)) __PYX_ERR(0, 7016, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__887); - __Pyx_GIVEREF(__pyx_tuple__887); - - /* "talib/func.pyx":7018 - * raise 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__888 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__888)) __PYX_ERR(0, 7018, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__888); - __Pyx_GIVEREF(__pyx_tuple__888); - - /* "talib/func.pyx":7024 - * 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__889 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__889)) __PYX_ERR(0, 7024, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__889); - __Pyx_GIVEREF(__pyx_tuple__889); - - /* "talib/func.pyx":7026 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_tuple__890 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__890)) __PYX_ERR(0, 7026, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__890); - __Pyx_GIVEREF(__pyx_tuple__890); - - /* "talib/func.pyx":7041 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_DX_Lookback( timeperiod ) - */ - __pyx_tuple__891 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__891)) __PYX_ERR(0, 7041, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__891); - __Pyx_GIVEREF(__pyx_tuple__891); - - /* "talib/func.pyx":7077 - * double* outreal_data - * 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__892 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__892)) __PYX_ERR(0, 7077, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__892); - __Pyx_GIVEREF(__pyx_tuple__892); - - /* "talib/func.pyx":7079 - * 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__893 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__893)) __PYX_ERR(0, 7079, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__893); - __Pyx_GIVEREF(__pyx_tuple__893); - - /* "talib/func.pyx":7092 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_EMA_Lookback( timeperiod ) - */ - __pyx_tuple__894 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__894)) __PYX_ERR(0, 7092, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__894); - __Pyx_GIVEREF(__pyx_tuple__894); - - /* "talib/func.pyx":7126 - * double* outreal_data - * 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__895 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__895)) __PYX_ERR(0, 7126, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__895); - __Pyx_GIVEREF(__pyx_tuple__895); - - /* "talib/func.pyx":7128 - * 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__896 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__896)) __PYX_ERR(0, 7128, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__896); - __Pyx_GIVEREF(__pyx_tuple__896); - - /* "talib/func.pyx":7141 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_EXP_Lookback( ) - */ - __pyx_tuple__897 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__897)) __PYX_ERR(0, 7141, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__897); - __Pyx_GIVEREF(__pyx_tuple__897); - - /* "talib/func.pyx":7175 - * double* outreal_data - * 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__898 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__898)) __PYX_ERR(0, 7175, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__898); - __Pyx_GIVEREF(__pyx_tuple__898); - - /* "talib/func.pyx":7177 - * 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__899 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__899)) __PYX_ERR(0, 7177, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__899); - __Pyx_GIVEREF(__pyx_tuple__899); - - /* "talib/func.pyx":7190 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_FLOOR_Lookback( ) - */ - __pyx_tuple__900 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__900)) __PYX_ERR(0, 7190, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__900); - __Pyx_GIVEREF(__pyx_tuple__900); - - /* "talib/func.pyx":7224 - * double* outreal_data - * 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, 7224, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__901); - __Pyx_GIVEREF(__pyx_tuple__901); - - /* "talib/func.pyx":7226 - * 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, 7226, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__902); - __Pyx_GIVEREF(__pyx_tuple__902); - - /* "talib/func.pyx":7239 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_HT_DCPERIOD_Lookback( ) - */ - __pyx_tuple__903 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__903)) __PYX_ERR(0, 7239, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__903); - __Pyx_GIVEREF(__pyx_tuple__903); - - /* "talib/func.pyx":7273 - * double* outreal_data - * 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__904 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__904)) __PYX_ERR(0, 7273, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__904); - __Pyx_GIVEREF(__pyx_tuple__904); - - /* "talib/func.pyx":7275 - * 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__905 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__905)) __PYX_ERR(0, 7275, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__905); - __Pyx_GIVEREF(__pyx_tuple__905); - - /* "talib/func.pyx":7288 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_HT_DCPHASE_Lookback( ) - */ - __pyx_tuple__906 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__906)) __PYX_ERR(0, 7288, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__906); - __Pyx_GIVEREF(__pyx_tuple__906); - - /* "talib/func.pyx":7325 - * double* outquadrature_data - * 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__907 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__907)) __PYX_ERR(0, 7325, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__907); - __Pyx_GIVEREF(__pyx_tuple__907); - - /* "talib/func.pyx":7327 - * 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__908 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__908)) __PYX_ERR(0, 7327, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__908); - __Pyx_GIVEREF(__pyx_tuple__908); - - /* "talib/func.pyx":7340 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_HT_PHASOR_Lookback( ) - */ - __pyx_tuple__909 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__909)) __PYX_ERR(0, 7340, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__909); - __Pyx_GIVEREF(__pyx_tuple__909); - - /* "talib/func.pyx":7381 - * double* outleadsine_data - * 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__910 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__910)) __PYX_ERR(0, 7381, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__910); - __Pyx_GIVEREF(__pyx_tuple__910); - - /* "talib/func.pyx":7383 - * 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__911 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__911)) __PYX_ERR(0, 7383, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__911); - __Pyx_GIVEREF(__pyx_tuple__911); - - /* "talib/func.pyx":7396 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_HT_SINE_Lookback( ) - */ - __pyx_tuple__912 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__912)) __PYX_ERR(0, 7396, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__912); - __Pyx_GIVEREF(__pyx_tuple__912); - - /* "talib/func.pyx":7434 - * double* outreal_data - * 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__913 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__913)) __PYX_ERR(0, 7434, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__913); - __Pyx_GIVEREF(__pyx_tuple__913); - - /* "talib/func.pyx":7436 - * 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__914 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__914)) __PYX_ERR(0, 7436, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__914); - __Pyx_GIVEREF(__pyx_tuple__914); - - /* "talib/func.pyx":7449 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_HT_TRENDLINE_Lookback( ) - */ - __pyx_tuple__915 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__915)) __PYX_ERR(0, 7449, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__915); - __Pyx_GIVEREF(__pyx_tuple__915); - - /* "talib/func.pyx":7483 - * int* outinteger_data - * 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, 7483, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__916); - __Pyx_GIVEREF(__pyx_tuple__916); - - /* "talib/func.pyx":7485 - * 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, 7485, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__917); - __Pyx_GIVEREF(__pyx_tuple__917); - - /* "talib/func.pyx":7498 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_HT_TRENDMODE_Lookback( ) - */ - __pyx_tuple__918 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__918)) __PYX_ERR(0, 7498, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__918); - __Pyx_GIVEREF(__pyx_tuple__918); - - /* "talib/func.pyx":7534 - * double* outreal_data - * 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__919 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__919)) __PYX_ERR(0, 7534, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__919); - __Pyx_GIVEREF(__pyx_tuple__919); - - /* "talib/func.pyx":7536 - * 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__920 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__920)) __PYX_ERR(0, 7536, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__920); - __Pyx_GIVEREF(__pyx_tuple__920); - - /* "talib/func.pyx":7549 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_KAMA_Lookback( timeperiod ) - */ - __pyx_tuple__921 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__921)) __PYX_ERR(0, 7549, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__921); - __Pyx_GIVEREF(__pyx_tuple__921); - - /* "talib/func.pyx":7585 - * double* outreal_data - * 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__922 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__922)) __PYX_ERR(0, 7585, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__922); - __Pyx_GIVEREF(__pyx_tuple__922); - - /* "talib/func.pyx":7587 - * 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__923 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__923)) __PYX_ERR(0, 7587, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__923); - __Pyx_GIVEREF(__pyx_tuple__923); - - /* "talib/func.pyx":7600 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_LINEARREG_Lookback( timeperiod ) - */ - __pyx_tuple__924 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__924)) __PYX_ERR(0, 7600, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__924); - __Pyx_GIVEREF(__pyx_tuple__924); - - /* "talib/func.pyx":7636 - * double* outreal_data - * 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__925 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__925)) __PYX_ERR(0, 7636, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__925); - __Pyx_GIVEREF(__pyx_tuple__925); - - /* "talib/func.pyx":7638 - * 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__926 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__926)) __PYX_ERR(0, 7638, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__926); - __Pyx_GIVEREF(__pyx_tuple__926); - - /* "talib/func.pyx":7651 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_LINEARREG_ANGLE_Lookback( timeperiod ) - */ - __pyx_tuple__927 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__927)) __PYX_ERR(0, 7651, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__927); - __Pyx_GIVEREF(__pyx_tuple__927); - - /* "talib/func.pyx":7687 - * double* outreal_data - * 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__928 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__928)) __PYX_ERR(0, 7687, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__928); - __Pyx_GIVEREF(__pyx_tuple__928); - - /* "talib/func.pyx":7689 - * 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__929 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__929)) __PYX_ERR(0, 7689, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__929); - __Pyx_GIVEREF(__pyx_tuple__929); - - /* "talib/func.pyx":7702 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_LINEARREG_INTERCEPT_Lookback( timeperiod ) - */ - __pyx_tuple__930 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__930)) __PYX_ERR(0, 7702, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__930); - __Pyx_GIVEREF(__pyx_tuple__930); - - /* "talib/func.pyx":7738 - * double* outreal_data - * 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__931 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__931)) __PYX_ERR(0, 7738, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__931); - __Pyx_GIVEREF(__pyx_tuple__931); - - /* "talib/func.pyx":7740 - * 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__932 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__932)) __PYX_ERR(0, 7740, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__932); - __Pyx_GIVEREF(__pyx_tuple__932); - - /* "talib/func.pyx":7753 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_LINEARREG_SLOPE_Lookback( timeperiod ) - */ - __pyx_tuple__933 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__933)) __PYX_ERR(0, 7753, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__933); - __Pyx_GIVEREF(__pyx_tuple__933); - - /* "talib/func.pyx":7787 - * double* outreal_data - * 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, 7787, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__934); - __Pyx_GIVEREF(__pyx_tuple__934); - - /* "talib/func.pyx":7789 - * 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, 7789, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__935); - __Pyx_GIVEREF(__pyx_tuple__935); - - /* "talib/func.pyx":7802 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_LN_Lookback( ) - */ - __pyx_tuple__936 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__936)) __PYX_ERR(0, 7802, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__936); - __Pyx_GIVEREF(__pyx_tuple__936); - - /* "talib/func.pyx":7836 - * double* outreal_data - * 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__937 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__937)) __PYX_ERR(0, 7836, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__937); - __Pyx_GIVEREF(__pyx_tuple__937); - - /* "talib/func.pyx":7838 - * 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__938 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__938)) __PYX_ERR(0, 7838, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__938); - __Pyx_GIVEREF(__pyx_tuple__938); - - /* "talib/func.pyx":7851 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_LOG10_Lookback( ) - */ - __pyx_tuple__939 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__939)) __PYX_ERR(0, 7851, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__939); - __Pyx_GIVEREF(__pyx_tuple__939); - - /* "talib/func.pyx":7888 - * double* outreal_data - * 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, 7888, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__940); - __Pyx_GIVEREF(__pyx_tuple__940); - - /* "talib/func.pyx":7890 - * 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, 7890, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__941); - __Pyx_GIVEREF(__pyx_tuple__941); - - /* "talib/func.pyx":7903 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_MA_Lookback( timeperiod , matype ) - */ - __pyx_tuple__942 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__942)) __PYX_ERR(0, 7903, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__942); - __Pyx_GIVEREF(__pyx_tuple__942); - - /* "talib/func.pyx":7947 - * double* outmacdhist_data - * 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__943 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__943)) __PYX_ERR(0, 7947, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__943); - __Pyx_GIVEREF(__pyx_tuple__943); - - /* "talib/func.pyx":7949 - * 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__944 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__944)) __PYX_ERR(0, 7949, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__944); - __Pyx_GIVEREF(__pyx_tuple__944); - - /* "talib/func.pyx":7962 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_MACD_Lookback( fastperiod , slowperiod , signalperiod ) - */ - __pyx_tuple__945 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__945)) __PYX_ERR(0, 7962, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__945); - __Pyx_GIVEREF(__pyx_tuple__945); - - /* "talib/func.pyx":8017 - * double* outmacdhist_data - * 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__946 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__946)) __PYX_ERR(0, 8017, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__946); - __Pyx_GIVEREF(__pyx_tuple__946); - - /* "talib/func.pyx":8019 - * 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__947 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__947)) __PYX_ERR(0, 8019, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__947); - __Pyx_GIVEREF(__pyx_tuple__947); - - /* "talib/func.pyx":8032 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_MACDEXT_Lookback( fastperiod , fastmatype , slowperiod , slowmatype , signalperiod , signalmatype ) - */ - __pyx_tuple__948 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__948)) __PYX_ERR(0, 8032, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__948); - __Pyx_GIVEREF(__pyx_tuple__948); - - /* "talib/func.pyx":8082 - * double* outmacdhist_data - * 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__949 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__949)) __PYX_ERR(0, 8082, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__949); - __Pyx_GIVEREF(__pyx_tuple__949); - - /* "talib/func.pyx":8084 - * 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__950 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__950)) __PYX_ERR(0, 8084, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__950); - __Pyx_GIVEREF(__pyx_tuple__950); - - /* "talib/func.pyx":8097 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_MACDFIX_Lookback( signalperiod ) - */ - __pyx_tuple__951 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__951)) __PYX_ERR(0, 8097, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__951); - __Pyx_GIVEREF(__pyx_tuple__951); - - /* "talib/func.pyx":8145 - * double* outfama_data - * 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__952 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__952)) __PYX_ERR(0, 8145, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__952); - __Pyx_GIVEREF(__pyx_tuple__952); - - /* "talib/func.pyx":8147 - * 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__953 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__953)) __PYX_ERR(0, 8147, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__953); - __Pyx_GIVEREF(__pyx_tuple__953); - - /* "talib/func.pyx":8160 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_MAMA_Lookback( fastlimit , slowlimit ) - */ - __pyx_tuple__954 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__954)) __PYX_ERR(0, 8160, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__954); - __Pyx_GIVEREF(__pyx_tuple__954); - - /* "talib/func.pyx":8204 - * double* outreal_data - * 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__955 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__955)) __PYX_ERR(0, 8204, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__955); - __Pyx_GIVEREF(__pyx_tuple__955); - - /* "talib/func.pyx":8206 - * 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__956 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__956)) __PYX_ERR(0, 8206, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__956); - __Pyx_GIVEREF(__pyx_tuple__956); - - /* "talib/func.pyx":8211 - * real_data = 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__957 = PyTuple_Pack(1, __pyx_kp_s_periods_is_not_double); if (unlikely(!__pyx_tuple__957)) __PYX_ERR(0, 8211, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__957); - __Pyx_GIVEREF(__pyx_tuple__957); - - /* "talib/func.pyx":8213 - * 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__958 = PyTuple_Pack(1, __pyx_kp_s_periods_has_wrong_dimensions); if (unlikely(!__pyx_tuple__958)) __PYX_ERR(0, 8213, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__958); - __Pyx_GIVEREF(__pyx_tuple__958); - - /* "talib/func.pyx":8219 - * length = real.shape[0] - * if length != periods.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_tuple__959 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__959)) __PYX_ERR(0, 8219, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__959); - __Pyx_GIVEREF(__pyx_tuple__959); - - /* "talib/func.pyx":8231 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_MAVP_Lookback( minperiod , maxperiod , matype ) - */ - __pyx_tuple__960 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__960)) __PYX_ERR(0, 8231, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__960); - __Pyx_GIVEREF(__pyx_tuple__960); - - /* "talib/func.pyx":8267 - * double* outreal_data - * 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__961 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__961)) __PYX_ERR(0, 8267, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__961); - __Pyx_GIVEREF(__pyx_tuple__961); - - /* "talib/func.pyx":8269 - * 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__962 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__962)) __PYX_ERR(0, 8269, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__962); - __Pyx_GIVEREF(__pyx_tuple__962); - - /* "talib/func.pyx":8282 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_MAX_Lookback( timeperiod ) - */ - __pyx_tuple__963 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__963)) __PYX_ERR(0, 8282, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__963); - __Pyx_GIVEREF(__pyx_tuple__963); - - /* "talib/func.pyx":8318 - * int* outinteger_data - * 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, 8318, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__964); - __Pyx_GIVEREF(__pyx_tuple__964); - - /* "talib/func.pyx":8320 - * 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, 8320, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__965); - __Pyx_GIVEREF(__pyx_tuple__965); - - /* "talib/func.pyx":8333 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_MAXINDEX_Lookback( timeperiod ) - */ - __pyx_tuple__966 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__966)) __PYX_ERR(0, 8333, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__966); - __Pyx_GIVEREF(__pyx_tuple__966); - - /* "talib/func.pyx":8368 - * double* outreal_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__967 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__967)) __PYX_ERR(0, 8368, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__967); - __Pyx_GIVEREF(__pyx_tuple__967); - - /* "talib/func.pyx":8370 - * raise 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__968 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__968)) __PYX_ERR(0, 8370, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__968); - __Pyx_GIVEREF(__pyx_tuple__968); - - /* "talib/func.pyx":8375 - * high_data = 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__969 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__969)) __PYX_ERR(0, 8375, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__969); - __Pyx_GIVEREF(__pyx_tuple__969); - - /* "talib/func.pyx":8377 - * raise 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__970 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__970)) __PYX_ERR(0, 8377, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__970); - __Pyx_GIVEREF(__pyx_tuple__970); - - /* "talib/func.pyx":8383 - * length = high.shape[0] - * if length != low.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_tuple__971 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__971)) __PYX_ERR(0, 8383, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__971); - __Pyx_GIVEREF(__pyx_tuple__971); - - /* "talib/func.pyx":8395 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_MEDPRICE_Lookback( ) - */ - __pyx_tuple__972 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__972)) __PYX_ERR(0, 8395, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__972); - __Pyx_GIVEREF(__pyx_tuple__972); - - /* "talib/func.pyx":8434 - * double* outreal_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__973 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__973)) __PYX_ERR(0, 8434, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__973); - __Pyx_GIVEREF(__pyx_tuple__973); - - /* "talib/func.pyx":8436 - * raise 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__974 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__974)) __PYX_ERR(0, 8436, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__974); - __Pyx_GIVEREF(__pyx_tuple__974); - - /* "talib/func.pyx":8441 - * high_data = 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__975 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__975)) __PYX_ERR(0, 8441, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__975); - __Pyx_GIVEREF(__pyx_tuple__975); - - /* "talib/func.pyx":8443 - * raise 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__976 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__976)) __PYX_ERR(0, 8443, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__976); - __Pyx_GIVEREF(__pyx_tuple__976); - - /* "talib/func.pyx":8448 - * low_data = 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__977 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__977)) __PYX_ERR(0, 8448, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__977); - __Pyx_GIVEREF(__pyx_tuple__977); - - /* "talib/func.pyx":8450 - * raise 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__978 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__978)) __PYX_ERR(0, 8450, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__978); - __Pyx_GIVEREF(__pyx_tuple__978); - - /* "talib/func.pyx":8455 - * close_data = 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__979 = PyTuple_Pack(1, __pyx_kp_s_volume_is_not_double); if (unlikely(!__pyx_tuple__979)) __PYX_ERR(0, 8455, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__979); - __Pyx_GIVEREF(__pyx_tuple__979); - - /* "talib/func.pyx":8457 - * 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__980 = PyTuple_Pack(1, __pyx_kp_s_volume_has_wrong_dimensions); if (unlikely(!__pyx_tuple__980)) __PYX_ERR(0, 8457, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__980); - __Pyx_GIVEREF(__pyx_tuple__980); - - /* "talib/func.pyx":8463 - * 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__981 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__981)) __PYX_ERR(0, 8463, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__981); - __Pyx_GIVEREF(__pyx_tuple__981); - - /* "talib/func.pyx":8465 - * 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__982 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__982)) __PYX_ERR(0, 8465, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__982); - __Pyx_GIVEREF(__pyx_tuple__982); - - /* "talib/func.pyx":8467 - * raise Exception("input lengths are different") - * if length != volume.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_tuple__983 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__983)) __PYX_ERR(0, 8467, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__983); - __Pyx_GIVEREF(__pyx_tuple__983); - - /* "talib/func.pyx":8485 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_MFI_Lookback( timeperiod ) - */ - __pyx_tuple__984 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__984)) __PYX_ERR(0, 8485, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__984); - __Pyx_GIVEREF(__pyx_tuple__984); - - /* "talib/func.pyx":8521 - * double* outreal_data - * 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__985 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__985)) __PYX_ERR(0, 8521, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__985); - __Pyx_GIVEREF(__pyx_tuple__985); - - /* "talib/func.pyx":8523 - * 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__986 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__986)) __PYX_ERR(0, 8523, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__986); - __Pyx_GIVEREF(__pyx_tuple__986); - - /* "talib/func.pyx":8536 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_MIDPOINT_Lookback( timeperiod ) - */ - __pyx_tuple__987 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__987)) __PYX_ERR(0, 8536, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__987); - __Pyx_GIVEREF(__pyx_tuple__987); - - /* "talib/func.pyx":8573 - * double* outreal_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__988 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__988)) __PYX_ERR(0, 8573, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__988); - __Pyx_GIVEREF(__pyx_tuple__988); - - /* "talib/func.pyx":8575 - * raise 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__989 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__989)) __PYX_ERR(0, 8575, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__989); - __Pyx_GIVEREF(__pyx_tuple__989); - - /* "talib/func.pyx":8580 - * high_data = 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__990 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__990)) __PYX_ERR(0, 8580, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__990); - __Pyx_GIVEREF(__pyx_tuple__990); - - /* "talib/func.pyx":8582 - * raise 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__991 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__991)) __PYX_ERR(0, 8582, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__991); - __Pyx_GIVEREF(__pyx_tuple__991); - - /* "talib/func.pyx":8588 - * length = high.shape[0] - * if length != low.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_tuple__992 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__992)) __PYX_ERR(0, 8588, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__992); - __Pyx_GIVEREF(__pyx_tuple__992); - - /* "talib/func.pyx":8600 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_MIDPRICE_Lookback( timeperiod ) - */ - __pyx_tuple__993 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__993)) __PYX_ERR(0, 8600, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__993); - __Pyx_GIVEREF(__pyx_tuple__993); - - /* "talib/func.pyx":8636 - * double* outreal_data - * 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__994 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__994)) __PYX_ERR(0, 8636, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__994); - __Pyx_GIVEREF(__pyx_tuple__994); - - /* "talib/func.pyx":8638 - * 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__995 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__995)) __PYX_ERR(0, 8638, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__995); - __Pyx_GIVEREF(__pyx_tuple__995); - - /* "talib/func.pyx":8651 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_MIN_Lookback( timeperiod ) - */ - __pyx_tuple__996 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__996)) __PYX_ERR(0, 8651, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__996); - __Pyx_GIVEREF(__pyx_tuple__996); - - /* "talib/func.pyx":8687 - * int* outinteger_data - * 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, 8687, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__997); - __Pyx_GIVEREF(__pyx_tuple__997); - - /* "talib/func.pyx":8689 - * 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, 8689, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__998); - __Pyx_GIVEREF(__pyx_tuple__998); - - /* "talib/func.pyx":8702 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_MININDEX_Lookback( timeperiod ) - */ - __pyx_tuple__999 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__999)) __PYX_ERR(0, 8702, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__999); - __Pyx_GIVEREF(__pyx_tuple__999); - - /* "talib/func.pyx":8741 - * double* outmax_data - * 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__1000 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__1000)) __PYX_ERR(0, 8741, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1000); - __Pyx_GIVEREF(__pyx_tuple__1000); - - /* "talib/func.pyx":8743 - * 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__1001 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1001)) __PYX_ERR(0, 8743, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1001); - __Pyx_GIVEREF(__pyx_tuple__1001); - - /* "talib/func.pyx":8756 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_MINMAX_Lookback( timeperiod ) - */ - __pyx_tuple__1002 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__1002)) __PYX_ERR(0, 8756, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1002); - __Pyx_GIVEREF(__pyx_tuple__1002); - - /* "talib/func.pyx":8799 - * int* outmaxidx_data - * 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__1003 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__1003)) __PYX_ERR(0, 8799, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1003); - __Pyx_GIVEREF(__pyx_tuple__1003); - - /* "talib/func.pyx":8801 - * 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__1004 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1004)) __PYX_ERR(0, 8801, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1004); - __Pyx_GIVEREF(__pyx_tuple__1004); - - /* "talib/func.pyx":8814 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_MINMAXINDEX_Lookback( timeperiod ) - */ - __pyx_tuple__1005 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__1005)) __PYX_ERR(0, 8814, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1005); - __Pyx_GIVEREF(__pyx_tuple__1005); - - /* "talib/func.pyx":8856 - * double* outreal_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__1006 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__1006)) __PYX_ERR(0, 8856, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1006); - __Pyx_GIVEREF(__pyx_tuple__1006); - - /* "talib/func.pyx":8858 - * raise 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__1007 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1007)) __PYX_ERR(0, 8858, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1007); - __Pyx_GIVEREF(__pyx_tuple__1007); - - /* "talib/func.pyx":8863 - * high_data = 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__1008 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__1008)) __PYX_ERR(0, 8863, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1008); - __Pyx_GIVEREF(__pyx_tuple__1008); - - /* "talib/func.pyx":8865 - * raise 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__1009 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1009)) __PYX_ERR(0, 8865, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1009); - __Pyx_GIVEREF(__pyx_tuple__1009); - - /* "talib/func.pyx":8870 - * low_data = 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__1010 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__1010)) __PYX_ERR(0, 8870, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1010); - __Pyx_GIVEREF(__pyx_tuple__1010); - - /* "talib/func.pyx":8872 - * raise 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__1011 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1011)) __PYX_ERR(0, 8872, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1011); - __Pyx_GIVEREF(__pyx_tuple__1011); - - /* "talib/func.pyx":8878 - * 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__1012 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1012)) __PYX_ERR(0, 8878, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1012); - __Pyx_GIVEREF(__pyx_tuple__1012); - - /* "talib/func.pyx":8880 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_tuple__1013 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1013)) __PYX_ERR(0, 8880, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1013); - __Pyx_GIVEREF(__pyx_tuple__1013); - - /* "talib/func.pyx":8895 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_MINUS_DI_Lookback( timeperiod ) - */ - __pyx_tuple__1014 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__1014)) __PYX_ERR(0, 8895, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1014); - __Pyx_GIVEREF(__pyx_tuple__1014); - - /* "talib/func.pyx":8932 - * double* outreal_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__1015 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__1015)) __PYX_ERR(0, 8932, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1015); - __Pyx_GIVEREF(__pyx_tuple__1015); - - /* "talib/func.pyx":8934 - * raise 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__1016 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1016)) __PYX_ERR(0, 8934, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1016); - __Pyx_GIVEREF(__pyx_tuple__1016); - - /* "talib/func.pyx":8939 - * high_data = 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__1017 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__1017)) __PYX_ERR(0, 8939, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1017); - __Pyx_GIVEREF(__pyx_tuple__1017); - - /* "talib/func.pyx":8941 - * raise 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__1018 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1018)) __PYX_ERR(0, 8941, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1018); - __Pyx_GIVEREF(__pyx_tuple__1018); - - /* "talib/func.pyx":8947 - * length = high.shape[0] - * if length != low.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_tuple__1019 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1019)) __PYX_ERR(0, 8947, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1019); - __Pyx_GIVEREF(__pyx_tuple__1019); - - /* "talib/func.pyx":8959 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_MINUS_DM_Lookback( timeperiod ) - */ - __pyx_tuple__1020 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__1020)) __PYX_ERR(0, 8959, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1020); - __Pyx_GIVEREF(__pyx_tuple__1020); - - /* "talib/func.pyx":8995 - * double* outreal_data - * 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__1021 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__1021)) __PYX_ERR(0, 8995, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1021); - __Pyx_GIVEREF(__pyx_tuple__1021); - - /* "talib/func.pyx":8997 - * 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__1022 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1022)) __PYX_ERR(0, 8997, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1022); - __Pyx_GIVEREF(__pyx_tuple__1022); - - /* "talib/func.pyx":9010 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_MOM_Lookback( timeperiod ) - */ - __pyx_tuple__1023 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__1023)) __PYX_ERR(0, 9010, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1023); - __Pyx_GIVEREF(__pyx_tuple__1023); - - /* "talib/func.pyx":9046 - * double* outreal_data - * 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__1024 = PyTuple_Pack(1, __pyx_kp_s_real0_is_not_double); if (unlikely(!__pyx_tuple__1024)) __PYX_ERR(0, 9046, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1024); - __Pyx_GIVEREF(__pyx_tuple__1024); - - /* "talib/func.pyx":9048 - * 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__1025 = PyTuple_Pack(1, __pyx_kp_s_real0_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1025)) __PYX_ERR(0, 9048, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1025); - __Pyx_GIVEREF(__pyx_tuple__1025); - - /* "talib/func.pyx":9053 - * real0_data = 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__1026 = PyTuple_Pack(1, __pyx_kp_s_real1_is_not_double); if (unlikely(!__pyx_tuple__1026)) __PYX_ERR(0, 9053, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1026); - __Pyx_GIVEREF(__pyx_tuple__1026); - - /* "talib/func.pyx":9055 - * 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__1027 = PyTuple_Pack(1, __pyx_kp_s_real1_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1027)) __PYX_ERR(0, 9055, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1027); - __Pyx_GIVEREF(__pyx_tuple__1027); - - /* "talib/func.pyx":9061 - * length = real0.shape[0] - * if length != real1.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_tuple__1028 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1028)) __PYX_ERR(0, 9061, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1028); - __Pyx_GIVEREF(__pyx_tuple__1028); - - /* "talib/func.pyx":9073 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_MULT_Lookback( ) - */ - __pyx_tuple__1029 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__1029)) __PYX_ERR(0, 9073, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1029); - __Pyx_GIVEREF(__pyx_tuple__1029); - - /* "talib/func.pyx":9111 - * double* outreal_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__1030 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__1030)) __PYX_ERR(0, 9111, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1030); - __Pyx_GIVEREF(__pyx_tuple__1030); - - /* "talib/func.pyx":9113 - * raise 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__1031 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1031)) __PYX_ERR(0, 9113, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1031); - __Pyx_GIVEREF(__pyx_tuple__1031); - - /* "talib/func.pyx":9118 - * high_data = 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__1032 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__1032)) __PYX_ERR(0, 9118, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1032); - __Pyx_GIVEREF(__pyx_tuple__1032); - - /* "talib/func.pyx":9120 - * raise 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__1033 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1033)) __PYX_ERR(0, 9120, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1033); - __Pyx_GIVEREF(__pyx_tuple__1033); - - /* "talib/func.pyx":9125 - * low_data = 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__1034 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__1034)) __PYX_ERR(0, 9125, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1034); - __Pyx_GIVEREF(__pyx_tuple__1034); - - /* "talib/func.pyx":9127 - * raise 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__1035 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1035)) __PYX_ERR(0, 9127, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1035); - __Pyx_GIVEREF(__pyx_tuple__1035); - - /* "talib/func.pyx":9133 - * 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__1036 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1036)) __PYX_ERR(0, 9133, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1036); - __Pyx_GIVEREF(__pyx_tuple__1036); - - /* "talib/func.pyx":9135 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_tuple__1037 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1037)) __PYX_ERR(0, 9135, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1037); - __Pyx_GIVEREF(__pyx_tuple__1037); - - /* "talib/func.pyx":9150 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_NATR_Lookback( timeperiod ) - */ - __pyx_tuple__1038 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__1038)) __PYX_ERR(0, 9150, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1038); - __Pyx_GIVEREF(__pyx_tuple__1038); - - /* "talib/func.pyx":9186 - * double* outreal_data - * 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__1039 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__1039)) __PYX_ERR(0, 9186, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1039); - __Pyx_GIVEREF(__pyx_tuple__1039); - - /* "talib/func.pyx":9188 - * 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__1040 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1040)) __PYX_ERR(0, 9188, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1040); - __Pyx_GIVEREF(__pyx_tuple__1040); - - /* "talib/func.pyx":9193 - * real_data = 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__1041 = PyTuple_Pack(1, __pyx_kp_s_volume_is_not_double); if (unlikely(!__pyx_tuple__1041)) __PYX_ERR(0, 9193, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1041); - __Pyx_GIVEREF(__pyx_tuple__1041); - - /* "talib/func.pyx":9195 - * 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__1042 = PyTuple_Pack(1, __pyx_kp_s_volume_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1042)) __PYX_ERR(0, 9195, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1042); - __Pyx_GIVEREF(__pyx_tuple__1042); - - /* "talib/func.pyx":9201 - * length = real.shape[0] - * if length != volume.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_tuple__1043 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1043)) __PYX_ERR(0, 9201, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1043); - __Pyx_GIVEREF(__pyx_tuple__1043); - - /* "talib/func.pyx":9213 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_OBV_Lookback( ) - */ - __pyx_tuple__1044 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__1044)) __PYX_ERR(0, 9213, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1044); - __Pyx_GIVEREF(__pyx_tuple__1044); - - /* "talib/func.pyx":9251 - * double* outreal_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__1045 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__1045)) __PYX_ERR(0, 9251, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1045); - __Pyx_GIVEREF(__pyx_tuple__1045); - - /* "talib/func.pyx":9253 - * raise 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__1046 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1046)) __PYX_ERR(0, 9253, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1046); - __Pyx_GIVEREF(__pyx_tuple__1046); - - /* "talib/func.pyx":9258 - * high_data = 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__1047 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__1047)) __PYX_ERR(0, 9258, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1047); - __Pyx_GIVEREF(__pyx_tuple__1047); - - /* "talib/func.pyx":9260 - * raise 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__1048 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1048)) __PYX_ERR(0, 9260, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1048); - __Pyx_GIVEREF(__pyx_tuple__1048); - - /* "talib/func.pyx":9265 - * low_data = 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__1049 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__1049)) __PYX_ERR(0, 9265, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1049); - __Pyx_GIVEREF(__pyx_tuple__1049); - - /* "talib/func.pyx":9267 - * raise 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__1050 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1050)) __PYX_ERR(0, 9267, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1050); - __Pyx_GIVEREF(__pyx_tuple__1050); - - /* "talib/func.pyx":9273 - * 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__1051 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1051)) __PYX_ERR(0, 9273, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1051); - __Pyx_GIVEREF(__pyx_tuple__1051); - - /* "talib/func.pyx":9275 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_tuple__1052 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1052)) __PYX_ERR(0, 9275, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1052); - __Pyx_GIVEREF(__pyx_tuple__1052); - - /* "talib/func.pyx":9290 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_PLUS_DI_Lookback( timeperiod ) - */ - __pyx_tuple__1053 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__1053)) __PYX_ERR(0, 9290, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1053); - __Pyx_GIVEREF(__pyx_tuple__1053); - - /* "talib/func.pyx":9327 - * double* outreal_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__1054 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__1054)) __PYX_ERR(0, 9327, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1054); - __Pyx_GIVEREF(__pyx_tuple__1054); - - /* "talib/func.pyx":9329 - * raise 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__1055 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1055)) __PYX_ERR(0, 9329, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1055); - __Pyx_GIVEREF(__pyx_tuple__1055); - - /* "talib/func.pyx":9334 - * high_data = 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__1056 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__1056)) __PYX_ERR(0, 9334, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1056); - __Pyx_GIVEREF(__pyx_tuple__1056); - - /* "talib/func.pyx":9336 - * raise 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__1057 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1057)) __PYX_ERR(0, 9336, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1057); - __Pyx_GIVEREF(__pyx_tuple__1057); - - /* "talib/func.pyx":9342 - * length = high.shape[0] - * if length != low.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_tuple__1058 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1058)) __PYX_ERR(0, 9342, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1058); - __Pyx_GIVEREF(__pyx_tuple__1058); - - /* "talib/func.pyx":9354 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_PLUS_DM_Lookback( timeperiod ) - */ - __pyx_tuple__1059 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__1059)) __PYX_ERR(0, 9354, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1059); - __Pyx_GIVEREF(__pyx_tuple__1059); - - /* "talib/func.pyx":9392 - * double* outreal_data - * 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__1060 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__1060)) __PYX_ERR(0, 9392, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1060); - __Pyx_GIVEREF(__pyx_tuple__1060); - - /* "talib/func.pyx":9394 - * 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__1061 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1061)) __PYX_ERR(0, 9394, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1061); - __Pyx_GIVEREF(__pyx_tuple__1061); - - /* "talib/func.pyx":9407 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_PPO_Lookback( fastperiod , slowperiod , matype ) - */ - __pyx_tuple__1062 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__1062)) __PYX_ERR(0, 9407, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1062); - __Pyx_GIVEREF(__pyx_tuple__1062); - - /* "talib/func.pyx":9443 - * double* outreal_data - * 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__1063 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__1063)) __PYX_ERR(0, 9443, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1063); - __Pyx_GIVEREF(__pyx_tuple__1063); - - /* "talib/func.pyx":9445 - * 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__1064 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1064)) __PYX_ERR(0, 9445, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1064); - __Pyx_GIVEREF(__pyx_tuple__1064); - - /* "talib/func.pyx":9458 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_ROC_Lookback( timeperiod ) - */ - __pyx_tuple__1065 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__1065)) __PYX_ERR(0, 9458, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1065); - __Pyx_GIVEREF(__pyx_tuple__1065); - - /* "talib/func.pyx":9494 - * double* outreal_data - * 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__1066 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__1066)) __PYX_ERR(0, 9494, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1066); - __Pyx_GIVEREF(__pyx_tuple__1066); - - /* "talib/func.pyx":9496 - * 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__1067 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1067)) __PYX_ERR(0, 9496, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1067); - __Pyx_GIVEREF(__pyx_tuple__1067); - - /* "talib/func.pyx":9509 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_ROCP_Lookback( timeperiod ) - */ - __pyx_tuple__1068 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__1068)) __PYX_ERR(0, 9509, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1068); - __Pyx_GIVEREF(__pyx_tuple__1068); - - /* "talib/func.pyx":9545 - * double* outreal_data - * 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__1069 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__1069)) __PYX_ERR(0, 9545, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1069); - __Pyx_GIVEREF(__pyx_tuple__1069); - - /* "talib/func.pyx":9547 - * 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__1070 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1070)) __PYX_ERR(0, 9547, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1070); - __Pyx_GIVEREF(__pyx_tuple__1070); - - /* "talib/func.pyx":9560 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_ROCR_Lookback( timeperiod ) - */ - __pyx_tuple__1071 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__1071)) __PYX_ERR(0, 9560, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1071); - __Pyx_GIVEREF(__pyx_tuple__1071); - - /* "talib/func.pyx":9596 - * double* outreal_data - * 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__1072 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__1072)) __PYX_ERR(0, 9596, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1072); - __Pyx_GIVEREF(__pyx_tuple__1072); - - /* "talib/func.pyx":9598 - * 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__1073 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1073)) __PYX_ERR(0, 9598, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1073); - __Pyx_GIVEREF(__pyx_tuple__1073); - - /* "talib/func.pyx":9611 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_ROCR100_Lookback( timeperiod ) - */ - __pyx_tuple__1074 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__1074)) __PYX_ERR(0, 9611, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1074); - __Pyx_GIVEREF(__pyx_tuple__1074); - - /* "talib/func.pyx":9647 - * double* outreal_data - * 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__1075 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__1075)) __PYX_ERR(0, 9647, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1075); - __Pyx_GIVEREF(__pyx_tuple__1075); - - /* "talib/func.pyx":9649 - * 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__1076 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1076)) __PYX_ERR(0, 9649, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1076); - __Pyx_GIVEREF(__pyx_tuple__1076); - - /* "talib/func.pyx":9662 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_RSI_Lookback( timeperiod ) - */ - __pyx_tuple__1077 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__1077)) __PYX_ERR(0, 9662, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1077); - __Pyx_GIVEREF(__pyx_tuple__1077); - - /* "talib/func.pyx":9700 - * double* outreal_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__1078 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__1078)) __PYX_ERR(0, 9700, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1078); - __Pyx_GIVEREF(__pyx_tuple__1078); - - /* "talib/func.pyx":9702 - * raise 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__1079 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1079)) __PYX_ERR(0, 9702, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1079); - __Pyx_GIVEREF(__pyx_tuple__1079); - - /* "talib/func.pyx":9707 - * high_data = 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__1080 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__1080)) __PYX_ERR(0, 9707, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1080); - __Pyx_GIVEREF(__pyx_tuple__1080); - - /* "talib/func.pyx":9709 - * raise 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__1081 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1081)) __PYX_ERR(0, 9709, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1081); - __Pyx_GIVEREF(__pyx_tuple__1081); - - /* "talib/func.pyx":9715 - * length = high.shape[0] - * if length != low.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_tuple__1082 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1082)) __PYX_ERR(0, 9715, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1082); - __Pyx_GIVEREF(__pyx_tuple__1082); - - /* "talib/func.pyx":9727 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_SAR_Lookback( acceleration , maximum ) - */ - __pyx_tuple__1083 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__1083)) __PYX_ERR(0, 9727, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1083); - __Pyx_GIVEREF(__pyx_tuple__1083); - - /* "talib/func.pyx":9771 - * double* outreal_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__1084 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__1084)) __PYX_ERR(0, 9771, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1084); - __Pyx_GIVEREF(__pyx_tuple__1084); - - /* "talib/func.pyx":9773 - * raise 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__1085 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1085)) __PYX_ERR(0, 9773, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1085); - __Pyx_GIVEREF(__pyx_tuple__1085); - - /* "talib/func.pyx":9778 - * high_data = 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__1086 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__1086)) __PYX_ERR(0, 9778, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1086); - __Pyx_GIVEREF(__pyx_tuple__1086); - - /* "talib/func.pyx":9780 - * raise 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__1087 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1087)) __PYX_ERR(0, 9780, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1087); - __Pyx_GIVEREF(__pyx_tuple__1087); - - /* "talib/func.pyx":9786 - * length = high.shape[0] - * if length != low.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_tuple__1088 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1088)) __PYX_ERR(0, 9786, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1088); - __Pyx_GIVEREF(__pyx_tuple__1088); - - /* "talib/func.pyx":9798 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_SAREXT_Lookback( startvalue , offsetonreverse , accelerationinitlong , accelerationlong , accelerationmaxlong , accelerationinitshort , accelerationshort , accelerationmaxshort ) - */ - __pyx_tuple__1089 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__1089)) __PYX_ERR(0, 9798, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1089); - __Pyx_GIVEREF(__pyx_tuple__1089); - - /* "talib/func.pyx":9832 - * double* outreal_data - * 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__1090 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__1090)) __PYX_ERR(0, 9832, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1090); - __Pyx_GIVEREF(__pyx_tuple__1090); - - /* "talib/func.pyx":9834 - * 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__1091 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1091)) __PYX_ERR(0, 9834, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1091); - __Pyx_GIVEREF(__pyx_tuple__1091); - - /* "talib/func.pyx":9847 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_SIN_Lookback( ) - */ - __pyx_tuple__1092 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__1092)) __PYX_ERR(0, 9847, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1092); - __Pyx_GIVEREF(__pyx_tuple__1092); - - /* "talib/func.pyx":9881 - * double* outreal_data - * 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__1093 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__1093)) __PYX_ERR(0, 9881, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1093); - __Pyx_GIVEREF(__pyx_tuple__1093); - - /* "talib/func.pyx":9883 - * 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__1094 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1094)) __PYX_ERR(0, 9883, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1094); - __Pyx_GIVEREF(__pyx_tuple__1094); - - /* "talib/func.pyx":9896 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_SINH_Lookback( ) - */ - __pyx_tuple__1095 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__1095)) __PYX_ERR(0, 9896, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1095); - __Pyx_GIVEREF(__pyx_tuple__1095); - - /* "talib/func.pyx":9932 - * double* outreal_data - * 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__1096 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__1096)) __PYX_ERR(0, 9932, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1096); - __Pyx_GIVEREF(__pyx_tuple__1096); - - /* "talib/func.pyx":9934 - * 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__1097 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1097)) __PYX_ERR(0, 9934, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1097); - __Pyx_GIVEREF(__pyx_tuple__1097); - - /* "talib/func.pyx":9947 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_SMA_Lookback( timeperiod ) - */ - __pyx_tuple__1098 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__1098)) __PYX_ERR(0, 9947, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1098); - __Pyx_GIVEREF(__pyx_tuple__1098); - - /* "talib/func.pyx":9981 - * double* outreal_data - * 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__1099 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__1099)) __PYX_ERR(0, 9981, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1099); - __Pyx_GIVEREF(__pyx_tuple__1099); - - /* "talib/func.pyx":9983 - * 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__1100 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1100)) __PYX_ERR(0, 9983, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1100); - __Pyx_GIVEREF(__pyx_tuple__1100); - - /* "talib/func.pyx":9996 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_SQRT_Lookback( ) - */ - __pyx_tuple__1101 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__1101)) __PYX_ERR(0, 9996, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1101); - __Pyx_GIVEREF(__pyx_tuple__1101); - - /* "talib/func.pyx":10033 - * double* outreal_data - * 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__1102 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__1102)) __PYX_ERR(0, 10033, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1102); - __Pyx_GIVEREF(__pyx_tuple__1102); - - /* "talib/func.pyx":10035 - * 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__1103 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1103)) __PYX_ERR(0, 10035, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1103); - __Pyx_GIVEREF(__pyx_tuple__1103); - - /* "talib/func.pyx":10048 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_STDDEV_Lookback( timeperiod , nbdev ) - */ - __pyx_tuple__1104 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__1104)) __PYX_ERR(0, 10048, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1104); - __Pyx_GIVEREF(__pyx_tuple__1104); - - /* "talib/func.pyx":10093 - * double* outslowd_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__1105 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__1105)) __PYX_ERR(0, 10093, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1105); - __Pyx_GIVEREF(__pyx_tuple__1105); - - /* "talib/func.pyx":10095 - * raise 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__1106 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1106)) __PYX_ERR(0, 10095, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1106); - __Pyx_GIVEREF(__pyx_tuple__1106); - - /* "talib/func.pyx":10100 - * high_data = 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__1107 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__1107)) __PYX_ERR(0, 10100, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1107); - __Pyx_GIVEREF(__pyx_tuple__1107); - - /* "talib/func.pyx":10102 - * raise 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__1108 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1108)) __PYX_ERR(0, 10102, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1108); - __Pyx_GIVEREF(__pyx_tuple__1108); - - /* "talib/func.pyx":10107 - * low_data = 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__1109 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__1109)) __PYX_ERR(0, 10107, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1109); - __Pyx_GIVEREF(__pyx_tuple__1109); - - /* "talib/func.pyx":10109 - * raise 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__1110 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1110)) __PYX_ERR(0, 10109, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1110); - __Pyx_GIVEREF(__pyx_tuple__1110); - - /* "talib/func.pyx":10115 - * 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__1111 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1111)) __PYX_ERR(0, 10115, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1111); - __Pyx_GIVEREF(__pyx_tuple__1111); - - /* "talib/func.pyx":10117 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_tuple__1112 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1112)) __PYX_ERR(0, 10117, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1112); - __Pyx_GIVEREF(__pyx_tuple__1112); - - /* "talib/func.pyx":10132 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_STOCH_Lookback( fastk_period , slowk_period , slowk_matype , slowd_period , slowd_matype ) - */ - __pyx_tuple__1113 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__1113)) __PYX_ERR(0, 10132, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1113); - __Pyx_GIVEREF(__pyx_tuple__1113); - - /* "talib/func.pyx":10179 - * double* outfastd_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__1114 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__1114)) __PYX_ERR(0, 10179, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1114); - __Pyx_GIVEREF(__pyx_tuple__1114); - - /* "talib/func.pyx":10181 - * raise 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__1115 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1115)) __PYX_ERR(0, 10181, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1115); - __Pyx_GIVEREF(__pyx_tuple__1115); - - /* "talib/func.pyx":10186 - * high_data = 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__1116 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__1116)) __PYX_ERR(0, 10186, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1116); - __Pyx_GIVEREF(__pyx_tuple__1116); - - /* "talib/func.pyx":10188 - * raise 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__1117 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1117)) __PYX_ERR(0, 10188, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1117); - __Pyx_GIVEREF(__pyx_tuple__1117); - - /* "talib/func.pyx":10193 - * low_data = 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__1118 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__1118)) __PYX_ERR(0, 10193, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1118); - __Pyx_GIVEREF(__pyx_tuple__1118); - - /* "talib/func.pyx":10195 - * raise 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__1119 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1119)) __PYX_ERR(0, 10195, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1119); - __Pyx_GIVEREF(__pyx_tuple__1119); - - /* "talib/func.pyx":10201 - * 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__1120 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1120)) __PYX_ERR(0, 10201, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1120); - __Pyx_GIVEREF(__pyx_tuple__1120); - - /* "talib/func.pyx":10203 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_tuple__1121 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1121)) __PYX_ERR(0, 10203, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1121); - __Pyx_GIVEREF(__pyx_tuple__1121); - - /* "talib/func.pyx":10218 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_STOCHF_Lookback( fastk_period , fastd_period , fastd_matype ) - */ - __pyx_tuple__1122 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__1122)) __PYX_ERR(0, 10218, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1122); - __Pyx_GIVEREF(__pyx_tuple__1122); - - /* "talib/func.pyx":10264 - * double* outfastd_data - * 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__1123 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__1123)) __PYX_ERR(0, 10264, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1123); - __Pyx_GIVEREF(__pyx_tuple__1123); - - /* "talib/func.pyx":10266 - * 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__1124 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1124)) __PYX_ERR(0, 10266, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1124); - __Pyx_GIVEREF(__pyx_tuple__1124); - - /* "talib/func.pyx":10279 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_STOCHRSI_Lookback( timeperiod , fastk_period , fastd_period , fastd_matype ) - */ - __pyx_tuple__1125 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__1125)) __PYX_ERR(0, 10279, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1125); - __Pyx_GIVEREF(__pyx_tuple__1125); - - /* "talib/func.pyx":10319 - * double* outreal_data - * 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__1126 = PyTuple_Pack(1, __pyx_kp_s_real0_is_not_double); if (unlikely(!__pyx_tuple__1126)) __PYX_ERR(0, 10319, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1126); - __Pyx_GIVEREF(__pyx_tuple__1126); - - /* "talib/func.pyx":10321 - * 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__1127 = PyTuple_Pack(1, __pyx_kp_s_real0_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1127)) __PYX_ERR(0, 10321, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1127); - __Pyx_GIVEREF(__pyx_tuple__1127); - - /* "talib/func.pyx":10326 - * real0_data = 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__1128 = PyTuple_Pack(1, __pyx_kp_s_real1_is_not_double); if (unlikely(!__pyx_tuple__1128)) __PYX_ERR(0, 10326, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1128); - __Pyx_GIVEREF(__pyx_tuple__1128); - - /* "talib/func.pyx":10328 - * 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__1129 = PyTuple_Pack(1, __pyx_kp_s_real1_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1129)) __PYX_ERR(0, 10328, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1129); - __Pyx_GIVEREF(__pyx_tuple__1129); - - /* "talib/func.pyx":10334 - * length = real0.shape[0] - * if length != real1.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_tuple__1130 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1130)) __PYX_ERR(0, 10334, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1130); - __Pyx_GIVEREF(__pyx_tuple__1130); - - /* "talib/func.pyx":10346 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_SUB_Lookback( ) - */ - __pyx_tuple__1131 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__1131)) __PYX_ERR(0, 10346, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1131); - __Pyx_GIVEREF(__pyx_tuple__1131); - - /* "talib/func.pyx":10382 - * double* outreal_data - * 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__1132 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__1132)) __PYX_ERR(0, 10382, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1132); - __Pyx_GIVEREF(__pyx_tuple__1132); - - /* "talib/func.pyx":10384 - * 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__1133 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1133)) __PYX_ERR(0, 10384, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1133); - __Pyx_GIVEREF(__pyx_tuple__1133); - - /* "talib/func.pyx":10397 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_SUM_Lookback( timeperiod ) - */ - __pyx_tuple__1134 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__1134)) __PYX_ERR(0, 10397, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1134); - __Pyx_GIVEREF(__pyx_tuple__1134); - - /* "talib/func.pyx":10434 - * double* outreal_data - * 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__1135 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__1135)) __PYX_ERR(0, 10434, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1135); - __Pyx_GIVEREF(__pyx_tuple__1135); - - /* "talib/func.pyx":10436 - * 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__1136 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1136)) __PYX_ERR(0, 10436, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1136); - __Pyx_GIVEREF(__pyx_tuple__1136); - - /* "talib/func.pyx":10449 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_T3_Lookback( timeperiod , vfactor ) - */ - __pyx_tuple__1137 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__1137)) __PYX_ERR(0, 10449, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1137); - __Pyx_GIVEREF(__pyx_tuple__1137); - - /* "talib/func.pyx":10483 - * double* outreal_data - * 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__1138 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__1138)) __PYX_ERR(0, 10483, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1138); - __Pyx_GIVEREF(__pyx_tuple__1138); - - /* "talib/func.pyx":10485 - * 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__1139 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1139)) __PYX_ERR(0, 10485, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1139); - __Pyx_GIVEREF(__pyx_tuple__1139); - - /* "talib/func.pyx":10498 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_TAN_Lookback( ) - */ - __pyx_tuple__1140 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__1140)) __PYX_ERR(0, 10498, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1140); - __Pyx_GIVEREF(__pyx_tuple__1140); - - /* "talib/func.pyx":10532 - * double* outreal_data - * 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__1141 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__1141)) __PYX_ERR(0, 10532, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1141); - __Pyx_GIVEREF(__pyx_tuple__1141); - - /* "talib/func.pyx":10534 - * 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__1142 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1142)) __PYX_ERR(0, 10534, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1142); - __Pyx_GIVEREF(__pyx_tuple__1142); - - /* "talib/func.pyx":10547 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_TANH_Lookback( ) - */ - __pyx_tuple__1143 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__1143)) __PYX_ERR(0, 10547, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1143); - __Pyx_GIVEREF(__pyx_tuple__1143); - - /* "talib/func.pyx":10583 - * double* outreal_data - * 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__1144 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__1144)) __PYX_ERR(0, 10583, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1144); - __Pyx_GIVEREF(__pyx_tuple__1144); - - /* "talib/func.pyx":10585 - * 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__1145 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1145)) __PYX_ERR(0, 10585, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1145); - __Pyx_GIVEREF(__pyx_tuple__1145); - - /* "talib/func.pyx":10598 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_TEMA_Lookback( timeperiod ) - */ - __pyx_tuple__1146 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__1146)) __PYX_ERR(0, 10598, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1146); - __Pyx_GIVEREF(__pyx_tuple__1146); - - /* "talib/func.pyx":10634 - * double* outreal_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__1147 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__1147)) __PYX_ERR(0, 10634, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1147); - __Pyx_GIVEREF(__pyx_tuple__1147); - - /* "talib/func.pyx":10636 - * raise 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__1148 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1148)) __PYX_ERR(0, 10636, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1148); - __Pyx_GIVEREF(__pyx_tuple__1148); - - /* "talib/func.pyx":10641 - * high_data = 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__1149 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__1149)) __PYX_ERR(0, 10641, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1149); - __Pyx_GIVEREF(__pyx_tuple__1149); - - /* "talib/func.pyx":10643 - * raise 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__1150 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1150)) __PYX_ERR(0, 10643, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1150); - __Pyx_GIVEREF(__pyx_tuple__1150); - - /* "talib/func.pyx":10648 - * low_data = 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__1151 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__1151)) __PYX_ERR(0, 10648, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1151); - __Pyx_GIVEREF(__pyx_tuple__1151); - - /* "talib/func.pyx":10650 - * raise 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__1152 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1152)) __PYX_ERR(0, 10650, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1152); - __Pyx_GIVEREF(__pyx_tuple__1152); - - /* "talib/func.pyx":10656 - * 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__1153 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1153)) __PYX_ERR(0, 10656, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1153); - __Pyx_GIVEREF(__pyx_tuple__1153); - - /* "talib/func.pyx":10658 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_tuple__1154 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1154)) __PYX_ERR(0, 10658, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1154); - __Pyx_GIVEREF(__pyx_tuple__1154); - - /* "talib/func.pyx":10673 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_TRANGE_Lookback( ) - */ - __pyx_tuple__1155 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__1155)) __PYX_ERR(0, 10673, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1155); - __Pyx_GIVEREF(__pyx_tuple__1155); - - /* "talib/func.pyx":10709 - * double* outreal_data - * 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__1156 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__1156)) __PYX_ERR(0, 10709, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1156); - __Pyx_GIVEREF(__pyx_tuple__1156); - - /* "talib/func.pyx":10711 - * 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__1157 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1157)) __PYX_ERR(0, 10711, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1157); - __Pyx_GIVEREF(__pyx_tuple__1157); - - /* "talib/func.pyx":10724 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_TRIMA_Lookback( timeperiod ) - */ - __pyx_tuple__1158 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__1158)) __PYX_ERR(0, 10724, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1158); - __Pyx_GIVEREF(__pyx_tuple__1158); - - /* "talib/func.pyx":10760 - * double* outreal_data - * 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__1159 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__1159)) __PYX_ERR(0, 10760, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1159); - __Pyx_GIVEREF(__pyx_tuple__1159); - - /* "talib/func.pyx":10762 - * 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__1160 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1160)) __PYX_ERR(0, 10762, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1160); - __Pyx_GIVEREF(__pyx_tuple__1160); - - /* "talib/func.pyx":10775 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_TRIX_Lookback( timeperiod ) - */ - __pyx_tuple__1161 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__1161)) __PYX_ERR(0, 10775, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1161); - __Pyx_GIVEREF(__pyx_tuple__1161); - - /* "talib/func.pyx":10811 - * double* outreal_data - * 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__1162 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__1162)) __PYX_ERR(0, 10811, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1162); - __Pyx_GIVEREF(__pyx_tuple__1162); - - /* "talib/func.pyx":10813 - * 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__1163 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1163)) __PYX_ERR(0, 10813, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1163); - __Pyx_GIVEREF(__pyx_tuple__1163); - - /* "talib/func.pyx":10826 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_TSF_Lookback( timeperiod ) - */ - __pyx_tuple__1164 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__1164)) __PYX_ERR(0, 10826, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1164); - __Pyx_GIVEREF(__pyx_tuple__1164); - - /* "talib/func.pyx":10862 - * double* outreal_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__1165 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__1165)) __PYX_ERR(0, 10862, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1165); - __Pyx_GIVEREF(__pyx_tuple__1165); - - /* "talib/func.pyx":10864 - * raise 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__1166 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1166)) __PYX_ERR(0, 10864, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1166); - __Pyx_GIVEREF(__pyx_tuple__1166); - - /* "talib/func.pyx":10869 - * high_data = 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__1167 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__1167)) __PYX_ERR(0, 10869, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1167); - __Pyx_GIVEREF(__pyx_tuple__1167); - - /* "talib/func.pyx":10871 - * raise 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__1168 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1168)) __PYX_ERR(0, 10871, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1168); - __Pyx_GIVEREF(__pyx_tuple__1168); - - /* "talib/func.pyx":10876 - * low_data = 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__1169 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__1169)) __PYX_ERR(0, 10876, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1169); - __Pyx_GIVEREF(__pyx_tuple__1169); - - /* "talib/func.pyx":10878 - * raise 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__1170 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1170)) __PYX_ERR(0, 10878, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1170); - __Pyx_GIVEREF(__pyx_tuple__1170); - - /* "talib/func.pyx":10884 - * 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__1171 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1171)) __PYX_ERR(0, 10884, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1171); - __Pyx_GIVEREF(__pyx_tuple__1171); - - /* "talib/func.pyx":10886 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_tuple__1172 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1172)) __PYX_ERR(0, 10886, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1172); - __Pyx_GIVEREF(__pyx_tuple__1172); - - /* "talib/func.pyx":10901 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_TYPPRICE_Lookback( ) - */ - __pyx_tuple__1173 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__1173)) __PYX_ERR(0, 10901, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1173); - __Pyx_GIVEREF(__pyx_tuple__1173); - - /* "talib/func.pyx":10941 - * double* outreal_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__1174 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__1174)) __PYX_ERR(0, 10941, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1174); - __Pyx_GIVEREF(__pyx_tuple__1174); - - /* "talib/func.pyx":10943 - * raise 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__1175 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1175)) __PYX_ERR(0, 10943, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1175); - __Pyx_GIVEREF(__pyx_tuple__1175); - - /* "talib/func.pyx":10948 - * high_data = 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__1176 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__1176)) __PYX_ERR(0, 10948, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1176); - __Pyx_GIVEREF(__pyx_tuple__1176); - - /* "talib/func.pyx":10950 - * raise 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__1177 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1177)) __PYX_ERR(0, 10950, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1177); - __Pyx_GIVEREF(__pyx_tuple__1177); - - /* "talib/func.pyx":10955 - * low_data = 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__1178 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__1178)) __PYX_ERR(0, 10955, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1178); - __Pyx_GIVEREF(__pyx_tuple__1178); - - /* "talib/func.pyx":10957 - * raise 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__1179 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1179)) __PYX_ERR(0, 10957, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1179); - __Pyx_GIVEREF(__pyx_tuple__1179); - - /* "talib/func.pyx":10963 - * 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__1180 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1180)) __PYX_ERR(0, 10963, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1180); - __Pyx_GIVEREF(__pyx_tuple__1180); - - /* "talib/func.pyx":10965 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_tuple__1181 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1181)) __PYX_ERR(0, 10965, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1181); - __Pyx_GIVEREF(__pyx_tuple__1181); - - /* "talib/func.pyx":10980 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_ULTOSC_Lookback( timeperiod1 , timeperiod2 , timeperiod3 ) - */ - __pyx_tuple__1182 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__1182)) __PYX_ERR(0, 10980, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1182); - __Pyx_GIVEREF(__pyx_tuple__1182); - - /* "talib/func.pyx":11017 - * double* outreal_data - * 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__1183 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__1183)) __PYX_ERR(0, 11017, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1183); - __Pyx_GIVEREF(__pyx_tuple__1183); - - /* "talib/func.pyx":11019 - * 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__1184 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1184)) __PYX_ERR(0, 11019, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1184); - __Pyx_GIVEREF(__pyx_tuple__1184); - - /* "talib/func.pyx":11032 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_VAR_Lookback( timeperiod , nbdev ) - */ - __pyx_tuple__1185 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__1185)) __PYX_ERR(0, 11032, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1185); - __Pyx_GIVEREF(__pyx_tuple__1185); - - /* "talib/func.pyx":11068 - * double* outreal_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__1186 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__1186)) __PYX_ERR(0, 11068, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1186); - __Pyx_GIVEREF(__pyx_tuple__1186); - - /* "talib/func.pyx":11070 - * raise 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__1187 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1187)) __PYX_ERR(0, 11070, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1187); - __Pyx_GIVEREF(__pyx_tuple__1187); - - /* "talib/func.pyx":11075 - * high_data = 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__1188 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__1188)) __PYX_ERR(0, 11075, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1188); - __Pyx_GIVEREF(__pyx_tuple__1188); - - /* "talib/func.pyx":11077 - * raise 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__1189 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1189)) __PYX_ERR(0, 11077, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1189); - __Pyx_GIVEREF(__pyx_tuple__1189); - - /* "talib/func.pyx":11082 - * low_data = 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__1190 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__1190)) __PYX_ERR(0, 11082, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1190); - __Pyx_GIVEREF(__pyx_tuple__1190); - - /* "talib/func.pyx":11084 - * raise 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__1191 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1191)) __PYX_ERR(0, 11084, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1191); - __Pyx_GIVEREF(__pyx_tuple__1191); - - /* "talib/func.pyx":11090 - * 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__1192 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1192)) __PYX_ERR(0, 11090, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1192); - __Pyx_GIVEREF(__pyx_tuple__1192); - - /* "talib/func.pyx":11092 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_tuple__1193 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1193)) __PYX_ERR(0, 11092, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1193); - __Pyx_GIVEREF(__pyx_tuple__1193); - - /* "talib/func.pyx":11107 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_WCLPRICE_Lookback( ) - */ - __pyx_tuple__1194 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__1194)) __PYX_ERR(0, 11107, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1194); - __Pyx_GIVEREF(__pyx_tuple__1194); - - /* "talib/func.pyx":11145 - * double* outreal_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__1195 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__1195)) __PYX_ERR(0, 11145, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1195); - __Pyx_GIVEREF(__pyx_tuple__1195); - - /* "talib/func.pyx":11147 - * raise 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__1196 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1196)) __PYX_ERR(0, 11147, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1196); - __Pyx_GIVEREF(__pyx_tuple__1196); - - /* "talib/func.pyx":11152 - * high_data = 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__1197 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__1197)) __PYX_ERR(0, 11152, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1197); - __Pyx_GIVEREF(__pyx_tuple__1197); - - /* "talib/func.pyx":11154 - * raise 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__1198 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1198)) __PYX_ERR(0, 11154, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1198); - __Pyx_GIVEREF(__pyx_tuple__1198); - - /* "talib/func.pyx":11159 - * low_data = 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__1199 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__1199)) __PYX_ERR(0, 11159, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1199); - __Pyx_GIVEREF(__pyx_tuple__1199); - - /* "talib/func.pyx":11161 - * raise 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__1200 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1200)) __PYX_ERR(0, 11161, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1200); - __Pyx_GIVEREF(__pyx_tuple__1200); - - /* "talib/func.pyx":11167 - * 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__1201 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1201)) __PYX_ERR(0, 11167, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1201); - __Pyx_GIVEREF(__pyx_tuple__1201); - - /* "talib/func.pyx":11169 - * raise Exception("input lengths are different") - * if length != close.shape[0]: - * raise Exception("input lengths are different") # <<<<<<<<<<<<<< - * begidx = 0 - * for i from 0 <= i < length: - */ - __pyx_tuple__1202 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1202)) __PYX_ERR(0, 11169, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1202); - __Pyx_GIVEREF(__pyx_tuple__1202); - - /* "talib/func.pyx":11184 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_WILLR_Lookback( timeperiod ) - */ - __pyx_tuple__1203 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__1203)) __PYX_ERR(0, 11184, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1203); - __Pyx_GIVEREF(__pyx_tuple__1203); - - /* "talib/func.pyx":11220 - * double* outreal_data - * 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__1204 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__1204)) __PYX_ERR(0, 11220, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1204); - __Pyx_GIVEREF(__pyx_tuple__1204); - - /* "talib/func.pyx":11222 - * 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__1205 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1205)) __PYX_ERR(0, 11222, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1205); - __Pyx_GIVEREF(__pyx_tuple__1205); - - /* "talib/func.pyx":11235 - * break - * else: - * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< - * endidx = length - begidx - 1 - * lookback = begidx + lib.TA_WMA_Lookback( timeperiod ) - */ - __pyx_tuple__1206 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__1206)) __PYX_ERR(0, 11235, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1206); - __Pyx_GIVEREF(__pyx_tuple__1206); - - /* "../../../../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__1207 = PyTuple_Pack(1, __pyx_kp_u_ndarray_is_not_C_contiguous); if (unlikely(!__pyx_tuple__1207)) __PYX_ERR(1, 218, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1207); - __Pyx_GIVEREF(__pyx_tuple__1207); - - /* "../../../../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__1208 = PyTuple_Pack(1, __pyx_kp_u_ndarray_is_not_Fortran_contiguou); if (unlikely(!__pyx_tuple__1208)) __PYX_ERR(1, 222, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1208); - __Pyx_GIVEREF(__pyx_tuple__1208); - - /* "../../../../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__1209 = PyTuple_Pack(1, __pyx_kp_u_Non_native_byte_order_not_suppor); if (unlikely(!__pyx_tuple__1209)) __PYX_ERR(1, 259, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1209); - __Pyx_GIVEREF(__pyx_tuple__1209); - - /* "../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":799 - * - * if (end - f) - (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__1210 = PyTuple_Pack(1, __pyx_kp_u_Format_string_allocated_too_shor); if (unlikely(!__pyx_tuple__1210)) __PYX_ERR(1, 799, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1210); - __Pyx_GIVEREF(__pyx_tuple__1210); - - /* "../../../../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__1211 = PyTuple_Pack(1, __pyx_kp_u_Non_native_byte_order_not_suppor); if (unlikely(!__pyx_tuple__1211)) __PYX_ERR(1, 803, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1211); - __Pyx_GIVEREF(__pyx_tuple__1211); - - /* "../../../../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__1212 = PyTuple_Pack(1, __pyx_kp_u_Format_string_allocated_too_shor_2); if (unlikely(!__pyx_tuple__1212)) __PYX_ERR(1, 823, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1212); - __Pyx_GIVEREF(__pyx_tuple__1212); - - /* "talib/func.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__1213 = PyTuple_Pack(13, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1213)) __PYX_ERR(0, 24, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1213); - __Pyx_GIVEREF(__pyx_tuple__1213); - __pyx_codeobj__1214 = (PyObject*)__Pyx_PyCode_New(1, 0, 13, 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_ACOS, 24, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1214)) __PYX_ERR(0, 24, __pyx_L1_error) - - /* "talib/func.pyx":73 - * @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__1215 = PyTuple_Pack(19, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1215)) __PYX_ERR(0, 73, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1215); - __Pyx_GIVEREF(__pyx_tuple__1215); - __pyx_codeobj__1216 = (PyObject*)__Pyx_PyCode_New(4, 0, 19, 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_AD, 73, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1216)) __PYX_ERR(0, 73, __pyx_L1_error) - - /* "talib/func.pyx":161 - * @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__1217 = PyTuple_Pack(15, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1217)) __PYX_ERR(0, 161, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1217); - __Pyx_GIVEREF(__pyx_tuple__1217); - __pyx_codeobj__1218 = (PyObject*)__Pyx_PyCode_New(2, 0, 15, 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_ADD, 161, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1218)) __PYX_ERR(0, 161, __pyx_L1_error) - - /* "talib/func.pyx":224 - * @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__1219 = PyTuple_Pack(21, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1219)) __PYX_ERR(0, 224, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1219); - __Pyx_GIVEREF(__pyx_tuple__1219); - __pyx_codeobj__1220 = (PyObject*)__Pyx_PyCode_New(6, 0, 21, 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_ADOSC, 224, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1220)) __PYX_ERR(0, 224, __pyx_L1_error) - - /* "talib/func.pyx":315 - * @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__1221 = PyTuple_Pack(18, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1221)) __PYX_ERR(0, 315, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1221); - __Pyx_GIVEREF(__pyx_tuple__1221); - __pyx_codeobj__1222 = (PyObject*)__Pyx_PyCode_New(4, 0, 18, 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_ADX, 315, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1222)) __PYX_ERR(0, 315, __pyx_L1_error) - - /* "talib/func.pyx":392 - * @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__1223 = PyTuple_Pack(18, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1223)) __PYX_ERR(0, 392, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1223); - __Pyx_GIVEREF(__pyx_tuple__1223); - __pyx_codeobj__1224 = (PyObject*)__Pyx_PyCode_New(4, 0, 18, 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_ADXR, 392, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1224)) __PYX_ERR(0, 392, __pyx_L1_error) - - /* "talib/func.pyx":469 - * @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__1225 = PyTuple_Pack(16, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1225)) __PYX_ERR(0, 469, __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_APO, 469, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1226)) __PYX_ERR(0, 469, __pyx_L1_error) - - /* "talib/func.pyx":522 - * @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__1227 = PyTuple_Pack(18, __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_outaroondown_data, __pyx_n_s_outaroonup, __pyx_n_s_outaroonup_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1227)) __PYX_ERR(0, 522, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1227); - __Pyx_GIVEREF(__pyx_tuple__1227); - __pyx_codeobj__1228 = (PyObject*)__Pyx_PyCode_New(3, 0, 18, 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_AROON, 522, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1228)) __PYX_ERR(0, 522, __pyx_L1_error) - - /* "talib/func.pyx":593 - * @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__1229 = PyTuple_Pack(16, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1229)) __PYX_ERR(0, 593, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1229); - __Pyx_GIVEREF(__pyx_tuple__1229); - __pyx_codeobj__1230 = (PyObject*)__Pyx_PyCode_New(3, 0, 16, 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_AROONOSC, 593, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1230)) __PYX_ERR(0, 593, __pyx_L1_error) - - /* "talib/func.pyx":657 - * @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__1231 = PyTuple_Pack(13, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1231)) __PYX_ERR(0, 657, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1231); - __Pyx_GIVEREF(__pyx_tuple__1231); - __pyx_codeobj__1232 = (PyObject*)__Pyx_PyCode_New(1, 0, 13, 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_ASIN, 657, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1232)) __PYX_ERR(0, 657, __pyx_L1_error) - - /* "talib/func.pyx":706 - * @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__1233 = PyTuple_Pack(13, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1233)) __PYX_ERR(0, 706, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1233); - __Pyx_GIVEREF(__pyx_tuple__1233); - __pyx_codeobj__1234 = (PyObject*)__Pyx_PyCode_New(1, 0, 13, 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_ATAN, 706, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1234)) __PYX_ERR(0, 706, __pyx_L1_error) - - /* "talib/func.pyx":755 - * @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__1235 = PyTuple_Pack(18, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1235)) __PYX_ERR(0, 755, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1235); - __Pyx_GIVEREF(__pyx_tuple__1235); - __pyx_codeobj__1236 = (PyObject*)__Pyx_PyCode_New(4, 0, 18, 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_ATR, 755, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1236)) __PYX_ERR(0, 755, __pyx_L1_error) - - /* "talib/func.pyx":832 - * @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__1237 = PyTuple_Pack(19, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1237)) __PYX_ERR(0, 832, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1237); - __Pyx_GIVEREF(__pyx_tuple__1237); - __pyx_codeobj__1238 = (PyObject*)__Pyx_PyCode_New(4, 0, 19, 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_AVGPRICE, 832, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1238)) __PYX_ERR(0, 832, __pyx_L1_error) - - /* "talib/func.pyx":920 - * @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__1239 = PyTuple_Pack(21, __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_outrealupperband_data, __pyx_n_s_outrealmiddleband, __pyx_n_s_outrealmiddleband_data, __pyx_n_s_outreallowerband, __pyx_n_s_outreallowerband_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1239)) __PYX_ERR(0, 920, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1239); - __Pyx_GIVEREF(__pyx_tuple__1239); - __pyx_codeobj__1240 = (PyObject*)__Pyx_PyCode_New(5, 0, 21, 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_BBANDS, 920, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1240)) __PYX_ERR(0, 920, __pyx_L1_error) - - /* "talib/func.pyx":988 - * @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__1241 = PyTuple_Pack(16, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1241)) __PYX_ERR(0, 988, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1241); - __Pyx_GIVEREF(__pyx_tuple__1241); - __pyx_codeobj__1242 = (PyObject*)__Pyx_PyCode_New(3, 0, 16, 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_BETA, 988, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1242)) __PYX_ERR(0, 988, __pyx_L1_error) - - /* "talib/func.pyx":1053 - * @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__1243 = PyTuple_Pack(19, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1243)) __PYX_ERR(0, 1053, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1243); - __Pyx_GIVEREF(__pyx_tuple__1243); - __pyx_codeobj__1244 = (PyObject*)__Pyx_PyCode_New(4, 0, 19, 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_BOP, 1053, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1244)) __PYX_ERR(0, 1053, __pyx_L1_error) - - /* "talib/func.pyx":1141 - * @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__1245 = PyTuple_Pack(18, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1245)) __PYX_ERR(0, 1141, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1245); - __Pyx_GIVEREF(__pyx_tuple__1245); - __pyx_codeobj__1246 = (PyObject*)__Pyx_PyCode_New(4, 0, 18, 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_CCI, 1141, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1246)) __PYX_ERR(0, 1141, __pyx_L1_error) - - /* "talib/func.pyx":1218 - * @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__1247 = PyTuple_Pack(19, __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, __pyx_n_s_outinteger_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1247)) __PYX_ERR(0, 1218, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1247); - __Pyx_GIVEREF(__pyx_tuple__1247); - __pyx_codeobj__1248 = (PyObject*)__Pyx_PyCode_New(4, 0, 19, 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_CDL2CROWS, 1218, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1248)) __PYX_ERR(0, 1218, __pyx_L1_error) - - /* "talib/func.pyx":1306 - * @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__1249 = PyTuple_Pack(19, __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, __pyx_n_s_outinteger_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1249)) __PYX_ERR(0, 1306, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1249); - __Pyx_GIVEREF(__pyx_tuple__1249); - __pyx_codeobj__1250 = (PyObject*)__Pyx_PyCode_New(4, 0, 19, 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_CDL3BLACKCROWS, 1306, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1250)) __PYX_ERR(0, 1306, __pyx_L1_error) - - /* "talib/func.pyx":1394 - * @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__1251 = PyTuple_Pack(19, __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, __pyx_n_s_outinteger_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1251)) __PYX_ERR(0, 1394, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1251); - __Pyx_GIVEREF(__pyx_tuple__1251); - __pyx_codeobj__1252 = (PyObject*)__Pyx_PyCode_New(4, 0, 19, 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_CDL3INSIDE, 1394, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1252)) __PYX_ERR(0, 1394, __pyx_L1_error) - - /* "talib/func.pyx":1482 - * @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__1253 = PyTuple_Pack(19, __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, __pyx_n_s_outinteger_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1253)) __PYX_ERR(0, 1482, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1253); - __Pyx_GIVEREF(__pyx_tuple__1253); - __pyx_codeobj__1254 = (PyObject*)__Pyx_PyCode_New(4, 0, 19, 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_CDL3LINESTRIKE, 1482, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1254)) __PYX_ERR(0, 1482, __pyx_L1_error) - - /* "talib/func.pyx":1570 - * @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__1255 = PyTuple_Pack(19, __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, __pyx_n_s_outinteger_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1255)) __PYX_ERR(0, 1570, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1255); - __Pyx_GIVEREF(__pyx_tuple__1255); - __pyx_codeobj__1256 = (PyObject*)__Pyx_PyCode_New(4, 0, 19, 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_CDL3OUTSIDE, 1570, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1256)) __PYX_ERR(0, 1570, __pyx_L1_error) - - /* "talib/func.pyx":1658 - * @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__1257 = PyTuple_Pack(19, __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, __pyx_n_s_outinteger_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1257)) __PYX_ERR(0, 1658, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1257); - __Pyx_GIVEREF(__pyx_tuple__1257); - __pyx_codeobj__1258 = (PyObject*)__Pyx_PyCode_New(4, 0, 19, 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_CDL3STARSINSOUTH, 1658, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1258)) __PYX_ERR(0, 1658, __pyx_L1_error) - - /* "talib/func.pyx":1746 - * @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__1259 = PyTuple_Pack(19, __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, __pyx_n_s_outinteger_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1259)) __PYX_ERR(0, 1746, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1259); - __Pyx_GIVEREF(__pyx_tuple__1259); - __pyx_codeobj__1260 = (PyObject*)__Pyx_PyCode_New(4, 0, 19, 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_CDL3WHITESOLDIERS, 1746, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1260)) __PYX_ERR(0, 1746, __pyx_L1_error) - - /* "talib/func.pyx":1834 - * @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__1261 = PyTuple_Pack(20, __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, __pyx_n_s_outinteger_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1261)) __PYX_ERR(0, 1834, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1261); - __Pyx_GIVEREF(__pyx_tuple__1261); - __pyx_codeobj__1262 = (PyObject*)__Pyx_PyCode_New(5, 0, 20, 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_CDLABANDONEDBABY, 1834, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1262)) __PYX_ERR(0, 1834, __pyx_L1_error) - - /* "talib/func.pyx":1924 - * @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__1263 = PyTuple_Pack(19, __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, __pyx_n_s_outinteger_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1263)) __PYX_ERR(0, 1924, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1263); - __Pyx_GIVEREF(__pyx_tuple__1263); - __pyx_codeobj__1264 = (PyObject*)__Pyx_PyCode_New(4, 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_CDLADVANCEBLOCK, 1924, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1264)) __PYX_ERR(0, 1924, __pyx_L1_error) - - /* "talib/func.pyx":2012 - * @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__1265 = PyTuple_Pack(19, __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, __pyx_n_s_outinteger_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1265)) __PYX_ERR(0, 2012, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1265); - __Pyx_GIVEREF(__pyx_tuple__1265); - __pyx_codeobj__1266 = (PyObject*)__Pyx_PyCode_New(4, 0, 19, 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_CDLBELTHOLD, 2012, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1266)) __PYX_ERR(0, 2012, __pyx_L1_error) - - /* "talib/func.pyx":2100 - * @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__1267 = PyTuple_Pack(19, __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, __pyx_n_s_outinteger_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1267)) __PYX_ERR(0, 2100, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1267); - __Pyx_GIVEREF(__pyx_tuple__1267); - __pyx_codeobj__1268 = (PyObject*)__Pyx_PyCode_New(4, 0, 19, 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_CDLBREAKAWAY, 2100, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1268)) __PYX_ERR(0, 2100, __pyx_L1_error) - - /* "talib/func.pyx":2188 - * @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__1269 = PyTuple_Pack(19, __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, __pyx_n_s_outinteger_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1269)) __PYX_ERR(0, 2188, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1269); - __Pyx_GIVEREF(__pyx_tuple__1269); - __pyx_codeobj__1270 = (PyObject*)__Pyx_PyCode_New(4, 0, 19, 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_CDLCLOSINGMARUBOZU, 2188, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1270)) __PYX_ERR(0, 2188, __pyx_L1_error) - - /* "talib/func.pyx":2276 - * @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__1271 = PyTuple_Pack(19, __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, __pyx_n_s_outinteger_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1271)) __PYX_ERR(0, 2276, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1271); - __Pyx_GIVEREF(__pyx_tuple__1271); - __pyx_codeobj__1272 = (PyObject*)__Pyx_PyCode_New(4, 0, 19, 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_CDLCONCEALBABYSWALL, 2276, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1272)) __PYX_ERR(0, 2276, __pyx_L1_error) - - /* "talib/func.pyx":2364 - * @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__1273 = PyTuple_Pack(19, __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, __pyx_n_s_outinteger_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1273)) __PYX_ERR(0, 2364, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1273); - __Pyx_GIVEREF(__pyx_tuple__1273); - __pyx_codeobj__1274 = (PyObject*)__Pyx_PyCode_New(4, 0, 19, 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_CDLCOUNTERATTACK, 2364, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1274)) __PYX_ERR(0, 2364, __pyx_L1_error) - - /* "talib/func.pyx":2452 - * @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__1275 = PyTuple_Pack(20, __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, __pyx_n_s_outinteger_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1275)) __PYX_ERR(0, 2452, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1275); - __Pyx_GIVEREF(__pyx_tuple__1275); - __pyx_codeobj__1276 = (PyObject*)__Pyx_PyCode_New(5, 0, 20, 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_CDLDARKCLOUDCOVER, 2452, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1276)) __PYX_ERR(0, 2452, __pyx_L1_error) - - /* "talib/func.pyx":2542 - * @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__1277 = PyTuple_Pack(19, __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, __pyx_n_s_outinteger_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1277)) __PYX_ERR(0, 2542, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1277); - __Pyx_GIVEREF(__pyx_tuple__1277); - __pyx_codeobj__1278 = (PyObject*)__Pyx_PyCode_New(4, 0, 19, 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_CDLDOJI, 2542, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1278)) __PYX_ERR(0, 2542, __pyx_L1_error) - - /* "talib/func.pyx":2630 - * @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__1279 = PyTuple_Pack(19, __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, __pyx_n_s_outinteger_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1279)) __PYX_ERR(0, 2630, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1279); - __Pyx_GIVEREF(__pyx_tuple__1279); - __pyx_codeobj__1280 = (PyObject*)__Pyx_PyCode_New(4, 0, 19, 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_CDLDOJISTAR, 2630, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1280)) __PYX_ERR(0, 2630, __pyx_L1_error) - - /* "talib/func.pyx":2718 - * @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__1281 = PyTuple_Pack(19, __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, __pyx_n_s_outinteger_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1281)) __PYX_ERR(0, 2718, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1281); - __Pyx_GIVEREF(__pyx_tuple__1281); - __pyx_codeobj__1282 = (PyObject*)__Pyx_PyCode_New(4, 0, 19, 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_CDLDRAGONFLYDOJI, 2718, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1282)) __PYX_ERR(0, 2718, __pyx_L1_error) - - /* "talib/func.pyx":2806 - * @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__1283 = PyTuple_Pack(19, __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, __pyx_n_s_outinteger_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1283)) __PYX_ERR(0, 2806, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1283); - __Pyx_GIVEREF(__pyx_tuple__1283); - __pyx_codeobj__1284 = (PyObject*)__Pyx_PyCode_New(4, 0, 19, 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_CDLENGULFING, 2806, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1284)) __PYX_ERR(0, 2806, __pyx_L1_error) - - /* "talib/func.pyx":2894 - * @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__1285 = PyTuple_Pack(20, __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, __pyx_n_s_outinteger_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1285)) __PYX_ERR(0, 2894, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1285); - __Pyx_GIVEREF(__pyx_tuple__1285); - __pyx_codeobj__1286 = (PyObject*)__Pyx_PyCode_New(5, 0, 20, 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_CDLEVENINGDOJISTAR, 2894, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1286)) __PYX_ERR(0, 2894, __pyx_L1_error) - - /* "talib/func.pyx":2984 - * @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__1287 = PyTuple_Pack(20, __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, __pyx_n_s_outinteger_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1287)) __PYX_ERR(0, 2984, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1287); - __Pyx_GIVEREF(__pyx_tuple__1287); - __pyx_codeobj__1288 = (PyObject*)__Pyx_PyCode_New(5, 0, 20, 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_CDLEVENINGSTAR, 2984, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1288)) __PYX_ERR(0, 2984, __pyx_L1_error) - - /* "talib/func.pyx":3074 - * @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__1289 = PyTuple_Pack(19, __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, __pyx_n_s_outinteger_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1289)) __PYX_ERR(0, 3074, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1289); - __Pyx_GIVEREF(__pyx_tuple__1289); - __pyx_codeobj__1290 = (PyObject*)__Pyx_PyCode_New(4, 0, 19, 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_CDLGAPSIDESIDEWHITE, 3074, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1290)) __PYX_ERR(0, 3074, __pyx_L1_error) - - /* "talib/func.pyx":3162 - * @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__1291 = PyTuple_Pack(19, __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, __pyx_n_s_outinteger_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1291)) __PYX_ERR(0, 3162, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1291); - __Pyx_GIVEREF(__pyx_tuple__1291); - __pyx_codeobj__1292 = (PyObject*)__Pyx_PyCode_New(4, 0, 19, 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_CDLGRAVESTONEDOJI, 3162, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1292)) __PYX_ERR(0, 3162, __pyx_L1_error) - - /* "talib/func.pyx":3250 - * @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__1293 = PyTuple_Pack(19, __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, __pyx_n_s_outinteger_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1293)) __PYX_ERR(0, 3250, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1293); - __Pyx_GIVEREF(__pyx_tuple__1293); - __pyx_codeobj__1294 = (PyObject*)__Pyx_PyCode_New(4, 0, 19, 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_CDLHAMMER, 3250, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1294)) __PYX_ERR(0, 3250, __pyx_L1_error) - - /* "talib/func.pyx":3338 - * @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__1295 = PyTuple_Pack(19, __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, __pyx_n_s_outinteger_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1295)) __PYX_ERR(0, 3338, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1295); - __Pyx_GIVEREF(__pyx_tuple__1295); - __pyx_codeobj__1296 = (PyObject*)__Pyx_PyCode_New(4, 0, 19, 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_CDLHANGINGMAN, 3338, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1296)) __PYX_ERR(0, 3338, __pyx_L1_error) - - /* "talib/func.pyx":3426 - * @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__1297 = PyTuple_Pack(19, __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, __pyx_n_s_outinteger_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1297)) __PYX_ERR(0, 3426, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1297); - __Pyx_GIVEREF(__pyx_tuple__1297); - __pyx_codeobj__1298 = (PyObject*)__Pyx_PyCode_New(4, 0, 19, 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_CDLHARAMI, 3426, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1298)) __PYX_ERR(0, 3426, __pyx_L1_error) - - /* "talib/func.pyx":3514 - * @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__1299 = PyTuple_Pack(19, __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, __pyx_n_s_outinteger_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1299)) __PYX_ERR(0, 3514, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1299); - __Pyx_GIVEREF(__pyx_tuple__1299); - __pyx_codeobj__1300 = (PyObject*)__Pyx_PyCode_New(4, 0, 19, 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_CDLHARAMICROSS, 3514, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1300)) __PYX_ERR(0, 3514, __pyx_L1_error) - - /* "talib/func.pyx":3602 - * @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__1301 = PyTuple_Pack(19, __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, __pyx_n_s_outinteger_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1301)) __PYX_ERR(0, 3602, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1301); - __Pyx_GIVEREF(__pyx_tuple__1301); - __pyx_codeobj__1302 = (PyObject*)__Pyx_PyCode_New(4, 0, 19, 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_CDLHIGHWAVE, 3602, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1302)) __PYX_ERR(0, 3602, __pyx_L1_error) - - /* "talib/func.pyx":3690 - * @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__1303 = PyTuple_Pack(19, __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, __pyx_n_s_outinteger_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1303)) __PYX_ERR(0, 3690, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1303); - __Pyx_GIVEREF(__pyx_tuple__1303); - __pyx_codeobj__1304 = (PyObject*)__Pyx_PyCode_New(4, 0, 19, 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_CDLHIKKAKE, 3690, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1304)) __PYX_ERR(0, 3690, __pyx_L1_error) - - /* "talib/func.pyx":3778 - * @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__1305 = PyTuple_Pack(19, __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, __pyx_n_s_outinteger_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1305)) __PYX_ERR(0, 3778, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1305); - __Pyx_GIVEREF(__pyx_tuple__1305); - __pyx_codeobj__1306 = (PyObject*)__Pyx_PyCode_New(4, 0, 19, 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_CDLHIKKAKEMOD, 3778, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1306)) __PYX_ERR(0, 3778, __pyx_L1_error) - - /* "talib/func.pyx":3866 - * @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__1307 = PyTuple_Pack(19, __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, __pyx_n_s_outinteger_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1307)) __PYX_ERR(0, 3866, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1307); - __Pyx_GIVEREF(__pyx_tuple__1307); - __pyx_codeobj__1308 = (PyObject*)__Pyx_PyCode_New(4, 0, 19, 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_CDLHOMINGPIGEON, 3866, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1308)) __PYX_ERR(0, 3866, __pyx_L1_error) - - /* "talib/func.pyx":3954 - * @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__1309 = PyTuple_Pack(19, __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, __pyx_n_s_outinteger_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1309)) __PYX_ERR(0, 3954, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1309); - __Pyx_GIVEREF(__pyx_tuple__1309); - __pyx_codeobj__1310 = (PyObject*)__Pyx_PyCode_New(4, 0, 19, 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_CDLIDENTICAL3CROWS, 3954, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1310)) __PYX_ERR(0, 3954, __pyx_L1_error) - - /* "talib/func.pyx":4042 - * @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__1311 = PyTuple_Pack(19, __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, __pyx_n_s_outinteger_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1311)) __PYX_ERR(0, 4042, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1311); - __Pyx_GIVEREF(__pyx_tuple__1311); - __pyx_codeobj__1312 = (PyObject*)__Pyx_PyCode_New(4, 0, 19, 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_CDLINNECK, 4042, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1312)) __PYX_ERR(0, 4042, __pyx_L1_error) - - /* "talib/func.pyx":4130 - * @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__1313 = PyTuple_Pack(19, __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, __pyx_n_s_outinteger_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1313)) __PYX_ERR(0, 4130, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1313); - __Pyx_GIVEREF(__pyx_tuple__1313); - __pyx_codeobj__1314 = (PyObject*)__Pyx_PyCode_New(4, 0, 19, 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_CDLINVERTEDHAMMER, 4130, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1314)) __PYX_ERR(0, 4130, __pyx_L1_error) - - /* "talib/func.pyx":4218 - * @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__1315 = PyTuple_Pack(19, __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, __pyx_n_s_outinteger_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1315)) __PYX_ERR(0, 4218, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1315); - __Pyx_GIVEREF(__pyx_tuple__1315); - __pyx_codeobj__1316 = (PyObject*)__Pyx_PyCode_New(4, 0, 19, 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_CDLKICKING, 4218, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1316)) __PYX_ERR(0, 4218, __pyx_L1_error) - - /* "talib/func.pyx":4306 - * @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__1317 = PyTuple_Pack(19, __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, __pyx_n_s_outinteger_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1317)) __PYX_ERR(0, 4306, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1317); - __Pyx_GIVEREF(__pyx_tuple__1317); - __pyx_codeobj__1318 = (PyObject*)__Pyx_PyCode_New(4, 0, 19, 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_CDLKICKINGBYLENGTH, 4306, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1318)) __PYX_ERR(0, 4306, __pyx_L1_error) - - /* "talib/func.pyx":4394 - * @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__1319 = PyTuple_Pack(19, __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, __pyx_n_s_outinteger_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1319)) __PYX_ERR(0, 4394, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1319); - __Pyx_GIVEREF(__pyx_tuple__1319); - __pyx_codeobj__1320 = (PyObject*)__Pyx_PyCode_New(4, 0, 19, 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_CDLLADDERBOTTOM, 4394, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1320)) __PYX_ERR(0, 4394, __pyx_L1_error) - - /* "talib/func.pyx":4482 - * @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__1321 = PyTuple_Pack(19, __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, __pyx_n_s_outinteger_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1321)) __PYX_ERR(0, 4482, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1321); - __Pyx_GIVEREF(__pyx_tuple__1321); - __pyx_codeobj__1322 = (PyObject*)__Pyx_PyCode_New(4, 0, 19, 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_CDLLONGLEGGEDDOJI, 4482, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1322)) __PYX_ERR(0, 4482, __pyx_L1_error) - - /* "talib/func.pyx":4570 - * @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__1323 = PyTuple_Pack(19, __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, __pyx_n_s_outinteger_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1323)) __PYX_ERR(0, 4570, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1323); - __Pyx_GIVEREF(__pyx_tuple__1323); - __pyx_codeobj__1324 = (PyObject*)__Pyx_PyCode_New(4, 0, 19, 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_CDLLONGLINE, 4570, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1324)) __PYX_ERR(0, 4570, __pyx_L1_error) - - /* "talib/func.pyx":4658 - * @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__1325 = PyTuple_Pack(19, __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, __pyx_n_s_outinteger_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1325)) __PYX_ERR(0, 4658, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1325); - __Pyx_GIVEREF(__pyx_tuple__1325); - __pyx_codeobj__1326 = (PyObject*)__Pyx_PyCode_New(4, 0, 19, 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_CDLMARUBOZU, 4658, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1326)) __PYX_ERR(0, 4658, __pyx_L1_error) - - /* "talib/func.pyx":4746 - * @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__1327 = PyTuple_Pack(19, __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, __pyx_n_s_outinteger_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1327)) __PYX_ERR(0, 4746, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1327); - __Pyx_GIVEREF(__pyx_tuple__1327); - __pyx_codeobj__1328 = (PyObject*)__Pyx_PyCode_New(4, 0, 19, 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_CDLMATCHINGLOW, 4746, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1328)) __PYX_ERR(0, 4746, __pyx_L1_error) - - /* "talib/func.pyx":4834 - * @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__1329 = PyTuple_Pack(20, __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, __pyx_n_s_outinteger_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1329)) __PYX_ERR(0, 4834, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1329); - __Pyx_GIVEREF(__pyx_tuple__1329); - __pyx_codeobj__1330 = (PyObject*)__Pyx_PyCode_New(5, 0, 20, 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_CDLMATHOLD, 4834, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1330)) __PYX_ERR(0, 4834, __pyx_L1_error) - - /* "talib/func.pyx":4924 - * @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__1331 = PyTuple_Pack(20, __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, __pyx_n_s_outinteger_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1331)) __PYX_ERR(0, 4924, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1331); - __Pyx_GIVEREF(__pyx_tuple__1331); - __pyx_codeobj__1332 = (PyObject*)__Pyx_PyCode_New(5, 0, 20, 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_CDLMORNINGDOJISTAR, 4924, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1332)) __PYX_ERR(0, 4924, __pyx_L1_error) - - /* "talib/func.pyx":5014 - * @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__1333 = PyTuple_Pack(20, __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, __pyx_n_s_outinteger_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1333)) __PYX_ERR(0, 5014, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1333); - __Pyx_GIVEREF(__pyx_tuple__1333); - __pyx_codeobj__1334 = (PyObject*)__Pyx_PyCode_New(5, 0, 20, 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_CDLMORNINGSTAR, 5014, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1334)) __PYX_ERR(0, 5014, __pyx_L1_error) - - /* "talib/func.pyx":5104 - * @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__1335 = PyTuple_Pack(19, __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, __pyx_n_s_outinteger_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1335)) __PYX_ERR(0, 5104, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1335); - __Pyx_GIVEREF(__pyx_tuple__1335); - __pyx_codeobj__1336 = (PyObject*)__Pyx_PyCode_New(4, 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_CDLONNECK, 5104, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1336)) __PYX_ERR(0, 5104, __pyx_L1_error) - - /* "talib/func.pyx":5192 - * @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__1337 = PyTuple_Pack(19, __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, __pyx_n_s_outinteger_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1337)) __PYX_ERR(0, 5192, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1337); - __Pyx_GIVEREF(__pyx_tuple__1337); - __pyx_codeobj__1338 = (PyObject*)__Pyx_PyCode_New(4, 0, 19, 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_CDLPIERCING, 5192, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1338)) __PYX_ERR(0, 5192, __pyx_L1_error) - - /* "talib/func.pyx":5280 - * @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__1339 = PyTuple_Pack(19, __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, __pyx_n_s_outinteger_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1339)) __PYX_ERR(0, 5280, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1339); - __Pyx_GIVEREF(__pyx_tuple__1339); - __pyx_codeobj__1340 = (PyObject*)__Pyx_PyCode_New(4, 0, 19, 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_CDLRICKSHAWMAN, 5280, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1340)) __PYX_ERR(0, 5280, __pyx_L1_error) - - /* "talib/func.pyx":5368 - * @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__1341 = PyTuple_Pack(19, __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, __pyx_n_s_outinteger_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1341)) __PYX_ERR(0, 5368, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1341); - __Pyx_GIVEREF(__pyx_tuple__1341); - __pyx_codeobj__1342 = (PyObject*)__Pyx_PyCode_New(4, 0, 19, 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_CDLRISEFALL3METHODS, 5368, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1342)) __PYX_ERR(0, 5368, __pyx_L1_error) - - /* "talib/func.pyx":5456 - * @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__1343 = PyTuple_Pack(19, __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, __pyx_n_s_outinteger_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1343)) __PYX_ERR(0, 5456, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1343); - __Pyx_GIVEREF(__pyx_tuple__1343); - __pyx_codeobj__1344 = (PyObject*)__Pyx_PyCode_New(4, 0, 19, 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_CDLSEPARATINGLINES, 5456, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1344)) __PYX_ERR(0, 5456, __pyx_L1_error) - - /* "talib/func.pyx":5544 - * @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__1345 = PyTuple_Pack(19, __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, __pyx_n_s_outinteger_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1345)) __PYX_ERR(0, 5544, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1345); - __Pyx_GIVEREF(__pyx_tuple__1345); - __pyx_codeobj__1346 = (PyObject*)__Pyx_PyCode_New(4, 0, 19, 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_CDLSHOOTINGSTAR, 5544, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1346)) __PYX_ERR(0, 5544, __pyx_L1_error) - - /* "talib/func.pyx":5632 - * @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__1347 = PyTuple_Pack(19, __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, __pyx_n_s_outinteger_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1347)) __PYX_ERR(0, 5632, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1347); - __Pyx_GIVEREF(__pyx_tuple__1347); - __pyx_codeobj__1348 = (PyObject*)__Pyx_PyCode_New(4, 0, 19, 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_CDLSHORTLINE, 5632, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1348)) __PYX_ERR(0, 5632, __pyx_L1_error) - - /* "talib/func.pyx":5720 - * @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__1349 = PyTuple_Pack(19, __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, __pyx_n_s_outinteger_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1349)) __PYX_ERR(0, 5720, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1349); - __Pyx_GIVEREF(__pyx_tuple__1349); - __pyx_codeobj__1350 = (PyObject*)__Pyx_PyCode_New(4, 0, 19, 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_CDLSPINNINGTOP, 5720, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1350)) __PYX_ERR(0, 5720, __pyx_L1_error) - - /* "talib/func.pyx":5808 - * @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__1351 = PyTuple_Pack(19, __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, __pyx_n_s_outinteger_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1351)) __PYX_ERR(0, 5808, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1351); - __Pyx_GIVEREF(__pyx_tuple__1351); - __pyx_codeobj__1352 = (PyObject*)__Pyx_PyCode_New(4, 0, 19, 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_CDLSTALLEDPATTERN, 5808, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1352)) __PYX_ERR(0, 5808, __pyx_L1_error) - - /* "talib/func.pyx":5896 - * @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__1353 = PyTuple_Pack(19, __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, __pyx_n_s_outinteger_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1353)) __PYX_ERR(0, 5896, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1353); - __Pyx_GIVEREF(__pyx_tuple__1353); - __pyx_codeobj__1354 = (PyObject*)__Pyx_PyCode_New(4, 0, 19, 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_CDLSTICKSANDWICH, 5896, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1354)) __PYX_ERR(0, 5896, __pyx_L1_error) - - /* "talib/func.pyx":5984 - * @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__1355 = PyTuple_Pack(19, __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, __pyx_n_s_outinteger_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1355)) __PYX_ERR(0, 5984, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1355); - __Pyx_GIVEREF(__pyx_tuple__1355); - __pyx_codeobj__1356 = (PyObject*)__Pyx_PyCode_New(4, 0, 19, 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_CDLTAKURI, 5984, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1356)) __PYX_ERR(0, 5984, __pyx_L1_error) - - /* "talib/func.pyx":6072 - * @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__1357 = PyTuple_Pack(19, __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, __pyx_n_s_outinteger_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1357)) __PYX_ERR(0, 6072, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1357); - __Pyx_GIVEREF(__pyx_tuple__1357); - __pyx_codeobj__1358 = (PyObject*)__Pyx_PyCode_New(4, 0, 19, 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_CDLTASUKIGAP, 6072, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1358)) __PYX_ERR(0, 6072, __pyx_L1_error) - - /* "talib/func.pyx":6160 - * @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__1359 = PyTuple_Pack(19, __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, __pyx_n_s_outinteger_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1359)) __PYX_ERR(0, 6160, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1359); - __Pyx_GIVEREF(__pyx_tuple__1359); - __pyx_codeobj__1360 = (PyObject*)__Pyx_PyCode_New(4, 0, 19, 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_CDLTHRUSTING, 6160, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1360)) __PYX_ERR(0, 6160, __pyx_L1_error) - - /* "talib/func.pyx":6248 - * @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__1361 = PyTuple_Pack(19, __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, __pyx_n_s_outinteger_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1361)) __PYX_ERR(0, 6248, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1361); - __Pyx_GIVEREF(__pyx_tuple__1361); - __pyx_codeobj__1362 = (PyObject*)__Pyx_PyCode_New(4, 0, 19, 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_CDLTRISTAR, 6248, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1362)) __PYX_ERR(0, 6248, __pyx_L1_error) - - /* "talib/func.pyx":6336 - * @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__1363 = PyTuple_Pack(19, __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, __pyx_n_s_outinteger_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1363)) __PYX_ERR(0, 6336, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1363); - __Pyx_GIVEREF(__pyx_tuple__1363); - __pyx_codeobj__1364 = (PyObject*)__Pyx_PyCode_New(4, 0, 19, 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_CDLUNIQUE3RIVER, 6336, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1364)) __PYX_ERR(0, 6336, __pyx_L1_error) - - /* "talib/func.pyx":6424 - * @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__1365 = PyTuple_Pack(19, __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, __pyx_n_s_outinteger_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1365)) __PYX_ERR(0, 6424, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1365); - __Pyx_GIVEREF(__pyx_tuple__1365); - __pyx_codeobj__1366 = (PyObject*)__Pyx_PyCode_New(4, 0, 19, 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_CDLUPSIDEGAP2CROWS, 6424, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1366)) __PYX_ERR(0, 6424, __pyx_L1_error) - - /* "talib/func.pyx":6512 - * @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__1367 = PyTuple_Pack(19, __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, __pyx_n_s_outinteger_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1367)) __PYX_ERR(0, 6512, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1367); - __Pyx_GIVEREF(__pyx_tuple__1367); - __pyx_codeobj__1368 = (PyObject*)__Pyx_PyCode_New(4, 0, 19, 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_CDLXSIDEGAP3METHODS, 6512, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1368)) __PYX_ERR(0, 6512, __pyx_L1_error) - - /* "talib/func.pyx":6600 - * @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__1369 = PyTuple_Pack(13, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1369)) __PYX_ERR(0, 6600, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1369); - __Pyx_GIVEREF(__pyx_tuple__1369); - __pyx_codeobj__1370 = (PyObject*)__Pyx_PyCode_New(1, 0, 13, 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_CEIL, 6600, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1370)) __PYX_ERR(0, 6600, __pyx_L1_error) - - /* "talib/func.pyx":6649 - * @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__1371 = PyTuple_Pack(14, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1371)) __PYX_ERR(0, 6649, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1371); - __Pyx_GIVEREF(__pyx_tuple__1371); - __pyx_codeobj__1372 = (PyObject*)__Pyx_PyCode_New(2, 0, 14, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1371, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_CMO, 6649, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1372)) __PYX_ERR(0, 6649, __pyx_L1_error) - - /* "talib/func.pyx":6700 - * @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__1373 = PyTuple_Pack(16, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1373)) __PYX_ERR(0, 6700, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1373); - __Pyx_GIVEREF(__pyx_tuple__1373); - __pyx_codeobj__1374 = (PyObject*)__Pyx_PyCode_New(3, 0, 16, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1373, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_CORREL, 6700, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1374)) __PYX_ERR(0, 6700, __pyx_L1_error) - - /* "talib/func.pyx":6765 - * @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__1375 = PyTuple_Pack(13, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1375)) __PYX_ERR(0, 6765, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1375); - __Pyx_GIVEREF(__pyx_tuple__1375); - __pyx_codeobj__1376 = (PyObject*)__Pyx_PyCode_New(1, 0, 13, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1375, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_COS, 6765, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1376)) __PYX_ERR(0, 6765, __pyx_L1_error) - - /* "talib/func.pyx":6814 - * @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__1377 = PyTuple_Pack(13, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1377)) __PYX_ERR(0, 6814, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1377); - __Pyx_GIVEREF(__pyx_tuple__1377); - __pyx_codeobj__1378 = (PyObject*)__Pyx_PyCode_New(1, 0, 13, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1377, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_COSH, 6814, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1378)) __PYX_ERR(0, 6814, __pyx_L1_error) - - /* "talib/func.pyx":6863 - * @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__1379 = PyTuple_Pack(14, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1379)) __PYX_ERR(0, 6863, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1379); - __Pyx_GIVEREF(__pyx_tuple__1379); - __pyx_codeobj__1380 = (PyObject*)__Pyx_PyCode_New(2, 0, 14, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1379, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_DEMA, 6863, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1380)) __PYX_ERR(0, 6863, __pyx_L1_error) - - /* "talib/func.pyx":6914 - * @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__1381 = PyTuple_Pack(15, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1381)) __PYX_ERR(0, 6914, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1381); - __Pyx_GIVEREF(__pyx_tuple__1381); - __pyx_codeobj__1382 = (PyObject*)__Pyx_PyCode_New(2, 0, 15, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1381, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_DIV, 6914, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1382)) __PYX_ERR(0, 6914, __pyx_L1_error) - - /* "talib/func.pyx":6977 - * @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__1383 = PyTuple_Pack(18, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1383)) __PYX_ERR(0, 6977, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1383); - __Pyx_GIVEREF(__pyx_tuple__1383); - __pyx_codeobj__1384 = (PyObject*)__Pyx_PyCode_New(4, 0, 18, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1383, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_DX, 6977, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1384)) __PYX_ERR(0, 6977, __pyx_L1_error) - - /* "talib/func.pyx":7054 - * @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__1385 = PyTuple_Pack(14, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1385)) __PYX_ERR(0, 7054, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1385); - __Pyx_GIVEREF(__pyx_tuple__1385); - __pyx_codeobj__1386 = (PyObject*)__Pyx_PyCode_New(2, 0, 14, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1385, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_EMA, 7054, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1386)) __PYX_ERR(0, 7054, __pyx_L1_error) - - /* "talib/func.pyx":7105 - * @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__1387 = PyTuple_Pack(13, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1387)) __PYX_ERR(0, 7105, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1387); - __Pyx_GIVEREF(__pyx_tuple__1387); - __pyx_codeobj__1388 = (PyObject*)__Pyx_PyCode_New(1, 0, 13, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1387, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_EXP, 7105, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1388)) __PYX_ERR(0, 7105, __pyx_L1_error) - - /* "talib/func.pyx":7154 - * @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__1389 = PyTuple_Pack(13, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1389)) __PYX_ERR(0, 7154, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1389); - __Pyx_GIVEREF(__pyx_tuple__1389); - __pyx_codeobj__1390 = (PyObject*)__Pyx_PyCode_New(1, 0, 13, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1389, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_FLOOR, 7154, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1390)) __PYX_ERR(0, 7154, __pyx_L1_error) - - /* "talib/func.pyx":7203 - * @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__1391 = PyTuple_Pack(13, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1391)) __PYX_ERR(0, 7203, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1391); - __Pyx_GIVEREF(__pyx_tuple__1391); - __pyx_codeobj__1392 = (PyObject*)__Pyx_PyCode_New(1, 0, 13, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1391, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_HT_DCPERIOD, 7203, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1392)) __PYX_ERR(0, 7203, __pyx_L1_error) - - /* "talib/func.pyx":7252 - * @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__1393 = PyTuple_Pack(13, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1393)) __PYX_ERR(0, 7252, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1393); - __Pyx_GIVEREF(__pyx_tuple__1393); - __pyx_codeobj__1394 = (PyObject*)__Pyx_PyCode_New(1, 0, 13, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1393, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_HT_DCPHASE, 7252, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1394)) __PYX_ERR(0, 7252, __pyx_L1_error) - - /* "talib/func.pyx":7301 - * @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__1395 = PyTuple_Pack(15, __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_outinphase_data, __pyx_n_s_outquadrature, __pyx_n_s_outquadrature_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1395)) __PYX_ERR(0, 7301, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1395); - __Pyx_GIVEREF(__pyx_tuple__1395); - __pyx_codeobj__1396 = (PyObject*)__Pyx_PyCode_New(1, 0, 15, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1395, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_HT_PHASOR, 7301, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1396)) __PYX_ERR(0, 7301, __pyx_L1_error) - - /* "talib/func.pyx":7357 - * @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__1397 = PyTuple_Pack(15, __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_outsine_data, __pyx_n_s_outleadsine, __pyx_n_s_outleadsine_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1397)) __PYX_ERR(0, 7357, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1397); - __Pyx_GIVEREF(__pyx_tuple__1397); - __pyx_codeobj__1398 = (PyObject*)__Pyx_PyCode_New(1, 0, 15, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1397, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_HT_SINE, 7357, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1398)) __PYX_ERR(0, 7357, __pyx_L1_error) - - /* "talib/func.pyx":7413 - * @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__1399 = PyTuple_Pack(13, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1399)) __PYX_ERR(0, 7413, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1399); - __Pyx_GIVEREF(__pyx_tuple__1399); - __pyx_codeobj__1400 = (PyObject*)__Pyx_PyCode_New(1, 0, 13, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1399, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_HT_TRENDLINE, 7413, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1400)) __PYX_ERR(0, 7413, __pyx_L1_error) - - /* "talib/func.pyx":7462 - * @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__1401 = PyTuple_Pack(13, __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, __pyx_n_s_outinteger_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1401)) __PYX_ERR(0, 7462, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1401); - __Pyx_GIVEREF(__pyx_tuple__1401); - __pyx_codeobj__1402 = (PyObject*)__Pyx_PyCode_New(1, 0, 13, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1401, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_HT_TRENDMODE, 7462, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1402)) __PYX_ERR(0, 7462, __pyx_L1_error) - - /* "talib/func.pyx":7511 - * @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__1403 = PyTuple_Pack(14, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1403)) __PYX_ERR(0, 7511, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1403); - __Pyx_GIVEREF(__pyx_tuple__1403); - __pyx_codeobj__1404 = (PyObject*)__Pyx_PyCode_New(2, 0, 14, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1403, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_KAMA, 7511, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1404)) __PYX_ERR(0, 7511, __pyx_L1_error) - - /* "talib/func.pyx":7562 - * @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__1405 = PyTuple_Pack(14, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1405)) __PYX_ERR(0, 7562, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1405); - __Pyx_GIVEREF(__pyx_tuple__1405); - __pyx_codeobj__1406 = (PyObject*)__Pyx_PyCode_New(2, 0, 14, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1405, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_LINEARREG, 7562, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1406)) __PYX_ERR(0, 7562, __pyx_L1_error) - - /* "talib/func.pyx":7613 - * @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__1407 = PyTuple_Pack(14, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1407)) __PYX_ERR(0, 7613, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1407); - __Pyx_GIVEREF(__pyx_tuple__1407); - __pyx_codeobj__1408 = (PyObject*)__Pyx_PyCode_New(2, 0, 14, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1407, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_LINEARREG_ANGLE, 7613, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1408)) __PYX_ERR(0, 7613, __pyx_L1_error) - - /* "talib/func.pyx":7664 - * @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__1409 = PyTuple_Pack(14, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1409)) __PYX_ERR(0, 7664, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1409); - __Pyx_GIVEREF(__pyx_tuple__1409); - __pyx_codeobj__1410 = (PyObject*)__Pyx_PyCode_New(2, 0, 14, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1409, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_LINEARREG_INTERCEPT, 7664, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1410)) __PYX_ERR(0, 7664, __pyx_L1_error) - - /* "talib/func.pyx":7715 - * @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__1411 = PyTuple_Pack(14, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1411)) __PYX_ERR(0, 7715, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1411); - __Pyx_GIVEREF(__pyx_tuple__1411); - __pyx_codeobj__1412 = (PyObject*)__Pyx_PyCode_New(2, 0, 14, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1411, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_LINEARREG_SLOPE, 7715, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1412)) __PYX_ERR(0, 7715, __pyx_L1_error) - - /* "talib/func.pyx":7766 - * @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__1413 = PyTuple_Pack(13, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1413)) __PYX_ERR(0, 7766, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1413); - __Pyx_GIVEREF(__pyx_tuple__1413); - __pyx_codeobj__1414 = (PyObject*)__Pyx_PyCode_New(1, 0, 13, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1413, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_LN, 7766, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1414)) __PYX_ERR(0, 7766, __pyx_L1_error) - - /* "talib/func.pyx":7815 - * @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__1415 = PyTuple_Pack(13, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1415)) __PYX_ERR(0, 7815, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1415); - __Pyx_GIVEREF(__pyx_tuple__1415); - __pyx_codeobj__1416 = (PyObject*)__Pyx_PyCode_New(1, 0, 13, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1415, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_LOG10, 7815, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1416)) __PYX_ERR(0, 7815, __pyx_L1_error) - - /* "talib/func.pyx":7864 - * @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__1417 = PyTuple_Pack(15, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1417)) __PYX_ERR(0, 7864, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1417); - __Pyx_GIVEREF(__pyx_tuple__1417); - __pyx_codeobj__1418 = (PyObject*)__Pyx_PyCode_New(3, 0, 15, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1417, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_MA, 7864, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1418)) __PYX_ERR(0, 7864, __pyx_L1_error) - - /* "talib/func.pyx":7916 - * @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__1419 = PyTuple_Pack(20, __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_outmacd_data, __pyx_n_s_outmacdsignal, __pyx_n_s_outmacdsignal_data, __pyx_n_s_outmacdhist, __pyx_n_s_outmacdhist_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1419)) __PYX_ERR(0, 7916, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1419); - __Pyx_GIVEREF(__pyx_tuple__1419); - __pyx_codeobj__1420 = (PyObject*)__Pyx_PyCode_New(4, 0, 20, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1419, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_MACD, 7916, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1420)) __PYX_ERR(0, 7916, __pyx_L1_error) - - /* "talib/func.pyx":7983 - * @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__1421 = PyTuple_Pack(23, __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_outmacd_data, __pyx_n_s_outmacdsignal, __pyx_n_s_outmacdsignal_data, __pyx_n_s_outmacdhist, __pyx_n_s_outmacdhist_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1421)) __PYX_ERR(0, 7983, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1421); - __Pyx_GIVEREF(__pyx_tuple__1421); - __pyx_codeobj__1422 = (PyObject*)__Pyx_PyCode_New(7, 0, 23, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1421, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_MACDEXT, 7983, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1422)) __PYX_ERR(0, 7983, __pyx_L1_error) - - /* "talib/func.pyx":8053 - * @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__1423 = PyTuple_Pack(18, __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_outmacd_data, __pyx_n_s_outmacdsignal, __pyx_n_s_outmacdsignal_data, __pyx_n_s_outmacdhist, __pyx_n_s_outmacdhist_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1423)) __PYX_ERR(0, 8053, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1423); - __Pyx_GIVEREF(__pyx_tuple__1423); - __pyx_codeobj__1424 = (PyObject*)__Pyx_PyCode_New(2, 0, 18, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1423, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_MACDFIX, 8053, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1424)) __PYX_ERR(0, 8053, __pyx_L1_error) - - /* "talib/func.pyx":8118 - * @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__1425 = PyTuple_Pack(17, __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_outmama_data, __pyx_n_s_outfama, __pyx_n_s_outfama_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1425)) __PYX_ERR(0, 8118, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1425); - __Pyx_GIVEREF(__pyx_tuple__1425); - __pyx_codeobj__1426 = (PyObject*)__Pyx_PyCode_New(3, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1425, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_MAMA, 8118, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1426)) __PYX_ERR(0, 8118, __pyx_L1_error) - - /* "talib/func.pyx":8177 - * @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__1427 = PyTuple_Pack(18, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1427)) __PYX_ERR(0, 8177, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1427); - __Pyx_GIVEREF(__pyx_tuple__1427); - __pyx_codeobj__1428 = (PyObject*)__Pyx_PyCode_New(5, 0, 18, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1427, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_MAVP, 8177, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1428)) __PYX_ERR(0, 8177, __pyx_L1_error) - - /* "talib/func.pyx":8244 - * @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__1429 = PyTuple_Pack(14, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1429)) __PYX_ERR(0, 8244, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1429); - __Pyx_GIVEREF(__pyx_tuple__1429); - __pyx_codeobj__1430 = (PyObject*)__Pyx_PyCode_New(2, 0, 14, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1429, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_MAX, 8244, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1430)) __PYX_ERR(0, 8244, __pyx_L1_error) - - /* "talib/func.pyx":8295 - * @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__1431 = PyTuple_Pack(14, __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, __pyx_n_s_outinteger_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1431)) __PYX_ERR(0, 8295, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1431); - __Pyx_GIVEREF(__pyx_tuple__1431); - __pyx_codeobj__1432 = (PyObject*)__Pyx_PyCode_New(2, 0, 14, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1431, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_MAXINDEX, 8295, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1432)) __PYX_ERR(0, 8295, __pyx_L1_error) - - /* "talib/func.pyx":8346 - * @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__1433 = PyTuple_Pack(15, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1433)) __PYX_ERR(0, 8346, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1433); - __Pyx_GIVEREF(__pyx_tuple__1433); - __pyx_codeobj__1434 = (PyObject*)__Pyx_PyCode_New(2, 0, 15, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1433, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_MEDPRICE, 8346, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1434)) __PYX_ERR(0, 8346, __pyx_L1_error) - - /* "talib/func.pyx":8408 - * @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__1435 = PyTuple_Pack(20, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1435)) __PYX_ERR(0, 8408, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1435); - __Pyx_GIVEREF(__pyx_tuple__1435); - __pyx_codeobj__1436 = (PyObject*)__Pyx_PyCode_New(5, 0, 20, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1435, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_MFI, 8408, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1436)) __PYX_ERR(0, 8408, __pyx_L1_error) - - /* "talib/func.pyx":8498 - * @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__1437 = PyTuple_Pack(14, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1437)) __PYX_ERR(0, 8498, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1437); - __Pyx_GIVEREF(__pyx_tuple__1437); - __pyx_codeobj__1438 = (PyObject*)__Pyx_PyCode_New(2, 0, 14, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1437, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_MIDPOINT, 8498, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1438)) __PYX_ERR(0, 8498, __pyx_L1_error) - - /* "talib/func.pyx":8549 - * @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__1439 = PyTuple_Pack(16, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1439)) __PYX_ERR(0, 8549, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1439); - __Pyx_GIVEREF(__pyx_tuple__1439); - __pyx_codeobj__1440 = (PyObject*)__Pyx_PyCode_New(3, 0, 16, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1439, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_MIDPRICE, 8549, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1440)) __PYX_ERR(0, 8549, __pyx_L1_error) - - /* "talib/func.pyx":8613 - * @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__1441 = PyTuple_Pack(14, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1441)) __PYX_ERR(0, 8613, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1441); - __Pyx_GIVEREF(__pyx_tuple__1441); - __pyx_codeobj__1442 = (PyObject*)__Pyx_PyCode_New(2, 0, 14, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1441, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_MIN, 8613, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1442)) __PYX_ERR(0, 8613, __pyx_L1_error) - - /* "talib/func.pyx":8664 - * @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__1443 = PyTuple_Pack(14, __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, __pyx_n_s_outinteger_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1443)) __PYX_ERR(0, 8664, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1443); - __Pyx_GIVEREF(__pyx_tuple__1443); - __pyx_codeobj__1444 = (PyObject*)__Pyx_PyCode_New(2, 0, 14, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1443, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_MININDEX, 8664, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1444)) __PYX_ERR(0, 8664, __pyx_L1_error) - - /* "talib/func.pyx":8715 - * @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__1445 = PyTuple_Pack(16, __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_outmin_data, __pyx_n_s_outmax, __pyx_n_s_outmax_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1445)) __PYX_ERR(0, 8715, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1445); - __Pyx_GIVEREF(__pyx_tuple__1445); - __pyx_codeobj__1446 = (PyObject*)__Pyx_PyCode_New(2, 0, 16, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1445, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_MINMAX, 8715, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1446)) __PYX_ERR(0, 8715, __pyx_L1_error) - - /* "talib/func.pyx":8773 - * @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__1447 = PyTuple_Pack(16, __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_outminidx_data, __pyx_n_s_outmaxidx, __pyx_n_s_outmaxidx_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1447)) __PYX_ERR(0, 8773, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1447); - __Pyx_GIVEREF(__pyx_tuple__1447); - __pyx_codeobj__1448 = (PyObject*)__Pyx_PyCode_New(2, 0, 16, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1447, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_MINMAXINDEX, 8773, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1448)) __PYX_ERR(0, 8773, __pyx_L1_error) - - /* "talib/func.pyx":8831 - * @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__1449 = PyTuple_Pack(18, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1449)) __PYX_ERR(0, 8831, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1449); - __Pyx_GIVEREF(__pyx_tuple__1449); - __pyx_codeobj__1450 = (PyObject*)__Pyx_PyCode_New(4, 0, 18, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1449, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_MINUS_DI, 8831, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1450)) __PYX_ERR(0, 8831, __pyx_L1_error) - - /* "talib/func.pyx":8908 - * @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__1451 = PyTuple_Pack(16, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1451)) __PYX_ERR(0, 8908, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1451); - __Pyx_GIVEREF(__pyx_tuple__1451); - __pyx_codeobj__1452 = (PyObject*)__Pyx_PyCode_New(3, 0, 16, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1451, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_MINUS_DM, 8908, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1452)) __PYX_ERR(0, 8908, __pyx_L1_error) - - /* "talib/func.pyx":8972 - * @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__1453 = PyTuple_Pack(14, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1453)) __PYX_ERR(0, 8972, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1453); - __Pyx_GIVEREF(__pyx_tuple__1453); - __pyx_codeobj__1454 = (PyObject*)__Pyx_PyCode_New(2, 0, 14, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1453, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_MOM, 8972, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1454)) __PYX_ERR(0, 8972, __pyx_L1_error) - - /* "talib/func.pyx":9023 - * @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__1455 = PyTuple_Pack(15, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1455)) __PYX_ERR(0, 9023, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1455); - __Pyx_GIVEREF(__pyx_tuple__1455); - __pyx_codeobj__1456 = (PyObject*)__Pyx_PyCode_New(2, 0, 15, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1455, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_MULT, 9023, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1456)) __PYX_ERR(0, 9023, __pyx_L1_error) - - /* "talib/func.pyx":9086 - * @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__1457 = PyTuple_Pack(18, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1457)) __PYX_ERR(0, 9086, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1457); - __Pyx_GIVEREF(__pyx_tuple__1457); - __pyx_codeobj__1458 = (PyObject*)__Pyx_PyCode_New(4, 0, 18, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1457, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_NATR, 9086, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1458)) __PYX_ERR(0, 9086, __pyx_L1_error) - - /* "talib/func.pyx":9163 - * @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__1459 = PyTuple_Pack(15, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1459)) __PYX_ERR(0, 9163, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1459); - __Pyx_GIVEREF(__pyx_tuple__1459); - __pyx_codeobj__1460 = (PyObject*)__Pyx_PyCode_New(2, 0, 15, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1459, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_OBV, 9163, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1460)) __PYX_ERR(0, 9163, __pyx_L1_error) - - /* "talib/func.pyx":9226 - * @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__1461 = PyTuple_Pack(18, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1461)) __PYX_ERR(0, 9226, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1461); - __Pyx_GIVEREF(__pyx_tuple__1461); - __pyx_codeobj__1462 = (PyObject*)__Pyx_PyCode_New(4, 0, 18, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1461, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_PLUS_DI, 9226, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1462)) __PYX_ERR(0, 9226, __pyx_L1_error) - - /* "talib/func.pyx":9303 - * @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__1463 = PyTuple_Pack(16, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1463)) __PYX_ERR(0, 9303, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1463); - __Pyx_GIVEREF(__pyx_tuple__1463); - __pyx_codeobj__1464 = (PyObject*)__Pyx_PyCode_New(3, 0, 16, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1463, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_PLUS_DM, 9303, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1464)) __PYX_ERR(0, 9303, __pyx_L1_error) - - /* "talib/func.pyx":9367 - * @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__1465 = PyTuple_Pack(16, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1465)) __PYX_ERR(0, 9367, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1465); - __Pyx_GIVEREF(__pyx_tuple__1465); - __pyx_codeobj__1466 = (PyObject*)__Pyx_PyCode_New(4, 0, 16, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1465, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_PPO, 9367, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1466)) __PYX_ERR(0, 9367, __pyx_L1_error) - - /* "talib/func.pyx":9420 - * @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__1467 = PyTuple_Pack(14, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1467)) __PYX_ERR(0, 9420, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1467); - __Pyx_GIVEREF(__pyx_tuple__1467); - __pyx_codeobj__1468 = (PyObject*)__Pyx_PyCode_New(2, 0, 14, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1467, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_ROC, 9420, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1468)) __PYX_ERR(0, 9420, __pyx_L1_error) - - /* "talib/func.pyx":9471 - * @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__1469 = PyTuple_Pack(14, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1469)) __PYX_ERR(0, 9471, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1469); - __Pyx_GIVEREF(__pyx_tuple__1469); - __pyx_codeobj__1470 = (PyObject*)__Pyx_PyCode_New(2, 0, 14, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1469, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_ROCP, 9471, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1470)) __PYX_ERR(0, 9471, __pyx_L1_error) - - /* "talib/func.pyx":9522 - * @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__1471 = PyTuple_Pack(14, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1471)) __PYX_ERR(0, 9522, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1471); - __Pyx_GIVEREF(__pyx_tuple__1471); - __pyx_codeobj__1472 = (PyObject*)__Pyx_PyCode_New(2, 0, 14, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1471, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_ROCR, 9522, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1472)) __PYX_ERR(0, 9522, __pyx_L1_error) - - /* "talib/func.pyx":9573 - * @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__1473 = PyTuple_Pack(14, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1473)) __PYX_ERR(0, 9573, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1473); - __Pyx_GIVEREF(__pyx_tuple__1473); - __pyx_codeobj__1474 = (PyObject*)__Pyx_PyCode_New(2, 0, 14, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1473, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_ROCR100, 9573, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1474)) __PYX_ERR(0, 9573, __pyx_L1_error) - - /* "talib/func.pyx":9624 - * @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__1475 = PyTuple_Pack(14, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1475)) __PYX_ERR(0, 9624, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1475); - __Pyx_GIVEREF(__pyx_tuple__1475); - __pyx_codeobj__1476 = (PyObject*)__Pyx_PyCode_New(2, 0, 14, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1475, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_RSI, 9624, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1476)) __PYX_ERR(0, 9624, __pyx_L1_error) - - /* "talib/func.pyx":9675 - * @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__1477 = PyTuple_Pack(17, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1477)) __PYX_ERR(0, 9675, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1477); - __Pyx_GIVEREF(__pyx_tuple__1477); - __pyx_codeobj__1478 = (PyObject*)__Pyx_PyCode_New(4, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1477, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_SAR, 9675, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1478)) __PYX_ERR(0, 9675, __pyx_L1_error) - - /* "talib/func.pyx":9740 - * @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__1479 = PyTuple_Pack(23, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1479)) __PYX_ERR(0, 9740, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1479); - __Pyx_GIVEREF(__pyx_tuple__1479); - __pyx_codeobj__1480 = (PyObject*)__Pyx_PyCode_New(10, 0, 23, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1479, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_SAREXT, 9740, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1480)) __PYX_ERR(0, 9740, __pyx_L1_error) - - /* "talib/func.pyx":9811 - * @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__1481 = PyTuple_Pack(13, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1481)) __PYX_ERR(0, 9811, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1481); - __Pyx_GIVEREF(__pyx_tuple__1481); - __pyx_codeobj__1482 = (PyObject*)__Pyx_PyCode_New(1, 0, 13, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1481, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_SIN, 9811, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1482)) __PYX_ERR(0, 9811, __pyx_L1_error) - - /* "talib/func.pyx":9860 - * @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__1483 = PyTuple_Pack(13, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1483)) __PYX_ERR(0, 9860, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1483); - __Pyx_GIVEREF(__pyx_tuple__1483); - __pyx_codeobj__1484 = (PyObject*)__Pyx_PyCode_New(1, 0, 13, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1483, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_SINH, 9860, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1484)) __PYX_ERR(0, 9860, __pyx_L1_error) - - /* "talib/func.pyx":9909 - * @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__1485 = PyTuple_Pack(14, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1485)) __PYX_ERR(0, 9909, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1485); - __Pyx_GIVEREF(__pyx_tuple__1485); - __pyx_codeobj__1486 = (PyObject*)__Pyx_PyCode_New(2, 0, 14, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1485, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_SMA, 9909, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1486)) __PYX_ERR(0, 9909, __pyx_L1_error) - - /* "talib/func.pyx":9960 - * @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__1487 = PyTuple_Pack(13, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1487)) __PYX_ERR(0, 9960, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1487); - __Pyx_GIVEREF(__pyx_tuple__1487); - __pyx_codeobj__1488 = (PyObject*)__Pyx_PyCode_New(1, 0, 13, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1487, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_SQRT, 9960, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1488)) __PYX_ERR(0, 9960, __pyx_L1_error) - - /* "talib/func.pyx":10009 - * @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__1489 = PyTuple_Pack(15, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1489)) __PYX_ERR(0, 10009, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1489); - __Pyx_GIVEREF(__pyx_tuple__1489); - __pyx_codeobj__1490 = (PyObject*)__Pyx_PyCode_New(3, 0, 15, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1489, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_STDDEV, 10009, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1490)) __PYX_ERR(0, 10009, __pyx_L1_error) - - /* "talib/func.pyx":10061 - * @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__1491 = PyTuple_Pack(24, __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_outslowk_data, __pyx_n_s_outslowd, __pyx_n_s_outslowd_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1491)) __PYX_ERR(0, 10061, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1491); - __Pyx_GIVEREF(__pyx_tuple__1491); - __pyx_codeobj__1492 = (PyObject*)__Pyx_PyCode_New(8, 0, 24, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1491, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_STOCH, 10061, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1492)) __PYX_ERR(0, 10061, __pyx_L1_error) - - /* "talib/func.pyx":10149 - * @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__1493 = PyTuple_Pack(22, __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_outfastk_data, __pyx_n_s_outfastd, __pyx_n_s_outfastd_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1493)) __PYX_ERR(0, 10149, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1493); - __Pyx_GIVEREF(__pyx_tuple__1493); - __pyx_codeobj__1494 = (PyObject*)__Pyx_PyCode_New(6, 0, 22, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1493, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_STOCHF, 10149, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1494)) __PYX_ERR(0, 10149, __pyx_L1_error) - - /* "talib/func.pyx":10235 - * @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__1495 = PyTuple_Pack(19, __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_outfastk_data, __pyx_n_s_outfastd, __pyx_n_s_outfastd_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1495)) __PYX_ERR(0, 10235, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1495); - __Pyx_GIVEREF(__pyx_tuple__1495); - __pyx_codeobj__1496 = (PyObject*)__Pyx_PyCode_New(5, 0, 19, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1495, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_STOCHRSI, 10235, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1496)) __PYX_ERR(0, 10235, __pyx_L1_error) - - /* "talib/func.pyx":10296 - * @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__1497 = PyTuple_Pack(15, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1497)) __PYX_ERR(0, 10296, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1497); - __Pyx_GIVEREF(__pyx_tuple__1497); - __pyx_codeobj__1498 = (PyObject*)__Pyx_PyCode_New(2, 0, 15, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1497, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_SUB, 10296, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1498)) __PYX_ERR(0, 10296, __pyx_L1_error) - - /* "talib/func.pyx":10359 - * @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__1499 = PyTuple_Pack(14, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1499)) __PYX_ERR(0, 10359, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1499); - __Pyx_GIVEREF(__pyx_tuple__1499); - __pyx_codeobj__1500 = (PyObject*)__Pyx_PyCode_New(2, 0, 14, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1499, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_SUM, 10359, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1500)) __PYX_ERR(0, 10359, __pyx_L1_error) - - /* "talib/func.pyx":10410 - * @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__1501 = PyTuple_Pack(15, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1501)) __PYX_ERR(0, 10410, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1501); - __Pyx_GIVEREF(__pyx_tuple__1501); - __pyx_codeobj__1502 = (PyObject*)__Pyx_PyCode_New(3, 0, 15, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1501, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_T3, 10410, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1502)) __PYX_ERR(0, 10410, __pyx_L1_error) - - /* "talib/func.pyx":10462 - * @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__1503 = PyTuple_Pack(13, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1503)) __PYX_ERR(0, 10462, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1503); - __Pyx_GIVEREF(__pyx_tuple__1503); - __pyx_codeobj__1504 = (PyObject*)__Pyx_PyCode_New(1, 0, 13, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1503, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_TAN, 10462, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1504)) __PYX_ERR(0, 10462, __pyx_L1_error) - - /* "talib/func.pyx":10511 - * @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__1505 = PyTuple_Pack(13, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1505)) __PYX_ERR(0, 10511, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1505); - __Pyx_GIVEREF(__pyx_tuple__1505); - __pyx_codeobj__1506 = (PyObject*)__Pyx_PyCode_New(1, 0, 13, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1505, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_TANH, 10511, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1506)) __PYX_ERR(0, 10511, __pyx_L1_error) - - /* "talib/func.pyx":10560 - * @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__1507 = PyTuple_Pack(14, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1507)) __PYX_ERR(0, 10560, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1507); - __Pyx_GIVEREF(__pyx_tuple__1507); - __pyx_codeobj__1508 = (PyObject*)__Pyx_PyCode_New(2, 0, 14, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1507, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_TEMA, 10560, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1508)) __PYX_ERR(0, 10560, __pyx_L1_error) - - /* "talib/func.pyx":10611 - * @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__1509 = PyTuple_Pack(17, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1509)) __PYX_ERR(0, 10611, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1509); - __Pyx_GIVEREF(__pyx_tuple__1509); - __pyx_codeobj__1510 = (PyObject*)__Pyx_PyCode_New(3, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1509, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_TRANGE, 10611, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1510)) __PYX_ERR(0, 10611, __pyx_L1_error) - - /* "talib/func.pyx":10686 - * @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__1511 = PyTuple_Pack(14, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1511)) __PYX_ERR(0, 10686, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1511); - __Pyx_GIVEREF(__pyx_tuple__1511); - __pyx_codeobj__1512 = (PyObject*)__Pyx_PyCode_New(2, 0, 14, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1511, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_TRIMA, 10686, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1512)) __PYX_ERR(0, 10686, __pyx_L1_error) - - /* "talib/func.pyx":10737 - * @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__1513 = PyTuple_Pack(14, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1513)) __PYX_ERR(0, 10737, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1513); - __Pyx_GIVEREF(__pyx_tuple__1513); - __pyx_codeobj__1514 = (PyObject*)__Pyx_PyCode_New(2, 0, 14, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1513, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_TRIX, 10737, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1514)) __PYX_ERR(0, 10737, __pyx_L1_error) - - /* "talib/func.pyx":10788 - * @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__1515 = PyTuple_Pack(14, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1515)) __PYX_ERR(0, 10788, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1515); - __Pyx_GIVEREF(__pyx_tuple__1515); - __pyx_codeobj__1516 = (PyObject*)__Pyx_PyCode_New(2, 0, 14, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1515, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_TSF, 10788, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1516)) __PYX_ERR(0, 10788, __pyx_L1_error) - - /* "talib/func.pyx":10839 - * @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__1517 = PyTuple_Pack(17, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1517)) __PYX_ERR(0, 10839, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1517); - __Pyx_GIVEREF(__pyx_tuple__1517); - __pyx_codeobj__1518 = (PyObject*)__Pyx_PyCode_New(3, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1517, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_TYPPRICE, 10839, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1518)) __PYX_ERR(0, 10839, __pyx_L1_error) - - /* "talib/func.pyx":10914 - * @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__1519 = PyTuple_Pack(20, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1519)) __PYX_ERR(0, 10914, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1519); - __Pyx_GIVEREF(__pyx_tuple__1519); - __pyx_codeobj__1520 = (PyObject*)__Pyx_PyCode_New(6, 0, 20, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1519, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_ULTOSC, 10914, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1520)) __PYX_ERR(0, 10914, __pyx_L1_error) - - /* "talib/func.pyx":10993 - * @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__1521 = PyTuple_Pack(15, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1521)) __PYX_ERR(0, 10993, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1521); - __Pyx_GIVEREF(__pyx_tuple__1521); - __pyx_codeobj__1522 = (PyObject*)__Pyx_PyCode_New(3, 0, 15, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1521, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_VAR, 10993, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1522)) __PYX_ERR(0, 10993, __pyx_L1_error) - - /* "talib/func.pyx":11045 - * @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__1523 = PyTuple_Pack(17, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1523)) __PYX_ERR(0, 11045, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1523); - __Pyx_GIVEREF(__pyx_tuple__1523); - __pyx_codeobj__1524 = (PyObject*)__Pyx_PyCode_New(3, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1523, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_WCLPRICE, 11045, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1524)) __PYX_ERR(0, 11045, __pyx_L1_error) - - /* "talib/func.pyx":11120 - * @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__1525 = PyTuple_Pack(18, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1525)) __PYX_ERR(0, 11120, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1525); - __Pyx_GIVEREF(__pyx_tuple__1525); - __pyx_codeobj__1526 = (PyObject*)__Pyx_PyCode_New(4, 0, 18, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1525, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_WILLR, 11120, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1526)) __PYX_ERR(0, 11120, __pyx_L1_error) - - /* "talib/func.pyx":11197 - * @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__1527 = PyTuple_Pack(14, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__1527)) __PYX_ERR(0, 11197, __pyx_L1_error) - __Pyx_GOTREF(__pyx_tuple__1527); - __Pyx_GIVEREF(__pyx_tuple__1527); - __pyx_codeobj__1528 = (PyObject*)__Pyx_PyCode_New(2, 0, 14, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__1527, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_jbenedik_Dev_ta_lib_talib, __pyx_n_s_WMA, 11197, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__1528)) __PYX_ERR(0, 11197, __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 initfunc(void); /*proto*/ -PyMODINIT_FUNC initfunc(void) -#else -PyMODINIT_FUNC PyInit_func(void); /*proto*/ -PyMODINIT_FUNC PyInit_func(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_func(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("func", __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__func) { - 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.func")) { - if (unlikely(PyDict_SetItemString(modules, "talib.func", __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/func.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/func.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_4func_NaN = __pyx_t_4; - - /* "talib/func.pyx":15 - * object PyArray_GETCONTIGUOUS(np.ndarray) - * - * np.import_array() # Initialize the NumPy C API # <<<<<<<<<<<<<< - * - * cimport libta_lib as lib - */ - import_array(); - - /* "talib/func.pyx":20 - * from libta_lib cimport TA_RetCode - * - * lib.TA_Initialize() # <<<<<<<<<<<<<< - * - * @wraparound(False) # turn off relative indexing from end of lists - */ - TA_Initialize(); - - /* "talib/func.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_4func_1ACOS, NULL, __pyx_n_s_talib_func); 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/func.pyx":73 - * @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_4func_3AD, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 73, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_AD, __pyx_t_3) < 0) __PYX_ERR(0, 73, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":161 - * @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_4func_5ADD, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 161, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_ADD, __pyx_t_3) < 0) __PYX_ERR(0, 161, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":224 - * @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_4func_7ADOSC, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 224, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_ADOSC, __pyx_t_3) < 0) __PYX_ERR(0, 224, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":315 - * @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_4func_9ADX, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 315, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_ADX, __pyx_t_3) < 0) __PYX_ERR(0, 315, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":392 - * @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_4func_11ADXR, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 392, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_ADXR, __pyx_t_3) < 0) __PYX_ERR(0, 392, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":469 - * @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_4func_13APO, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 469, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_APO, __pyx_t_3) < 0) __PYX_ERR(0, 469, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":522 - * @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_4func_15AROON, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 522, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_AROON, __pyx_t_3) < 0) __PYX_ERR(0, 522, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":593 - * @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_4func_17AROONOSC, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 593, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_AROONOSC, __pyx_t_3) < 0) __PYX_ERR(0, 593, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":657 - * @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_4func_19ASIN, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 657, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_ASIN, __pyx_t_3) < 0) __PYX_ERR(0, 657, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":706 - * @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_4func_21ATAN, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 706, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_ATAN, __pyx_t_3) < 0) __PYX_ERR(0, 706, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":755 - * @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_4func_23ATR, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 755, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_ATR, __pyx_t_3) < 0) __PYX_ERR(0, 755, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":832 - * @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_4func_25AVGPRICE, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 832, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_AVGPRICE, __pyx_t_3) < 0) __PYX_ERR(0, 832, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":920 - * @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_4func_27BBANDS, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 920, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_BBANDS, __pyx_t_3) < 0) __PYX_ERR(0, 920, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":988 - * @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_4func_29BETA, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 988, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_BETA, __pyx_t_3) < 0) __PYX_ERR(0, 988, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":1053 - * @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_4func_31BOP, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1053, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_BOP, __pyx_t_3) < 0) __PYX_ERR(0, 1053, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":1141 - * @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_4func_33CCI, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1141, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_CCI, __pyx_t_3) < 0) __PYX_ERR(0, 1141, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":1218 - * @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_4func_35CDL2CROWS, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1218, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDL2CROWS, __pyx_t_3) < 0) __PYX_ERR(0, 1218, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":1306 - * @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_4func_37CDL3BLACKCROWS, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1306, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDL3BLACKCROWS, __pyx_t_3) < 0) __PYX_ERR(0, 1306, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":1394 - * @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_4func_39CDL3INSIDE, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1394, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDL3INSIDE, __pyx_t_3) < 0) __PYX_ERR(0, 1394, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":1482 - * @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_4func_41CDL3LINESTRIKE, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1482, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDL3LINESTRIKE, __pyx_t_3) < 0) __PYX_ERR(0, 1482, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":1570 - * @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_4func_43CDL3OUTSIDE, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1570, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDL3OUTSIDE, __pyx_t_3) < 0) __PYX_ERR(0, 1570, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":1658 - * @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_4func_45CDL3STARSINSOUTH, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1658, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDL3STARSINSOUTH, __pyx_t_3) < 0) __PYX_ERR(0, 1658, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":1746 - * @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_4func_47CDL3WHITESOLDIERS, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1746, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDL3WHITESOLDIERS, __pyx_t_3) < 0) __PYX_ERR(0, 1746, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":1834 - * @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_4func_49CDLABANDONEDBABY, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1834, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLABANDONEDBABY, __pyx_t_3) < 0) __PYX_ERR(0, 1834, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":1924 - * @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_4func_51CDLADVANCEBLOCK, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 1924, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLADVANCEBLOCK, __pyx_t_3) < 0) __PYX_ERR(0, 1924, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":2012 - * @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_4func_53CDLBELTHOLD, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2012, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLBELTHOLD, __pyx_t_3) < 0) __PYX_ERR(0, 2012, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":2100 - * @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_4func_55CDLBREAKAWAY, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2100, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLBREAKAWAY, __pyx_t_3) < 0) __PYX_ERR(0, 2100, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":2188 - * @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_4func_57CDLCLOSINGMARUBOZU, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2188, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLCLOSINGMARUBOZU, __pyx_t_3) < 0) __PYX_ERR(0, 2188, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":2276 - * @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_4func_59CDLCONCEALBABYSWALL, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2276, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLCONCEALBABYSWALL, __pyx_t_3) < 0) __PYX_ERR(0, 2276, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":2364 - * @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_4func_61CDLCOUNTERATTACK, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2364, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLCOUNTERATTACK, __pyx_t_3) < 0) __PYX_ERR(0, 2364, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":2452 - * @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_4func_63CDLDARKCLOUDCOVER, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2452, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLDARKCLOUDCOVER, __pyx_t_3) < 0) __PYX_ERR(0, 2452, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":2542 - * @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_4func_65CDLDOJI, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2542, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLDOJI, __pyx_t_3) < 0) __PYX_ERR(0, 2542, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":2630 - * @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_4func_67CDLDOJISTAR, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2630, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLDOJISTAR, __pyx_t_3) < 0) __PYX_ERR(0, 2630, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":2718 - * @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_4func_69CDLDRAGONFLYDOJI, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2718, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLDRAGONFLYDOJI, __pyx_t_3) < 0) __PYX_ERR(0, 2718, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":2806 - * @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_4func_71CDLENGULFING, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2806, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLENGULFING, __pyx_t_3) < 0) __PYX_ERR(0, 2806, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":2894 - * @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_4func_73CDLEVENINGDOJISTAR, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2894, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLEVENINGDOJISTAR, __pyx_t_3) < 0) __PYX_ERR(0, 2894, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":2984 - * @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_4func_75CDLEVENINGSTAR, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 2984, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLEVENINGSTAR, __pyx_t_3) < 0) __PYX_ERR(0, 2984, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":3074 - * @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_4func_77CDLGAPSIDESIDEWHITE, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3074, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLGAPSIDESIDEWHITE, __pyx_t_3) < 0) __PYX_ERR(0, 3074, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":3162 - * @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_4func_79CDLGRAVESTONEDOJI, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3162, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLGRAVESTONEDOJI, __pyx_t_3) < 0) __PYX_ERR(0, 3162, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":3250 - * @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_4func_81CDLHAMMER, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3250, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLHAMMER, __pyx_t_3) < 0) __PYX_ERR(0, 3250, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":3338 - * @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_4func_83CDLHANGINGMAN, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3338, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLHANGINGMAN, __pyx_t_3) < 0) __PYX_ERR(0, 3338, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":3426 - * @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_4func_85CDLHARAMI, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3426, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLHARAMI, __pyx_t_3) < 0) __PYX_ERR(0, 3426, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":3514 - * @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_4func_87CDLHARAMICROSS, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3514, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLHARAMICROSS, __pyx_t_3) < 0) __PYX_ERR(0, 3514, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":3602 - * @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_4func_89CDLHIGHWAVE, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3602, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLHIGHWAVE, __pyx_t_3) < 0) __PYX_ERR(0, 3602, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":3690 - * @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_4func_91CDLHIKKAKE, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3690, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLHIKKAKE, __pyx_t_3) < 0) __PYX_ERR(0, 3690, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":3778 - * @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_4func_93CDLHIKKAKEMOD, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3778, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLHIKKAKEMOD, __pyx_t_3) < 0) __PYX_ERR(0, 3778, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":3866 - * @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_4func_95CDLHOMINGPIGEON, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3866, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLHOMINGPIGEON, __pyx_t_3) < 0) __PYX_ERR(0, 3866, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":3954 - * @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_4func_97CDLIDENTICAL3CROWS, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 3954, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLIDENTICAL3CROWS, __pyx_t_3) < 0) __PYX_ERR(0, 3954, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":4042 - * @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_4func_99CDLINNECK, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4042, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLINNECK, __pyx_t_3) < 0) __PYX_ERR(0, 4042, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":4130 - * @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_4func_101CDLINVERTEDHAMMER, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4130, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLINVERTEDHAMMER, __pyx_t_3) < 0) __PYX_ERR(0, 4130, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":4218 - * @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_4func_103CDLKICKING, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4218, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLKICKING, __pyx_t_3) < 0) __PYX_ERR(0, 4218, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":4306 - * @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_4func_105CDLKICKINGBYLENGTH, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4306, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLKICKINGBYLENGTH, __pyx_t_3) < 0) __PYX_ERR(0, 4306, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":4394 - * @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_4func_107CDLLADDERBOTTOM, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4394, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLLADDERBOTTOM, __pyx_t_3) < 0) __PYX_ERR(0, 4394, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":4482 - * @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_4func_109CDLLONGLEGGEDDOJI, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4482, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLLONGLEGGEDDOJI, __pyx_t_3) < 0) __PYX_ERR(0, 4482, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":4570 - * @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_4func_111CDLLONGLINE, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4570, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLLONGLINE, __pyx_t_3) < 0) __PYX_ERR(0, 4570, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":4658 - * @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_4func_113CDLMARUBOZU, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4658, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLMARUBOZU, __pyx_t_3) < 0) __PYX_ERR(0, 4658, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":4746 - * @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_4func_115CDLMATCHINGLOW, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4746, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLMATCHINGLOW, __pyx_t_3) < 0) __PYX_ERR(0, 4746, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":4834 - * @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_4func_117CDLMATHOLD, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4834, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLMATHOLD, __pyx_t_3) < 0) __PYX_ERR(0, 4834, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":4924 - * @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_4func_119CDLMORNINGDOJISTAR, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 4924, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLMORNINGDOJISTAR, __pyx_t_3) < 0) __PYX_ERR(0, 4924, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":5014 - * @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_4func_121CDLMORNINGSTAR, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5014, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLMORNINGSTAR, __pyx_t_3) < 0) __PYX_ERR(0, 5014, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":5104 - * @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_4func_123CDLONNECK, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5104, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLONNECK, __pyx_t_3) < 0) __PYX_ERR(0, 5104, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":5192 - * @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_4func_125CDLPIERCING, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5192, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLPIERCING, __pyx_t_3) < 0) __PYX_ERR(0, 5192, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":5280 - * @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_4func_127CDLRICKSHAWMAN, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5280, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLRICKSHAWMAN, __pyx_t_3) < 0) __PYX_ERR(0, 5280, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":5368 - * @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_4func_129CDLRISEFALL3METHODS, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5368, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLRISEFALL3METHODS, __pyx_t_3) < 0) __PYX_ERR(0, 5368, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":5456 - * @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_4func_131CDLSEPARATINGLINES, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5456, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLSEPARATINGLINES, __pyx_t_3) < 0) __PYX_ERR(0, 5456, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":5544 - * @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_4func_133CDLSHOOTINGSTAR, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5544, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLSHOOTINGSTAR, __pyx_t_3) < 0) __PYX_ERR(0, 5544, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":5632 - * @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_4func_135CDLSHORTLINE, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5632, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLSHORTLINE, __pyx_t_3) < 0) __PYX_ERR(0, 5632, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":5720 - * @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_4func_137CDLSPINNINGTOP, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5720, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLSPINNINGTOP, __pyx_t_3) < 0) __PYX_ERR(0, 5720, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":5808 - * @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_4func_139CDLSTALLEDPATTERN, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5808, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLSTALLEDPATTERN, __pyx_t_3) < 0) __PYX_ERR(0, 5808, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":5896 - * @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_4func_141CDLSTICKSANDWICH, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5896, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLSTICKSANDWICH, __pyx_t_3) < 0) __PYX_ERR(0, 5896, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":5984 - * @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_4func_143CDLTAKURI, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 5984, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLTAKURI, __pyx_t_3) < 0) __PYX_ERR(0, 5984, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":6072 - * @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_4func_145CDLTASUKIGAP, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6072, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLTASUKIGAP, __pyx_t_3) < 0) __PYX_ERR(0, 6072, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":6160 - * @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_4func_147CDLTHRUSTING, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6160, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLTHRUSTING, __pyx_t_3) < 0) __PYX_ERR(0, 6160, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":6248 - * @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_4func_149CDLTRISTAR, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6248, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLTRISTAR, __pyx_t_3) < 0) __PYX_ERR(0, 6248, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":6336 - * @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_4func_151CDLUNIQUE3RIVER, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6336, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLUNIQUE3RIVER, __pyx_t_3) < 0) __PYX_ERR(0, 6336, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":6424 - * @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_4func_153CDLUPSIDEGAP2CROWS, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6424, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLUPSIDEGAP2CROWS, __pyx_t_3) < 0) __PYX_ERR(0, 6424, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":6512 - * @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_4func_155CDLXSIDEGAP3METHODS, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6512, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLXSIDEGAP3METHODS, __pyx_t_3) < 0) __PYX_ERR(0, 6512, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":6600 - * @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_4func_157CEIL, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6600, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_CEIL, __pyx_t_3) < 0) __PYX_ERR(0, 6600, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":6649 - * @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_4func_159CMO, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6649, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_CMO, __pyx_t_3) < 0) __PYX_ERR(0, 6649, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":6700 - * @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_4func_161CORREL, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6700, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_CORREL, __pyx_t_3) < 0) __PYX_ERR(0, 6700, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":6765 - * @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_4func_163COS, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6765, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_COS, __pyx_t_3) < 0) __PYX_ERR(0, 6765, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":6814 - * @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_4func_165COSH, NULL, __pyx_n_s_talib_func); 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_COSH, __pyx_t_3) < 0) __PYX_ERR(0, 6814, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":6863 - * @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_4func_167DEMA, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6863, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_DEMA, __pyx_t_3) < 0) __PYX_ERR(0, 6863, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":6914 - * @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_4func_169DIV, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6914, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_DIV, __pyx_t_3) < 0) __PYX_ERR(0, 6914, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":6977 - * @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_4func_171DX, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 6977, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_DX, __pyx_t_3) < 0) __PYX_ERR(0, 6977, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":7054 - * @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_4func_173EMA, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7054, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_EMA, __pyx_t_3) < 0) __PYX_ERR(0, 7054, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":7105 - * @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_4func_175EXP, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7105, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_EXP, __pyx_t_3) < 0) __PYX_ERR(0, 7105, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":7154 - * @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_4func_177FLOOR, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7154, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_FLOOR, __pyx_t_3) < 0) __PYX_ERR(0, 7154, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":7203 - * @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_4func_179HT_DCPERIOD, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7203, __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, 7203, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":7252 - * @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_4func_181HT_DCPHASE, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7252, __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, 7252, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":7301 - * @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_4func_183HT_PHASOR, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7301, __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, 7301, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":7357 - * @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_4func_185HT_SINE, NULL, __pyx_n_s_talib_func); 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_HT_SINE, __pyx_t_3) < 0) __PYX_ERR(0, 7357, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":7413 - * @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_4func_187HT_TRENDLINE, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7413, __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, 7413, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":7462 - * @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_4func_189HT_TRENDMODE, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7462, __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, 7462, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":7511 - * @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_4func_191KAMA, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7511, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_KAMA, __pyx_t_3) < 0) __PYX_ERR(0, 7511, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":7562 - * @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_4func_193LINEARREG, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7562, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_LINEARREG, __pyx_t_3) < 0) __PYX_ERR(0, 7562, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":7613 - * @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_4func_195LINEARREG_ANGLE, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7613, __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, 7613, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":7664 - * @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_4func_197LINEARREG_INTERCEPT, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7664, __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, 7664, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":7715 - * @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_4func_199LINEARREG_SLOPE, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7715, __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, 7715, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":7766 - * @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_4func_201LN, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7766, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_LN, __pyx_t_3) < 0) __PYX_ERR(0, 7766, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":7815 - * @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_4func_203LOG10, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7815, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_LOG10, __pyx_t_3) < 0) __PYX_ERR(0, 7815, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":7864 - * @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_4func_205MA, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7864, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_MA, __pyx_t_3) < 0) __PYX_ERR(0, 7864, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":7916 - * @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_4func_207MACD, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7916, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_MACD, __pyx_t_3) < 0) __PYX_ERR(0, 7916, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":7983 - * @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_4func_209MACDEXT, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 7983, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_MACDEXT, __pyx_t_3) < 0) __PYX_ERR(0, 7983, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":8053 - * @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_4func_211MACDFIX, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 8053, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_MACDFIX, __pyx_t_3) < 0) __PYX_ERR(0, 8053, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":8118 - * @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_4func_213MAMA, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 8118, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_MAMA, __pyx_t_3) < 0) __PYX_ERR(0, 8118, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":8177 - * @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_4func_215MAVP, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 8177, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_MAVP, __pyx_t_3) < 0) __PYX_ERR(0, 8177, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":8244 - * @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_4func_217MAX, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 8244, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_MAX, __pyx_t_3) < 0) __PYX_ERR(0, 8244, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":8295 - * @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_4func_219MAXINDEX, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 8295, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_MAXINDEX, __pyx_t_3) < 0) __PYX_ERR(0, 8295, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":8346 - * @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_4func_221MEDPRICE, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 8346, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_MEDPRICE, __pyx_t_3) < 0) __PYX_ERR(0, 8346, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":8408 - * @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_4func_223MFI, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 8408, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_MFI, __pyx_t_3) < 0) __PYX_ERR(0, 8408, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":8498 - * @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_4func_225MIDPOINT, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 8498, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_MIDPOINT, __pyx_t_3) < 0) __PYX_ERR(0, 8498, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":8549 - * @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_4func_227MIDPRICE, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 8549, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_MIDPRICE, __pyx_t_3) < 0) __PYX_ERR(0, 8549, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":8613 - * @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_4func_229MIN, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 8613, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_MIN, __pyx_t_3) < 0) __PYX_ERR(0, 8613, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":8664 - * @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_4func_231MININDEX, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 8664, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_MININDEX, __pyx_t_3) < 0) __PYX_ERR(0, 8664, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":8715 - * @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_4func_233MINMAX, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 8715, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_MINMAX, __pyx_t_3) < 0) __PYX_ERR(0, 8715, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":8773 - * @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_4func_235MINMAXINDEX, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 8773, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_MINMAXINDEX, __pyx_t_3) < 0) __PYX_ERR(0, 8773, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":8831 - * @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_4func_237MINUS_DI, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 8831, __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, 8831, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":8908 - * @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_4func_239MINUS_DM, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 8908, __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, 8908, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":8972 - * @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_4func_241MOM, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 8972, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_MOM, __pyx_t_3) < 0) __PYX_ERR(0, 8972, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":9023 - * @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_4func_243MULT, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 9023, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_MULT, __pyx_t_3) < 0) __PYX_ERR(0, 9023, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":9086 - * @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_4func_245NATR, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 9086, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_NATR, __pyx_t_3) < 0) __PYX_ERR(0, 9086, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":9163 - * @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_4func_247OBV, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 9163, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_OBV, __pyx_t_3) < 0) __PYX_ERR(0, 9163, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":9226 - * @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_4func_249PLUS_DI, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 9226, __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, 9226, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":9303 - * @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_4func_251PLUS_DM, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 9303, __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, 9303, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":9367 - * @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_4func_253PPO, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 9367, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_PPO, __pyx_t_3) < 0) __PYX_ERR(0, 9367, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":9420 - * @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_4func_255ROC, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 9420, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_ROC, __pyx_t_3) < 0) __PYX_ERR(0, 9420, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":9471 - * @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_4func_257ROCP, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 9471, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_ROCP, __pyx_t_3) < 0) __PYX_ERR(0, 9471, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":9522 - * @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_4func_259ROCR, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 9522, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_ROCR, __pyx_t_3) < 0) __PYX_ERR(0, 9522, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":9573 - * @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_4func_261ROCR100, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 9573, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_ROCR100, __pyx_t_3) < 0) __PYX_ERR(0, 9573, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":9624 - * @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_4func_263RSI, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 9624, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_RSI, __pyx_t_3) < 0) __PYX_ERR(0, 9624, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":9675 - * @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_4func_265SAR, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 9675, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_SAR, __pyx_t_3) < 0) __PYX_ERR(0, 9675, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":9740 - * @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_4func_267SAREXT, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 9740, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_SAREXT, __pyx_t_3) < 0) __PYX_ERR(0, 9740, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":9811 - * @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_4func_269SIN, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 9811, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_SIN, __pyx_t_3) < 0) __PYX_ERR(0, 9811, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":9860 - * @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_4func_271SINH, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 9860, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_SINH, __pyx_t_3) < 0) __PYX_ERR(0, 9860, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":9909 - * @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_4func_273SMA, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 9909, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_SMA, __pyx_t_3) < 0) __PYX_ERR(0, 9909, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":9960 - * @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_4func_275SQRT, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 9960, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_SQRT, __pyx_t_3) < 0) __PYX_ERR(0, 9960, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":10009 - * @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_4func_277STDDEV, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 10009, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_STDDEV, __pyx_t_3) < 0) __PYX_ERR(0, 10009, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":10061 - * @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_4func_279STOCH, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 10061, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_STOCH, __pyx_t_3) < 0) __PYX_ERR(0, 10061, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":10149 - * @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_4func_281STOCHF, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 10149, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_STOCHF, __pyx_t_3) < 0) __PYX_ERR(0, 10149, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":10235 - * @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_4func_283STOCHRSI, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 10235, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_STOCHRSI, __pyx_t_3) < 0) __PYX_ERR(0, 10235, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":10296 - * @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_4func_285SUB, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 10296, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_SUB, __pyx_t_3) < 0) __PYX_ERR(0, 10296, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":10359 - * @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_4func_287SUM, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 10359, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_SUM, __pyx_t_3) < 0) __PYX_ERR(0, 10359, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":10410 - * @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_4func_289T3, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 10410, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_T3, __pyx_t_3) < 0) __PYX_ERR(0, 10410, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":10462 - * @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_4func_291TAN, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 10462, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_TAN, __pyx_t_3) < 0) __PYX_ERR(0, 10462, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":10511 - * @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_4func_293TANH, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 10511, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_TANH, __pyx_t_3) < 0) __PYX_ERR(0, 10511, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":10560 - * @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_4func_295TEMA, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 10560, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_TEMA, __pyx_t_3) < 0) __PYX_ERR(0, 10560, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":10611 - * @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_4func_297TRANGE, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 10611, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_TRANGE, __pyx_t_3) < 0) __PYX_ERR(0, 10611, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":10686 - * @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_4func_299TRIMA, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 10686, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_TRIMA, __pyx_t_3) < 0) __PYX_ERR(0, 10686, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":10737 - * @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_4func_301TRIX, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 10737, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_TRIX, __pyx_t_3) < 0) __PYX_ERR(0, 10737, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":10788 - * @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_4func_303TSF, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 10788, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_TSF, __pyx_t_3) < 0) __PYX_ERR(0, 10788, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":10839 - * @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_4func_305TYPPRICE, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 10839, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_TYPPRICE, __pyx_t_3) < 0) __PYX_ERR(0, 10839, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":10914 - * @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_4func_307ULTOSC, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 10914, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_ULTOSC, __pyx_t_3) < 0) __PYX_ERR(0, 10914, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":10993 - * @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_4func_309VAR, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 10993, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_VAR, __pyx_t_3) < 0) __PYX_ERR(0, 10993, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":11045 - * @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_4func_311WCLPRICE, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 11045, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_WCLPRICE, __pyx_t_3) < 0) __PYX_ERR(0, 11045, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":11120 - * @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_4func_313WILLR, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 11120, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_WILLR, __pyx_t_3) < 0) __PYX_ERR(0, 11120, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":11197 - * @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_4func_315WMA, NULL, __pyx_n_s_talib_func); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 11197, __pyx_L1_error) - __Pyx_GOTREF(__pyx_t_3); - if (PyDict_SetItem(__pyx_d, __pyx_n_s_WMA, __pyx_t_3) < 0) __PYX_ERR(0, 11197, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.pyx":11246 - * 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, 11246, __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, 11246, __pyx_L1_error) - __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; - - /* "talib/func.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.func", __pyx_clineno, __pyx_lineno, __pyx_filename); - } - Py_DECREF(__pyx_m); __pyx_m = 0; - } else if (!PyErr_Occurred()) { - PyErr_SetString(PyExc_ImportError, "init talib.func"); - } - __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;\ - } - -/* 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_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); - } -} - -/* 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 */ diff --git a/talib/stream.c b/talib/stream.c deleted file mode 100644 index 6dcf16bf5..000000000 --- a/talib/stream.c +++ /dev/null @@ -1,102155 +0,0 @@ -/* 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 -#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 -#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 -#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 - #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 - #else - #include - #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 = 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 = 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 = real.data - */ - } - - /* "talib/stream.pyx":49 - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) - * real_data = 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 = 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 = 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 = 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 = 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 = high.data - */ - } - - /* "talib/stream.pyx":86 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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 = 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 = 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 = 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 = 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 = 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 = low.data - */ - } - - /* "talib/stream.pyx":93 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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 = 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 = 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 = 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 = 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 = 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 = close.data - */ - } - - /* "talib/stream.pyx":100 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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 = 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 = 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 = 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 = 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 = 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 = volume.data - */ - } - - /* "talib/stream.pyx":107 - * if not (PyArray_FLAGS(volume) & np.NPY_C_CONTIGUOUS): - * volume = PyArray_GETCONTIGUOUS(volume) - * volume_data = 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 = 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 = 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 = 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 = 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 = 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 = real0.data - */ - } - - /* "talib/stream.pyx":149 - * if not (PyArray_FLAGS(real0) & np.NPY_C_CONTIGUOUS): - * real0 = PyArray_GETCONTIGUOUS(real0) - * real0_data = 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 = 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 = 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 = 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 = 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 = 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 = real1.data - */ - } - - /* "talib/stream.pyx":156 - * if not (PyArray_FLAGS(real1) & np.NPY_C_CONTIGUOUS): - * real1 = PyArray_GETCONTIGUOUS(real1) - * real1_data = 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 = 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 = 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 = 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 = 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 = 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 = high.data - */ - } - - /* "talib/stream.pyx":198 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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 = 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 = 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 = 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 = 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 = 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 = low.data - */ - } - - /* "talib/stream.pyx":205 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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 = 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 = 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 = 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 = 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 = 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 = close.data - */ - } - - /* "talib/stream.pyx":212 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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 = 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 = 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 = 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 = 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 = 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 = volume.data - */ - } - - /* "talib/stream.pyx":219 - * if not (PyArray_FLAGS(volume) & np.NPY_C_CONTIGUOUS): - * volume = PyArray_GETCONTIGUOUS(volume) - * volume_data = 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 = 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 = 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 = 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 = 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 = 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 = high.data - */ - } - - /* "talib/stream.pyx":263 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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 = 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 = 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 = 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 = 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 = 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 = low.data - */ - } - - /* "talib/stream.pyx":270 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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 = 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 = 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 = 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 = 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 = 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 = close.data - */ - } - - /* "talib/stream.pyx":277 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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 = 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 = 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 = 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 = 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 = 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 = high.data - */ - } - - /* "talib/stream.pyx":319 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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 = 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 = 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 = 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 = 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 = 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 = low.data - */ - } - - /* "talib/stream.pyx":326 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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 = 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 = 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 = 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 = 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 = 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 = close.data - */ - } - - /* "talib/stream.pyx":333 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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 = 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 = 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 = 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 = 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 = 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 = real.data - */ - } - - /* "talib/stream.pyx":375 - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) - * real_data = 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 = 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 = 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 = 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 = 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 = high.data - */ - } - - /* "talib/stream.pyx":414 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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 = 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 = 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 = 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 = 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 = 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 = low.data - */ - } - - /* "talib/stream.pyx":421 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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 = 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 = 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 = 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 = 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 = 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 = high.data - */ - } - - /* "talib/stream.pyx":461 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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 = 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 = 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 = 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 = 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 = 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 = low.data - */ - } - - /* "talib/stream.pyx":468 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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 = 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 = 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 = 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 = 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 = 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 = real.data - */ - } - - /* "talib/stream.pyx":504 - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) - * real_data = 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 = 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 = 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 = 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 = 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 = real.data - */ - } - - /* "talib/stream.pyx":538 - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) - * real_data = 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 = 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 = 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 = 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 = 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 = high.data - */ - } - - /* "talib/stream.pyx":576 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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 = 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 = 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 = 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 = 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 = 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 = low.data - */ - } - - /* "talib/stream.pyx":583 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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 = 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 = 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 = 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 = 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 = 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 = close.data - */ - } - - /* "talib/stream.pyx":590 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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 = 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 = 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 = 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 = 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 = 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 = open.data - */ - } - - /* "talib/stream.pyx":631 - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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 = 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 = 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 = 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 = 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 = 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 = high.data - */ - } - - /* "talib/stream.pyx":638 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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 = 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 = 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 = 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 = 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 = 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 = low.data - */ - } - - /* "talib/stream.pyx":645 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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 = 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 = 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 = 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 = 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 = 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 = close.data - */ - } - - /* "talib/stream.pyx":652 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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 = 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 = 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 = 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 = 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 = 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 = real.data - */ - } - - /* "talib/stream.pyx":701 - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) - * real_data = 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 = real.data - * length = real.shape[0] # <<<<<<<<<<<<<< - * outrealupperband = NaN - * outrealmiddleband = NaN - */ - __pyx_v_length = (__pyx_v_real->dimensions[0]); - - /* "talib/stream.pyx":703 - * real_data = 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 = 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 = 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 = real0.data - */ - } - - /* "talib/stream.pyx":741 - * if not (PyArray_FLAGS(real0) & np.NPY_C_CONTIGUOUS): - * real0 = PyArray_GETCONTIGUOUS(real0) - * real0_data = 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 = 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 = 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 = 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 = 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 = 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 = real1.data - */ - } - - /* "talib/stream.pyx":748 - * if not (PyArray_FLAGS(real1) & np.NPY_C_CONTIGUOUS): - * real1 = PyArray_GETCONTIGUOUS(real1) - * real1_data = 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 = 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 = 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 = 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 = 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 = 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 = open.data - */ - } - - /* "talib/stream.pyx":787 - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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 = 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 = 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 = 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 = 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 = 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 = high.data - */ - } - - /* "talib/stream.pyx":794 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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 = 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 = 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 = 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 = 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 = 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 = low.data - */ - } - - /* "talib/stream.pyx":801 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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 = 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 = 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 = 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 = 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 = 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 = close.data - */ - } - - /* "talib/stream.pyx":808 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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 = 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 = 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 = 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 = 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 = 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 = high.data - */ - } - - /* "talib/stream.pyx":852 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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 = 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 = 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 = 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 = 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 = 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 = low.data - */ - } - - /* "talib/stream.pyx":859 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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 = 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 = 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 = 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 = 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 = 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 = close.data - */ - } - - /* "talib/stream.pyx":866 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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 = 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 = 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 = 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 = 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 = 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 = open.data - */ - } - - /* "talib/stream.pyx":907 - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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 = 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 = 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 = 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 = 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 = 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 = high.data - */ - } - - /* "talib/stream.pyx":914 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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 = 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 = 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 = 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 = 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 = 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 = low.data - */ - } - - /* "talib/stream.pyx":921 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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 = 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 = 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 = 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 = 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 = 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 = close.data - */ - } - - /* "talib/stream.pyx":928 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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 = 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 = 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 = 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 = 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 = 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 = open.data - */ - } - - /* "talib/stream.pyx":971 - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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 = 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 = 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 = 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 = 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 = 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 = high.data - */ - } - - /* "talib/stream.pyx":978 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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 = 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 = 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 = 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 = 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 = 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 = low.data - */ - } - - /* "talib/stream.pyx":985 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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 = 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 = 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 = 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 = 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 = 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 = close.data - */ - } - - /* "talib/stream.pyx":992 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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 = 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 = 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 = 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 = 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 = 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 = open.data - */ - } - - /* "talib/stream.pyx":1035 - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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 = 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 = 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 = 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 = 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 = 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 = high.data - */ - } - - /* "talib/stream.pyx":1042 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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 = 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 = 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 = 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 = 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 = 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 = low.data - */ - } - - /* "talib/stream.pyx":1049 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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 = 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 = 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 = 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 = 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 = 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 = close.data - */ - } - - /* "talib/stream.pyx":1056 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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 = 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 = 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 = 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 = 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 = 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 = open.data - */ - } - - /* "talib/stream.pyx":1099 - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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 = 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 = 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 = 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 = 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 = 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 = high.data - */ - } - - /* "talib/stream.pyx":1106 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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 = 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 = 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 = 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 = 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 = 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 = low.data - */ - } - - /* "talib/stream.pyx":1113 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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 = 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 = 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 = 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 = 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 = 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 = close.data - */ - } - - /* "talib/stream.pyx":1120 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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 = 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 = 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 = 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 = 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 = 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 = open.data - */ - } - - /* "talib/stream.pyx":1163 - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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 = 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 = 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 = 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 = 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 = 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 = high.data - */ - } - - /* "talib/stream.pyx":1170 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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 = 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 = 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 = 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 = 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 = 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 = low.data - */ - } - - /* "talib/stream.pyx":1177 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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 = 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 = 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 = 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 = 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 = 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 = close.data - */ - } - - /* "talib/stream.pyx":1184 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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 = 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 = 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 = 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 = 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 = 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 = open.data - */ - } - - /* "talib/stream.pyx":1227 - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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 = 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 = 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 = 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 = 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 = 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 = high.data - */ - } - - /* "talib/stream.pyx":1234 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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 = 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 = 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 = 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 = 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 = 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 = low.data - */ - } - - /* "talib/stream.pyx":1241 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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 = 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 = 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 = 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 = 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 = 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 = close.data - */ - } - - /* "talib/stream.pyx":1248 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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 = 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 = 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 = 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 = 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 = 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 = open.data - */ - } - - /* "talib/stream.pyx":1291 - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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 = 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 = 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 = 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 = 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 = 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 = high.data - */ - } - - /* "talib/stream.pyx":1298 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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 = 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 = 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 = 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 = 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 = 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 = low.data - */ - } - - /* "talib/stream.pyx":1305 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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 = 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 = 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 = 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 = 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 = 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 = close.data - */ - } - - /* "talib/stream.pyx":1312 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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 = 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 = 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 = 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 = 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 = 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 = open.data - */ - } - - /* "talib/stream.pyx":1357 - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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 = 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 = 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 = 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 = 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 = 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 = high.data - */ - } - - /* "talib/stream.pyx":1364 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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 = 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 = 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 = 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 = 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 = 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 = low.data - */ - } - - /* "talib/stream.pyx":1371 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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 = 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 = 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 = 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 = 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 = 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 = close.data - */ - } - - /* "talib/stream.pyx":1378 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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 = 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 = 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 = 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 = 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 = 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 = open.data - */ - } - - /* "talib/stream.pyx":1421 - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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 = 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 = 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 = 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 = 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 = 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 = high.data - */ - } - - /* "talib/stream.pyx":1428 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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 = 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 = 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 = 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 = 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 = 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 = low.data - */ - } - - /* "talib/stream.pyx":1435 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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 = 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 = 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 = 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 = 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 = 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 = close.data - */ - } - - /* "talib/stream.pyx":1442 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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 = 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 = 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 = 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 = 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 = 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 = open.data - */ - } - - /* "talib/stream.pyx":1485 - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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 = 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 = 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 = 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 = 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 = 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 = high.data - */ - } - - /* "talib/stream.pyx":1492 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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 = 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 = 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 = 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 = 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 = 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 = low.data - */ - } - - /* "talib/stream.pyx":1499 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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 = 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 = 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 = 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 = 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 = 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 = close.data - */ - } - - /* "talib/stream.pyx":1506 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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 = 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 = 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 = 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 = 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 = 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 = open.data - */ - } - - /* "talib/stream.pyx":1549 - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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 = 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 = 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 = 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 = 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 = 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 = high.data - */ - } - - /* "talib/stream.pyx":1556 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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 = 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 = 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 = 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 = 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 = 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 = low.data - */ - } - - /* "talib/stream.pyx":1563 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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 = 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 = 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 = 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 = 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 = 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 = close.data - */ - } - - /* "talib/stream.pyx":1570 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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 = 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 = 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 = 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 = 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 = 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 = open.data - */ - } - - /* "talib/stream.pyx":1613 - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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 = 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 = 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 = 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 = 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 = 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 = high.data - */ - } - - /* "talib/stream.pyx":1620 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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 = 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 = 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 = 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 = 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 = 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 = low.data - */ - } - - /* "talib/stream.pyx":1627 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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 = 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 = 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 = 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 = 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 = 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 = close.data - */ - } - - /* "talib/stream.pyx":1634 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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 = 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 = 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 = 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 = 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 = 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 = open.data - */ - } - - /* "talib/stream.pyx":1677 - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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 = 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 = 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 = 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 = 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 = 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 = high.data - */ - } - - /* "talib/stream.pyx":1684 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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 = 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 = 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 = 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 = 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 = 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 = low.data - */ - } - - /* "talib/stream.pyx":1691 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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 = 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 = 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 = 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 = 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 = 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 = close.data - */ - } - - /* "talib/stream.pyx":1698 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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 = 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 = 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 = 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 = 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 = 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 = open.data - */ - } - - /* "talib/stream.pyx":1741 - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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 = 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 = 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 = 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 = 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 = 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 = high.data - */ - } - - /* "talib/stream.pyx":1748 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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 = 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 = 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 = 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 = 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 = 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 = low.data - */ - } - - /* "talib/stream.pyx":1755 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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 = 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 = 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 = 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 = 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 = 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 = close.data - */ - } - - /* "talib/stream.pyx":1762 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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 = 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 = 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 = 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 = 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 = 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 = open.data - */ - } - - /* "talib/stream.pyx":1807 - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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 = 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 = 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 = 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 = 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 = 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 = high.data - */ - } - - /* "talib/stream.pyx":1814 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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 = 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 = 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 = 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 = 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 = 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 = low.data - */ - } - - /* "talib/stream.pyx":1821 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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 = 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 = 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 = 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 = 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 = 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 = close.data - */ - } - - /* "talib/stream.pyx":1828 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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 = 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 = 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 = 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 = 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 = 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 = open.data - */ - } - - /* "talib/stream.pyx":1871 - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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 = 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 = 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 = 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 = 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 = 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 = high.data - */ - } - - /* "talib/stream.pyx":1878 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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 = 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 = 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 = 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 = 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 = 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 = low.data - */ - } - - /* "talib/stream.pyx":1885 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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 = 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 = 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 = 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 = 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 = 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 = close.data - */ - } - - /* "talib/stream.pyx":1892 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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 = 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 = 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 = 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 = 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 = 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 = open.data - */ - } - - /* "talib/stream.pyx":1935 - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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 = 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 = 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 = 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 = 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 = 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 = high.data - */ - } - - /* "talib/stream.pyx":1942 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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 = 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 = 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 = 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 = 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 = 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 = low.data - */ - } - - /* "talib/stream.pyx":1949 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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 = 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 = 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 = 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 = 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 = 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 = close.data - */ - } - - /* "talib/stream.pyx":1956 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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 = 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 = 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 = 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 = 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 = 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 = open.data - */ - } - - /* "talib/stream.pyx":1999 - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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 = 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 = 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 = 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 = 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 = 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 = high.data - */ - } - - /* "talib/stream.pyx":2006 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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 = 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 = 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 = 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 = 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 = 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 = low.data - */ - } - - /* "talib/stream.pyx":2013 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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 = 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 = 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 = 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 = 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 = 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 = close.data - */ - } - - /* "talib/stream.pyx":2020 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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 = 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 = 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 = 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 = 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 = 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 = open.data - */ - } - - /* "talib/stream.pyx":2063 - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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 = 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 = 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 = 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 = 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 = 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 = high.data - */ - } - - /* "talib/stream.pyx":2070 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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 = 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 = 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 = 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 = 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 = 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 = low.data - */ - } - - /* "talib/stream.pyx":2077 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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 = 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 = 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 = 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 = 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 = 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 = close.data - */ - } - - /* "talib/stream.pyx":2084 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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 = 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 = 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 = 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 = 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 = 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 = open.data - */ - } - - /* "talib/stream.pyx":2129 - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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 = 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 = 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 = 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 = 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 = 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 = high.data - */ - } - - /* "talib/stream.pyx":2136 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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 = 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 = 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 = 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 = 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 = 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 = low.data - */ - } - - /* "talib/stream.pyx":2143 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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 = 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 = 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 = 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 = 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 = 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 = close.data - */ - } - - /* "talib/stream.pyx":2150 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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 = 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 = 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 = 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 = 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 = 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 = open.data - */ - } - - /* "talib/stream.pyx":2195 - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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 = 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 = 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 = 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 = 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 = 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 = high.data - */ - } - - /* "talib/stream.pyx":2202 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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 = 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 = 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 = 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 = 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 = 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 = low.data - */ - } - - /* "talib/stream.pyx":2209 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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 = 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 = 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 = 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 = 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 = 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 = close.data - */ - } - - /* "talib/stream.pyx":2216 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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 = 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 = 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 = 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 = 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 = 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 = open.data - */ - } - - /* "talib/stream.pyx":2259 - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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 = 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 = 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 = 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 = 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 = 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 = high.data - */ - } - - /* "talib/stream.pyx":2266 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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 = 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 = 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 = 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 = 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 = 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 = low.data - */ - } - - /* "talib/stream.pyx":2273 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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 = 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 = 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 = 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 = 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 = 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 = close.data - */ - } - - /* "talib/stream.pyx":2280 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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 = 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 = 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 = 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 = 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 = 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 = open.data - */ - } - - /* "talib/stream.pyx":2323 - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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 = 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 = 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 = 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 = 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 = 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 = high.data - */ - } - - /* "talib/stream.pyx":2330 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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 = 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 = 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 = 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 = 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 = 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 = low.data - */ - } - - /* "talib/stream.pyx":2337 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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 = 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 = 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 = 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 = 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 = 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 = close.data - */ - } - - /* "talib/stream.pyx":2344 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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 = 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 = 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 = 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 = 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 = 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 = open.data - */ - } - - /* "talib/stream.pyx":2387 - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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 = 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 = 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 = 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 = 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 = 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 = high.data - */ - } - - /* "talib/stream.pyx":2394 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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 = 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 = 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 = 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 = 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 = 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 = low.data - */ - } - - /* "talib/stream.pyx":2401 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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 = 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 = 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 = 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 = 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 = 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 = close.data - */ - } - - /* "talib/stream.pyx":2408 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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 = 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 = 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 = 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 = 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 = 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 = open.data - */ - } - - /* "talib/stream.pyx":2451 - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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 = 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 = 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 = 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 = 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 = 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 = high.data - */ - } - - /* "talib/stream.pyx":2458 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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 = 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 = 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 = 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 = 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 = 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 = low.data - */ - } - - /* "talib/stream.pyx":2465 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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 = 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 = 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 = 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 = 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 = 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 = close.data - */ - } - - /* "talib/stream.pyx":2472 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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 = 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 = 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 = 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 = 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 = 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 = open.data - */ - } - - /* "talib/stream.pyx":2515 - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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 = 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 = 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 = 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 = 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 = 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 = high.data - */ - } - - /* "talib/stream.pyx":2522 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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 = 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 = 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 = 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 = 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 = 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 = low.data - */ - } - - /* "talib/stream.pyx":2529 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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 = 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 = 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 = 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 = 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 = 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 = close.data - */ - } - - /* "talib/stream.pyx":2536 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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 = 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 = 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 = 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 = 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 = 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 = open.data - */ - } - - /* "talib/stream.pyx":2579 - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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 = 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 = 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 = 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 = 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 = 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 = high.data - */ - } - - /* "talib/stream.pyx":2586 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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 = 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 = 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 = 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 = 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 = 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 = low.data - */ - } - - /* "talib/stream.pyx":2593 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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 = 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 = 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 = 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 = 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 = 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 = close.data - */ - } - - /* "talib/stream.pyx":2600 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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 = 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 = 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 = 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 = 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 = 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 = open.data - */ - } - - /* "talib/stream.pyx":2643 - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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 = 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 = 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 = 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 = 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 = 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 = high.data - */ - } - - /* "talib/stream.pyx":2650 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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 = 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 = 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 = 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 = 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 = 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 = low.data - */ - } - - /* "talib/stream.pyx":2657 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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 = 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 = 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 = 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 = 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 = 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 = close.data - */ - } - - /* "talib/stream.pyx":2664 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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 = 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 = 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 = 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 = 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 = 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 = open.data - */ - } - - /* "talib/stream.pyx":2707 - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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 = 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 = 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 = 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 = 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 = 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 = high.data - */ - } - - /* "talib/stream.pyx":2714 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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 = 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 = 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 = 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 = 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 = 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 = low.data - */ - } - - /* "talib/stream.pyx":2721 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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 = 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 = 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 = 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 = 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 = 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 = close.data - */ - } - - /* "talib/stream.pyx":2728 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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 = 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 = 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 = 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 = 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 = 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 = open.data - */ - } - - /* "talib/stream.pyx":2771 - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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 = 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 = 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 = 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 = 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 = 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 = high.data - */ - } - - /* "talib/stream.pyx":2778 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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 = 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 = 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 = 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 = 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 = 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 = low.data - */ - } - - /* "talib/stream.pyx":2785 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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 = 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 = 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 = 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 = 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 = 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 = close.data - */ - } - - /* "talib/stream.pyx":2792 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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 = 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 = 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 = 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 = 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 = 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 = open.data - */ - } - - /* "talib/stream.pyx":2835 - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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 = 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 = 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 = 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 = 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 = 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 = high.data - */ - } - - /* "talib/stream.pyx":2842 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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 = 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 = 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 = 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 = 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 = 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 = low.data - */ - } - - /* "talib/stream.pyx":2849 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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 = 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 = 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 = 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 = 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 = 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 = close.data - */ - } - - /* "talib/stream.pyx":2856 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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 = 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 = 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 = 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 = 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 = 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 = open.data - */ - } - - /* "talib/stream.pyx":2899 - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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 = 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 = 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 = 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 = 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 = 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 = high.data - */ - } - - /* "talib/stream.pyx":2906 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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 = 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 = 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 = 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 = 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 = 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 = low.data - */ - } - - /* "talib/stream.pyx":2913 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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 = 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 = 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 = 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 = 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 = 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 = close.data - */ - } - - /* "talib/stream.pyx":2920 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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 = 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 = 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 = 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 = 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 = 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 = open.data - */ - } - - /* "talib/stream.pyx":2963 - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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 = 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 = 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 = 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 = 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 = 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 = high.data - */ - } - - /* "talib/stream.pyx":2970 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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 = 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 = 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 = 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 = 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 = 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 = low.data - */ - } - - /* "talib/stream.pyx":2977 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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 = 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 = 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 = 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 = 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 = 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 = close.data - */ - } - - /* "talib/stream.pyx":2984 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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 = 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 = 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 = 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 = 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 = 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 = open.data - */ - } - - /* "talib/stream.pyx":3027 - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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 = 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 = 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 = 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 = 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 = 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 = high.data - */ - } - - /* "talib/stream.pyx":3034 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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 = 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 = 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 = 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 = 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 = 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 = low.data - */ - } - - /* "talib/stream.pyx":3041 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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 = 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 = 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 = 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 = 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 = 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 = close.data - */ - } - - /* "talib/stream.pyx":3048 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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 = 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 = 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 = 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 = 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 = 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 = open.data - */ - } - - /* "talib/stream.pyx":3091 - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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 = 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 = 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 = 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 = 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 = 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 = high.data - */ - } - - /* "talib/stream.pyx":3098 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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 = 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 = 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 = 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 = 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 = 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 = low.data - */ - } - - /* "talib/stream.pyx":3105 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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 = 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 = 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 = 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 = 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 = 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 = close.data - */ - } - - /* "talib/stream.pyx":3112 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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 = 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 = 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 = 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 = 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 = 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 = open.data - */ - } - - /* "talib/stream.pyx":3155 - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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 = 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 = 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 = 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 = 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 = 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 = high.data - */ - } - - /* "talib/stream.pyx":3162 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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 = 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 = 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 = 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 = 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 = 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 = low.data - */ - } - - /* "talib/stream.pyx":3169 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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 = 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 = 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 = 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 = 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 = 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 = close.data - */ - } - - /* "talib/stream.pyx":3176 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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 = 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 = 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 = 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 = 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 = 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 = open.data - */ - } - - /* "talib/stream.pyx":3219 - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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 = 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 = 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 = 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 = 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 = 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 = high.data - */ - } - - /* "talib/stream.pyx":3226 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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 = 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 = 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 = 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 = 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 = 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 = low.data - */ - } - - /* "talib/stream.pyx":3233 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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 = 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 = 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 = 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 = 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 = 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 = close.data - */ - } - - /* "talib/stream.pyx":3240 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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 = 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 = 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 = 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 = 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 = 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 = open.data - */ - } - - /* "talib/stream.pyx":3283 - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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 = 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 = 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 = 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 = 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 = 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 = high.data - */ - } - - /* "talib/stream.pyx":3290 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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 = 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 = 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 = 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 = 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 = 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 = low.data - */ - } - - /* "talib/stream.pyx":3297 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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 = 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 = 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 = 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 = 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 = 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 = close.data - */ - } - - /* "talib/stream.pyx":3304 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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 = 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 = 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 = 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 = 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 = 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 = open.data - */ - } - - /* "talib/stream.pyx":3347 - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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 = 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 = 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 = 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 = 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 = 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 = high.data - */ - } - - /* "talib/stream.pyx":3354 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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 = 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 = 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 = 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 = 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 = 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 = low.data - */ - } - - /* "talib/stream.pyx":3361 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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 = 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 = 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 = 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 = 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 = 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 = close.data - */ - } - - /* "talib/stream.pyx":3368 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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 = 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 = 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 = 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 = 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 = 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 = open.data - */ - } - - /* "talib/stream.pyx":3411 - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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 = 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 = 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 = 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 = 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 = 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 = high.data - */ - } - - /* "talib/stream.pyx":3418 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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 = 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 = 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 = 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 = 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 = 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 = low.data - */ - } - - /* "talib/stream.pyx":3425 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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 = 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 = 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 = 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 = 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 = 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 = close.data - */ - } - - /* "talib/stream.pyx":3432 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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 = 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 = 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 = 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 = 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 = 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 = open.data - */ - } - - /* "talib/stream.pyx":3475 - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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 = 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 = 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 = 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 = 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 = 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 = high.data - */ - } - - /* "talib/stream.pyx":3482 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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 = 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 = 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 = 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 = 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 = 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 = low.data - */ - } - - /* "talib/stream.pyx":3489 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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 = 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 = 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 = 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 = 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 = 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 = close.data - */ - } - - /* "talib/stream.pyx":3496 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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 = 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 = 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 = 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 = 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 = 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 = open.data - */ - } - - /* "talib/stream.pyx":3541 - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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 = 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 = 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 = 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 = 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 = 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 = high.data - */ - } - - /* "talib/stream.pyx":3548 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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 = 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 = 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 = 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 = 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 = 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 = low.data - */ - } - - /* "talib/stream.pyx":3555 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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 = 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 = 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 = 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 = 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 = 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 = close.data - */ - } - - /* "talib/stream.pyx":3562 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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 = 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 = 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 = 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 = 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 = 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 = open.data - */ - } - - /* "talib/stream.pyx":3607 - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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 = 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 = 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 = 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 = 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 = 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 = high.data - */ - } - - /* "talib/stream.pyx":3614 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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 = 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 = 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 = 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 = 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 = 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 = low.data - */ - } - - /* "talib/stream.pyx":3621 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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 = 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 = 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 = 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 = 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 = 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 = close.data - */ - } - - /* "talib/stream.pyx":3628 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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 = 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 = 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 = 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 = 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 = 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 = open.data - */ - } - - /* "talib/stream.pyx":3673 - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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 = 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 = 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 = 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 = 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 = 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 = high.data - */ - } - - /* "talib/stream.pyx":3680 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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 = 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 = 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 = 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 = 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 = 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 = low.data - */ - } - - /* "talib/stream.pyx":3687 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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 = 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 = 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 = 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 = 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 = 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 = close.data - */ - } - - /* "talib/stream.pyx":3694 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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 = 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 = 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 = 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 = 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 = 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 = open.data - */ - } - - /* "talib/stream.pyx":3737 - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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 = 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 = 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 = 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 = 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 = 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 = high.data - */ - } - - /* "talib/stream.pyx":3744 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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 = 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 = 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 = 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 = 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 = 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 = low.data - */ - } - - /* "talib/stream.pyx":3751 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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 = 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 = 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 = 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 = 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 = 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 = close.data - */ - } - - /* "talib/stream.pyx":3758 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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 = 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 = 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 = 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 = 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 = 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 = open.data - */ - } - - /* "talib/stream.pyx":3801 - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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 = 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 = 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 = 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 = 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 = 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 = high.data - */ - } - - /* "talib/stream.pyx":3808 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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 = 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 = 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 = 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 = 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 = 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 = low.data - */ - } - - /* "talib/stream.pyx":3815 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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 = 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 = 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 = 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 = 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 = 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 = close.data - */ - } - - /* "talib/stream.pyx":3822 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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 = 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 = 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 = 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 = 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 = 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 = open.data - */ - } - - /* "talib/stream.pyx":3865 - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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 = 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 = 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 = 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 = 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 = 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 = high.data - */ - } - - /* "talib/stream.pyx":3872 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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 = 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 = 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 = 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 = 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 = 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 = low.data - */ - } - - /* "talib/stream.pyx":3879 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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 = 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 = 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 = 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 = 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 = 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 = close.data - */ - } - - /* "talib/stream.pyx":3886 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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 = 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 = 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 = 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 = 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 = 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 = open.data - */ - } - - /* "talib/stream.pyx":3929 - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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 = 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 = 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 = 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 = 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 = 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 = high.data - */ - } - - /* "talib/stream.pyx":3936 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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 = 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 = 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 = 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 = 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 = 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 = low.data - */ - } - - /* "talib/stream.pyx":3943 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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 = 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 = 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 = 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 = 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 = 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 = close.data - */ - } - - /* "talib/stream.pyx":3950 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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 = 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 = 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 = 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 = 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 = 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 = open.data - */ - } - - /* "talib/stream.pyx":3993 - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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 = 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 = 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 = 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 = 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 = 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 = high.data - */ - } - - /* "talib/stream.pyx":4000 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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 = 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 = 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 = 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 = 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 = 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 = low.data - */ - } - - /* "talib/stream.pyx":4007 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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 = 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 = 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 = 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 = 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 = 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 = close.data - */ - } - - /* "talib/stream.pyx":4014 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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 = 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 = 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 = 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 = 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 = 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 = open.data - */ - } - - /* "talib/stream.pyx":4057 - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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 = 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 = 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 = 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 = 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 = 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 = high.data - */ - } - - /* "talib/stream.pyx":4064 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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 = 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 = 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 = 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 = 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 = 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 = low.data - */ - } - - /* "talib/stream.pyx":4071 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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 = 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 = 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 = 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 = 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 = 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 = close.data - */ - } - - /* "talib/stream.pyx":4078 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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 = 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 = 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 = 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 = 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 = 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 = open.data - */ - } - - /* "talib/stream.pyx":4121 - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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 = 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 = 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 = 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 = 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 = 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 = high.data - */ - } - - /* "talib/stream.pyx":4128 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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 = 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 = 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 = 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 = 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 = 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 = low.data - */ - } - - /* "talib/stream.pyx":4135 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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 = 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 = 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 = 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 = 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 = 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 = close.data - */ - } - - /* "talib/stream.pyx":4142 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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 = 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 = 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 = 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 = 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 = 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 = open.data - */ - } - - /* "talib/stream.pyx":4185 - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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 = 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 = 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 = 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 = 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 = 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 = high.data - */ - } - - /* "talib/stream.pyx":4192 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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 = 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 = 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 = 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 = 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 = 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 = low.data - */ - } - - /* "talib/stream.pyx":4199 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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 = 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 = 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 = 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 = 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 = 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 = close.data - */ - } - - /* "talib/stream.pyx":4206 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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 = 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 = 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 = 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 = 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 = 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 = open.data - */ - } - - /* "talib/stream.pyx":4249 - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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 = 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 = 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 = 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 = 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 = 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 = high.data - */ - } - - /* "talib/stream.pyx":4256 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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 = 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 = 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 = 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 = 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 = 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 = low.data - */ - } - - /* "talib/stream.pyx":4263 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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 = 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 = 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 = 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 = 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 = 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 = close.data - */ - } - - /* "talib/stream.pyx":4270 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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 = 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 = 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 = 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 = 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 = 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 = open.data - */ - } - - /* "talib/stream.pyx":4313 - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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 = 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 = 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 = 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 = 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 = 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 = high.data - */ - } - - /* "talib/stream.pyx":4320 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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 = 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 = 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 = 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 = 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 = 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 = low.data - */ - } - - /* "talib/stream.pyx":4327 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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 = 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 = 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 = 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 = 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 = 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 = close.data - */ - } - - /* "talib/stream.pyx":4334 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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 = 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 = 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 = 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 = 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 = 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 = open.data - */ - } - - /* "talib/stream.pyx":4377 - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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 = 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 = 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 = 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 = 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 = 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 = high.data - */ - } - - /* "talib/stream.pyx":4384 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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 = 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 = 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 = 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 = 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 = 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 = low.data - */ - } - - /* "talib/stream.pyx":4391 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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 = 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 = 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 = 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 = 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 = 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 = close.data - */ - } - - /* "talib/stream.pyx":4398 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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 = 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 = 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 = 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 = 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 = 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 = open.data - */ - } - - /* "talib/stream.pyx":4441 - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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 = 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 = 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 = 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 = 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 = 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 = high.data - */ - } - - /* "talib/stream.pyx":4448 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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 = 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 = 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 = 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 = 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 = 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 = low.data - */ - } - - /* "talib/stream.pyx":4455 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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 = 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 = 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 = 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 = 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 = 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 = close.data - */ - } - - /* "talib/stream.pyx":4462 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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 = 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 = 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 = 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 = 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 = 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 = open.data - */ - } - - /* "talib/stream.pyx":4505 - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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 = 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 = 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 = 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 = 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 = 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 = high.data - */ - } - - /* "talib/stream.pyx":4512 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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 = 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 = 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 = 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 = 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 = 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 = low.data - */ - } - - /* "talib/stream.pyx":4519 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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 = 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 = 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 = 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 = 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 = 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 = close.data - */ - } - - /* "talib/stream.pyx":4526 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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 = 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 = 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 = 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 = 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 = 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 = open.data - */ - } - - /* "talib/stream.pyx":4569 - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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 = 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 = 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 = 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 = 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 = 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 = high.data - */ - } - - /* "talib/stream.pyx":4576 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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 = 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 = 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 = 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 = 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 = 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 = low.data - */ - } - - /* "talib/stream.pyx":4583 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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 = 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 = 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 = 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 = 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 = 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 = close.data - */ - } - - /* "talib/stream.pyx":4590 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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 = 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 = 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 = 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 = 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 = 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 = open.data - */ - } - - /* "talib/stream.pyx":4633 - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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 = 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 = 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 = 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 = 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 = 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 = high.data - */ - } - - /* "talib/stream.pyx":4640 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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 = 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 = 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 = 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 = 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 = 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 = low.data - */ - } - - /* "talib/stream.pyx":4647 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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 = 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 = 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 = 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 = 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 = 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 = close.data - */ - } - - /* "talib/stream.pyx":4654 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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 = 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 = 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 = 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 = 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 = 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 = open.data - */ - } - - /* "talib/stream.pyx":4697 - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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 = 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 = 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 = 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 = 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 = 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 = high.data - */ - } - - /* "talib/stream.pyx":4704 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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 = 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 = 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 = 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 = 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 = 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 = low.data - */ - } - - /* "talib/stream.pyx":4711 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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 = 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 = 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 = 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 = 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 = 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 = close.data - */ - } - - /* "talib/stream.pyx":4718 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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 = 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 = 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 = 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 = 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 = 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 = open.data - */ - } - - /* "talib/stream.pyx":4761 - * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): - * open = PyArray_GETCONTIGUOUS(open) - * open_data = 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 = 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 = 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 = 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 = 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 = 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 = high.data - */ - } - - /* "talib/stream.pyx":4768 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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 = 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 = 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 = 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 = 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 = 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 = low.data - */ - } - - /* "talib/stream.pyx":4775 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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 = 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 = 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 = 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 = 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 = 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 = close.data - */ - } - - /* "talib/stream.pyx":4782 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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 = 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 = 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 = 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 = 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 = 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 = real.data - */ - } - - /* "talib/stream.pyx":4822 - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) - * real_data = 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 = 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 = 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 = 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 = 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 = real.data - */ - } - - /* "talib/stream.pyx":4858 - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) - * real_data = 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 = 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 = 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 = 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 = 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 = real0.data - */ - } - - /* "talib/stream.pyx":4896 - * if not (PyArray_FLAGS(real0) & np.NPY_C_CONTIGUOUS): - * real0 = PyArray_GETCONTIGUOUS(real0) - * real0_data = 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 = 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 = 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 = 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 = 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 = 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 = real1.data - */ - } - - /* "talib/stream.pyx":4903 - * if not (PyArray_FLAGS(real1) & np.NPY_C_CONTIGUOUS): - * real1 = PyArray_GETCONTIGUOUS(real1) - * real1_data = 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 = 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 = 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 = 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 = 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 = 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 = real.data - */ - } - - /* "talib/stream.pyx":4939 - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) - * real_data = 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 = 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 = 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 = 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 = 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 = real.data - */ - } - - /* "talib/stream.pyx":4973 - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) - * real_data = 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 = 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 = 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 = 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 = 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 = real.data - */ - } - - /* "talib/stream.pyx":5009 - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) - * real_data = 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 = 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 = 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 = 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 = 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 = real0.data - */ - } - - /* "talib/stream.pyx":5045 - * if not (PyArray_FLAGS(real0) & np.NPY_C_CONTIGUOUS): - * real0 = PyArray_GETCONTIGUOUS(real0) - * real0_data = 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 = 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 = 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 = 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 = 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 = 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 = real1.data - */ - } - - /* "talib/stream.pyx":5052 - * if not (PyArray_FLAGS(real1) & np.NPY_C_CONTIGUOUS): - * real1 = PyArray_GETCONTIGUOUS(real1) - * real1_data = 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 = 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 = 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 = 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 = 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 = 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 = high.data - */ - } - - /* "talib/stream.pyx":5092 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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 = 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 = 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 = 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 = 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 = 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 = low.data - */ - } - - /* "talib/stream.pyx":5099 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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 = 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 = 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 = 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 = 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 = 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 = close.data - */ - } - - /* "talib/stream.pyx":5106 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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 = 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 = 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 = 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 = 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 = 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 = real.data - */ - } - - /* "talib/stream.pyx":5146 - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) - * real_data = 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 = 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 = 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 = 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 = 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 = real.data - */ - } - - /* "talib/stream.pyx":5180 - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) - * real_data = 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 = 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 = 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 = 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 = 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 = real.data - */ - } - - /* "talib/stream.pyx":5214 - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) - * real_data = 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 = 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 = 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 = 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 = 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 = real.data - */ - } - - /* "talib/stream.pyx":5248 - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) - * real_data = 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 = 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 = 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 = 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 = 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 = real.data - */ - } - - /* "talib/stream.pyx":5282 - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) - * real_data = 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 = 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 = 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 = 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 = 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 = real.data - */ - } - - /* "talib/stream.pyx":5318 - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) - * real_data = 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 = real.data - * length = real.shape[0] # <<<<<<<<<<<<<< - * outinphase = NaN - * outquadrature = NaN - */ - __pyx_v_length = (__pyx_v_real->dimensions[0]); - - /* "talib/stream.pyx":5320 - * real_data = 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 = 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 = 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 = real.data - */ - } - - /* "talib/stream.pyx":5355 - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) - * real_data = 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 = real.data - * length = real.shape[0] # <<<<<<<<<<<<<< - * outsine = NaN - * outleadsine = NaN - */ - __pyx_v_length = (__pyx_v_real->dimensions[0]); - - /* "talib/stream.pyx":5357 - * real_data = 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 = 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 = 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 = real.data - */ - } - - /* "talib/stream.pyx":5390 - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) - * real_data = 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 = 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 = 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 = 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 = 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 = real.data - */ - } - - /* "talib/stream.pyx":5424 - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) - * real_data = 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 = 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 = 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 = 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 = 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 = real.data - */ - } - - /* "talib/stream.pyx":5460 - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) - * real_data = 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 = 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 = 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 = 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 = 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 = real.data - */ - } - - /* "talib/stream.pyx":5496 - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) - * real_data = 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 = 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 = 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 = 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 = 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 = real.data - */ - } - - /* "talib/stream.pyx":5532 - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) - * real_data = 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 = 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 = 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 = 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 = 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 = real.data - */ - } - - /* "talib/stream.pyx":5568 - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) - * real_data = 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 = 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 = 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 = 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 = 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 = real.data - */ - } - - /* "talib/stream.pyx":5604 - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) - * real_data = 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 = 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 = 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 = 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 = 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 = real.data - */ - } - - /* "talib/stream.pyx":5638 - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) - * real_data = 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 = 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 = 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 = 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 = 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 = real.data - */ - } - - /* "talib/stream.pyx":5672 - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) - * real_data = 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 = 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 = 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 = 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 = 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 = real.data - */ - } - - /* "talib/stream.pyx":5709 - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) - * real_data = 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 = 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 = 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 = 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 = 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 = real.data - */ - } - - /* "talib/stream.pyx":5751 - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) - * real_data = 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 = real.data - * length = real.shape[0] # <<<<<<<<<<<<<< - * outmacd = NaN - * outmacdsignal = NaN - */ - __pyx_v_length = (__pyx_v_real->dimensions[0]); - - /* "talib/stream.pyx":5753 - * real_data = 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 = 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 = 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 = real.data - */ - } - - /* "talib/stream.pyx":5798 - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) - * real_data = 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 = real.data - * length = real.shape[0] # <<<<<<<<<<<<<< - * outmacd = NaN - * outmacdsignal = NaN - */ - __pyx_v_length = (__pyx_v_real->dimensions[0]); - - /* "talib/stream.pyx":5800 - * real_data = 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 = 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 = 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 = real.data - */ - } - - /* "talib/stream.pyx":5840 - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) - * real_data = 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 = real.data - * length = real.shape[0] # <<<<<<<<<<<<<< - * outmacd = NaN - * outmacdsignal = NaN - */ - __pyx_v_length = (__pyx_v_real->dimensions[0]); - - /* "talib/stream.pyx":5842 - * real_data = 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 = 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 = 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 = real.data - */ - } - - /* "talib/stream.pyx":5881 - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) - * real_data = 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 = real.data - * length = real.shape[0] # <<<<<<<<<<<<<< - * outmama = NaN - * outfama = NaN - */ - __pyx_v_length = (__pyx_v_real->dimensions[0]); - - /* "talib/stream.pyx":5883 - * real_data = 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 = 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 = 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 = real.data - */ - } - - /* "talib/stream.pyx":5922 - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) - * real_data = 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 = 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 = 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 = 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 = 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 = 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 = periods.data - */ - } - - /* "talib/stream.pyx":5929 - * if not (PyArray_FLAGS(periods) & np.NPY_C_CONTIGUOUS): - * periods = PyArray_GETCONTIGUOUS(periods) - * periods_data = 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 = 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 = 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 = 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 = 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 = 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 = real.data - */ - } - - /* "talib/stream.pyx":5967 - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) - * real_data = 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 = 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 = 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 = 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 = 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 = real.data - */ - } - - /* "talib/stream.pyx":6003 - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) - * real_data = 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 = 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 = 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 = 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 = 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 = high.data - */ - } - - /* "talib/stream.pyx":6038 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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 = 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 = 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 = 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 = 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 = 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 = low.data - */ - } - - /* "talib/stream.pyx":6045 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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 = 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 = 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 = 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 = 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 = 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 = high.data - */ - } - - /* "talib/stream.pyx":6086 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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 = 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 = 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 = 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 = 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 = 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 = low.data - */ - } - - /* "talib/stream.pyx":6093 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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 = 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 = 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 = 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 = 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 = 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 = close.data - */ - } - - /* "talib/stream.pyx":6100 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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 = 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 = 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 = 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 = 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 = 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 = volume.data - */ - } - - /* "talib/stream.pyx":6107 - * if not (PyArray_FLAGS(volume) & np.NPY_C_CONTIGUOUS): - * volume = PyArray_GETCONTIGUOUS(volume) - * volume_data = 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 = 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 = 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 = 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 = 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 = 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 = real.data - */ - } - - /* "talib/stream.pyx":6149 - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) - * real_data = 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 = 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 = 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 = 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 = 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 = high.data - */ - } - - /* "talib/stream.pyx":6186 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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 = 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 = 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 = 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 = 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 = 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 = low.data - */ - } - - /* "talib/stream.pyx":6193 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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 = 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 = 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 = 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 = 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 = 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 = real.data - */ - } - - /* "talib/stream.pyx":6231 - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) - * real_data = 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 = 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 = 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 = 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 = 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 = real.data - */ - } - - /* "talib/stream.pyx":6267 - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) - * real_data = 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 = 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 = 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 = 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 = 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 = real.data - */ - } - - /* "talib/stream.pyx":6305 - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) - * real_data = 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 = real.data - * length = real.shape[0] # <<<<<<<<<<<<<< - * outmin = NaN - * outmax = NaN - */ - __pyx_v_length = (__pyx_v_real->dimensions[0]); - - /* "talib/stream.pyx":6307 - * real_data = 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 = 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 = 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 = real.data - */ - } - - /* "talib/stream.pyx":6344 - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) - * real_data = 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 = real.data - * length = real.shape[0] # <<<<<<<<<<<<<< - * outminidx = 0 - * outmaxidx = 0 - */ - __pyx_v_length = (__pyx_v_real->dimensions[0]); - - /* "talib/stream.pyx":6346 - * real_data = 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 = 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 = 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 = high.data - */ - } - - /* "talib/stream.pyx":6383 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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 = 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 = 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 = 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 = 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 = 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 = low.data - */ - } - - /* "talib/stream.pyx":6390 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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 = 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 = 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 = 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 = 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 = 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 = close.data - */ - } - - /* "talib/stream.pyx":6397 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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 = 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 = 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 = 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 = 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 = 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 = high.data - */ - } - - /* "talib/stream.pyx":6438 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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 = 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 = 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 = 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 = 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 = 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 = low.data - */ - } - - /* "talib/stream.pyx":6445 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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 = 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 = 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 = 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 = 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 = 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 = real.data - */ - } - - /* "talib/stream.pyx":6483 - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) - * real_data = 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 = 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 = 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 = 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 = 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 = real0.data - */ - } - - /* "talib/stream.pyx":6519 - * if not (PyArray_FLAGS(real0) & np.NPY_C_CONTIGUOUS): - * real0 = PyArray_GETCONTIGUOUS(real0) - * real0_data = 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 = 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 = 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 = 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 = 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 = 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 = real1.data - */ - } - - /* "talib/stream.pyx":6526 - * if not (PyArray_FLAGS(real1) & np.NPY_C_CONTIGUOUS): - * real1 = PyArray_GETCONTIGUOUS(real1) - * real1_data = 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 = 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 = 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 = 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 = 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 = 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 = high.data - */ - } - - /* "talib/stream.pyx":6566 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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 = 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 = 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 = 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 = 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 = 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 = low.data - */ - } - - /* "talib/stream.pyx":6573 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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 = 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 = 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 = 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 = 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 = 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 = close.data - */ - } - - /* "talib/stream.pyx":6580 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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 = 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 = 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 = 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 = 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 = 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 = real.data - */ - } - - /* "talib/stream.pyx":6620 - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) - * real_data = 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 = 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 = 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 = 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 = 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 = 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 = volume.data - */ - } - - /* "talib/stream.pyx":6627 - * if not (PyArray_FLAGS(volume) & np.NPY_C_CONTIGUOUS): - * volume = PyArray_GETCONTIGUOUS(volume) - * volume_data = 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 = 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 = 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 = 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 = 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 = 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 = high.data - */ - } - - /* "talib/stream.pyx":6667 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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 = 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 = 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 = 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 = 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 = 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 = low.data - */ - } - - /* "talib/stream.pyx":6674 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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 = 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 = 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 = 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 = 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 = 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 = close.data - */ - } - - /* "talib/stream.pyx":6681 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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 = 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 = 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 = 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 = 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 = 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 = high.data - */ - } - - /* "talib/stream.pyx":6722 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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 = 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 = 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 = 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 = 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 = 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 = low.data - */ - } - - /* "talib/stream.pyx":6729 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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 = 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 = 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 = 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 = 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 = 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 = real.data - */ - } - - /* "talib/stream.pyx":6769 - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) - * real_data = 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 = 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 = 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 = 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 = 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 = real.data - */ - } - - /* "talib/stream.pyx":6805 - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) - * real_data = 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 = 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 = 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 = 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 = 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 = real.data - */ - } - - /* "talib/stream.pyx":6841 - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) - * real_data = 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 = 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 = 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 = 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 = 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 = real.data - */ - } - - /* "talib/stream.pyx":6877 - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) - * real_data = 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 = 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 = 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 = 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 = 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 = real.data - */ - } - - /* "talib/stream.pyx":6913 - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) - * real_data = 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 = 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 = 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 = 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 = 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 = real.data - */ - } - - /* "talib/stream.pyx":6949 - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) - * real_data = 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 = 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 = 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 = 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 = 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 = high.data - */ - } - - /* "talib/stream.pyx":6987 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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 = 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 = 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 = 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 = 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 = 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 = low.data - */ - } - - /* "talib/stream.pyx":6994 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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 = 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 = 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 = 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 = 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 = 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 = high.data - */ - } - - /* "talib/stream.pyx":7040 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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 = 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 = 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 = 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 = 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 = 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 = low.data - */ - } - - /* "talib/stream.pyx":7047 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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 = 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 = 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 = 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 = 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 = 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 = real.data - */ - } - - /* "talib/stream.pyx":7083 - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) - * real_data = 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 = 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 = 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 = 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 = 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 = real.data - */ - } - - /* "talib/stream.pyx":7117 - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) - * real_data = 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 = 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 = 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 = 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 = 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 = real.data - */ - } - - /* "talib/stream.pyx":7153 - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) - * real_data = 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 = 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 = 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 = 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 = 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 = real.data - */ - } - - /* "talib/stream.pyx":7187 - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) - * real_data = 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 = 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 = 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 = 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 = 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 = real.data - */ - } - - /* "talib/stream.pyx":7224 - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) - * real_data = 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 = 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 = 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 = 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 = 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 = high.data - */ - } - - /* "talib/stream.pyx":7268 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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 = 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 = 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 = 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 = 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 = 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 = low.data - */ - } - - /* "talib/stream.pyx":7275 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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 = 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 = 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 = 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 = 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 = 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 = close.data - */ - } - - /* "talib/stream.pyx":7282 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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 = 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 = 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 = 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 = 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 = 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 = high.data - */ - } - - /* "talib/stream.pyx":7329 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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 = 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 = 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 = 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 = 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 = 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 = low.data - */ - } - - /* "talib/stream.pyx":7336 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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 = 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 = 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 = 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 = 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 = 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 = close.data - */ - } - - /* "talib/stream.pyx":7343 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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 = 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 = 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 = 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 = 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 = 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 = real.data - */ - } - - /* "talib/stream.pyx":7389 - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) - * real_data = 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 = real.data - * length = real.shape[0] # <<<<<<<<<<<<<< - * outfastk = NaN - * outfastd = NaN - */ - __pyx_v_length = (__pyx_v_real->dimensions[0]); - - /* "talib/stream.pyx":7391 - * real_data = 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 = 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 = 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 = real0.data - */ - } - - /* "talib/stream.pyx":7426 - * if not (PyArray_FLAGS(real0) & np.NPY_C_CONTIGUOUS): - * real0 = PyArray_GETCONTIGUOUS(real0) - * real0_data = 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 = 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 = 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 = 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 = 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 = 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 = real1.data - */ - } - - /* "talib/stream.pyx":7433 - * if not (PyArray_FLAGS(real1) & np.NPY_C_CONTIGUOUS): - * real1 = PyArray_GETCONTIGUOUS(real1) - * real1_data = 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 = 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 = 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 = 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 = 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 = 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 = real.data - */ - } - - /* "talib/stream.pyx":7471 - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) - * real_data = 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 = 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 = 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 = 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 = 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 = real.data - */ - } - - /* "talib/stream.pyx":7508 - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) - * real_data = 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 = 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 = 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 = 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 = 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 = real.data - */ - } - - /* "talib/stream.pyx":7542 - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) - * real_data = 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 = 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 = 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 = 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 = 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 = real.data - */ - } - - /* "talib/stream.pyx":7576 - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) - * real_data = 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 = 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 = 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 = 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 = 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 = real.data - */ - } - - /* "talib/stream.pyx":7612 - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) - * real_data = 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 = 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 = 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 = 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 = 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 = high.data - */ - } - - /* "talib/stream.pyx":7648 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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 = 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 = 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 = 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 = 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 = 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 = low.data - */ - } - - /* "talib/stream.pyx":7655 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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 = 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 = 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 = 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 = 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 = 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 = close.data - */ - } - - /* "talib/stream.pyx":7662 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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 = 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 = 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 = 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 = 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 = 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 = real.data - */ - } - - /* "talib/stream.pyx":7702 - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) - * real_data = 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 = 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 = 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 = 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 = 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 = real.data - */ - } - - /* "talib/stream.pyx":7738 - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) - * real_data = 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 = 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 = 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 = 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 = 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 = real.data - */ - } - - /* "talib/stream.pyx":7774 - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) - * real_data = 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 = 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 = 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 = 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 = 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 = high.data - */ - } - - /* "talib/stream.pyx":7810 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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 = 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 = 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 = 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 = 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 = 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 = low.data - */ - } - - /* "talib/stream.pyx":7817 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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 = 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 = 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 = 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 = 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 = 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 = close.data - */ - } - - /* "talib/stream.pyx":7824 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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 = 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 = 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 = 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 = 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 = 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 = high.data - */ - } - - /* "talib/stream.pyx":7868 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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 = 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 = 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 = 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 = 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 = 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 = low.data - */ - } - - /* "talib/stream.pyx":7875 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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 = 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 = 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 = 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 = 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 = 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 = close.data - */ - } - - /* "talib/stream.pyx":7882 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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 = 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 = 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 = 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 = 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 = 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 = real.data - */ - } - - /* "talib/stream.pyx":7923 - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) - * real_data = 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 = 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 = 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 = 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 = 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 = high.data - */ - } - - /* "talib/stream.pyx":7959 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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 = 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 = 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 = 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 = 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 = 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 = low.data - */ - } - - /* "talib/stream.pyx":7966 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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 = 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 = 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 = 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 = 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 = 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 = close.data - */ - } - - /* "talib/stream.pyx":7973 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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 = 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 = 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 = 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 = 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 = 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 = high.data - */ - } - - /* "talib/stream.pyx":8015 - * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): - * high = PyArray_GETCONTIGUOUS(high) - * high_data = 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 = 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 = 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 = 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 = 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 = 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 = low.data - */ - } - - /* "talib/stream.pyx":8022 - * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): - * low = PyArray_GETCONTIGUOUS(low) - * low_data = 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 = 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 = 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 = 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 = 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 = 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 = close.data - */ - } - - /* "talib/stream.pyx":8029 - * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): - * close = PyArray_GETCONTIGUOUS(close) - * close_data = 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 = 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 = 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 = 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 = 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 = 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 = real.data - */ - } - - /* "talib/stream.pyx":8069 - * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): - * real = PyArray_GETCONTIGUOUS(real) - * real_data = 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 = 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 = 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 = ((&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 = ((&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 = ((&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 = stdlib.malloc(sizeof(Py_ssize_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 = stdlib.malloc(sizeof(Py_ssize_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 = stdlib.malloc(sizeof(Py_ssize_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 = 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 = PyArray_STRIDES(self) # <<<<<<<<<<<<<< - * info.shape = 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 = PyArray_STRIDES(self) - * info.shape = 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 = PyArray_STRIDES(self) - * info.shape = 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 = 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 = 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 = 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 = 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 = 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, 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, 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, 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, a) - * - * cdef inline object PyArray_MultiIterNew2(a, b): # <<<<<<<<<<<<<< - * return PyArray_MultiIterNew(2, a, 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, a, 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, a) - * - * cdef inline object PyArray_MultiIterNew2(a, b): # <<<<<<<<<<<<<< - * return PyArray_MultiIterNew(2, a, 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, a, b) - * - * cdef inline object PyArray_MultiIterNew3(a, b, c): # <<<<<<<<<<<<<< - * return PyArray_MultiIterNew(3, a, b, 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, a, b, 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, a, b) - * - * cdef inline object PyArray_MultiIterNew3(a, b, c): # <<<<<<<<<<<<<< - * return PyArray_MultiIterNew(3, a, b, 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, a, b, c) - * - * cdef inline object PyArray_MultiIterNew4(a, b, c, d): # <<<<<<<<<<<<<< - * return PyArray_MultiIterNew(4, a, b, c, 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, a, b, c, 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, a, b, c) - * - * cdef inline object PyArray_MultiIterNew4(a, b, c, d): # <<<<<<<<<<<<<< - * return PyArray_MultiIterNew(4, a, b, c, 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, a, b, c, d) - * - * cdef inline object PyArray_MultiIterNew5(a, b, c, d, e): # <<<<<<<<<<<<<< - * return PyArray_MultiIterNew(5, a, b, c, d, 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, a, b, c, d, 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, a, b, c, d) - * - * cdef inline object PyArray_MultiIterNew5(a, b, c, d, e): # <<<<<<<<<<<<<< - * return PyArray_MultiIterNew(5, a, b, c, d, 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, a, b, c, d, 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 = ((&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 = ((&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) - (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) - (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) - (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) - (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, a, b, c, d, 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 = 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 = 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 = 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 = 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 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 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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 = 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) - (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 */ From b0e1ab688a1f33313c609ab7c933abfe7ed1e37c Mon Sep 17 00:00:00 2001 From: mckelvin Date: Tue, 23 Aug 2016 15:09:50 +0800 Subject: [PATCH 05/13] Add func, common as pxi to libta_lib.pyx --- talib/{common.pyx => _common.pxi} | 1 - talib/{func.pyx => _func.pxi} | 4 ++-- talib/libta_lib.pyx | 2 ++ 3 files changed, 4 insertions(+), 3 deletions(-) rename talib/{common.pyx => _common.pxi} (99%) rename talib/{func.pyx => _func.pxi} (99%) create mode 100644 talib/libta_lib.pyx diff --git a/talib/common.pyx b/talib/_common.pxi similarity index 99% rename from talib/common.pyx rename to talib/_common.pxi index 0a2fc67dc..a0547f3f8 100644 --- a/talib/common.pyx +++ b/talib/_common.pxi @@ -1,4 +1,3 @@ - cimport libta_lib as lib from libta_lib cimport TA_RetCode, TA_FuncUnstId diff --git a/talib/func.pyx b/talib/_func.pxi similarity index 99% rename from talib/func.pyx rename to talib/_func.pxi index 253e64a3b..bf741cbbb 100644 --- a/talib/func.pyx +++ b/talib/_func.pxi @@ -2,7 +2,7 @@ cimport numpy as np from numpy import nan from cython import boundscheck, wraparound -from .common cimport _ta_check_success +# _ta_check_success: defined in _common.pxi cdef double NaN = nan @@ -11243,4 +11243,4 @@ def WMA( np.ndarray real not None , int timeperiod=-2**31 ): _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"] +__TA_FUNCTION_NAMES__ = ["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"] diff --git a/talib/libta_lib.pyx b/talib/libta_lib.pyx new file mode 100644 index 000000000..352044b10 --- /dev/null +++ b/talib/libta_lib.pyx @@ -0,0 +1,2 @@ +include "_common.pxi" +include "_func.pxi" From 93a3eb07005743cf1b94cbd2946a478d7bde3454 Mon Sep 17 00:00:00 2001 From: mckelvin Date: Tue, 23 Aug 2016 15:36:59 +0800 Subject: [PATCH 06/13] Add abstract as pxi to libta_lib.pyx --- talib/__init__.py | 20 +++++++++++------- talib/{abstract.pyx => _abstract.pxi} | 19 ++++-------------- talib/abstract.py | 29 +++++++++++++++++++++++++++ talib/libta_lib.pyx | 1 + 4 files changed, 47 insertions(+), 22 deletions(-) rename talib/{abstract.pyx => _abstract.pxi} (97%) create mode 100644 talib/abstract.py diff --git a/talib/__init__.py b/talib/__init__.py index 837e1d1c5..976160ebe 100644 --- a/talib/__init__.py +++ b/talib/__init__.py @@ -1,12 +1,18 @@ import atexit -from . import common +from .libta_lib import ( + _ta_initialize, _ta_shutdown, MA_Type, __ta_version__, + _ta_set_unstable_period as set_unstable_period, + _ta_get_unstable_period as get_unstable_period, + __TA_FUNCTION_NAMES__ +) + +func = __import__("libta_lib", globals(), locals(), __TA_FUNCTION_NAMES__, level=1) +for func_name in __TA_FUNCTION_NAMES__: + globals()[func_name] = getattr(func, func_name) + from . import abstract -from .common import MA_Type, __ta_version__ -from .common import _ta_set_unstable_period as set_unstable_period -from .common import _ta_get_unstable_period as get_unstable_period -from .func import * __version__ = '0.4.10' @@ -17,8 +23,8 @@ # functions are called. Finally, when the python process exits, we shutdown # the underlying TA-Lib. -common._ta_initialize() -atexit.register(common._ta_shutdown) +_ta_initialize() +atexit.register(_ta_shutdown) __function_groups__ = { 'Cycle Indicators': [ diff --git a/talib/abstract.pyx b/talib/_abstract.pxi similarity index 97% rename from talib/abstract.pyx rename to talib/_abstract.pxi index c7e801a67..faea521e4 100644 --- a/talib/abstract.pyx +++ b/talib/_abstract.pxi @@ -2,9 +2,6 @@ This file Copyright (c) 2013 Brian A Cappello ''' import math - -from . import func as func_c -from .common import _ta_check_success, MA_Type try: from collections import OrderedDict except ImportError: # handle python 2.6 and earlier @@ -15,10 +12,10 @@ import sys cimport numpy as np cimport libta_lib as lib +# NOTE: _ta_check_success, MA_Type is defined in _common.pxi lib.TA_Initialize() -__FUNCTION_NAMES = set(func_c.__all__) __INPUT_ARRAYS_DEFAULTS = {'open': None, 'high': None, @@ -90,11 +87,9 @@ class Function(object): - FunctionInstance([input_arrays,] [param_args_andor_kwargs]) # calls set_function_args and returns self.outputs """ - def __init__(self, function_name, *args, **kwargs): + def __init__(self, function_name, func_object, *args, **kwargs): # make sure the function_name is valid and define all of our variables self.__name = function_name.upper() - if self.__name not in __FUNCTION_NAMES: - raise Exception('%s not supported by TA-LIB.' % self.__name) self.__namestr = self.__name self.__name = str2bytes(self.__name) self.__info = None @@ -109,6 +104,7 @@ class Function(object): # finish initializing: query the TALIB abstract interface and set arguments self.__initialize_function_info() self.set_function_args(*args, **kwargs) + self.func_object = func_object def __initialize_function_info(self): # function info @@ -386,7 +382,7 @@ class Function(object): args.append(value) # Use the func module to actually call the function. - results = func_c.__getattribute__(self.__namestr)(*args) + results = self.func_object(*args) if isinstance(results, np.ndarray): keys = self.__outputs.keys() if not isinstance(keys, list): @@ -682,10 +678,3 @@ cdef int __ta_getLookback(lib.TA_ParamHolder *holder): retCode = lib.TA_GetLookback(holder, &lookback) _ta_check_success('TA_GetLookback', retCode) return lookback - -# Configure all the available TA-Lib functions to be exported as -# an abstract function wrapper for convenient import. -for name in __FUNCTION_NAMES: - exec "%s = Function('%s')" % (name, name) - -__all__ = ['Function'] + list(__FUNCTION_NAMES) diff --git a/talib/abstract.py b/talib/abstract.py new file mode 100644 index 000000000..25f1ee725 --- /dev/null +++ b/talib/abstract.py @@ -0,0 +1,29 @@ +from .libta_lib import Function as _Function, __TA_FUNCTION_NAMES__ + + +_ta_func = __import__( + "libta_lib", globals(), locals(), + __TA_FUNCTION_NAMES__, level=1 +) + +_func_obj_mapping = { + func_name: getattr(_ta_func, func_name) + for func_name in __TA_FUNCTION_NAMES__ +} + + +def Function(function_name, *args, **kwargs): + func_name = function_name.upper() + if func_name not in _func_obj_mapping: + raise Exception('%s not supported by TA-LIB.' % func_name) + + return _Function( + func_name, _func_obj_mapping[func_name], *args, **kwargs + ) + + +for func_name in __TA_FUNCTION_NAMES__: + globals()[func_name] = Function(func_name) + + +__all__ = ["Function"] + __TA_FUNCTION_NAMES__ diff --git a/talib/libta_lib.pyx b/talib/libta_lib.pyx index 352044b10..1a753c257 100644 --- a/talib/libta_lib.pyx +++ b/talib/libta_lib.pyx @@ -1,2 +1,3 @@ include "_common.pxi" include "_func.pxi" +include "_abstract.pxi" From 87399732f248013449dfcdb8414c0bf68f6421f8 Mon Sep 17 00:00:00 2001 From: mckelvin Date: Tue, 23 Aug 2016 15:58:47 +0800 Subject: [PATCH 07/13] Add stream as pxi to libta_lib.pyx --- talib/{stream.pyx => _stream.pxi} | 334 ++++++++++++++---------------- talib/stream.py | 10 + 2 files changed, 169 insertions(+), 175 deletions(-) rename talib/{stream.pyx => _stream.pxi} (94%) create mode 100644 talib/stream.py diff --git a/talib/stream.pyx b/talib/_stream.pxi similarity index 94% rename from talib/stream.pyx rename to talib/_stream.pxi index 3d968c141..2355fc358 100644 --- a/talib/stream.pyx +++ b/talib/_stream.pxi @@ -1,27 +1,13 @@ cimport numpy as np -from numpy import nan from cython import boundscheck, wraparound - -from .common cimport _ta_check_success - -cdef double NaN = nan - -cdef extern from "numpy/arrayobject.h": - int PyArray_TYPE(np.ndarray) - object PyArray_EMPTY(int, np.npy_intp*, int, int) - int PyArray_FLAGS(np.ndarray) - object PyArray_GETCONTIGUOUS(np.ndarray) - -np.import_array() # Initialize the NumPy C API - cimport libta_lib as lib from libta_lib cimport TA_RetCode +# NOTE: _ta_check_success, NaN is defined in _common.pxi -lib.TA_Initialize() @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 ): +def stream_ACOS( np.ndarray real not None ): """ ACOS(real) Vector Trigonometric ACos (Math Transform) @@ -55,7 +41,7 @@ def ACOS( np.ndarray real not None ): @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 ): +def stream_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) Chaikin A/D Line (Volume Indicators) @@ -119,7 +105,7 @@ def AD( np.ndarray high not None , np.ndarray low not None , np.ndarray close no @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 ): +def stream_ADD( np.ndarray real0 not None , np.ndarray real1 not None ): """ ADD(real0, real1) Vector Arithmetic Add (Math Operators) @@ -164,7 +150,7 @@ def ADD( np.ndarray real0 not None , np.ndarray real1 not None ): @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 ): +def stream_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=?]) Chaikin A/D Oscillator (Volume Indicators) @@ -231,7 +217,7 @@ def ADOSC( np.ndarray high not None , np.ndarray low not None , np.ndarray close @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 ): +def stream_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=?]) Average Directional Movement Index (Momentum Indicators) @@ -287,7 +273,7 @@ def ADX( np.ndarray high not None , np.ndarray low not None , np.ndarray close n @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 ): +def stream_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=?]) Average Directional Movement Index Rating (Momentum Indicators) @@ -343,7 +329,7 @@ def ADXR( np.ndarray high not None , np.ndarray low not None , np.ndarray close @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 ): +def stream_APO( np.ndarray real not None , int fastperiod=-2**31 , int slowperiod=-2**31 , int matype=0 ): """ APO(real[, fastperiod=?, slowperiod=?, matype=?]) Absolute Price Oscillator (Momentum Indicators) @@ -381,7 +367,7 @@ def APO( np.ndarray real not None , int fastperiod=-2**31 , int slowperiod=-2**3 @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 ): +def stream_AROON( np.ndarray high not None , np.ndarray low not None , int timeperiod=-2**31 ): """ AROON(high, low[, timeperiod=?]) Aroon (Momentum Indicators) @@ -430,7 +416,7 @@ def AROON( np.ndarray high not None , np.ndarray low not None , int timeperiod=- @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 ): +def stream_AROONOSC( np.ndarray high not None , np.ndarray low not None , int timeperiod=-2**31 ): """ AROONOSC(high, low[, timeperiod=?]) Aroon Oscillator (Momentum Indicators) @@ -476,7 +462,7 @@ def AROONOSC( np.ndarray high not None , np.ndarray low not None , int timeperio @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 ): +def stream_ASIN( np.ndarray real not None ): """ ASIN(real) Vector Trigonometric ASin (Math Transform) @@ -510,7 +496,7 @@ def ASIN( np.ndarray real not None ): @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 ): +def stream_ATAN( np.ndarray real not None ): """ ATAN(real) Vector Trigonometric ATan (Math Transform) @@ -544,7 +530,7 @@ def ATAN( np.ndarray real not None ): @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 ): +def stream_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=?]) Average True Range (Volatility Indicators) @@ -600,7 +586,7 @@ def ATR( np.ndarray high not None , np.ndarray low not None , np.ndarray close n @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 ): +def stream_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) Average Price (Price Transform) @@ -664,7 +650,7 @@ def AVGPRICE( np.ndarray open not None , np.ndarray high not None , np.ndarray l @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 ): +def stream_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=?]) Bollinger Bands (Overlap Studies) @@ -709,7 +695,7 @@ def BBANDS( np.ndarray real not None , int timeperiod=-2**31 , double nbdevup=-4 @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 ): +def stream_BETA( np.ndarray real0 not None , np.ndarray real1 not None , int timeperiod=-2**31 ): """ BETA(real0, real1[, timeperiod=?]) Beta (Statistic Functions) @@ -756,7 +742,7 @@ def BETA( np.ndarray real0 not None , np.ndarray real1 not None , int timeperiod @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 ): +def stream_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) Balance Of Power (Momentum Indicators) @@ -820,7 +806,7 @@ def BOP( np.ndarray open not None , np.ndarray high not None , np.ndarray low no @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 ): +def stream_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=?]) Commodity Channel Index (Momentum Indicators) @@ -876,7 +862,7 @@ def CCI( np.ndarray high not None , np.ndarray low not None , np.ndarray close n @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 ): +def stream_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) Two Crows (Pattern Recognition) @@ -940,7 +926,7 @@ def CDL2CROWS( np.ndarray open not None , np.ndarray high not None , np.ndarray @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 ): +def stream_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) Three Black Crows (Pattern Recognition) @@ -1004,7 +990,7 @@ def CDL3BLACKCROWS( np.ndarray open not None , np.ndarray high not None , np.nda @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 ): +def stream_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) Three Inside Up/Down (Pattern Recognition) @@ -1068,7 +1054,7 @@ def CDL3INSIDE( np.ndarray open not None , np.ndarray high not None , np.ndarray @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 ): +def stream_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) Three-Line Strike (Pattern Recognition) @@ -1132,7 +1118,7 @@ def CDL3LINESTRIKE( np.ndarray open not None , np.ndarray high not None , np.nda @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 ): +def stream_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) Three Outside Up/Down (Pattern Recognition) @@ -1196,7 +1182,7 @@ def CDL3OUTSIDE( np.ndarray open not None , np.ndarray high not None , np.ndarra @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 ): +def stream_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) Three Stars In The South (Pattern Recognition) @@ -1260,7 +1246,7 @@ def CDL3STARSINSOUTH( np.ndarray open not None , np.ndarray high not None , np.n @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 ): +def stream_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) Three Advancing White Soldiers (Pattern Recognition) @@ -1324,7 +1310,7 @@ def CDL3WHITESOLDIERS( np.ndarray open not None , np.ndarray high not None , np. @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 ): +def stream_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=?]) Abandoned Baby (Pattern Recognition) @@ -1390,7 +1376,7 @@ def CDLABANDONEDBABY( np.ndarray open not None , np.ndarray high not None , np.n @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 ): +def stream_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) Advance Block (Pattern Recognition) @@ -1454,7 +1440,7 @@ def CDLADVANCEBLOCK( np.ndarray open not None , np.ndarray high not None , np.nd @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 ): +def stream_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) Belt-hold (Pattern Recognition) @@ -1518,7 +1504,7 @@ def CDLBELTHOLD( np.ndarray open not None , np.ndarray high not None , np.ndarra @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 ): +def stream_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) Breakaway (Pattern Recognition) @@ -1582,7 +1568,7 @@ def CDLBREAKAWAY( np.ndarray open not None , np.ndarray high not None , np.ndarr @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 ): +def stream_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) Closing Marubozu (Pattern Recognition) @@ -1646,7 +1632,7 @@ def CDLCLOSINGMARUBOZU( np.ndarray open not None , np.ndarray high not None , np @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 ): +def stream_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) Concealing Baby Swallow (Pattern Recognition) @@ -1710,7 +1696,7 @@ def CDLCONCEALBABYSWALL( np.ndarray open not None , np.ndarray high not None , n @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 ): +def stream_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) Counterattack (Pattern Recognition) @@ -1774,7 +1760,7 @@ def CDLCOUNTERATTACK( np.ndarray open not None , np.ndarray high not None , np.n @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 ): +def stream_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=?]) Dark Cloud Cover (Pattern Recognition) @@ -1840,7 +1826,7 @@ def CDLDARKCLOUDCOVER( np.ndarray open not None , np.ndarray high not None , np. @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 ): +def stream_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) Doji (Pattern Recognition) @@ -1904,7 +1890,7 @@ def CDLDOJI( np.ndarray open not None , np.ndarray high not None , np.ndarray lo @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 ): +def stream_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) Doji Star (Pattern Recognition) @@ -1968,7 +1954,7 @@ def CDLDOJISTAR( np.ndarray open not None , np.ndarray high not None , np.ndarra @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 ): +def stream_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) Dragonfly Doji (Pattern Recognition) @@ -2032,7 +2018,7 @@ def CDLDRAGONFLYDOJI( np.ndarray open not None , np.ndarray high not None , np.n @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 ): +def stream_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) Engulfing Pattern (Pattern Recognition) @@ -2096,7 +2082,7 @@ def CDLENGULFING( np.ndarray open not None , np.ndarray high not None , np.ndarr @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 ): +def stream_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=?]) Evening Doji Star (Pattern Recognition) @@ -2162,7 +2148,7 @@ def CDLEVENINGDOJISTAR( np.ndarray open not None , np.ndarray high not None , np @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 ): +def stream_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=?]) Evening Star (Pattern Recognition) @@ -2228,7 +2214,7 @@ def CDLEVENINGSTAR( np.ndarray open not None , np.ndarray high not None , np.nda @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 ): +def stream_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) Up/Down-gap side-by-side white lines (Pattern Recognition) @@ -2292,7 +2278,7 @@ def CDLGAPSIDESIDEWHITE( np.ndarray open not None , np.ndarray high not None , n @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 ): +def stream_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) Gravestone Doji (Pattern Recognition) @@ -2356,7 +2342,7 @@ def CDLGRAVESTONEDOJI( np.ndarray open not None , np.ndarray high not None , np. @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 ): +def stream_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) Hammer (Pattern Recognition) @@ -2420,7 +2406,7 @@ def CDLHAMMER( np.ndarray open not None , np.ndarray high not None , np.ndarray @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 ): +def stream_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) Hanging Man (Pattern Recognition) @@ -2484,7 +2470,7 @@ def CDLHANGINGMAN( np.ndarray open not None , np.ndarray high not None , np.ndar @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 ): +def stream_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) Harami Pattern (Pattern Recognition) @@ -2548,7 +2534,7 @@ def CDLHARAMI( np.ndarray open not None , np.ndarray high not None , np.ndarray @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 ): +def stream_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) Harami Cross Pattern (Pattern Recognition) @@ -2612,7 +2598,7 @@ def CDLHARAMICROSS( np.ndarray open not None , np.ndarray high not None , np.nda @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 ): +def stream_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) High-Wave Candle (Pattern Recognition) @@ -2676,7 +2662,7 @@ def CDLHIGHWAVE( np.ndarray open not None , np.ndarray high not None , np.ndarra @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 ): +def stream_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) Hikkake Pattern (Pattern Recognition) @@ -2740,7 +2726,7 @@ def CDLHIKKAKE( np.ndarray open not None , np.ndarray high not None , np.ndarray @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 ): +def stream_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) Modified Hikkake Pattern (Pattern Recognition) @@ -2804,7 +2790,7 @@ def CDLHIKKAKEMOD( np.ndarray open not None , np.ndarray high not None , np.ndar @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 ): +def stream_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) Homing Pigeon (Pattern Recognition) @@ -2868,7 +2854,7 @@ def CDLHOMINGPIGEON( np.ndarray open not None , np.ndarray high not None , np.nd @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 ): +def stream_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) Identical Three Crows (Pattern Recognition) @@ -2932,7 +2918,7 @@ def CDLIDENTICAL3CROWS( np.ndarray open not None , np.ndarray high not None , np @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 ): +def stream_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) In-Neck Pattern (Pattern Recognition) @@ -2996,7 +2982,7 @@ def CDLINNECK( np.ndarray open not None , np.ndarray high not None , np.ndarray @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 ): +def stream_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) Inverted Hammer (Pattern Recognition) @@ -3060,7 +3046,7 @@ def CDLINVERTEDHAMMER( np.ndarray open not None , np.ndarray high not None , np. @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 ): +def stream_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) Kicking (Pattern Recognition) @@ -3124,7 +3110,7 @@ def CDLKICKING( np.ndarray open not None , np.ndarray high not None , np.ndarray @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 ): +def stream_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) Kicking - bull/bear determined by the longer marubozu (Pattern Recognition) @@ -3188,7 +3174,7 @@ def CDLKICKINGBYLENGTH( np.ndarray open not None , np.ndarray high not None , np @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 ): +def stream_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) Ladder Bottom (Pattern Recognition) @@ -3252,7 +3238,7 @@ def CDLLADDERBOTTOM( np.ndarray open not None , np.ndarray high not None , np.nd @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 ): +def stream_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) Long Legged Doji (Pattern Recognition) @@ -3316,7 +3302,7 @@ def CDLLONGLEGGEDDOJI( np.ndarray open not None , np.ndarray high not None , np. @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 ): +def stream_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) Long Line Candle (Pattern Recognition) @@ -3380,7 +3366,7 @@ def CDLLONGLINE( np.ndarray open not None , np.ndarray high not None , np.ndarra @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 ): +def stream_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) Marubozu (Pattern Recognition) @@ -3444,7 +3430,7 @@ def CDLMARUBOZU( np.ndarray open not None , np.ndarray high not None , np.ndarra @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 ): +def stream_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) Matching Low (Pattern Recognition) @@ -3508,7 +3494,7 @@ def CDLMATCHINGLOW( np.ndarray open not None , np.ndarray high not None , np.nda @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 ): +def stream_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=?]) Mat Hold (Pattern Recognition) @@ -3574,7 +3560,7 @@ def CDLMATHOLD( np.ndarray open not None , np.ndarray high not None , np.ndarray @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 ): +def stream_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=?]) Morning Doji Star (Pattern Recognition) @@ -3640,7 +3626,7 @@ def CDLMORNINGDOJISTAR( np.ndarray open not None , np.ndarray high not None , np @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 ): +def stream_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=?]) Morning Star (Pattern Recognition) @@ -3706,7 +3692,7 @@ def CDLMORNINGSTAR( np.ndarray open not None , np.ndarray high not None , np.nda @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 ): +def stream_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) On-Neck Pattern (Pattern Recognition) @@ -3770,7 +3756,7 @@ def CDLONNECK( np.ndarray open not None , np.ndarray high not None , np.ndarray @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 ): +def stream_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) Piercing Pattern (Pattern Recognition) @@ -3834,7 +3820,7 @@ def CDLPIERCING( np.ndarray open not None , np.ndarray high not None , np.ndarra @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 ): +def stream_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) Rickshaw Man (Pattern Recognition) @@ -3898,7 +3884,7 @@ def CDLRICKSHAWMAN( np.ndarray open not None , np.ndarray high not None , np.nda @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 ): +def stream_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) Rising/Falling Three Methods (Pattern Recognition) @@ -3962,7 +3948,7 @@ def CDLRISEFALL3METHODS( np.ndarray open not None , np.ndarray high not None , n @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 ): +def stream_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) Separating Lines (Pattern Recognition) @@ -4026,7 +4012,7 @@ def CDLSEPARATINGLINES( np.ndarray open not None , np.ndarray high not None , np @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 ): +def stream_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) Shooting Star (Pattern Recognition) @@ -4090,7 +4076,7 @@ def CDLSHOOTINGSTAR( np.ndarray open not None , np.ndarray high not None , np.nd @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 ): +def stream_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) Short Line Candle (Pattern Recognition) @@ -4154,7 +4140,7 @@ def CDLSHORTLINE( np.ndarray open not None , np.ndarray high not None , np.ndarr @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 ): +def stream_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) Spinning Top (Pattern Recognition) @@ -4218,7 +4204,7 @@ def CDLSPINNINGTOP( np.ndarray open not None , np.ndarray high not None , np.nda @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 ): +def stream_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) Stalled Pattern (Pattern Recognition) @@ -4282,7 +4268,7 @@ def CDLSTALLEDPATTERN( np.ndarray open not None , np.ndarray high not None , np. @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 ): +def stream_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) Stick Sandwich (Pattern Recognition) @@ -4346,7 +4332,7 @@ def CDLSTICKSANDWICH( np.ndarray open not None , np.ndarray high not None , np.n @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 ): +def stream_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) Takuri (Dragonfly Doji with very long lower shadow) (Pattern Recognition) @@ -4410,7 +4396,7 @@ def CDLTAKURI( np.ndarray open not None , np.ndarray high not None , np.ndarray @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 ): +def stream_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) Tasuki Gap (Pattern Recognition) @@ -4474,7 +4460,7 @@ def CDLTASUKIGAP( np.ndarray open not None , np.ndarray high not None , np.ndarr @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 ): +def stream_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) Thrusting Pattern (Pattern Recognition) @@ -4538,7 +4524,7 @@ def CDLTHRUSTING( np.ndarray open not None , np.ndarray high not None , np.ndarr @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 ): +def stream_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) Tristar Pattern (Pattern Recognition) @@ -4602,7 +4588,7 @@ def CDLTRISTAR( np.ndarray open not None , np.ndarray high not None , np.ndarray @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 ): +def stream_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) Unique 3 River (Pattern Recognition) @@ -4666,7 +4652,7 @@ def CDLUNIQUE3RIVER( np.ndarray open not None , np.ndarray high not None , np.nd @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 ): +def stream_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) Upside Gap Two Crows (Pattern Recognition) @@ -4730,7 +4716,7 @@ def CDLUPSIDEGAP2CROWS( np.ndarray open not None , np.ndarray high not None , np @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 ): +def stream_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) Upside/Downside Gap Three Methods (Pattern Recognition) @@ -4794,7 +4780,7 @@ def CDLXSIDEGAP3METHODS( np.ndarray open not None , np.ndarray high not None , n @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 ): +def stream_CEIL( np.ndarray real not None ): """ CEIL(real) Vector Ceil (Math Transform) @@ -4828,7 +4814,7 @@ def CEIL( np.ndarray real not None ): @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 ): +def stream_CMO( np.ndarray real not None , int timeperiod=-2**31 ): """ CMO(real[, timeperiod=?]) Chande Momentum Oscillator (Momentum Indicators) @@ -4864,7 +4850,7 @@ def CMO( np.ndarray real not None , int timeperiod=-2**31 ): @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 ): +def stream_CORREL( np.ndarray real0 not None , np.ndarray real1 not None , int timeperiod=-2**31 ): """ CORREL(real0, real1[, timeperiod=?]) Pearson's Correlation Coefficient (r) (Statistic Functions) @@ -4911,7 +4897,7 @@ def CORREL( np.ndarray real0 not None , np.ndarray real1 not None , int timeperi @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 ): +def stream_COS( np.ndarray real not None ): """ COS(real) Vector Trigonometric Cos (Math Transform) @@ -4945,7 +4931,7 @@ def COS( np.ndarray real not None ): @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 ): +def stream_COSH( np.ndarray real not None ): """ COSH(real) Vector Trigonometric Cosh (Math Transform) @@ -4979,7 +4965,7 @@ def COSH( np.ndarray real not None ): @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 ): +def stream_DEMA( np.ndarray real not None , int timeperiod=-2**31 ): """ DEMA(real[, timeperiod=?]) Double Exponential Moving Average (Overlap Studies) @@ -5015,7 +5001,7 @@ def DEMA( np.ndarray real not None , int timeperiod=-2**31 ): @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 ): +def stream_DIV( np.ndarray real0 not None , np.ndarray real1 not None ): """ DIV(real0, real1) Vector Arithmetic Div (Math Operators) @@ -5060,7 +5046,7 @@ def DIV( np.ndarray real0 not None , np.ndarray real1 not None ): @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 ): +def stream_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=?]) Directional Movement Index (Momentum Indicators) @@ -5116,7 +5102,7 @@ def DX( np.ndarray high not None , np.ndarray low not None , np.ndarray close no @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 ): +def stream_EMA( np.ndarray real not None , int timeperiod=-2**31 ): """ EMA(real[, timeperiod=?]) Exponential Moving Average (Overlap Studies) @@ -5152,7 +5138,7 @@ def EMA( np.ndarray real not None , int timeperiod=-2**31 ): @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 ): +def stream_EXP( np.ndarray real not None ): """ EXP(real) Vector Arithmetic Exp (Math Transform) @@ -5186,7 +5172,7 @@ def EXP( np.ndarray real not None ): @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 ): +def stream_FLOOR( np.ndarray real not None ): """ FLOOR(real) Vector Floor (Math Transform) @@ -5220,7 +5206,7 @@ def FLOOR( np.ndarray real not None ): @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 ): +def stream_HT_DCPERIOD( np.ndarray real not None ): """ HT_DCPERIOD(real) Hilbert Transform - Dominant Cycle Period (Cycle Indicators) @@ -5254,7 +5240,7 @@ def HT_DCPERIOD( np.ndarray real not None ): @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 ): +def stream_HT_DCPHASE( np.ndarray real not None ): """ HT_DCPHASE(real) Hilbert Transform - Dominant Cycle Phase (Cycle Indicators) @@ -5288,7 +5274,7 @@ def HT_DCPHASE( np.ndarray real not None ): @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 ): +def stream_HT_PHASOR( np.ndarray real not None ): """ HT_PHASOR(real) Hilbert Transform - Phasor Components (Cycle Indicators) @@ -5325,7 +5311,7 @@ def HT_PHASOR( np.ndarray real not None ): @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 ): +def stream_HT_SINE( np.ndarray real not None ): """ HT_SINE(real) Hilbert Transform - SineWave (Cycle Indicators) @@ -5362,7 +5348,7 @@ def HT_SINE( np.ndarray real not None ): @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 ): +def stream_HT_TRENDLINE( np.ndarray real not None ): """ HT_TRENDLINE(real) Hilbert Transform - Instantaneous Trendline (Overlap Studies) @@ -5396,7 +5382,7 @@ def HT_TRENDLINE( np.ndarray real not None ): @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 ): +def stream_HT_TRENDMODE( np.ndarray real not None ): """ HT_TRENDMODE(real) Hilbert Transform - Trend vs Cycle Mode (Cycle Indicators) @@ -5430,7 +5416,7 @@ def HT_TRENDMODE( np.ndarray real not None ): @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 ): +def stream_KAMA( np.ndarray real not None , int timeperiod=-2**31 ): """ KAMA(real[, timeperiod=?]) Kaufman Adaptive Moving Average (Overlap Studies) @@ -5466,7 +5452,7 @@ def KAMA( np.ndarray real not None , int timeperiod=-2**31 ): @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 ): +def stream_LINEARREG( np.ndarray real not None , int timeperiod=-2**31 ): """ LINEARREG(real[, timeperiod=?]) Linear Regression (Statistic Functions) @@ -5502,7 +5488,7 @@ def LINEARREG( np.ndarray real not None , int timeperiod=-2**31 ): @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 ): +def stream_LINEARREG_ANGLE( np.ndarray real not None , int timeperiod=-2**31 ): """ LINEARREG_ANGLE(real[, timeperiod=?]) Linear Regression Angle (Statistic Functions) @@ -5538,7 +5524,7 @@ def LINEARREG_ANGLE( np.ndarray real not None , int timeperiod=-2**31 ): @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 ): +def stream_LINEARREG_INTERCEPT( np.ndarray real not None , int timeperiod=-2**31 ): """ LINEARREG_INTERCEPT(real[, timeperiod=?]) Linear Regression Intercept (Statistic Functions) @@ -5574,7 +5560,7 @@ def LINEARREG_INTERCEPT( np.ndarray real not None , int timeperiod=-2**31 ): @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 ): +def stream_LINEARREG_SLOPE( np.ndarray real not None , int timeperiod=-2**31 ): """ LINEARREG_SLOPE(real[, timeperiod=?]) Linear Regression Slope (Statistic Functions) @@ -5610,7 +5596,7 @@ def LINEARREG_SLOPE( np.ndarray real not None , int timeperiod=-2**31 ): @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 ): +def stream_LN( np.ndarray real not None ): """ LN(real) Vector Log Natural (Math Transform) @@ -5644,7 +5630,7 @@ def LN( np.ndarray real not None ): @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 ): +def stream_LOG10( np.ndarray real not None ): """ LOG10(real) Vector Log10 (Math Transform) @@ -5678,7 +5664,7 @@ def LOG10( np.ndarray real not None ): @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 ): +def stream_MA( np.ndarray real not None , int timeperiod=-2**31 , int matype=0 ): """ MA(real[, timeperiod=?, matype=?]) Moving average (Overlap Studies) @@ -5715,7 +5701,7 @@ def MA( np.ndarray real not None , int timeperiod=-2**31 , int matype=0 ): @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 ): +def stream_MACD( np.ndarray real not None , int fastperiod=-2**31 , int slowperiod=-2**31 , int signalperiod=-2**31 ): """ MACD(real[, fastperiod=?, slowperiod=?, signalperiod=?]) Moving Average Convergence/Divergence (Momentum Indicators) @@ -5759,7 +5745,7 @@ def MACD( np.ndarray real not None , int fastperiod=-2**31 , int slowperiod=-2** @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 ): +def stream_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=?]) MACD with controllable MA type (Momentum Indicators) @@ -5806,7 +5792,7 @@ def MACDEXT( np.ndarray real not None , int fastperiod=-2**31 , int fastmatype=0 @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 ): +def stream_MACDFIX( np.ndarray real not None , int signalperiod=-2**31 ): """ MACDFIX(real[, signalperiod=?]) Moving Average Convergence/Divergence Fix 12/26 (Momentum Indicators) @@ -5848,7 +5834,7 @@ def MACDFIX( np.ndarray real not None , int signalperiod=-2**31 ): @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 ): +def stream_MAMA( np.ndarray real not None , double fastlimit=-4e37 , double slowlimit=-4e37 ): """ MAMA(real[, fastlimit=?, slowlimit=?]) MESA Adaptive Moving Average (Overlap Studies) @@ -5888,7 +5874,7 @@ def MAMA( np.ndarray real not None , double fastlimit=-4e37 , double slowlimit=- @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 ): +def stream_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=?]) Moving average with variable period (Overlap Studies) @@ -5937,7 +5923,7 @@ def MAVP( np.ndarray real not None , np.ndarray periods not None , int minperiod @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 ): +def stream_MAX( np.ndarray real not None , int timeperiod=-2**31 ): """ MAX(real[, timeperiod=?]) Highest value over a specified period (Math Operators) @@ -5973,7 +5959,7 @@ def MAX( np.ndarray real not None , int timeperiod=-2**31 ): @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 ): +def stream_MAXINDEX( np.ndarray real not None , int timeperiod=-2**31 ): """ MAXINDEX(real[, timeperiod=?]) Index of highest value over a specified period (Math Operators) @@ -6009,7 +5995,7 @@ def MAXINDEX( np.ndarray real not None , int timeperiod=-2**31 ): @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 ): +def stream_MEDPRICE( np.ndarray high not None , np.ndarray low not None ): """ MEDPRICE(high, low) Median Price (Price Transform) @@ -6053,7 +6039,7 @@ def MEDPRICE( np.ndarray high not None , np.ndarray low not None ): @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 ): +def stream_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=?]) Money Flow Index (Momentum Indicators) @@ -6119,7 +6105,7 @@ def MFI( np.ndarray high not None , np.ndarray low not None , np.ndarray close n @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 ): +def stream_MIDPOINT( np.ndarray real not None , int timeperiod=-2**31 ): """ MIDPOINT(real[, timeperiod=?]) MidPoint over period (Overlap Studies) @@ -6155,7 +6141,7 @@ def MIDPOINT( np.ndarray real not None , int timeperiod=-2**31 ): @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 ): +def stream_MIDPRICE( np.ndarray high not None , np.ndarray low not None , int timeperiod=-2**31 ): """ MIDPRICE(high, low[, timeperiod=?]) Midpoint Price over period (Overlap Studies) @@ -6201,7 +6187,7 @@ def MIDPRICE( np.ndarray high not None , np.ndarray low not None , int timeperio @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 ): +def stream_MIN( np.ndarray real not None , int timeperiod=-2**31 ): """ MIN(real[, timeperiod=?]) Lowest value over a specified period (Math Operators) @@ -6237,7 +6223,7 @@ def MIN( np.ndarray real not None , int timeperiod=-2**31 ): @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 ): +def stream_MININDEX( np.ndarray real not None , int timeperiod=-2**31 ): """ MININDEX(real[, timeperiod=?]) Index of lowest value over a specified period (Math Operators) @@ -6273,7 +6259,7 @@ def MININDEX( np.ndarray real not None , int timeperiod=-2**31 ): @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 ): +def stream_MINMAX( np.ndarray real not None , int timeperiod=-2**31 ): """ MINMAX(real[, timeperiod=?]) Lowest and highest values over a specified period (Math Operators) @@ -6312,7 +6298,7 @@ def MINMAX( np.ndarray real not None , int timeperiod=-2**31 ): @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 ): +def stream_MINMAXINDEX( np.ndarray real not None , int timeperiod=-2**31 ): """ MINMAXINDEX(real[, timeperiod=?]) Indexes of lowest and highest values over a specified period (Math Operators) @@ -6351,7 +6337,7 @@ def MINMAXINDEX( np.ndarray real not None , int timeperiod=-2**31 ): @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 ): +def stream_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=?]) Minus Directional Indicator (Momentum Indicators) @@ -6407,7 +6393,7 @@ def MINUS_DI( np.ndarray high not None , np.ndarray low not None , np.ndarray cl @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 ): +def stream_MINUS_DM( np.ndarray high not None , np.ndarray low not None , int timeperiod=-2**31 ): """ MINUS_DM(high, low[, timeperiod=?]) Minus Directional Movement (Momentum Indicators) @@ -6453,7 +6439,7 @@ def MINUS_DM( np.ndarray high not None , np.ndarray low not None , int timeperio @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 ): +def stream_MOM( np.ndarray real not None , int timeperiod=-2**31 ): """ MOM(real[, timeperiod=?]) Momentum (Momentum Indicators) @@ -6489,7 +6475,7 @@ def MOM( np.ndarray real not None , int timeperiod=-2**31 ): @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 ): +def stream_MULT( np.ndarray real0 not None , np.ndarray real1 not None ): """ MULT(real0, real1) Vector Arithmetic Mult (Math Operators) @@ -6534,7 +6520,7 @@ def MULT( np.ndarray real0 not None , np.ndarray real1 not None ): @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 ): +def stream_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=?]) Normalized Average True Range (Volatility Indicators) @@ -6590,7 +6576,7 @@ def NATR( np.ndarray high not None , np.ndarray low not None , np.ndarray close @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 ): +def stream_OBV( np.ndarray real not None , np.ndarray volume not None ): """ OBV(real, volume) On Balance Volume (Volume Indicators) @@ -6635,7 +6621,7 @@ def OBV( np.ndarray real not None , np.ndarray volume not None ): @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 ): +def stream_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=?]) Plus Directional Indicator (Momentum Indicators) @@ -6691,7 +6677,7 @@ def PLUS_DI( np.ndarray high not None , np.ndarray low not None , np.ndarray clo @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 ): +def stream_PLUS_DM( np.ndarray high not None , np.ndarray low not None , int timeperiod=-2**31 ): """ PLUS_DM(high, low[, timeperiod=?]) Plus Directional Movement (Momentum Indicators) @@ -6737,7 +6723,7 @@ def PLUS_DM( np.ndarray high not None , np.ndarray low not None , int timeperiod @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 ): +def stream_PPO( np.ndarray real not None , int fastperiod=-2**31 , int slowperiod=-2**31 , int matype=0 ): """ PPO(real[, fastperiod=?, slowperiod=?, matype=?]) Percentage Price Oscillator (Momentum Indicators) @@ -6775,7 +6761,7 @@ def PPO( np.ndarray real not None , int fastperiod=-2**31 , int slowperiod=-2**3 @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 ): +def stream_ROC( np.ndarray real not None , int timeperiod=-2**31 ): """ ROC(real[, timeperiod=?]) Rate of change : ((real/prevPrice)-1)*100 (Momentum Indicators) @@ -6811,7 +6797,7 @@ def ROC( np.ndarray real not None , int timeperiod=-2**31 ): @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 ): +def stream_ROCP( np.ndarray real not None , int timeperiod=-2**31 ): """ ROCP(real[, timeperiod=?]) Rate of change Percentage: (real-prevPrice)/prevPrice (Momentum Indicators) @@ -6847,7 +6833,7 @@ def ROCP( np.ndarray real not None , int timeperiod=-2**31 ): @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 ): +def stream_ROCR( np.ndarray real not None , int timeperiod=-2**31 ): """ ROCR(real[, timeperiod=?]) Rate of change ratio: (real/prevPrice) (Momentum Indicators) @@ -6883,7 +6869,7 @@ def ROCR( np.ndarray real not None , int timeperiod=-2**31 ): @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 ): +def stream_ROCR100( np.ndarray real not None , int timeperiod=-2**31 ): """ ROCR100(real[, timeperiod=?]) Rate of change ratio 100 scale: (real/prevPrice)*100 (Momentum Indicators) @@ -6919,7 +6905,7 @@ def ROCR100( np.ndarray real not None , int timeperiod=-2**31 ): @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 ): +def stream_RSI( np.ndarray real not None , int timeperiod=-2**31 ): """ RSI(real[, timeperiod=?]) Relative Strength Index (Momentum Indicators) @@ -6955,7 +6941,7 @@ def RSI( np.ndarray real not None , int timeperiod=-2**31 ): @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 ): +def stream_SAR( np.ndarray high not None , np.ndarray low not None , double acceleration=0.02 , double maximum=0.2 ): """ SAR(high, low[, acceleration=?, maximum=?]) Parabolic SAR (Overlap Studies) @@ -7002,7 +6988,7 @@ def SAR( np.ndarray high not None , np.ndarray low not None , double acceleratio @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 ): +def stream_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=?]) Parabolic SAR - Extended (Overlap Studies) @@ -7055,7 +7041,7 @@ def SAREXT( np.ndarray high not None , np.ndarray low not None , double startval @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 ): +def stream_SIN( np.ndarray real not None ): """ SIN(real) Vector Trigonometric Sin (Math Transform) @@ -7089,7 +7075,7 @@ def SIN( np.ndarray real not None ): @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 ): +def stream_SINH( np.ndarray real not None ): """ SINH(real) Vector Trigonometric Sinh (Math Transform) @@ -7123,7 +7109,7 @@ def SINH( np.ndarray real not None ): @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 ): +def stream_SMA( np.ndarray real not None , int timeperiod=-2**31 ): """ SMA(real[, timeperiod=?]) Simple Moving Average (Overlap Studies) @@ -7159,7 +7145,7 @@ def SMA( np.ndarray real not None , int timeperiod=-2**31 ): @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 ): +def stream_SQRT( np.ndarray real not None ): """ SQRT(real) Vector Square Root (Math Transform) @@ -7193,7 +7179,7 @@ def SQRT( np.ndarray real not None ): @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 ): +def stream_STDDEV( np.ndarray real not None , int timeperiod=-2**31 , double nbdev=-4e37 ): """ STDDEV(real[, timeperiod=?, nbdev=?]) Standard Deviation (Statistic Functions) @@ -7230,7 +7216,7 @@ def STDDEV( np.ndarray real not None , int timeperiod=-2**31 , double nbdev=-4e3 @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 ): +def stream_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=?]) Stochastic (Momentum Indicators) @@ -7293,7 +7279,7 @@ def STOCH( np.ndarray high not None , np.ndarray low not None , np.ndarray close @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 ): +def stream_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=?]) Stochastic Fast (Momentum Indicators) @@ -7354,7 +7340,7 @@ def STOCHF( np.ndarray high not None , np.ndarray low not None , np.ndarray clos @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 ): +def stream_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=?]) Stochastic Relative Strength Index (Momentum Indicators) @@ -7396,7 +7382,7 @@ def STOCHRSI( np.ndarray real not None , int timeperiod=-2**31 , int fastk_perio @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 ): +def stream_SUB( np.ndarray real0 not None , np.ndarray real1 not None ): """ SUB(real0, real1) Vector Arithmetic Substraction (Math Operators) @@ -7441,7 +7427,7 @@ def SUB( np.ndarray real0 not None , np.ndarray real1 not None ): @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 ): +def stream_SUM( np.ndarray real not None , int timeperiod=-2**31 ): """ SUM(real[, timeperiod=?]) Summation (Math Operators) @@ -7477,7 +7463,7 @@ def SUM( np.ndarray real not None , int timeperiod=-2**31 ): @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 ): +def stream_T3( np.ndarray real not None , int timeperiod=-2**31 , double vfactor=-4e37 ): """ T3(real[, timeperiod=?, vfactor=?]) Triple Exponential Moving Average (T3) (Overlap Studies) @@ -7514,7 +7500,7 @@ def T3( np.ndarray real not None , int timeperiod=-2**31 , double vfactor=-4e37 @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 ): +def stream_TAN( np.ndarray real not None ): """ TAN(real) Vector Trigonometric Tan (Math Transform) @@ -7548,7 +7534,7 @@ def TAN( np.ndarray real not None ): @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 ): +def stream_TANH( np.ndarray real not None ): """ TANH(real) Vector Trigonometric Tanh (Math Transform) @@ -7582,7 +7568,7 @@ def TANH( np.ndarray real not None ): @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 ): +def stream_TEMA( np.ndarray real not None , int timeperiod=-2**31 ): """ TEMA(real[, timeperiod=?]) Triple Exponential Moving Average (Overlap Studies) @@ -7618,7 +7604,7 @@ def TEMA( np.ndarray real not None , int timeperiod=-2**31 ): @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 ): +def stream_TRANGE( np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ): """ TRANGE(high, low, close) True Range (Volatility Indicators) @@ -7672,7 +7658,7 @@ def TRANGE( np.ndarray high not None , np.ndarray low not None , np.ndarray clos @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 ): +def stream_TRIMA( np.ndarray real not None , int timeperiod=-2**31 ): """ TRIMA(real[, timeperiod=?]) Triangular Moving Average (Overlap Studies) @@ -7708,7 +7694,7 @@ def TRIMA( np.ndarray real not None , int timeperiod=-2**31 ): @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 ): +def stream_TRIX( np.ndarray real not None , int timeperiod=-2**31 ): """ TRIX(real[, timeperiod=?]) 1-day Rate-Of-Change (ROC) of a Triple Smooth EMA (Momentum Indicators) @@ -7744,7 +7730,7 @@ def TRIX( np.ndarray real not None , int timeperiod=-2**31 ): @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 ): +def stream_TSF( np.ndarray real not None , int timeperiod=-2**31 ): """ TSF(real[, timeperiod=?]) Time Series Forecast (Statistic Functions) @@ -7780,7 +7766,7 @@ def TSF( np.ndarray real not None , int timeperiod=-2**31 ): @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 ): +def stream_TYPPRICE( np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ): """ TYPPRICE(high, low, close) Typical Price (Price Transform) @@ -7834,7 +7820,7 @@ def TYPPRICE( np.ndarray high not None , np.ndarray low not None , np.ndarray cl @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 ): +def stream_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=?]) Ultimate Oscillator (Momentum Indicators) @@ -7892,7 +7878,7 @@ def ULTOSC( np.ndarray high not None , np.ndarray low not None , np.ndarray clos @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 ): +def stream_VAR( np.ndarray real not None , int timeperiod=-2**31 , double nbdev=-4e37 ): """ VAR(real[, timeperiod=?, nbdev=?]) Variance (Statistic Functions) @@ -7929,7 +7915,7 @@ def VAR( np.ndarray real not None , int timeperiod=-2**31 , double nbdev=-4e37 ) @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 ): +def stream_WCLPRICE( np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ): """ WCLPRICE(high, low, close) Weighted Close Price (Price Transform) @@ -7983,7 +7969,7 @@ def WCLPRICE( np.ndarray high not None , np.ndarray low not None , np.ndarray cl @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 ): +def stream_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=?]) Williams' %R (Momentum Indicators) @@ -8039,7 +8025,7 @@ def WILLR( np.ndarray high not None , np.ndarray low not None , np.ndarray close @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 ): +def stream_WMA( np.ndarray real not None , int timeperiod=-2**31 ): """ WMA(real[, timeperiod=?]) Weighted Moving Average (Overlap Studies) @@ -8072,5 +8058,3 @@ def WMA( np.ndarray real not None , int timeperiod=-2**31 ): 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"] diff --git a/talib/stream.py b/talib/stream.py new file mode 100644 index 000000000..10c13bf13 --- /dev/null +++ b/talib/stream.py @@ -0,0 +1,10 @@ +from .libta_lib import __TA_FUNCTION_NAMES__ + + +_ta_stream_func = __import__( + "libta_lib", globals(), locals(), + __TA_FUNCTION_NAMES__, level=1 +) + +for func_name in __TA_FUNCTION_NAMES__: + globals()[func_name] = getattr(_ta_stream_func, "stream_%s" % func_name) From fe12b80e7fccd2300850535cae7996c48251f12f Mon Sep 17 00:00:00 2001 From: mckelvin Date: Tue, 23 Aug 2016 16:00:09 +0800 Subject: [PATCH 08/13] Clean libta_lib --- talib/_abstract.pxi | 2 -- talib/_common.pxi | 3 +++ talib/_func.pxi | 18 +----------------- talib/common.pxd | 2 -- talib/libta_lib.pxd | 8 ++++++++ talib/libta_lib.pyx | 9 +++++++++ 6 files changed, 21 insertions(+), 21 deletions(-) delete mode 100644 talib/common.pxd diff --git a/talib/_abstract.pxi b/talib/_abstract.pxi index faea521e4..bc0c473f3 100644 --- a/talib/_abstract.pxi +++ b/talib/_abstract.pxi @@ -14,8 +14,6 @@ cimport numpy as np cimport libta_lib as lib # NOTE: _ta_check_success, MA_Type is defined in _common.pxi -lib.TA_Initialize() - __INPUT_ARRAYS_DEFAULTS = {'open': None, 'high': None, diff --git a/talib/_common.pxi b/talib/_common.pxi index a0547f3f8..815da661e 100644 --- a/talib/_common.pxi +++ b/talib/_common.pxi @@ -1,8 +1,11 @@ cimport libta_lib as lib +from numpy import nan from libta_lib cimport TA_RetCode, TA_FuncUnstId +cdef double NaN = nan __ta_version__ = lib.TA_GetVersionString() + cpdef _ta_check_success(str function_name, TA_RetCode ret_code): if ret_code == lib.TA_SUCCESS: return True diff --git a/talib/_func.pxi b/talib/_func.pxi index bf741cbbb..e9bb139d2 100644 --- a/talib/_func.pxi +++ b/talib/_func.pxi @@ -1,23 +1,9 @@ cimport numpy as np -from numpy import nan from cython import boundscheck, wraparound - -# _ta_check_success: defined in _common.pxi - -cdef double NaN = nan - -cdef extern from "numpy/arrayobject.h": - int PyArray_TYPE(np.ndarray) - object PyArray_EMPTY(int, np.npy_intp*, int, int) - int PyArray_FLAGS(np.ndarray) - object PyArray_GETCONTIGUOUS(np.ndarray) - -np.import_array() # Initialize the NumPy C API - cimport libta_lib as lib from libta_lib cimport TA_RetCode +# NOTE: _ta_check_success, NaN is defined in _common.pxi -lib.TA_Initialize() @wraparound(False) # turn off relative indexing from end of lists @boundscheck(False) # turn off bounds-checking for entire function @@ -11242,5 +11228,3 @@ def WMA( np.ndarray real not None , int timeperiod=-2**31 ): retCode = lib.TA_WMA( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) _ta_check_success("TA_WMA", retCode) return outreal - -__TA_FUNCTION_NAMES__ = ["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"] diff --git a/talib/common.pxd b/talib/common.pxd deleted file mode 100644 index 50c264e7b..000000000 --- a/talib/common.pxd +++ /dev/null @@ -1,2 +0,0 @@ -from libta_lib cimport TA_RetCode -cpdef _ta_check_success(str function_name, TA_RetCode ret_code) diff --git a/talib/libta_lib.pxd b/talib/libta_lib.pxd index 60d43a309..49a2013be 100644 --- a/talib/libta_lib.pxd +++ b/talib/libta_lib.pxd @@ -517,3 +517,11 @@ cdef extern from "ta-lib/ta_func.h": # TALIB functions for TA_SetCandleSettings TA_RetCode TA_SetCandleSettings(TA_CandleSettingType settingType, TA_RangeType rangeType, int avgPeriod, double factor) TA_RetCode TA_RestoreCandleSettings(TA_CandleSettingType) + + +cimport numpy as np +cdef extern from "numpy/arrayobject.h": + int PyArray_TYPE(np.ndarray) + object PyArray_EMPTY(int, np.npy_intp*, int, int) + int PyArray_FLAGS(np.ndarray) + object PyArray_GETCONTIGUOUS(np.ndarray) diff --git a/talib/libta_lib.pyx b/talib/libta_lib.pyx index 1a753c257..3783199bd 100644 --- a/talib/libta_lib.pyx +++ b/talib/libta_lib.pyx @@ -1,3 +1,12 @@ +cimport libta_lib as lib +cimport numpy as np + +np.import_array() # Initialize the NumPy C API +lib.TA_Initialize() + include "_common.pxi" include "_func.pxi" include "_abstract.pxi" +include "_stream.pxi" + +__TA_FUNCTION_NAMES__ = ["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"] From e71e1f17d57dd2e9c7073738db546b017612e102 Mon Sep 17 00:00:00 2001 From: mckelvin Date: Tue, 23 Aug 2016 16:40:59 +0800 Subject: [PATCH 09/13] Use ta-lib from vendor if not install --- .gitignore | 3 +- setup.py | 93 ++++++++++++++++++++++++++++++++----------- vendor/include/ta-lib | 1 + 3 files changed, 73 insertions(+), 24 deletions(-) create mode 120000 vendor/include/ta-lib diff --git a/.gitignore b/.gitignore index 3cf494c47..6c1ffec6d 100644 --- a/.gitignore +++ b/.gitignore @@ -3,4 +3,5 @@ build *.so .* *~ - +*.o +*.egg-info/ diff --git a/setup.py b/setup.py index a6e5135fe..f9bf74e9e 100644 --- a/setup.py +++ b/setup.py @@ -1,6 +1,7 @@ #!/usr/bin/env python import sys +import glob import os import warnings @@ -41,8 +42,10 @@ def run_tests(self): from distutils.extension import Extension -lib_talib_name = 'ta_lib' # the underlying C library's name +lib_talib_name = 'ta_lib' # the underlying C library's name +sources = [] +libraries = [] platform_supported = False for prefix in ['darwin', 'linux', 'bsd', 'sunos']: if prefix in sys.platform: @@ -94,34 +97,78 @@ def run_tests(self): break except OSError: pass + libraries = [lib_talib_name] else: - warnings.warn('Cannot find ta-lib library, installation may fail.') + warnings.warn( + "Cannot find ta-lib library, Try to build from source. " + "Installation may fail." + ) + # find vendor/ta-lib -name "*.h" -exec dirname {} \; | sort | uniq + vendor_dir = os.path.join( + os.path.dirname(os.path.abspath(__file__)), + "vendor", + ) + vendor_include_dir = os.path.join( + vendor_dir, + "include", + ) + vendor_talib_dir = os.path.join( + vendor_dir, + "ta-lib", + ) + talib_include_dirs = [ + ("include", ), + ("src", "ta_abstract"), + ("src", "ta_abstract", "frames"), + ("src", "ta_common"), + ("src", "ta_func"), + ] + include_dirs.append(os.path.join(vendor_include_dir)) + include_dirs.extend(( + os.path.join(vendor_talib_dir, *path_args) + for path_args in talib_include_dirs + )) + + talib_source_dirs = [ + ("ta_abstract", ), + ("ta_abstract", "frames"), + ("ta_abstract", "tables"), + ("ta_common", ), + ("ta_func", ) + ] + for path_args in talib_source_dirs: + source_dir = os.path.join(vendor_talib_dir, "src", *path_args) + sources.extend(glob.glob(os.path.join(source_dir, "*.c"))) + sources.remove( + os.path.join(vendor_talib_dir, "src", "ta_abstract", "excel_glue.c") + ) + libraries = [] + lib_talib_dirs = [] cmdclass = {"test": PyTest} if has_cython: cmdclass['build_ext'] = build_ext -ext_modules = [] -for name in ['common', 'func', 'abstract', 'stream']: - ext = Extension( - 'talib.%s' % name, - [('talib/%s.pyx' if has_cython else 'talib/%s.c') % name], - include_dirs = include_dirs, - library_dirs = lib_talib_dirs, - libraries = [lib_talib_name] +ext_modules = [ + Extension( + 'talib.libta_lib', + ["talib/libta_lib.pyx"] + sources, + include_dirs=include_dirs, + library_dirs=lib_talib_dirs, + libraries=libraries ) - ext_modules.append(ext) +] setup( - name = 'TA-Lib', - version = '0.4.10', - description = 'Python wrapper for TA-Lib', - author = 'John Benediktsson', - author_email = 'mrjbq7@gmail.com', - url = 'http://github.com/mrjbq7/ta-lib', - download_url = 'https://github.com/mrjbq7/ta-lib/releases', - classifiers = [ + name='TA-Lib', + version='0.4.10', + description='Python wrapper for TA-Lib', + author='John Benediktsson', + author_email='mrjbq7@gmail.com', + url='http://github.com/mrjbq7/ta-lib', + download_url='https://github.com/mrjbq7/ta-lib/releases', + classifiers=[ "License :: OSI Approved :: BSD License", "Development Status :: 4 - Beta", "Operating System :: Unix", @@ -138,8 +185,8 @@ def run_tests(self): "Intended Audience :: Science/Research", "Intended Audience :: Financial and Insurance Industry", ], - packages = ['talib'], - ext_modules = ext_modules, - cmdclass = cmdclass, - requires = ['numpy'], + packages=['talib'], + ext_modules=ext_modules, + cmdclass=cmdclass, + requires=['numpy'], ) diff --git a/vendor/include/ta-lib b/vendor/include/ta-lib new file mode 120000 index 000000000..25ea2f410 --- /dev/null +++ b/vendor/include/ta-lib @@ -0,0 +1 @@ +../ta-lib/include \ No newline at end of file From f8d2ec895121235b4ea8644f12a3777e058f907c Mon Sep 17 00:00:00 2001 From: mckelvin Date: Tue, 23 Aug 2016 16:57:48 +0800 Subject: [PATCH 10/13] Better layout for compatibility --- setup.py | 4 ++-- talib/__init__.py | 8 ++------ talib/_abstract.pxi | 2 +- talib/_common.pxi | 4 ++-- talib/_func.pxi | 4 ++-- talib/_stream.pxi | 4 ++-- talib/abstract.py | 4 ++-- talib/{libta_lib.pxd => c_ta_lib.pxd} | 0 talib/{libta_lib.pyx => c_ta_lib.pyx} | 2 +- talib/func.py | 14 ++++++++++++++ talib/stream.py | 4 ++-- 11 files changed, 30 insertions(+), 20 deletions(-) rename talib/{libta_lib.pxd => c_ta_lib.pxd} (100%) rename talib/{libta_lib.pyx => c_ta_lib.pyx} (98%) create mode 100644 talib/func.py diff --git a/setup.py b/setup.py index f9bf74e9e..98479b015 100644 --- a/setup.py +++ b/setup.py @@ -151,8 +151,8 @@ def run_tests(self): ext_modules = [ Extension( - 'talib.libta_lib', - ["talib/libta_lib.pyx"] + sources, + 'talib.c_ta_lib', + ["talib/c_ta_lib.pyx"] + sources, include_dirs=include_dirs, library_dirs=lib_talib_dirs, libraries=libraries diff --git a/talib/__init__.py b/talib/__init__.py index 976160ebe..4fe774649 100644 --- a/talib/__init__.py +++ b/talib/__init__.py @@ -1,17 +1,13 @@ import atexit -from .libta_lib import ( +from .c_ta_lib import ( _ta_initialize, _ta_shutdown, MA_Type, __ta_version__, _ta_set_unstable_period as set_unstable_period, _ta_get_unstable_period as get_unstable_period, __TA_FUNCTION_NAMES__ ) - -func = __import__("libta_lib", globals(), locals(), __TA_FUNCTION_NAMES__, level=1) -for func_name in __TA_FUNCTION_NAMES__: - globals()[func_name] = getattr(func, func_name) - +from func import * from . import abstract __version__ = '0.4.10' diff --git a/talib/_abstract.pxi b/talib/_abstract.pxi index bc0c473f3..e48157366 100644 --- a/talib/_abstract.pxi +++ b/talib/_abstract.pxi @@ -11,7 +11,7 @@ import numpy import sys cimport numpy as np -cimport libta_lib as lib +cimport c_ta_lib as lib # NOTE: _ta_check_success, MA_Type is defined in _common.pxi diff --git a/talib/_common.pxi b/talib/_common.pxi index 815da661e..fafb20a2e 100644 --- a/talib/_common.pxi +++ b/talib/_common.pxi @@ -1,6 +1,6 @@ -cimport libta_lib as lib +cimport c_ta_lib as lib from numpy import nan -from libta_lib cimport TA_RetCode, TA_FuncUnstId +from c_ta_lib cimport TA_RetCode, TA_FuncUnstId cdef double NaN = nan __ta_version__ = lib.TA_GetVersionString() diff --git a/talib/_func.pxi b/talib/_func.pxi index e9bb139d2..fde1e80ff 100644 --- a/talib/_func.pxi +++ b/talib/_func.pxi @@ -1,7 +1,7 @@ cimport numpy as np from cython import boundscheck, wraparound -cimport libta_lib as lib -from libta_lib cimport TA_RetCode +cimport c_ta_lib as lib +from c_ta_lib cimport TA_RetCode # NOTE: _ta_check_success, NaN is defined in _common.pxi diff --git a/talib/_stream.pxi b/talib/_stream.pxi index 2355fc358..8c7a77285 100644 --- a/talib/_stream.pxi +++ b/talib/_stream.pxi @@ -1,7 +1,7 @@ cimport numpy as np from cython import boundscheck, wraparound -cimport libta_lib as lib -from libta_lib cimport TA_RetCode +cimport c_ta_lib as lib +from c_ta_lib cimport TA_RetCode # NOTE: _ta_check_success, NaN is defined in _common.pxi diff --git a/talib/abstract.py b/talib/abstract.py index 25f1ee725..03459203e 100644 --- a/talib/abstract.py +++ b/talib/abstract.py @@ -1,8 +1,8 @@ -from .libta_lib import Function as _Function, __TA_FUNCTION_NAMES__ +from .c_ta_lib import Function as _Function, __TA_FUNCTION_NAMES__ _ta_func = __import__( - "libta_lib", globals(), locals(), + "c_ta_lib", globals(), locals(), __TA_FUNCTION_NAMES__, level=1 ) diff --git a/talib/libta_lib.pxd b/talib/c_ta_lib.pxd similarity index 100% rename from talib/libta_lib.pxd rename to talib/c_ta_lib.pxd diff --git a/talib/libta_lib.pyx b/talib/c_ta_lib.pyx similarity index 98% rename from talib/libta_lib.pyx rename to talib/c_ta_lib.pyx index 3783199bd..fc6dcf39d 100644 --- a/talib/libta_lib.pyx +++ b/talib/c_ta_lib.pyx @@ -1,4 +1,4 @@ -cimport libta_lib as lib +cimport c_ta_lib as lib cimport numpy as np np.import_array() # Initialize the NumPy C API diff --git a/talib/func.py b/talib/func.py new file mode 100644 index 000000000..4ce2cef32 --- /dev/null +++ b/talib/func.py @@ -0,0 +1,14 @@ +from .c_ta_lib import __TA_FUNCTION_NAMES__ + + +_ta_func = __import__( + "c_ta_lib", globals(), locals(), + __TA_FUNCTION_NAMES__, level=1 +) +globals().update({ + func_name: getattr(_ta_func, func_name) + for func_name in __TA_FUNCTION_NAMES__ +}) + + +__all__ = __TA_FUNCTION_NAMES__ diff --git a/talib/stream.py b/talib/stream.py index 10c13bf13..08c3af496 100644 --- a/talib/stream.py +++ b/talib/stream.py @@ -1,8 +1,8 @@ -from .libta_lib import __TA_FUNCTION_NAMES__ +from .c_ta_lib import __TA_FUNCTION_NAMES__ _ta_stream_func = __import__( - "libta_lib", globals(), locals(), + "c_ta_lib", globals(), locals(), __TA_FUNCTION_NAMES__, level=1 ) From e0aa47557b8e00c2b558b9f6cf41f5391a3ea53f Mon Sep 17 00:00:00 2001 From: mckelvin Date: Tue, 23 Aug 2016 17:00:21 +0800 Subject: [PATCH 11/13] Add generated c file (by Cython 0.24.1) --- setup.py | 2 +- talib/c_ta_lib.c | 250389 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 250390 insertions(+), 1 deletion(-) create mode 100644 talib/c_ta_lib.c diff --git a/setup.py b/setup.py index 98479b015..3d7f9fc80 100644 --- a/setup.py +++ b/setup.py @@ -152,7 +152,7 @@ def run_tests(self): ext_modules = [ Extension( 'talib.c_ta_lib', - ["talib/c_ta_lib.pyx"] + sources, + ["talib/c_ta_lib.pyx" if has_cython else "talib/c_ta_lib.c"] + sources, include_dirs=include_dirs, library_dirs=lib_talib_dirs, libraries=libraries diff --git a/talib/c_ta_lib.c b/talib/c_ta_lib.c new file mode 100644 index 000000000..6a51a7dfd --- /dev/null +++ b/talib/c_ta_lib.c @@ -0,0 +1,250389 @@ +/* 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 +#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 +#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__c_ta_lib +#define __PYX_HAVE_API__talib__c_ta_lib +#include "ta-lib/ta_defs.h" +#include "ta-lib/ta_common.h" +#include "ta-lib/ta_abstract.h" +#include "ta-lib/ta_func.h" +#include "string.h" +#include "stdio.h" +#include "stdlib.h" +#include "numpy/arrayobject.h" +#include "numpy/ufuncobject.h" +#ifdef _OPENMP +#include +#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 + #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 + #else + #include + #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/_common.pxi", + "talib/_abstract.pxi", + "talib/_func.pxi", + "talib/_stream.pxi", + "__init__.pxd", + "talib/c_ta_lib.pyx", + "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); + +/* 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 + +/* 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); + +/* 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); + +/* ArgTypeTest.proto */ +static CYTHON_INLINE int __Pyx_ArgTypeTest(PyObject *obj, PyTypeObject *type, int none_allowed, + const char *name, int exact); + +/* GetModuleGlobalName.proto */ +static CYTHON_INLINE PyObject *__Pyx_GetModuleGlobalName(PyObject *name); + +/* PyObjectSetAttrStr.proto */ +#if CYTHON_COMPILING_IN_CPYTHON +#define __Pyx_PyObject_DelAttrStr(o,n) __Pyx_PyObject_SetAttrStr(o,n,NULL) +static CYTHON_INLINE int __Pyx_PyObject_SetAttrStr(PyObject* obj, PyObject* attr_name, PyObject* value) { + PyTypeObject* tp = Py_TYPE(obj); + if (likely(tp->tp_setattro)) + return tp->tp_setattro(obj, attr_name, value); +#if PY_MAJOR_VERSION < 3 + if (likely(tp->tp_setattr)) + return tp->tp_setattr(obj, PyString_AS_STRING(attr_name), value); +#endif + return PyObject_SetAttr(obj, attr_name, value); +} +#else +#define __Pyx_PyObject_DelAttrStr(o,n) PyObject_DelAttr(o,n) +#define __Pyx_PyObject_SetAttrStr(o,n,v) PyObject_SetAttr(o,n,v) +#endif + +/* ExtTypeTest.proto */ +static CYTHON_INLINE int __Pyx_TypeTest(PyObject *obj, PyTypeObject *type); + +/* PyObjectCallMethO.proto */ +#if CYTHON_COMPILING_IN_CPYTHON +static CYTHON_INLINE PyObject* __Pyx_PyObject_CallMethO(PyObject *func, PyObject *arg); +#endif + +/* PyObjectCallOneArg.proto */ +static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObject *arg); + +/* PyObjectCallNoArg.proto */ +#if CYTHON_COMPILING_IN_CPYTHON +static CYTHON_INLINE PyObject* __Pyx_PyObject_CallNoArg(PyObject *func); +#else +#define __Pyx_PyObject_CallNoArg(func) __Pyx_PyObject_Call(func, __pyx_empty_tuple, NULL) +#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); + +/* IterFinish.proto */ +static CYTHON_INLINE int __Pyx_IterFinish(void); + +/* UnpackItemEndCheck.proto */ +static int __Pyx_IternextUnpackEndCheck(PyObject *retval, Py_ssize_t expected); + +/* PySequenceContains.proto */ +static CYTHON_INLINE int __Pyx_PySequence_ContainsTF(PyObject* item, PyObject* seq, int eq) { + int result = PySequence_Contains(seq, item); + return unlikely(result < 0) ? result : (result == (eq == Py_EQ)); +} + +/* ListAppend.proto */ +#if CYTHON_COMPILING_IN_CPYTHON +static CYTHON_INLINE int __Pyx_PyList_Append(PyObject* list, PyObject* x) { + PyListObject* L = (PyListObject*) list; + Py_ssize_t len = Py_SIZE(list); + if (likely(L->allocated > len) & likely(len > (L->allocated >> 1))) { + Py_INCREF(x); + PyList_SET_ITEM(list, len, x); + Py_SIZE(list) = len+1; + return 0; + } + return PyList_Append(list, x); +} +#else +#define __Pyx_PyList_Append(L,x) PyList_Append(L,x) +#endif + +/* StringJoin.proto */ +#if PY_MAJOR_VERSION < 3 +#define __Pyx_PyString_Join __Pyx_PyBytes_Join +#define __Pyx_PyBaseString_Join(s, v) (PyUnicode_CheckExact(s) ? PyUnicode_Join(s, v) : __Pyx_PyBytes_Join(s, v)) +#else +#define __Pyx_PyString_Join PyUnicode_Join +#define __Pyx_PyBaseString_Join PyUnicode_Join +#endif +#if CYTHON_COMPILING_IN_CPYTHON + #if PY_MAJOR_VERSION < 3 + #define __Pyx_PyBytes_Join _PyString_Join + #else + #define __Pyx_PyBytes_Join _PyBytes_Join + #endif +#else +static CYTHON_INLINE PyObject* __Pyx_PyBytes_Join(PyObject* sep, PyObject* values); +#endif + +/* PyObjectCallMethod0.proto */ +static PyObject* __Pyx_PyObject_CallMethod0(PyObject* obj, PyObject* method_name); + +/* RaiseNoneIterError.proto */ +static CYTHON_INLINE void __Pyx_RaiseNoneNotIterableError(void); + +/* UnpackTupleError.proto */ +static void __Pyx_UnpackTupleError(PyObject *, Py_ssize_t index); + +/* UnpackTuple2.proto */ +static CYTHON_INLINE int __Pyx_unpack_tuple2(PyObject* tuple, PyObject** value1, PyObject** value2, + int is_tuple, int has_known_size, int decref_tuple); + +/* dict_iter.proto */ +static CYTHON_INLINE PyObject* __Pyx_dict_iterator(PyObject* dict, int is_dict, PyObject* method_name, + Py_ssize_t* p_orig_length, int* p_is_dict); +static CYTHON_INLINE int __Pyx_dict_iter_next(PyObject* dict_or_iter, Py_ssize_t orig_length, Py_ssize_t* ppos, + PyObject** pkey, PyObject** pvalue, PyObject** pitem, int is_dict); + +/* GetItemInt.proto */ +#define __Pyx_GetItemInt(o, i, type, is_signed, to_py_func, is_list, wraparound, boundscheck)\ + (__Pyx_fits_Py_ssize_t(i, type, is_signed) ?\ + __Pyx_GetItemInt_Fast(o, (Py_ssize_t)i, is_list, wraparound, boundscheck) :\ + (is_list ? (PyErr_SetString(PyExc_IndexError, "list index out of range"), (PyObject*)NULL) :\ + __Pyx_GetItemInt_Generic(o, to_py_func(i)))) +#define __Pyx_GetItemInt_List(o, i, type, is_signed, to_py_func, is_list, wraparound, boundscheck)\ + (__Pyx_fits_Py_ssize_t(i, type, is_signed) ?\ + __Pyx_GetItemInt_List_Fast(o, (Py_ssize_t)i, wraparound, boundscheck) :\ + (PyErr_SetString(PyExc_IndexError, "list index out of range"), (PyObject*)NULL)) +static CYTHON_INLINE PyObject *__Pyx_GetItemInt_List_Fast(PyObject *o, Py_ssize_t i, + int wraparound, int boundscheck); +#define __Pyx_GetItemInt_Tuple(o, i, type, is_signed, to_py_func, is_list, wraparound, boundscheck)\ + (__Pyx_fits_Py_ssize_t(i, type, is_signed) ?\ + __Pyx_GetItemInt_Tuple_Fast(o, (Py_ssize_t)i, wraparound, boundscheck) :\ + (PyErr_SetString(PyExc_IndexError, "tuple index out of range"), (PyObject*)NULL)) +static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Tuple_Fast(PyObject *o, Py_ssize_t i, + int wraparound, int boundscheck); +static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Generic(PyObject *o, PyObject* j); +static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Fast(PyObject *o, Py_ssize_t i, + int is_list, int wraparound, int boundscheck); + +/* PyIntBinop.proto */ +#if CYTHON_COMPILING_IN_CPYTHON +static PyObject* __Pyx_PyInt_AddObjC(PyObject *op1, PyObject *op2, long intval, int inplace); +#else +#define __Pyx_PyInt_AddObjC(op1, op2, intval, inplace)\ + (inplace ? PyNumber_InPlaceAdd(op1, op2) : PyNumber_Add(op1, op2)) +#endif + +/* py_dict_keys.proto */ +static CYTHON_INLINE PyObject* __Pyx_PyDict_Keys(PyObject* d); + +/* UnpackUnboundCMethod.proto */ +typedef struct { + PyObject *type; + PyObject **method_name; + PyCFunction func; + PyObject *method; + int flag; +} __Pyx_CachedCFunction; + +/* CallUnboundCMethod0.proto */ +static PyObject* __Pyx__CallUnboundCMethod0(__Pyx_CachedCFunction* cfunc, PyObject* self); +#if CYTHON_COMPILING_IN_CPYTHON +#define __Pyx_CallUnboundCMethod0(cfunc, self)\ + ((likely((cfunc)->func)) ?\ + (likely((cfunc)->flag == METH_NOARGS) ? (*((cfunc)->func))(self, NULL) :\ + (likely((cfunc)->flag == (METH_VARARGS | METH_KEYWORDS)) ? ((*(PyCFunctionWithKeywords)(cfunc)->func)(self, __pyx_empty_tuple, NULL)) :\ + ((cfunc)->flag == METH_VARARGS ? (*((cfunc)->func))(self, __pyx_empty_tuple) : __Pyx__CallUnboundCMethod0(cfunc, self)))) :\ + __Pyx__CallUnboundCMethod0(cfunc, self)) +#else +#define __Pyx_CallUnboundCMethod0(cfunc, self) __Pyx__CallUnboundCMethod0(cfunc, self) +#endif + +/* PyNumberPow2.proto */ +#define __Pyx_PyNumber_InPlacePowerOf2(a, b, c) __Pyx__PyNumber_PowerOf2(a, b, c, 1) +#define __Pyx_PyNumber_PowerOf2(a, b, c) __Pyx__PyNumber_PowerOf2(a, b, c, 0) +static PyObject* __Pyx__PyNumber_PowerOf2(PyObject *two, PyObject *exp, PyObject *none, int inplace); + +/* SliceObject.proto */ +static CYTHON_INLINE PyObject* __Pyx_PyObject_GetSlice( + PyObject* obj, Py_ssize_t cstart, Py_ssize_t cstop, + PyObject** py_start, PyObject** py_stop, PyObject** py_slice, + int has_cstart, int has_cstop, int wraparound); + +/* PyIntBinop.proto */ +#if CYTHON_COMPILING_IN_CPYTHON +static PyObject* __Pyx_PyInt_EqObjC(PyObject *op1, PyObject *op2, long intval, int inplace); +#else +#define __Pyx_PyInt_EqObjC(op1, op2, intval, inplace)\ + PyObject_RichCompare(op1, op2, Py_EQ) + #endif + +/* PyIntBinop.proto */ +#if CYTHON_COMPILING_IN_CPYTHON +static PyObject* __Pyx_PyInt_RemainderObjC(PyObject *op1, PyObject *op2, long intval, int inplace); +#else +#define __Pyx_PyInt_RemainderObjC(op1, op2, intval, inplace)\ + (inplace ? PyNumber_InPlaceRemainder(op1, op2) : PyNumber_Remainder(op1, op2)) +#endif + +/* IncludeStringH.proto */ +#include + +/* BytesEquals.proto */ +static CYTHON_INLINE int __Pyx_PyBytes_Equals(PyObject* s1, PyObject* s2, int equals); + +/* UnicodeEquals.proto */ +static CYTHON_INLINE int __Pyx_PyUnicode_Equals(PyObject* s1, PyObject* s2, int equals); + +/* StrEquals.proto */ +#if PY_MAJOR_VERSION >= 3 +#define __Pyx_PyString_Equals __Pyx_PyUnicode_Equals +#else +#define __Pyx_PyString_Equals __Pyx_PyBytes_Equals +#endif + +/* SetItemInt.proto */ +#define __Pyx_SetItemInt(o, i, v, type, is_signed, to_py_func, is_list, wraparound, boundscheck)\ + (__Pyx_fits_Py_ssize_t(i, type, is_signed) ?\ + __Pyx_SetItemInt_Fast(o, (Py_ssize_t)i, v, is_list, wraparound, boundscheck) :\ + (is_list ? (PyErr_SetString(PyExc_IndexError, "list assignment index out of range"), -1) :\ + __Pyx_SetItemInt_Generic(o, to_py_func(i), v))) +static CYTHON_INLINE int __Pyx_SetItemInt_Generic(PyObject *o, PyObject *j, PyObject *v); +static CYTHON_INLINE int __Pyx_SetItemInt_Fast(PyObject *o, Py_ssize_t i, PyObject *v, + int is_list, int wraparound, int boundscheck); + +/* WriteUnraisableException.proto */ +static void __Pyx_WriteUnraisable(const char *name, int clineno, + int lineno, const char *filename, + int full_traceback, int nogil); + +/* Import.proto */ +static PyObject *__Pyx_Import(PyObject *name, PyObject *from_list, int level); + +/* ImportFrom.proto */ +static PyObject* __Pyx_ImportFrom(PyObject* module, PyObject* name); + +/* CalculateMetaclass.proto */ +static PyObject *__Pyx_CalculateMetaclass(PyTypeObject *metaclass, PyObject *bases); + +/* FetchCommonType.proto */ +static PyTypeObject* __Pyx_FetchCommonType(PyTypeObject* type); + +/* CythonFunction.proto */ +#define __Pyx_CyFunction_USED 1 +#include +#define __Pyx_CYFUNCTION_STATICMETHOD 0x01 +#define __Pyx_CYFUNCTION_CLASSMETHOD 0x02 +#define __Pyx_CYFUNCTION_CCLASS 0x04 +#define __Pyx_CyFunction_GetClosure(f)\ + (((__pyx_CyFunctionObject *) (f))->func_closure) +#define __Pyx_CyFunction_GetClassObj(f)\ + (((__pyx_CyFunctionObject *) (f))->func_classobj) +#define __Pyx_CyFunction_Defaults(type, f)\ + ((type *)(((__pyx_CyFunctionObject *) (f))->defaults)) +#define __Pyx_CyFunction_SetDefaultsGetter(f, g)\ + ((__pyx_CyFunctionObject *) (f))->defaults_getter = (g) +typedef struct { + PyCFunctionObject func; +#if PY_VERSION_HEX < 0x030500A0 + PyObject *func_weakreflist; +#endif + PyObject *func_dict; + PyObject *func_name; + PyObject *func_qualname; + PyObject *func_doc; + PyObject *func_globals; + PyObject *func_code; + PyObject *func_closure; + PyObject *func_classobj; + void *defaults; + int defaults_pyobjects; + int flags; + PyObject *defaults_tuple; + PyObject *defaults_kwdict; + PyObject *(*defaults_getter)(PyObject *); + PyObject *func_annotations; +} __pyx_CyFunctionObject; +static PyTypeObject *__pyx_CyFunctionType = 0; +#define __Pyx_CyFunction_NewEx(ml, flags, qualname, self, module, globals, code)\ + __Pyx_CyFunction_New(__pyx_CyFunctionType, ml, flags, qualname, self, module, globals, code) +static PyObject *__Pyx_CyFunction_New(PyTypeObject *, PyMethodDef *ml, + int flags, PyObject* qualname, + PyObject *self, + PyObject *module, PyObject *globals, + PyObject* code); +static CYTHON_INLINE void *__Pyx_CyFunction_InitDefaults(PyObject *m, + size_t size, + int pyobjects); +static CYTHON_INLINE void __Pyx_CyFunction_SetDefaultsTuple(PyObject *m, + PyObject *tuple); +static CYTHON_INLINE void __Pyx_CyFunction_SetDefaultsKwDict(PyObject *m, + PyObject *dict); +static CYTHON_INLINE void __Pyx_CyFunction_SetAnnotationsDict(PyObject *m, + PyObject *dict); +static int __pyx_CyFunction_init(void); + +/* Py3ClassCreate.proto */ +static PyObject *__Pyx_Py3MetaclassPrepare(PyObject *metaclass, PyObject *bases, PyObject *name, PyObject *qualname, + PyObject *mkw, PyObject *modname, PyObject *doc); +static PyObject *__Pyx_Py3ClassCreate(PyObject *metaclass, PyObject *name, PyObject *bases, PyObject *dict, + PyObject *mkw, int calculate_metaclass, int allow_py2_metaclass); + +/* SaveResetException.proto */ +#if CYTHON_COMPILING_IN_CPYTHON +#define __Pyx_ExceptionSave(type, value, tb) __Pyx__ExceptionSave(__pyx_tstate, type, value, tb) +static CYTHON_INLINE void __Pyx__ExceptionSave(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb); +#define __Pyx_ExceptionReset(type, value, tb) __Pyx__ExceptionReset(__pyx_tstate, type, value, tb) +static CYTHON_INLINE void __Pyx__ExceptionReset(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb); +#else +#define __Pyx_ExceptionSave(type, value, tb) PyErr_GetExcInfo(type, value, tb) +#define __Pyx_ExceptionReset(type, value, tb) PyErr_SetExcInfo(type, value, tb) +#endif + +/* PyErrExceptionMatches.proto */ +#if CYTHON_COMPILING_IN_CPYTHON +#define __Pyx_PyErr_ExceptionMatches(err) __Pyx_PyErr_ExceptionMatchesInState(__pyx_tstate, err) +static CYTHON_INLINE int __Pyx_PyErr_ExceptionMatchesInState(PyThreadState* tstate, PyObject* err); +#else +#define __Pyx_PyErr_ExceptionMatches(err) PyErr_ExceptionMatches(err) +#endif + +/* GetException.proto */ +#if CYTHON_COMPILING_IN_CPYTHON +#define __Pyx_GetException(type, value, tb) __Pyx__GetException(__pyx_tstate, type, value, tb) +static int __Pyx__GetException(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb); +#else +static int __Pyx_GetException(PyObject **type, PyObject **value, PyObject **tb); +#endif + +/* 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_TA_RetCode(TA_RetCode value); + +/* CIntToPy.proto */ +static CYTHON_INLINE PyObject* __Pyx_PyInt_From_unsigned_int(unsigned int value); + +/* CIntToPy.proto */ +static CYTHON_INLINE PyObject* __Pyx_PyInt_From_long(long value); + +/* CIntToPy.proto */ +static CYTHON_INLINE PyObject* __Pyx_PyInt_From_TA_OptInputParameterType(TA_OptInputParameterType value); + +/* CIntToPy.proto */ +static CYTHON_INLINE PyObject* __Pyx_PyInt_From_int(int value); + +/* CIntToPy.proto */ +static CYTHON_INLINE PyObject* __Pyx_PyInt_From_TA_FuncFlags(TA_FuncFlags value); + +/* CIntToPy.proto */ +static CYTHON_INLINE PyObject* __Pyx_PyInt_From_TA_InputFlags(TA_InputFlags value); + +/* CIntToPy.proto */ +static CYTHON_INLINE PyObject* __Pyx_PyInt_From_TA_OutputFlags(TA_OutputFlags 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 TA_RetCode __Pyx_PyInt_As_TA_RetCode(PyObject *); + +/* CIntFromPy.proto */ +static CYTHON_INLINE int __Pyx_PyInt_As_int(PyObject *); + +/* CIntFromPy.proto */ +static CYTHON_INLINE TA_FuncUnstId __Pyx_PyInt_As_TA_FuncUnstId(PyObject *); + +/* CIntFromPy.proto */ +static CYTHON_INLINE unsigned int __Pyx_PyInt_As_unsigned_int(PyObject *); + +/* 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); + +/* 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.c_ta_lib' */ +static double __pyx_v_5talib_8c_ta_lib_NaN; +static PyObject *__pyx_f_5talib_8c_ta_lib__ta_check_success(PyObject *, TA_RetCode, int __pyx_skip_dispatch); /*proto*/ +static TA_FuncHandle *__pyx_f_5talib_8c_ta_lib___ta_getFuncHandle(char *); /*proto*/ +static TA_ParamHolder *__pyx_f_5talib_8c_ta_lib___ta_paramHolderAlloc(char *); /*proto*/ +static int __pyx_f_5talib_8c_ta_lib___ta_paramHolderFree(TA_ParamHolder *); /*proto*/ +static int __pyx_f_5talib_8c_ta_lib___ta_setOptInputParamInteger(TA_ParamHolder *, int, int); /*proto*/ +static int __pyx_f_5talib_8c_ta_lib___ta_setOptInputParamReal(TA_ParamHolder *, int, int); /*proto*/ +static int __pyx_f_5talib_8c_ta_lib___ta_getLookback(TA_ParamHolder *); /*proto*/ +#define __Pyx_MODULE_NAME "talib.c_ta_lib" +int __pyx_module_is_main_talib__c_ta_lib = 0; + +/* Implementation of 'talib.c_ta_lib' */ +static PyObject *__pyx_builtin_object; +static PyObject *__pyx_builtin_range; +static PyObject *__pyx_builtin_enumerate; +static PyObject *__pyx_builtin_ImportError; +static PyObject *__pyx_builtin_property; +static PyObject *__pyx_builtin_Exception; +static PyObject *__pyx_builtin_xrange; +static PyObject *__pyx_builtin_min; +static PyObject *__pyx_builtin_max; +static PyObject *__pyx_builtin_ValueError; +static PyObject *__pyx_builtin_RuntimeError; +static const char __pyx_k_3[] = "3"; +static const char __pyx_k_b[] = "b"; +static const char __pyx_k_i[] = "i"; +static const char __pyx_k_s[] = "s"; +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_id[] = "id"; +static const char __pyx_k_in[] = "in"; +static const char __pyx_k_ADD[] = "ADD"; +static const char __pyx_k_ADX[] = "ADX"; +static const char __pyx_k_ALL[] = "ALL"; +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_Dot[] = "Dot"; +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_doc[] = "__doc__"; +static const char __pyx_k_idx[] = "idx"; +static const char __pyx_k_key[] = "key"; +static const char __pyx_k_log[] = "log"; +static const char __pyx_k_low[] = "low"; +static const char __pyx_k_max[] = "max"; +static const char __pyx_k_min[] = "min"; +static const char __pyx_k_nan[] = "nan"; +static const char __pyx_k_out[] = "out"; +static const char __pyx_k_pop[] = "pop"; +static const char __pyx_k_ret[] = "ret"; +static const char __pyx_k_run[] = "run"; +static const char __pyx_k_s_2[] = "%s"; +static const char __pyx_k_s_3[] = "(%s)"; +static const char __pyx_k_s_4[] = " %s"; +static const char __pyx_k_s_s[] = " %s: %s"; +static const char __pyx_k_str[] = "__str__"; +static const char __pyx_k_sys[] = "sys"; +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_Line[] = "Line"; +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_NONE[] = "NONE"; +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_args[] = "args"; +static const char __pyx_k_call[] = "__call__"; +static const char __pyx_k_copy[] = "copy"; +static const char __pyx_k_docs[] = "docs"; +static const char __pyx_k_flag[] = "flag"; +static const char __pyx_k_help[] = "help"; +static const char __pyx_k_high[] = "high"; +static const char __pyx_k_info[] = "info"; +static const char __pyx_k_init[] = "__init__"; +static const char __pyx_k_join[] = "join"; +static const char __pyx_k_keys[] = "keys"; +static const char __pyx_k_main[] = "__main__"; +static const char __pyx_k_math[] = "math"; +static const char __pyx_k_name[] = "name"; +static const char __pyx_k_open[] = "open"; +static const char __pyx_k_real[] = "real"; +static const char __pyx_k_repr[] = "__repr__"; +static const char __pyx_k_self[] = "self"; +static const char __pyx_k_test[] = "__test__"; +static const char __pyx_k_type[] = "type_"; +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__1211[] = ""; +static const char __pyx_k__1212[] = ", "; +static const char __pyx_k__1214[] = "("; +static const char __pyx_k__1215[] = " "; +static const char __pyx_k__1216[] = ")\n"; +static const char __pyx_k__1217[] = "\n"; +static const char __pyx_k_ascii[] = "ascii"; +static const char __pyx_k_close[] = "close"; +static const char __pyx_k_flags[] = "flags"; +static const char __pyx_k_group[] = "group"; +static const char __pyx_k_index[] = "index"; +static const char __pyx_k_items[] = "items"; +static const char __pyx_k_lower[] = "lower"; +static const char __pyx_k_nbdev[] = "nbdev"; +static const char __pyx_k_numpy[] = "numpy"; +static const char __pyx_k_optIn[] = "optIn"; +static const char __pyx_k_param[] = "param"; +static const char __pyx_k_price[] = "price"; +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_s_s_2[] = "[%s=%s]"; +static const char __pyx_k_table[] = "table"; +static const char __pyx_k_upper[] = "upper"; +static const char __pyx_k_value[] = "value"; +static const char __pyx_k_BBANDS[] = "BBANDS"; +static const char __pyx_k_CORREL[] = "CORREL"; +static const char __pyx_k_Inputs[] = "Inputs:"; +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_Series[] = "Series"; +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_decode[] = "decode"; +static const char __pyx_k_endidx[] = "endidx"; +static const char __pyx_k_groups[] = "groups"; +static const char __pyx_k_holder[] = "holder"; +static const char __pyx_k_import[] = "__import__"; +static const char __pyx_k_kwargs[] = "kwargs"; +static const char __pyx_k_length[] = "length"; +static const char __pyx_k_lookup[] = "_lookup"; +static const char __pyx_k_matype[] = "matype"; +static const char __pyx_k_module[] = "__module__"; +static const char __pyx_k_object[] = "object"; +static const char __pyx_k_outmax[] = "outmax"; +static const char __pyx_k_outmin[] = "outmin"; +static const char __pyx_k_output[] = "output"; +static const char __pyx_k_pandas[] = "pandas"; +static const char __pyx_k_params[] = "params"; +static const char __pyx_k_period[] = "period"; +static const char __pyx_k_price0[] = "price0"; +static const char __pyx_k_price1[] = "price1"; +static const char __pyx_k_prices[] = "prices"; +static const char __pyx_k_series[] = "series"; +static const char __pyx_k_type_2[] = "type"; +static const char __pyx_k_values[] = "values"; +static const char __pyx_k_volume[] = "volume"; +static const char __pyx_k_xrange[] = "xrange"; +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_MA_Type[] = "MA_Type"; +static const char __pyx_k_Outputs[] = "Outputs:"; +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_Success[] = "Success"; +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_columns[] = "columns"; +static const char __pyx_k_getitem[] = "__getitem__"; +static const char __pyx_k_integer[] = "integer"; +static const char __pyx_k_max_int[] = "max_int"; +static const char __pyx_k_maximum[] = "maximum"; +static const char __pyx_k_min_int[] = "min_int"; +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_outputs[] = "outputs"; +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_prepare[] = "__prepare__"; +static const char __pyx_k_replace[] = "replace"; +static const char __pyx_k_results[] = "results"; +static const char __pyx_k_retCode[] = "retCode"; +static const char __pyx_k_unicode[] = "__unicode__"; +static const char __pyx_k_version[] = "version"; +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_Function[] = "Function"; +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_defaults[] = "defaults"; +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_property[] = "property"; +static const char __pyx_k_qualname[] = "__qualname__"; +static const char __pyx_k_ret_code[] = "ret_code"; +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_DataFrame[] = "DataFrame"; +static const char __pyx_k_Exception[] = "Exception"; +static const char __pyx_k_HT_PHASOR[] = "HT_PHASOR"; +static const char __pyx_k_Histogram[] = "Histogram"; +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_bytes2str[] = "bytes2str"; +static const char __pyx_k_enumerate[] = "enumerate"; +static const char __pyx_k_fastlimit[] = "fastlimit"; +static const char __pyx_k_func_args[] = "func_args"; +static const char __pyx_k_func_info[] = "func_info"; +static const char __pyx_k_func_line[] = "func_line"; +static const char __pyx_k_functions[] = "functions"; +static const char __pyx_k_get_flags[] = "__get_flags"; +static const char __pyx_k_high_data[] = "high_data"; +static const char __pyx_k_maxperiod[] = "maxperiod"; +static const char __pyx_k_metaclass[] = "__metaclass__"; +static const char __pyx_k_minperiod[] = "minperiod"; +static const char __pyx_k_open_data[] = "open_data"; +static const char __pyx_k_opt_input[] = "opt_input"; +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_str2bytes[] = "str2bytes"; +static const char __pyx_k_stream_AD[] = "stream_AD"; +static const char __pyx_k_stream_DX[] = "stream_DX"; +static const char __pyx_k_stream_LN[] = "stream_LN"; +static const char __pyx_k_stream_MA[] = "stream_MA"; +static const char __pyx_k_stream_T3[] = "stream_T3"; +static const char __pyx_k_timeStamp[] = "timeStamp"; +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_Parameters[] = "Parameters:"; +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_input_name[] = "input_name"; +static const char __pyx_k_num_inputs[] = "num_inputs"; +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_param_name[] = "param_name"; +static const char __pyx_k_parameters[] = "parameters"; +static const char __pyx_k_real0_data[] = "real0_data"; +static const char __pyx_k_real1_data[] = "real1_data"; +static const char __pyx_k_skip_first[] = "skip_first"; +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_stream_ADD[] = "stream_ADD"; +static const char __pyx_k_stream_ADX[] = "stream_ADX"; +static const char __pyx_k_stream_APO[] = "stream_APO"; +static const char __pyx_k_stream_ATR[] = "stream_ATR"; +static const char __pyx_k_stream_BOP[] = "stream_BOP"; +static const char __pyx_k_stream_CCI[] = "stream_CCI"; +static const char __pyx_k_stream_CMO[] = "stream_CMO"; +static const char __pyx_k_stream_COS[] = "stream_COS"; +static const char __pyx_k_stream_DIV[] = "stream_DIV"; +static const char __pyx_k_stream_EMA[] = "stream_EMA"; +static const char __pyx_k_stream_EXP[] = "stream_EXP"; +static const char __pyx_k_stream_MAX[] = "stream_MAX"; +static const char __pyx_k_stream_MFI[] = "stream_MFI"; +static const char __pyx_k_stream_MIN[] = "stream_MIN"; +static const char __pyx_k_stream_MOM[] = "stream_MOM"; +static const char __pyx_k_stream_OBV[] = "stream_OBV"; +static const char __pyx_k_stream_PPO[] = "stream_PPO"; +static const char __pyx_k_stream_ROC[] = "stream_ROC"; +static const char __pyx_k_stream_RSI[] = "stream_RSI"; +static const char __pyx_k_stream_SAR[] = "stream_SAR"; +static const char __pyx_k_stream_SIN[] = "stream_SIN"; +static const char __pyx_k_stream_SMA[] = "stream_SMA"; +static const char __pyx_k_stream_SUB[] = "stream_SUB"; +static const char __pyx_k_stream_SUM[] = "stream_SUM"; +static const char __pyx_k_stream_TAN[] = "stream_TAN"; +static const char __pyx_k_stream_TSF[] = "stream_TSF"; +static const char __pyx_k_stream_VAR[] = "stream_VAR"; +static const char __pyx_k_stream_WMA[] = "stream_WMA"; +static const char __pyx_k_ta_version[] = "__ta_version__"; +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_Dashed_Line[] = "Dashed Line"; +static const char __pyx_k_Dotted_Line[] = "Dotted Line"; +static const char __pyx_k_HT_DCPERIOD[] = "HT_DCPERIOD"; +static const char __pyx_k_ImportError[] = "ImportError"; +static const char __pyx_k_MINMAXINDEX[] = "MINMAXINDEX"; +static const char __pyx_k_OrderedDict[] = "OrderedDict"; +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_Shutdown[] = "TA_Shutdown"; +static const char __pyx_k_TA_TYPPRICE[] = "TA_TYPPRICE"; +static const char __pyx_k_TA_WCLPRICE[] = "TA_WCLPRICE"; +static const char __pyx_k_any_ndarray[] = "(any ndarray)"; +static const char __pyx_k_collections[] = "collections"; +static const char __pyx_k_func_object[] = "func_object"; +static const char __pyx_k_input_names[] = "input_names"; +static const char __pyx_k_num_outputs[] = "num_outputs"; +static const char __pyx_k_ordereddict[] = "ordereddict"; +static const char __pyx_k_outleadsine[] = "outleadsine"; +static const char __pyx_k_outmacdhist[] = "outmacdhist"; +static const char __pyx_k_outmax_data[] = "outmax_data"; +static const char __pyx_k_outmin_data[] = "outmin_data"; +static const char __pyx_k_output_name[] = "output_name"; +static const char __pyx_k_penetration[] = "penetration"; +static const char __pyx_k_stream_ACOS[] = "stream_ACOS"; +static const char __pyx_k_stream_ADXR[] = "stream_ADXR"; +static const char __pyx_k_stream_ASIN[] = "stream_ASIN"; +static const char __pyx_k_stream_ATAN[] = "stream_ATAN"; +static const char __pyx_k_stream_BETA[] = "stream_BETA"; +static const char __pyx_k_stream_CEIL[] = "stream_CEIL"; +static const char __pyx_k_stream_COSH[] = "stream_COSH"; +static const char __pyx_k_stream_DEMA[] = "stream_DEMA"; +static const char __pyx_k_stream_KAMA[] = "stream_KAMA"; +static const char __pyx_k_stream_MACD[] = "stream_MACD"; +static const char __pyx_k_stream_MAMA[] = "stream_MAMA"; +static const char __pyx_k_stream_MAVP[] = "stream_MAVP"; +static const char __pyx_k_stream_MULT[] = "stream_MULT"; +static const char __pyx_k_stream_NATR[] = "stream_NATR"; +static const char __pyx_k_stream_ROCP[] = "stream_ROCP"; +static const char __pyx_k_stream_ROCR[] = "stream_ROCR"; +static const char __pyx_k_stream_SINH[] = "stream_SINH"; +static const char __pyx_k_stream_SQRT[] = "stream_SQRT"; +static const char __pyx_k_stream_TANH[] = "stream_TANH"; +static const char __pyx_k_stream_TEMA[] = "stream_TEMA"; +static const char __pyx_k_stream_TRIX[] = "stream_TRIX"; +static const char __pyx_k_ta_shutdown[] = "_ta_shutdown"; +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_update_info[] = "update_info"; +static const char __pyx_k_value_range[] = "value_range"; +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_Function_run[] = "Function.run"; +static const char __pyx_k_HT_TRENDLINE[] = "HT_TRENDLINE"; +static const char __pyx_k_HT_TRENDMODE[] = "HT_TRENDMODE"; +static const char __pyx_k_Pattern_Bool[] = "Pattern (Bool)"; +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_column_stack[] = "column_stack"; +static const char __pyx_k_display_name[] = "display_name"; +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_input_arrays[] = "input_arrays"; +static const char __pyx_k_missing_keys[] = "missing_keys"; +static const char __pyx_k_openInterest[] = "openInterest"; +static const char __pyx_k_outaroondown[] = "outaroondown"; +static const char __pyx_k_outfama_data[] = "outfama_data"; +static const char __pyx_k_outmacd_data[] = "outmacd_data"; +static const char __pyx_k_outmama_data[] = "outmama_data"; +static const char __pyx_k_outnbelement[] = "outnbelement"; +static const char __pyx_k_output_flags[] = "output_flags"; +static const char __pyx_k_output_names[] = "output_names"; +static const char __pyx_k_outreal_data[] = "outreal_data"; +static const char __pyx_k_outsine_data[] = "outsine_data"; +static const char __pyx_k_periods_data[] = "periods_data"; +static const char __pyx_k_price_series[] = "price_series"; +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_stream_ADOSC[] = "stream_ADOSC"; +static const char __pyx_k_stream_AROON[] = "stream_AROON"; +static const char __pyx_k_stream_FLOOR[] = "stream_FLOOR"; +static const char __pyx_k_stream_LOG10[] = "stream_LOG10"; +static const char __pyx_k_stream_STOCH[] = "stream_STOCH"; +static const char __pyx_k_stream_TRIMA[] = "stream_TRIMA"; +static const char __pyx_k_stream_WILLR[] = "stream_WILLR"; +static const char __pyx_k_CDLHANGINGMAN[] = "CDLHANGINGMAN"; +static const char __pyx_k_CDLHIKKAKEMOD[] = "CDLHIKKAKEMOD"; +static const char __pyx_k_Function_info[] = "Function.info"; +static const char __pyx_k_PANDAS_SERIES[] = "__PANDAS_SERIES"; +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_FUNC_FLAGS[] = "TA_FUNC_FLAGS"; +static const char __pyx_k_TA_HT_DCPHASE[] = "TA_HT_DCPHASE"; +static const char __pyx_k_TA_Initialize[] = "TA_Initialize"; +static const char __pyx_k_call_function[] = "__call_function"; +static const char __pyx_k_default_value[] = "default_value"; +static const char __pyx_k_documentation[] = "documentation"; +static const char __pyx_k_function_name[] = "function_name"; +static const char __pyx_k_outfastd_data[] = "outfastd_data"; +static const char __pyx_k_outfastk_data[] = "outfastk_data"; +static const char __pyx_k_outmacdsignal[] = "outmacdsignal"; +static const char __pyx_k_outquadrature[] = "outquadrature"; +static const char __pyx_k_outslowd_data[] = "outslowd_data"; +static const char __pyx_k_outslowk_data[] = "outslowk_data"; +static const char __pyx_k_stream_BBANDS[] = "stream_BBANDS"; +static const char __pyx_k_stream_CORREL[] = "stream_CORREL"; +static const char __pyx_k_stream_MINMAX[] = "stream_MINMAX"; +static const char __pyx_k_stream_SAREXT[] = "stream_SAREXT"; +static const char __pyx_k_stream_STDDEV[] = "stream_STDDEV"; +static const char __pyx_k_stream_STOCHF[] = "stream_STOCHF"; +static const char __pyx_k_stream_TRANGE[] = "stream_TRANGE"; +static const char __pyx_k_stream_ULTOSC[] = "stream_ULTOSC"; +static const char __pyx_k_ta_initialize[] = "_ta_initialize"; +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_Function___str[] = "Function.__str__"; +static const char __pyx_k_Function__info[] = "_Function__info"; +static const char __pyx_k_Function__name[] = "_Function__name"; +static const char __pyx_k_MA_Type___init[] = "MA_Type.__init__"; +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_GetFuncInfo[] = "TA_GetFuncInfo"; +static const char __pyx_k_TA_GetLookback[] = "TA_GetLookback"; +static const char __pyx_k_TA_HT_DCPERIOD[] = "TA_HT_DCPERIOD"; +static const char __pyx_k_TA_INPUT_FLAGS[] = "TA_INPUT_FLAGS"; +static const char __pyx_k_TA_MINMAXINDEX[] = "TA_MINMAXINDEX"; +static const char __pyx_k_function_flags[] = "function_flags"; +static const char __pyx_k_get_parameters[] = "get_parameters"; +static const char __pyx_k_input_arrays_2[] = "[input_arrays]"; +static const char __pyx_k_num_opt_inputs[] = "num_opt_inputs"; +static const char __pyx_k_outmaxidx_data[] = "outmaxidx_data"; +static const char __pyx_k_outminidx_data[] = "outminidx_data"; +static const char __pyx_k_set_parameters[] = "set_parameters"; +static const char __pyx_k_stream_CDLDOJI[] = "stream_CDLDOJI"; +static const char __pyx_k_stream_HT_SINE[] = "stream_HT_SINE"; +static const char __pyx_k_stream_MACDEXT[] = "stream_MACDEXT"; +static const char __pyx_k_stream_MACDFIX[] = "stream_MACDFIX"; +static const char __pyx_k_stream_PLUS_DI[] = "stream_PLUS_DI"; +static const char __pyx_k_stream_PLUS_DM[] = "stream_PLUS_DM"; +static const char __pyx_k_stream_ROCR100[] = "stream_ROCR100"; +static const char __pyx_k_ta_getFuncInfo[] = "_ta_getFuncInfo"; +static const char __pyx_k_talib_c_ta_lib[] = "talib.c_ta_lib"; +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_Function___call[] = "Function.__call__"; +static const char __pyx_k_Function___init[] = "Function.__init__"; +static const char __pyx_k_Function___repr[] = "Function.__repr__"; +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_TA_OUTPUT_FLAGS[] = "TA_OUTPUT_FLAGS"; +static const char __pyx_k_get_input_names[] = "get_input_names"; +static const char __pyx_k_offsetonreverse[] = "offsetonreverse"; +static const char __pyx_k_outaroonup_data[] = "outaroonup_data"; +static const char __pyx_k_outinphase_data[] = "outinphase_data"; +static const char __pyx_k_outinteger_data[] = "outinteger_data"; +static const char __pyx_k_set_input_names[] = "set_input_names"; +static const char __pyx_k_stream_AROONOSC[] = "stream_AROONOSC"; +static const char __pyx_k_stream_AVGPRICE[] = "stream_AVGPRICE"; +static const char __pyx_k_stream_MAXINDEX[] = "stream_MAXINDEX"; +static const char __pyx_k_stream_MEDPRICE[] = "stream_MEDPRICE"; +static const char __pyx_k_stream_MIDPOINT[] = "stream_MIDPOINT"; +static const char __pyx_k_stream_MIDPRICE[] = "stream_MIDPRICE"; +static const char __pyx_k_stream_MININDEX[] = "stream_MININDEX"; +static const char __pyx_k_stream_MINUS_DI[] = "stream_MINUS_DI"; +static const char __pyx_k_stream_MINUS_DM[] = "stream_MINUS_DM"; +static const char __pyx_k_stream_STOCHRSI[] = "stream_STOCHRSI"; +static const char __pyx_k_stream_TYPPRICE[] = "stream_TYPPRICE"; +static const char __pyx_k_stream_WCLPRICE[] = "stream_WCLPRICE"; +static const char __pyx_k_ta_getFuncTable[] = "_ta_getFuncTable"; +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_Function_outputs[] = "Function.outputs"; +static const char __pyx_k_PANDAS_DATAFRAME[] = "__PANDAS_DATAFRAME"; +static const char __pyx_k_TA_CDLHANGINGMAN[] = "TA_CDLHANGINGMAN"; +static const char __pyx_k_TA_CDLHIKKAKEMOD[] = "TA_CDLHIKKAKEMOD"; +static const char __pyx_k_TA_FuncTableFree[] = "TA_FuncTableFree"; +static const char __pyx_k_TA_GetFuncHandle[] = "TA_GetFuncHandle"; +static const char __pyx_k_accelerationlong[] = "accelerationlong"; +static const char __pyx_k_get_input_arrays[] = "get_input_arrays"; +static const char __pyx_k_outleadsine_data[] = "outleadsine_data"; +static const char __pyx_k_outmacdhist_data[] = "outmacdhist_data"; +static const char __pyx_k_outreallowerband[] = "outreallowerband"; +static const char __pyx_k_outrealupperband[] = "outrealupperband"; +static const char __pyx_k_set_input_arrays[] = "set_input_arrays"; +static const char __pyx_k_stream_CDL2CROWS[] = "stream_CDL2CROWS"; +static const char __pyx_k_stream_CDLHAMMER[] = "stream_CDLHAMMER"; +static const char __pyx_k_stream_CDLHARAMI[] = "stream_CDLHARAMI"; +static const char __pyx_k_stream_CDLINNECK[] = "stream_CDLINNECK"; +static const char __pyx_k_stream_CDLONNECK[] = "stream_CDLONNECK"; +static const char __pyx_k_stream_CDLTAKURI[] = "stream_CDLTAKURI"; +static const char __pyx_k_stream_HT_PHASOR[] = "stream_HT_PHASOR"; +static const char __pyx_k_stream_LINEARREG[] = "stream_LINEARREG"; +static const char __pyx_k_ta_func_unst_ids[] = "_ta_func_unst_ids"; +static const char __pyx_k_ta_getGroupTable[] = "_ta_getGroupTable"; +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_Function__namestr[] = "_Function__namestr"; +static const char __pyx_k_Function__outputs[] = "_Function__outputs"; +static const char __pyx_k_Function_lookback[] = "Function.lookback"; +static const char __pyx_k_MA_Type___getitem[] = "MA_Type.__getitem__"; +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_TA_FUNCTION_NAMES[] = "__TA_FUNCTION_NAMES__"; +static const char __pyx_k_TA_FuncTableAlloc[] = "TA_FuncTableAlloc"; +static const char __pyx_k_TA_GroupTableFree[] = "TA_GroupTableFree"; +static const char __pyx_k_accelerationshort[] = "accelerationshort"; +static const char __pyx_k_flags_lookup_dict[] = "flags_lookup_dict"; +static const char __pyx_k_low_is_not_double[] = "low is not double"; +static const char __pyx_k_outaroondown_data[] = "outaroondown_data"; +static const char __pyx_k_outrealmiddleband[] = "outrealmiddleband"; +static const char __pyx_k_set_function_args[] = "set_function_args"; +static const char __pyx_k_stream_CDL3INSIDE[] = "stream_CDL3INSIDE"; +static const char __pyx_k_stream_CDLHIKKAKE[] = "stream_CDLHIKKAKE"; +static const char __pyx_k_stream_CDLKICKING[] = "stream_CDLKICKING"; +static const char __pyx_k_stream_CDLMATHOLD[] = "stream_CDLMATHOLD"; +static const char __pyx_k_stream_CDLTRISTAR[] = "stream_CDLTRISTAR"; +static const char __pyx_k_stream_HT_DCPHASE[] = "stream_HT_DCPHASE"; +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_Function___unicode[] = "Function.__unicode__"; +static const char __pyx_k_INPUT_ARRAYS_TYPES[] = "__INPUT_ARRAYS_TYPES"; +static const char __pyx_k_Output_can_be_zero[] = "Output can be zero"; +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_GroupTableAlloc[] = "TA_GroupTableAlloc"; +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_TA_ParamHolderFree[] = "TA_ParamHolderFree"; +static const char __pyx_k_high_is_not_double[] = "high is not double"; +static const char __pyx_k_inputs_are_all_NaN[] = "inputs are all NaN"; +static const char __pyx_k_open_is_not_double[] = "open is not double"; +static const char __pyx_k_outmacdsignal_data[] = "outmacdsignal_data"; +static const char __pyx_k_outquadrature_data[] = "outquadrature_data"; +static const char __pyx_k_real_is_not_double[] = "real is not double"; +static const char __pyx_k_stream_CDL3OUTSIDE[] = "stream_CDL3OUTSIDE"; +static const char __pyx_k_stream_CDLBELTHOLD[] = "stream_CDLBELTHOLD"; +static const char __pyx_k_stream_CDLDOJISTAR[] = "stream_CDLDOJISTAR"; +static const char __pyx_k_stream_CDLHIGHWAVE[] = "stream_CDLHIGHWAVE"; +static const char __pyx_k_stream_CDLLONGLINE[] = "stream_CDLLONGLINE"; +static const char __pyx_k_stream_CDLMARUBOZU[] = "stream_CDLMARUBOZU"; +static const char __pyx_k_stream_CDLPIERCING[] = "stream_CDLPIERCING"; +static const char __pyx_k_stream_HT_DCPERIOD[] = "stream_HT_DCPERIOD"; +static const char __pyx_k_stream_MINMAXINDEX[] = "stream_MINMAXINDEX"; +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_TA_ParamHolderAlloc[] = "TA_ParamHolderAlloc"; +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_get_opt_input_value[] = "__get_opt_input_value"; +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_stream_CDLBREAKAWAY[] = "stream_CDLBREAKAWAY"; +static const char __pyx_k_stream_CDLENGULFING[] = "stream_CDLENGULFING"; +static const char __pyx_k_stream_CDLSHORTLINE[] = "stream_CDLSHORTLINE"; +static const char __pyx_k_stream_CDLTASUKIGAP[] = "stream_CDLTASUKIGAP"; +static const char __pyx_k_stream_CDLTHRUSTING[] = "stream_CDLTHRUSTING"; +static const char __pyx_k_stream_HT_TRENDLINE[] = "stream_HT_TRENDLINE"; +static const char __pyx_k_stream_HT_TRENDMODE[] = "stream_HT_TRENDMODE"; +static const char __pyx_k_Function__opt_inputs[] = "_Function__opt_inputs"; +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_TA_SetUnstablePeriod[] = "TA_SetUnstablePeriod"; +static const char __pyx_k_accelerationinitlong[] = "accelerationinitlong"; +static const char __pyx_k_accelerationmaxshort[] = "accelerationmaxshort"; +static const char __pyx_k_stream_CDLHANGINGMAN[] = "stream_CDLHANGINGMAN"; +static const char __pyx_k_stream_CDLHIKKAKEMOD[] = "stream_CDLHIKKAKEMOD"; +static const char __pyx_k_volume_is_not_double[] = "volume is not double"; +static const char __pyx_k_Function__input_names[] = "_Function__input_names"; +static const char __pyx_k_Function_output_flags[] = "Function.output_flags"; +static const char __pyx_k_Function_output_names[] = "Function.output_names"; +static const char __pyx_k_INPUT_ARRAYS_DEFAULTS[] = "__INPUT_ARRAYS_DEFAULTS"; +static const char __pyx_k_Output_is_over_volume[] = "Output is over volume"; +static const char __pyx_k_Simple_Moving_Average[] = "Simple Moving Average"; +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_get_defaults_and_docs[] = "_get_defaults_and_docs"; +static const char __pyx_k_outreallowerband_data[] = "outreallowerband_data"; +static const char __pyx_k_outrealupperband_data[] = "outrealupperband_data"; +static const char __pyx_k_periods_is_not_double[] = "periods is not double"; +static const char __pyx_k_stream_CDL3BLACKCROWS[] = "stream_CDL3BLACKCROWS"; +static const char __pyx_k_stream_CDL3LINESTRIKE[] = "stream_CDL3LINESTRIKE"; +static const char __pyx_k_stream_CDLEVENINGSTAR[] = "stream_CDLEVENINGSTAR"; +static const char __pyx_k_stream_CDLHARAMICROSS[] = "stream_CDLHARAMICROSS"; +static const char __pyx_k_stream_CDLMATCHINGLOW[] = "stream_CDLMATCHINGLOW"; +static const char __pyx_k_stream_CDLMORNINGSTAR[] = "stream_CDLMORNINGSTAR"; +static const char __pyx_k_stream_CDLRICKSHAWMAN[] = "stream_CDLRICKSHAWMAN"; +static const char __pyx_k_stream_CDLSPINNINGTOP[] = "stream_CDLSPINNINGTOP"; +static const char __pyx_k_Function__input_arrays[] = "_Function__input_arrays"; +static const char __pyx_k_Output_can_be_negative[] = "Output can be negative"; +static const char __pyx_k_Output_can_be_positive[] = "Output can be positive"; +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_display_name_s_group_s[] = "%(display_name)s (%(group)s)\n"; +static const char __pyx_k_outrealmiddleband_data[] = "outrealmiddleband_data"; +static const char __pyx_k_stream_CDLADVANCEBLOCK[] = "stream_CDLADVANCEBLOCK"; +static const char __pyx_k_stream_CDLHOMINGPIGEON[] = "stream_CDLHOMINGPIGEON"; +static const char __pyx_k_stream_CDLLADDERBOTTOM[] = "stream_CDLLADDERBOTTOM"; +static const char __pyx_k_stream_CDLSHOOTINGSTAR[] = "stream_CDLSHOOTINGSTAR"; +static const char __pyx_k_stream_CDLUNIQUE3RIVER[] = "stream_CDLUNIQUE3RIVER"; +static const char __pyx_k_stream_LINEARREG_ANGLE[] = "stream_LINEARREG_ANGLE"; +static const char __pyx_k_stream_LINEARREG_SLOPE[] = "stream_LINEARREG_SLOPE"; +static const char __pyx_k_ta_get_unstable_period[] = "_ta_get_unstable_period"; +static const char __pyx_k_ta_set_unstable_period[] = "_ta_set_unstable_period"; +static const char __pyx_k_Function__call_function[] = "_Function__call_function"; +static const char __pyx_k_Function__outputs_valid[] = "_Function__outputs_valid"; +static const char __pyx_k_Function_function_flags[] = "Function.function_flags"; +static const char __pyx_k_Function_get_parameters[] = "Function.get_parameters"; +static const char __pyx_k_Function_set_parameters[] = "Function.set_parameters"; +static const char __pyx_k_Output_is_a_candlestick[] = "Output is a candlestick"; +static const char __pyx_k_TA_SetOptInputParamReal[] = "TA_SetOptInputParamReal"; +static const char __pyx_k_Weighted_Moving_Average[] = "Weighted Moving Average"; +static const char __pyx_k_stream_CDL3STARSINSOUTH[] = "stream_CDL3STARSINSOUTH"; +static const char __pyx_k_stream_CDLABANDONEDBABY[] = "stream_CDLABANDONEDBABY"; +static const char __pyx_k_stream_CDLCOUNTERATTACK[] = "stream_CDLCOUNTERATTACK"; +static const char __pyx_k_stream_CDLDRAGONFLYDOJI[] = "stream_CDLDRAGONFLYDOJI"; +static const char __pyx_k_stream_CDLSTICKSANDWICH[] = "stream_CDLSTICKSANDWICH"; +static const char __pyx_k_Bad_Object_TA_BAD_OBJECT[] = "Bad Object (TA_BAD_OBJECT)"; +static const char __pyx_k_Function___call_function[] = "Function.__call_function"; +static const char __pyx_k_Function_get_input_names[] = "Function.get_input_names"; +static const char __pyx_k_Function_set_input_names[] = "Function.set_input_names"; +static const char __pyx_k_TA_GetInputParameterInfo[] = "TA_GetInputParameterInfo"; +static const char __pyx_k_initialize_function_info[] = "__initialize_function_info"; +static const char __pyx_k_input_price_series_names[] = "input_price_series_names"; +static const char __pyx_k_low_has_wrong_dimensions[] = "low has wrong dimensions"; +static const char __pyx_k_stream_CDL3WHITESOLDIERS[] = "stream_CDL3WHITESOLDIERS"; +static const char __pyx_k_stream_CDLDARKCLOUDCOVER[] = "stream_CDLDARKCLOUDCOVER"; +static const char __pyx_k_stream_CDLGRAVESTONEDOJI[] = "stream_CDLGRAVESTONEDOJI"; +static const char __pyx_k_stream_CDLINVERTEDHAMMER[] = "stream_CDLINVERTEDHAMMER"; +static const char __pyx_k_stream_CDLLONGLEGGEDDOJI[] = "stream_CDLLONGLEGGEDDOJI"; +static const char __pyx_k_stream_CDLSTALLEDPATTERN[] = "stream_CDLSTALLEDPATTERN"; +static const char __pyx_k_ta_getInputParameterInfo[] = "_ta_getInputParameterInfo"; +static const char __pyx_k_Function_get_input_arrays[] = "Function.get_input_arrays"; +static const char __pyx_k_Function_set_input_arrays[] = "Function.set_input_arrays"; +static const char __pyx_k_TA_GetOutputParameterInfo[] = "TA_GetOutputParameterInfo"; +static const char __pyx_k_Triangular_Moving_Average[] = "Triangular Moving Average"; +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_stream_CDLCLOSINGMARUBOZU[] = "stream_CDLCLOSINGMARUBOZU"; +static const char __pyx_k_stream_CDLEVENINGDOJISTAR[] = "stream_CDLEVENINGDOJISTAR"; +static const char __pyx_k_stream_CDLIDENTICAL3CROWS[] = "stream_CDLIDENTICAL3CROWS"; +static const char __pyx_k_stream_CDLKICKINGBYLENGTH[] = "stream_CDLKICKINGBYLENGTH"; +static const char __pyx_k_stream_CDLMORNINGDOJISTAR[] = "stream_CDLMORNINGDOJISTAR"; +static const char __pyx_k_stream_CDLSEPARATINGLINES[] = "stream_CDLSEPARATINGLINES"; +static const char __pyx_k_stream_CDLUPSIDEGAP2CROWS[] = "stream_CDLUPSIDEGAP2CROWS"; +static const char __pyx_k_ta_getOutputParameterInfo[] = "_ta_getOutputParameterInfo"; +static const char __pyx_k_Bad_Parameter_TA_BAD_PARAM[] = "Bad Parameter (TA_BAD_PARAM)"; +static const char __pyx_k_Exponential_Moving_Average[] = "Exponential Moving Average"; +static const char __pyx_k_Function_set_function_args[] = "Function.set_function_args"; +static const char __pyx_k_Output_scale_same_as_input[] = "Output scale same as input"; +static const char __pyx_k_TA_SetOptInputParamInteger[] = "TA_SetOptInputParamInteger"; +static const char __pyx_k_close_has_wrong_dimensions[] = "close has wrong dimensions"; +static const char __pyx_k_input_price_series_names_2[] = "__input_price_series_names"; +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_stream_CDLCONCEALBABYSWALL[] = "stream_CDLCONCEALBABYSWALL"; +static const char __pyx_k_stream_CDLGAPSIDESIDEWHITE[] = "stream_CDLGAPSIDESIDEWHITE"; +static const char __pyx_k_stream_CDLRISEFALL3METHODS[] = "stream_CDLRISEFALL3METHODS"; +static const char __pyx_k_stream_CDLXSIDEGAP3METHODS[] = "stream_CDLXSIDEGAP3METHODS"; +static const char __pyx_k_stream_LINEARREG_INTERCEPT[] = "stream_LINEARREG_INTERCEPT"; +static const char __pyx_k_INPUT_PRICE_SERIES_DEFAULTS[] = "__INPUT_PRICE_SERIES_DEFAULTS"; +static const char __pyx_k_TA_GetOptInputParameterInfo[] = "TA_GetOptInputParameterInfo"; +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_ta_getOptInputParameterInfo[] = "_ta_getOptInputParameterInfo"; +static const char __pyx_k_volume_has_wrong_dimensions[] = "volume has wrong dimensions"; +static const char __pyx_k_MESA_Adaptive_Moving_Average[] = "MESA Adaptive Moving Average"; +static const char __pyx_k_Unknown_Error_TA_UNKNOWN_ERR[] = "Unknown Error (TA_UNKNOWN_ERR)"; +static const char __pyx_k_periods_has_wrong_dimensions[] = "periods has wrong dimensions"; +static const char __pyx_k_Allocation_Error_TA_ALLOC_ERR[] = "Allocation Error (TA_ALLOC_ERR)"; +static const char __pyx_k_Function__get_opt_input_value[] = "_Function__get_opt_input_value"; +static const char __pyx_k_Function___get_opt_input_value[] = "Function.__get_opt_input_value"; +static const char __pyx_k_Not_Supported_TA_NOT_SUPPORTED[] = "Not Supported (TA_NOT_SUPPORTED)"; +static const char __pyx_k_Values_represent_a_lower_limit[] = "Values represent a lower limit"; +static const char __pyx_k_Function__initialize_function_i[] = "_Function__initialize_function_info"; +static const char __pyx_k_Function__input_price_series_na[] = "_Function__input_price_series_names"; +static const char __pyx_k_Function_has_an_unstable_period[] = "Function has an unstable period"; +static const char __pyx_k_Kaufman_Adaptive_Moving_Average[] = "Kaufman Adaptive Moving Average"; +static const char __pyx_k_Out_of_Range_Start_Index_TA_OUT[] = "Out-of-Range Start Index (TA_OUT_OF_RANGE_START_INDEX)"; +static const char __pyx_k_This_is_a_pythonic_wrapper_arou[] = "\n This is a pythonic wrapper around TALIB's abstract interface. It is\n intended to simplify using individual TALIB functions by providing a\n unified interface for setting/controlling input data, setting function\n parameters and retrieving results. Input data consists of a ``dict`` of\n ``numpy`` arrays (or a ``pandas.DataFrame``), one array for each of open,\n high, low, close and volume. This can be set with the set_input_arrays()\n method. Which keyed array(s) are used as inputs when calling the function\n is controlled using the input_names property.\n\n This class gets initialized with a TALIB function name and optionally an\n input_arrays object. It provides the following primary functions for\n setting inputs and retrieving results:\n\n ---- input_array/TA-function-parameter set-only functions -----\n - set_input_arrays(input_arrays)\n - set_function_args([input_arrays,] [param_args_andor_kwargs])\n\n Documentation for param_args_andor_kwargs can be seen by printing the\n Function instance or programatically via the info, input_names and\n parameters properties.\n\n ----- result-returning functions -----\n - the outputs property wraps a method which ensures results are always valid\n - run([input_arrays]) # calls set_input_arrays and returns self.outputs\n - FunctionInstance([input_arrays,] [param_args_andor_kwargs]) # calls set_function_args and returns self.outputs\n "; +static const char __pyx_k_Users_kelvin_GitHub_mrjbq7_ta_l[] = "/Users/kelvin/GitHub/mrjbq7/ta-lib/talib/_common.pxi"; +static const char __pyx_k_Values_represent_an_upper_limit[] = "Values represent an upper limit"; +static const char __pyx_k_integer_values_are_100_0_or_100[] = "integer (values are -100, 0 or 100)"; +static const char __pyx_k_s_function_failed_with_error_co[] = "%s function failed with error code %s: %s"; +static const char __pyx_k_unknown_dtype_code_in_numpy_pxd[] = "unknown dtype code in numpy.pxd (%d)"; +static const char __pyx_k_Bull_Bear_Pattern_Bearish_0_Neut[] = "Bull/Bear Pattern (Bearish < 0, Neutral = 0, Bullish > 0)"; +static const char __pyx_k_Double_Exponential_Moving_Averag[] = "Double Exponential Moving Average"; +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_Function_Not_Found_TA_FUNC_NOT_F[] = "Function Not Found (TA_FUNC_NOT_FOUND)"; +static const char __pyx_k_Function___initialize_function_i[] = "Function.__initialize_function_info"; +static const char __pyx_k_Function___input_price_series_na[] = "Function.__input_price_series_names"; +static const char __pyx_k_Group_Not_Found_TA_GROUP_NOT_FOU[] = "Group Not Found (TA_GROUP_NOT_FOUND)"; +static const char __pyx_k_Input_Not_All_Initialized_TA_INP[] = "Input Not All Initialized (TA_INPUT_NOT_ALL_INITIALIZE)"; +static const char __pyx_k_Internal_Error_TA_INTERNAL_ERROR[] = "Internal Error (TA_INTERNAL_ERROR)"; +static const char __pyx_k_Invalid_Handle_TA_INVALID_HANDLE[] = "Invalid Handle (TA_INVALID_HANDLE)"; +static const char __pyx_k_Invalid_List_Type_TA_INVALID_LIS[] = "Invalid List Type (TA_INVALID_LIST_TYPE)"; +static const char __pyx_k_Invalid_Parameter_Function_TA_IN[] = "Invalid Parameter Function (TA_INVALID_PARAM_FUNCTION)"; +static const char __pyx_k_Invalid_Parameter_Holder_TA_INVA[] = "Invalid Parameter Holder (TA_INVALID_PARAM_HOLDER)"; +static const char __pyx_k_Invalid_Parameter_Holder_Type_TA[] = "Invalid Parameter Holder Type (TA_INVALID_PARAM_HOLDER_TYPE)"; +static const char __pyx_k_Library_Not_Initialized_TA_LIB_N[] = "Library Not Initialized (TA_LIB_NOT_INITIALIZE)"; +static const char __pyx_k_Non_native_byte_order_not_suppor[] = "Non-native byte order not supported"; +static const char __pyx_k_Out_of_Range_End_Index_TA_OUT_OF[] = "Out-of-Range End Index (TA_OUT_OF_RANGE_END_INDEX)"; +static const char __pyx_k_Output_Not_All_Initialized_TA_OU[] = "Output Not All Initialized (TA_OUTPUT_NOT_ALL_INITIALIZE)"; +static const char __pyx_k_Strength_Pattern_200_100_Bearish[] = "Strength Pattern ([-200..-100] = Bearish, [-100..0] = Getting Bearish, 0 = Neutral, [0..100] = Getting Bullish, [100-200] = Bullish)"; +static const char __pyx_k_Triple_Exponential_Moving_Averag[] = "Triple Exponential Moving Average"; +static const char __pyx_k_Triple_Generalized_Double_Expone[] = "Triple Generalized Double Exponential Moving Average"; +static const char __pyx_k_input_arrays_parameter_missing_r[] = "input_arrays parameter missing required data key%s: %s"; +static const char __pyx_k_ndarray_is_not_Fortran_contiguou[] = "ndarray is not Fortran contiguous"; +static const char __pyx_k_Users_kelvin_GitHub_mrjbq7_ta_l_2[] = "/Users/kelvin/GitHub/mrjbq7/ta-lib/talib/_func.pxi"; +static const char __pyx_k_Users_kelvin_GitHub_mrjbq7_ta_l_3[] = "/Users/kelvin/GitHub/mrjbq7/ta-lib/talib/_abstract.pxi"; +static const char __pyx_k_Users_kelvin_GitHub_mrjbq7_ta_l_4[] = "/Users/kelvin/GitHub/mrjbq7/ta-lib/talib/_stream.pxi"; +static const char __pyx_k_Format_string_allocated_too_shor_2[] = "Format string allocated too short."; +static PyObject *__pyx_kp_s_3; +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_ALL; +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_kp_s_Allocation_Error_TA_ALLOC_ERR; +static PyObject *__pyx_n_s_BBANDS; +static PyObject *__pyx_n_s_BETA; +static PyObject *__pyx_n_s_BOP; +static PyObject *__pyx_kp_s_Bad_Object_TA_BAD_OBJECT; +static PyObject *__pyx_kp_s_Bad_Parameter_TA_BAD_PARAM; +static PyObject *__pyx_kp_s_Bull_Bear_Pattern_Bearish_0_Neut; +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_kp_s_Dashed_Line; +static PyObject *__pyx_n_s_DataFrame; +static PyObject *__pyx_n_s_Dot; +static PyObject *__pyx_kp_s_Dotted_Line; +static PyObject *__pyx_kp_s_Double_Exponential_Moving_Averag; +static PyObject *__pyx_n_s_EMA; +static PyObject *__pyx_n_s_EXP; +static PyObject *__pyx_n_s_Exception; +static PyObject *__pyx_kp_s_Exponential_Moving_Average; +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_Function; +static PyObject *__pyx_kp_s_Function_Not_Found_TA_FUNC_NOT_F; +static PyObject *__pyx_n_s_Function___call; +static PyObject *__pyx_n_s_Function___call_function; +static PyObject *__pyx_n_s_Function___get_opt_input_value; +static PyObject *__pyx_n_s_Function___init; +static PyObject *__pyx_n_s_Function___initialize_function_i; +static PyObject *__pyx_n_s_Function___input_price_series_na; +static PyObject *__pyx_n_s_Function___repr; +static PyObject *__pyx_n_s_Function___str; +static PyObject *__pyx_n_s_Function___unicode; +static PyObject *__pyx_n_s_Function__call_function; +static PyObject *__pyx_n_s_Function__get_opt_input_value; +static PyObject *__pyx_n_s_Function__info; +static PyObject *__pyx_n_s_Function__initialize_function_i; +static PyObject *__pyx_n_s_Function__input_arrays; +static PyObject *__pyx_n_s_Function__input_names; +static PyObject *__pyx_n_s_Function__input_price_series_na; +static PyObject *__pyx_n_s_Function__name; +static PyObject *__pyx_n_s_Function__namestr; +static PyObject *__pyx_n_s_Function__opt_inputs; +static PyObject *__pyx_n_s_Function__outputs; +static PyObject *__pyx_n_s_Function__outputs_valid; +static PyObject *__pyx_n_s_Function_function_flags; +static PyObject *__pyx_n_s_Function_get_input_arrays; +static PyObject *__pyx_n_s_Function_get_input_names; +static PyObject *__pyx_n_s_Function_get_parameters; +static PyObject *__pyx_kp_s_Function_has_an_unstable_period; +static PyObject *__pyx_n_s_Function_info; +static PyObject *__pyx_n_s_Function_lookback; +static PyObject *__pyx_n_s_Function_output_flags; +static PyObject *__pyx_n_s_Function_output_names; +static PyObject *__pyx_n_s_Function_outputs; +static PyObject *__pyx_n_s_Function_run; +static PyObject *__pyx_n_s_Function_set_function_args; +static PyObject *__pyx_n_s_Function_set_input_arrays; +static PyObject *__pyx_n_s_Function_set_input_names; +static PyObject *__pyx_n_s_Function_set_parameters; +static PyObject *__pyx_kp_s_Group_Not_Found_TA_GROUP_NOT_FOU; +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_Histogram; +static PyObject *__pyx_n_s_INPUT_ARRAYS_DEFAULTS; +static PyObject *__pyx_n_s_INPUT_ARRAYS_TYPES; +static PyObject *__pyx_n_s_INPUT_PRICE_SERIES_DEFAULTS; +static PyObject *__pyx_n_s_ImportError; +static PyObject *__pyx_kp_s_Input_Not_All_Initialized_TA_INP; +static PyObject *__pyx_kp_s_Inputs; +static PyObject *__pyx_kp_s_Internal_Error_TA_INTERNAL_ERROR; +static PyObject *__pyx_kp_s_Invalid_Handle_TA_INVALID_HANDLE; +static PyObject *__pyx_kp_s_Invalid_List_Type_TA_INVALID_LIS; +static PyObject *__pyx_kp_s_Invalid_Parameter_Function_TA_IN; +static PyObject *__pyx_kp_s_Invalid_Parameter_Holder_TA_INVA; +static PyObject *__pyx_kp_s_Invalid_Parameter_Holder_Type_TA; +static PyObject *__pyx_n_s_KAMA; +static PyObject *__pyx_kp_s_Kaufman_Adaptive_Moving_Average; +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_kp_s_Library_Not_Initialized_TA_LIB_N; +static PyObject *__pyx_n_s_Line; +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_MA_Type; +static PyObject *__pyx_n_s_MA_Type___getitem; +static PyObject *__pyx_n_s_MA_Type___init; +static PyObject *__pyx_n_s_MEDPRICE; +static PyObject *__pyx_kp_s_MESA_Adaptive_Moving_Average; +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_n_s_NONE; +static PyObject *__pyx_kp_u_Non_native_byte_order_not_suppor; +static PyObject *__pyx_kp_s_Not_Supported_TA_NOT_SUPPORTED; +static PyObject *__pyx_n_s_OBV; +static PyObject *__pyx_n_s_OrderedDict; +static PyObject *__pyx_kp_s_Out_of_Range_End_Index_TA_OUT_OF; +static PyObject *__pyx_kp_s_Out_of_Range_Start_Index_TA_OUT; +static PyObject *__pyx_kp_s_Output_Not_All_Initialized_TA_OU; +static PyObject *__pyx_kp_s_Output_can_be_negative; +static PyObject *__pyx_kp_s_Output_can_be_positive; +static PyObject *__pyx_kp_s_Output_can_be_zero; +static PyObject *__pyx_kp_s_Output_is_a_candlestick; +static PyObject *__pyx_kp_s_Output_is_over_volume; +static PyObject *__pyx_kp_s_Output_scale_same_as_input; +static PyObject *__pyx_kp_s_Outputs; +static PyObject *__pyx_n_s_PANDAS_DATAFRAME; +static PyObject *__pyx_n_s_PANDAS_SERIES; +static PyObject *__pyx_n_s_PLUS_DI; +static PyObject *__pyx_n_s_PLUS_DM; +static PyObject *__pyx_n_s_PPO; +static PyObject *__pyx_kp_s_Parameters; +static PyObject *__pyx_kp_s_Pattern_Bool; +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_Series; +static PyObject *__pyx_kp_s_Simple_Moving_Average; +static PyObject *__pyx_kp_s_Strength_Pattern_200_100_Bearish; +static PyObject *__pyx_n_s_Success; +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_FUNCTION_NAMES; +static PyObject *__pyx_n_s_TA_FUNC_FLAGS; +static PyObject *__pyx_n_s_TA_FuncTableAlloc; +static PyObject *__pyx_n_s_TA_FuncTableFree; +static PyObject *__pyx_n_s_TA_GetFuncHandle; +static PyObject *__pyx_n_s_TA_GetFuncInfo; +static PyObject *__pyx_n_s_TA_GetInputParameterInfo; +static PyObject *__pyx_n_s_TA_GetLookback; +static PyObject *__pyx_n_s_TA_GetOptInputParameterInfo; +static PyObject *__pyx_n_s_TA_GetOutputParameterInfo; +static PyObject *__pyx_n_s_TA_GroupTableAlloc; +static PyObject *__pyx_n_s_TA_GroupTableFree; +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_INPUT_FLAGS; +static PyObject *__pyx_n_s_TA_Initialize; +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_OUTPUT_FLAGS; +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_ParamHolderAlloc; +static PyObject *__pyx_n_s_TA_ParamHolderFree; +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_SetOptInputParamInteger; +static PyObject *__pyx_n_s_TA_SetOptInputParamReal; +static PyObject *__pyx_n_s_TA_SetUnstablePeriod; +static PyObject *__pyx_n_s_TA_Shutdown; +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_kp_s_This_is_a_pythonic_wrapper_arou; +static PyObject *__pyx_kp_s_Triangular_Moving_Average; +static PyObject *__pyx_kp_s_Triple_Exponential_Moving_Averag; +static PyObject *__pyx_kp_s_Triple_Generalized_Double_Expone; +static PyObject *__pyx_n_s_ULTOSC; +static PyObject *__pyx_kp_s_Unknown_Error_TA_UNKNOWN_ERR; +static PyObject *__pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l; +static PyObject *__pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2; +static PyObject *__pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_3; +static PyObject *__pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4; +static PyObject *__pyx_n_s_VAR; +static PyObject *__pyx_n_s_ValueError; +static PyObject *__pyx_kp_s_Values_represent_a_lower_limit; +static PyObject *__pyx_kp_s_Values_represent_an_upper_limit; +static PyObject *__pyx_n_s_WCLPRICE; +static PyObject *__pyx_n_s_WILLR; +static PyObject *__pyx_n_s_WMA; +static PyObject *__pyx_kp_s_Weighted_Moving_Average; +static PyObject *__pyx_kp_s__1211; +static PyObject *__pyx_kp_s__1212; +static PyObject *__pyx_kp_s__1214; +static PyObject *__pyx_kp_s__1215; +static PyObject *__pyx_kp_s__1216; +static PyObject *__pyx_kp_s__1217; +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_kp_s_any_ndarray; +static PyObject *__pyx_n_s_args; +static PyObject *__pyx_n_s_ascii; +static PyObject *__pyx_n_s_b; +static PyObject *__pyx_n_s_begidx; +static PyObject *__pyx_n_s_bytes2str; +static PyObject *__pyx_n_s_call; +static PyObject *__pyx_n_s_call_function; +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_collections; +static PyObject *__pyx_n_s_column_stack; +static PyObject *__pyx_n_s_columns; +static PyObject *__pyx_n_s_copy; +static PyObject *__pyx_n_s_decode; +static PyObject *__pyx_n_s_default_value; +static PyObject *__pyx_n_s_defaults; +static PyObject *__pyx_n_s_display_name; +static PyObject *__pyx_kp_s_display_name_s_group_s; +static PyObject *__pyx_n_s_doc; +static PyObject *__pyx_n_s_docs; +static PyObject *__pyx_n_s_documentation; +static PyObject *__pyx_n_s_endidx; +static PyObject *__pyx_n_s_enumerate; +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_flag; +static PyObject *__pyx_n_s_flags; +static PyObject *__pyx_n_s_flags_lookup_dict; +static PyObject *__pyx_n_s_func_args; +static PyObject *__pyx_n_s_func_info; +static PyObject *__pyx_n_s_func_line; +static PyObject *__pyx_n_s_func_object; +static PyObject *__pyx_n_s_function_flags; +static PyObject *__pyx_n_s_function_name; +static PyObject *__pyx_n_s_functions; +static PyObject *__pyx_n_s_get_defaults_and_docs; +static PyObject *__pyx_n_s_get_flags; +static PyObject *__pyx_n_s_get_input_arrays; +static PyObject *__pyx_n_s_get_input_names; +static PyObject *__pyx_n_s_get_opt_input_value; +static PyObject *__pyx_n_s_get_parameters; +static PyObject *__pyx_n_s_getitem; +static PyObject *__pyx_n_s_group; +static PyObject *__pyx_n_s_groups; +static PyObject *__pyx_n_s_help; +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_holder; +static PyObject *__pyx_n_s_i; +static PyObject *__pyx_n_s_id; +static PyObject *__pyx_n_s_idx; +static PyObject *__pyx_n_s_import; +static PyObject *__pyx_n_s_in; +static PyObject *__pyx_n_s_index; +static PyObject *__pyx_n_s_info; +static PyObject *__pyx_n_s_init; +static PyObject *__pyx_n_s_initialize_function_info; +static PyObject *__pyx_n_s_input_arrays; +static PyObject *__pyx_kp_s_input_arrays_2; +static PyObject *__pyx_kp_s_input_arrays_parameter_missing_r; +static PyObject *__pyx_kp_s_input_lengths_are_different; +static PyObject *__pyx_n_s_input_name; +static PyObject *__pyx_n_s_input_names; +static PyObject *__pyx_n_s_input_price_series_names; +static PyObject *__pyx_n_s_input_price_series_names_2; +static PyObject *__pyx_kp_s_inputs_are_all_NaN; +static PyObject *__pyx_n_s_integer; +static PyObject *__pyx_kp_s_integer_values_are_100_0_or_100; +static PyObject *__pyx_n_s_items; +static PyObject *__pyx_n_s_join; +static PyObject *__pyx_n_s_key; +static PyObject *__pyx_n_s_keys; +static PyObject *__pyx_n_s_kwargs; +static PyObject *__pyx_n_s_length; +static PyObject *__pyx_n_s_log; +static PyObject *__pyx_n_s_lookback; +static PyObject *__pyx_n_s_lookup; +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_lower; +static PyObject *__pyx_n_s_main; +static PyObject *__pyx_n_s_math; +static PyObject *__pyx_n_s_matype; +static PyObject *__pyx_n_s_max; +static PyObject *__pyx_n_s_max_int; +static PyObject *__pyx_n_s_maximum; +static PyObject *__pyx_n_s_maxperiod; +static PyObject *__pyx_n_s_metaclass; +static PyObject *__pyx_n_s_min; +static PyObject *__pyx_n_s_min_int; +static PyObject *__pyx_n_s_minperiod; +static PyObject *__pyx_n_s_missing_keys; +static PyObject *__pyx_n_s_module; +static PyObject *__pyx_n_s_name; +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_num_inputs; +static PyObject *__pyx_n_s_num_opt_inputs; +static PyObject *__pyx_n_s_num_outputs; +static PyObject *__pyx_n_s_numpy; +static PyObject *__pyx_n_s_object; +static PyObject *__pyx_n_s_offsetonreverse; +static PyObject *__pyx_n_s_open; +static PyObject *__pyx_n_s_openInterest; +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_optIn; +static PyObject *__pyx_n_s_opt_input; +static PyObject *__pyx_n_s_ordereddict; +static PyObject *__pyx_n_s_out; +static PyObject *__pyx_n_s_outaroondown; +static PyObject *__pyx_n_s_outaroondown_data; +static PyObject *__pyx_n_s_outaroonup; +static PyObject *__pyx_n_s_outaroonup_data; +static PyObject *__pyx_n_s_outbegidx; +static PyObject *__pyx_n_s_outfama; +static PyObject *__pyx_n_s_outfama_data; +static PyObject *__pyx_n_s_outfastd; +static PyObject *__pyx_n_s_outfastd_data; +static PyObject *__pyx_n_s_outfastk; +static PyObject *__pyx_n_s_outfastk_data; +static PyObject *__pyx_n_s_outinphase; +static PyObject *__pyx_n_s_outinphase_data; +static PyObject *__pyx_n_s_outinteger; +static PyObject *__pyx_n_s_outinteger_data; +static PyObject *__pyx_n_s_outleadsine; +static PyObject *__pyx_n_s_outleadsine_data; +static PyObject *__pyx_n_s_outmacd; +static PyObject *__pyx_n_s_outmacd_data; +static PyObject *__pyx_n_s_outmacdhist; +static PyObject *__pyx_n_s_outmacdhist_data; +static PyObject *__pyx_n_s_outmacdsignal; +static PyObject *__pyx_n_s_outmacdsignal_data; +static PyObject *__pyx_n_s_outmama; +static PyObject *__pyx_n_s_outmama_data; +static PyObject *__pyx_n_s_outmax; +static PyObject *__pyx_n_s_outmax_data; +static PyObject *__pyx_n_s_outmaxidx; +static PyObject *__pyx_n_s_outmaxidx_data; +static PyObject *__pyx_n_s_outmin; +static PyObject *__pyx_n_s_outmin_data; +static PyObject *__pyx_n_s_outminidx; +static PyObject *__pyx_n_s_outminidx_data; +static PyObject *__pyx_n_s_outnbelement; +static PyObject *__pyx_n_s_output; +static PyObject *__pyx_n_s_output_flags; +static PyObject *__pyx_n_s_output_name; +static PyObject *__pyx_n_s_output_names; +static PyObject *__pyx_n_s_outputs; +static PyObject *__pyx_n_s_outquadrature; +static PyObject *__pyx_n_s_outquadrature_data; +static PyObject *__pyx_n_s_outreal; +static PyObject *__pyx_n_s_outreal_data; +static PyObject *__pyx_n_s_outreallowerband; +static PyObject *__pyx_n_s_outreallowerband_data; +static PyObject *__pyx_n_s_outrealmiddleband; +static PyObject *__pyx_n_s_outrealmiddleband_data; +static PyObject *__pyx_n_s_outrealupperband; +static PyObject *__pyx_n_s_outrealupperband_data; +static PyObject *__pyx_n_s_outsine; +static PyObject *__pyx_n_s_outsine_data; +static PyObject *__pyx_n_s_outslowd; +static PyObject *__pyx_n_s_outslowd_data; +static PyObject *__pyx_n_s_outslowk; +static PyObject *__pyx_n_s_outslowk_data; +static PyObject *__pyx_n_s_pandas; +static PyObject *__pyx_n_s_param; +static PyObject *__pyx_n_s_param_name; +static PyObject *__pyx_n_s_parameters; +static PyObject *__pyx_n_s_params; +static PyObject *__pyx_n_s_penetration; +static PyObject *__pyx_n_s_period; +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_pop; +static PyObject *__pyx_n_s_prepare; +static PyObject *__pyx_n_s_price; +static PyObject *__pyx_n_s_price0; +static PyObject *__pyx_n_s_price1; +static PyObject *__pyx_n_s_price_series; +static PyObject *__pyx_n_s_prices; +static PyObject *__pyx_n_s_property; +static PyObject *__pyx_n_s_qualname; +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_replace; +static PyObject *__pyx_n_s_repr; +static PyObject *__pyx_n_s_results; +static PyObject *__pyx_n_s_ret; +static PyObject *__pyx_n_s_retCode; +static PyObject *__pyx_n_s_ret_code; +static PyObject *__pyx_n_s_run; +static PyObject *__pyx_n_s_s; +static PyObject *__pyx_kp_s_s_2; +static PyObject *__pyx_kp_s_s_3; +static PyObject *__pyx_kp_s_s_4; +static PyObject *__pyx_kp_s_s_function_failed_with_error_co; +static PyObject *__pyx_kp_s_s_s; +static PyObject *__pyx_kp_s_s_s_2; +static PyObject *__pyx_n_s_self; +static PyObject *__pyx_n_s_series; +static PyObject *__pyx_n_s_set_function_args; +static PyObject *__pyx_n_s_set_input_arrays; +static PyObject *__pyx_n_s_set_input_names; +static PyObject *__pyx_n_s_set_parameters; +static PyObject *__pyx_n_s_signalmatype; +static PyObject *__pyx_n_s_signalperiod; +static PyObject *__pyx_n_s_skip_first; +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_str; +static PyObject *__pyx_n_s_str2bytes; +static PyObject *__pyx_n_s_stream_ACOS; +static PyObject *__pyx_n_s_stream_AD; +static PyObject *__pyx_n_s_stream_ADD; +static PyObject *__pyx_n_s_stream_ADOSC; +static PyObject *__pyx_n_s_stream_ADX; +static PyObject *__pyx_n_s_stream_ADXR; +static PyObject *__pyx_n_s_stream_APO; +static PyObject *__pyx_n_s_stream_AROON; +static PyObject *__pyx_n_s_stream_AROONOSC; +static PyObject *__pyx_n_s_stream_ASIN; +static PyObject *__pyx_n_s_stream_ATAN; +static PyObject *__pyx_n_s_stream_ATR; +static PyObject *__pyx_n_s_stream_AVGPRICE; +static PyObject *__pyx_n_s_stream_BBANDS; +static PyObject *__pyx_n_s_stream_BETA; +static PyObject *__pyx_n_s_stream_BOP; +static PyObject *__pyx_n_s_stream_CCI; +static PyObject *__pyx_n_s_stream_CDL2CROWS; +static PyObject *__pyx_n_s_stream_CDL3BLACKCROWS; +static PyObject *__pyx_n_s_stream_CDL3INSIDE; +static PyObject *__pyx_n_s_stream_CDL3LINESTRIKE; +static PyObject *__pyx_n_s_stream_CDL3OUTSIDE; +static PyObject *__pyx_n_s_stream_CDL3STARSINSOUTH; +static PyObject *__pyx_n_s_stream_CDL3WHITESOLDIERS; +static PyObject *__pyx_n_s_stream_CDLABANDONEDBABY; +static PyObject *__pyx_n_s_stream_CDLADVANCEBLOCK; +static PyObject *__pyx_n_s_stream_CDLBELTHOLD; +static PyObject *__pyx_n_s_stream_CDLBREAKAWAY; +static PyObject *__pyx_n_s_stream_CDLCLOSINGMARUBOZU; +static PyObject *__pyx_n_s_stream_CDLCONCEALBABYSWALL; +static PyObject *__pyx_n_s_stream_CDLCOUNTERATTACK; +static PyObject *__pyx_n_s_stream_CDLDARKCLOUDCOVER; +static PyObject *__pyx_n_s_stream_CDLDOJI; +static PyObject *__pyx_n_s_stream_CDLDOJISTAR; +static PyObject *__pyx_n_s_stream_CDLDRAGONFLYDOJI; +static PyObject *__pyx_n_s_stream_CDLENGULFING; +static PyObject *__pyx_n_s_stream_CDLEVENINGDOJISTAR; +static PyObject *__pyx_n_s_stream_CDLEVENINGSTAR; +static PyObject *__pyx_n_s_stream_CDLGAPSIDESIDEWHITE; +static PyObject *__pyx_n_s_stream_CDLGRAVESTONEDOJI; +static PyObject *__pyx_n_s_stream_CDLHAMMER; +static PyObject *__pyx_n_s_stream_CDLHANGINGMAN; +static PyObject *__pyx_n_s_stream_CDLHARAMI; +static PyObject *__pyx_n_s_stream_CDLHARAMICROSS; +static PyObject *__pyx_n_s_stream_CDLHIGHWAVE; +static PyObject *__pyx_n_s_stream_CDLHIKKAKE; +static PyObject *__pyx_n_s_stream_CDLHIKKAKEMOD; +static PyObject *__pyx_n_s_stream_CDLHOMINGPIGEON; +static PyObject *__pyx_n_s_stream_CDLIDENTICAL3CROWS; +static PyObject *__pyx_n_s_stream_CDLINNECK; +static PyObject *__pyx_n_s_stream_CDLINVERTEDHAMMER; +static PyObject *__pyx_n_s_stream_CDLKICKING; +static PyObject *__pyx_n_s_stream_CDLKICKINGBYLENGTH; +static PyObject *__pyx_n_s_stream_CDLLADDERBOTTOM; +static PyObject *__pyx_n_s_stream_CDLLONGLEGGEDDOJI; +static PyObject *__pyx_n_s_stream_CDLLONGLINE; +static PyObject *__pyx_n_s_stream_CDLMARUBOZU; +static PyObject *__pyx_n_s_stream_CDLMATCHINGLOW; +static PyObject *__pyx_n_s_stream_CDLMATHOLD; +static PyObject *__pyx_n_s_stream_CDLMORNINGDOJISTAR; +static PyObject *__pyx_n_s_stream_CDLMORNINGSTAR; +static PyObject *__pyx_n_s_stream_CDLONNECK; +static PyObject *__pyx_n_s_stream_CDLPIERCING; +static PyObject *__pyx_n_s_stream_CDLRICKSHAWMAN; +static PyObject *__pyx_n_s_stream_CDLRISEFALL3METHODS; +static PyObject *__pyx_n_s_stream_CDLSEPARATINGLINES; +static PyObject *__pyx_n_s_stream_CDLSHOOTINGSTAR; +static PyObject *__pyx_n_s_stream_CDLSHORTLINE; +static PyObject *__pyx_n_s_stream_CDLSPINNINGTOP; +static PyObject *__pyx_n_s_stream_CDLSTALLEDPATTERN; +static PyObject *__pyx_n_s_stream_CDLSTICKSANDWICH; +static PyObject *__pyx_n_s_stream_CDLTAKURI; +static PyObject *__pyx_n_s_stream_CDLTASUKIGAP; +static PyObject *__pyx_n_s_stream_CDLTHRUSTING; +static PyObject *__pyx_n_s_stream_CDLTRISTAR; +static PyObject *__pyx_n_s_stream_CDLUNIQUE3RIVER; +static PyObject *__pyx_n_s_stream_CDLUPSIDEGAP2CROWS; +static PyObject *__pyx_n_s_stream_CDLXSIDEGAP3METHODS; +static PyObject *__pyx_n_s_stream_CEIL; +static PyObject *__pyx_n_s_stream_CMO; +static PyObject *__pyx_n_s_stream_CORREL; +static PyObject *__pyx_n_s_stream_COS; +static PyObject *__pyx_n_s_stream_COSH; +static PyObject *__pyx_n_s_stream_DEMA; +static PyObject *__pyx_n_s_stream_DIV; +static PyObject *__pyx_n_s_stream_DX; +static PyObject *__pyx_n_s_stream_EMA; +static PyObject *__pyx_n_s_stream_EXP; +static PyObject *__pyx_n_s_stream_FLOOR; +static PyObject *__pyx_n_s_stream_HT_DCPERIOD; +static PyObject *__pyx_n_s_stream_HT_DCPHASE; +static PyObject *__pyx_n_s_stream_HT_PHASOR; +static PyObject *__pyx_n_s_stream_HT_SINE; +static PyObject *__pyx_n_s_stream_HT_TRENDLINE; +static PyObject *__pyx_n_s_stream_HT_TRENDMODE; +static PyObject *__pyx_n_s_stream_KAMA; +static PyObject *__pyx_n_s_stream_LINEARREG; +static PyObject *__pyx_n_s_stream_LINEARREG_ANGLE; +static PyObject *__pyx_n_s_stream_LINEARREG_INTERCEPT; +static PyObject *__pyx_n_s_stream_LINEARREG_SLOPE; +static PyObject *__pyx_n_s_stream_LN; +static PyObject *__pyx_n_s_stream_LOG10; +static PyObject *__pyx_n_s_stream_MA; +static PyObject *__pyx_n_s_stream_MACD; +static PyObject *__pyx_n_s_stream_MACDEXT; +static PyObject *__pyx_n_s_stream_MACDFIX; +static PyObject *__pyx_n_s_stream_MAMA; +static PyObject *__pyx_n_s_stream_MAVP; +static PyObject *__pyx_n_s_stream_MAX; +static PyObject *__pyx_n_s_stream_MAXINDEX; +static PyObject *__pyx_n_s_stream_MEDPRICE; +static PyObject *__pyx_n_s_stream_MFI; +static PyObject *__pyx_n_s_stream_MIDPOINT; +static PyObject *__pyx_n_s_stream_MIDPRICE; +static PyObject *__pyx_n_s_stream_MIN; +static PyObject *__pyx_n_s_stream_MININDEX; +static PyObject *__pyx_n_s_stream_MINMAX; +static PyObject *__pyx_n_s_stream_MINMAXINDEX; +static PyObject *__pyx_n_s_stream_MINUS_DI; +static PyObject *__pyx_n_s_stream_MINUS_DM; +static PyObject *__pyx_n_s_stream_MOM; +static PyObject *__pyx_n_s_stream_MULT; +static PyObject *__pyx_n_s_stream_NATR; +static PyObject *__pyx_n_s_stream_OBV; +static PyObject *__pyx_n_s_stream_PLUS_DI; +static PyObject *__pyx_n_s_stream_PLUS_DM; +static PyObject *__pyx_n_s_stream_PPO; +static PyObject *__pyx_n_s_stream_ROC; +static PyObject *__pyx_n_s_stream_ROCP; +static PyObject *__pyx_n_s_stream_ROCR; +static PyObject *__pyx_n_s_stream_ROCR100; +static PyObject *__pyx_n_s_stream_RSI; +static PyObject *__pyx_n_s_stream_SAR; +static PyObject *__pyx_n_s_stream_SAREXT; +static PyObject *__pyx_n_s_stream_SIN; +static PyObject *__pyx_n_s_stream_SINH; +static PyObject *__pyx_n_s_stream_SMA; +static PyObject *__pyx_n_s_stream_SQRT; +static PyObject *__pyx_n_s_stream_STDDEV; +static PyObject *__pyx_n_s_stream_STOCH; +static PyObject *__pyx_n_s_stream_STOCHF; +static PyObject *__pyx_n_s_stream_STOCHRSI; +static PyObject *__pyx_n_s_stream_SUB; +static PyObject *__pyx_n_s_stream_SUM; +static PyObject *__pyx_n_s_stream_T3; +static PyObject *__pyx_n_s_stream_TAN; +static PyObject *__pyx_n_s_stream_TANH; +static PyObject *__pyx_n_s_stream_TEMA; +static PyObject *__pyx_n_s_stream_TRANGE; +static PyObject *__pyx_n_s_stream_TRIMA; +static PyObject *__pyx_n_s_stream_TRIX; +static PyObject *__pyx_n_s_stream_TSF; +static PyObject *__pyx_n_s_stream_TYPPRICE; +static PyObject *__pyx_n_s_stream_ULTOSC; +static PyObject *__pyx_n_s_stream_VAR; +static PyObject *__pyx_n_s_stream_WCLPRICE; +static PyObject *__pyx_n_s_stream_WILLR; +static PyObject *__pyx_n_s_stream_WMA; +static PyObject *__pyx_n_s_sys; +static PyObject *__pyx_n_s_ta_func_unst_ids; +static PyObject *__pyx_n_s_ta_getFuncInfo; +static PyObject *__pyx_n_s_ta_getFuncTable; +static PyObject *__pyx_n_s_ta_getGroupTable; +static PyObject *__pyx_n_s_ta_getInputParameterInfo; +static PyObject *__pyx_n_s_ta_getOptInputParameterInfo; +static PyObject *__pyx_n_s_ta_getOutputParameterInfo; +static PyObject *__pyx_n_s_ta_get_unstable_period; +static PyObject *__pyx_n_s_ta_initialize; +static PyObject *__pyx_n_s_ta_set_unstable_period; +static PyObject *__pyx_n_s_ta_shutdown; +static PyObject *__pyx_n_s_ta_version; +static PyObject *__pyx_n_s_table; +static PyObject *__pyx_n_s_talib_c_ta_lib; +static PyObject *__pyx_n_s_test; +static PyObject *__pyx_n_s_timeStamp; +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_n_s_type; +static PyObject *__pyx_n_s_type_2; +static PyObject *__pyx_n_s_unicode; +static PyObject *__pyx_kp_u_unknown_dtype_code_in_numpy_pxd; +static PyObject *__pyx_n_s_update_info; +static PyObject *__pyx_n_s_upper; +static PyObject *__pyx_n_s_val; +static PyObject *__pyx_n_s_value; +static PyObject *__pyx_n_s_value_range; +static PyObject *__pyx_n_s_values; +static PyObject *__pyx_n_s_version; +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_n_s_xrange; +static PyObject *__pyx_pf_5talib_8c_ta_lib__ta_check_success(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_function_name, TA_RetCode __pyx_v_ret_code); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_2_ta_initialize(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_4_ta_shutdown(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_7MA_Type___init__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_7MA_Type_2__getitem__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_type_); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_6_ta_set_unstable_period(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_name, PyObject *__pyx_v_period); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_8_ta_get_unstable_period(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_name); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_10ACOS(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_12AD(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_8c_ta_lib_14ADD(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real0, PyArrayObject *__pyx_v_real1); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_16ADOSC(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_8c_ta_lib_18ADX(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_8c_ta_lib_20ADXR(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_8c_ta_lib_22APO(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_8c_ta_lib_24AROON(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, int __pyx_v_timeperiod); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_26AROONOSC(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, int __pyx_v_timeperiod); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_28ASIN(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_30ATAN(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_32ATR(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_8c_ta_lib_34AVGPRICE(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_8c_ta_lib_36BBANDS(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_8c_ta_lib_38BETA(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real0, PyArrayObject *__pyx_v_real1, int __pyx_v_timeperiod); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_40BOP(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_8c_ta_lib_42CCI(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_8c_ta_lib_44CDL2CROWS(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_8c_ta_lib_46CDL3BLACKCROWS(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_8c_ta_lib_48CDL3INSIDE(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_8c_ta_lib_50CDL3LINESTRIKE(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_8c_ta_lib_52CDL3OUTSIDE(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_8c_ta_lib_54CDL3STARSINSOUTH(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_8c_ta_lib_56CDL3WHITESOLDIERS(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_8c_ta_lib_58CDLABANDONEDBABY(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_8c_ta_lib_60CDLADVANCEBLOCK(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_8c_ta_lib_62CDLBELTHOLD(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_8c_ta_lib_64CDLBREAKAWAY(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_8c_ta_lib_66CDLCLOSINGMARUBOZU(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_8c_ta_lib_68CDLCONCEALBABYSWALL(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_8c_ta_lib_70CDLCOUNTERATTACK(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_8c_ta_lib_72CDLDARKCLOUDCOVER(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_8c_ta_lib_74CDLDOJI(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_8c_ta_lib_76CDLDOJISTAR(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_8c_ta_lib_78CDLDRAGONFLYDOJI(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_8c_ta_lib_80CDLENGULFING(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_8c_ta_lib_82CDLEVENINGDOJISTAR(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_8c_ta_lib_84CDLEVENINGSTAR(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_8c_ta_lib_86CDLGAPSIDESIDEWHITE(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_8c_ta_lib_88CDLGRAVESTONEDOJI(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_8c_ta_lib_90CDLHAMMER(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_8c_ta_lib_92CDLHANGINGMAN(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_8c_ta_lib_94CDLHARAMI(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_8c_ta_lib_96CDLHARAMICROSS(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_8c_ta_lib_98CDLHIGHWAVE(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_8c_ta_lib_100CDLHIKKAKE(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_8c_ta_lib_102CDLHIKKAKEMOD(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_8c_ta_lib_104CDLHOMINGPIGEON(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_8c_ta_lib_106CDLIDENTICAL3CROWS(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_8c_ta_lib_108CDLINNECK(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_8c_ta_lib_110CDLINVERTEDHAMMER(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_8c_ta_lib_112CDLKICKING(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_8c_ta_lib_114CDLKICKINGBYLENGTH(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_8c_ta_lib_116CDLLADDERBOTTOM(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_8c_ta_lib_118CDLLONGLEGGEDDOJI(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_8c_ta_lib_120CDLLONGLINE(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_8c_ta_lib_122CDLMARUBOZU(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_8c_ta_lib_124CDLMATCHINGLOW(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_8c_ta_lib_126CDLMATHOLD(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_8c_ta_lib_128CDLMORNINGDOJISTAR(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_8c_ta_lib_130CDLMORNINGSTAR(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_8c_ta_lib_132CDLONNECK(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_8c_ta_lib_134CDLPIERCING(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_8c_ta_lib_136CDLRICKSHAWMAN(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_8c_ta_lib_138CDLRISEFALL3METHODS(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_8c_ta_lib_140CDLSEPARATINGLINES(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_8c_ta_lib_142CDLSHOOTINGSTAR(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_8c_ta_lib_144CDLSHORTLINE(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_8c_ta_lib_146CDLSPINNINGTOP(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_8c_ta_lib_148CDLSTALLEDPATTERN(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_8c_ta_lib_150CDLSTICKSANDWICH(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_8c_ta_lib_152CDLTAKURI(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_8c_ta_lib_154CDLTASUKIGAP(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_8c_ta_lib_156CDLTHRUSTING(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_8c_ta_lib_158CDLTRISTAR(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_8c_ta_lib_160CDLUNIQUE3RIVER(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_8c_ta_lib_162CDLUPSIDEGAP2CROWS(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_8c_ta_lib_164CDLXSIDEGAP3METHODS(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_8c_ta_lib_166CEIL(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_168CMO(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_170CORREL(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real0, PyArrayObject *__pyx_v_real1, int __pyx_v_timeperiod); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_172COS(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_174COSH(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_176DEMA(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_178DIV(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real0, PyArrayObject *__pyx_v_real1); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_180DX(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_8c_ta_lib_182EMA(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_184EXP(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_186FLOOR(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_188HT_DCPERIOD(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_190HT_DCPHASE(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_192HT_PHASOR(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_194HT_SINE(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_196HT_TRENDLINE(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_198HT_TRENDMODE(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_200KAMA(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_202LINEARREG(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_204LINEARREG_ANGLE(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_206LINEARREG_INTERCEPT(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_208LINEARREG_SLOPE(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_210LN(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_212LOG10(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_214MA(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod, int __pyx_v_matype); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_216MACD(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_8c_ta_lib_218MACDEXT(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_8c_ta_lib_220MACDFIX(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_signalperiod); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_222MAMA(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, double __pyx_v_fastlimit, double __pyx_v_slowlimit); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_224MAVP(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_8c_ta_lib_226MAX(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_228MAXINDEX(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_230MEDPRICE(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_232MFI(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_8c_ta_lib_234MIDPOINT(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_236MIDPRICE(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, int __pyx_v_timeperiod); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_238MIN(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_240MININDEX(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_242MINMAX(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_244MINMAXINDEX(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_246MINUS_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_8c_ta_lib_248MINUS_DM(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, int __pyx_v_timeperiod); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_250MOM(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_252MULT(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real0, PyArrayObject *__pyx_v_real1); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_254NATR(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_8c_ta_lib_256OBV(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, PyArrayObject *__pyx_v_volume); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_258PLUS_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_8c_ta_lib_260PLUS_DM(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, int __pyx_v_timeperiod); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_262PPO(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_8c_ta_lib_264ROC(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_266ROCP(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_268ROCR(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_270ROCR100(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_272RSI(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_274SAR(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_8c_ta_lib_276SAREXT(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_8c_ta_lib_278SIN(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_280SINH(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_282SMA(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_284SQRT(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_286STDDEV(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod, double __pyx_v_nbdev); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_288STOCH(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_8c_ta_lib_290STOCHF(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_8c_ta_lib_292STOCHRSI(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_8c_ta_lib_294SUB(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real0, PyArrayObject *__pyx_v_real1); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_296SUM(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_298T3(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod, double __pyx_v_vfactor); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_300TAN(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_302TANH(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_304TEMA(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_306TRANGE(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_308TRIMA(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_310TRIX(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_312TSF(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_314TYPPRICE(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_316ULTOSC(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_8c_ta_lib_318VAR(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod, double __pyx_v_nbdev); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_320WCLPRICE(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_322WILLR(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_8c_ta_lib_324WMA(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_326str2bytes(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_s); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_328bytes2str(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_b); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_330str2bytes(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_s); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_332bytes2str(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_b); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_8Function___init__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_function_name, PyObject *__pyx_v_func_object, PyObject *__pyx_v_args, PyObject *__pyx_v_kwargs); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_8Function_2__initialize_function_info(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_8Function_4info(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_8Function_6function_flags(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_8Function_8output_flags(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_8Function_10get_input_names(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_8Function_12set_input_names(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_input_names); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_8Function_14get_input_arrays(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_8Function_16set_input_arrays(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_input_arrays); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_8Function_18get_parameters(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_8Function_20set_parameters(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_parameters); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_8Function_22set_function_args(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_args, PyObject *__pyx_v_kwargs); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_8Function_24lookback(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_8Function_26output_names(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_8Function_28outputs(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_8Function_30run(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_input_arrays); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_8Function_32__call__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_args, PyObject *__pyx_v_kwargs); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_8Function_34__input_price_series_names(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_8Function_36__call_function(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_8Function_38__get_opt_input_value(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_input_name); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_8Function_40__repr__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_8Function_42__unicode__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_8Function_44__str__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_334_ta_getGroupTable(CYTHON_UNUSED PyObject *__pyx_self); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_336_ta_getFuncTable(CYTHON_UNUSED PyObject *__pyx_self, char *__pyx_v_group); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_338__get_flags(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_flag, PyObject *__pyx_v_flags_lookup_dict); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_340_ta_getFuncInfo(CYTHON_UNUSED PyObject *__pyx_self, char *__pyx_v_function_name); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_342_ta_getInputParameterInfo(CYTHON_UNUSED PyObject *__pyx_self, char *__pyx_v_function_name, int __pyx_v_idx); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_344_ta_getOptInputParameterInfo(CYTHON_UNUSED PyObject *__pyx_self, char *__pyx_v_function_name, int __pyx_v_idx); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_346_ta_getOutputParameterInfo(CYTHON_UNUSED PyObject *__pyx_self, char *__pyx_v_function_name, int __pyx_v_idx); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_348_get_defaults_and_docs(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_func_info); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_350stream_ACOS(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_352stream_AD(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_8c_ta_lib_354stream_ADD(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real0, PyArrayObject *__pyx_v_real1); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_356stream_ADOSC(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_8c_ta_lib_358stream_ADX(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_8c_ta_lib_360stream_ADXR(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_8c_ta_lib_362stream_APO(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_8c_ta_lib_364stream_AROON(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, int __pyx_v_timeperiod); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_366stream_AROONOSC(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, int __pyx_v_timeperiod); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_368stream_ASIN(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_370stream_ATAN(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_372stream_ATR(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_8c_ta_lib_374stream_AVGPRICE(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_8c_ta_lib_376stream_BBANDS(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_8c_ta_lib_378stream_BETA(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real0, PyArrayObject *__pyx_v_real1, int __pyx_v_timeperiod); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_380stream_BOP(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_8c_ta_lib_382stream_CCI(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_8c_ta_lib_384stream_CDL2CROWS(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_8c_ta_lib_386stream_CDL3BLACKCROWS(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_8c_ta_lib_388stream_CDL3INSIDE(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_8c_ta_lib_390stream_CDL3LINESTRIKE(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_8c_ta_lib_392stream_CDL3OUTSIDE(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_8c_ta_lib_394stream_CDL3STARSINSOUTH(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_8c_ta_lib_396stream_CDL3WHITESOLDIERS(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_8c_ta_lib_398stream_CDLABANDONEDBABY(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_8c_ta_lib_400stream_CDLADVANCEBLOCK(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_8c_ta_lib_402stream_CDLBELTHOLD(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_8c_ta_lib_404stream_CDLBREAKAWAY(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_8c_ta_lib_406stream_CDLCLOSINGMARUBOZU(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_8c_ta_lib_408stream_CDLCONCEALBABYSWALL(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_8c_ta_lib_410stream_CDLCOUNTERATTACK(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_8c_ta_lib_412stream_CDLDARKCLOUDCOVER(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_8c_ta_lib_414stream_CDLDOJI(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_8c_ta_lib_416stream_CDLDOJISTAR(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_8c_ta_lib_418stream_CDLDRAGONFLYDOJI(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_8c_ta_lib_420stream_CDLENGULFING(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_8c_ta_lib_422stream_CDLEVENINGDOJISTAR(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_8c_ta_lib_424stream_CDLEVENINGSTAR(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_8c_ta_lib_426stream_CDLGAPSIDESIDEWHITE(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_8c_ta_lib_428stream_CDLGRAVESTONEDOJI(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_8c_ta_lib_430stream_CDLHAMMER(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_8c_ta_lib_432stream_CDLHANGINGMAN(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_8c_ta_lib_434stream_CDLHARAMI(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_8c_ta_lib_436stream_CDLHARAMICROSS(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_8c_ta_lib_438stream_CDLHIGHWAVE(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_8c_ta_lib_440stream_CDLHIKKAKE(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_8c_ta_lib_442stream_CDLHIKKAKEMOD(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_8c_ta_lib_444stream_CDLHOMINGPIGEON(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_8c_ta_lib_446stream_CDLIDENTICAL3CROWS(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_8c_ta_lib_448stream_CDLINNECK(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_8c_ta_lib_450stream_CDLINVERTEDHAMMER(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_8c_ta_lib_452stream_CDLKICKING(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_8c_ta_lib_454stream_CDLKICKINGBYLENGTH(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_8c_ta_lib_456stream_CDLLADDERBOTTOM(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_8c_ta_lib_458stream_CDLLONGLEGGEDDOJI(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_8c_ta_lib_460stream_CDLLONGLINE(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_8c_ta_lib_462stream_CDLMARUBOZU(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_8c_ta_lib_464stream_CDLMATCHINGLOW(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_8c_ta_lib_466stream_CDLMATHOLD(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_8c_ta_lib_468stream_CDLMORNINGDOJISTAR(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_8c_ta_lib_470stream_CDLMORNINGSTAR(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_8c_ta_lib_472stream_CDLONNECK(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_8c_ta_lib_474stream_CDLPIERCING(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_8c_ta_lib_476stream_CDLRICKSHAWMAN(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_8c_ta_lib_478stream_CDLRISEFALL3METHODS(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_8c_ta_lib_480stream_CDLSEPARATINGLINES(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_8c_ta_lib_482stream_CDLSHOOTINGSTAR(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_8c_ta_lib_484stream_CDLSHORTLINE(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_8c_ta_lib_486stream_CDLSPINNINGTOP(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_8c_ta_lib_488stream_CDLSTALLEDPATTERN(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_8c_ta_lib_490stream_CDLSTICKSANDWICH(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_8c_ta_lib_492stream_CDLTAKURI(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_8c_ta_lib_494stream_CDLTASUKIGAP(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_8c_ta_lib_496stream_CDLTHRUSTING(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_8c_ta_lib_498stream_CDLTRISTAR(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_8c_ta_lib_500stream_CDLUNIQUE3RIVER(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_8c_ta_lib_502stream_CDLUPSIDEGAP2CROWS(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_8c_ta_lib_504stream_CDLXSIDEGAP3METHODS(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_8c_ta_lib_506stream_CEIL(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_508stream_CMO(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_510stream_CORREL(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real0, PyArrayObject *__pyx_v_real1, int __pyx_v_timeperiod); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_512stream_COS(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_514stream_COSH(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_516stream_DEMA(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_518stream_DIV(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real0, PyArrayObject *__pyx_v_real1); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_520stream_DX(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_8c_ta_lib_522stream_EMA(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_524stream_EXP(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_526stream_FLOOR(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_528stream_HT_DCPERIOD(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_530stream_HT_DCPHASE(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_532stream_HT_PHASOR(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_534stream_HT_SINE(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_536stream_HT_TRENDLINE(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_538stream_HT_TRENDMODE(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_540stream_KAMA(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_542stream_LINEARREG(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_544stream_LINEARREG_ANGLE(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_546stream_LINEARREG_INTERCEPT(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_548stream_LINEARREG_SLOPE(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_550stream_LN(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_552stream_LOG10(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_554stream_MA(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod, int __pyx_v_matype); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_556stream_MACD(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_8c_ta_lib_558stream_MACDEXT(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_8c_ta_lib_560stream_MACDFIX(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_signalperiod); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_562stream_MAMA(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, double __pyx_v_fastlimit, double __pyx_v_slowlimit); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_564stream_MAVP(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_8c_ta_lib_566stream_MAX(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_568stream_MAXINDEX(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_570stream_MEDPRICE(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_572stream_MFI(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_8c_ta_lib_574stream_MIDPOINT(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_576stream_MIDPRICE(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, int __pyx_v_timeperiod); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_578stream_MIN(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_580stream_MININDEX(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_582stream_MINMAX(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_584stream_MINMAXINDEX(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_586stream_MINUS_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_8c_ta_lib_588stream_MINUS_DM(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, int __pyx_v_timeperiod); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_590stream_MOM(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_592stream_MULT(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real0, PyArrayObject *__pyx_v_real1); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_594stream_NATR(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_8c_ta_lib_596stream_OBV(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, PyArrayObject *__pyx_v_volume); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_598stream_PLUS_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_8c_ta_lib_600stream_PLUS_DM(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, int __pyx_v_timeperiod); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_602stream_PPO(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_8c_ta_lib_604stream_ROC(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_606stream_ROCP(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_608stream_ROCR(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_610stream_ROCR100(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_612stream_RSI(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_614stream_SAR(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_8c_ta_lib_616stream_SAREXT(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_8c_ta_lib_618stream_SIN(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_620stream_SINH(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_622stream_SMA(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_624stream_SQRT(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_626stream_STDDEV(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod, double __pyx_v_nbdev); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_628stream_STOCH(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_8c_ta_lib_630stream_STOCHF(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_8c_ta_lib_632stream_STOCHRSI(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_8c_ta_lib_634stream_SUB(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real0, PyArrayObject *__pyx_v_real1); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_636stream_SUM(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_638stream_T3(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod, double __pyx_v_vfactor); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_640stream_TAN(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_642stream_TANH(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_644stream_TEMA(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_646stream_TRANGE(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_648stream_TRIMA(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_650stream_TRIX(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_652stream_TSF(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_654stream_TYPPRICE(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_656stream_ULTOSC(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_8c_ta_lib_658stream_VAR(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod, double __pyx_v_nbdev); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_660stream_WCLPRICE(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close); /* proto */ +static PyObject *__pyx_pf_5talib_8c_ta_lib_662stream_WILLR(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_8c_ta_lib_664stream_WMA(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 __Pyx_CachedCFunction __pyx_umethod_PyDict_Type_keys = {0, &__pyx_n_s_keys, 0, 0, 0}; +static PyObject *__pyx_int_0; +static PyObject *__pyx_int_1; +static PyObject *__pyx_int_2; +static PyObject *__pyx_int_3; +static PyObject *__pyx_int_4; +static PyObject *__pyx_int_5; +static PyObject *__pyx_int_6; +static PyObject *__pyx_int_7; +static PyObject *__pyx_int_8; +static PyObject *__pyx_int_9; +static PyObject *__pyx_int_10; +static PyObject *__pyx_int_11; +static PyObject *__pyx_int_12; +static PyObject *__pyx_int_13; +static PyObject *__pyx_int_14; +static PyObject *__pyx_int_15; +static PyObject *__pyx_int_16; +static PyObject *__pyx_int_32; +static PyObject *__pyx_int_64; +static PyObject *__pyx_int_128; +static PyObject *__pyx_int_256; +static PyObject *__pyx_int_512; +static PyObject *__pyx_int_1024; +static PyObject *__pyx_int_2048; +static PyObject *__pyx_int_4096; +static PyObject *__pyx_int_5000; +static PyObject *__pyx_int_65535; +static PyObject *__pyx_int_16777216; +static PyObject *__pyx_int_67108864; +static PyObject *__pyx_int_134217728; +static PyObject *__pyx_int_268435456; +static PyObject *__pyx_int_neg_1; +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__1056; +static PyObject *__pyx_tuple__1057; +static PyObject *__pyx_tuple__1058; +static PyObject *__pyx_tuple__1059; +static PyObject *__pyx_tuple__1060; +static PyObject *__pyx_tuple__1061; +static PyObject *__pyx_tuple__1062; +static PyObject *__pyx_tuple__1063; +static PyObject *__pyx_tuple__1064; +static PyObject *__pyx_tuple__1065; +static PyObject *__pyx_tuple__1066; +static PyObject *__pyx_tuple__1067; +static PyObject *__pyx_tuple__1068; +static PyObject *__pyx_tuple__1069; +static PyObject *__pyx_tuple__1070; +static PyObject *__pyx_tuple__1071; +static PyObject *__pyx_tuple__1072; +static PyObject *__pyx_tuple__1073; +static PyObject *__pyx_tuple__1074; +static PyObject *__pyx_tuple__1075; +static PyObject *__pyx_tuple__1076; +static PyObject *__pyx_tuple__1077; +static PyObject *__pyx_tuple__1078; +static PyObject *__pyx_tuple__1079; +static PyObject *__pyx_tuple__1080; +static PyObject *__pyx_tuple__1081; +static PyObject *__pyx_tuple__1082; +static PyObject *__pyx_tuple__1083; +static PyObject *__pyx_tuple__1084; +static PyObject *__pyx_tuple__1085; +static PyObject *__pyx_tuple__1086; +static PyObject *__pyx_tuple__1087; +static PyObject *__pyx_tuple__1088; +static PyObject *__pyx_tuple__1089; +static PyObject *__pyx_tuple__1090; +static PyObject *__pyx_tuple__1091; +static PyObject *__pyx_tuple__1092; +static PyObject *__pyx_tuple__1093; +static PyObject *__pyx_tuple__1094; +static PyObject *__pyx_tuple__1095; +static PyObject *__pyx_tuple__1096; +static PyObject *__pyx_tuple__1097; +static PyObject *__pyx_tuple__1098; +static PyObject *__pyx_tuple__1099; +static PyObject *__pyx_tuple__1100; +static PyObject *__pyx_tuple__1101; +static PyObject *__pyx_tuple__1102; +static PyObject *__pyx_tuple__1103; +static PyObject *__pyx_tuple__1104; +static PyObject *__pyx_tuple__1105; +static PyObject *__pyx_tuple__1106; +static PyObject *__pyx_tuple__1107; +static PyObject *__pyx_tuple__1108; +static PyObject *__pyx_tuple__1109; +static PyObject *__pyx_tuple__1110; +static PyObject *__pyx_tuple__1111; +static PyObject *__pyx_tuple__1112; +static PyObject *__pyx_tuple__1113; +static PyObject *__pyx_tuple__1114; +static PyObject *__pyx_tuple__1115; +static PyObject *__pyx_tuple__1116; +static PyObject *__pyx_tuple__1117; +static PyObject *__pyx_tuple__1118; +static PyObject *__pyx_tuple__1119; +static PyObject *__pyx_tuple__1120; +static PyObject *__pyx_tuple__1121; +static PyObject *__pyx_tuple__1122; +static PyObject *__pyx_tuple__1123; +static PyObject *__pyx_tuple__1124; +static PyObject *__pyx_tuple__1125; +static PyObject *__pyx_tuple__1126; +static PyObject *__pyx_tuple__1127; +static PyObject *__pyx_tuple__1128; +static PyObject *__pyx_tuple__1129; +static PyObject *__pyx_tuple__1130; +static PyObject *__pyx_tuple__1131; +static PyObject *__pyx_tuple__1132; +static PyObject *__pyx_tuple__1133; +static PyObject *__pyx_tuple__1134; +static PyObject *__pyx_tuple__1135; +static PyObject *__pyx_tuple__1136; +static PyObject *__pyx_tuple__1137; +static PyObject *__pyx_tuple__1138; +static PyObject *__pyx_tuple__1139; +static PyObject *__pyx_tuple__1140; +static PyObject *__pyx_tuple__1141; +static PyObject *__pyx_tuple__1142; +static PyObject *__pyx_tuple__1143; +static PyObject *__pyx_tuple__1144; +static PyObject *__pyx_tuple__1145; +static PyObject *__pyx_tuple__1146; +static PyObject *__pyx_tuple__1147; +static PyObject *__pyx_tuple__1148; +static PyObject *__pyx_tuple__1149; +static PyObject *__pyx_tuple__1150; +static PyObject *__pyx_tuple__1151; +static PyObject *__pyx_tuple__1152; +static PyObject *__pyx_tuple__1153; +static PyObject *__pyx_tuple__1154; +static PyObject *__pyx_tuple__1155; +static PyObject *__pyx_tuple__1156; +static PyObject *__pyx_tuple__1157; +static PyObject *__pyx_tuple__1158; +static PyObject *__pyx_tuple__1159; +static PyObject *__pyx_tuple__1160; +static PyObject *__pyx_tuple__1161; +static PyObject *__pyx_tuple__1162; +static PyObject *__pyx_tuple__1163; +static PyObject *__pyx_tuple__1164; +static PyObject *__pyx_tuple__1165; +static PyObject *__pyx_tuple__1166; +static PyObject *__pyx_tuple__1167; +static PyObject *__pyx_tuple__1168; +static PyObject *__pyx_tuple__1169; +static PyObject *__pyx_tuple__1170; +static PyObject *__pyx_tuple__1171; +static PyObject *__pyx_tuple__1172; +static PyObject *__pyx_tuple__1173; +static PyObject *__pyx_tuple__1174; +static PyObject *__pyx_tuple__1175; +static PyObject *__pyx_tuple__1176; +static PyObject *__pyx_tuple__1177; +static PyObject *__pyx_tuple__1178; +static PyObject *__pyx_tuple__1179; +static PyObject *__pyx_tuple__1180; +static PyObject *__pyx_tuple__1181; +static PyObject *__pyx_tuple__1182; +static PyObject *__pyx_tuple__1183; +static PyObject *__pyx_tuple__1184; +static PyObject *__pyx_tuple__1185; +static PyObject *__pyx_tuple__1186; +static PyObject *__pyx_tuple__1187; +static PyObject *__pyx_tuple__1188; +static PyObject *__pyx_tuple__1189; +static PyObject *__pyx_tuple__1190; +static PyObject *__pyx_tuple__1191; +static PyObject *__pyx_tuple__1192; +static PyObject *__pyx_tuple__1193; +static PyObject *__pyx_tuple__1194; +static PyObject *__pyx_tuple__1195; +static PyObject *__pyx_tuple__1196; +static PyObject *__pyx_tuple__1197; +static PyObject *__pyx_tuple__1198; +static PyObject *__pyx_tuple__1199; +static PyObject *__pyx_tuple__1200; +static PyObject *__pyx_tuple__1201; +static PyObject *__pyx_tuple__1202; +static PyObject *__pyx_tuple__1203; +static PyObject *__pyx_tuple__1204; +static PyObject *__pyx_tuple__1205; +static PyObject *__pyx_tuple__1206; +static PyObject *__pyx_tuple__1207; +static PyObject *__pyx_tuple__1208; +static PyObject *__pyx_tuple__1209; +static PyObject *__pyx_tuple__1210; +static PyObject *__pyx_tuple__1213; +static PyObject *__pyx_tuple__1218; +static PyObject *__pyx_tuple__1219; +static PyObject *__pyx_tuple__1220; +static PyObject *__pyx_tuple__1221; +static PyObject *__pyx_tuple__1222; +static PyObject *__pyx_tuple__1223; +static PyObject *__pyx_tuple__1224; +static PyObject *__pyx_tuple__1225; +static PyObject *__pyx_tuple__1226; +static PyObject *__pyx_tuple__1227; +static PyObject *__pyx_tuple__1228; +static PyObject *__pyx_tuple__1229; +static PyObject *__pyx_tuple__1230; +static PyObject *__pyx_tuple__1231; +static PyObject *__pyx_tuple__1232; +static PyObject *__pyx_tuple__1233; +static PyObject *__pyx_tuple__1234; +static PyObject *__pyx_tuple__1235; +static PyObject *__pyx_tuple__1236; +static PyObject *__pyx_tuple__1237; +static PyObject *__pyx_tuple__1238; +static PyObject *__pyx_tuple__1239; +static PyObject *__pyx_tuple__1240; +static PyObject *__pyx_tuple__1241; +static PyObject *__pyx_tuple__1242; +static PyObject *__pyx_tuple__1243; +static PyObject *__pyx_tuple__1244; +static PyObject *__pyx_tuple__1245; +static PyObject *__pyx_tuple__1246; +static PyObject *__pyx_tuple__1247; +static PyObject *__pyx_tuple__1248; +static PyObject *__pyx_tuple__1249; +static PyObject *__pyx_tuple__1250; +static PyObject *__pyx_tuple__1251; +static PyObject *__pyx_tuple__1252; +static PyObject *__pyx_tuple__1253; +static PyObject *__pyx_tuple__1254; +static PyObject *__pyx_tuple__1255; +static PyObject *__pyx_tuple__1256; +static PyObject *__pyx_tuple__1257; +static PyObject *__pyx_tuple__1258; +static PyObject *__pyx_tuple__1259; +static PyObject *__pyx_tuple__1260; +static PyObject *__pyx_tuple__1261; +static PyObject *__pyx_tuple__1262; +static PyObject *__pyx_tuple__1263; +static PyObject *__pyx_tuple__1264; +static PyObject *__pyx_tuple__1265; +static PyObject *__pyx_tuple__1266; +static PyObject *__pyx_tuple__1267; +static PyObject *__pyx_tuple__1268; +static PyObject *__pyx_tuple__1269; +static PyObject *__pyx_tuple__1270; +static PyObject *__pyx_tuple__1271; +static PyObject *__pyx_tuple__1272; +static PyObject *__pyx_tuple__1273; +static PyObject *__pyx_tuple__1274; +static PyObject *__pyx_tuple__1275; +static PyObject *__pyx_tuple__1276; +static PyObject *__pyx_tuple__1277; +static PyObject *__pyx_tuple__1278; +static PyObject *__pyx_tuple__1279; +static PyObject *__pyx_tuple__1280; +static PyObject *__pyx_tuple__1281; +static PyObject *__pyx_tuple__1282; +static PyObject *__pyx_tuple__1283; +static PyObject *__pyx_tuple__1284; +static PyObject *__pyx_tuple__1285; +static PyObject *__pyx_tuple__1286; +static PyObject *__pyx_tuple__1287; +static PyObject *__pyx_tuple__1288; +static PyObject *__pyx_tuple__1289; +static PyObject *__pyx_tuple__1290; +static PyObject *__pyx_tuple__1291; +static PyObject *__pyx_tuple__1292; +static PyObject *__pyx_tuple__1293; +static PyObject *__pyx_tuple__1294; +static PyObject *__pyx_tuple__1295; +static PyObject *__pyx_tuple__1296; +static PyObject *__pyx_tuple__1297; +static PyObject *__pyx_tuple__1298; +static PyObject *__pyx_tuple__1299; +static PyObject *__pyx_tuple__1300; +static PyObject *__pyx_tuple__1301; +static PyObject *__pyx_tuple__1302; +static PyObject *__pyx_tuple__1303; +static PyObject *__pyx_tuple__1304; +static PyObject *__pyx_tuple__1305; +static PyObject *__pyx_tuple__1306; +static PyObject *__pyx_tuple__1307; +static PyObject *__pyx_tuple__1308; +static PyObject *__pyx_tuple__1309; +static PyObject *__pyx_tuple__1310; +static PyObject *__pyx_tuple__1311; +static PyObject *__pyx_tuple__1312; +static PyObject *__pyx_tuple__1313; +static PyObject *__pyx_tuple__1314; +static PyObject *__pyx_tuple__1315; +static PyObject *__pyx_tuple__1316; +static PyObject *__pyx_tuple__1317; +static PyObject *__pyx_tuple__1318; +static PyObject *__pyx_tuple__1319; +static PyObject *__pyx_tuple__1320; +static PyObject *__pyx_tuple__1321; +static PyObject *__pyx_tuple__1322; +static PyObject *__pyx_tuple__1323; +static PyObject *__pyx_tuple__1324; +static PyObject *__pyx_tuple__1325; +static PyObject *__pyx_tuple__1326; +static PyObject *__pyx_tuple__1327; +static PyObject *__pyx_tuple__1328; +static PyObject *__pyx_tuple__1329; +static PyObject *__pyx_tuple__1330; +static PyObject *__pyx_tuple__1331; +static PyObject *__pyx_tuple__1332; +static PyObject *__pyx_tuple__1333; +static PyObject *__pyx_tuple__1334; +static PyObject *__pyx_tuple__1335; +static PyObject *__pyx_tuple__1336; +static PyObject *__pyx_tuple__1337; +static PyObject *__pyx_tuple__1338; +static PyObject *__pyx_tuple__1339; +static PyObject *__pyx_tuple__1340; +static PyObject *__pyx_tuple__1341; +static PyObject *__pyx_tuple__1342; +static PyObject *__pyx_tuple__1343; +static PyObject *__pyx_tuple__1344; +static PyObject *__pyx_tuple__1345; +static PyObject *__pyx_tuple__1346; +static PyObject *__pyx_tuple__1347; +static PyObject *__pyx_tuple__1348; +static PyObject *__pyx_tuple__1349; +static PyObject *__pyx_tuple__1350; +static PyObject *__pyx_tuple__1351; +static PyObject *__pyx_tuple__1352; +static PyObject *__pyx_tuple__1353; +static PyObject *__pyx_tuple__1354; +static PyObject *__pyx_tuple__1355; +static PyObject *__pyx_tuple__1356; +static PyObject *__pyx_tuple__1357; +static PyObject *__pyx_tuple__1358; +static PyObject *__pyx_tuple__1359; +static PyObject *__pyx_tuple__1360; +static PyObject *__pyx_tuple__1361; +static PyObject *__pyx_tuple__1362; +static PyObject *__pyx_tuple__1363; +static PyObject *__pyx_tuple__1364; +static PyObject *__pyx_tuple__1365; +static PyObject *__pyx_tuple__1366; +static PyObject *__pyx_tuple__1367; +static PyObject *__pyx_tuple__1368; +static PyObject *__pyx_tuple__1369; +static PyObject *__pyx_tuple__1370; +static PyObject *__pyx_tuple__1371; +static PyObject *__pyx_tuple__1372; +static PyObject *__pyx_tuple__1373; +static PyObject *__pyx_tuple__1374; +static PyObject *__pyx_tuple__1375; +static PyObject *__pyx_tuple__1376; +static PyObject *__pyx_tuple__1377; +static PyObject *__pyx_tuple__1378; +static PyObject *__pyx_tuple__1379; +static PyObject *__pyx_tuple__1380; +static PyObject *__pyx_tuple__1381; +static PyObject *__pyx_tuple__1382; +static PyObject *__pyx_tuple__1383; +static PyObject *__pyx_tuple__1384; +static PyObject *__pyx_tuple__1385; +static PyObject *__pyx_tuple__1386; +static PyObject *__pyx_tuple__1387; +static PyObject *__pyx_tuple__1388; +static PyObject *__pyx_tuple__1389; +static PyObject *__pyx_tuple__1390; +static PyObject *__pyx_tuple__1391; +static PyObject *__pyx_tuple__1392; +static PyObject *__pyx_tuple__1393; +static PyObject *__pyx_tuple__1394; +static PyObject *__pyx_tuple__1395; +static PyObject *__pyx_tuple__1396; +static PyObject *__pyx_tuple__1397; +static PyObject *__pyx_tuple__1398; +static PyObject *__pyx_tuple__1399; +static PyObject *__pyx_tuple__1400; +static PyObject *__pyx_tuple__1401; +static PyObject *__pyx_tuple__1402; +static PyObject *__pyx_tuple__1403; +static PyObject *__pyx_tuple__1404; +static PyObject *__pyx_tuple__1405; +static PyObject *__pyx_tuple__1406; +static PyObject *__pyx_tuple__1407; +static PyObject *__pyx_tuple__1408; +static PyObject *__pyx_tuple__1409; +static PyObject *__pyx_tuple__1410; +static PyObject *__pyx_tuple__1411; +static PyObject *__pyx_tuple__1412; +static PyObject *__pyx_tuple__1413; +static PyObject *__pyx_tuple__1414; +static PyObject *__pyx_tuple__1415; +static PyObject *__pyx_tuple__1416; +static PyObject *__pyx_tuple__1417; +static PyObject *__pyx_tuple__1418; +static PyObject *__pyx_tuple__1419; +static PyObject *__pyx_tuple__1420; +static PyObject *__pyx_tuple__1421; +static PyObject *__pyx_tuple__1422; +static PyObject *__pyx_tuple__1423; +static PyObject *__pyx_tuple__1424; +static PyObject *__pyx_tuple__1425; +static PyObject *__pyx_tuple__1426; +static PyObject *__pyx_tuple__1427; +static PyObject *__pyx_tuple__1428; +static PyObject *__pyx_tuple__1429; +static PyObject *__pyx_tuple__1430; +static PyObject *__pyx_tuple__1431; +static PyObject *__pyx_tuple__1432; +static PyObject *__pyx_tuple__1433; +static PyObject *__pyx_tuple__1434; +static PyObject *__pyx_tuple__1435; +static PyObject *__pyx_tuple__1436; +static PyObject *__pyx_tuple__1437; +static PyObject *__pyx_tuple__1438; +static PyObject *__pyx_tuple__1439; +static PyObject *__pyx_tuple__1440; +static PyObject *__pyx_tuple__1441; +static PyObject *__pyx_tuple__1442; +static PyObject *__pyx_tuple__1443; +static PyObject *__pyx_tuple__1444; +static PyObject *__pyx_tuple__1445; +static PyObject *__pyx_tuple__1446; +static PyObject *__pyx_tuple__1447; +static PyObject *__pyx_tuple__1448; +static PyObject *__pyx_tuple__1449; +static PyObject *__pyx_tuple__1450; +static PyObject *__pyx_tuple__1451; +static PyObject *__pyx_tuple__1452; +static PyObject *__pyx_tuple__1453; +static PyObject *__pyx_tuple__1454; +static PyObject *__pyx_tuple__1455; +static PyObject *__pyx_tuple__1456; +static PyObject *__pyx_tuple__1457; +static PyObject *__pyx_tuple__1458; +static PyObject *__pyx_tuple__1459; +static PyObject *__pyx_tuple__1460; +static PyObject *__pyx_tuple__1461; +static PyObject *__pyx_tuple__1462; +static PyObject *__pyx_tuple__1463; +static PyObject *__pyx_tuple__1464; +static PyObject *__pyx_tuple__1465; +static PyObject *__pyx_tuple__1466; +static PyObject *__pyx_tuple__1467; +static PyObject *__pyx_tuple__1468; +static PyObject *__pyx_tuple__1469; +static PyObject *__pyx_tuple__1470; +static PyObject *__pyx_tuple__1471; +static PyObject *__pyx_tuple__1472; +static PyObject *__pyx_tuple__1473; +static PyObject *__pyx_tuple__1474; +static PyObject *__pyx_tuple__1475; +static PyObject *__pyx_tuple__1476; +static PyObject *__pyx_tuple__1477; +static PyObject *__pyx_tuple__1478; +static PyObject *__pyx_tuple__1479; +static PyObject *__pyx_tuple__1480; +static PyObject *__pyx_tuple__1481; +static PyObject *__pyx_tuple__1482; +static PyObject *__pyx_tuple__1483; +static PyObject *__pyx_tuple__1484; +static PyObject *__pyx_tuple__1485; +static PyObject *__pyx_tuple__1486; +static PyObject *__pyx_tuple__1487; +static PyObject *__pyx_tuple__1488; +static PyObject *__pyx_tuple__1489; +static PyObject *__pyx_tuple__1490; +static PyObject *__pyx_tuple__1491; +static PyObject *__pyx_tuple__1492; +static PyObject *__pyx_tuple__1493; +static PyObject *__pyx_tuple__1494; +static PyObject *__pyx_tuple__1495; +static PyObject *__pyx_tuple__1496; +static PyObject *__pyx_tuple__1497; +static PyObject *__pyx_tuple__1498; +static PyObject *__pyx_tuple__1499; +static PyObject *__pyx_tuple__1500; +static PyObject *__pyx_tuple__1501; +static PyObject *__pyx_tuple__1502; +static PyObject *__pyx_tuple__1503; +static PyObject *__pyx_tuple__1504; +static PyObject *__pyx_tuple__1505; +static PyObject *__pyx_tuple__1506; +static PyObject *__pyx_tuple__1507; +static PyObject *__pyx_tuple__1508; +static PyObject *__pyx_tuple__1509; +static PyObject *__pyx_tuple__1510; +static PyObject *__pyx_tuple__1511; +static PyObject *__pyx_tuple__1512; +static PyObject *__pyx_tuple__1513; +static PyObject *__pyx_tuple__1514; +static PyObject *__pyx_tuple__1515; +static PyObject *__pyx_tuple__1516; +static PyObject *__pyx_tuple__1517; +static PyObject *__pyx_tuple__1518; +static PyObject *__pyx_tuple__1519; +static PyObject *__pyx_tuple__1520; +static PyObject *__pyx_tuple__1521; +static PyObject *__pyx_tuple__1522; +static PyObject *__pyx_tuple__1523; +static PyObject *__pyx_tuple__1524; +static PyObject *__pyx_tuple__1525; +static PyObject *__pyx_tuple__1526; +static PyObject *__pyx_tuple__1527; +static PyObject *__pyx_tuple__1528; +static PyObject *__pyx_tuple__1529; +static PyObject *__pyx_tuple__1530; +static PyObject *__pyx_tuple__1531; +static PyObject *__pyx_tuple__1532; +static PyObject *__pyx_tuple__1533; +static PyObject *__pyx_tuple__1534; +static PyObject *__pyx_tuple__1535; +static PyObject *__pyx_tuple__1536; +static PyObject *__pyx_tuple__1537; +static PyObject *__pyx_tuple__1538; +static PyObject *__pyx_tuple__1539; +static PyObject *__pyx_tuple__1540; +static PyObject *__pyx_tuple__1541; +static PyObject *__pyx_tuple__1542; +static PyObject *__pyx_tuple__1543; +static PyObject *__pyx_tuple__1544; +static PyObject *__pyx_tuple__1545; +static PyObject *__pyx_tuple__1546; +static PyObject *__pyx_tuple__1547; +static PyObject *__pyx_tuple__1548; +static PyObject *__pyx_tuple__1549; +static PyObject *__pyx_tuple__1550; +static PyObject *__pyx_tuple__1551; +static PyObject *__pyx_tuple__1552; +static PyObject *__pyx_tuple__1553; +static PyObject *__pyx_tuple__1554; +static PyObject *__pyx_tuple__1555; +static PyObject *__pyx_tuple__1556; +static PyObject *__pyx_tuple__1557; +static PyObject *__pyx_tuple__1558; +static PyObject *__pyx_tuple__1559; +static PyObject *__pyx_tuple__1560; +static PyObject *__pyx_tuple__1561; +static PyObject *__pyx_tuple__1562; +static PyObject *__pyx_tuple__1563; +static PyObject *__pyx_tuple__1564; +static PyObject *__pyx_tuple__1565; +static PyObject *__pyx_tuple__1566; +static PyObject *__pyx_tuple__1567; +static PyObject *__pyx_tuple__1568; +static PyObject *__pyx_tuple__1569; +static PyObject *__pyx_tuple__1570; +static PyObject *__pyx_tuple__1571; +static PyObject *__pyx_tuple__1572; +static PyObject *__pyx_tuple__1573; +static PyObject *__pyx_tuple__1574; +static PyObject *__pyx_tuple__1575; +static PyObject *__pyx_tuple__1576; +static PyObject *__pyx_tuple__1577; +static PyObject *__pyx_tuple__1578; +static PyObject *__pyx_tuple__1579; +static PyObject *__pyx_tuple__1580; +static PyObject *__pyx_tuple__1581; +static PyObject *__pyx_tuple__1582; +static PyObject *__pyx_tuple__1583; +static PyObject *__pyx_tuple__1584; +static PyObject *__pyx_tuple__1585; +static PyObject *__pyx_tuple__1586; +static PyObject *__pyx_tuple__1587; +static PyObject *__pyx_tuple__1588; +static PyObject *__pyx_tuple__1589; +static PyObject *__pyx_tuple__1590; +static PyObject *__pyx_tuple__1591; +static PyObject *__pyx_tuple__1592; +static PyObject *__pyx_tuple__1593; +static PyObject *__pyx_tuple__1594; +static PyObject *__pyx_tuple__1595; +static PyObject *__pyx_tuple__1596; +static PyObject *__pyx_tuple__1597; +static PyObject *__pyx_tuple__1598; +static PyObject *__pyx_tuple__1599; +static PyObject *__pyx_tuple__1600; +static PyObject *__pyx_tuple__1601; +static PyObject *__pyx_tuple__1602; +static PyObject *__pyx_tuple__1603; +static PyObject *__pyx_tuple__1604; +static PyObject *__pyx_tuple__1605; +static PyObject *__pyx_tuple__1606; +static PyObject *__pyx_tuple__1607; +static PyObject *__pyx_tuple__1608; +static PyObject *__pyx_tuple__1609; +static PyObject *__pyx_tuple__1610; +static PyObject *__pyx_tuple__1611; +static PyObject *__pyx_tuple__1612; +static PyObject *__pyx_tuple__1613; +static PyObject *__pyx_tuple__1614; +static PyObject *__pyx_tuple__1615; +static PyObject *__pyx_tuple__1616; +static PyObject *__pyx_tuple__1617; +static PyObject *__pyx_tuple__1618; +static PyObject *__pyx_tuple__1619; +static PyObject *__pyx_tuple__1620; +static PyObject *__pyx_tuple__1621; +static PyObject *__pyx_tuple__1622; +static PyObject *__pyx_tuple__1623; +static PyObject *__pyx_tuple__1624; +static PyObject *__pyx_tuple__1625; +static PyObject *__pyx_tuple__1626; +static PyObject *__pyx_tuple__1627; +static PyObject *__pyx_tuple__1628; +static PyObject *__pyx_tuple__1629; +static PyObject *__pyx_tuple__1630; +static PyObject *__pyx_tuple__1631; +static PyObject *__pyx_tuple__1632; +static PyObject *__pyx_tuple__1633; +static PyObject *__pyx_tuple__1634; +static PyObject *__pyx_tuple__1635; +static PyObject *__pyx_tuple__1636; +static PyObject *__pyx_tuple__1637; +static PyObject *__pyx_tuple__1638; +static PyObject *__pyx_tuple__1639; +static PyObject *__pyx_tuple__1640; +static PyObject *__pyx_tuple__1641; +static PyObject *__pyx_tuple__1642; +static PyObject *__pyx_tuple__1643; +static PyObject *__pyx_tuple__1644; +static PyObject *__pyx_tuple__1645; +static PyObject *__pyx_tuple__1646; +static PyObject *__pyx_tuple__1647; +static PyObject *__pyx_tuple__1648; +static PyObject *__pyx_tuple__1649; +static PyObject *__pyx_tuple__1650; +static PyObject *__pyx_tuple__1651; +static PyObject *__pyx_tuple__1652; +static PyObject *__pyx_tuple__1653; +static PyObject *__pyx_tuple__1654; +static PyObject *__pyx_tuple__1655; +static PyObject *__pyx_tuple__1656; +static PyObject *__pyx_tuple__1657; +static PyObject *__pyx_tuple__1658; +static PyObject *__pyx_tuple__1659; +static PyObject *__pyx_tuple__1660; +static PyObject *__pyx_tuple__1661; +static PyObject *__pyx_tuple__1662; +static PyObject *__pyx_tuple__1663; +static PyObject *__pyx_tuple__1664; +static PyObject *__pyx_tuple__1665; +static PyObject *__pyx_tuple__1666; +static PyObject *__pyx_tuple__1667; +static PyObject *__pyx_tuple__1668; +static PyObject *__pyx_tuple__1669; +static PyObject *__pyx_tuple__1670; +static PyObject *__pyx_tuple__1671; +static PyObject *__pyx_tuple__1672; +static PyObject *__pyx_tuple__1673; +static PyObject *__pyx_tuple__1674; +static PyObject *__pyx_tuple__1675; +static PyObject *__pyx_tuple__1676; +static PyObject *__pyx_tuple__1677; +static PyObject *__pyx_tuple__1678; +static PyObject *__pyx_tuple__1679; +static PyObject *__pyx_tuple__1680; +static PyObject *__pyx_tuple__1681; +static PyObject *__pyx_tuple__1682; +static PyObject *__pyx_tuple__1683; +static PyObject *__pyx_tuple__1684; +static PyObject *__pyx_tuple__1685; +static PyObject *__pyx_tuple__1686; +static PyObject *__pyx_tuple__1687; +static PyObject *__pyx_tuple__1688; +static PyObject *__pyx_tuple__1689; +static PyObject *__pyx_tuple__1690; +static PyObject *__pyx_tuple__1691; +static PyObject *__pyx_tuple__1692; +static PyObject *__pyx_tuple__1693; +static PyObject *__pyx_tuple__1694; +static PyObject *__pyx_tuple__1695; +static PyObject *__pyx_tuple__1696; +static PyObject *__pyx_tuple__1697; +static PyObject *__pyx_tuple__1698; +static PyObject *__pyx_tuple__1699; +static PyObject *__pyx_tuple__1700; +static PyObject *__pyx_tuple__1701; +static PyObject *__pyx_tuple__1702; +static PyObject *__pyx_tuple__1703; +static PyObject *__pyx_tuple__1704; +static PyObject *__pyx_tuple__1705; +static PyObject *__pyx_tuple__1706; +static PyObject *__pyx_tuple__1707; +static PyObject *__pyx_tuple__1708; +static PyObject *__pyx_tuple__1709; +static PyObject *__pyx_tuple__1710; +static PyObject *__pyx_tuple__1711; +static PyObject *__pyx_tuple__1712; +static PyObject *__pyx_tuple__1713; +static PyObject *__pyx_tuple__1714; +static PyObject *__pyx_tuple__1715; +static PyObject *__pyx_tuple__1716; +static PyObject *__pyx_tuple__1717; +static PyObject *__pyx_tuple__1718; +static PyObject *__pyx_tuple__1719; +static PyObject *__pyx_tuple__1720; +static PyObject *__pyx_tuple__1721; +static PyObject *__pyx_tuple__1722; +static PyObject *__pyx_tuple__1723; +static PyObject *__pyx_tuple__1724; +static PyObject *__pyx_tuple__1725; +static PyObject *__pyx_tuple__1726; +static PyObject *__pyx_tuple__1727; +static PyObject *__pyx_tuple__1728; +static PyObject *__pyx_tuple__1729; +static PyObject *__pyx_tuple__1730; +static PyObject *__pyx_tuple__1731; +static PyObject *__pyx_tuple__1732; +static PyObject *__pyx_tuple__1733; +static PyObject *__pyx_tuple__1734; +static PyObject *__pyx_tuple__1735; +static PyObject *__pyx_tuple__1736; +static PyObject *__pyx_tuple__1737; +static PyObject *__pyx_tuple__1738; +static PyObject *__pyx_tuple__1739; +static PyObject *__pyx_tuple__1740; +static PyObject *__pyx_tuple__1741; +static PyObject *__pyx_tuple__1742; +static PyObject *__pyx_tuple__1743; +static PyObject *__pyx_tuple__1744; +static PyObject *__pyx_tuple__1745; +static PyObject *__pyx_tuple__1746; +static PyObject *__pyx_tuple__1747; +static PyObject *__pyx_tuple__1748; +static PyObject *__pyx_tuple__1749; +static PyObject *__pyx_tuple__1750; +static PyObject *__pyx_tuple__1751; +static PyObject *__pyx_tuple__1752; +static PyObject *__pyx_tuple__1753; +static PyObject *__pyx_tuple__1754; +static PyObject *__pyx_tuple__1755; +static PyObject *__pyx_tuple__1756; +static PyObject *__pyx_tuple__1757; +static PyObject *__pyx_tuple__1758; +static PyObject *__pyx_tuple__1759; +static PyObject *__pyx_tuple__1760; +static PyObject *__pyx_tuple__1761; +static PyObject *__pyx_tuple__1762; +static PyObject *__pyx_tuple__1763; +static PyObject *__pyx_tuple__1764; +static PyObject *__pyx_tuple__1765; +static PyObject *__pyx_tuple__1766; +static PyObject *__pyx_tuple__1767; +static PyObject *__pyx_tuple__1768; +static PyObject *__pyx_tuple__1769; +static PyObject *__pyx_tuple__1770; +static PyObject *__pyx_tuple__1771; +static PyObject *__pyx_tuple__1772; +static PyObject *__pyx_tuple__1773; +static PyObject *__pyx_tuple__1774; +static PyObject *__pyx_tuple__1775; +static PyObject *__pyx_tuple__1776; +static PyObject *__pyx_tuple__1777; +static PyObject *__pyx_tuple__1778; +static PyObject *__pyx_tuple__1779; +static PyObject *__pyx_tuple__1780; +static PyObject *__pyx_tuple__1781; +static PyObject *__pyx_tuple__1782; +static PyObject *__pyx_tuple__1783; +static PyObject *__pyx_tuple__1784; +static PyObject *__pyx_tuple__1785; +static PyObject *__pyx_tuple__1786; +static PyObject *__pyx_tuple__1787; +static PyObject *__pyx_tuple__1788; +static PyObject *__pyx_tuple__1789; +static PyObject *__pyx_tuple__1790; +static PyObject *__pyx_tuple__1791; +static PyObject *__pyx_tuple__1792; +static PyObject *__pyx_tuple__1793; +static PyObject *__pyx_tuple__1794; +static PyObject *__pyx_tuple__1795; +static PyObject *__pyx_tuple__1796; +static PyObject *__pyx_tuple__1797; +static PyObject *__pyx_tuple__1798; +static PyObject *__pyx_tuple__1799; +static PyObject *__pyx_tuple__1800; +static PyObject *__pyx_tuple__1801; +static PyObject *__pyx_tuple__1802; +static PyObject *__pyx_tuple__1803; +static PyObject *__pyx_tuple__1804; +static PyObject *__pyx_tuple__1805; +static PyObject *__pyx_tuple__1806; +static PyObject *__pyx_tuple__1807; +static PyObject *__pyx_tuple__1808; +static PyObject *__pyx_tuple__1809; +static PyObject *__pyx_tuple__1810; +static PyObject *__pyx_tuple__1811; +static PyObject *__pyx_tuple__1812; +static PyObject *__pyx_tuple__1813; +static PyObject *__pyx_tuple__1814; +static PyObject *__pyx_tuple__1815; +static PyObject *__pyx_tuple__1816; +static PyObject *__pyx_tuple__1817; +static PyObject *__pyx_tuple__1818; +static PyObject *__pyx_tuple__1819; +static PyObject *__pyx_tuple__1820; +static PyObject *__pyx_tuple__1821; +static PyObject *__pyx_tuple__1822; +static PyObject *__pyx_tuple__1823; +static PyObject *__pyx_tuple__1824; +static PyObject *__pyx_tuple__1825; +static PyObject *__pyx_tuple__1826; +static PyObject *__pyx_tuple__1827; +static PyObject *__pyx_tuple__1828; +static PyObject *__pyx_tuple__1829; +static PyObject *__pyx_tuple__1830; +static PyObject *__pyx_tuple__1831; +static PyObject *__pyx_tuple__1832; +static PyObject *__pyx_tuple__1833; +static PyObject *__pyx_tuple__1834; +static PyObject *__pyx_tuple__1835; +static PyObject *__pyx_tuple__1836; +static PyObject *__pyx_tuple__1837; +static PyObject *__pyx_tuple__1838; +static PyObject *__pyx_tuple__1839; +static PyObject *__pyx_tuple__1840; +static PyObject *__pyx_tuple__1841; +static PyObject *__pyx_tuple__1842; +static PyObject *__pyx_tuple__1843; +static PyObject *__pyx_tuple__1844; +static PyObject *__pyx_tuple__1845; +static PyObject *__pyx_tuple__1846; +static PyObject *__pyx_tuple__1847; +static PyObject *__pyx_tuple__1848; +static PyObject *__pyx_tuple__1849; +static PyObject *__pyx_tuple__1850; +static PyObject *__pyx_tuple__1851; +static PyObject *__pyx_tuple__1852; +static PyObject *__pyx_tuple__1853; +static PyObject *__pyx_tuple__1854; +static PyObject *__pyx_tuple__1855; +static PyObject *__pyx_tuple__1856; +static PyObject *__pyx_tuple__1857; +static PyObject *__pyx_tuple__1858; +static PyObject *__pyx_tuple__1859; +static PyObject *__pyx_tuple__1860; +static PyObject *__pyx_tuple__1861; +static PyObject *__pyx_tuple__1862; +static PyObject *__pyx_tuple__1863; +static PyObject *__pyx_tuple__1864; +static PyObject *__pyx_tuple__1865; +static PyObject *__pyx_tuple__1866; +static PyObject *__pyx_tuple__1867; +static PyObject *__pyx_tuple__1868; +static PyObject *__pyx_tuple__1869; +static PyObject *__pyx_tuple__1870; +static PyObject *__pyx_tuple__1871; +static PyObject *__pyx_tuple__1872; +static PyObject *__pyx_tuple__1873; +static PyObject *__pyx_tuple__1874; +static PyObject *__pyx_tuple__1875; +static PyObject *__pyx_tuple__1876; +static PyObject *__pyx_tuple__1877; +static PyObject *__pyx_tuple__1878; +static PyObject *__pyx_tuple__1879; +static PyObject *__pyx_tuple__1880; +static PyObject *__pyx_tuple__1881; +static PyObject *__pyx_tuple__1882; +static PyObject *__pyx_tuple__1883; +static PyObject *__pyx_tuple__1884; +static PyObject *__pyx_tuple__1885; +static PyObject *__pyx_tuple__1886; +static PyObject *__pyx_tuple__1887; +static PyObject *__pyx_tuple__1888; +static PyObject *__pyx_tuple__1889; +static PyObject *__pyx_tuple__1890; +static PyObject *__pyx_tuple__1891; +static PyObject *__pyx_tuple__1892; +static PyObject *__pyx_tuple__1893; +static PyObject *__pyx_tuple__1894; +static PyObject *__pyx_tuple__1895; +static PyObject *__pyx_tuple__1896; +static PyObject *__pyx_tuple__1897; +static PyObject *__pyx_tuple__1898; +static PyObject *__pyx_tuple__1899; +static PyObject *__pyx_tuple__1900; +static PyObject *__pyx_tuple__1901; +static PyObject *__pyx_tuple__1902; +static PyObject *__pyx_tuple__1903; +static PyObject *__pyx_tuple__1904; +static PyObject *__pyx_tuple__1905; +static PyObject *__pyx_tuple__1906; +static PyObject *__pyx_tuple__1907; +static PyObject *__pyx_tuple__1908; +static PyObject *__pyx_tuple__1909; +static PyObject *__pyx_tuple__1910; +static PyObject *__pyx_tuple__1911; +static PyObject *__pyx_tuple__1912; +static PyObject *__pyx_tuple__1913; +static PyObject *__pyx_tuple__1914; +static PyObject *__pyx_tuple__1915; +static PyObject *__pyx_tuple__1916; +static PyObject *__pyx_tuple__1917; +static PyObject *__pyx_tuple__1918; +static PyObject *__pyx_tuple__1919; +static PyObject *__pyx_tuple__1920; +static PyObject *__pyx_tuple__1921; +static PyObject *__pyx_tuple__1922; +static PyObject *__pyx_tuple__1923; +static PyObject *__pyx_tuple__1924; +static PyObject *__pyx_tuple__1925; +static PyObject *__pyx_tuple__1926; +static PyObject *__pyx_tuple__1927; +static PyObject *__pyx_tuple__1928; +static PyObject *__pyx_tuple__1929; +static PyObject *__pyx_tuple__1930; +static PyObject *__pyx_tuple__1931; +static PyObject *__pyx_tuple__1932; +static PyObject *__pyx_tuple__1933; +static PyObject *__pyx_tuple__1934; +static PyObject *__pyx_tuple__1935; +static PyObject *__pyx_tuple__1936; +static PyObject *__pyx_tuple__1937; +static PyObject *__pyx_tuple__1938; +static PyObject *__pyx_tuple__1939; +static PyObject *__pyx_tuple__1940; +static PyObject *__pyx_tuple__1941; +static PyObject *__pyx_tuple__1942; +static PyObject *__pyx_tuple__1943; +static PyObject *__pyx_tuple__1944; +static PyObject *__pyx_tuple__1945; +static PyObject *__pyx_tuple__1946; +static PyObject *__pyx_tuple__1947; +static PyObject *__pyx_tuple__1948; +static PyObject *__pyx_tuple__1949; +static PyObject *__pyx_tuple__1950; +static PyObject *__pyx_tuple__1951; +static PyObject *__pyx_tuple__1952; +static PyObject *__pyx_tuple__1953; +static PyObject *__pyx_tuple__1954; +static PyObject *__pyx_tuple__1955; +static PyObject *__pyx_tuple__1956; +static PyObject *__pyx_tuple__1957; +static PyObject *__pyx_tuple__1958; +static PyObject *__pyx_tuple__1959; +static PyObject *__pyx_tuple__1960; +static PyObject *__pyx_tuple__1961; +static PyObject *__pyx_tuple__1962; +static PyObject *__pyx_tuple__1963; +static PyObject *__pyx_tuple__1964; +static PyObject *__pyx_tuple__1965; +static PyObject *__pyx_tuple__1966; +static PyObject *__pyx_tuple__1967; +static PyObject *__pyx_tuple__1968; +static PyObject *__pyx_tuple__1969; +static PyObject *__pyx_tuple__1970; +static PyObject *__pyx_tuple__1971; +static PyObject *__pyx_tuple__1972; +static PyObject *__pyx_tuple__1973; +static PyObject *__pyx_tuple__1974; +static PyObject *__pyx_tuple__1975; +static PyObject *__pyx_tuple__1976; +static PyObject *__pyx_tuple__1977; +static PyObject *__pyx_tuple__1978; +static PyObject *__pyx_tuple__1979; +static PyObject *__pyx_tuple__1980; +static PyObject *__pyx_tuple__1981; +static PyObject *__pyx_tuple__1982; +static PyObject *__pyx_tuple__1983; +static PyObject *__pyx_tuple__1984; +static PyObject *__pyx_tuple__1985; +static PyObject *__pyx_tuple__1986; +static PyObject *__pyx_tuple__1987; +static PyObject *__pyx_tuple__1988; +static PyObject *__pyx_tuple__1989; +static PyObject *__pyx_tuple__1990; +static PyObject *__pyx_tuple__1991; +static PyObject *__pyx_tuple__1992; +static PyObject *__pyx_tuple__1993; +static PyObject *__pyx_tuple__1994; +static PyObject *__pyx_tuple__1995; +static PyObject *__pyx_tuple__1996; +static PyObject *__pyx_tuple__1997; +static PyObject *__pyx_tuple__1998; +static PyObject *__pyx_tuple__1999; +static PyObject *__pyx_tuple__2000; +static PyObject *__pyx_tuple__2001; +static PyObject *__pyx_tuple__2002; +static PyObject *__pyx_tuple__2003; +static PyObject *__pyx_tuple__2004; +static PyObject *__pyx_tuple__2005; +static PyObject *__pyx_tuple__2006; +static PyObject *__pyx_tuple__2007; +static PyObject *__pyx_tuple__2008; +static PyObject *__pyx_tuple__2009; +static PyObject *__pyx_tuple__2010; +static PyObject *__pyx_tuple__2011; +static PyObject *__pyx_tuple__2012; +static PyObject *__pyx_tuple__2013; +static PyObject *__pyx_tuple__2014; +static PyObject *__pyx_tuple__2015; +static PyObject *__pyx_tuple__2016; +static PyObject *__pyx_tuple__2017; +static PyObject *__pyx_tuple__2018; +static PyObject *__pyx_tuple__2019; +static PyObject *__pyx_tuple__2020; +static PyObject *__pyx_tuple__2021; +static PyObject *__pyx_tuple__2022; +static PyObject *__pyx_tuple__2023; +static PyObject *__pyx_tuple__2024; +static PyObject *__pyx_tuple__2025; +static PyObject *__pyx_tuple__2026; +static PyObject *__pyx_tuple__2027; +static PyObject *__pyx_tuple__2028; +static PyObject *__pyx_tuple__2029; +static PyObject *__pyx_tuple__2030; +static PyObject *__pyx_tuple__2031; +static PyObject *__pyx_tuple__2032; +static PyObject *__pyx_tuple__2033; +static PyObject *__pyx_tuple__2034; +static PyObject *__pyx_tuple__2035; +static PyObject *__pyx_tuple__2036; +static PyObject *__pyx_tuple__2037; +static PyObject *__pyx_tuple__2038; +static PyObject *__pyx_tuple__2039; +static PyObject *__pyx_tuple__2040; +static PyObject *__pyx_tuple__2041; +static PyObject *__pyx_tuple__2042; +static PyObject *__pyx_tuple__2043; +static PyObject *__pyx_tuple__2044; +static PyObject *__pyx_tuple__2045; +static PyObject *__pyx_tuple__2046; +static PyObject *__pyx_tuple__2047; +static PyObject *__pyx_tuple__2048; +static PyObject *__pyx_tuple__2049; +static PyObject *__pyx_tuple__2050; +static PyObject *__pyx_tuple__2051; +static PyObject *__pyx_tuple__2052; +static PyObject *__pyx_tuple__2053; +static PyObject *__pyx_tuple__2054; +static PyObject *__pyx_tuple__2055; +static PyObject *__pyx_tuple__2056; +static PyObject *__pyx_tuple__2057; +static PyObject *__pyx_tuple__2058; +static PyObject *__pyx_tuple__2059; +static PyObject *__pyx_tuple__2060; +static PyObject *__pyx_tuple__2061; +static PyObject *__pyx_tuple__2062; +static PyObject *__pyx_tuple__2063; +static PyObject *__pyx_tuple__2064; +static PyObject *__pyx_tuple__2065; +static PyObject *__pyx_tuple__2066; +static PyObject *__pyx_tuple__2067; +static PyObject *__pyx_tuple__2068; +static PyObject *__pyx_tuple__2069; +static PyObject *__pyx_tuple__2070; +static PyObject *__pyx_tuple__2071; +static PyObject *__pyx_tuple__2072; +static PyObject *__pyx_tuple__2073; +static PyObject *__pyx_tuple__2074; +static PyObject *__pyx_tuple__2075; +static PyObject *__pyx_tuple__2076; +static PyObject *__pyx_tuple__2077; +static PyObject *__pyx_tuple__2078; +static PyObject *__pyx_tuple__2079; +static PyObject *__pyx_tuple__2080; +static PyObject *__pyx_tuple__2081; +static PyObject *__pyx_tuple__2082; +static PyObject *__pyx_tuple__2083; +static PyObject *__pyx_tuple__2084; +static PyObject *__pyx_tuple__2085; +static PyObject *__pyx_tuple__2086; +static PyObject *__pyx_tuple__2087; +static PyObject *__pyx_tuple__2088; +static PyObject *__pyx_tuple__2089; +static PyObject *__pyx_tuple__2090; +static PyObject *__pyx_tuple__2091; +static PyObject *__pyx_tuple__2092; +static PyObject *__pyx_tuple__2093; +static PyObject *__pyx_tuple__2094; +static PyObject *__pyx_tuple__2095; +static PyObject *__pyx_tuple__2096; +static PyObject *__pyx_tuple__2097; +static PyObject *__pyx_tuple__2098; +static PyObject *__pyx_tuple__2099; +static PyObject *__pyx_tuple__2100; +static PyObject *__pyx_tuple__2101; +static PyObject *__pyx_tuple__2102; +static PyObject *__pyx_tuple__2103; +static PyObject *__pyx_tuple__2104; +static PyObject *__pyx_tuple__2105; +static PyObject *__pyx_tuple__2106; +static PyObject *__pyx_tuple__2107; +static PyObject *__pyx_tuple__2108; +static PyObject *__pyx_tuple__2109; +static PyObject *__pyx_tuple__2110; +static PyObject *__pyx_tuple__2111; +static PyObject *__pyx_tuple__2112; +static PyObject *__pyx_tuple__2113; +static PyObject *__pyx_tuple__2114; +static PyObject *__pyx_tuple__2115; +static PyObject *__pyx_tuple__2116; +static PyObject *__pyx_tuple__2117; +static PyObject *__pyx_tuple__2118; +static PyObject *__pyx_tuple__2119; +static PyObject *__pyx_tuple__2120; +static PyObject *__pyx_tuple__2121; +static PyObject *__pyx_tuple__2122; +static PyObject *__pyx_tuple__2123; +static PyObject *__pyx_tuple__2124; +static PyObject *__pyx_tuple__2125; +static PyObject *__pyx_tuple__2126; +static PyObject *__pyx_tuple__2127; +static PyObject *__pyx_tuple__2128; +static PyObject *__pyx_tuple__2129; +static PyObject *__pyx_tuple__2130; +static PyObject *__pyx_tuple__2131; +static PyObject *__pyx_tuple__2132; +static PyObject *__pyx_tuple__2133; +static PyObject *__pyx_tuple__2134; +static PyObject *__pyx_tuple__2135; +static PyObject *__pyx_tuple__2136; +static PyObject *__pyx_tuple__2137; +static PyObject *__pyx_tuple__2138; +static PyObject *__pyx_tuple__2139; +static PyObject *__pyx_tuple__2140; +static PyObject *__pyx_tuple__2141; +static PyObject *__pyx_tuple__2142; +static PyObject *__pyx_tuple__2143; +static PyObject *__pyx_tuple__2144; +static PyObject *__pyx_tuple__2145; +static PyObject *__pyx_tuple__2146; +static PyObject *__pyx_tuple__2147; +static PyObject *__pyx_tuple__2148; +static PyObject *__pyx_tuple__2149; +static PyObject *__pyx_tuple__2150; +static PyObject *__pyx_tuple__2151; +static PyObject *__pyx_tuple__2152; +static PyObject *__pyx_tuple__2153; +static PyObject *__pyx_tuple__2154; +static PyObject *__pyx_tuple__2155; +static PyObject *__pyx_tuple__2156; +static PyObject *__pyx_tuple__2157; +static PyObject *__pyx_tuple__2158; +static PyObject *__pyx_tuple__2159; +static PyObject *__pyx_tuple__2160; +static PyObject *__pyx_tuple__2161; +static PyObject *__pyx_tuple__2162; +static PyObject *__pyx_tuple__2163; +static PyObject *__pyx_tuple__2164; +static PyObject *__pyx_tuple__2165; +static PyObject *__pyx_tuple__2166; +static PyObject *__pyx_tuple__2167; +static PyObject *__pyx_tuple__2168; +static PyObject *__pyx_tuple__2169; +static PyObject *__pyx_tuple__2170; +static PyObject *__pyx_tuple__2171; +static PyObject *__pyx_tuple__2172; +static PyObject *__pyx_tuple__2173; +static PyObject *__pyx_tuple__2174; +static PyObject *__pyx_tuple__2175; +static PyObject *__pyx_tuple__2176; +static PyObject *__pyx_tuple__2177; +static PyObject *__pyx_tuple__2178; +static PyObject *__pyx_tuple__2179; +static PyObject *__pyx_tuple__2180; +static PyObject *__pyx_tuple__2181; +static PyObject *__pyx_tuple__2182; +static PyObject *__pyx_tuple__2183; +static PyObject *__pyx_tuple__2184; +static PyObject *__pyx_tuple__2185; +static PyObject *__pyx_tuple__2186; +static PyObject *__pyx_tuple__2187; +static PyObject *__pyx_tuple__2188; +static PyObject *__pyx_tuple__2189; +static PyObject *__pyx_tuple__2190; +static PyObject *__pyx_tuple__2191; +static PyObject *__pyx_tuple__2192; +static PyObject *__pyx_tuple__2193; +static PyObject *__pyx_tuple__2194; +static PyObject *__pyx_tuple__2195; +static PyObject *__pyx_tuple__2196; +static PyObject *__pyx_tuple__2197; +static PyObject *__pyx_tuple__2198; +static PyObject *__pyx_tuple__2199; +static PyObject *__pyx_tuple__2200; +static PyObject *__pyx_tuple__2201; +static PyObject *__pyx_tuple__2202; +static PyObject *__pyx_tuple__2203; +static PyObject *__pyx_tuple__2204; +static PyObject *__pyx_tuple__2205; +static PyObject *__pyx_tuple__2206; +static PyObject *__pyx_tuple__2207; +static PyObject *__pyx_tuple__2208; +static PyObject *__pyx_tuple__2209; +static PyObject *__pyx_tuple__2210; +static PyObject *__pyx_tuple__2211; +static PyObject *__pyx_tuple__2212; +static PyObject *__pyx_tuple__2213; +static PyObject *__pyx_tuple__2214; +static PyObject *__pyx_tuple__2215; +static PyObject *__pyx_tuple__2216; +static PyObject *__pyx_tuple__2217; +static PyObject *__pyx_tuple__2218; +static PyObject *__pyx_tuple__2219; +static PyObject *__pyx_tuple__2220; +static PyObject *__pyx_tuple__2221; +static PyObject *__pyx_tuple__2222; +static PyObject *__pyx_tuple__2223; +static PyObject *__pyx_tuple__2224; +static PyObject *__pyx_tuple__2225; +static PyObject *__pyx_tuple__2226; +static PyObject *__pyx_tuple__2227; +static PyObject *__pyx_tuple__2228; +static PyObject *__pyx_tuple__2229; +static PyObject *__pyx_tuple__2230; +static PyObject *__pyx_tuple__2231; +static PyObject *__pyx_tuple__2232; +static PyObject *__pyx_tuple__2233; +static PyObject *__pyx_tuple__2234; +static PyObject *__pyx_tuple__2235; +static PyObject *__pyx_tuple__2236; +static PyObject *__pyx_tuple__2237; +static PyObject *__pyx_tuple__2238; +static PyObject *__pyx_tuple__2239; +static PyObject *__pyx_tuple__2240; +static PyObject *__pyx_tuple__2241; +static PyObject *__pyx_tuple__2242; +static PyObject *__pyx_tuple__2243; +static PyObject *__pyx_tuple__2244; +static PyObject *__pyx_tuple__2245; +static PyObject *__pyx_tuple__2246; +static PyObject *__pyx_tuple__2247; +static PyObject *__pyx_tuple__2248; +static PyObject *__pyx_tuple__2249; +static PyObject *__pyx_tuple__2250; +static PyObject *__pyx_tuple__2251; +static PyObject *__pyx_tuple__2252; +static PyObject *__pyx_tuple__2253; +static PyObject *__pyx_tuple__2254; +static PyObject *__pyx_tuple__2255; +static PyObject *__pyx_tuple__2256; +static PyObject *__pyx_tuple__2257; +static PyObject *__pyx_tuple__2258; +static PyObject *__pyx_tuple__2259; +static PyObject *__pyx_tuple__2260; +static PyObject *__pyx_tuple__2261; +static PyObject *__pyx_tuple__2262; +static PyObject *__pyx_tuple__2263; +static PyObject *__pyx_tuple__2264; +static PyObject *__pyx_tuple__2265; +static PyObject *__pyx_tuple__2266; +static PyObject *__pyx_tuple__2267; +static PyObject *__pyx_tuple__2268; +static PyObject *__pyx_tuple__2269; +static PyObject *__pyx_tuple__2270; +static PyObject *__pyx_tuple__2271; +static PyObject *__pyx_tuple__2272; +static PyObject *__pyx_tuple__2274; +static PyObject *__pyx_tuple__2276; +static PyObject *__pyx_tuple__2277; +static PyObject *__pyx_tuple__2279; +static PyObject *__pyx_tuple__2281; +static PyObject *__pyx_tuple__2283; +static PyObject *__pyx_tuple__2285; +static PyObject *__pyx_tuple__2287; +static PyObject *__pyx_tuple__2289; +static PyObject *__pyx_tuple__2291; +static PyObject *__pyx_tuple__2293; +static PyObject *__pyx_tuple__2295; +static PyObject *__pyx_tuple__2297; +static PyObject *__pyx_tuple__2299; +static PyObject *__pyx_tuple__2301; +static PyObject *__pyx_tuple__2303; +static PyObject *__pyx_tuple__2305; +static PyObject *__pyx_tuple__2307; +static PyObject *__pyx_tuple__2309; +static PyObject *__pyx_tuple__2311; +static PyObject *__pyx_tuple__2313; +static PyObject *__pyx_tuple__2315; +static PyObject *__pyx_tuple__2317; +static PyObject *__pyx_tuple__2319; +static PyObject *__pyx_tuple__2321; +static PyObject *__pyx_tuple__2323; +static PyObject *__pyx_tuple__2325; +static PyObject *__pyx_tuple__2327; +static PyObject *__pyx_tuple__2329; +static PyObject *__pyx_tuple__2331; +static PyObject *__pyx_tuple__2333; +static PyObject *__pyx_tuple__2335; +static PyObject *__pyx_tuple__2337; +static PyObject *__pyx_tuple__2339; +static PyObject *__pyx_tuple__2341; +static PyObject *__pyx_tuple__2343; +static PyObject *__pyx_tuple__2345; +static PyObject *__pyx_tuple__2347; +static PyObject *__pyx_tuple__2349; +static PyObject *__pyx_tuple__2351; +static PyObject *__pyx_tuple__2353; +static PyObject *__pyx_tuple__2355; +static PyObject *__pyx_tuple__2357; +static PyObject *__pyx_tuple__2359; +static PyObject *__pyx_tuple__2361; +static PyObject *__pyx_tuple__2363; +static PyObject *__pyx_tuple__2365; +static PyObject *__pyx_tuple__2367; +static PyObject *__pyx_tuple__2369; +static PyObject *__pyx_tuple__2371; +static PyObject *__pyx_tuple__2373; +static PyObject *__pyx_tuple__2375; +static PyObject *__pyx_tuple__2377; +static PyObject *__pyx_tuple__2379; +static PyObject *__pyx_tuple__2381; +static PyObject *__pyx_tuple__2383; +static PyObject *__pyx_tuple__2385; +static PyObject *__pyx_tuple__2387; +static PyObject *__pyx_tuple__2389; +static PyObject *__pyx_tuple__2391; +static PyObject *__pyx_tuple__2393; +static PyObject *__pyx_tuple__2395; +static PyObject *__pyx_tuple__2397; +static PyObject *__pyx_tuple__2399; +static PyObject *__pyx_tuple__2401; +static PyObject *__pyx_tuple__2403; +static PyObject *__pyx_tuple__2405; +static PyObject *__pyx_tuple__2407; +static PyObject *__pyx_tuple__2409; +static PyObject *__pyx_tuple__2411; +static PyObject *__pyx_tuple__2413; +static PyObject *__pyx_tuple__2415; +static PyObject *__pyx_tuple__2417; +static PyObject *__pyx_tuple__2419; +static PyObject *__pyx_tuple__2421; +static PyObject *__pyx_tuple__2423; +static PyObject *__pyx_tuple__2425; +static PyObject *__pyx_tuple__2427; +static PyObject *__pyx_tuple__2429; +static PyObject *__pyx_tuple__2431; +static PyObject *__pyx_tuple__2433; +static PyObject *__pyx_tuple__2435; +static PyObject *__pyx_tuple__2437; +static PyObject *__pyx_tuple__2439; +static PyObject *__pyx_tuple__2441; +static PyObject *__pyx_tuple__2443; +static PyObject *__pyx_tuple__2445; +static PyObject *__pyx_tuple__2447; +static PyObject *__pyx_tuple__2449; +static PyObject *__pyx_tuple__2451; +static PyObject *__pyx_tuple__2453; +static PyObject *__pyx_tuple__2455; +static PyObject *__pyx_tuple__2457; +static PyObject *__pyx_tuple__2459; +static PyObject *__pyx_tuple__2461; +static PyObject *__pyx_tuple__2463; +static PyObject *__pyx_tuple__2465; +static PyObject *__pyx_tuple__2467; +static PyObject *__pyx_tuple__2469; +static PyObject *__pyx_tuple__2471; +static PyObject *__pyx_tuple__2473; +static PyObject *__pyx_tuple__2475; +static PyObject *__pyx_tuple__2477; +static PyObject *__pyx_tuple__2479; +static PyObject *__pyx_tuple__2481; +static PyObject *__pyx_tuple__2483; +static PyObject *__pyx_tuple__2485; +static PyObject *__pyx_tuple__2487; +static PyObject *__pyx_tuple__2489; +static PyObject *__pyx_tuple__2491; +static PyObject *__pyx_tuple__2493; +static PyObject *__pyx_tuple__2495; +static PyObject *__pyx_tuple__2497; +static PyObject *__pyx_tuple__2499; +static PyObject *__pyx_tuple__2501; +static PyObject *__pyx_tuple__2503; +static PyObject *__pyx_tuple__2505; +static PyObject *__pyx_tuple__2507; +static PyObject *__pyx_tuple__2509; +static PyObject *__pyx_tuple__2511; +static PyObject *__pyx_tuple__2513; +static PyObject *__pyx_tuple__2515; +static PyObject *__pyx_tuple__2517; +static PyObject *__pyx_tuple__2519; +static PyObject *__pyx_tuple__2521; +static PyObject *__pyx_tuple__2523; +static PyObject *__pyx_tuple__2525; +static PyObject *__pyx_tuple__2527; +static PyObject *__pyx_tuple__2529; +static PyObject *__pyx_tuple__2531; +static PyObject *__pyx_tuple__2533; +static PyObject *__pyx_tuple__2535; +static PyObject *__pyx_tuple__2537; +static PyObject *__pyx_tuple__2539; +static PyObject *__pyx_tuple__2541; +static PyObject *__pyx_tuple__2543; +static PyObject *__pyx_tuple__2545; +static PyObject *__pyx_tuple__2547; +static PyObject *__pyx_tuple__2549; +static PyObject *__pyx_tuple__2551; +static PyObject *__pyx_tuple__2553; +static PyObject *__pyx_tuple__2555; +static PyObject *__pyx_tuple__2557; +static PyObject *__pyx_tuple__2559; +static PyObject *__pyx_tuple__2561; +static PyObject *__pyx_tuple__2563; +static PyObject *__pyx_tuple__2565; +static PyObject *__pyx_tuple__2567; +static PyObject *__pyx_tuple__2569; +static PyObject *__pyx_tuple__2571; +static PyObject *__pyx_tuple__2573; +static PyObject *__pyx_tuple__2575; +static PyObject *__pyx_tuple__2577; +static PyObject *__pyx_tuple__2579; +static PyObject *__pyx_tuple__2581; +static PyObject *__pyx_tuple__2583; +static PyObject *__pyx_tuple__2585; +static PyObject *__pyx_tuple__2587; +static PyObject *__pyx_tuple__2589; +static PyObject *__pyx_tuple__2591; +static PyObject *__pyx_tuple__2593; +static PyObject *__pyx_tuple__2595; +static PyObject *__pyx_tuple__2597; +static PyObject *__pyx_tuple__2599; +static PyObject *__pyx_tuple__2601; +static PyObject *__pyx_tuple__2603; +static PyObject *__pyx_tuple__2605; +static PyObject *__pyx_tuple__2607; +static PyObject *__pyx_tuple__2609; +static PyObject *__pyx_tuple__2611; +static PyObject *__pyx_tuple__2613; +static PyObject *__pyx_tuple__2615; +static PyObject *__pyx_tuple__2617; +static PyObject *__pyx_tuple__2619; +static PyObject *__pyx_tuple__2621; +static PyObject *__pyx_tuple__2623; +static PyObject *__pyx_tuple__2625; +static PyObject *__pyx_tuple__2627; +static PyObject *__pyx_tuple__2629; +static PyObject *__pyx_tuple__2631; +static PyObject *__pyx_tuple__2633; +static PyObject *__pyx_tuple__2635; +static PyObject *__pyx_tuple__2637; +static PyObject *__pyx_tuple__2639; +static PyObject *__pyx_tuple__2641; +static PyObject *__pyx_tuple__2642; +static PyObject *__pyx_tuple__2644; +static PyObject *__pyx_tuple__2646; +static PyObject *__pyx_tuple__2648; +static PyObject *__pyx_tuple__2650; +static PyObject *__pyx_tuple__2652; +static PyObject *__pyx_tuple__2654; +static PyObject *__pyx_tuple__2656; +static PyObject *__pyx_tuple__2658; +static PyObject *__pyx_tuple__2660; +static PyObject *__pyx_tuple__2662; +static PyObject *__pyx_tuple__2664; +static PyObject *__pyx_tuple__2666; +static PyObject *__pyx_tuple__2668; +static PyObject *__pyx_tuple__2670; +static PyObject *__pyx_tuple__2672; +static PyObject *__pyx_tuple__2674; +static PyObject *__pyx_tuple__2676; +static PyObject *__pyx_tuple__2678; +static PyObject *__pyx_tuple__2680; +static PyObject *__pyx_tuple__2682; +static PyObject *__pyx_tuple__2684; +static PyObject *__pyx_tuple__2686; +static PyObject *__pyx_tuple__2688; +static PyObject *__pyx_tuple__2690; +static PyObject *__pyx_tuple__2692; +static PyObject *__pyx_tuple__2694; +static PyObject *__pyx_tuple__2696; +static PyObject *__pyx_tuple__2698; +static PyObject *__pyx_tuple__2700; +static PyObject *__pyx_tuple__2702; +static PyObject *__pyx_tuple__2704; +static PyObject *__pyx_tuple__2706; +static PyObject *__pyx_tuple__2708; +static PyObject *__pyx_tuple__2710; +static PyObject *__pyx_tuple__2712; +static PyObject *__pyx_tuple__2714; +static PyObject *__pyx_tuple__2716; +static PyObject *__pyx_tuple__2718; +static PyObject *__pyx_tuple__2720; +static PyObject *__pyx_tuple__2722; +static PyObject *__pyx_tuple__2724; +static PyObject *__pyx_tuple__2726; +static PyObject *__pyx_tuple__2728; +static PyObject *__pyx_tuple__2730; +static PyObject *__pyx_tuple__2732; +static PyObject *__pyx_tuple__2734; +static PyObject *__pyx_tuple__2736; +static PyObject *__pyx_tuple__2738; +static PyObject *__pyx_tuple__2740; +static PyObject *__pyx_tuple__2742; +static PyObject *__pyx_tuple__2744; +static PyObject *__pyx_tuple__2746; +static PyObject *__pyx_tuple__2748; +static PyObject *__pyx_tuple__2750; +static PyObject *__pyx_tuple__2752; +static PyObject *__pyx_tuple__2754; +static PyObject *__pyx_tuple__2756; +static PyObject *__pyx_tuple__2758; +static PyObject *__pyx_tuple__2760; +static PyObject *__pyx_tuple__2762; +static PyObject *__pyx_tuple__2764; +static PyObject *__pyx_tuple__2766; +static PyObject *__pyx_tuple__2768; +static PyObject *__pyx_tuple__2770; +static PyObject *__pyx_tuple__2772; +static PyObject *__pyx_tuple__2774; +static PyObject *__pyx_tuple__2776; +static PyObject *__pyx_tuple__2778; +static PyObject *__pyx_tuple__2780; +static PyObject *__pyx_tuple__2782; +static PyObject *__pyx_tuple__2784; +static PyObject *__pyx_tuple__2786; +static PyObject *__pyx_tuple__2788; +static PyObject *__pyx_tuple__2790; +static PyObject *__pyx_tuple__2792; +static PyObject *__pyx_tuple__2794; +static PyObject *__pyx_tuple__2796; +static PyObject *__pyx_tuple__2798; +static PyObject *__pyx_tuple__2800; +static PyObject *__pyx_tuple__2802; +static PyObject *__pyx_tuple__2804; +static PyObject *__pyx_tuple__2806; +static PyObject *__pyx_tuple__2808; +static PyObject *__pyx_tuple__2810; +static PyObject *__pyx_tuple__2812; +static PyObject *__pyx_tuple__2814; +static PyObject *__pyx_tuple__2816; +static PyObject *__pyx_tuple__2818; +static PyObject *__pyx_tuple__2820; +static PyObject *__pyx_tuple__2822; +static PyObject *__pyx_tuple__2824; +static PyObject *__pyx_tuple__2826; +static PyObject *__pyx_tuple__2828; +static PyObject *__pyx_tuple__2830; +static PyObject *__pyx_tuple__2832; +static PyObject *__pyx_tuple__2834; +static PyObject *__pyx_tuple__2836; +static PyObject *__pyx_tuple__2838; +static PyObject *__pyx_tuple__2840; +static PyObject *__pyx_tuple__2842; +static PyObject *__pyx_tuple__2844; +static PyObject *__pyx_tuple__2846; +static PyObject *__pyx_tuple__2848; +static PyObject *__pyx_tuple__2850; +static PyObject *__pyx_tuple__2852; +static PyObject *__pyx_tuple__2854; +static PyObject *__pyx_tuple__2856; +static PyObject *__pyx_tuple__2858; +static PyObject *__pyx_tuple__2860; +static PyObject *__pyx_tuple__2862; +static PyObject *__pyx_tuple__2864; +static PyObject *__pyx_tuple__2866; +static PyObject *__pyx_tuple__2868; +static PyObject *__pyx_tuple__2870; +static PyObject *__pyx_tuple__2872; +static PyObject *__pyx_tuple__2874; +static PyObject *__pyx_tuple__2876; +static PyObject *__pyx_tuple__2878; +static PyObject *__pyx_tuple__2880; +static PyObject *__pyx_tuple__2882; +static PyObject *__pyx_tuple__2884; +static PyObject *__pyx_tuple__2886; +static PyObject *__pyx_tuple__2888; +static PyObject *__pyx_tuple__2890; +static PyObject *__pyx_tuple__2892; +static PyObject *__pyx_tuple__2894; +static PyObject *__pyx_tuple__2896; +static PyObject *__pyx_tuple__2898; +static PyObject *__pyx_tuple__2900; +static PyObject *__pyx_tuple__2902; +static PyObject *__pyx_tuple__2904; +static PyObject *__pyx_tuple__2906; +static PyObject *__pyx_tuple__2908; +static PyObject *__pyx_tuple__2910; +static PyObject *__pyx_tuple__2912; +static PyObject *__pyx_tuple__2914; +static PyObject *__pyx_tuple__2916; +static PyObject *__pyx_tuple__2918; +static PyObject *__pyx_tuple__2920; +static PyObject *__pyx_tuple__2922; +static PyObject *__pyx_tuple__2924; +static PyObject *__pyx_tuple__2926; +static PyObject *__pyx_tuple__2928; +static PyObject *__pyx_tuple__2930; +static PyObject *__pyx_tuple__2932; +static PyObject *__pyx_tuple__2934; +static PyObject *__pyx_tuple__2936; +static PyObject *__pyx_tuple__2938; +static PyObject *__pyx_tuple__2940; +static PyObject *__pyx_tuple__2942; +static PyObject *__pyx_tuple__2944; +static PyObject *__pyx_tuple__2946; +static PyObject *__pyx_tuple__2948; +static PyObject *__pyx_tuple__2950; +static PyObject *__pyx_tuple__2952; +static PyObject *__pyx_tuple__2954; +static PyObject *__pyx_tuple__2956; +static PyObject *__pyx_tuple__2958; +static PyObject *__pyx_tuple__2960; +static PyObject *__pyx_tuple__2962; +static PyObject *__pyx_tuple__2964; +static PyObject *__pyx_tuple__2966; +static PyObject *__pyx_tuple__2968; +static PyObject *__pyx_tuple__2970; +static PyObject *__pyx_tuple__2972; +static PyObject *__pyx_tuple__2974; +static PyObject *__pyx_tuple__2976; +static PyObject *__pyx_tuple__2978; +static PyObject *__pyx_tuple__2980; +static PyObject *__pyx_tuple__2982; +static PyObject *__pyx_tuple__2984; +static PyObject *__pyx_tuple__2986; +static PyObject *__pyx_codeobj__2273; +static PyObject *__pyx_codeobj__2275; +static PyObject *__pyx_codeobj__2278; +static PyObject *__pyx_codeobj__2280; +static PyObject *__pyx_codeobj__2282; +static PyObject *__pyx_codeobj__2284; +static PyObject *__pyx_codeobj__2286; +static PyObject *__pyx_codeobj__2288; +static PyObject *__pyx_codeobj__2290; +static PyObject *__pyx_codeobj__2292; +static PyObject *__pyx_codeobj__2294; +static PyObject *__pyx_codeobj__2296; +static PyObject *__pyx_codeobj__2298; +static PyObject *__pyx_codeobj__2300; +static PyObject *__pyx_codeobj__2302; +static PyObject *__pyx_codeobj__2304; +static PyObject *__pyx_codeobj__2306; +static PyObject *__pyx_codeobj__2308; +static PyObject *__pyx_codeobj__2310; +static PyObject *__pyx_codeobj__2312; +static PyObject *__pyx_codeobj__2314; +static PyObject *__pyx_codeobj__2316; +static PyObject *__pyx_codeobj__2318; +static PyObject *__pyx_codeobj__2320; +static PyObject *__pyx_codeobj__2322; +static PyObject *__pyx_codeobj__2324; +static PyObject *__pyx_codeobj__2326; +static PyObject *__pyx_codeobj__2328; +static PyObject *__pyx_codeobj__2330; +static PyObject *__pyx_codeobj__2332; +static PyObject *__pyx_codeobj__2334; +static PyObject *__pyx_codeobj__2336; +static PyObject *__pyx_codeobj__2338; +static PyObject *__pyx_codeobj__2340; +static PyObject *__pyx_codeobj__2342; +static PyObject *__pyx_codeobj__2344; +static PyObject *__pyx_codeobj__2346; +static PyObject *__pyx_codeobj__2348; +static PyObject *__pyx_codeobj__2350; +static PyObject *__pyx_codeobj__2352; +static PyObject *__pyx_codeobj__2354; +static PyObject *__pyx_codeobj__2356; +static PyObject *__pyx_codeobj__2358; +static PyObject *__pyx_codeobj__2360; +static PyObject *__pyx_codeobj__2362; +static PyObject *__pyx_codeobj__2364; +static PyObject *__pyx_codeobj__2366; +static PyObject *__pyx_codeobj__2368; +static PyObject *__pyx_codeobj__2370; +static PyObject *__pyx_codeobj__2372; +static PyObject *__pyx_codeobj__2374; +static PyObject *__pyx_codeobj__2376; +static PyObject *__pyx_codeobj__2378; +static PyObject *__pyx_codeobj__2380; +static PyObject *__pyx_codeobj__2382; +static PyObject *__pyx_codeobj__2384; +static PyObject *__pyx_codeobj__2386; +static PyObject *__pyx_codeobj__2388; +static PyObject *__pyx_codeobj__2390; +static PyObject *__pyx_codeobj__2392; +static PyObject *__pyx_codeobj__2394; +static PyObject *__pyx_codeobj__2396; +static PyObject *__pyx_codeobj__2398; +static PyObject *__pyx_codeobj__2400; +static PyObject *__pyx_codeobj__2402; +static PyObject *__pyx_codeobj__2404; +static PyObject *__pyx_codeobj__2406; +static PyObject *__pyx_codeobj__2408; +static PyObject *__pyx_codeobj__2410; +static PyObject *__pyx_codeobj__2412; +static PyObject *__pyx_codeobj__2414; +static PyObject *__pyx_codeobj__2416; +static PyObject *__pyx_codeobj__2418; +static PyObject *__pyx_codeobj__2420; +static PyObject *__pyx_codeobj__2422; +static PyObject *__pyx_codeobj__2424; +static PyObject *__pyx_codeobj__2426; +static PyObject *__pyx_codeobj__2428; +static PyObject *__pyx_codeobj__2430; +static PyObject *__pyx_codeobj__2432; +static PyObject *__pyx_codeobj__2434; +static PyObject *__pyx_codeobj__2436; +static PyObject *__pyx_codeobj__2438; +static PyObject *__pyx_codeobj__2440; +static PyObject *__pyx_codeobj__2442; +static PyObject *__pyx_codeobj__2444; +static PyObject *__pyx_codeobj__2446; +static PyObject *__pyx_codeobj__2448; +static PyObject *__pyx_codeobj__2450; +static PyObject *__pyx_codeobj__2452; +static PyObject *__pyx_codeobj__2454; +static PyObject *__pyx_codeobj__2456; +static PyObject *__pyx_codeobj__2458; +static PyObject *__pyx_codeobj__2460; +static PyObject *__pyx_codeobj__2462; +static PyObject *__pyx_codeobj__2464; +static PyObject *__pyx_codeobj__2466; +static PyObject *__pyx_codeobj__2468; +static PyObject *__pyx_codeobj__2470; +static PyObject *__pyx_codeobj__2472; +static PyObject *__pyx_codeobj__2474; +static PyObject *__pyx_codeobj__2476; +static PyObject *__pyx_codeobj__2478; +static PyObject *__pyx_codeobj__2480; +static PyObject *__pyx_codeobj__2482; +static PyObject *__pyx_codeobj__2484; +static PyObject *__pyx_codeobj__2486; +static PyObject *__pyx_codeobj__2488; +static PyObject *__pyx_codeobj__2490; +static PyObject *__pyx_codeobj__2492; +static PyObject *__pyx_codeobj__2494; +static PyObject *__pyx_codeobj__2496; +static PyObject *__pyx_codeobj__2498; +static PyObject *__pyx_codeobj__2500; +static PyObject *__pyx_codeobj__2502; +static PyObject *__pyx_codeobj__2504; +static PyObject *__pyx_codeobj__2506; +static PyObject *__pyx_codeobj__2508; +static PyObject *__pyx_codeobj__2510; +static PyObject *__pyx_codeobj__2512; +static PyObject *__pyx_codeobj__2514; +static PyObject *__pyx_codeobj__2516; +static PyObject *__pyx_codeobj__2518; +static PyObject *__pyx_codeobj__2520; +static PyObject *__pyx_codeobj__2522; +static PyObject *__pyx_codeobj__2524; +static PyObject *__pyx_codeobj__2526; +static PyObject *__pyx_codeobj__2528; +static PyObject *__pyx_codeobj__2530; +static PyObject *__pyx_codeobj__2532; +static PyObject *__pyx_codeobj__2534; +static PyObject *__pyx_codeobj__2536; +static PyObject *__pyx_codeobj__2538; +static PyObject *__pyx_codeobj__2540; +static PyObject *__pyx_codeobj__2542; +static PyObject *__pyx_codeobj__2544; +static PyObject *__pyx_codeobj__2546; +static PyObject *__pyx_codeobj__2548; +static PyObject *__pyx_codeobj__2550; +static PyObject *__pyx_codeobj__2552; +static PyObject *__pyx_codeobj__2554; +static PyObject *__pyx_codeobj__2556; +static PyObject *__pyx_codeobj__2558; +static PyObject *__pyx_codeobj__2560; +static PyObject *__pyx_codeobj__2562; +static PyObject *__pyx_codeobj__2564; +static PyObject *__pyx_codeobj__2566; +static PyObject *__pyx_codeobj__2568; +static PyObject *__pyx_codeobj__2570; +static PyObject *__pyx_codeobj__2572; +static PyObject *__pyx_codeobj__2574; +static PyObject *__pyx_codeobj__2576; +static PyObject *__pyx_codeobj__2578; +static PyObject *__pyx_codeobj__2580; +static PyObject *__pyx_codeobj__2582; +static PyObject *__pyx_codeobj__2584; +static PyObject *__pyx_codeobj__2586; +static PyObject *__pyx_codeobj__2588; +static PyObject *__pyx_codeobj__2590; +static PyObject *__pyx_codeobj__2592; +static PyObject *__pyx_codeobj__2594; +static PyObject *__pyx_codeobj__2596; +static PyObject *__pyx_codeobj__2598; +static PyObject *__pyx_codeobj__2600; +static PyObject *__pyx_codeobj__2602; +static PyObject *__pyx_codeobj__2604; +static PyObject *__pyx_codeobj__2606; +static PyObject *__pyx_codeobj__2608; +static PyObject *__pyx_codeobj__2610; +static PyObject *__pyx_codeobj__2612; +static PyObject *__pyx_codeobj__2614; +static PyObject *__pyx_codeobj__2616; +static PyObject *__pyx_codeobj__2618; +static PyObject *__pyx_codeobj__2620; +static PyObject *__pyx_codeobj__2622; +static PyObject *__pyx_codeobj__2624; +static PyObject *__pyx_codeobj__2626; +static PyObject *__pyx_codeobj__2628; +static PyObject *__pyx_codeobj__2630; +static PyObject *__pyx_codeobj__2632; +static PyObject *__pyx_codeobj__2634; +static PyObject *__pyx_codeobj__2636; +static PyObject *__pyx_codeobj__2638; +static PyObject *__pyx_codeobj__2640; +static PyObject *__pyx_codeobj__2643; +static PyObject *__pyx_codeobj__2645; +static PyObject *__pyx_codeobj__2647; +static PyObject *__pyx_codeobj__2649; +static PyObject *__pyx_codeobj__2651; +static PyObject *__pyx_codeobj__2653; +static PyObject *__pyx_codeobj__2655; +static PyObject *__pyx_codeobj__2657; +static PyObject *__pyx_codeobj__2659; +static PyObject *__pyx_codeobj__2661; +static PyObject *__pyx_codeobj__2663; +static PyObject *__pyx_codeobj__2665; +static PyObject *__pyx_codeobj__2667; +static PyObject *__pyx_codeobj__2669; +static PyObject *__pyx_codeobj__2671; +static PyObject *__pyx_codeobj__2673; +static PyObject *__pyx_codeobj__2675; +static PyObject *__pyx_codeobj__2677; +static PyObject *__pyx_codeobj__2679; +static PyObject *__pyx_codeobj__2681; +static PyObject *__pyx_codeobj__2683; +static PyObject *__pyx_codeobj__2685; +static PyObject *__pyx_codeobj__2687; +static PyObject *__pyx_codeobj__2689; +static PyObject *__pyx_codeobj__2691; +static PyObject *__pyx_codeobj__2693; +static PyObject *__pyx_codeobj__2695; +static PyObject *__pyx_codeobj__2697; +static PyObject *__pyx_codeobj__2699; +static PyObject *__pyx_codeobj__2701; +static PyObject *__pyx_codeobj__2703; +static PyObject *__pyx_codeobj__2705; +static PyObject *__pyx_codeobj__2707; +static PyObject *__pyx_codeobj__2709; +static PyObject *__pyx_codeobj__2711; +static PyObject *__pyx_codeobj__2713; +static PyObject *__pyx_codeobj__2715; +static PyObject *__pyx_codeobj__2717; +static PyObject *__pyx_codeobj__2719; +static PyObject *__pyx_codeobj__2721; +static PyObject *__pyx_codeobj__2723; +static PyObject *__pyx_codeobj__2725; +static PyObject *__pyx_codeobj__2727; +static PyObject *__pyx_codeobj__2729; +static PyObject *__pyx_codeobj__2731; +static PyObject *__pyx_codeobj__2733; +static PyObject *__pyx_codeobj__2735; +static PyObject *__pyx_codeobj__2737; +static PyObject *__pyx_codeobj__2739; +static PyObject *__pyx_codeobj__2741; +static PyObject *__pyx_codeobj__2743; +static PyObject *__pyx_codeobj__2745; +static PyObject *__pyx_codeobj__2747; +static PyObject *__pyx_codeobj__2749; +static PyObject *__pyx_codeobj__2751; +static PyObject *__pyx_codeobj__2753; +static PyObject *__pyx_codeobj__2755; +static PyObject *__pyx_codeobj__2757; +static PyObject *__pyx_codeobj__2759; +static PyObject *__pyx_codeobj__2761; +static PyObject *__pyx_codeobj__2763; +static PyObject *__pyx_codeobj__2765; +static PyObject *__pyx_codeobj__2767; +static PyObject *__pyx_codeobj__2769; +static PyObject *__pyx_codeobj__2771; +static PyObject *__pyx_codeobj__2773; +static PyObject *__pyx_codeobj__2775; +static PyObject *__pyx_codeobj__2777; +static PyObject *__pyx_codeobj__2779; +static PyObject *__pyx_codeobj__2781; +static PyObject *__pyx_codeobj__2783; +static PyObject *__pyx_codeobj__2785; +static PyObject *__pyx_codeobj__2787; +static PyObject *__pyx_codeobj__2789; +static PyObject *__pyx_codeobj__2791; +static PyObject *__pyx_codeobj__2793; +static PyObject *__pyx_codeobj__2795; +static PyObject *__pyx_codeobj__2797; +static PyObject *__pyx_codeobj__2799; +static PyObject *__pyx_codeobj__2801; +static PyObject *__pyx_codeobj__2803; +static PyObject *__pyx_codeobj__2805; +static PyObject *__pyx_codeobj__2807; +static PyObject *__pyx_codeobj__2809; +static PyObject *__pyx_codeobj__2811; +static PyObject *__pyx_codeobj__2813; +static PyObject *__pyx_codeobj__2815; +static PyObject *__pyx_codeobj__2817; +static PyObject *__pyx_codeobj__2819; +static PyObject *__pyx_codeobj__2821; +static PyObject *__pyx_codeobj__2823; +static PyObject *__pyx_codeobj__2825; +static PyObject *__pyx_codeobj__2827; +static PyObject *__pyx_codeobj__2829; +static PyObject *__pyx_codeobj__2831; +static PyObject *__pyx_codeobj__2833; +static PyObject *__pyx_codeobj__2835; +static PyObject *__pyx_codeobj__2837; +static PyObject *__pyx_codeobj__2839; +static PyObject *__pyx_codeobj__2841; +static PyObject *__pyx_codeobj__2843; +static PyObject *__pyx_codeobj__2845; +static PyObject *__pyx_codeobj__2847; +static PyObject *__pyx_codeobj__2849; +static PyObject *__pyx_codeobj__2851; +static PyObject *__pyx_codeobj__2853; +static PyObject *__pyx_codeobj__2855; +static PyObject *__pyx_codeobj__2857; +static PyObject *__pyx_codeobj__2859; +static PyObject *__pyx_codeobj__2861; +static PyObject *__pyx_codeobj__2863; +static PyObject *__pyx_codeobj__2865; +static PyObject *__pyx_codeobj__2867; +static PyObject *__pyx_codeobj__2869; +static PyObject *__pyx_codeobj__2871; +static PyObject *__pyx_codeobj__2873; +static PyObject *__pyx_codeobj__2875; +static PyObject *__pyx_codeobj__2877; +static PyObject *__pyx_codeobj__2879; +static PyObject *__pyx_codeobj__2881; +static PyObject *__pyx_codeobj__2883; +static PyObject *__pyx_codeobj__2885; +static PyObject *__pyx_codeobj__2887; +static PyObject *__pyx_codeobj__2889; +static PyObject *__pyx_codeobj__2891; +static PyObject *__pyx_codeobj__2893; +static PyObject *__pyx_codeobj__2895; +static PyObject *__pyx_codeobj__2897; +static PyObject *__pyx_codeobj__2899; +static PyObject *__pyx_codeobj__2901; +static PyObject *__pyx_codeobj__2903; +static PyObject *__pyx_codeobj__2905; +static PyObject *__pyx_codeobj__2907; +static PyObject *__pyx_codeobj__2909; +static PyObject *__pyx_codeobj__2911; +static PyObject *__pyx_codeobj__2913; +static PyObject *__pyx_codeobj__2915; +static PyObject *__pyx_codeobj__2917; +static PyObject *__pyx_codeobj__2919; +static PyObject *__pyx_codeobj__2921; +static PyObject *__pyx_codeobj__2923; +static PyObject *__pyx_codeobj__2925; +static PyObject *__pyx_codeobj__2927; +static PyObject *__pyx_codeobj__2929; +static PyObject *__pyx_codeobj__2931; +static PyObject *__pyx_codeobj__2933; +static PyObject *__pyx_codeobj__2935; +static PyObject *__pyx_codeobj__2937; +static PyObject *__pyx_codeobj__2939; +static PyObject *__pyx_codeobj__2941; +static PyObject *__pyx_codeobj__2943; +static PyObject *__pyx_codeobj__2945; +static PyObject *__pyx_codeobj__2947; +static PyObject *__pyx_codeobj__2949; +static PyObject *__pyx_codeobj__2951; +static PyObject *__pyx_codeobj__2953; +static PyObject *__pyx_codeobj__2955; +static PyObject *__pyx_codeobj__2957; +static PyObject *__pyx_codeobj__2959; +static PyObject *__pyx_codeobj__2961; +static PyObject *__pyx_codeobj__2963; +static PyObject *__pyx_codeobj__2965; +static PyObject *__pyx_codeobj__2967; +static PyObject *__pyx_codeobj__2969; +static PyObject *__pyx_codeobj__2971; +static PyObject *__pyx_codeobj__2973; +static PyObject *__pyx_codeobj__2975; +static PyObject *__pyx_codeobj__2977; +static PyObject *__pyx_codeobj__2979; +static PyObject *__pyx_codeobj__2981; +static PyObject *__pyx_codeobj__2983; +static PyObject *__pyx_codeobj__2985; +static PyObject *__pyx_codeobj__2987; + +/* "talib/_common.pxi":9 + * + * + * cpdef _ta_check_success(str function_name, TA_RetCode ret_code): # <<<<<<<<<<<<<< + * if ret_code == lib.TA_SUCCESS: + * return True + */ + +static PyObject *__pyx_pw_5talib_8c_ta_lib_1_ta_check_success(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static PyObject *__pyx_f_5talib_8c_ta_lib__ta_check_success(PyObject *__pyx_v_function_name, TA_RetCode __pyx_v_ret_code, CYTHON_UNUSED int __pyx_skip_dispatch) { + PyObject *__pyx_v_ta_errors = NULL; + 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("_ta_check_success", 0); + + /* "talib/_common.pxi":10 + * + * cpdef _ta_check_success(str function_name, TA_RetCode ret_code): + * if ret_code == lib.TA_SUCCESS: # <<<<<<<<<<<<<< + * return True + * ta_errors = { + */ + __pyx_t_1 = ((__pyx_v_ret_code == TA_SUCCESS) != 0); + if (__pyx_t_1) { + + /* "talib/_common.pxi":11 + * cpdef _ta_check_success(str function_name, TA_RetCode ret_code): + * if ret_code == lib.TA_SUCCESS: + * return True # <<<<<<<<<<<<<< + * ta_errors = { + * 0: 'Success', + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(Py_True); + __pyx_r = Py_True; + goto __pyx_L0; + + /* "talib/_common.pxi":10 + * + * cpdef _ta_check_success(str function_name, TA_RetCode ret_code): + * if ret_code == lib.TA_SUCCESS: # <<<<<<<<<<<<<< + * return True + * ta_errors = { + */ + } + + /* "talib/_common.pxi":13 + * return True + * ta_errors = { + * 0: 'Success', # <<<<<<<<<<<<<< + * 1: 'Library Not Initialized (TA_LIB_NOT_INITIALIZE)', + * 2: 'Bad Parameter (TA_BAD_PARAM)', + */ + __pyx_t_2 = PyDict_New(); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 13, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_t_2, __pyx_int_0, __pyx_n_s_Success) < 0) __PYX_ERR(0, 13, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_2, __pyx_int_1, __pyx_kp_s_Library_Not_Initialized_TA_LIB_N) < 0) __PYX_ERR(0, 13, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_2, __pyx_int_2, __pyx_kp_s_Bad_Parameter_TA_BAD_PARAM) < 0) __PYX_ERR(0, 13, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_2, __pyx_int_3, __pyx_kp_s_Allocation_Error_TA_ALLOC_ERR) < 0) __PYX_ERR(0, 13, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_2, __pyx_int_4, __pyx_kp_s_Group_Not_Found_TA_GROUP_NOT_FOU) < 0) __PYX_ERR(0, 13, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_2, __pyx_int_5, __pyx_kp_s_Function_Not_Found_TA_FUNC_NOT_F) < 0) __PYX_ERR(0, 13, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_2, __pyx_int_6, __pyx_kp_s_Invalid_Handle_TA_INVALID_HANDLE) < 0) __PYX_ERR(0, 13, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_2, __pyx_int_7, __pyx_kp_s_Invalid_Parameter_Holder_TA_INVA) < 0) __PYX_ERR(0, 13, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_2, __pyx_int_8, __pyx_kp_s_Invalid_Parameter_Holder_Type_TA) < 0) __PYX_ERR(0, 13, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_2, __pyx_int_9, __pyx_kp_s_Invalid_Parameter_Function_TA_IN) < 0) __PYX_ERR(0, 13, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_2, __pyx_int_10, __pyx_kp_s_Input_Not_All_Initialized_TA_INP) < 0) __PYX_ERR(0, 13, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_2, __pyx_int_11, __pyx_kp_s_Output_Not_All_Initialized_TA_OU) < 0) __PYX_ERR(0, 13, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_2, __pyx_int_12, __pyx_kp_s_Out_of_Range_Start_Index_TA_OUT) < 0) __PYX_ERR(0, 13, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_2, __pyx_int_13, __pyx_kp_s_Out_of_Range_End_Index_TA_OUT_OF) < 0) __PYX_ERR(0, 13, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_2, __pyx_int_14, __pyx_kp_s_Invalid_List_Type_TA_INVALID_LIS) < 0) __PYX_ERR(0, 13, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_2, __pyx_int_15, __pyx_kp_s_Bad_Object_TA_BAD_OBJECT) < 0) __PYX_ERR(0, 13, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_2, __pyx_int_16, __pyx_kp_s_Not_Supported_TA_NOT_SUPPORTED) < 0) __PYX_ERR(0, 13, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_2, __pyx_int_5000, __pyx_kp_s_Internal_Error_TA_INTERNAL_ERROR) < 0) __PYX_ERR(0, 13, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_2, __pyx_int_65535, __pyx_kp_s_Unknown_Error_TA_UNKNOWN_ERR) < 0) __PYX_ERR(0, 13, __pyx_L1_error) + __pyx_v_ta_errors = ((PyObject*)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_common.pxi":34 + * } + * raise Exception('%s function failed with error code %s: %s' % ( + * function_name, ret_code, ta_errors[ret_code])) # <<<<<<<<<<<<<< + * + * def _ta_initialize(): + */ + __pyx_t_2 = __Pyx_PyInt_From_TA_RetCode(__pyx_v_ret_code); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 34, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_t_3 = __Pyx_PyInt_From_TA_RetCode(__pyx_v_ret_code); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 34, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + __pyx_t_4 = __Pyx_PyDict_GetItem(__pyx_v_ta_errors, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 34, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + __pyx_t_3 = PyTuple_New(3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 34, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + __Pyx_INCREF(__pyx_v_function_name); + __Pyx_GIVEREF(__pyx_v_function_name); + PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_v_function_name); + __Pyx_GIVEREF(__pyx_t_2); + PyTuple_SET_ITEM(__pyx_t_3, 1, __pyx_t_2); + __Pyx_GIVEREF(__pyx_t_4); + PyTuple_SET_ITEM(__pyx_t_3, 2, __pyx_t_4); + __pyx_t_2 = 0; + __pyx_t_4 = 0; + + /* "talib/_common.pxi":33 + * 65535: 'Unknown Error (TA_UNKNOWN_ERR)', + * } + * raise Exception('%s function failed with error code %s: %s' % ( # <<<<<<<<<<<<<< + * function_name, ret_code, ta_errors[ret_code])) + * + */ + __pyx_t_4 = __Pyx_PyString_Format(__pyx_kp_s_s_function_failed_with_error_co, __pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 33, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 33, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + __Pyx_GIVEREF(__pyx_t_4); + PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_4); + __pyx_t_4 = 0; + __pyx_t_4 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_t_3, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 33, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + __Pyx_Raise(__pyx_t_4, 0, 0, 0); + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + __PYX_ERR(0, 33, __pyx_L1_error) + + /* "talib/_common.pxi":9 + * + * + * cpdef _ta_check_success(str function_name, TA_RetCode ret_code): # <<<<<<<<<<<<<< + * if ret_code == lib.TA_SUCCESS: + * return True + */ + + /* function exit code */ + __pyx_L1_error:; + __Pyx_XDECREF(__pyx_t_2); + __Pyx_XDECREF(__pyx_t_3); + __Pyx_XDECREF(__pyx_t_4); + __Pyx_AddTraceback("talib.c_ta_lib._ta_check_success", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = 0; + __pyx_L0:; + __Pyx_XDECREF(__pyx_v_ta_errors); + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* Python wrapper */ +static PyObject *__pyx_pw_5talib_8c_ta_lib_1_ta_check_success(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static PyObject *__pyx_pw_5talib_8c_ta_lib_1_ta_check_success(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { + PyObject *__pyx_v_function_name = 0; + TA_RetCode __pyx_v_ret_code; + PyObject *__pyx_r = 0; + __Pyx_RefNannyDeclarations + __Pyx_RefNannySetupContext("_ta_check_success (wrapper)", 0); + { + static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_function_name,&__pyx_n_s_ret_code,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_function_name)) != 0)) kw_args--; + else goto __pyx_L5_argtuple_error; + case 1: + if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_ret_code)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("_ta_check_success", 1, 2, 2, 1); __PYX_ERR(0, 9, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "_ta_check_success") < 0)) __PYX_ERR(0, 9, __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_function_name = ((PyObject*)values[0]); + __pyx_v_ret_code = __Pyx_PyInt_As_TA_RetCode(values[1]); if (unlikely((__pyx_v_ret_code == (TA_RetCode)-1) && PyErr_Occurred())) __PYX_ERR(0, 9, __pyx_L3_error) + } + goto __pyx_L4_argument_unpacking_done; + __pyx_L5_argtuple_error:; + __Pyx_RaiseArgtupleInvalid("_ta_check_success", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 9, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib._ta_check_success", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_RefNannyFinishContext(); + return NULL; + __pyx_L4_argument_unpacking_done:; + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_function_name), (&PyString_Type), 1, "function_name", 1))) __PYX_ERR(0, 9, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib__ta_check_success(__pyx_self, __pyx_v_function_name, __pyx_v_ret_code); + + /* function exit code */ + goto __pyx_L0; + __pyx_L1_error:; + __pyx_r = NULL; + __pyx_L0:; + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +static PyObject *__pyx_pf_5talib_8c_ta_lib__ta_check_success(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_function_name, TA_RetCode __pyx_v_ret_code) { + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + PyObject *__pyx_t_1 = NULL; + __Pyx_RefNannySetupContext("_ta_check_success", 0); + __Pyx_XDECREF(__pyx_r); + __pyx_t_1 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_v_function_name, __pyx_v_ret_code, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 9, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __pyx_r = __pyx_t_1; + __pyx_t_1 = 0; + goto __pyx_L0; + + /* function exit code */ + __pyx_L1_error:; + __Pyx_XDECREF(__pyx_t_1); + __Pyx_AddTraceback("talib.c_ta_lib._ta_check_success", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "talib/_common.pxi":36 + * function_name, ret_code, ta_errors[ret_code])) + * + * def _ta_initialize(): # <<<<<<<<<<<<<< + * cdef TA_RetCode ret_code + * ret_code = lib.TA_Initialize() + */ + +/* Python wrapper */ +static PyObject *__pyx_pw_5talib_8c_ta_lib_3_ta_initialize(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ +static PyMethodDef __pyx_mdef_5talib_8c_ta_lib_3_ta_initialize = {"_ta_initialize", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_3_ta_initialize, METH_NOARGS, 0}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_3_ta_initialize(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { + PyObject *__pyx_r = 0; + __Pyx_RefNannyDeclarations + __Pyx_RefNannySetupContext("_ta_initialize (wrapper)", 0); + __pyx_r = __pyx_pf_5talib_8c_ta_lib_2_ta_initialize(__pyx_self); + + /* function exit code */ + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +static PyObject *__pyx_pf_5talib_8c_ta_lib_2_ta_initialize(CYTHON_UNUSED PyObject *__pyx_self) { + TA_RetCode __pyx_v_ret_code; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + PyObject *__pyx_t_1 = NULL; + __Pyx_RefNannySetupContext("_ta_initialize", 0); + + /* "talib/_common.pxi":38 + * def _ta_initialize(): + * cdef TA_RetCode ret_code + * ret_code = lib.TA_Initialize() # <<<<<<<<<<<<<< + * _ta_check_success('TA_Initialize', ret_code) + * + */ + __pyx_v_ret_code = TA_Initialize(); + + /* "talib/_common.pxi":39 + * cdef TA_RetCode ret_code + * ret_code = lib.TA_Initialize() + * _ta_check_success('TA_Initialize', ret_code) # <<<<<<<<<<<<<< + * + * def _ta_shutdown(): + */ + __pyx_t_1 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_Initialize, __pyx_v_ret_code, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 39, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + + /* "talib/_common.pxi":36 + * function_name, ret_code, ta_errors[ret_code])) + * + * def _ta_initialize(): # <<<<<<<<<<<<<< + * cdef TA_RetCode ret_code + * ret_code = lib.TA_Initialize() + */ + + /* function exit code */ + __pyx_r = Py_None; __Pyx_INCREF(Py_None); + goto __pyx_L0; + __pyx_L1_error:; + __Pyx_XDECREF(__pyx_t_1); + __Pyx_AddTraceback("talib.c_ta_lib._ta_initialize", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "talib/_common.pxi":41 + * _ta_check_success('TA_Initialize', ret_code) + * + * def _ta_shutdown(): # <<<<<<<<<<<<<< + * cdef TA_RetCode ret_code + * ret_code = lib.TA_Shutdown() + */ + +/* Python wrapper */ +static PyObject *__pyx_pw_5talib_8c_ta_lib_5_ta_shutdown(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ +static PyMethodDef __pyx_mdef_5talib_8c_ta_lib_5_ta_shutdown = {"_ta_shutdown", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_5_ta_shutdown, METH_NOARGS, 0}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_5_ta_shutdown(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { + PyObject *__pyx_r = 0; + __Pyx_RefNannyDeclarations + __Pyx_RefNannySetupContext("_ta_shutdown (wrapper)", 0); + __pyx_r = __pyx_pf_5talib_8c_ta_lib_4_ta_shutdown(__pyx_self); + + /* function exit code */ + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +static PyObject *__pyx_pf_5talib_8c_ta_lib_4_ta_shutdown(CYTHON_UNUSED PyObject *__pyx_self) { + TA_RetCode __pyx_v_ret_code; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + PyObject *__pyx_t_1 = NULL; + __Pyx_RefNannySetupContext("_ta_shutdown", 0); + + /* "talib/_common.pxi":43 + * def _ta_shutdown(): + * cdef TA_RetCode ret_code + * ret_code = lib.TA_Shutdown() # <<<<<<<<<<<<<< + * _ta_check_success('TA_Shutdown', ret_code) + * + */ + __pyx_v_ret_code = TA_Shutdown(); + + /* "talib/_common.pxi":44 + * cdef TA_RetCode ret_code + * ret_code = lib.TA_Shutdown() + * _ta_check_success('TA_Shutdown', ret_code) # <<<<<<<<<<<<<< + * + * class MA_Type(object): + */ + __pyx_t_1 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_Shutdown, __pyx_v_ret_code, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 44, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + + /* "talib/_common.pxi":41 + * _ta_check_success('TA_Initialize', ret_code) + * + * def _ta_shutdown(): # <<<<<<<<<<<<<< + * cdef TA_RetCode ret_code + * ret_code = lib.TA_Shutdown() + */ + + /* function exit code */ + __pyx_r = Py_None; __Pyx_INCREF(Py_None); + goto __pyx_L0; + __pyx_L1_error:; + __Pyx_XDECREF(__pyx_t_1); + __Pyx_AddTraceback("talib.c_ta_lib._ta_shutdown", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "talib/_common.pxi":49 + * SMA, EMA, WMA, DEMA, TEMA, TRIMA, KAMA, MAMA, T3 = range(9) + * + * def __init__(self): # <<<<<<<<<<<<<< + * self._lookup = { + * MA_Type.SMA: 'Simple Moving Average', + */ + +/* Python wrapper */ +static PyObject *__pyx_pw_5talib_8c_ta_lib_7MA_Type_1__init__(PyObject *__pyx_self, PyObject *__pyx_v_self); /*proto*/ +static PyMethodDef __pyx_mdef_5talib_8c_ta_lib_7MA_Type_1__init__ = {"__init__", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_7MA_Type_1__init__, METH_O, 0}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_7MA_Type_1__init__(PyObject *__pyx_self, PyObject *__pyx_v_self) { + PyObject *__pyx_r = 0; + __Pyx_RefNannyDeclarations + __Pyx_RefNannySetupContext("__init__ (wrapper)", 0); + __pyx_r = __pyx_pf_5talib_8c_ta_lib_7MA_Type___init__(__pyx_self, ((PyObject *)__pyx_v_self)); + + /* function exit code */ + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +static PyObject *__pyx_pf_5talib_8c_ta_lib_7MA_Type___init__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self) { + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + PyObject *__pyx_t_1 = NULL; + PyObject *__pyx_t_2 = NULL; + PyObject *__pyx_t_3 = NULL; + __Pyx_RefNannySetupContext("__init__", 0); + + /* "talib/_common.pxi":51 + * def __init__(self): + * self._lookup = { + * MA_Type.SMA: 'Simple Moving Average', # <<<<<<<<<<<<<< + * MA_Type.EMA: 'Exponential Moving Average', + * MA_Type.WMA: 'Weighted Moving Average', + */ + __pyx_t_1 = PyDict_New(); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 51, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_MA_Type); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 51, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_SMA); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 51, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + if (PyDict_SetItem(__pyx_t_1, __pyx_t_3, __pyx_kp_s_Simple_Moving_Average) < 0) __PYX_ERR(0, 51, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + + /* "talib/_common.pxi":52 + * self._lookup = { + * MA_Type.SMA: 'Simple Moving Average', + * MA_Type.EMA: 'Exponential Moving Average', # <<<<<<<<<<<<<< + * MA_Type.WMA: 'Weighted Moving Average', + * MA_Type.DEMA: 'Double Exponential Moving Average', + */ + __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_MA_Type); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 52, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_EMA); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 52, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + if (PyDict_SetItem(__pyx_t_1, __pyx_t_2, __pyx_kp_s_Exponential_Moving_Average) < 0) __PYX_ERR(0, 51, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_common.pxi":53 + * MA_Type.SMA: 'Simple Moving Average', + * MA_Type.EMA: 'Exponential Moving Average', + * MA_Type.WMA: 'Weighted Moving Average', # <<<<<<<<<<<<<< + * MA_Type.DEMA: 'Double Exponential Moving Average', + * MA_Type.TEMA: 'Triple Exponential Moving Average', + */ + __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_MA_Type); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 53, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_WMA); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 53, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + if (PyDict_SetItem(__pyx_t_1, __pyx_t_3, __pyx_kp_s_Weighted_Moving_Average) < 0) __PYX_ERR(0, 51, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + + /* "talib/_common.pxi":54 + * MA_Type.EMA: 'Exponential Moving Average', + * MA_Type.WMA: 'Weighted Moving Average', + * MA_Type.DEMA: 'Double Exponential Moving Average', # <<<<<<<<<<<<<< + * MA_Type.TEMA: 'Triple Exponential Moving Average', + * MA_Type.TRIMA: 'Triangular Moving Average', + */ + __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_MA_Type); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 54, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_DEMA); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 54, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + if (PyDict_SetItem(__pyx_t_1, __pyx_t_2, __pyx_kp_s_Double_Exponential_Moving_Averag) < 0) __PYX_ERR(0, 51, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_common.pxi":55 + * MA_Type.WMA: 'Weighted Moving Average', + * MA_Type.DEMA: 'Double Exponential Moving Average', + * MA_Type.TEMA: 'Triple Exponential Moving Average', # <<<<<<<<<<<<<< + * MA_Type.TRIMA: 'Triangular Moving Average', + * MA_Type.KAMA: 'Kaufman Adaptive Moving Average', + */ + __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_MA_Type); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 55, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_TEMA); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 55, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + if (PyDict_SetItem(__pyx_t_1, __pyx_t_3, __pyx_kp_s_Triple_Exponential_Moving_Averag) < 0) __PYX_ERR(0, 51, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + + /* "talib/_common.pxi":56 + * MA_Type.DEMA: 'Double Exponential Moving Average', + * MA_Type.TEMA: 'Triple Exponential Moving Average', + * MA_Type.TRIMA: 'Triangular Moving Average', # <<<<<<<<<<<<<< + * MA_Type.KAMA: 'Kaufman Adaptive Moving Average', + * MA_Type.MAMA: 'MESA Adaptive Moving Average', + */ + __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_MA_Type); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 56, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_TRIMA); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 56, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + if (PyDict_SetItem(__pyx_t_1, __pyx_t_2, __pyx_kp_s_Triangular_Moving_Average) < 0) __PYX_ERR(0, 51, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_common.pxi":57 + * MA_Type.TEMA: 'Triple Exponential Moving Average', + * MA_Type.TRIMA: 'Triangular Moving Average', + * MA_Type.KAMA: 'Kaufman Adaptive Moving Average', # <<<<<<<<<<<<<< + * MA_Type.MAMA: 'MESA Adaptive Moving Average', + * MA_Type.T3: 'Triple Generalized Double Exponential Moving Average', + */ + __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_MA_Type); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 57, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_KAMA); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 57, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + if (PyDict_SetItem(__pyx_t_1, __pyx_t_3, __pyx_kp_s_Kaufman_Adaptive_Moving_Average) < 0) __PYX_ERR(0, 51, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + + /* "talib/_common.pxi":58 + * MA_Type.TRIMA: 'Triangular Moving Average', + * MA_Type.KAMA: 'Kaufman Adaptive Moving Average', + * MA_Type.MAMA: 'MESA Adaptive Moving Average', # <<<<<<<<<<<<<< + * MA_Type.T3: 'Triple Generalized Double Exponential Moving Average', + * } + */ + __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_MA_Type); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 58, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_MAMA); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 58, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + if (PyDict_SetItem(__pyx_t_1, __pyx_t_2, __pyx_kp_s_MESA_Adaptive_Moving_Average) < 0) __PYX_ERR(0, 51, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_common.pxi":59 + * MA_Type.KAMA: 'Kaufman Adaptive Moving Average', + * MA_Type.MAMA: 'MESA Adaptive Moving Average', + * MA_Type.T3: 'Triple Generalized Double Exponential Moving Average', # <<<<<<<<<<<<<< + * } + * + */ + __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_MA_Type); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 59, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_T3); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 59, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + if (PyDict_SetItem(__pyx_t_1, __pyx_t_3, __pyx_kp_s_Triple_Generalized_Double_Expone) < 0) __PYX_ERR(0, 51, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + + /* "talib/_common.pxi":50 + * + * def __init__(self): + * self._lookup = { # <<<<<<<<<<<<<< + * MA_Type.SMA: 'Simple Moving Average', + * MA_Type.EMA: 'Exponential Moving Average', + */ + if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_lookup, __pyx_t_1) < 0) __PYX_ERR(0, 50, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + + /* "talib/_common.pxi":49 + * SMA, EMA, WMA, DEMA, TEMA, TRIMA, KAMA, MAMA, T3 = range(9) + * + * def __init__(self): # <<<<<<<<<<<<<< + * self._lookup = { + * MA_Type.SMA: 'Simple Moving Average', + */ + + /* function exit code */ + __pyx_r = Py_None; __Pyx_INCREF(Py_None); + goto __pyx_L0; + __pyx_L1_error:; + __Pyx_XDECREF(__pyx_t_1); + __Pyx_XDECREF(__pyx_t_2); + __Pyx_XDECREF(__pyx_t_3); + __Pyx_AddTraceback("talib.c_ta_lib.MA_Type.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "talib/_common.pxi":62 + * } + * + * def __getitem__(self, type_): # <<<<<<<<<<<<<< + * return self._lookup[type_] + * + */ + +/* Python wrapper */ +static PyObject *__pyx_pw_5talib_8c_ta_lib_7MA_Type_3__getitem__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static PyMethodDef __pyx_mdef_5talib_8c_ta_lib_7MA_Type_3__getitem__ = {"__getitem__", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_7MA_Type_3__getitem__, METH_VARARGS|METH_KEYWORDS, 0}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_7MA_Type_3__getitem__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { + PyObject *__pyx_v_self = 0; + PyObject *__pyx_v_type_ = 0; + PyObject *__pyx_r = 0; + __Pyx_RefNannyDeclarations + __Pyx_RefNannySetupContext("__getitem__ (wrapper)", 0); + { + static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_self,&__pyx_n_s_type,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_self)) != 0)) kw_args--; + else goto __pyx_L5_argtuple_error; + case 1: + if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_type)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("__getitem__", 1, 2, 2, 1); __PYX_ERR(0, 62, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__getitem__") < 0)) __PYX_ERR(0, 62, __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_self = values[0]; + __pyx_v_type_ = values[1]; + } + goto __pyx_L4_argument_unpacking_done; + __pyx_L5_argtuple_error:; + __Pyx_RaiseArgtupleInvalid("__getitem__", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 62, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.MA_Type.__getitem__", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_RefNannyFinishContext(); + return NULL; + __pyx_L4_argument_unpacking_done:; + __pyx_r = __pyx_pf_5talib_8c_ta_lib_7MA_Type_2__getitem__(__pyx_self, __pyx_v_self, __pyx_v_type_); + + /* function exit code */ + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +static PyObject *__pyx_pf_5talib_8c_ta_lib_7MA_Type_2__getitem__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_type_) { + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + PyObject *__pyx_t_1 = NULL; + PyObject *__pyx_t_2 = NULL; + __Pyx_RefNannySetupContext("__getitem__", 0); + + /* "talib/_common.pxi":63 + * + * def __getitem__(self, type_): + * return self._lookup[type_] # <<<<<<<<<<<<<< + * + * MA_Type = MA_Type() + */ + __Pyx_XDECREF(__pyx_r); + __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_lookup); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 63, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __pyx_t_2 = PyObject_GetItem(__pyx_t_1, __pyx_v_type_); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 63, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_common.pxi":62 + * } + * + * def __getitem__(self, type_): # <<<<<<<<<<<<<< + * return self._lookup[type_] + * + */ + + /* function exit code */ + __pyx_L1_error:; + __Pyx_XDECREF(__pyx_t_1); + __Pyx_XDECREF(__pyx_t_2); + __Pyx_AddTraceback("talib.c_ta_lib.MA_Type.__getitem__", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "talib/_common.pxi":76 + * _ta_func_unst_ids[name] = i + * + * def _ta_set_unstable_period(name, period): # <<<<<<<<<<<<<< + * cdef TA_RetCode ret_code + * cdef TA_FuncUnstId id = _ta_func_unst_ids[name] + */ + +/* Python wrapper */ +static PyObject *__pyx_pw_5talib_8c_ta_lib_7_ta_set_unstable_period(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static PyMethodDef __pyx_mdef_5talib_8c_ta_lib_7_ta_set_unstable_period = {"_ta_set_unstable_period", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_7_ta_set_unstable_period, METH_VARARGS|METH_KEYWORDS, 0}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_7_ta_set_unstable_period(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { + PyObject *__pyx_v_name = 0; + PyObject *__pyx_v_period = 0; + PyObject *__pyx_r = 0; + __Pyx_RefNannyDeclarations + __Pyx_RefNannySetupContext("_ta_set_unstable_period (wrapper)", 0); + { + static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_name,&__pyx_n_s_period,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_name)) != 0)) kw_args--; + else goto __pyx_L5_argtuple_error; + case 1: + if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_period)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("_ta_set_unstable_period", 1, 2, 2, 1); __PYX_ERR(0, 76, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "_ta_set_unstable_period") < 0)) __PYX_ERR(0, 76, __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_name = values[0]; + __pyx_v_period = values[1]; + } + goto __pyx_L4_argument_unpacking_done; + __pyx_L5_argtuple_error:; + __Pyx_RaiseArgtupleInvalid("_ta_set_unstable_period", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(0, 76, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib._ta_set_unstable_period", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_RefNannyFinishContext(); + return NULL; + __pyx_L4_argument_unpacking_done:; + __pyx_r = __pyx_pf_5talib_8c_ta_lib_6_ta_set_unstable_period(__pyx_self, __pyx_v_name, __pyx_v_period); + + /* function exit code */ + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +static PyObject *__pyx_pf_5talib_8c_ta_lib_6_ta_set_unstable_period(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_name, PyObject *__pyx_v_period) { + TA_RetCode __pyx_v_ret_code; + TA_FuncUnstId __pyx_v_id; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + PyObject *__pyx_t_1 = NULL; + PyObject *__pyx_t_2 = NULL; + TA_FuncUnstId __pyx_t_3; + unsigned int __pyx_t_4; + __Pyx_RefNannySetupContext("_ta_set_unstable_period", 0); + + /* "talib/_common.pxi":78 + * def _ta_set_unstable_period(name, period): + * cdef TA_RetCode ret_code + * cdef TA_FuncUnstId id = _ta_func_unst_ids[name] # <<<<<<<<<<<<<< + * ret_code = lib.TA_SetUnstablePeriod(id, period) + * _ta_check_success('TA_SetUnstablePeriod', ret_code) + */ + __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_ta_func_unst_ids); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 78, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __pyx_t_2 = PyObject_GetItem(__pyx_t_1, __pyx_v_name); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 78, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + __pyx_t_3 = __Pyx_PyInt_As_TA_FuncUnstId(__pyx_t_2); if (unlikely((__pyx_t_3 == (TA_FuncUnstId)-1) && PyErr_Occurred())) __PYX_ERR(0, 78, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __pyx_v_id = __pyx_t_3; + + /* "talib/_common.pxi":79 + * cdef TA_RetCode ret_code + * cdef TA_FuncUnstId id = _ta_func_unst_ids[name] + * ret_code = lib.TA_SetUnstablePeriod(id, period) # <<<<<<<<<<<<<< + * _ta_check_success('TA_SetUnstablePeriod', ret_code) + * + */ + __pyx_t_4 = __Pyx_PyInt_As_unsigned_int(__pyx_v_period); if (unlikely((__pyx_t_4 == (unsigned int)-1) && PyErr_Occurred())) __PYX_ERR(0, 79, __pyx_L1_error) + __pyx_v_ret_code = TA_SetUnstablePeriod(__pyx_v_id, __pyx_t_4); + + /* "talib/_common.pxi":80 + * cdef TA_FuncUnstId id = _ta_func_unst_ids[name] + * ret_code = lib.TA_SetUnstablePeriod(id, period) + * _ta_check_success('TA_SetUnstablePeriod', ret_code) # <<<<<<<<<<<<<< + * + * def _ta_get_unstable_period(name): + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_SetUnstablePeriod, __pyx_v_ret_code, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 80, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_common.pxi":76 + * _ta_func_unst_ids[name] = i + * + * def _ta_set_unstable_period(name, period): # <<<<<<<<<<<<<< + * cdef TA_RetCode ret_code + * cdef TA_FuncUnstId id = _ta_func_unst_ids[name] + */ + + /* function exit code */ + __pyx_r = Py_None; __Pyx_INCREF(Py_None); + goto __pyx_L0; + __pyx_L1_error:; + __Pyx_XDECREF(__pyx_t_1); + __Pyx_XDECREF(__pyx_t_2); + __Pyx_AddTraceback("talib.c_ta_lib._ta_set_unstable_period", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "talib/_common.pxi":82 + * _ta_check_success('TA_SetUnstablePeriod', ret_code) + * + * def _ta_get_unstable_period(name): # <<<<<<<<<<<<<< + * cdef unsigned int period + * cdef TA_FuncUnstId id = _ta_func_unst_ids[name] + */ + +/* Python wrapper */ +static PyObject *__pyx_pw_5talib_8c_ta_lib_9_ta_get_unstable_period(PyObject *__pyx_self, PyObject *__pyx_v_name); /*proto*/ +static PyMethodDef __pyx_mdef_5talib_8c_ta_lib_9_ta_get_unstable_period = {"_ta_get_unstable_period", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_9_ta_get_unstable_period, METH_O, 0}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_9_ta_get_unstable_period(PyObject *__pyx_self, PyObject *__pyx_v_name) { + PyObject *__pyx_r = 0; + __Pyx_RefNannyDeclarations + __Pyx_RefNannySetupContext("_ta_get_unstable_period (wrapper)", 0); + __pyx_r = __pyx_pf_5talib_8c_ta_lib_8_ta_get_unstable_period(__pyx_self, ((PyObject *)__pyx_v_name)); + + /* function exit code */ + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +static PyObject *__pyx_pf_5talib_8c_ta_lib_8_ta_get_unstable_period(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_name) { + unsigned int __pyx_v_period; + TA_FuncUnstId __pyx_v_id; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + PyObject *__pyx_t_1 = NULL; + PyObject *__pyx_t_2 = NULL; + TA_FuncUnstId __pyx_t_3; + __Pyx_RefNannySetupContext("_ta_get_unstable_period", 0); + + /* "talib/_common.pxi":84 + * def _ta_get_unstable_period(name): + * cdef unsigned int period + * cdef TA_FuncUnstId id = _ta_func_unst_ids[name] # <<<<<<<<<<<<<< + * period = lib.TA_GetUnstablePeriod(id) + * return period + */ + __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_ta_func_unst_ids); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 84, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __pyx_t_2 = PyObject_GetItem(__pyx_t_1, __pyx_v_name); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 84, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + __pyx_t_3 = __Pyx_PyInt_As_TA_FuncUnstId(__pyx_t_2); if (unlikely((__pyx_t_3 == (TA_FuncUnstId)-1) && PyErr_Occurred())) __PYX_ERR(0, 84, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __pyx_v_id = __pyx_t_3; + + /* "talib/_common.pxi":85 + * cdef unsigned int period + * cdef TA_FuncUnstId id = _ta_func_unst_ids[name] + * period = lib.TA_GetUnstablePeriod(id) # <<<<<<<<<<<<<< + * return period + */ + __pyx_v_period = TA_GetUnstablePeriod(__pyx_v_id); + + /* "talib/_common.pxi":86 + * cdef TA_FuncUnstId id = _ta_func_unst_ids[name] + * period = lib.TA_GetUnstablePeriod(id) + * return period # <<<<<<<<<<<<<< + */ + __Pyx_XDECREF(__pyx_r); + __pyx_t_2 = __Pyx_PyInt_From_unsigned_int(__pyx_v_period); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 86, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_common.pxi":82 + * _ta_check_success('TA_SetUnstablePeriod', ret_code) + * + * def _ta_get_unstable_period(name): # <<<<<<<<<<<<<< + * cdef unsigned int period + * cdef TA_FuncUnstId id = _ta_func_unst_ids[name] + */ + + /* function exit code */ + __pyx_L1_error:; + __Pyx_XDECREF(__pyx_t_1); + __Pyx_XDECREF(__pyx_t_2); + __Pyx_AddTraceback("talib.c_ta_lib._ta_get_unstable_period", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "talib/_func.pxi":10 + * @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_8c_ta_lib_11ACOS(PyObject *__pyx_self, PyObject *__pyx_v_real); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_10ACOS[] = " 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_8c_ta_lib_11ACOS = {"ACOS", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_11ACOS, METH_O, __pyx_doc_5talib_8c_ta_lib_10ACOS}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_11ACOS(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(2, 10, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_10ACOS(__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_8c_ta_lib_10ACOS(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real) { + npy_intp __pyx_v_length; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + TA_RetCode __pyx_v_retCode; + double *__pyx_v_real_data; + int __pyx_v_outbegidx; + int __pyx_v_outnbelement; + PyArrayObject *__pyx_v_outreal = 0; + double *__pyx_v_outreal_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __Pyx_RefNannySetupContext("ACOS", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real); + + /* "talib/_func.pxi":30 + * np.ndarray outreal + * double* outreal_data + * 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/_func.pxi":31 + * double* outreal_data + * 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(2, 31, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 31, __pyx_L1_error) + + /* "talib/_func.pxi":30 + * np.ndarray outreal + * double* outreal_data + * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real is not double") + * if real.ndim != 1: + */ + } + + /* "talib/_func.pxi":32 + * 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/_func.pxi":33 + * 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(2, 33, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 33, __pyx_L1_error) + + /* "talib/_func.pxi":32 + * 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/_func.pxi":34 + * 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 = real.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":35 + * raise Exception("real has wrong dimensions") + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< + * real_data = real.data + * length = real.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 35, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 35, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":34 + * 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 = real.data + */ + } + + /* "talib/_func.pxi":36 + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data # <<<<<<<<<<<<<< + * length = real.shape[0] + * begidx = 0 + */ + __pyx_v_real_data = ((double *)__pyx_v_real->data); + + /* "talib/_func.pxi":37 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data + * length = real.shape[0] # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_v_length = (__pyx_v_real->dimensions[0]); + + /* "talib/_func.pxi":38 + * real_data = real.data + * length = real.shape[0] + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = real_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":39 + * length = real.shape[0] + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = real_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":40 + * begidx = 0 + * for i from 0 <= i < length: + * val = real_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_real_data[__pyx_v_i]); + + /* "talib/_func.pxi":41 + * for i from 0 <= i < length: + * val = real_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":42 + * val = real_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L6_continue; + + /* "talib/_func.pxi":41 + * for i from 0 <= i < length: + * val = real_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":43 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":44 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L7_break; + __pyx_L6_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":46 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_ACOS_Lookback( ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__3, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 46, __pyx_L1_error) + } + __pyx_L7_break:; + + /* "talib/_func.pxi":47 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_ACOS_Lookback( ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":48 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_ACOS_Lookback( ) # <<<<<<<<<<<<<< + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_ACOS_Lookback()); + + /* "talib/_func.pxi":49 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_ACOS_Lookback( ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 49, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 49, __pyx_L1_error) + __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":50 + * lookback = begidx + lib.TA_ACOS_Lookback( ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + */ + __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); + + /* "talib/_func.pxi":51 + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outreal_data[i] = NaN + * retCode = lib.TA_ACOS( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":52 + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN # <<<<<<<<<<<<<< + * retCode = lib.TA_ACOS( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_ACOS", retCode) + */ + (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_8c_ta_lib_NaN; + } + + /* "talib/_func.pxi":53 + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + * retCode = lib.TA_ACOS( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_ACOS", retCode) + * return outreal + */ + __pyx_v_retCode = TA_ACOS(0, __pyx_v_endidx, ((double *)(__pyx_v_real_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":54 + * outreal_data[i] = NaN + * retCode = lib.TA_ACOS( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_ACOS", retCode) # <<<<<<<<<<<<<< + * return outreal + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_ACOS, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 54, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":55 + * retCode = lib.TA_ACOS( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_ACOS", retCode) + * return outreal # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); + __pyx_r = ((PyObject *)__pyx_v_outreal); + goto __pyx_L0; + + /* "talib/_func.pxi":10 + * @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.c_ta_lib.ACOS", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outreal); + __Pyx_XDECREF((PyObject *)__pyx_v_real); + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "talib/_func.pxi":59 + * @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_8c_ta_lib_13AD(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_12AD[] = " 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_8c_ta_lib_13AD = {"AD", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_13AD, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_12AD}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_13AD(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(2, 59, __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(2, 59, __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(2, 59, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "AD") < 0)) __PYX_ERR(2, 59, __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(2, 59, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 59, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(2, 59, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(2, 59, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_volume), __pyx_ptype_5numpy_ndarray, 0, "volume", 0))) __PYX_ERR(2, 59, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_12AD(__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_8c_ta_lib_12AD(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; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + 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; + PyArrayObject *__pyx_v_outreal = 0; + double *__pyx_v_outreal_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __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/_func.pxi":82 + * np.ndarray outreal + * double* outreal_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/_func.pxi":83 + * double* outreal_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__4, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 83, __pyx_L1_error) + + /* "talib/_func.pxi":82 + * np.ndarray outreal + * double* outreal_data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_func.pxi":84 + * 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/_func.pxi":85 + * raise 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__5, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 85, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 85, __pyx_L1_error) + + /* "talib/_func.pxi":84 + * 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/_func.pxi":86 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":87 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 87, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 87, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":86 + * 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 = high.data + */ + } + + /* "talib/_func.pxi":88 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":89 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":90 + * high_data = 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__6, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 90, __pyx_L1_error) + + /* "talib/_func.pxi":89 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_func.pxi":91 + * 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/_func.pxi":92 + * raise 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__7, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 92, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 92, __pyx_L1_error) + + /* "talib/_func.pxi":91 + * 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/_func.pxi":93 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":94 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 94, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 94, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":93 + * 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 = low.data + */ + } + + /* "talib/_func.pxi":95 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":96 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":97 + * low_data = 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__8, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 97, __pyx_L1_error) + + /* "talib/_func.pxi":96 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_func.pxi":98 + * 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/_func.pxi":99 + * raise 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__9, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 99, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 99, __pyx_L1_error) + + /* "talib/_func.pxi":98 + * 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/_func.pxi":100 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":101 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * if PyArray_TYPE(volume) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 101, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 101, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":100 + * 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 = close.data + */ + } + + /* "talib/_func.pxi":102 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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/_func.pxi":103 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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/_func.pxi":104 + * close_data = 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__10, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 104, __pyx_L1_error) + + /* "talib/_func.pxi":103 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data + * if PyArray_TYPE(volume) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("volume is not double") + * if volume.ndim != 1: + */ + } + + /* "talib/_func.pxi":105 + * 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/_func.pxi":106 + * 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__11, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 106, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 106, __pyx_L1_error) + + /* "talib/_func.pxi":105 + * 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/_func.pxi":107 + * 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 = volume.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_volume) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":108 + * raise Exception("volume has wrong dimensions") + * if not (PyArray_FLAGS(volume) & np.NPY_C_CONTIGUOUS): + * volume = PyArray_GETCONTIGUOUS(volume) # <<<<<<<<<<<<<< + * volume_data = volume.data + * length = high.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_volume); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 108, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 108, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_volume, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":107 + * 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 = volume.data + */ + } + + /* "talib/_func.pxi":109 + * if not (PyArray_FLAGS(volume) & np.NPY_C_CONTIGUOUS): + * volume = PyArray_GETCONTIGUOUS(volume) + * volume_data = volume.data # <<<<<<<<<<<<<< + * length = high.shape[0] + * if length != low.shape[0]: + */ + __pyx_v_volume_data = ((double *)__pyx_v_volume->data); + + /* "talib/_func.pxi":110 + * volume = PyArray_GETCONTIGUOUS(volume) + * volume_data = 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/_func.pxi":111 + * volume_data = 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/_func.pxi":112 + * 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__12, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 112, __pyx_L1_error) + + /* "talib/_func.pxi":111 + * volume_data = volume.data + * length = high.shape[0] + * if length != low.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != close.shape[0]: + */ + } + + /* "talib/_func.pxi":113 + * 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/_func.pxi":114 + * 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__13, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 114, __pyx_L1_error) + + /* "talib/_func.pxi":113 + * 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/_func.pxi":115 + * if length != close.shape[0]: + * raise Exception("input lengths are different") + * if length != volume.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + __pyx_t_1 = ((__pyx_v_length != (__pyx_v_volume->dimensions[0])) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":116 + * raise Exception("input lengths are different") + * if length != volume.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__14, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 116, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 116, __pyx_L1_error) + + /* "talib/_func.pxi":115 + * if length != close.shape[0]: + * raise Exception("input lengths are different") + * if length != volume.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + } + + /* "talib/_func.pxi":117 + * if length != volume.shape[0]: + * raise Exception("input lengths are different") + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = high_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":118 + * raise Exception("input lengths are different") + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = high_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":119 + * begidx = 0 + * for i from 0 <= i < length: + * val = high_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); + + /* "talib/_func.pxi":120 + * for i from 0 <= i < length: + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":121 + * val = high_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = low_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":120 + * for i from 0 <= i < length: + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + } + + /* "talib/_func.pxi":122 + * if val != val: + * continue + * val = low_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); + + /* "talib/_func.pxi":123 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":124 + * val = low_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = close_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":123 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + } + + /* "talib/_func.pxi":125 + * if val != val: + * continue + * val = close_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); + + /* "talib/_func.pxi":126 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = volume_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":127 + * val = close_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = volume_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":126 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = volume_data[i] + */ + } + + /* "talib/_func.pxi":128 + * if val != val: + * continue + * val = volume_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_volume_data[__pyx_v_i]); + + /* "talib/_func.pxi":129 + * continue + * val = volume_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":130 + * val = volume_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":129 + * continue + * val = volume_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":131 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":132 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L19_break; + __pyx_L18_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":134 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_AD_Lookback( ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__15, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 134, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 134, __pyx_L1_error) + } + __pyx_L19_break:; + + /* "talib/_func.pxi":135 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_AD_Lookback( ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":136 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_AD_Lookback( ) # <<<<<<<<<<<<<< + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_AD_Lookback()); + + /* "talib/_func.pxi":137 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_AD_Lookback( ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 137, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 137, __pyx_L1_error) + __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":138 + * lookback = begidx + lib.TA_AD_Lookback( ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + */ + __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); + + /* "talib/_func.pxi":139 + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outreal_data[i] = NaN + * retCode = lib.TA_AD( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , (volume_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":140 + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN # <<<<<<<<<<<<<< + * retCode = lib.TA_AD( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , (volume_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_AD", retCode) + */ + (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_8c_ta_lib_NaN; + } + + /* "talib/_func.pxi":141 + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + * retCode = lib.TA_AD( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , (volume_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_AD", retCode) + * return outreal + */ + __pyx_v_retCode = TA_AD(0, __pyx_v_endidx, ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), ((double *)(__pyx_v_volume_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":142 + * outreal_data[i] = NaN + * retCode = lib.TA_AD( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , (volume_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_AD", retCode) # <<<<<<<<<<<<<< + * return outreal + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_AD, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 142, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":143 + * retCode = lib.TA_AD( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , (volume_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_AD", retCode) + * return outreal # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); + __pyx_r = ((PyObject *)__pyx_v_outreal); + goto __pyx_L0; + + /* "talib/_func.pxi":59 + * @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.c_ta_lib.AD", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outreal); + __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/_func.pxi":147 + * @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_8c_ta_lib_15ADD(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_14ADD[] = " 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_8c_ta_lib_15ADD = {"ADD", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_15ADD, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_14ADD}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_15ADD(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(2, 147, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "ADD") < 0)) __PYX_ERR(2, 147, __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(2, 147, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 147, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_real1), __pyx_ptype_5numpy_ndarray, 0, "real1", 0))) __PYX_ERR(2, 147, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_14ADD(__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_8c_ta_lib_14ADD(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real0, PyArrayObject *__pyx_v_real1) { + npy_intp __pyx_v_length; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + TA_RetCode __pyx_v_retCode; + double *__pyx_v_real0_data; + double *__pyx_v_real1_data; + int __pyx_v_outbegidx; + int __pyx_v_outnbelement; + PyArrayObject *__pyx_v_outreal = 0; + double *__pyx_v_outreal_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __Pyx_RefNannySetupContext("ADD", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real0); + __Pyx_INCREF((PyObject *)__pyx_v_real1); + + /* "talib/_func.pxi":169 + * np.ndarray outreal + * double* outreal_data + * 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/_func.pxi":170 + * double* outreal_data + * 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__16, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 170, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 170, __pyx_L1_error) + + /* "talib/_func.pxi":169 + * np.ndarray outreal + * double* outreal_data + * if PyArray_TYPE(real0) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real0 is not double") + * if real0.ndim != 1: + */ + } + + /* "talib/_func.pxi":171 + * 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/_func.pxi":172 + * 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__17, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 172, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 172, __pyx_L1_error) + + /* "talib/_func.pxi":171 + * 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/_func.pxi":173 + * 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 = real0.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real0) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":174 + * raise Exception("real0 has wrong dimensions") + * if not (PyArray_FLAGS(real0) & np.NPY_C_CONTIGUOUS): + * real0 = PyArray_GETCONTIGUOUS(real0) # <<<<<<<<<<<<<< + * real0_data = real0.data + * if PyArray_TYPE(real1) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 174, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 174, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real0, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":173 + * 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 = real0.data + */ + } + + /* "talib/_func.pxi":175 + * if not (PyArray_FLAGS(real0) & np.NPY_C_CONTIGUOUS): + * real0 = PyArray_GETCONTIGUOUS(real0) + * real0_data = 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/_func.pxi":176 + * real0 = PyArray_GETCONTIGUOUS(real0) + * real0_data = 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/_func.pxi":177 + * real0_data = 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__18, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 177, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 177, __pyx_L1_error) + + /* "talib/_func.pxi":176 + * real0 = PyArray_GETCONTIGUOUS(real0) + * real0_data = real0.data + * if PyArray_TYPE(real1) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real1 is not double") + * if real1.ndim != 1: + */ + } + + /* "talib/_func.pxi":178 + * 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/_func.pxi":179 + * 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__19, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 179, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 179, __pyx_L1_error) + + /* "talib/_func.pxi":178 + * 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/_func.pxi":180 + * 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 = real1.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real1) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":181 + * raise Exception("real1 has wrong dimensions") + * if not (PyArray_FLAGS(real1) & np.NPY_C_CONTIGUOUS): + * real1 = PyArray_GETCONTIGUOUS(real1) # <<<<<<<<<<<<<< + * real1_data = real1.data + * length = real0.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real1); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 181, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 181, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real1, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":180 + * 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 = real1.data + */ + } + + /* "talib/_func.pxi":182 + * if not (PyArray_FLAGS(real1) & np.NPY_C_CONTIGUOUS): + * real1 = PyArray_GETCONTIGUOUS(real1) + * real1_data = real1.data # <<<<<<<<<<<<<< + * length = real0.shape[0] + * if length != real1.shape[0]: + */ + __pyx_v_real1_data = ((double *)__pyx_v_real1->data); + + /* "talib/_func.pxi":183 + * real1 = PyArray_GETCONTIGUOUS(real1) + * real1_data = 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/_func.pxi":184 + * real1_data = real1.data + * length = real0.shape[0] + * if length != real1.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + __pyx_t_1 = ((__pyx_v_length != (__pyx_v_real1->dimensions[0])) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":185 + * length = real0.shape[0] + * if length != real1.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__20, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 185, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 185, __pyx_L1_error) + + /* "talib/_func.pxi":184 + * real1_data = real1.data + * length = real0.shape[0] + * if length != real1.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + } + + /* "talib/_func.pxi":186 + * if length != real1.shape[0]: + * raise Exception("input lengths are different") + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = real0_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":187 + * raise Exception("input lengths are different") + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = real0_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":188 + * begidx = 0 + * for i from 0 <= i < length: + * val = real0_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_real0_data[__pyx_v_i]); + + /* "talib/_func.pxi":189 + * for i from 0 <= i < length: + * val = real0_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = real1_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":190 + * val = real0_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = real1_data[i] + * if val != val: + */ + goto __pyx_L10_continue; + + /* "talib/_func.pxi":189 + * for i from 0 <= i < length: + * val = real0_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = real1_data[i] + */ + } + + /* "talib/_func.pxi":191 + * if val != val: + * continue + * val = real1_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_real1_data[__pyx_v_i]); + + /* "talib/_func.pxi":192 + * continue + * val = real1_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":193 + * val = real1_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L10_continue; + + /* "talib/_func.pxi":192 + * continue + * val = real1_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":194 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":195 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L11_break; + __pyx_L10_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":197 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_ADD_Lookback( ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__21, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 197, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 197, __pyx_L1_error) + } + __pyx_L11_break:; + + /* "talib/_func.pxi":198 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_ADD_Lookback( ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":199 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_ADD_Lookback( ) # <<<<<<<<<<<<<< + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_ADD_Lookback()); + + /* "talib/_func.pxi":200 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_ADD_Lookback( ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 200, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 200, __pyx_L1_error) + __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":201 + * lookback = begidx + lib.TA_ADD_Lookback( ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + */ + __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); + + /* "talib/_func.pxi":202 + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outreal_data[i] = NaN + * retCode = lib.TA_ADD( 0 , endidx , (real0_data+begidx) , (real1_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":203 + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN # <<<<<<<<<<<<<< + * retCode = lib.TA_ADD( 0 , endidx , (real0_data+begidx) , (real1_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_ADD", retCode) + */ + (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_8c_ta_lib_NaN; + } + + /* "talib/_func.pxi":204 + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + * retCode = lib.TA_ADD( 0 , endidx , (real0_data+begidx) , (real1_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_ADD", retCode) + * return outreal + */ + __pyx_v_retCode = TA_ADD(0, __pyx_v_endidx, ((double *)(__pyx_v_real0_data + __pyx_v_begidx)), ((double *)(__pyx_v_real1_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":205 + * outreal_data[i] = NaN + * retCode = lib.TA_ADD( 0 , endidx , (real0_data+begidx) , (real1_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_ADD", retCode) # <<<<<<<<<<<<<< + * return outreal + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_ADD, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 205, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":206 + * retCode = lib.TA_ADD( 0 , endidx , (real0_data+begidx) , (real1_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_ADD", retCode) + * return outreal # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); + __pyx_r = ((PyObject *)__pyx_v_outreal); + goto __pyx_L0; + + /* "talib/_func.pxi":147 + * @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.c_ta_lib.ADD", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outreal); + __Pyx_XDECREF((PyObject *)__pyx_v_real0); + __Pyx_XDECREF((PyObject *)__pyx_v_real1); + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "talib/_func.pxi":210 + * @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_8c_ta_lib_17ADOSC(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_16ADOSC[] = " 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_8c_ta_lib_17ADOSC = {"ADOSC", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_17ADOSC, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_16ADOSC}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_17ADOSC(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(2, 210, __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(2, 210, __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(2, 210, __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(2, 210, __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(2, 210, __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(2, 210, __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(2, 210, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 210, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(2, 210, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(2, 210, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_volume), __pyx_ptype_5numpy_ndarray, 0, "volume", 0))) __PYX_ERR(2, 210, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_16ADOSC(__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_8c_ta_lib_16ADOSC(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; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + 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; + PyArrayObject *__pyx_v_outreal = 0; + double *__pyx_v_outreal_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __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/_func.pxi":236 + * np.ndarray outreal + * double* outreal_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/_func.pxi":237 + * double* outreal_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__22, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 237, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 237, __pyx_L1_error) + + /* "talib/_func.pxi":236 + * np.ndarray outreal + * double* outreal_data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_func.pxi":238 + * 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/_func.pxi":239 + * raise 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__23, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 239, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 239, __pyx_L1_error) + + /* "talib/_func.pxi":238 + * 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/_func.pxi":240 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":241 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 241, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 241, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":240 + * 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 = high.data + */ + } + + /* "talib/_func.pxi":242 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":243 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":244 + * high_data = 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__24, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 244, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 244, __pyx_L1_error) + + /* "talib/_func.pxi":243 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_func.pxi":245 + * 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/_func.pxi":246 + * raise 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__25, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 246, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 246, __pyx_L1_error) + + /* "talib/_func.pxi":245 + * 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/_func.pxi":247 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":248 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 248, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 248, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":247 + * 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 = low.data + */ + } + + /* "talib/_func.pxi":249 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":250 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":251 + * low_data = 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__26, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 251, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 251, __pyx_L1_error) + + /* "talib/_func.pxi":250 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_func.pxi":252 + * 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/_func.pxi":253 + * raise 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__27, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 253, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 253, __pyx_L1_error) + + /* "talib/_func.pxi":252 + * 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/_func.pxi":254 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":255 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * if PyArray_TYPE(volume) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 255, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 255, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":254 + * 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 = close.data + */ + } + + /* "talib/_func.pxi":256 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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/_func.pxi":257 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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/_func.pxi":258 + * close_data = 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__28, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 258, __pyx_L1_error) + + /* "talib/_func.pxi":257 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data + * if PyArray_TYPE(volume) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("volume is not double") + * if volume.ndim != 1: + */ + } + + /* "talib/_func.pxi":259 + * 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/_func.pxi":260 + * 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__29, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 260, __pyx_L1_error) + + /* "talib/_func.pxi":259 + * 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/_func.pxi":261 + * 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 = volume.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_volume) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":262 + * raise Exception("volume has wrong dimensions") + * if not (PyArray_FLAGS(volume) & np.NPY_C_CONTIGUOUS): + * volume = PyArray_GETCONTIGUOUS(volume) # <<<<<<<<<<<<<< + * volume_data = volume.data + * length = high.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_volume); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 262, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_volume, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":261 + * 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 = volume.data + */ + } + + /* "talib/_func.pxi":263 + * if not (PyArray_FLAGS(volume) & np.NPY_C_CONTIGUOUS): + * volume = PyArray_GETCONTIGUOUS(volume) + * volume_data = volume.data # <<<<<<<<<<<<<< + * length = high.shape[0] + * if length != low.shape[0]: + */ + __pyx_v_volume_data = ((double *)__pyx_v_volume->data); + + /* "talib/_func.pxi":264 + * volume = PyArray_GETCONTIGUOUS(volume) + * volume_data = 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/_func.pxi":265 + * volume_data = 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/_func.pxi":266 + * 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__30, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 266, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 266, __pyx_L1_error) + + /* "talib/_func.pxi":265 + * volume_data = volume.data + * length = high.shape[0] + * if length != low.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != close.shape[0]: + */ + } + + /* "talib/_func.pxi":267 + * 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/_func.pxi":268 + * 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__31, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 268, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 268, __pyx_L1_error) + + /* "talib/_func.pxi":267 + * 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/_func.pxi":269 + * if length != close.shape[0]: + * raise Exception("input lengths are different") + * if length != volume.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + __pyx_t_1 = ((__pyx_v_length != (__pyx_v_volume->dimensions[0])) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":270 + * raise Exception("input lengths are different") + * if length != volume.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__32, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 270, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 270, __pyx_L1_error) + + /* "talib/_func.pxi":269 + * if length != close.shape[0]: + * raise Exception("input lengths are different") + * if length != volume.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + } + + /* "talib/_func.pxi":271 + * if length != volume.shape[0]: + * raise Exception("input lengths are different") + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = high_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":272 + * raise Exception("input lengths are different") + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = high_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":273 + * begidx = 0 + * for i from 0 <= i < length: + * val = high_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); + + /* "talib/_func.pxi":274 + * for i from 0 <= i < length: + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":275 + * val = high_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = low_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":274 + * for i from 0 <= i < length: + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + } + + /* "talib/_func.pxi":276 + * if val != val: + * continue + * val = low_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); + + /* "talib/_func.pxi":277 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":278 + * val = low_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = close_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":277 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + } + + /* "talib/_func.pxi":279 + * if val != val: + * continue + * val = close_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); + + /* "talib/_func.pxi":280 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = volume_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":281 + * val = close_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = volume_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":280 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = volume_data[i] + */ + } + + /* "talib/_func.pxi":282 + * if val != val: + * continue + * val = volume_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_volume_data[__pyx_v_i]); + + /* "talib/_func.pxi":283 + * continue + * val = volume_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":284 + * val = volume_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":283 + * continue + * val = volume_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":285 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":286 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L19_break; + __pyx_L18_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":288 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_ADOSC_Lookback( fastperiod , slowperiod ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__33, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 288, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 288, __pyx_L1_error) + } + __pyx_L19_break:; + + /* "talib/_func.pxi":289 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_ADOSC_Lookback( fastperiod , slowperiod ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":290 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_ADOSC_Lookback( fastperiod , slowperiod ) # <<<<<<<<<<<<<< + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_ADOSC_Lookback(__pyx_v_fastperiod, __pyx_v_slowperiod)); + + /* "talib/_func.pxi":291 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_ADOSC_Lookback( fastperiod , slowperiod ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 291, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 291, __pyx_L1_error) + __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":292 + * lookback = begidx + lib.TA_ADOSC_Lookback( fastperiod , slowperiod ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + */ + __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); + + /* "talib/_func.pxi":293 + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outreal_data[i] = NaN + * retCode = lib.TA_ADOSC( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , (volume_data+begidx) , fastperiod , slowperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":294 + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN # <<<<<<<<<<<<<< + * retCode = lib.TA_ADOSC( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , (volume_data+begidx) , fastperiod , slowperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_ADOSC", retCode) + */ + (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_8c_ta_lib_NaN; + } + + /* "talib/_func.pxi":295 + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + * retCode = lib.TA_ADOSC( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , (volume_data+begidx) , fastperiod , slowperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_ADOSC", retCode) + * return outreal + */ + __pyx_v_retCode = TA_ADOSC(0, __pyx_v_endidx, ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), ((double *)(__pyx_v_volume_data + __pyx_v_begidx)), __pyx_v_fastperiod, __pyx_v_slowperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":296 + * outreal_data[i] = NaN + * retCode = lib.TA_ADOSC( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , (volume_data+begidx) , fastperiod , slowperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_ADOSC", retCode) # <<<<<<<<<<<<<< + * return outreal + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_ADOSC, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 296, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":297 + * retCode = lib.TA_ADOSC( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , (volume_data+begidx) , fastperiod , slowperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_ADOSC", retCode) + * return outreal # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); + __pyx_r = ((PyObject *)__pyx_v_outreal); + goto __pyx_L0; + + /* "talib/_func.pxi":210 + * @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.c_ta_lib.ADOSC", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outreal); + __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/_func.pxi":301 + * @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_8c_ta_lib_19ADX(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_18ADX[] = " 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_8c_ta_lib_19ADX = {"ADX", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_19ADX, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_18ADX}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_19ADX(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(2, 301, __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(2, 301, __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(2, 301, __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(2, 301, __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(2, 301, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 301, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(2, 301, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(2, 301, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_18ADX(__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_8c_ta_lib_18ADX(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; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + 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; + PyArrayObject *__pyx_v_outreal = 0; + double *__pyx_v_outreal_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __Pyx_RefNannySetupContext("ADX", 0); + __Pyx_INCREF((PyObject *)__pyx_v_high); + __Pyx_INCREF((PyObject *)__pyx_v_low); + __Pyx_INCREF((PyObject *)__pyx_v_close); + + /* "talib/_func.pxi":325 + * np.ndarray outreal + * double* outreal_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/_func.pxi":326 + * double* outreal_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__34, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 326, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 326, __pyx_L1_error) + + /* "talib/_func.pxi":325 + * np.ndarray outreal + * double* outreal_data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_func.pxi":327 + * 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/_func.pxi":328 + * raise 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__35, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 328, __pyx_L1_error) + + /* "talib/_func.pxi":327 + * 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/_func.pxi":329 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":330 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 330, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 330, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":329 + * 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 = high.data + */ + } + + /* "talib/_func.pxi":331 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":332 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":333 + * high_data = 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__36, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 333, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 333, __pyx_L1_error) + + /* "talib/_func.pxi":332 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_func.pxi":334 + * 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/_func.pxi":335 + * raise 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__37, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 335, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 335, __pyx_L1_error) + + /* "talib/_func.pxi":334 + * 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/_func.pxi":336 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":337 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 337, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 337, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":336 + * 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 = low.data + */ + } + + /* "talib/_func.pxi":338 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":339 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":340 + * low_data = 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__38, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 340, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 340, __pyx_L1_error) + + /* "talib/_func.pxi":339 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_func.pxi":341 + * 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/_func.pxi":342 + * raise 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__39, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 342, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 342, __pyx_L1_error) + + /* "talib/_func.pxi":341 + * 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/_func.pxi":343 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":344 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = high.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 344, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 344, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":343 + * 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 = close.data + */ + } + + /* "talib/_func.pxi":345 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = high.shape[0] + * if length != low.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_func.pxi":346 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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/_func.pxi":347 + * close_data = 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/_func.pxi":348 + * 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__40, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 348, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 348, __pyx_L1_error) + + /* "talib/_func.pxi":347 + * close_data = close.data + * length = high.shape[0] + * if length != low.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != close.shape[0]: + */ + } + + /* "talib/_func.pxi":349 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":350 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__41, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 350, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 350, __pyx_L1_error) + + /* "talib/_func.pxi":349 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + } + + /* "talib/_func.pxi":351 + * if length != close.shape[0]: + * raise Exception("input lengths are different") + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = high_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":352 + * raise Exception("input lengths are different") + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = high_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":353 + * begidx = 0 + * for i from 0 <= i < length: + * val = high_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); + + /* "talib/_func.pxi":354 + * for i from 0 <= i < length: + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":355 + * val = high_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = low_data[i] + * if val != val: + */ + goto __pyx_L14_continue; + + /* "talib/_func.pxi":354 + * for i from 0 <= i < length: + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + } + + /* "talib/_func.pxi":356 + * if val != val: + * continue + * val = low_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); + + /* "talib/_func.pxi":357 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":358 + * val = low_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = close_data[i] + * if val != val: + */ + goto __pyx_L14_continue; + + /* "talib/_func.pxi":357 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + } + + /* "talib/_func.pxi":359 + * if val != val: + * continue + * val = close_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); + + /* "talib/_func.pxi":360 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":361 + * val = close_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L14_continue; + + /* "talib/_func.pxi":360 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":362 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":363 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L15_break; + __pyx_L14_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":365 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_ADX_Lookback( timeperiod ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__42, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 365, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 365, __pyx_L1_error) + } + __pyx_L15_break:; + + /* "talib/_func.pxi":366 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_ADX_Lookback( timeperiod ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":367 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_ADX_Lookback( timeperiod ) # <<<<<<<<<<<<<< + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_ADX_Lookback(__pyx_v_timeperiod)); + + /* "talib/_func.pxi":368 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_ADX_Lookback( timeperiod ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 368, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 368, __pyx_L1_error) + __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":369 + * lookback = begidx + lib.TA_ADX_Lookback( timeperiod ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + */ + __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); + + /* "talib/_func.pxi":370 + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outreal_data[i] = NaN + * retCode = lib.TA_ADX( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":371 + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN # <<<<<<<<<<<<<< + * retCode = lib.TA_ADX( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_ADX", retCode) + */ + (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_8c_ta_lib_NaN; + } + + /* "talib/_func.pxi":372 + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + * retCode = lib.TA_ADX( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_ADX", retCode) + * return outreal + */ + __pyx_v_retCode = TA_ADX(0, __pyx_v_endidx, ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":373 + * outreal_data[i] = NaN + * retCode = lib.TA_ADX( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_ADX", retCode) # <<<<<<<<<<<<<< + * return outreal + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_ADX, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 373, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":374 + * retCode = lib.TA_ADX( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_ADX", retCode) + * return outreal # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); + __pyx_r = ((PyObject *)__pyx_v_outreal); + goto __pyx_L0; + + /* "talib/_func.pxi":301 + * @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.c_ta_lib.ADX", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outreal); + __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/_func.pxi":378 + * @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_8c_ta_lib_21ADXR(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_20ADXR[] = " 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_8c_ta_lib_21ADXR = {"ADXR", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_21ADXR, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_20ADXR}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_21ADXR(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(2, 378, __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(2, 378, __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(2, 378, __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(2, 378, __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(2, 378, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 378, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(2, 378, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(2, 378, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_20ADXR(__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_8c_ta_lib_20ADXR(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; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + 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; + PyArrayObject *__pyx_v_outreal = 0; + double *__pyx_v_outreal_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __Pyx_RefNannySetupContext("ADXR", 0); + __Pyx_INCREF((PyObject *)__pyx_v_high); + __Pyx_INCREF((PyObject *)__pyx_v_low); + __Pyx_INCREF((PyObject *)__pyx_v_close); + + /* "talib/_func.pxi":402 + * np.ndarray outreal + * double* outreal_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/_func.pxi":403 + * double* outreal_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__43, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 403, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 403, __pyx_L1_error) + + /* "talib/_func.pxi":402 + * np.ndarray outreal + * double* outreal_data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_func.pxi":404 + * 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/_func.pxi":405 + * raise 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__44, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 405, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 405, __pyx_L1_error) + + /* "talib/_func.pxi":404 + * 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/_func.pxi":406 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":407 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 407, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 407, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":406 + * 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 = high.data + */ + } + + /* "talib/_func.pxi":408 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":409 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":410 + * high_data = 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__45, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 410, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 410, __pyx_L1_error) + + /* "talib/_func.pxi":409 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_func.pxi":411 + * 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/_func.pxi":412 + * raise 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__46, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 412, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 412, __pyx_L1_error) + + /* "talib/_func.pxi":411 + * 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/_func.pxi":413 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":414 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 414, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 414, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":413 + * 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 = low.data + */ + } + + /* "talib/_func.pxi":415 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":416 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":417 + * low_data = 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__47, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 417, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 417, __pyx_L1_error) + + /* "talib/_func.pxi":416 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_func.pxi":418 + * 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/_func.pxi":419 + * raise 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__48, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 419, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 419, __pyx_L1_error) + + /* "talib/_func.pxi":418 + * 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/_func.pxi":420 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":421 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = high.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 421, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 421, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":420 + * 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 = close.data + */ + } + + /* "talib/_func.pxi":422 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = high.shape[0] + * if length != low.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_func.pxi":423 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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/_func.pxi":424 + * close_data = 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/_func.pxi":425 + * 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__49, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 425, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 425, __pyx_L1_error) + + /* "talib/_func.pxi":424 + * close_data = close.data + * length = high.shape[0] + * if length != low.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != close.shape[0]: + */ + } + + /* "talib/_func.pxi":426 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":427 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__50, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 427, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 427, __pyx_L1_error) + + /* "talib/_func.pxi":426 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + } + + /* "talib/_func.pxi":428 + * if length != close.shape[0]: + * raise Exception("input lengths are different") + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = high_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":429 + * raise Exception("input lengths are different") + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = high_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":430 + * begidx = 0 + * for i from 0 <= i < length: + * val = high_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); + + /* "talib/_func.pxi":431 + * for i from 0 <= i < length: + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":432 + * val = high_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = low_data[i] + * if val != val: + */ + goto __pyx_L14_continue; + + /* "talib/_func.pxi":431 + * for i from 0 <= i < length: + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + } + + /* "talib/_func.pxi":433 + * if val != val: + * continue + * val = low_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); + + /* "talib/_func.pxi":434 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":435 + * val = low_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = close_data[i] + * if val != val: + */ + goto __pyx_L14_continue; + + /* "talib/_func.pxi":434 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + } + + /* "talib/_func.pxi":436 + * if val != val: + * continue + * val = close_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); + + /* "talib/_func.pxi":437 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":438 + * val = close_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L14_continue; + + /* "talib/_func.pxi":437 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":439 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":440 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L15_break; + __pyx_L14_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":442 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_ADXR_Lookback( timeperiod ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__51, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 442, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 442, __pyx_L1_error) + } + __pyx_L15_break:; + + /* "talib/_func.pxi":443 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_ADXR_Lookback( timeperiod ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":444 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_ADXR_Lookback( timeperiod ) # <<<<<<<<<<<<<< + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_ADXR_Lookback(__pyx_v_timeperiod)); + + /* "talib/_func.pxi":445 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_ADXR_Lookback( timeperiod ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 445, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 445, __pyx_L1_error) + __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":446 + * lookback = begidx + lib.TA_ADXR_Lookback( timeperiod ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + */ + __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); + + /* "talib/_func.pxi":447 + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outreal_data[i] = NaN + * retCode = lib.TA_ADXR( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":448 + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN # <<<<<<<<<<<<<< + * retCode = lib.TA_ADXR( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_ADXR", retCode) + */ + (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_8c_ta_lib_NaN; + } + + /* "talib/_func.pxi":449 + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + * retCode = lib.TA_ADXR( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_ADXR", retCode) + * return outreal + */ + __pyx_v_retCode = TA_ADXR(0, __pyx_v_endidx, ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":450 + * outreal_data[i] = NaN + * retCode = lib.TA_ADXR( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_ADXR", retCode) # <<<<<<<<<<<<<< + * return outreal + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_ADXR, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 450, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":451 + * retCode = lib.TA_ADXR( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_ADXR", retCode) + * return outreal # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); + __pyx_r = ((PyObject *)__pyx_v_outreal); + goto __pyx_L0; + + /* "talib/_func.pxi":378 + * @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.c_ta_lib.ADXR", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outreal); + __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/_func.pxi":455 + * @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_8c_ta_lib_23APO(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_22APO[] = " 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_8c_ta_lib_23APO = {"APO", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_23APO, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_22APO}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_23APO(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(2, 455, __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(2, 455, __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(2, 455, __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(2, 455, __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(2, 455, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 455, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_22APO(__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_8c_ta_lib_22APO(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; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + TA_RetCode __pyx_v_retCode; + double *__pyx_v_real_data; + int __pyx_v_outbegidx; + int __pyx_v_outnbelement; + PyArrayObject *__pyx_v_outreal = 0; + double *__pyx_v_outreal_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __Pyx_RefNannySetupContext("APO", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real); + + /* "talib/_func.pxi":479 + * np.ndarray outreal + * double* outreal_data + * 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/_func.pxi":480 + * double* outreal_data + * 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__52, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 480, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 480, __pyx_L1_error) + + /* "talib/_func.pxi":479 + * np.ndarray outreal + * double* outreal_data + * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real is not double") + * if real.ndim != 1: + */ + } + + /* "talib/_func.pxi":481 + * 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/_func.pxi":482 + * 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__53, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 482, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 482, __pyx_L1_error) + + /* "talib/_func.pxi":481 + * 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/_func.pxi":483 + * 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 = real.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":484 + * raise Exception("real has wrong dimensions") + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< + * real_data = real.data + * length = real.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 484, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 484, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":483 + * 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 = real.data + */ + } + + /* "talib/_func.pxi":485 + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data # <<<<<<<<<<<<<< + * length = real.shape[0] + * begidx = 0 + */ + __pyx_v_real_data = ((double *)__pyx_v_real->data); + + /* "talib/_func.pxi":486 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data + * length = real.shape[0] # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_v_length = (__pyx_v_real->dimensions[0]); + + /* "talib/_func.pxi":487 + * real_data = real.data + * length = real.shape[0] + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = real_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":488 + * length = real.shape[0] + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = real_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":489 + * begidx = 0 + * for i from 0 <= i < length: + * val = real_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_real_data[__pyx_v_i]); + + /* "talib/_func.pxi":490 + * for i from 0 <= i < length: + * val = real_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":491 + * val = real_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L6_continue; + + /* "talib/_func.pxi":490 + * for i from 0 <= i < length: + * val = real_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":492 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":493 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L7_break; + __pyx_L6_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":495 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_APO_Lookback( fastperiod , slowperiod , matype ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__54, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 495, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 495, __pyx_L1_error) + } + __pyx_L7_break:; + + /* "talib/_func.pxi":496 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_APO_Lookback( fastperiod , slowperiod , matype ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":497 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_APO_Lookback( fastperiod , slowperiod , matype ) # <<<<<<<<<<<<<< + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_APO_Lookback(__pyx_v_fastperiod, __pyx_v_slowperiod, __pyx_v_matype)); + + /* "talib/_func.pxi":498 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_APO_Lookback( fastperiod , slowperiod , matype ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 498, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 498, __pyx_L1_error) + __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":499 + * lookback = begidx + lib.TA_APO_Lookback( fastperiod , slowperiod , matype ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + */ + __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); + + /* "talib/_func.pxi":500 + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outreal_data[i] = NaN + * retCode = lib.TA_APO( 0 , endidx , (real_data+begidx) , fastperiod , slowperiod , matype , &outbegidx , &outnbelement , (outreal_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":501 + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN # <<<<<<<<<<<<<< + * retCode = lib.TA_APO( 0 , endidx , (real_data+begidx) , fastperiod , slowperiod , matype , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_APO", retCode) + */ + (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_8c_ta_lib_NaN; + } + + /* "talib/_func.pxi":502 + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + * retCode = lib.TA_APO( 0 , endidx , (real_data+begidx) , fastperiod , slowperiod , matype , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_APO", retCode) + * return outreal + */ + __pyx_v_retCode = TA_APO(0, __pyx_v_endidx, ((double *)(__pyx_v_real_data + __pyx_v_begidx)), __pyx_v_fastperiod, __pyx_v_slowperiod, __pyx_v_matype, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":503 + * outreal_data[i] = NaN + * retCode = lib.TA_APO( 0 , endidx , (real_data+begidx) , fastperiod , slowperiod , matype , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_APO", retCode) # <<<<<<<<<<<<<< + * return outreal + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_APO, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 503, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":504 + * retCode = lib.TA_APO( 0 , endidx , (real_data+begidx) , fastperiod , slowperiod , matype , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_APO", retCode) + * return outreal # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); + __pyx_r = ((PyObject *)__pyx_v_outreal); + goto __pyx_L0; + + /* "talib/_func.pxi":455 + * @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.c_ta_lib.APO", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outreal); + __Pyx_XDECREF((PyObject *)__pyx_v_real); + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "talib/_func.pxi":508 + * @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_8c_ta_lib_25AROON(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_24AROON[] = " 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_8c_ta_lib_25AROON = {"AROON", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_25AROON, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_24AROON}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_25AROON(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(2, 508, __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(2, 508, __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(2, 508, __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(2, 508, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 508, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(2, 508, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_24AROON(__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_8c_ta_lib_24AROON(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, int __pyx_v_timeperiod) { + npy_intp __pyx_v_length; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + TA_RetCode __pyx_v_retCode; + double *__pyx_v_high_data; + double *__pyx_v_low_data; + int __pyx_v_outbegidx; + int __pyx_v_outnbelement; + PyArrayObject *__pyx_v_outaroondown = 0; + double *__pyx_v_outaroondown_data; + PyArrayObject *__pyx_v_outaroonup = 0; + double *__pyx_v_outaroonup_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __Pyx_RefNannySetupContext("AROON", 0); + __Pyx_INCREF((PyObject *)__pyx_v_high); + __Pyx_INCREF((PyObject *)__pyx_v_low); + + /* "talib/_func.pxi":534 + * np.ndarray outaroonup + * double* outaroonup_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/_func.pxi":535 + * double* outaroonup_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__55, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 535, __pyx_L1_error) + + /* "talib/_func.pxi":534 + * np.ndarray outaroonup + * double* outaroonup_data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_func.pxi":536 + * 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/_func.pxi":537 + * raise 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__56, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 537, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 537, __pyx_L1_error) + + /* "talib/_func.pxi":536 + * 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/_func.pxi":538 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":539 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 539, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 539, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":538 + * 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 = high.data + */ + } + + /* "talib/_func.pxi":540 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":541 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":542 + * high_data = 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__57, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 542, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 542, __pyx_L1_error) + + /* "talib/_func.pxi":541 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_func.pxi":543 + * 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/_func.pxi":544 + * raise 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__58, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 544, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 544, __pyx_L1_error) + + /* "talib/_func.pxi":543 + * 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/_func.pxi":545 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":546 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * length = high.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 546, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 546, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":545 + * 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 = low.data + */ + } + + /* "talib/_func.pxi":547 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data # <<<<<<<<<<<<<< + * length = high.shape[0] + * if length != low.shape[0]: + */ + __pyx_v_low_data = ((double *)__pyx_v_low->data); + + /* "talib/_func.pxi":548 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":549 + * low_data = low.data + * length = high.shape[0] + * if length != low.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + __pyx_t_1 = ((__pyx_v_length != (__pyx_v_low->dimensions[0])) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":550 + * length = high.shape[0] + * if length != low.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__59, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 550, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 550, __pyx_L1_error) + + /* "talib/_func.pxi":549 + * low_data = low.data + * length = high.shape[0] + * if length != low.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + } + + /* "talib/_func.pxi":551 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = high_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":552 + * raise Exception("input lengths are different") + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = high_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":553 + * begidx = 0 + * for i from 0 <= i < length: + * val = high_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); + + /* "talib/_func.pxi":554 + * for i from 0 <= i < length: + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":555 + * val = high_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = low_data[i] + * if val != val: + */ + goto __pyx_L10_continue; + + /* "talib/_func.pxi":554 + * for i from 0 <= i < length: + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + } + + /* "talib/_func.pxi":556 + * if val != val: + * continue + * val = low_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); + + /* "talib/_func.pxi":557 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":558 + * val = low_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L10_continue; + + /* "talib/_func.pxi":557 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":559 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":560 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L11_break; + __pyx_L10_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":562 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_AROON_Lookback( timeperiod ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__60, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 562, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 562, __pyx_L1_error) + } + __pyx_L11_break:; + + /* "talib/_func.pxi":563 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_AROON_Lookback( timeperiod ) + * outaroondown = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":564 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_AROON_Lookback( timeperiod ) # <<<<<<<<<<<<<< + * outaroondown = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outaroondown_data = outaroondown.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_AROON_Lookback(__pyx_v_timeperiod)); + + /* "talib/_func.pxi":565 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_AROON_Lookback( timeperiod ) + * outaroondown = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outaroondown_data = outaroondown.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 565, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 565, __pyx_L1_error) + __pyx_v_outaroondown = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":566 + * lookback = begidx + lib.TA_AROON_Lookback( timeperiod ) + * outaroondown = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outaroondown_data = outaroondown.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outaroondown_data[i] = NaN + */ + __pyx_v_outaroondown_data = ((double *)__pyx_v_outaroondown->data); + + /* "talib/_func.pxi":567 + * outaroondown = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outaroondown_data = outaroondown.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outaroondown_data[i] = NaN + * outaroonup = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":568 + * outaroondown_data = outaroondown.data + * for i from 0 <= i < min(lookback, length): + * outaroondown_data[i] = NaN # <<<<<<<<<<<<<< + * outaroonup = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outaroonup_data = outaroonup.data + */ + (__pyx_v_outaroondown_data[__pyx_v_i]) = __pyx_v_5talib_8c_ta_lib_NaN; + } + + /* "talib/_func.pxi":569 + * for i from 0 <= i < min(lookback, length): + * outaroondown_data[i] = NaN + * outaroonup = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outaroonup_data = outaroonup.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 569, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 569, __pyx_L1_error) + __pyx_v_outaroonup = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":570 + * outaroondown_data[i] = NaN + * outaroonup = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outaroonup_data = outaroonup.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outaroonup_data[i] = NaN + */ + __pyx_v_outaroonup_data = ((double *)__pyx_v_outaroonup->data); + + /* "talib/_func.pxi":571 + * outaroonup = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outaroonup_data = outaroonup.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outaroonup_data[i] = NaN + * retCode = lib.TA_AROON( 0 , endidx , (high_data+begidx) , (low_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outaroondown_data+lookback) , (outaroonup_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":572 + * outaroonup_data = outaroonup.data + * for i from 0 <= i < min(lookback, length): + * outaroonup_data[i] = NaN # <<<<<<<<<<<<<< + * retCode = lib.TA_AROON( 0 , endidx , (high_data+begidx) , (low_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outaroondown_data+lookback) , (outaroonup_data+lookback) ) + * _ta_check_success("TA_AROON", retCode) + */ + (__pyx_v_outaroonup_data[__pyx_v_i]) = __pyx_v_5talib_8c_ta_lib_NaN; + } + + /* "talib/_func.pxi":573 + * for i from 0 <= i < min(lookback, length): + * outaroonup_data[i] = NaN + * retCode = lib.TA_AROON( 0 , endidx , (high_data+begidx) , (low_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outaroondown_data+lookback) , (outaroonup_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_AROON", retCode) + * return outaroondown , outaroonup + */ + __pyx_v_retCode = TA_AROON(0, __pyx_v_endidx, ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outaroondown_data + __pyx_v_lookback)), ((double *)(__pyx_v_outaroonup_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":574 + * outaroonup_data[i] = NaN + * retCode = lib.TA_AROON( 0 , endidx , (high_data+begidx) , (low_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outaroondown_data+lookback) , (outaroonup_data+lookback) ) + * _ta_check_success("TA_AROON", retCode) # <<<<<<<<<<<<<< + * return outaroondown , outaroonup + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_AROON, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 574, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":575 + * retCode = lib.TA_AROON( 0 , endidx , (high_data+begidx) , (low_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outaroondown_data+lookback) , (outaroonup_data+lookback) ) + * _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 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 575, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_INCREF(((PyObject *)__pyx_v_outaroondown)); + __Pyx_GIVEREF(((PyObject *)__pyx_v_outaroondown)); + PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_v_outaroondown)); + __Pyx_INCREF(((PyObject *)__pyx_v_outaroonup)); + __Pyx_GIVEREF(((PyObject *)__pyx_v_outaroonup)); + PyTuple_SET_ITEM(__pyx_t_2, 1, ((PyObject *)__pyx_v_outaroonup)); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_func.pxi":508 + * @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_AddTraceback("talib.c_ta_lib.AROON", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outaroondown); + __Pyx_XDECREF((PyObject *)__pyx_v_outaroonup); + __Pyx_XDECREF((PyObject *)__pyx_v_high); + __Pyx_XDECREF((PyObject *)__pyx_v_low); + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "talib/_func.pxi":579 + * @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_8c_ta_lib_27AROONOSC(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_26AROONOSC[] = " 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_8c_ta_lib_27AROONOSC = {"AROONOSC", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_27AROONOSC, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_26AROONOSC}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_27AROONOSC(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(2, 579, __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(2, 579, __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(2, 579, __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(2, 579, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 579, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(2, 579, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_26AROONOSC(__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_8c_ta_lib_26AROONOSC(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, int __pyx_v_timeperiod) { + npy_intp __pyx_v_length; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + TA_RetCode __pyx_v_retCode; + double *__pyx_v_high_data; + double *__pyx_v_low_data; + int __pyx_v_outbegidx; + int __pyx_v_outnbelement; + PyArrayObject *__pyx_v_outreal = 0; + double *__pyx_v_outreal_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __Pyx_RefNannySetupContext("AROONOSC", 0); + __Pyx_INCREF((PyObject *)__pyx_v_high); + __Pyx_INCREF((PyObject *)__pyx_v_low); + + /* "talib/_func.pxi":602 + * np.ndarray outreal + * double* outreal_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/_func.pxi":603 + * double* outreal_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__61, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 603, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 603, __pyx_L1_error) + + /* "talib/_func.pxi":602 + * np.ndarray outreal + * double* outreal_data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_func.pxi":604 + * 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/_func.pxi":605 + * raise 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__62, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 605, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 605, __pyx_L1_error) + + /* "talib/_func.pxi":604 + * 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/_func.pxi":606 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":607 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 607, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 607, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":606 + * 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 = high.data + */ + } + + /* "talib/_func.pxi":608 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":609 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":610 + * high_data = 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__63, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 610, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 610, __pyx_L1_error) + + /* "talib/_func.pxi":609 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_func.pxi":611 + * 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/_func.pxi":612 + * raise 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__64, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 612, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 612, __pyx_L1_error) + + /* "talib/_func.pxi":611 + * 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/_func.pxi":613 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":614 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * length = high.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 614, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 614, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":613 + * 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 = low.data + */ + } + + /* "talib/_func.pxi":615 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data # <<<<<<<<<<<<<< + * length = high.shape[0] + * if length != low.shape[0]: + */ + __pyx_v_low_data = ((double *)__pyx_v_low->data); + + /* "talib/_func.pxi":616 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":617 + * low_data = low.data + * length = high.shape[0] + * if length != low.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + __pyx_t_1 = ((__pyx_v_length != (__pyx_v_low->dimensions[0])) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":618 + * length = high.shape[0] + * if length != low.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__65, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 618, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 618, __pyx_L1_error) + + /* "talib/_func.pxi":617 + * low_data = low.data + * length = high.shape[0] + * if length != low.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + } + + /* "talib/_func.pxi":619 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = high_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":620 + * raise Exception("input lengths are different") + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = high_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":621 + * begidx = 0 + * for i from 0 <= i < length: + * val = high_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); + + /* "talib/_func.pxi":622 + * for i from 0 <= i < length: + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":623 + * val = high_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = low_data[i] + * if val != val: + */ + goto __pyx_L10_continue; + + /* "talib/_func.pxi":622 + * for i from 0 <= i < length: + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + } + + /* "talib/_func.pxi":624 + * if val != val: + * continue + * val = low_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); + + /* "talib/_func.pxi":625 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":626 + * val = low_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L10_continue; + + /* "talib/_func.pxi":625 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":627 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":628 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L11_break; + __pyx_L10_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":630 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_AROONOSC_Lookback( timeperiod ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__66, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 630, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 630, __pyx_L1_error) + } + __pyx_L11_break:; + + /* "talib/_func.pxi":631 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_AROONOSC_Lookback( timeperiod ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":632 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_AROONOSC_Lookback( timeperiod ) # <<<<<<<<<<<<<< + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_AROONOSC_Lookback(__pyx_v_timeperiod)); + + /* "talib/_func.pxi":633 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_AROONOSC_Lookback( timeperiod ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 633, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 633, __pyx_L1_error) + __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":634 + * lookback = begidx + lib.TA_AROONOSC_Lookback( timeperiod ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + */ + __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); + + /* "talib/_func.pxi":635 + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outreal_data[i] = NaN + * retCode = lib.TA_AROONOSC( 0 , endidx , (high_data+begidx) , (low_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":636 + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN # <<<<<<<<<<<<<< + * retCode = lib.TA_AROONOSC( 0 , endidx , (high_data+begidx) , (low_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_AROONOSC", retCode) + */ + (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_8c_ta_lib_NaN; + } + + /* "talib/_func.pxi":637 + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + * retCode = lib.TA_AROONOSC( 0 , endidx , (high_data+begidx) , (low_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_AROONOSC", retCode) + * return outreal + */ + __pyx_v_retCode = TA_AROONOSC(0, __pyx_v_endidx, ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":638 + * outreal_data[i] = NaN + * retCode = lib.TA_AROONOSC( 0 , endidx , (high_data+begidx) , (low_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_AROONOSC", retCode) # <<<<<<<<<<<<<< + * return outreal + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_AROONOSC, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 638, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":639 + * retCode = lib.TA_AROONOSC( 0 , endidx , (high_data+begidx) , (low_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_AROONOSC", retCode) + * return outreal # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); + __pyx_r = ((PyObject *)__pyx_v_outreal); + goto __pyx_L0; + + /* "talib/_func.pxi":579 + * @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.c_ta_lib.AROONOSC", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outreal); + __Pyx_XDECREF((PyObject *)__pyx_v_high); + __Pyx_XDECREF((PyObject *)__pyx_v_low); + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "talib/_func.pxi":643 + * @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_8c_ta_lib_29ASIN(PyObject *__pyx_self, PyObject *__pyx_v_real); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_28ASIN[] = " 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_8c_ta_lib_29ASIN = {"ASIN", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_29ASIN, METH_O, __pyx_doc_5talib_8c_ta_lib_28ASIN}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_29ASIN(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(2, 643, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_28ASIN(__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_8c_ta_lib_28ASIN(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real) { + npy_intp __pyx_v_length; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + TA_RetCode __pyx_v_retCode; + double *__pyx_v_real_data; + int __pyx_v_outbegidx; + int __pyx_v_outnbelement; + PyArrayObject *__pyx_v_outreal = 0; + double *__pyx_v_outreal_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __Pyx_RefNannySetupContext("ASIN", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real); + + /* "talib/_func.pxi":663 + * np.ndarray outreal + * double* outreal_data + * 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/_func.pxi":664 + * double* outreal_data + * 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__67, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 664, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 664, __pyx_L1_error) + + /* "talib/_func.pxi":663 + * np.ndarray outreal + * double* outreal_data + * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real is not double") + * if real.ndim != 1: + */ + } + + /* "talib/_func.pxi":665 + * 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/_func.pxi":666 + * 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__68, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 666, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 666, __pyx_L1_error) + + /* "talib/_func.pxi":665 + * 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/_func.pxi":667 + * 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 = real.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":668 + * raise Exception("real has wrong dimensions") + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< + * real_data = real.data + * length = real.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 668, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 668, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":667 + * 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 = real.data + */ + } + + /* "talib/_func.pxi":669 + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data # <<<<<<<<<<<<<< + * length = real.shape[0] + * begidx = 0 + */ + __pyx_v_real_data = ((double *)__pyx_v_real->data); + + /* "talib/_func.pxi":670 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data + * length = real.shape[0] # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_v_length = (__pyx_v_real->dimensions[0]); + + /* "talib/_func.pxi":671 + * real_data = real.data + * length = real.shape[0] + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = real_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":672 + * length = real.shape[0] + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = real_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":673 + * begidx = 0 + * for i from 0 <= i < length: + * val = real_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_real_data[__pyx_v_i]); + + /* "talib/_func.pxi":674 + * for i from 0 <= i < length: + * val = real_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":675 + * val = real_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L6_continue; + + /* "talib/_func.pxi":674 + * for i from 0 <= i < length: + * val = real_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":676 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":677 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L7_break; + __pyx_L6_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":679 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_ASIN_Lookback( ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__69, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 679, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 679, __pyx_L1_error) + } + __pyx_L7_break:; + + /* "talib/_func.pxi":680 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_ASIN_Lookback( ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":681 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_ASIN_Lookback( ) # <<<<<<<<<<<<<< + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_ASIN_Lookback()); + + /* "talib/_func.pxi":682 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_ASIN_Lookback( ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 682, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 682, __pyx_L1_error) + __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":683 + * lookback = begidx + lib.TA_ASIN_Lookback( ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + */ + __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); + + /* "talib/_func.pxi":684 + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outreal_data[i] = NaN + * retCode = lib.TA_ASIN( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":685 + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN # <<<<<<<<<<<<<< + * retCode = lib.TA_ASIN( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_ASIN", retCode) + */ + (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_8c_ta_lib_NaN; + } + + /* "talib/_func.pxi":686 + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + * retCode = lib.TA_ASIN( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_ASIN", retCode) + * return outreal + */ + __pyx_v_retCode = TA_ASIN(0, __pyx_v_endidx, ((double *)(__pyx_v_real_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":687 + * outreal_data[i] = NaN + * retCode = lib.TA_ASIN( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_ASIN", retCode) # <<<<<<<<<<<<<< + * return outreal + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_ASIN, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 687, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":688 + * retCode = lib.TA_ASIN( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_ASIN", retCode) + * return outreal # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); + __pyx_r = ((PyObject *)__pyx_v_outreal); + goto __pyx_L0; + + /* "talib/_func.pxi":643 + * @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.c_ta_lib.ASIN", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outreal); + __Pyx_XDECREF((PyObject *)__pyx_v_real); + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "talib/_func.pxi":692 + * @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_8c_ta_lib_31ATAN(PyObject *__pyx_self, PyObject *__pyx_v_real); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_30ATAN[] = " 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_8c_ta_lib_31ATAN = {"ATAN", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_31ATAN, METH_O, __pyx_doc_5talib_8c_ta_lib_30ATAN}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_31ATAN(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(2, 692, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_30ATAN(__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_8c_ta_lib_30ATAN(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real) { + npy_intp __pyx_v_length; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + TA_RetCode __pyx_v_retCode; + double *__pyx_v_real_data; + int __pyx_v_outbegidx; + int __pyx_v_outnbelement; + PyArrayObject *__pyx_v_outreal = 0; + double *__pyx_v_outreal_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __Pyx_RefNannySetupContext("ATAN", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real); + + /* "talib/_func.pxi":712 + * np.ndarray outreal + * double* outreal_data + * 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/_func.pxi":713 + * double* outreal_data + * 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__70, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 713, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 713, __pyx_L1_error) + + /* "talib/_func.pxi":712 + * np.ndarray outreal + * double* outreal_data + * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real is not double") + * if real.ndim != 1: + */ + } + + /* "talib/_func.pxi":714 + * 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/_func.pxi":715 + * 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__71, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 715, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 715, __pyx_L1_error) + + /* "talib/_func.pxi":714 + * 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/_func.pxi":716 + * 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 = real.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":717 + * raise Exception("real has wrong dimensions") + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< + * real_data = real.data + * length = real.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 717, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 717, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":716 + * 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 = real.data + */ + } + + /* "talib/_func.pxi":718 + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data # <<<<<<<<<<<<<< + * length = real.shape[0] + * begidx = 0 + */ + __pyx_v_real_data = ((double *)__pyx_v_real->data); + + /* "talib/_func.pxi":719 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data + * length = real.shape[0] # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_v_length = (__pyx_v_real->dimensions[0]); + + /* "talib/_func.pxi":720 + * real_data = real.data + * length = real.shape[0] + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = real_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":721 + * length = real.shape[0] + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = real_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":722 + * begidx = 0 + * for i from 0 <= i < length: + * val = real_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_real_data[__pyx_v_i]); + + /* "talib/_func.pxi":723 + * for i from 0 <= i < length: + * val = real_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":724 + * val = real_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L6_continue; + + /* "talib/_func.pxi":723 + * for i from 0 <= i < length: + * val = real_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":725 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":726 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L7_break; + __pyx_L6_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":728 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_ATAN_Lookback( ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__72, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 728, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 728, __pyx_L1_error) + } + __pyx_L7_break:; + + /* "talib/_func.pxi":729 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_ATAN_Lookback( ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":730 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_ATAN_Lookback( ) # <<<<<<<<<<<<<< + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_ATAN_Lookback()); + + /* "talib/_func.pxi":731 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_ATAN_Lookback( ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 731, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 731, __pyx_L1_error) + __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":732 + * lookback = begidx + lib.TA_ATAN_Lookback( ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + */ + __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); + + /* "talib/_func.pxi":733 + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outreal_data[i] = NaN + * retCode = lib.TA_ATAN( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":734 + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN # <<<<<<<<<<<<<< + * retCode = lib.TA_ATAN( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_ATAN", retCode) + */ + (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_8c_ta_lib_NaN; + } + + /* "talib/_func.pxi":735 + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + * retCode = lib.TA_ATAN( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_ATAN", retCode) + * return outreal + */ + __pyx_v_retCode = TA_ATAN(0, __pyx_v_endidx, ((double *)(__pyx_v_real_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":736 + * outreal_data[i] = NaN + * retCode = lib.TA_ATAN( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_ATAN", retCode) # <<<<<<<<<<<<<< + * return outreal + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_ATAN, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 736, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":737 + * retCode = lib.TA_ATAN( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_ATAN", retCode) + * return outreal # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); + __pyx_r = ((PyObject *)__pyx_v_outreal); + goto __pyx_L0; + + /* "talib/_func.pxi":692 + * @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.c_ta_lib.ATAN", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outreal); + __Pyx_XDECREF((PyObject *)__pyx_v_real); + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "talib/_func.pxi":741 + * @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_8c_ta_lib_33ATR(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_32ATR[] = " 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_8c_ta_lib_33ATR = {"ATR", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_33ATR, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_32ATR}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_33ATR(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(2, 741, __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(2, 741, __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(2, 741, __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(2, 741, __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(2, 741, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 741, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(2, 741, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(2, 741, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_32ATR(__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_8c_ta_lib_32ATR(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; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + 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; + PyArrayObject *__pyx_v_outreal = 0; + double *__pyx_v_outreal_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __Pyx_RefNannySetupContext("ATR", 0); + __Pyx_INCREF((PyObject *)__pyx_v_high); + __Pyx_INCREF((PyObject *)__pyx_v_low); + __Pyx_INCREF((PyObject *)__pyx_v_close); + + /* "talib/_func.pxi":765 + * np.ndarray outreal + * double* outreal_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/_func.pxi":766 + * double* outreal_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__73, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 766, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 766, __pyx_L1_error) + + /* "talib/_func.pxi":765 + * np.ndarray outreal + * double* outreal_data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_func.pxi":767 + * 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/_func.pxi":768 + * raise 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__74, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 768, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 768, __pyx_L1_error) + + /* "talib/_func.pxi":767 + * 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/_func.pxi":769 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":770 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 770, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 770, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":769 + * 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 = high.data + */ + } + + /* "talib/_func.pxi":771 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":772 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":773 + * high_data = 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__75, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 773, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 773, __pyx_L1_error) + + /* "talib/_func.pxi":772 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_func.pxi":774 + * 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/_func.pxi":775 + * raise 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__76, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 775, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 775, __pyx_L1_error) + + /* "talib/_func.pxi":774 + * 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/_func.pxi":776 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":777 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 777, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 777, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":776 + * 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 = low.data + */ + } + + /* "talib/_func.pxi":778 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":779 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":780 + * low_data = 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__77, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 780, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 780, __pyx_L1_error) + + /* "talib/_func.pxi":779 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_func.pxi":781 + * 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/_func.pxi":782 + * raise 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__78, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 782, __pyx_L1_error) + + /* "talib/_func.pxi":781 + * 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/_func.pxi":783 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":784 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = high.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 784, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 784, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":783 + * 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 = close.data + */ + } + + /* "talib/_func.pxi":785 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = high.shape[0] + * if length != low.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_func.pxi":786 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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/_func.pxi":787 + * close_data = 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/_func.pxi":788 + * 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__79, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 788, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 788, __pyx_L1_error) + + /* "talib/_func.pxi":787 + * close_data = close.data + * length = high.shape[0] + * if length != low.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != close.shape[0]: + */ + } + + /* "talib/_func.pxi":789 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":790 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__80, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 790, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 790, __pyx_L1_error) + + /* "talib/_func.pxi":789 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + } + + /* "talib/_func.pxi":791 + * if length != close.shape[0]: + * raise Exception("input lengths are different") + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = high_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":792 + * raise Exception("input lengths are different") + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = high_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":793 + * begidx = 0 + * for i from 0 <= i < length: + * val = high_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); + + /* "talib/_func.pxi":794 + * for i from 0 <= i < length: + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":795 + * val = high_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = low_data[i] + * if val != val: + */ + goto __pyx_L14_continue; + + /* "talib/_func.pxi":794 + * for i from 0 <= i < length: + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + } + + /* "talib/_func.pxi":796 + * if val != val: + * continue + * val = low_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); + + /* "talib/_func.pxi":797 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":798 + * val = low_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = close_data[i] + * if val != val: + */ + goto __pyx_L14_continue; + + /* "talib/_func.pxi":797 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + } + + /* "talib/_func.pxi":799 + * if val != val: + * continue + * val = close_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); + + /* "talib/_func.pxi":800 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":801 + * val = close_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L14_continue; + + /* "talib/_func.pxi":800 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":802 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":803 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L15_break; + __pyx_L14_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":805 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_ATR_Lookback( timeperiod ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__81, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 805, __pyx_L1_error) + } + __pyx_L15_break:; + + /* "talib/_func.pxi":806 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_ATR_Lookback( timeperiod ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":807 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_ATR_Lookback( timeperiod ) # <<<<<<<<<<<<<< + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_ATR_Lookback(__pyx_v_timeperiod)); + + /* "talib/_func.pxi":808 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_ATR_Lookback( timeperiod ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 808, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 808, __pyx_L1_error) + __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":809 + * lookback = begidx + lib.TA_ATR_Lookback( timeperiod ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + */ + __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); + + /* "talib/_func.pxi":810 + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outreal_data[i] = NaN + * retCode = lib.TA_ATR( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":811 + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN # <<<<<<<<<<<<<< + * retCode = lib.TA_ATR( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_ATR", retCode) + */ + (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_8c_ta_lib_NaN; + } + + /* "talib/_func.pxi":812 + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + * retCode = lib.TA_ATR( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_ATR", retCode) + * return outreal + */ + __pyx_v_retCode = TA_ATR(0, __pyx_v_endidx, ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":813 + * outreal_data[i] = NaN + * retCode = lib.TA_ATR( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_ATR", retCode) # <<<<<<<<<<<<<< + * return outreal + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_ATR, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 813, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":814 + * retCode = lib.TA_ATR( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_ATR", retCode) + * return outreal # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); + __pyx_r = ((PyObject *)__pyx_v_outreal); + goto __pyx_L0; + + /* "talib/_func.pxi":741 + * @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.c_ta_lib.ATR", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outreal); + __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/_func.pxi":818 + * @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_8c_ta_lib_35AVGPRICE(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_34AVGPRICE[] = " 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_8c_ta_lib_35AVGPRICE = {"AVGPRICE", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_35AVGPRICE, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_34AVGPRICE}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_35AVGPRICE(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(2, 818, __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(2, 818, __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(2, 818, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "AVGPRICE") < 0)) __PYX_ERR(2, 818, __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(2, 818, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 818, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(2, 818, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(2, 818, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(2, 818, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_34AVGPRICE(__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_8c_ta_lib_34AVGPRICE(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; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + 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; + PyArrayObject *__pyx_v_outreal = 0; + double *__pyx_v_outreal_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __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/_func.pxi":841 + * np.ndarray outreal + * double* outreal_data + * 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/_func.pxi":842 + * double* outreal_data + * 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__82, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 842, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 842, __pyx_L1_error) + + /* "talib/_func.pxi":841 + * np.ndarray outreal + * double* outreal_data + * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("open is not double") + * if open.ndim != 1: + */ + } + + /* "talib/_func.pxi":843 + * 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/_func.pxi":844 + * 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__83, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 844, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 844, __pyx_L1_error) + + /* "talib/_func.pxi":843 + * 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/_func.pxi":845 + * 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 = open.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":846 + * raise Exception("open has wrong dimensions") + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 846, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 846, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":845 + * 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 = open.data + */ + } + + /* "talib/_func.pxi":847 + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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/_func.pxi":848 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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/_func.pxi":849 + * open_data = 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__84, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 849, __pyx_L1_error) + + /* "talib/_func.pxi":848 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_func.pxi":850 + * 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/_func.pxi":851 + * raise 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__85, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 851, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 851, __pyx_L1_error) + + /* "talib/_func.pxi":850 + * 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/_func.pxi":852 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":853 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 853, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 853, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":852 + * 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 = high.data + */ + } + + /* "talib/_func.pxi":854 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":855 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":856 + * high_data = 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__86, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 856, __pyx_L1_error) + + /* "talib/_func.pxi":855 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_func.pxi":857 + * 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/_func.pxi":858 + * raise 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__87, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 858, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 858, __pyx_L1_error) + + /* "talib/_func.pxi":857 + * 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/_func.pxi":859 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":860 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 860, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 860, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":859 + * 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 = low.data + */ + } + + /* "talib/_func.pxi":861 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":862 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":863 + * low_data = 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__88, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 863, __pyx_L1_error) + + /* "talib/_func.pxi":862 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_func.pxi":864 + * 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/_func.pxi":865 + * raise 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__89, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 865, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 865, __pyx_L1_error) + + /* "talib/_func.pxi":864 + * 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/_func.pxi":866 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":867 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = open.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 867, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 867, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":866 + * 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 = close.data + */ + } + + /* "talib/_func.pxi":868 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = open.shape[0] + * if length != high.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_func.pxi":869 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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/_func.pxi":870 + * close_data = 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/_func.pxi":871 + * 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__90, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 871, __pyx_L1_error) + + /* "talib/_func.pxi":870 + * close_data = close.data + * length = open.shape[0] + * if length != high.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != low.shape[0]: + */ + } + + /* "talib/_func.pxi":872 + * 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/_func.pxi":873 + * 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__91, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 873, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 873, __pyx_L1_error) + + /* "talib/_func.pxi":872 + * 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/_func.pxi":874 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":875 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__92, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 875, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 875, __pyx_L1_error) + + /* "talib/_func.pxi":874 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + } + + /* "talib/_func.pxi":876 + * if length != close.shape[0]: + * raise Exception("input lengths are different") + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = open_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":877 + * raise Exception("input lengths are different") + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = open_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":878 + * begidx = 0 + * for i from 0 <= i < length: + * val = open_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_open_data[__pyx_v_i]); + + /* "talib/_func.pxi":879 + * for i from 0 <= i < length: + * val = open_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = high_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":880 + * val = open_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = high_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":879 + * for i from 0 <= i < length: + * val = open_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = high_data[i] + */ + } + + /* "talib/_func.pxi":881 + * if val != val: + * continue + * val = high_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); + + /* "talib/_func.pxi":882 + * continue + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":883 + * val = high_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = low_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":882 + * continue + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + } + + /* "talib/_func.pxi":884 + * if val != val: + * continue + * val = low_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); + + /* "talib/_func.pxi":885 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":886 + * val = low_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = close_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":885 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + } + + /* "talib/_func.pxi":887 + * if val != val: + * continue + * val = close_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); + + /* "talib/_func.pxi":888 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":889 + * val = close_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":888 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":890 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":891 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L19_break; + __pyx_L18_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":893 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_AVGPRICE_Lookback( ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__93, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 893, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 893, __pyx_L1_error) + } + __pyx_L19_break:; + + /* "talib/_func.pxi":894 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_AVGPRICE_Lookback( ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":895 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_AVGPRICE_Lookback( ) # <<<<<<<<<<<<<< + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_AVGPRICE_Lookback()); + + /* "talib/_func.pxi":896 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_AVGPRICE_Lookback( ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 896, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 896, __pyx_L1_error) + __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":897 + * lookback = begidx + lib.TA_AVGPRICE_Lookback( ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + */ + __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); + + /* "talib/_func.pxi":898 + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outreal_data[i] = NaN + * retCode = lib.TA_AVGPRICE( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":899 + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN # <<<<<<<<<<<<<< + * retCode = lib.TA_AVGPRICE( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_AVGPRICE", retCode) + */ + (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_8c_ta_lib_NaN; + } + + /* "talib/_func.pxi":900 + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + * retCode = lib.TA_AVGPRICE( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_AVGPRICE", retCode) + * return outreal + */ + __pyx_v_retCode = TA_AVGPRICE(0, __pyx_v_endidx, ((double *)(__pyx_v_open_data + __pyx_v_begidx)), ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":901 + * outreal_data[i] = NaN + * retCode = lib.TA_AVGPRICE( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_AVGPRICE", retCode) # <<<<<<<<<<<<<< + * return outreal + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_AVGPRICE, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 901, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":902 + * retCode = lib.TA_AVGPRICE( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_AVGPRICE", retCode) + * return outreal # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); + __pyx_r = ((PyObject *)__pyx_v_outreal); + goto __pyx_L0; + + /* "talib/_func.pxi":818 + * @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.c_ta_lib.AVGPRICE", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outreal); + __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/_func.pxi":906 + * @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_8c_ta_lib_37BBANDS(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_36BBANDS[] = " 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_8c_ta_lib_37BBANDS = {"BBANDS", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_37BBANDS, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_36BBANDS}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_37BBANDS(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(2, 906, __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(2, 906, __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(2, 906, __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(2, 906, __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(2, 906, __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(2, 906, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 906, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_36BBANDS(__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_8c_ta_lib_36BBANDS(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; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + TA_RetCode __pyx_v_retCode; + double *__pyx_v_real_data; + int __pyx_v_outbegidx; + int __pyx_v_outnbelement; + PyArrayObject *__pyx_v_outrealupperband = 0; + double *__pyx_v_outrealupperband_data; + PyArrayObject *__pyx_v_outrealmiddleband = 0; + double *__pyx_v_outrealmiddleband_data; + PyArrayObject *__pyx_v_outreallowerband = 0; + double *__pyx_v_outreallowerband_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __Pyx_RefNannySetupContext("BBANDS", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real); + + /* "talib/_func.pxi":937 + * np.ndarray outreallowerband + * double* outreallowerband_data + * 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/_func.pxi":938 + * double* outreallowerband_data + * 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__94, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 938, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 938, __pyx_L1_error) + + /* "talib/_func.pxi":937 + * np.ndarray outreallowerband + * double* outreallowerband_data + * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real is not double") + * if real.ndim != 1: + */ + } + + /* "talib/_func.pxi":939 + * 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/_func.pxi":940 + * 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__95, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 940, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 940, __pyx_L1_error) + + /* "talib/_func.pxi":939 + * 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/_func.pxi":941 + * 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 = real.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":942 + * raise Exception("real has wrong dimensions") + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< + * real_data = real.data + * length = real.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 942, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 942, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":941 + * 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 = real.data + */ + } + + /* "talib/_func.pxi":943 + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data # <<<<<<<<<<<<<< + * length = real.shape[0] + * begidx = 0 + */ + __pyx_v_real_data = ((double *)__pyx_v_real->data); + + /* "talib/_func.pxi":944 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data + * length = real.shape[0] # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_v_length = (__pyx_v_real->dimensions[0]); + + /* "talib/_func.pxi":945 + * real_data = real.data + * length = real.shape[0] + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = real_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":946 + * length = real.shape[0] + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = real_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":947 + * begidx = 0 + * for i from 0 <= i < length: + * val = real_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_real_data[__pyx_v_i]); + + /* "talib/_func.pxi":948 + * for i from 0 <= i < length: + * val = real_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":949 + * val = real_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L6_continue; + + /* "talib/_func.pxi":948 + * for i from 0 <= i < length: + * val = real_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":950 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":951 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L7_break; + __pyx_L6_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":953 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_BBANDS_Lookback( timeperiod , nbdevup , nbdevdn , matype ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__96, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 953, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 953, __pyx_L1_error) + } + __pyx_L7_break:; + + /* "talib/_func.pxi":954 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_BBANDS_Lookback( timeperiod , nbdevup , nbdevdn , matype ) + * outrealupperband = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":955 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_BBANDS_Lookback( timeperiod , nbdevup , nbdevdn , matype ) # <<<<<<<<<<<<<< + * outrealupperband = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outrealupperband_data = outrealupperband.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_BBANDS_Lookback(__pyx_v_timeperiod, __pyx_v_nbdevup, __pyx_v_nbdevdn, __pyx_v_matype)); + + /* "talib/_func.pxi":956 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_BBANDS_Lookback( timeperiod , nbdevup , nbdevdn , matype ) + * outrealupperband = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outrealupperband_data = outrealupperband.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 956, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 956, __pyx_L1_error) + __pyx_v_outrealupperband = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":957 + * lookback = begidx + lib.TA_BBANDS_Lookback( timeperiod , nbdevup , nbdevdn , matype ) + * outrealupperband = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outrealupperband_data = outrealupperband.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outrealupperband_data[i] = NaN + */ + __pyx_v_outrealupperband_data = ((double *)__pyx_v_outrealupperband->data); + + /* "talib/_func.pxi":958 + * outrealupperband = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outrealupperband_data = outrealupperband.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outrealupperband_data[i] = NaN + * outrealmiddleband = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":959 + * outrealupperband_data = outrealupperband.data + * for i from 0 <= i < min(lookback, length): + * outrealupperband_data[i] = NaN # <<<<<<<<<<<<<< + * outrealmiddleband = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outrealmiddleband_data = outrealmiddleband.data + */ + (__pyx_v_outrealupperband_data[__pyx_v_i]) = __pyx_v_5talib_8c_ta_lib_NaN; + } + + /* "talib/_func.pxi":960 + * for i from 0 <= i < min(lookback, length): + * outrealupperband_data[i] = NaN + * outrealmiddleband = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outrealmiddleband_data = outrealmiddleband.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 960, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 960, __pyx_L1_error) + __pyx_v_outrealmiddleband = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":961 + * outrealupperband_data[i] = NaN + * outrealmiddleband = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outrealmiddleband_data = outrealmiddleband.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outrealmiddleband_data[i] = NaN + */ + __pyx_v_outrealmiddleband_data = ((double *)__pyx_v_outrealmiddleband->data); + + /* "talib/_func.pxi":962 + * outrealmiddleband = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outrealmiddleband_data = outrealmiddleband.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outrealmiddleband_data[i] = NaN + * outreallowerband = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":963 + * outrealmiddleband_data = outrealmiddleband.data + * for i from 0 <= i < min(lookback, length): + * outrealmiddleband_data[i] = NaN # <<<<<<<<<<<<<< + * outreallowerband = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreallowerband_data = outreallowerband.data + */ + (__pyx_v_outrealmiddleband_data[__pyx_v_i]) = __pyx_v_5talib_8c_ta_lib_NaN; + } + + /* "talib/_func.pxi":964 + * for i from 0 <= i < min(lookback, length): + * outrealmiddleband_data[i] = NaN + * outreallowerband = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outreallowerband_data = outreallowerband.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 964, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 964, __pyx_L1_error) + __pyx_v_outreallowerband = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":965 + * outrealmiddleband_data[i] = NaN + * outreallowerband = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreallowerband_data = outreallowerband.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outreallowerband_data[i] = NaN + */ + __pyx_v_outreallowerband_data = ((double *)__pyx_v_outreallowerband->data); + + /* "talib/_func.pxi":966 + * outreallowerband = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreallowerband_data = outreallowerband.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outreallowerband_data[i] = NaN + * retCode = lib.TA_BBANDS( 0 , endidx , (real_data+begidx) , timeperiod , nbdevup , nbdevdn , matype , &outbegidx , &outnbelement , (outrealupperband_data+lookback) , (outrealmiddleband_data+lookback) , (outreallowerband_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":967 + * outreallowerband_data = outreallowerband.data + * for i from 0 <= i < min(lookback, length): + * outreallowerband_data[i] = NaN # <<<<<<<<<<<<<< + * retCode = lib.TA_BBANDS( 0 , endidx , (real_data+begidx) , timeperiod , nbdevup , nbdevdn , matype , &outbegidx , &outnbelement , (outrealupperband_data+lookback) , (outrealmiddleband_data+lookback) , (outreallowerband_data+lookback) ) + * _ta_check_success("TA_BBANDS", retCode) + */ + (__pyx_v_outreallowerband_data[__pyx_v_i]) = __pyx_v_5talib_8c_ta_lib_NaN; + } + + /* "talib/_func.pxi":968 + * for i from 0 <= i < min(lookback, length): + * outreallowerband_data[i] = NaN + * retCode = lib.TA_BBANDS( 0 , endidx , (real_data+begidx) , timeperiod , nbdevup , nbdevdn , matype , &outbegidx , &outnbelement , (outrealupperband_data+lookback) , (outrealmiddleband_data+lookback) , (outreallowerband_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_BBANDS", retCode) + * return outrealupperband , outrealmiddleband , outreallowerband + */ + __pyx_v_retCode = TA_BBANDS(0, __pyx_v_endidx, ((double *)(__pyx_v_real_data + __pyx_v_begidx)), __pyx_v_timeperiod, __pyx_v_nbdevup, __pyx_v_nbdevdn, __pyx_v_matype, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outrealupperband_data + __pyx_v_lookback)), ((double *)(__pyx_v_outrealmiddleband_data + __pyx_v_lookback)), ((double *)(__pyx_v_outreallowerband_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":969 + * outreallowerband_data[i] = NaN + * retCode = lib.TA_BBANDS( 0 , endidx , (real_data+begidx) , timeperiod , nbdevup , nbdevdn , matype , &outbegidx , &outnbelement , (outrealupperband_data+lookback) , (outrealmiddleband_data+lookback) , (outreallowerband_data+lookback) ) + * _ta_check_success("TA_BBANDS", retCode) # <<<<<<<<<<<<<< + * return outrealupperband , outrealmiddleband , outreallowerband + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_BBANDS, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 969, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":970 + * retCode = lib.TA_BBANDS( 0 , endidx , (real_data+begidx) , timeperiod , nbdevup , nbdevdn , matype , &outbegidx , &outnbelement , (outrealupperband_data+lookback) , (outrealmiddleband_data+lookback) , (outreallowerband_data+lookback) ) + * _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 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 970, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_INCREF(((PyObject *)__pyx_v_outrealupperband)); + __Pyx_GIVEREF(((PyObject *)__pyx_v_outrealupperband)); + PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_v_outrealupperband)); + __Pyx_INCREF(((PyObject *)__pyx_v_outrealmiddleband)); + __Pyx_GIVEREF(((PyObject *)__pyx_v_outrealmiddleband)); + PyTuple_SET_ITEM(__pyx_t_2, 1, ((PyObject *)__pyx_v_outrealmiddleband)); + __Pyx_INCREF(((PyObject *)__pyx_v_outreallowerband)); + __Pyx_GIVEREF(((PyObject *)__pyx_v_outreallowerband)); + PyTuple_SET_ITEM(__pyx_t_2, 2, ((PyObject *)__pyx_v_outreallowerband)); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_func.pxi":906 + * @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_AddTraceback("talib.c_ta_lib.BBANDS", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outrealupperband); + __Pyx_XDECREF((PyObject *)__pyx_v_outrealmiddleband); + __Pyx_XDECREF((PyObject *)__pyx_v_outreallowerband); + __Pyx_XDECREF((PyObject *)__pyx_v_real); + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "talib/_func.pxi":974 + * @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_8c_ta_lib_39BETA(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_38BETA[] = " 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_8c_ta_lib_39BETA = {"BETA", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_39BETA, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_38BETA}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_39BETA(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(2, 974, __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(2, 974, __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(2, 974, __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(2, 974, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 974, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_real1), __pyx_ptype_5numpy_ndarray, 0, "real1", 0))) __PYX_ERR(2, 974, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_38BETA(__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_8c_ta_lib_38BETA(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real0, PyArrayObject *__pyx_v_real1, int __pyx_v_timeperiod) { + npy_intp __pyx_v_length; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + TA_RetCode __pyx_v_retCode; + double *__pyx_v_real0_data; + double *__pyx_v_real1_data; + int __pyx_v_outbegidx; + int __pyx_v_outnbelement; + PyArrayObject *__pyx_v_outreal = 0; + double *__pyx_v_outreal_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __Pyx_RefNannySetupContext("BETA", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real0); + __Pyx_INCREF((PyObject *)__pyx_v_real1); + + /* "talib/_func.pxi":998 + * np.ndarray outreal + * double* outreal_data + * 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/_func.pxi":999 + * double* outreal_data + * 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__97, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 999, __pyx_L1_error) + + /* "talib/_func.pxi":998 + * np.ndarray outreal + * double* outreal_data + * if PyArray_TYPE(real0) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real0 is not double") + * if real0.ndim != 1: + */ + } + + /* "talib/_func.pxi":1000 + * 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/_func.pxi":1001 + * 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__98, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1001, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 1001, __pyx_L1_error) + + /* "talib/_func.pxi":1000 + * 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/_func.pxi":1002 + * 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 = real0.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real0) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":1003 + * raise Exception("real0 has wrong dimensions") + * if not (PyArray_FLAGS(real0) & np.NPY_C_CONTIGUOUS): + * real0 = PyArray_GETCONTIGUOUS(real0) # <<<<<<<<<<<<<< + * real0_data = real0.data + * if PyArray_TYPE(real1) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1003, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 1003, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real0, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":1002 + * 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 = real0.data + */ + } + + /* "talib/_func.pxi":1004 + * if not (PyArray_FLAGS(real0) & np.NPY_C_CONTIGUOUS): + * real0 = PyArray_GETCONTIGUOUS(real0) + * real0_data = 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/_func.pxi":1005 + * real0 = PyArray_GETCONTIGUOUS(real0) + * real0_data = 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/_func.pxi":1006 + * real0_data = 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__99, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1006, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 1006, __pyx_L1_error) + + /* "talib/_func.pxi":1005 + * real0 = PyArray_GETCONTIGUOUS(real0) + * real0_data = real0.data + * if PyArray_TYPE(real1) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real1 is not double") + * if real1.ndim != 1: + */ + } + + /* "talib/_func.pxi":1007 + * 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/_func.pxi":1008 + * 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__100, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1008, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 1008, __pyx_L1_error) + + /* "talib/_func.pxi":1007 + * 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/_func.pxi":1009 + * 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 = real1.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real1) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":1010 + * raise Exception("real1 has wrong dimensions") + * if not (PyArray_FLAGS(real1) & np.NPY_C_CONTIGUOUS): + * real1 = PyArray_GETCONTIGUOUS(real1) # <<<<<<<<<<<<<< + * real1_data = real1.data + * length = real0.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real1); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1010, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 1010, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real1, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":1009 + * 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 = real1.data + */ + } + + /* "talib/_func.pxi":1011 + * if not (PyArray_FLAGS(real1) & np.NPY_C_CONTIGUOUS): + * real1 = PyArray_GETCONTIGUOUS(real1) + * real1_data = real1.data # <<<<<<<<<<<<<< + * length = real0.shape[0] + * if length != real1.shape[0]: + */ + __pyx_v_real1_data = ((double *)__pyx_v_real1->data); + + /* "talib/_func.pxi":1012 + * real1 = PyArray_GETCONTIGUOUS(real1) + * real1_data = 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/_func.pxi":1013 + * real1_data = real1.data + * length = real0.shape[0] + * if length != real1.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + __pyx_t_1 = ((__pyx_v_length != (__pyx_v_real1->dimensions[0])) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":1014 + * length = real0.shape[0] + * if length != real1.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__101, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1014, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 1014, __pyx_L1_error) + + /* "talib/_func.pxi":1013 + * real1_data = real1.data + * length = real0.shape[0] + * if length != real1.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + } + + /* "talib/_func.pxi":1015 + * if length != real1.shape[0]: + * raise Exception("input lengths are different") + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = real0_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":1016 + * raise Exception("input lengths are different") + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = real0_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":1017 + * begidx = 0 + * for i from 0 <= i < length: + * val = real0_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_real0_data[__pyx_v_i]); + + /* "talib/_func.pxi":1018 + * for i from 0 <= i < length: + * val = real0_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = real1_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":1019 + * val = real0_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = real1_data[i] + * if val != val: + */ + goto __pyx_L10_continue; + + /* "talib/_func.pxi":1018 + * for i from 0 <= i < length: + * val = real0_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = real1_data[i] + */ + } + + /* "talib/_func.pxi":1020 + * if val != val: + * continue + * val = real1_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_real1_data[__pyx_v_i]); + + /* "talib/_func.pxi":1021 + * continue + * val = real1_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":1022 + * val = real1_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L10_continue; + + /* "talib/_func.pxi":1021 + * continue + * val = real1_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":1023 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":1024 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L11_break; + __pyx_L10_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":1026 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_BETA_Lookback( timeperiod ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__102, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1026, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 1026, __pyx_L1_error) + } + __pyx_L11_break:; + + /* "talib/_func.pxi":1027 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_BETA_Lookback( timeperiod ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":1028 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_BETA_Lookback( timeperiod ) # <<<<<<<<<<<<<< + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_BETA_Lookback(__pyx_v_timeperiod)); + + /* "talib/_func.pxi":1029 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_BETA_Lookback( timeperiod ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1029, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 1029, __pyx_L1_error) + __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":1030 + * lookback = begidx + lib.TA_BETA_Lookback( timeperiod ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + */ + __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); + + /* "talib/_func.pxi":1031 + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outreal_data[i] = NaN + * retCode = lib.TA_BETA( 0 , endidx , (real0_data+begidx) , (real1_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":1032 + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN # <<<<<<<<<<<<<< + * retCode = lib.TA_BETA( 0 , endidx , (real0_data+begidx) , (real1_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_BETA", retCode) + */ + (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_8c_ta_lib_NaN; + } + + /* "talib/_func.pxi":1033 + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + * retCode = lib.TA_BETA( 0 , endidx , (real0_data+begidx) , (real1_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_BETA", retCode) + * return outreal + */ + __pyx_v_retCode = TA_BETA(0, __pyx_v_endidx, ((double *)(__pyx_v_real0_data + __pyx_v_begidx)), ((double *)(__pyx_v_real1_data + __pyx_v_begidx)), __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":1034 + * outreal_data[i] = NaN + * retCode = lib.TA_BETA( 0 , endidx , (real0_data+begidx) , (real1_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_BETA", retCode) # <<<<<<<<<<<<<< + * return outreal + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_BETA, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1034, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":1035 + * retCode = lib.TA_BETA( 0 , endidx , (real0_data+begidx) , (real1_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_BETA", retCode) + * return outreal # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); + __pyx_r = ((PyObject *)__pyx_v_outreal); + goto __pyx_L0; + + /* "talib/_func.pxi":974 + * @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.c_ta_lib.BETA", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outreal); + __Pyx_XDECREF((PyObject *)__pyx_v_real0); + __Pyx_XDECREF((PyObject *)__pyx_v_real1); + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "talib/_func.pxi":1039 + * @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_8c_ta_lib_41BOP(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_40BOP[] = " 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_8c_ta_lib_41BOP = {"BOP", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_41BOP, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_40BOP}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_41BOP(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(2, 1039, __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(2, 1039, __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(2, 1039, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "BOP") < 0)) __PYX_ERR(2, 1039, __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(2, 1039, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 1039, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(2, 1039, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(2, 1039, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(2, 1039, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_40BOP(__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_8c_ta_lib_40BOP(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; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + 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; + PyArrayObject *__pyx_v_outreal = 0; + double *__pyx_v_outreal_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __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/_func.pxi":1062 + * np.ndarray outreal + * double* outreal_data + * 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/_func.pxi":1063 + * double* outreal_data + * 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__103, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 1063, __pyx_L1_error) + + /* "talib/_func.pxi":1062 + * np.ndarray outreal + * double* outreal_data + * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("open is not double") + * if open.ndim != 1: + */ + } + + /* "talib/_func.pxi":1064 + * 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/_func.pxi":1065 + * 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__104, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1065, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 1065, __pyx_L1_error) + + /* "talib/_func.pxi":1064 + * 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/_func.pxi":1066 + * 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 = open.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":1067 + * raise Exception("open has wrong dimensions") + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1067, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 1067, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":1066 + * 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 = open.data + */ + } + + /* "talib/_func.pxi":1068 + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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/_func.pxi":1069 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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/_func.pxi":1070 + * open_data = 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__105, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1070, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 1070, __pyx_L1_error) + + /* "talib/_func.pxi":1069 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_func.pxi":1071 + * 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/_func.pxi":1072 + * raise 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__106, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1072, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 1072, __pyx_L1_error) + + /* "talib/_func.pxi":1071 + * 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/_func.pxi":1073 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":1074 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1074, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 1074, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":1073 + * 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 = high.data + */ + } + + /* "talib/_func.pxi":1075 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":1076 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":1077 + * high_data = 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__107, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1077, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 1077, __pyx_L1_error) + + /* "talib/_func.pxi":1076 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_func.pxi":1078 + * 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/_func.pxi":1079 + * raise 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__108, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1079, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 1079, __pyx_L1_error) + + /* "talib/_func.pxi":1078 + * 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/_func.pxi":1080 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":1081 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1081, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 1081, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":1080 + * 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 = low.data + */ + } + + /* "talib/_func.pxi":1082 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":1083 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":1084 + * low_data = 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__109, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1084, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 1084, __pyx_L1_error) + + /* "talib/_func.pxi":1083 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_func.pxi":1085 + * 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/_func.pxi":1086 + * raise 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__110, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1086, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 1086, __pyx_L1_error) + + /* "talib/_func.pxi":1085 + * 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/_func.pxi":1087 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":1088 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = open.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1088, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 1088, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":1087 + * 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 = close.data + */ + } + + /* "talib/_func.pxi":1089 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = open.shape[0] + * if length != high.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_func.pxi":1090 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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/_func.pxi":1091 + * close_data = 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/_func.pxi":1092 + * 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__111, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1092, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 1092, __pyx_L1_error) + + /* "talib/_func.pxi":1091 + * close_data = close.data + * length = open.shape[0] + * if length != high.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != low.shape[0]: + */ + } + + /* "talib/_func.pxi":1093 + * 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/_func.pxi":1094 + * 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__112, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 1094, __pyx_L1_error) + + /* "talib/_func.pxi":1093 + * 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/_func.pxi":1095 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":1096 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__113, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 1096, __pyx_L1_error) + + /* "talib/_func.pxi":1095 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + } + + /* "talib/_func.pxi":1097 + * if length != close.shape[0]: + * raise Exception("input lengths are different") + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = open_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":1098 + * raise Exception("input lengths are different") + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = open_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":1099 + * begidx = 0 + * for i from 0 <= i < length: + * val = open_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_open_data[__pyx_v_i]); + + /* "talib/_func.pxi":1100 + * for i from 0 <= i < length: + * val = open_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = high_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":1101 + * val = open_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = high_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":1100 + * for i from 0 <= i < length: + * val = open_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = high_data[i] + */ + } + + /* "talib/_func.pxi":1102 + * if val != val: + * continue + * val = high_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); + + /* "talib/_func.pxi":1103 + * continue + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":1104 + * val = high_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = low_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":1103 + * continue + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + } + + /* "talib/_func.pxi":1105 + * if val != val: + * continue + * val = low_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); + + /* "talib/_func.pxi":1106 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":1107 + * val = low_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = close_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":1106 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + } + + /* "talib/_func.pxi":1108 + * if val != val: + * continue + * val = close_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); + + /* "talib/_func.pxi":1109 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":1110 + * val = close_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":1109 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":1111 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":1112 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L19_break; + __pyx_L18_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":1114 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_BOP_Lookback( ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__114, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1114, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 1114, __pyx_L1_error) + } + __pyx_L19_break:; + + /* "talib/_func.pxi":1115 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_BOP_Lookback( ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":1116 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_BOP_Lookback( ) # <<<<<<<<<<<<<< + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_BOP_Lookback()); + + /* "talib/_func.pxi":1117 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_BOP_Lookback( ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1117, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 1117, __pyx_L1_error) + __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":1118 + * lookback = begidx + lib.TA_BOP_Lookback( ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + */ + __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); + + /* "talib/_func.pxi":1119 + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outreal_data[i] = NaN + * retCode = lib.TA_BOP( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":1120 + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN # <<<<<<<<<<<<<< + * retCode = lib.TA_BOP( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_BOP", retCode) + */ + (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_8c_ta_lib_NaN; + } + + /* "talib/_func.pxi":1121 + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + * retCode = lib.TA_BOP( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_BOP", retCode) + * return outreal + */ + __pyx_v_retCode = TA_BOP(0, __pyx_v_endidx, ((double *)(__pyx_v_open_data + __pyx_v_begidx)), ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":1122 + * outreal_data[i] = NaN + * retCode = lib.TA_BOP( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_BOP", retCode) # <<<<<<<<<<<<<< + * return outreal + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_BOP, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1122, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":1123 + * retCode = lib.TA_BOP( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_BOP", retCode) + * return outreal # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); + __pyx_r = ((PyObject *)__pyx_v_outreal); + goto __pyx_L0; + + /* "talib/_func.pxi":1039 + * @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.c_ta_lib.BOP", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outreal); + __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/_func.pxi":1127 + * @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_8c_ta_lib_43CCI(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_42CCI[] = " 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_8c_ta_lib_43CCI = {"CCI", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_43CCI, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_42CCI}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_43CCI(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(2, 1127, __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(2, 1127, __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(2, 1127, __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(2, 1127, __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(2, 1127, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 1127, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(2, 1127, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(2, 1127, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_42CCI(__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_8c_ta_lib_42CCI(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; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + 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; + PyArrayObject *__pyx_v_outreal = 0; + double *__pyx_v_outreal_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __Pyx_RefNannySetupContext("CCI", 0); + __Pyx_INCREF((PyObject *)__pyx_v_high); + __Pyx_INCREF((PyObject *)__pyx_v_low); + __Pyx_INCREF((PyObject *)__pyx_v_close); + + /* "talib/_func.pxi":1151 + * np.ndarray outreal + * double* outreal_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/_func.pxi":1152 + * double* outreal_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__115, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1152, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 1152, __pyx_L1_error) + + /* "talib/_func.pxi":1151 + * np.ndarray outreal + * double* outreal_data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_func.pxi":1153 + * 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/_func.pxi":1154 + * raise 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__116, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1154, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 1154, __pyx_L1_error) + + /* "talib/_func.pxi":1153 + * 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/_func.pxi":1155 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":1156 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1156, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 1156, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":1155 + * 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 = high.data + */ + } + + /* "talib/_func.pxi":1157 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":1158 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":1159 + * high_data = 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__117, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1159, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 1159, __pyx_L1_error) + + /* "talib/_func.pxi":1158 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_func.pxi":1160 + * 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/_func.pxi":1161 + * raise 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__118, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1161, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 1161, __pyx_L1_error) + + /* "talib/_func.pxi":1160 + * 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/_func.pxi":1162 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":1163 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1163, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 1163, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":1162 + * 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 = low.data + */ + } + + /* "talib/_func.pxi":1164 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":1165 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":1166 + * low_data = 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__119, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1166, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 1166, __pyx_L1_error) + + /* "talib/_func.pxi":1165 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_func.pxi":1167 + * 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/_func.pxi":1168 + * raise 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__120, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1168, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 1168, __pyx_L1_error) + + /* "talib/_func.pxi":1167 + * 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/_func.pxi":1169 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":1170 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = high.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1170, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 1170, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":1169 + * 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 = close.data + */ + } + + /* "talib/_func.pxi":1171 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = high.shape[0] + * if length != low.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_func.pxi":1172 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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/_func.pxi":1173 + * close_data = 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/_func.pxi":1174 + * 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__121, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 1174, __pyx_L1_error) + + /* "talib/_func.pxi":1173 + * close_data = close.data + * length = high.shape[0] + * if length != low.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != close.shape[0]: + */ + } + + /* "talib/_func.pxi":1175 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":1176 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__122, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1176, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 1176, __pyx_L1_error) + + /* "talib/_func.pxi":1175 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + } + + /* "talib/_func.pxi":1177 + * if length != close.shape[0]: + * raise Exception("input lengths are different") + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = high_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":1178 + * raise Exception("input lengths are different") + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = high_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":1179 + * begidx = 0 + * for i from 0 <= i < length: + * val = high_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); + + /* "talib/_func.pxi":1180 + * for i from 0 <= i < length: + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":1181 + * val = high_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = low_data[i] + * if val != val: + */ + goto __pyx_L14_continue; + + /* "talib/_func.pxi":1180 + * for i from 0 <= i < length: + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + } + + /* "talib/_func.pxi":1182 + * if val != val: + * continue + * val = low_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); + + /* "talib/_func.pxi":1183 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":1184 + * val = low_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = close_data[i] + * if val != val: + */ + goto __pyx_L14_continue; + + /* "talib/_func.pxi":1183 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + } + + /* "talib/_func.pxi":1185 + * if val != val: + * continue + * val = close_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); + + /* "talib/_func.pxi":1186 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":1187 + * val = close_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L14_continue; + + /* "talib/_func.pxi":1186 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":1188 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":1189 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L15_break; + __pyx_L14_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":1191 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CCI_Lookback( timeperiod ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__123, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 1191, __pyx_L1_error) + } + __pyx_L15_break:; + + /* "talib/_func.pxi":1192 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_CCI_Lookback( timeperiod ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":1193 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CCI_Lookback( timeperiod ) # <<<<<<<<<<<<<< + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_CCI_Lookback(__pyx_v_timeperiod)); + + /* "talib/_func.pxi":1194 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CCI_Lookback( timeperiod ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1194, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 1194, __pyx_L1_error) + __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":1195 + * lookback = begidx + lib.TA_CCI_Lookback( timeperiod ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + */ + __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); + + /* "talib/_func.pxi":1196 + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outreal_data[i] = NaN + * retCode = lib.TA_CCI( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":1197 + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN # <<<<<<<<<<<<<< + * retCode = lib.TA_CCI( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_CCI", retCode) + */ + (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_8c_ta_lib_NaN; + } + + /* "talib/_func.pxi":1198 + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + * retCode = lib.TA_CCI( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_CCI", retCode) + * return outreal + */ + __pyx_v_retCode = TA_CCI(0, __pyx_v_endidx, ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":1199 + * outreal_data[i] = NaN + * retCode = lib.TA_CCI( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_CCI", retCode) # <<<<<<<<<<<<<< + * return outreal + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CCI, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1199, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":1200 + * retCode = lib.TA_CCI( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_CCI", retCode) + * return outreal # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); + __pyx_r = ((PyObject *)__pyx_v_outreal); + goto __pyx_L0; + + /* "talib/_func.pxi":1127 + * @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.c_ta_lib.CCI", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outreal); + __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/_func.pxi":1204 + * @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_8c_ta_lib_45CDL2CROWS(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_44CDL2CROWS[] = " 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_8c_ta_lib_45CDL2CROWS = {"CDL2CROWS", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_45CDL2CROWS, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_44CDL2CROWS}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_45CDL2CROWS(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(2, 1204, __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(2, 1204, __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(2, 1204, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "CDL2CROWS") < 0)) __PYX_ERR(2, 1204, __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(2, 1204, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 1204, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(2, 1204, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(2, 1204, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(2, 1204, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_44CDL2CROWS(__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_8c_ta_lib_44CDL2CROWS(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; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + 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; + PyArrayObject *__pyx_v_outinteger = 0; + int *__pyx_v_outinteger_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __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/_func.pxi":1227 + * np.ndarray outinteger + * int* outinteger_data + * 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/_func.pxi":1228 + * int* outinteger_data + * 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__124, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1228, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 1228, __pyx_L1_error) + + /* "talib/_func.pxi":1227 + * np.ndarray outinteger + * int* outinteger_data + * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("open is not double") + * if open.ndim != 1: + */ + } + + /* "talib/_func.pxi":1229 + * 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/_func.pxi":1230 + * 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__125, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1230, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 1230, __pyx_L1_error) + + /* "talib/_func.pxi":1229 + * 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/_func.pxi":1231 + * 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 = open.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":1232 + * raise Exception("open has wrong dimensions") + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1232, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 1232, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":1231 + * 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 = open.data + */ + } + + /* "talib/_func.pxi":1233 + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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/_func.pxi":1234 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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/_func.pxi":1235 + * open_data = 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__126, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1235, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 1235, __pyx_L1_error) + + /* "talib/_func.pxi":1234 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_func.pxi":1236 + * 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/_func.pxi":1237 + * raise 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__127, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1237, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 1237, __pyx_L1_error) + + /* "talib/_func.pxi":1236 + * 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/_func.pxi":1238 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":1239 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1239, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 1239, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":1238 + * 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 = high.data + */ + } + + /* "talib/_func.pxi":1240 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":1241 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":1242 + * high_data = 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__128, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1242, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 1242, __pyx_L1_error) + + /* "talib/_func.pxi":1241 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_func.pxi":1243 + * 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/_func.pxi":1244 + * raise 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__129, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1244, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 1244, __pyx_L1_error) + + /* "talib/_func.pxi":1243 + * 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/_func.pxi":1245 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":1246 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1246, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 1246, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":1245 + * 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 = low.data + */ + } + + /* "talib/_func.pxi":1247 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":1248 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":1249 + * low_data = 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__130, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1249, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 1249, __pyx_L1_error) + + /* "talib/_func.pxi":1248 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_func.pxi":1250 + * 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/_func.pxi":1251 + * raise 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__131, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 1251, __pyx_L1_error) + + /* "talib/_func.pxi":1250 + * 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/_func.pxi":1252 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":1253 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = open.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1253, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 1253, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":1252 + * 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 = close.data + */ + } + + /* "talib/_func.pxi":1254 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = open.shape[0] + * if length != high.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_func.pxi":1255 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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/_func.pxi":1256 + * close_data = 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/_func.pxi":1257 + * 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__132, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1257, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 1257, __pyx_L1_error) + + /* "talib/_func.pxi":1256 + * close_data = close.data + * length = open.shape[0] + * if length != high.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != low.shape[0]: + */ + } + + /* "talib/_func.pxi":1258 + * 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/_func.pxi":1259 + * 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__133, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1259, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 1259, __pyx_L1_error) + + /* "talib/_func.pxi":1258 + * 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/_func.pxi":1260 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":1261 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__134, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1261, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 1261, __pyx_L1_error) + + /* "talib/_func.pxi":1260 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + } + + /* "talib/_func.pxi":1262 + * if length != close.shape[0]: + * raise Exception("input lengths are different") + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = open_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":1263 + * raise Exception("input lengths are different") + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = open_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":1264 + * begidx = 0 + * for i from 0 <= i < length: + * val = open_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_open_data[__pyx_v_i]); + + /* "talib/_func.pxi":1265 + * for i from 0 <= i < length: + * val = open_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = high_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":1266 + * val = open_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = high_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":1265 + * for i from 0 <= i < length: + * val = open_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = high_data[i] + */ + } + + /* "talib/_func.pxi":1267 + * if val != val: + * continue + * val = high_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); + + /* "talib/_func.pxi":1268 + * continue + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":1269 + * val = high_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = low_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":1268 + * continue + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + } + + /* "talib/_func.pxi":1270 + * if val != val: + * continue + * val = low_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); + + /* "talib/_func.pxi":1271 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":1272 + * val = low_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = close_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":1271 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + } + + /* "talib/_func.pxi":1273 + * if val != val: + * continue + * val = close_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); + + /* "talib/_func.pxi":1274 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":1275 + * val = close_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":1274 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":1276 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":1277 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L19_break; + __pyx_L18_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":1279 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDL2CROWS_Lookback( ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__135, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1279, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 1279, __pyx_L1_error) + } + __pyx_L19_break:; + + /* "talib/_func.pxi":1280 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_CDL2CROWS_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":1281 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDL2CROWS_Lookback( ) # <<<<<<<<<<<<<< + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_CDL2CROWS_Lookback()); + + /* "talib/_func.pxi":1282 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDL2CROWS_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1282, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 1282, __pyx_L1_error) + __pyx_v_outinteger = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":1283 + * lookback = begidx + lib.TA_CDL2CROWS_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 + */ + __pyx_v_outinteger_data = ((int *)__pyx_v_outinteger->data); + + /* "talib/_func.pxi":1284 + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outinteger_data[i] = 0 + * retCode = lib.TA_CDL2CROWS( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":1285 + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 # <<<<<<<<<<<<<< + * retCode = lib.TA_CDL2CROWS( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDL2CROWS", retCode) + */ + (__pyx_v_outinteger_data[__pyx_v_i]) = 0; + } + + /* "talib/_func.pxi":1286 + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 + * retCode = lib.TA_CDL2CROWS( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_CDL2CROWS", retCode) + * return outinteger + */ + __pyx_v_retCode = TA_CDL2CROWS(0, __pyx_v_endidx, ((double *)(__pyx_v_open_data + __pyx_v_begidx)), ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outinteger_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":1287 + * outinteger_data[i] = 0 + * retCode = lib.TA_CDL2CROWS( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDL2CROWS", retCode) # <<<<<<<<<<<<<< + * return outinteger + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CDL2CROWS, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1287, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":1288 + * retCode = lib.TA_CDL2CROWS( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDL2CROWS", retCode) + * return outinteger # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outinteger)); + __pyx_r = ((PyObject *)__pyx_v_outinteger); + goto __pyx_L0; + + /* "talib/_func.pxi":1204 + * @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.c_ta_lib.CDL2CROWS", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outinteger); + __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/_func.pxi":1292 + * @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_8c_ta_lib_47CDL3BLACKCROWS(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_46CDL3BLACKCROWS[] = " 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_8c_ta_lib_47CDL3BLACKCROWS = {"CDL3BLACKCROWS", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_47CDL3BLACKCROWS, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_46CDL3BLACKCROWS}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_47CDL3BLACKCROWS(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(2, 1292, __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(2, 1292, __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(2, 1292, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "CDL3BLACKCROWS") < 0)) __PYX_ERR(2, 1292, __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(2, 1292, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 1292, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(2, 1292, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(2, 1292, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(2, 1292, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_46CDL3BLACKCROWS(__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_8c_ta_lib_46CDL3BLACKCROWS(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; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + 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; + PyArrayObject *__pyx_v_outinteger = 0; + int *__pyx_v_outinteger_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __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/_func.pxi":1315 + * np.ndarray outinteger + * int* outinteger_data + * 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/_func.pxi":1316 + * int* outinteger_data + * 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__136, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1316, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 1316, __pyx_L1_error) + + /* "talib/_func.pxi":1315 + * np.ndarray outinteger + * int* outinteger_data + * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("open is not double") + * if open.ndim != 1: + */ + } + + /* "talib/_func.pxi":1317 + * 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/_func.pxi":1318 + * 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__137, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1318, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 1318, __pyx_L1_error) + + /* "talib/_func.pxi":1317 + * 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/_func.pxi":1319 + * 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 = open.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":1320 + * raise Exception("open has wrong dimensions") + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1320, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 1320, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":1319 + * 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 = open.data + */ + } + + /* "talib/_func.pxi":1321 + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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/_func.pxi":1322 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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/_func.pxi":1323 + * open_data = 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__138, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1323, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 1323, __pyx_L1_error) + + /* "talib/_func.pxi":1322 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_func.pxi":1324 + * 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/_func.pxi":1325 + * raise 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__139, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1325, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 1325, __pyx_L1_error) + + /* "talib/_func.pxi":1324 + * 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/_func.pxi":1326 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":1327 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1327, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 1327, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":1326 + * 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 = high.data + */ + } + + /* "talib/_func.pxi":1328 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":1329 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":1330 + * high_data = 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__140, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1330, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 1330, __pyx_L1_error) + + /* "talib/_func.pxi":1329 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_func.pxi":1331 + * 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/_func.pxi":1332 + * raise 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__141, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1332, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 1332, __pyx_L1_error) + + /* "talib/_func.pxi":1331 + * 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/_func.pxi":1333 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":1334 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1334, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 1334, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":1333 + * 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 = low.data + */ + } + + /* "talib/_func.pxi":1335 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":1336 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":1337 + * low_data = 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__142, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1337, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 1337, __pyx_L1_error) + + /* "talib/_func.pxi":1336 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_func.pxi":1338 + * 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/_func.pxi":1339 + * raise 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__143, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1339, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 1339, __pyx_L1_error) + + /* "talib/_func.pxi":1338 + * 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/_func.pxi":1340 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":1341 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = open.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1341, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 1341, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":1340 + * 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 = close.data + */ + } + + /* "talib/_func.pxi":1342 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = open.shape[0] + * if length != high.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_func.pxi":1343 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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/_func.pxi":1344 + * close_data = 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/_func.pxi":1345 + * 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__144, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1345, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 1345, __pyx_L1_error) + + /* "talib/_func.pxi":1344 + * close_data = close.data + * length = open.shape[0] + * if length != high.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != low.shape[0]: + */ + } + + /* "talib/_func.pxi":1346 + * 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/_func.pxi":1347 + * 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__145, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1347, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 1347, __pyx_L1_error) + + /* "talib/_func.pxi":1346 + * 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/_func.pxi":1348 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":1349 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__146, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1349, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 1349, __pyx_L1_error) + + /* "talib/_func.pxi":1348 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + } + + /* "talib/_func.pxi":1350 + * if length != close.shape[0]: + * raise Exception("input lengths are different") + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = open_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":1351 + * raise Exception("input lengths are different") + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = open_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":1352 + * begidx = 0 + * for i from 0 <= i < length: + * val = open_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_open_data[__pyx_v_i]); + + /* "talib/_func.pxi":1353 + * for i from 0 <= i < length: + * val = open_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = high_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":1354 + * val = open_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = high_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":1353 + * for i from 0 <= i < length: + * val = open_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = high_data[i] + */ + } + + /* "talib/_func.pxi":1355 + * if val != val: + * continue + * val = high_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); + + /* "talib/_func.pxi":1356 + * continue + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":1357 + * val = high_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = low_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":1356 + * continue + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + } + + /* "talib/_func.pxi":1358 + * if val != val: + * continue + * val = low_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); + + /* "talib/_func.pxi":1359 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":1360 + * val = low_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = close_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":1359 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + } + + /* "talib/_func.pxi":1361 + * if val != val: + * continue + * val = close_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); + + /* "talib/_func.pxi":1362 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":1363 + * val = close_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":1362 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":1364 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":1365 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L19_break; + __pyx_L18_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":1367 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDL3BLACKCROWS_Lookback( ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__147, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1367, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 1367, __pyx_L1_error) + } + __pyx_L19_break:; + + /* "talib/_func.pxi":1368 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_CDL3BLACKCROWS_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":1369 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDL3BLACKCROWS_Lookback( ) # <<<<<<<<<<<<<< + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_CDL3BLACKCROWS_Lookback()); + + /* "talib/_func.pxi":1370 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDL3BLACKCROWS_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 1370, __pyx_L1_error) + __pyx_v_outinteger = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":1371 + * lookback = begidx + lib.TA_CDL3BLACKCROWS_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 + */ + __pyx_v_outinteger_data = ((int *)__pyx_v_outinteger->data); + + /* "talib/_func.pxi":1372 + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outinteger_data[i] = 0 + * retCode = lib.TA_CDL3BLACKCROWS( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":1373 + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 # <<<<<<<<<<<<<< + * retCode = lib.TA_CDL3BLACKCROWS( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDL3BLACKCROWS", retCode) + */ + (__pyx_v_outinteger_data[__pyx_v_i]) = 0; + } + + /* "talib/_func.pxi":1374 + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 + * retCode = lib.TA_CDL3BLACKCROWS( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_CDL3BLACKCROWS", retCode) + * return outinteger + */ + __pyx_v_retCode = TA_CDL3BLACKCROWS(0, __pyx_v_endidx, ((double *)(__pyx_v_open_data + __pyx_v_begidx)), ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outinteger_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":1375 + * outinteger_data[i] = 0 + * retCode = lib.TA_CDL3BLACKCROWS( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDL3BLACKCROWS", retCode) # <<<<<<<<<<<<<< + * return outinteger + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CDL3BLACKCROWS, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1375, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":1376 + * retCode = lib.TA_CDL3BLACKCROWS( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDL3BLACKCROWS", retCode) + * return outinteger # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outinteger)); + __pyx_r = ((PyObject *)__pyx_v_outinteger); + goto __pyx_L0; + + /* "talib/_func.pxi":1292 + * @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.c_ta_lib.CDL3BLACKCROWS", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outinteger); + __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/_func.pxi":1380 + * @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_8c_ta_lib_49CDL3INSIDE(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_48CDL3INSIDE[] = " 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_8c_ta_lib_49CDL3INSIDE = {"CDL3INSIDE", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_49CDL3INSIDE, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_48CDL3INSIDE}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_49CDL3INSIDE(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(2, 1380, __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(2, 1380, __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(2, 1380, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "CDL3INSIDE") < 0)) __PYX_ERR(2, 1380, __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(2, 1380, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 1380, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(2, 1380, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(2, 1380, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(2, 1380, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_48CDL3INSIDE(__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_8c_ta_lib_48CDL3INSIDE(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; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + 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; + PyArrayObject *__pyx_v_outinteger = 0; + int *__pyx_v_outinteger_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __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/_func.pxi":1403 + * np.ndarray outinteger + * int* outinteger_data + * 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/_func.pxi":1404 + * int* outinteger_data + * 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__148, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1404, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 1404, __pyx_L1_error) + + /* "talib/_func.pxi":1403 + * np.ndarray outinteger + * int* outinteger_data + * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("open is not double") + * if open.ndim != 1: + */ + } + + /* "talib/_func.pxi":1405 + * 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/_func.pxi":1406 + * 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__149, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1406, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 1406, __pyx_L1_error) + + /* "talib/_func.pxi":1405 + * 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/_func.pxi":1407 + * 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 = open.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":1408 + * raise Exception("open has wrong dimensions") + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1408, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 1408, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":1407 + * 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 = open.data + */ + } + + /* "talib/_func.pxi":1409 + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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/_func.pxi":1410 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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/_func.pxi":1411 + * open_data = 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__150, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1411, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 1411, __pyx_L1_error) + + /* "talib/_func.pxi":1410 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_func.pxi":1412 + * 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/_func.pxi":1413 + * raise 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__151, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1413, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 1413, __pyx_L1_error) + + /* "talib/_func.pxi":1412 + * 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/_func.pxi":1414 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":1415 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1415, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 1415, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":1414 + * 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 = high.data + */ + } + + /* "talib/_func.pxi":1416 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":1417 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":1418 + * high_data = 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__152, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 1418, __pyx_L1_error) + + /* "talib/_func.pxi":1417 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_func.pxi":1419 + * 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/_func.pxi":1420 + * raise 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__153, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1420, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 1420, __pyx_L1_error) + + /* "talib/_func.pxi":1419 + * 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/_func.pxi":1421 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":1422 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1422, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 1422, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":1421 + * 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 = low.data + */ + } + + /* "talib/_func.pxi":1423 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":1424 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":1425 + * low_data = 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__154, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 1425, __pyx_L1_error) + + /* "talib/_func.pxi":1424 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_func.pxi":1426 + * 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/_func.pxi":1427 + * raise 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__155, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1427, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 1427, __pyx_L1_error) + + /* "talib/_func.pxi":1426 + * 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/_func.pxi":1428 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":1429 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = open.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1429, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 1429, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":1428 + * 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 = close.data + */ + } + + /* "talib/_func.pxi":1430 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = open.shape[0] + * if length != high.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_func.pxi":1431 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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/_func.pxi":1432 + * close_data = 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/_func.pxi":1433 + * 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__156, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1433, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 1433, __pyx_L1_error) + + /* "talib/_func.pxi":1432 + * close_data = close.data + * length = open.shape[0] + * if length != high.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != low.shape[0]: + */ + } + + /* "talib/_func.pxi":1434 + * 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/_func.pxi":1435 + * 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__157, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1435, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 1435, __pyx_L1_error) + + /* "talib/_func.pxi":1434 + * 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/_func.pxi":1436 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":1437 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__158, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 1437, __pyx_L1_error) + + /* "talib/_func.pxi":1436 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + } + + /* "talib/_func.pxi":1438 + * if length != close.shape[0]: + * raise Exception("input lengths are different") + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = open_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":1439 + * raise Exception("input lengths are different") + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = open_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":1440 + * begidx = 0 + * for i from 0 <= i < length: + * val = open_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_open_data[__pyx_v_i]); + + /* "talib/_func.pxi":1441 + * for i from 0 <= i < length: + * val = open_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = high_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":1442 + * val = open_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = high_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":1441 + * for i from 0 <= i < length: + * val = open_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = high_data[i] + */ + } + + /* "talib/_func.pxi":1443 + * if val != val: + * continue + * val = high_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); + + /* "talib/_func.pxi":1444 + * continue + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":1445 + * val = high_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = low_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":1444 + * continue + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + } + + /* "talib/_func.pxi":1446 + * if val != val: + * continue + * val = low_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); + + /* "talib/_func.pxi":1447 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":1448 + * val = low_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = close_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":1447 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + } + + /* "talib/_func.pxi":1449 + * if val != val: + * continue + * val = close_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); + + /* "talib/_func.pxi":1450 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":1451 + * val = close_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":1450 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":1452 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":1453 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L19_break; + __pyx_L18_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":1455 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDL3INSIDE_Lookback( ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__159, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1455, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 1455, __pyx_L1_error) + } + __pyx_L19_break:; + + /* "talib/_func.pxi":1456 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_CDL3INSIDE_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":1457 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDL3INSIDE_Lookback( ) # <<<<<<<<<<<<<< + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_CDL3INSIDE_Lookback()); + + /* "talib/_func.pxi":1458 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDL3INSIDE_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1458, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 1458, __pyx_L1_error) + __pyx_v_outinteger = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":1459 + * lookback = begidx + lib.TA_CDL3INSIDE_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 + */ + __pyx_v_outinteger_data = ((int *)__pyx_v_outinteger->data); + + /* "talib/_func.pxi":1460 + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outinteger_data[i] = 0 + * retCode = lib.TA_CDL3INSIDE( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":1461 + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 # <<<<<<<<<<<<<< + * retCode = lib.TA_CDL3INSIDE( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDL3INSIDE", retCode) + */ + (__pyx_v_outinteger_data[__pyx_v_i]) = 0; + } + + /* "talib/_func.pxi":1462 + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 + * retCode = lib.TA_CDL3INSIDE( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_CDL3INSIDE", retCode) + * return outinteger + */ + __pyx_v_retCode = TA_CDL3INSIDE(0, __pyx_v_endidx, ((double *)(__pyx_v_open_data + __pyx_v_begidx)), ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outinteger_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":1463 + * outinteger_data[i] = 0 + * retCode = lib.TA_CDL3INSIDE( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDL3INSIDE", retCode) # <<<<<<<<<<<<<< + * return outinteger + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CDL3INSIDE, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1463, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":1464 + * retCode = lib.TA_CDL3INSIDE( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDL3INSIDE", retCode) + * return outinteger # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outinteger)); + __pyx_r = ((PyObject *)__pyx_v_outinteger); + goto __pyx_L0; + + /* "talib/_func.pxi":1380 + * @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.c_ta_lib.CDL3INSIDE", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outinteger); + __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/_func.pxi":1468 + * @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_8c_ta_lib_51CDL3LINESTRIKE(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_50CDL3LINESTRIKE[] = " 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_8c_ta_lib_51CDL3LINESTRIKE = {"CDL3LINESTRIKE", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_51CDL3LINESTRIKE, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_50CDL3LINESTRIKE}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_51CDL3LINESTRIKE(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(2, 1468, __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(2, 1468, __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(2, 1468, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "CDL3LINESTRIKE") < 0)) __PYX_ERR(2, 1468, __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(2, 1468, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 1468, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(2, 1468, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(2, 1468, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(2, 1468, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_50CDL3LINESTRIKE(__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_8c_ta_lib_50CDL3LINESTRIKE(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; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + 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; + PyArrayObject *__pyx_v_outinteger = 0; + int *__pyx_v_outinteger_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __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/_func.pxi":1491 + * np.ndarray outinteger + * int* outinteger_data + * 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/_func.pxi":1492 + * int* outinteger_data + * 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__160, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1492, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 1492, __pyx_L1_error) + + /* "talib/_func.pxi":1491 + * np.ndarray outinteger + * int* outinteger_data + * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("open is not double") + * if open.ndim != 1: + */ + } + + /* "talib/_func.pxi":1493 + * 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/_func.pxi":1494 + * 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__161, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 1494, __pyx_L1_error) + + /* "talib/_func.pxi":1493 + * 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/_func.pxi":1495 + * 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 = open.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":1496 + * raise Exception("open has wrong dimensions") + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1496, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 1496, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":1495 + * 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 = open.data + */ + } + + /* "talib/_func.pxi":1497 + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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/_func.pxi":1498 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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/_func.pxi":1499 + * open_data = 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__162, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1499, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 1499, __pyx_L1_error) + + /* "talib/_func.pxi":1498 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_func.pxi":1500 + * 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/_func.pxi":1501 + * raise 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__163, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 1501, __pyx_L1_error) + + /* "talib/_func.pxi":1500 + * 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/_func.pxi":1502 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":1503 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1503, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 1503, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":1502 + * 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 = high.data + */ + } + + /* "talib/_func.pxi":1504 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":1505 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":1506 + * high_data = 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__164, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1506, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 1506, __pyx_L1_error) + + /* "talib/_func.pxi":1505 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_func.pxi":1507 + * 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/_func.pxi":1508 + * raise 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__165, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1508, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 1508, __pyx_L1_error) + + /* "talib/_func.pxi":1507 + * 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/_func.pxi":1509 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":1510 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1510, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 1510, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":1509 + * 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 = low.data + */ + } + + /* "talib/_func.pxi":1511 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":1512 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":1513 + * low_data = 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__166, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 1513, __pyx_L1_error) + + /* "talib/_func.pxi":1512 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_func.pxi":1514 + * 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/_func.pxi":1515 + * raise 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__167, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1515, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 1515, __pyx_L1_error) + + /* "talib/_func.pxi":1514 + * 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/_func.pxi":1516 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":1517 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = open.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1517, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 1517, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":1516 + * 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 = close.data + */ + } + + /* "talib/_func.pxi":1518 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = open.shape[0] + * if length != high.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_func.pxi":1519 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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/_func.pxi":1520 + * close_data = 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/_func.pxi":1521 + * 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__168, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1521, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 1521, __pyx_L1_error) + + /* "talib/_func.pxi":1520 + * close_data = close.data + * length = open.shape[0] + * if length != high.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != low.shape[0]: + */ + } + + /* "talib/_func.pxi":1522 + * 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/_func.pxi":1523 + * 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__169, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1523, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 1523, __pyx_L1_error) + + /* "talib/_func.pxi":1522 + * 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/_func.pxi":1524 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":1525 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__170, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1525, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 1525, __pyx_L1_error) + + /* "talib/_func.pxi":1524 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + } + + /* "talib/_func.pxi":1526 + * if length != close.shape[0]: + * raise Exception("input lengths are different") + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = open_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":1527 + * raise Exception("input lengths are different") + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = open_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":1528 + * begidx = 0 + * for i from 0 <= i < length: + * val = open_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_open_data[__pyx_v_i]); + + /* "talib/_func.pxi":1529 + * for i from 0 <= i < length: + * val = open_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = high_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":1530 + * val = open_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = high_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":1529 + * for i from 0 <= i < length: + * val = open_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = high_data[i] + */ + } + + /* "talib/_func.pxi":1531 + * if val != val: + * continue + * val = high_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); + + /* "talib/_func.pxi":1532 + * continue + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":1533 + * val = high_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = low_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":1532 + * continue + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + } + + /* "talib/_func.pxi":1534 + * if val != val: + * continue + * val = low_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); + + /* "talib/_func.pxi":1535 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":1536 + * val = low_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = close_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":1535 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + } + + /* "talib/_func.pxi":1537 + * if val != val: + * continue + * val = close_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); + + /* "talib/_func.pxi":1538 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":1539 + * val = close_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":1538 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":1540 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":1541 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L19_break; + __pyx_L18_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":1543 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDL3LINESTRIKE_Lookback( ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__171, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1543, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 1543, __pyx_L1_error) + } + __pyx_L19_break:; + + /* "talib/_func.pxi":1544 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_CDL3LINESTRIKE_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":1545 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDL3LINESTRIKE_Lookback( ) # <<<<<<<<<<<<<< + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_CDL3LINESTRIKE_Lookback()); + + /* "talib/_func.pxi":1546 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDL3LINESTRIKE_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1546, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 1546, __pyx_L1_error) + __pyx_v_outinteger = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":1547 + * lookback = begidx + lib.TA_CDL3LINESTRIKE_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 + */ + __pyx_v_outinteger_data = ((int *)__pyx_v_outinteger->data); + + /* "talib/_func.pxi":1548 + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outinteger_data[i] = 0 + * retCode = lib.TA_CDL3LINESTRIKE( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":1549 + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 # <<<<<<<<<<<<<< + * retCode = lib.TA_CDL3LINESTRIKE( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDL3LINESTRIKE", retCode) + */ + (__pyx_v_outinteger_data[__pyx_v_i]) = 0; + } + + /* "talib/_func.pxi":1550 + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 + * retCode = lib.TA_CDL3LINESTRIKE( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_CDL3LINESTRIKE", retCode) + * return outinteger + */ + __pyx_v_retCode = TA_CDL3LINESTRIKE(0, __pyx_v_endidx, ((double *)(__pyx_v_open_data + __pyx_v_begidx)), ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outinteger_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":1551 + * outinteger_data[i] = 0 + * retCode = lib.TA_CDL3LINESTRIKE( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDL3LINESTRIKE", retCode) # <<<<<<<<<<<<<< + * return outinteger + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CDL3LINESTRIKE, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1551, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":1552 + * retCode = lib.TA_CDL3LINESTRIKE( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDL3LINESTRIKE", retCode) + * return outinteger # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outinteger)); + __pyx_r = ((PyObject *)__pyx_v_outinteger); + goto __pyx_L0; + + /* "talib/_func.pxi":1468 + * @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.c_ta_lib.CDL3LINESTRIKE", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outinteger); + __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/_func.pxi":1556 + * @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_8c_ta_lib_53CDL3OUTSIDE(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_52CDL3OUTSIDE[] = " 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_8c_ta_lib_53CDL3OUTSIDE = {"CDL3OUTSIDE", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_53CDL3OUTSIDE, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_52CDL3OUTSIDE}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_53CDL3OUTSIDE(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(2, 1556, __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(2, 1556, __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(2, 1556, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "CDL3OUTSIDE") < 0)) __PYX_ERR(2, 1556, __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(2, 1556, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 1556, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(2, 1556, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(2, 1556, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(2, 1556, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_52CDL3OUTSIDE(__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_8c_ta_lib_52CDL3OUTSIDE(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; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + 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; + PyArrayObject *__pyx_v_outinteger = 0; + int *__pyx_v_outinteger_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __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/_func.pxi":1579 + * np.ndarray outinteger + * int* outinteger_data + * 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/_func.pxi":1580 + * int* outinteger_data + * 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__172, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1580, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 1580, __pyx_L1_error) + + /* "talib/_func.pxi":1579 + * np.ndarray outinteger + * int* outinteger_data + * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("open is not double") + * if open.ndim != 1: + */ + } + + /* "talib/_func.pxi":1581 + * 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/_func.pxi":1582 + * 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__173, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1582, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 1582, __pyx_L1_error) + + /* "talib/_func.pxi":1581 + * 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/_func.pxi":1583 + * 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 = open.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":1584 + * raise Exception("open has wrong dimensions") + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1584, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 1584, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":1583 + * 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 = open.data + */ + } + + /* "talib/_func.pxi":1585 + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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/_func.pxi":1586 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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/_func.pxi":1587 + * open_data = 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__174, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1587, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 1587, __pyx_L1_error) + + /* "talib/_func.pxi":1586 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_func.pxi":1588 + * 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/_func.pxi":1589 + * raise 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__175, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1589, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 1589, __pyx_L1_error) + + /* "talib/_func.pxi":1588 + * 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/_func.pxi":1590 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":1591 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1591, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 1591, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":1590 + * 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 = high.data + */ + } + + /* "talib/_func.pxi":1592 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":1593 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":1594 + * high_data = 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__176, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1594, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 1594, __pyx_L1_error) + + /* "talib/_func.pxi":1593 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_func.pxi":1595 + * 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/_func.pxi":1596 + * raise 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__177, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1596, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 1596, __pyx_L1_error) + + /* "talib/_func.pxi":1595 + * 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/_func.pxi":1597 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":1598 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1598, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 1598, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":1597 + * 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 = low.data + */ + } + + /* "talib/_func.pxi":1599 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":1600 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":1601 + * low_data = 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__178, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1601, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 1601, __pyx_L1_error) + + /* "talib/_func.pxi":1600 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_func.pxi":1602 + * 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/_func.pxi":1603 + * raise 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__179, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1603, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 1603, __pyx_L1_error) + + /* "talib/_func.pxi":1602 + * 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/_func.pxi":1604 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":1605 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = open.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1605, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 1605, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":1604 + * 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 = close.data + */ + } + + /* "talib/_func.pxi":1606 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = open.shape[0] + * if length != high.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_func.pxi":1607 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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/_func.pxi":1608 + * close_data = 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/_func.pxi":1609 + * 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__180, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1609, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 1609, __pyx_L1_error) + + /* "talib/_func.pxi":1608 + * close_data = close.data + * length = open.shape[0] + * if length != high.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != low.shape[0]: + */ + } + + /* "talib/_func.pxi":1610 + * 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/_func.pxi":1611 + * 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__181, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1611, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 1611, __pyx_L1_error) + + /* "talib/_func.pxi":1610 + * 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/_func.pxi":1612 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":1613 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__182, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1613, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 1613, __pyx_L1_error) + + /* "talib/_func.pxi":1612 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + } + + /* "talib/_func.pxi":1614 + * if length != close.shape[0]: + * raise Exception("input lengths are different") + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = open_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":1615 + * raise Exception("input lengths are different") + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = open_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":1616 + * begidx = 0 + * for i from 0 <= i < length: + * val = open_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_open_data[__pyx_v_i]); + + /* "talib/_func.pxi":1617 + * for i from 0 <= i < length: + * val = open_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = high_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":1618 + * val = open_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = high_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":1617 + * for i from 0 <= i < length: + * val = open_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = high_data[i] + */ + } + + /* "talib/_func.pxi":1619 + * if val != val: + * continue + * val = high_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); + + /* "talib/_func.pxi":1620 + * continue + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":1621 + * val = high_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = low_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":1620 + * continue + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + } + + /* "talib/_func.pxi":1622 + * if val != val: + * continue + * val = low_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); + + /* "talib/_func.pxi":1623 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":1624 + * val = low_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = close_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":1623 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + } + + /* "talib/_func.pxi":1625 + * if val != val: + * continue + * val = close_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); + + /* "talib/_func.pxi":1626 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":1627 + * val = close_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":1626 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":1628 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":1629 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L19_break; + __pyx_L18_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":1631 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDL3OUTSIDE_Lookback( ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__183, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 1631, __pyx_L1_error) + } + __pyx_L19_break:; + + /* "talib/_func.pxi":1632 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_CDL3OUTSIDE_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":1633 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDL3OUTSIDE_Lookback( ) # <<<<<<<<<<<<<< + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_CDL3OUTSIDE_Lookback()); + + /* "talib/_func.pxi":1634 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDL3OUTSIDE_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1634, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 1634, __pyx_L1_error) + __pyx_v_outinteger = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":1635 + * lookback = begidx + lib.TA_CDL3OUTSIDE_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 + */ + __pyx_v_outinteger_data = ((int *)__pyx_v_outinteger->data); + + /* "talib/_func.pxi":1636 + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outinteger_data[i] = 0 + * retCode = lib.TA_CDL3OUTSIDE( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":1637 + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 # <<<<<<<<<<<<<< + * retCode = lib.TA_CDL3OUTSIDE( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDL3OUTSIDE", retCode) + */ + (__pyx_v_outinteger_data[__pyx_v_i]) = 0; + } + + /* "talib/_func.pxi":1638 + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 + * retCode = lib.TA_CDL3OUTSIDE( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_CDL3OUTSIDE", retCode) + * return outinteger + */ + __pyx_v_retCode = TA_CDL3OUTSIDE(0, __pyx_v_endidx, ((double *)(__pyx_v_open_data + __pyx_v_begidx)), ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outinteger_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":1639 + * outinteger_data[i] = 0 + * retCode = lib.TA_CDL3OUTSIDE( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDL3OUTSIDE", retCode) # <<<<<<<<<<<<<< + * return outinteger + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CDL3OUTSIDE, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1639, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":1640 + * retCode = lib.TA_CDL3OUTSIDE( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDL3OUTSIDE", retCode) + * return outinteger # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outinteger)); + __pyx_r = ((PyObject *)__pyx_v_outinteger); + goto __pyx_L0; + + /* "talib/_func.pxi":1556 + * @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.c_ta_lib.CDL3OUTSIDE", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outinteger); + __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/_func.pxi":1644 + * @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_8c_ta_lib_55CDL3STARSINSOUTH(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_54CDL3STARSINSOUTH[] = " 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_8c_ta_lib_55CDL3STARSINSOUTH = {"CDL3STARSINSOUTH", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_55CDL3STARSINSOUTH, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_54CDL3STARSINSOUTH}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_55CDL3STARSINSOUTH(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(2, 1644, __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(2, 1644, __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(2, 1644, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "CDL3STARSINSOUTH") < 0)) __PYX_ERR(2, 1644, __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(2, 1644, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 1644, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(2, 1644, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(2, 1644, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(2, 1644, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_54CDL3STARSINSOUTH(__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_8c_ta_lib_54CDL3STARSINSOUTH(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; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + 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; + PyArrayObject *__pyx_v_outinteger = 0; + int *__pyx_v_outinteger_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __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/_func.pxi":1667 + * np.ndarray outinteger + * int* outinteger_data + * 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/_func.pxi":1668 + * int* outinteger_data + * 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(2, 1668, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 1668, __pyx_L1_error) + + /* "talib/_func.pxi":1667 + * np.ndarray outinteger + * int* outinteger_data + * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("open is not double") + * if open.ndim != 1: + */ + } + + /* "talib/_func.pxi":1669 + * 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/_func.pxi":1670 + * 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(2, 1670, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 1670, __pyx_L1_error) + + /* "talib/_func.pxi":1669 + * 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/_func.pxi":1671 + * 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 = open.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":1672 + * raise Exception("open has wrong dimensions") + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1672, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 1672, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":1671 + * 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 = open.data + */ + } + + /* "talib/_func.pxi":1673 + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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/_func.pxi":1674 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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/_func.pxi":1675 + * open_data = 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(2, 1675, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 1675, __pyx_L1_error) + + /* "talib/_func.pxi":1674 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_func.pxi":1676 + * 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/_func.pxi":1677 + * raise 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(2, 1677, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 1677, __pyx_L1_error) + + /* "talib/_func.pxi":1676 + * 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/_func.pxi":1678 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":1679 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1679, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 1679, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":1678 + * 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 = high.data + */ + } + + /* "talib/_func.pxi":1680 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":1681 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":1682 + * high_data = 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(2, 1682, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 1682, __pyx_L1_error) + + /* "talib/_func.pxi":1681 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_func.pxi":1683 + * 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/_func.pxi":1684 + * raise 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(2, 1684, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 1684, __pyx_L1_error) + + /* "talib/_func.pxi":1683 + * 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/_func.pxi":1685 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":1686 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1686, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 1686, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":1685 + * 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 = low.data + */ + } + + /* "talib/_func.pxi":1687 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":1688 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":1689 + * low_data = 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(2, 1689, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 1689, __pyx_L1_error) + + /* "talib/_func.pxi":1688 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_func.pxi":1690 + * 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/_func.pxi":1691 + * raise 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(2, 1691, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 1691, __pyx_L1_error) + + /* "talib/_func.pxi":1690 + * 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/_func.pxi":1692 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":1693 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = open.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1693, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 1693, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":1692 + * 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 = close.data + */ + } + + /* "talib/_func.pxi":1694 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = open.shape[0] + * if length != high.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_func.pxi":1695 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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/_func.pxi":1696 + * close_data = 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/_func.pxi":1697 + * 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(2, 1697, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 1697, __pyx_L1_error) + + /* "talib/_func.pxi":1696 + * close_data = close.data + * length = open.shape[0] + * if length != high.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != low.shape[0]: + */ + } + + /* "talib/_func.pxi":1698 + * 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/_func.pxi":1699 + * 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(2, 1699, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 1699, __pyx_L1_error) + + /* "talib/_func.pxi":1698 + * 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/_func.pxi":1700 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":1701 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__194, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 1701, __pyx_L1_error) + + /* "talib/_func.pxi":1700 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + } + + /* "talib/_func.pxi":1702 + * if length != close.shape[0]: + * raise Exception("input lengths are different") + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = open_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":1703 + * raise Exception("input lengths are different") + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = open_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":1704 + * begidx = 0 + * for i from 0 <= i < length: + * val = open_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_open_data[__pyx_v_i]); + + /* "talib/_func.pxi":1705 + * for i from 0 <= i < length: + * val = open_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = high_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":1706 + * val = open_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = high_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":1705 + * for i from 0 <= i < length: + * val = open_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = high_data[i] + */ + } + + /* "talib/_func.pxi":1707 + * if val != val: + * continue + * val = high_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); + + /* "talib/_func.pxi":1708 + * continue + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":1709 + * val = high_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = low_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":1708 + * continue + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + } + + /* "talib/_func.pxi":1710 + * if val != val: + * continue + * val = low_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); + + /* "talib/_func.pxi":1711 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":1712 + * val = low_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = close_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":1711 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + } + + /* "talib/_func.pxi":1713 + * if val != val: + * continue + * val = close_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); + + /* "talib/_func.pxi":1714 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":1715 + * val = close_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":1714 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":1716 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":1717 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L19_break; + __pyx_L18_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":1719 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDL3STARSINSOUTH_Lookback( ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__195, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1719, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 1719, __pyx_L1_error) + } + __pyx_L19_break:; + + /* "talib/_func.pxi":1720 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_CDL3STARSINSOUTH_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":1721 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDL3STARSINSOUTH_Lookback( ) # <<<<<<<<<<<<<< + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_CDL3STARSINSOUTH_Lookback()); + + /* "talib/_func.pxi":1722 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDL3STARSINSOUTH_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1722, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 1722, __pyx_L1_error) + __pyx_v_outinteger = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":1723 + * lookback = begidx + lib.TA_CDL3STARSINSOUTH_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 + */ + __pyx_v_outinteger_data = ((int *)__pyx_v_outinteger->data); + + /* "talib/_func.pxi":1724 + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outinteger_data[i] = 0 + * retCode = lib.TA_CDL3STARSINSOUTH( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":1725 + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 # <<<<<<<<<<<<<< + * retCode = lib.TA_CDL3STARSINSOUTH( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDL3STARSINSOUTH", retCode) + */ + (__pyx_v_outinteger_data[__pyx_v_i]) = 0; + } + + /* "talib/_func.pxi":1726 + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 + * retCode = lib.TA_CDL3STARSINSOUTH( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_CDL3STARSINSOUTH", retCode) + * return outinteger + */ + __pyx_v_retCode = TA_CDL3STARSINSOUTH(0, __pyx_v_endidx, ((double *)(__pyx_v_open_data + __pyx_v_begidx)), ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outinteger_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":1727 + * outinteger_data[i] = 0 + * retCode = lib.TA_CDL3STARSINSOUTH( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDL3STARSINSOUTH", retCode) # <<<<<<<<<<<<<< + * return outinteger + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CDL3STARSINSOUTH, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1727, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":1728 + * retCode = lib.TA_CDL3STARSINSOUTH( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDL3STARSINSOUTH", retCode) + * return outinteger # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outinteger)); + __pyx_r = ((PyObject *)__pyx_v_outinteger); + goto __pyx_L0; + + /* "talib/_func.pxi":1644 + * @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.c_ta_lib.CDL3STARSINSOUTH", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outinteger); + __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/_func.pxi":1732 + * @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_8c_ta_lib_57CDL3WHITESOLDIERS(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_56CDL3WHITESOLDIERS[] = " 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_8c_ta_lib_57CDL3WHITESOLDIERS = {"CDL3WHITESOLDIERS", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_57CDL3WHITESOLDIERS, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_56CDL3WHITESOLDIERS}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_57CDL3WHITESOLDIERS(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(2, 1732, __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(2, 1732, __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(2, 1732, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "CDL3WHITESOLDIERS") < 0)) __PYX_ERR(2, 1732, __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(2, 1732, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 1732, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(2, 1732, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(2, 1732, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(2, 1732, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_56CDL3WHITESOLDIERS(__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_8c_ta_lib_56CDL3WHITESOLDIERS(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; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + 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; + PyArrayObject *__pyx_v_outinteger = 0; + int *__pyx_v_outinteger_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __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/_func.pxi":1755 + * np.ndarray outinteger + * int* outinteger_data + * 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/_func.pxi":1756 + * int* outinteger_data + * 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__196, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1756, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 1756, __pyx_L1_error) + + /* "talib/_func.pxi":1755 + * np.ndarray outinteger + * int* outinteger_data + * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("open is not double") + * if open.ndim != 1: + */ + } + + /* "talib/_func.pxi":1757 + * 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/_func.pxi":1758 + * 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__197, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1758, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 1758, __pyx_L1_error) + + /* "talib/_func.pxi":1757 + * 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/_func.pxi":1759 + * 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 = open.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":1760 + * raise Exception("open has wrong dimensions") + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1760, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 1760, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":1759 + * 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 = open.data + */ + } + + /* "talib/_func.pxi":1761 + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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/_func.pxi":1762 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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/_func.pxi":1763 + * open_data = 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__198, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1763, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 1763, __pyx_L1_error) + + /* "talib/_func.pxi":1762 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_func.pxi":1764 + * 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/_func.pxi":1765 + * raise 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__199, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 1765, __pyx_L1_error) + + /* "talib/_func.pxi":1764 + * 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/_func.pxi":1766 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":1767 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1767, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 1767, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":1766 + * 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 = high.data + */ + } + + /* "talib/_func.pxi":1768 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":1769 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":1770 + * high_data = 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__200, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1770, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 1770, __pyx_L1_error) + + /* "talib/_func.pxi":1769 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_func.pxi":1771 + * 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/_func.pxi":1772 + * raise 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__201, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1772, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 1772, __pyx_L1_error) + + /* "talib/_func.pxi":1771 + * 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/_func.pxi":1773 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":1774 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1774, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 1774, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":1773 + * 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 = low.data + */ + } + + /* "talib/_func.pxi":1775 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":1776 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":1777 + * low_data = 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__202, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1777, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 1777, __pyx_L1_error) + + /* "talib/_func.pxi":1776 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_func.pxi":1778 + * 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/_func.pxi":1779 + * raise 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__203, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1779, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 1779, __pyx_L1_error) + + /* "talib/_func.pxi":1778 + * 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/_func.pxi":1780 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":1781 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = open.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1781, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 1781, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":1780 + * 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 = close.data + */ + } + + /* "talib/_func.pxi":1782 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = open.shape[0] + * if length != high.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_func.pxi":1783 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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/_func.pxi":1784 + * close_data = 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/_func.pxi":1785 + * 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__204, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1785, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 1785, __pyx_L1_error) + + /* "talib/_func.pxi":1784 + * close_data = close.data + * length = open.shape[0] + * if length != high.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != low.shape[0]: + */ + } + + /* "talib/_func.pxi":1786 + * 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/_func.pxi":1787 + * 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__205, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1787, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 1787, __pyx_L1_error) + + /* "talib/_func.pxi":1786 + * 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/_func.pxi":1788 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":1789 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__206, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1789, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 1789, __pyx_L1_error) + + /* "talib/_func.pxi":1788 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + } + + /* "talib/_func.pxi":1790 + * if length != close.shape[0]: + * raise Exception("input lengths are different") + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = open_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":1791 + * raise Exception("input lengths are different") + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = open_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":1792 + * begidx = 0 + * for i from 0 <= i < length: + * val = open_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_open_data[__pyx_v_i]); + + /* "talib/_func.pxi":1793 + * for i from 0 <= i < length: + * val = open_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = high_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":1794 + * val = open_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = high_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":1793 + * for i from 0 <= i < length: + * val = open_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = high_data[i] + */ + } + + /* "talib/_func.pxi":1795 + * if val != val: + * continue + * val = high_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); + + /* "talib/_func.pxi":1796 + * continue + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":1797 + * val = high_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = low_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":1796 + * continue + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + } + + /* "talib/_func.pxi":1798 + * if val != val: + * continue + * val = low_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); + + /* "talib/_func.pxi":1799 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":1800 + * val = low_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = close_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":1799 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + } + + /* "talib/_func.pxi":1801 + * if val != val: + * continue + * val = close_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); + + /* "talib/_func.pxi":1802 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":1803 + * val = close_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":1802 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":1804 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":1805 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L19_break; + __pyx_L18_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":1807 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDL3WHITESOLDIERS_Lookback( ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__207, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1807, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 1807, __pyx_L1_error) + } + __pyx_L19_break:; + + /* "talib/_func.pxi":1808 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_CDL3WHITESOLDIERS_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":1809 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDL3WHITESOLDIERS_Lookback( ) # <<<<<<<<<<<<<< + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_CDL3WHITESOLDIERS_Lookback()); + + /* "talib/_func.pxi":1810 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDL3WHITESOLDIERS_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1810, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 1810, __pyx_L1_error) + __pyx_v_outinteger = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":1811 + * lookback = begidx + lib.TA_CDL3WHITESOLDIERS_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 + */ + __pyx_v_outinteger_data = ((int *)__pyx_v_outinteger->data); + + /* "talib/_func.pxi":1812 + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outinteger_data[i] = 0 + * retCode = lib.TA_CDL3WHITESOLDIERS( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":1813 + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 # <<<<<<<<<<<<<< + * retCode = lib.TA_CDL3WHITESOLDIERS( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDL3WHITESOLDIERS", retCode) + */ + (__pyx_v_outinteger_data[__pyx_v_i]) = 0; + } + + /* "talib/_func.pxi":1814 + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 + * retCode = lib.TA_CDL3WHITESOLDIERS( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_CDL3WHITESOLDIERS", retCode) + * return outinteger + */ + __pyx_v_retCode = TA_CDL3WHITESOLDIERS(0, __pyx_v_endidx, ((double *)(__pyx_v_open_data + __pyx_v_begidx)), ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outinteger_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":1815 + * outinteger_data[i] = 0 + * retCode = lib.TA_CDL3WHITESOLDIERS( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDL3WHITESOLDIERS", retCode) # <<<<<<<<<<<<<< + * return outinteger + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CDL3WHITESOLDIERS, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1815, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":1816 + * retCode = lib.TA_CDL3WHITESOLDIERS( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDL3WHITESOLDIERS", retCode) + * return outinteger # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outinteger)); + __pyx_r = ((PyObject *)__pyx_v_outinteger); + goto __pyx_L0; + + /* "talib/_func.pxi":1732 + * @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.c_ta_lib.CDL3WHITESOLDIERS", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outinteger); + __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/_func.pxi":1820 + * @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_8c_ta_lib_59CDLABANDONEDBABY(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_58CDLABANDONEDBABY[] = " 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_8c_ta_lib_59CDLABANDONEDBABY = {"CDLABANDONEDBABY", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_59CDLABANDONEDBABY, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_58CDLABANDONEDBABY}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_59CDLABANDONEDBABY(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(2, 1820, __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(2, 1820, __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(2, 1820, __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(2, 1820, __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(2, 1820, __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(2, 1820, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 1820, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(2, 1820, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(2, 1820, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(2, 1820, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_58CDLABANDONEDBABY(__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_8c_ta_lib_58CDLABANDONEDBABY(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; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + 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; + PyArrayObject *__pyx_v_outinteger = 0; + int *__pyx_v_outinteger_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __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/_func.pxi":1845 + * np.ndarray outinteger + * int* outinteger_data + * 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/_func.pxi":1846 + * int* outinteger_data + * 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__208, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1846, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 1846, __pyx_L1_error) + + /* "talib/_func.pxi":1845 + * np.ndarray outinteger + * int* outinteger_data + * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("open is not double") + * if open.ndim != 1: + */ + } + + /* "talib/_func.pxi":1847 + * 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/_func.pxi":1848 + * 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__209, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1848, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 1848, __pyx_L1_error) + + /* "talib/_func.pxi":1847 + * 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/_func.pxi":1849 + * 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 = open.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":1850 + * raise Exception("open has wrong dimensions") + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1850, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 1850, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":1849 + * 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 = open.data + */ + } + + /* "talib/_func.pxi":1851 + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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/_func.pxi":1852 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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/_func.pxi":1853 + * open_data = 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__210, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1853, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 1853, __pyx_L1_error) + + /* "talib/_func.pxi":1852 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_func.pxi":1854 + * 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/_func.pxi":1855 + * raise 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__211, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1855, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 1855, __pyx_L1_error) + + /* "talib/_func.pxi":1854 + * 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/_func.pxi":1856 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":1857 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1857, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 1857, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":1856 + * 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 = high.data + */ + } + + /* "talib/_func.pxi":1858 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":1859 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":1860 + * high_data = 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__212, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1860, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 1860, __pyx_L1_error) + + /* "talib/_func.pxi":1859 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_func.pxi":1861 + * 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/_func.pxi":1862 + * raise 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__213, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1862, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 1862, __pyx_L1_error) + + /* "talib/_func.pxi":1861 + * 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/_func.pxi":1863 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":1864 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1864, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 1864, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":1863 + * 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 = low.data + */ + } + + /* "talib/_func.pxi":1865 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":1866 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":1867 + * low_data = 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__214, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1867, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 1867, __pyx_L1_error) + + /* "talib/_func.pxi":1866 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_func.pxi":1868 + * 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/_func.pxi":1869 + * raise 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__215, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1869, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 1869, __pyx_L1_error) + + /* "talib/_func.pxi":1868 + * 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/_func.pxi":1870 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":1871 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = open.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1871, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 1871, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":1870 + * 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 = close.data + */ + } + + /* "talib/_func.pxi":1872 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = open.shape[0] + * if length != high.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_func.pxi":1873 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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/_func.pxi":1874 + * close_data = 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/_func.pxi":1875 + * 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__216, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 1875, __pyx_L1_error) + + /* "talib/_func.pxi":1874 + * close_data = close.data + * length = open.shape[0] + * if length != high.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != low.shape[0]: + */ + } + + /* "talib/_func.pxi":1876 + * 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/_func.pxi":1877 + * 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__217, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1877, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 1877, __pyx_L1_error) + + /* "talib/_func.pxi":1876 + * 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/_func.pxi":1878 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":1879 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__218, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1879, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 1879, __pyx_L1_error) + + /* "talib/_func.pxi":1878 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + } + + /* "talib/_func.pxi":1880 + * if length != close.shape[0]: + * raise Exception("input lengths are different") + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = open_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":1881 + * raise Exception("input lengths are different") + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = open_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":1882 + * begidx = 0 + * for i from 0 <= i < length: + * val = open_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_open_data[__pyx_v_i]); + + /* "talib/_func.pxi":1883 + * for i from 0 <= i < length: + * val = open_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = high_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":1884 + * val = open_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = high_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":1883 + * for i from 0 <= i < length: + * val = open_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = high_data[i] + */ + } + + /* "talib/_func.pxi":1885 + * if val != val: + * continue + * val = high_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); + + /* "talib/_func.pxi":1886 + * continue + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":1887 + * val = high_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = low_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":1886 + * continue + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + } + + /* "talib/_func.pxi":1888 + * if val != val: + * continue + * val = low_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); + + /* "talib/_func.pxi":1889 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":1890 + * val = low_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = close_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":1889 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + } + + /* "talib/_func.pxi":1891 + * if val != val: + * continue + * val = close_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); + + /* "talib/_func.pxi":1892 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":1893 + * val = close_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":1892 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":1894 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":1895 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L19_break; + __pyx_L18_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":1897 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLABANDONEDBABY_Lookback( penetration ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__219, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 1897, __pyx_L1_error) + } + __pyx_L19_break:; + + /* "talib/_func.pxi":1898 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_CDLABANDONEDBABY_Lookback( penetration ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":1899 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLABANDONEDBABY_Lookback( penetration ) # <<<<<<<<<<<<<< + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_CDLABANDONEDBABY_Lookback(__pyx_v_penetration)); + + /* "talib/_func.pxi":1900 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLABANDONEDBABY_Lookback( penetration ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1900, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 1900, __pyx_L1_error) + __pyx_v_outinteger = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":1901 + * lookback = begidx + lib.TA_CDLABANDONEDBABY_Lookback( penetration ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 + */ + __pyx_v_outinteger_data = ((int *)__pyx_v_outinteger->data); + + /* "talib/_func.pxi":1902 + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLABANDONEDBABY( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , penetration , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":1903 + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 # <<<<<<<<<<<<<< + * retCode = lib.TA_CDLABANDONEDBABY( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , penetration , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLABANDONEDBABY", retCode) + */ + (__pyx_v_outinteger_data[__pyx_v_i]) = 0; + } + + /* "talib/_func.pxi":1904 + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLABANDONEDBABY( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , penetration , &outbegidx , &outnbelement , (outinteger_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_CDLABANDONEDBABY", retCode) + * return outinteger + */ + __pyx_v_retCode = TA_CDLABANDONEDBABY(0, __pyx_v_endidx, ((double *)(__pyx_v_open_data + __pyx_v_begidx)), ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), __pyx_v_penetration, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outinteger_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":1905 + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLABANDONEDBABY( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , penetration , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLABANDONEDBABY", retCode) # <<<<<<<<<<<<<< + * return outinteger + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CDLABANDONEDBABY, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1905, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":1906 + * retCode = lib.TA_CDLABANDONEDBABY( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , penetration , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLABANDONEDBABY", retCode) + * return outinteger # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outinteger)); + __pyx_r = ((PyObject *)__pyx_v_outinteger); + goto __pyx_L0; + + /* "talib/_func.pxi":1820 + * @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.c_ta_lib.CDLABANDONEDBABY", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outinteger); + __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/_func.pxi":1910 + * @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_8c_ta_lib_61CDLADVANCEBLOCK(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_60CDLADVANCEBLOCK[] = " 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_8c_ta_lib_61CDLADVANCEBLOCK = {"CDLADVANCEBLOCK", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_61CDLADVANCEBLOCK, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_60CDLADVANCEBLOCK}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_61CDLADVANCEBLOCK(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(2, 1910, __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(2, 1910, __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(2, 1910, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "CDLADVANCEBLOCK") < 0)) __PYX_ERR(2, 1910, __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(2, 1910, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 1910, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(2, 1910, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(2, 1910, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(2, 1910, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_60CDLADVANCEBLOCK(__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_8c_ta_lib_60CDLADVANCEBLOCK(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; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + 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; + PyArrayObject *__pyx_v_outinteger = 0; + int *__pyx_v_outinteger_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __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/_func.pxi":1933 + * np.ndarray outinteger + * int* outinteger_data + * 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/_func.pxi":1934 + * int* outinteger_data + * 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__220, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1934, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 1934, __pyx_L1_error) + + /* "talib/_func.pxi":1933 + * np.ndarray outinteger + * int* outinteger_data + * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("open is not double") + * if open.ndim != 1: + */ + } + + /* "talib/_func.pxi":1935 + * 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/_func.pxi":1936 + * 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__221, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1936, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 1936, __pyx_L1_error) + + /* "talib/_func.pxi":1935 + * 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/_func.pxi":1937 + * 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 = open.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":1938 + * raise Exception("open has wrong dimensions") + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1938, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 1938, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":1937 + * 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 = open.data + */ + } + + /* "talib/_func.pxi":1939 + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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/_func.pxi":1940 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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/_func.pxi":1941 + * open_data = 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__222, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1941, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 1941, __pyx_L1_error) + + /* "talib/_func.pxi":1940 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_func.pxi":1942 + * 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/_func.pxi":1943 + * raise 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__223, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1943, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 1943, __pyx_L1_error) + + /* "talib/_func.pxi":1942 + * 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/_func.pxi":1944 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":1945 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1945, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 1945, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":1944 + * 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 = high.data + */ + } + + /* "talib/_func.pxi":1946 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":1947 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":1948 + * high_data = 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__224, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1948, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 1948, __pyx_L1_error) + + /* "talib/_func.pxi":1947 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_func.pxi":1949 + * 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/_func.pxi":1950 + * raise 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__225, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1950, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 1950, __pyx_L1_error) + + /* "talib/_func.pxi":1949 + * 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/_func.pxi":1951 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":1952 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1952, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 1952, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":1951 + * 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 = low.data + */ + } + + /* "talib/_func.pxi":1953 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":1954 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":1955 + * low_data = 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__226, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1955, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 1955, __pyx_L1_error) + + /* "talib/_func.pxi":1954 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_func.pxi":1956 + * 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/_func.pxi":1957 + * raise 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__227, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1957, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 1957, __pyx_L1_error) + + /* "talib/_func.pxi":1956 + * 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/_func.pxi":1958 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":1959 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = open.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1959, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 1959, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":1958 + * 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 = close.data + */ + } + + /* "talib/_func.pxi":1960 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = open.shape[0] + * if length != high.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_func.pxi":1961 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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/_func.pxi":1962 + * close_data = 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/_func.pxi":1963 + * 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__228, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 1963, __pyx_L1_error) + + /* "talib/_func.pxi":1962 + * close_data = close.data + * length = open.shape[0] + * if length != high.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != low.shape[0]: + */ + } + + /* "talib/_func.pxi":1964 + * 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/_func.pxi":1965 + * 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__229, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1965, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 1965, __pyx_L1_error) + + /* "talib/_func.pxi":1964 + * 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/_func.pxi":1966 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":1967 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__230, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1967, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 1967, __pyx_L1_error) + + /* "talib/_func.pxi":1966 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + } + + /* "talib/_func.pxi":1968 + * if length != close.shape[0]: + * raise Exception("input lengths are different") + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = open_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":1969 + * raise Exception("input lengths are different") + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = open_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":1970 + * begidx = 0 + * for i from 0 <= i < length: + * val = open_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_open_data[__pyx_v_i]); + + /* "talib/_func.pxi":1971 + * for i from 0 <= i < length: + * val = open_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = high_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":1972 + * val = open_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = high_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":1971 + * for i from 0 <= i < length: + * val = open_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = high_data[i] + */ + } + + /* "talib/_func.pxi":1973 + * if val != val: + * continue + * val = high_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); + + /* "talib/_func.pxi":1974 + * continue + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":1975 + * val = high_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = low_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":1974 + * continue + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + } + + /* "talib/_func.pxi":1976 + * if val != val: + * continue + * val = low_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); + + /* "talib/_func.pxi":1977 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":1978 + * val = low_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = close_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":1977 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + } + + /* "talib/_func.pxi":1979 + * if val != val: + * continue + * val = close_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); + + /* "talib/_func.pxi":1980 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":1981 + * val = close_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":1980 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":1982 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":1983 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L19_break; + __pyx_L18_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":1985 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLADVANCEBLOCK_Lookback( ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__231, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1985, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 1985, __pyx_L1_error) + } + __pyx_L19_break:; + + /* "talib/_func.pxi":1986 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_CDLADVANCEBLOCK_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":1987 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLADVANCEBLOCK_Lookback( ) # <<<<<<<<<<<<<< + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_CDLADVANCEBLOCK_Lookback()); + + /* "talib/_func.pxi":1988 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLADVANCEBLOCK_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1988, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 1988, __pyx_L1_error) + __pyx_v_outinteger = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":1989 + * lookback = begidx + lib.TA_CDLADVANCEBLOCK_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 + */ + __pyx_v_outinteger_data = ((int *)__pyx_v_outinteger->data); + + /* "talib/_func.pxi":1990 + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLADVANCEBLOCK( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":1991 + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 # <<<<<<<<<<<<<< + * retCode = lib.TA_CDLADVANCEBLOCK( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLADVANCEBLOCK", retCode) + */ + (__pyx_v_outinteger_data[__pyx_v_i]) = 0; + } + + /* "talib/_func.pxi":1992 + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLADVANCEBLOCK( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_CDLADVANCEBLOCK", retCode) + * return outinteger + */ + __pyx_v_retCode = TA_CDLADVANCEBLOCK(0, __pyx_v_endidx, ((double *)(__pyx_v_open_data + __pyx_v_begidx)), ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outinteger_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":1993 + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLADVANCEBLOCK( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLADVANCEBLOCK", retCode) # <<<<<<<<<<<<<< + * return outinteger + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CDLADVANCEBLOCK, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1993, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":1994 + * retCode = lib.TA_CDLADVANCEBLOCK( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLADVANCEBLOCK", retCode) + * return outinteger # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outinteger)); + __pyx_r = ((PyObject *)__pyx_v_outinteger); + goto __pyx_L0; + + /* "talib/_func.pxi":1910 + * @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.c_ta_lib.CDLADVANCEBLOCK", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outinteger); + __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/_func.pxi":1998 + * @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_8c_ta_lib_63CDLBELTHOLD(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_62CDLBELTHOLD[] = " 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_8c_ta_lib_63CDLBELTHOLD = {"CDLBELTHOLD", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_63CDLBELTHOLD, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_62CDLBELTHOLD}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_63CDLBELTHOLD(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(2, 1998, __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(2, 1998, __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(2, 1998, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "CDLBELTHOLD") < 0)) __PYX_ERR(2, 1998, __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(2, 1998, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 1998, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(2, 1998, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(2, 1998, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(2, 1998, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_62CDLBELTHOLD(__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_8c_ta_lib_62CDLBELTHOLD(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; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + 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; + PyArrayObject *__pyx_v_outinteger = 0; + int *__pyx_v_outinteger_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __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/_func.pxi":2021 + * np.ndarray outinteger + * int* outinteger_data + * 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/_func.pxi":2022 + * int* outinteger_data + * 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__232, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2022, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 2022, __pyx_L1_error) + + /* "talib/_func.pxi":2021 + * np.ndarray outinteger + * int* outinteger_data + * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("open is not double") + * if open.ndim != 1: + */ + } + + /* "talib/_func.pxi":2023 + * 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/_func.pxi":2024 + * 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__233, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2024, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 2024, __pyx_L1_error) + + /* "talib/_func.pxi":2023 + * 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/_func.pxi":2025 + * 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 = open.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":2026 + * raise Exception("open has wrong dimensions") + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2026, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 2026, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":2025 + * 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 = open.data + */ + } + + /* "talib/_func.pxi":2027 + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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/_func.pxi":2028 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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/_func.pxi":2029 + * open_data = 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__234, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2029, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 2029, __pyx_L1_error) + + /* "talib/_func.pxi":2028 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_func.pxi":2030 + * 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/_func.pxi":2031 + * raise 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__235, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2031, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 2031, __pyx_L1_error) + + /* "talib/_func.pxi":2030 + * 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/_func.pxi":2032 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":2033 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2033, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 2033, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":2032 + * 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 = high.data + */ + } + + /* "talib/_func.pxi":2034 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":2035 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":2036 + * high_data = 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__236, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2036, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 2036, __pyx_L1_error) + + /* "talib/_func.pxi":2035 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_func.pxi":2037 + * 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/_func.pxi":2038 + * raise 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__237, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2038, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 2038, __pyx_L1_error) + + /* "talib/_func.pxi":2037 + * 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/_func.pxi":2039 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":2040 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2040, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 2040, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":2039 + * 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 = low.data + */ + } + + /* "talib/_func.pxi":2041 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":2042 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":2043 + * low_data = 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__238, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2043, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 2043, __pyx_L1_error) + + /* "talib/_func.pxi":2042 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_func.pxi":2044 + * 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/_func.pxi":2045 + * raise 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__239, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2045, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 2045, __pyx_L1_error) + + /* "talib/_func.pxi":2044 + * 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/_func.pxi":2046 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":2047 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = open.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2047, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 2047, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":2046 + * 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 = close.data + */ + } + + /* "talib/_func.pxi":2048 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = open.shape[0] + * if length != high.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_func.pxi":2049 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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/_func.pxi":2050 + * close_data = 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/_func.pxi":2051 + * 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__240, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2051, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 2051, __pyx_L1_error) + + /* "talib/_func.pxi":2050 + * close_data = close.data + * length = open.shape[0] + * if length != high.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != low.shape[0]: + */ + } + + /* "talib/_func.pxi":2052 + * 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/_func.pxi":2053 + * 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__241, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2053, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 2053, __pyx_L1_error) + + /* "talib/_func.pxi":2052 + * 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/_func.pxi":2054 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":2055 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__242, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2055, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 2055, __pyx_L1_error) + + /* "talib/_func.pxi":2054 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + } + + /* "talib/_func.pxi":2056 + * if length != close.shape[0]: + * raise Exception("input lengths are different") + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = open_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":2057 + * raise Exception("input lengths are different") + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = open_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":2058 + * begidx = 0 + * for i from 0 <= i < length: + * val = open_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_open_data[__pyx_v_i]); + + /* "talib/_func.pxi":2059 + * for i from 0 <= i < length: + * val = open_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = high_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":2060 + * val = open_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = high_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":2059 + * for i from 0 <= i < length: + * val = open_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = high_data[i] + */ + } + + /* "talib/_func.pxi":2061 + * if val != val: + * continue + * val = high_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); + + /* "talib/_func.pxi":2062 + * continue + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":2063 + * val = high_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = low_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":2062 + * continue + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + } + + /* "talib/_func.pxi":2064 + * if val != val: + * continue + * val = low_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); + + /* "talib/_func.pxi":2065 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":2066 + * val = low_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = close_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":2065 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + } + + /* "talib/_func.pxi":2067 + * if val != val: + * continue + * val = close_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); + + /* "talib/_func.pxi":2068 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":2069 + * val = close_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":2068 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":2070 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":2071 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L19_break; + __pyx_L18_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":2073 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLBELTHOLD_Lookback( ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__243, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2073, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 2073, __pyx_L1_error) + } + __pyx_L19_break:; + + /* "talib/_func.pxi":2074 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_CDLBELTHOLD_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":2075 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLBELTHOLD_Lookback( ) # <<<<<<<<<<<<<< + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_CDLBELTHOLD_Lookback()); + + /* "talib/_func.pxi":2076 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLBELTHOLD_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 2076, __pyx_L1_error) + __pyx_v_outinteger = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":2077 + * lookback = begidx + lib.TA_CDLBELTHOLD_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 + */ + __pyx_v_outinteger_data = ((int *)__pyx_v_outinteger->data); + + /* "talib/_func.pxi":2078 + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLBELTHOLD( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":2079 + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 # <<<<<<<<<<<<<< + * retCode = lib.TA_CDLBELTHOLD( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLBELTHOLD", retCode) + */ + (__pyx_v_outinteger_data[__pyx_v_i]) = 0; + } + + /* "talib/_func.pxi":2080 + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLBELTHOLD( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_CDLBELTHOLD", retCode) + * return outinteger + */ + __pyx_v_retCode = TA_CDLBELTHOLD(0, __pyx_v_endidx, ((double *)(__pyx_v_open_data + __pyx_v_begidx)), ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outinteger_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":2081 + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLBELTHOLD( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLBELTHOLD", retCode) # <<<<<<<<<<<<<< + * return outinteger + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CDLBELTHOLD, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2081, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":2082 + * retCode = lib.TA_CDLBELTHOLD( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLBELTHOLD", retCode) + * return outinteger # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outinteger)); + __pyx_r = ((PyObject *)__pyx_v_outinteger); + goto __pyx_L0; + + /* "talib/_func.pxi":1998 + * @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.c_ta_lib.CDLBELTHOLD", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outinteger); + __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/_func.pxi":2086 + * @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_8c_ta_lib_65CDLBREAKAWAY(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_64CDLBREAKAWAY[] = " 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_8c_ta_lib_65CDLBREAKAWAY = {"CDLBREAKAWAY", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_65CDLBREAKAWAY, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_64CDLBREAKAWAY}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_65CDLBREAKAWAY(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(2, 2086, __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(2, 2086, __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(2, 2086, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "CDLBREAKAWAY") < 0)) __PYX_ERR(2, 2086, __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(2, 2086, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 2086, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(2, 2086, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(2, 2086, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(2, 2086, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_64CDLBREAKAWAY(__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_8c_ta_lib_64CDLBREAKAWAY(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; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + 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; + PyArrayObject *__pyx_v_outinteger = 0; + int *__pyx_v_outinteger_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __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/_func.pxi":2109 + * np.ndarray outinteger + * int* outinteger_data + * 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/_func.pxi":2110 + * int* outinteger_data + * 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__244, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2110, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 2110, __pyx_L1_error) + + /* "talib/_func.pxi":2109 + * np.ndarray outinteger + * int* outinteger_data + * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("open is not double") + * if open.ndim != 1: + */ + } + + /* "talib/_func.pxi":2111 + * 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/_func.pxi":2112 + * 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__245, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2112, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 2112, __pyx_L1_error) + + /* "talib/_func.pxi":2111 + * 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/_func.pxi":2113 + * 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 = open.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":2114 + * raise Exception("open has wrong dimensions") + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2114, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 2114, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":2113 + * 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 = open.data + */ + } + + /* "talib/_func.pxi":2115 + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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/_func.pxi":2116 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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/_func.pxi":2117 + * open_data = 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__246, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2117, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 2117, __pyx_L1_error) + + /* "talib/_func.pxi":2116 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_func.pxi":2118 + * 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/_func.pxi":2119 + * raise 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__247, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2119, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 2119, __pyx_L1_error) + + /* "talib/_func.pxi":2118 + * 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/_func.pxi":2120 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":2121 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2121, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 2121, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":2120 + * 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 = high.data + */ + } + + /* "talib/_func.pxi":2122 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":2123 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":2124 + * high_data = 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__248, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 2124, __pyx_L1_error) + + /* "talib/_func.pxi":2123 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_func.pxi":2125 + * 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/_func.pxi":2126 + * raise 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__249, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 2126, __pyx_L1_error) + + /* "talib/_func.pxi":2125 + * 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/_func.pxi":2127 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":2128 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 2128, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":2127 + * 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 = low.data + */ + } + + /* "talib/_func.pxi":2129 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":2130 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":2131 + * low_data = 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__250, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 2131, __pyx_L1_error) + + /* "talib/_func.pxi":2130 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_func.pxi":2132 + * 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/_func.pxi":2133 + * raise 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__251, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 2133, __pyx_L1_error) + + /* "talib/_func.pxi":2132 + * 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/_func.pxi":2134 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":2135 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = open.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 2135, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":2134 + * 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 = close.data + */ + } + + /* "talib/_func.pxi":2136 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = open.shape[0] + * if length != high.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_func.pxi":2137 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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/_func.pxi":2138 + * close_data = 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/_func.pxi":2139 + * 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__252, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2139, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 2139, __pyx_L1_error) + + /* "talib/_func.pxi":2138 + * close_data = close.data + * length = open.shape[0] + * if length != high.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != low.shape[0]: + */ + } + + /* "talib/_func.pxi":2140 + * 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/_func.pxi":2141 + * 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__253, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2141, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 2141, __pyx_L1_error) + + /* "talib/_func.pxi":2140 + * 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/_func.pxi":2142 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":2143 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__254, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2143, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 2143, __pyx_L1_error) + + /* "talib/_func.pxi":2142 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + } + + /* "talib/_func.pxi":2144 + * if length != close.shape[0]: + * raise Exception("input lengths are different") + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = open_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":2145 + * raise Exception("input lengths are different") + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = open_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":2146 + * begidx = 0 + * for i from 0 <= i < length: + * val = open_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_open_data[__pyx_v_i]); + + /* "talib/_func.pxi":2147 + * for i from 0 <= i < length: + * val = open_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = high_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":2148 + * val = open_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = high_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":2147 + * for i from 0 <= i < length: + * val = open_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = high_data[i] + */ + } + + /* "talib/_func.pxi":2149 + * if val != val: + * continue + * val = high_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); + + /* "talib/_func.pxi":2150 + * continue + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":2151 + * val = high_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = low_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":2150 + * continue + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + } + + /* "talib/_func.pxi":2152 + * if val != val: + * continue + * val = low_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); + + /* "talib/_func.pxi":2153 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":2154 + * val = low_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = close_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":2153 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + } + + /* "talib/_func.pxi":2155 + * if val != val: + * continue + * val = close_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); + + /* "talib/_func.pxi":2156 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":2157 + * val = close_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":2156 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":2158 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":2159 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L19_break; + __pyx_L18_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":2161 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLBREAKAWAY_Lookback( ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__255, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2161, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 2161, __pyx_L1_error) + } + __pyx_L19_break:; + + /* "talib/_func.pxi":2162 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_CDLBREAKAWAY_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":2163 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLBREAKAWAY_Lookback( ) # <<<<<<<<<<<<<< + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_CDLBREAKAWAY_Lookback()); + + /* "talib/_func.pxi":2164 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLBREAKAWAY_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2164, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 2164, __pyx_L1_error) + __pyx_v_outinteger = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":2165 + * lookback = begidx + lib.TA_CDLBREAKAWAY_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 + */ + __pyx_v_outinteger_data = ((int *)__pyx_v_outinteger->data); + + /* "talib/_func.pxi":2166 + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLBREAKAWAY( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":2167 + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 # <<<<<<<<<<<<<< + * retCode = lib.TA_CDLBREAKAWAY( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLBREAKAWAY", retCode) + */ + (__pyx_v_outinteger_data[__pyx_v_i]) = 0; + } + + /* "talib/_func.pxi":2168 + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLBREAKAWAY( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_CDLBREAKAWAY", retCode) + * return outinteger + */ + __pyx_v_retCode = TA_CDLBREAKAWAY(0, __pyx_v_endidx, ((double *)(__pyx_v_open_data + __pyx_v_begidx)), ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outinteger_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":2169 + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLBREAKAWAY( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLBREAKAWAY", retCode) # <<<<<<<<<<<<<< + * return outinteger + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CDLBREAKAWAY, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2169, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":2170 + * retCode = lib.TA_CDLBREAKAWAY( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLBREAKAWAY", retCode) + * return outinteger # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outinteger)); + __pyx_r = ((PyObject *)__pyx_v_outinteger); + goto __pyx_L0; + + /* "talib/_func.pxi":2086 + * @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.c_ta_lib.CDLBREAKAWAY", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outinteger); + __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/_func.pxi":2174 + * @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_8c_ta_lib_67CDLCLOSINGMARUBOZU(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_66CDLCLOSINGMARUBOZU[] = " 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_8c_ta_lib_67CDLCLOSINGMARUBOZU = {"CDLCLOSINGMARUBOZU", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_67CDLCLOSINGMARUBOZU, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_66CDLCLOSINGMARUBOZU}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_67CDLCLOSINGMARUBOZU(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(2, 2174, __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(2, 2174, __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(2, 2174, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "CDLCLOSINGMARUBOZU") < 0)) __PYX_ERR(2, 2174, __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(2, 2174, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 2174, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(2, 2174, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(2, 2174, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(2, 2174, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_66CDLCLOSINGMARUBOZU(__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_8c_ta_lib_66CDLCLOSINGMARUBOZU(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; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + 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; + PyArrayObject *__pyx_v_outinteger = 0; + int *__pyx_v_outinteger_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __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/_func.pxi":2197 + * np.ndarray outinteger + * int* outinteger_data + * 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/_func.pxi":2198 + * int* outinteger_data + * 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__256, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2198, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 2198, __pyx_L1_error) + + /* "talib/_func.pxi":2197 + * np.ndarray outinteger + * int* outinteger_data + * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("open is not double") + * if open.ndim != 1: + */ + } + + /* "talib/_func.pxi":2199 + * 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/_func.pxi":2200 + * 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__257, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2200, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 2200, __pyx_L1_error) + + /* "talib/_func.pxi":2199 + * 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/_func.pxi":2201 + * 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 = open.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":2202 + * raise Exception("open has wrong dimensions") + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2202, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 2202, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":2201 + * 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 = open.data + */ + } + + /* "talib/_func.pxi":2203 + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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/_func.pxi":2204 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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/_func.pxi":2205 + * open_data = 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__258, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2205, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 2205, __pyx_L1_error) + + /* "talib/_func.pxi":2204 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_func.pxi":2206 + * 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/_func.pxi":2207 + * raise 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__259, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2207, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 2207, __pyx_L1_error) + + /* "talib/_func.pxi":2206 + * 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/_func.pxi":2208 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":2209 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2209, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 2209, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":2208 + * 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 = high.data + */ + } + + /* "talib/_func.pxi":2210 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":2211 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":2212 + * high_data = 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__260, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2212, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 2212, __pyx_L1_error) + + /* "talib/_func.pxi":2211 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_func.pxi":2213 + * 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/_func.pxi":2214 + * raise 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__261, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2214, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 2214, __pyx_L1_error) + + /* "talib/_func.pxi":2213 + * 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/_func.pxi":2215 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":2216 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2216, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 2216, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":2215 + * 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 = low.data + */ + } + + /* "talib/_func.pxi":2217 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":2218 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":2219 + * low_data = 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__262, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 2219, __pyx_L1_error) + + /* "talib/_func.pxi":2218 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_func.pxi":2220 + * 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/_func.pxi":2221 + * raise 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__263, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 2221, __pyx_L1_error) + + /* "talib/_func.pxi":2220 + * 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/_func.pxi":2222 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":2223 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = open.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2223, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 2223, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":2222 + * 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 = close.data + */ + } + + /* "talib/_func.pxi":2224 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = open.shape[0] + * if length != high.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_func.pxi":2225 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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/_func.pxi":2226 + * close_data = 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/_func.pxi":2227 + * 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__264, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2227, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 2227, __pyx_L1_error) + + /* "talib/_func.pxi":2226 + * close_data = close.data + * length = open.shape[0] + * if length != high.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != low.shape[0]: + */ + } + + /* "talib/_func.pxi":2228 + * 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/_func.pxi":2229 + * 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__265, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2229, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 2229, __pyx_L1_error) + + /* "talib/_func.pxi":2228 + * 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/_func.pxi":2230 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":2231 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__266, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2231, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 2231, __pyx_L1_error) + + /* "talib/_func.pxi":2230 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + } + + /* "talib/_func.pxi":2232 + * if length != close.shape[0]: + * raise Exception("input lengths are different") + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = open_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":2233 + * raise Exception("input lengths are different") + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = open_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":2234 + * begidx = 0 + * for i from 0 <= i < length: + * val = open_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_open_data[__pyx_v_i]); + + /* "talib/_func.pxi":2235 + * for i from 0 <= i < length: + * val = open_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = high_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":2236 + * val = open_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = high_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":2235 + * for i from 0 <= i < length: + * val = open_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = high_data[i] + */ + } + + /* "talib/_func.pxi":2237 + * if val != val: + * continue + * val = high_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); + + /* "talib/_func.pxi":2238 + * continue + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":2239 + * val = high_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = low_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":2238 + * continue + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + } + + /* "talib/_func.pxi":2240 + * if val != val: + * continue + * val = low_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); + + /* "talib/_func.pxi":2241 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":2242 + * val = low_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = close_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":2241 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + } + + /* "talib/_func.pxi":2243 + * if val != val: + * continue + * val = close_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); + + /* "talib/_func.pxi":2244 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":2245 + * val = close_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":2244 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":2246 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":2247 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L19_break; + __pyx_L18_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":2249 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLCLOSINGMARUBOZU_Lookback( ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__267, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2249, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 2249, __pyx_L1_error) + } + __pyx_L19_break:; + + /* "talib/_func.pxi":2250 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_CDLCLOSINGMARUBOZU_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":2251 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLCLOSINGMARUBOZU_Lookback( ) # <<<<<<<<<<<<<< + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_CDLCLOSINGMARUBOZU_Lookback()); + + /* "talib/_func.pxi":2252 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLCLOSINGMARUBOZU_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2252, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 2252, __pyx_L1_error) + __pyx_v_outinteger = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":2253 + * lookback = begidx + lib.TA_CDLCLOSINGMARUBOZU_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 + */ + __pyx_v_outinteger_data = ((int *)__pyx_v_outinteger->data); + + /* "talib/_func.pxi":2254 + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLCLOSINGMARUBOZU( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":2255 + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 # <<<<<<<<<<<<<< + * retCode = lib.TA_CDLCLOSINGMARUBOZU( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLCLOSINGMARUBOZU", retCode) + */ + (__pyx_v_outinteger_data[__pyx_v_i]) = 0; + } + + /* "talib/_func.pxi":2256 + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLCLOSINGMARUBOZU( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_CDLCLOSINGMARUBOZU", retCode) + * return outinteger + */ + __pyx_v_retCode = TA_CDLCLOSINGMARUBOZU(0, __pyx_v_endidx, ((double *)(__pyx_v_open_data + __pyx_v_begidx)), ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outinteger_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":2257 + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLCLOSINGMARUBOZU( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLCLOSINGMARUBOZU", retCode) # <<<<<<<<<<<<<< + * return outinteger + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CDLCLOSINGMARUBOZU, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2257, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":2258 + * retCode = lib.TA_CDLCLOSINGMARUBOZU( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLCLOSINGMARUBOZU", retCode) + * return outinteger # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outinteger)); + __pyx_r = ((PyObject *)__pyx_v_outinteger); + goto __pyx_L0; + + /* "talib/_func.pxi":2174 + * @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.c_ta_lib.CDLCLOSINGMARUBOZU", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outinteger); + __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/_func.pxi":2262 + * @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_8c_ta_lib_69CDLCONCEALBABYSWALL(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_68CDLCONCEALBABYSWALL[] = " 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_8c_ta_lib_69CDLCONCEALBABYSWALL = {"CDLCONCEALBABYSWALL", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_69CDLCONCEALBABYSWALL, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_68CDLCONCEALBABYSWALL}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_69CDLCONCEALBABYSWALL(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(2, 2262, __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(2, 2262, __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(2, 2262, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "CDLCONCEALBABYSWALL") < 0)) __PYX_ERR(2, 2262, __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(2, 2262, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 2262, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(2, 2262, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(2, 2262, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(2, 2262, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_68CDLCONCEALBABYSWALL(__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_8c_ta_lib_68CDLCONCEALBABYSWALL(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; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + 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; + PyArrayObject *__pyx_v_outinteger = 0; + int *__pyx_v_outinteger_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __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/_func.pxi":2285 + * np.ndarray outinteger + * int* outinteger_data + * 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/_func.pxi":2286 + * int* outinteger_data + * 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__268, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2286, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 2286, __pyx_L1_error) + + /* "talib/_func.pxi":2285 + * np.ndarray outinteger + * int* outinteger_data + * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("open is not double") + * if open.ndim != 1: + */ + } + + /* "talib/_func.pxi":2287 + * 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/_func.pxi":2288 + * 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__269, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2288, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 2288, __pyx_L1_error) + + /* "talib/_func.pxi":2287 + * 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/_func.pxi":2289 + * 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 = open.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":2290 + * raise Exception("open has wrong dimensions") + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2290, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 2290, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":2289 + * 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 = open.data + */ + } + + /* "talib/_func.pxi":2291 + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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/_func.pxi":2292 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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/_func.pxi":2293 + * open_data = 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__270, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2293, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 2293, __pyx_L1_error) + + /* "talib/_func.pxi":2292 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_func.pxi":2294 + * 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/_func.pxi":2295 + * raise 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__271, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2295, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 2295, __pyx_L1_error) + + /* "talib/_func.pxi":2294 + * 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/_func.pxi":2296 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":2297 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2297, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 2297, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":2296 + * 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 = high.data + */ + } + + /* "talib/_func.pxi":2298 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":2299 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":2300 + * high_data = 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__272, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2300, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 2300, __pyx_L1_error) + + /* "talib/_func.pxi":2299 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_func.pxi":2301 + * 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/_func.pxi":2302 + * raise 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__273, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2302, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 2302, __pyx_L1_error) + + /* "talib/_func.pxi":2301 + * 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/_func.pxi":2303 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":2304 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2304, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 2304, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":2303 + * 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 = low.data + */ + } + + /* "talib/_func.pxi":2305 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":2306 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":2307 + * low_data = 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__274, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2307, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 2307, __pyx_L1_error) + + /* "talib/_func.pxi":2306 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_func.pxi":2308 + * 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/_func.pxi":2309 + * raise 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__275, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2309, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 2309, __pyx_L1_error) + + /* "talib/_func.pxi":2308 + * 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/_func.pxi":2310 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":2311 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = open.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2311, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 2311, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":2310 + * 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 = close.data + */ + } + + /* "talib/_func.pxi":2312 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = open.shape[0] + * if length != high.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_func.pxi":2313 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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/_func.pxi":2314 + * close_data = 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/_func.pxi":2315 + * 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__276, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2315, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 2315, __pyx_L1_error) + + /* "talib/_func.pxi":2314 + * close_data = close.data + * length = open.shape[0] + * if length != high.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != low.shape[0]: + */ + } + + /* "talib/_func.pxi":2316 + * 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/_func.pxi":2317 + * 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__277, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2317, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 2317, __pyx_L1_error) + + /* "talib/_func.pxi":2316 + * 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/_func.pxi":2318 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":2319 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__278, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2319, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 2319, __pyx_L1_error) + + /* "talib/_func.pxi":2318 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + } + + /* "talib/_func.pxi":2320 + * if length != close.shape[0]: + * raise Exception("input lengths are different") + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = open_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":2321 + * raise Exception("input lengths are different") + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = open_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":2322 + * begidx = 0 + * for i from 0 <= i < length: + * val = open_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_open_data[__pyx_v_i]); + + /* "talib/_func.pxi":2323 + * for i from 0 <= i < length: + * val = open_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = high_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":2324 + * val = open_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = high_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":2323 + * for i from 0 <= i < length: + * val = open_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = high_data[i] + */ + } + + /* "talib/_func.pxi":2325 + * if val != val: + * continue + * val = high_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); + + /* "talib/_func.pxi":2326 + * continue + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":2327 + * val = high_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = low_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":2326 + * continue + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + } + + /* "talib/_func.pxi":2328 + * if val != val: + * continue + * val = low_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); + + /* "talib/_func.pxi":2329 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":2330 + * val = low_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = close_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":2329 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + } + + /* "talib/_func.pxi":2331 + * if val != val: + * continue + * val = close_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); + + /* "talib/_func.pxi":2332 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":2333 + * val = close_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":2332 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":2334 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":2335 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L19_break; + __pyx_L18_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":2337 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLCONCEALBABYSWALL_Lookback( ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__279, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2337, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 2337, __pyx_L1_error) + } + __pyx_L19_break:; + + /* "talib/_func.pxi":2338 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_CDLCONCEALBABYSWALL_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":2339 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLCONCEALBABYSWALL_Lookback( ) # <<<<<<<<<<<<<< + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_CDLCONCEALBABYSWALL_Lookback()); + + /* "talib/_func.pxi":2340 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLCONCEALBABYSWALL_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2340, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 2340, __pyx_L1_error) + __pyx_v_outinteger = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":2341 + * lookback = begidx + lib.TA_CDLCONCEALBABYSWALL_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 + */ + __pyx_v_outinteger_data = ((int *)__pyx_v_outinteger->data); + + /* "talib/_func.pxi":2342 + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLCONCEALBABYSWALL( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":2343 + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 # <<<<<<<<<<<<<< + * retCode = lib.TA_CDLCONCEALBABYSWALL( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLCONCEALBABYSWALL", retCode) + */ + (__pyx_v_outinteger_data[__pyx_v_i]) = 0; + } + + /* "talib/_func.pxi":2344 + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLCONCEALBABYSWALL( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_CDLCONCEALBABYSWALL", retCode) + * return outinteger + */ + __pyx_v_retCode = TA_CDLCONCEALBABYSWALL(0, __pyx_v_endidx, ((double *)(__pyx_v_open_data + __pyx_v_begidx)), ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outinteger_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":2345 + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLCONCEALBABYSWALL( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLCONCEALBABYSWALL", retCode) # <<<<<<<<<<<<<< + * return outinteger + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CDLCONCEALBABYSWALL, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2345, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":2346 + * retCode = lib.TA_CDLCONCEALBABYSWALL( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLCONCEALBABYSWALL", retCode) + * return outinteger # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outinteger)); + __pyx_r = ((PyObject *)__pyx_v_outinteger); + goto __pyx_L0; + + /* "talib/_func.pxi":2262 + * @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.c_ta_lib.CDLCONCEALBABYSWALL", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outinteger); + __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/_func.pxi":2350 + * @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_8c_ta_lib_71CDLCOUNTERATTACK(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_70CDLCOUNTERATTACK[] = " 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_8c_ta_lib_71CDLCOUNTERATTACK = {"CDLCOUNTERATTACK", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_71CDLCOUNTERATTACK, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_70CDLCOUNTERATTACK}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_71CDLCOUNTERATTACK(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(2, 2350, __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(2, 2350, __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(2, 2350, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "CDLCOUNTERATTACK") < 0)) __PYX_ERR(2, 2350, __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(2, 2350, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 2350, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(2, 2350, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(2, 2350, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(2, 2350, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_70CDLCOUNTERATTACK(__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_8c_ta_lib_70CDLCOUNTERATTACK(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; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + 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; + PyArrayObject *__pyx_v_outinteger = 0; + int *__pyx_v_outinteger_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __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/_func.pxi":2373 + * np.ndarray outinteger + * int* outinteger_data + * 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/_func.pxi":2374 + * int* outinteger_data + * 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__280, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2374, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 2374, __pyx_L1_error) + + /* "talib/_func.pxi":2373 + * np.ndarray outinteger + * int* outinteger_data + * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("open is not double") + * if open.ndim != 1: + */ + } + + /* "talib/_func.pxi":2375 + * 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/_func.pxi":2376 + * 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__281, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2376, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 2376, __pyx_L1_error) + + /* "talib/_func.pxi":2375 + * 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/_func.pxi":2377 + * 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 = open.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":2378 + * raise Exception("open has wrong dimensions") + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2378, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 2378, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":2377 + * 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 = open.data + */ + } + + /* "talib/_func.pxi":2379 + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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/_func.pxi":2380 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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/_func.pxi":2381 + * open_data = 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__282, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2381, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 2381, __pyx_L1_error) + + /* "talib/_func.pxi":2380 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_func.pxi":2382 + * 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/_func.pxi":2383 + * raise 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__283, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2383, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 2383, __pyx_L1_error) + + /* "talib/_func.pxi":2382 + * 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/_func.pxi":2384 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":2385 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2385, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 2385, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":2384 + * 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 = high.data + */ + } + + /* "talib/_func.pxi":2386 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":2387 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":2388 + * high_data = 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__284, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2388, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 2388, __pyx_L1_error) + + /* "talib/_func.pxi":2387 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_func.pxi":2389 + * 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/_func.pxi":2390 + * raise 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__285, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2390, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 2390, __pyx_L1_error) + + /* "talib/_func.pxi":2389 + * 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/_func.pxi":2391 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":2392 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2392, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 2392, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":2391 + * 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 = low.data + */ + } + + /* "talib/_func.pxi":2393 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":2394 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":2395 + * low_data = 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__286, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2395, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 2395, __pyx_L1_error) + + /* "talib/_func.pxi":2394 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_func.pxi":2396 + * 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/_func.pxi":2397 + * raise 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__287, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2397, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 2397, __pyx_L1_error) + + /* "talib/_func.pxi":2396 + * 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/_func.pxi":2398 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":2399 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = open.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2399, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 2399, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":2398 + * 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 = close.data + */ + } + + /* "talib/_func.pxi":2400 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = open.shape[0] + * if length != high.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_func.pxi":2401 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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/_func.pxi":2402 + * close_data = 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/_func.pxi":2403 + * 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__288, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 2403, __pyx_L1_error) + + /* "talib/_func.pxi":2402 + * close_data = close.data + * length = open.shape[0] + * if length != high.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != low.shape[0]: + */ + } + + /* "talib/_func.pxi":2404 + * 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/_func.pxi":2405 + * 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__289, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 2405, __pyx_L1_error) + + /* "talib/_func.pxi":2404 + * 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/_func.pxi":2406 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":2407 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__290, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2407, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 2407, __pyx_L1_error) + + /* "talib/_func.pxi":2406 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + } + + /* "talib/_func.pxi":2408 + * if length != close.shape[0]: + * raise Exception("input lengths are different") + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = open_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":2409 + * raise Exception("input lengths are different") + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = open_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":2410 + * begidx = 0 + * for i from 0 <= i < length: + * val = open_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_open_data[__pyx_v_i]); + + /* "talib/_func.pxi":2411 + * for i from 0 <= i < length: + * val = open_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = high_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":2412 + * val = open_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = high_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":2411 + * for i from 0 <= i < length: + * val = open_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = high_data[i] + */ + } + + /* "talib/_func.pxi":2413 + * if val != val: + * continue + * val = high_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); + + /* "talib/_func.pxi":2414 + * continue + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":2415 + * val = high_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = low_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":2414 + * continue + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + } + + /* "talib/_func.pxi":2416 + * if val != val: + * continue + * val = low_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); + + /* "talib/_func.pxi":2417 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":2418 + * val = low_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = close_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":2417 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + } + + /* "talib/_func.pxi":2419 + * if val != val: + * continue + * val = close_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); + + /* "talib/_func.pxi":2420 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":2421 + * val = close_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":2420 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":2422 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":2423 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L19_break; + __pyx_L18_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":2425 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLCOUNTERATTACK_Lookback( ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__291, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2425, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 2425, __pyx_L1_error) + } + __pyx_L19_break:; + + /* "talib/_func.pxi":2426 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_CDLCOUNTERATTACK_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":2427 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLCOUNTERATTACK_Lookback( ) # <<<<<<<<<<<<<< + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_CDLCOUNTERATTACK_Lookback()); + + /* "talib/_func.pxi":2428 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLCOUNTERATTACK_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2428, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 2428, __pyx_L1_error) + __pyx_v_outinteger = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":2429 + * lookback = begidx + lib.TA_CDLCOUNTERATTACK_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 + */ + __pyx_v_outinteger_data = ((int *)__pyx_v_outinteger->data); + + /* "talib/_func.pxi":2430 + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLCOUNTERATTACK( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":2431 + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 # <<<<<<<<<<<<<< + * retCode = lib.TA_CDLCOUNTERATTACK( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLCOUNTERATTACK", retCode) + */ + (__pyx_v_outinteger_data[__pyx_v_i]) = 0; + } + + /* "talib/_func.pxi":2432 + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLCOUNTERATTACK( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_CDLCOUNTERATTACK", retCode) + * return outinteger + */ + __pyx_v_retCode = TA_CDLCOUNTERATTACK(0, __pyx_v_endidx, ((double *)(__pyx_v_open_data + __pyx_v_begidx)), ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outinteger_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":2433 + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLCOUNTERATTACK( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLCOUNTERATTACK", retCode) # <<<<<<<<<<<<<< + * return outinteger + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CDLCOUNTERATTACK, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2433, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":2434 + * retCode = lib.TA_CDLCOUNTERATTACK( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLCOUNTERATTACK", retCode) + * return outinteger # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outinteger)); + __pyx_r = ((PyObject *)__pyx_v_outinteger); + goto __pyx_L0; + + /* "talib/_func.pxi":2350 + * @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.c_ta_lib.CDLCOUNTERATTACK", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outinteger); + __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/_func.pxi":2438 + * @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_8c_ta_lib_73CDLDARKCLOUDCOVER(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_72CDLDARKCLOUDCOVER[] = " 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_8c_ta_lib_73CDLDARKCLOUDCOVER = {"CDLDARKCLOUDCOVER", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_73CDLDARKCLOUDCOVER, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_72CDLDARKCLOUDCOVER}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_73CDLDARKCLOUDCOVER(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(2, 2438, __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(2, 2438, __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(2, 2438, __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(2, 2438, __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(2, 2438, __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(2, 2438, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 2438, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(2, 2438, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(2, 2438, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(2, 2438, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_72CDLDARKCLOUDCOVER(__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_8c_ta_lib_72CDLDARKCLOUDCOVER(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; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + 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; + PyArrayObject *__pyx_v_outinteger = 0; + int *__pyx_v_outinteger_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __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/_func.pxi":2463 + * np.ndarray outinteger + * int* outinteger_data + * 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/_func.pxi":2464 + * int* outinteger_data + * 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__292, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2464, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 2464, __pyx_L1_error) + + /* "talib/_func.pxi":2463 + * np.ndarray outinteger + * int* outinteger_data + * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("open is not double") + * if open.ndim != 1: + */ + } + + /* "talib/_func.pxi":2465 + * 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/_func.pxi":2466 + * 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__293, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2466, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 2466, __pyx_L1_error) + + /* "talib/_func.pxi":2465 + * 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/_func.pxi":2467 + * 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 = open.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":2468 + * raise Exception("open has wrong dimensions") + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2468, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 2468, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":2467 + * 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 = open.data + */ + } + + /* "talib/_func.pxi":2469 + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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/_func.pxi":2470 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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/_func.pxi":2471 + * open_data = 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__294, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2471, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 2471, __pyx_L1_error) + + /* "talib/_func.pxi":2470 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_func.pxi":2472 + * 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/_func.pxi":2473 + * raise 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__295, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2473, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 2473, __pyx_L1_error) + + /* "talib/_func.pxi":2472 + * 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/_func.pxi":2474 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":2475 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2475, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 2475, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":2474 + * 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 = high.data + */ + } + + /* "talib/_func.pxi":2476 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":2477 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":2478 + * high_data = 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__296, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2478, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 2478, __pyx_L1_error) + + /* "talib/_func.pxi":2477 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_func.pxi":2479 + * 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/_func.pxi":2480 + * raise 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__297, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2480, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 2480, __pyx_L1_error) + + /* "talib/_func.pxi":2479 + * 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/_func.pxi":2481 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":2482 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2482, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 2482, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":2481 + * 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 = low.data + */ + } + + /* "talib/_func.pxi":2483 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":2484 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":2485 + * low_data = 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__298, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2485, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 2485, __pyx_L1_error) + + /* "talib/_func.pxi":2484 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_func.pxi":2486 + * 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/_func.pxi":2487 + * raise 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__299, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2487, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 2487, __pyx_L1_error) + + /* "talib/_func.pxi":2486 + * 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/_func.pxi":2488 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":2489 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = open.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2489, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 2489, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":2488 + * 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 = close.data + */ + } + + /* "talib/_func.pxi":2490 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = open.shape[0] + * if length != high.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_func.pxi":2491 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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/_func.pxi":2492 + * close_data = 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/_func.pxi":2493 + * 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__300, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2493, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 2493, __pyx_L1_error) + + /* "talib/_func.pxi":2492 + * close_data = close.data + * length = open.shape[0] + * if length != high.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != low.shape[0]: + */ + } + + /* "talib/_func.pxi":2494 + * 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/_func.pxi":2495 + * 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__301, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2495, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 2495, __pyx_L1_error) + + /* "talib/_func.pxi":2494 + * 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/_func.pxi":2496 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":2497 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__302, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2497, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 2497, __pyx_L1_error) + + /* "talib/_func.pxi":2496 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + } + + /* "talib/_func.pxi":2498 + * if length != close.shape[0]: + * raise Exception("input lengths are different") + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = open_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":2499 + * raise Exception("input lengths are different") + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = open_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":2500 + * begidx = 0 + * for i from 0 <= i < length: + * val = open_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_open_data[__pyx_v_i]); + + /* "talib/_func.pxi":2501 + * for i from 0 <= i < length: + * val = open_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = high_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":2502 + * val = open_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = high_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":2501 + * for i from 0 <= i < length: + * val = open_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = high_data[i] + */ + } + + /* "talib/_func.pxi":2503 + * if val != val: + * continue + * val = high_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); + + /* "talib/_func.pxi":2504 + * continue + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":2505 + * val = high_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = low_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":2504 + * continue + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + } + + /* "talib/_func.pxi":2506 + * if val != val: + * continue + * val = low_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); + + /* "talib/_func.pxi":2507 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":2508 + * val = low_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = close_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":2507 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + } + + /* "talib/_func.pxi":2509 + * if val != val: + * continue + * val = close_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); + + /* "talib/_func.pxi":2510 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":2511 + * val = close_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":2510 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":2512 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":2513 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L19_break; + __pyx_L18_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":2515 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLDARKCLOUDCOVER_Lookback( penetration ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__303, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2515, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 2515, __pyx_L1_error) + } + __pyx_L19_break:; + + /* "talib/_func.pxi":2516 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_CDLDARKCLOUDCOVER_Lookback( penetration ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":2517 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLDARKCLOUDCOVER_Lookback( penetration ) # <<<<<<<<<<<<<< + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_CDLDARKCLOUDCOVER_Lookback(__pyx_v_penetration)); + + /* "talib/_func.pxi":2518 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLDARKCLOUDCOVER_Lookback( penetration ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2518, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 2518, __pyx_L1_error) + __pyx_v_outinteger = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":2519 + * lookback = begidx + lib.TA_CDLDARKCLOUDCOVER_Lookback( penetration ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 + */ + __pyx_v_outinteger_data = ((int *)__pyx_v_outinteger->data); + + /* "talib/_func.pxi":2520 + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLDARKCLOUDCOVER( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , penetration , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":2521 + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 # <<<<<<<<<<<<<< + * retCode = lib.TA_CDLDARKCLOUDCOVER( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , penetration , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLDARKCLOUDCOVER", retCode) + */ + (__pyx_v_outinteger_data[__pyx_v_i]) = 0; + } + + /* "talib/_func.pxi":2522 + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLDARKCLOUDCOVER( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , penetration , &outbegidx , &outnbelement , (outinteger_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_CDLDARKCLOUDCOVER", retCode) + * return outinteger + */ + __pyx_v_retCode = TA_CDLDARKCLOUDCOVER(0, __pyx_v_endidx, ((double *)(__pyx_v_open_data + __pyx_v_begidx)), ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), __pyx_v_penetration, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outinteger_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":2523 + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLDARKCLOUDCOVER( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , penetration , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLDARKCLOUDCOVER", retCode) # <<<<<<<<<<<<<< + * return outinteger + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CDLDARKCLOUDCOVER, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2523, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":2524 + * retCode = lib.TA_CDLDARKCLOUDCOVER( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , penetration , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLDARKCLOUDCOVER", retCode) + * return outinteger # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outinteger)); + __pyx_r = ((PyObject *)__pyx_v_outinteger); + goto __pyx_L0; + + /* "talib/_func.pxi":2438 + * @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.c_ta_lib.CDLDARKCLOUDCOVER", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outinteger); + __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/_func.pxi":2528 + * @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_8c_ta_lib_75CDLDOJI(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_74CDLDOJI[] = " 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_8c_ta_lib_75CDLDOJI = {"CDLDOJI", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_75CDLDOJI, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_74CDLDOJI}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_75CDLDOJI(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(2, 2528, __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(2, 2528, __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(2, 2528, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "CDLDOJI") < 0)) __PYX_ERR(2, 2528, __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(2, 2528, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 2528, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(2, 2528, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(2, 2528, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(2, 2528, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_74CDLDOJI(__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_8c_ta_lib_74CDLDOJI(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; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + 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; + PyArrayObject *__pyx_v_outinteger = 0; + int *__pyx_v_outinteger_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __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/_func.pxi":2551 + * np.ndarray outinteger + * int* outinteger_data + * 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/_func.pxi":2552 + * int* outinteger_data + * 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__304, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2552, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 2552, __pyx_L1_error) + + /* "talib/_func.pxi":2551 + * np.ndarray outinteger + * int* outinteger_data + * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("open is not double") + * if open.ndim != 1: + */ + } + + /* "talib/_func.pxi":2553 + * 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/_func.pxi":2554 + * 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__305, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2554, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 2554, __pyx_L1_error) + + /* "talib/_func.pxi":2553 + * 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/_func.pxi":2555 + * 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 = open.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":2556 + * raise Exception("open has wrong dimensions") + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2556, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 2556, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":2555 + * 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 = open.data + */ + } + + /* "talib/_func.pxi":2557 + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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/_func.pxi":2558 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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/_func.pxi":2559 + * open_data = 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__306, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2559, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 2559, __pyx_L1_error) + + /* "talib/_func.pxi":2558 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_func.pxi":2560 + * 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/_func.pxi":2561 + * raise 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__307, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2561, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 2561, __pyx_L1_error) + + /* "talib/_func.pxi":2560 + * 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/_func.pxi":2562 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":2563 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2563, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 2563, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":2562 + * 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 = high.data + */ + } + + /* "talib/_func.pxi":2564 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":2565 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":2566 + * high_data = 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__308, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2566, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 2566, __pyx_L1_error) + + /* "talib/_func.pxi":2565 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_func.pxi":2567 + * 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/_func.pxi":2568 + * raise 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__309, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2568, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 2568, __pyx_L1_error) + + /* "talib/_func.pxi":2567 + * 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/_func.pxi":2569 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":2570 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2570, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 2570, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":2569 + * 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 = low.data + */ + } + + /* "talib/_func.pxi":2571 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":2572 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":2573 + * low_data = 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__310, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2573, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 2573, __pyx_L1_error) + + /* "talib/_func.pxi":2572 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_func.pxi":2574 + * 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/_func.pxi":2575 + * raise 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__311, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2575, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 2575, __pyx_L1_error) + + /* "talib/_func.pxi":2574 + * 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/_func.pxi":2576 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":2577 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = open.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2577, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 2577, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":2576 + * 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 = close.data + */ + } + + /* "talib/_func.pxi":2578 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = open.shape[0] + * if length != high.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_func.pxi":2579 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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/_func.pxi":2580 + * close_data = 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/_func.pxi":2581 + * 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__312, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 2581, __pyx_L1_error) + + /* "talib/_func.pxi":2580 + * close_data = close.data + * length = open.shape[0] + * if length != high.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != low.shape[0]: + */ + } + + /* "talib/_func.pxi":2582 + * 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/_func.pxi":2583 + * 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__313, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 2583, __pyx_L1_error) + + /* "talib/_func.pxi":2582 + * 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/_func.pxi":2584 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":2585 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__314, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2585, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 2585, __pyx_L1_error) + + /* "talib/_func.pxi":2584 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + } + + /* "talib/_func.pxi":2586 + * if length != close.shape[0]: + * raise Exception("input lengths are different") + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = open_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":2587 + * raise Exception("input lengths are different") + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = open_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":2588 + * begidx = 0 + * for i from 0 <= i < length: + * val = open_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_open_data[__pyx_v_i]); + + /* "talib/_func.pxi":2589 + * for i from 0 <= i < length: + * val = open_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = high_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":2590 + * val = open_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = high_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":2589 + * for i from 0 <= i < length: + * val = open_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = high_data[i] + */ + } + + /* "talib/_func.pxi":2591 + * if val != val: + * continue + * val = high_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); + + /* "talib/_func.pxi":2592 + * continue + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":2593 + * val = high_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = low_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":2592 + * continue + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + } + + /* "talib/_func.pxi":2594 + * if val != val: + * continue + * val = low_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); + + /* "talib/_func.pxi":2595 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":2596 + * val = low_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = close_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":2595 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + } + + /* "talib/_func.pxi":2597 + * if val != val: + * continue + * val = close_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); + + /* "talib/_func.pxi":2598 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":2599 + * val = close_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":2598 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":2600 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":2601 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L19_break; + __pyx_L18_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":2603 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLDOJI_Lookback( ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__315, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 2603, __pyx_L1_error) + } + __pyx_L19_break:; + + /* "talib/_func.pxi":2604 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_CDLDOJI_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":2605 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLDOJI_Lookback( ) # <<<<<<<<<<<<<< + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_CDLDOJI_Lookback()); + + /* "talib/_func.pxi":2606 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLDOJI_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2606, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 2606, __pyx_L1_error) + __pyx_v_outinteger = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":2607 + * lookback = begidx + lib.TA_CDLDOJI_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 + */ + __pyx_v_outinteger_data = ((int *)__pyx_v_outinteger->data); + + /* "talib/_func.pxi":2608 + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLDOJI( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":2609 + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 # <<<<<<<<<<<<<< + * retCode = lib.TA_CDLDOJI( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLDOJI", retCode) + */ + (__pyx_v_outinteger_data[__pyx_v_i]) = 0; + } + + /* "talib/_func.pxi":2610 + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLDOJI( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_CDLDOJI", retCode) + * return outinteger + */ + __pyx_v_retCode = TA_CDLDOJI(0, __pyx_v_endidx, ((double *)(__pyx_v_open_data + __pyx_v_begidx)), ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outinteger_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":2611 + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLDOJI( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLDOJI", retCode) # <<<<<<<<<<<<<< + * return outinteger + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CDLDOJI, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2611, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":2612 + * retCode = lib.TA_CDLDOJI( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLDOJI", retCode) + * return outinteger # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outinteger)); + __pyx_r = ((PyObject *)__pyx_v_outinteger); + goto __pyx_L0; + + /* "talib/_func.pxi":2528 + * @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.c_ta_lib.CDLDOJI", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outinteger); + __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/_func.pxi":2616 + * @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_8c_ta_lib_77CDLDOJISTAR(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_76CDLDOJISTAR[] = " 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_8c_ta_lib_77CDLDOJISTAR = {"CDLDOJISTAR", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_77CDLDOJISTAR, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_76CDLDOJISTAR}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_77CDLDOJISTAR(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(2, 2616, __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(2, 2616, __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(2, 2616, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "CDLDOJISTAR") < 0)) __PYX_ERR(2, 2616, __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(2, 2616, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 2616, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(2, 2616, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(2, 2616, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(2, 2616, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_76CDLDOJISTAR(__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_8c_ta_lib_76CDLDOJISTAR(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; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + 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; + PyArrayObject *__pyx_v_outinteger = 0; + int *__pyx_v_outinteger_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __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/_func.pxi":2639 + * np.ndarray outinteger + * int* outinteger_data + * 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/_func.pxi":2640 + * int* outinteger_data + * 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(2, 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(2, 2640, __pyx_L1_error) + + /* "talib/_func.pxi":2639 + * np.ndarray outinteger + * int* outinteger_data + * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("open is not double") + * if open.ndim != 1: + */ + } + + /* "talib/_func.pxi":2641 + * 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/_func.pxi":2642 + * 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(2, 2642, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 2642, __pyx_L1_error) + + /* "talib/_func.pxi":2641 + * 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/_func.pxi":2643 + * 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 = open.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":2644 + * raise Exception("open has wrong dimensions") + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2644, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 2644, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":2643 + * 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 = open.data + */ + } + + /* "talib/_func.pxi":2645 + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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/_func.pxi":2646 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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/_func.pxi":2647 + * open_data = 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(2, 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(2, 2647, __pyx_L1_error) + + /* "talib/_func.pxi":2646 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_func.pxi":2648 + * 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/_func.pxi":2649 + * raise 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(2, 2649, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 2649, __pyx_L1_error) + + /* "talib/_func.pxi":2648 + * 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/_func.pxi":2650 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":2651 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2651, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 2651, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":2650 + * 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 = high.data + */ + } + + /* "talib/_func.pxi":2652 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":2653 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":2654 + * high_data = 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(2, 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(2, 2654, __pyx_L1_error) + + /* "talib/_func.pxi":2653 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_func.pxi":2655 + * 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/_func.pxi":2656 + * raise 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(2, 2656, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 2656, __pyx_L1_error) + + /* "talib/_func.pxi":2655 + * 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/_func.pxi":2657 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":2658 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2658, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 2658, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":2657 + * 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 = low.data + */ + } + + /* "talib/_func.pxi":2659 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":2660 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":2661 + * low_data = 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(2, 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(2, 2661, __pyx_L1_error) + + /* "talib/_func.pxi":2660 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_func.pxi":2662 + * 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/_func.pxi":2663 + * raise 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(2, 2663, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 2663, __pyx_L1_error) + + /* "talib/_func.pxi":2662 + * 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/_func.pxi":2664 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":2665 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = open.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2665, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 2665, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":2664 + * 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 = close.data + */ + } + + /* "talib/_func.pxi":2666 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = open.shape[0] + * if length != high.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_func.pxi":2667 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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/_func.pxi":2668 + * close_data = 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/_func.pxi":2669 + * 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(2, 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(2, 2669, __pyx_L1_error) + + /* "talib/_func.pxi":2668 + * close_data = close.data + * length = open.shape[0] + * if length != high.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != low.shape[0]: + */ + } + + /* "talib/_func.pxi":2670 + * 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/_func.pxi":2671 + * 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(2, 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(2, 2671, __pyx_L1_error) + + /* "talib/_func.pxi":2670 + * 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/_func.pxi":2672 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":2673 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__326, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2673, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 2673, __pyx_L1_error) + + /* "talib/_func.pxi":2672 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + } + + /* "talib/_func.pxi":2674 + * if length != close.shape[0]: + * raise Exception("input lengths are different") + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = open_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":2675 + * raise Exception("input lengths are different") + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = open_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":2676 + * begidx = 0 + * for i from 0 <= i < length: + * val = open_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_open_data[__pyx_v_i]); + + /* "talib/_func.pxi":2677 + * for i from 0 <= i < length: + * val = open_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = high_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":2678 + * val = open_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = high_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":2677 + * for i from 0 <= i < length: + * val = open_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = high_data[i] + */ + } + + /* "talib/_func.pxi":2679 + * if val != val: + * continue + * val = high_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); + + /* "talib/_func.pxi":2680 + * continue + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":2681 + * val = high_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = low_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":2680 + * continue + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + } + + /* "talib/_func.pxi":2682 + * if val != val: + * continue + * val = low_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); + + /* "talib/_func.pxi":2683 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":2684 + * val = low_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = close_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":2683 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + } + + /* "talib/_func.pxi":2685 + * if val != val: + * continue + * val = close_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); + + /* "talib/_func.pxi":2686 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":2687 + * val = close_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":2686 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":2688 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":2689 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L19_break; + __pyx_L18_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":2691 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLDOJISTAR_Lookback( ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__327, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2691, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 2691, __pyx_L1_error) + } + __pyx_L19_break:; + + /* "talib/_func.pxi":2692 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_CDLDOJISTAR_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":2693 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLDOJISTAR_Lookback( ) # <<<<<<<<<<<<<< + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_CDLDOJISTAR_Lookback()); + + /* "talib/_func.pxi":2694 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLDOJISTAR_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2694, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 2694, __pyx_L1_error) + __pyx_v_outinteger = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":2695 + * lookback = begidx + lib.TA_CDLDOJISTAR_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 + */ + __pyx_v_outinteger_data = ((int *)__pyx_v_outinteger->data); + + /* "talib/_func.pxi":2696 + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLDOJISTAR( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":2697 + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 # <<<<<<<<<<<<<< + * retCode = lib.TA_CDLDOJISTAR( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLDOJISTAR", retCode) + */ + (__pyx_v_outinteger_data[__pyx_v_i]) = 0; + } + + /* "talib/_func.pxi":2698 + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLDOJISTAR( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_CDLDOJISTAR", retCode) + * return outinteger + */ + __pyx_v_retCode = TA_CDLDOJISTAR(0, __pyx_v_endidx, ((double *)(__pyx_v_open_data + __pyx_v_begidx)), ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outinteger_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":2699 + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLDOJISTAR( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLDOJISTAR", retCode) # <<<<<<<<<<<<<< + * return outinteger + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CDLDOJISTAR, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2699, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":2700 + * retCode = lib.TA_CDLDOJISTAR( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLDOJISTAR", retCode) + * return outinteger # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outinteger)); + __pyx_r = ((PyObject *)__pyx_v_outinteger); + goto __pyx_L0; + + /* "talib/_func.pxi":2616 + * @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.c_ta_lib.CDLDOJISTAR", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outinteger); + __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/_func.pxi":2704 + * @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_8c_ta_lib_79CDLDRAGONFLYDOJI(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_78CDLDRAGONFLYDOJI[] = " 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_8c_ta_lib_79CDLDRAGONFLYDOJI = {"CDLDRAGONFLYDOJI", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_79CDLDRAGONFLYDOJI, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_78CDLDRAGONFLYDOJI}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_79CDLDRAGONFLYDOJI(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(2, 2704, __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(2, 2704, __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(2, 2704, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "CDLDRAGONFLYDOJI") < 0)) __PYX_ERR(2, 2704, __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(2, 2704, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 2704, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(2, 2704, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(2, 2704, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(2, 2704, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_78CDLDRAGONFLYDOJI(__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_8c_ta_lib_78CDLDRAGONFLYDOJI(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; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + 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; + PyArrayObject *__pyx_v_outinteger = 0; + int *__pyx_v_outinteger_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __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/_func.pxi":2727 + * np.ndarray outinteger + * int* outinteger_data + * 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/_func.pxi":2728 + * int* outinteger_data + * 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__328, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2728, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 2728, __pyx_L1_error) + + /* "talib/_func.pxi":2727 + * np.ndarray outinteger + * int* outinteger_data + * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("open is not double") + * if open.ndim != 1: + */ + } + + /* "talib/_func.pxi":2729 + * 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/_func.pxi":2730 + * 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__329, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2730, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 2730, __pyx_L1_error) + + /* "talib/_func.pxi":2729 + * 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/_func.pxi":2731 + * 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 = open.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":2732 + * raise Exception("open has wrong dimensions") + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2732, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 2732, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":2731 + * 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 = open.data + */ + } + + /* "talib/_func.pxi":2733 + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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/_func.pxi":2734 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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/_func.pxi":2735 + * open_data = 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__330, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 2735, __pyx_L1_error) + + /* "talib/_func.pxi":2734 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_func.pxi":2736 + * 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/_func.pxi":2737 + * raise 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__331, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2737, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 2737, __pyx_L1_error) + + /* "talib/_func.pxi":2736 + * 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/_func.pxi":2738 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":2739 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2739, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 2739, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":2738 + * 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 = high.data + */ + } + + /* "talib/_func.pxi":2740 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":2741 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":2742 + * high_data = 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__332, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2742, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 2742, __pyx_L1_error) + + /* "talib/_func.pxi":2741 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_func.pxi":2743 + * 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/_func.pxi":2744 + * raise 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__333, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2744, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 2744, __pyx_L1_error) + + /* "talib/_func.pxi":2743 + * 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/_func.pxi":2745 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":2746 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2746, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 2746, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":2745 + * 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 = low.data + */ + } + + /* "talib/_func.pxi":2747 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":2748 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":2749 + * low_data = 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__334, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2749, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 2749, __pyx_L1_error) + + /* "talib/_func.pxi":2748 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_func.pxi":2750 + * 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/_func.pxi":2751 + * raise 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__335, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2751, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 2751, __pyx_L1_error) + + /* "talib/_func.pxi":2750 + * 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/_func.pxi":2752 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":2753 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = open.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2753, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 2753, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":2752 + * 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 = close.data + */ + } + + /* "talib/_func.pxi":2754 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = open.shape[0] + * if length != high.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_func.pxi":2755 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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/_func.pxi":2756 + * close_data = 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/_func.pxi":2757 + * 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__336, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2757, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 2757, __pyx_L1_error) + + /* "talib/_func.pxi":2756 + * close_data = close.data + * length = open.shape[0] + * if length != high.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != low.shape[0]: + */ + } + + /* "talib/_func.pxi":2758 + * 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/_func.pxi":2759 + * 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__337, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2759, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 2759, __pyx_L1_error) + + /* "talib/_func.pxi":2758 + * 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/_func.pxi":2760 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":2761 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__338, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2761, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 2761, __pyx_L1_error) + + /* "talib/_func.pxi":2760 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + } + + /* "talib/_func.pxi":2762 + * if length != close.shape[0]: + * raise Exception("input lengths are different") + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = open_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":2763 + * raise Exception("input lengths are different") + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = open_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":2764 + * begidx = 0 + * for i from 0 <= i < length: + * val = open_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_open_data[__pyx_v_i]); + + /* "talib/_func.pxi":2765 + * for i from 0 <= i < length: + * val = open_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = high_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":2766 + * val = open_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = high_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":2765 + * for i from 0 <= i < length: + * val = open_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = high_data[i] + */ + } + + /* "talib/_func.pxi":2767 + * if val != val: + * continue + * val = high_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); + + /* "talib/_func.pxi":2768 + * continue + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":2769 + * val = high_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = low_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":2768 + * continue + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + } + + /* "talib/_func.pxi":2770 + * if val != val: + * continue + * val = low_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); + + /* "talib/_func.pxi":2771 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":2772 + * val = low_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = close_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":2771 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + } + + /* "talib/_func.pxi":2773 + * if val != val: + * continue + * val = close_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); + + /* "talib/_func.pxi":2774 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":2775 + * val = close_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":2774 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":2776 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":2777 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L19_break; + __pyx_L18_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":2779 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLDRAGONFLYDOJI_Lookback( ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__339, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2779, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 2779, __pyx_L1_error) + } + __pyx_L19_break:; + + /* "talib/_func.pxi":2780 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_CDLDRAGONFLYDOJI_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":2781 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLDRAGONFLYDOJI_Lookback( ) # <<<<<<<<<<<<<< + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_CDLDRAGONFLYDOJI_Lookback()); + + /* "talib/_func.pxi":2782 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLDRAGONFLYDOJI_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2782, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 2782, __pyx_L1_error) + __pyx_v_outinteger = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":2783 + * lookback = begidx + lib.TA_CDLDRAGONFLYDOJI_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 + */ + __pyx_v_outinteger_data = ((int *)__pyx_v_outinteger->data); + + /* "talib/_func.pxi":2784 + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLDRAGONFLYDOJI( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":2785 + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 # <<<<<<<<<<<<<< + * retCode = lib.TA_CDLDRAGONFLYDOJI( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLDRAGONFLYDOJI", retCode) + */ + (__pyx_v_outinteger_data[__pyx_v_i]) = 0; + } + + /* "talib/_func.pxi":2786 + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLDRAGONFLYDOJI( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_CDLDRAGONFLYDOJI", retCode) + * return outinteger + */ + __pyx_v_retCode = TA_CDLDRAGONFLYDOJI(0, __pyx_v_endidx, ((double *)(__pyx_v_open_data + __pyx_v_begidx)), ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outinteger_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":2787 + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLDRAGONFLYDOJI( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLDRAGONFLYDOJI", retCode) # <<<<<<<<<<<<<< + * return outinteger + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CDLDRAGONFLYDOJI, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2787, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":2788 + * retCode = lib.TA_CDLDRAGONFLYDOJI( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLDRAGONFLYDOJI", retCode) + * return outinteger # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outinteger)); + __pyx_r = ((PyObject *)__pyx_v_outinteger); + goto __pyx_L0; + + /* "talib/_func.pxi":2704 + * @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.c_ta_lib.CDLDRAGONFLYDOJI", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outinteger); + __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/_func.pxi":2792 + * @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_8c_ta_lib_81CDLENGULFING(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_80CDLENGULFING[] = " 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_8c_ta_lib_81CDLENGULFING = {"CDLENGULFING", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_81CDLENGULFING, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_80CDLENGULFING}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_81CDLENGULFING(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(2, 2792, __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(2, 2792, __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(2, 2792, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "CDLENGULFING") < 0)) __PYX_ERR(2, 2792, __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(2, 2792, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 2792, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(2, 2792, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(2, 2792, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(2, 2792, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_80CDLENGULFING(__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_8c_ta_lib_80CDLENGULFING(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; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + 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; + PyArrayObject *__pyx_v_outinteger = 0; + int *__pyx_v_outinteger_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __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/_func.pxi":2815 + * np.ndarray outinteger + * int* outinteger_data + * 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/_func.pxi":2816 + * int* outinteger_data + * 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__340, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2816, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 2816, __pyx_L1_error) + + /* "talib/_func.pxi":2815 + * np.ndarray outinteger + * int* outinteger_data + * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("open is not double") + * if open.ndim != 1: + */ + } + + /* "talib/_func.pxi":2817 + * 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/_func.pxi":2818 + * 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__341, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2818, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 2818, __pyx_L1_error) + + /* "talib/_func.pxi":2817 + * 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/_func.pxi":2819 + * 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 = open.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":2820 + * raise Exception("open has wrong dimensions") + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2820, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 2820, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":2819 + * 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 = open.data + */ + } + + /* "talib/_func.pxi":2821 + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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/_func.pxi":2822 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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/_func.pxi":2823 + * open_data = 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__342, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2823, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 2823, __pyx_L1_error) + + /* "talib/_func.pxi":2822 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_func.pxi":2824 + * 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/_func.pxi":2825 + * raise 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__343, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2825, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 2825, __pyx_L1_error) + + /* "talib/_func.pxi":2824 + * 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/_func.pxi":2826 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":2827 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2827, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 2827, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":2826 + * 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 = high.data + */ + } + + /* "talib/_func.pxi":2828 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":2829 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":2830 + * high_data = 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__344, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 2830, __pyx_L1_error) + + /* "talib/_func.pxi":2829 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_func.pxi":2831 + * 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/_func.pxi":2832 + * raise 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__345, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 2832, __pyx_L1_error) + + /* "talib/_func.pxi":2831 + * 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/_func.pxi":2833 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":2834 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 2834, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":2833 + * 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 = low.data + */ + } + + /* "talib/_func.pxi":2835 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":2836 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":2837 + * low_data = 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__346, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 2837, __pyx_L1_error) + + /* "talib/_func.pxi":2836 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_func.pxi":2838 + * 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/_func.pxi":2839 + * raise 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__347, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 2839, __pyx_L1_error) + + /* "talib/_func.pxi":2838 + * 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/_func.pxi":2840 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":2841 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = open.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 2841, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":2840 + * 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 = close.data + */ + } + + /* "talib/_func.pxi":2842 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = open.shape[0] + * if length != high.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_func.pxi":2843 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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/_func.pxi":2844 + * close_data = 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/_func.pxi":2845 + * 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__348, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2845, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 2845, __pyx_L1_error) + + /* "talib/_func.pxi":2844 + * close_data = close.data + * length = open.shape[0] + * if length != high.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != low.shape[0]: + */ + } + + /* "talib/_func.pxi":2846 + * 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/_func.pxi":2847 + * 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__349, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2847, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 2847, __pyx_L1_error) + + /* "talib/_func.pxi":2846 + * 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/_func.pxi":2848 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":2849 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__350, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2849, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 2849, __pyx_L1_error) + + /* "talib/_func.pxi":2848 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + } + + /* "talib/_func.pxi":2850 + * if length != close.shape[0]: + * raise Exception("input lengths are different") + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = open_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":2851 + * raise Exception("input lengths are different") + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = open_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":2852 + * begidx = 0 + * for i from 0 <= i < length: + * val = open_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_open_data[__pyx_v_i]); + + /* "talib/_func.pxi":2853 + * for i from 0 <= i < length: + * val = open_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = high_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":2854 + * val = open_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = high_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":2853 + * for i from 0 <= i < length: + * val = open_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = high_data[i] + */ + } + + /* "talib/_func.pxi":2855 + * if val != val: + * continue + * val = high_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); + + /* "talib/_func.pxi":2856 + * continue + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":2857 + * val = high_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = low_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":2856 + * continue + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + } + + /* "talib/_func.pxi":2858 + * if val != val: + * continue + * val = low_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); + + /* "talib/_func.pxi":2859 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":2860 + * val = low_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = close_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":2859 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + } + + /* "talib/_func.pxi":2861 + * if val != val: + * continue + * val = close_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); + + /* "talib/_func.pxi":2862 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":2863 + * val = close_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":2862 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":2864 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":2865 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L19_break; + __pyx_L18_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":2867 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLENGULFING_Lookback( ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__351, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2867, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 2867, __pyx_L1_error) + } + __pyx_L19_break:; + + /* "talib/_func.pxi":2868 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_CDLENGULFING_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":2869 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLENGULFING_Lookback( ) # <<<<<<<<<<<<<< + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_CDLENGULFING_Lookback()); + + /* "talib/_func.pxi":2870 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLENGULFING_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2870, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 2870, __pyx_L1_error) + __pyx_v_outinteger = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":2871 + * lookback = begidx + lib.TA_CDLENGULFING_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 + */ + __pyx_v_outinteger_data = ((int *)__pyx_v_outinteger->data); + + /* "talib/_func.pxi":2872 + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLENGULFING( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":2873 + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 # <<<<<<<<<<<<<< + * retCode = lib.TA_CDLENGULFING( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLENGULFING", retCode) + */ + (__pyx_v_outinteger_data[__pyx_v_i]) = 0; + } + + /* "talib/_func.pxi":2874 + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLENGULFING( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_CDLENGULFING", retCode) + * return outinteger + */ + __pyx_v_retCode = TA_CDLENGULFING(0, __pyx_v_endidx, ((double *)(__pyx_v_open_data + __pyx_v_begidx)), ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outinteger_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":2875 + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLENGULFING( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLENGULFING", retCode) # <<<<<<<<<<<<<< + * return outinteger + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CDLENGULFING, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2875, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":2876 + * retCode = lib.TA_CDLENGULFING( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLENGULFING", retCode) + * return outinteger # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outinteger)); + __pyx_r = ((PyObject *)__pyx_v_outinteger); + goto __pyx_L0; + + /* "talib/_func.pxi":2792 + * @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.c_ta_lib.CDLENGULFING", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outinteger); + __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/_func.pxi":2880 + * @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_8c_ta_lib_83CDLEVENINGDOJISTAR(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_82CDLEVENINGDOJISTAR[] = " 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_8c_ta_lib_83CDLEVENINGDOJISTAR = {"CDLEVENINGDOJISTAR", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_83CDLEVENINGDOJISTAR, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_82CDLEVENINGDOJISTAR}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_83CDLEVENINGDOJISTAR(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(2, 2880, __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(2, 2880, __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(2, 2880, __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(2, 2880, __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(2, 2880, __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(2, 2880, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 2880, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(2, 2880, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(2, 2880, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(2, 2880, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_82CDLEVENINGDOJISTAR(__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_8c_ta_lib_82CDLEVENINGDOJISTAR(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; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + 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; + PyArrayObject *__pyx_v_outinteger = 0; + int *__pyx_v_outinteger_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __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/_func.pxi":2905 + * np.ndarray outinteger + * int* outinteger_data + * 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/_func.pxi":2906 + * int* outinteger_data + * 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__352, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2906, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 2906, __pyx_L1_error) + + /* "talib/_func.pxi":2905 + * np.ndarray outinteger + * int* outinteger_data + * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("open is not double") + * if open.ndim != 1: + */ + } + + /* "talib/_func.pxi":2907 + * 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/_func.pxi":2908 + * 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__353, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 2908, __pyx_L1_error) + + /* "talib/_func.pxi":2907 + * 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/_func.pxi":2909 + * 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 = open.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":2910 + * raise Exception("open has wrong dimensions") + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2910, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 2910, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":2909 + * 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 = open.data + */ + } + + /* "talib/_func.pxi":2911 + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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/_func.pxi":2912 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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/_func.pxi":2913 + * open_data = 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__354, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2913, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 2913, __pyx_L1_error) + + /* "talib/_func.pxi":2912 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_func.pxi":2914 + * 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/_func.pxi":2915 + * raise 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__355, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 2915, __pyx_L1_error) + + /* "talib/_func.pxi":2914 + * 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/_func.pxi":2916 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":2917 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2917, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 2917, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":2916 + * 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 = high.data + */ + } + + /* "talib/_func.pxi":2918 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":2919 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":2920 + * high_data = 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__356, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2920, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 2920, __pyx_L1_error) + + /* "talib/_func.pxi":2919 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_func.pxi":2921 + * 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/_func.pxi":2922 + * raise 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__357, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2922, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 2922, __pyx_L1_error) + + /* "talib/_func.pxi":2921 + * 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/_func.pxi":2923 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":2924 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2924, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 2924, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":2923 + * 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 = low.data + */ + } + + /* "talib/_func.pxi":2925 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":2926 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":2927 + * low_data = 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__358, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 2927, __pyx_L1_error) + + /* "talib/_func.pxi":2926 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_func.pxi":2928 + * 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/_func.pxi":2929 + * raise 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__359, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2929, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 2929, __pyx_L1_error) + + /* "talib/_func.pxi":2928 + * 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/_func.pxi":2930 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":2931 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = open.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2931, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 2931, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":2930 + * 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 = close.data + */ + } + + /* "talib/_func.pxi":2932 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = open.shape[0] + * if length != high.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_func.pxi":2933 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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/_func.pxi":2934 + * close_data = 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/_func.pxi":2935 + * 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__360, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2935, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 2935, __pyx_L1_error) + + /* "talib/_func.pxi":2934 + * close_data = close.data + * length = open.shape[0] + * if length != high.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != low.shape[0]: + */ + } + + /* "talib/_func.pxi":2936 + * 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/_func.pxi":2937 + * 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__361, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2937, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 2937, __pyx_L1_error) + + /* "talib/_func.pxi":2936 + * 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/_func.pxi":2938 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":2939 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__362, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2939, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 2939, __pyx_L1_error) + + /* "talib/_func.pxi":2938 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + } + + /* "talib/_func.pxi":2940 + * if length != close.shape[0]: + * raise Exception("input lengths are different") + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = open_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":2941 + * raise Exception("input lengths are different") + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = open_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":2942 + * begidx = 0 + * for i from 0 <= i < length: + * val = open_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_open_data[__pyx_v_i]); + + /* "talib/_func.pxi":2943 + * for i from 0 <= i < length: + * val = open_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = high_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":2944 + * val = open_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = high_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":2943 + * for i from 0 <= i < length: + * val = open_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = high_data[i] + */ + } + + /* "talib/_func.pxi":2945 + * if val != val: + * continue + * val = high_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); + + /* "talib/_func.pxi":2946 + * continue + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":2947 + * val = high_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = low_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":2946 + * continue + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + } + + /* "talib/_func.pxi":2948 + * if val != val: + * continue + * val = low_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); + + /* "talib/_func.pxi":2949 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":2950 + * val = low_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = close_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":2949 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + } + + /* "talib/_func.pxi":2951 + * if val != val: + * continue + * val = close_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); + + /* "talib/_func.pxi":2952 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":2953 + * val = close_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":2952 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":2954 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":2955 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L19_break; + __pyx_L18_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":2957 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLEVENINGDOJISTAR_Lookback( penetration ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__363, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2957, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 2957, __pyx_L1_error) + } + __pyx_L19_break:; + + /* "talib/_func.pxi":2958 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_CDLEVENINGDOJISTAR_Lookback( penetration ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":2959 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLEVENINGDOJISTAR_Lookback( penetration ) # <<<<<<<<<<<<<< + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_CDLEVENINGDOJISTAR_Lookback(__pyx_v_penetration)); + + /* "talib/_func.pxi":2960 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLEVENINGDOJISTAR_Lookback( penetration ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2960, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 2960, __pyx_L1_error) + __pyx_v_outinteger = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":2961 + * lookback = begidx + lib.TA_CDLEVENINGDOJISTAR_Lookback( penetration ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 + */ + __pyx_v_outinteger_data = ((int *)__pyx_v_outinteger->data); + + /* "talib/_func.pxi":2962 + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLEVENINGDOJISTAR( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , penetration , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":2963 + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 # <<<<<<<<<<<<<< + * retCode = lib.TA_CDLEVENINGDOJISTAR( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , penetration , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLEVENINGDOJISTAR", retCode) + */ + (__pyx_v_outinteger_data[__pyx_v_i]) = 0; + } + + /* "talib/_func.pxi":2964 + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLEVENINGDOJISTAR( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , penetration , &outbegidx , &outnbelement , (outinteger_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_CDLEVENINGDOJISTAR", retCode) + * return outinteger + */ + __pyx_v_retCode = TA_CDLEVENINGDOJISTAR(0, __pyx_v_endidx, ((double *)(__pyx_v_open_data + __pyx_v_begidx)), ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), __pyx_v_penetration, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outinteger_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":2965 + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLEVENINGDOJISTAR( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , penetration , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLEVENINGDOJISTAR", retCode) # <<<<<<<<<<<<<< + * return outinteger + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CDLEVENINGDOJISTAR, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2965, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":2966 + * retCode = lib.TA_CDLEVENINGDOJISTAR( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , penetration , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLEVENINGDOJISTAR", retCode) + * return outinteger # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outinteger)); + __pyx_r = ((PyObject *)__pyx_v_outinteger); + goto __pyx_L0; + + /* "talib/_func.pxi":2880 + * @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.c_ta_lib.CDLEVENINGDOJISTAR", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outinteger); + __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/_func.pxi":2970 + * @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_8c_ta_lib_85CDLEVENINGSTAR(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_84CDLEVENINGSTAR[] = " 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_8c_ta_lib_85CDLEVENINGSTAR = {"CDLEVENINGSTAR", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_85CDLEVENINGSTAR, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_84CDLEVENINGSTAR}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_85CDLEVENINGSTAR(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(2, 2970, __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(2, 2970, __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(2, 2970, __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(2, 2970, __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(2, 2970, __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(2, 2970, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 2970, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(2, 2970, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(2, 2970, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(2, 2970, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_84CDLEVENINGSTAR(__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_8c_ta_lib_84CDLEVENINGSTAR(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; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + 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; + PyArrayObject *__pyx_v_outinteger = 0; + int *__pyx_v_outinteger_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __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/_func.pxi":2995 + * np.ndarray outinteger + * int* outinteger_data + * 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/_func.pxi":2996 + * int* outinteger_data + * 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__364, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2996, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 2996, __pyx_L1_error) + + /* "talib/_func.pxi":2995 + * np.ndarray outinteger + * int* outinteger_data + * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("open is not double") + * if open.ndim != 1: + */ + } + + /* "talib/_func.pxi":2997 + * 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/_func.pxi":2998 + * 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__365, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2998, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 2998, __pyx_L1_error) + + /* "talib/_func.pxi":2997 + * 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/_func.pxi":2999 + * 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 = open.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":3000 + * raise Exception("open has wrong dimensions") + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3000, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 3000, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":2999 + * 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 = open.data + */ + } + + /* "talib/_func.pxi":3001 + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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/_func.pxi":3002 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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/_func.pxi":3003 + * open_data = 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__366, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3003, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 3003, __pyx_L1_error) + + /* "talib/_func.pxi":3002 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_func.pxi":3004 + * 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/_func.pxi":3005 + * raise 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__367, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3005, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 3005, __pyx_L1_error) + + /* "talib/_func.pxi":3004 + * 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/_func.pxi":3006 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":3007 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3007, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 3007, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":3006 + * 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 = high.data + */ + } + + /* "talib/_func.pxi":3008 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":3009 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":3010 + * high_data = 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__368, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3010, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 3010, __pyx_L1_error) + + /* "talib/_func.pxi":3009 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_func.pxi":3011 + * 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/_func.pxi":3012 + * raise 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__369, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3012, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 3012, __pyx_L1_error) + + /* "talib/_func.pxi":3011 + * 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/_func.pxi":3013 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":3014 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3014, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 3014, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":3013 + * 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 = low.data + */ + } + + /* "talib/_func.pxi":3015 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":3016 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":3017 + * low_data = 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__370, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3017, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 3017, __pyx_L1_error) + + /* "talib/_func.pxi":3016 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_func.pxi":3018 + * 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/_func.pxi":3019 + * raise 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__371, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3019, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 3019, __pyx_L1_error) + + /* "talib/_func.pxi":3018 + * 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/_func.pxi":3020 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":3021 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = open.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3021, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 3021, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":3020 + * 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 = close.data + */ + } + + /* "talib/_func.pxi":3022 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = open.shape[0] + * if length != high.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_func.pxi":3023 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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/_func.pxi":3024 + * close_data = 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/_func.pxi":3025 + * 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__372, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3025, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 3025, __pyx_L1_error) + + /* "talib/_func.pxi":3024 + * close_data = close.data + * length = open.shape[0] + * if length != high.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != low.shape[0]: + */ + } + + /* "talib/_func.pxi":3026 + * 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/_func.pxi":3027 + * 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__373, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3027, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 3027, __pyx_L1_error) + + /* "talib/_func.pxi":3026 + * 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/_func.pxi":3028 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":3029 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__374, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 3029, __pyx_L1_error) + + /* "talib/_func.pxi":3028 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + } + + /* "talib/_func.pxi":3030 + * if length != close.shape[0]: + * raise Exception("input lengths are different") + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = open_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":3031 + * raise Exception("input lengths are different") + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = open_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":3032 + * begidx = 0 + * for i from 0 <= i < length: + * val = open_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_open_data[__pyx_v_i]); + + /* "talib/_func.pxi":3033 + * for i from 0 <= i < length: + * val = open_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = high_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":3034 + * val = open_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = high_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":3033 + * for i from 0 <= i < length: + * val = open_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = high_data[i] + */ + } + + /* "talib/_func.pxi":3035 + * if val != val: + * continue + * val = high_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); + + /* "talib/_func.pxi":3036 + * continue + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":3037 + * val = high_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = low_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":3036 + * continue + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + } + + /* "talib/_func.pxi":3038 + * if val != val: + * continue + * val = low_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); + + /* "talib/_func.pxi":3039 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":3040 + * val = low_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = close_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":3039 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + } + + /* "talib/_func.pxi":3041 + * if val != val: + * continue + * val = close_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); + + /* "talib/_func.pxi":3042 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":3043 + * val = close_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":3042 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":3044 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":3045 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L19_break; + __pyx_L18_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":3047 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLEVENINGSTAR_Lookback( penetration ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__375, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3047, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 3047, __pyx_L1_error) + } + __pyx_L19_break:; + + /* "talib/_func.pxi":3048 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_CDLEVENINGSTAR_Lookback( penetration ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":3049 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLEVENINGSTAR_Lookback( penetration ) # <<<<<<<<<<<<<< + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_CDLEVENINGSTAR_Lookback(__pyx_v_penetration)); + + /* "talib/_func.pxi":3050 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLEVENINGSTAR_Lookback( penetration ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3050, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 3050, __pyx_L1_error) + __pyx_v_outinteger = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":3051 + * lookback = begidx + lib.TA_CDLEVENINGSTAR_Lookback( penetration ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 + */ + __pyx_v_outinteger_data = ((int *)__pyx_v_outinteger->data); + + /* "talib/_func.pxi":3052 + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLEVENINGSTAR( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , penetration , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":3053 + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 # <<<<<<<<<<<<<< + * retCode = lib.TA_CDLEVENINGSTAR( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , penetration , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLEVENINGSTAR", retCode) + */ + (__pyx_v_outinteger_data[__pyx_v_i]) = 0; + } + + /* "talib/_func.pxi":3054 + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLEVENINGSTAR( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , penetration , &outbegidx , &outnbelement , (outinteger_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_CDLEVENINGSTAR", retCode) + * return outinteger + */ + __pyx_v_retCode = TA_CDLEVENINGSTAR(0, __pyx_v_endidx, ((double *)(__pyx_v_open_data + __pyx_v_begidx)), ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), __pyx_v_penetration, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outinteger_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":3055 + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLEVENINGSTAR( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , penetration , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLEVENINGSTAR", retCode) # <<<<<<<<<<<<<< + * return outinteger + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CDLEVENINGSTAR, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3055, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":3056 + * retCode = lib.TA_CDLEVENINGSTAR( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , penetration , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLEVENINGSTAR", retCode) + * return outinteger # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outinteger)); + __pyx_r = ((PyObject *)__pyx_v_outinteger); + goto __pyx_L0; + + /* "talib/_func.pxi":2970 + * @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.c_ta_lib.CDLEVENINGSTAR", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outinteger); + __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/_func.pxi":3060 + * @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_8c_ta_lib_87CDLGAPSIDESIDEWHITE(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_86CDLGAPSIDESIDEWHITE[] = " 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_8c_ta_lib_87CDLGAPSIDESIDEWHITE = {"CDLGAPSIDESIDEWHITE", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_87CDLGAPSIDESIDEWHITE, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_86CDLGAPSIDESIDEWHITE}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_87CDLGAPSIDESIDEWHITE(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(2, 3060, __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(2, 3060, __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(2, 3060, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "CDLGAPSIDESIDEWHITE") < 0)) __PYX_ERR(2, 3060, __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(2, 3060, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 3060, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(2, 3060, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(2, 3060, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(2, 3060, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_86CDLGAPSIDESIDEWHITE(__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_8c_ta_lib_86CDLGAPSIDESIDEWHITE(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; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + 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; + PyArrayObject *__pyx_v_outinteger = 0; + int *__pyx_v_outinteger_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __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/_func.pxi":3083 + * np.ndarray outinteger + * int* outinteger_data + * 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/_func.pxi":3084 + * int* outinteger_data + * 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__376, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3084, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 3084, __pyx_L1_error) + + /* "talib/_func.pxi":3083 + * np.ndarray outinteger + * int* outinteger_data + * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("open is not double") + * if open.ndim != 1: + */ + } + + /* "talib/_func.pxi":3085 + * 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/_func.pxi":3086 + * 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__377, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 3086, __pyx_L1_error) + + /* "talib/_func.pxi":3085 + * 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/_func.pxi":3087 + * 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 = open.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":3088 + * raise Exception("open has wrong dimensions") + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3088, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 3088, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":3087 + * 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 = open.data + */ + } + + /* "talib/_func.pxi":3089 + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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/_func.pxi":3090 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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/_func.pxi":3091 + * open_data = 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__378, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3091, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 3091, __pyx_L1_error) + + /* "talib/_func.pxi":3090 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_func.pxi":3092 + * 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/_func.pxi":3093 + * raise 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__379, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 3093, __pyx_L1_error) + + /* "talib/_func.pxi":3092 + * 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/_func.pxi":3094 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":3095 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3095, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 3095, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":3094 + * 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 = high.data + */ + } + + /* "talib/_func.pxi":3096 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":3097 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":3098 + * high_data = 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__380, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3098, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 3098, __pyx_L1_error) + + /* "talib/_func.pxi":3097 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_func.pxi":3099 + * 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/_func.pxi":3100 + * raise 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__381, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 3100, __pyx_L1_error) + + /* "talib/_func.pxi":3099 + * 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/_func.pxi":3101 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":3102 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3102, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 3102, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":3101 + * 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 = low.data + */ + } + + /* "talib/_func.pxi":3103 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":3104 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":3105 + * low_data = 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__382, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3105, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 3105, __pyx_L1_error) + + /* "talib/_func.pxi":3104 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_func.pxi":3106 + * 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/_func.pxi":3107 + * raise 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__383, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 3107, __pyx_L1_error) + + /* "talib/_func.pxi":3106 + * 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/_func.pxi":3108 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":3109 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = open.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3109, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 3109, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":3108 + * 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 = close.data + */ + } + + /* "talib/_func.pxi":3110 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = open.shape[0] + * if length != high.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_func.pxi":3111 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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/_func.pxi":3112 + * close_data = 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/_func.pxi":3113 + * 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__384, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3113, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 3113, __pyx_L1_error) + + /* "talib/_func.pxi":3112 + * close_data = close.data + * length = open.shape[0] + * if length != high.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != low.shape[0]: + */ + } + + /* "talib/_func.pxi":3114 + * 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/_func.pxi":3115 + * 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__385, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 3115, __pyx_L1_error) + + /* "talib/_func.pxi":3114 + * 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/_func.pxi":3116 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":3117 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__386, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 3117, __pyx_L1_error) + + /* "talib/_func.pxi":3116 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + } + + /* "talib/_func.pxi":3118 + * if length != close.shape[0]: + * raise Exception("input lengths are different") + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = open_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":3119 + * raise Exception("input lengths are different") + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = open_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":3120 + * begidx = 0 + * for i from 0 <= i < length: + * val = open_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_open_data[__pyx_v_i]); + + /* "talib/_func.pxi":3121 + * for i from 0 <= i < length: + * val = open_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = high_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":3122 + * val = open_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = high_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":3121 + * for i from 0 <= i < length: + * val = open_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = high_data[i] + */ + } + + /* "talib/_func.pxi":3123 + * if val != val: + * continue + * val = high_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); + + /* "talib/_func.pxi":3124 + * continue + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":3125 + * val = high_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = low_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":3124 + * continue + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + } + + /* "talib/_func.pxi":3126 + * if val != val: + * continue + * val = low_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); + + /* "talib/_func.pxi":3127 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":3128 + * val = low_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = close_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":3127 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + } + + /* "talib/_func.pxi":3129 + * if val != val: + * continue + * val = close_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); + + /* "talib/_func.pxi":3130 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":3131 + * val = close_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":3130 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":3132 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":3133 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L19_break; + __pyx_L18_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":3135 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLGAPSIDESIDEWHITE_Lookback( ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__387, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3135, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 3135, __pyx_L1_error) + } + __pyx_L19_break:; + + /* "talib/_func.pxi":3136 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_CDLGAPSIDESIDEWHITE_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":3137 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLGAPSIDESIDEWHITE_Lookback( ) # <<<<<<<<<<<<<< + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_CDLGAPSIDESIDEWHITE_Lookback()); + + /* "talib/_func.pxi":3138 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLGAPSIDESIDEWHITE_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3138, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 3138, __pyx_L1_error) + __pyx_v_outinteger = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":3139 + * lookback = begidx + lib.TA_CDLGAPSIDESIDEWHITE_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 + */ + __pyx_v_outinteger_data = ((int *)__pyx_v_outinteger->data); + + /* "talib/_func.pxi":3140 + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLGAPSIDESIDEWHITE( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":3141 + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 # <<<<<<<<<<<<<< + * retCode = lib.TA_CDLGAPSIDESIDEWHITE( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLGAPSIDESIDEWHITE", retCode) + */ + (__pyx_v_outinteger_data[__pyx_v_i]) = 0; + } + + /* "talib/_func.pxi":3142 + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLGAPSIDESIDEWHITE( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_CDLGAPSIDESIDEWHITE", retCode) + * return outinteger + */ + __pyx_v_retCode = TA_CDLGAPSIDESIDEWHITE(0, __pyx_v_endidx, ((double *)(__pyx_v_open_data + __pyx_v_begidx)), ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outinteger_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":3143 + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLGAPSIDESIDEWHITE( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLGAPSIDESIDEWHITE", retCode) # <<<<<<<<<<<<<< + * return outinteger + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CDLGAPSIDESIDEWHITE, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3143, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":3144 + * retCode = lib.TA_CDLGAPSIDESIDEWHITE( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLGAPSIDESIDEWHITE", retCode) + * return outinteger # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outinteger)); + __pyx_r = ((PyObject *)__pyx_v_outinteger); + goto __pyx_L0; + + /* "talib/_func.pxi":3060 + * @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.c_ta_lib.CDLGAPSIDESIDEWHITE", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outinteger); + __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/_func.pxi":3148 + * @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_8c_ta_lib_89CDLGRAVESTONEDOJI(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_88CDLGRAVESTONEDOJI[] = " 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_8c_ta_lib_89CDLGRAVESTONEDOJI = {"CDLGRAVESTONEDOJI", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_89CDLGRAVESTONEDOJI, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_88CDLGRAVESTONEDOJI}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_89CDLGRAVESTONEDOJI(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(2, 3148, __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(2, 3148, __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(2, 3148, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "CDLGRAVESTONEDOJI") < 0)) __PYX_ERR(2, 3148, __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(2, 3148, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 3148, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(2, 3148, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(2, 3148, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(2, 3148, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_88CDLGRAVESTONEDOJI(__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_8c_ta_lib_88CDLGRAVESTONEDOJI(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; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + 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; + PyArrayObject *__pyx_v_outinteger = 0; + int *__pyx_v_outinteger_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __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/_func.pxi":3171 + * np.ndarray outinteger + * int* outinteger_data + * 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/_func.pxi":3172 + * int* outinteger_data + * 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__388, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3172, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 3172, __pyx_L1_error) + + /* "talib/_func.pxi":3171 + * np.ndarray outinteger + * int* outinteger_data + * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("open is not double") + * if open.ndim != 1: + */ + } + + /* "talib/_func.pxi":3173 + * 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/_func.pxi":3174 + * 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__389, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3174, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 3174, __pyx_L1_error) + + /* "talib/_func.pxi":3173 + * 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/_func.pxi":3175 + * 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 = open.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":3176 + * raise Exception("open has wrong dimensions") + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3176, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 3176, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":3175 + * 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 = open.data + */ + } + + /* "talib/_func.pxi":3177 + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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/_func.pxi":3178 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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/_func.pxi":3179 + * open_data = 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__390, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 3179, __pyx_L1_error) + + /* "talib/_func.pxi":3178 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_func.pxi":3180 + * 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/_func.pxi":3181 + * raise 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__391, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 3181, __pyx_L1_error) + + /* "talib/_func.pxi":3180 + * 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/_func.pxi":3182 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":3183 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3183, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 3183, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":3182 + * 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 = high.data + */ + } + + /* "talib/_func.pxi":3184 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":3185 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":3186 + * high_data = 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__392, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3186, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 3186, __pyx_L1_error) + + /* "talib/_func.pxi":3185 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_func.pxi":3187 + * 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/_func.pxi":3188 + * raise 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__393, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3188, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 3188, __pyx_L1_error) + + /* "talib/_func.pxi":3187 + * 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/_func.pxi":3189 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":3190 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3190, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 3190, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":3189 + * 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 = low.data + */ + } + + /* "talib/_func.pxi":3191 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":3192 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":3193 + * low_data = 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__394, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3193, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 3193, __pyx_L1_error) + + /* "talib/_func.pxi":3192 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_func.pxi":3194 + * 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/_func.pxi":3195 + * raise 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__395, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3195, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 3195, __pyx_L1_error) + + /* "talib/_func.pxi":3194 + * 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/_func.pxi":3196 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":3197 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = open.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3197, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 3197, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":3196 + * 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 = close.data + */ + } + + /* "talib/_func.pxi":3198 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = open.shape[0] + * if length != high.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_func.pxi":3199 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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/_func.pxi":3200 + * close_data = 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/_func.pxi":3201 + * 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__396, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3201, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 3201, __pyx_L1_error) + + /* "talib/_func.pxi":3200 + * close_data = close.data + * length = open.shape[0] + * if length != high.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != low.shape[0]: + */ + } + + /* "talib/_func.pxi":3202 + * 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/_func.pxi":3203 + * 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__397, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3203, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 3203, __pyx_L1_error) + + /* "talib/_func.pxi":3202 + * 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/_func.pxi":3204 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":3205 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__398, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3205, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 3205, __pyx_L1_error) + + /* "talib/_func.pxi":3204 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + } + + /* "talib/_func.pxi":3206 + * if length != close.shape[0]: + * raise Exception("input lengths are different") + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = open_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":3207 + * raise Exception("input lengths are different") + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = open_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":3208 + * begidx = 0 + * for i from 0 <= i < length: + * val = open_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_open_data[__pyx_v_i]); + + /* "talib/_func.pxi":3209 + * for i from 0 <= i < length: + * val = open_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = high_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":3210 + * val = open_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = high_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":3209 + * for i from 0 <= i < length: + * val = open_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = high_data[i] + */ + } + + /* "talib/_func.pxi":3211 + * if val != val: + * continue + * val = high_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); + + /* "talib/_func.pxi":3212 + * continue + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":3213 + * val = high_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = low_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":3212 + * continue + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + } + + /* "talib/_func.pxi":3214 + * if val != val: + * continue + * val = low_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); + + /* "talib/_func.pxi":3215 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":3216 + * val = low_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = close_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":3215 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + } + + /* "talib/_func.pxi":3217 + * if val != val: + * continue + * val = close_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); + + /* "talib/_func.pxi":3218 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":3219 + * val = close_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":3218 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":3220 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":3221 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L19_break; + __pyx_L18_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":3223 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLGRAVESTONEDOJI_Lookback( ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__399, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 3223, __pyx_L1_error) + } + __pyx_L19_break:; + + /* "talib/_func.pxi":3224 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_CDLGRAVESTONEDOJI_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":3225 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLGRAVESTONEDOJI_Lookback( ) # <<<<<<<<<<<<<< + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_CDLGRAVESTONEDOJI_Lookback()); + + /* "talib/_func.pxi":3226 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLGRAVESTONEDOJI_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3226, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 3226, __pyx_L1_error) + __pyx_v_outinteger = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":3227 + * lookback = begidx + lib.TA_CDLGRAVESTONEDOJI_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 + */ + __pyx_v_outinteger_data = ((int *)__pyx_v_outinteger->data); + + /* "talib/_func.pxi":3228 + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLGRAVESTONEDOJI( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":3229 + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 # <<<<<<<<<<<<<< + * retCode = lib.TA_CDLGRAVESTONEDOJI( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLGRAVESTONEDOJI", retCode) + */ + (__pyx_v_outinteger_data[__pyx_v_i]) = 0; + } + + /* "talib/_func.pxi":3230 + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLGRAVESTONEDOJI( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_CDLGRAVESTONEDOJI", retCode) + * return outinteger + */ + __pyx_v_retCode = TA_CDLGRAVESTONEDOJI(0, __pyx_v_endidx, ((double *)(__pyx_v_open_data + __pyx_v_begidx)), ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outinteger_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":3231 + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLGRAVESTONEDOJI( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLGRAVESTONEDOJI", retCode) # <<<<<<<<<<<<<< + * return outinteger + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CDLGRAVESTONEDOJI, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3231, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":3232 + * retCode = lib.TA_CDLGRAVESTONEDOJI( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLGRAVESTONEDOJI", retCode) + * return outinteger # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outinteger)); + __pyx_r = ((PyObject *)__pyx_v_outinteger); + goto __pyx_L0; + + /* "talib/_func.pxi":3148 + * @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.c_ta_lib.CDLGRAVESTONEDOJI", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outinteger); + __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/_func.pxi":3236 + * @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_8c_ta_lib_91CDLHAMMER(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_90CDLHAMMER[] = " 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_8c_ta_lib_91CDLHAMMER = {"CDLHAMMER", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_91CDLHAMMER, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_90CDLHAMMER}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_91CDLHAMMER(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(2, 3236, __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(2, 3236, __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(2, 3236, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "CDLHAMMER") < 0)) __PYX_ERR(2, 3236, __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(2, 3236, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 3236, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(2, 3236, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(2, 3236, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(2, 3236, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_90CDLHAMMER(__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_8c_ta_lib_90CDLHAMMER(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; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + 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; + PyArrayObject *__pyx_v_outinteger = 0; + int *__pyx_v_outinteger_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __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/_func.pxi":3259 + * np.ndarray outinteger + * int* outinteger_data + * 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/_func.pxi":3260 + * int* outinteger_data + * 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__400, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3260, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 3260, __pyx_L1_error) + + /* "talib/_func.pxi":3259 + * np.ndarray outinteger + * int* outinteger_data + * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("open is not double") + * if open.ndim != 1: + */ + } + + /* "talib/_func.pxi":3261 + * 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/_func.pxi":3262 + * 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__401, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3262, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 3262, __pyx_L1_error) + + /* "talib/_func.pxi":3261 + * 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/_func.pxi":3263 + * 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 = open.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":3264 + * raise Exception("open has wrong dimensions") + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3264, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 3264, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":3263 + * 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 = open.data + */ + } + + /* "talib/_func.pxi":3265 + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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/_func.pxi":3266 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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/_func.pxi":3267 + * open_data = 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__402, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3267, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 3267, __pyx_L1_error) + + /* "talib/_func.pxi":3266 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_func.pxi":3268 + * 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/_func.pxi":3269 + * raise 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__403, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3269, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 3269, __pyx_L1_error) + + /* "talib/_func.pxi":3268 + * 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/_func.pxi":3270 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":3271 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3271, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 3271, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":3270 + * 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 = high.data + */ + } + + /* "talib/_func.pxi":3272 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":3273 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":3274 + * high_data = 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__404, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3274, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 3274, __pyx_L1_error) + + /* "talib/_func.pxi":3273 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_func.pxi":3275 + * 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/_func.pxi":3276 + * raise 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__405, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3276, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 3276, __pyx_L1_error) + + /* "talib/_func.pxi":3275 + * 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/_func.pxi":3277 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":3278 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3278, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 3278, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":3277 + * 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 = low.data + */ + } + + /* "talib/_func.pxi":3279 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":3280 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":3281 + * low_data = 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__406, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3281, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 3281, __pyx_L1_error) + + /* "talib/_func.pxi":3280 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_func.pxi":3282 + * 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/_func.pxi":3283 + * raise 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__407, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3283, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 3283, __pyx_L1_error) + + /* "talib/_func.pxi":3282 + * 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/_func.pxi":3284 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":3285 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = open.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3285, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 3285, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":3284 + * 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 = close.data + */ + } + + /* "talib/_func.pxi":3286 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = open.shape[0] + * if length != high.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_func.pxi":3287 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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/_func.pxi":3288 + * close_data = 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/_func.pxi":3289 + * 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__408, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3289, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 3289, __pyx_L1_error) + + /* "talib/_func.pxi":3288 + * close_data = close.data + * length = open.shape[0] + * if length != high.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != low.shape[0]: + */ + } + + /* "talib/_func.pxi":3290 + * 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/_func.pxi":3291 + * 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__409, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3291, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 3291, __pyx_L1_error) + + /* "talib/_func.pxi":3290 + * 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/_func.pxi":3292 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":3293 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__410, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3293, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 3293, __pyx_L1_error) + + /* "talib/_func.pxi":3292 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + } + + /* "talib/_func.pxi":3294 + * if length != close.shape[0]: + * raise Exception("input lengths are different") + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = open_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":3295 + * raise Exception("input lengths are different") + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = open_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":3296 + * begidx = 0 + * for i from 0 <= i < length: + * val = open_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_open_data[__pyx_v_i]); + + /* "talib/_func.pxi":3297 + * for i from 0 <= i < length: + * val = open_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = high_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":3298 + * val = open_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = high_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":3297 + * for i from 0 <= i < length: + * val = open_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = high_data[i] + */ + } + + /* "talib/_func.pxi":3299 + * if val != val: + * continue + * val = high_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); + + /* "talib/_func.pxi":3300 + * continue + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":3301 + * val = high_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = low_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":3300 + * continue + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + } + + /* "talib/_func.pxi":3302 + * if val != val: + * continue + * val = low_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); + + /* "talib/_func.pxi":3303 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":3304 + * val = low_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = close_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":3303 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + } + + /* "talib/_func.pxi":3305 + * if val != val: + * continue + * val = close_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); + + /* "talib/_func.pxi":3306 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":3307 + * val = close_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":3306 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":3308 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":3309 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L19_break; + __pyx_L18_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":3311 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLHAMMER_Lookback( ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__411, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 3311, __pyx_L1_error) + } + __pyx_L19_break:; + + /* "talib/_func.pxi":3312 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_CDLHAMMER_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":3313 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLHAMMER_Lookback( ) # <<<<<<<<<<<<<< + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_CDLHAMMER_Lookback()); + + /* "talib/_func.pxi":3314 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLHAMMER_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3314, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 3314, __pyx_L1_error) + __pyx_v_outinteger = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":3315 + * lookback = begidx + lib.TA_CDLHAMMER_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 + */ + __pyx_v_outinteger_data = ((int *)__pyx_v_outinteger->data); + + /* "talib/_func.pxi":3316 + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLHAMMER( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":3317 + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 # <<<<<<<<<<<<<< + * retCode = lib.TA_CDLHAMMER( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLHAMMER", retCode) + */ + (__pyx_v_outinteger_data[__pyx_v_i]) = 0; + } + + /* "talib/_func.pxi":3318 + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLHAMMER( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_CDLHAMMER", retCode) + * return outinteger + */ + __pyx_v_retCode = TA_CDLHAMMER(0, __pyx_v_endidx, ((double *)(__pyx_v_open_data + __pyx_v_begidx)), ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outinteger_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":3319 + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLHAMMER( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLHAMMER", retCode) # <<<<<<<<<<<<<< + * return outinteger + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CDLHAMMER, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3319, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":3320 + * retCode = lib.TA_CDLHAMMER( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLHAMMER", retCode) + * return outinteger # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outinteger)); + __pyx_r = ((PyObject *)__pyx_v_outinteger); + goto __pyx_L0; + + /* "talib/_func.pxi":3236 + * @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.c_ta_lib.CDLHAMMER", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outinteger); + __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/_func.pxi":3324 + * @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_8c_ta_lib_93CDLHANGINGMAN(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_92CDLHANGINGMAN[] = " 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_8c_ta_lib_93CDLHANGINGMAN = {"CDLHANGINGMAN", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_93CDLHANGINGMAN, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_92CDLHANGINGMAN}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_93CDLHANGINGMAN(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(2, 3324, __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(2, 3324, __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(2, 3324, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "CDLHANGINGMAN") < 0)) __PYX_ERR(2, 3324, __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(2, 3324, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 3324, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(2, 3324, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(2, 3324, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(2, 3324, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_92CDLHANGINGMAN(__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_8c_ta_lib_92CDLHANGINGMAN(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; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + 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; + PyArrayObject *__pyx_v_outinteger = 0; + int *__pyx_v_outinteger_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __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/_func.pxi":3347 + * np.ndarray outinteger + * int* outinteger_data + * 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/_func.pxi":3348 + * int* outinteger_data + * 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__412, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3348, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 3348, __pyx_L1_error) + + /* "talib/_func.pxi":3347 + * np.ndarray outinteger + * int* outinteger_data + * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("open is not double") + * if open.ndim != 1: + */ + } + + /* "talib/_func.pxi":3349 + * 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/_func.pxi":3350 + * 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__413, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3350, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 3350, __pyx_L1_error) + + /* "talib/_func.pxi":3349 + * 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/_func.pxi":3351 + * 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 = open.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":3352 + * raise Exception("open has wrong dimensions") + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3352, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 3352, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":3351 + * 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 = open.data + */ + } + + /* "talib/_func.pxi":3353 + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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/_func.pxi":3354 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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/_func.pxi":3355 + * open_data = 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__414, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3355, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 3355, __pyx_L1_error) + + /* "talib/_func.pxi":3354 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_func.pxi":3356 + * 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/_func.pxi":3357 + * raise 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__415, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3357, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 3357, __pyx_L1_error) + + /* "talib/_func.pxi":3356 + * 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/_func.pxi":3358 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":3359 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3359, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 3359, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":3358 + * 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 = high.data + */ + } + + /* "talib/_func.pxi":3360 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":3361 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":3362 + * high_data = 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__416, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3362, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 3362, __pyx_L1_error) + + /* "talib/_func.pxi":3361 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_func.pxi":3363 + * 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/_func.pxi":3364 + * raise 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__417, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3364, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 3364, __pyx_L1_error) + + /* "talib/_func.pxi":3363 + * 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/_func.pxi":3365 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":3366 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3366, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 3366, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":3365 + * 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 = low.data + */ + } + + /* "talib/_func.pxi":3367 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":3368 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":3369 + * low_data = 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__418, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3369, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 3369, __pyx_L1_error) + + /* "talib/_func.pxi":3368 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_func.pxi":3370 + * 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/_func.pxi":3371 + * raise 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__419, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 3371, __pyx_L1_error) + + /* "talib/_func.pxi":3370 + * 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/_func.pxi":3372 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":3373 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = open.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3373, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 3373, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":3372 + * 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 = close.data + */ + } + + /* "talib/_func.pxi":3374 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = open.shape[0] + * if length != high.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_func.pxi":3375 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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/_func.pxi":3376 + * close_data = 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/_func.pxi":3377 + * 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__420, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3377, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 3377, __pyx_L1_error) + + /* "talib/_func.pxi":3376 + * close_data = close.data + * length = open.shape[0] + * if length != high.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != low.shape[0]: + */ + } + + /* "talib/_func.pxi":3378 + * 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/_func.pxi":3379 + * 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__421, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3379, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 3379, __pyx_L1_error) + + /* "talib/_func.pxi":3378 + * 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/_func.pxi":3380 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":3381 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__422, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3381, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 3381, __pyx_L1_error) + + /* "talib/_func.pxi":3380 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + } + + /* "talib/_func.pxi":3382 + * if length != close.shape[0]: + * raise Exception("input lengths are different") + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = open_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":3383 + * raise Exception("input lengths are different") + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = open_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":3384 + * begidx = 0 + * for i from 0 <= i < length: + * val = open_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_open_data[__pyx_v_i]); + + /* "talib/_func.pxi":3385 + * for i from 0 <= i < length: + * val = open_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = high_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":3386 + * val = open_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = high_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":3385 + * for i from 0 <= i < length: + * val = open_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = high_data[i] + */ + } + + /* "talib/_func.pxi":3387 + * if val != val: + * continue + * val = high_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); + + /* "talib/_func.pxi":3388 + * continue + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":3389 + * val = high_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = low_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":3388 + * continue + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + } + + /* "talib/_func.pxi":3390 + * if val != val: + * continue + * val = low_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); + + /* "talib/_func.pxi":3391 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":3392 + * val = low_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = close_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":3391 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + } + + /* "talib/_func.pxi":3393 + * if val != val: + * continue + * val = close_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); + + /* "talib/_func.pxi":3394 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":3395 + * val = close_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":3394 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":3396 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":3397 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L19_break; + __pyx_L18_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":3399 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLHANGINGMAN_Lookback( ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__423, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3399, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 3399, __pyx_L1_error) + } + __pyx_L19_break:; + + /* "talib/_func.pxi":3400 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_CDLHANGINGMAN_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":3401 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLHANGINGMAN_Lookback( ) # <<<<<<<<<<<<<< + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_CDLHANGINGMAN_Lookback()); + + /* "talib/_func.pxi":3402 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLHANGINGMAN_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3402, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 3402, __pyx_L1_error) + __pyx_v_outinteger = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":3403 + * lookback = begidx + lib.TA_CDLHANGINGMAN_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 + */ + __pyx_v_outinteger_data = ((int *)__pyx_v_outinteger->data); + + /* "talib/_func.pxi":3404 + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLHANGINGMAN( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":3405 + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 # <<<<<<<<<<<<<< + * retCode = lib.TA_CDLHANGINGMAN( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLHANGINGMAN", retCode) + */ + (__pyx_v_outinteger_data[__pyx_v_i]) = 0; + } + + /* "talib/_func.pxi":3406 + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLHANGINGMAN( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_CDLHANGINGMAN", retCode) + * return outinteger + */ + __pyx_v_retCode = TA_CDLHANGINGMAN(0, __pyx_v_endidx, ((double *)(__pyx_v_open_data + __pyx_v_begidx)), ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outinteger_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":3407 + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLHANGINGMAN( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLHANGINGMAN", retCode) # <<<<<<<<<<<<<< + * return outinteger + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CDLHANGINGMAN, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3407, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":3408 + * retCode = lib.TA_CDLHANGINGMAN( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLHANGINGMAN", retCode) + * return outinteger # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outinteger)); + __pyx_r = ((PyObject *)__pyx_v_outinteger); + goto __pyx_L0; + + /* "talib/_func.pxi":3324 + * @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.c_ta_lib.CDLHANGINGMAN", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outinteger); + __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/_func.pxi":3412 + * @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_8c_ta_lib_95CDLHARAMI(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_94CDLHARAMI[] = " 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_8c_ta_lib_95CDLHARAMI = {"CDLHARAMI", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_95CDLHARAMI, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_94CDLHARAMI}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_95CDLHARAMI(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(2, 3412, __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(2, 3412, __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(2, 3412, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "CDLHARAMI") < 0)) __PYX_ERR(2, 3412, __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(2, 3412, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 3412, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(2, 3412, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(2, 3412, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(2, 3412, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_94CDLHARAMI(__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_8c_ta_lib_94CDLHARAMI(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; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + 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; + PyArrayObject *__pyx_v_outinteger = 0; + int *__pyx_v_outinteger_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __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/_func.pxi":3435 + * np.ndarray outinteger + * int* outinteger_data + * 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/_func.pxi":3436 + * int* outinteger_data + * 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__424, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3436, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 3436, __pyx_L1_error) + + /* "talib/_func.pxi":3435 + * np.ndarray outinteger + * int* outinteger_data + * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("open is not double") + * if open.ndim != 1: + */ + } + + /* "talib/_func.pxi":3437 + * 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/_func.pxi":3438 + * 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__425, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3438, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 3438, __pyx_L1_error) + + /* "talib/_func.pxi":3437 + * 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/_func.pxi":3439 + * 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 = open.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":3440 + * raise Exception("open has wrong dimensions") + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3440, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 3440, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":3439 + * 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 = open.data + */ + } + + /* "talib/_func.pxi":3441 + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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/_func.pxi":3442 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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/_func.pxi":3443 + * open_data = 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__426, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3443, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 3443, __pyx_L1_error) + + /* "talib/_func.pxi":3442 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_func.pxi":3444 + * 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/_func.pxi":3445 + * raise 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__427, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3445, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 3445, __pyx_L1_error) + + /* "talib/_func.pxi":3444 + * 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/_func.pxi":3446 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":3447 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3447, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 3447, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":3446 + * 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 = high.data + */ + } + + /* "talib/_func.pxi":3448 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":3449 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":3450 + * high_data = 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__428, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3450, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 3450, __pyx_L1_error) + + /* "talib/_func.pxi":3449 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_func.pxi":3451 + * 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/_func.pxi":3452 + * raise 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__429, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3452, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 3452, __pyx_L1_error) + + /* "talib/_func.pxi":3451 + * 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/_func.pxi":3453 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":3454 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3454, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 3454, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":3453 + * 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 = low.data + */ + } + + /* "talib/_func.pxi":3455 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":3456 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":3457 + * low_data = 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__430, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3457, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 3457, __pyx_L1_error) + + /* "talib/_func.pxi":3456 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_func.pxi":3458 + * 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/_func.pxi":3459 + * raise 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__431, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3459, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 3459, __pyx_L1_error) + + /* "talib/_func.pxi":3458 + * 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/_func.pxi":3460 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":3461 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = open.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3461, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 3461, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":3460 + * 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 = close.data + */ + } + + /* "talib/_func.pxi":3462 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = open.shape[0] + * if length != high.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_func.pxi":3463 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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/_func.pxi":3464 + * close_data = 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/_func.pxi":3465 + * 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__432, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3465, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 3465, __pyx_L1_error) + + /* "talib/_func.pxi":3464 + * close_data = close.data + * length = open.shape[0] + * if length != high.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != low.shape[0]: + */ + } + + /* "talib/_func.pxi":3466 + * 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/_func.pxi":3467 + * 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__433, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3467, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 3467, __pyx_L1_error) + + /* "talib/_func.pxi":3466 + * 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/_func.pxi":3468 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":3469 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__434, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3469, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 3469, __pyx_L1_error) + + /* "talib/_func.pxi":3468 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + } + + /* "talib/_func.pxi":3470 + * if length != close.shape[0]: + * raise Exception("input lengths are different") + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = open_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":3471 + * raise Exception("input lengths are different") + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = open_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":3472 + * begidx = 0 + * for i from 0 <= i < length: + * val = open_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_open_data[__pyx_v_i]); + + /* "talib/_func.pxi":3473 + * for i from 0 <= i < length: + * val = open_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = high_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":3474 + * val = open_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = high_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":3473 + * for i from 0 <= i < length: + * val = open_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = high_data[i] + */ + } + + /* "talib/_func.pxi":3475 + * if val != val: + * continue + * val = high_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); + + /* "talib/_func.pxi":3476 + * continue + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":3477 + * val = high_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = low_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":3476 + * continue + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + } + + /* "talib/_func.pxi":3478 + * if val != val: + * continue + * val = low_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); + + /* "talib/_func.pxi":3479 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":3480 + * val = low_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = close_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":3479 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + } + + /* "talib/_func.pxi":3481 + * if val != val: + * continue + * val = close_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); + + /* "talib/_func.pxi":3482 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":3483 + * val = close_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":3482 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":3484 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":3485 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L19_break; + __pyx_L18_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":3487 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLHARAMI_Lookback( ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__435, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3487, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 3487, __pyx_L1_error) + } + __pyx_L19_break:; + + /* "talib/_func.pxi":3488 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_CDLHARAMI_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":3489 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLHARAMI_Lookback( ) # <<<<<<<<<<<<<< + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_CDLHARAMI_Lookback()); + + /* "talib/_func.pxi":3490 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLHARAMI_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3490, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 3490, __pyx_L1_error) + __pyx_v_outinteger = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":3491 + * lookback = begidx + lib.TA_CDLHARAMI_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 + */ + __pyx_v_outinteger_data = ((int *)__pyx_v_outinteger->data); + + /* "talib/_func.pxi":3492 + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLHARAMI( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":3493 + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 # <<<<<<<<<<<<<< + * retCode = lib.TA_CDLHARAMI( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLHARAMI", retCode) + */ + (__pyx_v_outinteger_data[__pyx_v_i]) = 0; + } + + /* "talib/_func.pxi":3494 + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLHARAMI( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_CDLHARAMI", retCode) + * return outinteger + */ + __pyx_v_retCode = TA_CDLHARAMI(0, __pyx_v_endidx, ((double *)(__pyx_v_open_data + __pyx_v_begidx)), ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outinteger_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":3495 + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLHARAMI( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLHARAMI", retCode) # <<<<<<<<<<<<<< + * return outinteger + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CDLHARAMI, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3495, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":3496 + * retCode = lib.TA_CDLHARAMI( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLHARAMI", retCode) + * return outinteger # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outinteger)); + __pyx_r = ((PyObject *)__pyx_v_outinteger); + goto __pyx_L0; + + /* "talib/_func.pxi":3412 + * @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.c_ta_lib.CDLHARAMI", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outinteger); + __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/_func.pxi":3500 + * @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_8c_ta_lib_97CDLHARAMICROSS(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_96CDLHARAMICROSS[] = " 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_8c_ta_lib_97CDLHARAMICROSS = {"CDLHARAMICROSS", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_97CDLHARAMICROSS, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_96CDLHARAMICROSS}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_97CDLHARAMICROSS(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(2, 3500, __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(2, 3500, __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(2, 3500, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "CDLHARAMICROSS") < 0)) __PYX_ERR(2, 3500, __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(2, 3500, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 3500, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(2, 3500, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(2, 3500, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(2, 3500, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_96CDLHARAMICROSS(__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_8c_ta_lib_96CDLHARAMICROSS(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; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + 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; + PyArrayObject *__pyx_v_outinteger = 0; + int *__pyx_v_outinteger_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __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/_func.pxi":3523 + * np.ndarray outinteger + * int* outinteger_data + * 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/_func.pxi":3524 + * int* outinteger_data + * 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__436, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3524, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 3524, __pyx_L1_error) + + /* "talib/_func.pxi":3523 + * np.ndarray outinteger + * int* outinteger_data + * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("open is not double") + * if open.ndim != 1: + */ + } + + /* "talib/_func.pxi":3525 + * 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/_func.pxi":3526 + * 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__437, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3526, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 3526, __pyx_L1_error) + + /* "talib/_func.pxi":3525 + * 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/_func.pxi":3527 + * 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 = open.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":3528 + * raise Exception("open has wrong dimensions") + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3528, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 3528, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":3527 + * 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 = open.data + */ + } + + /* "talib/_func.pxi":3529 + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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/_func.pxi":3530 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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/_func.pxi":3531 + * open_data = 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__438, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3531, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 3531, __pyx_L1_error) + + /* "talib/_func.pxi":3530 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_func.pxi":3532 + * 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/_func.pxi":3533 + * raise 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__439, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3533, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 3533, __pyx_L1_error) + + /* "talib/_func.pxi":3532 + * 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/_func.pxi":3534 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":3535 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3535, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 3535, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":3534 + * 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 = high.data + */ + } + + /* "talib/_func.pxi":3536 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":3537 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":3538 + * high_data = 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__440, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 3538, __pyx_L1_error) + + /* "talib/_func.pxi":3537 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_func.pxi":3539 + * 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/_func.pxi":3540 + * raise 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__441, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3540, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 3540, __pyx_L1_error) + + /* "talib/_func.pxi":3539 + * 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/_func.pxi":3541 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":3542 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3542, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 3542, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":3541 + * 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 = low.data + */ + } + + /* "talib/_func.pxi":3543 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":3544 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":3545 + * low_data = 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__442, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 3545, __pyx_L1_error) + + /* "talib/_func.pxi":3544 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_func.pxi":3546 + * 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/_func.pxi":3547 + * raise 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__443, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3547, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 3547, __pyx_L1_error) + + /* "talib/_func.pxi":3546 + * 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/_func.pxi":3548 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":3549 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = open.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3549, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 3549, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":3548 + * 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 = close.data + */ + } + + /* "talib/_func.pxi":3550 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = open.shape[0] + * if length != high.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_func.pxi":3551 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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/_func.pxi":3552 + * close_data = 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/_func.pxi":3553 + * 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__444, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3553, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 3553, __pyx_L1_error) + + /* "talib/_func.pxi":3552 + * close_data = close.data + * length = open.shape[0] + * if length != high.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != low.shape[0]: + */ + } + + /* "talib/_func.pxi":3554 + * 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/_func.pxi":3555 + * 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__445, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3555, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 3555, __pyx_L1_error) + + /* "talib/_func.pxi":3554 + * 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/_func.pxi":3556 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":3557 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__446, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 3557, __pyx_L1_error) + + /* "talib/_func.pxi":3556 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + } + + /* "talib/_func.pxi":3558 + * if length != close.shape[0]: + * raise Exception("input lengths are different") + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = open_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":3559 + * raise Exception("input lengths are different") + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = open_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":3560 + * begidx = 0 + * for i from 0 <= i < length: + * val = open_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_open_data[__pyx_v_i]); + + /* "talib/_func.pxi":3561 + * for i from 0 <= i < length: + * val = open_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = high_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":3562 + * val = open_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = high_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":3561 + * for i from 0 <= i < length: + * val = open_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = high_data[i] + */ + } + + /* "talib/_func.pxi":3563 + * if val != val: + * continue + * val = high_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); + + /* "talib/_func.pxi":3564 + * continue + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":3565 + * val = high_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = low_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":3564 + * continue + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + } + + /* "talib/_func.pxi":3566 + * if val != val: + * continue + * val = low_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); + + /* "talib/_func.pxi":3567 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":3568 + * val = low_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = close_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":3567 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + } + + /* "talib/_func.pxi":3569 + * if val != val: + * continue + * val = close_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); + + /* "talib/_func.pxi":3570 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":3571 + * val = close_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":3570 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":3572 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":3573 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L19_break; + __pyx_L18_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":3575 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLHARAMICROSS_Lookback( ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__447, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3575, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 3575, __pyx_L1_error) + } + __pyx_L19_break:; + + /* "talib/_func.pxi":3576 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_CDLHARAMICROSS_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":3577 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLHARAMICROSS_Lookback( ) # <<<<<<<<<<<<<< + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_CDLHARAMICROSS_Lookback()); + + /* "talib/_func.pxi":3578 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLHARAMICROSS_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3578, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 3578, __pyx_L1_error) + __pyx_v_outinteger = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":3579 + * lookback = begidx + lib.TA_CDLHARAMICROSS_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 + */ + __pyx_v_outinteger_data = ((int *)__pyx_v_outinteger->data); + + /* "talib/_func.pxi":3580 + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLHARAMICROSS( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":3581 + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 # <<<<<<<<<<<<<< + * retCode = lib.TA_CDLHARAMICROSS( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLHARAMICROSS", retCode) + */ + (__pyx_v_outinteger_data[__pyx_v_i]) = 0; + } + + /* "talib/_func.pxi":3582 + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLHARAMICROSS( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_CDLHARAMICROSS", retCode) + * return outinteger + */ + __pyx_v_retCode = TA_CDLHARAMICROSS(0, __pyx_v_endidx, ((double *)(__pyx_v_open_data + __pyx_v_begidx)), ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outinteger_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":3583 + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLHARAMICROSS( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLHARAMICROSS", retCode) # <<<<<<<<<<<<<< + * return outinteger + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CDLHARAMICROSS, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3583, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":3584 + * retCode = lib.TA_CDLHARAMICROSS( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLHARAMICROSS", retCode) + * return outinteger # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outinteger)); + __pyx_r = ((PyObject *)__pyx_v_outinteger); + goto __pyx_L0; + + /* "talib/_func.pxi":3500 + * @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.c_ta_lib.CDLHARAMICROSS", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outinteger); + __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/_func.pxi":3588 + * @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_8c_ta_lib_99CDLHIGHWAVE(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_98CDLHIGHWAVE[] = " 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_8c_ta_lib_99CDLHIGHWAVE = {"CDLHIGHWAVE", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_99CDLHIGHWAVE, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_98CDLHIGHWAVE}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_99CDLHIGHWAVE(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(2, 3588, __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(2, 3588, __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(2, 3588, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "CDLHIGHWAVE") < 0)) __PYX_ERR(2, 3588, __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(2, 3588, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 3588, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(2, 3588, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(2, 3588, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(2, 3588, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_98CDLHIGHWAVE(__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_8c_ta_lib_98CDLHIGHWAVE(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; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + 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; + PyArrayObject *__pyx_v_outinteger = 0; + int *__pyx_v_outinteger_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __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/_func.pxi":3611 + * np.ndarray outinteger + * int* outinteger_data + * 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/_func.pxi":3612 + * int* outinteger_data + * 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(2, 3612, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 3612, __pyx_L1_error) + + /* "talib/_func.pxi":3611 + * np.ndarray outinteger + * int* outinteger_data + * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("open is not double") + * if open.ndim != 1: + */ + } + + /* "talib/_func.pxi":3613 + * 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/_func.pxi":3614 + * 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(2, 3614, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 3614, __pyx_L1_error) + + /* "talib/_func.pxi":3613 + * 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/_func.pxi":3615 + * 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 = open.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":3616 + * raise Exception("open has wrong dimensions") + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3616, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 3616, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":3615 + * 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 = open.data + */ + } + + /* "talib/_func.pxi":3617 + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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/_func.pxi":3618 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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/_func.pxi":3619 + * open_data = 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(2, 3619, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 3619, __pyx_L1_error) + + /* "talib/_func.pxi":3618 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_func.pxi":3620 + * 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/_func.pxi":3621 + * raise 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(2, 3621, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 3621, __pyx_L1_error) + + /* "talib/_func.pxi":3620 + * 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/_func.pxi":3622 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":3623 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3623, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 3623, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":3622 + * 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 = high.data + */ + } + + /* "talib/_func.pxi":3624 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":3625 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":3626 + * high_data = 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(2, 3626, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 3626, __pyx_L1_error) + + /* "talib/_func.pxi":3625 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_func.pxi":3627 + * 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/_func.pxi":3628 + * raise 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(2, 3628, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 3628, __pyx_L1_error) + + /* "talib/_func.pxi":3627 + * 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/_func.pxi":3629 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":3630 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3630, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 3630, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":3629 + * 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 = low.data + */ + } + + /* "talib/_func.pxi":3631 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":3632 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":3633 + * low_data = 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(2, 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(2, 3633, __pyx_L1_error) + + /* "talib/_func.pxi":3632 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_func.pxi":3634 + * 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/_func.pxi":3635 + * raise 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(2, 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(2, 3635, __pyx_L1_error) + + /* "talib/_func.pxi":3634 + * 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/_func.pxi":3636 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":3637 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = open.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3637, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 3637, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":3636 + * 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 = close.data + */ + } + + /* "talib/_func.pxi":3638 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = open.shape[0] + * if length != high.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_func.pxi":3639 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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/_func.pxi":3640 + * close_data = 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/_func.pxi":3641 + * 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(2, 3641, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 3641, __pyx_L1_error) + + /* "talib/_func.pxi":3640 + * close_data = close.data + * length = open.shape[0] + * if length != high.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != low.shape[0]: + */ + } + + /* "talib/_func.pxi":3642 + * 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/_func.pxi":3643 + * 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(2, 3643, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 3643, __pyx_L1_error) + + /* "talib/_func.pxi":3642 + * 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/_func.pxi":3644 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":3645 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__458, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3645, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 3645, __pyx_L1_error) + + /* "talib/_func.pxi":3644 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + } + + /* "talib/_func.pxi":3646 + * if length != close.shape[0]: + * raise Exception("input lengths are different") + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = open_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":3647 + * raise Exception("input lengths are different") + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = open_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":3648 + * begidx = 0 + * for i from 0 <= i < length: + * val = open_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_open_data[__pyx_v_i]); + + /* "talib/_func.pxi":3649 + * for i from 0 <= i < length: + * val = open_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = high_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":3650 + * val = open_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = high_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":3649 + * for i from 0 <= i < length: + * val = open_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = high_data[i] + */ + } + + /* "talib/_func.pxi":3651 + * if val != val: + * continue + * val = high_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); + + /* "talib/_func.pxi":3652 + * continue + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":3653 + * val = high_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = low_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":3652 + * continue + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + } + + /* "talib/_func.pxi":3654 + * if val != val: + * continue + * val = low_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); + + /* "talib/_func.pxi":3655 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":3656 + * val = low_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = close_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":3655 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + } + + /* "talib/_func.pxi":3657 + * if val != val: + * continue + * val = close_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); + + /* "talib/_func.pxi":3658 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":3659 + * val = close_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":3658 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":3660 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":3661 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L19_break; + __pyx_L18_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":3663 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLHIGHWAVE_Lookback( ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__459, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3663, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 3663, __pyx_L1_error) + } + __pyx_L19_break:; + + /* "talib/_func.pxi":3664 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_CDLHIGHWAVE_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":3665 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLHIGHWAVE_Lookback( ) # <<<<<<<<<<<<<< + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_CDLHIGHWAVE_Lookback()); + + /* "talib/_func.pxi":3666 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLHIGHWAVE_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3666, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 3666, __pyx_L1_error) + __pyx_v_outinteger = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":3667 + * lookback = begidx + lib.TA_CDLHIGHWAVE_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 + */ + __pyx_v_outinteger_data = ((int *)__pyx_v_outinteger->data); + + /* "talib/_func.pxi":3668 + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLHIGHWAVE( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":3669 + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 # <<<<<<<<<<<<<< + * retCode = lib.TA_CDLHIGHWAVE( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLHIGHWAVE", retCode) + */ + (__pyx_v_outinteger_data[__pyx_v_i]) = 0; + } + + /* "talib/_func.pxi":3670 + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLHIGHWAVE( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_CDLHIGHWAVE", retCode) + * return outinteger + */ + __pyx_v_retCode = TA_CDLHIGHWAVE(0, __pyx_v_endidx, ((double *)(__pyx_v_open_data + __pyx_v_begidx)), ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outinteger_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":3671 + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLHIGHWAVE( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLHIGHWAVE", retCode) # <<<<<<<<<<<<<< + * return outinteger + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CDLHIGHWAVE, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3671, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":3672 + * retCode = lib.TA_CDLHIGHWAVE( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLHIGHWAVE", retCode) + * return outinteger # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outinteger)); + __pyx_r = ((PyObject *)__pyx_v_outinteger); + goto __pyx_L0; + + /* "talib/_func.pxi":3588 + * @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.c_ta_lib.CDLHIGHWAVE", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outinteger); + __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/_func.pxi":3676 + * @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_8c_ta_lib_101CDLHIKKAKE(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_100CDLHIKKAKE[] = " 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_8c_ta_lib_101CDLHIKKAKE = {"CDLHIKKAKE", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_101CDLHIKKAKE, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_100CDLHIKKAKE}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_101CDLHIKKAKE(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(2, 3676, __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(2, 3676, __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(2, 3676, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "CDLHIKKAKE") < 0)) __PYX_ERR(2, 3676, __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(2, 3676, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 3676, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(2, 3676, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(2, 3676, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(2, 3676, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_100CDLHIKKAKE(__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_8c_ta_lib_100CDLHIKKAKE(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; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + 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; + PyArrayObject *__pyx_v_outinteger = 0; + int *__pyx_v_outinteger_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __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/_func.pxi":3699 + * np.ndarray outinteger + * int* outinteger_data + * 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/_func.pxi":3700 + * int* outinteger_data + * 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__460, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3700, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 3700, __pyx_L1_error) + + /* "talib/_func.pxi":3699 + * np.ndarray outinteger + * int* outinteger_data + * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("open is not double") + * if open.ndim != 1: + */ + } + + /* "talib/_func.pxi":3701 + * 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/_func.pxi":3702 + * 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__461, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3702, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 3702, __pyx_L1_error) + + /* "talib/_func.pxi":3701 + * 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/_func.pxi":3703 + * 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 = open.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":3704 + * raise Exception("open has wrong dimensions") + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3704, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 3704, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":3703 + * 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 = open.data + */ + } + + /* "talib/_func.pxi":3705 + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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/_func.pxi":3706 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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/_func.pxi":3707 + * open_data = 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__462, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3707, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 3707, __pyx_L1_error) + + /* "talib/_func.pxi":3706 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_func.pxi":3708 + * 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/_func.pxi":3709 + * raise 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__463, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3709, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 3709, __pyx_L1_error) + + /* "talib/_func.pxi":3708 + * 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/_func.pxi":3710 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":3711 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3711, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 3711, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":3710 + * 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 = high.data + */ + } + + /* "talib/_func.pxi":3712 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":3713 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":3714 + * high_data = 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__464, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3714, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 3714, __pyx_L1_error) + + /* "talib/_func.pxi":3713 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_func.pxi":3715 + * 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/_func.pxi":3716 + * raise 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__465, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3716, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 3716, __pyx_L1_error) + + /* "talib/_func.pxi":3715 + * 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/_func.pxi":3717 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":3718 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3718, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 3718, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":3717 + * 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 = low.data + */ + } + + /* "talib/_func.pxi":3719 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":3720 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":3721 + * low_data = 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__466, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3721, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 3721, __pyx_L1_error) + + /* "talib/_func.pxi":3720 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_func.pxi":3722 + * 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/_func.pxi":3723 + * raise 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__467, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3723, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 3723, __pyx_L1_error) + + /* "talib/_func.pxi":3722 + * 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/_func.pxi":3724 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":3725 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = open.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3725, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 3725, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":3724 + * 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 = close.data + */ + } + + /* "talib/_func.pxi":3726 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = open.shape[0] + * if length != high.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_func.pxi":3727 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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/_func.pxi":3728 + * close_data = 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/_func.pxi":3729 + * 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__468, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3729, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 3729, __pyx_L1_error) + + /* "talib/_func.pxi":3728 + * close_data = close.data + * length = open.shape[0] + * if length != high.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != low.shape[0]: + */ + } + + /* "talib/_func.pxi":3730 + * 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/_func.pxi":3731 + * 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__469, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3731, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 3731, __pyx_L1_error) + + /* "talib/_func.pxi":3730 + * 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/_func.pxi":3732 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":3733 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__470, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3733, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 3733, __pyx_L1_error) + + /* "talib/_func.pxi":3732 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + } + + /* "talib/_func.pxi":3734 + * if length != close.shape[0]: + * raise Exception("input lengths are different") + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = open_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":3735 + * raise Exception("input lengths are different") + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = open_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":3736 + * begidx = 0 + * for i from 0 <= i < length: + * val = open_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_open_data[__pyx_v_i]); + + /* "talib/_func.pxi":3737 + * for i from 0 <= i < length: + * val = open_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = high_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":3738 + * val = open_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = high_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":3737 + * for i from 0 <= i < length: + * val = open_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = high_data[i] + */ + } + + /* "talib/_func.pxi":3739 + * if val != val: + * continue + * val = high_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); + + /* "talib/_func.pxi":3740 + * continue + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":3741 + * val = high_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = low_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":3740 + * continue + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + } + + /* "talib/_func.pxi":3742 + * if val != val: + * continue + * val = low_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); + + /* "talib/_func.pxi":3743 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":3744 + * val = low_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = close_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":3743 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + } + + /* "talib/_func.pxi":3745 + * if val != val: + * continue + * val = close_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); + + /* "talib/_func.pxi":3746 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":3747 + * val = close_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":3746 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":3748 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":3749 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L19_break; + __pyx_L18_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":3751 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLHIKKAKE_Lookback( ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__471, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3751, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 3751, __pyx_L1_error) + } + __pyx_L19_break:; + + /* "talib/_func.pxi":3752 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_CDLHIKKAKE_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":3753 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLHIKKAKE_Lookback( ) # <<<<<<<<<<<<<< + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_CDLHIKKAKE_Lookback()); + + /* "talib/_func.pxi":3754 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLHIKKAKE_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3754, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 3754, __pyx_L1_error) + __pyx_v_outinteger = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":3755 + * lookback = begidx + lib.TA_CDLHIKKAKE_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 + */ + __pyx_v_outinteger_data = ((int *)__pyx_v_outinteger->data); + + /* "talib/_func.pxi":3756 + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLHIKKAKE( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":3757 + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 # <<<<<<<<<<<<<< + * retCode = lib.TA_CDLHIKKAKE( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLHIKKAKE", retCode) + */ + (__pyx_v_outinteger_data[__pyx_v_i]) = 0; + } + + /* "talib/_func.pxi":3758 + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLHIKKAKE( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_CDLHIKKAKE", retCode) + * return outinteger + */ + __pyx_v_retCode = TA_CDLHIKKAKE(0, __pyx_v_endidx, ((double *)(__pyx_v_open_data + __pyx_v_begidx)), ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outinteger_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":3759 + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLHIKKAKE( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLHIKKAKE", retCode) # <<<<<<<<<<<<<< + * return outinteger + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CDLHIKKAKE, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3759, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":3760 + * retCode = lib.TA_CDLHIKKAKE( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLHIKKAKE", retCode) + * return outinteger # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outinteger)); + __pyx_r = ((PyObject *)__pyx_v_outinteger); + goto __pyx_L0; + + /* "talib/_func.pxi":3676 + * @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.c_ta_lib.CDLHIKKAKE", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outinteger); + __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/_func.pxi":3764 + * @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_8c_ta_lib_103CDLHIKKAKEMOD(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_102CDLHIKKAKEMOD[] = " 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_8c_ta_lib_103CDLHIKKAKEMOD = {"CDLHIKKAKEMOD", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_103CDLHIKKAKEMOD, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_102CDLHIKKAKEMOD}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_103CDLHIKKAKEMOD(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(2, 3764, __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(2, 3764, __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(2, 3764, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "CDLHIKKAKEMOD") < 0)) __PYX_ERR(2, 3764, __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(2, 3764, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 3764, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(2, 3764, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(2, 3764, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(2, 3764, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_102CDLHIKKAKEMOD(__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_8c_ta_lib_102CDLHIKKAKEMOD(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; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + 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; + PyArrayObject *__pyx_v_outinteger = 0; + int *__pyx_v_outinteger_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __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/_func.pxi":3787 + * np.ndarray outinteger + * int* outinteger_data + * 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/_func.pxi":3788 + * int* outinteger_data + * 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__472, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3788, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 3788, __pyx_L1_error) + + /* "talib/_func.pxi":3787 + * np.ndarray outinteger + * int* outinteger_data + * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("open is not double") + * if open.ndim != 1: + */ + } + + /* "talib/_func.pxi":3789 + * 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/_func.pxi":3790 + * 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__473, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3790, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 3790, __pyx_L1_error) + + /* "talib/_func.pxi":3789 + * 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/_func.pxi":3791 + * 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 = open.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":3792 + * raise Exception("open has wrong dimensions") + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3792, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 3792, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":3791 + * 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 = open.data + */ + } + + /* "talib/_func.pxi":3793 + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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/_func.pxi":3794 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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/_func.pxi":3795 + * open_data = 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__474, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3795, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 3795, __pyx_L1_error) + + /* "talib/_func.pxi":3794 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_func.pxi":3796 + * 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/_func.pxi":3797 + * raise 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__475, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3797, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 3797, __pyx_L1_error) + + /* "talib/_func.pxi":3796 + * 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/_func.pxi":3798 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":3799 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3799, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 3799, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":3798 + * 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 = high.data + */ + } + + /* "talib/_func.pxi":3800 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":3801 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":3802 + * high_data = 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__476, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3802, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 3802, __pyx_L1_error) + + /* "talib/_func.pxi":3801 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_func.pxi":3803 + * 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/_func.pxi":3804 + * raise 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__477, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3804, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 3804, __pyx_L1_error) + + /* "talib/_func.pxi":3803 + * 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/_func.pxi":3805 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":3806 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3806, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 3806, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":3805 + * 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 = low.data + */ + } + + /* "talib/_func.pxi":3807 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":3808 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":3809 + * low_data = 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__478, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3809, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 3809, __pyx_L1_error) + + /* "talib/_func.pxi":3808 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_func.pxi":3810 + * 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/_func.pxi":3811 + * raise 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__479, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3811, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 3811, __pyx_L1_error) + + /* "talib/_func.pxi":3810 + * 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/_func.pxi":3812 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":3813 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = open.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3813, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 3813, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":3812 + * 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 = close.data + */ + } + + /* "talib/_func.pxi":3814 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = open.shape[0] + * if length != high.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_func.pxi":3815 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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/_func.pxi":3816 + * close_data = 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/_func.pxi":3817 + * 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__480, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 3817, __pyx_L1_error) + + /* "talib/_func.pxi":3816 + * close_data = close.data + * length = open.shape[0] + * if length != high.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != low.shape[0]: + */ + } + + /* "talib/_func.pxi":3818 + * 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/_func.pxi":3819 + * 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__481, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 3819, __pyx_L1_error) + + /* "talib/_func.pxi":3818 + * 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/_func.pxi":3820 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":3821 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__482, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3821, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 3821, __pyx_L1_error) + + /* "talib/_func.pxi":3820 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + } + + /* "talib/_func.pxi":3822 + * if length != close.shape[0]: + * raise Exception("input lengths are different") + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = open_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":3823 + * raise Exception("input lengths are different") + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = open_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":3824 + * begidx = 0 + * for i from 0 <= i < length: + * val = open_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_open_data[__pyx_v_i]); + + /* "talib/_func.pxi":3825 + * for i from 0 <= i < length: + * val = open_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = high_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":3826 + * val = open_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = high_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":3825 + * for i from 0 <= i < length: + * val = open_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = high_data[i] + */ + } + + /* "talib/_func.pxi":3827 + * if val != val: + * continue + * val = high_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); + + /* "talib/_func.pxi":3828 + * continue + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":3829 + * val = high_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = low_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":3828 + * continue + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + } + + /* "talib/_func.pxi":3830 + * if val != val: + * continue + * val = low_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); + + /* "talib/_func.pxi":3831 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":3832 + * val = low_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = close_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":3831 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + } + + /* "talib/_func.pxi":3833 + * if val != val: + * continue + * val = close_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); + + /* "talib/_func.pxi":3834 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":3835 + * val = close_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":3834 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":3836 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":3837 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L19_break; + __pyx_L18_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":3839 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLHIKKAKEMOD_Lookback( ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__483, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3839, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 3839, __pyx_L1_error) + } + __pyx_L19_break:; + + /* "talib/_func.pxi":3840 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_CDLHIKKAKEMOD_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":3841 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLHIKKAKEMOD_Lookback( ) # <<<<<<<<<<<<<< + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_CDLHIKKAKEMOD_Lookback()); + + /* "talib/_func.pxi":3842 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLHIKKAKEMOD_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3842, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 3842, __pyx_L1_error) + __pyx_v_outinteger = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":3843 + * lookback = begidx + lib.TA_CDLHIKKAKEMOD_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 + */ + __pyx_v_outinteger_data = ((int *)__pyx_v_outinteger->data); + + /* "talib/_func.pxi":3844 + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLHIKKAKEMOD( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":3845 + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 # <<<<<<<<<<<<<< + * retCode = lib.TA_CDLHIKKAKEMOD( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLHIKKAKEMOD", retCode) + */ + (__pyx_v_outinteger_data[__pyx_v_i]) = 0; + } + + /* "talib/_func.pxi":3846 + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLHIKKAKEMOD( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_CDLHIKKAKEMOD", retCode) + * return outinteger + */ + __pyx_v_retCode = TA_CDLHIKKAKEMOD(0, __pyx_v_endidx, ((double *)(__pyx_v_open_data + __pyx_v_begidx)), ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outinteger_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":3847 + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLHIKKAKEMOD( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLHIKKAKEMOD", retCode) # <<<<<<<<<<<<<< + * return outinteger + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CDLHIKKAKEMOD, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3847, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":3848 + * retCode = lib.TA_CDLHIKKAKEMOD( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLHIKKAKEMOD", retCode) + * return outinteger # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outinteger)); + __pyx_r = ((PyObject *)__pyx_v_outinteger); + goto __pyx_L0; + + /* "talib/_func.pxi":3764 + * @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.c_ta_lib.CDLHIKKAKEMOD", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outinteger); + __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/_func.pxi":3852 + * @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_8c_ta_lib_105CDLHOMINGPIGEON(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_104CDLHOMINGPIGEON[] = " 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_8c_ta_lib_105CDLHOMINGPIGEON = {"CDLHOMINGPIGEON", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_105CDLHOMINGPIGEON, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_104CDLHOMINGPIGEON}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_105CDLHOMINGPIGEON(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(2, 3852, __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(2, 3852, __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(2, 3852, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "CDLHOMINGPIGEON") < 0)) __PYX_ERR(2, 3852, __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(2, 3852, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 3852, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(2, 3852, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(2, 3852, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(2, 3852, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_104CDLHOMINGPIGEON(__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_8c_ta_lib_104CDLHOMINGPIGEON(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; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + 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; + PyArrayObject *__pyx_v_outinteger = 0; + int *__pyx_v_outinteger_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __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/_func.pxi":3875 + * np.ndarray outinteger + * int* outinteger_data + * 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/_func.pxi":3876 + * int* outinteger_data + * 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__484, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 3876, __pyx_L1_error) + + /* "talib/_func.pxi":3875 + * np.ndarray outinteger + * int* outinteger_data + * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("open is not double") + * if open.ndim != 1: + */ + } + + /* "talib/_func.pxi":3877 + * 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/_func.pxi":3878 + * 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__485, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3878, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 3878, __pyx_L1_error) + + /* "talib/_func.pxi":3877 + * 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/_func.pxi":3879 + * 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 = open.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":3880 + * raise Exception("open has wrong dimensions") + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3880, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 3880, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":3879 + * 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 = open.data + */ + } + + /* "talib/_func.pxi":3881 + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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/_func.pxi":3882 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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/_func.pxi":3883 + * open_data = 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__486, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 3883, __pyx_L1_error) + + /* "talib/_func.pxi":3882 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_func.pxi":3884 + * 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/_func.pxi":3885 + * raise 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__487, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3885, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 3885, __pyx_L1_error) + + /* "talib/_func.pxi":3884 + * 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/_func.pxi":3886 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":3887 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3887, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 3887, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":3886 + * 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 = high.data + */ + } + + /* "talib/_func.pxi":3888 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":3889 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":3890 + * high_data = 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__488, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3890, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 3890, __pyx_L1_error) + + /* "talib/_func.pxi":3889 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_func.pxi":3891 + * 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/_func.pxi":3892 + * raise 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__489, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3892, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 3892, __pyx_L1_error) + + /* "talib/_func.pxi":3891 + * 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/_func.pxi":3893 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":3894 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3894, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 3894, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":3893 + * 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 = low.data + */ + } + + /* "talib/_func.pxi":3895 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":3896 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":3897 + * low_data = 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__490, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3897, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 3897, __pyx_L1_error) + + /* "talib/_func.pxi":3896 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_func.pxi":3898 + * 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/_func.pxi":3899 + * raise 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__491, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3899, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 3899, __pyx_L1_error) + + /* "talib/_func.pxi":3898 + * 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/_func.pxi":3900 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":3901 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = open.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3901, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 3901, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":3900 + * 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 = close.data + */ + } + + /* "talib/_func.pxi":3902 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = open.shape[0] + * if length != high.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_func.pxi":3903 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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/_func.pxi":3904 + * close_data = 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/_func.pxi":3905 + * 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__492, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3905, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 3905, __pyx_L1_error) + + /* "talib/_func.pxi":3904 + * close_data = close.data + * length = open.shape[0] + * if length != high.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != low.shape[0]: + */ + } + + /* "talib/_func.pxi":3906 + * 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/_func.pxi":3907 + * 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__493, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3907, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 3907, __pyx_L1_error) + + /* "talib/_func.pxi":3906 + * 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/_func.pxi":3908 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":3909 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__494, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3909, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 3909, __pyx_L1_error) + + /* "talib/_func.pxi":3908 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + } + + /* "talib/_func.pxi":3910 + * if length != close.shape[0]: + * raise Exception("input lengths are different") + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = open_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":3911 + * raise Exception("input lengths are different") + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = open_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":3912 + * begidx = 0 + * for i from 0 <= i < length: + * val = open_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_open_data[__pyx_v_i]); + + /* "talib/_func.pxi":3913 + * for i from 0 <= i < length: + * val = open_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = high_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":3914 + * val = open_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = high_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":3913 + * for i from 0 <= i < length: + * val = open_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = high_data[i] + */ + } + + /* "talib/_func.pxi":3915 + * if val != val: + * continue + * val = high_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); + + /* "talib/_func.pxi":3916 + * continue + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":3917 + * val = high_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = low_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":3916 + * continue + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + } + + /* "talib/_func.pxi":3918 + * if val != val: + * continue + * val = low_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); + + /* "talib/_func.pxi":3919 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":3920 + * val = low_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = close_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":3919 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + } + + /* "talib/_func.pxi":3921 + * if val != val: + * continue + * val = close_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); + + /* "talib/_func.pxi":3922 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":3923 + * val = close_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":3922 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":3924 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":3925 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L19_break; + __pyx_L18_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":3927 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLHOMINGPIGEON_Lookback( ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__495, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3927, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 3927, __pyx_L1_error) + } + __pyx_L19_break:; + + /* "talib/_func.pxi":3928 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_CDLHOMINGPIGEON_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":3929 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLHOMINGPIGEON_Lookback( ) # <<<<<<<<<<<<<< + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_CDLHOMINGPIGEON_Lookback()); + + /* "talib/_func.pxi":3930 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLHOMINGPIGEON_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3930, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 3930, __pyx_L1_error) + __pyx_v_outinteger = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":3931 + * lookback = begidx + lib.TA_CDLHOMINGPIGEON_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 + */ + __pyx_v_outinteger_data = ((int *)__pyx_v_outinteger->data); + + /* "talib/_func.pxi":3932 + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLHOMINGPIGEON( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":3933 + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 # <<<<<<<<<<<<<< + * retCode = lib.TA_CDLHOMINGPIGEON( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLHOMINGPIGEON", retCode) + */ + (__pyx_v_outinteger_data[__pyx_v_i]) = 0; + } + + /* "talib/_func.pxi":3934 + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLHOMINGPIGEON( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_CDLHOMINGPIGEON", retCode) + * return outinteger + */ + __pyx_v_retCode = TA_CDLHOMINGPIGEON(0, __pyx_v_endidx, ((double *)(__pyx_v_open_data + __pyx_v_begidx)), ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outinteger_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":3935 + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLHOMINGPIGEON( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLHOMINGPIGEON", retCode) # <<<<<<<<<<<<<< + * return outinteger + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CDLHOMINGPIGEON, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3935, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":3936 + * retCode = lib.TA_CDLHOMINGPIGEON( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLHOMINGPIGEON", retCode) + * return outinteger # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outinteger)); + __pyx_r = ((PyObject *)__pyx_v_outinteger); + goto __pyx_L0; + + /* "talib/_func.pxi":3852 + * @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.c_ta_lib.CDLHOMINGPIGEON", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outinteger); + __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/_func.pxi":3940 + * @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_8c_ta_lib_107CDLIDENTICAL3CROWS(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_106CDLIDENTICAL3CROWS[] = " 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_8c_ta_lib_107CDLIDENTICAL3CROWS = {"CDLIDENTICAL3CROWS", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_107CDLIDENTICAL3CROWS, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_106CDLIDENTICAL3CROWS}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_107CDLIDENTICAL3CROWS(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(2, 3940, __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(2, 3940, __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(2, 3940, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "CDLIDENTICAL3CROWS") < 0)) __PYX_ERR(2, 3940, __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(2, 3940, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 3940, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(2, 3940, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(2, 3940, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(2, 3940, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_106CDLIDENTICAL3CROWS(__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_8c_ta_lib_106CDLIDENTICAL3CROWS(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; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + 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; + PyArrayObject *__pyx_v_outinteger = 0; + int *__pyx_v_outinteger_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __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/_func.pxi":3963 + * np.ndarray outinteger + * int* outinteger_data + * 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/_func.pxi":3964 + * int* outinteger_data + * 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__496, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3964, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 3964, __pyx_L1_error) + + /* "talib/_func.pxi":3963 + * np.ndarray outinteger + * int* outinteger_data + * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("open is not double") + * if open.ndim != 1: + */ + } + + /* "talib/_func.pxi":3965 + * 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/_func.pxi":3966 + * 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__497, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3966, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 3966, __pyx_L1_error) + + /* "talib/_func.pxi":3965 + * 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/_func.pxi":3967 + * 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 = open.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":3968 + * raise Exception("open has wrong dimensions") + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3968, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 3968, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":3967 + * 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 = open.data + */ + } + + /* "talib/_func.pxi":3969 + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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/_func.pxi":3970 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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/_func.pxi":3971 + * open_data = 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__498, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3971, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 3971, __pyx_L1_error) + + /* "talib/_func.pxi":3970 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_func.pxi":3972 + * 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/_func.pxi":3973 + * raise 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__499, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3973, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 3973, __pyx_L1_error) + + /* "talib/_func.pxi":3972 + * 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/_func.pxi":3974 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":3975 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3975, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 3975, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":3974 + * 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 = high.data + */ + } + + /* "talib/_func.pxi":3976 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":3977 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":3978 + * high_data = 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__500, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3978, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 3978, __pyx_L1_error) + + /* "talib/_func.pxi":3977 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_func.pxi":3979 + * 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/_func.pxi":3980 + * raise 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__501, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3980, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 3980, __pyx_L1_error) + + /* "talib/_func.pxi":3979 + * 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/_func.pxi":3981 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":3982 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3982, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 3982, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":3981 + * 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 = low.data + */ + } + + /* "talib/_func.pxi":3983 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":3984 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":3985 + * low_data = 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__502, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3985, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 3985, __pyx_L1_error) + + /* "talib/_func.pxi":3984 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_func.pxi":3986 + * 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/_func.pxi":3987 + * raise 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__503, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3987, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 3987, __pyx_L1_error) + + /* "talib/_func.pxi":3986 + * 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/_func.pxi":3988 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":3989 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = open.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3989, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 3989, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":3988 + * 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 = close.data + */ + } + + /* "talib/_func.pxi":3990 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = open.shape[0] + * if length != high.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_func.pxi":3991 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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/_func.pxi":3992 + * close_data = 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/_func.pxi":3993 + * 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__504, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3993, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 3993, __pyx_L1_error) + + /* "talib/_func.pxi":3992 + * close_data = close.data + * length = open.shape[0] + * if length != high.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != low.shape[0]: + */ + } + + /* "talib/_func.pxi":3994 + * 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/_func.pxi":3995 + * 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__505, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 3995, __pyx_L1_error) + + /* "talib/_func.pxi":3994 + * 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/_func.pxi":3996 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":3997 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__506, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 3997, __pyx_L1_error) + + /* "talib/_func.pxi":3996 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + } + + /* "talib/_func.pxi":3998 + * if length != close.shape[0]: + * raise Exception("input lengths are different") + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = open_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":3999 + * raise Exception("input lengths are different") + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = open_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":4000 + * begidx = 0 + * for i from 0 <= i < length: + * val = open_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_open_data[__pyx_v_i]); + + /* "talib/_func.pxi":4001 + * for i from 0 <= i < length: + * val = open_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = high_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":4002 + * val = open_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = high_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":4001 + * for i from 0 <= i < length: + * val = open_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = high_data[i] + */ + } + + /* "talib/_func.pxi":4003 + * if val != val: + * continue + * val = high_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); + + /* "talib/_func.pxi":4004 + * continue + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":4005 + * val = high_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = low_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":4004 + * continue + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + } + + /* "talib/_func.pxi":4006 + * if val != val: + * continue + * val = low_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); + + /* "talib/_func.pxi":4007 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":4008 + * val = low_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = close_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":4007 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + } + + /* "talib/_func.pxi":4009 + * if val != val: + * continue + * val = close_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); + + /* "talib/_func.pxi":4010 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":4011 + * val = close_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":4010 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":4012 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":4013 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L19_break; + __pyx_L18_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":4015 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLIDENTICAL3CROWS_Lookback( ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__507, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4015, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 4015, __pyx_L1_error) + } + __pyx_L19_break:; + + /* "talib/_func.pxi":4016 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_CDLIDENTICAL3CROWS_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":4017 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLIDENTICAL3CROWS_Lookback( ) # <<<<<<<<<<<<<< + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_CDLIDENTICAL3CROWS_Lookback()); + + /* "talib/_func.pxi":4018 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLIDENTICAL3CROWS_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4018, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 4018, __pyx_L1_error) + __pyx_v_outinteger = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":4019 + * lookback = begidx + lib.TA_CDLIDENTICAL3CROWS_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 + */ + __pyx_v_outinteger_data = ((int *)__pyx_v_outinteger->data); + + /* "talib/_func.pxi":4020 + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLIDENTICAL3CROWS( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":4021 + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 # <<<<<<<<<<<<<< + * retCode = lib.TA_CDLIDENTICAL3CROWS( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLIDENTICAL3CROWS", retCode) + */ + (__pyx_v_outinteger_data[__pyx_v_i]) = 0; + } + + /* "talib/_func.pxi":4022 + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLIDENTICAL3CROWS( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_CDLIDENTICAL3CROWS", retCode) + * return outinteger + */ + __pyx_v_retCode = TA_CDLIDENTICAL3CROWS(0, __pyx_v_endidx, ((double *)(__pyx_v_open_data + __pyx_v_begidx)), ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outinteger_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":4023 + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLIDENTICAL3CROWS( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLIDENTICAL3CROWS", retCode) # <<<<<<<<<<<<<< + * return outinteger + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CDLIDENTICAL3CROWS, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4023, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":4024 + * retCode = lib.TA_CDLIDENTICAL3CROWS( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLIDENTICAL3CROWS", retCode) + * return outinteger # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outinteger)); + __pyx_r = ((PyObject *)__pyx_v_outinteger); + goto __pyx_L0; + + /* "talib/_func.pxi":3940 + * @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.c_ta_lib.CDLIDENTICAL3CROWS", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outinteger); + __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/_func.pxi":4028 + * @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_8c_ta_lib_109CDLINNECK(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_108CDLINNECK[] = " 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_8c_ta_lib_109CDLINNECK = {"CDLINNECK", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_109CDLINNECK, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_108CDLINNECK}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_109CDLINNECK(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(2, 4028, __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(2, 4028, __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(2, 4028, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "CDLINNECK") < 0)) __PYX_ERR(2, 4028, __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(2, 4028, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 4028, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(2, 4028, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(2, 4028, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(2, 4028, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_108CDLINNECK(__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_8c_ta_lib_108CDLINNECK(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; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + 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; + PyArrayObject *__pyx_v_outinteger = 0; + int *__pyx_v_outinteger_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __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/_func.pxi":4051 + * np.ndarray outinteger + * int* outinteger_data + * 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/_func.pxi":4052 + * int* outinteger_data + * 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__508, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 4052, __pyx_L1_error) + + /* "talib/_func.pxi":4051 + * np.ndarray outinteger + * int* outinteger_data + * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("open is not double") + * if open.ndim != 1: + */ + } + + /* "talib/_func.pxi":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/_func.pxi":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__509, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 4054, __pyx_L1_error) + + /* "talib/_func.pxi":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/_func.pxi":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 = open.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":4056 + * raise Exception("open has wrong dimensions") + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 4056, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":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 = open.data + */ + } + + /* "talib/_func.pxi":4057 + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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/_func.pxi":4058 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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/_func.pxi":4059 + * open_data = 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__510, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 4059, __pyx_L1_error) + + /* "talib/_func.pxi":4058 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_func.pxi":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/_func.pxi":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__511, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 4061, __pyx_L1_error) + + /* "talib/_func.pxi":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/_func.pxi":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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":4063 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 4063, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":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 = high.data + */ + } + + /* "talib/_func.pxi":4064 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":4065 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":4066 + * high_data = 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__512, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 4066, __pyx_L1_error) + + /* "talib/_func.pxi":4065 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_func.pxi":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/_func.pxi":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__513, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 4068, __pyx_L1_error) + + /* "talib/_func.pxi":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/_func.pxi":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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":4070 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 4070, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":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 = low.data + */ + } + + /* "talib/_func.pxi":4071 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":4072 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":4073 + * low_data = 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__514, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 4073, __pyx_L1_error) + + /* "talib/_func.pxi":4072 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_func.pxi":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/_func.pxi":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__515, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 4075, __pyx_L1_error) + + /* "talib/_func.pxi":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/_func.pxi":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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":4077 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = open.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 4077, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":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 = close.data + */ + } + + /* "talib/_func.pxi":4078 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = open.shape[0] + * if length != high.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_func.pxi":4079 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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/_func.pxi":4080 + * close_data = 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/_func.pxi":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__516, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 4081, __pyx_L1_error) + + /* "talib/_func.pxi":4080 + * close_data = close.data + * length = open.shape[0] + * if length != high.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != low.shape[0]: + */ + } + + /* "talib/_func.pxi":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/_func.pxi":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__517, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 4083, __pyx_L1_error) + + /* "talib/_func.pxi":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/_func.pxi":4084 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":4085 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__518, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 4085, __pyx_L1_error) + + /* "talib/_func.pxi":4084 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + } + + /* "talib/_func.pxi":4086 + * if length != close.shape[0]: + * raise Exception("input lengths are different") + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = open_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":4087 + * raise Exception("input lengths are different") + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = open_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":4088 + * begidx = 0 + * for i from 0 <= i < length: + * val = open_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_open_data[__pyx_v_i]); + + /* "talib/_func.pxi":4089 + * for i from 0 <= i < length: + * val = open_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = high_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":4090 + * val = open_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = high_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":4089 + * for i from 0 <= i < length: + * val = open_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = high_data[i] + */ + } + + /* "talib/_func.pxi":4091 + * if val != val: + * continue + * val = high_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); + + /* "talib/_func.pxi":4092 + * continue + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":4093 + * val = high_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = low_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":4092 + * continue + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + } + + /* "talib/_func.pxi":4094 + * if val != val: + * continue + * val = low_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); + + /* "talib/_func.pxi":4095 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":4096 + * val = low_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = close_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":4095 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + } + + /* "talib/_func.pxi":4097 + * if val != val: + * continue + * val = close_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); + + /* "talib/_func.pxi":4098 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":4099 + * val = close_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":4098 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":4100 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":4101 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L19_break; + __pyx_L18_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":4103 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLINNECK_Lookback( ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__519, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4103, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 4103, __pyx_L1_error) + } + __pyx_L19_break:; + + /* "talib/_func.pxi":4104 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_CDLINNECK_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":4105 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLINNECK_Lookback( ) # <<<<<<<<<<<<<< + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_CDLINNECK_Lookback()); + + /* "talib/_func.pxi":4106 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLINNECK_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4106, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 4106, __pyx_L1_error) + __pyx_v_outinteger = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":4107 + * lookback = begidx + lib.TA_CDLINNECK_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 + */ + __pyx_v_outinteger_data = ((int *)__pyx_v_outinteger->data); + + /* "talib/_func.pxi":4108 + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLINNECK( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":4109 + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 # <<<<<<<<<<<<<< + * retCode = lib.TA_CDLINNECK( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLINNECK", retCode) + */ + (__pyx_v_outinteger_data[__pyx_v_i]) = 0; + } + + /* "talib/_func.pxi":4110 + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLINNECK( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_CDLINNECK", retCode) + * return outinteger + */ + __pyx_v_retCode = TA_CDLINNECK(0, __pyx_v_endidx, ((double *)(__pyx_v_open_data + __pyx_v_begidx)), ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outinteger_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":4111 + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLINNECK( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLINNECK", retCode) # <<<<<<<<<<<<<< + * return outinteger + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CDLINNECK, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4111, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":4112 + * retCode = lib.TA_CDLINNECK( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLINNECK", retCode) + * return outinteger # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outinteger)); + __pyx_r = ((PyObject *)__pyx_v_outinteger); + goto __pyx_L0; + + /* "talib/_func.pxi":4028 + * @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.c_ta_lib.CDLINNECK", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outinteger); + __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/_func.pxi":4116 + * @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_8c_ta_lib_111CDLINVERTEDHAMMER(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_110CDLINVERTEDHAMMER[] = " 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_8c_ta_lib_111CDLINVERTEDHAMMER = {"CDLINVERTEDHAMMER", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_111CDLINVERTEDHAMMER, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_110CDLINVERTEDHAMMER}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_111CDLINVERTEDHAMMER(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(2, 4116, __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(2, 4116, __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(2, 4116, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "CDLINVERTEDHAMMER") < 0)) __PYX_ERR(2, 4116, __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(2, 4116, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 4116, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(2, 4116, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(2, 4116, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(2, 4116, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_110CDLINVERTEDHAMMER(__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_8c_ta_lib_110CDLINVERTEDHAMMER(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; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + 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; + PyArrayObject *__pyx_v_outinteger = 0; + int *__pyx_v_outinteger_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __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/_func.pxi":4139 + * np.ndarray outinteger + * int* outinteger_data + * 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/_func.pxi":4140 + * int* outinteger_data + * 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__520, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4140, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 4140, __pyx_L1_error) + + /* "talib/_func.pxi":4139 + * np.ndarray outinteger + * int* outinteger_data + * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("open is not double") + * if open.ndim != 1: + */ + } + + /* "talib/_func.pxi":4141 + * 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/_func.pxi":4142 + * 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__521, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4142, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 4142, __pyx_L1_error) + + /* "talib/_func.pxi":4141 + * 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/_func.pxi":4143 + * 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 = open.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":4144 + * raise Exception("open has wrong dimensions") + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4144, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 4144, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":4143 + * 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 = open.data + */ + } + + /* "talib/_func.pxi":4145 + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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/_func.pxi":4146 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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/_func.pxi":4147 + * open_data = 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__522, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 4147, __pyx_L1_error) + + /* "talib/_func.pxi":4146 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_func.pxi":4148 + * 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/_func.pxi":4149 + * raise 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__523, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 4149, __pyx_L1_error) + + /* "talib/_func.pxi":4148 + * 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/_func.pxi":4150 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":4151 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4151, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 4151, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":4150 + * 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 = high.data + */ + } + + /* "talib/_func.pxi":4152 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":4153 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":4154 + * high_data = 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__524, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4154, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 4154, __pyx_L1_error) + + /* "talib/_func.pxi":4153 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_func.pxi":4155 + * 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/_func.pxi":4156 + * raise 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__525, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4156, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 4156, __pyx_L1_error) + + /* "talib/_func.pxi":4155 + * 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/_func.pxi":4157 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":4158 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4158, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 4158, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":4157 + * 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 = low.data + */ + } + + /* "talib/_func.pxi":4159 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":4160 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":4161 + * low_data = 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__526, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4161, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 4161, __pyx_L1_error) + + /* "talib/_func.pxi":4160 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_func.pxi":4162 + * 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/_func.pxi":4163 + * raise 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__527, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4163, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 4163, __pyx_L1_error) + + /* "talib/_func.pxi":4162 + * 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/_func.pxi":4164 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":4165 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = open.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4165, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 4165, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":4164 + * 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 = close.data + */ + } + + /* "talib/_func.pxi":4166 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = open.shape[0] + * if length != high.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_func.pxi":4167 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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/_func.pxi":4168 + * close_data = 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/_func.pxi":4169 + * 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__528, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4169, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 4169, __pyx_L1_error) + + /* "talib/_func.pxi":4168 + * close_data = close.data + * length = open.shape[0] + * if length != high.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != low.shape[0]: + */ + } + + /* "talib/_func.pxi":4170 + * 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/_func.pxi":4171 + * 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__529, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4171, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 4171, __pyx_L1_error) + + /* "talib/_func.pxi":4170 + * 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/_func.pxi":4172 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":4173 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__530, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4173, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 4173, __pyx_L1_error) + + /* "talib/_func.pxi":4172 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + } + + /* "talib/_func.pxi":4174 + * if length != close.shape[0]: + * raise Exception("input lengths are different") + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = open_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":4175 + * raise Exception("input lengths are different") + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = open_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":4176 + * begidx = 0 + * for i from 0 <= i < length: + * val = open_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_open_data[__pyx_v_i]); + + /* "talib/_func.pxi":4177 + * for i from 0 <= i < length: + * val = open_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = high_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":4178 + * val = open_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = high_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":4177 + * for i from 0 <= i < length: + * val = open_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = high_data[i] + */ + } + + /* "talib/_func.pxi":4179 + * if val != val: + * continue + * val = high_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); + + /* "talib/_func.pxi":4180 + * continue + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":4181 + * val = high_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = low_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":4180 + * continue + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + } + + /* "talib/_func.pxi":4182 + * if val != val: + * continue + * val = low_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); + + /* "talib/_func.pxi":4183 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":4184 + * val = low_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = close_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":4183 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + } + + /* "talib/_func.pxi":4185 + * if val != val: + * continue + * val = close_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); + + /* "talib/_func.pxi":4186 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":4187 + * val = close_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":4186 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":4188 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":4189 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L19_break; + __pyx_L18_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":4191 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLINVERTEDHAMMER_Lookback( ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__531, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4191, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 4191, __pyx_L1_error) + } + __pyx_L19_break:; + + /* "talib/_func.pxi":4192 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_CDLINVERTEDHAMMER_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":4193 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLINVERTEDHAMMER_Lookback( ) # <<<<<<<<<<<<<< + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_CDLINVERTEDHAMMER_Lookback()); + + /* "talib/_func.pxi":4194 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLINVERTEDHAMMER_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4194, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 4194, __pyx_L1_error) + __pyx_v_outinteger = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":4195 + * lookback = begidx + lib.TA_CDLINVERTEDHAMMER_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 + */ + __pyx_v_outinteger_data = ((int *)__pyx_v_outinteger->data); + + /* "talib/_func.pxi":4196 + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLINVERTEDHAMMER( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":4197 + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 # <<<<<<<<<<<<<< + * retCode = lib.TA_CDLINVERTEDHAMMER( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLINVERTEDHAMMER", retCode) + */ + (__pyx_v_outinteger_data[__pyx_v_i]) = 0; + } + + /* "talib/_func.pxi":4198 + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLINVERTEDHAMMER( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_CDLINVERTEDHAMMER", retCode) + * return outinteger + */ + __pyx_v_retCode = TA_CDLINVERTEDHAMMER(0, __pyx_v_endidx, ((double *)(__pyx_v_open_data + __pyx_v_begidx)), ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outinteger_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":4199 + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLINVERTEDHAMMER( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLINVERTEDHAMMER", retCode) # <<<<<<<<<<<<<< + * return outinteger + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CDLINVERTEDHAMMER, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4199, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":4200 + * retCode = lib.TA_CDLINVERTEDHAMMER( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLINVERTEDHAMMER", retCode) + * return outinteger # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outinteger)); + __pyx_r = ((PyObject *)__pyx_v_outinteger); + goto __pyx_L0; + + /* "talib/_func.pxi":4116 + * @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.c_ta_lib.CDLINVERTEDHAMMER", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outinteger); + __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/_func.pxi":4204 + * @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_8c_ta_lib_113CDLKICKING(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_112CDLKICKING[] = " 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_8c_ta_lib_113CDLKICKING = {"CDLKICKING", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_113CDLKICKING, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_112CDLKICKING}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_113CDLKICKING(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(2, 4204, __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(2, 4204, __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(2, 4204, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "CDLKICKING") < 0)) __PYX_ERR(2, 4204, __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(2, 4204, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 4204, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(2, 4204, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(2, 4204, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(2, 4204, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_112CDLKICKING(__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_8c_ta_lib_112CDLKICKING(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; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + 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; + PyArrayObject *__pyx_v_outinteger = 0; + int *__pyx_v_outinteger_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __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/_func.pxi":4227 + * np.ndarray outinteger + * int* outinteger_data + * 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/_func.pxi":4228 + * int* outinteger_data + * 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__532, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4228, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 4228, __pyx_L1_error) + + /* "talib/_func.pxi":4227 + * np.ndarray outinteger + * int* outinteger_data + * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("open is not double") + * if open.ndim != 1: + */ + } + + /* "talib/_func.pxi":4229 + * 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/_func.pxi":4230 + * 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__533, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4230, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 4230, __pyx_L1_error) + + /* "talib/_func.pxi":4229 + * 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/_func.pxi":4231 + * 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 = open.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":4232 + * raise Exception("open has wrong dimensions") + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4232, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 4232, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":4231 + * 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 = open.data + */ + } + + /* "talib/_func.pxi":4233 + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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/_func.pxi":4234 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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/_func.pxi":4235 + * open_data = 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__534, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4235, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 4235, __pyx_L1_error) + + /* "talib/_func.pxi":4234 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_func.pxi":4236 + * 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/_func.pxi":4237 + * raise 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__535, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4237, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 4237, __pyx_L1_error) + + /* "talib/_func.pxi":4236 + * 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/_func.pxi":4238 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":4239 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4239, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 4239, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":4238 + * 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 = high.data + */ + } + + /* "talib/_func.pxi":4240 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":4241 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":4242 + * high_data = 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__536, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4242, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 4242, __pyx_L1_error) + + /* "talib/_func.pxi":4241 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_func.pxi":4243 + * 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/_func.pxi":4244 + * raise 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__537, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 4244, __pyx_L1_error) + + /* "talib/_func.pxi":4243 + * 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/_func.pxi":4245 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":4246 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4246, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 4246, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":4245 + * 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 = low.data + */ + } + + /* "talib/_func.pxi":4247 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":4248 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":4249 + * low_data = 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__538, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4249, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 4249, __pyx_L1_error) + + /* "talib/_func.pxi":4248 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_func.pxi":4250 + * 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/_func.pxi":4251 + * raise 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__539, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 4251, __pyx_L1_error) + + /* "talib/_func.pxi":4250 + * 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/_func.pxi":4252 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":4253 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = open.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4253, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 4253, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":4252 + * 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 = close.data + */ + } + + /* "talib/_func.pxi":4254 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = open.shape[0] + * if length != high.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_func.pxi":4255 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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/_func.pxi":4256 + * close_data = 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/_func.pxi":4257 + * 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__540, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4257, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 4257, __pyx_L1_error) + + /* "talib/_func.pxi":4256 + * close_data = close.data + * length = open.shape[0] + * if length != high.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != low.shape[0]: + */ + } + + /* "talib/_func.pxi":4258 + * 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/_func.pxi":4259 + * 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__541, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4259, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 4259, __pyx_L1_error) + + /* "talib/_func.pxi":4258 + * 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/_func.pxi":4260 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":4261 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__542, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4261, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 4261, __pyx_L1_error) + + /* "talib/_func.pxi":4260 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + } + + /* "talib/_func.pxi":4262 + * if length != close.shape[0]: + * raise Exception("input lengths are different") + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = open_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":4263 + * raise Exception("input lengths are different") + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = open_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":4264 + * begidx = 0 + * for i from 0 <= i < length: + * val = open_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_open_data[__pyx_v_i]); + + /* "talib/_func.pxi":4265 + * for i from 0 <= i < length: + * val = open_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = high_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":4266 + * val = open_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = high_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":4265 + * for i from 0 <= i < length: + * val = open_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = high_data[i] + */ + } + + /* "talib/_func.pxi":4267 + * if val != val: + * continue + * val = high_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); + + /* "talib/_func.pxi":4268 + * continue + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":4269 + * val = high_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = low_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":4268 + * continue + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + } + + /* "talib/_func.pxi":4270 + * if val != val: + * continue + * val = low_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); + + /* "talib/_func.pxi":4271 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":4272 + * val = low_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = close_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":4271 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + } + + /* "talib/_func.pxi":4273 + * if val != val: + * continue + * val = close_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); + + /* "talib/_func.pxi":4274 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":4275 + * val = close_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":4274 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":4276 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":4277 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L19_break; + __pyx_L18_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":4279 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLKICKING_Lookback( ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__543, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4279, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 4279, __pyx_L1_error) + } + __pyx_L19_break:; + + /* "talib/_func.pxi":4280 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_CDLKICKING_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":4281 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLKICKING_Lookback( ) # <<<<<<<<<<<<<< + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_CDLKICKING_Lookback()); + + /* "talib/_func.pxi":4282 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLKICKING_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4282, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 4282, __pyx_L1_error) + __pyx_v_outinteger = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":4283 + * lookback = begidx + lib.TA_CDLKICKING_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 + */ + __pyx_v_outinteger_data = ((int *)__pyx_v_outinteger->data); + + /* "talib/_func.pxi":4284 + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLKICKING( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":4285 + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 # <<<<<<<<<<<<<< + * retCode = lib.TA_CDLKICKING( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLKICKING", retCode) + */ + (__pyx_v_outinteger_data[__pyx_v_i]) = 0; + } + + /* "talib/_func.pxi":4286 + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLKICKING( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_CDLKICKING", retCode) + * return outinteger + */ + __pyx_v_retCode = TA_CDLKICKING(0, __pyx_v_endidx, ((double *)(__pyx_v_open_data + __pyx_v_begidx)), ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outinteger_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":4287 + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLKICKING( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLKICKING", retCode) # <<<<<<<<<<<<<< + * return outinteger + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CDLKICKING, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4287, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":4288 + * retCode = lib.TA_CDLKICKING( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLKICKING", retCode) + * return outinteger # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outinteger)); + __pyx_r = ((PyObject *)__pyx_v_outinteger); + goto __pyx_L0; + + /* "talib/_func.pxi":4204 + * @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.c_ta_lib.CDLKICKING", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outinteger); + __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/_func.pxi":4292 + * @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_8c_ta_lib_115CDLKICKINGBYLENGTH(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_114CDLKICKINGBYLENGTH[] = " 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_8c_ta_lib_115CDLKICKINGBYLENGTH = {"CDLKICKINGBYLENGTH", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_115CDLKICKINGBYLENGTH, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_114CDLKICKINGBYLENGTH}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_115CDLKICKINGBYLENGTH(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(2, 4292, __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(2, 4292, __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(2, 4292, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "CDLKICKINGBYLENGTH") < 0)) __PYX_ERR(2, 4292, __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(2, 4292, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 4292, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(2, 4292, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(2, 4292, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(2, 4292, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_114CDLKICKINGBYLENGTH(__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_8c_ta_lib_114CDLKICKINGBYLENGTH(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; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + 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; + PyArrayObject *__pyx_v_outinteger = 0; + int *__pyx_v_outinteger_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __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/_func.pxi":4315 + * np.ndarray outinteger + * int* outinteger_data + * 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/_func.pxi":4316 + * int* outinteger_data + * 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__544, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4316, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 4316, __pyx_L1_error) + + /* "talib/_func.pxi":4315 + * np.ndarray outinteger + * int* outinteger_data + * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("open is not double") + * if open.ndim != 1: + */ + } + + /* "talib/_func.pxi":4317 + * 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/_func.pxi":4318 + * 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__545, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4318, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 4318, __pyx_L1_error) + + /* "talib/_func.pxi":4317 + * 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/_func.pxi":4319 + * 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 = open.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":4320 + * raise Exception("open has wrong dimensions") + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4320, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 4320, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":4319 + * 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 = open.data + */ + } + + /* "talib/_func.pxi":4321 + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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/_func.pxi":4322 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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/_func.pxi":4323 + * open_data = 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__546, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4323, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 4323, __pyx_L1_error) + + /* "talib/_func.pxi":4322 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_func.pxi":4324 + * 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/_func.pxi":4325 + * raise 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__547, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4325, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 4325, __pyx_L1_error) + + /* "talib/_func.pxi":4324 + * 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/_func.pxi":4326 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":4327 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4327, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 4327, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":4326 + * 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 = high.data + */ + } + + /* "talib/_func.pxi":4328 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":4329 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":4330 + * high_data = 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__548, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4330, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 4330, __pyx_L1_error) + + /* "talib/_func.pxi":4329 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_func.pxi":4331 + * 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/_func.pxi":4332 + * raise 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__549, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4332, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 4332, __pyx_L1_error) + + /* "talib/_func.pxi":4331 + * 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/_func.pxi":4333 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":4334 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4334, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 4334, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":4333 + * 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 = low.data + */ + } + + /* "talib/_func.pxi":4335 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":4336 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":4337 + * low_data = 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__550, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 4337, __pyx_L1_error) + + /* "talib/_func.pxi":4336 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_func.pxi":4338 + * 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/_func.pxi":4339 + * raise 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__551, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 4339, __pyx_L1_error) + + /* "talib/_func.pxi":4338 + * 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/_func.pxi":4340 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":4341 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = open.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4341, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 4341, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":4340 + * 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 = close.data + */ + } + + /* "talib/_func.pxi":4342 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = open.shape[0] + * if length != high.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_func.pxi":4343 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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/_func.pxi":4344 + * close_data = 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/_func.pxi":4345 + * 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__552, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4345, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 4345, __pyx_L1_error) + + /* "talib/_func.pxi":4344 + * close_data = close.data + * length = open.shape[0] + * if length != high.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != low.shape[0]: + */ + } + + /* "talib/_func.pxi":4346 + * 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/_func.pxi":4347 + * 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__553, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4347, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 4347, __pyx_L1_error) + + /* "talib/_func.pxi":4346 + * 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/_func.pxi":4348 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":4349 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__554, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4349, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 4349, __pyx_L1_error) + + /* "talib/_func.pxi":4348 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + } + + /* "talib/_func.pxi":4350 + * if length != close.shape[0]: + * raise Exception("input lengths are different") + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = open_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":4351 + * raise Exception("input lengths are different") + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = open_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":4352 + * begidx = 0 + * for i from 0 <= i < length: + * val = open_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_open_data[__pyx_v_i]); + + /* "talib/_func.pxi":4353 + * for i from 0 <= i < length: + * val = open_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = high_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":4354 + * val = open_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = high_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":4353 + * for i from 0 <= i < length: + * val = open_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = high_data[i] + */ + } + + /* "talib/_func.pxi":4355 + * if val != val: + * continue + * val = high_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); + + /* "talib/_func.pxi":4356 + * continue + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":4357 + * val = high_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = low_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":4356 + * continue + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + } + + /* "talib/_func.pxi":4358 + * if val != val: + * continue + * val = low_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); + + /* "talib/_func.pxi":4359 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":4360 + * val = low_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = close_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":4359 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + } + + /* "talib/_func.pxi":4361 + * if val != val: + * continue + * val = close_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); + + /* "talib/_func.pxi":4362 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":4363 + * val = close_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":4362 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":4364 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":4365 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L19_break; + __pyx_L18_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":4367 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLKICKINGBYLENGTH_Lookback( ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__555, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4367, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 4367, __pyx_L1_error) + } + __pyx_L19_break:; + + /* "talib/_func.pxi":4368 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_CDLKICKINGBYLENGTH_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":4369 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLKICKINGBYLENGTH_Lookback( ) # <<<<<<<<<<<<<< + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_CDLKICKINGBYLENGTH_Lookback()); + + /* "talib/_func.pxi":4370 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLKICKINGBYLENGTH_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4370, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 4370, __pyx_L1_error) + __pyx_v_outinteger = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":4371 + * lookback = begidx + lib.TA_CDLKICKINGBYLENGTH_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 + */ + __pyx_v_outinteger_data = ((int *)__pyx_v_outinteger->data); + + /* "talib/_func.pxi":4372 + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLKICKINGBYLENGTH( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":4373 + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 # <<<<<<<<<<<<<< + * retCode = lib.TA_CDLKICKINGBYLENGTH( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLKICKINGBYLENGTH", retCode) + */ + (__pyx_v_outinteger_data[__pyx_v_i]) = 0; + } + + /* "talib/_func.pxi":4374 + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLKICKINGBYLENGTH( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_CDLKICKINGBYLENGTH", retCode) + * return outinteger + */ + __pyx_v_retCode = TA_CDLKICKINGBYLENGTH(0, __pyx_v_endidx, ((double *)(__pyx_v_open_data + __pyx_v_begidx)), ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outinteger_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":4375 + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLKICKINGBYLENGTH( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLKICKINGBYLENGTH", retCode) # <<<<<<<<<<<<<< + * return outinteger + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CDLKICKINGBYLENGTH, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4375, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":4376 + * retCode = lib.TA_CDLKICKINGBYLENGTH( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLKICKINGBYLENGTH", retCode) + * return outinteger # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outinteger)); + __pyx_r = ((PyObject *)__pyx_v_outinteger); + goto __pyx_L0; + + /* "talib/_func.pxi":4292 + * @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.c_ta_lib.CDLKICKINGBYLENGTH", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outinteger); + __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/_func.pxi":4380 + * @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_8c_ta_lib_117CDLLADDERBOTTOM(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_116CDLLADDERBOTTOM[] = " 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_8c_ta_lib_117CDLLADDERBOTTOM = {"CDLLADDERBOTTOM", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_117CDLLADDERBOTTOM, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_116CDLLADDERBOTTOM}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_117CDLLADDERBOTTOM(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(2, 4380, __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(2, 4380, __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(2, 4380, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "CDLLADDERBOTTOM") < 0)) __PYX_ERR(2, 4380, __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(2, 4380, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 4380, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(2, 4380, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(2, 4380, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(2, 4380, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_116CDLLADDERBOTTOM(__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_8c_ta_lib_116CDLLADDERBOTTOM(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; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + 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; + PyArrayObject *__pyx_v_outinteger = 0; + int *__pyx_v_outinteger_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __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/_func.pxi":4403 + * np.ndarray outinteger + * int* outinteger_data + * 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/_func.pxi":4404 + * int* outinteger_data + * 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__556, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4404, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 4404, __pyx_L1_error) + + /* "talib/_func.pxi":4403 + * np.ndarray outinteger + * int* outinteger_data + * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("open is not double") + * if open.ndim != 1: + */ + } + + /* "talib/_func.pxi":4405 + * 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/_func.pxi":4406 + * 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__557, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4406, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 4406, __pyx_L1_error) + + /* "talib/_func.pxi":4405 + * 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/_func.pxi":4407 + * 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 = open.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":4408 + * raise Exception("open has wrong dimensions") + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4408, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 4408, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":4407 + * 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 = open.data + */ + } + + /* "talib/_func.pxi":4409 + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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/_func.pxi":4410 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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/_func.pxi":4411 + * open_data = 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__558, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4411, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 4411, __pyx_L1_error) + + /* "talib/_func.pxi":4410 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_func.pxi":4412 + * 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/_func.pxi":4413 + * raise 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__559, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4413, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 4413, __pyx_L1_error) + + /* "talib/_func.pxi":4412 + * 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/_func.pxi":4414 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":4415 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4415, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 4415, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":4414 + * 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 = high.data + */ + } + + /* "talib/_func.pxi":4416 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":4417 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":4418 + * high_data = 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__560, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4418, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 4418, __pyx_L1_error) + + /* "talib/_func.pxi":4417 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_func.pxi":4419 + * 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/_func.pxi":4420 + * raise 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__561, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4420, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 4420, __pyx_L1_error) + + /* "talib/_func.pxi":4419 + * 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/_func.pxi":4421 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":4422 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4422, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 4422, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":4421 + * 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 = low.data + */ + } + + /* "talib/_func.pxi":4423 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":4424 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":4425 + * low_data = 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__562, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4425, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 4425, __pyx_L1_error) + + /* "talib/_func.pxi":4424 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_func.pxi":4426 + * 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/_func.pxi":4427 + * raise 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__563, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4427, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 4427, __pyx_L1_error) + + /* "talib/_func.pxi":4426 + * 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/_func.pxi":4428 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":4429 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = open.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4429, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 4429, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":4428 + * 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 = close.data + */ + } + + /* "talib/_func.pxi":4430 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = open.shape[0] + * if length != high.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_func.pxi":4431 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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/_func.pxi":4432 + * close_data = 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/_func.pxi":4433 + * 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__564, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4433, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 4433, __pyx_L1_error) + + /* "talib/_func.pxi":4432 + * close_data = close.data + * length = open.shape[0] + * if length != high.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != low.shape[0]: + */ + } + + /* "talib/_func.pxi":4434 + * 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/_func.pxi":4435 + * 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__565, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4435, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 4435, __pyx_L1_error) + + /* "talib/_func.pxi":4434 + * 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/_func.pxi":4436 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":4437 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__566, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4437, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 4437, __pyx_L1_error) + + /* "talib/_func.pxi":4436 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + } + + /* "talib/_func.pxi":4438 + * if length != close.shape[0]: + * raise Exception("input lengths are different") + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = open_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":4439 + * raise Exception("input lengths are different") + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = open_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":4440 + * begidx = 0 + * for i from 0 <= i < length: + * val = open_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_open_data[__pyx_v_i]); + + /* "talib/_func.pxi":4441 + * for i from 0 <= i < length: + * val = open_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = high_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":4442 + * val = open_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = high_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":4441 + * for i from 0 <= i < length: + * val = open_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = high_data[i] + */ + } + + /* "talib/_func.pxi":4443 + * if val != val: + * continue + * val = high_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); + + /* "talib/_func.pxi":4444 + * continue + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":4445 + * val = high_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = low_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":4444 + * continue + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + } + + /* "talib/_func.pxi":4446 + * if val != val: + * continue + * val = low_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); + + /* "talib/_func.pxi":4447 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":4448 + * val = low_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = close_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":4447 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + } + + /* "talib/_func.pxi":4449 + * if val != val: + * continue + * val = close_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); + + /* "talib/_func.pxi":4450 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":4451 + * val = close_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":4450 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":4452 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":4453 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L19_break; + __pyx_L18_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":4455 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLLADDERBOTTOM_Lookback( ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__567, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4455, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 4455, __pyx_L1_error) + } + __pyx_L19_break:; + + /* "talib/_func.pxi":4456 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_CDLLADDERBOTTOM_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":4457 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLLADDERBOTTOM_Lookback( ) # <<<<<<<<<<<<<< + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_CDLLADDERBOTTOM_Lookback()); + + /* "talib/_func.pxi":4458 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLLADDERBOTTOM_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4458, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 4458, __pyx_L1_error) + __pyx_v_outinteger = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":4459 + * lookback = begidx + lib.TA_CDLLADDERBOTTOM_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 + */ + __pyx_v_outinteger_data = ((int *)__pyx_v_outinteger->data); + + /* "talib/_func.pxi":4460 + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLLADDERBOTTOM( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":4461 + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 # <<<<<<<<<<<<<< + * retCode = lib.TA_CDLLADDERBOTTOM( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLLADDERBOTTOM", retCode) + */ + (__pyx_v_outinteger_data[__pyx_v_i]) = 0; + } + + /* "talib/_func.pxi":4462 + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLLADDERBOTTOM( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_CDLLADDERBOTTOM", retCode) + * return outinteger + */ + __pyx_v_retCode = TA_CDLLADDERBOTTOM(0, __pyx_v_endidx, ((double *)(__pyx_v_open_data + __pyx_v_begidx)), ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outinteger_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":4463 + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLLADDERBOTTOM( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLLADDERBOTTOM", retCode) # <<<<<<<<<<<<<< + * return outinteger + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CDLLADDERBOTTOM, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4463, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":4464 + * retCode = lib.TA_CDLLADDERBOTTOM( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLLADDERBOTTOM", retCode) + * return outinteger # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outinteger)); + __pyx_r = ((PyObject *)__pyx_v_outinteger); + goto __pyx_L0; + + /* "talib/_func.pxi":4380 + * @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.c_ta_lib.CDLLADDERBOTTOM", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outinteger); + __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/_func.pxi":4468 + * @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_8c_ta_lib_119CDLLONGLEGGEDDOJI(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_118CDLLONGLEGGEDDOJI[] = " 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_8c_ta_lib_119CDLLONGLEGGEDDOJI = {"CDLLONGLEGGEDDOJI", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_119CDLLONGLEGGEDDOJI, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_118CDLLONGLEGGEDDOJI}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_119CDLLONGLEGGEDDOJI(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(2, 4468, __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(2, 4468, __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(2, 4468, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "CDLLONGLEGGEDDOJI") < 0)) __PYX_ERR(2, 4468, __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(2, 4468, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 4468, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(2, 4468, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(2, 4468, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(2, 4468, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_118CDLLONGLEGGEDDOJI(__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_8c_ta_lib_118CDLLONGLEGGEDDOJI(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; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + 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; + PyArrayObject *__pyx_v_outinteger = 0; + int *__pyx_v_outinteger_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __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/_func.pxi":4491 + * np.ndarray outinteger + * int* outinteger_data + * 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/_func.pxi":4492 + * int* outinteger_data + * 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__568, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4492, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 4492, __pyx_L1_error) + + /* "talib/_func.pxi":4491 + * np.ndarray outinteger + * int* outinteger_data + * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("open is not double") + * if open.ndim != 1: + */ + } + + /* "talib/_func.pxi":4493 + * 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/_func.pxi":4494 + * 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__569, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4494, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 4494, __pyx_L1_error) + + /* "talib/_func.pxi":4493 + * 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/_func.pxi":4495 + * 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 = open.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":4496 + * raise Exception("open has wrong dimensions") + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4496, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 4496, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":4495 + * 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 = open.data + */ + } + + /* "talib/_func.pxi":4497 + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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/_func.pxi":4498 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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/_func.pxi":4499 + * open_data = 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__570, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4499, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 4499, __pyx_L1_error) + + /* "talib/_func.pxi":4498 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_func.pxi":4500 + * 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/_func.pxi":4501 + * raise 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__571, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4501, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 4501, __pyx_L1_error) + + /* "talib/_func.pxi":4500 + * 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/_func.pxi":4502 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":4503 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4503, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 4503, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":4502 + * 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 = high.data + */ + } + + /* "talib/_func.pxi":4504 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":4505 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":4506 + * high_data = 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__572, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4506, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 4506, __pyx_L1_error) + + /* "talib/_func.pxi":4505 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_func.pxi":4507 + * 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/_func.pxi":4508 + * raise 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__573, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4508, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 4508, __pyx_L1_error) + + /* "talib/_func.pxi":4507 + * 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/_func.pxi":4509 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":4510 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4510, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 4510, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":4509 + * 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 = low.data + */ + } + + /* "talib/_func.pxi":4511 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":4512 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":4513 + * low_data = 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__574, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4513, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 4513, __pyx_L1_error) + + /* "talib/_func.pxi":4512 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_func.pxi":4514 + * 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/_func.pxi":4515 + * raise 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__575, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4515, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 4515, __pyx_L1_error) + + /* "talib/_func.pxi":4514 + * 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/_func.pxi":4516 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":4517 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = open.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4517, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 4517, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":4516 + * 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 = close.data + */ + } + + /* "talib/_func.pxi":4518 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = open.shape[0] + * if length != high.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_func.pxi":4519 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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/_func.pxi":4520 + * close_data = 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/_func.pxi":4521 + * 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__576, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 4521, __pyx_L1_error) + + /* "talib/_func.pxi":4520 + * close_data = close.data + * length = open.shape[0] + * if length != high.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != low.shape[0]: + */ + } + + /* "talib/_func.pxi":4522 + * 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/_func.pxi":4523 + * 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__577, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 4523, __pyx_L1_error) + + /* "talib/_func.pxi":4522 + * 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/_func.pxi":4524 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":4525 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__578, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4525, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 4525, __pyx_L1_error) + + /* "talib/_func.pxi":4524 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + } + + /* "talib/_func.pxi":4526 + * if length != close.shape[0]: + * raise Exception("input lengths are different") + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = open_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":4527 + * raise Exception("input lengths are different") + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = open_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":4528 + * begidx = 0 + * for i from 0 <= i < length: + * val = open_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_open_data[__pyx_v_i]); + + /* "talib/_func.pxi":4529 + * for i from 0 <= i < length: + * val = open_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = high_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":4530 + * val = open_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = high_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":4529 + * for i from 0 <= i < length: + * val = open_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = high_data[i] + */ + } + + /* "talib/_func.pxi":4531 + * if val != val: + * continue + * val = high_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); + + /* "talib/_func.pxi":4532 + * continue + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":4533 + * val = high_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = low_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":4532 + * continue + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + } + + /* "talib/_func.pxi":4534 + * if val != val: + * continue + * val = low_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); + + /* "talib/_func.pxi":4535 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":4536 + * val = low_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = close_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":4535 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + } + + /* "talib/_func.pxi":4537 + * if val != val: + * continue + * val = close_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); + + /* "talib/_func.pxi":4538 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":4539 + * val = close_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":4538 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":4540 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":4541 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L19_break; + __pyx_L18_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":4543 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLLONGLEGGEDDOJI_Lookback( ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__579, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4543, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 4543, __pyx_L1_error) + } + __pyx_L19_break:; + + /* "talib/_func.pxi":4544 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_CDLLONGLEGGEDDOJI_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":4545 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLLONGLEGGEDDOJI_Lookback( ) # <<<<<<<<<<<<<< + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_CDLLONGLEGGEDDOJI_Lookback()); + + /* "talib/_func.pxi":4546 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLLONGLEGGEDDOJI_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4546, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 4546, __pyx_L1_error) + __pyx_v_outinteger = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":4547 + * lookback = begidx + lib.TA_CDLLONGLEGGEDDOJI_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 + */ + __pyx_v_outinteger_data = ((int *)__pyx_v_outinteger->data); + + /* "talib/_func.pxi":4548 + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLLONGLEGGEDDOJI( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":4549 + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 # <<<<<<<<<<<<<< + * retCode = lib.TA_CDLLONGLEGGEDDOJI( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLLONGLEGGEDDOJI", retCode) + */ + (__pyx_v_outinteger_data[__pyx_v_i]) = 0; + } + + /* "talib/_func.pxi":4550 + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLLONGLEGGEDDOJI( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_CDLLONGLEGGEDDOJI", retCode) + * return outinteger + */ + __pyx_v_retCode = TA_CDLLONGLEGGEDDOJI(0, __pyx_v_endidx, ((double *)(__pyx_v_open_data + __pyx_v_begidx)), ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outinteger_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":4551 + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLLONGLEGGEDDOJI( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLLONGLEGGEDDOJI", retCode) # <<<<<<<<<<<<<< + * return outinteger + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CDLLONGLEGGEDDOJI, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4551, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":4552 + * retCode = lib.TA_CDLLONGLEGGEDDOJI( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLLONGLEGGEDDOJI", retCode) + * return outinteger # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outinteger)); + __pyx_r = ((PyObject *)__pyx_v_outinteger); + goto __pyx_L0; + + /* "talib/_func.pxi":4468 + * @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.c_ta_lib.CDLLONGLEGGEDDOJI", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outinteger); + __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/_func.pxi":4556 + * @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_8c_ta_lib_121CDLLONGLINE(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_120CDLLONGLINE[] = " 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_8c_ta_lib_121CDLLONGLINE = {"CDLLONGLINE", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_121CDLLONGLINE, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_120CDLLONGLINE}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_121CDLLONGLINE(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(2, 4556, __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(2, 4556, __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(2, 4556, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "CDLLONGLINE") < 0)) __PYX_ERR(2, 4556, __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(2, 4556, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 4556, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(2, 4556, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(2, 4556, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(2, 4556, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_120CDLLONGLINE(__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_8c_ta_lib_120CDLLONGLINE(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; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + 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; + PyArrayObject *__pyx_v_outinteger = 0; + int *__pyx_v_outinteger_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __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/_func.pxi":4579 + * np.ndarray outinteger + * int* outinteger_data + * 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/_func.pxi":4580 + * int* outinteger_data + * 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(2, 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(2, 4580, __pyx_L1_error) + + /* "talib/_func.pxi":4579 + * np.ndarray outinteger + * int* outinteger_data + * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("open is not double") + * if open.ndim != 1: + */ + } + + /* "talib/_func.pxi":4581 + * 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/_func.pxi":4582 + * 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(2, 4582, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 4582, __pyx_L1_error) + + /* "talib/_func.pxi":4581 + * 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/_func.pxi":4583 + * 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 = open.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":4584 + * raise Exception("open has wrong dimensions") + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4584, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 4584, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":4583 + * 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 = open.data + */ + } + + /* "talib/_func.pxi":4585 + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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/_func.pxi":4586 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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/_func.pxi":4587 + * open_data = 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(2, 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(2, 4587, __pyx_L1_error) + + /* "talib/_func.pxi":4586 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_func.pxi":4588 + * 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/_func.pxi":4589 + * raise 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(2, 4589, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 4589, __pyx_L1_error) + + /* "talib/_func.pxi":4588 + * 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/_func.pxi":4590 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":4591 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4591, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 4591, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":4590 + * 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 = high.data + */ + } + + /* "talib/_func.pxi":4592 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":4593 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":4594 + * high_data = 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(2, 4594, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 4594, __pyx_L1_error) + + /* "talib/_func.pxi":4593 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_func.pxi":4595 + * 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/_func.pxi":4596 + * raise 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(2, 4596, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 4596, __pyx_L1_error) + + /* "talib/_func.pxi":4595 + * 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/_func.pxi":4597 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":4598 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4598, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 4598, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":4597 + * 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 = low.data + */ + } + + /* "talib/_func.pxi":4599 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":4600 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":4601 + * low_data = 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(2, 4601, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 4601, __pyx_L1_error) + + /* "talib/_func.pxi":4600 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_func.pxi":4602 + * 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/_func.pxi":4603 + * raise 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(2, 4603, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 4603, __pyx_L1_error) + + /* "talib/_func.pxi":4602 + * 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/_func.pxi":4604 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":4605 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = open.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4605, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 4605, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":4604 + * 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 = close.data + */ + } + + /* "talib/_func.pxi":4606 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = open.shape[0] + * if length != high.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_func.pxi":4607 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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/_func.pxi":4608 + * close_data = 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/_func.pxi":4609 + * 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(2, 4609, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 4609, __pyx_L1_error) + + /* "talib/_func.pxi":4608 + * close_data = close.data + * length = open.shape[0] + * if length != high.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != low.shape[0]: + */ + } + + /* "talib/_func.pxi":4610 + * 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/_func.pxi":4611 + * 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(2, 4611, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 4611, __pyx_L1_error) + + /* "talib/_func.pxi":4610 + * 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/_func.pxi":4612 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":4613 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__590, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4613, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 4613, __pyx_L1_error) + + /* "talib/_func.pxi":4612 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + } + + /* "talib/_func.pxi":4614 + * if length != close.shape[0]: + * raise Exception("input lengths are different") + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = open_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":4615 + * raise Exception("input lengths are different") + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = open_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":4616 + * begidx = 0 + * for i from 0 <= i < length: + * val = open_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_open_data[__pyx_v_i]); + + /* "talib/_func.pxi":4617 + * for i from 0 <= i < length: + * val = open_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = high_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":4618 + * val = open_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = high_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":4617 + * for i from 0 <= i < length: + * val = open_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = high_data[i] + */ + } + + /* "talib/_func.pxi":4619 + * if val != val: + * continue + * val = high_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); + + /* "talib/_func.pxi":4620 + * continue + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":4621 + * val = high_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = low_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":4620 + * continue + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + } + + /* "talib/_func.pxi":4622 + * if val != val: + * continue + * val = low_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); + + /* "talib/_func.pxi":4623 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":4624 + * val = low_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = close_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":4623 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + } + + /* "talib/_func.pxi":4625 + * if val != val: + * continue + * val = close_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); + + /* "talib/_func.pxi":4626 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":4627 + * val = close_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":4626 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":4628 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":4629 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L19_break; + __pyx_L18_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":4631 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLLONGLINE_Lookback( ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__591, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4631, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 4631, __pyx_L1_error) + } + __pyx_L19_break:; + + /* "talib/_func.pxi":4632 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_CDLLONGLINE_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":4633 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLLONGLINE_Lookback( ) # <<<<<<<<<<<<<< + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_CDLLONGLINE_Lookback()); + + /* "talib/_func.pxi":4634 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLLONGLINE_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4634, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 4634, __pyx_L1_error) + __pyx_v_outinteger = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":4635 + * lookback = begidx + lib.TA_CDLLONGLINE_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 + */ + __pyx_v_outinteger_data = ((int *)__pyx_v_outinteger->data); + + /* "talib/_func.pxi":4636 + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLLONGLINE( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":4637 + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 # <<<<<<<<<<<<<< + * retCode = lib.TA_CDLLONGLINE( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLLONGLINE", retCode) + */ + (__pyx_v_outinteger_data[__pyx_v_i]) = 0; + } + + /* "talib/_func.pxi":4638 + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLLONGLINE( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_CDLLONGLINE", retCode) + * return outinteger + */ + __pyx_v_retCode = TA_CDLLONGLINE(0, __pyx_v_endidx, ((double *)(__pyx_v_open_data + __pyx_v_begidx)), ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outinteger_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":4639 + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLLONGLINE( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLLONGLINE", retCode) # <<<<<<<<<<<<<< + * return outinteger + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CDLLONGLINE, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4639, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":4640 + * retCode = lib.TA_CDLLONGLINE( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLLONGLINE", retCode) + * return outinteger # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outinteger)); + __pyx_r = ((PyObject *)__pyx_v_outinteger); + goto __pyx_L0; + + /* "talib/_func.pxi":4556 + * @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.c_ta_lib.CDLLONGLINE", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outinteger); + __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/_func.pxi":4644 + * @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_8c_ta_lib_123CDLMARUBOZU(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_122CDLMARUBOZU[] = " 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_8c_ta_lib_123CDLMARUBOZU = {"CDLMARUBOZU", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_123CDLMARUBOZU, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_122CDLMARUBOZU}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_123CDLMARUBOZU(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(2, 4644, __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(2, 4644, __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(2, 4644, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "CDLMARUBOZU") < 0)) __PYX_ERR(2, 4644, __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(2, 4644, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 4644, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(2, 4644, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(2, 4644, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(2, 4644, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_122CDLMARUBOZU(__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_8c_ta_lib_122CDLMARUBOZU(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; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + 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; + PyArrayObject *__pyx_v_outinteger = 0; + int *__pyx_v_outinteger_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __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/_func.pxi":4667 + * np.ndarray outinteger + * int* outinteger_data + * 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/_func.pxi":4668 + * int* outinteger_data + * 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__592, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4668, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 4668, __pyx_L1_error) + + /* "talib/_func.pxi":4667 + * np.ndarray outinteger + * int* outinteger_data + * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("open is not double") + * if open.ndim != 1: + */ + } + + /* "talib/_func.pxi":4669 + * 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/_func.pxi":4670 + * 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__593, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4670, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 4670, __pyx_L1_error) + + /* "talib/_func.pxi":4669 + * 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/_func.pxi":4671 + * 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 = open.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":4672 + * raise Exception("open has wrong dimensions") + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4672, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 4672, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":4671 + * 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 = open.data + */ + } + + /* "talib/_func.pxi":4673 + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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/_func.pxi":4674 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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/_func.pxi":4675 + * open_data = 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__594, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4675, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 4675, __pyx_L1_error) + + /* "talib/_func.pxi":4674 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_func.pxi":4676 + * 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/_func.pxi":4677 + * raise 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__595, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4677, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 4677, __pyx_L1_error) + + /* "talib/_func.pxi":4676 + * 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/_func.pxi":4678 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":4679 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4679, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 4679, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":4678 + * 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 = high.data + */ + } + + /* "talib/_func.pxi":4680 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":4681 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":4682 + * high_data = 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__596, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4682, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 4682, __pyx_L1_error) + + /* "talib/_func.pxi":4681 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_func.pxi":4683 + * 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/_func.pxi":4684 + * raise 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__597, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4684, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 4684, __pyx_L1_error) + + /* "talib/_func.pxi":4683 + * 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/_func.pxi":4685 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":4686 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4686, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 4686, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":4685 + * 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 = low.data + */ + } + + /* "talib/_func.pxi":4687 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":4688 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":4689 + * low_data = 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__598, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4689, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 4689, __pyx_L1_error) + + /* "talib/_func.pxi":4688 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_func.pxi":4690 + * 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/_func.pxi":4691 + * raise 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__599, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4691, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 4691, __pyx_L1_error) + + /* "talib/_func.pxi":4690 + * 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/_func.pxi":4692 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":4693 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = open.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4693, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 4693, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":4692 + * 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 = close.data + */ + } + + /* "talib/_func.pxi":4694 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = open.shape[0] + * if length != high.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_func.pxi":4695 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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/_func.pxi":4696 + * close_data = 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/_func.pxi":4697 + * 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__600, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4697, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 4697, __pyx_L1_error) + + /* "talib/_func.pxi":4696 + * close_data = close.data + * length = open.shape[0] + * if length != high.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != low.shape[0]: + */ + } + + /* "talib/_func.pxi":4698 + * 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/_func.pxi":4699 + * 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__601, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 4699, __pyx_L1_error) + + /* "talib/_func.pxi":4698 + * 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/_func.pxi":4700 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":4701 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__602, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 4701, __pyx_L1_error) + + /* "talib/_func.pxi":4700 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + } + + /* "talib/_func.pxi":4702 + * if length != close.shape[0]: + * raise Exception("input lengths are different") + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = open_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":4703 + * raise Exception("input lengths are different") + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = open_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":4704 + * begidx = 0 + * for i from 0 <= i < length: + * val = open_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_open_data[__pyx_v_i]); + + /* "talib/_func.pxi":4705 + * for i from 0 <= i < length: + * val = open_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = high_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":4706 + * val = open_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = high_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":4705 + * for i from 0 <= i < length: + * val = open_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = high_data[i] + */ + } + + /* "talib/_func.pxi":4707 + * if val != val: + * continue + * val = high_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); + + /* "talib/_func.pxi":4708 + * continue + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":4709 + * val = high_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = low_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":4708 + * continue + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + } + + /* "talib/_func.pxi":4710 + * if val != val: + * continue + * val = low_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); + + /* "talib/_func.pxi":4711 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":4712 + * val = low_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = close_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":4711 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + } + + /* "talib/_func.pxi":4713 + * if val != val: + * continue + * val = close_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); + + /* "talib/_func.pxi":4714 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":4715 + * val = close_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":4714 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":4716 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":4717 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L19_break; + __pyx_L18_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":4719 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLMARUBOZU_Lookback( ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__603, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4719, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 4719, __pyx_L1_error) + } + __pyx_L19_break:; + + /* "talib/_func.pxi":4720 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_CDLMARUBOZU_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":4721 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLMARUBOZU_Lookback( ) # <<<<<<<<<<<<<< + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_CDLMARUBOZU_Lookback()); + + /* "talib/_func.pxi":4722 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLMARUBOZU_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4722, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 4722, __pyx_L1_error) + __pyx_v_outinteger = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":4723 + * lookback = begidx + lib.TA_CDLMARUBOZU_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 + */ + __pyx_v_outinteger_data = ((int *)__pyx_v_outinteger->data); + + /* "talib/_func.pxi":4724 + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLMARUBOZU( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":4725 + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 # <<<<<<<<<<<<<< + * retCode = lib.TA_CDLMARUBOZU( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLMARUBOZU", retCode) + */ + (__pyx_v_outinteger_data[__pyx_v_i]) = 0; + } + + /* "talib/_func.pxi":4726 + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLMARUBOZU( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_CDLMARUBOZU", retCode) + * return outinteger + */ + __pyx_v_retCode = TA_CDLMARUBOZU(0, __pyx_v_endidx, ((double *)(__pyx_v_open_data + __pyx_v_begidx)), ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outinteger_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":4727 + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLMARUBOZU( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLMARUBOZU", retCode) # <<<<<<<<<<<<<< + * return outinteger + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CDLMARUBOZU, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4727, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":4728 + * retCode = lib.TA_CDLMARUBOZU( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLMARUBOZU", retCode) + * return outinteger # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outinteger)); + __pyx_r = ((PyObject *)__pyx_v_outinteger); + goto __pyx_L0; + + /* "talib/_func.pxi":4644 + * @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.c_ta_lib.CDLMARUBOZU", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outinteger); + __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/_func.pxi":4732 + * @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_8c_ta_lib_125CDLMATCHINGLOW(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_124CDLMATCHINGLOW[] = " 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_8c_ta_lib_125CDLMATCHINGLOW = {"CDLMATCHINGLOW", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_125CDLMATCHINGLOW, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_124CDLMATCHINGLOW}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_125CDLMATCHINGLOW(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(2, 4732, __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(2, 4732, __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(2, 4732, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "CDLMATCHINGLOW") < 0)) __PYX_ERR(2, 4732, __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(2, 4732, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 4732, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(2, 4732, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(2, 4732, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(2, 4732, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_124CDLMATCHINGLOW(__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_8c_ta_lib_124CDLMATCHINGLOW(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; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + 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; + PyArrayObject *__pyx_v_outinteger = 0; + int *__pyx_v_outinteger_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __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/_func.pxi":4755 + * np.ndarray outinteger + * int* outinteger_data + * 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/_func.pxi":4756 + * int* outinteger_data + * 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__604, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 4756, __pyx_L1_error) + + /* "talib/_func.pxi":4755 + * np.ndarray outinteger + * int* outinteger_data + * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("open is not double") + * if open.ndim != 1: + */ + } + + /* "talib/_func.pxi":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/_func.pxi":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__605, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 4758, __pyx_L1_error) + + /* "talib/_func.pxi":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/_func.pxi":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 = open.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":4760 + * raise Exception("open has wrong dimensions") + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 4760, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":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 = open.data + */ + } + + /* "talib/_func.pxi":4761 + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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/_func.pxi":4762 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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/_func.pxi":4763 + * open_data = 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__606, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 4763, __pyx_L1_error) + + /* "talib/_func.pxi":4762 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_func.pxi":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/_func.pxi":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__607, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 4765, __pyx_L1_error) + + /* "talib/_func.pxi":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/_func.pxi":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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":4767 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 4767, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":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 = high.data + */ + } + + /* "talib/_func.pxi":4768 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":4769 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":4770 + * high_data = 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__608, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 4770, __pyx_L1_error) + + /* "talib/_func.pxi":4769 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_func.pxi":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/_func.pxi":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__609, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 4772, __pyx_L1_error) + + /* "talib/_func.pxi":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/_func.pxi":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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":4774 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 4774, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":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 = low.data + */ + } + + /* "talib/_func.pxi":4775 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":4776 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":4777 + * low_data = 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__610, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 4777, __pyx_L1_error) + + /* "talib/_func.pxi":4776 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_func.pxi":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/_func.pxi":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__611, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 4779, __pyx_L1_error) + + /* "talib/_func.pxi":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/_func.pxi":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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":4781 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = open.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 4781, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":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 = close.data + */ + } + + /* "talib/_func.pxi":4782 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = open.shape[0] + * if length != high.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_func.pxi":4783 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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/_func.pxi":4784 + * close_data = 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/_func.pxi":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__612, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 4785, __pyx_L1_error) + + /* "talib/_func.pxi":4784 + * close_data = close.data + * length = open.shape[0] + * if length != high.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != low.shape[0]: + */ + } + + /* "talib/_func.pxi":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/_func.pxi":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__613, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 4787, __pyx_L1_error) + + /* "talib/_func.pxi":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/_func.pxi":4788 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":4789 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__614, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 4789, __pyx_L1_error) + + /* "talib/_func.pxi":4788 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + } + + /* "talib/_func.pxi":4790 + * if length != close.shape[0]: + * raise Exception("input lengths are different") + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = open_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":4791 + * raise Exception("input lengths are different") + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = open_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":4792 + * begidx = 0 + * for i from 0 <= i < length: + * val = open_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_open_data[__pyx_v_i]); + + /* "talib/_func.pxi":4793 + * for i from 0 <= i < length: + * val = open_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = high_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":4794 + * val = open_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = high_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":4793 + * for i from 0 <= i < length: + * val = open_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = high_data[i] + */ + } + + /* "talib/_func.pxi":4795 + * if val != val: + * continue + * val = high_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); + + /* "talib/_func.pxi":4796 + * continue + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":4797 + * val = high_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = low_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":4796 + * continue + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + } + + /* "talib/_func.pxi":4798 + * if val != val: + * continue + * val = low_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); + + /* "talib/_func.pxi":4799 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":4800 + * val = low_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = close_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":4799 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + } + + /* "talib/_func.pxi":4801 + * if val != val: + * continue + * val = close_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); + + /* "talib/_func.pxi":4802 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":4803 + * val = close_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":4802 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":4804 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":4805 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L19_break; + __pyx_L18_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":4807 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLMATCHINGLOW_Lookback( ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__615, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4807, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 4807, __pyx_L1_error) + } + __pyx_L19_break:; + + /* "talib/_func.pxi":4808 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_CDLMATCHINGLOW_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":4809 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLMATCHINGLOW_Lookback( ) # <<<<<<<<<<<<<< + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_CDLMATCHINGLOW_Lookback()); + + /* "talib/_func.pxi":4810 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLMATCHINGLOW_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4810, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 4810, __pyx_L1_error) + __pyx_v_outinteger = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":4811 + * lookback = begidx + lib.TA_CDLMATCHINGLOW_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 + */ + __pyx_v_outinteger_data = ((int *)__pyx_v_outinteger->data); + + /* "talib/_func.pxi":4812 + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLMATCHINGLOW( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":4813 + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 # <<<<<<<<<<<<<< + * retCode = lib.TA_CDLMATCHINGLOW( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLMATCHINGLOW", retCode) + */ + (__pyx_v_outinteger_data[__pyx_v_i]) = 0; + } + + /* "talib/_func.pxi":4814 + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLMATCHINGLOW( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_CDLMATCHINGLOW", retCode) + * return outinteger + */ + __pyx_v_retCode = TA_CDLMATCHINGLOW(0, __pyx_v_endidx, ((double *)(__pyx_v_open_data + __pyx_v_begidx)), ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outinteger_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":4815 + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLMATCHINGLOW( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLMATCHINGLOW", retCode) # <<<<<<<<<<<<<< + * return outinteger + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CDLMATCHINGLOW, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4815, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":4816 + * retCode = lib.TA_CDLMATCHINGLOW( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLMATCHINGLOW", retCode) + * return outinteger # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outinteger)); + __pyx_r = ((PyObject *)__pyx_v_outinteger); + goto __pyx_L0; + + /* "talib/_func.pxi":4732 + * @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.c_ta_lib.CDLMATCHINGLOW", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outinteger); + __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/_func.pxi":4820 + * @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_8c_ta_lib_127CDLMATHOLD(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_126CDLMATHOLD[] = " 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_8c_ta_lib_127CDLMATHOLD = {"CDLMATHOLD", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_127CDLMATHOLD, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_126CDLMATHOLD}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_127CDLMATHOLD(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(2, 4820, __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(2, 4820, __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(2, 4820, __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(2, 4820, __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(2, 4820, __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(2, 4820, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 4820, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(2, 4820, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(2, 4820, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(2, 4820, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_126CDLMATHOLD(__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_8c_ta_lib_126CDLMATHOLD(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; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + 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; + PyArrayObject *__pyx_v_outinteger = 0; + int *__pyx_v_outinteger_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __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/_func.pxi":4845 + * np.ndarray outinteger + * int* outinteger_data + * 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/_func.pxi":4846 + * int* outinteger_data + * 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__616, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4846, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 4846, __pyx_L1_error) + + /* "talib/_func.pxi":4845 + * np.ndarray outinteger + * int* outinteger_data + * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("open is not double") + * if open.ndim != 1: + */ + } + + /* "talib/_func.pxi":4847 + * 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/_func.pxi":4848 + * 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__617, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4848, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 4848, __pyx_L1_error) + + /* "talib/_func.pxi":4847 + * 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/_func.pxi":4849 + * 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 = open.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":4850 + * raise Exception("open has wrong dimensions") + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4850, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 4850, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":4849 + * 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 = open.data + */ + } + + /* "talib/_func.pxi":4851 + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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/_func.pxi":4852 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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/_func.pxi":4853 + * open_data = 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__618, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 4853, __pyx_L1_error) + + /* "talib/_func.pxi":4852 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_func.pxi":4854 + * 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/_func.pxi":4855 + * raise 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__619, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 4855, __pyx_L1_error) + + /* "talib/_func.pxi":4854 + * 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/_func.pxi":4856 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":4857 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 4857, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":4856 + * 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 = high.data + */ + } + + /* "talib/_func.pxi":4858 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":4859 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":4860 + * high_data = 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__620, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4860, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 4860, __pyx_L1_error) + + /* "talib/_func.pxi":4859 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_func.pxi":4861 + * 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/_func.pxi":4862 + * raise 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__621, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4862, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 4862, __pyx_L1_error) + + /* "talib/_func.pxi":4861 + * 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/_func.pxi":4863 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":4864 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4864, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 4864, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":4863 + * 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 = low.data + */ + } + + /* "talib/_func.pxi":4865 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":4866 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":4867 + * low_data = 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__622, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4867, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 4867, __pyx_L1_error) + + /* "talib/_func.pxi":4866 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_func.pxi":4868 + * 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/_func.pxi":4869 + * raise 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__623, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4869, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 4869, __pyx_L1_error) + + /* "talib/_func.pxi":4868 + * 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/_func.pxi":4870 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":4871 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = open.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4871, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 4871, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":4870 + * 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 = close.data + */ + } + + /* "talib/_func.pxi":4872 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = open.shape[0] + * if length != high.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_func.pxi":4873 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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/_func.pxi":4874 + * close_data = 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/_func.pxi":4875 + * 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__624, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4875, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 4875, __pyx_L1_error) + + /* "talib/_func.pxi":4874 + * close_data = close.data + * length = open.shape[0] + * if length != high.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != low.shape[0]: + */ + } + + /* "talib/_func.pxi":4876 + * 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/_func.pxi":4877 + * 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__625, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4877, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 4877, __pyx_L1_error) + + /* "talib/_func.pxi":4876 + * 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/_func.pxi":4878 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":4879 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__626, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4879, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 4879, __pyx_L1_error) + + /* "talib/_func.pxi":4878 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + } + + /* "talib/_func.pxi":4880 + * if length != close.shape[0]: + * raise Exception("input lengths are different") + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = open_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":4881 + * raise Exception("input lengths are different") + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = open_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":4882 + * begidx = 0 + * for i from 0 <= i < length: + * val = open_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_open_data[__pyx_v_i]); + + /* "talib/_func.pxi":4883 + * for i from 0 <= i < length: + * val = open_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = high_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":4884 + * val = open_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = high_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":4883 + * for i from 0 <= i < length: + * val = open_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = high_data[i] + */ + } + + /* "talib/_func.pxi":4885 + * if val != val: + * continue + * val = high_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); + + /* "talib/_func.pxi":4886 + * continue + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":4887 + * val = high_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = low_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":4886 + * continue + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + } + + /* "talib/_func.pxi":4888 + * if val != val: + * continue + * val = low_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); + + /* "talib/_func.pxi":4889 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":4890 + * val = low_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = close_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":4889 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + } + + /* "talib/_func.pxi":4891 + * if val != val: + * continue + * val = close_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); + + /* "talib/_func.pxi":4892 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":4893 + * val = close_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":4892 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":4894 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":4895 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L19_break; + __pyx_L18_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":4897 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLMATHOLD_Lookback( penetration ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__627, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4897, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 4897, __pyx_L1_error) + } + __pyx_L19_break:; + + /* "talib/_func.pxi":4898 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_CDLMATHOLD_Lookback( penetration ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":4899 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLMATHOLD_Lookback( penetration ) # <<<<<<<<<<<<<< + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_CDLMATHOLD_Lookback(__pyx_v_penetration)); + + /* "talib/_func.pxi":4900 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLMATHOLD_Lookback( penetration ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4900, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 4900, __pyx_L1_error) + __pyx_v_outinteger = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":4901 + * lookback = begidx + lib.TA_CDLMATHOLD_Lookback( penetration ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 + */ + __pyx_v_outinteger_data = ((int *)__pyx_v_outinteger->data); + + /* "talib/_func.pxi":4902 + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLMATHOLD( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , penetration , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":4903 + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 # <<<<<<<<<<<<<< + * retCode = lib.TA_CDLMATHOLD( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , penetration , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLMATHOLD", retCode) + */ + (__pyx_v_outinteger_data[__pyx_v_i]) = 0; + } + + /* "talib/_func.pxi":4904 + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLMATHOLD( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , penetration , &outbegidx , &outnbelement , (outinteger_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_CDLMATHOLD", retCode) + * return outinteger + */ + __pyx_v_retCode = TA_CDLMATHOLD(0, __pyx_v_endidx, ((double *)(__pyx_v_open_data + __pyx_v_begidx)), ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), __pyx_v_penetration, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outinteger_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":4905 + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLMATHOLD( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , penetration , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLMATHOLD", retCode) # <<<<<<<<<<<<<< + * return outinteger + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CDLMATHOLD, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4905, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":4906 + * retCode = lib.TA_CDLMATHOLD( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , penetration , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLMATHOLD", retCode) + * return outinteger # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outinteger)); + __pyx_r = ((PyObject *)__pyx_v_outinteger); + goto __pyx_L0; + + /* "talib/_func.pxi":4820 + * @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.c_ta_lib.CDLMATHOLD", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outinteger); + __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/_func.pxi":4910 + * @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_8c_ta_lib_129CDLMORNINGDOJISTAR(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_128CDLMORNINGDOJISTAR[] = " 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_8c_ta_lib_129CDLMORNINGDOJISTAR = {"CDLMORNINGDOJISTAR", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_129CDLMORNINGDOJISTAR, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_128CDLMORNINGDOJISTAR}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_129CDLMORNINGDOJISTAR(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(2, 4910, __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(2, 4910, __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(2, 4910, __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(2, 4910, __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(2, 4910, __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(2, 4910, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 4910, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(2, 4910, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(2, 4910, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(2, 4910, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_128CDLMORNINGDOJISTAR(__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_8c_ta_lib_128CDLMORNINGDOJISTAR(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; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + 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; + PyArrayObject *__pyx_v_outinteger = 0; + int *__pyx_v_outinteger_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __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/_func.pxi":4935 + * np.ndarray outinteger + * int* outinteger_data + * 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/_func.pxi":4936 + * int* outinteger_data + * 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__628, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 4936, __pyx_L1_error) + + /* "talib/_func.pxi":4935 + * np.ndarray outinteger + * int* outinteger_data + * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("open is not double") + * if open.ndim != 1: + */ + } + + /* "talib/_func.pxi":4937 + * 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/_func.pxi":4938 + * 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__629, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4938, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 4938, __pyx_L1_error) + + /* "talib/_func.pxi":4937 + * 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/_func.pxi":4939 + * 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 = open.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":4940 + * raise Exception("open has wrong dimensions") + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4940, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 4940, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":4939 + * 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 = open.data + */ + } + + /* "talib/_func.pxi":4941 + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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/_func.pxi":4942 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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/_func.pxi":4943 + * open_data = 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__630, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4943, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 4943, __pyx_L1_error) + + /* "talib/_func.pxi":4942 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_func.pxi":4944 + * 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/_func.pxi":4945 + * raise 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__631, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4945, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 4945, __pyx_L1_error) + + /* "talib/_func.pxi":4944 + * 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/_func.pxi":4946 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":4947 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4947, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 4947, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":4946 + * 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 = high.data + */ + } + + /* "talib/_func.pxi":4948 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":4949 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":4950 + * high_data = 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__632, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4950, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 4950, __pyx_L1_error) + + /* "talib/_func.pxi":4949 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_func.pxi":4951 + * 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/_func.pxi":4952 + * raise 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__633, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4952, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 4952, __pyx_L1_error) + + /* "talib/_func.pxi":4951 + * 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/_func.pxi":4953 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":4954 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4954, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 4954, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":4953 + * 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 = low.data + */ + } + + /* "talib/_func.pxi":4955 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":4956 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":4957 + * low_data = 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__634, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4957, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 4957, __pyx_L1_error) + + /* "talib/_func.pxi":4956 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_func.pxi":4958 + * 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/_func.pxi":4959 + * raise 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__635, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4959, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 4959, __pyx_L1_error) + + /* "talib/_func.pxi":4958 + * 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/_func.pxi":4960 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":4961 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = open.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4961, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 4961, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":4960 + * 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 = close.data + */ + } + + /* "talib/_func.pxi":4962 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = open.shape[0] + * if length != high.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_func.pxi":4963 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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/_func.pxi":4964 + * close_data = 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/_func.pxi":4965 + * 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__636, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4965, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 4965, __pyx_L1_error) + + /* "talib/_func.pxi":4964 + * close_data = close.data + * length = open.shape[0] + * if length != high.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != low.shape[0]: + */ + } + + /* "talib/_func.pxi":4966 + * 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/_func.pxi":4967 + * 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__637, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4967, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 4967, __pyx_L1_error) + + /* "talib/_func.pxi":4966 + * 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/_func.pxi":4968 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":4969 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__638, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4969, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 4969, __pyx_L1_error) + + /* "talib/_func.pxi":4968 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + } + + /* "talib/_func.pxi":4970 + * if length != close.shape[0]: + * raise Exception("input lengths are different") + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = open_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":4971 + * raise Exception("input lengths are different") + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = open_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":4972 + * begidx = 0 + * for i from 0 <= i < length: + * val = open_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_open_data[__pyx_v_i]); + + /* "talib/_func.pxi":4973 + * for i from 0 <= i < length: + * val = open_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = high_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":4974 + * val = open_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = high_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":4973 + * for i from 0 <= i < length: + * val = open_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = high_data[i] + */ + } + + /* "talib/_func.pxi":4975 + * if val != val: + * continue + * val = high_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); + + /* "talib/_func.pxi":4976 + * continue + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":4977 + * val = high_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = low_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":4976 + * continue + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + } + + /* "talib/_func.pxi":4978 + * if val != val: + * continue + * val = low_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); + + /* "talib/_func.pxi":4979 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":4980 + * val = low_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = close_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":4979 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + } + + /* "talib/_func.pxi":4981 + * if val != val: + * continue + * val = close_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); + + /* "talib/_func.pxi":4982 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":4983 + * val = close_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":4982 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":4984 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":4985 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L19_break; + __pyx_L18_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":4987 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLMORNINGDOJISTAR_Lookback( penetration ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__639, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4987, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 4987, __pyx_L1_error) + } + __pyx_L19_break:; + + /* "talib/_func.pxi":4988 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_CDLMORNINGDOJISTAR_Lookback( penetration ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":4989 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLMORNINGDOJISTAR_Lookback( penetration ) # <<<<<<<<<<<<<< + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_CDLMORNINGDOJISTAR_Lookback(__pyx_v_penetration)); + + /* "talib/_func.pxi":4990 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLMORNINGDOJISTAR_Lookback( penetration ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4990, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 4990, __pyx_L1_error) + __pyx_v_outinteger = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":4991 + * lookback = begidx + lib.TA_CDLMORNINGDOJISTAR_Lookback( penetration ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 + */ + __pyx_v_outinteger_data = ((int *)__pyx_v_outinteger->data); + + /* "talib/_func.pxi":4992 + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLMORNINGDOJISTAR( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , penetration , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":4993 + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 # <<<<<<<<<<<<<< + * retCode = lib.TA_CDLMORNINGDOJISTAR( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , penetration , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLMORNINGDOJISTAR", retCode) + */ + (__pyx_v_outinteger_data[__pyx_v_i]) = 0; + } + + /* "talib/_func.pxi":4994 + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLMORNINGDOJISTAR( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , penetration , &outbegidx , &outnbelement , (outinteger_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_CDLMORNINGDOJISTAR", retCode) + * return outinteger + */ + __pyx_v_retCode = TA_CDLMORNINGDOJISTAR(0, __pyx_v_endidx, ((double *)(__pyx_v_open_data + __pyx_v_begidx)), ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), __pyx_v_penetration, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outinteger_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":4995 + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLMORNINGDOJISTAR( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , penetration , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLMORNINGDOJISTAR", retCode) # <<<<<<<<<<<<<< + * return outinteger + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CDLMORNINGDOJISTAR, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4995, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":4996 + * retCode = lib.TA_CDLMORNINGDOJISTAR( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , penetration , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLMORNINGDOJISTAR", retCode) + * return outinteger # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outinteger)); + __pyx_r = ((PyObject *)__pyx_v_outinteger); + goto __pyx_L0; + + /* "talib/_func.pxi":4910 + * @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.c_ta_lib.CDLMORNINGDOJISTAR", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outinteger); + __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/_func.pxi":5000 + * @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_8c_ta_lib_131CDLMORNINGSTAR(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_130CDLMORNINGSTAR[] = " 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_8c_ta_lib_131CDLMORNINGSTAR = {"CDLMORNINGSTAR", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_131CDLMORNINGSTAR, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_130CDLMORNINGSTAR}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_131CDLMORNINGSTAR(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(2, 5000, __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(2, 5000, __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(2, 5000, __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(2, 5000, __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(2, 5000, __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(2, 5000, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 5000, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(2, 5000, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(2, 5000, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(2, 5000, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_130CDLMORNINGSTAR(__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_8c_ta_lib_130CDLMORNINGSTAR(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; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + 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; + PyArrayObject *__pyx_v_outinteger = 0; + int *__pyx_v_outinteger_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __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/_func.pxi":5025 + * np.ndarray outinteger + * int* outinteger_data + * 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/_func.pxi":5026 + * int* outinteger_data + * 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__640, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5026, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 5026, __pyx_L1_error) + + /* "talib/_func.pxi":5025 + * np.ndarray outinteger + * int* outinteger_data + * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("open is not double") + * if open.ndim != 1: + */ + } + + /* "talib/_func.pxi":5027 + * 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/_func.pxi":5028 + * 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__641, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5028, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 5028, __pyx_L1_error) + + /* "talib/_func.pxi":5027 + * 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/_func.pxi":5029 + * 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 = open.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":5030 + * raise Exception("open has wrong dimensions") + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5030, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 5030, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":5029 + * 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 = open.data + */ + } + + /* "talib/_func.pxi":5031 + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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/_func.pxi":5032 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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/_func.pxi":5033 + * open_data = 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__642, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5033, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 5033, __pyx_L1_error) + + /* "talib/_func.pxi":5032 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_func.pxi":5034 + * 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/_func.pxi":5035 + * raise 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__643, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5035, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 5035, __pyx_L1_error) + + /* "talib/_func.pxi":5034 + * 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/_func.pxi":5036 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":5037 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5037, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 5037, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":5036 + * 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 = high.data + */ + } + + /* "talib/_func.pxi":5038 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":5039 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":5040 + * high_data = 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__644, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 5040, __pyx_L1_error) + + /* "talib/_func.pxi":5039 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_func.pxi":5041 + * 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/_func.pxi":5042 + * raise 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__645, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 5042, __pyx_L1_error) + + /* "talib/_func.pxi":5041 + * 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/_func.pxi":5043 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":5044 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 5044, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":5043 + * 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 = low.data + */ + } + + /* "talib/_func.pxi":5045 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":5046 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":5047 + * low_data = 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__646, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 5047, __pyx_L1_error) + + /* "talib/_func.pxi":5046 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_func.pxi":5048 + * 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/_func.pxi":5049 + * raise 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__647, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 5049, __pyx_L1_error) + + /* "talib/_func.pxi":5048 + * 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/_func.pxi":5050 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":5051 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = open.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 5051, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":5050 + * 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 = close.data + */ + } + + /* "talib/_func.pxi":5052 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = open.shape[0] + * if length != high.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_func.pxi":5053 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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/_func.pxi":5054 + * close_data = 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/_func.pxi":5055 + * 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__648, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 5055, __pyx_L1_error) + + /* "talib/_func.pxi":5054 + * close_data = close.data + * length = open.shape[0] + * if length != high.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != low.shape[0]: + */ + } + + /* "talib/_func.pxi":5056 + * 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/_func.pxi":5057 + * 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__649, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5057, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 5057, __pyx_L1_error) + + /* "talib/_func.pxi":5056 + * 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/_func.pxi":5058 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":5059 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__650, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5059, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 5059, __pyx_L1_error) + + /* "talib/_func.pxi":5058 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + } + + /* "talib/_func.pxi":5060 + * if length != close.shape[0]: + * raise Exception("input lengths are different") + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = open_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":5061 + * raise Exception("input lengths are different") + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = open_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":5062 + * begidx = 0 + * for i from 0 <= i < length: + * val = open_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_open_data[__pyx_v_i]); + + /* "talib/_func.pxi":5063 + * for i from 0 <= i < length: + * val = open_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = high_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":5064 + * val = open_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = high_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":5063 + * for i from 0 <= i < length: + * val = open_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = high_data[i] + */ + } + + /* "talib/_func.pxi":5065 + * if val != val: + * continue + * val = high_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); + + /* "talib/_func.pxi":5066 + * continue + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":5067 + * val = high_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = low_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":5066 + * continue + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + } + + /* "talib/_func.pxi":5068 + * if val != val: + * continue + * val = low_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); + + /* "talib/_func.pxi":5069 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":5070 + * val = low_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = close_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":5069 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + } + + /* "talib/_func.pxi":5071 + * if val != val: + * continue + * val = close_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); + + /* "talib/_func.pxi":5072 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":5073 + * val = close_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":5072 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":5074 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":5075 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L19_break; + __pyx_L18_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":5077 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLMORNINGSTAR_Lookback( penetration ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__651, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5077, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 5077, __pyx_L1_error) + } + __pyx_L19_break:; + + /* "talib/_func.pxi":5078 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_CDLMORNINGSTAR_Lookback( penetration ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":5079 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLMORNINGSTAR_Lookback( penetration ) # <<<<<<<<<<<<<< + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_CDLMORNINGSTAR_Lookback(__pyx_v_penetration)); + + /* "talib/_func.pxi":5080 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLMORNINGSTAR_Lookback( penetration ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5080, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 5080, __pyx_L1_error) + __pyx_v_outinteger = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":5081 + * lookback = begidx + lib.TA_CDLMORNINGSTAR_Lookback( penetration ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 + */ + __pyx_v_outinteger_data = ((int *)__pyx_v_outinteger->data); + + /* "talib/_func.pxi":5082 + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLMORNINGSTAR( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , penetration , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":5083 + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 # <<<<<<<<<<<<<< + * retCode = lib.TA_CDLMORNINGSTAR( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , penetration , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLMORNINGSTAR", retCode) + */ + (__pyx_v_outinteger_data[__pyx_v_i]) = 0; + } + + /* "talib/_func.pxi":5084 + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLMORNINGSTAR( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , penetration , &outbegidx , &outnbelement , (outinteger_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_CDLMORNINGSTAR", retCode) + * return outinteger + */ + __pyx_v_retCode = TA_CDLMORNINGSTAR(0, __pyx_v_endidx, ((double *)(__pyx_v_open_data + __pyx_v_begidx)), ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), __pyx_v_penetration, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outinteger_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":5085 + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLMORNINGSTAR( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , penetration , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLMORNINGSTAR", retCode) # <<<<<<<<<<<<<< + * return outinteger + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CDLMORNINGSTAR, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5085, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":5086 + * retCode = lib.TA_CDLMORNINGSTAR( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , penetration , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLMORNINGSTAR", retCode) + * return outinteger # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outinteger)); + __pyx_r = ((PyObject *)__pyx_v_outinteger); + goto __pyx_L0; + + /* "talib/_func.pxi":5000 + * @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.c_ta_lib.CDLMORNINGSTAR", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outinteger); + __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/_func.pxi":5090 + * @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_8c_ta_lib_133CDLONNECK(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_132CDLONNECK[] = " 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_8c_ta_lib_133CDLONNECK = {"CDLONNECK", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_133CDLONNECK, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_132CDLONNECK}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_133CDLONNECK(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(2, 5090, __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(2, 5090, __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(2, 5090, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "CDLONNECK") < 0)) __PYX_ERR(2, 5090, __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(2, 5090, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 5090, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(2, 5090, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(2, 5090, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(2, 5090, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_132CDLONNECK(__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_8c_ta_lib_132CDLONNECK(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; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + 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; + PyArrayObject *__pyx_v_outinteger = 0; + int *__pyx_v_outinteger_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __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/_func.pxi":5113 + * np.ndarray outinteger + * int* outinteger_data + * 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/_func.pxi":5114 + * int* outinteger_data + * 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__652, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5114, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 5114, __pyx_L1_error) + + /* "talib/_func.pxi":5113 + * np.ndarray outinteger + * int* outinteger_data + * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("open is not double") + * if open.ndim != 1: + */ + } + + /* "talib/_func.pxi":5115 + * 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/_func.pxi":5116 + * 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__653, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5116, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 5116, __pyx_L1_error) + + /* "talib/_func.pxi":5115 + * 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/_func.pxi":5117 + * 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 = open.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":5118 + * raise Exception("open has wrong dimensions") + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5118, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 5118, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":5117 + * 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 = open.data + */ + } + + /* "talib/_func.pxi":5119 + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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/_func.pxi":5120 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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/_func.pxi":5121 + * open_data = 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__654, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5121, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 5121, __pyx_L1_error) + + /* "talib/_func.pxi":5120 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_func.pxi":5122 + * 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/_func.pxi":5123 + * raise 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__655, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5123, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 5123, __pyx_L1_error) + + /* "talib/_func.pxi":5122 + * 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/_func.pxi":5124 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":5125 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5125, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 5125, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":5124 + * 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 = high.data + */ + } + + /* "talib/_func.pxi":5126 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":5127 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":5128 + * high_data = 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__656, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5128, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 5128, __pyx_L1_error) + + /* "talib/_func.pxi":5127 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_func.pxi":5129 + * 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/_func.pxi":5130 + * raise 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__657, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5130, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 5130, __pyx_L1_error) + + /* "talib/_func.pxi":5129 + * 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/_func.pxi":5131 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":5132 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5132, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 5132, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":5131 + * 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 = low.data + */ + } + + /* "talib/_func.pxi":5133 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":5134 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":5135 + * low_data = 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__658, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5135, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 5135, __pyx_L1_error) + + /* "talib/_func.pxi":5134 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_func.pxi":5136 + * 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/_func.pxi":5137 + * raise 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__659, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5137, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 5137, __pyx_L1_error) + + /* "talib/_func.pxi":5136 + * 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/_func.pxi":5138 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":5139 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = open.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5139, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 5139, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":5138 + * 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 = close.data + */ + } + + /* "talib/_func.pxi":5140 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = open.shape[0] + * if length != high.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_func.pxi":5141 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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/_func.pxi":5142 + * close_data = 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/_func.pxi":5143 + * 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__660, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 5143, __pyx_L1_error) + + /* "talib/_func.pxi":5142 + * close_data = close.data + * length = open.shape[0] + * if length != high.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != low.shape[0]: + */ + } + + /* "talib/_func.pxi":5144 + * 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/_func.pxi":5145 + * 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__661, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5145, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 5145, __pyx_L1_error) + + /* "talib/_func.pxi":5144 + * 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/_func.pxi":5146 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":5147 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__662, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5147, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 5147, __pyx_L1_error) + + /* "talib/_func.pxi":5146 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + } + + /* "talib/_func.pxi":5148 + * if length != close.shape[0]: + * raise Exception("input lengths are different") + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = open_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":5149 + * raise Exception("input lengths are different") + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = open_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":5150 + * begidx = 0 + * for i from 0 <= i < length: + * val = open_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_open_data[__pyx_v_i]); + + /* "talib/_func.pxi":5151 + * for i from 0 <= i < length: + * val = open_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = high_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":5152 + * val = open_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = high_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":5151 + * for i from 0 <= i < length: + * val = open_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = high_data[i] + */ + } + + /* "talib/_func.pxi":5153 + * if val != val: + * continue + * val = high_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); + + /* "talib/_func.pxi":5154 + * continue + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":5155 + * val = high_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = low_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":5154 + * continue + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + } + + /* "talib/_func.pxi":5156 + * if val != val: + * continue + * val = low_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); + + /* "talib/_func.pxi":5157 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":5158 + * val = low_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = close_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":5157 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + } + + /* "talib/_func.pxi":5159 + * if val != val: + * continue + * val = close_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); + + /* "talib/_func.pxi":5160 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":5161 + * val = close_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":5160 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":5162 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":5163 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L19_break; + __pyx_L18_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":5165 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLONNECK_Lookback( ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__663, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5165, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 5165, __pyx_L1_error) + } + __pyx_L19_break:; + + /* "talib/_func.pxi":5166 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_CDLONNECK_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":5167 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLONNECK_Lookback( ) # <<<<<<<<<<<<<< + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_CDLONNECK_Lookback()); + + /* "talib/_func.pxi":5168 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLONNECK_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5168, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 5168, __pyx_L1_error) + __pyx_v_outinteger = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":5169 + * lookback = begidx + lib.TA_CDLONNECK_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 + */ + __pyx_v_outinteger_data = ((int *)__pyx_v_outinteger->data); + + /* "talib/_func.pxi":5170 + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLONNECK( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":5171 + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 # <<<<<<<<<<<<<< + * retCode = lib.TA_CDLONNECK( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLONNECK", retCode) + */ + (__pyx_v_outinteger_data[__pyx_v_i]) = 0; + } + + /* "talib/_func.pxi":5172 + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLONNECK( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_CDLONNECK", retCode) + * return outinteger + */ + __pyx_v_retCode = TA_CDLONNECK(0, __pyx_v_endidx, ((double *)(__pyx_v_open_data + __pyx_v_begidx)), ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outinteger_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":5173 + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLONNECK( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLONNECK", retCode) # <<<<<<<<<<<<<< + * return outinteger + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CDLONNECK, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5173, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":5174 + * retCode = lib.TA_CDLONNECK( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLONNECK", retCode) + * return outinteger # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outinteger)); + __pyx_r = ((PyObject *)__pyx_v_outinteger); + goto __pyx_L0; + + /* "talib/_func.pxi":5090 + * @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.c_ta_lib.CDLONNECK", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outinteger); + __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/_func.pxi":5178 + * @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_8c_ta_lib_135CDLPIERCING(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_134CDLPIERCING[] = " 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_8c_ta_lib_135CDLPIERCING = {"CDLPIERCING", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_135CDLPIERCING, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_134CDLPIERCING}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_135CDLPIERCING(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(2, 5178, __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(2, 5178, __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(2, 5178, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "CDLPIERCING") < 0)) __PYX_ERR(2, 5178, __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(2, 5178, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 5178, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(2, 5178, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(2, 5178, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(2, 5178, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_134CDLPIERCING(__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_8c_ta_lib_134CDLPIERCING(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; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + 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; + PyArrayObject *__pyx_v_outinteger = 0; + int *__pyx_v_outinteger_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __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/_func.pxi":5201 + * np.ndarray outinteger + * int* outinteger_data + * 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/_func.pxi":5202 + * int* outinteger_data + * 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__664, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5202, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 5202, __pyx_L1_error) + + /* "talib/_func.pxi":5201 + * np.ndarray outinteger + * int* outinteger_data + * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("open is not double") + * if open.ndim != 1: + */ + } + + /* "talib/_func.pxi":5203 + * 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/_func.pxi":5204 + * 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__665, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5204, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 5204, __pyx_L1_error) + + /* "talib/_func.pxi":5203 + * 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/_func.pxi":5205 + * 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 = open.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":5206 + * raise Exception("open has wrong dimensions") + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5206, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 5206, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":5205 + * 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 = open.data + */ + } + + /* "talib/_func.pxi":5207 + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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/_func.pxi":5208 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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/_func.pxi":5209 + * open_data = 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__666, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 5209, __pyx_L1_error) + + /* "talib/_func.pxi":5208 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_func.pxi":5210 + * 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/_func.pxi":5211 + * raise 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__667, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 5211, __pyx_L1_error) + + /* "talib/_func.pxi":5210 + * 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/_func.pxi":5212 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":5213 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 5213, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":5212 + * 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 = high.data + */ + } + + /* "talib/_func.pxi":5214 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":5215 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":5216 + * high_data = 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__668, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5216, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 5216, __pyx_L1_error) + + /* "talib/_func.pxi":5215 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_func.pxi":5217 + * 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/_func.pxi":5218 + * raise 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__669, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5218, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 5218, __pyx_L1_error) + + /* "talib/_func.pxi":5217 + * 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/_func.pxi":5219 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":5220 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5220, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 5220, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":5219 + * 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 = low.data + */ + } + + /* "talib/_func.pxi":5221 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":5222 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":5223 + * low_data = 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__670, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5223, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 5223, __pyx_L1_error) + + /* "talib/_func.pxi":5222 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_func.pxi":5224 + * 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/_func.pxi":5225 + * raise 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__671, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5225, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 5225, __pyx_L1_error) + + /* "talib/_func.pxi":5224 + * 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/_func.pxi":5226 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":5227 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = open.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5227, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 5227, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":5226 + * 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 = close.data + */ + } + + /* "talib/_func.pxi":5228 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = open.shape[0] + * if length != high.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_func.pxi":5229 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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/_func.pxi":5230 + * close_data = 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/_func.pxi":5231 + * 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__672, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5231, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 5231, __pyx_L1_error) + + /* "talib/_func.pxi":5230 + * close_data = close.data + * length = open.shape[0] + * if length != high.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != low.shape[0]: + */ + } + + /* "talib/_func.pxi":5232 + * 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/_func.pxi":5233 + * 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__673, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5233, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 5233, __pyx_L1_error) + + /* "talib/_func.pxi":5232 + * 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/_func.pxi":5234 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":5235 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__674, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5235, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 5235, __pyx_L1_error) + + /* "talib/_func.pxi":5234 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + } + + /* "talib/_func.pxi":5236 + * if length != close.shape[0]: + * raise Exception("input lengths are different") + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = open_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":5237 + * raise Exception("input lengths are different") + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = open_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":5238 + * begidx = 0 + * for i from 0 <= i < length: + * val = open_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_open_data[__pyx_v_i]); + + /* "talib/_func.pxi":5239 + * for i from 0 <= i < length: + * val = open_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = high_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":5240 + * val = open_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = high_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":5239 + * for i from 0 <= i < length: + * val = open_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = high_data[i] + */ + } + + /* "talib/_func.pxi":5241 + * if val != val: + * continue + * val = high_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); + + /* "talib/_func.pxi":5242 + * continue + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":5243 + * val = high_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = low_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":5242 + * continue + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + } + + /* "talib/_func.pxi":5244 + * if val != val: + * continue + * val = low_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); + + /* "talib/_func.pxi":5245 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":5246 + * val = low_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = close_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":5245 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + } + + /* "talib/_func.pxi":5247 + * if val != val: + * continue + * val = close_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); + + /* "talib/_func.pxi":5248 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":5249 + * val = close_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":5248 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":5250 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":5251 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L19_break; + __pyx_L18_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":5253 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLPIERCING_Lookback( ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__675, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5253, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 5253, __pyx_L1_error) + } + __pyx_L19_break:; + + /* "talib/_func.pxi":5254 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_CDLPIERCING_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":5255 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLPIERCING_Lookback( ) # <<<<<<<<<<<<<< + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_CDLPIERCING_Lookback()); + + /* "talib/_func.pxi":5256 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLPIERCING_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5256, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 5256, __pyx_L1_error) + __pyx_v_outinteger = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":5257 + * lookback = begidx + lib.TA_CDLPIERCING_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 + */ + __pyx_v_outinteger_data = ((int *)__pyx_v_outinteger->data); + + /* "talib/_func.pxi":5258 + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLPIERCING( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":5259 + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 # <<<<<<<<<<<<<< + * retCode = lib.TA_CDLPIERCING( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLPIERCING", retCode) + */ + (__pyx_v_outinteger_data[__pyx_v_i]) = 0; + } + + /* "talib/_func.pxi":5260 + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLPIERCING( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_CDLPIERCING", retCode) + * return outinteger + */ + __pyx_v_retCode = TA_CDLPIERCING(0, __pyx_v_endidx, ((double *)(__pyx_v_open_data + __pyx_v_begidx)), ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outinteger_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":5261 + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLPIERCING( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLPIERCING", retCode) # <<<<<<<<<<<<<< + * return outinteger + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CDLPIERCING, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5261, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":5262 + * retCode = lib.TA_CDLPIERCING( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLPIERCING", retCode) + * return outinteger # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outinteger)); + __pyx_r = ((PyObject *)__pyx_v_outinteger); + goto __pyx_L0; + + /* "talib/_func.pxi":5178 + * @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.c_ta_lib.CDLPIERCING", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outinteger); + __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/_func.pxi":5266 + * @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_8c_ta_lib_137CDLRICKSHAWMAN(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_136CDLRICKSHAWMAN[] = " 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_8c_ta_lib_137CDLRICKSHAWMAN = {"CDLRICKSHAWMAN", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_137CDLRICKSHAWMAN, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_136CDLRICKSHAWMAN}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_137CDLRICKSHAWMAN(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(2, 5266, __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(2, 5266, __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(2, 5266, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "CDLRICKSHAWMAN") < 0)) __PYX_ERR(2, 5266, __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(2, 5266, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 5266, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(2, 5266, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(2, 5266, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(2, 5266, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_136CDLRICKSHAWMAN(__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_8c_ta_lib_136CDLRICKSHAWMAN(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; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + 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; + PyArrayObject *__pyx_v_outinteger = 0; + int *__pyx_v_outinteger_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __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/_func.pxi":5289 + * np.ndarray outinteger + * int* outinteger_data + * 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/_func.pxi":5290 + * int* outinteger_data + * 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__676, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5290, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 5290, __pyx_L1_error) + + /* "talib/_func.pxi":5289 + * np.ndarray outinteger + * int* outinteger_data + * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("open is not double") + * if open.ndim != 1: + */ + } + + /* "talib/_func.pxi":5291 + * 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/_func.pxi":5292 + * 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__677, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5292, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 5292, __pyx_L1_error) + + /* "talib/_func.pxi":5291 + * 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/_func.pxi":5293 + * 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 = open.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":5294 + * raise Exception("open has wrong dimensions") + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5294, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 5294, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":5293 + * 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 = open.data + */ + } + + /* "talib/_func.pxi":5295 + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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/_func.pxi":5296 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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/_func.pxi":5297 + * open_data = 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__678, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5297, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 5297, __pyx_L1_error) + + /* "talib/_func.pxi":5296 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_func.pxi":5298 + * 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/_func.pxi":5299 + * raise 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__679, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5299, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 5299, __pyx_L1_error) + + /* "talib/_func.pxi":5298 + * 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/_func.pxi":5300 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":5301 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5301, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 5301, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":5300 + * 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 = high.data + */ + } + + /* "talib/_func.pxi":5302 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":5303 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":5304 + * high_data = 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__680, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5304, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 5304, __pyx_L1_error) + + /* "talib/_func.pxi":5303 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_func.pxi":5305 + * 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/_func.pxi":5306 + * raise 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__681, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5306, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 5306, __pyx_L1_error) + + /* "talib/_func.pxi":5305 + * 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/_func.pxi":5307 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":5308 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5308, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 5308, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":5307 + * 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 = low.data + */ + } + + /* "talib/_func.pxi":5309 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":5310 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":5311 + * low_data = 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__682, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5311, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 5311, __pyx_L1_error) + + /* "talib/_func.pxi":5310 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_func.pxi":5312 + * 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/_func.pxi":5313 + * raise 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__683, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 5313, __pyx_L1_error) + + /* "talib/_func.pxi":5312 + * 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/_func.pxi":5314 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":5315 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = open.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5315, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 5315, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":5314 + * 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 = close.data + */ + } + + /* "talib/_func.pxi":5316 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = open.shape[0] + * if length != high.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_func.pxi":5317 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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/_func.pxi":5318 + * close_data = 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/_func.pxi":5319 + * 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__684, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5319, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 5319, __pyx_L1_error) + + /* "talib/_func.pxi":5318 + * close_data = close.data + * length = open.shape[0] + * if length != high.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != low.shape[0]: + */ + } + + /* "talib/_func.pxi":5320 + * 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/_func.pxi":5321 + * 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__685, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5321, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 5321, __pyx_L1_error) + + /* "talib/_func.pxi":5320 + * 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/_func.pxi":5322 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":5323 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__686, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5323, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 5323, __pyx_L1_error) + + /* "talib/_func.pxi":5322 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + } + + /* "talib/_func.pxi":5324 + * if length != close.shape[0]: + * raise Exception("input lengths are different") + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = open_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":5325 + * raise Exception("input lengths are different") + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = open_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":5326 + * begidx = 0 + * for i from 0 <= i < length: + * val = open_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_open_data[__pyx_v_i]); + + /* "talib/_func.pxi":5327 + * for i from 0 <= i < length: + * val = open_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = high_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":5328 + * val = open_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = high_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":5327 + * for i from 0 <= i < length: + * val = open_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = high_data[i] + */ + } + + /* "talib/_func.pxi":5329 + * if val != val: + * continue + * val = high_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); + + /* "talib/_func.pxi":5330 + * continue + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":5331 + * val = high_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = low_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":5330 + * continue + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + } + + /* "talib/_func.pxi":5332 + * if val != val: + * continue + * val = low_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); + + /* "talib/_func.pxi":5333 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":5334 + * val = low_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = close_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":5333 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + } + + /* "talib/_func.pxi":5335 + * if val != val: + * continue + * val = close_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); + + /* "talib/_func.pxi":5336 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":5337 + * val = close_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":5336 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":5338 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":5339 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L19_break; + __pyx_L18_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":5341 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLRICKSHAWMAN_Lookback( ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__687, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5341, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 5341, __pyx_L1_error) + } + __pyx_L19_break:; + + /* "talib/_func.pxi":5342 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_CDLRICKSHAWMAN_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":5343 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLRICKSHAWMAN_Lookback( ) # <<<<<<<<<<<<<< + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_CDLRICKSHAWMAN_Lookback()); + + /* "talib/_func.pxi":5344 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLRICKSHAWMAN_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5344, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 5344, __pyx_L1_error) + __pyx_v_outinteger = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":5345 + * lookback = begidx + lib.TA_CDLRICKSHAWMAN_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 + */ + __pyx_v_outinteger_data = ((int *)__pyx_v_outinteger->data); + + /* "talib/_func.pxi":5346 + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLRICKSHAWMAN( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":5347 + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 # <<<<<<<<<<<<<< + * retCode = lib.TA_CDLRICKSHAWMAN( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLRICKSHAWMAN", retCode) + */ + (__pyx_v_outinteger_data[__pyx_v_i]) = 0; + } + + /* "talib/_func.pxi":5348 + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLRICKSHAWMAN( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_CDLRICKSHAWMAN", retCode) + * return outinteger + */ + __pyx_v_retCode = TA_CDLRICKSHAWMAN(0, __pyx_v_endidx, ((double *)(__pyx_v_open_data + __pyx_v_begidx)), ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outinteger_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":5349 + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLRICKSHAWMAN( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLRICKSHAWMAN", retCode) # <<<<<<<<<<<<<< + * return outinteger + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CDLRICKSHAWMAN, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5349, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":5350 + * retCode = lib.TA_CDLRICKSHAWMAN( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLRICKSHAWMAN", retCode) + * return outinteger # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outinteger)); + __pyx_r = ((PyObject *)__pyx_v_outinteger); + goto __pyx_L0; + + /* "talib/_func.pxi":5266 + * @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.c_ta_lib.CDLRICKSHAWMAN", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outinteger); + __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/_func.pxi":5354 + * @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_8c_ta_lib_139CDLRISEFALL3METHODS(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_138CDLRISEFALL3METHODS[] = " 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_8c_ta_lib_139CDLRISEFALL3METHODS = {"CDLRISEFALL3METHODS", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_139CDLRISEFALL3METHODS, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_138CDLRISEFALL3METHODS}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_139CDLRISEFALL3METHODS(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(2, 5354, __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(2, 5354, __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(2, 5354, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "CDLRISEFALL3METHODS") < 0)) __PYX_ERR(2, 5354, __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(2, 5354, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 5354, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(2, 5354, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(2, 5354, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(2, 5354, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_138CDLRISEFALL3METHODS(__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_8c_ta_lib_138CDLRISEFALL3METHODS(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; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + 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; + PyArrayObject *__pyx_v_outinteger = 0; + int *__pyx_v_outinteger_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __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/_func.pxi":5377 + * np.ndarray outinteger + * int* outinteger_data + * 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/_func.pxi":5378 + * int* outinteger_data + * 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__688, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5378, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 5378, __pyx_L1_error) + + /* "talib/_func.pxi":5377 + * np.ndarray outinteger + * int* outinteger_data + * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("open is not double") + * if open.ndim != 1: + */ + } + + /* "talib/_func.pxi":5379 + * 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/_func.pxi":5380 + * 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__689, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5380, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 5380, __pyx_L1_error) + + /* "talib/_func.pxi":5379 + * 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/_func.pxi":5381 + * 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 = open.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":5382 + * raise Exception("open has wrong dimensions") + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5382, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 5382, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":5381 + * 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 = open.data + */ + } + + /* "talib/_func.pxi":5383 + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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/_func.pxi":5384 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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/_func.pxi":5385 + * open_data = 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__690, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 5385, __pyx_L1_error) + + /* "talib/_func.pxi":5384 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_func.pxi":5386 + * 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/_func.pxi":5387 + * raise 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__691, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 5387, __pyx_L1_error) + + /* "talib/_func.pxi":5386 + * 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/_func.pxi":5388 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":5389 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 5389, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":5388 + * 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 = high.data + */ + } + + /* "talib/_func.pxi":5390 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":5391 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":5392 + * high_data = 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__692, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5392, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 5392, __pyx_L1_error) + + /* "talib/_func.pxi":5391 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_func.pxi":5393 + * 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/_func.pxi":5394 + * raise 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__693, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5394, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 5394, __pyx_L1_error) + + /* "talib/_func.pxi":5393 + * 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/_func.pxi":5395 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":5396 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5396, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 5396, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":5395 + * 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 = low.data + */ + } + + /* "talib/_func.pxi":5397 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":5398 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":5399 + * low_data = 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__694, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5399, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 5399, __pyx_L1_error) + + /* "talib/_func.pxi":5398 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_func.pxi":5400 + * 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/_func.pxi":5401 + * raise 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__695, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5401, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 5401, __pyx_L1_error) + + /* "talib/_func.pxi":5400 + * 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/_func.pxi":5402 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":5403 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = open.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5403, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 5403, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":5402 + * 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 = close.data + */ + } + + /* "talib/_func.pxi":5404 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = open.shape[0] + * if length != high.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_func.pxi":5405 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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/_func.pxi":5406 + * close_data = 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/_func.pxi":5407 + * 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__696, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5407, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 5407, __pyx_L1_error) + + /* "talib/_func.pxi":5406 + * close_data = close.data + * length = open.shape[0] + * if length != high.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != low.shape[0]: + */ + } + + /* "talib/_func.pxi":5408 + * 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/_func.pxi":5409 + * 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__697, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5409, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 5409, __pyx_L1_error) + + /* "talib/_func.pxi":5408 + * 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/_func.pxi":5410 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":5411 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__698, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5411, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 5411, __pyx_L1_error) + + /* "talib/_func.pxi":5410 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + } + + /* "talib/_func.pxi":5412 + * if length != close.shape[0]: + * raise Exception("input lengths are different") + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = open_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":5413 + * raise Exception("input lengths are different") + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = open_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":5414 + * begidx = 0 + * for i from 0 <= i < length: + * val = open_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_open_data[__pyx_v_i]); + + /* "talib/_func.pxi":5415 + * for i from 0 <= i < length: + * val = open_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = high_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":5416 + * val = open_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = high_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":5415 + * for i from 0 <= i < length: + * val = open_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = high_data[i] + */ + } + + /* "talib/_func.pxi":5417 + * if val != val: + * continue + * val = high_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); + + /* "talib/_func.pxi":5418 + * continue + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":5419 + * val = high_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = low_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":5418 + * continue + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + } + + /* "talib/_func.pxi":5420 + * if val != val: + * continue + * val = low_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); + + /* "talib/_func.pxi":5421 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":5422 + * val = low_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = close_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":5421 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + } + + /* "talib/_func.pxi":5423 + * if val != val: + * continue + * val = close_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); + + /* "talib/_func.pxi":5424 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":5425 + * val = close_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":5424 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":5426 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":5427 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L19_break; + __pyx_L18_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":5429 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLRISEFALL3METHODS_Lookback( ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__699, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5429, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 5429, __pyx_L1_error) + } + __pyx_L19_break:; + + /* "talib/_func.pxi":5430 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_CDLRISEFALL3METHODS_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":5431 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLRISEFALL3METHODS_Lookback( ) # <<<<<<<<<<<<<< + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_CDLRISEFALL3METHODS_Lookback()); + + /* "talib/_func.pxi":5432 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLRISEFALL3METHODS_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5432, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 5432, __pyx_L1_error) + __pyx_v_outinteger = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":5433 + * lookback = begidx + lib.TA_CDLRISEFALL3METHODS_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 + */ + __pyx_v_outinteger_data = ((int *)__pyx_v_outinteger->data); + + /* "talib/_func.pxi":5434 + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLRISEFALL3METHODS( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":5435 + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 # <<<<<<<<<<<<<< + * retCode = lib.TA_CDLRISEFALL3METHODS( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLRISEFALL3METHODS", retCode) + */ + (__pyx_v_outinteger_data[__pyx_v_i]) = 0; + } + + /* "talib/_func.pxi":5436 + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLRISEFALL3METHODS( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_CDLRISEFALL3METHODS", retCode) + * return outinteger + */ + __pyx_v_retCode = TA_CDLRISEFALL3METHODS(0, __pyx_v_endidx, ((double *)(__pyx_v_open_data + __pyx_v_begidx)), ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outinteger_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":5437 + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLRISEFALL3METHODS( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLRISEFALL3METHODS", retCode) # <<<<<<<<<<<<<< + * return outinteger + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CDLRISEFALL3METHODS, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5437, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":5438 + * retCode = lib.TA_CDLRISEFALL3METHODS( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLRISEFALL3METHODS", retCode) + * return outinteger # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outinteger)); + __pyx_r = ((PyObject *)__pyx_v_outinteger); + goto __pyx_L0; + + /* "talib/_func.pxi":5354 + * @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.c_ta_lib.CDLRISEFALL3METHODS", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outinteger); + __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/_func.pxi":5442 + * @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_8c_ta_lib_141CDLSEPARATINGLINES(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_140CDLSEPARATINGLINES[] = " 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_8c_ta_lib_141CDLSEPARATINGLINES = {"CDLSEPARATINGLINES", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_141CDLSEPARATINGLINES, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_140CDLSEPARATINGLINES}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_141CDLSEPARATINGLINES(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(2, 5442, __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(2, 5442, __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(2, 5442, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "CDLSEPARATINGLINES") < 0)) __PYX_ERR(2, 5442, __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(2, 5442, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 5442, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(2, 5442, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(2, 5442, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(2, 5442, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_140CDLSEPARATINGLINES(__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_8c_ta_lib_140CDLSEPARATINGLINES(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; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + 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; + PyArrayObject *__pyx_v_outinteger = 0; + int *__pyx_v_outinteger_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __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/_func.pxi":5465 + * np.ndarray outinteger + * int* outinteger_data + * 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/_func.pxi":5466 + * int* outinteger_data + * 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__700, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5466, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 5466, __pyx_L1_error) + + /* "talib/_func.pxi":5465 + * np.ndarray outinteger + * int* outinteger_data + * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("open is not double") + * if open.ndim != 1: + */ + } + + /* "talib/_func.pxi":5467 + * 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/_func.pxi":5468 + * 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__701, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5468, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 5468, __pyx_L1_error) + + /* "talib/_func.pxi":5467 + * 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/_func.pxi":5469 + * 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 = open.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":5470 + * raise Exception("open has wrong dimensions") + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5470, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 5470, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":5469 + * 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 = open.data + */ + } + + /* "talib/_func.pxi":5471 + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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/_func.pxi":5472 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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/_func.pxi":5473 + * open_data = 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__702, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5473, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 5473, __pyx_L1_error) + + /* "talib/_func.pxi":5472 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_func.pxi":5474 + * 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/_func.pxi":5475 + * raise 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__703, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5475, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 5475, __pyx_L1_error) + + /* "talib/_func.pxi":5474 + * 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/_func.pxi":5476 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":5477 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5477, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 5477, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":5476 + * 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 = high.data + */ + } + + /* "talib/_func.pxi":5478 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":5479 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":5480 + * high_data = 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__704, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5480, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 5480, __pyx_L1_error) + + /* "talib/_func.pxi":5479 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_func.pxi":5481 + * 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/_func.pxi":5482 + * raise 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__705, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5482, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 5482, __pyx_L1_error) + + /* "talib/_func.pxi":5481 + * 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/_func.pxi":5483 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":5484 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5484, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 5484, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":5483 + * 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 = low.data + */ + } + + /* "talib/_func.pxi":5485 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":5486 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":5487 + * low_data = 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__706, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5487, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 5487, __pyx_L1_error) + + /* "talib/_func.pxi":5486 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_func.pxi":5488 + * 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/_func.pxi":5489 + * raise 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__707, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5489, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 5489, __pyx_L1_error) + + /* "talib/_func.pxi":5488 + * 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/_func.pxi":5490 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":5491 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = open.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5491, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 5491, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":5490 + * 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 = close.data + */ + } + + /* "talib/_func.pxi":5492 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = open.shape[0] + * if length != high.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_func.pxi":5493 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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/_func.pxi":5494 + * close_data = 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/_func.pxi":5495 + * 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__708, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5495, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 5495, __pyx_L1_error) + + /* "talib/_func.pxi":5494 + * close_data = close.data + * length = open.shape[0] + * if length != high.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != low.shape[0]: + */ + } + + /* "talib/_func.pxi":5496 + * 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/_func.pxi":5497 + * 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__709, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5497, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 5497, __pyx_L1_error) + + /* "talib/_func.pxi":5496 + * 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/_func.pxi":5498 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":5499 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__710, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5499, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 5499, __pyx_L1_error) + + /* "talib/_func.pxi":5498 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + } + + /* "talib/_func.pxi":5500 + * if length != close.shape[0]: + * raise Exception("input lengths are different") + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = open_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":5501 + * raise Exception("input lengths are different") + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = open_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":5502 + * begidx = 0 + * for i from 0 <= i < length: + * val = open_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_open_data[__pyx_v_i]); + + /* "talib/_func.pxi":5503 + * for i from 0 <= i < length: + * val = open_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = high_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":5504 + * val = open_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = high_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":5503 + * for i from 0 <= i < length: + * val = open_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = high_data[i] + */ + } + + /* "talib/_func.pxi":5505 + * if val != val: + * continue + * val = high_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); + + /* "talib/_func.pxi":5506 + * continue + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":5507 + * val = high_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = low_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":5506 + * continue + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + } + + /* "talib/_func.pxi":5508 + * if val != val: + * continue + * val = low_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); + + /* "talib/_func.pxi":5509 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":5510 + * val = low_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = close_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":5509 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + } + + /* "talib/_func.pxi":5511 + * if val != val: + * continue + * val = close_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); + + /* "talib/_func.pxi":5512 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":5513 + * val = close_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":5512 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":5514 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":5515 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L19_break; + __pyx_L18_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":5517 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLSEPARATINGLINES_Lookback( ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__711, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5517, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 5517, __pyx_L1_error) + } + __pyx_L19_break:; + + /* "talib/_func.pxi":5518 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_CDLSEPARATINGLINES_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":5519 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLSEPARATINGLINES_Lookback( ) # <<<<<<<<<<<<<< + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_CDLSEPARATINGLINES_Lookback()); + + /* "talib/_func.pxi":5520 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLSEPARATINGLINES_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5520, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 5520, __pyx_L1_error) + __pyx_v_outinteger = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":5521 + * lookback = begidx + lib.TA_CDLSEPARATINGLINES_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 + */ + __pyx_v_outinteger_data = ((int *)__pyx_v_outinteger->data); + + /* "talib/_func.pxi":5522 + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLSEPARATINGLINES( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":5523 + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 # <<<<<<<<<<<<<< + * retCode = lib.TA_CDLSEPARATINGLINES( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLSEPARATINGLINES", retCode) + */ + (__pyx_v_outinteger_data[__pyx_v_i]) = 0; + } + + /* "talib/_func.pxi":5524 + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLSEPARATINGLINES( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_CDLSEPARATINGLINES", retCode) + * return outinteger + */ + __pyx_v_retCode = TA_CDLSEPARATINGLINES(0, __pyx_v_endidx, ((double *)(__pyx_v_open_data + __pyx_v_begidx)), ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outinteger_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":5525 + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLSEPARATINGLINES( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLSEPARATINGLINES", retCode) # <<<<<<<<<<<<<< + * return outinteger + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CDLSEPARATINGLINES, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5525, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":5526 + * retCode = lib.TA_CDLSEPARATINGLINES( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLSEPARATINGLINES", retCode) + * return outinteger # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outinteger)); + __pyx_r = ((PyObject *)__pyx_v_outinteger); + goto __pyx_L0; + + /* "talib/_func.pxi":5442 + * @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.c_ta_lib.CDLSEPARATINGLINES", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outinteger); + __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/_func.pxi":5530 + * @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_8c_ta_lib_143CDLSHOOTINGSTAR(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_142CDLSHOOTINGSTAR[] = " 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_8c_ta_lib_143CDLSHOOTINGSTAR = {"CDLSHOOTINGSTAR", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_143CDLSHOOTINGSTAR, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_142CDLSHOOTINGSTAR}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_143CDLSHOOTINGSTAR(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(2, 5530, __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(2, 5530, __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(2, 5530, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "CDLSHOOTINGSTAR") < 0)) __PYX_ERR(2, 5530, __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(2, 5530, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 5530, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(2, 5530, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(2, 5530, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(2, 5530, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_142CDLSHOOTINGSTAR(__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_8c_ta_lib_142CDLSHOOTINGSTAR(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; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + 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; + PyArrayObject *__pyx_v_outinteger = 0; + int *__pyx_v_outinteger_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __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/_func.pxi":5553 + * np.ndarray outinteger + * int* outinteger_data + * 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/_func.pxi":5554 + * int* outinteger_data + * 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(2, 5554, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 5554, __pyx_L1_error) + + /* "talib/_func.pxi":5553 + * np.ndarray outinteger + * int* outinteger_data + * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("open is not double") + * if open.ndim != 1: + */ + } + + /* "talib/_func.pxi":5555 + * 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/_func.pxi":5556 + * 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(2, 5556, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 5556, __pyx_L1_error) + + /* "talib/_func.pxi":5555 + * 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/_func.pxi":5557 + * 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 = open.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":5558 + * raise Exception("open has wrong dimensions") + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5558, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 5558, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":5557 + * 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 = open.data + */ + } + + /* "talib/_func.pxi":5559 + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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/_func.pxi":5560 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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/_func.pxi":5561 + * open_data = 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(2, 5561, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 5561, __pyx_L1_error) + + /* "talib/_func.pxi":5560 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_func.pxi":5562 + * 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/_func.pxi":5563 + * raise 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(2, 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(2, 5563, __pyx_L1_error) + + /* "talib/_func.pxi":5562 + * 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/_func.pxi":5564 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":5565 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5565, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 5565, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":5564 + * 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 = high.data + */ + } + + /* "talib/_func.pxi":5566 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":5567 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":5568 + * high_data = 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(2, 5568, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 5568, __pyx_L1_error) + + /* "talib/_func.pxi":5567 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_func.pxi":5569 + * 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/_func.pxi":5570 + * raise 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(2, 5570, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 5570, __pyx_L1_error) + + /* "talib/_func.pxi":5569 + * 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/_func.pxi":5571 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":5572 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5572, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 5572, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":5571 + * 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 = low.data + */ + } + + /* "talib/_func.pxi":5573 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":5574 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":5575 + * low_data = 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(2, 5575, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 5575, __pyx_L1_error) + + /* "talib/_func.pxi":5574 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_func.pxi":5576 + * 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/_func.pxi":5577 + * raise 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(2, 5577, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 5577, __pyx_L1_error) + + /* "talib/_func.pxi":5576 + * 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/_func.pxi":5578 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":5579 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = open.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5579, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 5579, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":5578 + * 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 = close.data + */ + } + + /* "talib/_func.pxi":5580 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = open.shape[0] + * if length != high.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_func.pxi":5581 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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/_func.pxi":5582 + * close_data = 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/_func.pxi":5583 + * 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(2, 5583, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 5583, __pyx_L1_error) + + /* "talib/_func.pxi":5582 + * close_data = close.data + * length = open.shape[0] + * if length != high.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != low.shape[0]: + */ + } + + /* "talib/_func.pxi":5584 + * 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/_func.pxi":5585 + * 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(2, 5585, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 5585, __pyx_L1_error) + + /* "talib/_func.pxi":5584 + * 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/_func.pxi":5586 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":5587 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__722, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5587, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 5587, __pyx_L1_error) + + /* "talib/_func.pxi":5586 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + } + + /* "talib/_func.pxi":5588 + * if length != close.shape[0]: + * raise Exception("input lengths are different") + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = open_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":5589 + * raise Exception("input lengths are different") + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = open_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":5590 + * begidx = 0 + * for i from 0 <= i < length: + * val = open_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_open_data[__pyx_v_i]); + + /* "talib/_func.pxi":5591 + * for i from 0 <= i < length: + * val = open_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = high_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":5592 + * val = open_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = high_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":5591 + * for i from 0 <= i < length: + * val = open_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = high_data[i] + */ + } + + /* "talib/_func.pxi":5593 + * if val != val: + * continue + * val = high_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); + + /* "talib/_func.pxi":5594 + * continue + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":5595 + * val = high_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = low_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":5594 + * continue + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + } + + /* "talib/_func.pxi":5596 + * if val != val: + * continue + * val = low_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); + + /* "talib/_func.pxi":5597 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":5598 + * val = low_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = close_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":5597 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + } + + /* "talib/_func.pxi":5599 + * if val != val: + * continue + * val = close_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); + + /* "talib/_func.pxi":5600 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":5601 + * val = close_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":5600 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":5602 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":5603 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L19_break; + __pyx_L18_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":5605 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLSHOOTINGSTAR_Lookback( ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__723, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5605, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 5605, __pyx_L1_error) + } + __pyx_L19_break:; + + /* "talib/_func.pxi":5606 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_CDLSHOOTINGSTAR_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":5607 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLSHOOTINGSTAR_Lookback( ) # <<<<<<<<<<<<<< + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_CDLSHOOTINGSTAR_Lookback()); + + /* "talib/_func.pxi":5608 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLSHOOTINGSTAR_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5608, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 5608, __pyx_L1_error) + __pyx_v_outinteger = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":5609 + * lookback = begidx + lib.TA_CDLSHOOTINGSTAR_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 + */ + __pyx_v_outinteger_data = ((int *)__pyx_v_outinteger->data); + + /* "talib/_func.pxi":5610 + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLSHOOTINGSTAR( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":5611 + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 # <<<<<<<<<<<<<< + * retCode = lib.TA_CDLSHOOTINGSTAR( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLSHOOTINGSTAR", retCode) + */ + (__pyx_v_outinteger_data[__pyx_v_i]) = 0; + } + + /* "talib/_func.pxi":5612 + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLSHOOTINGSTAR( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_CDLSHOOTINGSTAR", retCode) + * return outinteger + */ + __pyx_v_retCode = TA_CDLSHOOTINGSTAR(0, __pyx_v_endidx, ((double *)(__pyx_v_open_data + __pyx_v_begidx)), ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outinteger_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":5613 + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLSHOOTINGSTAR( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLSHOOTINGSTAR", retCode) # <<<<<<<<<<<<<< + * return outinteger + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CDLSHOOTINGSTAR, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5613, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":5614 + * retCode = lib.TA_CDLSHOOTINGSTAR( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLSHOOTINGSTAR", retCode) + * return outinteger # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outinteger)); + __pyx_r = ((PyObject *)__pyx_v_outinteger); + goto __pyx_L0; + + /* "talib/_func.pxi":5530 + * @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.c_ta_lib.CDLSHOOTINGSTAR", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outinteger); + __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/_func.pxi":5618 + * @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_8c_ta_lib_145CDLSHORTLINE(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_144CDLSHORTLINE[] = " 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_8c_ta_lib_145CDLSHORTLINE = {"CDLSHORTLINE", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_145CDLSHORTLINE, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_144CDLSHORTLINE}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_145CDLSHORTLINE(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(2, 5618, __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(2, 5618, __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(2, 5618, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "CDLSHORTLINE") < 0)) __PYX_ERR(2, 5618, __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(2, 5618, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 5618, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(2, 5618, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(2, 5618, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(2, 5618, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_144CDLSHORTLINE(__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_8c_ta_lib_144CDLSHORTLINE(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; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + 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; + PyArrayObject *__pyx_v_outinteger = 0; + int *__pyx_v_outinteger_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __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/_func.pxi":5641 + * np.ndarray outinteger + * int* outinteger_data + * 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/_func.pxi":5642 + * int* outinteger_data + * 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__724, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5642, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 5642, __pyx_L1_error) + + /* "talib/_func.pxi":5641 + * np.ndarray outinteger + * int* outinteger_data + * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("open is not double") + * if open.ndim != 1: + */ + } + + /* "talib/_func.pxi":5643 + * 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/_func.pxi":5644 + * 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__725, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5644, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 5644, __pyx_L1_error) + + /* "talib/_func.pxi":5643 + * 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/_func.pxi":5645 + * 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 = open.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":5646 + * raise Exception("open has wrong dimensions") + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5646, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 5646, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":5645 + * 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 = open.data + */ + } + + /* "talib/_func.pxi":5647 + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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/_func.pxi":5648 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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/_func.pxi":5649 + * open_data = 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__726, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5649, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 5649, __pyx_L1_error) + + /* "talib/_func.pxi":5648 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_func.pxi":5650 + * 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/_func.pxi":5651 + * raise 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__727, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5651, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 5651, __pyx_L1_error) + + /* "talib/_func.pxi":5650 + * 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/_func.pxi":5652 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":5653 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5653, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 5653, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":5652 + * 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 = high.data + */ + } + + /* "talib/_func.pxi":5654 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":5655 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":5656 + * high_data = 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__728, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5656, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 5656, __pyx_L1_error) + + /* "talib/_func.pxi":5655 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_func.pxi":5657 + * 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/_func.pxi":5658 + * raise 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__729, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5658, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 5658, __pyx_L1_error) + + /* "talib/_func.pxi":5657 + * 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/_func.pxi":5659 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":5660 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5660, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 5660, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":5659 + * 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 = low.data + */ + } + + /* "talib/_func.pxi":5661 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":5662 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":5663 + * low_data = 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__730, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5663, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 5663, __pyx_L1_error) + + /* "talib/_func.pxi":5662 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_func.pxi":5664 + * 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/_func.pxi":5665 + * raise 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__731, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5665, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 5665, __pyx_L1_error) + + /* "talib/_func.pxi":5664 + * 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/_func.pxi":5666 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":5667 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = open.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5667, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 5667, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":5666 + * 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 = close.data + */ + } + + /* "talib/_func.pxi":5668 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = open.shape[0] + * if length != high.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_func.pxi":5669 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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/_func.pxi":5670 + * close_data = 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/_func.pxi":5671 + * 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__732, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5671, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 5671, __pyx_L1_error) + + /* "talib/_func.pxi":5670 + * close_data = close.data + * length = open.shape[0] + * if length != high.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != low.shape[0]: + */ + } + + /* "talib/_func.pxi":5672 + * 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/_func.pxi":5673 + * 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__733, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5673, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 5673, __pyx_L1_error) + + /* "talib/_func.pxi":5672 + * 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/_func.pxi":5674 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":5675 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__734, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5675, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 5675, __pyx_L1_error) + + /* "talib/_func.pxi":5674 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + } + + /* "talib/_func.pxi":5676 + * if length != close.shape[0]: + * raise Exception("input lengths are different") + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = open_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":5677 + * raise Exception("input lengths are different") + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = open_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":5678 + * begidx = 0 + * for i from 0 <= i < length: + * val = open_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_open_data[__pyx_v_i]); + + /* "talib/_func.pxi":5679 + * for i from 0 <= i < length: + * val = open_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = high_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":5680 + * val = open_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = high_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":5679 + * for i from 0 <= i < length: + * val = open_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = high_data[i] + */ + } + + /* "talib/_func.pxi":5681 + * if val != val: + * continue + * val = high_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); + + /* "talib/_func.pxi":5682 + * continue + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":5683 + * val = high_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = low_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":5682 + * continue + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + } + + /* "talib/_func.pxi":5684 + * if val != val: + * continue + * val = low_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); + + /* "talib/_func.pxi":5685 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":5686 + * val = low_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = close_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":5685 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + } + + /* "talib/_func.pxi":5687 + * if val != val: + * continue + * val = close_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); + + /* "talib/_func.pxi":5688 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":5689 + * val = close_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":5688 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":5690 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":5691 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L19_break; + __pyx_L18_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":5693 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLSHORTLINE_Lookback( ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__735, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5693, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 5693, __pyx_L1_error) + } + __pyx_L19_break:; + + /* "talib/_func.pxi":5694 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_CDLSHORTLINE_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":5695 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLSHORTLINE_Lookback( ) # <<<<<<<<<<<<<< + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_CDLSHORTLINE_Lookback()); + + /* "talib/_func.pxi":5696 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLSHORTLINE_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5696, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 5696, __pyx_L1_error) + __pyx_v_outinteger = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":5697 + * lookback = begidx + lib.TA_CDLSHORTLINE_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 + */ + __pyx_v_outinteger_data = ((int *)__pyx_v_outinteger->data); + + /* "talib/_func.pxi":5698 + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLSHORTLINE( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":5699 + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 # <<<<<<<<<<<<<< + * retCode = lib.TA_CDLSHORTLINE( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLSHORTLINE", retCode) + */ + (__pyx_v_outinteger_data[__pyx_v_i]) = 0; + } + + /* "talib/_func.pxi":5700 + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLSHORTLINE( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_CDLSHORTLINE", retCode) + * return outinteger + */ + __pyx_v_retCode = TA_CDLSHORTLINE(0, __pyx_v_endidx, ((double *)(__pyx_v_open_data + __pyx_v_begidx)), ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outinteger_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":5701 + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLSHORTLINE( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLSHORTLINE", retCode) # <<<<<<<<<<<<<< + * return outinteger + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CDLSHORTLINE, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5701, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":5702 + * retCode = lib.TA_CDLSHORTLINE( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLSHORTLINE", retCode) + * return outinteger # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outinteger)); + __pyx_r = ((PyObject *)__pyx_v_outinteger); + goto __pyx_L0; + + /* "talib/_func.pxi":5618 + * @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.c_ta_lib.CDLSHORTLINE", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outinteger); + __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/_func.pxi":5706 + * @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_8c_ta_lib_147CDLSPINNINGTOP(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_146CDLSPINNINGTOP[] = " 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_8c_ta_lib_147CDLSPINNINGTOP = {"CDLSPINNINGTOP", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_147CDLSPINNINGTOP, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_146CDLSPINNINGTOP}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_147CDLSPINNINGTOP(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(2, 5706, __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(2, 5706, __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(2, 5706, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "CDLSPINNINGTOP") < 0)) __PYX_ERR(2, 5706, __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(2, 5706, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 5706, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(2, 5706, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(2, 5706, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(2, 5706, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_146CDLSPINNINGTOP(__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_8c_ta_lib_146CDLSPINNINGTOP(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; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + 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; + PyArrayObject *__pyx_v_outinteger = 0; + int *__pyx_v_outinteger_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __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/_func.pxi":5729 + * np.ndarray outinteger + * int* outinteger_data + * 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/_func.pxi":5730 + * int* outinteger_data + * 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__736, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5730, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 5730, __pyx_L1_error) + + /* "talib/_func.pxi":5729 + * np.ndarray outinteger + * int* outinteger_data + * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("open is not double") + * if open.ndim != 1: + */ + } + + /* "talib/_func.pxi":5731 + * 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/_func.pxi":5732 + * 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__737, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5732, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 5732, __pyx_L1_error) + + /* "talib/_func.pxi":5731 + * 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/_func.pxi":5733 + * 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 = open.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":5734 + * raise Exception("open has wrong dimensions") + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5734, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 5734, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":5733 + * 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 = open.data + */ + } + + /* "talib/_func.pxi":5735 + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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/_func.pxi":5736 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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/_func.pxi":5737 + * open_data = 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__738, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5737, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 5737, __pyx_L1_error) + + /* "talib/_func.pxi":5736 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_func.pxi":5738 + * 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/_func.pxi":5739 + * raise 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__739, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5739, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 5739, __pyx_L1_error) + + /* "talib/_func.pxi":5738 + * 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/_func.pxi":5740 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":5741 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5741, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 5741, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":5740 + * 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 = high.data + */ + } + + /* "talib/_func.pxi":5742 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":5743 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":5744 + * high_data = 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__740, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5744, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 5744, __pyx_L1_error) + + /* "talib/_func.pxi":5743 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_func.pxi":5745 + * 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/_func.pxi":5746 + * raise 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__741, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 5746, __pyx_L1_error) + + /* "talib/_func.pxi":5745 + * 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/_func.pxi":5747 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":5748 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5748, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 5748, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":5747 + * 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 = low.data + */ + } + + /* "talib/_func.pxi":5749 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":5750 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":5751 + * low_data = 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__742, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5751, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 5751, __pyx_L1_error) + + /* "talib/_func.pxi":5750 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_func.pxi":5752 + * 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/_func.pxi":5753 + * raise 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__743, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5753, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 5753, __pyx_L1_error) + + /* "talib/_func.pxi":5752 + * 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/_func.pxi":5754 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":5755 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = open.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5755, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 5755, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":5754 + * 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 = close.data + */ + } + + /* "talib/_func.pxi":5756 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = open.shape[0] + * if length != high.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_func.pxi":5757 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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/_func.pxi":5758 + * close_data = 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/_func.pxi":5759 + * 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__744, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5759, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 5759, __pyx_L1_error) + + /* "talib/_func.pxi":5758 + * close_data = close.data + * length = open.shape[0] + * if length != high.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != low.shape[0]: + */ + } + + /* "talib/_func.pxi":5760 + * 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/_func.pxi":5761 + * 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__745, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5761, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 5761, __pyx_L1_error) + + /* "talib/_func.pxi":5760 + * 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/_func.pxi":5762 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":5763 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__746, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5763, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 5763, __pyx_L1_error) + + /* "talib/_func.pxi":5762 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + } + + /* "talib/_func.pxi":5764 + * if length != close.shape[0]: + * raise Exception("input lengths are different") + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = open_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":5765 + * raise Exception("input lengths are different") + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = open_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":5766 + * begidx = 0 + * for i from 0 <= i < length: + * val = open_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_open_data[__pyx_v_i]); + + /* "talib/_func.pxi":5767 + * for i from 0 <= i < length: + * val = open_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = high_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":5768 + * val = open_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = high_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":5767 + * for i from 0 <= i < length: + * val = open_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = high_data[i] + */ + } + + /* "talib/_func.pxi":5769 + * if val != val: + * continue + * val = high_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); + + /* "talib/_func.pxi":5770 + * continue + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":5771 + * val = high_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = low_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":5770 + * continue + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + } + + /* "talib/_func.pxi":5772 + * if val != val: + * continue + * val = low_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); + + /* "talib/_func.pxi":5773 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":5774 + * val = low_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = close_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":5773 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + } + + /* "talib/_func.pxi":5775 + * if val != val: + * continue + * val = close_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); + + /* "talib/_func.pxi":5776 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":5777 + * val = close_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":5776 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":5778 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":5779 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L19_break; + __pyx_L18_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":5781 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLSPINNINGTOP_Lookback( ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__747, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5781, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 5781, __pyx_L1_error) + } + __pyx_L19_break:; + + /* "talib/_func.pxi":5782 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_CDLSPINNINGTOP_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":5783 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLSPINNINGTOP_Lookback( ) # <<<<<<<<<<<<<< + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_CDLSPINNINGTOP_Lookback()); + + /* "talib/_func.pxi":5784 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLSPINNINGTOP_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5784, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 5784, __pyx_L1_error) + __pyx_v_outinteger = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":5785 + * lookback = begidx + lib.TA_CDLSPINNINGTOP_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 + */ + __pyx_v_outinteger_data = ((int *)__pyx_v_outinteger->data); + + /* "talib/_func.pxi":5786 + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLSPINNINGTOP( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":5787 + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 # <<<<<<<<<<<<<< + * retCode = lib.TA_CDLSPINNINGTOP( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLSPINNINGTOP", retCode) + */ + (__pyx_v_outinteger_data[__pyx_v_i]) = 0; + } + + /* "talib/_func.pxi":5788 + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLSPINNINGTOP( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_CDLSPINNINGTOP", retCode) + * return outinteger + */ + __pyx_v_retCode = TA_CDLSPINNINGTOP(0, __pyx_v_endidx, ((double *)(__pyx_v_open_data + __pyx_v_begidx)), ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outinteger_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":5789 + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLSPINNINGTOP( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLSPINNINGTOP", retCode) # <<<<<<<<<<<<<< + * return outinteger + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CDLSPINNINGTOP, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5789, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":5790 + * retCode = lib.TA_CDLSPINNINGTOP( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLSPINNINGTOP", retCode) + * return outinteger # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outinteger)); + __pyx_r = ((PyObject *)__pyx_v_outinteger); + goto __pyx_L0; + + /* "talib/_func.pxi":5706 + * @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.c_ta_lib.CDLSPINNINGTOP", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outinteger); + __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/_func.pxi":5794 + * @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_8c_ta_lib_149CDLSTALLEDPATTERN(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_148CDLSTALLEDPATTERN[] = " 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_8c_ta_lib_149CDLSTALLEDPATTERN = {"CDLSTALLEDPATTERN", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_149CDLSTALLEDPATTERN, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_148CDLSTALLEDPATTERN}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_149CDLSTALLEDPATTERN(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(2, 5794, __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(2, 5794, __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(2, 5794, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "CDLSTALLEDPATTERN") < 0)) __PYX_ERR(2, 5794, __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(2, 5794, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 5794, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(2, 5794, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(2, 5794, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(2, 5794, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_148CDLSTALLEDPATTERN(__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_8c_ta_lib_148CDLSTALLEDPATTERN(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; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + 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; + PyArrayObject *__pyx_v_outinteger = 0; + int *__pyx_v_outinteger_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __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/_func.pxi":5817 + * np.ndarray outinteger + * int* outinteger_data + * 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/_func.pxi":5818 + * int* outinteger_data + * 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__748, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5818, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 5818, __pyx_L1_error) + + /* "talib/_func.pxi":5817 + * np.ndarray outinteger + * int* outinteger_data + * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("open is not double") + * if open.ndim != 1: + */ + } + + /* "talib/_func.pxi":5819 + * 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/_func.pxi":5820 + * 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__749, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5820, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 5820, __pyx_L1_error) + + /* "talib/_func.pxi":5819 + * 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/_func.pxi":5821 + * 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 = open.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":5822 + * raise Exception("open has wrong dimensions") + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5822, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 5822, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":5821 + * 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 = open.data + */ + } + + /* "talib/_func.pxi":5823 + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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/_func.pxi":5824 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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/_func.pxi":5825 + * open_data = 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__750, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5825, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 5825, __pyx_L1_error) + + /* "talib/_func.pxi":5824 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_func.pxi":5826 + * 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/_func.pxi":5827 + * raise 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__751, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5827, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 5827, __pyx_L1_error) + + /* "talib/_func.pxi":5826 + * 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/_func.pxi":5828 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":5829 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5829, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 5829, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":5828 + * 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 = high.data + */ + } + + /* "talib/_func.pxi":5830 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":5831 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":5832 + * high_data = 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__752, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5832, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 5832, __pyx_L1_error) + + /* "talib/_func.pxi":5831 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_func.pxi":5833 + * 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/_func.pxi":5834 + * raise 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__753, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5834, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 5834, __pyx_L1_error) + + /* "talib/_func.pxi":5833 + * 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/_func.pxi":5835 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":5836 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5836, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 5836, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":5835 + * 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 = low.data + */ + } + + /* "talib/_func.pxi":5837 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":5838 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":5839 + * low_data = 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__754, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5839, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 5839, __pyx_L1_error) + + /* "talib/_func.pxi":5838 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_func.pxi":5840 + * 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/_func.pxi":5841 + * raise 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__755, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5841, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 5841, __pyx_L1_error) + + /* "talib/_func.pxi":5840 + * 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/_func.pxi":5842 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":5843 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = open.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5843, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 5843, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":5842 + * 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 = close.data + */ + } + + /* "talib/_func.pxi":5844 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = open.shape[0] + * if length != high.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_func.pxi":5845 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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/_func.pxi":5846 + * close_data = 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/_func.pxi":5847 + * 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__756, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5847, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 5847, __pyx_L1_error) + + /* "talib/_func.pxi":5846 + * close_data = close.data + * length = open.shape[0] + * if length != high.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != low.shape[0]: + */ + } + + /* "talib/_func.pxi":5848 + * 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/_func.pxi":5849 + * 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__757, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5849, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 5849, __pyx_L1_error) + + /* "talib/_func.pxi":5848 + * 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/_func.pxi":5850 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":5851 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__758, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5851, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 5851, __pyx_L1_error) + + /* "talib/_func.pxi":5850 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + } + + /* "talib/_func.pxi":5852 + * if length != close.shape[0]: + * raise Exception("input lengths are different") + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = open_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":5853 + * raise Exception("input lengths are different") + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = open_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":5854 + * begidx = 0 + * for i from 0 <= i < length: + * val = open_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_open_data[__pyx_v_i]); + + /* "talib/_func.pxi":5855 + * for i from 0 <= i < length: + * val = open_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = high_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":5856 + * val = open_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = high_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":5855 + * for i from 0 <= i < length: + * val = open_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = high_data[i] + */ + } + + /* "talib/_func.pxi":5857 + * if val != val: + * continue + * val = high_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); + + /* "talib/_func.pxi":5858 + * continue + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":5859 + * val = high_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = low_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":5858 + * continue + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + } + + /* "talib/_func.pxi":5860 + * if val != val: + * continue + * val = low_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); + + /* "talib/_func.pxi":5861 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":5862 + * val = low_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = close_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":5861 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + } + + /* "talib/_func.pxi":5863 + * if val != val: + * continue + * val = close_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); + + /* "talib/_func.pxi":5864 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":5865 + * val = close_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":5864 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":5866 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":5867 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L19_break; + __pyx_L18_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":5869 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLSTALLEDPATTERN_Lookback( ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__759, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5869, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 5869, __pyx_L1_error) + } + __pyx_L19_break:; + + /* "talib/_func.pxi":5870 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_CDLSTALLEDPATTERN_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":5871 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLSTALLEDPATTERN_Lookback( ) # <<<<<<<<<<<<<< + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_CDLSTALLEDPATTERN_Lookback()); + + /* "talib/_func.pxi":5872 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLSTALLEDPATTERN_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5872, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 5872, __pyx_L1_error) + __pyx_v_outinteger = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":5873 + * lookback = begidx + lib.TA_CDLSTALLEDPATTERN_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 + */ + __pyx_v_outinteger_data = ((int *)__pyx_v_outinteger->data); + + /* "talib/_func.pxi":5874 + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLSTALLEDPATTERN( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":5875 + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 # <<<<<<<<<<<<<< + * retCode = lib.TA_CDLSTALLEDPATTERN( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLSTALLEDPATTERN", retCode) + */ + (__pyx_v_outinteger_data[__pyx_v_i]) = 0; + } + + /* "talib/_func.pxi":5876 + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLSTALLEDPATTERN( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_CDLSTALLEDPATTERN", retCode) + * return outinteger + */ + __pyx_v_retCode = TA_CDLSTALLEDPATTERN(0, __pyx_v_endidx, ((double *)(__pyx_v_open_data + __pyx_v_begidx)), ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outinteger_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":5877 + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLSTALLEDPATTERN( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLSTALLEDPATTERN", retCode) # <<<<<<<<<<<<<< + * return outinteger + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CDLSTALLEDPATTERN, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5877, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":5878 + * retCode = lib.TA_CDLSTALLEDPATTERN( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLSTALLEDPATTERN", retCode) + * return outinteger # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outinteger)); + __pyx_r = ((PyObject *)__pyx_v_outinteger); + goto __pyx_L0; + + /* "talib/_func.pxi":5794 + * @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.c_ta_lib.CDLSTALLEDPATTERN", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outinteger); + __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/_func.pxi":5882 + * @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_8c_ta_lib_151CDLSTICKSANDWICH(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_150CDLSTICKSANDWICH[] = " 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_8c_ta_lib_151CDLSTICKSANDWICH = {"CDLSTICKSANDWICH", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_151CDLSTICKSANDWICH, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_150CDLSTICKSANDWICH}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_151CDLSTICKSANDWICH(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(2, 5882, __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(2, 5882, __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(2, 5882, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "CDLSTICKSANDWICH") < 0)) __PYX_ERR(2, 5882, __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(2, 5882, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 5882, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(2, 5882, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(2, 5882, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(2, 5882, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_150CDLSTICKSANDWICH(__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_8c_ta_lib_150CDLSTICKSANDWICH(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; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + 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; + PyArrayObject *__pyx_v_outinteger = 0; + int *__pyx_v_outinteger_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __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/_func.pxi":5905 + * np.ndarray outinteger + * int* outinteger_data + * 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/_func.pxi":5906 + * int* outinteger_data + * 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__760, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5906, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 5906, __pyx_L1_error) + + /* "talib/_func.pxi":5905 + * np.ndarray outinteger + * int* outinteger_data + * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("open is not double") + * if open.ndim != 1: + */ + } + + /* "talib/_func.pxi":5907 + * 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/_func.pxi":5908 + * 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__761, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5908, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 5908, __pyx_L1_error) + + /* "talib/_func.pxi":5907 + * 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/_func.pxi":5909 + * 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 = open.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":5910 + * raise Exception("open has wrong dimensions") + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5910, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 5910, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":5909 + * 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 = open.data + */ + } + + /* "talib/_func.pxi":5911 + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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/_func.pxi":5912 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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/_func.pxi":5913 + * open_data = 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__762, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5913, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 5913, __pyx_L1_error) + + /* "talib/_func.pxi":5912 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_func.pxi":5914 + * 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/_func.pxi":5915 + * raise 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__763, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5915, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 5915, __pyx_L1_error) + + /* "talib/_func.pxi":5914 + * 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/_func.pxi":5916 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":5917 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5917, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 5917, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":5916 + * 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 = high.data + */ + } + + /* "talib/_func.pxi":5918 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":5919 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":5920 + * high_data = 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__764, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5920, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 5920, __pyx_L1_error) + + /* "talib/_func.pxi":5919 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_func.pxi":5921 + * 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/_func.pxi":5922 + * raise 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__765, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5922, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 5922, __pyx_L1_error) + + /* "talib/_func.pxi":5921 + * 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/_func.pxi":5923 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":5924 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5924, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 5924, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":5923 + * 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 = low.data + */ + } + + /* "talib/_func.pxi":5925 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":5926 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":5927 + * low_data = 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__766, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5927, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 5927, __pyx_L1_error) + + /* "talib/_func.pxi":5926 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_func.pxi":5928 + * 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/_func.pxi":5929 + * raise 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__767, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5929, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 5929, __pyx_L1_error) + + /* "talib/_func.pxi":5928 + * 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/_func.pxi":5930 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":5931 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = open.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5931, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 5931, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":5930 + * 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 = close.data + */ + } + + /* "talib/_func.pxi":5932 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = open.shape[0] + * if length != high.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_func.pxi":5933 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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/_func.pxi":5934 + * close_data = 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/_func.pxi":5935 + * 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__768, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5935, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 5935, __pyx_L1_error) + + /* "talib/_func.pxi":5934 + * close_data = close.data + * length = open.shape[0] + * if length != high.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != low.shape[0]: + */ + } + + /* "talib/_func.pxi":5936 + * 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/_func.pxi":5937 + * 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__769, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5937, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 5937, __pyx_L1_error) + + /* "talib/_func.pxi":5936 + * 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/_func.pxi":5938 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":5939 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__770, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5939, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 5939, __pyx_L1_error) + + /* "talib/_func.pxi":5938 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + } + + /* "talib/_func.pxi":5940 + * if length != close.shape[0]: + * raise Exception("input lengths are different") + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = open_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":5941 + * raise Exception("input lengths are different") + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = open_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":5942 + * begidx = 0 + * for i from 0 <= i < length: + * val = open_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_open_data[__pyx_v_i]); + + /* "talib/_func.pxi":5943 + * for i from 0 <= i < length: + * val = open_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = high_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":5944 + * val = open_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = high_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":5943 + * for i from 0 <= i < length: + * val = open_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = high_data[i] + */ + } + + /* "talib/_func.pxi":5945 + * if val != val: + * continue + * val = high_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); + + /* "talib/_func.pxi":5946 + * continue + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":5947 + * val = high_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = low_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":5946 + * continue + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + } + + /* "talib/_func.pxi":5948 + * if val != val: + * continue + * val = low_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); + + /* "talib/_func.pxi":5949 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":5950 + * val = low_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = close_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":5949 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + } + + /* "talib/_func.pxi":5951 + * if val != val: + * continue + * val = close_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); + + /* "talib/_func.pxi":5952 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":5953 + * val = close_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":5952 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":5954 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":5955 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L19_break; + __pyx_L18_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":5957 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLSTICKSANDWICH_Lookback( ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__771, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5957, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 5957, __pyx_L1_error) + } + __pyx_L19_break:; + + /* "talib/_func.pxi":5958 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_CDLSTICKSANDWICH_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":5959 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLSTICKSANDWICH_Lookback( ) # <<<<<<<<<<<<<< + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_CDLSTICKSANDWICH_Lookback()); + + /* "talib/_func.pxi":5960 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLSTICKSANDWICH_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5960, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 5960, __pyx_L1_error) + __pyx_v_outinteger = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":5961 + * lookback = begidx + lib.TA_CDLSTICKSANDWICH_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 + */ + __pyx_v_outinteger_data = ((int *)__pyx_v_outinteger->data); + + /* "talib/_func.pxi":5962 + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLSTICKSANDWICH( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":5963 + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 # <<<<<<<<<<<<<< + * retCode = lib.TA_CDLSTICKSANDWICH( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLSTICKSANDWICH", retCode) + */ + (__pyx_v_outinteger_data[__pyx_v_i]) = 0; + } + + /* "talib/_func.pxi":5964 + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLSTICKSANDWICH( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_CDLSTICKSANDWICH", retCode) + * return outinteger + */ + __pyx_v_retCode = TA_CDLSTICKSANDWICH(0, __pyx_v_endidx, ((double *)(__pyx_v_open_data + __pyx_v_begidx)), ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outinteger_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":5965 + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLSTICKSANDWICH( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLSTICKSANDWICH", retCode) # <<<<<<<<<<<<<< + * return outinteger + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CDLSTICKSANDWICH, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5965, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":5966 + * retCode = lib.TA_CDLSTICKSANDWICH( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLSTICKSANDWICH", retCode) + * return outinteger # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outinteger)); + __pyx_r = ((PyObject *)__pyx_v_outinteger); + goto __pyx_L0; + + /* "talib/_func.pxi":5882 + * @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.c_ta_lib.CDLSTICKSANDWICH", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outinteger); + __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/_func.pxi":5970 + * @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_8c_ta_lib_153CDLTAKURI(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_152CDLTAKURI[] = " 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_8c_ta_lib_153CDLTAKURI = {"CDLTAKURI", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_153CDLTAKURI, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_152CDLTAKURI}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_153CDLTAKURI(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(2, 5970, __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(2, 5970, __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(2, 5970, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "CDLTAKURI") < 0)) __PYX_ERR(2, 5970, __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(2, 5970, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 5970, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(2, 5970, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(2, 5970, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(2, 5970, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_152CDLTAKURI(__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_8c_ta_lib_152CDLTAKURI(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; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + 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; + PyArrayObject *__pyx_v_outinteger = 0; + int *__pyx_v_outinteger_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __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/_func.pxi":5993 + * np.ndarray outinteger + * int* outinteger_data + * 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/_func.pxi":5994 + * int* outinteger_data + * 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__772, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5994, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 5994, __pyx_L1_error) + + /* "talib/_func.pxi":5993 + * np.ndarray outinteger + * int* outinteger_data + * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("open is not double") + * if open.ndim != 1: + */ + } + + /* "talib/_func.pxi":5995 + * 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/_func.pxi":5996 + * 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__773, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5996, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 5996, __pyx_L1_error) + + /* "talib/_func.pxi":5995 + * 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/_func.pxi":5997 + * 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 = open.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":5998 + * raise Exception("open has wrong dimensions") + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5998, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 5998, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":5997 + * 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 = open.data + */ + } + + /* "talib/_func.pxi":5999 + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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/_func.pxi":6000 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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/_func.pxi":6001 + * open_data = 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__774, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6001, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 6001, __pyx_L1_error) + + /* "talib/_func.pxi":6000 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_func.pxi":6002 + * 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/_func.pxi":6003 + * raise 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__775, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6003, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 6003, __pyx_L1_error) + + /* "talib/_func.pxi":6002 + * 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/_func.pxi":6004 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":6005 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6005, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 6005, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":6004 + * 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 = high.data + */ + } + + /* "talib/_func.pxi":6006 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":6007 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":6008 + * high_data = 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__776, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6008, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 6008, __pyx_L1_error) + + /* "talib/_func.pxi":6007 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_func.pxi":6009 + * 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/_func.pxi":6010 + * raise 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__777, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6010, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 6010, __pyx_L1_error) + + /* "talib/_func.pxi":6009 + * 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/_func.pxi":6011 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":6012 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6012, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 6012, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":6011 + * 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 = low.data + */ + } + + /* "talib/_func.pxi":6013 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":6014 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":6015 + * low_data = 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__778, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6015, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 6015, __pyx_L1_error) + + /* "talib/_func.pxi":6014 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_func.pxi":6016 + * 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/_func.pxi":6017 + * raise 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__779, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6017, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 6017, __pyx_L1_error) + + /* "talib/_func.pxi":6016 + * 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/_func.pxi":6018 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":6019 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = open.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6019, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 6019, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":6018 + * 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 = close.data + */ + } + + /* "talib/_func.pxi":6020 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = open.shape[0] + * if length != high.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_func.pxi":6021 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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/_func.pxi":6022 + * close_data = 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/_func.pxi":6023 + * 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__780, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6023, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 6023, __pyx_L1_error) + + /* "talib/_func.pxi":6022 + * close_data = close.data + * length = open.shape[0] + * if length != high.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != low.shape[0]: + */ + } + + /* "talib/_func.pxi":6024 + * 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/_func.pxi":6025 + * 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__781, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6025, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 6025, __pyx_L1_error) + + /* "talib/_func.pxi":6024 + * 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/_func.pxi":6026 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":6027 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__782, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6027, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 6027, __pyx_L1_error) + + /* "talib/_func.pxi":6026 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + } + + /* "talib/_func.pxi":6028 + * if length != close.shape[0]: + * raise Exception("input lengths are different") + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = open_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":6029 + * raise Exception("input lengths are different") + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = open_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":6030 + * begidx = 0 + * for i from 0 <= i < length: + * val = open_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_open_data[__pyx_v_i]); + + /* "talib/_func.pxi":6031 + * for i from 0 <= i < length: + * val = open_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = high_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":6032 + * val = open_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = high_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":6031 + * for i from 0 <= i < length: + * val = open_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = high_data[i] + */ + } + + /* "talib/_func.pxi":6033 + * if val != val: + * continue + * val = high_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); + + /* "talib/_func.pxi":6034 + * continue + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":6035 + * val = high_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = low_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":6034 + * continue + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + } + + /* "talib/_func.pxi":6036 + * if val != val: + * continue + * val = low_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); + + /* "talib/_func.pxi":6037 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":6038 + * val = low_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = close_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":6037 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + } + + /* "talib/_func.pxi":6039 + * if val != val: + * continue + * val = close_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); + + /* "talib/_func.pxi":6040 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":6041 + * val = close_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":6040 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":6042 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":6043 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L19_break; + __pyx_L18_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":6045 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLTAKURI_Lookback( ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__783, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6045, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 6045, __pyx_L1_error) + } + __pyx_L19_break:; + + /* "talib/_func.pxi":6046 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_CDLTAKURI_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":6047 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLTAKURI_Lookback( ) # <<<<<<<<<<<<<< + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_CDLTAKURI_Lookback()); + + /* "talib/_func.pxi":6048 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLTAKURI_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6048, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 6048, __pyx_L1_error) + __pyx_v_outinteger = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":6049 + * lookback = begidx + lib.TA_CDLTAKURI_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 + */ + __pyx_v_outinteger_data = ((int *)__pyx_v_outinteger->data); + + /* "talib/_func.pxi":6050 + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLTAKURI( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":6051 + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 # <<<<<<<<<<<<<< + * retCode = lib.TA_CDLTAKURI( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLTAKURI", retCode) + */ + (__pyx_v_outinteger_data[__pyx_v_i]) = 0; + } + + /* "talib/_func.pxi":6052 + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLTAKURI( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_CDLTAKURI", retCode) + * return outinteger + */ + __pyx_v_retCode = TA_CDLTAKURI(0, __pyx_v_endidx, ((double *)(__pyx_v_open_data + __pyx_v_begidx)), ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outinteger_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":6053 + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLTAKURI( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLTAKURI", retCode) # <<<<<<<<<<<<<< + * return outinteger + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CDLTAKURI, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6053, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":6054 + * retCode = lib.TA_CDLTAKURI( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLTAKURI", retCode) + * return outinteger # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outinteger)); + __pyx_r = ((PyObject *)__pyx_v_outinteger); + goto __pyx_L0; + + /* "talib/_func.pxi":5970 + * @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.c_ta_lib.CDLTAKURI", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outinteger); + __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/_func.pxi":6058 + * @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_8c_ta_lib_155CDLTASUKIGAP(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_154CDLTASUKIGAP[] = " 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_8c_ta_lib_155CDLTASUKIGAP = {"CDLTASUKIGAP", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_155CDLTASUKIGAP, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_154CDLTASUKIGAP}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_155CDLTASUKIGAP(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(2, 6058, __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(2, 6058, __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(2, 6058, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "CDLTASUKIGAP") < 0)) __PYX_ERR(2, 6058, __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(2, 6058, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 6058, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(2, 6058, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(2, 6058, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(2, 6058, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_154CDLTASUKIGAP(__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_8c_ta_lib_154CDLTASUKIGAP(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; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + 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; + PyArrayObject *__pyx_v_outinteger = 0; + int *__pyx_v_outinteger_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __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/_func.pxi":6081 + * np.ndarray outinteger + * int* outinteger_data + * 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/_func.pxi":6082 + * int* outinteger_data + * 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__784, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6082, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 6082, __pyx_L1_error) + + /* "talib/_func.pxi":6081 + * np.ndarray outinteger + * int* outinteger_data + * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("open is not double") + * if open.ndim != 1: + */ + } + + /* "talib/_func.pxi":6083 + * 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/_func.pxi":6084 + * 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__785, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6084, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 6084, __pyx_L1_error) + + /* "talib/_func.pxi":6083 + * 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/_func.pxi":6085 + * 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 = open.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":6086 + * raise Exception("open has wrong dimensions") + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6086, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 6086, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":6085 + * 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 = open.data + */ + } + + /* "talib/_func.pxi":6087 + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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/_func.pxi":6088 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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/_func.pxi":6089 + * open_data = 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__786, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6089, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 6089, __pyx_L1_error) + + /* "talib/_func.pxi":6088 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_func.pxi":6090 + * 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/_func.pxi":6091 + * raise 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__787, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6091, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 6091, __pyx_L1_error) + + /* "talib/_func.pxi":6090 + * 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/_func.pxi":6092 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":6093 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6093, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 6093, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":6092 + * 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 = high.data + */ + } + + /* "talib/_func.pxi":6094 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":6095 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":6096 + * high_data = 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__788, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6096, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 6096, __pyx_L1_error) + + /* "talib/_func.pxi":6095 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_func.pxi":6097 + * 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/_func.pxi":6098 + * raise 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__789, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6098, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 6098, __pyx_L1_error) + + /* "talib/_func.pxi":6097 + * 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/_func.pxi":6099 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":6100 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6100, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 6100, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":6099 + * 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 = low.data + */ + } + + /* "talib/_func.pxi":6101 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":6102 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":6103 + * low_data = 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__790, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6103, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 6103, __pyx_L1_error) + + /* "talib/_func.pxi":6102 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_func.pxi":6104 + * 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/_func.pxi":6105 + * raise 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__791, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6105, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 6105, __pyx_L1_error) + + /* "talib/_func.pxi":6104 + * 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/_func.pxi":6106 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":6107 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = open.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6107, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 6107, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":6106 + * 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 = close.data + */ + } + + /* "talib/_func.pxi":6108 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = open.shape[0] + * if length != high.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_func.pxi":6109 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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/_func.pxi":6110 + * close_data = 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/_func.pxi":6111 + * 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__792, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6111, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 6111, __pyx_L1_error) + + /* "talib/_func.pxi":6110 + * close_data = close.data + * length = open.shape[0] + * if length != high.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != low.shape[0]: + */ + } + + /* "talib/_func.pxi":6112 + * 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/_func.pxi":6113 + * 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__793, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6113, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 6113, __pyx_L1_error) + + /* "talib/_func.pxi":6112 + * 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/_func.pxi":6114 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":6115 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__794, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6115, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 6115, __pyx_L1_error) + + /* "talib/_func.pxi":6114 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + } + + /* "talib/_func.pxi":6116 + * if length != close.shape[0]: + * raise Exception("input lengths are different") + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = open_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":6117 + * raise Exception("input lengths are different") + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = open_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":6118 + * begidx = 0 + * for i from 0 <= i < length: + * val = open_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_open_data[__pyx_v_i]); + + /* "talib/_func.pxi":6119 + * for i from 0 <= i < length: + * val = open_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = high_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":6120 + * val = open_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = high_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":6119 + * for i from 0 <= i < length: + * val = open_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = high_data[i] + */ + } + + /* "talib/_func.pxi":6121 + * if val != val: + * continue + * val = high_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); + + /* "talib/_func.pxi":6122 + * continue + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":6123 + * val = high_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = low_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":6122 + * continue + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + } + + /* "talib/_func.pxi":6124 + * if val != val: + * continue + * val = low_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); + + /* "talib/_func.pxi":6125 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":6126 + * val = low_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = close_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":6125 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + } + + /* "talib/_func.pxi":6127 + * if val != val: + * continue + * val = close_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); + + /* "talib/_func.pxi":6128 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":6129 + * val = close_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":6128 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":6130 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":6131 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L19_break; + __pyx_L18_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":6133 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLTASUKIGAP_Lookback( ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__795, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6133, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 6133, __pyx_L1_error) + } + __pyx_L19_break:; + + /* "talib/_func.pxi":6134 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_CDLTASUKIGAP_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":6135 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLTASUKIGAP_Lookback( ) # <<<<<<<<<<<<<< + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_CDLTASUKIGAP_Lookback()); + + /* "talib/_func.pxi":6136 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLTASUKIGAP_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6136, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 6136, __pyx_L1_error) + __pyx_v_outinteger = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":6137 + * lookback = begidx + lib.TA_CDLTASUKIGAP_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 + */ + __pyx_v_outinteger_data = ((int *)__pyx_v_outinteger->data); + + /* "talib/_func.pxi":6138 + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLTASUKIGAP( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":6139 + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 # <<<<<<<<<<<<<< + * retCode = lib.TA_CDLTASUKIGAP( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLTASUKIGAP", retCode) + */ + (__pyx_v_outinteger_data[__pyx_v_i]) = 0; + } + + /* "talib/_func.pxi":6140 + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLTASUKIGAP( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_CDLTASUKIGAP", retCode) + * return outinteger + */ + __pyx_v_retCode = TA_CDLTASUKIGAP(0, __pyx_v_endidx, ((double *)(__pyx_v_open_data + __pyx_v_begidx)), ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outinteger_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":6141 + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLTASUKIGAP( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLTASUKIGAP", retCode) # <<<<<<<<<<<<<< + * return outinteger + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CDLTASUKIGAP, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6141, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":6142 + * retCode = lib.TA_CDLTASUKIGAP( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLTASUKIGAP", retCode) + * return outinteger # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outinteger)); + __pyx_r = ((PyObject *)__pyx_v_outinteger); + goto __pyx_L0; + + /* "talib/_func.pxi":6058 + * @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.c_ta_lib.CDLTASUKIGAP", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outinteger); + __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/_func.pxi":6146 + * @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_8c_ta_lib_157CDLTHRUSTING(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_156CDLTHRUSTING[] = " 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_8c_ta_lib_157CDLTHRUSTING = {"CDLTHRUSTING", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_157CDLTHRUSTING, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_156CDLTHRUSTING}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_157CDLTHRUSTING(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(2, 6146, __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(2, 6146, __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(2, 6146, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "CDLTHRUSTING") < 0)) __PYX_ERR(2, 6146, __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(2, 6146, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 6146, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(2, 6146, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(2, 6146, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(2, 6146, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_156CDLTHRUSTING(__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_8c_ta_lib_156CDLTHRUSTING(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; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + 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; + PyArrayObject *__pyx_v_outinteger = 0; + int *__pyx_v_outinteger_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __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/_func.pxi":6169 + * np.ndarray outinteger + * int* outinteger_data + * 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/_func.pxi":6170 + * int* outinteger_data + * 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__796, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6170, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 6170, __pyx_L1_error) + + /* "talib/_func.pxi":6169 + * np.ndarray outinteger + * int* outinteger_data + * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("open is not double") + * if open.ndim != 1: + */ + } + + /* "talib/_func.pxi":6171 + * 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/_func.pxi":6172 + * 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__797, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6172, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 6172, __pyx_L1_error) + + /* "talib/_func.pxi":6171 + * 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/_func.pxi":6173 + * 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 = open.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":6174 + * raise Exception("open has wrong dimensions") + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6174, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 6174, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":6173 + * 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 = open.data + */ + } + + /* "talib/_func.pxi":6175 + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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/_func.pxi":6176 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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/_func.pxi":6177 + * open_data = 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__798, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6177, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 6177, __pyx_L1_error) + + /* "talib/_func.pxi":6176 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_func.pxi":6178 + * 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/_func.pxi":6179 + * raise 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(2, 6179, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 6179, __pyx_L1_error) + + /* "talib/_func.pxi":6178 + * 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/_func.pxi":6180 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":6181 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6181, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 6181, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":6180 + * 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 = high.data + */ + } + + /* "talib/_func.pxi":6182 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":6183 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":6184 + * high_data = 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(2, 6184, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 6184, __pyx_L1_error) + + /* "talib/_func.pxi":6183 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_func.pxi":6185 + * 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/_func.pxi":6186 + * raise 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(2, 6186, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 6186, __pyx_L1_error) + + /* "talib/_func.pxi":6185 + * 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/_func.pxi":6187 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":6188 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6188, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 6188, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":6187 + * 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 = low.data + */ + } + + /* "talib/_func.pxi":6189 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":6190 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":6191 + * low_data = 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(2, 6191, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 6191, __pyx_L1_error) + + /* "talib/_func.pxi":6190 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_func.pxi":6192 + * 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/_func.pxi":6193 + * raise 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(2, 6193, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 6193, __pyx_L1_error) + + /* "talib/_func.pxi":6192 + * 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/_func.pxi":6194 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":6195 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = open.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6195, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 6195, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":6194 + * 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 = close.data + */ + } + + /* "talib/_func.pxi":6196 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = open.shape[0] + * if length != high.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_func.pxi":6197 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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/_func.pxi":6198 + * close_data = 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/_func.pxi":6199 + * 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__804, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6199, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 6199, __pyx_L1_error) + + /* "talib/_func.pxi":6198 + * close_data = close.data + * length = open.shape[0] + * if length != high.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != low.shape[0]: + */ + } + + /* "talib/_func.pxi":6200 + * 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/_func.pxi":6201 + * 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__805, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6201, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 6201, __pyx_L1_error) + + /* "talib/_func.pxi":6200 + * 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/_func.pxi":6202 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":6203 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__806, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6203, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 6203, __pyx_L1_error) + + /* "talib/_func.pxi":6202 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + } + + /* "talib/_func.pxi":6204 + * if length != close.shape[0]: + * raise Exception("input lengths are different") + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = open_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":6205 + * raise Exception("input lengths are different") + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = open_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":6206 + * begidx = 0 + * for i from 0 <= i < length: + * val = open_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_open_data[__pyx_v_i]); + + /* "talib/_func.pxi":6207 + * for i from 0 <= i < length: + * val = open_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = high_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":6208 + * val = open_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = high_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":6207 + * for i from 0 <= i < length: + * val = open_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = high_data[i] + */ + } + + /* "talib/_func.pxi":6209 + * if val != val: + * continue + * val = high_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); + + /* "talib/_func.pxi":6210 + * continue + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":6211 + * val = high_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = low_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":6210 + * continue + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + } + + /* "talib/_func.pxi":6212 + * if val != val: + * continue + * val = low_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); + + /* "talib/_func.pxi":6213 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":6214 + * val = low_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = close_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":6213 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + } + + /* "talib/_func.pxi":6215 + * if val != val: + * continue + * val = close_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); + + /* "talib/_func.pxi":6216 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":6217 + * val = close_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":6216 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":6218 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":6219 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L19_break; + __pyx_L18_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":6221 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLTHRUSTING_Lookback( ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__807, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6221, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 6221, __pyx_L1_error) + } + __pyx_L19_break:; + + /* "talib/_func.pxi":6222 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_CDLTHRUSTING_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":6223 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLTHRUSTING_Lookback( ) # <<<<<<<<<<<<<< + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_CDLTHRUSTING_Lookback()); + + /* "talib/_func.pxi":6224 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLTHRUSTING_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6224, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 6224, __pyx_L1_error) + __pyx_v_outinteger = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":6225 + * lookback = begidx + lib.TA_CDLTHRUSTING_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 + */ + __pyx_v_outinteger_data = ((int *)__pyx_v_outinteger->data); + + /* "talib/_func.pxi":6226 + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLTHRUSTING( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":6227 + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 # <<<<<<<<<<<<<< + * retCode = lib.TA_CDLTHRUSTING( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLTHRUSTING", retCode) + */ + (__pyx_v_outinteger_data[__pyx_v_i]) = 0; + } + + /* "talib/_func.pxi":6228 + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLTHRUSTING( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_CDLTHRUSTING", retCode) + * return outinteger + */ + __pyx_v_retCode = TA_CDLTHRUSTING(0, __pyx_v_endidx, ((double *)(__pyx_v_open_data + __pyx_v_begidx)), ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outinteger_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":6229 + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLTHRUSTING( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLTHRUSTING", retCode) # <<<<<<<<<<<<<< + * return outinteger + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CDLTHRUSTING, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6229, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":6230 + * retCode = lib.TA_CDLTHRUSTING( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLTHRUSTING", retCode) + * return outinteger # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outinteger)); + __pyx_r = ((PyObject *)__pyx_v_outinteger); + goto __pyx_L0; + + /* "talib/_func.pxi":6146 + * @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.c_ta_lib.CDLTHRUSTING", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outinteger); + __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/_func.pxi":6234 + * @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_8c_ta_lib_159CDLTRISTAR(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_158CDLTRISTAR[] = " 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_8c_ta_lib_159CDLTRISTAR = {"CDLTRISTAR", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_159CDLTRISTAR, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_158CDLTRISTAR}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_159CDLTRISTAR(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(2, 6234, __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(2, 6234, __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(2, 6234, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "CDLTRISTAR") < 0)) __PYX_ERR(2, 6234, __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(2, 6234, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 6234, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(2, 6234, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(2, 6234, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(2, 6234, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_158CDLTRISTAR(__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_8c_ta_lib_158CDLTRISTAR(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; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + 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; + PyArrayObject *__pyx_v_outinteger = 0; + int *__pyx_v_outinteger_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __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/_func.pxi":6257 + * np.ndarray outinteger + * int* outinteger_data + * 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/_func.pxi":6258 + * int* outinteger_data + * 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__808, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6258, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 6258, __pyx_L1_error) + + /* "talib/_func.pxi":6257 + * np.ndarray outinteger + * int* outinteger_data + * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("open is not double") + * if open.ndim != 1: + */ + } + + /* "talib/_func.pxi":6259 + * 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/_func.pxi":6260 + * 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__809, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6260, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 6260, __pyx_L1_error) + + /* "talib/_func.pxi":6259 + * 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/_func.pxi":6261 + * 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 = open.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":6262 + * raise Exception("open has wrong dimensions") + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6262, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 6262, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":6261 + * 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 = open.data + */ + } + + /* "talib/_func.pxi":6263 + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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/_func.pxi":6264 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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/_func.pxi":6265 + * open_data = 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__810, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6265, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 6265, __pyx_L1_error) + + /* "talib/_func.pxi":6264 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_func.pxi":6266 + * 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/_func.pxi":6267 + * raise 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__811, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6267, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 6267, __pyx_L1_error) + + /* "talib/_func.pxi":6266 + * 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/_func.pxi":6268 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":6269 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6269, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 6269, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":6268 + * 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 = high.data + */ + } + + /* "talib/_func.pxi":6270 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":6271 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":6272 + * high_data = 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__812, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6272, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 6272, __pyx_L1_error) + + /* "talib/_func.pxi":6271 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_func.pxi":6273 + * 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/_func.pxi":6274 + * raise 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__813, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6274, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 6274, __pyx_L1_error) + + /* "talib/_func.pxi":6273 + * 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/_func.pxi":6275 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":6276 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6276, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 6276, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":6275 + * 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 = low.data + */ + } + + /* "talib/_func.pxi":6277 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":6278 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":6279 + * low_data = 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__814, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6279, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 6279, __pyx_L1_error) + + /* "talib/_func.pxi":6278 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_func.pxi":6280 + * 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/_func.pxi":6281 + * raise 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__815, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6281, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 6281, __pyx_L1_error) + + /* "talib/_func.pxi":6280 + * 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/_func.pxi":6282 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":6283 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = open.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6283, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 6283, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":6282 + * 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 = close.data + */ + } + + /* "talib/_func.pxi":6284 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = open.shape[0] + * if length != high.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_func.pxi":6285 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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/_func.pxi":6286 + * close_data = 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/_func.pxi":6287 + * 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__816, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6287, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 6287, __pyx_L1_error) + + /* "talib/_func.pxi":6286 + * close_data = close.data + * length = open.shape[0] + * if length != high.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != low.shape[0]: + */ + } + + /* "talib/_func.pxi":6288 + * 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/_func.pxi":6289 + * 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__817, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6289, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 6289, __pyx_L1_error) + + /* "talib/_func.pxi":6288 + * 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/_func.pxi":6290 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":6291 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__818, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6291, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 6291, __pyx_L1_error) + + /* "talib/_func.pxi":6290 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + } + + /* "talib/_func.pxi":6292 + * if length != close.shape[0]: + * raise Exception("input lengths are different") + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = open_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":6293 + * raise Exception("input lengths are different") + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = open_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":6294 + * begidx = 0 + * for i from 0 <= i < length: + * val = open_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_open_data[__pyx_v_i]); + + /* "talib/_func.pxi":6295 + * for i from 0 <= i < length: + * val = open_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = high_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":6296 + * val = open_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = high_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":6295 + * for i from 0 <= i < length: + * val = open_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = high_data[i] + */ + } + + /* "talib/_func.pxi":6297 + * if val != val: + * continue + * val = high_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); + + /* "talib/_func.pxi":6298 + * continue + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":6299 + * val = high_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = low_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":6298 + * continue + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + } + + /* "talib/_func.pxi":6300 + * if val != val: + * continue + * val = low_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); + + /* "talib/_func.pxi":6301 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":6302 + * val = low_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = close_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":6301 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + } + + /* "talib/_func.pxi":6303 + * if val != val: + * continue + * val = close_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); + + /* "talib/_func.pxi":6304 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":6305 + * val = close_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":6304 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":6306 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":6307 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L19_break; + __pyx_L18_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":6309 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLTRISTAR_Lookback( ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__819, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6309, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 6309, __pyx_L1_error) + } + __pyx_L19_break:; + + /* "talib/_func.pxi":6310 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_CDLTRISTAR_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":6311 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLTRISTAR_Lookback( ) # <<<<<<<<<<<<<< + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_CDLTRISTAR_Lookback()); + + /* "talib/_func.pxi":6312 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLTRISTAR_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6312, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 6312, __pyx_L1_error) + __pyx_v_outinteger = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":6313 + * lookback = begidx + lib.TA_CDLTRISTAR_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 + */ + __pyx_v_outinteger_data = ((int *)__pyx_v_outinteger->data); + + /* "talib/_func.pxi":6314 + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLTRISTAR( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":6315 + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 # <<<<<<<<<<<<<< + * retCode = lib.TA_CDLTRISTAR( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLTRISTAR", retCode) + */ + (__pyx_v_outinteger_data[__pyx_v_i]) = 0; + } + + /* "talib/_func.pxi":6316 + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLTRISTAR( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_CDLTRISTAR", retCode) + * return outinteger + */ + __pyx_v_retCode = TA_CDLTRISTAR(0, __pyx_v_endidx, ((double *)(__pyx_v_open_data + __pyx_v_begidx)), ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outinteger_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":6317 + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLTRISTAR( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLTRISTAR", retCode) # <<<<<<<<<<<<<< + * return outinteger + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CDLTRISTAR, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6317, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":6318 + * retCode = lib.TA_CDLTRISTAR( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLTRISTAR", retCode) + * return outinteger # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outinteger)); + __pyx_r = ((PyObject *)__pyx_v_outinteger); + goto __pyx_L0; + + /* "talib/_func.pxi":6234 + * @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.c_ta_lib.CDLTRISTAR", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outinteger); + __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/_func.pxi":6322 + * @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_8c_ta_lib_161CDLUNIQUE3RIVER(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_160CDLUNIQUE3RIVER[] = " 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_8c_ta_lib_161CDLUNIQUE3RIVER = {"CDLUNIQUE3RIVER", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_161CDLUNIQUE3RIVER, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_160CDLUNIQUE3RIVER}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_161CDLUNIQUE3RIVER(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(2, 6322, __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(2, 6322, __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(2, 6322, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "CDLUNIQUE3RIVER") < 0)) __PYX_ERR(2, 6322, __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(2, 6322, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 6322, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(2, 6322, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(2, 6322, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(2, 6322, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_160CDLUNIQUE3RIVER(__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_8c_ta_lib_160CDLUNIQUE3RIVER(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; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + 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; + PyArrayObject *__pyx_v_outinteger = 0; + int *__pyx_v_outinteger_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __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/_func.pxi":6345 + * np.ndarray outinteger + * int* outinteger_data + * 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/_func.pxi":6346 + * int* outinteger_data + * 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__820, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6346, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 6346, __pyx_L1_error) + + /* "talib/_func.pxi":6345 + * np.ndarray outinteger + * int* outinteger_data + * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("open is not double") + * if open.ndim != 1: + */ + } + + /* "talib/_func.pxi":6347 + * 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/_func.pxi":6348 + * 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__821, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6348, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 6348, __pyx_L1_error) + + /* "talib/_func.pxi":6347 + * 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/_func.pxi":6349 + * 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 = open.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":6350 + * raise Exception("open has wrong dimensions") + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6350, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 6350, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":6349 + * 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 = open.data + */ + } + + /* "talib/_func.pxi":6351 + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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/_func.pxi":6352 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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/_func.pxi":6353 + * open_data = 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__822, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6353, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 6353, __pyx_L1_error) + + /* "talib/_func.pxi":6352 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_func.pxi":6354 + * 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/_func.pxi":6355 + * raise 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__823, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6355, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 6355, __pyx_L1_error) + + /* "talib/_func.pxi":6354 + * 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/_func.pxi":6356 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":6357 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6357, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 6357, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":6356 + * 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 = high.data + */ + } + + /* "talib/_func.pxi":6358 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":6359 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":6360 + * high_data = 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__824, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6360, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 6360, __pyx_L1_error) + + /* "talib/_func.pxi":6359 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_func.pxi":6361 + * 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/_func.pxi":6362 + * raise 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__825, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6362, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 6362, __pyx_L1_error) + + /* "talib/_func.pxi":6361 + * 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/_func.pxi":6363 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":6364 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6364, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 6364, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":6363 + * 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 = low.data + */ + } + + /* "talib/_func.pxi":6365 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":6366 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":6367 + * low_data = 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__826, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6367, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 6367, __pyx_L1_error) + + /* "talib/_func.pxi":6366 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_func.pxi":6368 + * 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/_func.pxi":6369 + * raise 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__827, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6369, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 6369, __pyx_L1_error) + + /* "talib/_func.pxi":6368 + * 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/_func.pxi":6370 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":6371 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = open.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6371, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 6371, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":6370 + * 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 = close.data + */ + } + + /* "talib/_func.pxi":6372 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = open.shape[0] + * if length != high.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_func.pxi":6373 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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/_func.pxi":6374 + * close_data = 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/_func.pxi":6375 + * 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__828, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6375, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 6375, __pyx_L1_error) + + /* "talib/_func.pxi":6374 + * close_data = close.data + * length = open.shape[0] + * if length != high.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != low.shape[0]: + */ + } + + /* "talib/_func.pxi":6376 + * 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/_func.pxi":6377 + * 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__829, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6377, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 6377, __pyx_L1_error) + + /* "talib/_func.pxi":6376 + * 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/_func.pxi":6378 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":6379 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__830, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6379, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 6379, __pyx_L1_error) + + /* "talib/_func.pxi":6378 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + } + + /* "talib/_func.pxi":6380 + * if length != close.shape[0]: + * raise Exception("input lengths are different") + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = open_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":6381 + * raise Exception("input lengths are different") + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = open_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":6382 + * begidx = 0 + * for i from 0 <= i < length: + * val = open_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_open_data[__pyx_v_i]); + + /* "talib/_func.pxi":6383 + * for i from 0 <= i < length: + * val = open_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = high_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":6384 + * val = open_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = high_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":6383 + * for i from 0 <= i < length: + * val = open_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = high_data[i] + */ + } + + /* "talib/_func.pxi":6385 + * if val != val: + * continue + * val = high_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); + + /* "talib/_func.pxi":6386 + * continue + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":6387 + * val = high_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = low_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":6386 + * continue + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + } + + /* "talib/_func.pxi":6388 + * if val != val: + * continue + * val = low_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); + + /* "talib/_func.pxi":6389 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":6390 + * val = low_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = close_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":6389 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + } + + /* "talib/_func.pxi":6391 + * if val != val: + * continue + * val = close_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); + + /* "talib/_func.pxi":6392 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":6393 + * val = close_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":6392 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":6394 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":6395 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L19_break; + __pyx_L18_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":6397 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLUNIQUE3RIVER_Lookback( ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__831, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6397, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 6397, __pyx_L1_error) + } + __pyx_L19_break:; + + /* "talib/_func.pxi":6398 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_CDLUNIQUE3RIVER_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":6399 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLUNIQUE3RIVER_Lookback( ) # <<<<<<<<<<<<<< + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_CDLUNIQUE3RIVER_Lookback()); + + /* "talib/_func.pxi":6400 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLUNIQUE3RIVER_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6400, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 6400, __pyx_L1_error) + __pyx_v_outinteger = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":6401 + * lookback = begidx + lib.TA_CDLUNIQUE3RIVER_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 + */ + __pyx_v_outinteger_data = ((int *)__pyx_v_outinteger->data); + + /* "talib/_func.pxi":6402 + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLUNIQUE3RIVER( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":6403 + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 # <<<<<<<<<<<<<< + * retCode = lib.TA_CDLUNIQUE3RIVER( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLUNIQUE3RIVER", retCode) + */ + (__pyx_v_outinteger_data[__pyx_v_i]) = 0; + } + + /* "talib/_func.pxi":6404 + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLUNIQUE3RIVER( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_CDLUNIQUE3RIVER", retCode) + * return outinteger + */ + __pyx_v_retCode = TA_CDLUNIQUE3RIVER(0, __pyx_v_endidx, ((double *)(__pyx_v_open_data + __pyx_v_begidx)), ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outinteger_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":6405 + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLUNIQUE3RIVER( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLUNIQUE3RIVER", retCode) # <<<<<<<<<<<<<< + * return outinteger + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CDLUNIQUE3RIVER, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6405, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":6406 + * retCode = lib.TA_CDLUNIQUE3RIVER( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLUNIQUE3RIVER", retCode) + * return outinteger # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outinteger)); + __pyx_r = ((PyObject *)__pyx_v_outinteger); + goto __pyx_L0; + + /* "talib/_func.pxi":6322 + * @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.c_ta_lib.CDLUNIQUE3RIVER", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outinteger); + __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/_func.pxi":6410 + * @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_8c_ta_lib_163CDLUPSIDEGAP2CROWS(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_162CDLUPSIDEGAP2CROWS[] = " 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_8c_ta_lib_163CDLUPSIDEGAP2CROWS = {"CDLUPSIDEGAP2CROWS", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_163CDLUPSIDEGAP2CROWS, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_162CDLUPSIDEGAP2CROWS}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_163CDLUPSIDEGAP2CROWS(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(2, 6410, __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(2, 6410, __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(2, 6410, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "CDLUPSIDEGAP2CROWS") < 0)) __PYX_ERR(2, 6410, __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(2, 6410, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 6410, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(2, 6410, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(2, 6410, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(2, 6410, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_162CDLUPSIDEGAP2CROWS(__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_8c_ta_lib_162CDLUPSIDEGAP2CROWS(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; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + 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; + PyArrayObject *__pyx_v_outinteger = 0; + int *__pyx_v_outinteger_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __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/_func.pxi":6433 + * np.ndarray outinteger + * int* outinteger_data + * 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/_func.pxi":6434 + * int* outinteger_data + * 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__832, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6434, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 6434, __pyx_L1_error) + + /* "talib/_func.pxi":6433 + * np.ndarray outinteger + * int* outinteger_data + * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("open is not double") + * if open.ndim != 1: + */ + } + + /* "talib/_func.pxi":6435 + * 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/_func.pxi":6436 + * 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__833, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6436, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 6436, __pyx_L1_error) + + /* "talib/_func.pxi":6435 + * 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/_func.pxi":6437 + * 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 = open.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":6438 + * raise Exception("open has wrong dimensions") + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6438, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 6438, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":6437 + * 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 = open.data + */ + } + + /* "talib/_func.pxi":6439 + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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/_func.pxi":6440 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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/_func.pxi":6441 + * open_data = 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__834, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6441, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 6441, __pyx_L1_error) + + /* "talib/_func.pxi":6440 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_func.pxi":6442 + * 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/_func.pxi":6443 + * raise 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__835, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6443, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 6443, __pyx_L1_error) + + /* "talib/_func.pxi":6442 + * 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/_func.pxi":6444 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":6445 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6445, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 6445, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":6444 + * 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 = high.data + */ + } + + /* "talib/_func.pxi":6446 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":6447 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":6448 + * high_data = 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__836, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 6448, __pyx_L1_error) + + /* "talib/_func.pxi":6447 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_func.pxi":6449 + * 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/_func.pxi":6450 + * raise 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__837, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6450, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 6450, __pyx_L1_error) + + /* "talib/_func.pxi":6449 + * 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/_func.pxi":6451 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":6452 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6452, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 6452, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":6451 + * 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 = low.data + */ + } + + /* "talib/_func.pxi":6453 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":6454 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":6455 + * low_data = 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__838, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6455, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 6455, __pyx_L1_error) + + /* "talib/_func.pxi":6454 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_func.pxi":6456 + * 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/_func.pxi":6457 + * raise 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__839, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6457, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 6457, __pyx_L1_error) + + /* "talib/_func.pxi":6456 + * 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/_func.pxi":6458 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":6459 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = open.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6459, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 6459, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":6458 + * 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 = close.data + */ + } + + /* "talib/_func.pxi":6460 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = open.shape[0] + * if length != high.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_func.pxi":6461 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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/_func.pxi":6462 + * close_data = 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/_func.pxi":6463 + * 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__840, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6463, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 6463, __pyx_L1_error) + + /* "talib/_func.pxi":6462 + * close_data = close.data + * length = open.shape[0] + * if length != high.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != low.shape[0]: + */ + } + + /* "talib/_func.pxi":6464 + * 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/_func.pxi":6465 + * 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__841, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6465, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 6465, __pyx_L1_error) + + /* "talib/_func.pxi":6464 + * 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/_func.pxi":6466 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":6467 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__842, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6467, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 6467, __pyx_L1_error) + + /* "talib/_func.pxi":6466 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + } + + /* "talib/_func.pxi":6468 + * if length != close.shape[0]: + * raise Exception("input lengths are different") + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = open_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":6469 + * raise Exception("input lengths are different") + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = open_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":6470 + * begidx = 0 + * for i from 0 <= i < length: + * val = open_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_open_data[__pyx_v_i]); + + /* "talib/_func.pxi":6471 + * for i from 0 <= i < length: + * val = open_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = high_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":6472 + * val = open_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = high_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":6471 + * for i from 0 <= i < length: + * val = open_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = high_data[i] + */ + } + + /* "talib/_func.pxi":6473 + * if val != val: + * continue + * val = high_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); + + /* "talib/_func.pxi":6474 + * continue + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":6475 + * val = high_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = low_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":6474 + * continue + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + } + + /* "talib/_func.pxi":6476 + * if val != val: + * continue + * val = low_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); + + /* "talib/_func.pxi":6477 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":6478 + * val = low_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = close_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":6477 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + } + + /* "talib/_func.pxi":6479 + * if val != val: + * continue + * val = close_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); + + /* "talib/_func.pxi":6480 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":6481 + * val = close_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":6480 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":6482 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":6483 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L19_break; + __pyx_L18_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":6485 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLUPSIDEGAP2CROWS_Lookback( ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__843, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6485, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 6485, __pyx_L1_error) + } + __pyx_L19_break:; + + /* "talib/_func.pxi":6486 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_CDLUPSIDEGAP2CROWS_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":6487 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLUPSIDEGAP2CROWS_Lookback( ) # <<<<<<<<<<<<<< + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_CDLUPSIDEGAP2CROWS_Lookback()); + + /* "talib/_func.pxi":6488 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLUPSIDEGAP2CROWS_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6488, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 6488, __pyx_L1_error) + __pyx_v_outinteger = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":6489 + * lookback = begidx + lib.TA_CDLUPSIDEGAP2CROWS_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 + */ + __pyx_v_outinteger_data = ((int *)__pyx_v_outinteger->data); + + /* "talib/_func.pxi":6490 + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLUPSIDEGAP2CROWS( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":6491 + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 # <<<<<<<<<<<<<< + * retCode = lib.TA_CDLUPSIDEGAP2CROWS( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLUPSIDEGAP2CROWS", retCode) + */ + (__pyx_v_outinteger_data[__pyx_v_i]) = 0; + } + + /* "talib/_func.pxi":6492 + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLUPSIDEGAP2CROWS( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_CDLUPSIDEGAP2CROWS", retCode) + * return outinteger + */ + __pyx_v_retCode = TA_CDLUPSIDEGAP2CROWS(0, __pyx_v_endidx, ((double *)(__pyx_v_open_data + __pyx_v_begidx)), ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outinteger_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":6493 + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLUPSIDEGAP2CROWS( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLUPSIDEGAP2CROWS", retCode) # <<<<<<<<<<<<<< + * return outinteger + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CDLUPSIDEGAP2CROWS, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6493, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":6494 + * retCode = lib.TA_CDLUPSIDEGAP2CROWS( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLUPSIDEGAP2CROWS", retCode) + * return outinteger # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outinteger)); + __pyx_r = ((PyObject *)__pyx_v_outinteger); + goto __pyx_L0; + + /* "talib/_func.pxi":6410 + * @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.c_ta_lib.CDLUPSIDEGAP2CROWS", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outinteger); + __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/_func.pxi":6498 + * @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_8c_ta_lib_165CDLXSIDEGAP3METHODS(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_164CDLXSIDEGAP3METHODS[] = " 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_8c_ta_lib_165CDLXSIDEGAP3METHODS = {"CDLXSIDEGAP3METHODS", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_165CDLXSIDEGAP3METHODS, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_164CDLXSIDEGAP3METHODS}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_165CDLXSIDEGAP3METHODS(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(2, 6498, __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(2, 6498, __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(2, 6498, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "CDLXSIDEGAP3METHODS") < 0)) __PYX_ERR(2, 6498, __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(2, 6498, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 6498, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(2, 6498, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(2, 6498, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(2, 6498, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_164CDLXSIDEGAP3METHODS(__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_8c_ta_lib_164CDLXSIDEGAP3METHODS(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; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + 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; + PyArrayObject *__pyx_v_outinteger = 0; + int *__pyx_v_outinteger_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __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/_func.pxi":6521 + * np.ndarray outinteger + * int* outinteger_data + * 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/_func.pxi":6522 + * int* outinteger_data + * 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__844, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6522, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 6522, __pyx_L1_error) + + /* "talib/_func.pxi":6521 + * np.ndarray outinteger + * int* outinteger_data + * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("open is not double") + * if open.ndim != 1: + */ + } + + /* "talib/_func.pxi":6523 + * 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/_func.pxi":6524 + * 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__845, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6524, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 6524, __pyx_L1_error) + + /* "talib/_func.pxi":6523 + * 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/_func.pxi":6525 + * 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 = open.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":6526 + * raise Exception("open has wrong dimensions") + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6526, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 6526, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":6525 + * 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 = open.data + */ + } + + /* "talib/_func.pxi":6527 + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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/_func.pxi":6528 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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/_func.pxi":6529 + * open_data = 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__846, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 6529, __pyx_L1_error) + + /* "talib/_func.pxi":6528 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_func.pxi":6530 + * 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/_func.pxi":6531 + * raise 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__847, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6531, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 6531, __pyx_L1_error) + + /* "talib/_func.pxi":6530 + * 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/_func.pxi":6532 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":6533 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6533, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 6533, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":6532 + * 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 = high.data + */ + } + + /* "talib/_func.pxi":6534 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":6535 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":6536 + * high_data = 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__848, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6536, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 6536, __pyx_L1_error) + + /* "talib/_func.pxi":6535 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_func.pxi":6537 + * 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/_func.pxi":6538 + * raise 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__849, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6538, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 6538, __pyx_L1_error) + + /* "talib/_func.pxi":6537 + * 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/_func.pxi":6539 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":6540 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6540, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 6540, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":6539 + * 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 = low.data + */ + } + + /* "talib/_func.pxi":6541 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":6542 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":6543 + * low_data = 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__850, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6543, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 6543, __pyx_L1_error) + + /* "talib/_func.pxi":6542 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_func.pxi":6544 + * 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/_func.pxi":6545 + * raise 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__851, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6545, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 6545, __pyx_L1_error) + + /* "talib/_func.pxi":6544 + * 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/_func.pxi":6546 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":6547 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = open.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6547, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 6547, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":6546 + * 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 = close.data + */ + } + + /* "talib/_func.pxi":6548 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = open.shape[0] + * if length != high.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_func.pxi":6549 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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/_func.pxi":6550 + * close_data = 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/_func.pxi":6551 + * 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__852, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6551, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 6551, __pyx_L1_error) + + /* "talib/_func.pxi":6550 + * close_data = close.data + * length = open.shape[0] + * if length != high.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != low.shape[0]: + */ + } + + /* "talib/_func.pxi":6552 + * 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/_func.pxi":6553 + * 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__853, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6553, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 6553, __pyx_L1_error) + + /* "talib/_func.pxi":6552 + * 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/_func.pxi":6554 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":6555 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__854, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6555, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 6555, __pyx_L1_error) + + /* "talib/_func.pxi":6554 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + } + + /* "talib/_func.pxi":6556 + * if length != close.shape[0]: + * raise Exception("input lengths are different") + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = open_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":6557 + * raise Exception("input lengths are different") + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = open_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":6558 + * begidx = 0 + * for i from 0 <= i < length: + * val = open_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_open_data[__pyx_v_i]); + + /* "talib/_func.pxi":6559 + * for i from 0 <= i < length: + * val = open_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = high_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":6560 + * val = open_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = high_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":6559 + * for i from 0 <= i < length: + * val = open_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = high_data[i] + */ + } + + /* "talib/_func.pxi":6561 + * if val != val: + * continue + * val = high_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); + + /* "talib/_func.pxi":6562 + * continue + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":6563 + * val = high_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = low_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":6562 + * continue + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + } + + /* "talib/_func.pxi":6564 + * if val != val: + * continue + * val = low_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); + + /* "talib/_func.pxi":6565 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":6566 + * val = low_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = close_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":6565 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + } + + /* "talib/_func.pxi":6567 + * if val != val: + * continue + * val = close_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); + + /* "talib/_func.pxi":6568 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":6569 + * val = close_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":6568 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":6570 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":6571 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L19_break; + __pyx_L18_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":6573 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLXSIDEGAP3METHODS_Lookback( ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__855, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6573, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 6573, __pyx_L1_error) + } + __pyx_L19_break:; + + /* "talib/_func.pxi":6574 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_CDLXSIDEGAP3METHODS_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":6575 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLXSIDEGAP3METHODS_Lookback( ) # <<<<<<<<<<<<<< + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_CDLXSIDEGAP3METHODS_Lookback()); + + /* "talib/_func.pxi":6576 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLXSIDEGAP3METHODS_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6576, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 6576, __pyx_L1_error) + __pyx_v_outinteger = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":6577 + * lookback = begidx + lib.TA_CDLXSIDEGAP3METHODS_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 + */ + __pyx_v_outinteger_data = ((int *)__pyx_v_outinteger->data); + + /* "talib/_func.pxi":6578 + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLXSIDEGAP3METHODS( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":6579 + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 # <<<<<<<<<<<<<< + * retCode = lib.TA_CDLXSIDEGAP3METHODS( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLXSIDEGAP3METHODS", retCode) + */ + (__pyx_v_outinteger_data[__pyx_v_i]) = 0; + } + + /* "talib/_func.pxi":6580 + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLXSIDEGAP3METHODS( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_CDLXSIDEGAP3METHODS", retCode) + * return outinteger + */ + __pyx_v_retCode = TA_CDLXSIDEGAP3METHODS(0, __pyx_v_endidx, ((double *)(__pyx_v_open_data + __pyx_v_begidx)), ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outinteger_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":6581 + * outinteger_data[i] = 0 + * retCode = lib.TA_CDLXSIDEGAP3METHODS( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLXSIDEGAP3METHODS", retCode) # <<<<<<<<<<<<<< + * return outinteger + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CDLXSIDEGAP3METHODS, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6581, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":6582 + * retCode = lib.TA_CDLXSIDEGAP3METHODS( 0 , endidx , (open_data+begidx) , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_CDLXSIDEGAP3METHODS", retCode) + * return outinteger # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outinteger)); + __pyx_r = ((PyObject *)__pyx_v_outinteger); + goto __pyx_L0; + + /* "talib/_func.pxi":6498 + * @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.c_ta_lib.CDLXSIDEGAP3METHODS", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outinteger); + __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/_func.pxi":6586 + * @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_8c_ta_lib_167CEIL(PyObject *__pyx_self, PyObject *__pyx_v_real); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_166CEIL[] = " 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_8c_ta_lib_167CEIL = {"CEIL", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_167CEIL, METH_O, __pyx_doc_5talib_8c_ta_lib_166CEIL}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_167CEIL(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(2, 6586, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_166CEIL(__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_8c_ta_lib_166CEIL(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real) { + npy_intp __pyx_v_length; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + TA_RetCode __pyx_v_retCode; + double *__pyx_v_real_data; + int __pyx_v_outbegidx; + int __pyx_v_outnbelement; + PyArrayObject *__pyx_v_outreal = 0; + double *__pyx_v_outreal_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __Pyx_RefNannySetupContext("CEIL", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real); + + /* "talib/_func.pxi":6606 + * np.ndarray outreal + * double* outreal_data + * 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/_func.pxi":6607 + * double* outreal_data + * 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__856, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6607, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 6607, __pyx_L1_error) + + /* "talib/_func.pxi":6606 + * np.ndarray outreal + * double* outreal_data + * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real is not double") + * if real.ndim != 1: + */ + } + + /* "talib/_func.pxi":6608 + * 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/_func.pxi":6609 + * 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__857, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6609, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 6609, __pyx_L1_error) + + /* "talib/_func.pxi":6608 + * 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/_func.pxi":6610 + * 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 = real.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":6611 + * raise Exception("real has wrong dimensions") + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< + * real_data = real.data + * length = real.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6611, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 6611, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":6610 + * 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 = real.data + */ + } + + /* "talib/_func.pxi":6612 + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data # <<<<<<<<<<<<<< + * length = real.shape[0] + * begidx = 0 + */ + __pyx_v_real_data = ((double *)__pyx_v_real->data); + + /* "talib/_func.pxi":6613 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data + * length = real.shape[0] # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_v_length = (__pyx_v_real->dimensions[0]); + + /* "talib/_func.pxi":6614 + * real_data = real.data + * length = real.shape[0] + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = real_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":6615 + * length = real.shape[0] + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = real_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":6616 + * begidx = 0 + * for i from 0 <= i < length: + * val = real_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_real_data[__pyx_v_i]); + + /* "talib/_func.pxi":6617 + * for i from 0 <= i < length: + * val = real_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":6618 + * val = real_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L6_continue; + + /* "talib/_func.pxi":6617 + * for i from 0 <= i < length: + * val = real_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":6619 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":6620 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L7_break; + __pyx_L6_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":6622 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CEIL_Lookback( ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__858, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 6622, __pyx_L1_error) + } + __pyx_L7_break:; + + /* "talib/_func.pxi":6623 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_CEIL_Lookback( ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":6624 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CEIL_Lookback( ) # <<<<<<<<<<<<<< + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_CEIL_Lookback()); + + /* "talib/_func.pxi":6625 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CEIL_Lookback( ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6625, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 6625, __pyx_L1_error) + __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":6626 + * lookback = begidx + lib.TA_CEIL_Lookback( ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + */ + __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); + + /* "talib/_func.pxi":6627 + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outreal_data[i] = NaN + * retCode = lib.TA_CEIL( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":6628 + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN # <<<<<<<<<<<<<< + * retCode = lib.TA_CEIL( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_CEIL", retCode) + */ + (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_8c_ta_lib_NaN; + } + + /* "talib/_func.pxi":6629 + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + * retCode = lib.TA_CEIL( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_CEIL", retCode) + * return outreal + */ + __pyx_v_retCode = TA_CEIL(0, __pyx_v_endidx, ((double *)(__pyx_v_real_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":6630 + * outreal_data[i] = NaN + * retCode = lib.TA_CEIL( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_CEIL", retCode) # <<<<<<<<<<<<<< + * return outreal + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CEIL, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6630, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":6631 + * retCode = lib.TA_CEIL( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_CEIL", retCode) + * return outreal # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); + __pyx_r = ((PyObject *)__pyx_v_outreal); + goto __pyx_L0; + + /* "talib/_func.pxi":6586 + * @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.c_ta_lib.CEIL", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outreal); + __Pyx_XDECREF((PyObject *)__pyx_v_real); + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "talib/_func.pxi":6635 + * @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_8c_ta_lib_169CMO(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_168CMO[] = " 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_8c_ta_lib_169CMO = {"CMO", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_169CMO, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_168CMO}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_169CMO(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(2, 6635, __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(2, 6635, __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(2, 6635, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 6635, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_168CMO(__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_8c_ta_lib_168CMO(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod) { + npy_intp __pyx_v_length; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + TA_RetCode __pyx_v_retCode; + double *__pyx_v_real_data; + int __pyx_v_outbegidx; + int __pyx_v_outnbelement; + PyArrayObject *__pyx_v_outreal = 0; + double *__pyx_v_outreal_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __Pyx_RefNannySetupContext("CMO", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real); + + /* "talib/_func.pxi":6657 + * np.ndarray outreal + * double* outreal_data + * 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/_func.pxi":6658 + * double* outreal_data + * 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__859, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6658, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 6658, __pyx_L1_error) + + /* "talib/_func.pxi":6657 + * np.ndarray outreal + * double* outreal_data + * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real is not double") + * if real.ndim != 1: + */ + } + + /* "talib/_func.pxi":6659 + * 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/_func.pxi":6660 + * 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__860, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6660, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 6660, __pyx_L1_error) + + /* "talib/_func.pxi":6659 + * 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/_func.pxi":6661 + * 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 = real.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":6662 + * raise Exception("real has wrong dimensions") + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< + * real_data = real.data + * length = real.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6662, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 6662, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":6661 + * 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 = real.data + */ + } + + /* "talib/_func.pxi":6663 + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data # <<<<<<<<<<<<<< + * length = real.shape[0] + * begidx = 0 + */ + __pyx_v_real_data = ((double *)__pyx_v_real->data); + + /* "talib/_func.pxi":6664 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data + * length = real.shape[0] # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_v_length = (__pyx_v_real->dimensions[0]); + + /* "talib/_func.pxi":6665 + * real_data = real.data + * length = real.shape[0] + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = real_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":6666 + * length = real.shape[0] + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = real_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":6667 + * begidx = 0 + * for i from 0 <= i < length: + * val = real_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_real_data[__pyx_v_i]); + + /* "talib/_func.pxi":6668 + * for i from 0 <= i < length: + * val = real_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":6669 + * val = real_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L6_continue; + + /* "talib/_func.pxi":6668 + * for i from 0 <= i < length: + * val = real_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":6670 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":6671 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L7_break; + __pyx_L6_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":6673 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CMO_Lookback( timeperiod ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__861, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6673, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 6673, __pyx_L1_error) + } + __pyx_L7_break:; + + /* "talib/_func.pxi":6674 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_CMO_Lookback( timeperiod ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":6675 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CMO_Lookback( timeperiod ) # <<<<<<<<<<<<<< + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_CMO_Lookback(__pyx_v_timeperiod)); + + /* "talib/_func.pxi":6676 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CMO_Lookback( timeperiod ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6676, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 6676, __pyx_L1_error) + __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":6677 + * lookback = begidx + lib.TA_CMO_Lookback( timeperiod ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + */ + __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); + + /* "talib/_func.pxi":6678 + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outreal_data[i] = NaN + * retCode = lib.TA_CMO( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":6679 + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN # <<<<<<<<<<<<<< + * retCode = lib.TA_CMO( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_CMO", retCode) + */ + (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_8c_ta_lib_NaN; + } + + /* "talib/_func.pxi":6680 + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + * retCode = lib.TA_CMO( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_CMO", retCode) + * return outreal + */ + __pyx_v_retCode = TA_CMO(0, __pyx_v_endidx, ((double *)(__pyx_v_real_data + __pyx_v_begidx)), __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":6681 + * outreal_data[i] = NaN + * retCode = lib.TA_CMO( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_CMO", retCode) # <<<<<<<<<<<<<< + * return outreal + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CMO, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6681, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":6682 + * retCode = lib.TA_CMO( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_CMO", retCode) + * return outreal # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); + __pyx_r = ((PyObject *)__pyx_v_outreal); + goto __pyx_L0; + + /* "talib/_func.pxi":6635 + * @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.c_ta_lib.CMO", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outreal); + __Pyx_XDECREF((PyObject *)__pyx_v_real); + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "talib/_func.pxi":6686 + * @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_8c_ta_lib_171CORREL(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_170CORREL[] = " 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_8c_ta_lib_171CORREL = {"CORREL", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_171CORREL, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_170CORREL}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_171CORREL(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(2, 6686, __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(2, 6686, __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(2, 6686, __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(2, 6686, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 6686, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_real1), __pyx_ptype_5numpy_ndarray, 0, "real1", 0))) __PYX_ERR(2, 6686, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_170CORREL(__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_8c_ta_lib_170CORREL(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real0, PyArrayObject *__pyx_v_real1, int __pyx_v_timeperiod) { + npy_intp __pyx_v_length; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + TA_RetCode __pyx_v_retCode; + double *__pyx_v_real0_data; + double *__pyx_v_real1_data; + int __pyx_v_outbegidx; + int __pyx_v_outnbelement; + PyArrayObject *__pyx_v_outreal = 0; + double *__pyx_v_outreal_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __Pyx_RefNannySetupContext("CORREL", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real0); + __Pyx_INCREF((PyObject *)__pyx_v_real1); + + /* "talib/_func.pxi":6710 + * np.ndarray outreal + * double* outreal_data + * 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/_func.pxi":6711 + * double* outreal_data + * 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__862, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6711, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 6711, __pyx_L1_error) + + /* "talib/_func.pxi":6710 + * np.ndarray outreal + * double* outreal_data + * if PyArray_TYPE(real0) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real0 is not double") + * if real0.ndim != 1: + */ + } + + /* "talib/_func.pxi":6712 + * 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/_func.pxi":6713 + * 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__863, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6713, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 6713, __pyx_L1_error) + + /* "talib/_func.pxi":6712 + * 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/_func.pxi":6714 + * 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 = real0.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real0) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":6715 + * raise Exception("real0 has wrong dimensions") + * if not (PyArray_FLAGS(real0) & np.NPY_C_CONTIGUOUS): + * real0 = PyArray_GETCONTIGUOUS(real0) # <<<<<<<<<<<<<< + * real0_data = real0.data + * if PyArray_TYPE(real1) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6715, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 6715, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real0, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":6714 + * 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 = real0.data + */ + } + + /* "talib/_func.pxi":6716 + * if not (PyArray_FLAGS(real0) & np.NPY_C_CONTIGUOUS): + * real0 = PyArray_GETCONTIGUOUS(real0) + * real0_data = 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/_func.pxi":6717 + * real0 = PyArray_GETCONTIGUOUS(real0) + * real0_data = 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/_func.pxi":6718 + * real0_data = 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__864, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6718, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 6718, __pyx_L1_error) + + /* "talib/_func.pxi":6717 + * real0 = PyArray_GETCONTIGUOUS(real0) + * real0_data = real0.data + * if PyArray_TYPE(real1) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real1 is not double") + * if real1.ndim != 1: + */ + } + + /* "talib/_func.pxi":6719 + * 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/_func.pxi":6720 + * 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__865, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6720, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 6720, __pyx_L1_error) + + /* "talib/_func.pxi":6719 + * 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/_func.pxi":6721 + * 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 = real1.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real1) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":6722 + * raise Exception("real1 has wrong dimensions") + * if not (PyArray_FLAGS(real1) & np.NPY_C_CONTIGUOUS): + * real1 = PyArray_GETCONTIGUOUS(real1) # <<<<<<<<<<<<<< + * real1_data = real1.data + * length = real0.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real1); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6722, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 6722, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real1, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":6721 + * 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 = real1.data + */ + } + + /* "talib/_func.pxi":6723 + * if not (PyArray_FLAGS(real1) & np.NPY_C_CONTIGUOUS): + * real1 = PyArray_GETCONTIGUOUS(real1) + * real1_data = real1.data # <<<<<<<<<<<<<< + * length = real0.shape[0] + * if length != real1.shape[0]: + */ + __pyx_v_real1_data = ((double *)__pyx_v_real1->data); + + /* "talib/_func.pxi":6724 + * real1 = PyArray_GETCONTIGUOUS(real1) + * real1_data = 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/_func.pxi":6725 + * real1_data = real1.data + * length = real0.shape[0] + * if length != real1.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + __pyx_t_1 = ((__pyx_v_length != (__pyx_v_real1->dimensions[0])) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":6726 + * length = real0.shape[0] + * if length != real1.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__866, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 6726, __pyx_L1_error) + + /* "talib/_func.pxi":6725 + * real1_data = real1.data + * length = real0.shape[0] + * if length != real1.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + } + + /* "talib/_func.pxi":6727 + * if length != real1.shape[0]: + * raise Exception("input lengths are different") + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = real0_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":6728 + * raise Exception("input lengths are different") + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = real0_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":6729 + * begidx = 0 + * for i from 0 <= i < length: + * val = real0_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_real0_data[__pyx_v_i]); + + /* "talib/_func.pxi":6730 + * for i from 0 <= i < length: + * val = real0_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = real1_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":6731 + * val = real0_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = real1_data[i] + * if val != val: + */ + goto __pyx_L10_continue; + + /* "talib/_func.pxi":6730 + * for i from 0 <= i < length: + * val = real0_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = real1_data[i] + */ + } + + /* "talib/_func.pxi":6732 + * if val != val: + * continue + * val = real1_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_real1_data[__pyx_v_i]); + + /* "talib/_func.pxi":6733 + * continue + * val = real1_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":6734 + * val = real1_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L10_continue; + + /* "talib/_func.pxi":6733 + * continue + * val = real1_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":6735 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":6736 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L11_break; + __pyx_L10_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":6738 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CORREL_Lookback( timeperiod ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__867, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6738, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 6738, __pyx_L1_error) + } + __pyx_L11_break:; + + /* "talib/_func.pxi":6739 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_CORREL_Lookback( timeperiod ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":6740 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CORREL_Lookback( timeperiod ) # <<<<<<<<<<<<<< + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_CORREL_Lookback(__pyx_v_timeperiod)); + + /* "talib/_func.pxi":6741 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CORREL_Lookback( timeperiod ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6741, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 6741, __pyx_L1_error) + __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":6742 + * lookback = begidx + lib.TA_CORREL_Lookback( timeperiod ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + */ + __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); + + /* "talib/_func.pxi":6743 + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outreal_data[i] = NaN + * retCode = lib.TA_CORREL( 0 , endidx , (real0_data+begidx) , (real1_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":6744 + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN # <<<<<<<<<<<<<< + * retCode = lib.TA_CORREL( 0 , endidx , (real0_data+begidx) , (real1_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_CORREL", retCode) + */ + (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_8c_ta_lib_NaN; + } + + /* "talib/_func.pxi":6745 + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + * retCode = lib.TA_CORREL( 0 , endidx , (real0_data+begidx) , (real1_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_CORREL", retCode) + * return outreal + */ + __pyx_v_retCode = TA_CORREL(0, __pyx_v_endidx, ((double *)(__pyx_v_real0_data + __pyx_v_begidx)), ((double *)(__pyx_v_real1_data + __pyx_v_begidx)), __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":6746 + * outreal_data[i] = NaN + * retCode = lib.TA_CORREL( 0 , endidx , (real0_data+begidx) , (real1_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_CORREL", retCode) # <<<<<<<<<<<<<< + * return outreal + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CORREL, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6746, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":6747 + * retCode = lib.TA_CORREL( 0 , endidx , (real0_data+begidx) , (real1_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_CORREL", retCode) + * return outreal # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); + __pyx_r = ((PyObject *)__pyx_v_outreal); + goto __pyx_L0; + + /* "talib/_func.pxi":6686 + * @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.c_ta_lib.CORREL", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outreal); + __Pyx_XDECREF((PyObject *)__pyx_v_real0); + __Pyx_XDECREF((PyObject *)__pyx_v_real1); + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "talib/_func.pxi":6751 + * @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_8c_ta_lib_173COS(PyObject *__pyx_self, PyObject *__pyx_v_real); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_172COS[] = " 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_8c_ta_lib_173COS = {"COS", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_173COS, METH_O, __pyx_doc_5talib_8c_ta_lib_172COS}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_173COS(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(2, 6751, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_172COS(__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_8c_ta_lib_172COS(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real) { + npy_intp __pyx_v_length; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + TA_RetCode __pyx_v_retCode; + double *__pyx_v_real_data; + int __pyx_v_outbegidx; + int __pyx_v_outnbelement; + PyArrayObject *__pyx_v_outreal = 0; + double *__pyx_v_outreal_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __Pyx_RefNannySetupContext("COS", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real); + + /* "talib/_func.pxi":6771 + * np.ndarray outreal + * double* outreal_data + * 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/_func.pxi":6772 + * double* outreal_data + * 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__868, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6772, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 6772, __pyx_L1_error) + + /* "talib/_func.pxi":6771 + * np.ndarray outreal + * double* outreal_data + * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real is not double") + * if real.ndim != 1: + */ + } + + /* "talib/_func.pxi":6773 + * 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/_func.pxi":6774 + * 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__869, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6774, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 6774, __pyx_L1_error) + + /* "talib/_func.pxi":6773 + * 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/_func.pxi":6775 + * 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 = real.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":6776 + * raise Exception("real has wrong dimensions") + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< + * real_data = real.data + * length = real.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6776, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 6776, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":6775 + * 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 = real.data + */ + } + + /* "talib/_func.pxi":6777 + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data # <<<<<<<<<<<<<< + * length = real.shape[0] + * begidx = 0 + */ + __pyx_v_real_data = ((double *)__pyx_v_real->data); + + /* "talib/_func.pxi":6778 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data + * length = real.shape[0] # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_v_length = (__pyx_v_real->dimensions[0]); + + /* "talib/_func.pxi":6779 + * real_data = real.data + * length = real.shape[0] + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = real_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":6780 + * length = real.shape[0] + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = real_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":6781 + * begidx = 0 + * for i from 0 <= i < length: + * val = real_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_real_data[__pyx_v_i]); + + /* "talib/_func.pxi":6782 + * for i from 0 <= i < length: + * val = real_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":6783 + * val = real_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L6_continue; + + /* "talib/_func.pxi":6782 + * for i from 0 <= i < length: + * val = real_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":6784 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":6785 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L7_break; + __pyx_L6_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":6787 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_COS_Lookback( ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__870, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6787, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 6787, __pyx_L1_error) + } + __pyx_L7_break:; + + /* "talib/_func.pxi":6788 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_COS_Lookback( ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":6789 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_COS_Lookback( ) # <<<<<<<<<<<<<< + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_COS_Lookback()); + + /* "talib/_func.pxi":6790 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_COS_Lookback( ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6790, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 6790, __pyx_L1_error) + __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":6791 + * lookback = begidx + lib.TA_COS_Lookback( ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + */ + __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); + + /* "talib/_func.pxi":6792 + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outreal_data[i] = NaN + * retCode = lib.TA_COS( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":6793 + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN # <<<<<<<<<<<<<< + * retCode = lib.TA_COS( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_COS", retCode) + */ + (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_8c_ta_lib_NaN; + } + + /* "talib/_func.pxi":6794 + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + * retCode = lib.TA_COS( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_COS", retCode) + * return outreal + */ + __pyx_v_retCode = TA_COS(0, __pyx_v_endidx, ((double *)(__pyx_v_real_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":6795 + * outreal_data[i] = NaN + * retCode = lib.TA_COS( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_COS", retCode) # <<<<<<<<<<<<<< + * return outreal + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_COS, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6795, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":6796 + * retCode = lib.TA_COS( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_COS", retCode) + * return outreal # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); + __pyx_r = ((PyObject *)__pyx_v_outreal); + goto __pyx_L0; + + /* "talib/_func.pxi":6751 + * @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.c_ta_lib.COS", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outreal); + __Pyx_XDECREF((PyObject *)__pyx_v_real); + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "talib/_func.pxi":6800 + * @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_8c_ta_lib_175COSH(PyObject *__pyx_self, PyObject *__pyx_v_real); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_174COSH[] = " 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_8c_ta_lib_175COSH = {"COSH", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_175COSH, METH_O, __pyx_doc_5talib_8c_ta_lib_174COSH}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_175COSH(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(2, 6800, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_174COSH(__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_8c_ta_lib_174COSH(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real) { + npy_intp __pyx_v_length; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + TA_RetCode __pyx_v_retCode; + double *__pyx_v_real_data; + int __pyx_v_outbegidx; + int __pyx_v_outnbelement; + PyArrayObject *__pyx_v_outreal = 0; + double *__pyx_v_outreal_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __Pyx_RefNannySetupContext("COSH", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real); + + /* "talib/_func.pxi":6820 + * np.ndarray outreal + * double* outreal_data + * 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/_func.pxi":6821 + * double* outreal_data + * 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__871, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6821, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 6821, __pyx_L1_error) + + /* "talib/_func.pxi":6820 + * np.ndarray outreal + * double* outreal_data + * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real is not double") + * if real.ndim != 1: + */ + } + + /* "talib/_func.pxi":6822 + * 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/_func.pxi":6823 + * 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__872, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6823, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 6823, __pyx_L1_error) + + /* "talib/_func.pxi":6822 + * 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/_func.pxi":6824 + * 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 = real.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":6825 + * raise Exception("real has wrong dimensions") + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< + * real_data = real.data + * length = real.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6825, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 6825, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":6824 + * 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 = real.data + */ + } + + /* "talib/_func.pxi":6826 + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data # <<<<<<<<<<<<<< + * length = real.shape[0] + * begidx = 0 + */ + __pyx_v_real_data = ((double *)__pyx_v_real->data); + + /* "talib/_func.pxi":6827 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data + * length = real.shape[0] # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_v_length = (__pyx_v_real->dimensions[0]); + + /* "talib/_func.pxi":6828 + * real_data = real.data + * length = real.shape[0] + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = real_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":6829 + * length = real.shape[0] + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = real_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":6830 + * begidx = 0 + * for i from 0 <= i < length: + * val = real_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_real_data[__pyx_v_i]); + + /* "talib/_func.pxi":6831 + * for i from 0 <= i < length: + * val = real_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":6832 + * val = real_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L6_continue; + + /* "talib/_func.pxi":6831 + * for i from 0 <= i < length: + * val = real_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":6833 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":6834 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L7_break; + __pyx_L6_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":6836 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_COSH_Lookback( ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__873, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 6836, __pyx_L1_error) + } + __pyx_L7_break:; + + /* "talib/_func.pxi":6837 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_COSH_Lookback( ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":6838 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_COSH_Lookback( ) # <<<<<<<<<<<<<< + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_COSH_Lookback()); + + /* "talib/_func.pxi":6839 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_COSH_Lookback( ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6839, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 6839, __pyx_L1_error) + __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":6840 + * lookback = begidx + lib.TA_COSH_Lookback( ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + */ + __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); + + /* "talib/_func.pxi":6841 + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outreal_data[i] = NaN + * retCode = lib.TA_COSH( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":6842 + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN # <<<<<<<<<<<<<< + * retCode = lib.TA_COSH( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_COSH", retCode) + */ + (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_8c_ta_lib_NaN; + } + + /* "talib/_func.pxi":6843 + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + * retCode = lib.TA_COSH( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_COSH", retCode) + * return outreal + */ + __pyx_v_retCode = TA_COSH(0, __pyx_v_endidx, ((double *)(__pyx_v_real_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":6844 + * outreal_data[i] = NaN + * retCode = lib.TA_COSH( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_COSH", retCode) # <<<<<<<<<<<<<< + * return outreal + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_COSH, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6844, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":6845 + * retCode = lib.TA_COSH( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_COSH", retCode) + * return outreal # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); + __pyx_r = ((PyObject *)__pyx_v_outreal); + goto __pyx_L0; + + /* "talib/_func.pxi":6800 + * @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.c_ta_lib.COSH", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outreal); + __Pyx_XDECREF((PyObject *)__pyx_v_real); + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "talib/_func.pxi":6849 + * @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_8c_ta_lib_177DEMA(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_176DEMA[] = " 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_8c_ta_lib_177DEMA = {"DEMA", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_177DEMA, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_176DEMA}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_177DEMA(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(2, 6849, __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(2, 6849, __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(2, 6849, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 6849, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_176DEMA(__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_8c_ta_lib_176DEMA(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod) { + npy_intp __pyx_v_length; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + TA_RetCode __pyx_v_retCode; + double *__pyx_v_real_data; + int __pyx_v_outbegidx; + int __pyx_v_outnbelement; + PyArrayObject *__pyx_v_outreal = 0; + double *__pyx_v_outreal_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __Pyx_RefNannySetupContext("DEMA", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real); + + /* "talib/_func.pxi":6871 + * np.ndarray outreal + * double* outreal_data + * 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/_func.pxi":6872 + * double* outreal_data + * 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__874, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 6872, __pyx_L1_error) + + /* "talib/_func.pxi":6871 + * np.ndarray outreal + * double* outreal_data + * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real is not double") + * if real.ndim != 1: + */ + } + + /* "talib/_func.pxi":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/_func.pxi":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__875, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 6874, __pyx_L1_error) + + /* "talib/_func.pxi":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/_func.pxi":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 = real.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":6876 + * raise Exception("real has wrong dimensions") + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< + * real_data = real.data + * length = real.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 6876, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":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 = real.data + */ + } + + /* "talib/_func.pxi":6877 + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data # <<<<<<<<<<<<<< + * length = real.shape[0] + * begidx = 0 + */ + __pyx_v_real_data = ((double *)__pyx_v_real->data); + + /* "talib/_func.pxi":6878 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data + * length = real.shape[0] # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_v_length = (__pyx_v_real->dimensions[0]); + + /* "talib/_func.pxi":6879 + * real_data = real.data + * length = real.shape[0] + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = real_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":6880 + * length = real.shape[0] + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = real_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":6881 + * begidx = 0 + * for i from 0 <= i < length: + * val = real_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_real_data[__pyx_v_i]); + + /* "talib/_func.pxi":6882 + * for i from 0 <= i < length: + * val = real_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":6883 + * val = real_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L6_continue; + + /* "talib/_func.pxi":6882 + * for i from 0 <= i < length: + * val = real_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":6884 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":6885 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L7_break; + __pyx_L6_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":6887 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_DEMA_Lookback( timeperiod ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__876, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6887, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 6887, __pyx_L1_error) + } + __pyx_L7_break:; + + /* "talib/_func.pxi":6888 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_DEMA_Lookback( timeperiod ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":6889 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_DEMA_Lookback( timeperiod ) # <<<<<<<<<<<<<< + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_DEMA_Lookback(__pyx_v_timeperiod)); + + /* "talib/_func.pxi":6890 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_DEMA_Lookback( timeperiod ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6890, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 6890, __pyx_L1_error) + __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":6891 + * lookback = begidx + lib.TA_DEMA_Lookback( timeperiod ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + */ + __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); + + /* "talib/_func.pxi":6892 + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outreal_data[i] = NaN + * retCode = lib.TA_DEMA( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":6893 + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN # <<<<<<<<<<<<<< + * retCode = lib.TA_DEMA( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_DEMA", retCode) + */ + (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_8c_ta_lib_NaN; + } + + /* "talib/_func.pxi":6894 + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + * retCode = lib.TA_DEMA( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_DEMA", retCode) + * return outreal + */ + __pyx_v_retCode = TA_DEMA(0, __pyx_v_endidx, ((double *)(__pyx_v_real_data + __pyx_v_begidx)), __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":6895 + * outreal_data[i] = NaN + * retCode = lib.TA_DEMA( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_DEMA", retCode) # <<<<<<<<<<<<<< + * return outreal + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_DEMA, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6895, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":6896 + * retCode = lib.TA_DEMA( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_DEMA", retCode) + * return outreal # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); + __pyx_r = ((PyObject *)__pyx_v_outreal); + goto __pyx_L0; + + /* "talib/_func.pxi":6849 + * @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.c_ta_lib.DEMA", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outreal); + __Pyx_XDECREF((PyObject *)__pyx_v_real); + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "talib/_func.pxi":6900 + * @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_8c_ta_lib_179DIV(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_178DIV[] = " 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_8c_ta_lib_179DIV = {"DIV", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_179DIV, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_178DIV}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_179DIV(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(2, 6900, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "DIV") < 0)) __PYX_ERR(2, 6900, __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(2, 6900, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 6900, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_real1), __pyx_ptype_5numpy_ndarray, 0, "real1", 0))) __PYX_ERR(2, 6900, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_178DIV(__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_8c_ta_lib_178DIV(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real0, PyArrayObject *__pyx_v_real1) { + npy_intp __pyx_v_length; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + TA_RetCode __pyx_v_retCode; + double *__pyx_v_real0_data; + double *__pyx_v_real1_data; + int __pyx_v_outbegidx; + int __pyx_v_outnbelement; + PyArrayObject *__pyx_v_outreal = 0; + double *__pyx_v_outreal_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __Pyx_RefNannySetupContext("DIV", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real0); + __Pyx_INCREF((PyObject *)__pyx_v_real1); + + /* "talib/_func.pxi":6922 + * np.ndarray outreal + * double* outreal_data + * 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/_func.pxi":6923 + * double* outreal_data + * 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__877, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6923, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 6923, __pyx_L1_error) + + /* "talib/_func.pxi":6922 + * np.ndarray outreal + * double* outreal_data + * if PyArray_TYPE(real0) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real0 is not double") + * if real0.ndim != 1: + */ + } + + /* "talib/_func.pxi":6924 + * 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/_func.pxi":6925 + * 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__878, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6925, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 6925, __pyx_L1_error) + + /* "talib/_func.pxi":6924 + * 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/_func.pxi":6926 + * 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 = real0.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real0) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":6927 + * raise Exception("real0 has wrong dimensions") + * if not (PyArray_FLAGS(real0) & np.NPY_C_CONTIGUOUS): + * real0 = PyArray_GETCONTIGUOUS(real0) # <<<<<<<<<<<<<< + * real0_data = real0.data + * if PyArray_TYPE(real1) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6927, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 6927, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real0, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":6926 + * 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 = real0.data + */ + } + + /* "talib/_func.pxi":6928 + * if not (PyArray_FLAGS(real0) & np.NPY_C_CONTIGUOUS): + * real0 = PyArray_GETCONTIGUOUS(real0) + * real0_data = 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/_func.pxi":6929 + * real0 = PyArray_GETCONTIGUOUS(real0) + * real0_data = 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/_func.pxi":6930 + * real0_data = 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__879, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6930, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 6930, __pyx_L1_error) + + /* "talib/_func.pxi":6929 + * real0 = PyArray_GETCONTIGUOUS(real0) + * real0_data = real0.data + * if PyArray_TYPE(real1) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real1 is not double") + * if real1.ndim != 1: + */ + } + + /* "talib/_func.pxi":6931 + * 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/_func.pxi":6932 + * 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__880, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6932, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 6932, __pyx_L1_error) + + /* "talib/_func.pxi":6931 + * 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/_func.pxi":6933 + * 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 = real1.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real1) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":6934 + * raise Exception("real1 has wrong dimensions") + * if not (PyArray_FLAGS(real1) & np.NPY_C_CONTIGUOUS): + * real1 = PyArray_GETCONTIGUOUS(real1) # <<<<<<<<<<<<<< + * real1_data = real1.data + * length = real0.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real1); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6934, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 6934, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real1, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":6933 + * 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 = real1.data + */ + } + + /* "talib/_func.pxi":6935 + * if not (PyArray_FLAGS(real1) & np.NPY_C_CONTIGUOUS): + * real1 = PyArray_GETCONTIGUOUS(real1) + * real1_data = real1.data # <<<<<<<<<<<<<< + * length = real0.shape[0] + * if length != real1.shape[0]: + */ + __pyx_v_real1_data = ((double *)__pyx_v_real1->data); + + /* "talib/_func.pxi":6936 + * real1 = PyArray_GETCONTIGUOUS(real1) + * real1_data = 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/_func.pxi":6937 + * real1_data = real1.data + * length = real0.shape[0] + * if length != real1.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + __pyx_t_1 = ((__pyx_v_length != (__pyx_v_real1->dimensions[0])) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":6938 + * length = real0.shape[0] + * if length != real1.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__881, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6938, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 6938, __pyx_L1_error) + + /* "talib/_func.pxi":6937 + * real1_data = real1.data + * length = real0.shape[0] + * if length != real1.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + } + + /* "talib/_func.pxi":6939 + * if length != real1.shape[0]: + * raise Exception("input lengths are different") + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = real0_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":6940 + * raise Exception("input lengths are different") + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = real0_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":6941 + * begidx = 0 + * for i from 0 <= i < length: + * val = real0_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_real0_data[__pyx_v_i]); + + /* "talib/_func.pxi":6942 + * for i from 0 <= i < length: + * val = real0_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = real1_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":6943 + * val = real0_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = real1_data[i] + * if val != val: + */ + goto __pyx_L10_continue; + + /* "talib/_func.pxi":6942 + * for i from 0 <= i < length: + * val = real0_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = real1_data[i] + */ + } + + /* "talib/_func.pxi":6944 + * if val != val: + * continue + * val = real1_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_real1_data[__pyx_v_i]); + + /* "talib/_func.pxi":6945 + * continue + * val = real1_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":6946 + * val = real1_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L10_continue; + + /* "talib/_func.pxi":6945 + * continue + * val = real1_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":6947 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":6948 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L11_break; + __pyx_L10_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":6950 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_DIV_Lookback( ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__882, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6950, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 6950, __pyx_L1_error) + } + __pyx_L11_break:; + + /* "talib/_func.pxi":6951 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_DIV_Lookback( ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":6952 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_DIV_Lookback( ) # <<<<<<<<<<<<<< + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_DIV_Lookback()); + + /* "talib/_func.pxi":6953 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_DIV_Lookback( ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6953, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 6953, __pyx_L1_error) + __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":6954 + * lookback = begidx + lib.TA_DIV_Lookback( ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + */ + __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); + + /* "talib/_func.pxi":6955 + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outreal_data[i] = NaN + * retCode = lib.TA_DIV( 0 , endidx , (real0_data+begidx) , (real1_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":6956 + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN # <<<<<<<<<<<<<< + * retCode = lib.TA_DIV( 0 , endidx , (real0_data+begidx) , (real1_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_DIV", retCode) + */ + (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_8c_ta_lib_NaN; + } + + /* "talib/_func.pxi":6957 + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + * retCode = lib.TA_DIV( 0 , endidx , (real0_data+begidx) , (real1_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_DIV", retCode) + * return outreal + */ + __pyx_v_retCode = TA_DIV(0, __pyx_v_endidx, ((double *)(__pyx_v_real0_data + __pyx_v_begidx)), ((double *)(__pyx_v_real1_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":6958 + * outreal_data[i] = NaN + * retCode = lib.TA_DIV( 0 , endidx , (real0_data+begidx) , (real1_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_DIV", retCode) # <<<<<<<<<<<<<< + * return outreal + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_DIV, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6958, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":6959 + * retCode = lib.TA_DIV( 0 , endidx , (real0_data+begidx) , (real1_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_DIV", retCode) + * return outreal # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); + __pyx_r = ((PyObject *)__pyx_v_outreal); + goto __pyx_L0; + + /* "talib/_func.pxi":6900 + * @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.c_ta_lib.DIV", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outreal); + __Pyx_XDECREF((PyObject *)__pyx_v_real0); + __Pyx_XDECREF((PyObject *)__pyx_v_real1); + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "talib/_func.pxi":6963 + * @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_8c_ta_lib_181DX(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_180DX[] = " 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_8c_ta_lib_181DX = {"DX", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_181DX, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_180DX}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_181DX(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(2, 6963, __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(2, 6963, __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(2, 6963, __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(2, 6963, __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(2, 6963, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 6963, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(2, 6963, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(2, 6963, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_180DX(__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_8c_ta_lib_180DX(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; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + 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; + PyArrayObject *__pyx_v_outreal = 0; + double *__pyx_v_outreal_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __Pyx_RefNannySetupContext("DX", 0); + __Pyx_INCREF((PyObject *)__pyx_v_high); + __Pyx_INCREF((PyObject *)__pyx_v_low); + __Pyx_INCREF((PyObject *)__pyx_v_close); + + /* "talib/_func.pxi":6987 + * np.ndarray outreal + * double* outreal_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/_func.pxi":6988 + * double* outreal_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__883, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6988, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 6988, __pyx_L1_error) + + /* "talib/_func.pxi":6987 + * np.ndarray outreal + * double* outreal_data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_func.pxi":6989 + * 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/_func.pxi":6990 + * raise 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__884, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6990, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 6990, __pyx_L1_error) + + /* "talib/_func.pxi":6989 + * 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/_func.pxi":6991 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":6992 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6992, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 6992, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":6991 + * 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 = high.data + */ + } + + /* "talib/_func.pxi":6993 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":6994 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":6995 + * high_data = 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__885, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6995, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 6995, __pyx_L1_error) + + /* "talib/_func.pxi":6994 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_func.pxi":6996 + * 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/_func.pxi":6997 + * raise 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__886, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 6997, __pyx_L1_error) + + /* "talib/_func.pxi":6996 + * 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/_func.pxi":6998 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":6999 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6999, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 6999, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":6998 + * 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 = low.data + */ + } + + /* "talib/_func.pxi":7000 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":7001 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":7002 + * low_data = 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__887, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7002, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 7002, __pyx_L1_error) + + /* "talib/_func.pxi":7001 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_func.pxi":7003 + * 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/_func.pxi":7004 + * raise 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__888, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7004, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 7004, __pyx_L1_error) + + /* "talib/_func.pxi":7003 + * 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/_func.pxi":7005 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":7006 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = high.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7006, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 7006, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":7005 + * 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 = close.data + */ + } + + /* "talib/_func.pxi":7007 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = high.shape[0] + * if length != low.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_func.pxi":7008 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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/_func.pxi":7009 + * close_data = 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/_func.pxi":7010 + * 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__889, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7010, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 7010, __pyx_L1_error) + + /* "talib/_func.pxi":7009 + * close_data = close.data + * length = high.shape[0] + * if length != low.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != close.shape[0]: + */ + } + + /* "talib/_func.pxi":7011 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":7012 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__890, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7012, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 7012, __pyx_L1_error) + + /* "talib/_func.pxi":7011 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + } + + /* "talib/_func.pxi":7013 + * if length != close.shape[0]: + * raise Exception("input lengths are different") + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = high_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":7014 + * raise Exception("input lengths are different") + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = high_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":7015 + * begidx = 0 + * for i from 0 <= i < length: + * val = high_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); + + /* "talib/_func.pxi":7016 + * for i from 0 <= i < length: + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":7017 + * val = high_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = low_data[i] + * if val != val: + */ + goto __pyx_L14_continue; + + /* "talib/_func.pxi":7016 + * for i from 0 <= i < length: + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + } + + /* "talib/_func.pxi":7018 + * if val != val: + * continue + * val = low_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); + + /* "talib/_func.pxi":7019 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":7020 + * val = low_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = close_data[i] + * if val != val: + */ + goto __pyx_L14_continue; + + /* "talib/_func.pxi":7019 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + } + + /* "talib/_func.pxi":7021 + * if val != val: + * continue + * val = close_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); + + /* "talib/_func.pxi":7022 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":7023 + * val = close_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L14_continue; + + /* "talib/_func.pxi":7022 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":7024 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":7025 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L15_break; + __pyx_L14_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":7027 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_DX_Lookback( timeperiod ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__891, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7027, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 7027, __pyx_L1_error) + } + __pyx_L15_break:; + + /* "talib/_func.pxi":7028 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_DX_Lookback( timeperiod ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":7029 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_DX_Lookback( timeperiod ) # <<<<<<<<<<<<<< + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_DX_Lookback(__pyx_v_timeperiod)); + + /* "talib/_func.pxi":7030 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_DX_Lookback( timeperiod ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7030, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 7030, __pyx_L1_error) + __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":7031 + * lookback = begidx + lib.TA_DX_Lookback( timeperiod ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + */ + __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); + + /* "talib/_func.pxi":7032 + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outreal_data[i] = NaN + * retCode = lib.TA_DX( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":7033 + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN # <<<<<<<<<<<<<< + * retCode = lib.TA_DX( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_DX", retCode) + */ + (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_8c_ta_lib_NaN; + } + + /* "talib/_func.pxi":7034 + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + * retCode = lib.TA_DX( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_DX", retCode) + * return outreal + */ + __pyx_v_retCode = TA_DX(0, __pyx_v_endidx, ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":7035 + * outreal_data[i] = NaN + * retCode = lib.TA_DX( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_DX", retCode) # <<<<<<<<<<<<<< + * return outreal + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_DX, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7035, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":7036 + * retCode = lib.TA_DX( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_DX", retCode) + * return outreal # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); + __pyx_r = ((PyObject *)__pyx_v_outreal); + goto __pyx_L0; + + /* "talib/_func.pxi":6963 + * @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.c_ta_lib.DX", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outreal); + __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/_func.pxi":7040 + * @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_8c_ta_lib_183EMA(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_182EMA[] = " 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_8c_ta_lib_183EMA = {"EMA", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_183EMA, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_182EMA}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_183EMA(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(2, 7040, __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(2, 7040, __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(2, 7040, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 7040, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_182EMA(__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_8c_ta_lib_182EMA(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod) { + npy_intp __pyx_v_length; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + TA_RetCode __pyx_v_retCode; + double *__pyx_v_real_data; + int __pyx_v_outbegidx; + int __pyx_v_outnbelement; + PyArrayObject *__pyx_v_outreal = 0; + double *__pyx_v_outreal_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __Pyx_RefNannySetupContext("EMA", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real); + + /* "talib/_func.pxi":7062 + * np.ndarray outreal + * double* outreal_data + * 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/_func.pxi":7063 + * double* outreal_data + * 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__892, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7063, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 7063, __pyx_L1_error) + + /* "talib/_func.pxi":7062 + * np.ndarray outreal + * double* outreal_data + * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real is not double") + * if real.ndim != 1: + */ + } + + /* "talib/_func.pxi":7064 + * 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/_func.pxi":7065 + * 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__893, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7065, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 7065, __pyx_L1_error) + + /* "talib/_func.pxi":7064 + * 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/_func.pxi":7066 + * 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 = real.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":7067 + * raise Exception("real has wrong dimensions") + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< + * real_data = real.data + * length = real.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7067, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 7067, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":7066 + * 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 = real.data + */ + } + + /* "talib/_func.pxi":7068 + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data # <<<<<<<<<<<<<< + * length = real.shape[0] + * begidx = 0 + */ + __pyx_v_real_data = ((double *)__pyx_v_real->data); + + /* "talib/_func.pxi":7069 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data + * length = real.shape[0] # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_v_length = (__pyx_v_real->dimensions[0]); + + /* "talib/_func.pxi":7070 + * real_data = real.data + * length = real.shape[0] + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = real_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":7071 + * length = real.shape[0] + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = real_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":7072 + * begidx = 0 + * for i from 0 <= i < length: + * val = real_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_real_data[__pyx_v_i]); + + /* "talib/_func.pxi":7073 + * for i from 0 <= i < length: + * val = real_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":7074 + * val = real_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L6_continue; + + /* "talib/_func.pxi":7073 + * for i from 0 <= i < length: + * val = real_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":7075 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":7076 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L7_break; + __pyx_L6_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":7078 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_EMA_Lookback( timeperiod ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__894, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 7078, __pyx_L1_error) + } + __pyx_L7_break:; + + /* "talib/_func.pxi":7079 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_EMA_Lookback( timeperiod ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":7080 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_EMA_Lookback( timeperiod ) # <<<<<<<<<<<<<< + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_EMA_Lookback(__pyx_v_timeperiod)); + + /* "talib/_func.pxi":7081 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_EMA_Lookback( timeperiod ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7081, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 7081, __pyx_L1_error) + __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":7082 + * lookback = begidx + lib.TA_EMA_Lookback( timeperiod ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + */ + __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); + + /* "talib/_func.pxi":7083 + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outreal_data[i] = NaN + * retCode = lib.TA_EMA( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":7084 + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN # <<<<<<<<<<<<<< + * retCode = lib.TA_EMA( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_EMA", retCode) + */ + (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_8c_ta_lib_NaN; + } + + /* "talib/_func.pxi":7085 + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + * retCode = lib.TA_EMA( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_EMA", retCode) + * return outreal + */ + __pyx_v_retCode = TA_EMA(0, __pyx_v_endidx, ((double *)(__pyx_v_real_data + __pyx_v_begidx)), __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":7086 + * outreal_data[i] = NaN + * retCode = lib.TA_EMA( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_EMA", retCode) # <<<<<<<<<<<<<< + * return outreal + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_EMA, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7086, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":7087 + * retCode = lib.TA_EMA( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_EMA", retCode) + * return outreal # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); + __pyx_r = ((PyObject *)__pyx_v_outreal); + goto __pyx_L0; + + /* "talib/_func.pxi":7040 + * @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.c_ta_lib.EMA", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outreal); + __Pyx_XDECREF((PyObject *)__pyx_v_real); + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "talib/_func.pxi":7091 + * @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_8c_ta_lib_185EXP(PyObject *__pyx_self, PyObject *__pyx_v_real); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_184EXP[] = " 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_8c_ta_lib_185EXP = {"EXP", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_185EXP, METH_O, __pyx_doc_5talib_8c_ta_lib_184EXP}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_185EXP(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(2, 7091, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_184EXP(__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_8c_ta_lib_184EXP(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real) { + npy_intp __pyx_v_length; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + TA_RetCode __pyx_v_retCode; + double *__pyx_v_real_data; + int __pyx_v_outbegidx; + int __pyx_v_outnbelement; + PyArrayObject *__pyx_v_outreal = 0; + double *__pyx_v_outreal_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __Pyx_RefNannySetupContext("EXP", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real); + + /* "talib/_func.pxi":7111 + * np.ndarray outreal + * double* outreal_data + * 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/_func.pxi":7112 + * double* outreal_data + * 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__895, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 7112, __pyx_L1_error) + + /* "talib/_func.pxi":7111 + * np.ndarray outreal + * double* outreal_data + * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real is not double") + * if real.ndim != 1: + */ + } + + /* "talib/_func.pxi":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/_func.pxi":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__896, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 7114, __pyx_L1_error) + + /* "talib/_func.pxi":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/_func.pxi":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 = real.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":7116 + * raise Exception("real has wrong dimensions") + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< + * real_data = real.data + * length = real.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 7116, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":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 = real.data + */ + } + + /* "talib/_func.pxi":7117 + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data # <<<<<<<<<<<<<< + * length = real.shape[0] + * begidx = 0 + */ + __pyx_v_real_data = ((double *)__pyx_v_real->data); + + /* "talib/_func.pxi":7118 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data + * length = real.shape[0] # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_v_length = (__pyx_v_real->dimensions[0]); + + /* "talib/_func.pxi":7119 + * real_data = real.data + * length = real.shape[0] + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = real_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":7120 + * length = real.shape[0] + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = real_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":7121 + * begidx = 0 + * for i from 0 <= i < length: + * val = real_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_real_data[__pyx_v_i]); + + /* "talib/_func.pxi":7122 + * for i from 0 <= i < length: + * val = real_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":7123 + * val = real_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L6_continue; + + /* "talib/_func.pxi":7122 + * for i from 0 <= i < length: + * val = real_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":7124 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":7125 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L7_break; + __pyx_L6_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":7127 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_EXP_Lookback( ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__897, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7127, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 7127, __pyx_L1_error) + } + __pyx_L7_break:; + + /* "talib/_func.pxi":7128 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_EXP_Lookback( ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":7129 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_EXP_Lookback( ) # <<<<<<<<<<<<<< + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_EXP_Lookback()); + + /* "talib/_func.pxi":7130 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_EXP_Lookback( ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7130, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 7130, __pyx_L1_error) + __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":7131 + * lookback = begidx + lib.TA_EXP_Lookback( ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + */ + __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); + + /* "talib/_func.pxi":7132 + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outreal_data[i] = NaN + * retCode = lib.TA_EXP( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":7133 + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN # <<<<<<<<<<<<<< + * retCode = lib.TA_EXP( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_EXP", retCode) + */ + (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_8c_ta_lib_NaN; + } + + /* "talib/_func.pxi":7134 + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + * retCode = lib.TA_EXP( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_EXP", retCode) + * return outreal + */ + __pyx_v_retCode = TA_EXP(0, __pyx_v_endidx, ((double *)(__pyx_v_real_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":7135 + * outreal_data[i] = NaN + * retCode = lib.TA_EXP( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_EXP", retCode) # <<<<<<<<<<<<<< + * return outreal + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_EXP, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7135, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":7136 + * retCode = lib.TA_EXP( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_EXP", retCode) + * return outreal # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); + __pyx_r = ((PyObject *)__pyx_v_outreal); + goto __pyx_L0; + + /* "talib/_func.pxi":7091 + * @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.c_ta_lib.EXP", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outreal); + __Pyx_XDECREF((PyObject *)__pyx_v_real); + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "talib/_func.pxi":7140 + * @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_8c_ta_lib_187FLOOR(PyObject *__pyx_self, PyObject *__pyx_v_real); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_186FLOOR[] = " 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_8c_ta_lib_187FLOOR = {"FLOOR", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_187FLOOR, METH_O, __pyx_doc_5talib_8c_ta_lib_186FLOOR}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_187FLOOR(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(2, 7140, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_186FLOOR(__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_8c_ta_lib_186FLOOR(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real) { + npy_intp __pyx_v_length; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + TA_RetCode __pyx_v_retCode; + double *__pyx_v_real_data; + int __pyx_v_outbegidx; + int __pyx_v_outnbelement; + PyArrayObject *__pyx_v_outreal = 0; + double *__pyx_v_outreal_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __Pyx_RefNannySetupContext("FLOOR", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real); + + /* "talib/_func.pxi":7160 + * np.ndarray outreal + * double* outreal_data + * 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/_func.pxi":7161 + * double* outreal_data + * 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__898, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7161, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 7161, __pyx_L1_error) + + /* "talib/_func.pxi":7160 + * np.ndarray outreal + * double* outreal_data + * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real is not double") + * if real.ndim != 1: + */ + } + + /* "talib/_func.pxi":7162 + * 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/_func.pxi":7163 + * 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__899, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7163, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 7163, __pyx_L1_error) + + /* "talib/_func.pxi":7162 + * 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/_func.pxi":7164 + * 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 = real.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":7165 + * raise Exception("real has wrong dimensions") + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< + * real_data = real.data + * length = real.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7165, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 7165, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":7164 + * 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 = real.data + */ + } + + /* "talib/_func.pxi":7166 + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data # <<<<<<<<<<<<<< + * length = real.shape[0] + * begidx = 0 + */ + __pyx_v_real_data = ((double *)__pyx_v_real->data); + + /* "talib/_func.pxi":7167 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data + * length = real.shape[0] # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_v_length = (__pyx_v_real->dimensions[0]); + + /* "talib/_func.pxi":7168 + * real_data = real.data + * length = real.shape[0] + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = real_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":7169 + * length = real.shape[0] + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = real_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":7170 + * begidx = 0 + * for i from 0 <= i < length: + * val = real_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_real_data[__pyx_v_i]); + + /* "talib/_func.pxi":7171 + * for i from 0 <= i < length: + * val = real_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":7172 + * val = real_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L6_continue; + + /* "talib/_func.pxi":7171 + * for i from 0 <= i < length: + * val = real_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":7173 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":7174 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L7_break; + __pyx_L6_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":7176 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_FLOOR_Lookback( ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__900, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7176, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 7176, __pyx_L1_error) + } + __pyx_L7_break:; + + /* "talib/_func.pxi":7177 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_FLOOR_Lookback( ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":7178 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_FLOOR_Lookback( ) # <<<<<<<<<<<<<< + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_FLOOR_Lookback()); + + /* "talib/_func.pxi":7179 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_FLOOR_Lookback( ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7179, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 7179, __pyx_L1_error) + __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":7180 + * lookback = begidx + lib.TA_FLOOR_Lookback( ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + */ + __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); + + /* "talib/_func.pxi":7181 + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outreal_data[i] = NaN + * retCode = lib.TA_FLOOR( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":7182 + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN # <<<<<<<<<<<<<< + * retCode = lib.TA_FLOOR( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_FLOOR", retCode) + */ + (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_8c_ta_lib_NaN; + } + + /* "talib/_func.pxi":7183 + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + * retCode = lib.TA_FLOOR( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_FLOOR", retCode) + * return outreal + */ + __pyx_v_retCode = TA_FLOOR(0, __pyx_v_endidx, ((double *)(__pyx_v_real_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":7184 + * outreal_data[i] = NaN + * retCode = lib.TA_FLOOR( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_FLOOR", retCode) # <<<<<<<<<<<<<< + * return outreal + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_FLOOR, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7184, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":7185 + * retCode = lib.TA_FLOOR( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_FLOOR", retCode) + * return outreal # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); + __pyx_r = ((PyObject *)__pyx_v_outreal); + goto __pyx_L0; + + /* "talib/_func.pxi":7140 + * @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.c_ta_lib.FLOOR", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outreal); + __Pyx_XDECREF((PyObject *)__pyx_v_real); + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "talib/_func.pxi":7189 + * @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_8c_ta_lib_189HT_DCPERIOD(PyObject *__pyx_self, PyObject *__pyx_v_real); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_188HT_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_8c_ta_lib_189HT_DCPERIOD = {"HT_DCPERIOD", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_189HT_DCPERIOD, METH_O, __pyx_doc_5talib_8c_ta_lib_188HT_DCPERIOD}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_189HT_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(2, 7189, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_188HT_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_8c_ta_lib_188HT_DCPERIOD(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real) { + npy_intp __pyx_v_length; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + TA_RetCode __pyx_v_retCode; + double *__pyx_v_real_data; + int __pyx_v_outbegidx; + int __pyx_v_outnbelement; + PyArrayObject *__pyx_v_outreal = 0; + double *__pyx_v_outreal_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __Pyx_RefNannySetupContext("HT_DCPERIOD", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real); + + /* "talib/_func.pxi":7209 + * np.ndarray outreal + * double* outreal_data + * 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/_func.pxi":7210 + * double* outreal_data + * 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(2, 7210, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 7210, __pyx_L1_error) + + /* "talib/_func.pxi":7209 + * np.ndarray outreal + * double* outreal_data + * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real is not double") + * if real.ndim != 1: + */ + } + + /* "talib/_func.pxi":7211 + * 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/_func.pxi":7212 + * 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(2, 7212, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 7212, __pyx_L1_error) + + /* "talib/_func.pxi":7211 + * 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/_func.pxi":7213 + * 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 = real.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":7214 + * raise Exception("real has wrong dimensions") + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< + * real_data = real.data + * length = real.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7214, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 7214, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":7213 + * 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 = real.data + */ + } + + /* "talib/_func.pxi":7215 + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data # <<<<<<<<<<<<<< + * length = real.shape[0] + * begidx = 0 + */ + __pyx_v_real_data = ((double *)__pyx_v_real->data); + + /* "talib/_func.pxi":7216 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data + * length = real.shape[0] # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_v_length = (__pyx_v_real->dimensions[0]); + + /* "talib/_func.pxi":7217 + * real_data = real.data + * length = real.shape[0] + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = real_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":7218 + * length = real.shape[0] + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = real_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":7219 + * begidx = 0 + * for i from 0 <= i < length: + * val = real_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_real_data[__pyx_v_i]); + + /* "talib/_func.pxi":7220 + * for i from 0 <= i < length: + * val = real_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":7221 + * val = real_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L6_continue; + + /* "talib/_func.pxi":7220 + * for i from 0 <= i < length: + * val = real_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":7222 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":7223 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L7_break; + __pyx_L6_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":7225 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_HT_DCPERIOD_Lookback( ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__903, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7225, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 7225, __pyx_L1_error) + } + __pyx_L7_break:; + + /* "talib/_func.pxi":7226 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_HT_DCPERIOD_Lookback( ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":7227 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_HT_DCPERIOD_Lookback( ) # <<<<<<<<<<<<<< + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_HT_DCPERIOD_Lookback()); + + /* "talib/_func.pxi":7228 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_HT_DCPERIOD_Lookback( ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7228, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 7228, __pyx_L1_error) + __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":7229 + * lookback = begidx + lib.TA_HT_DCPERIOD_Lookback( ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + */ + __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); + + /* "talib/_func.pxi":7230 + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outreal_data[i] = NaN + * retCode = lib.TA_HT_DCPERIOD( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":7231 + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN # <<<<<<<<<<<<<< + * retCode = lib.TA_HT_DCPERIOD( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_HT_DCPERIOD", retCode) + */ + (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_8c_ta_lib_NaN; + } + + /* "talib/_func.pxi":7232 + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + * retCode = lib.TA_HT_DCPERIOD( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_HT_DCPERIOD", retCode) + * return outreal + */ + __pyx_v_retCode = TA_HT_DCPERIOD(0, __pyx_v_endidx, ((double *)(__pyx_v_real_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":7233 + * outreal_data[i] = NaN + * retCode = lib.TA_HT_DCPERIOD( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_HT_DCPERIOD", retCode) # <<<<<<<<<<<<<< + * return outreal + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_HT_DCPERIOD, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7233, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":7234 + * retCode = lib.TA_HT_DCPERIOD( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_HT_DCPERIOD", retCode) + * return outreal # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); + __pyx_r = ((PyObject *)__pyx_v_outreal); + goto __pyx_L0; + + /* "talib/_func.pxi":7189 + * @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.c_ta_lib.HT_DCPERIOD", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outreal); + __Pyx_XDECREF((PyObject *)__pyx_v_real); + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "talib/_func.pxi":7238 + * @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_8c_ta_lib_191HT_DCPHASE(PyObject *__pyx_self, PyObject *__pyx_v_real); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_190HT_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_8c_ta_lib_191HT_DCPHASE = {"HT_DCPHASE", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_191HT_DCPHASE, METH_O, __pyx_doc_5talib_8c_ta_lib_190HT_DCPHASE}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_191HT_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(2, 7238, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_190HT_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_8c_ta_lib_190HT_DCPHASE(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real) { + npy_intp __pyx_v_length; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + TA_RetCode __pyx_v_retCode; + double *__pyx_v_real_data; + int __pyx_v_outbegidx; + int __pyx_v_outnbelement; + PyArrayObject *__pyx_v_outreal = 0; + double *__pyx_v_outreal_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __Pyx_RefNannySetupContext("HT_DCPHASE", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real); + + /* "talib/_func.pxi":7258 + * np.ndarray outreal + * double* outreal_data + * 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/_func.pxi":7259 + * double* outreal_data + * 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__904, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7259, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 7259, __pyx_L1_error) + + /* "talib/_func.pxi":7258 + * np.ndarray outreal + * double* outreal_data + * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real is not double") + * if real.ndim != 1: + */ + } + + /* "talib/_func.pxi":7260 + * 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/_func.pxi":7261 + * 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__905, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7261, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 7261, __pyx_L1_error) + + /* "talib/_func.pxi":7260 + * 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/_func.pxi":7262 + * 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 = real.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":7263 + * raise Exception("real has wrong dimensions") + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< + * real_data = real.data + * length = real.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7263, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 7263, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":7262 + * 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 = real.data + */ + } + + /* "talib/_func.pxi":7264 + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data # <<<<<<<<<<<<<< + * length = real.shape[0] + * begidx = 0 + */ + __pyx_v_real_data = ((double *)__pyx_v_real->data); + + /* "talib/_func.pxi":7265 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data + * length = real.shape[0] # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_v_length = (__pyx_v_real->dimensions[0]); + + /* "talib/_func.pxi":7266 + * real_data = real.data + * length = real.shape[0] + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = real_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":7267 + * length = real.shape[0] + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = real_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":7268 + * begidx = 0 + * for i from 0 <= i < length: + * val = real_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_real_data[__pyx_v_i]); + + /* "talib/_func.pxi":7269 + * for i from 0 <= i < length: + * val = real_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":7270 + * val = real_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L6_continue; + + /* "talib/_func.pxi":7269 + * for i from 0 <= i < length: + * val = real_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":7271 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":7272 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L7_break; + __pyx_L6_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":7274 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_HT_DCPHASE_Lookback( ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__906, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7274, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 7274, __pyx_L1_error) + } + __pyx_L7_break:; + + /* "talib/_func.pxi":7275 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_HT_DCPHASE_Lookback( ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":7276 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_HT_DCPHASE_Lookback( ) # <<<<<<<<<<<<<< + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_HT_DCPHASE_Lookback()); + + /* "talib/_func.pxi":7277 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_HT_DCPHASE_Lookback( ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7277, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 7277, __pyx_L1_error) + __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":7278 + * lookback = begidx + lib.TA_HT_DCPHASE_Lookback( ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + */ + __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); + + /* "talib/_func.pxi":7279 + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outreal_data[i] = NaN + * retCode = lib.TA_HT_DCPHASE( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":7280 + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN # <<<<<<<<<<<<<< + * retCode = lib.TA_HT_DCPHASE( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_HT_DCPHASE", retCode) + */ + (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_8c_ta_lib_NaN; + } + + /* "talib/_func.pxi":7281 + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + * retCode = lib.TA_HT_DCPHASE( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_HT_DCPHASE", retCode) + * return outreal + */ + __pyx_v_retCode = TA_HT_DCPHASE(0, __pyx_v_endidx, ((double *)(__pyx_v_real_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":7282 + * outreal_data[i] = NaN + * retCode = lib.TA_HT_DCPHASE( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_HT_DCPHASE", retCode) # <<<<<<<<<<<<<< + * return outreal + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_HT_DCPHASE, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7282, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":7283 + * retCode = lib.TA_HT_DCPHASE( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_HT_DCPHASE", retCode) + * return outreal # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); + __pyx_r = ((PyObject *)__pyx_v_outreal); + goto __pyx_L0; + + /* "talib/_func.pxi":7238 + * @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.c_ta_lib.HT_DCPHASE", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outreal); + __Pyx_XDECREF((PyObject *)__pyx_v_real); + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "talib/_func.pxi":7287 + * @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_8c_ta_lib_193HT_PHASOR(PyObject *__pyx_self, PyObject *__pyx_v_real); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_192HT_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_8c_ta_lib_193HT_PHASOR = {"HT_PHASOR", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_193HT_PHASOR, METH_O, __pyx_doc_5talib_8c_ta_lib_192HT_PHASOR}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_193HT_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(2, 7287, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_192HT_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_8c_ta_lib_192HT_PHASOR(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real) { + npy_intp __pyx_v_length; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + TA_RetCode __pyx_v_retCode; + double *__pyx_v_real_data; + int __pyx_v_outbegidx; + int __pyx_v_outnbelement; + PyArrayObject *__pyx_v_outinphase = 0; + double *__pyx_v_outinphase_data; + PyArrayObject *__pyx_v_outquadrature = 0; + double *__pyx_v_outquadrature_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __Pyx_RefNannySetupContext("HT_PHASOR", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real); + + /* "talib/_func.pxi":7310 + * np.ndarray outquadrature + * double* outquadrature_data + * 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/_func.pxi":7311 + * double* outquadrature_data + * 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__907, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7311, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 7311, __pyx_L1_error) + + /* "talib/_func.pxi":7310 + * np.ndarray outquadrature + * double* outquadrature_data + * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real is not double") + * if real.ndim != 1: + */ + } + + /* "talib/_func.pxi":7312 + * 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/_func.pxi":7313 + * 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__908, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7313, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 7313, __pyx_L1_error) + + /* "talib/_func.pxi":7312 + * 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/_func.pxi":7314 + * 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 = real.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":7315 + * raise Exception("real has wrong dimensions") + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< + * real_data = real.data + * length = real.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7315, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 7315, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":7314 + * 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 = real.data + */ + } + + /* "talib/_func.pxi":7316 + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data # <<<<<<<<<<<<<< + * length = real.shape[0] + * begidx = 0 + */ + __pyx_v_real_data = ((double *)__pyx_v_real->data); + + /* "talib/_func.pxi":7317 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data + * length = real.shape[0] # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_v_length = (__pyx_v_real->dimensions[0]); + + /* "talib/_func.pxi":7318 + * real_data = real.data + * length = real.shape[0] + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = real_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":7319 + * length = real.shape[0] + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = real_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":7320 + * begidx = 0 + * for i from 0 <= i < length: + * val = real_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_real_data[__pyx_v_i]); + + /* "talib/_func.pxi":7321 + * for i from 0 <= i < length: + * val = real_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":7322 + * val = real_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L6_continue; + + /* "talib/_func.pxi":7321 + * for i from 0 <= i < length: + * val = real_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":7323 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":7324 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L7_break; + __pyx_L6_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":7326 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_HT_PHASOR_Lookback( ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__909, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 7326, __pyx_L1_error) + } + __pyx_L7_break:; + + /* "talib/_func.pxi":7327 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_HT_PHASOR_Lookback( ) + * outinphase = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":7328 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_HT_PHASOR_Lookback( ) # <<<<<<<<<<<<<< + * outinphase = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outinphase_data = outinphase.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_HT_PHASOR_Lookback()); + + /* "talib/_func.pxi":7329 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_HT_PHASOR_Lookback( ) + * outinphase = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outinphase_data = outinphase.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7329, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 7329, __pyx_L1_error) + __pyx_v_outinphase = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":7330 + * lookback = begidx + lib.TA_HT_PHASOR_Lookback( ) + * outinphase = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outinphase_data = outinphase.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outinphase_data[i] = NaN + */ + __pyx_v_outinphase_data = ((double *)__pyx_v_outinphase->data); + + /* "talib/_func.pxi":7331 + * outinphase = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outinphase_data = outinphase.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outinphase_data[i] = NaN + * outquadrature = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":7332 + * outinphase_data = outinphase.data + * for i from 0 <= i < min(lookback, length): + * outinphase_data[i] = NaN # <<<<<<<<<<<<<< + * outquadrature = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outquadrature_data = outquadrature.data + */ + (__pyx_v_outinphase_data[__pyx_v_i]) = __pyx_v_5talib_8c_ta_lib_NaN; + } + + /* "talib/_func.pxi":7333 + * for i from 0 <= i < min(lookback, length): + * outinphase_data[i] = NaN + * outquadrature = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outquadrature_data = outquadrature.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7333, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 7333, __pyx_L1_error) + __pyx_v_outquadrature = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":7334 + * outinphase_data[i] = NaN + * outquadrature = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outquadrature_data = outquadrature.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outquadrature_data[i] = NaN + */ + __pyx_v_outquadrature_data = ((double *)__pyx_v_outquadrature->data); + + /* "talib/_func.pxi":7335 + * outquadrature = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outquadrature_data = outquadrature.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outquadrature_data[i] = NaN + * retCode = lib.TA_HT_PHASOR( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outinphase_data+lookback) , (outquadrature_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":7336 + * outquadrature_data = outquadrature.data + * for i from 0 <= i < min(lookback, length): + * outquadrature_data[i] = NaN # <<<<<<<<<<<<<< + * retCode = lib.TA_HT_PHASOR( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outinphase_data+lookback) , (outquadrature_data+lookback) ) + * _ta_check_success("TA_HT_PHASOR", retCode) + */ + (__pyx_v_outquadrature_data[__pyx_v_i]) = __pyx_v_5talib_8c_ta_lib_NaN; + } + + /* "talib/_func.pxi":7337 + * for i from 0 <= i < min(lookback, length): + * outquadrature_data[i] = NaN + * retCode = lib.TA_HT_PHASOR( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outinphase_data+lookback) , (outquadrature_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_HT_PHASOR", retCode) + * return outinphase , outquadrature + */ + __pyx_v_retCode = TA_HT_PHASOR(0, __pyx_v_endidx, ((double *)(__pyx_v_real_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outinphase_data + __pyx_v_lookback)), ((double *)(__pyx_v_outquadrature_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":7338 + * outquadrature_data[i] = NaN + * retCode = lib.TA_HT_PHASOR( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outinphase_data+lookback) , (outquadrature_data+lookback) ) + * _ta_check_success("TA_HT_PHASOR", retCode) # <<<<<<<<<<<<<< + * return outinphase , outquadrature + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_HT_PHASOR, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7338, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":7339 + * retCode = lib.TA_HT_PHASOR( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outinphase_data+lookback) , (outquadrature_data+lookback) ) + * _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 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7339, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_INCREF(((PyObject *)__pyx_v_outinphase)); + __Pyx_GIVEREF(((PyObject *)__pyx_v_outinphase)); + PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_v_outinphase)); + __Pyx_INCREF(((PyObject *)__pyx_v_outquadrature)); + __Pyx_GIVEREF(((PyObject *)__pyx_v_outquadrature)); + PyTuple_SET_ITEM(__pyx_t_2, 1, ((PyObject *)__pyx_v_outquadrature)); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_func.pxi":7287 + * @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_AddTraceback("talib.c_ta_lib.HT_PHASOR", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outinphase); + __Pyx_XDECREF((PyObject *)__pyx_v_outquadrature); + __Pyx_XDECREF((PyObject *)__pyx_v_real); + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "talib/_func.pxi":7343 + * @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_8c_ta_lib_195HT_SINE(PyObject *__pyx_self, PyObject *__pyx_v_real); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_194HT_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_8c_ta_lib_195HT_SINE = {"HT_SINE", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_195HT_SINE, METH_O, __pyx_doc_5talib_8c_ta_lib_194HT_SINE}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_195HT_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(2, 7343, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_194HT_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_8c_ta_lib_194HT_SINE(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real) { + npy_intp __pyx_v_length; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + TA_RetCode __pyx_v_retCode; + double *__pyx_v_real_data; + int __pyx_v_outbegidx; + int __pyx_v_outnbelement; + PyArrayObject *__pyx_v_outsine = 0; + double *__pyx_v_outsine_data; + PyArrayObject *__pyx_v_outleadsine = 0; + double *__pyx_v_outleadsine_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __Pyx_RefNannySetupContext("HT_SINE", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real); + + /* "talib/_func.pxi":7366 + * np.ndarray outleadsine + * double* outleadsine_data + * 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/_func.pxi":7367 + * double* outleadsine_data + * 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__910, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7367, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 7367, __pyx_L1_error) + + /* "talib/_func.pxi":7366 + * np.ndarray outleadsine + * double* outleadsine_data + * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real is not double") + * if real.ndim != 1: + */ + } + + /* "talib/_func.pxi":7368 + * 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/_func.pxi":7369 + * 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__911, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7369, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 7369, __pyx_L1_error) + + /* "talib/_func.pxi":7368 + * 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/_func.pxi":7370 + * 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 = real.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":7371 + * raise Exception("real has wrong dimensions") + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< + * real_data = real.data + * length = real.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7371, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 7371, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":7370 + * 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 = real.data + */ + } + + /* "talib/_func.pxi":7372 + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data # <<<<<<<<<<<<<< + * length = real.shape[0] + * begidx = 0 + */ + __pyx_v_real_data = ((double *)__pyx_v_real->data); + + /* "talib/_func.pxi":7373 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data + * length = real.shape[0] # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_v_length = (__pyx_v_real->dimensions[0]); + + /* "talib/_func.pxi":7374 + * real_data = real.data + * length = real.shape[0] + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = real_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":7375 + * length = real.shape[0] + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = real_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":7376 + * begidx = 0 + * for i from 0 <= i < length: + * val = real_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_real_data[__pyx_v_i]); + + /* "talib/_func.pxi":7377 + * for i from 0 <= i < length: + * val = real_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":7378 + * val = real_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L6_continue; + + /* "talib/_func.pxi":7377 + * for i from 0 <= i < length: + * val = real_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":7379 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":7380 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L7_break; + __pyx_L6_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":7382 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_HT_SINE_Lookback( ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__912, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7382, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 7382, __pyx_L1_error) + } + __pyx_L7_break:; + + /* "talib/_func.pxi":7383 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_HT_SINE_Lookback( ) + * outsine = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":7384 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_HT_SINE_Lookback( ) # <<<<<<<<<<<<<< + * outsine = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outsine_data = outsine.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_HT_SINE_Lookback()); + + /* "talib/_func.pxi":7385 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_HT_SINE_Lookback( ) + * outsine = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outsine_data = outsine.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7385, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 7385, __pyx_L1_error) + __pyx_v_outsine = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":7386 + * lookback = begidx + lib.TA_HT_SINE_Lookback( ) + * outsine = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outsine_data = outsine.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outsine_data[i] = NaN + */ + __pyx_v_outsine_data = ((double *)__pyx_v_outsine->data); + + /* "talib/_func.pxi":7387 + * outsine = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outsine_data = outsine.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outsine_data[i] = NaN + * outleadsine = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":7388 + * outsine_data = outsine.data + * for i from 0 <= i < min(lookback, length): + * outsine_data[i] = NaN # <<<<<<<<<<<<<< + * outleadsine = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outleadsine_data = outleadsine.data + */ + (__pyx_v_outsine_data[__pyx_v_i]) = __pyx_v_5talib_8c_ta_lib_NaN; + } + + /* "talib/_func.pxi":7389 + * for i from 0 <= i < min(lookback, length): + * outsine_data[i] = NaN + * outleadsine = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outleadsine_data = outleadsine.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7389, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 7389, __pyx_L1_error) + __pyx_v_outleadsine = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":7390 + * outsine_data[i] = NaN + * outleadsine = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outleadsine_data = outleadsine.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outleadsine_data[i] = NaN + */ + __pyx_v_outleadsine_data = ((double *)__pyx_v_outleadsine->data); + + /* "talib/_func.pxi":7391 + * outleadsine = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outleadsine_data = outleadsine.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outleadsine_data[i] = NaN + * retCode = lib.TA_HT_SINE( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outsine_data+lookback) , (outleadsine_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":7392 + * outleadsine_data = outleadsine.data + * for i from 0 <= i < min(lookback, length): + * outleadsine_data[i] = NaN # <<<<<<<<<<<<<< + * retCode = lib.TA_HT_SINE( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outsine_data+lookback) , (outleadsine_data+lookback) ) + * _ta_check_success("TA_HT_SINE", retCode) + */ + (__pyx_v_outleadsine_data[__pyx_v_i]) = __pyx_v_5talib_8c_ta_lib_NaN; + } + + /* "talib/_func.pxi":7393 + * for i from 0 <= i < min(lookback, length): + * outleadsine_data[i] = NaN + * retCode = lib.TA_HT_SINE( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outsine_data+lookback) , (outleadsine_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_HT_SINE", retCode) + * return outsine , outleadsine + */ + __pyx_v_retCode = TA_HT_SINE(0, __pyx_v_endidx, ((double *)(__pyx_v_real_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outsine_data + __pyx_v_lookback)), ((double *)(__pyx_v_outleadsine_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":7394 + * outleadsine_data[i] = NaN + * retCode = lib.TA_HT_SINE( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outsine_data+lookback) , (outleadsine_data+lookback) ) + * _ta_check_success("TA_HT_SINE", retCode) # <<<<<<<<<<<<<< + * return outsine , outleadsine + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_HT_SINE, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7394, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":7395 + * retCode = lib.TA_HT_SINE( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outsine_data+lookback) , (outleadsine_data+lookback) ) + * _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 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7395, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_INCREF(((PyObject *)__pyx_v_outsine)); + __Pyx_GIVEREF(((PyObject *)__pyx_v_outsine)); + PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_v_outsine)); + __Pyx_INCREF(((PyObject *)__pyx_v_outleadsine)); + __Pyx_GIVEREF(((PyObject *)__pyx_v_outleadsine)); + PyTuple_SET_ITEM(__pyx_t_2, 1, ((PyObject *)__pyx_v_outleadsine)); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_func.pxi":7343 + * @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_AddTraceback("talib.c_ta_lib.HT_SINE", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outsine); + __Pyx_XDECREF((PyObject *)__pyx_v_outleadsine); + __Pyx_XDECREF((PyObject *)__pyx_v_real); + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "talib/_func.pxi":7399 + * @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_8c_ta_lib_197HT_TRENDLINE(PyObject *__pyx_self, PyObject *__pyx_v_real); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_196HT_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_8c_ta_lib_197HT_TRENDLINE = {"HT_TRENDLINE", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_197HT_TRENDLINE, METH_O, __pyx_doc_5talib_8c_ta_lib_196HT_TRENDLINE}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_197HT_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(2, 7399, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_196HT_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_8c_ta_lib_196HT_TRENDLINE(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real) { + npy_intp __pyx_v_length; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + TA_RetCode __pyx_v_retCode; + double *__pyx_v_real_data; + int __pyx_v_outbegidx; + int __pyx_v_outnbelement; + PyArrayObject *__pyx_v_outreal = 0; + double *__pyx_v_outreal_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __Pyx_RefNannySetupContext("HT_TRENDLINE", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real); + + /* "talib/_func.pxi":7419 + * np.ndarray outreal + * double* outreal_data + * 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/_func.pxi":7420 + * double* outreal_data + * 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__913, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7420, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 7420, __pyx_L1_error) + + /* "talib/_func.pxi":7419 + * np.ndarray outreal + * double* outreal_data + * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real is not double") + * if real.ndim != 1: + */ + } + + /* "talib/_func.pxi":7421 + * 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/_func.pxi":7422 + * 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__914, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7422, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 7422, __pyx_L1_error) + + /* "talib/_func.pxi":7421 + * 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/_func.pxi":7423 + * 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 = real.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":7424 + * raise Exception("real has wrong dimensions") + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< + * real_data = real.data + * length = real.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7424, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 7424, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":7423 + * 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 = real.data + */ + } + + /* "talib/_func.pxi":7425 + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data # <<<<<<<<<<<<<< + * length = real.shape[0] + * begidx = 0 + */ + __pyx_v_real_data = ((double *)__pyx_v_real->data); + + /* "talib/_func.pxi":7426 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data + * length = real.shape[0] # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_v_length = (__pyx_v_real->dimensions[0]); + + /* "talib/_func.pxi":7427 + * real_data = real.data + * length = real.shape[0] + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = real_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":7428 + * length = real.shape[0] + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = real_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":7429 + * begidx = 0 + * for i from 0 <= i < length: + * val = real_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_real_data[__pyx_v_i]); + + /* "talib/_func.pxi":7430 + * for i from 0 <= i < length: + * val = real_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":7431 + * val = real_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L6_continue; + + /* "talib/_func.pxi":7430 + * for i from 0 <= i < length: + * val = real_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":7432 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":7433 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L7_break; + __pyx_L6_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":7435 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_HT_TRENDLINE_Lookback( ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__915, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7435, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 7435, __pyx_L1_error) + } + __pyx_L7_break:; + + /* "talib/_func.pxi":7436 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_HT_TRENDLINE_Lookback( ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":7437 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_HT_TRENDLINE_Lookback( ) # <<<<<<<<<<<<<< + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_HT_TRENDLINE_Lookback()); + + /* "talib/_func.pxi":7438 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_HT_TRENDLINE_Lookback( ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7438, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 7438, __pyx_L1_error) + __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":7439 + * lookback = begidx + lib.TA_HT_TRENDLINE_Lookback( ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + */ + __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); + + /* "talib/_func.pxi":7440 + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outreal_data[i] = NaN + * retCode = lib.TA_HT_TRENDLINE( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":7441 + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN # <<<<<<<<<<<<<< + * retCode = lib.TA_HT_TRENDLINE( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_HT_TRENDLINE", retCode) + */ + (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_8c_ta_lib_NaN; + } + + /* "talib/_func.pxi":7442 + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + * retCode = lib.TA_HT_TRENDLINE( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_HT_TRENDLINE", retCode) + * return outreal + */ + __pyx_v_retCode = TA_HT_TRENDLINE(0, __pyx_v_endidx, ((double *)(__pyx_v_real_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":7443 + * outreal_data[i] = NaN + * retCode = lib.TA_HT_TRENDLINE( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_HT_TRENDLINE", retCode) # <<<<<<<<<<<<<< + * return outreal + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_HT_TRENDLINE, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7443, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":7444 + * retCode = lib.TA_HT_TRENDLINE( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_HT_TRENDLINE", retCode) + * return outreal # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); + __pyx_r = ((PyObject *)__pyx_v_outreal); + goto __pyx_L0; + + /* "talib/_func.pxi":7399 + * @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.c_ta_lib.HT_TRENDLINE", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outreal); + __Pyx_XDECREF((PyObject *)__pyx_v_real); + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "talib/_func.pxi":7448 + * @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_8c_ta_lib_199HT_TRENDMODE(PyObject *__pyx_self, PyObject *__pyx_v_real); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_198HT_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_8c_ta_lib_199HT_TRENDMODE = {"HT_TRENDMODE", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_199HT_TRENDMODE, METH_O, __pyx_doc_5talib_8c_ta_lib_198HT_TRENDMODE}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_199HT_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(2, 7448, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_198HT_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_8c_ta_lib_198HT_TRENDMODE(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real) { + npy_intp __pyx_v_length; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + TA_RetCode __pyx_v_retCode; + double *__pyx_v_real_data; + int __pyx_v_outbegidx; + int __pyx_v_outnbelement; + PyArrayObject *__pyx_v_outinteger = 0; + int *__pyx_v_outinteger_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __Pyx_RefNannySetupContext("HT_TRENDMODE", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real); + + /* "talib/_func.pxi":7468 + * np.ndarray outinteger + * int* outinteger_data + * 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/_func.pxi":7469 + * int* outinteger_data + * 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(2, 7469, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 7469, __pyx_L1_error) + + /* "talib/_func.pxi":7468 + * np.ndarray outinteger + * int* outinteger_data + * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real is not double") + * if real.ndim != 1: + */ + } + + /* "talib/_func.pxi":7470 + * 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/_func.pxi":7471 + * 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(2, 7471, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 7471, __pyx_L1_error) + + /* "talib/_func.pxi":7470 + * 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/_func.pxi":7472 + * 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 = real.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":7473 + * raise Exception("real has wrong dimensions") + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< + * real_data = real.data + * length = real.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7473, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 7473, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":7472 + * 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 = real.data + */ + } + + /* "talib/_func.pxi":7474 + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data # <<<<<<<<<<<<<< + * length = real.shape[0] + * begidx = 0 + */ + __pyx_v_real_data = ((double *)__pyx_v_real->data); + + /* "talib/_func.pxi":7475 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data + * length = real.shape[0] # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_v_length = (__pyx_v_real->dimensions[0]); + + /* "talib/_func.pxi":7476 + * real_data = real.data + * length = real.shape[0] + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = real_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":7477 + * length = real.shape[0] + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = real_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":7478 + * begidx = 0 + * for i from 0 <= i < length: + * val = real_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_real_data[__pyx_v_i]); + + /* "talib/_func.pxi":7479 + * for i from 0 <= i < length: + * val = real_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":7480 + * val = real_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L6_continue; + + /* "talib/_func.pxi":7479 + * for i from 0 <= i < length: + * val = real_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":7481 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":7482 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L7_break; + __pyx_L6_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":7484 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_HT_TRENDMODE_Lookback( ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__918, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7484, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 7484, __pyx_L1_error) + } + __pyx_L7_break:; + + /* "talib/_func.pxi":7485 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_HT_TRENDMODE_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":7486 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_HT_TRENDMODE_Lookback( ) # <<<<<<<<<<<<<< + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_HT_TRENDMODE_Lookback()); + + /* "talib/_func.pxi":7487 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_HT_TRENDMODE_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7487, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 7487, __pyx_L1_error) + __pyx_v_outinteger = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":7488 + * lookback = begidx + lib.TA_HT_TRENDMODE_Lookback( ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 + */ + __pyx_v_outinteger_data = ((int *)__pyx_v_outinteger->data); + + /* "talib/_func.pxi":7489 + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outinteger_data[i] = 0 + * retCode = lib.TA_HT_TRENDMODE( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":7490 + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 # <<<<<<<<<<<<<< + * retCode = lib.TA_HT_TRENDMODE( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_HT_TRENDMODE", retCode) + */ + (__pyx_v_outinteger_data[__pyx_v_i]) = 0; + } + + /* "talib/_func.pxi":7491 + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 + * retCode = lib.TA_HT_TRENDMODE( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_HT_TRENDMODE", retCode) + * return outinteger + */ + __pyx_v_retCode = TA_HT_TRENDMODE(0, __pyx_v_endidx, ((double *)(__pyx_v_real_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outinteger_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":7492 + * outinteger_data[i] = 0 + * retCode = lib.TA_HT_TRENDMODE( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_HT_TRENDMODE", retCode) # <<<<<<<<<<<<<< + * return outinteger + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_HT_TRENDMODE, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7492, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":7493 + * retCode = lib.TA_HT_TRENDMODE( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_HT_TRENDMODE", retCode) + * return outinteger # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outinteger)); + __pyx_r = ((PyObject *)__pyx_v_outinteger); + goto __pyx_L0; + + /* "talib/_func.pxi":7448 + * @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.c_ta_lib.HT_TRENDMODE", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outinteger); + __Pyx_XDECREF((PyObject *)__pyx_v_real); + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "talib/_func.pxi":7497 + * @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_8c_ta_lib_201KAMA(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_200KAMA[] = " 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_8c_ta_lib_201KAMA = {"KAMA", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_201KAMA, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_200KAMA}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_201KAMA(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(2, 7497, __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(2, 7497, __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(2, 7497, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 7497, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_200KAMA(__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_8c_ta_lib_200KAMA(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod) { + npy_intp __pyx_v_length; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + TA_RetCode __pyx_v_retCode; + double *__pyx_v_real_data; + int __pyx_v_outbegidx; + int __pyx_v_outnbelement; + PyArrayObject *__pyx_v_outreal = 0; + double *__pyx_v_outreal_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __Pyx_RefNannySetupContext("KAMA", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real); + + /* "talib/_func.pxi":7519 + * np.ndarray outreal + * double* outreal_data + * 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/_func.pxi":7520 + * double* outreal_data + * 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__919, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7520, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 7520, __pyx_L1_error) + + /* "talib/_func.pxi":7519 + * np.ndarray outreal + * double* outreal_data + * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real is not double") + * if real.ndim != 1: + */ + } + + /* "talib/_func.pxi":7521 + * 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/_func.pxi":7522 + * 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__920, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7522, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 7522, __pyx_L1_error) + + /* "talib/_func.pxi":7521 + * 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/_func.pxi":7523 + * 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 = real.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":7524 + * raise Exception("real has wrong dimensions") + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< + * real_data = real.data + * length = real.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7524, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 7524, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":7523 + * 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 = real.data + */ + } + + /* "talib/_func.pxi":7525 + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data # <<<<<<<<<<<<<< + * length = real.shape[0] + * begidx = 0 + */ + __pyx_v_real_data = ((double *)__pyx_v_real->data); + + /* "talib/_func.pxi":7526 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data + * length = real.shape[0] # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_v_length = (__pyx_v_real->dimensions[0]); + + /* "talib/_func.pxi":7527 + * real_data = real.data + * length = real.shape[0] + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = real_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":7528 + * length = real.shape[0] + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = real_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":7529 + * begidx = 0 + * for i from 0 <= i < length: + * val = real_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_real_data[__pyx_v_i]); + + /* "talib/_func.pxi":7530 + * for i from 0 <= i < length: + * val = real_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":7531 + * val = real_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L6_continue; + + /* "talib/_func.pxi":7530 + * for i from 0 <= i < length: + * val = real_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":7532 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":7533 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L7_break; + __pyx_L6_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":7535 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_KAMA_Lookback( timeperiod ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__921, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7535, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 7535, __pyx_L1_error) + } + __pyx_L7_break:; + + /* "talib/_func.pxi":7536 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_KAMA_Lookback( timeperiod ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":7537 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_KAMA_Lookback( timeperiod ) # <<<<<<<<<<<<<< + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_KAMA_Lookback(__pyx_v_timeperiod)); + + /* "talib/_func.pxi":7538 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_KAMA_Lookback( timeperiod ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7538, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 7538, __pyx_L1_error) + __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":7539 + * lookback = begidx + lib.TA_KAMA_Lookback( timeperiod ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + */ + __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); + + /* "talib/_func.pxi":7540 + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outreal_data[i] = NaN + * retCode = lib.TA_KAMA( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":7541 + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN # <<<<<<<<<<<<<< + * retCode = lib.TA_KAMA( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_KAMA", retCode) + */ + (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_8c_ta_lib_NaN; + } + + /* "talib/_func.pxi":7542 + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + * retCode = lib.TA_KAMA( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_KAMA", retCode) + * return outreal + */ + __pyx_v_retCode = TA_KAMA(0, __pyx_v_endidx, ((double *)(__pyx_v_real_data + __pyx_v_begidx)), __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":7543 + * outreal_data[i] = NaN + * retCode = lib.TA_KAMA( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_KAMA", retCode) # <<<<<<<<<<<<<< + * return outreal + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_KAMA, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7543, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":7544 + * retCode = lib.TA_KAMA( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_KAMA", retCode) + * return outreal # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); + __pyx_r = ((PyObject *)__pyx_v_outreal); + goto __pyx_L0; + + /* "talib/_func.pxi":7497 + * @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.c_ta_lib.KAMA", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outreal); + __Pyx_XDECREF((PyObject *)__pyx_v_real); + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "talib/_func.pxi":7548 + * @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_8c_ta_lib_203LINEARREG(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_202LINEARREG[] = " 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_8c_ta_lib_203LINEARREG = {"LINEARREG", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_203LINEARREG, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_202LINEARREG}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_203LINEARREG(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(2, 7548, __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(2, 7548, __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(2, 7548, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 7548, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_202LINEARREG(__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_8c_ta_lib_202LINEARREG(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod) { + npy_intp __pyx_v_length; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + TA_RetCode __pyx_v_retCode; + double *__pyx_v_real_data; + int __pyx_v_outbegidx; + int __pyx_v_outnbelement; + PyArrayObject *__pyx_v_outreal = 0; + double *__pyx_v_outreal_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __Pyx_RefNannySetupContext("LINEARREG", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real); + + /* "talib/_func.pxi":7570 + * np.ndarray outreal + * double* outreal_data + * 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/_func.pxi":7571 + * double* outreal_data + * 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__922, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 7571, __pyx_L1_error) + + /* "talib/_func.pxi":7570 + * np.ndarray outreal + * double* outreal_data + * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real is not double") + * if real.ndim != 1: + */ + } + + /* "talib/_func.pxi":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/_func.pxi":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__923, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 7573, __pyx_L1_error) + + /* "talib/_func.pxi":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/_func.pxi":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 = real.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":7575 + * raise Exception("real has wrong dimensions") + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< + * real_data = real.data + * length = real.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 7575, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":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 = real.data + */ + } + + /* "talib/_func.pxi":7576 + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data # <<<<<<<<<<<<<< + * length = real.shape[0] + * begidx = 0 + */ + __pyx_v_real_data = ((double *)__pyx_v_real->data); + + /* "talib/_func.pxi":7577 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data + * length = real.shape[0] # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_v_length = (__pyx_v_real->dimensions[0]); + + /* "talib/_func.pxi":7578 + * real_data = real.data + * length = real.shape[0] + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = real_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":7579 + * length = real.shape[0] + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = real_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":7580 + * begidx = 0 + * for i from 0 <= i < length: + * val = real_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_real_data[__pyx_v_i]); + + /* "talib/_func.pxi":7581 + * for i from 0 <= i < length: + * val = real_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":7582 + * val = real_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L6_continue; + + /* "talib/_func.pxi":7581 + * for i from 0 <= i < length: + * val = real_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":7583 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":7584 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L7_break; + __pyx_L6_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":7586 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_LINEARREG_Lookback( timeperiod ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__924, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7586, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 7586, __pyx_L1_error) + } + __pyx_L7_break:; + + /* "talib/_func.pxi":7587 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_LINEARREG_Lookback( timeperiod ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":7588 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_LINEARREG_Lookback( timeperiod ) # <<<<<<<<<<<<<< + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_LINEARREG_Lookback(__pyx_v_timeperiod)); + + /* "talib/_func.pxi":7589 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_LINEARREG_Lookback( timeperiod ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7589, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 7589, __pyx_L1_error) + __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":7590 + * lookback = begidx + lib.TA_LINEARREG_Lookback( timeperiod ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + */ + __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); + + /* "talib/_func.pxi":7591 + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outreal_data[i] = NaN + * retCode = lib.TA_LINEARREG( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":7592 + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN # <<<<<<<<<<<<<< + * retCode = lib.TA_LINEARREG( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_LINEARREG", retCode) + */ + (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_8c_ta_lib_NaN; + } + + /* "talib/_func.pxi":7593 + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + * retCode = lib.TA_LINEARREG( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_LINEARREG", retCode) + * return outreal + */ + __pyx_v_retCode = TA_LINEARREG(0, __pyx_v_endidx, ((double *)(__pyx_v_real_data + __pyx_v_begidx)), __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":7594 + * outreal_data[i] = NaN + * retCode = lib.TA_LINEARREG( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_LINEARREG", retCode) # <<<<<<<<<<<<<< + * return outreal + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_LINEARREG, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7594, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":7595 + * retCode = lib.TA_LINEARREG( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_LINEARREG", retCode) + * return outreal # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); + __pyx_r = ((PyObject *)__pyx_v_outreal); + goto __pyx_L0; + + /* "talib/_func.pxi":7548 + * @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.c_ta_lib.LINEARREG", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outreal); + __Pyx_XDECREF((PyObject *)__pyx_v_real); + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "talib/_func.pxi":7599 + * @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_8c_ta_lib_205LINEARREG_ANGLE(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_204LINEARREG_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_8c_ta_lib_205LINEARREG_ANGLE = {"LINEARREG_ANGLE", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_205LINEARREG_ANGLE, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_204LINEARREG_ANGLE}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_205LINEARREG_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(2, 7599, __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(2, 7599, __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(2, 7599, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 7599, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_204LINEARREG_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_8c_ta_lib_204LINEARREG_ANGLE(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod) { + npy_intp __pyx_v_length; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + TA_RetCode __pyx_v_retCode; + double *__pyx_v_real_data; + int __pyx_v_outbegidx; + int __pyx_v_outnbelement; + PyArrayObject *__pyx_v_outreal = 0; + double *__pyx_v_outreal_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __Pyx_RefNannySetupContext("LINEARREG_ANGLE", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real); + + /* "talib/_func.pxi":7621 + * np.ndarray outreal + * double* outreal_data + * 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/_func.pxi":7622 + * double* outreal_data + * 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__925, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7622, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 7622, __pyx_L1_error) + + /* "talib/_func.pxi":7621 + * np.ndarray outreal + * double* outreal_data + * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real is not double") + * if real.ndim != 1: + */ + } + + /* "talib/_func.pxi":7623 + * 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/_func.pxi":7624 + * 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__926, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7624, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 7624, __pyx_L1_error) + + /* "talib/_func.pxi":7623 + * 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/_func.pxi":7625 + * 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 = real.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":7626 + * raise Exception("real has wrong dimensions") + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< + * real_data = real.data + * length = real.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7626, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 7626, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":7625 + * 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 = real.data + */ + } + + /* "talib/_func.pxi":7627 + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data # <<<<<<<<<<<<<< + * length = real.shape[0] + * begidx = 0 + */ + __pyx_v_real_data = ((double *)__pyx_v_real->data); + + /* "talib/_func.pxi":7628 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data + * length = real.shape[0] # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_v_length = (__pyx_v_real->dimensions[0]); + + /* "talib/_func.pxi":7629 + * real_data = real.data + * length = real.shape[0] + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = real_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":7630 + * length = real.shape[0] + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = real_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":7631 + * begidx = 0 + * for i from 0 <= i < length: + * val = real_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_real_data[__pyx_v_i]); + + /* "talib/_func.pxi":7632 + * for i from 0 <= i < length: + * val = real_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":7633 + * val = real_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L6_continue; + + /* "talib/_func.pxi":7632 + * for i from 0 <= i < length: + * val = real_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":7634 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":7635 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L7_break; + __pyx_L6_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":7637 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_LINEARREG_ANGLE_Lookback( timeperiod ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__927, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7637, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 7637, __pyx_L1_error) + } + __pyx_L7_break:; + + /* "talib/_func.pxi":7638 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_LINEARREG_ANGLE_Lookback( timeperiod ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":7639 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_LINEARREG_ANGLE_Lookback( timeperiod ) # <<<<<<<<<<<<<< + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_LINEARREG_ANGLE_Lookback(__pyx_v_timeperiod)); + + /* "talib/_func.pxi":7640 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_LINEARREG_ANGLE_Lookback( timeperiod ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7640, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 7640, __pyx_L1_error) + __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":7641 + * lookback = begidx + lib.TA_LINEARREG_ANGLE_Lookback( timeperiod ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + */ + __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); + + /* "talib/_func.pxi":7642 + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outreal_data[i] = NaN + * retCode = lib.TA_LINEARREG_ANGLE( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":7643 + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN # <<<<<<<<<<<<<< + * retCode = lib.TA_LINEARREG_ANGLE( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_LINEARREG_ANGLE", retCode) + */ + (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_8c_ta_lib_NaN; + } + + /* "talib/_func.pxi":7644 + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + * retCode = lib.TA_LINEARREG_ANGLE( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_LINEARREG_ANGLE", retCode) + * return outreal + */ + __pyx_v_retCode = TA_LINEARREG_ANGLE(0, __pyx_v_endidx, ((double *)(__pyx_v_real_data + __pyx_v_begidx)), __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":7645 + * outreal_data[i] = NaN + * retCode = lib.TA_LINEARREG_ANGLE( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_LINEARREG_ANGLE", retCode) # <<<<<<<<<<<<<< + * return outreal + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_LINEARREG_ANGLE, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7645, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":7646 + * retCode = lib.TA_LINEARREG_ANGLE( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_LINEARREG_ANGLE", retCode) + * return outreal # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); + __pyx_r = ((PyObject *)__pyx_v_outreal); + goto __pyx_L0; + + /* "talib/_func.pxi":7599 + * @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.c_ta_lib.LINEARREG_ANGLE", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outreal); + __Pyx_XDECREF((PyObject *)__pyx_v_real); + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "talib/_func.pxi":7650 + * @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_8c_ta_lib_207LINEARREG_INTERCEPT(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_206LINEARREG_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_8c_ta_lib_207LINEARREG_INTERCEPT = {"LINEARREG_INTERCEPT", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_207LINEARREG_INTERCEPT, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_206LINEARREG_INTERCEPT}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_207LINEARREG_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(2, 7650, __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(2, 7650, __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(2, 7650, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 7650, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_206LINEARREG_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_8c_ta_lib_206LINEARREG_INTERCEPT(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod) { + npy_intp __pyx_v_length; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + TA_RetCode __pyx_v_retCode; + double *__pyx_v_real_data; + int __pyx_v_outbegidx; + int __pyx_v_outnbelement; + PyArrayObject *__pyx_v_outreal = 0; + double *__pyx_v_outreal_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __Pyx_RefNannySetupContext("LINEARREG_INTERCEPT", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real); + + /* "talib/_func.pxi":7672 + * np.ndarray outreal + * double* outreal_data + * 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/_func.pxi":7673 + * double* outreal_data + * 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__928, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7673, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 7673, __pyx_L1_error) + + /* "talib/_func.pxi":7672 + * np.ndarray outreal + * double* outreal_data + * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real is not double") + * if real.ndim != 1: + */ + } + + /* "talib/_func.pxi":7674 + * 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/_func.pxi":7675 + * 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__929, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7675, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 7675, __pyx_L1_error) + + /* "talib/_func.pxi":7674 + * 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/_func.pxi":7676 + * 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 = real.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":7677 + * raise Exception("real has wrong dimensions") + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< + * real_data = real.data + * length = real.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7677, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 7677, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":7676 + * 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 = real.data + */ + } + + /* "talib/_func.pxi":7678 + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data # <<<<<<<<<<<<<< + * length = real.shape[0] + * begidx = 0 + */ + __pyx_v_real_data = ((double *)__pyx_v_real->data); + + /* "talib/_func.pxi":7679 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data + * length = real.shape[0] # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_v_length = (__pyx_v_real->dimensions[0]); + + /* "talib/_func.pxi":7680 + * real_data = real.data + * length = real.shape[0] + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = real_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":7681 + * length = real.shape[0] + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = real_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":7682 + * begidx = 0 + * for i from 0 <= i < length: + * val = real_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_real_data[__pyx_v_i]); + + /* "talib/_func.pxi":7683 + * for i from 0 <= i < length: + * val = real_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":7684 + * val = real_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L6_continue; + + /* "talib/_func.pxi":7683 + * for i from 0 <= i < length: + * val = real_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":7685 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":7686 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L7_break; + __pyx_L6_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":7688 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_LINEARREG_INTERCEPT_Lookback( timeperiod ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__930, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7688, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 7688, __pyx_L1_error) + } + __pyx_L7_break:; + + /* "talib/_func.pxi":7689 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_LINEARREG_INTERCEPT_Lookback( timeperiod ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":7690 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_LINEARREG_INTERCEPT_Lookback( timeperiod ) # <<<<<<<<<<<<<< + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_LINEARREG_INTERCEPT_Lookback(__pyx_v_timeperiod)); + + /* "talib/_func.pxi":7691 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_LINEARREG_INTERCEPT_Lookback( timeperiod ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7691, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 7691, __pyx_L1_error) + __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":7692 + * lookback = begidx + lib.TA_LINEARREG_INTERCEPT_Lookback( timeperiod ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + */ + __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); + + /* "talib/_func.pxi":7693 + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outreal_data[i] = NaN + * retCode = lib.TA_LINEARREG_INTERCEPT( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":7694 + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN # <<<<<<<<<<<<<< + * retCode = lib.TA_LINEARREG_INTERCEPT( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_LINEARREG_INTERCEPT", retCode) + */ + (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_8c_ta_lib_NaN; + } + + /* "talib/_func.pxi":7695 + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + * retCode = lib.TA_LINEARREG_INTERCEPT( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_LINEARREG_INTERCEPT", retCode) + * return outreal + */ + __pyx_v_retCode = TA_LINEARREG_INTERCEPT(0, __pyx_v_endidx, ((double *)(__pyx_v_real_data + __pyx_v_begidx)), __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":7696 + * outreal_data[i] = NaN + * retCode = lib.TA_LINEARREG_INTERCEPT( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_LINEARREG_INTERCEPT", retCode) # <<<<<<<<<<<<<< + * return outreal + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_LINEARREG_INTERCEPT, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7696, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":7697 + * retCode = lib.TA_LINEARREG_INTERCEPT( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_LINEARREG_INTERCEPT", retCode) + * return outreal # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); + __pyx_r = ((PyObject *)__pyx_v_outreal); + goto __pyx_L0; + + /* "talib/_func.pxi":7650 + * @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.c_ta_lib.LINEARREG_INTERCEPT", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outreal); + __Pyx_XDECREF((PyObject *)__pyx_v_real); + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "talib/_func.pxi":7701 + * @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_8c_ta_lib_209LINEARREG_SLOPE(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_208LINEARREG_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_8c_ta_lib_209LINEARREG_SLOPE = {"LINEARREG_SLOPE", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_209LINEARREG_SLOPE, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_208LINEARREG_SLOPE}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_209LINEARREG_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(2, 7701, __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(2, 7701, __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(2, 7701, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 7701, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_208LINEARREG_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_8c_ta_lib_208LINEARREG_SLOPE(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod) { + npy_intp __pyx_v_length; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + TA_RetCode __pyx_v_retCode; + double *__pyx_v_real_data; + int __pyx_v_outbegidx; + int __pyx_v_outnbelement; + PyArrayObject *__pyx_v_outreal = 0; + double *__pyx_v_outreal_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __Pyx_RefNannySetupContext("LINEARREG_SLOPE", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real); + + /* "talib/_func.pxi":7723 + * np.ndarray outreal + * double* outreal_data + * 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/_func.pxi":7724 + * double* outreal_data + * 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__931, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7724, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 7724, __pyx_L1_error) + + /* "talib/_func.pxi":7723 + * np.ndarray outreal + * double* outreal_data + * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real is not double") + * if real.ndim != 1: + */ + } + + /* "talib/_func.pxi":7725 + * 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/_func.pxi":7726 + * 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__932, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7726, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 7726, __pyx_L1_error) + + /* "talib/_func.pxi":7725 + * 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/_func.pxi":7727 + * 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 = real.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":7728 + * raise Exception("real has wrong dimensions") + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< + * real_data = real.data + * length = real.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7728, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 7728, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":7727 + * 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 = real.data + */ + } + + /* "talib/_func.pxi":7729 + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data # <<<<<<<<<<<<<< + * length = real.shape[0] + * begidx = 0 + */ + __pyx_v_real_data = ((double *)__pyx_v_real->data); + + /* "talib/_func.pxi":7730 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data + * length = real.shape[0] # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_v_length = (__pyx_v_real->dimensions[0]); + + /* "talib/_func.pxi":7731 + * real_data = real.data + * length = real.shape[0] + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = real_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":7732 + * length = real.shape[0] + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = real_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":7733 + * begidx = 0 + * for i from 0 <= i < length: + * val = real_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_real_data[__pyx_v_i]); + + /* "talib/_func.pxi":7734 + * for i from 0 <= i < length: + * val = real_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":7735 + * val = real_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L6_continue; + + /* "talib/_func.pxi":7734 + * for i from 0 <= i < length: + * val = real_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":7736 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":7737 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L7_break; + __pyx_L6_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":7739 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_LINEARREG_SLOPE_Lookback( timeperiod ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__933, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7739, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 7739, __pyx_L1_error) + } + __pyx_L7_break:; + + /* "talib/_func.pxi":7740 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_LINEARREG_SLOPE_Lookback( timeperiod ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":7741 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_LINEARREG_SLOPE_Lookback( timeperiod ) # <<<<<<<<<<<<<< + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_LINEARREG_SLOPE_Lookback(__pyx_v_timeperiod)); + + /* "talib/_func.pxi":7742 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_LINEARREG_SLOPE_Lookback( timeperiod ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7742, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 7742, __pyx_L1_error) + __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":7743 + * lookback = begidx + lib.TA_LINEARREG_SLOPE_Lookback( timeperiod ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + */ + __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); + + /* "talib/_func.pxi":7744 + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outreal_data[i] = NaN + * retCode = lib.TA_LINEARREG_SLOPE( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":7745 + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN # <<<<<<<<<<<<<< + * retCode = lib.TA_LINEARREG_SLOPE( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_LINEARREG_SLOPE", retCode) + */ + (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_8c_ta_lib_NaN; + } + + /* "talib/_func.pxi":7746 + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + * retCode = lib.TA_LINEARREG_SLOPE( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_LINEARREG_SLOPE", retCode) + * return outreal + */ + __pyx_v_retCode = TA_LINEARREG_SLOPE(0, __pyx_v_endidx, ((double *)(__pyx_v_real_data + __pyx_v_begidx)), __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":7747 + * outreal_data[i] = NaN + * retCode = lib.TA_LINEARREG_SLOPE( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_LINEARREG_SLOPE", retCode) # <<<<<<<<<<<<<< + * return outreal + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_LINEARREG_SLOPE, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7747, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":7748 + * retCode = lib.TA_LINEARREG_SLOPE( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_LINEARREG_SLOPE", retCode) + * return outreal # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); + __pyx_r = ((PyObject *)__pyx_v_outreal); + goto __pyx_L0; + + /* "talib/_func.pxi":7701 + * @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.c_ta_lib.LINEARREG_SLOPE", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outreal); + __Pyx_XDECREF((PyObject *)__pyx_v_real); + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "talib/_func.pxi":7752 + * @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_8c_ta_lib_211LN(PyObject *__pyx_self, PyObject *__pyx_v_real); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_210LN[] = " 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_8c_ta_lib_211LN = {"LN", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_211LN, METH_O, __pyx_doc_5talib_8c_ta_lib_210LN}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_211LN(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(2, 7752, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_210LN(__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_8c_ta_lib_210LN(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real) { + npy_intp __pyx_v_length; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + TA_RetCode __pyx_v_retCode; + double *__pyx_v_real_data; + int __pyx_v_outbegidx; + int __pyx_v_outnbelement; + PyArrayObject *__pyx_v_outreal = 0; + double *__pyx_v_outreal_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __Pyx_RefNannySetupContext("LN", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real); + + /* "talib/_func.pxi":7772 + * np.ndarray outreal + * double* outreal_data + * 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/_func.pxi":7773 + * double* outreal_data + * 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(2, 7773, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 7773, __pyx_L1_error) + + /* "talib/_func.pxi":7772 + * np.ndarray outreal + * double* outreal_data + * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real is not double") + * if real.ndim != 1: + */ + } + + /* "talib/_func.pxi":7774 + * 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/_func.pxi":7775 + * 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(2, 7775, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 7775, __pyx_L1_error) + + /* "talib/_func.pxi":7774 + * 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/_func.pxi":7776 + * 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 = real.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":7777 + * raise Exception("real has wrong dimensions") + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< + * real_data = real.data + * length = real.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7777, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 7777, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":7776 + * 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 = real.data + */ + } + + /* "talib/_func.pxi":7778 + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data # <<<<<<<<<<<<<< + * length = real.shape[0] + * begidx = 0 + */ + __pyx_v_real_data = ((double *)__pyx_v_real->data); + + /* "talib/_func.pxi":7779 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data + * length = real.shape[0] # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_v_length = (__pyx_v_real->dimensions[0]); + + /* "talib/_func.pxi":7780 + * real_data = real.data + * length = real.shape[0] + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = real_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":7781 + * length = real.shape[0] + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = real_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":7782 + * begidx = 0 + * for i from 0 <= i < length: + * val = real_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_real_data[__pyx_v_i]); + + /* "talib/_func.pxi":7783 + * for i from 0 <= i < length: + * val = real_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":7784 + * val = real_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L6_continue; + + /* "talib/_func.pxi":7783 + * for i from 0 <= i < length: + * val = real_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":7785 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":7786 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L7_break; + __pyx_L6_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":7788 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_LN_Lookback( ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__936, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7788, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 7788, __pyx_L1_error) + } + __pyx_L7_break:; + + /* "talib/_func.pxi":7789 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_LN_Lookback( ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":7790 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_LN_Lookback( ) # <<<<<<<<<<<<<< + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_LN_Lookback()); + + /* "talib/_func.pxi":7791 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_LN_Lookback( ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7791, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 7791, __pyx_L1_error) + __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":7792 + * lookback = begidx + lib.TA_LN_Lookback( ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + */ + __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); + + /* "talib/_func.pxi":7793 + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outreal_data[i] = NaN + * retCode = lib.TA_LN( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":7794 + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN # <<<<<<<<<<<<<< + * retCode = lib.TA_LN( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_LN", retCode) + */ + (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_8c_ta_lib_NaN; + } + + /* "talib/_func.pxi":7795 + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + * retCode = lib.TA_LN( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_LN", retCode) + * return outreal + */ + __pyx_v_retCode = TA_LN(0, __pyx_v_endidx, ((double *)(__pyx_v_real_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":7796 + * outreal_data[i] = NaN + * retCode = lib.TA_LN( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_LN", retCode) # <<<<<<<<<<<<<< + * return outreal + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_LN, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7796, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":7797 + * retCode = lib.TA_LN( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_LN", retCode) + * return outreal # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); + __pyx_r = ((PyObject *)__pyx_v_outreal); + goto __pyx_L0; + + /* "talib/_func.pxi":7752 + * @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.c_ta_lib.LN", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outreal); + __Pyx_XDECREF((PyObject *)__pyx_v_real); + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "talib/_func.pxi":7801 + * @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_8c_ta_lib_213LOG10(PyObject *__pyx_self, PyObject *__pyx_v_real); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_212LOG10[] = " 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_8c_ta_lib_213LOG10 = {"LOG10", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_213LOG10, METH_O, __pyx_doc_5talib_8c_ta_lib_212LOG10}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_213LOG10(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(2, 7801, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_212LOG10(__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_8c_ta_lib_212LOG10(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real) { + npy_intp __pyx_v_length; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + TA_RetCode __pyx_v_retCode; + double *__pyx_v_real_data; + int __pyx_v_outbegidx; + int __pyx_v_outnbelement; + PyArrayObject *__pyx_v_outreal = 0; + double *__pyx_v_outreal_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __Pyx_RefNannySetupContext("LOG10", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real); + + /* "talib/_func.pxi":7821 + * np.ndarray outreal + * double* outreal_data + * 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/_func.pxi":7822 + * double* outreal_data + * 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__937, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7822, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 7822, __pyx_L1_error) + + /* "talib/_func.pxi":7821 + * np.ndarray outreal + * double* outreal_data + * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real is not double") + * if real.ndim != 1: + */ + } + + /* "talib/_func.pxi":7823 + * 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/_func.pxi":7824 + * 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__938, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7824, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 7824, __pyx_L1_error) + + /* "talib/_func.pxi":7823 + * 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/_func.pxi":7825 + * 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 = real.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":7826 + * raise Exception("real has wrong dimensions") + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< + * real_data = real.data + * length = real.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7826, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 7826, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":7825 + * 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 = real.data + */ + } + + /* "talib/_func.pxi":7827 + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data # <<<<<<<<<<<<<< + * length = real.shape[0] + * begidx = 0 + */ + __pyx_v_real_data = ((double *)__pyx_v_real->data); + + /* "talib/_func.pxi":7828 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data + * length = real.shape[0] # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_v_length = (__pyx_v_real->dimensions[0]); + + /* "talib/_func.pxi":7829 + * real_data = real.data + * length = real.shape[0] + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = real_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":7830 + * length = real.shape[0] + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = real_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":7831 + * begidx = 0 + * for i from 0 <= i < length: + * val = real_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_real_data[__pyx_v_i]); + + /* "talib/_func.pxi":7832 + * for i from 0 <= i < length: + * val = real_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":7833 + * val = real_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L6_continue; + + /* "talib/_func.pxi":7832 + * for i from 0 <= i < length: + * val = real_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":7834 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":7835 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L7_break; + __pyx_L6_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":7837 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_LOG10_Lookback( ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__939, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7837, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 7837, __pyx_L1_error) + } + __pyx_L7_break:; + + /* "talib/_func.pxi":7838 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_LOG10_Lookback( ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":7839 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_LOG10_Lookback( ) # <<<<<<<<<<<<<< + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_LOG10_Lookback()); + + /* "talib/_func.pxi":7840 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_LOG10_Lookback( ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7840, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 7840, __pyx_L1_error) + __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":7841 + * lookback = begidx + lib.TA_LOG10_Lookback( ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + */ + __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); + + /* "talib/_func.pxi":7842 + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outreal_data[i] = NaN + * retCode = lib.TA_LOG10( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":7843 + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN # <<<<<<<<<<<<<< + * retCode = lib.TA_LOG10( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_LOG10", retCode) + */ + (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_8c_ta_lib_NaN; + } + + /* "talib/_func.pxi":7844 + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + * retCode = lib.TA_LOG10( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_LOG10", retCode) + * return outreal + */ + __pyx_v_retCode = TA_LOG10(0, __pyx_v_endidx, ((double *)(__pyx_v_real_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":7845 + * outreal_data[i] = NaN + * retCode = lib.TA_LOG10( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_LOG10", retCode) # <<<<<<<<<<<<<< + * return outreal + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_LOG10, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7845, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":7846 + * retCode = lib.TA_LOG10( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_LOG10", retCode) + * return outreal # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); + __pyx_r = ((PyObject *)__pyx_v_outreal); + goto __pyx_L0; + + /* "talib/_func.pxi":7801 + * @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.c_ta_lib.LOG10", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outreal); + __Pyx_XDECREF((PyObject *)__pyx_v_real); + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "talib/_func.pxi":7850 + * @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_8c_ta_lib_215MA(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_214MA[] = " 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_8c_ta_lib_215MA = {"MA", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_215MA, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_214MA}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_215MA(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(2, 7850, __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(2, 7850, __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(2, 7850, __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(2, 7850, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 7850, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_214MA(__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_8c_ta_lib_214MA(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod, int __pyx_v_matype) { + npy_intp __pyx_v_length; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + TA_RetCode __pyx_v_retCode; + double *__pyx_v_real_data; + int __pyx_v_outbegidx; + int __pyx_v_outnbelement; + PyArrayObject *__pyx_v_outreal = 0; + double *__pyx_v_outreal_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __Pyx_RefNannySetupContext("MA", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real); + + /* "talib/_func.pxi":7873 + * np.ndarray outreal + * double* outreal_data + * 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/_func.pxi":7874 + * double* outreal_data + * 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(2, 7874, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 7874, __pyx_L1_error) + + /* "talib/_func.pxi":7873 + * np.ndarray outreal + * double* outreal_data + * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real is not double") + * if real.ndim != 1: + */ + } + + /* "talib/_func.pxi":7875 + * 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/_func.pxi":7876 + * 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(2, 7876, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 7876, __pyx_L1_error) + + /* "talib/_func.pxi":7875 + * 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/_func.pxi":7877 + * 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 = real.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":7878 + * raise Exception("real has wrong dimensions") + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< + * real_data = real.data + * length = real.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7878, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 7878, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":7877 + * 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 = real.data + */ + } + + /* "talib/_func.pxi":7879 + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data # <<<<<<<<<<<<<< + * length = real.shape[0] + * begidx = 0 + */ + __pyx_v_real_data = ((double *)__pyx_v_real->data); + + /* "talib/_func.pxi":7880 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data + * length = real.shape[0] # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_v_length = (__pyx_v_real->dimensions[0]); + + /* "talib/_func.pxi":7881 + * real_data = real.data + * length = real.shape[0] + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = real_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":7882 + * length = real.shape[0] + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = real_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":7883 + * begidx = 0 + * for i from 0 <= i < length: + * val = real_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_real_data[__pyx_v_i]); + + /* "talib/_func.pxi":7884 + * for i from 0 <= i < length: + * val = real_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":7885 + * val = real_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L6_continue; + + /* "talib/_func.pxi":7884 + * for i from 0 <= i < length: + * val = real_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":7886 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":7887 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L7_break; + __pyx_L6_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":7889 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_MA_Lookback( timeperiod , matype ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__942, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7889, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 7889, __pyx_L1_error) + } + __pyx_L7_break:; + + /* "talib/_func.pxi":7890 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_MA_Lookback( timeperiod , matype ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":7891 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_MA_Lookback( timeperiod , matype ) # <<<<<<<<<<<<<< + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_MA_Lookback(__pyx_v_timeperiod, __pyx_v_matype)); + + /* "talib/_func.pxi":7892 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_MA_Lookback( timeperiod , matype ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7892, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 7892, __pyx_L1_error) + __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":7893 + * lookback = begidx + lib.TA_MA_Lookback( timeperiod , matype ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + */ + __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); + + /* "talib/_func.pxi":7894 + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outreal_data[i] = NaN + * retCode = lib.TA_MA( 0 , endidx , (real_data+begidx) , timeperiod , matype , &outbegidx , &outnbelement , (outreal_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":7895 + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN # <<<<<<<<<<<<<< + * retCode = lib.TA_MA( 0 , endidx , (real_data+begidx) , timeperiod , matype , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_MA", retCode) + */ + (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_8c_ta_lib_NaN; + } + + /* "talib/_func.pxi":7896 + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + * retCode = lib.TA_MA( 0 , endidx , (real_data+begidx) , timeperiod , matype , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_MA", retCode) + * return outreal + */ + __pyx_v_retCode = TA_MA(0, __pyx_v_endidx, ((double *)(__pyx_v_real_data + __pyx_v_begidx)), __pyx_v_timeperiod, __pyx_v_matype, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":7897 + * outreal_data[i] = NaN + * retCode = lib.TA_MA( 0 , endidx , (real_data+begidx) , timeperiod , matype , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_MA", retCode) # <<<<<<<<<<<<<< + * return outreal + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_MA, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7897, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":7898 + * retCode = lib.TA_MA( 0 , endidx , (real_data+begidx) , timeperiod , matype , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_MA", retCode) + * return outreal # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); + __pyx_r = ((PyObject *)__pyx_v_outreal); + goto __pyx_L0; + + /* "talib/_func.pxi":7850 + * @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.c_ta_lib.MA", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outreal); + __Pyx_XDECREF((PyObject *)__pyx_v_real); + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "talib/_func.pxi":7902 + * @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_8c_ta_lib_217MACD(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_216MACD[] = " 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_8c_ta_lib_217MACD = {"MACD", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_217MACD, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_216MACD}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_217MACD(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(2, 7902, __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(2, 7902, __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(2, 7902, __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(2, 7902, __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(2, 7902, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 7902, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_216MACD(__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_8c_ta_lib_216MACD(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; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + TA_RetCode __pyx_v_retCode; + double *__pyx_v_real_data; + int __pyx_v_outbegidx; + int __pyx_v_outnbelement; + PyArrayObject *__pyx_v_outmacd = 0; + double *__pyx_v_outmacd_data; + PyArrayObject *__pyx_v_outmacdsignal = 0; + double *__pyx_v_outmacdsignal_data; + PyArrayObject *__pyx_v_outmacdhist = 0; + double *__pyx_v_outmacdhist_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __Pyx_RefNannySetupContext("MACD", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real); + + /* "talib/_func.pxi":7932 + * np.ndarray outmacdhist + * double* outmacdhist_data + * 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/_func.pxi":7933 + * double* outmacdhist_data + * 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__943, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7933, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 7933, __pyx_L1_error) + + /* "talib/_func.pxi":7932 + * np.ndarray outmacdhist + * double* outmacdhist_data + * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real is not double") + * if real.ndim != 1: + */ + } + + /* "talib/_func.pxi":7934 + * 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/_func.pxi":7935 + * 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__944, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7935, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 7935, __pyx_L1_error) + + /* "talib/_func.pxi":7934 + * 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/_func.pxi":7936 + * 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 = real.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":7937 + * raise Exception("real has wrong dimensions") + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< + * real_data = real.data + * length = real.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7937, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 7937, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":7936 + * 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 = real.data + */ + } + + /* "talib/_func.pxi":7938 + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data # <<<<<<<<<<<<<< + * length = real.shape[0] + * begidx = 0 + */ + __pyx_v_real_data = ((double *)__pyx_v_real->data); + + /* "talib/_func.pxi":7939 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data + * length = real.shape[0] # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_v_length = (__pyx_v_real->dimensions[0]); + + /* "talib/_func.pxi":7940 + * real_data = real.data + * length = real.shape[0] + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = real_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":7941 + * length = real.shape[0] + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = real_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":7942 + * begidx = 0 + * for i from 0 <= i < length: + * val = real_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_real_data[__pyx_v_i]); + + /* "talib/_func.pxi":7943 + * for i from 0 <= i < length: + * val = real_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":7944 + * val = real_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L6_continue; + + /* "talib/_func.pxi":7943 + * for i from 0 <= i < length: + * val = real_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":7945 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":7946 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L7_break; + __pyx_L6_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":7948 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_MACD_Lookback( fastperiod , slowperiod , signalperiod ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__945, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7948, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 7948, __pyx_L1_error) + } + __pyx_L7_break:; + + /* "talib/_func.pxi":7949 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_MACD_Lookback( fastperiod , slowperiod , signalperiod ) + * outmacd = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":7950 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_MACD_Lookback( fastperiod , slowperiod , signalperiod ) # <<<<<<<<<<<<<< + * outmacd = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outmacd_data = outmacd.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_MACD_Lookback(__pyx_v_fastperiod, __pyx_v_slowperiod, __pyx_v_signalperiod)); + + /* "talib/_func.pxi":7951 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_MACD_Lookback( fastperiod , slowperiod , signalperiod ) + * outmacd = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outmacd_data = outmacd.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7951, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 7951, __pyx_L1_error) + __pyx_v_outmacd = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":7952 + * lookback = begidx + lib.TA_MACD_Lookback( fastperiod , slowperiod , signalperiod ) + * outmacd = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outmacd_data = outmacd.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outmacd_data[i] = NaN + */ + __pyx_v_outmacd_data = ((double *)__pyx_v_outmacd->data); + + /* "talib/_func.pxi":7953 + * outmacd = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outmacd_data = outmacd.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outmacd_data[i] = NaN + * outmacdsignal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":7954 + * outmacd_data = outmacd.data + * for i from 0 <= i < min(lookback, length): + * outmacd_data[i] = NaN # <<<<<<<<<<<<<< + * outmacdsignal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outmacdsignal_data = outmacdsignal.data + */ + (__pyx_v_outmacd_data[__pyx_v_i]) = __pyx_v_5talib_8c_ta_lib_NaN; + } + + /* "talib/_func.pxi":7955 + * for i from 0 <= i < min(lookback, length): + * outmacd_data[i] = NaN + * outmacdsignal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outmacdsignal_data = outmacdsignal.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7955, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 7955, __pyx_L1_error) + __pyx_v_outmacdsignal = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":7956 + * outmacd_data[i] = NaN + * outmacdsignal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outmacdsignal_data = outmacdsignal.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outmacdsignal_data[i] = NaN + */ + __pyx_v_outmacdsignal_data = ((double *)__pyx_v_outmacdsignal->data); + + /* "talib/_func.pxi":7957 + * outmacdsignal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outmacdsignal_data = outmacdsignal.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outmacdsignal_data[i] = NaN + * outmacdhist = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":7958 + * outmacdsignal_data = outmacdsignal.data + * for i from 0 <= i < min(lookback, length): + * outmacdsignal_data[i] = NaN # <<<<<<<<<<<<<< + * outmacdhist = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outmacdhist_data = outmacdhist.data + */ + (__pyx_v_outmacdsignal_data[__pyx_v_i]) = __pyx_v_5talib_8c_ta_lib_NaN; + } + + /* "talib/_func.pxi":7959 + * for i from 0 <= i < min(lookback, length): + * outmacdsignal_data[i] = NaN + * outmacdhist = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outmacdhist_data = outmacdhist.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7959, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 7959, __pyx_L1_error) + __pyx_v_outmacdhist = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":7960 + * outmacdsignal_data[i] = NaN + * outmacdhist = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outmacdhist_data = outmacdhist.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outmacdhist_data[i] = NaN + */ + __pyx_v_outmacdhist_data = ((double *)__pyx_v_outmacdhist->data); + + /* "talib/_func.pxi":7961 + * outmacdhist = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outmacdhist_data = outmacdhist.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outmacdhist_data[i] = NaN + * retCode = lib.TA_MACD( 0 , endidx , (real_data+begidx) , fastperiod , slowperiod , signalperiod , &outbegidx , &outnbelement , (outmacd_data+lookback) , (outmacdsignal_data+lookback) , (outmacdhist_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":7962 + * outmacdhist_data = outmacdhist.data + * for i from 0 <= i < min(lookback, length): + * outmacdhist_data[i] = NaN # <<<<<<<<<<<<<< + * retCode = lib.TA_MACD( 0 , endidx , (real_data+begidx) , fastperiod , slowperiod , signalperiod , &outbegidx , &outnbelement , (outmacd_data+lookback) , (outmacdsignal_data+lookback) , (outmacdhist_data+lookback) ) + * _ta_check_success("TA_MACD", retCode) + */ + (__pyx_v_outmacdhist_data[__pyx_v_i]) = __pyx_v_5talib_8c_ta_lib_NaN; + } + + /* "talib/_func.pxi":7963 + * for i from 0 <= i < min(lookback, length): + * outmacdhist_data[i] = NaN + * retCode = lib.TA_MACD( 0 , endidx , (real_data+begidx) , fastperiod , slowperiod , signalperiod , &outbegidx , &outnbelement , (outmacd_data+lookback) , (outmacdsignal_data+lookback) , (outmacdhist_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_MACD", retCode) + * return outmacd , outmacdsignal , outmacdhist + */ + __pyx_v_retCode = TA_MACD(0, __pyx_v_endidx, ((double *)(__pyx_v_real_data + __pyx_v_begidx)), __pyx_v_fastperiod, __pyx_v_slowperiod, __pyx_v_signalperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outmacd_data + __pyx_v_lookback)), ((double *)(__pyx_v_outmacdsignal_data + __pyx_v_lookback)), ((double *)(__pyx_v_outmacdhist_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":7964 + * outmacdhist_data[i] = NaN + * retCode = lib.TA_MACD( 0 , endidx , (real_data+begidx) , fastperiod , slowperiod , signalperiod , &outbegidx , &outnbelement , (outmacd_data+lookback) , (outmacdsignal_data+lookback) , (outmacdhist_data+lookback) ) + * _ta_check_success("TA_MACD", retCode) # <<<<<<<<<<<<<< + * return outmacd , outmacdsignal , outmacdhist + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_MACD, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7964, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":7965 + * retCode = lib.TA_MACD( 0 , endidx , (real_data+begidx) , fastperiod , slowperiod , signalperiod , &outbegidx , &outnbelement , (outmacd_data+lookback) , (outmacdsignal_data+lookback) , (outmacdhist_data+lookback) ) + * _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 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7965, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_INCREF(((PyObject *)__pyx_v_outmacd)); + __Pyx_GIVEREF(((PyObject *)__pyx_v_outmacd)); + PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_v_outmacd)); + __Pyx_INCREF(((PyObject *)__pyx_v_outmacdsignal)); + __Pyx_GIVEREF(((PyObject *)__pyx_v_outmacdsignal)); + PyTuple_SET_ITEM(__pyx_t_2, 1, ((PyObject *)__pyx_v_outmacdsignal)); + __Pyx_INCREF(((PyObject *)__pyx_v_outmacdhist)); + __Pyx_GIVEREF(((PyObject *)__pyx_v_outmacdhist)); + PyTuple_SET_ITEM(__pyx_t_2, 2, ((PyObject *)__pyx_v_outmacdhist)); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_func.pxi":7902 + * @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_AddTraceback("talib.c_ta_lib.MACD", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outmacd); + __Pyx_XDECREF((PyObject *)__pyx_v_outmacdsignal); + __Pyx_XDECREF((PyObject *)__pyx_v_outmacdhist); + __Pyx_XDECREF((PyObject *)__pyx_v_real); + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "talib/_func.pxi":7969 + * @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_8c_ta_lib_219MACDEXT(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_218MACDEXT[] = " 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_8c_ta_lib_219MACDEXT = {"MACDEXT", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_219MACDEXT, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_218MACDEXT}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_219MACDEXT(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(2, 7969, __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(2, 7969, __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(2, 7969, __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(2, 7969, __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(2, 7969, __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(2, 7969, __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(2, 7969, __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(2, 7969, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 7969, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_218MACDEXT(__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_8c_ta_lib_218MACDEXT(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; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + TA_RetCode __pyx_v_retCode; + double *__pyx_v_real_data; + int __pyx_v_outbegidx; + int __pyx_v_outnbelement; + PyArrayObject *__pyx_v_outmacd = 0; + double *__pyx_v_outmacd_data; + PyArrayObject *__pyx_v_outmacdsignal = 0; + double *__pyx_v_outmacdsignal_data; + PyArrayObject *__pyx_v_outmacdhist = 0; + double *__pyx_v_outmacdhist_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __Pyx_RefNannySetupContext("MACDEXT", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real); + + /* "talib/_func.pxi":8002 + * np.ndarray outmacdhist + * double* outmacdhist_data + * 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/_func.pxi":8003 + * double* outmacdhist_data + * 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__946, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8003, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 8003, __pyx_L1_error) + + /* "talib/_func.pxi":8002 + * np.ndarray outmacdhist + * double* outmacdhist_data + * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real is not double") + * if real.ndim != 1: + */ + } + + /* "talib/_func.pxi":8004 + * 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/_func.pxi":8005 + * 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__947, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8005, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 8005, __pyx_L1_error) + + /* "talib/_func.pxi":8004 + * 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/_func.pxi":8006 + * 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 = real.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":8007 + * raise Exception("real has wrong dimensions") + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< + * real_data = real.data + * length = real.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8007, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 8007, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":8006 + * 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 = real.data + */ + } + + /* "talib/_func.pxi":8008 + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data # <<<<<<<<<<<<<< + * length = real.shape[0] + * begidx = 0 + */ + __pyx_v_real_data = ((double *)__pyx_v_real->data); + + /* "talib/_func.pxi":8009 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data + * length = real.shape[0] # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_v_length = (__pyx_v_real->dimensions[0]); + + /* "talib/_func.pxi":8010 + * real_data = real.data + * length = real.shape[0] + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = real_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":8011 + * length = real.shape[0] + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = real_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":8012 + * begidx = 0 + * for i from 0 <= i < length: + * val = real_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_real_data[__pyx_v_i]); + + /* "talib/_func.pxi":8013 + * for i from 0 <= i < length: + * val = real_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":8014 + * val = real_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L6_continue; + + /* "talib/_func.pxi":8013 + * for i from 0 <= i < length: + * val = real_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":8015 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":8016 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L7_break; + __pyx_L6_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":8018 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_MACDEXT_Lookback( fastperiod , fastmatype , slowperiod , slowmatype , signalperiod , signalmatype ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__948, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8018, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 8018, __pyx_L1_error) + } + __pyx_L7_break:; + + /* "talib/_func.pxi":8019 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_MACDEXT_Lookback( fastperiod , fastmatype , slowperiod , slowmatype , signalperiod , signalmatype ) + * outmacd = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":8020 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_MACDEXT_Lookback( fastperiod , fastmatype , slowperiod , slowmatype , signalperiod , signalmatype ) # <<<<<<<<<<<<<< + * outmacd = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outmacd_data = outmacd.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_MACDEXT_Lookback(__pyx_v_fastperiod, __pyx_v_fastmatype, __pyx_v_slowperiod, __pyx_v_slowmatype, __pyx_v_signalperiod, __pyx_v_signalmatype)); + + /* "talib/_func.pxi":8021 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_MACDEXT_Lookback( fastperiod , fastmatype , slowperiod , slowmatype , signalperiod , signalmatype ) + * outmacd = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outmacd_data = outmacd.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 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(2, 8021, __pyx_L1_error) + __pyx_v_outmacd = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":8022 + * lookback = begidx + lib.TA_MACDEXT_Lookback( fastperiod , fastmatype , slowperiod , slowmatype , signalperiod , signalmatype ) + * outmacd = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outmacd_data = outmacd.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outmacd_data[i] = NaN + */ + __pyx_v_outmacd_data = ((double *)__pyx_v_outmacd->data); + + /* "talib/_func.pxi":8023 + * outmacd = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outmacd_data = outmacd.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outmacd_data[i] = NaN + * outmacdsignal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":8024 + * outmacd_data = outmacd.data + * for i from 0 <= i < min(lookback, length): + * outmacd_data[i] = NaN # <<<<<<<<<<<<<< + * outmacdsignal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outmacdsignal_data = outmacdsignal.data + */ + (__pyx_v_outmacd_data[__pyx_v_i]) = __pyx_v_5talib_8c_ta_lib_NaN; + } + + /* "talib/_func.pxi":8025 + * for i from 0 <= i < min(lookback, length): + * outmacd_data[i] = NaN + * outmacdsignal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outmacdsignal_data = outmacdsignal.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8025, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 8025, __pyx_L1_error) + __pyx_v_outmacdsignal = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":8026 + * outmacd_data[i] = NaN + * outmacdsignal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outmacdsignal_data = outmacdsignal.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outmacdsignal_data[i] = NaN + */ + __pyx_v_outmacdsignal_data = ((double *)__pyx_v_outmacdsignal->data); + + /* "talib/_func.pxi":8027 + * outmacdsignal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outmacdsignal_data = outmacdsignal.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outmacdsignal_data[i] = NaN + * outmacdhist = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":8028 + * outmacdsignal_data = outmacdsignal.data + * for i from 0 <= i < min(lookback, length): + * outmacdsignal_data[i] = NaN # <<<<<<<<<<<<<< + * outmacdhist = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outmacdhist_data = outmacdhist.data + */ + (__pyx_v_outmacdsignal_data[__pyx_v_i]) = __pyx_v_5talib_8c_ta_lib_NaN; + } + + /* "talib/_func.pxi":8029 + * for i from 0 <= i < min(lookback, length): + * outmacdsignal_data[i] = NaN + * outmacdhist = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outmacdhist_data = outmacdhist.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8029, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 8029, __pyx_L1_error) + __pyx_v_outmacdhist = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":8030 + * outmacdsignal_data[i] = NaN + * outmacdhist = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outmacdhist_data = outmacdhist.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outmacdhist_data[i] = NaN + */ + __pyx_v_outmacdhist_data = ((double *)__pyx_v_outmacdhist->data); + + /* "talib/_func.pxi":8031 + * outmacdhist = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outmacdhist_data = outmacdhist.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outmacdhist_data[i] = NaN + * retCode = lib.TA_MACDEXT( 0 , endidx , (real_data+begidx) , fastperiod , fastmatype , slowperiod , slowmatype , signalperiod , signalmatype , &outbegidx , &outnbelement , (outmacd_data+lookback) , (outmacdsignal_data+lookback) , (outmacdhist_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":8032 + * outmacdhist_data = outmacdhist.data + * for i from 0 <= i < min(lookback, length): + * outmacdhist_data[i] = NaN # <<<<<<<<<<<<<< + * retCode = lib.TA_MACDEXT( 0 , endidx , (real_data+begidx) , fastperiod , fastmatype , slowperiod , slowmatype , signalperiod , signalmatype , &outbegidx , &outnbelement , (outmacd_data+lookback) , (outmacdsignal_data+lookback) , (outmacdhist_data+lookback) ) + * _ta_check_success("TA_MACDEXT", retCode) + */ + (__pyx_v_outmacdhist_data[__pyx_v_i]) = __pyx_v_5talib_8c_ta_lib_NaN; + } + + /* "talib/_func.pxi":8033 + * for i from 0 <= i < min(lookback, length): + * outmacdhist_data[i] = NaN + * retCode = lib.TA_MACDEXT( 0 , endidx , (real_data+begidx) , fastperiod , fastmatype , slowperiod , slowmatype , signalperiod , signalmatype , &outbegidx , &outnbelement , (outmacd_data+lookback) , (outmacdsignal_data+lookback) , (outmacdhist_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_MACDEXT", retCode) + * return outmacd , outmacdsignal , outmacdhist + */ + __pyx_v_retCode = TA_MACDEXT(0, __pyx_v_endidx, ((double *)(__pyx_v_real_data + __pyx_v_begidx)), __pyx_v_fastperiod, __pyx_v_fastmatype, __pyx_v_slowperiod, __pyx_v_slowmatype, __pyx_v_signalperiod, __pyx_v_signalmatype, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outmacd_data + __pyx_v_lookback)), ((double *)(__pyx_v_outmacdsignal_data + __pyx_v_lookback)), ((double *)(__pyx_v_outmacdhist_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":8034 + * outmacdhist_data[i] = NaN + * retCode = lib.TA_MACDEXT( 0 , endidx , (real_data+begidx) , fastperiod , fastmatype , slowperiod , slowmatype , signalperiod , signalmatype , &outbegidx , &outnbelement , (outmacd_data+lookback) , (outmacdsignal_data+lookback) , (outmacdhist_data+lookback) ) + * _ta_check_success("TA_MACDEXT", retCode) # <<<<<<<<<<<<<< + * return outmacd , outmacdsignal , outmacdhist + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_MACDEXT, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8034, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":8035 + * retCode = lib.TA_MACDEXT( 0 , endidx , (real_data+begidx) , fastperiod , fastmatype , slowperiod , slowmatype , signalperiod , signalmatype , &outbegidx , &outnbelement , (outmacd_data+lookback) , (outmacdsignal_data+lookback) , (outmacdhist_data+lookback) ) + * _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 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8035, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_INCREF(((PyObject *)__pyx_v_outmacd)); + __Pyx_GIVEREF(((PyObject *)__pyx_v_outmacd)); + PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_v_outmacd)); + __Pyx_INCREF(((PyObject *)__pyx_v_outmacdsignal)); + __Pyx_GIVEREF(((PyObject *)__pyx_v_outmacdsignal)); + PyTuple_SET_ITEM(__pyx_t_2, 1, ((PyObject *)__pyx_v_outmacdsignal)); + __Pyx_INCREF(((PyObject *)__pyx_v_outmacdhist)); + __Pyx_GIVEREF(((PyObject *)__pyx_v_outmacdhist)); + PyTuple_SET_ITEM(__pyx_t_2, 2, ((PyObject *)__pyx_v_outmacdhist)); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_func.pxi":7969 + * @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_AddTraceback("talib.c_ta_lib.MACDEXT", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outmacd); + __Pyx_XDECREF((PyObject *)__pyx_v_outmacdsignal); + __Pyx_XDECREF((PyObject *)__pyx_v_outmacdhist); + __Pyx_XDECREF((PyObject *)__pyx_v_real); + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "talib/_func.pxi":8039 + * @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_8c_ta_lib_221MACDFIX(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_220MACDFIX[] = " 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_8c_ta_lib_221MACDFIX = {"MACDFIX", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_221MACDFIX, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_220MACDFIX}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_221MACDFIX(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(2, 8039, __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(2, 8039, __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(2, 8039, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 8039, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_220MACDFIX(__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_8c_ta_lib_220MACDFIX(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_signalperiod) { + npy_intp __pyx_v_length; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + TA_RetCode __pyx_v_retCode; + double *__pyx_v_real_data; + int __pyx_v_outbegidx; + int __pyx_v_outnbelement; + PyArrayObject *__pyx_v_outmacd = 0; + double *__pyx_v_outmacd_data; + PyArrayObject *__pyx_v_outmacdsignal = 0; + double *__pyx_v_outmacdsignal_data; + PyArrayObject *__pyx_v_outmacdhist = 0; + double *__pyx_v_outmacdhist_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __Pyx_RefNannySetupContext("MACDFIX", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real); + + /* "talib/_func.pxi":8067 + * np.ndarray outmacdhist + * double* outmacdhist_data + * 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/_func.pxi":8068 + * double* outmacdhist_data + * 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__949, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8068, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 8068, __pyx_L1_error) + + /* "talib/_func.pxi":8067 + * np.ndarray outmacdhist + * double* outmacdhist_data + * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real is not double") + * if real.ndim != 1: + */ + } + + /* "talib/_func.pxi":8069 + * 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/_func.pxi":8070 + * 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__950, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8070, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 8070, __pyx_L1_error) + + /* "talib/_func.pxi":8069 + * 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/_func.pxi":8071 + * 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 = real.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":8072 + * raise Exception("real has wrong dimensions") + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< + * real_data = real.data + * length = real.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8072, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 8072, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":8071 + * 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 = real.data + */ + } + + /* "talib/_func.pxi":8073 + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data # <<<<<<<<<<<<<< + * length = real.shape[0] + * begidx = 0 + */ + __pyx_v_real_data = ((double *)__pyx_v_real->data); + + /* "talib/_func.pxi":8074 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data + * length = real.shape[0] # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_v_length = (__pyx_v_real->dimensions[0]); + + /* "talib/_func.pxi":8075 + * real_data = real.data + * length = real.shape[0] + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = real_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":8076 + * length = real.shape[0] + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = real_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":8077 + * begidx = 0 + * for i from 0 <= i < length: + * val = real_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_real_data[__pyx_v_i]); + + /* "talib/_func.pxi":8078 + * for i from 0 <= i < length: + * val = real_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":8079 + * val = real_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L6_continue; + + /* "talib/_func.pxi":8078 + * for i from 0 <= i < length: + * val = real_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":8080 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":8081 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L7_break; + __pyx_L6_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":8083 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_MACDFIX_Lookback( signalperiod ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__951, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8083, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 8083, __pyx_L1_error) + } + __pyx_L7_break:; + + /* "talib/_func.pxi":8084 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_MACDFIX_Lookback( signalperiod ) + * outmacd = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":8085 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_MACDFIX_Lookback( signalperiod ) # <<<<<<<<<<<<<< + * outmacd = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outmacd_data = outmacd.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_MACDFIX_Lookback(__pyx_v_signalperiod)); + + /* "talib/_func.pxi":8086 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_MACDFIX_Lookback( signalperiod ) + * outmacd = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outmacd_data = outmacd.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8086, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 8086, __pyx_L1_error) + __pyx_v_outmacd = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":8087 + * lookback = begidx + lib.TA_MACDFIX_Lookback( signalperiod ) + * outmacd = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outmacd_data = outmacd.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outmacd_data[i] = NaN + */ + __pyx_v_outmacd_data = ((double *)__pyx_v_outmacd->data); + + /* "talib/_func.pxi":8088 + * outmacd = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outmacd_data = outmacd.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outmacd_data[i] = NaN + * outmacdsignal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":8089 + * outmacd_data = outmacd.data + * for i from 0 <= i < min(lookback, length): + * outmacd_data[i] = NaN # <<<<<<<<<<<<<< + * outmacdsignal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outmacdsignal_data = outmacdsignal.data + */ + (__pyx_v_outmacd_data[__pyx_v_i]) = __pyx_v_5talib_8c_ta_lib_NaN; + } + + /* "talib/_func.pxi":8090 + * for i from 0 <= i < min(lookback, length): + * outmacd_data[i] = NaN + * outmacdsignal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outmacdsignal_data = outmacdsignal.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8090, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 8090, __pyx_L1_error) + __pyx_v_outmacdsignal = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":8091 + * outmacd_data[i] = NaN + * outmacdsignal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outmacdsignal_data = outmacdsignal.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outmacdsignal_data[i] = NaN + */ + __pyx_v_outmacdsignal_data = ((double *)__pyx_v_outmacdsignal->data); + + /* "talib/_func.pxi":8092 + * outmacdsignal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outmacdsignal_data = outmacdsignal.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outmacdsignal_data[i] = NaN + * outmacdhist = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":8093 + * outmacdsignal_data = outmacdsignal.data + * for i from 0 <= i < min(lookback, length): + * outmacdsignal_data[i] = NaN # <<<<<<<<<<<<<< + * outmacdhist = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outmacdhist_data = outmacdhist.data + */ + (__pyx_v_outmacdsignal_data[__pyx_v_i]) = __pyx_v_5talib_8c_ta_lib_NaN; + } + + /* "talib/_func.pxi":8094 + * for i from 0 <= i < min(lookback, length): + * outmacdsignal_data[i] = NaN + * outmacdhist = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outmacdhist_data = outmacdhist.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8094, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 8094, __pyx_L1_error) + __pyx_v_outmacdhist = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":8095 + * outmacdsignal_data[i] = NaN + * outmacdhist = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outmacdhist_data = outmacdhist.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outmacdhist_data[i] = NaN + */ + __pyx_v_outmacdhist_data = ((double *)__pyx_v_outmacdhist->data); + + /* "talib/_func.pxi":8096 + * outmacdhist = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outmacdhist_data = outmacdhist.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outmacdhist_data[i] = NaN + * retCode = lib.TA_MACDFIX( 0 , endidx , (real_data+begidx) , signalperiod , &outbegidx , &outnbelement , (outmacd_data+lookback) , (outmacdsignal_data+lookback) , (outmacdhist_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":8097 + * outmacdhist_data = outmacdhist.data + * for i from 0 <= i < min(lookback, length): + * outmacdhist_data[i] = NaN # <<<<<<<<<<<<<< + * retCode = lib.TA_MACDFIX( 0 , endidx , (real_data+begidx) , signalperiod , &outbegidx , &outnbelement , (outmacd_data+lookback) , (outmacdsignal_data+lookback) , (outmacdhist_data+lookback) ) + * _ta_check_success("TA_MACDFIX", retCode) + */ + (__pyx_v_outmacdhist_data[__pyx_v_i]) = __pyx_v_5talib_8c_ta_lib_NaN; + } + + /* "talib/_func.pxi":8098 + * for i from 0 <= i < min(lookback, length): + * outmacdhist_data[i] = NaN + * retCode = lib.TA_MACDFIX( 0 , endidx , (real_data+begidx) , signalperiod , &outbegidx , &outnbelement , (outmacd_data+lookback) , (outmacdsignal_data+lookback) , (outmacdhist_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_MACDFIX", retCode) + * return outmacd , outmacdsignal , outmacdhist + */ + __pyx_v_retCode = TA_MACDFIX(0, __pyx_v_endidx, ((double *)(__pyx_v_real_data + __pyx_v_begidx)), __pyx_v_signalperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outmacd_data + __pyx_v_lookback)), ((double *)(__pyx_v_outmacdsignal_data + __pyx_v_lookback)), ((double *)(__pyx_v_outmacdhist_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":8099 + * outmacdhist_data[i] = NaN + * retCode = lib.TA_MACDFIX( 0 , endidx , (real_data+begidx) , signalperiod , &outbegidx , &outnbelement , (outmacd_data+lookback) , (outmacdsignal_data+lookback) , (outmacdhist_data+lookback) ) + * _ta_check_success("TA_MACDFIX", retCode) # <<<<<<<<<<<<<< + * return outmacd , outmacdsignal , outmacdhist + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_MACDFIX, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8099, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":8100 + * retCode = lib.TA_MACDFIX( 0 , endidx , (real_data+begidx) , signalperiod , &outbegidx , &outnbelement , (outmacd_data+lookback) , (outmacdsignal_data+lookback) , (outmacdhist_data+lookback) ) + * _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 = PyTuple_New(3); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8100, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_INCREF(((PyObject *)__pyx_v_outmacd)); + __Pyx_GIVEREF(((PyObject *)__pyx_v_outmacd)); + PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_v_outmacd)); + __Pyx_INCREF(((PyObject *)__pyx_v_outmacdsignal)); + __Pyx_GIVEREF(((PyObject *)__pyx_v_outmacdsignal)); + PyTuple_SET_ITEM(__pyx_t_2, 1, ((PyObject *)__pyx_v_outmacdsignal)); + __Pyx_INCREF(((PyObject *)__pyx_v_outmacdhist)); + __Pyx_GIVEREF(((PyObject *)__pyx_v_outmacdhist)); + PyTuple_SET_ITEM(__pyx_t_2, 2, ((PyObject *)__pyx_v_outmacdhist)); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_func.pxi":8039 + * @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_AddTraceback("talib.c_ta_lib.MACDFIX", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outmacd); + __Pyx_XDECREF((PyObject *)__pyx_v_outmacdsignal); + __Pyx_XDECREF((PyObject *)__pyx_v_outmacdhist); + __Pyx_XDECREF((PyObject *)__pyx_v_real); + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "talib/_func.pxi":8104 + * @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_8c_ta_lib_223MAMA(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_222MAMA[] = " 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_8c_ta_lib_223MAMA = {"MAMA", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_223MAMA, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_222MAMA}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_223MAMA(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(2, 8104, __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(2, 8104, __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(2, 8104, __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(2, 8104, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 8104, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_222MAMA(__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_8c_ta_lib_222MAMA(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, double __pyx_v_fastlimit, double __pyx_v_slowlimit) { + npy_intp __pyx_v_length; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + TA_RetCode __pyx_v_retCode; + double *__pyx_v_real_data; + int __pyx_v_outbegidx; + int __pyx_v_outnbelement; + PyArrayObject *__pyx_v_outmama = 0; + double *__pyx_v_outmama_data; + PyArrayObject *__pyx_v_outfama = 0; + double *__pyx_v_outfama_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __Pyx_RefNannySetupContext("MAMA", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real); + + /* "talib/_func.pxi":8130 + * np.ndarray outfama + * double* outfama_data + * 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/_func.pxi":8131 + * double* outfama_data + * 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__952, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8131, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 8131, __pyx_L1_error) + + /* "talib/_func.pxi":8130 + * np.ndarray outfama + * double* outfama_data + * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real is not double") + * if real.ndim != 1: + */ + } + + /* "talib/_func.pxi":8132 + * 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/_func.pxi":8133 + * 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__953, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8133, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 8133, __pyx_L1_error) + + /* "talib/_func.pxi":8132 + * 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/_func.pxi":8134 + * 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 = real.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":8135 + * raise Exception("real has wrong dimensions") + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< + * real_data = real.data + * length = real.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8135, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 8135, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":8134 + * 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 = real.data + */ + } + + /* "talib/_func.pxi":8136 + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data # <<<<<<<<<<<<<< + * length = real.shape[0] + * begidx = 0 + */ + __pyx_v_real_data = ((double *)__pyx_v_real->data); + + /* "talib/_func.pxi":8137 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data + * length = real.shape[0] # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_v_length = (__pyx_v_real->dimensions[0]); + + /* "talib/_func.pxi":8138 + * real_data = real.data + * length = real.shape[0] + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = real_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":8139 + * length = real.shape[0] + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = real_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":8140 + * begidx = 0 + * for i from 0 <= i < length: + * val = real_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_real_data[__pyx_v_i]); + + /* "talib/_func.pxi":8141 + * for i from 0 <= i < length: + * val = real_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":8142 + * val = real_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L6_continue; + + /* "talib/_func.pxi":8141 + * for i from 0 <= i < length: + * val = real_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":8143 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":8144 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L7_break; + __pyx_L6_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":8146 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_MAMA_Lookback( fastlimit , slowlimit ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__954, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8146, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 8146, __pyx_L1_error) + } + __pyx_L7_break:; + + /* "talib/_func.pxi":8147 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_MAMA_Lookback( fastlimit , slowlimit ) + * outmama = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":8148 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_MAMA_Lookback( fastlimit , slowlimit ) # <<<<<<<<<<<<<< + * outmama = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outmama_data = outmama.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_MAMA_Lookback(__pyx_v_fastlimit, __pyx_v_slowlimit)); + + /* "talib/_func.pxi":8149 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_MAMA_Lookback( fastlimit , slowlimit ) + * outmama = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outmama_data = outmama.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8149, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 8149, __pyx_L1_error) + __pyx_v_outmama = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":8150 + * lookback = begidx + lib.TA_MAMA_Lookback( fastlimit , slowlimit ) + * outmama = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outmama_data = outmama.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outmama_data[i] = NaN + */ + __pyx_v_outmama_data = ((double *)__pyx_v_outmama->data); + + /* "talib/_func.pxi":8151 + * outmama = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outmama_data = outmama.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outmama_data[i] = NaN + * outfama = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":8152 + * outmama_data = outmama.data + * for i from 0 <= i < min(lookback, length): + * outmama_data[i] = NaN # <<<<<<<<<<<<<< + * outfama = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outfama_data = outfama.data + */ + (__pyx_v_outmama_data[__pyx_v_i]) = __pyx_v_5talib_8c_ta_lib_NaN; + } + + /* "talib/_func.pxi":8153 + * for i from 0 <= i < min(lookback, length): + * outmama_data[i] = NaN + * outfama = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outfama_data = outfama.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8153, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 8153, __pyx_L1_error) + __pyx_v_outfama = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":8154 + * outmama_data[i] = NaN + * outfama = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outfama_data = outfama.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outfama_data[i] = NaN + */ + __pyx_v_outfama_data = ((double *)__pyx_v_outfama->data); + + /* "talib/_func.pxi":8155 + * outfama = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outfama_data = outfama.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outfama_data[i] = NaN + * retCode = lib.TA_MAMA( 0 , endidx , (real_data+begidx) , fastlimit , slowlimit , &outbegidx , &outnbelement , (outmama_data+lookback) , (outfama_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":8156 + * outfama_data = outfama.data + * for i from 0 <= i < min(lookback, length): + * outfama_data[i] = NaN # <<<<<<<<<<<<<< + * retCode = lib.TA_MAMA( 0 , endidx , (real_data+begidx) , fastlimit , slowlimit , &outbegidx , &outnbelement , (outmama_data+lookback) , (outfama_data+lookback) ) + * _ta_check_success("TA_MAMA", retCode) + */ + (__pyx_v_outfama_data[__pyx_v_i]) = __pyx_v_5talib_8c_ta_lib_NaN; + } + + /* "talib/_func.pxi":8157 + * for i from 0 <= i < min(lookback, length): + * outfama_data[i] = NaN + * retCode = lib.TA_MAMA( 0 , endidx , (real_data+begidx) , fastlimit , slowlimit , &outbegidx , &outnbelement , (outmama_data+lookback) , (outfama_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_MAMA", retCode) + * return outmama , outfama + */ + __pyx_v_retCode = TA_MAMA(0, __pyx_v_endidx, ((double *)(__pyx_v_real_data + __pyx_v_begidx)), __pyx_v_fastlimit, __pyx_v_slowlimit, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outmama_data + __pyx_v_lookback)), ((double *)(__pyx_v_outfama_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":8158 + * outfama_data[i] = NaN + * retCode = lib.TA_MAMA( 0 , endidx , (real_data+begidx) , fastlimit , slowlimit , &outbegidx , &outnbelement , (outmama_data+lookback) , (outfama_data+lookback) ) + * _ta_check_success("TA_MAMA", retCode) # <<<<<<<<<<<<<< + * return outmama , outfama + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_MAMA, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8158, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":8159 + * retCode = lib.TA_MAMA( 0 , endidx , (real_data+begidx) , fastlimit , slowlimit , &outbegidx , &outnbelement , (outmama_data+lookback) , (outfama_data+lookback) ) + * _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 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8159, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_INCREF(((PyObject *)__pyx_v_outmama)); + __Pyx_GIVEREF(((PyObject *)__pyx_v_outmama)); + PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_v_outmama)); + __Pyx_INCREF(((PyObject *)__pyx_v_outfama)); + __Pyx_GIVEREF(((PyObject *)__pyx_v_outfama)); + PyTuple_SET_ITEM(__pyx_t_2, 1, ((PyObject *)__pyx_v_outfama)); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_func.pxi":8104 + * @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_AddTraceback("talib.c_ta_lib.MAMA", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outmama); + __Pyx_XDECREF((PyObject *)__pyx_v_outfama); + __Pyx_XDECREF((PyObject *)__pyx_v_real); + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "talib/_func.pxi":8163 + * @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_8c_ta_lib_225MAVP(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_224MAVP[] = " 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_8c_ta_lib_225MAVP = {"MAVP", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_225MAVP, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_224MAVP}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_225MAVP(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(2, 8163, __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(2, 8163, __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(2, 8163, __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(2, 8163, __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(2, 8163, __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(2, 8163, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 8163, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_periods), __pyx_ptype_5numpy_ndarray, 0, "periods", 0))) __PYX_ERR(2, 8163, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_224MAVP(__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_8c_ta_lib_224MAVP(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; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + TA_RetCode __pyx_v_retCode; + double *__pyx_v_real_data; + double *__pyx_v_periods_data; + int __pyx_v_outbegidx; + int __pyx_v_outnbelement; + PyArrayObject *__pyx_v_outreal = 0; + double *__pyx_v_outreal_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __Pyx_RefNannySetupContext("MAVP", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real); + __Pyx_INCREF((PyObject *)__pyx_v_periods); + + /* "talib/_func.pxi":8189 + * np.ndarray outreal + * double* outreal_data + * 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/_func.pxi":8190 + * double* outreal_data + * 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__955, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8190, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 8190, __pyx_L1_error) + + /* "talib/_func.pxi":8189 + * np.ndarray outreal + * double* outreal_data + * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real is not double") + * if real.ndim != 1: + */ + } + + /* "talib/_func.pxi":8191 + * 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/_func.pxi":8192 + * 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__956, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8192, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 8192, __pyx_L1_error) + + /* "talib/_func.pxi":8191 + * 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/_func.pxi":8193 + * 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 = real.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":8194 + * raise Exception("real has wrong dimensions") + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< + * real_data = real.data + * if PyArray_TYPE(periods) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8194, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 8194, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":8193 + * 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 = real.data + */ + } + + /* "talib/_func.pxi":8195 + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) + * real_data = 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/_func.pxi":8196 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = 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/_func.pxi":8197 + * real_data = 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__957, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8197, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 8197, __pyx_L1_error) + + /* "talib/_func.pxi":8196 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data + * if PyArray_TYPE(periods) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("periods is not double") + * if periods.ndim != 1: + */ + } + + /* "talib/_func.pxi":8198 + * 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/_func.pxi":8199 + * 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__958, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8199, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 8199, __pyx_L1_error) + + /* "talib/_func.pxi":8198 + * 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/_func.pxi":8200 + * 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 = periods.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_periods) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":8201 + * raise Exception("periods has wrong dimensions") + * if not (PyArray_FLAGS(periods) & np.NPY_C_CONTIGUOUS): + * periods = PyArray_GETCONTIGUOUS(periods) # <<<<<<<<<<<<<< + * periods_data = periods.data + * length = real.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_periods); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8201, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 8201, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_periods, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":8200 + * 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 = periods.data + */ + } + + /* "talib/_func.pxi":8202 + * if not (PyArray_FLAGS(periods) & np.NPY_C_CONTIGUOUS): + * periods = PyArray_GETCONTIGUOUS(periods) + * periods_data = periods.data # <<<<<<<<<<<<<< + * length = real.shape[0] + * if length != periods.shape[0]: + */ + __pyx_v_periods_data = ((double *)__pyx_v_periods->data); + + /* "talib/_func.pxi":8203 + * periods = PyArray_GETCONTIGUOUS(periods) + * periods_data = 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/_func.pxi":8204 + * periods_data = periods.data + * length = real.shape[0] + * if length != periods.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + __pyx_t_1 = ((__pyx_v_length != (__pyx_v_periods->dimensions[0])) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":8205 + * length = real.shape[0] + * if length != periods.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__959, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8205, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 8205, __pyx_L1_error) + + /* "talib/_func.pxi":8204 + * periods_data = periods.data + * length = real.shape[0] + * if length != periods.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + } + + /* "talib/_func.pxi":8206 + * if length != periods.shape[0]: + * raise Exception("input lengths are different") + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = real_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":8207 + * raise Exception("input lengths are different") + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = real_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":8208 + * begidx = 0 + * for i from 0 <= i < length: + * val = real_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_real_data[__pyx_v_i]); + + /* "talib/_func.pxi":8209 + * for i from 0 <= i < length: + * val = real_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = periods_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":8210 + * val = real_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = periods_data[i] + * if val != val: + */ + goto __pyx_L10_continue; + + /* "talib/_func.pxi":8209 + * for i from 0 <= i < length: + * val = real_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = periods_data[i] + */ + } + + /* "talib/_func.pxi":8211 + * if val != val: + * continue + * val = periods_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_periods_data[__pyx_v_i]); + + /* "talib/_func.pxi":8212 + * continue + * val = periods_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":8213 + * val = periods_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L10_continue; + + /* "talib/_func.pxi":8212 + * continue + * val = periods_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":8214 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":8215 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L11_break; + __pyx_L10_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":8217 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_MAVP_Lookback( minperiod , maxperiod , matype ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__960, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8217, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 8217, __pyx_L1_error) + } + __pyx_L11_break:; + + /* "talib/_func.pxi":8218 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_MAVP_Lookback( minperiod , maxperiod , matype ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":8219 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_MAVP_Lookback( minperiod , maxperiod , matype ) # <<<<<<<<<<<<<< + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_MAVP_Lookback(__pyx_v_minperiod, __pyx_v_maxperiod, __pyx_v_matype)); + + /* "talib/_func.pxi":8220 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_MAVP_Lookback( minperiod , maxperiod , matype ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8220, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 8220, __pyx_L1_error) + __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":8221 + * lookback = begidx + lib.TA_MAVP_Lookback( minperiod , maxperiod , matype ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + */ + __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); + + /* "talib/_func.pxi":8222 + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outreal_data[i] = NaN + * retCode = lib.TA_MAVP( 0 , endidx , (real_data+begidx) , (periods_data+begidx) , minperiod , maxperiod , matype , &outbegidx , &outnbelement , (outreal_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":8223 + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN # <<<<<<<<<<<<<< + * retCode = lib.TA_MAVP( 0 , endidx , (real_data+begidx) , (periods_data+begidx) , minperiod , maxperiod , matype , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_MAVP", retCode) + */ + (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_8c_ta_lib_NaN; + } + + /* "talib/_func.pxi":8224 + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + * retCode = lib.TA_MAVP( 0 , endidx , (real_data+begidx) , (periods_data+begidx) , minperiod , maxperiod , matype , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_MAVP", retCode) + * return outreal + */ + __pyx_v_retCode = TA_MAVP(0, __pyx_v_endidx, ((double *)(__pyx_v_real_data + __pyx_v_begidx)), ((double *)(__pyx_v_periods_data + __pyx_v_begidx)), __pyx_v_minperiod, __pyx_v_maxperiod, __pyx_v_matype, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":8225 + * outreal_data[i] = NaN + * retCode = lib.TA_MAVP( 0 , endidx , (real_data+begidx) , (periods_data+begidx) , minperiod , maxperiod , matype , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_MAVP", retCode) # <<<<<<<<<<<<<< + * return outreal + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_MAVP, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8225, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":8226 + * retCode = lib.TA_MAVP( 0 , endidx , (real_data+begidx) , (periods_data+begidx) , minperiod , maxperiod , matype , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_MAVP", retCode) + * return outreal # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); + __pyx_r = ((PyObject *)__pyx_v_outreal); + goto __pyx_L0; + + /* "talib/_func.pxi":8163 + * @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.c_ta_lib.MAVP", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outreal); + __Pyx_XDECREF((PyObject *)__pyx_v_real); + __Pyx_XDECREF((PyObject *)__pyx_v_periods); + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "talib/_func.pxi":8230 + * @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_8c_ta_lib_227MAX(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_226MAX[] = " 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_8c_ta_lib_227MAX = {"MAX", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_227MAX, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_226MAX}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_227MAX(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(2, 8230, __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(2, 8230, __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(2, 8230, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 8230, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_226MAX(__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_8c_ta_lib_226MAX(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod) { + npy_intp __pyx_v_length; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + TA_RetCode __pyx_v_retCode; + double *__pyx_v_real_data; + int __pyx_v_outbegidx; + int __pyx_v_outnbelement; + PyArrayObject *__pyx_v_outreal = 0; + double *__pyx_v_outreal_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __Pyx_RefNannySetupContext("MAX", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real); + + /* "talib/_func.pxi":8252 + * np.ndarray outreal + * double* outreal_data + * 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/_func.pxi":8253 + * double* outreal_data + * 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__961, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8253, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 8253, __pyx_L1_error) + + /* "talib/_func.pxi":8252 + * np.ndarray outreal + * double* outreal_data + * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real is not double") + * if real.ndim != 1: + */ + } + + /* "talib/_func.pxi":8254 + * 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/_func.pxi":8255 + * 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__962, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8255, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 8255, __pyx_L1_error) + + /* "talib/_func.pxi":8254 + * 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/_func.pxi":8256 + * 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 = real.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":8257 + * raise Exception("real has wrong dimensions") + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< + * real_data = real.data + * length = real.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8257, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 8257, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":8256 + * 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 = real.data + */ + } + + /* "talib/_func.pxi":8258 + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data # <<<<<<<<<<<<<< + * length = real.shape[0] + * begidx = 0 + */ + __pyx_v_real_data = ((double *)__pyx_v_real->data); + + /* "talib/_func.pxi":8259 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data + * length = real.shape[0] # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_v_length = (__pyx_v_real->dimensions[0]); + + /* "talib/_func.pxi":8260 + * real_data = real.data + * length = real.shape[0] + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = real_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":8261 + * length = real.shape[0] + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = real_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":8262 + * begidx = 0 + * for i from 0 <= i < length: + * val = real_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_real_data[__pyx_v_i]); + + /* "talib/_func.pxi":8263 + * for i from 0 <= i < length: + * val = real_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":8264 + * val = real_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L6_continue; + + /* "talib/_func.pxi":8263 + * for i from 0 <= i < length: + * val = real_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":8265 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":8266 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L7_break; + __pyx_L6_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":8268 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_MAX_Lookback( timeperiod ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__963, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8268, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 8268, __pyx_L1_error) + } + __pyx_L7_break:; + + /* "talib/_func.pxi":8269 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_MAX_Lookback( timeperiod ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":8270 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_MAX_Lookback( timeperiod ) # <<<<<<<<<<<<<< + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_MAX_Lookback(__pyx_v_timeperiod)); + + /* "talib/_func.pxi":8271 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_MAX_Lookback( timeperiod ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8271, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 8271, __pyx_L1_error) + __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":8272 + * lookback = begidx + lib.TA_MAX_Lookback( timeperiod ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + */ + __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); + + /* "talib/_func.pxi":8273 + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outreal_data[i] = NaN + * retCode = lib.TA_MAX( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":8274 + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN # <<<<<<<<<<<<<< + * retCode = lib.TA_MAX( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_MAX", retCode) + */ + (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_8c_ta_lib_NaN; + } + + /* "talib/_func.pxi":8275 + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + * retCode = lib.TA_MAX( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_MAX", retCode) + * return outreal + */ + __pyx_v_retCode = TA_MAX(0, __pyx_v_endidx, ((double *)(__pyx_v_real_data + __pyx_v_begidx)), __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":8276 + * outreal_data[i] = NaN + * retCode = lib.TA_MAX( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_MAX", retCode) # <<<<<<<<<<<<<< + * return outreal + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_MAX, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8276, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":8277 + * retCode = lib.TA_MAX( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_MAX", retCode) + * return outreal # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); + __pyx_r = ((PyObject *)__pyx_v_outreal); + goto __pyx_L0; + + /* "talib/_func.pxi":8230 + * @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.c_ta_lib.MAX", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outreal); + __Pyx_XDECREF((PyObject *)__pyx_v_real); + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "talib/_func.pxi":8281 + * @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_8c_ta_lib_229MAXINDEX(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_228MAXINDEX[] = " 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_8c_ta_lib_229MAXINDEX = {"MAXINDEX", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_229MAXINDEX, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_228MAXINDEX}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_229MAXINDEX(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(2, 8281, __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(2, 8281, __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(2, 8281, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 8281, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_228MAXINDEX(__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_8c_ta_lib_228MAXINDEX(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod) { + npy_intp __pyx_v_length; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + TA_RetCode __pyx_v_retCode; + double *__pyx_v_real_data; + int __pyx_v_outbegidx; + int __pyx_v_outnbelement; + PyArrayObject *__pyx_v_outinteger = 0; + int *__pyx_v_outinteger_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __Pyx_RefNannySetupContext("MAXINDEX", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real); + + /* "talib/_func.pxi":8303 + * np.ndarray outinteger + * int* outinteger_data + * 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/_func.pxi":8304 + * int* outinteger_data + * 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(2, 8304, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 8304, __pyx_L1_error) + + /* "talib/_func.pxi":8303 + * np.ndarray outinteger + * int* outinteger_data + * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real is not double") + * if real.ndim != 1: + */ + } + + /* "talib/_func.pxi":8305 + * 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/_func.pxi":8306 + * 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(2, 8306, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 8306, __pyx_L1_error) + + /* "talib/_func.pxi":8305 + * 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/_func.pxi":8307 + * 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 = real.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":8308 + * raise Exception("real has wrong dimensions") + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< + * real_data = real.data + * length = real.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8308, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 8308, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":8307 + * 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 = real.data + */ + } + + /* "talib/_func.pxi":8309 + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data # <<<<<<<<<<<<<< + * length = real.shape[0] + * begidx = 0 + */ + __pyx_v_real_data = ((double *)__pyx_v_real->data); + + /* "talib/_func.pxi":8310 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data + * length = real.shape[0] # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_v_length = (__pyx_v_real->dimensions[0]); + + /* "talib/_func.pxi":8311 + * real_data = real.data + * length = real.shape[0] + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = real_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":8312 + * length = real.shape[0] + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = real_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":8313 + * begidx = 0 + * for i from 0 <= i < length: + * val = real_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_real_data[__pyx_v_i]); + + /* "talib/_func.pxi":8314 + * for i from 0 <= i < length: + * val = real_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":8315 + * val = real_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L6_continue; + + /* "talib/_func.pxi":8314 + * for i from 0 <= i < length: + * val = real_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":8316 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":8317 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L7_break; + __pyx_L6_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":8319 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_MAXINDEX_Lookback( timeperiod ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__966, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8319, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 8319, __pyx_L1_error) + } + __pyx_L7_break:; + + /* "talib/_func.pxi":8320 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_MAXINDEX_Lookback( timeperiod ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":8321 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_MAXINDEX_Lookback( timeperiod ) # <<<<<<<<<<<<<< + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_MAXINDEX_Lookback(__pyx_v_timeperiod)); + + /* "talib/_func.pxi":8322 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_MAXINDEX_Lookback( timeperiod ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8322, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 8322, __pyx_L1_error) + __pyx_v_outinteger = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":8323 + * lookback = begidx + lib.TA_MAXINDEX_Lookback( timeperiod ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 + */ + __pyx_v_outinteger_data = ((int *)__pyx_v_outinteger->data); + + /* "talib/_func.pxi":8324 + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outinteger_data[i] = 0 + * retCode = lib.TA_MAXINDEX( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":8325 + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 # <<<<<<<<<<<<<< + * retCode = lib.TA_MAXINDEX( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_MAXINDEX", retCode) + */ + (__pyx_v_outinteger_data[__pyx_v_i]) = 0; + } + + /* "talib/_func.pxi":8326 + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 + * retCode = lib.TA_MAXINDEX( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outinteger_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_MAXINDEX", retCode) + * return outinteger + */ + __pyx_v_retCode = TA_MAXINDEX(0, __pyx_v_endidx, ((double *)(__pyx_v_real_data + __pyx_v_begidx)), __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outinteger_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":8327 + * outinteger_data[i] = 0 + * retCode = lib.TA_MAXINDEX( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_MAXINDEX", retCode) # <<<<<<<<<<<<<< + * return outinteger + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_MAXINDEX, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8327, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":8328 + * retCode = lib.TA_MAXINDEX( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_MAXINDEX", retCode) + * return outinteger # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outinteger)); + __pyx_r = ((PyObject *)__pyx_v_outinteger); + goto __pyx_L0; + + /* "talib/_func.pxi":8281 + * @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.c_ta_lib.MAXINDEX", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outinteger); + __Pyx_XDECREF((PyObject *)__pyx_v_real); + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "talib/_func.pxi":8332 + * @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_8c_ta_lib_231MEDPRICE(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_230MEDPRICE[] = " 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_8c_ta_lib_231MEDPRICE = {"MEDPRICE", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_231MEDPRICE, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_230MEDPRICE}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_231MEDPRICE(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(2, 8332, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "MEDPRICE") < 0)) __PYX_ERR(2, 8332, __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(2, 8332, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 8332, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(2, 8332, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_230MEDPRICE(__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_8c_ta_lib_230MEDPRICE(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low) { + npy_intp __pyx_v_length; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + TA_RetCode __pyx_v_retCode; + double *__pyx_v_high_data; + double *__pyx_v_low_data; + int __pyx_v_outbegidx; + int __pyx_v_outnbelement; + PyArrayObject *__pyx_v_outreal = 0; + double *__pyx_v_outreal_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __Pyx_RefNannySetupContext("MEDPRICE", 0); + __Pyx_INCREF((PyObject *)__pyx_v_high); + __Pyx_INCREF((PyObject *)__pyx_v_low); + + /* "talib/_func.pxi":8353 + * np.ndarray outreal + * double* outreal_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/_func.pxi":8354 + * double* outreal_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__967, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8354, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 8354, __pyx_L1_error) + + /* "talib/_func.pxi":8353 + * np.ndarray outreal + * double* outreal_data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_func.pxi":8355 + * 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/_func.pxi":8356 + * raise 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__968, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8356, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 8356, __pyx_L1_error) + + /* "talib/_func.pxi":8355 + * 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/_func.pxi":8357 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":8358 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8358, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 8358, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":8357 + * 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 = high.data + */ + } + + /* "talib/_func.pxi":8359 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":8360 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":8361 + * high_data = 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__969, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8361, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 8361, __pyx_L1_error) + + /* "talib/_func.pxi":8360 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_func.pxi":8362 + * 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/_func.pxi":8363 + * raise 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__970, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8363, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 8363, __pyx_L1_error) + + /* "talib/_func.pxi":8362 + * 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/_func.pxi":8364 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":8365 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * length = high.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8365, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 8365, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":8364 + * 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 = low.data + */ + } + + /* "talib/_func.pxi":8366 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data # <<<<<<<<<<<<<< + * length = high.shape[0] + * if length != low.shape[0]: + */ + __pyx_v_low_data = ((double *)__pyx_v_low->data); + + /* "talib/_func.pxi":8367 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":8368 + * low_data = low.data + * length = high.shape[0] + * if length != low.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + __pyx_t_1 = ((__pyx_v_length != (__pyx_v_low->dimensions[0])) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":8369 + * length = high.shape[0] + * if length != low.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__971, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8369, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 8369, __pyx_L1_error) + + /* "talib/_func.pxi":8368 + * low_data = low.data + * length = high.shape[0] + * if length != low.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + } + + /* "talib/_func.pxi":8370 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = high_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":8371 + * raise Exception("input lengths are different") + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = high_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":8372 + * begidx = 0 + * for i from 0 <= i < length: + * val = high_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); + + /* "talib/_func.pxi":8373 + * for i from 0 <= i < length: + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":8374 + * val = high_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = low_data[i] + * if val != val: + */ + goto __pyx_L10_continue; + + /* "talib/_func.pxi":8373 + * for i from 0 <= i < length: + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + } + + /* "talib/_func.pxi":8375 + * if val != val: + * continue + * val = low_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); + + /* "talib/_func.pxi":8376 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":8377 + * val = low_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L10_continue; + + /* "talib/_func.pxi":8376 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":8378 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":8379 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L11_break; + __pyx_L10_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":8381 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_MEDPRICE_Lookback( ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__972, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8381, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 8381, __pyx_L1_error) + } + __pyx_L11_break:; + + /* "talib/_func.pxi":8382 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_MEDPRICE_Lookback( ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":8383 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_MEDPRICE_Lookback( ) # <<<<<<<<<<<<<< + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_MEDPRICE_Lookback()); + + /* "talib/_func.pxi":8384 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_MEDPRICE_Lookback( ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8384, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 8384, __pyx_L1_error) + __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":8385 + * lookback = begidx + lib.TA_MEDPRICE_Lookback( ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + */ + __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); + + /* "talib/_func.pxi":8386 + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outreal_data[i] = NaN + * retCode = lib.TA_MEDPRICE( 0 , endidx , (high_data+begidx) , (low_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":8387 + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN # <<<<<<<<<<<<<< + * retCode = lib.TA_MEDPRICE( 0 , endidx , (high_data+begidx) , (low_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_MEDPRICE", retCode) + */ + (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_8c_ta_lib_NaN; + } + + /* "talib/_func.pxi":8388 + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + * retCode = lib.TA_MEDPRICE( 0 , endidx , (high_data+begidx) , (low_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_MEDPRICE", retCode) + * return outreal + */ + __pyx_v_retCode = TA_MEDPRICE(0, __pyx_v_endidx, ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":8389 + * outreal_data[i] = NaN + * retCode = lib.TA_MEDPRICE( 0 , endidx , (high_data+begidx) , (low_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_MEDPRICE", retCode) # <<<<<<<<<<<<<< + * return outreal + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_MEDPRICE, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8389, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":8390 + * retCode = lib.TA_MEDPRICE( 0 , endidx , (high_data+begidx) , (low_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_MEDPRICE", retCode) + * return outreal # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); + __pyx_r = ((PyObject *)__pyx_v_outreal); + goto __pyx_L0; + + /* "talib/_func.pxi":8332 + * @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.c_ta_lib.MEDPRICE", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outreal); + __Pyx_XDECREF((PyObject *)__pyx_v_high); + __Pyx_XDECREF((PyObject *)__pyx_v_low); + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "talib/_func.pxi":8394 + * @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_8c_ta_lib_233MFI(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_232MFI[] = " 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_8c_ta_lib_233MFI = {"MFI", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_233MFI, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_232MFI}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_233MFI(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(2, 8394, __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(2, 8394, __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(2, 8394, __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(2, 8394, __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(2, 8394, __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(2, 8394, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 8394, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(2, 8394, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(2, 8394, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_volume), __pyx_ptype_5numpy_ndarray, 0, "volume", 0))) __PYX_ERR(2, 8394, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_232MFI(__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_8c_ta_lib_232MFI(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; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + 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; + PyArrayObject *__pyx_v_outreal = 0; + double *__pyx_v_outreal_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __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/_func.pxi":8419 + * np.ndarray outreal + * double* outreal_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/_func.pxi":8420 + * double* outreal_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__973, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8420, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 8420, __pyx_L1_error) + + /* "talib/_func.pxi":8419 + * np.ndarray outreal + * double* outreal_data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_func.pxi":8421 + * 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/_func.pxi":8422 + * raise 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__974, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8422, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 8422, __pyx_L1_error) + + /* "talib/_func.pxi":8421 + * 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/_func.pxi":8423 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":8424 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8424, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 8424, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":8423 + * 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 = high.data + */ + } + + /* "talib/_func.pxi":8425 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":8426 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":8427 + * high_data = 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__975, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8427, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 8427, __pyx_L1_error) + + /* "talib/_func.pxi":8426 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_func.pxi":8428 + * 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/_func.pxi":8429 + * raise 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__976, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8429, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 8429, __pyx_L1_error) + + /* "talib/_func.pxi":8428 + * 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/_func.pxi":8430 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":8431 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8431, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 8431, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":8430 + * 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 = low.data + */ + } + + /* "talib/_func.pxi":8432 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":8433 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":8434 + * low_data = 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__977, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8434, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 8434, __pyx_L1_error) + + /* "talib/_func.pxi":8433 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_func.pxi":8435 + * 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/_func.pxi":8436 + * raise 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__978, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8436, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 8436, __pyx_L1_error) + + /* "talib/_func.pxi":8435 + * 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/_func.pxi":8437 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":8438 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * if PyArray_TYPE(volume) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8438, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 8438, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":8437 + * 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 = close.data + */ + } + + /* "talib/_func.pxi":8439 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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/_func.pxi":8440 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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/_func.pxi":8441 + * close_data = 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__979, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8441, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 8441, __pyx_L1_error) + + /* "talib/_func.pxi":8440 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data + * if PyArray_TYPE(volume) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("volume is not double") + * if volume.ndim != 1: + */ + } + + /* "talib/_func.pxi":8442 + * 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/_func.pxi":8443 + * 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__980, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8443, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 8443, __pyx_L1_error) + + /* "talib/_func.pxi":8442 + * 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/_func.pxi":8444 + * 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 = volume.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_volume) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":8445 + * raise Exception("volume has wrong dimensions") + * if not (PyArray_FLAGS(volume) & np.NPY_C_CONTIGUOUS): + * volume = PyArray_GETCONTIGUOUS(volume) # <<<<<<<<<<<<<< + * volume_data = volume.data + * length = high.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_volume); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8445, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 8445, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_volume, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":8444 + * 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 = volume.data + */ + } + + /* "talib/_func.pxi":8446 + * if not (PyArray_FLAGS(volume) & np.NPY_C_CONTIGUOUS): + * volume = PyArray_GETCONTIGUOUS(volume) + * volume_data = volume.data # <<<<<<<<<<<<<< + * length = high.shape[0] + * if length != low.shape[0]: + */ + __pyx_v_volume_data = ((double *)__pyx_v_volume->data); + + /* "talib/_func.pxi":8447 + * volume = PyArray_GETCONTIGUOUS(volume) + * volume_data = 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/_func.pxi":8448 + * volume_data = 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/_func.pxi":8449 + * 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__981, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8449, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 8449, __pyx_L1_error) + + /* "talib/_func.pxi":8448 + * volume_data = volume.data + * length = high.shape[0] + * if length != low.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != close.shape[0]: + */ + } + + /* "talib/_func.pxi":8450 + * 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/_func.pxi":8451 + * 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__982, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8451, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 8451, __pyx_L1_error) + + /* "talib/_func.pxi":8450 + * 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/_func.pxi":8452 + * if length != close.shape[0]: + * raise Exception("input lengths are different") + * if length != volume.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + __pyx_t_1 = ((__pyx_v_length != (__pyx_v_volume->dimensions[0])) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":8453 + * raise Exception("input lengths are different") + * if length != volume.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__983, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8453, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 8453, __pyx_L1_error) + + /* "talib/_func.pxi":8452 + * if length != close.shape[0]: + * raise Exception("input lengths are different") + * if length != volume.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + } + + /* "talib/_func.pxi":8454 + * if length != volume.shape[0]: + * raise Exception("input lengths are different") + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = high_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":8455 + * raise Exception("input lengths are different") + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = high_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":8456 + * begidx = 0 + * for i from 0 <= i < length: + * val = high_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); + + /* "talib/_func.pxi":8457 + * for i from 0 <= i < length: + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":8458 + * val = high_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = low_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":8457 + * for i from 0 <= i < length: + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + } + + /* "talib/_func.pxi":8459 + * if val != val: + * continue + * val = low_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); + + /* "talib/_func.pxi":8460 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":8461 + * val = low_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = close_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":8460 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + } + + /* "talib/_func.pxi":8462 + * if val != val: + * continue + * val = close_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); + + /* "talib/_func.pxi":8463 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = volume_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":8464 + * val = close_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = volume_data[i] + * if val != val: + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":8463 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = volume_data[i] + */ + } + + /* "talib/_func.pxi":8465 + * if val != val: + * continue + * val = volume_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_volume_data[__pyx_v_i]); + + /* "talib/_func.pxi":8466 + * continue + * val = volume_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":8467 + * val = volume_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L18_continue; + + /* "talib/_func.pxi":8466 + * continue + * val = volume_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":8468 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":8469 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L19_break; + __pyx_L18_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":8471 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_MFI_Lookback( timeperiod ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__984, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8471, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 8471, __pyx_L1_error) + } + __pyx_L19_break:; + + /* "talib/_func.pxi":8472 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_MFI_Lookback( timeperiod ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":8473 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_MFI_Lookback( timeperiod ) # <<<<<<<<<<<<<< + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_MFI_Lookback(__pyx_v_timeperiod)); + + /* "talib/_func.pxi":8474 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_MFI_Lookback( timeperiod ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8474, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 8474, __pyx_L1_error) + __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":8475 + * lookback = begidx + lib.TA_MFI_Lookback( timeperiod ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + */ + __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); + + /* "talib/_func.pxi":8476 + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outreal_data[i] = NaN + * retCode = lib.TA_MFI( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , (volume_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":8477 + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN # <<<<<<<<<<<<<< + * retCode = lib.TA_MFI( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , (volume_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_MFI", retCode) + */ + (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_8c_ta_lib_NaN; + } + + /* "talib/_func.pxi":8478 + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + * retCode = lib.TA_MFI( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , (volume_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_MFI", retCode) + * return outreal + */ + __pyx_v_retCode = TA_MFI(0, __pyx_v_endidx, ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), ((double *)(__pyx_v_volume_data + __pyx_v_begidx)), __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":8479 + * outreal_data[i] = NaN + * retCode = lib.TA_MFI( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , (volume_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_MFI", retCode) # <<<<<<<<<<<<<< + * return outreal + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_MFI, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8479, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":8480 + * retCode = lib.TA_MFI( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , (volume_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_MFI", retCode) + * return outreal # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); + __pyx_r = ((PyObject *)__pyx_v_outreal); + goto __pyx_L0; + + /* "talib/_func.pxi":8394 + * @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.c_ta_lib.MFI", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outreal); + __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/_func.pxi":8484 + * @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_8c_ta_lib_235MIDPOINT(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_234MIDPOINT[] = " 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_8c_ta_lib_235MIDPOINT = {"MIDPOINT", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_235MIDPOINT, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_234MIDPOINT}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_235MIDPOINT(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(2, 8484, __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(2, 8484, __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(2, 8484, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 8484, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_234MIDPOINT(__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_8c_ta_lib_234MIDPOINT(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod) { + npy_intp __pyx_v_length; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + TA_RetCode __pyx_v_retCode; + double *__pyx_v_real_data; + int __pyx_v_outbegidx; + int __pyx_v_outnbelement; + PyArrayObject *__pyx_v_outreal = 0; + double *__pyx_v_outreal_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __Pyx_RefNannySetupContext("MIDPOINT", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real); + + /* "talib/_func.pxi":8506 + * np.ndarray outreal + * double* outreal_data + * 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/_func.pxi":8507 + * double* outreal_data + * 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__985, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8507, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 8507, __pyx_L1_error) + + /* "talib/_func.pxi":8506 + * np.ndarray outreal + * double* outreal_data + * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real is not double") + * if real.ndim != 1: + */ + } + + /* "talib/_func.pxi":8508 + * 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/_func.pxi":8509 + * 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__986, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8509, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 8509, __pyx_L1_error) + + /* "talib/_func.pxi":8508 + * 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/_func.pxi":8510 + * 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 = real.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":8511 + * raise Exception("real has wrong dimensions") + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< + * real_data = real.data + * length = real.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8511, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 8511, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":8510 + * 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 = real.data + */ + } + + /* "talib/_func.pxi":8512 + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data # <<<<<<<<<<<<<< + * length = real.shape[0] + * begidx = 0 + */ + __pyx_v_real_data = ((double *)__pyx_v_real->data); + + /* "talib/_func.pxi":8513 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data + * length = real.shape[0] # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_v_length = (__pyx_v_real->dimensions[0]); + + /* "talib/_func.pxi":8514 + * real_data = real.data + * length = real.shape[0] + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = real_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":8515 + * length = real.shape[0] + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = real_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":8516 + * begidx = 0 + * for i from 0 <= i < length: + * val = real_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_real_data[__pyx_v_i]); + + /* "talib/_func.pxi":8517 + * for i from 0 <= i < length: + * val = real_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":8518 + * val = real_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L6_continue; + + /* "talib/_func.pxi":8517 + * for i from 0 <= i < length: + * val = real_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":8519 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":8520 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L7_break; + __pyx_L6_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":8522 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_MIDPOINT_Lookback( timeperiod ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__987, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8522, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 8522, __pyx_L1_error) + } + __pyx_L7_break:; + + /* "talib/_func.pxi":8523 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_MIDPOINT_Lookback( timeperiod ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":8524 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_MIDPOINT_Lookback( timeperiod ) # <<<<<<<<<<<<<< + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_MIDPOINT_Lookback(__pyx_v_timeperiod)); + + /* "talib/_func.pxi":8525 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_MIDPOINT_Lookback( timeperiod ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8525, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 8525, __pyx_L1_error) + __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":8526 + * lookback = begidx + lib.TA_MIDPOINT_Lookback( timeperiod ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + */ + __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); + + /* "talib/_func.pxi":8527 + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outreal_data[i] = NaN + * retCode = lib.TA_MIDPOINT( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":8528 + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN # <<<<<<<<<<<<<< + * retCode = lib.TA_MIDPOINT( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_MIDPOINT", retCode) + */ + (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_8c_ta_lib_NaN; + } + + /* "talib/_func.pxi":8529 + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + * retCode = lib.TA_MIDPOINT( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_MIDPOINT", retCode) + * return outreal + */ + __pyx_v_retCode = TA_MIDPOINT(0, __pyx_v_endidx, ((double *)(__pyx_v_real_data + __pyx_v_begidx)), __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":8530 + * outreal_data[i] = NaN + * retCode = lib.TA_MIDPOINT( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_MIDPOINT", retCode) # <<<<<<<<<<<<<< + * return outreal + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_MIDPOINT, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8530, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":8531 + * retCode = lib.TA_MIDPOINT( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_MIDPOINT", retCode) + * return outreal # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); + __pyx_r = ((PyObject *)__pyx_v_outreal); + goto __pyx_L0; + + /* "talib/_func.pxi":8484 + * @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.c_ta_lib.MIDPOINT", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outreal); + __Pyx_XDECREF((PyObject *)__pyx_v_real); + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "talib/_func.pxi":8535 + * @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_8c_ta_lib_237MIDPRICE(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_236MIDPRICE[] = " 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_8c_ta_lib_237MIDPRICE = {"MIDPRICE", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_237MIDPRICE, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_236MIDPRICE}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_237MIDPRICE(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(2, 8535, __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(2, 8535, __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(2, 8535, __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(2, 8535, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 8535, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(2, 8535, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_236MIDPRICE(__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_8c_ta_lib_236MIDPRICE(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, int __pyx_v_timeperiod) { + npy_intp __pyx_v_length; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + TA_RetCode __pyx_v_retCode; + double *__pyx_v_high_data; + double *__pyx_v_low_data; + int __pyx_v_outbegidx; + int __pyx_v_outnbelement; + PyArrayObject *__pyx_v_outreal = 0; + double *__pyx_v_outreal_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __Pyx_RefNannySetupContext("MIDPRICE", 0); + __Pyx_INCREF((PyObject *)__pyx_v_high); + __Pyx_INCREF((PyObject *)__pyx_v_low); + + /* "talib/_func.pxi":8558 + * np.ndarray outreal + * double* outreal_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/_func.pxi":8559 + * double* outreal_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__988, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8559, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 8559, __pyx_L1_error) + + /* "talib/_func.pxi":8558 + * np.ndarray outreal + * double* outreal_data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_func.pxi":8560 + * 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/_func.pxi":8561 + * raise 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__989, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8561, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 8561, __pyx_L1_error) + + /* "talib/_func.pxi":8560 + * 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/_func.pxi":8562 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":8563 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8563, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 8563, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":8562 + * 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 = high.data + */ + } + + /* "talib/_func.pxi":8564 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":8565 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":8566 + * high_data = 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__990, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8566, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 8566, __pyx_L1_error) + + /* "talib/_func.pxi":8565 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_func.pxi":8567 + * 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/_func.pxi":8568 + * raise 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__991, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8568, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 8568, __pyx_L1_error) + + /* "talib/_func.pxi":8567 + * 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/_func.pxi":8569 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":8570 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * length = high.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8570, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 8570, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":8569 + * 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 = low.data + */ + } + + /* "talib/_func.pxi":8571 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data # <<<<<<<<<<<<<< + * length = high.shape[0] + * if length != low.shape[0]: + */ + __pyx_v_low_data = ((double *)__pyx_v_low->data); + + /* "talib/_func.pxi":8572 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":8573 + * low_data = low.data + * length = high.shape[0] + * if length != low.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + __pyx_t_1 = ((__pyx_v_length != (__pyx_v_low->dimensions[0])) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":8574 + * length = high.shape[0] + * if length != low.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__992, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8574, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 8574, __pyx_L1_error) + + /* "talib/_func.pxi":8573 + * low_data = low.data + * length = high.shape[0] + * if length != low.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + } + + /* "talib/_func.pxi":8575 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = high_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":8576 + * raise Exception("input lengths are different") + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = high_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":8577 + * begidx = 0 + * for i from 0 <= i < length: + * val = high_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); + + /* "talib/_func.pxi":8578 + * for i from 0 <= i < length: + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":8579 + * val = high_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = low_data[i] + * if val != val: + */ + goto __pyx_L10_continue; + + /* "talib/_func.pxi":8578 + * for i from 0 <= i < length: + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + } + + /* "talib/_func.pxi":8580 + * if val != val: + * continue + * val = low_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); + + /* "talib/_func.pxi":8581 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":8582 + * val = low_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L10_continue; + + /* "talib/_func.pxi":8581 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":8583 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":8584 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L11_break; + __pyx_L10_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":8586 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_MIDPRICE_Lookback( timeperiod ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__993, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8586, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 8586, __pyx_L1_error) + } + __pyx_L11_break:; + + /* "talib/_func.pxi":8587 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_MIDPRICE_Lookback( timeperiod ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":8588 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_MIDPRICE_Lookback( timeperiod ) # <<<<<<<<<<<<<< + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_MIDPRICE_Lookback(__pyx_v_timeperiod)); + + /* "talib/_func.pxi":8589 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_MIDPRICE_Lookback( timeperiod ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8589, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 8589, __pyx_L1_error) + __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":8590 + * lookback = begidx + lib.TA_MIDPRICE_Lookback( timeperiod ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + */ + __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); + + /* "talib/_func.pxi":8591 + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outreal_data[i] = NaN + * retCode = lib.TA_MIDPRICE( 0 , endidx , (high_data+begidx) , (low_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":8592 + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN # <<<<<<<<<<<<<< + * retCode = lib.TA_MIDPRICE( 0 , endidx , (high_data+begidx) , (low_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_MIDPRICE", retCode) + */ + (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_8c_ta_lib_NaN; + } + + /* "talib/_func.pxi":8593 + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + * retCode = lib.TA_MIDPRICE( 0 , endidx , (high_data+begidx) , (low_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_MIDPRICE", retCode) + * return outreal + */ + __pyx_v_retCode = TA_MIDPRICE(0, __pyx_v_endidx, ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":8594 + * outreal_data[i] = NaN + * retCode = lib.TA_MIDPRICE( 0 , endidx , (high_data+begidx) , (low_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_MIDPRICE", retCode) # <<<<<<<<<<<<<< + * return outreal + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_MIDPRICE, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8594, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":8595 + * retCode = lib.TA_MIDPRICE( 0 , endidx , (high_data+begidx) , (low_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_MIDPRICE", retCode) + * return outreal # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); + __pyx_r = ((PyObject *)__pyx_v_outreal); + goto __pyx_L0; + + /* "talib/_func.pxi":8535 + * @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.c_ta_lib.MIDPRICE", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outreal); + __Pyx_XDECREF((PyObject *)__pyx_v_high); + __Pyx_XDECREF((PyObject *)__pyx_v_low); + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "talib/_func.pxi":8599 + * @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_8c_ta_lib_239MIN(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_238MIN[] = " 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_8c_ta_lib_239MIN = {"MIN", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_239MIN, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_238MIN}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_239MIN(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(2, 8599, __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(2, 8599, __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(2, 8599, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 8599, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_238MIN(__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_8c_ta_lib_238MIN(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod) { + npy_intp __pyx_v_length; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + TA_RetCode __pyx_v_retCode; + double *__pyx_v_real_data; + int __pyx_v_outbegidx; + int __pyx_v_outnbelement; + PyArrayObject *__pyx_v_outreal = 0; + double *__pyx_v_outreal_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __Pyx_RefNannySetupContext("MIN", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real); + + /* "talib/_func.pxi":8621 + * np.ndarray outreal + * double* outreal_data + * 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/_func.pxi":8622 + * double* outreal_data + * 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__994, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8622, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 8622, __pyx_L1_error) + + /* "talib/_func.pxi":8621 + * np.ndarray outreal + * double* outreal_data + * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real is not double") + * if real.ndim != 1: + */ + } + + /* "talib/_func.pxi":8623 + * 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/_func.pxi":8624 + * 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__995, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8624, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 8624, __pyx_L1_error) + + /* "talib/_func.pxi":8623 + * 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/_func.pxi":8625 + * 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 = real.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":8626 + * raise Exception("real has wrong dimensions") + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< + * real_data = real.data + * length = real.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8626, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 8626, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":8625 + * 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 = real.data + */ + } + + /* "talib/_func.pxi":8627 + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data # <<<<<<<<<<<<<< + * length = real.shape[0] + * begidx = 0 + */ + __pyx_v_real_data = ((double *)__pyx_v_real->data); + + /* "talib/_func.pxi":8628 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data + * length = real.shape[0] # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_v_length = (__pyx_v_real->dimensions[0]); + + /* "talib/_func.pxi":8629 + * real_data = real.data + * length = real.shape[0] + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = real_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":8630 + * length = real.shape[0] + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = real_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":8631 + * begidx = 0 + * for i from 0 <= i < length: + * val = real_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_real_data[__pyx_v_i]); + + /* "talib/_func.pxi":8632 + * for i from 0 <= i < length: + * val = real_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":8633 + * val = real_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L6_continue; + + /* "talib/_func.pxi":8632 + * for i from 0 <= i < length: + * val = real_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":8634 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":8635 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L7_break; + __pyx_L6_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":8637 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_MIN_Lookback( timeperiod ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__996, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8637, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 8637, __pyx_L1_error) + } + __pyx_L7_break:; + + /* "talib/_func.pxi":8638 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_MIN_Lookback( timeperiod ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":8639 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_MIN_Lookback( timeperiod ) # <<<<<<<<<<<<<< + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_MIN_Lookback(__pyx_v_timeperiod)); + + /* "talib/_func.pxi":8640 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_MIN_Lookback( timeperiod ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8640, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 8640, __pyx_L1_error) + __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":8641 + * lookback = begidx + lib.TA_MIN_Lookback( timeperiod ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + */ + __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); + + /* "talib/_func.pxi":8642 + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outreal_data[i] = NaN + * retCode = lib.TA_MIN( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":8643 + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN # <<<<<<<<<<<<<< + * retCode = lib.TA_MIN( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_MIN", retCode) + */ + (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_8c_ta_lib_NaN; + } + + /* "talib/_func.pxi":8644 + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + * retCode = lib.TA_MIN( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_MIN", retCode) + * return outreal + */ + __pyx_v_retCode = TA_MIN(0, __pyx_v_endidx, ((double *)(__pyx_v_real_data + __pyx_v_begidx)), __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":8645 + * outreal_data[i] = NaN + * retCode = lib.TA_MIN( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_MIN", retCode) # <<<<<<<<<<<<<< + * return outreal + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_MIN, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8645, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":8646 + * retCode = lib.TA_MIN( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_MIN", retCode) + * return outreal # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); + __pyx_r = ((PyObject *)__pyx_v_outreal); + goto __pyx_L0; + + /* "talib/_func.pxi":8599 + * @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.c_ta_lib.MIN", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outreal); + __Pyx_XDECREF((PyObject *)__pyx_v_real); + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "talib/_func.pxi":8650 + * @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_8c_ta_lib_241MININDEX(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_240MININDEX[] = " 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_8c_ta_lib_241MININDEX = {"MININDEX", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_241MININDEX, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_240MININDEX}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_241MININDEX(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(2, 8650, __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(2, 8650, __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(2, 8650, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 8650, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_240MININDEX(__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_8c_ta_lib_240MININDEX(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod) { + npy_intp __pyx_v_length; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + TA_RetCode __pyx_v_retCode; + double *__pyx_v_real_data; + int __pyx_v_outbegidx; + int __pyx_v_outnbelement; + PyArrayObject *__pyx_v_outinteger = 0; + int *__pyx_v_outinteger_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __Pyx_RefNannySetupContext("MININDEX", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real); + + /* "talib/_func.pxi":8672 + * np.ndarray outinteger + * int* outinteger_data + * 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/_func.pxi":8673 + * int* outinteger_data + * 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(2, 8673, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 8673, __pyx_L1_error) + + /* "talib/_func.pxi":8672 + * np.ndarray outinteger + * int* outinteger_data + * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real is not double") + * if real.ndim != 1: + */ + } + + /* "talib/_func.pxi":8674 + * 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/_func.pxi":8675 + * 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(2, 8675, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 8675, __pyx_L1_error) + + /* "talib/_func.pxi":8674 + * 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/_func.pxi":8676 + * 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 = real.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":8677 + * raise Exception("real has wrong dimensions") + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< + * real_data = real.data + * length = real.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8677, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 8677, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":8676 + * 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 = real.data + */ + } + + /* "talib/_func.pxi":8678 + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data # <<<<<<<<<<<<<< + * length = real.shape[0] + * begidx = 0 + */ + __pyx_v_real_data = ((double *)__pyx_v_real->data); + + /* "talib/_func.pxi":8679 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data + * length = real.shape[0] # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_v_length = (__pyx_v_real->dimensions[0]); + + /* "talib/_func.pxi":8680 + * real_data = real.data + * length = real.shape[0] + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = real_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":8681 + * length = real.shape[0] + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = real_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":8682 + * begidx = 0 + * for i from 0 <= i < length: + * val = real_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_real_data[__pyx_v_i]); + + /* "talib/_func.pxi":8683 + * for i from 0 <= i < length: + * val = real_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":8684 + * val = real_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L6_continue; + + /* "talib/_func.pxi":8683 + * for i from 0 <= i < length: + * val = real_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":8685 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":8686 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L7_break; + __pyx_L6_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":8688 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_MININDEX_Lookback( timeperiod ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__999, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8688, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 8688, __pyx_L1_error) + } + __pyx_L7_break:; + + /* "talib/_func.pxi":8689 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_MININDEX_Lookback( timeperiod ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":8690 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_MININDEX_Lookback( timeperiod ) # <<<<<<<<<<<<<< + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_MININDEX_Lookback(__pyx_v_timeperiod)); + + /* "talib/_func.pxi":8691 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_MININDEX_Lookback( timeperiod ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8691, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 8691, __pyx_L1_error) + __pyx_v_outinteger = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":8692 + * lookback = begidx + lib.TA_MININDEX_Lookback( timeperiod ) + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 + */ + __pyx_v_outinteger_data = ((int *)__pyx_v_outinteger->data); + + /* "talib/_func.pxi":8693 + * outinteger = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outinteger_data[i] = 0 + * retCode = lib.TA_MININDEX( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":8694 + * outinteger_data = outinteger.data + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 # <<<<<<<<<<<<<< + * retCode = lib.TA_MININDEX( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_MININDEX", retCode) + */ + (__pyx_v_outinteger_data[__pyx_v_i]) = 0; + } + + /* "talib/_func.pxi":8695 + * for i from 0 <= i < min(lookback, length): + * outinteger_data[i] = 0 + * retCode = lib.TA_MININDEX( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outinteger_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_MININDEX", retCode) + * return outinteger + */ + __pyx_v_retCode = TA_MININDEX(0, __pyx_v_endidx, ((double *)(__pyx_v_real_data + __pyx_v_begidx)), __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outinteger_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":8696 + * outinteger_data[i] = 0 + * retCode = lib.TA_MININDEX( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_MININDEX", retCode) # <<<<<<<<<<<<<< + * return outinteger + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_MININDEX, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8696, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":8697 + * retCode = lib.TA_MININDEX( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outinteger_data+lookback) ) + * _ta_check_success("TA_MININDEX", retCode) + * return outinteger # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outinteger)); + __pyx_r = ((PyObject *)__pyx_v_outinteger); + goto __pyx_L0; + + /* "talib/_func.pxi":8650 + * @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.c_ta_lib.MININDEX", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outinteger); + __Pyx_XDECREF((PyObject *)__pyx_v_real); + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "talib/_func.pxi":8701 + * @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_8c_ta_lib_243MINMAX(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_242MINMAX[] = " 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_8c_ta_lib_243MINMAX = {"MINMAX", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_243MINMAX, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_242MINMAX}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_243MINMAX(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(2, 8701, __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(2, 8701, __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(2, 8701, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 8701, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_242MINMAX(__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_8c_ta_lib_242MINMAX(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod) { + npy_intp __pyx_v_length; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + TA_RetCode __pyx_v_retCode; + double *__pyx_v_real_data; + int __pyx_v_outbegidx; + int __pyx_v_outnbelement; + PyArrayObject *__pyx_v_outmin = 0; + double *__pyx_v_outmin_data; + PyArrayObject *__pyx_v_outmax = 0; + double *__pyx_v_outmax_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __Pyx_RefNannySetupContext("MINMAX", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real); + + /* "talib/_func.pxi":8726 + * np.ndarray outmax + * double* outmax_data + * 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/_func.pxi":8727 + * double* outmax_data + * 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__1000, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8727, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 8727, __pyx_L1_error) + + /* "talib/_func.pxi":8726 + * np.ndarray outmax + * double* outmax_data + * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real is not double") + * if real.ndim != 1: + */ + } + + /* "talib/_func.pxi":8728 + * 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/_func.pxi":8729 + * 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__1001, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8729, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 8729, __pyx_L1_error) + + /* "talib/_func.pxi":8728 + * 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/_func.pxi":8730 + * 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 = real.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":8731 + * raise Exception("real has wrong dimensions") + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< + * real_data = real.data + * length = real.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8731, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 8731, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":8730 + * 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 = real.data + */ + } + + /* "talib/_func.pxi":8732 + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data # <<<<<<<<<<<<<< + * length = real.shape[0] + * begidx = 0 + */ + __pyx_v_real_data = ((double *)__pyx_v_real->data); + + /* "talib/_func.pxi":8733 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data + * length = real.shape[0] # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_v_length = (__pyx_v_real->dimensions[0]); + + /* "talib/_func.pxi":8734 + * real_data = real.data + * length = real.shape[0] + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = real_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":8735 + * length = real.shape[0] + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = real_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":8736 + * begidx = 0 + * for i from 0 <= i < length: + * val = real_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_real_data[__pyx_v_i]); + + /* "talib/_func.pxi":8737 + * for i from 0 <= i < length: + * val = real_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":8738 + * val = real_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L6_continue; + + /* "talib/_func.pxi":8737 + * for i from 0 <= i < length: + * val = real_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":8739 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":8740 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L7_break; + __pyx_L6_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":8742 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_MINMAX_Lookback( timeperiod ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1002, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8742, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 8742, __pyx_L1_error) + } + __pyx_L7_break:; + + /* "talib/_func.pxi":8743 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_MINMAX_Lookback( timeperiod ) + * outmin = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":8744 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_MINMAX_Lookback( timeperiod ) # <<<<<<<<<<<<<< + * outmin = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outmin_data = outmin.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_MINMAX_Lookback(__pyx_v_timeperiod)); + + /* "talib/_func.pxi":8745 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_MINMAX_Lookback( timeperiod ) + * outmin = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outmin_data = outmin.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8745, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 8745, __pyx_L1_error) + __pyx_v_outmin = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":8746 + * lookback = begidx + lib.TA_MINMAX_Lookback( timeperiod ) + * outmin = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outmin_data = outmin.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outmin_data[i] = NaN + */ + __pyx_v_outmin_data = ((double *)__pyx_v_outmin->data); + + /* "talib/_func.pxi":8747 + * outmin = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outmin_data = outmin.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outmin_data[i] = NaN + * outmax = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":8748 + * outmin_data = outmin.data + * for i from 0 <= i < min(lookback, length): + * outmin_data[i] = NaN # <<<<<<<<<<<<<< + * outmax = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outmax_data = outmax.data + */ + (__pyx_v_outmin_data[__pyx_v_i]) = __pyx_v_5talib_8c_ta_lib_NaN; + } + + /* "talib/_func.pxi":8749 + * for i from 0 <= i < min(lookback, length): + * outmin_data[i] = NaN + * outmax = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outmax_data = outmax.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8749, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 8749, __pyx_L1_error) + __pyx_v_outmax = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":8750 + * outmin_data[i] = NaN + * outmax = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outmax_data = outmax.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outmax_data[i] = NaN + */ + __pyx_v_outmax_data = ((double *)__pyx_v_outmax->data); + + /* "talib/_func.pxi":8751 + * outmax = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outmax_data = outmax.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outmax_data[i] = NaN + * retCode = lib.TA_MINMAX( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outmin_data+lookback) , (outmax_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":8752 + * outmax_data = outmax.data + * for i from 0 <= i < min(lookback, length): + * outmax_data[i] = NaN # <<<<<<<<<<<<<< + * retCode = lib.TA_MINMAX( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outmin_data+lookback) , (outmax_data+lookback) ) + * _ta_check_success("TA_MINMAX", retCode) + */ + (__pyx_v_outmax_data[__pyx_v_i]) = __pyx_v_5talib_8c_ta_lib_NaN; + } + + /* "talib/_func.pxi":8753 + * for i from 0 <= i < min(lookback, length): + * outmax_data[i] = NaN + * retCode = lib.TA_MINMAX( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outmin_data+lookback) , (outmax_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_MINMAX", retCode) + * return outmin , outmax + */ + __pyx_v_retCode = TA_MINMAX(0, __pyx_v_endidx, ((double *)(__pyx_v_real_data + __pyx_v_begidx)), __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outmin_data + __pyx_v_lookback)), ((double *)(__pyx_v_outmax_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":8754 + * outmax_data[i] = NaN + * retCode = lib.TA_MINMAX( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outmin_data+lookback) , (outmax_data+lookback) ) + * _ta_check_success("TA_MINMAX", retCode) # <<<<<<<<<<<<<< + * return outmin , outmax + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_MINMAX, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8754, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":8755 + * retCode = lib.TA_MINMAX( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outmin_data+lookback) , (outmax_data+lookback) ) + * _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 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8755, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_INCREF(((PyObject *)__pyx_v_outmin)); + __Pyx_GIVEREF(((PyObject *)__pyx_v_outmin)); + PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_v_outmin)); + __Pyx_INCREF(((PyObject *)__pyx_v_outmax)); + __Pyx_GIVEREF(((PyObject *)__pyx_v_outmax)); + PyTuple_SET_ITEM(__pyx_t_2, 1, ((PyObject *)__pyx_v_outmax)); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_func.pxi":8701 + * @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_AddTraceback("talib.c_ta_lib.MINMAX", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outmin); + __Pyx_XDECREF((PyObject *)__pyx_v_outmax); + __Pyx_XDECREF((PyObject *)__pyx_v_real); + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "talib/_func.pxi":8759 + * @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_8c_ta_lib_245MINMAXINDEX(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_244MINMAXINDEX[] = " 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_8c_ta_lib_245MINMAXINDEX = {"MINMAXINDEX", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_245MINMAXINDEX, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_244MINMAXINDEX}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_245MINMAXINDEX(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(2, 8759, __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(2, 8759, __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(2, 8759, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 8759, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_244MINMAXINDEX(__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_8c_ta_lib_244MINMAXINDEX(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod) { + npy_intp __pyx_v_length; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + TA_RetCode __pyx_v_retCode; + double *__pyx_v_real_data; + int __pyx_v_outbegidx; + int __pyx_v_outnbelement; + PyArrayObject *__pyx_v_outminidx = 0; + int *__pyx_v_outminidx_data; + PyArrayObject *__pyx_v_outmaxidx = 0; + int *__pyx_v_outmaxidx_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __Pyx_RefNannySetupContext("MINMAXINDEX", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real); + + /* "talib/_func.pxi":8784 + * np.ndarray outmaxidx + * int* outmaxidx_data + * 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/_func.pxi":8785 + * int* outmaxidx_data + * 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__1003, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8785, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 8785, __pyx_L1_error) + + /* "talib/_func.pxi":8784 + * np.ndarray outmaxidx + * int* outmaxidx_data + * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real is not double") + * if real.ndim != 1: + */ + } + + /* "talib/_func.pxi":8786 + * 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/_func.pxi":8787 + * 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__1004, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8787, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 8787, __pyx_L1_error) + + /* "talib/_func.pxi":8786 + * 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/_func.pxi":8788 + * 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 = real.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":8789 + * raise Exception("real has wrong dimensions") + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< + * real_data = real.data + * length = real.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8789, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 8789, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":8788 + * 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 = real.data + */ + } + + /* "talib/_func.pxi":8790 + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data # <<<<<<<<<<<<<< + * length = real.shape[0] + * begidx = 0 + */ + __pyx_v_real_data = ((double *)__pyx_v_real->data); + + /* "talib/_func.pxi":8791 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data + * length = real.shape[0] # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_v_length = (__pyx_v_real->dimensions[0]); + + /* "talib/_func.pxi":8792 + * real_data = real.data + * length = real.shape[0] + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = real_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":8793 + * length = real.shape[0] + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = real_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":8794 + * begidx = 0 + * for i from 0 <= i < length: + * val = real_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_real_data[__pyx_v_i]); + + /* "talib/_func.pxi":8795 + * for i from 0 <= i < length: + * val = real_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":8796 + * val = real_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L6_continue; + + /* "talib/_func.pxi":8795 + * for i from 0 <= i < length: + * val = real_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":8797 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":8798 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L7_break; + __pyx_L6_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":8800 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_MINMAXINDEX_Lookback( timeperiod ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1005, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8800, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 8800, __pyx_L1_error) + } + __pyx_L7_break:; + + /* "talib/_func.pxi":8801 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_MINMAXINDEX_Lookback( timeperiod ) + * outminidx = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":8802 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_MINMAXINDEX_Lookback( timeperiod ) # <<<<<<<<<<<<<< + * outminidx = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outminidx_data = outminidx.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_MINMAXINDEX_Lookback(__pyx_v_timeperiod)); + + /* "talib/_func.pxi":8803 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_MINMAXINDEX_Lookback( timeperiod ) + * outminidx = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outminidx_data = outminidx.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8803, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 8803, __pyx_L1_error) + __pyx_v_outminidx = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":8804 + * lookback = begidx + lib.TA_MINMAXINDEX_Lookback( timeperiod ) + * outminidx = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outminidx_data = outminidx.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outminidx_data[i] = 0 + */ + __pyx_v_outminidx_data = ((int *)__pyx_v_outminidx->data); + + /* "talib/_func.pxi":8805 + * outminidx = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outminidx_data = outminidx.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outminidx_data[i] = 0 + * outmaxidx = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":8806 + * outminidx_data = outminidx.data + * for i from 0 <= i < min(lookback, length): + * outminidx_data[i] = 0 # <<<<<<<<<<<<<< + * outmaxidx = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outmaxidx_data = outmaxidx.data + */ + (__pyx_v_outminidx_data[__pyx_v_i]) = 0; + } + + /* "talib/_func.pxi":8807 + * for i from 0 <= i < min(lookback, length): + * outminidx_data[i] = 0 + * outmaxidx = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outmaxidx_data = outmaxidx.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_INT32, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8807, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 8807, __pyx_L1_error) + __pyx_v_outmaxidx = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":8808 + * outminidx_data[i] = 0 + * outmaxidx = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outmaxidx_data = outmaxidx.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outmaxidx_data[i] = 0 + */ + __pyx_v_outmaxidx_data = ((int *)__pyx_v_outmaxidx->data); + + /* "talib/_func.pxi":8809 + * outmaxidx = PyArray_EMPTY(1, &length, np.NPY_INT32, np.NPY_DEFAULT) + * outmaxidx_data = outmaxidx.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outmaxidx_data[i] = 0 + * retCode = lib.TA_MINMAXINDEX( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outminidx_data+lookback) , (outmaxidx_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":8810 + * outmaxidx_data = outmaxidx.data + * for i from 0 <= i < min(lookback, length): + * outmaxidx_data[i] = 0 # <<<<<<<<<<<<<< + * retCode = lib.TA_MINMAXINDEX( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outminidx_data+lookback) , (outmaxidx_data+lookback) ) + * _ta_check_success("TA_MINMAXINDEX", retCode) + */ + (__pyx_v_outmaxidx_data[__pyx_v_i]) = 0; + } + + /* "talib/_func.pxi":8811 + * for i from 0 <= i < min(lookback, length): + * outmaxidx_data[i] = 0 + * retCode = lib.TA_MINMAXINDEX( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outminidx_data+lookback) , (outmaxidx_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_MINMAXINDEX", retCode) + * return outminidx , outmaxidx + */ + __pyx_v_retCode = TA_MINMAXINDEX(0, __pyx_v_endidx, ((double *)(__pyx_v_real_data + __pyx_v_begidx)), __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((int *)(__pyx_v_outminidx_data + __pyx_v_lookback)), ((int *)(__pyx_v_outmaxidx_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":8812 + * outmaxidx_data[i] = 0 + * retCode = lib.TA_MINMAXINDEX( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outminidx_data+lookback) , (outmaxidx_data+lookback) ) + * _ta_check_success("TA_MINMAXINDEX", retCode) # <<<<<<<<<<<<<< + * return outminidx , outmaxidx + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_MINMAXINDEX, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8812, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":8813 + * retCode = lib.TA_MINMAXINDEX( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outminidx_data+lookback) , (outmaxidx_data+lookback) ) + * _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 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8813, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_INCREF(((PyObject *)__pyx_v_outminidx)); + __Pyx_GIVEREF(((PyObject *)__pyx_v_outminidx)); + PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_v_outminidx)); + __Pyx_INCREF(((PyObject *)__pyx_v_outmaxidx)); + __Pyx_GIVEREF(((PyObject *)__pyx_v_outmaxidx)); + PyTuple_SET_ITEM(__pyx_t_2, 1, ((PyObject *)__pyx_v_outmaxidx)); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_func.pxi":8759 + * @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_AddTraceback("talib.c_ta_lib.MINMAXINDEX", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outminidx); + __Pyx_XDECREF((PyObject *)__pyx_v_outmaxidx); + __Pyx_XDECREF((PyObject *)__pyx_v_real); + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "talib/_func.pxi":8817 + * @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_8c_ta_lib_247MINUS_DI(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_246MINUS_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_8c_ta_lib_247MINUS_DI = {"MINUS_DI", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_247MINUS_DI, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_246MINUS_DI}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_247MINUS_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(2, 8817, __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(2, 8817, __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(2, 8817, __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(2, 8817, __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(2, 8817, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 8817, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(2, 8817, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(2, 8817, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_246MINUS_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_8c_ta_lib_246MINUS_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; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + 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; + PyArrayObject *__pyx_v_outreal = 0; + double *__pyx_v_outreal_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __Pyx_RefNannySetupContext("MINUS_DI", 0); + __Pyx_INCREF((PyObject *)__pyx_v_high); + __Pyx_INCREF((PyObject *)__pyx_v_low); + __Pyx_INCREF((PyObject *)__pyx_v_close); + + /* "talib/_func.pxi":8841 + * np.ndarray outreal + * double* outreal_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/_func.pxi":8842 + * double* outreal_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__1006, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8842, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 8842, __pyx_L1_error) + + /* "talib/_func.pxi":8841 + * np.ndarray outreal + * double* outreal_data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_func.pxi":8843 + * 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/_func.pxi":8844 + * raise 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__1007, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8844, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 8844, __pyx_L1_error) + + /* "talib/_func.pxi":8843 + * 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/_func.pxi":8845 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":8846 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8846, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 8846, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":8845 + * 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 = high.data + */ + } + + /* "talib/_func.pxi":8847 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":8848 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":8849 + * high_data = 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__1008, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8849, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 8849, __pyx_L1_error) + + /* "talib/_func.pxi":8848 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_func.pxi":8850 + * 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/_func.pxi":8851 + * raise 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__1009, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8851, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 8851, __pyx_L1_error) + + /* "talib/_func.pxi":8850 + * 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/_func.pxi":8852 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":8853 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8853, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 8853, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":8852 + * 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 = low.data + */ + } + + /* "talib/_func.pxi":8854 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":8855 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":8856 + * low_data = 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__1010, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8856, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 8856, __pyx_L1_error) + + /* "talib/_func.pxi":8855 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_func.pxi":8857 + * 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/_func.pxi":8858 + * raise 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__1011, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8858, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 8858, __pyx_L1_error) + + /* "talib/_func.pxi":8857 + * 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/_func.pxi":8859 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":8860 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = high.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8860, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 8860, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":8859 + * 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 = close.data + */ + } + + /* "talib/_func.pxi":8861 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = high.shape[0] + * if length != low.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_func.pxi":8862 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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/_func.pxi":8863 + * close_data = 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/_func.pxi":8864 + * 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__1012, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8864, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 8864, __pyx_L1_error) + + /* "talib/_func.pxi":8863 + * close_data = close.data + * length = high.shape[0] + * if length != low.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != close.shape[0]: + */ + } + + /* "talib/_func.pxi":8865 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":8866 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1013, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8866, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 8866, __pyx_L1_error) + + /* "talib/_func.pxi":8865 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + } + + /* "talib/_func.pxi":8867 + * if length != close.shape[0]: + * raise Exception("input lengths are different") + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = high_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":8868 + * raise Exception("input lengths are different") + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = high_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":8869 + * begidx = 0 + * for i from 0 <= i < length: + * val = high_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); + + /* "talib/_func.pxi":8870 + * for i from 0 <= i < length: + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":8871 + * val = high_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = low_data[i] + * if val != val: + */ + goto __pyx_L14_continue; + + /* "talib/_func.pxi":8870 + * for i from 0 <= i < length: + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + } + + /* "talib/_func.pxi":8872 + * if val != val: + * continue + * val = low_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); + + /* "talib/_func.pxi":8873 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":8874 + * val = low_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = close_data[i] + * if val != val: + */ + goto __pyx_L14_continue; + + /* "talib/_func.pxi":8873 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + } + + /* "talib/_func.pxi":8875 + * if val != val: + * continue + * val = close_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); + + /* "talib/_func.pxi":8876 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":8877 + * val = close_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L14_continue; + + /* "talib/_func.pxi":8876 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":8878 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":8879 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L15_break; + __pyx_L14_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":8881 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_MINUS_DI_Lookback( timeperiod ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1014, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8881, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 8881, __pyx_L1_error) + } + __pyx_L15_break:; + + /* "talib/_func.pxi":8882 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_MINUS_DI_Lookback( timeperiod ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":8883 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_MINUS_DI_Lookback( timeperiod ) # <<<<<<<<<<<<<< + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_MINUS_DI_Lookback(__pyx_v_timeperiod)); + + /* "talib/_func.pxi":8884 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_MINUS_DI_Lookback( timeperiod ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8884, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 8884, __pyx_L1_error) + __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":8885 + * lookback = begidx + lib.TA_MINUS_DI_Lookback( timeperiod ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + */ + __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); + + /* "talib/_func.pxi":8886 + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outreal_data[i] = NaN + * retCode = lib.TA_MINUS_DI( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":8887 + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN # <<<<<<<<<<<<<< + * retCode = lib.TA_MINUS_DI( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_MINUS_DI", retCode) + */ + (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_8c_ta_lib_NaN; + } + + /* "talib/_func.pxi":8888 + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + * retCode = lib.TA_MINUS_DI( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_MINUS_DI", retCode) + * return outreal + */ + __pyx_v_retCode = TA_MINUS_DI(0, __pyx_v_endidx, ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":8889 + * outreal_data[i] = NaN + * retCode = lib.TA_MINUS_DI( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_MINUS_DI", retCode) # <<<<<<<<<<<<<< + * return outreal + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_MINUS_DI, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8889, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":8890 + * retCode = lib.TA_MINUS_DI( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_MINUS_DI", retCode) + * return outreal # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); + __pyx_r = ((PyObject *)__pyx_v_outreal); + goto __pyx_L0; + + /* "talib/_func.pxi":8817 + * @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.c_ta_lib.MINUS_DI", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outreal); + __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/_func.pxi":8894 + * @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_8c_ta_lib_249MINUS_DM(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_248MINUS_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_8c_ta_lib_249MINUS_DM = {"MINUS_DM", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_249MINUS_DM, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_248MINUS_DM}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_249MINUS_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(2, 8894, __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(2, 8894, __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(2, 8894, __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(2, 8894, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 8894, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(2, 8894, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_248MINUS_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_8c_ta_lib_248MINUS_DM(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, int __pyx_v_timeperiod) { + npy_intp __pyx_v_length; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + TA_RetCode __pyx_v_retCode; + double *__pyx_v_high_data; + double *__pyx_v_low_data; + int __pyx_v_outbegidx; + int __pyx_v_outnbelement; + PyArrayObject *__pyx_v_outreal = 0; + double *__pyx_v_outreal_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __Pyx_RefNannySetupContext("MINUS_DM", 0); + __Pyx_INCREF((PyObject *)__pyx_v_high); + __Pyx_INCREF((PyObject *)__pyx_v_low); + + /* "talib/_func.pxi":8917 + * np.ndarray outreal + * double* outreal_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/_func.pxi":8918 + * double* outreal_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__1015, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8918, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 8918, __pyx_L1_error) + + /* "talib/_func.pxi":8917 + * np.ndarray outreal + * double* outreal_data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_func.pxi":8919 + * 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/_func.pxi":8920 + * raise 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__1016, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8920, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 8920, __pyx_L1_error) + + /* "talib/_func.pxi":8919 + * 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/_func.pxi":8921 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":8922 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8922, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 8922, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":8921 + * 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 = high.data + */ + } + + /* "talib/_func.pxi":8923 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":8924 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":8925 + * high_data = 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__1017, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8925, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 8925, __pyx_L1_error) + + /* "talib/_func.pxi":8924 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_func.pxi":8926 + * 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/_func.pxi":8927 + * raise 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__1018, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8927, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 8927, __pyx_L1_error) + + /* "talib/_func.pxi":8926 + * 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/_func.pxi":8928 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":8929 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * length = high.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8929, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 8929, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":8928 + * 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 = low.data + */ + } + + /* "talib/_func.pxi":8930 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data # <<<<<<<<<<<<<< + * length = high.shape[0] + * if length != low.shape[0]: + */ + __pyx_v_low_data = ((double *)__pyx_v_low->data); + + /* "talib/_func.pxi":8931 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":8932 + * low_data = low.data + * length = high.shape[0] + * if length != low.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + __pyx_t_1 = ((__pyx_v_length != (__pyx_v_low->dimensions[0])) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":8933 + * length = high.shape[0] + * if length != low.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1019, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8933, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 8933, __pyx_L1_error) + + /* "talib/_func.pxi":8932 + * low_data = low.data + * length = high.shape[0] + * if length != low.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + } + + /* "talib/_func.pxi":8934 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = high_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":8935 + * raise Exception("input lengths are different") + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = high_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":8936 + * begidx = 0 + * for i from 0 <= i < length: + * val = high_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); + + /* "talib/_func.pxi":8937 + * for i from 0 <= i < length: + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":8938 + * val = high_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = low_data[i] + * if val != val: + */ + goto __pyx_L10_continue; + + /* "talib/_func.pxi":8937 + * for i from 0 <= i < length: + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + } + + /* "talib/_func.pxi":8939 + * if val != val: + * continue + * val = low_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); + + /* "talib/_func.pxi":8940 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":8941 + * val = low_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L10_continue; + + /* "talib/_func.pxi":8940 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":8942 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":8943 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L11_break; + __pyx_L10_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":8945 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_MINUS_DM_Lookback( timeperiod ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1020, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8945, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 8945, __pyx_L1_error) + } + __pyx_L11_break:; + + /* "talib/_func.pxi":8946 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_MINUS_DM_Lookback( timeperiod ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":8947 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_MINUS_DM_Lookback( timeperiod ) # <<<<<<<<<<<<<< + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_MINUS_DM_Lookback(__pyx_v_timeperiod)); + + /* "talib/_func.pxi":8948 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_MINUS_DM_Lookback( timeperiod ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8948, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 8948, __pyx_L1_error) + __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":8949 + * lookback = begidx + lib.TA_MINUS_DM_Lookback( timeperiod ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + */ + __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); + + /* "talib/_func.pxi":8950 + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outreal_data[i] = NaN + * retCode = lib.TA_MINUS_DM( 0 , endidx , (high_data+begidx) , (low_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":8951 + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN # <<<<<<<<<<<<<< + * retCode = lib.TA_MINUS_DM( 0 , endidx , (high_data+begidx) , (low_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_MINUS_DM", retCode) + */ + (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_8c_ta_lib_NaN; + } + + /* "talib/_func.pxi":8952 + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + * retCode = lib.TA_MINUS_DM( 0 , endidx , (high_data+begidx) , (low_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_MINUS_DM", retCode) + * return outreal + */ + __pyx_v_retCode = TA_MINUS_DM(0, __pyx_v_endidx, ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":8953 + * outreal_data[i] = NaN + * retCode = lib.TA_MINUS_DM( 0 , endidx , (high_data+begidx) , (low_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_MINUS_DM", retCode) # <<<<<<<<<<<<<< + * return outreal + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_MINUS_DM, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8953, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":8954 + * retCode = lib.TA_MINUS_DM( 0 , endidx , (high_data+begidx) , (low_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_MINUS_DM", retCode) + * return outreal # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); + __pyx_r = ((PyObject *)__pyx_v_outreal); + goto __pyx_L0; + + /* "talib/_func.pxi":8894 + * @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.c_ta_lib.MINUS_DM", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outreal); + __Pyx_XDECREF((PyObject *)__pyx_v_high); + __Pyx_XDECREF((PyObject *)__pyx_v_low); + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "talib/_func.pxi":8958 + * @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_8c_ta_lib_251MOM(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_250MOM[] = " 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_8c_ta_lib_251MOM = {"MOM", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_251MOM, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_250MOM}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_251MOM(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(2, 8958, __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(2, 8958, __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(2, 8958, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 8958, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_250MOM(__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_8c_ta_lib_250MOM(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod) { + npy_intp __pyx_v_length; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + TA_RetCode __pyx_v_retCode; + double *__pyx_v_real_data; + int __pyx_v_outbegidx; + int __pyx_v_outnbelement; + PyArrayObject *__pyx_v_outreal = 0; + double *__pyx_v_outreal_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __Pyx_RefNannySetupContext("MOM", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real); + + /* "talib/_func.pxi":8980 + * np.ndarray outreal + * double* outreal_data + * 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/_func.pxi":8981 + * double* outreal_data + * 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__1021, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8981, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 8981, __pyx_L1_error) + + /* "talib/_func.pxi":8980 + * np.ndarray outreal + * double* outreal_data + * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real is not double") + * if real.ndim != 1: + */ + } + + /* "talib/_func.pxi":8982 + * 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/_func.pxi":8983 + * 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__1022, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8983, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 8983, __pyx_L1_error) + + /* "talib/_func.pxi":8982 + * 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/_func.pxi":8984 + * 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 = real.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":8985 + * raise Exception("real has wrong dimensions") + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< + * real_data = real.data + * length = real.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8985, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 8985, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":8984 + * 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 = real.data + */ + } + + /* "talib/_func.pxi":8986 + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data # <<<<<<<<<<<<<< + * length = real.shape[0] + * begidx = 0 + */ + __pyx_v_real_data = ((double *)__pyx_v_real->data); + + /* "talib/_func.pxi":8987 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data + * length = real.shape[0] # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_v_length = (__pyx_v_real->dimensions[0]); + + /* "talib/_func.pxi":8988 + * real_data = real.data + * length = real.shape[0] + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = real_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":8989 + * length = real.shape[0] + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = real_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":8990 + * begidx = 0 + * for i from 0 <= i < length: + * val = real_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_real_data[__pyx_v_i]); + + /* "talib/_func.pxi":8991 + * for i from 0 <= i < length: + * val = real_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":8992 + * val = real_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L6_continue; + + /* "talib/_func.pxi":8991 + * for i from 0 <= i < length: + * val = real_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":8993 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":8994 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L7_break; + __pyx_L6_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":8996 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_MOM_Lookback( timeperiod ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1023, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8996, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 8996, __pyx_L1_error) + } + __pyx_L7_break:; + + /* "talib/_func.pxi":8997 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_MOM_Lookback( timeperiod ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":8998 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_MOM_Lookback( timeperiod ) # <<<<<<<<<<<<<< + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_MOM_Lookback(__pyx_v_timeperiod)); + + /* "talib/_func.pxi":8999 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_MOM_Lookback( timeperiod ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8999, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 8999, __pyx_L1_error) + __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":9000 + * lookback = begidx + lib.TA_MOM_Lookback( timeperiod ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + */ + __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); + + /* "talib/_func.pxi":9001 + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outreal_data[i] = NaN + * retCode = lib.TA_MOM( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":9002 + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN # <<<<<<<<<<<<<< + * retCode = lib.TA_MOM( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_MOM", retCode) + */ + (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_8c_ta_lib_NaN; + } + + /* "talib/_func.pxi":9003 + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + * retCode = lib.TA_MOM( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_MOM", retCode) + * return outreal + */ + __pyx_v_retCode = TA_MOM(0, __pyx_v_endidx, ((double *)(__pyx_v_real_data + __pyx_v_begidx)), __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":9004 + * outreal_data[i] = NaN + * retCode = lib.TA_MOM( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_MOM", retCode) # <<<<<<<<<<<<<< + * return outreal + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_MOM, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9004, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":9005 + * retCode = lib.TA_MOM( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_MOM", retCode) + * return outreal # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); + __pyx_r = ((PyObject *)__pyx_v_outreal); + goto __pyx_L0; + + /* "talib/_func.pxi":8958 + * @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.c_ta_lib.MOM", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outreal); + __Pyx_XDECREF((PyObject *)__pyx_v_real); + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "talib/_func.pxi":9009 + * @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_8c_ta_lib_253MULT(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_252MULT[] = " 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_8c_ta_lib_253MULT = {"MULT", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_253MULT, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_252MULT}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_253MULT(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(2, 9009, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "MULT") < 0)) __PYX_ERR(2, 9009, __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(2, 9009, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 9009, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_real1), __pyx_ptype_5numpy_ndarray, 0, "real1", 0))) __PYX_ERR(2, 9009, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_252MULT(__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_8c_ta_lib_252MULT(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real0, PyArrayObject *__pyx_v_real1) { + npy_intp __pyx_v_length; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + TA_RetCode __pyx_v_retCode; + double *__pyx_v_real0_data; + double *__pyx_v_real1_data; + int __pyx_v_outbegidx; + int __pyx_v_outnbelement; + PyArrayObject *__pyx_v_outreal = 0; + double *__pyx_v_outreal_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __Pyx_RefNannySetupContext("MULT", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real0); + __Pyx_INCREF((PyObject *)__pyx_v_real1); + + /* "talib/_func.pxi":9031 + * np.ndarray outreal + * double* outreal_data + * 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/_func.pxi":9032 + * double* outreal_data + * 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__1024, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9032, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 9032, __pyx_L1_error) + + /* "talib/_func.pxi":9031 + * np.ndarray outreal + * double* outreal_data + * if PyArray_TYPE(real0) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real0 is not double") + * if real0.ndim != 1: + */ + } + + /* "talib/_func.pxi":9033 + * 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/_func.pxi":9034 + * 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__1025, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9034, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 9034, __pyx_L1_error) + + /* "talib/_func.pxi":9033 + * 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/_func.pxi":9035 + * 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 = real0.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real0) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":9036 + * raise Exception("real0 has wrong dimensions") + * if not (PyArray_FLAGS(real0) & np.NPY_C_CONTIGUOUS): + * real0 = PyArray_GETCONTIGUOUS(real0) # <<<<<<<<<<<<<< + * real0_data = real0.data + * if PyArray_TYPE(real1) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9036, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 9036, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real0, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":9035 + * 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 = real0.data + */ + } + + /* "talib/_func.pxi":9037 + * if not (PyArray_FLAGS(real0) & np.NPY_C_CONTIGUOUS): + * real0 = PyArray_GETCONTIGUOUS(real0) + * real0_data = 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/_func.pxi":9038 + * real0 = PyArray_GETCONTIGUOUS(real0) + * real0_data = 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/_func.pxi":9039 + * real0_data = 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__1026, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9039, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 9039, __pyx_L1_error) + + /* "talib/_func.pxi":9038 + * real0 = PyArray_GETCONTIGUOUS(real0) + * real0_data = real0.data + * if PyArray_TYPE(real1) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real1 is not double") + * if real1.ndim != 1: + */ + } + + /* "talib/_func.pxi":9040 + * 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/_func.pxi":9041 + * 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__1027, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9041, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 9041, __pyx_L1_error) + + /* "talib/_func.pxi":9040 + * 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/_func.pxi":9042 + * 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 = real1.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real1) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":9043 + * raise Exception("real1 has wrong dimensions") + * if not (PyArray_FLAGS(real1) & np.NPY_C_CONTIGUOUS): + * real1 = PyArray_GETCONTIGUOUS(real1) # <<<<<<<<<<<<<< + * real1_data = real1.data + * length = real0.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real1); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9043, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 9043, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real1, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":9042 + * 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 = real1.data + */ + } + + /* "talib/_func.pxi":9044 + * if not (PyArray_FLAGS(real1) & np.NPY_C_CONTIGUOUS): + * real1 = PyArray_GETCONTIGUOUS(real1) + * real1_data = real1.data # <<<<<<<<<<<<<< + * length = real0.shape[0] + * if length != real1.shape[0]: + */ + __pyx_v_real1_data = ((double *)__pyx_v_real1->data); + + /* "talib/_func.pxi":9045 + * real1 = PyArray_GETCONTIGUOUS(real1) + * real1_data = 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/_func.pxi":9046 + * real1_data = real1.data + * length = real0.shape[0] + * if length != real1.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + __pyx_t_1 = ((__pyx_v_length != (__pyx_v_real1->dimensions[0])) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":9047 + * length = real0.shape[0] + * if length != real1.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1028, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9047, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 9047, __pyx_L1_error) + + /* "talib/_func.pxi":9046 + * real1_data = real1.data + * length = real0.shape[0] + * if length != real1.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + } + + /* "talib/_func.pxi":9048 + * if length != real1.shape[0]: + * raise Exception("input lengths are different") + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = real0_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":9049 + * raise Exception("input lengths are different") + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = real0_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":9050 + * begidx = 0 + * for i from 0 <= i < length: + * val = real0_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_real0_data[__pyx_v_i]); + + /* "talib/_func.pxi":9051 + * for i from 0 <= i < length: + * val = real0_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = real1_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":9052 + * val = real0_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = real1_data[i] + * if val != val: + */ + goto __pyx_L10_continue; + + /* "talib/_func.pxi":9051 + * for i from 0 <= i < length: + * val = real0_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = real1_data[i] + */ + } + + /* "talib/_func.pxi":9053 + * if val != val: + * continue + * val = real1_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_real1_data[__pyx_v_i]); + + /* "talib/_func.pxi":9054 + * continue + * val = real1_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":9055 + * val = real1_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L10_continue; + + /* "talib/_func.pxi":9054 + * continue + * val = real1_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":9056 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":9057 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L11_break; + __pyx_L10_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":9059 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_MULT_Lookback( ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1029, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9059, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 9059, __pyx_L1_error) + } + __pyx_L11_break:; + + /* "talib/_func.pxi":9060 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_MULT_Lookback( ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":9061 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_MULT_Lookback( ) # <<<<<<<<<<<<<< + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_MULT_Lookback()); + + /* "talib/_func.pxi":9062 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_MULT_Lookback( ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9062, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 9062, __pyx_L1_error) + __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":9063 + * lookback = begidx + lib.TA_MULT_Lookback( ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + */ + __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); + + /* "talib/_func.pxi":9064 + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outreal_data[i] = NaN + * retCode = lib.TA_MULT( 0 , endidx , (real0_data+begidx) , (real1_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":9065 + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN # <<<<<<<<<<<<<< + * retCode = lib.TA_MULT( 0 , endidx , (real0_data+begidx) , (real1_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_MULT", retCode) + */ + (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_8c_ta_lib_NaN; + } + + /* "talib/_func.pxi":9066 + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + * retCode = lib.TA_MULT( 0 , endidx , (real0_data+begidx) , (real1_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_MULT", retCode) + * return outreal + */ + __pyx_v_retCode = TA_MULT(0, __pyx_v_endidx, ((double *)(__pyx_v_real0_data + __pyx_v_begidx)), ((double *)(__pyx_v_real1_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":9067 + * outreal_data[i] = NaN + * retCode = lib.TA_MULT( 0 , endidx , (real0_data+begidx) , (real1_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_MULT", retCode) # <<<<<<<<<<<<<< + * return outreal + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_MULT, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9067, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":9068 + * retCode = lib.TA_MULT( 0 , endidx , (real0_data+begidx) , (real1_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_MULT", retCode) + * return outreal # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); + __pyx_r = ((PyObject *)__pyx_v_outreal); + goto __pyx_L0; + + /* "talib/_func.pxi":9009 + * @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.c_ta_lib.MULT", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outreal); + __Pyx_XDECREF((PyObject *)__pyx_v_real0); + __Pyx_XDECREF((PyObject *)__pyx_v_real1); + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "talib/_func.pxi":9072 + * @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_8c_ta_lib_255NATR(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_254NATR[] = " 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_8c_ta_lib_255NATR = {"NATR", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_255NATR, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_254NATR}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_255NATR(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(2, 9072, __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(2, 9072, __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(2, 9072, __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(2, 9072, __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(2, 9072, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 9072, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(2, 9072, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(2, 9072, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_254NATR(__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_8c_ta_lib_254NATR(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; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + 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; + PyArrayObject *__pyx_v_outreal = 0; + double *__pyx_v_outreal_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __Pyx_RefNannySetupContext("NATR", 0); + __Pyx_INCREF((PyObject *)__pyx_v_high); + __Pyx_INCREF((PyObject *)__pyx_v_low); + __Pyx_INCREF((PyObject *)__pyx_v_close); + + /* "talib/_func.pxi":9096 + * np.ndarray outreal + * double* outreal_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/_func.pxi":9097 + * double* outreal_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__1030, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9097, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 9097, __pyx_L1_error) + + /* "talib/_func.pxi":9096 + * np.ndarray outreal + * double* outreal_data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_func.pxi":9098 + * 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/_func.pxi":9099 + * raise 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__1031, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9099, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 9099, __pyx_L1_error) + + /* "talib/_func.pxi":9098 + * 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/_func.pxi":9100 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":9101 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9101, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 9101, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":9100 + * 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 = high.data + */ + } + + /* "talib/_func.pxi":9102 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":9103 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":9104 + * high_data = 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__1032, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9104, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 9104, __pyx_L1_error) + + /* "talib/_func.pxi":9103 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_func.pxi":9105 + * 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/_func.pxi":9106 + * raise 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__1033, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9106, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 9106, __pyx_L1_error) + + /* "talib/_func.pxi":9105 + * 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/_func.pxi":9107 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":9108 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9108, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 9108, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":9107 + * 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 = low.data + */ + } + + /* "talib/_func.pxi":9109 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":9110 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":9111 + * low_data = 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__1034, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9111, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 9111, __pyx_L1_error) + + /* "talib/_func.pxi":9110 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_func.pxi":9112 + * 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/_func.pxi":9113 + * raise 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__1035, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9113, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 9113, __pyx_L1_error) + + /* "talib/_func.pxi":9112 + * 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/_func.pxi":9114 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":9115 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = high.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9115, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 9115, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":9114 + * 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 = close.data + */ + } + + /* "talib/_func.pxi":9116 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = high.shape[0] + * if length != low.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_func.pxi":9117 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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/_func.pxi":9118 + * close_data = 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/_func.pxi":9119 + * 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__1036, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9119, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 9119, __pyx_L1_error) + + /* "talib/_func.pxi":9118 + * close_data = close.data + * length = high.shape[0] + * if length != low.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != close.shape[0]: + */ + } + + /* "talib/_func.pxi":9120 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":9121 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1037, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9121, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 9121, __pyx_L1_error) + + /* "talib/_func.pxi":9120 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + } + + /* "talib/_func.pxi":9122 + * if length != close.shape[0]: + * raise Exception("input lengths are different") + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = high_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":9123 + * raise Exception("input lengths are different") + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = high_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":9124 + * begidx = 0 + * for i from 0 <= i < length: + * val = high_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); + + /* "talib/_func.pxi":9125 + * for i from 0 <= i < length: + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":9126 + * val = high_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = low_data[i] + * if val != val: + */ + goto __pyx_L14_continue; + + /* "talib/_func.pxi":9125 + * for i from 0 <= i < length: + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + } + + /* "talib/_func.pxi":9127 + * if val != val: + * continue + * val = low_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); + + /* "talib/_func.pxi":9128 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":9129 + * val = low_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = close_data[i] + * if val != val: + */ + goto __pyx_L14_continue; + + /* "talib/_func.pxi":9128 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + } + + /* "talib/_func.pxi":9130 + * if val != val: + * continue + * val = close_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); + + /* "talib/_func.pxi":9131 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":9132 + * val = close_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L14_continue; + + /* "talib/_func.pxi":9131 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":9133 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":9134 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L15_break; + __pyx_L14_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":9136 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_NATR_Lookback( timeperiod ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1038, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9136, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 9136, __pyx_L1_error) + } + __pyx_L15_break:; + + /* "talib/_func.pxi":9137 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_NATR_Lookback( timeperiod ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":9138 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_NATR_Lookback( timeperiod ) # <<<<<<<<<<<<<< + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_NATR_Lookback(__pyx_v_timeperiod)); + + /* "talib/_func.pxi":9139 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_NATR_Lookback( timeperiod ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9139, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 9139, __pyx_L1_error) + __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":9140 + * lookback = begidx + lib.TA_NATR_Lookback( timeperiod ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + */ + __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); + + /* "talib/_func.pxi":9141 + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outreal_data[i] = NaN + * retCode = lib.TA_NATR( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":9142 + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN # <<<<<<<<<<<<<< + * retCode = lib.TA_NATR( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_NATR", retCode) + */ + (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_8c_ta_lib_NaN; + } + + /* "talib/_func.pxi":9143 + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + * retCode = lib.TA_NATR( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_NATR", retCode) + * return outreal + */ + __pyx_v_retCode = TA_NATR(0, __pyx_v_endidx, ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":9144 + * outreal_data[i] = NaN + * retCode = lib.TA_NATR( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_NATR", retCode) # <<<<<<<<<<<<<< + * return outreal + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_NATR, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9144, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":9145 + * retCode = lib.TA_NATR( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_NATR", retCode) + * return outreal # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); + __pyx_r = ((PyObject *)__pyx_v_outreal); + goto __pyx_L0; + + /* "talib/_func.pxi":9072 + * @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.c_ta_lib.NATR", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outreal); + __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/_func.pxi":9149 + * @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_8c_ta_lib_257OBV(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_256OBV[] = " 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_8c_ta_lib_257OBV = {"OBV", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_257OBV, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_256OBV}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_257OBV(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(2, 9149, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "OBV") < 0)) __PYX_ERR(2, 9149, __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(2, 9149, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 9149, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_volume), __pyx_ptype_5numpy_ndarray, 0, "volume", 0))) __PYX_ERR(2, 9149, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_256OBV(__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_8c_ta_lib_256OBV(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, PyArrayObject *__pyx_v_volume) { + npy_intp __pyx_v_length; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + TA_RetCode __pyx_v_retCode; + double *__pyx_v_real_data; + double *__pyx_v_volume_data; + int __pyx_v_outbegidx; + int __pyx_v_outnbelement; + PyArrayObject *__pyx_v_outreal = 0; + double *__pyx_v_outreal_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __Pyx_RefNannySetupContext("OBV", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real); + __Pyx_INCREF((PyObject *)__pyx_v_volume); + + /* "talib/_func.pxi":9171 + * np.ndarray outreal + * double* outreal_data + * 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/_func.pxi":9172 + * double* outreal_data + * 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__1039, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9172, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 9172, __pyx_L1_error) + + /* "talib/_func.pxi":9171 + * np.ndarray outreal + * double* outreal_data + * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real is not double") + * if real.ndim != 1: + */ + } + + /* "talib/_func.pxi":9173 + * 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/_func.pxi":9174 + * 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__1040, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9174, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 9174, __pyx_L1_error) + + /* "talib/_func.pxi":9173 + * 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/_func.pxi":9175 + * 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 = real.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":9176 + * raise Exception("real has wrong dimensions") + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< + * real_data = real.data + * if PyArray_TYPE(volume) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9176, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 9176, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":9175 + * 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 = real.data + */ + } + + /* "talib/_func.pxi":9177 + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) + * real_data = 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/_func.pxi":9178 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = 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/_func.pxi":9179 + * real_data = 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__1041, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9179, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 9179, __pyx_L1_error) + + /* "talib/_func.pxi":9178 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data + * if PyArray_TYPE(volume) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("volume is not double") + * if volume.ndim != 1: + */ + } + + /* "talib/_func.pxi":9180 + * 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/_func.pxi":9181 + * 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__1042, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9181, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 9181, __pyx_L1_error) + + /* "talib/_func.pxi":9180 + * 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/_func.pxi":9182 + * 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 = volume.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_volume) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":9183 + * raise Exception("volume has wrong dimensions") + * if not (PyArray_FLAGS(volume) & np.NPY_C_CONTIGUOUS): + * volume = PyArray_GETCONTIGUOUS(volume) # <<<<<<<<<<<<<< + * volume_data = volume.data + * length = real.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_volume); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9183, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 9183, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_volume, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":9182 + * 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 = volume.data + */ + } + + /* "talib/_func.pxi":9184 + * if not (PyArray_FLAGS(volume) & np.NPY_C_CONTIGUOUS): + * volume = PyArray_GETCONTIGUOUS(volume) + * volume_data = volume.data # <<<<<<<<<<<<<< + * length = real.shape[0] + * if length != volume.shape[0]: + */ + __pyx_v_volume_data = ((double *)__pyx_v_volume->data); + + /* "talib/_func.pxi":9185 + * volume = PyArray_GETCONTIGUOUS(volume) + * volume_data = 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/_func.pxi":9186 + * volume_data = volume.data + * length = real.shape[0] + * if length != volume.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + __pyx_t_1 = ((__pyx_v_length != (__pyx_v_volume->dimensions[0])) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":9187 + * length = real.shape[0] + * if length != volume.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1043, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9187, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 9187, __pyx_L1_error) + + /* "talib/_func.pxi":9186 + * volume_data = volume.data + * length = real.shape[0] + * if length != volume.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + } + + /* "talib/_func.pxi":9188 + * if length != volume.shape[0]: + * raise Exception("input lengths are different") + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = real_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":9189 + * raise Exception("input lengths are different") + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = real_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":9190 + * begidx = 0 + * for i from 0 <= i < length: + * val = real_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_real_data[__pyx_v_i]); + + /* "talib/_func.pxi":9191 + * for i from 0 <= i < length: + * val = real_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = volume_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":9192 + * val = real_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = volume_data[i] + * if val != val: + */ + goto __pyx_L10_continue; + + /* "talib/_func.pxi":9191 + * for i from 0 <= i < length: + * val = real_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = volume_data[i] + */ + } + + /* "talib/_func.pxi":9193 + * if val != val: + * continue + * val = volume_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_volume_data[__pyx_v_i]); + + /* "talib/_func.pxi":9194 + * continue + * val = volume_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":9195 + * val = volume_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L10_continue; + + /* "talib/_func.pxi":9194 + * continue + * val = volume_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":9196 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":9197 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L11_break; + __pyx_L10_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":9199 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_OBV_Lookback( ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1044, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9199, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 9199, __pyx_L1_error) + } + __pyx_L11_break:; + + /* "talib/_func.pxi":9200 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_OBV_Lookback( ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":9201 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_OBV_Lookback( ) # <<<<<<<<<<<<<< + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_OBV_Lookback()); + + /* "talib/_func.pxi":9202 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_OBV_Lookback( ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9202, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 9202, __pyx_L1_error) + __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":9203 + * lookback = begidx + lib.TA_OBV_Lookback( ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + */ + __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); + + /* "talib/_func.pxi":9204 + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outreal_data[i] = NaN + * retCode = lib.TA_OBV( 0 , endidx , (real_data+begidx) , (volume_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":9205 + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN # <<<<<<<<<<<<<< + * retCode = lib.TA_OBV( 0 , endidx , (real_data+begidx) , (volume_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_OBV", retCode) + */ + (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_8c_ta_lib_NaN; + } + + /* "talib/_func.pxi":9206 + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + * retCode = lib.TA_OBV( 0 , endidx , (real_data+begidx) , (volume_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_OBV", retCode) + * return outreal + */ + __pyx_v_retCode = TA_OBV(0, __pyx_v_endidx, ((double *)(__pyx_v_real_data + __pyx_v_begidx)), ((double *)(__pyx_v_volume_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":9207 + * outreal_data[i] = NaN + * retCode = lib.TA_OBV( 0 , endidx , (real_data+begidx) , (volume_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_OBV", retCode) # <<<<<<<<<<<<<< + * return outreal + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_OBV, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9207, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":9208 + * retCode = lib.TA_OBV( 0 , endidx , (real_data+begidx) , (volume_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_OBV", retCode) + * return outreal # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); + __pyx_r = ((PyObject *)__pyx_v_outreal); + goto __pyx_L0; + + /* "talib/_func.pxi":9149 + * @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.c_ta_lib.OBV", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outreal); + __Pyx_XDECREF((PyObject *)__pyx_v_real); + __Pyx_XDECREF((PyObject *)__pyx_v_volume); + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "talib/_func.pxi":9212 + * @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_8c_ta_lib_259PLUS_DI(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_258PLUS_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_8c_ta_lib_259PLUS_DI = {"PLUS_DI", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_259PLUS_DI, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_258PLUS_DI}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_259PLUS_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(2, 9212, __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(2, 9212, __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(2, 9212, __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(2, 9212, __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(2, 9212, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 9212, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(2, 9212, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(2, 9212, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_258PLUS_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_8c_ta_lib_258PLUS_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; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + 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; + PyArrayObject *__pyx_v_outreal = 0; + double *__pyx_v_outreal_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __Pyx_RefNannySetupContext("PLUS_DI", 0); + __Pyx_INCREF((PyObject *)__pyx_v_high); + __Pyx_INCREF((PyObject *)__pyx_v_low); + __Pyx_INCREF((PyObject *)__pyx_v_close); + + /* "talib/_func.pxi":9236 + * np.ndarray outreal + * double* outreal_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/_func.pxi":9237 + * double* outreal_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__1045, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9237, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 9237, __pyx_L1_error) + + /* "talib/_func.pxi":9236 + * np.ndarray outreal + * double* outreal_data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_func.pxi":9238 + * 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/_func.pxi":9239 + * raise 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__1046, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9239, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 9239, __pyx_L1_error) + + /* "talib/_func.pxi":9238 + * 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/_func.pxi":9240 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":9241 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9241, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 9241, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":9240 + * 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 = high.data + */ + } + + /* "talib/_func.pxi":9242 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":9243 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":9244 + * high_data = 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__1047, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9244, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 9244, __pyx_L1_error) + + /* "talib/_func.pxi":9243 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_func.pxi":9245 + * 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/_func.pxi":9246 + * raise 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__1048, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9246, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 9246, __pyx_L1_error) + + /* "talib/_func.pxi":9245 + * 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/_func.pxi":9247 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":9248 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9248, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 9248, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":9247 + * 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 = low.data + */ + } + + /* "talib/_func.pxi":9249 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":9250 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":9251 + * low_data = 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__1049, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9251, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 9251, __pyx_L1_error) + + /* "talib/_func.pxi":9250 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_func.pxi":9252 + * 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/_func.pxi":9253 + * raise 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__1050, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9253, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 9253, __pyx_L1_error) + + /* "talib/_func.pxi":9252 + * 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/_func.pxi":9254 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":9255 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = high.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9255, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 9255, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":9254 + * 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 = close.data + */ + } + + /* "talib/_func.pxi":9256 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = high.shape[0] + * if length != low.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_func.pxi":9257 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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/_func.pxi":9258 + * close_data = 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/_func.pxi":9259 + * 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__1051, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9259, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 9259, __pyx_L1_error) + + /* "talib/_func.pxi":9258 + * close_data = close.data + * length = high.shape[0] + * if length != low.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != close.shape[0]: + */ + } + + /* "talib/_func.pxi":9260 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":9261 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1052, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9261, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 9261, __pyx_L1_error) + + /* "talib/_func.pxi":9260 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + } + + /* "talib/_func.pxi":9262 + * if length != close.shape[0]: + * raise Exception("input lengths are different") + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = high_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":9263 + * raise Exception("input lengths are different") + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = high_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":9264 + * begidx = 0 + * for i from 0 <= i < length: + * val = high_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); + + /* "talib/_func.pxi":9265 + * for i from 0 <= i < length: + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":9266 + * val = high_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = low_data[i] + * if val != val: + */ + goto __pyx_L14_continue; + + /* "talib/_func.pxi":9265 + * for i from 0 <= i < length: + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + } + + /* "talib/_func.pxi":9267 + * if val != val: + * continue + * val = low_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); + + /* "talib/_func.pxi":9268 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":9269 + * val = low_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = close_data[i] + * if val != val: + */ + goto __pyx_L14_continue; + + /* "talib/_func.pxi":9268 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + } + + /* "talib/_func.pxi":9270 + * if val != val: + * continue + * val = close_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); + + /* "talib/_func.pxi":9271 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":9272 + * val = close_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L14_continue; + + /* "talib/_func.pxi":9271 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":9273 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":9274 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L15_break; + __pyx_L14_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":9276 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_PLUS_DI_Lookback( timeperiod ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1053, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9276, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 9276, __pyx_L1_error) + } + __pyx_L15_break:; + + /* "talib/_func.pxi":9277 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_PLUS_DI_Lookback( timeperiod ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":9278 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_PLUS_DI_Lookback( timeperiod ) # <<<<<<<<<<<<<< + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_PLUS_DI_Lookback(__pyx_v_timeperiod)); + + /* "talib/_func.pxi":9279 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_PLUS_DI_Lookback( timeperiod ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9279, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 9279, __pyx_L1_error) + __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":9280 + * lookback = begidx + lib.TA_PLUS_DI_Lookback( timeperiod ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + */ + __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); + + /* "talib/_func.pxi":9281 + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outreal_data[i] = NaN + * retCode = lib.TA_PLUS_DI( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":9282 + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN # <<<<<<<<<<<<<< + * retCode = lib.TA_PLUS_DI( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_PLUS_DI", retCode) + */ + (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_8c_ta_lib_NaN; + } + + /* "talib/_func.pxi":9283 + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + * retCode = lib.TA_PLUS_DI( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_PLUS_DI", retCode) + * return outreal + */ + __pyx_v_retCode = TA_PLUS_DI(0, __pyx_v_endidx, ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":9284 + * outreal_data[i] = NaN + * retCode = lib.TA_PLUS_DI( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_PLUS_DI", retCode) # <<<<<<<<<<<<<< + * return outreal + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_PLUS_DI, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9284, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":9285 + * retCode = lib.TA_PLUS_DI( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_PLUS_DI", retCode) + * return outreal # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); + __pyx_r = ((PyObject *)__pyx_v_outreal); + goto __pyx_L0; + + /* "talib/_func.pxi":9212 + * @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.c_ta_lib.PLUS_DI", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outreal); + __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/_func.pxi":9289 + * @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_8c_ta_lib_261PLUS_DM(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_260PLUS_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_8c_ta_lib_261PLUS_DM = {"PLUS_DM", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_261PLUS_DM, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_260PLUS_DM}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_261PLUS_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(2, 9289, __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(2, 9289, __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(2, 9289, __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(2, 9289, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 9289, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(2, 9289, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_260PLUS_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_8c_ta_lib_260PLUS_DM(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, int __pyx_v_timeperiod) { + npy_intp __pyx_v_length; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + TA_RetCode __pyx_v_retCode; + double *__pyx_v_high_data; + double *__pyx_v_low_data; + int __pyx_v_outbegidx; + int __pyx_v_outnbelement; + PyArrayObject *__pyx_v_outreal = 0; + double *__pyx_v_outreal_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __Pyx_RefNannySetupContext("PLUS_DM", 0); + __Pyx_INCREF((PyObject *)__pyx_v_high); + __Pyx_INCREF((PyObject *)__pyx_v_low); + + /* "talib/_func.pxi":9312 + * np.ndarray outreal + * double* outreal_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/_func.pxi":9313 + * double* outreal_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__1054, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9313, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 9313, __pyx_L1_error) + + /* "talib/_func.pxi":9312 + * np.ndarray outreal + * double* outreal_data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_func.pxi":9314 + * 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/_func.pxi":9315 + * raise 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__1055, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9315, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 9315, __pyx_L1_error) + + /* "talib/_func.pxi":9314 + * 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/_func.pxi":9316 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":9317 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9317, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 9317, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":9316 + * 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 = high.data + */ + } + + /* "talib/_func.pxi":9318 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":9319 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":9320 + * high_data = 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__1056, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9320, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 9320, __pyx_L1_error) + + /* "talib/_func.pxi":9319 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_func.pxi":9321 + * 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/_func.pxi":9322 + * raise 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__1057, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9322, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 9322, __pyx_L1_error) + + /* "talib/_func.pxi":9321 + * 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/_func.pxi":9323 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":9324 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * length = high.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9324, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 9324, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":9323 + * 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 = low.data + */ + } + + /* "talib/_func.pxi":9325 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data # <<<<<<<<<<<<<< + * length = high.shape[0] + * if length != low.shape[0]: + */ + __pyx_v_low_data = ((double *)__pyx_v_low->data); + + /* "talib/_func.pxi":9326 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":9327 + * low_data = low.data + * length = high.shape[0] + * if length != low.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + __pyx_t_1 = ((__pyx_v_length != (__pyx_v_low->dimensions[0])) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":9328 + * length = high.shape[0] + * if length != low.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1058, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9328, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 9328, __pyx_L1_error) + + /* "talib/_func.pxi":9327 + * low_data = low.data + * length = high.shape[0] + * if length != low.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + } + + /* "talib/_func.pxi":9329 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = high_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":9330 + * raise Exception("input lengths are different") + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = high_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":9331 + * begidx = 0 + * for i from 0 <= i < length: + * val = high_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); + + /* "talib/_func.pxi":9332 + * for i from 0 <= i < length: + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":9333 + * val = high_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = low_data[i] + * if val != val: + */ + goto __pyx_L10_continue; + + /* "talib/_func.pxi":9332 + * for i from 0 <= i < length: + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + } + + /* "talib/_func.pxi":9334 + * if val != val: + * continue + * val = low_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); + + /* "talib/_func.pxi":9335 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":9336 + * val = low_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L10_continue; + + /* "talib/_func.pxi":9335 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":9337 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":9338 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L11_break; + __pyx_L10_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":9340 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_PLUS_DM_Lookback( timeperiod ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1059, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9340, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 9340, __pyx_L1_error) + } + __pyx_L11_break:; + + /* "talib/_func.pxi":9341 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_PLUS_DM_Lookback( timeperiod ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":9342 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_PLUS_DM_Lookback( timeperiod ) # <<<<<<<<<<<<<< + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_PLUS_DM_Lookback(__pyx_v_timeperiod)); + + /* "talib/_func.pxi":9343 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_PLUS_DM_Lookback( timeperiod ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9343, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 9343, __pyx_L1_error) + __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":9344 + * lookback = begidx + lib.TA_PLUS_DM_Lookback( timeperiod ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + */ + __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); + + /* "talib/_func.pxi":9345 + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outreal_data[i] = NaN + * retCode = lib.TA_PLUS_DM( 0 , endidx , (high_data+begidx) , (low_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":9346 + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN # <<<<<<<<<<<<<< + * retCode = lib.TA_PLUS_DM( 0 , endidx , (high_data+begidx) , (low_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_PLUS_DM", retCode) + */ + (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_8c_ta_lib_NaN; + } + + /* "talib/_func.pxi":9347 + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + * retCode = lib.TA_PLUS_DM( 0 , endidx , (high_data+begidx) , (low_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_PLUS_DM", retCode) + * return outreal + */ + __pyx_v_retCode = TA_PLUS_DM(0, __pyx_v_endidx, ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":9348 + * outreal_data[i] = NaN + * retCode = lib.TA_PLUS_DM( 0 , endidx , (high_data+begidx) , (low_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_PLUS_DM", retCode) # <<<<<<<<<<<<<< + * return outreal + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_PLUS_DM, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9348, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":9349 + * retCode = lib.TA_PLUS_DM( 0 , endidx , (high_data+begidx) , (low_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_PLUS_DM", retCode) + * return outreal # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); + __pyx_r = ((PyObject *)__pyx_v_outreal); + goto __pyx_L0; + + /* "talib/_func.pxi":9289 + * @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.c_ta_lib.PLUS_DM", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outreal); + __Pyx_XDECREF((PyObject *)__pyx_v_high); + __Pyx_XDECREF((PyObject *)__pyx_v_low); + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "talib/_func.pxi":9353 + * @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_8c_ta_lib_263PPO(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_262PPO[] = " 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_8c_ta_lib_263PPO = {"PPO", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_263PPO, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_262PPO}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_263PPO(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(2, 9353, __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(2, 9353, __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(2, 9353, __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(2, 9353, __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(2, 9353, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 9353, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_262PPO(__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_8c_ta_lib_262PPO(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; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + TA_RetCode __pyx_v_retCode; + double *__pyx_v_real_data; + int __pyx_v_outbegidx; + int __pyx_v_outnbelement; + PyArrayObject *__pyx_v_outreal = 0; + double *__pyx_v_outreal_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __Pyx_RefNannySetupContext("PPO", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real); + + /* "talib/_func.pxi":9377 + * np.ndarray outreal + * double* outreal_data + * 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/_func.pxi":9378 + * double* outreal_data + * 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__1060, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9378, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 9378, __pyx_L1_error) + + /* "talib/_func.pxi":9377 + * np.ndarray outreal + * double* outreal_data + * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real is not double") + * if real.ndim != 1: + */ + } + + /* "talib/_func.pxi":9379 + * 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/_func.pxi":9380 + * 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__1061, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9380, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 9380, __pyx_L1_error) + + /* "talib/_func.pxi":9379 + * 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/_func.pxi":9381 + * 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 = real.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":9382 + * raise Exception("real has wrong dimensions") + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< + * real_data = real.data + * length = real.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9382, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 9382, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":9381 + * 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 = real.data + */ + } + + /* "talib/_func.pxi":9383 + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data # <<<<<<<<<<<<<< + * length = real.shape[0] + * begidx = 0 + */ + __pyx_v_real_data = ((double *)__pyx_v_real->data); + + /* "talib/_func.pxi":9384 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data + * length = real.shape[0] # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_v_length = (__pyx_v_real->dimensions[0]); + + /* "talib/_func.pxi":9385 + * real_data = real.data + * length = real.shape[0] + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = real_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":9386 + * length = real.shape[0] + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = real_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":9387 + * begidx = 0 + * for i from 0 <= i < length: + * val = real_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_real_data[__pyx_v_i]); + + /* "talib/_func.pxi":9388 + * for i from 0 <= i < length: + * val = real_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":9389 + * val = real_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L6_continue; + + /* "talib/_func.pxi":9388 + * for i from 0 <= i < length: + * val = real_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":9390 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":9391 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L7_break; + __pyx_L6_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":9393 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_PPO_Lookback( fastperiod , slowperiod , matype ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1062, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9393, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 9393, __pyx_L1_error) + } + __pyx_L7_break:; + + /* "talib/_func.pxi":9394 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_PPO_Lookback( fastperiod , slowperiod , matype ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":9395 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_PPO_Lookback( fastperiod , slowperiod , matype ) # <<<<<<<<<<<<<< + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_PPO_Lookback(__pyx_v_fastperiod, __pyx_v_slowperiod, __pyx_v_matype)); + + /* "talib/_func.pxi":9396 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_PPO_Lookback( fastperiod , slowperiod , matype ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9396, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 9396, __pyx_L1_error) + __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":9397 + * lookback = begidx + lib.TA_PPO_Lookback( fastperiod , slowperiod , matype ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + */ + __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); + + /* "talib/_func.pxi":9398 + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outreal_data[i] = NaN + * retCode = lib.TA_PPO( 0 , endidx , (real_data+begidx) , fastperiod , slowperiod , matype , &outbegidx , &outnbelement , (outreal_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":9399 + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN # <<<<<<<<<<<<<< + * retCode = lib.TA_PPO( 0 , endidx , (real_data+begidx) , fastperiod , slowperiod , matype , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_PPO", retCode) + */ + (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_8c_ta_lib_NaN; + } + + /* "talib/_func.pxi":9400 + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + * retCode = lib.TA_PPO( 0 , endidx , (real_data+begidx) , fastperiod , slowperiod , matype , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_PPO", retCode) + * return outreal + */ + __pyx_v_retCode = TA_PPO(0, __pyx_v_endidx, ((double *)(__pyx_v_real_data + __pyx_v_begidx)), __pyx_v_fastperiod, __pyx_v_slowperiod, __pyx_v_matype, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":9401 + * outreal_data[i] = NaN + * retCode = lib.TA_PPO( 0 , endidx , (real_data+begidx) , fastperiod , slowperiod , matype , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_PPO", retCode) # <<<<<<<<<<<<<< + * return outreal + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_PPO, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9401, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":9402 + * retCode = lib.TA_PPO( 0 , endidx , (real_data+begidx) , fastperiod , slowperiod , matype , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_PPO", retCode) + * return outreal # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); + __pyx_r = ((PyObject *)__pyx_v_outreal); + goto __pyx_L0; + + /* "talib/_func.pxi":9353 + * @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.c_ta_lib.PPO", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outreal); + __Pyx_XDECREF((PyObject *)__pyx_v_real); + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "talib/_func.pxi":9406 + * @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_8c_ta_lib_265ROC(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_264ROC[] = " 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_8c_ta_lib_265ROC = {"ROC", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_265ROC, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_264ROC}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_265ROC(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(2, 9406, __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(2, 9406, __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(2, 9406, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 9406, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_264ROC(__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_8c_ta_lib_264ROC(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod) { + npy_intp __pyx_v_length; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + TA_RetCode __pyx_v_retCode; + double *__pyx_v_real_data; + int __pyx_v_outbegidx; + int __pyx_v_outnbelement; + PyArrayObject *__pyx_v_outreal = 0; + double *__pyx_v_outreal_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __Pyx_RefNannySetupContext("ROC", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real); + + /* "talib/_func.pxi":9428 + * np.ndarray outreal + * double* outreal_data + * 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/_func.pxi":9429 + * double* outreal_data + * 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__1063, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9429, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 9429, __pyx_L1_error) + + /* "talib/_func.pxi":9428 + * np.ndarray outreal + * double* outreal_data + * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real is not double") + * if real.ndim != 1: + */ + } + + /* "talib/_func.pxi":9430 + * 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/_func.pxi":9431 + * 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__1064, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9431, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 9431, __pyx_L1_error) + + /* "talib/_func.pxi":9430 + * 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/_func.pxi":9432 + * 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 = real.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":9433 + * raise Exception("real has wrong dimensions") + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< + * real_data = real.data + * length = real.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9433, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 9433, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":9432 + * 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 = real.data + */ + } + + /* "talib/_func.pxi":9434 + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data # <<<<<<<<<<<<<< + * length = real.shape[0] + * begidx = 0 + */ + __pyx_v_real_data = ((double *)__pyx_v_real->data); + + /* "talib/_func.pxi":9435 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data + * length = real.shape[0] # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_v_length = (__pyx_v_real->dimensions[0]); + + /* "talib/_func.pxi":9436 + * real_data = real.data + * length = real.shape[0] + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = real_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":9437 + * length = real.shape[0] + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = real_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":9438 + * begidx = 0 + * for i from 0 <= i < length: + * val = real_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_real_data[__pyx_v_i]); + + /* "talib/_func.pxi":9439 + * for i from 0 <= i < length: + * val = real_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":9440 + * val = real_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L6_continue; + + /* "talib/_func.pxi":9439 + * for i from 0 <= i < length: + * val = real_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":9441 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":9442 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L7_break; + __pyx_L6_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":9444 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_ROC_Lookback( timeperiod ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1065, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9444, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 9444, __pyx_L1_error) + } + __pyx_L7_break:; + + /* "talib/_func.pxi":9445 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_ROC_Lookback( timeperiod ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":9446 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_ROC_Lookback( timeperiod ) # <<<<<<<<<<<<<< + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_ROC_Lookback(__pyx_v_timeperiod)); + + /* "talib/_func.pxi":9447 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_ROC_Lookback( timeperiod ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9447, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 9447, __pyx_L1_error) + __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":9448 + * lookback = begidx + lib.TA_ROC_Lookback( timeperiod ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + */ + __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); + + /* "talib/_func.pxi":9449 + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outreal_data[i] = NaN + * retCode = lib.TA_ROC( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":9450 + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN # <<<<<<<<<<<<<< + * retCode = lib.TA_ROC( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_ROC", retCode) + */ + (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_8c_ta_lib_NaN; + } + + /* "talib/_func.pxi":9451 + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + * retCode = lib.TA_ROC( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_ROC", retCode) + * return outreal + */ + __pyx_v_retCode = TA_ROC(0, __pyx_v_endidx, ((double *)(__pyx_v_real_data + __pyx_v_begidx)), __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":9452 + * outreal_data[i] = NaN + * retCode = lib.TA_ROC( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_ROC", retCode) # <<<<<<<<<<<<<< + * return outreal + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_ROC, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9452, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":9453 + * retCode = lib.TA_ROC( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_ROC", retCode) + * return outreal # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); + __pyx_r = ((PyObject *)__pyx_v_outreal); + goto __pyx_L0; + + /* "talib/_func.pxi":9406 + * @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.c_ta_lib.ROC", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outreal); + __Pyx_XDECREF((PyObject *)__pyx_v_real); + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "talib/_func.pxi":9457 + * @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_8c_ta_lib_267ROCP(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_266ROCP[] = " 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_8c_ta_lib_267ROCP = {"ROCP", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_267ROCP, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_266ROCP}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_267ROCP(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(2, 9457, __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(2, 9457, __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(2, 9457, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 9457, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_266ROCP(__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_8c_ta_lib_266ROCP(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod) { + npy_intp __pyx_v_length; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + TA_RetCode __pyx_v_retCode; + double *__pyx_v_real_data; + int __pyx_v_outbegidx; + int __pyx_v_outnbelement; + PyArrayObject *__pyx_v_outreal = 0; + double *__pyx_v_outreal_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __Pyx_RefNannySetupContext("ROCP", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real); + + /* "talib/_func.pxi":9479 + * np.ndarray outreal + * double* outreal_data + * 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/_func.pxi":9480 + * double* outreal_data + * 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__1066, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9480, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 9480, __pyx_L1_error) + + /* "talib/_func.pxi":9479 + * np.ndarray outreal + * double* outreal_data + * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real is not double") + * if real.ndim != 1: + */ + } + + /* "talib/_func.pxi":9481 + * 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/_func.pxi":9482 + * 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__1067, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9482, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 9482, __pyx_L1_error) + + /* "talib/_func.pxi":9481 + * 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/_func.pxi":9483 + * 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 = real.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":9484 + * raise Exception("real has wrong dimensions") + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< + * real_data = real.data + * length = real.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9484, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 9484, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":9483 + * 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 = real.data + */ + } + + /* "talib/_func.pxi":9485 + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data # <<<<<<<<<<<<<< + * length = real.shape[0] + * begidx = 0 + */ + __pyx_v_real_data = ((double *)__pyx_v_real->data); + + /* "talib/_func.pxi":9486 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data + * length = real.shape[0] # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_v_length = (__pyx_v_real->dimensions[0]); + + /* "talib/_func.pxi":9487 + * real_data = real.data + * length = real.shape[0] + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = real_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":9488 + * length = real.shape[0] + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = real_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":9489 + * begidx = 0 + * for i from 0 <= i < length: + * val = real_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_real_data[__pyx_v_i]); + + /* "talib/_func.pxi":9490 + * for i from 0 <= i < length: + * val = real_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":9491 + * val = real_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L6_continue; + + /* "talib/_func.pxi":9490 + * for i from 0 <= i < length: + * val = real_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":9492 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":9493 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L7_break; + __pyx_L6_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":9495 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_ROCP_Lookback( timeperiod ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1068, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9495, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 9495, __pyx_L1_error) + } + __pyx_L7_break:; + + /* "talib/_func.pxi":9496 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_ROCP_Lookback( timeperiod ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":9497 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_ROCP_Lookback( timeperiod ) # <<<<<<<<<<<<<< + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_ROCP_Lookback(__pyx_v_timeperiod)); + + /* "talib/_func.pxi":9498 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_ROCP_Lookback( timeperiod ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9498, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 9498, __pyx_L1_error) + __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":9499 + * lookback = begidx + lib.TA_ROCP_Lookback( timeperiod ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + */ + __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); + + /* "talib/_func.pxi":9500 + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outreal_data[i] = NaN + * retCode = lib.TA_ROCP( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":9501 + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN # <<<<<<<<<<<<<< + * retCode = lib.TA_ROCP( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_ROCP", retCode) + */ + (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_8c_ta_lib_NaN; + } + + /* "talib/_func.pxi":9502 + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + * retCode = lib.TA_ROCP( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_ROCP", retCode) + * return outreal + */ + __pyx_v_retCode = TA_ROCP(0, __pyx_v_endidx, ((double *)(__pyx_v_real_data + __pyx_v_begidx)), __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":9503 + * outreal_data[i] = NaN + * retCode = lib.TA_ROCP( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_ROCP", retCode) # <<<<<<<<<<<<<< + * return outreal + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_ROCP, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9503, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":9504 + * retCode = lib.TA_ROCP( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_ROCP", retCode) + * return outreal # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); + __pyx_r = ((PyObject *)__pyx_v_outreal); + goto __pyx_L0; + + /* "talib/_func.pxi":9457 + * @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.c_ta_lib.ROCP", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outreal); + __Pyx_XDECREF((PyObject *)__pyx_v_real); + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "talib/_func.pxi":9508 + * @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_8c_ta_lib_269ROCR(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_268ROCR[] = " 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_8c_ta_lib_269ROCR = {"ROCR", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_269ROCR, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_268ROCR}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_269ROCR(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(2, 9508, __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(2, 9508, __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(2, 9508, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 9508, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_268ROCR(__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_8c_ta_lib_268ROCR(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod) { + npy_intp __pyx_v_length; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + TA_RetCode __pyx_v_retCode; + double *__pyx_v_real_data; + int __pyx_v_outbegidx; + int __pyx_v_outnbelement; + PyArrayObject *__pyx_v_outreal = 0; + double *__pyx_v_outreal_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __Pyx_RefNannySetupContext("ROCR", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real); + + /* "talib/_func.pxi":9530 + * np.ndarray outreal + * double* outreal_data + * 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/_func.pxi":9531 + * double* outreal_data + * 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__1069, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9531, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 9531, __pyx_L1_error) + + /* "talib/_func.pxi":9530 + * np.ndarray outreal + * double* outreal_data + * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real is not double") + * if real.ndim != 1: + */ + } + + /* "talib/_func.pxi":9532 + * 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/_func.pxi":9533 + * 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__1070, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9533, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 9533, __pyx_L1_error) + + /* "talib/_func.pxi":9532 + * 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/_func.pxi":9534 + * 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 = real.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":9535 + * raise Exception("real has wrong dimensions") + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< + * real_data = real.data + * length = real.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9535, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 9535, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":9534 + * 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 = real.data + */ + } + + /* "talib/_func.pxi":9536 + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data # <<<<<<<<<<<<<< + * length = real.shape[0] + * begidx = 0 + */ + __pyx_v_real_data = ((double *)__pyx_v_real->data); + + /* "talib/_func.pxi":9537 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data + * length = real.shape[0] # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_v_length = (__pyx_v_real->dimensions[0]); + + /* "talib/_func.pxi":9538 + * real_data = real.data + * length = real.shape[0] + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = real_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":9539 + * length = real.shape[0] + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = real_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":9540 + * begidx = 0 + * for i from 0 <= i < length: + * val = real_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_real_data[__pyx_v_i]); + + /* "talib/_func.pxi":9541 + * for i from 0 <= i < length: + * val = real_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":9542 + * val = real_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L6_continue; + + /* "talib/_func.pxi":9541 + * for i from 0 <= i < length: + * val = real_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":9543 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":9544 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L7_break; + __pyx_L6_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":9546 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_ROCR_Lookback( timeperiod ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1071, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9546, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 9546, __pyx_L1_error) + } + __pyx_L7_break:; + + /* "talib/_func.pxi":9547 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_ROCR_Lookback( timeperiod ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":9548 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_ROCR_Lookback( timeperiod ) # <<<<<<<<<<<<<< + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_ROCR_Lookback(__pyx_v_timeperiod)); + + /* "talib/_func.pxi":9549 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_ROCR_Lookback( timeperiod ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9549, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 9549, __pyx_L1_error) + __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":9550 + * lookback = begidx + lib.TA_ROCR_Lookback( timeperiod ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + */ + __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); + + /* "talib/_func.pxi":9551 + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outreal_data[i] = NaN + * retCode = lib.TA_ROCR( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":9552 + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN # <<<<<<<<<<<<<< + * retCode = lib.TA_ROCR( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_ROCR", retCode) + */ + (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_8c_ta_lib_NaN; + } + + /* "talib/_func.pxi":9553 + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + * retCode = lib.TA_ROCR( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_ROCR", retCode) + * return outreal + */ + __pyx_v_retCode = TA_ROCR(0, __pyx_v_endidx, ((double *)(__pyx_v_real_data + __pyx_v_begidx)), __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":9554 + * outreal_data[i] = NaN + * retCode = lib.TA_ROCR( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_ROCR", retCode) # <<<<<<<<<<<<<< + * return outreal + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_ROCR, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9554, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":9555 + * retCode = lib.TA_ROCR( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_ROCR", retCode) + * return outreal # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); + __pyx_r = ((PyObject *)__pyx_v_outreal); + goto __pyx_L0; + + /* "talib/_func.pxi":9508 + * @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.c_ta_lib.ROCR", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outreal); + __Pyx_XDECREF((PyObject *)__pyx_v_real); + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "talib/_func.pxi":9559 + * @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_8c_ta_lib_271ROCR100(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_270ROCR100[] = " 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_8c_ta_lib_271ROCR100 = {"ROCR100", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_271ROCR100, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_270ROCR100}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_271ROCR100(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(2, 9559, __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(2, 9559, __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(2, 9559, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 9559, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_270ROCR100(__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_8c_ta_lib_270ROCR100(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod) { + npy_intp __pyx_v_length; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + TA_RetCode __pyx_v_retCode; + double *__pyx_v_real_data; + int __pyx_v_outbegidx; + int __pyx_v_outnbelement; + PyArrayObject *__pyx_v_outreal = 0; + double *__pyx_v_outreal_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __Pyx_RefNannySetupContext("ROCR100", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real); + + /* "talib/_func.pxi":9581 + * np.ndarray outreal + * double* outreal_data + * 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/_func.pxi":9582 + * double* outreal_data + * 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__1072, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9582, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 9582, __pyx_L1_error) + + /* "talib/_func.pxi":9581 + * np.ndarray outreal + * double* outreal_data + * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real is not double") + * if real.ndim != 1: + */ + } + + /* "talib/_func.pxi":9583 + * 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/_func.pxi":9584 + * 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__1073, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9584, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 9584, __pyx_L1_error) + + /* "talib/_func.pxi":9583 + * 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/_func.pxi":9585 + * 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 = real.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":9586 + * raise Exception("real has wrong dimensions") + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< + * real_data = real.data + * length = real.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9586, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 9586, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":9585 + * 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 = real.data + */ + } + + /* "talib/_func.pxi":9587 + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data # <<<<<<<<<<<<<< + * length = real.shape[0] + * begidx = 0 + */ + __pyx_v_real_data = ((double *)__pyx_v_real->data); + + /* "talib/_func.pxi":9588 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data + * length = real.shape[0] # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_v_length = (__pyx_v_real->dimensions[0]); + + /* "talib/_func.pxi":9589 + * real_data = real.data + * length = real.shape[0] + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = real_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":9590 + * length = real.shape[0] + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = real_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":9591 + * begidx = 0 + * for i from 0 <= i < length: + * val = real_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_real_data[__pyx_v_i]); + + /* "talib/_func.pxi":9592 + * for i from 0 <= i < length: + * val = real_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":9593 + * val = real_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L6_continue; + + /* "talib/_func.pxi":9592 + * for i from 0 <= i < length: + * val = real_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":9594 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":9595 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L7_break; + __pyx_L6_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":9597 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_ROCR100_Lookback( timeperiod ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1074, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9597, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 9597, __pyx_L1_error) + } + __pyx_L7_break:; + + /* "talib/_func.pxi":9598 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_ROCR100_Lookback( timeperiod ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":9599 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_ROCR100_Lookback( timeperiod ) # <<<<<<<<<<<<<< + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_ROCR100_Lookback(__pyx_v_timeperiod)); + + /* "talib/_func.pxi":9600 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_ROCR100_Lookback( timeperiod ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9600, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 9600, __pyx_L1_error) + __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":9601 + * lookback = begidx + lib.TA_ROCR100_Lookback( timeperiod ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + */ + __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); + + /* "talib/_func.pxi":9602 + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outreal_data[i] = NaN + * retCode = lib.TA_ROCR100( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":9603 + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN # <<<<<<<<<<<<<< + * retCode = lib.TA_ROCR100( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_ROCR100", retCode) + */ + (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_8c_ta_lib_NaN; + } + + /* "talib/_func.pxi":9604 + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + * retCode = lib.TA_ROCR100( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_ROCR100", retCode) + * return outreal + */ + __pyx_v_retCode = TA_ROCR100(0, __pyx_v_endidx, ((double *)(__pyx_v_real_data + __pyx_v_begidx)), __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":9605 + * outreal_data[i] = NaN + * retCode = lib.TA_ROCR100( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_ROCR100", retCode) # <<<<<<<<<<<<<< + * return outreal + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_ROCR100, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9605, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":9606 + * retCode = lib.TA_ROCR100( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_ROCR100", retCode) + * return outreal # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); + __pyx_r = ((PyObject *)__pyx_v_outreal); + goto __pyx_L0; + + /* "talib/_func.pxi":9559 + * @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.c_ta_lib.ROCR100", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outreal); + __Pyx_XDECREF((PyObject *)__pyx_v_real); + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "talib/_func.pxi":9610 + * @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_8c_ta_lib_273RSI(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_272RSI[] = " 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_8c_ta_lib_273RSI = {"RSI", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_273RSI, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_272RSI}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_273RSI(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(2, 9610, __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(2, 9610, __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(2, 9610, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 9610, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_272RSI(__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_8c_ta_lib_272RSI(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod) { + npy_intp __pyx_v_length; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + TA_RetCode __pyx_v_retCode; + double *__pyx_v_real_data; + int __pyx_v_outbegidx; + int __pyx_v_outnbelement; + PyArrayObject *__pyx_v_outreal = 0; + double *__pyx_v_outreal_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __Pyx_RefNannySetupContext("RSI", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real); + + /* "talib/_func.pxi":9632 + * np.ndarray outreal + * double* outreal_data + * 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/_func.pxi":9633 + * double* outreal_data + * 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__1075, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9633, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 9633, __pyx_L1_error) + + /* "talib/_func.pxi":9632 + * np.ndarray outreal + * double* outreal_data + * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real is not double") + * if real.ndim != 1: + */ + } + + /* "talib/_func.pxi":9634 + * 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/_func.pxi":9635 + * 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__1076, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9635, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 9635, __pyx_L1_error) + + /* "talib/_func.pxi":9634 + * 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/_func.pxi":9636 + * 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 = real.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":9637 + * raise Exception("real has wrong dimensions") + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< + * real_data = real.data + * length = real.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9637, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 9637, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":9636 + * 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 = real.data + */ + } + + /* "talib/_func.pxi":9638 + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data # <<<<<<<<<<<<<< + * length = real.shape[0] + * begidx = 0 + */ + __pyx_v_real_data = ((double *)__pyx_v_real->data); + + /* "talib/_func.pxi":9639 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data + * length = real.shape[0] # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_v_length = (__pyx_v_real->dimensions[0]); + + /* "talib/_func.pxi":9640 + * real_data = real.data + * length = real.shape[0] + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = real_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":9641 + * length = real.shape[0] + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = real_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":9642 + * begidx = 0 + * for i from 0 <= i < length: + * val = real_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_real_data[__pyx_v_i]); + + /* "talib/_func.pxi":9643 + * for i from 0 <= i < length: + * val = real_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":9644 + * val = real_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L6_continue; + + /* "talib/_func.pxi":9643 + * for i from 0 <= i < length: + * val = real_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":9645 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":9646 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L7_break; + __pyx_L6_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":9648 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_RSI_Lookback( timeperiod ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1077, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9648, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 9648, __pyx_L1_error) + } + __pyx_L7_break:; + + /* "talib/_func.pxi":9649 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_RSI_Lookback( timeperiod ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":9650 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_RSI_Lookback( timeperiod ) # <<<<<<<<<<<<<< + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_RSI_Lookback(__pyx_v_timeperiod)); + + /* "talib/_func.pxi":9651 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_RSI_Lookback( timeperiod ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9651, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 9651, __pyx_L1_error) + __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":9652 + * lookback = begidx + lib.TA_RSI_Lookback( timeperiod ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + */ + __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); + + /* "talib/_func.pxi":9653 + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outreal_data[i] = NaN + * retCode = lib.TA_RSI( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":9654 + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN # <<<<<<<<<<<<<< + * retCode = lib.TA_RSI( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_RSI", retCode) + */ + (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_8c_ta_lib_NaN; + } + + /* "talib/_func.pxi":9655 + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + * retCode = lib.TA_RSI( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_RSI", retCode) + * return outreal + */ + __pyx_v_retCode = TA_RSI(0, __pyx_v_endidx, ((double *)(__pyx_v_real_data + __pyx_v_begidx)), __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":9656 + * outreal_data[i] = NaN + * retCode = lib.TA_RSI( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_RSI", retCode) # <<<<<<<<<<<<<< + * return outreal + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_RSI, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9656, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":9657 + * retCode = lib.TA_RSI( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_RSI", retCode) + * return outreal # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); + __pyx_r = ((PyObject *)__pyx_v_outreal); + goto __pyx_L0; + + /* "talib/_func.pxi":9610 + * @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.c_ta_lib.RSI", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outreal); + __Pyx_XDECREF((PyObject *)__pyx_v_real); + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "talib/_func.pxi":9661 + * @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_8c_ta_lib_275SAR(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_274SAR[] = " 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_8c_ta_lib_275SAR = {"SAR", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_275SAR, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_274SAR}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_275SAR(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(2, 9661, __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(2, 9661, __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(2, 9661, __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(2, 9661, __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(2, 9661, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 9661, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(2, 9661, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_274SAR(__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_8c_ta_lib_274SAR(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; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + TA_RetCode __pyx_v_retCode; + double *__pyx_v_high_data; + double *__pyx_v_low_data; + int __pyx_v_outbegidx; + int __pyx_v_outnbelement; + PyArrayObject *__pyx_v_outreal = 0; + double *__pyx_v_outreal_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __Pyx_RefNannySetupContext("SAR", 0); + __Pyx_INCREF((PyObject *)__pyx_v_high); + __Pyx_INCREF((PyObject *)__pyx_v_low); + + /* "talib/_func.pxi":9685 + * np.ndarray outreal + * double* outreal_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/_func.pxi":9686 + * double* outreal_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__1078, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9686, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 9686, __pyx_L1_error) + + /* "talib/_func.pxi":9685 + * np.ndarray outreal + * double* outreal_data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_func.pxi":9687 + * 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/_func.pxi":9688 + * raise 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__1079, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9688, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 9688, __pyx_L1_error) + + /* "talib/_func.pxi":9687 + * 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/_func.pxi":9689 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":9690 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9690, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 9690, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":9689 + * 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 = high.data + */ + } + + /* "talib/_func.pxi":9691 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":9692 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":9693 + * high_data = 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__1080, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9693, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 9693, __pyx_L1_error) + + /* "talib/_func.pxi":9692 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_func.pxi":9694 + * 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/_func.pxi":9695 + * raise 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__1081, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9695, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 9695, __pyx_L1_error) + + /* "talib/_func.pxi":9694 + * 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/_func.pxi":9696 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":9697 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * length = high.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9697, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 9697, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":9696 + * 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 = low.data + */ + } + + /* "talib/_func.pxi":9698 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data # <<<<<<<<<<<<<< + * length = high.shape[0] + * if length != low.shape[0]: + */ + __pyx_v_low_data = ((double *)__pyx_v_low->data); + + /* "talib/_func.pxi":9699 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":9700 + * low_data = low.data + * length = high.shape[0] + * if length != low.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + __pyx_t_1 = ((__pyx_v_length != (__pyx_v_low->dimensions[0])) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":9701 + * length = high.shape[0] + * if length != low.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1082, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9701, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 9701, __pyx_L1_error) + + /* "talib/_func.pxi":9700 + * low_data = low.data + * length = high.shape[0] + * if length != low.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + } + + /* "talib/_func.pxi":9702 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = high_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":9703 + * raise Exception("input lengths are different") + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = high_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":9704 + * begidx = 0 + * for i from 0 <= i < length: + * val = high_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); + + /* "talib/_func.pxi":9705 + * for i from 0 <= i < length: + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":9706 + * val = high_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = low_data[i] + * if val != val: + */ + goto __pyx_L10_continue; + + /* "talib/_func.pxi":9705 + * for i from 0 <= i < length: + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + } + + /* "talib/_func.pxi":9707 + * if val != val: + * continue + * val = low_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); + + /* "talib/_func.pxi":9708 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":9709 + * val = low_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L10_continue; + + /* "talib/_func.pxi":9708 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":9710 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":9711 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L11_break; + __pyx_L10_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":9713 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_SAR_Lookback( acceleration , maximum ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1083, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9713, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 9713, __pyx_L1_error) + } + __pyx_L11_break:; + + /* "talib/_func.pxi":9714 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_SAR_Lookback( acceleration , maximum ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":9715 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_SAR_Lookback( acceleration , maximum ) # <<<<<<<<<<<<<< + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_SAR_Lookback(__pyx_v_acceleration, __pyx_v_maximum)); + + /* "talib/_func.pxi":9716 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_SAR_Lookback( acceleration , maximum ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9716, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 9716, __pyx_L1_error) + __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":9717 + * lookback = begidx + lib.TA_SAR_Lookback( acceleration , maximum ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + */ + __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); + + /* "talib/_func.pxi":9718 + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outreal_data[i] = NaN + * retCode = lib.TA_SAR( 0 , endidx , (high_data+begidx) , (low_data+begidx) , acceleration , maximum , &outbegidx , &outnbelement , (outreal_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":9719 + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN # <<<<<<<<<<<<<< + * retCode = lib.TA_SAR( 0 , endidx , (high_data+begidx) , (low_data+begidx) , acceleration , maximum , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_SAR", retCode) + */ + (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_8c_ta_lib_NaN; + } + + /* "talib/_func.pxi":9720 + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + * retCode = lib.TA_SAR( 0 , endidx , (high_data+begidx) , (low_data+begidx) , acceleration , maximum , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_SAR", retCode) + * return outreal + */ + __pyx_v_retCode = TA_SAR(0, __pyx_v_endidx, ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), __pyx_v_acceleration, __pyx_v_maximum, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":9721 + * outreal_data[i] = NaN + * retCode = lib.TA_SAR( 0 , endidx , (high_data+begidx) , (low_data+begidx) , acceleration , maximum , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_SAR", retCode) # <<<<<<<<<<<<<< + * return outreal + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_SAR, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9721, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":9722 + * retCode = lib.TA_SAR( 0 , endidx , (high_data+begidx) , (low_data+begidx) , acceleration , maximum , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_SAR", retCode) + * return outreal # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); + __pyx_r = ((PyObject *)__pyx_v_outreal); + goto __pyx_L0; + + /* "talib/_func.pxi":9661 + * @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.c_ta_lib.SAR", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outreal); + __Pyx_XDECREF((PyObject *)__pyx_v_high); + __Pyx_XDECREF((PyObject *)__pyx_v_low); + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "talib/_func.pxi":9726 + * @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_8c_ta_lib_277SAREXT(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_276SAREXT[] = " 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_8c_ta_lib_277SAREXT = {"SAREXT", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_277SAREXT, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_276SAREXT}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_277SAREXT(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(2, 9726, __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(2, 9726, __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(2, 9726, __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(2, 9726, __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(2, 9726, __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(2, 9726, __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(2, 9726, __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(2, 9726, __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(2, 9726, __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(2, 9726, __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(2, 9726, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 9726, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(2, 9726, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_276SAREXT(__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_8c_ta_lib_276SAREXT(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; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + TA_RetCode __pyx_v_retCode; + double *__pyx_v_high_data; + double *__pyx_v_low_data; + int __pyx_v_outbegidx; + int __pyx_v_outnbelement; + PyArrayObject *__pyx_v_outreal = 0; + double *__pyx_v_outreal_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __Pyx_RefNannySetupContext("SAREXT", 0); + __Pyx_INCREF((PyObject *)__pyx_v_high); + __Pyx_INCREF((PyObject *)__pyx_v_low); + + /* "talib/_func.pxi":9756 + * np.ndarray outreal + * double* outreal_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/_func.pxi":9757 + * double* outreal_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__1084, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9757, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 9757, __pyx_L1_error) + + /* "talib/_func.pxi":9756 + * np.ndarray outreal + * double* outreal_data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_func.pxi":9758 + * 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/_func.pxi":9759 + * raise 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__1085, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9759, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 9759, __pyx_L1_error) + + /* "talib/_func.pxi":9758 + * 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/_func.pxi":9760 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":9761 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9761, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 9761, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":9760 + * 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 = high.data + */ + } + + /* "talib/_func.pxi":9762 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":9763 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":9764 + * high_data = 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__1086, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9764, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 9764, __pyx_L1_error) + + /* "talib/_func.pxi":9763 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_func.pxi":9765 + * 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/_func.pxi":9766 + * raise 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__1087, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9766, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 9766, __pyx_L1_error) + + /* "talib/_func.pxi":9765 + * 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/_func.pxi":9767 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":9768 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * length = high.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9768, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 9768, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":9767 + * 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 = low.data + */ + } + + /* "talib/_func.pxi":9769 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data # <<<<<<<<<<<<<< + * length = high.shape[0] + * if length != low.shape[0]: + */ + __pyx_v_low_data = ((double *)__pyx_v_low->data); + + /* "talib/_func.pxi":9770 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":9771 + * low_data = low.data + * length = high.shape[0] + * if length != low.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + __pyx_t_1 = ((__pyx_v_length != (__pyx_v_low->dimensions[0])) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":9772 + * length = high.shape[0] + * if length != low.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1088, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9772, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 9772, __pyx_L1_error) + + /* "talib/_func.pxi":9771 + * low_data = low.data + * length = high.shape[0] + * if length != low.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + } + + /* "talib/_func.pxi":9773 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = high_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":9774 + * raise Exception("input lengths are different") + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = high_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":9775 + * begidx = 0 + * for i from 0 <= i < length: + * val = high_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); + + /* "talib/_func.pxi":9776 + * for i from 0 <= i < length: + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":9777 + * val = high_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = low_data[i] + * if val != val: + */ + goto __pyx_L10_continue; + + /* "talib/_func.pxi":9776 + * for i from 0 <= i < length: + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + } + + /* "talib/_func.pxi":9778 + * if val != val: + * continue + * val = low_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); + + /* "talib/_func.pxi":9779 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":9780 + * val = low_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L10_continue; + + /* "talib/_func.pxi":9779 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":9781 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":9782 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L11_break; + __pyx_L10_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":9784 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_SAREXT_Lookback( startvalue , offsetonreverse , accelerationinitlong , accelerationlong , accelerationmaxlong , accelerationinitshort , accelerationshort , accelerationmaxshort ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1089, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9784, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 9784, __pyx_L1_error) + } + __pyx_L11_break:; + + /* "talib/_func.pxi":9785 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_SAREXT_Lookback( startvalue , offsetonreverse , accelerationinitlong , accelerationlong , accelerationmaxlong , accelerationinitshort , accelerationshort , accelerationmaxshort ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":9786 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_SAREXT_Lookback( startvalue , offsetonreverse , accelerationinitlong , accelerationlong , accelerationmaxlong , accelerationinitshort , accelerationshort , accelerationmaxshort ) # <<<<<<<<<<<<<< + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_SAREXT_Lookback(__pyx_v_startvalue, __pyx_v_offsetonreverse, __pyx_v_accelerationinitlong, __pyx_v_accelerationlong, __pyx_v_accelerationmaxlong, __pyx_v_accelerationinitshort, __pyx_v_accelerationshort, __pyx_v_accelerationmaxshort)); + + /* "talib/_func.pxi":9787 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_SAREXT_Lookback( startvalue , offsetonreverse , accelerationinitlong , accelerationlong , accelerationmaxlong , accelerationinitshort , accelerationshort , accelerationmaxshort ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9787, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 9787, __pyx_L1_error) + __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":9788 + * lookback = begidx + lib.TA_SAREXT_Lookback( startvalue , offsetonreverse , accelerationinitlong , accelerationlong , accelerationmaxlong , accelerationinitshort , accelerationshort , accelerationmaxshort ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + */ + __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); + + /* "talib/_func.pxi":9789 + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outreal_data[i] = NaN + * retCode = lib.TA_SAREXT( 0 , endidx , (high_data+begidx) , (low_data+begidx) , startvalue , offsetonreverse , accelerationinitlong , accelerationlong , accelerationmaxlong , accelerationinitshort , accelerationshort , accelerationmaxshort , &outbegidx , &outnbelement , (outreal_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":9790 + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN # <<<<<<<<<<<<<< + * retCode = lib.TA_SAREXT( 0 , endidx , (high_data+begidx) , (low_data+begidx) , startvalue , offsetonreverse , accelerationinitlong , accelerationlong , accelerationmaxlong , accelerationinitshort , accelerationshort , accelerationmaxshort , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_SAREXT", retCode) + */ + (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_8c_ta_lib_NaN; + } + + /* "talib/_func.pxi":9791 + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + * retCode = lib.TA_SAREXT( 0 , endidx , (high_data+begidx) , (low_data+begidx) , startvalue , offsetonreverse , accelerationinitlong , accelerationlong , accelerationmaxlong , accelerationinitshort , accelerationshort , accelerationmaxshort , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_SAREXT", retCode) + * return outreal + */ + __pyx_v_retCode = TA_SAREXT(0, __pyx_v_endidx, ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), __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), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":9792 + * outreal_data[i] = NaN + * retCode = lib.TA_SAREXT( 0 , endidx , (high_data+begidx) , (low_data+begidx) , startvalue , offsetonreverse , accelerationinitlong , accelerationlong , accelerationmaxlong , accelerationinitshort , accelerationshort , accelerationmaxshort , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_SAREXT", retCode) # <<<<<<<<<<<<<< + * return outreal + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_SAREXT, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9792, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":9793 + * retCode = lib.TA_SAREXT( 0 , endidx , (high_data+begidx) , (low_data+begidx) , startvalue , offsetonreverse , accelerationinitlong , accelerationlong , accelerationmaxlong , accelerationinitshort , accelerationshort , accelerationmaxshort , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_SAREXT", retCode) + * return outreal # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); + __pyx_r = ((PyObject *)__pyx_v_outreal); + goto __pyx_L0; + + /* "talib/_func.pxi":9726 + * @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.c_ta_lib.SAREXT", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outreal); + __Pyx_XDECREF((PyObject *)__pyx_v_high); + __Pyx_XDECREF((PyObject *)__pyx_v_low); + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "talib/_func.pxi":9797 + * @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_8c_ta_lib_279SIN(PyObject *__pyx_self, PyObject *__pyx_v_real); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_278SIN[] = " 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_8c_ta_lib_279SIN = {"SIN", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_279SIN, METH_O, __pyx_doc_5talib_8c_ta_lib_278SIN}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_279SIN(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(2, 9797, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_278SIN(__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_8c_ta_lib_278SIN(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real) { + npy_intp __pyx_v_length; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + TA_RetCode __pyx_v_retCode; + double *__pyx_v_real_data; + int __pyx_v_outbegidx; + int __pyx_v_outnbelement; + PyArrayObject *__pyx_v_outreal = 0; + double *__pyx_v_outreal_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __Pyx_RefNannySetupContext("SIN", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real); + + /* "talib/_func.pxi":9817 + * np.ndarray outreal + * double* outreal_data + * 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/_func.pxi":9818 + * double* outreal_data + * 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__1090, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9818, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 9818, __pyx_L1_error) + + /* "talib/_func.pxi":9817 + * np.ndarray outreal + * double* outreal_data + * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real is not double") + * if real.ndim != 1: + */ + } + + /* "talib/_func.pxi":9819 + * 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/_func.pxi":9820 + * 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__1091, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9820, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 9820, __pyx_L1_error) + + /* "talib/_func.pxi":9819 + * 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/_func.pxi":9821 + * 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 = real.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":9822 + * raise Exception("real has wrong dimensions") + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< + * real_data = real.data + * length = real.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9822, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 9822, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":9821 + * 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 = real.data + */ + } + + /* "talib/_func.pxi":9823 + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data # <<<<<<<<<<<<<< + * length = real.shape[0] + * begidx = 0 + */ + __pyx_v_real_data = ((double *)__pyx_v_real->data); + + /* "talib/_func.pxi":9824 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data + * length = real.shape[0] # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_v_length = (__pyx_v_real->dimensions[0]); + + /* "talib/_func.pxi":9825 + * real_data = real.data + * length = real.shape[0] + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = real_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":9826 + * length = real.shape[0] + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = real_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":9827 + * begidx = 0 + * for i from 0 <= i < length: + * val = real_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_real_data[__pyx_v_i]); + + /* "talib/_func.pxi":9828 + * for i from 0 <= i < length: + * val = real_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":9829 + * val = real_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L6_continue; + + /* "talib/_func.pxi":9828 + * for i from 0 <= i < length: + * val = real_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":9830 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":9831 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L7_break; + __pyx_L6_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":9833 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_SIN_Lookback( ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1092, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9833, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 9833, __pyx_L1_error) + } + __pyx_L7_break:; + + /* "talib/_func.pxi":9834 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_SIN_Lookback( ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":9835 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_SIN_Lookback( ) # <<<<<<<<<<<<<< + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_SIN_Lookback()); + + /* "talib/_func.pxi":9836 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_SIN_Lookback( ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9836, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 9836, __pyx_L1_error) + __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":9837 + * lookback = begidx + lib.TA_SIN_Lookback( ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + */ + __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); + + /* "talib/_func.pxi":9838 + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outreal_data[i] = NaN + * retCode = lib.TA_SIN( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":9839 + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN # <<<<<<<<<<<<<< + * retCode = lib.TA_SIN( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_SIN", retCode) + */ + (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_8c_ta_lib_NaN; + } + + /* "talib/_func.pxi":9840 + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + * retCode = lib.TA_SIN( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_SIN", retCode) + * return outreal + */ + __pyx_v_retCode = TA_SIN(0, __pyx_v_endidx, ((double *)(__pyx_v_real_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":9841 + * outreal_data[i] = NaN + * retCode = lib.TA_SIN( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_SIN", retCode) # <<<<<<<<<<<<<< + * return outreal + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_SIN, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9841, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":9842 + * retCode = lib.TA_SIN( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_SIN", retCode) + * return outreal # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); + __pyx_r = ((PyObject *)__pyx_v_outreal); + goto __pyx_L0; + + /* "talib/_func.pxi":9797 + * @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.c_ta_lib.SIN", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outreal); + __Pyx_XDECREF((PyObject *)__pyx_v_real); + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "talib/_func.pxi":9846 + * @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_8c_ta_lib_281SINH(PyObject *__pyx_self, PyObject *__pyx_v_real); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_280SINH[] = " 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_8c_ta_lib_281SINH = {"SINH", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_281SINH, METH_O, __pyx_doc_5talib_8c_ta_lib_280SINH}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_281SINH(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(2, 9846, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_280SINH(__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_8c_ta_lib_280SINH(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real) { + npy_intp __pyx_v_length; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + TA_RetCode __pyx_v_retCode; + double *__pyx_v_real_data; + int __pyx_v_outbegidx; + int __pyx_v_outnbelement; + PyArrayObject *__pyx_v_outreal = 0; + double *__pyx_v_outreal_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __Pyx_RefNannySetupContext("SINH", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real); + + /* "talib/_func.pxi":9866 + * np.ndarray outreal + * double* outreal_data + * 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/_func.pxi":9867 + * double* outreal_data + * 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__1093, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9867, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 9867, __pyx_L1_error) + + /* "talib/_func.pxi":9866 + * np.ndarray outreal + * double* outreal_data + * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real is not double") + * if real.ndim != 1: + */ + } + + /* "talib/_func.pxi":9868 + * 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/_func.pxi":9869 + * 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__1094, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9869, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 9869, __pyx_L1_error) + + /* "talib/_func.pxi":9868 + * 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/_func.pxi":9870 + * 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 = real.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":9871 + * raise Exception("real has wrong dimensions") + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< + * real_data = real.data + * length = real.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9871, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 9871, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":9870 + * 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 = real.data + */ + } + + /* "talib/_func.pxi":9872 + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data # <<<<<<<<<<<<<< + * length = real.shape[0] + * begidx = 0 + */ + __pyx_v_real_data = ((double *)__pyx_v_real->data); + + /* "talib/_func.pxi":9873 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data + * length = real.shape[0] # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_v_length = (__pyx_v_real->dimensions[0]); + + /* "talib/_func.pxi":9874 + * real_data = real.data + * length = real.shape[0] + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = real_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":9875 + * length = real.shape[0] + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = real_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":9876 + * begidx = 0 + * for i from 0 <= i < length: + * val = real_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_real_data[__pyx_v_i]); + + /* "talib/_func.pxi":9877 + * for i from 0 <= i < length: + * val = real_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":9878 + * val = real_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L6_continue; + + /* "talib/_func.pxi":9877 + * for i from 0 <= i < length: + * val = real_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":9879 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":9880 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L7_break; + __pyx_L6_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":9882 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_SINH_Lookback( ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1095, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9882, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 9882, __pyx_L1_error) + } + __pyx_L7_break:; + + /* "talib/_func.pxi":9883 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_SINH_Lookback( ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":9884 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_SINH_Lookback( ) # <<<<<<<<<<<<<< + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_SINH_Lookback()); + + /* "talib/_func.pxi":9885 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_SINH_Lookback( ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9885, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 9885, __pyx_L1_error) + __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":9886 + * lookback = begidx + lib.TA_SINH_Lookback( ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + */ + __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); + + /* "talib/_func.pxi":9887 + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outreal_data[i] = NaN + * retCode = lib.TA_SINH( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":9888 + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN # <<<<<<<<<<<<<< + * retCode = lib.TA_SINH( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_SINH", retCode) + */ + (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_8c_ta_lib_NaN; + } + + /* "talib/_func.pxi":9889 + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + * retCode = lib.TA_SINH( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_SINH", retCode) + * return outreal + */ + __pyx_v_retCode = TA_SINH(0, __pyx_v_endidx, ((double *)(__pyx_v_real_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":9890 + * outreal_data[i] = NaN + * retCode = lib.TA_SINH( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_SINH", retCode) # <<<<<<<<<<<<<< + * return outreal + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_SINH, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9890, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":9891 + * retCode = lib.TA_SINH( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_SINH", retCode) + * return outreal # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); + __pyx_r = ((PyObject *)__pyx_v_outreal); + goto __pyx_L0; + + /* "talib/_func.pxi":9846 + * @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.c_ta_lib.SINH", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outreal); + __Pyx_XDECREF((PyObject *)__pyx_v_real); + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "talib/_func.pxi":9895 + * @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_8c_ta_lib_283SMA(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_282SMA[] = " 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_8c_ta_lib_283SMA = {"SMA", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_283SMA, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_282SMA}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_283SMA(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(2, 9895, __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(2, 9895, __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(2, 9895, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 9895, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_282SMA(__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_8c_ta_lib_282SMA(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod) { + npy_intp __pyx_v_length; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + TA_RetCode __pyx_v_retCode; + double *__pyx_v_real_data; + int __pyx_v_outbegidx; + int __pyx_v_outnbelement; + PyArrayObject *__pyx_v_outreal = 0; + double *__pyx_v_outreal_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __Pyx_RefNannySetupContext("SMA", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real); + + /* "talib/_func.pxi":9917 + * np.ndarray outreal + * double* outreal_data + * 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/_func.pxi":9918 + * double* outreal_data + * 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__1096, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9918, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 9918, __pyx_L1_error) + + /* "talib/_func.pxi":9917 + * np.ndarray outreal + * double* outreal_data + * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real is not double") + * if real.ndim != 1: + */ + } + + /* "talib/_func.pxi":9919 + * 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/_func.pxi":9920 + * 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__1097, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9920, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 9920, __pyx_L1_error) + + /* "talib/_func.pxi":9919 + * 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/_func.pxi":9921 + * 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 = real.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":9922 + * raise Exception("real has wrong dimensions") + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< + * real_data = real.data + * length = real.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9922, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 9922, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":9921 + * 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 = real.data + */ + } + + /* "talib/_func.pxi":9923 + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data # <<<<<<<<<<<<<< + * length = real.shape[0] + * begidx = 0 + */ + __pyx_v_real_data = ((double *)__pyx_v_real->data); + + /* "talib/_func.pxi":9924 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data + * length = real.shape[0] # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_v_length = (__pyx_v_real->dimensions[0]); + + /* "talib/_func.pxi":9925 + * real_data = real.data + * length = real.shape[0] + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = real_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":9926 + * length = real.shape[0] + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = real_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":9927 + * begidx = 0 + * for i from 0 <= i < length: + * val = real_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_real_data[__pyx_v_i]); + + /* "talib/_func.pxi":9928 + * for i from 0 <= i < length: + * val = real_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":9929 + * val = real_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L6_continue; + + /* "talib/_func.pxi":9928 + * for i from 0 <= i < length: + * val = real_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":9930 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":9931 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L7_break; + __pyx_L6_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":9933 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_SMA_Lookback( timeperiod ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1098, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9933, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 9933, __pyx_L1_error) + } + __pyx_L7_break:; + + /* "talib/_func.pxi":9934 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_SMA_Lookback( timeperiod ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":9935 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_SMA_Lookback( timeperiod ) # <<<<<<<<<<<<<< + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_SMA_Lookback(__pyx_v_timeperiod)); + + /* "talib/_func.pxi":9936 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_SMA_Lookback( timeperiod ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9936, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 9936, __pyx_L1_error) + __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":9937 + * lookback = begidx + lib.TA_SMA_Lookback( timeperiod ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + */ + __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); + + /* "talib/_func.pxi":9938 + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outreal_data[i] = NaN + * retCode = lib.TA_SMA( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":9939 + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN # <<<<<<<<<<<<<< + * retCode = lib.TA_SMA( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_SMA", retCode) + */ + (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_8c_ta_lib_NaN; + } + + /* "talib/_func.pxi":9940 + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + * retCode = lib.TA_SMA( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_SMA", retCode) + * return outreal + */ + __pyx_v_retCode = TA_SMA(0, __pyx_v_endidx, ((double *)(__pyx_v_real_data + __pyx_v_begidx)), __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":9941 + * outreal_data[i] = NaN + * retCode = lib.TA_SMA( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_SMA", retCode) # <<<<<<<<<<<<<< + * return outreal + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_SMA, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9941, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":9942 + * retCode = lib.TA_SMA( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_SMA", retCode) + * return outreal # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); + __pyx_r = ((PyObject *)__pyx_v_outreal); + goto __pyx_L0; + + /* "talib/_func.pxi":9895 + * @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.c_ta_lib.SMA", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outreal); + __Pyx_XDECREF((PyObject *)__pyx_v_real); + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "talib/_func.pxi":9946 + * @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_8c_ta_lib_285SQRT(PyObject *__pyx_self, PyObject *__pyx_v_real); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_284SQRT[] = " 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_8c_ta_lib_285SQRT = {"SQRT", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_285SQRT, METH_O, __pyx_doc_5talib_8c_ta_lib_284SQRT}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_285SQRT(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(2, 9946, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_284SQRT(__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_8c_ta_lib_284SQRT(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real) { + npy_intp __pyx_v_length; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + TA_RetCode __pyx_v_retCode; + double *__pyx_v_real_data; + int __pyx_v_outbegidx; + int __pyx_v_outnbelement; + PyArrayObject *__pyx_v_outreal = 0; + double *__pyx_v_outreal_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __Pyx_RefNannySetupContext("SQRT", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real); + + /* "talib/_func.pxi":9966 + * np.ndarray outreal + * double* outreal_data + * 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/_func.pxi":9967 + * double* outreal_data + * 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__1099, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9967, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 9967, __pyx_L1_error) + + /* "talib/_func.pxi":9966 + * np.ndarray outreal + * double* outreal_data + * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real is not double") + * if real.ndim != 1: + */ + } + + /* "talib/_func.pxi":9968 + * 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/_func.pxi":9969 + * 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__1100, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9969, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 9969, __pyx_L1_error) + + /* "talib/_func.pxi":9968 + * 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/_func.pxi":9970 + * 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 = real.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":9971 + * raise Exception("real has wrong dimensions") + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< + * real_data = real.data + * length = real.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9971, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 9971, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":9970 + * 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 = real.data + */ + } + + /* "talib/_func.pxi":9972 + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data # <<<<<<<<<<<<<< + * length = real.shape[0] + * begidx = 0 + */ + __pyx_v_real_data = ((double *)__pyx_v_real->data); + + /* "talib/_func.pxi":9973 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data + * length = real.shape[0] # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_v_length = (__pyx_v_real->dimensions[0]); + + /* "talib/_func.pxi":9974 + * real_data = real.data + * length = real.shape[0] + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = real_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":9975 + * length = real.shape[0] + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = real_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":9976 + * begidx = 0 + * for i from 0 <= i < length: + * val = real_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_real_data[__pyx_v_i]); + + /* "talib/_func.pxi":9977 + * for i from 0 <= i < length: + * val = real_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":9978 + * val = real_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L6_continue; + + /* "talib/_func.pxi":9977 + * for i from 0 <= i < length: + * val = real_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":9979 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":9980 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L7_break; + __pyx_L6_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":9982 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_SQRT_Lookback( ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1101, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9982, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 9982, __pyx_L1_error) + } + __pyx_L7_break:; + + /* "talib/_func.pxi":9983 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_SQRT_Lookback( ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":9984 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_SQRT_Lookback( ) # <<<<<<<<<<<<<< + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_SQRT_Lookback()); + + /* "talib/_func.pxi":9985 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_SQRT_Lookback( ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9985, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 9985, __pyx_L1_error) + __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":9986 + * lookback = begidx + lib.TA_SQRT_Lookback( ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + */ + __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); + + /* "talib/_func.pxi":9987 + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outreal_data[i] = NaN + * retCode = lib.TA_SQRT( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":9988 + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN # <<<<<<<<<<<<<< + * retCode = lib.TA_SQRT( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_SQRT", retCode) + */ + (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_8c_ta_lib_NaN; + } + + /* "talib/_func.pxi":9989 + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + * retCode = lib.TA_SQRT( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_SQRT", retCode) + * return outreal + */ + __pyx_v_retCode = TA_SQRT(0, __pyx_v_endidx, ((double *)(__pyx_v_real_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":9990 + * outreal_data[i] = NaN + * retCode = lib.TA_SQRT( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_SQRT", retCode) # <<<<<<<<<<<<<< + * return outreal + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_SQRT, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9990, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":9991 + * retCode = lib.TA_SQRT( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_SQRT", retCode) + * return outreal # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); + __pyx_r = ((PyObject *)__pyx_v_outreal); + goto __pyx_L0; + + /* "talib/_func.pxi":9946 + * @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.c_ta_lib.SQRT", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outreal); + __Pyx_XDECREF((PyObject *)__pyx_v_real); + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "talib/_func.pxi":9995 + * @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_8c_ta_lib_287STDDEV(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_286STDDEV[] = " 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_8c_ta_lib_287STDDEV = {"STDDEV", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_287STDDEV, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_286STDDEV}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_287STDDEV(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(2, 9995, __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(2, 9995, __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(2, 9995, __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(2, 9995, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 9995, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_286STDDEV(__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_8c_ta_lib_286STDDEV(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod, double __pyx_v_nbdev) { + npy_intp __pyx_v_length; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + TA_RetCode __pyx_v_retCode; + double *__pyx_v_real_data; + int __pyx_v_outbegidx; + int __pyx_v_outnbelement; + PyArrayObject *__pyx_v_outreal = 0; + double *__pyx_v_outreal_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __Pyx_RefNannySetupContext("STDDEV", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real); + + /* "talib/_func.pxi":10018 + * np.ndarray outreal + * double* outreal_data + * 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/_func.pxi":10019 + * double* outreal_data + * 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__1102, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10019, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 10019, __pyx_L1_error) + + /* "talib/_func.pxi":10018 + * np.ndarray outreal + * double* outreal_data + * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real is not double") + * if real.ndim != 1: + */ + } + + /* "talib/_func.pxi":10020 + * 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/_func.pxi":10021 + * 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__1103, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10021, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 10021, __pyx_L1_error) + + /* "talib/_func.pxi":10020 + * 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/_func.pxi":10022 + * 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 = real.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":10023 + * raise Exception("real has wrong dimensions") + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< + * real_data = real.data + * length = real.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10023, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 10023, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":10022 + * 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 = real.data + */ + } + + /* "talib/_func.pxi":10024 + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data # <<<<<<<<<<<<<< + * length = real.shape[0] + * begidx = 0 + */ + __pyx_v_real_data = ((double *)__pyx_v_real->data); + + /* "talib/_func.pxi":10025 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data + * length = real.shape[0] # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_v_length = (__pyx_v_real->dimensions[0]); + + /* "talib/_func.pxi":10026 + * real_data = real.data + * length = real.shape[0] + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = real_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":10027 + * length = real.shape[0] + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = real_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":10028 + * begidx = 0 + * for i from 0 <= i < length: + * val = real_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_real_data[__pyx_v_i]); + + /* "talib/_func.pxi":10029 + * for i from 0 <= i < length: + * val = real_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":10030 + * val = real_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L6_continue; + + /* "talib/_func.pxi":10029 + * for i from 0 <= i < length: + * val = real_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":10031 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":10032 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L7_break; + __pyx_L6_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":10034 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_STDDEV_Lookback( timeperiod , nbdev ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1104, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10034, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 10034, __pyx_L1_error) + } + __pyx_L7_break:; + + /* "talib/_func.pxi":10035 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_STDDEV_Lookback( timeperiod , nbdev ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":10036 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_STDDEV_Lookback( timeperiod , nbdev ) # <<<<<<<<<<<<<< + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_STDDEV_Lookback(__pyx_v_timeperiod, __pyx_v_nbdev)); + + /* "talib/_func.pxi":10037 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_STDDEV_Lookback( timeperiod , nbdev ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10037, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 10037, __pyx_L1_error) + __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":10038 + * lookback = begidx + lib.TA_STDDEV_Lookback( timeperiod , nbdev ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + */ + __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); + + /* "talib/_func.pxi":10039 + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outreal_data[i] = NaN + * retCode = lib.TA_STDDEV( 0 , endidx , (real_data+begidx) , timeperiod , nbdev , &outbegidx , &outnbelement , (outreal_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":10040 + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN # <<<<<<<<<<<<<< + * retCode = lib.TA_STDDEV( 0 , endidx , (real_data+begidx) , timeperiod , nbdev , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_STDDEV", retCode) + */ + (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_8c_ta_lib_NaN; + } + + /* "talib/_func.pxi":10041 + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + * retCode = lib.TA_STDDEV( 0 , endidx , (real_data+begidx) , timeperiod , nbdev , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_STDDEV", retCode) + * return outreal + */ + __pyx_v_retCode = TA_STDDEV(0, __pyx_v_endidx, ((double *)(__pyx_v_real_data + __pyx_v_begidx)), __pyx_v_timeperiod, __pyx_v_nbdev, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":10042 + * outreal_data[i] = NaN + * retCode = lib.TA_STDDEV( 0 , endidx , (real_data+begidx) , timeperiod , nbdev , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_STDDEV", retCode) # <<<<<<<<<<<<<< + * return outreal + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_STDDEV, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10042, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":10043 + * retCode = lib.TA_STDDEV( 0 , endidx , (real_data+begidx) , timeperiod , nbdev , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_STDDEV", retCode) + * return outreal # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); + __pyx_r = ((PyObject *)__pyx_v_outreal); + goto __pyx_L0; + + /* "talib/_func.pxi":9995 + * @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.c_ta_lib.STDDEV", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outreal); + __Pyx_XDECREF((PyObject *)__pyx_v_real); + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "talib/_func.pxi":10047 + * @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_8c_ta_lib_289STOCH(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_288STOCH[] = " 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_8c_ta_lib_289STOCH = {"STOCH", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_289STOCH, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_288STOCH}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_289STOCH(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(2, 10047, __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(2, 10047, __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(2, 10047, __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(2, 10047, __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(2, 10047, __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(2, 10047, __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(2, 10047, __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(2, 10047, __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(2, 10047, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 10047, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(2, 10047, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(2, 10047, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_288STOCH(__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_8c_ta_lib_288STOCH(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; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + 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; + PyArrayObject *__pyx_v_outslowk = 0; + double *__pyx_v_outslowk_data; + PyArrayObject *__pyx_v_outslowd = 0; + double *__pyx_v_outslowd_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __Pyx_RefNannySetupContext("STOCH", 0); + __Pyx_INCREF((PyObject *)__pyx_v_high); + __Pyx_INCREF((PyObject *)__pyx_v_low); + __Pyx_INCREF((PyObject *)__pyx_v_close); + + /* "talib/_func.pxi":10078 + * np.ndarray outslowd + * double* outslowd_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/_func.pxi":10079 + * double* outslowd_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__1105, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10079, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 10079, __pyx_L1_error) + + /* "talib/_func.pxi":10078 + * np.ndarray outslowd + * double* outslowd_data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_func.pxi":10080 + * 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/_func.pxi":10081 + * raise 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__1106, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10081, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 10081, __pyx_L1_error) + + /* "talib/_func.pxi":10080 + * 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/_func.pxi":10082 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":10083 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10083, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 10083, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":10082 + * 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 = high.data + */ + } + + /* "talib/_func.pxi":10084 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":10085 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":10086 + * high_data = 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__1107, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10086, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 10086, __pyx_L1_error) + + /* "talib/_func.pxi":10085 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_func.pxi":10087 + * 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/_func.pxi":10088 + * raise 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__1108, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10088, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 10088, __pyx_L1_error) + + /* "talib/_func.pxi":10087 + * 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/_func.pxi":10089 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":10090 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10090, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 10090, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":10089 + * 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 = low.data + */ + } + + /* "talib/_func.pxi":10091 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":10092 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":10093 + * low_data = 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__1109, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10093, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 10093, __pyx_L1_error) + + /* "talib/_func.pxi":10092 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_func.pxi":10094 + * 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/_func.pxi":10095 + * raise 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__1110, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10095, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 10095, __pyx_L1_error) + + /* "talib/_func.pxi":10094 + * 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/_func.pxi":10096 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":10097 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = high.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10097, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 10097, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":10096 + * 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 = close.data + */ + } + + /* "talib/_func.pxi":10098 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = high.shape[0] + * if length != low.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_func.pxi":10099 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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/_func.pxi":10100 + * close_data = 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/_func.pxi":10101 + * 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__1111, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10101, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 10101, __pyx_L1_error) + + /* "talib/_func.pxi":10100 + * close_data = close.data + * length = high.shape[0] + * if length != low.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != close.shape[0]: + */ + } + + /* "talib/_func.pxi":10102 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":10103 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1112, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10103, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 10103, __pyx_L1_error) + + /* "talib/_func.pxi":10102 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + } + + /* "talib/_func.pxi":10104 + * if length != close.shape[0]: + * raise Exception("input lengths are different") + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = high_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":10105 + * raise Exception("input lengths are different") + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = high_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":10106 + * begidx = 0 + * for i from 0 <= i < length: + * val = high_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); + + /* "talib/_func.pxi":10107 + * for i from 0 <= i < length: + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":10108 + * val = high_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = low_data[i] + * if val != val: + */ + goto __pyx_L14_continue; + + /* "talib/_func.pxi":10107 + * for i from 0 <= i < length: + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + } + + /* "talib/_func.pxi":10109 + * if val != val: + * continue + * val = low_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); + + /* "talib/_func.pxi":10110 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":10111 + * val = low_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = close_data[i] + * if val != val: + */ + goto __pyx_L14_continue; + + /* "talib/_func.pxi":10110 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + } + + /* "talib/_func.pxi":10112 + * if val != val: + * continue + * val = close_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); + + /* "talib/_func.pxi":10113 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":10114 + * val = close_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L14_continue; + + /* "talib/_func.pxi":10113 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":10115 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":10116 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L15_break; + __pyx_L14_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":10118 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_STOCH_Lookback( fastk_period , slowk_period , slowk_matype , slowd_period , slowd_matype ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1113, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10118, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 10118, __pyx_L1_error) + } + __pyx_L15_break:; + + /* "talib/_func.pxi":10119 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_STOCH_Lookback( fastk_period , slowk_period , slowk_matype , slowd_period , slowd_matype ) + * outslowk = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":10120 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_STOCH_Lookback( fastk_period , slowk_period , slowk_matype , slowd_period , slowd_matype ) # <<<<<<<<<<<<<< + * outslowk = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outslowk_data = outslowk.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_STOCH_Lookback(__pyx_v_fastk_period, __pyx_v_slowk_period, __pyx_v_slowk_matype, __pyx_v_slowd_period, __pyx_v_slowd_matype)); + + /* "talib/_func.pxi":10121 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_STOCH_Lookback( fastk_period , slowk_period , slowk_matype , slowd_period , slowd_matype ) + * outslowk = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outslowk_data = outslowk.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10121, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 10121, __pyx_L1_error) + __pyx_v_outslowk = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":10122 + * lookback = begidx + lib.TA_STOCH_Lookback( fastk_period , slowk_period , slowk_matype , slowd_period , slowd_matype ) + * outslowk = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outslowk_data = outslowk.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outslowk_data[i] = NaN + */ + __pyx_v_outslowk_data = ((double *)__pyx_v_outslowk->data); + + /* "talib/_func.pxi":10123 + * outslowk = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outslowk_data = outslowk.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outslowk_data[i] = NaN + * outslowd = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":10124 + * outslowk_data = outslowk.data + * for i from 0 <= i < min(lookback, length): + * outslowk_data[i] = NaN # <<<<<<<<<<<<<< + * outslowd = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outslowd_data = outslowd.data + */ + (__pyx_v_outslowk_data[__pyx_v_i]) = __pyx_v_5talib_8c_ta_lib_NaN; + } + + /* "talib/_func.pxi":10125 + * for i from 0 <= i < min(lookback, length): + * outslowk_data[i] = NaN + * outslowd = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outslowd_data = outslowd.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10125, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 10125, __pyx_L1_error) + __pyx_v_outslowd = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":10126 + * outslowk_data[i] = NaN + * outslowd = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outslowd_data = outslowd.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outslowd_data[i] = NaN + */ + __pyx_v_outslowd_data = ((double *)__pyx_v_outslowd->data); + + /* "talib/_func.pxi":10127 + * outslowd = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outslowd_data = outslowd.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outslowd_data[i] = NaN + * retCode = lib.TA_STOCH( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , fastk_period , slowk_period , slowk_matype , slowd_period , slowd_matype , &outbegidx , &outnbelement , (outslowk_data+lookback) , (outslowd_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":10128 + * outslowd_data = outslowd.data + * for i from 0 <= i < min(lookback, length): + * outslowd_data[i] = NaN # <<<<<<<<<<<<<< + * retCode = lib.TA_STOCH( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , fastk_period , slowk_period , slowk_matype , slowd_period , slowd_matype , &outbegidx , &outnbelement , (outslowk_data+lookback) , (outslowd_data+lookback) ) + * _ta_check_success("TA_STOCH", retCode) + */ + (__pyx_v_outslowd_data[__pyx_v_i]) = __pyx_v_5talib_8c_ta_lib_NaN; + } + + /* "talib/_func.pxi":10129 + * for i from 0 <= i < min(lookback, length): + * outslowd_data[i] = NaN + * retCode = lib.TA_STOCH( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , fastk_period , slowk_period , slowk_matype , slowd_period , slowd_matype , &outbegidx , &outnbelement , (outslowk_data+lookback) , (outslowd_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_STOCH", retCode) + * return outslowk , outslowd + */ + __pyx_v_retCode = TA_STOCH(0, __pyx_v_endidx, ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), __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), ((double *)(__pyx_v_outslowk_data + __pyx_v_lookback)), ((double *)(__pyx_v_outslowd_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":10130 + * outslowd_data[i] = NaN + * retCode = lib.TA_STOCH( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , fastk_period , slowk_period , slowk_matype , slowd_period , slowd_matype , &outbegidx , &outnbelement , (outslowk_data+lookback) , (outslowd_data+lookback) ) + * _ta_check_success("TA_STOCH", retCode) # <<<<<<<<<<<<<< + * return outslowk , outslowd + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_STOCH, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10130, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":10131 + * retCode = lib.TA_STOCH( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , fastk_period , slowk_period , slowk_matype , slowd_period , slowd_matype , &outbegidx , &outnbelement , (outslowk_data+lookback) , (outslowd_data+lookback) ) + * _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 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10131, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_INCREF(((PyObject *)__pyx_v_outslowk)); + __Pyx_GIVEREF(((PyObject *)__pyx_v_outslowk)); + PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_v_outslowk)); + __Pyx_INCREF(((PyObject *)__pyx_v_outslowd)); + __Pyx_GIVEREF(((PyObject *)__pyx_v_outslowd)); + PyTuple_SET_ITEM(__pyx_t_2, 1, ((PyObject *)__pyx_v_outslowd)); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_func.pxi":10047 + * @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_AddTraceback("talib.c_ta_lib.STOCH", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outslowk); + __Pyx_XDECREF((PyObject *)__pyx_v_outslowd); + __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/_func.pxi":10135 + * @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_8c_ta_lib_291STOCHF(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_290STOCHF[] = " 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_8c_ta_lib_291STOCHF = {"STOCHF", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_291STOCHF, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_290STOCHF}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_291STOCHF(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(2, 10135, __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(2, 10135, __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(2, 10135, __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(2, 10135, __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(2, 10135, __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(2, 10135, __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(2, 10135, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 10135, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(2, 10135, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(2, 10135, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_290STOCHF(__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_8c_ta_lib_290STOCHF(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; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + 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; + PyArrayObject *__pyx_v_outfastk = 0; + double *__pyx_v_outfastk_data; + PyArrayObject *__pyx_v_outfastd = 0; + double *__pyx_v_outfastd_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __Pyx_RefNannySetupContext("STOCHF", 0); + __Pyx_INCREF((PyObject *)__pyx_v_high); + __Pyx_INCREF((PyObject *)__pyx_v_low); + __Pyx_INCREF((PyObject *)__pyx_v_close); + + /* "talib/_func.pxi":10164 + * np.ndarray outfastd + * double* outfastd_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/_func.pxi":10165 + * double* outfastd_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__1114, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10165, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 10165, __pyx_L1_error) + + /* "talib/_func.pxi":10164 + * np.ndarray outfastd + * double* outfastd_data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_func.pxi":10166 + * 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/_func.pxi":10167 + * raise 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__1115, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10167, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 10167, __pyx_L1_error) + + /* "talib/_func.pxi":10166 + * 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/_func.pxi":10168 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":10169 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10169, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 10169, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":10168 + * 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 = high.data + */ + } + + /* "talib/_func.pxi":10170 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":10171 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":10172 + * high_data = 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__1116, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10172, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 10172, __pyx_L1_error) + + /* "talib/_func.pxi":10171 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_func.pxi":10173 + * 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/_func.pxi":10174 + * raise 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__1117, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10174, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 10174, __pyx_L1_error) + + /* "talib/_func.pxi":10173 + * 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/_func.pxi":10175 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":10176 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10176, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 10176, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":10175 + * 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 = low.data + */ + } + + /* "talib/_func.pxi":10177 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":10178 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":10179 + * low_data = 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__1118, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10179, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 10179, __pyx_L1_error) + + /* "talib/_func.pxi":10178 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_func.pxi":10180 + * 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/_func.pxi":10181 + * raise 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__1119, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10181, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 10181, __pyx_L1_error) + + /* "talib/_func.pxi":10180 + * 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/_func.pxi":10182 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":10183 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = high.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10183, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 10183, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":10182 + * 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 = close.data + */ + } + + /* "talib/_func.pxi":10184 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = high.shape[0] + * if length != low.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_func.pxi":10185 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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/_func.pxi":10186 + * close_data = 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/_func.pxi":10187 + * 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__1120, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10187, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 10187, __pyx_L1_error) + + /* "talib/_func.pxi":10186 + * close_data = close.data + * length = high.shape[0] + * if length != low.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != close.shape[0]: + */ + } + + /* "talib/_func.pxi":10188 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":10189 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1121, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10189, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 10189, __pyx_L1_error) + + /* "talib/_func.pxi":10188 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + } + + /* "talib/_func.pxi":10190 + * if length != close.shape[0]: + * raise Exception("input lengths are different") + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = high_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":10191 + * raise Exception("input lengths are different") + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = high_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":10192 + * begidx = 0 + * for i from 0 <= i < length: + * val = high_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); + + /* "talib/_func.pxi":10193 + * for i from 0 <= i < length: + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":10194 + * val = high_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = low_data[i] + * if val != val: + */ + goto __pyx_L14_continue; + + /* "talib/_func.pxi":10193 + * for i from 0 <= i < length: + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + } + + /* "talib/_func.pxi":10195 + * if val != val: + * continue + * val = low_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); + + /* "talib/_func.pxi":10196 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":10197 + * val = low_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = close_data[i] + * if val != val: + */ + goto __pyx_L14_continue; + + /* "talib/_func.pxi":10196 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + } + + /* "talib/_func.pxi":10198 + * if val != val: + * continue + * val = close_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); + + /* "talib/_func.pxi":10199 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":10200 + * val = close_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L14_continue; + + /* "talib/_func.pxi":10199 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":10201 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":10202 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L15_break; + __pyx_L14_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":10204 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_STOCHF_Lookback( fastk_period , fastd_period , fastd_matype ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1122, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10204, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 10204, __pyx_L1_error) + } + __pyx_L15_break:; + + /* "talib/_func.pxi":10205 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_STOCHF_Lookback( fastk_period , fastd_period , fastd_matype ) + * outfastk = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":10206 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_STOCHF_Lookback( fastk_period , fastd_period , fastd_matype ) # <<<<<<<<<<<<<< + * outfastk = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outfastk_data = outfastk.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_STOCHF_Lookback(__pyx_v_fastk_period, __pyx_v_fastd_period, __pyx_v_fastd_matype)); + + /* "talib/_func.pxi":10207 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_STOCHF_Lookback( fastk_period , fastd_period , fastd_matype ) + * outfastk = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outfastk_data = outfastk.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10207, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 10207, __pyx_L1_error) + __pyx_v_outfastk = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":10208 + * lookback = begidx + lib.TA_STOCHF_Lookback( fastk_period , fastd_period , fastd_matype ) + * outfastk = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outfastk_data = outfastk.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outfastk_data[i] = NaN + */ + __pyx_v_outfastk_data = ((double *)__pyx_v_outfastk->data); + + /* "talib/_func.pxi":10209 + * outfastk = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outfastk_data = outfastk.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outfastk_data[i] = NaN + * outfastd = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":10210 + * outfastk_data = outfastk.data + * for i from 0 <= i < min(lookback, length): + * outfastk_data[i] = NaN # <<<<<<<<<<<<<< + * outfastd = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outfastd_data = outfastd.data + */ + (__pyx_v_outfastk_data[__pyx_v_i]) = __pyx_v_5talib_8c_ta_lib_NaN; + } + + /* "talib/_func.pxi":10211 + * for i from 0 <= i < min(lookback, length): + * outfastk_data[i] = NaN + * outfastd = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outfastd_data = outfastd.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10211, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 10211, __pyx_L1_error) + __pyx_v_outfastd = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":10212 + * outfastk_data[i] = NaN + * outfastd = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outfastd_data = outfastd.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outfastd_data[i] = NaN + */ + __pyx_v_outfastd_data = ((double *)__pyx_v_outfastd->data); + + /* "talib/_func.pxi":10213 + * outfastd = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outfastd_data = outfastd.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outfastd_data[i] = NaN + * retCode = lib.TA_STOCHF( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , fastk_period , fastd_period , fastd_matype , &outbegidx , &outnbelement , (outfastk_data+lookback) , (outfastd_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":10214 + * outfastd_data = outfastd.data + * for i from 0 <= i < min(lookback, length): + * outfastd_data[i] = NaN # <<<<<<<<<<<<<< + * retCode = lib.TA_STOCHF( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , fastk_period , fastd_period , fastd_matype , &outbegidx , &outnbelement , (outfastk_data+lookback) , (outfastd_data+lookback) ) + * _ta_check_success("TA_STOCHF", retCode) + */ + (__pyx_v_outfastd_data[__pyx_v_i]) = __pyx_v_5talib_8c_ta_lib_NaN; + } + + /* "talib/_func.pxi":10215 + * for i from 0 <= i < min(lookback, length): + * outfastd_data[i] = NaN + * retCode = lib.TA_STOCHF( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , fastk_period , fastd_period , fastd_matype , &outbegidx , &outnbelement , (outfastk_data+lookback) , (outfastd_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_STOCHF", retCode) + * return outfastk , outfastd + */ + __pyx_v_retCode = TA_STOCHF(0, __pyx_v_endidx, ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), __pyx_v_fastk_period, __pyx_v_fastd_period, __pyx_v_fastd_matype, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outfastk_data + __pyx_v_lookback)), ((double *)(__pyx_v_outfastd_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":10216 + * outfastd_data[i] = NaN + * retCode = lib.TA_STOCHF( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , fastk_period , fastd_period , fastd_matype , &outbegidx , &outnbelement , (outfastk_data+lookback) , (outfastd_data+lookback) ) + * _ta_check_success("TA_STOCHF", retCode) # <<<<<<<<<<<<<< + * return outfastk , outfastd + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_STOCHF, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10216, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":10217 + * retCode = lib.TA_STOCHF( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , fastk_period , fastd_period , fastd_matype , &outbegidx , &outnbelement , (outfastk_data+lookback) , (outfastd_data+lookback) ) + * _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 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10217, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_INCREF(((PyObject *)__pyx_v_outfastk)); + __Pyx_GIVEREF(((PyObject *)__pyx_v_outfastk)); + PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_v_outfastk)); + __Pyx_INCREF(((PyObject *)__pyx_v_outfastd)); + __Pyx_GIVEREF(((PyObject *)__pyx_v_outfastd)); + PyTuple_SET_ITEM(__pyx_t_2, 1, ((PyObject *)__pyx_v_outfastd)); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_func.pxi":10135 + * @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_AddTraceback("talib.c_ta_lib.STOCHF", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outfastk); + __Pyx_XDECREF((PyObject *)__pyx_v_outfastd); + __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/_func.pxi":10221 + * @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_8c_ta_lib_293STOCHRSI(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_292STOCHRSI[] = " 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_8c_ta_lib_293STOCHRSI = {"STOCHRSI", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_293STOCHRSI, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_292STOCHRSI}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_293STOCHRSI(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(2, 10221, __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(2, 10221, __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(2, 10221, __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(2, 10221, __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(2, 10221, __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(2, 10221, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 10221, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_292STOCHRSI(__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_8c_ta_lib_292STOCHRSI(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; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + TA_RetCode __pyx_v_retCode; + double *__pyx_v_real_data; + int __pyx_v_outbegidx; + int __pyx_v_outnbelement; + PyArrayObject *__pyx_v_outfastk = 0; + double *__pyx_v_outfastk_data; + PyArrayObject *__pyx_v_outfastd = 0; + double *__pyx_v_outfastd_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __Pyx_RefNannySetupContext("STOCHRSI", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real); + + /* "talib/_func.pxi":10249 + * np.ndarray outfastd + * double* outfastd_data + * 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/_func.pxi":10250 + * double* outfastd_data + * 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__1123, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10250, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 10250, __pyx_L1_error) + + /* "talib/_func.pxi":10249 + * np.ndarray outfastd + * double* outfastd_data + * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real is not double") + * if real.ndim != 1: + */ + } + + /* "talib/_func.pxi":10251 + * 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/_func.pxi":10252 + * 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__1124, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10252, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 10252, __pyx_L1_error) + + /* "talib/_func.pxi":10251 + * 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/_func.pxi":10253 + * 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 = real.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":10254 + * raise Exception("real has wrong dimensions") + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< + * real_data = real.data + * length = real.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10254, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 10254, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":10253 + * 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 = real.data + */ + } + + /* "talib/_func.pxi":10255 + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data # <<<<<<<<<<<<<< + * length = real.shape[0] + * begidx = 0 + */ + __pyx_v_real_data = ((double *)__pyx_v_real->data); + + /* "talib/_func.pxi":10256 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data + * length = real.shape[0] # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_v_length = (__pyx_v_real->dimensions[0]); + + /* "talib/_func.pxi":10257 + * real_data = real.data + * length = real.shape[0] + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = real_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":10258 + * length = real.shape[0] + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = real_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":10259 + * begidx = 0 + * for i from 0 <= i < length: + * val = real_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_real_data[__pyx_v_i]); + + /* "talib/_func.pxi":10260 + * for i from 0 <= i < length: + * val = real_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":10261 + * val = real_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L6_continue; + + /* "talib/_func.pxi":10260 + * for i from 0 <= i < length: + * val = real_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":10262 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":10263 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L7_break; + __pyx_L6_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":10265 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_STOCHRSI_Lookback( timeperiod , fastk_period , fastd_period , fastd_matype ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1125, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10265, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 10265, __pyx_L1_error) + } + __pyx_L7_break:; + + /* "talib/_func.pxi":10266 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_STOCHRSI_Lookback( timeperiod , fastk_period , fastd_period , fastd_matype ) + * outfastk = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":10267 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_STOCHRSI_Lookback( timeperiod , fastk_period , fastd_period , fastd_matype ) # <<<<<<<<<<<<<< + * outfastk = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outfastk_data = outfastk.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_STOCHRSI_Lookback(__pyx_v_timeperiod, __pyx_v_fastk_period, __pyx_v_fastd_period, __pyx_v_fastd_matype)); + + /* "talib/_func.pxi":10268 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_STOCHRSI_Lookback( timeperiod , fastk_period , fastd_period , fastd_matype ) + * outfastk = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outfastk_data = outfastk.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10268, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 10268, __pyx_L1_error) + __pyx_v_outfastk = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":10269 + * lookback = begidx + lib.TA_STOCHRSI_Lookback( timeperiod , fastk_period , fastd_period , fastd_matype ) + * outfastk = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outfastk_data = outfastk.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outfastk_data[i] = NaN + */ + __pyx_v_outfastk_data = ((double *)__pyx_v_outfastk->data); + + /* "talib/_func.pxi":10270 + * outfastk = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outfastk_data = outfastk.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outfastk_data[i] = NaN + * outfastd = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":10271 + * outfastk_data = outfastk.data + * for i from 0 <= i < min(lookback, length): + * outfastk_data[i] = NaN # <<<<<<<<<<<<<< + * outfastd = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outfastd_data = outfastd.data + */ + (__pyx_v_outfastk_data[__pyx_v_i]) = __pyx_v_5talib_8c_ta_lib_NaN; + } + + /* "talib/_func.pxi":10272 + * for i from 0 <= i < min(lookback, length): + * outfastk_data[i] = NaN + * outfastd = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outfastd_data = outfastd.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10272, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 10272, __pyx_L1_error) + __pyx_v_outfastd = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":10273 + * outfastk_data[i] = NaN + * outfastd = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outfastd_data = outfastd.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outfastd_data[i] = NaN + */ + __pyx_v_outfastd_data = ((double *)__pyx_v_outfastd->data); + + /* "talib/_func.pxi":10274 + * outfastd = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outfastd_data = outfastd.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outfastd_data[i] = NaN + * retCode = lib.TA_STOCHRSI( 0 , endidx , (real_data+begidx) , timeperiod , fastk_period , fastd_period , fastd_matype , &outbegidx , &outnbelement , (outfastk_data+lookback) , (outfastd_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":10275 + * outfastd_data = outfastd.data + * for i from 0 <= i < min(lookback, length): + * outfastd_data[i] = NaN # <<<<<<<<<<<<<< + * retCode = lib.TA_STOCHRSI( 0 , endidx , (real_data+begidx) , timeperiod , fastk_period , fastd_period , fastd_matype , &outbegidx , &outnbelement , (outfastk_data+lookback) , (outfastd_data+lookback) ) + * _ta_check_success("TA_STOCHRSI", retCode) + */ + (__pyx_v_outfastd_data[__pyx_v_i]) = __pyx_v_5talib_8c_ta_lib_NaN; + } + + /* "talib/_func.pxi":10276 + * for i from 0 <= i < min(lookback, length): + * outfastd_data[i] = NaN + * retCode = lib.TA_STOCHRSI( 0 , endidx , (real_data+begidx) , timeperiod , fastk_period , fastd_period , fastd_matype , &outbegidx , &outnbelement , (outfastk_data+lookback) , (outfastd_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_STOCHRSI", retCode) + * return outfastk , outfastd + */ + __pyx_v_retCode = TA_STOCHRSI(0, __pyx_v_endidx, ((double *)(__pyx_v_real_data + __pyx_v_begidx)), __pyx_v_timeperiod, __pyx_v_fastk_period, __pyx_v_fastd_period, __pyx_v_fastd_matype, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outfastk_data + __pyx_v_lookback)), ((double *)(__pyx_v_outfastd_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":10277 + * outfastd_data[i] = NaN + * retCode = lib.TA_STOCHRSI( 0 , endidx , (real_data+begidx) , timeperiod , fastk_period , fastd_period , fastd_matype , &outbegidx , &outnbelement , (outfastk_data+lookback) , (outfastd_data+lookback) ) + * _ta_check_success("TA_STOCHRSI", retCode) # <<<<<<<<<<<<<< + * return outfastk , outfastd + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_STOCHRSI, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10277, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":10278 + * retCode = lib.TA_STOCHRSI( 0 , endidx , (real_data+begidx) , timeperiod , fastk_period , fastd_period , fastd_matype , &outbegidx , &outnbelement , (outfastk_data+lookback) , (outfastd_data+lookback) ) + * _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 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10278, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_INCREF(((PyObject *)__pyx_v_outfastk)); + __Pyx_GIVEREF(((PyObject *)__pyx_v_outfastk)); + PyTuple_SET_ITEM(__pyx_t_2, 0, ((PyObject *)__pyx_v_outfastk)); + __Pyx_INCREF(((PyObject *)__pyx_v_outfastd)); + __Pyx_GIVEREF(((PyObject *)__pyx_v_outfastd)); + PyTuple_SET_ITEM(__pyx_t_2, 1, ((PyObject *)__pyx_v_outfastd)); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_func.pxi":10221 + * @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_AddTraceback("talib.c_ta_lib.STOCHRSI", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outfastk); + __Pyx_XDECREF((PyObject *)__pyx_v_outfastd); + __Pyx_XDECREF((PyObject *)__pyx_v_real); + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "talib/_func.pxi":10282 + * @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_8c_ta_lib_295SUB(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_294SUB[] = " 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_8c_ta_lib_295SUB = {"SUB", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_295SUB, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_294SUB}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_295SUB(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(2, 10282, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "SUB") < 0)) __PYX_ERR(2, 10282, __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(2, 10282, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 10282, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_real1), __pyx_ptype_5numpy_ndarray, 0, "real1", 0))) __PYX_ERR(2, 10282, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_294SUB(__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_8c_ta_lib_294SUB(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real0, PyArrayObject *__pyx_v_real1) { + npy_intp __pyx_v_length; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + TA_RetCode __pyx_v_retCode; + double *__pyx_v_real0_data; + double *__pyx_v_real1_data; + int __pyx_v_outbegidx; + int __pyx_v_outnbelement; + PyArrayObject *__pyx_v_outreal = 0; + double *__pyx_v_outreal_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __Pyx_RefNannySetupContext("SUB", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real0); + __Pyx_INCREF((PyObject *)__pyx_v_real1); + + /* "talib/_func.pxi":10304 + * np.ndarray outreal + * double* outreal_data + * 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/_func.pxi":10305 + * double* outreal_data + * 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__1126, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10305, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 10305, __pyx_L1_error) + + /* "talib/_func.pxi":10304 + * np.ndarray outreal + * double* outreal_data + * if PyArray_TYPE(real0) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real0 is not double") + * if real0.ndim != 1: + */ + } + + /* "talib/_func.pxi":10306 + * 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/_func.pxi":10307 + * 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__1127, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10307, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 10307, __pyx_L1_error) + + /* "talib/_func.pxi":10306 + * 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/_func.pxi":10308 + * 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 = real0.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real0) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":10309 + * raise Exception("real0 has wrong dimensions") + * if not (PyArray_FLAGS(real0) & np.NPY_C_CONTIGUOUS): + * real0 = PyArray_GETCONTIGUOUS(real0) # <<<<<<<<<<<<<< + * real0_data = real0.data + * if PyArray_TYPE(real1) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10309, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 10309, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real0, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":10308 + * 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 = real0.data + */ + } + + /* "talib/_func.pxi":10310 + * if not (PyArray_FLAGS(real0) & np.NPY_C_CONTIGUOUS): + * real0 = PyArray_GETCONTIGUOUS(real0) + * real0_data = 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/_func.pxi":10311 + * real0 = PyArray_GETCONTIGUOUS(real0) + * real0_data = 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/_func.pxi":10312 + * real0_data = 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__1128, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10312, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 10312, __pyx_L1_error) + + /* "talib/_func.pxi":10311 + * real0 = PyArray_GETCONTIGUOUS(real0) + * real0_data = real0.data + * if PyArray_TYPE(real1) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real1 is not double") + * if real1.ndim != 1: + */ + } + + /* "talib/_func.pxi":10313 + * 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/_func.pxi":10314 + * 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__1129, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10314, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 10314, __pyx_L1_error) + + /* "talib/_func.pxi":10313 + * 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/_func.pxi":10315 + * 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 = real1.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real1) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":10316 + * raise Exception("real1 has wrong dimensions") + * if not (PyArray_FLAGS(real1) & np.NPY_C_CONTIGUOUS): + * real1 = PyArray_GETCONTIGUOUS(real1) # <<<<<<<<<<<<<< + * real1_data = real1.data + * length = real0.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real1); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10316, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 10316, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real1, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":10315 + * 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 = real1.data + */ + } + + /* "talib/_func.pxi":10317 + * if not (PyArray_FLAGS(real1) & np.NPY_C_CONTIGUOUS): + * real1 = PyArray_GETCONTIGUOUS(real1) + * real1_data = real1.data # <<<<<<<<<<<<<< + * length = real0.shape[0] + * if length != real1.shape[0]: + */ + __pyx_v_real1_data = ((double *)__pyx_v_real1->data); + + /* "talib/_func.pxi":10318 + * real1 = PyArray_GETCONTIGUOUS(real1) + * real1_data = 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/_func.pxi":10319 + * real1_data = real1.data + * length = real0.shape[0] + * if length != real1.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + __pyx_t_1 = ((__pyx_v_length != (__pyx_v_real1->dimensions[0])) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":10320 + * length = real0.shape[0] + * if length != real1.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1130, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10320, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 10320, __pyx_L1_error) + + /* "talib/_func.pxi":10319 + * real1_data = real1.data + * length = real0.shape[0] + * if length != real1.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + } + + /* "talib/_func.pxi":10321 + * if length != real1.shape[0]: + * raise Exception("input lengths are different") + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = real0_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":10322 + * raise Exception("input lengths are different") + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = real0_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":10323 + * begidx = 0 + * for i from 0 <= i < length: + * val = real0_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_real0_data[__pyx_v_i]); + + /* "talib/_func.pxi":10324 + * for i from 0 <= i < length: + * val = real0_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = real1_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":10325 + * val = real0_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = real1_data[i] + * if val != val: + */ + goto __pyx_L10_continue; + + /* "talib/_func.pxi":10324 + * for i from 0 <= i < length: + * val = real0_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = real1_data[i] + */ + } + + /* "talib/_func.pxi":10326 + * if val != val: + * continue + * val = real1_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_real1_data[__pyx_v_i]); + + /* "talib/_func.pxi":10327 + * continue + * val = real1_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":10328 + * val = real1_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L10_continue; + + /* "talib/_func.pxi":10327 + * continue + * val = real1_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":10329 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":10330 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L11_break; + __pyx_L10_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":10332 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_SUB_Lookback( ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1131, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10332, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 10332, __pyx_L1_error) + } + __pyx_L11_break:; + + /* "talib/_func.pxi":10333 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_SUB_Lookback( ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":10334 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_SUB_Lookback( ) # <<<<<<<<<<<<<< + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_SUB_Lookback()); + + /* "talib/_func.pxi":10335 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_SUB_Lookback( ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10335, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 10335, __pyx_L1_error) + __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":10336 + * lookback = begidx + lib.TA_SUB_Lookback( ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + */ + __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); + + /* "talib/_func.pxi":10337 + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outreal_data[i] = NaN + * retCode = lib.TA_SUB( 0 , endidx , (real0_data+begidx) , (real1_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":10338 + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN # <<<<<<<<<<<<<< + * retCode = lib.TA_SUB( 0 , endidx , (real0_data+begidx) , (real1_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_SUB", retCode) + */ + (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_8c_ta_lib_NaN; + } + + /* "talib/_func.pxi":10339 + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + * retCode = lib.TA_SUB( 0 , endidx , (real0_data+begidx) , (real1_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_SUB", retCode) + * return outreal + */ + __pyx_v_retCode = TA_SUB(0, __pyx_v_endidx, ((double *)(__pyx_v_real0_data + __pyx_v_begidx)), ((double *)(__pyx_v_real1_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":10340 + * outreal_data[i] = NaN + * retCode = lib.TA_SUB( 0 , endidx , (real0_data+begidx) , (real1_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_SUB", retCode) # <<<<<<<<<<<<<< + * return outreal + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_SUB, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10340, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":10341 + * retCode = lib.TA_SUB( 0 , endidx , (real0_data+begidx) , (real1_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_SUB", retCode) + * return outreal # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); + __pyx_r = ((PyObject *)__pyx_v_outreal); + goto __pyx_L0; + + /* "talib/_func.pxi":10282 + * @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.c_ta_lib.SUB", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outreal); + __Pyx_XDECREF((PyObject *)__pyx_v_real0); + __Pyx_XDECREF((PyObject *)__pyx_v_real1); + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "talib/_func.pxi":10345 + * @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_8c_ta_lib_297SUM(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_296SUM[] = " 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_8c_ta_lib_297SUM = {"SUM", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_297SUM, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_296SUM}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_297SUM(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(2, 10345, __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(2, 10345, __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(2, 10345, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 10345, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_296SUM(__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_8c_ta_lib_296SUM(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod) { + npy_intp __pyx_v_length; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + TA_RetCode __pyx_v_retCode; + double *__pyx_v_real_data; + int __pyx_v_outbegidx; + int __pyx_v_outnbelement; + PyArrayObject *__pyx_v_outreal = 0; + double *__pyx_v_outreal_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __Pyx_RefNannySetupContext("SUM", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real); + + /* "talib/_func.pxi":10367 + * np.ndarray outreal + * double* outreal_data + * 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/_func.pxi":10368 + * double* outreal_data + * 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__1132, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10368, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 10368, __pyx_L1_error) + + /* "talib/_func.pxi":10367 + * np.ndarray outreal + * double* outreal_data + * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real is not double") + * if real.ndim != 1: + */ + } + + /* "talib/_func.pxi":10369 + * 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/_func.pxi":10370 + * 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__1133, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10370, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 10370, __pyx_L1_error) + + /* "talib/_func.pxi":10369 + * 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/_func.pxi":10371 + * 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 = real.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":10372 + * raise Exception("real has wrong dimensions") + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< + * real_data = real.data + * length = real.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10372, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 10372, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":10371 + * 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 = real.data + */ + } + + /* "talib/_func.pxi":10373 + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data # <<<<<<<<<<<<<< + * length = real.shape[0] + * begidx = 0 + */ + __pyx_v_real_data = ((double *)__pyx_v_real->data); + + /* "talib/_func.pxi":10374 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data + * length = real.shape[0] # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_v_length = (__pyx_v_real->dimensions[0]); + + /* "talib/_func.pxi":10375 + * real_data = real.data + * length = real.shape[0] + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = real_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":10376 + * length = real.shape[0] + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = real_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":10377 + * begidx = 0 + * for i from 0 <= i < length: + * val = real_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_real_data[__pyx_v_i]); + + /* "talib/_func.pxi":10378 + * for i from 0 <= i < length: + * val = real_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":10379 + * val = real_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L6_continue; + + /* "talib/_func.pxi":10378 + * for i from 0 <= i < length: + * val = real_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":10380 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":10381 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L7_break; + __pyx_L6_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":10383 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_SUM_Lookback( timeperiod ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1134, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10383, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 10383, __pyx_L1_error) + } + __pyx_L7_break:; + + /* "talib/_func.pxi":10384 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_SUM_Lookback( timeperiod ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":10385 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_SUM_Lookback( timeperiod ) # <<<<<<<<<<<<<< + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_SUM_Lookback(__pyx_v_timeperiod)); + + /* "talib/_func.pxi":10386 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_SUM_Lookback( timeperiod ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10386, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 10386, __pyx_L1_error) + __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":10387 + * lookback = begidx + lib.TA_SUM_Lookback( timeperiod ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + */ + __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); + + /* "talib/_func.pxi":10388 + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outreal_data[i] = NaN + * retCode = lib.TA_SUM( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":10389 + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN # <<<<<<<<<<<<<< + * retCode = lib.TA_SUM( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_SUM", retCode) + */ + (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_8c_ta_lib_NaN; + } + + /* "talib/_func.pxi":10390 + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + * retCode = lib.TA_SUM( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_SUM", retCode) + * return outreal + */ + __pyx_v_retCode = TA_SUM(0, __pyx_v_endidx, ((double *)(__pyx_v_real_data + __pyx_v_begidx)), __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":10391 + * outreal_data[i] = NaN + * retCode = lib.TA_SUM( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_SUM", retCode) # <<<<<<<<<<<<<< + * return outreal + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_SUM, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10391, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":10392 + * retCode = lib.TA_SUM( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_SUM", retCode) + * return outreal # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); + __pyx_r = ((PyObject *)__pyx_v_outreal); + goto __pyx_L0; + + /* "talib/_func.pxi":10345 + * @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.c_ta_lib.SUM", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outreal); + __Pyx_XDECREF((PyObject *)__pyx_v_real); + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "talib/_func.pxi":10396 + * @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_8c_ta_lib_299T3(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_298T3[] = " 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_8c_ta_lib_299T3 = {"T3", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_299T3, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_298T3}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_299T3(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(2, 10396, __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(2, 10396, __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(2, 10396, __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(2, 10396, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 10396, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_298T3(__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_8c_ta_lib_298T3(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod, double __pyx_v_vfactor) { + npy_intp __pyx_v_length; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + TA_RetCode __pyx_v_retCode; + double *__pyx_v_real_data; + int __pyx_v_outbegidx; + int __pyx_v_outnbelement; + PyArrayObject *__pyx_v_outreal = 0; + double *__pyx_v_outreal_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __Pyx_RefNannySetupContext("T3", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real); + + /* "talib/_func.pxi":10419 + * np.ndarray outreal + * double* outreal_data + * 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/_func.pxi":10420 + * double* outreal_data + * 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__1135, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10420, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 10420, __pyx_L1_error) + + /* "talib/_func.pxi":10419 + * np.ndarray outreal + * double* outreal_data + * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real is not double") + * if real.ndim != 1: + */ + } + + /* "talib/_func.pxi":10421 + * 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/_func.pxi":10422 + * 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__1136, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10422, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 10422, __pyx_L1_error) + + /* "talib/_func.pxi":10421 + * 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/_func.pxi":10423 + * 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 = real.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":10424 + * raise Exception("real has wrong dimensions") + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< + * real_data = real.data + * length = real.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10424, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 10424, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":10423 + * 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 = real.data + */ + } + + /* "talib/_func.pxi":10425 + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data # <<<<<<<<<<<<<< + * length = real.shape[0] + * begidx = 0 + */ + __pyx_v_real_data = ((double *)__pyx_v_real->data); + + /* "talib/_func.pxi":10426 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data + * length = real.shape[0] # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_v_length = (__pyx_v_real->dimensions[0]); + + /* "talib/_func.pxi":10427 + * real_data = real.data + * length = real.shape[0] + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = real_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":10428 + * length = real.shape[0] + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = real_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":10429 + * begidx = 0 + * for i from 0 <= i < length: + * val = real_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_real_data[__pyx_v_i]); + + /* "talib/_func.pxi":10430 + * for i from 0 <= i < length: + * val = real_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":10431 + * val = real_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L6_continue; + + /* "talib/_func.pxi":10430 + * for i from 0 <= i < length: + * val = real_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":10432 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":10433 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L7_break; + __pyx_L6_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":10435 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_T3_Lookback( timeperiod , vfactor ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1137, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10435, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 10435, __pyx_L1_error) + } + __pyx_L7_break:; + + /* "talib/_func.pxi":10436 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_T3_Lookback( timeperiod , vfactor ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":10437 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_T3_Lookback( timeperiod , vfactor ) # <<<<<<<<<<<<<< + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_T3_Lookback(__pyx_v_timeperiod, __pyx_v_vfactor)); + + /* "talib/_func.pxi":10438 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_T3_Lookback( timeperiod , vfactor ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10438, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 10438, __pyx_L1_error) + __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":10439 + * lookback = begidx + lib.TA_T3_Lookback( timeperiod , vfactor ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + */ + __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); + + /* "talib/_func.pxi":10440 + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outreal_data[i] = NaN + * retCode = lib.TA_T3( 0 , endidx , (real_data+begidx) , timeperiod , vfactor , &outbegidx , &outnbelement , (outreal_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":10441 + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN # <<<<<<<<<<<<<< + * retCode = lib.TA_T3( 0 , endidx , (real_data+begidx) , timeperiod , vfactor , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_T3", retCode) + */ + (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_8c_ta_lib_NaN; + } + + /* "talib/_func.pxi":10442 + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + * retCode = lib.TA_T3( 0 , endidx , (real_data+begidx) , timeperiod , vfactor , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_T3", retCode) + * return outreal + */ + __pyx_v_retCode = TA_T3(0, __pyx_v_endidx, ((double *)(__pyx_v_real_data + __pyx_v_begidx)), __pyx_v_timeperiod, __pyx_v_vfactor, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":10443 + * outreal_data[i] = NaN + * retCode = lib.TA_T3( 0 , endidx , (real_data+begidx) , timeperiod , vfactor , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_T3", retCode) # <<<<<<<<<<<<<< + * return outreal + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_T3, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10443, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":10444 + * retCode = lib.TA_T3( 0 , endidx , (real_data+begidx) , timeperiod , vfactor , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_T3", retCode) + * return outreal # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); + __pyx_r = ((PyObject *)__pyx_v_outreal); + goto __pyx_L0; + + /* "talib/_func.pxi":10396 + * @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.c_ta_lib.T3", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outreal); + __Pyx_XDECREF((PyObject *)__pyx_v_real); + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "talib/_func.pxi":10448 + * @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_8c_ta_lib_301TAN(PyObject *__pyx_self, PyObject *__pyx_v_real); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_300TAN[] = " 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_8c_ta_lib_301TAN = {"TAN", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_301TAN, METH_O, __pyx_doc_5talib_8c_ta_lib_300TAN}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_301TAN(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(2, 10448, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_300TAN(__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_8c_ta_lib_300TAN(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real) { + npy_intp __pyx_v_length; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + TA_RetCode __pyx_v_retCode; + double *__pyx_v_real_data; + int __pyx_v_outbegidx; + int __pyx_v_outnbelement; + PyArrayObject *__pyx_v_outreal = 0; + double *__pyx_v_outreal_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __Pyx_RefNannySetupContext("TAN", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real); + + /* "talib/_func.pxi":10468 + * np.ndarray outreal + * double* outreal_data + * 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/_func.pxi":10469 + * double* outreal_data + * 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__1138, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10469, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 10469, __pyx_L1_error) + + /* "talib/_func.pxi":10468 + * np.ndarray outreal + * double* outreal_data + * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real is not double") + * if real.ndim != 1: + */ + } + + /* "talib/_func.pxi":10470 + * 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/_func.pxi":10471 + * 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__1139, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10471, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 10471, __pyx_L1_error) + + /* "talib/_func.pxi":10470 + * 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/_func.pxi":10472 + * 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 = real.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":10473 + * raise Exception("real has wrong dimensions") + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< + * real_data = real.data + * length = real.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10473, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 10473, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":10472 + * 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 = real.data + */ + } + + /* "talib/_func.pxi":10474 + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data # <<<<<<<<<<<<<< + * length = real.shape[0] + * begidx = 0 + */ + __pyx_v_real_data = ((double *)__pyx_v_real->data); + + /* "talib/_func.pxi":10475 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data + * length = real.shape[0] # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_v_length = (__pyx_v_real->dimensions[0]); + + /* "talib/_func.pxi":10476 + * real_data = real.data + * length = real.shape[0] + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = real_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":10477 + * length = real.shape[0] + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = real_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":10478 + * begidx = 0 + * for i from 0 <= i < length: + * val = real_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_real_data[__pyx_v_i]); + + /* "talib/_func.pxi":10479 + * for i from 0 <= i < length: + * val = real_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":10480 + * val = real_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L6_continue; + + /* "talib/_func.pxi":10479 + * for i from 0 <= i < length: + * val = real_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":10481 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":10482 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L7_break; + __pyx_L6_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":10484 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_TAN_Lookback( ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1140, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10484, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 10484, __pyx_L1_error) + } + __pyx_L7_break:; + + /* "talib/_func.pxi":10485 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_TAN_Lookback( ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":10486 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_TAN_Lookback( ) # <<<<<<<<<<<<<< + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_TAN_Lookback()); + + /* "talib/_func.pxi":10487 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_TAN_Lookback( ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10487, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 10487, __pyx_L1_error) + __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":10488 + * lookback = begidx + lib.TA_TAN_Lookback( ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + */ + __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); + + /* "talib/_func.pxi":10489 + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outreal_data[i] = NaN + * retCode = lib.TA_TAN( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":10490 + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN # <<<<<<<<<<<<<< + * retCode = lib.TA_TAN( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_TAN", retCode) + */ + (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_8c_ta_lib_NaN; + } + + /* "talib/_func.pxi":10491 + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + * retCode = lib.TA_TAN( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_TAN", retCode) + * return outreal + */ + __pyx_v_retCode = TA_TAN(0, __pyx_v_endidx, ((double *)(__pyx_v_real_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":10492 + * outreal_data[i] = NaN + * retCode = lib.TA_TAN( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_TAN", retCode) # <<<<<<<<<<<<<< + * return outreal + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_TAN, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10492, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":10493 + * retCode = lib.TA_TAN( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_TAN", retCode) + * return outreal # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); + __pyx_r = ((PyObject *)__pyx_v_outreal); + goto __pyx_L0; + + /* "talib/_func.pxi":10448 + * @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.c_ta_lib.TAN", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outreal); + __Pyx_XDECREF((PyObject *)__pyx_v_real); + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "talib/_func.pxi":10497 + * @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_8c_ta_lib_303TANH(PyObject *__pyx_self, PyObject *__pyx_v_real); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_302TANH[] = " 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_8c_ta_lib_303TANH = {"TANH", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_303TANH, METH_O, __pyx_doc_5talib_8c_ta_lib_302TANH}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_303TANH(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(2, 10497, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_302TANH(__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_8c_ta_lib_302TANH(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real) { + npy_intp __pyx_v_length; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + TA_RetCode __pyx_v_retCode; + double *__pyx_v_real_data; + int __pyx_v_outbegidx; + int __pyx_v_outnbelement; + PyArrayObject *__pyx_v_outreal = 0; + double *__pyx_v_outreal_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __Pyx_RefNannySetupContext("TANH", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real); + + /* "talib/_func.pxi":10517 + * np.ndarray outreal + * double* outreal_data + * 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/_func.pxi":10518 + * double* outreal_data + * 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__1141, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10518, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 10518, __pyx_L1_error) + + /* "talib/_func.pxi":10517 + * np.ndarray outreal + * double* outreal_data + * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real is not double") + * if real.ndim != 1: + */ + } + + /* "talib/_func.pxi":10519 + * 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/_func.pxi":10520 + * 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__1142, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10520, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 10520, __pyx_L1_error) + + /* "talib/_func.pxi":10519 + * 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/_func.pxi":10521 + * 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 = real.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":10522 + * raise Exception("real has wrong dimensions") + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< + * real_data = real.data + * length = real.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10522, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 10522, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":10521 + * 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 = real.data + */ + } + + /* "talib/_func.pxi":10523 + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data # <<<<<<<<<<<<<< + * length = real.shape[0] + * begidx = 0 + */ + __pyx_v_real_data = ((double *)__pyx_v_real->data); + + /* "talib/_func.pxi":10524 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data + * length = real.shape[0] # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_v_length = (__pyx_v_real->dimensions[0]); + + /* "talib/_func.pxi":10525 + * real_data = real.data + * length = real.shape[0] + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = real_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":10526 + * length = real.shape[0] + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = real_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":10527 + * begidx = 0 + * for i from 0 <= i < length: + * val = real_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_real_data[__pyx_v_i]); + + /* "talib/_func.pxi":10528 + * for i from 0 <= i < length: + * val = real_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":10529 + * val = real_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L6_continue; + + /* "talib/_func.pxi":10528 + * for i from 0 <= i < length: + * val = real_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":10530 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":10531 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L7_break; + __pyx_L6_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":10533 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_TANH_Lookback( ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1143, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10533, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 10533, __pyx_L1_error) + } + __pyx_L7_break:; + + /* "talib/_func.pxi":10534 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_TANH_Lookback( ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":10535 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_TANH_Lookback( ) # <<<<<<<<<<<<<< + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_TANH_Lookback()); + + /* "talib/_func.pxi":10536 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_TANH_Lookback( ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10536, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 10536, __pyx_L1_error) + __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":10537 + * lookback = begidx + lib.TA_TANH_Lookback( ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + */ + __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); + + /* "talib/_func.pxi":10538 + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outreal_data[i] = NaN + * retCode = lib.TA_TANH( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":10539 + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN # <<<<<<<<<<<<<< + * retCode = lib.TA_TANH( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_TANH", retCode) + */ + (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_8c_ta_lib_NaN; + } + + /* "talib/_func.pxi":10540 + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + * retCode = lib.TA_TANH( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_TANH", retCode) + * return outreal + */ + __pyx_v_retCode = TA_TANH(0, __pyx_v_endidx, ((double *)(__pyx_v_real_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":10541 + * outreal_data[i] = NaN + * retCode = lib.TA_TANH( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_TANH", retCode) # <<<<<<<<<<<<<< + * return outreal + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_TANH, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10541, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":10542 + * retCode = lib.TA_TANH( 0 , endidx , (real_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_TANH", retCode) + * return outreal # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); + __pyx_r = ((PyObject *)__pyx_v_outreal); + goto __pyx_L0; + + /* "talib/_func.pxi":10497 + * @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.c_ta_lib.TANH", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outreal); + __Pyx_XDECREF((PyObject *)__pyx_v_real); + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "talib/_func.pxi":10546 + * @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_8c_ta_lib_305TEMA(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_304TEMA[] = " 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_8c_ta_lib_305TEMA = {"TEMA", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_305TEMA, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_304TEMA}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_305TEMA(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(2, 10546, __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(2, 10546, __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(2, 10546, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 10546, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_304TEMA(__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_8c_ta_lib_304TEMA(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod) { + npy_intp __pyx_v_length; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + TA_RetCode __pyx_v_retCode; + double *__pyx_v_real_data; + int __pyx_v_outbegidx; + int __pyx_v_outnbelement; + PyArrayObject *__pyx_v_outreal = 0; + double *__pyx_v_outreal_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __Pyx_RefNannySetupContext("TEMA", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real); + + /* "talib/_func.pxi":10568 + * np.ndarray outreal + * double* outreal_data + * 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/_func.pxi":10569 + * double* outreal_data + * 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__1144, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10569, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 10569, __pyx_L1_error) + + /* "talib/_func.pxi":10568 + * np.ndarray outreal + * double* outreal_data + * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real is not double") + * if real.ndim != 1: + */ + } + + /* "talib/_func.pxi":10570 + * 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/_func.pxi":10571 + * 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__1145, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10571, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 10571, __pyx_L1_error) + + /* "talib/_func.pxi":10570 + * 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/_func.pxi":10572 + * 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 = real.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":10573 + * raise Exception("real has wrong dimensions") + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< + * real_data = real.data + * length = real.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10573, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 10573, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":10572 + * 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 = real.data + */ + } + + /* "talib/_func.pxi":10574 + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data # <<<<<<<<<<<<<< + * length = real.shape[0] + * begidx = 0 + */ + __pyx_v_real_data = ((double *)__pyx_v_real->data); + + /* "talib/_func.pxi":10575 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data + * length = real.shape[0] # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_v_length = (__pyx_v_real->dimensions[0]); + + /* "talib/_func.pxi":10576 + * real_data = real.data + * length = real.shape[0] + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = real_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":10577 + * length = real.shape[0] + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = real_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":10578 + * begidx = 0 + * for i from 0 <= i < length: + * val = real_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_real_data[__pyx_v_i]); + + /* "talib/_func.pxi":10579 + * for i from 0 <= i < length: + * val = real_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":10580 + * val = real_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L6_continue; + + /* "talib/_func.pxi":10579 + * for i from 0 <= i < length: + * val = real_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":10581 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":10582 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L7_break; + __pyx_L6_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":10584 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_TEMA_Lookback( timeperiod ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1146, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10584, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 10584, __pyx_L1_error) + } + __pyx_L7_break:; + + /* "talib/_func.pxi":10585 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_TEMA_Lookback( timeperiod ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":10586 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_TEMA_Lookback( timeperiod ) # <<<<<<<<<<<<<< + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_TEMA_Lookback(__pyx_v_timeperiod)); + + /* "talib/_func.pxi":10587 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_TEMA_Lookback( timeperiod ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10587, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 10587, __pyx_L1_error) + __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":10588 + * lookback = begidx + lib.TA_TEMA_Lookback( timeperiod ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + */ + __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); + + /* "talib/_func.pxi":10589 + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outreal_data[i] = NaN + * retCode = lib.TA_TEMA( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":10590 + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN # <<<<<<<<<<<<<< + * retCode = lib.TA_TEMA( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_TEMA", retCode) + */ + (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_8c_ta_lib_NaN; + } + + /* "talib/_func.pxi":10591 + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + * retCode = lib.TA_TEMA( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_TEMA", retCode) + * return outreal + */ + __pyx_v_retCode = TA_TEMA(0, __pyx_v_endidx, ((double *)(__pyx_v_real_data + __pyx_v_begidx)), __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":10592 + * outreal_data[i] = NaN + * retCode = lib.TA_TEMA( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_TEMA", retCode) # <<<<<<<<<<<<<< + * return outreal + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_TEMA, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10592, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":10593 + * retCode = lib.TA_TEMA( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_TEMA", retCode) + * return outreal # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); + __pyx_r = ((PyObject *)__pyx_v_outreal); + goto __pyx_L0; + + /* "talib/_func.pxi":10546 + * @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.c_ta_lib.TEMA", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outreal); + __Pyx_XDECREF((PyObject *)__pyx_v_real); + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "talib/_func.pxi":10597 + * @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_8c_ta_lib_307TRANGE(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_306TRANGE[] = " 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_8c_ta_lib_307TRANGE = {"TRANGE", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_307TRANGE, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_306TRANGE}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_307TRANGE(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(2, 10597, __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(2, 10597, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "TRANGE") < 0)) __PYX_ERR(2, 10597, __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(2, 10597, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 10597, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(2, 10597, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(2, 10597, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_306TRANGE(__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_8c_ta_lib_306TRANGE(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close) { + npy_intp __pyx_v_length; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + 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; + PyArrayObject *__pyx_v_outreal = 0; + double *__pyx_v_outreal_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __Pyx_RefNannySetupContext("TRANGE", 0); + __Pyx_INCREF((PyObject *)__pyx_v_high); + __Pyx_INCREF((PyObject *)__pyx_v_low); + __Pyx_INCREF((PyObject *)__pyx_v_close); + + /* "talib/_func.pxi":10619 + * np.ndarray outreal + * double* outreal_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/_func.pxi":10620 + * double* outreal_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__1147, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10620, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 10620, __pyx_L1_error) + + /* "talib/_func.pxi":10619 + * np.ndarray outreal + * double* outreal_data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_func.pxi":10621 + * 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/_func.pxi":10622 + * raise 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__1148, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10622, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 10622, __pyx_L1_error) + + /* "talib/_func.pxi":10621 + * 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/_func.pxi":10623 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":10624 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10624, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 10624, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":10623 + * 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 = high.data + */ + } + + /* "talib/_func.pxi":10625 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":10626 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":10627 + * high_data = 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__1149, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10627, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 10627, __pyx_L1_error) + + /* "talib/_func.pxi":10626 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_func.pxi":10628 + * 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/_func.pxi":10629 + * raise 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__1150, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10629, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 10629, __pyx_L1_error) + + /* "talib/_func.pxi":10628 + * 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/_func.pxi":10630 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":10631 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10631, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 10631, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":10630 + * 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 = low.data + */ + } + + /* "talib/_func.pxi":10632 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":10633 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":10634 + * low_data = 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__1151, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10634, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 10634, __pyx_L1_error) + + /* "talib/_func.pxi":10633 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_func.pxi":10635 + * 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/_func.pxi":10636 + * raise 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__1152, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10636, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 10636, __pyx_L1_error) + + /* "talib/_func.pxi":10635 + * 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/_func.pxi":10637 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":10638 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = high.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10638, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 10638, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":10637 + * 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 = close.data + */ + } + + /* "talib/_func.pxi":10639 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = high.shape[0] + * if length != low.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_func.pxi":10640 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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/_func.pxi":10641 + * close_data = 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/_func.pxi":10642 + * 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__1153, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10642, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 10642, __pyx_L1_error) + + /* "talib/_func.pxi":10641 + * close_data = close.data + * length = high.shape[0] + * if length != low.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != close.shape[0]: + */ + } + + /* "talib/_func.pxi":10643 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":10644 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1154, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10644, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 10644, __pyx_L1_error) + + /* "talib/_func.pxi":10643 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + } + + /* "talib/_func.pxi":10645 + * if length != close.shape[0]: + * raise Exception("input lengths are different") + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = high_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":10646 + * raise Exception("input lengths are different") + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = high_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":10647 + * begidx = 0 + * for i from 0 <= i < length: + * val = high_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); + + /* "talib/_func.pxi":10648 + * for i from 0 <= i < length: + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":10649 + * val = high_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = low_data[i] + * if val != val: + */ + goto __pyx_L14_continue; + + /* "talib/_func.pxi":10648 + * for i from 0 <= i < length: + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + } + + /* "talib/_func.pxi":10650 + * if val != val: + * continue + * val = low_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); + + /* "talib/_func.pxi":10651 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":10652 + * val = low_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = close_data[i] + * if val != val: + */ + goto __pyx_L14_continue; + + /* "talib/_func.pxi":10651 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + } + + /* "talib/_func.pxi":10653 + * if val != val: + * continue + * val = close_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); + + /* "talib/_func.pxi":10654 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":10655 + * val = close_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L14_continue; + + /* "talib/_func.pxi":10654 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":10656 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":10657 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L15_break; + __pyx_L14_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":10659 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_TRANGE_Lookback( ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1155, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10659, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 10659, __pyx_L1_error) + } + __pyx_L15_break:; + + /* "talib/_func.pxi":10660 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_TRANGE_Lookback( ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":10661 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_TRANGE_Lookback( ) # <<<<<<<<<<<<<< + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_TRANGE_Lookback()); + + /* "talib/_func.pxi":10662 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_TRANGE_Lookback( ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10662, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 10662, __pyx_L1_error) + __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":10663 + * lookback = begidx + lib.TA_TRANGE_Lookback( ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + */ + __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); + + /* "talib/_func.pxi":10664 + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outreal_data[i] = NaN + * retCode = lib.TA_TRANGE( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":10665 + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN # <<<<<<<<<<<<<< + * retCode = lib.TA_TRANGE( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_TRANGE", retCode) + */ + (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_8c_ta_lib_NaN; + } + + /* "talib/_func.pxi":10666 + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + * retCode = lib.TA_TRANGE( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_TRANGE", retCode) + * return outreal + */ + __pyx_v_retCode = TA_TRANGE(0, __pyx_v_endidx, ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":10667 + * outreal_data[i] = NaN + * retCode = lib.TA_TRANGE( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_TRANGE", retCode) # <<<<<<<<<<<<<< + * return outreal + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_TRANGE, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10667, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":10668 + * retCode = lib.TA_TRANGE( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_TRANGE", retCode) + * return outreal # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); + __pyx_r = ((PyObject *)__pyx_v_outreal); + goto __pyx_L0; + + /* "talib/_func.pxi":10597 + * @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.c_ta_lib.TRANGE", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outreal); + __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/_func.pxi":10672 + * @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_8c_ta_lib_309TRIMA(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_308TRIMA[] = " 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_8c_ta_lib_309TRIMA = {"TRIMA", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_309TRIMA, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_308TRIMA}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_309TRIMA(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(2, 10672, __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(2, 10672, __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(2, 10672, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 10672, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_308TRIMA(__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_8c_ta_lib_308TRIMA(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod) { + npy_intp __pyx_v_length; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + TA_RetCode __pyx_v_retCode; + double *__pyx_v_real_data; + int __pyx_v_outbegidx; + int __pyx_v_outnbelement; + PyArrayObject *__pyx_v_outreal = 0; + double *__pyx_v_outreal_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __Pyx_RefNannySetupContext("TRIMA", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real); + + /* "talib/_func.pxi":10694 + * np.ndarray outreal + * double* outreal_data + * 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/_func.pxi":10695 + * double* outreal_data + * 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__1156, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10695, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 10695, __pyx_L1_error) + + /* "talib/_func.pxi":10694 + * np.ndarray outreal + * double* outreal_data + * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real is not double") + * if real.ndim != 1: + */ + } + + /* "talib/_func.pxi":10696 + * 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/_func.pxi":10697 + * 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__1157, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10697, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 10697, __pyx_L1_error) + + /* "talib/_func.pxi":10696 + * 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/_func.pxi":10698 + * 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 = real.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":10699 + * raise Exception("real has wrong dimensions") + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< + * real_data = real.data + * length = real.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10699, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 10699, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":10698 + * 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 = real.data + */ + } + + /* "talib/_func.pxi":10700 + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data # <<<<<<<<<<<<<< + * length = real.shape[0] + * begidx = 0 + */ + __pyx_v_real_data = ((double *)__pyx_v_real->data); + + /* "talib/_func.pxi":10701 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data + * length = real.shape[0] # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_v_length = (__pyx_v_real->dimensions[0]); + + /* "talib/_func.pxi":10702 + * real_data = real.data + * length = real.shape[0] + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = real_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":10703 + * length = real.shape[0] + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = real_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":10704 + * begidx = 0 + * for i from 0 <= i < length: + * val = real_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_real_data[__pyx_v_i]); + + /* "talib/_func.pxi":10705 + * for i from 0 <= i < length: + * val = real_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":10706 + * val = real_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L6_continue; + + /* "talib/_func.pxi":10705 + * for i from 0 <= i < length: + * val = real_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":10707 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":10708 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L7_break; + __pyx_L6_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":10710 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_TRIMA_Lookback( timeperiod ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1158, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10710, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 10710, __pyx_L1_error) + } + __pyx_L7_break:; + + /* "talib/_func.pxi":10711 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_TRIMA_Lookback( timeperiod ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":10712 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_TRIMA_Lookback( timeperiod ) # <<<<<<<<<<<<<< + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_TRIMA_Lookback(__pyx_v_timeperiod)); + + /* "talib/_func.pxi":10713 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_TRIMA_Lookback( timeperiod ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10713, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 10713, __pyx_L1_error) + __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":10714 + * lookback = begidx + lib.TA_TRIMA_Lookback( timeperiod ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + */ + __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); + + /* "talib/_func.pxi":10715 + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outreal_data[i] = NaN + * retCode = lib.TA_TRIMA( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":10716 + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN # <<<<<<<<<<<<<< + * retCode = lib.TA_TRIMA( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_TRIMA", retCode) + */ + (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_8c_ta_lib_NaN; + } + + /* "talib/_func.pxi":10717 + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + * retCode = lib.TA_TRIMA( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_TRIMA", retCode) + * return outreal + */ + __pyx_v_retCode = TA_TRIMA(0, __pyx_v_endidx, ((double *)(__pyx_v_real_data + __pyx_v_begidx)), __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":10718 + * outreal_data[i] = NaN + * retCode = lib.TA_TRIMA( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_TRIMA", retCode) # <<<<<<<<<<<<<< + * return outreal + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_TRIMA, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10718, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":10719 + * retCode = lib.TA_TRIMA( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_TRIMA", retCode) + * return outreal # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); + __pyx_r = ((PyObject *)__pyx_v_outreal); + goto __pyx_L0; + + /* "talib/_func.pxi":10672 + * @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.c_ta_lib.TRIMA", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outreal); + __Pyx_XDECREF((PyObject *)__pyx_v_real); + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "talib/_func.pxi":10723 + * @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_8c_ta_lib_311TRIX(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_310TRIX[] = " 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_8c_ta_lib_311TRIX = {"TRIX", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_311TRIX, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_310TRIX}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_311TRIX(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(2, 10723, __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(2, 10723, __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(2, 10723, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 10723, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_310TRIX(__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_8c_ta_lib_310TRIX(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod) { + npy_intp __pyx_v_length; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + TA_RetCode __pyx_v_retCode; + double *__pyx_v_real_data; + int __pyx_v_outbegidx; + int __pyx_v_outnbelement; + PyArrayObject *__pyx_v_outreal = 0; + double *__pyx_v_outreal_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __Pyx_RefNannySetupContext("TRIX", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real); + + /* "talib/_func.pxi":10745 + * np.ndarray outreal + * double* outreal_data + * 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/_func.pxi":10746 + * double* outreal_data + * 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__1159, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10746, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 10746, __pyx_L1_error) + + /* "talib/_func.pxi":10745 + * np.ndarray outreal + * double* outreal_data + * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real is not double") + * if real.ndim != 1: + */ + } + + /* "talib/_func.pxi":10747 + * 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/_func.pxi":10748 + * 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__1160, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10748, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 10748, __pyx_L1_error) + + /* "talib/_func.pxi":10747 + * 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/_func.pxi":10749 + * 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 = real.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":10750 + * raise Exception("real has wrong dimensions") + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< + * real_data = real.data + * length = real.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10750, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 10750, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":10749 + * 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 = real.data + */ + } + + /* "talib/_func.pxi":10751 + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data # <<<<<<<<<<<<<< + * length = real.shape[0] + * begidx = 0 + */ + __pyx_v_real_data = ((double *)__pyx_v_real->data); + + /* "talib/_func.pxi":10752 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data + * length = real.shape[0] # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_v_length = (__pyx_v_real->dimensions[0]); + + /* "talib/_func.pxi":10753 + * real_data = real.data + * length = real.shape[0] + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = real_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":10754 + * length = real.shape[0] + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = real_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":10755 + * begidx = 0 + * for i from 0 <= i < length: + * val = real_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_real_data[__pyx_v_i]); + + /* "talib/_func.pxi":10756 + * for i from 0 <= i < length: + * val = real_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":10757 + * val = real_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L6_continue; + + /* "talib/_func.pxi":10756 + * for i from 0 <= i < length: + * val = real_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":10758 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":10759 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L7_break; + __pyx_L6_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":10761 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_TRIX_Lookback( timeperiod ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1161, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10761, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 10761, __pyx_L1_error) + } + __pyx_L7_break:; + + /* "talib/_func.pxi":10762 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_TRIX_Lookback( timeperiod ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":10763 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_TRIX_Lookback( timeperiod ) # <<<<<<<<<<<<<< + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_TRIX_Lookback(__pyx_v_timeperiod)); + + /* "talib/_func.pxi":10764 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_TRIX_Lookback( timeperiod ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10764, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 10764, __pyx_L1_error) + __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":10765 + * lookback = begidx + lib.TA_TRIX_Lookback( timeperiod ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + */ + __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); + + /* "talib/_func.pxi":10766 + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outreal_data[i] = NaN + * retCode = lib.TA_TRIX( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":10767 + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN # <<<<<<<<<<<<<< + * retCode = lib.TA_TRIX( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_TRIX", retCode) + */ + (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_8c_ta_lib_NaN; + } + + /* "talib/_func.pxi":10768 + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + * retCode = lib.TA_TRIX( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_TRIX", retCode) + * return outreal + */ + __pyx_v_retCode = TA_TRIX(0, __pyx_v_endidx, ((double *)(__pyx_v_real_data + __pyx_v_begidx)), __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":10769 + * outreal_data[i] = NaN + * retCode = lib.TA_TRIX( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_TRIX", retCode) # <<<<<<<<<<<<<< + * return outreal + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_TRIX, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10769, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":10770 + * retCode = lib.TA_TRIX( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_TRIX", retCode) + * return outreal # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); + __pyx_r = ((PyObject *)__pyx_v_outreal); + goto __pyx_L0; + + /* "talib/_func.pxi":10723 + * @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.c_ta_lib.TRIX", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outreal); + __Pyx_XDECREF((PyObject *)__pyx_v_real); + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "talib/_func.pxi":10774 + * @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_8c_ta_lib_313TSF(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_312TSF[] = " 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_8c_ta_lib_313TSF = {"TSF", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_313TSF, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_312TSF}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_313TSF(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(2, 10774, __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(2, 10774, __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(2, 10774, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 10774, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_312TSF(__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_8c_ta_lib_312TSF(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod) { + npy_intp __pyx_v_length; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + TA_RetCode __pyx_v_retCode; + double *__pyx_v_real_data; + int __pyx_v_outbegidx; + int __pyx_v_outnbelement; + PyArrayObject *__pyx_v_outreal = 0; + double *__pyx_v_outreal_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __Pyx_RefNannySetupContext("TSF", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real); + + /* "talib/_func.pxi":10796 + * np.ndarray outreal + * double* outreal_data + * 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/_func.pxi":10797 + * double* outreal_data + * 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__1162, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10797, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 10797, __pyx_L1_error) + + /* "talib/_func.pxi":10796 + * np.ndarray outreal + * double* outreal_data + * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real is not double") + * if real.ndim != 1: + */ + } + + /* "talib/_func.pxi":10798 + * 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/_func.pxi":10799 + * 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__1163, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10799, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 10799, __pyx_L1_error) + + /* "talib/_func.pxi":10798 + * 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/_func.pxi":10800 + * 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 = real.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":10801 + * raise Exception("real has wrong dimensions") + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< + * real_data = real.data + * length = real.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10801, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 10801, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":10800 + * 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 = real.data + */ + } + + /* "talib/_func.pxi":10802 + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data # <<<<<<<<<<<<<< + * length = real.shape[0] + * begidx = 0 + */ + __pyx_v_real_data = ((double *)__pyx_v_real->data); + + /* "talib/_func.pxi":10803 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data + * length = real.shape[0] # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_v_length = (__pyx_v_real->dimensions[0]); + + /* "talib/_func.pxi":10804 + * real_data = real.data + * length = real.shape[0] + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = real_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":10805 + * length = real.shape[0] + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = real_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":10806 + * begidx = 0 + * for i from 0 <= i < length: + * val = real_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_real_data[__pyx_v_i]); + + /* "talib/_func.pxi":10807 + * for i from 0 <= i < length: + * val = real_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":10808 + * val = real_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L6_continue; + + /* "talib/_func.pxi":10807 + * for i from 0 <= i < length: + * val = real_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":10809 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":10810 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L7_break; + __pyx_L6_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":10812 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_TSF_Lookback( timeperiod ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1164, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10812, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 10812, __pyx_L1_error) + } + __pyx_L7_break:; + + /* "talib/_func.pxi":10813 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_TSF_Lookback( timeperiod ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":10814 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_TSF_Lookback( timeperiod ) # <<<<<<<<<<<<<< + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_TSF_Lookback(__pyx_v_timeperiod)); + + /* "talib/_func.pxi":10815 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_TSF_Lookback( timeperiod ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10815, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 10815, __pyx_L1_error) + __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":10816 + * lookback = begidx + lib.TA_TSF_Lookback( timeperiod ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + */ + __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); + + /* "talib/_func.pxi":10817 + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outreal_data[i] = NaN + * retCode = lib.TA_TSF( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":10818 + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN # <<<<<<<<<<<<<< + * retCode = lib.TA_TSF( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_TSF", retCode) + */ + (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_8c_ta_lib_NaN; + } + + /* "talib/_func.pxi":10819 + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + * retCode = lib.TA_TSF( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_TSF", retCode) + * return outreal + */ + __pyx_v_retCode = TA_TSF(0, __pyx_v_endidx, ((double *)(__pyx_v_real_data + __pyx_v_begidx)), __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":10820 + * outreal_data[i] = NaN + * retCode = lib.TA_TSF( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_TSF", retCode) # <<<<<<<<<<<<<< + * return outreal + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_TSF, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10820, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":10821 + * retCode = lib.TA_TSF( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_TSF", retCode) + * return outreal # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); + __pyx_r = ((PyObject *)__pyx_v_outreal); + goto __pyx_L0; + + /* "talib/_func.pxi":10774 + * @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.c_ta_lib.TSF", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outreal); + __Pyx_XDECREF((PyObject *)__pyx_v_real); + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "talib/_func.pxi":10825 + * @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_8c_ta_lib_315TYPPRICE(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_314TYPPRICE[] = " 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_8c_ta_lib_315TYPPRICE = {"TYPPRICE", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_315TYPPRICE, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_314TYPPRICE}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_315TYPPRICE(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(2, 10825, __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(2, 10825, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "TYPPRICE") < 0)) __PYX_ERR(2, 10825, __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(2, 10825, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 10825, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(2, 10825, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(2, 10825, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_314TYPPRICE(__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_8c_ta_lib_314TYPPRICE(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close) { + npy_intp __pyx_v_length; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + 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; + PyArrayObject *__pyx_v_outreal = 0; + double *__pyx_v_outreal_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __Pyx_RefNannySetupContext("TYPPRICE", 0); + __Pyx_INCREF((PyObject *)__pyx_v_high); + __Pyx_INCREF((PyObject *)__pyx_v_low); + __Pyx_INCREF((PyObject *)__pyx_v_close); + + /* "talib/_func.pxi":10847 + * np.ndarray outreal + * double* outreal_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/_func.pxi":10848 + * double* outreal_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__1165, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10848, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 10848, __pyx_L1_error) + + /* "talib/_func.pxi":10847 + * np.ndarray outreal + * double* outreal_data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_func.pxi":10849 + * 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/_func.pxi":10850 + * raise 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__1166, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10850, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 10850, __pyx_L1_error) + + /* "talib/_func.pxi":10849 + * 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/_func.pxi":10851 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":10852 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10852, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 10852, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":10851 + * 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 = high.data + */ + } + + /* "talib/_func.pxi":10853 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":10854 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":10855 + * high_data = 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__1167, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10855, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 10855, __pyx_L1_error) + + /* "talib/_func.pxi":10854 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_func.pxi":10856 + * 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/_func.pxi":10857 + * raise 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__1168, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10857, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 10857, __pyx_L1_error) + + /* "talib/_func.pxi":10856 + * 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/_func.pxi":10858 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":10859 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10859, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 10859, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":10858 + * 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 = low.data + */ + } + + /* "talib/_func.pxi":10860 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":10861 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":10862 + * low_data = 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__1169, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10862, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 10862, __pyx_L1_error) + + /* "talib/_func.pxi":10861 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_func.pxi":10863 + * 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/_func.pxi":10864 + * raise 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__1170, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10864, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 10864, __pyx_L1_error) + + /* "talib/_func.pxi":10863 + * 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/_func.pxi":10865 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":10866 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = high.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10866, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 10866, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":10865 + * 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 = close.data + */ + } + + /* "talib/_func.pxi":10867 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = high.shape[0] + * if length != low.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_func.pxi":10868 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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/_func.pxi":10869 + * close_data = 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/_func.pxi":10870 + * 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__1171, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10870, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 10870, __pyx_L1_error) + + /* "talib/_func.pxi":10869 + * close_data = close.data + * length = high.shape[0] + * if length != low.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != close.shape[0]: + */ + } + + /* "talib/_func.pxi":10871 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":10872 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1172, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10872, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 10872, __pyx_L1_error) + + /* "talib/_func.pxi":10871 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + } + + /* "talib/_func.pxi":10873 + * if length != close.shape[0]: + * raise Exception("input lengths are different") + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = high_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":10874 + * raise Exception("input lengths are different") + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = high_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":10875 + * begidx = 0 + * for i from 0 <= i < length: + * val = high_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); + + /* "talib/_func.pxi":10876 + * for i from 0 <= i < length: + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":10877 + * val = high_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = low_data[i] + * if val != val: + */ + goto __pyx_L14_continue; + + /* "talib/_func.pxi":10876 + * for i from 0 <= i < length: + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + } + + /* "talib/_func.pxi":10878 + * if val != val: + * continue + * val = low_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); + + /* "talib/_func.pxi":10879 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":10880 + * val = low_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = close_data[i] + * if val != val: + */ + goto __pyx_L14_continue; + + /* "talib/_func.pxi":10879 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + } + + /* "talib/_func.pxi":10881 + * if val != val: + * continue + * val = close_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); + + /* "talib/_func.pxi":10882 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":10883 + * val = close_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L14_continue; + + /* "talib/_func.pxi":10882 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":10884 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":10885 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L15_break; + __pyx_L14_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":10887 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_TYPPRICE_Lookback( ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1173, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10887, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 10887, __pyx_L1_error) + } + __pyx_L15_break:; + + /* "talib/_func.pxi":10888 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_TYPPRICE_Lookback( ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":10889 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_TYPPRICE_Lookback( ) # <<<<<<<<<<<<<< + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_TYPPRICE_Lookback()); + + /* "talib/_func.pxi":10890 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_TYPPRICE_Lookback( ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10890, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 10890, __pyx_L1_error) + __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":10891 + * lookback = begidx + lib.TA_TYPPRICE_Lookback( ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + */ + __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); + + /* "talib/_func.pxi":10892 + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outreal_data[i] = NaN + * retCode = lib.TA_TYPPRICE( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":10893 + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN # <<<<<<<<<<<<<< + * retCode = lib.TA_TYPPRICE( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_TYPPRICE", retCode) + */ + (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_8c_ta_lib_NaN; + } + + /* "talib/_func.pxi":10894 + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + * retCode = lib.TA_TYPPRICE( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_TYPPRICE", retCode) + * return outreal + */ + __pyx_v_retCode = TA_TYPPRICE(0, __pyx_v_endidx, ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":10895 + * outreal_data[i] = NaN + * retCode = lib.TA_TYPPRICE( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_TYPPRICE", retCode) # <<<<<<<<<<<<<< + * return outreal + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_TYPPRICE, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10895, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":10896 + * retCode = lib.TA_TYPPRICE( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_TYPPRICE", retCode) + * return outreal # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); + __pyx_r = ((PyObject *)__pyx_v_outreal); + goto __pyx_L0; + + /* "talib/_func.pxi":10825 + * @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.c_ta_lib.TYPPRICE", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outreal); + __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/_func.pxi":10900 + * @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_8c_ta_lib_317ULTOSC(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_316ULTOSC[] = " 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_8c_ta_lib_317ULTOSC = {"ULTOSC", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_317ULTOSC, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_316ULTOSC}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_317ULTOSC(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(2, 10900, __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(2, 10900, __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(2, 10900, __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(2, 10900, __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(2, 10900, __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(2, 10900, __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(2, 10900, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 10900, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(2, 10900, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(2, 10900, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_316ULTOSC(__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_8c_ta_lib_316ULTOSC(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; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + 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; + PyArrayObject *__pyx_v_outreal = 0; + double *__pyx_v_outreal_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __Pyx_RefNannySetupContext("ULTOSC", 0); + __Pyx_INCREF((PyObject *)__pyx_v_high); + __Pyx_INCREF((PyObject *)__pyx_v_low); + __Pyx_INCREF((PyObject *)__pyx_v_close); + + /* "talib/_func.pxi":10926 + * np.ndarray outreal + * double* outreal_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/_func.pxi":10927 + * double* outreal_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__1174, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10927, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 10927, __pyx_L1_error) + + /* "talib/_func.pxi":10926 + * np.ndarray outreal + * double* outreal_data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_func.pxi":10928 + * 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/_func.pxi":10929 + * raise 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__1175, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10929, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 10929, __pyx_L1_error) + + /* "talib/_func.pxi":10928 + * 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/_func.pxi":10930 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":10931 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10931, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 10931, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":10930 + * 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 = high.data + */ + } + + /* "talib/_func.pxi":10932 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":10933 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":10934 + * high_data = 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__1176, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10934, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 10934, __pyx_L1_error) + + /* "talib/_func.pxi":10933 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_func.pxi":10935 + * 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/_func.pxi":10936 + * raise 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__1177, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10936, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 10936, __pyx_L1_error) + + /* "talib/_func.pxi":10935 + * 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/_func.pxi":10937 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":10938 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10938, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 10938, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":10937 + * 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 = low.data + */ + } + + /* "talib/_func.pxi":10939 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":10940 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":10941 + * low_data = 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__1178, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10941, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 10941, __pyx_L1_error) + + /* "talib/_func.pxi":10940 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_func.pxi":10942 + * 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/_func.pxi":10943 + * raise 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__1179, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10943, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 10943, __pyx_L1_error) + + /* "talib/_func.pxi":10942 + * 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/_func.pxi":10944 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":10945 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = high.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10945, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 10945, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":10944 + * 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 = close.data + */ + } + + /* "talib/_func.pxi":10946 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = high.shape[0] + * if length != low.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_func.pxi":10947 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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/_func.pxi":10948 + * close_data = 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/_func.pxi":10949 + * 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__1180, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10949, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 10949, __pyx_L1_error) + + /* "talib/_func.pxi":10948 + * close_data = close.data + * length = high.shape[0] + * if length != low.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != close.shape[0]: + */ + } + + /* "talib/_func.pxi":10950 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":10951 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1181, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10951, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 10951, __pyx_L1_error) + + /* "talib/_func.pxi":10950 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + } + + /* "talib/_func.pxi":10952 + * if length != close.shape[0]: + * raise Exception("input lengths are different") + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = high_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":10953 + * raise Exception("input lengths are different") + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = high_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":10954 + * begidx = 0 + * for i from 0 <= i < length: + * val = high_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); + + /* "talib/_func.pxi":10955 + * for i from 0 <= i < length: + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":10956 + * val = high_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = low_data[i] + * if val != val: + */ + goto __pyx_L14_continue; + + /* "talib/_func.pxi":10955 + * for i from 0 <= i < length: + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + } + + /* "talib/_func.pxi":10957 + * if val != val: + * continue + * val = low_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); + + /* "talib/_func.pxi":10958 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":10959 + * val = low_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = close_data[i] + * if val != val: + */ + goto __pyx_L14_continue; + + /* "talib/_func.pxi":10958 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + } + + /* "talib/_func.pxi":10960 + * if val != val: + * continue + * val = close_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); + + /* "talib/_func.pxi":10961 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":10962 + * val = close_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L14_continue; + + /* "talib/_func.pxi":10961 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":10963 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":10964 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L15_break; + __pyx_L14_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":10966 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_ULTOSC_Lookback( timeperiod1 , timeperiod2 , timeperiod3 ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1182, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10966, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 10966, __pyx_L1_error) + } + __pyx_L15_break:; + + /* "talib/_func.pxi":10967 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_ULTOSC_Lookback( timeperiod1 , timeperiod2 , timeperiod3 ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":10968 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_ULTOSC_Lookback( timeperiod1 , timeperiod2 , timeperiod3 ) # <<<<<<<<<<<<<< + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_ULTOSC_Lookback(__pyx_v_timeperiod1, __pyx_v_timeperiod2, __pyx_v_timeperiod3)); + + /* "talib/_func.pxi":10969 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_ULTOSC_Lookback( timeperiod1 , timeperiod2 , timeperiod3 ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10969, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 10969, __pyx_L1_error) + __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":10970 + * lookback = begidx + lib.TA_ULTOSC_Lookback( timeperiod1 , timeperiod2 , timeperiod3 ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + */ + __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); + + /* "talib/_func.pxi":10971 + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outreal_data[i] = NaN + * retCode = lib.TA_ULTOSC( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , timeperiod1 , timeperiod2 , timeperiod3 , &outbegidx , &outnbelement , (outreal_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":10972 + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN # <<<<<<<<<<<<<< + * retCode = lib.TA_ULTOSC( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , timeperiod1 , timeperiod2 , timeperiod3 , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_ULTOSC", retCode) + */ + (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_8c_ta_lib_NaN; + } + + /* "talib/_func.pxi":10973 + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + * retCode = lib.TA_ULTOSC( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , timeperiod1 , timeperiod2 , timeperiod3 , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_ULTOSC", retCode) + * return outreal + */ + __pyx_v_retCode = TA_ULTOSC(0, __pyx_v_endidx, ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), __pyx_v_timeperiod1, __pyx_v_timeperiod2, __pyx_v_timeperiod3, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":10974 + * outreal_data[i] = NaN + * retCode = lib.TA_ULTOSC( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , timeperiod1 , timeperiod2 , timeperiod3 , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_ULTOSC", retCode) # <<<<<<<<<<<<<< + * return outreal + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_ULTOSC, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10974, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":10975 + * retCode = lib.TA_ULTOSC( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , timeperiod1 , timeperiod2 , timeperiod3 , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_ULTOSC", retCode) + * return outreal # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); + __pyx_r = ((PyObject *)__pyx_v_outreal); + goto __pyx_L0; + + /* "talib/_func.pxi":10900 + * @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.c_ta_lib.ULTOSC", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outreal); + __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/_func.pxi":10979 + * @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_8c_ta_lib_319VAR(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_318VAR[] = " 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_8c_ta_lib_319VAR = {"VAR", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_319VAR, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_318VAR}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_319VAR(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(2, 10979, __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(2, 10979, __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(2, 10979, __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(2, 10979, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 10979, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_318VAR(__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_8c_ta_lib_318VAR(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod, double __pyx_v_nbdev) { + npy_intp __pyx_v_length; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + TA_RetCode __pyx_v_retCode; + double *__pyx_v_real_data; + int __pyx_v_outbegidx; + int __pyx_v_outnbelement; + PyArrayObject *__pyx_v_outreal = 0; + double *__pyx_v_outreal_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __Pyx_RefNannySetupContext("VAR", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real); + + /* "talib/_func.pxi":11002 + * np.ndarray outreal + * double* outreal_data + * 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/_func.pxi":11003 + * double* outreal_data + * 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__1183, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 11003, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 11003, __pyx_L1_error) + + /* "talib/_func.pxi":11002 + * np.ndarray outreal + * double* outreal_data + * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real is not double") + * if real.ndim != 1: + */ + } + + /* "talib/_func.pxi":11004 + * 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/_func.pxi":11005 + * 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__1184, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 11005, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 11005, __pyx_L1_error) + + /* "talib/_func.pxi":11004 + * 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/_func.pxi":11006 + * 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 = real.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":11007 + * raise Exception("real has wrong dimensions") + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< + * real_data = real.data + * length = real.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 11007, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 11007, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":11006 + * 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 = real.data + */ + } + + /* "talib/_func.pxi":11008 + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data # <<<<<<<<<<<<<< + * length = real.shape[0] + * begidx = 0 + */ + __pyx_v_real_data = ((double *)__pyx_v_real->data); + + /* "talib/_func.pxi":11009 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data + * length = real.shape[0] # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_v_length = (__pyx_v_real->dimensions[0]); + + /* "talib/_func.pxi":11010 + * real_data = real.data + * length = real.shape[0] + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = real_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":11011 + * length = real.shape[0] + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = real_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":11012 + * begidx = 0 + * for i from 0 <= i < length: + * val = real_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_real_data[__pyx_v_i]); + + /* "talib/_func.pxi":11013 + * for i from 0 <= i < length: + * val = real_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":11014 + * val = real_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L6_continue; + + /* "talib/_func.pxi":11013 + * for i from 0 <= i < length: + * val = real_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":11015 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":11016 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L7_break; + __pyx_L6_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":11018 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_VAR_Lookback( timeperiod , nbdev ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1185, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 11018, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 11018, __pyx_L1_error) + } + __pyx_L7_break:; + + /* "talib/_func.pxi":11019 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_VAR_Lookback( timeperiod , nbdev ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":11020 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_VAR_Lookback( timeperiod , nbdev ) # <<<<<<<<<<<<<< + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_VAR_Lookback(__pyx_v_timeperiod, __pyx_v_nbdev)); + + /* "talib/_func.pxi":11021 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_VAR_Lookback( timeperiod , nbdev ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 11021, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 11021, __pyx_L1_error) + __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":11022 + * lookback = begidx + lib.TA_VAR_Lookback( timeperiod , nbdev ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + */ + __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); + + /* "talib/_func.pxi":11023 + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outreal_data[i] = NaN + * retCode = lib.TA_VAR( 0 , endidx , (real_data+begidx) , timeperiod , nbdev , &outbegidx , &outnbelement , (outreal_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":11024 + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN # <<<<<<<<<<<<<< + * retCode = lib.TA_VAR( 0 , endidx , (real_data+begidx) , timeperiod , nbdev , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_VAR", retCode) + */ + (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_8c_ta_lib_NaN; + } + + /* "talib/_func.pxi":11025 + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + * retCode = lib.TA_VAR( 0 , endidx , (real_data+begidx) , timeperiod , nbdev , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_VAR", retCode) + * return outreal + */ + __pyx_v_retCode = TA_VAR(0, __pyx_v_endidx, ((double *)(__pyx_v_real_data + __pyx_v_begidx)), __pyx_v_timeperiod, __pyx_v_nbdev, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":11026 + * outreal_data[i] = NaN + * retCode = lib.TA_VAR( 0 , endidx , (real_data+begidx) , timeperiod , nbdev , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_VAR", retCode) # <<<<<<<<<<<<<< + * return outreal + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_VAR, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 11026, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":11027 + * retCode = lib.TA_VAR( 0 , endidx , (real_data+begidx) , timeperiod , nbdev , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_VAR", retCode) + * return outreal # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); + __pyx_r = ((PyObject *)__pyx_v_outreal); + goto __pyx_L0; + + /* "talib/_func.pxi":10979 + * @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.c_ta_lib.VAR", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outreal); + __Pyx_XDECREF((PyObject *)__pyx_v_real); + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "talib/_func.pxi":11031 + * @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_8c_ta_lib_321WCLPRICE(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_320WCLPRICE[] = " 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_8c_ta_lib_321WCLPRICE = {"WCLPRICE", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_321WCLPRICE, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_320WCLPRICE}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_321WCLPRICE(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(2, 11031, __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(2, 11031, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "WCLPRICE") < 0)) __PYX_ERR(2, 11031, __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(2, 11031, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 11031, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(2, 11031, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(2, 11031, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_320WCLPRICE(__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_8c_ta_lib_320WCLPRICE(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_high, PyArrayObject *__pyx_v_low, PyArrayObject *__pyx_v_close) { + npy_intp __pyx_v_length; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + 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; + PyArrayObject *__pyx_v_outreal = 0; + double *__pyx_v_outreal_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __Pyx_RefNannySetupContext("WCLPRICE", 0); + __Pyx_INCREF((PyObject *)__pyx_v_high); + __Pyx_INCREF((PyObject *)__pyx_v_low); + __Pyx_INCREF((PyObject *)__pyx_v_close); + + /* "talib/_func.pxi":11053 + * np.ndarray outreal + * double* outreal_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/_func.pxi":11054 + * double* outreal_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__1186, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 11054, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 11054, __pyx_L1_error) + + /* "talib/_func.pxi":11053 + * np.ndarray outreal + * double* outreal_data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_func.pxi":11055 + * 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/_func.pxi":11056 + * raise 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__1187, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 11056, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 11056, __pyx_L1_error) + + /* "talib/_func.pxi":11055 + * 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/_func.pxi":11057 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":11058 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 11058, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 11058, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":11057 + * 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 = high.data + */ + } + + /* "talib/_func.pxi":11059 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":11060 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":11061 + * high_data = 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__1188, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 11061, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 11061, __pyx_L1_error) + + /* "talib/_func.pxi":11060 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_func.pxi":11062 + * 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/_func.pxi":11063 + * raise 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__1189, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 11063, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 11063, __pyx_L1_error) + + /* "talib/_func.pxi":11062 + * 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/_func.pxi":11064 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":11065 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 11065, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 11065, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":11064 + * 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 = low.data + */ + } + + /* "talib/_func.pxi":11066 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":11067 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":11068 + * low_data = 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__1190, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 11068, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 11068, __pyx_L1_error) + + /* "talib/_func.pxi":11067 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_func.pxi":11069 + * 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/_func.pxi":11070 + * raise 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__1191, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 11070, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 11070, __pyx_L1_error) + + /* "talib/_func.pxi":11069 + * 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/_func.pxi":11071 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":11072 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = high.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 11072, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 11072, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":11071 + * 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 = close.data + */ + } + + /* "talib/_func.pxi":11073 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = high.shape[0] + * if length != low.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_func.pxi":11074 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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/_func.pxi":11075 + * close_data = 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/_func.pxi":11076 + * 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__1192, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 11076, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 11076, __pyx_L1_error) + + /* "talib/_func.pxi":11075 + * close_data = close.data + * length = high.shape[0] + * if length != low.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != close.shape[0]: + */ + } + + /* "talib/_func.pxi":11077 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":11078 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1193, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 11078, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 11078, __pyx_L1_error) + + /* "talib/_func.pxi":11077 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + } + + /* "talib/_func.pxi":11079 + * if length != close.shape[0]: + * raise Exception("input lengths are different") + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = high_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":11080 + * raise Exception("input lengths are different") + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = high_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":11081 + * begidx = 0 + * for i from 0 <= i < length: + * val = high_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); + + /* "talib/_func.pxi":11082 + * for i from 0 <= i < length: + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":11083 + * val = high_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = low_data[i] + * if val != val: + */ + goto __pyx_L14_continue; + + /* "talib/_func.pxi":11082 + * for i from 0 <= i < length: + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + } + + /* "talib/_func.pxi":11084 + * if val != val: + * continue + * val = low_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); + + /* "talib/_func.pxi":11085 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":11086 + * val = low_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = close_data[i] + * if val != val: + */ + goto __pyx_L14_continue; + + /* "talib/_func.pxi":11085 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + } + + /* "talib/_func.pxi":11087 + * if val != val: + * continue + * val = close_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); + + /* "talib/_func.pxi":11088 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":11089 + * val = close_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L14_continue; + + /* "talib/_func.pxi":11088 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":11090 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":11091 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L15_break; + __pyx_L14_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":11093 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_WCLPRICE_Lookback( ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1194, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 11093, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 11093, __pyx_L1_error) + } + __pyx_L15_break:; + + /* "talib/_func.pxi":11094 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_WCLPRICE_Lookback( ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":11095 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_WCLPRICE_Lookback( ) # <<<<<<<<<<<<<< + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_WCLPRICE_Lookback()); + + /* "talib/_func.pxi":11096 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_WCLPRICE_Lookback( ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 11096, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 11096, __pyx_L1_error) + __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":11097 + * lookback = begidx + lib.TA_WCLPRICE_Lookback( ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + */ + __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); + + /* "talib/_func.pxi":11098 + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outreal_data[i] = NaN + * retCode = lib.TA_WCLPRICE( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":11099 + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN # <<<<<<<<<<<<<< + * retCode = lib.TA_WCLPRICE( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_WCLPRICE", retCode) + */ + (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_8c_ta_lib_NaN; + } + + /* "talib/_func.pxi":11100 + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + * retCode = lib.TA_WCLPRICE( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_WCLPRICE", retCode) + * return outreal + */ + __pyx_v_retCode = TA_WCLPRICE(0, __pyx_v_endidx, ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":11101 + * outreal_data[i] = NaN + * retCode = lib.TA_WCLPRICE( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_WCLPRICE", retCode) # <<<<<<<<<<<<<< + * return outreal + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_WCLPRICE, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 11101, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":11102 + * retCode = lib.TA_WCLPRICE( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_WCLPRICE", retCode) + * return outreal # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); + __pyx_r = ((PyObject *)__pyx_v_outreal); + goto __pyx_L0; + + /* "talib/_func.pxi":11031 + * @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.c_ta_lib.WCLPRICE", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outreal); + __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/_func.pxi":11106 + * @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_8c_ta_lib_323WILLR(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_322WILLR[] = " 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_8c_ta_lib_323WILLR = {"WILLR", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_323WILLR, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_322WILLR}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_323WILLR(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(2, 11106, __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(2, 11106, __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(2, 11106, __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(2, 11106, __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(2, 11106, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 11106, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(2, 11106, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(2, 11106, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_322WILLR(__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_8c_ta_lib_322WILLR(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; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + 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; + PyArrayObject *__pyx_v_outreal = 0; + double *__pyx_v_outreal_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __Pyx_RefNannySetupContext("WILLR", 0); + __Pyx_INCREF((PyObject *)__pyx_v_high); + __Pyx_INCREF((PyObject *)__pyx_v_low); + __Pyx_INCREF((PyObject *)__pyx_v_close); + + /* "talib/_func.pxi":11130 + * np.ndarray outreal + * double* outreal_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/_func.pxi":11131 + * double* outreal_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__1195, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 11131, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 11131, __pyx_L1_error) + + /* "talib/_func.pxi":11130 + * np.ndarray outreal + * double* outreal_data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_func.pxi":11132 + * 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/_func.pxi":11133 + * raise 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__1196, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 11133, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 11133, __pyx_L1_error) + + /* "talib/_func.pxi":11132 + * 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/_func.pxi":11134 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":11135 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 11135, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 11135, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":11134 + * 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 = high.data + */ + } + + /* "talib/_func.pxi":11136 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":11137 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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/_func.pxi":11138 + * high_data = 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__1197, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 11138, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 11138, __pyx_L1_error) + + /* "talib/_func.pxi":11137 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_func.pxi":11139 + * 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/_func.pxi":11140 + * raise 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__1198, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 11140, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 11140, __pyx_L1_error) + + /* "talib/_func.pxi":11139 + * 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/_func.pxi":11141 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":11142 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 11142, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 11142, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":11141 + * 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 = low.data + */ + } + + /* "talib/_func.pxi":11143 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":11144 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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/_func.pxi":11145 + * low_data = 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__1199, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 11145, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 11145, __pyx_L1_error) + + /* "talib/_func.pxi":11144 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_func.pxi":11146 + * 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/_func.pxi":11147 + * raise 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__1200, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 11147, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 11147, __pyx_L1_error) + + /* "talib/_func.pxi":11146 + * 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/_func.pxi":11148 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":11149 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = high.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 11149, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 11149, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":11148 + * 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 = close.data + */ + } + + /* "talib/_func.pxi":11150 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = high.shape[0] + * if length != low.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_func.pxi":11151 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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/_func.pxi":11152 + * close_data = 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/_func.pxi":11153 + * 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__1201, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 11153, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 11153, __pyx_L1_error) + + /* "talib/_func.pxi":11152 + * close_data = close.data + * length = high.shape[0] + * if length != low.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != close.shape[0]: + */ + } + + /* "talib/_func.pxi":11154 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + __pyx_t_1 = ((__pyx_v_length != (__pyx_v_close->dimensions[0])) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":11155 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1202, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 11155, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 11155, __pyx_L1_error) + + /* "talib/_func.pxi":11154 + * if length != low.shape[0]: + * raise Exception("input lengths are different") + * if length != close.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * begidx = 0 + */ + } + + /* "talib/_func.pxi":11156 + * if length != close.shape[0]: + * raise Exception("input lengths are different") + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = high_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":11157 + * raise Exception("input lengths are different") + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = high_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":11158 + * begidx = 0 + * for i from 0 <= i < length: + * val = high_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_high_data[__pyx_v_i]); + + /* "talib/_func.pxi":11159 + * for i from 0 <= i < length: + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":11160 + * val = high_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = low_data[i] + * if val != val: + */ + goto __pyx_L14_continue; + + /* "talib/_func.pxi":11159 + * for i from 0 <= i < length: + * val = high_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = low_data[i] + */ + } + + /* "talib/_func.pxi":11161 + * if val != val: + * continue + * val = low_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_low_data[__pyx_v_i]); + + /* "talib/_func.pxi":11162 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":11163 + * val = low_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * val = close_data[i] + * if val != val: + */ + goto __pyx_L14_continue; + + /* "talib/_func.pxi":11162 + * continue + * val = low_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * val = close_data[i] + */ + } + + /* "talib/_func.pxi":11164 + * if val != val: + * continue + * val = close_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_close_data[__pyx_v_i]); + + /* "talib/_func.pxi":11165 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":11166 + * val = close_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L14_continue; + + /* "talib/_func.pxi":11165 + * continue + * val = close_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":11167 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":11168 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L15_break; + __pyx_L14_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":11170 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_WILLR_Lookback( timeperiod ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1203, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 11170, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 11170, __pyx_L1_error) + } + __pyx_L15_break:; + + /* "talib/_func.pxi":11171 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_WILLR_Lookback( timeperiod ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":11172 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_WILLR_Lookback( timeperiod ) # <<<<<<<<<<<<<< + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_WILLR_Lookback(__pyx_v_timeperiod)); + + /* "talib/_func.pxi":11173 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_WILLR_Lookback( timeperiod ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 11173, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 11173, __pyx_L1_error) + __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":11174 + * lookback = begidx + lib.TA_WILLR_Lookback( timeperiod ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + */ + __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); + + /* "talib/_func.pxi":11175 + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outreal_data[i] = NaN + * retCode = lib.TA_WILLR( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":11176 + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN # <<<<<<<<<<<<<< + * retCode = lib.TA_WILLR( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_WILLR", retCode) + */ + (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_8c_ta_lib_NaN; + } + + /* "talib/_func.pxi":11177 + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + * retCode = lib.TA_WILLR( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_WILLR", retCode) + * return outreal + */ + __pyx_v_retCode = TA_WILLR(0, __pyx_v_endidx, ((double *)(__pyx_v_high_data + __pyx_v_begidx)), ((double *)(__pyx_v_low_data + __pyx_v_begidx)), ((double *)(__pyx_v_close_data + __pyx_v_begidx)), __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":11178 + * outreal_data[i] = NaN + * retCode = lib.TA_WILLR( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_WILLR", retCode) # <<<<<<<<<<<<<< + * return outreal + * + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_WILLR, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 11178, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":11179 + * retCode = lib.TA_WILLR( 0 , endidx , (high_data+begidx) , (low_data+begidx) , (close_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_WILLR", retCode) + * return outreal # <<<<<<<<<<<<<< + * + * @wraparound(False) # turn off relative indexing from end of lists + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); + __pyx_r = ((PyObject *)__pyx_v_outreal); + goto __pyx_L0; + + /* "talib/_func.pxi":11106 + * @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.c_ta_lib.WILLR", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outreal); + __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/_func.pxi":11183 + * @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_8c_ta_lib_325WMA(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_324WMA[] = " 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_8c_ta_lib_325WMA = {"WMA", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_325WMA, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_324WMA}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_325WMA(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(2, 11183, __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(2, 11183, __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(2, 11183, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(2, 11183, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_324WMA(__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_8c_ta_lib_324WMA(CYTHON_UNUSED PyObject *__pyx_self, PyArrayObject *__pyx_v_real, int __pyx_v_timeperiod) { + npy_intp __pyx_v_length; + double __pyx_v_val; + int __pyx_v_begidx; + int __pyx_v_endidx; + int __pyx_v_lookback; + TA_RetCode __pyx_v_retCode; + double *__pyx_v_real_data; + int __pyx_v_outbegidx; + int __pyx_v_outnbelement; + PyArrayObject *__pyx_v_outreal = 0; + double *__pyx_v_outreal_data; + long __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + int __pyx_t_1; + PyObject *__pyx_t_2 = NULL; + npy_intp __pyx_t_3; + int __pyx_t_4; + npy_intp __pyx_t_5; + __Pyx_RefNannySetupContext("WMA", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real); + + /* "talib/_func.pxi":11205 + * np.ndarray outreal + * double* outreal_data + * 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/_func.pxi":11206 + * double* outreal_data + * 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__1204, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 11206, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 11206, __pyx_L1_error) + + /* "talib/_func.pxi":11205 + * np.ndarray outreal + * double* outreal_data + * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real is not double") + * if real.ndim != 1: + */ + } + + /* "talib/_func.pxi":11207 + * 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/_func.pxi":11208 + * 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__1205, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 11208, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 11208, __pyx_L1_error) + + /* "talib/_func.pxi":11207 + * 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/_func.pxi":11209 + * 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 = real.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":11210 + * raise Exception("real has wrong dimensions") + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< + * real_data = real.data + * length = real.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 11210, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 11210, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":11209 + * 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 = real.data + */ + } + + /* "talib/_func.pxi":11211 + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data # <<<<<<<<<<<<<< + * length = real.shape[0] + * begidx = 0 + */ + __pyx_v_real_data = ((double *)__pyx_v_real->data); + + /* "talib/_func.pxi":11212 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data + * length = real.shape[0] # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_v_length = (__pyx_v_real->dimensions[0]); + + /* "talib/_func.pxi":11213 + * real_data = real.data + * length = real.shape[0] + * begidx = 0 # <<<<<<<<<<<<<< + * for i from 0 <= i < length: + * val = real_data[i] + */ + __pyx_v_begidx = 0; + + /* "talib/_func.pxi":11214 + * length = real.shape[0] + * begidx = 0 + * for i from 0 <= i < length: # <<<<<<<<<<<<<< + * val = real_data[i] + * if val != val: + */ + __pyx_t_3 = __pyx_v_length; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":11215 + * begidx = 0 + * for i from 0 <= i < length: + * val = real_data[i] # <<<<<<<<<<<<<< + * if val != val: + * continue + */ + __pyx_v_val = (__pyx_v_real_data[__pyx_v_i]); + + /* "talib/_func.pxi":11216 + * for i from 0 <= i < length: + * val = real_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + __pyx_t_1 = ((__pyx_v_val != __pyx_v_val) != 0); + if (__pyx_t_1) { + + /* "talib/_func.pxi":11217 + * val = real_data[i] + * if val != val: + * continue # <<<<<<<<<<<<<< + * begidx = i + * break + */ + goto __pyx_L6_continue; + + /* "talib/_func.pxi":11216 + * for i from 0 <= i < length: + * val = real_data[i] + * if val != val: # <<<<<<<<<<<<<< + * continue + * begidx = i + */ + } + + /* "talib/_func.pxi":11218 + * if val != val: + * continue + * begidx = i # <<<<<<<<<<<<<< + * break + * else: + */ + __pyx_v_begidx = __pyx_v_i; + + /* "talib/_func.pxi":11219 + * continue + * begidx = i + * break # <<<<<<<<<<<<<< + * else: + * raise Exception("inputs are all NaN") + */ + goto __pyx_L7_break; + __pyx_L6_continue:; + } + /*else*/ { + + /* "talib/_func.pxi":11221 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_WMA_Lookback( timeperiod ) + */ + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_tuple__1206, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 11221, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(2, 11221, __pyx_L1_error) + } + __pyx_L7_break:; + + /* "talib/_func.pxi":11222 + * else: + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 # <<<<<<<<<<<<<< + * lookback = begidx + lib.TA_WMA_Lookback( timeperiod ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + */ + __pyx_v_endidx = ((__pyx_v_length - __pyx_v_begidx) - 1); + + /* "talib/_func.pxi":11223 + * raise Exception("inputs are all NaN") + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_WMA_Lookback( timeperiod ) # <<<<<<<<<<<<<< + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + */ + __pyx_v_lookback = (__pyx_v_begidx + TA_WMA_Lookback(__pyx_v_timeperiod)); + + /* "talib/_func.pxi":11224 + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_WMA_Lookback( timeperiod ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) # <<<<<<<<<<<<<< + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + */ + __pyx_t_2 = PyArray_EMPTY(1, (&__pyx_v_length), NPY_DOUBLE, NPY_DEFAULT); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 11224, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(2, 11224, __pyx_L1_error) + __pyx_v_outreal = ((PyArrayObject *)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_func.pxi":11225 + * lookback = begidx + lib.TA_WMA_Lookback( timeperiod ) + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data # <<<<<<<<<<<<<< + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + */ + __pyx_v_outreal_data = ((double *)__pyx_v_outreal->data); + + /* "talib/_func.pxi":11226 + * outreal = PyArray_EMPTY(1, &length, np.NPY_DOUBLE, np.NPY_DEFAULT) + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): # <<<<<<<<<<<<<< + * outreal_data[i] = NaN + * retCode = lib.TA_WMA( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + */ + __pyx_t_3 = __pyx_v_length; + __pyx_t_4 = __pyx_v_lookback; + if (((__pyx_t_3 < __pyx_t_4) != 0)) { + __pyx_t_5 = __pyx_t_3; + } else { + __pyx_t_5 = __pyx_t_4; + } + __pyx_t_3 = __pyx_t_5; + for (__pyx_v_i = 0; __pyx_v_i < __pyx_t_3; __pyx_v_i++) { + + /* "talib/_func.pxi":11227 + * outreal_data = outreal.data + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN # <<<<<<<<<<<<<< + * retCode = lib.TA_WMA( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_WMA", retCode) + */ + (__pyx_v_outreal_data[__pyx_v_i]) = __pyx_v_5talib_8c_ta_lib_NaN; + } + + /* "talib/_func.pxi":11228 + * for i from 0 <= i < min(lookback, length): + * outreal_data[i] = NaN + * retCode = lib.TA_WMA( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) # <<<<<<<<<<<<<< + * _ta_check_success("TA_WMA", retCode) + * return outreal + */ + __pyx_v_retCode = TA_WMA(0, __pyx_v_endidx, ((double *)(__pyx_v_real_data + __pyx_v_begidx)), __pyx_v_timeperiod, (&__pyx_v_outbegidx), (&__pyx_v_outnbelement), ((double *)(__pyx_v_outreal_data + __pyx_v_lookback))); + + /* "talib/_func.pxi":11229 + * outreal_data[i] = NaN + * retCode = lib.TA_WMA( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_WMA", retCode) # <<<<<<<<<<<<<< + * return outreal + */ + __pyx_t_2 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_WMA, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 11229, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":11230 + * retCode = lib.TA_WMA( 0 , endidx , (real_data+begidx) , timeperiod , &outbegidx , &outnbelement , (outreal_data+lookback) ) + * _ta_check_success("TA_WMA", retCode) + * return outreal # <<<<<<<<<<<<<< + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(((PyObject *)__pyx_v_outreal)); + __pyx_r = ((PyObject *)__pyx_v_outreal); + goto __pyx_L0; + + /* "talib/_func.pxi":11183 + * @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.c_ta_lib.WMA", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF((PyObject *)__pyx_v_outreal); + __Pyx_XDECREF((PyObject *)__pyx_v_real); + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "talib/_abstract.pxi":45 + * if sys.version >= '3': + * + * def str2bytes(s): # <<<<<<<<<<<<<< + * return bytes(s, 'ascii') + * + */ + +/* Python wrapper */ +static PyObject *__pyx_pw_5talib_8c_ta_lib_327str2bytes(PyObject *__pyx_self, PyObject *__pyx_v_s); /*proto*/ +static PyMethodDef __pyx_mdef_5talib_8c_ta_lib_327str2bytes = {"str2bytes", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_327str2bytes, METH_O, 0}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_327str2bytes(PyObject *__pyx_self, PyObject *__pyx_v_s) { + PyObject *__pyx_r = 0; + __Pyx_RefNannyDeclarations + __Pyx_RefNannySetupContext("str2bytes (wrapper)", 0); + __pyx_r = __pyx_pf_5talib_8c_ta_lib_326str2bytes(__pyx_self, ((PyObject *)__pyx_v_s)); + + /* function exit code */ + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +static PyObject *__pyx_pf_5talib_8c_ta_lib_326str2bytes(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_s) { + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + PyObject *__pyx_t_1 = NULL; + PyObject *__pyx_t_2 = NULL; + __Pyx_RefNannySetupContext("str2bytes", 0); + + /* "talib/_abstract.pxi":46 + * + * def str2bytes(s): + * return bytes(s, 'ascii') # <<<<<<<<<<<<<< + * + * def bytes2str(b): + */ + __Pyx_XDECREF(__pyx_r); + __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 46, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __Pyx_INCREF(__pyx_v_s); + __Pyx_GIVEREF(__pyx_v_s); + PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_s); + __Pyx_INCREF(__pyx_n_s_ascii); + __Pyx_GIVEREF(__pyx_n_s_ascii); + PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_n_s_ascii); + __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)(&PyBytes_Type)), __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 46, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_abstract.pxi":45 + * if sys.version >= '3': + * + * def str2bytes(s): # <<<<<<<<<<<<<< + * return bytes(s, 'ascii') + * + */ + + /* function exit code */ + __pyx_L1_error:; + __Pyx_XDECREF(__pyx_t_1); + __Pyx_XDECREF(__pyx_t_2); + __Pyx_AddTraceback("talib.c_ta_lib.str2bytes", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "talib/_abstract.pxi":48 + * return bytes(s, 'ascii') + * + * def bytes2str(b): # <<<<<<<<<<<<<< + * return b.decode('ascii') + * + */ + +/* Python wrapper */ +static PyObject *__pyx_pw_5talib_8c_ta_lib_329bytes2str(PyObject *__pyx_self, PyObject *__pyx_v_b); /*proto*/ +static PyMethodDef __pyx_mdef_5talib_8c_ta_lib_329bytes2str = {"bytes2str", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_329bytes2str, METH_O, 0}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_329bytes2str(PyObject *__pyx_self, PyObject *__pyx_v_b) { + PyObject *__pyx_r = 0; + __Pyx_RefNannyDeclarations + __Pyx_RefNannySetupContext("bytes2str (wrapper)", 0); + __pyx_r = __pyx_pf_5talib_8c_ta_lib_328bytes2str(__pyx_self, ((PyObject *)__pyx_v_b)); + + /* function exit code */ + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +static PyObject *__pyx_pf_5talib_8c_ta_lib_328bytes2str(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_b) { + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + PyObject *__pyx_t_1 = NULL; + PyObject *__pyx_t_2 = NULL; + __Pyx_RefNannySetupContext("bytes2str", 0); + + /* "talib/_abstract.pxi":49 + * + * def bytes2str(b): + * return b.decode('ascii') # <<<<<<<<<<<<<< + * + * else: + */ + __Pyx_XDECREF(__pyx_r); + __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_b, __pyx_n_s_decode); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 49, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__1207, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 49, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_abstract.pxi":48 + * return bytes(s, 'ascii') + * + * def bytes2str(b): # <<<<<<<<<<<<<< + * return b.decode('ascii') + * + */ + + /* function exit code */ + __pyx_L1_error:; + __Pyx_XDECREF(__pyx_t_1); + __Pyx_XDECREF(__pyx_t_2); + __Pyx_AddTraceback("talib.c_ta_lib.bytes2str", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "talib/_abstract.pxi":53 + * else: + * + * def str2bytes(s): # <<<<<<<<<<<<<< + * return s + * + */ + +/* Python wrapper */ +static PyObject *__pyx_pw_5talib_8c_ta_lib_331str2bytes(PyObject *__pyx_self, PyObject *__pyx_v_s); /*proto*/ +static PyMethodDef __pyx_mdef_5talib_8c_ta_lib_331str2bytes = {"str2bytes", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_331str2bytes, METH_O, 0}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_331str2bytes(PyObject *__pyx_self, PyObject *__pyx_v_s) { + PyObject *__pyx_r = 0; + __Pyx_RefNannyDeclarations + __Pyx_RefNannySetupContext("str2bytes (wrapper)", 0); + __pyx_r = __pyx_pf_5talib_8c_ta_lib_330str2bytes(__pyx_self, ((PyObject *)__pyx_v_s)); + + /* function exit code */ + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +static PyObject *__pyx_pf_5talib_8c_ta_lib_330str2bytes(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_s) { + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + __Pyx_RefNannySetupContext("str2bytes", 0); + + /* "talib/_abstract.pxi":54 + * + * def str2bytes(s): + * return s # <<<<<<<<<<<<<< + * + * def bytes2str(b): + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(__pyx_v_s); + __pyx_r = __pyx_v_s; + goto __pyx_L0; + + /* "talib/_abstract.pxi":53 + * else: + * + * def str2bytes(s): # <<<<<<<<<<<<<< + * return s + * + */ + + /* function exit code */ + __pyx_L0:; + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "talib/_abstract.pxi":56 + * return s + * + * def bytes2str(b): # <<<<<<<<<<<<<< + * return b + * + */ + +/* Python wrapper */ +static PyObject *__pyx_pw_5talib_8c_ta_lib_333bytes2str(PyObject *__pyx_self, PyObject *__pyx_v_b); /*proto*/ +static PyMethodDef __pyx_mdef_5talib_8c_ta_lib_333bytes2str = {"bytes2str", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_333bytes2str, METH_O, 0}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_333bytes2str(PyObject *__pyx_self, PyObject *__pyx_v_b) { + PyObject *__pyx_r = 0; + __Pyx_RefNannyDeclarations + __Pyx_RefNannySetupContext("bytes2str (wrapper)", 0); + __pyx_r = __pyx_pf_5talib_8c_ta_lib_332bytes2str(__pyx_self, ((PyObject *)__pyx_v_b)); + + /* function exit code */ + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +static PyObject *__pyx_pf_5talib_8c_ta_lib_332bytes2str(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_b) { + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + __Pyx_RefNannySetupContext("bytes2str", 0); + + /* "talib/_abstract.pxi":57 + * + * def bytes2str(b): + * return b # <<<<<<<<<<<<<< + * + * class Function(object): + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(__pyx_v_b); + __pyx_r = __pyx_v_b; + goto __pyx_L0; + + /* "talib/_abstract.pxi":56 + * return s + * + * def bytes2str(b): # <<<<<<<<<<<<<< + * return b + * + */ + + /* function exit code */ + __pyx_L0:; + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "talib/_abstract.pxi":88 + * """ + * + * def __init__(self, function_name, func_object, *args, **kwargs): # <<<<<<<<<<<<<< + * # make sure the function_name is valid and define all of our variables + * self.__name = function_name.upper() + */ + +/* Python wrapper */ +static PyObject *__pyx_pw_5talib_8c_ta_lib_8Function_1__init__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static PyMethodDef __pyx_mdef_5talib_8c_ta_lib_8Function_1__init__ = {"__init__", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_8Function_1__init__, METH_VARARGS|METH_KEYWORDS, 0}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_8Function_1__init__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { + PyObject *__pyx_v_self = 0; + PyObject *__pyx_v_function_name = 0; + PyObject *__pyx_v_func_object = 0; + PyObject *__pyx_v_args = 0; + PyObject *__pyx_v_kwargs = 0; + PyObject *__pyx_r = 0; + __Pyx_RefNannyDeclarations + __Pyx_RefNannySetupContext("__init__ (wrapper)", 0); + __pyx_v_kwargs = PyDict_New(); if (unlikely(!__pyx_v_kwargs)) return NULL; + __Pyx_GOTREF(__pyx_v_kwargs); + if (PyTuple_GET_SIZE(__pyx_args) > 3) { + __pyx_v_args = PyTuple_GetSlice(__pyx_args, 3, PyTuple_GET_SIZE(__pyx_args)); + if (unlikely(!__pyx_v_args)) { + __Pyx_DECREF(__pyx_v_kwargs); __pyx_v_kwargs = 0; + __Pyx_RefNannyFinishContext(); + return NULL; + } + __Pyx_GOTREF(__pyx_v_args); + } else { + __pyx_v_args = __pyx_empty_tuple; __Pyx_INCREF(__pyx_empty_tuple); + } + { + static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_self,&__pyx_n_s_function_name,&__pyx_n_s_func_object,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) { + default: + 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; + } + kw_args = PyDict_Size(__pyx_kwds); + switch (pos_args) { + case 0: + if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_self)) != 0)) kw_args--; + else goto __pyx_L5_argtuple_error; + case 1: + if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_function_name)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("__init__", 0, 3, 3, 1); __PYX_ERR(1, 88, __pyx_L3_error) + } + case 2: + if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_func_object)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("__init__", 0, 3, 3, 2); __PYX_ERR(1, 88, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + const Py_ssize_t used_pos_args = (pos_args < 3) ? pos_args : 3; + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, __pyx_v_kwargs, values, used_pos_args, "__init__") < 0)) __PYX_ERR(1, 88, __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_self = values[0]; + __pyx_v_function_name = values[1]; + __pyx_v_func_object = values[2]; + } + goto __pyx_L4_argument_unpacking_done; + __pyx_L5_argtuple_error:; + __Pyx_RaiseArgtupleInvalid("__init__", 0, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(1, 88, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_DECREF(__pyx_v_args); __pyx_v_args = 0; + __Pyx_DECREF(__pyx_v_kwargs); __pyx_v_kwargs = 0; + __Pyx_AddTraceback("talib.c_ta_lib.Function.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_RefNannyFinishContext(); + return NULL; + __pyx_L4_argument_unpacking_done:; + __pyx_r = __pyx_pf_5talib_8c_ta_lib_8Function___init__(__pyx_self, __pyx_v_self, __pyx_v_function_name, __pyx_v_func_object, __pyx_v_args, __pyx_v_kwargs); + + /* function exit code */ + __Pyx_XDECREF(__pyx_v_args); + __Pyx_XDECREF(__pyx_v_kwargs); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +static PyObject *__pyx_pf_5talib_8c_ta_lib_8Function___init__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_function_name, PyObject *__pyx_v_func_object, PyObject *__pyx_v_args, PyObject *__pyx_v_kwargs) { + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + PyObject *__pyx_t_1 = NULL; + PyObject *__pyx_t_2 = NULL; + PyObject *__pyx_t_3 = NULL; + PyObject *__pyx_t_4 = NULL; + PyObject *__pyx_t_5 = NULL; + __Pyx_RefNannySetupContext("__init__", 0); + + /* "talib/_abstract.pxi":90 + * def __init__(self, function_name, func_object, *args, **kwargs): + * # make sure the function_name is valid and define all of our variables + * self.__name = function_name.upper() # <<<<<<<<<<<<<< + * self.__namestr = self.__name + * self.__name = str2bytes(self.__name) + */ + __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_function_name, __pyx_n_s_upper); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 90, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_t_3 = NULL; + if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_2))) { + __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); + if (likely(__pyx_t_3)) { + PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); + __Pyx_INCREF(__pyx_t_3); + __Pyx_INCREF(function); + __Pyx_DECREF_SET(__pyx_t_2, function); + } + } + if (__pyx_t_3) { + __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 90, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + } else { + __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 90, __pyx_L1_error) + } + __Pyx_GOTREF(__pyx_t_1); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_Function__name, __pyx_t_1) < 0) __PYX_ERR(1, 90, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + + /* "talib/_abstract.pxi":91 + * # make sure the function_name is valid and define all of our variables + * self.__name = function_name.upper() + * self.__namestr = self.__name # <<<<<<<<<<<<<< + * self.__name = str2bytes(self.__name) + * self.__info = None + */ + __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__name); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 91, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_Function__namestr, __pyx_t_1) < 0) __PYX_ERR(1, 91, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + + /* "talib/_abstract.pxi":92 + * self.__name = function_name.upper() + * self.__namestr = self.__name + * self.__name = str2bytes(self.__name) # <<<<<<<<<<<<<< + * self.__info = None + * self.__input_arrays = __INPUT_ARRAYS_DEFAULTS + */ + __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_str2bytes); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 92, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__name); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 92, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + __pyx_t_4 = NULL; + if (CYTHON_COMPILING_IN_CPYTHON && unlikely(PyMethod_Check(__pyx_t_2))) { + __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2); + if (likely(__pyx_t_4)) { + PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); + __Pyx_INCREF(__pyx_t_4); + __Pyx_INCREF(function); + __Pyx_DECREF_SET(__pyx_t_2, function); + } + } + if (!__pyx_t_4) { + __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 92, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + __Pyx_GOTREF(__pyx_t_1); + } else { + __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 92, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL; + __Pyx_GIVEREF(__pyx_t_3); + PyTuple_SET_ITEM(__pyx_t_5, 0+1, __pyx_t_3); + __pyx_t_3 = 0; + __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 92, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + } + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_Function__name, __pyx_t_1) < 0) __PYX_ERR(1, 92, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + + /* "talib/_abstract.pxi":93 + * self.__namestr = self.__name + * self.__name = str2bytes(self.__name) + * self.__info = None # <<<<<<<<<<<<<< + * self.__input_arrays = __INPUT_ARRAYS_DEFAULTS + * + */ + if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_Function__info, Py_None) < 0) __PYX_ERR(1, 93, __pyx_L1_error) + + /* "talib/_abstract.pxi":94 + * self.__name = str2bytes(self.__name) + * self.__info = None + * self.__input_arrays = __INPUT_ARRAYS_DEFAULTS # <<<<<<<<<<<<<< + * + * # dictionaries of function args. keys are input/opt_input/output parameter names + */ + __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_INPUT_ARRAYS_DEFAULTS); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 94, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_Function__input_arrays, __pyx_t_1) < 0) __PYX_ERR(1, 94, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + + /* "talib/_abstract.pxi":97 + * + * # dictionaries of function args. keys are input/opt_input/output parameter names + * self.__input_names = OrderedDict() # <<<<<<<<<<<<<< + * self.__opt_inputs = OrderedDict() + * self.__outputs = OrderedDict() + */ + __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_OrderedDict); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 97, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_t_5 = NULL; + if (CYTHON_COMPILING_IN_CPYTHON && unlikely(PyMethod_Check(__pyx_t_2))) { + __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2); + if (likely(__pyx_t_5)) { + PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); + __Pyx_INCREF(__pyx_t_5); + __Pyx_INCREF(function); + __Pyx_DECREF_SET(__pyx_t_2, function); + } + } + if (__pyx_t_5) { + __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_5); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 97, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + } else { + __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 97, __pyx_L1_error) + } + __Pyx_GOTREF(__pyx_t_1); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_Function__input_names, __pyx_t_1) < 0) __PYX_ERR(1, 97, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + + /* "talib/_abstract.pxi":98 + * # dictionaries of function args. keys are input/opt_input/output parameter names + * self.__input_names = OrderedDict() + * self.__opt_inputs = OrderedDict() # <<<<<<<<<<<<<< + * self.__outputs = OrderedDict() + * self.__outputs_valid = False + */ + __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_OrderedDict); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 98, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_t_5 = NULL; + if (CYTHON_COMPILING_IN_CPYTHON && unlikely(PyMethod_Check(__pyx_t_2))) { + __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2); + if (likely(__pyx_t_5)) { + PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); + __Pyx_INCREF(__pyx_t_5); + __Pyx_INCREF(function); + __Pyx_DECREF_SET(__pyx_t_2, function); + } + } + if (__pyx_t_5) { + __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_5); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 98, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + } else { + __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 98, __pyx_L1_error) + } + __Pyx_GOTREF(__pyx_t_1); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_Function__opt_inputs, __pyx_t_1) < 0) __PYX_ERR(1, 98, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + + /* "talib/_abstract.pxi":99 + * self.__input_names = OrderedDict() + * self.__opt_inputs = OrderedDict() + * self.__outputs = OrderedDict() # <<<<<<<<<<<<<< + * self.__outputs_valid = False + * + */ + __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_OrderedDict); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 99, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_t_5 = NULL; + if (CYTHON_COMPILING_IN_CPYTHON && unlikely(PyMethod_Check(__pyx_t_2))) { + __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2); + if (likely(__pyx_t_5)) { + PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); + __Pyx_INCREF(__pyx_t_5); + __Pyx_INCREF(function); + __Pyx_DECREF_SET(__pyx_t_2, function); + } + } + if (__pyx_t_5) { + __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_5); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 99, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + } else { + __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 99, __pyx_L1_error) + } + __Pyx_GOTREF(__pyx_t_1); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_Function__outputs, __pyx_t_1) < 0) __PYX_ERR(1, 99, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + + /* "talib/_abstract.pxi":100 + * self.__opt_inputs = OrderedDict() + * self.__outputs = OrderedDict() + * self.__outputs_valid = False # <<<<<<<<<<<<<< + * + * # finish initializing: query the TALIB abstract interface and set arguments + */ + if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_Function__outputs_valid, Py_False) < 0) __PYX_ERR(1, 100, __pyx_L1_error) + + /* "talib/_abstract.pxi":103 + * + * # finish initializing: query the TALIB abstract interface and set arguments + * self.__initialize_function_info() # <<<<<<<<<<<<<< + * self.set_function_args(*args, **kwargs) + * self.func_object = func_object + */ + __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__initialize_function_i); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 103, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_t_5 = NULL; + if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_2))) { + __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_2); + if (likely(__pyx_t_5)) { + PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); + __Pyx_INCREF(__pyx_t_5); + __Pyx_INCREF(function); + __Pyx_DECREF_SET(__pyx_t_2, function); + } + } + if (__pyx_t_5) { + __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_5); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 103, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + } else { + __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 103, __pyx_L1_error) + } + __Pyx_GOTREF(__pyx_t_1); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + + /* "talib/_abstract.pxi":104 + * # finish initializing: query the TALIB abstract interface and set arguments + * self.__initialize_function_info() + * self.set_function_args(*args, **kwargs) # <<<<<<<<<<<<<< + * self.func_object = func_object + * + */ + __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_set_function_args); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 104, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_v_args, __pyx_v_kwargs); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 104, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_abstract.pxi":105 + * self.__initialize_function_info() + * self.set_function_args(*args, **kwargs) + * self.func_object = func_object # <<<<<<<<<<<<<< + * + * def __initialize_function_info(self): + */ + if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_func_object, __pyx_v_func_object) < 0) __PYX_ERR(1, 105, __pyx_L1_error) + + /* "talib/_abstract.pxi":88 + * """ + * + * def __init__(self, function_name, func_object, *args, **kwargs): # <<<<<<<<<<<<<< + * # make sure the function_name is valid and define all of our variables + * self.__name = function_name.upper() + */ + + /* function exit code */ + __pyx_r = Py_None; __Pyx_INCREF(Py_None); + goto __pyx_L0; + __pyx_L1_error:; + __Pyx_XDECREF(__pyx_t_1); + __Pyx_XDECREF(__pyx_t_2); + __Pyx_XDECREF(__pyx_t_3); + __Pyx_XDECREF(__pyx_t_4); + __Pyx_XDECREF(__pyx_t_5); + __Pyx_AddTraceback("talib.c_ta_lib.Function.__init__", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "talib/_abstract.pxi":107 + * self.func_object = func_object + * + * def __initialize_function_info(self): # <<<<<<<<<<<<<< + * # function info + * self.__info = _ta_getFuncInfo(self.__name) + */ + +/* Python wrapper */ +static PyObject *__pyx_pw_5talib_8c_ta_lib_8Function_3__initialize_function_info(PyObject *__pyx_self, PyObject *__pyx_v_self); /*proto*/ +static PyMethodDef __pyx_mdef_5talib_8c_ta_lib_8Function_3__initialize_function_info = {"__initialize_function_info", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_8Function_3__initialize_function_info, METH_O, 0}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_8Function_3__initialize_function_info(PyObject *__pyx_self, PyObject *__pyx_v_self) { + PyObject *__pyx_r = 0; + __Pyx_RefNannyDeclarations + __Pyx_RefNannySetupContext("__initialize_function_info (wrapper)", 0); + __pyx_r = __pyx_pf_5talib_8c_ta_lib_8Function_2__initialize_function_info(__pyx_self, ((PyObject *)__pyx_v_self)); + + /* function exit code */ + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +static PyObject *__pyx_pf_5talib_8c_ta_lib_8Function_2__initialize_function_info(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self) { + PyObject *__pyx_v_i = NULL; + PyObject *__pyx_v_info = NULL; + PyObject *__pyx_v_input_name = NULL; + PyObject *__pyx_v_param_name = NULL; + PyObject *__pyx_v_output_name = NULL; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + PyObject *__pyx_t_1 = NULL; + PyObject *__pyx_t_2 = NULL; + PyObject *__pyx_t_3 = NULL; + PyObject *__pyx_t_4 = NULL; + PyObject *__pyx_t_5 = NULL; + Py_ssize_t __pyx_t_6; + PyObject *(*__pyx_t_7)(PyObject *); + Py_ssize_t __pyx_t_8; + PyObject *__pyx_t_9 = NULL; + int __pyx_t_10; + int __pyx_t_11; + __Pyx_RefNannySetupContext("__initialize_function_info", 0); + + /* "talib/_abstract.pxi":109 + * def __initialize_function_info(self): + * # function info + * self.__info = _ta_getFuncInfo(self.__name) # <<<<<<<<<<<<<< + * + * # inputs (price series names) + */ + __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_ta_getFuncInfo); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 109, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__name); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 109, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + __pyx_t_4 = NULL; + if (CYTHON_COMPILING_IN_CPYTHON && unlikely(PyMethod_Check(__pyx_t_2))) { + __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2); + if (likely(__pyx_t_4)) { + PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); + __Pyx_INCREF(__pyx_t_4); + __Pyx_INCREF(function); + __Pyx_DECREF_SET(__pyx_t_2, function); + } + } + if (!__pyx_t_4) { + __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 109, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + __Pyx_GOTREF(__pyx_t_1); + } else { + __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 109, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL; + __Pyx_GIVEREF(__pyx_t_3); + PyTuple_SET_ITEM(__pyx_t_5, 0+1, __pyx_t_3); + __pyx_t_3 = 0; + __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 109, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + } + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_Function__info, __pyx_t_1) < 0) __PYX_ERR(1, 109, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + + /* "talib/_abstract.pxi":112 + * + * # inputs (price series names) + * for i in xrange(self.__info.pop('num_inputs')): # <<<<<<<<<<<<<< + * info = _ta_getInputParameterInfo(self.__name, i) + * input_name = info['name'] + */ + __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__info); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 112, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_pop); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 112, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__1208, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 112, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 112, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_GIVEREF(__pyx_t_1); + PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1); + __pyx_t_1 = 0; + __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_xrange, __pyx_t_2, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 112, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + if (likely(PyList_CheckExact(__pyx_t_1)) || PyTuple_CheckExact(__pyx_t_1)) { + __pyx_t_2 = __pyx_t_1; __Pyx_INCREF(__pyx_t_2); __pyx_t_6 = 0; + __pyx_t_7 = NULL; + } else { + __pyx_t_6 = -1; __pyx_t_2 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 112, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_t_7 = Py_TYPE(__pyx_t_2)->tp_iternext; if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 112, __pyx_L1_error) + } + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + for (;;) { + if (likely(!__pyx_t_7)) { + if (likely(PyList_CheckExact(__pyx_t_2))) { + if (__pyx_t_6 >= PyList_GET_SIZE(__pyx_t_2)) break; + #if CYTHON_COMPILING_IN_CPYTHON + __pyx_t_1 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_6); __Pyx_INCREF(__pyx_t_1); __pyx_t_6++; if (unlikely(0 < 0)) __PYX_ERR(1, 112, __pyx_L1_error) + #else + __pyx_t_1 = PySequence_ITEM(__pyx_t_2, __pyx_t_6); __pyx_t_6++; if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 112, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + #endif + } else { + if (__pyx_t_6 >= PyTuple_GET_SIZE(__pyx_t_2)) break; + #if CYTHON_COMPILING_IN_CPYTHON + __pyx_t_1 = PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_6); __Pyx_INCREF(__pyx_t_1); __pyx_t_6++; if (unlikely(0 < 0)) __PYX_ERR(1, 112, __pyx_L1_error) + #else + __pyx_t_1 = PySequence_ITEM(__pyx_t_2, __pyx_t_6); __pyx_t_6++; if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 112, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + #endif + } + } else { + __pyx_t_1 = __pyx_t_7(__pyx_t_2); + if (unlikely(!__pyx_t_1)) { + PyObject* exc_type = PyErr_Occurred(); + if (exc_type) { + if (likely(exc_type == PyExc_StopIteration || PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); + else __PYX_ERR(1, 112, __pyx_L1_error) + } + break; + } + __Pyx_GOTREF(__pyx_t_1); + } + __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_1); + __pyx_t_1 = 0; + + /* "talib/_abstract.pxi":113 + * # inputs (price series names) + * for i in xrange(self.__info.pop('num_inputs')): + * info = _ta_getInputParameterInfo(self.__name, i) # <<<<<<<<<<<<<< + * input_name = info['name'] + * if info['price_series'] is None: + */ + __pyx_t_5 = __Pyx_GetModuleGlobalName(__pyx_n_s_ta_getInputParameterInfo); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 113, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__name); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 113, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + __pyx_t_4 = NULL; + __pyx_t_8 = 0; + if (CYTHON_COMPILING_IN_CPYTHON && unlikely(PyMethod_Check(__pyx_t_5))) { + __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_5); + if (likely(__pyx_t_4)) { + PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); + __Pyx_INCREF(__pyx_t_4); + __Pyx_INCREF(function); + __Pyx_DECREF_SET(__pyx_t_5, function); + __pyx_t_8 = 1; + } + } + __pyx_t_9 = PyTuple_New(2+__pyx_t_8); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 113, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_9); + if (__pyx_t_4) { + __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_4); __pyx_t_4 = NULL; + } + __Pyx_GIVEREF(__pyx_t_3); + PyTuple_SET_ITEM(__pyx_t_9, 0+__pyx_t_8, __pyx_t_3); + __Pyx_INCREF(__pyx_v_i); + __Pyx_GIVEREF(__pyx_v_i); + PyTuple_SET_ITEM(__pyx_t_9, 1+__pyx_t_8, __pyx_v_i); + __pyx_t_3 = 0; + __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_9, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 113, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + __Pyx_XDECREF_SET(__pyx_v_info, __pyx_t_1); + __pyx_t_1 = 0; + + /* "talib/_abstract.pxi":114 + * for i in xrange(self.__info.pop('num_inputs')): + * info = _ta_getInputParameterInfo(self.__name, i) + * input_name = info['name'] # <<<<<<<<<<<<<< + * if info['price_series'] is None: + * info['price_series'] = __INPUT_PRICE_SERIES_DEFAULTS[input_name] + */ + __pyx_t_1 = PyObject_GetItem(__pyx_v_info, __pyx_n_s_name); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 114, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __Pyx_XDECREF_SET(__pyx_v_input_name, __pyx_t_1); + __pyx_t_1 = 0; + + /* "talib/_abstract.pxi":115 + * info = _ta_getInputParameterInfo(self.__name, i) + * input_name = info['name'] + * if info['price_series'] is None: # <<<<<<<<<<<<<< + * info['price_series'] = __INPUT_PRICE_SERIES_DEFAULTS[input_name] + * self.__input_names[input_name] = info + */ + __pyx_t_1 = PyObject_GetItem(__pyx_v_info, __pyx_n_s_price_series); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 115, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __pyx_t_10 = (__pyx_t_1 == Py_None); + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + __pyx_t_11 = (__pyx_t_10 != 0); + if (__pyx_t_11) { + + /* "talib/_abstract.pxi":116 + * input_name = info['name'] + * if info['price_series'] is None: + * info['price_series'] = __INPUT_PRICE_SERIES_DEFAULTS[input_name] # <<<<<<<<<<<<<< + * self.__input_names[input_name] = info + * self.__info['input_names'] = self.input_names + */ + __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_INPUT_PRICE_SERIES_DEFAULTS); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 116, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __pyx_t_5 = PyObject_GetItem(__pyx_t_1, __pyx_v_input_name); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 116, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + if (unlikely(PyObject_SetItem(__pyx_v_info, __pyx_n_s_price_series, __pyx_t_5) < 0)) __PYX_ERR(1, 116, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + + /* "talib/_abstract.pxi":115 + * info = _ta_getInputParameterInfo(self.__name, i) + * input_name = info['name'] + * if info['price_series'] is None: # <<<<<<<<<<<<<< + * info['price_series'] = __INPUT_PRICE_SERIES_DEFAULTS[input_name] + * self.__input_names[input_name] = info + */ + } + + /* "talib/_abstract.pxi":117 + * if info['price_series'] is None: + * info['price_series'] = __INPUT_PRICE_SERIES_DEFAULTS[input_name] + * self.__input_names[input_name] = info # <<<<<<<<<<<<<< + * self.__info['input_names'] = self.input_names + * + */ + __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__input_names); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 117, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + if (unlikely(PyObject_SetItem(__pyx_t_5, __pyx_v_input_name, __pyx_v_info) < 0)) __PYX_ERR(1, 117, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + + /* "talib/_abstract.pxi":112 + * + * # inputs (price series names) + * for i in xrange(self.__info.pop('num_inputs')): # <<<<<<<<<<<<<< + * info = _ta_getInputParameterInfo(self.__name, i) + * input_name = info['name'] + */ + } + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_abstract.pxi":118 + * info['price_series'] = __INPUT_PRICE_SERIES_DEFAULTS[input_name] + * self.__input_names[input_name] = info + * self.__info['input_names'] = self.input_names # <<<<<<<<<<<<<< + * + * # optional inputs (function parameters) + */ + __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_input_names); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 118, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__info); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 118, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + if (unlikely(PyObject_SetItem(__pyx_t_5, __pyx_n_s_input_names, __pyx_t_2) < 0)) __PYX_ERR(1, 118, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_abstract.pxi":121 + * + * # optional inputs (function parameters) + * for i in xrange(self.__info.pop('num_opt_inputs')): # <<<<<<<<<<<<<< + * info = _ta_getOptInputParameterInfo(self.__name, i) + * param_name = info['name'] + */ + __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__info); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 121, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_pop); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 121, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_tuple__1209, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 121, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 121, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + __Pyx_GIVEREF(__pyx_t_2); + PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_2); + __pyx_t_2 = 0; + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_builtin_xrange, __pyx_t_5, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 121, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + if (likely(PyList_CheckExact(__pyx_t_2)) || PyTuple_CheckExact(__pyx_t_2)) { + __pyx_t_5 = __pyx_t_2; __Pyx_INCREF(__pyx_t_5); __pyx_t_6 = 0; + __pyx_t_7 = NULL; + } else { + __pyx_t_6 = -1; __pyx_t_5 = PyObject_GetIter(__pyx_t_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 121, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + __pyx_t_7 = Py_TYPE(__pyx_t_5)->tp_iternext; if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 121, __pyx_L1_error) + } + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + for (;;) { + if (likely(!__pyx_t_7)) { + if (likely(PyList_CheckExact(__pyx_t_5))) { + if (__pyx_t_6 >= PyList_GET_SIZE(__pyx_t_5)) break; + #if CYTHON_COMPILING_IN_CPYTHON + __pyx_t_2 = PyList_GET_ITEM(__pyx_t_5, __pyx_t_6); __Pyx_INCREF(__pyx_t_2); __pyx_t_6++; if (unlikely(0 < 0)) __PYX_ERR(1, 121, __pyx_L1_error) + #else + __pyx_t_2 = PySequence_ITEM(__pyx_t_5, __pyx_t_6); __pyx_t_6++; if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 121, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + #endif + } else { + if (__pyx_t_6 >= PyTuple_GET_SIZE(__pyx_t_5)) break; + #if CYTHON_COMPILING_IN_CPYTHON + __pyx_t_2 = PyTuple_GET_ITEM(__pyx_t_5, __pyx_t_6); __Pyx_INCREF(__pyx_t_2); __pyx_t_6++; if (unlikely(0 < 0)) __PYX_ERR(1, 121, __pyx_L1_error) + #else + __pyx_t_2 = PySequence_ITEM(__pyx_t_5, __pyx_t_6); __pyx_t_6++; if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 121, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + #endif + } + } else { + __pyx_t_2 = __pyx_t_7(__pyx_t_5); + if (unlikely(!__pyx_t_2)) { + PyObject* exc_type = PyErr_Occurred(); + if (exc_type) { + if (likely(exc_type == PyExc_StopIteration || PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); + else __PYX_ERR(1, 121, __pyx_L1_error) + } + break; + } + __Pyx_GOTREF(__pyx_t_2); + } + __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_abstract.pxi":122 + * # optional inputs (function parameters) + * for i in xrange(self.__info.pop('num_opt_inputs')): + * info = _ta_getOptInputParameterInfo(self.__name, i) # <<<<<<<<<<<<<< + * param_name = info['name'] + * self.__opt_inputs[param_name] = info + */ + __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_ta_getOptInputParameterInfo); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 122, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__name); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 122, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_9); + __pyx_t_3 = NULL; + __pyx_t_8 = 0; + if (CYTHON_COMPILING_IN_CPYTHON && unlikely(PyMethod_Check(__pyx_t_1))) { + __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_1); + if (likely(__pyx_t_3)) { + PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); + __Pyx_INCREF(__pyx_t_3); + __Pyx_INCREF(function); + __Pyx_DECREF_SET(__pyx_t_1, function); + __pyx_t_8 = 1; + } + } + __pyx_t_4 = PyTuple_New(2+__pyx_t_8); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 122, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (__pyx_t_3) { + __Pyx_GIVEREF(__pyx_t_3); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_3); __pyx_t_3 = NULL; + } + __Pyx_GIVEREF(__pyx_t_9); + PyTuple_SET_ITEM(__pyx_t_4, 0+__pyx_t_8, __pyx_t_9); + __Pyx_INCREF(__pyx_v_i); + __Pyx_GIVEREF(__pyx_v_i); + PyTuple_SET_ITEM(__pyx_t_4, 1+__pyx_t_8, __pyx_v_i); + __pyx_t_9 = 0; + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_4, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 122, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + __Pyx_XDECREF_SET(__pyx_v_info, __pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_abstract.pxi":123 + * for i in xrange(self.__info.pop('num_opt_inputs')): + * info = _ta_getOptInputParameterInfo(self.__name, i) + * param_name = info['name'] # <<<<<<<<<<<<<< + * self.__opt_inputs[param_name] = info + * self.__info['parameters'] = self.parameters + */ + __pyx_t_2 = PyObject_GetItem(__pyx_v_info, __pyx_n_s_name); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 123, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_XDECREF_SET(__pyx_v_param_name, __pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_abstract.pxi":124 + * info = _ta_getOptInputParameterInfo(self.__name, i) + * param_name = info['name'] + * self.__opt_inputs[param_name] = info # <<<<<<<<<<<<<< + * self.__info['parameters'] = self.parameters + * + */ + __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__opt_inputs); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 124, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (unlikely(PyObject_SetItem(__pyx_t_2, __pyx_v_param_name, __pyx_v_info) < 0)) __PYX_ERR(1, 124, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_abstract.pxi":121 + * + * # optional inputs (function parameters) + * for i in xrange(self.__info.pop('num_opt_inputs')): # <<<<<<<<<<<<<< + * info = _ta_getOptInputParameterInfo(self.__name, i) + * param_name = info['name'] + */ + } + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + + /* "talib/_abstract.pxi":125 + * param_name = info['name'] + * self.__opt_inputs[param_name] = info + * self.__info['parameters'] = self.parameters # <<<<<<<<<<<<<< + * + * # outputs + */ + __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_parameters); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 125, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__info); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 125, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (unlikely(PyObject_SetItem(__pyx_t_2, __pyx_n_s_parameters, __pyx_t_5) < 0)) __PYX_ERR(1, 125, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + + /* "talib/_abstract.pxi":128 + * + * # outputs + * self.__info['output_flags'] = OrderedDict() # <<<<<<<<<<<<<< + * for i in xrange(self.__info.pop('num_outputs')): + * info = _ta_getOutputParameterInfo(self.__name, i) + */ + __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_OrderedDict); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 128, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_t_1 = NULL; + if (CYTHON_COMPILING_IN_CPYTHON && unlikely(PyMethod_Check(__pyx_t_2))) { + __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_2); + if (likely(__pyx_t_1)) { + PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); + __Pyx_INCREF(__pyx_t_1); + __Pyx_INCREF(function); + __Pyx_DECREF_SET(__pyx_t_2, function); + } + } + if (__pyx_t_1) { + __pyx_t_5 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_1); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 128, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + } else { + __pyx_t_5 = __Pyx_PyObject_CallNoArg(__pyx_t_2); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 128, __pyx_L1_error) + } + __Pyx_GOTREF(__pyx_t_5); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__info); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 128, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (unlikely(PyObject_SetItem(__pyx_t_2, __pyx_n_s_output_flags, __pyx_t_5) < 0)) __PYX_ERR(1, 128, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + + /* "talib/_abstract.pxi":129 + * # outputs + * self.__info['output_flags'] = OrderedDict() + * for i in xrange(self.__info.pop('num_outputs')): # <<<<<<<<<<<<<< + * info = _ta_getOutputParameterInfo(self.__name, i) + * output_name = info['name'] + */ + __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__info); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 129, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_pop); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 129, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_tuple__1210, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 129, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 129, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_GIVEREF(__pyx_t_5); + PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_5); + __pyx_t_5 = 0; + __pyx_t_5 = __Pyx_PyObject_Call(__pyx_builtin_xrange, __pyx_t_2, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 129, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + if (likely(PyList_CheckExact(__pyx_t_5)) || PyTuple_CheckExact(__pyx_t_5)) { + __pyx_t_2 = __pyx_t_5; __Pyx_INCREF(__pyx_t_2); __pyx_t_6 = 0; + __pyx_t_7 = NULL; + } else { + __pyx_t_6 = -1; __pyx_t_2 = PyObject_GetIter(__pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 129, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_t_7 = Py_TYPE(__pyx_t_2)->tp_iternext; if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 129, __pyx_L1_error) + } + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + for (;;) { + if (likely(!__pyx_t_7)) { + if (likely(PyList_CheckExact(__pyx_t_2))) { + if (__pyx_t_6 >= PyList_GET_SIZE(__pyx_t_2)) break; + #if CYTHON_COMPILING_IN_CPYTHON + __pyx_t_5 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_6); __Pyx_INCREF(__pyx_t_5); __pyx_t_6++; if (unlikely(0 < 0)) __PYX_ERR(1, 129, __pyx_L1_error) + #else + __pyx_t_5 = PySequence_ITEM(__pyx_t_2, __pyx_t_6); __pyx_t_6++; if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 129, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + #endif + } else { + if (__pyx_t_6 >= PyTuple_GET_SIZE(__pyx_t_2)) break; + #if CYTHON_COMPILING_IN_CPYTHON + __pyx_t_5 = PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_6); __Pyx_INCREF(__pyx_t_5); __pyx_t_6++; if (unlikely(0 < 0)) __PYX_ERR(1, 129, __pyx_L1_error) + #else + __pyx_t_5 = PySequence_ITEM(__pyx_t_2, __pyx_t_6); __pyx_t_6++; if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 129, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + #endif + } + } else { + __pyx_t_5 = __pyx_t_7(__pyx_t_2); + if (unlikely(!__pyx_t_5)) { + PyObject* exc_type = PyErr_Occurred(); + if (exc_type) { + if (likely(exc_type == PyExc_StopIteration || PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); + else __PYX_ERR(1, 129, __pyx_L1_error) + } + break; + } + __Pyx_GOTREF(__pyx_t_5); + } + __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_5); + __pyx_t_5 = 0; + + /* "talib/_abstract.pxi":130 + * self.__info['output_flags'] = OrderedDict() + * for i in xrange(self.__info.pop('num_outputs')): + * info = _ta_getOutputParameterInfo(self.__name, i) # <<<<<<<<<<<<<< + * output_name = info['name'] + * self.__info['output_flags'][output_name] = info['flags'] + */ + __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_ta_getOutputParameterInfo); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 130, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__name); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 130, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + __pyx_t_9 = NULL; + __pyx_t_8 = 0; + if (CYTHON_COMPILING_IN_CPYTHON && unlikely(PyMethod_Check(__pyx_t_1))) { + __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_1); + if (likely(__pyx_t_9)) { + PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); + __Pyx_INCREF(__pyx_t_9); + __Pyx_INCREF(function); + __Pyx_DECREF_SET(__pyx_t_1, function); + __pyx_t_8 = 1; + } + } + __pyx_t_3 = PyTuple_New(2+__pyx_t_8); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 130, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + if (__pyx_t_9) { + __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_9); __pyx_t_9 = NULL; + } + __Pyx_GIVEREF(__pyx_t_4); + PyTuple_SET_ITEM(__pyx_t_3, 0+__pyx_t_8, __pyx_t_4); + __Pyx_INCREF(__pyx_v_i); + __Pyx_GIVEREF(__pyx_v_i); + PyTuple_SET_ITEM(__pyx_t_3, 1+__pyx_t_8, __pyx_v_i); + __pyx_t_4 = 0; + __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_3, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 130, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + __Pyx_XDECREF_SET(__pyx_v_info, __pyx_t_5); + __pyx_t_5 = 0; + + /* "talib/_abstract.pxi":131 + * for i in xrange(self.__info.pop('num_outputs')): + * info = _ta_getOutputParameterInfo(self.__name, i) + * output_name = info['name'] # <<<<<<<<<<<<<< + * self.__info['output_flags'][output_name] = info['flags'] + * self.__outputs[output_name] = None + */ + __pyx_t_5 = PyObject_GetItem(__pyx_v_info, __pyx_n_s_name); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 131, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + __Pyx_XDECREF_SET(__pyx_v_output_name, __pyx_t_5); + __pyx_t_5 = 0; + + /* "talib/_abstract.pxi":132 + * info = _ta_getOutputParameterInfo(self.__name, i) + * output_name = info['name'] + * self.__info['output_flags'][output_name] = info['flags'] # <<<<<<<<<<<<<< + * self.__outputs[output_name] = None + * self.__info['output_names'] = self.output_names + */ + __pyx_t_5 = PyObject_GetItem(__pyx_v_info, __pyx_n_s_flags); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 132, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__info); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 132, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __pyx_t_3 = PyObject_GetItem(__pyx_t_1, __pyx_n_s_output_flags); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 132, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + if (unlikely(PyObject_SetItem(__pyx_t_3, __pyx_v_output_name, __pyx_t_5) < 0)) __PYX_ERR(1, 132, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + + /* "talib/_abstract.pxi":133 + * output_name = info['name'] + * self.__info['output_flags'][output_name] = info['flags'] + * self.__outputs[output_name] = None # <<<<<<<<<<<<<< + * self.__info['output_names'] = self.output_names + * + */ + __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__outputs); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 133, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + if (unlikely(PyObject_SetItem(__pyx_t_5, __pyx_v_output_name, Py_None) < 0)) __PYX_ERR(1, 133, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + + /* "talib/_abstract.pxi":129 + * # outputs + * self.__info['output_flags'] = OrderedDict() + * for i in xrange(self.__info.pop('num_outputs')): # <<<<<<<<<<<<<< + * info = _ta_getOutputParameterInfo(self.__name, i) + * output_name = info['name'] + */ + } + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_abstract.pxi":134 + * self.__info['output_flags'][output_name] = info['flags'] + * self.__outputs[output_name] = None + * self.__info['output_names'] = self.output_names # <<<<<<<<<<<<<< + * + * @property + */ + __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_output_names); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 134, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__info); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 134, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + if (unlikely(PyObject_SetItem(__pyx_t_5, __pyx_n_s_output_names, __pyx_t_2) < 0)) __PYX_ERR(1, 134, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_abstract.pxi":107 + * self.func_object = func_object + * + * def __initialize_function_info(self): # <<<<<<<<<<<<<< + * # function info + * self.__info = _ta_getFuncInfo(self.__name) + */ + + /* function exit code */ + __pyx_r = Py_None; __Pyx_INCREF(Py_None); + goto __pyx_L0; + __pyx_L1_error:; + __Pyx_XDECREF(__pyx_t_1); + __Pyx_XDECREF(__pyx_t_2); + __Pyx_XDECREF(__pyx_t_3); + __Pyx_XDECREF(__pyx_t_4); + __Pyx_XDECREF(__pyx_t_5); + __Pyx_XDECREF(__pyx_t_9); + __Pyx_AddTraceback("talib.c_ta_lib.Function.__initialize_function_info", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF(__pyx_v_i); + __Pyx_XDECREF(__pyx_v_info); + __Pyx_XDECREF(__pyx_v_input_name); + __Pyx_XDECREF(__pyx_v_param_name); + __Pyx_XDECREF(__pyx_v_output_name); + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "talib/_abstract.pxi":137 + * + * @property + * def info(self): # <<<<<<<<<<<<<< + * """ + * Returns a copy of the function's info dict. + */ + +/* Python wrapper */ +static PyObject *__pyx_pw_5talib_8c_ta_lib_8Function_5info(PyObject *__pyx_self, PyObject *__pyx_v_self); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_8Function_4info[] = "\n Returns a copy of the function's info dict.\n "; +static PyMethodDef __pyx_mdef_5talib_8c_ta_lib_8Function_5info = {"info", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_8Function_5info, METH_O, __pyx_doc_5talib_8c_ta_lib_8Function_4info}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_8Function_5info(PyObject *__pyx_self, PyObject *__pyx_v_self) { + PyObject *__pyx_r = 0; + __Pyx_RefNannyDeclarations + __Pyx_RefNannySetupContext("info (wrapper)", 0); + __pyx_r = __pyx_pf_5talib_8c_ta_lib_8Function_4info(__pyx_self, ((PyObject *)__pyx_v_self)); + + /* function exit code */ + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +static PyObject *__pyx_pf_5talib_8c_ta_lib_8Function_4info(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self) { + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + PyObject *__pyx_t_1 = NULL; + PyObject *__pyx_t_2 = NULL; + PyObject *__pyx_t_3 = NULL; + __Pyx_RefNannySetupContext("info", 0); + + /* "talib/_abstract.pxi":141 + * Returns a copy of the function's info dict. + * """ + * return self.__info.copy() # <<<<<<<<<<<<<< + * + * @property + */ + __Pyx_XDECREF(__pyx_r); + __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__info); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 141, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_copy); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 141, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __pyx_t_2 = NULL; + if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_3))) { + __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3); + if (likely(__pyx_t_2)) { + PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); + __Pyx_INCREF(__pyx_t_2); + __Pyx_INCREF(function); + __Pyx_DECREF_SET(__pyx_t_3, function); + } + } + if (__pyx_t_2) { + __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 141, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + } else { + __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 141, __pyx_L1_error) + } + __Pyx_GOTREF(__pyx_t_1); + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + __pyx_r = __pyx_t_1; + __pyx_t_1 = 0; + goto __pyx_L0; + + /* "talib/_abstract.pxi":137 + * + * @property + * def info(self): # <<<<<<<<<<<<<< + * """ + * Returns a copy of the function's info dict. + */ + + /* function exit code */ + __pyx_L1_error:; + __Pyx_XDECREF(__pyx_t_1); + __Pyx_XDECREF(__pyx_t_2); + __Pyx_XDECREF(__pyx_t_3); + __Pyx_AddTraceback("talib.c_ta_lib.Function.info", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "talib/_abstract.pxi":144 + * + * @property + * def function_flags(self): # <<<<<<<<<<<<<< + * """ + * Returns any function flags defined for this indicator function. + */ + +/* Python wrapper */ +static PyObject *__pyx_pw_5talib_8c_ta_lib_8Function_7function_flags(PyObject *__pyx_self, PyObject *__pyx_v_self); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_8Function_6function_flags[] = "\n Returns any function flags defined for this indicator function.\n "; +static PyMethodDef __pyx_mdef_5talib_8c_ta_lib_8Function_7function_flags = {"function_flags", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_8Function_7function_flags, METH_O, __pyx_doc_5talib_8c_ta_lib_8Function_6function_flags}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_8Function_7function_flags(PyObject *__pyx_self, PyObject *__pyx_v_self) { + PyObject *__pyx_r = 0; + __Pyx_RefNannyDeclarations + __Pyx_RefNannySetupContext("function_flags (wrapper)", 0); + __pyx_r = __pyx_pf_5talib_8c_ta_lib_8Function_6function_flags(__pyx_self, ((PyObject *)__pyx_v_self)); + + /* function exit code */ + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +static PyObject *__pyx_pf_5talib_8c_ta_lib_8Function_6function_flags(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self) { + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + PyObject *__pyx_t_1 = NULL; + PyObject *__pyx_t_2 = NULL; + __Pyx_RefNannySetupContext("function_flags", 0); + + /* "talib/_abstract.pxi":148 + * Returns any function flags defined for this indicator function. + * """ + * return self.__info['function_flags'] # <<<<<<<<<<<<<< + * + * @property + */ + __Pyx_XDECREF(__pyx_r); + __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__info); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 148, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __pyx_t_2 = PyObject_GetItem(__pyx_t_1, __pyx_n_s_function_flags); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 148, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_abstract.pxi":144 + * + * @property + * def function_flags(self): # <<<<<<<<<<<<<< + * """ + * Returns any function flags defined for this indicator function. + */ + + /* function exit code */ + __pyx_L1_error:; + __Pyx_XDECREF(__pyx_t_1); + __Pyx_XDECREF(__pyx_t_2); + __Pyx_AddTraceback("talib.c_ta_lib.Function.function_flags", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "talib/_abstract.pxi":151 + * + * @property + * def output_flags(self): # <<<<<<<<<<<<<< + * """ + * Returns the flags for each output for this indicator function. + */ + +/* Python wrapper */ +static PyObject *__pyx_pw_5talib_8c_ta_lib_8Function_9output_flags(PyObject *__pyx_self, PyObject *__pyx_v_self); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_8Function_8output_flags[] = "\n Returns the flags for each output for this indicator function.\n "; +static PyMethodDef __pyx_mdef_5talib_8c_ta_lib_8Function_9output_flags = {"output_flags", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_8Function_9output_flags, METH_O, __pyx_doc_5talib_8c_ta_lib_8Function_8output_flags}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_8Function_9output_flags(PyObject *__pyx_self, PyObject *__pyx_v_self) { + PyObject *__pyx_r = 0; + __Pyx_RefNannyDeclarations + __Pyx_RefNannySetupContext("output_flags (wrapper)", 0); + __pyx_r = __pyx_pf_5talib_8c_ta_lib_8Function_8output_flags(__pyx_self, ((PyObject *)__pyx_v_self)); + + /* function exit code */ + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +static PyObject *__pyx_pf_5talib_8c_ta_lib_8Function_8output_flags(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self) { + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + PyObject *__pyx_t_1 = NULL; + PyObject *__pyx_t_2 = NULL; + PyObject *__pyx_t_3 = NULL; + __Pyx_RefNannySetupContext("output_flags", 0); + + /* "talib/_abstract.pxi":155 + * Returns the flags for each output for this indicator function. + * """ + * return self.__info['output_flags'].copy() # <<<<<<<<<<<<<< + * + * def get_input_names(self): + */ + __Pyx_XDECREF(__pyx_r); + __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__info); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 155, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_t_3 = PyObject_GetItem(__pyx_t_2, __pyx_n_s_output_flags); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 155, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_3, __pyx_n_s_copy); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 155, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + __pyx_t_3 = NULL; + if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_2))) { + __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); + if (likely(__pyx_t_3)) { + PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); + __Pyx_INCREF(__pyx_t_3); + __Pyx_INCREF(function); + __Pyx_DECREF_SET(__pyx_t_2, function); + } + } + if (__pyx_t_3) { + __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 155, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + } else { + __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 155, __pyx_L1_error) + } + __Pyx_GOTREF(__pyx_t_1); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __pyx_r = __pyx_t_1; + __pyx_t_1 = 0; + goto __pyx_L0; + + /* "talib/_abstract.pxi":151 + * + * @property + * def output_flags(self): # <<<<<<<<<<<<<< + * """ + * Returns the flags for each output for this indicator function. + */ + + /* function exit code */ + __pyx_L1_error:; + __Pyx_XDECREF(__pyx_t_1); + __Pyx_XDECREF(__pyx_t_2); + __Pyx_XDECREF(__pyx_t_3); + __Pyx_AddTraceback("talib.c_ta_lib.Function.output_flags", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "talib/_abstract.pxi":157 + * return self.__info['output_flags'].copy() + * + * def get_input_names(self): # <<<<<<<<<<<<<< + * """ + * Returns the dict of input price series names that specifies which + */ + +/* Python wrapper */ +static PyObject *__pyx_pw_5talib_8c_ta_lib_8Function_11get_input_names(PyObject *__pyx_self, PyObject *__pyx_v_self); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_8Function_10get_input_names[] = "\n Returns the dict of input price series names that specifies which\n of the ndarrays in input_arrays will be used to calculate the function.\n "; +static PyMethodDef __pyx_mdef_5talib_8c_ta_lib_8Function_11get_input_names = {"get_input_names", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_8Function_11get_input_names, METH_O, __pyx_doc_5talib_8c_ta_lib_8Function_10get_input_names}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_8Function_11get_input_names(PyObject *__pyx_self, PyObject *__pyx_v_self) { + PyObject *__pyx_r = 0; + __Pyx_RefNannyDeclarations + __Pyx_RefNannySetupContext("get_input_names (wrapper)", 0); + __pyx_r = __pyx_pf_5talib_8c_ta_lib_8Function_10get_input_names(__pyx_self, ((PyObject *)__pyx_v_self)); + + /* function exit code */ + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +static PyObject *__pyx_pf_5talib_8c_ta_lib_8Function_10get_input_names(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self) { + PyObject *__pyx_v_ret = NULL; + PyObject *__pyx_v_input_name = NULL; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + PyObject *__pyx_t_1 = NULL; + PyObject *__pyx_t_2 = NULL; + PyObject *__pyx_t_3 = NULL; + Py_ssize_t __pyx_t_4; + PyObject *(*__pyx_t_5)(PyObject *); + __Pyx_RefNannySetupContext("get_input_names", 0); + + /* "talib/_abstract.pxi":162 + * of the ndarrays in input_arrays will be used to calculate the function. + * """ + * ret = OrderedDict() # <<<<<<<<<<<<<< + * for input_name in self.__input_names: + * ret[input_name] = self.__input_names[input_name]['price_series'] + */ + __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_OrderedDict); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 162, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_t_3 = NULL; + if (CYTHON_COMPILING_IN_CPYTHON && unlikely(PyMethod_Check(__pyx_t_2))) { + __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); + if (likely(__pyx_t_3)) { + PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); + __Pyx_INCREF(__pyx_t_3); + __Pyx_INCREF(function); + __Pyx_DECREF_SET(__pyx_t_2, function); + } + } + if (__pyx_t_3) { + __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 162, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + } else { + __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 162, __pyx_L1_error) + } + __Pyx_GOTREF(__pyx_t_1); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __pyx_v_ret = __pyx_t_1; + __pyx_t_1 = 0; + + /* "talib/_abstract.pxi":163 + * """ + * ret = OrderedDict() + * for input_name in self.__input_names: # <<<<<<<<<<<<<< + * ret[input_name] = self.__input_names[input_name]['price_series'] + * return ret + */ + __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__input_names); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 163, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + if (likely(PyList_CheckExact(__pyx_t_1)) || PyTuple_CheckExact(__pyx_t_1)) { + __pyx_t_2 = __pyx_t_1; __Pyx_INCREF(__pyx_t_2); __pyx_t_4 = 0; + __pyx_t_5 = NULL; + } else { + __pyx_t_4 = -1; __pyx_t_2 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 163, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_t_5 = Py_TYPE(__pyx_t_2)->tp_iternext; if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 163, __pyx_L1_error) + } + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + for (;;) { + if (likely(!__pyx_t_5)) { + if (likely(PyList_CheckExact(__pyx_t_2))) { + if (__pyx_t_4 >= PyList_GET_SIZE(__pyx_t_2)) break; + #if CYTHON_COMPILING_IN_CPYTHON + __pyx_t_1 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_4); __Pyx_INCREF(__pyx_t_1); __pyx_t_4++; if (unlikely(0 < 0)) __PYX_ERR(1, 163, __pyx_L1_error) + #else + __pyx_t_1 = PySequence_ITEM(__pyx_t_2, __pyx_t_4); __pyx_t_4++; if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 163, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + #endif + } else { + if (__pyx_t_4 >= PyTuple_GET_SIZE(__pyx_t_2)) break; + #if CYTHON_COMPILING_IN_CPYTHON + __pyx_t_1 = PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_4); __Pyx_INCREF(__pyx_t_1); __pyx_t_4++; if (unlikely(0 < 0)) __PYX_ERR(1, 163, __pyx_L1_error) + #else + __pyx_t_1 = PySequence_ITEM(__pyx_t_2, __pyx_t_4); __pyx_t_4++; if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 163, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + #endif + } + } else { + __pyx_t_1 = __pyx_t_5(__pyx_t_2); + if (unlikely(!__pyx_t_1)) { + PyObject* exc_type = PyErr_Occurred(); + if (exc_type) { + if (likely(exc_type == PyExc_StopIteration || PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); + else __PYX_ERR(1, 163, __pyx_L1_error) + } + break; + } + __Pyx_GOTREF(__pyx_t_1); + } + __Pyx_XDECREF_SET(__pyx_v_input_name, __pyx_t_1); + __pyx_t_1 = 0; + + /* "talib/_abstract.pxi":164 + * ret = OrderedDict() + * for input_name in self.__input_names: + * ret[input_name] = self.__input_names[input_name]['price_series'] # <<<<<<<<<<<<<< + * return ret + * + */ + __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__input_names); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 164, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __pyx_t_3 = PyObject_GetItem(__pyx_t_1, __pyx_v_input_name); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 164, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + __pyx_t_1 = PyObject_GetItem(__pyx_t_3, __pyx_n_s_price_series); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 164, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + if (unlikely(PyObject_SetItem(__pyx_v_ret, __pyx_v_input_name, __pyx_t_1) < 0)) __PYX_ERR(1, 164, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + + /* "talib/_abstract.pxi":163 + * """ + * ret = OrderedDict() + * for input_name in self.__input_names: # <<<<<<<<<<<<<< + * ret[input_name] = self.__input_names[input_name]['price_series'] + * return ret + */ + } + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_abstract.pxi":165 + * for input_name in self.__input_names: + * ret[input_name] = self.__input_names[input_name]['price_series'] + * return ret # <<<<<<<<<<<<<< + * + * def set_input_names(self, input_names): + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(__pyx_v_ret); + __pyx_r = __pyx_v_ret; + goto __pyx_L0; + + /* "talib/_abstract.pxi":157 + * return self.__info['output_flags'].copy() + * + * def get_input_names(self): # <<<<<<<<<<<<<< + * """ + * Returns the dict of input price series names that specifies which + */ + + /* function exit code */ + __pyx_L1_error:; + __Pyx_XDECREF(__pyx_t_1); + __Pyx_XDECREF(__pyx_t_2); + __Pyx_XDECREF(__pyx_t_3); + __Pyx_AddTraceback("talib.c_ta_lib.Function.get_input_names", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF(__pyx_v_ret); + __Pyx_XDECREF(__pyx_v_input_name); + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "talib/_abstract.pxi":167 + * return ret + * + * def set_input_names(self, input_names): # <<<<<<<<<<<<<< + * """ + * Sets the input price series names to use. + */ + +/* Python wrapper */ +static PyObject *__pyx_pw_5talib_8c_ta_lib_8Function_13set_input_names(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_8Function_12set_input_names[] = "\n Sets the input price series names to use.\n "; +static PyMethodDef __pyx_mdef_5talib_8c_ta_lib_8Function_13set_input_names = {"set_input_names", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_8Function_13set_input_names, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_8Function_12set_input_names}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_8Function_13set_input_names(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { + PyObject *__pyx_v_self = 0; + PyObject *__pyx_v_input_names = 0; + PyObject *__pyx_r = 0; + __Pyx_RefNannyDeclarations + __Pyx_RefNannySetupContext("set_input_names (wrapper)", 0); + { + static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_self,&__pyx_n_s_input_names,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_self)) != 0)) kw_args--; + else goto __pyx_L5_argtuple_error; + case 1: + if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_input_names)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("set_input_names", 1, 2, 2, 1); __PYX_ERR(1, 167, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "set_input_names") < 0)) __PYX_ERR(1, 167, __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_self = values[0]; + __pyx_v_input_names = values[1]; + } + goto __pyx_L4_argument_unpacking_done; + __pyx_L5_argtuple_error:; + __Pyx_RaiseArgtupleInvalid("set_input_names", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(1, 167, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.Function.set_input_names", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_RefNannyFinishContext(); + return NULL; + __pyx_L4_argument_unpacking_done:; + __pyx_r = __pyx_pf_5talib_8c_ta_lib_8Function_12set_input_names(__pyx_self, __pyx_v_self, __pyx_v_input_names); + + /* function exit code */ + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +static PyObject *__pyx_pf_5talib_8c_ta_lib_8Function_12set_input_names(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_input_names) { + PyObject *__pyx_v_input_name = NULL; + PyObject *__pyx_v_price_series = NULL; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + PyObject *__pyx_t_1 = NULL; + PyObject *__pyx_t_2 = NULL; + PyObject *__pyx_t_3 = NULL; + Py_ssize_t __pyx_t_4; + PyObject *(*__pyx_t_5)(PyObject *); + PyObject *__pyx_t_6 = NULL; + PyObject *__pyx_t_7 = NULL; + PyObject *(*__pyx_t_8)(PyObject *); + __Pyx_RefNannySetupContext("set_input_names", 0); + + /* "talib/_abstract.pxi":171 + * Sets the input price series names to use. + * """ + * for input_name, price_series in input_names.items(): # <<<<<<<<<<<<<< + * self.__input_names[input_name]['price_series'] = price_series + * self.__info['input_names'][input_name] = price_series + */ + __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_input_names, __pyx_n_s_items); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 171, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_t_3 = NULL; + if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_2))) { + __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); + if (likely(__pyx_t_3)) { + PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); + __Pyx_INCREF(__pyx_t_3); + __Pyx_INCREF(function); + __Pyx_DECREF_SET(__pyx_t_2, function); + } + } + if (__pyx_t_3) { + __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 171, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + } else { + __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 171, __pyx_L1_error) + } + __Pyx_GOTREF(__pyx_t_1); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + if (likely(PyList_CheckExact(__pyx_t_1)) || PyTuple_CheckExact(__pyx_t_1)) { + __pyx_t_2 = __pyx_t_1; __Pyx_INCREF(__pyx_t_2); __pyx_t_4 = 0; + __pyx_t_5 = NULL; + } else { + __pyx_t_4 = -1; __pyx_t_2 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 171, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_t_5 = Py_TYPE(__pyx_t_2)->tp_iternext; if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 171, __pyx_L1_error) + } + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + for (;;) { + if (likely(!__pyx_t_5)) { + if (likely(PyList_CheckExact(__pyx_t_2))) { + if (__pyx_t_4 >= PyList_GET_SIZE(__pyx_t_2)) break; + #if CYTHON_COMPILING_IN_CPYTHON + __pyx_t_1 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_4); __Pyx_INCREF(__pyx_t_1); __pyx_t_4++; if (unlikely(0 < 0)) __PYX_ERR(1, 171, __pyx_L1_error) + #else + __pyx_t_1 = PySequence_ITEM(__pyx_t_2, __pyx_t_4); __pyx_t_4++; if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 171, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + #endif + } else { + if (__pyx_t_4 >= PyTuple_GET_SIZE(__pyx_t_2)) break; + #if CYTHON_COMPILING_IN_CPYTHON + __pyx_t_1 = PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_4); __Pyx_INCREF(__pyx_t_1); __pyx_t_4++; if (unlikely(0 < 0)) __PYX_ERR(1, 171, __pyx_L1_error) + #else + __pyx_t_1 = PySequence_ITEM(__pyx_t_2, __pyx_t_4); __pyx_t_4++; if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 171, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + #endif + } + } else { + __pyx_t_1 = __pyx_t_5(__pyx_t_2); + if (unlikely(!__pyx_t_1)) { + PyObject* exc_type = PyErr_Occurred(); + if (exc_type) { + if (likely(exc_type == PyExc_StopIteration || PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); + else __PYX_ERR(1, 171, __pyx_L1_error) + } + break; + } + __Pyx_GOTREF(__pyx_t_1); + } + if ((likely(PyTuple_CheckExact(__pyx_t_1))) || (PyList_CheckExact(__pyx_t_1))) { + PyObject* sequence = __pyx_t_1; + #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, 171, __pyx_L1_error) + } + #if CYTHON_COMPILING_IN_CPYTHON + if (likely(PyTuple_CheckExact(sequence))) { + __pyx_t_3 = PyTuple_GET_ITEM(sequence, 0); + __pyx_t_6 = PyTuple_GET_ITEM(sequence, 1); + } else { + __pyx_t_3 = PyList_GET_ITEM(sequence, 0); + __pyx_t_6 = PyList_GET_ITEM(sequence, 1); + } + __Pyx_INCREF(__pyx_t_3); + __Pyx_INCREF(__pyx_t_6); + #else + __pyx_t_3 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 171, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + __pyx_t_6 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 171, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_6); + #endif + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + } else { + Py_ssize_t index = -1; + __pyx_t_7 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 171, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_7); + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + __pyx_t_8 = Py_TYPE(__pyx_t_7)->tp_iternext; + index = 0; __pyx_t_3 = __pyx_t_8(__pyx_t_7); if (unlikely(!__pyx_t_3)) goto __pyx_L5_unpacking_failed; + __Pyx_GOTREF(__pyx_t_3); + index = 1; __pyx_t_6 = __pyx_t_8(__pyx_t_7); if (unlikely(!__pyx_t_6)) goto __pyx_L5_unpacking_failed; + __Pyx_GOTREF(__pyx_t_6); + if (__Pyx_IternextUnpackEndCheck(__pyx_t_8(__pyx_t_7), 2) < 0) __PYX_ERR(1, 171, __pyx_L1_error) + __pyx_t_8 = NULL; + __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + goto __pyx_L6_unpacking_done; + __pyx_L5_unpacking_failed:; + __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + __pyx_t_8 = NULL; + if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index); + __PYX_ERR(1, 171, __pyx_L1_error) + __pyx_L6_unpacking_done:; + } + __Pyx_XDECREF_SET(__pyx_v_input_name, __pyx_t_3); + __pyx_t_3 = 0; + __Pyx_XDECREF_SET(__pyx_v_price_series, __pyx_t_6); + __pyx_t_6 = 0; + + /* "talib/_abstract.pxi":172 + * """ + * for input_name, price_series in input_names.items(): + * self.__input_names[input_name]['price_series'] = price_series # <<<<<<<<<<<<<< + * self.__info['input_names'][input_name] = price_series + * self.__outputs_valid = False + */ + __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__input_names); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 172, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __pyx_t_6 = PyObject_GetItem(__pyx_t_1, __pyx_v_input_name); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 172, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_6); + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + if (unlikely(PyObject_SetItem(__pyx_t_6, __pyx_n_s_price_series, __pyx_v_price_series) < 0)) __PYX_ERR(1, 172, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; + + /* "talib/_abstract.pxi":173 + * for input_name, price_series in input_names.items(): + * self.__input_names[input_name]['price_series'] = price_series + * self.__info['input_names'][input_name] = price_series # <<<<<<<<<<<<<< + * self.__outputs_valid = False + * + */ + __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__info); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 173, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_6); + __pyx_t_1 = PyObject_GetItem(__pyx_t_6, __pyx_n_s_input_names); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 173, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; + if (unlikely(PyObject_SetItem(__pyx_t_1, __pyx_v_input_name, __pyx_v_price_series) < 0)) __PYX_ERR(1, 173, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + + /* "talib/_abstract.pxi":171 + * Sets the input price series names to use. + * """ + * for input_name, price_series in input_names.items(): # <<<<<<<<<<<<<< + * self.__input_names[input_name]['price_series'] = price_series + * self.__info['input_names'][input_name] = price_series + */ + } + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_abstract.pxi":174 + * self.__input_names[input_name]['price_series'] = price_series + * self.__info['input_names'][input_name] = price_series + * self.__outputs_valid = False # <<<<<<<<<<<<<< + * + * input_names = property(get_input_names, set_input_names) + */ + if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_Function__outputs_valid, Py_False) < 0) __PYX_ERR(1, 174, __pyx_L1_error) + + /* "talib/_abstract.pxi":167 + * return ret + * + * def set_input_names(self, input_names): # <<<<<<<<<<<<<< + * """ + * Sets the input price series names to use. + */ + + /* function exit code */ + __pyx_r = Py_None; __Pyx_INCREF(Py_None); + goto __pyx_L0; + __pyx_L1_error:; + __Pyx_XDECREF(__pyx_t_1); + __Pyx_XDECREF(__pyx_t_2); + __Pyx_XDECREF(__pyx_t_3); + __Pyx_XDECREF(__pyx_t_6); + __Pyx_XDECREF(__pyx_t_7); + __Pyx_AddTraceback("talib.c_ta_lib.Function.set_input_names", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF(__pyx_v_input_name); + __Pyx_XDECREF(__pyx_v_price_series); + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "talib/_abstract.pxi":178 + * input_names = property(get_input_names, set_input_names) + * + * def get_input_arrays(self): # <<<<<<<<<<<<<< + * """ + * Returns a copy of the dict of input arrays in use. + */ + +/* Python wrapper */ +static PyObject *__pyx_pw_5talib_8c_ta_lib_8Function_15get_input_arrays(PyObject *__pyx_self, PyObject *__pyx_v_self); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_8Function_14get_input_arrays[] = "\n Returns a copy of the dict of input arrays in use.\n "; +static PyMethodDef __pyx_mdef_5talib_8c_ta_lib_8Function_15get_input_arrays = {"get_input_arrays", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_8Function_15get_input_arrays, METH_O, __pyx_doc_5talib_8c_ta_lib_8Function_14get_input_arrays}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_8Function_15get_input_arrays(PyObject *__pyx_self, PyObject *__pyx_v_self) { + PyObject *__pyx_r = 0; + __Pyx_RefNannyDeclarations + __Pyx_RefNannySetupContext("get_input_arrays (wrapper)", 0); + __pyx_r = __pyx_pf_5talib_8c_ta_lib_8Function_14get_input_arrays(__pyx_self, ((PyObject *)__pyx_v_self)); + + /* function exit code */ + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +static PyObject *__pyx_pf_5talib_8c_ta_lib_8Function_14get_input_arrays(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self) { + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + PyObject *__pyx_t_1 = NULL; + PyObject *__pyx_t_2 = NULL; + PyObject *__pyx_t_3 = NULL; + __Pyx_RefNannySetupContext("get_input_arrays", 0); + + /* "talib/_abstract.pxi":182 + * Returns a copy of the dict of input arrays in use. + * """ + * return self.__input_arrays.copy() # <<<<<<<<<<<<<< + * + * def set_input_arrays(self, input_arrays): + */ + __Pyx_XDECREF(__pyx_r); + __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__input_arrays); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 182, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_copy); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 182, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __pyx_t_2 = NULL; + if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_3))) { + __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3); + if (likely(__pyx_t_2)) { + PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); + __Pyx_INCREF(__pyx_t_2); + __Pyx_INCREF(function); + __Pyx_DECREF_SET(__pyx_t_3, function); + } + } + if (__pyx_t_2) { + __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 182, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + } else { + __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 182, __pyx_L1_error) + } + __Pyx_GOTREF(__pyx_t_1); + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + __pyx_r = __pyx_t_1; + __pyx_t_1 = 0; + goto __pyx_L0; + + /* "talib/_abstract.pxi":178 + * input_names = property(get_input_names, set_input_names) + * + * def get_input_arrays(self): # <<<<<<<<<<<<<< + * """ + * Returns a copy of the dict of input arrays in use. + */ + + /* function exit code */ + __pyx_L1_error:; + __Pyx_XDECREF(__pyx_t_1); + __Pyx_XDECREF(__pyx_t_2); + __Pyx_XDECREF(__pyx_t_3); + __Pyx_AddTraceback("talib.c_ta_lib.Function.get_input_arrays", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "talib/_abstract.pxi":184 + * return self.__input_arrays.copy() + * + * def set_input_arrays(self, input_arrays): # <<<<<<<<<<<<<< + * """ + * Sets the dict of input_arrays to use. Returns True/False for + */ + +/* Python wrapper */ +static PyObject *__pyx_pw_5talib_8c_ta_lib_8Function_17set_input_arrays(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_8Function_16set_input_arrays[] = "\n Sets the dict of input_arrays to use. Returns True/False for\n subclasses:\n\n If input_arrays is a dict with the keys open, high, low, close and\n volume, it is assigned as the input_array to use and this function\n returns True, returning False otherwise. If you implement your own\n data type and wish to subclass Function, you should wrap this function\n with an if-statement:\n\n class CustomFunction(Function):\n def __init__(self, function_name):\n Function.__init__(self, function_name)\n\n def set_input_arrays(self, input_data):\n if Function.set_input_arrays(self, input_data):\n return True\n elif isinstance(input_data, some_module.CustomDataType):\n input_arrays = Function.get_input_arrays(self)\n # convert input_data to input_arrays and then call the super\n Function.set_input_arrays(self, input_arrays)\n return True\n return False\n "; +static PyMethodDef __pyx_mdef_5talib_8c_ta_lib_8Function_17set_input_arrays = {"set_input_arrays", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_8Function_17set_input_arrays, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_8Function_16set_input_arrays}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_8Function_17set_input_arrays(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { + PyObject *__pyx_v_self = 0; + PyObject *__pyx_v_input_arrays = 0; + PyObject *__pyx_r = 0; + __Pyx_RefNannyDeclarations + __Pyx_RefNannySetupContext("set_input_arrays (wrapper)", 0); + { + static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_self,&__pyx_n_s_input_arrays,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_self)) != 0)) kw_args--; + else goto __pyx_L5_argtuple_error; + case 1: + if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_input_arrays)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("set_input_arrays", 1, 2, 2, 1); __PYX_ERR(1, 184, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "set_input_arrays") < 0)) __PYX_ERR(1, 184, __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_self = values[0]; + __pyx_v_input_arrays = values[1]; + } + goto __pyx_L4_argument_unpacking_done; + __pyx_L5_argtuple_error:; + __Pyx_RaiseArgtupleInvalid("set_input_arrays", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(1, 184, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.Function.set_input_arrays", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_RefNannyFinishContext(); + return NULL; + __pyx_L4_argument_unpacking_done:; + __pyx_r = __pyx_pf_5talib_8c_ta_lib_8Function_16set_input_arrays(__pyx_self, __pyx_v_self, __pyx_v_input_arrays); + + /* function exit code */ + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +static PyObject *__pyx_pf_5talib_8c_ta_lib_8Function_16set_input_arrays(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_input_arrays) { + PyObject *__pyx_v_missing_keys = NULL; + PyObject *__pyx_v_key = NULL; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + PyObject *__pyx_t_1 = NULL; + int __pyx_t_2; + int __pyx_t_3; + PyObject *__pyx_t_4 = NULL; + PyObject *__pyx_t_5 = NULL; + Py_ssize_t __pyx_t_6; + PyObject *(*__pyx_t_7)(PyObject *); + int __pyx_t_8; + __Pyx_RefNannySetupContext("set_input_arrays", 0); + + /* "talib/_abstract.pxi":209 + * return False + * """ + * if isinstance(input_arrays, __INPUT_ARRAYS_TYPES): # <<<<<<<<<<<<<< + * missing_keys = [] + * for key in self.__input_price_series_names(): + */ + __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_INPUT_ARRAYS_TYPES); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 209, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __pyx_t_2 = PyObject_IsInstance(__pyx_v_input_arrays, __pyx_t_1); if (unlikely(__pyx_t_2 == -1)) __PYX_ERR(1, 209, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + __pyx_t_3 = (__pyx_t_2 != 0); + if (__pyx_t_3) { + + /* "talib/_abstract.pxi":210 + * """ + * if isinstance(input_arrays, __INPUT_ARRAYS_TYPES): + * missing_keys = [] # <<<<<<<<<<<<<< + * for key in self.__input_price_series_names(): + * if key not in input_arrays: + */ + __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 210, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __pyx_v_missing_keys = ((PyObject*)__pyx_t_1); + __pyx_t_1 = 0; + + /* "talib/_abstract.pxi":211 + * if isinstance(input_arrays, __INPUT_ARRAYS_TYPES): + * missing_keys = [] + * for key in self.__input_price_series_names(): # <<<<<<<<<<<<<< + * if key not in input_arrays: + * missing_keys.append(key) + */ + __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__input_price_series_na); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 211, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + __pyx_t_5 = NULL; + if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_4))) { + __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4); + if (likely(__pyx_t_5)) { + PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); + __Pyx_INCREF(__pyx_t_5); + __Pyx_INCREF(function); + __Pyx_DECREF_SET(__pyx_t_4, function); + } + } + if (__pyx_t_5) { + __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_5); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 211, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + } else { + __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 211, __pyx_L1_error) + } + __Pyx_GOTREF(__pyx_t_1); + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + if (likely(PyList_CheckExact(__pyx_t_1)) || PyTuple_CheckExact(__pyx_t_1)) { + __pyx_t_4 = __pyx_t_1; __Pyx_INCREF(__pyx_t_4); __pyx_t_6 = 0; + __pyx_t_7 = NULL; + } else { + __pyx_t_6 = -1; __pyx_t_4 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 211, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + __pyx_t_7 = Py_TYPE(__pyx_t_4)->tp_iternext; if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 211, __pyx_L1_error) + } + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + for (;;) { + if (likely(!__pyx_t_7)) { + if (likely(PyList_CheckExact(__pyx_t_4))) { + if (__pyx_t_6 >= PyList_GET_SIZE(__pyx_t_4)) break; + #if CYTHON_COMPILING_IN_CPYTHON + __pyx_t_1 = PyList_GET_ITEM(__pyx_t_4, __pyx_t_6); __Pyx_INCREF(__pyx_t_1); __pyx_t_6++; if (unlikely(0 < 0)) __PYX_ERR(1, 211, __pyx_L1_error) + #else + __pyx_t_1 = PySequence_ITEM(__pyx_t_4, __pyx_t_6); __pyx_t_6++; if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 211, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + #endif + } else { + if (__pyx_t_6 >= PyTuple_GET_SIZE(__pyx_t_4)) break; + #if CYTHON_COMPILING_IN_CPYTHON + __pyx_t_1 = PyTuple_GET_ITEM(__pyx_t_4, __pyx_t_6); __Pyx_INCREF(__pyx_t_1); __pyx_t_6++; if (unlikely(0 < 0)) __PYX_ERR(1, 211, __pyx_L1_error) + #else + __pyx_t_1 = PySequence_ITEM(__pyx_t_4, __pyx_t_6); __pyx_t_6++; if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 211, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + #endif + } + } else { + __pyx_t_1 = __pyx_t_7(__pyx_t_4); + if (unlikely(!__pyx_t_1)) { + PyObject* exc_type = PyErr_Occurred(); + if (exc_type) { + if (likely(exc_type == PyExc_StopIteration || PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); + else __PYX_ERR(1, 211, __pyx_L1_error) + } + break; + } + __Pyx_GOTREF(__pyx_t_1); + } + __Pyx_XDECREF_SET(__pyx_v_key, __pyx_t_1); + __pyx_t_1 = 0; + + /* "talib/_abstract.pxi":212 + * missing_keys = [] + * for key in self.__input_price_series_names(): + * if key not in input_arrays: # <<<<<<<<<<<<<< + * missing_keys.append(key) + * if len(missing_keys) == 0: + */ + __pyx_t_3 = (__Pyx_PySequence_ContainsTF(__pyx_v_key, __pyx_v_input_arrays, Py_NE)); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(1, 212, __pyx_L1_error) + __pyx_t_2 = (__pyx_t_3 != 0); + if (__pyx_t_2) { + + /* "talib/_abstract.pxi":213 + * for key in self.__input_price_series_names(): + * if key not in input_arrays: + * missing_keys.append(key) # <<<<<<<<<<<<<< + * if len(missing_keys) == 0: + * self.__input_arrays = input_arrays + */ + __pyx_t_8 = __Pyx_PyList_Append(__pyx_v_missing_keys, __pyx_v_key); if (unlikely(__pyx_t_8 == -1)) __PYX_ERR(1, 213, __pyx_L1_error) + + /* "talib/_abstract.pxi":212 + * missing_keys = [] + * for key in self.__input_price_series_names(): + * if key not in input_arrays: # <<<<<<<<<<<<<< + * missing_keys.append(key) + * if len(missing_keys) == 0: + */ + } + + /* "talib/_abstract.pxi":211 + * if isinstance(input_arrays, __INPUT_ARRAYS_TYPES): + * missing_keys = [] + * for key in self.__input_price_series_names(): # <<<<<<<<<<<<<< + * if key not in input_arrays: + * missing_keys.append(key) + */ + } + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_abstract.pxi":214 + * if key not in input_arrays: + * missing_keys.append(key) + * if len(missing_keys) == 0: # <<<<<<<<<<<<<< + * self.__input_arrays = input_arrays + * self.__outputs_valid = False + */ + __pyx_t_6 = PyList_GET_SIZE(__pyx_v_missing_keys); if (unlikely(__pyx_t_6 == -1)) __PYX_ERR(1, 214, __pyx_L1_error) + __pyx_t_2 = ((__pyx_t_6 == 0) != 0); + if (__pyx_t_2) { + + /* "talib/_abstract.pxi":215 + * missing_keys.append(key) + * if len(missing_keys) == 0: + * self.__input_arrays = input_arrays # <<<<<<<<<<<<<< + * self.__outputs_valid = False + * return True + */ + if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_Function__input_arrays, __pyx_v_input_arrays) < 0) __PYX_ERR(1, 215, __pyx_L1_error) + + /* "talib/_abstract.pxi":216 + * if len(missing_keys) == 0: + * self.__input_arrays = input_arrays + * self.__outputs_valid = False # <<<<<<<<<<<<<< + * return True + * else: + */ + if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_Function__outputs_valid, Py_False) < 0) __PYX_ERR(1, 216, __pyx_L1_error) + + /* "talib/_abstract.pxi":217 + * self.__input_arrays = input_arrays + * self.__outputs_valid = False + * return True # <<<<<<<<<<<<<< + * else: + * raise Exception('input_arrays parameter missing required data '\ + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(Py_True); + __pyx_r = Py_True; + goto __pyx_L0; + + /* "talib/_abstract.pxi":214 + * if key not in input_arrays: + * missing_keys.append(key) + * if len(missing_keys) == 0: # <<<<<<<<<<<<<< + * self.__input_arrays = input_arrays + * self.__outputs_valid = False + */ + } + + /* "talib/_abstract.pxi":219 + * return True + * else: + * raise Exception('input_arrays parameter missing required data '\ # <<<<<<<<<<<<<< + * 'key%s: %s' % ('s' if len(missing_keys) > 1 \ + * else '', + */ + /*else*/ { + + /* "talib/_abstract.pxi":220 + * else: + * raise Exception('input_arrays parameter missing required data '\ + * 'key%s: %s' % ('s' if len(missing_keys) > 1 \ # <<<<<<<<<<<<<< + * else '', + * ', '.join(missing_keys))) + */ + __pyx_t_6 = PyList_GET_SIZE(__pyx_v_missing_keys); if (unlikely(__pyx_t_6 == -1)) __PYX_ERR(1, 220, __pyx_L1_error) + if (((__pyx_t_6 > 1) != 0)) { + __Pyx_INCREF(__pyx_n_s_s); + __pyx_t_4 = __pyx_n_s_s; + } else { + __Pyx_INCREF(__pyx_kp_s__1211); + __pyx_t_4 = __pyx_kp_s__1211; + } + + /* "talib/_abstract.pxi":222 + * 'key%s: %s' % ('s' if len(missing_keys) > 1 \ + * else '', + * ', '.join(missing_keys))) # <<<<<<<<<<<<<< + * return False + * + */ + __pyx_t_1 = __Pyx_PyString_Join(__pyx_kp_s__1212, __pyx_v_missing_keys); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 222, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + + /* "talib/_abstract.pxi":220 + * else: + * raise Exception('input_arrays parameter missing required data '\ + * 'key%s: %s' % ('s' if len(missing_keys) > 1 \ # <<<<<<<<<<<<<< + * else '', + * ', '.join(missing_keys))) + */ + __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 220, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + __Pyx_GIVEREF(__pyx_t_4); + PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); + __Pyx_GIVEREF(__pyx_t_1); + PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_1); + __pyx_t_4 = 0; + __pyx_t_1 = 0; + __pyx_t_1 = __Pyx_PyString_Format(__pyx_kp_s_input_arrays_parameter_missing_r, __pyx_t_5); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 220, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + + /* "talib/_abstract.pxi":219 + * return True + * else: + * raise Exception('input_arrays parameter missing required data '\ # <<<<<<<<<<<<<< + * 'key%s: %s' % ('s' if len(missing_keys) > 1 \ + * else '', + */ + __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 219, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + __Pyx_GIVEREF(__pyx_t_1); + PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_1); + __pyx_t_1 = 0; + __pyx_t_1 = __Pyx_PyObject_Call(__pyx_builtin_Exception, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 219, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + __Pyx_Raise(__pyx_t_1, 0, 0, 0); + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + __PYX_ERR(1, 219, __pyx_L1_error) + } + + /* "talib/_abstract.pxi":209 + * return False + * """ + * if isinstance(input_arrays, __INPUT_ARRAYS_TYPES): # <<<<<<<<<<<<<< + * missing_keys = [] + * for key in self.__input_price_series_names(): + */ + } + + /* "talib/_abstract.pxi":223 + * else '', + * ', '.join(missing_keys))) + * return False # <<<<<<<<<<<<<< + * + * input_arrays = property(get_input_arrays, set_input_arrays) + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(Py_False); + __pyx_r = Py_False; + goto __pyx_L0; + + /* "talib/_abstract.pxi":184 + * return self.__input_arrays.copy() + * + * def set_input_arrays(self, input_arrays): # <<<<<<<<<<<<<< + * """ + * Sets the dict of input_arrays to use. Returns True/False for + */ + + /* function exit code */ + __pyx_L1_error:; + __Pyx_XDECREF(__pyx_t_1); + __Pyx_XDECREF(__pyx_t_4); + __Pyx_XDECREF(__pyx_t_5); + __Pyx_AddTraceback("talib.c_ta_lib.Function.set_input_arrays", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF(__pyx_v_missing_keys); + __Pyx_XDECREF(__pyx_v_key); + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "talib/_abstract.pxi":227 + * input_arrays = property(get_input_arrays, set_input_arrays) + * + * def get_parameters(self): # <<<<<<<<<<<<<< + * """ + * Returns the function's optional parameters and their default values. + */ + +/* Python wrapper */ +static PyObject *__pyx_pw_5talib_8c_ta_lib_8Function_19get_parameters(PyObject *__pyx_self, PyObject *__pyx_v_self); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_8Function_18get_parameters[] = "\n Returns the function's optional parameters and their default values.\n "; +static PyMethodDef __pyx_mdef_5talib_8c_ta_lib_8Function_19get_parameters = {"get_parameters", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_8Function_19get_parameters, METH_O, __pyx_doc_5talib_8c_ta_lib_8Function_18get_parameters}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_8Function_19get_parameters(PyObject *__pyx_self, PyObject *__pyx_v_self) { + PyObject *__pyx_r = 0; + __Pyx_RefNannyDeclarations + __Pyx_RefNannySetupContext("get_parameters (wrapper)", 0); + __pyx_r = __pyx_pf_5talib_8c_ta_lib_8Function_18get_parameters(__pyx_self, ((PyObject *)__pyx_v_self)); + + /* function exit code */ + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +static PyObject *__pyx_pf_5talib_8c_ta_lib_8Function_18get_parameters(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self) { + PyObject *__pyx_v_ret = NULL; + PyObject *__pyx_v_opt_input = NULL; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + PyObject *__pyx_t_1 = NULL; + PyObject *__pyx_t_2 = NULL; + PyObject *__pyx_t_3 = NULL; + Py_ssize_t __pyx_t_4; + PyObject *(*__pyx_t_5)(PyObject *); + PyObject *__pyx_t_6 = NULL; + PyObject *__pyx_t_7 = NULL; + __Pyx_RefNannySetupContext("get_parameters", 0); + + /* "talib/_abstract.pxi":231 + * Returns the function's optional parameters and their default values. + * """ + * ret = OrderedDict() # <<<<<<<<<<<<<< + * for opt_input in self.__opt_inputs: + * ret[opt_input] = self.__get_opt_input_value(opt_input) + */ + __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_OrderedDict); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 231, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_t_3 = NULL; + if (CYTHON_COMPILING_IN_CPYTHON && unlikely(PyMethod_Check(__pyx_t_2))) { + __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); + if (likely(__pyx_t_3)) { + PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); + __Pyx_INCREF(__pyx_t_3); + __Pyx_INCREF(function); + __Pyx_DECREF_SET(__pyx_t_2, function); + } + } + if (__pyx_t_3) { + __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 231, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + } else { + __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 231, __pyx_L1_error) + } + __Pyx_GOTREF(__pyx_t_1); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __pyx_v_ret = __pyx_t_1; + __pyx_t_1 = 0; + + /* "talib/_abstract.pxi":232 + * """ + * ret = OrderedDict() + * for opt_input in self.__opt_inputs: # <<<<<<<<<<<<<< + * ret[opt_input] = self.__get_opt_input_value(opt_input) + * return ret + */ + __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__opt_inputs); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 232, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + if (likely(PyList_CheckExact(__pyx_t_1)) || PyTuple_CheckExact(__pyx_t_1)) { + __pyx_t_2 = __pyx_t_1; __Pyx_INCREF(__pyx_t_2); __pyx_t_4 = 0; + __pyx_t_5 = NULL; + } else { + __pyx_t_4 = -1; __pyx_t_2 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 232, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_t_5 = Py_TYPE(__pyx_t_2)->tp_iternext; if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 232, __pyx_L1_error) + } + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + for (;;) { + if (likely(!__pyx_t_5)) { + if (likely(PyList_CheckExact(__pyx_t_2))) { + if (__pyx_t_4 >= PyList_GET_SIZE(__pyx_t_2)) break; + #if CYTHON_COMPILING_IN_CPYTHON + __pyx_t_1 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_4); __Pyx_INCREF(__pyx_t_1); __pyx_t_4++; if (unlikely(0 < 0)) __PYX_ERR(1, 232, __pyx_L1_error) + #else + __pyx_t_1 = PySequence_ITEM(__pyx_t_2, __pyx_t_4); __pyx_t_4++; if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 232, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + #endif + } else { + if (__pyx_t_4 >= PyTuple_GET_SIZE(__pyx_t_2)) break; + #if CYTHON_COMPILING_IN_CPYTHON + __pyx_t_1 = PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_4); __Pyx_INCREF(__pyx_t_1); __pyx_t_4++; if (unlikely(0 < 0)) __PYX_ERR(1, 232, __pyx_L1_error) + #else + __pyx_t_1 = PySequence_ITEM(__pyx_t_2, __pyx_t_4); __pyx_t_4++; if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 232, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + #endif + } + } else { + __pyx_t_1 = __pyx_t_5(__pyx_t_2); + if (unlikely(!__pyx_t_1)) { + PyObject* exc_type = PyErr_Occurred(); + if (exc_type) { + if (likely(exc_type == PyExc_StopIteration || PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); + else __PYX_ERR(1, 232, __pyx_L1_error) + } + break; + } + __Pyx_GOTREF(__pyx_t_1); + } + __Pyx_XDECREF_SET(__pyx_v_opt_input, __pyx_t_1); + __pyx_t_1 = 0; + + /* "talib/_abstract.pxi":233 + * ret = OrderedDict() + * for opt_input in self.__opt_inputs: + * ret[opt_input] = self.__get_opt_input_value(opt_input) # <<<<<<<<<<<<<< + * return ret + * + */ + __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__get_opt_input_value); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 233, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + __pyx_t_6 = NULL; + if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_3))) { + __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_3); + if (likely(__pyx_t_6)) { + PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); + __Pyx_INCREF(__pyx_t_6); + __Pyx_INCREF(function); + __Pyx_DECREF_SET(__pyx_t_3, function); + } + } + if (!__pyx_t_6) { + __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_v_opt_input); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 233, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + } else { + __pyx_t_7 = PyTuple_New(1+1); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 233, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_7); + __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_7, 0, __pyx_t_6); __pyx_t_6 = NULL; + __Pyx_INCREF(__pyx_v_opt_input); + __Pyx_GIVEREF(__pyx_v_opt_input); + PyTuple_SET_ITEM(__pyx_t_7, 0+1, __pyx_v_opt_input); + __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_7, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 233, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + } + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + if (unlikely(PyObject_SetItem(__pyx_v_ret, __pyx_v_opt_input, __pyx_t_1) < 0)) __PYX_ERR(1, 233, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + + /* "talib/_abstract.pxi":232 + * """ + * ret = OrderedDict() + * for opt_input in self.__opt_inputs: # <<<<<<<<<<<<<< + * ret[opt_input] = self.__get_opt_input_value(opt_input) + * return ret + */ + } + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_abstract.pxi":234 + * for opt_input in self.__opt_inputs: + * ret[opt_input] = self.__get_opt_input_value(opt_input) + * return ret # <<<<<<<<<<<<<< + * + * def set_parameters(self, parameters): + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(__pyx_v_ret); + __pyx_r = __pyx_v_ret; + goto __pyx_L0; + + /* "talib/_abstract.pxi":227 + * input_arrays = property(get_input_arrays, set_input_arrays) + * + * def get_parameters(self): # <<<<<<<<<<<<<< + * """ + * Returns the function's optional parameters and their default values. + */ + + /* function exit code */ + __pyx_L1_error:; + __Pyx_XDECREF(__pyx_t_1); + __Pyx_XDECREF(__pyx_t_2); + __Pyx_XDECREF(__pyx_t_3); + __Pyx_XDECREF(__pyx_t_6); + __Pyx_XDECREF(__pyx_t_7); + __Pyx_AddTraceback("talib.c_ta_lib.Function.get_parameters", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF(__pyx_v_ret); + __Pyx_XDECREF(__pyx_v_opt_input); + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "talib/_abstract.pxi":236 + * return ret + * + * def set_parameters(self, parameters): # <<<<<<<<<<<<<< + * """ + * Sets the function parameter values. + */ + +/* Python wrapper */ +static PyObject *__pyx_pw_5talib_8c_ta_lib_8Function_21set_parameters(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_8Function_20set_parameters[] = "\n Sets the function parameter values.\n "; +static PyMethodDef __pyx_mdef_5talib_8c_ta_lib_8Function_21set_parameters = {"set_parameters", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_8Function_21set_parameters, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_8Function_20set_parameters}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_8Function_21set_parameters(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { + PyObject *__pyx_v_self = 0; + PyObject *__pyx_v_parameters = 0; + PyObject *__pyx_r = 0; + __Pyx_RefNannyDeclarations + __Pyx_RefNannySetupContext("set_parameters (wrapper)", 0); + { + static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_self,&__pyx_n_s_parameters,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_self)) != 0)) kw_args--; + else goto __pyx_L5_argtuple_error; + case 1: + if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_parameters)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("set_parameters", 1, 2, 2, 1); __PYX_ERR(1, 236, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "set_parameters") < 0)) __PYX_ERR(1, 236, __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_self = values[0]; + __pyx_v_parameters = values[1]; + } + goto __pyx_L4_argument_unpacking_done; + __pyx_L5_argtuple_error:; + __Pyx_RaiseArgtupleInvalid("set_parameters", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(1, 236, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.Function.set_parameters", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_RefNannyFinishContext(); + return NULL; + __pyx_L4_argument_unpacking_done:; + __pyx_r = __pyx_pf_5talib_8c_ta_lib_8Function_20set_parameters(__pyx_self, __pyx_v_self, __pyx_v_parameters); + + /* function exit code */ + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +static PyObject *__pyx_pf_5talib_8c_ta_lib_8Function_20set_parameters(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_parameters) { + PyObject *__pyx_v_param = NULL; + PyObject *__pyx_v_value = NULL; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + PyObject *__pyx_t_1 = NULL; + PyObject *__pyx_t_2 = NULL; + PyObject *__pyx_t_3 = NULL; + Py_ssize_t __pyx_t_4; + PyObject *(*__pyx_t_5)(PyObject *); + PyObject *__pyx_t_6 = NULL; + PyObject *__pyx_t_7 = NULL; + PyObject *(*__pyx_t_8)(PyObject *); + __Pyx_RefNannySetupContext("set_parameters", 0); + + /* "talib/_abstract.pxi":240 + * Sets the function parameter values. + * """ + * for param, value in parameters.items(): # <<<<<<<<<<<<<< + * self.__opt_inputs[param]['value'] = value + * self.__outputs_valid = False + */ + __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_parameters, __pyx_n_s_items); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 240, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_t_3 = NULL; + if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_2))) { + __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); + if (likely(__pyx_t_3)) { + PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); + __Pyx_INCREF(__pyx_t_3); + __Pyx_INCREF(function); + __Pyx_DECREF_SET(__pyx_t_2, function); + } + } + if (__pyx_t_3) { + __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 240, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + } else { + __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 240, __pyx_L1_error) + } + __Pyx_GOTREF(__pyx_t_1); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + if (likely(PyList_CheckExact(__pyx_t_1)) || PyTuple_CheckExact(__pyx_t_1)) { + __pyx_t_2 = __pyx_t_1; __Pyx_INCREF(__pyx_t_2); __pyx_t_4 = 0; + __pyx_t_5 = NULL; + } else { + __pyx_t_4 = -1; __pyx_t_2 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 240, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_t_5 = Py_TYPE(__pyx_t_2)->tp_iternext; if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 240, __pyx_L1_error) + } + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + for (;;) { + if (likely(!__pyx_t_5)) { + if (likely(PyList_CheckExact(__pyx_t_2))) { + if (__pyx_t_4 >= PyList_GET_SIZE(__pyx_t_2)) break; + #if CYTHON_COMPILING_IN_CPYTHON + __pyx_t_1 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_4); __Pyx_INCREF(__pyx_t_1); __pyx_t_4++; if (unlikely(0 < 0)) __PYX_ERR(1, 240, __pyx_L1_error) + #else + __pyx_t_1 = PySequence_ITEM(__pyx_t_2, __pyx_t_4); __pyx_t_4++; if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 240, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + #endif + } else { + if (__pyx_t_4 >= PyTuple_GET_SIZE(__pyx_t_2)) break; + #if CYTHON_COMPILING_IN_CPYTHON + __pyx_t_1 = PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_4); __Pyx_INCREF(__pyx_t_1); __pyx_t_4++; if (unlikely(0 < 0)) __PYX_ERR(1, 240, __pyx_L1_error) + #else + __pyx_t_1 = PySequence_ITEM(__pyx_t_2, __pyx_t_4); __pyx_t_4++; if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 240, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + #endif + } + } else { + __pyx_t_1 = __pyx_t_5(__pyx_t_2); + if (unlikely(!__pyx_t_1)) { + PyObject* exc_type = PyErr_Occurred(); + if (exc_type) { + if (likely(exc_type == PyExc_StopIteration || PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); + else __PYX_ERR(1, 240, __pyx_L1_error) + } + break; + } + __Pyx_GOTREF(__pyx_t_1); + } + if ((likely(PyTuple_CheckExact(__pyx_t_1))) || (PyList_CheckExact(__pyx_t_1))) { + PyObject* sequence = __pyx_t_1; + #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, 240, __pyx_L1_error) + } + #if CYTHON_COMPILING_IN_CPYTHON + if (likely(PyTuple_CheckExact(sequence))) { + __pyx_t_3 = PyTuple_GET_ITEM(sequence, 0); + __pyx_t_6 = PyTuple_GET_ITEM(sequence, 1); + } else { + __pyx_t_3 = PyList_GET_ITEM(sequence, 0); + __pyx_t_6 = PyList_GET_ITEM(sequence, 1); + } + __Pyx_INCREF(__pyx_t_3); + __Pyx_INCREF(__pyx_t_6); + #else + __pyx_t_3 = PySequence_ITEM(sequence, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 240, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + __pyx_t_6 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 240, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_6); + #endif + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + } else { + Py_ssize_t index = -1; + __pyx_t_7 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 240, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_7); + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + __pyx_t_8 = Py_TYPE(__pyx_t_7)->tp_iternext; + index = 0; __pyx_t_3 = __pyx_t_8(__pyx_t_7); if (unlikely(!__pyx_t_3)) goto __pyx_L5_unpacking_failed; + __Pyx_GOTREF(__pyx_t_3); + index = 1; __pyx_t_6 = __pyx_t_8(__pyx_t_7); if (unlikely(!__pyx_t_6)) goto __pyx_L5_unpacking_failed; + __Pyx_GOTREF(__pyx_t_6); + if (__Pyx_IternextUnpackEndCheck(__pyx_t_8(__pyx_t_7), 2) < 0) __PYX_ERR(1, 240, __pyx_L1_error) + __pyx_t_8 = NULL; + __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + goto __pyx_L6_unpacking_done; + __pyx_L5_unpacking_failed:; + __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + __pyx_t_8 = NULL; + if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index); + __PYX_ERR(1, 240, __pyx_L1_error) + __pyx_L6_unpacking_done:; + } + __Pyx_XDECREF_SET(__pyx_v_param, __pyx_t_3); + __pyx_t_3 = 0; + __Pyx_XDECREF_SET(__pyx_v_value, __pyx_t_6); + __pyx_t_6 = 0; + + /* "talib/_abstract.pxi":241 + * """ + * for param, value in parameters.items(): + * self.__opt_inputs[param]['value'] = value # <<<<<<<<<<<<<< + * self.__outputs_valid = False + * self.__info['parameters'] = self.parameters + */ + __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__opt_inputs); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 241, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __pyx_t_6 = PyObject_GetItem(__pyx_t_1, __pyx_v_param); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 241, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_6); + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + if (unlikely(PyObject_SetItem(__pyx_t_6, __pyx_n_s_value, __pyx_v_value) < 0)) __PYX_ERR(1, 241, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; + + /* "talib/_abstract.pxi":240 + * Sets the function parameter values. + * """ + * for param, value in parameters.items(): # <<<<<<<<<<<<<< + * self.__opt_inputs[param]['value'] = value + * self.__outputs_valid = False + */ + } + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_abstract.pxi":242 + * for param, value in parameters.items(): + * self.__opt_inputs[param]['value'] = value + * self.__outputs_valid = False # <<<<<<<<<<<<<< + * self.__info['parameters'] = self.parameters + * + */ + if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_Function__outputs_valid, Py_False) < 0) __PYX_ERR(1, 242, __pyx_L1_error) + + /* "talib/_abstract.pxi":243 + * self.__opt_inputs[param]['value'] = value + * self.__outputs_valid = False + * self.__info['parameters'] = self.parameters # <<<<<<<<<<<<<< + * + * parameters = property(get_parameters, set_parameters) + */ + __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_parameters); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 243, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_t_6 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__info); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 243, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_6); + if (unlikely(PyObject_SetItem(__pyx_t_6, __pyx_n_s_parameters, __pyx_t_2) < 0)) __PYX_ERR(1, 243, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_abstract.pxi":236 + * return ret + * + * def set_parameters(self, parameters): # <<<<<<<<<<<<<< + * """ + * Sets the function parameter values. + */ + + /* function exit code */ + __pyx_r = Py_None; __Pyx_INCREF(Py_None); + goto __pyx_L0; + __pyx_L1_error:; + __Pyx_XDECREF(__pyx_t_1); + __Pyx_XDECREF(__pyx_t_2); + __Pyx_XDECREF(__pyx_t_3); + __Pyx_XDECREF(__pyx_t_6); + __Pyx_XDECREF(__pyx_t_7); + __Pyx_AddTraceback("talib.c_ta_lib.Function.set_parameters", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF(__pyx_v_param); + __Pyx_XDECREF(__pyx_v_value); + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "talib/_abstract.pxi":247 + * parameters = property(get_parameters, set_parameters) + * + * def set_function_args(self, *args, **kwargs): # <<<<<<<<<<<<<< + * """ + * optionl args:[input_arrays,] [parameter_args,] [input_price_series_kwargs,] [parameter_kwargs] + */ + +/* Python wrapper */ +static PyObject *__pyx_pw_5talib_8c_ta_lib_8Function_23set_function_args(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_8Function_22set_function_args[] = "\n optionl args:[input_arrays,] [parameter_args,] [input_price_series_kwargs,] [parameter_kwargs]\n "; +static PyMethodDef __pyx_mdef_5talib_8c_ta_lib_8Function_23set_function_args = {"set_function_args", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_8Function_23set_function_args, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_8Function_22set_function_args}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_8Function_23set_function_args(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { + PyObject *__pyx_v_self = 0; + PyObject *__pyx_v_args = 0; + PyObject *__pyx_v_kwargs = 0; + PyObject *__pyx_r = 0; + __Pyx_RefNannyDeclarations + __Pyx_RefNannySetupContext("set_function_args (wrapper)", 0); + __pyx_v_kwargs = PyDict_New(); if (unlikely(!__pyx_v_kwargs)) return NULL; + __Pyx_GOTREF(__pyx_v_kwargs); + if (PyTuple_GET_SIZE(__pyx_args) > 1) { + __pyx_v_args = PyTuple_GetSlice(__pyx_args, 1, PyTuple_GET_SIZE(__pyx_args)); + if (unlikely(!__pyx_v_args)) { + __Pyx_DECREF(__pyx_v_kwargs); __pyx_v_kwargs = 0; + __Pyx_RefNannyFinishContext(); + return NULL; + } + __Pyx_GOTREF(__pyx_v_args); + } else { + __pyx_v_args = __pyx_empty_tuple; __Pyx_INCREF(__pyx_empty_tuple); + } + { + static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_self,0}; + PyObject* values[1] = {0}; + if (unlikely(__pyx_kwds)) { + Py_ssize_t kw_args; + const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); + switch (pos_args) { + default: + case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); + case 0: break; + } + kw_args = PyDict_Size(__pyx_kwds); + switch (pos_args) { + case 0: + if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_self)) != 0)) kw_args--; + else goto __pyx_L5_argtuple_error; + } + if (unlikely(kw_args > 0)) { + const Py_ssize_t used_pos_args = (pos_args < 1) ? pos_args : 1; + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, __pyx_v_kwargs, values, used_pos_args, "set_function_args") < 0)) __PYX_ERR(1, 247, __pyx_L3_error) + } + } else if (PyTuple_GET_SIZE(__pyx_args) < 1) { + goto __pyx_L5_argtuple_error; + } else { + values[0] = PyTuple_GET_ITEM(__pyx_args, 0); + } + __pyx_v_self = values[0]; + } + goto __pyx_L4_argument_unpacking_done; + __pyx_L5_argtuple_error:; + __Pyx_RaiseArgtupleInvalid("set_function_args", 0, 1, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(1, 247, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_DECREF(__pyx_v_args); __pyx_v_args = 0; + __Pyx_DECREF(__pyx_v_kwargs); __pyx_v_kwargs = 0; + __Pyx_AddTraceback("talib.c_ta_lib.Function.set_function_args", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_RefNannyFinishContext(); + return NULL; + __pyx_L4_argument_unpacking_done:; + __pyx_r = __pyx_pf_5talib_8c_ta_lib_8Function_22set_function_args(__pyx_self, __pyx_v_self, __pyx_v_args, __pyx_v_kwargs); + + /* function exit code */ + __Pyx_XDECREF(__pyx_v_args); + __Pyx_XDECREF(__pyx_v_kwargs); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +static PyObject *__pyx_pf_5talib_8c_ta_lib_8Function_22set_function_args(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_args, PyObject *__pyx_v_kwargs) { + int __pyx_v_update_info; + PyObject *__pyx_v_key = NULL; + PyObject *__pyx_v_skip_first = NULL; + PyObject *__pyx_v_i = NULL; + PyObject *__pyx_v_param_name = NULL; + PyObject *__pyx_v_value = NULL; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + PyObject *__pyx_t_1 = NULL; + Py_ssize_t __pyx_t_2; + Py_ssize_t __pyx_t_3; + int __pyx_t_4; + PyObject *__pyx_t_5 = NULL; + int __pyx_t_6; + int __pyx_t_7; + int __pyx_t_8; + PyObject *__pyx_t_9 = NULL; + PyObject *__pyx_t_10 = NULL; + PyObject *__pyx_t_11 = NULL; + PyObject *(*__pyx_t_12)(PyObject *); + __Pyx_RefNannySetupContext("set_function_args", 0); + + /* "talib/_abstract.pxi":251 + * optionl args:[input_arrays,] [parameter_args,] [input_price_series_kwargs,] [parameter_kwargs] + * """ + * update_info = False # <<<<<<<<<<<<<< + * + * for key in kwargs: + */ + __pyx_v_update_info = 0; + + /* "talib/_abstract.pxi":253 + * update_info = False + * + * for key in kwargs: # <<<<<<<<<<<<<< + * if key in self.__opt_inputs: + * self.__opt_inputs[key]['value'] = kwargs[key] + */ + __pyx_t_2 = 0; + __pyx_t_5 = __Pyx_dict_iterator(__pyx_v_kwargs, 1, ((PyObject *)NULL), (&__pyx_t_3), (&__pyx_t_4)); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 253, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + __Pyx_XDECREF(__pyx_t_1); + __pyx_t_1 = __pyx_t_5; + __pyx_t_5 = 0; + while (1) { + __pyx_t_6 = __Pyx_dict_iter_next(__pyx_t_1, __pyx_t_3, &__pyx_t_2, &__pyx_t_5, NULL, NULL, __pyx_t_4); + if (unlikely(__pyx_t_6 == 0)) break; + if (unlikely(__pyx_t_6 == -1)) __PYX_ERR(1, 253, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + __Pyx_XDECREF_SET(__pyx_v_key, __pyx_t_5); + __pyx_t_5 = 0; + + /* "talib/_abstract.pxi":254 + * + * for key in kwargs: + * if key in self.__opt_inputs: # <<<<<<<<<<<<<< + * self.__opt_inputs[key]['value'] = kwargs[key] + * update_info = True + */ + __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__opt_inputs); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 254, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + __pyx_t_7 = (__Pyx_PySequence_ContainsTF(__pyx_v_key, __pyx_t_5, Py_EQ)); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(1, 254, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + __pyx_t_8 = (__pyx_t_7 != 0); + if (__pyx_t_8) { + + /* "talib/_abstract.pxi":255 + * for key in kwargs: + * if key in self.__opt_inputs: + * self.__opt_inputs[key]['value'] = kwargs[key] # <<<<<<<<<<<<<< + * update_info = True + * elif key in self.__input_names: + */ + __pyx_t_5 = __Pyx_PyDict_GetItem(__pyx_v_kwargs, __pyx_v_key); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 255, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__opt_inputs); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 255, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_9); + __pyx_t_10 = PyObject_GetItem(__pyx_t_9, __pyx_v_key); if (unlikely(!__pyx_t_10)) __PYX_ERR(1, 255, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_10); + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + if (unlikely(PyObject_SetItem(__pyx_t_10, __pyx_n_s_value, __pyx_t_5) < 0)) __PYX_ERR(1, 255, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + + /* "talib/_abstract.pxi":256 + * if key in self.__opt_inputs: + * self.__opt_inputs[key]['value'] = kwargs[key] + * update_info = True # <<<<<<<<<<<<<< + * elif key in self.__input_names: + * self.__input_names[key]['price_series'] = kwargs[key] + */ + __pyx_v_update_info = 1; + + /* "talib/_abstract.pxi":254 + * + * for key in kwargs: + * if key in self.__opt_inputs: # <<<<<<<<<<<<<< + * self.__opt_inputs[key]['value'] = kwargs[key] + * update_info = True + */ + goto __pyx_L5; + } + + /* "talib/_abstract.pxi":257 + * self.__opt_inputs[key]['value'] = kwargs[key] + * update_info = True + * elif key in self.__input_names: # <<<<<<<<<<<<<< + * self.__input_names[key]['price_series'] = kwargs[key] + * self.__info['input_names'][key] = kwargs[key] + */ + __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__input_names); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 257, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + __pyx_t_8 = (__Pyx_PySequence_ContainsTF(__pyx_v_key, __pyx_t_5, Py_EQ)); if (unlikely(__pyx_t_8 < 0)) __PYX_ERR(1, 257, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + __pyx_t_7 = (__pyx_t_8 != 0); + if (__pyx_t_7) { + + /* "talib/_abstract.pxi":258 + * update_info = True + * elif key in self.__input_names: + * self.__input_names[key]['price_series'] = kwargs[key] # <<<<<<<<<<<<<< + * self.__info['input_names'][key] = kwargs[key] + * + */ + __pyx_t_5 = __Pyx_PyDict_GetItem(__pyx_v_kwargs, __pyx_v_key); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 258, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__input_names); if (unlikely(!__pyx_t_10)) __PYX_ERR(1, 258, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_10); + __pyx_t_9 = PyObject_GetItem(__pyx_t_10, __pyx_v_key); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 258, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_9); + __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; + if (unlikely(PyObject_SetItem(__pyx_t_9, __pyx_n_s_price_series, __pyx_t_5) < 0)) __PYX_ERR(1, 258, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + + /* "talib/_abstract.pxi":259 + * elif key in self.__input_names: + * self.__input_names[key]['price_series'] = kwargs[key] + * self.__info['input_names'][key] = kwargs[key] # <<<<<<<<<<<<<< + * + * if args: + */ + __pyx_t_5 = __Pyx_PyDict_GetItem(__pyx_v_kwargs, __pyx_v_key); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 259, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__info); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 259, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_9); + __pyx_t_10 = PyObject_GetItem(__pyx_t_9, __pyx_n_s_input_names); if (unlikely(!__pyx_t_10)) __PYX_ERR(1, 259, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_10); + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + if (unlikely(PyObject_SetItem(__pyx_t_10, __pyx_v_key, __pyx_t_5) < 0)) __PYX_ERR(1, 259, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + + /* "talib/_abstract.pxi":257 + * self.__opt_inputs[key]['value'] = kwargs[key] + * update_info = True + * elif key in self.__input_names: # <<<<<<<<<<<<<< + * self.__input_names[key]['price_series'] = kwargs[key] + * self.__info['input_names'][key] = kwargs[key] + */ + } + __pyx_L5:; + } + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + + /* "talib/_abstract.pxi":261 + * self.__info['input_names'][key] = kwargs[key] + * + * if args: # <<<<<<<<<<<<<< + * skip_first = 0 + * if self.set_input_arrays(args[0]): + */ + __pyx_t_7 = (__pyx_v_args != Py_None) && (PyTuple_GET_SIZE(__pyx_v_args) != 0); + if (__pyx_t_7) { + + /* "talib/_abstract.pxi":262 + * + * if args: + * skip_first = 0 # <<<<<<<<<<<<<< + * if self.set_input_arrays(args[0]): + * skip_first = 1 + */ + __Pyx_INCREF(__pyx_int_0); + __pyx_v_skip_first = __pyx_int_0; + + /* "talib/_abstract.pxi":263 + * if args: + * skip_first = 0 + * if self.set_input_arrays(args[0]): # <<<<<<<<<<<<<< + * skip_first = 1 + * if len(args) > skip_first: + */ + __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_set_input_arrays); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 263, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + __pyx_t_10 = __Pyx_GetItemInt_Tuple(__pyx_v_args, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_10)) __PYX_ERR(1, 263, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_10); + __pyx_t_9 = NULL; + if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_5))) { + __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_5); + if (likely(__pyx_t_9)) { + PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); + __Pyx_INCREF(__pyx_t_9); + __Pyx_INCREF(function); + __Pyx_DECREF_SET(__pyx_t_5, function); + } + } + if (!__pyx_t_9) { + __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_t_10); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 263, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; + __Pyx_GOTREF(__pyx_t_1); + } else { + __pyx_t_11 = PyTuple_New(1+1); if (unlikely(!__pyx_t_11)) __PYX_ERR(1, 263, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_11); + __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_11, 0, __pyx_t_9); __pyx_t_9 = NULL; + __Pyx_GIVEREF(__pyx_t_10); + PyTuple_SET_ITEM(__pyx_t_11, 0+1, __pyx_t_10); + __pyx_t_10 = 0; + __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_11, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 263, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; + } + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(1, 263, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + if (__pyx_t_7) { + + /* "talib/_abstract.pxi":264 + * skip_first = 0 + * if self.set_input_arrays(args[0]): + * skip_first = 1 # <<<<<<<<<<<<<< + * if len(args) > skip_first: + * for i, param_name in enumerate(self.__opt_inputs): + */ + __Pyx_INCREF(__pyx_int_1); + __Pyx_DECREF_SET(__pyx_v_skip_first, __pyx_int_1); + + /* "talib/_abstract.pxi":263 + * if args: + * skip_first = 0 + * if self.set_input_arrays(args[0]): # <<<<<<<<<<<<<< + * skip_first = 1 + * if len(args) > skip_first: + */ + } + + /* "talib/_abstract.pxi":265 + * if self.set_input_arrays(args[0]): + * skip_first = 1 + * if len(args) > skip_first: # <<<<<<<<<<<<<< + * for i, param_name in enumerate(self.__opt_inputs): + * i += skip_first + */ + __pyx_t_3 = PyTuple_GET_SIZE(__pyx_v_args); if (unlikely(__pyx_t_3 == -1)) __PYX_ERR(1, 265, __pyx_L1_error) + __pyx_t_1 = PyInt_FromSsize_t(__pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 265, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __pyx_t_5 = PyObject_RichCompare(__pyx_t_1, __pyx_v_skip_first, Py_GT); __Pyx_XGOTREF(__pyx_t_5); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 265, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(1, 265, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + if (__pyx_t_7) { + + /* "talib/_abstract.pxi":266 + * skip_first = 1 + * if len(args) > skip_first: + * for i, param_name in enumerate(self.__opt_inputs): # <<<<<<<<<<<<<< + * i += skip_first + * if i < len(args): + */ + __Pyx_INCREF(__pyx_int_0); + __pyx_t_5 = __pyx_int_0; + __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__opt_inputs); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 266, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + if (likely(PyList_CheckExact(__pyx_t_1)) || PyTuple_CheckExact(__pyx_t_1)) { + __pyx_t_11 = __pyx_t_1; __Pyx_INCREF(__pyx_t_11); __pyx_t_3 = 0; + __pyx_t_12 = NULL; + } else { + __pyx_t_3 = -1; __pyx_t_11 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_11)) __PYX_ERR(1, 266, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_11); + __pyx_t_12 = Py_TYPE(__pyx_t_11)->tp_iternext; if (unlikely(!__pyx_t_12)) __PYX_ERR(1, 266, __pyx_L1_error) + } + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + for (;;) { + if (likely(!__pyx_t_12)) { + if (likely(PyList_CheckExact(__pyx_t_11))) { + if (__pyx_t_3 >= PyList_GET_SIZE(__pyx_t_11)) break; + #if CYTHON_COMPILING_IN_CPYTHON + __pyx_t_1 = PyList_GET_ITEM(__pyx_t_11, __pyx_t_3); __Pyx_INCREF(__pyx_t_1); __pyx_t_3++; if (unlikely(0 < 0)) __PYX_ERR(1, 266, __pyx_L1_error) + #else + __pyx_t_1 = PySequence_ITEM(__pyx_t_11, __pyx_t_3); __pyx_t_3++; if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 266, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + #endif + } else { + if (__pyx_t_3 >= PyTuple_GET_SIZE(__pyx_t_11)) break; + #if CYTHON_COMPILING_IN_CPYTHON + __pyx_t_1 = PyTuple_GET_ITEM(__pyx_t_11, __pyx_t_3); __Pyx_INCREF(__pyx_t_1); __pyx_t_3++; if (unlikely(0 < 0)) __PYX_ERR(1, 266, __pyx_L1_error) + #else + __pyx_t_1 = PySequence_ITEM(__pyx_t_11, __pyx_t_3); __pyx_t_3++; if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 266, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + #endif + } + } else { + __pyx_t_1 = __pyx_t_12(__pyx_t_11); + if (unlikely(!__pyx_t_1)) { + PyObject* exc_type = PyErr_Occurred(); + if (exc_type) { + if (likely(exc_type == PyExc_StopIteration || PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); + else __PYX_ERR(1, 266, __pyx_L1_error) + } + break; + } + __Pyx_GOTREF(__pyx_t_1); + } + __Pyx_XDECREF_SET(__pyx_v_param_name, __pyx_t_1); + __pyx_t_1 = 0; + __Pyx_INCREF(__pyx_t_5); + __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_5); + __pyx_t_1 = __Pyx_PyInt_AddObjC(__pyx_t_5, __pyx_int_1, 1, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 266, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __Pyx_DECREF(__pyx_t_5); + __pyx_t_5 = __pyx_t_1; + __pyx_t_1 = 0; + + /* "talib/_abstract.pxi":267 + * if len(args) > skip_first: + * for i, param_name in enumerate(self.__opt_inputs): + * i += skip_first # <<<<<<<<<<<<<< + * if i < len(args): + * value = args[i] + */ + __pyx_t_1 = PyNumber_InPlaceAdd(__pyx_v_i, __pyx_v_skip_first); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 267, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __Pyx_DECREF_SET(__pyx_v_i, __pyx_t_1); + __pyx_t_1 = 0; + + /* "talib/_abstract.pxi":268 + * for i, param_name in enumerate(self.__opt_inputs): + * i += skip_first + * if i < len(args): # <<<<<<<<<<<<<< + * value = args[i] + * self.__opt_inputs[param_name]['value'] = value + */ + __pyx_t_2 = PyTuple_GET_SIZE(__pyx_v_args); if (unlikely(__pyx_t_2 == -1)) __PYX_ERR(1, 268, __pyx_L1_error) + __pyx_t_1 = PyInt_FromSsize_t(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 268, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __pyx_t_10 = PyObject_RichCompare(__pyx_v_i, __pyx_t_1, Py_LT); __Pyx_XGOTREF(__pyx_t_10); if (unlikely(!__pyx_t_10)) __PYX_ERR(1, 268, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_10); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(1, 268, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; + if (__pyx_t_7) { + + /* "talib/_abstract.pxi":269 + * i += skip_first + * if i < len(args): + * value = args[i] # <<<<<<<<<<<<<< + * self.__opt_inputs[param_name]['value'] = value + * update_info = True + */ + __pyx_t_10 = PyObject_GetItem(__pyx_v_args, __pyx_v_i); if (unlikely(!__pyx_t_10)) __PYX_ERR(1, 269, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_10); + __Pyx_XDECREF_SET(__pyx_v_value, __pyx_t_10); + __pyx_t_10 = 0; + + /* "talib/_abstract.pxi":270 + * if i < len(args): + * value = args[i] + * self.__opt_inputs[param_name]['value'] = value # <<<<<<<<<<<<<< + * update_info = True + * + */ + __pyx_t_10 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__opt_inputs); if (unlikely(!__pyx_t_10)) __PYX_ERR(1, 270, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_10); + __pyx_t_1 = PyObject_GetItem(__pyx_t_10, __pyx_v_param_name); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 270, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; + if (unlikely(PyObject_SetItem(__pyx_t_1, __pyx_n_s_value, __pyx_v_value) < 0)) __PYX_ERR(1, 270, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + + /* "talib/_abstract.pxi":271 + * value = args[i] + * self.__opt_inputs[param_name]['value'] = value + * update_info = True # <<<<<<<<<<<<<< + * + * if args or kwargs: + */ + __pyx_v_update_info = 1; + + /* "talib/_abstract.pxi":268 + * for i, param_name in enumerate(self.__opt_inputs): + * i += skip_first + * if i < len(args): # <<<<<<<<<<<<<< + * value = args[i] + * self.__opt_inputs[param_name]['value'] = value + */ + } + + /* "talib/_abstract.pxi":266 + * skip_first = 1 + * if len(args) > skip_first: + * for i, param_name in enumerate(self.__opt_inputs): # <<<<<<<<<<<<<< + * i += skip_first + * if i < len(args): + */ + } + __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + + /* "talib/_abstract.pxi":265 + * if self.set_input_arrays(args[0]): + * skip_first = 1 + * if len(args) > skip_first: # <<<<<<<<<<<<<< + * for i, param_name in enumerate(self.__opt_inputs): + * i += skip_first + */ + } + + /* "talib/_abstract.pxi":261 + * self.__info['input_names'][key] = kwargs[key] + * + * if args: # <<<<<<<<<<<<<< + * skip_first = 0 + * if self.set_input_arrays(args[0]): + */ + } + + /* "talib/_abstract.pxi":273 + * update_info = True + * + * if args or kwargs: # <<<<<<<<<<<<<< + * if update_info: + * self.__info['parameters'] = self.parameters + */ + __pyx_t_8 = (__pyx_v_args != Py_None) && (PyTuple_GET_SIZE(__pyx_v_args) != 0); + if (!__pyx_t_8) { + } else { + __pyx_t_7 = __pyx_t_8; + goto __pyx_L13_bool_binop_done; + } + __pyx_t_8 = __Pyx_PyObject_IsTrue(__pyx_v_kwargs); if (unlikely(__pyx_t_8 < 0)) __PYX_ERR(1, 273, __pyx_L1_error) + __pyx_t_7 = __pyx_t_8; + __pyx_L13_bool_binop_done:; + if (__pyx_t_7) { + + /* "talib/_abstract.pxi":274 + * + * if args or kwargs: + * if update_info: # <<<<<<<<<<<<<< + * self.__info['parameters'] = self.parameters + * self.__outputs_valid = False + */ + __pyx_t_7 = (__pyx_v_update_info != 0); + if (__pyx_t_7) { + + /* "talib/_abstract.pxi":275 + * if args or kwargs: + * if update_info: + * self.__info['parameters'] = self.parameters # <<<<<<<<<<<<<< + * self.__outputs_valid = False + * + */ + __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_parameters); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 275, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + __pyx_t_11 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__info); if (unlikely(!__pyx_t_11)) __PYX_ERR(1, 275, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_11); + if (unlikely(PyObject_SetItem(__pyx_t_11, __pyx_n_s_parameters, __pyx_t_5) < 0)) __PYX_ERR(1, 275, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + + /* "talib/_abstract.pxi":274 + * + * if args or kwargs: + * if update_info: # <<<<<<<<<<<<<< + * self.__info['parameters'] = self.parameters + * self.__outputs_valid = False + */ + } + + /* "talib/_abstract.pxi":276 + * if update_info: + * self.__info['parameters'] = self.parameters + * self.__outputs_valid = False # <<<<<<<<<<<<<< + * + * @property + */ + if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_Function__outputs_valid, Py_False) < 0) __PYX_ERR(1, 276, __pyx_L1_error) + + /* "talib/_abstract.pxi":273 + * update_info = True + * + * if args or kwargs: # <<<<<<<<<<<<<< + * if update_info: + * self.__info['parameters'] = self.parameters + */ + } + + /* "talib/_abstract.pxi":247 + * parameters = property(get_parameters, set_parameters) + * + * def set_function_args(self, *args, **kwargs): # <<<<<<<<<<<<<< + * """ + * optionl args:[input_arrays,] [parameter_args,] [input_price_series_kwargs,] [parameter_kwargs] + */ + + /* function exit code */ + __pyx_r = Py_None; __Pyx_INCREF(Py_None); + goto __pyx_L0; + __pyx_L1_error:; + __Pyx_XDECREF(__pyx_t_1); + __Pyx_XDECREF(__pyx_t_5); + __Pyx_XDECREF(__pyx_t_9); + __Pyx_XDECREF(__pyx_t_10); + __Pyx_XDECREF(__pyx_t_11); + __Pyx_AddTraceback("talib.c_ta_lib.Function.set_function_args", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF(__pyx_v_key); + __Pyx_XDECREF(__pyx_v_skip_first); + __Pyx_XDECREF(__pyx_v_i); + __Pyx_XDECREF(__pyx_v_param_name); + __Pyx_XDECREF(__pyx_v_value); + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "talib/_abstract.pxi":279 + * + * @property + * def lookback(self): # <<<<<<<<<<<<<< + * """ + * Returns the lookback window size for the function with the parameter + */ + +/* Python wrapper */ +static PyObject *__pyx_pw_5talib_8c_ta_lib_8Function_25lookback(PyObject *__pyx_self, PyObject *__pyx_v_self); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_8Function_24lookback[] = "\n Returns the lookback window size for the function with the parameter\n values that are currently set.\n "; +static PyMethodDef __pyx_mdef_5talib_8c_ta_lib_8Function_25lookback = {"lookback", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_8Function_25lookback, METH_O, __pyx_doc_5talib_8c_ta_lib_8Function_24lookback}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_8Function_25lookback(PyObject *__pyx_self, PyObject *__pyx_v_self) { + PyObject *__pyx_r = 0; + __Pyx_RefNannyDeclarations + __Pyx_RefNannySetupContext("lookback (wrapper)", 0); + __pyx_r = __pyx_pf_5talib_8c_ta_lib_8Function_24lookback(__pyx_self, ((PyObject *)__pyx_v_self)); + + /* function exit code */ + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +static PyObject *__pyx_pf_5talib_8c_ta_lib_8Function_24lookback(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self) { + TA_ParamHolder *__pyx_v_holder; + PyObject *__pyx_v_i = NULL; + PyObject *__pyx_v_opt_input = NULL; + PyObject *__pyx_v_value = NULL; + PyObject *__pyx_v_type_ = NULL; + int __pyx_v_lookback; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + PyObject *__pyx_t_1 = NULL; + char *__pyx_t_2; + PyObject *__pyx_t_3 = NULL; + PyObject *__pyx_t_4 = NULL; + Py_ssize_t __pyx_t_5; + PyObject *(*__pyx_t_6)(PyObject *); + PyObject *__pyx_t_7 = NULL; + PyObject *__pyx_t_8 = NULL; + PyObject *__pyx_t_9 = NULL; + int __pyx_t_10; + int __pyx_t_11; + int __pyx_t_12; + int __pyx_t_13; + __Pyx_RefNannySetupContext("lookback", 0); + + /* "talib/_abstract.pxi":285 + * """ + * cdef lib.TA_ParamHolder *holder + * holder = __ta_paramHolderAlloc(self.__name) # <<<<<<<<<<<<<< + * for i, opt_input in enumerate(self.__opt_inputs): + * value = self.__get_opt_input_value(opt_input) + */ + __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__name); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 285, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __pyx_t_2 = __Pyx_PyObject_AsString(__pyx_t_1); if (unlikely((!__pyx_t_2) && PyErr_Occurred())) __PYX_ERR(1, 285, __pyx_L1_error) + __pyx_v_holder = __pyx_f_5talib_8c_ta_lib___ta_paramHolderAlloc(__pyx_t_2); + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + + /* "talib/_abstract.pxi":286 + * cdef lib.TA_ParamHolder *holder + * holder = __ta_paramHolderAlloc(self.__name) + * for i, opt_input in enumerate(self.__opt_inputs): # <<<<<<<<<<<<<< + * value = self.__get_opt_input_value(opt_input) + * type_ = self.__opt_inputs[opt_input]['type'] + */ + __Pyx_INCREF(__pyx_int_0); + __pyx_t_1 = __pyx_int_0; + __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__opt_inputs); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 286, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + if (likely(PyList_CheckExact(__pyx_t_3)) || PyTuple_CheckExact(__pyx_t_3)) { + __pyx_t_4 = __pyx_t_3; __Pyx_INCREF(__pyx_t_4); __pyx_t_5 = 0; + __pyx_t_6 = NULL; + } else { + __pyx_t_5 = -1; __pyx_t_4 = PyObject_GetIter(__pyx_t_3); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 286, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + __pyx_t_6 = Py_TYPE(__pyx_t_4)->tp_iternext; if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 286, __pyx_L1_error) + } + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + for (;;) { + if (likely(!__pyx_t_6)) { + if (likely(PyList_CheckExact(__pyx_t_4))) { + if (__pyx_t_5 >= PyList_GET_SIZE(__pyx_t_4)) break; + #if CYTHON_COMPILING_IN_CPYTHON + __pyx_t_3 = PyList_GET_ITEM(__pyx_t_4, __pyx_t_5); __Pyx_INCREF(__pyx_t_3); __pyx_t_5++; if (unlikely(0 < 0)) __PYX_ERR(1, 286, __pyx_L1_error) + #else + __pyx_t_3 = PySequence_ITEM(__pyx_t_4, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 286, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + #endif + } else { + if (__pyx_t_5 >= PyTuple_GET_SIZE(__pyx_t_4)) break; + #if CYTHON_COMPILING_IN_CPYTHON + __pyx_t_3 = PyTuple_GET_ITEM(__pyx_t_4, __pyx_t_5); __Pyx_INCREF(__pyx_t_3); __pyx_t_5++; if (unlikely(0 < 0)) __PYX_ERR(1, 286, __pyx_L1_error) + #else + __pyx_t_3 = PySequence_ITEM(__pyx_t_4, __pyx_t_5); __pyx_t_5++; if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 286, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + #endif + } + } else { + __pyx_t_3 = __pyx_t_6(__pyx_t_4); + if (unlikely(!__pyx_t_3)) { + PyObject* exc_type = PyErr_Occurred(); + if (exc_type) { + if (likely(exc_type == PyExc_StopIteration || PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); + else __PYX_ERR(1, 286, __pyx_L1_error) + } + break; + } + __Pyx_GOTREF(__pyx_t_3); + } + __Pyx_XDECREF_SET(__pyx_v_opt_input, __pyx_t_3); + __pyx_t_3 = 0; + __Pyx_INCREF(__pyx_t_1); + __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_1); + __pyx_t_3 = __Pyx_PyInt_AddObjC(__pyx_t_1, __pyx_int_1, 1, 0); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 286, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + __Pyx_DECREF(__pyx_t_1); + __pyx_t_1 = __pyx_t_3; + __pyx_t_3 = 0; + + /* "talib/_abstract.pxi":287 + * holder = __ta_paramHolderAlloc(self.__name) + * for i, opt_input in enumerate(self.__opt_inputs): + * value = self.__get_opt_input_value(opt_input) # <<<<<<<<<<<<<< + * type_ = self.__opt_inputs[opt_input]['type'] + * if type_ == lib.TA_OptInput_RealRange or type_ == lib.TA_OptInput_RealList: + */ + __pyx_t_7 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__get_opt_input_value); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 287, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_7); + __pyx_t_8 = NULL; + if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_7))) { + __pyx_t_8 = PyMethod_GET_SELF(__pyx_t_7); + if (likely(__pyx_t_8)) { + PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_7); + __Pyx_INCREF(__pyx_t_8); + __Pyx_INCREF(function); + __Pyx_DECREF_SET(__pyx_t_7, function); + } + } + if (!__pyx_t_8) { + __pyx_t_3 = __Pyx_PyObject_CallOneArg(__pyx_t_7, __pyx_v_opt_input); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 287, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + } else { + __pyx_t_9 = PyTuple_New(1+1); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 287, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_9); + __Pyx_GIVEREF(__pyx_t_8); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_8); __pyx_t_8 = NULL; + __Pyx_INCREF(__pyx_v_opt_input); + __Pyx_GIVEREF(__pyx_v_opt_input); + PyTuple_SET_ITEM(__pyx_t_9, 0+1, __pyx_v_opt_input); + __pyx_t_3 = __Pyx_PyObject_Call(__pyx_t_7, __pyx_t_9, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 287, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + } + __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + __Pyx_XDECREF_SET(__pyx_v_value, __pyx_t_3); + __pyx_t_3 = 0; + + /* "talib/_abstract.pxi":288 + * for i, opt_input in enumerate(self.__opt_inputs): + * value = self.__get_opt_input_value(opt_input) + * type_ = self.__opt_inputs[opt_input]['type'] # <<<<<<<<<<<<<< + * if type_ == lib.TA_OptInput_RealRange or type_ == lib.TA_OptInput_RealList: + * __ta_setOptInputParamReal(holder, i, value) + */ + __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__opt_inputs); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 288, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + __pyx_t_7 = PyObject_GetItem(__pyx_t_3, __pyx_v_opt_input); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 288, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_7); + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + __pyx_t_3 = PyObject_GetItem(__pyx_t_7, __pyx_n_s_type_2); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 288, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + __Pyx_XDECREF_SET(__pyx_v_type_, __pyx_t_3); + __pyx_t_3 = 0; + + /* "talib/_abstract.pxi":289 + * value = self.__get_opt_input_value(opt_input) + * type_ = self.__opt_inputs[opt_input]['type'] + * if type_ == lib.TA_OptInput_RealRange or type_ == lib.TA_OptInput_RealList: # <<<<<<<<<<<<<< + * __ta_setOptInputParamReal(holder, i, value) + * elif type_ == lib.TA_OptInput_IntegerRange or type_ == lib.TA_OptInput_IntegerList: + */ + __pyx_t_3 = __Pyx_PyInt_From_TA_OptInputParameterType(TA_OptInput_RealRange); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 289, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + __pyx_t_7 = PyObject_RichCompare(__pyx_v_type_, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_7); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 289, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + __pyx_t_11 = __Pyx_PyObject_IsTrue(__pyx_t_7); if (unlikely(__pyx_t_11 < 0)) __PYX_ERR(1, 289, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + if (!__pyx_t_11) { + } else { + __pyx_t_10 = __pyx_t_11; + goto __pyx_L6_bool_binop_done; + } + __pyx_t_7 = __Pyx_PyInt_From_TA_OptInputParameterType(TA_OptInput_RealList); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 289, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_7); + __pyx_t_3 = PyObject_RichCompare(__pyx_v_type_, __pyx_t_7, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 289, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + __pyx_t_11 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_11 < 0)) __PYX_ERR(1, 289, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + __pyx_t_10 = __pyx_t_11; + __pyx_L6_bool_binop_done:; + if (__pyx_t_10) { + + /* "talib/_abstract.pxi":290 + * type_ = self.__opt_inputs[opt_input]['type'] + * if type_ == lib.TA_OptInput_RealRange or type_ == lib.TA_OptInput_RealList: + * __ta_setOptInputParamReal(holder, i, value) # <<<<<<<<<<<<<< + * elif type_ == lib.TA_OptInput_IntegerRange or type_ == lib.TA_OptInput_IntegerList: + * __ta_setOptInputParamInteger(holder, i, value) + */ + __pyx_t_12 = __Pyx_PyInt_As_int(__pyx_v_i); if (unlikely((__pyx_t_12 == (int)-1) && PyErr_Occurred())) __PYX_ERR(1, 290, __pyx_L1_error) + __pyx_t_13 = __Pyx_PyInt_As_int(__pyx_v_value); if (unlikely((__pyx_t_13 == (int)-1) && PyErr_Occurred())) __PYX_ERR(1, 290, __pyx_L1_error) + __pyx_f_5talib_8c_ta_lib___ta_setOptInputParamReal(__pyx_v_holder, __pyx_t_12, __pyx_t_13); + + /* "talib/_abstract.pxi":289 + * value = self.__get_opt_input_value(opt_input) + * type_ = self.__opt_inputs[opt_input]['type'] + * if type_ == lib.TA_OptInput_RealRange or type_ == lib.TA_OptInput_RealList: # <<<<<<<<<<<<<< + * __ta_setOptInputParamReal(holder, i, value) + * elif type_ == lib.TA_OptInput_IntegerRange or type_ == lib.TA_OptInput_IntegerList: + */ + goto __pyx_L5; + } + + /* "talib/_abstract.pxi":291 + * if type_ == lib.TA_OptInput_RealRange or type_ == lib.TA_OptInput_RealList: + * __ta_setOptInputParamReal(holder, i, value) + * elif type_ == lib.TA_OptInput_IntegerRange or type_ == lib.TA_OptInput_IntegerList: # <<<<<<<<<<<<<< + * __ta_setOptInputParamInteger(holder, i, value) + * + */ + __pyx_t_3 = __Pyx_PyInt_From_TA_OptInputParameterType(TA_OptInput_IntegerRange); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 291, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + __pyx_t_7 = PyObject_RichCompare(__pyx_v_type_, __pyx_t_3, Py_EQ); __Pyx_XGOTREF(__pyx_t_7); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 291, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + __pyx_t_11 = __Pyx_PyObject_IsTrue(__pyx_t_7); if (unlikely(__pyx_t_11 < 0)) __PYX_ERR(1, 291, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + if (!__pyx_t_11) { + } else { + __pyx_t_10 = __pyx_t_11; + goto __pyx_L8_bool_binop_done; + } + __pyx_t_7 = __Pyx_PyInt_From_TA_OptInputParameterType(TA_OptInput_IntegerList); if (unlikely(!__pyx_t_7)) __PYX_ERR(1, 291, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_7); + __pyx_t_3 = PyObject_RichCompare(__pyx_v_type_, __pyx_t_7, Py_EQ); __Pyx_XGOTREF(__pyx_t_3); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 291, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + __pyx_t_11 = __Pyx_PyObject_IsTrue(__pyx_t_3); if (unlikely(__pyx_t_11 < 0)) __PYX_ERR(1, 291, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + __pyx_t_10 = __pyx_t_11; + __pyx_L8_bool_binop_done:; + if (__pyx_t_10) { + + /* "talib/_abstract.pxi":292 + * __ta_setOptInputParamReal(holder, i, value) + * elif type_ == lib.TA_OptInput_IntegerRange or type_ == lib.TA_OptInput_IntegerList: + * __ta_setOptInputParamInteger(holder, i, value) # <<<<<<<<<<<<<< + * + * lookback = __ta_getLookback(holder) + */ + __pyx_t_13 = __Pyx_PyInt_As_int(__pyx_v_i); if (unlikely((__pyx_t_13 == (int)-1) && PyErr_Occurred())) __PYX_ERR(1, 292, __pyx_L1_error) + __pyx_t_12 = __Pyx_PyInt_As_int(__pyx_v_value); if (unlikely((__pyx_t_12 == (int)-1) && PyErr_Occurred())) __PYX_ERR(1, 292, __pyx_L1_error) + __pyx_f_5talib_8c_ta_lib___ta_setOptInputParamInteger(__pyx_v_holder, __pyx_t_13, __pyx_t_12); + + /* "talib/_abstract.pxi":291 + * if type_ == lib.TA_OptInput_RealRange or type_ == lib.TA_OptInput_RealList: + * __ta_setOptInputParamReal(holder, i, value) + * elif type_ == lib.TA_OptInput_IntegerRange or type_ == lib.TA_OptInput_IntegerList: # <<<<<<<<<<<<<< + * __ta_setOptInputParamInteger(holder, i, value) + * + */ + } + __pyx_L5:; + + /* "talib/_abstract.pxi":286 + * cdef lib.TA_ParamHolder *holder + * holder = __ta_paramHolderAlloc(self.__name) + * for i, opt_input in enumerate(self.__opt_inputs): # <<<<<<<<<<<<<< + * value = self.__get_opt_input_value(opt_input) + * type_ = self.__opt_inputs[opt_input]['type'] + */ + } + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + + /* "talib/_abstract.pxi":294 + * __ta_setOptInputParamInteger(holder, i, value) + * + * lookback = __ta_getLookback(holder) # <<<<<<<<<<<<<< + * __ta_paramHolderFree(holder) + * return lookback + */ + __pyx_v_lookback = __pyx_f_5talib_8c_ta_lib___ta_getLookback(__pyx_v_holder); + + /* "talib/_abstract.pxi":295 + * + * lookback = __ta_getLookback(holder) + * __ta_paramHolderFree(holder) # <<<<<<<<<<<<<< + * return lookback + * + */ + __pyx_f_5talib_8c_ta_lib___ta_paramHolderFree(__pyx_v_holder); + + /* "talib/_abstract.pxi":296 + * lookback = __ta_getLookback(holder) + * __ta_paramHolderFree(holder) + * return lookback # <<<<<<<<<<<<<< + * + * @property + */ + __Pyx_XDECREF(__pyx_r); + __pyx_t_1 = __Pyx_PyInt_From_int(__pyx_v_lookback); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 296, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __pyx_r = __pyx_t_1; + __pyx_t_1 = 0; + goto __pyx_L0; + + /* "talib/_abstract.pxi":279 + * + * @property + * def lookback(self): # <<<<<<<<<<<<<< + * """ + * Returns the lookback window size for the function with the parameter + */ + + /* function exit code */ + __pyx_L1_error:; + __Pyx_XDECREF(__pyx_t_1); + __Pyx_XDECREF(__pyx_t_3); + __Pyx_XDECREF(__pyx_t_4); + __Pyx_XDECREF(__pyx_t_7); + __Pyx_XDECREF(__pyx_t_8); + __Pyx_XDECREF(__pyx_t_9); + __Pyx_AddTraceback("talib.c_ta_lib.Function.lookback", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF(__pyx_v_i); + __Pyx_XDECREF(__pyx_v_opt_input); + __Pyx_XDECREF(__pyx_v_value); + __Pyx_XDECREF(__pyx_v_type_); + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "talib/_abstract.pxi":299 + * + * @property + * def output_names(self): # <<<<<<<<<<<<<< + * """ + * Returns a list of the output names returned by this function. + */ + +/* Python wrapper */ +static PyObject *__pyx_pw_5talib_8c_ta_lib_8Function_27output_names(PyObject *__pyx_self, PyObject *__pyx_v_self); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_8Function_26output_names[] = "\n Returns a list of the output names returned by this function.\n "; +static PyMethodDef __pyx_mdef_5talib_8c_ta_lib_8Function_27output_names = {"output_names", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_8Function_27output_names, METH_O, __pyx_doc_5talib_8c_ta_lib_8Function_26output_names}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_8Function_27output_names(PyObject *__pyx_self, PyObject *__pyx_v_self) { + PyObject *__pyx_r = 0; + __Pyx_RefNannyDeclarations + __Pyx_RefNannySetupContext("output_names (wrapper)", 0); + __pyx_r = __pyx_pf_5talib_8c_ta_lib_8Function_26output_names(__pyx_self, ((PyObject *)__pyx_v_self)); + + /* function exit code */ + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +static PyObject *__pyx_pf_5talib_8c_ta_lib_8Function_26output_names(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self) { + PyObject *__pyx_v_ret = NULL; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + PyObject *__pyx_t_1 = NULL; + PyObject *__pyx_t_2 = NULL; + PyObject *__pyx_t_3 = NULL; + int __pyx_t_4; + int __pyx_t_5; + __Pyx_RefNannySetupContext("output_names", 0); + + /* "talib/_abstract.pxi":303 + * Returns a list of the output names returned by this function. + * """ + * ret = self.__outputs.keys() # <<<<<<<<<<<<<< + * if not isinstance(ret, list): + * ret = list(ret) + */ + __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__outputs); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 303, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_keys); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 303, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __pyx_t_2 = NULL; + if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_3))) { + __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_3); + if (likely(__pyx_t_2)) { + PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); + __Pyx_INCREF(__pyx_t_2); + __Pyx_INCREF(function); + __Pyx_DECREF_SET(__pyx_t_3, function); + } + } + if (__pyx_t_2) { + __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 303, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + } else { + __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 303, __pyx_L1_error) + } + __Pyx_GOTREF(__pyx_t_1); + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + __pyx_v_ret = __pyx_t_1; + __pyx_t_1 = 0; + + /* "talib/_abstract.pxi":304 + * """ + * ret = self.__outputs.keys() + * if not isinstance(ret, list): # <<<<<<<<<<<<<< + * ret = list(ret) + * return ret + */ + __pyx_t_4 = PyList_Check(__pyx_v_ret); + __pyx_t_5 = ((!(__pyx_t_4 != 0)) != 0); + if (__pyx_t_5) { + + /* "talib/_abstract.pxi":305 + * ret = self.__outputs.keys() + * if not isinstance(ret, list): + * ret = list(ret) # <<<<<<<<<<<<<< + * return ret + * + */ + __pyx_t_1 = PySequence_List(__pyx_v_ret); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 305, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __Pyx_DECREF_SET(__pyx_v_ret, __pyx_t_1); + __pyx_t_1 = 0; + + /* "talib/_abstract.pxi":304 + * """ + * ret = self.__outputs.keys() + * if not isinstance(ret, list): # <<<<<<<<<<<<<< + * ret = list(ret) + * return ret + */ + } + + /* "talib/_abstract.pxi":306 + * if not isinstance(ret, list): + * ret = list(ret) + * return ret # <<<<<<<<<<<<<< + * + * @property + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(__pyx_v_ret); + __pyx_r = __pyx_v_ret; + goto __pyx_L0; + + /* "talib/_abstract.pxi":299 + * + * @property + * def output_names(self): # <<<<<<<<<<<<<< + * """ + * Returns a list of the output names returned by this function. + */ + + /* function exit code */ + __pyx_L1_error:; + __Pyx_XDECREF(__pyx_t_1); + __Pyx_XDECREF(__pyx_t_2); + __Pyx_XDECREF(__pyx_t_3); + __Pyx_AddTraceback("talib.c_ta_lib.Function.output_names", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF(__pyx_v_ret); + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "talib/_abstract.pxi":309 + * + * @property + * def outputs(self): # <<<<<<<<<<<<<< + * """ + * Returns the TA function values for the currently set input_arrays and + */ + +/* Python wrapper */ +static PyObject *__pyx_pw_5talib_8c_ta_lib_8Function_29outputs(PyObject *__pyx_self, PyObject *__pyx_v_self); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_8Function_28outputs[] = "\n Returns the TA function values for the currently set input_arrays and\n parameters. Returned values are a ndarray if there is only one output\n or a list of ndarrays for more than one output.\n "; +static PyMethodDef __pyx_mdef_5talib_8c_ta_lib_8Function_29outputs = {"outputs", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_8Function_29outputs, METH_O, __pyx_doc_5talib_8c_ta_lib_8Function_28outputs}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_8Function_29outputs(PyObject *__pyx_self, PyObject *__pyx_v_self) { + PyObject *__pyx_r = 0; + __Pyx_RefNannyDeclarations + __Pyx_RefNannySetupContext("outputs (wrapper)", 0); + __pyx_r = __pyx_pf_5talib_8c_ta_lib_8Function_28outputs(__pyx_self, ((PyObject *)__pyx_v_self)); + + /* function exit code */ + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +static PyObject *__pyx_pf_5talib_8c_ta_lib_8Function_28outputs(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self) { + PyObject *__pyx_v_ret = NULL; + PyObject *__pyx_v_index = NULL; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + PyObject *__pyx_t_1 = NULL; + int __pyx_t_2; + int __pyx_t_3; + PyObject *__pyx_t_4 = NULL; + PyObject *__pyx_t_5 = NULL; + int __pyx_t_6; + Py_ssize_t __pyx_t_7; + PyObject *__pyx_t_8 = NULL; + PyObject *__pyx_t_9 = NULL; + __Pyx_RefNannySetupContext("outputs", 0); + + /* "talib/_abstract.pxi":315 + * or a list of ndarrays for more than one output. + * """ + * if not self.__outputs_valid: # <<<<<<<<<<<<<< + * self.__call_function() + * ret = self.__outputs.values() + */ + __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__outputs_valid); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 315, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_1); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(1, 315, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + __pyx_t_3 = ((!__pyx_t_2) != 0); + if (__pyx_t_3) { + + /* "talib/_abstract.pxi":316 + * """ + * if not self.__outputs_valid: + * self.__call_function() # <<<<<<<<<<<<<< + * ret = self.__outputs.values() + * if not isinstance(ret, list): + */ + __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__call_function); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 316, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + __pyx_t_5 = NULL; + if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_4))) { + __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_4); + if (likely(__pyx_t_5)) { + PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_4); + __Pyx_INCREF(__pyx_t_5); + __Pyx_INCREF(function); + __Pyx_DECREF_SET(__pyx_t_4, function); + } + } + if (__pyx_t_5) { + __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_4, __pyx_t_5); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 316, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + } else { + __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 316, __pyx_L1_error) + } + __Pyx_GOTREF(__pyx_t_1); + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + + /* "talib/_abstract.pxi":315 + * or a list of ndarrays for more than one output. + * """ + * if not self.__outputs_valid: # <<<<<<<<<<<<<< + * self.__call_function() + * ret = self.__outputs.values() + */ + } + + /* "talib/_abstract.pxi":317 + * if not self.__outputs_valid: + * self.__call_function() + * ret = self.__outputs.values() # <<<<<<<<<<<<<< + * if not isinstance(ret, list): + * ret = list(ret) + */ + __pyx_t_4 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__outputs); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 317, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_values); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 317, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + __pyx_t_4 = NULL; + if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_5))) { + __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_5); + if (likely(__pyx_t_4)) { + PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); + __Pyx_INCREF(__pyx_t_4); + __Pyx_INCREF(function); + __Pyx_DECREF_SET(__pyx_t_5, function); + } + } + if (__pyx_t_4) { + __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_t_4); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 317, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + } else { + __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_5); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 317, __pyx_L1_error) + } + __Pyx_GOTREF(__pyx_t_1); + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + __pyx_v_ret = __pyx_t_1; + __pyx_t_1 = 0; + + /* "talib/_abstract.pxi":318 + * self.__call_function() + * ret = self.__outputs.values() + * if not isinstance(ret, list): # <<<<<<<<<<<<<< + * ret = list(ret) + * if __PANDAS_DATAFRAME is not None and \ + */ + __pyx_t_3 = PyList_Check(__pyx_v_ret); + __pyx_t_2 = ((!(__pyx_t_3 != 0)) != 0); + if (__pyx_t_2) { + + /* "talib/_abstract.pxi":319 + * ret = self.__outputs.values() + * if not isinstance(ret, list): + * ret = list(ret) # <<<<<<<<<<<<<< + * if __PANDAS_DATAFRAME is not None and \ + * isinstance(self.__input_arrays, __PANDAS_DATAFRAME): + */ + __pyx_t_1 = PySequence_List(__pyx_v_ret); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 319, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __Pyx_DECREF_SET(__pyx_v_ret, __pyx_t_1); + __pyx_t_1 = 0; + + /* "talib/_abstract.pxi":318 + * self.__call_function() + * ret = self.__outputs.values() + * if not isinstance(ret, list): # <<<<<<<<<<<<<< + * ret = list(ret) + * if __PANDAS_DATAFRAME is not None and \ + */ + } + + /* "talib/_abstract.pxi":320 + * if not isinstance(ret, list): + * ret = list(ret) + * if __PANDAS_DATAFRAME is not None and \ # <<<<<<<<<<<<<< + * isinstance(self.__input_arrays, __PANDAS_DATAFRAME): + * index = self.__input_arrays.index + */ + __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_PANDAS_DATAFRAME); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 320, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __pyx_t_3 = (__pyx_t_1 != Py_None); + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + __pyx_t_6 = (__pyx_t_3 != 0); + if (__pyx_t_6) { + } else { + __pyx_t_2 = __pyx_t_6; + goto __pyx_L6_bool_binop_done; + } + + /* "talib/_abstract.pxi":321 + * ret = list(ret) + * if __PANDAS_DATAFRAME is not None and \ + * isinstance(self.__input_arrays, __PANDAS_DATAFRAME): # <<<<<<<<<<<<<< + * index = self.__input_arrays.index + * if len(ret) == 1: + */ + __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__input_arrays); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 321, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __pyx_t_5 = __Pyx_GetModuleGlobalName(__pyx_n_s_PANDAS_DATAFRAME); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 321, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + __pyx_t_6 = PyObject_IsInstance(__pyx_t_1, __pyx_t_5); if (unlikely(__pyx_t_6 == -1)) __PYX_ERR(1, 321, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + __pyx_t_3 = (__pyx_t_6 != 0); + __pyx_t_2 = __pyx_t_3; + __pyx_L6_bool_binop_done:; + + /* "talib/_abstract.pxi":320 + * if not isinstance(ret, list): + * ret = list(ret) + * if __PANDAS_DATAFRAME is not None and \ # <<<<<<<<<<<<<< + * isinstance(self.__input_arrays, __PANDAS_DATAFRAME): + * index = self.__input_arrays.index + */ + if (__pyx_t_2) { + + /* "talib/_abstract.pxi":322 + * if __PANDAS_DATAFRAME is not None and \ + * isinstance(self.__input_arrays, __PANDAS_DATAFRAME): + * index = self.__input_arrays.index # <<<<<<<<<<<<<< + * if len(ret) == 1: + * return __PANDAS_SERIES(ret[0], index=index) + */ + __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__input_arrays); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 322, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_5, __pyx_n_s_index); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 322, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + __pyx_v_index = __pyx_t_1; + __pyx_t_1 = 0; + + /* "talib/_abstract.pxi":323 + * isinstance(self.__input_arrays, __PANDAS_DATAFRAME): + * index = self.__input_arrays.index + * if len(ret) == 1: # <<<<<<<<<<<<<< + * return __PANDAS_SERIES(ret[0], index=index) + * else: + */ + __pyx_t_7 = PyObject_Length(__pyx_v_ret); if (unlikely(__pyx_t_7 == -1)) __PYX_ERR(1, 323, __pyx_L1_error) + __pyx_t_2 = ((__pyx_t_7 == 1) != 0); + if (__pyx_t_2) { + + /* "talib/_abstract.pxi":324 + * index = self.__input_arrays.index + * if len(ret) == 1: + * return __PANDAS_SERIES(ret[0], index=index) # <<<<<<<<<<<<<< + * else: + * return __PANDAS_DATAFRAME(numpy.column_stack(ret), + */ + __Pyx_XDECREF(__pyx_r); + __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_PANDAS_SERIES); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 324, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __pyx_t_5 = __Pyx_GetItemInt(__pyx_v_ret, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 324, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 324, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + __Pyx_GIVEREF(__pyx_t_5); + PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_5); + __pyx_t_5 = 0; + __pyx_t_5 = PyDict_New(); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 324, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_index, __pyx_v_index) < 0) __PYX_ERR(1, 324, __pyx_L1_error) + __pyx_t_8 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_4, __pyx_t_5); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 324, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_8); + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + __pyx_r = __pyx_t_8; + __pyx_t_8 = 0; + goto __pyx_L0; + + /* "talib/_abstract.pxi":323 + * isinstance(self.__input_arrays, __PANDAS_DATAFRAME): + * index = self.__input_arrays.index + * if len(ret) == 1: # <<<<<<<<<<<<<< + * return __PANDAS_SERIES(ret[0], index=index) + * else: + */ + } + + /* "talib/_abstract.pxi":326 + * return __PANDAS_SERIES(ret[0], index=index) + * else: + * return __PANDAS_DATAFRAME(numpy.column_stack(ret), # <<<<<<<<<<<<<< + * index=index, + * columns=self.output_names) + */ + /*else*/ { + __Pyx_XDECREF(__pyx_r); + __pyx_t_8 = __Pyx_GetModuleGlobalName(__pyx_n_s_PANDAS_DATAFRAME); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 326, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_8); + __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_numpy); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 326, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_column_stack); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 326, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + __pyx_t_4 = NULL; + if (CYTHON_COMPILING_IN_CPYTHON && unlikely(PyMethod_Check(__pyx_t_1))) { + __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_1); + if (likely(__pyx_t_4)) { + PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); + __Pyx_INCREF(__pyx_t_4); + __Pyx_INCREF(function); + __Pyx_DECREF_SET(__pyx_t_1, function); + } + } + if (!__pyx_t_4) { + __pyx_t_5 = __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_v_ret); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 326, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + } else { + __pyx_t_9 = PyTuple_New(1+1); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 326, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_9); + __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_9, 0, __pyx_t_4); __pyx_t_4 = NULL; + __Pyx_INCREF(__pyx_v_ret); + __Pyx_GIVEREF(__pyx_v_ret); + PyTuple_SET_ITEM(__pyx_t_9, 0+1, __pyx_v_ret); + __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_t_9, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 326, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + } + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 326, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __Pyx_GIVEREF(__pyx_t_5); + PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_t_5); + __pyx_t_5 = 0; + + /* "talib/_abstract.pxi":327 + * else: + * return __PANDAS_DATAFRAME(numpy.column_stack(ret), + * index=index, # <<<<<<<<<<<<<< + * columns=self.output_names) + * else: + */ + __pyx_t_5 = PyDict_New(); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 327, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_index, __pyx_v_index) < 0) __PYX_ERR(1, 327, __pyx_L1_error) + + /* "talib/_abstract.pxi":328 + * return __PANDAS_DATAFRAME(numpy.column_stack(ret), + * index=index, + * columns=self.output_names) # <<<<<<<<<<<<<< + * else: + * return ret[0] if len(ret) == 1 else ret + */ + __pyx_t_9 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_output_names); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 328, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_9); + if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_columns, __pyx_t_9) < 0) __PYX_ERR(1, 327, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + + /* "talib/_abstract.pxi":326 + * return __PANDAS_SERIES(ret[0], index=index) + * else: + * return __PANDAS_DATAFRAME(numpy.column_stack(ret), # <<<<<<<<<<<<<< + * index=index, + * columns=self.output_names) + */ + __pyx_t_9 = __Pyx_PyObject_Call(__pyx_t_8, __pyx_t_1, __pyx_t_5); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 326, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_9); + __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + __pyx_r = __pyx_t_9; + __pyx_t_9 = 0; + goto __pyx_L0; + } + + /* "talib/_abstract.pxi":320 + * if not isinstance(ret, list): + * ret = list(ret) + * if __PANDAS_DATAFRAME is not None and \ # <<<<<<<<<<<<<< + * isinstance(self.__input_arrays, __PANDAS_DATAFRAME): + * index = self.__input_arrays.index + */ + } + + /* "talib/_abstract.pxi":330 + * columns=self.output_names) + * else: + * return ret[0] if len(ret) == 1 else ret # <<<<<<<<<<<<<< + * + * def run(self, input_arrays=None): + */ + /*else*/ { + __Pyx_XDECREF(__pyx_r); + __pyx_t_7 = PyObject_Length(__pyx_v_ret); if (unlikely(__pyx_t_7 == -1)) __PYX_ERR(1, 330, __pyx_L1_error) + if (((__pyx_t_7 == 1) != 0)) { + __pyx_t_5 = __Pyx_GetItemInt(__pyx_v_ret, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 330, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + __pyx_t_9 = __pyx_t_5; + __pyx_t_5 = 0; + } else { + __Pyx_INCREF(__pyx_v_ret); + __pyx_t_9 = __pyx_v_ret; + } + __pyx_r = __pyx_t_9; + __pyx_t_9 = 0; + goto __pyx_L0; + } + + /* "talib/_abstract.pxi":309 + * + * @property + * def outputs(self): # <<<<<<<<<<<<<< + * """ + * Returns the TA function values for the currently set input_arrays and + */ + + /* function exit code */ + __pyx_L1_error:; + __Pyx_XDECREF(__pyx_t_1); + __Pyx_XDECREF(__pyx_t_4); + __Pyx_XDECREF(__pyx_t_5); + __Pyx_XDECREF(__pyx_t_8); + __Pyx_XDECREF(__pyx_t_9); + __Pyx_AddTraceback("talib.c_ta_lib.Function.outputs", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF(__pyx_v_ret); + __Pyx_XDECREF(__pyx_v_index); + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "talib/_abstract.pxi":332 + * return ret[0] if len(ret) == 1 else ret + * + * def run(self, input_arrays=None): # <<<<<<<<<<<<<< + * """ + * run([input_arrays=None]) + */ + +/* Python wrapper */ +static PyObject *__pyx_pw_5talib_8c_ta_lib_8Function_31run(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_8Function_30run[] = "\n run([input_arrays=None])\n\n This is a shortcut to the outputs property that also allows setting\n the input_arrays dict.\n "; +static PyMethodDef __pyx_mdef_5talib_8c_ta_lib_8Function_31run = {"run", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_8Function_31run, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_8Function_30run}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_8Function_31run(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { + PyObject *__pyx_v_self = 0; + PyObject *__pyx_v_input_arrays = 0; + PyObject *__pyx_r = 0; + __Pyx_RefNannyDeclarations + __Pyx_RefNannySetupContext("run (wrapper)", 0); + { + static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_self,&__pyx_n_s_input_arrays,0}; + PyObject* values[2] = {0,0}; + values[1] = ((PyObject *)((PyObject *)Py_None)); + 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_self)) != 0)) kw_args--; + else goto __pyx_L5_argtuple_error; + case 1: + if (kw_args > 0) { + PyObject* value = PyDict_GetItem(__pyx_kwds, __pyx_n_s_input_arrays); + if (value) { values[1] = value; kw_args--; } + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "run") < 0)) __PYX_ERR(1, 332, __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_self = values[0]; + __pyx_v_input_arrays = values[1]; + } + goto __pyx_L4_argument_unpacking_done; + __pyx_L5_argtuple_error:; + __Pyx_RaiseArgtupleInvalid("run", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(1, 332, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.Function.run", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_RefNannyFinishContext(); + return NULL; + __pyx_L4_argument_unpacking_done:; + __pyx_r = __pyx_pf_5talib_8c_ta_lib_8Function_30run(__pyx_self, __pyx_v_self, __pyx_v_input_arrays); + + /* function exit code */ + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +static PyObject *__pyx_pf_5talib_8c_ta_lib_8Function_30run(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_input_arrays) { + 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("run", 0); + + /* "talib/_abstract.pxi":339 + * the input_arrays dict. + * """ + * if input_arrays: # <<<<<<<<<<<<<< + * self.set_input_arrays(input_arrays) + * self.__call_function() + */ + __pyx_t_1 = __Pyx_PyObject_IsTrue(__pyx_v_input_arrays); if (unlikely(__pyx_t_1 < 0)) __PYX_ERR(1, 339, __pyx_L1_error) + if (__pyx_t_1) { + + /* "talib/_abstract.pxi":340 + * """ + * if input_arrays: + * self.set_input_arrays(input_arrays) # <<<<<<<<<<<<<< + * self.__call_function() + * return self.outputs + */ + __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_set_input_arrays); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 340, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + __pyx_t_4 = NULL; + if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_3))) { + __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); + if (likely(__pyx_t_4)) { + PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); + __Pyx_INCREF(__pyx_t_4); + __Pyx_INCREF(function); + __Pyx_DECREF_SET(__pyx_t_3, function); + } + } + if (!__pyx_t_4) { + __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_v_input_arrays); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 340, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + } else { + __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 340, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL; + __Pyx_INCREF(__pyx_v_input_arrays); + __Pyx_GIVEREF(__pyx_v_input_arrays); + PyTuple_SET_ITEM(__pyx_t_5, 0+1, __pyx_v_input_arrays); + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_5, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 340, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + } + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_abstract.pxi":339 + * the input_arrays dict. + * """ + * if input_arrays: # <<<<<<<<<<<<<< + * self.set_input_arrays(input_arrays) + * self.__call_function() + */ + } + + /* "talib/_abstract.pxi":341 + * if input_arrays: + * self.set_input_arrays(input_arrays) + * self.__call_function() # <<<<<<<<<<<<<< + * return self.outputs + * + */ + __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__call_function); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 341, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + __pyx_t_5 = NULL; + if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_3))) { + __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_3); + if (likely(__pyx_t_5)) { + PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); + __Pyx_INCREF(__pyx_t_5); + __Pyx_INCREF(function); + __Pyx_DECREF_SET(__pyx_t_3, function); + } + } + if (__pyx_t_5) { + __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 341, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + } else { + __pyx_t_2 = __Pyx_PyObject_CallNoArg(__pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 341, __pyx_L1_error) + } + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_abstract.pxi":342 + * self.set_input_arrays(input_arrays) + * self.__call_function() + * return self.outputs # <<<<<<<<<<<<<< + * + * def __call__(self, *args, **kwargs): + */ + __Pyx_XDECREF(__pyx_r); + __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_outputs); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 342, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_abstract.pxi":332 + * return ret[0] if len(ret) == 1 else ret + * + * def run(self, input_arrays=None): # <<<<<<<<<<<<<< + * """ + * run([input_arrays=None]) + */ + + /* 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.c_ta_lib.Function.run", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "talib/_abstract.pxi":344 + * return self.outputs + * + * def __call__(self, *args, **kwargs): # <<<<<<<<<<<<<< + * """ + * func_instance([input_arrays,] [parameter_args,] [input_price_series_kwargs,] [parameter_kwargs]) + */ + +/* Python wrapper */ +static PyObject *__pyx_pw_5talib_8c_ta_lib_8Function_33__call__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_8Function_32__call__[] = "\n func_instance([input_arrays,] [parameter_args,] [input_price_series_kwargs,] [parameter_kwargs])\n\n This is a shortcut to the outputs property that also allows setting\n the input_arrays dict and function parameters.\n "; +static PyMethodDef __pyx_mdef_5talib_8c_ta_lib_8Function_33__call__ = {"__call__", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_8Function_33__call__, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_8Function_32__call__}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_8Function_33__call__(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { + PyObject *__pyx_v_self = 0; + PyObject *__pyx_v_args = 0; + PyObject *__pyx_v_kwargs = 0; + PyObject *__pyx_r = 0; + __Pyx_RefNannyDeclarations + __Pyx_RefNannySetupContext("__call__ (wrapper)", 0); + __pyx_v_kwargs = PyDict_New(); if (unlikely(!__pyx_v_kwargs)) return NULL; + __Pyx_GOTREF(__pyx_v_kwargs); + if (PyTuple_GET_SIZE(__pyx_args) > 1) { + __pyx_v_args = PyTuple_GetSlice(__pyx_args, 1, PyTuple_GET_SIZE(__pyx_args)); + if (unlikely(!__pyx_v_args)) { + __Pyx_DECREF(__pyx_v_kwargs); __pyx_v_kwargs = 0; + __Pyx_RefNannyFinishContext(); + return NULL; + } + __Pyx_GOTREF(__pyx_v_args); + } else { + __pyx_v_args = __pyx_empty_tuple; __Pyx_INCREF(__pyx_empty_tuple); + } + { + static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_self,0}; + PyObject* values[1] = {0}; + if (unlikely(__pyx_kwds)) { + Py_ssize_t kw_args; + const Py_ssize_t pos_args = PyTuple_GET_SIZE(__pyx_args); + switch (pos_args) { + default: + case 1: values[0] = PyTuple_GET_ITEM(__pyx_args, 0); + case 0: break; + } + kw_args = PyDict_Size(__pyx_kwds); + switch (pos_args) { + case 0: + if (likely((values[0] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_self)) != 0)) kw_args--; + else goto __pyx_L5_argtuple_error; + } + if (unlikely(kw_args > 0)) { + const Py_ssize_t used_pos_args = (pos_args < 1) ? pos_args : 1; + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, __pyx_v_kwargs, values, used_pos_args, "__call__") < 0)) __PYX_ERR(1, 344, __pyx_L3_error) + } + } else if (PyTuple_GET_SIZE(__pyx_args) < 1) { + goto __pyx_L5_argtuple_error; + } else { + values[0] = PyTuple_GET_ITEM(__pyx_args, 0); + } + __pyx_v_self = values[0]; + } + goto __pyx_L4_argument_unpacking_done; + __pyx_L5_argtuple_error:; + __Pyx_RaiseArgtupleInvalid("__call__", 0, 1, 1, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(1, 344, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_DECREF(__pyx_v_args); __pyx_v_args = 0; + __Pyx_DECREF(__pyx_v_kwargs); __pyx_v_kwargs = 0; + __Pyx_AddTraceback("talib.c_ta_lib.Function.__call__", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_RefNannyFinishContext(); + return NULL; + __pyx_L4_argument_unpacking_done:; + __pyx_r = __pyx_pf_5talib_8c_ta_lib_8Function_32__call__(__pyx_self, __pyx_v_self, __pyx_v_args, __pyx_v_kwargs); + + /* function exit code */ + __Pyx_XDECREF(__pyx_v_args); + __Pyx_XDECREF(__pyx_v_kwargs); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +static PyObject *__pyx_pf_5talib_8c_ta_lib_8Function_32__call__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_args, PyObject *__pyx_v_kwargs) { + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + PyObject *__pyx_t_1 = NULL; + PyObject *__pyx_t_2 = NULL; + PyObject *__pyx_t_3 = NULL; + __Pyx_RefNannySetupContext("__call__", 0); + + /* "talib/_abstract.pxi":351 + * the input_arrays dict and function parameters. + * """ + * self.set_function_args(*args, **kwargs) # <<<<<<<<<<<<<< + * self.__call_function() + * return self.outputs + */ + __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_set_function_args); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 351, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_v_args, __pyx_v_kwargs); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 351, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_abstract.pxi":352 + * """ + * self.set_function_args(*args, **kwargs) + * self.__call_function() # <<<<<<<<<<<<<< + * return self.outputs + * + */ + __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__call_function); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 352, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __pyx_t_3 = NULL; + if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_1))) { + __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_1); + if (likely(__pyx_t_3)) { + PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); + __Pyx_INCREF(__pyx_t_3); + __Pyx_INCREF(function); + __Pyx_DECREF_SET(__pyx_t_1, function); + } + } + if (__pyx_t_3) { + __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 352, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + } else { + __pyx_t_2 = __Pyx_PyObject_CallNoArg(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 352, __pyx_L1_error) + } + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_abstract.pxi":353 + * self.set_function_args(*args, **kwargs) + * self.__call_function() + * return self.outputs # <<<<<<<<<<<<<< + * + * # figure out which price series names we're using for inputs + */ + __Pyx_XDECREF(__pyx_r); + __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_outputs); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 353, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_abstract.pxi":344 + * return self.outputs + * + * def __call__(self, *args, **kwargs): # <<<<<<<<<<<<<< + * """ + * func_instance([input_arrays,] [parameter_args,] [input_price_series_kwargs,] [parameter_kwargs]) + */ + + /* function exit code */ + __pyx_L1_error:; + __Pyx_XDECREF(__pyx_t_1); + __Pyx_XDECREF(__pyx_t_2); + __Pyx_XDECREF(__pyx_t_3); + __Pyx_AddTraceback("talib.c_ta_lib.Function.__call__", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "talib/_abstract.pxi":356 + * + * # figure out which price series names we're using for inputs + * def __input_price_series_names(self): # <<<<<<<<<<<<<< + * input_price_series_names = [] + * for input_name in self.__input_names: + */ + +/* Python wrapper */ +static PyObject *__pyx_pw_5talib_8c_ta_lib_8Function_35__input_price_series_names(PyObject *__pyx_self, PyObject *__pyx_v_self); /*proto*/ +static PyMethodDef __pyx_mdef_5talib_8c_ta_lib_8Function_35__input_price_series_names = {"__input_price_series_names", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_8Function_35__input_price_series_names, METH_O, 0}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_8Function_35__input_price_series_names(PyObject *__pyx_self, PyObject *__pyx_v_self) { + PyObject *__pyx_r = 0; + __Pyx_RefNannyDeclarations + __Pyx_RefNannySetupContext("__input_price_series_names (wrapper)", 0); + __pyx_r = __pyx_pf_5talib_8c_ta_lib_8Function_34__input_price_series_names(__pyx_self, ((PyObject *)__pyx_v_self)); + + /* function exit code */ + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +static PyObject *__pyx_pf_5talib_8c_ta_lib_8Function_34__input_price_series_names(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self) { + PyObject *__pyx_v_input_price_series_names = NULL; + PyObject *__pyx_v_input_name = NULL; + PyObject *__pyx_v_price_series = NULL; + PyObject *__pyx_v_name = NULL; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + PyObject *__pyx_t_1 = NULL; + PyObject *__pyx_t_2 = NULL; + Py_ssize_t __pyx_t_3; + PyObject *(*__pyx_t_4)(PyObject *); + PyObject *__pyx_t_5 = NULL; + int __pyx_t_6; + int __pyx_t_7; + Py_ssize_t __pyx_t_8; + PyObject *(*__pyx_t_9)(PyObject *); + int __pyx_t_10; + __Pyx_RefNannySetupContext("__input_price_series_names", 0); + + /* "talib/_abstract.pxi":357 + * # figure out which price series names we're using for inputs + * def __input_price_series_names(self): + * input_price_series_names = [] # <<<<<<<<<<<<<< + * for input_name in self.__input_names: + * price_series = self.__input_names[input_name]['price_series'] + */ + __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 357, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __pyx_v_input_price_series_names = ((PyObject*)__pyx_t_1); + __pyx_t_1 = 0; + + /* "talib/_abstract.pxi":358 + * def __input_price_series_names(self): + * input_price_series_names = [] + * for input_name in self.__input_names: # <<<<<<<<<<<<<< + * price_series = self.__input_names[input_name]['price_series'] + * if isinstance(price_series, list): # TALIB-supplied input names + */ + __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__input_names); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 358, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + if (likely(PyList_CheckExact(__pyx_t_1)) || PyTuple_CheckExact(__pyx_t_1)) { + __pyx_t_2 = __pyx_t_1; __Pyx_INCREF(__pyx_t_2); __pyx_t_3 = 0; + __pyx_t_4 = NULL; + } else { + __pyx_t_3 = -1; __pyx_t_2 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 358, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_t_4 = Py_TYPE(__pyx_t_2)->tp_iternext; if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 358, __pyx_L1_error) + } + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + for (;;) { + if (likely(!__pyx_t_4)) { + if (likely(PyList_CheckExact(__pyx_t_2))) { + if (__pyx_t_3 >= PyList_GET_SIZE(__pyx_t_2)) break; + #if CYTHON_COMPILING_IN_CPYTHON + __pyx_t_1 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_3); __Pyx_INCREF(__pyx_t_1); __pyx_t_3++; if (unlikely(0 < 0)) __PYX_ERR(1, 358, __pyx_L1_error) + #else + __pyx_t_1 = PySequence_ITEM(__pyx_t_2, __pyx_t_3); __pyx_t_3++; if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 358, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + #endif + } else { + if (__pyx_t_3 >= PyTuple_GET_SIZE(__pyx_t_2)) break; + #if CYTHON_COMPILING_IN_CPYTHON + __pyx_t_1 = PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_3); __Pyx_INCREF(__pyx_t_1); __pyx_t_3++; if (unlikely(0 < 0)) __PYX_ERR(1, 358, __pyx_L1_error) + #else + __pyx_t_1 = PySequence_ITEM(__pyx_t_2, __pyx_t_3); __pyx_t_3++; if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 358, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + #endif + } + } else { + __pyx_t_1 = __pyx_t_4(__pyx_t_2); + if (unlikely(!__pyx_t_1)) { + PyObject* exc_type = PyErr_Occurred(); + if (exc_type) { + if (likely(exc_type == PyExc_StopIteration || PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); + else __PYX_ERR(1, 358, __pyx_L1_error) + } + break; + } + __Pyx_GOTREF(__pyx_t_1); + } + __Pyx_XDECREF_SET(__pyx_v_input_name, __pyx_t_1); + __pyx_t_1 = 0; + + /* "talib/_abstract.pxi":359 + * input_price_series_names = [] + * for input_name in self.__input_names: + * price_series = self.__input_names[input_name]['price_series'] # <<<<<<<<<<<<<< + * if isinstance(price_series, list): # TALIB-supplied input names + * for name in price_series: + */ + __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__input_names); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 359, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __pyx_t_5 = PyObject_GetItem(__pyx_t_1, __pyx_v_input_name); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 359, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + __pyx_t_1 = PyObject_GetItem(__pyx_t_5, __pyx_n_s_price_series); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 359, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + __Pyx_XDECREF_SET(__pyx_v_price_series, __pyx_t_1); + __pyx_t_1 = 0; + + /* "talib/_abstract.pxi":360 + * for input_name in self.__input_names: + * price_series = self.__input_names[input_name]['price_series'] + * if isinstance(price_series, list): # TALIB-supplied input names # <<<<<<<<<<<<<< + * for name in price_series: + * input_price_series_names.append(name) + */ + __pyx_t_6 = PyList_Check(__pyx_v_price_series); + __pyx_t_7 = (__pyx_t_6 != 0); + if (__pyx_t_7) { + + /* "talib/_abstract.pxi":361 + * price_series = self.__input_names[input_name]['price_series'] + * if isinstance(price_series, list): # TALIB-supplied input names + * for name in price_series: # <<<<<<<<<<<<<< + * input_price_series_names.append(name) + * else: # name came from __INPUT_PRICE_SERIES_DEFAULTS + */ + if (likely(PyList_CheckExact(__pyx_v_price_series)) || PyTuple_CheckExact(__pyx_v_price_series)) { + __pyx_t_1 = __pyx_v_price_series; __Pyx_INCREF(__pyx_t_1); __pyx_t_8 = 0; + __pyx_t_9 = NULL; + } else { + __pyx_t_8 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_v_price_series); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 361, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __pyx_t_9 = Py_TYPE(__pyx_t_1)->tp_iternext; if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 361, __pyx_L1_error) + } + for (;;) { + if (likely(!__pyx_t_9)) { + if (likely(PyList_CheckExact(__pyx_t_1))) { + if (__pyx_t_8 >= PyList_GET_SIZE(__pyx_t_1)) break; + #if CYTHON_COMPILING_IN_CPYTHON + __pyx_t_5 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_8); __Pyx_INCREF(__pyx_t_5); __pyx_t_8++; if (unlikely(0 < 0)) __PYX_ERR(1, 361, __pyx_L1_error) + #else + __pyx_t_5 = PySequence_ITEM(__pyx_t_1, __pyx_t_8); __pyx_t_8++; if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 361, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + #endif + } else { + if (__pyx_t_8 >= PyTuple_GET_SIZE(__pyx_t_1)) break; + #if CYTHON_COMPILING_IN_CPYTHON + __pyx_t_5 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_8); __Pyx_INCREF(__pyx_t_5); __pyx_t_8++; if (unlikely(0 < 0)) __PYX_ERR(1, 361, __pyx_L1_error) + #else + __pyx_t_5 = PySequence_ITEM(__pyx_t_1, __pyx_t_8); __pyx_t_8++; if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 361, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + #endif + } + } else { + __pyx_t_5 = __pyx_t_9(__pyx_t_1); + if (unlikely(!__pyx_t_5)) { + PyObject* exc_type = PyErr_Occurred(); + if (exc_type) { + if (likely(exc_type == PyExc_StopIteration || PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); + else __PYX_ERR(1, 361, __pyx_L1_error) + } + break; + } + __Pyx_GOTREF(__pyx_t_5); + } + __Pyx_XDECREF_SET(__pyx_v_name, __pyx_t_5); + __pyx_t_5 = 0; + + /* "talib/_abstract.pxi":362 + * if isinstance(price_series, list): # TALIB-supplied input names + * for name in price_series: + * input_price_series_names.append(name) # <<<<<<<<<<<<<< + * else: # name came from __INPUT_PRICE_SERIES_DEFAULTS + * input_price_series_names.append(price_series) + */ + __pyx_t_10 = __Pyx_PyList_Append(__pyx_v_input_price_series_names, __pyx_v_name); if (unlikely(__pyx_t_10 == -1)) __PYX_ERR(1, 362, __pyx_L1_error) + + /* "talib/_abstract.pxi":361 + * price_series = self.__input_names[input_name]['price_series'] + * if isinstance(price_series, list): # TALIB-supplied input names + * for name in price_series: # <<<<<<<<<<<<<< + * input_price_series_names.append(name) + * else: # name came from __INPUT_PRICE_SERIES_DEFAULTS + */ + } + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + + /* "talib/_abstract.pxi":360 + * for input_name in self.__input_names: + * price_series = self.__input_names[input_name]['price_series'] + * if isinstance(price_series, list): # TALIB-supplied input names # <<<<<<<<<<<<<< + * for name in price_series: + * input_price_series_names.append(name) + */ + goto __pyx_L5; + } + + /* "talib/_abstract.pxi":364 + * input_price_series_names.append(name) + * else: # name came from __INPUT_PRICE_SERIES_DEFAULTS + * input_price_series_names.append(price_series) # <<<<<<<<<<<<<< + * return input_price_series_names + * + */ + /*else*/ { + __pyx_t_10 = __Pyx_PyList_Append(__pyx_v_input_price_series_names, __pyx_v_price_series); if (unlikely(__pyx_t_10 == -1)) __PYX_ERR(1, 364, __pyx_L1_error) + } + __pyx_L5:; + + /* "talib/_abstract.pxi":358 + * def __input_price_series_names(self): + * input_price_series_names = [] + * for input_name in self.__input_names: # <<<<<<<<<<<<<< + * price_series = self.__input_names[input_name]['price_series'] + * if isinstance(price_series, list): # TALIB-supplied input names + */ + } + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_abstract.pxi":365 + * else: # name came from __INPUT_PRICE_SERIES_DEFAULTS + * input_price_series_names.append(price_series) + * return input_price_series_names # <<<<<<<<<<<<<< + * + * def __call_function(self): + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(__pyx_v_input_price_series_names); + __pyx_r = __pyx_v_input_price_series_names; + goto __pyx_L0; + + /* "talib/_abstract.pxi":356 + * + * # figure out which price series names we're using for inputs + * def __input_price_series_names(self): # <<<<<<<<<<<<<< + * input_price_series_names = [] + * for input_name in self.__input_names: + */ + + /* function exit code */ + __pyx_L1_error:; + __Pyx_XDECREF(__pyx_t_1); + __Pyx_XDECREF(__pyx_t_2); + __Pyx_XDECREF(__pyx_t_5); + __Pyx_AddTraceback("talib.c_ta_lib.Function.__input_price_series_names", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF(__pyx_v_input_price_series_names); + __Pyx_XDECREF(__pyx_v_input_name); + __Pyx_XDECREF(__pyx_v_price_series); + __Pyx_XDECREF(__pyx_v_name); + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "talib/_abstract.pxi":367 + * return input_price_series_names + * + * def __call_function(self): # <<<<<<<<<<<<<< + * input_price_series_names = self.__input_price_series_names() + * + */ + +/* Python wrapper */ +static PyObject *__pyx_pw_5talib_8c_ta_lib_8Function_37__call_function(PyObject *__pyx_self, PyObject *__pyx_v_self); /*proto*/ +static PyMethodDef __pyx_mdef_5talib_8c_ta_lib_8Function_37__call_function = {"__call_function", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_8Function_37__call_function, METH_O, 0}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_8Function_37__call_function(PyObject *__pyx_self, PyObject *__pyx_v_self) { + PyObject *__pyx_r = 0; + __Pyx_RefNannyDeclarations + __Pyx_RefNannySetupContext("__call_function (wrapper)", 0); + __pyx_r = __pyx_pf_5talib_8c_ta_lib_8Function_36__call_function(__pyx_self, ((PyObject *)__pyx_v_self)); + + /* function exit code */ + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +static PyObject *__pyx_pf_5talib_8c_ta_lib_8Function_36__call_function(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self) { + PyObject *__pyx_v_input_price_series_names = NULL; + PyObject *__pyx_v_args = NULL; + PyObject *__pyx_v_price_series = NULL; + PyObject *__pyx_v_series = NULL; + PyObject *__pyx_v_opt_input = NULL; + PyObject *__pyx_v_value = NULL; + PyObject *__pyx_v_results = NULL; + PyObject *__pyx_v_keys = NULL; + PyObject *__pyx_v_i = NULL; + PyObject *__pyx_v_output = NULL; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + PyObject *__pyx_t_1 = NULL; + PyObject *__pyx_t_2 = NULL; + PyObject *__pyx_t_3 = NULL; + Py_ssize_t __pyx_t_4; + PyObject *(*__pyx_t_5)(PyObject *); + int __pyx_t_6; + int __pyx_t_7; + int __pyx_t_8; + int __pyx_t_9; + PyObject *__pyx_t_10 = NULL; + PyObject *__pyx_t_11 = NULL; + __Pyx_RefNannySetupContext("__call_function", 0); + + /* "talib/_abstract.pxi":368 + * + * def __call_function(self): + * input_price_series_names = self.__input_price_series_names() # <<<<<<<<<<<<<< + * + * # populate the ordered args we'll call the function with + */ + __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__input_price_series_na); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 368, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_t_3 = NULL; + if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_2))) { + __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); + if (likely(__pyx_t_3)) { + PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); + __Pyx_INCREF(__pyx_t_3); + __Pyx_INCREF(function); + __Pyx_DECREF_SET(__pyx_t_2, function); + } + } + if (__pyx_t_3) { + __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 368, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + } else { + __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 368, __pyx_L1_error) + } + __Pyx_GOTREF(__pyx_t_1); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __pyx_v_input_price_series_names = __pyx_t_1; + __pyx_t_1 = 0; + + /* "talib/_abstract.pxi":371 + * + * # populate the ordered args we'll call the function with + * args = [] # <<<<<<<<<<<<<< + * for price_series in input_price_series_names: + * series = self.__input_arrays[price_series] + */ + __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 371, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __pyx_v_args = ((PyObject*)__pyx_t_1); + __pyx_t_1 = 0; + + /* "talib/_abstract.pxi":372 + * # populate the ordered args we'll call the function with + * args = [] + * for price_series in input_price_series_names: # <<<<<<<<<<<<<< + * series = self.__input_arrays[price_series] + * if __PANDAS_SERIES is not None and \ + */ + if (likely(PyList_CheckExact(__pyx_v_input_price_series_names)) || PyTuple_CheckExact(__pyx_v_input_price_series_names)) { + __pyx_t_1 = __pyx_v_input_price_series_names; __Pyx_INCREF(__pyx_t_1); __pyx_t_4 = 0; + __pyx_t_5 = NULL; + } else { + __pyx_t_4 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_v_input_price_series_names); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 372, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __pyx_t_5 = Py_TYPE(__pyx_t_1)->tp_iternext; if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 372, __pyx_L1_error) + } + for (;;) { + if (likely(!__pyx_t_5)) { + if (likely(PyList_CheckExact(__pyx_t_1))) { + if (__pyx_t_4 >= PyList_GET_SIZE(__pyx_t_1)) break; + #if CYTHON_COMPILING_IN_CPYTHON + __pyx_t_2 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_4); __Pyx_INCREF(__pyx_t_2); __pyx_t_4++; if (unlikely(0 < 0)) __PYX_ERR(1, 372, __pyx_L1_error) + #else + __pyx_t_2 = PySequence_ITEM(__pyx_t_1, __pyx_t_4); __pyx_t_4++; if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 372, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + #endif + } else { + if (__pyx_t_4 >= PyTuple_GET_SIZE(__pyx_t_1)) break; + #if CYTHON_COMPILING_IN_CPYTHON + __pyx_t_2 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_4); __Pyx_INCREF(__pyx_t_2); __pyx_t_4++; if (unlikely(0 < 0)) __PYX_ERR(1, 372, __pyx_L1_error) + #else + __pyx_t_2 = PySequence_ITEM(__pyx_t_1, __pyx_t_4); __pyx_t_4++; if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 372, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + #endif + } + } else { + __pyx_t_2 = __pyx_t_5(__pyx_t_1); + if (unlikely(!__pyx_t_2)) { + PyObject* exc_type = PyErr_Occurred(); + if (exc_type) { + if (likely(exc_type == PyExc_StopIteration || PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); + else __PYX_ERR(1, 372, __pyx_L1_error) + } + break; + } + __Pyx_GOTREF(__pyx_t_2); + } + __Pyx_XDECREF_SET(__pyx_v_price_series, __pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_abstract.pxi":373 + * args = [] + * for price_series in input_price_series_names: + * series = self.__input_arrays[price_series] # <<<<<<<<<<<<<< + * if __PANDAS_SERIES is not None and \ + * isinstance(series, __PANDAS_SERIES): + */ + __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__input_arrays); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 373, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_t_3 = PyObject_GetItem(__pyx_t_2, __pyx_v_price_series); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 373, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __Pyx_XDECREF_SET(__pyx_v_series, __pyx_t_3); + __pyx_t_3 = 0; + + /* "talib/_abstract.pxi":374 + * for price_series in input_price_series_names: + * series = self.__input_arrays[price_series] + * if __PANDAS_SERIES is not None and \ # <<<<<<<<<<<<<< + * isinstance(series, __PANDAS_SERIES): + * series = series.values + */ + __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_PANDAS_SERIES); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 374, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + __pyx_t_7 = (__pyx_t_3 != Py_None); + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + __pyx_t_8 = (__pyx_t_7 != 0); + if (__pyx_t_8) { + } else { + __pyx_t_6 = __pyx_t_8; + goto __pyx_L6_bool_binop_done; + } + + /* "talib/_abstract.pxi":375 + * series = self.__input_arrays[price_series] + * if __PANDAS_SERIES is not None and \ + * isinstance(series, __PANDAS_SERIES): # <<<<<<<<<<<<<< + * series = series.values + * args.append(series) + */ + __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_PANDAS_SERIES); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 375, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + __pyx_t_8 = PyObject_IsInstance(__pyx_v_series, __pyx_t_3); if (unlikely(__pyx_t_8 == -1)) __PYX_ERR(1, 375, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + __pyx_t_7 = (__pyx_t_8 != 0); + __pyx_t_6 = __pyx_t_7; + __pyx_L6_bool_binop_done:; + + /* "talib/_abstract.pxi":374 + * for price_series in input_price_series_names: + * series = self.__input_arrays[price_series] + * if __PANDAS_SERIES is not None and \ # <<<<<<<<<<<<<< + * isinstance(series, __PANDAS_SERIES): + * series = series.values + */ + if (__pyx_t_6) { + + /* "talib/_abstract.pxi":376 + * if __PANDAS_SERIES is not None and \ + * isinstance(series, __PANDAS_SERIES): + * series = series.values # <<<<<<<<<<<<<< + * args.append(series) + * for opt_input in self.__opt_inputs: + */ + __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_series, __pyx_n_s_values); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 376, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + __Pyx_DECREF_SET(__pyx_v_series, __pyx_t_3); + __pyx_t_3 = 0; + + /* "talib/_abstract.pxi":374 + * for price_series in input_price_series_names: + * series = self.__input_arrays[price_series] + * if __PANDAS_SERIES is not None and \ # <<<<<<<<<<<<<< + * isinstance(series, __PANDAS_SERIES): + * series = series.values + */ + } + + /* "talib/_abstract.pxi":377 + * isinstance(series, __PANDAS_SERIES): + * series = series.values + * args.append(series) # <<<<<<<<<<<<<< + * for opt_input in self.__opt_inputs: + * value = self.__get_opt_input_value(opt_input) + */ + __pyx_t_9 = __Pyx_PyList_Append(__pyx_v_args, __pyx_v_series); if (unlikely(__pyx_t_9 == -1)) __PYX_ERR(1, 377, __pyx_L1_error) + + /* "talib/_abstract.pxi":372 + * # populate the ordered args we'll call the function with + * args = [] + * for price_series in input_price_series_names: # <<<<<<<<<<<<<< + * series = self.__input_arrays[price_series] + * if __PANDAS_SERIES is not None and \ + */ + } + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + + /* "talib/_abstract.pxi":378 + * series = series.values + * args.append(series) + * for opt_input in self.__opt_inputs: # <<<<<<<<<<<<<< + * value = self.__get_opt_input_value(opt_input) + * args.append(value) + */ + __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__opt_inputs); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 378, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + if (likely(PyList_CheckExact(__pyx_t_1)) || PyTuple_CheckExact(__pyx_t_1)) { + __pyx_t_3 = __pyx_t_1; __Pyx_INCREF(__pyx_t_3); __pyx_t_4 = 0; + __pyx_t_5 = NULL; + } else { + __pyx_t_4 = -1; __pyx_t_3 = PyObject_GetIter(__pyx_t_1); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 378, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + __pyx_t_5 = Py_TYPE(__pyx_t_3)->tp_iternext; if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 378, __pyx_L1_error) + } + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + for (;;) { + if (likely(!__pyx_t_5)) { + if (likely(PyList_CheckExact(__pyx_t_3))) { + if (__pyx_t_4 >= PyList_GET_SIZE(__pyx_t_3)) break; + #if CYTHON_COMPILING_IN_CPYTHON + __pyx_t_1 = PyList_GET_ITEM(__pyx_t_3, __pyx_t_4); __Pyx_INCREF(__pyx_t_1); __pyx_t_4++; if (unlikely(0 < 0)) __PYX_ERR(1, 378, __pyx_L1_error) + #else + __pyx_t_1 = PySequence_ITEM(__pyx_t_3, __pyx_t_4); __pyx_t_4++; if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 378, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + #endif + } else { + if (__pyx_t_4 >= PyTuple_GET_SIZE(__pyx_t_3)) break; + #if CYTHON_COMPILING_IN_CPYTHON + __pyx_t_1 = PyTuple_GET_ITEM(__pyx_t_3, __pyx_t_4); __Pyx_INCREF(__pyx_t_1); __pyx_t_4++; if (unlikely(0 < 0)) __PYX_ERR(1, 378, __pyx_L1_error) + #else + __pyx_t_1 = PySequence_ITEM(__pyx_t_3, __pyx_t_4); __pyx_t_4++; if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 378, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + #endif + } + } else { + __pyx_t_1 = __pyx_t_5(__pyx_t_3); + if (unlikely(!__pyx_t_1)) { + PyObject* exc_type = PyErr_Occurred(); + if (exc_type) { + if (likely(exc_type == PyExc_StopIteration || PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); + else __PYX_ERR(1, 378, __pyx_L1_error) + } + break; + } + __Pyx_GOTREF(__pyx_t_1); + } + __Pyx_XDECREF_SET(__pyx_v_opt_input, __pyx_t_1); + __pyx_t_1 = 0; + + /* "talib/_abstract.pxi":379 + * args.append(series) + * for opt_input in self.__opt_inputs: + * value = self.__get_opt_input_value(opt_input) # <<<<<<<<<<<<<< + * args.append(value) + * + */ + __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__get_opt_input_value); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 379, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_t_10 = NULL; + if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_2))) { + __pyx_t_10 = PyMethod_GET_SELF(__pyx_t_2); + if (likely(__pyx_t_10)) { + PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); + __Pyx_INCREF(__pyx_t_10); + __Pyx_INCREF(function); + __Pyx_DECREF_SET(__pyx_t_2, function); + } + } + if (!__pyx_t_10) { + __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_v_opt_input); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 379, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + } else { + __pyx_t_11 = PyTuple_New(1+1); if (unlikely(!__pyx_t_11)) __PYX_ERR(1, 379, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_11); + __Pyx_GIVEREF(__pyx_t_10); PyTuple_SET_ITEM(__pyx_t_11, 0, __pyx_t_10); __pyx_t_10 = NULL; + __Pyx_INCREF(__pyx_v_opt_input); + __Pyx_GIVEREF(__pyx_v_opt_input); + PyTuple_SET_ITEM(__pyx_t_11, 0+1, __pyx_v_opt_input); + __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_11, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 379, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; + } + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __Pyx_XDECREF_SET(__pyx_v_value, __pyx_t_1); + __pyx_t_1 = 0; + + /* "talib/_abstract.pxi":380 + * for opt_input in self.__opt_inputs: + * value = self.__get_opt_input_value(opt_input) + * args.append(value) # <<<<<<<<<<<<<< + * + * # Use the func module to actually call the function. + */ + __pyx_t_9 = __Pyx_PyList_Append(__pyx_v_args, __pyx_v_value); if (unlikely(__pyx_t_9 == -1)) __PYX_ERR(1, 380, __pyx_L1_error) + + /* "talib/_abstract.pxi":378 + * series = series.values + * args.append(series) + * for opt_input in self.__opt_inputs: # <<<<<<<<<<<<<< + * value = self.__get_opt_input_value(opt_input) + * args.append(value) + */ + } + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + + /* "talib/_abstract.pxi":383 + * + * # Use the func module to actually call the function. + * results = self.func_object(*args) # <<<<<<<<<<<<<< + * if isinstance(results, np.ndarray): + * keys = self.__outputs.keys() + */ + __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_func_object); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 383, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + __pyx_t_1 = PySequence_Tuple(__pyx_v_args); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 383, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_1, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 383, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + __pyx_v_results = __pyx_t_2; + __pyx_t_2 = 0; + + /* "talib/_abstract.pxi":384 + * # Use the func module to actually call the function. + * results = self.func_object(*args) + * if isinstance(results, np.ndarray): # <<<<<<<<<<<<<< + * keys = self.__outputs.keys() + * if not isinstance(keys, list): + */ + __pyx_t_6 = __Pyx_TypeCheck(__pyx_v_results, __pyx_ptype_5numpy_ndarray); + __pyx_t_7 = (__pyx_t_6 != 0); + if (__pyx_t_7) { + + /* "talib/_abstract.pxi":385 + * results = self.func_object(*args) + * if isinstance(results, np.ndarray): + * keys = self.__outputs.keys() # <<<<<<<<<<<<<< + * if not isinstance(keys, list): + * keys = list(keys) + */ + __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__outputs); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 385, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_keys); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 385, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + __pyx_t_1 = NULL; + if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_3))) { + __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_3); + if (likely(__pyx_t_1)) { + PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); + __Pyx_INCREF(__pyx_t_1); + __Pyx_INCREF(function); + __Pyx_DECREF_SET(__pyx_t_3, function); + } + } + if (__pyx_t_1) { + __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 385, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + } else { + __pyx_t_2 = __Pyx_PyObject_CallNoArg(__pyx_t_3); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 385, __pyx_L1_error) + } + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + __pyx_v_keys = __pyx_t_2; + __pyx_t_2 = 0; + + /* "talib/_abstract.pxi":386 + * if isinstance(results, np.ndarray): + * keys = self.__outputs.keys() + * if not isinstance(keys, list): # <<<<<<<<<<<<<< + * keys = list(keys) + * self.__outputs[keys[0]] = results + */ + __pyx_t_7 = PyList_Check(__pyx_v_keys); + __pyx_t_6 = ((!(__pyx_t_7 != 0)) != 0); + if (__pyx_t_6) { + + /* "talib/_abstract.pxi":387 + * keys = self.__outputs.keys() + * if not isinstance(keys, list): + * keys = list(keys) # <<<<<<<<<<<<<< + * self.__outputs[keys[0]] = results + * else: + */ + __pyx_t_2 = PySequence_List(__pyx_v_keys); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 387, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF_SET(__pyx_v_keys, __pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_abstract.pxi":386 + * if isinstance(results, np.ndarray): + * keys = self.__outputs.keys() + * if not isinstance(keys, list): # <<<<<<<<<<<<<< + * keys = list(keys) + * self.__outputs[keys[0]] = results + */ + } + + /* "talib/_abstract.pxi":388 + * if not isinstance(keys, list): + * keys = list(keys) + * self.__outputs[keys[0]] = results # <<<<<<<<<<<<<< + * else: + * for i, output in enumerate(self.__outputs): + */ + __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__outputs); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 388, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_t_3 = __Pyx_GetItemInt(__pyx_v_keys, 0, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 388, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + if (unlikely(PyObject_SetItem(__pyx_t_2, __pyx_t_3, __pyx_v_results) < 0)) __PYX_ERR(1, 388, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + + /* "talib/_abstract.pxi":384 + * # Use the func module to actually call the function. + * results = self.func_object(*args) + * if isinstance(results, np.ndarray): # <<<<<<<<<<<<<< + * keys = self.__outputs.keys() + * if not isinstance(keys, list): + */ + goto __pyx_L10; + } + + /* "talib/_abstract.pxi":390 + * self.__outputs[keys[0]] = results + * else: + * for i, output in enumerate(self.__outputs): # <<<<<<<<<<<<<< + * self.__outputs[output] = results[i] + * self.__outputs_valid = True + */ + /*else*/ { + __Pyx_INCREF(__pyx_int_0); + __pyx_t_3 = __pyx_int_0; + __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__outputs); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 390, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (likely(PyList_CheckExact(__pyx_t_2)) || PyTuple_CheckExact(__pyx_t_2)) { + __pyx_t_1 = __pyx_t_2; __Pyx_INCREF(__pyx_t_1); __pyx_t_4 = 0; + __pyx_t_5 = NULL; + } else { + __pyx_t_4 = -1; __pyx_t_1 = PyObject_GetIter(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 390, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __pyx_t_5 = Py_TYPE(__pyx_t_1)->tp_iternext; if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 390, __pyx_L1_error) + } + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + for (;;) { + if (likely(!__pyx_t_5)) { + if (likely(PyList_CheckExact(__pyx_t_1))) { + if (__pyx_t_4 >= PyList_GET_SIZE(__pyx_t_1)) break; + #if CYTHON_COMPILING_IN_CPYTHON + __pyx_t_2 = PyList_GET_ITEM(__pyx_t_1, __pyx_t_4); __Pyx_INCREF(__pyx_t_2); __pyx_t_4++; if (unlikely(0 < 0)) __PYX_ERR(1, 390, __pyx_L1_error) + #else + __pyx_t_2 = PySequence_ITEM(__pyx_t_1, __pyx_t_4); __pyx_t_4++; if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 390, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + #endif + } else { + if (__pyx_t_4 >= PyTuple_GET_SIZE(__pyx_t_1)) break; + #if CYTHON_COMPILING_IN_CPYTHON + __pyx_t_2 = PyTuple_GET_ITEM(__pyx_t_1, __pyx_t_4); __Pyx_INCREF(__pyx_t_2); __pyx_t_4++; if (unlikely(0 < 0)) __PYX_ERR(1, 390, __pyx_L1_error) + #else + __pyx_t_2 = PySequence_ITEM(__pyx_t_1, __pyx_t_4); __pyx_t_4++; if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 390, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + #endif + } + } else { + __pyx_t_2 = __pyx_t_5(__pyx_t_1); + if (unlikely(!__pyx_t_2)) { + PyObject* exc_type = PyErr_Occurred(); + if (exc_type) { + if (likely(exc_type == PyExc_StopIteration || PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); + else __PYX_ERR(1, 390, __pyx_L1_error) + } + break; + } + __Pyx_GOTREF(__pyx_t_2); + } + __Pyx_XDECREF_SET(__pyx_v_output, __pyx_t_2); + __pyx_t_2 = 0; + __Pyx_INCREF(__pyx_t_3); + __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_3); + __pyx_t_2 = __Pyx_PyInt_AddObjC(__pyx_t_3, __pyx_int_1, 1, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 390, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_3); + __pyx_t_3 = __pyx_t_2; + __pyx_t_2 = 0; + + /* "talib/_abstract.pxi":391 + * else: + * for i, output in enumerate(self.__outputs): + * self.__outputs[output] = results[i] # <<<<<<<<<<<<<< + * self.__outputs_valid = True + * + */ + __pyx_t_2 = PyObject_GetItem(__pyx_v_results, __pyx_v_i); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 391, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_t_11 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__outputs); if (unlikely(!__pyx_t_11)) __PYX_ERR(1, 391, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_11); + if (unlikely(PyObject_SetItem(__pyx_t_11, __pyx_v_output, __pyx_t_2) < 0)) __PYX_ERR(1, 391, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_abstract.pxi":390 + * self.__outputs[keys[0]] = results + * else: + * for i, output in enumerate(self.__outputs): # <<<<<<<<<<<<<< + * self.__outputs[output] = results[i] + * self.__outputs_valid = True + */ + } + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + } + __pyx_L10:; + + /* "talib/_abstract.pxi":392 + * for i, output in enumerate(self.__outputs): + * self.__outputs[output] = results[i] + * self.__outputs_valid = True # <<<<<<<<<<<<<< + * + * def __get_opt_input_value(self, input_name): + */ + if (__Pyx_PyObject_SetAttrStr(__pyx_v_self, __pyx_n_s_Function__outputs_valid, Py_True) < 0) __PYX_ERR(1, 392, __pyx_L1_error) + + /* "talib/_abstract.pxi":367 + * return input_price_series_names + * + * def __call_function(self): # <<<<<<<<<<<<<< + * input_price_series_names = self.__input_price_series_names() + * + */ + + /* function exit code */ + __pyx_r = Py_None; __Pyx_INCREF(Py_None); + goto __pyx_L0; + __pyx_L1_error:; + __Pyx_XDECREF(__pyx_t_1); + __Pyx_XDECREF(__pyx_t_2); + __Pyx_XDECREF(__pyx_t_3); + __Pyx_XDECREF(__pyx_t_10); + __Pyx_XDECREF(__pyx_t_11); + __Pyx_AddTraceback("talib.c_ta_lib.Function.__call_function", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF(__pyx_v_input_price_series_names); + __Pyx_XDECREF(__pyx_v_args); + __Pyx_XDECREF(__pyx_v_price_series); + __Pyx_XDECREF(__pyx_v_series); + __Pyx_XDECREF(__pyx_v_opt_input); + __Pyx_XDECREF(__pyx_v_value); + __Pyx_XDECREF(__pyx_v_results); + __Pyx_XDECREF(__pyx_v_keys); + __Pyx_XDECREF(__pyx_v_i); + __Pyx_XDECREF(__pyx_v_output); + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "talib/_abstract.pxi":394 + * self.__outputs_valid = True + * + * def __get_opt_input_value(self, input_name): # <<<<<<<<<<<<<< + * """ + * Returns the user-set value if there is one, otherwise the default. + */ + +/* Python wrapper */ +static PyObject *__pyx_pw_5talib_8c_ta_lib_8Function_39__get_opt_input_value(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_8Function_38__get_opt_input_value[] = "\n Returns the user-set value if there is one, otherwise the default.\n "; +static PyMethodDef __pyx_mdef_5talib_8c_ta_lib_8Function_39__get_opt_input_value = {"__get_opt_input_value", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_8Function_39__get_opt_input_value, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_8Function_38__get_opt_input_value}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_8Function_39__get_opt_input_value(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { + PyObject *__pyx_v_self = 0; + PyObject *__pyx_v_input_name = 0; + PyObject *__pyx_r = 0; + __Pyx_RefNannyDeclarations + __Pyx_RefNannySetupContext("__get_opt_input_value (wrapper)", 0); + { + static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_self,&__pyx_n_s_input_name,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_self)) != 0)) kw_args--; + else goto __pyx_L5_argtuple_error; + case 1: + if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_input_name)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("__get_opt_input_value", 1, 2, 2, 1); __PYX_ERR(1, 394, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__get_opt_input_value") < 0)) __PYX_ERR(1, 394, __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_self = values[0]; + __pyx_v_input_name = values[1]; + } + goto __pyx_L4_argument_unpacking_done; + __pyx_L5_argtuple_error:; + __Pyx_RaiseArgtupleInvalid("__get_opt_input_value", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(1, 394, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.Function.__get_opt_input_value", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_RefNannyFinishContext(); + return NULL; + __pyx_L4_argument_unpacking_done:; + __pyx_r = __pyx_pf_5talib_8c_ta_lib_8Function_38__get_opt_input_value(__pyx_self, __pyx_v_self, __pyx_v_input_name); + + /* function exit code */ + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +static PyObject *__pyx_pf_5talib_8c_ta_lib_8Function_38__get_opt_input_value(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self, PyObject *__pyx_v_input_name) { + PyObject *__pyx_v_value = NULL; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + PyObject *__pyx_t_1 = NULL; + PyObject *__pyx_t_2 = NULL; + int __pyx_t_3; + int __pyx_t_4; + __Pyx_RefNannySetupContext("__get_opt_input_value", 0); + + /* "talib/_abstract.pxi":398 + * Returns the user-set value if there is one, otherwise the default. + * """ + * value = self.__opt_inputs[input_name]['value'] # <<<<<<<<<<<<<< + * if value is None: + * value = self.__opt_inputs[input_name]['default_value'] + */ + __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__opt_inputs); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 398, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __pyx_t_2 = PyObject_GetItem(__pyx_t_1, __pyx_v_input_name); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 398, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + __pyx_t_1 = PyObject_GetItem(__pyx_t_2, __pyx_n_s_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 398, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __pyx_v_value = __pyx_t_1; + __pyx_t_1 = 0; + + /* "talib/_abstract.pxi":399 + * """ + * value = self.__opt_inputs[input_name]['value'] + * if value is None: # <<<<<<<<<<<<<< + * value = self.__opt_inputs[input_name]['default_value'] + * return value + */ + __pyx_t_3 = (__pyx_v_value == Py_None); + __pyx_t_4 = (__pyx_t_3 != 0); + if (__pyx_t_4) { + + /* "talib/_abstract.pxi":400 + * value = self.__opt_inputs[input_name]['value'] + * if value is None: + * value = self.__opt_inputs[input_name]['default_value'] # <<<<<<<<<<<<<< + * return value + * + */ + __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_Function__opt_inputs); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 400, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __pyx_t_2 = PyObject_GetItem(__pyx_t_1, __pyx_v_input_name); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 400, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + __pyx_t_1 = PyObject_GetItem(__pyx_t_2, __pyx_n_s_default_value); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 400, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __Pyx_DECREF_SET(__pyx_v_value, __pyx_t_1); + __pyx_t_1 = 0; + + /* "talib/_abstract.pxi":399 + * """ + * value = self.__opt_inputs[input_name]['value'] + * if value is None: # <<<<<<<<<<<<<< + * value = self.__opt_inputs[input_name]['default_value'] + * return value + */ + } + + /* "talib/_abstract.pxi":401 + * if value is None: + * value = self.__opt_inputs[input_name]['default_value'] + * return value # <<<<<<<<<<<<<< + * + * def __repr__(self): + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(__pyx_v_value); + __pyx_r = __pyx_v_value; + goto __pyx_L0; + + /* "talib/_abstract.pxi":394 + * self.__outputs_valid = True + * + * def __get_opt_input_value(self, input_name): # <<<<<<<<<<<<<< + * """ + * Returns the user-set value if there is one, otherwise the default. + */ + + /* function exit code */ + __pyx_L1_error:; + __Pyx_XDECREF(__pyx_t_1); + __Pyx_XDECREF(__pyx_t_2); + __Pyx_AddTraceback("talib.c_ta_lib.Function.__get_opt_input_value", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF(__pyx_v_value); + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "talib/_abstract.pxi":403 + * return value + * + * def __repr__(self): # <<<<<<<<<<<<<< + * return '%s' % self.info + * + */ + +/* Python wrapper */ +static PyObject *__pyx_pw_5talib_8c_ta_lib_8Function_41__repr__(PyObject *__pyx_self, PyObject *__pyx_v_self); /*proto*/ +static PyMethodDef __pyx_mdef_5talib_8c_ta_lib_8Function_41__repr__ = {"__repr__", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_8Function_41__repr__, METH_O, 0}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_8Function_41__repr__(PyObject *__pyx_self, PyObject *__pyx_v_self) { + PyObject *__pyx_r = 0; + __Pyx_RefNannyDeclarations + __Pyx_RefNannySetupContext("__repr__ (wrapper)", 0); + __pyx_r = __pyx_pf_5talib_8c_ta_lib_8Function_40__repr__(__pyx_self, ((PyObject *)__pyx_v_self)); + + /* function exit code */ + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +static PyObject *__pyx_pf_5talib_8c_ta_lib_8Function_40__repr__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self) { + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + PyObject *__pyx_t_1 = NULL; + PyObject *__pyx_t_2 = NULL; + __Pyx_RefNannySetupContext("__repr__", 0); + + /* "talib/_abstract.pxi":404 + * + * def __repr__(self): + * return '%s' % self.info # <<<<<<<<<<<<<< + * + * def __unicode__(self): + */ + __Pyx_XDECREF(__pyx_r); + __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_info); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 404, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __pyx_t_2 = __Pyx_PyString_Format(__pyx_kp_s_s_2, __pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 404, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_abstract.pxi":403 + * return value + * + * def __repr__(self): # <<<<<<<<<<<<<< + * return '%s' % self.info + * + */ + + /* function exit code */ + __pyx_L1_error:; + __Pyx_XDECREF(__pyx_t_1); + __Pyx_XDECREF(__pyx_t_2); + __Pyx_AddTraceback("talib.c_ta_lib.Function.__repr__", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "talib/_abstract.pxi":406 + * return '%s' % self.info + * + * def __unicode__(self): # <<<<<<<<<<<<<< + * return unicode(self.__str__()) + * + */ + +/* Python wrapper */ +static PyObject *__pyx_pw_5talib_8c_ta_lib_8Function_43__unicode__(PyObject *__pyx_self, PyObject *__pyx_v_self); /*proto*/ +static PyMethodDef __pyx_mdef_5talib_8c_ta_lib_8Function_43__unicode__ = {"__unicode__", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_8Function_43__unicode__, METH_O, 0}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_8Function_43__unicode__(PyObject *__pyx_self, PyObject *__pyx_v_self) { + PyObject *__pyx_r = 0; + __Pyx_RefNannyDeclarations + __Pyx_RefNannySetupContext("__unicode__ (wrapper)", 0); + __pyx_r = __pyx_pf_5talib_8c_ta_lib_8Function_42__unicode__(__pyx_self, ((PyObject *)__pyx_v_self)); + + /* function exit code */ + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +static PyObject *__pyx_pf_5talib_8c_ta_lib_8Function_42__unicode__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self) { + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + PyObject *__pyx_t_1 = NULL; + PyObject *__pyx_t_2 = NULL; + PyObject *__pyx_t_3 = NULL; + __Pyx_RefNannySetupContext("__unicode__", 0); + + /* "talib/_abstract.pxi":407 + * + * def __unicode__(self): + * return unicode(self.__str__()) # <<<<<<<<<<<<<< + * + * def __str__(self): + */ + __Pyx_XDECREF(__pyx_r); + __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_str); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 407, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_t_3 = NULL; + if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_2))) { + __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); + if (likely(__pyx_t_3)) { + PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); + __Pyx_INCREF(__pyx_t_3); + __Pyx_INCREF(function); + __Pyx_DECREF_SET(__pyx_t_2, function); + } + } + if (__pyx_t_3) { + __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 407, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + } else { + __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 407, __pyx_L1_error) + } + __Pyx_GOTREF(__pyx_t_1); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 407, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_GIVEREF(__pyx_t_1); + PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_t_1); + __pyx_t_1 = 0; + __pyx_t_1 = __Pyx_PyObject_Call(((PyObject *)(&PyUnicode_Type)), __pyx_t_2, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 407, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __pyx_r = __pyx_t_1; + __pyx_t_1 = 0; + goto __pyx_L0; + + /* "talib/_abstract.pxi":406 + * return '%s' % self.info + * + * def __unicode__(self): # <<<<<<<<<<<<<< + * return unicode(self.__str__()) + * + */ + + /* function exit code */ + __pyx_L1_error:; + __Pyx_XDECREF(__pyx_t_1); + __Pyx_XDECREF(__pyx_t_2); + __Pyx_XDECREF(__pyx_t_3); + __Pyx_AddTraceback("talib.c_ta_lib.Function.__unicode__", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "talib/_abstract.pxi":409 + * return unicode(self.__str__()) + * + * def __str__(self): # <<<<<<<<<<<<<< + * return _get_defaults_and_docs(self.info)[1] # docstring includes defaults + * + */ + +/* Python wrapper */ +static PyObject *__pyx_pw_5talib_8c_ta_lib_8Function_45__str__(PyObject *__pyx_self, PyObject *__pyx_v_self); /*proto*/ +static PyMethodDef __pyx_mdef_5talib_8c_ta_lib_8Function_45__str__ = {"__str__", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_8Function_45__str__, METH_O, 0}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_8Function_45__str__(PyObject *__pyx_self, PyObject *__pyx_v_self) { + PyObject *__pyx_r = 0; + __Pyx_RefNannyDeclarations + __Pyx_RefNannySetupContext("__str__ (wrapper)", 0); + __pyx_r = __pyx_pf_5talib_8c_ta_lib_8Function_44__str__(__pyx_self, ((PyObject *)__pyx_v_self)); + + /* function exit code */ + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +static PyObject *__pyx_pf_5talib_8c_ta_lib_8Function_44__str__(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_self) { + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + PyObject *__pyx_t_1 = NULL; + PyObject *__pyx_t_2 = NULL; + PyObject *__pyx_t_3 = NULL; + PyObject *__pyx_t_4 = NULL; + PyObject *__pyx_t_5 = NULL; + __Pyx_RefNannySetupContext("__str__", 0); + + /* "talib/_abstract.pxi":410 + * + * def __str__(self): + * return _get_defaults_and_docs(self.info)[1] # docstring includes defaults # <<<<<<<<<<<<<< + * + * + */ + __Pyx_XDECREF(__pyx_r); + __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_get_defaults_and_docs); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 410, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_t_3 = __Pyx_PyObject_GetAttrStr(__pyx_v_self, __pyx_n_s_info); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 410, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + __pyx_t_4 = NULL; + if (CYTHON_COMPILING_IN_CPYTHON && unlikely(PyMethod_Check(__pyx_t_2))) { + __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2); + if (likely(__pyx_t_4)) { + PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); + __Pyx_INCREF(__pyx_t_4); + __Pyx_INCREF(function); + __Pyx_DECREF_SET(__pyx_t_2, function); + } + } + if (!__pyx_t_4) { + __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 410, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + __Pyx_GOTREF(__pyx_t_1); + } else { + __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 410, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL; + __Pyx_GIVEREF(__pyx_t_3); + PyTuple_SET_ITEM(__pyx_t_5, 0+1, __pyx_t_3); + __pyx_t_3 = 0; + __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 410, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + } + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __pyx_t_2 = __Pyx_GetItemInt(__pyx_t_1, 1, long, 1, __Pyx_PyInt_From_long, 0, 0, 1); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 410, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_abstract.pxi":409 + * return unicode(self.__str__()) + * + * def __str__(self): # <<<<<<<<<<<<<< + * return _get_defaults_and_docs(self.info)[1] # docstring includes defaults + * + */ + + /* function exit code */ + __pyx_L1_error:; + __Pyx_XDECREF(__pyx_t_1); + __Pyx_XDECREF(__pyx_t_2); + __Pyx_XDECREF(__pyx_t_3); + __Pyx_XDECREF(__pyx_t_4); + __Pyx_XDECREF(__pyx_t_5); + __Pyx_AddTraceback("talib.c_ta_lib.Function.__str__", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "talib/_abstract.pxi":423 + * # therefore recommended over using these functions directly. + * + * def _ta_getGroupTable(): # <<<<<<<<<<<<<< + * """ + * Returns the list of available TALIB function group names. *slow* + */ + +/* Python wrapper */ +static PyObject *__pyx_pw_5talib_8c_ta_lib_335_ta_getGroupTable(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_334_ta_getGroupTable[] = "\n Returns the list of available TALIB function group names. *slow*\n "; +static PyMethodDef __pyx_mdef_5talib_8c_ta_lib_335_ta_getGroupTable = {"_ta_getGroupTable", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_335_ta_getGroupTable, METH_NOARGS, __pyx_doc_5talib_8c_ta_lib_334_ta_getGroupTable}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_335_ta_getGroupTable(PyObject *__pyx_self, CYTHON_UNUSED PyObject *unused) { + PyObject *__pyx_r = 0; + __Pyx_RefNannyDeclarations + __Pyx_RefNannySetupContext("_ta_getGroupTable (wrapper)", 0); + __pyx_r = __pyx_pf_5talib_8c_ta_lib_334_ta_getGroupTable(__pyx_self); + + /* function exit code */ + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +static PyObject *__pyx_pf_5talib_8c_ta_lib_334_ta_getGroupTable(CYTHON_UNUSED PyObject *__pyx_self) { + TA_StringTable *__pyx_v_table; + PyObject *__pyx_v_groups = NULL; + unsigned int __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + PyObject *__pyx_t_1 = NULL; + unsigned int __pyx_t_2; + unsigned int __pyx_t_3; + int __pyx_t_4; + __Pyx_RefNannySetupContext("_ta_getGroupTable", 0); + + /* "talib/_abstract.pxi":428 + * """ + * cdef lib.TA_StringTable *table + * _ta_check_success('TA_GroupTableAlloc', lib.TA_GroupTableAlloc(&table)) # <<<<<<<<<<<<<< + * groups = [] + * for i in xrange(table.size): + */ + __pyx_t_1 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_GroupTableAlloc, TA_GroupTableAlloc((&__pyx_v_table)), 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 428, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + + /* "talib/_abstract.pxi":429 + * cdef lib.TA_StringTable *table + * _ta_check_success('TA_GroupTableAlloc', lib.TA_GroupTableAlloc(&table)) + * groups = [] # <<<<<<<<<<<<<< + * for i in xrange(table.size): + * groups.append(deref(&table.string[i])) + */ + __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 429, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __pyx_v_groups = ((PyObject*)__pyx_t_1); + __pyx_t_1 = 0; + + /* "talib/_abstract.pxi":430 + * _ta_check_success('TA_GroupTableAlloc', lib.TA_GroupTableAlloc(&table)) + * groups = [] + * for i in xrange(table.size): # <<<<<<<<<<<<<< + * groups.append(deref(&table.string[i])) + * _ta_check_success('TA_GroupTableFree', lib.TA_GroupTableFree(table)) + */ + __pyx_t_2 = __pyx_v_table->size; + for (__pyx_t_3 = 0; __pyx_t_3 < __pyx_t_2; __pyx_t_3+=1) { + __pyx_v_i = __pyx_t_3; + + /* "talib/_abstract.pxi":431 + * groups = [] + * for i in xrange(table.size): + * groups.append(deref(&table.string[i])) # <<<<<<<<<<<<<< + * _ta_check_success('TA_GroupTableFree', lib.TA_GroupTableFree(table)) + * return groups + */ + __pyx_t_1 = __Pyx_PyBytes_FromString((*(&(__pyx_v_table->string[__pyx_v_i])))); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 431, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __pyx_t_4 = __Pyx_PyList_Append(__pyx_v_groups, __pyx_t_1); if (unlikely(__pyx_t_4 == -1)) __PYX_ERR(1, 431, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + } + + /* "talib/_abstract.pxi":432 + * for i in xrange(table.size): + * groups.append(deref(&table.string[i])) + * _ta_check_success('TA_GroupTableFree', lib.TA_GroupTableFree(table)) # <<<<<<<<<<<<<< + * return groups + * + */ + __pyx_t_1 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_GroupTableFree, TA_GroupTableFree(__pyx_v_table), 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 432, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + + /* "talib/_abstract.pxi":433 + * groups.append(deref(&table.string[i])) + * _ta_check_success('TA_GroupTableFree', lib.TA_GroupTableFree(table)) + * return groups # <<<<<<<<<<<<<< + * + * def _ta_getFuncTable(char *group): + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(__pyx_v_groups); + __pyx_r = __pyx_v_groups; + goto __pyx_L0; + + /* "talib/_abstract.pxi":423 + * # therefore recommended over using these functions directly. + * + * def _ta_getGroupTable(): # <<<<<<<<<<<<<< + * """ + * Returns the list of available TALIB function group names. *slow* + */ + + /* function exit code */ + __pyx_L1_error:; + __Pyx_XDECREF(__pyx_t_1); + __Pyx_AddTraceback("talib.c_ta_lib._ta_getGroupTable", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF(__pyx_v_groups); + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "talib/_abstract.pxi":435 + * return groups + * + * def _ta_getFuncTable(char *group): # <<<<<<<<<<<<<< + * """ + * Returns a list of the functions for the specified group name. *slow* + */ + +/* Python wrapper */ +static PyObject *__pyx_pw_5talib_8c_ta_lib_337_ta_getFuncTable(PyObject *__pyx_self, PyObject *__pyx_arg_group); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_336_ta_getFuncTable[] = "\n Returns a list of the functions for the specified group name. *slow*\n "; +static PyMethodDef __pyx_mdef_5talib_8c_ta_lib_337_ta_getFuncTable = {"_ta_getFuncTable", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_337_ta_getFuncTable, METH_O, __pyx_doc_5talib_8c_ta_lib_336_ta_getFuncTable}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_337_ta_getFuncTable(PyObject *__pyx_self, PyObject *__pyx_arg_group) { + char *__pyx_v_group; + PyObject *__pyx_r = 0; + __Pyx_RefNannyDeclarations + __Pyx_RefNannySetupContext("_ta_getFuncTable (wrapper)", 0); + assert(__pyx_arg_group); { + __pyx_v_group = __Pyx_PyObject_AsString(__pyx_arg_group); if (unlikely((!__pyx_v_group) && PyErr_Occurred())) __PYX_ERR(1, 435, __pyx_L3_error) + } + goto __pyx_L4_argument_unpacking_done; + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib._ta_getFuncTable", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_RefNannyFinishContext(); + return NULL; + __pyx_L4_argument_unpacking_done:; + __pyx_r = __pyx_pf_5talib_8c_ta_lib_336_ta_getFuncTable(__pyx_self, ((char *)__pyx_v_group)); + + /* function exit code */ + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +static PyObject *__pyx_pf_5talib_8c_ta_lib_336_ta_getFuncTable(CYTHON_UNUSED PyObject *__pyx_self, char *__pyx_v_group) { + TA_StringTable *__pyx_v_table; + PyObject *__pyx_v_functions = NULL; + unsigned int __pyx_v_i; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + PyObject *__pyx_t_1 = NULL; + unsigned int __pyx_t_2; + unsigned int __pyx_t_3; + int __pyx_t_4; + __Pyx_RefNannySetupContext("_ta_getFuncTable", 0); + + /* "talib/_abstract.pxi":440 + * """ + * cdef lib.TA_StringTable *table + * _ta_check_success('TA_FuncTableAlloc', lib.TA_FuncTableAlloc(group, &table)) # <<<<<<<<<<<<<< + * functions = [] + * for i in xrange(table.size): + */ + __pyx_t_1 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_FuncTableAlloc, TA_FuncTableAlloc(__pyx_v_group, (&__pyx_v_table)), 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 440, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + + /* "talib/_abstract.pxi":441 + * cdef lib.TA_StringTable *table + * _ta_check_success('TA_FuncTableAlloc', lib.TA_FuncTableAlloc(group, &table)) + * functions = [] # <<<<<<<<<<<<<< + * for i in xrange(table.size): + * functions.append(deref(&table.string[i])) + */ + __pyx_t_1 = PyList_New(0); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 441, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __pyx_v_functions = ((PyObject*)__pyx_t_1); + __pyx_t_1 = 0; + + /* "talib/_abstract.pxi":442 + * _ta_check_success('TA_FuncTableAlloc', lib.TA_FuncTableAlloc(group, &table)) + * functions = [] + * for i in xrange(table.size): # <<<<<<<<<<<<<< + * functions.append(deref(&table.string[i])) + * _ta_check_success('TA_FuncTableFree', lib.TA_FuncTableFree(table)) + */ + __pyx_t_2 = __pyx_v_table->size; + for (__pyx_t_3 = 0; __pyx_t_3 < __pyx_t_2; __pyx_t_3+=1) { + __pyx_v_i = __pyx_t_3; + + /* "talib/_abstract.pxi":443 + * functions = [] + * for i in xrange(table.size): + * functions.append(deref(&table.string[i])) # <<<<<<<<<<<<<< + * _ta_check_success('TA_FuncTableFree', lib.TA_FuncTableFree(table)) + * return functions + */ + __pyx_t_1 = __Pyx_PyBytes_FromString((*(&(__pyx_v_table->string[__pyx_v_i])))); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 443, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __pyx_t_4 = __Pyx_PyList_Append(__pyx_v_functions, __pyx_t_1); if (unlikely(__pyx_t_4 == -1)) __PYX_ERR(1, 443, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + } + + /* "talib/_abstract.pxi":444 + * for i in xrange(table.size): + * functions.append(deref(&table.string[i])) + * _ta_check_success('TA_FuncTableFree', lib.TA_FuncTableFree(table)) # <<<<<<<<<<<<<< + * return functions + * + */ + __pyx_t_1 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_FuncTableFree, TA_FuncTableFree(__pyx_v_table), 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 444, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + + /* "talib/_abstract.pxi":445 + * functions.append(deref(&table.string[i])) + * _ta_check_success('TA_FuncTableFree', lib.TA_FuncTableFree(table)) + * return functions # <<<<<<<<<<<<<< + * + * def __get_flags(int flag, dict flags_lookup_dict): + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(__pyx_v_functions); + __pyx_r = __pyx_v_functions; + goto __pyx_L0; + + /* "talib/_abstract.pxi":435 + * return groups + * + * def _ta_getFuncTable(char *group): # <<<<<<<<<<<<<< + * """ + * Returns a list of the functions for the specified group name. *slow* + */ + + /* function exit code */ + __pyx_L1_error:; + __Pyx_XDECREF(__pyx_t_1); + __Pyx_AddTraceback("talib.c_ta_lib._ta_getFuncTable", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF(__pyx_v_functions); + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "talib/_abstract.pxi":447 + * return functions + * + * def __get_flags(int flag, dict flags_lookup_dict): # <<<<<<<<<<<<<< + * """ + * TA-LIB provides hints for multiple flags as a bitwise-ORed int. + */ + +/* Python wrapper */ +static PyObject *__pyx_pw_5talib_8c_ta_lib_339__get_flags(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_338__get_flags[] = "\n TA-LIB provides hints for multiple flags as a bitwise-ORed int.\n This function returns the flags from flag found in the provided\n flags_lookup_dict.\n "; +static PyMethodDef __pyx_mdef_5talib_8c_ta_lib_339__get_flags = {"__get_flags", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_339__get_flags, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_338__get_flags}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_339__get_flags(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { + int __pyx_v_flag; + PyObject *__pyx_v_flags_lookup_dict = 0; + PyObject *__pyx_r = 0; + __Pyx_RefNannyDeclarations + __Pyx_RefNannySetupContext("__get_flags (wrapper)", 0); + { + static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_flag,&__pyx_n_s_flags_lookup_dict,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_flag)) != 0)) kw_args--; + else goto __pyx_L5_argtuple_error; + case 1: + if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_flags_lookup_dict)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("__get_flags", 1, 2, 2, 1); __PYX_ERR(1, 447, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "__get_flags") < 0)) __PYX_ERR(1, 447, __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_flag = __Pyx_PyInt_As_int(values[0]); if (unlikely((__pyx_v_flag == (int)-1) && PyErr_Occurred())) __PYX_ERR(1, 447, __pyx_L3_error) + __pyx_v_flags_lookup_dict = ((PyObject*)values[1]); + } + goto __pyx_L4_argument_unpacking_done; + __pyx_L5_argtuple_error:; + __Pyx_RaiseArgtupleInvalid("__get_flags", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(1, 447, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.__get_flags", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_RefNannyFinishContext(); + return NULL; + __pyx_L4_argument_unpacking_done:; + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_flags_lookup_dict), (&PyDict_Type), 1, "flags_lookup_dict", 1))) __PYX_ERR(1, 447, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_338__get_flags(__pyx_self, __pyx_v_flag, __pyx_v_flags_lookup_dict); + + /* function exit code */ + goto __pyx_L0; + __pyx_L1_error:; + __pyx_r = NULL; + __pyx_L0:; + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +static PyObject *__pyx_pf_5talib_8c_ta_lib_338__get_flags(CYTHON_UNUSED PyObject *__pyx_self, int __pyx_v_flag, PyObject *__pyx_v_flags_lookup_dict) { + PyObject *__pyx_v_value_range = NULL; + PyObject *__pyx_v_min_int = NULL; + PyObject *__pyx_v_max_int = NULL; + PyObject *__pyx_v_ret = NULL; + PyObject *__pyx_v_i = NULL; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + PyObject *__pyx_t_1 = NULL; + int __pyx_t_2; + int __pyx_t_3; + PyObject *__pyx_t_4 = NULL; + PyObject *__pyx_t_5 = NULL; + PyObject *__pyx_t_6 = NULL; + Py_ssize_t __pyx_t_7; + PyObject *__pyx_t_8 = NULL; + PyObject *(*__pyx_t_9)(PyObject *); + int __pyx_t_10; + __Pyx_RefNannySetupContext("__get_flags", 0); + + /* "talib/_abstract.pxi":453 + * flags_lookup_dict. + * """ + * value_range = flags_lookup_dict.keys() # <<<<<<<<<<<<<< + * if not isinstance(value_range, list): + * value_range = list(value_range) + */ + if (unlikely(__pyx_v_flags_lookup_dict == Py_None)) { + PyErr_Format(PyExc_AttributeError, "'NoneType' object has no attribute '%s'", "keys"); + __PYX_ERR(1, 453, __pyx_L1_error) + } + __pyx_t_1 = __Pyx_PyDict_Keys(__pyx_v_flags_lookup_dict); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 453, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __pyx_v_value_range = __pyx_t_1; + __pyx_t_1 = 0; + + /* "talib/_abstract.pxi":454 + * """ + * value_range = flags_lookup_dict.keys() + * if not isinstance(value_range, list): # <<<<<<<<<<<<<< + * value_range = list(value_range) + * min_int = int(math.log(min(value_range), 2)) + */ + __pyx_t_2 = PyList_Check(__pyx_v_value_range); + __pyx_t_3 = ((!(__pyx_t_2 != 0)) != 0); + if (__pyx_t_3) { + + /* "talib/_abstract.pxi":455 + * value_range = flags_lookup_dict.keys() + * if not isinstance(value_range, list): + * value_range = list(value_range) # <<<<<<<<<<<<<< + * min_int = int(math.log(min(value_range), 2)) + * max_int = int(math.log(max(value_range), 2)) + */ + __pyx_t_1 = PySequence_List(__pyx_v_value_range); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 455, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __Pyx_DECREF_SET(__pyx_v_value_range, __pyx_t_1); + __pyx_t_1 = 0; + + /* "talib/_abstract.pxi":454 + * """ + * value_range = flags_lookup_dict.keys() + * if not isinstance(value_range, list): # <<<<<<<<<<<<<< + * value_range = list(value_range) + * min_int = int(math.log(min(value_range), 2)) + */ + } + + /* "talib/_abstract.pxi":456 + * if not isinstance(value_range, list): + * value_range = list(value_range) + * min_int = int(math.log(min(value_range), 2)) # <<<<<<<<<<<<<< + * max_int = int(math.log(max(value_range), 2)) + * + */ + __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_math); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 456, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_log); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 456, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 456, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + __Pyx_INCREF(__pyx_v_value_range); + __Pyx_GIVEREF(__pyx_v_value_range); + PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_v_value_range); + __pyx_t_6 = __Pyx_PyObject_Call(__pyx_builtin_min, __pyx_t_4, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 456, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_6); + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + __pyx_t_4 = NULL; + __pyx_t_7 = 0; + if (CYTHON_COMPILING_IN_CPYTHON && unlikely(PyMethod_Check(__pyx_t_5))) { + __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_5); + if (likely(__pyx_t_4)) { + PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); + __Pyx_INCREF(__pyx_t_4); + __Pyx_INCREF(function); + __Pyx_DECREF_SET(__pyx_t_5, function); + __pyx_t_7 = 1; + } + } + __pyx_t_8 = PyTuple_New(2+__pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 456, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_8); + if (__pyx_t_4) { + __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_4); __pyx_t_4 = NULL; + } + __Pyx_GIVEREF(__pyx_t_6); + PyTuple_SET_ITEM(__pyx_t_8, 0+__pyx_t_7, __pyx_t_6); + __Pyx_INCREF(__pyx_int_2); + __Pyx_GIVEREF(__pyx_int_2); + PyTuple_SET_ITEM(__pyx_t_8, 1+__pyx_t_7, __pyx_int_2); + __pyx_t_6 = 0; + __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_5, __pyx_t_8, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 456, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_t_1); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 456, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + __pyx_v_min_int = __pyx_t_5; + __pyx_t_5 = 0; + + /* "talib/_abstract.pxi":457 + * value_range = list(value_range) + * min_int = int(math.log(min(value_range), 2)) + * max_int = int(math.log(max(value_range), 2)) # <<<<<<<<<<<<<< + * + * # if the flag we got is out-of-range, it just means no extra info provided + */ + __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_math); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 457, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __pyx_t_8 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_log); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 457, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_8); + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + __pyx_t_1 = PyTuple_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 457, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __Pyx_INCREF(__pyx_v_value_range); + __Pyx_GIVEREF(__pyx_v_value_range); + PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_value_range); + __pyx_t_6 = __Pyx_PyObject_Call(__pyx_builtin_max, __pyx_t_1, NULL); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 457, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_6); + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + __pyx_t_1 = NULL; + __pyx_t_7 = 0; + if (CYTHON_COMPILING_IN_CPYTHON && unlikely(PyMethod_Check(__pyx_t_8))) { + __pyx_t_1 = PyMethod_GET_SELF(__pyx_t_8); + if (likely(__pyx_t_1)) { + PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_8); + __Pyx_INCREF(__pyx_t_1); + __Pyx_INCREF(function); + __Pyx_DECREF_SET(__pyx_t_8, function); + __pyx_t_7 = 1; + } + } + __pyx_t_4 = PyTuple_New(2+__pyx_t_7); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 457, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (__pyx_t_1) { + __Pyx_GIVEREF(__pyx_t_1); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_1); __pyx_t_1 = NULL; + } + __Pyx_GIVEREF(__pyx_t_6); + PyTuple_SET_ITEM(__pyx_t_4, 0+__pyx_t_7, __pyx_t_6); + __Pyx_INCREF(__pyx_int_2); + __Pyx_GIVEREF(__pyx_int_2); + PyTuple_SET_ITEM(__pyx_t_4, 1+__pyx_t_7, __pyx_int_2); + __pyx_t_6 = 0; + __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_8, __pyx_t_4, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 457, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; + __pyx_t_8 = __Pyx_PyNumber_Int(__pyx_t_5); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 457, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_8); + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + __pyx_v_max_int = __pyx_t_8; + __pyx_t_8 = 0; + + /* "talib/_abstract.pxi":460 + * + * # if the flag we got is out-of-range, it just means no extra info provided + * if flag < 1 or flag > 2**max_int: # <<<<<<<<<<<<<< + * return None + * + */ + __pyx_t_2 = ((__pyx_v_flag < 1) != 0); + if (!__pyx_t_2) { + } else { + __pyx_t_3 = __pyx_t_2; + goto __pyx_L5_bool_binop_done; + } + __pyx_t_8 = __Pyx_PyInt_From_int(__pyx_v_flag); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 460, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_8); + __pyx_t_5 = __Pyx_PyNumber_PowerOf2(__pyx_int_2, __pyx_v_max_int, Py_None); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 460, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + __pyx_t_4 = PyObject_RichCompare(__pyx_t_8, __pyx_t_5, Py_GT); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 460, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + __pyx_t_2 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_2 < 0)) __PYX_ERR(1, 460, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + __pyx_t_3 = __pyx_t_2; + __pyx_L5_bool_binop_done:; + if (__pyx_t_3) { + + /* "talib/_abstract.pxi":461 + * # if the flag we got is out-of-range, it just means no extra info provided + * if flag < 1 or flag > 2**max_int: + * return None # <<<<<<<<<<<<<< + * + * # In this loop, i is essentially the bit-position, which represents an + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(Py_None); + __pyx_r = Py_None; + goto __pyx_L0; + + /* "talib/_abstract.pxi":460 + * + * # if the flag we got is out-of-range, it just means no extra info provided + * if flag < 1 or flag > 2**max_int: # <<<<<<<<<<<<<< + * return None + * + */ + } + + /* "talib/_abstract.pxi":466 + * # input from flags_lookup_dict. We loop through as many flags_lookup_dict + * # bit-positions as we need to check, bitwise-ANDing each with flag for a hit. + * ret = [] # <<<<<<<<<<<<<< + * for i in xrange(min_int, max_int+1): + * if 2**i & flag: + */ + __pyx_t_4 = PyList_New(0); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 466, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + __pyx_v_ret = ((PyObject*)__pyx_t_4); + __pyx_t_4 = 0; + + /* "talib/_abstract.pxi":467 + * # bit-positions as we need to check, bitwise-ANDing each with flag for a hit. + * ret = [] + * for i in xrange(min_int, max_int+1): # <<<<<<<<<<<<<< + * if 2**i & flag: + * ret.append(flags_lookup_dict[2**i]) + */ + __pyx_t_4 = __Pyx_PyInt_AddObjC(__pyx_v_max_int, __pyx_int_1, 1, 0); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 467, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 467, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + __Pyx_INCREF(__pyx_v_min_int); + __Pyx_GIVEREF(__pyx_v_min_int); + PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_v_min_int); + __Pyx_GIVEREF(__pyx_t_4); + PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_4); + __pyx_t_4 = 0; + __pyx_t_4 = __Pyx_PyObject_Call(__pyx_builtin_xrange, __pyx_t_5, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 467, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + if (likely(PyList_CheckExact(__pyx_t_4)) || PyTuple_CheckExact(__pyx_t_4)) { + __pyx_t_5 = __pyx_t_4; __Pyx_INCREF(__pyx_t_5); __pyx_t_7 = 0; + __pyx_t_9 = NULL; + } else { + __pyx_t_7 = -1; __pyx_t_5 = PyObject_GetIter(__pyx_t_4); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 467, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + __pyx_t_9 = Py_TYPE(__pyx_t_5)->tp_iternext; if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 467, __pyx_L1_error) + } + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + for (;;) { + if (likely(!__pyx_t_9)) { + if (likely(PyList_CheckExact(__pyx_t_5))) { + if (__pyx_t_7 >= PyList_GET_SIZE(__pyx_t_5)) break; + #if CYTHON_COMPILING_IN_CPYTHON + __pyx_t_4 = PyList_GET_ITEM(__pyx_t_5, __pyx_t_7); __Pyx_INCREF(__pyx_t_4); __pyx_t_7++; if (unlikely(0 < 0)) __PYX_ERR(1, 467, __pyx_L1_error) + #else + __pyx_t_4 = PySequence_ITEM(__pyx_t_5, __pyx_t_7); __pyx_t_7++; if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 467, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + #endif + } else { + if (__pyx_t_7 >= PyTuple_GET_SIZE(__pyx_t_5)) break; + #if CYTHON_COMPILING_IN_CPYTHON + __pyx_t_4 = PyTuple_GET_ITEM(__pyx_t_5, __pyx_t_7); __Pyx_INCREF(__pyx_t_4); __pyx_t_7++; if (unlikely(0 < 0)) __PYX_ERR(1, 467, __pyx_L1_error) + #else + __pyx_t_4 = PySequence_ITEM(__pyx_t_5, __pyx_t_7); __pyx_t_7++; if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 467, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + #endif + } + } else { + __pyx_t_4 = __pyx_t_9(__pyx_t_5); + if (unlikely(!__pyx_t_4)) { + PyObject* exc_type = PyErr_Occurred(); + if (exc_type) { + if (likely(exc_type == PyExc_StopIteration || PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); + else __PYX_ERR(1, 467, __pyx_L1_error) + } + break; + } + __Pyx_GOTREF(__pyx_t_4); + } + __Pyx_XDECREF_SET(__pyx_v_i, __pyx_t_4); + __pyx_t_4 = 0; + + /* "talib/_abstract.pxi":468 + * ret = [] + * for i in xrange(min_int, max_int+1): + * if 2**i & flag: # <<<<<<<<<<<<<< + * ret.append(flags_lookup_dict[2**i]) + * return ret + */ + __pyx_t_4 = __Pyx_PyNumber_PowerOf2(__pyx_int_2, __pyx_v_i, Py_None); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 468, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + __pyx_t_8 = __Pyx_PyInt_From_int(__pyx_v_flag); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 468, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_8); + __pyx_t_6 = PyNumber_And(__pyx_t_4, __pyx_t_8); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 468, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_6); + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; + __pyx_t_3 = __Pyx_PyObject_IsTrue(__pyx_t_6); if (unlikely(__pyx_t_3 < 0)) __PYX_ERR(1, 468, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; + if (__pyx_t_3) { + + /* "talib/_abstract.pxi":469 + * for i in xrange(min_int, max_int+1): + * if 2**i & flag: + * ret.append(flags_lookup_dict[2**i]) # <<<<<<<<<<<<<< + * return ret + * + */ + if (unlikely(__pyx_v_flags_lookup_dict == Py_None)) { + PyErr_SetString(PyExc_TypeError, "'NoneType' object is not subscriptable"); + __PYX_ERR(1, 469, __pyx_L1_error) + } + __pyx_t_6 = __Pyx_PyNumber_PowerOf2(__pyx_int_2, __pyx_v_i, Py_None); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 469, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_6); + __pyx_t_8 = __Pyx_PyDict_GetItem(__pyx_v_flags_lookup_dict, __pyx_t_6); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 469, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_8); + __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; + __pyx_t_10 = __Pyx_PyList_Append(__pyx_v_ret, __pyx_t_8); if (unlikely(__pyx_t_10 == -1)) __PYX_ERR(1, 469, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; + + /* "talib/_abstract.pxi":468 + * ret = [] + * for i in xrange(min_int, max_int+1): + * if 2**i & flag: # <<<<<<<<<<<<<< + * ret.append(flags_lookup_dict[2**i]) + * return ret + */ + } + + /* "talib/_abstract.pxi":467 + * # bit-positions as we need to check, bitwise-ANDing each with flag for a hit. + * ret = [] + * for i in xrange(min_int, max_int+1): # <<<<<<<<<<<<<< + * if 2**i & flag: + * ret.append(flags_lookup_dict[2**i]) + */ + } + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + + /* "talib/_abstract.pxi":470 + * if 2**i & flag: + * ret.append(flags_lookup_dict[2**i]) + * return ret # <<<<<<<<<<<<<< + * + * TA_FUNC_FLAGS = { + */ + __Pyx_XDECREF(__pyx_r); + __Pyx_INCREF(__pyx_v_ret); + __pyx_r = __pyx_v_ret; + goto __pyx_L0; + + /* "talib/_abstract.pxi":447 + * return functions + * + * def __get_flags(int flag, dict flags_lookup_dict): # <<<<<<<<<<<<<< + * """ + * TA-LIB provides hints for multiple flags as a bitwise-ORed int. + */ + + /* function exit code */ + __pyx_L1_error:; + __Pyx_XDECREF(__pyx_t_1); + __Pyx_XDECREF(__pyx_t_4); + __Pyx_XDECREF(__pyx_t_5); + __Pyx_XDECREF(__pyx_t_6); + __Pyx_XDECREF(__pyx_t_8); + __Pyx_AddTraceback("talib.c_ta_lib.__get_flags", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF(__pyx_v_value_range); + __Pyx_XDECREF(__pyx_v_min_int); + __Pyx_XDECREF(__pyx_v_max_int); + __Pyx_XDECREF(__pyx_v_ret); + __Pyx_XDECREF(__pyx_v_i); + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "talib/_abstract.pxi":506 + * } + * + * def _ta_getFuncInfo(char *function_name): # <<<<<<<<<<<<<< + * """ + * Returns the info dict for the function. It has the following keys: name, + */ + +/* Python wrapper */ +static PyObject *__pyx_pw_5talib_8c_ta_lib_341_ta_getFuncInfo(PyObject *__pyx_self, PyObject *__pyx_arg_function_name); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_340_ta_getFuncInfo[] = "\n Returns the info dict for the function. It has the following keys: name,\n group, help, flags, num_inputs, num_opt_inputs and num_outputs.\n "; +static PyMethodDef __pyx_mdef_5talib_8c_ta_lib_341_ta_getFuncInfo = {"_ta_getFuncInfo", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_341_ta_getFuncInfo, METH_O, __pyx_doc_5talib_8c_ta_lib_340_ta_getFuncInfo}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_341_ta_getFuncInfo(PyObject *__pyx_self, PyObject *__pyx_arg_function_name) { + char *__pyx_v_function_name; + PyObject *__pyx_r = 0; + __Pyx_RefNannyDeclarations + __Pyx_RefNannySetupContext("_ta_getFuncInfo (wrapper)", 0); + assert(__pyx_arg_function_name); { + __pyx_v_function_name = __Pyx_PyObject_AsString(__pyx_arg_function_name); if (unlikely((!__pyx_v_function_name) && PyErr_Occurred())) __PYX_ERR(1, 506, __pyx_L3_error) + } + goto __pyx_L4_argument_unpacking_done; + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib._ta_getFuncInfo", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_RefNannyFinishContext(); + return NULL; + __pyx_L4_argument_unpacking_done:; + __pyx_r = __pyx_pf_5talib_8c_ta_lib_340_ta_getFuncInfo(__pyx_self, ((char *)__pyx_v_function_name)); + + /* function exit code */ + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +static PyObject *__pyx_pf_5talib_8c_ta_lib_340_ta_getFuncInfo(CYTHON_UNUSED PyObject *__pyx_self, char *__pyx_v_function_name) { + TA_FuncInfo *__pyx_v_info; + TA_RetCode __pyx_v_retCode; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + PyObject *__pyx_t_1 = NULL; + PyObject *__pyx_t_2 = NULL; + PyObject *__pyx_t_3 = NULL; + PyObject *__pyx_t_4 = NULL; + PyObject *__pyx_t_5 = NULL; + PyObject *__pyx_t_6 = NULL; + Py_ssize_t __pyx_t_7; + PyObject *__pyx_t_8 = NULL; + __Pyx_RefNannySetupContext("_ta_getFuncInfo", 0); + + /* "talib/_abstract.pxi":512 + * """ + * cdef lib.TA_FuncInfo *info + * retCode = lib.TA_GetFuncInfo(__ta_getFuncHandle(function_name), &info) # <<<<<<<<<<<<<< + * _ta_check_success('TA_GetFuncInfo', retCode) + * + */ + __pyx_v_retCode = TA_GetFuncInfo(__pyx_f_5talib_8c_ta_lib___ta_getFuncHandle(__pyx_v_function_name), (&__pyx_v_info)); + + /* "talib/_abstract.pxi":513 + * cdef lib.TA_FuncInfo *info + * retCode = lib.TA_GetFuncInfo(__ta_getFuncHandle(function_name), &info) + * _ta_check_success('TA_GetFuncInfo', retCode) # <<<<<<<<<<<<<< + * + * return { + */ + __pyx_t_1 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_GetFuncInfo, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 513, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + + /* "talib/_abstract.pxi":515 + * _ta_check_success('TA_GetFuncInfo', retCode) + * + * return { # <<<<<<<<<<<<<< + * 'name': bytes2str(info.name), + * 'group': bytes2str(info.group), + */ + __Pyx_XDECREF(__pyx_r); + + /* "talib/_abstract.pxi":516 + * + * return { + * 'name': bytes2str(info.name), # <<<<<<<<<<<<<< + * 'group': bytes2str(info.group), + * 'display_name': bytes2str(info.hint), + */ + __pyx_t_1 = PyDict_New(); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 516, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_bytes2str); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 516, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + __pyx_t_4 = __Pyx_PyBytes_FromString(__pyx_v_info->name); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 516, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + __pyx_t_5 = NULL; + if (CYTHON_COMPILING_IN_CPYTHON && unlikely(PyMethod_Check(__pyx_t_3))) { + __pyx_t_5 = PyMethod_GET_SELF(__pyx_t_3); + if (likely(__pyx_t_5)) { + PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); + __Pyx_INCREF(__pyx_t_5); + __Pyx_INCREF(function); + __Pyx_DECREF_SET(__pyx_t_3, function); + } + } + if (!__pyx_t_5) { + __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_4); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 516, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + __Pyx_GOTREF(__pyx_t_2); + } else { + __pyx_t_6 = PyTuple_New(1+1); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 516, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_6); + __Pyx_GIVEREF(__pyx_t_5); PyTuple_SET_ITEM(__pyx_t_6, 0, __pyx_t_5); __pyx_t_5 = NULL; + __Pyx_GIVEREF(__pyx_t_4); + PyTuple_SET_ITEM(__pyx_t_6, 0+1, __pyx_t_4); + __pyx_t_4 = 0; + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_6, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 516, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; + } + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_name, __pyx_t_2) < 0) __PYX_ERR(1, 516, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_abstract.pxi":517 + * return { + * 'name': bytes2str(info.name), + * 'group': bytes2str(info.group), # <<<<<<<<<<<<<< + * 'display_name': bytes2str(info.hint), + * 'function_flags': __get_flags(info.flags, TA_FUNC_FLAGS), + */ + __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_bytes2str); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 517, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + __pyx_t_6 = __Pyx_PyBytes_FromString(__pyx_v_info->group); if (unlikely(!__pyx_t_6)) __PYX_ERR(1, 517, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_6); + __pyx_t_4 = NULL; + if (CYTHON_COMPILING_IN_CPYTHON && unlikely(PyMethod_Check(__pyx_t_3))) { + __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_3); + if (likely(__pyx_t_4)) { + PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); + __Pyx_INCREF(__pyx_t_4); + __Pyx_INCREF(function); + __Pyx_DECREF_SET(__pyx_t_3, function); + } + } + if (!__pyx_t_4) { + __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_6); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 517, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; + __Pyx_GOTREF(__pyx_t_2); + } else { + __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 517, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL; + __Pyx_GIVEREF(__pyx_t_6); + PyTuple_SET_ITEM(__pyx_t_5, 0+1, __pyx_t_6); + __pyx_t_6 = 0; + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_5, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 517, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + } + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_group, __pyx_t_2) < 0) __PYX_ERR(1, 516, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_abstract.pxi":518 + * 'name': bytes2str(info.name), + * 'group': bytes2str(info.group), + * 'display_name': bytes2str(info.hint), # <<<<<<<<<<<<<< + * 'function_flags': __get_flags(info.flags, TA_FUNC_FLAGS), + * 'num_inputs': int(info.nbInput), + */ + __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_bytes2str); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 518, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + __pyx_t_5 = __Pyx_PyBytes_FromString(__pyx_v_info->hint); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 518, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + __pyx_t_6 = NULL; + if (CYTHON_COMPILING_IN_CPYTHON && unlikely(PyMethod_Check(__pyx_t_3))) { + __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_3); + if (likely(__pyx_t_6)) { + PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); + __Pyx_INCREF(__pyx_t_6); + __Pyx_INCREF(function); + __Pyx_DECREF_SET(__pyx_t_3, function); + } + } + if (!__pyx_t_6) { + __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_3, __pyx_t_5); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 518, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + __Pyx_GOTREF(__pyx_t_2); + } else { + __pyx_t_4 = PyTuple_New(1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 518, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_t_6); __pyx_t_6 = NULL; + __Pyx_GIVEREF(__pyx_t_5); + PyTuple_SET_ITEM(__pyx_t_4, 0+1, __pyx_t_5); + __pyx_t_5 = 0; + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_4, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 518, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + } + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_display_name, __pyx_t_2) < 0) __PYX_ERR(1, 516, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_abstract.pxi":519 + * 'group': bytes2str(info.group), + * 'display_name': bytes2str(info.hint), + * 'function_flags': __get_flags(info.flags, TA_FUNC_FLAGS), # <<<<<<<<<<<<<< + * 'num_inputs': int(info.nbInput), + * 'num_opt_inputs': int(info.nbOptInput), + */ + __pyx_t_3 = __Pyx_GetModuleGlobalName(__pyx_n_s_get_flags); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 519, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + __pyx_t_4 = __Pyx_PyInt_From_TA_FuncFlags(__pyx_v_info->flags); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 519, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + __pyx_t_5 = __Pyx_GetModuleGlobalName(__pyx_n_s_TA_FUNC_FLAGS); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 519, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + __pyx_t_6 = NULL; + __pyx_t_7 = 0; + if (CYTHON_COMPILING_IN_CPYTHON && unlikely(PyMethod_Check(__pyx_t_3))) { + __pyx_t_6 = PyMethod_GET_SELF(__pyx_t_3); + if (likely(__pyx_t_6)) { + PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_3); + __Pyx_INCREF(__pyx_t_6); + __Pyx_INCREF(function); + __Pyx_DECREF_SET(__pyx_t_3, function); + __pyx_t_7 = 1; + } + } + __pyx_t_8 = PyTuple_New(2+__pyx_t_7); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 519, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_8); + if (__pyx_t_6) { + __Pyx_GIVEREF(__pyx_t_6); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_6); __pyx_t_6 = NULL; + } + __Pyx_GIVEREF(__pyx_t_4); + PyTuple_SET_ITEM(__pyx_t_8, 0+__pyx_t_7, __pyx_t_4); + __Pyx_GIVEREF(__pyx_t_5); + PyTuple_SET_ITEM(__pyx_t_8, 1+__pyx_t_7, __pyx_t_5); + __pyx_t_4 = 0; + __pyx_t_5 = 0; + __pyx_t_2 = __Pyx_PyObject_Call(__pyx_t_3, __pyx_t_8, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 519, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_function_flags, __pyx_t_2) < 0) __PYX_ERR(1, 516, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_abstract.pxi":520 + * 'display_name': bytes2str(info.hint), + * 'function_flags': __get_flags(info.flags, TA_FUNC_FLAGS), + * 'num_inputs': int(info.nbInput), # <<<<<<<<<<<<<< + * 'num_opt_inputs': int(info.nbOptInput), + * 'num_outputs': int(info.nbOutput) + */ + __pyx_t_2 = __Pyx_PyInt_From_unsigned_int(__pyx_v_info->nbInput); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 520, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 520, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + __Pyx_GIVEREF(__pyx_t_2); + PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_2); + __pyx_t_2 = 0; + __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)(&PyInt_Type)), __pyx_t_3, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 520, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_num_inputs, __pyx_t_2) < 0) __PYX_ERR(1, 516, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_abstract.pxi":521 + * 'function_flags': __get_flags(info.flags, TA_FUNC_FLAGS), + * 'num_inputs': int(info.nbInput), + * 'num_opt_inputs': int(info.nbOptInput), # <<<<<<<<<<<<<< + * 'num_outputs': int(info.nbOutput) + * } + */ + __pyx_t_2 = __Pyx_PyInt_From_unsigned_int(__pyx_v_info->nbOptInput); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 521, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 521, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + __Pyx_GIVEREF(__pyx_t_2); + PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_2); + __pyx_t_2 = 0; + __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)(&PyInt_Type)), __pyx_t_3, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 521, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_num_opt_inputs, __pyx_t_2) < 0) __PYX_ERR(1, 516, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_abstract.pxi":522 + * 'num_inputs': int(info.nbInput), + * 'num_opt_inputs': int(info.nbOptInput), + * 'num_outputs': int(info.nbOutput) # <<<<<<<<<<<<<< + * } + * + */ + __pyx_t_2 = __Pyx_PyInt_From_unsigned_int(__pyx_v_info->nbOutput); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 522, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_t_3 = PyTuple_New(1); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 522, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + __Pyx_GIVEREF(__pyx_t_2); + PyTuple_SET_ITEM(__pyx_t_3, 0, __pyx_t_2); + __pyx_t_2 = 0; + __pyx_t_2 = __Pyx_PyObject_Call(((PyObject *)(&PyInt_Type)), __pyx_t_3, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 522, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_num_outputs, __pyx_t_2) < 0) __PYX_ERR(1, 516, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __pyx_r = __pyx_t_1; + __pyx_t_1 = 0; + goto __pyx_L0; + + /* "talib/_abstract.pxi":506 + * } + * + * def _ta_getFuncInfo(char *function_name): # <<<<<<<<<<<<<< + * """ + * Returns the info dict for the function. It has the following keys: name, + */ + + /* function exit code */ + __pyx_L1_error:; + __Pyx_XDECREF(__pyx_t_1); + __Pyx_XDECREF(__pyx_t_2); + __Pyx_XDECREF(__pyx_t_3); + __Pyx_XDECREF(__pyx_t_4); + __Pyx_XDECREF(__pyx_t_5); + __Pyx_XDECREF(__pyx_t_6); + __Pyx_XDECREF(__pyx_t_8); + __Pyx_AddTraceback("talib.c_ta_lib._ta_getFuncInfo", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "talib/_abstract.pxi":525 + * } + * + * def _ta_getInputParameterInfo(char *function_name, int idx): # <<<<<<<<<<<<<< + * """ + * Returns the function's input info dict for the given index. It has two + */ + +/* Python wrapper */ +static PyObject *__pyx_pw_5talib_8c_ta_lib_343_ta_getInputParameterInfo(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_342_ta_getInputParameterInfo[] = "\n Returns the function's input info dict for the given index. It has two\n keys: name and flags.\n "; +static PyMethodDef __pyx_mdef_5talib_8c_ta_lib_343_ta_getInputParameterInfo = {"_ta_getInputParameterInfo", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_343_ta_getInputParameterInfo, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_342_ta_getInputParameterInfo}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_343_ta_getInputParameterInfo(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { + char *__pyx_v_function_name; + int __pyx_v_idx; + PyObject *__pyx_r = 0; + __Pyx_RefNannyDeclarations + __Pyx_RefNannySetupContext("_ta_getInputParameterInfo (wrapper)", 0); + { + static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_function_name,&__pyx_n_s_idx,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_function_name)) != 0)) kw_args--; + else goto __pyx_L5_argtuple_error; + case 1: + if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_idx)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("_ta_getInputParameterInfo", 1, 2, 2, 1); __PYX_ERR(1, 525, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "_ta_getInputParameterInfo") < 0)) __PYX_ERR(1, 525, __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_function_name = __Pyx_PyObject_AsString(values[0]); if (unlikely((!__pyx_v_function_name) && PyErr_Occurred())) __PYX_ERR(1, 525, __pyx_L3_error) + __pyx_v_idx = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_idx == (int)-1) && PyErr_Occurred())) __PYX_ERR(1, 525, __pyx_L3_error) + } + goto __pyx_L4_argument_unpacking_done; + __pyx_L5_argtuple_error:; + __Pyx_RaiseArgtupleInvalid("_ta_getInputParameterInfo", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(1, 525, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib._ta_getInputParameterInfo", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_RefNannyFinishContext(); + return NULL; + __pyx_L4_argument_unpacking_done:; + __pyx_r = __pyx_pf_5talib_8c_ta_lib_342_ta_getInputParameterInfo(__pyx_self, __pyx_v_function_name, __pyx_v_idx); + + /* function exit code */ + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +static PyObject *__pyx_pf_5talib_8c_ta_lib_342_ta_getInputParameterInfo(CYTHON_UNUSED PyObject *__pyx_self, char *__pyx_v_function_name, int __pyx_v_idx) { + TA_InputParameterInfo *__pyx_v_info; + TA_RetCode __pyx_v_retCode; + PyObject *__pyx_v_name = NULL; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + PyObject *__pyx_t_1 = NULL; + PyObject *__pyx_t_2 = NULL; + PyObject *__pyx_t_3 = NULL; + PyObject *__pyx_t_4 = NULL; + PyObject *__pyx_t_5 = NULL; + Py_ssize_t __pyx_t_6; + int __pyx_t_7; + int __pyx_t_8; + PyObject *__pyx_t_9 = NULL; + PyObject *__pyx_t_10 = NULL; + __Pyx_RefNannySetupContext("_ta_getInputParameterInfo", 0); + + /* "talib/_abstract.pxi":531 + * """ + * cdef lib.TA_InputParameterInfo *info + * retCode = lib.TA_GetInputParameterInfo(__ta_getFuncHandle(function_name), idx, &info) # <<<<<<<<<<<<<< + * _ta_check_success('TA_GetInputParameterInfo', retCode) + * + */ + __pyx_v_retCode = TA_GetInputParameterInfo(__pyx_f_5talib_8c_ta_lib___ta_getFuncHandle(__pyx_v_function_name), __pyx_v_idx, (&__pyx_v_info)); + + /* "talib/_abstract.pxi":532 + * cdef lib.TA_InputParameterInfo *info + * retCode = lib.TA_GetInputParameterInfo(__ta_getFuncHandle(function_name), idx, &info) + * _ta_check_success('TA_GetInputParameterInfo', retCode) # <<<<<<<<<<<<<< + * + * name = bytes2str(info.paramName) + */ + __pyx_t_1 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_GetInputParameterInfo, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 532, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + + /* "talib/_abstract.pxi":534 + * _ta_check_success('TA_GetInputParameterInfo', retCode) + * + * name = bytes2str(info.paramName) # <<<<<<<<<<<<<< + * name = name[len('in'):].lower() + * if 'real' in name: + */ + __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_bytes2str); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 534, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_t_3 = __Pyx_PyBytes_FromString(__pyx_v_info->paramName); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 534, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + __pyx_t_4 = NULL; + if (CYTHON_COMPILING_IN_CPYTHON && unlikely(PyMethod_Check(__pyx_t_2))) { + __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2); + if (likely(__pyx_t_4)) { + PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); + __Pyx_INCREF(__pyx_t_4); + __Pyx_INCREF(function); + __Pyx_DECREF_SET(__pyx_t_2, function); + } + } + if (!__pyx_t_4) { + __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 534, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + __Pyx_GOTREF(__pyx_t_1); + } else { + __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 534, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL; + __Pyx_GIVEREF(__pyx_t_3); + PyTuple_SET_ITEM(__pyx_t_5, 0+1, __pyx_t_3); + __pyx_t_3 = 0; + __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 534, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + } + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __pyx_v_name = __pyx_t_1; + __pyx_t_1 = 0; + + /* "talib/_abstract.pxi":535 + * + * name = bytes2str(info.paramName) + * name = name[len('in'):].lower() # <<<<<<<<<<<<<< + * if 'real' in name: + * name = name.replace('real', 'price') + */ + __pyx_t_6 = PyObject_Length(__pyx_n_s_in); if (unlikely(__pyx_t_6 == -1)) __PYX_ERR(1, 535, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_GetSlice(__pyx_v_name, __pyx_t_6, 0, NULL, NULL, NULL, 1, 0, 1); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 535, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_lower); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 535, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __pyx_t_2 = NULL; + if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_5))) { + __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_5); + if (likely(__pyx_t_2)) { + PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); + __Pyx_INCREF(__pyx_t_2); + __Pyx_INCREF(function); + __Pyx_DECREF_SET(__pyx_t_5, function); + } + } + if (__pyx_t_2) { + __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 535, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + } else { + __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_5); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 535, __pyx_L1_error) + } + __Pyx_GOTREF(__pyx_t_1); + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + __Pyx_DECREF_SET(__pyx_v_name, __pyx_t_1); + __pyx_t_1 = 0; + + /* "talib/_abstract.pxi":536 + * name = bytes2str(info.paramName) + * name = name[len('in'):].lower() + * if 'real' in name: # <<<<<<<<<<<<<< + * name = name.replace('real', 'price') + * elif 'price' in name: + */ + __pyx_t_7 = (__Pyx_PySequence_ContainsTF(__pyx_n_s_real, __pyx_v_name, Py_EQ)); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(1, 536, __pyx_L1_error) + __pyx_t_8 = (__pyx_t_7 != 0); + if (__pyx_t_8) { + + /* "talib/_abstract.pxi":537 + * name = name[len('in'):].lower() + * if 'real' in name: + * name = name.replace('real', 'price') # <<<<<<<<<<<<<< + * elif 'price' in name: + * name = 'prices' + */ + __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_v_name, __pyx_n_s_replace); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 537, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_1, __pyx_tuple__1213, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 537, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + __Pyx_DECREF_SET(__pyx_v_name, __pyx_t_5); + __pyx_t_5 = 0; + + /* "talib/_abstract.pxi":536 + * name = bytes2str(info.paramName) + * name = name[len('in'):].lower() + * if 'real' in name: # <<<<<<<<<<<<<< + * name = name.replace('real', 'price') + * elif 'price' in name: + */ + goto __pyx_L3; + } + + /* "talib/_abstract.pxi":538 + * if 'real' in name: + * name = name.replace('real', 'price') + * elif 'price' in name: # <<<<<<<<<<<<<< + * name = 'prices' + * + */ + __pyx_t_8 = (__Pyx_PySequence_ContainsTF(__pyx_n_s_price, __pyx_v_name, Py_EQ)); if (unlikely(__pyx_t_8 < 0)) __PYX_ERR(1, 538, __pyx_L1_error) + __pyx_t_7 = (__pyx_t_8 != 0); + if (__pyx_t_7) { + + /* "talib/_abstract.pxi":539 + * name = name.replace('real', 'price') + * elif 'price' in name: + * name = 'prices' # <<<<<<<<<<<<<< + * + * return { + */ + __Pyx_INCREF(__pyx_n_s_prices); + __Pyx_DECREF_SET(__pyx_v_name, __pyx_n_s_prices); + + /* "talib/_abstract.pxi":538 + * if 'real' in name: + * name = name.replace('real', 'price') + * elif 'price' in name: # <<<<<<<<<<<<<< + * name = 'prices' + * + */ + } + __pyx_L3:; + + /* "talib/_abstract.pxi":541 + * name = 'prices' + * + * return { # <<<<<<<<<<<<<< + * 'name': name, + * 'price_series': __get_flags(info.flags, TA_INPUT_FLAGS) + */ + __Pyx_XDECREF(__pyx_r); + + /* "talib/_abstract.pxi":542 + * + * return { + * 'name': name, # <<<<<<<<<<<<<< + * 'price_series': __get_flags(info.flags, TA_INPUT_FLAGS) + * } + */ + __pyx_t_5 = PyDict_New(); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 542, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_name, __pyx_v_name) < 0) __PYX_ERR(1, 542, __pyx_L1_error) + + /* "talib/_abstract.pxi":543 + * return { + * 'name': name, + * 'price_series': __get_flags(info.flags, TA_INPUT_FLAGS) # <<<<<<<<<<<<<< + * } + * + */ + __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_get_flags); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 543, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_t_3 = __Pyx_PyInt_From_TA_InputFlags(__pyx_v_info->flags); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 543, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_TA_INPUT_FLAGS); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 543, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + __pyx_t_9 = NULL; + __pyx_t_6 = 0; + if (CYTHON_COMPILING_IN_CPYTHON && unlikely(PyMethod_Check(__pyx_t_2))) { + __pyx_t_9 = PyMethod_GET_SELF(__pyx_t_2); + if (likely(__pyx_t_9)) { + PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); + __Pyx_INCREF(__pyx_t_9); + __Pyx_INCREF(function); + __Pyx_DECREF_SET(__pyx_t_2, function); + __pyx_t_6 = 1; + } + } + __pyx_t_10 = PyTuple_New(2+__pyx_t_6); if (unlikely(!__pyx_t_10)) __PYX_ERR(1, 543, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_10); + if (__pyx_t_9) { + __Pyx_GIVEREF(__pyx_t_9); PyTuple_SET_ITEM(__pyx_t_10, 0, __pyx_t_9); __pyx_t_9 = NULL; + } + __Pyx_GIVEREF(__pyx_t_3); + PyTuple_SET_ITEM(__pyx_t_10, 0+__pyx_t_6, __pyx_t_3); + __Pyx_GIVEREF(__pyx_t_4); + PyTuple_SET_ITEM(__pyx_t_10, 1+__pyx_t_6, __pyx_t_4); + __pyx_t_3 = 0; + __pyx_t_4 = 0; + __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_10, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 543, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_price_series, __pyx_t_1) < 0) __PYX_ERR(1, 542, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + __pyx_r = __pyx_t_5; + __pyx_t_5 = 0; + goto __pyx_L0; + + /* "talib/_abstract.pxi":525 + * } + * + * def _ta_getInputParameterInfo(char *function_name, int idx): # <<<<<<<<<<<<<< + * """ + * Returns the function's input info dict for the given index. It has two + */ + + /* function exit code */ + __pyx_L1_error:; + __Pyx_XDECREF(__pyx_t_1); + __Pyx_XDECREF(__pyx_t_2); + __Pyx_XDECREF(__pyx_t_3); + __Pyx_XDECREF(__pyx_t_4); + __Pyx_XDECREF(__pyx_t_5); + __Pyx_XDECREF(__pyx_t_9); + __Pyx_XDECREF(__pyx_t_10); + __Pyx_AddTraceback("talib.c_ta_lib._ta_getInputParameterInfo", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF(__pyx_v_name); + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "talib/_abstract.pxi":546 + * } + * + * def _ta_getOptInputParameterInfo(char *function_name, int idx): # <<<<<<<<<<<<<< + * """ + * Returns the function's opt_input info dict for the given index. It has the + */ + +/* Python wrapper */ +static PyObject *__pyx_pw_5talib_8c_ta_lib_345_ta_getOptInputParameterInfo(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_344_ta_getOptInputParameterInfo[] = "\n Returns the function's opt_input info dict for the given index. It has the\n following keys: name, display_name, type, help, default_value and value.\n "; +static PyMethodDef __pyx_mdef_5talib_8c_ta_lib_345_ta_getOptInputParameterInfo = {"_ta_getOptInputParameterInfo", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_345_ta_getOptInputParameterInfo, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_344_ta_getOptInputParameterInfo}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_345_ta_getOptInputParameterInfo(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { + char *__pyx_v_function_name; + int __pyx_v_idx; + PyObject *__pyx_r = 0; + __Pyx_RefNannyDeclarations + __Pyx_RefNannySetupContext("_ta_getOptInputParameterInfo (wrapper)", 0); + { + static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_function_name,&__pyx_n_s_idx,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_function_name)) != 0)) kw_args--; + else goto __pyx_L5_argtuple_error; + case 1: + if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_idx)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("_ta_getOptInputParameterInfo", 1, 2, 2, 1); __PYX_ERR(1, 546, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "_ta_getOptInputParameterInfo") < 0)) __PYX_ERR(1, 546, __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_function_name = __Pyx_PyObject_AsString(values[0]); if (unlikely((!__pyx_v_function_name) && PyErr_Occurred())) __PYX_ERR(1, 546, __pyx_L3_error) + __pyx_v_idx = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_idx == (int)-1) && PyErr_Occurred())) __PYX_ERR(1, 546, __pyx_L3_error) + } + goto __pyx_L4_argument_unpacking_done; + __pyx_L5_argtuple_error:; + __Pyx_RaiseArgtupleInvalid("_ta_getOptInputParameterInfo", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(1, 546, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib._ta_getOptInputParameterInfo", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_RefNannyFinishContext(); + return NULL; + __pyx_L4_argument_unpacking_done:; + __pyx_r = __pyx_pf_5talib_8c_ta_lib_344_ta_getOptInputParameterInfo(__pyx_self, __pyx_v_function_name, __pyx_v_idx); + + /* function exit code */ + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +static PyObject *__pyx_pf_5talib_8c_ta_lib_344_ta_getOptInputParameterInfo(CYTHON_UNUSED PyObject *__pyx_self, char *__pyx_v_function_name, int __pyx_v_idx) { + TA_OptInputParameterInfo *__pyx_v_info; + TA_RetCode __pyx_v_retCode; + PyObject *__pyx_v_name = NULL; + PyObject *__pyx_v_default_value = NULL; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + PyObject *__pyx_t_1 = NULL; + PyObject *__pyx_t_2 = NULL; + PyObject *__pyx_t_3 = NULL; + PyObject *__pyx_t_4 = NULL; + PyObject *__pyx_t_5 = NULL; + Py_ssize_t __pyx_t_6; + int __pyx_t_7; + PyObject *__pyx_t_8 = NULL; + __Pyx_RefNannySetupContext("_ta_getOptInputParameterInfo", 0); + + /* "talib/_abstract.pxi":552 + * """ + * cdef lib.TA_OptInputParameterInfo *info + * retCode = lib.TA_GetOptInputParameterInfo(__ta_getFuncHandle(function_name), idx, &info) # <<<<<<<<<<<<<< + * _ta_check_success('TA_GetOptInputParameterInfo', retCode) + * + */ + __pyx_v_retCode = TA_GetOptInputParameterInfo(__pyx_f_5talib_8c_ta_lib___ta_getFuncHandle(__pyx_v_function_name), __pyx_v_idx, (&__pyx_v_info)); + + /* "talib/_abstract.pxi":553 + * cdef lib.TA_OptInputParameterInfo *info + * retCode = lib.TA_GetOptInputParameterInfo(__ta_getFuncHandle(function_name), idx, &info) + * _ta_check_success('TA_GetOptInputParameterInfo', retCode) # <<<<<<<<<<<<<< + * + * name = bytes2str(info.paramName) + */ + __pyx_t_1 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_GetOptInputParameterInfo, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 553, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + + /* "talib/_abstract.pxi":555 + * _ta_check_success('TA_GetOptInputParameterInfo', retCode) + * + * name = bytes2str(info.paramName) # <<<<<<<<<<<<<< + * name = name[len('optIn'):].lower() + * default_value = info.defaultValue + */ + __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_bytes2str); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 555, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_t_3 = __Pyx_PyBytes_FromString(__pyx_v_info->paramName); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 555, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + __pyx_t_4 = NULL; + if (CYTHON_COMPILING_IN_CPYTHON && unlikely(PyMethod_Check(__pyx_t_2))) { + __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2); + if (likely(__pyx_t_4)) { + PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); + __Pyx_INCREF(__pyx_t_4); + __Pyx_INCREF(function); + __Pyx_DECREF_SET(__pyx_t_2, function); + } + } + if (!__pyx_t_4) { + __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 555, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + __Pyx_GOTREF(__pyx_t_1); + } else { + __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 555, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL; + __Pyx_GIVEREF(__pyx_t_3); + PyTuple_SET_ITEM(__pyx_t_5, 0+1, __pyx_t_3); + __pyx_t_3 = 0; + __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 555, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + } + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __pyx_v_name = __pyx_t_1; + __pyx_t_1 = 0; + + /* "talib/_abstract.pxi":556 + * + * name = bytes2str(info.paramName) + * name = name[len('optIn'):].lower() # <<<<<<<<<<<<<< + * default_value = info.defaultValue + * if default_value % 1 == 0: + */ + __pyx_t_6 = PyObject_Length(__pyx_n_s_optIn); if (unlikely(__pyx_t_6 == -1)) __PYX_ERR(1, 556, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_GetSlice(__pyx_v_name, __pyx_t_6, 0, NULL, NULL, NULL, 1, 0, 1); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 556, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_lower); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 556, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __pyx_t_2 = NULL; + if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_5))) { + __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_5); + if (likely(__pyx_t_2)) { + PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); + __Pyx_INCREF(__pyx_t_2); + __Pyx_INCREF(function); + __Pyx_DECREF_SET(__pyx_t_5, function); + } + } + if (__pyx_t_2) { + __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 556, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + } else { + __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_5); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 556, __pyx_L1_error) + } + __Pyx_GOTREF(__pyx_t_1); + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + __Pyx_DECREF_SET(__pyx_v_name, __pyx_t_1); + __pyx_t_1 = 0; + + /* "talib/_abstract.pxi":557 + * name = bytes2str(info.paramName) + * name = name[len('optIn'):].lower() + * default_value = info.defaultValue # <<<<<<<<<<<<<< + * if default_value % 1 == 0: + * default_value = int(default_value) + */ + __pyx_t_1 = PyFloat_FromDouble(__pyx_v_info->defaultValue); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 557, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __pyx_v_default_value = __pyx_t_1; + __pyx_t_1 = 0; + + /* "talib/_abstract.pxi":558 + * name = name[len('optIn'):].lower() + * default_value = info.defaultValue + * if default_value % 1 == 0: # <<<<<<<<<<<<<< + * default_value = int(default_value) + * + */ + __pyx_t_1 = __Pyx_PyInt_RemainderObjC(__pyx_v_default_value, __pyx_int_1, 1, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 558, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __pyx_t_5 = __Pyx_PyInt_EqObjC(__pyx_t_1, __pyx_int_0, 0, 0); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 558, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_t_5); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(1, 558, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + if (__pyx_t_7) { + + /* "talib/_abstract.pxi":559 + * default_value = info.defaultValue + * if default_value % 1 == 0: + * default_value = int(default_value) # <<<<<<<<<<<<<< + * + * return { + */ + __pyx_t_5 = __Pyx_PyNumber_Int(__pyx_v_default_value); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 559, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + __Pyx_DECREF_SET(__pyx_v_default_value, __pyx_t_5); + __pyx_t_5 = 0; + + /* "talib/_abstract.pxi":558 + * name = name[len('optIn'):].lower() + * default_value = info.defaultValue + * if default_value % 1 == 0: # <<<<<<<<<<<<<< + * default_value = int(default_value) + * + */ + } + + /* "talib/_abstract.pxi":561 + * default_value = int(default_value) + * + * return { # <<<<<<<<<<<<<< + * 'name': name, + * 'display_name': bytes2str(info.displayName), + */ + __Pyx_XDECREF(__pyx_r); + + /* "talib/_abstract.pxi":562 + * + * return { + * 'name': name, # <<<<<<<<<<<<<< + * 'display_name': bytes2str(info.displayName), + * 'type': info.type, + */ + __pyx_t_5 = PyDict_New(); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 562, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_name, __pyx_v_name) < 0) __PYX_ERR(1, 562, __pyx_L1_error) + + /* "talib/_abstract.pxi":563 + * return { + * 'name': name, + * 'display_name': bytes2str(info.displayName), # <<<<<<<<<<<<<< + * 'type': info.type, + * 'help': bytes2str(info.hint), + */ + __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_bytes2str); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 563, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_t_3 = __Pyx_PyBytes_FromString(__pyx_v_info->displayName); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 563, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + __pyx_t_4 = NULL; + if (CYTHON_COMPILING_IN_CPYTHON && unlikely(PyMethod_Check(__pyx_t_2))) { + __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2); + if (likely(__pyx_t_4)) { + PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); + __Pyx_INCREF(__pyx_t_4); + __Pyx_INCREF(function); + __Pyx_DECREF_SET(__pyx_t_2, function); + } + } + if (!__pyx_t_4) { + __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 563, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + __Pyx_GOTREF(__pyx_t_1); + } else { + __pyx_t_8 = PyTuple_New(1+1); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 563, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_8); + __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_8, 0, __pyx_t_4); __pyx_t_4 = NULL; + __Pyx_GIVEREF(__pyx_t_3); + PyTuple_SET_ITEM(__pyx_t_8, 0+1, __pyx_t_3); + __pyx_t_3 = 0; + __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_8, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 563, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; + } + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_display_name, __pyx_t_1) < 0) __PYX_ERR(1, 562, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + + /* "talib/_abstract.pxi":564 + * 'name': name, + * 'display_name': bytes2str(info.displayName), + * 'type': info.type, # <<<<<<<<<<<<<< + * 'help': bytes2str(info.hint), + * 'default_value': default_value, + */ + __pyx_t_1 = __Pyx_PyInt_From_TA_OptInputParameterType(__pyx_v_info->type); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 564, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_type_2, __pyx_t_1) < 0) __PYX_ERR(1, 562, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + + /* "talib/_abstract.pxi":565 + * 'display_name': bytes2str(info.displayName), + * 'type': info.type, + * 'help': bytes2str(info.hint), # <<<<<<<<<<<<<< + * 'default_value': default_value, + * 'value': None + */ + __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_bytes2str); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 565, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_t_8 = __Pyx_PyBytes_FromString(__pyx_v_info->hint); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 565, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_8); + __pyx_t_3 = NULL; + if (CYTHON_COMPILING_IN_CPYTHON && unlikely(PyMethod_Check(__pyx_t_2))) { + __pyx_t_3 = PyMethod_GET_SELF(__pyx_t_2); + if (likely(__pyx_t_3)) { + PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); + __Pyx_INCREF(__pyx_t_3); + __Pyx_INCREF(function); + __Pyx_DECREF_SET(__pyx_t_2, function); + } + } + if (!__pyx_t_3) { + __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_8); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 565, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; + __Pyx_GOTREF(__pyx_t_1); + } else { + __pyx_t_4 = PyTuple_New(1+1); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 565, __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 = NULL; + __Pyx_GIVEREF(__pyx_t_8); + PyTuple_SET_ITEM(__pyx_t_4, 0+1, __pyx_t_8); + __pyx_t_8 = 0; + __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_4, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 565, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + } + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_help, __pyx_t_1) < 0) __PYX_ERR(1, 562, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + + /* "talib/_abstract.pxi":566 + * 'type': info.type, + * 'help': bytes2str(info.hint), + * 'default_value': default_value, # <<<<<<<<<<<<<< + * 'value': None + * } + */ + if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_default_value, __pyx_v_default_value) < 0) __PYX_ERR(1, 562, __pyx_L1_error) + + /* "talib/_abstract.pxi":567 + * 'help': bytes2str(info.hint), + * 'default_value': default_value, + * 'value': None # <<<<<<<<<<<<<< + * } + * + */ + if (PyDict_SetItem(__pyx_t_5, __pyx_n_s_value, Py_None) < 0) __PYX_ERR(1, 562, __pyx_L1_error) + __pyx_r = __pyx_t_5; + __pyx_t_5 = 0; + goto __pyx_L0; + + /* "talib/_abstract.pxi":546 + * } + * + * def _ta_getOptInputParameterInfo(char *function_name, int idx): # <<<<<<<<<<<<<< + * """ + * Returns the function's opt_input info dict for the given index. It has the + */ + + /* function exit code */ + __pyx_L1_error:; + __Pyx_XDECREF(__pyx_t_1); + __Pyx_XDECREF(__pyx_t_2); + __Pyx_XDECREF(__pyx_t_3); + __Pyx_XDECREF(__pyx_t_4); + __Pyx_XDECREF(__pyx_t_5); + __Pyx_XDECREF(__pyx_t_8); + __Pyx_AddTraceback("talib.c_ta_lib._ta_getOptInputParameterInfo", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF(__pyx_v_name); + __Pyx_XDECREF(__pyx_v_default_value); + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "talib/_abstract.pxi":570 + * } + * + * def _ta_getOutputParameterInfo(char *function_name, int idx): # <<<<<<<<<<<<<< + * """ + * Returns the function's output info dict for the given index. It has two + */ + +/* Python wrapper */ +static PyObject *__pyx_pw_5talib_8c_ta_lib_347_ta_getOutputParameterInfo(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_346_ta_getOutputParameterInfo[] = "\n Returns the function's output info dict for the given index. It has two\n keys: name and flags.\n "; +static PyMethodDef __pyx_mdef_5talib_8c_ta_lib_347_ta_getOutputParameterInfo = {"_ta_getOutputParameterInfo", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_347_ta_getOutputParameterInfo, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_346_ta_getOutputParameterInfo}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_347_ta_getOutputParameterInfo(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds) { + char *__pyx_v_function_name; + int __pyx_v_idx; + PyObject *__pyx_r = 0; + __Pyx_RefNannyDeclarations + __Pyx_RefNannySetupContext("_ta_getOutputParameterInfo (wrapper)", 0); + { + static PyObject **__pyx_pyargnames[] = {&__pyx_n_s_function_name,&__pyx_n_s_idx,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_function_name)) != 0)) kw_args--; + else goto __pyx_L5_argtuple_error; + case 1: + if (likely((values[1] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_idx)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("_ta_getOutputParameterInfo", 1, 2, 2, 1); __PYX_ERR(1, 570, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "_ta_getOutputParameterInfo") < 0)) __PYX_ERR(1, 570, __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_function_name = __Pyx_PyObject_AsString(values[0]); if (unlikely((!__pyx_v_function_name) && PyErr_Occurred())) __PYX_ERR(1, 570, __pyx_L3_error) + __pyx_v_idx = __Pyx_PyInt_As_int(values[1]); if (unlikely((__pyx_v_idx == (int)-1) && PyErr_Occurred())) __PYX_ERR(1, 570, __pyx_L3_error) + } + goto __pyx_L4_argument_unpacking_done; + __pyx_L5_argtuple_error:; + __Pyx_RaiseArgtupleInvalid("_ta_getOutputParameterInfo", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(1, 570, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib._ta_getOutputParameterInfo", __pyx_clineno, __pyx_lineno, __pyx_filename); + __Pyx_RefNannyFinishContext(); + return NULL; + __pyx_L4_argument_unpacking_done:; + __pyx_r = __pyx_pf_5talib_8c_ta_lib_346_ta_getOutputParameterInfo(__pyx_self, __pyx_v_function_name, __pyx_v_idx); + + /* function exit code */ + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +static PyObject *__pyx_pf_5talib_8c_ta_lib_346_ta_getOutputParameterInfo(CYTHON_UNUSED PyObject *__pyx_self, char *__pyx_v_function_name, int __pyx_v_idx) { + TA_OutputParameterInfo *__pyx_v_info; + TA_RetCode __pyx_v_retCode; + PyObject *__pyx_v_name = NULL; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + PyObject *__pyx_t_1 = NULL; + PyObject *__pyx_t_2 = NULL; + PyObject *__pyx_t_3 = NULL; + PyObject *__pyx_t_4 = NULL; + PyObject *__pyx_t_5 = NULL; + Py_ssize_t __pyx_t_6; + int __pyx_t_7; + int __pyx_t_8; + int __pyx_t_9; + PyObject *__pyx_t_10 = NULL; + PyObject *__pyx_t_11 = NULL; + __Pyx_RefNannySetupContext("_ta_getOutputParameterInfo", 0); + + /* "talib/_abstract.pxi":576 + * """ + * cdef lib.TA_OutputParameterInfo *info + * retCode = lib.TA_GetOutputParameterInfo(__ta_getFuncHandle(function_name), idx, &info) # <<<<<<<<<<<<<< + * _ta_check_success('TA_GetOutputParameterInfo', retCode) + * + */ + __pyx_v_retCode = TA_GetOutputParameterInfo(__pyx_f_5talib_8c_ta_lib___ta_getFuncHandle(__pyx_v_function_name), __pyx_v_idx, (&__pyx_v_info)); + + /* "talib/_abstract.pxi":577 + * cdef lib.TA_OutputParameterInfo *info + * retCode = lib.TA_GetOutputParameterInfo(__ta_getFuncHandle(function_name), idx, &info) + * _ta_check_success('TA_GetOutputParameterInfo', retCode) # <<<<<<<<<<<<<< + * + * name = bytes2str(info.paramName) + */ + __pyx_t_1 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_GetOutputParameterInfo, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 577, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + + /* "talib/_abstract.pxi":579 + * _ta_check_success('TA_GetOutputParameterInfo', retCode) + * + * name = bytes2str(info.paramName) # <<<<<<<<<<<<<< + * name = name[len('out'):].lower() + * # chop off leading 'real' if a descriptive name follows + */ + __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_bytes2str); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 579, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_t_3 = __Pyx_PyBytes_FromString(__pyx_v_info->paramName); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 579, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + __pyx_t_4 = NULL; + if (CYTHON_COMPILING_IN_CPYTHON && unlikely(PyMethod_Check(__pyx_t_2))) { + __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_2); + if (likely(__pyx_t_4)) { + PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); + __Pyx_INCREF(__pyx_t_4); + __Pyx_INCREF(function); + __Pyx_DECREF_SET(__pyx_t_2, function); + } + } + if (!__pyx_t_4) { + __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_2, __pyx_t_3); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 579, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_3); __pyx_t_3 = 0; + __Pyx_GOTREF(__pyx_t_1); + } else { + __pyx_t_5 = PyTuple_New(1+1); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 579, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + __Pyx_GIVEREF(__pyx_t_4); PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_4); __pyx_t_4 = NULL; + __Pyx_GIVEREF(__pyx_t_3); + PyTuple_SET_ITEM(__pyx_t_5, 0+1, __pyx_t_3); + __pyx_t_3 = 0; + __pyx_t_1 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_5, NULL); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 579, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + } + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __pyx_v_name = __pyx_t_1; + __pyx_t_1 = 0; + + /* "talib/_abstract.pxi":580 + * + * name = bytes2str(info.paramName) + * name = name[len('out'):].lower() # <<<<<<<<<<<<<< + * # chop off leading 'real' if a descriptive name follows + * if 'real' in name and name not in ['real', 'real0', 'real1']: + */ + __pyx_t_6 = PyObject_Length(__pyx_n_s_out); if (unlikely(__pyx_t_6 == -1)) __PYX_ERR(1, 580, __pyx_L1_error) + __pyx_t_2 = __Pyx_PyObject_GetSlice(__pyx_v_name, __pyx_t_6, 0, NULL, NULL, NULL, 1, 0, 1); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 580, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_t_5 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_lower); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 580, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __pyx_t_2 = NULL; + if (CYTHON_COMPILING_IN_CPYTHON && likely(PyMethod_Check(__pyx_t_5))) { + __pyx_t_2 = PyMethod_GET_SELF(__pyx_t_5); + if (likely(__pyx_t_2)) { + PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_5); + __Pyx_INCREF(__pyx_t_2); + __Pyx_INCREF(function); + __Pyx_DECREF_SET(__pyx_t_5, function); + } + } + if (__pyx_t_2) { + __pyx_t_1 = __Pyx_PyObject_CallOneArg(__pyx_t_5, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 580, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + } else { + __pyx_t_1 = __Pyx_PyObject_CallNoArg(__pyx_t_5); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 580, __pyx_L1_error) + } + __Pyx_GOTREF(__pyx_t_1); + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + __Pyx_DECREF_SET(__pyx_v_name, __pyx_t_1); + __pyx_t_1 = 0; + + /* "talib/_abstract.pxi":582 + * name = name[len('out'):].lower() + * # chop off leading 'real' if a descriptive name follows + * if 'real' in name and name not in ['real', 'real0', 'real1']: # <<<<<<<<<<<<<< + * name = name[len('real'):] + * + */ + __pyx_t_8 = (__Pyx_PySequence_ContainsTF(__pyx_n_s_real, __pyx_v_name, Py_EQ)); if (unlikely(__pyx_t_8 < 0)) __PYX_ERR(1, 582, __pyx_L1_error) + __pyx_t_9 = (__pyx_t_8 != 0); + if (__pyx_t_9) { + } else { + __pyx_t_7 = __pyx_t_9; + goto __pyx_L4_bool_binop_done; + } + __Pyx_INCREF(__pyx_v_name); + __pyx_t_1 = __pyx_v_name; + __pyx_t_8 = (__Pyx_PyString_Equals(__pyx_t_1, __pyx_n_s_real, Py_NE)); if (unlikely(__pyx_t_8 < 0)) __PYX_ERR(1, 582, __pyx_L1_error) + if (__pyx_t_8) { + } else { + __pyx_t_9 = __pyx_t_8; + goto __pyx_L6_bool_binop_done; + } + __pyx_t_8 = (__Pyx_PyString_Equals(__pyx_t_1, __pyx_n_s_real0, Py_NE)); if (unlikely(__pyx_t_8 < 0)) __PYX_ERR(1, 582, __pyx_L1_error) + if (__pyx_t_8) { + } else { + __pyx_t_9 = __pyx_t_8; + goto __pyx_L6_bool_binop_done; + } + __pyx_t_8 = (__Pyx_PyString_Equals(__pyx_t_1, __pyx_n_s_real1, Py_NE)); if (unlikely(__pyx_t_8 < 0)) __PYX_ERR(1, 582, __pyx_L1_error) + __pyx_t_9 = __pyx_t_8; + __pyx_L6_bool_binop_done:; + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + __pyx_t_8 = (__pyx_t_9 != 0); + __pyx_t_7 = __pyx_t_8; + __pyx_L4_bool_binop_done:; + if (__pyx_t_7) { + + /* "talib/_abstract.pxi":583 + * # chop off leading 'real' if a descriptive name follows + * if 'real' in name and name not in ['real', 'real0', 'real1']: + * name = name[len('real'):] # <<<<<<<<<<<<<< + * + * return { + */ + __pyx_t_6 = PyObject_Length(__pyx_n_s_real); if (unlikely(__pyx_t_6 == -1)) __PYX_ERR(1, 583, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyObject_GetSlice(__pyx_v_name, __pyx_t_6, 0, NULL, NULL, NULL, 1, 0, 1); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 583, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __Pyx_DECREF_SET(__pyx_v_name, __pyx_t_1); + __pyx_t_1 = 0; + + /* "talib/_abstract.pxi":582 + * name = name[len('out'):].lower() + * # chop off leading 'real' if a descriptive name follows + * if 'real' in name and name not in ['real', 'real0', 'real1']: # <<<<<<<<<<<<<< + * name = name[len('real'):] + * + */ + } + + /* "talib/_abstract.pxi":585 + * name = name[len('real'):] + * + * return { # <<<<<<<<<<<<<< + * 'name': name, + * 'flags': __get_flags(info.flags, TA_OUTPUT_FLAGS) + */ + __Pyx_XDECREF(__pyx_r); + + /* "talib/_abstract.pxi":586 + * + * return { + * 'name': name, # <<<<<<<<<<<<<< + * 'flags': __get_flags(info.flags, TA_OUTPUT_FLAGS) + * } + */ + __pyx_t_1 = PyDict_New(); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 586, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_name, __pyx_v_name) < 0) __PYX_ERR(1, 586, __pyx_L1_error) + + /* "talib/_abstract.pxi":587 + * return { + * 'name': name, + * 'flags': __get_flags(info.flags, TA_OUTPUT_FLAGS) # <<<<<<<<<<<<<< + * } + * + */ + __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_get_flags); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 587, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_t_3 = __Pyx_PyInt_From_TA_OutputFlags(__pyx_v_info->flags); if (unlikely(!__pyx_t_3)) __PYX_ERR(1, 587, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_TA_OUTPUT_FLAGS); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 587, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + __pyx_t_10 = NULL; + __pyx_t_6 = 0; + if (CYTHON_COMPILING_IN_CPYTHON && unlikely(PyMethod_Check(__pyx_t_2))) { + __pyx_t_10 = PyMethod_GET_SELF(__pyx_t_2); + if (likely(__pyx_t_10)) { + PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_2); + __Pyx_INCREF(__pyx_t_10); + __Pyx_INCREF(function); + __Pyx_DECREF_SET(__pyx_t_2, function); + __pyx_t_6 = 1; + } + } + __pyx_t_11 = PyTuple_New(2+__pyx_t_6); if (unlikely(!__pyx_t_11)) __PYX_ERR(1, 587, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_11); + if (__pyx_t_10) { + __Pyx_GIVEREF(__pyx_t_10); PyTuple_SET_ITEM(__pyx_t_11, 0, __pyx_t_10); __pyx_t_10 = NULL; + } + __Pyx_GIVEREF(__pyx_t_3); + PyTuple_SET_ITEM(__pyx_t_11, 0+__pyx_t_6, __pyx_t_3); + __Pyx_GIVEREF(__pyx_t_4); + PyTuple_SET_ITEM(__pyx_t_11, 1+__pyx_t_6, __pyx_t_4); + __pyx_t_3 = 0; + __pyx_t_4 = 0; + __pyx_t_5 = __Pyx_PyObject_Call(__pyx_t_2, __pyx_t_11, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 587, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_flags, __pyx_t_5) < 0) __PYX_ERR(1, 586, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + __pyx_r = __pyx_t_1; + __pyx_t_1 = 0; + goto __pyx_L0; + + /* "talib/_abstract.pxi":570 + * } + * + * def _ta_getOutputParameterInfo(char *function_name, int idx): # <<<<<<<<<<<<<< + * """ + * Returns the function's output info dict for the given index. It has two + */ + + /* function exit code */ + __pyx_L1_error:; + __Pyx_XDECREF(__pyx_t_1); + __Pyx_XDECREF(__pyx_t_2); + __Pyx_XDECREF(__pyx_t_3); + __Pyx_XDECREF(__pyx_t_4); + __Pyx_XDECREF(__pyx_t_5); + __Pyx_XDECREF(__pyx_t_10); + __Pyx_XDECREF(__pyx_t_11); + __Pyx_AddTraceback("talib.c_ta_lib._ta_getOutputParameterInfo", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF(__pyx_v_name); + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "talib/_abstract.pxi":590 + * } + * + * def _get_defaults_and_docs(func_info): # <<<<<<<<<<<<<< + * """ + * Returns a tuple with two outputs: defaults, a dict of parameter defaults, + */ + +/* Python wrapper */ +static PyObject *__pyx_pw_5talib_8c_ta_lib_349_get_defaults_and_docs(PyObject *__pyx_self, PyObject *__pyx_v_func_info); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_348_get_defaults_and_docs[] = "\n Returns a tuple with two outputs: defaults, a dict of parameter defaults,\n and documentation, a formatted docstring for the function.\n .. Note: func_info should come from Function.info, *not* _ta_getFuncInfo.\n "; +static PyMethodDef __pyx_mdef_5talib_8c_ta_lib_349_get_defaults_and_docs = {"_get_defaults_and_docs", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_349_get_defaults_and_docs, METH_O, __pyx_doc_5talib_8c_ta_lib_348_get_defaults_and_docs}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_349_get_defaults_and_docs(PyObject *__pyx_self, PyObject *__pyx_v_func_info) { + PyObject *__pyx_r = 0; + __Pyx_RefNannyDeclarations + __Pyx_RefNannySetupContext("_get_defaults_and_docs (wrapper)", 0); + __pyx_r = __pyx_pf_5talib_8c_ta_lib_348_get_defaults_and_docs(__pyx_self, ((PyObject *)__pyx_v_func_info)); + + /* function exit code */ + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +static PyObject *__pyx_pf_5talib_8c_ta_lib_348_get_defaults_and_docs(CYTHON_UNUSED PyObject *__pyx_self, PyObject *__pyx_v_func_info) { + PyObject *__pyx_v_defaults = NULL; + PyObject *__pyx_v_func_line = NULL; + PyObject *__pyx_v_func_args = NULL; + PyObject *__pyx_v_docs = NULL; + PyObject *__pyx_v_input_names = NULL; + PyObject *__pyx_v_input_name = NULL; + PyObject *__pyx_v_value = NULL; + PyObject *__pyx_v_params = NULL; + PyObject *__pyx_v_param = NULL; + PyObject *__pyx_v_outputs = NULL; + PyObject *__pyx_v_output = NULL; + PyObject *__pyx_v_documentation = NULL; + PyObject *__pyx_r = NULL; + __Pyx_RefNannyDeclarations + PyObject *__pyx_t_1 = NULL; + PyObject *__pyx_t_2 = NULL; + int __pyx_t_3; + Py_ssize_t __pyx_t_4; + PyObject *(*__pyx_t_5)(PyObject *); + int __pyx_t_6; + int __pyx_t_7; + PyObject *__pyx_t_8 = NULL; + PyObject *__pyx_t_9 = NULL; + PyObject *__pyx_t_10 = NULL; + __Pyx_RefNannySetupContext("_get_defaults_and_docs", 0); + + /* "talib/_abstract.pxi":596 + * .. Note: func_info should come from Function.info, *not* _ta_getFuncInfo. + * """ + * defaults = {} # <<<<<<<<<<<<<< + * func_line = [func_info['name'], '('] + * func_args = ['[input_arrays]'] + */ + __pyx_t_1 = PyDict_New(); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 596, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __pyx_v_defaults = ((PyObject*)__pyx_t_1); + __pyx_t_1 = 0; + + /* "talib/_abstract.pxi":597 + * """ + * defaults = {} + * func_line = [func_info['name'], '('] # <<<<<<<<<<<<<< + * func_args = ['[input_arrays]'] + * docs = [] + */ + __pyx_t_1 = PyObject_GetItem(__pyx_v_func_info, __pyx_n_s_name); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 597, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __pyx_t_2 = PyList_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 597, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_GIVEREF(__pyx_t_1); + PyList_SET_ITEM(__pyx_t_2, 0, __pyx_t_1); + __Pyx_INCREF(__pyx_kp_s__1214); + __Pyx_GIVEREF(__pyx_kp_s__1214); + PyList_SET_ITEM(__pyx_t_2, 1, __pyx_kp_s__1214); + __pyx_t_1 = 0; + __pyx_v_func_line = ((PyObject*)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_abstract.pxi":598 + * defaults = {} + * func_line = [func_info['name'], '('] + * func_args = ['[input_arrays]'] # <<<<<<<<<<<<<< + * docs = [] + * docs.append('%(display_name)s (%(group)s)\n' % func_info) + */ + __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 598, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_INCREF(__pyx_kp_s_input_arrays_2); + __Pyx_GIVEREF(__pyx_kp_s_input_arrays_2); + PyList_SET_ITEM(__pyx_t_2, 0, __pyx_kp_s_input_arrays_2); + __pyx_v_func_args = ((PyObject*)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_abstract.pxi":599 + * func_line = [func_info['name'], '('] + * func_args = ['[input_arrays]'] + * docs = [] # <<<<<<<<<<<<<< + * docs.append('%(display_name)s (%(group)s)\n' % func_info) + * + */ + __pyx_t_2 = PyList_New(0); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 599, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_v_docs = ((PyObject*)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_abstract.pxi":600 + * func_args = ['[input_arrays]'] + * docs = [] + * docs.append('%(display_name)s (%(group)s)\n' % func_info) # <<<<<<<<<<<<<< + * + * input_names = func_info['input_names'] + */ + __pyx_t_2 = __Pyx_PyString_Format(__pyx_kp_s_display_name_s_group_s, __pyx_v_func_info); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 600, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_t_3 = __Pyx_PyList_Append(__pyx_v_docs, __pyx_t_2); if (unlikely(__pyx_t_3 == -1)) __PYX_ERR(1, 600, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_abstract.pxi":602 + * docs.append('%(display_name)s (%(group)s)\n' % func_info) + * + * input_names = func_info['input_names'] # <<<<<<<<<<<<<< + * docs.append('Inputs:') + * for input_name in input_names: + */ + __pyx_t_2 = PyObject_GetItem(__pyx_v_func_info, __pyx_n_s_input_names); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 602, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_v_input_names = __pyx_t_2; + __pyx_t_2 = 0; + + /* "talib/_abstract.pxi":603 + * + * input_names = func_info['input_names'] + * docs.append('Inputs:') # <<<<<<<<<<<<<< + * for input_name in input_names: + * value = input_names[input_name] + */ + __pyx_t_3 = __Pyx_PyList_Append(__pyx_v_docs, __pyx_kp_s_Inputs); if (unlikely(__pyx_t_3 == -1)) __PYX_ERR(1, 603, __pyx_L1_error) + + /* "talib/_abstract.pxi":604 + * input_names = func_info['input_names'] + * docs.append('Inputs:') + * for input_name in input_names: # <<<<<<<<<<<<<< + * value = input_names[input_name] + * if not isinstance(value, list): + */ + if (likely(PyList_CheckExact(__pyx_v_input_names)) || PyTuple_CheckExact(__pyx_v_input_names)) { + __pyx_t_2 = __pyx_v_input_names; __Pyx_INCREF(__pyx_t_2); __pyx_t_4 = 0; + __pyx_t_5 = NULL; + } else { + __pyx_t_4 = -1; __pyx_t_2 = PyObject_GetIter(__pyx_v_input_names); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 604, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_t_5 = Py_TYPE(__pyx_t_2)->tp_iternext; if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 604, __pyx_L1_error) + } + for (;;) { + if (likely(!__pyx_t_5)) { + if (likely(PyList_CheckExact(__pyx_t_2))) { + if (__pyx_t_4 >= PyList_GET_SIZE(__pyx_t_2)) break; + #if CYTHON_COMPILING_IN_CPYTHON + __pyx_t_1 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_4); __Pyx_INCREF(__pyx_t_1); __pyx_t_4++; if (unlikely(0 < 0)) __PYX_ERR(1, 604, __pyx_L1_error) + #else + __pyx_t_1 = PySequence_ITEM(__pyx_t_2, __pyx_t_4); __pyx_t_4++; if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 604, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + #endif + } else { + if (__pyx_t_4 >= PyTuple_GET_SIZE(__pyx_t_2)) break; + #if CYTHON_COMPILING_IN_CPYTHON + __pyx_t_1 = PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_4); __Pyx_INCREF(__pyx_t_1); __pyx_t_4++; if (unlikely(0 < 0)) __PYX_ERR(1, 604, __pyx_L1_error) + #else + __pyx_t_1 = PySequence_ITEM(__pyx_t_2, __pyx_t_4); __pyx_t_4++; if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 604, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + #endif + } + } else { + __pyx_t_1 = __pyx_t_5(__pyx_t_2); + if (unlikely(!__pyx_t_1)) { + PyObject* exc_type = PyErr_Occurred(); + if (exc_type) { + if (likely(exc_type == PyExc_StopIteration || PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); + else __PYX_ERR(1, 604, __pyx_L1_error) + } + break; + } + __Pyx_GOTREF(__pyx_t_1); + } + __Pyx_XDECREF_SET(__pyx_v_input_name, __pyx_t_1); + __pyx_t_1 = 0; + + /* "talib/_abstract.pxi":605 + * docs.append('Inputs:') + * for input_name in input_names: + * value = input_names[input_name] # <<<<<<<<<<<<<< + * if not isinstance(value, list): + * value = '(any ndarray)' + */ + __pyx_t_1 = PyObject_GetItem(__pyx_v_input_names, __pyx_v_input_name); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 605, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __Pyx_XDECREF_SET(__pyx_v_value, __pyx_t_1); + __pyx_t_1 = 0; + + /* "talib/_abstract.pxi":606 + * for input_name in input_names: + * value = input_names[input_name] + * if not isinstance(value, list): # <<<<<<<<<<<<<< + * value = '(any ndarray)' + * docs.append(' %s: %s' % (input_name, value)) + */ + __pyx_t_6 = PyList_Check(__pyx_v_value); + __pyx_t_7 = ((!(__pyx_t_6 != 0)) != 0); + if (__pyx_t_7) { + + /* "talib/_abstract.pxi":607 + * value = input_names[input_name] + * if not isinstance(value, list): + * value = '(any ndarray)' # <<<<<<<<<<<<<< + * docs.append(' %s: %s' % (input_name, value)) + * + */ + __Pyx_INCREF(__pyx_kp_s_any_ndarray); + __Pyx_DECREF_SET(__pyx_v_value, __pyx_kp_s_any_ndarray); + + /* "talib/_abstract.pxi":606 + * for input_name in input_names: + * value = input_names[input_name] + * if not isinstance(value, list): # <<<<<<<<<<<<<< + * value = '(any ndarray)' + * docs.append(' %s: %s' % (input_name, value)) + */ + } + + /* "talib/_abstract.pxi":608 + * if not isinstance(value, list): + * value = '(any ndarray)' + * docs.append(' %s: %s' % (input_name, value)) # <<<<<<<<<<<<<< + * + * params = func_info['parameters'] + */ + __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 608, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __Pyx_INCREF(__pyx_v_input_name); + __Pyx_GIVEREF(__pyx_v_input_name); + PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_input_name); + __Pyx_INCREF(__pyx_v_value); + __Pyx_GIVEREF(__pyx_v_value); + PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_v_value); + __pyx_t_8 = __Pyx_PyString_Format(__pyx_kp_s_s_s, __pyx_t_1); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 608, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_8); + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + __pyx_t_3 = __Pyx_PyList_Append(__pyx_v_docs, __pyx_t_8); if (unlikely(__pyx_t_3 == -1)) __PYX_ERR(1, 608, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; + + /* "talib/_abstract.pxi":604 + * input_names = func_info['input_names'] + * docs.append('Inputs:') + * for input_name in input_names: # <<<<<<<<<<<<<< + * value = input_names[input_name] + * if not isinstance(value, list): + */ + } + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_abstract.pxi":610 + * docs.append(' %s: %s' % (input_name, value)) + * + * params = func_info['parameters'] # <<<<<<<<<<<<<< + * if params: + * docs.append('Parameters:') + */ + __pyx_t_2 = PyObject_GetItem(__pyx_v_func_info, __pyx_n_s_parameters); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 610, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_v_params = __pyx_t_2; + __pyx_t_2 = 0; + + /* "talib/_abstract.pxi":611 + * + * params = func_info['parameters'] + * if params: # <<<<<<<<<<<<<< + * docs.append('Parameters:') + * for param in params: + */ + __pyx_t_7 = __Pyx_PyObject_IsTrue(__pyx_v_params); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(1, 611, __pyx_L1_error) + if (__pyx_t_7) { + + /* "talib/_abstract.pxi":612 + * params = func_info['parameters'] + * if params: + * docs.append('Parameters:') # <<<<<<<<<<<<<< + * for param in params: + * docs.append(' %s: %s' % (param, params[param])) + */ + __pyx_t_3 = __Pyx_PyList_Append(__pyx_v_docs, __pyx_kp_s_Parameters); if (unlikely(__pyx_t_3 == -1)) __PYX_ERR(1, 612, __pyx_L1_error) + + /* "talib/_abstract.pxi":611 + * + * params = func_info['parameters'] + * if params: # <<<<<<<<<<<<<< + * docs.append('Parameters:') + * for param in params: + */ + } + + /* "talib/_abstract.pxi":613 + * if params: + * docs.append('Parameters:') + * for param in params: # <<<<<<<<<<<<<< + * docs.append(' %s: %s' % (param, params[param])) + * func_args.append('[%s=%s]' % (param, params[param])) + */ + if (likely(PyList_CheckExact(__pyx_v_params)) || PyTuple_CheckExact(__pyx_v_params)) { + __pyx_t_2 = __pyx_v_params; __Pyx_INCREF(__pyx_t_2); __pyx_t_4 = 0; + __pyx_t_5 = NULL; + } else { + __pyx_t_4 = -1; __pyx_t_2 = PyObject_GetIter(__pyx_v_params); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 613, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_t_5 = Py_TYPE(__pyx_t_2)->tp_iternext; if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 613, __pyx_L1_error) + } + for (;;) { + if (likely(!__pyx_t_5)) { + if (likely(PyList_CheckExact(__pyx_t_2))) { + if (__pyx_t_4 >= PyList_GET_SIZE(__pyx_t_2)) break; + #if CYTHON_COMPILING_IN_CPYTHON + __pyx_t_8 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_4); __Pyx_INCREF(__pyx_t_8); __pyx_t_4++; if (unlikely(0 < 0)) __PYX_ERR(1, 613, __pyx_L1_error) + #else + __pyx_t_8 = PySequence_ITEM(__pyx_t_2, __pyx_t_4); __pyx_t_4++; if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 613, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_8); + #endif + } else { + if (__pyx_t_4 >= PyTuple_GET_SIZE(__pyx_t_2)) break; + #if CYTHON_COMPILING_IN_CPYTHON + __pyx_t_8 = PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_4); __Pyx_INCREF(__pyx_t_8); __pyx_t_4++; if (unlikely(0 < 0)) __PYX_ERR(1, 613, __pyx_L1_error) + #else + __pyx_t_8 = PySequence_ITEM(__pyx_t_2, __pyx_t_4); __pyx_t_4++; if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 613, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_8); + #endif + } + } else { + __pyx_t_8 = __pyx_t_5(__pyx_t_2); + if (unlikely(!__pyx_t_8)) { + PyObject* exc_type = PyErr_Occurred(); + if (exc_type) { + if (likely(exc_type == PyExc_StopIteration || PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); + else __PYX_ERR(1, 613, __pyx_L1_error) + } + break; + } + __Pyx_GOTREF(__pyx_t_8); + } + __Pyx_XDECREF_SET(__pyx_v_param, __pyx_t_8); + __pyx_t_8 = 0; + + /* "talib/_abstract.pxi":614 + * docs.append('Parameters:') + * for param in params: + * docs.append(' %s: %s' % (param, params[param])) # <<<<<<<<<<<<<< + * func_args.append('[%s=%s]' % (param, params[param])) + * defaults[param] = params[param] + */ + __pyx_t_8 = PyObject_GetItem(__pyx_v_params, __pyx_v_param); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 614, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_8); + __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 614, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __Pyx_INCREF(__pyx_v_param); + __Pyx_GIVEREF(__pyx_v_param); + PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_param); + __Pyx_GIVEREF(__pyx_t_8); + PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_8); + __pyx_t_8 = 0; + __pyx_t_8 = __Pyx_PyString_Format(__pyx_kp_s_s_s, __pyx_t_1); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 614, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_8); + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + __pyx_t_3 = __Pyx_PyList_Append(__pyx_v_docs, __pyx_t_8); if (unlikely(__pyx_t_3 == -1)) __PYX_ERR(1, 614, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; + + /* "talib/_abstract.pxi":615 + * for param in params: + * docs.append(' %s: %s' % (param, params[param])) + * func_args.append('[%s=%s]' % (param, params[param])) # <<<<<<<<<<<<<< + * defaults[param] = params[param] + * if param == 'matype': + */ + __pyx_t_8 = PyObject_GetItem(__pyx_v_params, __pyx_v_param); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 615, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_8); + __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 615, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __Pyx_INCREF(__pyx_v_param); + __Pyx_GIVEREF(__pyx_v_param); + PyTuple_SET_ITEM(__pyx_t_1, 0, __pyx_v_param); + __Pyx_GIVEREF(__pyx_t_8); + PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_8); + __pyx_t_8 = 0; + __pyx_t_8 = __Pyx_PyString_Format(__pyx_kp_s_s_s_2, __pyx_t_1); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 615, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_8); + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + __pyx_t_3 = __Pyx_PyList_Append(__pyx_v_func_args, __pyx_t_8); if (unlikely(__pyx_t_3 == -1)) __PYX_ERR(1, 615, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; + + /* "talib/_abstract.pxi":616 + * docs.append(' %s: %s' % (param, params[param])) + * func_args.append('[%s=%s]' % (param, params[param])) + * defaults[param] = params[param] # <<<<<<<<<<<<<< + * if param == 'matype': + * docs[-1] = ' '.join([docs[-1], '(%s)' % MA_Type[params[param]]]) + */ + __pyx_t_8 = PyObject_GetItem(__pyx_v_params, __pyx_v_param); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 616, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_8); + if (unlikely(PyDict_SetItem(__pyx_v_defaults, __pyx_v_param, __pyx_t_8) < 0)) __PYX_ERR(1, 616, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; + + /* "talib/_abstract.pxi":617 + * func_args.append('[%s=%s]' % (param, params[param])) + * defaults[param] = params[param] + * if param == 'matype': # <<<<<<<<<<<<<< + * docs[-1] = ' '.join([docs[-1], '(%s)' % MA_Type[params[param]]]) + * + */ + __pyx_t_7 = (__Pyx_PyString_Equals(__pyx_v_param, __pyx_n_s_matype, Py_EQ)); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(1, 617, __pyx_L1_error) + if (__pyx_t_7) { + + /* "talib/_abstract.pxi":618 + * defaults[param] = params[param] + * if param == 'matype': + * docs[-1] = ' '.join([docs[-1], '(%s)' % MA_Type[params[param]]]) # <<<<<<<<<<<<<< + * + * outputs = func_info['output_names'] + */ + __pyx_t_8 = __Pyx_GetItemInt_List(__pyx_v_docs, -1L, long, 1, __Pyx_PyInt_From_long, 1, 1, 1); if (unlikely(!__pyx_t_8)) __PYX_ERR(1, 618, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_8); + __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_MA_Type); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 618, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __pyx_t_9 = PyObject_GetItem(__pyx_v_params, __pyx_v_param); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 618, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_9); + __pyx_t_10 = PyObject_GetItem(__pyx_t_1, __pyx_t_9); if (unlikely(!__pyx_t_10)) __PYX_ERR(1, 618, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_10); + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + __pyx_t_9 = __Pyx_PyString_Format(__pyx_kp_s_s_3, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 618, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_9); + __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; + __pyx_t_10 = PyList_New(2); if (unlikely(!__pyx_t_10)) __PYX_ERR(1, 618, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_10); + __Pyx_GIVEREF(__pyx_t_8); + PyList_SET_ITEM(__pyx_t_10, 0, __pyx_t_8); + __Pyx_GIVEREF(__pyx_t_9); + PyList_SET_ITEM(__pyx_t_10, 1, __pyx_t_9); + __pyx_t_8 = 0; + __pyx_t_9 = 0; + __pyx_t_9 = __Pyx_PyString_Join(__pyx_kp_s__1215, __pyx_t_10); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 618, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_9); + __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; + if (unlikely(__Pyx_SetItemInt(__pyx_v_docs, -1L, __pyx_t_9, long, 1, __Pyx_PyInt_From_long, 1, 1, 1) < 0)) __PYX_ERR(1, 618, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + + /* "talib/_abstract.pxi":617 + * func_args.append('[%s=%s]' % (param, params[param])) + * defaults[param] = params[param] + * if param == 'matype': # <<<<<<<<<<<<<< + * docs[-1] = ' '.join([docs[-1], '(%s)' % MA_Type[params[param]]]) + * + */ + } + + /* "talib/_abstract.pxi":613 + * if params: + * docs.append('Parameters:') + * for param in params: # <<<<<<<<<<<<<< + * docs.append(' %s: %s' % (param, params[param])) + * func_args.append('[%s=%s]' % (param, params[param])) + */ + } + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_abstract.pxi":620 + * docs[-1] = ' '.join([docs[-1], '(%s)' % MA_Type[params[param]]]) + * + * outputs = func_info['output_names'] # <<<<<<<<<<<<<< + * docs.append('Outputs:') + * for output in outputs: + */ + __pyx_t_2 = PyObject_GetItem(__pyx_v_func_info, __pyx_n_s_output_names); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 620, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_v_outputs = __pyx_t_2; + __pyx_t_2 = 0; + + /* "talib/_abstract.pxi":621 + * + * outputs = func_info['output_names'] + * docs.append('Outputs:') # <<<<<<<<<<<<<< + * for output in outputs: + * if output == 'integer': + */ + __pyx_t_3 = __Pyx_PyList_Append(__pyx_v_docs, __pyx_kp_s_Outputs); if (unlikely(__pyx_t_3 == -1)) __PYX_ERR(1, 621, __pyx_L1_error) + + /* "talib/_abstract.pxi":622 + * outputs = func_info['output_names'] + * docs.append('Outputs:') + * for output in outputs: # <<<<<<<<<<<<<< + * if output == 'integer': + * output = 'integer (values are -100, 0 or 100)' + */ + if (likely(PyList_CheckExact(__pyx_v_outputs)) || PyTuple_CheckExact(__pyx_v_outputs)) { + __pyx_t_2 = __pyx_v_outputs; __Pyx_INCREF(__pyx_t_2); __pyx_t_4 = 0; + __pyx_t_5 = NULL; + } else { + __pyx_t_4 = -1; __pyx_t_2 = PyObject_GetIter(__pyx_v_outputs); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 622, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_t_5 = Py_TYPE(__pyx_t_2)->tp_iternext; if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 622, __pyx_L1_error) + } + for (;;) { + if (likely(!__pyx_t_5)) { + if (likely(PyList_CheckExact(__pyx_t_2))) { + if (__pyx_t_4 >= PyList_GET_SIZE(__pyx_t_2)) break; + #if CYTHON_COMPILING_IN_CPYTHON + __pyx_t_9 = PyList_GET_ITEM(__pyx_t_2, __pyx_t_4); __Pyx_INCREF(__pyx_t_9); __pyx_t_4++; if (unlikely(0 < 0)) __PYX_ERR(1, 622, __pyx_L1_error) + #else + __pyx_t_9 = PySequence_ITEM(__pyx_t_2, __pyx_t_4); __pyx_t_4++; if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 622, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_9); + #endif + } else { + if (__pyx_t_4 >= PyTuple_GET_SIZE(__pyx_t_2)) break; + #if CYTHON_COMPILING_IN_CPYTHON + __pyx_t_9 = PyTuple_GET_ITEM(__pyx_t_2, __pyx_t_4); __Pyx_INCREF(__pyx_t_9); __pyx_t_4++; if (unlikely(0 < 0)) __PYX_ERR(1, 622, __pyx_L1_error) + #else + __pyx_t_9 = PySequence_ITEM(__pyx_t_2, __pyx_t_4); __pyx_t_4++; if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 622, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_9); + #endif + } + } else { + __pyx_t_9 = __pyx_t_5(__pyx_t_2); + if (unlikely(!__pyx_t_9)) { + PyObject* exc_type = PyErr_Occurred(); + if (exc_type) { + if (likely(exc_type == PyExc_StopIteration || PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration))) PyErr_Clear(); + else __PYX_ERR(1, 622, __pyx_L1_error) + } + break; + } + __Pyx_GOTREF(__pyx_t_9); + } + __Pyx_XDECREF_SET(__pyx_v_output, __pyx_t_9); + __pyx_t_9 = 0; + + /* "talib/_abstract.pxi":623 + * docs.append('Outputs:') + * for output in outputs: + * if output == 'integer': # <<<<<<<<<<<<<< + * output = 'integer (values are -100, 0 or 100)' + * docs.append(' %s' % output) + */ + __pyx_t_7 = (__Pyx_PyString_Equals(__pyx_v_output, __pyx_n_s_integer, Py_EQ)); if (unlikely(__pyx_t_7 < 0)) __PYX_ERR(1, 623, __pyx_L1_error) + if (__pyx_t_7) { + + /* "talib/_abstract.pxi":624 + * for output in outputs: + * if output == 'integer': + * output = 'integer (values are -100, 0 or 100)' # <<<<<<<<<<<<<< + * docs.append(' %s' % output) + * + */ + __Pyx_INCREF(__pyx_kp_s_integer_values_are_100_0_or_100); + __Pyx_DECREF_SET(__pyx_v_output, __pyx_kp_s_integer_values_are_100_0_or_100); + + /* "talib/_abstract.pxi":623 + * docs.append('Outputs:') + * for output in outputs: + * if output == 'integer': # <<<<<<<<<<<<<< + * output = 'integer (values are -100, 0 or 100)' + * docs.append(' %s' % output) + */ + } + + /* "talib/_abstract.pxi":625 + * if output == 'integer': + * output = 'integer (values are -100, 0 or 100)' + * docs.append(' %s' % output) # <<<<<<<<<<<<<< + * + * func_line.append(', '.join(func_args)) + */ + __pyx_t_9 = __Pyx_PyString_Format(__pyx_kp_s_s_4, __pyx_v_output); if (unlikely(!__pyx_t_9)) __PYX_ERR(1, 625, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_9); + __pyx_t_3 = __Pyx_PyList_Append(__pyx_v_docs, __pyx_t_9); if (unlikely(__pyx_t_3 == -1)) __PYX_ERR(1, 625, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + + /* "talib/_abstract.pxi":622 + * outputs = func_info['output_names'] + * docs.append('Outputs:') + * for output in outputs: # <<<<<<<<<<<<<< + * if output == 'integer': + * output = 'integer (values are -100, 0 or 100)' + */ + } + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_abstract.pxi":627 + * docs.append(' %s' % output) + * + * func_line.append(', '.join(func_args)) # <<<<<<<<<<<<<< + * func_line.append(')\n') + * docs.insert(0, ''.join(func_line)) + */ + __pyx_t_2 = __Pyx_PyString_Join(__pyx_kp_s__1212, __pyx_v_func_args); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 627, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_t_3 = __Pyx_PyList_Append(__pyx_v_func_line, __pyx_t_2); if (unlikely(__pyx_t_3 == -1)) __PYX_ERR(1, 627, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_abstract.pxi":628 + * + * func_line.append(', '.join(func_args)) + * func_line.append(')\n') # <<<<<<<<<<<<<< + * docs.insert(0, ''.join(func_line)) + * documentation = '\n'.join(docs) + */ + __pyx_t_3 = __Pyx_PyList_Append(__pyx_v_func_line, __pyx_kp_s__1216); if (unlikely(__pyx_t_3 == -1)) __PYX_ERR(1, 628, __pyx_L1_error) + + /* "talib/_abstract.pxi":629 + * func_line.append(', '.join(func_args)) + * func_line.append(')\n') + * docs.insert(0, ''.join(func_line)) # <<<<<<<<<<<<<< + * documentation = '\n'.join(docs) + * return defaults, documentation + */ + __pyx_t_2 = __Pyx_PyString_Join(__pyx_kp_s__1211, __pyx_v_func_line); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 629, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_t_3 = PyList_Insert(__pyx_v_docs, 0, __pyx_t_2); if (unlikely(__pyx_t_3 == -1)) __PYX_ERR(1, 629, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_abstract.pxi":630 + * func_line.append(')\n') + * docs.insert(0, ''.join(func_line)) + * documentation = '\n'.join(docs) # <<<<<<<<<<<<<< + * return defaults, documentation + * + */ + __pyx_t_2 = __Pyx_PyString_Join(__pyx_kp_s__1217, __pyx_v_docs); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 630, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_v_documentation = ((PyObject*)__pyx_t_2); + __pyx_t_2 = 0; + + /* "talib/_abstract.pxi":631 + * docs.insert(0, ''.join(func_line)) + * documentation = '\n'.join(docs) + * return defaults, documentation # <<<<<<<<<<<<<< + * + * + */ + __Pyx_XDECREF(__pyx_r); + __pyx_t_2 = PyTuple_New(2); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 631, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_INCREF(__pyx_v_defaults); + __Pyx_GIVEREF(__pyx_v_defaults); + PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_v_defaults); + __Pyx_INCREF(__pyx_v_documentation); + __Pyx_GIVEREF(__pyx_v_documentation); + PyTuple_SET_ITEM(__pyx_t_2, 1, __pyx_v_documentation); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_abstract.pxi":590 + * } + * + * def _get_defaults_and_docs(func_info): # <<<<<<<<<<<<<< + * """ + * Returns a tuple with two outputs: defaults, a dict of parameter defaults, + */ + + /* function exit code */ + __pyx_L1_error:; + __Pyx_XDECREF(__pyx_t_1); + __Pyx_XDECREF(__pyx_t_2); + __Pyx_XDECREF(__pyx_t_8); + __Pyx_XDECREF(__pyx_t_9); + __Pyx_XDECREF(__pyx_t_10); + __Pyx_AddTraceback("talib.c_ta_lib._get_defaults_and_docs", __pyx_clineno, __pyx_lineno, __pyx_filename); + __pyx_r = NULL; + __pyx_L0:; + __Pyx_XDECREF(__pyx_v_defaults); + __Pyx_XDECREF(__pyx_v_func_line); + __Pyx_XDECREF(__pyx_v_func_args); + __Pyx_XDECREF(__pyx_v_docs); + __Pyx_XDECREF(__pyx_v_input_names); + __Pyx_XDECREF(__pyx_v_input_name); + __Pyx_XDECREF(__pyx_v_value); + __Pyx_XDECREF(__pyx_v_params); + __Pyx_XDECREF(__pyx_v_param); + __Pyx_XDECREF(__pyx_v_outputs); + __Pyx_XDECREF(__pyx_v_output); + __Pyx_XDECREF(__pyx_v_documentation); + __Pyx_XGIVEREF(__pyx_r); + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "talib/_abstract.pxi":642 + * # - Setting TALIB paramholder optInput values and calling the lookback function + * + * cdef lib.TA_FuncHandle* __ta_getFuncHandle(char *function_name): # <<<<<<<<<<<<<< + * """ + * Returns a pointer to a function handle for the given function name + */ + +static TA_FuncHandle *__pyx_f_5talib_8c_ta_lib___ta_getFuncHandle(char *__pyx_v_function_name) { + TA_FuncHandle *__pyx_v_handle; + TA_FuncHandle *__pyx_r; + __Pyx_RefNannyDeclarations + PyObject *__pyx_t_1 = NULL; + __Pyx_RefNannySetupContext("__ta_getFuncHandle", 0); + + /* "talib/_abstract.pxi":647 + * """ + * cdef lib.TA_FuncHandle *handle + * _ta_check_success('TA_GetFuncHandle', lib.TA_GetFuncHandle(function_name, &handle)) # <<<<<<<<<<<<<< + * return handle + * + */ + __pyx_t_1 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_GetFuncHandle, TA_GetFuncHandle(__pyx_v_function_name, (&__pyx_v_handle)), 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 647, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + + /* "talib/_abstract.pxi":648 + * cdef lib.TA_FuncHandle *handle + * _ta_check_success('TA_GetFuncHandle', lib.TA_GetFuncHandle(function_name, &handle)) + * return handle # <<<<<<<<<<<<<< + * + * cdef lib.TA_ParamHolder* __ta_paramHolderAlloc(char *function_name): + */ + __pyx_r = __pyx_v_handle; + goto __pyx_L0; + + /* "talib/_abstract.pxi":642 + * # - Setting TALIB paramholder optInput values and calling the lookback function + * + * cdef lib.TA_FuncHandle* __ta_getFuncHandle(char *function_name): # <<<<<<<<<<<<<< + * """ + * Returns a pointer to a function handle for the given function name + */ + + /* function exit code */ + __pyx_L1_error:; + __Pyx_XDECREF(__pyx_t_1); + __Pyx_WriteUnraisable("talib.c_ta_lib.__ta_getFuncHandle", __pyx_clineno, __pyx_lineno, __pyx_filename, 0, 0); + __pyx_r = 0; + __pyx_L0:; + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "talib/_abstract.pxi":650 + * return handle + * + * cdef lib.TA_ParamHolder* __ta_paramHolderAlloc(char *function_name): # <<<<<<<<<<<<<< + * """ + * Returns a pointer to a parameter holder for the given function name + */ + +static TA_ParamHolder *__pyx_f_5talib_8c_ta_lib___ta_paramHolderAlloc(char *__pyx_v_function_name) { + TA_ParamHolder *__pyx_v_holder; + TA_RetCode __pyx_v_retCode; + TA_ParamHolder *__pyx_r; + __Pyx_RefNannyDeclarations + PyObject *__pyx_t_1 = NULL; + __Pyx_RefNannySetupContext("__ta_paramHolderAlloc", 0); + + /* "talib/_abstract.pxi":655 + * """ + * cdef lib.TA_ParamHolder *holder + * retCode = lib.TA_ParamHolderAlloc(__ta_getFuncHandle(function_name), &holder) # <<<<<<<<<<<<<< + * _ta_check_success('TA_ParamHolderAlloc', retCode) + * return holder + */ + __pyx_v_retCode = TA_ParamHolderAlloc(__pyx_f_5talib_8c_ta_lib___ta_getFuncHandle(__pyx_v_function_name), (&__pyx_v_holder)); + + /* "talib/_abstract.pxi":656 + * cdef lib.TA_ParamHolder *holder + * retCode = lib.TA_ParamHolderAlloc(__ta_getFuncHandle(function_name), &holder) + * _ta_check_success('TA_ParamHolderAlloc', retCode) # <<<<<<<<<<<<<< + * return holder + * + */ + __pyx_t_1 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_ParamHolderAlloc, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 656, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + + /* "talib/_abstract.pxi":657 + * retCode = lib.TA_ParamHolderAlloc(__ta_getFuncHandle(function_name), &holder) + * _ta_check_success('TA_ParamHolderAlloc', retCode) + * return holder # <<<<<<<<<<<<<< + * + * cdef int __ta_paramHolderFree(lib.TA_ParamHolder *params): + */ + __pyx_r = __pyx_v_holder; + goto __pyx_L0; + + /* "talib/_abstract.pxi":650 + * return handle + * + * cdef lib.TA_ParamHolder* __ta_paramHolderAlloc(char *function_name): # <<<<<<<<<<<<<< + * """ + * Returns a pointer to a parameter holder for the given function name + */ + + /* function exit code */ + __pyx_L1_error:; + __Pyx_XDECREF(__pyx_t_1); + __Pyx_WriteUnraisable("talib.c_ta_lib.__ta_paramHolderAlloc", __pyx_clineno, __pyx_lineno, __pyx_filename, 0, 0); + __pyx_r = 0; + __pyx_L0:; + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "talib/_abstract.pxi":659 + * return holder + * + * cdef int __ta_paramHolderFree(lib.TA_ParamHolder *params): # <<<<<<<<<<<<<< + * """ + * Frees the memory allocated by __ta_paramHolderAlloc (call when done with the parameter holder) + */ + +static int __pyx_f_5talib_8c_ta_lib___ta_paramHolderFree(TA_ParamHolder *__pyx_v_params) { + int __pyx_r; + __Pyx_RefNannyDeclarations + PyObject *__pyx_t_1 = NULL; + __Pyx_RefNannySetupContext("__ta_paramHolderFree", 0); + + /* "talib/_abstract.pxi":664 + * WARNING: Not properly calling this function will cause memory leaks! + * """ + * _ta_check_success('TA_ParamHolderFree', lib.TA_ParamHolderFree(params)) # <<<<<<<<<<<<<< + * + * cdef int __ta_setOptInputParamInteger(lib.TA_ParamHolder *holder, int idx, int value): + */ + __pyx_t_1 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_ParamHolderFree, TA_ParamHolderFree(__pyx_v_params), 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 664, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + + /* "talib/_abstract.pxi":659 + * return holder + * + * cdef int __ta_paramHolderFree(lib.TA_ParamHolder *params): # <<<<<<<<<<<<<< + * """ + * Frees the memory allocated by __ta_paramHolderAlloc (call when done with the parameter holder) + */ + + /* function exit code */ + __pyx_r = 0; + goto __pyx_L0; + __pyx_L1_error:; + __Pyx_XDECREF(__pyx_t_1); + __Pyx_WriteUnraisable("talib.c_ta_lib.__ta_paramHolderFree", __pyx_clineno, __pyx_lineno, __pyx_filename, 0, 0); + __pyx_r = 0; + __pyx_L0:; + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "talib/_abstract.pxi":666 + * _ta_check_success('TA_ParamHolderFree', lib.TA_ParamHolderFree(params)) + * + * cdef int __ta_setOptInputParamInteger(lib.TA_ParamHolder *holder, int idx, int value): # <<<<<<<<<<<<<< + * retCode = lib.TA_SetOptInputParamInteger(holder, idx, value) + * _ta_check_success('TA_SetOptInputParamInteger', retCode) + */ + +static int __pyx_f_5talib_8c_ta_lib___ta_setOptInputParamInteger(TA_ParamHolder *__pyx_v_holder, int __pyx_v_idx, int __pyx_v_value) { + TA_RetCode __pyx_v_retCode; + int __pyx_r; + __Pyx_RefNannyDeclarations + PyObject *__pyx_t_1 = NULL; + __Pyx_RefNannySetupContext("__ta_setOptInputParamInteger", 0); + + /* "talib/_abstract.pxi":667 + * + * cdef int __ta_setOptInputParamInteger(lib.TA_ParamHolder *holder, int idx, int value): + * retCode = lib.TA_SetOptInputParamInteger(holder, idx, value) # <<<<<<<<<<<<<< + * _ta_check_success('TA_SetOptInputParamInteger', retCode) + * + */ + __pyx_v_retCode = TA_SetOptInputParamInteger(__pyx_v_holder, __pyx_v_idx, __pyx_v_value); + + /* "talib/_abstract.pxi":668 + * cdef int __ta_setOptInputParamInteger(lib.TA_ParamHolder *holder, int idx, int value): + * retCode = lib.TA_SetOptInputParamInteger(holder, idx, value) + * _ta_check_success('TA_SetOptInputParamInteger', retCode) # <<<<<<<<<<<<<< + * + * cdef int __ta_setOptInputParamReal(lib.TA_ParamHolder *holder, int idx, int value): + */ + __pyx_t_1 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_SetOptInputParamInteger, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 668, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + + /* "talib/_abstract.pxi":666 + * _ta_check_success('TA_ParamHolderFree', lib.TA_ParamHolderFree(params)) + * + * cdef int __ta_setOptInputParamInteger(lib.TA_ParamHolder *holder, int idx, int value): # <<<<<<<<<<<<<< + * retCode = lib.TA_SetOptInputParamInteger(holder, idx, value) + * _ta_check_success('TA_SetOptInputParamInteger', retCode) + */ + + /* function exit code */ + __pyx_r = 0; + goto __pyx_L0; + __pyx_L1_error:; + __Pyx_XDECREF(__pyx_t_1); + __Pyx_WriteUnraisable("talib.c_ta_lib.__ta_setOptInputParamInteger", __pyx_clineno, __pyx_lineno, __pyx_filename, 0, 0); + __pyx_r = 0; + __pyx_L0:; + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "talib/_abstract.pxi":670 + * _ta_check_success('TA_SetOptInputParamInteger', retCode) + * + * cdef int __ta_setOptInputParamReal(lib.TA_ParamHolder *holder, int idx, int value): # <<<<<<<<<<<<<< + * retCode = lib.TA_SetOptInputParamReal(holder, idx, value) + * _ta_check_success('TA_SetOptInputParamReal', retCode) + */ + +static int __pyx_f_5talib_8c_ta_lib___ta_setOptInputParamReal(TA_ParamHolder *__pyx_v_holder, int __pyx_v_idx, int __pyx_v_value) { + TA_RetCode __pyx_v_retCode; + int __pyx_r; + __Pyx_RefNannyDeclarations + PyObject *__pyx_t_1 = NULL; + __Pyx_RefNannySetupContext("__ta_setOptInputParamReal", 0); + + /* "talib/_abstract.pxi":671 + * + * cdef int __ta_setOptInputParamReal(lib.TA_ParamHolder *holder, int idx, int value): + * retCode = lib.TA_SetOptInputParamReal(holder, idx, value) # <<<<<<<<<<<<<< + * _ta_check_success('TA_SetOptInputParamReal', retCode) + * + */ + __pyx_v_retCode = TA_SetOptInputParamReal(__pyx_v_holder, __pyx_v_idx, __pyx_v_value); + + /* "talib/_abstract.pxi":672 + * cdef int __ta_setOptInputParamReal(lib.TA_ParamHolder *holder, int idx, int value): + * retCode = lib.TA_SetOptInputParamReal(holder, idx, value) + * _ta_check_success('TA_SetOptInputParamReal', retCode) # <<<<<<<<<<<<<< + * + * cdef int __ta_getLookback(lib.TA_ParamHolder *holder): + */ + __pyx_t_1 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_SetOptInputParamReal, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 672, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + + /* "talib/_abstract.pxi":670 + * _ta_check_success('TA_SetOptInputParamInteger', retCode) + * + * cdef int __ta_setOptInputParamReal(lib.TA_ParamHolder *holder, int idx, int value): # <<<<<<<<<<<<<< + * retCode = lib.TA_SetOptInputParamReal(holder, idx, value) + * _ta_check_success('TA_SetOptInputParamReal', retCode) + */ + + /* function exit code */ + __pyx_r = 0; + goto __pyx_L0; + __pyx_L1_error:; + __Pyx_XDECREF(__pyx_t_1); + __Pyx_WriteUnraisable("talib.c_ta_lib.__ta_setOptInputParamReal", __pyx_clineno, __pyx_lineno, __pyx_filename, 0, 0); + __pyx_r = 0; + __pyx_L0:; + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "talib/_abstract.pxi":674 + * _ta_check_success('TA_SetOptInputParamReal', retCode) + * + * cdef int __ta_getLookback(lib.TA_ParamHolder *holder): # <<<<<<<<<<<<<< + * cdef int lookback + * retCode = lib.TA_GetLookback(holder, &lookback) + */ + +static int __pyx_f_5talib_8c_ta_lib___ta_getLookback(TA_ParamHolder *__pyx_v_holder) { + int __pyx_v_lookback; + TA_RetCode __pyx_v_retCode; + int __pyx_r; + __Pyx_RefNannyDeclarations + PyObject *__pyx_t_1 = NULL; + __Pyx_RefNannySetupContext("__ta_getLookback", 0); + + /* "talib/_abstract.pxi":676 + * cdef int __ta_getLookback(lib.TA_ParamHolder *holder): + * cdef int lookback + * retCode = lib.TA_GetLookback(holder, &lookback) # <<<<<<<<<<<<<< + * _ta_check_success('TA_GetLookback', retCode) + * return lookback + */ + __pyx_v_retCode = TA_GetLookback(__pyx_v_holder, (&__pyx_v_lookback)); + + /* "talib/_abstract.pxi":677 + * cdef int lookback + * retCode = lib.TA_GetLookback(holder, &lookback) + * _ta_check_success('TA_GetLookback', retCode) # <<<<<<<<<<<<<< + * return lookback + */ + __pyx_t_1 = __pyx_f_5talib_8c_ta_lib__ta_check_success(__pyx_n_s_TA_GetLookback, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 677, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + + /* "talib/_abstract.pxi":678 + * retCode = lib.TA_GetLookback(holder, &lookback) + * _ta_check_success('TA_GetLookback', retCode) + * return lookback # <<<<<<<<<<<<<< + */ + __pyx_r = __pyx_v_lookback; + goto __pyx_L0; + + /* "talib/_abstract.pxi":674 + * _ta_check_success('TA_SetOptInputParamReal', retCode) + * + * cdef int __ta_getLookback(lib.TA_ParamHolder *holder): # <<<<<<<<<<<<<< + * cdef int lookback + * retCode = lib.TA_GetLookback(holder, &lookback) + */ + + /* function exit code */ + __pyx_L1_error:; + __Pyx_XDECREF(__pyx_t_1); + __Pyx_WriteUnraisable("talib.c_ta_lib.__ta_getLookback", __pyx_clineno, __pyx_lineno, __pyx_filename, 0, 0); + __pyx_r = 0; + __pyx_L0:; + __Pyx_RefNannyFinishContext(); + return __pyx_r; +} + +/* "talib/_stream.pxi":10 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_ACOS( np.ndarray real not None ): # <<<<<<<<<<<<<< + * """ ACOS(real) + * + */ + +/* Python wrapper */ +static PyObject *__pyx_pw_5talib_8c_ta_lib_351stream_ACOS(PyObject *__pyx_self, PyObject *__pyx_v_real); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_350stream_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_8c_ta_lib_351stream_ACOS = {"stream_ACOS", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_351stream_ACOS, METH_O, __pyx_doc_5talib_8c_ta_lib_350stream_ACOS}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_351stream_ACOS(PyObject *__pyx_self, PyObject *__pyx_v_real) { + PyObject *__pyx_r = 0; + __Pyx_RefNannyDeclarations + __Pyx_RefNannySetupContext("stream_ACOS (wrapper)", 0); + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_real), __pyx_ptype_5numpy_ndarray, 0, "real", 0))) __PYX_ERR(3, 10, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_350stream_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_8c_ta_lib_350stream_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("stream_ACOS", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real); + + /* "talib/_stream.pxi":29 + * 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.pxi":30 + * 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__1218, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 30, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 30, __pyx_L1_error) + + /* "talib/_stream.pxi":29 + * int outnbelement + * double outreal + * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real is not double") + * if real.ndim != 1: + */ + } + + /* "talib/_stream.pxi":31 + * 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.pxi":32 + * 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__1219, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 32, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 32, __pyx_L1_error) + + /* "talib/_stream.pxi":31 + * 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.pxi":33 + * 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 = real.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":34 + * raise Exception("real has wrong dimensions") + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< + * real_data = real.data + * length = real.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 34, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 34, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":33 + * 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 = real.data + */ + } + + /* "talib/_stream.pxi":35 + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data # <<<<<<<<<<<<<< + * length = real.shape[0] + * outreal = NaN + */ + __pyx_v_real_data = ((double *)__pyx_v_real->data); + + /* "talib/_stream.pxi":36 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = 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.pxi":37 + * real_data = 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_8c_ta_lib_NaN; + + /* "talib/_stream.pxi":38 + * 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.pxi":39 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_ACOS, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 39, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":40 + * 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(3, 40, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":10 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_ACOS( np.ndarray real not None ): # <<<<<<<<<<<<<< + * """ ACOS(real) + * + */ + + /* function exit code */ + __pyx_L1_error:; + __Pyx_XDECREF(__pyx_t_2); + __Pyx_AddTraceback("talib.c_ta_lib.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.pxi":44 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_8c_ta_lib_353stream_AD(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_352stream_AD[] = " 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_8c_ta_lib_353stream_AD = {"stream_AD", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_353stream_AD, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_352stream_AD}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_353stream_AD(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("stream_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("stream_AD", 1, 4, 4, 1); __PYX_ERR(3, 44, __pyx_L3_error) + } + case 2: + if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_AD", 1, 4, 4, 2); __PYX_ERR(3, 44, __pyx_L3_error) + } + case 3: + if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_volume)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_AD", 1, 4, 4, 3); __PYX_ERR(3, 44, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "stream_AD") < 0)) __PYX_ERR(3, 44, __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("stream_AD", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 44, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 44, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(3, 44, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(3, 44, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_volume), __pyx_ptype_5numpy_ndarray, 0, "volume", 0))) __PYX_ERR(3, 44, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_352stream_AD(__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_8c_ta_lib_352stream_AD(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("stream_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.pxi":66 + * 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.pxi":67 + * 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__1220, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 67, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 67, __pyx_L1_error) + + /* "talib/_stream.pxi":66 + * int outnbelement + * double outreal + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_stream.pxi":68 + * 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.pxi":69 + * raise 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__1221, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 69, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 69, __pyx_L1_error) + + /* "talib/_stream.pxi":68 + * 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.pxi":70 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":71 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 71, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 71, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":70 + * 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 = high.data + */ + } + + /* "talib/_stream.pxi":72 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":73 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":74 + * high_data = 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__1222, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 74, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 74, __pyx_L1_error) + + /* "talib/_stream.pxi":73 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_stream.pxi":75 + * 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.pxi":76 + * raise 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__1223, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 76, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 76, __pyx_L1_error) + + /* "talib/_stream.pxi":75 + * 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.pxi":77 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":78 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 78, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 78, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":77 + * 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 = low.data + */ + } + + /* "talib/_stream.pxi":79 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":80 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":81 + * low_data = 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__1224, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 81, __pyx_L1_error) + + /* "talib/_stream.pxi":80 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_stream.pxi":82 + * 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.pxi":83 + * raise 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__1225, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 83, __pyx_L1_error) + + /* "talib/_stream.pxi":82 + * 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.pxi":84 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":85 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * if PyArray_TYPE(volume) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 85, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":84 + * 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 = close.data + */ + } + + /* "talib/_stream.pxi":86 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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.pxi":87 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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.pxi":88 + * close_data = 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__1226, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 88, __pyx_L1_error) + + /* "talib/_stream.pxi":87 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data + * if PyArray_TYPE(volume) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("volume is not double") + * if volume.ndim != 1: + */ + } + + /* "talib/_stream.pxi":89 + * 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.pxi":90 + * 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__1227, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 90, __pyx_L1_error) + + /* "talib/_stream.pxi":89 + * 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.pxi":91 + * 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 = volume.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_volume) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":92 + * raise Exception("volume has wrong dimensions") + * if not (PyArray_FLAGS(volume) & np.NPY_C_CONTIGUOUS): + * volume = PyArray_GETCONTIGUOUS(volume) # <<<<<<<<<<<<<< + * volume_data = volume.data + * length = high.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_volume); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 92, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_volume, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":91 + * 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 = volume.data + */ + } + + /* "talib/_stream.pxi":93 + * if not (PyArray_FLAGS(volume) & np.NPY_C_CONTIGUOUS): + * volume = PyArray_GETCONTIGUOUS(volume) + * volume_data = volume.data # <<<<<<<<<<<<<< + * length = high.shape[0] + * if length != low.shape[0]: + */ + __pyx_v_volume_data = ((double *)__pyx_v_volume->data); + + /* "talib/_stream.pxi":94 + * volume = PyArray_GETCONTIGUOUS(volume) + * volume_data = 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.pxi":95 + * volume_data = 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.pxi":96 + * 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__1228, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 96, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 96, __pyx_L1_error) + + /* "talib/_stream.pxi":95 + * volume_data = volume.data + * length = high.shape[0] + * if length != low.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != close.shape[0]: + */ + } + + /* "talib/_stream.pxi":97 + * 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.pxi":98 + * 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__1229, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 98, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 98, __pyx_L1_error) + + /* "talib/_stream.pxi":97 + * 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.pxi":99 + * 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.pxi":100 + * 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__1230, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 100, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 100, __pyx_L1_error) + + /* "talib/_stream.pxi":99 + * 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.pxi":101 + * 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_8c_ta_lib_NaN; + + /* "talib/_stream.pxi":102 + * 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.pxi":103 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_AD, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 103, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":104 + * 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(3, 104, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":44 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":108 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_ADD( np.ndarray real0 not None , np.ndarray real1 not None ): # <<<<<<<<<<<<<< + * """ ADD(real0, real1) + * + */ + +/* Python wrapper */ +static PyObject *__pyx_pw_5talib_8c_ta_lib_355stream_ADD(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_354stream_ADD[] = " 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_8c_ta_lib_355stream_ADD = {"stream_ADD", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_355stream_ADD, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_354stream_ADD}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_355stream_ADD(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("stream_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("stream_ADD", 1, 2, 2, 1); __PYX_ERR(3, 108, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "stream_ADD") < 0)) __PYX_ERR(3, 108, __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("stream_ADD", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 108, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 108, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_real1), __pyx_ptype_5numpy_ndarray, 0, "real1", 0))) __PYX_ERR(3, 108, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_354stream_ADD(__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_8c_ta_lib_354stream_ADD(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("stream_ADD", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real0); + __Pyx_INCREF((PyObject *)__pyx_v_real1); + + /* "talib/_stream.pxi":129 + * 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.pxi":130 + * 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__1231, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 130, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 130, __pyx_L1_error) + + /* "talib/_stream.pxi":129 + * int outnbelement + * double outreal + * if PyArray_TYPE(real0) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real0 is not double") + * if real0.ndim != 1: + */ + } + + /* "talib/_stream.pxi":131 + * 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.pxi":132 + * 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__1232, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 132, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 132, __pyx_L1_error) + + /* "talib/_stream.pxi":131 + * 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.pxi":133 + * 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 = real0.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real0) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":134 + * raise Exception("real0 has wrong dimensions") + * if not (PyArray_FLAGS(real0) & np.NPY_C_CONTIGUOUS): + * real0 = PyArray_GETCONTIGUOUS(real0) # <<<<<<<<<<<<<< + * real0_data = real0.data + * if PyArray_TYPE(real1) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 134, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 134, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real0, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":133 + * 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 = real0.data + */ + } + + /* "talib/_stream.pxi":135 + * if not (PyArray_FLAGS(real0) & np.NPY_C_CONTIGUOUS): + * real0 = PyArray_GETCONTIGUOUS(real0) + * real0_data = 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.pxi":136 + * real0 = PyArray_GETCONTIGUOUS(real0) + * real0_data = 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.pxi":137 + * real0_data = 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__1233, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 137, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 137, __pyx_L1_error) + + /* "talib/_stream.pxi":136 + * real0 = PyArray_GETCONTIGUOUS(real0) + * real0_data = real0.data + * if PyArray_TYPE(real1) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real1 is not double") + * if real1.ndim != 1: + */ + } + + /* "talib/_stream.pxi":138 + * 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.pxi":139 + * 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__1234, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 139, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 139, __pyx_L1_error) + + /* "talib/_stream.pxi":138 + * 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.pxi":140 + * 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 = real1.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real1) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":141 + * raise Exception("real1 has wrong dimensions") + * if not (PyArray_FLAGS(real1) & np.NPY_C_CONTIGUOUS): + * real1 = PyArray_GETCONTIGUOUS(real1) # <<<<<<<<<<<<<< + * real1_data = real1.data + * length = real0.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real1); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 141, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 141, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real1, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":140 + * 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 = real1.data + */ + } + + /* "talib/_stream.pxi":142 + * if not (PyArray_FLAGS(real1) & np.NPY_C_CONTIGUOUS): + * real1 = PyArray_GETCONTIGUOUS(real1) + * real1_data = real1.data # <<<<<<<<<<<<<< + * length = real0.shape[0] + * if length != real1.shape[0]: + */ + __pyx_v_real1_data = ((double *)__pyx_v_real1->data); + + /* "talib/_stream.pxi":143 + * real1 = PyArray_GETCONTIGUOUS(real1) + * real1_data = 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.pxi":144 + * real1_data = 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.pxi":145 + * 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__1235, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 145, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 145, __pyx_L1_error) + + /* "talib/_stream.pxi":144 + * real1_data = real1.data + * length = real0.shape[0] + * if length != real1.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * outreal = NaN + */ + } + + /* "talib/_stream.pxi":146 + * 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_8c_ta_lib_NaN; + + /* "talib/_stream.pxi":147 + * 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.pxi":148 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_ADD, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 148, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":149 + * 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(3, 149, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":108 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":153 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_8c_ta_lib_357stream_ADOSC(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_356stream_ADOSC[] = " 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_8c_ta_lib_357stream_ADOSC = {"stream_ADOSC", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_357stream_ADOSC, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_356stream_ADOSC}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_357stream_ADOSC(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("stream_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("stream_ADOSC", 0, 4, 6, 1); __PYX_ERR(3, 153, __pyx_L3_error) + } + case 2: + if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_ADOSC", 0, 4, 6, 2); __PYX_ERR(3, 153, __pyx_L3_error) + } + case 3: + if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_volume)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_ADOSC", 0, 4, 6, 3); __PYX_ERR(3, 153, __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, "stream_ADOSC") < 0)) __PYX_ERR(3, 153, __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(3, 153, __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(3, 153, __pyx_L3_error) + } else { + __pyx_v_slowperiod = ((int)-2147483648); + } + } + goto __pyx_L4_argument_unpacking_done; + __pyx_L5_argtuple_error:; + __Pyx_RaiseArgtupleInvalid("stream_ADOSC", 0, 4, 6, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 153, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 153, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(3, 153, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(3, 153, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_volume), __pyx_ptype_5numpy_ndarray, 0, "volume", 0))) __PYX_ERR(3, 153, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_356stream_ADOSC(__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_8c_ta_lib_356stream_ADOSC(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("stream_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.pxi":178 + * 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.pxi":179 + * 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__1236, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 179, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 179, __pyx_L1_error) + + /* "talib/_stream.pxi":178 + * int outnbelement + * double outreal + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_stream.pxi":180 + * 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.pxi":181 + * raise 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__1237, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 181, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 181, __pyx_L1_error) + + /* "talib/_stream.pxi":180 + * 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.pxi":182 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":183 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 183, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 183, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":182 + * 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 = high.data + */ + } + + /* "talib/_stream.pxi":184 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":185 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":186 + * high_data = 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__1238, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 186, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 186, __pyx_L1_error) + + /* "talib/_stream.pxi":185 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_stream.pxi":187 + * 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.pxi":188 + * raise 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__1239, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 188, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 188, __pyx_L1_error) + + /* "talib/_stream.pxi":187 + * 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.pxi":189 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":190 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 190, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 190, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":189 + * 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 = low.data + */ + } + + /* "talib/_stream.pxi":191 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":192 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":193 + * low_data = 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__1240, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 193, __pyx_L1_error) + + /* "talib/_stream.pxi":192 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_stream.pxi":194 + * 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.pxi":195 + * raise 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__1241, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 195, __pyx_L1_error) + + /* "talib/_stream.pxi":194 + * 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.pxi":196 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":197 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * if PyArray_TYPE(volume) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 197, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":196 + * 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 = close.data + */ + } + + /* "talib/_stream.pxi":198 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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.pxi":199 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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.pxi":200 + * close_data = 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__1242, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 200, __pyx_L1_error) + + /* "talib/_stream.pxi":199 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data + * if PyArray_TYPE(volume) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("volume is not double") + * if volume.ndim != 1: + */ + } + + /* "talib/_stream.pxi":201 + * 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.pxi":202 + * 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__1243, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 202, __pyx_L1_error) + + /* "talib/_stream.pxi":201 + * 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.pxi":203 + * 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 = volume.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_volume) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":204 + * raise Exception("volume has wrong dimensions") + * if not (PyArray_FLAGS(volume) & np.NPY_C_CONTIGUOUS): + * volume = PyArray_GETCONTIGUOUS(volume) # <<<<<<<<<<<<<< + * volume_data = volume.data + * length = high.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_volume); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 204, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_volume, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":203 + * 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 = volume.data + */ + } + + /* "talib/_stream.pxi":205 + * if not (PyArray_FLAGS(volume) & np.NPY_C_CONTIGUOUS): + * volume = PyArray_GETCONTIGUOUS(volume) + * volume_data = volume.data # <<<<<<<<<<<<<< + * length = high.shape[0] + * if length != low.shape[0]: + */ + __pyx_v_volume_data = ((double *)__pyx_v_volume->data); + + /* "talib/_stream.pxi":206 + * volume = PyArray_GETCONTIGUOUS(volume) + * volume_data = 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.pxi":207 + * volume_data = 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.pxi":208 + * 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__1244, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 208, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 208, __pyx_L1_error) + + /* "talib/_stream.pxi":207 + * volume_data = volume.data + * length = high.shape[0] + * if length != low.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != close.shape[0]: + */ + } + + /* "talib/_stream.pxi":209 + * 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.pxi":210 + * 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__1245, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 210, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 210, __pyx_L1_error) + + /* "talib/_stream.pxi":209 + * 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.pxi":211 + * 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.pxi":212 + * 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__1246, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 212, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 212, __pyx_L1_error) + + /* "talib/_stream.pxi":211 + * 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.pxi":213 + * 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_8c_ta_lib_NaN; + + /* "talib/_stream.pxi":214 + * 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.pxi":215 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_ADOSC, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 215, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":216 + * 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(3, 216, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":153 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":220 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_8c_ta_lib_359stream_ADX(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_358stream_ADX[] = " 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_8c_ta_lib_359stream_ADX = {"stream_ADX", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_359stream_ADX, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_358stream_ADX}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_359stream_ADX(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("stream_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("stream_ADX", 0, 3, 4, 1); __PYX_ERR(3, 220, __pyx_L3_error) + } + case 2: + if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_ADX", 0, 3, 4, 2); __PYX_ERR(3, 220, __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, "stream_ADX") < 0)) __PYX_ERR(3, 220, __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(3, 220, __pyx_L3_error) + } else { + __pyx_v_timeperiod = ((int)-2147483648); + } + } + goto __pyx_L4_argument_unpacking_done; + __pyx_L5_argtuple_error:; + __Pyx_RaiseArgtupleInvalid("stream_ADX", 0, 3, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 220, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 220, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(3, 220, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(3, 220, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_358stream_ADX(__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_8c_ta_lib_358stream_ADX(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("stream_ADX", 0); + __Pyx_INCREF((PyObject *)__pyx_v_high); + __Pyx_INCREF((PyObject *)__pyx_v_low); + __Pyx_INCREF((PyObject *)__pyx_v_close); + + /* "talib/_stream.pxi":243 + * 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.pxi":244 + * 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__1247, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 244, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 244, __pyx_L1_error) + + /* "talib/_stream.pxi":243 + * int outnbelement + * double outreal + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_stream.pxi":245 + * 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.pxi":246 + * raise 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__1248, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 246, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 246, __pyx_L1_error) + + /* "talib/_stream.pxi":245 + * 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.pxi":247 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":248 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 248, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 248, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":247 + * 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 = high.data + */ + } + + /* "talib/_stream.pxi":249 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":250 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":251 + * high_data = 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__1249, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 251, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 251, __pyx_L1_error) + + /* "talib/_stream.pxi":250 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_stream.pxi":252 + * 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.pxi":253 + * raise 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__1250, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 253, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 253, __pyx_L1_error) + + /* "talib/_stream.pxi":252 + * 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.pxi":254 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":255 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 255, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 255, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":254 + * 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 = low.data + */ + } + + /* "talib/_stream.pxi":256 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":257 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":258 + * low_data = 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__1251, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 258, __pyx_L1_error) + + /* "talib/_stream.pxi":257 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_stream.pxi":259 + * 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.pxi":260 + * raise 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__1252, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 260, __pyx_L1_error) + + /* "talib/_stream.pxi":259 + * 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.pxi":261 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":262 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = high.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 262, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":261 + * 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 = close.data + */ + } + + /* "talib/_stream.pxi":263 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = high.shape[0] + * if length != low.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_stream.pxi":264 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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.pxi":265 + * close_data = 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.pxi":266 + * 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__1253, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 266, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 266, __pyx_L1_error) + + /* "talib/_stream.pxi":265 + * close_data = close.data + * length = high.shape[0] + * if length != low.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != close.shape[0]: + */ + } + + /* "talib/_stream.pxi":267 + * 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.pxi":268 + * 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__1254, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 268, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 268, __pyx_L1_error) + + /* "talib/_stream.pxi":267 + * 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.pxi":269 + * 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_8c_ta_lib_NaN; + + /* "talib/_stream.pxi":270 + * 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.pxi":271 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_ADX, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 271, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":272 + * 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(3, 272, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":220 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":276 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_8c_ta_lib_361stream_ADXR(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_360stream_ADXR[] = " 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_8c_ta_lib_361stream_ADXR = {"stream_ADXR", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_361stream_ADXR, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_360stream_ADXR}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_361stream_ADXR(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("stream_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("stream_ADXR", 0, 3, 4, 1); __PYX_ERR(3, 276, __pyx_L3_error) + } + case 2: + if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_ADXR", 0, 3, 4, 2); __PYX_ERR(3, 276, __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, "stream_ADXR") < 0)) __PYX_ERR(3, 276, __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(3, 276, __pyx_L3_error) + } else { + __pyx_v_timeperiod = ((int)-2147483648); + } + } + goto __pyx_L4_argument_unpacking_done; + __pyx_L5_argtuple_error:; + __Pyx_RaiseArgtupleInvalid("stream_ADXR", 0, 3, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 276, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 276, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(3, 276, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(3, 276, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_360stream_ADXR(__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_8c_ta_lib_360stream_ADXR(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("stream_ADXR", 0); + __Pyx_INCREF((PyObject *)__pyx_v_high); + __Pyx_INCREF((PyObject *)__pyx_v_low); + __Pyx_INCREF((PyObject *)__pyx_v_close); + + /* "talib/_stream.pxi":299 + * 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.pxi":300 + * 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__1255, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 300, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 300, __pyx_L1_error) + + /* "talib/_stream.pxi":299 + * int outnbelement + * double outreal + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_stream.pxi":301 + * 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.pxi":302 + * raise 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__1256, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 302, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 302, __pyx_L1_error) + + /* "talib/_stream.pxi":301 + * 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.pxi":303 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":304 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 304, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 304, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":303 + * 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 = high.data + */ + } + + /* "talib/_stream.pxi":305 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":306 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":307 + * high_data = 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__1257, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 307, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 307, __pyx_L1_error) + + /* "talib/_stream.pxi":306 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_stream.pxi":308 + * 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.pxi":309 + * raise 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__1258, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 309, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 309, __pyx_L1_error) + + /* "talib/_stream.pxi":308 + * 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.pxi":310 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":311 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 311, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 311, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":310 + * 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 = low.data + */ + } + + /* "talib/_stream.pxi":312 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":313 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":314 + * low_data = 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__1259, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 314, __pyx_L1_error) + + /* "talib/_stream.pxi":313 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_stream.pxi":315 + * 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.pxi":316 + * raise 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__1260, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 316, __pyx_L1_error) + + /* "talib/_stream.pxi":315 + * 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.pxi":317 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":318 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = high.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 318, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":317 + * 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 = close.data + */ + } + + /* "talib/_stream.pxi":319 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = high.shape[0] + * if length != low.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_stream.pxi":320 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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.pxi":321 + * close_data = 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.pxi":322 + * 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__1261, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 322, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 322, __pyx_L1_error) + + /* "talib/_stream.pxi":321 + * close_data = close.data + * length = high.shape[0] + * if length != low.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != close.shape[0]: + */ + } + + /* "talib/_stream.pxi":323 + * 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.pxi":324 + * 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__1262, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 324, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 324, __pyx_L1_error) + + /* "talib/_stream.pxi":323 + * 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.pxi":325 + * 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_8c_ta_lib_NaN; + + /* "talib/_stream.pxi":326 + * 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.pxi":327 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_ADXR, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 327, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":328 + * 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(3, 328, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":276 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":332 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_8c_ta_lib_363stream_APO(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_362stream_APO[] = " 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_8c_ta_lib_363stream_APO = {"stream_APO", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_363stream_APO, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_362stream_APO}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_363stream_APO(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("stream_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, "stream_APO") < 0)) __PYX_ERR(3, 332, __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(3, 332, __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(3, 332, __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(3, 332, __pyx_L3_error) + } else { + __pyx_v_matype = ((int)0); + } + } + goto __pyx_L4_argument_unpacking_done; + __pyx_L5_argtuple_error:; + __Pyx_RaiseArgtupleInvalid("stream_APO", 0, 1, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 332, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 332, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_362stream_APO(__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_8c_ta_lib_362stream_APO(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("stream_APO", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real); + + /* "talib/_stream.pxi":355 + * 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.pxi":356 + * 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__1263, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 356, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 356, __pyx_L1_error) + + /* "talib/_stream.pxi":355 + * int outnbelement + * double outreal + * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real is not double") + * if real.ndim != 1: + */ + } + + /* "talib/_stream.pxi":357 + * 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.pxi":358 + * 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__1264, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 358, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 358, __pyx_L1_error) + + /* "talib/_stream.pxi":357 + * 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.pxi":359 + * 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 = real.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":360 + * raise Exception("real has wrong dimensions") + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< + * real_data = real.data + * length = real.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 360, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 360, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":359 + * 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 = real.data + */ + } + + /* "talib/_stream.pxi":361 + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data # <<<<<<<<<<<<<< + * length = real.shape[0] + * outreal = NaN + */ + __pyx_v_real_data = ((double *)__pyx_v_real->data); + + /* "talib/_stream.pxi":362 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = 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.pxi":363 + * real_data = 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_8c_ta_lib_NaN; + + /* "talib/_stream.pxi":364 + * 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.pxi":365 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_APO, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 365, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":366 + * 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(3, 366, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":332 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":370 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_8c_ta_lib_365stream_AROON(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_364stream_AROON[] = " 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_8c_ta_lib_365stream_AROON = {"stream_AROON", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_365stream_AROON, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_364stream_AROON}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_365stream_AROON(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("stream_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("stream_AROON", 0, 2, 3, 1); __PYX_ERR(3, 370, __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, "stream_AROON") < 0)) __PYX_ERR(3, 370, __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(3, 370, __pyx_L3_error) + } else { + __pyx_v_timeperiod = ((int)-2147483648); + } + } + goto __pyx_L4_argument_unpacking_done; + __pyx_L5_argtuple_error:; + __Pyx_RaiseArgtupleInvalid("stream_AROON", 0, 2, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 370, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 370, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(3, 370, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_364stream_AROON(__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_8c_ta_lib_364stream_AROON(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("stream_AROON", 0); + __Pyx_INCREF((PyObject *)__pyx_v_high); + __Pyx_INCREF((PyObject *)__pyx_v_low); + + /* "talib/_stream.pxi":394 + * 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.pxi":395 + * 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__1265, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 395, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 395, __pyx_L1_error) + + /* "talib/_stream.pxi":394 + * double outaroondown + * double outaroonup + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_stream.pxi":396 + * 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.pxi":397 + * raise 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__1266, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 397, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 397, __pyx_L1_error) + + /* "talib/_stream.pxi":396 + * 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.pxi":398 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":399 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 399, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 399, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":398 + * 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 = high.data + */ + } + + /* "talib/_stream.pxi":400 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":401 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":402 + * high_data = 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__1267, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 402, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 402, __pyx_L1_error) + + /* "talib/_stream.pxi":401 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_stream.pxi":403 + * 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.pxi":404 + * raise 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__1268, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 404, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 404, __pyx_L1_error) + + /* "talib/_stream.pxi":403 + * 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.pxi":405 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":406 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * length = high.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 406, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 406, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":405 + * 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 = low.data + */ + } + + /* "talib/_stream.pxi":407 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data # <<<<<<<<<<<<<< + * length = high.shape[0] + * if length != low.shape[0]: + */ + __pyx_v_low_data = ((double *)__pyx_v_low->data); + + /* "talib/_stream.pxi":408 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":409 + * low_data = 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.pxi":410 + * 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__1269, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 410, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 410, __pyx_L1_error) + + /* "talib/_stream.pxi":409 + * low_data = low.data + * length = high.shape[0] + * if length != low.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * outaroondown = NaN + */ + } + + /* "talib/_stream.pxi":411 + * 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_8c_ta_lib_NaN; + + /* "talib/_stream.pxi":412 + * 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_8c_ta_lib_NaN; + + /* "talib/_stream.pxi":413 + * 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.pxi":414 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_AROON, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 414, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":415 + * 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(3, 415, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_t_3 = PyFloat_FromDouble(__pyx_v_outaroonup); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 415, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 415, __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.pxi":370 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":419 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_8c_ta_lib_367stream_AROONOSC(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_366stream_AROONOSC[] = " 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_8c_ta_lib_367stream_AROONOSC = {"stream_AROONOSC", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_367stream_AROONOSC, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_366stream_AROONOSC}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_367stream_AROONOSC(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("stream_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("stream_AROONOSC", 0, 2, 3, 1); __PYX_ERR(3, 419, __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, "stream_AROONOSC") < 0)) __PYX_ERR(3, 419, __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(3, 419, __pyx_L3_error) + } else { + __pyx_v_timeperiod = ((int)-2147483648); + } + } + goto __pyx_L4_argument_unpacking_done; + __pyx_L5_argtuple_error:; + __Pyx_RaiseArgtupleInvalid("stream_AROONOSC", 0, 2, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 419, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 419, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(3, 419, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_366stream_AROONOSC(__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_8c_ta_lib_366stream_AROONOSC(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("stream_AROONOSC", 0); + __Pyx_INCREF((PyObject *)__pyx_v_high); + __Pyx_INCREF((PyObject *)__pyx_v_low); + + /* "talib/_stream.pxi":441 + * 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.pxi":442 + * 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__1270, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 442, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 442, __pyx_L1_error) + + /* "talib/_stream.pxi":441 + * int outnbelement + * double outreal + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_stream.pxi":443 + * 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.pxi":444 + * raise 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__1271, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 444, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 444, __pyx_L1_error) + + /* "talib/_stream.pxi":443 + * 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.pxi":445 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":446 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 446, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 446, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":445 + * 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 = high.data + */ + } + + /* "talib/_stream.pxi":447 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":448 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":449 + * high_data = 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__1272, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 449, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 449, __pyx_L1_error) + + /* "talib/_stream.pxi":448 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_stream.pxi":450 + * 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.pxi":451 + * raise 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__1273, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 451, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 451, __pyx_L1_error) + + /* "talib/_stream.pxi":450 + * 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.pxi":452 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":453 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * length = high.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 453, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 453, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":452 + * 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 = low.data + */ + } + + /* "talib/_stream.pxi":454 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data # <<<<<<<<<<<<<< + * length = high.shape[0] + * if length != low.shape[0]: + */ + __pyx_v_low_data = ((double *)__pyx_v_low->data); + + /* "talib/_stream.pxi":455 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":456 + * low_data = 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.pxi":457 + * 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__1274, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 457, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 457, __pyx_L1_error) + + /* "talib/_stream.pxi":456 + * low_data = low.data + * length = high.shape[0] + * if length != low.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * outreal = NaN + */ + } + + /* "talib/_stream.pxi":458 + * 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_8c_ta_lib_NaN; + + /* "talib/_stream.pxi":459 + * 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.pxi":460 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_AROONOSC, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 460, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":461 + * 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(3, 461, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":419 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":465 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_ASIN( np.ndarray real not None ): # <<<<<<<<<<<<<< + * """ ASIN(real) + * + */ + +/* Python wrapper */ +static PyObject *__pyx_pw_5talib_8c_ta_lib_369stream_ASIN(PyObject *__pyx_self, PyObject *__pyx_v_real); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_368stream_ASIN[] = " 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_8c_ta_lib_369stream_ASIN = {"stream_ASIN", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_369stream_ASIN, METH_O, __pyx_doc_5talib_8c_ta_lib_368stream_ASIN}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_369stream_ASIN(PyObject *__pyx_self, PyObject *__pyx_v_real) { + PyObject *__pyx_r = 0; + __Pyx_RefNannyDeclarations + __Pyx_RefNannySetupContext("stream_ASIN (wrapper)", 0); + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_real), __pyx_ptype_5numpy_ndarray, 0, "real", 0))) __PYX_ERR(3, 465, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_368stream_ASIN(__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_8c_ta_lib_368stream_ASIN(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("stream_ASIN", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real); + + /* "talib/_stream.pxi":484 + * 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.pxi":485 + * 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__1275, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 485, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 485, __pyx_L1_error) + + /* "talib/_stream.pxi":484 + * int outnbelement + * double outreal + * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real is not double") + * if real.ndim != 1: + */ + } + + /* "talib/_stream.pxi":486 + * 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.pxi":487 + * 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__1276, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 487, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 487, __pyx_L1_error) + + /* "talib/_stream.pxi":486 + * 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.pxi":488 + * 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 = real.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":489 + * raise Exception("real has wrong dimensions") + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< + * real_data = real.data + * length = real.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 489, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 489, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":488 + * 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 = real.data + */ + } + + /* "talib/_stream.pxi":490 + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data # <<<<<<<<<<<<<< + * length = real.shape[0] + * outreal = NaN + */ + __pyx_v_real_data = ((double *)__pyx_v_real->data); + + /* "talib/_stream.pxi":491 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = 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.pxi":492 + * real_data = 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_8c_ta_lib_NaN; + + /* "talib/_stream.pxi":493 + * 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.pxi":494 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_ASIN, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 494, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":495 + * 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(3, 495, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":465 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_ASIN( np.ndarray real not None ): # <<<<<<<<<<<<<< + * """ ASIN(real) + * + */ + + /* function exit code */ + __pyx_L1_error:; + __Pyx_XDECREF(__pyx_t_2); + __Pyx_AddTraceback("talib.c_ta_lib.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.pxi":499 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_ATAN( np.ndarray real not None ): # <<<<<<<<<<<<<< + * """ ATAN(real) + * + */ + +/* Python wrapper */ +static PyObject *__pyx_pw_5talib_8c_ta_lib_371stream_ATAN(PyObject *__pyx_self, PyObject *__pyx_v_real); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_370stream_ATAN[] = " 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_8c_ta_lib_371stream_ATAN = {"stream_ATAN", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_371stream_ATAN, METH_O, __pyx_doc_5talib_8c_ta_lib_370stream_ATAN}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_371stream_ATAN(PyObject *__pyx_self, PyObject *__pyx_v_real) { + PyObject *__pyx_r = 0; + __Pyx_RefNannyDeclarations + __Pyx_RefNannySetupContext("stream_ATAN (wrapper)", 0); + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_real), __pyx_ptype_5numpy_ndarray, 0, "real", 0))) __PYX_ERR(3, 499, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_370stream_ATAN(__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_8c_ta_lib_370stream_ATAN(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("stream_ATAN", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real); + + /* "talib/_stream.pxi":518 + * 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.pxi":519 + * 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__1277, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 519, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 519, __pyx_L1_error) + + /* "talib/_stream.pxi":518 + * int outnbelement + * double outreal + * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real is not double") + * if real.ndim != 1: + */ + } + + /* "talib/_stream.pxi":520 + * 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.pxi":521 + * 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__1278, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 521, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 521, __pyx_L1_error) + + /* "talib/_stream.pxi":520 + * 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.pxi":522 + * 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 = real.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":523 + * raise Exception("real has wrong dimensions") + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< + * real_data = real.data + * length = real.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 523, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 523, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":522 + * 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 = real.data + */ + } + + /* "talib/_stream.pxi":524 + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data # <<<<<<<<<<<<<< + * length = real.shape[0] + * outreal = NaN + */ + __pyx_v_real_data = ((double *)__pyx_v_real->data); + + /* "talib/_stream.pxi":525 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = 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.pxi":526 + * real_data = 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_8c_ta_lib_NaN; + + /* "talib/_stream.pxi":527 + * 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.pxi":528 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_ATAN, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 528, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":529 + * 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(3, 529, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":499 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_ATAN( np.ndarray real not None ): # <<<<<<<<<<<<<< + * """ ATAN(real) + * + */ + + /* function exit code */ + __pyx_L1_error:; + __Pyx_XDECREF(__pyx_t_2); + __Pyx_AddTraceback("talib.c_ta_lib.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.pxi":533 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_8c_ta_lib_373stream_ATR(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_372stream_ATR[] = " 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_8c_ta_lib_373stream_ATR = {"stream_ATR", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_373stream_ATR, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_372stream_ATR}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_373stream_ATR(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("stream_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("stream_ATR", 0, 3, 4, 1); __PYX_ERR(3, 533, __pyx_L3_error) + } + case 2: + if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_ATR", 0, 3, 4, 2); __PYX_ERR(3, 533, __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, "stream_ATR") < 0)) __PYX_ERR(3, 533, __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(3, 533, __pyx_L3_error) + } else { + __pyx_v_timeperiod = ((int)-2147483648); + } + } + goto __pyx_L4_argument_unpacking_done; + __pyx_L5_argtuple_error:; + __Pyx_RaiseArgtupleInvalid("stream_ATR", 0, 3, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 533, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 533, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(3, 533, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(3, 533, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_372stream_ATR(__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_8c_ta_lib_372stream_ATR(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("stream_ATR", 0); + __Pyx_INCREF((PyObject *)__pyx_v_high); + __Pyx_INCREF((PyObject *)__pyx_v_low); + __Pyx_INCREF((PyObject *)__pyx_v_close); + + /* "talib/_stream.pxi":556 + * 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.pxi":557 + * 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__1279, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 557, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 557, __pyx_L1_error) + + /* "talib/_stream.pxi":556 + * int outnbelement + * double outreal + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_stream.pxi":558 + * 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.pxi":559 + * raise 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__1280, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 559, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 559, __pyx_L1_error) + + /* "talib/_stream.pxi":558 + * 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.pxi":560 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":561 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 561, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 561, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":560 + * 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 = high.data + */ + } + + /* "talib/_stream.pxi":562 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":563 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":564 + * high_data = 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__1281, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 564, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 564, __pyx_L1_error) + + /* "talib/_stream.pxi":563 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_stream.pxi":565 + * 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.pxi":566 + * raise 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__1282, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 566, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 566, __pyx_L1_error) + + /* "talib/_stream.pxi":565 + * 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.pxi":567 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":568 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 568, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 568, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":567 + * 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 = low.data + */ + } + + /* "talib/_stream.pxi":569 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":570 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":571 + * low_data = 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__1283, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 571, __pyx_L1_error) + + /* "talib/_stream.pxi":570 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_stream.pxi":572 + * 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.pxi":573 + * raise 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__1284, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 573, __pyx_L1_error) + + /* "talib/_stream.pxi":572 + * 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.pxi":574 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":575 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = high.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 575, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":574 + * 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 = close.data + */ + } + + /* "talib/_stream.pxi":576 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = high.shape[0] + * if length != low.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_stream.pxi":577 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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.pxi":578 + * close_data = 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.pxi":579 + * 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__1285, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 579, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 579, __pyx_L1_error) + + /* "talib/_stream.pxi":578 + * close_data = close.data + * length = high.shape[0] + * if length != low.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != close.shape[0]: + */ + } + + /* "talib/_stream.pxi":580 + * 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.pxi":581 + * 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__1286, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 581, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 581, __pyx_L1_error) + + /* "talib/_stream.pxi":580 + * 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.pxi":582 + * 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_8c_ta_lib_NaN; + + /* "talib/_stream.pxi":583 + * 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.pxi":584 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_ATR, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 584, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":585 + * 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(3, 585, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":533 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":589 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_8c_ta_lib_375stream_AVGPRICE(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_374stream_AVGPRICE[] = " 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_8c_ta_lib_375stream_AVGPRICE = {"stream_AVGPRICE", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_375stream_AVGPRICE, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_374stream_AVGPRICE}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_375stream_AVGPRICE(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("stream_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("stream_AVGPRICE", 1, 4, 4, 1); __PYX_ERR(3, 589, __pyx_L3_error) + } + case 2: + if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_AVGPRICE", 1, 4, 4, 2); __PYX_ERR(3, 589, __pyx_L3_error) + } + case 3: + if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_AVGPRICE", 1, 4, 4, 3); __PYX_ERR(3, 589, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "stream_AVGPRICE") < 0)) __PYX_ERR(3, 589, __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("stream_AVGPRICE", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 589, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 589, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(3, 589, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(3, 589, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(3, 589, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_374stream_AVGPRICE(__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_8c_ta_lib_374stream_AVGPRICE(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("stream_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.pxi":611 + * 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.pxi":612 + * 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__1287, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 612, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 612, __pyx_L1_error) + + /* "talib/_stream.pxi":611 + * int outnbelement + * double outreal + * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("open is not double") + * if open.ndim != 1: + */ + } + + /* "talib/_stream.pxi":613 + * 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.pxi":614 + * 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__1288, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 614, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 614, __pyx_L1_error) + + /* "talib/_stream.pxi":613 + * 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.pxi":615 + * 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 = open.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":616 + * raise Exception("open has wrong dimensions") + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 616, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 616, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":615 + * 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 = open.data + */ + } + + /* "talib/_stream.pxi":617 + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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.pxi":618 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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.pxi":619 + * open_data = 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__1289, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 619, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 619, __pyx_L1_error) + + /* "talib/_stream.pxi":618 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_stream.pxi":620 + * 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.pxi":621 + * raise 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__1290, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 621, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 621, __pyx_L1_error) + + /* "talib/_stream.pxi":620 + * 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.pxi":622 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":623 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 623, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 623, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":622 + * 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 = high.data + */ + } + + /* "talib/_stream.pxi":624 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":625 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":626 + * high_data = 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__1291, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 626, __pyx_L1_error) + + /* "talib/_stream.pxi":625 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_stream.pxi":627 + * 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.pxi":628 + * raise 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__1292, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 628, __pyx_L1_error) + + /* "talib/_stream.pxi":627 + * 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.pxi":629 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":630 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 630, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":629 + * 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 = low.data + */ + } + + /* "talib/_stream.pxi":631 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":632 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":633 + * low_data = 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__1293, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 633, __pyx_L1_error) + + /* "talib/_stream.pxi":632 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_stream.pxi":634 + * 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.pxi":635 + * raise 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__1294, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 635, __pyx_L1_error) + + /* "talib/_stream.pxi":634 + * 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.pxi":636 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":637 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = open.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 637, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":636 + * 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 = close.data + */ + } + + /* "talib/_stream.pxi":638 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = open.shape[0] + * if length != high.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_stream.pxi":639 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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.pxi":640 + * close_data = 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.pxi":641 + * 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__1295, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 641, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 641, __pyx_L1_error) + + /* "talib/_stream.pxi":640 + * close_data = close.data + * length = open.shape[0] + * if length != high.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != low.shape[0]: + */ + } + + /* "talib/_stream.pxi":642 + * 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.pxi":643 + * 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__1296, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 643, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 643, __pyx_L1_error) + + /* "talib/_stream.pxi":642 + * 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.pxi":644 + * 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.pxi":645 + * 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__1297, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 645, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 645, __pyx_L1_error) + + /* "talib/_stream.pxi":644 + * 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.pxi":646 + * 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_8c_ta_lib_NaN; + + /* "talib/_stream.pxi":647 + * 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.pxi":648 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_AVGPRICE, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 648, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":649 + * 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(3, 649, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":589 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":653 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_8c_ta_lib_377stream_BBANDS(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_376stream_BBANDS[] = " 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_8c_ta_lib_377stream_BBANDS = {"stream_BBANDS", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_377stream_BBANDS, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_376stream_BBANDS}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_377stream_BBANDS(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("stream_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, "stream_BBANDS") < 0)) __PYX_ERR(3, 653, __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(3, 653, __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(3, 653, __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(3, 653, __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(3, 653, __pyx_L3_error) + } else { + __pyx_v_matype = ((int)0); + } + } + goto __pyx_L4_argument_unpacking_done; + __pyx_L5_argtuple_error:; + __Pyx_RaiseArgtupleInvalid("stream_BBANDS", 0, 1, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 653, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 653, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_376stream_BBANDS(__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_8c_ta_lib_376stream_BBANDS(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("stream_BBANDS", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real); + + /* "talib/_stream.pxi":681 + * 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.pxi":682 + * 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__1298, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 682, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 682, __pyx_L1_error) + + /* "talib/_stream.pxi":681 + * double outrealmiddleband + * double outreallowerband + * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real is not double") + * if real.ndim != 1: + */ + } + + /* "talib/_stream.pxi":683 + * 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.pxi":684 + * 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__1299, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 684, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 684, __pyx_L1_error) + + /* "talib/_stream.pxi":683 + * 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.pxi":685 + * 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 = real.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":686 + * raise Exception("real has wrong dimensions") + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< + * real_data = real.data + * length = real.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 686, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 686, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":685 + * 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 = real.data + */ + } + + /* "talib/_stream.pxi":687 + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data # <<<<<<<<<<<<<< + * length = real.shape[0] + * outrealupperband = NaN + */ + __pyx_v_real_data = ((double *)__pyx_v_real->data); + + /* "talib/_stream.pxi":688 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data + * length = real.shape[0] # <<<<<<<<<<<<<< + * outrealupperband = NaN + * outrealmiddleband = NaN + */ + __pyx_v_length = (__pyx_v_real->dimensions[0]); + + /* "talib/_stream.pxi":689 + * real_data = real.data + * length = real.shape[0] + * outrealupperband = NaN # <<<<<<<<<<<<<< + * outrealmiddleband = NaN + * outreallowerband = NaN + */ + __pyx_v_outrealupperband = __pyx_v_5talib_8c_ta_lib_NaN; + + /* "talib/_stream.pxi":690 + * 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_8c_ta_lib_NaN; + + /* "talib/_stream.pxi":691 + * 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_8c_ta_lib_NaN; + + /* "talib/_stream.pxi":692 + * 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.pxi":693 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_BBANDS, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 693, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":694 + * 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(3, 694, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_t_3 = PyFloat_FromDouble(__pyx_v_outrealmiddleband); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 694, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + __pyx_t_4 = PyFloat_FromDouble(__pyx_v_outreallowerband); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 694, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + __pyx_t_5 = PyTuple_New(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 694, __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.pxi":653 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":698 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_8c_ta_lib_379stream_BETA(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_378stream_BETA[] = " 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_8c_ta_lib_379stream_BETA = {"stream_BETA", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_379stream_BETA, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_378stream_BETA}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_379stream_BETA(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("stream_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("stream_BETA", 0, 2, 3, 1); __PYX_ERR(3, 698, __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, "stream_BETA") < 0)) __PYX_ERR(3, 698, __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(3, 698, __pyx_L3_error) + } else { + __pyx_v_timeperiod = ((int)-2147483648); + } + } + goto __pyx_L4_argument_unpacking_done; + __pyx_L5_argtuple_error:; + __Pyx_RaiseArgtupleInvalid("stream_BETA", 0, 2, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 698, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 698, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_real1), __pyx_ptype_5numpy_ndarray, 0, "real1", 0))) __PYX_ERR(3, 698, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_378stream_BETA(__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_8c_ta_lib_378stream_BETA(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("stream_BETA", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real0); + __Pyx_INCREF((PyObject *)__pyx_v_real1); + + /* "talib/_stream.pxi":721 + * 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.pxi":722 + * 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__1300, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 722, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 722, __pyx_L1_error) + + /* "talib/_stream.pxi":721 + * int outnbelement + * double outreal + * if PyArray_TYPE(real0) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real0 is not double") + * if real0.ndim != 1: + */ + } + + /* "talib/_stream.pxi":723 + * 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.pxi":724 + * 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__1301, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 724, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 724, __pyx_L1_error) + + /* "talib/_stream.pxi":723 + * 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.pxi":725 + * 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 = real0.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real0) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":726 + * raise Exception("real0 has wrong dimensions") + * if not (PyArray_FLAGS(real0) & np.NPY_C_CONTIGUOUS): + * real0 = PyArray_GETCONTIGUOUS(real0) # <<<<<<<<<<<<<< + * real0_data = real0.data + * if PyArray_TYPE(real1) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 726, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 726, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real0, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":725 + * 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 = real0.data + */ + } + + /* "talib/_stream.pxi":727 + * if not (PyArray_FLAGS(real0) & np.NPY_C_CONTIGUOUS): + * real0 = PyArray_GETCONTIGUOUS(real0) + * real0_data = 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.pxi":728 + * real0 = PyArray_GETCONTIGUOUS(real0) + * real0_data = 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.pxi":729 + * real0_data = 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__1302, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 729, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 729, __pyx_L1_error) + + /* "talib/_stream.pxi":728 + * real0 = PyArray_GETCONTIGUOUS(real0) + * real0_data = real0.data + * if PyArray_TYPE(real1) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real1 is not double") + * if real1.ndim != 1: + */ + } + + /* "talib/_stream.pxi":730 + * 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.pxi":731 + * 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__1303, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 731, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 731, __pyx_L1_error) + + /* "talib/_stream.pxi":730 + * 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.pxi":732 + * 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 = real1.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real1) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":733 + * raise Exception("real1 has wrong dimensions") + * if not (PyArray_FLAGS(real1) & np.NPY_C_CONTIGUOUS): + * real1 = PyArray_GETCONTIGUOUS(real1) # <<<<<<<<<<<<<< + * real1_data = real1.data + * length = real0.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real1); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 733, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 733, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real1, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":732 + * 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 = real1.data + */ + } + + /* "talib/_stream.pxi":734 + * if not (PyArray_FLAGS(real1) & np.NPY_C_CONTIGUOUS): + * real1 = PyArray_GETCONTIGUOUS(real1) + * real1_data = real1.data # <<<<<<<<<<<<<< + * length = real0.shape[0] + * if length != real1.shape[0]: + */ + __pyx_v_real1_data = ((double *)__pyx_v_real1->data); + + /* "talib/_stream.pxi":735 + * real1 = PyArray_GETCONTIGUOUS(real1) + * real1_data = 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.pxi":736 + * real1_data = 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.pxi":737 + * 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__1304, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 737, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 737, __pyx_L1_error) + + /* "talib/_stream.pxi":736 + * real1_data = real1.data + * length = real0.shape[0] + * if length != real1.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * outreal = NaN + */ + } + + /* "talib/_stream.pxi":738 + * 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_8c_ta_lib_NaN; + + /* "talib/_stream.pxi":739 + * 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.pxi":740 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_BETA, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 740, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":741 + * 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(3, 741, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":698 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":745 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_8c_ta_lib_381stream_BOP(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_380stream_BOP[] = " 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_8c_ta_lib_381stream_BOP = {"stream_BOP", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_381stream_BOP, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_380stream_BOP}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_381stream_BOP(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("stream_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("stream_BOP", 1, 4, 4, 1); __PYX_ERR(3, 745, __pyx_L3_error) + } + case 2: + if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_BOP", 1, 4, 4, 2); __PYX_ERR(3, 745, __pyx_L3_error) + } + case 3: + if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_BOP", 1, 4, 4, 3); __PYX_ERR(3, 745, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "stream_BOP") < 0)) __PYX_ERR(3, 745, __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("stream_BOP", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 745, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 745, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(3, 745, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(3, 745, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(3, 745, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_380stream_BOP(__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_8c_ta_lib_380stream_BOP(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("stream_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.pxi":767 + * 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.pxi":768 + * 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__1305, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 768, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 768, __pyx_L1_error) + + /* "talib/_stream.pxi":767 + * int outnbelement + * double outreal + * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("open is not double") + * if open.ndim != 1: + */ + } + + /* "talib/_stream.pxi":769 + * 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.pxi":770 + * 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__1306, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 770, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 770, __pyx_L1_error) + + /* "talib/_stream.pxi":769 + * 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.pxi":771 + * 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 = open.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":772 + * raise Exception("open has wrong dimensions") + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 772, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 772, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":771 + * 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 = open.data + */ + } + + /* "talib/_stream.pxi":773 + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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.pxi":774 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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.pxi":775 + * open_data = 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__1307, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 775, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 775, __pyx_L1_error) + + /* "talib/_stream.pxi":774 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_stream.pxi":776 + * 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.pxi":777 + * raise 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__1308, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 777, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 777, __pyx_L1_error) + + /* "talib/_stream.pxi":776 + * 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.pxi":778 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":779 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 779, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 779, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":778 + * 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 = high.data + */ + } + + /* "talib/_stream.pxi":780 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":781 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":782 + * high_data = 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__1309, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 782, __pyx_L1_error) + + /* "talib/_stream.pxi":781 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_stream.pxi":783 + * 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.pxi":784 + * raise 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__1310, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 784, __pyx_L1_error) + + /* "talib/_stream.pxi":783 + * 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.pxi":785 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":786 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 786, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":785 + * 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 = low.data + */ + } + + /* "talib/_stream.pxi":787 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":788 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":789 + * low_data = 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__1311, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 789, __pyx_L1_error) + + /* "talib/_stream.pxi":788 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_stream.pxi":790 + * 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.pxi":791 + * raise 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__1312, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 791, __pyx_L1_error) + + /* "talib/_stream.pxi":790 + * 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.pxi":792 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":793 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = open.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 793, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":792 + * 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 = close.data + */ + } + + /* "talib/_stream.pxi":794 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = open.shape[0] + * if length != high.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_stream.pxi":795 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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.pxi":796 + * close_data = 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.pxi":797 + * 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__1313, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 797, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 797, __pyx_L1_error) + + /* "talib/_stream.pxi":796 + * close_data = close.data + * length = open.shape[0] + * if length != high.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != low.shape[0]: + */ + } + + /* "talib/_stream.pxi":798 + * 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.pxi":799 + * 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__1314, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 799, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 799, __pyx_L1_error) + + /* "talib/_stream.pxi":798 + * 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.pxi":800 + * 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.pxi":801 + * 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__1315, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 801, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 801, __pyx_L1_error) + + /* "talib/_stream.pxi":800 + * 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.pxi":802 + * 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_8c_ta_lib_NaN; + + /* "talib/_stream.pxi":803 + * 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.pxi":804 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_BOP, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 804, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":805 + * 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(3, 805, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":745 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":809 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_8c_ta_lib_383stream_CCI(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_382stream_CCI[] = " 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_8c_ta_lib_383stream_CCI = {"stream_CCI", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_383stream_CCI, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_382stream_CCI}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_383stream_CCI(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("stream_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("stream_CCI", 0, 3, 4, 1); __PYX_ERR(3, 809, __pyx_L3_error) + } + case 2: + if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_CCI", 0, 3, 4, 2); __PYX_ERR(3, 809, __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, "stream_CCI") < 0)) __PYX_ERR(3, 809, __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(3, 809, __pyx_L3_error) + } else { + __pyx_v_timeperiod = ((int)-2147483648); + } + } + goto __pyx_L4_argument_unpacking_done; + __pyx_L5_argtuple_error:; + __Pyx_RaiseArgtupleInvalid("stream_CCI", 0, 3, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 809, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 809, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(3, 809, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(3, 809, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_382stream_CCI(__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_8c_ta_lib_382stream_CCI(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("stream_CCI", 0); + __Pyx_INCREF((PyObject *)__pyx_v_high); + __Pyx_INCREF((PyObject *)__pyx_v_low); + __Pyx_INCREF((PyObject *)__pyx_v_close); + + /* "talib/_stream.pxi":832 + * 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.pxi":833 + * 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__1316, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 833, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 833, __pyx_L1_error) + + /* "talib/_stream.pxi":832 + * int outnbelement + * double outreal + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_stream.pxi":834 + * 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.pxi":835 + * raise 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__1317, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 835, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 835, __pyx_L1_error) + + /* "talib/_stream.pxi":834 + * 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.pxi":836 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":837 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 837, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 837, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":836 + * 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 = high.data + */ + } + + /* "talib/_stream.pxi":838 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":839 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":840 + * high_data = 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__1318, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 840, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 840, __pyx_L1_error) + + /* "talib/_stream.pxi":839 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_stream.pxi":841 + * 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.pxi":842 + * raise 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__1319, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 842, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 842, __pyx_L1_error) + + /* "talib/_stream.pxi":841 + * 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.pxi":843 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":844 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 844, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 844, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":843 + * 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 = low.data + */ + } + + /* "talib/_stream.pxi":845 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":846 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":847 + * low_data = 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__1320, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 847, __pyx_L1_error) + + /* "talib/_stream.pxi":846 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_stream.pxi":848 + * 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.pxi":849 + * raise 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__1321, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 849, __pyx_L1_error) + + /* "talib/_stream.pxi":848 + * 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.pxi":850 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":851 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = high.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 851, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":850 + * 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 = close.data + */ + } + + /* "talib/_stream.pxi":852 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = high.shape[0] + * if length != low.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_stream.pxi":853 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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.pxi":854 + * close_data = 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.pxi":855 + * 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__1322, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 855, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 855, __pyx_L1_error) + + /* "talib/_stream.pxi":854 + * close_data = close.data + * length = high.shape[0] + * if length != low.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != close.shape[0]: + */ + } + + /* "talib/_stream.pxi":856 + * 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.pxi":857 + * 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__1323, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 857, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 857, __pyx_L1_error) + + /* "talib/_stream.pxi":856 + * 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.pxi":858 + * 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_8c_ta_lib_NaN; + + /* "talib/_stream.pxi":859 + * 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.pxi":860 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CCI, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 860, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":861 + * 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(3, 861, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":809 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":865 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_8c_ta_lib_385stream_CDL2CROWS(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_384stream_CDL2CROWS[] = " 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_8c_ta_lib_385stream_CDL2CROWS = {"stream_CDL2CROWS", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_385stream_CDL2CROWS, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_384stream_CDL2CROWS}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_385stream_CDL2CROWS(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("stream_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("stream_CDL2CROWS", 1, 4, 4, 1); __PYX_ERR(3, 865, __pyx_L3_error) + } + case 2: + if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_CDL2CROWS", 1, 4, 4, 2); __PYX_ERR(3, 865, __pyx_L3_error) + } + case 3: + if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_CDL2CROWS", 1, 4, 4, 3); __PYX_ERR(3, 865, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "stream_CDL2CROWS") < 0)) __PYX_ERR(3, 865, __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("stream_CDL2CROWS", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 865, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 865, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(3, 865, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(3, 865, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(3, 865, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_384stream_CDL2CROWS(__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_8c_ta_lib_384stream_CDL2CROWS(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("stream_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.pxi":887 + * 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.pxi":888 + * 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__1324, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 888, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 888, __pyx_L1_error) + + /* "talib/_stream.pxi":887 + * int outnbelement + * int outinteger + * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("open is not double") + * if open.ndim != 1: + */ + } + + /* "talib/_stream.pxi":889 + * 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.pxi":890 + * 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__1325, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 890, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 890, __pyx_L1_error) + + /* "talib/_stream.pxi":889 + * 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.pxi":891 + * 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 = open.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":892 + * raise Exception("open has wrong dimensions") + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 892, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 892, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":891 + * 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 = open.data + */ + } + + /* "talib/_stream.pxi":893 + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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.pxi":894 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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.pxi":895 + * open_data = 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__1326, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 895, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 895, __pyx_L1_error) + + /* "talib/_stream.pxi":894 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_stream.pxi":896 + * 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.pxi":897 + * raise 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__1327, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 897, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 897, __pyx_L1_error) + + /* "talib/_stream.pxi":896 + * 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.pxi":898 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":899 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 899, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 899, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":898 + * 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 = high.data + */ + } + + /* "talib/_stream.pxi":900 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":901 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":902 + * high_data = 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__1328, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 902, __pyx_L1_error) + + /* "talib/_stream.pxi":901 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_stream.pxi":903 + * 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.pxi":904 + * raise 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__1329, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 904, __pyx_L1_error) + + /* "talib/_stream.pxi":903 + * 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.pxi":905 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":906 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 906, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":905 + * 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 = low.data + */ + } + + /* "talib/_stream.pxi":907 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":908 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":909 + * low_data = 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__1330, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 909, __pyx_L1_error) + + /* "talib/_stream.pxi":908 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_stream.pxi":910 + * 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.pxi":911 + * raise 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__1331, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 911, __pyx_L1_error) + + /* "talib/_stream.pxi":910 + * 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.pxi":912 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":913 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = open.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 913, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":912 + * 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 = close.data + */ + } + + /* "talib/_stream.pxi":914 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = open.shape[0] + * if length != high.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_stream.pxi":915 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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.pxi":916 + * close_data = 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.pxi":917 + * 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__1332, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 917, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 917, __pyx_L1_error) + + /* "talib/_stream.pxi":916 + * close_data = close.data + * length = open.shape[0] + * if length != high.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != low.shape[0]: + */ + } + + /* "talib/_stream.pxi":918 + * 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.pxi":919 + * 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__1333, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 919, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 919, __pyx_L1_error) + + /* "talib/_stream.pxi":918 + * 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.pxi":920 + * 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.pxi":921 + * 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__1334, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 921, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 921, __pyx_L1_error) + + /* "talib/_stream.pxi":920 + * 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.pxi":922 + * 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.pxi":923 + * 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.pxi":924 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CDL2CROWS, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 924, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":925 + * 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(3, 925, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":865 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":929 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_8c_ta_lib_387stream_CDL3BLACKCROWS(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_386stream_CDL3BLACKCROWS[] = " 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_8c_ta_lib_387stream_CDL3BLACKCROWS = {"stream_CDL3BLACKCROWS", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_387stream_CDL3BLACKCROWS, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_386stream_CDL3BLACKCROWS}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_387stream_CDL3BLACKCROWS(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("stream_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("stream_CDL3BLACKCROWS", 1, 4, 4, 1); __PYX_ERR(3, 929, __pyx_L3_error) + } + case 2: + if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_CDL3BLACKCROWS", 1, 4, 4, 2); __PYX_ERR(3, 929, __pyx_L3_error) + } + case 3: + if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_CDL3BLACKCROWS", 1, 4, 4, 3); __PYX_ERR(3, 929, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "stream_CDL3BLACKCROWS") < 0)) __PYX_ERR(3, 929, __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("stream_CDL3BLACKCROWS", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 929, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 929, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(3, 929, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(3, 929, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(3, 929, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_386stream_CDL3BLACKCROWS(__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_8c_ta_lib_386stream_CDL3BLACKCROWS(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("stream_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.pxi":951 + * 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.pxi":952 + * 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__1335, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 952, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 952, __pyx_L1_error) + + /* "talib/_stream.pxi":951 + * int outnbelement + * int outinteger + * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("open is not double") + * if open.ndim != 1: + */ + } + + /* "talib/_stream.pxi":953 + * 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.pxi":954 + * 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__1336, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 954, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 954, __pyx_L1_error) + + /* "talib/_stream.pxi":953 + * 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.pxi":955 + * 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 = open.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":956 + * raise Exception("open has wrong dimensions") + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 956, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 956, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":955 + * 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 = open.data + */ + } + + /* "talib/_stream.pxi":957 + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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.pxi":958 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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.pxi":959 + * open_data = 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__1337, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 959, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 959, __pyx_L1_error) + + /* "talib/_stream.pxi":958 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_stream.pxi":960 + * 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.pxi":961 + * raise 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__1338, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 961, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 961, __pyx_L1_error) + + /* "talib/_stream.pxi":960 + * 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.pxi":962 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":963 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 963, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 963, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":962 + * 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 = high.data + */ + } + + /* "talib/_stream.pxi":964 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":965 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":966 + * high_data = 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__1339, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 966, __pyx_L1_error) + + /* "talib/_stream.pxi":965 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_stream.pxi":967 + * 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.pxi":968 + * raise 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__1340, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 968, __pyx_L1_error) + + /* "talib/_stream.pxi":967 + * 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.pxi":969 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":970 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 970, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":969 + * 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 = low.data + */ + } + + /* "talib/_stream.pxi":971 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":972 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":973 + * low_data = 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__1341, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 973, __pyx_L1_error) + + /* "talib/_stream.pxi":972 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_stream.pxi":974 + * 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.pxi":975 + * raise 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__1342, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 975, __pyx_L1_error) + + /* "talib/_stream.pxi":974 + * 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.pxi":976 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":977 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = open.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 977, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":976 + * 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 = close.data + */ + } + + /* "talib/_stream.pxi":978 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = open.shape[0] + * if length != high.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_stream.pxi":979 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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.pxi":980 + * close_data = 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.pxi":981 + * 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__1343, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 981, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 981, __pyx_L1_error) + + /* "talib/_stream.pxi":980 + * close_data = close.data + * length = open.shape[0] + * if length != high.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != low.shape[0]: + */ + } + + /* "talib/_stream.pxi":982 + * 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.pxi":983 + * 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__1344, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 983, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 983, __pyx_L1_error) + + /* "talib/_stream.pxi":982 + * 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.pxi":984 + * 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.pxi":985 + * 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__1345, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 985, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 985, __pyx_L1_error) + + /* "talib/_stream.pxi":984 + * 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.pxi":986 + * 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.pxi":987 + * 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.pxi":988 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CDL3BLACKCROWS, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 988, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":989 + * 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(3, 989, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":929 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":993 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_8c_ta_lib_389stream_CDL3INSIDE(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_388stream_CDL3INSIDE[] = " 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_8c_ta_lib_389stream_CDL3INSIDE = {"stream_CDL3INSIDE", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_389stream_CDL3INSIDE, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_388stream_CDL3INSIDE}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_389stream_CDL3INSIDE(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("stream_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("stream_CDL3INSIDE", 1, 4, 4, 1); __PYX_ERR(3, 993, __pyx_L3_error) + } + case 2: + if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_CDL3INSIDE", 1, 4, 4, 2); __PYX_ERR(3, 993, __pyx_L3_error) + } + case 3: + if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_CDL3INSIDE", 1, 4, 4, 3); __PYX_ERR(3, 993, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "stream_CDL3INSIDE") < 0)) __PYX_ERR(3, 993, __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("stream_CDL3INSIDE", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 993, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 993, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(3, 993, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(3, 993, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(3, 993, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_388stream_CDL3INSIDE(__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_8c_ta_lib_388stream_CDL3INSIDE(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("stream_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.pxi":1015 + * 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.pxi":1016 + * 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__1346, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1016, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 1016, __pyx_L1_error) + + /* "talib/_stream.pxi":1015 + * int outnbelement + * int outinteger + * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("open is not double") + * if open.ndim != 1: + */ + } + + /* "talib/_stream.pxi":1017 + * 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.pxi":1018 + * 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__1347, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1018, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 1018, __pyx_L1_error) + + /* "talib/_stream.pxi":1017 + * 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.pxi":1019 + * 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 = open.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":1020 + * raise Exception("open has wrong dimensions") + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1020, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 1020, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":1019 + * 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 = open.data + */ + } + + /* "talib/_stream.pxi":1021 + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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.pxi":1022 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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.pxi":1023 + * open_data = 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__1348, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1023, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 1023, __pyx_L1_error) + + /* "talib/_stream.pxi":1022 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_stream.pxi":1024 + * 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.pxi":1025 + * raise 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__1349, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1025, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 1025, __pyx_L1_error) + + /* "talib/_stream.pxi":1024 + * 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.pxi":1026 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":1027 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1027, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 1027, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":1026 + * 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 = high.data + */ + } + + /* "talib/_stream.pxi":1028 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":1029 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":1030 + * high_data = 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__1350, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 1030, __pyx_L1_error) + + /* "talib/_stream.pxi":1029 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_stream.pxi":1031 + * 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.pxi":1032 + * raise 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__1351, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 1032, __pyx_L1_error) + + /* "talib/_stream.pxi":1031 + * 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.pxi":1033 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":1034 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 1034, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":1033 + * 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 = low.data + */ + } + + /* "talib/_stream.pxi":1035 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":1036 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":1037 + * low_data = 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__1352, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 1037, __pyx_L1_error) + + /* "talib/_stream.pxi":1036 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_stream.pxi":1038 + * 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.pxi":1039 + * raise 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__1353, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 1039, __pyx_L1_error) + + /* "talib/_stream.pxi":1038 + * 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.pxi":1040 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":1041 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = open.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 1041, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":1040 + * 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 = close.data + */ + } + + /* "talib/_stream.pxi":1042 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = open.shape[0] + * if length != high.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_stream.pxi":1043 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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.pxi":1044 + * close_data = 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.pxi":1045 + * 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__1354, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1045, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 1045, __pyx_L1_error) + + /* "talib/_stream.pxi":1044 + * close_data = close.data + * length = open.shape[0] + * if length != high.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != low.shape[0]: + */ + } + + /* "talib/_stream.pxi":1046 + * 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.pxi":1047 + * 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__1355, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1047, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 1047, __pyx_L1_error) + + /* "talib/_stream.pxi":1046 + * 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.pxi":1048 + * 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.pxi":1049 + * 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__1356, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1049, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 1049, __pyx_L1_error) + + /* "talib/_stream.pxi":1048 + * 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.pxi":1050 + * 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.pxi":1051 + * 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.pxi":1052 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CDL3INSIDE, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1052, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":1053 + * 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(3, 1053, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":993 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":1057 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_8c_ta_lib_391stream_CDL3LINESTRIKE(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_390stream_CDL3LINESTRIKE[] = " 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_8c_ta_lib_391stream_CDL3LINESTRIKE = {"stream_CDL3LINESTRIKE", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_391stream_CDL3LINESTRIKE, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_390stream_CDL3LINESTRIKE}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_391stream_CDL3LINESTRIKE(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("stream_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("stream_CDL3LINESTRIKE", 1, 4, 4, 1); __PYX_ERR(3, 1057, __pyx_L3_error) + } + case 2: + if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_CDL3LINESTRIKE", 1, 4, 4, 2); __PYX_ERR(3, 1057, __pyx_L3_error) + } + case 3: + if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_CDL3LINESTRIKE", 1, 4, 4, 3); __PYX_ERR(3, 1057, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "stream_CDL3LINESTRIKE") < 0)) __PYX_ERR(3, 1057, __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("stream_CDL3LINESTRIKE", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 1057, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 1057, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(3, 1057, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(3, 1057, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(3, 1057, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_390stream_CDL3LINESTRIKE(__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_8c_ta_lib_390stream_CDL3LINESTRIKE(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("stream_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.pxi":1079 + * 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.pxi":1080 + * 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__1357, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1080, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 1080, __pyx_L1_error) + + /* "talib/_stream.pxi":1079 + * int outnbelement + * int outinteger + * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("open is not double") + * if open.ndim != 1: + */ + } + + /* "talib/_stream.pxi":1081 + * 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.pxi":1082 + * 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__1358, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1082, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 1082, __pyx_L1_error) + + /* "talib/_stream.pxi":1081 + * 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.pxi":1083 + * 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 = open.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":1084 + * raise Exception("open has wrong dimensions") + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1084, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 1084, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":1083 + * 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 = open.data + */ + } + + /* "talib/_stream.pxi":1085 + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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.pxi":1086 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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.pxi":1087 + * open_data = 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__1359, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1087, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 1087, __pyx_L1_error) + + /* "talib/_stream.pxi":1086 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_stream.pxi":1088 + * 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.pxi":1089 + * raise 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__1360, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1089, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 1089, __pyx_L1_error) + + /* "talib/_stream.pxi":1088 + * 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.pxi":1090 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":1091 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1091, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 1091, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":1090 + * 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 = high.data + */ + } + + /* "talib/_stream.pxi":1092 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":1093 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":1094 + * high_data = 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__1361, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 1094, __pyx_L1_error) + + /* "talib/_stream.pxi":1093 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_stream.pxi":1095 + * 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.pxi":1096 + * raise 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__1362, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 1096, __pyx_L1_error) + + /* "talib/_stream.pxi":1095 + * 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.pxi":1097 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":1098 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 1098, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":1097 + * 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 = low.data + */ + } + + /* "talib/_stream.pxi":1099 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":1100 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":1101 + * low_data = 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__1363, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 1101, __pyx_L1_error) + + /* "talib/_stream.pxi":1100 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_stream.pxi":1102 + * 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.pxi":1103 + * raise 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__1364, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 1103, __pyx_L1_error) + + /* "talib/_stream.pxi":1102 + * 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.pxi":1104 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":1105 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = open.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 1105, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":1104 + * 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 = close.data + */ + } + + /* "talib/_stream.pxi":1106 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = open.shape[0] + * if length != high.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_stream.pxi":1107 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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.pxi":1108 + * close_data = 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.pxi":1109 + * 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__1365, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1109, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 1109, __pyx_L1_error) + + /* "talib/_stream.pxi":1108 + * close_data = close.data + * length = open.shape[0] + * if length != high.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != low.shape[0]: + */ + } + + /* "talib/_stream.pxi":1110 + * 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.pxi":1111 + * 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__1366, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1111, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 1111, __pyx_L1_error) + + /* "talib/_stream.pxi":1110 + * 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.pxi":1112 + * 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.pxi":1113 + * 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__1367, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1113, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 1113, __pyx_L1_error) + + /* "talib/_stream.pxi":1112 + * 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.pxi":1114 + * 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.pxi":1115 + * 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.pxi":1116 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CDL3LINESTRIKE, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1116, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":1117 + * 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(3, 1117, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":1057 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":1121 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_8c_ta_lib_393stream_CDL3OUTSIDE(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_392stream_CDL3OUTSIDE[] = " 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_8c_ta_lib_393stream_CDL3OUTSIDE = {"stream_CDL3OUTSIDE", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_393stream_CDL3OUTSIDE, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_392stream_CDL3OUTSIDE}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_393stream_CDL3OUTSIDE(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("stream_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("stream_CDL3OUTSIDE", 1, 4, 4, 1); __PYX_ERR(3, 1121, __pyx_L3_error) + } + case 2: + if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_CDL3OUTSIDE", 1, 4, 4, 2); __PYX_ERR(3, 1121, __pyx_L3_error) + } + case 3: + if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_CDL3OUTSIDE", 1, 4, 4, 3); __PYX_ERR(3, 1121, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "stream_CDL3OUTSIDE") < 0)) __PYX_ERR(3, 1121, __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("stream_CDL3OUTSIDE", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 1121, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 1121, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(3, 1121, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(3, 1121, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(3, 1121, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_392stream_CDL3OUTSIDE(__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_8c_ta_lib_392stream_CDL3OUTSIDE(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("stream_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.pxi":1143 + * 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.pxi":1144 + * 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__1368, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1144, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 1144, __pyx_L1_error) + + /* "talib/_stream.pxi":1143 + * int outnbelement + * int outinteger + * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("open is not double") + * if open.ndim != 1: + */ + } + + /* "talib/_stream.pxi":1145 + * 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.pxi":1146 + * 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__1369, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1146, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 1146, __pyx_L1_error) + + /* "talib/_stream.pxi":1145 + * 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.pxi":1147 + * 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 = open.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":1148 + * raise Exception("open has wrong dimensions") + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1148, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 1148, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":1147 + * 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 = open.data + */ + } + + /* "talib/_stream.pxi":1149 + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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.pxi":1150 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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.pxi":1151 + * open_data = 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__1370, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1151, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 1151, __pyx_L1_error) + + /* "talib/_stream.pxi":1150 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_stream.pxi":1152 + * 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.pxi":1153 + * raise 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__1371, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1153, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 1153, __pyx_L1_error) + + /* "talib/_stream.pxi":1152 + * 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.pxi":1154 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":1155 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1155, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 1155, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":1154 + * 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 = high.data + */ + } + + /* "talib/_stream.pxi":1156 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":1157 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":1158 + * high_data = 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__1372, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 1158, __pyx_L1_error) + + /* "talib/_stream.pxi":1157 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_stream.pxi":1159 + * 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.pxi":1160 + * raise 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__1373, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 1160, __pyx_L1_error) + + /* "talib/_stream.pxi":1159 + * 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.pxi":1161 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":1162 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 1162, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":1161 + * 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 = low.data + */ + } + + /* "talib/_stream.pxi":1163 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":1164 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":1165 + * low_data = 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__1374, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 1165, __pyx_L1_error) + + /* "talib/_stream.pxi":1164 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_stream.pxi":1166 + * 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.pxi":1167 + * raise 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__1375, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 1167, __pyx_L1_error) + + /* "talib/_stream.pxi":1166 + * 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.pxi":1168 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":1169 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = open.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 1169, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":1168 + * 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 = close.data + */ + } + + /* "talib/_stream.pxi":1170 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = open.shape[0] + * if length != high.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_stream.pxi":1171 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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.pxi":1172 + * close_data = 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.pxi":1173 + * 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__1376, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1173, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 1173, __pyx_L1_error) + + /* "talib/_stream.pxi":1172 + * close_data = close.data + * length = open.shape[0] + * if length != high.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != low.shape[0]: + */ + } + + /* "talib/_stream.pxi":1174 + * 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.pxi":1175 + * 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__1377, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1175, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 1175, __pyx_L1_error) + + /* "talib/_stream.pxi":1174 + * 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.pxi":1176 + * 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.pxi":1177 + * 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__1378, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1177, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 1177, __pyx_L1_error) + + /* "talib/_stream.pxi":1176 + * 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.pxi":1178 + * 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.pxi":1179 + * 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.pxi":1180 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CDL3OUTSIDE, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1180, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":1181 + * 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(3, 1181, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":1121 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":1185 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_8c_ta_lib_395stream_CDL3STARSINSOUTH(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_394stream_CDL3STARSINSOUTH[] = " 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_8c_ta_lib_395stream_CDL3STARSINSOUTH = {"stream_CDL3STARSINSOUTH", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_395stream_CDL3STARSINSOUTH, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_394stream_CDL3STARSINSOUTH}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_395stream_CDL3STARSINSOUTH(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("stream_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("stream_CDL3STARSINSOUTH", 1, 4, 4, 1); __PYX_ERR(3, 1185, __pyx_L3_error) + } + case 2: + if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_CDL3STARSINSOUTH", 1, 4, 4, 2); __PYX_ERR(3, 1185, __pyx_L3_error) + } + case 3: + if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_CDL3STARSINSOUTH", 1, 4, 4, 3); __PYX_ERR(3, 1185, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "stream_CDL3STARSINSOUTH") < 0)) __PYX_ERR(3, 1185, __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("stream_CDL3STARSINSOUTH", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 1185, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 1185, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(3, 1185, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(3, 1185, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(3, 1185, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_394stream_CDL3STARSINSOUTH(__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_8c_ta_lib_394stream_CDL3STARSINSOUTH(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("stream_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.pxi":1207 + * 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.pxi":1208 + * 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__1379, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1208, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 1208, __pyx_L1_error) + + /* "talib/_stream.pxi":1207 + * int outnbelement + * int outinteger + * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("open is not double") + * if open.ndim != 1: + */ + } + + /* "talib/_stream.pxi":1209 + * 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.pxi":1210 + * 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__1380, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1210, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 1210, __pyx_L1_error) + + /* "talib/_stream.pxi":1209 + * 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.pxi":1211 + * 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 = open.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":1212 + * raise Exception("open has wrong dimensions") + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1212, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 1212, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":1211 + * 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 = open.data + */ + } + + /* "talib/_stream.pxi":1213 + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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.pxi":1214 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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.pxi":1215 + * open_data = 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__1381, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1215, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 1215, __pyx_L1_error) + + /* "talib/_stream.pxi":1214 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_stream.pxi":1216 + * 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.pxi":1217 + * raise 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__1382, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1217, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 1217, __pyx_L1_error) + + /* "talib/_stream.pxi":1216 + * 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.pxi":1218 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":1219 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1219, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 1219, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":1218 + * 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 = high.data + */ + } + + /* "talib/_stream.pxi":1220 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":1221 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":1222 + * high_data = 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__1383, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 1222, __pyx_L1_error) + + /* "talib/_stream.pxi":1221 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_stream.pxi":1223 + * 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.pxi":1224 + * raise 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__1384, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 1224, __pyx_L1_error) + + /* "talib/_stream.pxi":1223 + * 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.pxi":1225 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":1226 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 1226, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":1225 + * 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 = low.data + */ + } + + /* "talib/_stream.pxi":1227 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":1228 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":1229 + * low_data = 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__1385, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 1229, __pyx_L1_error) + + /* "talib/_stream.pxi":1228 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_stream.pxi":1230 + * 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.pxi":1231 + * raise 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__1386, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 1231, __pyx_L1_error) + + /* "talib/_stream.pxi":1230 + * 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.pxi":1232 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":1233 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = open.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 1233, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":1232 + * 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 = close.data + */ + } + + /* "talib/_stream.pxi":1234 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = open.shape[0] + * if length != high.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_stream.pxi":1235 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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.pxi":1236 + * close_data = 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.pxi":1237 + * 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__1387, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1237, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 1237, __pyx_L1_error) + + /* "talib/_stream.pxi":1236 + * close_data = close.data + * length = open.shape[0] + * if length != high.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != low.shape[0]: + */ + } + + /* "talib/_stream.pxi":1238 + * 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.pxi":1239 + * 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__1388, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1239, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 1239, __pyx_L1_error) + + /* "talib/_stream.pxi":1238 + * 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.pxi":1240 + * 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.pxi":1241 + * 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__1389, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1241, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 1241, __pyx_L1_error) + + /* "talib/_stream.pxi":1240 + * 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.pxi":1242 + * 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.pxi":1243 + * 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.pxi":1244 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CDL3STARSINSOUTH, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1244, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":1245 + * 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(3, 1245, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":1185 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":1249 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_8c_ta_lib_397stream_CDL3WHITESOLDIERS(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_396stream_CDL3WHITESOLDIERS[] = " 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_8c_ta_lib_397stream_CDL3WHITESOLDIERS = {"stream_CDL3WHITESOLDIERS", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_397stream_CDL3WHITESOLDIERS, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_396stream_CDL3WHITESOLDIERS}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_397stream_CDL3WHITESOLDIERS(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("stream_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("stream_CDL3WHITESOLDIERS", 1, 4, 4, 1); __PYX_ERR(3, 1249, __pyx_L3_error) + } + case 2: + if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_CDL3WHITESOLDIERS", 1, 4, 4, 2); __PYX_ERR(3, 1249, __pyx_L3_error) + } + case 3: + if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_CDL3WHITESOLDIERS", 1, 4, 4, 3); __PYX_ERR(3, 1249, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "stream_CDL3WHITESOLDIERS") < 0)) __PYX_ERR(3, 1249, __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("stream_CDL3WHITESOLDIERS", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 1249, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 1249, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(3, 1249, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(3, 1249, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(3, 1249, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_396stream_CDL3WHITESOLDIERS(__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_8c_ta_lib_396stream_CDL3WHITESOLDIERS(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("stream_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.pxi":1271 + * 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.pxi":1272 + * 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__1390, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1272, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 1272, __pyx_L1_error) + + /* "talib/_stream.pxi":1271 + * int outnbelement + * int outinteger + * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("open is not double") + * if open.ndim != 1: + */ + } + + /* "talib/_stream.pxi":1273 + * 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.pxi":1274 + * 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__1391, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1274, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 1274, __pyx_L1_error) + + /* "talib/_stream.pxi":1273 + * 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.pxi":1275 + * 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 = open.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":1276 + * raise Exception("open has wrong dimensions") + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1276, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 1276, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":1275 + * 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 = open.data + */ + } + + /* "talib/_stream.pxi":1277 + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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.pxi":1278 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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.pxi":1279 + * open_data = 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__1392, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1279, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 1279, __pyx_L1_error) + + /* "talib/_stream.pxi":1278 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_stream.pxi":1280 + * 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.pxi":1281 + * raise 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__1393, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1281, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 1281, __pyx_L1_error) + + /* "talib/_stream.pxi":1280 + * 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.pxi":1282 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":1283 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1283, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 1283, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":1282 + * 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 = high.data + */ + } + + /* "talib/_stream.pxi":1284 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":1285 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":1286 + * high_data = 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__1394, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 1286, __pyx_L1_error) + + /* "talib/_stream.pxi":1285 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_stream.pxi":1287 + * 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.pxi":1288 + * raise 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__1395, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 1288, __pyx_L1_error) + + /* "talib/_stream.pxi":1287 + * 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.pxi":1289 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":1290 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 1290, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":1289 + * 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 = low.data + */ + } + + /* "talib/_stream.pxi":1291 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":1292 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":1293 + * low_data = 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__1396, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 1293, __pyx_L1_error) + + /* "talib/_stream.pxi":1292 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_stream.pxi":1294 + * 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.pxi":1295 + * raise 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__1397, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 1295, __pyx_L1_error) + + /* "talib/_stream.pxi":1294 + * 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.pxi":1296 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":1297 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = open.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 1297, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":1296 + * 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 = close.data + */ + } + + /* "talib/_stream.pxi":1298 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = open.shape[0] + * if length != high.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_stream.pxi":1299 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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.pxi":1300 + * close_data = 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.pxi":1301 + * 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__1398, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1301, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 1301, __pyx_L1_error) + + /* "talib/_stream.pxi":1300 + * close_data = close.data + * length = open.shape[0] + * if length != high.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != low.shape[0]: + */ + } + + /* "talib/_stream.pxi":1302 + * 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.pxi":1303 + * 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__1399, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1303, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 1303, __pyx_L1_error) + + /* "talib/_stream.pxi":1302 + * 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.pxi":1304 + * 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.pxi":1305 + * 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__1400, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1305, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 1305, __pyx_L1_error) + + /* "talib/_stream.pxi":1304 + * 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.pxi":1306 + * 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.pxi":1307 + * 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.pxi":1308 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CDL3WHITESOLDIERS, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1308, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":1309 + * 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(3, 1309, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":1249 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":1313 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_8c_ta_lib_399stream_CDLABANDONEDBABY(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_398stream_CDLABANDONEDBABY[] = " 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_8c_ta_lib_399stream_CDLABANDONEDBABY = {"stream_CDLABANDONEDBABY", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_399stream_CDLABANDONEDBABY, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_398stream_CDLABANDONEDBABY}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_399stream_CDLABANDONEDBABY(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("stream_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("stream_CDLABANDONEDBABY", 0, 4, 5, 1); __PYX_ERR(3, 1313, __pyx_L3_error) + } + case 2: + if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_CDLABANDONEDBABY", 0, 4, 5, 2); __PYX_ERR(3, 1313, __pyx_L3_error) + } + case 3: + if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_CDLABANDONEDBABY", 0, 4, 5, 3); __PYX_ERR(3, 1313, __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, "stream_CDLABANDONEDBABY") < 0)) __PYX_ERR(3, 1313, __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(3, 1313, __pyx_L3_error) + } else { + __pyx_v_penetration = ((double)0.3); + } + } + goto __pyx_L4_argument_unpacking_done; + __pyx_L5_argtuple_error:; + __Pyx_RaiseArgtupleInvalid("stream_CDLABANDONEDBABY", 0, 4, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 1313, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 1313, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(3, 1313, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(3, 1313, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(3, 1313, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_398stream_CDLABANDONEDBABY(__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_8c_ta_lib_398stream_CDLABANDONEDBABY(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("stream_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.pxi":1337 + * 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.pxi":1338 + * 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__1401, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1338, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 1338, __pyx_L1_error) + + /* "talib/_stream.pxi":1337 + * int outnbelement + * int outinteger + * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("open is not double") + * if open.ndim != 1: + */ + } + + /* "talib/_stream.pxi":1339 + * 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.pxi":1340 + * 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__1402, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1340, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 1340, __pyx_L1_error) + + /* "talib/_stream.pxi":1339 + * 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.pxi":1341 + * 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 = open.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":1342 + * raise Exception("open has wrong dimensions") + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1342, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 1342, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":1341 + * 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 = open.data + */ + } + + /* "talib/_stream.pxi":1343 + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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.pxi":1344 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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.pxi":1345 + * open_data = 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__1403, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1345, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 1345, __pyx_L1_error) + + /* "talib/_stream.pxi":1344 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_stream.pxi":1346 + * 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.pxi":1347 + * raise 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__1404, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1347, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 1347, __pyx_L1_error) + + /* "talib/_stream.pxi":1346 + * 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.pxi":1348 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":1349 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1349, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 1349, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":1348 + * 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 = high.data + */ + } + + /* "talib/_stream.pxi":1350 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":1351 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":1352 + * high_data = 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__1405, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 1352, __pyx_L1_error) + + /* "talib/_stream.pxi":1351 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_stream.pxi":1353 + * 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.pxi":1354 + * raise 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__1406, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 1354, __pyx_L1_error) + + /* "talib/_stream.pxi":1353 + * 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.pxi":1355 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":1356 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 1356, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":1355 + * 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 = low.data + */ + } + + /* "talib/_stream.pxi":1357 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":1358 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":1359 + * low_data = 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__1407, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 1359, __pyx_L1_error) + + /* "talib/_stream.pxi":1358 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_stream.pxi":1360 + * 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.pxi":1361 + * raise 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__1408, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 1361, __pyx_L1_error) + + /* "talib/_stream.pxi":1360 + * 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.pxi":1362 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":1363 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = open.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 1363, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":1362 + * 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 = close.data + */ + } + + /* "talib/_stream.pxi":1364 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = open.shape[0] + * if length != high.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_stream.pxi":1365 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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.pxi":1366 + * close_data = 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.pxi":1367 + * 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__1409, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1367, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 1367, __pyx_L1_error) + + /* "talib/_stream.pxi":1366 + * close_data = close.data + * length = open.shape[0] + * if length != high.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != low.shape[0]: + */ + } + + /* "talib/_stream.pxi":1368 + * 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.pxi":1369 + * 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__1410, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1369, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 1369, __pyx_L1_error) + + /* "talib/_stream.pxi":1368 + * 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.pxi":1370 + * 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.pxi":1371 + * 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__1411, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1371, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 1371, __pyx_L1_error) + + /* "talib/_stream.pxi":1370 + * 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.pxi":1372 + * 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.pxi":1373 + * 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.pxi":1374 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CDLABANDONEDBABY, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1374, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":1375 + * 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(3, 1375, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":1313 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":1379 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_8c_ta_lib_401stream_CDLADVANCEBLOCK(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_400stream_CDLADVANCEBLOCK[] = " 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_8c_ta_lib_401stream_CDLADVANCEBLOCK = {"stream_CDLADVANCEBLOCK", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_401stream_CDLADVANCEBLOCK, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_400stream_CDLADVANCEBLOCK}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_401stream_CDLADVANCEBLOCK(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("stream_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("stream_CDLADVANCEBLOCK", 1, 4, 4, 1); __PYX_ERR(3, 1379, __pyx_L3_error) + } + case 2: + if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_CDLADVANCEBLOCK", 1, 4, 4, 2); __PYX_ERR(3, 1379, __pyx_L3_error) + } + case 3: + if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_CDLADVANCEBLOCK", 1, 4, 4, 3); __PYX_ERR(3, 1379, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "stream_CDLADVANCEBLOCK") < 0)) __PYX_ERR(3, 1379, __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("stream_CDLADVANCEBLOCK", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 1379, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 1379, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(3, 1379, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(3, 1379, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(3, 1379, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_400stream_CDLADVANCEBLOCK(__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_8c_ta_lib_400stream_CDLADVANCEBLOCK(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("stream_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.pxi":1401 + * 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.pxi":1402 + * 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__1412, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1402, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 1402, __pyx_L1_error) + + /* "talib/_stream.pxi":1401 + * int outnbelement + * int outinteger + * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("open is not double") + * if open.ndim != 1: + */ + } + + /* "talib/_stream.pxi":1403 + * 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.pxi":1404 + * 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__1413, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1404, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 1404, __pyx_L1_error) + + /* "talib/_stream.pxi":1403 + * 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.pxi":1405 + * 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 = open.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":1406 + * raise Exception("open has wrong dimensions") + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1406, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 1406, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":1405 + * 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 = open.data + */ + } + + /* "talib/_stream.pxi":1407 + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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.pxi":1408 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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.pxi":1409 + * open_data = 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__1414, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1409, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 1409, __pyx_L1_error) + + /* "talib/_stream.pxi":1408 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_stream.pxi":1410 + * 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.pxi":1411 + * raise 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__1415, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1411, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 1411, __pyx_L1_error) + + /* "talib/_stream.pxi":1410 + * 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.pxi":1412 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":1413 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1413, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 1413, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":1412 + * 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 = high.data + */ + } + + /* "talib/_stream.pxi":1414 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":1415 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":1416 + * high_data = 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__1416, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 1416, __pyx_L1_error) + + /* "talib/_stream.pxi":1415 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_stream.pxi":1417 + * 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.pxi":1418 + * raise 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__1417, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 1418, __pyx_L1_error) + + /* "talib/_stream.pxi":1417 + * 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.pxi":1419 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":1420 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 1420, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":1419 + * 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 = low.data + */ + } + + /* "talib/_stream.pxi":1421 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":1422 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":1423 + * low_data = 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__1418, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 1423, __pyx_L1_error) + + /* "talib/_stream.pxi":1422 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_stream.pxi":1424 + * 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.pxi":1425 + * raise 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__1419, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 1425, __pyx_L1_error) + + /* "talib/_stream.pxi":1424 + * 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.pxi":1426 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":1427 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = open.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 1427, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":1426 + * 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 = close.data + */ + } + + /* "talib/_stream.pxi":1428 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = open.shape[0] + * if length != high.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_stream.pxi":1429 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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.pxi":1430 + * close_data = 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.pxi":1431 + * 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__1420, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1431, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 1431, __pyx_L1_error) + + /* "talib/_stream.pxi":1430 + * close_data = close.data + * length = open.shape[0] + * if length != high.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != low.shape[0]: + */ + } + + /* "talib/_stream.pxi":1432 + * 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.pxi":1433 + * 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__1421, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1433, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 1433, __pyx_L1_error) + + /* "talib/_stream.pxi":1432 + * 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.pxi":1434 + * 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.pxi":1435 + * 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__1422, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1435, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 1435, __pyx_L1_error) + + /* "talib/_stream.pxi":1434 + * 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.pxi":1436 + * 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.pxi":1437 + * 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.pxi":1438 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CDLADVANCEBLOCK, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1438, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":1439 + * 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(3, 1439, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":1379 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":1443 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_8c_ta_lib_403stream_CDLBELTHOLD(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_402stream_CDLBELTHOLD[] = " 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_8c_ta_lib_403stream_CDLBELTHOLD = {"stream_CDLBELTHOLD", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_403stream_CDLBELTHOLD, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_402stream_CDLBELTHOLD}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_403stream_CDLBELTHOLD(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("stream_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("stream_CDLBELTHOLD", 1, 4, 4, 1); __PYX_ERR(3, 1443, __pyx_L3_error) + } + case 2: + if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_CDLBELTHOLD", 1, 4, 4, 2); __PYX_ERR(3, 1443, __pyx_L3_error) + } + case 3: + if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_CDLBELTHOLD", 1, 4, 4, 3); __PYX_ERR(3, 1443, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "stream_CDLBELTHOLD") < 0)) __PYX_ERR(3, 1443, __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("stream_CDLBELTHOLD", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 1443, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 1443, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(3, 1443, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(3, 1443, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(3, 1443, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_402stream_CDLBELTHOLD(__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_8c_ta_lib_402stream_CDLBELTHOLD(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("stream_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.pxi":1465 + * 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.pxi":1466 + * 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__1423, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1466, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 1466, __pyx_L1_error) + + /* "talib/_stream.pxi":1465 + * int outnbelement + * int outinteger + * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("open is not double") + * if open.ndim != 1: + */ + } + + /* "talib/_stream.pxi":1467 + * 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.pxi":1468 + * 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__1424, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1468, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 1468, __pyx_L1_error) + + /* "talib/_stream.pxi":1467 + * 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.pxi":1469 + * 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 = open.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":1470 + * raise Exception("open has wrong dimensions") + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1470, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 1470, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":1469 + * 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 = open.data + */ + } + + /* "talib/_stream.pxi":1471 + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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.pxi":1472 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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.pxi":1473 + * open_data = 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__1425, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1473, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 1473, __pyx_L1_error) + + /* "talib/_stream.pxi":1472 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_stream.pxi":1474 + * 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.pxi":1475 + * raise 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__1426, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1475, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 1475, __pyx_L1_error) + + /* "talib/_stream.pxi":1474 + * 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.pxi":1476 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":1477 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1477, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 1477, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":1476 + * 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 = high.data + */ + } + + /* "talib/_stream.pxi":1478 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":1479 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":1480 + * high_data = 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__1427, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 1480, __pyx_L1_error) + + /* "talib/_stream.pxi":1479 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_stream.pxi":1481 + * 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.pxi":1482 + * raise 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__1428, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 1482, __pyx_L1_error) + + /* "talib/_stream.pxi":1481 + * 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.pxi":1483 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":1484 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 1484, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":1483 + * 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 = low.data + */ + } + + /* "talib/_stream.pxi":1485 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":1486 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":1487 + * low_data = 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__1429, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 1487, __pyx_L1_error) + + /* "talib/_stream.pxi":1486 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_stream.pxi":1488 + * 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.pxi":1489 + * raise 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__1430, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 1489, __pyx_L1_error) + + /* "talib/_stream.pxi":1488 + * 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.pxi":1490 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":1491 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = open.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 1491, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":1490 + * 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 = close.data + */ + } + + /* "talib/_stream.pxi":1492 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = open.shape[0] + * if length != high.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_stream.pxi":1493 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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.pxi":1494 + * close_data = 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.pxi":1495 + * 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__1431, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1495, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 1495, __pyx_L1_error) + + /* "talib/_stream.pxi":1494 + * close_data = close.data + * length = open.shape[0] + * if length != high.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != low.shape[0]: + */ + } + + /* "talib/_stream.pxi":1496 + * 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.pxi":1497 + * 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__1432, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1497, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 1497, __pyx_L1_error) + + /* "talib/_stream.pxi":1496 + * 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.pxi":1498 + * 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.pxi":1499 + * 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__1433, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1499, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 1499, __pyx_L1_error) + + /* "talib/_stream.pxi":1498 + * 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.pxi":1500 + * 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.pxi":1501 + * 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.pxi":1502 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CDLBELTHOLD, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1502, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":1503 + * 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(3, 1503, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":1443 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":1507 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_8c_ta_lib_405stream_CDLBREAKAWAY(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_404stream_CDLBREAKAWAY[] = " 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_8c_ta_lib_405stream_CDLBREAKAWAY = {"stream_CDLBREAKAWAY", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_405stream_CDLBREAKAWAY, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_404stream_CDLBREAKAWAY}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_405stream_CDLBREAKAWAY(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("stream_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("stream_CDLBREAKAWAY", 1, 4, 4, 1); __PYX_ERR(3, 1507, __pyx_L3_error) + } + case 2: + if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_CDLBREAKAWAY", 1, 4, 4, 2); __PYX_ERR(3, 1507, __pyx_L3_error) + } + case 3: + if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_CDLBREAKAWAY", 1, 4, 4, 3); __PYX_ERR(3, 1507, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "stream_CDLBREAKAWAY") < 0)) __PYX_ERR(3, 1507, __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("stream_CDLBREAKAWAY", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 1507, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 1507, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(3, 1507, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(3, 1507, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(3, 1507, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_404stream_CDLBREAKAWAY(__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_8c_ta_lib_404stream_CDLBREAKAWAY(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("stream_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.pxi":1529 + * 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.pxi":1530 + * 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__1434, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1530, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 1530, __pyx_L1_error) + + /* "talib/_stream.pxi":1529 + * int outnbelement + * int outinteger + * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("open is not double") + * if open.ndim != 1: + */ + } + + /* "talib/_stream.pxi":1531 + * 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.pxi":1532 + * 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__1435, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1532, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 1532, __pyx_L1_error) + + /* "talib/_stream.pxi":1531 + * 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.pxi":1533 + * 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 = open.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":1534 + * raise Exception("open has wrong dimensions") + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1534, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 1534, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":1533 + * 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 = open.data + */ + } + + /* "talib/_stream.pxi":1535 + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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.pxi":1536 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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.pxi":1537 + * open_data = 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__1436, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1537, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 1537, __pyx_L1_error) + + /* "talib/_stream.pxi":1536 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_stream.pxi":1538 + * 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.pxi":1539 + * raise 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__1437, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1539, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 1539, __pyx_L1_error) + + /* "talib/_stream.pxi":1538 + * 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.pxi":1540 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":1541 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1541, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 1541, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":1540 + * 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 = high.data + */ + } + + /* "talib/_stream.pxi":1542 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":1543 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":1544 + * high_data = 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__1438, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 1544, __pyx_L1_error) + + /* "talib/_stream.pxi":1543 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_stream.pxi":1545 + * 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.pxi":1546 + * raise 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__1439, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 1546, __pyx_L1_error) + + /* "talib/_stream.pxi":1545 + * 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.pxi":1547 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":1548 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 1548, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":1547 + * 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 = low.data + */ + } + + /* "talib/_stream.pxi":1549 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":1550 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":1551 + * low_data = 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__1440, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 1551, __pyx_L1_error) + + /* "talib/_stream.pxi":1550 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_stream.pxi":1552 + * 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.pxi":1553 + * raise 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__1441, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 1553, __pyx_L1_error) + + /* "talib/_stream.pxi":1552 + * 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.pxi":1554 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":1555 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = open.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 1555, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":1554 + * 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 = close.data + */ + } + + /* "talib/_stream.pxi":1556 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = open.shape[0] + * if length != high.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_stream.pxi":1557 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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.pxi":1558 + * close_data = 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.pxi":1559 + * 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__1442, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1559, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 1559, __pyx_L1_error) + + /* "talib/_stream.pxi":1558 + * close_data = close.data + * length = open.shape[0] + * if length != high.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != low.shape[0]: + */ + } + + /* "talib/_stream.pxi":1560 + * 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.pxi":1561 + * 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__1443, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1561, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 1561, __pyx_L1_error) + + /* "talib/_stream.pxi":1560 + * 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.pxi":1562 + * 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.pxi":1563 + * 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__1444, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1563, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 1563, __pyx_L1_error) + + /* "talib/_stream.pxi":1562 + * 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.pxi":1564 + * 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.pxi":1565 + * 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.pxi":1566 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CDLBREAKAWAY, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1566, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":1567 + * 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(3, 1567, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":1507 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":1571 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_8c_ta_lib_407stream_CDLCLOSINGMARUBOZU(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_406stream_CDLCLOSINGMARUBOZU[] = " 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_8c_ta_lib_407stream_CDLCLOSINGMARUBOZU = {"stream_CDLCLOSINGMARUBOZU", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_407stream_CDLCLOSINGMARUBOZU, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_406stream_CDLCLOSINGMARUBOZU}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_407stream_CDLCLOSINGMARUBOZU(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("stream_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("stream_CDLCLOSINGMARUBOZU", 1, 4, 4, 1); __PYX_ERR(3, 1571, __pyx_L3_error) + } + case 2: + if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_CDLCLOSINGMARUBOZU", 1, 4, 4, 2); __PYX_ERR(3, 1571, __pyx_L3_error) + } + case 3: + if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_CDLCLOSINGMARUBOZU", 1, 4, 4, 3); __PYX_ERR(3, 1571, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "stream_CDLCLOSINGMARUBOZU") < 0)) __PYX_ERR(3, 1571, __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("stream_CDLCLOSINGMARUBOZU", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 1571, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 1571, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(3, 1571, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(3, 1571, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(3, 1571, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_406stream_CDLCLOSINGMARUBOZU(__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_8c_ta_lib_406stream_CDLCLOSINGMARUBOZU(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("stream_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.pxi":1593 + * 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.pxi":1594 + * 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__1445, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1594, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 1594, __pyx_L1_error) + + /* "talib/_stream.pxi":1593 + * int outnbelement + * int outinteger + * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("open is not double") + * if open.ndim != 1: + */ + } + + /* "talib/_stream.pxi":1595 + * 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.pxi":1596 + * 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__1446, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1596, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 1596, __pyx_L1_error) + + /* "talib/_stream.pxi":1595 + * 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.pxi":1597 + * 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 = open.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":1598 + * raise Exception("open has wrong dimensions") + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1598, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 1598, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":1597 + * 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 = open.data + */ + } + + /* "talib/_stream.pxi":1599 + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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.pxi":1600 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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.pxi":1601 + * open_data = 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__1447, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1601, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 1601, __pyx_L1_error) + + /* "talib/_stream.pxi":1600 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_stream.pxi":1602 + * 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.pxi":1603 + * raise 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__1448, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1603, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 1603, __pyx_L1_error) + + /* "talib/_stream.pxi":1602 + * 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.pxi":1604 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":1605 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1605, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 1605, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":1604 + * 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 = high.data + */ + } + + /* "talib/_stream.pxi":1606 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":1607 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":1608 + * high_data = 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__1449, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 1608, __pyx_L1_error) + + /* "talib/_stream.pxi":1607 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_stream.pxi":1609 + * 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.pxi":1610 + * raise 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__1450, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 1610, __pyx_L1_error) + + /* "talib/_stream.pxi":1609 + * 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.pxi":1611 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":1612 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 1612, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":1611 + * 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 = low.data + */ + } + + /* "talib/_stream.pxi":1613 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":1614 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":1615 + * low_data = 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__1451, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 1615, __pyx_L1_error) + + /* "talib/_stream.pxi":1614 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_stream.pxi":1616 + * 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.pxi":1617 + * raise 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__1452, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 1617, __pyx_L1_error) + + /* "talib/_stream.pxi":1616 + * 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.pxi":1618 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":1619 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = open.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 1619, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":1618 + * 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 = close.data + */ + } + + /* "talib/_stream.pxi":1620 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = open.shape[0] + * if length != high.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_stream.pxi":1621 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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.pxi":1622 + * close_data = 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.pxi":1623 + * 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__1453, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1623, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 1623, __pyx_L1_error) + + /* "talib/_stream.pxi":1622 + * close_data = close.data + * length = open.shape[0] + * if length != high.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != low.shape[0]: + */ + } + + /* "talib/_stream.pxi":1624 + * 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.pxi":1625 + * 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__1454, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1625, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 1625, __pyx_L1_error) + + /* "talib/_stream.pxi":1624 + * 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.pxi":1626 + * 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.pxi":1627 + * 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__1455, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1627, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 1627, __pyx_L1_error) + + /* "talib/_stream.pxi":1626 + * 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.pxi":1628 + * 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.pxi":1629 + * 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.pxi":1630 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CDLCLOSINGMARUBOZU, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1630, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":1631 + * 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(3, 1631, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":1571 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":1635 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_8c_ta_lib_409stream_CDLCONCEALBABYSWALL(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_408stream_CDLCONCEALBABYSWALL[] = " 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_8c_ta_lib_409stream_CDLCONCEALBABYSWALL = {"stream_CDLCONCEALBABYSWALL", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_409stream_CDLCONCEALBABYSWALL, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_408stream_CDLCONCEALBABYSWALL}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_409stream_CDLCONCEALBABYSWALL(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("stream_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("stream_CDLCONCEALBABYSWALL", 1, 4, 4, 1); __PYX_ERR(3, 1635, __pyx_L3_error) + } + case 2: + if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_CDLCONCEALBABYSWALL", 1, 4, 4, 2); __PYX_ERR(3, 1635, __pyx_L3_error) + } + case 3: + if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_CDLCONCEALBABYSWALL", 1, 4, 4, 3); __PYX_ERR(3, 1635, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "stream_CDLCONCEALBABYSWALL") < 0)) __PYX_ERR(3, 1635, __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("stream_CDLCONCEALBABYSWALL", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 1635, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 1635, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(3, 1635, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(3, 1635, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(3, 1635, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_408stream_CDLCONCEALBABYSWALL(__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_8c_ta_lib_408stream_CDLCONCEALBABYSWALL(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("stream_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.pxi":1657 + * 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.pxi":1658 + * 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__1456, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1658, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 1658, __pyx_L1_error) + + /* "talib/_stream.pxi":1657 + * int outnbelement + * int outinteger + * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("open is not double") + * if open.ndim != 1: + */ + } + + /* "talib/_stream.pxi":1659 + * 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.pxi":1660 + * 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__1457, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1660, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 1660, __pyx_L1_error) + + /* "talib/_stream.pxi":1659 + * 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.pxi":1661 + * 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 = open.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":1662 + * raise Exception("open has wrong dimensions") + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1662, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 1662, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":1661 + * 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 = open.data + */ + } + + /* "talib/_stream.pxi":1663 + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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.pxi":1664 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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.pxi":1665 + * open_data = 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__1458, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1665, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 1665, __pyx_L1_error) + + /* "talib/_stream.pxi":1664 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_stream.pxi":1666 + * 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.pxi":1667 + * raise 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__1459, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1667, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 1667, __pyx_L1_error) + + /* "talib/_stream.pxi":1666 + * 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.pxi":1668 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":1669 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1669, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 1669, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":1668 + * 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 = high.data + */ + } + + /* "talib/_stream.pxi":1670 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":1671 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":1672 + * high_data = 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__1460, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 1672, __pyx_L1_error) + + /* "talib/_stream.pxi":1671 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_stream.pxi":1673 + * 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.pxi":1674 + * raise 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__1461, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 1674, __pyx_L1_error) + + /* "talib/_stream.pxi":1673 + * 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.pxi":1675 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":1676 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 1676, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":1675 + * 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 = low.data + */ + } + + /* "talib/_stream.pxi":1677 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":1678 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":1679 + * low_data = 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__1462, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 1679, __pyx_L1_error) + + /* "talib/_stream.pxi":1678 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_stream.pxi":1680 + * 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.pxi":1681 + * raise 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__1463, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 1681, __pyx_L1_error) + + /* "talib/_stream.pxi":1680 + * 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.pxi":1682 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":1683 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = open.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 1683, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":1682 + * 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 = close.data + */ + } + + /* "talib/_stream.pxi":1684 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = open.shape[0] + * if length != high.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_stream.pxi":1685 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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.pxi":1686 + * close_data = 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.pxi":1687 + * 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__1464, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1687, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 1687, __pyx_L1_error) + + /* "talib/_stream.pxi":1686 + * close_data = close.data + * length = open.shape[0] + * if length != high.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != low.shape[0]: + */ + } + + /* "talib/_stream.pxi":1688 + * 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.pxi":1689 + * 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__1465, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1689, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 1689, __pyx_L1_error) + + /* "talib/_stream.pxi":1688 + * 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.pxi":1690 + * 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.pxi":1691 + * 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__1466, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1691, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 1691, __pyx_L1_error) + + /* "talib/_stream.pxi":1690 + * 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.pxi":1692 + * 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.pxi":1693 + * 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.pxi":1694 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CDLCONCEALBABYSWALL, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1694, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":1695 + * 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(3, 1695, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":1635 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":1699 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_8c_ta_lib_411stream_CDLCOUNTERATTACK(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_410stream_CDLCOUNTERATTACK[] = " 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_8c_ta_lib_411stream_CDLCOUNTERATTACK = {"stream_CDLCOUNTERATTACK", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_411stream_CDLCOUNTERATTACK, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_410stream_CDLCOUNTERATTACK}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_411stream_CDLCOUNTERATTACK(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("stream_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("stream_CDLCOUNTERATTACK", 1, 4, 4, 1); __PYX_ERR(3, 1699, __pyx_L3_error) + } + case 2: + if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_CDLCOUNTERATTACK", 1, 4, 4, 2); __PYX_ERR(3, 1699, __pyx_L3_error) + } + case 3: + if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_CDLCOUNTERATTACK", 1, 4, 4, 3); __PYX_ERR(3, 1699, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "stream_CDLCOUNTERATTACK") < 0)) __PYX_ERR(3, 1699, __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("stream_CDLCOUNTERATTACK", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 1699, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 1699, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(3, 1699, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(3, 1699, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(3, 1699, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_410stream_CDLCOUNTERATTACK(__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_8c_ta_lib_410stream_CDLCOUNTERATTACK(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("stream_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.pxi":1721 + * 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.pxi":1722 + * 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__1467, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1722, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 1722, __pyx_L1_error) + + /* "talib/_stream.pxi":1721 + * int outnbelement + * int outinteger + * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("open is not double") + * if open.ndim != 1: + */ + } + + /* "talib/_stream.pxi":1723 + * 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.pxi":1724 + * 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__1468, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1724, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 1724, __pyx_L1_error) + + /* "talib/_stream.pxi":1723 + * 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.pxi":1725 + * 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 = open.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":1726 + * raise Exception("open has wrong dimensions") + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1726, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 1726, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":1725 + * 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 = open.data + */ + } + + /* "talib/_stream.pxi":1727 + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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.pxi":1728 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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.pxi":1729 + * open_data = 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__1469, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1729, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 1729, __pyx_L1_error) + + /* "talib/_stream.pxi":1728 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_stream.pxi":1730 + * 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.pxi":1731 + * raise 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__1470, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1731, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 1731, __pyx_L1_error) + + /* "talib/_stream.pxi":1730 + * 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.pxi":1732 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":1733 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1733, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 1733, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":1732 + * 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 = high.data + */ + } + + /* "talib/_stream.pxi":1734 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":1735 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":1736 + * high_data = 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__1471, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 1736, __pyx_L1_error) + + /* "talib/_stream.pxi":1735 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_stream.pxi":1737 + * 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.pxi":1738 + * raise 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__1472, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 1738, __pyx_L1_error) + + /* "talib/_stream.pxi":1737 + * 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.pxi":1739 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":1740 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 1740, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":1739 + * 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 = low.data + */ + } + + /* "talib/_stream.pxi":1741 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":1742 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":1743 + * low_data = 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__1473, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 1743, __pyx_L1_error) + + /* "talib/_stream.pxi":1742 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_stream.pxi":1744 + * 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.pxi":1745 + * raise 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__1474, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 1745, __pyx_L1_error) + + /* "talib/_stream.pxi":1744 + * 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.pxi":1746 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":1747 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = open.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 1747, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":1746 + * 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 = close.data + */ + } + + /* "talib/_stream.pxi":1748 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = open.shape[0] + * if length != high.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_stream.pxi":1749 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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.pxi":1750 + * close_data = 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.pxi":1751 + * 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__1475, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1751, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 1751, __pyx_L1_error) + + /* "talib/_stream.pxi":1750 + * close_data = close.data + * length = open.shape[0] + * if length != high.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != low.shape[0]: + */ + } + + /* "talib/_stream.pxi":1752 + * 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.pxi":1753 + * 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__1476, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1753, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 1753, __pyx_L1_error) + + /* "talib/_stream.pxi":1752 + * 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.pxi":1754 + * 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.pxi":1755 + * 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__1477, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1755, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 1755, __pyx_L1_error) + + /* "talib/_stream.pxi":1754 + * 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.pxi":1756 + * 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.pxi":1757 + * 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.pxi":1758 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CDLCOUNTERATTACK, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1758, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":1759 + * 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(3, 1759, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":1699 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":1763 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_8c_ta_lib_413stream_CDLDARKCLOUDCOVER(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_412stream_CDLDARKCLOUDCOVER[] = " 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_8c_ta_lib_413stream_CDLDARKCLOUDCOVER = {"stream_CDLDARKCLOUDCOVER", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_413stream_CDLDARKCLOUDCOVER, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_412stream_CDLDARKCLOUDCOVER}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_413stream_CDLDARKCLOUDCOVER(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("stream_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("stream_CDLDARKCLOUDCOVER", 0, 4, 5, 1); __PYX_ERR(3, 1763, __pyx_L3_error) + } + case 2: + if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_CDLDARKCLOUDCOVER", 0, 4, 5, 2); __PYX_ERR(3, 1763, __pyx_L3_error) + } + case 3: + if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_CDLDARKCLOUDCOVER", 0, 4, 5, 3); __PYX_ERR(3, 1763, __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, "stream_CDLDARKCLOUDCOVER") < 0)) __PYX_ERR(3, 1763, __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(3, 1763, __pyx_L3_error) + } else { + __pyx_v_penetration = ((double)0.5); + } + } + goto __pyx_L4_argument_unpacking_done; + __pyx_L5_argtuple_error:; + __Pyx_RaiseArgtupleInvalid("stream_CDLDARKCLOUDCOVER", 0, 4, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 1763, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 1763, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(3, 1763, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(3, 1763, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(3, 1763, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_412stream_CDLDARKCLOUDCOVER(__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_8c_ta_lib_412stream_CDLDARKCLOUDCOVER(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("stream_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.pxi":1787 + * 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.pxi":1788 + * 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__1478, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1788, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 1788, __pyx_L1_error) + + /* "talib/_stream.pxi":1787 + * int outnbelement + * int outinteger + * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("open is not double") + * if open.ndim != 1: + */ + } + + /* "talib/_stream.pxi":1789 + * 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.pxi":1790 + * 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__1479, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1790, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 1790, __pyx_L1_error) + + /* "talib/_stream.pxi":1789 + * 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.pxi":1791 + * 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 = open.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":1792 + * raise Exception("open has wrong dimensions") + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1792, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 1792, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":1791 + * 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 = open.data + */ + } + + /* "talib/_stream.pxi":1793 + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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.pxi":1794 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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.pxi":1795 + * open_data = 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__1480, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1795, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 1795, __pyx_L1_error) + + /* "talib/_stream.pxi":1794 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_stream.pxi":1796 + * 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.pxi":1797 + * raise 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__1481, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1797, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 1797, __pyx_L1_error) + + /* "talib/_stream.pxi":1796 + * 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.pxi":1798 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":1799 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1799, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 1799, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":1798 + * 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 = high.data + */ + } + + /* "talib/_stream.pxi":1800 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":1801 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":1802 + * high_data = 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__1482, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 1802, __pyx_L1_error) + + /* "talib/_stream.pxi":1801 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_stream.pxi":1803 + * 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.pxi":1804 + * raise 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__1483, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 1804, __pyx_L1_error) + + /* "talib/_stream.pxi":1803 + * 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.pxi":1805 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":1806 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 1806, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":1805 + * 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 = low.data + */ + } + + /* "talib/_stream.pxi":1807 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":1808 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":1809 + * low_data = 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__1484, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 1809, __pyx_L1_error) + + /* "talib/_stream.pxi":1808 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_stream.pxi":1810 + * 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.pxi":1811 + * raise 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__1485, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 1811, __pyx_L1_error) + + /* "talib/_stream.pxi":1810 + * 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.pxi":1812 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":1813 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = open.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 1813, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":1812 + * 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 = close.data + */ + } + + /* "talib/_stream.pxi":1814 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = open.shape[0] + * if length != high.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_stream.pxi":1815 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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.pxi":1816 + * close_data = 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.pxi":1817 + * 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__1486, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1817, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 1817, __pyx_L1_error) + + /* "talib/_stream.pxi":1816 + * close_data = close.data + * length = open.shape[0] + * if length != high.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != low.shape[0]: + */ + } + + /* "talib/_stream.pxi":1818 + * 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.pxi":1819 + * 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__1487, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1819, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 1819, __pyx_L1_error) + + /* "talib/_stream.pxi":1818 + * 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.pxi":1820 + * 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.pxi":1821 + * 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__1488, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1821, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 1821, __pyx_L1_error) + + /* "talib/_stream.pxi":1820 + * 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.pxi":1822 + * 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.pxi":1823 + * 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.pxi":1824 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CDLDARKCLOUDCOVER, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1824, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":1825 + * 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(3, 1825, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":1763 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":1829 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_8c_ta_lib_415stream_CDLDOJI(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_414stream_CDLDOJI[] = " 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_8c_ta_lib_415stream_CDLDOJI = {"stream_CDLDOJI", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_415stream_CDLDOJI, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_414stream_CDLDOJI}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_415stream_CDLDOJI(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("stream_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("stream_CDLDOJI", 1, 4, 4, 1); __PYX_ERR(3, 1829, __pyx_L3_error) + } + case 2: + if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_CDLDOJI", 1, 4, 4, 2); __PYX_ERR(3, 1829, __pyx_L3_error) + } + case 3: + if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_CDLDOJI", 1, 4, 4, 3); __PYX_ERR(3, 1829, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "stream_CDLDOJI") < 0)) __PYX_ERR(3, 1829, __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("stream_CDLDOJI", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 1829, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 1829, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(3, 1829, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(3, 1829, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(3, 1829, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_414stream_CDLDOJI(__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_8c_ta_lib_414stream_CDLDOJI(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("stream_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.pxi":1851 + * 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.pxi":1852 + * 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__1489, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1852, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 1852, __pyx_L1_error) + + /* "talib/_stream.pxi":1851 + * int outnbelement + * int outinteger + * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("open is not double") + * if open.ndim != 1: + */ + } + + /* "talib/_stream.pxi":1853 + * 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.pxi":1854 + * 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__1490, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1854, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 1854, __pyx_L1_error) + + /* "talib/_stream.pxi":1853 + * 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.pxi":1855 + * 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 = open.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":1856 + * raise Exception("open has wrong dimensions") + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1856, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 1856, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":1855 + * 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 = open.data + */ + } + + /* "talib/_stream.pxi":1857 + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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.pxi":1858 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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.pxi":1859 + * open_data = 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__1491, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1859, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 1859, __pyx_L1_error) + + /* "talib/_stream.pxi":1858 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_stream.pxi":1860 + * 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.pxi":1861 + * raise 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__1492, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1861, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 1861, __pyx_L1_error) + + /* "talib/_stream.pxi":1860 + * 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.pxi":1862 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":1863 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1863, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 1863, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":1862 + * 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 = high.data + */ + } + + /* "talib/_stream.pxi":1864 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":1865 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":1866 + * high_data = 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__1493, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 1866, __pyx_L1_error) + + /* "talib/_stream.pxi":1865 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_stream.pxi":1867 + * 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.pxi":1868 + * raise 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__1494, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 1868, __pyx_L1_error) + + /* "talib/_stream.pxi":1867 + * 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.pxi":1869 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":1870 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 1870, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":1869 + * 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 = low.data + */ + } + + /* "talib/_stream.pxi":1871 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":1872 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":1873 + * low_data = 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__1495, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 1873, __pyx_L1_error) + + /* "talib/_stream.pxi":1872 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_stream.pxi":1874 + * 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.pxi":1875 + * raise 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__1496, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 1875, __pyx_L1_error) + + /* "talib/_stream.pxi":1874 + * 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.pxi":1876 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":1877 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = open.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 1877, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":1876 + * 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 = close.data + */ + } + + /* "talib/_stream.pxi":1878 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = open.shape[0] + * if length != high.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_stream.pxi":1879 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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.pxi":1880 + * close_data = 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.pxi":1881 + * 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__1497, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1881, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 1881, __pyx_L1_error) + + /* "talib/_stream.pxi":1880 + * close_data = close.data + * length = open.shape[0] + * if length != high.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != low.shape[0]: + */ + } + + /* "talib/_stream.pxi":1882 + * 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.pxi":1883 + * 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__1498, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1883, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 1883, __pyx_L1_error) + + /* "talib/_stream.pxi":1882 + * 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.pxi":1884 + * 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.pxi":1885 + * 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__1499, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1885, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 1885, __pyx_L1_error) + + /* "talib/_stream.pxi":1884 + * 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.pxi":1886 + * 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.pxi":1887 + * 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.pxi":1888 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CDLDOJI, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1888, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":1889 + * 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(3, 1889, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":1829 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":1893 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_8c_ta_lib_417stream_CDLDOJISTAR(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_416stream_CDLDOJISTAR[] = " 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_8c_ta_lib_417stream_CDLDOJISTAR = {"stream_CDLDOJISTAR", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_417stream_CDLDOJISTAR, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_416stream_CDLDOJISTAR}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_417stream_CDLDOJISTAR(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("stream_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("stream_CDLDOJISTAR", 1, 4, 4, 1); __PYX_ERR(3, 1893, __pyx_L3_error) + } + case 2: + if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_CDLDOJISTAR", 1, 4, 4, 2); __PYX_ERR(3, 1893, __pyx_L3_error) + } + case 3: + if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_CDLDOJISTAR", 1, 4, 4, 3); __PYX_ERR(3, 1893, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "stream_CDLDOJISTAR") < 0)) __PYX_ERR(3, 1893, __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("stream_CDLDOJISTAR", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 1893, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 1893, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(3, 1893, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(3, 1893, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(3, 1893, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_416stream_CDLDOJISTAR(__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_8c_ta_lib_416stream_CDLDOJISTAR(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("stream_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.pxi":1915 + * 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.pxi":1916 + * 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__1500, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1916, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 1916, __pyx_L1_error) + + /* "talib/_stream.pxi":1915 + * int outnbelement + * int outinteger + * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("open is not double") + * if open.ndim != 1: + */ + } + + /* "talib/_stream.pxi":1917 + * 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.pxi":1918 + * 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__1501, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1918, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 1918, __pyx_L1_error) + + /* "talib/_stream.pxi":1917 + * 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.pxi":1919 + * 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 = open.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":1920 + * raise Exception("open has wrong dimensions") + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1920, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 1920, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":1919 + * 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 = open.data + */ + } + + /* "talib/_stream.pxi":1921 + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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.pxi":1922 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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.pxi":1923 + * open_data = 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__1502, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1923, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 1923, __pyx_L1_error) + + /* "talib/_stream.pxi":1922 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_stream.pxi":1924 + * 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.pxi":1925 + * raise 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__1503, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1925, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 1925, __pyx_L1_error) + + /* "talib/_stream.pxi":1924 + * 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.pxi":1926 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":1927 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1927, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 1927, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":1926 + * 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 = high.data + */ + } + + /* "talib/_stream.pxi":1928 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":1929 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":1930 + * high_data = 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__1504, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 1930, __pyx_L1_error) + + /* "talib/_stream.pxi":1929 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_stream.pxi":1931 + * 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.pxi":1932 + * raise 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__1505, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 1932, __pyx_L1_error) + + /* "talib/_stream.pxi":1931 + * 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.pxi":1933 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":1934 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 1934, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":1933 + * 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 = low.data + */ + } + + /* "talib/_stream.pxi":1935 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":1936 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":1937 + * low_data = 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__1506, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 1937, __pyx_L1_error) + + /* "talib/_stream.pxi":1936 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_stream.pxi":1938 + * 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.pxi":1939 + * raise 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__1507, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 1939, __pyx_L1_error) + + /* "talib/_stream.pxi":1938 + * 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.pxi":1940 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":1941 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = open.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 1941, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":1940 + * 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 = close.data + */ + } + + /* "talib/_stream.pxi":1942 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = open.shape[0] + * if length != high.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_stream.pxi":1943 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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.pxi":1944 + * close_data = 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.pxi":1945 + * 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__1508, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1945, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 1945, __pyx_L1_error) + + /* "talib/_stream.pxi":1944 + * close_data = close.data + * length = open.shape[0] + * if length != high.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != low.shape[0]: + */ + } + + /* "talib/_stream.pxi":1946 + * 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.pxi":1947 + * 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__1509, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1947, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 1947, __pyx_L1_error) + + /* "talib/_stream.pxi":1946 + * 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.pxi":1948 + * 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.pxi":1949 + * 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__1510, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1949, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 1949, __pyx_L1_error) + + /* "talib/_stream.pxi":1948 + * 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.pxi":1950 + * 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.pxi":1951 + * 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.pxi":1952 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CDLDOJISTAR, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1952, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":1953 + * 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(3, 1953, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":1893 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":1957 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_8c_ta_lib_419stream_CDLDRAGONFLYDOJI(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_418stream_CDLDRAGONFLYDOJI[] = " 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_8c_ta_lib_419stream_CDLDRAGONFLYDOJI = {"stream_CDLDRAGONFLYDOJI", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_419stream_CDLDRAGONFLYDOJI, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_418stream_CDLDRAGONFLYDOJI}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_419stream_CDLDRAGONFLYDOJI(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("stream_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("stream_CDLDRAGONFLYDOJI", 1, 4, 4, 1); __PYX_ERR(3, 1957, __pyx_L3_error) + } + case 2: + if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_CDLDRAGONFLYDOJI", 1, 4, 4, 2); __PYX_ERR(3, 1957, __pyx_L3_error) + } + case 3: + if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_CDLDRAGONFLYDOJI", 1, 4, 4, 3); __PYX_ERR(3, 1957, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "stream_CDLDRAGONFLYDOJI") < 0)) __PYX_ERR(3, 1957, __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("stream_CDLDRAGONFLYDOJI", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 1957, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 1957, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(3, 1957, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(3, 1957, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(3, 1957, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_418stream_CDLDRAGONFLYDOJI(__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_8c_ta_lib_418stream_CDLDRAGONFLYDOJI(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("stream_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.pxi":1979 + * 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.pxi":1980 + * 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__1511, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1980, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 1980, __pyx_L1_error) + + /* "talib/_stream.pxi":1979 + * int outnbelement + * int outinteger + * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("open is not double") + * if open.ndim != 1: + */ + } + + /* "talib/_stream.pxi":1981 + * 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.pxi":1982 + * 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__1512, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1982, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 1982, __pyx_L1_error) + + /* "talib/_stream.pxi":1981 + * 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.pxi":1983 + * 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 = open.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":1984 + * raise Exception("open has wrong dimensions") + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1984, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 1984, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":1983 + * 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 = open.data + */ + } + + /* "talib/_stream.pxi":1985 + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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.pxi":1986 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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.pxi":1987 + * open_data = 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__1513, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1987, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 1987, __pyx_L1_error) + + /* "talib/_stream.pxi":1986 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_stream.pxi":1988 + * 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.pxi":1989 + * raise 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__1514, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1989, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 1989, __pyx_L1_error) + + /* "talib/_stream.pxi":1988 + * 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.pxi":1990 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":1991 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 1991, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 1991, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":1990 + * 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 = high.data + */ + } + + /* "talib/_stream.pxi":1992 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":1993 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":1994 + * high_data = 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__1515, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 1994, __pyx_L1_error) + + /* "talib/_stream.pxi":1993 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_stream.pxi":1995 + * 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.pxi":1996 + * raise 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__1516, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 1996, __pyx_L1_error) + + /* "talib/_stream.pxi":1995 + * 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.pxi":1997 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":1998 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 1998, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":1997 + * 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 = low.data + */ + } + + /* "talib/_stream.pxi":1999 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":2000 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":2001 + * low_data = 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__1517, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 2001, __pyx_L1_error) + + /* "talib/_stream.pxi":2000 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_stream.pxi":2002 + * 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.pxi":2003 + * raise 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__1518, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 2003, __pyx_L1_error) + + /* "talib/_stream.pxi":2002 + * 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.pxi":2004 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":2005 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = open.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 2005, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":2004 + * 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 = close.data + */ + } + + /* "talib/_stream.pxi":2006 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = open.shape[0] + * if length != high.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_stream.pxi":2007 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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.pxi":2008 + * close_data = 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.pxi":2009 + * 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__1519, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2009, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 2009, __pyx_L1_error) + + /* "talib/_stream.pxi":2008 + * close_data = close.data + * length = open.shape[0] + * if length != high.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != low.shape[0]: + */ + } + + /* "talib/_stream.pxi":2010 + * 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.pxi":2011 + * 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__1520, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2011, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 2011, __pyx_L1_error) + + /* "talib/_stream.pxi":2010 + * 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.pxi":2012 + * 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.pxi":2013 + * 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__1521, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2013, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 2013, __pyx_L1_error) + + /* "talib/_stream.pxi":2012 + * 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.pxi":2014 + * 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.pxi":2015 + * 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.pxi":2016 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CDLDRAGONFLYDOJI, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2016, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":2017 + * 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(3, 2017, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":1957 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":2021 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_8c_ta_lib_421stream_CDLENGULFING(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_420stream_CDLENGULFING[] = " 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_8c_ta_lib_421stream_CDLENGULFING = {"stream_CDLENGULFING", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_421stream_CDLENGULFING, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_420stream_CDLENGULFING}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_421stream_CDLENGULFING(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("stream_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("stream_CDLENGULFING", 1, 4, 4, 1); __PYX_ERR(3, 2021, __pyx_L3_error) + } + case 2: + if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_CDLENGULFING", 1, 4, 4, 2); __PYX_ERR(3, 2021, __pyx_L3_error) + } + case 3: + if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_CDLENGULFING", 1, 4, 4, 3); __PYX_ERR(3, 2021, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "stream_CDLENGULFING") < 0)) __PYX_ERR(3, 2021, __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("stream_CDLENGULFING", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 2021, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 2021, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(3, 2021, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(3, 2021, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(3, 2021, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_420stream_CDLENGULFING(__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_8c_ta_lib_420stream_CDLENGULFING(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("stream_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.pxi":2043 + * 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.pxi":2044 + * 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__1522, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2044, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 2044, __pyx_L1_error) + + /* "talib/_stream.pxi":2043 + * int outnbelement + * int outinteger + * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("open is not double") + * if open.ndim != 1: + */ + } + + /* "talib/_stream.pxi":2045 + * 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.pxi":2046 + * 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__1523, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2046, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 2046, __pyx_L1_error) + + /* "talib/_stream.pxi":2045 + * 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.pxi":2047 + * 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 = open.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":2048 + * raise Exception("open has wrong dimensions") + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2048, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 2048, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":2047 + * 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 = open.data + */ + } + + /* "talib/_stream.pxi":2049 + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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.pxi":2050 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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.pxi":2051 + * open_data = 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__1524, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2051, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 2051, __pyx_L1_error) + + /* "talib/_stream.pxi":2050 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_stream.pxi":2052 + * 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.pxi":2053 + * raise 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__1525, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2053, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 2053, __pyx_L1_error) + + /* "talib/_stream.pxi":2052 + * 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.pxi":2054 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":2055 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2055, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 2055, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":2054 + * 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 = high.data + */ + } + + /* "talib/_stream.pxi":2056 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":2057 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":2058 + * high_data = 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__1526, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 2058, __pyx_L1_error) + + /* "talib/_stream.pxi":2057 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_stream.pxi":2059 + * 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.pxi":2060 + * raise 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__1527, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 2060, __pyx_L1_error) + + /* "talib/_stream.pxi":2059 + * 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.pxi":2061 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":2062 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 2062, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":2061 + * 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 = low.data + */ + } + + /* "talib/_stream.pxi":2063 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":2064 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":2065 + * low_data = 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__1528, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 2065, __pyx_L1_error) + + /* "talib/_stream.pxi":2064 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_stream.pxi":2066 + * 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.pxi":2067 + * raise 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__1529, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 2067, __pyx_L1_error) + + /* "talib/_stream.pxi":2066 + * 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.pxi":2068 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":2069 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = open.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 2069, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":2068 + * 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 = close.data + */ + } + + /* "talib/_stream.pxi":2070 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = open.shape[0] + * if length != high.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_stream.pxi":2071 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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.pxi":2072 + * close_data = 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.pxi":2073 + * 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__1530, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2073, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 2073, __pyx_L1_error) + + /* "talib/_stream.pxi":2072 + * close_data = close.data + * length = open.shape[0] + * if length != high.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != low.shape[0]: + */ + } + + /* "talib/_stream.pxi":2074 + * 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.pxi":2075 + * 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__1531, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2075, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 2075, __pyx_L1_error) + + /* "talib/_stream.pxi":2074 + * 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.pxi":2076 + * 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.pxi":2077 + * 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__1532, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2077, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 2077, __pyx_L1_error) + + /* "talib/_stream.pxi":2076 + * 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.pxi":2078 + * 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.pxi":2079 + * 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.pxi":2080 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CDLENGULFING, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2080, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":2081 + * 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(3, 2081, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":2021 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":2085 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_8c_ta_lib_423stream_CDLEVENINGDOJISTAR(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_422stream_CDLEVENINGDOJISTAR[] = " 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_8c_ta_lib_423stream_CDLEVENINGDOJISTAR = {"stream_CDLEVENINGDOJISTAR", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_423stream_CDLEVENINGDOJISTAR, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_422stream_CDLEVENINGDOJISTAR}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_423stream_CDLEVENINGDOJISTAR(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("stream_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("stream_CDLEVENINGDOJISTAR", 0, 4, 5, 1); __PYX_ERR(3, 2085, __pyx_L3_error) + } + case 2: + if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_CDLEVENINGDOJISTAR", 0, 4, 5, 2); __PYX_ERR(3, 2085, __pyx_L3_error) + } + case 3: + if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_CDLEVENINGDOJISTAR", 0, 4, 5, 3); __PYX_ERR(3, 2085, __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, "stream_CDLEVENINGDOJISTAR") < 0)) __PYX_ERR(3, 2085, __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(3, 2085, __pyx_L3_error) + } else { + __pyx_v_penetration = ((double)0.3); + } + } + goto __pyx_L4_argument_unpacking_done; + __pyx_L5_argtuple_error:; + __Pyx_RaiseArgtupleInvalid("stream_CDLEVENINGDOJISTAR", 0, 4, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 2085, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 2085, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(3, 2085, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(3, 2085, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(3, 2085, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_422stream_CDLEVENINGDOJISTAR(__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_8c_ta_lib_422stream_CDLEVENINGDOJISTAR(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("stream_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.pxi":2109 + * 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.pxi":2110 + * 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__1533, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2110, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 2110, __pyx_L1_error) + + /* "talib/_stream.pxi":2109 + * int outnbelement + * int outinteger + * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("open is not double") + * if open.ndim != 1: + */ + } + + /* "talib/_stream.pxi":2111 + * 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.pxi":2112 + * 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__1534, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2112, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 2112, __pyx_L1_error) + + /* "talib/_stream.pxi":2111 + * 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.pxi":2113 + * 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 = open.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":2114 + * raise Exception("open has wrong dimensions") + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2114, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 2114, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":2113 + * 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 = open.data + */ + } + + /* "talib/_stream.pxi":2115 + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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.pxi":2116 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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.pxi":2117 + * open_data = 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__1535, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2117, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 2117, __pyx_L1_error) + + /* "talib/_stream.pxi":2116 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_stream.pxi":2118 + * 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.pxi":2119 + * raise 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__1536, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2119, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 2119, __pyx_L1_error) + + /* "talib/_stream.pxi":2118 + * 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.pxi":2120 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":2121 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2121, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 2121, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":2120 + * 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 = high.data + */ + } + + /* "talib/_stream.pxi":2122 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":2123 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":2124 + * high_data = 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__1537, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 2124, __pyx_L1_error) + + /* "talib/_stream.pxi":2123 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_stream.pxi":2125 + * 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.pxi":2126 + * raise 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__1538, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 2126, __pyx_L1_error) + + /* "talib/_stream.pxi":2125 + * 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.pxi":2127 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":2128 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 2128, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":2127 + * 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 = low.data + */ + } + + /* "talib/_stream.pxi":2129 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":2130 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":2131 + * low_data = 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__1539, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 2131, __pyx_L1_error) + + /* "talib/_stream.pxi":2130 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_stream.pxi":2132 + * 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.pxi":2133 + * raise 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__1540, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 2133, __pyx_L1_error) + + /* "talib/_stream.pxi":2132 + * 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.pxi":2134 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":2135 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = open.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 2135, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":2134 + * 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 = close.data + */ + } + + /* "talib/_stream.pxi":2136 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = open.shape[0] + * if length != high.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_stream.pxi":2137 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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.pxi":2138 + * close_data = 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.pxi":2139 + * 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__1541, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2139, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 2139, __pyx_L1_error) + + /* "talib/_stream.pxi":2138 + * close_data = close.data + * length = open.shape[0] + * if length != high.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != low.shape[0]: + */ + } + + /* "talib/_stream.pxi":2140 + * 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.pxi":2141 + * 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__1542, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2141, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 2141, __pyx_L1_error) + + /* "talib/_stream.pxi":2140 + * 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.pxi":2142 + * 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.pxi":2143 + * 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__1543, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2143, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 2143, __pyx_L1_error) + + /* "talib/_stream.pxi":2142 + * 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.pxi":2144 + * 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.pxi":2145 + * 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.pxi":2146 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CDLEVENINGDOJISTAR, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2146, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":2147 + * 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(3, 2147, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":2085 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":2151 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_8c_ta_lib_425stream_CDLEVENINGSTAR(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_424stream_CDLEVENINGSTAR[] = " 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_8c_ta_lib_425stream_CDLEVENINGSTAR = {"stream_CDLEVENINGSTAR", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_425stream_CDLEVENINGSTAR, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_424stream_CDLEVENINGSTAR}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_425stream_CDLEVENINGSTAR(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("stream_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("stream_CDLEVENINGSTAR", 0, 4, 5, 1); __PYX_ERR(3, 2151, __pyx_L3_error) + } + case 2: + if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_CDLEVENINGSTAR", 0, 4, 5, 2); __PYX_ERR(3, 2151, __pyx_L3_error) + } + case 3: + if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_CDLEVENINGSTAR", 0, 4, 5, 3); __PYX_ERR(3, 2151, __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, "stream_CDLEVENINGSTAR") < 0)) __PYX_ERR(3, 2151, __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(3, 2151, __pyx_L3_error) + } else { + __pyx_v_penetration = ((double)0.3); + } + } + goto __pyx_L4_argument_unpacking_done; + __pyx_L5_argtuple_error:; + __Pyx_RaiseArgtupleInvalid("stream_CDLEVENINGSTAR", 0, 4, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 2151, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 2151, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(3, 2151, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(3, 2151, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(3, 2151, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_424stream_CDLEVENINGSTAR(__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_8c_ta_lib_424stream_CDLEVENINGSTAR(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("stream_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.pxi":2175 + * 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.pxi":2176 + * 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__1544, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2176, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 2176, __pyx_L1_error) + + /* "talib/_stream.pxi":2175 + * int outnbelement + * int outinteger + * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("open is not double") + * if open.ndim != 1: + */ + } + + /* "talib/_stream.pxi":2177 + * 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.pxi":2178 + * 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__1545, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2178, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 2178, __pyx_L1_error) + + /* "talib/_stream.pxi":2177 + * 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.pxi":2179 + * 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 = open.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":2180 + * raise Exception("open has wrong dimensions") + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2180, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 2180, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":2179 + * 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 = open.data + */ + } + + /* "talib/_stream.pxi":2181 + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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.pxi":2182 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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.pxi":2183 + * open_data = 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__1546, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2183, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 2183, __pyx_L1_error) + + /* "talib/_stream.pxi":2182 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_stream.pxi":2184 + * 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.pxi":2185 + * raise 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__1547, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2185, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 2185, __pyx_L1_error) + + /* "talib/_stream.pxi":2184 + * 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.pxi":2186 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":2187 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2187, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 2187, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":2186 + * 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 = high.data + */ + } + + /* "talib/_stream.pxi":2188 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":2189 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":2190 + * high_data = 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__1548, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 2190, __pyx_L1_error) + + /* "talib/_stream.pxi":2189 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_stream.pxi":2191 + * 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.pxi":2192 + * raise 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__1549, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 2192, __pyx_L1_error) + + /* "talib/_stream.pxi":2191 + * 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.pxi":2193 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":2194 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 2194, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":2193 + * 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 = low.data + */ + } + + /* "talib/_stream.pxi":2195 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":2196 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":2197 + * low_data = 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__1550, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 2197, __pyx_L1_error) + + /* "talib/_stream.pxi":2196 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_stream.pxi":2198 + * 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.pxi":2199 + * raise 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__1551, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 2199, __pyx_L1_error) + + /* "talib/_stream.pxi":2198 + * 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.pxi":2200 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":2201 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = open.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 2201, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":2200 + * 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 = close.data + */ + } + + /* "talib/_stream.pxi":2202 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = open.shape[0] + * if length != high.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_stream.pxi":2203 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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.pxi":2204 + * close_data = 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.pxi":2205 + * 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__1552, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2205, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 2205, __pyx_L1_error) + + /* "talib/_stream.pxi":2204 + * close_data = close.data + * length = open.shape[0] + * if length != high.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != low.shape[0]: + */ + } + + /* "talib/_stream.pxi":2206 + * 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.pxi":2207 + * 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__1553, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2207, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 2207, __pyx_L1_error) + + /* "talib/_stream.pxi":2206 + * 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.pxi":2208 + * 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.pxi":2209 + * 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__1554, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2209, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 2209, __pyx_L1_error) + + /* "talib/_stream.pxi":2208 + * 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.pxi":2210 + * 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.pxi":2211 + * 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.pxi":2212 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CDLEVENINGSTAR, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2212, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":2213 + * 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(3, 2213, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":2151 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":2217 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_8c_ta_lib_427stream_CDLGAPSIDESIDEWHITE(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_426stream_CDLGAPSIDESIDEWHITE[] = " 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_8c_ta_lib_427stream_CDLGAPSIDESIDEWHITE = {"stream_CDLGAPSIDESIDEWHITE", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_427stream_CDLGAPSIDESIDEWHITE, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_426stream_CDLGAPSIDESIDEWHITE}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_427stream_CDLGAPSIDESIDEWHITE(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("stream_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("stream_CDLGAPSIDESIDEWHITE", 1, 4, 4, 1); __PYX_ERR(3, 2217, __pyx_L3_error) + } + case 2: + if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_CDLGAPSIDESIDEWHITE", 1, 4, 4, 2); __PYX_ERR(3, 2217, __pyx_L3_error) + } + case 3: + if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_CDLGAPSIDESIDEWHITE", 1, 4, 4, 3); __PYX_ERR(3, 2217, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "stream_CDLGAPSIDESIDEWHITE") < 0)) __PYX_ERR(3, 2217, __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("stream_CDLGAPSIDESIDEWHITE", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 2217, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 2217, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(3, 2217, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(3, 2217, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(3, 2217, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_426stream_CDLGAPSIDESIDEWHITE(__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_8c_ta_lib_426stream_CDLGAPSIDESIDEWHITE(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("stream_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.pxi":2239 + * 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.pxi":2240 + * 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__1555, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2240, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 2240, __pyx_L1_error) + + /* "talib/_stream.pxi":2239 + * int outnbelement + * int outinteger + * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("open is not double") + * if open.ndim != 1: + */ + } + + /* "talib/_stream.pxi":2241 + * 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.pxi":2242 + * 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__1556, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2242, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 2242, __pyx_L1_error) + + /* "talib/_stream.pxi":2241 + * 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.pxi":2243 + * 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 = open.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":2244 + * raise Exception("open has wrong dimensions") + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2244, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 2244, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":2243 + * 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 = open.data + */ + } + + /* "talib/_stream.pxi":2245 + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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.pxi":2246 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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.pxi":2247 + * open_data = 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__1557, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2247, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 2247, __pyx_L1_error) + + /* "talib/_stream.pxi":2246 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_stream.pxi":2248 + * 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.pxi":2249 + * raise 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__1558, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2249, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 2249, __pyx_L1_error) + + /* "talib/_stream.pxi":2248 + * 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.pxi":2250 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":2251 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2251, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 2251, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":2250 + * 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 = high.data + */ + } + + /* "talib/_stream.pxi":2252 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":2253 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":2254 + * high_data = 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__1559, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 2254, __pyx_L1_error) + + /* "talib/_stream.pxi":2253 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_stream.pxi":2255 + * 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.pxi":2256 + * raise 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__1560, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 2256, __pyx_L1_error) + + /* "talib/_stream.pxi":2255 + * 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.pxi":2257 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":2258 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 2258, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":2257 + * 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 = low.data + */ + } + + /* "talib/_stream.pxi":2259 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":2260 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":2261 + * low_data = 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__1561, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 2261, __pyx_L1_error) + + /* "talib/_stream.pxi":2260 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_stream.pxi":2262 + * 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.pxi":2263 + * raise 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__1562, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 2263, __pyx_L1_error) + + /* "talib/_stream.pxi":2262 + * 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.pxi":2264 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":2265 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = open.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 2265, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":2264 + * 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 = close.data + */ + } + + /* "talib/_stream.pxi":2266 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = open.shape[0] + * if length != high.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_stream.pxi":2267 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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.pxi":2268 + * close_data = 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.pxi":2269 + * 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__1563, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2269, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 2269, __pyx_L1_error) + + /* "talib/_stream.pxi":2268 + * close_data = close.data + * length = open.shape[0] + * if length != high.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != low.shape[0]: + */ + } + + /* "talib/_stream.pxi":2270 + * 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.pxi":2271 + * 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__1564, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2271, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 2271, __pyx_L1_error) + + /* "talib/_stream.pxi":2270 + * 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.pxi":2272 + * 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.pxi":2273 + * 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__1565, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2273, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 2273, __pyx_L1_error) + + /* "talib/_stream.pxi":2272 + * 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.pxi":2274 + * 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.pxi":2275 + * 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.pxi":2276 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CDLGAPSIDESIDEWHITE, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2276, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":2277 + * 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(3, 2277, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":2217 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":2281 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_8c_ta_lib_429stream_CDLGRAVESTONEDOJI(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_428stream_CDLGRAVESTONEDOJI[] = " 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_8c_ta_lib_429stream_CDLGRAVESTONEDOJI = {"stream_CDLGRAVESTONEDOJI", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_429stream_CDLGRAVESTONEDOJI, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_428stream_CDLGRAVESTONEDOJI}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_429stream_CDLGRAVESTONEDOJI(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("stream_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("stream_CDLGRAVESTONEDOJI", 1, 4, 4, 1); __PYX_ERR(3, 2281, __pyx_L3_error) + } + case 2: + if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_CDLGRAVESTONEDOJI", 1, 4, 4, 2); __PYX_ERR(3, 2281, __pyx_L3_error) + } + case 3: + if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_CDLGRAVESTONEDOJI", 1, 4, 4, 3); __PYX_ERR(3, 2281, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "stream_CDLGRAVESTONEDOJI") < 0)) __PYX_ERR(3, 2281, __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("stream_CDLGRAVESTONEDOJI", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 2281, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 2281, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(3, 2281, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(3, 2281, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(3, 2281, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_428stream_CDLGRAVESTONEDOJI(__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_8c_ta_lib_428stream_CDLGRAVESTONEDOJI(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("stream_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.pxi":2303 + * 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.pxi":2304 + * 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__1566, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2304, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 2304, __pyx_L1_error) + + /* "talib/_stream.pxi":2303 + * int outnbelement + * int outinteger + * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("open is not double") + * if open.ndim != 1: + */ + } + + /* "talib/_stream.pxi":2305 + * 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.pxi":2306 + * 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__1567, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2306, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 2306, __pyx_L1_error) + + /* "talib/_stream.pxi":2305 + * 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.pxi":2307 + * 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 = open.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":2308 + * raise Exception("open has wrong dimensions") + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2308, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 2308, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":2307 + * 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 = open.data + */ + } + + /* "talib/_stream.pxi":2309 + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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.pxi":2310 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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.pxi":2311 + * open_data = 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__1568, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2311, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 2311, __pyx_L1_error) + + /* "talib/_stream.pxi":2310 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_stream.pxi":2312 + * 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.pxi":2313 + * raise 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__1569, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2313, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 2313, __pyx_L1_error) + + /* "talib/_stream.pxi":2312 + * 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.pxi":2314 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":2315 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2315, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 2315, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":2314 + * 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 = high.data + */ + } + + /* "talib/_stream.pxi":2316 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":2317 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":2318 + * high_data = 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__1570, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 2318, __pyx_L1_error) + + /* "talib/_stream.pxi":2317 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_stream.pxi":2319 + * 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.pxi":2320 + * raise 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__1571, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 2320, __pyx_L1_error) + + /* "talib/_stream.pxi":2319 + * 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.pxi":2321 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":2322 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 2322, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":2321 + * 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 = low.data + */ + } + + /* "talib/_stream.pxi":2323 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":2324 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":2325 + * low_data = 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__1572, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 2325, __pyx_L1_error) + + /* "talib/_stream.pxi":2324 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_stream.pxi":2326 + * 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.pxi":2327 + * raise 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__1573, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 2327, __pyx_L1_error) + + /* "talib/_stream.pxi":2326 + * 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.pxi":2328 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":2329 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = open.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 2329, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":2328 + * 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 = close.data + */ + } + + /* "talib/_stream.pxi":2330 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = open.shape[0] + * if length != high.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_stream.pxi":2331 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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.pxi":2332 + * close_data = 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.pxi":2333 + * 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__1574, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2333, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 2333, __pyx_L1_error) + + /* "talib/_stream.pxi":2332 + * close_data = close.data + * length = open.shape[0] + * if length != high.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != low.shape[0]: + */ + } + + /* "talib/_stream.pxi":2334 + * 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.pxi":2335 + * 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__1575, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2335, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 2335, __pyx_L1_error) + + /* "talib/_stream.pxi":2334 + * 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.pxi":2336 + * 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.pxi":2337 + * 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__1576, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2337, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 2337, __pyx_L1_error) + + /* "talib/_stream.pxi":2336 + * 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.pxi":2338 + * 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.pxi":2339 + * 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.pxi":2340 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CDLGRAVESTONEDOJI, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2340, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":2341 + * 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(3, 2341, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":2281 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":2345 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_8c_ta_lib_431stream_CDLHAMMER(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_430stream_CDLHAMMER[] = " 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_8c_ta_lib_431stream_CDLHAMMER = {"stream_CDLHAMMER", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_431stream_CDLHAMMER, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_430stream_CDLHAMMER}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_431stream_CDLHAMMER(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("stream_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("stream_CDLHAMMER", 1, 4, 4, 1); __PYX_ERR(3, 2345, __pyx_L3_error) + } + case 2: + if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_CDLHAMMER", 1, 4, 4, 2); __PYX_ERR(3, 2345, __pyx_L3_error) + } + case 3: + if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_CDLHAMMER", 1, 4, 4, 3); __PYX_ERR(3, 2345, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "stream_CDLHAMMER") < 0)) __PYX_ERR(3, 2345, __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("stream_CDLHAMMER", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 2345, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 2345, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(3, 2345, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(3, 2345, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(3, 2345, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_430stream_CDLHAMMER(__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_8c_ta_lib_430stream_CDLHAMMER(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("stream_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.pxi":2367 + * 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.pxi":2368 + * 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__1577, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2368, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 2368, __pyx_L1_error) + + /* "talib/_stream.pxi":2367 + * int outnbelement + * int outinteger + * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("open is not double") + * if open.ndim != 1: + */ + } + + /* "talib/_stream.pxi":2369 + * 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.pxi":2370 + * 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__1578, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2370, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 2370, __pyx_L1_error) + + /* "talib/_stream.pxi":2369 + * 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.pxi":2371 + * 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 = open.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":2372 + * raise Exception("open has wrong dimensions") + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2372, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 2372, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":2371 + * 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 = open.data + */ + } + + /* "talib/_stream.pxi":2373 + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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.pxi":2374 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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.pxi":2375 + * open_data = 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__1579, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2375, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 2375, __pyx_L1_error) + + /* "talib/_stream.pxi":2374 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_stream.pxi":2376 + * 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.pxi":2377 + * raise 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__1580, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2377, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 2377, __pyx_L1_error) + + /* "talib/_stream.pxi":2376 + * 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.pxi":2378 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":2379 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2379, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 2379, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":2378 + * 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 = high.data + */ + } + + /* "talib/_stream.pxi":2380 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":2381 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":2382 + * high_data = 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__1581, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 2382, __pyx_L1_error) + + /* "talib/_stream.pxi":2381 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_stream.pxi":2383 + * 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.pxi":2384 + * raise 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__1582, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 2384, __pyx_L1_error) + + /* "talib/_stream.pxi":2383 + * 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.pxi":2385 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":2386 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 2386, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":2385 + * 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 = low.data + */ + } + + /* "talib/_stream.pxi":2387 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":2388 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":2389 + * low_data = 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__1583, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 2389, __pyx_L1_error) + + /* "talib/_stream.pxi":2388 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_stream.pxi":2390 + * 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.pxi":2391 + * raise 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__1584, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 2391, __pyx_L1_error) + + /* "talib/_stream.pxi":2390 + * 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.pxi":2392 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":2393 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = open.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 2393, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":2392 + * 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 = close.data + */ + } + + /* "talib/_stream.pxi":2394 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = open.shape[0] + * if length != high.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_stream.pxi":2395 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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.pxi":2396 + * close_data = 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.pxi":2397 + * 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__1585, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2397, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 2397, __pyx_L1_error) + + /* "talib/_stream.pxi":2396 + * close_data = close.data + * length = open.shape[0] + * if length != high.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != low.shape[0]: + */ + } + + /* "talib/_stream.pxi":2398 + * 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.pxi":2399 + * 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__1586, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2399, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 2399, __pyx_L1_error) + + /* "talib/_stream.pxi":2398 + * 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.pxi":2400 + * 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.pxi":2401 + * 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__1587, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2401, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 2401, __pyx_L1_error) + + /* "talib/_stream.pxi":2400 + * 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.pxi":2402 + * 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.pxi":2403 + * 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.pxi":2404 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CDLHAMMER, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2404, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":2405 + * 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(3, 2405, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":2345 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":2409 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_8c_ta_lib_433stream_CDLHANGINGMAN(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_432stream_CDLHANGINGMAN[] = " 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_8c_ta_lib_433stream_CDLHANGINGMAN = {"stream_CDLHANGINGMAN", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_433stream_CDLHANGINGMAN, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_432stream_CDLHANGINGMAN}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_433stream_CDLHANGINGMAN(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("stream_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("stream_CDLHANGINGMAN", 1, 4, 4, 1); __PYX_ERR(3, 2409, __pyx_L3_error) + } + case 2: + if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_CDLHANGINGMAN", 1, 4, 4, 2); __PYX_ERR(3, 2409, __pyx_L3_error) + } + case 3: + if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_CDLHANGINGMAN", 1, 4, 4, 3); __PYX_ERR(3, 2409, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "stream_CDLHANGINGMAN") < 0)) __PYX_ERR(3, 2409, __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("stream_CDLHANGINGMAN", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 2409, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 2409, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(3, 2409, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(3, 2409, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(3, 2409, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_432stream_CDLHANGINGMAN(__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_8c_ta_lib_432stream_CDLHANGINGMAN(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("stream_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.pxi":2431 + * 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.pxi":2432 + * 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__1588, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2432, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 2432, __pyx_L1_error) + + /* "talib/_stream.pxi":2431 + * int outnbelement + * int outinteger + * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("open is not double") + * if open.ndim != 1: + */ + } + + /* "talib/_stream.pxi":2433 + * 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.pxi":2434 + * 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__1589, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2434, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 2434, __pyx_L1_error) + + /* "talib/_stream.pxi":2433 + * 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.pxi":2435 + * 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 = open.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":2436 + * raise Exception("open has wrong dimensions") + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2436, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 2436, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":2435 + * 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 = open.data + */ + } + + /* "talib/_stream.pxi":2437 + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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.pxi":2438 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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.pxi":2439 + * open_data = 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__1590, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2439, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 2439, __pyx_L1_error) + + /* "talib/_stream.pxi":2438 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_stream.pxi":2440 + * 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.pxi":2441 + * raise 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__1591, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2441, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 2441, __pyx_L1_error) + + /* "talib/_stream.pxi":2440 + * 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.pxi":2442 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":2443 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2443, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 2443, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":2442 + * 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 = high.data + */ + } + + /* "talib/_stream.pxi":2444 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":2445 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":2446 + * high_data = 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__1592, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 2446, __pyx_L1_error) + + /* "talib/_stream.pxi":2445 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_stream.pxi":2447 + * 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.pxi":2448 + * raise 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__1593, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 2448, __pyx_L1_error) + + /* "talib/_stream.pxi":2447 + * 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.pxi":2449 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":2450 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 2450, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":2449 + * 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 = low.data + */ + } + + /* "talib/_stream.pxi":2451 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":2452 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":2453 + * low_data = 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__1594, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 2453, __pyx_L1_error) + + /* "talib/_stream.pxi":2452 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_stream.pxi":2454 + * 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.pxi":2455 + * raise 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__1595, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 2455, __pyx_L1_error) + + /* "talib/_stream.pxi":2454 + * 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.pxi":2456 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":2457 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = open.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 2457, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":2456 + * 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 = close.data + */ + } + + /* "talib/_stream.pxi":2458 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = open.shape[0] + * if length != high.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_stream.pxi":2459 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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.pxi":2460 + * close_data = 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.pxi":2461 + * 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__1596, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2461, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 2461, __pyx_L1_error) + + /* "talib/_stream.pxi":2460 + * close_data = close.data + * length = open.shape[0] + * if length != high.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != low.shape[0]: + */ + } + + /* "talib/_stream.pxi":2462 + * 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.pxi":2463 + * 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__1597, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2463, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 2463, __pyx_L1_error) + + /* "talib/_stream.pxi":2462 + * 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.pxi":2464 + * 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.pxi":2465 + * 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__1598, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2465, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 2465, __pyx_L1_error) + + /* "talib/_stream.pxi":2464 + * 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.pxi":2466 + * 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.pxi":2467 + * 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.pxi":2468 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CDLHANGINGMAN, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2468, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":2469 + * 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(3, 2469, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":2409 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":2473 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_8c_ta_lib_435stream_CDLHARAMI(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_434stream_CDLHARAMI[] = " 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_8c_ta_lib_435stream_CDLHARAMI = {"stream_CDLHARAMI", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_435stream_CDLHARAMI, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_434stream_CDLHARAMI}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_435stream_CDLHARAMI(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("stream_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("stream_CDLHARAMI", 1, 4, 4, 1); __PYX_ERR(3, 2473, __pyx_L3_error) + } + case 2: + if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_CDLHARAMI", 1, 4, 4, 2); __PYX_ERR(3, 2473, __pyx_L3_error) + } + case 3: + if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_CDLHARAMI", 1, 4, 4, 3); __PYX_ERR(3, 2473, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "stream_CDLHARAMI") < 0)) __PYX_ERR(3, 2473, __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("stream_CDLHARAMI", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 2473, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 2473, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(3, 2473, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(3, 2473, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(3, 2473, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_434stream_CDLHARAMI(__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_8c_ta_lib_434stream_CDLHARAMI(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("stream_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.pxi":2495 + * 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.pxi":2496 + * 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__1599, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2496, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 2496, __pyx_L1_error) + + /* "talib/_stream.pxi":2495 + * int outnbelement + * int outinteger + * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("open is not double") + * if open.ndim != 1: + */ + } + + /* "talib/_stream.pxi":2497 + * 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.pxi":2498 + * 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__1600, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2498, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 2498, __pyx_L1_error) + + /* "talib/_stream.pxi":2497 + * 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.pxi":2499 + * 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 = open.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":2500 + * raise Exception("open has wrong dimensions") + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2500, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 2500, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":2499 + * 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 = open.data + */ + } + + /* "talib/_stream.pxi":2501 + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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.pxi":2502 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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.pxi":2503 + * open_data = 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__1601, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2503, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 2503, __pyx_L1_error) + + /* "talib/_stream.pxi":2502 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_stream.pxi":2504 + * 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.pxi":2505 + * raise 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__1602, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2505, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 2505, __pyx_L1_error) + + /* "talib/_stream.pxi":2504 + * 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.pxi":2506 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":2507 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2507, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 2507, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":2506 + * 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 = high.data + */ + } + + /* "talib/_stream.pxi":2508 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":2509 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":2510 + * high_data = 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__1603, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 2510, __pyx_L1_error) + + /* "talib/_stream.pxi":2509 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_stream.pxi":2511 + * 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.pxi":2512 + * raise 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__1604, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 2512, __pyx_L1_error) + + /* "talib/_stream.pxi":2511 + * 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.pxi":2513 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":2514 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 2514, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":2513 + * 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 = low.data + */ + } + + /* "talib/_stream.pxi":2515 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":2516 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":2517 + * low_data = 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__1605, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 2517, __pyx_L1_error) + + /* "talib/_stream.pxi":2516 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_stream.pxi":2518 + * 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.pxi":2519 + * raise 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__1606, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 2519, __pyx_L1_error) + + /* "talib/_stream.pxi":2518 + * 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.pxi":2520 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":2521 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = open.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 2521, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":2520 + * 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 = close.data + */ + } + + /* "talib/_stream.pxi":2522 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = open.shape[0] + * if length != high.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_stream.pxi":2523 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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.pxi":2524 + * close_data = 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.pxi":2525 + * 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__1607, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2525, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 2525, __pyx_L1_error) + + /* "talib/_stream.pxi":2524 + * close_data = close.data + * length = open.shape[0] + * if length != high.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != low.shape[0]: + */ + } + + /* "talib/_stream.pxi":2526 + * 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.pxi":2527 + * 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__1608, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2527, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 2527, __pyx_L1_error) + + /* "talib/_stream.pxi":2526 + * 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.pxi":2528 + * 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.pxi":2529 + * 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__1609, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2529, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 2529, __pyx_L1_error) + + /* "talib/_stream.pxi":2528 + * 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.pxi":2530 + * 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.pxi":2531 + * 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.pxi":2532 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CDLHARAMI, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2532, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":2533 + * 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(3, 2533, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":2473 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":2537 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_8c_ta_lib_437stream_CDLHARAMICROSS(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_436stream_CDLHARAMICROSS[] = " 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_8c_ta_lib_437stream_CDLHARAMICROSS = {"stream_CDLHARAMICROSS", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_437stream_CDLHARAMICROSS, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_436stream_CDLHARAMICROSS}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_437stream_CDLHARAMICROSS(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("stream_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("stream_CDLHARAMICROSS", 1, 4, 4, 1); __PYX_ERR(3, 2537, __pyx_L3_error) + } + case 2: + if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_CDLHARAMICROSS", 1, 4, 4, 2); __PYX_ERR(3, 2537, __pyx_L3_error) + } + case 3: + if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_CDLHARAMICROSS", 1, 4, 4, 3); __PYX_ERR(3, 2537, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "stream_CDLHARAMICROSS") < 0)) __PYX_ERR(3, 2537, __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("stream_CDLHARAMICROSS", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 2537, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 2537, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(3, 2537, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(3, 2537, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(3, 2537, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_436stream_CDLHARAMICROSS(__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_8c_ta_lib_436stream_CDLHARAMICROSS(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("stream_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.pxi":2559 + * 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.pxi":2560 + * 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__1610, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2560, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 2560, __pyx_L1_error) + + /* "talib/_stream.pxi":2559 + * int outnbelement + * int outinteger + * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("open is not double") + * if open.ndim != 1: + */ + } + + /* "talib/_stream.pxi":2561 + * 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.pxi":2562 + * 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__1611, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2562, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 2562, __pyx_L1_error) + + /* "talib/_stream.pxi":2561 + * 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.pxi":2563 + * 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 = open.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":2564 + * raise Exception("open has wrong dimensions") + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2564, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 2564, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":2563 + * 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 = open.data + */ + } + + /* "talib/_stream.pxi":2565 + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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.pxi":2566 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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.pxi":2567 + * open_data = 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__1612, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2567, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 2567, __pyx_L1_error) + + /* "talib/_stream.pxi":2566 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_stream.pxi":2568 + * 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.pxi":2569 + * raise 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__1613, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2569, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 2569, __pyx_L1_error) + + /* "talib/_stream.pxi":2568 + * 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.pxi":2570 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":2571 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2571, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 2571, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":2570 + * 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 = high.data + */ + } + + /* "talib/_stream.pxi":2572 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":2573 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":2574 + * high_data = 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__1614, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 2574, __pyx_L1_error) + + /* "talib/_stream.pxi":2573 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_stream.pxi":2575 + * 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.pxi":2576 + * raise 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__1615, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 2576, __pyx_L1_error) + + /* "talib/_stream.pxi":2575 + * 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.pxi":2577 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":2578 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 2578, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":2577 + * 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 = low.data + */ + } + + /* "talib/_stream.pxi":2579 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":2580 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":2581 + * low_data = 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__1616, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 2581, __pyx_L1_error) + + /* "talib/_stream.pxi":2580 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_stream.pxi":2582 + * 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.pxi":2583 + * raise 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__1617, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 2583, __pyx_L1_error) + + /* "talib/_stream.pxi":2582 + * 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.pxi":2584 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":2585 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = open.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 2585, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":2584 + * 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 = close.data + */ + } + + /* "talib/_stream.pxi":2586 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = open.shape[0] + * if length != high.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_stream.pxi":2587 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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.pxi":2588 + * close_data = 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.pxi":2589 + * 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__1618, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2589, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 2589, __pyx_L1_error) + + /* "talib/_stream.pxi":2588 + * close_data = close.data + * length = open.shape[0] + * if length != high.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != low.shape[0]: + */ + } + + /* "talib/_stream.pxi":2590 + * 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.pxi":2591 + * 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__1619, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2591, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 2591, __pyx_L1_error) + + /* "talib/_stream.pxi":2590 + * 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.pxi":2592 + * 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.pxi":2593 + * 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__1620, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2593, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 2593, __pyx_L1_error) + + /* "talib/_stream.pxi":2592 + * 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.pxi":2594 + * 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.pxi":2595 + * 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.pxi":2596 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CDLHARAMICROSS, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2596, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":2597 + * 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(3, 2597, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":2537 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":2601 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_8c_ta_lib_439stream_CDLHIGHWAVE(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_438stream_CDLHIGHWAVE[] = " 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_8c_ta_lib_439stream_CDLHIGHWAVE = {"stream_CDLHIGHWAVE", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_439stream_CDLHIGHWAVE, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_438stream_CDLHIGHWAVE}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_439stream_CDLHIGHWAVE(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("stream_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("stream_CDLHIGHWAVE", 1, 4, 4, 1); __PYX_ERR(3, 2601, __pyx_L3_error) + } + case 2: + if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_CDLHIGHWAVE", 1, 4, 4, 2); __PYX_ERR(3, 2601, __pyx_L3_error) + } + case 3: + if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_CDLHIGHWAVE", 1, 4, 4, 3); __PYX_ERR(3, 2601, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "stream_CDLHIGHWAVE") < 0)) __PYX_ERR(3, 2601, __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("stream_CDLHIGHWAVE", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 2601, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 2601, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(3, 2601, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(3, 2601, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(3, 2601, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_438stream_CDLHIGHWAVE(__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_8c_ta_lib_438stream_CDLHIGHWAVE(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("stream_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.pxi":2623 + * 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.pxi":2624 + * 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__1621, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2624, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 2624, __pyx_L1_error) + + /* "talib/_stream.pxi":2623 + * int outnbelement + * int outinteger + * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("open is not double") + * if open.ndim != 1: + */ + } + + /* "talib/_stream.pxi":2625 + * 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.pxi":2626 + * 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__1622, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2626, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 2626, __pyx_L1_error) + + /* "talib/_stream.pxi":2625 + * 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.pxi":2627 + * 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 = open.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":2628 + * raise Exception("open has wrong dimensions") + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2628, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 2628, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":2627 + * 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 = open.data + */ + } + + /* "talib/_stream.pxi":2629 + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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.pxi":2630 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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.pxi":2631 + * open_data = 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__1623, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2631, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 2631, __pyx_L1_error) + + /* "talib/_stream.pxi":2630 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_stream.pxi":2632 + * 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.pxi":2633 + * raise 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__1624, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2633, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 2633, __pyx_L1_error) + + /* "talib/_stream.pxi":2632 + * 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.pxi":2634 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":2635 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2635, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 2635, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":2634 + * 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 = high.data + */ + } + + /* "talib/_stream.pxi":2636 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":2637 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":2638 + * high_data = 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__1625, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 2638, __pyx_L1_error) + + /* "talib/_stream.pxi":2637 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_stream.pxi":2639 + * 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.pxi":2640 + * raise 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__1626, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 2640, __pyx_L1_error) + + /* "talib/_stream.pxi":2639 + * 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.pxi":2641 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":2642 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 2642, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":2641 + * 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 = low.data + */ + } + + /* "talib/_stream.pxi":2643 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":2644 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":2645 + * low_data = 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__1627, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 2645, __pyx_L1_error) + + /* "talib/_stream.pxi":2644 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_stream.pxi":2646 + * 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.pxi":2647 + * raise 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__1628, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 2647, __pyx_L1_error) + + /* "talib/_stream.pxi":2646 + * 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.pxi":2648 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":2649 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = open.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 2649, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":2648 + * 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 = close.data + */ + } + + /* "talib/_stream.pxi":2650 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = open.shape[0] + * if length != high.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_stream.pxi":2651 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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.pxi":2652 + * close_data = 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.pxi":2653 + * 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__1629, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2653, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 2653, __pyx_L1_error) + + /* "talib/_stream.pxi":2652 + * close_data = close.data + * length = open.shape[0] + * if length != high.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != low.shape[0]: + */ + } + + /* "talib/_stream.pxi":2654 + * 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.pxi":2655 + * 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__1630, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2655, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 2655, __pyx_L1_error) + + /* "talib/_stream.pxi":2654 + * 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.pxi":2656 + * 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.pxi":2657 + * 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__1631, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2657, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 2657, __pyx_L1_error) + + /* "talib/_stream.pxi":2656 + * 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.pxi":2658 + * 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.pxi":2659 + * 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.pxi":2660 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CDLHIGHWAVE, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2660, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":2661 + * 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(3, 2661, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":2601 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":2665 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_8c_ta_lib_441stream_CDLHIKKAKE(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_440stream_CDLHIKKAKE[] = " 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_8c_ta_lib_441stream_CDLHIKKAKE = {"stream_CDLHIKKAKE", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_441stream_CDLHIKKAKE, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_440stream_CDLHIKKAKE}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_441stream_CDLHIKKAKE(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("stream_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("stream_CDLHIKKAKE", 1, 4, 4, 1); __PYX_ERR(3, 2665, __pyx_L3_error) + } + case 2: + if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_CDLHIKKAKE", 1, 4, 4, 2); __PYX_ERR(3, 2665, __pyx_L3_error) + } + case 3: + if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_CDLHIKKAKE", 1, 4, 4, 3); __PYX_ERR(3, 2665, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "stream_CDLHIKKAKE") < 0)) __PYX_ERR(3, 2665, __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("stream_CDLHIKKAKE", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 2665, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 2665, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(3, 2665, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(3, 2665, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(3, 2665, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_440stream_CDLHIKKAKE(__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_8c_ta_lib_440stream_CDLHIKKAKE(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("stream_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.pxi":2687 + * 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.pxi":2688 + * 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__1632, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2688, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 2688, __pyx_L1_error) + + /* "talib/_stream.pxi":2687 + * int outnbelement + * int outinteger + * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("open is not double") + * if open.ndim != 1: + */ + } + + /* "talib/_stream.pxi":2689 + * 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.pxi":2690 + * 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__1633, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2690, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 2690, __pyx_L1_error) + + /* "talib/_stream.pxi":2689 + * 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.pxi":2691 + * 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 = open.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":2692 + * raise Exception("open has wrong dimensions") + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2692, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 2692, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":2691 + * 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 = open.data + */ + } + + /* "talib/_stream.pxi":2693 + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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.pxi":2694 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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.pxi":2695 + * open_data = 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__1634, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2695, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 2695, __pyx_L1_error) + + /* "talib/_stream.pxi":2694 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_stream.pxi":2696 + * 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.pxi":2697 + * raise 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__1635, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2697, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 2697, __pyx_L1_error) + + /* "talib/_stream.pxi":2696 + * 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.pxi":2698 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":2699 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2699, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 2699, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":2698 + * 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 = high.data + */ + } + + /* "talib/_stream.pxi":2700 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":2701 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":2702 + * high_data = 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__1636, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 2702, __pyx_L1_error) + + /* "talib/_stream.pxi":2701 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_stream.pxi":2703 + * 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.pxi":2704 + * raise 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__1637, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 2704, __pyx_L1_error) + + /* "talib/_stream.pxi":2703 + * 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.pxi":2705 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":2706 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 2706, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":2705 + * 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 = low.data + */ + } + + /* "talib/_stream.pxi":2707 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":2708 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":2709 + * low_data = 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__1638, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 2709, __pyx_L1_error) + + /* "talib/_stream.pxi":2708 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_stream.pxi":2710 + * 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.pxi":2711 + * raise 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__1639, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 2711, __pyx_L1_error) + + /* "talib/_stream.pxi":2710 + * 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.pxi":2712 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":2713 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = open.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 2713, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":2712 + * 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 = close.data + */ + } + + /* "talib/_stream.pxi":2714 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = open.shape[0] + * if length != high.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_stream.pxi":2715 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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.pxi":2716 + * close_data = 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.pxi":2717 + * 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__1640, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2717, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 2717, __pyx_L1_error) + + /* "talib/_stream.pxi":2716 + * close_data = close.data + * length = open.shape[0] + * if length != high.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != low.shape[0]: + */ + } + + /* "talib/_stream.pxi":2718 + * 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.pxi":2719 + * 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__1641, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2719, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 2719, __pyx_L1_error) + + /* "talib/_stream.pxi":2718 + * 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.pxi":2720 + * 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.pxi":2721 + * 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__1642, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2721, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 2721, __pyx_L1_error) + + /* "talib/_stream.pxi":2720 + * 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.pxi":2722 + * 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.pxi":2723 + * 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.pxi":2724 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CDLHIKKAKE, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2724, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":2725 + * 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(3, 2725, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":2665 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":2729 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_8c_ta_lib_443stream_CDLHIKKAKEMOD(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_442stream_CDLHIKKAKEMOD[] = " 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_8c_ta_lib_443stream_CDLHIKKAKEMOD = {"stream_CDLHIKKAKEMOD", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_443stream_CDLHIKKAKEMOD, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_442stream_CDLHIKKAKEMOD}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_443stream_CDLHIKKAKEMOD(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("stream_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("stream_CDLHIKKAKEMOD", 1, 4, 4, 1); __PYX_ERR(3, 2729, __pyx_L3_error) + } + case 2: + if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_CDLHIKKAKEMOD", 1, 4, 4, 2); __PYX_ERR(3, 2729, __pyx_L3_error) + } + case 3: + if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_CDLHIKKAKEMOD", 1, 4, 4, 3); __PYX_ERR(3, 2729, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "stream_CDLHIKKAKEMOD") < 0)) __PYX_ERR(3, 2729, __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("stream_CDLHIKKAKEMOD", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 2729, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 2729, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(3, 2729, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(3, 2729, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(3, 2729, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_442stream_CDLHIKKAKEMOD(__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_8c_ta_lib_442stream_CDLHIKKAKEMOD(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("stream_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.pxi":2751 + * 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.pxi":2752 + * 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__1643, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2752, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 2752, __pyx_L1_error) + + /* "talib/_stream.pxi":2751 + * int outnbelement + * int outinteger + * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("open is not double") + * if open.ndim != 1: + */ + } + + /* "talib/_stream.pxi":2753 + * 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.pxi":2754 + * 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__1644, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2754, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 2754, __pyx_L1_error) + + /* "talib/_stream.pxi":2753 + * 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.pxi":2755 + * 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 = open.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":2756 + * raise Exception("open has wrong dimensions") + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2756, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 2756, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":2755 + * 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 = open.data + */ + } + + /* "talib/_stream.pxi":2757 + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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.pxi":2758 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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.pxi":2759 + * open_data = 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__1645, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2759, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 2759, __pyx_L1_error) + + /* "talib/_stream.pxi":2758 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_stream.pxi":2760 + * 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.pxi":2761 + * raise 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__1646, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2761, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 2761, __pyx_L1_error) + + /* "talib/_stream.pxi":2760 + * 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.pxi":2762 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":2763 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2763, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 2763, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":2762 + * 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 = high.data + */ + } + + /* "talib/_stream.pxi":2764 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":2765 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":2766 + * high_data = 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__1647, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 2766, __pyx_L1_error) + + /* "talib/_stream.pxi":2765 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_stream.pxi":2767 + * 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.pxi":2768 + * raise 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__1648, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 2768, __pyx_L1_error) + + /* "talib/_stream.pxi":2767 + * 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.pxi":2769 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":2770 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 2770, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":2769 + * 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 = low.data + */ + } + + /* "talib/_stream.pxi":2771 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":2772 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":2773 + * low_data = 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__1649, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 2773, __pyx_L1_error) + + /* "talib/_stream.pxi":2772 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_stream.pxi":2774 + * 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.pxi":2775 + * raise 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__1650, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 2775, __pyx_L1_error) + + /* "talib/_stream.pxi":2774 + * 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.pxi":2776 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":2777 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = open.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 2777, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":2776 + * 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 = close.data + */ + } + + /* "talib/_stream.pxi":2778 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = open.shape[0] + * if length != high.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_stream.pxi":2779 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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.pxi":2780 + * close_data = 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.pxi":2781 + * 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__1651, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2781, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 2781, __pyx_L1_error) + + /* "talib/_stream.pxi":2780 + * close_data = close.data + * length = open.shape[0] + * if length != high.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != low.shape[0]: + */ + } + + /* "talib/_stream.pxi":2782 + * 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.pxi":2783 + * 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__1652, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2783, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 2783, __pyx_L1_error) + + /* "talib/_stream.pxi":2782 + * 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.pxi":2784 + * 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.pxi":2785 + * 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__1653, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2785, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 2785, __pyx_L1_error) + + /* "talib/_stream.pxi":2784 + * 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.pxi":2786 + * 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.pxi":2787 + * 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.pxi":2788 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CDLHIKKAKEMOD, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2788, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":2789 + * 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(3, 2789, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":2729 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":2793 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_8c_ta_lib_445stream_CDLHOMINGPIGEON(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_444stream_CDLHOMINGPIGEON[] = " 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_8c_ta_lib_445stream_CDLHOMINGPIGEON = {"stream_CDLHOMINGPIGEON", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_445stream_CDLHOMINGPIGEON, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_444stream_CDLHOMINGPIGEON}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_445stream_CDLHOMINGPIGEON(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("stream_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("stream_CDLHOMINGPIGEON", 1, 4, 4, 1); __PYX_ERR(3, 2793, __pyx_L3_error) + } + case 2: + if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_CDLHOMINGPIGEON", 1, 4, 4, 2); __PYX_ERR(3, 2793, __pyx_L3_error) + } + case 3: + if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_CDLHOMINGPIGEON", 1, 4, 4, 3); __PYX_ERR(3, 2793, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "stream_CDLHOMINGPIGEON") < 0)) __PYX_ERR(3, 2793, __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("stream_CDLHOMINGPIGEON", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 2793, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 2793, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(3, 2793, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(3, 2793, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(3, 2793, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_444stream_CDLHOMINGPIGEON(__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_8c_ta_lib_444stream_CDLHOMINGPIGEON(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("stream_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.pxi":2815 + * 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.pxi":2816 + * 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__1654, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2816, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 2816, __pyx_L1_error) + + /* "talib/_stream.pxi":2815 + * int outnbelement + * int outinteger + * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("open is not double") + * if open.ndim != 1: + */ + } + + /* "talib/_stream.pxi":2817 + * 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.pxi":2818 + * 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__1655, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2818, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 2818, __pyx_L1_error) + + /* "talib/_stream.pxi":2817 + * 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.pxi":2819 + * 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 = open.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":2820 + * raise Exception("open has wrong dimensions") + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2820, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 2820, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":2819 + * 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 = open.data + */ + } + + /* "talib/_stream.pxi":2821 + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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.pxi":2822 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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.pxi":2823 + * open_data = 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__1656, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2823, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 2823, __pyx_L1_error) + + /* "talib/_stream.pxi":2822 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_stream.pxi":2824 + * 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.pxi":2825 + * raise 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__1657, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2825, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 2825, __pyx_L1_error) + + /* "talib/_stream.pxi":2824 + * 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.pxi":2826 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":2827 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2827, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 2827, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":2826 + * 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 = high.data + */ + } + + /* "talib/_stream.pxi":2828 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":2829 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":2830 + * high_data = 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__1658, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 2830, __pyx_L1_error) + + /* "talib/_stream.pxi":2829 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_stream.pxi":2831 + * 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.pxi":2832 + * raise 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__1659, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 2832, __pyx_L1_error) + + /* "talib/_stream.pxi":2831 + * 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.pxi":2833 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":2834 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 2834, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":2833 + * 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 = low.data + */ + } + + /* "talib/_stream.pxi":2835 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":2836 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":2837 + * low_data = 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__1660, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 2837, __pyx_L1_error) + + /* "talib/_stream.pxi":2836 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_stream.pxi":2838 + * 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.pxi":2839 + * raise 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__1661, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 2839, __pyx_L1_error) + + /* "talib/_stream.pxi":2838 + * 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.pxi":2840 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":2841 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = open.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 2841, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":2840 + * 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 = close.data + */ + } + + /* "talib/_stream.pxi":2842 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = open.shape[0] + * if length != high.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_stream.pxi":2843 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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.pxi":2844 + * close_data = 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.pxi":2845 + * 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__1662, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2845, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 2845, __pyx_L1_error) + + /* "talib/_stream.pxi":2844 + * close_data = close.data + * length = open.shape[0] + * if length != high.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != low.shape[0]: + */ + } + + /* "talib/_stream.pxi":2846 + * 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.pxi":2847 + * 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__1663, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2847, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 2847, __pyx_L1_error) + + /* "talib/_stream.pxi":2846 + * 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.pxi":2848 + * 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.pxi":2849 + * 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__1664, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2849, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 2849, __pyx_L1_error) + + /* "talib/_stream.pxi":2848 + * 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.pxi":2850 + * 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.pxi":2851 + * 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.pxi":2852 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CDLHOMINGPIGEON, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2852, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":2853 + * 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(3, 2853, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":2793 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":2857 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_8c_ta_lib_447stream_CDLIDENTICAL3CROWS(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_446stream_CDLIDENTICAL3CROWS[] = " 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_8c_ta_lib_447stream_CDLIDENTICAL3CROWS = {"stream_CDLIDENTICAL3CROWS", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_447stream_CDLIDENTICAL3CROWS, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_446stream_CDLIDENTICAL3CROWS}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_447stream_CDLIDENTICAL3CROWS(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("stream_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("stream_CDLIDENTICAL3CROWS", 1, 4, 4, 1); __PYX_ERR(3, 2857, __pyx_L3_error) + } + case 2: + if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_CDLIDENTICAL3CROWS", 1, 4, 4, 2); __PYX_ERR(3, 2857, __pyx_L3_error) + } + case 3: + if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_CDLIDENTICAL3CROWS", 1, 4, 4, 3); __PYX_ERR(3, 2857, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "stream_CDLIDENTICAL3CROWS") < 0)) __PYX_ERR(3, 2857, __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("stream_CDLIDENTICAL3CROWS", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 2857, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 2857, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(3, 2857, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(3, 2857, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(3, 2857, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_446stream_CDLIDENTICAL3CROWS(__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_8c_ta_lib_446stream_CDLIDENTICAL3CROWS(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("stream_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.pxi":2879 + * 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.pxi":2880 + * 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__1665, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2880, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 2880, __pyx_L1_error) + + /* "talib/_stream.pxi":2879 + * int outnbelement + * int outinteger + * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("open is not double") + * if open.ndim != 1: + */ + } + + /* "talib/_stream.pxi":2881 + * 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.pxi":2882 + * 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__1666, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2882, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 2882, __pyx_L1_error) + + /* "talib/_stream.pxi":2881 + * 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.pxi":2883 + * 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 = open.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":2884 + * raise Exception("open has wrong dimensions") + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2884, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 2884, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":2883 + * 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 = open.data + */ + } + + /* "talib/_stream.pxi":2885 + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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.pxi":2886 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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.pxi":2887 + * open_data = 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__1667, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2887, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 2887, __pyx_L1_error) + + /* "talib/_stream.pxi":2886 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_stream.pxi":2888 + * 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.pxi":2889 + * raise 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__1668, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2889, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 2889, __pyx_L1_error) + + /* "talib/_stream.pxi":2888 + * 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.pxi":2890 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":2891 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2891, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 2891, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":2890 + * 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 = high.data + */ + } + + /* "talib/_stream.pxi":2892 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":2893 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":2894 + * high_data = 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__1669, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 2894, __pyx_L1_error) + + /* "talib/_stream.pxi":2893 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_stream.pxi":2895 + * 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.pxi":2896 + * raise 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__1670, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 2896, __pyx_L1_error) + + /* "talib/_stream.pxi":2895 + * 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.pxi":2897 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":2898 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 2898, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":2897 + * 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 = low.data + */ + } + + /* "talib/_stream.pxi":2899 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":2900 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":2901 + * low_data = 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__1671, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 2901, __pyx_L1_error) + + /* "talib/_stream.pxi":2900 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_stream.pxi":2902 + * 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.pxi":2903 + * raise 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__1672, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 2903, __pyx_L1_error) + + /* "talib/_stream.pxi":2902 + * 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.pxi":2904 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":2905 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = open.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 2905, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":2904 + * 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 = close.data + */ + } + + /* "talib/_stream.pxi":2906 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = open.shape[0] + * if length != high.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_stream.pxi":2907 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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.pxi":2908 + * close_data = 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.pxi":2909 + * 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__1673, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2909, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 2909, __pyx_L1_error) + + /* "talib/_stream.pxi":2908 + * close_data = close.data + * length = open.shape[0] + * if length != high.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != low.shape[0]: + */ + } + + /* "talib/_stream.pxi":2910 + * 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.pxi":2911 + * 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__1674, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2911, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 2911, __pyx_L1_error) + + /* "talib/_stream.pxi":2910 + * 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.pxi":2912 + * 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.pxi":2913 + * 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__1675, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2913, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 2913, __pyx_L1_error) + + /* "talib/_stream.pxi":2912 + * 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.pxi":2914 + * 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.pxi":2915 + * 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.pxi":2916 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CDLIDENTICAL3CROWS, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2916, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":2917 + * 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(3, 2917, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":2857 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":2921 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_8c_ta_lib_449stream_CDLINNECK(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_448stream_CDLINNECK[] = " 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_8c_ta_lib_449stream_CDLINNECK = {"stream_CDLINNECK", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_449stream_CDLINNECK, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_448stream_CDLINNECK}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_449stream_CDLINNECK(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("stream_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("stream_CDLINNECK", 1, 4, 4, 1); __PYX_ERR(3, 2921, __pyx_L3_error) + } + case 2: + if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_CDLINNECK", 1, 4, 4, 2); __PYX_ERR(3, 2921, __pyx_L3_error) + } + case 3: + if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_CDLINNECK", 1, 4, 4, 3); __PYX_ERR(3, 2921, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "stream_CDLINNECK") < 0)) __PYX_ERR(3, 2921, __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("stream_CDLINNECK", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 2921, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 2921, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(3, 2921, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(3, 2921, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(3, 2921, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_448stream_CDLINNECK(__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_8c_ta_lib_448stream_CDLINNECK(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("stream_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.pxi":2943 + * 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.pxi":2944 + * 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__1676, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2944, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 2944, __pyx_L1_error) + + /* "talib/_stream.pxi":2943 + * int outnbelement + * int outinteger + * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("open is not double") + * if open.ndim != 1: + */ + } + + /* "talib/_stream.pxi":2945 + * 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.pxi":2946 + * 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__1677, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2946, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 2946, __pyx_L1_error) + + /* "talib/_stream.pxi":2945 + * 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.pxi":2947 + * 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 = open.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":2948 + * raise Exception("open has wrong dimensions") + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2948, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 2948, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":2947 + * 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 = open.data + */ + } + + /* "talib/_stream.pxi":2949 + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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.pxi":2950 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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.pxi":2951 + * open_data = 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__1678, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2951, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 2951, __pyx_L1_error) + + /* "talib/_stream.pxi":2950 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_stream.pxi":2952 + * 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.pxi":2953 + * raise 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__1679, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2953, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 2953, __pyx_L1_error) + + /* "talib/_stream.pxi":2952 + * 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.pxi":2954 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":2955 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2955, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 2955, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":2954 + * 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 = high.data + */ + } + + /* "talib/_stream.pxi":2956 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":2957 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":2958 + * high_data = 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__1680, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 2958, __pyx_L1_error) + + /* "talib/_stream.pxi":2957 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_stream.pxi":2959 + * 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.pxi":2960 + * raise 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__1681, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 2960, __pyx_L1_error) + + /* "talib/_stream.pxi":2959 + * 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.pxi":2961 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":2962 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 2962, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":2961 + * 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 = low.data + */ + } + + /* "talib/_stream.pxi":2963 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":2964 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":2965 + * low_data = 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__1682, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 2965, __pyx_L1_error) + + /* "talib/_stream.pxi":2964 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_stream.pxi":2966 + * 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.pxi":2967 + * raise 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__1683, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 2967, __pyx_L1_error) + + /* "talib/_stream.pxi":2966 + * 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.pxi":2968 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":2969 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = open.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 2969, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":2968 + * 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 = close.data + */ + } + + /* "talib/_stream.pxi":2970 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = open.shape[0] + * if length != high.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_stream.pxi":2971 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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.pxi":2972 + * close_data = 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.pxi":2973 + * 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__1684, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2973, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 2973, __pyx_L1_error) + + /* "talib/_stream.pxi":2972 + * close_data = close.data + * length = open.shape[0] + * if length != high.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != low.shape[0]: + */ + } + + /* "talib/_stream.pxi":2974 + * 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.pxi":2975 + * 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__1685, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2975, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 2975, __pyx_L1_error) + + /* "talib/_stream.pxi":2974 + * 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.pxi":2976 + * 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.pxi":2977 + * 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__1686, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2977, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 2977, __pyx_L1_error) + + /* "talib/_stream.pxi":2976 + * 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.pxi":2978 + * 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.pxi":2979 + * 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.pxi":2980 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CDLINNECK, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 2980, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":2981 + * 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(3, 2981, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":2921 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":2985 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_8c_ta_lib_451stream_CDLINVERTEDHAMMER(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_450stream_CDLINVERTEDHAMMER[] = " 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_8c_ta_lib_451stream_CDLINVERTEDHAMMER = {"stream_CDLINVERTEDHAMMER", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_451stream_CDLINVERTEDHAMMER, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_450stream_CDLINVERTEDHAMMER}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_451stream_CDLINVERTEDHAMMER(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("stream_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("stream_CDLINVERTEDHAMMER", 1, 4, 4, 1); __PYX_ERR(3, 2985, __pyx_L3_error) + } + case 2: + if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_CDLINVERTEDHAMMER", 1, 4, 4, 2); __PYX_ERR(3, 2985, __pyx_L3_error) + } + case 3: + if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_CDLINVERTEDHAMMER", 1, 4, 4, 3); __PYX_ERR(3, 2985, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "stream_CDLINVERTEDHAMMER") < 0)) __PYX_ERR(3, 2985, __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("stream_CDLINVERTEDHAMMER", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 2985, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 2985, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(3, 2985, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(3, 2985, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(3, 2985, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_450stream_CDLINVERTEDHAMMER(__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_8c_ta_lib_450stream_CDLINVERTEDHAMMER(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("stream_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.pxi":3007 + * 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.pxi":3008 + * 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__1687, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3008, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 3008, __pyx_L1_error) + + /* "talib/_stream.pxi":3007 + * int outnbelement + * int outinteger + * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("open is not double") + * if open.ndim != 1: + */ + } + + /* "talib/_stream.pxi":3009 + * 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.pxi":3010 + * 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__1688, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3010, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 3010, __pyx_L1_error) + + /* "talib/_stream.pxi":3009 + * 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.pxi":3011 + * 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 = open.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":3012 + * raise Exception("open has wrong dimensions") + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3012, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 3012, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":3011 + * 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 = open.data + */ + } + + /* "talib/_stream.pxi":3013 + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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.pxi":3014 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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.pxi":3015 + * open_data = 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__1689, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3015, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 3015, __pyx_L1_error) + + /* "talib/_stream.pxi":3014 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_stream.pxi":3016 + * 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.pxi":3017 + * raise 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__1690, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3017, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 3017, __pyx_L1_error) + + /* "talib/_stream.pxi":3016 + * 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.pxi":3018 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":3019 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3019, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 3019, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":3018 + * 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 = high.data + */ + } + + /* "talib/_stream.pxi":3020 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":3021 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":3022 + * high_data = 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__1691, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 3022, __pyx_L1_error) + + /* "talib/_stream.pxi":3021 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_stream.pxi":3023 + * 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.pxi":3024 + * raise 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__1692, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 3024, __pyx_L1_error) + + /* "talib/_stream.pxi":3023 + * 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.pxi":3025 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":3026 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 3026, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":3025 + * 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 = low.data + */ + } + + /* "talib/_stream.pxi":3027 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":3028 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":3029 + * low_data = 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__1693, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 3029, __pyx_L1_error) + + /* "talib/_stream.pxi":3028 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_stream.pxi":3030 + * 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.pxi":3031 + * raise 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__1694, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 3031, __pyx_L1_error) + + /* "talib/_stream.pxi":3030 + * 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.pxi":3032 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":3033 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = open.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 3033, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":3032 + * 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 = close.data + */ + } + + /* "talib/_stream.pxi":3034 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = open.shape[0] + * if length != high.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_stream.pxi":3035 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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.pxi":3036 + * close_data = 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.pxi":3037 + * 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__1695, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3037, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 3037, __pyx_L1_error) + + /* "talib/_stream.pxi":3036 + * close_data = close.data + * length = open.shape[0] + * if length != high.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != low.shape[0]: + */ + } + + /* "talib/_stream.pxi":3038 + * 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.pxi":3039 + * 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__1696, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3039, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 3039, __pyx_L1_error) + + /* "talib/_stream.pxi":3038 + * 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.pxi":3040 + * 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.pxi":3041 + * 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__1697, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3041, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 3041, __pyx_L1_error) + + /* "talib/_stream.pxi":3040 + * 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.pxi":3042 + * 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.pxi":3043 + * 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.pxi":3044 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CDLINVERTEDHAMMER, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3044, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":3045 + * 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(3, 3045, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":2985 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":3049 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_8c_ta_lib_453stream_CDLKICKING(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_452stream_CDLKICKING[] = " 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_8c_ta_lib_453stream_CDLKICKING = {"stream_CDLKICKING", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_453stream_CDLKICKING, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_452stream_CDLKICKING}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_453stream_CDLKICKING(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("stream_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("stream_CDLKICKING", 1, 4, 4, 1); __PYX_ERR(3, 3049, __pyx_L3_error) + } + case 2: + if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_CDLKICKING", 1, 4, 4, 2); __PYX_ERR(3, 3049, __pyx_L3_error) + } + case 3: + if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_CDLKICKING", 1, 4, 4, 3); __PYX_ERR(3, 3049, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "stream_CDLKICKING") < 0)) __PYX_ERR(3, 3049, __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("stream_CDLKICKING", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 3049, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 3049, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(3, 3049, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(3, 3049, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(3, 3049, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_452stream_CDLKICKING(__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_8c_ta_lib_452stream_CDLKICKING(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("stream_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.pxi":3071 + * 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.pxi":3072 + * 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__1698, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3072, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 3072, __pyx_L1_error) + + /* "talib/_stream.pxi":3071 + * int outnbelement + * int outinteger + * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("open is not double") + * if open.ndim != 1: + */ + } + + /* "talib/_stream.pxi":3073 + * 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.pxi":3074 + * 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__1699, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3074, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 3074, __pyx_L1_error) + + /* "talib/_stream.pxi":3073 + * 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.pxi":3075 + * 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 = open.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":3076 + * raise Exception("open has wrong dimensions") + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3076, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 3076, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":3075 + * 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 = open.data + */ + } + + /* "talib/_stream.pxi":3077 + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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.pxi":3078 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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.pxi":3079 + * open_data = 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__1700, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3079, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 3079, __pyx_L1_error) + + /* "talib/_stream.pxi":3078 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_stream.pxi":3080 + * 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.pxi":3081 + * raise 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__1701, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3081, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 3081, __pyx_L1_error) + + /* "talib/_stream.pxi":3080 + * 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.pxi":3082 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":3083 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3083, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 3083, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":3082 + * 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 = high.data + */ + } + + /* "talib/_stream.pxi":3084 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":3085 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":3086 + * high_data = 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__1702, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 3086, __pyx_L1_error) + + /* "talib/_stream.pxi":3085 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_stream.pxi":3087 + * 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.pxi":3088 + * raise 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__1703, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 3088, __pyx_L1_error) + + /* "talib/_stream.pxi":3087 + * 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.pxi":3089 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":3090 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 3090, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":3089 + * 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 = low.data + */ + } + + /* "talib/_stream.pxi":3091 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":3092 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":3093 + * low_data = 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__1704, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 3093, __pyx_L1_error) + + /* "talib/_stream.pxi":3092 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_stream.pxi":3094 + * 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.pxi":3095 + * raise 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__1705, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 3095, __pyx_L1_error) + + /* "talib/_stream.pxi":3094 + * 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.pxi":3096 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":3097 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = open.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 3097, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":3096 + * 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 = close.data + */ + } + + /* "talib/_stream.pxi":3098 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = open.shape[0] + * if length != high.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_stream.pxi":3099 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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.pxi":3100 + * close_data = 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.pxi":3101 + * 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__1706, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3101, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 3101, __pyx_L1_error) + + /* "talib/_stream.pxi":3100 + * close_data = close.data + * length = open.shape[0] + * if length != high.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != low.shape[0]: + */ + } + + /* "talib/_stream.pxi":3102 + * 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.pxi":3103 + * 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__1707, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3103, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 3103, __pyx_L1_error) + + /* "talib/_stream.pxi":3102 + * 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.pxi":3104 + * 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.pxi":3105 + * 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__1708, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3105, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 3105, __pyx_L1_error) + + /* "talib/_stream.pxi":3104 + * 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.pxi":3106 + * 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.pxi":3107 + * 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.pxi":3108 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CDLKICKING, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3108, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":3109 + * 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(3, 3109, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":3049 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":3113 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_8c_ta_lib_455stream_CDLKICKINGBYLENGTH(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_454stream_CDLKICKINGBYLENGTH[] = " 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_8c_ta_lib_455stream_CDLKICKINGBYLENGTH = {"stream_CDLKICKINGBYLENGTH", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_455stream_CDLKICKINGBYLENGTH, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_454stream_CDLKICKINGBYLENGTH}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_455stream_CDLKICKINGBYLENGTH(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("stream_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("stream_CDLKICKINGBYLENGTH", 1, 4, 4, 1); __PYX_ERR(3, 3113, __pyx_L3_error) + } + case 2: + if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_CDLKICKINGBYLENGTH", 1, 4, 4, 2); __PYX_ERR(3, 3113, __pyx_L3_error) + } + case 3: + if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_CDLKICKINGBYLENGTH", 1, 4, 4, 3); __PYX_ERR(3, 3113, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "stream_CDLKICKINGBYLENGTH") < 0)) __PYX_ERR(3, 3113, __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("stream_CDLKICKINGBYLENGTH", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 3113, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 3113, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(3, 3113, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(3, 3113, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(3, 3113, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_454stream_CDLKICKINGBYLENGTH(__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_8c_ta_lib_454stream_CDLKICKINGBYLENGTH(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("stream_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.pxi":3135 + * 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.pxi":3136 + * 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__1709, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3136, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 3136, __pyx_L1_error) + + /* "talib/_stream.pxi":3135 + * int outnbelement + * int outinteger + * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("open is not double") + * if open.ndim != 1: + */ + } + + /* "talib/_stream.pxi":3137 + * 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.pxi":3138 + * 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__1710, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3138, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 3138, __pyx_L1_error) + + /* "talib/_stream.pxi":3137 + * 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.pxi":3139 + * 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 = open.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":3140 + * raise Exception("open has wrong dimensions") + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3140, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 3140, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":3139 + * 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 = open.data + */ + } + + /* "talib/_stream.pxi":3141 + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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.pxi":3142 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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.pxi":3143 + * open_data = 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__1711, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3143, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 3143, __pyx_L1_error) + + /* "talib/_stream.pxi":3142 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_stream.pxi":3144 + * 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.pxi":3145 + * raise 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__1712, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3145, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 3145, __pyx_L1_error) + + /* "talib/_stream.pxi":3144 + * 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.pxi":3146 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":3147 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3147, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 3147, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":3146 + * 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 = high.data + */ + } + + /* "talib/_stream.pxi":3148 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":3149 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":3150 + * high_data = 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__1713, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 3150, __pyx_L1_error) + + /* "talib/_stream.pxi":3149 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_stream.pxi":3151 + * 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.pxi":3152 + * raise 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__1714, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 3152, __pyx_L1_error) + + /* "talib/_stream.pxi":3151 + * 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.pxi":3153 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":3154 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 3154, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":3153 + * 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 = low.data + */ + } + + /* "talib/_stream.pxi":3155 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":3156 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":3157 + * low_data = 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__1715, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 3157, __pyx_L1_error) + + /* "talib/_stream.pxi":3156 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_stream.pxi":3158 + * 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.pxi":3159 + * raise 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__1716, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 3159, __pyx_L1_error) + + /* "talib/_stream.pxi":3158 + * 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.pxi":3160 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":3161 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = open.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 3161, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":3160 + * 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 = close.data + */ + } + + /* "talib/_stream.pxi":3162 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = open.shape[0] + * if length != high.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_stream.pxi":3163 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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.pxi":3164 + * close_data = 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.pxi":3165 + * 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__1717, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3165, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 3165, __pyx_L1_error) + + /* "talib/_stream.pxi":3164 + * close_data = close.data + * length = open.shape[0] + * if length != high.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != low.shape[0]: + */ + } + + /* "talib/_stream.pxi":3166 + * 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.pxi":3167 + * 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__1718, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3167, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 3167, __pyx_L1_error) + + /* "talib/_stream.pxi":3166 + * 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.pxi":3168 + * 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.pxi":3169 + * 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__1719, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3169, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 3169, __pyx_L1_error) + + /* "talib/_stream.pxi":3168 + * 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.pxi":3170 + * 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.pxi":3171 + * 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.pxi":3172 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CDLKICKINGBYLENGTH, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3172, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":3173 + * 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(3, 3173, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":3113 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":3177 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_8c_ta_lib_457stream_CDLLADDERBOTTOM(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_456stream_CDLLADDERBOTTOM[] = " 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_8c_ta_lib_457stream_CDLLADDERBOTTOM = {"stream_CDLLADDERBOTTOM", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_457stream_CDLLADDERBOTTOM, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_456stream_CDLLADDERBOTTOM}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_457stream_CDLLADDERBOTTOM(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("stream_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("stream_CDLLADDERBOTTOM", 1, 4, 4, 1); __PYX_ERR(3, 3177, __pyx_L3_error) + } + case 2: + if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_CDLLADDERBOTTOM", 1, 4, 4, 2); __PYX_ERR(3, 3177, __pyx_L3_error) + } + case 3: + if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_CDLLADDERBOTTOM", 1, 4, 4, 3); __PYX_ERR(3, 3177, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "stream_CDLLADDERBOTTOM") < 0)) __PYX_ERR(3, 3177, __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("stream_CDLLADDERBOTTOM", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 3177, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 3177, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(3, 3177, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(3, 3177, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(3, 3177, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_456stream_CDLLADDERBOTTOM(__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_8c_ta_lib_456stream_CDLLADDERBOTTOM(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("stream_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.pxi":3199 + * 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.pxi":3200 + * 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__1720, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3200, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 3200, __pyx_L1_error) + + /* "talib/_stream.pxi":3199 + * int outnbelement + * int outinteger + * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("open is not double") + * if open.ndim != 1: + */ + } + + /* "talib/_stream.pxi":3201 + * 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.pxi":3202 + * 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__1721, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3202, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 3202, __pyx_L1_error) + + /* "talib/_stream.pxi":3201 + * 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.pxi":3203 + * 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 = open.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":3204 + * raise Exception("open has wrong dimensions") + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3204, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 3204, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":3203 + * 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 = open.data + */ + } + + /* "talib/_stream.pxi":3205 + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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.pxi":3206 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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.pxi":3207 + * open_data = 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__1722, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3207, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 3207, __pyx_L1_error) + + /* "talib/_stream.pxi":3206 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_stream.pxi":3208 + * 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.pxi":3209 + * raise 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__1723, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3209, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 3209, __pyx_L1_error) + + /* "talib/_stream.pxi":3208 + * 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.pxi":3210 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":3211 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3211, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 3211, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":3210 + * 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 = high.data + */ + } + + /* "talib/_stream.pxi":3212 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":3213 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":3214 + * high_data = 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__1724, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 3214, __pyx_L1_error) + + /* "talib/_stream.pxi":3213 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_stream.pxi":3215 + * 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.pxi":3216 + * raise 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__1725, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 3216, __pyx_L1_error) + + /* "talib/_stream.pxi":3215 + * 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.pxi":3217 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":3218 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 3218, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":3217 + * 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 = low.data + */ + } + + /* "talib/_stream.pxi":3219 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":3220 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":3221 + * low_data = 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__1726, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 3221, __pyx_L1_error) + + /* "talib/_stream.pxi":3220 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_stream.pxi":3222 + * 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.pxi":3223 + * raise 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__1727, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 3223, __pyx_L1_error) + + /* "talib/_stream.pxi":3222 + * 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.pxi":3224 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":3225 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = open.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 3225, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":3224 + * 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 = close.data + */ + } + + /* "talib/_stream.pxi":3226 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = open.shape[0] + * if length != high.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_stream.pxi":3227 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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.pxi":3228 + * close_data = 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.pxi":3229 + * 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__1728, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3229, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 3229, __pyx_L1_error) + + /* "talib/_stream.pxi":3228 + * close_data = close.data + * length = open.shape[0] + * if length != high.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != low.shape[0]: + */ + } + + /* "talib/_stream.pxi":3230 + * 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.pxi":3231 + * 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__1729, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3231, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 3231, __pyx_L1_error) + + /* "talib/_stream.pxi":3230 + * 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.pxi":3232 + * 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.pxi":3233 + * 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__1730, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3233, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 3233, __pyx_L1_error) + + /* "talib/_stream.pxi":3232 + * 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.pxi":3234 + * 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.pxi":3235 + * 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.pxi":3236 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CDLLADDERBOTTOM, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3236, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":3237 + * 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(3, 3237, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":3177 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":3241 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_8c_ta_lib_459stream_CDLLONGLEGGEDDOJI(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_458stream_CDLLONGLEGGEDDOJI[] = " 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_8c_ta_lib_459stream_CDLLONGLEGGEDDOJI = {"stream_CDLLONGLEGGEDDOJI", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_459stream_CDLLONGLEGGEDDOJI, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_458stream_CDLLONGLEGGEDDOJI}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_459stream_CDLLONGLEGGEDDOJI(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("stream_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("stream_CDLLONGLEGGEDDOJI", 1, 4, 4, 1); __PYX_ERR(3, 3241, __pyx_L3_error) + } + case 2: + if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_CDLLONGLEGGEDDOJI", 1, 4, 4, 2); __PYX_ERR(3, 3241, __pyx_L3_error) + } + case 3: + if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_CDLLONGLEGGEDDOJI", 1, 4, 4, 3); __PYX_ERR(3, 3241, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "stream_CDLLONGLEGGEDDOJI") < 0)) __PYX_ERR(3, 3241, __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("stream_CDLLONGLEGGEDDOJI", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 3241, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 3241, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(3, 3241, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(3, 3241, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(3, 3241, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_458stream_CDLLONGLEGGEDDOJI(__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_8c_ta_lib_458stream_CDLLONGLEGGEDDOJI(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("stream_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.pxi":3263 + * 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.pxi":3264 + * 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__1731, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3264, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 3264, __pyx_L1_error) + + /* "talib/_stream.pxi":3263 + * int outnbelement + * int outinteger + * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("open is not double") + * if open.ndim != 1: + */ + } + + /* "talib/_stream.pxi":3265 + * 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.pxi":3266 + * 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__1732, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3266, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 3266, __pyx_L1_error) + + /* "talib/_stream.pxi":3265 + * 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.pxi":3267 + * 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 = open.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":3268 + * raise Exception("open has wrong dimensions") + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3268, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 3268, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":3267 + * 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 = open.data + */ + } + + /* "talib/_stream.pxi":3269 + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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.pxi":3270 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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.pxi":3271 + * open_data = 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__1733, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3271, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 3271, __pyx_L1_error) + + /* "talib/_stream.pxi":3270 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_stream.pxi":3272 + * 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.pxi":3273 + * raise 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__1734, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3273, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 3273, __pyx_L1_error) + + /* "talib/_stream.pxi":3272 + * 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.pxi":3274 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":3275 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3275, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 3275, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":3274 + * 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 = high.data + */ + } + + /* "talib/_stream.pxi":3276 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":3277 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":3278 + * high_data = 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__1735, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 3278, __pyx_L1_error) + + /* "talib/_stream.pxi":3277 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_stream.pxi":3279 + * 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.pxi":3280 + * raise 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__1736, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 3280, __pyx_L1_error) + + /* "talib/_stream.pxi":3279 + * 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.pxi":3281 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":3282 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 3282, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":3281 + * 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 = low.data + */ + } + + /* "talib/_stream.pxi":3283 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":3284 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":3285 + * low_data = 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__1737, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 3285, __pyx_L1_error) + + /* "talib/_stream.pxi":3284 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_stream.pxi":3286 + * 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.pxi":3287 + * raise 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__1738, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 3287, __pyx_L1_error) + + /* "talib/_stream.pxi":3286 + * 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.pxi":3288 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":3289 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = open.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 3289, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":3288 + * 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 = close.data + */ + } + + /* "talib/_stream.pxi":3290 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = open.shape[0] + * if length != high.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_stream.pxi":3291 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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.pxi":3292 + * close_data = 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.pxi":3293 + * 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__1739, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3293, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 3293, __pyx_L1_error) + + /* "talib/_stream.pxi":3292 + * close_data = close.data + * length = open.shape[0] + * if length != high.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != low.shape[0]: + */ + } + + /* "talib/_stream.pxi":3294 + * 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.pxi":3295 + * 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__1740, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3295, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 3295, __pyx_L1_error) + + /* "talib/_stream.pxi":3294 + * 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.pxi":3296 + * 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.pxi":3297 + * 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__1741, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3297, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 3297, __pyx_L1_error) + + /* "talib/_stream.pxi":3296 + * 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.pxi":3298 + * 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.pxi":3299 + * 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.pxi":3300 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CDLLONGLEGGEDDOJI, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3300, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":3301 + * 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(3, 3301, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":3241 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":3305 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_8c_ta_lib_461stream_CDLLONGLINE(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_460stream_CDLLONGLINE[] = " 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_8c_ta_lib_461stream_CDLLONGLINE = {"stream_CDLLONGLINE", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_461stream_CDLLONGLINE, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_460stream_CDLLONGLINE}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_461stream_CDLLONGLINE(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("stream_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("stream_CDLLONGLINE", 1, 4, 4, 1); __PYX_ERR(3, 3305, __pyx_L3_error) + } + case 2: + if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_CDLLONGLINE", 1, 4, 4, 2); __PYX_ERR(3, 3305, __pyx_L3_error) + } + case 3: + if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_CDLLONGLINE", 1, 4, 4, 3); __PYX_ERR(3, 3305, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "stream_CDLLONGLINE") < 0)) __PYX_ERR(3, 3305, __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("stream_CDLLONGLINE", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 3305, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 3305, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(3, 3305, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(3, 3305, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(3, 3305, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_460stream_CDLLONGLINE(__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_8c_ta_lib_460stream_CDLLONGLINE(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("stream_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.pxi":3327 + * 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.pxi":3328 + * 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__1742, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3328, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 3328, __pyx_L1_error) + + /* "talib/_stream.pxi":3327 + * int outnbelement + * int outinteger + * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("open is not double") + * if open.ndim != 1: + */ + } + + /* "talib/_stream.pxi":3329 + * 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.pxi":3330 + * 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__1743, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3330, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 3330, __pyx_L1_error) + + /* "talib/_stream.pxi":3329 + * 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.pxi":3331 + * 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 = open.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":3332 + * raise Exception("open has wrong dimensions") + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3332, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 3332, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":3331 + * 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 = open.data + */ + } + + /* "talib/_stream.pxi":3333 + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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.pxi":3334 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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.pxi":3335 + * open_data = 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__1744, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3335, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 3335, __pyx_L1_error) + + /* "talib/_stream.pxi":3334 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_stream.pxi":3336 + * 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.pxi":3337 + * raise 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__1745, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3337, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 3337, __pyx_L1_error) + + /* "talib/_stream.pxi":3336 + * 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.pxi":3338 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":3339 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3339, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 3339, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":3338 + * 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 = high.data + */ + } + + /* "talib/_stream.pxi":3340 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":3341 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":3342 + * high_data = 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__1746, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 3342, __pyx_L1_error) + + /* "talib/_stream.pxi":3341 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_stream.pxi":3343 + * 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.pxi":3344 + * raise 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__1747, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 3344, __pyx_L1_error) + + /* "talib/_stream.pxi":3343 + * 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.pxi":3345 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":3346 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 3346, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":3345 + * 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 = low.data + */ + } + + /* "talib/_stream.pxi":3347 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":3348 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":3349 + * low_data = 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__1748, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 3349, __pyx_L1_error) + + /* "talib/_stream.pxi":3348 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_stream.pxi":3350 + * 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.pxi":3351 + * raise 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__1749, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 3351, __pyx_L1_error) + + /* "talib/_stream.pxi":3350 + * 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.pxi":3352 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":3353 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = open.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 3353, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":3352 + * 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 = close.data + */ + } + + /* "talib/_stream.pxi":3354 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = open.shape[0] + * if length != high.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_stream.pxi":3355 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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.pxi":3356 + * close_data = 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.pxi":3357 + * 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__1750, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3357, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 3357, __pyx_L1_error) + + /* "talib/_stream.pxi":3356 + * close_data = close.data + * length = open.shape[0] + * if length != high.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != low.shape[0]: + */ + } + + /* "talib/_stream.pxi":3358 + * 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.pxi":3359 + * 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__1751, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3359, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 3359, __pyx_L1_error) + + /* "talib/_stream.pxi":3358 + * 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.pxi":3360 + * 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.pxi":3361 + * 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__1752, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3361, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 3361, __pyx_L1_error) + + /* "talib/_stream.pxi":3360 + * 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.pxi":3362 + * 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.pxi":3363 + * 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.pxi":3364 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CDLLONGLINE, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3364, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":3365 + * 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(3, 3365, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":3305 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":3369 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_8c_ta_lib_463stream_CDLMARUBOZU(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_462stream_CDLMARUBOZU[] = " 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_8c_ta_lib_463stream_CDLMARUBOZU = {"stream_CDLMARUBOZU", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_463stream_CDLMARUBOZU, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_462stream_CDLMARUBOZU}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_463stream_CDLMARUBOZU(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("stream_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("stream_CDLMARUBOZU", 1, 4, 4, 1); __PYX_ERR(3, 3369, __pyx_L3_error) + } + case 2: + if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_CDLMARUBOZU", 1, 4, 4, 2); __PYX_ERR(3, 3369, __pyx_L3_error) + } + case 3: + if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_CDLMARUBOZU", 1, 4, 4, 3); __PYX_ERR(3, 3369, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "stream_CDLMARUBOZU") < 0)) __PYX_ERR(3, 3369, __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("stream_CDLMARUBOZU", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 3369, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 3369, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(3, 3369, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(3, 3369, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(3, 3369, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_462stream_CDLMARUBOZU(__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_8c_ta_lib_462stream_CDLMARUBOZU(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("stream_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.pxi":3391 + * 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.pxi":3392 + * 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__1753, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3392, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 3392, __pyx_L1_error) + + /* "talib/_stream.pxi":3391 + * int outnbelement + * int outinteger + * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("open is not double") + * if open.ndim != 1: + */ + } + + /* "talib/_stream.pxi":3393 + * 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.pxi":3394 + * 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__1754, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3394, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 3394, __pyx_L1_error) + + /* "talib/_stream.pxi":3393 + * 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.pxi":3395 + * 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 = open.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":3396 + * raise Exception("open has wrong dimensions") + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3396, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 3396, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":3395 + * 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 = open.data + */ + } + + /* "talib/_stream.pxi":3397 + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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.pxi":3398 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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.pxi":3399 + * open_data = 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__1755, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3399, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 3399, __pyx_L1_error) + + /* "talib/_stream.pxi":3398 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_stream.pxi":3400 + * 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.pxi":3401 + * raise 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__1756, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3401, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 3401, __pyx_L1_error) + + /* "talib/_stream.pxi":3400 + * 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.pxi":3402 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":3403 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3403, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 3403, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":3402 + * 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 = high.data + */ + } + + /* "talib/_stream.pxi":3404 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":3405 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":3406 + * high_data = 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__1757, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 3406, __pyx_L1_error) + + /* "talib/_stream.pxi":3405 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_stream.pxi":3407 + * 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.pxi":3408 + * raise 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__1758, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 3408, __pyx_L1_error) + + /* "talib/_stream.pxi":3407 + * 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.pxi":3409 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":3410 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 3410, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":3409 + * 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 = low.data + */ + } + + /* "talib/_stream.pxi":3411 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":3412 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":3413 + * low_data = 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__1759, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 3413, __pyx_L1_error) + + /* "talib/_stream.pxi":3412 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_stream.pxi":3414 + * 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.pxi":3415 + * raise 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__1760, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 3415, __pyx_L1_error) + + /* "talib/_stream.pxi":3414 + * 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.pxi":3416 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":3417 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = open.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 3417, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":3416 + * 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 = close.data + */ + } + + /* "talib/_stream.pxi":3418 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = open.shape[0] + * if length != high.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_stream.pxi":3419 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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.pxi":3420 + * close_data = 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.pxi":3421 + * 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__1761, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3421, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 3421, __pyx_L1_error) + + /* "talib/_stream.pxi":3420 + * close_data = close.data + * length = open.shape[0] + * if length != high.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != low.shape[0]: + */ + } + + /* "talib/_stream.pxi":3422 + * 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.pxi":3423 + * 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__1762, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3423, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 3423, __pyx_L1_error) + + /* "talib/_stream.pxi":3422 + * 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.pxi":3424 + * 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.pxi":3425 + * 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__1763, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3425, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 3425, __pyx_L1_error) + + /* "talib/_stream.pxi":3424 + * 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.pxi":3426 + * 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.pxi":3427 + * 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.pxi":3428 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CDLMARUBOZU, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3428, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":3429 + * 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(3, 3429, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":3369 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":3433 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_8c_ta_lib_465stream_CDLMATCHINGLOW(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_464stream_CDLMATCHINGLOW[] = " 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_8c_ta_lib_465stream_CDLMATCHINGLOW = {"stream_CDLMATCHINGLOW", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_465stream_CDLMATCHINGLOW, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_464stream_CDLMATCHINGLOW}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_465stream_CDLMATCHINGLOW(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("stream_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("stream_CDLMATCHINGLOW", 1, 4, 4, 1); __PYX_ERR(3, 3433, __pyx_L3_error) + } + case 2: + if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_CDLMATCHINGLOW", 1, 4, 4, 2); __PYX_ERR(3, 3433, __pyx_L3_error) + } + case 3: + if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_CDLMATCHINGLOW", 1, 4, 4, 3); __PYX_ERR(3, 3433, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "stream_CDLMATCHINGLOW") < 0)) __PYX_ERR(3, 3433, __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("stream_CDLMATCHINGLOW", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 3433, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 3433, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(3, 3433, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(3, 3433, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(3, 3433, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_464stream_CDLMATCHINGLOW(__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_8c_ta_lib_464stream_CDLMATCHINGLOW(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("stream_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.pxi":3455 + * 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.pxi":3456 + * 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__1764, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3456, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 3456, __pyx_L1_error) + + /* "talib/_stream.pxi":3455 + * int outnbelement + * int outinteger + * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("open is not double") + * if open.ndim != 1: + */ + } + + /* "talib/_stream.pxi":3457 + * 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.pxi":3458 + * 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__1765, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3458, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 3458, __pyx_L1_error) + + /* "talib/_stream.pxi":3457 + * 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.pxi":3459 + * 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 = open.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":3460 + * raise Exception("open has wrong dimensions") + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3460, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 3460, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":3459 + * 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 = open.data + */ + } + + /* "talib/_stream.pxi":3461 + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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.pxi":3462 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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.pxi":3463 + * open_data = 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__1766, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3463, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 3463, __pyx_L1_error) + + /* "talib/_stream.pxi":3462 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_stream.pxi":3464 + * 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.pxi":3465 + * raise 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__1767, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3465, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 3465, __pyx_L1_error) + + /* "talib/_stream.pxi":3464 + * 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.pxi":3466 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":3467 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3467, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 3467, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":3466 + * 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 = high.data + */ + } + + /* "talib/_stream.pxi":3468 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":3469 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":3470 + * high_data = 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__1768, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 3470, __pyx_L1_error) + + /* "talib/_stream.pxi":3469 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_stream.pxi":3471 + * 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.pxi":3472 + * raise 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__1769, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 3472, __pyx_L1_error) + + /* "talib/_stream.pxi":3471 + * 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.pxi":3473 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":3474 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 3474, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":3473 + * 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 = low.data + */ + } + + /* "talib/_stream.pxi":3475 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":3476 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":3477 + * low_data = 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__1770, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 3477, __pyx_L1_error) + + /* "talib/_stream.pxi":3476 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_stream.pxi":3478 + * 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.pxi":3479 + * raise 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__1771, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 3479, __pyx_L1_error) + + /* "talib/_stream.pxi":3478 + * 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.pxi":3480 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":3481 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = open.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 3481, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":3480 + * 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 = close.data + */ + } + + /* "talib/_stream.pxi":3482 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = open.shape[0] + * if length != high.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_stream.pxi":3483 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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.pxi":3484 + * close_data = 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.pxi":3485 + * 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__1772, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3485, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 3485, __pyx_L1_error) + + /* "talib/_stream.pxi":3484 + * close_data = close.data + * length = open.shape[0] + * if length != high.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != low.shape[0]: + */ + } + + /* "talib/_stream.pxi":3486 + * 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.pxi":3487 + * 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__1773, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3487, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 3487, __pyx_L1_error) + + /* "talib/_stream.pxi":3486 + * 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.pxi":3488 + * 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.pxi":3489 + * 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__1774, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3489, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 3489, __pyx_L1_error) + + /* "talib/_stream.pxi":3488 + * 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.pxi":3490 + * 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.pxi":3491 + * 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.pxi":3492 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CDLMATCHINGLOW, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3492, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":3493 + * 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(3, 3493, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":3433 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":3497 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_8c_ta_lib_467stream_CDLMATHOLD(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_466stream_CDLMATHOLD[] = " 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_8c_ta_lib_467stream_CDLMATHOLD = {"stream_CDLMATHOLD", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_467stream_CDLMATHOLD, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_466stream_CDLMATHOLD}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_467stream_CDLMATHOLD(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("stream_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("stream_CDLMATHOLD", 0, 4, 5, 1); __PYX_ERR(3, 3497, __pyx_L3_error) + } + case 2: + if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_CDLMATHOLD", 0, 4, 5, 2); __PYX_ERR(3, 3497, __pyx_L3_error) + } + case 3: + if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_CDLMATHOLD", 0, 4, 5, 3); __PYX_ERR(3, 3497, __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, "stream_CDLMATHOLD") < 0)) __PYX_ERR(3, 3497, __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(3, 3497, __pyx_L3_error) + } else { + __pyx_v_penetration = ((double)0.5); + } + } + goto __pyx_L4_argument_unpacking_done; + __pyx_L5_argtuple_error:; + __Pyx_RaiseArgtupleInvalid("stream_CDLMATHOLD", 0, 4, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 3497, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 3497, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(3, 3497, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(3, 3497, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(3, 3497, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_466stream_CDLMATHOLD(__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_8c_ta_lib_466stream_CDLMATHOLD(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("stream_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.pxi":3521 + * 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.pxi":3522 + * 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__1775, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3522, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 3522, __pyx_L1_error) + + /* "talib/_stream.pxi":3521 + * int outnbelement + * int outinteger + * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("open is not double") + * if open.ndim != 1: + */ + } + + /* "talib/_stream.pxi":3523 + * 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.pxi":3524 + * 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__1776, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3524, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 3524, __pyx_L1_error) + + /* "talib/_stream.pxi":3523 + * 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.pxi":3525 + * 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 = open.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":3526 + * raise Exception("open has wrong dimensions") + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3526, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 3526, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":3525 + * 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 = open.data + */ + } + + /* "talib/_stream.pxi":3527 + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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.pxi":3528 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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.pxi":3529 + * open_data = 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__1777, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3529, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 3529, __pyx_L1_error) + + /* "talib/_stream.pxi":3528 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_stream.pxi":3530 + * 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.pxi":3531 + * raise 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__1778, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3531, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 3531, __pyx_L1_error) + + /* "talib/_stream.pxi":3530 + * 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.pxi":3532 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":3533 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3533, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 3533, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":3532 + * 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 = high.data + */ + } + + /* "talib/_stream.pxi":3534 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":3535 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":3536 + * high_data = 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__1779, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 3536, __pyx_L1_error) + + /* "talib/_stream.pxi":3535 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_stream.pxi":3537 + * 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.pxi":3538 + * raise 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__1780, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 3538, __pyx_L1_error) + + /* "talib/_stream.pxi":3537 + * 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.pxi":3539 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":3540 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 3540, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":3539 + * 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 = low.data + */ + } + + /* "talib/_stream.pxi":3541 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":3542 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":3543 + * low_data = 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__1781, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 3543, __pyx_L1_error) + + /* "talib/_stream.pxi":3542 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_stream.pxi":3544 + * 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.pxi":3545 + * raise 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__1782, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 3545, __pyx_L1_error) + + /* "talib/_stream.pxi":3544 + * 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.pxi":3546 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":3547 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = open.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 3547, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":3546 + * 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 = close.data + */ + } + + /* "talib/_stream.pxi":3548 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = open.shape[0] + * if length != high.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_stream.pxi":3549 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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.pxi":3550 + * close_data = 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.pxi":3551 + * 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__1783, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3551, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 3551, __pyx_L1_error) + + /* "talib/_stream.pxi":3550 + * close_data = close.data + * length = open.shape[0] + * if length != high.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != low.shape[0]: + */ + } + + /* "talib/_stream.pxi":3552 + * 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.pxi":3553 + * 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__1784, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3553, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 3553, __pyx_L1_error) + + /* "talib/_stream.pxi":3552 + * 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.pxi":3554 + * 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.pxi":3555 + * 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__1785, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3555, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 3555, __pyx_L1_error) + + /* "talib/_stream.pxi":3554 + * 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.pxi":3556 + * 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.pxi":3557 + * 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.pxi":3558 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CDLMATHOLD, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3558, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":3559 + * 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(3, 3559, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":3497 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":3563 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_8c_ta_lib_469stream_CDLMORNINGDOJISTAR(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_468stream_CDLMORNINGDOJISTAR[] = " 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_8c_ta_lib_469stream_CDLMORNINGDOJISTAR = {"stream_CDLMORNINGDOJISTAR", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_469stream_CDLMORNINGDOJISTAR, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_468stream_CDLMORNINGDOJISTAR}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_469stream_CDLMORNINGDOJISTAR(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("stream_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("stream_CDLMORNINGDOJISTAR", 0, 4, 5, 1); __PYX_ERR(3, 3563, __pyx_L3_error) + } + case 2: + if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_CDLMORNINGDOJISTAR", 0, 4, 5, 2); __PYX_ERR(3, 3563, __pyx_L3_error) + } + case 3: + if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_CDLMORNINGDOJISTAR", 0, 4, 5, 3); __PYX_ERR(3, 3563, __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, "stream_CDLMORNINGDOJISTAR") < 0)) __PYX_ERR(3, 3563, __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(3, 3563, __pyx_L3_error) + } else { + __pyx_v_penetration = ((double)0.3); + } + } + goto __pyx_L4_argument_unpacking_done; + __pyx_L5_argtuple_error:; + __Pyx_RaiseArgtupleInvalid("stream_CDLMORNINGDOJISTAR", 0, 4, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 3563, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 3563, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(3, 3563, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(3, 3563, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(3, 3563, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_468stream_CDLMORNINGDOJISTAR(__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_8c_ta_lib_468stream_CDLMORNINGDOJISTAR(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("stream_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.pxi":3587 + * 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.pxi":3588 + * 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__1786, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3588, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 3588, __pyx_L1_error) + + /* "talib/_stream.pxi":3587 + * int outnbelement + * int outinteger + * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("open is not double") + * if open.ndim != 1: + */ + } + + /* "talib/_stream.pxi":3589 + * 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.pxi":3590 + * 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__1787, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3590, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 3590, __pyx_L1_error) + + /* "talib/_stream.pxi":3589 + * 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.pxi":3591 + * 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 = open.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":3592 + * raise Exception("open has wrong dimensions") + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3592, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 3592, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":3591 + * 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 = open.data + */ + } + + /* "talib/_stream.pxi":3593 + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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.pxi":3594 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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.pxi":3595 + * open_data = 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__1788, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3595, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 3595, __pyx_L1_error) + + /* "talib/_stream.pxi":3594 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_stream.pxi":3596 + * 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.pxi":3597 + * raise 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__1789, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3597, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 3597, __pyx_L1_error) + + /* "talib/_stream.pxi":3596 + * 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.pxi":3598 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":3599 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3599, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 3599, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":3598 + * 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 = high.data + */ + } + + /* "talib/_stream.pxi":3600 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":3601 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":3602 + * high_data = 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__1790, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 3602, __pyx_L1_error) + + /* "talib/_stream.pxi":3601 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_stream.pxi":3603 + * 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.pxi":3604 + * raise 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__1791, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 3604, __pyx_L1_error) + + /* "talib/_stream.pxi":3603 + * 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.pxi":3605 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":3606 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 3606, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":3605 + * 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 = low.data + */ + } + + /* "talib/_stream.pxi":3607 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":3608 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":3609 + * low_data = 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__1792, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 3609, __pyx_L1_error) + + /* "talib/_stream.pxi":3608 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_stream.pxi":3610 + * 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.pxi":3611 + * raise 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__1793, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 3611, __pyx_L1_error) + + /* "talib/_stream.pxi":3610 + * 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.pxi":3612 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":3613 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = open.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 3613, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":3612 + * 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 = close.data + */ + } + + /* "talib/_stream.pxi":3614 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = open.shape[0] + * if length != high.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_stream.pxi":3615 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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.pxi":3616 + * close_data = 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.pxi":3617 + * 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__1794, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3617, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 3617, __pyx_L1_error) + + /* "talib/_stream.pxi":3616 + * close_data = close.data + * length = open.shape[0] + * if length != high.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != low.shape[0]: + */ + } + + /* "talib/_stream.pxi":3618 + * 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.pxi":3619 + * 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__1795, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3619, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 3619, __pyx_L1_error) + + /* "talib/_stream.pxi":3618 + * 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.pxi":3620 + * 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.pxi":3621 + * 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__1796, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3621, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 3621, __pyx_L1_error) + + /* "talib/_stream.pxi":3620 + * 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.pxi":3622 + * 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.pxi":3623 + * 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.pxi":3624 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CDLMORNINGDOJISTAR, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3624, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":3625 + * 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(3, 3625, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":3563 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":3629 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_8c_ta_lib_471stream_CDLMORNINGSTAR(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_470stream_CDLMORNINGSTAR[] = " 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_8c_ta_lib_471stream_CDLMORNINGSTAR = {"stream_CDLMORNINGSTAR", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_471stream_CDLMORNINGSTAR, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_470stream_CDLMORNINGSTAR}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_471stream_CDLMORNINGSTAR(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("stream_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("stream_CDLMORNINGSTAR", 0, 4, 5, 1); __PYX_ERR(3, 3629, __pyx_L3_error) + } + case 2: + if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_CDLMORNINGSTAR", 0, 4, 5, 2); __PYX_ERR(3, 3629, __pyx_L3_error) + } + case 3: + if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_CDLMORNINGSTAR", 0, 4, 5, 3); __PYX_ERR(3, 3629, __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, "stream_CDLMORNINGSTAR") < 0)) __PYX_ERR(3, 3629, __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(3, 3629, __pyx_L3_error) + } else { + __pyx_v_penetration = ((double)0.3); + } + } + goto __pyx_L4_argument_unpacking_done; + __pyx_L5_argtuple_error:; + __Pyx_RaiseArgtupleInvalid("stream_CDLMORNINGSTAR", 0, 4, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 3629, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 3629, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(3, 3629, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(3, 3629, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(3, 3629, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_470stream_CDLMORNINGSTAR(__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_8c_ta_lib_470stream_CDLMORNINGSTAR(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("stream_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.pxi":3653 + * 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.pxi":3654 + * 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__1797, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3654, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 3654, __pyx_L1_error) + + /* "talib/_stream.pxi":3653 + * int outnbelement + * int outinteger + * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("open is not double") + * if open.ndim != 1: + */ + } + + /* "talib/_stream.pxi":3655 + * 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.pxi":3656 + * 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__1798, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3656, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 3656, __pyx_L1_error) + + /* "talib/_stream.pxi":3655 + * 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.pxi":3657 + * 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 = open.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":3658 + * raise Exception("open has wrong dimensions") + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3658, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 3658, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":3657 + * 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 = open.data + */ + } + + /* "talib/_stream.pxi":3659 + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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.pxi":3660 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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.pxi":3661 + * open_data = 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__1799, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3661, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 3661, __pyx_L1_error) + + /* "talib/_stream.pxi":3660 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_stream.pxi":3662 + * 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.pxi":3663 + * raise 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__1800, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3663, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 3663, __pyx_L1_error) + + /* "talib/_stream.pxi":3662 + * 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.pxi":3664 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":3665 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3665, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 3665, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":3664 + * 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 = high.data + */ + } + + /* "talib/_stream.pxi":3666 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":3667 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":3668 + * high_data = 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__1801, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 3668, __pyx_L1_error) + + /* "talib/_stream.pxi":3667 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_stream.pxi":3669 + * 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.pxi":3670 + * raise 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__1802, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 3670, __pyx_L1_error) + + /* "talib/_stream.pxi":3669 + * 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.pxi":3671 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":3672 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 3672, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":3671 + * 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 = low.data + */ + } + + /* "talib/_stream.pxi":3673 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":3674 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":3675 + * low_data = 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__1803, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 3675, __pyx_L1_error) + + /* "talib/_stream.pxi":3674 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_stream.pxi":3676 + * 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.pxi":3677 + * raise 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__1804, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 3677, __pyx_L1_error) + + /* "talib/_stream.pxi":3676 + * 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.pxi":3678 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":3679 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = open.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 3679, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":3678 + * 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 = close.data + */ + } + + /* "talib/_stream.pxi":3680 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = open.shape[0] + * if length != high.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_stream.pxi":3681 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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.pxi":3682 + * close_data = 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.pxi":3683 + * 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__1805, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3683, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 3683, __pyx_L1_error) + + /* "talib/_stream.pxi":3682 + * close_data = close.data + * length = open.shape[0] + * if length != high.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != low.shape[0]: + */ + } + + /* "talib/_stream.pxi":3684 + * 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.pxi":3685 + * 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__1806, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3685, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 3685, __pyx_L1_error) + + /* "talib/_stream.pxi":3684 + * 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.pxi":3686 + * 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.pxi":3687 + * 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__1807, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3687, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 3687, __pyx_L1_error) + + /* "talib/_stream.pxi":3686 + * 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.pxi":3688 + * 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.pxi":3689 + * 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.pxi":3690 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CDLMORNINGSTAR, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3690, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":3691 + * 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(3, 3691, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":3629 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":3695 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_8c_ta_lib_473stream_CDLONNECK(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_472stream_CDLONNECK[] = " 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_8c_ta_lib_473stream_CDLONNECK = {"stream_CDLONNECK", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_473stream_CDLONNECK, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_472stream_CDLONNECK}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_473stream_CDLONNECK(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("stream_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("stream_CDLONNECK", 1, 4, 4, 1); __PYX_ERR(3, 3695, __pyx_L3_error) + } + case 2: + if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_CDLONNECK", 1, 4, 4, 2); __PYX_ERR(3, 3695, __pyx_L3_error) + } + case 3: + if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_CDLONNECK", 1, 4, 4, 3); __PYX_ERR(3, 3695, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "stream_CDLONNECK") < 0)) __PYX_ERR(3, 3695, __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("stream_CDLONNECK", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 3695, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 3695, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(3, 3695, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(3, 3695, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(3, 3695, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_472stream_CDLONNECK(__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_8c_ta_lib_472stream_CDLONNECK(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("stream_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.pxi":3717 + * 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.pxi":3718 + * 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__1808, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3718, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 3718, __pyx_L1_error) + + /* "talib/_stream.pxi":3717 + * int outnbelement + * int outinteger + * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("open is not double") + * if open.ndim != 1: + */ + } + + /* "talib/_stream.pxi":3719 + * 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.pxi":3720 + * 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__1809, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3720, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 3720, __pyx_L1_error) + + /* "talib/_stream.pxi":3719 + * 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.pxi":3721 + * 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 = open.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":3722 + * raise Exception("open has wrong dimensions") + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3722, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 3722, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":3721 + * 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 = open.data + */ + } + + /* "talib/_stream.pxi":3723 + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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.pxi":3724 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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.pxi":3725 + * open_data = 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__1810, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3725, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 3725, __pyx_L1_error) + + /* "talib/_stream.pxi":3724 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_stream.pxi":3726 + * 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.pxi":3727 + * raise 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__1811, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3727, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 3727, __pyx_L1_error) + + /* "talib/_stream.pxi":3726 + * 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.pxi":3728 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":3729 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3729, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 3729, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":3728 + * 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 = high.data + */ + } + + /* "talib/_stream.pxi":3730 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":3731 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":3732 + * high_data = 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__1812, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 3732, __pyx_L1_error) + + /* "talib/_stream.pxi":3731 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_stream.pxi":3733 + * 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.pxi":3734 + * raise 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__1813, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 3734, __pyx_L1_error) + + /* "talib/_stream.pxi":3733 + * 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.pxi":3735 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":3736 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 3736, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":3735 + * 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 = low.data + */ + } + + /* "talib/_stream.pxi":3737 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":3738 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":3739 + * low_data = 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__1814, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 3739, __pyx_L1_error) + + /* "talib/_stream.pxi":3738 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_stream.pxi":3740 + * 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.pxi":3741 + * raise 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__1815, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 3741, __pyx_L1_error) + + /* "talib/_stream.pxi":3740 + * 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.pxi":3742 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":3743 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = open.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 3743, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":3742 + * 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 = close.data + */ + } + + /* "talib/_stream.pxi":3744 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = open.shape[0] + * if length != high.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_stream.pxi":3745 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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.pxi":3746 + * close_data = 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.pxi":3747 + * 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__1816, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3747, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 3747, __pyx_L1_error) + + /* "talib/_stream.pxi":3746 + * close_data = close.data + * length = open.shape[0] + * if length != high.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != low.shape[0]: + */ + } + + /* "talib/_stream.pxi":3748 + * 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.pxi":3749 + * 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__1817, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3749, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 3749, __pyx_L1_error) + + /* "talib/_stream.pxi":3748 + * 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.pxi":3750 + * 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.pxi":3751 + * 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__1818, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3751, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 3751, __pyx_L1_error) + + /* "talib/_stream.pxi":3750 + * 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.pxi":3752 + * 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.pxi":3753 + * 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.pxi":3754 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CDLONNECK, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3754, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":3755 + * 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(3, 3755, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":3695 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":3759 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_8c_ta_lib_475stream_CDLPIERCING(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_474stream_CDLPIERCING[] = " 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_8c_ta_lib_475stream_CDLPIERCING = {"stream_CDLPIERCING", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_475stream_CDLPIERCING, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_474stream_CDLPIERCING}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_475stream_CDLPIERCING(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("stream_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("stream_CDLPIERCING", 1, 4, 4, 1); __PYX_ERR(3, 3759, __pyx_L3_error) + } + case 2: + if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_CDLPIERCING", 1, 4, 4, 2); __PYX_ERR(3, 3759, __pyx_L3_error) + } + case 3: + if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_CDLPIERCING", 1, 4, 4, 3); __PYX_ERR(3, 3759, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "stream_CDLPIERCING") < 0)) __PYX_ERR(3, 3759, __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("stream_CDLPIERCING", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 3759, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 3759, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(3, 3759, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(3, 3759, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(3, 3759, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_474stream_CDLPIERCING(__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_8c_ta_lib_474stream_CDLPIERCING(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("stream_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.pxi":3781 + * 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.pxi":3782 + * 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__1819, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3782, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 3782, __pyx_L1_error) + + /* "talib/_stream.pxi":3781 + * int outnbelement + * int outinteger + * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("open is not double") + * if open.ndim != 1: + */ + } + + /* "talib/_stream.pxi":3783 + * 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.pxi":3784 + * 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__1820, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3784, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 3784, __pyx_L1_error) + + /* "talib/_stream.pxi":3783 + * 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.pxi":3785 + * 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 = open.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":3786 + * raise Exception("open has wrong dimensions") + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3786, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 3786, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":3785 + * 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 = open.data + */ + } + + /* "talib/_stream.pxi":3787 + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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.pxi":3788 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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.pxi":3789 + * open_data = 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__1821, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3789, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 3789, __pyx_L1_error) + + /* "talib/_stream.pxi":3788 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_stream.pxi":3790 + * 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.pxi":3791 + * raise 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__1822, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3791, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 3791, __pyx_L1_error) + + /* "talib/_stream.pxi":3790 + * 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.pxi":3792 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":3793 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3793, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 3793, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":3792 + * 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 = high.data + */ + } + + /* "talib/_stream.pxi":3794 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":3795 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":3796 + * high_data = 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__1823, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 3796, __pyx_L1_error) + + /* "talib/_stream.pxi":3795 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_stream.pxi":3797 + * 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.pxi":3798 + * raise 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__1824, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 3798, __pyx_L1_error) + + /* "talib/_stream.pxi":3797 + * 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.pxi":3799 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":3800 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 3800, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":3799 + * 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 = low.data + */ + } + + /* "talib/_stream.pxi":3801 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":3802 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":3803 + * low_data = 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__1825, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 3803, __pyx_L1_error) + + /* "talib/_stream.pxi":3802 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_stream.pxi":3804 + * 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.pxi":3805 + * raise 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__1826, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 3805, __pyx_L1_error) + + /* "talib/_stream.pxi":3804 + * 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.pxi":3806 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":3807 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = open.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 3807, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":3806 + * 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 = close.data + */ + } + + /* "talib/_stream.pxi":3808 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = open.shape[0] + * if length != high.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_stream.pxi":3809 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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.pxi":3810 + * close_data = 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.pxi":3811 + * 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__1827, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3811, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 3811, __pyx_L1_error) + + /* "talib/_stream.pxi":3810 + * close_data = close.data + * length = open.shape[0] + * if length != high.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != low.shape[0]: + */ + } + + /* "talib/_stream.pxi":3812 + * 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.pxi":3813 + * 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__1828, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3813, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 3813, __pyx_L1_error) + + /* "talib/_stream.pxi":3812 + * 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.pxi":3814 + * 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.pxi":3815 + * 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__1829, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3815, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 3815, __pyx_L1_error) + + /* "talib/_stream.pxi":3814 + * 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.pxi":3816 + * 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.pxi":3817 + * 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.pxi":3818 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CDLPIERCING, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3818, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":3819 + * 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(3, 3819, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":3759 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":3823 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_8c_ta_lib_477stream_CDLRICKSHAWMAN(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_476stream_CDLRICKSHAWMAN[] = " 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_8c_ta_lib_477stream_CDLRICKSHAWMAN = {"stream_CDLRICKSHAWMAN", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_477stream_CDLRICKSHAWMAN, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_476stream_CDLRICKSHAWMAN}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_477stream_CDLRICKSHAWMAN(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("stream_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("stream_CDLRICKSHAWMAN", 1, 4, 4, 1); __PYX_ERR(3, 3823, __pyx_L3_error) + } + case 2: + if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_CDLRICKSHAWMAN", 1, 4, 4, 2); __PYX_ERR(3, 3823, __pyx_L3_error) + } + case 3: + if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_CDLRICKSHAWMAN", 1, 4, 4, 3); __PYX_ERR(3, 3823, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "stream_CDLRICKSHAWMAN") < 0)) __PYX_ERR(3, 3823, __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("stream_CDLRICKSHAWMAN", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 3823, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 3823, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(3, 3823, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(3, 3823, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(3, 3823, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_476stream_CDLRICKSHAWMAN(__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_8c_ta_lib_476stream_CDLRICKSHAWMAN(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("stream_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.pxi":3845 + * 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.pxi":3846 + * 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__1830, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3846, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 3846, __pyx_L1_error) + + /* "talib/_stream.pxi":3845 + * int outnbelement + * int outinteger + * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("open is not double") + * if open.ndim != 1: + */ + } + + /* "talib/_stream.pxi":3847 + * 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.pxi":3848 + * 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__1831, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3848, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 3848, __pyx_L1_error) + + /* "talib/_stream.pxi":3847 + * 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.pxi":3849 + * 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 = open.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":3850 + * raise Exception("open has wrong dimensions") + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3850, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 3850, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":3849 + * 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 = open.data + */ + } + + /* "talib/_stream.pxi":3851 + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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.pxi":3852 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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.pxi":3853 + * open_data = 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__1832, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3853, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 3853, __pyx_L1_error) + + /* "talib/_stream.pxi":3852 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_stream.pxi":3854 + * 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.pxi":3855 + * raise 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__1833, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3855, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 3855, __pyx_L1_error) + + /* "talib/_stream.pxi":3854 + * 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.pxi":3856 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":3857 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3857, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 3857, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":3856 + * 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 = high.data + */ + } + + /* "talib/_stream.pxi":3858 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":3859 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":3860 + * high_data = 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__1834, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 3860, __pyx_L1_error) + + /* "talib/_stream.pxi":3859 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_stream.pxi":3861 + * 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.pxi":3862 + * raise 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__1835, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 3862, __pyx_L1_error) + + /* "talib/_stream.pxi":3861 + * 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.pxi":3863 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":3864 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 3864, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":3863 + * 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 = low.data + */ + } + + /* "talib/_stream.pxi":3865 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":3866 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":3867 + * low_data = 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__1836, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 3867, __pyx_L1_error) + + /* "talib/_stream.pxi":3866 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_stream.pxi":3868 + * 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.pxi":3869 + * raise 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__1837, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 3869, __pyx_L1_error) + + /* "talib/_stream.pxi":3868 + * 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.pxi":3870 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":3871 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = open.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 3871, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":3870 + * 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 = close.data + */ + } + + /* "talib/_stream.pxi":3872 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = open.shape[0] + * if length != high.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_stream.pxi":3873 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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.pxi":3874 + * close_data = 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.pxi":3875 + * 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__1838, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3875, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 3875, __pyx_L1_error) + + /* "talib/_stream.pxi":3874 + * close_data = close.data + * length = open.shape[0] + * if length != high.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != low.shape[0]: + */ + } + + /* "talib/_stream.pxi":3876 + * 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.pxi":3877 + * 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__1839, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3877, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 3877, __pyx_L1_error) + + /* "talib/_stream.pxi":3876 + * 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.pxi":3878 + * 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.pxi":3879 + * 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__1840, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3879, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 3879, __pyx_L1_error) + + /* "talib/_stream.pxi":3878 + * 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.pxi":3880 + * 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.pxi":3881 + * 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.pxi":3882 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CDLRICKSHAWMAN, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3882, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":3883 + * 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(3, 3883, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":3823 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":3887 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_8c_ta_lib_479stream_CDLRISEFALL3METHODS(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_478stream_CDLRISEFALL3METHODS[] = " 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_8c_ta_lib_479stream_CDLRISEFALL3METHODS = {"stream_CDLRISEFALL3METHODS", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_479stream_CDLRISEFALL3METHODS, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_478stream_CDLRISEFALL3METHODS}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_479stream_CDLRISEFALL3METHODS(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("stream_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("stream_CDLRISEFALL3METHODS", 1, 4, 4, 1); __PYX_ERR(3, 3887, __pyx_L3_error) + } + case 2: + if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_CDLRISEFALL3METHODS", 1, 4, 4, 2); __PYX_ERR(3, 3887, __pyx_L3_error) + } + case 3: + if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_CDLRISEFALL3METHODS", 1, 4, 4, 3); __PYX_ERR(3, 3887, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "stream_CDLRISEFALL3METHODS") < 0)) __PYX_ERR(3, 3887, __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("stream_CDLRISEFALL3METHODS", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 3887, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 3887, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(3, 3887, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(3, 3887, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(3, 3887, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_478stream_CDLRISEFALL3METHODS(__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_8c_ta_lib_478stream_CDLRISEFALL3METHODS(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("stream_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.pxi":3909 + * 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.pxi":3910 + * 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__1841, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3910, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 3910, __pyx_L1_error) + + /* "talib/_stream.pxi":3909 + * int outnbelement + * int outinteger + * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("open is not double") + * if open.ndim != 1: + */ + } + + /* "talib/_stream.pxi":3911 + * 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.pxi":3912 + * 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__1842, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3912, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 3912, __pyx_L1_error) + + /* "talib/_stream.pxi":3911 + * 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.pxi":3913 + * 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 = open.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":3914 + * raise Exception("open has wrong dimensions") + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3914, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 3914, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":3913 + * 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 = open.data + */ + } + + /* "talib/_stream.pxi":3915 + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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.pxi":3916 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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.pxi":3917 + * open_data = 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__1843, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3917, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 3917, __pyx_L1_error) + + /* "talib/_stream.pxi":3916 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_stream.pxi":3918 + * 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.pxi":3919 + * raise 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__1844, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3919, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 3919, __pyx_L1_error) + + /* "talib/_stream.pxi":3918 + * 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.pxi":3920 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":3921 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3921, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 3921, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":3920 + * 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 = high.data + */ + } + + /* "talib/_stream.pxi":3922 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":3923 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":3924 + * high_data = 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__1845, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 3924, __pyx_L1_error) + + /* "talib/_stream.pxi":3923 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_stream.pxi":3925 + * 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.pxi":3926 + * raise 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__1846, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 3926, __pyx_L1_error) + + /* "talib/_stream.pxi":3925 + * 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.pxi":3927 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":3928 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 3928, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":3927 + * 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 = low.data + */ + } + + /* "talib/_stream.pxi":3929 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":3930 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":3931 + * low_data = 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__1847, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 3931, __pyx_L1_error) + + /* "talib/_stream.pxi":3930 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_stream.pxi":3932 + * 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.pxi":3933 + * raise 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__1848, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 3933, __pyx_L1_error) + + /* "talib/_stream.pxi":3932 + * 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.pxi":3934 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":3935 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = open.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 3935, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":3934 + * 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 = close.data + */ + } + + /* "talib/_stream.pxi":3936 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = open.shape[0] + * if length != high.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_stream.pxi":3937 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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.pxi":3938 + * close_data = 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.pxi":3939 + * 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__1849, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3939, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 3939, __pyx_L1_error) + + /* "talib/_stream.pxi":3938 + * close_data = close.data + * length = open.shape[0] + * if length != high.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != low.shape[0]: + */ + } + + /* "talib/_stream.pxi":3940 + * 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.pxi":3941 + * 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__1850, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3941, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 3941, __pyx_L1_error) + + /* "talib/_stream.pxi":3940 + * 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.pxi":3942 + * 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.pxi":3943 + * 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__1851, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3943, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 3943, __pyx_L1_error) + + /* "talib/_stream.pxi":3942 + * 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.pxi":3944 + * 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.pxi":3945 + * 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.pxi":3946 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CDLRISEFALL3METHODS, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3946, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":3947 + * 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(3, 3947, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":3887 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":3951 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_8c_ta_lib_481stream_CDLSEPARATINGLINES(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_480stream_CDLSEPARATINGLINES[] = " 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_8c_ta_lib_481stream_CDLSEPARATINGLINES = {"stream_CDLSEPARATINGLINES", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_481stream_CDLSEPARATINGLINES, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_480stream_CDLSEPARATINGLINES}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_481stream_CDLSEPARATINGLINES(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("stream_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("stream_CDLSEPARATINGLINES", 1, 4, 4, 1); __PYX_ERR(3, 3951, __pyx_L3_error) + } + case 2: + if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_CDLSEPARATINGLINES", 1, 4, 4, 2); __PYX_ERR(3, 3951, __pyx_L3_error) + } + case 3: + if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_CDLSEPARATINGLINES", 1, 4, 4, 3); __PYX_ERR(3, 3951, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "stream_CDLSEPARATINGLINES") < 0)) __PYX_ERR(3, 3951, __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("stream_CDLSEPARATINGLINES", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 3951, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 3951, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(3, 3951, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(3, 3951, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(3, 3951, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_480stream_CDLSEPARATINGLINES(__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_8c_ta_lib_480stream_CDLSEPARATINGLINES(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("stream_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.pxi":3973 + * 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.pxi":3974 + * 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__1852, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3974, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 3974, __pyx_L1_error) + + /* "talib/_stream.pxi":3973 + * int outnbelement + * int outinteger + * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("open is not double") + * if open.ndim != 1: + */ + } + + /* "talib/_stream.pxi":3975 + * 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.pxi":3976 + * 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__1853, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3976, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 3976, __pyx_L1_error) + + /* "talib/_stream.pxi":3975 + * 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.pxi":3977 + * 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 = open.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":3978 + * raise Exception("open has wrong dimensions") + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3978, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 3978, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":3977 + * 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 = open.data + */ + } + + /* "talib/_stream.pxi":3979 + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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.pxi":3980 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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.pxi":3981 + * open_data = 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__1854, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3981, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 3981, __pyx_L1_error) + + /* "talib/_stream.pxi":3980 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_stream.pxi":3982 + * 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.pxi":3983 + * raise 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__1855, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3983, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 3983, __pyx_L1_error) + + /* "talib/_stream.pxi":3982 + * 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.pxi":3984 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":3985 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 3985, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 3985, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":3984 + * 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 = high.data + */ + } + + /* "talib/_stream.pxi":3986 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":3987 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":3988 + * high_data = 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__1856, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 3988, __pyx_L1_error) + + /* "talib/_stream.pxi":3987 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_stream.pxi":3989 + * 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.pxi":3990 + * raise 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__1857, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 3990, __pyx_L1_error) + + /* "talib/_stream.pxi":3989 + * 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.pxi":3991 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":3992 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 3992, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":3991 + * 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 = low.data + */ + } + + /* "talib/_stream.pxi":3993 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":3994 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":3995 + * low_data = 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__1858, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 3995, __pyx_L1_error) + + /* "talib/_stream.pxi":3994 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_stream.pxi":3996 + * 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.pxi":3997 + * raise 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__1859, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 3997, __pyx_L1_error) + + /* "talib/_stream.pxi":3996 + * 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.pxi":3998 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":3999 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = open.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 3999, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":3998 + * 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 = close.data + */ + } + + /* "talib/_stream.pxi":4000 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = open.shape[0] + * if length != high.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_stream.pxi":4001 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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.pxi":4002 + * close_data = 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.pxi":4003 + * 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__1860, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4003, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 4003, __pyx_L1_error) + + /* "talib/_stream.pxi":4002 + * close_data = close.data + * length = open.shape[0] + * if length != high.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != low.shape[0]: + */ + } + + /* "talib/_stream.pxi":4004 + * 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.pxi":4005 + * 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__1861, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4005, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 4005, __pyx_L1_error) + + /* "talib/_stream.pxi":4004 + * 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.pxi":4006 + * 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.pxi":4007 + * 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__1862, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4007, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 4007, __pyx_L1_error) + + /* "talib/_stream.pxi":4006 + * 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.pxi":4008 + * 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.pxi":4009 + * 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.pxi":4010 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CDLSEPARATINGLINES, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4010, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":4011 + * 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(3, 4011, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":3951 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":4015 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_8c_ta_lib_483stream_CDLSHOOTINGSTAR(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_482stream_CDLSHOOTINGSTAR[] = " 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_8c_ta_lib_483stream_CDLSHOOTINGSTAR = {"stream_CDLSHOOTINGSTAR", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_483stream_CDLSHOOTINGSTAR, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_482stream_CDLSHOOTINGSTAR}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_483stream_CDLSHOOTINGSTAR(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("stream_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("stream_CDLSHOOTINGSTAR", 1, 4, 4, 1); __PYX_ERR(3, 4015, __pyx_L3_error) + } + case 2: + if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_CDLSHOOTINGSTAR", 1, 4, 4, 2); __PYX_ERR(3, 4015, __pyx_L3_error) + } + case 3: + if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_CDLSHOOTINGSTAR", 1, 4, 4, 3); __PYX_ERR(3, 4015, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "stream_CDLSHOOTINGSTAR") < 0)) __PYX_ERR(3, 4015, __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("stream_CDLSHOOTINGSTAR", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 4015, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 4015, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(3, 4015, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(3, 4015, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(3, 4015, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_482stream_CDLSHOOTINGSTAR(__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_8c_ta_lib_482stream_CDLSHOOTINGSTAR(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("stream_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.pxi":4037 + * 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.pxi":4038 + * 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__1863, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4038, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 4038, __pyx_L1_error) + + /* "talib/_stream.pxi":4037 + * int outnbelement + * int outinteger + * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("open is not double") + * if open.ndim != 1: + */ + } + + /* "talib/_stream.pxi":4039 + * 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.pxi":4040 + * 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__1864, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4040, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 4040, __pyx_L1_error) + + /* "talib/_stream.pxi":4039 + * 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.pxi":4041 + * 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 = open.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":4042 + * raise Exception("open has wrong dimensions") + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4042, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 4042, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":4041 + * 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 = open.data + */ + } + + /* "talib/_stream.pxi":4043 + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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.pxi":4044 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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.pxi":4045 + * open_data = 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__1865, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4045, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 4045, __pyx_L1_error) + + /* "talib/_stream.pxi":4044 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_stream.pxi":4046 + * 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.pxi":4047 + * raise 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__1866, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4047, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 4047, __pyx_L1_error) + + /* "talib/_stream.pxi":4046 + * 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.pxi":4048 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":4049 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4049, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 4049, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":4048 + * 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 = high.data + */ + } + + /* "talib/_stream.pxi":4050 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":4051 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":4052 + * high_data = 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__1867, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 4052, __pyx_L1_error) + + /* "talib/_stream.pxi":4051 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_stream.pxi":4053 + * 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.pxi":4054 + * raise 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__1868, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 4054, __pyx_L1_error) + + /* "talib/_stream.pxi":4053 + * 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.pxi":4055 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":4056 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 4056, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":4055 + * 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 = low.data + */ + } + + /* "talib/_stream.pxi":4057 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":4058 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":4059 + * low_data = 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__1869, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 4059, __pyx_L1_error) + + /* "talib/_stream.pxi":4058 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_stream.pxi":4060 + * 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.pxi":4061 + * raise 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__1870, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 4061, __pyx_L1_error) + + /* "talib/_stream.pxi":4060 + * 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.pxi":4062 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":4063 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = open.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 4063, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":4062 + * 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 = close.data + */ + } + + /* "talib/_stream.pxi":4064 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = open.shape[0] + * if length != high.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_stream.pxi":4065 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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.pxi":4066 + * close_data = 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.pxi":4067 + * 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__1871, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4067, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 4067, __pyx_L1_error) + + /* "talib/_stream.pxi":4066 + * close_data = close.data + * length = open.shape[0] + * if length != high.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != low.shape[0]: + */ + } + + /* "talib/_stream.pxi":4068 + * 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.pxi":4069 + * 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__1872, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4069, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 4069, __pyx_L1_error) + + /* "talib/_stream.pxi":4068 + * 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.pxi":4070 + * 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.pxi":4071 + * 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__1873, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4071, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 4071, __pyx_L1_error) + + /* "talib/_stream.pxi":4070 + * 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.pxi":4072 + * 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.pxi":4073 + * 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.pxi":4074 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CDLSHOOTINGSTAR, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4074, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":4075 + * 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(3, 4075, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":4015 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":4079 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_8c_ta_lib_485stream_CDLSHORTLINE(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_484stream_CDLSHORTLINE[] = " 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_8c_ta_lib_485stream_CDLSHORTLINE = {"stream_CDLSHORTLINE", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_485stream_CDLSHORTLINE, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_484stream_CDLSHORTLINE}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_485stream_CDLSHORTLINE(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("stream_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("stream_CDLSHORTLINE", 1, 4, 4, 1); __PYX_ERR(3, 4079, __pyx_L3_error) + } + case 2: + if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_CDLSHORTLINE", 1, 4, 4, 2); __PYX_ERR(3, 4079, __pyx_L3_error) + } + case 3: + if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_CDLSHORTLINE", 1, 4, 4, 3); __PYX_ERR(3, 4079, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "stream_CDLSHORTLINE") < 0)) __PYX_ERR(3, 4079, __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("stream_CDLSHORTLINE", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 4079, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 4079, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(3, 4079, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(3, 4079, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(3, 4079, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_484stream_CDLSHORTLINE(__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_8c_ta_lib_484stream_CDLSHORTLINE(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("stream_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.pxi":4101 + * 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.pxi":4102 + * 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__1874, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4102, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 4102, __pyx_L1_error) + + /* "talib/_stream.pxi":4101 + * int outnbelement + * int outinteger + * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("open is not double") + * if open.ndim != 1: + */ + } + + /* "talib/_stream.pxi":4103 + * 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.pxi":4104 + * 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__1875, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4104, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 4104, __pyx_L1_error) + + /* "talib/_stream.pxi":4103 + * 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.pxi":4105 + * 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 = open.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":4106 + * raise Exception("open has wrong dimensions") + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4106, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 4106, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":4105 + * 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 = open.data + */ + } + + /* "talib/_stream.pxi":4107 + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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.pxi":4108 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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.pxi":4109 + * open_data = 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__1876, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4109, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 4109, __pyx_L1_error) + + /* "talib/_stream.pxi":4108 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_stream.pxi":4110 + * 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.pxi":4111 + * raise 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__1877, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4111, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 4111, __pyx_L1_error) + + /* "talib/_stream.pxi":4110 + * 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.pxi":4112 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":4113 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4113, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 4113, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":4112 + * 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 = high.data + */ + } + + /* "talib/_stream.pxi":4114 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":4115 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":4116 + * high_data = 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__1878, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 4116, __pyx_L1_error) + + /* "talib/_stream.pxi":4115 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_stream.pxi":4117 + * 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.pxi":4118 + * raise 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__1879, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 4118, __pyx_L1_error) + + /* "talib/_stream.pxi":4117 + * 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.pxi":4119 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":4120 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 4120, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":4119 + * 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 = low.data + */ + } + + /* "talib/_stream.pxi":4121 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":4122 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":4123 + * low_data = 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__1880, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 4123, __pyx_L1_error) + + /* "talib/_stream.pxi":4122 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_stream.pxi":4124 + * 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.pxi":4125 + * raise 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__1881, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 4125, __pyx_L1_error) + + /* "talib/_stream.pxi":4124 + * 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.pxi":4126 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":4127 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = open.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 4127, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":4126 + * 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 = close.data + */ + } + + /* "talib/_stream.pxi":4128 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = open.shape[0] + * if length != high.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_stream.pxi":4129 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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.pxi":4130 + * close_data = 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.pxi":4131 + * 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__1882, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4131, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 4131, __pyx_L1_error) + + /* "talib/_stream.pxi":4130 + * close_data = close.data + * length = open.shape[0] + * if length != high.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != low.shape[0]: + */ + } + + /* "talib/_stream.pxi":4132 + * 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.pxi":4133 + * 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__1883, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4133, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 4133, __pyx_L1_error) + + /* "talib/_stream.pxi":4132 + * 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.pxi":4134 + * 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.pxi":4135 + * 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__1884, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4135, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 4135, __pyx_L1_error) + + /* "talib/_stream.pxi":4134 + * 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.pxi":4136 + * 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.pxi":4137 + * 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.pxi":4138 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CDLSHORTLINE, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4138, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":4139 + * 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(3, 4139, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":4079 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":4143 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_8c_ta_lib_487stream_CDLSPINNINGTOP(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_486stream_CDLSPINNINGTOP[] = " 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_8c_ta_lib_487stream_CDLSPINNINGTOP = {"stream_CDLSPINNINGTOP", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_487stream_CDLSPINNINGTOP, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_486stream_CDLSPINNINGTOP}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_487stream_CDLSPINNINGTOP(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("stream_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("stream_CDLSPINNINGTOP", 1, 4, 4, 1); __PYX_ERR(3, 4143, __pyx_L3_error) + } + case 2: + if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_CDLSPINNINGTOP", 1, 4, 4, 2); __PYX_ERR(3, 4143, __pyx_L3_error) + } + case 3: + if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_CDLSPINNINGTOP", 1, 4, 4, 3); __PYX_ERR(3, 4143, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "stream_CDLSPINNINGTOP") < 0)) __PYX_ERR(3, 4143, __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("stream_CDLSPINNINGTOP", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 4143, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 4143, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(3, 4143, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(3, 4143, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(3, 4143, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_486stream_CDLSPINNINGTOP(__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_8c_ta_lib_486stream_CDLSPINNINGTOP(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("stream_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.pxi":4165 + * 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.pxi":4166 + * 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__1885, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4166, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 4166, __pyx_L1_error) + + /* "talib/_stream.pxi":4165 + * int outnbelement + * int outinteger + * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("open is not double") + * if open.ndim != 1: + */ + } + + /* "talib/_stream.pxi":4167 + * 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.pxi":4168 + * 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__1886, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4168, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 4168, __pyx_L1_error) + + /* "talib/_stream.pxi":4167 + * 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.pxi":4169 + * 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 = open.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":4170 + * raise Exception("open has wrong dimensions") + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4170, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 4170, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":4169 + * 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 = open.data + */ + } + + /* "talib/_stream.pxi":4171 + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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.pxi":4172 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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.pxi":4173 + * open_data = 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__1887, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4173, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 4173, __pyx_L1_error) + + /* "talib/_stream.pxi":4172 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_stream.pxi":4174 + * 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.pxi":4175 + * raise 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__1888, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4175, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 4175, __pyx_L1_error) + + /* "talib/_stream.pxi":4174 + * 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.pxi":4176 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":4177 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4177, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 4177, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":4176 + * 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 = high.data + */ + } + + /* "talib/_stream.pxi":4178 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":4179 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":4180 + * high_data = 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__1889, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 4180, __pyx_L1_error) + + /* "talib/_stream.pxi":4179 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_stream.pxi":4181 + * 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.pxi":4182 + * raise 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__1890, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 4182, __pyx_L1_error) + + /* "talib/_stream.pxi":4181 + * 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.pxi":4183 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":4184 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 4184, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":4183 + * 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 = low.data + */ + } + + /* "talib/_stream.pxi":4185 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":4186 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":4187 + * low_data = 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__1891, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 4187, __pyx_L1_error) + + /* "talib/_stream.pxi":4186 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_stream.pxi":4188 + * 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.pxi":4189 + * raise 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__1892, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 4189, __pyx_L1_error) + + /* "talib/_stream.pxi":4188 + * 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.pxi":4190 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":4191 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = open.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 4191, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":4190 + * 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 = close.data + */ + } + + /* "talib/_stream.pxi":4192 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = open.shape[0] + * if length != high.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_stream.pxi":4193 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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.pxi":4194 + * close_data = 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.pxi":4195 + * 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__1893, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4195, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 4195, __pyx_L1_error) + + /* "talib/_stream.pxi":4194 + * close_data = close.data + * length = open.shape[0] + * if length != high.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != low.shape[0]: + */ + } + + /* "talib/_stream.pxi":4196 + * 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.pxi":4197 + * 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__1894, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4197, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 4197, __pyx_L1_error) + + /* "talib/_stream.pxi":4196 + * 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.pxi":4198 + * 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.pxi":4199 + * 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__1895, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4199, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 4199, __pyx_L1_error) + + /* "talib/_stream.pxi":4198 + * 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.pxi":4200 + * 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.pxi":4201 + * 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.pxi":4202 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CDLSPINNINGTOP, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4202, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":4203 + * 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(3, 4203, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":4143 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":4207 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_8c_ta_lib_489stream_CDLSTALLEDPATTERN(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_488stream_CDLSTALLEDPATTERN[] = " 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_8c_ta_lib_489stream_CDLSTALLEDPATTERN = {"stream_CDLSTALLEDPATTERN", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_489stream_CDLSTALLEDPATTERN, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_488stream_CDLSTALLEDPATTERN}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_489stream_CDLSTALLEDPATTERN(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("stream_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("stream_CDLSTALLEDPATTERN", 1, 4, 4, 1); __PYX_ERR(3, 4207, __pyx_L3_error) + } + case 2: + if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_CDLSTALLEDPATTERN", 1, 4, 4, 2); __PYX_ERR(3, 4207, __pyx_L3_error) + } + case 3: + if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_CDLSTALLEDPATTERN", 1, 4, 4, 3); __PYX_ERR(3, 4207, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "stream_CDLSTALLEDPATTERN") < 0)) __PYX_ERR(3, 4207, __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("stream_CDLSTALLEDPATTERN", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 4207, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 4207, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(3, 4207, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(3, 4207, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(3, 4207, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_488stream_CDLSTALLEDPATTERN(__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_8c_ta_lib_488stream_CDLSTALLEDPATTERN(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("stream_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.pxi":4229 + * 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.pxi":4230 + * 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__1896, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4230, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 4230, __pyx_L1_error) + + /* "talib/_stream.pxi":4229 + * int outnbelement + * int outinteger + * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("open is not double") + * if open.ndim != 1: + */ + } + + /* "talib/_stream.pxi":4231 + * 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.pxi":4232 + * 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__1897, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4232, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 4232, __pyx_L1_error) + + /* "talib/_stream.pxi":4231 + * 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.pxi":4233 + * 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 = open.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":4234 + * raise Exception("open has wrong dimensions") + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4234, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 4234, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":4233 + * 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 = open.data + */ + } + + /* "talib/_stream.pxi":4235 + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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.pxi":4236 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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.pxi":4237 + * open_data = 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__1898, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4237, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 4237, __pyx_L1_error) + + /* "talib/_stream.pxi":4236 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_stream.pxi":4238 + * 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.pxi":4239 + * raise 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__1899, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4239, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 4239, __pyx_L1_error) + + /* "talib/_stream.pxi":4238 + * 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.pxi":4240 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":4241 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4241, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 4241, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":4240 + * 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 = high.data + */ + } + + /* "talib/_stream.pxi":4242 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":4243 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":4244 + * high_data = 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__1900, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 4244, __pyx_L1_error) + + /* "talib/_stream.pxi":4243 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_stream.pxi":4245 + * 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.pxi":4246 + * raise 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__1901, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 4246, __pyx_L1_error) + + /* "talib/_stream.pxi":4245 + * 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.pxi":4247 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":4248 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 4248, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":4247 + * 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 = low.data + */ + } + + /* "talib/_stream.pxi":4249 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":4250 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":4251 + * low_data = 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__1902, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 4251, __pyx_L1_error) + + /* "talib/_stream.pxi":4250 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_stream.pxi":4252 + * 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.pxi":4253 + * raise 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__1903, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 4253, __pyx_L1_error) + + /* "talib/_stream.pxi":4252 + * 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.pxi":4254 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":4255 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = open.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 4255, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":4254 + * 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 = close.data + */ + } + + /* "talib/_stream.pxi":4256 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = open.shape[0] + * if length != high.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_stream.pxi":4257 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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.pxi":4258 + * close_data = 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.pxi":4259 + * 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__1904, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4259, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 4259, __pyx_L1_error) + + /* "talib/_stream.pxi":4258 + * close_data = close.data + * length = open.shape[0] + * if length != high.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != low.shape[0]: + */ + } + + /* "talib/_stream.pxi":4260 + * 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.pxi":4261 + * 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__1905, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4261, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 4261, __pyx_L1_error) + + /* "talib/_stream.pxi":4260 + * 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.pxi":4262 + * 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.pxi":4263 + * 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__1906, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4263, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 4263, __pyx_L1_error) + + /* "talib/_stream.pxi":4262 + * 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.pxi":4264 + * 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.pxi":4265 + * 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.pxi":4266 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CDLSTALLEDPATTERN, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4266, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":4267 + * 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(3, 4267, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":4207 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":4271 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_8c_ta_lib_491stream_CDLSTICKSANDWICH(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_490stream_CDLSTICKSANDWICH[] = " 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_8c_ta_lib_491stream_CDLSTICKSANDWICH = {"stream_CDLSTICKSANDWICH", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_491stream_CDLSTICKSANDWICH, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_490stream_CDLSTICKSANDWICH}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_491stream_CDLSTICKSANDWICH(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("stream_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("stream_CDLSTICKSANDWICH", 1, 4, 4, 1); __PYX_ERR(3, 4271, __pyx_L3_error) + } + case 2: + if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_CDLSTICKSANDWICH", 1, 4, 4, 2); __PYX_ERR(3, 4271, __pyx_L3_error) + } + case 3: + if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_CDLSTICKSANDWICH", 1, 4, 4, 3); __PYX_ERR(3, 4271, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "stream_CDLSTICKSANDWICH") < 0)) __PYX_ERR(3, 4271, __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("stream_CDLSTICKSANDWICH", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 4271, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 4271, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(3, 4271, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(3, 4271, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(3, 4271, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_490stream_CDLSTICKSANDWICH(__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_8c_ta_lib_490stream_CDLSTICKSANDWICH(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("stream_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.pxi":4293 + * 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.pxi":4294 + * 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__1907, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4294, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 4294, __pyx_L1_error) + + /* "talib/_stream.pxi":4293 + * int outnbelement + * int outinteger + * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("open is not double") + * if open.ndim != 1: + */ + } + + /* "talib/_stream.pxi":4295 + * 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.pxi":4296 + * 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__1908, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4296, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 4296, __pyx_L1_error) + + /* "talib/_stream.pxi":4295 + * 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.pxi":4297 + * 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 = open.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":4298 + * raise Exception("open has wrong dimensions") + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4298, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 4298, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":4297 + * 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 = open.data + */ + } + + /* "talib/_stream.pxi":4299 + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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.pxi":4300 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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.pxi":4301 + * open_data = 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__1909, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4301, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 4301, __pyx_L1_error) + + /* "talib/_stream.pxi":4300 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_stream.pxi":4302 + * 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.pxi":4303 + * raise 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__1910, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4303, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 4303, __pyx_L1_error) + + /* "talib/_stream.pxi":4302 + * 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.pxi":4304 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":4305 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4305, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 4305, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":4304 + * 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 = high.data + */ + } + + /* "talib/_stream.pxi":4306 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":4307 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":4308 + * high_data = 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__1911, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 4308, __pyx_L1_error) + + /* "talib/_stream.pxi":4307 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_stream.pxi":4309 + * 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.pxi":4310 + * raise 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__1912, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 4310, __pyx_L1_error) + + /* "talib/_stream.pxi":4309 + * 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.pxi":4311 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":4312 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 4312, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":4311 + * 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 = low.data + */ + } + + /* "talib/_stream.pxi":4313 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":4314 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":4315 + * low_data = 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__1913, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 4315, __pyx_L1_error) + + /* "talib/_stream.pxi":4314 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_stream.pxi":4316 + * 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.pxi":4317 + * raise 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__1914, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 4317, __pyx_L1_error) + + /* "talib/_stream.pxi":4316 + * 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.pxi":4318 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":4319 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = open.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 4319, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":4318 + * 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 = close.data + */ + } + + /* "talib/_stream.pxi":4320 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = open.shape[0] + * if length != high.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_stream.pxi":4321 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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.pxi":4322 + * close_data = 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.pxi":4323 + * 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__1915, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4323, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 4323, __pyx_L1_error) + + /* "talib/_stream.pxi":4322 + * close_data = close.data + * length = open.shape[0] + * if length != high.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != low.shape[0]: + */ + } + + /* "talib/_stream.pxi":4324 + * 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.pxi":4325 + * 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__1916, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4325, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 4325, __pyx_L1_error) + + /* "talib/_stream.pxi":4324 + * 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.pxi":4326 + * 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.pxi":4327 + * 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__1917, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4327, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 4327, __pyx_L1_error) + + /* "talib/_stream.pxi":4326 + * 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.pxi":4328 + * 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.pxi":4329 + * 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.pxi":4330 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CDLSTICKSANDWICH, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4330, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":4331 + * 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(3, 4331, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":4271 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":4335 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_8c_ta_lib_493stream_CDLTAKURI(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_492stream_CDLTAKURI[] = " 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_8c_ta_lib_493stream_CDLTAKURI = {"stream_CDLTAKURI", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_493stream_CDLTAKURI, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_492stream_CDLTAKURI}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_493stream_CDLTAKURI(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("stream_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("stream_CDLTAKURI", 1, 4, 4, 1); __PYX_ERR(3, 4335, __pyx_L3_error) + } + case 2: + if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_CDLTAKURI", 1, 4, 4, 2); __PYX_ERR(3, 4335, __pyx_L3_error) + } + case 3: + if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_CDLTAKURI", 1, 4, 4, 3); __PYX_ERR(3, 4335, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "stream_CDLTAKURI") < 0)) __PYX_ERR(3, 4335, __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("stream_CDLTAKURI", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 4335, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 4335, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(3, 4335, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(3, 4335, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(3, 4335, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_492stream_CDLTAKURI(__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_8c_ta_lib_492stream_CDLTAKURI(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("stream_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.pxi":4357 + * 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.pxi":4358 + * 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__1918, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4358, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 4358, __pyx_L1_error) + + /* "talib/_stream.pxi":4357 + * int outnbelement + * int outinteger + * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("open is not double") + * if open.ndim != 1: + */ + } + + /* "talib/_stream.pxi":4359 + * 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.pxi":4360 + * 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__1919, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4360, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 4360, __pyx_L1_error) + + /* "talib/_stream.pxi":4359 + * 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.pxi":4361 + * 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 = open.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":4362 + * raise Exception("open has wrong dimensions") + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4362, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 4362, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":4361 + * 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 = open.data + */ + } + + /* "talib/_stream.pxi":4363 + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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.pxi":4364 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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.pxi":4365 + * open_data = 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__1920, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4365, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 4365, __pyx_L1_error) + + /* "talib/_stream.pxi":4364 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_stream.pxi":4366 + * 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.pxi":4367 + * raise 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__1921, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4367, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 4367, __pyx_L1_error) + + /* "talib/_stream.pxi":4366 + * 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.pxi":4368 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":4369 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4369, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 4369, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":4368 + * 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 = high.data + */ + } + + /* "talib/_stream.pxi":4370 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":4371 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":4372 + * high_data = 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__1922, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 4372, __pyx_L1_error) + + /* "talib/_stream.pxi":4371 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_stream.pxi":4373 + * 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.pxi":4374 + * raise 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__1923, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 4374, __pyx_L1_error) + + /* "talib/_stream.pxi":4373 + * 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.pxi":4375 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":4376 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 4376, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":4375 + * 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 = low.data + */ + } + + /* "talib/_stream.pxi":4377 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":4378 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":4379 + * low_data = 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__1924, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 4379, __pyx_L1_error) + + /* "talib/_stream.pxi":4378 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_stream.pxi":4380 + * 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.pxi":4381 + * raise 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__1925, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 4381, __pyx_L1_error) + + /* "talib/_stream.pxi":4380 + * 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.pxi":4382 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":4383 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = open.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 4383, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":4382 + * 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 = close.data + */ + } + + /* "talib/_stream.pxi":4384 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = open.shape[0] + * if length != high.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_stream.pxi":4385 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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.pxi":4386 + * close_data = 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.pxi":4387 + * 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__1926, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4387, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 4387, __pyx_L1_error) + + /* "talib/_stream.pxi":4386 + * close_data = close.data + * length = open.shape[0] + * if length != high.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != low.shape[0]: + */ + } + + /* "talib/_stream.pxi":4388 + * 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.pxi":4389 + * 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__1927, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4389, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 4389, __pyx_L1_error) + + /* "talib/_stream.pxi":4388 + * 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.pxi":4390 + * 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.pxi":4391 + * 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__1928, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4391, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 4391, __pyx_L1_error) + + /* "talib/_stream.pxi":4390 + * 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.pxi":4392 + * 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.pxi":4393 + * 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.pxi":4394 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CDLTAKURI, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4394, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":4395 + * 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(3, 4395, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":4335 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":4399 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_8c_ta_lib_495stream_CDLTASUKIGAP(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_494stream_CDLTASUKIGAP[] = " 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_8c_ta_lib_495stream_CDLTASUKIGAP = {"stream_CDLTASUKIGAP", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_495stream_CDLTASUKIGAP, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_494stream_CDLTASUKIGAP}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_495stream_CDLTASUKIGAP(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("stream_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("stream_CDLTASUKIGAP", 1, 4, 4, 1); __PYX_ERR(3, 4399, __pyx_L3_error) + } + case 2: + if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_CDLTASUKIGAP", 1, 4, 4, 2); __PYX_ERR(3, 4399, __pyx_L3_error) + } + case 3: + if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_CDLTASUKIGAP", 1, 4, 4, 3); __PYX_ERR(3, 4399, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "stream_CDLTASUKIGAP") < 0)) __PYX_ERR(3, 4399, __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("stream_CDLTASUKIGAP", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 4399, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 4399, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(3, 4399, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(3, 4399, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(3, 4399, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_494stream_CDLTASUKIGAP(__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_8c_ta_lib_494stream_CDLTASUKIGAP(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("stream_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.pxi":4421 + * 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.pxi":4422 + * 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__1929, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4422, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 4422, __pyx_L1_error) + + /* "talib/_stream.pxi":4421 + * int outnbelement + * int outinteger + * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("open is not double") + * if open.ndim != 1: + */ + } + + /* "talib/_stream.pxi":4423 + * 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.pxi":4424 + * 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__1930, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4424, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 4424, __pyx_L1_error) + + /* "talib/_stream.pxi":4423 + * 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.pxi":4425 + * 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 = open.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":4426 + * raise Exception("open has wrong dimensions") + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4426, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 4426, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":4425 + * 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 = open.data + */ + } + + /* "talib/_stream.pxi":4427 + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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.pxi":4428 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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.pxi":4429 + * open_data = 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__1931, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4429, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 4429, __pyx_L1_error) + + /* "talib/_stream.pxi":4428 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_stream.pxi":4430 + * 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.pxi":4431 + * raise 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__1932, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4431, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 4431, __pyx_L1_error) + + /* "talib/_stream.pxi":4430 + * 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.pxi":4432 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":4433 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4433, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 4433, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":4432 + * 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 = high.data + */ + } + + /* "talib/_stream.pxi":4434 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":4435 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":4436 + * high_data = 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__1933, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 4436, __pyx_L1_error) + + /* "talib/_stream.pxi":4435 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_stream.pxi":4437 + * 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.pxi":4438 + * raise 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__1934, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 4438, __pyx_L1_error) + + /* "talib/_stream.pxi":4437 + * 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.pxi":4439 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":4440 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 4440, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":4439 + * 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 = low.data + */ + } + + /* "talib/_stream.pxi":4441 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":4442 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":4443 + * low_data = 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__1935, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 4443, __pyx_L1_error) + + /* "talib/_stream.pxi":4442 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_stream.pxi":4444 + * 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.pxi":4445 + * raise 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__1936, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 4445, __pyx_L1_error) + + /* "talib/_stream.pxi":4444 + * 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.pxi":4446 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":4447 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = open.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 4447, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":4446 + * 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 = close.data + */ + } + + /* "talib/_stream.pxi":4448 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = open.shape[0] + * if length != high.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_stream.pxi":4449 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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.pxi":4450 + * close_data = 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.pxi":4451 + * 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__1937, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4451, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 4451, __pyx_L1_error) + + /* "talib/_stream.pxi":4450 + * close_data = close.data + * length = open.shape[0] + * if length != high.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != low.shape[0]: + */ + } + + /* "talib/_stream.pxi":4452 + * 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.pxi":4453 + * 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__1938, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4453, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 4453, __pyx_L1_error) + + /* "talib/_stream.pxi":4452 + * 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.pxi":4454 + * 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.pxi":4455 + * 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__1939, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4455, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 4455, __pyx_L1_error) + + /* "talib/_stream.pxi":4454 + * 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.pxi":4456 + * 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.pxi":4457 + * 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.pxi":4458 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CDLTASUKIGAP, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4458, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":4459 + * 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(3, 4459, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":4399 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":4463 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_8c_ta_lib_497stream_CDLTHRUSTING(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_496stream_CDLTHRUSTING[] = " 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_8c_ta_lib_497stream_CDLTHRUSTING = {"stream_CDLTHRUSTING", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_497stream_CDLTHRUSTING, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_496stream_CDLTHRUSTING}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_497stream_CDLTHRUSTING(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("stream_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("stream_CDLTHRUSTING", 1, 4, 4, 1); __PYX_ERR(3, 4463, __pyx_L3_error) + } + case 2: + if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_CDLTHRUSTING", 1, 4, 4, 2); __PYX_ERR(3, 4463, __pyx_L3_error) + } + case 3: + if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_CDLTHRUSTING", 1, 4, 4, 3); __PYX_ERR(3, 4463, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "stream_CDLTHRUSTING") < 0)) __PYX_ERR(3, 4463, __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("stream_CDLTHRUSTING", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 4463, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 4463, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(3, 4463, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(3, 4463, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(3, 4463, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_496stream_CDLTHRUSTING(__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_8c_ta_lib_496stream_CDLTHRUSTING(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("stream_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.pxi":4485 + * 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.pxi":4486 + * 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__1940, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4486, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 4486, __pyx_L1_error) + + /* "talib/_stream.pxi":4485 + * int outnbelement + * int outinteger + * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("open is not double") + * if open.ndim != 1: + */ + } + + /* "talib/_stream.pxi":4487 + * 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.pxi":4488 + * 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__1941, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4488, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 4488, __pyx_L1_error) + + /* "talib/_stream.pxi":4487 + * 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.pxi":4489 + * 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 = open.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":4490 + * raise Exception("open has wrong dimensions") + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4490, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 4490, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":4489 + * 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 = open.data + */ + } + + /* "talib/_stream.pxi":4491 + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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.pxi":4492 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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.pxi":4493 + * open_data = 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__1942, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4493, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 4493, __pyx_L1_error) + + /* "talib/_stream.pxi":4492 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_stream.pxi":4494 + * 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.pxi":4495 + * raise 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__1943, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4495, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 4495, __pyx_L1_error) + + /* "talib/_stream.pxi":4494 + * 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.pxi":4496 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":4497 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4497, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 4497, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":4496 + * 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 = high.data + */ + } + + /* "talib/_stream.pxi":4498 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":4499 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":4500 + * high_data = 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__1944, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 4500, __pyx_L1_error) + + /* "talib/_stream.pxi":4499 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_stream.pxi":4501 + * 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.pxi":4502 + * raise 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__1945, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 4502, __pyx_L1_error) + + /* "talib/_stream.pxi":4501 + * 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.pxi":4503 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":4504 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 4504, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":4503 + * 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 = low.data + */ + } + + /* "talib/_stream.pxi":4505 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":4506 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":4507 + * low_data = 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__1946, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 4507, __pyx_L1_error) + + /* "talib/_stream.pxi":4506 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_stream.pxi":4508 + * 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.pxi":4509 + * raise 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__1947, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 4509, __pyx_L1_error) + + /* "talib/_stream.pxi":4508 + * 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.pxi":4510 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":4511 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = open.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 4511, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":4510 + * 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 = close.data + */ + } + + /* "talib/_stream.pxi":4512 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = open.shape[0] + * if length != high.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_stream.pxi":4513 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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.pxi":4514 + * close_data = 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.pxi":4515 + * 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__1948, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4515, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 4515, __pyx_L1_error) + + /* "talib/_stream.pxi":4514 + * close_data = close.data + * length = open.shape[0] + * if length != high.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != low.shape[0]: + */ + } + + /* "talib/_stream.pxi":4516 + * 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.pxi":4517 + * 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__1949, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4517, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 4517, __pyx_L1_error) + + /* "talib/_stream.pxi":4516 + * 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.pxi":4518 + * 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.pxi":4519 + * 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__1950, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4519, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 4519, __pyx_L1_error) + + /* "talib/_stream.pxi":4518 + * 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.pxi":4520 + * 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.pxi":4521 + * 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.pxi":4522 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CDLTHRUSTING, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4522, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":4523 + * 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(3, 4523, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":4463 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":4527 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_8c_ta_lib_499stream_CDLTRISTAR(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_498stream_CDLTRISTAR[] = " 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_8c_ta_lib_499stream_CDLTRISTAR = {"stream_CDLTRISTAR", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_499stream_CDLTRISTAR, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_498stream_CDLTRISTAR}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_499stream_CDLTRISTAR(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("stream_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("stream_CDLTRISTAR", 1, 4, 4, 1); __PYX_ERR(3, 4527, __pyx_L3_error) + } + case 2: + if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_CDLTRISTAR", 1, 4, 4, 2); __PYX_ERR(3, 4527, __pyx_L3_error) + } + case 3: + if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_CDLTRISTAR", 1, 4, 4, 3); __PYX_ERR(3, 4527, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "stream_CDLTRISTAR") < 0)) __PYX_ERR(3, 4527, __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("stream_CDLTRISTAR", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 4527, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 4527, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(3, 4527, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(3, 4527, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(3, 4527, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_498stream_CDLTRISTAR(__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_8c_ta_lib_498stream_CDLTRISTAR(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("stream_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.pxi":4549 + * 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.pxi":4550 + * 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__1951, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4550, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 4550, __pyx_L1_error) + + /* "talib/_stream.pxi":4549 + * int outnbelement + * int outinteger + * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("open is not double") + * if open.ndim != 1: + */ + } + + /* "talib/_stream.pxi":4551 + * 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.pxi":4552 + * 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__1952, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4552, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 4552, __pyx_L1_error) + + /* "talib/_stream.pxi":4551 + * 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.pxi":4553 + * 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 = open.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":4554 + * raise Exception("open has wrong dimensions") + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4554, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 4554, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":4553 + * 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 = open.data + */ + } + + /* "talib/_stream.pxi":4555 + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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.pxi":4556 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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.pxi":4557 + * open_data = 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__1953, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4557, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 4557, __pyx_L1_error) + + /* "talib/_stream.pxi":4556 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_stream.pxi":4558 + * 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.pxi":4559 + * raise 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__1954, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4559, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 4559, __pyx_L1_error) + + /* "talib/_stream.pxi":4558 + * 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.pxi":4560 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":4561 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4561, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 4561, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":4560 + * 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 = high.data + */ + } + + /* "talib/_stream.pxi":4562 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":4563 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":4564 + * high_data = 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__1955, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 4564, __pyx_L1_error) + + /* "talib/_stream.pxi":4563 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_stream.pxi":4565 + * 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.pxi":4566 + * raise 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__1956, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 4566, __pyx_L1_error) + + /* "talib/_stream.pxi":4565 + * 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.pxi":4567 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":4568 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 4568, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":4567 + * 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 = low.data + */ + } + + /* "talib/_stream.pxi":4569 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":4570 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":4571 + * low_data = 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__1957, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 4571, __pyx_L1_error) + + /* "talib/_stream.pxi":4570 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_stream.pxi":4572 + * 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.pxi":4573 + * raise 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__1958, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 4573, __pyx_L1_error) + + /* "talib/_stream.pxi":4572 + * 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.pxi":4574 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":4575 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = open.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 4575, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":4574 + * 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 = close.data + */ + } + + /* "talib/_stream.pxi":4576 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = open.shape[0] + * if length != high.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_stream.pxi":4577 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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.pxi":4578 + * close_data = 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.pxi":4579 + * 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__1959, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4579, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 4579, __pyx_L1_error) + + /* "talib/_stream.pxi":4578 + * close_data = close.data + * length = open.shape[0] + * if length != high.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != low.shape[0]: + */ + } + + /* "talib/_stream.pxi":4580 + * 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.pxi":4581 + * 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__1960, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4581, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 4581, __pyx_L1_error) + + /* "talib/_stream.pxi":4580 + * 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.pxi":4582 + * 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.pxi":4583 + * 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__1961, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4583, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 4583, __pyx_L1_error) + + /* "talib/_stream.pxi":4582 + * 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.pxi":4584 + * 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.pxi":4585 + * 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.pxi":4586 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CDLTRISTAR, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4586, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":4587 + * 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(3, 4587, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":4527 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":4591 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_8c_ta_lib_501stream_CDLUNIQUE3RIVER(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_500stream_CDLUNIQUE3RIVER[] = " 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_8c_ta_lib_501stream_CDLUNIQUE3RIVER = {"stream_CDLUNIQUE3RIVER", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_501stream_CDLUNIQUE3RIVER, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_500stream_CDLUNIQUE3RIVER}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_501stream_CDLUNIQUE3RIVER(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("stream_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("stream_CDLUNIQUE3RIVER", 1, 4, 4, 1); __PYX_ERR(3, 4591, __pyx_L3_error) + } + case 2: + if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_CDLUNIQUE3RIVER", 1, 4, 4, 2); __PYX_ERR(3, 4591, __pyx_L3_error) + } + case 3: + if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_CDLUNIQUE3RIVER", 1, 4, 4, 3); __PYX_ERR(3, 4591, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "stream_CDLUNIQUE3RIVER") < 0)) __PYX_ERR(3, 4591, __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("stream_CDLUNIQUE3RIVER", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 4591, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 4591, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(3, 4591, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(3, 4591, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(3, 4591, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_500stream_CDLUNIQUE3RIVER(__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_8c_ta_lib_500stream_CDLUNIQUE3RIVER(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("stream_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.pxi":4613 + * 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.pxi":4614 + * 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__1962, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4614, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 4614, __pyx_L1_error) + + /* "talib/_stream.pxi":4613 + * int outnbelement + * int outinteger + * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("open is not double") + * if open.ndim != 1: + */ + } + + /* "talib/_stream.pxi":4615 + * 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.pxi":4616 + * 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__1963, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4616, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 4616, __pyx_L1_error) + + /* "talib/_stream.pxi":4615 + * 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.pxi":4617 + * 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 = open.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":4618 + * raise Exception("open has wrong dimensions") + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4618, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 4618, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":4617 + * 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 = open.data + */ + } + + /* "talib/_stream.pxi":4619 + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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.pxi":4620 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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.pxi":4621 + * open_data = 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__1964, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4621, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 4621, __pyx_L1_error) + + /* "talib/_stream.pxi":4620 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_stream.pxi":4622 + * 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.pxi":4623 + * raise 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__1965, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4623, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 4623, __pyx_L1_error) + + /* "talib/_stream.pxi":4622 + * 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.pxi":4624 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":4625 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4625, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 4625, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":4624 + * 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 = high.data + */ + } + + /* "talib/_stream.pxi":4626 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":4627 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":4628 + * high_data = 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__1966, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 4628, __pyx_L1_error) + + /* "talib/_stream.pxi":4627 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_stream.pxi":4629 + * 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.pxi":4630 + * raise 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__1967, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 4630, __pyx_L1_error) + + /* "talib/_stream.pxi":4629 + * 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.pxi":4631 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":4632 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 4632, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":4631 + * 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 = low.data + */ + } + + /* "talib/_stream.pxi":4633 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":4634 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":4635 + * low_data = 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__1968, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 4635, __pyx_L1_error) + + /* "talib/_stream.pxi":4634 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_stream.pxi":4636 + * 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.pxi":4637 + * raise 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__1969, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 4637, __pyx_L1_error) + + /* "talib/_stream.pxi":4636 + * 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.pxi":4638 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":4639 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = open.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 4639, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":4638 + * 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 = close.data + */ + } + + /* "talib/_stream.pxi":4640 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = open.shape[0] + * if length != high.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_stream.pxi":4641 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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.pxi":4642 + * close_data = 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.pxi":4643 + * 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__1970, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4643, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 4643, __pyx_L1_error) + + /* "talib/_stream.pxi":4642 + * close_data = close.data + * length = open.shape[0] + * if length != high.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != low.shape[0]: + */ + } + + /* "talib/_stream.pxi":4644 + * 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.pxi":4645 + * 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__1971, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4645, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 4645, __pyx_L1_error) + + /* "talib/_stream.pxi":4644 + * 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.pxi":4646 + * 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.pxi":4647 + * 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__1972, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4647, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 4647, __pyx_L1_error) + + /* "talib/_stream.pxi":4646 + * 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.pxi":4648 + * 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.pxi":4649 + * 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.pxi":4650 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CDLUNIQUE3RIVER, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4650, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":4651 + * 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(3, 4651, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":4591 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":4655 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_8c_ta_lib_503stream_CDLUPSIDEGAP2CROWS(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_502stream_CDLUPSIDEGAP2CROWS[] = " 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_8c_ta_lib_503stream_CDLUPSIDEGAP2CROWS = {"stream_CDLUPSIDEGAP2CROWS", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_503stream_CDLUPSIDEGAP2CROWS, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_502stream_CDLUPSIDEGAP2CROWS}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_503stream_CDLUPSIDEGAP2CROWS(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("stream_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("stream_CDLUPSIDEGAP2CROWS", 1, 4, 4, 1); __PYX_ERR(3, 4655, __pyx_L3_error) + } + case 2: + if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_CDLUPSIDEGAP2CROWS", 1, 4, 4, 2); __PYX_ERR(3, 4655, __pyx_L3_error) + } + case 3: + if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_CDLUPSIDEGAP2CROWS", 1, 4, 4, 3); __PYX_ERR(3, 4655, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "stream_CDLUPSIDEGAP2CROWS") < 0)) __PYX_ERR(3, 4655, __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("stream_CDLUPSIDEGAP2CROWS", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 4655, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 4655, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(3, 4655, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(3, 4655, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(3, 4655, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_502stream_CDLUPSIDEGAP2CROWS(__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_8c_ta_lib_502stream_CDLUPSIDEGAP2CROWS(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("stream_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.pxi":4677 + * 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.pxi":4678 + * 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__1973, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4678, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 4678, __pyx_L1_error) + + /* "talib/_stream.pxi":4677 + * int outnbelement + * int outinteger + * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("open is not double") + * if open.ndim != 1: + */ + } + + /* "talib/_stream.pxi":4679 + * 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.pxi":4680 + * 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__1974, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4680, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 4680, __pyx_L1_error) + + /* "talib/_stream.pxi":4679 + * 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.pxi":4681 + * 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 = open.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":4682 + * raise Exception("open has wrong dimensions") + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4682, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 4682, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":4681 + * 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 = open.data + */ + } + + /* "talib/_stream.pxi":4683 + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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.pxi":4684 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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.pxi":4685 + * open_data = 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__1975, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4685, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 4685, __pyx_L1_error) + + /* "talib/_stream.pxi":4684 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_stream.pxi":4686 + * 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.pxi":4687 + * raise 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__1976, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4687, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 4687, __pyx_L1_error) + + /* "talib/_stream.pxi":4686 + * 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.pxi":4688 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":4689 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4689, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 4689, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":4688 + * 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 = high.data + */ + } + + /* "talib/_stream.pxi":4690 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":4691 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":4692 + * high_data = 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__1977, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 4692, __pyx_L1_error) + + /* "talib/_stream.pxi":4691 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_stream.pxi":4693 + * 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.pxi":4694 + * raise 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__1978, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 4694, __pyx_L1_error) + + /* "talib/_stream.pxi":4693 + * 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.pxi":4695 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":4696 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 4696, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":4695 + * 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 = low.data + */ + } + + /* "talib/_stream.pxi":4697 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":4698 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":4699 + * low_data = 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__1979, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 4699, __pyx_L1_error) + + /* "talib/_stream.pxi":4698 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_stream.pxi":4700 + * 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.pxi":4701 + * raise 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__1980, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 4701, __pyx_L1_error) + + /* "talib/_stream.pxi":4700 + * 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.pxi":4702 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":4703 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = open.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 4703, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":4702 + * 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 = close.data + */ + } + + /* "talib/_stream.pxi":4704 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = open.shape[0] + * if length != high.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_stream.pxi":4705 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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.pxi":4706 + * close_data = 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.pxi":4707 + * 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__1981, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4707, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 4707, __pyx_L1_error) + + /* "talib/_stream.pxi":4706 + * close_data = close.data + * length = open.shape[0] + * if length != high.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != low.shape[0]: + */ + } + + /* "talib/_stream.pxi":4708 + * 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.pxi":4709 + * 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__1982, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4709, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 4709, __pyx_L1_error) + + /* "talib/_stream.pxi":4708 + * 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.pxi":4710 + * 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.pxi":4711 + * 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__1983, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4711, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 4711, __pyx_L1_error) + + /* "talib/_stream.pxi":4710 + * 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.pxi":4712 + * 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.pxi":4713 + * 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.pxi":4714 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CDLUPSIDEGAP2CROWS, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4714, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":4715 + * 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(3, 4715, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":4655 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":4719 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_8c_ta_lib_505stream_CDLXSIDEGAP3METHODS(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_504stream_CDLXSIDEGAP3METHODS[] = " 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_8c_ta_lib_505stream_CDLXSIDEGAP3METHODS = {"stream_CDLXSIDEGAP3METHODS", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_505stream_CDLXSIDEGAP3METHODS, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_504stream_CDLXSIDEGAP3METHODS}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_505stream_CDLXSIDEGAP3METHODS(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("stream_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("stream_CDLXSIDEGAP3METHODS", 1, 4, 4, 1); __PYX_ERR(3, 4719, __pyx_L3_error) + } + case 2: + if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_low)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_CDLXSIDEGAP3METHODS", 1, 4, 4, 2); __PYX_ERR(3, 4719, __pyx_L3_error) + } + case 3: + if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_CDLXSIDEGAP3METHODS", 1, 4, 4, 3); __PYX_ERR(3, 4719, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "stream_CDLXSIDEGAP3METHODS") < 0)) __PYX_ERR(3, 4719, __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("stream_CDLXSIDEGAP3METHODS", 1, 4, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 4719, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 4719, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_high), __pyx_ptype_5numpy_ndarray, 0, "high", 0))) __PYX_ERR(3, 4719, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(3, 4719, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(3, 4719, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_504stream_CDLXSIDEGAP3METHODS(__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_8c_ta_lib_504stream_CDLXSIDEGAP3METHODS(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("stream_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.pxi":4741 + * 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.pxi":4742 + * 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__1984, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4742, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 4742, __pyx_L1_error) + + /* "talib/_stream.pxi":4741 + * int outnbelement + * int outinteger + * if PyArray_TYPE(open) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("open is not double") + * if open.ndim != 1: + */ + } + + /* "talib/_stream.pxi":4743 + * 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.pxi":4744 + * 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__1985, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4744, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 4744, __pyx_L1_error) + + /* "talib/_stream.pxi":4743 + * 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.pxi":4745 + * 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 = open.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_open) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":4746 + * raise Exception("open has wrong dimensions") + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) # <<<<<<<<<<<<<< + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_open); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4746, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 4746, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_open, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":4745 + * 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 = open.data + */ + } + + /* "talib/_stream.pxi":4747 + * if not (PyArray_FLAGS(open) & np.NPY_C_CONTIGUOUS): + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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.pxi":4748 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = 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.pxi":4749 + * open_data = 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__1986, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4749, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 4749, __pyx_L1_error) + + /* "talib/_stream.pxi":4748 + * open = PyArray_GETCONTIGUOUS(open) + * open_data = open.data + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_stream.pxi":4750 + * 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.pxi":4751 + * raise 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__1987, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4751, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 4751, __pyx_L1_error) + + /* "talib/_stream.pxi":4750 + * 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.pxi":4752 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":4753 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4753, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 4753, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":4752 + * 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 = high.data + */ + } + + /* "talib/_stream.pxi":4754 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":4755 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":4756 + * high_data = 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__1988, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 4756, __pyx_L1_error) + + /* "talib/_stream.pxi":4755 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_stream.pxi":4757 + * 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.pxi":4758 + * raise 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__1989, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 4758, __pyx_L1_error) + + /* "talib/_stream.pxi":4757 + * 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.pxi":4759 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":4760 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 4760, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":4759 + * 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 = low.data + */ + } + + /* "talib/_stream.pxi":4761 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":4762 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":4763 + * low_data = 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__1990, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 4763, __pyx_L1_error) + + /* "talib/_stream.pxi":4762 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_stream.pxi":4764 + * 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.pxi":4765 + * raise 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__1991, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 4765, __pyx_L1_error) + + /* "talib/_stream.pxi":4764 + * 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.pxi":4766 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":4767 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = open.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 4767, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":4766 + * 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 = close.data + */ + } + + /* "talib/_stream.pxi":4768 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = open.shape[0] + * if length != high.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_stream.pxi":4769 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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.pxi":4770 + * close_data = 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.pxi":4771 + * 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__1992, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4771, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 4771, __pyx_L1_error) + + /* "talib/_stream.pxi":4770 + * close_data = close.data + * length = open.shape[0] + * if length != high.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != low.shape[0]: + */ + } + + /* "talib/_stream.pxi":4772 + * 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.pxi":4773 + * 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__1993, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4773, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 4773, __pyx_L1_error) + + /* "talib/_stream.pxi":4772 + * 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.pxi":4774 + * 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.pxi":4775 + * 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__1994, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4775, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 4775, __pyx_L1_error) + + /* "talib/_stream.pxi":4774 + * 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.pxi":4776 + * 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.pxi":4777 + * 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.pxi":4778 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CDLXSIDEGAP3METHODS, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4778, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":4779 + * 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(3, 4779, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":4719 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":4783 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_CEIL( np.ndarray real not None ): # <<<<<<<<<<<<<< + * """ CEIL(real) + * + */ + +/* Python wrapper */ +static PyObject *__pyx_pw_5talib_8c_ta_lib_507stream_CEIL(PyObject *__pyx_self, PyObject *__pyx_v_real); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_506stream_CEIL[] = " 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_8c_ta_lib_507stream_CEIL = {"stream_CEIL", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_507stream_CEIL, METH_O, __pyx_doc_5talib_8c_ta_lib_506stream_CEIL}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_507stream_CEIL(PyObject *__pyx_self, PyObject *__pyx_v_real) { + PyObject *__pyx_r = 0; + __Pyx_RefNannyDeclarations + __Pyx_RefNannySetupContext("stream_CEIL (wrapper)", 0); + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_real), __pyx_ptype_5numpy_ndarray, 0, "real", 0))) __PYX_ERR(3, 4783, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_506stream_CEIL(__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_8c_ta_lib_506stream_CEIL(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("stream_CEIL", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real); + + /* "talib/_stream.pxi":4802 + * 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.pxi":4803 + * 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__1995, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4803, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 4803, __pyx_L1_error) + + /* "talib/_stream.pxi":4802 + * int outnbelement + * double outreal + * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real is not double") + * if real.ndim != 1: + */ + } + + /* "talib/_stream.pxi":4804 + * 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.pxi":4805 + * 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__1996, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4805, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 4805, __pyx_L1_error) + + /* "talib/_stream.pxi":4804 + * 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.pxi":4806 + * 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 = real.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":4807 + * raise Exception("real has wrong dimensions") + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< + * real_data = real.data + * length = real.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4807, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 4807, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":4806 + * 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 = real.data + */ + } + + /* "talib/_stream.pxi":4808 + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data # <<<<<<<<<<<<<< + * length = real.shape[0] + * outreal = NaN + */ + __pyx_v_real_data = ((double *)__pyx_v_real->data); + + /* "talib/_stream.pxi":4809 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = 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.pxi":4810 + * real_data = 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_8c_ta_lib_NaN; + + /* "talib/_stream.pxi":4811 + * 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.pxi":4812 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CEIL, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4812, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":4813 + * 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(3, 4813, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":4783 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_CEIL( np.ndarray real not None ): # <<<<<<<<<<<<<< + * """ CEIL(real) + * + */ + + /* function exit code */ + __pyx_L1_error:; + __Pyx_XDECREF(__pyx_t_2); + __Pyx_AddTraceback("talib.c_ta_lib.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.pxi":4817 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_CMO( np.ndarray real not None , int timeperiod=-2**31 ): # <<<<<<<<<<<<<< + * """ CMO(real[, timeperiod=?]) + * + */ + +/* Python wrapper */ +static PyObject *__pyx_pw_5talib_8c_ta_lib_509stream_CMO(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_508stream_CMO[] = " 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_8c_ta_lib_509stream_CMO = {"stream_CMO", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_509stream_CMO, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_508stream_CMO}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_509stream_CMO(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("stream_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, "stream_CMO") < 0)) __PYX_ERR(3, 4817, __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(3, 4817, __pyx_L3_error) + } else { + __pyx_v_timeperiod = ((int)-2147483648); + } + } + goto __pyx_L4_argument_unpacking_done; + __pyx_L5_argtuple_error:; + __Pyx_RaiseArgtupleInvalid("stream_CMO", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 4817, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 4817, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_508stream_CMO(__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_8c_ta_lib_508stream_CMO(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("stream_CMO", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real); + + /* "talib/_stream.pxi":4838 + * 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.pxi":4839 + * 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__1997, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4839, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 4839, __pyx_L1_error) + + /* "talib/_stream.pxi":4838 + * int outnbelement + * double outreal + * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real is not double") + * if real.ndim != 1: + */ + } + + /* "talib/_stream.pxi":4840 + * 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.pxi":4841 + * 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__1998, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4841, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 4841, __pyx_L1_error) + + /* "talib/_stream.pxi":4840 + * 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.pxi":4842 + * 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 = real.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":4843 + * raise Exception("real has wrong dimensions") + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< + * real_data = real.data + * length = real.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4843, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 4843, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":4842 + * 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 = real.data + */ + } + + /* "talib/_stream.pxi":4844 + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data # <<<<<<<<<<<<<< + * length = real.shape[0] + * outreal = NaN + */ + __pyx_v_real_data = ((double *)__pyx_v_real->data); + + /* "talib/_stream.pxi":4845 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = 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.pxi":4846 + * real_data = 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_8c_ta_lib_NaN; + + /* "talib/_stream.pxi":4847 + * 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.pxi":4848 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CMO, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4848, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":4849 + * 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(3, 4849, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":4817 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":4853 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_8c_ta_lib_511stream_CORREL(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_510stream_CORREL[] = " 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_8c_ta_lib_511stream_CORREL = {"stream_CORREL", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_511stream_CORREL, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_510stream_CORREL}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_511stream_CORREL(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("stream_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("stream_CORREL", 0, 2, 3, 1); __PYX_ERR(3, 4853, __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, "stream_CORREL") < 0)) __PYX_ERR(3, 4853, __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(3, 4853, __pyx_L3_error) + } else { + __pyx_v_timeperiod = ((int)-2147483648); + } + } + goto __pyx_L4_argument_unpacking_done; + __pyx_L5_argtuple_error:; + __Pyx_RaiseArgtupleInvalid("stream_CORREL", 0, 2, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 4853, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 4853, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_real1), __pyx_ptype_5numpy_ndarray, 0, "real1", 0))) __PYX_ERR(3, 4853, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_510stream_CORREL(__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_8c_ta_lib_510stream_CORREL(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("stream_CORREL", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real0); + __Pyx_INCREF((PyObject *)__pyx_v_real1); + + /* "talib/_stream.pxi":4876 + * 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.pxi":4877 + * 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__1999, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4877, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 4877, __pyx_L1_error) + + /* "talib/_stream.pxi":4876 + * int outnbelement + * double outreal + * if PyArray_TYPE(real0) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real0 is not double") + * if real0.ndim != 1: + */ + } + + /* "talib/_stream.pxi":4878 + * 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.pxi":4879 + * 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__2000, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4879, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 4879, __pyx_L1_error) + + /* "talib/_stream.pxi":4878 + * 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.pxi":4880 + * 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 = real0.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real0) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":4881 + * raise Exception("real0 has wrong dimensions") + * if not (PyArray_FLAGS(real0) & np.NPY_C_CONTIGUOUS): + * real0 = PyArray_GETCONTIGUOUS(real0) # <<<<<<<<<<<<<< + * real0_data = real0.data + * if PyArray_TYPE(real1) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4881, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 4881, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real0, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":4880 + * 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 = real0.data + */ + } + + /* "talib/_stream.pxi":4882 + * if not (PyArray_FLAGS(real0) & np.NPY_C_CONTIGUOUS): + * real0 = PyArray_GETCONTIGUOUS(real0) + * real0_data = 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.pxi":4883 + * real0 = PyArray_GETCONTIGUOUS(real0) + * real0_data = 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.pxi":4884 + * real0_data = 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__2001, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4884, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 4884, __pyx_L1_error) + + /* "talib/_stream.pxi":4883 + * real0 = PyArray_GETCONTIGUOUS(real0) + * real0_data = real0.data + * if PyArray_TYPE(real1) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real1 is not double") + * if real1.ndim != 1: + */ + } + + /* "talib/_stream.pxi":4885 + * 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.pxi":4886 + * 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__2002, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4886, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 4886, __pyx_L1_error) + + /* "talib/_stream.pxi":4885 + * 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.pxi":4887 + * 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 = real1.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real1) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":4888 + * raise Exception("real1 has wrong dimensions") + * if not (PyArray_FLAGS(real1) & np.NPY_C_CONTIGUOUS): + * real1 = PyArray_GETCONTIGUOUS(real1) # <<<<<<<<<<<<<< + * real1_data = real1.data + * length = real0.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real1); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4888, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 4888, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real1, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":4887 + * 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 = real1.data + */ + } + + /* "talib/_stream.pxi":4889 + * if not (PyArray_FLAGS(real1) & np.NPY_C_CONTIGUOUS): + * real1 = PyArray_GETCONTIGUOUS(real1) + * real1_data = real1.data # <<<<<<<<<<<<<< + * length = real0.shape[0] + * if length != real1.shape[0]: + */ + __pyx_v_real1_data = ((double *)__pyx_v_real1->data); + + /* "talib/_stream.pxi":4890 + * real1 = PyArray_GETCONTIGUOUS(real1) + * real1_data = 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.pxi":4891 + * real1_data = 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.pxi":4892 + * 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__2003, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4892, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 4892, __pyx_L1_error) + + /* "talib/_stream.pxi":4891 + * real1_data = real1.data + * length = real0.shape[0] + * if length != real1.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * outreal = NaN + */ + } + + /* "talib/_stream.pxi":4893 + * 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_8c_ta_lib_NaN; + + /* "talib/_stream.pxi":4894 + * 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.pxi":4895 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_CORREL, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4895, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":4896 + * 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(3, 4896, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":4853 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":4900 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_COS( np.ndarray real not None ): # <<<<<<<<<<<<<< + * """ COS(real) + * + */ + +/* Python wrapper */ +static PyObject *__pyx_pw_5talib_8c_ta_lib_513stream_COS(PyObject *__pyx_self, PyObject *__pyx_v_real); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_512stream_COS[] = " 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_8c_ta_lib_513stream_COS = {"stream_COS", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_513stream_COS, METH_O, __pyx_doc_5talib_8c_ta_lib_512stream_COS}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_513stream_COS(PyObject *__pyx_self, PyObject *__pyx_v_real) { + PyObject *__pyx_r = 0; + __Pyx_RefNannyDeclarations + __Pyx_RefNannySetupContext("stream_COS (wrapper)", 0); + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_real), __pyx_ptype_5numpy_ndarray, 0, "real", 0))) __PYX_ERR(3, 4900, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_512stream_COS(__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_8c_ta_lib_512stream_COS(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("stream_COS", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real); + + /* "talib/_stream.pxi":4919 + * 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.pxi":4920 + * 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__2004, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4920, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 4920, __pyx_L1_error) + + /* "talib/_stream.pxi":4919 + * int outnbelement + * double outreal + * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real is not double") + * if real.ndim != 1: + */ + } + + /* "talib/_stream.pxi":4921 + * 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.pxi":4922 + * 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__2005, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4922, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 4922, __pyx_L1_error) + + /* "talib/_stream.pxi":4921 + * 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.pxi":4923 + * 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 = real.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":4924 + * raise Exception("real has wrong dimensions") + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< + * real_data = real.data + * length = real.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4924, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 4924, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":4923 + * 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 = real.data + */ + } + + /* "talib/_stream.pxi":4925 + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data # <<<<<<<<<<<<<< + * length = real.shape[0] + * outreal = NaN + */ + __pyx_v_real_data = ((double *)__pyx_v_real->data); + + /* "talib/_stream.pxi":4926 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = 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.pxi":4927 + * real_data = 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_8c_ta_lib_NaN; + + /* "talib/_stream.pxi":4928 + * 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.pxi":4929 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_COS, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4929, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":4930 + * 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(3, 4930, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":4900 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_COS( np.ndarray real not None ): # <<<<<<<<<<<<<< + * """ COS(real) + * + */ + + /* function exit code */ + __pyx_L1_error:; + __Pyx_XDECREF(__pyx_t_2); + __Pyx_AddTraceback("talib.c_ta_lib.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.pxi":4934 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_COSH( np.ndarray real not None ): # <<<<<<<<<<<<<< + * """ COSH(real) + * + */ + +/* Python wrapper */ +static PyObject *__pyx_pw_5talib_8c_ta_lib_515stream_COSH(PyObject *__pyx_self, PyObject *__pyx_v_real); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_514stream_COSH[] = " 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_8c_ta_lib_515stream_COSH = {"stream_COSH", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_515stream_COSH, METH_O, __pyx_doc_5talib_8c_ta_lib_514stream_COSH}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_515stream_COSH(PyObject *__pyx_self, PyObject *__pyx_v_real) { + PyObject *__pyx_r = 0; + __Pyx_RefNannyDeclarations + __Pyx_RefNannySetupContext("stream_COSH (wrapper)", 0); + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_real), __pyx_ptype_5numpy_ndarray, 0, "real", 0))) __PYX_ERR(3, 4934, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_514stream_COSH(__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_8c_ta_lib_514stream_COSH(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("stream_COSH", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real); + + /* "talib/_stream.pxi":4953 + * 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.pxi":4954 + * 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__2006, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4954, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 4954, __pyx_L1_error) + + /* "talib/_stream.pxi":4953 + * int outnbelement + * double outreal + * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real is not double") + * if real.ndim != 1: + */ + } + + /* "talib/_stream.pxi":4955 + * 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.pxi":4956 + * 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__2007, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4956, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 4956, __pyx_L1_error) + + /* "talib/_stream.pxi":4955 + * 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.pxi":4957 + * 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 = real.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":4958 + * raise Exception("real has wrong dimensions") + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< + * real_data = real.data + * length = real.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4958, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 4958, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":4957 + * 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 = real.data + */ + } + + /* "talib/_stream.pxi":4959 + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data # <<<<<<<<<<<<<< + * length = real.shape[0] + * outreal = NaN + */ + __pyx_v_real_data = ((double *)__pyx_v_real->data); + + /* "talib/_stream.pxi":4960 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = 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.pxi":4961 + * real_data = 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_8c_ta_lib_NaN; + + /* "talib/_stream.pxi":4962 + * 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.pxi":4963 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_COSH, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4963, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":4964 + * 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(3, 4964, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":4934 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_COSH( np.ndarray real not None ): # <<<<<<<<<<<<<< + * """ COSH(real) + * + */ + + /* function exit code */ + __pyx_L1_error:; + __Pyx_XDECREF(__pyx_t_2); + __Pyx_AddTraceback("talib.c_ta_lib.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.pxi":4968 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_DEMA( np.ndarray real not None , int timeperiod=-2**31 ): # <<<<<<<<<<<<<< + * """ DEMA(real[, timeperiod=?]) + * + */ + +/* Python wrapper */ +static PyObject *__pyx_pw_5talib_8c_ta_lib_517stream_DEMA(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_516stream_DEMA[] = " 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_8c_ta_lib_517stream_DEMA = {"stream_DEMA", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_517stream_DEMA, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_516stream_DEMA}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_517stream_DEMA(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("stream_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, "stream_DEMA") < 0)) __PYX_ERR(3, 4968, __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(3, 4968, __pyx_L3_error) + } else { + __pyx_v_timeperiod = ((int)-2147483648); + } + } + goto __pyx_L4_argument_unpacking_done; + __pyx_L5_argtuple_error:; + __Pyx_RaiseArgtupleInvalid("stream_DEMA", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 4968, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 4968, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_516stream_DEMA(__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_8c_ta_lib_516stream_DEMA(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("stream_DEMA", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real); + + /* "talib/_stream.pxi":4989 + * 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.pxi":4990 + * 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__2008, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4990, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 4990, __pyx_L1_error) + + /* "talib/_stream.pxi":4989 + * int outnbelement + * double outreal + * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real is not double") + * if real.ndim != 1: + */ + } + + /* "talib/_stream.pxi":4991 + * 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.pxi":4992 + * 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__2009, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4992, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 4992, __pyx_L1_error) + + /* "talib/_stream.pxi":4991 + * 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.pxi":4993 + * 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 = real.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":4994 + * raise Exception("real has wrong dimensions") + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< + * real_data = real.data + * length = real.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4994, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 4994, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":4993 + * 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 = real.data + */ + } + + /* "talib/_stream.pxi":4995 + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data # <<<<<<<<<<<<<< + * length = real.shape[0] + * outreal = NaN + */ + __pyx_v_real_data = ((double *)__pyx_v_real->data); + + /* "talib/_stream.pxi":4996 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = 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.pxi":4997 + * real_data = 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_8c_ta_lib_NaN; + + /* "talib/_stream.pxi":4998 + * 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.pxi":4999 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_DEMA, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 4999, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":5000 + * 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(3, 5000, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":4968 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":5004 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_DIV( np.ndarray real0 not None , np.ndarray real1 not None ): # <<<<<<<<<<<<<< + * """ DIV(real0, real1) + * + */ + +/* Python wrapper */ +static PyObject *__pyx_pw_5talib_8c_ta_lib_519stream_DIV(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_518stream_DIV[] = " 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_8c_ta_lib_519stream_DIV = {"stream_DIV", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_519stream_DIV, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_518stream_DIV}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_519stream_DIV(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("stream_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("stream_DIV", 1, 2, 2, 1); __PYX_ERR(3, 5004, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "stream_DIV") < 0)) __PYX_ERR(3, 5004, __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("stream_DIV", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 5004, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 5004, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_real1), __pyx_ptype_5numpy_ndarray, 0, "real1", 0))) __PYX_ERR(3, 5004, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_518stream_DIV(__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_8c_ta_lib_518stream_DIV(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("stream_DIV", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real0); + __Pyx_INCREF((PyObject *)__pyx_v_real1); + + /* "talib/_stream.pxi":5025 + * 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.pxi":5026 + * 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__2010, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5026, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 5026, __pyx_L1_error) + + /* "talib/_stream.pxi":5025 + * int outnbelement + * double outreal + * if PyArray_TYPE(real0) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real0 is not double") + * if real0.ndim != 1: + */ + } + + /* "talib/_stream.pxi":5027 + * 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.pxi":5028 + * 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__2011, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5028, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 5028, __pyx_L1_error) + + /* "talib/_stream.pxi":5027 + * 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.pxi":5029 + * 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 = real0.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real0) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":5030 + * raise Exception("real0 has wrong dimensions") + * if not (PyArray_FLAGS(real0) & np.NPY_C_CONTIGUOUS): + * real0 = PyArray_GETCONTIGUOUS(real0) # <<<<<<<<<<<<<< + * real0_data = real0.data + * if PyArray_TYPE(real1) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5030, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 5030, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real0, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":5029 + * 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 = real0.data + */ + } + + /* "talib/_stream.pxi":5031 + * if not (PyArray_FLAGS(real0) & np.NPY_C_CONTIGUOUS): + * real0 = PyArray_GETCONTIGUOUS(real0) + * real0_data = 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.pxi":5032 + * real0 = PyArray_GETCONTIGUOUS(real0) + * real0_data = 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.pxi":5033 + * real0_data = 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__2012, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5033, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 5033, __pyx_L1_error) + + /* "talib/_stream.pxi":5032 + * real0 = PyArray_GETCONTIGUOUS(real0) + * real0_data = real0.data + * if PyArray_TYPE(real1) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real1 is not double") + * if real1.ndim != 1: + */ + } + + /* "talib/_stream.pxi":5034 + * 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.pxi":5035 + * 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__2013, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5035, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 5035, __pyx_L1_error) + + /* "talib/_stream.pxi":5034 + * 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.pxi":5036 + * 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 = real1.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real1) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":5037 + * raise Exception("real1 has wrong dimensions") + * if not (PyArray_FLAGS(real1) & np.NPY_C_CONTIGUOUS): + * real1 = PyArray_GETCONTIGUOUS(real1) # <<<<<<<<<<<<<< + * real1_data = real1.data + * length = real0.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real1); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5037, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 5037, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real1, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":5036 + * 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 = real1.data + */ + } + + /* "talib/_stream.pxi":5038 + * if not (PyArray_FLAGS(real1) & np.NPY_C_CONTIGUOUS): + * real1 = PyArray_GETCONTIGUOUS(real1) + * real1_data = real1.data # <<<<<<<<<<<<<< + * length = real0.shape[0] + * if length != real1.shape[0]: + */ + __pyx_v_real1_data = ((double *)__pyx_v_real1->data); + + /* "talib/_stream.pxi":5039 + * real1 = PyArray_GETCONTIGUOUS(real1) + * real1_data = 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.pxi":5040 + * real1_data = 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.pxi":5041 + * 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__2014, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5041, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 5041, __pyx_L1_error) + + /* "talib/_stream.pxi":5040 + * real1_data = real1.data + * length = real0.shape[0] + * if length != real1.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * outreal = NaN + */ + } + + /* "talib/_stream.pxi":5042 + * 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_8c_ta_lib_NaN; + + /* "talib/_stream.pxi":5043 + * 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.pxi":5044 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_DIV, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5044, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":5045 + * 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(3, 5045, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":5004 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":5049 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_8c_ta_lib_521stream_DX(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_520stream_DX[] = " 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_8c_ta_lib_521stream_DX = {"stream_DX", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_521stream_DX, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_520stream_DX}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_521stream_DX(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("stream_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("stream_DX", 0, 3, 4, 1); __PYX_ERR(3, 5049, __pyx_L3_error) + } + case 2: + if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_DX", 0, 3, 4, 2); __PYX_ERR(3, 5049, __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, "stream_DX") < 0)) __PYX_ERR(3, 5049, __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(3, 5049, __pyx_L3_error) + } else { + __pyx_v_timeperiod = ((int)-2147483648); + } + } + goto __pyx_L4_argument_unpacking_done; + __pyx_L5_argtuple_error:; + __Pyx_RaiseArgtupleInvalid("stream_DX", 0, 3, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 5049, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 5049, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(3, 5049, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(3, 5049, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_520stream_DX(__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_8c_ta_lib_520stream_DX(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("stream_DX", 0); + __Pyx_INCREF((PyObject *)__pyx_v_high); + __Pyx_INCREF((PyObject *)__pyx_v_low); + __Pyx_INCREF((PyObject *)__pyx_v_close); + + /* "talib/_stream.pxi":5072 + * 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.pxi":5073 + * 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__2015, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5073, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 5073, __pyx_L1_error) + + /* "talib/_stream.pxi":5072 + * int outnbelement + * double outreal + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_stream.pxi":5074 + * 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.pxi":5075 + * raise 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__2016, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5075, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 5075, __pyx_L1_error) + + /* "talib/_stream.pxi":5074 + * 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.pxi":5076 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":5077 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5077, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 5077, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":5076 + * 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 = high.data + */ + } + + /* "talib/_stream.pxi":5078 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":5079 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":5080 + * high_data = 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__2017, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5080, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 5080, __pyx_L1_error) + + /* "talib/_stream.pxi":5079 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_stream.pxi":5081 + * 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.pxi":5082 + * raise 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__2018, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5082, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 5082, __pyx_L1_error) + + /* "talib/_stream.pxi":5081 + * 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.pxi":5083 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":5084 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5084, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 5084, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":5083 + * 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 = low.data + */ + } + + /* "talib/_stream.pxi":5085 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":5086 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":5087 + * low_data = 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__2019, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 5087, __pyx_L1_error) + + /* "talib/_stream.pxi":5086 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_stream.pxi":5088 + * 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.pxi":5089 + * raise 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__2020, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 5089, __pyx_L1_error) + + /* "talib/_stream.pxi":5088 + * 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.pxi":5090 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":5091 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = high.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 5091, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":5090 + * 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 = close.data + */ + } + + /* "talib/_stream.pxi":5092 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = high.shape[0] + * if length != low.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_stream.pxi":5093 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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.pxi":5094 + * close_data = 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.pxi":5095 + * 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__2021, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5095, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 5095, __pyx_L1_error) + + /* "talib/_stream.pxi":5094 + * close_data = close.data + * length = high.shape[0] + * if length != low.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != close.shape[0]: + */ + } + + /* "talib/_stream.pxi":5096 + * 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.pxi":5097 + * 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__2022, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5097, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 5097, __pyx_L1_error) + + /* "talib/_stream.pxi":5096 + * 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.pxi":5098 + * 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_8c_ta_lib_NaN; + + /* "talib/_stream.pxi":5099 + * 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.pxi":5100 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_DX, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5100, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":5101 + * 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(3, 5101, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":5049 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":5105 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_EMA( np.ndarray real not None , int timeperiod=-2**31 ): # <<<<<<<<<<<<<< + * """ EMA(real[, timeperiod=?]) + * + */ + +/* Python wrapper */ +static PyObject *__pyx_pw_5talib_8c_ta_lib_523stream_EMA(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_522stream_EMA[] = " 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_8c_ta_lib_523stream_EMA = {"stream_EMA", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_523stream_EMA, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_522stream_EMA}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_523stream_EMA(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("stream_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, "stream_EMA") < 0)) __PYX_ERR(3, 5105, __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(3, 5105, __pyx_L3_error) + } else { + __pyx_v_timeperiod = ((int)-2147483648); + } + } + goto __pyx_L4_argument_unpacking_done; + __pyx_L5_argtuple_error:; + __Pyx_RaiseArgtupleInvalid("stream_EMA", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 5105, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 5105, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_522stream_EMA(__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_8c_ta_lib_522stream_EMA(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("stream_EMA", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real); + + /* "talib/_stream.pxi":5126 + * 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.pxi":5127 + * 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__2023, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5127, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 5127, __pyx_L1_error) + + /* "talib/_stream.pxi":5126 + * int outnbelement + * double outreal + * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real is not double") + * if real.ndim != 1: + */ + } + + /* "talib/_stream.pxi":5128 + * 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.pxi":5129 + * 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__2024, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5129, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 5129, __pyx_L1_error) + + /* "talib/_stream.pxi":5128 + * 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.pxi":5130 + * 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 = real.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":5131 + * raise Exception("real has wrong dimensions") + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< + * real_data = real.data + * length = real.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5131, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 5131, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":5130 + * 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 = real.data + */ + } + + /* "talib/_stream.pxi":5132 + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data # <<<<<<<<<<<<<< + * length = real.shape[0] + * outreal = NaN + */ + __pyx_v_real_data = ((double *)__pyx_v_real->data); + + /* "talib/_stream.pxi":5133 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = 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.pxi":5134 + * real_data = 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_8c_ta_lib_NaN; + + /* "talib/_stream.pxi":5135 + * 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.pxi":5136 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_EMA, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5136, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":5137 + * 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(3, 5137, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":5105 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":5141 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_EXP( np.ndarray real not None ): # <<<<<<<<<<<<<< + * """ EXP(real) + * + */ + +/* Python wrapper */ +static PyObject *__pyx_pw_5talib_8c_ta_lib_525stream_EXP(PyObject *__pyx_self, PyObject *__pyx_v_real); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_524stream_EXP[] = " 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_8c_ta_lib_525stream_EXP = {"stream_EXP", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_525stream_EXP, METH_O, __pyx_doc_5talib_8c_ta_lib_524stream_EXP}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_525stream_EXP(PyObject *__pyx_self, PyObject *__pyx_v_real) { + PyObject *__pyx_r = 0; + __Pyx_RefNannyDeclarations + __Pyx_RefNannySetupContext("stream_EXP (wrapper)", 0); + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_real), __pyx_ptype_5numpy_ndarray, 0, "real", 0))) __PYX_ERR(3, 5141, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_524stream_EXP(__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_8c_ta_lib_524stream_EXP(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("stream_EXP", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real); + + /* "talib/_stream.pxi":5160 + * 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.pxi":5161 + * 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__2025, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5161, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 5161, __pyx_L1_error) + + /* "talib/_stream.pxi":5160 + * int outnbelement + * double outreal + * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real is not double") + * if real.ndim != 1: + */ + } + + /* "talib/_stream.pxi":5162 + * 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.pxi":5163 + * 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__2026, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5163, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 5163, __pyx_L1_error) + + /* "talib/_stream.pxi":5162 + * 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.pxi":5164 + * 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 = real.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":5165 + * raise Exception("real has wrong dimensions") + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< + * real_data = real.data + * length = real.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5165, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 5165, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":5164 + * 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 = real.data + */ + } + + /* "talib/_stream.pxi":5166 + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data # <<<<<<<<<<<<<< + * length = real.shape[0] + * outreal = NaN + */ + __pyx_v_real_data = ((double *)__pyx_v_real->data); + + /* "talib/_stream.pxi":5167 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = 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.pxi":5168 + * real_data = 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_8c_ta_lib_NaN; + + /* "talib/_stream.pxi":5169 + * 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.pxi":5170 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_EXP, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5170, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":5171 + * 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(3, 5171, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":5141 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_EXP( np.ndarray real not None ): # <<<<<<<<<<<<<< + * """ EXP(real) + * + */ + + /* function exit code */ + __pyx_L1_error:; + __Pyx_XDECREF(__pyx_t_2); + __Pyx_AddTraceback("talib.c_ta_lib.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.pxi":5175 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_FLOOR( np.ndarray real not None ): # <<<<<<<<<<<<<< + * """ FLOOR(real) + * + */ + +/* Python wrapper */ +static PyObject *__pyx_pw_5talib_8c_ta_lib_527stream_FLOOR(PyObject *__pyx_self, PyObject *__pyx_v_real); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_526stream_FLOOR[] = " 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_8c_ta_lib_527stream_FLOOR = {"stream_FLOOR", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_527stream_FLOOR, METH_O, __pyx_doc_5talib_8c_ta_lib_526stream_FLOOR}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_527stream_FLOOR(PyObject *__pyx_self, PyObject *__pyx_v_real) { + PyObject *__pyx_r = 0; + __Pyx_RefNannyDeclarations + __Pyx_RefNannySetupContext("stream_FLOOR (wrapper)", 0); + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_real), __pyx_ptype_5numpy_ndarray, 0, "real", 0))) __PYX_ERR(3, 5175, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_526stream_FLOOR(__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_8c_ta_lib_526stream_FLOOR(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("stream_FLOOR", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real); + + /* "talib/_stream.pxi":5194 + * 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.pxi":5195 + * 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__2027, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5195, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 5195, __pyx_L1_error) + + /* "talib/_stream.pxi":5194 + * int outnbelement + * double outreal + * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real is not double") + * if real.ndim != 1: + */ + } + + /* "talib/_stream.pxi":5196 + * 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.pxi":5197 + * 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__2028, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5197, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 5197, __pyx_L1_error) + + /* "talib/_stream.pxi":5196 + * 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.pxi":5198 + * 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 = real.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":5199 + * raise Exception("real has wrong dimensions") + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< + * real_data = real.data + * length = real.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5199, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 5199, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":5198 + * 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 = real.data + */ + } + + /* "talib/_stream.pxi":5200 + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data # <<<<<<<<<<<<<< + * length = real.shape[0] + * outreal = NaN + */ + __pyx_v_real_data = ((double *)__pyx_v_real->data); + + /* "talib/_stream.pxi":5201 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = 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.pxi":5202 + * real_data = 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_8c_ta_lib_NaN; + + /* "talib/_stream.pxi":5203 + * 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.pxi":5204 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_FLOOR, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5204, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":5205 + * 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(3, 5205, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":5175 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_FLOOR( np.ndarray real not None ): # <<<<<<<<<<<<<< + * """ FLOOR(real) + * + */ + + /* function exit code */ + __pyx_L1_error:; + __Pyx_XDECREF(__pyx_t_2); + __Pyx_AddTraceback("talib.c_ta_lib.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.pxi":5209 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_HT_DCPERIOD( np.ndarray real not None ): # <<<<<<<<<<<<<< + * """ HT_DCPERIOD(real) + * + */ + +/* Python wrapper */ +static PyObject *__pyx_pw_5talib_8c_ta_lib_529stream_HT_DCPERIOD(PyObject *__pyx_self, PyObject *__pyx_v_real); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_528stream_HT_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_8c_ta_lib_529stream_HT_DCPERIOD = {"stream_HT_DCPERIOD", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_529stream_HT_DCPERIOD, METH_O, __pyx_doc_5talib_8c_ta_lib_528stream_HT_DCPERIOD}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_529stream_HT_DCPERIOD(PyObject *__pyx_self, PyObject *__pyx_v_real) { + PyObject *__pyx_r = 0; + __Pyx_RefNannyDeclarations + __Pyx_RefNannySetupContext("stream_HT_DCPERIOD (wrapper)", 0); + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_real), __pyx_ptype_5numpy_ndarray, 0, "real", 0))) __PYX_ERR(3, 5209, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_528stream_HT_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_8c_ta_lib_528stream_HT_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("stream_HT_DCPERIOD", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real); + + /* "talib/_stream.pxi":5228 + * 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.pxi":5229 + * 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__2029, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5229, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 5229, __pyx_L1_error) + + /* "talib/_stream.pxi":5228 + * int outnbelement + * double outreal + * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real is not double") + * if real.ndim != 1: + */ + } + + /* "talib/_stream.pxi":5230 + * 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.pxi":5231 + * 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__2030, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5231, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 5231, __pyx_L1_error) + + /* "talib/_stream.pxi":5230 + * 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.pxi":5232 + * 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 = real.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":5233 + * raise Exception("real has wrong dimensions") + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< + * real_data = real.data + * length = real.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5233, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 5233, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":5232 + * 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 = real.data + */ + } + + /* "talib/_stream.pxi":5234 + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data # <<<<<<<<<<<<<< + * length = real.shape[0] + * outreal = NaN + */ + __pyx_v_real_data = ((double *)__pyx_v_real->data); + + /* "talib/_stream.pxi":5235 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = 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.pxi":5236 + * real_data = 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_8c_ta_lib_NaN; + + /* "talib/_stream.pxi":5237 + * 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.pxi":5238 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_HT_DCPERIOD, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5238, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":5239 + * 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(3, 5239, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":5209 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_HT_DCPERIOD( np.ndarray real not None ): # <<<<<<<<<<<<<< + * """ HT_DCPERIOD(real) + * + */ + + /* function exit code */ + __pyx_L1_error:; + __Pyx_XDECREF(__pyx_t_2); + __Pyx_AddTraceback("talib.c_ta_lib.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.pxi":5243 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_HT_DCPHASE( np.ndarray real not None ): # <<<<<<<<<<<<<< + * """ HT_DCPHASE(real) + * + */ + +/* Python wrapper */ +static PyObject *__pyx_pw_5talib_8c_ta_lib_531stream_HT_DCPHASE(PyObject *__pyx_self, PyObject *__pyx_v_real); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_530stream_HT_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_8c_ta_lib_531stream_HT_DCPHASE = {"stream_HT_DCPHASE", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_531stream_HT_DCPHASE, METH_O, __pyx_doc_5talib_8c_ta_lib_530stream_HT_DCPHASE}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_531stream_HT_DCPHASE(PyObject *__pyx_self, PyObject *__pyx_v_real) { + PyObject *__pyx_r = 0; + __Pyx_RefNannyDeclarations + __Pyx_RefNannySetupContext("stream_HT_DCPHASE (wrapper)", 0); + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_real), __pyx_ptype_5numpy_ndarray, 0, "real", 0))) __PYX_ERR(3, 5243, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_530stream_HT_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_8c_ta_lib_530stream_HT_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("stream_HT_DCPHASE", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real); + + /* "talib/_stream.pxi":5262 + * 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.pxi":5263 + * 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__2031, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5263, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 5263, __pyx_L1_error) + + /* "talib/_stream.pxi":5262 + * int outnbelement + * double outreal + * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real is not double") + * if real.ndim != 1: + */ + } + + /* "talib/_stream.pxi":5264 + * 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.pxi":5265 + * 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__2032, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5265, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 5265, __pyx_L1_error) + + /* "talib/_stream.pxi":5264 + * 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.pxi":5266 + * 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 = real.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":5267 + * raise Exception("real has wrong dimensions") + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< + * real_data = real.data + * length = real.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5267, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 5267, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":5266 + * 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 = real.data + */ + } + + /* "talib/_stream.pxi":5268 + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data # <<<<<<<<<<<<<< + * length = real.shape[0] + * outreal = NaN + */ + __pyx_v_real_data = ((double *)__pyx_v_real->data); + + /* "talib/_stream.pxi":5269 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = 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.pxi":5270 + * real_data = 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_8c_ta_lib_NaN; + + /* "talib/_stream.pxi":5271 + * 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.pxi":5272 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_HT_DCPHASE, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5272, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":5273 + * 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(3, 5273, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":5243 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_HT_DCPHASE( np.ndarray real not None ): # <<<<<<<<<<<<<< + * """ HT_DCPHASE(real) + * + */ + + /* function exit code */ + __pyx_L1_error:; + __Pyx_XDECREF(__pyx_t_2); + __Pyx_AddTraceback("talib.c_ta_lib.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.pxi":5277 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_HT_PHASOR( np.ndarray real not None ): # <<<<<<<<<<<<<< + * """ HT_PHASOR(real) + * + */ + +/* Python wrapper */ +static PyObject *__pyx_pw_5talib_8c_ta_lib_533stream_HT_PHASOR(PyObject *__pyx_self, PyObject *__pyx_v_real); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_532stream_HT_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_8c_ta_lib_533stream_HT_PHASOR = {"stream_HT_PHASOR", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_533stream_HT_PHASOR, METH_O, __pyx_doc_5talib_8c_ta_lib_532stream_HT_PHASOR}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_533stream_HT_PHASOR(PyObject *__pyx_self, PyObject *__pyx_v_real) { + PyObject *__pyx_r = 0; + __Pyx_RefNannyDeclarations + __Pyx_RefNannySetupContext("stream_HT_PHASOR (wrapper)", 0); + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_real), __pyx_ptype_5numpy_ndarray, 0, "real", 0))) __PYX_ERR(3, 5277, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_532stream_HT_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_8c_ta_lib_532stream_HT_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("stream_HT_PHASOR", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real); + + /* "talib/_stream.pxi":5298 + * 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.pxi":5299 + * 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__2033, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5299, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 5299, __pyx_L1_error) + + /* "talib/_stream.pxi":5298 + * double outinphase + * double outquadrature + * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real is not double") + * if real.ndim != 1: + */ + } + + /* "talib/_stream.pxi":5300 + * 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.pxi":5301 + * 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__2034, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5301, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 5301, __pyx_L1_error) + + /* "talib/_stream.pxi":5300 + * 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.pxi":5302 + * 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 = real.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":5303 + * raise Exception("real has wrong dimensions") + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< + * real_data = real.data + * length = real.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5303, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 5303, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":5302 + * 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 = real.data + */ + } + + /* "talib/_stream.pxi":5304 + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data # <<<<<<<<<<<<<< + * length = real.shape[0] + * outinphase = NaN + */ + __pyx_v_real_data = ((double *)__pyx_v_real->data); + + /* "talib/_stream.pxi":5305 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data + * length = real.shape[0] # <<<<<<<<<<<<<< + * outinphase = NaN + * outquadrature = NaN + */ + __pyx_v_length = (__pyx_v_real->dimensions[0]); + + /* "talib/_stream.pxi":5306 + * real_data = 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_8c_ta_lib_NaN; + + /* "talib/_stream.pxi":5307 + * 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_8c_ta_lib_NaN; + + /* "talib/_stream.pxi":5308 + * 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.pxi":5309 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_HT_PHASOR, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5309, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":5310 + * 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(3, 5310, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_t_3 = PyFloat_FromDouble(__pyx_v_outquadrature); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 5310, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 5310, __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.pxi":5277 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":5314 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_HT_SINE( np.ndarray real not None ): # <<<<<<<<<<<<<< + * """ HT_SINE(real) + * + */ + +/* Python wrapper */ +static PyObject *__pyx_pw_5talib_8c_ta_lib_535stream_HT_SINE(PyObject *__pyx_self, PyObject *__pyx_v_real); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_534stream_HT_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_8c_ta_lib_535stream_HT_SINE = {"stream_HT_SINE", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_535stream_HT_SINE, METH_O, __pyx_doc_5talib_8c_ta_lib_534stream_HT_SINE}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_535stream_HT_SINE(PyObject *__pyx_self, PyObject *__pyx_v_real) { + PyObject *__pyx_r = 0; + __Pyx_RefNannyDeclarations + __Pyx_RefNannySetupContext("stream_HT_SINE (wrapper)", 0); + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_real), __pyx_ptype_5numpy_ndarray, 0, "real", 0))) __PYX_ERR(3, 5314, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_534stream_HT_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_8c_ta_lib_534stream_HT_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("stream_HT_SINE", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real); + + /* "talib/_stream.pxi":5335 + * 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.pxi":5336 + * 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__2035, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5336, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 5336, __pyx_L1_error) + + /* "talib/_stream.pxi":5335 + * double outsine + * double outleadsine + * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real is not double") + * if real.ndim != 1: + */ + } + + /* "talib/_stream.pxi":5337 + * 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.pxi":5338 + * 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__2036, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5338, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 5338, __pyx_L1_error) + + /* "talib/_stream.pxi":5337 + * 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.pxi":5339 + * 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 = real.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":5340 + * raise Exception("real has wrong dimensions") + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< + * real_data = real.data + * length = real.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5340, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 5340, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":5339 + * 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 = real.data + */ + } + + /* "talib/_stream.pxi":5341 + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data # <<<<<<<<<<<<<< + * length = real.shape[0] + * outsine = NaN + */ + __pyx_v_real_data = ((double *)__pyx_v_real->data); + + /* "talib/_stream.pxi":5342 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data + * length = real.shape[0] # <<<<<<<<<<<<<< + * outsine = NaN + * outleadsine = NaN + */ + __pyx_v_length = (__pyx_v_real->dimensions[0]); + + /* "talib/_stream.pxi":5343 + * real_data = 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_8c_ta_lib_NaN; + + /* "talib/_stream.pxi":5344 + * 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_8c_ta_lib_NaN; + + /* "talib/_stream.pxi":5345 + * 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.pxi":5346 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_HT_SINE, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5346, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":5347 + * 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(3, 5347, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_t_3 = PyFloat_FromDouble(__pyx_v_outleadsine); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 5347, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 5347, __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.pxi":5314 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":5351 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_HT_TRENDLINE( np.ndarray real not None ): # <<<<<<<<<<<<<< + * """ HT_TRENDLINE(real) + * + */ + +/* Python wrapper */ +static PyObject *__pyx_pw_5talib_8c_ta_lib_537stream_HT_TRENDLINE(PyObject *__pyx_self, PyObject *__pyx_v_real); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_536stream_HT_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_8c_ta_lib_537stream_HT_TRENDLINE = {"stream_HT_TRENDLINE", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_537stream_HT_TRENDLINE, METH_O, __pyx_doc_5talib_8c_ta_lib_536stream_HT_TRENDLINE}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_537stream_HT_TRENDLINE(PyObject *__pyx_self, PyObject *__pyx_v_real) { + PyObject *__pyx_r = 0; + __Pyx_RefNannyDeclarations + __Pyx_RefNannySetupContext("stream_HT_TRENDLINE (wrapper)", 0); + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_real), __pyx_ptype_5numpy_ndarray, 0, "real", 0))) __PYX_ERR(3, 5351, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_536stream_HT_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_8c_ta_lib_536stream_HT_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("stream_HT_TRENDLINE", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real); + + /* "talib/_stream.pxi":5370 + * 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.pxi":5371 + * 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__2037, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5371, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 5371, __pyx_L1_error) + + /* "talib/_stream.pxi":5370 + * int outnbelement + * double outreal + * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real is not double") + * if real.ndim != 1: + */ + } + + /* "talib/_stream.pxi":5372 + * 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.pxi":5373 + * 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__2038, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5373, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 5373, __pyx_L1_error) + + /* "talib/_stream.pxi":5372 + * 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.pxi":5374 + * 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 = real.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":5375 + * raise Exception("real has wrong dimensions") + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< + * real_data = real.data + * length = real.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5375, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 5375, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":5374 + * 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 = real.data + */ + } + + /* "talib/_stream.pxi":5376 + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data # <<<<<<<<<<<<<< + * length = real.shape[0] + * outreal = NaN + */ + __pyx_v_real_data = ((double *)__pyx_v_real->data); + + /* "talib/_stream.pxi":5377 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = 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.pxi":5378 + * real_data = 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_8c_ta_lib_NaN; + + /* "talib/_stream.pxi":5379 + * 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.pxi":5380 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_HT_TRENDLINE, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5380, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":5381 + * 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(3, 5381, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":5351 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_HT_TRENDLINE( np.ndarray real not None ): # <<<<<<<<<<<<<< + * """ HT_TRENDLINE(real) + * + */ + + /* function exit code */ + __pyx_L1_error:; + __Pyx_XDECREF(__pyx_t_2); + __Pyx_AddTraceback("talib.c_ta_lib.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.pxi":5385 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_HT_TRENDMODE( np.ndarray real not None ): # <<<<<<<<<<<<<< + * """ HT_TRENDMODE(real) + * + */ + +/* Python wrapper */ +static PyObject *__pyx_pw_5talib_8c_ta_lib_539stream_HT_TRENDMODE(PyObject *__pyx_self, PyObject *__pyx_v_real); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_538stream_HT_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_8c_ta_lib_539stream_HT_TRENDMODE = {"stream_HT_TRENDMODE", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_539stream_HT_TRENDMODE, METH_O, __pyx_doc_5talib_8c_ta_lib_538stream_HT_TRENDMODE}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_539stream_HT_TRENDMODE(PyObject *__pyx_self, PyObject *__pyx_v_real) { + PyObject *__pyx_r = 0; + __Pyx_RefNannyDeclarations + __Pyx_RefNannySetupContext("stream_HT_TRENDMODE (wrapper)", 0); + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_real), __pyx_ptype_5numpy_ndarray, 0, "real", 0))) __PYX_ERR(3, 5385, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_538stream_HT_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_8c_ta_lib_538stream_HT_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("stream_HT_TRENDMODE", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real); + + /* "talib/_stream.pxi":5404 + * 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.pxi":5405 + * 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__2039, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5405, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 5405, __pyx_L1_error) + + /* "talib/_stream.pxi":5404 + * int outnbelement + * int outinteger + * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real is not double") + * if real.ndim != 1: + */ + } + + /* "talib/_stream.pxi":5406 + * 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.pxi":5407 + * 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__2040, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5407, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 5407, __pyx_L1_error) + + /* "talib/_stream.pxi":5406 + * 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.pxi":5408 + * 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 = real.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":5409 + * raise Exception("real has wrong dimensions") + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< + * real_data = real.data + * length = real.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5409, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 5409, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":5408 + * 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 = real.data + */ + } + + /* "talib/_stream.pxi":5410 + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data # <<<<<<<<<<<<<< + * length = real.shape[0] + * outinteger = 0 + */ + __pyx_v_real_data = ((double *)__pyx_v_real->data); + + /* "talib/_stream.pxi":5411 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = 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.pxi":5412 + * real_data = 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.pxi":5413 + * 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.pxi":5414 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_HT_TRENDMODE, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5414, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":5415 + * 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(3, 5415, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":5385 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_HT_TRENDMODE( np.ndarray real not None ): # <<<<<<<<<<<<<< + * """ HT_TRENDMODE(real) + * + */ + + /* function exit code */ + __pyx_L1_error:; + __Pyx_XDECREF(__pyx_t_2); + __Pyx_AddTraceback("talib.c_ta_lib.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.pxi":5419 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_KAMA( np.ndarray real not None , int timeperiod=-2**31 ): # <<<<<<<<<<<<<< + * """ KAMA(real[, timeperiod=?]) + * + */ + +/* Python wrapper */ +static PyObject *__pyx_pw_5talib_8c_ta_lib_541stream_KAMA(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_540stream_KAMA[] = " 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_8c_ta_lib_541stream_KAMA = {"stream_KAMA", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_541stream_KAMA, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_540stream_KAMA}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_541stream_KAMA(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("stream_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, "stream_KAMA") < 0)) __PYX_ERR(3, 5419, __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(3, 5419, __pyx_L3_error) + } else { + __pyx_v_timeperiod = ((int)-2147483648); + } + } + goto __pyx_L4_argument_unpacking_done; + __pyx_L5_argtuple_error:; + __Pyx_RaiseArgtupleInvalid("stream_KAMA", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 5419, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 5419, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_540stream_KAMA(__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_8c_ta_lib_540stream_KAMA(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("stream_KAMA", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real); + + /* "talib/_stream.pxi":5440 + * 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.pxi":5441 + * 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__2041, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5441, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 5441, __pyx_L1_error) + + /* "talib/_stream.pxi":5440 + * int outnbelement + * double outreal + * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real is not double") + * if real.ndim != 1: + */ + } + + /* "talib/_stream.pxi":5442 + * 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.pxi":5443 + * 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__2042, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5443, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 5443, __pyx_L1_error) + + /* "talib/_stream.pxi":5442 + * 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.pxi":5444 + * 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 = real.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":5445 + * raise Exception("real has wrong dimensions") + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< + * real_data = real.data + * length = real.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5445, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 5445, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":5444 + * 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 = real.data + */ + } + + /* "talib/_stream.pxi":5446 + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data # <<<<<<<<<<<<<< + * length = real.shape[0] + * outreal = NaN + */ + __pyx_v_real_data = ((double *)__pyx_v_real->data); + + /* "talib/_stream.pxi":5447 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = 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.pxi":5448 + * real_data = 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_8c_ta_lib_NaN; + + /* "talib/_stream.pxi":5449 + * 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.pxi":5450 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_KAMA, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5450, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":5451 + * 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(3, 5451, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":5419 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":5455 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_LINEARREG( np.ndarray real not None , int timeperiod=-2**31 ): # <<<<<<<<<<<<<< + * """ LINEARREG(real[, timeperiod=?]) + * + */ + +/* Python wrapper */ +static PyObject *__pyx_pw_5talib_8c_ta_lib_543stream_LINEARREG(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_542stream_LINEARREG[] = " 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_8c_ta_lib_543stream_LINEARREG = {"stream_LINEARREG", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_543stream_LINEARREG, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_542stream_LINEARREG}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_543stream_LINEARREG(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("stream_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, "stream_LINEARREG") < 0)) __PYX_ERR(3, 5455, __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(3, 5455, __pyx_L3_error) + } else { + __pyx_v_timeperiod = ((int)-2147483648); + } + } + goto __pyx_L4_argument_unpacking_done; + __pyx_L5_argtuple_error:; + __Pyx_RaiseArgtupleInvalid("stream_LINEARREG", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 5455, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 5455, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_542stream_LINEARREG(__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_8c_ta_lib_542stream_LINEARREG(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("stream_LINEARREG", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real); + + /* "talib/_stream.pxi":5476 + * 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.pxi":5477 + * 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__2043, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5477, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 5477, __pyx_L1_error) + + /* "talib/_stream.pxi":5476 + * int outnbelement + * double outreal + * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real is not double") + * if real.ndim != 1: + */ + } + + /* "talib/_stream.pxi":5478 + * 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.pxi":5479 + * 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__2044, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5479, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 5479, __pyx_L1_error) + + /* "talib/_stream.pxi":5478 + * 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.pxi":5480 + * 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 = real.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":5481 + * raise Exception("real has wrong dimensions") + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< + * real_data = real.data + * length = real.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5481, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 5481, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":5480 + * 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 = real.data + */ + } + + /* "talib/_stream.pxi":5482 + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data # <<<<<<<<<<<<<< + * length = real.shape[0] + * outreal = NaN + */ + __pyx_v_real_data = ((double *)__pyx_v_real->data); + + /* "talib/_stream.pxi":5483 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = 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.pxi":5484 + * real_data = 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_8c_ta_lib_NaN; + + /* "talib/_stream.pxi":5485 + * 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.pxi":5486 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_LINEARREG, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5486, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":5487 + * 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(3, 5487, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":5455 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":5491 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_LINEARREG_ANGLE( np.ndarray real not None , int timeperiod=-2**31 ): # <<<<<<<<<<<<<< + * """ LINEARREG_ANGLE(real[, timeperiod=?]) + * + */ + +/* Python wrapper */ +static PyObject *__pyx_pw_5talib_8c_ta_lib_545stream_LINEARREG_ANGLE(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_544stream_LINEARREG_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_8c_ta_lib_545stream_LINEARREG_ANGLE = {"stream_LINEARREG_ANGLE", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_545stream_LINEARREG_ANGLE, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_544stream_LINEARREG_ANGLE}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_545stream_LINEARREG_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("stream_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, "stream_LINEARREG_ANGLE") < 0)) __PYX_ERR(3, 5491, __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(3, 5491, __pyx_L3_error) + } else { + __pyx_v_timeperiod = ((int)-2147483648); + } + } + goto __pyx_L4_argument_unpacking_done; + __pyx_L5_argtuple_error:; + __Pyx_RaiseArgtupleInvalid("stream_LINEARREG_ANGLE", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 5491, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 5491, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_544stream_LINEARREG_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_8c_ta_lib_544stream_LINEARREG_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("stream_LINEARREG_ANGLE", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real); + + /* "talib/_stream.pxi":5512 + * 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.pxi":5513 + * 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__2045, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5513, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 5513, __pyx_L1_error) + + /* "talib/_stream.pxi":5512 + * int outnbelement + * double outreal + * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real is not double") + * if real.ndim != 1: + */ + } + + /* "talib/_stream.pxi":5514 + * 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.pxi":5515 + * 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__2046, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5515, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 5515, __pyx_L1_error) + + /* "talib/_stream.pxi":5514 + * 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.pxi":5516 + * 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 = real.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":5517 + * raise Exception("real has wrong dimensions") + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< + * real_data = real.data + * length = real.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5517, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 5517, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":5516 + * 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 = real.data + */ + } + + /* "talib/_stream.pxi":5518 + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data # <<<<<<<<<<<<<< + * length = real.shape[0] + * outreal = NaN + */ + __pyx_v_real_data = ((double *)__pyx_v_real->data); + + /* "talib/_stream.pxi":5519 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = 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.pxi":5520 + * real_data = 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_8c_ta_lib_NaN; + + /* "talib/_stream.pxi":5521 + * 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.pxi":5522 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_LINEARREG_ANGLE, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5522, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":5523 + * 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(3, 5523, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":5491 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":5527 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_LINEARREG_INTERCEPT( np.ndarray real not None , int timeperiod=-2**31 ): # <<<<<<<<<<<<<< + * """ LINEARREG_INTERCEPT(real[, timeperiod=?]) + * + */ + +/* Python wrapper */ +static PyObject *__pyx_pw_5talib_8c_ta_lib_547stream_LINEARREG_INTERCEPT(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_546stream_LINEARREG_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_8c_ta_lib_547stream_LINEARREG_INTERCEPT = {"stream_LINEARREG_INTERCEPT", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_547stream_LINEARREG_INTERCEPT, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_546stream_LINEARREG_INTERCEPT}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_547stream_LINEARREG_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("stream_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, "stream_LINEARREG_INTERCEPT") < 0)) __PYX_ERR(3, 5527, __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(3, 5527, __pyx_L3_error) + } else { + __pyx_v_timeperiod = ((int)-2147483648); + } + } + goto __pyx_L4_argument_unpacking_done; + __pyx_L5_argtuple_error:; + __Pyx_RaiseArgtupleInvalid("stream_LINEARREG_INTERCEPT", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 5527, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 5527, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_546stream_LINEARREG_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_8c_ta_lib_546stream_LINEARREG_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("stream_LINEARREG_INTERCEPT", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real); + + /* "talib/_stream.pxi":5548 + * 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.pxi":5549 + * 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__2047, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5549, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 5549, __pyx_L1_error) + + /* "talib/_stream.pxi":5548 + * int outnbelement + * double outreal + * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real is not double") + * if real.ndim != 1: + */ + } + + /* "talib/_stream.pxi":5550 + * 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.pxi":5551 + * 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__2048, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5551, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 5551, __pyx_L1_error) + + /* "talib/_stream.pxi":5550 + * 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.pxi":5552 + * 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 = real.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":5553 + * raise Exception("real has wrong dimensions") + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< + * real_data = real.data + * length = real.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5553, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 5553, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":5552 + * 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 = real.data + */ + } + + /* "talib/_stream.pxi":5554 + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data # <<<<<<<<<<<<<< + * length = real.shape[0] + * outreal = NaN + */ + __pyx_v_real_data = ((double *)__pyx_v_real->data); + + /* "talib/_stream.pxi":5555 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = 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.pxi":5556 + * real_data = 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_8c_ta_lib_NaN; + + /* "talib/_stream.pxi":5557 + * 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.pxi":5558 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_LINEARREG_INTERCEPT, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5558, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":5559 + * 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(3, 5559, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":5527 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":5563 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_LINEARREG_SLOPE( np.ndarray real not None , int timeperiod=-2**31 ): # <<<<<<<<<<<<<< + * """ LINEARREG_SLOPE(real[, timeperiod=?]) + * + */ + +/* Python wrapper */ +static PyObject *__pyx_pw_5talib_8c_ta_lib_549stream_LINEARREG_SLOPE(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_548stream_LINEARREG_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_8c_ta_lib_549stream_LINEARREG_SLOPE = {"stream_LINEARREG_SLOPE", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_549stream_LINEARREG_SLOPE, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_548stream_LINEARREG_SLOPE}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_549stream_LINEARREG_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("stream_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, "stream_LINEARREG_SLOPE") < 0)) __PYX_ERR(3, 5563, __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(3, 5563, __pyx_L3_error) + } else { + __pyx_v_timeperiod = ((int)-2147483648); + } + } + goto __pyx_L4_argument_unpacking_done; + __pyx_L5_argtuple_error:; + __Pyx_RaiseArgtupleInvalid("stream_LINEARREG_SLOPE", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 5563, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 5563, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_548stream_LINEARREG_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_8c_ta_lib_548stream_LINEARREG_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("stream_LINEARREG_SLOPE", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real); + + /* "talib/_stream.pxi":5584 + * 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.pxi":5585 + * 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__2049, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5585, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 5585, __pyx_L1_error) + + /* "talib/_stream.pxi":5584 + * int outnbelement + * double outreal + * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real is not double") + * if real.ndim != 1: + */ + } + + /* "talib/_stream.pxi":5586 + * 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.pxi":5587 + * 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__2050, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5587, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 5587, __pyx_L1_error) + + /* "talib/_stream.pxi":5586 + * 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.pxi":5588 + * 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 = real.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":5589 + * raise Exception("real has wrong dimensions") + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< + * real_data = real.data + * length = real.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5589, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 5589, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":5588 + * 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 = real.data + */ + } + + /* "talib/_stream.pxi":5590 + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data # <<<<<<<<<<<<<< + * length = real.shape[0] + * outreal = NaN + */ + __pyx_v_real_data = ((double *)__pyx_v_real->data); + + /* "talib/_stream.pxi":5591 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = 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.pxi":5592 + * real_data = 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_8c_ta_lib_NaN; + + /* "talib/_stream.pxi":5593 + * 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.pxi":5594 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_LINEARREG_SLOPE, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5594, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":5595 + * 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(3, 5595, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":5563 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":5599 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_LN( np.ndarray real not None ): # <<<<<<<<<<<<<< + * """ LN(real) + * + */ + +/* Python wrapper */ +static PyObject *__pyx_pw_5talib_8c_ta_lib_551stream_LN(PyObject *__pyx_self, PyObject *__pyx_v_real); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_550stream_LN[] = " 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_8c_ta_lib_551stream_LN = {"stream_LN", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_551stream_LN, METH_O, __pyx_doc_5talib_8c_ta_lib_550stream_LN}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_551stream_LN(PyObject *__pyx_self, PyObject *__pyx_v_real) { + PyObject *__pyx_r = 0; + __Pyx_RefNannyDeclarations + __Pyx_RefNannySetupContext("stream_LN (wrapper)", 0); + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_real), __pyx_ptype_5numpy_ndarray, 0, "real", 0))) __PYX_ERR(3, 5599, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_550stream_LN(__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_8c_ta_lib_550stream_LN(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("stream_LN", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real); + + /* "talib/_stream.pxi":5618 + * 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.pxi":5619 + * 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__2051, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5619, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 5619, __pyx_L1_error) + + /* "talib/_stream.pxi":5618 + * int outnbelement + * double outreal + * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real is not double") + * if real.ndim != 1: + */ + } + + /* "talib/_stream.pxi":5620 + * 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.pxi":5621 + * 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__2052, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5621, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 5621, __pyx_L1_error) + + /* "talib/_stream.pxi":5620 + * 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.pxi":5622 + * 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 = real.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":5623 + * raise Exception("real has wrong dimensions") + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< + * real_data = real.data + * length = real.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5623, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 5623, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":5622 + * 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 = real.data + */ + } + + /* "talib/_stream.pxi":5624 + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data # <<<<<<<<<<<<<< + * length = real.shape[0] + * outreal = NaN + */ + __pyx_v_real_data = ((double *)__pyx_v_real->data); + + /* "talib/_stream.pxi":5625 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = 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.pxi":5626 + * real_data = 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_8c_ta_lib_NaN; + + /* "talib/_stream.pxi":5627 + * 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.pxi":5628 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_LN, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5628, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":5629 + * 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(3, 5629, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":5599 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_LN( np.ndarray real not None ): # <<<<<<<<<<<<<< + * """ LN(real) + * + */ + + /* function exit code */ + __pyx_L1_error:; + __Pyx_XDECREF(__pyx_t_2); + __Pyx_AddTraceback("talib.c_ta_lib.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.pxi":5633 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_LOG10( np.ndarray real not None ): # <<<<<<<<<<<<<< + * """ LOG10(real) + * + */ + +/* Python wrapper */ +static PyObject *__pyx_pw_5talib_8c_ta_lib_553stream_LOG10(PyObject *__pyx_self, PyObject *__pyx_v_real); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_552stream_LOG10[] = " 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_8c_ta_lib_553stream_LOG10 = {"stream_LOG10", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_553stream_LOG10, METH_O, __pyx_doc_5talib_8c_ta_lib_552stream_LOG10}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_553stream_LOG10(PyObject *__pyx_self, PyObject *__pyx_v_real) { + PyObject *__pyx_r = 0; + __Pyx_RefNannyDeclarations + __Pyx_RefNannySetupContext("stream_LOG10 (wrapper)", 0); + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_real), __pyx_ptype_5numpy_ndarray, 0, "real", 0))) __PYX_ERR(3, 5633, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_552stream_LOG10(__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_8c_ta_lib_552stream_LOG10(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("stream_LOG10", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real); + + /* "talib/_stream.pxi":5652 + * 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.pxi":5653 + * 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__2053, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5653, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 5653, __pyx_L1_error) + + /* "talib/_stream.pxi":5652 + * int outnbelement + * double outreal + * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real is not double") + * if real.ndim != 1: + */ + } + + /* "talib/_stream.pxi":5654 + * 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.pxi":5655 + * 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__2054, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5655, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 5655, __pyx_L1_error) + + /* "talib/_stream.pxi":5654 + * 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.pxi":5656 + * 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 = real.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":5657 + * raise Exception("real has wrong dimensions") + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< + * real_data = real.data + * length = real.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5657, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 5657, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":5656 + * 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 = real.data + */ + } + + /* "talib/_stream.pxi":5658 + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data # <<<<<<<<<<<<<< + * length = real.shape[0] + * outreal = NaN + */ + __pyx_v_real_data = ((double *)__pyx_v_real->data); + + /* "talib/_stream.pxi":5659 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = 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.pxi":5660 + * real_data = 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_8c_ta_lib_NaN; + + /* "talib/_stream.pxi":5661 + * 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.pxi":5662 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_LOG10, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5662, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":5663 + * 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(3, 5663, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":5633 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_LOG10( np.ndarray real not None ): # <<<<<<<<<<<<<< + * """ LOG10(real) + * + */ + + /* function exit code */ + __pyx_L1_error:; + __Pyx_XDECREF(__pyx_t_2); + __Pyx_AddTraceback("talib.c_ta_lib.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.pxi":5667 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_MA( np.ndarray real not None , int timeperiod=-2**31 , int matype=0 ): # <<<<<<<<<<<<<< + * """ MA(real[, timeperiod=?, matype=?]) + * + */ + +/* Python wrapper */ +static PyObject *__pyx_pw_5talib_8c_ta_lib_555stream_MA(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_554stream_MA[] = " 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_8c_ta_lib_555stream_MA = {"stream_MA", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_555stream_MA, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_554stream_MA}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_555stream_MA(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("stream_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, "stream_MA") < 0)) __PYX_ERR(3, 5667, __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(3, 5667, __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(3, 5667, __pyx_L3_error) + } else { + __pyx_v_matype = ((int)0); + } + } + goto __pyx_L4_argument_unpacking_done; + __pyx_L5_argtuple_error:; + __Pyx_RaiseArgtupleInvalid("stream_MA", 0, 1, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 5667, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 5667, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_554stream_MA(__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_8c_ta_lib_554stream_MA(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("stream_MA", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real); + + /* "talib/_stream.pxi":5689 + * 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.pxi":5690 + * 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__2055, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5690, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 5690, __pyx_L1_error) + + /* "talib/_stream.pxi":5689 + * int outnbelement + * double outreal + * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real is not double") + * if real.ndim != 1: + */ + } + + /* "talib/_stream.pxi":5691 + * 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.pxi":5692 + * 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__2056, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5692, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 5692, __pyx_L1_error) + + /* "talib/_stream.pxi":5691 + * 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.pxi":5693 + * 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 = real.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":5694 + * raise Exception("real has wrong dimensions") + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< + * real_data = real.data + * length = real.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5694, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 5694, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":5693 + * 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 = real.data + */ + } + + /* "talib/_stream.pxi":5695 + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data # <<<<<<<<<<<<<< + * length = real.shape[0] + * outreal = NaN + */ + __pyx_v_real_data = ((double *)__pyx_v_real->data); + + /* "talib/_stream.pxi":5696 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = 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.pxi":5697 + * real_data = 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_8c_ta_lib_NaN; + + /* "talib/_stream.pxi":5698 + * 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.pxi":5699 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_MA, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5699, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":5700 + * 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(3, 5700, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":5667 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":5704 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_8c_ta_lib_557stream_MACD(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_556stream_MACD[] = " 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_8c_ta_lib_557stream_MACD = {"stream_MACD", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_557stream_MACD, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_556stream_MACD}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_557stream_MACD(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("stream_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, "stream_MACD") < 0)) __PYX_ERR(3, 5704, __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(3, 5704, __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(3, 5704, __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(3, 5704, __pyx_L3_error) + } else { + __pyx_v_signalperiod = ((int)-2147483648); + } + } + goto __pyx_L4_argument_unpacking_done; + __pyx_L5_argtuple_error:; + __Pyx_RaiseArgtupleInvalid("stream_MACD", 0, 1, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 5704, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 5704, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_556stream_MACD(__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_8c_ta_lib_556stream_MACD(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("stream_MACD", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real); + + /* "talib/_stream.pxi":5731 + * 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.pxi":5732 + * 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__2057, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5732, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 5732, __pyx_L1_error) + + /* "talib/_stream.pxi":5731 + * double outmacdsignal + * double outmacdhist + * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real is not double") + * if real.ndim != 1: + */ + } + + /* "talib/_stream.pxi":5733 + * 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.pxi":5734 + * 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__2058, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5734, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 5734, __pyx_L1_error) + + /* "talib/_stream.pxi":5733 + * 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.pxi":5735 + * 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 = real.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":5736 + * raise Exception("real has wrong dimensions") + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< + * real_data = real.data + * length = real.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5736, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 5736, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":5735 + * 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 = real.data + */ + } + + /* "talib/_stream.pxi":5737 + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data # <<<<<<<<<<<<<< + * length = real.shape[0] + * outmacd = NaN + */ + __pyx_v_real_data = ((double *)__pyx_v_real->data); + + /* "talib/_stream.pxi":5738 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data + * length = real.shape[0] # <<<<<<<<<<<<<< + * outmacd = NaN + * outmacdsignal = NaN + */ + __pyx_v_length = (__pyx_v_real->dimensions[0]); + + /* "talib/_stream.pxi":5739 + * real_data = real.data + * length = real.shape[0] + * outmacd = NaN # <<<<<<<<<<<<<< + * outmacdsignal = NaN + * outmacdhist = NaN + */ + __pyx_v_outmacd = __pyx_v_5talib_8c_ta_lib_NaN; + + /* "talib/_stream.pxi":5740 + * 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_8c_ta_lib_NaN; + + /* "talib/_stream.pxi":5741 + * 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_8c_ta_lib_NaN; + + /* "talib/_stream.pxi":5742 + * 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.pxi":5743 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_MACD, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5743, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":5744 + * 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(3, 5744, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_t_3 = PyFloat_FromDouble(__pyx_v_outmacdsignal); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 5744, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + __pyx_t_4 = PyFloat_FromDouble(__pyx_v_outmacdhist); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 5744, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + __pyx_t_5 = PyTuple_New(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5744, __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.pxi":5704 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":5748 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_8c_ta_lib_559stream_MACDEXT(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_558stream_MACDEXT[] = " 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_8c_ta_lib_559stream_MACDEXT = {"stream_MACDEXT", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_559stream_MACDEXT, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_558stream_MACDEXT}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_559stream_MACDEXT(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("stream_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, "stream_MACDEXT") < 0)) __PYX_ERR(3, 5748, __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(3, 5748, __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(3, 5748, __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(3, 5748, __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(3, 5748, __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(3, 5748, __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(3, 5748, __pyx_L3_error) + } else { + __pyx_v_signalmatype = ((int)0); + } + } + goto __pyx_L4_argument_unpacking_done; + __pyx_L5_argtuple_error:; + __Pyx_RaiseArgtupleInvalid("stream_MACDEXT", 0, 1, 7, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 5748, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 5748, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_558stream_MACDEXT(__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_8c_ta_lib_558stream_MACDEXT(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("stream_MACDEXT", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real); + + /* "talib/_stream.pxi":5778 + * 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.pxi":5779 + * 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__2059, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5779, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 5779, __pyx_L1_error) + + /* "talib/_stream.pxi":5778 + * double outmacdsignal + * double outmacdhist + * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real is not double") + * if real.ndim != 1: + */ + } + + /* "talib/_stream.pxi":5780 + * 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.pxi":5781 + * 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__2060, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5781, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 5781, __pyx_L1_error) + + /* "talib/_stream.pxi":5780 + * 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.pxi":5782 + * 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 = real.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":5783 + * raise Exception("real has wrong dimensions") + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< + * real_data = real.data + * length = real.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5783, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 5783, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":5782 + * 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 = real.data + */ + } + + /* "talib/_stream.pxi":5784 + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data # <<<<<<<<<<<<<< + * length = real.shape[0] + * outmacd = NaN + */ + __pyx_v_real_data = ((double *)__pyx_v_real->data); + + /* "talib/_stream.pxi":5785 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data + * length = real.shape[0] # <<<<<<<<<<<<<< + * outmacd = NaN + * outmacdsignal = NaN + */ + __pyx_v_length = (__pyx_v_real->dimensions[0]); + + /* "talib/_stream.pxi":5786 + * real_data = real.data + * length = real.shape[0] + * outmacd = NaN # <<<<<<<<<<<<<< + * outmacdsignal = NaN + * outmacdhist = NaN + */ + __pyx_v_outmacd = __pyx_v_5talib_8c_ta_lib_NaN; + + /* "talib/_stream.pxi":5787 + * 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_8c_ta_lib_NaN; + + /* "talib/_stream.pxi":5788 + * 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_8c_ta_lib_NaN; + + /* "talib/_stream.pxi":5789 + * 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.pxi":5790 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_MACDEXT, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5790, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":5791 + * 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(3, 5791, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_t_3 = PyFloat_FromDouble(__pyx_v_outmacdsignal); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 5791, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + __pyx_t_4 = PyFloat_FromDouble(__pyx_v_outmacdhist); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 5791, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + __pyx_t_5 = PyTuple_New(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5791, __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.pxi":5748 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":5795 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_MACDFIX( np.ndarray real not None , int signalperiod=-2**31 ): # <<<<<<<<<<<<<< + * """ MACDFIX(real[, signalperiod=?]) + * + */ + +/* Python wrapper */ +static PyObject *__pyx_pw_5talib_8c_ta_lib_561stream_MACDFIX(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_560stream_MACDFIX[] = " 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_8c_ta_lib_561stream_MACDFIX = {"stream_MACDFIX", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_561stream_MACDFIX, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_560stream_MACDFIX}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_561stream_MACDFIX(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("stream_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, "stream_MACDFIX") < 0)) __PYX_ERR(3, 5795, __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(3, 5795, __pyx_L3_error) + } else { + __pyx_v_signalperiod = ((int)-2147483648); + } + } + goto __pyx_L4_argument_unpacking_done; + __pyx_L5_argtuple_error:; + __Pyx_RaiseArgtupleInvalid("stream_MACDFIX", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 5795, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 5795, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_560stream_MACDFIX(__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_8c_ta_lib_560stream_MACDFIX(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("stream_MACDFIX", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real); + + /* "talib/_stream.pxi":5820 + * 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.pxi":5821 + * 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__2061, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5821, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 5821, __pyx_L1_error) + + /* "talib/_stream.pxi":5820 + * double outmacdsignal + * double outmacdhist + * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real is not double") + * if real.ndim != 1: + */ + } + + /* "talib/_stream.pxi":5822 + * 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.pxi":5823 + * 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__2062, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5823, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 5823, __pyx_L1_error) + + /* "talib/_stream.pxi":5822 + * 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.pxi":5824 + * 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 = real.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":5825 + * raise Exception("real has wrong dimensions") + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< + * real_data = real.data + * length = real.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5825, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 5825, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":5824 + * 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 = real.data + */ + } + + /* "talib/_stream.pxi":5826 + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data # <<<<<<<<<<<<<< + * length = real.shape[0] + * outmacd = NaN + */ + __pyx_v_real_data = ((double *)__pyx_v_real->data); + + /* "talib/_stream.pxi":5827 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data + * length = real.shape[0] # <<<<<<<<<<<<<< + * outmacd = NaN + * outmacdsignal = NaN + */ + __pyx_v_length = (__pyx_v_real->dimensions[0]); + + /* "talib/_stream.pxi":5828 + * real_data = real.data + * length = real.shape[0] + * outmacd = NaN # <<<<<<<<<<<<<< + * outmacdsignal = NaN + * outmacdhist = NaN + */ + __pyx_v_outmacd = __pyx_v_5talib_8c_ta_lib_NaN; + + /* "talib/_stream.pxi":5829 + * 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_8c_ta_lib_NaN; + + /* "talib/_stream.pxi":5830 + * 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_8c_ta_lib_NaN; + + /* "talib/_stream.pxi":5831 + * 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.pxi":5832 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_MACDFIX, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5832, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":5833 + * 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(3, 5833, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_t_3 = PyFloat_FromDouble(__pyx_v_outmacdsignal); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 5833, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + __pyx_t_4 = PyFloat_FromDouble(__pyx_v_outmacdhist); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 5833, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + __pyx_t_5 = PyTuple_New(3); if (unlikely(!__pyx_t_5)) __PYX_ERR(3, 5833, __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.pxi":5795 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":5837 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_MAMA( np.ndarray real not None , double fastlimit=-4e37 , double slowlimit=-4e37 ): # <<<<<<<<<<<<<< + * """ MAMA(real[, fastlimit=?, slowlimit=?]) + * + */ + +/* Python wrapper */ +static PyObject *__pyx_pw_5talib_8c_ta_lib_563stream_MAMA(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_562stream_MAMA[] = " 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_8c_ta_lib_563stream_MAMA = {"stream_MAMA", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_563stream_MAMA, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_562stream_MAMA}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_563stream_MAMA(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("stream_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, "stream_MAMA") < 0)) __PYX_ERR(3, 5837, __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(3, 5837, __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(3, 5837, __pyx_L3_error) + } else { + __pyx_v_slowlimit = ((double)-4e37); + } + } + goto __pyx_L4_argument_unpacking_done; + __pyx_L5_argtuple_error:; + __Pyx_RaiseArgtupleInvalid("stream_MAMA", 0, 1, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 5837, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 5837, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_562stream_MAMA(__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_8c_ta_lib_562stream_MAMA(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("stream_MAMA", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real); + + /* "talib/_stream.pxi":5861 + * 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.pxi":5862 + * 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__2063, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5862, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 5862, __pyx_L1_error) + + /* "talib/_stream.pxi":5861 + * double outmama + * double outfama + * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real is not double") + * if real.ndim != 1: + */ + } + + /* "talib/_stream.pxi":5863 + * 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.pxi":5864 + * 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__2064, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5864, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 5864, __pyx_L1_error) + + /* "talib/_stream.pxi":5863 + * 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.pxi":5865 + * 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 = real.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":5866 + * raise Exception("real has wrong dimensions") + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< + * real_data = real.data + * length = real.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5866, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 5866, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":5865 + * 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 = real.data + */ + } + + /* "talib/_stream.pxi":5867 + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data # <<<<<<<<<<<<<< + * length = real.shape[0] + * outmama = NaN + */ + __pyx_v_real_data = ((double *)__pyx_v_real->data); + + /* "talib/_stream.pxi":5868 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data + * length = real.shape[0] # <<<<<<<<<<<<<< + * outmama = NaN + * outfama = NaN + */ + __pyx_v_length = (__pyx_v_real->dimensions[0]); + + /* "talib/_stream.pxi":5869 + * real_data = 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_8c_ta_lib_NaN; + + /* "talib/_stream.pxi":5870 + * 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_8c_ta_lib_NaN; + + /* "talib/_stream.pxi":5871 + * 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.pxi":5872 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_MAMA, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5872, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":5873 + * 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(3, 5873, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_t_3 = PyFloat_FromDouble(__pyx_v_outfama); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 5873, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 5873, __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.pxi":5837 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":5877 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_8c_ta_lib_565stream_MAVP(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_564stream_MAVP[] = " 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_8c_ta_lib_565stream_MAVP = {"stream_MAVP", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_565stream_MAVP, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_564stream_MAVP}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_565stream_MAVP(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("stream_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("stream_MAVP", 0, 2, 5, 1); __PYX_ERR(3, 5877, __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, "stream_MAVP") < 0)) __PYX_ERR(3, 5877, __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(3, 5877, __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(3, 5877, __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(3, 5877, __pyx_L3_error) + } else { + __pyx_v_matype = ((int)0); + } + } + goto __pyx_L4_argument_unpacking_done; + __pyx_L5_argtuple_error:; + __Pyx_RaiseArgtupleInvalid("stream_MAVP", 0, 2, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 5877, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 5877, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_periods), __pyx_ptype_5numpy_ndarray, 0, "periods", 0))) __PYX_ERR(3, 5877, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_564stream_MAVP(__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_8c_ta_lib_564stream_MAVP(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("stream_MAVP", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real); + __Pyx_INCREF((PyObject *)__pyx_v_periods); + + /* "talib/_stream.pxi":5902 + * 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.pxi":5903 + * 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__2065, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5903, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 5903, __pyx_L1_error) + + /* "talib/_stream.pxi":5902 + * int outnbelement + * double outreal + * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real is not double") + * if real.ndim != 1: + */ + } + + /* "talib/_stream.pxi":5904 + * 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.pxi":5905 + * 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__2066, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5905, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 5905, __pyx_L1_error) + + /* "talib/_stream.pxi":5904 + * 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.pxi":5906 + * 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 = real.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":5907 + * raise Exception("real has wrong dimensions") + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< + * real_data = real.data + * if PyArray_TYPE(periods) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5907, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 5907, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":5906 + * 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 = real.data + */ + } + + /* "talib/_stream.pxi":5908 + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) + * real_data = 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.pxi":5909 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = 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.pxi":5910 + * real_data = 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__2067, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5910, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 5910, __pyx_L1_error) + + /* "talib/_stream.pxi":5909 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data + * if PyArray_TYPE(periods) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("periods is not double") + * if periods.ndim != 1: + */ + } + + /* "talib/_stream.pxi":5911 + * 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.pxi":5912 + * 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__2068, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5912, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 5912, __pyx_L1_error) + + /* "talib/_stream.pxi":5911 + * 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.pxi":5913 + * 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 = periods.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_periods) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":5914 + * raise Exception("periods has wrong dimensions") + * if not (PyArray_FLAGS(periods) & np.NPY_C_CONTIGUOUS): + * periods = PyArray_GETCONTIGUOUS(periods) # <<<<<<<<<<<<<< + * periods_data = periods.data + * length = real.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_periods); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5914, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 5914, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_periods, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":5913 + * 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 = periods.data + */ + } + + /* "talib/_stream.pxi":5915 + * if not (PyArray_FLAGS(periods) & np.NPY_C_CONTIGUOUS): + * periods = PyArray_GETCONTIGUOUS(periods) + * periods_data = periods.data # <<<<<<<<<<<<<< + * length = real.shape[0] + * if length != periods.shape[0]: + */ + __pyx_v_periods_data = ((double *)__pyx_v_periods->data); + + /* "talib/_stream.pxi":5916 + * periods = PyArray_GETCONTIGUOUS(periods) + * periods_data = 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.pxi":5917 + * periods_data = 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.pxi":5918 + * 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__2069, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5918, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 5918, __pyx_L1_error) + + /* "talib/_stream.pxi":5917 + * periods_data = periods.data + * length = real.shape[0] + * if length != periods.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * outreal = NaN + */ + } + + /* "talib/_stream.pxi":5919 + * 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_8c_ta_lib_NaN; + + /* "talib/_stream.pxi":5920 + * 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.pxi":5921 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_MAVP, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5921, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":5922 + * 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(3, 5922, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":5877 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":5926 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_MAX( np.ndarray real not None , int timeperiod=-2**31 ): # <<<<<<<<<<<<<< + * """ MAX(real[, timeperiod=?]) + * + */ + +/* Python wrapper */ +static PyObject *__pyx_pw_5talib_8c_ta_lib_567stream_MAX(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_566stream_MAX[] = " 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_8c_ta_lib_567stream_MAX = {"stream_MAX", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_567stream_MAX, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_566stream_MAX}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_567stream_MAX(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("stream_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, "stream_MAX") < 0)) __PYX_ERR(3, 5926, __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(3, 5926, __pyx_L3_error) + } else { + __pyx_v_timeperiod = ((int)-2147483648); + } + } + goto __pyx_L4_argument_unpacking_done; + __pyx_L5_argtuple_error:; + __Pyx_RaiseArgtupleInvalid("stream_MAX", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 5926, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 5926, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_566stream_MAX(__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_8c_ta_lib_566stream_MAX(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("stream_MAX", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real); + + /* "talib/_stream.pxi":5947 + * 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.pxi":5948 + * 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__2070, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5948, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 5948, __pyx_L1_error) + + /* "talib/_stream.pxi":5947 + * int outnbelement + * double outreal + * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real is not double") + * if real.ndim != 1: + */ + } + + /* "talib/_stream.pxi":5949 + * 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.pxi":5950 + * 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__2071, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5950, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 5950, __pyx_L1_error) + + /* "talib/_stream.pxi":5949 + * 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.pxi":5951 + * 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 = real.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":5952 + * raise Exception("real has wrong dimensions") + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< + * real_data = real.data + * length = real.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5952, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 5952, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":5951 + * 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 = real.data + */ + } + + /* "talib/_stream.pxi":5953 + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data # <<<<<<<<<<<<<< + * length = real.shape[0] + * outreal = NaN + */ + __pyx_v_real_data = ((double *)__pyx_v_real->data); + + /* "talib/_stream.pxi":5954 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = 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.pxi":5955 + * real_data = 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_8c_ta_lib_NaN; + + /* "talib/_stream.pxi":5956 + * 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.pxi":5957 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_MAX, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5957, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":5958 + * 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(3, 5958, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":5926 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":5962 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_MAXINDEX( np.ndarray real not None , int timeperiod=-2**31 ): # <<<<<<<<<<<<<< + * """ MAXINDEX(real[, timeperiod=?]) + * + */ + +/* Python wrapper */ +static PyObject *__pyx_pw_5talib_8c_ta_lib_569stream_MAXINDEX(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_568stream_MAXINDEX[] = " 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_8c_ta_lib_569stream_MAXINDEX = {"stream_MAXINDEX", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_569stream_MAXINDEX, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_568stream_MAXINDEX}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_569stream_MAXINDEX(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("stream_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, "stream_MAXINDEX") < 0)) __PYX_ERR(3, 5962, __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(3, 5962, __pyx_L3_error) + } else { + __pyx_v_timeperiod = ((int)-2147483648); + } + } + goto __pyx_L4_argument_unpacking_done; + __pyx_L5_argtuple_error:; + __Pyx_RaiseArgtupleInvalid("stream_MAXINDEX", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 5962, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 5962, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_568stream_MAXINDEX(__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_8c_ta_lib_568stream_MAXINDEX(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("stream_MAXINDEX", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real); + + /* "talib/_stream.pxi":5983 + * 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.pxi":5984 + * 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__2072, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5984, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 5984, __pyx_L1_error) + + /* "talib/_stream.pxi":5983 + * int outnbelement + * int outinteger + * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real is not double") + * if real.ndim != 1: + */ + } + + /* "talib/_stream.pxi":5985 + * 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.pxi":5986 + * 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__2073, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5986, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 5986, __pyx_L1_error) + + /* "talib/_stream.pxi":5985 + * 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.pxi":5987 + * 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 = real.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":5988 + * raise Exception("real has wrong dimensions") + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< + * real_data = real.data + * length = real.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5988, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 5988, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":5987 + * 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 = real.data + */ + } + + /* "talib/_stream.pxi":5989 + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data # <<<<<<<<<<<<<< + * length = real.shape[0] + * outinteger = 0 + */ + __pyx_v_real_data = ((double *)__pyx_v_real->data); + + /* "talib/_stream.pxi":5990 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = 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.pxi":5991 + * real_data = 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.pxi":5992 + * 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.pxi":5993 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_MAXINDEX, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 5993, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":5994 + * 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(3, 5994, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":5962 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":5998 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_MEDPRICE( np.ndarray high not None , np.ndarray low not None ): # <<<<<<<<<<<<<< + * """ MEDPRICE(high, low) + * + */ + +/* Python wrapper */ +static PyObject *__pyx_pw_5talib_8c_ta_lib_571stream_MEDPRICE(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_570stream_MEDPRICE[] = " 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_8c_ta_lib_571stream_MEDPRICE = {"stream_MEDPRICE", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_571stream_MEDPRICE, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_570stream_MEDPRICE}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_571stream_MEDPRICE(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("stream_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("stream_MEDPRICE", 1, 2, 2, 1); __PYX_ERR(3, 5998, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "stream_MEDPRICE") < 0)) __PYX_ERR(3, 5998, __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("stream_MEDPRICE", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 5998, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 5998, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(3, 5998, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_570stream_MEDPRICE(__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_8c_ta_lib_570stream_MEDPRICE(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("stream_MEDPRICE", 0); + __Pyx_INCREF((PyObject *)__pyx_v_high); + __Pyx_INCREF((PyObject *)__pyx_v_low); + + /* "talib/_stream.pxi":6018 + * 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.pxi":6019 + * 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__2074, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6019, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 6019, __pyx_L1_error) + + /* "talib/_stream.pxi":6018 + * int outnbelement + * double outreal + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_stream.pxi":6020 + * 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.pxi":6021 + * raise 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__2075, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6021, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 6021, __pyx_L1_error) + + /* "talib/_stream.pxi":6020 + * 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.pxi":6022 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":6023 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6023, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 6023, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":6022 + * 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 = high.data + */ + } + + /* "talib/_stream.pxi":6024 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":6025 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":6026 + * high_data = 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__2076, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6026, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 6026, __pyx_L1_error) + + /* "talib/_stream.pxi":6025 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_stream.pxi":6027 + * 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.pxi":6028 + * raise 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__2077, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6028, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 6028, __pyx_L1_error) + + /* "talib/_stream.pxi":6027 + * 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.pxi":6029 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":6030 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * length = high.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6030, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 6030, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":6029 + * 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 = low.data + */ + } + + /* "talib/_stream.pxi":6031 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data # <<<<<<<<<<<<<< + * length = high.shape[0] + * if length != low.shape[0]: + */ + __pyx_v_low_data = ((double *)__pyx_v_low->data); + + /* "talib/_stream.pxi":6032 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":6033 + * low_data = 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.pxi":6034 + * 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__2078, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6034, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 6034, __pyx_L1_error) + + /* "talib/_stream.pxi":6033 + * low_data = low.data + * length = high.shape[0] + * if length != low.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * outreal = NaN + */ + } + + /* "talib/_stream.pxi":6035 + * 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_8c_ta_lib_NaN; + + /* "talib/_stream.pxi":6036 + * 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.pxi":6037 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_MEDPRICE, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6037, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":6038 + * 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(3, 6038, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":5998 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":6042 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_8c_ta_lib_573stream_MFI(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_572stream_MFI[] = " 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_8c_ta_lib_573stream_MFI = {"stream_MFI", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_573stream_MFI, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_572stream_MFI}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_573stream_MFI(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("stream_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("stream_MFI", 0, 4, 5, 1); __PYX_ERR(3, 6042, __pyx_L3_error) + } + case 2: + if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_MFI", 0, 4, 5, 2); __PYX_ERR(3, 6042, __pyx_L3_error) + } + case 3: + if (likely((values[3] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_volume)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_MFI", 0, 4, 5, 3); __PYX_ERR(3, 6042, __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, "stream_MFI") < 0)) __PYX_ERR(3, 6042, __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(3, 6042, __pyx_L3_error) + } else { + __pyx_v_timeperiod = ((int)-2147483648); + } + } + goto __pyx_L4_argument_unpacking_done; + __pyx_L5_argtuple_error:; + __Pyx_RaiseArgtupleInvalid("stream_MFI", 0, 4, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 6042, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 6042, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(3, 6042, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(3, 6042, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_volume), __pyx_ptype_5numpy_ndarray, 0, "volume", 0))) __PYX_ERR(3, 6042, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_572stream_MFI(__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_8c_ta_lib_572stream_MFI(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("stream_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.pxi":6066 + * 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.pxi":6067 + * 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__2079, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6067, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 6067, __pyx_L1_error) + + /* "talib/_stream.pxi":6066 + * int outnbelement + * double outreal + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_stream.pxi":6068 + * 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.pxi":6069 + * raise 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__2080, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6069, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 6069, __pyx_L1_error) + + /* "talib/_stream.pxi":6068 + * 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.pxi":6070 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":6071 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6071, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 6071, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":6070 + * 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 = high.data + */ + } + + /* "talib/_stream.pxi":6072 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":6073 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":6074 + * high_data = 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__2081, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6074, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 6074, __pyx_L1_error) + + /* "talib/_stream.pxi":6073 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_stream.pxi":6075 + * 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.pxi":6076 + * raise 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__2082, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6076, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 6076, __pyx_L1_error) + + /* "talib/_stream.pxi":6075 + * 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.pxi":6077 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":6078 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6078, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 6078, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":6077 + * 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 = low.data + */ + } + + /* "talib/_stream.pxi":6079 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":6080 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":6081 + * low_data = 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__2083, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 6081, __pyx_L1_error) + + /* "talib/_stream.pxi":6080 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_stream.pxi":6082 + * 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.pxi":6083 + * raise 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__2084, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 6083, __pyx_L1_error) + + /* "talib/_stream.pxi":6082 + * 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.pxi":6084 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":6085 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * if PyArray_TYPE(volume) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 6085, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":6084 + * 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 = close.data + */ + } + + /* "talib/_stream.pxi":6086 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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.pxi":6087 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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.pxi":6088 + * close_data = 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__2085, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 6088, __pyx_L1_error) + + /* "talib/_stream.pxi":6087 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data + * if PyArray_TYPE(volume) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("volume is not double") + * if volume.ndim != 1: + */ + } + + /* "talib/_stream.pxi":6089 + * 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.pxi":6090 + * 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__2086, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 6090, __pyx_L1_error) + + /* "talib/_stream.pxi":6089 + * 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.pxi":6091 + * 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 = volume.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_volume) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":6092 + * raise Exception("volume has wrong dimensions") + * if not (PyArray_FLAGS(volume) & np.NPY_C_CONTIGUOUS): + * volume = PyArray_GETCONTIGUOUS(volume) # <<<<<<<<<<<<<< + * volume_data = volume.data + * length = high.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_volume); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 6092, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_volume, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":6091 + * 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 = volume.data + */ + } + + /* "talib/_stream.pxi":6093 + * if not (PyArray_FLAGS(volume) & np.NPY_C_CONTIGUOUS): + * volume = PyArray_GETCONTIGUOUS(volume) + * volume_data = volume.data # <<<<<<<<<<<<<< + * length = high.shape[0] + * if length != low.shape[0]: + */ + __pyx_v_volume_data = ((double *)__pyx_v_volume->data); + + /* "talib/_stream.pxi":6094 + * volume = PyArray_GETCONTIGUOUS(volume) + * volume_data = 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.pxi":6095 + * volume_data = 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.pxi":6096 + * 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__2087, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6096, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 6096, __pyx_L1_error) + + /* "talib/_stream.pxi":6095 + * volume_data = volume.data + * length = high.shape[0] + * if length != low.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != close.shape[0]: + */ + } + + /* "talib/_stream.pxi":6097 + * 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.pxi":6098 + * 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__2088, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6098, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 6098, __pyx_L1_error) + + /* "talib/_stream.pxi":6097 + * 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.pxi":6099 + * 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.pxi":6100 + * 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__2089, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6100, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 6100, __pyx_L1_error) + + /* "talib/_stream.pxi":6099 + * 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.pxi":6101 + * 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_8c_ta_lib_NaN; + + /* "talib/_stream.pxi":6102 + * 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.pxi":6103 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_MFI, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6103, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":6104 + * 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(3, 6104, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":6042 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":6108 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_MIDPOINT( np.ndarray real not None , int timeperiod=-2**31 ): # <<<<<<<<<<<<<< + * """ MIDPOINT(real[, timeperiod=?]) + * + */ + +/* Python wrapper */ +static PyObject *__pyx_pw_5talib_8c_ta_lib_575stream_MIDPOINT(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_574stream_MIDPOINT[] = " 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_8c_ta_lib_575stream_MIDPOINT = {"stream_MIDPOINT", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_575stream_MIDPOINT, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_574stream_MIDPOINT}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_575stream_MIDPOINT(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("stream_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, "stream_MIDPOINT") < 0)) __PYX_ERR(3, 6108, __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(3, 6108, __pyx_L3_error) + } else { + __pyx_v_timeperiod = ((int)-2147483648); + } + } + goto __pyx_L4_argument_unpacking_done; + __pyx_L5_argtuple_error:; + __Pyx_RaiseArgtupleInvalid("stream_MIDPOINT", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 6108, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 6108, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_574stream_MIDPOINT(__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_8c_ta_lib_574stream_MIDPOINT(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("stream_MIDPOINT", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real); + + /* "talib/_stream.pxi":6129 + * 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.pxi":6130 + * 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__2090, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6130, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 6130, __pyx_L1_error) + + /* "talib/_stream.pxi":6129 + * int outnbelement + * double outreal + * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real is not double") + * if real.ndim != 1: + */ + } + + /* "talib/_stream.pxi":6131 + * 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.pxi":6132 + * 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__2091, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6132, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 6132, __pyx_L1_error) + + /* "talib/_stream.pxi":6131 + * 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.pxi":6133 + * 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 = real.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":6134 + * raise Exception("real has wrong dimensions") + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< + * real_data = real.data + * length = real.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6134, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 6134, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":6133 + * 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 = real.data + */ + } + + /* "talib/_stream.pxi":6135 + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data # <<<<<<<<<<<<<< + * length = real.shape[0] + * outreal = NaN + */ + __pyx_v_real_data = ((double *)__pyx_v_real->data); + + /* "talib/_stream.pxi":6136 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = 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.pxi":6137 + * real_data = 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_8c_ta_lib_NaN; + + /* "talib/_stream.pxi":6138 + * 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.pxi":6139 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_MIDPOINT, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6139, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":6140 + * 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(3, 6140, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":6108 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":6144 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_8c_ta_lib_577stream_MIDPRICE(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_576stream_MIDPRICE[] = " 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_8c_ta_lib_577stream_MIDPRICE = {"stream_MIDPRICE", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_577stream_MIDPRICE, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_576stream_MIDPRICE}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_577stream_MIDPRICE(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("stream_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("stream_MIDPRICE", 0, 2, 3, 1); __PYX_ERR(3, 6144, __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, "stream_MIDPRICE") < 0)) __PYX_ERR(3, 6144, __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(3, 6144, __pyx_L3_error) + } else { + __pyx_v_timeperiod = ((int)-2147483648); + } + } + goto __pyx_L4_argument_unpacking_done; + __pyx_L5_argtuple_error:; + __Pyx_RaiseArgtupleInvalid("stream_MIDPRICE", 0, 2, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 6144, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 6144, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(3, 6144, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_576stream_MIDPRICE(__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_8c_ta_lib_576stream_MIDPRICE(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("stream_MIDPRICE", 0); + __Pyx_INCREF((PyObject *)__pyx_v_high); + __Pyx_INCREF((PyObject *)__pyx_v_low); + + /* "talib/_stream.pxi":6166 + * 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.pxi":6167 + * 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__2092, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6167, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 6167, __pyx_L1_error) + + /* "talib/_stream.pxi":6166 + * int outnbelement + * double outreal + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_stream.pxi":6168 + * 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.pxi":6169 + * raise 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__2093, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6169, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 6169, __pyx_L1_error) + + /* "talib/_stream.pxi":6168 + * 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.pxi":6170 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":6171 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6171, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 6171, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":6170 + * 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 = high.data + */ + } + + /* "talib/_stream.pxi":6172 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":6173 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":6174 + * high_data = 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__2094, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6174, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 6174, __pyx_L1_error) + + /* "talib/_stream.pxi":6173 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_stream.pxi":6175 + * 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.pxi":6176 + * raise 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__2095, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6176, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 6176, __pyx_L1_error) + + /* "talib/_stream.pxi":6175 + * 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.pxi":6177 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":6178 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * length = high.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6178, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 6178, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":6177 + * 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 = low.data + */ + } + + /* "talib/_stream.pxi":6179 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data # <<<<<<<<<<<<<< + * length = high.shape[0] + * if length != low.shape[0]: + */ + __pyx_v_low_data = ((double *)__pyx_v_low->data); + + /* "talib/_stream.pxi":6180 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":6181 + * low_data = 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.pxi":6182 + * 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__2096, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6182, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 6182, __pyx_L1_error) + + /* "talib/_stream.pxi":6181 + * low_data = low.data + * length = high.shape[0] + * if length != low.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * outreal = NaN + */ + } + + /* "talib/_stream.pxi":6183 + * 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_8c_ta_lib_NaN; + + /* "talib/_stream.pxi":6184 + * 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.pxi":6185 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_MIDPRICE, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6185, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":6186 + * 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(3, 6186, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":6144 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":6190 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_MIN( np.ndarray real not None , int timeperiod=-2**31 ): # <<<<<<<<<<<<<< + * """ MIN(real[, timeperiod=?]) + * + */ + +/* Python wrapper */ +static PyObject *__pyx_pw_5talib_8c_ta_lib_579stream_MIN(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_578stream_MIN[] = " 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_8c_ta_lib_579stream_MIN = {"stream_MIN", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_579stream_MIN, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_578stream_MIN}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_579stream_MIN(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("stream_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, "stream_MIN") < 0)) __PYX_ERR(3, 6190, __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(3, 6190, __pyx_L3_error) + } else { + __pyx_v_timeperiod = ((int)-2147483648); + } + } + goto __pyx_L4_argument_unpacking_done; + __pyx_L5_argtuple_error:; + __Pyx_RaiseArgtupleInvalid("stream_MIN", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 6190, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 6190, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_578stream_MIN(__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_8c_ta_lib_578stream_MIN(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("stream_MIN", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real); + + /* "talib/_stream.pxi":6211 + * 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.pxi":6212 + * 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__2097, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6212, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 6212, __pyx_L1_error) + + /* "talib/_stream.pxi":6211 + * int outnbelement + * double outreal + * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real is not double") + * if real.ndim != 1: + */ + } + + /* "talib/_stream.pxi":6213 + * 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.pxi":6214 + * 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__2098, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6214, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 6214, __pyx_L1_error) + + /* "talib/_stream.pxi":6213 + * 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.pxi":6215 + * 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 = real.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":6216 + * raise Exception("real has wrong dimensions") + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< + * real_data = real.data + * length = real.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6216, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 6216, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":6215 + * 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 = real.data + */ + } + + /* "talib/_stream.pxi":6217 + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data # <<<<<<<<<<<<<< + * length = real.shape[0] + * outreal = NaN + */ + __pyx_v_real_data = ((double *)__pyx_v_real->data); + + /* "talib/_stream.pxi":6218 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = 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.pxi":6219 + * real_data = 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_8c_ta_lib_NaN; + + /* "talib/_stream.pxi":6220 + * 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.pxi":6221 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_MIN, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6221, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":6222 + * 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(3, 6222, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":6190 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":6226 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_MININDEX( np.ndarray real not None , int timeperiod=-2**31 ): # <<<<<<<<<<<<<< + * """ MININDEX(real[, timeperiod=?]) + * + */ + +/* Python wrapper */ +static PyObject *__pyx_pw_5talib_8c_ta_lib_581stream_MININDEX(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_580stream_MININDEX[] = " 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_8c_ta_lib_581stream_MININDEX = {"stream_MININDEX", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_581stream_MININDEX, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_580stream_MININDEX}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_581stream_MININDEX(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("stream_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, "stream_MININDEX") < 0)) __PYX_ERR(3, 6226, __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(3, 6226, __pyx_L3_error) + } else { + __pyx_v_timeperiod = ((int)-2147483648); + } + } + goto __pyx_L4_argument_unpacking_done; + __pyx_L5_argtuple_error:; + __Pyx_RaiseArgtupleInvalid("stream_MININDEX", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 6226, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 6226, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_580stream_MININDEX(__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_8c_ta_lib_580stream_MININDEX(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("stream_MININDEX", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real); + + /* "talib/_stream.pxi":6247 + * 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.pxi":6248 + * 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__2099, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6248, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 6248, __pyx_L1_error) + + /* "talib/_stream.pxi":6247 + * int outnbelement + * int outinteger + * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real is not double") + * if real.ndim != 1: + */ + } + + /* "talib/_stream.pxi":6249 + * 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.pxi":6250 + * 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__2100, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6250, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 6250, __pyx_L1_error) + + /* "talib/_stream.pxi":6249 + * 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.pxi":6251 + * 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 = real.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":6252 + * raise Exception("real has wrong dimensions") + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< + * real_data = real.data + * length = real.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6252, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 6252, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":6251 + * 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 = real.data + */ + } + + /* "talib/_stream.pxi":6253 + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data # <<<<<<<<<<<<<< + * length = real.shape[0] + * outinteger = 0 + */ + __pyx_v_real_data = ((double *)__pyx_v_real->data); + + /* "talib/_stream.pxi":6254 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = 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.pxi":6255 + * real_data = 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.pxi":6256 + * 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.pxi":6257 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_MININDEX, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6257, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":6258 + * 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(3, 6258, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":6226 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":6262 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_MINMAX( np.ndarray real not None , int timeperiod=-2**31 ): # <<<<<<<<<<<<<< + * """ MINMAX(real[, timeperiod=?]) + * + */ + +/* Python wrapper */ +static PyObject *__pyx_pw_5talib_8c_ta_lib_583stream_MINMAX(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_582stream_MINMAX[] = " 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_8c_ta_lib_583stream_MINMAX = {"stream_MINMAX", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_583stream_MINMAX, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_582stream_MINMAX}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_583stream_MINMAX(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("stream_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, "stream_MINMAX") < 0)) __PYX_ERR(3, 6262, __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(3, 6262, __pyx_L3_error) + } else { + __pyx_v_timeperiod = ((int)-2147483648); + } + } + goto __pyx_L4_argument_unpacking_done; + __pyx_L5_argtuple_error:; + __Pyx_RaiseArgtupleInvalid("stream_MINMAX", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 6262, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 6262, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_582stream_MINMAX(__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_8c_ta_lib_582stream_MINMAX(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("stream_MINMAX", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real); + + /* "talib/_stream.pxi":6285 + * 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.pxi":6286 + * 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__2101, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6286, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 6286, __pyx_L1_error) + + /* "talib/_stream.pxi":6285 + * double outmin + * double outmax + * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real is not double") + * if real.ndim != 1: + */ + } + + /* "talib/_stream.pxi":6287 + * 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.pxi":6288 + * 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__2102, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6288, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 6288, __pyx_L1_error) + + /* "talib/_stream.pxi":6287 + * 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.pxi":6289 + * 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 = real.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":6290 + * raise Exception("real has wrong dimensions") + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< + * real_data = real.data + * length = real.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6290, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 6290, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":6289 + * 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 = real.data + */ + } + + /* "talib/_stream.pxi":6291 + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data # <<<<<<<<<<<<<< + * length = real.shape[0] + * outmin = NaN + */ + __pyx_v_real_data = ((double *)__pyx_v_real->data); + + /* "talib/_stream.pxi":6292 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data + * length = real.shape[0] # <<<<<<<<<<<<<< + * outmin = NaN + * outmax = NaN + */ + __pyx_v_length = (__pyx_v_real->dimensions[0]); + + /* "talib/_stream.pxi":6293 + * real_data = 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_8c_ta_lib_NaN; + + /* "talib/_stream.pxi":6294 + * 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_8c_ta_lib_NaN; + + /* "talib/_stream.pxi":6295 + * 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.pxi":6296 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_MINMAX, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6296, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":6297 + * 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(3, 6297, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_t_3 = PyFloat_FromDouble(__pyx_v_outmax); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 6297, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 6297, __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.pxi":6262 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":6301 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_MINMAXINDEX( np.ndarray real not None , int timeperiod=-2**31 ): # <<<<<<<<<<<<<< + * """ MINMAXINDEX(real[, timeperiod=?]) + * + */ + +/* Python wrapper */ +static PyObject *__pyx_pw_5talib_8c_ta_lib_585stream_MINMAXINDEX(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_584stream_MINMAXINDEX[] = " 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_8c_ta_lib_585stream_MINMAXINDEX = {"stream_MINMAXINDEX", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_585stream_MINMAXINDEX, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_584stream_MINMAXINDEX}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_585stream_MINMAXINDEX(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("stream_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, "stream_MINMAXINDEX") < 0)) __PYX_ERR(3, 6301, __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(3, 6301, __pyx_L3_error) + } else { + __pyx_v_timeperiod = ((int)-2147483648); + } + } + goto __pyx_L4_argument_unpacking_done; + __pyx_L5_argtuple_error:; + __Pyx_RaiseArgtupleInvalid("stream_MINMAXINDEX", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 6301, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 6301, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_584stream_MINMAXINDEX(__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_8c_ta_lib_584stream_MINMAXINDEX(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("stream_MINMAXINDEX", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real); + + /* "talib/_stream.pxi":6324 + * 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.pxi":6325 + * 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__2103, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6325, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 6325, __pyx_L1_error) + + /* "talib/_stream.pxi":6324 + * int outminidx + * int outmaxidx + * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real is not double") + * if real.ndim != 1: + */ + } + + /* "talib/_stream.pxi":6326 + * 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.pxi":6327 + * 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__2104, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6327, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 6327, __pyx_L1_error) + + /* "talib/_stream.pxi":6326 + * 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.pxi":6328 + * 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 = real.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":6329 + * raise Exception("real has wrong dimensions") + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< + * real_data = real.data + * length = real.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6329, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 6329, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":6328 + * 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 = real.data + */ + } + + /* "talib/_stream.pxi":6330 + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data # <<<<<<<<<<<<<< + * length = real.shape[0] + * outminidx = 0 + */ + __pyx_v_real_data = ((double *)__pyx_v_real->data); + + /* "talib/_stream.pxi":6331 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data + * length = real.shape[0] # <<<<<<<<<<<<<< + * outminidx = 0 + * outmaxidx = 0 + */ + __pyx_v_length = (__pyx_v_real->dimensions[0]); + + /* "talib/_stream.pxi":6332 + * real_data = 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.pxi":6333 + * 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.pxi":6334 + * 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.pxi":6335 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_MINMAXINDEX, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6335, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":6336 + * 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(3, 6336, __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(3, 6336, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 6336, __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.pxi":6301 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":6340 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_8c_ta_lib_587stream_MINUS_DI(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_586stream_MINUS_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_8c_ta_lib_587stream_MINUS_DI = {"stream_MINUS_DI", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_587stream_MINUS_DI, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_586stream_MINUS_DI}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_587stream_MINUS_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("stream_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("stream_MINUS_DI", 0, 3, 4, 1); __PYX_ERR(3, 6340, __pyx_L3_error) + } + case 2: + if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_MINUS_DI", 0, 3, 4, 2); __PYX_ERR(3, 6340, __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, "stream_MINUS_DI") < 0)) __PYX_ERR(3, 6340, __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(3, 6340, __pyx_L3_error) + } else { + __pyx_v_timeperiod = ((int)-2147483648); + } + } + goto __pyx_L4_argument_unpacking_done; + __pyx_L5_argtuple_error:; + __Pyx_RaiseArgtupleInvalid("stream_MINUS_DI", 0, 3, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 6340, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 6340, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(3, 6340, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(3, 6340, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_586stream_MINUS_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_8c_ta_lib_586stream_MINUS_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("stream_MINUS_DI", 0); + __Pyx_INCREF((PyObject *)__pyx_v_high); + __Pyx_INCREF((PyObject *)__pyx_v_low); + __Pyx_INCREF((PyObject *)__pyx_v_close); + + /* "talib/_stream.pxi":6363 + * 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.pxi":6364 + * 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__2105, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6364, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 6364, __pyx_L1_error) + + /* "talib/_stream.pxi":6363 + * int outnbelement + * double outreal + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_stream.pxi":6365 + * 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.pxi":6366 + * raise 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__2106, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6366, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 6366, __pyx_L1_error) + + /* "talib/_stream.pxi":6365 + * 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.pxi":6367 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":6368 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6368, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 6368, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":6367 + * 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 = high.data + */ + } + + /* "talib/_stream.pxi":6369 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":6370 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":6371 + * high_data = 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__2107, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6371, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 6371, __pyx_L1_error) + + /* "talib/_stream.pxi":6370 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_stream.pxi":6372 + * 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.pxi":6373 + * raise 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__2108, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6373, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 6373, __pyx_L1_error) + + /* "talib/_stream.pxi":6372 + * 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.pxi":6374 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":6375 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6375, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 6375, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":6374 + * 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 = low.data + */ + } + + /* "talib/_stream.pxi":6376 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":6377 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":6378 + * low_data = 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__2109, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 6378, __pyx_L1_error) + + /* "talib/_stream.pxi":6377 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_stream.pxi":6379 + * 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.pxi":6380 + * raise 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__2110, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 6380, __pyx_L1_error) + + /* "talib/_stream.pxi":6379 + * 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.pxi":6381 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":6382 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = high.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 6382, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":6381 + * 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 = close.data + */ + } + + /* "talib/_stream.pxi":6383 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = high.shape[0] + * if length != low.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_stream.pxi":6384 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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.pxi":6385 + * close_data = 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.pxi":6386 + * 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__2111, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6386, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 6386, __pyx_L1_error) + + /* "talib/_stream.pxi":6385 + * close_data = close.data + * length = high.shape[0] + * if length != low.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != close.shape[0]: + */ + } + + /* "talib/_stream.pxi":6387 + * 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.pxi":6388 + * 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__2112, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6388, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 6388, __pyx_L1_error) + + /* "talib/_stream.pxi":6387 + * 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.pxi":6389 + * 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_8c_ta_lib_NaN; + + /* "talib/_stream.pxi":6390 + * 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.pxi":6391 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_MINUS_DI, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6391, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":6392 + * 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(3, 6392, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":6340 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":6396 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_8c_ta_lib_589stream_MINUS_DM(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_588stream_MINUS_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_8c_ta_lib_589stream_MINUS_DM = {"stream_MINUS_DM", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_589stream_MINUS_DM, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_588stream_MINUS_DM}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_589stream_MINUS_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("stream_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("stream_MINUS_DM", 0, 2, 3, 1); __PYX_ERR(3, 6396, __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, "stream_MINUS_DM") < 0)) __PYX_ERR(3, 6396, __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(3, 6396, __pyx_L3_error) + } else { + __pyx_v_timeperiod = ((int)-2147483648); + } + } + goto __pyx_L4_argument_unpacking_done; + __pyx_L5_argtuple_error:; + __Pyx_RaiseArgtupleInvalid("stream_MINUS_DM", 0, 2, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 6396, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 6396, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(3, 6396, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_588stream_MINUS_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_8c_ta_lib_588stream_MINUS_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("stream_MINUS_DM", 0); + __Pyx_INCREF((PyObject *)__pyx_v_high); + __Pyx_INCREF((PyObject *)__pyx_v_low); + + /* "talib/_stream.pxi":6418 + * 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.pxi":6419 + * 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__2113, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6419, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 6419, __pyx_L1_error) + + /* "talib/_stream.pxi":6418 + * int outnbelement + * double outreal + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_stream.pxi":6420 + * 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.pxi":6421 + * raise 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__2114, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6421, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 6421, __pyx_L1_error) + + /* "talib/_stream.pxi":6420 + * 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.pxi":6422 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":6423 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6423, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 6423, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":6422 + * 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 = high.data + */ + } + + /* "talib/_stream.pxi":6424 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":6425 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":6426 + * high_data = 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__2115, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6426, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 6426, __pyx_L1_error) + + /* "talib/_stream.pxi":6425 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_stream.pxi":6427 + * 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.pxi":6428 + * raise 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__2116, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6428, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 6428, __pyx_L1_error) + + /* "talib/_stream.pxi":6427 + * 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.pxi":6429 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":6430 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * length = high.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6430, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 6430, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":6429 + * 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 = low.data + */ + } + + /* "talib/_stream.pxi":6431 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data # <<<<<<<<<<<<<< + * length = high.shape[0] + * if length != low.shape[0]: + */ + __pyx_v_low_data = ((double *)__pyx_v_low->data); + + /* "talib/_stream.pxi":6432 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":6433 + * low_data = 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.pxi":6434 + * 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__2117, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6434, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 6434, __pyx_L1_error) + + /* "talib/_stream.pxi":6433 + * low_data = low.data + * length = high.shape[0] + * if length != low.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * outreal = NaN + */ + } + + /* "talib/_stream.pxi":6435 + * 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_8c_ta_lib_NaN; + + /* "talib/_stream.pxi":6436 + * 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.pxi":6437 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_MINUS_DM, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6437, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":6438 + * 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(3, 6438, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":6396 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":6442 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_MOM( np.ndarray real not None , int timeperiod=-2**31 ): # <<<<<<<<<<<<<< + * """ MOM(real[, timeperiod=?]) + * + */ + +/* Python wrapper */ +static PyObject *__pyx_pw_5talib_8c_ta_lib_591stream_MOM(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_590stream_MOM[] = " 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_8c_ta_lib_591stream_MOM = {"stream_MOM", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_591stream_MOM, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_590stream_MOM}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_591stream_MOM(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("stream_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, "stream_MOM") < 0)) __PYX_ERR(3, 6442, __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(3, 6442, __pyx_L3_error) + } else { + __pyx_v_timeperiod = ((int)-2147483648); + } + } + goto __pyx_L4_argument_unpacking_done; + __pyx_L5_argtuple_error:; + __Pyx_RaiseArgtupleInvalid("stream_MOM", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 6442, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 6442, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_590stream_MOM(__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_8c_ta_lib_590stream_MOM(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("stream_MOM", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real); + + /* "talib/_stream.pxi":6463 + * 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.pxi":6464 + * 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__2118, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6464, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 6464, __pyx_L1_error) + + /* "talib/_stream.pxi":6463 + * int outnbelement + * double outreal + * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real is not double") + * if real.ndim != 1: + */ + } + + /* "talib/_stream.pxi":6465 + * 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.pxi":6466 + * 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__2119, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6466, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 6466, __pyx_L1_error) + + /* "talib/_stream.pxi":6465 + * 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.pxi":6467 + * 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 = real.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":6468 + * raise Exception("real has wrong dimensions") + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< + * real_data = real.data + * length = real.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6468, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 6468, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":6467 + * 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 = real.data + */ + } + + /* "talib/_stream.pxi":6469 + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data # <<<<<<<<<<<<<< + * length = real.shape[0] + * outreal = NaN + */ + __pyx_v_real_data = ((double *)__pyx_v_real->data); + + /* "talib/_stream.pxi":6470 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = 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.pxi":6471 + * real_data = 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_8c_ta_lib_NaN; + + /* "talib/_stream.pxi":6472 + * 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.pxi":6473 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_MOM, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6473, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":6474 + * 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(3, 6474, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":6442 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":6478 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_MULT( np.ndarray real0 not None , np.ndarray real1 not None ): # <<<<<<<<<<<<<< + * """ MULT(real0, real1) + * + */ + +/* Python wrapper */ +static PyObject *__pyx_pw_5talib_8c_ta_lib_593stream_MULT(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_592stream_MULT[] = " 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_8c_ta_lib_593stream_MULT = {"stream_MULT", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_593stream_MULT, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_592stream_MULT}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_593stream_MULT(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("stream_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("stream_MULT", 1, 2, 2, 1); __PYX_ERR(3, 6478, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "stream_MULT") < 0)) __PYX_ERR(3, 6478, __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("stream_MULT", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 6478, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 6478, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_real1), __pyx_ptype_5numpy_ndarray, 0, "real1", 0))) __PYX_ERR(3, 6478, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_592stream_MULT(__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_8c_ta_lib_592stream_MULT(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("stream_MULT", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real0); + __Pyx_INCREF((PyObject *)__pyx_v_real1); + + /* "talib/_stream.pxi":6499 + * 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.pxi":6500 + * 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__2120, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6500, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 6500, __pyx_L1_error) + + /* "talib/_stream.pxi":6499 + * int outnbelement + * double outreal + * if PyArray_TYPE(real0) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real0 is not double") + * if real0.ndim != 1: + */ + } + + /* "talib/_stream.pxi":6501 + * 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.pxi":6502 + * 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__2121, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6502, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 6502, __pyx_L1_error) + + /* "talib/_stream.pxi":6501 + * 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.pxi":6503 + * 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 = real0.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real0) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":6504 + * raise Exception("real0 has wrong dimensions") + * if not (PyArray_FLAGS(real0) & np.NPY_C_CONTIGUOUS): + * real0 = PyArray_GETCONTIGUOUS(real0) # <<<<<<<<<<<<<< + * real0_data = real0.data + * if PyArray_TYPE(real1) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6504, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 6504, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real0, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":6503 + * 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 = real0.data + */ + } + + /* "talib/_stream.pxi":6505 + * if not (PyArray_FLAGS(real0) & np.NPY_C_CONTIGUOUS): + * real0 = PyArray_GETCONTIGUOUS(real0) + * real0_data = 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.pxi":6506 + * real0 = PyArray_GETCONTIGUOUS(real0) + * real0_data = 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.pxi":6507 + * real0_data = 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__2122, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6507, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 6507, __pyx_L1_error) + + /* "talib/_stream.pxi":6506 + * real0 = PyArray_GETCONTIGUOUS(real0) + * real0_data = real0.data + * if PyArray_TYPE(real1) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real1 is not double") + * if real1.ndim != 1: + */ + } + + /* "talib/_stream.pxi":6508 + * 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.pxi":6509 + * 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__2123, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6509, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 6509, __pyx_L1_error) + + /* "talib/_stream.pxi":6508 + * 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.pxi":6510 + * 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 = real1.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real1) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":6511 + * raise Exception("real1 has wrong dimensions") + * if not (PyArray_FLAGS(real1) & np.NPY_C_CONTIGUOUS): + * real1 = PyArray_GETCONTIGUOUS(real1) # <<<<<<<<<<<<<< + * real1_data = real1.data + * length = real0.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real1); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6511, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 6511, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real1, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":6510 + * 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 = real1.data + */ + } + + /* "talib/_stream.pxi":6512 + * if not (PyArray_FLAGS(real1) & np.NPY_C_CONTIGUOUS): + * real1 = PyArray_GETCONTIGUOUS(real1) + * real1_data = real1.data # <<<<<<<<<<<<<< + * length = real0.shape[0] + * if length != real1.shape[0]: + */ + __pyx_v_real1_data = ((double *)__pyx_v_real1->data); + + /* "talib/_stream.pxi":6513 + * real1 = PyArray_GETCONTIGUOUS(real1) + * real1_data = 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.pxi":6514 + * real1_data = 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.pxi":6515 + * 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__2124, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6515, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 6515, __pyx_L1_error) + + /* "talib/_stream.pxi":6514 + * real1_data = real1.data + * length = real0.shape[0] + * if length != real1.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * outreal = NaN + */ + } + + /* "talib/_stream.pxi":6516 + * 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_8c_ta_lib_NaN; + + /* "talib/_stream.pxi":6517 + * 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.pxi":6518 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_MULT, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6518, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":6519 + * 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(3, 6519, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":6478 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":6523 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_8c_ta_lib_595stream_NATR(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_594stream_NATR[] = " 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_8c_ta_lib_595stream_NATR = {"stream_NATR", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_595stream_NATR, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_594stream_NATR}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_595stream_NATR(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("stream_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("stream_NATR", 0, 3, 4, 1); __PYX_ERR(3, 6523, __pyx_L3_error) + } + case 2: + if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_NATR", 0, 3, 4, 2); __PYX_ERR(3, 6523, __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, "stream_NATR") < 0)) __PYX_ERR(3, 6523, __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(3, 6523, __pyx_L3_error) + } else { + __pyx_v_timeperiod = ((int)-2147483648); + } + } + goto __pyx_L4_argument_unpacking_done; + __pyx_L5_argtuple_error:; + __Pyx_RaiseArgtupleInvalid("stream_NATR", 0, 3, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 6523, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 6523, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(3, 6523, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(3, 6523, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_594stream_NATR(__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_8c_ta_lib_594stream_NATR(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("stream_NATR", 0); + __Pyx_INCREF((PyObject *)__pyx_v_high); + __Pyx_INCREF((PyObject *)__pyx_v_low); + __Pyx_INCREF((PyObject *)__pyx_v_close); + + /* "talib/_stream.pxi":6546 + * 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.pxi":6547 + * 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__2125, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6547, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 6547, __pyx_L1_error) + + /* "talib/_stream.pxi":6546 + * int outnbelement + * double outreal + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_stream.pxi":6548 + * 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.pxi":6549 + * raise 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__2126, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6549, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 6549, __pyx_L1_error) + + /* "talib/_stream.pxi":6548 + * 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.pxi":6550 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":6551 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6551, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 6551, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":6550 + * 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 = high.data + */ + } + + /* "talib/_stream.pxi":6552 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":6553 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":6554 + * high_data = 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__2127, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6554, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 6554, __pyx_L1_error) + + /* "talib/_stream.pxi":6553 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_stream.pxi":6555 + * 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.pxi":6556 + * raise 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__2128, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6556, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 6556, __pyx_L1_error) + + /* "talib/_stream.pxi":6555 + * 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.pxi":6557 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":6558 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6558, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 6558, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":6557 + * 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 = low.data + */ + } + + /* "talib/_stream.pxi":6559 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":6560 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":6561 + * low_data = 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__2129, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 6561, __pyx_L1_error) + + /* "talib/_stream.pxi":6560 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_stream.pxi":6562 + * 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.pxi":6563 + * raise 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__2130, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 6563, __pyx_L1_error) + + /* "talib/_stream.pxi":6562 + * 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.pxi":6564 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":6565 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = high.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 6565, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":6564 + * 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 = close.data + */ + } + + /* "talib/_stream.pxi":6566 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = high.shape[0] + * if length != low.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_stream.pxi":6567 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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.pxi":6568 + * close_data = 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.pxi":6569 + * 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__2131, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6569, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 6569, __pyx_L1_error) + + /* "talib/_stream.pxi":6568 + * close_data = close.data + * length = high.shape[0] + * if length != low.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != close.shape[0]: + */ + } + + /* "talib/_stream.pxi":6570 + * 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.pxi":6571 + * 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__2132, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6571, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 6571, __pyx_L1_error) + + /* "talib/_stream.pxi":6570 + * 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.pxi":6572 + * 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_8c_ta_lib_NaN; + + /* "talib/_stream.pxi":6573 + * 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.pxi":6574 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_NATR, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6574, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":6575 + * 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(3, 6575, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":6523 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":6579 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_OBV( np.ndarray real not None , np.ndarray volume not None ): # <<<<<<<<<<<<<< + * """ OBV(real, volume) + * + */ + +/* Python wrapper */ +static PyObject *__pyx_pw_5talib_8c_ta_lib_597stream_OBV(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_596stream_OBV[] = " 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_8c_ta_lib_597stream_OBV = {"stream_OBV", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_597stream_OBV, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_596stream_OBV}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_597stream_OBV(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("stream_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("stream_OBV", 1, 2, 2, 1); __PYX_ERR(3, 6579, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "stream_OBV") < 0)) __PYX_ERR(3, 6579, __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("stream_OBV", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 6579, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 6579, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_volume), __pyx_ptype_5numpy_ndarray, 0, "volume", 0))) __PYX_ERR(3, 6579, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_596stream_OBV(__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_8c_ta_lib_596stream_OBV(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("stream_OBV", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real); + __Pyx_INCREF((PyObject *)__pyx_v_volume); + + /* "talib/_stream.pxi":6600 + * 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.pxi":6601 + * 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__2133, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6601, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 6601, __pyx_L1_error) + + /* "talib/_stream.pxi":6600 + * int outnbelement + * double outreal + * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real is not double") + * if real.ndim != 1: + */ + } + + /* "talib/_stream.pxi":6602 + * 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.pxi":6603 + * 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__2134, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6603, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 6603, __pyx_L1_error) + + /* "talib/_stream.pxi":6602 + * 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.pxi":6604 + * 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 = real.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":6605 + * raise Exception("real has wrong dimensions") + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< + * real_data = real.data + * if PyArray_TYPE(volume) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6605, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 6605, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":6604 + * 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 = real.data + */ + } + + /* "talib/_stream.pxi":6606 + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) + * real_data = 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.pxi":6607 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = 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.pxi":6608 + * real_data = 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__2135, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6608, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 6608, __pyx_L1_error) + + /* "talib/_stream.pxi":6607 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data + * if PyArray_TYPE(volume) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("volume is not double") + * if volume.ndim != 1: + */ + } + + /* "talib/_stream.pxi":6609 + * 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.pxi":6610 + * 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__2136, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6610, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 6610, __pyx_L1_error) + + /* "talib/_stream.pxi":6609 + * 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.pxi":6611 + * 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 = volume.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_volume) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":6612 + * raise Exception("volume has wrong dimensions") + * if not (PyArray_FLAGS(volume) & np.NPY_C_CONTIGUOUS): + * volume = PyArray_GETCONTIGUOUS(volume) # <<<<<<<<<<<<<< + * volume_data = volume.data + * length = real.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_volume); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6612, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 6612, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_volume, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":6611 + * 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 = volume.data + */ + } + + /* "talib/_stream.pxi":6613 + * if not (PyArray_FLAGS(volume) & np.NPY_C_CONTIGUOUS): + * volume = PyArray_GETCONTIGUOUS(volume) + * volume_data = volume.data # <<<<<<<<<<<<<< + * length = real.shape[0] + * if length != volume.shape[0]: + */ + __pyx_v_volume_data = ((double *)__pyx_v_volume->data); + + /* "talib/_stream.pxi":6614 + * volume = PyArray_GETCONTIGUOUS(volume) + * volume_data = 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.pxi":6615 + * volume_data = 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.pxi":6616 + * 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__2137, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6616, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 6616, __pyx_L1_error) + + /* "talib/_stream.pxi":6615 + * volume_data = volume.data + * length = real.shape[0] + * if length != volume.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * outreal = NaN + */ + } + + /* "talib/_stream.pxi":6617 + * 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_8c_ta_lib_NaN; + + /* "talib/_stream.pxi":6618 + * 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.pxi":6619 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_OBV, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6619, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":6620 + * 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(3, 6620, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":6579 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":6624 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_8c_ta_lib_599stream_PLUS_DI(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_598stream_PLUS_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_8c_ta_lib_599stream_PLUS_DI = {"stream_PLUS_DI", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_599stream_PLUS_DI, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_598stream_PLUS_DI}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_599stream_PLUS_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("stream_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("stream_PLUS_DI", 0, 3, 4, 1); __PYX_ERR(3, 6624, __pyx_L3_error) + } + case 2: + if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_PLUS_DI", 0, 3, 4, 2); __PYX_ERR(3, 6624, __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, "stream_PLUS_DI") < 0)) __PYX_ERR(3, 6624, __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(3, 6624, __pyx_L3_error) + } else { + __pyx_v_timeperiod = ((int)-2147483648); + } + } + goto __pyx_L4_argument_unpacking_done; + __pyx_L5_argtuple_error:; + __Pyx_RaiseArgtupleInvalid("stream_PLUS_DI", 0, 3, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 6624, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 6624, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(3, 6624, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(3, 6624, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_598stream_PLUS_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_8c_ta_lib_598stream_PLUS_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("stream_PLUS_DI", 0); + __Pyx_INCREF((PyObject *)__pyx_v_high); + __Pyx_INCREF((PyObject *)__pyx_v_low); + __Pyx_INCREF((PyObject *)__pyx_v_close); + + /* "talib/_stream.pxi":6647 + * 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.pxi":6648 + * 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__2138, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6648, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 6648, __pyx_L1_error) + + /* "talib/_stream.pxi":6647 + * int outnbelement + * double outreal + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_stream.pxi":6649 + * 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.pxi":6650 + * raise 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__2139, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6650, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 6650, __pyx_L1_error) + + /* "talib/_stream.pxi":6649 + * 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.pxi":6651 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":6652 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6652, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 6652, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":6651 + * 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 = high.data + */ + } + + /* "talib/_stream.pxi":6653 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":6654 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":6655 + * high_data = 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__2140, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6655, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 6655, __pyx_L1_error) + + /* "talib/_stream.pxi":6654 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_stream.pxi":6656 + * 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.pxi":6657 + * raise 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__2141, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6657, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 6657, __pyx_L1_error) + + /* "talib/_stream.pxi":6656 + * 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.pxi":6658 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":6659 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6659, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 6659, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":6658 + * 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 = low.data + */ + } + + /* "talib/_stream.pxi":6660 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":6661 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":6662 + * low_data = 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__2142, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 6662, __pyx_L1_error) + + /* "talib/_stream.pxi":6661 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_stream.pxi":6663 + * 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.pxi":6664 + * raise 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__2143, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 6664, __pyx_L1_error) + + /* "talib/_stream.pxi":6663 + * 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.pxi":6665 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":6666 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = high.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 6666, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":6665 + * 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 = close.data + */ + } + + /* "talib/_stream.pxi":6667 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = high.shape[0] + * if length != low.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_stream.pxi":6668 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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.pxi":6669 + * close_data = 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.pxi":6670 + * 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__2144, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6670, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 6670, __pyx_L1_error) + + /* "talib/_stream.pxi":6669 + * close_data = close.data + * length = high.shape[0] + * if length != low.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != close.shape[0]: + */ + } + + /* "talib/_stream.pxi":6671 + * 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.pxi":6672 + * 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__2145, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6672, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 6672, __pyx_L1_error) + + /* "talib/_stream.pxi":6671 + * 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.pxi":6673 + * 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_8c_ta_lib_NaN; + + /* "talib/_stream.pxi":6674 + * 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.pxi":6675 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_PLUS_DI, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6675, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":6676 + * 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(3, 6676, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":6624 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":6680 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_8c_ta_lib_601stream_PLUS_DM(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_600stream_PLUS_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_8c_ta_lib_601stream_PLUS_DM = {"stream_PLUS_DM", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_601stream_PLUS_DM, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_600stream_PLUS_DM}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_601stream_PLUS_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("stream_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("stream_PLUS_DM", 0, 2, 3, 1); __PYX_ERR(3, 6680, __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, "stream_PLUS_DM") < 0)) __PYX_ERR(3, 6680, __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(3, 6680, __pyx_L3_error) + } else { + __pyx_v_timeperiod = ((int)-2147483648); + } + } + goto __pyx_L4_argument_unpacking_done; + __pyx_L5_argtuple_error:; + __Pyx_RaiseArgtupleInvalid("stream_PLUS_DM", 0, 2, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 6680, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 6680, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(3, 6680, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_600stream_PLUS_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_8c_ta_lib_600stream_PLUS_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("stream_PLUS_DM", 0); + __Pyx_INCREF((PyObject *)__pyx_v_high); + __Pyx_INCREF((PyObject *)__pyx_v_low); + + /* "talib/_stream.pxi":6702 + * 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.pxi":6703 + * 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__2146, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6703, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 6703, __pyx_L1_error) + + /* "talib/_stream.pxi":6702 + * int outnbelement + * double outreal + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_stream.pxi":6704 + * 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.pxi":6705 + * raise 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__2147, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6705, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 6705, __pyx_L1_error) + + /* "talib/_stream.pxi":6704 + * 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.pxi":6706 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":6707 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6707, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 6707, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":6706 + * 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 = high.data + */ + } + + /* "talib/_stream.pxi":6708 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":6709 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":6710 + * high_data = 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__2148, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6710, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 6710, __pyx_L1_error) + + /* "talib/_stream.pxi":6709 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_stream.pxi":6711 + * 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.pxi":6712 + * raise 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__2149, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6712, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 6712, __pyx_L1_error) + + /* "talib/_stream.pxi":6711 + * 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.pxi":6713 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":6714 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * length = high.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6714, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 6714, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":6713 + * 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 = low.data + */ + } + + /* "talib/_stream.pxi":6715 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data # <<<<<<<<<<<<<< + * length = high.shape[0] + * if length != low.shape[0]: + */ + __pyx_v_low_data = ((double *)__pyx_v_low->data); + + /* "talib/_stream.pxi":6716 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":6717 + * low_data = 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.pxi":6718 + * 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__2150, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6718, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 6718, __pyx_L1_error) + + /* "talib/_stream.pxi":6717 + * low_data = low.data + * length = high.shape[0] + * if length != low.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * outreal = NaN + */ + } + + /* "talib/_stream.pxi":6719 + * 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_8c_ta_lib_NaN; + + /* "talib/_stream.pxi":6720 + * 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.pxi":6721 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_PLUS_DM, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6721, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":6722 + * 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(3, 6722, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":6680 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":6726 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_8c_ta_lib_603stream_PPO(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_602stream_PPO[] = " 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_8c_ta_lib_603stream_PPO = {"stream_PPO", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_603stream_PPO, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_602stream_PPO}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_603stream_PPO(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("stream_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, "stream_PPO") < 0)) __PYX_ERR(3, 6726, __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(3, 6726, __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(3, 6726, __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(3, 6726, __pyx_L3_error) + } else { + __pyx_v_matype = ((int)0); + } + } + goto __pyx_L4_argument_unpacking_done; + __pyx_L5_argtuple_error:; + __Pyx_RaiseArgtupleInvalid("stream_PPO", 0, 1, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 6726, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 6726, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_602stream_PPO(__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_8c_ta_lib_602stream_PPO(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("stream_PPO", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real); + + /* "talib/_stream.pxi":6749 + * 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.pxi":6750 + * 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__2151, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6750, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 6750, __pyx_L1_error) + + /* "talib/_stream.pxi":6749 + * int outnbelement + * double outreal + * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real is not double") + * if real.ndim != 1: + */ + } + + /* "talib/_stream.pxi":6751 + * 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.pxi":6752 + * 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__2152, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6752, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 6752, __pyx_L1_error) + + /* "talib/_stream.pxi":6751 + * 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.pxi":6753 + * 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 = real.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":6754 + * raise Exception("real has wrong dimensions") + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< + * real_data = real.data + * length = real.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6754, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 6754, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":6753 + * 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 = real.data + */ + } + + /* "talib/_stream.pxi":6755 + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data # <<<<<<<<<<<<<< + * length = real.shape[0] + * outreal = NaN + */ + __pyx_v_real_data = ((double *)__pyx_v_real->data); + + /* "talib/_stream.pxi":6756 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = 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.pxi":6757 + * real_data = 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_8c_ta_lib_NaN; + + /* "talib/_stream.pxi":6758 + * 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.pxi":6759 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_PPO, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6759, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":6760 + * 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(3, 6760, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":6726 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":6764 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_ROC( np.ndarray real not None , int timeperiod=-2**31 ): # <<<<<<<<<<<<<< + * """ ROC(real[, timeperiod=?]) + * + */ + +/* Python wrapper */ +static PyObject *__pyx_pw_5talib_8c_ta_lib_605stream_ROC(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_604stream_ROC[] = " 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_8c_ta_lib_605stream_ROC = {"stream_ROC", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_605stream_ROC, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_604stream_ROC}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_605stream_ROC(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("stream_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, "stream_ROC") < 0)) __PYX_ERR(3, 6764, __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(3, 6764, __pyx_L3_error) + } else { + __pyx_v_timeperiod = ((int)-2147483648); + } + } + goto __pyx_L4_argument_unpacking_done; + __pyx_L5_argtuple_error:; + __Pyx_RaiseArgtupleInvalid("stream_ROC", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 6764, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 6764, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_604stream_ROC(__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_8c_ta_lib_604stream_ROC(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("stream_ROC", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real); + + /* "talib/_stream.pxi":6785 + * 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.pxi":6786 + * 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__2153, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6786, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 6786, __pyx_L1_error) + + /* "talib/_stream.pxi":6785 + * int outnbelement + * double outreal + * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real is not double") + * if real.ndim != 1: + */ + } + + /* "talib/_stream.pxi":6787 + * 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.pxi":6788 + * 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__2154, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6788, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 6788, __pyx_L1_error) + + /* "talib/_stream.pxi":6787 + * 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.pxi":6789 + * 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 = real.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":6790 + * raise Exception("real has wrong dimensions") + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< + * real_data = real.data + * length = real.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6790, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 6790, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":6789 + * 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 = real.data + */ + } + + /* "talib/_stream.pxi":6791 + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data # <<<<<<<<<<<<<< + * length = real.shape[0] + * outreal = NaN + */ + __pyx_v_real_data = ((double *)__pyx_v_real->data); + + /* "talib/_stream.pxi":6792 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = 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.pxi":6793 + * real_data = 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_8c_ta_lib_NaN; + + /* "talib/_stream.pxi":6794 + * 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.pxi":6795 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_ROC, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6795, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":6796 + * 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(3, 6796, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":6764 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":6800 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_ROCP( np.ndarray real not None , int timeperiod=-2**31 ): # <<<<<<<<<<<<<< + * """ ROCP(real[, timeperiod=?]) + * + */ + +/* Python wrapper */ +static PyObject *__pyx_pw_5talib_8c_ta_lib_607stream_ROCP(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_606stream_ROCP[] = " 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_8c_ta_lib_607stream_ROCP = {"stream_ROCP", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_607stream_ROCP, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_606stream_ROCP}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_607stream_ROCP(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("stream_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, "stream_ROCP") < 0)) __PYX_ERR(3, 6800, __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(3, 6800, __pyx_L3_error) + } else { + __pyx_v_timeperiod = ((int)-2147483648); + } + } + goto __pyx_L4_argument_unpacking_done; + __pyx_L5_argtuple_error:; + __Pyx_RaiseArgtupleInvalid("stream_ROCP", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 6800, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 6800, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_606stream_ROCP(__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_8c_ta_lib_606stream_ROCP(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("stream_ROCP", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real); + + /* "talib/_stream.pxi":6821 + * 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.pxi":6822 + * 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__2155, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6822, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 6822, __pyx_L1_error) + + /* "talib/_stream.pxi":6821 + * int outnbelement + * double outreal + * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real is not double") + * if real.ndim != 1: + */ + } + + /* "talib/_stream.pxi":6823 + * 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.pxi":6824 + * 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__2156, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6824, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 6824, __pyx_L1_error) + + /* "talib/_stream.pxi":6823 + * 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.pxi":6825 + * 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 = real.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":6826 + * raise Exception("real has wrong dimensions") + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< + * real_data = real.data + * length = real.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6826, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 6826, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":6825 + * 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 = real.data + */ + } + + /* "talib/_stream.pxi":6827 + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data # <<<<<<<<<<<<<< + * length = real.shape[0] + * outreal = NaN + */ + __pyx_v_real_data = ((double *)__pyx_v_real->data); + + /* "talib/_stream.pxi":6828 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = 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.pxi":6829 + * real_data = 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_8c_ta_lib_NaN; + + /* "talib/_stream.pxi":6830 + * 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.pxi":6831 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_ROCP, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6831, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":6832 + * 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(3, 6832, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":6800 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":6836 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_ROCR( np.ndarray real not None , int timeperiod=-2**31 ): # <<<<<<<<<<<<<< + * """ ROCR(real[, timeperiod=?]) + * + */ + +/* Python wrapper */ +static PyObject *__pyx_pw_5talib_8c_ta_lib_609stream_ROCR(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_608stream_ROCR[] = " 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_8c_ta_lib_609stream_ROCR = {"stream_ROCR", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_609stream_ROCR, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_608stream_ROCR}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_609stream_ROCR(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("stream_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, "stream_ROCR") < 0)) __PYX_ERR(3, 6836, __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(3, 6836, __pyx_L3_error) + } else { + __pyx_v_timeperiod = ((int)-2147483648); + } + } + goto __pyx_L4_argument_unpacking_done; + __pyx_L5_argtuple_error:; + __Pyx_RaiseArgtupleInvalid("stream_ROCR", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 6836, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 6836, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_608stream_ROCR(__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_8c_ta_lib_608stream_ROCR(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("stream_ROCR", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real); + + /* "talib/_stream.pxi":6857 + * 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.pxi":6858 + * 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__2157, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6858, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 6858, __pyx_L1_error) + + /* "talib/_stream.pxi":6857 + * int outnbelement + * double outreal + * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real is not double") + * if real.ndim != 1: + */ + } + + /* "talib/_stream.pxi":6859 + * 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.pxi":6860 + * 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__2158, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6860, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 6860, __pyx_L1_error) + + /* "talib/_stream.pxi":6859 + * 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.pxi":6861 + * 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 = real.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":6862 + * raise Exception("real has wrong dimensions") + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< + * real_data = real.data + * length = real.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6862, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 6862, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":6861 + * 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 = real.data + */ + } + + /* "talib/_stream.pxi":6863 + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data # <<<<<<<<<<<<<< + * length = real.shape[0] + * outreal = NaN + */ + __pyx_v_real_data = ((double *)__pyx_v_real->data); + + /* "talib/_stream.pxi":6864 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = 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.pxi":6865 + * real_data = 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_8c_ta_lib_NaN; + + /* "talib/_stream.pxi":6866 + * 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.pxi":6867 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_ROCR, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6867, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":6868 + * 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(3, 6868, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":6836 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":6872 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_ROCR100( np.ndarray real not None , int timeperiod=-2**31 ): # <<<<<<<<<<<<<< + * """ ROCR100(real[, timeperiod=?]) + * + */ + +/* Python wrapper */ +static PyObject *__pyx_pw_5talib_8c_ta_lib_611stream_ROCR100(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_610stream_ROCR100[] = " 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_8c_ta_lib_611stream_ROCR100 = {"stream_ROCR100", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_611stream_ROCR100, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_610stream_ROCR100}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_611stream_ROCR100(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("stream_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, "stream_ROCR100") < 0)) __PYX_ERR(3, 6872, __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(3, 6872, __pyx_L3_error) + } else { + __pyx_v_timeperiod = ((int)-2147483648); + } + } + goto __pyx_L4_argument_unpacking_done; + __pyx_L5_argtuple_error:; + __Pyx_RaiseArgtupleInvalid("stream_ROCR100", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 6872, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 6872, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_610stream_ROCR100(__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_8c_ta_lib_610stream_ROCR100(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("stream_ROCR100", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real); + + /* "talib/_stream.pxi":6893 + * 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.pxi":6894 + * 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__2159, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6894, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 6894, __pyx_L1_error) + + /* "talib/_stream.pxi":6893 + * int outnbelement + * double outreal + * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real is not double") + * if real.ndim != 1: + */ + } + + /* "talib/_stream.pxi":6895 + * 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.pxi":6896 + * 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__2160, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6896, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 6896, __pyx_L1_error) + + /* "talib/_stream.pxi":6895 + * 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.pxi":6897 + * 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 = real.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":6898 + * raise Exception("real has wrong dimensions") + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< + * real_data = real.data + * length = real.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6898, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 6898, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":6897 + * 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 = real.data + */ + } + + /* "talib/_stream.pxi":6899 + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data # <<<<<<<<<<<<<< + * length = real.shape[0] + * outreal = NaN + */ + __pyx_v_real_data = ((double *)__pyx_v_real->data); + + /* "talib/_stream.pxi":6900 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = 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.pxi":6901 + * real_data = 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_8c_ta_lib_NaN; + + /* "talib/_stream.pxi":6902 + * 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.pxi":6903 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_ROCR100, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6903, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":6904 + * 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(3, 6904, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":6872 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":6908 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_RSI( np.ndarray real not None , int timeperiod=-2**31 ): # <<<<<<<<<<<<<< + * """ RSI(real[, timeperiod=?]) + * + */ + +/* Python wrapper */ +static PyObject *__pyx_pw_5talib_8c_ta_lib_613stream_RSI(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_612stream_RSI[] = " 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_8c_ta_lib_613stream_RSI = {"stream_RSI", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_613stream_RSI, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_612stream_RSI}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_613stream_RSI(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("stream_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, "stream_RSI") < 0)) __PYX_ERR(3, 6908, __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(3, 6908, __pyx_L3_error) + } else { + __pyx_v_timeperiod = ((int)-2147483648); + } + } + goto __pyx_L4_argument_unpacking_done; + __pyx_L5_argtuple_error:; + __Pyx_RaiseArgtupleInvalid("stream_RSI", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 6908, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 6908, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_612stream_RSI(__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_8c_ta_lib_612stream_RSI(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("stream_RSI", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real); + + /* "talib/_stream.pxi":6929 + * 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.pxi":6930 + * 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__2161, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6930, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 6930, __pyx_L1_error) + + /* "talib/_stream.pxi":6929 + * int outnbelement + * double outreal + * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real is not double") + * if real.ndim != 1: + */ + } + + /* "talib/_stream.pxi":6931 + * 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.pxi":6932 + * 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__2162, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6932, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 6932, __pyx_L1_error) + + /* "talib/_stream.pxi":6931 + * 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.pxi":6933 + * 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 = real.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":6934 + * raise Exception("real has wrong dimensions") + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< + * real_data = real.data + * length = real.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6934, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 6934, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":6933 + * 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 = real.data + */ + } + + /* "talib/_stream.pxi":6935 + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data # <<<<<<<<<<<<<< + * length = real.shape[0] + * outreal = NaN + */ + __pyx_v_real_data = ((double *)__pyx_v_real->data); + + /* "talib/_stream.pxi":6936 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = 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.pxi":6937 + * real_data = 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_8c_ta_lib_NaN; + + /* "talib/_stream.pxi":6938 + * 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.pxi":6939 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_RSI, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6939, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":6940 + * 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(3, 6940, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":6908 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":6944 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_8c_ta_lib_615stream_SAR(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_614stream_SAR[] = " 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_8c_ta_lib_615stream_SAR = {"stream_SAR", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_615stream_SAR, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_614stream_SAR}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_615stream_SAR(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("stream_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("stream_SAR", 0, 2, 4, 1); __PYX_ERR(3, 6944, __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, "stream_SAR") < 0)) __PYX_ERR(3, 6944, __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(3, 6944, __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(3, 6944, __pyx_L3_error) + } else { + __pyx_v_maximum = ((double)0.2); + } + } + goto __pyx_L4_argument_unpacking_done; + __pyx_L5_argtuple_error:; + __Pyx_RaiseArgtupleInvalid("stream_SAR", 0, 2, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 6944, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 6944, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(3, 6944, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_614stream_SAR(__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_8c_ta_lib_614stream_SAR(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("stream_SAR", 0); + __Pyx_INCREF((PyObject *)__pyx_v_high); + __Pyx_INCREF((PyObject *)__pyx_v_low); + + /* "talib/_stream.pxi":6967 + * 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.pxi":6968 + * 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__2163, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6968, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 6968, __pyx_L1_error) + + /* "talib/_stream.pxi":6967 + * int outnbelement + * double outreal + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_stream.pxi":6969 + * 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.pxi":6970 + * raise 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__2164, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6970, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 6970, __pyx_L1_error) + + /* "talib/_stream.pxi":6969 + * 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.pxi":6971 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":6972 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6972, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 6972, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":6971 + * 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 = high.data + */ + } + + /* "talib/_stream.pxi":6973 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":6974 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":6975 + * high_data = 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__2165, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6975, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 6975, __pyx_L1_error) + + /* "talib/_stream.pxi":6974 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_stream.pxi":6976 + * 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.pxi":6977 + * raise 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__2166, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6977, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 6977, __pyx_L1_error) + + /* "talib/_stream.pxi":6976 + * 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.pxi":6978 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":6979 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * length = high.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6979, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 6979, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":6978 + * 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 = low.data + */ + } + + /* "talib/_stream.pxi":6980 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data # <<<<<<<<<<<<<< + * length = high.shape[0] + * if length != low.shape[0]: + */ + __pyx_v_low_data = ((double *)__pyx_v_low->data); + + /* "talib/_stream.pxi":6981 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":6982 + * low_data = 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.pxi":6983 + * 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__2167, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6983, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 6983, __pyx_L1_error) + + /* "talib/_stream.pxi":6982 + * low_data = low.data + * length = high.shape[0] + * if length != low.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * outreal = NaN + */ + } + + /* "talib/_stream.pxi":6984 + * 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_8c_ta_lib_NaN; + + /* "talib/_stream.pxi":6985 + * 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.pxi":6986 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_SAR, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 6986, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":6987 + * 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(3, 6987, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":6944 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":6991 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_8c_ta_lib_617stream_SAREXT(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_616stream_SAREXT[] = " 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_8c_ta_lib_617stream_SAREXT = {"stream_SAREXT", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_617stream_SAREXT, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_616stream_SAREXT}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_617stream_SAREXT(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("stream_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("stream_SAREXT", 0, 2, 10, 1); __PYX_ERR(3, 6991, __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, "stream_SAREXT") < 0)) __PYX_ERR(3, 6991, __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(3, 6991, __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(3, 6991, __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(3, 6991, __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(3, 6991, __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(3, 6991, __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(3, 6991, __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(3, 6991, __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(3, 6991, __pyx_L3_error) + } else { + __pyx_v_accelerationmaxshort = ((double)-4e37); + } + } + goto __pyx_L4_argument_unpacking_done; + __pyx_L5_argtuple_error:; + __Pyx_RaiseArgtupleInvalid("stream_SAREXT", 0, 2, 10, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 6991, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 6991, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(3, 6991, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_616stream_SAREXT(__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_8c_ta_lib_616stream_SAREXT(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("stream_SAREXT", 0); + __Pyx_INCREF((PyObject *)__pyx_v_high); + __Pyx_INCREF((PyObject *)__pyx_v_low); + + /* "talib/_stream.pxi":7020 + * 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.pxi":7021 + * 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__2168, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7021, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 7021, __pyx_L1_error) + + /* "talib/_stream.pxi":7020 + * int outnbelement + * double outreal + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_stream.pxi":7022 + * 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.pxi":7023 + * raise 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__2169, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7023, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 7023, __pyx_L1_error) + + /* "talib/_stream.pxi":7022 + * 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.pxi":7024 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":7025 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7025, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 7025, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":7024 + * 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 = high.data + */ + } + + /* "talib/_stream.pxi":7026 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":7027 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":7028 + * high_data = 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__2170, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7028, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 7028, __pyx_L1_error) + + /* "talib/_stream.pxi":7027 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_stream.pxi":7029 + * 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.pxi":7030 + * raise 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__2171, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7030, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 7030, __pyx_L1_error) + + /* "talib/_stream.pxi":7029 + * 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.pxi":7031 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":7032 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * length = high.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7032, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 7032, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":7031 + * 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 = low.data + */ + } + + /* "talib/_stream.pxi":7033 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data # <<<<<<<<<<<<<< + * length = high.shape[0] + * if length != low.shape[0]: + */ + __pyx_v_low_data = ((double *)__pyx_v_low->data); + + /* "talib/_stream.pxi":7034 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":7035 + * low_data = 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.pxi":7036 + * 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__2172, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7036, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 7036, __pyx_L1_error) + + /* "talib/_stream.pxi":7035 + * low_data = low.data + * length = high.shape[0] + * if length != low.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * outreal = NaN + */ + } + + /* "talib/_stream.pxi":7037 + * 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_8c_ta_lib_NaN; + + /* "talib/_stream.pxi":7038 + * 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.pxi":7039 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_SAREXT, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7039, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":7040 + * 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(3, 7040, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":6991 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":7044 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_SIN( np.ndarray real not None ): # <<<<<<<<<<<<<< + * """ SIN(real) + * + */ + +/* Python wrapper */ +static PyObject *__pyx_pw_5talib_8c_ta_lib_619stream_SIN(PyObject *__pyx_self, PyObject *__pyx_v_real); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_618stream_SIN[] = " 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_8c_ta_lib_619stream_SIN = {"stream_SIN", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_619stream_SIN, METH_O, __pyx_doc_5talib_8c_ta_lib_618stream_SIN}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_619stream_SIN(PyObject *__pyx_self, PyObject *__pyx_v_real) { + PyObject *__pyx_r = 0; + __Pyx_RefNannyDeclarations + __Pyx_RefNannySetupContext("stream_SIN (wrapper)", 0); + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_real), __pyx_ptype_5numpy_ndarray, 0, "real", 0))) __PYX_ERR(3, 7044, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_618stream_SIN(__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_8c_ta_lib_618stream_SIN(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("stream_SIN", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real); + + /* "talib/_stream.pxi":7063 + * 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.pxi":7064 + * 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__2173, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7064, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 7064, __pyx_L1_error) + + /* "talib/_stream.pxi":7063 + * int outnbelement + * double outreal + * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real is not double") + * if real.ndim != 1: + */ + } + + /* "talib/_stream.pxi":7065 + * 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.pxi":7066 + * 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__2174, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7066, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 7066, __pyx_L1_error) + + /* "talib/_stream.pxi":7065 + * 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.pxi":7067 + * 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 = real.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":7068 + * raise Exception("real has wrong dimensions") + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< + * real_data = real.data + * length = real.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7068, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 7068, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":7067 + * 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 = real.data + */ + } + + /* "talib/_stream.pxi":7069 + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data # <<<<<<<<<<<<<< + * length = real.shape[0] + * outreal = NaN + */ + __pyx_v_real_data = ((double *)__pyx_v_real->data); + + /* "talib/_stream.pxi":7070 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = 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.pxi":7071 + * real_data = 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_8c_ta_lib_NaN; + + /* "talib/_stream.pxi":7072 + * 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.pxi":7073 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_SIN, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7073, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":7074 + * 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(3, 7074, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":7044 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_SIN( np.ndarray real not None ): # <<<<<<<<<<<<<< + * """ SIN(real) + * + */ + + /* function exit code */ + __pyx_L1_error:; + __Pyx_XDECREF(__pyx_t_2); + __Pyx_AddTraceback("talib.c_ta_lib.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.pxi":7078 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_SINH( np.ndarray real not None ): # <<<<<<<<<<<<<< + * """ SINH(real) + * + */ + +/* Python wrapper */ +static PyObject *__pyx_pw_5talib_8c_ta_lib_621stream_SINH(PyObject *__pyx_self, PyObject *__pyx_v_real); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_620stream_SINH[] = " 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_8c_ta_lib_621stream_SINH = {"stream_SINH", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_621stream_SINH, METH_O, __pyx_doc_5talib_8c_ta_lib_620stream_SINH}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_621stream_SINH(PyObject *__pyx_self, PyObject *__pyx_v_real) { + PyObject *__pyx_r = 0; + __Pyx_RefNannyDeclarations + __Pyx_RefNannySetupContext("stream_SINH (wrapper)", 0); + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_real), __pyx_ptype_5numpy_ndarray, 0, "real", 0))) __PYX_ERR(3, 7078, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_620stream_SINH(__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_8c_ta_lib_620stream_SINH(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("stream_SINH", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real); + + /* "talib/_stream.pxi":7097 + * 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.pxi":7098 + * 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__2175, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7098, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 7098, __pyx_L1_error) + + /* "talib/_stream.pxi":7097 + * int outnbelement + * double outreal + * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real is not double") + * if real.ndim != 1: + */ + } + + /* "talib/_stream.pxi":7099 + * 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.pxi":7100 + * 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__2176, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7100, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 7100, __pyx_L1_error) + + /* "talib/_stream.pxi":7099 + * 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.pxi":7101 + * 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 = real.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":7102 + * raise Exception("real has wrong dimensions") + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< + * real_data = real.data + * length = real.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7102, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 7102, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":7101 + * 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 = real.data + */ + } + + /* "talib/_stream.pxi":7103 + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data # <<<<<<<<<<<<<< + * length = real.shape[0] + * outreal = NaN + */ + __pyx_v_real_data = ((double *)__pyx_v_real->data); + + /* "talib/_stream.pxi":7104 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = 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.pxi":7105 + * real_data = 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_8c_ta_lib_NaN; + + /* "talib/_stream.pxi":7106 + * 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.pxi":7107 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_SINH, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7107, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":7108 + * 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(3, 7108, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":7078 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_SINH( np.ndarray real not None ): # <<<<<<<<<<<<<< + * """ SINH(real) + * + */ + + /* function exit code */ + __pyx_L1_error:; + __Pyx_XDECREF(__pyx_t_2); + __Pyx_AddTraceback("talib.c_ta_lib.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.pxi":7112 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_SMA( np.ndarray real not None , int timeperiod=-2**31 ): # <<<<<<<<<<<<<< + * """ SMA(real[, timeperiod=?]) + * + */ + +/* Python wrapper */ +static PyObject *__pyx_pw_5talib_8c_ta_lib_623stream_SMA(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_622stream_SMA[] = " 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_8c_ta_lib_623stream_SMA = {"stream_SMA", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_623stream_SMA, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_622stream_SMA}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_623stream_SMA(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("stream_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, "stream_SMA") < 0)) __PYX_ERR(3, 7112, __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(3, 7112, __pyx_L3_error) + } else { + __pyx_v_timeperiod = ((int)-2147483648); + } + } + goto __pyx_L4_argument_unpacking_done; + __pyx_L5_argtuple_error:; + __Pyx_RaiseArgtupleInvalid("stream_SMA", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 7112, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 7112, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_622stream_SMA(__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_8c_ta_lib_622stream_SMA(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("stream_SMA", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real); + + /* "talib/_stream.pxi":7133 + * 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.pxi":7134 + * 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__2177, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7134, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 7134, __pyx_L1_error) + + /* "talib/_stream.pxi":7133 + * int outnbelement + * double outreal + * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real is not double") + * if real.ndim != 1: + */ + } + + /* "talib/_stream.pxi":7135 + * 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.pxi":7136 + * 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__2178, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7136, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 7136, __pyx_L1_error) + + /* "talib/_stream.pxi":7135 + * 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.pxi":7137 + * 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 = real.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":7138 + * raise Exception("real has wrong dimensions") + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< + * real_data = real.data + * length = real.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7138, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 7138, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":7137 + * 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 = real.data + */ + } + + /* "talib/_stream.pxi":7139 + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data # <<<<<<<<<<<<<< + * length = real.shape[0] + * outreal = NaN + */ + __pyx_v_real_data = ((double *)__pyx_v_real->data); + + /* "talib/_stream.pxi":7140 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = 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.pxi":7141 + * real_data = 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_8c_ta_lib_NaN; + + /* "talib/_stream.pxi":7142 + * 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.pxi":7143 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_SMA, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7143, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":7144 + * 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(3, 7144, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":7112 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":7148 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_SQRT( np.ndarray real not None ): # <<<<<<<<<<<<<< + * """ SQRT(real) + * + */ + +/* Python wrapper */ +static PyObject *__pyx_pw_5talib_8c_ta_lib_625stream_SQRT(PyObject *__pyx_self, PyObject *__pyx_v_real); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_624stream_SQRT[] = " 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_8c_ta_lib_625stream_SQRT = {"stream_SQRT", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_625stream_SQRT, METH_O, __pyx_doc_5talib_8c_ta_lib_624stream_SQRT}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_625stream_SQRT(PyObject *__pyx_self, PyObject *__pyx_v_real) { + PyObject *__pyx_r = 0; + __Pyx_RefNannyDeclarations + __Pyx_RefNannySetupContext("stream_SQRT (wrapper)", 0); + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_real), __pyx_ptype_5numpy_ndarray, 0, "real", 0))) __PYX_ERR(3, 7148, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_624stream_SQRT(__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_8c_ta_lib_624stream_SQRT(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("stream_SQRT", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real); + + /* "talib/_stream.pxi":7167 + * 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.pxi":7168 + * 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__2179, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7168, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 7168, __pyx_L1_error) + + /* "talib/_stream.pxi":7167 + * int outnbelement + * double outreal + * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real is not double") + * if real.ndim != 1: + */ + } + + /* "talib/_stream.pxi":7169 + * 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.pxi":7170 + * 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__2180, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7170, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 7170, __pyx_L1_error) + + /* "talib/_stream.pxi":7169 + * 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.pxi":7171 + * 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 = real.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":7172 + * raise Exception("real has wrong dimensions") + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< + * real_data = real.data + * length = real.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7172, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 7172, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":7171 + * 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 = real.data + */ + } + + /* "talib/_stream.pxi":7173 + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data # <<<<<<<<<<<<<< + * length = real.shape[0] + * outreal = NaN + */ + __pyx_v_real_data = ((double *)__pyx_v_real->data); + + /* "talib/_stream.pxi":7174 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = 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.pxi":7175 + * real_data = 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_8c_ta_lib_NaN; + + /* "talib/_stream.pxi":7176 + * 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.pxi":7177 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_SQRT, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7177, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":7178 + * 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(3, 7178, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":7148 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_SQRT( np.ndarray real not None ): # <<<<<<<<<<<<<< + * """ SQRT(real) + * + */ + + /* function exit code */ + __pyx_L1_error:; + __Pyx_XDECREF(__pyx_t_2); + __Pyx_AddTraceback("talib.c_ta_lib.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.pxi":7182 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_STDDEV( np.ndarray real not None , int timeperiod=-2**31 , double nbdev=-4e37 ): # <<<<<<<<<<<<<< + * """ STDDEV(real[, timeperiod=?, nbdev=?]) + * + */ + +/* Python wrapper */ +static PyObject *__pyx_pw_5talib_8c_ta_lib_627stream_STDDEV(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_626stream_STDDEV[] = " 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_8c_ta_lib_627stream_STDDEV = {"stream_STDDEV", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_627stream_STDDEV, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_626stream_STDDEV}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_627stream_STDDEV(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("stream_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, "stream_STDDEV") < 0)) __PYX_ERR(3, 7182, __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(3, 7182, __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(3, 7182, __pyx_L3_error) + } else { + __pyx_v_nbdev = ((double)-4e37); + } + } + goto __pyx_L4_argument_unpacking_done; + __pyx_L5_argtuple_error:; + __Pyx_RaiseArgtupleInvalid("stream_STDDEV", 0, 1, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 7182, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 7182, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_626stream_STDDEV(__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_8c_ta_lib_626stream_STDDEV(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("stream_STDDEV", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real); + + /* "talib/_stream.pxi":7204 + * 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.pxi":7205 + * 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__2181, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7205, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 7205, __pyx_L1_error) + + /* "talib/_stream.pxi":7204 + * int outnbelement + * double outreal + * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real is not double") + * if real.ndim != 1: + */ + } + + /* "talib/_stream.pxi":7206 + * 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.pxi":7207 + * 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__2182, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7207, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 7207, __pyx_L1_error) + + /* "talib/_stream.pxi":7206 + * 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.pxi":7208 + * 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 = real.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":7209 + * raise Exception("real has wrong dimensions") + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< + * real_data = real.data + * length = real.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7209, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 7209, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":7208 + * 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 = real.data + */ + } + + /* "talib/_stream.pxi":7210 + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data # <<<<<<<<<<<<<< + * length = real.shape[0] + * outreal = NaN + */ + __pyx_v_real_data = ((double *)__pyx_v_real->data); + + /* "talib/_stream.pxi":7211 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = 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.pxi":7212 + * real_data = 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_8c_ta_lib_NaN; + + /* "talib/_stream.pxi":7213 + * 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.pxi":7214 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_STDDEV, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7214, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":7215 + * 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(3, 7215, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":7182 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":7219 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_8c_ta_lib_629stream_STOCH(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_628stream_STOCH[] = " 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_8c_ta_lib_629stream_STOCH = {"stream_STOCH", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_629stream_STOCH, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_628stream_STOCH}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_629stream_STOCH(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("stream_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("stream_STOCH", 0, 3, 8, 1); __PYX_ERR(3, 7219, __pyx_L3_error) + } + case 2: + if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_STOCH", 0, 3, 8, 2); __PYX_ERR(3, 7219, __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, "stream_STOCH") < 0)) __PYX_ERR(3, 7219, __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(3, 7219, __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(3, 7219, __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(3, 7219, __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(3, 7219, __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(3, 7219, __pyx_L3_error) + } else { + __pyx_v_slowd_matype = ((int)0); + } + } + goto __pyx_L4_argument_unpacking_done; + __pyx_L5_argtuple_error:; + __Pyx_RaiseArgtupleInvalid("stream_STOCH", 0, 3, 8, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 7219, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 7219, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(3, 7219, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(3, 7219, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_628stream_STOCH(__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_8c_ta_lib_628stream_STOCH(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("stream_STOCH", 0); + __Pyx_INCREF((PyObject *)__pyx_v_high); + __Pyx_INCREF((PyObject *)__pyx_v_low); + __Pyx_INCREF((PyObject *)__pyx_v_close); + + /* "talib/_stream.pxi":7248 + * 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.pxi":7249 + * 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__2183, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7249, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 7249, __pyx_L1_error) + + /* "talib/_stream.pxi":7248 + * double outslowk + * double outslowd + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_stream.pxi":7250 + * 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.pxi":7251 + * raise 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__2184, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7251, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 7251, __pyx_L1_error) + + /* "talib/_stream.pxi":7250 + * 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.pxi":7252 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":7253 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7253, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 7253, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":7252 + * 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 = high.data + */ + } + + /* "talib/_stream.pxi":7254 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":7255 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":7256 + * high_data = 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__2185, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7256, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 7256, __pyx_L1_error) + + /* "talib/_stream.pxi":7255 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_stream.pxi":7257 + * 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.pxi":7258 + * raise 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__2186, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7258, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 7258, __pyx_L1_error) + + /* "talib/_stream.pxi":7257 + * 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.pxi":7259 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":7260 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7260, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 7260, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":7259 + * 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 = low.data + */ + } + + /* "talib/_stream.pxi":7261 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":7262 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":7263 + * low_data = 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__2187, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 7263, __pyx_L1_error) + + /* "talib/_stream.pxi":7262 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_stream.pxi":7264 + * 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.pxi":7265 + * raise 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__2188, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 7265, __pyx_L1_error) + + /* "talib/_stream.pxi":7264 + * 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.pxi":7266 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":7267 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = high.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 7267, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":7266 + * 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 = close.data + */ + } + + /* "talib/_stream.pxi":7268 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = high.shape[0] + * if length != low.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_stream.pxi":7269 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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.pxi":7270 + * close_data = 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.pxi":7271 + * 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__2189, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7271, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 7271, __pyx_L1_error) + + /* "talib/_stream.pxi":7270 + * close_data = close.data + * length = high.shape[0] + * if length != low.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != close.shape[0]: + */ + } + + /* "talib/_stream.pxi":7272 + * 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.pxi":7273 + * 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__2190, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7273, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 7273, __pyx_L1_error) + + /* "talib/_stream.pxi":7272 + * 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.pxi":7274 + * 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_8c_ta_lib_NaN; + + /* "talib/_stream.pxi":7275 + * 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_8c_ta_lib_NaN; + + /* "talib/_stream.pxi":7276 + * 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.pxi":7277 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_STOCH, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7277, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":7278 + * 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(3, 7278, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_t_3 = PyFloat_FromDouble(__pyx_v_outslowd); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 7278, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7278, __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.pxi":7219 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":7282 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_8c_ta_lib_631stream_STOCHF(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_630stream_STOCHF[] = " 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_8c_ta_lib_631stream_STOCHF = {"stream_STOCHF", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_631stream_STOCHF, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_630stream_STOCHF}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_631stream_STOCHF(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("stream_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("stream_STOCHF", 0, 3, 6, 1); __PYX_ERR(3, 7282, __pyx_L3_error) + } + case 2: + if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_STOCHF", 0, 3, 6, 2); __PYX_ERR(3, 7282, __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, "stream_STOCHF") < 0)) __PYX_ERR(3, 7282, __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(3, 7282, __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(3, 7282, __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(3, 7282, __pyx_L3_error) + } else { + __pyx_v_fastd_matype = ((int)0); + } + } + goto __pyx_L4_argument_unpacking_done; + __pyx_L5_argtuple_error:; + __Pyx_RaiseArgtupleInvalid("stream_STOCHF", 0, 3, 6, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 7282, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 7282, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(3, 7282, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(3, 7282, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_630stream_STOCHF(__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_8c_ta_lib_630stream_STOCHF(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("stream_STOCHF", 0); + __Pyx_INCREF((PyObject *)__pyx_v_high); + __Pyx_INCREF((PyObject *)__pyx_v_low); + __Pyx_INCREF((PyObject *)__pyx_v_close); + + /* "talib/_stream.pxi":7309 + * 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.pxi":7310 + * 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__2191, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7310, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 7310, __pyx_L1_error) + + /* "talib/_stream.pxi":7309 + * double outfastk + * double outfastd + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_stream.pxi":7311 + * 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.pxi":7312 + * raise 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__2192, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7312, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 7312, __pyx_L1_error) + + /* "talib/_stream.pxi":7311 + * 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.pxi":7313 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":7314 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7314, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 7314, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":7313 + * 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 = high.data + */ + } + + /* "talib/_stream.pxi":7315 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":7316 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":7317 + * high_data = 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__2193, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7317, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 7317, __pyx_L1_error) + + /* "talib/_stream.pxi":7316 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_stream.pxi":7318 + * 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.pxi":7319 + * raise 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__2194, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7319, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 7319, __pyx_L1_error) + + /* "talib/_stream.pxi":7318 + * 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.pxi":7320 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":7321 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7321, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 7321, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":7320 + * 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 = low.data + */ + } + + /* "talib/_stream.pxi":7322 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":7323 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":7324 + * low_data = 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__2195, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 7324, __pyx_L1_error) + + /* "talib/_stream.pxi":7323 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_stream.pxi":7325 + * 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.pxi":7326 + * raise 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__2196, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 7326, __pyx_L1_error) + + /* "talib/_stream.pxi":7325 + * 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.pxi":7327 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":7328 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = high.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 7328, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":7327 + * 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 = close.data + */ + } + + /* "talib/_stream.pxi":7329 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = high.shape[0] + * if length != low.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_stream.pxi":7330 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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.pxi":7331 + * close_data = 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.pxi":7332 + * 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__2197, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7332, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 7332, __pyx_L1_error) + + /* "talib/_stream.pxi":7331 + * close_data = close.data + * length = high.shape[0] + * if length != low.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != close.shape[0]: + */ + } + + /* "talib/_stream.pxi":7333 + * 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.pxi":7334 + * 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__2198, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7334, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 7334, __pyx_L1_error) + + /* "talib/_stream.pxi":7333 + * 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.pxi":7335 + * 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_8c_ta_lib_NaN; + + /* "talib/_stream.pxi":7336 + * 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_8c_ta_lib_NaN; + + /* "talib/_stream.pxi":7337 + * 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.pxi":7338 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_STOCHF, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7338, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":7339 + * 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(3, 7339, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_t_3 = PyFloat_FromDouble(__pyx_v_outfastd); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 7339, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7339, __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.pxi":7282 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":7343 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_8c_ta_lib_633stream_STOCHRSI(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_632stream_STOCHRSI[] = " 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_8c_ta_lib_633stream_STOCHRSI = {"stream_STOCHRSI", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_633stream_STOCHRSI, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_632stream_STOCHRSI}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_633stream_STOCHRSI(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("stream_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, "stream_STOCHRSI") < 0)) __PYX_ERR(3, 7343, __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(3, 7343, __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(3, 7343, __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(3, 7343, __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(3, 7343, __pyx_L3_error) + } else { + __pyx_v_fastd_matype = ((int)0); + } + } + goto __pyx_L4_argument_unpacking_done; + __pyx_L5_argtuple_error:; + __Pyx_RaiseArgtupleInvalid("stream_STOCHRSI", 0, 1, 5, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 7343, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 7343, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_632stream_STOCHRSI(__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_8c_ta_lib_632stream_STOCHRSI(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("stream_STOCHRSI", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real); + + /* "talib/_stream.pxi":7369 + * 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.pxi":7370 + * 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__2199, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7370, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 7370, __pyx_L1_error) + + /* "talib/_stream.pxi":7369 + * double outfastk + * double outfastd + * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real is not double") + * if real.ndim != 1: + */ + } + + /* "talib/_stream.pxi":7371 + * 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.pxi":7372 + * 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__2200, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7372, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 7372, __pyx_L1_error) + + /* "talib/_stream.pxi":7371 + * 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.pxi":7373 + * 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 = real.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":7374 + * raise Exception("real has wrong dimensions") + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< + * real_data = real.data + * length = real.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7374, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 7374, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":7373 + * 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 = real.data + */ + } + + /* "talib/_stream.pxi":7375 + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data # <<<<<<<<<<<<<< + * length = real.shape[0] + * outfastk = NaN + */ + __pyx_v_real_data = ((double *)__pyx_v_real->data); + + /* "talib/_stream.pxi":7376 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data + * length = real.shape[0] # <<<<<<<<<<<<<< + * outfastk = NaN + * outfastd = NaN + */ + __pyx_v_length = (__pyx_v_real->dimensions[0]); + + /* "talib/_stream.pxi":7377 + * real_data = 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_8c_ta_lib_NaN; + + /* "talib/_stream.pxi":7378 + * 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_8c_ta_lib_NaN; + + /* "talib/_stream.pxi":7379 + * 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.pxi":7380 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_STOCHRSI, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7380, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":7381 + * 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(3, 7381, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_t_3 = PyFloat_FromDouble(__pyx_v_outfastd); if (unlikely(!__pyx_t_3)) __PYX_ERR(3, 7381, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + __pyx_t_4 = PyTuple_New(2); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7381, __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.pxi":7343 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":7385 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_SUB( np.ndarray real0 not None , np.ndarray real1 not None ): # <<<<<<<<<<<<<< + * """ SUB(real0, real1) + * + */ + +/* Python wrapper */ +static PyObject *__pyx_pw_5talib_8c_ta_lib_635stream_SUB(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_634stream_SUB[] = " 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_8c_ta_lib_635stream_SUB = {"stream_SUB", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_635stream_SUB, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_634stream_SUB}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_635stream_SUB(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("stream_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("stream_SUB", 1, 2, 2, 1); __PYX_ERR(3, 7385, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "stream_SUB") < 0)) __PYX_ERR(3, 7385, __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("stream_SUB", 1, 2, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 7385, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 7385, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_real1), __pyx_ptype_5numpy_ndarray, 0, "real1", 0))) __PYX_ERR(3, 7385, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_634stream_SUB(__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_8c_ta_lib_634stream_SUB(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("stream_SUB", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real0); + __Pyx_INCREF((PyObject *)__pyx_v_real1); + + /* "talib/_stream.pxi":7406 + * 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.pxi":7407 + * 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__2201, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7407, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 7407, __pyx_L1_error) + + /* "talib/_stream.pxi":7406 + * int outnbelement + * double outreal + * if PyArray_TYPE(real0) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real0 is not double") + * if real0.ndim != 1: + */ + } + + /* "talib/_stream.pxi":7408 + * 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.pxi":7409 + * 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__2202, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7409, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 7409, __pyx_L1_error) + + /* "talib/_stream.pxi":7408 + * 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.pxi":7410 + * 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 = real0.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real0) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":7411 + * raise Exception("real0 has wrong dimensions") + * if not (PyArray_FLAGS(real0) & np.NPY_C_CONTIGUOUS): + * real0 = PyArray_GETCONTIGUOUS(real0) # <<<<<<<<<<<<<< + * real0_data = real0.data + * if PyArray_TYPE(real1) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7411, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 7411, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real0, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":7410 + * 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 = real0.data + */ + } + + /* "talib/_stream.pxi":7412 + * if not (PyArray_FLAGS(real0) & np.NPY_C_CONTIGUOUS): + * real0 = PyArray_GETCONTIGUOUS(real0) + * real0_data = 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.pxi":7413 + * real0 = PyArray_GETCONTIGUOUS(real0) + * real0_data = 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.pxi":7414 + * real0_data = 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__2203, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7414, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 7414, __pyx_L1_error) + + /* "talib/_stream.pxi":7413 + * real0 = PyArray_GETCONTIGUOUS(real0) + * real0_data = real0.data + * if PyArray_TYPE(real1) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real1 is not double") + * if real1.ndim != 1: + */ + } + + /* "talib/_stream.pxi":7415 + * 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.pxi":7416 + * 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__2204, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7416, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 7416, __pyx_L1_error) + + /* "talib/_stream.pxi":7415 + * 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.pxi":7417 + * 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 = real1.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real1) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":7418 + * raise Exception("real1 has wrong dimensions") + * if not (PyArray_FLAGS(real1) & np.NPY_C_CONTIGUOUS): + * real1 = PyArray_GETCONTIGUOUS(real1) # <<<<<<<<<<<<<< + * real1_data = real1.data + * length = real0.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real1); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7418, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 7418, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real1, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":7417 + * 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 = real1.data + */ + } + + /* "talib/_stream.pxi":7419 + * if not (PyArray_FLAGS(real1) & np.NPY_C_CONTIGUOUS): + * real1 = PyArray_GETCONTIGUOUS(real1) + * real1_data = real1.data # <<<<<<<<<<<<<< + * length = real0.shape[0] + * if length != real1.shape[0]: + */ + __pyx_v_real1_data = ((double *)__pyx_v_real1->data); + + /* "talib/_stream.pxi":7420 + * real1 = PyArray_GETCONTIGUOUS(real1) + * real1_data = 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.pxi":7421 + * real1_data = 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.pxi":7422 + * 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__2205, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7422, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 7422, __pyx_L1_error) + + /* "talib/_stream.pxi":7421 + * real1_data = real1.data + * length = real0.shape[0] + * if length != real1.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * outreal = NaN + */ + } + + /* "talib/_stream.pxi":7423 + * 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_8c_ta_lib_NaN; + + /* "talib/_stream.pxi":7424 + * 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.pxi":7425 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_SUB, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7425, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":7426 + * 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(3, 7426, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":7385 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":7430 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_SUM( np.ndarray real not None , int timeperiod=-2**31 ): # <<<<<<<<<<<<<< + * """ SUM(real[, timeperiod=?]) + * + */ + +/* Python wrapper */ +static PyObject *__pyx_pw_5talib_8c_ta_lib_637stream_SUM(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_636stream_SUM[] = " 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_8c_ta_lib_637stream_SUM = {"stream_SUM", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_637stream_SUM, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_636stream_SUM}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_637stream_SUM(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("stream_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, "stream_SUM") < 0)) __PYX_ERR(3, 7430, __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(3, 7430, __pyx_L3_error) + } else { + __pyx_v_timeperiod = ((int)-2147483648); + } + } + goto __pyx_L4_argument_unpacking_done; + __pyx_L5_argtuple_error:; + __Pyx_RaiseArgtupleInvalid("stream_SUM", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 7430, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 7430, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_636stream_SUM(__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_8c_ta_lib_636stream_SUM(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("stream_SUM", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real); + + /* "talib/_stream.pxi":7451 + * 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.pxi":7452 + * 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__2206, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7452, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 7452, __pyx_L1_error) + + /* "talib/_stream.pxi":7451 + * int outnbelement + * double outreal + * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real is not double") + * if real.ndim != 1: + */ + } + + /* "talib/_stream.pxi":7453 + * 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.pxi":7454 + * 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__2207, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7454, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 7454, __pyx_L1_error) + + /* "talib/_stream.pxi":7453 + * 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.pxi":7455 + * 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 = real.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":7456 + * raise Exception("real has wrong dimensions") + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< + * real_data = real.data + * length = real.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7456, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 7456, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":7455 + * 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 = real.data + */ + } + + /* "talib/_stream.pxi":7457 + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data # <<<<<<<<<<<<<< + * length = real.shape[0] + * outreal = NaN + */ + __pyx_v_real_data = ((double *)__pyx_v_real->data); + + /* "talib/_stream.pxi":7458 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = 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.pxi":7459 + * real_data = 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_8c_ta_lib_NaN; + + /* "talib/_stream.pxi":7460 + * 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.pxi":7461 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_SUM, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7461, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":7462 + * 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(3, 7462, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":7430 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":7466 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_T3( np.ndarray real not None , int timeperiod=-2**31 , double vfactor=-4e37 ): # <<<<<<<<<<<<<< + * """ T3(real[, timeperiod=?, vfactor=?]) + * + */ + +/* Python wrapper */ +static PyObject *__pyx_pw_5talib_8c_ta_lib_639stream_T3(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_638stream_T3[] = " 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_8c_ta_lib_639stream_T3 = {"stream_T3", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_639stream_T3, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_638stream_T3}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_639stream_T3(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("stream_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, "stream_T3") < 0)) __PYX_ERR(3, 7466, __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(3, 7466, __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(3, 7466, __pyx_L3_error) + } else { + __pyx_v_vfactor = ((double)-4e37); + } + } + goto __pyx_L4_argument_unpacking_done; + __pyx_L5_argtuple_error:; + __Pyx_RaiseArgtupleInvalid("stream_T3", 0, 1, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 7466, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 7466, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_638stream_T3(__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_8c_ta_lib_638stream_T3(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("stream_T3", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real); + + /* "talib/_stream.pxi":7488 + * 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.pxi":7489 + * 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__2208, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7489, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 7489, __pyx_L1_error) + + /* "talib/_stream.pxi":7488 + * int outnbelement + * double outreal + * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real is not double") + * if real.ndim != 1: + */ + } + + /* "talib/_stream.pxi":7490 + * 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.pxi":7491 + * 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__2209, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7491, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 7491, __pyx_L1_error) + + /* "talib/_stream.pxi":7490 + * 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.pxi":7492 + * 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 = real.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":7493 + * raise Exception("real has wrong dimensions") + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< + * real_data = real.data + * length = real.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7493, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 7493, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":7492 + * 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 = real.data + */ + } + + /* "talib/_stream.pxi":7494 + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data # <<<<<<<<<<<<<< + * length = real.shape[0] + * outreal = NaN + */ + __pyx_v_real_data = ((double *)__pyx_v_real->data); + + /* "talib/_stream.pxi":7495 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = 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.pxi":7496 + * real_data = 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_8c_ta_lib_NaN; + + /* "talib/_stream.pxi":7497 + * 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.pxi":7498 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_T3, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7498, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":7499 + * 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(3, 7499, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":7466 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":7503 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_TAN( np.ndarray real not None ): # <<<<<<<<<<<<<< + * """ TAN(real) + * + */ + +/* Python wrapper */ +static PyObject *__pyx_pw_5talib_8c_ta_lib_641stream_TAN(PyObject *__pyx_self, PyObject *__pyx_v_real); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_640stream_TAN[] = " 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_8c_ta_lib_641stream_TAN = {"stream_TAN", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_641stream_TAN, METH_O, __pyx_doc_5talib_8c_ta_lib_640stream_TAN}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_641stream_TAN(PyObject *__pyx_self, PyObject *__pyx_v_real) { + PyObject *__pyx_r = 0; + __Pyx_RefNannyDeclarations + __Pyx_RefNannySetupContext("stream_TAN (wrapper)", 0); + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_real), __pyx_ptype_5numpy_ndarray, 0, "real", 0))) __PYX_ERR(3, 7503, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_640stream_TAN(__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_8c_ta_lib_640stream_TAN(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("stream_TAN", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real); + + /* "talib/_stream.pxi":7522 + * 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.pxi":7523 + * 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__2210, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7523, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 7523, __pyx_L1_error) + + /* "talib/_stream.pxi":7522 + * int outnbelement + * double outreal + * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real is not double") + * if real.ndim != 1: + */ + } + + /* "talib/_stream.pxi":7524 + * 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.pxi":7525 + * 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__2211, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7525, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 7525, __pyx_L1_error) + + /* "talib/_stream.pxi":7524 + * 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.pxi":7526 + * 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 = real.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":7527 + * raise Exception("real has wrong dimensions") + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< + * real_data = real.data + * length = real.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7527, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 7527, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":7526 + * 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 = real.data + */ + } + + /* "talib/_stream.pxi":7528 + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data # <<<<<<<<<<<<<< + * length = real.shape[0] + * outreal = NaN + */ + __pyx_v_real_data = ((double *)__pyx_v_real->data); + + /* "talib/_stream.pxi":7529 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = 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.pxi":7530 + * real_data = 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_8c_ta_lib_NaN; + + /* "talib/_stream.pxi":7531 + * 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.pxi":7532 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_TAN, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7532, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":7533 + * 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(3, 7533, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":7503 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_TAN( np.ndarray real not None ): # <<<<<<<<<<<<<< + * """ TAN(real) + * + */ + + /* function exit code */ + __pyx_L1_error:; + __Pyx_XDECREF(__pyx_t_2); + __Pyx_AddTraceback("talib.c_ta_lib.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.pxi":7537 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_TANH( np.ndarray real not None ): # <<<<<<<<<<<<<< + * """ TANH(real) + * + */ + +/* Python wrapper */ +static PyObject *__pyx_pw_5talib_8c_ta_lib_643stream_TANH(PyObject *__pyx_self, PyObject *__pyx_v_real); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_642stream_TANH[] = " 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_8c_ta_lib_643stream_TANH = {"stream_TANH", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_643stream_TANH, METH_O, __pyx_doc_5talib_8c_ta_lib_642stream_TANH}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_643stream_TANH(PyObject *__pyx_self, PyObject *__pyx_v_real) { + PyObject *__pyx_r = 0; + __Pyx_RefNannyDeclarations + __Pyx_RefNannySetupContext("stream_TANH (wrapper)", 0); + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_real), __pyx_ptype_5numpy_ndarray, 0, "real", 0))) __PYX_ERR(3, 7537, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_642stream_TANH(__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_8c_ta_lib_642stream_TANH(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("stream_TANH", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real); + + /* "talib/_stream.pxi":7556 + * 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.pxi":7557 + * 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__2212, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7557, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 7557, __pyx_L1_error) + + /* "talib/_stream.pxi":7556 + * int outnbelement + * double outreal + * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real is not double") + * if real.ndim != 1: + */ + } + + /* "talib/_stream.pxi":7558 + * 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.pxi":7559 + * 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__2213, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7559, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 7559, __pyx_L1_error) + + /* "talib/_stream.pxi":7558 + * 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.pxi":7560 + * 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 = real.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":7561 + * raise Exception("real has wrong dimensions") + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< + * real_data = real.data + * length = real.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7561, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 7561, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":7560 + * 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 = real.data + */ + } + + /* "talib/_stream.pxi":7562 + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data # <<<<<<<<<<<<<< + * length = real.shape[0] + * outreal = NaN + */ + __pyx_v_real_data = ((double *)__pyx_v_real->data); + + /* "talib/_stream.pxi":7563 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = 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.pxi":7564 + * real_data = 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_8c_ta_lib_NaN; + + /* "talib/_stream.pxi":7565 + * 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.pxi":7566 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_TANH, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7566, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":7567 + * 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(3, 7567, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":7537 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_TANH( np.ndarray real not None ): # <<<<<<<<<<<<<< + * """ TANH(real) + * + */ + + /* function exit code */ + __pyx_L1_error:; + __Pyx_XDECREF(__pyx_t_2); + __Pyx_AddTraceback("talib.c_ta_lib.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.pxi":7571 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_TEMA( np.ndarray real not None , int timeperiod=-2**31 ): # <<<<<<<<<<<<<< + * """ TEMA(real[, timeperiod=?]) + * + */ + +/* Python wrapper */ +static PyObject *__pyx_pw_5talib_8c_ta_lib_645stream_TEMA(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_644stream_TEMA[] = " 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_8c_ta_lib_645stream_TEMA = {"stream_TEMA", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_645stream_TEMA, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_644stream_TEMA}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_645stream_TEMA(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("stream_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, "stream_TEMA") < 0)) __PYX_ERR(3, 7571, __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(3, 7571, __pyx_L3_error) + } else { + __pyx_v_timeperiod = ((int)-2147483648); + } + } + goto __pyx_L4_argument_unpacking_done; + __pyx_L5_argtuple_error:; + __Pyx_RaiseArgtupleInvalid("stream_TEMA", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 7571, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 7571, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_644stream_TEMA(__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_8c_ta_lib_644stream_TEMA(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("stream_TEMA", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real); + + /* "talib/_stream.pxi":7592 + * 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.pxi":7593 + * 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__2214, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7593, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 7593, __pyx_L1_error) + + /* "talib/_stream.pxi":7592 + * int outnbelement + * double outreal + * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real is not double") + * if real.ndim != 1: + */ + } + + /* "talib/_stream.pxi":7594 + * 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.pxi":7595 + * 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__2215, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7595, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 7595, __pyx_L1_error) + + /* "talib/_stream.pxi":7594 + * 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.pxi":7596 + * 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 = real.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":7597 + * raise Exception("real has wrong dimensions") + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< + * real_data = real.data + * length = real.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7597, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 7597, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":7596 + * 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 = real.data + */ + } + + /* "talib/_stream.pxi":7598 + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data # <<<<<<<<<<<<<< + * length = real.shape[0] + * outreal = NaN + */ + __pyx_v_real_data = ((double *)__pyx_v_real->data); + + /* "talib/_stream.pxi":7599 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = 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.pxi":7600 + * real_data = 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_8c_ta_lib_NaN; + + /* "talib/_stream.pxi":7601 + * 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.pxi":7602 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_TEMA, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7602, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":7603 + * 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(3, 7603, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":7571 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":7607 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_8c_ta_lib_647stream_TRANGE(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_646stream_TRANGE[] = " 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_8c_ta_lib_647stream_TRANGE = {"stream_TRANGE", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_647stream_TRANGE, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_646stream_TRANGE}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_647stream_TRANGE(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("stream_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("stream_TRANGE", 1, 3, 3, 1); __PYX_ERR(3, 7607, __pyx_L3_error) + } + case 2: + if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_TRANGE", 1, 3, 3, 2); __PYX_ERR(3, 7607, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "stream_TRANGE") < 0)) __PYX_ERR(3, 7607, __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("stream_TRANGE", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 7607, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 7607, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(3, 7607, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(3, 7607, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_646stream_TRANGE(__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_8c_ta_lib_646stream_TRANGE(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("stream_TRANGE", 0); + __Pyx_INCREF((PyObject *)__pyx_v_high); + __Pyx_INCREF((PyObject *)__pyx_v_low); + __Pyx_INCREF((PyObject *)__pyx_v_close); + + /* "talib/_stream.pxi":7628 + * 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.pxi":7629 + * 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__2216, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7629, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 7629, __pyx_L1_error) + + /* "talib/_stream.pxi":7628 + * int outnbelement + * double outreal + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_stream.pxi":7630 + * 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.pxi":7631 + * raise 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__2217, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7631, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 7631, __pyx_L1_error) + + /* "talib/_stream.pxi":7630 + * 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.pxi":7632 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":7633 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7633, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 7633, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":7632 + * 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 = high.data + */ + } + + /* "talib/_stream.pxi":7634 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":7635 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":7636 + * high_data = 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__2218, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7636, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 7636, __pyx_L1_error) + + /* "talib/_stream.pxi":7635 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_stream.pxi":7637 + * 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.pxi":7638 + * raise 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__2219, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7638, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 7638, __pyx_L1_error) + + /* "talib/_stream.pxi":7637 + * 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.pxi":7639 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":7640 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7640, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 7640, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":7639 + * 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 = low.data + */ + } + + /* "talib/_stream.pxi":7641 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":7642 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":7643 + * low_data = 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__2220, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 7643, __pyx_L1_error) + + /* "talib/_stream.pxi":7642 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_stream.pxi":7644 + * 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.pxi":7645 + * raise 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__2221, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 7645, __pyx_L1_error) + + /* "talib/_stream.pxi":7644 + * 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.pxi":7646 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":7647 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = high.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 7647, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":7646 + * 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 = close.data + */ + } + + /* "talib/_stream.pxi":7648 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = high.shape[0] + * if length != low.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_stream.pxi":7649 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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.pxi":7650 + * close_data = 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.pxi":7651 + * 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__2222, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7651, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 7651, __pyx_L1_error) + + /* "talib/_stream.pxi":7650 + * close_data = close.data + * length = high.shape[0] + * if length != low.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != close.shape[0]: + */ + } + + /* "talib/_stream.pxi":7652 + * 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.pxi":7653 + * 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__2223, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7653, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 7653, __pyx_L1_error) + + /* "talib/_stream.pxi":7652 + * 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.pxi":7654 + * 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_8c_ta_lib_NaN; + + /* "talib/_stream.pxi":7655 + * 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.pxi":7656 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_TRANGE, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7656, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":7657 + * 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(3, 7657, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":7607 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":7661 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_TRIMA( np.ndarray real not None , int timeperiod=-2**31 ): # <<<<<<<<<<<<<< + * """ TRIMA(real[, timeperiod=?]) + * + */ + +/* Python wrapper */ +static PyObject *__pyx_pw_5talib_8c_ta_lib_649stream_TRIMA(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_648stream_TRIMA[] = " 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_8c_ta_lib_649stream_TRIMA = {"stream_TRIMA", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_649stream_TRIMA, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_648stream_TRIMA}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_649stream_TRIMA(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("stream_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, "stream_TRIMA") < 0)) __PYX_ERR(3, 7661, __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(3, 7661, __pyx_L3_error) + } else { + __pyx_v_timeperiod = ((int)-2147483648); + } + } + goto __pyx_L4_argument_unpacking_done; + __pyx_L5_argtuple_error:; + __Pyx_RaiseArgtupleInvalid("stream_TRIMA", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 7661, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 7661, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_648stream_TRIMA(__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_8c_ta_lib_648stream_TRIMA(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("stream_TRIMA", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real); + + /* "talib/_stream.pxi":7682 + * 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.pxi":7683 + * 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__2224, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7683, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 7683, __pyx_L1_error) + + /* "talib/_stream.pxi":7682 + * int outnbelement + * double outreal + * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real is not double") + * if real.ndim != 1: + */ + } + + /* "talib/_stream.pxi":7684 + * 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.pxi":7685 + * 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__2225, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7685, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 7685, __pyx_L1_error) + + /* "talib/_stream.pxi":7684 + * 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.pxi":7686 + * 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 = real.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":7687 + * raise Exception("real has wrong dimensions") + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< + * real_data = real.data + * length = real.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7687, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 7687, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":7686 + * 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 = real.data + */ + } + + /* "talib/_stream.pxi":7688 + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data # <<<<<<<<<<<<<< + * length = real.shape[0] + * outreal = NaN + */ + __pyx_v_real_data = ((double *)__pyx_v_real->data); + + /* "talib/_stream.pxi":7689 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = 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.pxi":7690 + * real_data = 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_8c_ta_lib_NaN; + + /* "talib/_stream.pxi":7691 + * 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.pxi":7692 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_TRIMA, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7692, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":7693 + * 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(3, 7693, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":7661 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":7697 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_TRIX( np.ndarray real not None , int timeperiod=-2**31 ): # <<<<<<<<<<<<<< + * """ TRIX(real[, timeperiod=?]) + * + */ + +/* Python wrapper */ +static PyObject *__pyx_pw_5talib_8c_ta_lib_651stream_TRIX(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_650stream_TRIX[] = " 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_8c_ta_lib_651stream_TRIX = {"stream_TRIX", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_651stream_TRIX, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_650stream_TRIX}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_651stream_TRIX(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("stream_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, "stream_TRIX") < 0)) __PYX_ERR(3, 7697, __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(3, 7697, __pyx_L3_error) + } else { + __pyx_v_timeperiod = ((int)-2147483648); + } + } + goto __pyx_L4_argument_unpacking_done; + __pyx_L5_argtuple_error:; + __Pyx_RaiseArgtupleInvalid("stream_TRIX", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 7697, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 7697, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_650stream_TRIX(__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_8c_ta_lib_650stream_TRIX(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("stream_TRIX", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real); + + /* "talib/_stream.pxi":7718 + * 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.pxi":7719 + * 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__2226, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7719, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 7719, __pyx_L1_error) + + /* "talib/_stream.pxi":7718 + * int outnbelement + * double outreal + * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real is not double") + * if real.ndim != 1: + */ + } + + /* "talib/_stream.pxi":7720 + * 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.pxi":7721 + * 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__2227, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7721, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 7721, __pyx_L1_error) + + /* "talib/_stream.pxi":7720 + * 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.pxi":7722 + * 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 = real.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":7723 + * raise Exception("real has wrong dimensions") + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< + * real_data = real.data + * length = real.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7723, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 7723, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":7722 + * 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 = real.data + */ + } + + /* "talib/_stream.pxi":7724 + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data # <<<<<<<<<<<<<< + * length = real.shape[0] + * outreal = NaN + */ + __pyx_v_real_data = ((double *)__pyx_v_real->data); + + /* "talib/_stream.pxi":7725 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = 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.pxi":7726 + * real_data = 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_8c_ta_lib_NaN; + + /* "talib/_stream.pxi":7727 + * 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.pxi":7728 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_TRIX, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7728, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":7729 + * 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(3, 7729, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":7697 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":7733 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_TSF( np.ndarray real not None , int timeperiod=-2**31 ): # <<<<<<<<<<<<<< + * """ TSF(real[, timeperiod=?]) + * + */ + +/* Python wrapper */ +static PyObject *__pyx_pw_5talib_8c_ta_lib_653stream_TSF(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_652stream_TSF[] = " 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_8c_ta_lib_653stream_TSF = {"stream_TSF", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_653stream_TSF, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_652stream_TSF}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_653stream_TSF(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("stream_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, "stream_TSF") < 0)) __PYX_ERR(3, 7733, __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(3, 7733, __pyx_L3_error) + } else { + __pyx_v_timeperiod = ((int)-2147483648); + } + } + goto __pyx_L4_argument_unpacking_done; + __pyx_L5_argtuple_error:; + __Pyx_RaiseArgtupleInvalid("stream_TSF", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 7733, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 7733, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_652stream_TSF(__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_8c_ta_lib_652stream_TSF(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("stream_TSF", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real); + + /* "talib/_stream.pxi":7754 + * 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.pxi":7755 + * 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__2228, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7755, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 7755, __pyx_L1_error) + + /* "talib/_stream.pxi":7754 + * int outnbelement + * double outreal + * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real is not double") + * if real.ndim != 1: + */ + } + + /* "talib/_stream.pxi":7756 + * 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.pxi":7757 + * 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__2229, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7757, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 7757, __pyx_L1_error) + + /* "talib/_stream.pxi":7756 + * 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.pxi":7758 + * 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 = real.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":7759 + * raise Exception("real has wrong dimensions") + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< + * real_data = real.data + * length = real.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7759, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 7759, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":7758 + * 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 = real.data + */ + } + + /* "talib/_stream.pxi":7760 + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data # <<<<<<<<<<<<<< + * length = real.shape[0] + * outreal = NaN + */ + __pyx_v_real_data = ((double *)__pyx_v_real->data); + + /* "talib/_stream.pxi":7761 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = 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.pxi":7762 + * real_data = 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_8c_ta_lib_NaN; + + /* "talib/_stream.pxi":7763 + * 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.pxi":7764 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_TSF, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7764, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":7765 + * 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(3, 7765, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":7733 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":7769 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_8c_ta_lib_655stream_TYPPRICE(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_654stream_TYPPRICE[] = " 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_8c_ta_lib_655stream_TYPPRICE = {"stream_TYPPRICE", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_655stream_TYPPRICE, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_654stream_TYPPRICE}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_655stream_TYPPRICE(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("stream_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("stream_TYPPRICE", 1, 3, 3, 1); __PYX_ERR(3, 7769, __pyx_L3_error) + } + case 2: + if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_TYPPRICE", 1, 3, 3, 2); __PYX_ERR(3, 7769, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "stream_TYPPRICE") < 0)) __PYX_ERR(3, 7769, __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("stream_TYPPRICE", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 7769, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 7769, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(3, 7769, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(3, 7769, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_654stream_TYPPRICE(__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_8c_ta_lib_654stream_TYPPRICE(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("stream_TYPPRICE", 0); + __Pyx_INCREF((PyObject *)__pyx_v_high); + __Pyx_INCREF((PyObject *)__pyx_v_low); + __Pyx_INCREF((PyObject *)__pyx_v_close); + + /* "talib/_stream.pxi":7790 + * 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.pxi":7791 + * 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__2230, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7791, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 7791, __pyx_L1_error) + + /* "talib/_stream.pxi":7790 + * int outnbelement + * double outreal + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_stream.pxi":7792 + * 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.pxi":7793 + * raise 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__2231, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7793, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 7793, __pyx_L1_error) + + /* "talib/_stream.pxi":7792 + * 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.pxi":7794 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":7795 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7795, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 7795, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":7794 + * 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 = high.data + */ + } + + /* "talib/_stream.pxi":7796 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":7797 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":7798 + * high_data = 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__2232, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7798, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 7798, __pyx_L1_error) + + /* "talib/_stream.pxi":7797 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_stream.pxi":7799 + * 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.pxi":7800 + * raise 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__2233, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7800, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 7800, __pyx_L1_error) + + /* "talib/_stream.pxi":7799 + * 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.pxi":7801 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":7802 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7802, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 7802, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":7801 + * 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 = low.data + */ + } + + /* "talib/_stream.pxi":7803 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":7804 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":7805 + * low_data = 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__2234, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 7805, __pyx_L1_error) + + /* "talib/_stream.pxi":7804 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_stream.pxi":7806 + * 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.pxi":7807 + * raise 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__2235, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 7807, __pyx_L1_error) + + /* "talib/_stream.pxi":7806 + * 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.pxi":7808 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":7809 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = high.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 7809, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":7808 + * 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 = close.data + */ + } + + /* "talib/_stream.pxi":7810 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = high.shape[0] + * if length != low.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_stream.pxi":7811 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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.pxi":7812 + * close_data = 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.pxi":7813 + * 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__2236, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7813, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 7813, __pyx_L1_error) + + /* "talib/_stream.pxi":7812 + * close_data = close.data + * length = high.shape[0] + * if length != low.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != close.shape[0]: + */ + } + + /* "talib/_stream.pxi":7814 + * 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.pxi":7815 + * 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__2237, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7815, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 7815, __pyx_L1_error) + + /* "talib/_stream.pxi":7814 + * 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.pxi":7816 + * 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_8c_ta_lib_NaN; + + /* "talib/_stream.pxi":7817 + * 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.pxi":7818 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_TYPPRICE, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7818, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":7819 + * 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(3, 7819, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":7769 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":7823 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_8c_ta_lib_657stream_ULTOSC(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_656stream_ULTOSC[] = " 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_8c_ta_lib_657stream_ULTOSC = {"stream_ULTOSC", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_657stream_ULTOSC, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_656stream_ULTOSC}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_657stream_ULTOSC(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("stream_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("stream_ULTOSC", 0, 3, 6, 1); __PYX_ERR(3, 7823, __pyx_L3_error) + } + case 2: + if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_ULTOSC", 0, 3, 6, 2); __PYX_ERR(3, 7823, __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, "stream_ULTOSC") < 0)) __PYX_ERR(3, 7823, __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(3, 7823, __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(3, 7823, __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(3, 7823, __pyx_L3_error) + } else { + __pyx_v_timeperiod3 = ((int)-2147483648); + } + } + goto __pyx_L4_argument_unpacking_done; + __pyx_L5_argtuple_error:; + __Pyx_RaiseArgtupleInvalid("stream_ULTOSC", 0, 3, 6, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 7823, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 7823, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(3, 7823, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(3, 7823, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_656stream_ULTOSC(__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_8c_ta_lib_656stream_ULTOSC(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("stream_ULTOSC", 0); + __Pyx_INCREF((PyObject *)__pyx_v_high); + __Pyx_INCREF((PyObject *)__pyx_v_low); + __Pyx_INCREF((PyObject *)__pyx_v_close); + + /* "talib/_stream.pxi":7848 + * 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.pxi":7849 + * 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__2238, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7849, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 7849, __pyx_L1_error) + + /* "talib/_stream.pxi":7848 + * int outnbelement + * double outreal + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_stream.pxi":7850 + * 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.pxi":7851 + * raise 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__2239, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7851, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 7851, __pyx_L1_error) + + /* "talib/_stream.pxi":7850 + * 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.pxi":7852 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":7853 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7853, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 7853, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":7852 + * 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 = high.data + */ + } + + /* "talib/_stream.pxi":7854 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":7855 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":7856 + * high_data = 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__2240, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7856, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 7856, __pyx_L1_error) + + /* "talib/_stream.pxi":7855 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_stream.pxi":7857 + * 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.pxi":7858 + * raise 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__2241, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7858, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 7858, __pyx_L1_error) + + /* "talib/_stream.pxi":7857 + * 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.pxi":7859 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":7860 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7860, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 7860, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":7859 + * 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 = low.data + */ + } + + /* "talib/_stream.pxi":7861 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":7862 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":7863 + * low_data = 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__2242, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 7863, __pyx_L1_error) + + /* "talib/_stream.pxi":7862 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_stream.pxi":7864 + * 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.pxi":7865 + * raise 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__2243, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 7865, __pyx_L1_error) + + /* "talib/_stream.pxi":7864 + * 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.pxi":7866 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":7867 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = high.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 7867, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":7866 + * 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 = close.data + */ + } + + /* "talib/_stream.pxi":7868 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = high.shape[0] + * if length != low.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_stream.pxi":7869 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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.pxi":7870 + * close_data = 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.pxi":7871 + * 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__2244, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7871, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 7871, __pyx_L1_error) + + /* "talib/_stream.pxi":7870 + * close_data = close.data + * length = high.shape[0] + * if length != low.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != close.shape[0]: + */ + } + + /* "talib/_stream.pxi":7872 + * 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.pxi":7873 + * 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__2245, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7873, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 7873, __pyx_L1_error) + + /* "talib/_stream.pxi":7872 + * 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.pxi":7874 + * 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_8c_ta_lib_NaN; + + /* "talib/_stream.pxi":7875 + * 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.pxi":7876 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_ULTOSC, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7876, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":7877 + * 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(3, 7877, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":7823 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":7881 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_VAR( np.ndarray real not None , int timeperiod=-2**31 , double nbdev=-4e37 ): # <<<<<<<<<<<<<< + * """ VAR(real[, timeperiod=?, nbdev=?]) + * + */ + +/* Python wrapper */ +static PyObject *__pyx_pw_5talib_8c_ta_lib_659stream_VAR(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_658stream_VAR[] = " 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_8c_ta_lib_659stream_VAR = {"stream_VAR", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_659stream_VAR, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_658stream_VAR}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_659stream_VAR(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("stream_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, "stream_VAR") < 0)) __PYX_ERR(3, 7881, __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(3, 7881, __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(3, 7881, __pyx_L3_error) + } else { + __pyx_v_nbdev = ((double)-4e37); + } + } + goto __pyx_L4_argument_unpacking_done; + __pyx_L5_argtuple_error:; + __Pyx_RaiseArgtupleInvalid("stream_VAR", 0, 1, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 7881, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 7881, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_658stream_VAR(__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_8c_ta_lib_658stream_VAR(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("stream_VAR", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real); + + /* "talib/_stream.pxi":7903 + * 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.pxi":7904 + * 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__2246, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7904, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 7904, __pyx_L1_error) + + /* "talib/_stream.pxi":7903 + * int outnbelement + * double outreal + * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real is not double") + * if real.ndim != 1: + */ + } + + /* "talib/_stream.pxi":7905 + * 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.pxi":7906 + * 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__2247, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7906, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 7906, __pyx_L1_error) + + /* "talib/_stream.pxi":7905 + * 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.pxi":7907 + * 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 = real.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":7908 + * raise Exception("real has wrong dimensions") + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< + * real_data = real.data + * length = real.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7908, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 7908, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":7907 + * 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 = real.data + */ + } + + /* "talib/_stream.pxi":7909 + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data # <<<<<<<<<<<<<< + * length = real.shape[0] + * outreal = NaN + */ + __pyx_v_real_data = ((double *)__pyx_v_real->data); + + /* "talib/_stream.pxi":7910 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = 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.pxi":7911 + * real_data = 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_8c_ta_lib_NaN; + + /* "talib/_stream.pxi":7912 + * 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.pxi":7913 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_VAR, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7913, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":7914 + * 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(3, 7914, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":7881 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":7918 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_8c_ta_lib_661stream_WCLPRICE(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_660stream_WCLPRICE[] = " 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_8c_ta_lib_661stream_WCLPRICE = {"stream_WCLPRICE", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_661stream_WCLPRICE, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_660stream_WCLPRICE}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_661stream_WCLPRICE(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("stream_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("stream_WCLPRICE", 1, 3, 3, 1); __PYX_ERR(3, 7918, __pyx_L3_error) + } + case 2: + if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_WCLPRICE", 1, 3, 3, 2); __PYX_ERR(3, 7918, __pyx_L3_error) + } + } + if (unlikely(kw_args > 0)) { + if (unlikely(__Pyx_ParseOptionalKeywords(__pyx_kwds, __pyx_pyargnames, 0, values, pos_args, "stream_WCLPRICE") < 0)) __PYX_ERR(3, 7918, __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("stream_WCLPRICE", 1, 3, 3, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 7918, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 7918, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(3, 7918, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(3, 7918, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_660stream_WCLPRICE(__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_8c_ta_lib_660stream_WCLPRICE(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("stream_WCLPRICE", 0); + __Pyx_INCREF((PyObject *)__pyx_v_high); + __Pyx_INCREF((PyObject *)__pyx_v_low); + __Pyx_INCREF((PyObject *)__pyx_v_close); + + /* "talib/_stream.pxi":7939 + * 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.pxi":7940 + * 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__2248, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7940, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 7940, __pyx_L1_error) + + /* "talib/_stream.pxi":7939 + * int outnbelement + * double outreal + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_stream.pxi":7941 + * 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.pxi":7942 + * raise 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__2249, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7942, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 7942, __pyx_L1_error) + + /* "talib/_stream.pxi":7941 + * 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.pxi":7943 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":7944 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7944, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 7944, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":7943 + * 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 = high.data + */ + } + + /* "talib/_stream.pxi":7945 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":7946 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":7947 + * high_data = 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__2250, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7947, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 7947, __pyx_L1_error) + + /* "talib/_stream.pxi":7946 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_stream.pxi":7948 + * 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.pxi":7949 + * raise 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__2251, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7949, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 7949, __pyx_L1_error) + + /* "talib/_stream.pxi":7948 + * 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.pxi":7950 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":7951 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7951, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 7951, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":7950 + * 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 = low.data + */ + } + + /* "talib/_stream.pxi":7952 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":7953 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":7954 + * low_data = 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__2252, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 7954, __pyx_L1_error) + + /* "talib/_stream.pxi":7953 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_stream.pxi":7955 + * 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.pxi":7956 + * raise 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__2253, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 7956, __pyx_L1_error) + + /* "talib/_stream.pxi":7955 + * 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.pxi":7957 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":7958 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = high.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 7958, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":7957 + * 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 = close.data + */ + } + + /* "talib/_stream.pxi":7959 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = high.shape[0] + * if length != low.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_stream.pxi":7960 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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.pxi":7961 + * close_data = 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.pxi":7962 + * 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__2254, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7962, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 7962, __pyx_L1_error) + + /* "talib/_stream.pxi":7961 + * close_data = close.data + * length = high.shape[0] + * if length != low.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != close.shape[0]: + */ + } + + /* "talib/_stream.pxi":7963 + * 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.pxi":7964 + * 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__2255, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7964, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 7964, __pyx_L1_error) + + /* "talib/_stream.pxi":7963 + * 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.pxi":7965 + * 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_8c_ta_lib_NaN; + + /* "talib/_stream.pxi":7966 + * 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.pxi":7967 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_WCLPRICE, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7967, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":7968 + * 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(3, 7968, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":7918 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":7972 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_8c_ta_lib_663stream_WILLR(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_662stream_WILLR[] = " 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_8c_ta_lib_663stream_WILLR = {"stream_WILLR", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_663stream_WILLR, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_662stream_WILLR}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_663stream_WILLR(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("stream_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("stream_WILLR", 0, 3, 4, 1); __PYX_ERR(3, 7972, __pyx_L3_error) + } + case 2: + if (likely((values[2] = PyDict_GetItem(__pyx_kwds, __pyx_n_s_close)) != 0)) kw_args--; + else { + __Pyx_RaiseArgtupleInvalid("stream_WILLR", 0, 3, 4, 2); __PYX_ERR(3, 7972, __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, "stream_WILLR") < 0)) __PYX_ERR(3, 7972, __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(3, 7972, __pyx_L3_error) + } else { + __pyx_v_timeperiod = ((int)-2147483648); + } + } + goto __pyx_L4_argument_unpacking_done; + __pyx_L5_argtuple_error:; + __Pyx_RaiseArgtupleInvalid("stream_WILLR", 0, 3, 4, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 7972, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 7972, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_low), __pyx_ptype_5numpy_ndarray, 0, "low", 0))) __PYX_ERR(3, 7972, __pyx_L1_error) + if (unlikely(!__Pyx_ArgTypeTest(((PyObject *)__pyx_v_close), __pyx_ptype_5numpy_ndarray, 0, "close", 0))) __PYX_ERR(3, 7972, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_662stream_WILLR(__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_8c_ta_lib_662stream_WILLR(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("stream_WILLR", 0); + __Pyx_INCREF((PyObject *)__pyx_v_high); + __Pyx_INCREF((PyObject *)__pyx_v_low); + __Pyx_INCREF((PyObject *)__pyx_v_close); + + /* "talib/_stream.pxi":7995 + * 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.pxi":7996 + * 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__2256, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7996, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 7996, __pyx_L1_error) + + /* "talib/_stream.pxi":7995 + * int outnbelement + * double outreal + * if PyArray_TYPE(high) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("high is not double") + * if high.ndim != 1: + */ + } + + /* "talib/_stream.pxi":7997 + * 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.pxi":7998 + * raise 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__2257, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 7998, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 7998, __pyx_L1_error) + + /* "talib/_stream.pxi":7997 + * 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.pxi":7999 + * 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 = high.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_high) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":8000 + * raise Exception("high has wrong dimensions") + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) # <<<<<<<<<<<<<< + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_high); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 8000, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 8000, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_high, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":7999 + * 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 = high.data + */ + } + + /* "talib/_stream.pxi":8001 + * if not (PyArray_FLAGS(high) & np.NPY_C_CONTIGUOUS): + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":8002 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = 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.pxi":8003 + * high_data = 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__2258, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 8003, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 8003, __pyx_L1_error) + + /* "talib/_stream.pxi":8002 + * high = PyArray_GETCONTIGUOUS(high) + * high_data = high.data + * if PyArray_TYPE(low) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("low is not double") + * if low.ndim != 1: + */ + } + + /* "talib/_stream.pxi":8004 + * 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.pxi":8005 + * raise 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__2259, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 8005, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 8005, __pyx_L1_error) + + /* "talib/_stream.pxi":8004 + * 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.pxi":8006 + * 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 = low.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_low) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":8007 + * raise Exception("low has wrong dimensions") + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) # <<<<<<<<<<<<<< + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_low); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 8007, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 8007, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_low, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":8006 + * 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 = low.data + */ + } + + /* "talib/_stream.pxi":8008 + * if not (PyArray_FLAGS(low) & np.NPY_C_CONTIGUOUS): + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":8009 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = 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.pxi":8010 + * low_data = 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__2260, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 8010, __pyx_L1_error) + + /* "talib/_stream.pxi":8009 + * low = PyArray_GETCONTIGUOUS(low) + * low_data = low.data + * if PyArray_TYPE(close) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("close is not double") + * if close.ndim != 1: + */ + } + + /* "talib/_stream.pxi":8011 + * 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.pxi":8012 + * raise 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__2261, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 8012, __pyx_L1_error) + + /* "talib/_stream.pxi":8011 + * 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.pxi":8013 + * 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 = close.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_close) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":8014 + * raise Exception("close has wrong dimensions") + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) # <<<<<<<<<<<<<< + * close_data = close.data + * length = high.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_close); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 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(3, 8014, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_close, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":8013 + * 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 = close.data + */ + } + + /* "talib/_stream.pxi":8015 + * if not (PyArray_FLAGS(close) & np.NPY_C_CONTIGUOUS): + * close = PyArray_GETCONTIGUOUS(close) + * close_data = close.data # <<<<<<<<<<<<<< + * length = high.shape[0] + * if length != low.shape[0]: + */ + __pyx_v_close_data = ((double *)__pyx_v_close->data); + + /* "talib/_stream.pxi":8016 + * close = PyArray_GETCONTIGUOUS(close) + * close_data = 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.pxi":8017 + * close_data = 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.pxi":8018 + * 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__2262, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 8018, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 8018, __pyx_L1_error) + + /* "talib/_stream.pxi":8017 + * close_data = close.data + * length = high.shape[0] + * if length != low.shape[0]: # <<<<<<<<<<<<<< + * raise Exception("input lengths are different") + * if length != close.shape[0]: + */ + } + + /* "talib/_stream.pxi":8019 + * 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.pxi":8020 + * 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__2263, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 8020, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 8020, __pyx_L1_error) + + /* "talib/_stream.pxi":8019 + * 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.pxi":8021 + * 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_8c_ta_lib_NaN; + + /* "talib/_stream.pxi":8022 + * 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.pxi":8023 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_WILLR, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 8023, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":8024 + * 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(3, 8024, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":7972 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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.pxi":8028 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_WMA( np.ndarray real not None , int timeperiod=-2**31 ): # <<<<<<<<<<<<<< + * """ WMA(real[, timeperiod=?]) + * + */ + +/* Python wrapper */ +static PyObject *__pyx_pw_5talib_8c_ta_lib_665stream_WMA(PyObject *__pyx_self, PyObject *__pyx_args, PyObject *__pyx_kwds); /*proto*/ +static char __pyx_doc_5talib_8c_ta_lib_664stream_WMA[] = " 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_8c_ta_lib_665stream_WMA = {"stream_WMA", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_665stream_WMA, METH_VARARGS|METH_KEYWORDS, __pyx_doc_5talib_8c_ta_lib_664stream_WMA}; +static PyObject *__pyx_pw_5talib_8c_ta_lib_665stream_WMA(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("stream_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, "stream_WMA") < 0)) __PYX_ERR(3, 8028, __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(3, 8028, __pyx_L3_error) + } else { + __pyx_v_timeperiod = ((int)-2147483648); + } + } + goto __pyx_L4_argument_unpacking_done; + __pyx_L5_argtuple_error:; + __Pyx_RaiseArgtupleInvalid("stream_WMA", 0, 1, 2, PyTuple_GET_SIZE(__pyx_args)); __PYX_ERR(3, 8028, __pyx_L3_error) + __pyx_L3_error:; + __Pyx_AddTraceback("talib.c_ta_lib.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(3, 8028, __pyx_L1_error) + __pyx_r = __pyx_pf_5talib_8c_ta_lib_664stream_WMA(__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_8c_ta_lib_664stream_WMA(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("stream_WMA", 0); + __Pyx_INCREF((PyObject *)__pyx_v_real); + + /* "talib/_stream.pxi":8049 + * 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.pxi":8050 + * 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__2264, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 8050, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 8050, __pyx_L1_error) + + /* "talib/_stream.pxi":8049 + * int outnbelement + * double outreal + * if PyArray_TYPE(real) != np.NPY_DOUBLE: # <<<<<<<<<<<<<< + * raise Exception("real is not double") + * if real.ndim != 1: + */ + } + + /* "talib/_stream.pxi":8051 + * 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.pxi":8052 + * 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__2265, NULL); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 8052, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_Raise(__pyx_t_2, 0, 0, 0); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __PYX_ERR(3, 8052, __pyx_L1_error) + + /* "talib/_stream.pxi":8051 + * 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.pxi":8053 + * 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 = real.data + */ + __pyx_t_1 = ((!((PyArray_FLAGS(__pyx_v_real) & NPY_C_CONTIGUOUS) != 0)) != 0); + if (__pyx_t_1) { + + /* "talib/_stream.pxi":8054 + * raise Exception("real has wrong dimensions") + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) # <<<<<<<<<<<<<< + * real_data = real.data + * length = real.shape[0] + */ + __pyx_t_2 = PyArray_GETCONTIGUOUS(__pyx_v_real); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 8054, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (!(likely(((__pyx_t_2) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_2, __pyx_ptype_5numpy_ndarray))))) __PYX_ERR(3, 8054, __pyx_L1_error) + __Pyx_DECREF_SET(__pyx_v_real, ((PyArrayObject *)__pyx_t_2)); + __pyx_t_2 = 0; + + /* "talib/_stream.pxi":8053 + * 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 = real.data + */ + } + + /* "talib/_stream.pxi":8055 + * if not (PyArray_FLAGS(real) & np.NPY_C_CONTIGUOUS): + * real = PyArray_GETCONTIGUOUS(real) + * real_data = real.data # <<<<<<<<<<<<<< + * length = real.shape[0] + * outreal = NaN + */ + __pyx_v_real_data = ((double *)__pyx_v_real->data); + + /* "talib/_stream.pxi":8056 + * real = PyArray_GETCONTIGUOUS(real) + * real_data = 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.pxi":8057 + * real_data = 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_8c_ta_lib_NaN; + + /* "talib/_stream.pxi":8058 + * 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.pxi":8059 + * 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_8c_ta_lib__ta_check_success(__pyx_n_s_TA_WMA, __pyx_v_retCode, 0); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 8059, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_stream.pxi":8060 + * retCode = lib.TA_WMA( length - 1 , length - 1 , real_data , timeperiod , &outbegidx , &outnbelement , &outreal ) + * _ta_check_success("TA_WMA", retCode) + * return outreal # <<<<<<<<<<<<<< + */ + __Pyx_XDECREF(__pyx_r); + __pyx_t_2 = PyFloat_FromDouble(__pyx_v_outreal); if (unlikely(!__pyx_t_2)) __PYX_ERR(3, 8060, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_r = __pyx_t_2; + __pyx_t_2 = 0; + goto __pyx_L0; + + /* "talib/_stream.pxi":8028 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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.c_ta_lib.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 = ((&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 = ((&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 = ((&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__2266, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 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(4, 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__2267, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 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(4, 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 = stdlib.malloc(sizeof(Py_ssize_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 = stdlib.malloc(sizeof(Py_ssize_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 = stdlib.malloc(sizeof(Py_ssize_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 = 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 = PyArray_STRIDES(self) # <<<<<<<<<<<<<< + * info.shape = 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 = PyArray_STRIDES(self) + * info.shape = 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 = PyArray_STRIDES(self) + * info.shape = 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 = 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__2268, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 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(4, 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(4, 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(4, 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(4, 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(4, 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(4, 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 = 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 = 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 = 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 = 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(4, 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, 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, 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(4, 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, 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, a) + * + * cdef inline object PyArray_MultiIterNew2(a, b): # <<<<<<<<<<<<<< + * return PyArray_MultiIterNew(2, a, 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, a, 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(4, 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, a) + * + * cdef inline object PyArray_MultiIterNew2(a, b): # <<<<<<<<<<<<<< + * return PyArray_MultiIterNew(2, a, 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, a, b) + * + * cdef inline object PyArray_MultiIterNew3(a, b, c): # <<<<<<<<<<<<<< + * return PyArray_MultiIterNew(3, a, b, 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, a, b, 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(4, 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, a, b) + * + * cdef inline object PyArray_MultiIterNew3(a, b, c): # <<<<<<<<<<<<<< + * return PyArray_MultiIterNew(3, a, b, 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, a, b, c) + * + * cdef inline object PyArray_MultiIterNew4(a, b, c, d): # <<<<<<<<<<<<<< + * return PyArray_MultiIterNew(4, a, b, c, 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, a, b, c, 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(4, 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, a, b, c) + * + * cdef inline object PyArray_MultiIterNew4(a, b, c, d): # <<<<<<<<<<<<<< + * return PyArray_MultiIterNew(4, a, b, c, 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, a, b, c, d) + * + * cdef inline object PyArray_MultiIterNew5(a, b, c, d, e): # <<<<<<<<<<<<<< + * return PyArray_MultiIterNew(5, a, b, c, d, 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, a, b, c, d, 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(4, 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, a, b, c, d) + * + * cdef inline object PyArray_MultiIterNew5(a, b, c, d, e): # <<<<<<<<<<<<<< + * return PyArray_MultiIterNew(5, a, b, c, d, 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, a, b, c, d, 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 = ((&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 = ((&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(4, 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(4, 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(4, 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(4, 795, __pyx_L1_error) + } + __pyx_t_3 = __Pyx_PyDict_GetItem(__pyx_v_descr->fields, __pyx_v_childname); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 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(4, 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) - (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(4, 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(4, 796, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + __pyx_t_4 = PySequence_ITEM(sequence, 1); if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 796, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + #endif + } else { + __Pyx_RaiseNoneNotIterableError(); __PYX_ERR(4, 796, __pyx_L1_error) + } + if (!(likely(((__pyx_t_3) == Py_None) || likely(__Pyx_TypeTest(__pyx_t_3, __pyx_ptype_5numpy_dtype))))) __PYX_ERR(4, 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) - (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(4, 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(4, 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(4, 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) - (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__2269, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 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(4, 799, __pyx_L1_error) + + /* "../../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":798 + * child, new_offset = fields + * + * if (end - f) - (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__2270, NULL); if (unlikely(!__pyx_t_3)) __PYX_ERR(4, 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(4, 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(4, 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(4, 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(4, 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(4, 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__2271, NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 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(4, 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(4, 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(4, 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(4, 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(4, 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(4, 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(4, 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(4, 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(4, 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(4, 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(4, 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(4, 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(4, 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(4, 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(4, 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(4, 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(4, 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(4, 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(4, 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(4, 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(4, 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(4, 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(4, 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(4, 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(4, 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(4, 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(4, 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(4, 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(4, 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(4, 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(4, 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(4, 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(4, 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(4, 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(4, 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(4, 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(4, 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(4, 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(4, 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(4, 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(4, 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(4, 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(4, 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(4, 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(4, 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(4, 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(4, 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(4, 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(4, 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(4, 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(4, 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(4, 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(4, 844, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_3); + __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(4, 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(4, 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(4, 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(4, 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, a, b, c, d, 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 = 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 = 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 = 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 = 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 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 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[] = { + {"_ta_check_success", (PyCFunction)__pyx_pw_5talib_8c_ta_lib_1_ta_check_success, METH_VARARGS|METH_KEYWORDS, 0}, + {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 + "c_ta_lib", + 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_kp_s_3, __pyx_k_3, sizeof(__pyx_k_3), 0, 0, 1, 0}, + {&__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_ALL, __pyx_k_ALL, sizeof(__pyx_k_ALL), 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_kp_s_Allocation_Error_TA_ALLOC_ERR, __pyx_k_Allocation_Error_TA_ALLOC_ERR, sizeof(__pyx_k_Allocation_Error_TA_ALLOC_ERR), 0, 0, 1, 0}, + {&__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_kp_s_Bad_Object_TA_BAD_OBJECT, __pyx_k_Bad_Object_TA_BAD_OBJECT, sizeof(__pyx_k_Bad_Object_TA_BAD_OBJECT), 0, 0, 1, 0}, + {&__pyx_kp_s_Bad_Parameter_TA_BAD_PARAM, __pyx_k_Bad_Parameter_TA_BAD_PARAM, sizeof(__pyx_k_Bad_Parameter_TA_BAD_PARAM), 0, 0, 1, 0}, + {&__pyx_kp_s_Bull_Bear_Pattern_Bearish_0_Neut, __pyx_k_Bull_Bear_Pattern_Bearish_0_Neut, sizeof(__pyx_k_Bull_Bear_Pattern_Bearish_0_Neut), 0, 0, 1, 0}, + {&__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_kp_s_Dashed_Line, __pyx_k_Dashed_Line, sizeof(__pyx_k_Dashed_Line), 0, 0, 1, 0}, + {&__pyx_n_s_DataFrame, __pyx_k_DataFrame, sizeof(__pyx_k_DataFrame), 0, 0, 1, 1}, + {&__pyx_n_s_Dot, __pyx_k_Dot, sizeof(__pyx_k_Dot), 0, 0, 1, 1}, + {&__pyx_kp_s_Dotted_Line, __pyx_k_Dotted_Line, sizeof(__pyx_k_Dotted_Line), 0, 0, 1, 0}, + {&__pyx_kp_s_Double_Exponential_Moving_Averag, __pyx_k_Double_Exponential_Moving_Averag, sizeof(__pyx_k_Double_Exponential_Moving_Averag), 0, 0, 1, 0}, + {&__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_kp_s_Exponential_Moving_Average, __pyx_k_Exponential_Moving_Average, sizeof(__pyx_k_Exponential_Moving_Average), 0, 0, 1, 0}, + {&__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_Function, __pyx_k_Function, sizeof(__pyx_k_Function), 0, 0, 1, 1}, + {&__pyx_kp_s_Function_Not_Found_TA_FUNC_NOT_F, __pyx_k_Function_Not_Found_TA_FUNC_NOT_F, sizeof(__pyx_k_Function_Not_Found_TA_FUNC_NOT_F), 0, 0, 1, 0}, + {&__pyx_n_s_Function___call, __pyx_k_Function___call, sizeof(__pyx_k_Function___call), 0, 0, 1, 1}, + {&__pyx_n_s_Function___call_function, __pyx_k_Function___call_function, sizeof(__pyx_k_Function___call_function), 0, 0, 1, 1}, + {&__pyx_n_s_Function___get_opt_input_value, __pyx_k_Function___get_opt_input_value, sizeof(__pyx_k_Function___get_opt_input_value), 0, 0, 1, 1}, + {&__pyx_n_s_Function___init, __pyx_k_Function___init, sizeof(__pyx_k_Function___init), 0, 0, 1, 1}, + {&__pyx_n_s_Function___initialize_function_i, __pyx_k_Function___initialize_function_i, sizeof(__pyx_k_Function___initialize_function_i), 0, 0, 1, 1}, + {&__pyx_n_s_Function___input_price_series_na, __pyx_k_Function___input_price_series_na, sizeof(__pyx_k_Function___input_price_series_na), 0, 0, 1, 1}, + {&__pyx_n_s_Function___repr, __pyx_k_Function___repr, sizeof(__pyx_k_Function___repr), 0, 0, 1, 1}, + {&__pyx_n_s_Function___str, __pyx_k_Function___str, sizeof(__pyx_k_Function___str), 0, 0, 1, 1}, + {&__pyx_n_s_Function___unicode, __pyx_k_Function___unicode, sizeof(__pyx_k_Function___unicode), 0, 0, 1, 1}, + {&__pyx_n_s_Function__call_function, __pyx_k_Function__call_function, sizeof(__pyx_k_Function__call_function), 0, 0, 1, 1}, + {&__pyx_n_s_Function__get_opt_input_value, __pyx_k_Function__get_opt_input_value, sizeof(__pyx_k_Function__get_opt_input_value), 0, 0, 1, 1}, + {&__pyx_n_s_Function__info, __pyx_k_Function__info, sizeof(__pyx_k_Function__info), 0, 0, 1, 1}, + {&__pyx_n_s_Function__initialize_function_i, __pyx_k_Function__initialize_function_i, sizeof(__pyx_k_Function__initialize_function_i), 0, 0, 1, 1}, + {&__pyx_n_s_Function__input_arrays, __pyx_k_Function__input_arrays, sizeof(__pyx_k_Function__input_arrays), 0, 0, 1, 1}, + {&__pyx_n_s_Function__input_names, __pyx_k_Function__input_names, sizeof(__pyx_k_Function__input_names), 0, 0, 1, 1}, + {&__pyx_n_s_Function__input_price_series_na, __pyx_k_Function__input_price_series_na, sizeof(__pyx_k_Function__input_price_series_na), 0, 0, 1, 1}, + {&__pyx_n_s_Function__name, __pyx_k_Function__name, sizeof(__pyx_k_Function__name), 0, 0, 1, 1}, + {&__pyx_n_s_Function__namestr, __pyx_k_Function__namestr, sizeof(__pyx_k_Function__namestr), 0, 0, 1, 1}, + {&__pyx_n_s_Function__opt_inputs, __pyx_k_Function__opt_inputs, sizeof(__pyx_k_Function__opt_inputs), 0, 0, 1, 1}, + {&__pyx_n_s_Function__outputs, __pyx_k_Function__outputs, sizeof(__pyx_k_Function__outputs), 0, 0, 1, 1}, + {&__pyx_n_s_Function__outputs_valid, __pyx_k_Function__outputs_valid, sizeof(__pyx_k_Function__outputs_valid), 0, 0, 1, 1}, + {&__pyx_n_s_Function_function_flags, __pyx_k_Function_function_flags, sizeof(__pyx_k_Function_function_flags), 0, 0, 1, 1}, + {&__pyx_n_s_Function_get_input_arrays, __pyx_k_Function_get_input_arrays, sizeof(__pyx_k_Function_get_input_arrays), 0, 0, 1, 1}, + {&__pyx_n_s_Function_get_input_names, __pyx_k_Function_get_input_names, sizeof(__pyx_k_Function_get_input_names), 0, 0, 1, 1}, + {&__pyx_n_s_Function_get_parameters, __pyx_k_Function_get_parameters, sizeof(__pyx_k_Function_get_parameters), 0, 0, 1, 1}, + {&__pyx_kp_s_Function_has_an_unstable_period, __pyx_k_Function_has_an_unstable_period, sizeof(__pyx_k_Function_has_an_unstable_period), 0, 0, 1, 0}, + {&__pyx_n_s_Function_info, __pyx_k_Function_info, sizeof(__pyx_k_Function_info), 0, 0, 1, 1}, + {&__pyx_n_s_Function_lookback, __pyx_k_Function_lookback, sizeof(__pyx_k_Function_lookback), 0, 0, 1, 1}, + {&__pyx_n_s_Function_output_flags, __pyx_k_Function_output_flags, sizeof(__pyx_k_Function_output_flags), 0, 0, 1, 1}, + {&__pyx_n_s_Function_output_names, __pyx_k_Function_output_names, sizeof(__pyx_k_Function_output_names), 0, 0, 1, 1}, + {&__pyx_n_s_Function_outputs, __pyx_k_Function_outputs, sizeof(__pyx_k_Function_outputs), 0, 0, 1, 1}, + {&__pyx_n_s_Function_run, __pyx_k_Function_run, sizeof(__pyx_k_Function_run), 0, 0, 1, 1}, + {&__pyx_n_s_Function_set_function_args, __pyx_k_Function_set_function_args, sizeof(__pyx_k_Function_set_function_args), 0, 0, 1, 1}, + {&__pyx_n_s_Function_set_input_arrays, __pyx_k_Function_set_input_arrays, sizeof(__pyx_k_Function_set_input_arrays), 0, 0, 1, 1}, + {&__pyx_n_s_Function_set_input_names, __pyx_k_Function_set_input_names, sizeof(__pyx_k_Function_set_input_names), 0, 0, 1, 1}, + {&__pyx_n_s_Function_set_parameters, __pyx_k_Function_set_parameters, sizeof(__pyx_k_Function_set_parameters), 0, 0, 1, 1}, + {&__pyx_kp_s_Group_Not_Found_TA_GROUP_NOT_FOU, __pyx_k_Group_Not_Found_TA_GROUP_NOT_FOU, sizeof(__pyx_k_Group_Not_Found_TA_GROUP_NOT_FOU), 0, 0, 1, 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_Histogram, __pyx_k_Histogram, sizeof(__pyx_k_Histogram), 0, 0, 1, 1}, + {&__pyx_n_s_INPUT_ARRAYS_DEFAULTS, __pyx_k_INPUT_ARRAYS_DEFAULTS, sizeof(__pyx_k_INPUT_ARRAYS_DEFAULTS), 0, 0, 1, 1}, + {&__pyx_n_s_INPUT_ARRAYS_TYPES, __pyx_k_INPUT_ARRAYS_TYPES, sizeof(__pyx_k_INPUT_ARRAYS_TYPES), 0, 0, 1, 1}, + {&__pyx_n_s_INPUT_PRICE_SERIES_DEFAULTS, __pyx_k_INPUT_PRICE_SERIES_DEFAULTS, sizeof(__pyx_k_INPUT_PRICE_SERIES_DEFAULTS), 0, 0, 1, 1}, + {&__pyx_n_s_ImportError, __pyx_k_ImportError, sizeof(__pyx_k_ImportError), 0, 0, 1, 1}, + {&__pyx_kp_s_Input_Not_All_Initialized_TA_INP, __pyx_k_Input_Not_All_Initialized_TA_INP, sizeof(__pyx_k_Input_Not_All_Initialized_TA_INP), 0, 0, 1, 0}, + {&__pyx_kp_s_Inputs, __pyx_k_Inputs, sizeof(__pyx_k_Inputs), 0, 0, 1, 0}, + {&__pyx_kp_s_Internal_Error_TA_INTERNAL_ERROR, __pyx_k_Internal_Error_TA_INTERNAL_ERROR, sizeof(__pyx_k_Internal_Error_TA_INTERNAL_ERROR), 0, 0, 1, 0}, + {&__pyx_kp_s_Invalid_Handle_TA_INVALID_HANDLE, __pyx_k_Invalid_Handle_TA_INVALID_HANDLE, sizeof(__pyx_k_Invalid_Handle_TA_INVALID_HANDLE), 0, 0, 1, 0}, + {&__pyx_kp_s_Invalid_List_Type_TA_INVALID_LIS, __pyx_k_Invalid_List_Type_TA_INVALID_LIS, sizeof(__pyx_k_Invalid_List_Type_TA_INVALID_LIS), 0, 0, 1, 0}, + {&__pyx_kp_s_Invalid_Parameter_Function_TA_IN, __pyx_k_Invalid_Parameter_Function_TA_IN, sizeof(__pyx_k_Invalid_Parameter_Function_TA_IN), 0, 0, 1, 0}, + {&__pyx_kp_s_Invalid_Parameter_Holder_TA_INVA, __pyx_k_Invalid_Parameter_Holder_TA_INVA, sizeof(__pyx_k_Invalid_Parameter_Holder_TA_INVA), 0, 0, 1, 0}, + {&__pyx_kp_s_Invalid_Parameter_Holder_Type_TA, __pyx_k_Invalid_Parameter_Holder_Type_TA, sizeof(__pyx_k_Invalid_Parameter_Holder_Type_TA), 0, 0, 1, 0}, + {&__pyx_n_s_KAMA, __pyx_k_KAMA, sizeof(__pyx_k_KAMA), 0, 0, 1, 1}, + {&__pyx_kp_s_Kaufman_Adaptive_Moving_Average, __pyx_k_Kaufman_Adaptive_Moving_Average, sizeof(__pyx_k_Kaufman_Adaptive_Moving_Average), 0, 0, 1, 0}, + {&__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_kp_s_Library_Not_Initialized_TA_LIB_N, __pyx_k_Library_Not_Initialized_TA_LIB_N, sizeof(__pyx_k_Library_Not_Initialized_TA_LIB_N), 0, 0, 1, 0}, + {&__pyx_n_s_Line, __pyx_k_Line, sizeof(__pyx_k_Line), 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_MA_Type, __pyx_k_MA_Type, sizeof(__pyx_k_MA_Type), 0, 0, 1, 1}, + {&__pyx_n_s_MA_Type___getitem, __pyx_k_MA_Type___getitem, sizeof(__pyx_k_MA_Type___getitem), 0, 0, 1, 1}, + {&__pyx_n_s_MA_Type___init, __pyx_k_MA_Type___init, sizeof(__pyx_k_MA_Type___init), 0, 0, 1, 1}, + {&__pyx_n_s_MEDPRICE, __pyx_k_MEDPRICE, sizeof(__pyx_k_MEDPRICE), 0, 0, 1, 1}, + {&__pyx_kp_s_MESA_Adaptive_Moving_Average, __pyx_k_MESA_Adaptive_Moving_Average, sizeof(__pyx_k_MESA_Adaptive_Moving_Average), 0, 0, 1, 0}, + {&__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_n_s_NONE, __pyx_k_NONE, sizeof(__pyx_k_NONE), 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_kp_s_Not_Supported_TA_NOT_SUPPORTED, __pyx_k_Not_Supported_TA_NOT_SUPPORTED, sizeof(__pyx_k_Not_Supported_TA_NOT_SUPPORTED), 0, 0, 1, 0}, + {&__pyx_n_s_OBV, __pyx_k_OBV, sizeof(__pyx_k_OBV), 0, 0, 1, 1}, + {&__pyx_n_s_OrderedDict, __pyx_k_OrderedDict, sizeof(__pyx_k_OrderedDict), 0, 0, 1, 1}, + {&__pyx_kp_s_Out_of_Range_End_Index_TA_OUT_OF, __pyx_k_Out_of_Range_End_Index_TA_OUT_OF, sizeof(__pyx_k_Out_of_Range_End_Index_TA_OUT_OF), 0, 0, 1, 0}, + {&__pyx_kp_s_Out_of_Range_Start_Index_TA_OUT, __pyx_k_Out_of_Range_Start_Index_TA_OUT, sizeof(__pyx_k_Out_of_Range_Start_Index_TA_OUT), 0, 0, 1, 0}, + {&__pyx_kp_s_Output_Not_All_Initialized_TA_OU, __pyx_k_Output_Not_All_Initialized_TA_OU, sizeof(__pyx_k_Output_Not_All_Initialized_TA_OU), 0, 0, 1, 0}, + {&__pyx_kp_s_Output_can_be_negative, __pyx_k_Output_can_be_negative, sizeof(__pyx_k_Output_can_be_negative), 0, 0, 1, 0}, + {&__pyx_kp_s_Output_can_be_positive, __pyx_k_Output_can_be_positive, sizeof(__pyx_k_Output_can_be_positive), 0, 0, 1, 0}, + {&__pyx_kp_s_Output_can_be_zero, __pyx_k_Output_can_be_zero, sizeof(__pyx_k_Output_can_be_zero), 0, 0, 1, 0}, + {&__pyx_kp_s_Output_is_a_candlestick, __pyx_k_Output_is_a_candlestick, sizeof(__pyx_k_Output_is_a_candlestick), 0, 0, 1, 0}, + {&__pyx_kp_s_Output_is_over_volume, __pyx_k_Output_is_over_volume, sizeof(__pyx_k_Output_is_over_volume), 0, 0, 1, 0}, + {&__pyx_kp_s_Output_scale_same_as_input, __pyx_k_Output_scale_same_as_input, sizeof(__pyx_k_Output_scale_same_as_input), 0, 0, 1, 0}, + {&__pyx_kp_s_Outputs, __pyx_k_Outputs, sizeof(__pyx_k_Outputs), 0, 0, 1, 0}, + {&__pyx_n_s_PANDAS_DATAFRAME, __pyx_k_PANDAS_DATAFRAME, sizeof(__pyx_k_PANDAS_DATAFRAME), 0, 0, 1, 1}, + {&__pyx_n_s_PANDAS_SERIES, __pyx_k_PANDAS_SERIES, sizeof(__pyx_k_PANDAS_SERIES), 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_kp_s_Parameters, __pyx_k_Parameters, sizeof(__pyx_k_Parameters), 0, 0, 1, 0}, + {&__pyx_kp_s_Pattern_Bool, __pyx_k_Pattern_Bool, sizeof(__pyx_k_Pattern_Bool), 0, 0, 1, 0}, + {&__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_Series, __pyx_k_Series, sizeof(__pyx_k_Series), 0, 0, 1, 1}, + {&__pyx_kp_s_Simple_Moving_Average, __pyx_k_Simple_Moving_Average, sizeof(__pyx_k_Simple_Moving_Average), 0, 0, 1, 0}, + {&__pyx_kp_s_Strength_Pattern_200_100_Bearish, __pyx_k_Strength_Pattern_200_100_Bearish, sizeof(__pyx_k_Strength_Pattern_200_100_Bearish), 0, 0, 1, 0}, + {&__pyx_n_s_Success, __pyx_k_Success, sizeof(__pyx_k_Success), 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_FUNCTION_NAMES, __pyx_k_TA_FUNCTION_NAMES, sizeof(__pyx_k_TA_FUNCTION_NAMES), 0, 0, 1, 1}, + {&__pyx_n_s_TA_FUNC_FLAGS, __pyx_k_TA_FUNC_FLAGS, sizeof(__pyx_k_TA_FUNC_FLAGS), 0, 0, 1, 1}, + {&__pyx_n_s_TA_FuncTableAlloc, __pyx_k_TA_FuncTableAlloc, sizeof(__pyx_k_TA_FuncTableAlloc), 0, 0, 1, 1}, + {&__pyx_n_s_TA_FuncTableFree, __pyx_k_TA_FuncTableFree, sizeof(__pyx_k_TA_FuncTableFree), 0, 0, 1, 1}, + {&__pyx_n_s_TA_GetFuncHandle, __pyx_k_TA_GetFuncHandle, sizeof(__pyx_k_TA_GetFuncHandle), 0, 0, 1, 1}, + {&__pyx_n_s_TA_GetFuncInfo, __pyx_k_TA_GetFuncInfo, sizeof(__pyx_k_TA_GetFuncInfo), 0, 0, 1, 1}, + {&__pyx_n_s_TA_GetInputParameterInfo, __pyx_k_TA_GetInputParameterInfo, sizeof(__pyx_k_TA_GetInputParameterInfo), 0, 0, 1, 1}, + {&__pyx_n_s_TA_GetLookback, __pyx_k_TA_GetLookback, sizeof(__pyx_k_TA_GetLookback), 0, 0, 1, 1}, + {&__pyx_n_s_TA_GetOptInputParameterInfo, __pyx_k_TA_GetOptInputParameterInfo, sizeof(__pyx_k_TA_GetOptInputParameterInfo), 0, 0, 1, 1}, + {&__pyx_n_s_TA_GetOutputParameterInfo, __pyx_k_TA_GetOutputParameterInfo, sizeof(__pyx_k_TA_GetOutputParameterInfo), 0, 0, 1, 1}, + {&__pyx_n_s_TA_GroupTableAlloc, __pyx_k_TA_GroupTableAlloc, sizeof(__pyx_k_TA_GroupTableAlloc), 0, 0, 1, 1}, + {&__pyx_n_s_TA_GroupTableFree, __pyx_k_TA_GroupTableFree, sizeof(__pyx_k_TA_GroupTableFree), 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_INPUT_FLAGS, __pyx_k_TA_INPUT_FLAGS, sizeof(__pyx_k_TA_INPUT_FLAGS), 0, 0, 1, 1}, + {&__pyx_n_s_TA_Initialize, __pyx_k_TA_Initialize, sizeof(__pyx_k_TA_Initialize), 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_OUTPUT_FLAGS, __pyx_k_TA_OUTPUT_FLAGS, sizeof(__pyx_k_TA_OUTPUT_FLAGS), 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_ParamHolderAlloc, __pyx_k_TA_ParamHolderAlloc, sizeof(__pyx_k_TA_ParamHolderAlloc), 0, 0, 1, 1}, + {&__pyx_n_s_TA_ParamHolderFree, __pyx_k_TA_ParamHolderFree, sizeof(__pyx_k_TA_ParamHolderFree), 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_SetOptInputParamInteger, __pyx_k_TA_SetOptInputParamInteger, sizeof(__pyx_k_TA_SetOptInputParamInteger), 0, 0, 1, 1}, + {&__pyx_n_s_TA_SetOptInputParamReal, __pyx_k_TA_SetOptInputParamReal, sizeof(__pyx_k_TA_SetOptInputParamReal), 0, 0, 1, 1}, + {&__pyx_n_s_TA_SetUnstablePeriod, __pyx_k_TA_SetUnstablePeriod, sizeof(__pyx_k_TA_SetUnstablePeriod), 0, 0, 1, 1}, + {&__pyx_n_s_TA_Shutdown, __pyx_k_TA_Shutdown, sizeof(__pyx_k_TA_Shutdown), 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_kp_s_This_is_a_pythonic_wrapper_arou, __pyx_k_This_is_a_pythonic_wrapper_arou, sizeof(__pyx_k_This_is_a_pythonic_wrapper_arou), 0, 0, 1, 0}, + {&__pyx_kp_s_Triangular_Moving_Average, __pyx_k_Triangular_Moving_Average, sizeof(__pyx_k_Triangular_Moving_Average), 0, 0, 1, 0}, + {&__pyx_kp_s_Triple_Exponential_Moving_Averag, __pyx_k_Triple_Exponential_Moving_Averag, sizeof(__pyx_k_Triple_Exponential_Moving_Averag), 0, 0, 1, 0}, + {&__pyx_kp_s_Triple_Generalized_Double_Expone, __pyx_k_Triple_Generalized_Double_Expone, sizeof(__pyx_k_Triple_Generalized_Double_Expone), 0, 0, 1, 0}, + {&__pyx_n_s_ULTOSC, __pyx_k_ULTOSC, sizeof(__pyx_k_ULTOSC), 0, 0, 1, 1}, + {&__pyx_kp_s_Unknown_Error_TA_UNKNOWN_ERR, __pyx_k_Unknown_Error_TA_UNKNOWN_ERR, sizeof(__pyx_k_Unknown_Error_TA_UNKNOWN_ERR), 0, 0, 1, 0}, + {&__pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l, __pyx_k_Users_kelvin_GitHub_mrjbq7_ta_l, sizeof(__pyx_k_Users_kelvin_GitHub_mrjbq7_ta_l), 0, 0, 1, 0}, + {&__pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_k_Users_kelvin_GitHub_mrjbq7_ta_l_2, sizeof(__pyx_k_Users_kelvin_GitHub_mrjbq7_ta_l_2), 0, 0, 1, 0}, + {&__pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_3, __pyx_k_Users_kelvin_GitHub_mrjbq7_ta_l_3, sizeof(__pyx_k_Users_kelvin_GitHub_mrjbq7_ta_l_3), 0, 0, 1, 0}, + {&__pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_k_Users_kelvin_GitHub_mrjbq7_ta_l_4, sizeof(__pyx_k_Users_kelvin_GitHub_mrjbq7_ta_l_4), 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_kp_s_Values_represent_a_lower_limit, __pyx_k_Values_represent_a_lower_limit, sizeof(__pyx_k_Values_represent_a_lower_limit), 0, 0, 1, 0}, + {&__pyx_kp_s_Values_represent_an_upper_limit, __pyx_k_Values_represent_an_upper_limit, sizeof(__pyx_k_Values_represent_an_upper_limit), 0, 0, 1, 0}, + {&__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_kp_s_Weighted_Moving_Average, __pyx_k_Weighted_Moving_Average, sizeof(__pyx_k_Weighted_Moving_Average), 0, 0, 1, 0}, + {&__pyx_kp_s__1211, __pyx_k__1211, sizeof(__pyx_k__1211), 0, 0, 1, 0}, + {&__pyx_kp_s__1212, __pyx_k__1212, sizeof(__pyx_k__1212), 0, 0, 1, 0}, + {&__pyx_kp_s__1214, __pyx_k__1214, sizeof(__pyx_k__1214), 0, 0, 1, 0}, + {&__pyx_kp_s__1215, __pyx_k__1215, sizeof(__pyx_k__1215), 0, 0, 1, 0}, + {&__pyx_kp_s__1216, __pyx_k__1216, sizeof(__pyx_k__1216), 0, 0, 1, 0}, + {&__pyx_kp_s__1217, __pyx_k__1217, sizeof(__pyx_k__1217), 0, 0, 1, 0}, + {&__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_kp_s_any_ndarray, __pyx_k_any_ndarray, sizeof(__pyx_k_any_ndarray), 0, 0, 1, 0}, + {&__pyx_n_s_args, __pyx_k_args, sizeof(__pyx_k_args), 0, 0, 1, 1}, + {&__pyx_n_s_ascii, __pyx_k_ascii, sizeof(__pyx_k_ascii), 0, 0, 1, 1}, + {&__pyx_n_s_b, __pyx_k_b, sizeof(__pyx_k_b), 0, 0, 1, 1}, + {&__pyx_n_s_begidx, __pyx_k_begidx, sizeof(__pyx_k_begidx), 0, 0, 1, 1}, + {&__pyx_n_s_bytes2str, __pyx_k_bytes2str, sizeof(__pyx_k_bytes2str), 0, 0, 1, 1}, + {&__pyx_n_s_call, __pyx_k_call, sizeof(__pyx_k_call), 0, 0, 1, 1}, + {&__pyx_n_s_call_function, __pyx_k_call_function, sizeof(__pyx_k_call_function), 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_collections, __pyx_k_collections, sizeof(__pyx_k_collections), 0, 0, 1, 1}, + {&__pyx_n_s_column_stack, __pyx_k_column_stack, sizeof(__pyx_k_column_stack), 0, 0, 1, 1}, + {&__pyx_n_s_columns, __pyx_k_columns, sizeof(__pyx_k_columns), 0, 0, 1, 1}, + {&__pyx_n_s_copy, __pyx_k_copy, sizeof(__pyx_k_copy), 0, 0, 1, 1}, + {&__pyx_n_s_decode, __pyx_k_decode, sizeof(__pyx_k_decode), 0, 0, 1, 1}, + {&__pyx_n_s_default_value, __pyx_k_default_value, sizeof(__pyx_k_default_value), 0, 0, 1, 1}, + {&__pyx_n_s_defaults, __pyx_k_defaults, sizeof(__pyx_k_defaults), 0, 0, 1, 1}, + {&__pyx_n_s_display_name, __pyx_k_display_name, sizeof(__pyx_k_display_name), 0, 0, 1, 1}, + {&__pyx_kp_s_display_name_s_group_s, __pyx_k_display_name_s_group_s, sizeof(__pyx_k_display_name_s_group_s), 0, 0, 1, 0}, + {&__pyx_n_s_doc, __pyx_k_doc, sizeof(__pyx_k_doc), 0, 0, 1, 1}, + {&__pyx_n_s_docs, __pyx_k_docs, sizeof(__pyx_k_docs), 0, 0, 1, 1}, + {&__pyx_n_s_documentation, __pyx_k_documentation, sizeof(__pyx_k_documentation), 0, 0, 1, 1}, + {&__pyx_n_s_endidx, __pyx_k_endidx, sizeof(__pyx_k_endidx), 0, 0, 1, 1}, + {&__pyx_n_s_enumerate, __pyx_k_enumerate, sizeof(__pyx_k_enumerate), 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_flag, __pyx_k_flag, sizeof(__pyx_k_flag), 0, 0, 1, 1}, + {&__pyx_n_s_flags, __pyx_k_flags, sizeof(__pyx_k_flags), 0, 0, 1, 1}, + {&__pyx_n_s_flags_lookup_dict, __pyx_k_flags_lookup_dict, sizeof(__pyx_k_flags_lookup_dict), 0, 0, 1, 1}, + {&__pyx_n_s_func_args, __pyx_k_func_args, sizeof(__pyx_k_func_args), 0, 0, 1, 1}, + {&__pyx_n_s_func_info, __pyx_k_func_info, sizeof(__pyx_k_func_info), 0, 0, 1, 1}, + {&__pyx_n_s_func_line, __pyx_k_func_line, sizeof(__pyx_k_func_line), 0, 0, 1, 1}, + {&__pyx_n_s_func_object, __pyx_k_func_object, sizeof(__pyx_k_func_object), 0, 0, 1, 1}, + {&__pyx_n_s_function_flags, __pyx_k_function_flags, sizeof(__pyx_k_function_flags), 0, 0, 1, 1}, + {&__pyx_n_s_function_name, __pyx_k_function_name, sizeof(__pyx_k_function_name), 0, 0, 1, 1}, + {&__pyx_n_s_functions, __pyx_k_functions, sizeof(__pyx_k_functions), 0, 0, 1, 1}, + {&__pyx_n_s_get_defaults_and_docs, __pyx_k_get_defaults_and_docs, sizeof(__pyx_k_get_defaults_and_docs), 0, 0, 1, 1}, + {&__pyx_n_s_get_flags, __pyx_k_get_flags, sizeof(__pyx_k_get_flags), 0, 0, 1, 1}, + {&__pyx_n_s_get_input_arrays, __pyx_k_get_input_arrays, sizeof(__pyx_k_get_input_arrays), 0, 0, 1, 1}, + {&__pyx_n_s_get_input_names, __pyx_k_get_input_names, sizeof(__pyx_k_get_input_names), 0, 0, 1, 1}, + {&__pyx_n_s_get_opt_input_value, __pyx_k_get_opt_input_value, sizeof(__pyx_k_get_opt_input_value), 0, 0, 1, 1}, + {&__pyx_n_s_get_parameters, __pyx_k_get_parameters, sizeof(__pyx_k_get_parameters), 0, 0, 1, 1}, + {&__pyx_n_s_getitem, __pyx_k_getitem, sizeof(__pyx_k_getitem), 0, 0, 1, 1}, + {&__pyx_n_s_group, __pyx_k_group, sizeof(__pyx_k_group), 0, 0, 1, 1}, + {&__pyx_n_s_groups, __pyx_k_groups, sizeof(__pyx_k_groups), 0, 0, 1, 1}, + {&__pyx_n_s_help, __pyx_k_help, sizeof(__pyx_k_help), 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_holder, __pyx_k_holder, sizeof(__pyx_k_holder), 0, 0, 1, 1}, + {&__pyx_n_s_i, __pyx_k_i, sizeof(__pyx_k_i), 0, 0, 1, 1}, + {&__pyx_n_s_id, __pyx_k_id, sizeof(__pyx_k_id), 0, 0, 1, 1}, + {&__pyx_n_s_idx, __pyx_k_idx, sizeof(__pyx_k_idx), 0, 0, 1, 1}, + {&__pyx_n_s_import, __pyx_k_import, sizeof(__pyx_k_import), 0, 0, 1, 1}, + {&__pyx_n_s_in, __pyx_k_in, sizeof(__pyx_k_in), 0, 0, 1, 1}, + {&__pyx_n_s_index, __pyx_k_index, sizeof(__pyx_k_index), 0, 0, 1, 1}, + {&__pyx_n_s_info, __pyx_k_info, sizeof(__pyx_k_info), 0, 0, 1, 1}, + {&__pyx_n_s_init, __pyx_k_init, sizeof(__pyx_k_init), 0, 0, 1, 1}, + {&__pyx_n_s_initialize_function_info, __pyx_k_initialize_function_info, sizeof(__pyx_k_initialize_function_info), 0, 0, 1, 1}, + {&__pyx_n_s_input_arrays, __pyx_k_input_arrays, sizeof(__pyx_k_input_arrays), 0, 0, 1, 1}, + {&__pyx_kp_s_input_arrays_2, __pyx_k_input_arrays_2, sizeof(__pyx_k_input_arrays_2), 0, 0, 1, 0}, + {&__pyx_kp_s_input_arrays_parameter_missing_r, __pyx_k_input_arrays_parameter_missing_r, sizeof(__pyx_k_input_arrays_parameter_missing_r), 0, 0, 1, 0}, + {&__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_input_name, __pyx_k_input_name, sizeof(__pyx_k_input_name), 0, 0, 1, 1}, + {&__pyx_n_s_input_names, __pyx_k_input_names, sizeof(__pyx_k_input_names), 0, 0, 1, 1}, + {&__pyx_n_s_input_price_series_names, __pyx_k_input_price_series_names, sizeof(__pyx_k_input_price_series_names), 0, 0, 1, 1}, + {&__pyx_n_s_input_price_series_names_2, __pyx_k_input_price_series_names_2, sizeof(__pyx_k_input_price_series_names_2), 0, 0, 1, 1}, + {&__pyx_kp_s_inputs_are_all_NaN, __pyx_k_inputs_are_all_NaN, sizeof(__pyx_k_inputs_are_all_NaN), 0, 0, 1, 0}, + {&__pyx_n_s_integer, __pyx_k_integer, sizeof(__pyx_k_integer), 0, 0, 1, 1}, + {&__pyx_kp_s_integer_values_are_100_0_or_100, __pyx_k_integer_values_are_100_0_or_100, sizeof(__pyx_k_integer_values_are_100_0_or_100), 0, 0, 1, 0}, + {&__pyx_n_s_items, __pyx_k_items, sizeof(__pyx_k_items), 0, 0, 1, 1}, + {&__pyx_n_s_join, __pyx_k_join, sizeof(__pyx_k_join), 0, 0, 1, 1}, + {&__pyx_n_s_key, __pyx_k_key, sizeof(__pyx_k_key), 0, 0, 1, 1}, + {&__pyx_n_s_keys, __pyx_k_keys, sizeof(__pyx_k_keys), 0, 0, 1, 1}, + {&__pyx_n_s_kwargs, __pyx_k_kwargs, sizeof(__pyx_k_kwargs), 0, 0, 1, 1}, + {&__pyx_n_s_length, __pyx_k_length, sizeof(__pyx_k_length), 0, 0, 1, 1}, + {&__pyx_n_s_log, __pyx_k_log, sizeof(__pyx_k_log), 0, 0, 1, 1}, + {&__pyx_n_s_lookback, __pyx_k_lookback, sizeof(__pyx_k_lookback), 0, 0, 1, 1}, + {&__pyx_n_s_lookup, __pyx_k_lookup, sizeof(__pyx_k_lookup), 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_lower, __pyx_k_lower, sizeof(__pyx_k_lower), 0, 0, 1, 1}, + {&__pyx_n_s_main, __pyx_k_main, sizeof(__pyx_k_main), 0, 0, 1, 1}, + {&__pyx_n_s_math, __pyx_k_math, sizeof(__pyx_k_math), 0, 0, 1, 1}, + {&__pyx_n_s_matype, __pyx_k_matype, sizeof(__pyx_k_matype), 0, 0, 1, 1}, + {&__pyx_n_s_max, __pyx_k_max, sizeof(__pyx_k_max), 0, 0, 1, 1}, + {&__pyx_n_s_max_int, __pyx_k_max_int, sizeof(__pyx_k_max_int), 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_metaclass, __pyx_k_metaclass, sizeof(__pyx_k_metaclass), 0, 0, 1, 1}, + {&__pyx_n_s_min, __pyx_k_min, sizeof(__pyx_k_min), 0, 0, 1, 1}, + {&__pyx_n_s_min_int, __pyx_k_min_int, sizeof(__pyx_k_min_int), 0, 0, 1, 1}, + {&__pyx_n_s_minperiod, __pyx_k_minperiod, sizeof(__pyx_k_minperiod), 0, 0, 1, 1}, + {&__pyx_n_s_missing_keys, __pyx_k_missing_keys, sizeof(__pyx_k_missing_keys), 0, 0, 1, 1}, + {&__pyx_n_s_module, __pyx_k_module, sizeof(__pyx_k_module), 0, 0, 1, 1}, + {&__pyx_n_s_name, __pyx_k_name, sizeof(__pyx_k_name), 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_num_inputs, __pyx_k_num_inputs, sizeof(__pyx_k_num_inputs), 0, 0, 1, 1}, + {&__pyx_n_s_num_opt_inputs, __pyx_k_num_opt_inputs, sizeof(__pyx_k_num_opt_inputs), 0, 0, 1, 1}, + {&__pyx_n_s_num_outputs, __pyx_k_num_outputs, sizeof(__pyx_k_num_outputs), 0, 0, 1, 1}, + {&__pyx_n_s_numpy, __pyx_k_numpy, sizeof(__pyx_k_numpy), 0, 0, 1, 1}, + {&__pyx_n_s_object, __pyx_k_object, sizeof(__pyx_k_object), 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_openInterest, __pyx_k_openInterest, sizeof(__pyx_k_openInterest), 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_optIn, __pyx_k_optIn, sizeof(__pyx_k_optIn), 0, 0, 1, 1}, + {&__pyx_n_s_opt_input, __pyx_k_opt_input, sizeof(__pyx_k_opt_input), 0, 0, 1, 1}, + {&__pyx_n_s_ordereddict, __pyx_k_ordereddict, sizeof(__pyx_k_ordereddict), 0, 0, 1, 1}, + {&__pyx_n_s_out, __pyx_k_out, sizeof(__pyx_k_out), 0, 0, 1, 1}, + {&__pyx_n_s_outaroondown, __pyx_k_outaroondown, sizeof(__pyx_k_outaroondown), 0, 0, 1, 1}, + {&__pyx_n_s_outaroondown_data, __pyx_k_outaroondown_data, sizeof(__pyx_k_outaroondown_data), 0, 0, 1, 1}, + {&__pyx_n_s_outaroonup, __pyx_k_outaroonup, sizeof(__pyx_k_outaroonup), 0, 0, 1, 1}, + {&__pyx_n_s_outaroonup_data, __pyx_k_outaroonup_data, sizeof(__pyx_k_outaroonup_data), 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_outfama_data, __pyx_k_outfama_data, sizeof(__pyx_k_outfama_data), 0, 0, 1, 1}, + {&__pyx_n_s_outfastd, __pyx_k_outfastd, sizeof(__pyx_k_outfastd), 0, 0, 1, 1}, + {&__pyx_n_s_outfastd_data, __pyx_k_outfastd_data, sizeof(__pyx_k_outfastd_data), 0, 0, 1, 1}, + {&__pyx_n_s_outfastk, __pyx_k_outfastk, sizeof(__pyx_k_outfastk), 0, 0, 1, 1}, + {&__pyx_n_s_outfastk_data, __pyx_k_outfastk_data, sizeof(__pyx_k_outfastk_data), 0, 0, 1, 1}, + {&__pyx_n_s_outinphase, __pyx_k_outinphase, sizeof(__pyx_k_outinphase), 0, 0, 1, 1}, + {&__pyx_n_s_outinphase_data, __pyx_k_outinphase_data, sizeof(__pyx_k_outinphase_data), 0, 0, 1, 1}, + {&__pyx_n_s_outinteger, __pyx_k_outinteger, sizeof(__pyx_k_outinteger), 0, 0, 1, 1}, + {&__pyx_n_s_outinteger_data, __pyx_k_outinteger_data, sizeof(__pyx_k_outinteger_data), 0, 0, 1, 1}, + {&__pyx_n_s_outleadsine, __pyx_k_outleadsine, sizeof(__pyx_k_outleadsine), 0, 0, 1, 1}, + {&__pyx_n_s_outleadsine_data, __pyx_k_outleadsine_data, sizeof(__pyx_k_outleadsine_data), 0, 0, 1, 1}, + {&__pyx_n_s_outmacd, __pyx_k_outmacd, sizeof(__pyx_k_outmacd), 0, 0, 1, 1}, + {&__pyx_n_s_outmacd_data, __pyx_k_outmacd_data, sizeof(__pyx_k_outmacd_data), 0, 0, 1, 1}, + {&__pyx_n_s_outmacdhist, __pyx_k_outmacdhist, sizeof(__pyx_k_outmacdhist), 0, 0, 1, 1}, + {&__pyx_n_s_outmacdhist_data, __pyx_k_outmacdhist_data, sizeof(__pyx_k_outmacdhist_data), 0, 0, 1, 1}, + {&__pyx_n_s_outmacdsignal, __pyx_k_outmacdsignal, sizeof(__pyx_k_outmacdsignal), 0, 0, 1, 1}, + {&__pyx_n_s_outmacdsignal_data, __pyx_k_outmacdsignal_data, sizeof(__pyx_k_outmacdsignal_data), 0, 0, 1, 1}, + {&__pyx_n_s_outmama, __pyx_k_outmama, sizeof(__pyx_k_outmama), 0, 0, 1, 1}, + {&__pyx_n_s_outmama_data, __pyx_k_outmama_data, sizeof(__pyx_k_outmama_data), 0, 0, 1, 1}, + {&__pyx_n_s_outmax, __pyx_k_outmax, sizeof(__pyx_k_outmax), 0, 0, 1, 1}, + {&__pyx_n_s_outmax_data, __pyx_k_outmax_data, sizeof(__pyx_k_outmax_data), 0, 0, 1, 1}, + {&__pyx_n_s_outmaxidx, __pyx_k_outmaxidx, sizeof(__pyx_k_outmaxidx), 0, 0, 1, 1}, + {&__pyx_n_s_outmaxidx_data, __pyx_k_outmaxidx_data, sizeof(__pyx_k_outmaxidx_data), 0, 0, 1, 1}, + {&__pyx_n_s_outmin, __pyx_k_outmin, sizeof(__pyx_k_outmin), 0, 0, 1, 1}, + {&__pyx_n_s_outmin_data, __pyx_k_outmin_data, sizeof(__pyx_k_outmin_data), 0, 0, 1, 1}, + {&__pyx_n_s_outminidx, __pyx_k_outminidx, sizeof(__pyx_k_outminidx), 0, 0, 1, 1}, + {&__pyx_n_s_outminidx_data, __pyx_k_outminidx_data, sizeof(__pyx_k_outminidx_data), 0, 0, 1, 1}, + {&__pyx_n_s_outnbelement, __pyx_k_outnbelement, sizeof(__pyx_k_outnbelement), 0, 0, 1, 1}, + {&__pyx_n_s_output, __pyx_k_output, sizeof(__pyx_k_output), 0, 0, 1, 1}, + {&__pyx_n_s_output_flags, __pyx_k_output_flags, sizeof(__pyx_k_output_flags), 0, 0, 1, 1}, + {&__pyx_n_s_output_name, __pyx_k_output_name, sizeof(__pyx_k_output_name), 0, 0, 1, 1}, + {&__pyx_n_s_output_names, __pyx_k_output_names, sizeof(__pyx_k_output_names), 0, 0, 1, 1}, + {&__pyx_n_s_outputs, __pyx_k_outputs, sizeof(__pyx_k_outputs), 0, 0, 1, 1}, + {&__pyx_n_s_outquadrature, __pyx_k_outquadrature, sizeof(__pyx_k_outquadrature), 0, 0, 1, 1}, + {&__pyx_n_s_outquadrature_data, __pyx_k_outquadrature_data, sizeof(__pyx_k_outquadrature_data), 0, 0, 1, 1}, + {&__pyx_n_s_outreal, __pyx_k_outreal, sizeof(__pyx_k_outreal), 0, 0, 1, 1}, + {&__pyx_n_s_outreal_data, __pyx_k_outreal_data, sizeof(__pyx_k_outreal_data), 0, 0, 1, 1}, + {&__pyx_n_s_outreallowerband, __pyx_k_outreallowerband, sizeof(__pyx_k_outreallowerband), 0, 0, 1, 1}, + {&__pyx_n_s_outreallowerband_data, __pyx_k_outreallowerband_data, sizeof(__pyx_k_outreallowerband_data), 0, 0, 1, 1}, + {&__pyx_n_s_outrealmiddleband, __pyx_k_outrealmiddleband, sizeof(__pyx_k_outrealmiddleband), 0, 0, 1, 1}, + {&__pyx_n_s_outrealmiddleband_data, __pyx_k_outrealmiddleband_data, sizeof(__pyx_k_outrealmiddleband_data), 0, 0, 1, 1}, + {&__pyx_n_s_outrealupperband, __pyx_k_outrealupperband, sizeof(__pyx_k_outrealupperband), 0, 0, 1, 1}, + {&__pyx_n_s_outrealupperband_data, __pyx_k_outrealupperband_data, sizeof(__pyx_k_outrealupperband_data), 0, 0, 1, 1}, + {&__pyx_n_s_outsine, __pyx_k_outsine, sizeof(__pyx_k_outsine), 0, 0, 1, 1}, + {&__pyx_n_s_outsine_data, __pyx_k_outsine_data, sizeof(__pyx_k_outsine_data), 0, 0, 1, 1}, + {&__pyx_n_s_outslowd, __pyx_k_outslowd, sizeof(__pyx_k_outslowd), 0, 0, 1, 1}, + {&__pyx_n_s_outslowd_data, __pyx_k_outslowd_data, sizeof(__pyx_k_outslowd_data), 0, 0, 1, 1}, + {&__pyx_n_s_outslowk, __pyx_k_outslowk, sizeof(__pyx_k_outslowk), 0, 0, 1, 1}, + {&__pyx_n_s_outslowk_data, __pyx_k_outslowk_data, sizeof(__pyx_k_outslowk_data), 0, 0, 1, 1}, + {&__pyx_n_s_pandas, __pyx_k_pandas, sizeof(__pyx_k_pandas), 0, 0, 1, 1}, + {&__pyx_n_s_param, __pyx_k_param, sizeof(__pyx_k_param), 0, 0, 1, 1}, + {&__pyx_n_s_param_name, __pyx_k_param_name, sizeof(__pyx_k_param_name), 0, 0, 1, 1}, + {&__pyx_n_s_parameters, __pyx_k_parameters, sizeof(__pyx_k_parameters), 0, 0, 1, 1}, + {&__pyx_n_s_params, __pyx_k_params, sizeof(__pyx_k_params), 0, 0, 1, 1}, + {&__pyx_n_s_penetration, __pyx_k_penetration, sizeof(__pyx_k_penetration), 0, 0, 1, 1}, + {&__pyx_n_s_period, __pyx_k_period, sizeof(__pyx_k_period), 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_pop, __pyx_k_pop, sizeof(__pyx_k_pop), 0, 0, 1, 1}, + {&__pyx_n_s_prepare, __pyx_k_prepare, sizeof(__pyx_k_prepare), 0, 0, 1, 1}, + {&__pyx_n_s_price, __pyx_k_price, sizeof(__pyx_k_price), 0, 0, 1, 1}, + {&__pyx_n_s_price0, __pyx_k_price0, sizeof(__pyx_k_price0), 0, 0, 1, 1}, + {&__pyx_n_s_price1, __pyx_k_price1, sizeof(__pyx_k_price1), 0, 0, 1, 1}, + {&__pyx_n_s_price_series, __pyx_k_price_series, sizeof(__pyx_k_price_series), 0, 0, 1, 1}, + {&__pyx_n_s_prices, __pyx_k_prices, sizeof(__pyx_k_prices), 0, 0, 1, 1}, + {&__pyx_n_s_property, __pyx_k_property, sizeof(__pyx_k_property), 0, 0, 1, 1}, + {&__pyx_n_s_qualname, __pyx_k_qualname, sizeof(__pyx_k_qualname), 0, 0, 1, 1}, + {&__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_replace, __pyx_k_replace, sizeof(__pyx_k_replace), 0, 0, 1, 1}, + {&__pyx_n_s_repr, __pyx_k_repr, sizeof(__pyx_k_repr), 0, 0, 1, 1}, + {&__pyx_n_s_results, __pyx_k_results, sizeof(__pyx_k_results), 0, 0, 1, 1}, + {&__pyx_n_s_ret, __pyx_k_ret, sizeof(__pyx_k_ret), 0, 0, 1, 1}, + {&__pyx_n_s_retCode, __pyx_k_retCode, sizeof(__pyx_k_retCode), 0, 0, 1, 1}, + {&__pyx_n_s_ret_code, __pyx_k_ret_code, sizeof(__pyx_k_ret_code), 0, 0, 1, 1}, + {&__pyx_n_s_run, __pyx_k_run, sizeof(__pyx_k_run), 0, 0, 1, 1}, + {&__pyx_n_s_s, __pyx_k_s, sizeof(__pyx_k_s), 0, 0, 1, 1}, + {&__pyx_kp_s_s_2, __pyx_k_s_2, sizeof(__pyx_k_s_2), 0, 0, 1, 0}, + {&__pyx_kp_s_s_3, __pyx_k_s_3, sizeof(__pyx_k_s_3), 0, 0, 1, 0}, + {&__pyx_kp_s_s_4, __pyx_k_s_4, sizeof(__pyx_k_s_4), 0, 0, 1, 0}, + {&__pyx_kp_s_s_function_failed_with_error_co, __pyx_k_s_function_failed_with_error_co, sizeof(__pyx_k_s_function_failed_with_error_co), 0, 0, 1, 0}, + {&__pyx_kp_s_s_s, __pyx_k_s_s, sizeof(__pyx_k_s_s), 0, 0, 1, 0}, + {&__pyx_kp_s_s_s_2, __pyx_k_s_s_2, sizeof(__pyx_k_s_s_2), 0, 0, 1, 0}, + {&__pyx_n_s_self, __pyx_k_self, sizeof(__pyx_k_self), 0, 0, 1, 1}, + {&__pyx_n_s_series, __pyx_k_series, sizeof(__pyx_k_series), 0, 0, 1, 1}, + {&__pyx_n_s_set_function_args, __pyx_k_set_function_args, sizeof(__pyx_k_set_function_args), 0, 0, 1, 1}, + {&__pyx_n_s_set_input_arrays, __pyx_k_set_input_arrays, sizeof(__pyx_k_set_input_arrays), 0, 0, 1, 1}, + {&__pyx_n_s_set_input_names, __pyx_k_set_input_names, sizeof(__pyx_k_set_input_names), 0, 0, 1, 1}, + {&__pyx_n_s_set_parameters, __pyx_k_set_parameters, sizeof(__pyx_k_set_parameters), 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_skip_first, __pyx_k_skip_first, sizeof(__pyx_k_skip_first), 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_str, __pyx_k_str, sizeof(__pyx_k_str), 0, 0, 1, 1}, + {&__pyx_n_s_str2bytes, __pyx_k_str2bytes, sizeof(__pyx_k_str2bytes), 0, 0, 1, 1}, + {&__pyx_n_s_stream_ACOS, __pyx_k_stream_ACOS, sizeof(__pyx_k_stream_ACOS), 0, 0, 1, 1}, + {&__pyx_n_s_stream_AD, __pyx_k_stream_AD, sizeof(__pyx_k_stream_AD), 0, 0, 1, 1}, + {&__pyx_n_s_stream_ADD, __pyx_k_stream_ADD, sizeof(__pyx_k_stream_ADD), 0, 0, 1, 1}, + {&__pyx_n_s_stream_ADOSC, __pyx_k_stream_ADOSC, sizeof(__pyx_k_stream_ADOSC), 0, 0, 1, 1}, + {&__pyx_n_s_stream_ADX, __pyx_k_stream_ADX, sizeof(__pyx_k_stream_ADX), 0, 0, 1, 1}, + {&__pyx_n_s_stream_ADXR, __pyx_k_stream_ADXR, sizeof(__pyx_k_stream_ADXR), 0, 0, 1, 1}, + {&__pyx_n_s_stream_APO, __pyx_k_stream_APO, sizeof(__pyx_k_stream_APO), 0, 0, 1, 1}, + {&__pyx_n_s_stream_AROON, __pyx_k_stream_AROON, sizeof(__pyx_k_stream_AROON), 0, 0, 1, 1}, + {&__pyx_n_s_stream_AROONOSC, __pyx_k_stream_AROONOSC, sizeof(__pyx_k_stream_AROONOSC), 0, 0, 1, 1}, + {&__pyx_n_s_stream_ASIN, __pyx_k_stream_ASIN, sizeof(__pyx_k_stream_ASIN), 0, 0, 1, 1}, + {&__pyx_n_s_stream_ATAN, __pyx_k_stream_ATAN, sizeof(__pyx_k_stream_ATAN), 0, 0, 1, 1}, + {&__pyx_n_s_stream_ATR, __pyx_k_stream_ATR, sizeof(__pyx_k_stream_ATR), 0, 0, 1, 1}, + {&__pyx_n_s_stream_AVGPRICE, __pyx_k_stream_AVGPRICE, sizeof(__pyx_k_stream_AVGPRICE), 0, 0, 1, 1}, + {&__pyx_n_s_stream_BBANDS, __pyx_k_stream_BBANDS, sizeof(__pyx_k_stream_BBANDS), 0, 0, 1, 1}, + {&__pyx_n_s_stream_BETA, __pyx_k_stream_BETA, sizeof(__pyx_k_stream_BETA), 0, 0, 1, 1}, + {&__pyx_n_s_stream_BOP, __pyx_k_stream_BOP, sizeof(__pyx_k_stream_BOP), 0, 0, 1, 1}, + {&__pyx_n_s_stream_CCI, __pyx_k_stream_CCI, sizeof(__pyx_k_stream_CCI), 0, 0, 1, 1}, + {&__pyx_n_s_stream_CDL2CROWS, __pyx_k_stream_CDL2CROWS, sizeof(__pyx_k_stream_CDL2CROWS), 0, 0, 1, 1}, + {&__pyx_n_s_stream_CDL3BLACKCROWS, __pyx_k_stream_CDL3BLACKCROWS, sizeof(__pyx_k_stream_CDL3BLACKCROWS), 0, 0, 1, 1}, + {&__pyx_n_s_stream_CDL3INSIDE, __pyx_k_stream_CDL3INSIDE, sizeof(__pyx_k_stream_CDL3INSIDE), 0, 0, 1, 1}, + {&__pyx_n_s_stream_CDL3LINESTRIKE, __pyx_k_stream_CDL3LINESTRIKE, sizeof(__pyx_k_stream_CDL3LINESTRIKE), 0, 0, 1, 1}, + {&__pyx_n_s_stream_CDL3OUTSIDE, __pyx_k_stream_CDL3OUTSIDE, sizeof(__pyx_k_stream_CDL3OUTSIDE), 0, 0, 1, 1}, + {&__pyx_n_s_stream_CDL3STARSINSOUTH, __pyx_k_stream_CDL3STARSINSOUTH, sizeof(__pyx_k_stream_CDL3STARSINSOUTH), 0, 0, 1, 1}, + {&__pyx_n_s_stream_CDL3WHITESOLDIERS, __pyx_k_stream_CDL3WHITESOLDIERS, sizeof(__pyx_k_stream_CDL3WHITESOLDIERS), 0, 0, 1, 1}, + {&__pyx_n_s_stream_CDLABANDONEDBABY, __pyx_k_stream_CDLABANDONEDBABY, sizeof(__pyx_k_stream_CDLABANDONEDBABY), 0, 0, 1, 1}, + {&__pyx_n_s_stream_CDLADVANCEBLOCK, __pyx_k_stream_CDLADVANCEBLOCK, sizeof(__pyx_k_stream_CDLADVANCEBLOCK), 0, 0, 1, 1}, + {&__pyx_n_s_stream_CDLBELTHOLD, __pyx_k_stream_CDLBELTHOLD, sizeof(__pyx_k_stream_CDLBELTHOLD), 0, 0, 1, 1}, + {&__pyx_n_s_stream_CDLBREAKAWAY, __pyx_k_stream_CDLBREAKAWAY, sizeof(__pyx_k_stream_CDLBREAKAWAY), 0, 0, 1, 1}, + {&__pyx_n_s_stream_CDLCLOSINGMARUBOZU, __pyx_k_stream_CDLCLOSINGMARUBOZU, sizeof(__pyx_k_stream_CDLCLOSINGMARUBOZU), 0, 0, 1, 1}, + {&__pyx_n_s_stream_CDLCONCEALBABYSWALL, __pyx_k_stream_CDLCONCEALBABYSWALL, sizeof(__pyx_k_stream_CDLCONCEALBABYSWALL), 0, 0, 1, 1}, + {&__pyx_n_s_stream_CDLCOUNTERATTACK, __pyx_k_stream_CDLCOUNTERATTACK, sizeof(__pyx_k_stream_CDLCOUNTERATTACK), 0, 0, 1, 1}, + {&__pyx_n_s_stream_CDLDARKCLOUDCOVER, __pyx_k_stream_CDLDARKCLOUDCOVER, sizeof(__pyx_k_stream_CDLDARKCLOUDCOVER), 0, 0, 1, 1}, + {&__pyx_n_s_stream_CDLDOJI, __pyx_k_stream_CDLDOJI, sizeof(__pyx_k_stream_CDLDOJI), 0, 0, 1, 1}, + {&__pyx_n_s_stream_CDLDOJISTAR, __pyx_k_stream_CDLDOJISTAR, sizeof(__pyx_k_stream_CDLDOJISTAR), 0, 0, 1, 1}, + {&__pyx_n_s_stream_CDLDRAGONFLYDOJI, __pyx_k_stream_CDLDRAGONFLYDOJI, sizeof(__pyx_k_stream_CDLDRAGONFLYDOJI), 0, 0, 1, 1}, + {&__pyx_n_s_stream_CDLENGULFING, __pyx_k_stream_CDLENGULFING, sizeof(__pyx_k_stream_CDLENGULFING), 0, 0, 1, 1}, + {&__pyx_n_s_stream_CDLEVENINGDOJISTAR, __pyx_k_stream_CDLEVENINGDOJISTAR, sizeof(__pyx_k_stream_CDLEVENINGDOJISTAR), 0, 0, 1, 1}, + {&__pyx_n_s_stream_CDLEVENINGSTAR, __pyx_k_stream_CDLEVENINGSTAR, sizeof(__pyx_k_stream_CDLEVENINGSTAR), 0, 0, 1, 1}, + {&__pyx_n_s_stream_CDLGAPSIDESIDEWHITE, __pyx_k_stream_CDLGAPSIDESIDEWHITE, sizeof(__pyx_k_stream_CDLGAPSIDESIDEWHITE), 0, 0, 1, 1}, + {&__pyx_n_s_stream_CDLGRAVESTONEDOJI, __pyx_k_stream_CDLGRAVESTONEDOJI, sizeof(__pyx_k_stream_CDLGRAVESTONEDOJI), 0, 0, 1, 1}, + {&__pyx_n_s_stream_CDLHAMMER, __pyx_k_stream_CDLHAMMER, sizeof(__pyx_k_stream_CDLHAMMER), 0, 0, 1, 1}, + {&__pyx_n_s_stream_CDLHANGINGMAN, __pyx_k_stream_CDLHANGINGMAN, sizeof(__pyx_k_stream_CDLHANGINGMAN), 0, 0, 1, 1}, + {&__pyx_n_s_stream_CDLHARAMI, __pyx_k_stream_CDLHARAMI, sizeof(__pyx_k_stream_CDLHARAMI), 0, 0, 1, 1}, + {&__pyx_n_s_stream_CDLHARAMICROSS, __pyx_k_stream_CDLHARAMICROSS, sizeof(__pyx_k_stream_CDLHARAMICROSS), 0, 0, 1, 1}, + {&__pyx_n_s_stream_CDLHIGHWAVE, __pyx_k_stream_CDLHIGHWAVE, sizeof(__pyx_k_stream_CDLHIGHWAVE), 0, 0, 1, 1}, + {&__pyx_n_s_stream_CDLHIKKAKE, __pyx_k_stream_CDLHIKKAKE, sizeof(__pyx_k_stream_CDLHIKKAKE), 0, 0, 1, 1}, + {&__pyx_n_s_stream_CDLHIKKAKEMOD, __pyx_k_stream_CDLHIKKAKEMOD, sizeof(__pyx_k_stream_CDLHIKKAKEMOD), 0, 0, 1, 1}, + {&__pyx_n_s_stream_CDLHOMINGPIGEON, __pyx_k_stream_CDLHOMINGPIGEON, sizeof(__pyx_k_stream_CDLHOMINGPIGEON), 0, 0, 1, 1}, + {&__pyx_n_s_stream_CDLIDENTICAL3CROWS, __pyx_k_stream_CDLIDENTICAL3CROWS, sizeof(__pyx_k_stream_CDLIDENTICAL3CROWS), 0, 0, 1, 1}, + {&__pyx_n_s_stream_CDLINNECK, __pyx_k_stream_CDLINNECK, sizeof(__pyx_k_stream_CDLINNECK), 0, 0, 1, 1}, + {&__pyx_n_s_stream_CDLINVERTEDHAMMER, __pyx_k_stream_CDLINVERTEDHAMMER, sizeof(__pyx_k_stream_CDLINVERTEDHAMMER), 0, 0, 1, 1}, + {&__pyx_n_s_stream_CDLKICKING, __pyx_k_stream_CDLKICKING, sizeof(__pyx_k_stream_CDLKICKING), 0, 0, 1, 1}, + {&__pyx_n_s_stream_CDLKICKINGBYLENGTH, __pyx_k_stream_CDLKICKINGBYLENGTH, sizeof(__pyx_k_stream_CDLKICKINGBYLENGTH), 0, 0, 1, 1}, + {&__pyx_n_s_stream_CDLLADDERBOTTOM, __pyx_k_stream_CDLLADDERBOTTOM, sizeof(__pyx_k_stream_CDLLADDERBOTTOM), 0, 0, 1, 1}, + {&__pyx_n_s_stream_CDLLONGLEGGEDDOJI, __pyx_k_stream_CDLLONGLEGGEDDOJI, sizeof(__pyx_k_stream_CDLLONGLEGGEDDOJI), 0, 0, 1, 1}, + {&__pyx_n_s_stream_CDLLONGLINE, __pyx_k_stream_CDLLONGLINE, sizeof(__pyx_k_stream_CDLLONGLINE), 0, 0, 1, 1}, + {&__pyx_n_s_stream_CDLMARUBOZU, __pyx_k_stream_CDLMARUBOZU, sizeof(__pyx_k_stream_CDLMARUBOZU), 0, 0, 1, 1}, + {&__pyx_n_s_stream_CDLMATCHINGLOW, __pyx_k_stream_CDLMATCHINGLOW, sizeof(__pyx_k_stream_CDLMATCHINGLOW), 0, 0, 1, 1}, + {&__pyx_n_s_stream_CDLMATHOLD, __pyx_k_stream_CDLMATHOLD, sizeof(__pyx_k_stream_CDLMATHOLD), 0, 0, 1, 1}, + {&__pyx_n_s_stream_CDLMORNINGDOJISTAR, __pyx_k_stream_CDLMORNINGDOJISTAR, sizeof(__pyx_k_stream_CDLMORNINGDOJISTAR), 0, 0, 1, 1}, + {&__pyx_n_s_stream_CDLMORNINGSTAR, __pyx_k_stream_CDLMORNINGSTAR, sizeof(__pyx_k_stream_CDLMORNINGSTAR), 0, 0, 1, 1}, + {&__pyx_n_s_stream_CDLONNECK, __pyx_k_stream_CDLONNECK, sizeof(__pyx_k_stream_CDLONNECK), 0, 0, 1, 1}, + {&__pyx_n_s_stream_CDLPIERCING, __pyx_k_stream_CDLPIERCING, sizeof(__pyx_k_stream_CDLPIERCING), 0, 0, 1, 1}, + {&__pyx_n_s_stream_CDLRICKSHAWMAN, __pyx_k_stream_CDLRICKSHAWMAN, sizeof(__pyx_k_stream_CDLRICKSHAWMAN), 0, 0, 1, 1}, + {&__pyx_n_s_stream_CDLRISEFALL3METHODS, __pyx_k_stream_CDLRISEFALL3METHODS, sizeof(__pyx_k_stream_CDLRISEFALL3METHODS), 0, 0, 1, 1}, + {&__pyx_n_s_stream_CDLSEPARATINGLINES, __pyx_k_stream_CDLSEPARATINGLINES, sizeof(__pyx_k_stream_CDLSEPARATINGLINES), 0, 0, 1, 1}, + {&__pyx_n_s_stream_CDLSHOOTINGSTAR, __pyx_k_stream_CDLSHOOTINGSTAR, sizeof(__pyx_k_stream_CDLSHOOTINGSTAR), 0, 0, 1, 1}, + {&__pyx_n_s_stream_CDLSHORTLINE, __pyx_k_stream_CDLSHORTLINE, sizeof(__pyx_k_stream_CDLSHORTLINE), 0, 0, 1, 1}, + {&__pyx_n_s_stream_CDLSPINNINGTOP, __pyx_k_stream_CDLSPINNINGTOP, sizeof(__pyx_k_stream_CDLSPINNINGTOP), 0, 0, 1, 1}, + {&__pyx_n_s_stream_CDLSTALLEDPATTERN, __pyx_k_stream_CDLSTALLEDPATTERN, sizeof(__pyx_k_stream_CDLSTALLEDPATTERN), 0, 0, 1, 1}, + {&__pyx_n_s_stream_CDLSTICKSANDWICH, __pyx_k_stream_CDLSTICKSANDWICH, sizeof(__pyx_k_stream_CDLSTICKSANDWICH), 0, 0, 1, 1}, + {&__pyx_n_s_stream_CDLTAKURI, __pyx_k_stream_CDLTAKURI, sizeof(__pyx_k_stream_CDLTAKURI), 0, 0, 1, 1}, + {&__pyx_n_s_stream_CDLTASUKIGAP, __pyx_k_stream_CDLTASUKIGAP, sizeof(__pyx_k_stream_CDLTASUKIGAP), 0, 0, 1, 1}, + {&__pyx_n_s_stream_CDLTHRUSTING, __pyx_k_stream_CDLTHRUSTING, sizeof(__pyx_k_stream_CDLTHRUSTING), 0, 0, 1, 1}, + {&__pyx_n_s_stream_CDLTRISTAR, __pyx_k_stream_CDLTRISTAR, sizeof(__pyx_k_stream_CDLTRISTAR), 0, 0, 1, 1}, + {&__pyx_n_s_stream_CDLUNIQUE3RIVER, __pyx_k_stream_CDLUNIQUE3RIVER, sizeof(__pyx_k_stream_CDLUNIQUE3RIVER), 0, 0, 1, 1}, + {&__pyx_n_s_stream_CDLUPSIDEGAP2CROWS, __pyx_k_stream_CDLUPSIDEGAP2CROWS, sizeof(__pyx_k_stream_CDLUPSIDEGAP2CROWS), 0, 0, 1, 1}, + {&__pyx_n_s_stream_CDLXSIDEGAP3METHODS, __pyx_k_stream_CDLXSIDEGAP3METHODS, sizeof(__pyx_k_stream_CDLXSIDEGAP3METHODS), 0, 0, 1, 1}, + {&__pyx_n_s_stream_CEIL, __pyx_k_stream_CEIL, sizeof(__pyx_k_stream_CEIL), 0, 0, 1, 1}, + {&__pyx_n_s_stream_CMO, __pyx_k_stream_CMO, sizeof(__pyx_k_stream_CMO), 0, 0, 1, 1}, + {&__pyx_n_s_stream_CORREL, __pyx_k_stream_CORREL, sizeof(__pyx_k_stream_CORREL), 0, 0, 1, 1}, + {&__pyx_n_s_stream_COS, __pyx_k_stream_COS, sizeof(__pyx_k_stream_COS), 0, 0, 1, 1}, + {&__pyx_n_s_stream_COSH, __pyx_k_stream_COSH, sizeof(__pyx_k_stream_COSH), 0, 0, 1, 1}, + {&__pyx_n_s_stream_DEMA, __pyx_k_stream_DEMA, sizeof(__pyx_k_stream_DEMA), 0, 0, 1, 1}, + {&__pyx_n_s_stream_DIV, __pyx_k_stream_DIV, sizeof(__pyx_k_stream_DIV), 0, 0, 1, 1}, + {&__pyx_n_s_stream_DX, __pyx_k_stream_DX, sizeof(__pyx_k_stream_DX), 0, 0, 1, 1}, + {&__pyx_n_s_stream_EMA, __pyx_k_stream_EMA, sizeof(__pyx_k_stream_EMA), 0, 0, 1, 1}, + {&__pyx_n_s_stream_EXP, __pyx_k_stream_EXP, sizeof(__pyx_k_stream_EXP), 0, 0, 1, 1}, + {&__pyx_n_s_stream_FLOOR, __pyx_k_stream_FLOOR, sizeof(__pyx_k_stream_FLOOR), 0, 0, 1, 1}, + {&__pyx_n_s_stream_HT_DCPERIOD, __pyx_k_stream_HT_DCPERIOD, sizeof(__pyx_k_stream_HT_DCPERIOD), 0, 0, 1, 1}, + {&__pyx_n_s_stream_HT_DCPHASE, __pyx_k_stream_HT_DCPHASE, sizeof(__pyx_k_stream_HT_DCPHASE), 0, 0, 1, 1}, + {&__pyx_n_s_stream_HT_PHASOR, __pyx_k_stream_HT_PHASOR, sizeof(__pyx_k_stream_HT_PHASOR), 0, 0, 1, 1}, + {&__pyx_n_s_stream_HT_SINE, __pyx_k_stream_HT_SINE, sizeof(__pyx_k_stream_HT_SINE), 0, 0, 1, 1}, + {&__pyx_n_s_stream_HT_TRENDLINE, __pyx_k_stream_HT_TRENDLINE, sizeof(__pyx_k_stream_HT_TRENDLINE), 0, 0, 1, 1}, + {&__pyx_n_s_stream_HT_TRENDMODE, __pyx_k_stream_HT_TRENDMODE, sizeof(__pyx_k_stream_HT_TRENDMODE), 0, 0, 1, 1}, + {&__pyx_n_s_stream_KAMA, __pyx_k_stream_KAMA, sizeof(__pyx_k_stream_KAMA), 0, 0, 1, 1}, + {&__pyx_n_s_stream_LINEARREG, __pyx_k_stream_LINEARREG, sizeof(__pyx_k_stream_LINEARREG), 0, 0, 1, 1}, + {&__pyx_n_s_stream_LINEARREG_ANGLE, __pyx_k_stream_LINEARREG_ANGLE, sizeof(__pyx_k_stream_LINEARREG_ANGLE), 0, 0, 1, 1}, + {&__pyx_n_s_stream_LINEARREG_INTERCEPT, __pyx_k_stream_LINEARREG_INTERCEPT, sizeof(__pyx_k_stream_LINEARREG_INTERCEPT), 0, 0, 1, 1}, + {&__pyx_n_s_stream_LINEARREG_SLOPE, __pyx_k_stream_LINEARREG_SLOPE, sizeof(__pyx_k_stream_LINEARREG_SLOPE), 0, 0, 1, 1}, + {&__pyx_n_s_stream_LN, __pyx_k_stream_LN, sizeof(__pyx_k_stream_LN), 0, 0, 1, 1}, + {&__pyx_n_s_stream_LOG10, __pyx_k_stream_LOG10, sizeof(__pyx_k_stream_LOG10), 0, 0, 1, 1}, + {&__pyx_n_s_stream_MA, __pyx_k_stream_MA, sizeof(__pyx_k_stream_MA), 0, 0, 1, 1}, + {&__pyx_n_s_stream_MACD, __pyx_k_stream_MACD, sizeof(__pyx_k_stream_MACD), 0, 0, 1, 1}, + {&__pyx_n_s_stream_MACDEXT, __pyx_k_stream_MACDEXT, sizeof(__pyx_k_stream_MACDEXT), 0, 0, 1, 1}, + {&__pyx_n_s_stream_MACDFIX, __pyx_k_stream_MACDFIX, sizeof(__pyx_k_stream_MACDFIX), 0, 0, 1, 1}, + {&__pyx_n_s_stream_MAMA, __pyx_k_stream_MAMA, sizeof(__pyx_k_stream_MAMA), 0, 0, 1, 1}, + {&__pyx_n_s_stream_MAVP, __pyx_k_stream_MAVP, sizeof(__pyx_k_stream_MAVP), 0, 0, 1, 1}, + {&__pyx_n_s_stream_MAX, __pyx_k_stream_MAX, sizeof(__pyx_k_stream_MAX), 0, 0, 1, 1}, + {&__pyx_n_s_stream_MAXINDEX, __pyx_k_stream_MAXINDEX, sizeof(__pyx_k_stream_MAXINDEX), 0, 0, 1, 1}, + {&__pyx_n_s_stream_MEDPRICE, __pyx_k_stream_MEDPRICE, sizeof(__pyx_k_stream_MEDPRICE), 0, 0, 1, 1}, + {&__pyx_n_s_stream_MFI, __pyx_k_stream_MFI, sizeof(__pyx_k_stream_MFI), 0, 0, 1, 1}, + {&__pyx_n_s_stream_MIDPOINT, __pyx_k_stream_MIDPOINT, sizeof(__pyx_k_stream_MIDPOINT), 0, 0, 1, 1}, + {&__pyx_n_s_stream_MIDPRICE, __pyx_k_stream_MIDPRICE, sizeof(__pyx_k_stream_MIDPRICE), 0, 0, 1, 1}, + {&__pyx_n_s_stream_MIN, __pyx_k_stream_MIN, sizeof(__pyx_k_stream_MIN), 0, 0, 1, 1}, + {&__pyx_n_s_stream_MININDEX, __pyx_k_stream_MININDEX, sizeof(__pyx_k_stream_MININDEX), 0, 0, 1, 1}, + {&__pyx_n_s_stream_MINMAX, __pyx_k_stream_MINMAX, sizeof(__pyx_k_stream_MINMAX), 0, 0, 1, 1}, + {&__pyx_n_s_stream_MINMAXINDEX, __pyx_k_stream_MINMAXINDEX, sizeof(__pyx_k_stream_MINMAXINDEX), 0, 0, 1, 1}, + {&__pyx_n_s_stream_MINUS_DI, __pyx_k_stream_MINUS_DI, sizeof(__pyx_k_stream_MINUS_DI), 0, 0, 1, 1}, + {&__pyx_n_s_stream_MINUS_DM, __pyx_k_stream_MINUS_DM, sizeof(__pyx_k_stream_MINUS_DM), 0, 0, 1, 1}, + {&__pyx_n_s_stream_MOM, __pyx_k_stream_MOM, sizeof(__pyx_k_stream_MOM), 0, 0, 1, 1}, + {&__pyx_n_s_stream_MULT, __pyx_k_stream_MULT, sizeof(__pyx_k_stream_MULT), 0, 0, 1, 1}, + {&__pyx_n_s_stream_NATR, __pyx_k_stream_NATR, sizeof(__pyx_k_stream_NATR), 0, 0, 1, 1}, + {&__pyx_n_s_stream_OBV, __pyx_k_stream_OBV, sizeof(__pyx_k_stream_OBV), 0, 0, 1, 1}, + {&__pyx_n_s_stream_PLUS_DI, __pyx_k_stream_PLUS_DI, sizeof(__pyx_k_stream_PLUS_DI), 0, 0, 1, 1}, + {&__pyx_n_s_stream_PLUS_DM, __pyx_k_stream_PLUS_DM, sizeof(__pyx_k_stream_PLUS_DM), 0, 0, 1, 1}, + {&__pyx_n_s_stream_PPO, __pyx_k_stream_PPO, sizeof(__pyx_k_stream_PPO), 0, 0, 1, 1}, + {&__pyx_n_s_stream_ROC, __pyx_k_stream_ROC, sizeof(__pyx_k_stream_ROC), 0, 0, 1, 1}, + {&__pyx_n_s_stream_ROCP, __pyx_k_stream_ROCP, sizeof(__pyx_k_stream_ROCP), 0, 0, 1, 1}, + {&__pyx_n_s_stream_ROCR, __pyx_k_stream_ROCR, sizeof(__pyx_k_stream_ROCR), 0, 0, 1, 1}, + {&__pyx_n_s_stream_ROCR100, __pyx_k_stream_ROCR100, sizeof(__pyx_k_stream_ROCR100), 0, 0, 1, 1}, + {&__pyx_n_s_stream_RSI, __pyx_k_stream_RSI, sizeof(__pyx_k_stream_RSI), 0, 0, 1, 1}, + {&__pyx_n_s_stream_SAR, __pyx_k_stream_SAR, sizeof(__pyx_k_stream_SAR), 0, 0, 1, 1}, + {&__pyx_n_s_stream_SAREXT, __pyx_k_stream_SAREXT, sizeof(__pyx_k_stream_SAREXT), 0, 0, 1, 1}, + {&__pyx_n_s_stream_SIN, __pyx_k_stream_SIN, sizeof(__pyx_k_stream_SIN), 0, 0, 1, 1}, + {&__pyx_n_s_stream_SINH, __pyx_k_stream_SINH, sizeof(__pyx_k_stream_SINH), 0, 0, 1, 1}, + {&__pyx_n_s_stream_SMA, __pyx_k_stream_SMA, sizeof(__pyx_k_stream_SMA), 0, 0, 1, 1}, + {&__pyx_n_s_stream_SQRT, __pyx_k_stream_SQRT, sizeof(__pyx_k_stream_SQRT), 0, 0, 1, 1}, + {&__pyx_n_s_stream_STDDEV, __pyx_k_stream_STDDEV, sizeof(__pyx_k_stream_STDDEV), 0, 0, 1, 1}, + {&__pyx_n_s_stream_STOCH, __pyx_k_stream_STOCH, sizeof(__pyx_k_stream_STOCH), 0, 0, 1, 1}, + {&__pyx_n_s_stream_STOCHF, __pyx_k_stream_STOCHF, sizeof(__pyx_k_stream_STOCHF), 0, 0, 1, 1}, + {&__pyx_n_s_stream_STOCHRSI, __pyx_k_stream_STOCHRSI, sizeof(__pyx_k_stream_STOCHRSI), 0, 0, 1, 1}, + {&__pyx_n_s_stream_SUB, __pyx_k_stream_SUB, sizeof(__pyx_k_stream_SUB), 0, 0, 1, 1}, + {&__pyx_n_s_stream_SUM, __pyx_k_stream_SUM, sizeof(__pyx_k_stream_SUM), 0, 0, 1, 1}, + {&__pyx_n_s_stream_T3, __pyx_k_stream_T3, sizeof(__pyx_k_stream_T3), 0, 0, 1, 1}, + {&__pyx_n_s_stream_TAN, __pyx_k_stream_TAN, sizeof(__pyx_k_stream_TAN), 0, 0, 1, 1}, + {&__pyx_n_s_stream_TANH, __pyx_k_stream_TANH, sizeof(__pyx_k_stream_TANH), 0, 0, 1, 1}, + {&__pyx_n_s_stream_TEMA, __pyx_k_stream_TEMA, sizeof(__pyx_k_stream_TEMA), 0, 0, 1, 1}, + {&__pyx_n_s_stream_TRANGE, __pyx_k_stream_TRANGE, sizeof(__pyx_k_stream_TRANGE), 0, 0, 1, 1}, + {&__pyx_n_s_stream_TRIMA, __pyx_k_stream_TRIMA, sizeof(__pyx_k_stream_TRIMA), 0, 0, 1, 1}, + {&__pyx_n_s_stream_TRIX, __pyx_k_stream_TRIX, sizeof(__pyx_k_stream_TRIX), 0, 0, 1, 1}, + {&__pyx_n_s_stream_TSF, __pyx_k_stream_TSF, sizeof(__pyx_k_stream_TSF), 0, 0, 1, 1}, + {&__pyx_n_s_stream_TYPPRICE, __pyx_k_stream_TYPPRICE, sizeof(__pyx_k_stream_TYPPRICE), 0, 0, 1, 1}, + {&__pyx_n_s_stream_ULTOSC, __pyx_k_stream_ULTOSC, sizeof(__pyx_k_stream_ULTOSC), 0, 0, 1, 1}, + {&__pyx_n_s_stream_VAR, __pyx_k_stream_VAR, sizeof(__pyx_k_stream_VAR), 0, 0, 1, 1}, + {&__pyx_n_s_stream_WCLPRICE, __pyx_k_stream_WCLPRICE, sizeof(__pyx_k_stream_WCLPRICE), 0, 0, 1, 1}, + {&__pyx_n_s_stream_WILLR, __pyx_k_stream_WILLR, sizeof(__pyx_k_stream_WILLR), 0, 0, 1, 1}, + {&__pyx_n_s_stream_WMA, __pyx_k_stream_WMA, sizeof(__pyx_k_stream_WMA), 0, 0, 1, 1}, + {&__pyx_n_s_sys, __pyx_k_sys, sizeof(__pyx_k_sys), 0, 0, 1, 1}, + {&__pyx_n_s_ta_func_unst_ids, __pyx_k_ta_func_unst_ids, sizeof(__pyx_k_ta_func_unst_ids), 0, 0, 1, 1}, + {&__pyx_n_s_ta_getFuncInfo, __pyx_k_ta_getFuncInfo, sizeof(__pyx_k_ta_getFuncInfo), 0, 0, 1, 1}, + {&__pyx_n_s_ta_getFuncTable, __pyx_k_ta_getFuncTable, sizeof(__pyx_k_ta_getFuncTable), 0, 0, 1, 1}, + {&__pyx_n_s_ta_getGroupTable, __pyx_k_ta_getGroupTable, sizeof(__pyx_k_ta_getGroupTable), 0, 0, 1, 1}, + {&__pyx_n_s_ta_getInputParameterInfo, __pyx_k_ta_getInputParameterInfo, sizeof(__pyx_k_ta_getInputParameterInfo), 0, 0, 1, 1}, + {&__pyx_n_s_ta_getOptInputParameterInfo, __pyx_k_ta_getOptInputParameterInfo, sizeof(__pyx_k_ta_getOptInputParameterInfo), 0, 0, 1, 1}, + {&__pyx_n_s_ta_getOutputParameterInfo, __pyx_k_ta_getOutputParameterInfo, sizeof(__pyx_k_ta_getOutputParameterInfo), 0, 0, 1, 1}, + {&__pyx_n_s_ta_get_unstable_period, __pyx_k_ta_get_unstable_period, sizeof(__pyx_k_ta_get_unstable_period), 0, 0, 1, 1}, + {&__pyx_n_s_ta_initialize, __pyx_k_ta_initialize, sizeof(__pyx_k_ta_initialize), 0, 0, 1, 1}, + {&__pyx_n_s_ta_set_unstable_period, __pyx_k_ta_set_unstable_period, sizeof(__pyx_k_ta_set_unstable_period), 0, 0, 1, 1}, + {&__pyx_n_s_ta_shutdown, __pyx_k_ta_shutdown, sizeof(__pyx_k_ta_shutdown), 0, 0, 1, 1}, + {&__pyx_n_s_ta_version, __pyx_k_ta_version, sizeof(__pyx_k_ta_version), 0, 0, 1, 1}, + {&__pyx_n_s_table, __pyx_k_table, sizeof(__pyx_k_table), 0, 0, 1, 1}, + {&__pyx_n_s_talib_c_ta_lib, __pyx_k_talib_c_ta_lib, sizeof(__pyx_k_talib_c_ta_lib), 0, 0, 1, 1}, + {&__pyx_n_s_test, __pyx_k_test, sizeof(__pyx_k_test), 0, 0, 1, 1}, + {&__pyx_n_s_timeStamp, __pyx_k_timeStamp, sizeof(__pyx_k_timeStamp), 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_n_s_type, __pyx_k_type, sizeof(__pyx_k_type), 0, 0, 1, 1}, + {&__pyx_n_s_type_2, __pyx_k_type_2, sizeof(__pyx_k_type_2), 0, 0, 1, 1}, + {&__pyx_n_s_unicode, __pyx_k_unicode, sizeof(__pyx_k_unicode), 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_update_info, __pyx_k_update_info, sizeof(__pyx_k_update_info), 0, 0, 1, 1}, + {&__pyx_n_s_upper, __pyx_k_upper, sizeof(__pyx_k_upper), 0, 0, 1, 1}, + {&__pyx_n_s_val, __pyx_k_val, sizeof(__pyx_k_val), 0, 0, 1, 1}, + {&__pyx_n_s_value, __pyx_k_value, sizeof(__pyx_k_value), 0, 0, 1, 1}, + {&__pyx_n_s_value_range, __pyx_k_value_range, sizeof(__pyx_k_value_range), 0, 0, 1, 1}, + {&__pyx_n_s_values, __pyx_k_values, sizeof(__pyx_k_values), 0, 0, 1, 1}, + {&__pyx_n_s_version, __pyx_k_version, sizeof(__pyx_k_version), 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}, + {&__pyx_n_s_xrange, __pyx_k_xrange, sizeof(__pyx_k_xrange), 0, 0, 1, 1}, + {0, 0, 0, 0, 0, 0, 0} +}; +static int __Pyx_InitCachedBuiltins(void) { + __pyx_builtin_object = __Pyx_GetBuiltinName(__pyx_n_s_object); if (!__pyx_builtin_object) __PYX_ERR(0, 46, __pyx_L1_error) + __pyx_builtin_range = __Pyx_GetBuiltinName(__pyx_n_s_range); if (!__pyx_builtin_range) __PYX_ERR(0, 47, __pyx_L1_error) + __pyx_builtin_enumerate = __Pyx_GetBuiltinName(__pyx_n_s_enumerate); if (!__pyx_builtin_enumerate) __PYX_ERR(0, 68, __pyx_L1_error) + __pyx_builtin_ImportError = __Pyx_GetBuiltinName(__pyx_n_s_ImportError); if (!__pyx_builtin_ImportError) __PYX_ERR(1, 7, __pyx_L1_error) + __pyx_builtin_property = __Pyx_GetBuiltinName(__pyx_n_s_property); if (!__pyx_builtin_property) __PYX_ERR(1, 136, __pyx_L1_error) + __pyx_builtin_Exception = __Pyx_GetBuiltinName(__pyx_n_s_Exception); if (!__pyx_builtin_Exception) __PYX_ERR(0, 33, __pyx_L1_error) + #if PY_MAJOR_VERSION >= 3 + __pyx_builtin_xrange = __Pyx_GetBuiltinName(__pyx_n_s_range); if (!__pyx_builtin_xrange) __PYX_ERR(1, 112, __pyx_L1_error) + #else + __pyx_builtin_xrange = __Pyx_GetBuiltinName(__pyx_n_s_xrange); if (!__pyx_builtin_xrange) __PYX_ERR(1, 112, __pyx_L1_error) + #endif + __pyx_builtin_min = __Pyx_GetBuiltinName(__pyx_n_s_min); if (!__pyx_builtin_min) __PYX_ERR(1, 456, __pyx_L1_error) + __pyx_builtin_max = __Pyx_GetBuiltinName(__pyx_n_s_max); if (!__pyx_builtin_max) __PYX_ERR(1, 457, __pyx_L1_error) + __pyx_builtin_ValueError = __Pyx_GetBuiltinName(__pyx_n_s_ValueError); if (!__pyx_builtin_ValueError) __PYX_ERR(4, 218, __pyx_L1_error) + __pyx_builtin_RuntimeError = __Pyx_GetBuiltinName(__pyx_n_s_RuntimeError); if (!__pyx_builtin_RuntimeError) __PYX_ERR(4, 799, __pyx_L1_error) + return 0; + __pyx_L1_error:; + return -1; +} + +static int __Pyx_InitCachedConstants(void) { + __Pyx_RefNannyDeclarations + __Pyx_RefNannySetupContext("__Pyx_InitCachedConstants", 0); + + /* "talib/_func.pxi":31 + * double* outreal_data + * 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(2, 31, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple_); + __Pyx_GIVEREF(__pyx_tuple_); + + /* "talib/_func.pxi":33 + * 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(2, 33, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2); + __Pyx_GIVEREF(__pyx_tuple__2); + + /* "talib/_func.pxi":46 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_ACOS_Lookback( ) + */ + __pyx_tuple__3 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__3)) __PYX_ERR(2, 46, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__3); + __Pyx_GIVEREF(__pyx_tuple__3); + + /* "talib/_func.pxi":83 + * double* outreal_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__4 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__4)) __PYX_ERR(2, 83, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__4); + __Pyx_GIVEREF(__pyx_tuple__4); + + /* "talib/_func.pxi":85 + * raise 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__5 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__5)) __PYX_ERR(2, 85, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__5); + __Pyx_GIVEREF(__pyx_tuple__5); + + /* "talib/_func.pxi":90 + * high_data = 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__6 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__6)) __PYX_ERR(2, 90, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__6); + __Pyx_GIVEREF(__pyx_tuple__6); + + /* "talib/_func.pxi":92 + * raise 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__7 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__7)) __PYX_ERR(2, 92, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__7); + __Pyx_GIVEREF(__pyx_tuple__7); + + /* "talib/_func.pxi":97 + * low_data = 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__8 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__8)) __PYX_ERR(2, 97, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__8); + __Pyx_GIVEREF(__pyx_tuple__8); + + /* "talib/_func.pxi":99 + * raise 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__9 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__9)) __PYX_ERR(2, 99, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__9); + __Pyx_GIVEREF(__pyx_tuple__9); + + /* "talib/_func.pxi":104 + * close_data = 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__10 = PyTuple_Pack(1, __pyx_kp_s_volume_is_not_double); if (unlikely(!__pyx_tuple__10)) __PYX_ERR(2, 104, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__10); + __Pyx_GIVEREF(__pyx_tuple__10); + + /* "talib/_func.pxi":106 + * 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__11 = PyTuple_Pack(1, __pyx_kp_s_volume_has_wrong_dimensions); if (unlikely(!__pyx_tuple__11)) __PYX_ERR(2, 106, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__11); + __Pyx_GIVEREF(__pyx_tuple__11); + + /* "talib/_func.pxi":112 + * 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__12 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__12)) __PYX_ERR(2, 112, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__12); + __Pyx_GIVEREF(__pyx_tuple__12); + + /* "talib/_func.pxi":114 + * 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__13 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__13)) __PYX_ERR(2, 114, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__13); + __Pyx_GIVEREF(__pyx_tuple__13); + + /* "talib/_func.pxi":116 + * raise Exception("input lengths are different") + * if length != volume.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_tuple__14 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__14)) __PYX_ERR(2, 116, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__14); + __Pyx_GIVEREF(__pyx_tuple__14); + + /* "talib/_func.pxi":134 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_AD_Lookback( ) + */ + __pyx_tuple__15 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__15)) __PYX_ERR(2, 134, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__15); + __Pyx_GIVEREF(__pyx_tuple__15); + + /* "talib/_func.pxi":170 + * double* outreal_data + * 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__16 = PyTuple_Pack(1, __pyx_kp_s_real0_is_not_double); if (unlikely(!__pyx_tuple__16)) __PYX_ERR(2, 170, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__16); + __Pyx_GIVEREF(__pyx_tuple__16); + + /* "talib/_func.pxi":172 + * 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__17 = PyTuple_Pack(1, __pyx_kp_s_real0_has_wrong_dimensions); if (unlikely(!__pyx_tuple__17)) __PYX_ERR(2, 172, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__17); + __Pyx_GIVEREF(__pyx_tuple__17); + + /* "talib/_func.pxi":177 + * real0_data = 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__18 = PyTuple_Pack(1, __pyx_kp_s_real1_is_not_double); if (unlikely(!__pyx_tuple__18)) __PYX_ERR(2, 177, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__18); + __Pyx_GIVEREF(__pyx_tuple__18); + + /* "talib/_func.pxi":179 + * 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__19 = PyTuple_Pack(1, __pyx_kp_s_real1_has_wrong_dimensions); if (unlikely(!__pyx_tuple__19)) __PYX_ERR(2, 179, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__19); + __Pyx_GIVEREF(__pyx_tuple__19); + + /* "talib/_func.pxi":185 + * length = real0.shape[0] + * if length != real1.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_tuple__20 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__20)) __PYX_ERR(2, 185, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__20); + __Pyx_GIVEREF(__pyx_tuple__20); + + /* "talib/_func.pxi":197 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_ADD_Lookback( ) + */ + __pyx_tuple__21 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__21)) __PYX_ERR(2, 197, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__21); + __Pyx_GIVEREF(__pyx_tuple__21); + + /* "talib/_func.pxi":237 + * double* outreal_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__22 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__22)) __PYX_ERR(2, 237, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__22); + __Pyx_GIVEREF(__pyx_tuple__22); + + /* "talib/_func.pxi":239 + * raise 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__23 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__23)) __PYX_ERR(2, 239, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__23); + __Pyx_GIVEREF(__pyx_tuple__23); + + /* "talib/_func.pxi":244 + * high_data = 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__24 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__24)) __PYX_ERR(2, 244, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__24); + __Pyx_GIVEREF(__pyx_tuple__24); + + /* "talib/_func.pxi":246 + * raise 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__25 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__25)) __PYX_ERR(2, 246, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__25); + __Pyx_GIVEREF(__pyx_tuple__25); + + /* "talib/_func.pxi":251 + * low_data = 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__26 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__26)) __PYX_ERR(2, 251, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__26); + __Pyx_GIVEREF(__pyx_tuple__26); + + /* "talib/_func.pxi":253 + * raise 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__27 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__27)) __PYX_ERR(2, 253, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__27); + __Pyx_GIVEREF(__pyx_tuple__27); + + /* "talib/_func.pxi":258 + * close_data = 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__28 = PyTuple_Pack(1, __pyx_kp_s_volume_is_not_double); if (unlikely(!__pyx_tuple__28)) __PYX_ERR(2, 258, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__28); + __Pyx_GIVEREF(__pyx_tuple__28); + + /* "talib/_func.pxi":260 + * 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__29 = PyTuple_Pack(1, __pyx_kp_s_volume_has_wrong_dimensions); if (unlikely(!__pyx_tuple__29)) __PYX_ERR(2, 260, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__29); + __Pyx_GIVEREF(__pyx_tuple__29); + + /* "talib/_func.pxi":266 + * 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__30 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__30)) __PYX_ERR(2, 266, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__30); + __Pyx_GIVEREF(__pyx_tuple__30); + + /* "talib/_func.pxi":268 + * 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__31 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__31)) __PYX_ERR(2, 268, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__31); + __Pyx_GIVEREF(__pyx_tuple__31); + + /* "talib/_func.pxi":270 + * raise Exception("input lengths are different") + * if length != volume.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_tuple__32 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__32)) __PYX_ERR(2, 270, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__32); + __Pyx_GIVEREF(__pyx_tuple__32); + + /* "talib/_func.pxi":288 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_ADOSC_Lookback( fastperiod , slowperiod ) + */ + __pyx_tuple__33 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__33)) __PYX_ERR(2, 288, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__33); + __Pyx_GIVEREF(__pyx_tuple__33); + + /* "talib/_func.pxi":326 + * double* outreal_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__34 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__34)) __PYX_ERR(2, 326, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__34); + __Pyx_GIVEREF(__pyx_tuple__34); + + /* "talib/_func.pxi":328 + * raise 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__35 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__35)) __PYX_ERR(2, 328, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__35); + __Pyx_GIVEREF(__pyx_tuple__35); + + /* "talib/_func.pxi":333 + * high_data = 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__36 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__36)) __PYX_ERR(2, 333, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__36); + __Pyx_GIVEREF(__pyx_tuple__36); + + /* "talib/_func.pxi":335 + * raise 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__37 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__37)) __PYX_ERR(2, 335, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__37); + __Pyx_GIVEREF(__pyx_tuple__37); + + /* "talib/_func.pxi":340 + * low_data = 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__38 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__38)) __PYX_ERR(2, 340, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__38); + __Pyx_GIVEREF(__pyx_tuple__38); + + /* "talib/_func.pxi":342 + * raise 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__39 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__39)) __PYX_ERR(2, 342, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__39); + __Pyx_GIVEREF(__pyx_tuple__39); + + /* "talib/_func.pxi":348 + * 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__40 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__40)) __PYX_ERR(2, 348, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__40); + __Pyx_GIVEREF(__pyx_tuple__40); + + /* "talib/_func.pxi":350 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_tuple__41 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__41)) __PYX_ERR(2, 350, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__41); + __Pyx_GIVEREF(__pyx_tuple__41); + + /* "talib/_func.pxi":365 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_ADX_Lookback( timeperiod ) + */ + __pyx_tuple__42 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__42)) __PYX_ERR(2, 365, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__42); + __Pyx_GIVEREF(__pyx_tuple__42); + + /* "talib/_func.pxi":403 + * double* outreal_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__43 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__43)) __PYX_ERR(2, 403, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__43); + __Pyx_GIVEREF(__pyx_tuple__43); + + /* "talib/_func.pxi":405 + * raise 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__44 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__44)) __PYX_ERR(2, 405, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__44); + __Pyx_GIVEREF(__pyx_tuple__44); + + /* "talib/_func.pxi":410 + * high_data = 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__45 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__45)) __PYX_ERR(2, 410, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__45); + __Pyx_GIVEREF(__pyx_tuple__45); + + /* "talib/_func.pxi":412 + * raise 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__46 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__46)) __PYX_ERR(2, 412, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__46); + __Pyx_GIVEREF(__pyx_tuple__46); + + /* "talib/_func.pxi":417 + * low_data = 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__47 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__47)) __PYX_ERR(2, 417, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__47); + __Pyx_GIVEREF(__pyx_tuple__47); + + /* "talib/_func.pxi":419 + * raise 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__48 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__48)) __PYX_ERR(2, 419, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__48); + __Pyx_GIVEREF(__pyx_tuple__48); + + /* "talib/_func.pxi":425 + * 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__49 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__49)) __PYX_ERR(2, 425, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__49); + __Pyx_GIVEREF(__pyx_tuple__49); + + /* "talib/_func.pxi":427 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_tuple__50 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__50)) __PYX_ERR(2, 427, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__50); + __Pyx_GIVEREF(__pyx_tuple__50); + + /* "talib/_func.pxi":442 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_ADXR_Lookback( timeperiod ) + */ + __pyx_tuple__51 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__51)) __PYX_ERR(2, 442, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__51); + __Pyx_GIVEREF(__pyx_tuple__51); + + /* "talib/_func.pxi":480 + * double* outreal_data + * 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__52 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__52)) __PYX_ERR(2, 480, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__52); + __Pyx_GIVEREF(__pyx_tuple__52); + + /* "talib/_func.pxi":482 + * 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__53 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__53)) __PYX_ERR(2, 482, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__53); + __Pyx_GIVEREF(__pyx_tuple__53); + + /* "talib/_func.pxi":495 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_APO_Lookback( fastperiod , slowperiod , matype ) + */ + __pyx_tuple__54 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__54)) __PYX_ERR(2, 495, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__54); + __Pyx_GIVEREF(__pyx_tuple__54); + + /* "talib/_func.pxi":535 + * double* outaroonup_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__55 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__55)) __PYX_ERR(2, 535, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__55); + __Pyx_GIVEREF(__pyx_tuple__55); + + /* "talib/_func.pxi":537 + * raise 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__56 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__56)) __PYX_ERR(2, 537, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__56); + __Pyx_GIVEREF(__pyx_tuple__56); + + /* "talib/_func.pxi":542 + * high_data = 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__57 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__57)) __PYX_ERR(2, 542, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__57); + __Pyx_GIVEREF(__pyx_tuple__57); + + /* "talib/_func.pxi":544 + * raise 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__58 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__58)) __PYX_ERR(2, 544, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__58); + __Pyx_GIVEREF(__pyx_tuple__58); + + /* "talib/_func.pxi":550 + * length = high.shape[0] + * if length != low.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_tuple__59 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__59)) __PYX_ERR(2, 550, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__59); + __Pyx_GIVEREF(__pyx_tuple__59); + + /* "talib/_func.pxi":562 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_AROON_Lookback( timeperiod ) + */ + __pyx_tuple__60 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__60)) __PYX_ERR(2, 562, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__60); + __Pyx_GIVEREF(__pyx_tuple__60); + + /* "talib/_func.pxi":603 + * double* outreal_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__61 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__61)) __PYX_ERR(2, 603, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__61); + __Pyx_GIVEREF(__pyx_tuple__61); + + /* "talib/_func.pxi":605 + * raise 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__62 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__62)) __PYX_ERR(2, 605, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__62); + __Pyx_GIVEREF(__pyx_tuple__62); + + /* "talib/_func.pxi":610 + * high_data = 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__63 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__63)) __PYX_ERR(2, 610, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__63); + __Pyx_GIVEREF(__pyx_tuple__63); + + /* "talib/_func.pxi":612 + * raise 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__64 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__64)) __PYX_ERR(2, 612, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__64); + __Pyx_GIVEREF(__pyx_tuple__64); + + /* "talib/_func.pxi":618 + * length = high.shape[0] + * if length != low.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_tuple__65 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__65)) __PYX_ERR(2, 618, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__65); + __Pyx_GIVEREF(__pyx_tuple__65); + + /* "talib/_func.pxi":630 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_AROONOSC_Lookback( timeperiod ) + */ + __pyx_tuple__66 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__66)) __PYX_ERR(2, 630, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__66); + __Pyx_GIVEREF(__pyx_tuple__66); + + /* "talib/_func.pxi":664 + * double* outreal_data + * 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__67 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__67)) __PYX_ERR(2, 664, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__67); + __Pyx_GIVEREF(__pyx_tuple__67); + + /* "talib/_func.pxi":666 + * 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__68 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__68)) __PYX_ERR(2, 666, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__68); + __Pyx_GIVEREF(__pyx_tuple__68); + + /* "talib/_func.pxi":679 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_ASIN_Lookback( ) + */ + __pyx_tuple__69 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__69)) __PYX_ERR(2, 679, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__69); + __Pyx_GIVEREF(__pyx_tuple__69); + + /* "talib/_func.pxi":713 + * double* outreal_data + * 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__70 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__70)) __PYX_ERR(2, 713, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__70); + __Pyx_GIVEREF(__pyx_tuple__70); + + /* "talib/_func.pxi":715 + * 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__71 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__71)) __PYX_ERR(2, 715, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__71); + __Pyx_GIVEREF(__pyx_tuple__71); + + /* "talib/_func.pxi":728 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_ATAN_Lookback( ) + */ + __pyx_tuple__72 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__72)) __PYX_ERR(2, 728, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__72); + __Pyx_GIVEREF(__pyx_tuple__72); + + /* "talib/_func.pxi":766 + * double* outreal_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__73 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__73)) __PYX_ERR(2, 766, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__73); + __Pyx_GIVEREF(__pyx_tuple__73); + + /* "talib/_func.pxi":768 + * raise 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__74 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__74)) __PYX_ERR(2, 768, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__74); + __Pyx_GIVEREF(__pyx_tuple__74); + + /* "talib/_func.pxi":773 + * high_data = 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__75 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__75)) __PYX_ERR(2, 773, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__75); + __Pyx_GIVEREF(__pyx_tuple__75); + + /* "talib/_func.pxi":775 + * raise 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__76 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__76)) __PYX_ERR(2, 775, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__76); + __Pyx_GIVEREF(__pyx_tuple__76); + + /* "talib/_func.pxi":780 + * low_data = 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__77 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__77)) __PYX_ERR(2, 780, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__77); + __Pyx_GIVEREF(__pyx_tuple__77); + + /* "talib/_func.pxi":782 + * raise 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__78 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__78)) __PYX_ERR(2, 782, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__78); + __Pyx_GIVEREF(__pyx_tuple__78); + + /* "talib/_func.pxi":788 + * 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__79 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__79)) __PYX_ERR(2, 788, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__79); + __Pyx_GIVEREF(__pyx_tuple__79); + + /* "talib/_func.pxi":790 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_tuple__80 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__80)) __PYX_ERR(2, 790, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__80); + __Pyx_GIVEREF(__pyx_tuple__80); + + /* "talib/_func.pxi":805 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_ATR_Lookback( timeperiod ) + */ + __pyx_tuple__81 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__81)) __PYX_ERR(2, 805, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__81); + __Pyx_GIVEREF(__pyx_tuple__81); + + /* "talib/_func.pxi":842 + * double* outreal_data + * 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__82 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__82)) __PYX_ERR(2, 842, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__82); + __Pyx_GIVEREF(__pyx_tuple__82); + + /* "talib/_func.pxi":844 + * 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__83 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__83)) __PYX_ERR(2, 844, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__83); + __Pyx_GIVEREF(__pyx_tuple__83); + + /* "talib/_func.pxi":849 + * open_data = 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__84 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__84)) __PYX_ERR(2, 849, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__84); + __Pyx_GIVEREF(__pyx_tuple__84); + + /* "talib/_func.pxi":851 + * raise 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__85 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__85)) __PYX_ERR(2, 851, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__85); + __Pyx_GIVEREF(__pyx_tuple__85); + + /* "talib/_func.pxi":856 + * high_data = 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__86 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__86)) __PYX_ERR(2, 856, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__86); + __Pyx_GIVEREF(__pyx_tuple__86); + + /* "talib/_func.pxi":858 + * raise 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__87 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__87)) __PYX_ERR(2, 858, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__87); + __Pyx_GIVEREF(__pyx_tuple__87); + + /* "talib/_func.pxi":863 + * low_data = 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__88 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__88)) __PYX_ERR(2, 863, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__88); + __Pyx_GIVEREF(__pyx_tuple__88); + + /* "talib/_func.pxi":865 + * raise 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__89 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__89)) __PYX_ERR(2, 865, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__89); + __Pyx_GIVEREF(__pyx_tuple__89); + + /* "talib/_func.pxi":871 + * 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__90 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__90)) __PYX_ERR(2, 871, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__90); + __Pyx_GIVEREF(__pyx_tuple__90); + + /* "talib/_func.pxi":873 + * 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__91 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__91)) __PYX_ERR(2, 873, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__91); + __Pyx_GIVEREF(__pyx_tuple__91); + + /* "talib/_func.pxi":875 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_tuple__92 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__92)) __PYX_ERR(2, 875, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__92); + __Pyx_GIVEREF(__pyx_tuple__92); + + /* "talib/_func.pxi":893 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_AVGPRICE_Lookback( ) + */ + __pyx_tuple__93 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__93)) __PYX_ERR(2, 893, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__93); + __Pyx_GIVEREF(__pyx_tuple__93); + + /* "talib/_func.pxi":938 + * double* outreallowerband_data + * 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__94 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__94)) __PYX_ERR(2, 938, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__94); + __Pyx_GIVEREF(__pyx_tuple__94); + + /* "talib/_func.pxi":940 + * 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__95 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__95)) __PYX_ERR(2, 940, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__95); + __Pyx_GIVEREF(__pyx_tuple__95); + + /* "talib/_func.pxi":953 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_BBANDS_Lookback( timeperiod , nbdevup , nbdevdn , matype ) + */ + __pyx_tuple__96 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__96)) __PYX_ERR(2, 953, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__96); + __Pyx_GIVEREF(__pyx_tuple__96); + + /* "talib/_func.pxi":999 + * double* outreal_data + * 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__97 = PyTuple_Pack(1, __pyx_kp_s_real0_is_not_double); if (unlikely(!__pyx_tuple__97)) __PYX_ERR(2, 999, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__97); + __Pyx_GIVEREF(__pyx_tuple__97); + + /* "talib/_func.pxi":1001 + * 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__98 = PyTuple_Pack(1, __pyx_kp_s_real0_has_wrong_dimensions); if (unlikely(!__pyx_tuple__98)) __PYX_ERR(2, 1001, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__98); + __Pyx_GIVEREF(__pyx_tuple__98); + + /* "talib/_func.pxi":1006 + * real0_data = 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__99 = PyTuple_Pack(1, __pyx_kp_s_real1_is_not_double); if (unlikely(!__pyx_tuple__99)) __PYX_ERR(2, 1006, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__99); + __Pyx_GIVEREF(__pyx_tuple__99); + + /* "talib/_func.pxi":1008 + * 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__100 = PyTuple_Pack(1, __pyx_kp_s_real1_has_wrong_dimensions); if (unlikely(!__pyx_tuple__100)) __PYX_ERR(2, 1008, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__100); + __Pyx_GIVEREF(__pyx_tuple__100); + + /* "talib/_func.pxi":1014 + * length = real0.shape[0] + * if length != real1.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_tuple__101 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__101)) __PYX_ERR(2, 1014, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__101); + __Pyx_GIVEREF(__pyx_tuple__101); + + /* "talib/_func.pxi":1026 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_BETA_Lookback( timeperiod ) + */ + __pyx_tuple__102 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__102)) __PYX_ERR(2, 1026, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__102); + __Pyx_GIVEREF(__pyx_tuple__102); + + /* "talib/_func.pxi":1063 + * double* outreal_data + * 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__103 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__103)) __PYX_ERR(2, 1063, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__103); + __Pyx_GIVEREF(__pyx_tuple__103); + + /* "talib/_func.pxi":1065 + * 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__104 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__104)) __PYX_ERR(2, 1065, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__104); + __Pyx_GIVEREF(__pyx_tuple__104); + + /* "talib/_func.pxi":1070 + * open_data = 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__105 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__105)) __PYX_ERR(2, 1070, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__105); + __Pyx_GIVEREF(__pyx_tuple__105); + + /* "talib/_func.pxi":1072 + * raise 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__106 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__106)) __PYX_ERR(2, 1072, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__106); + __Pyx_GIVEREF(__pyx_tuple__106); + + /* "talib/_func.pxi":1077 + * high_data = 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__107 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__107)) __PYX_ERR(2, 1077, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__107); + __Pyx_GIVEREF(__pyx_tuple__107); + + /* "talib/_func.pxi":1079 + * raise 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__108 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__108)) __PYX_ERR(2, 1079, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__108); + __Pyx_GIVEREF(__pyx_tuple__108); + + /* "talib/_func.pxi":1084 + * low_data = 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__109 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__109)) __PYX_ERR(2, 1084, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__109); + __Pyx_GIVEREF(__pyx_tuple__109); + + /* "talib/_func.pxi":1086 + * raise 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__110 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__110)) __PYX_ERR(2, 1086, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__110); + __Pyx_GIVEREF(__pyx_tuple__110); + + /* "talib/_func.pxi":1092 + * 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__111 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__111)) __PYX_ERR(2, 1092, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__111); + __Pyx_GIVEREF(__pyx_tuple__111); + + /* "talib/_func.pxi":1094 + * 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__112 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__112)) __PYX_ERR(2, 1094, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__112); + __Pyx_GIVEREF(__pyx_tuple__112); + + /* "talib/_func.pxi":1096 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_tuple__113 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__113)) __PYX_ERR(2, 1096, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__113); + __Pyx_GIVEREF(__pyx_tuple__113); + + /* "talib/_func.pxi":1114 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_BOP_Lookback( ) + */ + __pyx_tuple__114 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__114)) __PYX_ERR(2, 1114, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__114); + __Pyx_GIVEREF(__pyx_tuple__114); + + /* "talib/_func.pxi":1152 + * double* outreal_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__115 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__115)) __PYX_ERR(2, 1152, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__115); + __Pyx_GIVEREF(__pyx_tuple__115); + + /* "talib/_func.pxi":1154 + * raise 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__116 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__116)) __PYX_ERR(2, 1154, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__116); + __Pyx_GIVEREF(__pyx_tuple__116); + + /* "talib/_func.pxi":1159 + * high_data = 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__117 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__117)) __PYX_ERR(2, 1159, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__117); + __Pyx_GIVEREF(__pyx_tuple__117); + + /* "talib/_func.pxi":1161 + * raise 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__118 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__118)) __PYX_ERR(2, 1161, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__118); + __Pyx_GIVEREF(__pyx_tuple__118); + + /* "talib/_func.pxi":1166 + * low_data = 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__119 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__119)) __PYX_ERR(2, 1166, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__119); + __Pyx_GIVEREF(__pyx_tuple__119); + + /* "talib/_func.pxi":1168 + * raise 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__120 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__120)) __PYX_ERR(2, 1168, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__120); + __Pyx_GIVEREF(__pyx_tuple__120); + + /* "talib/_func.pxi":1174 + * 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__121 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__121)) __PYX_ERR(2, 1174, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__121); + __Pyx_GIVEREF(__pyx_tuple__121); + + /* "talib/_func.pxi":1176 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_tuple__122 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__122)) __PYX_ERR(2, 1176, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__122); + __Pyx_GIVEREF(__pyx_tuple__122); + + /* "talib/_func.pxi":1191 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CCI_Lookback( timeperiod ) + */ + __pyx_tuple__123 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__123)) __PYX_ERR(2, 1191, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__123); + __Pyx_GIVEREF(__pyx_tuple__123); + + /* "talib/_func.pxi":1228 + * int* outinteger_data + * 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__124 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__124)) __PYX_ERR(2, 1228, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__124); + __Pyx_GIVEREF(__pyx_tuple__124); + + /* "talib/_func.pxi":1230 + * 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__125 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__125)) __PYX_ERR(2, 1230, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__125); + __Pyx_GIVEREF(__pyx_tuple__125); + + /* "talib/_func.pxi":1235 + * open_data = 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__126 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__126)) __PYX_ERR(2, 1235, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__126); + __Pyx_GIVEREF(__pyx_tuple__126); + + /* "talib/_func.pxi":1237 + * raise 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__127 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__127)) __PYX_ERR(2, 1237, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__127); + __Pyx_GIVEREF(__pyx_tuple__127); + + /* "talib/_func.pxi":1242 + * high_data = 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__128 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__128)) __PYX_ERR(2, 1242, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__128); + __Pyx_GIVEREF(__pyx_tuple__128); + + /* "talib/_func.pxi":1244 + * raise 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__129 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__129)) __PYX_ERR(2, 1244, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__129); + __Pyx_GIVEREF(__pyx_tuple__129); + + /* "talib/_func.pxi":1249 + * low_data = 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__130 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__130)) __PYX_ERR(2, 1249, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__130); + __Pyx_GIVEREF(__pyx_tuple__130); + + /* "talib/_func.pxi":1251 + * raise 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__131 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__131)) __PYX_ERR(2, 1251, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__131); + __Pyx_GIVEREF(__pyx_tuple__131); + + /* "talib/_func.pxi":1257 + * 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__132 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__132)) __PYX_ERR(2, 1257, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__132); + __Pyx_GIVEREF(__pyx_tuple__132); + + /* "talib/_func.pxi":1259 + * 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__133 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__133)) __PYX_ERR(2, 1259, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__133); + __Pyx_GIVEREF(__pyx_tuple__133); + + /* "talib/_func.pxi":1261 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_tuple__134 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__134)) __PYX_ERR(2, 1261, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__134); + __Pyx_GIVEREF(__pyx_tuple__134); + + /* "talib/_func.pxi":1279 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDL2CROWS_Lookback( ) + */ + __pyx_tuple__135 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__135)) __PYX_ERR(2, 1279, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__135); + __Pyx_GIVEREF(__pyx_tuple__135); + + /* "talib/_func.pxi":1316 + * int* outinteger_data + * 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__136 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__136)) __PYX_ERR(2, 1316, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__136); + __Pyx_GIVEREF(__pyx_tuple__136); + + /* "talib/_func.pxi":1318 + * 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__137 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__137)) __PYX_ERR(2, 1318, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__137); + __Pyx_GIVEREF(__pyx_tuple__137); + + /* "talib/_func.pxi":1323 + * open_data = 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__138 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__138)) __PYX_ERR(2, 1323, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__138); + __Pyx_GIVEREF(__pyx_tuple__138); + + /* "talib/_func.pxi":1325 + * raise 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__139 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__139)) __PYX_ERR(2, 1325, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__139); + __Pyx_GIVEREF(__pyx_tuple__139); + + /* "talib/_func.pxi":1330 + * high_data = 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__140 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__140)) __PYX_ERR(2, 1330, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__140); + __Pyx_GIVEREF(__pyx_tuple__140); + + /* "talib/_func.pxi":1332 + * raise 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__141 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__141)) __PYX_ERR(2, 1332, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__141); + __Pyx_GIVEREF(__pyx_tuple__141); + + /* "talib/_func.pxi":1337 + * low_data = 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__142 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__142)) __PYX_ERR(2, 1337, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__142); + __Pyx_GIVEREF(__pyx_tuple__142); + + /* "talib/_func.pxi":1339 + * raise 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__143 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__143)) __PYX_ERR(2, 1339, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__143); + __Pyx_GIVEREF(__pyx_tuple__143); + + /* "talib/_func.pxi":1345 + * 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__144 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__144)) __PYX_ERR(2, 1345, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__144); + __Pyx_GIVEREF(__pyx_tuple__144); + + /* "talib/_func.pxi":1347 + * 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__145 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__145)) __PYX_ERR(2, 1347, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__145); + __Pyx_GIVEREF(__pyx_tuple__145); + + /* "talib/_func.pxi":1349 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_tuple__146 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__146)) __PYX_ERR(2, 1349, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__146); + __Pyx_GIVEREF(__pyx_tuple__146); + + /* "talib/_func.pxi":1367 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDL3BLACKCROWS_Lookback( ) + */ + __pyx_tuple__147 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__147)) __PYX_ERR(2, 1367, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__147); + __Pyx_GIVEREF(__pyx_tuple__147); + + /* "talib/_func.pxi":1404 + * int* outinteger_data + * 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__148 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__148)) __PYX_ERR(2, 1404, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__148); + __Pyx_GIVEREF(__pyx_tuple__148); + + /* "talib/_func.pxi":1406 + * 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__149 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__149)) __PYX_ERR(2, 1406, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__149); + __Pyx_GIVEREF(__pyx_tuple__149); + + /* "talib/_func.pxi":1411 + * open_data = 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__150 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__150)) __PYX_ERR(2, 1411, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__150); + __Pyx_GIVEREF(__pyx_tuple__150); + + /* "talib/_func.pxi":1413 + * raise 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__151 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__151)) __PYX_ERR(2, 1413, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__151); + __Pyx_GIVEREF(__pyx_tuple__151); + + /* "talib/_func.pxi":1418 + * high_data = 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__152 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__152)) __PYX_ERR(2, 1418, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__152); + __Pyx_GIVEREF(__pyx_tuple__152); + + /* "talib/_func.pxi":1420 + * raise 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__153 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__153)) __PYX_ERR(2, 1420, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__153); + __Pyx_GIVEREF(__pyx_tuple__153); + + /* "talib/_func.pxi":1425 + * low_data = 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__154 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__154)) __PYX_ERR(2, 1425, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__154); + __Pyx_GIVEREF(__pyx_tuple__154); + + /* "talib/_func.pxi":1427 + * raise 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__155 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__155)) __PYX_ERR(2, 1427, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__155); + __Pyx_GIVEREF(__pyx_tuple__155); + + /* "talib/_func.pxi":1433 + * 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__156 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__156)) __PYX_ERR(2, 1433, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__156); + __Pyx_GIVEREF(__pyx_tuple__156); + + /* "talib/_func.pxi":1435 + * 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__157 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__157)) __PYX_ERR(2, 1435, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__157); + __Pyx_GIVEREF(__pyx_tuple__157); + + /* "talib/_func.pxi":1437 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_tuple__158 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__158)) __PYX_ERR(2, 1437, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__158); + __Pyx_GIVEREF(__pyx_tuple__158); + + /* "talib/_func.pxi":1455 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDL3INSIDE_Lookback( ) + */ + __pyx_tuple__159 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__159)) __PYX_ERR(2, 1455, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__159); + __Pyx_GIVEREF(__pyx_tuple__159); + + /* "talib/_func.pxi":1492 + * int* outinteger_data + * 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__160 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__160)) __PYX_ERR(2, 1492, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__160); + __Pyx_GIVEREF(__pyx_tuple__160); + + /* "talib/_func.pxi":1494 + * 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__161 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__161)) __PYX_ERR(2, 1494, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__161); + __Pyx_GIVEREF(__pyx_tuple__161); + + /* "talib/_func.pxi":1499 + * open_data = 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__162 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__162)) __PYX_ERR(2, 1499, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__162); + __Pyx_GIVEREF(__pyx_tuple__162); + + /* "talib/_func.pxi":1501 + * raise 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__163 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__163)) __PYX_ERR(2, 1501, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__163); + __Pyx_GIVEREF(__pyx_tuple__163); + + /* "talib/_func.pxi":1506 + * high_data = 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__164 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__164)) __PYX_ERR(2, 1506, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__164); + __Pyx_GIVEREF(__pyx_tuple__164); + + /* "talib/_func.pxi":1508 + * raise 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__165 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__165)) __PYX_ERR(2, 1508, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__165); + __Pyx_GIVEREF(__pyx_tuple__165); + + /* "talib/_func.pxi":1513 + * low_data = 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__166 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__166)) __PYX_ERR(2, 1513, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__166); + __Pyx_GIVEREF(__pyx_tuple__166); + + /* "talib/_func.pxi":1515 + * raise 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__167 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__167)) __PYX_ERR(2, 1515, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__167); + __Pyx_GIVEREF(__pyx_tuple__167); + + /* "talib/_func.pxi":1521 + * 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__168 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__168)) __PYX_ERR(2, 1521, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__168); + __Pyx_GIVEREF(__pyx_tuple__168); + + /* "talib/_func.pxi":1523 + * 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__169 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__169)) __PYX_ERR(2, 1523, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__169); + __Pyx_GIVEREF(__pyx_tuple__169); + + /* "talib/_func.pxi":1525 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_tuple__170 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__170)) __PYX_ERR(2, 1525, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__170); + __Pyx_GIVEREF(__pyx_tuple__170); + + /* "talib/_func.pxi":1543 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDL3LINESTRIKE_Lookback( ) + */ + __pyx_tuple__171 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__171)) __PYX_ERR(2, 1543, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__171); + __Pyx_GIVEREF(__pyx_tuple__171); + + /* "talib/_func.pxi":1580 + * int* outinteger_data + * 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__172 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__172)) __PYX_ERR(2, 1580, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__172); + __Pyx_GIVEREF(__pyx_tuple__172); + + /* "talib/_func.pxi":1582 + * 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__173 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__173)) __PYX_ERR(2, 1582, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__173); + __Pyx_GIVEREF(__pyx_tuple__173); + + /* "talib/_func.pxi":1587 + * open_data = 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__174 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__174)) __PYX_ERR(2, 1587, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__174); + __Pyx_GIVEREF(__pyx_tuple__174); + + /* "talib/_func.pxi":1589 + * raise 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__175 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__175)) __PYX_ERR(2, 1589, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__175); + __Pyx_GIVEREF(__pyx_tuple__175); + + /* "talib/_func.pxi":1594 + * high_data = 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__176 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__176)) __PYX_ERR(2, 1594, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__176); + __Pyx_GIVEREF(__pyx_tuple__176); + + /* "talib/_func.pxi":1596 + * raise 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__177 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__177)) __PYX_ERR(2, 1596, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__177); + __Pyx_GIVEREF(__pyx_tuple__177); + + /* "talib/_func.pxi":1601 + * low_data = 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__178 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__178)) __PYX_ERR(2, 1601, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__178); + __Pyx_GIVEREF(__pyx_tuple__178); + + /* "talib/_func.pxi":1603 + * raise 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__179 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__179)) __PYX_ERR(2, 1603, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__179); + __Pyx_GIVEREF(__pyx_tuple__179); + + /* "talib/_func.pxi":1609 + * 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__180 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__180)) __PYX_ERR(2, 1609, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__180); + __Pyx_GIVEREF(__pyx_tuple__180); + + /* "talib/_func.pxi":1611 + * 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__181 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__181)) __PYX_ERR(2, 1611, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__181); + __Pyx_GIVEREF(__pyx_tuple__181); + + /* "talib/_func.pxi":1613 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_tuple__182 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__182)) __PYX_ERR(2, 1613, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__182); + __Pyx_GIVEREF(__pyx_tuple__182); + + /* "talib/_func.pxi":1631 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDL3OUTSIDE_Lookback( ) + */ + __pyx_tuple__183 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__183)) __PYX_ERR(2, 1631, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__183); + __Pyx_GIVEREF(__pyx_tuple__183); + + /* "talib/_func.pxi":1668 + * int* outinteger_data + * 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(2, 1668, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__184); + __Pyx_GIVEREF(__pyx_tuple__184); + + /* "talib/_func.pxi":1670 + * 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(2, 1670, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__185); + __Pyx_GIVEREF(__pyx_tuple__185); + + /* "talib/_func.pxi":1675 + * open_data = 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(2, 1675, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__186); + __Pyx_GIVEREF(__pyx_tuple__186); + + /* "talib/_func.pxi":1677 + * raise 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(2, 1677, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__187); + __Pyx_GIVEREF(__pyx_tuple__187); + + /* "talib/_func.pxi":1682 + * high_data = 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(2, 1682, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__188); + __Pyx_GIVEREF(__pyx_tuple__188); + + /* "talib/_func.pxi":1684 + * raise 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(2, 1684, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__189); + __Pyx_GIVEREF(__pyx_tuple__189); + + /* "talib/_func.pxi":1689 + * low_data = 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(2, 1689, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__190); + __Pyx_GIVEREF(__pyx_tuple__190); + + /* "talib/_func.pxi":1691 + * raise 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(2, 1691, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__191); + __Pyx_GIVEREF(__pyx_tuple__191); + + /* "talib/_func.pxi":1697 + * 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(2, 1697, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__192); + __Pyx_GIVEREF(__pyx_tuple__192); + + /* "talib/_func.pxi":1699 + * 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(2, 1699, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__193); + __Pyx_GIVEREF(__pyx_tuple__193); + + /* "talib/_func.pxi":1701 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_tuple__194 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__194)) __PYX_ERR(2, 1701, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__194); + __Pyx_GIVEREF(__pyx_tuple__194); + + /* "talib/_func.pxi":1719 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDL3STARSINSOUTH_Lookback( ) + */ + __pyx_tuple__195 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__195)) __PYX_ERR(2, 1719, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__195); + __Pyx_GIVEREF(__pyx_tuple__195); + + /* "talib/_func.pxi":1756 + * int* outinteger_data + * 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__196 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__196)) __PYX_ERR(2, 1756, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__196); + __Pyx_GIVEREF(__pyx_tuple__196); + + /* "talib/_func.pxi":1758 + * 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__197 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__197)) __PYX_ERR(2, 1758, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__197); + __Pyx_GIVEREF(__pyx_tuple__197); + + /* "talib/_func.pxi":1763 + * open_data = 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__198 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__198)) __PYX_ERR(2, 1763, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__198); + __Pyx_GIVEREF(__pyx_tuple__198); + + /* "talib/_func.pxi":1765 + * raise 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__199 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__199)) __PYX_ERR(2, 1765, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__199); + __Pyx_GIVEREF(__pyx_tuple__199); + + /* "talib/_func.pxi":1770 + * high_data = 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__200 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__200)) __PYX_ERR(2, 1770, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__200); + __Pyx_GIVEREF(__pyx_tuple__200); + + /* "talib/_func.pxi":1772 + * raise 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__201 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__201)) __PYX_ERR(2, 1772, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__201); + __Pyx_GIVEREF(__pyx_tuple__201); + + /* "talib/_func.pxi":1777 + * low_data = 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__202 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__202)) __PYX_ERR(2, 1777, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__202); + __Pyx_GIVEREF(__pyx_tuple__202); + + /* "talib/_func.pxi":1779 + * raise 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__203 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__203)) __PYX_ERR(2, 1779, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__203); + __Pyx_GIVEREF(__pyx_tuple__203); + + /* "talib/_func.pxi":1785 + * 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__204 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__204)) __PYX_ERR(2, 1785, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__204); + __Pyx_GIVEREF(__pyx_tuple__204); + + /* "talib/_func.pxi":1787 + * 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__205 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__205)) __PYX_ERR(2, 1787, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__205); + __Pyx_GIVEREF(__pyx_tuple__205); + + /* "talib/_func.pxi":1789 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_tuple__206 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__206)) __PYX_ERR(2, 1789, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__206); + __Pyx_GIVEREF(__pyx_tuple__206); + + /* "talib/_func.pxi":1807 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDL3WHITESOLDIERS_Lookback( ) + */ + __pyx_tuple__207 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__207)) __PYX_ERR(2, 1807, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__207); + __Pyx_GIVEREF(__pyx_tuple__207); + + /* "talib/_func.pxi":1846 + * int* outinteger_data + * 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__208 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__208)) __PYX_ERR(2, 1846, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__208); + __Pyx_GIVEREF(__pyx_tuple__208); + + /* "talib/_func.pxi":1848 + * 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__209 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__209)) __PYX_ERR(2, 1848, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__209); + __Pyx_GIVEREF(__pyx_tuple__209); + + /* "talib/_func.pxi":1853 + * open_data = 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__210 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__210)) __PYX_ERR(2, 1853, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__210); + __Pyx_GIVEREF(__pyx_tuple__210); + + /* "talib/_func.pxi":1855 + * raise 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__211 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__211)) __PYX_ERR(2, 1855, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__211); + __Pyx_GIVEREF(__pyx_tuple__211); + + /* "talib/_func.pxi":1860 + * high_data = 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__212 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__212)) __PYX_ERR(2, 1860, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__212); + __Pyx_GIVEREF(__pyx_tuple__212); + + /* "talib/_func.pxi":1862 + * raise 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__213 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__213)) __PYX_ERR(2, 1862, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__213); + __Pyx_GIVEREF(__pyx_tuple__213); + + /* "talib/_func.pxi":1867 + * low_data = 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__214 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__214)) __PYX_ERR(2, 1867, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__214); + __Pyx_GIVEREF(__pyx_tuple__214); + + /* "talib/_func.pxi":1869 + * raise 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__215 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__215)) __PYX_ERR(2, 1869, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__215); + __Pyx_GIVEREF(__pyx_tuple__215); + + /* "talib/_func.pxi":1875 + * 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__216 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__216)) __PYX_ERR(2, 1875, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__216); + __Pyx_GIVEREF(__pyx_tuple__216); + + /* "talib/_func.pxi":1877 + * 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__217 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__217)) __PYX_ERR(2, 1877, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__217); + __Pyx_GIVEREF(__pyx_tuple__217); + + /* "talib/_func.pxi":1879 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_tuple__218 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__218)) __PYX_ERR(2, 1879, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__218); + __Pyx_GIVEREF(__pyx_tuple__218); + + /* "talib/_func.pxi":1897 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLABANDONEDBABY_Lookback( penetration ) + */ + __pyx_tuple__219 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__219)) __PYX_ERR(2, 1897, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__219); + __Pyx_GIVEREF(__pyx_tuple__219); + + /* "talib/_func.pxi":1934 + * int* outinteger_data + * 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__220 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__220)) __PYX_ERR(2, 1934, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__220); + __Pyx_GIVEREF(__pyx_tuple__220); + + /* "talib/_func.pxi":1936 + * 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__221 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__221)) __PYX_ERR(2, 1936, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__221); + __Pyx_GIVEREF(__pyx_tuple__221); + + /* "talib/_func.pxi":1941 + * open_data = 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__222 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__222)) __PYX_ERR(2, 1941, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__222); + __Pyx_GIVEREF(__pyx_tuple__222); + + /* "talib/_func.pxi":1943 + * raise 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__223 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__223)) __PYX_ERR(2, 1943, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__223); + __Pyx_GIVEREF(__pyx_tuple__223); + + /* "talib/_func.pxi":1948 + * high_data = 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__224 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__224)) __PYX_ERR(2, 1948, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__224); + __Pyx_GIVEREF(__pyx_tuple__224); + + /* "talib/_func.pxi":1950 + * raise 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__225 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__225)) __PYX_ERR(2, 1950, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__225); + __Pyx_GIVEREF(__pyx_tuple__225); + + /* "talib/_func.pxi":1955 + * low_data = 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__226 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__226)) __PYX_ERR(2, 1955, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__226); + __Pyx_GIVEREF(__pyx_tuple__226); + + /* "talib/_func.pxi":1957 + * raise 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__227 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__227)) __PYX_ERR(2, 1957, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__227); + __Pyx_GIVEREF(__pyx_tuple__227); + + /* "talib/_func.pxi":1963 + * 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__228 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__228)) __PYX_ERR(2, 1963, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__228); + __Pyx_GIVEREF(__pyx_tuple__228); + + /* "talib/_func.pxi":1965 + * 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__229 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__229)) __PYX_ERR(2, 1965, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__229); + __Pyx_GIVEREF(__pyx_tuple__229); + + /* "talib/_func.pxi":1967 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_tuple__230 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__230)) __PYX_ERR(2, 1967, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__230); + __Pyx_GIVEREF(__pyx_tuple__230); + + /* "talib/_func.pxi":1985 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLADVANCEBLOCK_Lookback( ) + */ + __pyx_tuple__231 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__231)) __PYX_ERR(2, 1985, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__231); + __Pyx_GIVEREF(__pyx_tuple__231); + + /* "talib/_func.pxi":2022 + * int* outinteger_data + * 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__232 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__232)) __PYX_ERR(2, 2022, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__232); + __Pyx_GIVEREF(__pyx_tuple__232); + + /* "talib/_func.pxi":2024 + * 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__233 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__233)) __PYX_ERR(2, 2024, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__233); + __Pyx_GIVEREF(__pyx_tuple__233); + + /* "talib/_func.pxi":2029 + * open_data = 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__234 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__234)) __PYX_ERR(2, 2029, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__234); + __Pyx_GIVEREF(__pyx_tuple__234); + + /* "talib/_func.pxi":2031 + * raise 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__235 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__235)) __PYX_ERR(2, 2031, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__235); + __Pyx_GIVEREF(__pyx_tuple__235); + + /* "talib/_func.pxi":2036 + * high_data = 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__236 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__236)) __PYX_ERR(2, 2036, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__236); + __Pyx_GIVEREF(__pyx_tuple__236); + + /* "talib/_func.pxi":2038 + * raise 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__237 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__237)) __PYX_ERR(2, 2038, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__237); + __Pyx_GIVEREF(__pyx_tuple__237); + + /* "talib/_func.pxi":2043 + * low_data = 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__238 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__238)) __PYX_ERR(2, 2043, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__238); + __Pyx_GIVEREF(__pyx_tuple__238); + + /* "talib/_func.pxi":2045 + * raise 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__239 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__239)) __PYX_ERR(2, 2045, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__239); + __Pyx_GIVEREF(__pyx_tuple__239); + + /* "talib/_func.pxi":2051 + * 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__240 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__240)) __PYX_ERR(2, 2051, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__240); + __Pyx_GIVEREF(__pyx_tuple__240); + + /* "talib/_func.pxi":2053 + * 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__241 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__241)) __PYX_ERR(2, 2053, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__241); + __Pyx_GIVEREF(__pyx_tuple__241); + + /* "talib/_func.pxi":2055 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_tuple__242 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__242)) __PYX_ERR(2, 2055, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__242); + __Pyx_GIVEREF(__pyx_tuple__242); + + /* "talib/_func.pxi":2073 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLBELTHOLD_Lookback( ) + */ + __pyx_tuple__243 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__243)) __PYX_ERR(2, 2073, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__243); + __Pyx_GIVEREF(__pyx_tuple__243); + + /* "talib/_func.pxi":2110 + * int* outinteger_data + * 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__244 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__244)) __PYX_ERR(2, 2110, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__244); + __Pyx_GIVEREF(__pyx_tuple__244); + + /* "talib/_func.pxi":2112 + * 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__245 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__245)) __PYX_ERR(2, 2112, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__245); + __Pyx_GIVEREF(__pyx_tuple__245); + + /* "talib/_func.pxi":2117 + * open_data = 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__246 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__246)) __PYX_ERR(2, 2117, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__246); + __Pyx_GIVEREF(__pyx_tuple__246); + + /* "talib/_func.pxi":2119 + * raise 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__247 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__247)) __PYX_ERR(2, 2119, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__247); + __Pyx_GIVEREF(__pyx_tuple__247); + + /* "talib/_func.pxi":2124 + * high_data = 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__248 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__248)) __PYX_ERR(2, 2124, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__248); + __Pyx_GIVEREF(__pyx_tuple__248); + + /* "talib/_func.pxi":2126 + * raise 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__249 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__249)) __PYX_ERR(2, 2126, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__249); + __Pyx_GIVEREF(__pyx_tuple__249); + + /* "talib/_func.pxi":2131 + * low_data = 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__250 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__250)) __PYX_ERR(2, 2131, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__250); + __Pyx_GIVEREF(__pyx_tuple__250); + + /* "talib/_func.pxi":2133 + * raise 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__251 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__251)) __PYX_ERR(2, 2133, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__251); + __Pyx_GIVEREF(__pyx_tuple__251); + + /* "talib/_func.pxi":2139 + * 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__252 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__252)) __PYX_ERR(2, 2139, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__252); + __Pyx_GIVEREF(__pyx_tuple__252); + + /* "talib/_func.pxi":2141 + * 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__253 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__253)) __PYX_ERR(2, 2141, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__253); + __Pyx_GIVEREF(__pyx_tuple__253); + + /* "talib/_func.pxi":2143 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_tuple__254 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__254)) __PYX_ERR(2, 2143, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__254); + __Pyx_GIVEREF(__pyx_tuple__254); + + /* "talib/_func.pxi":2161 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLBREAKAWAY_Lookback( ) + */ + __pyx_tuple__255 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__255)) __PYX_ERR(2, 2161, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__255); + __Pyx_GIVEREF(__pyx_tuple__255); + + /* "talib/_func.pxi":2198 + * int* outinteger_data + * 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__256 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__256)) __PYX_ERR(2, 2198, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__256); + __Pyx_GIVEREF(__pyx_tuple__256); + + /* "talib/_func.pxi":2200 + * 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__257 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__257)) __PYX_ERR(2, 2200, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__257); + __Pyx_GIVEREF(__pyx_tuple__257); + + /* "talib/_func.pxi":2205 + * open_data = 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__258 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__258)) __PYX_ERR(2, 2205, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__258); + __Pyx_GIVEREF(__pyx_tuple__258); + + /* "talib/_func.pxi":2207 + * raise 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__259 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__259)) __PYX_ERR(2, 2207, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__259); + __Pyx_GIVEREF(__pyx_tuple__259); + + /* "talib/_func.pxi":2212 + * high_data = 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__260 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__260)) __PYX_ERR(2, 2212, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__260); + __Pyx_GIVEREF(__pyx_tuple__260); + + /* "talib/_func.pxi":2214 + * raise 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__261 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__261)) __PYX_ERR(2, 2214, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__261); + __Pyx_GIVEREF(__pyx_tuple__261); + + /* "talib/_func.pxi":2219 + * low_data = 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__262 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__262)) __PYX_ERR(2, 2219, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__262); + __Pyx_GIVEREF(__pyx_tuple__262); + + /* "talib/_func.pxi":2221 + * raise 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__263 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__263)) __PYX_ERR(2, 2221, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__263); + __Pyx_GIVEREF(__pyx_tuple__263); + + /* "talib/_func.pxi":2227 + * 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__264 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__264)) __PYX_ERR(2, 2227, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__264); + __Pyx_GIVEREF(__pyx_tuple__264); + + /* "talib/_func.pxi":2229 + * 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__265 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__265)) __PYX_ERR(2, 2229, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__265); + __Pyx_GIVEREF(__pyx_tuple__265); + + /* "talib/_func.pxi":2231 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_tuple__266 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__266)) __PYX_ERR(2, 2231, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__266); + __Pyx_GIVEREF(__pyx_tuple__266); + + /* "talib/_func.pxi":2249 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLCLOSINGMARUBOZU_Lookback( ) + */ + __pyx_tuple__267 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__267)) __PYX_ERR(2, 2249, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__267); + __Pyx_GIVEREF(__pyx_tuple__267); + + /* "talib/_func.pxi":2286 + * int* outinteger_data + * 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__268 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__268)) __PYX_ERR(2, 2286, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__268); + __Pyx_GIVEREF(__pyx_tuple__268); + + /* "talib/_func.pxi":2288 + * 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__269 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__269)) __PYX_ERR(2, 2288, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__269); + __Pyx_GIVEREF(__pyx_tuple__269); + + /* "talib/_func.pxi":2293 + * open_data = 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__270 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__270)) __PYX_ERR(2, 2293, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__270); + __Pyx_GIVEREF(__pyx_tuple__270); + + /* "talib/_func.pxi":2295 + * raise 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__271 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__271)) __PYX_ERR(2, 2295, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__271); + __Pyx_GIVEREF(__pyx_tuple__271); + + /* "talib/_func.pxi":2300 + * high_data = 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__272 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__272)) __PYX_ERR(2, 2300, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__272); + __Pyx_GIVEREF(__pyx_tuple__272); + + /* "talib/_func.pxi":2302 + * raise 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__273 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__273)) __PYX_ERR(2, 2302, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__273); + __Pyx_GIVEREF(__pyx_tuple__273); + + /* "talib/_func.pxi":2307 + * low_data = 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__274 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__274)) __PYX_ERR(2, 2307, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__274); + __Pyx_GIVEREF(__pyx_tuple__274); + + /* "talib/_func.pxi":2309 + * raise 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__275 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__275)) __PYX_ERR(2, 2309, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__275); + __Pyx_GIVEREF(__pyx_tuple__275); + + /* "talib/_func.pxi":2315 + * 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__276 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__276)) __PYX_ERR(2, 2315, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__276); + __Pyx_GIVEREF(__pyx_tuple__276); + + /* "talib/_func.pxi":2317 + * 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__277 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__277)) __PYX_ERR(2, 2317, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__277); + __Pyx_GIVEREF(__pyx_tuple__277); + + /* "talib/_func.pxi":2319 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_tuple__278 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__278)) __PYX_ERR(2, 2319, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__278); + __Pyx_GIVEREF(__pyx_tuple__278); + + /* "talib/_func.pxi":2337 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLCONCEALBABYSWALL_Lookback( ) + */ + __pyx_tuple__279 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__279)) __PYX_ERR(2, 2337, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__279); + __Pyx_GIVEREF(__pyx_tuple__279); + + /* "talib/_func.pxi":2374 + * int* outinteger_data + * 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__280 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__280)) __PYX_ERR(2, 2374, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__280); + __Pyx_GIVEREF(__pyx_tuple__280); + + /* "talib/_func.pxi":2376 + * 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__281 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__281)) __PYX_ERR(2, 2376, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__281); + __Pyx_GIVEREF(__pyx_tuple__281); + + /* "talib/_func.pxi":2381 + * open_data = 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__282 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__282)) __PYX_ERR(2, 2381, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__282); + __Pyx_GIVEREF(__pyx_tuple__282); + + /* "talib/_func.pxi":2383 + * raise 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__283 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__283)) __PYX_ERR(2, 2383, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__283); + __Pyx_GIVEREF(__pyx_tuple__283); + + /* "talib/_func.pxi":2388 + * high_data = 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__284 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__284)) __PYX_ERR(2, 2388, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__284); + __Pyx_GIVEREF(__pyx_tuple__284); + + /* "talib/_func.pxi":2390 + * raise 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__285 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__285)) __PYX_ERR(2, 2390, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__285); + __Pyx_GIVEREF(__pyx_tuple__285); + + /* "talib/_func.pxi":2395 + * low_data = 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__286 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__286)) __PYX_ERR(2, 2395, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__286); + __Pyx_GIVEREF(__pyx_tuple__286); + + /* "talib/_func.pxi":2397 + * raise 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__287 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__287)) __PYX_ERR(2, 2397, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__287); + __Pyx_GIVEREF(__pyx_tuple__287); + + /* "talib/_func.pxi":2403 + * 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__288 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__288)) __PYX_ERR(2, 2403, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__288); + __Pyx_GIVEREF(__pyx_tuple__288); + + /* "talib/_func.pxi":2405 + * 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__289 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__289)) __PYX_ERR(2, 2405, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__289); + __Pyx_GIVEREF(__pyx_tuple__289); + + /* "talib/_func.pxi":2407 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_tuple__290 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__290)) __PYX_ERR(2, 2407, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__290); + __Pyx_GIVEREF(__pyx_tuple__290); + + /* "talib/_func.pxi":2425 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLCOUNTERATTACK_Lookback( ) + */ + __pyx_tuple__291 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__291)) __PYX_ERR(2, 2425, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__291); + __Pyx_GIVEREF(__pyx_tuple__291); + + /* "talib/_func.pxi":2464 + * int* outinteger_data + * 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__292 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__292)) __PYX_ERR(2, 2464, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__292); + __Pyx_GIVEREF(__pyx_tuple__292); + + /* "talib/_func.pxi":2466 + * 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__293 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__293)) __PYX_ERR(2, 2466, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__293); + __Pyx_GIVEREF(__pyx_tuple__293); + + /* "talib/_func.pxi":2471 + * open_data = 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__294 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__294)) __PYX_ERR(2, 2471, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__294); + __Pyx_GIVEREF(__pyx_tuple__294); + + /* "talib/_func.pxi":2473 + * raise 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__295 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__295)) __PYX_ERR(2, 2473, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__295); + __Pyx_GIVEREF(__pyx_tuple__295); + + /* "talib/_func.pxi":2478 + * high_data = 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__296 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__296)) __PYX_ERR(2, 2478, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__296); + __Pyx_GIVEREF(__pyx_tuple__296); + + /* "talib/_func.pxi":2480 + * raise 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__297 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__297)) __PYX_ERR(2, 2480, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__297); + __Pyx_GIVEREF(__pyx_tuple__297); + + /* "talib/_func.pxi":2485 + * low_data = 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__298 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__298)) __PYX_ERR(2, 2485, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__298); + __Pyx_GIVEREF(__pyx_tuple__298); + + /* "talib/_func.pxi":2487 + * raise 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__299 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__299)) __PYX_ERR(2, 2487, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__299); + __Pyx_GIVEREF(__pyx_tuple__299); + + /* "talib/_func.pxi":2493 + * 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__300 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__300)) __PYX_ERR(2, 2493, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__300); + __Pyx_GIVEREF(__pyx_tuple__300); + + /* "talib/_func.pxi":2495 + * 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__301 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__301)) __PYX_ERR(2, 2495, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__301); + __Pyx_GIVEREF(__pyx_tuple__301); + + /* "talib/_func.pxi":2497 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_tuple__302 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__302)) __PYX_ERR(2, 2497, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__302); + __Pyx_GIVEREF(__pyx_tuple__302); + + /* "talib/_func.pxi":2515 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLDARKCLOUDCOVER_Lookback( penetration ) + */ + __pyx_tuple__303 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__303)) __PYX_ERR(2, 2515, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__303); + __Pyx_GIVEREF(__pyx_tuple__303); + + /* "talib/_func.pxi":2552 + * int* outinteger_data + * 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__304 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__304)) __PYX_ERR(2, 2552, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__304); + __Pyx_GIVEREF(__pyx_tuple__304); + + /* "talib/_func.pxi":2554 + * 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__305 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__305)) __PYX_ERR(2, 2554, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__305); + __Pyx_GIVEREF(__pyx_tuple__305); + + /* "talib/_func.pxi":2559 + * open_data = 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__306 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__306)) __PYX_ERR(2, 2559, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__306); + __Pyx_GIVEREF(__pyx_tuple__306); + + /* "talib/_func.pxi":2561 + * raise 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__307 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__307)) __PYX_ERR(2, 2561, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__307); + __Pyx_GIVEREF(__pyx_tuple__307); + + /* "talib/_func.pxi":2566 + * high_data = 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__308 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__308)) __PYX_ERR(2, 2566, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__308); + __Pyx_GIVEREF(__pyx_tuple__308); + + /* "talib/_func.pxi":2568 + * raise 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__309 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__309)) __PYX_ERR(2, 2568, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__309); + __Pyx_GIVEREF(__pyx_tuple__309); + + /* "talib/_func.pxi":2573 + * low_data = 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__310 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__310)) __PYX_ERR(2, 2573, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__310); + __Pyx_GIVEREF(__pyx_tuple__310); + + /* "talib/_func.pxi":2575 + * raise 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__311 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__311)) __PYX_ERR(2, 2575, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__311); + __Pyx_GIVEREF(__pyx_tuple__311); + + /* "talib/_func.pxi":2581 + * 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__312 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__312)) __PYX_ERR(2, 2581, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__312); + __Pyx_GIVEREF(__pyx_tuple__312); + + /* "talib/_func.pxi":2583 + * 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__313 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__313)) __PYX_ERR(2, 2583, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__313); + __Pyx_GIVEREF(__pyx_tuple__313); + + /* "talib/_func.pxi":2585 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_tuple__314 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__314)) __PYX_ERR(2, 2585, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__314); + __Pyx_GIVEREF(__pyx_tuple__314); + + /* "talib/_func.pxi":2603 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLDOJI_Lookback( ) + */ + __pyx_tuple__315 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__315)) __PYX_ERR(2, 2603, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__315); + __Pyx_GIVEREF(__pyx_tuple__315); + + /* "talib/_func.pxi":2640 + * int* outinteger_data + * 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(2, 2640, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__316); + __Pyx_GIVEREF(__pyx_tuple__316); + + /* "talib/_func.pxi":2642 + * 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(2, 2642, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__317); + __Pyx_GIVEREF(__pyx_tuple__317); + + /* "talib/_func.pxi":2647 + * open_data = 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(2, 2647, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__318); + __Pyx_GIVEREF(__pyx_tuple__318); + + /* "talib/_func.pxi":2649 + * raise 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(2, 2649, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__319); + __Pyx_GIVEREF(__pyx_tuple__319); + + /* "talib/_func.pxi":2654 + * high_data = 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(2, 2654, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__320); + __Pyx_GIVEREF(__pyx_tuple__320); + + /* "talib/_func.pxi":2656 + * raise 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(2, 2656, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__321); + __Pyx_GIVEREF(__pyx_tuple__321); + + /* "talib/_func.pxi":2661 + * low_data = 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(2, 2661, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__322); + __Pyx_GIVEREF(__pyx_tuple__322); + + /* "talib/_func.pxi":2663 + * raise 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(2, 2663, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__323); + __Pyx_GIVEREF(__pyx_tuple__323); + + /* "talib/_func.pxi":2669 + * 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(2, 2669, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__324); + __Pyx_GIVEREF(__pyx_tuple__324); + + /* "talib/_func.pxi":2671 + * 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(2, 2671, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__325); + __Pyx_GIVEREF(__pyx_tuple__325); + + /* "talib/_func.pxi":2673 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_tuple__326 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__326)) __PYX_ERR(2, 2673, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__326); + __Pyx_GIVEREF(__pyx_tuple__326); + + /* "talib/_func.pxi":2691 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLDOJISTAR_Lookback( ) + */ + __pyx_tuple__327 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__327)) __PYX_ERR(2, 2691, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__327); + __Pyx_GIVEREF(__pyx_tuple__327); + + /* "talib/_func.pxi":2728 + * int* outinteger_data + * 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__328 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__328)) __PYX_ERR(2, 2728, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__328); + __Pyx_GIVEREF(__pyx_tuple__328); + + /* "talib/_func.pxi":2730 + * 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__329 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__329)) __PYX_ERR(2, 2730, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__329); + __Pyx_GIVEREF(__pyx_tuple__329); + + /* "talib/_func.pxi":2735 + * open_data = 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__330 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__330)) __PYX_ERR(2, 2735, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__330); + __Pyx_GIVEREF(__pyx_tuple__330); + + /* "talib/_func.pxi":2737 + * raise 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__331 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__331)) __PYX_ERR(2, 2737, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__331); + __Pyx_GIVEREF(__pyx_tuple__331); + + /* "talib/_func.pxi":2742 + * high_data = 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__332 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__332)) __PYX_ERR(2, 2742, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__332); + __Pyx_GIVEREF(__pyx_tuple__332); + + /* "talib/_func.pxi":2744 + * raise 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__333 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__333)) __PYX_ERR(2, 2744, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__333); + __Pyx_GIVEREF(__pyx_tuple__333); + + /* "talib/_func.pxi":2749 + * low_data = 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__334 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__334)) __PYX_ERR(2, 2749, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__334); + __Pyx_GIVEREF(__pyx_tuple__334); + + /* "talib/_func.pxi":2751 + * raise 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__335 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__335)) __PYX_ERR(2, 2751, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__335); + __Pyx_GIVEREF(__pyx_tuple__335); + + /* "talib/_func.pxi":2757 + * 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__336 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__336)) __PYX_ERR(2, 2757, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__336); + __Pyx_GIVEREF(__pyx_tuple__336); + + /* "talib/_func.pxi":2759 + * 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__337 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__337)) __PYX_ERR(2, 2759, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__337); + __Pyx_GIVEREF(__pyx_tuple__337); + + /* "talib/_func.pxi":2761 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_tuple__338 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__338)) __PYX_ERR(2, 2761, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__338); + __Pyx_GIVEREF(__pyx_tuple__338); + + /* "talib/_func.pxi":2779 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLDRAGONFLYDOJI_Lookback( ) + */ + __pyx_tuple__339 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__339)) __PYX_ERR(2, 2779, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__339); + __Pyx_GIVEREF(__pyx_tuple__339); + + /* "talib/_func.pxi":2816 + * int* outinteger_data + * 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__340 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__340)) __PYX_ERR(2, 2816, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__340); + __Pyx_GIVEREF(__pyx_tuple__340); + + /* "talib/_func.pxi":2818 + * 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__341 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__341)) __PYX_ERR(2, 2818, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__341); + __Pyx_GIVEREF(__pyx_tuple__341); + + /* "talib/_func.pxi":2823 + * open_data = 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__342 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__342)) __PYX_ERR(2, 2823, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__342); + __Pyx_GIVEREF(__pyx_tuple__342); + + /* "talib/_func.pxi":2825 + * raise 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__343 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__343)) __PYX_ERR(2, 2825, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__343); + __Pyx_GIVEREF(__pyx_tuple__343); + + /* "talib/_func.pxi":2830 + * high_data = 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__344 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__344)) __PYX_ERR(2, 2830, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__344); + __Pyx_GIVEREF(__pyx_tuple__344); + + /* "talib/_func.pxi":2832 + * raise 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__345 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__345)) __PYX_ERR(2, 2832, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__345); + __Pyx_GIVEREF(__pyx_tuple__345); + + /* "talib/_func.pxi":2837 + * low_data = 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__346 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__346)) __PYX_ERR(2, 2837, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__346); + __Pyx_GIVEREF(__pyx_tuple__346); + + /* "talib/_func.pxi":2839 + * raise 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__347 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__347)) __PYX_ERR(2, 2839, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__347); + __Pyx_GIVEREF(__pyx_tuple__347); + + /* "talib/_func.pxi":2845 + * 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__348 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__348)) __PYX_ERR(2, 2845, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__348); + __Pyx_GIVEREF(__pyx_tuple__348); + + /* "talib/_func.pxi":2847 + * 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__349 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__349)) __PYX_ERR(2, 2847, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__349); + __Pyx_GIVEREF(__pyx_tuple__349); + + /* "talib/_func.pxi":2849 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_tuple__350 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__350)) __PYX_ERR(2, 2849, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__350); + __Pyx_GIVEREF(__pyx_tuple__350); + + /* "talib/_func.pxi":2867 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLENGULFING_Lookback( ) + */ + __pyx_tuple__351 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__351)) __PYX_ERR(2, 2867, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__351); + __Pyx_GIVEREF(__pyx_tuple__351); + + /* "talib/_func.pxi":2906 + * int* outinteger_data + * 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__352 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__352)) __PYX_ERR(2, 2906, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__352); + __Pyx_GIVEREF(__pyx_tuple__352); + + /* "talib/_func.pxi":2908 + * 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__353 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__353)) __PYX_ERR(2, 2908, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__353); + __Pyx_GIVEREF(__pyx_tuple__353); + + /* "talib/_func.pxi":2913 + * open_data = 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__354 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__354)) __PYX_ERR(2, 2913, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__354); + __Pyx_GIVEREF(__pyx_tuple__354); + + /* "talib/_func.pxi":2915 + * raise 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__355 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__355)) __PYX_ERR(2, 2915, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__355); + __Pyx_GIVEREF(__pyx_tuple__355); + + /* "talib/_func.pxi":2920 + * high_data = 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__356 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__356)) __PYX_ERR(2, 2920, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__356); + __Pyx_GIVEREF(__pyx_tuple__356); + + /* "talib/_func.pxi":2922 + * raise 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__357 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__357)) __PYX_ERR(2, 2922, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__357); + __Pyx_GIVEREF(__pyx_tuple__357); + + /* "talib/_func.pxi":2927 + * low_data = 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__358 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__358)) __PYX_ERR(2, 2927, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__358); + __Pyx_GIVEREF(__pyx_tuple__358); + + /* "talib/_func.pxi":2929 + * raise 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__359 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__359)) __PYX_ERR(2, 2929, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__359); + __Pyx_GIVEREF(__pyx_tuple__359); + + /* "talib/_func.pxi":2935 + * 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__360 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__360)) __PYX_ERR(2, 2935, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__360); + __Pyx_GIVEREF(__pyx_tuple__360); + + /* "talib/_func.pxi":2937 + * 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__361 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__361)) __PYX_ERR(2, 2937, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__361); + __Pyx_GIVEREF(__pyx_tuple__361); + + /* "talib/_func.pxi":2939 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_tuple__362 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__362)) __PYX_ERR(2, 2939, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__362); + __Pyx_GIVEREF(__pyx_tuple__362); + + /* "talib/_func.pxi":2957 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLEVENINGDOJISTAR_Lookback( penetration ) + */ + __pyx_tuple__363 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__363)) __PYX_ERR(2, 2957, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__363); + __Pyx_GIVEREF(__pyx_tuple__363); + + /* "talib/_func.pxi":2996 + * int* outinteger_data + * 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__364 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__364)) __PYX_ERR(2, 2996, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__364); + __Pyx_GIVEREF(__pyx_tuple__364); + + /* "talib/_func.pxi":2998 + * 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__365 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__365)) __PYX_ERR(2, 2998, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__365); + __Pyx_GIVEREF(__pyx_tuple__365); + + /* "talib/_func.pxi":3003 + * open_data = 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__366 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__366)) __PYX_ERR(2, 3003, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__366); + __Pyx_GIVEREF(__pyx_tuple__366); + + /* "talib/_func.pxi":3005 + * raise 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__367 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__367)) __PYX_ERR(2, 3005, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__367); + __Pyx_GIVEREF(__pyx_tuple__367); + + /* "talib/_func.pxi":3010 + * high_data = 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__368 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__368)) __PYX_ERR(2, 3010, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__368); + __Pyx_GIVEREF(__pyx_tuple__368); + + /* "talib/_func.pxi":3012 + * raise 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__369 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__369)) __PYX_ERR(2, 3012, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__369); + __Pyx_GIVEREF(__pyx_tuple__369); + + /* "talib/_func.pxi":3017 + * low_data = 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__370 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__370)) __PYX_ERR(2, 3017, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__370); + __Pyx_GIVEREF(__pyx_tuple__370); + + /* "talib/_func.pxi":3019 + * raise 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__371 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__371)) __PYX_ERR(2, 3019, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__371); + __Pyx_GIVEREF(__pyx_tuple__371); + + /* "talib/_func.pxi":3025 + * 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__372 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__372)) __PYX_ERR(2, 3025, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__372); + __Pyx_GIVEREF(__pyx_tuple__372); + + /* "talib/_func.pxi":3027 + * 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__373 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__373)) __PYX_ERR(2, 3027, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__373); + __Pyx_GIVEREF(__pyx_tuple__373); + + /* "talib/_func.pxi":3029 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_tuple__374 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__374)) __PYX_ERR(2, 3029, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__374); + __Pyx_GIVEREF(__pyx_tuple__374); + + /* "talib/_func.pxi":3047 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLEVENINGSTAR_Lookback( penetration ) + */ + __pyx_tuple__375 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__375)) __PYX_ERR(2, 3047, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__375); + __Pyx_GIVEREF(__pyx_tuple__375); + + /* "talib/_func.pxi":3084 + * int* outinteger_data + * 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__376 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__376)) __PYX_ERR(2, 3084, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__376); + __Pyx_GIVEREF(__pyx_tuple__376); + + /* "talib/_func.pxi":3086 + * 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__377 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__377)) __PYX_ERR(2, 3086, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__377); + __Pyx_GIVEREF(__pyx_tuple__377); + + /* "talib/_func.pxi":3091 + * open_data = 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__378 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__378)) __PYX_ERR(2, 3091, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__378); + __Pyx_GIVEREF(__pyx_tuple__378); + + /* "talib/_func.pxi":3093 + * raise 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__379 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__379)) __PYX_ERR(2, 3093, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__379); + __Pyx_GIVEREF(__pyx_tuple__379); + + /* "talib/_func.pxi":3098 + * high_data = 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__380 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__380)) __PYX_ERR(2, 3098, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__380); + __Pyx_GIVEREF(__pyx_tuple__380); + + /* "talib/_func.pxi":3100 + * raise 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__381 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__381)) __PYX_ERR(2, 3100, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__381); + __Pyx_GIVEREF(__pyx_tuple__381); + + /* "talib/_func.pxi":3105 + * low_data = 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__382 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__382)) __PYX_ERR(2, 3105, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__382); + __Pyx_GIVEREF(__pyx_tuple__382); + + /* "talib/_func.pxi":3107 + * raise 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__383 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__383)) __PYX_ERR(2, 3107, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__383); + __Pyx_GIVEREF(__pyx_tuple__383); + + /* "talib/_func.pxi":3113 + * 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__384 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__384)) __PYX_ERR(2, 3113, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__384); + __Pyx_GIVEREF(__pyx_tuple__384); + + /* "talib/_func.pxi":3115 + * 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__385 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__385)) __PYX_ERR(2, 3115, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__385); + __Pyx_GIVEREF(__pyx_tuple__385); + + /* "talib/_func.pxi":3117 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_tuple__386 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__386)) __PYX_ERR(2, 3117, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__386); + __Pyx_GIVEREF(__pyx_tuple__386); + + /* "talib/_func.pxi":3135 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLGAPSIDESIDEWHITE_Lookback( ) + */ + __pyx_tuple__387 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__387)) __PYX_ERR(2, 3135, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__387); + __Pyx_GIVEREF(__pyx_tuple__387); + + /* "talib/_func.pxi":3172 + * int* outinteger_data + * 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__388 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__388)) __PYX_ERR(2, 3172, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__388); + __Pyx_GIVEREF(__pyx_tuple__388); + + /* "talib/_func.pxi":3174 + * 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__389 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__389)) __PYX_ERR(2, 3174, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__389); + __Pyx_GIVEREF(__pyx_tuple__389); + + /* "talib/_func.pxi":3179 + * open_data = 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__390 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__390)) __PYX_ERR(2, 3179, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__390); + __Pyx_GIVEREF(__pyx_tuple__390); + + /* "talib/_func.pxi":3181 + * raise 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__391 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__391)) __PYX_ERR(2, 3181, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__391); + __Pyx_GIVEREF(__pyx_tuple__391); + + /* "talib/_func.pxi":3186 + * high_data = 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__392 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__392)) __PYX_ERR(2, 3186, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__392); + __Pyx_GIVEREF(__pyx_tuple__392); + + /* "talib/_func.pxi":3188 + * raise 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__393 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__393)) __PYX_ERR(2, 3188, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__393); + __Pyx_GIVEREF(__pyx_tuple__393); + + /* "talib/_func.pxi":3193 + * low_data = 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__394 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__394)) __PYX_ERR(2, 3193, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__394); + __Pyx_GIVEREF(__pyx_tuple__394); + + /* "talib/_func.pxi":3195 + * raise 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__395 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__395)) __PYX_ERR(2, 3195, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__395); + __Pyx_GIVEREF(__pyx_tuple__395); + + /* "talib/_func.pxi":3201 + * 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__396 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__396)) __PYX_ERR(2, 3201, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__396); + __Pyx_GIVEREF(__pyx_tuple__396); + + /* "talib/_func.pxi":3203 + * 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__397 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__397)) __PYX_ERR(2, 3203, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__397); + __Pyx_GIVEREF(__pyx_tuple__397); + + /* "talib/_func.pxi":3205 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_tuple__398 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__398)) __PYX_ERR(2, 3205, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__398); + __Pyx_GIVEREF(__pyx_tuple__398); + + /* "talib/_func.pxi":3223 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLGRAVESTONEDOJI_Lookback( ) + */ + __pyx_tuple__399 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__399)) __PYX_ERR(2, 3223, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__399); + __Pyx_GIVEREF(__pyx_tuple__399); + + /* "talib/_func.pxi":3260 + * int* outinteger_data + * 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__400 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__400)) __PYX_ERR(2, 3260, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__400); + __Pyx_GIVEREF(__pyx_tuple__400); + + /* "talib/_func.pxi":3262 + * 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__401 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__401)) __PYX_ERR(2, 3262, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__401); + __Pyx_GIVEREF(__pyx_tuple__401); + + /* "talib/_func.pxi":3267 + * open_data = 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__402 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__402)) __PYX_ERR(2, 3267, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__402); + __Pyx_GIVEREF(__pyx_tuple__402); + + /* "talib/_func.pxi":3269 + * raise 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__403 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__403)) __PYX_ERR(2, 3269, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__403); + __Pyx_GIVEREF(__pyx_tuple__403); + + /* "talib/_func.pxi":3274 + * high_data = 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__404 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__404)) __PYX_ERR(2, 3274, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__404); + __Pyx_GIVEREF(__pyx_tuple__404); + + /* "talib/_func.pxi":3276 + * raise 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__405 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__405)) __PYX_ERR(2, 3276, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__405); + __Pyx_GIVEREF(__pyx_tuple__405); + + /* "talib/_func.pxi":3281 + * low_data = 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__406 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__406)) __PYX_ERR(2, 3281, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__406); + __Pyx_GIVEREF(__pyx_tuple__406); + + /* "talib/_func.pxi":3283 + * raise 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__407 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__407)) __PYX_ERR(2, 3283, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__407); + __Pyx_GIVEREF(__pyx_tuple__407); + + /* "talib/_func.pxi":3289 + * 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__408 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__408)) __PYX_ERR(2, 3289, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__408); + __Pyx_GIVEREF(__pyx_tuple__408); + + /* "talib/_func.pxi":3291 + * 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__409 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__409)) __PYX_ERR(2, 3291, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__409); + __Pyx_GIVEREF(__pyx_tuple__409); + + /* "talib/_func.pxi":3293 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_tuple__410 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__410)) __PYX_ERR(2, 3293, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__410); + __Pyx_GIVEREF(__pyx_tuple__410); + + /* "talib/_func.pxi":3311 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLHAMMER_Lookback( ) + */ + __pyx_tuple__411 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__411)) __PYX_ERR(2, 3311, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__411); + __Pyx_GIVEREF(__pyx_tuple__411); + + /* "talib/_func.pxi":3348 + * int* outinteger_data + * 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__412 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__412)) __PYX_ERR(2, 3348, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__412); + __Pyx_GIVEREF(__pyx_tuple__412); + + /* "talib/_func.pxi":3350 + * 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__413 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__413)) __PYX_ERR(2, 3350, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__413); + __Pyx_GIVEREF(__pyx_tuple__413); + + /* "talib/_func.pxi":3355 + * open_data = 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__414 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__414)) __PYX_ERR(2, 3355, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__414); + __Pyx_GIVEREF(__pyx_tuple__414); + + /* "talib/_func.pxi":3357 + * raise 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__415 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__415)) __PYX_ERR(2, 3357, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__415); + __Pyx_GIVEREF(__pyx_tuple__415); + + /* "talib/_func.pxi":3362 + * high_data = 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__416 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__416)) __PYX_ERR(2, 3362, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__416); + __Pyx_GIVEREF(__pyx_tuple__416); + + /* "talib/_func.pxi":3364 + * raise 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__417 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__417)) __PYX_ERR(2, 3364, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__417); + __Pyx_GIVEREF(__pyx_tuple__417); + + /* "talib/_func.pxi":3369 + * low_data = 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__418 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__418)) __PYX_ERR(2, 3369, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__418); + __Pyx_GIVEREF(__pyx_tuple__418); + + /* "talib/_func.pxi":3371 + * raise 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__419 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__419)) __PYX_ERR(2, 3371, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__419); + __Pyx_GIVEREF(__pyx_tuple__419); + + /* "talib/_func.pxi":3377 + * 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__420 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__420)) __PYX_ERR(2, 3377, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__420); + __Pyx_GIVEREF(__pyx_tuple__420); + + /* "talib/_func.pxi":3379 + * 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__421 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__421)) __PYX_ERR(2, 3379, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__421); + __Pyx_GIVEREF(__pyx_tuple__421); + + /* "talib/_func.pxi":3381 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_tuple__422 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__422)) __PYX_ERR(2, 3381, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__422); + __Pyx_GIVEREF(__pyx_tuple__422); + + /* "talib/_func.pxi":3399 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLHANGINGMAN_Lookback( ) + */ + __pyx_tuple__423 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__423)) __PYX_ERR(2, 3399, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__423); + __Pyx_GIVEREF(__pyx_tuple__423); + + /* "talib/_func.pxi":3436 + * int* outinteger_data + * 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__424 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__424)) __PYX_ERR(2, 3436, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__424); + __Pyx_GIVEREF(__pyx_tuple__424); + + /* "talib/_func.pxi":3438 + * 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__425 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__425)) __PYX_ERR(2, 3438, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__425); + __Pyx_GIVEREF(__pyx_tuple__425); + + /* "talib/_func.pxi":3443 + * open_data = 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__426 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__426)) __PYX_ERR(2, 3443, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__426); + __Pyx_GIVEREF(__pyx_tuple__426); + + /* "talib/_func.pxi":3445 + * raise 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__427 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__427)) __PYX_ERR(2, 3445, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__427); + __Pyx_GIVEREF(__pyx_tuple__427); + + /* "talib/_func.pxi":3450 + * high_data = 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__428 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__428)) __PYX_ERR(2, 3450, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__428); + __Pyx_GIVEREF(__pyx_tuple__428); + + /* "talib/_func.pxi":3452 + * raise 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__429 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__429)) __PYX_ERR(2, 3452, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__429); + __Pyx_GIVEREF(__pyx_tuple__429); + + /* "talib/_func.pxi":3457 + * low_data = 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__430 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__430)) __PYX_ERR(2, 3457, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__430); + __Pyx_GIVEREF(__pyx_tuple__430); + + /* "talib/_func.pxi":3459 + * raise 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__431 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__431)) __PYX_ERR(2, 3459, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__431); + __Pyx_GIVEREF(__pyx_tuple__431); + + /* "talib/_func.pxi":3465 + * 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__432 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__432)) __PYX_ERR(2, 3465, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__432); + __Pyx_GIVEREF(__pyx_tuple__432); + + /* "talib/_func.pxi":3467 + * 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__433 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__433)) __PYX_ERR(2, 3467, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__433); + __Pyx_GIVEREF(__pyx_tuple__433); + + /* "talib/_func.pxi":3469 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_tuple__434 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__434)) __PYX_ERR(2, 3469, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__434); + __Pyx_GIVEREF(__pyx_tuple__434); + + /* "talib/_func.pxi":3487 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLHARAMI_Lookback( ) + */ + __pyx_tuple__435 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__435)) __PYX_ERR(2, 3487, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__435); + __Pyx_GIVEREF(__pyx_tuple__435); + + /* "talib/_func.pxi":3524 + * int* outinteger_data + * 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__436 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__436)) __PYX_ERR(2, 3524, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__436); + __Pyx_GIVEREF(__pyx_tuple__436); + + /* "talib/_func.pxi":3526 + * 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__437 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__437)) __PYX_ERR(2, 3526, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__437); + __Pyx_GIVEREF(__pyx_tuple__437); + + /* "talib/_func.pxi":3531 + * open_data = 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__438 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__438)) __PYX_ERR(2, 3531, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__438); + __Pyx_GIVEREF(__pyx_tuple__438); + + /* "talib/_func.pxi":3533 + * raise 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__439 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__439)) __PYX_ERR(2, 3533, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__439); + __Pyx_GIVEREF(__pyx_tuple__439); + + /* "talib/_func.pxi":3538 + * high_data = 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__440 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__440)) __PYX_ERR(2, 3538, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__440); + __Pyx_GIVEREF(__pyx_tuple__440); + + /* "talib/_func.pxi":3540 + * raise 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__441 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__441)) __PYX_ERR(2, 3540, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__441); + __Pyx_GIVEREF(__pyx_tuple__441); + + /* "talib/_func.pxi":3545 + * low_data = 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__442 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__442)) __PYX_ERR(2, 3545, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__442); + __Pyx_GIVEREF(__pyx_tuple__442); + + /* "talib/_func.pxi":3547 + * raise 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__443 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__443)) __PYX_ERR(2, 3547, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__443); + __Pyx_GIVEREF(__pyx_tuple__443); + + /* "talib/_func.pxi":3553 + * 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__444 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__444)) __PYX_ERR(2, 3553, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__444); + __Pyx_GIVEREF(__pyx_tuple__444); + + /* "talib/_func.pxi":3555 + * 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__445 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__445)) __PYX_ERR(2, 3555, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__445); + __Pyx_GIVEREF(__pyx_tuple__445); + + /* "talib/_func.pxi":3557 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_tuple__446 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__446)) __PYX_ERR(2, 3557, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__446); + __Pyx_GIVEREF(__pyx_tuple__446); + + /* "talib/_func.pxi":3575 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLHARAMICROSS_Lookback( ) + */ + __pyx_tuple__447 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__447)) __PYX_ERR(2, 3575, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__447); + __Pyx_GIVEREF(__pyx_tuple__447); + + /* "talib/_func.pxi":3612 + * int* outinteger_data + * 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(2, 3612, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__448); + __Pyx_GIVEREF(__pyx_tuple__448); + + /* "talib/_func.pxi":3614 + * 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(2, 3614, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__449); + __Pyx_GIVEREF(__pyx_tuple__449); + + /* "talib/_func.pxi":3619 + * open_data = 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(2, 3619, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__450); + __Pyx_GIVEREF(__pyx_tuple__450); + + /* "talib/_func.pxi":3621 + * raise 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(2, 3621, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__451); + __Pyx_GIVEREF(__pyx_tuple__451); + + /* "talib/_func.pxi":3626 + * high_data = 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(2, 3626, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__452); + __Pyx_GIVEREF(__pyx_tuple__452); + + /* "talib/_func.pxi":3628 + * raise 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(2, 3628, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__453); + __Pyx_GIVEREF(__pyx_tuple__453); + + /* "talib/_func.pxi":3633 + * low_data = 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(2, 3633, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__454); + __Pyx_GIVEREF(__pyx_tuple__454); + + /* "talib/_func.pxi":3635 + * raise 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(2, 3635, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__455); + __Pyx_GIVEREF(__pyx_tuple__455); + + /* "talib/_func.pxi":3641 + * 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(2, 3641, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__456); + __Pyx_GIVEREF(__pyx_tuple__456); + + /* "talib/_func.pxi":3643 + * 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(2, 3643, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__457); + __Pyx_GIVEREF(__pyx_tuple__457); + + /* "talib/_func.pxi":3645 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_tuple__458 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__458)) __PYX_ERR(2, 3645, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__458); + __Pyx_GIVEREF(__pyx_tuple__458); + + /* "talib/_func.pxi":3663 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLHIGHWAVE_Lookback( ) + */ + __pyx_tuple__459 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__459)) __PYX_ERR(2, 3663, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__459); + __Pyx_GIVEREF(__pyx_tuple__459); + + /* "talib/_func.pxi":3700 + * int* outinteger_data + * 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__460 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__460)) __PYX_ERR(2, 3700, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__460); + __Pyx_GIVEREF(__pyx_tuple__460); + + /* "talib/_func.pxi":3702 + * 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__461 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__461)) __PYX_ERR(2, 3702, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__461); + __Pyx_GIVEREF(__pyx_tuple__461); + + /* "talib/_func.pxi":3707 + * open_data = 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__462 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__462)) __PYX_ERR(2, 3707, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__462); + __Pyx_GIVEREF(__pyx_tuple__462); + + /* "talib/_func.pxi":3709 + * raise 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__463 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__463)) __PYX_ERR(2, 3709, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__463); + __Pyx_GIVEREF(__pyx_tuple__463); + + /* "talib/_func.pxi":3714 + * high_data = 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__464 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__464)) __PYX_ERR(2, 3714, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__464); + __Pyx_GIVEREF(__pyx_tuple__464); + + /* "talib/_func.pxi":3716 + * raise 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__465 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__465)) __PYX_ERR(2, 3716, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__465); + __Pyx_GIVEREF(__pyx_tuple__465); + + /* "talib/_func.pxi":3721 + * low_data = 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__466 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__466)) __PYX_ERR(2, 3721, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__466); + __Pyx_GIVEREF(__pyx_tuple__466); + + /* "talib/_func.pxi":3723 + * raise 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__467 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__467)) __PYX_ERR(2, 3723, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__467); + __Pyx_GIVEREF(__pyx_tuple__467); + + /* "talib/_func.pxi":3729 + * 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__468 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__468)) __PYX_ERR(2, 3729, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__468); + __Pyx_GIVEREF(__pyx_tuple__468); + + /* "talib/_func.pxi":3731 + * 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__469 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__469)) __PYX_ERR(2, 3731, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__469); + __Pyx_GIVEREF(__pyx_tuple__469); + + /* "talib/_func.pxi":3733 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_tuple__470 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__470)) __PYX_ERR(2, 3733, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__470); + __Pyx_GIVEREF(__pyx_tuple__470); + + /* "talib/_func.pxi":3751 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLHIKKAKE_Lookback( ) + */ + __pyx_tuple__471 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__471)) __PYX_ERR(2, 3751, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__471); + __Pyx_GIVEREF(__pyx_tuple__471); + + /* "talib/_func.pxi":3788 + * int* outinteger_data + * 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__472 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__472)) __PYX_ERR(2, 3788, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__472); + __Pyx_GIVEREF(__pyx_tuple__472); + + /* "talib/_func.pxi":3790 + * 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__473 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__473)) __PYX_ERR(2, 3790, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__473); + __Pyx_GIVEREF(__pyx_tuple__473); + + /* "talib/_func.pxi":3795 + * open_data = 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__474 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__474)) __PYX_ERR(2, 3795, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__474); + __Pyx_GIVEREF(__pyx_tuple__474); + + /* "talib/_func.pxi":3797 + * raise 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__475 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__475)) __PYX_ERR(2, 3797, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__475); + __Pyx_GIVEREF(__pyx_tuple__475); + + /* "talib/_func.pxi":3802 + * high_data = 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__476 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__476)) __PYX_ERR(2, 3802, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__476); + __Pyx_GIVEREF(__pyx_tuple__476); + + /* "talib/_func.pxi":3804 + * raise 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__477 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__477)) __PYX_ERR(2, 3804, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__477); + __Pyx_GIVEREF(__pyx_tuple__477); + + /* "talib/_func.pxi":3809 + * low_data = 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__478 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__478)) __PYX_ERR(2, 3809, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__478); + __Pyx_GIVEREF(__pyx_tuple__478); + + /* "talib/_func.pxi":3811 + * raise 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__479 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__479)) __PYX_ERR(2, 3811, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__479); + __Pyx_GIVEREF(__pyx_tuple__479); + + /* "talib/_func.pxi":3817 + * 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__480 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__480)) __PYX_ERR(2, 3817, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__480); + __Pyx_GIVEREF(__pyx_tuple__480); + + /* "talib/_func.pxi":3819 + * 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__481 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__481)) __PYX_ERR(2, 3819, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__481); + __Pyx_GIVEREF(__pyx_tuple__481); + + /* "talib/_func.pxi":3821 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_tuple__482 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__482)) __PYX_ERR(2, 3821, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__482); + __Pyx_GIVEREF(__pyx_tuple__482); + + /* "talib/_func.pxi":3839 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLHIKKAKEMOD_Lookback( ) + */ + __pyx_tuple__483 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__483)) __PYX_ERR(2, 3839, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__483); + __Pyx_GIVEREF(__pyx_tuple__483); + + /* "talib/_func.pxi":3876 + * int* outinteger_data + * 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__484 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__484)) __PYX_ERR(2, 3876, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__484); + __Pyx_GIVEREF(__pyx_tuple__484); + + /* "talib/_func.pxi":3878 + * 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__485 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__485)) __PYX_ERR(2, 3878, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__485); + __Pyx_GIVEREF(__pyx_tuple__485); + + /* "talib/_func.pxi":3883 + * open_data = 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__486 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__486)) __PYX_ERR(2, 3883, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__486); + __Pyx_GIVEREF(__pyx_tuple__486); + + /* "talib/_func.pxi":3885 + * raise 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__487 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__487)) __PYX_ERR(2, 3885, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__487); + __Pyx_GIVEREF(__pyx_tuple__487); + + /* "talib/_func.pxi":3890 + * high_data = 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__488 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__488)) __PYX_ERR(2, 3890, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__488); + __Pyx_GIVEREF(__pyx_tuple__488); + + /* "talib/_func.pxi":3892 + * raise 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__489 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__489)) __PYX_ERR(2, 3892, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__489); + __Pyx_GIVEREF(__pyx_tuple__489); + + /* "talib/_func.pxi":3897 + * low_data = 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__490 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__490)) __PYX_ERR(2, 3897, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__490); + __Pyx_GIVEREF(__pyx_tuple__490); + + /* "talib/_func.pxi":3899 + * raise 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__491 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__491)) __PYX_ERR(2, 3899, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__491); + __Pyx_GIVEREF(__pyx_tuple__491); + + /* "talib/_func.pxi":3905 + * 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__492 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__492)) __PYX_ERR(2, 3905, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__492); + __Pyx_GIVEREF(__pyx_tuple__492); + + /* "talib/_func.pxi":3907 + * 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__493 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__493)) __PYX_ERR(2, 3907, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__493); + __Pyx_GIVEREF(__pyx_tuple__493); + + /* "talib/_func.pxi":3909 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_tuple__494 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__494)) __PYX_ERR(2, 3909, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__494); + __Pyx_GIVEREF(__pyx_tuple__494); + + /* "talib/_func.pxi":3927 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLHOMINGPIGEON_Lookback( ) + */ + __pyx_tuple__495 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__495)) __PYX_ERR(2, 3927, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__495); + __Pyx_GIVEREF(__pyx_tuple__495); + + /* "talib/_func.pxi":3964 + * int* outinteger_data + * 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__496 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__496)) __PYX_ERR(2, 3964, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__496); + __Pyx_GIVEREF(__pyx_tuple__496); + + /* "talib/_func.pxi":3966 + * 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__497 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__497)) __PYX_ERR(2, 3966, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__497); + __Pyx_GIVEREF(__pyx_tuple__497); + + /* "talib/_func.pxi":3971 + * open_data = 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__498 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__498)) __PYX_ERR(2, 3971, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__498); + __Pyx_GIVEREF(__pyx_tuple__498); + + /* "talib/_func.pxi":3973 + * raise 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__499 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__499)) __PYX_ERR(2, 3973, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__499); + __Pyx_GIVEREF(__pyx_tuple__499); + + /* "talib/_func.pxi":3978 + * high_data = 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__500 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__500)) __PYX_ERR(2, 3978, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__500); + __Pyx_GIVEREF(__pyx_tuple__500); + + /* "talib/_func.pxi":3980 + * raise 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__501 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__501)) __PYX_ERR(2, 3980, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__501); + __Pyx_GIVEREF(__pyx_tuple__501); + + /* "talib/_func.pxi":3985 + * low_data = 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__502 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__502)) __PYX_ERR(2, 3985, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__502); + __Pyx_GIVEREF(__pyx_tuple__502); + + /* "talib/_func.pxi":3987 + * raise 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__503 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__503)) __PYX_ERR(2, 3987, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__503); + __Pyx_GIVEREF(__pyx_tuple__503); + + /* "talib/_func.pxi":3993 + * 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__504 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__504)) __PYX_ERR(2, 3993, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__504); + __Pyx_GIVEREF(__pyx_tuple__504); + + /* "talib/_func.pxi":3995 + * 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__505 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__505)) __PYX_ERR(2, 3995, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__505); + __Pyx_GIVEREF(__pyx_tuple__505); + + /* "talib/_func.pxi":3997 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_tuple__506 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__506)) __PYX_ERR(2, 3997, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__506); + __Pyx_GIVEREF(__pyx_tuple__506); + + /* "talib/_func.pxi":4015 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLIDENTICAL3CROWS_Lookback( ) + */ + __pyx_tuple__507 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__507)) __PYX_ERR(2, 4015, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__507); + __Pyx_GIVEREF(__pyx_tuple__507); + + /* "talib/_func.pxi":4052 + * int* outinteger_data + * 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__508 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__508)) __PYX_ERR(2, 4052, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__508); + __Pyx_GIVEREF(__pyx_tuple__508); + + /* "talib/_func.pxi":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__509 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__509)) __PYX_ERR(2, 4054, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__509); + __Pyx_GIVEREF(__pyx_tuple__509); + + /* "talib/_func.pxi":4059 + * open_data = 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__510 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__510)) __PYX_ERR(2, 4059, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__510); + __Pyx_GIVEREF(__pyx_tuple__510); + + /* "talib/_func.pxi":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__511 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__511)) __PYX_ERR(2, 4061, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__511); + __Pyx_GIVEREF(__pyx_tuple__511); + + /* "talib/_func.pxi":4066 + * high_data = 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__512 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__512)) __PYX_ERR(2, 4066, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__512); + __Pyx_GIVEREF(__pyx_tuple__512); + + /* "talib/_func.pxi":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__513 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__513)) __PYX_ERR(2, 4068, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__513); + __Pyx_GIVEREF(__pyx_tuple__513); + + /* "talib/_func.pxi":4073 + * low_data = 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__514 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__514)) __PYX_ERR(2, 4073, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__514); + __Pyx_GIVEREF(__pyx_tuple__514); + + /* "talib/_func.pxi":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__515 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__515)) __PYX_ERR(2, 4075, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__515); + __Pyx_GIVEREF(__pyx_tuple__515); + + /* "talib/_func.pxi":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__516 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__516)) __PYX_ERR(2, 4081, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__516); + __Pyx_GIVEREF(__pyx_tuple__516); + + /* "talib/_func.pxi":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__517 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__517)) __PYX_ERR(2, 4083, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__517); + __Pyx_GIVEREF(__pyx_tuple__517); + + /* "talib/_func.pxi":4085 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_tuple__518 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__518)) __PYX_ERR(2, 4085, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__518); + __Pyx_GIVEREF(__pyx_tuple__518); + + /* "talib/_func.pxi":4103 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLINNECK_Lookback( ) + */ + __pyx_tuple__519 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__519)) __PYX_ERR(2, 4103, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__519); + __Pyx_GIVEREF(__pyx_tuple__519); + + /* "talib/_func.pxi":4140 + * int* outinteger_data + * 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__520 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__520)) __PYX_ERR(2, 4140, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__520); + __Pyx_GIVEREF(__pyx_tuple__520); + + /* "talib/_func.pxi":4142 + * 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__521 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__521)) __PYX_ERR(2, 4142, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__521); + __Pyx_GIVEREF(__pyx_tuple__521); + + /* "talib/_func.pxi":4147 + * open_data = 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__522 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__522)) __PYX_ERR(2, 4147, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__522); + __Pyx_GIVEREF(__pyx_tuple__522); + + /* "talib/_func.pxi":4149 + * raise 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__523 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__523)) __PYX_ERR(2, 4149, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__523); + __Pyx_GIVEREF(__pyx_tuple__523); + + /* "talib/_func.pxi":4154 + * high_data = 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__524 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__524)) __PYX_ERR(2, 4154, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__524); + __Pyx_GIVEREF(__pyx_tuple__524); + + /* "talib/_func.pxi":4156 + * raise 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__525 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__525)) __PYX_ERR(2, 4156, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__525); + __Pyx_GIVEREF(__pyx_tuple__525); + + /* "talib/_func.pxi":4161 + * low_data = 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__526 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__526)) __PYX_ERR(2, 4161, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__526); + __Pyx_GIVEREF(__pyx_tuple__526); + + /* "talib/_func.pxi":4163 + * raise 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__527 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__527)) __PYX_ERR(2, 4163, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__527); + __Pyx_GIVEREF(__pyx_tuple__527); + + /* "talib/_func.pxi":4169 + * 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__528 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__528)) __PYX_ERR(2, 4169, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__528); + __Pyx_GIVEREF(__pyx_tuple__528); + + /* "talib/_func.pxi":4171 + * 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__529 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__529)) __PYX_ERR(2, 4171, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__529); + __Pyx_GIVEREF(__pyx_tuple__529); + + /* "talib/_func.pxi":4173 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_tuple__530 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__530)) __PYX_ERR(2, 4173, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__530); + __Pyx_GIVEREF(__pyx_tuple__530); + + /* "talib/_func.pxi":4191 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLINVERTEDHAMMER_Lookback( ) + */ + __pyx_tuple__531 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__531)) __PYX_ERR(2, 4191, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__531); + __Pyx_GIVEREF(__pyx_tuple__531); + + /* "talib/_func.pxi":4228 + * int* outinteger_data + * 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__532 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__532)) __PYX_ERR(2, 4228, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__532); + __Pyx_GIVEREF(__pyx_tuple__532); + + /* "talib/_func.pxi":4230 + * 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__533 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__533)) __PYX_ERR(2, 4230, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__533); + __Pyx_GIVEREF(__pyx_tuple__533); + + /* "talib/_func.pxi":4235 + * open_data = 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__534 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__534)) __PYX_ERR(2, 4235, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__534); + __Pyx_GIVEREF(__pyx_tuple__534); + + /* "talib/_func.pxi":4237 + * raise 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__535 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__535)) __PYX_ERR(2, 4237, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__535); + __Pyx_GIVEREF(__pyx_tuple__535); + + /* "talib/_func.pxi":4242 + * high_data = 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__536 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__536)) __PYX_ERR(2, 4242, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__536); + __Pyx_GIVEREF(__pyx_tuple__536); + + /* "talib/_func.pxi":4244 + * raise 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__537 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__537)) __PYX_ERR(2, 4244, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__537); + __Pyx_GIVEREF(__pyx_tuple__537); + + /* "talib/_func.pxi":4249 + * low_data = 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__538 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__538)) __PYX_ERR(2, 4249, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__538); + __Pyx_GIVEREF(__pyx_tuple__538); + + /* "talib/_func.pxi":4251 + * raise 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__539 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__539)) __PYX_ERR(2, 4251, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__539); + __Pyx_GIVEREF(__pyx_tuple__539); + + /* "talib/_func.pxi":4257 + * 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__540 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__540)) __PYX_ERR(2, 4257, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__540); + __Pyx_GIVEREF(__pyx_tuple__540); + + /* "talib/_func.pxi":4259 + * 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__541 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__541)) __PYX_ERR(2, 4259, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__541); + __Pyx_GIVEREF(__pyx_tuple__541); + + /* "talib/_func.pxi":4261 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_tuple__542 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__542)) __PYX_ERR(2, 4261, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__542); + __Pyx_GIVEREF(__pyx_tuple__542); + + /* "talib/_func.pxi":4279 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLKICKING_Lookback( ) + */ + __pyx_tuple__543 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__543)) __PYX_ERR(2, 4279, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__543); + __Pyx_GIVEREF(__pyx_tuple__543); + + /* "talib/_func.pxi":4316 + * int* outinteger_data + * 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__544 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__544)) __PYX_ERR(2, 4316, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__544); + __Pyx_GIVEREF(__pyx_tuple__544); + + /* "talib/_func.pxi":4318 + * 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__545 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__545)) __PYX_ERR(2, 4318, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__545); + __Pyx_GIVEREF(__pyx_tuple__545); + + /* "talib/_func.pxi":4323 + * open_data = 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__546 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__546)) __PYX_ERR(2, 4323, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__546); + __Pyx_GIVEREF(__pyx_tuple__546); + + /* "talib/_func.pxi":4325 + * raise 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__547 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__547)) __PYX_ERR(2, 4325, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__547); + __Pyx_GIVEREF(__pyx_tuple__547); + + /* "talib/_func.pxi":4330 + * high_data = 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__548 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__548)) __PYX_ERR(2, 4330, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__548); + __Pyx_GIVEREF(__pyx_tuple__548); + + /* "talib/_func.pxi":4332 + * raise 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__549 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__549)) __PYX_ERR(2, 4332, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__549); + __Pyx_GIVEREF(__pyx_tuple__549); + + /* "talib/_func.pxi":4337 + * low_data = 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__550 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__550)) __PYX_ERR(2, 4337, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__550); + __Pyx_GIVEREF(__pyx_tuple__550); + + /* "talib/_func.pxi":4339 + * raise 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__551 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__551)) __PYX_ERR(2, 4339, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__551); + __Pyx_GIVEREF(__pyx_tuple__551); + + /* "talib/_func.pxi":4345 + * 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__552 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__552)) __PYX_ERR(2, 4345, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__552); + __Pyx_GIVEREF(__pyx_tuple__552); + + /* "talib/_func.pxi":4347 + * 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__553 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__553)) __PYX_ERR(2, 4347, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__553); + __Pyx_GIVEREF(__pyx_tuple__553); + + /* "talib/_func.pxi":4349 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_tuple__554 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__554)) __PYX_ERR(2, 4349, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__554); + __Pyx_GIVEREF(__pyx_tuple__554); + + /* "talib/_func.pxi":4367 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLKICKINGBYLENGTH_Lookback( ) + */ + __pyx_tuple__555 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__555)) __PYX_ERR(2, 4367, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__555); + __Pyx_GIVEREF(__pyx_tuple__555); + + /* "talib/_func.pxi":4404 + * int* outinteger_data + * 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__556 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__556)) __PYX_ERR(2, 4404, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__556); + __Pyx_GIVEREF(__pyx_tuple__556); + + /* "talib/_func.pxi":4406 + * 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__557 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__557)) __PYX_ERR(2, 4406, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__557); + __Pyx_GIVEREF(__pyx_tuple__557); + + /* "talib/_func.pxi":4411 + * open_data = 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__558 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__558)) __PYX_ERR(2, 4411, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__558); + __Pyx_GIVEREF(__pyx_tuple__558); + + /* "talib/_func.pxi":4413 + * raise 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__559 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__559)) __PYX_ERR(2, 4413, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__559); + __Pyx_GIVEREF(__pyx_tuple__559); + + /* "talib/_func.pxi":4418 + * high_data = 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__560 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__560)) __PYX_ERR(2, 4418, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__560); + __Pyx_GIVEREF(__pyx_tuple__560); + + /* "talib/_func.pxi":4420 + * raise 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__561 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__561)) __PYX_ERR(2, 4420, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__561); + __Pyx_GIVEREF(__pyx_tuple__561); + + /* "talib/_func.pxi":4425 + * low_data = 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__562 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__562)) __PYX_ERR(2, 4425, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__562); + __Pyx_GIVEREF(__pyx_tuple__562); + + /* "talib/_func.pxi":4427 + * raise 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__563 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__563)) __PYX_ERR(2, 4427, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__563); + __Pyx_GIVEREF(__pyx_tuple__563); + + /* "talib/_func.pxi":4433 + * 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__564 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__564)) __PYX_ERR(2, 4433, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__564); + __Pyx_GIVEREF(__pyx_tuple__564); + + /* "talib/_func.pxi":4435 + * 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__565 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__565)) __PYX_ERR(2, 4435, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__565); + __Pyx_GIVEREF(__pyx_tuple__565); + + /* "talib/_func.pxi":4437 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_tuple__566 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__566)) __PYX_ERR(2, 4437, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__566); + __Pyx_GIVEREF(__pyx_tuple__566); + + /* "talib/_func.pxi":4455 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLLADDERBOTTOM_Lookback( ) + */ + __pyx_tuple__567 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__567)) __PYX_ERR(2, 4455, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__567); + __Pyx_GIVEREF(__pyx_tuple__567); + + /* "talib/_func.pxi":4492 + * int* outinteger_data + * 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__568 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__568)) __PYX_ERR(2, 4492, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__568); + __Pyx_GIVEREF(__pyx_tuple__568); + + /* "talib/_func.pxi":4494 + * 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__569 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__569)) __PYX_ERR(2, 4494, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__569); + __Pyx_GIVEREF(__pyx_tuple__569); + + /* "talib/_func.pxi":4499 + * open_data = 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__570 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__570)) __PYX_ERR(2, 4499, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__570); + __Pyx_GIVEREF(__pyx_tuple__570); + + /* "talib/_func.pxi":4501 + * raise 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__571 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__571)) __PYX_ERR(2, 4501, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__571); + __Pyx_GIVEREF(__pyx_tuple__571); + + /* "talib/_func.pxi":4506 + * high_data = 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__572 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__572)) __PYX_ERR(2, 4506, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__572); + __Pyx_GIVEREF(__pyx_tuple__572); + + /* "talib/_func.pxi":4508 + * raise 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__573 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__573)) __PYX_ERR(2, 4508, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__573); + __Pyx_GIVEREF(__pyx_tuple__573); + + /* "talib/_func.pxi":4513 + * low_data = 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__574 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__574)) __PYX_ERR(2, 4513, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__574); + __Pyx_GIVEREF(__pyx_tuple__574); + + /* "talib/_func.pxi":4515 + * raise 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__575 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__575)) __PYX_ERR(2, 4515, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__575); + __Pyx_GIVEREF(__pyx_tuple__575); + + /* "talib/_func.pxi":4521 + * 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__576 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__576)) __PYX_ERR(2, 4521, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__576); + __Pyx_GIVEREF(__pyx_tuple__576); + + /* "talib/_func.pxi":4523 + * 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__577 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__577)) __PYX_ERR(2, 4523, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__577); + __Pyx_GIVEREF(__pyx_tuple__577); + + /* "talib/_func.pxi":4525 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_tuple__578 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__578)) __PYX_ERR(2, 4525, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__578); + __Pyx_GIVEREF(__pyx_tuple__578); + + /* "talib/_func.pxi":4543 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLLONGLEGGEDDOJI_Lookback( ) + */ + __pyx_tuple__579 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__579)) __PYX_ERR(2, 4543, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__579); + __Pyx_GIVEREF(__pyx_tuple__579); + + /* "talib/_func.pxi":4580 + * int* outinteger_data + * 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(2, 4580, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__580); + __Pyx_GIVEREF(__pyx_tuple__580); + + /* "talib/_func.pxi":4582 + * 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(2, 4582, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__581); + __Pyx_GIVEREF(__pyx_tuple__581); + + /* "talib/_func.pxi":4587 + * open_data = 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(2, 4587, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__582); + __Pyx_GIVEREF(__pyx_tuple__582); + + /* "talib/_func.pxi":4589 + * raise 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(2, 4589, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__583); + __Pyx_GIVEREF(__pyx_tuple__583); + + /* "talib/_func.pxi":4594 + * high_data = 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(2, 4594, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__584); + __Pyx_GIVEREF(__pyx_tuple__584); + + /* "talib/_func.pxi":4596 + * raise 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(2, 4596, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__585); + __Pyx_GIVEREF(__pyx_tuple__585); + + /* "talib/_func.pxi":4601 + * low_data = 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(2, 4601, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__586); + __Pyx_GIVEREF(__pyx_tuple__586); + + /* "talib/_func.pxi":4603 + * raise 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(2, 4603, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__587); + __Pyx_GIVEREF(__pyx_tuple__587); + + /* "talib/_func.pxi":4609 + * 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(2, 4609, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__588); + __Pyx_GIVEREF(__pyx_tuple__588); + + /* "talib/_func.pxi":4611 + * 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(2, 4611, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__589); + __Pyx_GIVEREF(__pyx_tuple__589); + + /* "talib/_func.pxi":4613 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_tuple__590 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__590)) __PYX_ERR(2, 4613, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__590); + __Pyx_GIVEREF(__pyx_tuple__590); + + /* "talib/_func.pxi":4631 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLLONGLINE_Lookback( ) + */ + __pyx_tuple__591 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__591)) __PYX_ERR(2, 4631, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__591); + __Pyx_GIVEREF(__pyx_tuple__591); + + /* "talib/_func.pxi":4668 + * int* outinteger_data + * 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__592 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__592)) __PYX_ERR(2, 4668, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__592); + __Pyx_GIVEREF(__pyx_tuple__592); + + /* "talib/_func.pxi":4670 + * 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__593 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__593)) __PYX_ERR(2, 4670, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__593); + __Pyx_GIVEREF(__pyx_tuple__593); + + /* "talib/_func.pxi":4675 + * open_data = 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__594 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__594)) __PYX_ERR(2, 4675, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__594); + __Pyx_GIVEREF(__pyx_tuple__594); + + /* "talib/_func.pxi":4677 + * raise 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__595 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__595)) __PYX_ERR(2, 4677, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__595); + __Pyx_GIVEREF(__pyx_tuple__595); + + /* "talib/_func.pxi":4682 + * high_data = 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__596 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__596)) __PYX_ERR(2, 4682, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__596); + __Pyx_GIVEREF(__pyx_tuple__596); + + /* "talib/_func.pxi":4684 + * raise 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__597 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__597)) __PYX_ERR(2, 4684, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__597); + __Pyx_GIVEREF(__pyx_tuple__597); + + /* "talib/_func.pxi":4689 + * low_data = 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__598 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__598)) __PYX_ERR(2, 4689, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__598); + __Pyx_GIVEREF(__pyx_tuple__598); + + /* "talib/_func.pxi":4691 + * raise 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__599 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__599)) __PYX_ERR(2, 4691, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__599); + __Pyx_GIVEREF(__pyx_tuple__599); + + /* "talib/_func.pxi":4697 + * 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__600 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__600)) __PYX_ERR(2, 4697, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__600); + __Pyx_GIVEREF(__pyx_tuple__600); + + /* "talib/_func.pxi":4699 + * 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__601 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__601)) __PYX_ERR(2, 4699, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__601); + __Pyx_GIVEREF(__pyx_tuple__601); + + /* "talib/_func.pxi":4701 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_tuple__602 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__602)) __PYX_ERR(2, 4701, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__602); + __Pyx_GIVEREF(__pyx_tuple__602); + + /* "talib/_func.pxi":4719 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLMARUBOZU_Lookback( ) + */ + __pyx_tuple__603 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__603)) __PYX_ERR(2, 4719, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__603); + __Pyx_GIVEREF(__pyx_tuple__603); + + /* "talib/_func.pxi":4756 + * int* outinteger_data + * 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__604 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__604)) __PYX_ERR(2, 4756, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__604); + __Pyx_GIVEREF(__pyx_tuple__604); + + /* "talib/_func.pxi":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__605 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__605)) __PYX_ERR(2, 4758, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__605); + __Pyx_GIVEREF(__pyx_tuple__605); + + /* "talib/_func.pxi":4763 + * open_data = 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__606 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__606)) __PYX_ERR(2, 4763, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__606); + __Pyx_GIVEREF(__pyx_tuple__606); + + /* "talib/_func.pxi":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__607 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__607)) __PYX_ERR(2, 4765, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__607); + __Pyx_GIVEREF(__pyx_tuple__607); + + /* "talib/_func.pxi":4770 + * high_data = 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__608 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__608)) __PYX_ERR(2, 4770, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__608); + __Pyx_GIVEREF(__pyx_tuple__608); + + /* "talib/_func.pxi":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__609 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__609)) __PYX_ERR(2, 4772, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__609); + __Pyx_GIVEREF(__pyx_tuple__609); + + /* "talib/_func.pxi":4777 + * low_data = 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__610 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__610)) __PYX_ERR(2, 4777, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__610); + __Pyx_GIVEREF(__pyx_tuple__610); + + /* "talib/_func.pxi":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__611 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__611)) __PYX_ERR(2, 4779, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__611); + __Pyx_GIVEREF(__pyx_tuple__611); + + /* "talib/_func.pxi":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__612 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__612)) __PYX_ERR(2, 4785, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__612); + __Pyx_GIVEREF(__pyx_tuple__612); + + /* "talib/_func.pxi":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__613 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__613)) __PYX_ERR(2, 4787, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__613); + __Pyx_GIVEREF(__pyx_tuple__613); + + /* "talib/_func.pxi":4789 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_tuple__614 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__614)) __PYX_ERR(2, 4789, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__614); + __Pyx_GIVEREF(__pyx_tuple__614); + + /* "talib/_func.pxi":4807 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLMATCHINGLOW_Lookback( ) + */ + __pyx_tuple__615 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__615)) __PYX_ERR(2, 4807, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__615); + __Pyx_GIVEREF(__pyx_tuple__615); + + /* "talib/_func.pxi":4846 + * int* outinteger_data + * 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__616 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__616)) __PYX_ERR(2, 4846, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__616); + __Pyx_GIVEREF(__pyx_tuple__616); + + /* "talib/_func.pxi":4848 + * 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__617 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__617)) __PYX_ERR(2, 4848, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__617); + __Pyx_GIVEREF(__pyx_tuple__617); + + /* "talib/_func.pxi":4853 + * open_data = 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__618 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__618)) __PYX_ERR(2, 4853, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__618); + __Pyx_GIVEREF(__pyx_tuple__618); + + /* "talib/_func.pxi":4855 + * raise 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__619 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__619)) __PYX_ERR(2, 4855, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__619); + __Pyx_GIVEREF(__pyx_tuple__619); + + /* "talib/_func.pxi":4860 + * high_data = 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__620 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__620)) __PYX_ERR(2, 4860, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__620); + __Pyx_GIVEREF(__pyx_tuple__620); + + /* "talib/_func.pxi":4862 + * raise 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__621 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__621)) __PYX_ERR(2, 4862, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__621); + __Pyx_GIVEREF(__pyx_tuple__621); + + /* "talib/_func.pxi":4867 + * low_data = 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__622 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__622)) __PYX_ERR(2, 4867, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__622); + __Pyx_GIVEREF(__pyx_tuple__622); + + /* "talib/_func.pxi":4869 + * raise 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__623 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__623)) __PYX_ERR(2, 4869, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__623); + __Pyx_GIVEREF(__pyx_tuple__623); + + /* "talib/_func.pxi":4875 + * 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__624 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__624)) __PYX_ERR(2, 4875, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__624); + __Pyx_GIVEREF(__pyx_tuple__624); + + /* "talib/_func.pxi":4877 + * 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__625 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__625)) __PYX_ERR(2, 4877, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__625); + __Pyx_GIVEREF(__pyx_tuple__625); + + /* "talib/_func.pxi":4879 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_tuple__626 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__626)) __PYX_ERR(2, 4879, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__626); + __Pyx_GIVEREF(__pyx_tuple__626); + + /* "talib/_func.pxi":4897 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLMATHOLD_Lookback( penetration ) + */ + __pyx_tuple__627 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__627)) __PYX_ERR(2, 4897, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__627); + __Pyx_GIVEREF(__pyx_tuple__627); + + /* "talib/_func.pxi":4936 + * int* outinteger_data + * 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__628 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__628)) __PYX_ERR(2, 4936, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__628); + __Pyx_GIVEREF(__pyx_tuple__628); + + /* "talib/_func.pxi":4938 + * 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__629 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__629)) __PYX_ERR(2, 4938, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__629); + __Pyx_GIVEREF(__pyx_tuple__629); + + /* "talib/_func.pxi":4943 + * open_data = 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__630 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__630)) __PYX_ERR(2, 4943, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__630); + __Pyx_GIVEREF(__pyx_tuple__630); + + /* "talib/_func.pxi":4945 + * raise 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__631 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__631)) __PYX_ERR(2, 4945, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__631); + __Pyx_GIVEREF(__pyx_tuple__631); + + /* "talib/_func.pxi":4950 + * high_data = 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__632 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__632)) __PYX_ERR(2, 4950, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__632); + __Pyx_GIVEREF(__pyx_tuple__632); + + /* "talib/_func.pxi":4952 + * raise 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__633 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__633)) __PYX_ERR(2, 4952, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__633); + __Pyx_GIVEREF(__pyx_tuple__633); + + /* "talib/_func.pxi":4957 + * low_data = 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__634 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__634)) __PYX_ERR(2, 4957, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__634); + __Pyx_GIVEREF(__pyx_tuple__634); + + /* "talib/_func.pxi":4959 + * raise 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__635 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__635)) __PYX_ERR(2, 4959, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__635); + __Pyx_GIVEREF(__pyx_tuple__635); + + /* "talib/_func.pxi":4965 + * 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__636 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__636)) __PYX_ERR(2, 4965, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__636); + __Pyx_GIVEREF(__pyx_tuple__636); + + /* "talib/_func.pxi":4967 + * 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__637 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__637)) __PYX_ERR(2, 4967, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__637); + __Pyx_GIVEREF(__pyx_tuple__637); + + /* "talib/_func.pxi":4969 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_tuple__638 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__638)) __PYX_ERR(2, 4969, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__638); + __Pyx_GIVEREF(__pyx_tuple__638); + + /* "talib/_func.pxi":4987 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLMORNINGDOJISTAR_Lookback( penetration ) + */ + __pyx_tuple__639 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__639)) __PYX_ERR(2, 4987, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__639); + __Pyx_GIVEREF(__pyx_tuple__639); + + /* "talib/_func.pxi":5026 + * int* outinteger_data + * 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__640 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__640)) __PYX_ERR(2, 5026, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__640); + __Pyx_GIVEREF(__pyx_tuple__640); + + /* "talib/_func.pxi":5028 + * 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__641 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__641)) __PYX_ERR(2, 5028, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__641); + __Pyx_GIVEREF(__pyx_tuple__641); + + /* "talib/_func.pxi":5033 + * open_data = 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__642 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__642)) __PYX_ERR(2, 5033, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__642); + __Pyx_GIVEREF(__pyx_tuple__642); + + /* "talib/_func.pxi":5035 + * raise 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__643 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__643)) __PYX_ERR(2, 5035, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__643); + __Pyx_GIVEREF(__pyx_tuple__643); + + /* "talib/_func.pxi":5040 + * high_data = 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__644 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__644)) __PYX_ERR(2, 5040, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__644); + __Pyx_GIVEREF(__pyx_tuple__644); + + /* "talib/_func.pxi":5042 + * raise 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__645 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__645)) __PYX_ERR(2, 5042, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__645); + __Pyx_GIVEREF(__pyx_tuple__645); + + /* "talib/_func.pxi":5047 + * low_data = 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__646 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__646)) __PYX_ERR(2, 5047, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__646); + __Pyx_GIVEREF(__pyx_tuple__646); + + /* "talib/_func.pxi":5049 + * raise 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__647 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__647)) __PYX_ERR(2, 5049, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__647); + __Pyx_GIVEREF(__pyx_tuple__647); + + /* "talib/_func.pxi":5055 + * 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__648 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__648)) __PYX_ERR(2, 5055, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__648); + __Pyx_GIVEREF(__pyx_tuple__648); + + /* "talib/_func.pxi":5057 + * 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__649 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__649)) __PYX_ERR(2, 5057, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__649); + __Pyx_GIVEREF(__pyx_tuple__649); + + /* "talib/_func.pxi":5059 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_tuple__650 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__650)) __PYX_ERR(2, 5059, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__650); + __Pyx_GIVEREF(__pyx_tuple__650); + + /* "talib/_func.pxi":5077 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLMORNINGSTAR_Lookback( penetration ) + */ + __pyx_tuple__651 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__651)) __PYX_ERR(2, 5077, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__651); + __Pyx_GIVEREF(__pyx_tuple__651); + + /* "talib/_func.pxi":5114 + * int* outinteger_data + * 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__652 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__652)) __PYX_ERR(2, 5114, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__652); + __Pyx_GIVEREF(__pyx_tuple__652); + + /* "talib/_func.pxi":5116 + * 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__653 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__653)) __PYX_ERR(2, 5116, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__653); + __Pyx_GIVEREF(__pyx_tuple__653); + + /* "talib/_func.pxi":5121 + * open_data = 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__654 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__654)) __PYX_ERR(2, 5121, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__654); + __Pyx_GIVEREF(__pyx_tuple__654); + + /* "talib/_func.pxi":5123 + * raise 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__655 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__655)) __PYX_ERR(2, 5123, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__655); + __Pyx_GIVEREF(__pyx_tuple__655); + + /* "talib/_func.pxi":5128 + * high_data = 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__656 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__656)) __PYX_ERR(2, 5128, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__656); + __Pyx_GIVEREF(__pyx_tuple__656); + + /* "talib/_func.pxi":5130 + * raise 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__657 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__657)) __PYX_ERR(2, 5130, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__657); + __Pyx_GIVEREF(__pyx_tuple__657); + + /* "talib/_func.pxi":5135 + * low_data = 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__658 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__658)) __PYX_ERR(2, 5135, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__658); + __Pyx_GIVEREF(__pyx_tuple__658); + + /* "talib/_func.pxi":5137 + * raise 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__659 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__659)) __PYX_ERR(2, 5137, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__659); + __Pyx_GIVEREF(__pyx_tuple__659); + + /* "talib/_func.pxi":5143 + * 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__660 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__660)) __PYX_ERR(2, 5143, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__660); + __Pyx_GIVEREF(__pyx_tuple__660); + + /* "talib/_func.pxi":5145 + * 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__661 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__661)) __PYX_ERR(2, 5145, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__661); + __Pyx_GIVEREF(__pyx_tuple__661); + + /* "talib/_func.pxi":5147 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_tuple__662 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__662)) __PYX_ERR(2, 5147, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__662); + __Pyx_GIVEREF(__pyx_tuple__662); + + /* "talib/_func.pxi":5165 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLONNECK_Lookback( ) + */ + __pyx_tuple__663 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__663)) __PYX_ERR(2, 5165, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__663); + __Pyx_GIVEREF(__pyx_tuple__663); + + /* "talib/_func.pxi":5202 + * int* outinteger_data + * 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__664 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__664)) __PYX_ERR(2, 5202, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__664); + __Pyx_GIVEREF(__pyx_tuple__664); + + /* "talib/_func.pxi":5204 + * 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__665 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__665)) __PYX_ERR(2, 5204, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__665); + __Pyx_GIVEREF(__pyx_tuple__665); + + /* "talib/_func.pxi":5209 + * open_data = 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__666 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__666)) __PYX_ERR(2, 5209, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__666); + __Pyx_GIVEREF(__pyx_tuple__666); + + /* "talib/_func.pxi":5211 + * raise 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__667 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__667)) __PYX_ERR(2, 5211, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__667); + __Pyx_GIVEREF(__pyx_tuple__667); + + /* "talib/_func.pxi":5216 + * high_data = 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__668 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__668)) __PYX_ERR(2, 5216, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__668); + __Pyx_GIVEREF(__pyx_tuple__668); + + /* "talib/_func.pxi":5218 + * raise 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__669 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__669)) __PYX_ERR(2, 5218, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__669); + __Pyx_GIVEREF(__pyx_tuple__669); + + /* "talib/_func.pxi":5223 + * low_data = 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__670 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__670)) __PYX_ERR(2, 5223, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__670); + __Pyx_GIVEREF(__pyx_tuple__670); + + /* "talib/_func.pxi":5225 + * raise 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__671 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__671)) __PYX_ERR(2, 5225, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__671); + __Pyx_GIVEREF(__pyx_tuple__671); + + /* "talib/_func.pxi":5231 + * 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__672 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__672)) __PYX_ERR(2, 5231, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__672); + __Pyx_GIVEREF(__pyx_tuple__672); + + /* "talib/_func.pxi":5233 + * 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__673 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__673)) __PYX_ERR(2, 5233, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__673); + __Pyx_GIVEREF(__pyx_tuple__673); + + /* "talib/_func.pxi":5235 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_tuple__674 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__674)) __PYX_ERR(2, 5235, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__674); + __Pyx_GIVEREF(__pyx_tuple__674); + + /* "talib/_func.pxi":5253 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLPIERCING_Lookback( ) + */ + __pyx_tuple__675 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__675)) __PYX_ERR(2, 5253, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__675); + __Pyx_GIVEREF(__pyx_tuple__675); + + /* "talib/_func.pxi":5290 + * int* outinteger_data + * 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__676 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__676)) __PYX_ERR(2, 5290, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__676); + __Pyx_GIVEREF(__pyx_tuple__676); + + /* "talib/_func.pxi":5292 + * 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__677 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__677)) __PYX_ERR(2, 5292, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__677); + __Pyx_GIVEREF(__pyx_tuple__677); + + /* "talib/_func.pxi":5297 + * open_data = 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__678 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__678)) __PYX_ERR(2, 5297, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__678); + __Pyx_GIVEREF(__pyx_tuple__678); + + /* "talib/_func.pxi":5299 + * raise 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__679 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__679)) __PYX_ERR(2, 5299, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__679); + __Pyx_GIVEREF(__pyx_tuple__679); + + /* "talib/_func.pxi":5304 + * high_data = 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__680 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__680)) __PYX_ERR(2, 5304, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__680); + __Pyx_GIVEREF(__pyx_tuple__680); + + /* "talib/_func.pxi":5306 + * raise 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__681 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__681)) __PYX_ERR(2, 5306, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__681); + __Pyx_GIVEREF(__pyx_tuple__681); + + /* "talib/_func.pxi":5311 + * low_data = 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__682 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__682)) __PYX_ERR(2, 5311, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__682); + __Pyx_GIVEREF(__pyx_tuple__682); + + /* "talib/_func.pxi":5313 + * raise 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__683 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__683)) __PYX_ERR(2, 5313, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__683); + __Pyx_GIVEREF(__pyx_tuple__683); + + /* "talib/_func.pxi":5319 + * 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__684 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__684)) __PYX_ERR(2, 5319, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__684); + __Pyx_GIVEREF(__pyx_tuple__684); + + /* "talib/_func.pxi":5321 + * 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__685 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__685)) __PYX_ERR(2, 5321, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__685); + __Pyx_GIVEREF(__pyx_tuple__685); + + /* "talib/_func.pxi":5323 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_tuple__686 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__686)) __PYX_ERR(2, 5323, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__686); + __Pyx_GIVEREF(__pyx_tuple__686); + + /* "talib/_func.pxi":5341 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLRICKSHAWMAN_Lookback( ) + */ + __pyx_tuple__687 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__687)) __PYX_ERR(2, 5341, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__687); + __Pyx_GIVEREF(__pyx_tuple__687); + + /* "talib/_func.pxi":5378 + * int* outinteger_data + * 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__688 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__688)) __PYX_ERR(2, 5378, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__688); + __Pyx_GIVEREF(__pyx_tuple__688); + + /* "talib/_func.pxi":5380 + * 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__689 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__689)) __PYX_ERR(2, 5380, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__689); + __Pyx_GIVEREF(__pyx_tuple__689); + + /* "talib/_func.pxi":5385 + * open_data = 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__690 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__690)) __PYX_ERR(2, 5385, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__690); + __Pyx_GIVEREF(__pyx_tuple__690); + + /* "talib/_func.pxi":5387 + * raise 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__691 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__691)) __PYX_ERR(2, 5387, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__691); + __Pyx_GIVEREF(__pyx_tuple__691); + + /* "talib/_func.pxi":5392 + * high_data = 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__692 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__692)) __PYX_ERR(2, 5392, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__692); + __Pyx_GIVEREF(__pyx_tuple__692); + + /* "talib/_func.pxi":5394 + * raise 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__693 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__693)) __PYX_ERR(2, 5394, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__693); + __Pyx_GIVEREF(__pyx_tuple__693); + + /* "talib/_func.pxi":5399 + * low_data = 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__694 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__694)) __PYX_ERR(2, 5399, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__694); + __Pyx_GIVEREF(__pyx_tuple__694); + + /* "talib/_func.pxi":5401 + * raise 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__695 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__695)) __PYX_ERR(2, 5401, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__695); + __Pyx_GIVEREF(__pyx_tuple__695); + + /* "talib/_func.pxi":5407 + * 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__696 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__696)) __PYX_ERR(2, 5407, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__696); + __Pyx_GIVEREF(__pyx_tuple__696); + + /* "talib/_func.pxi":5409 + * 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__697 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__697)) __PYX_ERR(2, 5409, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__697); + __Pyx_GIVEREF(__pyx_tuple__697); + + /* "talib/_func.pxi":5411 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_tuple__698 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__698)) __PYX_ERR(2, 5411, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__698); + __Pyx_GIVEREF(__pyx_tuple__698); + + /* "talib/_func.pxi":5429 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLRISEFALL3METHODS_Lookback( ) + */ + __pyx_tuple__699 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__699)) __PYX_ERR(2, 5429, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__699); + __Pyx_GIVEREF(__pyx_tuple__699); + + /* "talib/_func.pxi":5466 + * int* outinteger_data + * 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__700 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__700)) __PYX_ERR(2, 5466, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__700); + __Pyx_GIVEREF(__pyx_tuple__700); + + /* "talib/_func.pxi":5468 + * 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__701 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__701)) __PYX_ERR(2, 5468, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__701); + __Pyx_GIVEREF(__pyx_tuple__701); + + /* "talib/_func.pxi":5473 + * open_data = 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__702 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__702)) __PYX_ERR(2, 5473, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__702); + __Pyx_GIVEREF(__pyx_tuple__702); + + /* "talib/_func.pxi":5475 + * raise 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__703 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__703)) __PYX_ERR(2, 5475, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__703); + __Pyx_GIVEREF(__pyx_tuple__703); + + /* "talib/_func.pxi":5480 + * high_data = 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__704 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__704)) __PYX_ERR(2, 5480, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__704); + __Pyx_GIVEREF(__pyx_tuple__704); + + /* "talib/_func.pxi":5482 + * raise 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__705 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__705)) __PYX_ERR(2, 5482, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__705); + __Pyx_GIVEREF(__pyx_tuple__705); + + /* "talib/_func.pxi":5487 + * low_data = 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__706 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__706)) __PYX_ERR(2, 5487, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__706); + __Pyx_GIVEREF(__pyx_tuple__706); + + /* "talib/_func.pxi":5489 + * raise 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__707 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__707)) __PYX_ERR(2, 5489, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__707); + __Pyx_GIVEREF(__pyx_tuple__707); + + /* "talib/_func.pxi":5495 + * 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__708 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__708)) __PYX_ERR(2, 5495, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__708); + __Pyx_GIVEREF(__pyx_tuple__708); + + /* "talib/_func.pxi":5497 + * 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__709 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__709)) __PYX_ERR(2, 5497, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__709); + __Pyx_GIVEREF(__pyx_tuple__709); + + /* "talib/_func.pxi":5499 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_tuple__710 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__710)) __PYX_ERR(2, 5499, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__710); + __Pyx_GIVEREF(__pyx_tuple__710); + + /* "talib/_func.pxi":5517 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLSEPARATINGLINES_Lookback( ) + */ + __pyx_tuple__711 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__711)) __PYX_ERR(2, 5517, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__711); + __Pyx_GIVEREF(__pyx_tuple__711); + + /* "talib/_func.pxi":5554 + * int* outinteger_data + * 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(2, 5554, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__712); + __Pyx_GIVEREF(__pyx_tuple__712); + + /* "talib/_func.pxi":5556 + * 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(2, 5556, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__713); + __Pyx_GIVEREF(__pyx_tuple__713); + + /* "talib/_func.pxi":5561 + * open_data = 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(2, 5561, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__714); + __Pyx_GIVEREF(__pyx_tuple__714); + + /* "talib/_func.pxi":5563 + * raise 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(2, 5563, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__715); + __Pyx_GIVEREF(__pyx_tuple__715); + + /* "talib/_func.pxi":5568 + * high_data = 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(2, 5568, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__716); + __Pyx_GIVEREF(__pyx_tuple__716); + + /* "talib/_func.pxi":5570 + * raise 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(2, 5570, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__717); + __Pyx_GIVEREF(__pyx_tuple__717); + + /* "talib/_func.pxi":5575 + * low_data = 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(2, 5575, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__718); + __Pyx_GIVEREF(__pyx_tuple__718); + + /* "talib/_func.pxi":5577 + * raise 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(2, 5577, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__719); + __Pyx_GIVEREF(__pyx_tuple__719); + + /* "talib/_func.pxi":5583 + * 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(2, 5583, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__720); + __Pyx_GIVEREF(__pyx_tuple__720); + + /* "talib/_func.pxi":5585 + * 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(2, 5585, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__721); + __Pyx_GIVEREF(__pyx_tuple__721); + + /* "talib/_func.pxi":5587 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_tuple__722 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__722)) __PYX_ERR(2, 5587, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__722); + __Pyx_GIVEREF(__pyx_tuple__722); + + /* "talib/_func.pxi":5605 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLSHOOTINGSTAR_Lookback( ) + */ + __pyx_tuple__723 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__723)) __PYX_ERR(2, 5605, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__723); + __Pyx_GIVEREF(__pyx_tuple__723); + + /* "talib/_func.pxi":5642 + * int* outinteger_data + * 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__724 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__724)) __PYX_ERR(2, 5642, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__724); + __Pyx_GIVEREF(__pyx_tuple__724); + + /* "talib/_func.pxi":5644 + * 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__725 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__725)) __PYX_ERR(2, 5644, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__725); + __Pyx_GIVEREF(__pyx_tuple__725); + + /* "talib/_func.pxi":5649 + * open_data = 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__726 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__726)) __PYX_ERR(2, 5649, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__726); + __Pyx_GIVEREF(__pyx_tuple__726); + + /* "talib/_func.pxi":5651 + * raise 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__727 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__727)) __PYX_ERR(2, 5651, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__727); + __Pyx_GIVEREF(__pyx_tuple__727); + + /* "talib/_func.pxi":5656 + * high_data = 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__728 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__728)) __PYX_ERR(2, 5656, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__728); + __Pyx_GIVEREF(__pyx_tuple__728); + + /* "talib/_func.pxi":5658 + * raise 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__729 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__729)) __PYX_ERR(2, 5658, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__729); + __Pyx_GIVEREF(__pyx_tuple__729); + + /* "talib/_func.pxi":5663 + * low_data = 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__730 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__730)) __PYX_ERR(2, 5663, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__730); + __Pyx_GIVEREF(__pyx_tuple__730); + + /* "talib/_func.pxi":5665 + * raise 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__731 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__731)) __PYX_ERR(2, 5665, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__731); + __Pyx_GIVEREF(__pyx_tuple__731); + + /* "talib/_func.pxi":5671 + * 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__732 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__732)) __PYX_ERR(2, 5671, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__732); + __Pyx_GIVEREF(__pyx_tuple__732); + + /* "talib/_func.pxi":5673 + * 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__733 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__733)) __PYX_ERR(2, 5673, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__733); + __Pyx_GIVEREF(__pyx_tuple__733); + + /* "talib/_func.pxi":5675 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_tuple__734 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__734)) __PYX_ERR(2, 5675, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__734); + __Pyx_GIVEREF(__pyx_tuple__734); + + /* "talib/_func.pxi":5693 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLSHORTLINE_Lookback( ) + */ + __pyx_tuple__735 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__735)) __PYX_ERR(2, 5693, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__735); + __Pyx_GIVEREF(__pyx_tuple__735); + + /* "talib/_func.pxi":5730 + * int* outinteger_data + * 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__736 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__736)) __PYX_ERR(2, 5730, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__736); + __Pyx_GIVEREF(__pyx_tuple__736); + + /* "talib/_func.pxi":5732 + * 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__737 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__737)) __PYX_ERR(2, 5732, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__737); + __Pyx_GIVEREF(__pyx_tuple__737); + + /* "talib/_func.pxi":5737 + * open_data = 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__738 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__738)) __PYX_ERR(2, 5737, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__738); + __Pyx_GIVEREF(__pyx_tuple__738); + + /* "talib/_func.pxi":5739 + * raise 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__739 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__739)) __PYX_ERR(2, 5739, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__739); + __Pyx_GIVEREF(__pyx_tuple__739); + + /* "talib/_func.pxi":5744 + * high_data = 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__740 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__740)) __PYX_ERR(2, 5744, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__740); + __Pyx_GIVEREF(__pyx_tuple__740); + + /* "talib/_func.pxi":5746 + * raise 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__741 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__741)) __PYX_ERR(2, 5746, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__741); + __Pyx_GIVEREF(__pyx_tuple__741); + + /* "talib/_func.pxi":5751 + * low_data = 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__742 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__742)) __PYX_ERR(2, 5751, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__742); + __Pyx_GIVEREF(__pyx_tuple__742); + + /* "talib/_func.pxi":5753 + * raise 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__743 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__743)) __PYX_ERR(2, 5753, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__743); + __Pyx_GIVEREF(__pyx_tuple__743); + + /* "talib/_func.pxi":5759 + * 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__744 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__744)) __PYX_ERR(2, 5759, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__744); + __Pyx_GIVEREF(__pyx_tuple__744); + + /* "talib/_func.pxi":5761 + * 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__745 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__745)) __PYX_ERR(2, 5761, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__745); + __Pyx_GIVEREF(__pyx_tuple__745); + + /* "talib/_func.pxi":5763 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_tuple__746 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__746)) __PYX_ERR(2, 5763, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__746); + __Pyx_GIVEREF(__pyx_tuple__746); + + /* "talib/_func.pxi":5781 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLSPINNINGTOP_Lookback( ) + */ + __pyx_tuple__747 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__747)) __PYX_ERR(2, 5781, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__747); + __Pyx_GIVEREF(__pyx_tuple__747); + + /* "talib/_func.pxi":5818 + * int* outinteger_data + * 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__748 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__748)) __PYX_ERR(2, 5818, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__748); + __Pyx_GIVEREF(__pyx_tuple__748); + + /* "talib/_func.pxi":5820 + * 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__749 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__749)) __PYX_ERR(2, 5820, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__749); + __Pyx_GIVEREF(__pyx_tuple__749); + + /* "talib/_func.pxi":5825 + * open_data = 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__750 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__750)) __PYX_ERR(2, 5825, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__750); + __Pyx_GIVEREF(__pyx_tuple__750); + + /* "talib/_func.pxi":5827 + * raise 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__751 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__751)) __PYX_ERR(2, 5827, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__751); + __Pyx_GIVEREF(__pyx_tuple__751); + + /* "talib/_func.pxi":5832 + * high_data = 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__752 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__752)) __PYX_ERR(2, 5832, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__752); + __Pyx_GIVEREF(__pyx_tuple__752); + + /* "talib/_func.pxi":5834 + * raise 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__753 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__753)) __PYX_ERR(2, 5834, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__753); + __Pyx_GIVEREF(__pyx_tuple__753); + + /* "talib/_func.pxi":5839 + * low_data = 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__754 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__754)) __PYX_ERR(2, 5839, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__754); + __Pyx_GIVEREF(__pyx_tuple__754); + + /* "talib/_func.pxi":5841 + * raise 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__755 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__755)) __PYX_ERR(2, 5841, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__755); + __Pyx_GIVEREF(__pyx_tuple__755); + + /* "talib/_func.pxi":5847 + * 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__756 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__756)) __PYX_ERR(2, 5847, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__756); + __Pyx_GIVEREF(__pyx_tuple__756); + + /* "talib/_func.pxi":5849 + * 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__757 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__757)) __PYX_ERR(2, 5849, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__757); + __Pyx_GIVEREF(__pyx_tuple__757); + + /* "talib/_func.pxi":5851 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_tuple__758 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__758)) __PYX_ERR(2, 5851, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__758); + __Pyx_GIVEREF(__pyx_tuple__758); + + /* "talib/_func.pxi":5869 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLSTALLEDPATTERN_Lookback( ) + */ + __pyx_tuple__759 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__759)) __PYX_ERR(2, 5869, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__759); + __Pyx_GIVEREF(__pyx_tuple__759); + + /* "talib/_func.pxi":5906 + * int* outinteger_data + * 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__760 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__760)) __PYX_ERR(2, 5906, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__760); + __Pyx_GIVEREF(__pyx_tuple__760); + + /* "talib/_func.pxi":5908 + * 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__761 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__761)) __PYX_ERR(2, 5908, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__761); + __Pyx_GIVEREF(__pyx_tuple__761); + + /* "talib/_func.pxi":5913 + * open_data = 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__762 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__762)) __PYX_ERR(2, 5913, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__762); + __Pyx_GIVEREF(__pyx_tuple__762); + + /* "talib/_func.pxi":5915 + * raise 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__763 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__763)) __PYX_ERR(2, 5915, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__763); + __Pyx_GIVEREF(__pyx_tuple__763); + + /* "talib/_func.pxi":5920 + * high_data = 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__764 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__764)) __PYX_ERR(2, 5920, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__764); + __Pyx_GIVEREF(__pyx_tuple__764); + + /* "talib/_func.pxi":5922 + * raise 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__765 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__765)) __PYX_ERR(2, 5922, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__765); + __Pyx_GIVEREF(__pyx_tuple__765); + + /* "talib/_func.pxi":5927 + * low_data = 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__766 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__766)) __PYX_ERR(2, 5927, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__766); + __Pyx_GIVEREF(__pyx_tuple__766); + + /* "talib/_func.pxi":5929 + * raise 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__767 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__767)) __PYX_ERR(2, 5929, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__767); + __Pyx_GIVEREF(__pyx_tuple__767); + + /* "talib/_func.pxi":5935 + * 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__768 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__768)) __PYX_ERR(2, 5935, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__768); + __Pyx_GIVEREF(__pyx_tuple__768); + + /* "talib/_func.pxi":5937 + * 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__769 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__769)) __PYX_ERR(2, 5937, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__769); + __Pyx_GIVEREF(__pyx_tuple__769); + + /* "talib/_func.pxi":5939 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_tuple__770 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__770)) __PYX_ERR(2, 5939, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__770); + __Pyx_GIVEREF(__pyx_tuple__770); + + /* "talib/_func.pxi":5957 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLSTICKSANDWICH_Lookback( ) + */ + __pyx_tuple__771 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__771)) __PYX_ERR(2, 5957, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__771); + __Pyx_GIVEREF(__pyx_tuple__771); + + /* "talib/_func.pxi":5994 + * int* outinteger_data + * 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__772 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__772)) __PYX_ERR(2, 5994, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__772); + __Pyx_GIVEREF(__pyx_tuple__772); + + /* "talib/_func.pxi":5996 + * 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__773 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__773)) __PYX_ERR(2, 5996, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__773); + __Pyx_GIVEREF(__pyx_tuple__773); + + /* "talib/_func.pxi":6001 + * open_data = 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__774 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__774)) __PYX_ERR(2, 6001, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__774); + __Pyx_GIVEREF(__pyx_tuple__774); + + /* "talib/_func.pxi":6003 + * raise 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__775 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__775)) __PYX_ERR(2, 6003, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__775); + __Pyx_GIVEREF(__pyx_tuple__775); + + /* "talib/_func.pxi":6008 + * high_data = 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__776 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__776)) __PYX_ERR(2, 6008, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__776); + __Pyx_GIVEREF(__pyx_tuple__776); + + /* "talib/_func.pxi":6010 + * raise 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__777 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__777)) __PYX_ERR(2, 6010, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__777); + __Pyx_GIVEREF(__pyx_tuple__777); + + /* "talib/_func.pxi":6015 + * low_data = 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__778 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__778)) __PYX_ERR(2, 6015, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__778); + __Pyx_GIVEREF(__pyx_tuple__778); + + /* "talib/_func.pxi":6017 + * raise 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__779 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__779)) __PYX_ERR(2, 6017, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__779); + __Pyx_GIVEREF(__pyx_tuple__779); + + /* "talib/_func.pxi":6023 + * 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__780 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__780)) __PYX_ERR(2, 6023, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__780); + __Pyx_GIVEREF(__pyx_tuple__780); + + /* "talib/_func.pxi":6025 + * 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__781 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__781)) __PYX_ERR(2, 6025, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__781); + __Pyx_GIVEREF(__pyx_tuple__781); + + /* "talib/_func.pxi":6027 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_tuple__782 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__782)) __PYX_ERR(2, 6027, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__782); + __Pyx_GIVEREF(__pyx_tuple__782); + + /* "talib/_func.pxi":6045 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLTAKURI_Lookback( ) + */ + __pyx_tuple__783 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__783)) __PYX_ERR(2, 6045, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__783); + __Pyx_GIVEREF(__pyx_tuple__783); + + /* "talib/_func.pxi":6082 + * int* outinteger_data + * 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__784 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__784)) __PYX_ERR(2, 6082, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__784); + __Pyx_GIVEREF(__pyx_tuple__784); + + /* "talib/_func.pxi":6084 + * 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__785 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__785)) __PYX_ERR(2, 6084, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__785); + __Pyx_GIVEREF(__pyx_tuple__785); + + /* "talib/_func.pxi":6089 + * open_data = 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__786 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__786)) __PYX_ERR(2, 6089, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__786); + __Pyx_GIVEREF(__pyx_tuple__786); + + /* "talib/_func.pxi":6091 + * raise 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__787 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__787)) __PYX_ERR(2, 6091, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__787); + __Pyx_GIVEREF(__pyx_tuple__787); + + /* "talib/_func.pxi":6096 + * high_data = 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__788 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__788)) __PYX_ERR(2, 6096, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__788); + __Pyx_GIVEREF(__pyx_tuple__788); + + /* "talib/_func.pxi":6098 + * raise 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__789 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__789)) __PYX_ERR(2, 6098, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__789); + __Pyx_GIVEREF(__pyx_tuple__789); + + /* "talib/_func.pxi":6103 + * low_data = 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__790 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__790)) __PYX_ERR(2, 6103, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__790); + __Pyx_GIVEREF(__pyx_tuple__790); + + /* "talib/_func.pxi":6105 + * raise 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__791 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__791)) __PYX_ERR(2, 6105, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__791); + __Pyx_GIVEREF(__pyx_tuple__791); + + /* "talib/_func.pxi":6111 + * 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__792 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__792)) __PYX_ERR(2, 6111, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__792); + __Pyx_GIVEREF(__pyx_tuple__792); + + /* "talib/_func.pxi":6113 + * 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__793 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__793)) __PYX_ERR(2, 6113, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__793); + __Pyx_GIVEREF(__pyx_tuple__793); + + /* "talib/_func.pxi":6115 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_tuple__794 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__794)) __PYX_ERR(2, 6115, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__794); + __Pyx_GIVEREF(__pyx_tuple__794); + + /* "talib/_func.pxi":6133 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLTASUKIGAP_Lookback( ) + */ + __pyx_tuple__795 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__795)) __PYX_ERR(2, 6133, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__795); + __Pyx_GIVEREF(__pyx_tuple__795); + + /* "talib/_func.pxi":6170 + * int* outinteger_data + * 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__796 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__796)) __PYX_ERR(2, 6170, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__796); + __Pyx_GIVEREF(__pyx_tuple__796); + + /* "talib/_func.pxi":6172 + * 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__797 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__797)) __PYX_ERR(2, 6172, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__797); + __Pyx_GIVEREF(__pyx_tuple__797); + + /* "talib/_func.pxi":6177 + * open_data = 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__798 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__798)) __PYX_ERR(2, 6177, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__798); + __Pyx_GIVEREF(__pyx_tuple__798); + + /* "talib/_func.pxi":6179 + * raise 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(2, 6179, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__799); + __Pyx_GIVEREF(__pyx_tuple__799); + + /* "talib/_func.pxi":6184 + * high_data = 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(2, 6184, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__800); + __Pyx_GIVEREF(__pyx_tuple__800); + + /* "talib/_func.pxi":6186 + * raise 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(2, 6186, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__801); + __Pyx_GIVEREF(__pyx_tuple__801); + + /* "talib/_func.pxi":6191 + * low_data = 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(2, 6191, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__802); + __Pyx_GIVEREF(__pyx_tuple__802); + + /* "talib/_func.pxi":6193 + * raise 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(2, 6193, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__803); + __Pyx_GIVEREF(__pyx_tuple__803); + + /* "talib/_func.pxi":6199 + * 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__804 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__804)) __PYX_ERR(2, 6199, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__804); + __Pyx_GIVEREF(__pyx_tuple__804); + + /* "talib/_func.pxi":6201 + * 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__805 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__805)) __PYX_ERR(2, 6201, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__805); + __Pyx_GIVEREF(__pyx_tuple__805); + + /* "talib/_func.pxi":6203 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_tuple__806 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__806)) __PYX_ERR(2, 6203, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__806); + __Pyx_GIVEREF(__pyx_tuple__806); + + /* "talib/_func.pxi":6221 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLTHRUSTING_Lookback( ) + */ + __pyx_tuple__807 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__807)) __PYX_ERR(2, 6221, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__807); + __Pyx_GIVEREF(__pyx_tuple__807); + + /* "talib/_func.pxi":6258 + * int* outinteger_data + * 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__808 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__808)) __PYX_ERR(2, 6258, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__808); + __Pyx_GIVEREF(__pyx_tuple__808); + + /* "talib/_func.pxi":6260 + * 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__809 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__809)) __PYX_ERR(2, 6260, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__809); + __Pyx_GIVEREF(__pyx_tuple__809); + + /* "talib/_func.pxi":6265 + * open_data = 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__810 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__810)) __PYX_ERR(2, 6265, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__810); + __Pyx_GIVEREF(__pyx_tuple__810); + + /* "talib/_func.pxi":6267 + * raise 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__811 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__811)) __PYX_ERR(2, 6267, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__811); + __Pyx_GIVEREF(__pyx_tuple__811); + + /* "talib/_func.pxi":6272 + * high_data = 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__812 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__812)) __PYX_ERR(2, 6272, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__812); + __Pyx_GIVEREF(__pyx_tuple__812); + + /* "talib/_func.pxi":6274 + * raise 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__813 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__813)) __PYX_ERR(2, 6274, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__813); + __Pyx_GIVEREF(__pyx_tuple__813); + + /* "talib/_func.pxi":6279 + * low_data = 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__814 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__814)) __PYX_ERR(2, 6279, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__814); + __Pyx_GIVEREF(__pyx_tuple__814); + + /* "talib/_func.pxi":6281 + * raise 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__815 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__815)) __PYX_ERR(2, 6281, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__815); + __Pyx_GIVEREF(__pyx_tuple__815); + + /* "talib/_func.pxi":6287 + * 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__816 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__816)) __PYX_ERR(2, 6287, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__816); + __Pyx_GIVEREF(__pyx_tuple__816); + + /* "talib/_func.pxi":6289 + * 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__817 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__817)) __PYX_ERR(2, 6289, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__817); + __Pyx_GIVEREF(__pyx_tuple__817); + + /* "talib/_func.pxi":6291 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_tuple__818 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__818)) __PYX_ERR(2, 6291, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__818); + __Pyx_GIVEREF(__pyx_tuple__818); + + /* "talib/_func.pxi":6309 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLTRISTAR_Lookback( ) + */ + __pyx_tuple__819 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__819)) __PYX_ERR(2, 6309, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__819); + __Pyx_GIVEREF(__pyx_tuple__819); + + /* "talib/_func.pxi":6346 + * int* outinteger_data + * 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__820 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__820)) __PYX_ERR(2, 6346, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__820); + __Pyx_GIVEREF(__pyx_tuple__820); + + /* "talib/_func.pxi":6348 + * 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__821 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__821)) __PYX_ERR(2, 6348, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__821); + __Pyx_GIVEREF(__pyx_tuple__821); + + /* "talib/_func.pxi":6353 + * open_data = 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__822 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__822)) __PYX_ERR(2, 6353, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__822); + __Pyx_GIVEREF(__pyx_tuple__822); + + /* "talib/_func.pxi":6355 + * raise 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__823 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__823)) __PYX_ERR(2, 6355, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__823); + __Pyx_GIVEREF(__pyx_tuple__823); + + /* "talib/_func.pxi":6360 + * high_data = 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__824 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__824)) __PYX_ERR(2, 6360, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__824); + __Pyx_GIVEREF(__pyx_tuple__824); + + /* "talib/_func.pxi":6362 + * raise 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__825 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__825)) __PYX_ERR(2, 6362, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__825); + __Pyx_GIVEREF(__pyx_tuple__825); + + /* "talib/_func.pxi":6367 + * low_data = 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__826 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__826)) __PYX_ERR(2, 6367, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__826); + __Pyx_GIVEREF(__pyx_tuple__826); + + /* "talib/_func.pxi":6369 + * raise 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__827 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__827)) __PYX_ERR(2, 6369, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__827); + __Pyx_GIVEREF(__pyx_tuple__827); + + /* "talib/_func.pxi":6375 + * 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__828 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__828)) __PYX_ERR(2, 6375, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__828); + __Pyx_GIVEREF(__pyx_tuple__828); + + /* "talib/_func.pxi":6377 + * 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__829 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__829)) __PYX_ERR(2, 6377, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__829); + __Pyx_GIVEREF(__pyx_tuple__829); + + /* "talib/_func.pxi":6379 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_tuple__830 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__830)) __PYX_ERR(2, 6379, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__830); + __Pyx_GIVEREF(__pyx_tuple__830); + + /* "talib/_func.pxi":6397 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLUNIQUE3RIVER_Lookback( ) + */ + __pyx_tuple__831 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__831)) __PYX_ERR(2, 6397, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__831); + __Pyx_GIVEREF(__pyx_tuple__831); + + /* "talib/_func.pxi":6434 + * int* outinteger_data + * 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__832 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__832)) __PYX_ERR(2, 6434, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__832); + __Pyx_GIVEREF(__pyx_tuple__832); + + /* "talib/_func.pxi":6436 + * 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__833 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__833)) __PYX_ERR(2, 6436, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__833); + __Pyx_GIVEREF(__pyx_tuple__833); + + /* "talib/_func.pxi":6441 + * open_data = 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__834 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__834)) __PYX_ERR(2, 6441, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__834); + __Pyx_GIVEREF(__pyx_tuple__834); + + /* "talib/_func.pxi":6443 + * raise 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__835 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__835)) __PYX_ERR(2, 6443, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__835); + __Pyx_GIVEREF(__pyx_tuple__835); + + /* "talib/_func.pxi":6448 + * high_data = 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__836 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__836)) __PYX_ERR(2, 6448, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__836); + __Pyx_GIVEREF(__pyx_tuple__836); + + /* "talib/_func.pxi":6450 + * raise 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__837 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__837)) __PYX_ERR(2, 6450, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__837); + __Pyx_GIVEREF(__pyx_tuple__837); + + /* "talib/_func.pxi":6455 + * low_data = 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__838 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__838)) __PYX_ERR(2, 6455, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__838); + __Pyx_GIVEREF(__pyx_tuple__838); + + /* "talib/_func.pxi":6457 + * raise 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__839 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__839)) __PYX_ERR(2, 6457, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__839); + __Pyx_GIVEREF(__pyx_tuple__839); + + /* "talib/_func.pxi":6463 + * 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__840 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__840)) __PYX_ERR(2, 6463, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__840); + __Pyx_GIVEREF(__pyx_tuple__840); + + /* "talib/_func.pxi":6465 + * 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__841 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__841)) __PYX_ERR(2, 6465, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__841); + __Pyx_GIVEREF(__pyx_tuple__841); + + /* "talib/_func.pxi":6467 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_tuple__842 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__842)) __PYX_ERR(2, 6467, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__842); + __Pyx_GIVEREF(__pyx_tuple__842); + + /* "talib/_func.pxi":6485 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLUPSIDEGAP2CROWS_Lookback( ) + */ + __pyx_tuple__843 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__843)) __PYX_ERR(2, 6485, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__843); + __Pyx_GIVEREF(__pyx_tuple__843); + + /* "talib/_func.pxi":6522 + * int* outinteger_data + * 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__844 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__844)) __PYX_ERR(2, 6522, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__844); + __Pyx_GIVEREF(__pyx_tuple__844); + + /* "talib/_func.pxi":6524 + * 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__845 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__845)) __PYX_ERR(2, 6524, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__845); + __Pyx_GIVEREF(__pyx_tuple__845); + + /* "talib/_func.pxi":6529 + * open_data = 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__846 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__846)) __PYX_ERR(2, 6529, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__846); + __Pyx_GIVEREF(__pyx_tuple__846); + + /* "talib/_func.pxi":6531 + * raise 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__847 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__847)) __PYX_ERR(2, 6531, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__847); + __Pyx_GIVEREF(__pyx_tuple__847); + + /* "talib/_func.pxi":6536 + * high_data = 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__848 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__848)) __PYX_ERR(2, 6536, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__848); + __Pyx_GIVEREF(__pyx_tuple__848); + + /* "talib/_func.pxi":6538 + * raise 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__849 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__849)) __PYX_ERR(2, 6538, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__849); + __Pyx_GIVEREF(__pyx_tuple__849); + + /* "talib/_func.pxi":6543 + * low_data = 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__850 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__850)) __PYX_ERR(2, 6543, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__850); + __Pyx_GIVEREF(__pyx_tuple__850); + + /* "talib/_func.pxi":6545 + * raise 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__851 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__851)) __PYX_ERR(2, 6545, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__851); + __Pyx_GIVEREF(__pyx_tuple__851); + + /* "talib/_func.pxi":6551 + * 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__852 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__852)) __PYX_ERR(2, 6551, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__852); + __Pyx_GIVEREF(__pyx_tuple__852); + + /* "talib/_func.pxi":6553 + * 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__853 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__853)) __PYX_ERR(2, 6553, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__853); + __Pyx_GIVEREF(__pyx_tuple__853); + + /* "talib/_func.pxi":6555 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_tuple__854 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__854)) __PYX_ERR(2, 6555, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__854); + __Pyx_GIVEREF(__pyx_tuple__854); + + /* "talib/_func.pxi":6573 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CDLXSIDEGAP3METHODS_Lookback( ) + */ + __pyx_tuple__855 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__855)) __PYX_ERR(2, 6573, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__855); + __Pyx_GIVEREF(__pyx_tuple__855); + + /* "talib/_func.pxi":6607 + * double* outreal_data + * 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__856 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__856)) __PYX_ERR(2, 6607, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__856); + __Pyx_GIVEREF(__pyx_tuple__856); + + /* "talib/_func.pxi":6609 + * 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__857 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__857)) __PYX_ERR(2, 6609, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__857); + __Pyx_GIVEREF(__pyx_tuple__857); + + /* "talib/_func.pxi":6622 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CEIL_Lookback( ) + */ + __pyx_tuple__858 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__858)) __PYX_ERR(2, 6622, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__858); + __Pyx_GIVEREF(__pyx_tuple__858); + + /* "talib/_func.pxi":6658 + * double* outreal_data + * 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__859 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__859)) __PYX_ERR(2, 6658, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__859); + __Pyx_GIVEREF(__pyx_tuple__859); + + /* "talib/_func.pxi":6660 + * 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__860 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__860)) __PYX_ERR(2, 6660, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__860); + __Pyx_GIVEREF(__pyx_tuple__860); + + /* "talib/_func.pxi":6673 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CMO_Lookback( timeperiod ) + */ + __pyx_tuple__861 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__861)) __PYX_ERR(2, 6673, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__861); + __Pyx_GIVEREF(__pyx_tuple__861); + + /* "talib/_func.pxi":6711 + * double* outreal_data + * 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__862 = PyTuple_Pack(1, __pyx_kp_s_real0_is_not_double); if (unlikely(!__pyx_tuple__862)) __PYX_ERR(2, 6711, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__862); + __Pyx_GIVEREF(__pyx_tuple__862); + + /* "talib/_func.pxi":6713 + * 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__863 = PyTuple_Pack(1, __pyx_kp_s_real0_has_wrong_dimensions); if (unlikely(!__pyx_tuple__863)) __PYX_ERR(2, 6713, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__863); + __Pyx_GIVEREF(__pyx_tuple__863); + + /* "talib/_func.pxi":6718 + * real0_data = 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__864 = PyTuple_Pack(1, __pyx_kp_s_real1_is_not_double); if (unlikely(!__pyx_tuple__864)) __PYX_ERR(2, 6718, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__864); + __Pyx_GIVEREF(__pyx_tuple__864); + + /* "talib/_func.pxi":6720 + * 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__865 = PyTuple_Pack(1, __pyx_kp_s_real1_has_wrong_dimensions); if (unlikely(!__pyx_tuple__865)) __PYX_ERR(2, 6720, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__865); + __Pyx_GIVEREF(__pyx_tuple__865); + + /* "talib/_func.pxi":6726 + * length = real0.shape[0] + * if length != real1.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_tuple__866 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__866)) __PYX_ERR(2, 6726, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__866); + __Pyx_GIVEREF(__pyx_tuple__866); + + /* "talib/_func.pxi":6738 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_CORREL_Lookback( timeperiod ) + */ + __pyx_tuple__867 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__867)) __PYX_ERR(2, 6738, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__867); + __Pyx_GIVEREF(__pyx_tuple__867); + + /* "talib/_func.pxi":6772 + * double* outreal_data + * 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__868 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__868)) __PYX_ERR(2, 6772, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__868); + __Pyx_GIVEREF(__pyx_tuple__868); + + /* "talib/_func.pxi":6774 + * 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__869 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__869)) __PYX_ERR(2, 6774, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__869); + __Pyx_GIVEREF(__pyx_tuple__869); + + /* "talib/_func.pxi":6787 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_COS_Lookback( ) + */ + __pyx_tuple__870 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__870)) __PYX_ERR(2, 6787, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__870); + __Pyx_GIVEREF(__pyx_tuple__870); + + /* "talib/_func.pxi":6821 + * double* outreal_data + * 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__871 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__871)) __PYX_ERR(2, 6821, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__871); + __Pyx_GIVEREF(__pyx_tuple__871); + + /* "talib/_func.pxi":6823 + * 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__872 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__872)) __PYX_ERR(2, 6823, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__872); + __Pyx_GIVEREF(__pyx_tuple__872); + + /* "talib/_func.pxi":6836 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_COSH_Lookback( ) + */ + __pyx_tuple__873 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__873)) __PYX_ERR(2, 6836, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__873); + __Pyx_GIVEREF(__pyx_tuple__873); + + /* "talib/_func.pxi":6872 + * double* outreal_data + * 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__874 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__874)) __PYX_ERR(2, 6872, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__874); + __Pyx_GIVEREF(__pyx_tuple__874); + + /* "talib/_func.pxi":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__875 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__875)) __PYX_ERR(2, 6874, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__875); + __Pyx_GIVEREF(__pyx_tuple__875); + + /* "talib/_func.pxi":6887 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_DEMA_Lookback( timeperiod ) + */ + __pyx_tuple__876 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__876)) __PYX_ERR(2, 6887, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__876); + __Pyx_GIVEREF(__pyx_tuple__876); + + /* "talib/_func.pxi":6923 + * double* outreal_data + * 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__877 = PyTuple_Pack(1, __pyx_kp_s_real0_is_not_double); if (unlikely(!__pyx_tuple__877)) __PYX_ERR(2, 6923, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__877); + __Pyx_GIVEREF(__pyx_tuple__877); + + /* "talib/_func.pxi":6925 + * 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__878 = PyTuple_Pack(1, __pyx_kp_s_real0_has_wrong_dimensions); if (unlikely(!__pyx_tuple__878)) __PYX_ERR(2, 6925, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__878); + __Pyx_GIVEREF(__pyx_tuple__878); + + /* "talib/_func.pxi":6930 + * real0_data = 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__879 = PyTuple_Pack(1, __pyx_kp_s_real1_is_not_double); if (unlikely(!__pyx_tuple__879)) __PYX_ERR(2, 6930, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__879); + __Pyx_GIVEREF(__pyx_tuple__879); + + /* "talib/_func.pxi":6932 + * 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__880 = PyTuple_Pack(1, __pyx_kp_s_real1_has_wrong_dimensions); if (unlikely(!__pyx_tuple__880)) __PYX_ERR(2, 6932, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__880); + __Pyx_GIVEREF(__pyx_tuple__880); + + /* "talib/_func.pxi":6938 + * length = real0.shape[0] + * if length != real1.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_tuple__881 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__881)) __PYX_ERR(2, 6938, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__881); + __Pyx_GIVEREF(__pyx_tuple__881); + + /* "talib/_func.pxi":6950 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_DIV_Lookback( ) + */ + __pyx_tuple__882 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__882)) __PYX_ERR(2, 6950, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__882); + __Pyx_GIVEREF(__pyx_tuple__882); + + /* "talib/_func.pxi":6988 + * double* outreal_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__883 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__883)) __PYX_ERR(2, 6988, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__883); + __Pyx_GIVEREF(__pyx_tuple__883); + + /* "talib/_func.pxi":6990 + * raise 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__884 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__884)) __PYX_ERR(2, 6990, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__884); + __Pyx_GIVEREF(__pyx_tuple__884); + + /* "talib/_func.pxi":6995 + * high_data = 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__885 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__885)) __PYX_ERR(2, 6995, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__885); + __Pyx_GIVEREF(__pyx_tuple__885); + + /* "talib/_func.pxi":6997 + * raise 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__886 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__886)) __PYX_ERR(2, 6997, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__886); + __Pyx_GIVEREF(__pyx_tuple__886); + + /* "talib/_func.pxi":7002 + * low_data = 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__887 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__887)) __PYX_ERR(2, 7002, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__887); + __Pyx_GIVEREF(__pyx_tuple__887); + + /* "talib/_func.pxi":7004 + * raise 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__888 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__888)) __PYX_ERR(2, 7004, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__888); + __Pyx_GIVEREF(__pyx_tuple__888); + + /* "talib/_func.pxi":7010 + * 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__889 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__889)) __PYX_ERR(2, 7010, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__889); + __Pyx_GIVEREF(__pyx_tuple__889); + + /* "talib/_func.pxi":7012 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_tuple__890 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__890)) __PYX_ERR(2, 7012, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__890); + __Pyx_GIVEREF(__pyx_tuple__890); + + /* "talib/_func.pxi":7027 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_DX_Lookback( timeperiod ) + */ + __pyx_tuple__891 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__891)) __PYX_ERR(2, 7027, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__891); + __Pyx_GIVEREF(__pyx_tuple__891); + + /* "talib/_func.pxi":7063 + * double* outreal_data + * 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__892 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__892)) __PYX_ERR(2, 7063, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__892); + __Pyx_GIVEREF(__pyx_tuple__892); + + /* "talib/_func.pxi":7065 + * 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__893 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__893)) __PYX_ERR(2, 7065, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__893); + __Pyx_GIVEREF(__pyx_tuple__893); + + /* "talib/_func.pxi":7078 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_EMA_Lookback( timeperiod ) + */ + __pyx_tuple__894 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__894)) __PYX_ERR(2, 7078, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__894); + __Pyx_GIVEREF(__pyx_tuple__894); + + /* "talib/_func.pxi":7112 + * double* outreal_data + * 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__895 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__895)) __PYX_ERR(2, 7112, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__895); + __Pyx_GIVEREF(__pyx_tuple__895); + + /* "talib/_func.pxi":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__896 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__896)) __PYX_ERR(2, 7114, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__896); + __Pyx_GIVEREF(__pyx_tuple__896); + + /* "talib/_func.pxi":7127 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_EXP_Lookback( ) + */ + __pyx_tuple__897 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__897)) __PYX_ERR(2, 7127, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__897); + __Pyx_GIVEREF(__pyx_tuple__897); + + /* "talib/_func.pxi":7161 + * double* outreal_data + * 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__898 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__898)) __PYX_ERR(2, 7161, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__898); + __Pyx_GIVEREF(__pyx_tuple__898); + + /* "talib/_func.pxi":7163 + * 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__899 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__899)) __PYX_ERR(2, 7163, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__899); + __Pyx_GIVEREF(__pyx_tuple__899); + + /* "talib/_func.pxi":7176 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_FLOOR_Lookback( ) + */ + __pyx_tuple__900 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__900)) __PYX_ERR(2, 7176, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__900); + __Pyx_GIVEREF(__pyx_tuple__900); + + /* "talib/_func.pxi":7210 + * double* outreal_data + * 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(2, 7210, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__901); + __Pyx_GIVEREF(__pyx_tuple__901); + + /* "talib/_func.pxi":7212 + * 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(2, 7212, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__902); + __Pyx_GIVEREF(__pyx_tuple__902); + + /* "talib/_func.pxi":7225 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_HT_DCPERIOD_Lookback( ) + */ + __pyx_tuple__903 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__903)) __PYX_ERR(2, 7225, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__903); + __Pyx_GIVEREF(__pyx_tuple__903); + + /* "talib/_func.pxi":7259 + * double* outreal_data + * 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__904 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__904)) __PYX_ERR(2, 7259, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__904); + __Pyx_GIVEREF(__pyx_tuple__904); + + /* "talib/_func.pxi":7261 + * 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__905 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__905)) __PYX_ERR(2, 7261, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__905); + __Pyx_GIVEREF(__pyx_tuple__905); + + /* "talib/_func.pxi":7274 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_HT_DCPHASE_Lookback( ) + */ + __pyx_tuple__906 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__906)) __PYX_ERR(2, 7274, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__906); + __Pyx_GIVEREF(__pyx_tuple__906); + + /* "talib/_func.pxi":7311 + * double* outquadrature_data + * 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__907 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__907)) __PYX_ERR(2, 7311, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__907); + __Pyx_GIVEREF(__pyx_tuple__907); + + /* "talib/_func.pxi":7313 + * 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__908 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__908)) __PYX_ERR(2, 7313, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__908); + __Pyx_GIVEREF(__pyx_tuple__908); + + /* "talib/_func.pxi":7326 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_HT_PHASOR_Lookback( ) + */ + __pyx_tuple__909 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__909)) __PYX_ERR(2, 7326, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__909); + __Pyx_GIVEREF(__pyx_tuple__909); + + /* "talib/_func.pxi":7367 + * double* outleadsine_data + * 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__910 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__910)) __PYX_ERR(2, 7367, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__910); + __Pyx_GIVEREF(__pyx_tuple__910); + + /* "talib/_func.pxi":7369 + * 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__911 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__911)) __PYX_ERR(2, 7369, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__911); + __Pyx_GIVEREF(__pyx_tuple__911); + + /* "talib/_func.pxi":7382 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_HT_SINE_Lookback( ) + */ + __pyx_tuple__912 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__912)) __PYX_ERR(2, 7382, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__912); + __Pyx_GIVEREF(__pyx_tuple__912); + + /* "talib/_func.pxi":7420 + * double* outreal_data + * 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__913 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__913)) __PYX_ERR(2, 7420, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__913); + __Pyx_GIVEREF(__pyx_tuple__913); + + /* "talib/_func.pxi":7422 + * 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__914 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__914)) __PYX_ERR(2, 7422, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__914); + __Pyx_GIVEREF(__pyx_tuple__914); + + /* "talib/_func.pxi":7435 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_HT_TRENDLINE_Lookback( ) + */ + __pyx_tuple__915 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__915)) __PYX_ERR(2, 7435, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__915); + __Pyx_GIVEREF(__pyx_tuple__915); + + /* "talib/_func.pxi":7469 + * int* outinteger_data + * 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(2, 7469, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__916); + __Pyx_GIVEREF(__pyx_tuple__916); + + /* "talib/_func.pxi":7471 + * 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(2, 7471, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__917); + __Pyx_GIVEREF(__pyx_tuple__917); + + /* "talib/_func.pxi":7484 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_HT_TRENDMODE_Lookback( ) + */ + __pyx_tuple__918 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__918)) __PYX_ERR(2, 7484, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__918); + __Pyx_GIVEREF(__pyx_tuple__918); + + /* "talib/_func.pxi":7520 + * double* outreal_data + * 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__919 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__919)) __PYX_ERR(2, 7520, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__919); + __Pyx_GIVEREF(__pyx_tuple__919); + + /* "talib/_func.pxi":7522 + * 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__920 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__920)) __PYX_ERR(2, 7522, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__920); + __Pyx_GIVEREF(__pyx_tuple__920); + + /* "talib/_func.pxi":7535 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_KAMA_Lookback( timeperiod ) + */ + __pyx_tuple__921 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__921)) __PYX_ERR(2, 7535, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__921); + __Pyx_GIVEREF(__pyx_tuple__921); + + /* "talib/_func.pxi":7571 + * double* outreal_data + * 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__922 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__922)) __PYX_ERR(2, 7571, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__922); + __Pyx_GIVEREF(__pyx_tuple__922); + + /* "talib/_func.pxi":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__923 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__923)) __PYX_ERR(2, 7573, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__923); + __Pyx_GIVEREF(__pyx_tuple__923); + + /* "talib/_func.pxi":7586 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_LINEARREG_Lookback( timeperiod ) + */ + __pyx_tuple__924 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__924)) __PYX_ERR(2, 7586, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__924); + __Pyx_GIVEREF(__pyx_tuple__924); + + /* "talib/_func.pxi":7622 + * double* outreal_data + * 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__925 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__925)) __PYX_ERR(2, 7622, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__925); + __Pyx_GIVEREF(__pyx_tuple__925); + + /* "talib/_func.pxi":7624 + * 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__926 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__926)) __PYX_ERR(2, 7624, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__926); + __Pyx_GIVEREF(__pyx_tuple__926); + + /* "talib/_func.pxi":7637 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_LINEARREG_ANGLE_Lookback( timeperiod ) + */ + __pyx_tuple__927 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__927)) __PYX_ERR(2, 7637, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__927); + __Pyx_GIVEREF(__pyx_tuple__927); + + /* "talib/_func.pxi":7673 + * double* outreal_data + * 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__928 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__928)) __PYX_ERR(2, 7673, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__928); + __Pyx_GIVEREF(__pyx_tuple__928); + + /* "talib/_func.pxi":7675 + * 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__929 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__929)) __PYX_ERR(2, 7675, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__929); + __Pyx_GIVEREF(__pyx_tuple__929); + + /* "talib/_func.pxi":7688 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_LINEARREG_INTERCEPT_Lookback( timeperiod ) + */ + __pyx_tuple__930 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__930)) __PYX_ERR(2, 7688, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__930); + __Pyx_GIVEREF(__pyx_tuple__930); + + /* "talib/_func.pxi":7724 + * double* outreal_data + * 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__931 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__931)) __PYX_ERR(2, 7724, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__931); + __Pyx_GIVEREF(__pyx_tuple__931); + + /* "talib/_func.pxi":7726 + * 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__932 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__932)) __PYX_ERR(2, 7726, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__932); + __Pyx_GIVEREF(__pyx_tuple__932); + + /* "talib/_func.pxi":7739 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_LINEARREG_SLOPE_Lookback( timeperiod ) + */ + __pyx_tuple__933 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__933)) __PYX_ERR(2, 7739, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__933); + __Pyx_GIVEREF(__pyx_tuple__933); + + /* "talib/_func.pxi":7773 + * double* outreal_data + * 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(2, 7773, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__934); + __Pyx_GIVEREF(__pyx_tuple__934); + + /* "talib/_func.pxi":7775 + * 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(2, 7775, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__935); + __Pyx_GIVEREF(__pyx_tuple__935); + + /* "talib/_func.pxi":7788 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_LN_Lookback( ) + */ + __pyx_tuple__936 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__936)) __PYX_ERR(2, 7788, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__936); + __Pyx_GIVEREF(__pyx_tuple__936); + + /* "talib/_func.pxi":7822 + * double* outreal_data + * 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__937 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__937)) __PYX_ERR(2, 7822, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__937); + __Pyx_GIVEREF(__pyx_tuple__937); + + /* "talib/_func.pxi":7824 + * 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__938 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__938)) __PYX_ERR(2, 7824, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__938); + __Pyx_GIVEREF(__pyx_tuple__938); + + /* "talib/_func.pxi":7837 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_LOG10_Lookback( ) + */ + __pyx_tuple__939 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__939)) __PYX_ERR(2, 7837, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__939); + __Pyx_GIVEREF(__pyx_tuple__939); + + /* "talib/_func.pxi":7874 + * double* outreal_data + * 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(2, 7874, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__940); + __Pyx_GIVEREF(__pyx_tuple__940); + + /* "talib/_func.pxi":7876 + * 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(2, 7876, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__941); + __Pyx_GIVEREF(__pyx_tuple__941); + + /* "talib/_func.pxi":7889 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_MA_Lookback( timeperiod , matype ) + */ + __pyx_tuple__942 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__942)) __PYX_ERR(2, 7889, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__942); + __Pyx_GIVEREF(__pyx_tuple__942); + + /* "talib/_func.pxi":7933 + * double* outmacdhist_data + * 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__943 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__943)) __PYX_ERR(2, 7933, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__943); + __Pyx_GIVEREF(__pyx_tuple__943); + + /* "talib/_func.pxi":7935 + * 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__944 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__944)) __PYX_ERR(2, 7935, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__944); + __Pyx_GIVEREF(__pyx_tuple__944); + + /* "talib/_func.pxi":7948 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_MACD_Lookback( fastperiod , slowperiod , signalperiod ) + */ + __pyx_tuple__945 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__945)) __PYX_ERR(2, 7948, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__945); + __Pyx_GIVEREF(__pyx_tuple__945); + + /* "talib/_func.pxi":8003 + * double* outmacdhist_data + * 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__946 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__946)) __PYX_ERR(2, 8003, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__946); + __Pyx_GIVEREF(__pyx_tuple__946); + + /* "talib/_func.pxi":8005 + * 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__947 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__947)) __PYX_ERR(2, 8005, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__947); + __Pyx_GIVEREF(__pyx_tuple__947); + + /* "talib/_func.pxi":8018 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_MACDEXT_Lookback( fastperiod , fastmatype , slowperiod , slowmatype , signalperiod , signalmatype ) + */ + __pyx_tuple__948 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__948)) __PYX_ERR(2, 8018, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__948); + __Pyx_GIVEREF(__pyx_tuple__948); + + /* "talib/_func.pxi":8068 + * double* outmacdhist_data + * 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__949 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__949)) __PYX_ERR(2, 8068, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__949); + __Pyx_GIVEREF(__pyx_tuple__949); + + /* "talib/_func.pxi":8070 + * 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__950 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__950)) __PYX_ERR(2, 8070, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__950); + __Pyx_GIVEREF(__pyx_tuple__950); + + /* "talib/_func.pxi":8083 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_MACDFIX_Lookback( signalperiod ) + */ + __pyx_tuple__951 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__951)) __PYX_ERR(2, 8083, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__951); + __Pyx_GIVEREF(__pyx_tuple__951); + + /* "talib/_func.pxi":8131 + * double* outfama_data + * 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__952 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__952)) __PYX_ERR(2, 8131, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__952); + __Pyx_GIVEREF(__pyx_tuple__952); + + /* "talib/_func.pxi":8133 + * 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__953 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__953)) __PYX_ERR(2, 8133, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__953); + __Pyx_GIVEREF(__pyx_tuple__953); + + /* "talib/_func.pxi":8146 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_MAMA_Lookback( fastlimit , slowlimit ) + */ + __pyx_tuple__954 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__954)) __PYX_ERR(2, 8146, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__954); + __Pyx_GIVEREF(__pyx_tuple__954); + + /* "talib/_func.pxi":8190 + * double* outreal_data + * 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__955 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__955)) __PYX_ERR(2, 8190, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__955); + __Pyx_GIVEREF(__pyx_tuple__955); + + /* "talib/_func.pxi":8192 + * 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__956 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__956)) __PYX_ERR(2, 8192, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__956); + __Pyx_GIVEREF(__pyx_tuple__956); + + /* "talib/_func.pxi":8197 + * real_data = 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__957 = PyTuple_Pack(1, __pyx_kp_s_periods_is_not_double); if (unlikely(!__pyx_tuple__957)) __PYX_ERR(2, 8197, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__957); + __Pyx_GIVEREF(__pyx_tuple__957); + + /* "talib/_func.pxi":8199 + * 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__958 = PyTuple_Pack(1, __pyx_kp_s_periods_has_wrong_dimensions); if (unlikely(!__pyx_tuple__958)) __PYX_ERR(2, 8199, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__958); + __Pyx_GIVEREF(__pyx_tuple__958); + + /* "talib/_func.pxi":8205 + * length = real.shape[0] + * if length != periods.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_tuple__959 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__959)) __PYX_ERR(2, 8205, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__959); + __Pyx_GIVEREF(__pyx_tuple__959); + + /* "talib/_func.pxi":8217 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_MAVP_Lookback( minperiod , maxperiod , matype ) + */ + __pyx_tuple__960 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__960)) __PYX_ERR(2, 8217, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__960); + __Pyx_GIVEREF(__pyx_tuple__960); + + /* "talib/_func.pxi":8253 + * double* outreal_data + * 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__961 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__961)) __PYX_ERR(2, 8253, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__961); + __Pyx_GIVEREF(__pyx_tuple__961); + + /* "talib/_func.pxi":8255 + * 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__962 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__962)) __PYX_ERR(2, 8255, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__962); + __Pyx_GIVEREF(__pyx_tuple__962); + + /* "talib/_func.pxi":8268 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_MAX_Lookback( timeperiod ) + */ + __pyx_tuple__963 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__963)) __PYX_ERR(2, 8268, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__963); + __Pyx_GIVEREF(__pyx_tuple__963); + + /* "talib/_func.pxi":8304 + * int* outinteger_data + * 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(2, 8304, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__964); + __Pyx_GIVEREF(__pyx_tuple__964); + + /* "talib/_func.pxi":8306 + * 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(2, 8306, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__965); + __Pyx_GIVEREF(__pyx_tuple__965); + + /* "talib/_func.pxi":8319 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_MAXINDEX_Lookback( timeperiod ) + */ + __pyx_tuple__966 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__966)) __PYX_ERR(2, 8319, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__966); + __Pyx_GIVEREF(__pyx_tuple__966); + + /* "talib/_func.pxi":8354 + * double* outreal_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__967 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__967)) __PYX_ERR(2, 8354, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__967); + __Pyx_GIVEREF(__pyx_tuple__967); + + /* "talib/_func.pxi":8356 + * raise 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__968 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__968)) __PYX_ERR(2, 8356, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__968); + __Pyx_GIVEREF(__pyx_tuple__968); + + /* "talib/_func.pxi":8361 + * high_data = 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__969 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__969)) __PYX_ERR(2, 8361, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__969); + __Pyx_GIVEREF(__pyx_tuple__969); + + /* "talib/_func.pxi":8363 + * raise 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__970 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__970)) __PYX_ERR(2, 8363, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__970); + __Pyx_GIVEREF(__pyx_tuple__970); + + /* "talib/_func.pxi":8369 + * length = high.shape[0] + * if length != low.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_tuple__971 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__971)) __PYX_ERR(2, 8369, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__971); + __Pyx_GIVEREF(__pyx_tuple__971); + + /* "talib/_func.pxi":8381 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_MEDPRICE_Lookback( ) + */ + __pyx_tuple__972 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__972)) __PYX_ERR(2, 8381, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__972); + __Pyx_GIVEREF(__pyx_tuple__972); + + /* "talib/_func.pxi":8420 + * double* outreal_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__973 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__973)) __PYX_ERR(2, 8420, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__973); + __Pyx_GIVEREF(__pyx_tuple__973); + + /* "talib/_func.pxi":8422 + * raise 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__974 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__974)) __PYX_ERR(2, 8422, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__974); + __Pyx_GIVEREF(__pyx_tuple__974); + + /* "talib/_func.pxi":8427 + * high_data = 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__975 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__975)) __PYX_ERR(2, 8427, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__975); + __Pyx_GIVEREF(__pyx_tuple__975); + + /* "talib/_func.pxi":8429 + * raise 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__976 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__976)) __PYX_ERR(2, 8429, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__976); + __Pyx_GIVEREF(__pyx_tuple__976); + + /* "talib/_func.pxi":8434 + * low_data = 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__977 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__977)) __PYX_ERR(2, 8434, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__977); + __Pyx_GIVEREF(__pyx_tuple__977); + + /* "talib/_func.pxi":8436 + * raise 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__978 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__978)) __PYX_ERR(2, 8436, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__978); + __Pyx_GIVEREF(__pyx_tuple__978); + + /* "talib/_func.pxi":8441 + * close_data = 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__979 = PyTuple_Pack(1, __pyx_kp_s_volume_is_not_double); if (unlikely(!__pyx_tuple__979)) __PYX_ERR(2, 8441, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__979); + __Pyx_GIVEREF(__pyx_tuple__979); + + /* "talib/_func.pxi":8443 + * 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__980 = PyTuple_Pack(1, __pyx_kp_s_volume_has_wrong_dimensions); if (unlikely(!__pyx_tuple__980)) __PYX_ERR(2, 8443, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__980); + __Pyx_GIVEREF(__pyx_tuple__980); + + /* "talib/_func.pxi":8449 + * 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__981 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__981)) __PYX_ERR(2, 8449, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__981); + __Pyx_GIVEREF(__pyx_tuple__981); + + /* "talib/_func.pxi":8451 + * 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__982 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__982)) __PYX_ERR(2, 8451, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__982); + __Pyx_GIVEREF(__pyx_tuple__982); + + /* "talib/_func.pxi":8453 + * raise Exception("input lengths are different") + * if length != volume.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_tuple__983 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__983)) __PYX_ERR(2, 8453, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__983); + __Pyx_GIVEREF(__pyx_tuple__983); + + /* "talib/_func.pxi":8471 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_MFI_Lookback( timeperiod ) + */ + __pyx_tuple__984 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__984)) __PYX_ERR(2, 8471, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__984); + __Pyx_GIVEREF(__pyx_tuple__984); + + /* "talib/_func.pxi":8507 + * double* outreal_data + * 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__985 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__985)) __PYX_ERR(2, 8507, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__985); + __Pyx_GIVEREF(__pyx_tuple__985); + + /* "talib/_func.pxi":8509 + * 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__986 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__986)) __PYX_ERR(2, 8509, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__986); + __Pyx_GIVEREF(__pyx_tuple__986); + + /* "talib/_func.pxi":8522 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_MIDPOINT_Lookback( timeperiod ) + */ + __pyx_tuple__987 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__987)) __PYX_ERR(2, 8522, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__987); + __Pyx_GIVEREF(__pyx_tuple__987); + + /* "talib/_func.pxi":8559 + * double* outreal_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__988 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__988)) __PYX_ERR(2, 8559, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__988); + __Pyx_GIVEREF(__pyx_tuple__988); + + /* "talib/_func.pxi":8561 + * raise 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__989 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__989)) __PYX_ERR(2, 8561, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__989); + __Pyx_GIVEREF(__pyx_tuple__989); + + /* "talib/_func.pxi":8566 + * high_data = 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__990 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__990)) __PYX_ERR(2, 8566, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__990); + __Pyx_GIVEREF(__pyx_tuple__990); + + /* "talib/_func.pxi":8568 + * raise 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__991 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__991)) __PYX_ERR(2, 8568, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__991); + __Pyx_GIVEREF(__pyx_tuple__991); + + /* "talib/_func.pxi":8574 + * length = high.shape[0] + * if length != low.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_tuple__992 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__992)) __PYX_ERR(2, 8574, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__992); + __Pyx_GIVEREF(__pyx_tuple__992); + + /* "talib/_func.pxi":8586 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_MIDPRICE_Lookback( timeperiod ) + */ + __pyx_tuple__993 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__993)) __PYX_ERR(2, 8586, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__993); + __Pyx_GIVEREF(__pyx_tuple__993); + + /* "talib/_func.pxi":8622 + * double* outreal_data + * 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__994 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__994)) __PYX_ERR(2, 8622, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__994); + __Pyx_GIVEREF(__pyx_tuple__994); + + /* "talib/_func.pxi":8624 + * 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__995 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__995)) __PYX_ERR(2, 8624, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__995); + __Pyx_GIVEREF(__pyx_tuple__995); + + /* "talib/_func.pxi":8637 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_MIN_Lookback( timeperiod ) + */ + __pyx_tuple__996 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__996)) __PYX_ERR(2, 8637, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__996); + __Pyx_GIVEREF(__pyx_tuple__996); + + /* "talib/_func.pxi":8673 + * int* outinteger_data + * 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(2, 8673, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__997); + __Pyx_GIVEREF(__pyx_tuple__997); + + /* "talib/_func.pxi":8675 + * 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(2, 8675, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__998); + __Pyx_GIVEREF(__pyx_tuple__998); + + /* "talib/_func.pxi":8688 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_MININDEX_Lookback( timeperiod ) + */ + __pyx_tuple__999 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__999)) __PYX_ERR(2, 8688, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__999); + __Pyx_GIVEREF(__pyx_tuple__999); + + /* "talib/_func.pxi":8727 + * double* outmax_data + * 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__1000 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__1000)) __PYX_ERR(2, 8727, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1000); + __Pyx_GIVEREF(__pyx_tuple__1000); + + /* "talib/_func.pxi":8729 + * 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__1001 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1001)) __PYX_ERR(2, 8729, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1001); + __Pyx_GIVEREF(__pyx_tuple__1001); + + /* "talib/_func.pxi":8742 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_MINMAX_Lookback( timeperiod ) + */ + __pyx_tuple__1002 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__1002)) __PYX_ERR(2, 8742, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1002); + __Pyx_GIVEREF(__pyx_tuple__1002); + + /* "talib/_func.pxi":8785 + * int* outmaxidx_data + * 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__1003 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__1003)) __PYX_ERR(2, 8785, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1003); + __Pyx_GIVEREF(__pyx_tuple__1003); + + /* "talib/_func.pxi":8787 + * 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__1004 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1004)) __PYX_ERR(2, 8787, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1004); + __Pyx_GIVEREF(__pyx_tuple__1004); + + /* "talib/_func.pxi":8800 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_MINMAXINDEX_Lookback( timeperiod ) + */ + __pyx_tuple__1005 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__1005)) __PYX_ERR(2, 8800, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1005); + __Pyx_GIVEREF(__pyx_tuple__1005); + + /* "talib/_func.pxi":8842 + * double* outreal_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__1006 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__1006)) __PYX_ERR(2, 8842, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1006); + __Pyx_GIVEREF(__pyx_tuple__1006); + + /* "talib/_func.pxi":8844 + * raise 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__1007 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1007)) __PYX_ERR(2, 8844, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1007); + __Pyx_GIVEREF(__pyx_tuple__1007); + + /* "talib/_func.pxi":8849 + * high_data = 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__1008 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__1008)) __PYX_ERR(2, 8849, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1008); + __Pyx_GIVEREF(__pyx_tuple__1008); + + /* "talib/_func.pxi":8851 + * raise 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__1009 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1009)) __PYX_ERR(2, 8851, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1009); + __Pyx_GIVEREF(__pyx_tuple__1009); + + /* "talib/_func.pxi":8856 + * low_data = 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__1010 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__1010)) __PYX_ERR(2, 8856, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1010); + __Pyx_GIVEREF(__pyx_tuple__1010); + + /* "talib/_func.pxi":8858 + * raise 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__1011 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1011)) __PYX_ERR(2, 8858, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1011); + __Pyx_GIVEREF(__pyx_tuple__1011); + + /* "talib/_func.pxi":8864 + * 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__1012 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1012)) __PYX_ERR(2, 8864, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1012); + __Pyx_GIVEREF(__pyx_tuple__1012); + + /* "talib/_func.pxi":8866 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_tuple__1013 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1013)) __PYX_ERR(2, 8866, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1013); + __Pyx_GIVEREF(__pyx_tuple__1013); + + /* "talib/_func.pxi":8881 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_MINUS_DI_Lookback( timeperiod ) + */ + __pyx_tuple__1014 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__1014)) __PYX_ERR(2, 8881, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1014); + __Pyx_GIVEREF(__pyx_tuple__1014); + + /* "talib/_func.pxi":8918 + * double* outreal_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__1015 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__1015)) __PYX_ERR(2, 8918, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1015); + __Pyx_GIVEREF(__pyx_tuple__1015); + + /* "talib/_func.pxi":8920 + * raise 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__1016 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1016)) __PYX_ERR(2, 8920, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1016); + __Pyx_GIVEREF(__pyx_tuple__1016); + + /* "talib/_func.pxi":8925 + * high_data = 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__1017 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__1017)) __PYX_ERR(2, 8925, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1017); + __Pyx_GIVEREF(__pyx_tuple__1017); + + /* "talib/_func.pxi":8927 + * raise 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__1018 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1018)) __PYX_ERR(2, 8927, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1018); + __Pyx_GIVEREF(__pyx_tuple__1018); + + /* "talib/_func.pxi":8933 + * length = high.shape[0] + * if length != low.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_tuple__1019 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1019)) __PYX_ERR(2, 8933, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1019); + __Pyx_GIVEREF(__pyx_tuple__1019); + + /* "talib/_func.pxi":8945 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_MINUS_DM_Lookback( timeperiod ) + */ + __pyx_tuple__1020 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__1020)) __PYX_ERR(2, 8945, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1020); + __Pyx_GIVEREF(__pyx_tuple__1020); + + /* "talib/_func.pxi":8981 + * double* outreal_data + * 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__1021 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__1021)) __PYX_ERR(2, 8981, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1021); + __Pyx_GIVEREF(__pyx_tuple__1021); + + /* "talib/_func.pxi":8983 + * 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__1022 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1022)) __PYX_ERR(2, 8983, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1022); + __Pyx_GIVEREF(__pyx_tuple__1022); + + /* "talib/_func.pxi":8996 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_MOM_Lookback( timeperiod ) + */ + __pyx_tuple__1023 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__1023)) __PYX_ERR(2, 8996, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1023); + __Pyx_GIVEREF(__pyx_tuple__1023); + + /* "talib/_func.pxi":9032 + * double* outreal_data + * 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__1024 = PyTuple_Pack(1, __pyx_kp_s_real0_is_not_double); if (unlikely(!__pyx_tuple__1024)) __PYX_ERR(2, 9032, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1024); + __Pyx_GIVEREF(__pyx_tuple__1024); + + /* "talib/_func.pxi":9034 + * 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__1025 = PyTuple_Pack(1, __pyx_kp_s_real0_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1025)) __PYX_ERR(2, 9034, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1025); + __Pyx_GIVEREF(__pyx_tuple__1025); + + /* "talib/_func.pxi":9039 + * real0_data = 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__1026 = PyTuple_Pack(1, __pyx_kp_s_real1_is_not_double); if (unlikely(!__pyx_tuple__1026)) __PYX_ERR(2, 9039, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1026); + __Pyx_GIVEREF(__pyx_tuple__1026); + + /* "talib/_func.pxi":9041 + * 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__1027 = PyTuple_Pack(1, __pyx_kp_s_real1_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1027)) __PYX_ERR(2, 9041, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1027); + __Pyx_GIVEREF(__pyx_tuple__1027); + + /* "talib/_func.pxi":9047 + * length = real0.shape[0] + * if length != real1.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_tuple__1028 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1028)) __PYX_ERR(2, 9047, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1028); + __Pyx_GIVEREF(__pyx_tuple__1028); + + /* "talib/_func.pxi":9059 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_MULT_Lookback( ) + */ + __pyx_tuple__1029 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__1029)) __PYX_ERR(2, 9059, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1029); + __Pyx_GIVEREF(__pyx_tuple__1029); + + /* "talib/_func.pxi":9097 + * double* outreal_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__1030 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__1030)) __PYX_ERR(2, 9097, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1030); + __Pyx_GIVEREF(__pyx_tuple__1030); + + /* "talib/_func.pxi":9099 + * raise 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__1031 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1031)) __PYX_ERR(2, 9099, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1031); + __Pyx_GIVEREF(__pyx_tuple__1031); + + /* "talib/_func.pxi":9104 + * high_data = 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__1032 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__1032)) __PYX_ERR(2, 9104, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1032); + __Pyx_GIVEREF(__pyx_tuple__1032); + + /* "talib/_func.pxi":9106 + * raise 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__1033 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1033)) __PYX_ERR(2, 9106, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1033); + __Pyx_GIVEREF(__pyx_tuple__1033); + + /* "talib/_func.pxi":9111 + * low_data = 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__1034 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__1034)) __PYX_ERR(2, 9111, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1034); + __Pyx_GIVEREF(__pyx_tuple__1034); + + /* "talib/_func.pxi":9113 + * raise 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__1035 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1035)) __PYX_ERR(2, 9113, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1035); + __Pyx_GIVEREF(__pyx_tuple__1035); + + /* "talib/_func.pxi":9119 + * 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__1036 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1036)) __PYX_ERR(2, 9119, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1036); + __Pyx_GIVEREF(__pyx_tuple__1036); + + /* "talib/_func.pxi":9121 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_tuple__1037 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1037)) __PYX_ERR(2, 9121, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1037); + __Pyx_GIVEREF(__pyx_tuple__1037); + + /* "talib/_func.pxi":9136 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_NATR_Lookback( timeperiod ) + */ + __pyx_tuple__1038 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__1038)) __PYX_ERR(2, 9136, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1038); + __Pyx_GIVEREF(__pyx_tuple__1038); + + /* "talib/_func.pxi":9172 + * double* outreal_data + * 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__1039 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__1039)) __PYX_ERR(2, 9172, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1039); + __Pyx_GIVEREF(__pyx_tuple__1039); + + /* "talib/_func.pxi":9174 + * 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__1040 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1040)) __PYX_ERR(2, 9174, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1040); + __Pyx_GIVEREF(__pyx_tuple__1040); + + /* "talib/_func.pxi":9179 + * real_data = 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__1041 = PyTuple_Pack(1, __pyx_kp_s_volume_is_not_double); if (unlikely(!__pyx_tuple__1041)) __PYX_ERR(2, 9179, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1041); + __Pyx_GIVEREF(__pyx_tuple__1041); + + /* "talib/_func.pxi":9181 + * 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__1042 = PyTuple_Pack(1, __pyx_kp_s_volume_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1042)) __PYX_ERR(2, 9181, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1042); + __Pyx_GIVEREF(__pyx_tuple__1042); + + /* "talib/_func.pxi":9187 + * length = real.shape[0] + * if length != volume.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_tuple__1043 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1043)) __PYX_ERR(2, 9187, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1043); + __Pyx_GIVEREF(__pyx_tuple__1043); + + /* "talib/_func.pxi":9199 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_OBV_Lookback( ) + */ + __pyx_tuple__1044 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__1044)) __PYX_ERR(2, 9199, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1044); + __Pyx_GIVEREF(__pyx_tuple__1044); + + /* "talib/_func.pxi":9237 + * double* outreal_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__1045 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__1045)) __PYX_ERR(2, 9237, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1045); + __Pyx_GIVEREF(__pyx_tuple__1045); + + /* "talib/_func.pxi":9239 + * raise 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__1046 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1046)) __PYX_ERR(2, 9239, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1046); + __Pyx_GIVEREF(__pyx_tuple__1046); + + /* "talib/_func.pxi":9244 + * high_data = 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__1047 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__1047)) __PYX_ERR(2, 9244, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1047); + __Pyx_GIVEREF(__pyx_tuple__1047); + + /* "talib/_func.pxi":9246 + * raise 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__1048 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1048)) __PYX_ERR(2, 9246, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1048); + __Pyx_GIVEREF(__pyx_tuple__1048); + + /* "talib/_func.pxi":9251 + * low_data = 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__1049 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__1049)) __PYX_ERR(2, 9251, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1049); + __Pyx_GIVEREF(__pyx_tuple__1049); + + /* "talib/_func.pxi":9253 + * raise 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__1050 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1050)) __PYX_ERR(2, 9253, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1050); + __Pyx_GIVEREF(__pyx_tuple__1050); + + /* "talib/_func.pxi":9259 + * 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__1051 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1051)) __PYX_ERR(2, 9259, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1051); + __Pyx_GIVEREF(__pyx_tuple__1051); + + /* "talib/_func.pxi":9261 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_tuple__1052 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1052)) __PYX_ERR(2, 9261, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1052); + __Pyx_GIVEREF(__pyx_tuple__1052); + + /* "talib/_func.pxi":9276 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_PLUS_DI_Lookback( timeperiod ) + */ + __pyx_tuple__1053 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__1053)) __PYX_ERR(2, 9276, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1053); + __Pyx_GIVEREF(__pyx_tuple__1053); + + /* "talib/_func.pxi":9313 + * double* outreal_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__1054 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__1054)) __PYX_ERR(2, 9313, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1054); + __Pyx_GIVEREF(__pyx_tuple__1054); + + /* "talib/_func.pxi":9315 + * raise 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__1055 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1055)) __PYX_ERR(2, 9315, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1055); + __Pyx_GIVEREF(__pyx_tuple__1055); + + /* "talib/_func.pxi":9320 + * high_data = 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__1056 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__1056)) __PYX_ERR(2, 9320, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1056); + __Pyx_GIVEREF(__pyx_tuple__1056); + + /* "talib/_func.pxi":9322 + * raise 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__1057 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1057)) __PYX_ERR(2, 9322, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1057); + __Pyx_GIVEREF(__pyx_tuple__1057); + + /* "talib/_func.pxi":9328 + * length = high.shape[0] + * if length != low.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_tuple__1058 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1058)) __PYX_ERR(2, 9328, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1058); + __Pyx_GIVEREF(__pyx_tuple__1058); + + /* "talib/_func.pxi":9340 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_PLUS_DM_Lookback( timeperiod ) + */ + __pyx_tuple__1059 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__1059)) __PYX_ERR(2, 9340, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1059); + __Pyx_GIVEREF(__pyx_tuple__1059); + + /* "talib/_func.pxi":9378 + * double* outreal_data + * 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__1060 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__1060)) __PYX_ERR(2, 9378, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1060); + __Pyx_GIVEREF(__pyx_tuple__1060); + + /* "talib/_func.pxi":9380 + * 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__1061 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1061)) __PYX_ERR(2, 9380, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1061); + __Pyx_GIVEREF(__pyx_tuple__1061); + + /* "talib/_func.pxi":9393 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_PPO_Lookback( fastperiod , slowperiod , matype ) + */ + __pyx_tuple__1062 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__1062)) __PYX_ERR(2, 9393, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1062); + __Pyx_GIVEREF(__pyx_tuple__1062); + + /* "talib/_func.pxi":9429 + * double* outreal_data + * 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__1063 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__1063)) __PYX_ERR(2, 9429, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1063); + __Pyx_GIVEREF(__pyx_tuple__1063); + + /* "talib/_func.pxi":9431 + * 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__1064 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1064)) __PYX_ERR(2, 9431, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1064); + __Pyx_GIVEREF(__pyx_tuple__1064); + + /* "talib/_func.pxi":9444 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_ROC_Lookback( timeperiod ) + */ + __pyx_tuple__1065 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__1065)) __PYX_ERR(2, 9444, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1065); + __Pyx_GIVEREF(__pyx_tuple__1065); + + /* "talib/_func.pxi":9480 + * double* outreal_data + * 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__1066 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__1066)) __PYX_ERR(2, 9480, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1066); + __Pyx_GIVEREF(__pyx_tuple__1066); + + /* "talib/_func.pxi":9482 + * 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__1067 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1067)) __PYX_ERR(2, 9482, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1067); + __Pyx_GIVEREF(__pyx_tuple__1067); + + /* "talib/_func.pxi":9495 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_ROCP_Lookback( timeperiod ) + */ + __pyx_tuple__1068 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__1068)) __PYX_ERR(2, 9495, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1068); + __Pyx_GIVEREF(__pyx_tuple__1068); + + /* "talib/_func.pxi":9531 + * double* outreal_data + * 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__1069 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__1069)) __PYX_ERR(2, 9531, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1069); + __Pyx_GIVEREF(__pyx_tuple__1069); + + /* "talib/_func.pxi":9533 + * 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__1070 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1070)) __PYX_ERR(2, 9533, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1070); + __Pyx_GIVEREF(__pyx_tuple__1070); + + /* "talib/_func.pxi":9546 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_ROCR_Lookback( timeperiod ) + */ + __pyx_tuple__1071 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__1071)) __PYX_ERR(2, 9546, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1071); + __Pyx_GIVEREF(__pyx_tuple__1071); + + /* "talib/_func.pxi":9582 + * double* outreal_data + * 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__1072 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__1072)) __PYX_ERR(2, 9582, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1072); + __Pyx_GIVEREF(__pyx_tuple__1072); + + /* "talib/_func.pxi":9584 + * 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__1073 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1073)) __PYX_ERR(2, 9584, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1073); + __Pyx_GIVEREF(__pyx_tuple__1073); + + /* "talib/_func.pxi":9597 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_ROCR100_Lookback( timeperiod ) + */ + __pyx_tuple__1074 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__1074)) __PYX_ERR(2, 9597, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1074); + __Pyx_GIVEREF(__pyx_tuple__1074); + + /* "talib/_func.pxi":9633 + * double* outreal_data + * 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__1075 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__1075)) __PYX_ERR(2, 9633, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1075); + __Pyx_GIVEREF(__pyx_tuple__1075); + + /* "talib/_func.pxi":9635 + * 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__1076 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1076)) __PYX_ERR(2, 9635, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1076); + __Pyx_GIVEREF(__pyx_tuple__1076); + + /* "talib/_func.pxi":9648 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_RSI_Lookback( timeperiod ) + */ + __pyx_tuple__1077 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__1077)) __PYX_ERR(2, 9648, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1077); + __Pyx_GIVEREF(__pyx_tuple__1077); + + /* "talib/_func.pxi":9686 + * double* outreal_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__1078 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__1078)) __PYX_ERR(2, 9686, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1078); + __Pyx_GIVEREF(__pyx_tuple__1078); + + /* "talib/_func.pxi":9688 + * raise 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__1079 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1079)) __PYX_ERR(2, 9688, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1079); + __Pyx_GIVEREF(__pyx_tuple__1079); + + /* "talib/_func.pxi":9693 + * high_data = 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__1080 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__1080)) __PYX_ERR(2, 9693, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1080); + __Pyx_GIVEREF(__pyx_tuple__1080); + + /* "talib/_func.pxi":9695 + * raise 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__1081 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1081)) __PYX_ERR(2, 9695, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1081); + __Pyx_GIVEREF(__pyx_tuple__1081); + + /* "talib/_func.pxi":9701 + * length = high.shape[0] + * if length != low.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_tuple__1082 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1082)) __PYX_ERR(2, 9701, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1082); + __Pyx_GIVEREF(__pyx_tuple__1082); + + /* "talib/_func.pxi":9713 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_SAR_Lookback( acceleration , maximum ) + */ + __pyx_tuple__1083 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__1083)) __PYX_ERR(2, 9713, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1083); + __Pyx_GIVEREF(__pyx_tuple__1083); + + /* "talib/_func.pxi":9757 + * double* outreal_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__1084 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__1084)) __PYX_ERR(2, 9757, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1084); + __Pyx_GIVEREF(__pyx_tuple__1084); + + /* "talib/_func.pxi":9759 + * raise 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__1085 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1085)) __PYX_ERR(2, 9759, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1085); + __Pyx_GIVEREF(__pyx_tuple__1085); + + /* "talib/_func.pxi":9764 + * high_data = 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__1086 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__1086)) __PYX_ERR(2, 9764, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1086); + __Pyx_GIVEREF(__pyx_tuple__1086); + + /* "talib/_func.pxi":9766 + * raise 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__1087 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1087)) __PYX_ERR(2, 9766, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1087); + __Pyx_GIVEREF(__pyx_tuple__1087); + + /* "talib/_func.pxi":9772 + * length = high.shape[0] + * if length != low.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_tuple__1088 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1088)) __PYX_ERR(2, 9772, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1088); + __Pyx_GIVEREF(__pyx_tuple__1088); + + /* "talib/_func.pxi":9784 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_SAREXT_Lookback( startvalue , offsetonreverse , accelerationinitlong , accelerationlong , accelerationmaxlong , accelerationinitshort , accelerationshort , accelerationmaxshort ) + */ + __pyx_tuple__1089 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__1089)) __PYX_ERR(2, 9784, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1089); + __Pyx_GIVEREF(__pyx_tuple__1089); + + /* "talib/_func.pxi":9818 + * double* outreal_data + * 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__1090 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__1090)) __PYX_ERR(2, 9818, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1090); + __Pyx_GIVEREF(__pyx_tuple__1090); + + /* "talib/_func.pxi":9820 + * 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__1091 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1091)) __PYX_ERR(2, 9820, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1091); + __Pyx_GIVEREF(__pyx_tuple__1091); + + /* "talib/_func.pxi":9833 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_SIN_Lookback( ) + */ + __pyx_tuple__1092 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__1092)) __PYX_ERR(2, 9833, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1092); + __Pyx_GIVEREF(__pyx_tuple__1092); + + /* "talib/_func.pxi":9867 + * double* outreal_data + * 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__1093 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__1093)) __PYX_ERR(2, 9867, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1093); + __Pyx_GIVEREF(__pyx_tuple__1093); + + /* "talib/_func.pxi":9869 + * 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__1094 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1094)) __PYX_ERR(2, 9869, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1094); + __Pyx_GIVEREF(__pyx_tuple__1094); + + /* "talib/_func.pxi":9882 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_SINH_Lookback( ) + */ + __pyx_tuple__1095 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__1095)) __PYX_ERR(2, 9882, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1095); + __Pyx_GIVEREF(__pyx_tuple__1095); + + /* "talib/_func.pxi":9918 + * double* outreal_data + * 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__1096 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__1096)) __PYX_ERR(2, 9918, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1096); + __Pyx_GIVEREF(__pyx_tuple__1096); + + /* "talib/_func.pxi":9920 + * 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__1097 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1097)) __PYX_ERR(2, 9920, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1097); + __Pyx_GIVEREF(__pyx_tuple__1097); + + /* "talib/_func.pxi":9933 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_SMA_Lookback( timeperiod ) + */ + __pyx_tuple__1098 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__1098)) __PYX_ERR(2, 9933, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1098); + __Pyx_GIVEREF(__pyx_tuple__1098); + + /* "talib/_func.pxi":9967 + * double* outreal_data + * 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__1099 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__1099)) __PYX_ERR(2, 9967, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1099); + __Pyx_GIVEREF(__pyx_tuple__1099); + + /* "talib/_func.pxi":9969 + * 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__1100 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1100)) __PYX_ERR(2, 9969, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1100); + __Pyx_GIVEREF(__pyx_tuple__1100); + + /* "talib/_func.pxi":9982 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_SQRT_Lookback( ) + */ + __pyx_tuple__1101 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__1101)) __PYX_ERR(2, 9982, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1101); + __Pyx_GIVEREF(__pyx_tuple__1101); + + /* "talib/_func.pxi":10019 + * double* outreal_data + * 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__1102 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__1102)) __PYX_ERR(2, 10019, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1102); + __Pyx_GIVEREF(__pyx_tuple__1102); + + /* "talib/_func.pxi":10021 + * 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__1103 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1103)) __PYX_ERR(2, 10021, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1103); + __Pyx_GIVEREF(__pyx_tuple__1103); + + /* "talib/_func.pxi":10034 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_STDDEV_Lookback( timeperiod , nbdev ) + */ + __pyx_tuple__1104 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__1104)) __PYX_ERR(2, 10034, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1104); + __Pyx_GIVEREF(__pyx_tuple__1104); + + /* "talib/_func.pxi":10079 + * double* outslowd_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__1105 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__1105)) __PYX_ERR(2, 10079, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1105); + __Pyx_GIVEREF(__pyx_tuple__1105); + + /* "talib/_func.pxi":10081 + * raise 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__1106 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1106)) __PYX_ERR(2, 10081, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1106); + __Pyx_GIVEREF(__pyx_tuple__1106); + + /* "talib/_func.pxi":10086 + * high_data = 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__1107 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__1107)) __PYX_ERR(2, 10086, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1107); + __Pyx_GIVEREF(__pyx_tuple__1107); + + /* "talib/_func.pxi":10088 + * raise 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__1108 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1108)) __PYX_ERR(2, 10088, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1108); + __Pyx_GIVEREF(__pyx_tuple__1108); + + /* "talib/_func.pxi":10093 + * low_data = 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__1109 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__1109)) __PYX_ERR(2, 10093, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1109); + __Pyx_GIVEREF(__pyx_tuple__1109); + + /* "talib/_func.pxi":10095 + * raise 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__1110 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1110)) __PYX_ERR(2, 10095, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1110); + __Pyx_GIVEREF(__pyx_tuple__1110); + + /* "talib/_func.pxi":10101 + * 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__1111 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1111)) __PYX_ERR(2, 10101, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1111); + __Pyx_GIVEREF(__pyx_tuple__1111); + + /* "talib/_func.pxi":10103 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_tuple__1112 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1112)) __PYX_ERR(2, 10103, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1112); + __Pyx_GIVEREF(__pyx_tuple__1112); + + /* "talib/_func.pxi":10118 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_STOCH_Lookback( fastk_period , slowk_period , slowk_matype , slowd_period , slowd_matype ) + */ + __pyx_tuple__1113 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__1113)) __PYX_ERR(2, 10118, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1113); + __Pyx_GIVEREF(__pyx_tuple__1113); + + /* "talib/_func.pxi":10165 + * double* outfastd_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__1114 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__1114)) __PYX_ERR(2, 10165, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1114); + __Pyx_GIVEREF(__pyx_tuple__1114); + + /* "talib/_func.pxi":10167 + * raise 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__1115 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1115)) __PYX_ERR(2, 10167, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1115); + __Pyx_GIVEREF(__pyx_tuple__1115); + + /* "talib/_func.pxi":10172 + * high_data = 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__1116 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__1116)) __PYX_ERR(2, 10172, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1116); + __Pyx_GIVEREF(__pyx_tuple__1116); + + /* "talib/_func.pxi":10174 + * raise 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__1117 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1117)) __PYX_ERR(2, 10174, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1117); + __Pyx_GIVEREF(__pyx_tuple__1117); + + /* "talib/_func.pxi":10179 + * low_data = 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__1118 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__1118)) __PYX_ERR(2, 10179, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1118); + __Pyx_GIVEREF(__pyx_tuple__1118); + + /* "talib/_func.pxi":10181 + * raise 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__1119 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1119)) __PYX_ERR(2, 10181, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1119); + __Pyx_GIVEREF(__pyx_tuple__1119); + + /* "talib/_func.pxi":10187 + * 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__1120 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1120)) __PYX_ERR(2, 10187, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1120); + __Pyx_GIVEREF(__pyx_tuple__1120); + + /* "talib/_func.pxi":10189 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_tuple__1121 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1121)) __PYX_ERR(2, 10189, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1121); + __Pyx_GIVEREF(__pyx_tuple__1121); + + /* "talib/_func.pxi":10204 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_STOCHF_Lookback( fastk_period , fastd_period , fastd_matype ) + */ + __pyx_tuple__1122 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__1122)) __PYX_ERR(2, 10204, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1122); + __Pyx_GIVEREF(__pyx_tuple__1122); + + /* "talib/_func.pxi":10250 + * double* outfastd_data + * 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__1123 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__1123)) __PYX_ERR(2, 10250, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1123); + __Pyx_GIVEREF(__pyx_tuple__1123); + + /* "talib/_func.pxi":10252 + * 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__1124 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1124)) __PYX_ERR(2, 10252, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1124); + __Pyx_GIVEREF(__pyx_tuple__1124); + + /* "talib/_func.pxi":10265 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_STOCHRSI_Lookback( timeperiod , fastk_period , fastd_period , fastd_matype ) + */ + __pyx_tuple__1125 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__1125)) __PYX_ERR(2, 10265, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1125); + __Pyx_GIVEREF(__pyx_tuple__1125); + + /* "talib/_func.pxi":10305 + * double* outreal_data + * 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__1126 = PyTuple_Pack(1, __pyx_kp_s_real0_is_not_double); if (unlikely(!__pyx_tuple__1126)) __PYX_ERR(2, 10305, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1126); + __Pyx_GIVEREF(__pyx_tuple__1126); + + /* "talib/_func.pxi":10307 + * 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__1127 = PyTuple_Pack(1, __pyx_kp_s_real0_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1127)) __PYX_ERR(2, 10307, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1127); + __Pyx_GIVEREF(__pyx_tuple__1127); + + /* "talib/_func.pxi":10312 + * real0_data = 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__1128 = PyTuple_Pack(1, __pyx_kp_s_real1_is_not_double); if (unlikely(!__pyx_tuple__1128)) __PYX_ERR(2, 10312, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1128); + __Pyx_GIVEREF(__pyx_tuple__1128); + + /* "talib/_func.pxi":10314 + * 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__1129 = PyTuple_Pack(1, __pyx_kp_s_real1_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1129)) __PYX_ERR(2, 10314, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1129); + __Pyx_GIVEREF(__pyx_tuple__1129); + + /* "talib/_func.pxi":10320 + * length = real0.shape[0] + * if length != real1.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_tuple__1130 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1130)) __PYX_ERR(2, 10320, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1130); + __Pyx_GIVEREF(__pyx_tuple__1130); + + /* "talib/_func.pxi":10332 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_SUB_Lookback( ) + */ + __pyx_tuple__1131 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__1131)) __PYX_ERR(2, 10332, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1131); + __Pyx_GIVEREF(__pyx_tuple__1131); + + /* "talib/_func.pxi":10368 + * double* outreal_data + * 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__1132 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__1132)) __PYX_ERR(2, 10368, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1132); + __Pyx_GIVEREF(__pyx_tuple__1132); + + /* "talib/_func.pxi":10370 + * 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__1133 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1133)) __PYX_ERR(2, 10370, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1133); + __Pyx_GIVEREF(__pyx_tuple__1133); + + /* "talib/_func.pxi":10383 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_SUM_Lookback( timeperiod ) + */ + __pyx_tuple__1134 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__1134)) __PYX_ERR(2, 10383, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1134); + __Pyx_GIVEREF(__pyx_tuple__1134); + + /* "talib/_func.pxi":10420 + * double* outreal_data + * 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__1135 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__1135)) __PYX_ERR(2, 10420, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1135); + __Pyx_GIVEREF(__pyx_tuple__1135); + + /* "talib/_func.pxi":10422 + * 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__1136 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1136)) __PYX_ERR(2, 10422, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1136); + __Pyx_GIVEREF(__pyx_tuple__1136); + + /* "talib/_func.pxi":10435 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_T3_Lookback( timeperiod , vfactor ) + */ + __pyx_tuple__1137 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__1137)) __PYX_ERR(2, 10435, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1137); + __Pyx_GIVEREF(__pyx_tuple__1137); + + /* "talib/_func.pxi":10469 + * double* outreal_data + * 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__1138 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__1138)) __PYX_ERR(2, 10469, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1138); + __Pyx_GIVEREF(__pyx_tuple__1138); + + /* "talib/_func.pxi":10471 + * 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__1139 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1139)) __PYX_ERR(2, 10471, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1139); + __Pyx_GIVEREF(__pyx_tuple__1139); + + /* "talib/_func.pxi":10484 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_TAN_Lookback( ) + */ + __pyx_tuple__1140 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__1140)) __PYX_ERR(2, 10484, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1140); + __Pyx_GIVEREF(__pyx_tuple__1140); + + /* "talib/_func.pxi":10518 + * double* outreal_data + * 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__1141 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__1141)) __PYX_ERR(2, 10518, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1141); + __Pyx_GIVEREF(__pyx_tuple__1141); + + /* "talib/_func.pxi":10520 + * 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__1142 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1142)) __PYX_ERR(2, 10520, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1142); + __Pyx_GIVEREF(__pyx_tuple__1142); + + /* "talib/_func.pxi":10533 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_TANH_Lookback( ) + */ + __pyx_tuple__1143 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__1143)) __PYX_ERR(2, 10533, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1143); + __Pyx_GIVEREF(__pyx_tuple__1143); + + /* "talib/_func.pxi":10569 + * double* outreal_data + * 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__1144 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__1144)) __PYX_ERR(2, 10569, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1144); + __Pyx_GIVEREF(__pyx_tuple__1144); + + /* "talib/_func.pxi":10571 + * 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__1145 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1145)) __PYX_ERR(2, 10571, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1145); + __Pyx_GIVEREF(__pyx_tuple__1145); + + /* "talib/_func.pxi":10584 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_TEMA_Lookback( timeperiod ) + */ + __pyx_tuple__1146 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__1146)) __PYX_ERR(2, 10584, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1146); + __Pyx_GIVEREF(__pyx_tuple__1146); + + /* "talib/_func.pxi":10620 + * double* outreal_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__1147 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__1147)) __PYX_ERR(2, 10620, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1147); + __Pyx_GIVEREF(__pyx_tuple__1147); + + /* "talib/_func.pxi":10622 + * raise 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__1148 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1148)) __PYX_ERR(2, 10622, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1148); + __Pyx_GIVEREF(__pyx_tuple__1148); + + /* "talib/_func.pxi":10627 + * high_data = 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__1149 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__1149)) __PYX_ERR(2, 10627, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1149); + __Pyx_GIVEREF(__pyx_tuple__1149); + + /* "talib/_func.pxi":10629 + * raise 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__1150 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1150)) __PYX_ERR(2, 10629, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1150); + __Pyx_GIVEREF(__pyx_tuple__1150); + + /* "talib/_func.pxi":10634 + * low_data = 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__1151 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__1151)) __PYX_ERR(2, 10634, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1151); + __Pyx_GIVEREF(__pyx_tuple__1151); + + /* "talib/_func.pxi":10636 + * raise 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__1152 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1152)) __PYX_ERR(2, 10636, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1152); + __Pyx_GIVEREF(__pyx_tuple__1152); + + /* "talib/_func.pxi":10642 + * 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__1153 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1153)) __PYX_ERR(2, 10642, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1153); + __Pyx_GIVEREF(__pyx_tuple__1153); + + /* "talib/_func.pxi":10644 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_tuple__1154 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1154)) __PYX_ERR(2, 10644, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1154); + __Pyx_GIVEREF(__pyx_tuple__1154); + + /* "talib/_func.pxi":10659 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_TRANGE_Lookback( ) + */ + __pyx_tuple__1155 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__1155)) __PYX_ERR(2, 10659, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1155); + __Pyx_GIVEREF(__pyx_tuple__1155); + + /* "talib/_func.pxi":10695 + * double* outreal_data + * 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__1156 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__1156)) __PYX_ERR(2, 10695, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1156); + __Pyx_GIVEREF(__pyx_tuple__1156); + + /* "talib/_func.pxi":10697 + * 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__1157 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1157)) __PYX_ERR(2, 10697, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1157); + __Pyx_GIVEREF(__pyx_tuple__1157); + + /* "talib/_func.pxi":10710 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_TRIMA_Lookback( timeperiod ) + */ + __pyx_tuple__1158 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__1158)) __PYX_ERR(2, 10710, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1158); + __Pyx_GIVEREF(__pyx_tuple__1158); + + /* "talib/_func.pxi":10746 + * double* outreal_data + * 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__1159 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__1159)) __PYX_ERR(2, 10746, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1159); + __Pyx_GIVEREF(__pyx_tuple__1159); + + /* "talib/_func.pxi":10748 + * 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__1160 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1160)) __PYX_ERR(2, 10748, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1160); + __Pyx_GIVEREF(__pyx_tuple__1160); + + /* "talib/_func.pxi":10761 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_TRIX_Lookback( timeperiod ) + */ + __pyx_tuple__1161 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__1161)) __PYX_ERR(2, 10761, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1161); + __Pyx_GIVEREF(__pyx_tuple__1161); + + /* "talib/_func.pxi":10797 + * double* outreal_data + * 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__1162 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__1162)) __PYX_ERR(2, 10797, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1162); + __Pyx_GIVEREF(__pyx_tuple__1162); + + /* "talib/_func.pxi":10799 + * 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__1163 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1163)) __PYX_ERR(2, 10799, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1163); + __Pyx_GIVEREF(__pyx_tuple__1163); + + /* "talib/_func.pxi":10812 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_TSF_Lookback( timeperiod ) + */ + __pyx_tuple__1164 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__1164)) __PYX_ERR(2, 10812, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1164); + __Pyx_GIVEREF(__pyx_tuple__1164); + + /* "talib/_func.pxi":10848 + * double* outreal_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__1165 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__1165)) __PYX_ERR(2, 10848, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1165); + __Pyx_GIVEREF(__pyx_tuple__1165); + + /* "talib/_func.pxi":10850 + * raise 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__1166 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1166)) __PYX_ERR(2, 10850, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1166); + __Pyx_GIVEREF(__pyx_tuple__1166); + + /* "talib/_func.pxi":10855 + * high_data = 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__1167 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__1167)) __PYX_ERR(2, 10855, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1167); + __Pyx_GIVEREF(__pyx_tuple__1167); + + /* "talib/_func.pxi":10857 + * raise 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__1168 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1168)) __PYX_ERR(2, 10857, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1168); + __Pyx_GIVEREF(__pyx_tuple__1168); + + /* "talib/_func.pxi":10862 + * low_data = 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__1169 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__1169)) __PYX_ERR(2, 10862, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1169); + __Pyx_GIVEREF(__pyx_tuple__1169); + + /* "talib/_func.pxi":10864 + * raise 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__1170 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1170)) __PYX_ERR(2, 10864, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1170); + __Pyx_GIVEREF(__pyx_tuple__1170); + + /* "talib/_func.pxi":10870 + * 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__1171 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1171)) __PYX_ERR(2, 10870, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1171); + __Pyx_GIVEREF(__pyx_tuple__1171); + + /* "talib/_func.pxi":10872 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_tuple__1172 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1172)) __PYX_ERR(2, 10872, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1172); + __Pyx_GIVEREF(__pyx_tuple__1172); + + /* "talib/_func.pxi":10887 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_TYPPRICE_Lookback( ) + */ + __pyx_tuple__1173 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__1173)) __PYX_ERR(2, 10887, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1173); + __Pyx_GIVEREF(__pyx_tuple__1173); + + /* "talib/_func.pxi":10927 + * double* outreal_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__1174 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__1174)) __PYX_ERR(2, 10927, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1174); + __Pyx_GIVEREF(__pyx_tuple__1174); + + /* "talib/_func.pxi":10929 + * raise 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__1175 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1175)) __PYX_ERR(2, 10929, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1175); + __Pyx_GIVEREF(__pyx_tuple__1175); + + /* "talib/_func.pxi":10934 + * high_data = 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__1176 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__1176)) __PYX_ERR(2, 10934, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1176); + __Pyx_GIVEREF(__pyx_tuple__1176); + + /* "talib/_func.pxi":10936 + * raise 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__1177 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1177)) __PYX_ERR(2, 10936, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1177); + __Pyx_GIVEREF(__pyx_tuple__1177); + + /* "talib/_func.pxi":10941 + * low_data = 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__1178 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__1178)) __PYX_ERR(2, 10941, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1178); + __Pyx_GIVEREF(__pyx_tuple__1178); + + /* "talib/_func.pxi":10943 + * raise 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__1179 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1179)) __PYX_ERR(2, 10943, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1179); + __Pyx_GIVEREF(__pyx_tuple__1179); + + /* "talib/_func.pxi":10949 + * 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__1180 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1180)) __PYX_ERR(2, 10949, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1180); + __Pyx_GIVEREF(__pyx_tuple__1180); + + /* "talib/_func.pxi":10951 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_tuple__1181 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1181)) __PYX_ERR(2, 10951, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1181); + __Pyx_GIVEREF(__pyx_tuple__1181); + + /* "talib/_func.pxi":10966 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_ULTOSC_Lookback( timeperiod1 , timeperiod2 , timeperiod3 ) + */ + __pyx_tuple__1182 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__1182)) __PYX_ERR(2, 10966, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1182); + __Pyx_GIVEREF(__pyx_tuple__1182); + + /* "talib/_func.pxi":11003 + * double* outreal_data + * 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__1183 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__1183)) __PYX_ERR(2, 11003, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1183); + __Pyx_GIVEREF(__pyx_tuple__1183); + + /* "talib/_func.pxi":11005 + * 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__1184 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1184)) __PYX_ERR(2, 11005, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1184); + __Pyx_GIVEREF(__pyx_tuple__1184); + + /* "talib/_func.pxi":11018 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_VAR_Lookback( timeperiod , nbdev ) + */ + __pyx_tuple__1185 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__1185)) __PYX_ERR(2, 11018, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1185); + __Pyx_GIVEREF(__pyx_tuple__1185); + + /* "talib/_func.pxi":11054 + * double* outreal_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__1186 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__1186)) __PYX_ERR(2, 11054, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1186); + __Pyx_GIVEREF(__pyx_tuple__1186); + + /* "talib/_func.pxi":11056 + * raise 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__1187 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1187)) __PYX_ERR(2, 11056, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1187); + __Pyx_GIVEREF(__pyx_tuple__1187); + + /* "talib/_func.pxi":11061 + * high_data = 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__1188 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__1188)) __PYX_ERR(2, 11061, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1188); + __Pyx_GIVEREF(__pyx_tuple__1188); + + /* "talib/_func.pxi":11063 + * raise 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__1189 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1189)) __PYX_ERR(2, 11063, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1189); + __Pyx_GIVEREF(__pyx_tuple__1189); + + /* "talib/_func.pxi":11068 + * low_data = 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__1190 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__1190)) __PYX_ERR(2, 11068, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1190); + __Pyx_GIVEREF(__pyx_tuple__1190); + + /* "talib/_func.pxi":11070 + * raise 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__1191 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1191)) __PYX_ERR(2, 11070, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1191); + __Pyx_GIVEREF(__pyx_tuple__1191); + + /* "talib/_func.pxi":11076 + * 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__1192 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1192)) __PYX_ERR(2, 11076, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1192); + __Pyx_GIVEREF(__pyx_tuple__1192); + + /* "talib/_func.pxi":11078 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_tuple__1193 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1193)) __PYX_ERR(2, 11078, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1193); + __Pyx_GIVEREF(__pyx_tuple__1193); + + /* "talib/_func.pxi":11093 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_WCLPRICE_Lookback( ) + */ + __pyx_tuple__1194 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__1194)) __PYX_ERR(2, 11093, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1194); + __Pyx_GIVEREF(__pyx_tuple__1194); + + /* "talib/_func.pxi":11131 + * double* outreal_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__1195 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__1195)) __PYX_ERR(2, 11131, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1195); + __Pyx_GIVEREF(__pyx_tuple__1195); + + /* "talib/_func.pxi":11133 + * raise 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__1196 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1196)) __PYX_ERR(2, 11133, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1196); + __Pyx_GIVEREF(__pyx_tuple__1196); + + /* "talib/_func.pxi":11138 + * high_data = 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__1197 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__1197)) __PYX_ERR(2, 11138, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1197); + __Pyx_GIVEREF(__pyx_tuple__1197); + + /* "talib/_func.pxi":11140 + * raise 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__1198 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1198)) __PYX_ERR(2, 11140, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1198); + __Pyx_GIVEREF(__pyx_tuple__1198); + + /* "talib/_func.pxi":11145 + * low_data = 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__1199 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__1199)) __PYX_ERR(2, 11145, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1199); + __Pyx_GIVEREF(__pyx_tuple__1199); + + /* "talib/_func.pxi":11147 + * raise 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__1200 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1200)) __PYX_ERR(2, 11147, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1200); + __Pyx_GIVEREF(__pyx_tuple__1200); + + /* "talib/_func.pxi":11153 + * 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__1201 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1201)) __PYX_ERR(2, 11153, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1201); + __Pyx_GIVEREF(__pyx_tuple__1201); + + /* "talib/_func.pxi":11155 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * begidx = 0 + * for i from 0 <= i < length: + */ + __pyx_tuple__1202 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1202)) __PYX_ERR(2, 11155, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1202); + __Pyx_GIVEREF(__pyx_tuple__1202); + + /* "talib/_func.pxi":11170 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_WILLR_Lookback( timeperiod ) + */ + __pyx_tuple__1203 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__1203)) __PYX_ERR(2, 11170, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1203); + __Pyx_GIVEREF(__pyx_tuple__1203); + + /* "talib/_func.pxi":11206 + * double* outreal_data + * 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__1204 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__1204)) __PYX_ERR(2, 11206, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1204); + __Pyx_GIVEREF(__pyx_tuple__1204); + + /* "talib/_func.pxi":11208 + * 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__1205 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1205)) __PYX_ERR(2, 11208, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1205); + __Pyx_GIVEREF(__pyx_tuple__1205); + + /* "talib/_func.pxi":11221 + * break + * else: + * raise Exception("inputs are all NaN") # <<<<<<<<<<<<<< + * endidx = length - begidx - 1 + * lookback = begidx + lib.TA_WMA_Lookback( timeperiod ) + */ + __pyx_tuple__1206 = PyTuple_Pack(1, __pyx_kp_s_inputs_are_all_NaN); if (unlikely(!__pyx_tuple__1206)) __PYX_ERR(2, 11221, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1206); + __Pyx_GIVEREF(__pyx_tuple__1206); + + /* "talib/_abstract.pxi":49 + * + * def bytes2str(b): + * return b.decode('ascii') # <<<<<<<<<<<<<< + * + * else: + */ + __pyx_tuple__1207 = PyTuple_Pack(1, __pyx_n_s_ascii); if (unlikely(!__pyx_tuple__1207)) __PYX_ERR(1, 49, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1207); + __Pyx_GIVEREF(__pyx_tuple__1207); + + /* "talib/_abstract.pxi":112 + * + * # inputs (price series names) + * for i in xrange(self.__info.pop('num_inputs')): # <<<<<<<<<<<<<< + * info = _ta_getInputParameterInfo(self.__name, i) + * input_name = info['name'] + */ + __pyx_tuple__1208 = PyTuple_Pack(1, __pyx_n_s_num_inputs); if (unlikely(!__pyx_tuple__1208)) __PYX_ERR(1, 112, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1208); + __Pyx_GIVEREF(__pyx_tuple__1208); + + /* "talib/_abstract.pxi":121 + * + * # optional inputs (function parameters) + * for i in xrange(self.__info.pop('num_opt_inputs')): # <<<<<<<<<<<<<< + * info = _ta_getOptInputParameterInfo(self.__name, i) + * param_name = info['name'] + */ + __pyx_tuple__1209 = PyTuple_Pack(1, __pyx_n_s_num_opt_inputs); if (unlikely(!__pyx_tuple__1209)) __PYX_ERR(1, 121, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1209); + __Pyx_GIVEREF(__pyx_tuple__1209); + + /* "talib/_abstract.pxi":129 + * # outputs + * self.__info['output_flags'] = OrderedDict() + * for i in xrange(self.__info.pop('num_outputs')): # <<<<<<<<<<<<<< + * info = _ta_getOutputParameterInfo(self.__name, i) + * output_name = info['name'] + */ + __pyx_tuple__1210 = PyTuple_Pack(1, __pyx_n_s_num_outputs); if (unlikely(!__pyx_tuple__1210)) __PYX_ERR(1, 129, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1210); + __Pyx_GIVEREF(__pyx_tuple__1210); + + /* "talib/_abstract.pxi":537 + * name = name[len('in'):].lower() + * if 'real' in name: + * name = name.replace('real', 'price') # <<<<<<<<<<<<<< + * elif 'price' in name: + * name = 'prices' + */ + __pyx_tuple__1213 = PyTuple_Pack(2, __pyx_n_s_real, __pyx_n_s_price); if (unlikely(!__pyx_tuple__1213)) __PYX_ERR(1, 537, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1213); + __Pyx_GIVEREF(__pyx_tuple__1213); + + /* "talib/_stream.pxi":30 + * 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__1218 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__1218)) __PYX_ERR(3, 30, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1218); + __Pyx_GIVEREF(__pyx_tuple__1218); + + /* "talib/_stream.pxi":32 + * 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__1219 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1219)) __PYX_ERR(3, 32, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1219); + __Pyx_GIVEREF(__pyx_tuple__1219); + + /* "talib/_stream.pxi":67 + * 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__1220 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__1220)) __PYX_ERR(3, 67, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1220); + __Pyx_GIVEREF(__pyx_tuple__1220); + + /* "talib/_stream.pxi":69 + * raise 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__1221 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1221)) __PYX_ERR(3, 69, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1221); + __Pyx_GIVEREF(__pyx_tuple__1221); + + /* "talib/_stream.pxi":74 + * high_data = 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__1222 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__1222)) __PYX_ERR(3, 74, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1222); + __Pyx_GIVEREF(__pyx_tuple__1222); + + /* "talib/_stream.pxi":76 + * raise 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__1223 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1223)) __PYX_ERR(3, 76, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1223); + __Pyx_GIVEREF(__pyx_tuple__1223); + + /* "talib/_stream.pxi":81 + * low_data = 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__1224 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__1224)) __PYX_ERR(3, 81, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1224); + __Pyx_GIVEREF(__pyx_tuple__1224); + + /* "talib/_stream.pxi":83 + * raise 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__1225 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1225)) __PYX_ERR(3, 83, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1225); + __Pyx_GIVEREF(__pyx_tuple__1225); + + /* "talib/_stream.pxi":88 + * close_data = 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__1226 = PyTuple_Pack(1, __pyx_kp_s_volume_is_not_double); if (unlikely(!__pyx_tuple__1226)) __PYX_ERR(3, 88, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1226); + __Pyx_GIVEREF(__pyx_tuple__1226); + + /* "talib/_stream.pxi":90 + * 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__1227 = PyTuple_Pack(1, __pyx_kp_s_volume_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1227)) __PYX_ERR(3, 90, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1227); + __Pyx_GIVEREF(__pyx_tuple__1227); + + /* "talib/_stream.pxi":96 + * 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__1228 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1228)) __PYX_ERR(3, 96, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1228); + __Pyx_GIVEREF(__pyx_tuple__1228); + + /* "talib/_stream.pxi":98 + * 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__1229 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1229)) __PYX_ERR(3, 98, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1229); + __Pyx_GIVEREF(__pyx_tuple__1229); + + /* "talib/_stream.pxi":100 + * 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__1230 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1230)) __PYX_ERR(3, 100, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1230); + __Pyx_GIVEREF(__pyx_tuple__1230); + + /* "talib/_stream.pxi":130 + * 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__1231 = PyTuple_Pack(1, __pyx_kp_s_real0_is_not_double); if (unlikely(!__pyx_tuple__1231)) __PYX_ERR(3, 130, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1231); + __Pyx_GIVEREF(__pyx_tuple__1231); + + /* "talib/_stream.pxi":132 + * 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__1232 = PyTuple_Pack(1, __pyx_kp_s_real0_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1232)) __PYX_ERR(3, 132, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1232); + __Pyx_GIVEREF(__pyx_tuple__1232); + + /* "talib/_stream.pxi":137 + * real0_data = 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__1233 = PyTuple_Pack(1, __pyx_kp_s_real1_is_not_double); if (unlikely(!__pyx_tuple__1233)) __PYX_ERR(3, 137, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1233); + __Pyx_GIVEREF(__pyx_tuple__1233); + + /* "talib/_stream.pxi":139 + * 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__1234 = PyTuple_Pack(1, __pyx_kp_s_real1_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1234)) __PYX_ERR(3, 139, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1234); + __Pyx_GIVEREF(__pyx_tuple__1234); + + /* "talib/_stream.pxi":145 + * 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__1235 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1235)) __PYX_ERR(3, 145, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1235); + __Pyx_GIVEREF(__pyx_tuple__1235); + + /* "talib/_stream.pxi":179 + * 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__1236 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__1236)) __PYX_ERR(3, 179, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1236); + __Pyx_GIVEREF(__pyx_tuple__1236); + + /* "talib/_stream.pxi":181 + * raise 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__1237 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1237)) __PYX_ERR(3, 181, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1237); + __Pyx_GIVEREF(__pyx_tuple__1237); + + /* "talib/_stream.pxi":186 + * high_data = 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__1238 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__1238)) __PYX_ERR(3, 186, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1238); + __Pyx_GIVEREF(__pyx_tuple__1238); + + /* "talib/_stream.pxi":188 + * raise 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__1239 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1239)) __PYX_ERR(3, 188, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1239); + __Pyx_GIVEREF(__pyx_tuple__1239); + + /* "talib/_stream.pxi":193 + * low_data = 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__1240 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__1240)) __PYX_ERR(3, 193, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1240); + __Pyx_GIVEREF(__pyx_tuple__1240); + + /* "talib/_stream.pxi":195 + * raise 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__1241 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1241)) __PYX_ERR(3, 195, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1241); + __Pyx_GIVEREF(__pyx_tuple__1241); + + /* "talib/_stream.pxi":200 + * close_data = 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__1242 = PyTuple_Pack(1, __pyx_kp_s_volume_is_not_double); if (unlikely(!__pyx_tuple__1242)) __PYX_ERR(3, 200, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1242); + __Pyx_GIVEREF(__pyx_tuple__1242); + + /* "talib/_stream.pxi":202 + * 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__1243 = PyTuple_Pack(1, __pyx_kp_s_volume_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1243)) __PYX_ERR(3, 202, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1243); + __Pyx_GIVEREF(__pyx_tuple__1243); + + /* "talib/_stream.pxi":208 + * 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__1244 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1244)) __PYX_ERR(3, 208, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1244); + __Pyx_GIVEREF(__pyx_tuple__1244); + + /* "talib/_stream.pxi":210 + * 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__1245 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1245)) __PYX_ERR(3, 210, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1245); + __Pyx_GIVEREF(__pyx_tuple__1245); + + /* "talib/_stream.pxi":212 + * 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__1246 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1246)) __PYX_ERR(3, 212, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1246); + __Pyx_GIVEREF(__pyx_tuple__1246); + + /* "talib/_stream.pxi":244 + * 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__1247 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__1247)) __PYX_ERR(3, 244, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1247); + __Pyx_GIVEREF(__pyx_tuple__1247); + + /* "talib/_stream.pxi":246 + * raise 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__1248 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1248)) __PYX_ERR(3, 246, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1248); + __Pyx_GIVEREF(__pyx_tuple__1248); + + /* "talib/_stream.pxi":251 + * high_data = 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__1249 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__1249)) __PYX_ERR(3, 251, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1249); + __Pyx_GIVEREF(__pyx_tuple__1249); + + /* "talib/_stream.pxi":253 + * raise 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__1250 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1250)) __PYX_ERR(3, 253, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1250); + __Pyx_GIVEREF(__pyx_tuple__1250); + + /* "talib/_stream.pxi":258 + * low_data = 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__1251 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__1251)) __PYX_ERR(3, 258, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1251); + __Pyx_GIVEREF(__pyx_tuple__1251); + + /* "talib/_stream.pxi":260 + * raise 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__1252 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1252)) __PYX_ERR(3, 260, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1252); + __Pyx_GIVEREF(__pyx_tuple__1252); + + /* "talib/_stream.pxi":266 + * 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__1253 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1253)) __PYX_ERR(3, 266, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1253); + __Pyx_GIVEREF(__pyx_tuple__1253); + + /* "talib/_stream.pxi":268 + * 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__1254 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1254)) __PYX_ERR(3, 268, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1254); + __Pyx_GIVEREF(__pyx_tuple__1254); + + /* "talib/_stream.pxi":300 + * 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__1255 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__1255)) __PYX_ERR(3, 300, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1255); + __Pyx_GIVEREF(__pyx_tuple__1255); + + /* "talib/_stream.pxi":302 + * raise 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__1256 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1256)) __PYX_ERR(3, 302, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1256); + __Pyx_GIVEREF(__pyx_tuple__1256); + + /* "talib/_stream.pxi":307 + * high_data = 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__1257 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__1257)) __PYX_ERR(3, 307, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1257); + __Pyx_GIVEREF(__pyx_tuple__1257); + + /* "talib/_stream.pxi":309 + * raise 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__1258 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1258)) __PYX_ERR(3, 309, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1258); + __Pyx_GIVEREF(__pyx_tuple__1258); + + /* "talib/_stream.pxi":314 + * low_data = 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__1259 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__1259)) __PYX_ERR(3, 314, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1259); + __Pyx_GIVEREF(__pyx_tuple__1259); + + /* "talib/_stream.pxi":316 + * raise 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__1260 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1260)) __PYX_ERR(3, 316, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1260); + __Pyx_GIVEREF(__pyx_tuple__1260); + + /* "talib/_stream.pxi":322 + * 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__1261 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1261)) __PYX_ERR(3, 322, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1261); + __Pyx_GIVEREF(__pyx_tuple__1261); + + /* "talib/_stream.pxi":324 + * 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__1262 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1262)) __PYX_ERR(3, 324, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1262); + __Pyx_GIVEREF(__pyx_tuple__1262); + + /* "talib/_stream.pxi":356 + * 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__1263 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__1263)) __PYX_ERR(3, 356, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1263); + __Pyx_GIVEREF(__pyx_tuple__1263); + + /* "talib/_stream.pxi":358 + * 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__1264 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1264)) __PYX_ERR(3, 358, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1264); + __Pyx_GIVEREF(__pyx_tuple__1264); + + /* "talib/_stream.pxi":395 + * 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__1265 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__1265)) __PYX_ERR(3, 395, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1265); + __Pyx_GIVEREF(__pyx_tuple__1265); + + /* "talib/_stream.pxi":397 + * raise 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__1266 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1266)) __PYX_ERR(3, 397, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1266); + __Pyx_GIVEREF(__pyx_tuple__1266); + + /* "talib/_stream.pxi":402 + * high_data = 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__1267 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__1267)) __PYX_ERR(3, 402, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1267); + __Pyx_GIVEREF(__pyx_tuple__1267); + + /* "talib/_stream.pxi":404 + * raise 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__1268 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1268)) __PYX_ERR(3, 404, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1268); + __Pyx_GIVEREF(__pyx_tuple__1268); + + /* "talib/_stream.pxi":410 + * length = high.shape[0] + * if length != low.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * outaroondown = NaN + * outaroonup = NaN + */ + __pyx_tuple__1269 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1269)) __PYX_ERR(3, 410, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1269); + __Pyx_GIVEREF(__pyx_tuple__1269); + + /* "talib/_stream.pxi":442 + * 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__1270 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__1270)) __PYX_ERR(3, 442, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1270); + __Pyx_GIVEREF(__pyx_tuple__1270); + + /* "talib/_stream.pxi":444 + * raise 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__1271 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1271)) __PYX_ERR(3, 444, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1271); + __Pyx_GIVEREF(__pyx_tuple__1271); + + /* "talib/_stream.pxi":449 + * high_data = 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__1272 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__1272)) __PYX_ERR(3, 449, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1272); + __Pyx_GIVEREF(__pyx_tuple__1272); + + /* "talib/_stream.pxi":451 + * raise 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__1273 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1273)) __PYX_ERR(3, 451, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1273); + __Pyx_GIVEREF(__pyx_tuple__1273); + + /* "talib/_stream.pxi":457 + * 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__1274 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1274)) __PYX_ERR(3, 457, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1274); + __Pyx_GIVEREF(__pyx_tuple__1274); + + /* "talib/_stream.pxi":485 + * 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__1275 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__1275)) __PYX_ERR(3, 485, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1275); + __Pyx_GIVEREF(__pyx_tuple__1275); + + /* "talib/_stream.pxi":487 + * 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__1276 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1276)) __PYX_ERR(3, 487, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1276); + __Pyx_GIVEREF(__pyx_tuple__1276); + + /* "talib/_stream.pxi":519 + * 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__1277 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__1277)) __PYX_ERR(3, 519, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1277); + __Pyx_GIVEREF(__pyx_tuple__1277); + + /* "talib/_stream.pxi":521 + * 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__1278 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1278)) __PYX_ERR(3, 521, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1278); + __Pyx_GIVEREF(__pyx_tuple__1278); + + /* "talib/_stream.pxi":557 + * 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__1279 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__1279)) __PYX_ERR(3, 557, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1279); + __Pyx_GIVEREF(__pyx_tuple__1279); + + /* "talib/_stream.pxi":559 + * raise 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__1280 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1280)) __PYX_ERR(3, 559, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1280); + __Pyx_GIVEREF(__pyx_tuple__1280); + + /* "talib/_stream.pxi":564 + * high_data = 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__1281 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__1281)) __PYX_ERR(3, 564, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1281); + __Pyx_GIVEREF(__pyx_tuple__1281); + + /* "talib/_stream.pxi":566 + * raise 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__1282 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1282)) __PYX_ERR(3, 566, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1282); + __Pyx_GIVEREF(__pyx_tuple__1282); + + /* "talib/_stream.pxi":571 + * low_data = 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__1283 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__1283)) __PYX_ERR(3, 571, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1283); + __Pyx_GIVEREF(__pyx_tuple__1283); + + /* "talib/_stream.pxi":573 + * raise 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__1284 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1284)) __PYX_ERR(3, 573, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1284); + __Pyx_GIVEREF(__pyx_tuple__1284); + + /* "talib/_stream.pxi":579 + * 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__1285 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1285)) __PYX_ERR(3, 579, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1285); + __Pyx_GIVEREF(__pyx_tuple__1285); + + /* "talib/_stream.pxi":581 + * 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__1286 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1286)) __PYX_ERR(3, 581, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1286); + __Pyx_GIVEREF(__pyx_tuple__1286); + + /* "talib/_stream.pxi":612 + * 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__1287 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__1287)) __PYX_ERR(3, 612, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1287); + __Pyx_GIVEREF(__pyx_tuple__1287); + + /* "talib/_stream.pxi":614 + * 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__1288 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1288)) __PYX_ERR(3, 614, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1288); + __Pyx_GIVEREF(__pyx_tuple__1288); + + /* "talib/_stream.pxi":619 + * open_data = 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__1289 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__1289)) __PYX_ERR(3, 619, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1289); + __Pyx_GIVEREF(__pyx_tuple__1289); + + /* "talib/_stream.pxi":621 + * raise 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__1290 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1290)) __PYX_ERR(3, 621, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1290); + __Pyx_GIVEREF(__pyx_tuple__1290); + + /* "talib/_stream.pxi":626 + * high_data = 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__1291 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__1291)) __PYX_ERR(3, 626, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1291); + __Pyx_GIVEREF(__pyx_tuple__1291); + + /* "talib/_stream.pxi":628 + * raise 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__1292 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1292)) __PYX_ERR(3, 628, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1292); + __Pyx_GIVEREF(__pyx_tuple__1292); + + /* "talib/_stream.pxi":633 + * low_data = 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__1293 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__1293)) __PYX_ERR(3, 633, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1293); + __Pyx_GIVEREF(__pyx_tuple__1293); + + /* "talib/_stream.pxi":635 + * raise 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__1294 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1294)) __PYX_ERR(3, 635, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1294); + __Pyx_GIVEREF(__pyx_tuple__1294); + + /* "talib/_stream.pxi":641 + * 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__1295 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1295)) __PYX_ERR(3, 641, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1295); + __Pyx_GIVEREF(__pyx_tuple__1295); + + /* "talib/_stream.pxi":643 + * 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__1296 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1296)) __PYX_ERR(3, 643, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1296); + __Pyx_GIVEREF(__pyx_tuple__1296); + + /* "talib/_stream.pxi":645 + * 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__1297 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1297)) __PYX_ERR(3, 645, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1297); + __Pyx_GIVEREF(__pyx_tuple__1297); + + /* "talib/_stream.pxi":682 + * 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__1298 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__1298)) __PYX_ERR(3, 682, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1298); + __Pyx_GIVEREF(__pyx_tuple__1298); + + /* "talib/_stream.pxi":684 + * 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__1299 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1299)) __PYX_ERR(3, 684, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1299); + __Pyx_GIVEREF(__pyx_tuple__1299); + + /* "talib/_stream.pxi":722 + * 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__1300 = PyTuple_Pack(1, __pyx_kp_s_real0_is_not_double); if (unlikely(!__pyx_tuple__1300)) __PYX_ERR(3, 722, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1300); + __Pyx_GIVEREF(__pyx_tuple__1300); + + /* "talib/_stream.pxi":724 + * 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__1301 = PyTuple_Pack(1, __pyx_kp_s_real0_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1301)) __PYX_ERR(3, 724, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1301); + __Pyx_GIVEREF(__pyx_tuple__1301); + + /* "talib/_stream.pxi":729 + * real0_data = 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__1302 = PyTuple_Pack(1, __pyx_kp_s_real1_is_not_double); if (unlikely(!__pyx_tuple__1302)) __PYX_ERR(3, 729, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1302); + __Pyx_GIVEREF(__pyx_tuple__1302); + + /* "talib/_stream.pxi":731 + * 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__1303 = PyTuple_Pack(1, __pyx_kp_s_real1_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1303)) __PYX_ERR(3, 731, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1303); + __Pyx_GIVEREF(__pyx_tuple__1303); + + /* "talib/_stream.pxi":737 + * 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__1304 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1304)) __PYX_ERR(3, 737, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1304); + __Pyx_GIVEREF(__pyx_tuple__1304); + + /* "talib/_stream.pxi":768 + * 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__1305 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__1305)) __PYX_ERR(3, 768, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1305); + __Pyx_GIVEREF(__pyx_tuple__1305); + + /* "talib/_stream.pxi":770 + * 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__1306 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1306)) __PYX_ERR(3, 770, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1306); + __Pyx_GIVEREF(__pyx_tuple__1306); + + /* "talib/_stream.pxi":775 + * open_data = 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__1307 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__1307)) __PYX_ERR(3, 775, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1307); + __Pyx_GIVEREF(__pyx_tuple__1307); + + /* "talib/_stream.pxi":777 + * raise 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__1308 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1308)) __PYX_ERR(3, 777, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1308); + __Pyx_GIVEREF(__pyx_tuple__1308); + + /* "talib/_stream.pxi":782 + * high_data = 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__1309 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__1309)) __PYX_ERR(3, 782, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1309); + __Pyx_GIVEREF(__pyx_tuple__1309); + + /* "talib/_stream.pxi":784 + * raise 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__1310 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1310)) __PYX_ERR(3, 784, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1310); + __Pyx_GIVEREF(__pyx_tuple__1310); + + /* "talib/_stream.pxi":789 + * low_data = 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__1311 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__1311)) __PYX_ERR(3, 789, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1311); + __Pyx_GIVEREF(__pyx_tuple__1311); + + /* "talib/_stream.pxi":791 + * raise 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__1312 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1312)) __PYX_ERR(3, 791, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1312); + __Pyx_GIVEREF(__pyx_tuple__1312); + + /* "talib/_stream.pxi":797 + * 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__1313 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1313)) __PYX_ERR(3, 797, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1313); + __Pyx_GIVEREF(__pyx_tuple__1313); + + /* "talib/_stream.pxi":799 + * 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__1314 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1314)) __PYX_ERR(3, 799, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1314); + __Pyx_GIVEREF(__pyx_tuple__1314); + + /* "talib/_stream.pxi":801 + * 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__1315 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1315)) __PYX_ERR(3, 801, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1315); + __Pyx_GIVEREF(__pyx_tuple__1315); + + /* "talib/_stream.pxi":833 + * 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__1316 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__1316)) __PYX_ERR(3, 833, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1316); + __Pyx_GIVEREF(__pyx_tuple__1316); + + /* "talib/_stream.pxi":835 + * raise 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__1317 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1317)) __PYX_ERR(3, 835, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1317); + __Pyx_GIVEREF(__pyx_tuple__1317); + + /* "talib/_stream.pxi":840 + * high_data = 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__1318 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__1318)) __PYX_ERR(3, 840, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1318); + __Pyx_GIVEREF(__pyx_tuple__1318); + + /* "talib/_stream.pxi":842 + * raise 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__1319 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1319)) __PYX_ERR(3, 842, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1319); + __Pyx_GIVEREF(__pyx_tuple__1319); + + /* "talib/_stream.pxi":847 + * low_data = 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__1320 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__1320)) __PYX_ERR(3, 847, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1320); + __Pyx_GIVEREF(__pyx_tuple__1320); + + /* "talib/_stream.pxi":849 + * raise 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__1321 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1321)) __PYX_ERR(3, 849, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1321); + __Pyx_GIVEREF(__pyx_tuple__1321); + + /* "talib/_stream.pxi":855 + * 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__1322 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1322)) __PYX_ERR(3, 855, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1322); + __Pyx_GIVEREF(__pyx_tuple__1322); + + /* "talib/_stream.pxi":857 + * 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__1323 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1323)) __PYX_ERR(3, 857, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1323); + __Pyx_GIVEREF(__pyx_tuple__1323); + + /* "talib/_stream.pxi":888 + * 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__1324 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__1324)) __PYX_ERR(3, 888, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1324); + __Pyx_GIVEREF(__pyx_tuple__1324); + + /* "talib/_stream.pxi":890 + * 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__1325 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1325)) __PYX_ERR(3, 890, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1325); + __Pyx_GIVEREF(__pyx_tuple__1325); + + /* "talib/_stream.pxi":895 + * open_data = 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__1326 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__1326)) __PYX_ERR(3, 895, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1326); + __Pyx_GIVEREF(__pyx_tuple__1326); + + /* "talib/_stream.pxi":897 + * raise 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__1327 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1327)) __PYX_ERR(3, 897, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1327); + __Pyx_GIVEREF(__pyx_tuple__1327); + + /* "talib/_stream.pxi":902 + * high_data = 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__1328 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__1328)) __PYX_ERR(3, 902, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1328); + __Pyx_GIVEREF(__pyx_tuple__1328); + + /* "talib/_stream.pxi":904 + * raise 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__1329 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1329)) __PYX_ERR(3, 904, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1329); + __Pyx_GIVEREF(__pyx_tuple__1329); + + /* "talib/_stream.pxi":909 + * low_data = 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__1330 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__1330)) __PYX_ERR(3, 909, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1330); + __Pyx_GIVEREF(__pyx_tuple__1330); + + /* "talib/_stream.pxi":911 + * raise 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__1331 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1331)) __PYX_ERR(3, 911, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1331); + __Pyx_GIVEREF(__pyx_tuple__1331); + + /* "talib/_stream.pxi":917 + * 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__1332 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1332)) __PYX_ERR(3, 917, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1332); + __Pyx_GIVEREF(__pyx_tuple__1332); + + /* "talib/_stream.pxi":919 + * 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__1333 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1333)) __PYX_ERR(3, 919, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1333); + __Pyx_GIVEREF(__pyx_tuple__1333); + + /* "talib/_stream.pxi":921 + * 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__1334 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1334)) __PYX_ERR(3, 921, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1334); + __Pyx_GIVEREF(__pyx_tuple__1334); + + /* "talib/_stream.pxi":952 + * 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__1335 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__1335)) __PYX_ERR(3, 952, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1335); + __Pyx_GIVEREF(__pyx_tuple__1335); + + /* "talib/_stream.pxi":954 + * 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__1336 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1336)) __PYX_ERR(3, 954, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1336); + __Pyx_GIVEREF(__pyx_tuple__1336); + + /* "talib/_stream.pxi":959 + * open_data = 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__1337 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__1337)) __PYX_ERR(3, 959, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1337); + __Pyx_GIVEREF(__pyx_tuple__1337); + + /* "talib/_stream.pxi":961 + * raise 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__1338 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1338)) __PYX_ERR(3, 961, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1338); + __Pyx_GIVEREF(__pyx_tuple__1338); + + /* "talib/_stream.pxi":966 + * high_data = 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__1339 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__1339)) __PYX_ERR(3, 966, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1339); + __Pyx_GIVEREF(__pyx_tuple__1339); + + /* "talib/_stream.pxi":968 + * raise 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__1340 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1340)) __PYX_ERR(3, 968, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1340); + __Pyx_GIVEREF(__pyx_tuple__1340); + + /* "talib/_stream.pxi":973 + * low_data = 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__1341 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__1341)) __PYX_ERR(3, 973, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1341); + __Pyx_GIVEREF(__pyx_tuple__1341); + + /* "talib/_stream.pxi":975 + * raise 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__1342 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1342)) __PYX_ERR(3, 975, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1342); + __Pyx_GIVEREF(__pyx_tuple__1342); + + /* "talib/_stream.pxi":981 + * 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__1343 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1343)) __PYX_ERR(3, 981, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1343); + __Pyx_GIVEREF(__pyx_tuple__1343); + + /* "talib/_stream.pxi":983 + * 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__1344 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1344)) __PYX_ERR(3, 983, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1344); + __Pyx_GIVEREF(__pyx_tuple__1344); + + /* "talib/_stream.pxi":985 + * 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__1345 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1345)) __PYX_ERR(3, 985, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1345); + __Pyx_GIVEREF(__pyx_tuple__1345); + + /* "talib/_stream.pxi":1016 + * 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__1346 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__1346)) __PYX_ERR(3, 1016, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1346); + __Pyx_GIVEREF(__pyx_tuple__1346); + + /* "talib/_stream.pxi":1018 + * 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__1347 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1347)) __PYX_ERR(3, 1018, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1347); + __Pyx_GIVEREF(__pyx_tuple__1347); + + /* "talib/_stream.pxi":1023 + * open_data = 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__1348 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__1348)) __PYX_ERR(3, 1023, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1348); + __Pyx_GIVEREF(__pyx_tuple__1348); + + /* "talib/_stream.pxi":1025 + * raise 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__1349 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1349)) __PYX_ERR(3, 1025, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1349); + __Pyx_GIVEREF(__pyx_tuple__1349); + + /* "talib/_stream.pxi":1030 + * high_data = 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__1350 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__1350)) __PYX_ERR(3, 1030, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1350); + __Pyx_GIVEREF(__pyx_tuple__1350); + + /* "talib/_stream.pxi":1032 + * raise 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__1351 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1351)) __PYX_ERR(3, 1032, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1351); + __Pyx_GIVEREF(__pyx_tuple__1351); + + /* "talib/_stream.pxi":1037 + * low_data = 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__1352 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__1352)) __PYX_ERR(3, 1037, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1352); + __Pyx_GIVEREF(__pyx_tuple__1352); + + /* "talib/_stream.pxi":1039 + * raise 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__1353 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1353)) __PYX_ERR(3, 1039, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1353); + __Pyx_GIVEREF(__pyx_tuple__1353); + + /* "talib/_stream.pxi":1045 + * 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__1354 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1354)) __PYX_ERR(3, 1045, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1354); + __Pyx_GIVEREF(__pyx_tuple__1354); + + /* "talib/_stream.pxi":1047 + * 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__1355 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1355)) __PYX_ERR(3, 1047, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1355); + __Pyx_GIVEREF(__pyx_tuple__1355); + + /* "talib/_stream.pxi":1049 + * 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__1356 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1356)) __PYX_ERR(3, 1049, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1356); + __Pyx_GIVEREF(__pyx_tuple__1356); + + /* "talib/_stream.pxi":1080 + * 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__1357 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__1357)) __PYX_ERR(3, 1080, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1357); + __Pyx_GIVEREF(__pyx_tuple__1357); + + /* "talib/_stream.pxi":1082 + * 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__1358 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1358)) __PYX_ERR(3, 1082, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1358); + __Pyx_GIVEREF(__pyx_tuple__1358); + + /* "talib/_stream.pxi":1087 + * open_data = 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__1359 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__1359)) __PYX_ERR(3, 1087, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1359); + __Pyx_GIVEREF(__pyx_tuple__1359); + + /* "talib/_stream.pxi":1089 + * raise 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__1360 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1360)) __PYX_ERR(3, 1089, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1360); + __Pyx_GIVEREF(__pyx_tuple__1360); + + /* "talib/_stream.pxi":1094 + * high_data = 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__1361 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__1361)) __PYX_ERR(3, 1094, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1361); + __Pyx_GIVEREF(__pyx_tuple__1361); + + /* "talib/_stream.pxi":1096 + * raise 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__1362 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1362)) __PYX_ERR(3, 1096, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1362); + __Pyx_GIVEREF(__pyx_tuple__1362); + + /* "talib/_stream.pxi":1101 + * low_data = 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__1363 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__1363)) __PYX_ERR(3, 1101, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1363); + __Pyx_GIVEREF(__pyx_tuple__1363); + + /* "talib/_stream.pxi":1103 + * raise 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__1364 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1364)) __PYX_ERR(3, 1103, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1364); + __Pyx_GIVEREF(__pyx_tuple__1364); + + /* "talib/_stream.pxi":1109 + * 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__1365 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1365)) __PYX_ERR(3, 1109, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1365); + __Pyx_GIVEREF(__pyx_tuple__1365); + + /* "talib/_stream.pxi":1111 + * 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__1366 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1366)) __PYX_ERR(3, 1111, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1366); + __Pyx_GIVEREF(__pyx_tuple__1366); + + /* "talib/_stream.pxi":1113 + * 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__1367 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1367)) __PYX_ERR(3, 1113, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1367); + __Pyx_GIVEREF(__pyx_tuple__1367); + + /* "talib/_stream.pxi":1144 + * 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__1368 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__1368)) __PYX_ERR(3, 1144, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1368); + __Pyx_GIVEREF(__pyx_tuple__1368); + + /* "talib/_stream.pxi":1146 + * 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__1369 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1369)) __PYX_ERR(3, 1146, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1369); + __Pyx_GIVEREF(__pyx_tuple__1369); + + /* "talib/_stream.pxi":1151 + * open_data = 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__1370 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__1370)) __PYX_ERR(3, 1151, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1370); + __Pyx_GIVEREF(__pyx_tuple__1370); + + /* "talib/_stream.pxi":1153 + * raise 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__1371 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1371)) __PYX_ERR(3, 1153, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1371); + __Pyx_GIVEREF(__pyx_tuple__1371); + + /* "talib/_stream.pxi":1158 + * high_data = 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__1372 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__1372)) __PYX_ERR(3, 1158, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1372); + __Pyx_GIVEREF(__pyx_tuple__1372); + + /* "talib/_stream.pxi":1160 + * raise 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__1373 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1373)) __PYX_ERR(3, 1160, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1373); + __Pyx_GIVEREF(__pyx_tuple__1373); + + /* "talib/_stream.pxi":1165 + * low_data = 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__1374 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__1374)) __PYX_ERR(3, 1165, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1374); + __Pyx_GIVEREF(__pyx_tuple__1374); + + /* "talib/_stream.pxi":1167 + * raise 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__1375 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1375)) __PYX_ERR(3, 1167, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1375); + __Pyx_GIVEREF(__pyx_tuple__1375); + + /* "talib/_stream.pxi":1173 + * 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__1376 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1376)) __PYX_ERR(3, 1173, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1376); + __Pyx_GIVEREF(__pyx_tuple__1376); + + /* "talib/_stream.pxi":1175 + * 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__1377 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1377)) __PYX_ERR(3, 1175, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1377); + __Pyx_GIVEREF(__pyx_tuple__1377); + + /* "talib/_stream.pxi":1177 + * 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__1378 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1378)) __PYX_ERR(3, 1177, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1378); + __Pyx_GIVEREF(__pyx_tuple__1378); + + /* "talib/_stream.pxi":1208 + * 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__1379 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__1379)) __PYX_ERR(3, 1208, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1379); + __Pyx_GIVEREF(__pyx_tuple__1379); + + /* "talib/_stream.pxi":1210 + * 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__1380 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1380)) __PYX_ERR(3, 1210, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1380); + __Pyx_GIVEREF(__pyx_tuple__1380); + + /* "talib/_stream.pxi":1215 + * open_data = 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__1381 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__1381)) __PYX_ERR(3, 1215, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1381); + __Pyx_GIVEREF(__pyx_tuple__1381); + + /* "talib/_stream.pxi":1217 + * raise 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__1382 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1382)) __PYX_ERR(3, 1217, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1382); + __Pyx_GIVEREF(__pyx_tuple__1382); + + /* "talib/_stream.pxi":1222 + * high_data = 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__1383 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__1383)) __PYX_ERR(3, 1222, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1383); + __Pyx_GIVEREF(__pyx_tuple__1383); + + /* "talib/_stream.pxi":1224 + * raise 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__1384 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1384)) __PYX_ERR(3, 1224, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1384); + __Pyx_GIVEREF(__pyx_tuple__1384); + + /* "talib/_stream.pxi":1229 + * low_data = 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__1385 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__1385)) __PYX_ERR(3, 1229, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1385); + __Pyx_GIVEREF(__pyx_tuple__1385); + + /* "talib/_stream.pxi":1231 + * raise 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__1386 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1386)) __PYX_ERR(3, 1231, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1386); + __Pyx_GIVEREF(__pyx_tuple__1386); + + /* "talib/_stream.pxi":1237 + * 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__1387 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1387)) __PYX_ERR(3, 1237, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1387); + __Pyx_GIVEREF(__pyx_tuple__1387); + + /* "talib/_stream.pxi":1239 + * 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__1388 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1388)) __PYX_ERR(3, 1239, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1388); + __Pyx_GIVEREF(__pyx_tuple__1388); + + /* "talib/_stream.pxi":1241 + * 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__1389 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1389)) __PYX_ERR(3, 1241, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1389); + __Pyx_GIVEREF(__pyx_tuple__1389); + + /* "talib/_stream.pxi":1272 + * 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__1390 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__1390)) __PYX_ERR(3, 1272, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1390); + __Pyx_GIVEREF(__pyx_tuple__1390); + + /* "talib/_stream.pxi":1274 + * 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__1391 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1391)) __PYX_ERR(3, 1274, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1391); + __Pyx_GIVEREF(__pyx_tuple__1391); + + /* "talib/_stream.pxi":1279 + * open_data = 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__1392 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__1392)) __PYX_ERR(3, 1279, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1392); + __Pyx_GIVEREF(__pyx_tuple__1392); + + /* "talib/_stream.pxi":1281 + * raise 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__1393 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1393)) __PYX_ERR(3, 1281, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1393); + __Pyx_GIVEREF(__pyx_tuple__1393); + + /* "talib/_stream.pxi":1286 + * high_data = 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__1394 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__1394)) __PYX_ERR(3, 1286, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1394); + __Pyx_GIVEREF(__pyx_tuple__1394); + + /* "talib/_stream.pxi":1288 + * raise 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__1395 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1395)) __PYX_ERR(3, 1288, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1395); + __Pyx_GIVEREF(__pyx_tuple__1395); + + /* "talib/_stream.pxi":1293 + * low_data = 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__1396 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__1396)) __PYX_ERR(3, 1293, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1396); + __Pyx_GIVEREF(__pyx_tuple__1396); + + /* "talib/_stream.pxi":1295 + * raise 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__1397 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1397)) __PYX_ERR(3, 1295, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1397); + __Pyx_GIVEREF(__pyx_tuple__1397); + + /* "talib/_stream.pxi":1301 + * 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__1398 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1398)) __PYX_ERR(3, 1301, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1398); + __Pyx_GIVEREF(__pyx_tuple__1398); + + /* "talib/_stream.pxi":1303 + * 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__1399 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1399)) __PYX_ERR(3, 1303, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1399); + __Pyx_GIVEREF(__pyx_tuple__1399); + + /* "talib/_stream.pxi":1305 + * 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__1400 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1400)) __PYX_ERR(3, 1305, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1400); + __Pyx_GIVEREF(__pyx_tuple__1400); + + /* "talib/_stream.pxi":1338 + * 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__1401 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__1401)) __PYX_ERR(3, 1338, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1401); + __Pyx_GIVEREF(__pyx_tuple__1401); + + /* "talib/_stream.pxi":1340 + * 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__1402 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1402)) __PYX_ERR(3, 1340, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1402); + __Pyx_GIVEREF(__pyx_tuple__1402); + + /* "talib/_stream.pxi":1345 + * open_data = 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__1403 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__1403)) __PYX_ERR(3, 1345, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1403); + __Pyx_GIVEREF(__pyx_tuple__1403); + + /* "talib/_stream.pxi":1347 + * raise 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__1404 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1404)) __PYX_ERR(3, 1347, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1404); + __Pyx_GIVEREF(__pyx_tuple__1404); + + /* "talib/_stream.pxi":1352 + * high_data = 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__1405 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__1405)) __PYX_ERR(3, 1352, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1405); + __Pyx_GIVEREF(__pyx_tuple__1405); + + /* "talib/_stream.pxi":1354 + * raise 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__1406 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1406)) __PYX_ERR(3, 1354, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1406); + __Pyx_GIVEREF(__pyx_tuple__1406); + + /* "talib/_stream.pxi":1359 + * low_data = 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__1407 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__1407)) __PYX_ERR(3, 1359, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1407); + __Pyx_GIVEREF(__pyx_tuple__1407); + + /* "talib/_stream.pxi":1361 + * raise 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__1408 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1408)) __PYX_ERR(3, 1361, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1408); + __Pyx_GIVEREF(__pyx_tuple__1408); + + /* "talib/_stream.pxi":1367 + * 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__1409 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1409)) __PYX_ERR(3, 1367, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1409); + __Pyx_GIVEREF(__pyx_tuple__1409); + + /* "talib/_stream.pxi":1369 + * 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__1410 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1410)) __PYX_ERR(3, 1369, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1410); + __Pyx_GIVEREF(__pyx_tuple__1410); + + /* "talib/_stream.pxi":1371 + * 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__1411 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1411)) __PYX_ERR(3, 1371, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1411); + __Pyx_GIVEREF(__pyx_tuple__1411); + + /* "talib/_stream.pxi":1402 + * 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__1412 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__1412)) __PYX_ERR(3, 1402, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1412); + __Pyx_GIVEREF(__pyx_tuple__1412); + + /* "talib/_stream.pxi":1404 + * 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__1413 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1413)) __PYX_ERR(3, 1404, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1413); + __Pyx_GIVEREF(__pyx_tuple__1413); + + /* "talib/_stream.pxi":1409 + * open_data = 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__1414 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__1414)) __PYX_ERR(3, 1409, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1414); + __Pyx_GIVEREF(__pyx_tuple__1414); + + /* "talib/_stream.pxi":1411 + * raise 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__1415 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1415)) __PYX_ERR(3, 1411, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1415); + __Pyx_GIVEREF(__pyx_tuple__1415); + + /* "talib/_stream.pxi":1416 + * high_data = 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__1416 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__1416)) __PYX_ERR(3, 1416, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1416); + __Pyx_GIVEREF(__pyx_tuple__1416); + + /* "talib/_stream.pxi":1418 + * raise 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__1417 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1417)) __PYX_ERR(3, 1418, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1417); + __Pyx_GIVEREF(__pyx_tuple__1417); + + /* "talib/_stream.pxi":1423 + * low_data = 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__1418 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__1418)) __PYX_ERR(3, 1423, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1418); + __Pyx_GIVEREF(__pyx_tuple__1418); + + /* "talib/_stream.pxi":1425 + * raise 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__1419 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1419)) __PYX_ERR(3, 1425, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1419); + __Pyx_GIVEREF(__pyx_tuple__1419); + + /* "talib/_stream.pxi":1431 + * 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__1420 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1420)) __PYX_ERR(3, 1431, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1420); + __Pyx_GIVEREF(__pyx_tuple__1420); + + /* "talib/_stream.pxi":1433 + * 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__1421 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1421)) __PYX_ERR(3, 1433, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1421); + __Pyx_GIVEREF(__pyx_tuple__1421); + + /* "talib/_stream.pxi":1435 + * 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__1422 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1422)) __PYX_ERR(3, 1435, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1422); + __Pyx_GIVEREF(__pyx_tuple__1422); + + /* "talib/_stream.pxi":1466 + * 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__1423 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__1423)) __PYX_ERR(3, 1466, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1423); + __Pyx_GIVEREF(__pyx_tuple__1423); + + /* "talib/_stream.pxi":1468 + * 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__1424 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1424)) __PYX_ERR(3, 1468, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1424); + __Pyx_GIVEREF(__pyx_tuple__1424); + + /* "talib/_stream.pxi":1473 + * open_data = 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__1425 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__1425)) __PYX_ERR(3, 1473, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1425); + __Pyx_GIVEREF(__pyx_tuple__1425); + + /* "talib/_stream.pxi":1475 + * raise 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__1426 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1426)) __PYX_ERR(3, 1475, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1426); + __Pyx_GIVEREF(__pyx_tuple__1426); + + /* "talib/_stream.pxi":1480 + * high_data = 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__1427 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__1427)) __PYX_ERR(3, 1480, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1427); + __Pyx_GIVEREF(__pyx_tuple__1427); + + /* "talib/_stream.pxi":1482 + * raise 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__1428 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1428)) __PYX_ERR(3, 1482, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1428); + __Pyx_GIVEREF(__pyx_tuple__1428); + + /* "talib/_stream.pxi":1487 + * low_data = 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__1429 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__1429)) __PYX_ERR(3, 1487, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1429); + __Pyx_GIVEREF(__pyx_tuple__1429); + + /* "talib/_stream.pxi":1489 + * raise 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__1430 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1430)) __PYX_ERR(3, 1489, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1430); + __Pyx_GIVEREF(__pyx_tuple__1430); + + /* "talib/_stream.pxi":1495 + * 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__1431 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1431)) __PYX_ERR(3, 1495, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1431); + __Pyx_GIVEREF(__pyx_tuple__1431); + + /* "talib/_stream.pxi":1497 + * 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__1432 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1432)) __PYX_ERR(3, 1497, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1432); + __Pyx_GIVEREF(__pyx_tuple__1432); + + /* "talib/_stream.pxi":1499 + * 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__1433 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1433)) __PYX_ERR(3, 1499, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1433); + __Pyx_GIVEREF(__pyx_tuple__1433); + + /* "talib/_stream.pxi":1530 + * 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__1434 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__1434)) __PYX_ERR(3, 1530, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1434); + __Pyx_GIVEREF(__pyx_tuple__1434); + + /* "talib/_stream.pxi":1532 + * 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__1435 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1435)) __PYX_ERR(3, 1532, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1435); + __Pyx_GIVEREF(__pyx_tuple__1435); + + /* "talib/_stream.pxi":1537 + * open_data = 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__1436 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__1436)) __PYX_ERR(3, 1537, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1436); + __Pyx_GIVEREF(__pyx_tuple__1436); + + /* "talib/_stream.pxi":1539 + * raise 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__1437 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1437)) __PYX_ERR(3, 1539, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1437); + __Pyx_GIVEREF(__pyx_tuple__1437); + + /* "talib/_stream.pxi":1544 + * high_data = 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__1438 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__1438)) __PYX_ERR(3, 1544, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1438); + __Pyx_GIVEREF(__pyx_tuple__1438); + + /* "talib/_stream.pxi":1546 + * raise 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__1439 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1439)) __PYX_ERR(3, 1546, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1439); + __Pyx_GIVEREF(__pyx_tuple__1439); + + /* "talib/_stream.pxi":1551 + * low_data = 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__1440 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__1440)) __PYX_ERR(3, 1551, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1440); + __Pyx_GIVEREF(__pyx_tuple__1440); + + /* "talib/_stream.pxi":1553 + * raise 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__1441 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1441)) __PYX_ERR(3, 1553, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1441); + __Pyx_GIVEREF(__pyx_tuple__1441); + + /* "talib/_stream.pxi":1559 + * 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__1442 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1442)) __PYX_ERR(3, 1559, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1442); + __Pyx_GIVEREF(__pyx_tuple__1442); + + /* "talib/_stream.pxi":1561 + * 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__1443 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1443)) __PYX_ERR(3, 1561, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1443); + __Pyx_GIVEREF(__pyx_tuple__1443); + + /* "talib/_stream.pxi":1563 + * 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__1444 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1444)) __PYX_ERR(3, 1563, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1444); + __Pyx_GIVEREF(__pyx_tuple__1444); + + /* "talib/_stream.pxi":1594 + * 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__1445 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__1445)) __PYX_ERR(3, 1594, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1445); + __Pyx_GIVEREF(__pyx_tuple__1445); + + /* "talib/_stream.pxi":1596 + * 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__1446 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1446)) __PYX_ERR(3, 1596, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1446); + __Pyx_GIVEREF(__pyx_tuple__1446); + + /* "talib/_stream.pxi":1601 + * open_data = 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__1447 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__1447)) __PYX_ERR(3, 1601, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1447); + __Pyx_GIVEREF(__pyx_tuple__1447); + + /* "talib/_stream.pxi":1603 + * raise 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__1448 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1448)) __PYX_ERR(3, 1603, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1448); + __Pyx_GIVEREF(__pyx_tuple__1448); + + /* "talib/_stream.pxi":1608 + * high_data = 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__1449 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__1449)) __PYX_ERR(3, 1608, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1449); + __Pyx_GIVEREF(__pyx_tuple__1449); + + /* "talib/_stream.pxi":1610 + * raise 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__1450 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1450)) __PYX_ERR(3, 1610, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1450); + __Pyx_GIVEREF(__pyx_tuple__1450); + + /* "talib/_stream.pxi":1615 + * low_data = 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__1451 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__1451)) __PYX_ERR(3, 1615, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1451); + __Pyx_GIVEREF(__pyx_tuple__1451); + + /* "talib/_stream.pxi":1617 + * raise 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__1452 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1452)) __PYX_ERR(3, 1617, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1452); + __Pyx_GIVEREF(__pyx_tuple__1452); + + /* "talib/_stream.pxi":1623 + * 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__1453 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1453)) __PYX_ERR(3, 1623, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1453); + __Pyx_GIVEREF(__pyx_tuple__1453); + + /* "talib/_stream.pxi":1625 + * 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__1454 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1454)) __PYX_ERR(3, 1625, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1454); + __Pyx_GIVEREF(__pyx_tuple__1454); + + /* "talib/_stream.pxi":1627 + * 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__1455 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1455)) __PYX_ERR(3, 1627, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1455); + __Pyx_GIVEREF(__pyx_tuple__1455); + + /* "talib/_stream.pxi":1658 + * 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__1456 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__1456)) __PYX_ERR(3, 1658, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1456); + __Pyx_GIVEREF(__pyx_tuple__1456); + + /* "talib/_stream.pxi":1660 + * 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__1457 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1457)) __PYX_ERR(3, 1660, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1457); + __Pyx_GIVEREF(__pyx_tuple__1457); + + /* "talib/_stream.pxi":1665 + * open_data = 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__1458 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__1458)) __PYX_ERR(3, 1665, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1458); + __Pyx_GIVEREF(__pyx_tuple__1458); + + /* "talib/_stream.pxi":1667 + * raise 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__1459 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1459)) __PYX_ERR(3, 1667, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1459); + __Pyx_GIVEREF(__pyx_tuple__1459); + + /* "talib/_stream.pxi":1672 + * high_data = 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__1460 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__1460)) __PYX_ERR(3, 1672, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1460); + __Pyx_GIVEREF(__pyx_tuple__1460); + + /* "talib/_stream.pxi":1674 + * raise 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__1461 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1461)) __PYX_ERR(3, 1674, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1461); + __Pyx_GIVEREF(__pyx_tuple__1461); + + /* "talib/_stream.pxi":1679 + * low_data = 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__1462 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__1462)) __PYX_ERR(3, 1679, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1462); + __Pyx_GIVEREF(__pyx_tuple__1462); + + /* "talib/_stream.pxi":1681 + * raise 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__1463 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1463)) __PYX_ERR(3, 1681, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1463); + __Pyx_GIVEREF(__pyx_tuple__1463); + + /* "talib/_stream.pxi":1687 + * 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__1464 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1464)) __PYX_ERR(3, 1687, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1464); + __Pyx_GIVEREF(__pyx_tuple__1464); + + /* "talib/_stream.pxi":1689 + * 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__1465 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1465)) __PYX_ERR(3, 1689, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1465); + __Pyx_GIVEREF(__pyx_tuple__1465); + + /* "talib/_stream.pxi":1691 + * 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__1466 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1466)) __PYX_ERR(3, 1691, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1466); + __Pyx_GIVEREF(__pyx_tuple__1466); + + /* "talib/_stream.pxi":1722 + * 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__1467 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__1467)) __PYX_ERR(3, 1722, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1467); + __Pyx_GIVEREF(__pyx_tuple__1467); + + /* "talib/_stream.pxi":1724 + * 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__1468 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1468)) __PYX_ERR(3, 1724, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1468); + __Pyx_GIVEREF(__pyx_tuple__1468); + + /* "talib/_stream.pxi":1729 + * open_data = 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__1469 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__1469)) __PYX_ERR(3, 1729, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1469); + __Pyx_GIVEREF(__pyx_tuple__1469); + + /* "talib/_stream.pxi":1731 + * raise 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__1470 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1470)) __PYX_ERR(3, 1731, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1470); + __Pyx_GIVEREF(__pyx_tuple__1470); + + /* "talib/_stream.pxi":1736 + * high_data = 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__1471 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__1471)) __PYX_ERR(3, 1736, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1471); + __Pyx_GIVEREF(__pyx_tuple__1471); + + /* "talib/_stream.pxi":1738 + * raise 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__1472 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1472)) __PYX_ERR(3, 1738, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1472); + __Pyx_GIVEREF(__pyx_tuple__1472); + + /* "talib/_stream.pxi":1743 + * low_data = 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__1473 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__1473)) __PYX_ERR(3, 1743, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1473); + __Pyx_GIVEREF(__pyx_tuple__1473); + + /* "talib/_stream.pxi":1745 + * raise 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__1474 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1474)) __PYX_ERR(3, 1745, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1474); + __Pyx_GIVEREF(__pyx_tuple__1474); + + /* "talib/_stream.pxi":1751 + * 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__1475 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1475)) __PYX_ERR(3, 1751, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1475); + __Pyx_GIVEREF(__pyx_tuple__1475); + + /* "talib/_stream.pxi":1753 + * 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__1476 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1476)) __PYX_ERR(3, 1753, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1476); + __Pyx_GIVEREF(__pyx_tuple__1476); + + /* "talib/_stream.pxi":1755 + * 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__1477 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1477)) __PYX_ERR(3, 1755, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1477); + __Pyx_GIVEREF(__pyx_tuple__1477); + + /* "talib/_stream.pxi":1788 + * 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__1478 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__1478)) __PYX_ERR(3, 1788, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1478); + __Pyx_GIVEREF(__pyx_tuple__1478); + + /* "talib/_stream.pxi":1790 + * 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__1479 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1479)) __PYX_ERR(3, 1790, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1479); + __Pyx_GIVEREF(__pyx_tuple__1479); + + /* "talib/_stream.pxi":1795 + * open_data = 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__1480 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__1480)) __PYX_ERR(3, 1795, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1480); + __Pyx_GIVEREF(__pyx_tuple__1480); + + /* "talib/_stream.pxi":1797 + * raise 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__1481 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1481)) __PYX_ERR(3, 1797, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1481); + __Pyx_GIVEREF(__pyx_tuple__1481); + + /* "talib/_stream.pxi":1802 + * high_data = 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__1482 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__1482)) __PYX_ERR(3, 1802, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1482); + __Pyx_GIVEREF(__pyx_tuple__1482); + + /* "talib/_stream.pxi":1804 + * raise 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__1483 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1483)) __PYX_ERR(3, 1804, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1483); + __Pyx_GIVEREF(__pyx_tuple__1483); + + /* "talib/_stream.pxi":1809 + * low_data = 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__1484 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__1484)) __PYX_ERR(3, 1809, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1484); + __Pyx_GIVEREF(__pyx_tuple__1484); + + /* "talib/_stream.pxi":1811 + * raise 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__1485 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1485)) __PYX_ERR(3, 1811, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1485); + __Pyx_GIVEREF(__pyx_tuple__1485); + + /* "talib/_stream.pxi":1817 + * 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__1486 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1486)) __PYX_ERR(3, 1817, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1486); + __Pyx_GIVEREF(__pyx_tuple__1486); + + /* "talib/_stream.pxi":1819 + * 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__1487 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1487)) __PYX_ERR(3, 1819, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1487); + __Pyx_GIVEREF(__pyx_tuple__1487); + + /* "talib/_stream.pxi":1821 + * 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__1488 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1488)) __PYX_ERR(3, 1821, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1488); + __Pyx_GIVEREF(__pyx_tuple__1488); + + /* "talib/_stream.pxi":1852 + * 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__1489 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__1489)) __PYX_ERR(3, 1852, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1489); + __Pyx_GIVEREF(__pyx_tuple__1489); + + /* "talib/_stream.pxi":1854 + * 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__1490 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1490)) __PYX_ERR(3, 1854, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1490); + __Pyx_GIVEREF(__pyx_tuple__1490); + + /* "talib/_stream.pxi":1859 + * open_data = 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__1491 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__1491)) __PYX_ERR(3, 1859, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1491); + __Pyx_GIVEREF(__pyx_tuple__1491); + + /* "talib/_stream.pxi":1861 + * raise 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__1492 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1492)) __PYX_ERR(3, 1861, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1492); + __Pyx_GIVEREF(__pyx_tuple__1492); + + /* "talib/_stream.pxi":1866 + * high_data = 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__1493 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__1493)) __PYX_ERR(3, 1866, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1493); + __Pyx_GIVEREF(__pyx_tuple__1493); + + /* "talib/_stream.pxi":1868 + * raise 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__1494 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1494)) __PYX_ERR(3, 1868, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1494); + __Pyx_GIVEREF(__pyx_tuple__1494); + + /* "talib/_stream.pxi":1873 + * low_data = 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__1495 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__1495)) __PYX_ERR(3, 1873, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1495); + __Pyx_GIVEREF(__pyx_tuple__1495); + + /* "talib/_stream.pxi":1875 + * raise 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__1496 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1496)) __PYX_ERR(3, 1875, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1496); + __Pyx_GIVEREF(__pyx_tuple__1496); + + /* "talib/_stream.pxi":1881 + * 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__1497 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1497)) __PYX_ERR(3, 1881, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1497); + __Pyx_GIVEREF(__pyx_tuple__1497); + + /* "talib/_stream.pxi":1883 + * 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__1498 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1498)) __PYX_ERR(3, 1883, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1498); + __Pyx_GIVEREF(__pyx_tuple__1498); + + /* "talib/_stream.pxi":1885 + * 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__1499 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1499)) __PYX_ERR(3, 1885, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1499); + __Pyx_GIVEREF(__pyx_tuple__1499); + + /* "talib/_stream.pxi":1916 + * 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__1500 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__1500)) __PYX_ERR(3, 1916, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1500); + __Pyx_GIVEREF(__pyx_tuple__1500); + + /* "talib/_stream.pxi":1918 + * 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__1501 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1501)) __PYX_ERR(3, 1918, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1501); + __Pyx_GIVEREF(__pyx_tuple__1501); + + /* "talib/_stream.pxi":1923 + * open_data = 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__1502 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__1502)) __PYX_ERR(3, 1923, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1502); + __Pyx_GIVEREF(__pyx_tuple__1502); + + /* "talib/_stream.pxi":1925 + * raise 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__1503 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1503)) __PYX_ERR(3, 1925, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1503); + __Pyx_GIVEREF(__pyx_tuple__1503); + + /* "talib/_stream.pxi":1930 + * high_data = 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__1504 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__1504)) __PYX_ERR(3, 1930, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1504); + __Pyx_GIVEREF(__pyx_tuple__1504); + + /* "talib/_stream.pxi":1932 + * raise 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__1505 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1505)) __PYX_ERR(3, 1932, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1505); + __Pyx_GIVEREF(__pyx_tuple__1505); + + /* "talib/_stream.pxi":1937 + * low_data = 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__1506 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__1506)) __PYX_ERR(3, 1937, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1506); + __Pyx_GIVEREF(__pyx_tuple__1506); + + /* "talib/_stream.pxi":1939 + * raise 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__1507 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1507)) __PYX_ERR(3, 1939, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1507); + __Pyx_GIVEREF(__pyx_tuple__1507); + + /* "talib/_stream.pxi":1945 + * 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__1508 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1508)) __PYX_ERR(3, 1945, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1508); + __Pyx_GIVEREF(__pyx_tuple__1508); + + /* "talib/_stream.pxi":1947 + * 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__1509 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1509)) __PYX_ERR(3, 1947, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1509); + __Pyx_GIVEREF(__pyx_tuple__1509); + + /* "talib/_stream.pxi":1949 + * 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__1510 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1510)) __PYX_ERR(3, 1949, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1510); + __Pyx_GIVEREF(__pyx_tuple__1510); + + /* "talib/_stream.pxi":1980 + * 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__1511 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__1511)) __PYX_ERR(3, 1980, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1511); + __Pyx_GIVEREF(__pyx_tuple__1511); + + /* "talib/_stream.pxi":1982 + * 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__1512 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1512)) __PYX_ERR(3, 1982, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1512); + __Pyx_GIVEREF(__pyx_tuple__1512); + + /* "talib/_stream.pxi":1987 + * open_data = 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__1513 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__1513)) __PYX_ERR(3, 1987, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1513); + __Pyx_GIVEREF(__pyx_tuple__1513); + + /* "talib/_stream.pxi":1989 + * raise 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__1514 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1514)) __PYX_ERR(3, 1989, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1514); + __Pyx_GIVEREF(__pyx_tuple__1514); + + /* "talib/_stream.pxi":1994 + * high_data = 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__1515 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__1515)) __PYX_ERR(3, 1994, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1515); + __Pyx_GIVEREF(__pyx_tuple__1515); + + /* "talib/_stream.pxi":1996 + * raise 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__1516 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1516)) __PYX_ERR(3, 1996, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1516); + __Pyx_GIVEREF(__pyx_tuple__1516); + + /* "talib/_stream.pxi":2001 + * low_data = 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__1517 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__1517)) __PYX_ERR(3, 2001, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1517); + __Pyx_GIVEREF(__pyx_tuple__1517); + + /* "talib/_stream.pxi":2003 + * raise 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__1518 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1518)) __PYX_ERR(3, 2003, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1518); + __Pyx_GIVEREF(__pyx_tuple__1518); + + /* "talib/_stream.pxi":2009 + * 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__1519 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1519)) __PYX_ERR(3, 2009, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1519); + __Pyx_GIVEREF(__pyx_tuple__1519); + + /* "talib/_stream.pxi":2011 + * 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__1520 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1520)) __PYX_ERR(3, 2011, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1520); + __Pyx_GIVEREF(__pyx_tuple__1520); + + /* "talib/_stream.pxi":2013 + * 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__1521 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1521)) __PYX_ERR(3, 2013, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1521); + __Pyx_GIVEREF(__pyx_tuple__1521); + + /* "talib/_stream.pxi":2044 + * 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__1522 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__1522)) __PYX_ERR(3, 2044, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1522); + __Pyx_GIVEREF(__pyx_tuple__1522); + + /* "talib/_stream.pxi":2046 + * 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__1523 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1523)) __PYX_ERR(3, 2046, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1523); + __Pyx_GIVEREF(__pyx_tuple__1523); + + /* "talib/_stream.pxi":2051 + * open_data = 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__1524 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__1524)) __PYX_ERR(3, 2051, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1524); + __Pyx_GIVEREF(__pyx_tuple__1524); + + /* "talib/_stream.pxi":2053 + * raise 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__1525 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1525)) __PYX_ERR(3, 2053, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1525); + __Pyx_GIVEREF(__pyx_tuple__1525); + + /* "talib/_stream.pxi":2058 + * high_data = 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__1526 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__1526)) __PYX_ERR(3, 2058, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1526); + __Pyx_GIVEREF(__pyx_tuple__1526); + + /* "talib/_stream.pxi":2060 + * raise 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__1527 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1527)) __PYX_ERR(3, 2060, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1527); + __Pyx_GIVEREF(__pyx_tuple__1527); + + /* "talib/_stream.pxi":2065 + * low_data = 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__1528 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__1528)) __PYX_ERR(3, 2065, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1528); + __Pyx_GIVEREF(__pyx_tuple__1528); + + /* "talib/_stream.pxi":2067 + * raise 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__1529 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1529)) __PYX_ERR(3, 2067, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1529); + __Pyx_GIVEREF(__pyx_tuple__1529); + + /* "talib/_stream.pxi":2073 + * 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__1530 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1530)) __PYX_ERR(3, 2073, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1530); + __Pyx_GIVEREF(__pyx_tuple__1530); + + /* "talib/_stream.pxi":2075 + * 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__1531 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1531)) __PYX_ERR(3, 2075, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1531); + __Pyx_GIVEREF(__pyx_tuple__1531); + + /* "talib/_stream.pxi":2077 + * 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__1532 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1532)) __PYX_ERR(3, 2077, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1532); + __Pyx_GIVEREF(__pyx_tuple__1532); + + /* "talib/_stream.pxi":2110 + * 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__1533 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__1533)) __PYX_ERR(3, 2110, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1533); + __Pyx_GIVEREF(__pyx_tuple__1533); + + /* "talib/_stream.pxi":2112 + * 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__1534 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1534)) __PYX_ERR(3, 2112, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1534); + __Pyx_GIVEREF(__pyx_tuple__1534); + + /* "talib/_stream.pxi":2117 + * open_data = 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__1535 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__1535)) __PYX_ERR(3, 2117, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1535); + __Pyx_GIVEREF(__pyx_tuple__1535); + + /* "talib/_stream.pxi":2119 + * raise 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__1536 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1536)) __PYX_ERR(3, 2119, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1536); + __Pyx_GIVEREF(__pyx_tuple__1536); + + /* "talib/_stream.pxi":2124 + * high_data = 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__1537 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__1537)) __PYX_ERR(3, 2124, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1537); + __Pyx_GIVEREF(__pyx_tuple__1537); + + /* "talib/_stream.pxi":2126 + * raise 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__1538 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1538)) __PYX_ERR(3, 2126, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1538); + __Pyx_GIVEREF(__pyx_tuple__1538); + + /* "talib/_stream.pxi":2131 + * low_data = 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__1539 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__1539)) __PYX_ERR(3, 2131, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1539); + __Pyx_GIVEREF(__pyx_tuple__1539); + + /* "talib/_stream.pxi":2133 + * raise 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__1540 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1540)) __PYX_ERR(3, 2133, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1540); + __Pyx_GIVEREF(__pyx_tuple__1540); + + /* "talib/_stream.pxi":2139 + * 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__1541 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1541)) __PYX_ERR(3, 2139, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1541); + __Pyx_GIVEREF(__pyx_tuple__1541); + + /* "talib/_stream.pxi":2141 + * 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__1542 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1542)) __PYX_ERR(3, 2141, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1542); + __Pyx_GIVEREF(__pyx_tuple__1542); + + /* "talib/_stream.pxi":2143 + * 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__1543 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1543)) __PYX_ERR(3, 2143, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1543); + __Pyx_GIVEREF(__pyx_tuple__1543); + + /* "talib/_stream.pxi":2176 + * 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__1544 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__1544)) __PYX_ERR(3, 2176, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1544); + __Pyx_GIVEREF(__pyx_tuple__1544); + + /* "talib/_stream.pxi":2178 + * 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__1545 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1545)) __PYX_ERR(3, 2178, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1545); + __Pyx_GIVEREF(__pyx_tuple__1545); + + /* "talib/_stream.pxi":2183 + * open_data = 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__1546 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__1546)) __PYX_ERR(3, 2183, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1546); + __Pyx_GIVEREF(__pyx_tuple__1546); + + /* "talib/_stream.pxi":2185 + * raise 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__1547 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1547)) __PYX_ERR(3, 2185, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1547); + __Pyx_GIVEREF(__pyx_tuple__1547); + + /* "talib/_stream.pxi":2190 + * high_data = 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__1548 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__1548)) __PYX_ERR(3, 2190, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1548); + __Pyx_GIVEREF(__pyx_tuple__1548); + + /* "talib/_stream.pxi":2192 + * raise 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__1549 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1549)) __PYX_ERR(3, 2192, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1549); + __Pyx_GIVEREF(__pyx_tuple__1549); + + /* "talib/_stream.pxi":2197 + * low_data = 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__1550 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__1550)) __PYX_ERR(3, 2197, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1550); + __Pyx_GIVEREF(__pyx_tuple__1550); + + /* "talib/_stream.pxi":2199 + * raise 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__1551 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1551)) __PYX_ERR(3, 2199, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1551); + __Pyx_GIVEREF(__pyx_tuple__1551); + + /* "talib/_stream.pxi":2205 + * 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__1552 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1552)) __PYX_ERR(3, 2205, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1552); + __Pyx_GIVEREF(__pyx_tuple__1552); + + /* "talib/_stream.pxi":2207 + * 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__1553 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1553)) __PYX_ERR(3, 2207, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1553); + __Pyx_GIVEREF(__pyx_tuple__1553); + + /* "talib/_stream.pxi":2209 + * 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__1554 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1554)) __PYX_ERR(3, 2209, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1554); + __Pyx_GIVEREF(__pyx_tuple__1554); + + /* "talib/_stream.pxi":2240 + * 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__1555 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__1555)) __PYX_ERR(3, 2240, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1555); + __Pyx_GIVEREF(__pyx_tuple__1555); + + /* "talib/_stream.pxi":2242 + * 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__1556 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1556)) __PYX_ERR(3, 2242, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1556); + __Pyx_GIVEREF(__pyx_tuple__1556); + + /* "talib/_stream.pxi":2247 + * open_data = 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__1557 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__1557)) __PYX_ERR(3, 2247, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1557); + __Pyx_GIVEREF(__pyx_tuple__1557); + + /* "talib/_stream.pxi":2249 + * raise 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__1558 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1558)) __PYX_ERR(3, 2249, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1558); + __Pyx_GIVEREF(__pyx_tuple__1558); + + /* "talib/_stream.pxi":2254 + * high_data = 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__1559 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__1559)) __PYX_ERR(3, 2254, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1559); + __Pyx_GIVEREF(__pyx_tuple__1559); + + /* "talib/_stream.pxi":2256 + * raise 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__1560 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1560)) __PYX_ERR(3, 2256, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1560); + __Pyx_GIVEREF(__pyx_tuple__1560); + + /* "talib/_stream.pxi":2261 + * low_data = 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__1561 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__1561)) __PYX_ERR(3, 2261, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1561); + __Pyx_GIVEREF(__pyx_tuple__1561); + + /* "talib/_stream.pxi":2263 + * raise 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__1562 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1562)) __PYX_ERR(3, 2263, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1562); + __Pyx_GIVEREF(__pyx_tuple__1562); + + /* "talib/_stream.pxi":2269 + * 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__1563 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1563)) __PYX_ERR(3, 2269, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1563); + __Pyx_GIVEREF(__pyx_tuple__1563); + + /* "talib/_stream.pxi":2271 + * 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__1564 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1564)) __PYX_ERR(3, 2271, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1564); + __Pyx_GIVEREF(__pyx_tuple__1564); + + /* "talib/_stream.pxi":2273 + * 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__1565 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1565)) __PYX_ERR(3, 2273, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1565); + __Pyx_GIVEREF(__pyx_tuple__1565); + + /* "talib/_stream.pxi":2304 + * 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__1566 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__1566)) __PYX_ERR(3, 2304, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1566); + __Pyx_GIVEREF(__pyx_tuple__1566); + + /* "talib/_stream.pxi":2306 + * 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__1567 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1567)) __PYX_ERR(3, 2306, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1567); + __Pyx_GIVEREF(__pyx_tuple__1567); + + /* "talib/_stream.pxi":2311 + * open_data = 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__1568 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__1568)) __PYX_ERR(3, 2311, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1568); + __Pyx_GIVEREF(__pyx_tuple__1568); + + /* "talib/_stream.pxi":2313 + * raise 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__1569 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1569)) __PYX_ERR(3, 2313, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1569); + __Pyx_GIVEREF(__pyx_tuple__1569); + + /* "talib/_stream.pxi":2318 + * high_data = 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__1570 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__1570)) __PYX_ERR(3, 2318, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1570); + __Pyx_GIVEREF(__pyx_tuple__1570); + + /* "talib/_stream.pxi":2320 + * raise 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__1571 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1571)) __PYX_ERR(3, 2320, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1571); + __Pyx_GIVEREF(__pyx_tuple__1571); + + /* "talib/_stream.pxi":2325 + * low_data = 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__1572 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__1572)) __PYX_ERR(3, 2325, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1572); + __Pyx_GIVEREF(__pyx_tuple__1572); + + /* "talib/_stream.pxi":2327 + * raise 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__1573 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1573)) __PYX_ERR(3, 2327, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1573); + __Pyx_GIVEREF(__pyx_tuple__1573); + + /* "talib/_stream.pxi":2333 + * 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__1574 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1574)) __PYX_ERR(3, 2333, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1574); + __Pyx_GIVEREF(__pyx_tuple__1574); + + /* "talib/_stream.pxi":2335 + * 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__1575 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1575)) __PYX_ERR(3, 2335, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1575); + __Pyx_GIVEREF(__pyx_tuple__1575); + + /* "talib/_stream.pxi":2337 + * 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__1576 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1576)) __PYX_ERR(3, 2337, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1576); + __Pyx_GIVEREF(__pyx_tuple__1576); + + /* "talib/_stream.pxi":2368 + * 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__1577 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__1577)) __PYX_ERR(3, 2368, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1577); + __Pyx_GIVEREF(__pyx_tuple__1577); + + /* "talib/_stream.pxi":2370 + * 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__1578 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1578)) __PYX_ERR(3, 2370, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1578); + __Pyx_GIVEREF(__pyx_tuple__1578); + + /* "talib/_stream.pxi":2375 + * open_data = 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__1579 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__1579)) __PYX_ERR(3, 2375, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1579); + __Pyx_GIVEREF(__pyx_tuple__1579); + + /* "talib/_stream.pxi":2377 + * raise 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__1580 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1580)) __PYX_ERR(3, 2377, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1580); + __Pyx_GIVEREF(__pyx_tuple__1580); + + /* "talib/_stream.pxi":2382 + * high_data = 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__1581 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__1581)) __PYX_ERR(3, 2382, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1581); + __Pyx_GIVEREF(__pyx_tuple__1581); + + /* "talib/_stream.pxi":2384 + * raise 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__1582 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1582)) __PYX_ERR(3, 2384, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1582); + __Pyx_GIVEREF(__pyx_tuple__1582); + + /* "talib/_stream.pxi":2389 + * low_data = 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__1583 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__1583)) __PYX_ERR(3, 2389, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1583); + __Pyx_GIVEREF(__pyx_tuple__1583); + + /* "talib/_stream.pxi":2391 + * raise 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__1584 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1584)) __PYX_ERR(3, 2391, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1584); + __Pyx_GIVEREF(__pyx_tuple__1584); + + /* "talib/_stream.pxi":2397 + * 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__1585 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1585)) __PYX_ERR(3, 2397, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1585); + __Pyx_GIVEREF(__pyx_tuple__1585); + + /* "talib/_stream.pxi":2399 + * 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__1586 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1586)) __PYX_ERR(3, 2399, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1586); + __Pyx_GIVEREF(__pyx_tuple__1586); + + /* "talib/_stream.pxi":2401 + * 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__1587 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1587)) __PYX_ERR(3, 2401, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1587); + __Pyx_GIVEREF(__pyx_tuple__1587); + + /* "talib/_stream.pxi":2432 + * 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__1588 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__1588)) __PYX_ERR(3, 2432, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1588); + __Pyx_GIVEREF(__pyx_tuple__1588); + + /* "talib/_stream.pxi":2434 + * 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__1589 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1589)) __PYX_ERR(3, 2434, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1589); + __Pyx_GIVEREF(__pyx_tuple__1589); + + /* "talib/_stream.pxi":2439 + * open_data = 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__1590 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__1590)) __PYX_ERR(3, 2439, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1590); + __Pyx_GIVEREF(__pyx_tuple__1590); + + /* "talib/_stream.pxi":2441 + * raise 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__1591 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1591)) __PYX_ERR(3, 2441, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1591); + __Pyx_GIVEREF(__pyx_tuple__1591); + + /* "talib/_stream.pxi":2446 + * high_data = 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__1592 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__1592)) __PYX_ERR(3, 2446, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1592); + __Pyx_GIVEREF(__pyx_tuple__1592); + + /* "talib/_stream.pxi":2448 + * raise 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__1593 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1593)) __PYX_ERR(3, 2448, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1593); + __Pyx_GIVEREF(__pyx_tuple__1593); + + /* "talib/_stream.pxi":2453 + * low_data = 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__1594 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__1594)) __PYX_ERR(3, 2453, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1594); + __Pyx_GIVEREF(__pyx_tuple__1594); + + /* "talib/_stream.pxi":2455 + * raise 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__1595 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1595)) __PYX_ERR(3, 2455, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1595); + __Pyx_GIVEREF(__pyx_tuple__1595); + + /* "talib/_stream.pxi":2461 + * 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__1596 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1596)) __PYX_ERR(3, 2461, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1596); + __Pyx_GIVEREF(__pyx_tuple__1596); + + /* "talib/_stream.pxi":2463 + * 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__1597 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1597)) __PYX_ERR(3, 2463, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1597); + __Pyx_GIVEREF(__pyx_tuple__1597); + + /* "talib/_stream.pxi":2465 + * 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__1598 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1598)) __PYX_ERR(3, 2465, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1598); + __Pyx_GIVEREF(__pyx_tuple__1598); + + /* "talib/_stream.pxi":2496 + * 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__1599 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__1599)) __PYX_ERR(3, 2496, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1599); + __Pyx_GIVEREF(__pyx_tuple__1599); + + /* "talib/_stream.pxi":2498 + * 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__1600 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1600)) __PYX_ERR(3, 2498, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1600); + __Pyx_GIVEREF(__pyx_tuple__1600); + + /* "talib/_stream.pxi":2503 + * open_data = 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__1601 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__1601)) __PYX_ERR(3, 2503, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1601); + __Pyx_GIVEREF(__pyx_tuple__1601); + + /* "talib/_stream.pxi":2505 + * raise 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__1602 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1602)) __PYX_ERR(3, 2505, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1602); + __Pyx_GIVEREF(__pyx_tuple__1602); + + /* "talib/_stream.pxi":2510 + * high_data = 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__1603 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__1603)) __PYX_ERR(3, 2510, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1603); + __Pyx_GIVEREF(__pyx_tuple__1603); + + /* "talib/_stream.pxi":2512 + * raise 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__1604 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1604)) __PYX_ERR(3, 2512, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1604); + __Pyx_GIVEREF(__pyx_tuple__1604); + + /* "talib/_stream.pxi":2517 + * low_data = 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__1605 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__1605)) __PYX_ERR(3, 2517, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1605); + __Pyx_GIVEREF(__pyx_tuple__1605); + + /* "talib/_stream.pxi":2519 + * raise 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__1606 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1606)) __PYX_ERR(3, 2519, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1606); + __Pyx_GIVEREF(__pyx_tuple__1606); + + /* "talib/_stream.pxi":2525 + * 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__1607 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1607)) __PYX_ERR(3, 2525, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1607); + __Pyx_GIVEREF(__pyx_tuple__1607); + + /* "talib/_stream.pxi":2527 + * 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__1608 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1608)) __PYX_ERR(3, 2527, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1608); + __Pyx_GIVEREF(__pyx_tuple__1608); + + /* "talib/_stream.pxi":2529 + * 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__1609 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1609)) __PYX_ERR(3, 2529, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1609); + __Pyx_GIVEREF(__pyx_tuple__1609); + + /* "talib/_stream.pxi":2560 + * 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__1610 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__1610)) __PYX_ERR(3, 2560, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1610); + __Pyx_GIVEREF(__pyx_tuple__1610); + + /* "talib/_stream.pxi":2562 + * 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__1611 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1611)) __PYX_ERR(3, 2562, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1611); + __Pyx_GIVEREF(__pyx_tuple__1611); + + /* "talib/_stream.pxi":2567 + * open_data = 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__1612 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__1612)) __PYX_ERR(3, 2567, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1612); + __Pyx_GIVEREF(__pyx_tuple__1612); + + /* "talib/_stream.pxi":2569 + * raise 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__1613 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1613)) __PYX_ERR(3, 2569, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1613); + __Pyx_GIVEREF(__pyx_tuple__1613); + + /* "talib/_stream.pxi":2574 + * high_data = 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__1614 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__1614)) __PYX_ERR(3, 2574, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1614); + __Pyx_GIVEREF(__pyx_tuple__1614); + + /* "talib/_stream.pxi":2576 + * raise 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__1615 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1615)) __PYX_ERR(3, 2576, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1615); + __Pyx_GIVEREF(__pyx_tuple__1615); + + /* "talib/_stream.pxi":2581 + * low_data = 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__1616 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__1616)) __PYX_ERR(3, 2581, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1616); + __Pyx_GIVEREF(__pyx_tuple__1616); + + /* "talib/_stream.pxi":2583 + * raise 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__1617 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1617)) __PYX_ERR(3, 2583, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1617); + __Pyx_GIVEREF(__pyx_tuple__1617); + + /* "talib/_stream.pxi":2589 + * 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__1618 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1618)) __PYX_ERR(3, 2589, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1618); + __Pyx_GIVEREF(__pyx_tuple__1618); + + /* "talib/_stream.pxi":2591 + * 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__1619 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1619)) __PYX_ERR(3, 2591, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1619); + __Pyx_GIVEREF(__pyx_tuple__1619); + + /* "talib/_stream.pxi":2593 + * 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__1620 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1620)) __PYX_ERR(3, 2593, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1620); + __Pyx_GIVEREF(__pyx_tuple__1620); + + /* "talib/_stream.pxi":2624 + * 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__1621 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__1621)) __PYX_ERR(3, 2624, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1621); + __Pyx_GIVEREF(__pyx_tuple__1621); + + /* "talib/_stream.pxi":2626 + * 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__1622 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1622)) __PYX_ERR(3, 2626, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1622); + __Pyx_GIVEREF(__pyx_tuple__1622); + + /* "talib/_stream.pxi":2631 + * open_data = 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__1623 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__1623)) __PYX_ERR(3, 2631, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1623); + __Pyx_GIVEREF(__pyx_tuple__1623); + + /* "talib/_stream.pxi":2633 + * raise 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__1624 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1624)) __PYX_ERR(3, 2633, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1624); + __Pyx_GIVEREF(__pyx_tuple__1624); + + /* "talib/_stream.pxi":2638 + * high_data = 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__1625 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__1625)) __PYX_ERR(3, 2638, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1625); + __Pyx_GIVEREF(__pyx_tuple__1625); + + /* "talib/_stream.pxi":2640 + * raise 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__1626 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1626)) __PYX_ERR(3, 2640, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1626); + __Pyx_GIVEREF(__pyx_tuple__1626); + + /* "talib/_stream.pxi":2645 + * low_data = 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__1627 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__1627)) __PYX_ERR(3, 2645, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1627); + __Pyx_GIVEREF(__pyx_tuple__1627); + + /* "talib/_stream.pxi":2647 + * raise 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__1628 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1628)) __PYX_ERR(3, 2647, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1628); + __Pyx_GIVEREF(__pyx_tuple__1628); + + /* "talib/_stream.pxi":2653 + * 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__1629 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1629)) __PYX_ERR(3, 2653, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1629); + __Pyx_GIVEREF(__pyx_tuple__1629); + + /* "talib/_stream.pxi":2655 + * 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__1630 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1630)) __PYX_ERR(3, 2655, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1630); + __Pyx_GIVEREF(__pyx_tuple__1630); + + /* "talib/_stream.pxi":2657 + * 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__1631 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1631)) __PYX_ERR(3, 2657, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1631); + __Pyx_GIVEREF(__pyx_tuple__1631); + + /* "talib/_stream.pxi":2688 + * 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__1632 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__1632)) __PYX_ERR(3, 2688, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1632); + __Pyx_GIVEREF(__pyx_tuple__1632); + + /* "talib/_stream.pxi":2690 + * 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__1633 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1633)) __PYX_ERR(3, 2690, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1633); + __Pyx_GIVEREF(__pyx_tuple__1633); + + /* "talib/_stream.pxi":2695 + * open_data = 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__1634 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__1634)) __PYX_ERR(3, 2695, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1634); + __Pyx_GIVEREF(__pyx_tuple__1634); + + /* "talib/_stream.pxi":2697 + * raise 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__1635 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1635)) __PYX_ERR(3, 2697, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1635); + __Pyx_GIVEREF(__pyx_tuple__1635); + + /* "talib/_stream.pxi":2702 + * high_data = 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__1636 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__1636)) __PYX_ERR(3, 2702, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1636); + __Pyx_GIVEREF(__pyx_tuple__1636); + + /* "talib/_stream.pxi":2704 + * raise 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__1637 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1637)) __PYX_ERR(3, 2704, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1637); + __Pyx_GIVEREF(__pyx_tuple__1637); + + /* "talib/_stream.pxi":2709 + * low_data = 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__1638 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__1638)) __PYX_ERR(3, 2709, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1638); + __Pyx_GIVEREF(__pyx_tuple__1638); + + /* "talib/_stream.pxi":2711 + * raise 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__1639 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1639)) __PYX_ERR(3, 2711, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1639); + __Pyx_GIVEREF(__pyx_tuple__1639); + + /* "talib/_stream.pxi":2717 + * 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__1640 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1640)) __PYX_ERR(3, 2717, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1640); + __Pyx_GIVEREF(__pyx_tuple__1640); + + /* "talib/_stream.pxi":2719 + * 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__1641 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1641)) __PYX_ERR(3, 2719, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1641); + __Pyx_GIVEREF(__pyx_tuple__1641); + + /* "talib/_stream.pxi":2721 + * 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__1642 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1642)) __PYX_ERR(3, 2721, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1642); + __Pyx_GIVEREF(__pyx_tuple__1642); + + /* "talib/_stream.pxi":2752 + * 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__1643 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__1643)) __PYX_ERR(3, 2752, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1643); + __Pyx_GIVEREF(__pyx_tuple__1643); + + /* "talib/_stream.pxi":2754 + * 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__1644 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1644)) __PYX_ERR(3, 2754, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1644); + __Pyx_GIVEREF(__pyx_tuple__1644); + + /* "talib/_stream.pxi":2759 + * open_data = 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__1645 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__1645)) __PYX_ERR(3, 2759, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1645); + __Pyx_GIVEREF(__pyx_tuple__1645); + + /* "talib/_stream.pxi":2761 + * raise 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__1646 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1646)) __PYX_ERR(3, 2761, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1646); + __Pyx_GIVEREF(__pyx_tuple__1646); + + /* "talib/_stream.pxi":2766 + * high_data = 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__1647 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__1647)) __PYX_ERR(3, 2766, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1647); + __Pyx_GIVEREF(__pyx_tuple__1647); + + /* "talib/_stream.pxi":2768 + * raise 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__1648 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1648)) __PYX_ERR(3, 2768, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1648); + __Pyx_GIVEREF(__pyx_tuple__1648); + + /* "talib/_stream.pxi":2773 + * low_data = 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__1649 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__1649)) __PYX_ERR(3, 2773, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1649); + __Pyx_GIVEREF(__pyx_tuple__1649); + + /* "talib/_stream.pxi":2775 + * raise 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__1650 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1650)) __PYX_ERR(3, 2775, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1650); + __Pyx_GIVEREF(__pyx_tuple__1650); + + /* "talib/_stream.pxi":2781 + * 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__1651 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1651)) __PYX_ERR(3, 2781, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1651); + __Pyx_GIVEREF(__pyx_tuple__1651); + + /* "talib/_stream.pxi":2783 + * 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__1652 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1652)) __PYX_ERR(3, 2783, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1652); + __Pyx_GIVEREF(__pyx_tuple__1652); + + /* "talib/_stream.pxi":2785 + * 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__1653 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1653)) __PYX_ERR(3, 2785, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1653); + __Pyx_GIVEREF(__pyx_tuple__1653); + + /* "talib/_stream.pxi":2816 + * 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__1654 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__1654)) __PYX_ERR(3, 2816, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1654); + __Pyx_GIVEREF(__pyx_tuple__1654); + + /* "talib/_stream.pxi":2818 + * 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__1655 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1655)) __PYX_ERR(3, 2818, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1655); + __Pyx_GIVEREF(__pyx_tuple__1655); + + /* "talib/_stream.pxi":2823 + * open_data = 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__1656 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__1656)) __PYX_ERR(3, 2823, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1656); + __Pyx_GIVEREF(__pyx_tuple__1656); + + /* "talib/_stream.pxi":2825 + * raise 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__1657 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1657)) __PYX_ERR(3, 2825, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1657); + __Pyx_GIVEREF(__pyx_tuple__1657); + + /* "talib/_stream.pxi":2830 + * high_data = 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__1658 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__1658)) __PYX_ERR(3, 2830, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1658); + __Pyx_GIVEREF(__pyx_tuple__1658); + + /* "talib/_stream.pxi":2832 + * raise 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__1659 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1659)) __PYX_ERR(3, 2832, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1659); + __Pyx_GIVEREF(__pyx_tuple__1659); + + /* "talib/_stream.pxi":2837 + * low_data = 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__1660 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__1660)) __PYX_ERR(3, 2837, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1660); + __Pyx_GIVEREF(__pyx_tuple__1660); + + /* "talib/_stream.pxi":2839 + * raise 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__1661 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1661)) __PYX_ERR(3, 2839, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1661); + __Pyx_GIVEREF(__pyx_tuple__1661); + + /* "talib/_stream.pxi":2845 + * 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__1662 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1662)) __PYX_ERR(3, 2845, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1662); + __Pyx_GIVEREF(__pyx_tuple__1662); + + /* "talib/_stream.pxi":2847 + * 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__1663 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1663)) __PYX_ERR(3, 2847, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1663); + __Pyx_GIVEREF(__pyx_tuple__1663); + + /* "talib/_stream.pxi":2849 + * 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__1664 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1664)) __PYX_ERR(3, 2849, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1664); + __Pyx_GIVEREF(__pyx_tuple__1664); + + /* "talib/_stream.pxi":2880 + * 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__1665 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__1665)) __PYX_ERR(3, 2880, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1665); + __Pyx_GIVEREF(__pyx_tuple__1665); + + /* "talib/_stream.pxi":2882 + * 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__1666 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1666)) __PYX_ERR(3, 2882, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1666); + __Pyx_GIVEREF(__pyx_tuple__1666); + + /* "talib/_stream.pxi":2887 + * open_data = 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__1667 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__1667)) __PYX_ERR(3, 2887, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1667); + __Pyx_GIVEREF(__pyx_tuple__1667); + + /* "talib/_stream.pxi":2889 + * raise 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__1668 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1668)) __PYX_ERR(3, 2889, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1668); + __Pyx_GIVEREF(__pyx_tuple__1668); + + /* "talib/_stream.pxi":2894 + * high_data = 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__1669 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__1669)) __PYX_ERR(3, 2894, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1669); + __Pyx_GIVEREF(__pyx_tuple__1669); + + /* "talib/_stream.pxi":2896 + * raise 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__1670 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1670)) __PYX_ERR(3, 2896, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1670); + __Pyx_GIVEREF(__pyx_tuple__1670); + + /* "talib/_stream.pxi":2901 + * low_data = 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__1671 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__1671)) __PYX_ERR(3, 2901, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1671); + __Pyx_GIVEREF(__pyx_tuple__1671); + + /* "talib/_stream.pxi":2903 + * raise 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__1672 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1672)) __PYX_ERR(3, 2903, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1672); + __Pyx_GIVEREF(__pyx_tuple__1672); + + /* "talib/_stream.pxi":2909 + * 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__1673 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1673)) __PYX_ERR(3, 2909, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1673); + __Pyx_GIVEREF(__pyx_tuple__1673); + + /* "talib/_stream.pxi":2911 + * 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__1674 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1674)) __PYX_ERR(3, 2911, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1674); + __Pyx_GIVEREF(__pyx_tuple__1674); + + /* "talib/_stream.pxi":2913 + * 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__1675 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1675)) __PYX_ERR(3, 2913, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1675); + __Pyx_GIVEREF(__pyx_tuple__1675); + + /* "talib/_stream.pxi":2944 + * 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__1676 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__1676)) __PYX_ERR(3, 2944, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1676); + __Pyx_GIVEREF(__pyx_tuple__1676); + + /* "talib/_stream.pxi":2946 + * 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__1677 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1677)) __PYX_ERR(3, 2946, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1677); + __Pyx_GIVEREF(__pyx_tuple__1677); + + /* "talib/_stream.pxi":2951 + * open_data = 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__1678 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__1678)) __PYX_ERR(3, 2951, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1678); + __Pyx_GIVEREF(__pyx_tuple__1678); + + /* "talib/_stream.pxi":2953 + * raise 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__1679 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1679)) __PYX_ERR(3, 2953, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1679); + __Pyx_GIVEREF(__pyx_tuple__1679); + + /* "talib/_stream.pxi":2958 + * high_data = 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__1680 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__1680)) __PYX_ERR(3, 2958, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1680); + __Pyx_GIVEREF(__pyx_tuple__1680); + + /* "talib/_stream.pxi":2960 + * raise 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__1681 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1681)) __PYX_ERR(3, 2960, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1681); + __Pyx_GIVEREF(__pyx_tuple__1681); + + /* "talib/_stream.pxi":2965 + * low_data = 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__1682 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__1682)) __PYX_ERR(3, 2965, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1682); + __Pyx_GIVEREF(__pyx_tuple__1682); + + /* "talib/_stream.pxi":2967 + * raise 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__1683 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1683)) __PYX_ERR(3, 2967, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1683); + __Pyx_GIVEREF(__pyx_tuple__1683); + + /* "talib/_stream.pxi":2973 + * 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__1684 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1684)) __PYX_ERR(3, 2973, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1684); + __Pyx_GIVEREF(__pyx_tuple__1684); + + /* "talib/_stream.pxi":2975 + * 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__1685 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1685)) __PYX_ERR(3, 2975, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1685); + __Pyx_GIVEREF(__pyx_tuple__1685); + + /* "talib/_stream.pxi":2977 + * 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__1686 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1686)) __PYX_ERR(3, 2977, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1686); + __Pyx_GIVEREF(__pyx_tuple__1686); + + /* "talib/_stream.pxi":3008 + * 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__1687 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__1687)) __PYX_ERR(3, 3008, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1687); + __Pyx_GIVEREF(__pyx_tuple__1687); + + /* "talib/_stream.pxi":3010 + * 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__1688 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1688)) __PYX_ERR(3, 3010, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1688); + __Pyx_GIVEREF(__pyx_tuple__1688); + + /* "talib/_stream.pxi":3015 + * open_data = 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__1689 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__1689)) __PYX_ERR(3, 3015, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1689); + __Pyx_GIVEREF(__pyx_tuple__1689); + + /* "talib/_stream.pxi":3017 + * raise 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__1690 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1690)) __PYX_ERR(3, 3017, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1690); + __Pyx_GIVEREF(__pyx_tuple__1690); + + /* "talib/_stream.pxi":3022 + * high_data = 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__1691 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__1691)) __PYX_ERR(3, 3022, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1691); + __Pyx_GIVEREF(__pyx_tuple__1691); + + /* "talib/_stream.pxi":3024 + * raise 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__1692 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1692)) __PYX_ERR(3, 3024, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1692); + __Pyx_GIVEREF(__pyx_tuple__1692); + + /* "talib/_stream.pxi":3029 + * low_data = 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__1693 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__1693)) __PYX_ERR(3, 3029, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1693); + __Pyx_GIVEREF(__pyx_tuple__1693); + + /* "talib/_stream.pxi":3031 + * raise 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__1694 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1694)) __PYX_ERR(3, 3031, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1694); + __Pyx_GIVEREF(__pyx_tuple__1694); + + /* "talib/_stream.pxi":3037 + * 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__1695 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1695)) __PYX_ERR(3, 3037, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1695); + __Pyx_GIVEREF(__pyx_tuple__1695); + + /* "talib/_stream.pxi":3039 + * 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__1696 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1696)) __PYX_ERR(3, 3039, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1696); + __Pyx_GIVEREF(__pyx_tuple__1696); + + /* "talib/_stream.pxi":3041 + * 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__1697 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1697)) __PYX_ERR(3, 3041, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1697); + __Pyx_GIVEREF(__pyx_tuple__1697); + + /* "talib/_stream.pxi":3072 + * 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__1698 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__1698)) __PYX_ERR(3, 3072, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1698); + __Pyx_GIVEREF(__pyx_tuple__1698); + + /* "talib/_stream.pxi":3074 + * 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__1699 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1699)) __PYX_ERR(3, 3074, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1699); + __Pyx_GIVEREF(__pyx_tuple__1699); + + /* "talib/_stream.pxi":3079 + * open_data = 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__1700 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__1700)) __PYX_ERR(3, 3079, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1700); + __Pyx_GIVEREF(__pyx_tuple__1700); + + /* "talib/_stream.pxi":3081 + * raise 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__1701 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1701)) __PYX_ERR(3, 3081, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1701); + __Pyx_GIVEREF(__pyx_tuple__1701); + + /* "talib/_stream.pxi":3086 + * high_data = 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__1702 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__1702)) __PYX_ERR(3, 3086, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1702); + __Pyx_GIVEREF(__pyx_tuple__1702); + + /* "talib/_stream.pxi":3088 + * raise 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__1703 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1703)) __PYX_ERR(3, 3088, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1703); + __Pyx_GIVEREF(__pyx_tuple__1703); + + /* "talib/_stream.pxi":3093 + * low_data = 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__1704 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__1704)) __PYX_ERR(3, 3093, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1704); + __Pyx_GIVEREF(__pyx_tuple__1704); + + /* "talib/_stream.pxi":3095 + * raise 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__1705 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1705)) __PYX_ERR(3, 3095, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1705); + __Pyx_GIVEREF(__pyx_tuple__1705); + + /* "talib/_stream.pxi":3101 + * 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__1706 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1706)) __PYX_ERR(3, 3101, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1706); + __Pyx_GIVEREF(__pyx_tuple__1706); + + /* "talib/_stream.pxi":3103 + * 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__1707 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1707)) __PYX_ERR(3, 3103, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1707); + __Pyx_GIVEREF(__pyx_tuple__1707); + + /* "talib/_stream.pxi":3105 + * 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__1708 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1708)) __PYX_ERR(3, 3105, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1708); + __Pyx_GIVEREF(__pyx_tuple__1708); + + /* "talib/_stream.pxi":3136 + * 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__1709 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__1709)) __PYX_ERR(3, 3136, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1709); + __Pyx_GIVEREF(__pyx_tuple__1709); + + /* "talib/_stream.pxi":3138 + * 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__1710 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1710)) __PYX_ERR(3, 3138, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1710); + __Pyx_GIVEREF(__pyx_tuple__1710); + + /* "talib/_stream.pxi":3143 + * open_data = 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__1711 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__1711)) __PYX_ERR(3, 3143, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1711); + __Pyx_GIVEREF(__pyx_tuple__1711); + + /* "talib/_stream.pxi":3145 + * raise 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__1712 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1712)) __PYX_ERR(3, 3145, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1712); + __Pyx_GIVEREF(__pyx_tuple__1712); + + /* "talib/_stream.pxi":3150 + * high_data = 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__1713 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__1713)) __PYX_ERR(3, 3150, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1713); + __Pyx_GIVEREF(__pyx_tuple__1713); + + /* "talib/_stream.pxi":3152 + * raise 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__1714 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1714)) __PYX_ERR(3, 3152, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1714); + __Pyx_GIVEREF(__pyx_tuple__1714); + + /* "talib/_stream.pxi":3157 + * low_data = 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__1715 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__1715)) __PYX_ERR(3, 3157, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1715); + __Pyx_GIVEREF(__pyx_tuple__1715); + + /* "talib/_stream.pxi":3159 + * raise 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__1716 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1716)) __PYX_ERR(3, 3159, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1716); + __Pyx_GIVEREF(__pyx_tuple__1716); + + /* "talib/_stream.pxi":3165 + * 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__1717 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1717)) __PYX_ERR(3, 3165, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1717); + __Pyx_GIVEREF(__pyx_tuple__1717); + + /* "talib/_stream.pxi":3167 + * 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__1718 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1718)) __PYX_ERR(3, 3167, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1718); + __Pyx_GIVEREF(__pyx_tuple__1718); + + /* "talib/_stream.pxi":3169 + * 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__1719 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1719)) __PYX_ERR(3, 3169, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1719); + __Pyx_GIVEREF(__pyx_tuple__1719); + + /* "talib/_stream.pxi":3200 + * 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__1720 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__1720)) __PYX_ERR(3, 3200, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1720); + __Pyx_GIVEREF(__pyx_tuple__1720); + + /* "talib/_stream.pxi":3202 + * 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__1721 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1721)) __PYX_ERR(3, 3202, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1721); + __Pyx_GIVEREF(__pyx_tuple__1721); + + /* "talib/_stream.pxi":3207 + * open_data = 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__1722 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__1722)) __PYX_ERR(3, 3207, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1722); + __Pyx_GIVEREF(__pyx_tuple__1722); + + /* "talib/_stream.pxi":3209 + * raise 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__1723 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1723)) __PYX_ERR(3, 3209, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1723); + __Pyx_GIVEREF(__pyx_tuple__1723); + + /* "talib/_stream.pxi":3214 + * high_data = 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__1724 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__1724)) __PYX_ERR(3, 3214, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1724); + __Pyx_GIVEREF(__pyx_tuple__1724); + + /* "talib/_stream.pxi":3216 + * raise 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__1725 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1725)) __PYX_ERR(3, 3216, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1725); + __Pyx_GIVEREF(__pyx_tuple__1725); + + /* "talib/_stream.pxi":3221 + * low_data = 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__1726 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__1726)) __PYX_ERR(3, 3221, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1726); + __Pyx_GIVEREF(__pyx_tuple__1726); + + /* "talib/_stream.pxi":3223 + * raise 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__1727 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1727)) __PYX_ERR(3, 3223, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1727); + __Pyx_GIVEREF(__pyx_tuple__1727); + + /* "talib/_stream.pxi":3229 + * 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__1728 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1728)) __PYX_ERR(3, 3229, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1728); + __Pyx_GIVEREF(__pyx_tuple__1728); + + /* "talib/_stream.pxi":3231 + * 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__1729 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1729)) __PYX_ERR(3, 3231, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1729); + __Pyx_GIVEREF(__pyx_tuple__1729); + + /* "talib/_stream.pxi":3233 + * 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__1730 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1730)) __PYX_ERR(3, 3233, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1730); + __Pyx_GIVEREF(__pyx_tuple__1730); + + /* "talib/_stream.pxi":3264 + * 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__1731 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__1731)) __PYX_ERR(3, 3264, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1731); + __Pyx_GIVEREF(__pyx_tuple__1731); + + /* "talib/_stream.pxi":3266 + * 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__1732 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1732)) __PYX_ERR(3, 3266, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1732); + __Pyx_GIVEREF(__pyx_tuple__1732); + + /* "talib/_stream.pxi":3271 + * open_data = 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__1733 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__1733)) __PYX_ERR(3, 3271, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1733); + __Pyx_GIVEREF(__pyx_tuple__1733); + + /* "talib/_stream.pxi":3273 + * raise 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__1734 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1734)) __PYX_ERR(3, 3273, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1734); + __Pyx_GIVEREF(__pyx_tuple__1734); + + /* "talib/_stream.pxi":3278 + * high_data = 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__1735 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__1735)) __PYX_ERR(3, 3278, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1735); + __Pyx_GIVEREF(__pyx_tuple__1735); + + /* "talib/_stream.pxi":3280 + * raise 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__1736 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1736)) __PYX_ERR(3, 3280, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1736); + __Pyx_GIVEREF(__pyx_tuple__1736); + + /* "talib/_stream.pxi":3285 + * low_data = 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__1737 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__1737)) __PYX_ERR(3, 3285, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1737); + __Pyx_GIVEREF(__pyx_tuple__1737); + + /* "talib/_stream.pxi":3287 + * raise 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__1738 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1738)) __PYX_ERR(3, 3287, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1738); + __Pyx_GIVEREF(__pyx_tuple__1738); + + /* "talib/_stream.pxi":3293 + * 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__1739 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1739)) __PYX_ERR(3, 3293, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1739); + __Pyx_GIVEREF(__pyx_tuple__1739); + + /* "talib/_stream.pxi":3295 + * 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__1740 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1740)) __PYX_ERR(3, 3295, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1740); + __Pyx_GIVEREF(__pyx_tuple__1740); + + /* "talib/_stream.pxi":3297 + * 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__1741 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1741)) __PYX_ERR(3, 3297, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1741); + __Pyx_GIVEREF(__pyx_tuple__1741); + + /* "talib/_stream.pxi":3328 + * 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__1742 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__1742)) __PYX_ERR(3, 3328, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1742); + __Pyx_GIVEREF(__pyx_tuple__1742); + + /* "talib/_stream.pxi":3330 + * 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__1743 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1743)) __PYX_ERR(3, 3330, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1743); + __Pyx_GIVEREF(__pyx_tuple__1743); + + /* "talib/_stream.pxi":3335 + * open_data = 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__1744 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__1744)) __PYX_ERR(3, 3335, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1744); + __Pyx_GIVEREF(__pyx_tuple__1744); + + /* "talib/_stream.pxi":3337 + * raise 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__1745 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1745)) __PYX_ERR(3, 3337, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1745); + __Pyx_GIVEREF(__pyx_tuple__1745); + + /* "talib/_stream.pxi":3342 + * high_data = 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__1746 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__1746)) __PYX_ERR(3, 3342, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1746); + __Pyx_GIVEREF(__pyx_tuple__1746); + + /* "talib/_stream.pxi":3344 + * raise 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__1747 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1747)) __PYX_ERR(3, 3344, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1747); + __Pyx_GIVEREF(__pyx_tuple__1747); + + /* "talib/_stream.pxi":3349 + * low_data = 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__1748 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__1748)) __PYX_ERR(3, 3349, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1748); + __Pyx_GIVEREF(__pyx_tuple__1748); + + /* "talib/_stream.pxi":3351 + * raise 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__1749 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1749)) __PYX_ERR(3, 3351, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1749); + __Pyx_GIVEREF(__pyx_tuple__1749); + + /* "talib/_stream.pxi":3357 + * 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__1750 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1750)) __PYX_ERR(3, 3357, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1750); + __Pyx_GIVEREF(__pyx_tuple__1750); + + /* "talib/_stream.pxi":3359 + * 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__1751 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1751)) __PYX_ERR(3, 3359, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1751); + __Pyx_GIVEREF(__pyx_tuple__1751); + + /* "talib/_stream.pxi":3361 + * 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__1752 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1752)) __PYX_ERR(3, 3361, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1752); + __Pyx_GIVEREF(__pyx_tuple__1752); + + /* "talib/_stream.pxi":3392 + * 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__1753 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__1753)) __PYX_ERR(3, 3392, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1753); + __Pyx_GIVEREF(__pyx_tuple__1753); + + /* "talib/_stream.pxi":3394 + * 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__1754 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1754)) __PYX_ERR(3, 3394, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1754); + __Pyx_GIVEREF(__pyx_tuple__1754); + + /* "talib/_stream.pxi":3399 + * open_data = 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__1755 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__1755)) __PYX_ERR(3, 3399, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1755); + __Pyx_GIVEREF(__pyx_tuple__1755); + + /* "talib/_stream.pxi":3401 + * raise 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__1756 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1756)) __PYX_ERR(3, 3401, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1756); + __Pyx_GIVEREF(__pyx_tuple__1756); + + /* "talib/_stream.pxi":3406 + * high_data = 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__1757 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__1757)) __PYX_ERR(3, 3406, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1757); + __Pyx_GIVEREF(__pyx_tuple__1757); + + /* "talib/_stream.pxi":3408 + * raise 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__1758 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1758)) __PYX_ERR(3, 3408, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1758); + __Pyx_GIVEREF(__pyx_tuple__1758); + + /* "talib/_stream.pxi":3413 + * low_data = 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__1759 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__1759)) __PYX_ERR(3, 3413, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1759); + __Pyx_GIVEREF(__pyx_tuple__1759); + + /* "talib/_stream.pxi":3415 + * raise 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__1760 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1760)) __PYX_ERR(3, 3415, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1760); + __Pyx_GIVEREF(__pyx_tuple__1760); + + /* "talib/_stream.pxi":3421 + * 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__1761 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1761)) __PYX_ERR(3, 3421, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1761); + __Pyx_GIVEREF(__pyx_tuple__1761); + + /* "talib/_stream.pxi":3423 + * 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__1762 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1762)) __PYX_ERR(3, 3423, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1762); + __Pyx_GIVEREF(__pyx_tuple__1762); + + /* "talib/_stream.pxi":3425 + * 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__1763 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1763)) __PYX_ERR(3, 3425, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1763); + __Pyx_GIVEREF(__pyx_tuple__1763); + + /* "talib/_stream.pxi":3456 + * 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__1764 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__1764)) __PYX_ERR(3, 3456, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1764); + __Pyx_GIVEREF(__pyx_tuple__1764); + + /* "talib/_stream.pxi":3458 + * 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__1765 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1765)) __PYX_ERR(3, 3458, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1765); + __Pyx_GIVEREF(__pyx_tuple__1765); + + /* "talib/_stream.pxi":3463 + * open_data = 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__1766 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__1766)) __PYX_ERR(3, 3463, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1766); + __Pyx_GIVEREF(__pyx_tuple__1766); + + /* "talib/_stream.pxi":3465 + * raise 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__1767 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1767)) __PYX_ERR(3, 3465, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1767); + __Pyx_GIVEREF(__pyx_tuple__1767); + + /* "talib/_stream.pxi":3470 + * high_data = 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__1768 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__1768)) __PYX_ERR(3, 3470, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1768); + __Pyx_GIVEREF(__pyx_tuple__1768); + + /* "talib/_stream.pxi":3472 + * raise 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__1769 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1769)) __PYX_ERR(3, 3472, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1769); + __Pyx_GIVEREF(__pyx_tuple__1769); + + /* "talib/_stream.pxi":3477 + * low_data = 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__1770 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__1770)) __PYX_ERR(3, 3477, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1770); + __Pyx_GIVEREF(__pyx_tuple__1770); + + /* "talib/_stream.pxi":3479 + * raise 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__1771 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1771)) __PYX_ERR(3, 3479, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1771); + __Pyx_GIVEREF(__pyx_tuple__1771); + + /* "talib/_stream.pxi":3485 + * 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__1772 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1772)) __PYX_ERR(3, 3485, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1772); + __Pyx_GIVEREF(__pyx_tuple__1772); + + /* "talib/_stream.pxi":3487 + * 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__1773 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1773)) __PYX_ERR(3, 3487, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1773); + __Pyx_GIVEREF(__pyx_tuple__1773); + + /* "talib/_stream.pxi":3489 + * 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__1774 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1774)) __PYX_ERR(3, 3489, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1774); + __Pyx_GIVEREF(__pyx_tuple__1774); + + /* "talib/_stream.pxi":3522 + * 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__1775 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__1775)) __PYX_ERR(3, 3522, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1775); + __Pyx_GIVEREF(__pyx_tuple__1775); + + /* "talib/_stream.pxi":3524 + * 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__1776 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1776)) __PYX_ERR(3, 3524, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1776); + __Pyx_GIVEREF(__pyx_tuple__1776); + + /* "talib/_stream.pxi":3529 + * open_data = 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__1777 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__1777)) __PYX_ERR(3, 3529, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1777); + __Pyx_GIVEREF(__pyx_tuple__1777); + + /* "talib/_stream.pxi":3531 + * raise 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__1778 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1778)) __PYX_ERR(3, 3531, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1778); + __Pyx_GIVEREF(__pyx_tuple__1778); + + /* "talib/_stream.pxi":3536 + * high_data = 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__1779 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__1779)) __PYX_ERR(3, 3536, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1779); + __Pyx_GIVEREF(__pyx_tuple__1779); + + /* "talib/_stream.pxi":3538 + * raise 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__1780 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1780)) __PYX_ERR(3, 3538, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1780); + __Pyx_GIVEREF(__pyx_tuple__1780); + + /* "talib/_stream.pxi":3543 + * low_data = 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__1781 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__1781)) __PYX_ERR(3, 3543, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1781); + __Pyx_GIVEREF(__pyx_tuple__1781); + + /* "talib/_stream.pxi":3545 + * raise 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__1782 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1782)) __PYX_ERR(3, 3545, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1782); + __Pyx_GIVEREF(__pyx_tuple__1782); + + /* "talib/_stream.pxi":3551 + * 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__1783 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1783)) __PYX_ERR(3, 3551, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1783); + __Pyx_GIVEREF(__pyx_tuple__1783); + + /* "talib/_stream.pxi":3553 + * 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__1784 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1784)) __PYX_ERR(3, 3553, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1784); + __Pyx_GIVEREF(__pyx_tuple__1784); + + /* "talib/_stream.pxi":3555 + * 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__1785 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1785)) __PYX_ERR(3, 3555, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1785); + __Pyx_GIVEREF(__pyx_tuple__1785); + + /* "talib/_stream.pxi":3588 + * 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__1786 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__1786)) __PYX_ERR(3, 3588, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1786); + __Pyx_GIVEREF(__pyx_tuple__1786); + + /* "talib/_stream.pxi":3590 + * 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__1787 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1787)) __PYX_ERR(3, 3590, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1787); + __Pyx_GIVEREF(__pyx_tuple__1787); + + /* "talib/_stream.pxi":3595 + * open_data = 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__1788 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__1788)) __PYX_ERR(3, 3595, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1788); + __Pyx_GIVEREF(__pyx_tuple__1788); + + /* "talib/_stream.pxi":3597 + * raise 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__1789 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1789)) __PYX_ERR(3, 3597, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1789); + __Pyx_GIVEREF(__pyx_tuple__1789); + + /* "talib/_stream.pxi":3602 + * high_data = 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__1790 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__1790)) __PYX_ERR(3, 3602, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1790); + __Pyx_GIVEREF(__pyx_tuple__1790); + + /* "talib/_stream.pxi":3604 + * raise 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__1791 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1791)) __PYX_ERR(3, 3604, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1791); + __Pyx_GIVEREF(__pyx_tuple__1791); + + /* "talib/_stream.pxi":3609 + * low_data = 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__1792 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__1792)) __PYX_ERR(3, 3609, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1792); + __Pyx_GIVEREF(__pyx_tuple__1792); + + /* "talib/_stream.pxi":3611 + * raise 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__1793 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1793)) __PYX_ERR(3, 3611, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1793); + __Pyx_GIVEREF(__pyx_tuple__1793); + + /* "talib/_stream.pxi":3617 + * 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__1794 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1794)) __PYX_ERR(3, 3617, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1794); + __Pyx_GIVEREF(__pyx_tuple__1794); + + /* "talib/_stream.pxi":3619 + * 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__1795 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1795)) __PYX_ERR(3, 3619, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1795); + __Pyx_GIVEREF(__pyx_tuple__1795); + + /* "talib/_stream.pxi":3621 + * 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__1796 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1796)) __PYX_ERR(3, 3621, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1796); + __Pyx_GIVEREF(__pyx_tuple__1796); + + /* "talib/_stream.pxi":3654 + * 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__1797 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__1797)) __PYX_ERR(3, 3654, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1797); + __Pyx_GIVEREF(__pyx_tuple__1797); + + /* "talib/_stream.pxi":3656 + * 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__1798 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1798)) __PYX_ERR(3, 3656, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1798); + __Pyx_GIVEREF(__pyx_tuple__1798); + + /* "talib/_stream.pxi":3661 + * open_data = 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__1799 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__1799)) __PYX_ERR(3, 3661, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1799); + __Pyx_GIVEREF(__pyx_tuple__1799); + + /* "talib/_stream.pxi":3663 + * raise 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__1800 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1800)) __PYX_ERR(3, 3663, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1800); + __Pyx_GIVEREF(__pyx_tuple__1800); + + /* "talib/_stream.pxi":3668 + * high_data = 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__1801 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__1801)) __PYX_ERR(3, 3668, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1801); + __Pyx_GIVEREF(__pyx_tuple__1801); + + /* "talib/_stream.pxi":3670 + * raise 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__1802 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1802)) __PYX_ERR(3, 3670, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1802); + __Pyx_GIVEREF(__pyx_tuple__1802); + + /* "talib/_stream.pxi":3675 + * low_data = 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__1803 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__1803)) __PYX_ERR(3, 3675, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1803); + __Pyx_GIVEREF(__pyx_tuple__1803); + + /* "talib/_stream.pxi":3677 + * raise 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__1804 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1804)) __PYX_ERR(3, 3677, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1804); + __Pyx_GIVEREF(__pyx_tuple__1804); + + /* "talib/_stream.pxi":3683 + * 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__1805 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1805)) __PYX_ERR(3, 3683, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1805); + __Pyx_GIVEREF(__pyx_tuple__1805); + + /* "talib/_stream.pxi":3685 + * 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__1806 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1806)) __PYX_ERR(3, 3685, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1806); + __Pyx_GIVEREF(__pyx_tuple__1806); + + /* "talib/_stream.pxi":3687 + * 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__1807 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1807)) __PYX_ERR(3, 3687, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1807); + __Pyx_GIVEREF(__pyx_tuple__1807); + + /* "talib/_stream.pxi":3718 + * 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__1808 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__1808)) __PYX_ERR(3, 3718, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1808); + __Pyx_GIVEREF(__pyx_tuple__1808); + + /* "talib/_stream.pxi":3720 + * 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__1809 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1809)) __PYX_ERR(3, 3720, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1809); + __Pyx_GIVEREF(__pyx_tuple__1809); + + /* "talib/_stream.pxi":3725 + * open_data = 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__1810 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__1810)) __PYX_ERR(3, 3725, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1810); + __Pyx_GIVEREF(__pyx_tuple__1810); + + /* "talib/_stream.pxi":3727 + * raise 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__1811 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1811)) __PYX_ERR(3, 3727, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1811); + __Pyx_GIVEREF(__pyx_tuple__1811); + + /* "talib/_stream.pxi":3732 + * high_data = 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__1812 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__1812)) __PYX_ERR(3, 3732, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1812); + __Pyx_GIVEREF(__pyx_tuple__1812); + + /* "talib/_stream.pxi":3734 + * raise 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__1813 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1813)) __PYX_ERR(3, 3734, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1813); + __Pyx_GIVEREF(__pyx_tuple__1813); + + /* "talib/_stream.pxi":3739 + * low_data = 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__1814 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__1814)) __PYX_ERR(3, 3739, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1814); + __Pyx_GIVEREF(__pyx_tuple__1814); + + /* "talib/_stream.pxi":3741 + * raise 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__1815 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1815)) __PYX_ERR(3, 3741, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1815); + __Pyx_GIVEREF(__pyx_tuple__1815); + + /* "talib/_stream.pxi":3747 + * 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__1816 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1816)) __PYX_ERR(3, 3747, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1816); + __Pyx_GIVEREF(__pyx_tuple__1816); + + /* "talib/_stream.pxi":3749 + * 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__1817 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1817)) __PYX_ERR(3, 3749, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1817); + __Pyx_GIVEREF(__pyx_tuple__1817); + + /* "talib/_stream.pxi":3751 + * 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__1818 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1818)) __PYX_ERR(3, 3751, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1818); + __Pyx_GIVEREF(__pyx_tuple__1818); + + /* "talib/_stream.pxi":3782 + * 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__1819 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__1819)) __PYX_ERR(3, 3782, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1819); + __Pyx_GIVEREF(__pyx_tuple__1819); + + /* "talib/_stream.pxi":3784 + * 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__1820 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1820)) __PYX_ERR(3, 3784, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1820); + __Pyx_GIVEREF(__pyx_tuple__1820); + + /* "talib/_stream.pxi":3789 + * open_data = 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__1821 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__1821)) __PYX_ERR(3, 3789, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1821); + __Pyx_GIVEREF(__pyx_tuple__1821); + + /* "talib/_stream.pxi":3791 + * raise 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__1822 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1822)) __PYX_ERR(3, 3791, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1822); + __Pyx_GIVEREF(__pyx_tuple__1822); + + /* "talib/_stream.pxi":3796 + * high_data = 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__1823 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__1823)) __PYX_ERR(3, 3796, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1823); + __Pyx_GIVEREF(__pyx_tuple__1823); + + /* "talib/_stream.pxi":3798 + * raise 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__1824 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1824)) __PYX_ERR(3, 3798, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1824); + __Pyx_GIVEREF(__pyx_tuple__1824); + + /* "talib/_stream.pxi":3803 + * low_data = 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__1825 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__1825)) __PYX_ERR(3, 3803, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1825); + __Pyx_GIVEREF(__pyx_tuple__1825); + + /* "talib/_stream.pxi":3805 + * raise 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__1826 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1826)) __PYX_ERR(3, 3805, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1826); + __Pyx_GIVEREF(__pyx_tuple__1826); + + /* "talib/_stream.pxi":3811 + * 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__1827 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1827)) __PYX_ERR(3, 3811, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1827); + __Pyx_GIVEREF(__pyx_tuple__1827); + + /* "talib/_stream.pxi":3813 + * 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__1828 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1828)) __PYX_ERR(3, 3813, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1828); + __Pyx_GIVEREF(__pyx_tuple__1828); + + /* "talib/_stream.pxi":3815 + * 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__1829 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1829)) __PYX_ERR(3, 3815, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1829); + __Pyx_GIVEREF(__pyx_tuple__1829); + + /* "talib/_stream.pxi":3846 + * 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__1830 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__1830)) __PYX_ERR(3, 3846, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1830); + __Pyx_GIVEREF(__pyx_tuple__1830); + + /* "talib/_stream.pxi":3848 + * 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__1831 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1831)) __PYX_ERR(3, 3848, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1831); + __Pyx_GIVEREF(__pyx_tuple__1831); + + /* "talib/_stream.pxi":3853 + * open_data = 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__1832 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__1832)) __PYX_ERR(3, 3853, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1832); + __Pyx_GIVEREF(__pyx_tuple__1832); + + /* "talib/_stream.pxi":3855 + * raise 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__1833 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1833)) __PYX_ERR(3, 3855, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1833); + __Pyx_GIVEREF(__pyx_tuple__1833); + + /* "talib/_stream.pxi":3860 + * high_data = 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__1834 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__1834)) __PYX_ERR(3, 3860, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1834); + __Pyx_GIVEREF(__pyx_tuple__1834); + + /* "talib/_stream.pxi":3862 + * raise 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__1835 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1835)) __PYX_ERR(3, 3862, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1835); + __Pyx_GIVEREF(__pyx_tuple__1835); + + /* "talib/_stream.pxi":3867 + * low_data = 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__1836 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__1836)) __PYX_ERR(3, 3867, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1836); + __Pyx_GIVEREF(__pyx_tuple__1836); + + /* "talib/_stream.pxi":3869 + * raise 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__1837 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1837)) __PYX_ERR(3, 3869, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1837); + __Pyx_GIVEREF(__pyx_tuple__1837); + + /* "talib/_stream.pxi":3875 + * 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__1838 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1838)) __PYX_ERR(3, 3875, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1838); + __Pyx_GIVEREF(__pyx_tuple__1838); + + /* "talib/_stream.pxi":3877 + * 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__1839 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1839)) __PYX_ERR(3, 3877, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1839); + __Pyx_GIVEREF(__pyx_tuple__1839); + + /* "talib/_stream.pxi":3879 + * 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__1840 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1840)) __PYX_ERR(3, 3879, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1840); + __Pyx_GIVEREF(__pyx_tuple__1840); + + /* "talib/_stream.pxi":3910 + * 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__1841 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__1841)) __PYX_ERR(3, 3910, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1841); + __Pyx_GIVEREF(__pyx_tuple__1841); + + /* "talib/_stream.pxi":3912 + * 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__1842 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1842)) __PYX_ERR(3, 3912, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1842); + __Pyx_GIVEREF(__pyx_tuple__1842); + + /* "talib/_stream.pxi":3917 + * open_data = 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__1843 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__1843)) __PYX_ERR(3, 3917, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1843); + __Pyx_GIVEREF(__pyx_tuple__1843); + + /* "talib/_stream.pxi":3919 + * raise 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__1844 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1844)) __PYX_ERR(3, 3919, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1844); + __Pyx_GIVEREF(__pyx_tuple__1844); + + /* "talib/_stream.pxi":3924 + * high_data = 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__1845 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__1845)) __PYX_ERR(3, 3924, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1845); + __Pyx_GIVEREF(__pyx_tuple__1845); + + /* "talib/_stream.pxi":3926 + * raise 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__1846 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1846)) __PYX_ERR(3, 3926, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1846); + __Pyx_GIVEREF(__pyx_tuple__1846); + + /* "talib/_stream.pxi":3931 + * low_data = 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__1847 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__1847)) __PYX_ERR(3, 3931, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1847); + __Pyx_GIVEREF(__pyx_tuple__1847); + + /* "talib/_stream.pxi":3933 + * raise 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__1848 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1848)) __PYX_ERR(3, 3933, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1848); + __Pyx_GIVEREF(__pyx_tuple__1848); + + /* "talib/_stream.pxi":3939 + * 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__1849 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1849)) __PYX_ERR(3, 3939, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1849); + __Pyx_GIVEREF(__pyx_tuple__1849); + + /* "talib/_stream.pxi":3941 + * 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__1850 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1850)) __PYX_ERR(3, 3941, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1850); + __Pyx_GIVEREF(__pyx_tuple__1850); + + /* "talib/_stream.pxi":3943 + * 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__1851 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1851)) __PYX_ERR(3, 3943, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1851); + __Pyx_GIVEREF(__pyx_tuple__1851); + + /* "talib/_stream.pxi":3974 + * 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__1852 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__1852)) __PYX_ERR(3, 3974, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1852); + __Pyx_GIVEREF(__pyx_tuple__1852); + + /* "talib/_stream.pxi":3976 + * 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__1853 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1853)) __PYX_ERR(3, 3976, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1853); + __Pyx_GIVEREF(__pyx_tuple__1853); + + /* "talib/_stream.pxi":3981 + * open_data = 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__1854 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__1854)) __PYX_ERR(3, 3981, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1854); + __Pyx_GIVEREF(__pyx_tuple__1854); + + /* "talib/_stream.pxi":3983 + * raise 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__1855 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1855)) __PYX_ERR(3, 3983, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1855); + __Pyx_GIVEREF(__pyx_tuple__1855); + + /* "talib/_stream.pxi":3988 + * high_data = 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__1856 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__1856)) __PYX_ERR(3, 3988, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1856); + __Pyx_GIVEREF(__pyx_tuple__1856); + + /* "talib/_stream.pxi":3990 + * raise 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__1857 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1857)) __PYX_ERR(3, 3990, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1857); + __Pyx_GIVEREF(__pyx_tuple__1857); + + /* "talib/_stream.pxi":3995 + * low_data = 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__1858 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__1858)) __PYX_ERR(3, 3995, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1858); + __Pyx_GIVEREF(__pyx_tuple__1858); + + /* "talib/_stream.pxi":3997 + * raise 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__1859 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1859)) __PYX_ERR(3, 3997, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1859); + __Pyx_GIVEREF(__pyx_tuple__1859); + + /* "talib/_stream.pxi":4003 + * 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__1860 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1860)) __PYX_ERR(3, 4003, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1860); + __Pyx_GIVEREF(__pyx_tuple__1860); + + /* "talib/_stream.pxi":4005 + * 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__1861 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1861)) __PYX_ERR(3, 4005, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1861); + __Pyx_GIVEREF(__pyx_tuple__1861); + + /* "talib/_stream.pxi":4007 + * 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__1862 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1862)) __PYX_ERR(3, 4007, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1862); + __Pyx_GIVEREF(__pyx_tuple__1862); + + /* "talib/_stream.pxi":4038 + * 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__1863 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__1863)) __PYX_ERR(3, 4038, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1863); + __Pyx_GIVEREF(__pyx_tuple__1863); + + /* "talib/_stream.pxi":4040 + * 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__1864 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1864)) __PYX_ERR(3, 4040, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1864); + __Pyx_GIVEREF(__pyx_tuple__1864); + + /* "talib/_stream.pxi":4045 + * open_data = 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__1865 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__1865)) __PYX_ERR(3, 4045, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1865); + __Pyx_GIVEREF(__pyx_tuple__1865); + + /* "talib/_stream.pxi":4047 + * raise 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__1866 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1866)) __PYX_ERR(3, 4047, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1866); + __Pyx_GIVEREF(__pyx_tuple__1866); + + /* "talib/_stream.pxi":4052 + * high_data = 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__1867 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__1867)) __PYX_ERR(3, 4052, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1867); + __Pyx_GIVEREF(__pyx_tuple__1867); + + /* "talib/_stream.pxi":4054 + * raise 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__1868 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1868)) __PYX_ERR(3, 4054, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1868); + __Pyx_GIVEREF(__pyx_tuple__1868); + + /* "talib/_stream.pxi":4059 + * low_data = 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__1869 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__1869)) __PYX_ERR(3, 4059, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1869); + __Pyx_GIVEREF(__pyx_tuple__1869); + + /* "talib/_stream.pxi":4061 + * raise 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__1870 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1870)) __PYX_ERR(3, 4061, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1870); + __Pyx_GIVEREF(__pyx_tuple__1870); + + /* "talib/_stream.pxi":4067 + * 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__1871 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1871)) __PYX_ERR(3, 4067, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1871); + __Pyx_GIVEREF(__pyx_tuple__1871); + + /* "talib/_stream.pxi":4069 + * 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__1872 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1872)) __PYX_ERR(3, 4069, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1872); + __Pyx_GIVEREF(__pyx_tuple__1872); + + /* "talib/_stream.pxi":4071 + * 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__1873 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1873)) __PYX_ERR(3, 4071, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1873); + __Pyx_GIVEREF(__pyx_tuple__1873); + + /* "talib/_stream.pxi":4102 + * 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__1874 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__1874)) __PYX_ERR(3, 4102, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1874); + __Pyx_GIVEREF(__pyx_tuple__1874); + + /* "talib/_stream.pxi":4104 + * 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__1875 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1875)) __PYX_ERR(3, 4104, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1875); + __Pyx_GIVEREF(__pyx_tuple__1875); + + /* "talib/_stream.pxi":4109 + * open_data = 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__1876 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__1876)) __PYX_ERR(3, 4109, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1876); + __Pyx_GIVEREF(__pyx_tuple__1876); + + /* "talib/_stream.pxi":4111 + * raise 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__1877 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1877)) __PYX_ERR(3, 4111, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1877); + __Pyx_GIVEREF(__pyx_tuple__1877); + + /* "talib/_stream.pxi":4116 + * high_data = 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__1878 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__1878)) __PYX_ERR(3, 4116, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1878); + __Pyx_GIVEREF(__pyx_tuple__1878); + + /* "talib/_stream.pxi":4118 + * raise 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__1879 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1879)) __PYX_ERR(3, 4118, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1879); + __Pyx_GIVEREF(__pyx_tuple__1879); + + /* "talib/_stream.pxi":4123 + * low_data = 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__1880 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__1880)) __PYX_ERR(3, 4123, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1880); + __Pyx_GIVEREF(__pyx_tuple__1880); + + /* "talib/_stream.pxi":4125 + * raise 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__1881 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1881)) __PYX_ERR(3, 4125, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1881); + __Pyx_GIVEREF(__pyx_tuple__1881); + + /* "talib/_stream.pxi":4131 + * 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__1882 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1882)) __PYX_ERR(3, 4131, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1882); + __Pyx_GIVEREF(__pyx_tuple__1882); + + /* "talib/_stream.pxi":4133 + * 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__1883 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1883)) __PYX_ERR(3, 4133, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1883); + __Pyx_GIVEREF(__pyx_tuple__1883); + + /* "talib/_stream.pxi":4135 + * 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__1884 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1884)) __PYX_ERR(3, 4135, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1884); + __Pyx_GIVEREF(__pyx_tuple__1884); + + /* "talib/_stream.pxi":4166 + * 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__1885 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__1885)) __PYX_ERR(3, 4166, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1885); + __Pyx_GIVEREF(__pyx_tuple__1885); + + /* "talib/_stream.pxi":4168 + * 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__1886 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1886)) __PYX_ERR(3, 4168, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1886); + __Pyx_GIVEREF(__pyx_tuple__1886); + + /* "talib/_stream.pxi":4173 + * open_data = 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__1887 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__1887)) __PYX_ERR(3, 4173, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1887); + __Pyx_GIVEREF(__pyx_tuple__1887); + + /* "talib/_stream.pxi":4175 + * raise 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__1888 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1888)) __PYX_ERR(3, 4175, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1888); + __Pyx_GIVEREF(__pyx_tuple__1888); + + /* "talib/_stream.pxi":4180 + * high_data = 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__1889 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__1889)) __PYX_ERR(3, 4180, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1889); + __Pyx_GIVEREF(__pyx_tuple__1889); + + /* "talib/_stream.pxi":4182 + * raise 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__1890 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1890)) __PYX_ERR(3, 4182, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1890); + __Pyx_GIVEREF(__pyx_tuple__1890); + + /* "talib/_stream.pxi":4187 + * low_data = 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__1891 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__1891)) __PYX_ERR(3, 4187, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1891); + __Pyx_GIVEREF(__pyx_tuple__1891); + + /* "talib/_stream.pxi":4189 + * raise 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__1892 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1892)) __PYX_ERR(3, 4189, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1892); + __Pyx_GIVEREF(__pyx_tuple__1892); + + /* "talib/_stream.pxi":4195 + * 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__1893 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1893)) __PYX_ERR(3, 4195, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1893); + __Pyx_GIVEREF(__pyx_tuple__1893); + + /* "talib/_stream.pxi":4197 + * 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__1894 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1894)) __PYX_ERR(3, 4197, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1894); + __Pyx_GIVEREF(__pyx_tuple__1894); + + /* "talib/_stream.pxi":4199 + * 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__1895 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1895)) __PYX_ERR(3, 4199, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1895); + __Pyx_GIVEREF(__pyx_tuple__1895); + + /* "talib/_stream.pxi":4230 + * 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__1896 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__1896)) __PYX_ERR(3, 4230, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1896); + __Pyx_GIVEREF(__pyx_tuple__1896); + + /* "talib/_stream.pxi":4232 + * 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__1897 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1897)) __PYX_ERR(3, 4232, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1897); + __Pyx_GIVEREF(__pyx_tuple__1897); + + /* "talib/_stream.pxi":4237 + * open_data = 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__1898 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__1898)) __PYX_ERR(3, 4237, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1898); + __Pyx_GIVEREF(__pyx_tuple__1898); + + /* "talib/_stream.pxi":4239 + * raise 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__1899 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1899)) __PYX_ERR(3, 4239, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1899); + __Pyx_GIVEREF(__pyx_tuple__1899); + + /* "talib/_stream.pxi":4244 + * high_data = 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__1900 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__1900)) __PYX_ERR(3, 4244, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1900); + __Pyx_GIVEREF(__pyx_tuple__1900); + + /* "talib/_stream.pxi":4246 + * raise 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__1901 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1901)) __PYX_ERR(3, 4246, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1901); + __Pyx_GIVEREF(__pyx_tuple__1901); + + /* "talib/_stream.pxi":4251 + * low_data = 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__1902 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__1902)) __PYX_ERR(3, 4251, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1902); + __Pyx_GIVEREF(__pyx_tuple__1902); + + /* "talib/_stream.pxi":4253 + * raise 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__1903 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1903)) __PYX_ERR(3, 4253, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1903); + __Pyx_GIVEREF(__pyx_tuple__1903); + + /* "talib/_stream.pxi":4259 + * 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__1904 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1904)) __PYX_ERR(3, 4259, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1904); + __Pyx_GIVEREF(__pyx_tuple__1904); + + /* "talib/_stream.pxi":4261 + * 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__1905 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1905)) __PYX_ERR(3, 4261, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1905); + __Pyx_GIVEREF(__pyx_tuple__1905); + + /* "talib/_stream.pxi":4263 + * 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__1906 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1906)) __PYX_ERR(3, 4263, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1906); + __Pyx_GIVEREF(__pyx_tuple__1906); + + /* "talib/_stream.pxi":4294 + * 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__1907 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__1907)) __PYX_ERR(3, 4294, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1907); + __Pyx_GIVEREF(__pyx_tuple__1907); + + /* "talib/_stream.pxi":4296 + * 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__1908 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1908)) __PYX_ERR(3, 4296, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1908); + __Pyx_GIVEREF(__pyx_tuple__1908); + + /* "talib/_stream.pxi":4301 + * open_data = 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__1909 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__1909)) __PYX_ERR(3, 4301, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1909); + __Pyx_GIVEREF(__pyx_tuple__1909); + + /* "talib/_stream.pxi":4303 + * raise 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__1910 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1910)) __PYX_ERR(3, 4303, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1910); + __Pyx_GIVEREF(__pyx_tuple__1910); + + /* "talib/_stream.pxi":4308 + * high_data = 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__1911 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__1911)) __PYX_ERR(3, 4308, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1911); + __Pyx_GIVEREF(__pyx_tuple__1911); + + /* "talib/_stream.pxi":4310 + * raise 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__1912 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1912)) __PYX_ERR(3, 4310, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1912); + __Pyx_GIVEREF(__pyx_tuple__1912); + + /* "talib/_stream.pxi":4315 + * low_data = 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__1913 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__1913)) __PYX_ERR(3, 4315, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1913); + __Pyx_GIVEREF(__pyx_tuple__1913); + + /* "talib/_stream.pxi":4317 + * raise 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__1914 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1914)) __PYX_ERR(3, 4317, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1914); + __Pyx_GIVEREF(__pyx_tuple__1914); + + /* "talib/_stream.pxi":4323 + * 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__1915 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1915)) __PYX_ERR(3, 4323, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1915); + __Pyx_GIVEREF(__pyx_tuple__1915); + + /* "talib/_stream.pxi":4325 + * 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__1916 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1916)) __PYX_ERR(3, 4325, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1916); + __Pyx_GIVEREF(__pyx_tuple__1916); + + /* "talib/_stream.pxi":4327 + * 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__1917 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1917)) __PYX_ERR(3, 4327, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1917); + __Pyx_GIVEREF(__pyx_tuple__1917); + + /* "talib/_stream.pxi":4358 + * 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__1918 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__1918)) __PYX_ERR(3, 4358, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1918); + __Pyx_GIVEREF(__pyx_tuple__1918); + + /* "talib/_stream.pxi":4360 + * 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__1919 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1919)) __PYX_ERR(3, 4360, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1919); + __Pyx_GIVEREF(__pyx_tuple__1919); + + /* "talib/_stream.pxi":4365 + * open_data = 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__1920 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__1920)) __PYX_ERR(3, 4365, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1920); + __Pyx_GIVEREF(__pyx_tuple__1920); + + /* "talib/_stream.pxi":4367 + * raise 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__1921 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1921)) __PYX_ERR(3, 4367, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1921); + __Pyx_GIVEREF(__pyx_tuple__1921); + + /* "talib/_stream.pxi":4372 + * high_data = 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__1922 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__1922)) __PYX_ERR(3, 4372, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1922); + __Pyx_GIVEREF(__pyx_tuple__1922); + + /* "talib/_stream.pxi":4374 + * raise 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__1923 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1923)) __PYX_ERR(3, 4374, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1923); + __Pyx_GIVEREF(__pyx_tuple__1923); + + /* "talib/_stream.pxi":4379 + * low_data = 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__1924 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__1924)) __PYX_ERR(3, 4379, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1924); + __Pyx_GIVEREF(__pyx_tuple__1924); + + /* "talib/_stream.pxi":4381 + * raise 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__1925 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1925)) __PYX_ERR(3, 4381, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1925); + __Pyx_GIVEREF(__pyx_tuple__1925); + + /* "talib/_stream.pxi":4387 + * 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__1926 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1926)) __PYX_ERR(3, 4387, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1926); + __Pyx_GIVEREF(__pyx_tuple__1926); + + /* "talib/_stream.pxi":4389 + * 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__1927 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1927)) __PYX_ERR(3, 4389, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1927); + __Pyx_GIVEREF(__pyx_tuple__1927); + + /* "talib/_stream.pxi":4391 + * 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__1928 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1928)) __PYX_ERR(3, 4391, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1928); + __Pyx_GIVEREF(__pyx_tuple__1928); + + /* "talib/_stream.pxi":4422 + * 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__1929 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__1929)) __PYX_ERR(3, 4422, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1929); + __Pyx_GIVEREF(__pyx_tuple__1929); + + /* "talib/_stream.pxi":4424 + * 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__1930 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1930)) __PYX_ERR(3, 4424, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1930); + __Pyx_GIVEREF(__pyx_tuple__1930); + + /* "talib/_stream.pxi":4429 + * open_data = 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__1931 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__1931)) __PYX_ERR(3, 4429, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1931); + __Pyx_GIVEREF(__pyx_tuple__1931); + + /* "talib/_stream.pxi":4431 + * raise 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__1932 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1932)) __PYX_ERR(3, 4431, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1932); + __Pyx_GIVEREF(__pyx_tuple__1932); + + /* "talib/_stream.pxi":4436 + * high_data = 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__1933 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__1933)) __PYX_ERR(3, 4436, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1933); + __Pyx_GIVEREF(__pyx_tuple__1933); + + /* "talib/_stream.pxi":4438 + * raise 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__1934 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1934)) __PYX_ERR(3, 4438, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1934); + __Pyx_GIVEREF(__pyx_tuple__1934); + + /* "talib/_stream.pxi":4443 + * low_data = 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__1935 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__1935)) __PYX_ERR(3, 4443, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1935); + __Pyx_GIVEREF(__pyx_tuple__1935); + + /* "talib/_stream.pxi":4445 + * raise 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__1936 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1936)) __PYX_ERR(3, 4445, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1936); + __Pyx_GIVEREF(__pyx_tuple__1936); + + /* "talib/_stream.pxi":4451 + * 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__1937 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1937)) __PYX_ERR(3, 4451, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1937); + __Pyx_GIVEREF(__pyx_tuple__1937); + + /* "talib/_stream.pxi":4453 + * 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__1938 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1938)) __PYX_ERR(3, 4453, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1938); + __Pyx_GIVEREF(__pyx_tuple__1938); + + /* "talib/_stream.pxi":4455 + * 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__1939 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1939)) __PYX_ERR(3, 4455, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1939); + __Pyx_GIVEREF(__pyx_tuple__1939); + + /* "talib/_stream.pxi":4486 + * 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__1940 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__1940)) __PYX_ERR(3, 4486, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1940); + __Pyx_GIVEREF(__pyx_tuple__1940); + + /* "talib/_stream.pxi":4488 + * 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__1941 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1941)) __PYX_ERR(3, 4488, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1941); + __Pyx_GIVEREF(__pyx_tuple__1941); + + /* "talib/_stream.pxi":4493 + * open_data = 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__1942 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__1942)) __PYX_ERR(3, 4493, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1942); + __Pyx_GIVEREF(__pyx_tuple__1942); + + /* "talib/_stream.pxi":4495 + * raise 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__1943 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1943)) __PYX_ERR(3, 4495, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1943); + __Pyx_GIVEREF(__pyx_tuple__1943); + + /* "talib/_stream.pxi":4500 + * high_data = 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__1944 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__1944)) __PYX_ERR(3, 4500, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1944); + __Pyx_GIVEREF(__pyx_tuple__1944); + + /* "talib/_stream.pxi":4502 + * raise 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__1945 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1945)) __PYX_ERR(3, 4502, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1945); + __Pyx_GIVEREF(__pyx_tuple__1945); + + /* "talib/_stream.pxi":4507 + * low_data = 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__1946 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__1946)) __PYX_ERR(3, 4507, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1946); + __Pyx_GIVEREF(__pyx_tuple__1946); + + /* "talib/_stream.pxi":4509 + * raise 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__1947 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1947)) __PYX_ERR(3, 4509, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1947); + __Pyx_GIVEREF(__pyx_tuple__1947); + + /* "talib/_stream.pxi":4515 + * 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__1948 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1948)) __PYX_ERR(3, 4515, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1948); + __Pyx_GIVEREF(__pyx_tuple__1948); + + /* "talib/_stream.pxi":4517 + * 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__1949 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1949)) __PYX_ERR(3, 4517, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1949); + __Pyx_GIVEREF(__pyx_tuple__1949); + + /* "talib/_stream.pxi":4519 + * 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__1950 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1950)) __PYX_ERR(3, 4519, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1950); + __Pyx_GIVEREF(__pyx_tuple__1950); + + /* "talib/_stream.pxi":4550 + * 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__1951 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__1951)) __PYX_ERR(3, 4550, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1951); + __Pyx_GIVEREF(__pyx_tuple__1951); + + /* "talib/_stream.pxi":4552 + * 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__1952 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1952)) __PYX_ERR(3, 4552, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1952); + __Pyx_GIVEREF(__pyx_tuple__1952); + + /* "talib/_stream.pxi":4557 + * open_data = 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__1953 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__1953)) __PYX_ERR(3, 4557, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1953); + __Pyx_GIVEREF(__pyx_tuple__1953); + + /* "talib/_stream.pxi":4559 + * raise 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__1954 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1954)) __PYX_ERR(3, 4559, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1954); + __Pyx_GIVEREF(__pyx_tuple__1954); + + /* "talib/_stream.pxi":4564 + * high_data = 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__1955 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__1955)) __PYX_ERR(3, 4564, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1955); + __Pyx_GIVEREF(__pyx_tuple__1955); + + /* "talib/_stream.pxi":4566 + * raise 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__1956 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1956)) __PYX_ERR(3, 4566, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1956); + __Pyx_GIVEREF(__pyx_tuple__1956); + + /* "talib/_stream.pxi":4571 + * low_data = 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__1957 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__1957)) __PYX_ERR(3, 4571, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1957); + __Pyx_GIVEREF(__pyx_tuple__1957); + + /* "talib/_stream.pxi":4573 + * raise 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__1958 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1958)) __PYX_ERR(3, 4573, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1958); + __Pyx_GIVEREF(__pyx_tuple__1958); + + /* "talib/_stream.pxi":4579 + * 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__1959 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1959)) __PYX_ERR(3, 4579, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1959); + __Pyx_GIVEREF(__pyx_tuple__1959); + + /* "talib/_stream.pxi":4581 + * 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__1960 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1960)) __PYX_ERR(3, 4581, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1960); + __Pyx_GIVEREF(__pyx_tuple__1960); + + /* "talib/_stream.pxi":4583 + * 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__1961 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1961)) __PYX_ERR(3, 4583, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1961); + __Pyx_GIVEREF(__pyx_tuple__1961); + + /* "talib/_stream.pxi":4614 + * 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__1962 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__1962)) __PYX_ERR(3, 4614, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1962); + __Pyx_GIVEREF(__pyx_tuple__1962); + + /* "talib/_stream.pxi":4616 + * 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__1963 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1963)) __PYX_ERR(3, 4616, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1963); + __Pyx_GIVEREF(__pyx_tuple__1963); + + /* "talib/_stream.pxi":4621 + * open_data = 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__1964 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__1964)) __PYX_ERR(3, 4621, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1964); + __Pyx_GIVEREF(__pyx_tuple__1964); + + /* "talib/_stream.pxi":4623 + * raise 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__1965 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1965)) __PYX_ERR(3, 4623, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1965); + __Pyx_GIVEREF(__pyx_tuple__1965); + + /* "talib/_stream.pxi":4628 + * high_data = 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__1966 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__1966)) __PYX_ERR(3, 4628, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1966); + __Pyx_GIVEREF(__pyx_tuple__1966); + + /* "talib/_stream.pxi":4630 + * raise 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__1967 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1967)) __PYX_ERR(3, 4630, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1967); + __Pyx_GIVEREF(__pyx_tuple__1967); + + /* "talib/_stream.pxi":4635 + * low_data = 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__1968 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__1968)) __PYX_ERR(3, 4635, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1968); + __Pyx_GIVEREF(__pyx_tuple__1968); + + /* "talib/_stream.pxi":4637 + * raise 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__1969 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1969)) __PYX_ERR(3, 4637, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1969); + __Pyx_GIVEREF(__pyx_tuple__1969); + + /* "talib/_stream.pxi":4643 + * 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__1970 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1970)) __PYX_ERR(3, 4643, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1970); + __Pyx_GIVEREF(__pyx_tuple__1970); + + /* "talib/_stream.pxi":4645 + * 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__1971 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1971)) __PYX_ERR(3, 4645, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1971); + __Pyx_GIVEREF(__pyx_tuple__1971); + + /* "talib/_stream.pxi":4647 + * 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__1972 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1972)) __PYX_ERR(3, 4647, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1972); + __Pyx_GIVEREF(__pyx_tuple__1972); + + /* "talib/_stream.pxi":4678 + * 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__1973 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__1973)) __PYX_ERR(3, 4678, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1973); + __Pyx_GIVEREF(__pyx_tuple__1973); + + /* "talib/_stream.pxi":4680 + * 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__1974 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1974)) __PYX_ERR(3, 4680, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1974); + __Pyx_GIVEREF(__pyx_tuple__1974); + + /* "talib/_stream.pxi":4685 + * open_data = 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__1975 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__1975)) __PYX_ERR(3, 4685, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1975); + __Pyx_GIVEREF(__pyx_tuple__1975); + + /* "talib/_stream.pxi":4687 + * raise 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__1976 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1976)) __PYX_ERR(3, 4687, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1976); + __Pyx_GIVEREF(__pyx_tuple__1976); + + /* "talib/_stream.pxi":4692 + * high_data = 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__1977 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__1977)) __PYX_ERR(3, 4692, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1977); + __Pyx_GIVEREF(__pyx_tuple__1977); + + /* "talib/_stream.pxi":4694 + * raise 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__1978 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1978)) __PYX_ERR(3, 4694, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1978); + __Pyx_GIVEREF(__pyx_tuple__1978); + + /* "talib/_stream.pxi":4699 + * low_data = 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__1979 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__1979)) __PYX_ERR(3, 4699, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1979); + __Pyx_GIVEREF(__pyx_tuple__1979); + + /* "talib/_stream.pxi":4701 + * raise 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__1980 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1980)) __PYX_ERR(3, 4701, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1980); + __Pyx_GIVEREF(__pyx_tuple__1980); + + /* "talib/_stream.pxi":4707 + * 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__1981 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1981)) __PYX_ERR(3, 4707, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1981); + __Pyx_GIVEREF(__pyx_tuple__1981); + + /* "talib/_stream.pxi":4709 + * 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__1982 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1982)) __PYX_ERR(3, 4709, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1982); + __Pyx_GIVEREF(__pyx_tuple__1982); + + /* "talib/_stream.pxi":4711 + * 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__1983 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1983)) __PYX_ERR(3, 4711, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1983); + __Pyx_GIVEREF(__pyx_tuple__1983); + + /* "talib/_stream.pxi":4742 + * 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__1984 = PyTuple_Pack(1, __pyx_kp_s_open_is_not_double); if (unlikely(!__pyx_tuple__1984)) __PYX_ERR(3, 4742, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1984); + __Pyx_GIVEREF(__pyx_tuple__1984); + + /* "talib/_stream.pxi":4744 + * 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__1985 = PyTuple_Pack(1, __pyx_kp_s_open_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1985)) __PYX_ERR(3, 4744, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1985); + __Pyx_GIVEREF(__pyx_tuple__1985); + + /* "talib/_stream.pxi":4749 + * open_data = 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__1986 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__1986)) __PYX_ERR(3, 4749, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1986); + __Pyx_GIVEREF(__pyx_tuple__1986); + + /* "talib/_stream.pxi":4751 + * raise 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__1987 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1987)) __PYX_ERR(3, 4751, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1987); + __Pyx_GIVEREF(__pyx_tuple__1987); + + /* "talib/_stream.pxi":4756 + * high_data = 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__1988 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__1988)) __PYX_ERR(3, 4756, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1988); + __Pyx_GIVEREF(__pyx_tuple__1988); + + /* "talib/_stream.pxi":4758 + * raise 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__1989 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1989)) __PYX_ERR(3, 4758, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1989); + __Pyx_GIVEREF(__pyx_tuple__1989); + + /* "talib/_stream.pxi":4763 + * low_data = 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__1990 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__1990)) __PYX_ERR(3, 4763, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1990); + __Pyx_GIVEREF(__pyx_tuple__1990); + + /* "talib/_stream.pxi":4765 + * raise 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__1991 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1991)) __PYX_ERR(3, 4765, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1991); + __Pyx_GIVEREF(__pyx_tuple__1991); + + /* "talib/_stream.pxi":4771 + * 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__1992 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1992)) __PYX_ERR(3, 4771, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1992); + __Pyx_GIVEREF(__pyx_tuple__1992); + + /* "talib/_stream.pxi":4773 + * 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__1993 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1993)) __PYX_ERR(3, 4773, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1993); + __Pyx_GIVEREF(__pyx_tuple__1993); + + /* "talib/_stream.pxi":4775 + * 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__1994 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__1994)) __PYX_ERR(3, 4775, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1994); + __Pyx_GIVEREF(__pyx_tuple__1994); + + /* "talib/_stream.pxi":4803 + * 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__1995 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__1995)) __PYX_ERR(3, 4803, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1995); + __Pyx_GIVEREF(__pyx_tuple__1995); + + /* "talib/_stream.pxi":4805 + * 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__1996 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1996)) __PYX_ERR(3, 4805, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1996); + __Pyx_GIVEREF(__pyx_tuple__1996); + + /* "talib/_stream.pxi":4839 + * 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__1997 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__1997)) __PYX_ERR(3, 4839, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1997); + __Pyx_GIVEREF(__pyx_tuple__1997); + + /* "talib/_stream.pxi":4841 + * 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__1998 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__1998)) __PYX_ERR(3, 4841, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1998); + __Pyx_GIVEREF(__pyx_tuple__1998); + + /* "talib/_stream.pxi":4877 + * 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__1999 = PyTuple_Pack(1, __pyx_kp_s_real0_is_not_double); if (unlikely(!__pyx_tuple__1999)) __PYX_ERR(3, 4877, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__1999); + __Pyx_GIVEREF(__pyx_tuple__1999); + + /* "talib/_stream.pxi":4879 + * 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__2000 = PyTuple_Pack(1, __pyx_kp_s_real0_has_wrong_dimensions); if (unlikely(!__pyx_tuple__2000)) __PYX_ERR(3, 4879, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2000); + __Pyx_GIVEREF(__pyx_tuple__2000); + + /* "talib/_stream.pxi":4884 + * real0_data = 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__2001 = PyTuple_Pack(1, __pyx_kp_s_real1_is_not_double); if (unlikely(!__pyx_tuple__2001)) __PYX_ERR(3, 4884, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2001); + __Pyx_GIVEREF(__pyx_tuple__2001); + + /* "talib/_stream.pxi":4886 + * 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__2002 = PyTuple_Pack(1, __pyx_kp_s_real1_has_wrong_dimensions); if (unlikely(!__pyx_tuple__2002)) __PYX_ERR(3, 4886, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2002); + __Pyx_GIVEREF(__pyx_tuple__2002); + + /* "talib/_stream.pxi":4892 + * 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__2003 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__2003)) __PYX_ERR(3, 4892, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2003); + __Pyx_GIVEREF(__pyx_tuple__2003); + + /* "talib/_stream.pxi":4920 + * 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__2004 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__2004)) __PYX_ERR(3, 4920, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2004); + __Pyx_GIVEREF(__pyx_tuple__2004); + + /* "talib/_stream.pxi":4922 + * 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__2005 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__2005)) __PYX_ERR(3, 4922, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2005); + __Pyx_GIVEREF(__pyx_tuple__2005); + + /* "talib/_stream.pxi":4954 + * 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__2006 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__2006)) __PYX_ERR(3, 4954, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2006); + __Pyx_GIVEREF(__pyx_tuple__2006); + + /* "talib/_stream.pxi":4956 + * 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__2007 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__2007)) __PYX_ERR(3, 4956, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2007); + __Pyx_GIVEREF(__pyx_tuple__2007); + + /* "talib/_stream.pxi":4990 + * 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__2008 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__2008)) __PYX_ERR(3, 4990, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2008); + __Pyx_GIVEREF(__pyx_tuple__2008); + + /* "talib/_stream.pxi":4992 + * 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__2009 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__2009)) __PYX_ERR(3, 4992, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2009); + __Pyx_GIVEREF(__pyx_tuple__2009); + + /* "talib/_stream.pxi":5026 + * 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__2010 = PyTuple_Pack(1, __pyx_kp_s_real0_is_not_double); if (unlikely(!__pyx_tuple__2010)) __PYX_ERR(3, 5026, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2010); + __Pyx_GIVEREF(__pyx_tuple__2010); + + /* "talib/_stream.pxi":5028 + * 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__2011 = PyTuple_Pack(1, __pyx_kp_s_real0_has_wrong_dimensions); if (unlikely(!__pyx_tuple__2011)) __PYX_ERR(3, 5028, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2011); + __Pyx_GIVEREF(__pyx_tuple__2011); + + /* "talib/_stream.pxi":5033 + * real0_data = 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__2012 = PyTuple_Pack(1, __pyx_kp_s_real1_is_not_double); if (unlikely(!__pyx_tuple__2012)) __PYX_ERR(3, 5033, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2012); + __Pyx_GIVEREF(__pyx_tuple__2012); + + /* "talib/_stream.pxi":5035 + * 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__2013 = PyTuple_Pack(1, __pyx_kp_s_real1_has_wrong_dimensions); if (unlikely(!__pyx_tuple__2013)) __PYX_ERR(3, 5035, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2013); + __Pyx_GIVEREF(__pyx_tuple__2013); + + /* "talib/_stream.pxi":5041 + * 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__2014 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__2014)) __PYX_ERR(3, 5041, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2014); + __Pyx_GIVEREF(__pyx_tuple__2014); + + /* "talib/_stream.pxi":5073 + * 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__2015 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__2015)) __PYX_ERR(3, 5073, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2015); + __Pyx_GIVEREF(__pyx_tuple__2015); + + /* "talib/_stream.pxi":5075 + * raise 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__2016 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__2016)) __PYX_ERR(3, 5075, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2016); + __Pyx_GIVEREF(__pyx_tuple__2016); + + /* "talib/_stream.pxi":5080 + * high_data = 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__2017 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__2017)) __PYX_ERR(3, 5080, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2017); + __Pyx_GIVEREF(__pyx_tuple__2017); + + /* "talib/_stream.pxi":5082 + * raise 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__2018 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__2018)) __PYX_ERR(3, 5082, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2018); + __Pyx_GIVEREF(__pyx_tuple__2018); + + /* "talib/_stream.pxi":5087 + * low_data = 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__2019 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__2019)) __PYX_ERR(3, 5087, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2019); + __Pyx_GIVEREF(__pyx_tuple__2019); + + /* "talib/_stream.pxi":5089 + * raise 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__2020 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__2020)) __PYX_ERR(3, 5089, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2020); + __Pyx_GIVEREF(__pyx_tuple__2020); + + /* "talib/_stream.pxi":5095 + * 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__2021 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__2021)) __PYX_ERR(3, 5095, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2021); + __Pyx_GIVEREF(__pyx_tuple__2021); + + /* "talib/_stream.pxi":5097 + * 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__2022 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__2022)) __PYX_ERR(3, 5097, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2022); + __Pyx_GIVEREF(__pyx_tuple__2022); + + /* "talib/_stream.pxi":5127 + * 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__2023 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__2023)) __PYX_ERR(3, 5127, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2023); + __Pyx_GIVEREF(__pyx_tuple__2023); + + /* "talib/_stream.pxi":5129 + * 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__2024 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__2024)) __PYX_ERR(3, 5129, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2024); + __Pyx_GIVEREF(__pyx_tuple__2024); + + /* "talib/_stream.pxi":5161 + * 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__2025 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__2025)) __PYX_ERR(3, 5161, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2025); + __Pyx_GIVEREF(__pyx_tuple__2025); + + /* "talib/_stream.pxi":5163 + * 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__2026 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__2026)) __PYX_ERR(3, 5163, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2026); + __Pyx_GIVEREF(__pyx_tuple__2026); + + /* "talib/_stream.pxi":5195 + * 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__2027 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__2027)) __PYX_ERR(3, 5195, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2027); + __Pyx_GIVEREF(__pyx_tuple__2027); + + /* "talib/_stream.pxi":5197 + * 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__2028 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__2028)) __PYX_ERR(3, 5197, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2028); + __Pyx_GIVEREF(__pyx_tuple__2028); + + /* "talib/_stream.pxi":5229 + * 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__2029 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__2029)) __PYX_ERR(3, 5229, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2029); + __Pyx_GIVEREF(__pyx_tuple__2029); + + /* "talib/_stream.pxi":5231 + * 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__2030 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__2030)) __PYX_ERR(3, 5231, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2030); + __Pyx_GIVEREF(__pyx_tuple__2030); + + /* "talib/_stream.pxi":5263 + * 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__2031 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__2031)) __PYX_ERR(3, 5263, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2031); + __Pyx_GIVEREF(__pyx_tuple__2031); + + /* "talib/_stream.pxi":5265 + * 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__2032 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__2032)) __PYX_ERR(3, 5265, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2032); + __Pyx_GIVEREF(__pyx_tuple__2032); + + /* "talib/_stream.pxi":5299 + * 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__2033 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__2033)) __PYX_ERR(3, 5299, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2033); + __Pyx_GIVEREF(__pyx_tuple__2033); + + /* "talib/_stream.pxi":5301 + * 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__2034 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__2034)) __PYX_ERR(3, 5301, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2034); + __Pyx_GIVEREF(__pyx_tuple__2034); + + /* "talib/_stream.pxi":5336 + * 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__2035 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__2035)) __PYX_ERR(3, 5336, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2035); + __Pyx_GIVEREF(__pyx_tuple__2035); + + /* "talib/_stream.pxi":5338 + * 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__2036 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__2036)) __PYX_ERR(3, 5338, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2036); + __Pyx_GIVEREF(__pyx_tuple__2036); + + /* "talib/_stream.pxi":5371 + * 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__2037 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__2037)) __PYX_ERR(3, 5371, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2037); + __Pyx_GIVEREF(__pyx_tuple__2037); + + /* "talib/_stream.pxi":5373 + * 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__2038 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__2038)) __PYX_ERR(3, 5373, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2038); + __Pyx_GIVEREF(__pyx_tuple__2038); + + /* "talib/_stream.pxi":5405 + * 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__2039 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__2039)) __PYX_ERR(3, 5405, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2039); + __Pyx_GIVEREF(__pyx_tuple__2039); + + /* "talib/_stream.pxi":5407 + * 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__2040 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__2040)) __PYX_ERR(3, 5407, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2040); + __Pyx_GIVEREF(__pyx_tuple__2040); + + /* "talib/_stream.pxi":5441 + * 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__2041 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__2041)) __PYX_ERR(3, 5441, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2041); + __Pyx_GIVEREF(__pyx_tuple__2041); + + /* "talib/_stream.pxi":5443 + * 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__2042 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__2042)) __PYX_ERR(3, 5443, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2042); + __Pyx_GIVEREF(__pyx_tuple__2042); + + /* "talib/_stream.pxi":5477 + * 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__2043 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__2043)) __PYX_ERR(3, 5477, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2043); + __Pyx_GIVEREF(__pyx_tuple__2043); + + /* "talib/_stream.pxi":5479 + * 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__2044 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__2044)) __PYX_ERR(3, 5479, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2044); + __Pyx_GIVEREF(__pyx_tuple__2044); + + /* "talib/_stream.pxi":5513 + * 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__2045 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__2045)) __PYX_ERR(3, 5513, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2045); + __Pyx_GIVEREF(__pyx_tuple__2045); + + /* "talib/_stream.pxi":5515 + * 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__2046 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__2046)) __PYX_ERR(3, 5515, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2046); + __Pyx_GIVEREF(__pyx_tuple__2046); + + /* "talib/_stream.pxi":5549 + * 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__2047 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__2047)) __PYX_ERR(3, 5549, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2047); + __Pyx_GIVEREF(__pyx_tuple__2047); + + /* "talib/_stream.pxi":5551 + * 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__2048 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__2048)) __PYX_ERR(3, 5551, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2048); + __Pyx_GIVEREF(__pyx_tuple__2048); + + /* "talib/_stream.pxi":5585 + * 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__2049 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__2049)) __PYX_ERR(3, 5585, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2049); + __Pyx_GIVEREF(__pyx_tuple__2049); + + /* "talib/_stream.pxi":5587 + * 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__2050 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__2050)) __PYX_ERR(3, 5587, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2050); + __Pyx_GIVEREF(__pyx_tuple__2050); + + /* "talib/_stream.pxi":5619 + * 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__2051 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__2051)) __PYX_ERR(3, 5619, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2051); + __Pyx_GIVEREF(__pyx_tuple__2051); + + /* "talib/_stream.pxi":5621 + * 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__2052 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__2052)) __PYX_ERR(3, 5621, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2052); + __Pyx_GIVEREF(__pyx_tuple__2052); + + /* "talib/_stream.pxi":5653 + * 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__2053 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__2053)) __PYX_ERR(3, 5653, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2053); + __Pyx_GIVEREF(__pyx_tuple__2053); + + /* "talib/_stream.pxi":5655 + * 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__2054 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__2054)) __PYX_ERR(3, 5655, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2054); + __Pyx_GIVEREF(__pyx_tuple__2054); + + /* "talib/_stream.pxi":5690 + * 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__2055 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__2055)) __PYX_ERR(3, 5690, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2055); + __Pyx_GIVEREF(__pyx_tuple__2055); + + /* "talib/_stream.pxi":5692 + * 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__2056 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__2056)) __PYX_ERR(3, 5692, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2056); + __Pyx_GIVEREF(__pyx_tuple__2056); + + /* "talib/_stream.pxi":5732 + * 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__2057 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__2057)) __PYX_ERR(3, 5732, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2057); + __Pyx_GIVEREF(__pyx_tuple__2057); + + /* "talib/_stream.pxi":5734 + * 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__2058 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__2058)) __PYX_ERR(3, 5734, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2058); + __Pyx_GIVEREF(__pyx_tuple__2058); + + /* "talib/_stream.pxi":5779 + * 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__2059 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__2059)) __PYX_ERR(3, 5779, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2059); + __Pyx_GIVEREF(__pyx_tuple__2059); + + /* "talib/_stream.pxi":5781 + * 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__2060 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__2060)) __PYX_ERR(3, 5781, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2060); + __Pyx_GIVEREF(__pyx_tuple__2060); + + /* "talib/_stream.pxi":5821 + * 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__2061 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__2061)) __PYX_ERR(3, 5821, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2061); + __Pyx_GIVEREF(__pyx_tuple__2061); + + /* "talib/_stream.pxi":5823 + * 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__2062 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__2062)) __PYX_ERR(3, 5823, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2062); + __Pyx_GIVEREF(__pyx_tuple__2062); + + /* "talib/_stream.pxi":5862 + * 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__2063 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__2063)) __PYX_ERR(3, 5862, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2063); + __Pyx_GIVEREF(__pyx_tuple__2063); + + /* "talib/_stream.pxi":5864 + * 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__2064 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__2064)) __PYX_ERR(3, 5864, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2064); + __Pyx_GIVEREF(__pyx_tuple__2064); + + /* "talib/_stream.pxi":5903 + * 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__2065 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__2065)) __PYX_ERR(3, 5903, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2065); + __Pyx_GIVEREF(__pyx_tuple__2065); + + /* "talib/_stream.pxi":5905 + * 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__2066 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__2066)) __PYX_ERR(3, 5905, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2066); + __Pyx_GIVEREF(__pyx_tuple__2066); + + /* "talib/_stream.pxi":5910 + * real_data = 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__2067 = PyTuple_Pack(1, __pyx_kp_s_periods_is_not_double); if (unlikely(!__pyx_tuple__2067)) __PYX_ERR(3, 5910, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2067); + __Pyx_GIVEREF(__pyx_tuple__2067); + + /* "talib/_stream.pxi":5912 + * 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__2068 = PyTuple_Pack(1, __pyx_kp_s_periods_has_wrong_dimensions); if (unlikely(!__pyx_tuple__2068)) __PYX_ERR(3, 5912, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2068); + __Pyx_GIVEREF(__pyx_tuple__2068); + + /* "talib/_stream.pxi":5918 + * 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__2069 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__2069)) __PYX_ERR(3, 5918, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2069); + __Pyx_GIVEREF(__pyx_tuple__2069); + + /* "talib/_stream.pxi":5948 + * 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__2070 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__2070)) __PYX_ERR(3, 5948, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2070); + __Pyx_GIVEREF(__pyx_tuple__2070); + + /* "talib/_stream.pxi":5950 + * 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__2071 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__2071)) __PYX_ERR(3, 5950, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2071); + __Pyx_GIVEREF(__pyx_tuple__2071); + + /* "talib/_stream.pxi":5984 + * 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__2072 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__2072)) __PYX_ERR(3, 5984, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2072); + __Pyx_GIVEREF(__pyx_tuple__2072); + + /* "talib/_stream.pxi":5986 + * 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__2073 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__2073)) __PYX_ERR(3, 5986, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2073); + __Pyx_GIVEREF(__pyx_tuple__2073); + + /* "talib/_stream.pxi":6019 + * 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__2074 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__2074)) __PYX_ERR(3, 6019, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2074); + __Pyx_GIVEREF(__pyx_tuple__2074); + + /* "talib/_stream.pxi":6021 + * raise 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__2075 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__2075)) __PYX_ERR(3, 6021, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2075); + __Pyx_GIVEREF(__pyx_tuple__2075); + + /* "talib/_stream.pxi":6026 + * high_data = 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__2076 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__2076)) __PYX_ERR(3, 6026, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2076); + __Pyx_GIVEREF(__pyx_tuple__2076); + + /* "talib/_stream.pxi":6028 + * raise 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__2077 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__2077)) __PYX_ERR(3, 6028, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2077); + __Pyx_GIVEREF(__pyx_tuple__2077); + + /* "talib/_stream.pxi":6034 + * 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__2078 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__2078)) __PYX_ERR(3, 6034, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2078); + __Pyx_GIVEREF(__pyx_tuple__2078); + + /* "talib/_stream.pxi":6067 + * 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__2079 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__2079)) __PYX_ERR(3, 6067, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2079); + __Pyx_GIVEREF(__pyx_tuple__2079); + + /* "talib/_stream.pxi":6069 + * raise 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__2080 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__2080)) __PYX_ERR(3, 6069, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2080); + __Pyx_GIVEREF(__pyx_tuple__2080); + + /* "talib/_stream.pxi":6074 + * high_data = 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__2081 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__2081)) __PYX_ERR(3, 6074, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2081); + __Pyx_GIVEREF(__pyx_tuple__2081); + + /* "talib/_stream.pxi":6076 + * raise 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__2082 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__2082)) __PYX_ERR(3, 6076, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2082); + __Pyx_GIVEREF(__pyx_tuple__2082); + + /* "talib/_stream.pxi":6081 + * low_data = 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__2083 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__2083)) __PYX_ERR(3, 6081, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2083); + __Pyx_GIVEREF(__pyx_tuple__2083); + + /* "talib/_stream.pxi":6083 + * raise 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__2084 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__2084)) __PYX_ERR(3, 6083, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2084); + __Pyx_GIVEREF(__pyx_tuple__2084); + + /* "talib/_stream.pxi":6088 + * close_data = 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__2085 = PyTuple_Pack(1, __pyx_kp_s_volume_is_not_double); if (unlikely(!__pyx_tuple__2085)) __PYX_ERR(3, 6088, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2085); + __Pyx_GIVEREF(__pyx_tuple__2085); + + /* "talib/_stream.pxi":6090 + * 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__2086 = PyTuple_Pack(1, __pyx_kp_s_volume_has_wrong_dimensions); if (unlikely(!__pyx_tuple__2086)) __PYX_ERR(3, 6090, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2086); + __Pyx_GIVEREF(__pyx_tuple__2086); + + /* "talib/_stream.pxi":6096 + * 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__2087 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__2087)) __PYX_ERR(3, 6096, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2087); + __Pyx_GIVEREF(__pyx_tuple__2087); + + /* "talib/_stream.pxi":6098 + * 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__2088 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__2088)) __PYX_ERR(3, 6098, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2088); + __Pyx_GIVEREF(__pyx_tuple__2088); + + /* "talib/_stream.pxi":6100 + * 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__2089 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__2089)) __PYX_ERR(3, 6100, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2089); + __Pyx_GIVEREF(__pyx_tuple__2089); + + /* "talib/_stream.pxi":6130 + * 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__2090 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__2090)) __PYX_ERR(3, 6130, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2090); + __Pyx_GIVEREF(__pyx_tuple__2090); + + /* "talib/_stream.pxi":6132 + * 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__2091 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__2091)) __PYX_ERR(3, 6132, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2091); + __Pyx_GIVEREF(__pyx_tuple__2091); + + /* "talib/_stream.pxi":6167 + * 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__2092 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__2092)) __PYX_ERR(3, 6167, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2092); + __Pyx_GIVEREF(__pyx_tuple__2092); + + /* "talib/_stream.pxi":6169 + * raise 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__2093 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__2093)) __PYX_ERR(3, 6169, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2093); + __Pyx_GIVEREF(__pyx_tuple__2093); + + /* "talib/_stream.pxi":6174 + * high_data = 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__2094 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__2094)) __PYX_ERR(3, 6174, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2094); + __Pyx_GIVEREF(__pyx_tuple__2094); + + /* "talib/_stream.pxi":6176 + * raise 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__2095 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__2095)) __PYX_ERR(3, 6176, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2095); + __Pyx_GIVEREF(__pyx_tuple__2095); + + /* "talib/_stream.pxi":6182 + * 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__2096 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__2096)) __PYX_ERR(3, 6182, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2096); + __Pyx_GIVEREF(__pyx_tuple__2096); + + /* "talib/_stream.pxi":6212 + * 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__2097 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__2097)) __PYX_ERR(3, 6212, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2097); + __Pyx_GIVEREF(__pyx_tuple__2097); + + /* "talib/_stream.pxi":6214 + * 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__2098 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__2098)) __PYX_ERR(3, 6214, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2098); + __Pyx_GIVEREF(__pyx_tuple__2098); + + /* "talib/_stream.pxi":6248 + * 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__2099 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__2099)) __PYX_ERR(3, 6248, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2099); + __Pyx_GIVEREF(__pyx_tuple__2099); + + /* "talib/_stream.pxi":6250 + * 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__2100 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__2100)) __PYX_ERR(3, 6250, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2100); + __Pyx_GIVEREF(__pyx_tuple__2100); + + /* "talib/_stream.pxi":6286 + * 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__2101 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__2101)) __PYX_ERR(3, 6286, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2101); + __Pyx_GIVEREF(__pyx_tuple__2101); + + /* "talib/_stream.pxi":6288 + * 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__2102 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__2102)) __PYX_ERR(3, 6288, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2102); + __Pyx_GIVEREF(__pyx_tuple__2102); + + /* "talib/_stream.pxi":6325 + * 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__2103 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__2103)) __PYX_ERR(3, 6325, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2103); + __Pyx_GIVEREF(__pyx_tuple__2103); + + /* "talib/_stream.pxi":6327 + * 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__2104 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__2104)) __PYX_ERR(3, 6327, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2104); + __Pyx_GIVEREF(__pyx_tuple__2104); + + /* "talib/_stream.pxi":6364 + * 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__2105 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__2105)) __PYX_ERR(3, 6364, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2105); + __Pyx_GIVEREF(__pyx_tuple__2105); + + /* "talib/_stream.pxi":6366 + * raise 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__2106 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__2106)) __PYX_ERR(3, 6366, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2106); + __Pyx_GIVEREF(__pyx_tuple__2106); + + /* "talib/_stream.pxi":6371 + * high_data = 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__2107 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__2107)) __PYX_ERR(3, 6371, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2107); + __Pyx_GIVEREF(__pyx_tuple__2107); + + /* "talib/_stream.pxi":6373 + * raise 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__2108 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__2108)) __PYX_ERR(3, 6373, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2108); + __Pyx_GIVEREF(__pyx_tuple__2108); + + /* "talib/_stream.pxi":6378 + * low_data = 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__2109 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__2109)) __PYX_ERR(3, 6378, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2109); + __Pyx_GIVEREF(__pyx_tuple__2109); + + /* "talib/_stream.pxi":6380 + * raise 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__2110 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__2110)) __PYX_ERR(3, 6380, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2110); + __Pyx_GIVEREF(__pyx_tuple__2110); + + /* "talib/_stream.pxi":6386 + * 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__2111 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__2111)) __PYX_ERR(3, 6386, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2111); + __Pyx_GIVEREF(__pyx_tuple__2111); + + /* "talib/_stream.pxi":6388 + * 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__2112 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__2112)) __PYX_ERR(3, 6388, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2112); + __Pyx_GIVEREF(__pyx_tuple__2112); + + /* "talib/_stream.pxi":6419 + * 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__2113 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__2113)) __PYX_ERR(3, 6419, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2113); + __Pyx_GIVEREF(__pyx_tuple__2113); + + /* "talib/_stream.pxi":6421 + * raise 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__2114 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__2114)) __PYX_ERR(3, 6421, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2114); + __Pyx_GIVEREF(__pyx_tuple__2114); + + /* "talib/_stream.pxi":6426 + * high_data = 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__2115 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__2115)) __PYX_ERR(3, 6426, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2115); + __Pyx_GIVEREF(__pyx_tuple__2115); + + /* "talib/_stream.pxi":6428 + * raise 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__2116 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__2116)) __PYX_ERR(3, 6428, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2116); + __Pyx_GIVEREF(__pyx_tuple__2116); + + /* "talib/_stream.pxi":6434 + * 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__2117 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__2117)) __PYX_ERR(3, 6434, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2117); + __Pyx_GIVEREF(__pyx_tuple__2117); + + /* "talib/_stream.pxi":6464 + * 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__2118 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__2118)) __PYX_ERR(3, 6464, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2118); + __Pyx_GIVEREF(__pyx_tuple__2118); + + /* "talib/_stream.pxi":6466 + * 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__2119 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__2119)) __PYX_ERR(3, 6466, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2119); + __Pyx_GIVEREF(__pyx_tuple__2119); + + /* "talib/_stream.pxi":6500 + * 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__2120 = PyTuple_Pack(1, __pyx_kp_s_real0_is_not_double); if (unlikely(!__pyx_tuple__2120)) __PYX_ERR(3, 6500, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2120); + __Pyx_GIVEREF(__pyx_tuple__2120); + + /* "talib/_stream.pxi":6502 + * 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__2121 = PyTuple_Pack(1, __pyx_kp_s_real0_has_wrong_dimensions); if (unlikely(!__pyx_tuple__2121)) __PYX_ERR(3, 6502, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2121); + __Pyx_GIVEREF(__pyx_tuple__2121); + + /* "talib/_stream.pxi":6507 + * real0_data = 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__2122 = PyTuple_Pack(1, __pyx_kp_s_real1_is_not_double); if (unlikely(!__pyx_tuple__2122)) __PYX_ERR(3, 6507, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2122); + __Pyx_GIVEREF(__pyx_tuple__2122); + + /* "talib/_stream.pxi":6509 + * 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__2123 = PyTuple_Pack(1, __pyx_kp_s_real1_has_wrong_dimensions); if (unlikely(!__pyx_tuple__2123)) __PYX_ERR(3, 6509, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2123); + __Pyx_GIVEREF(__pyx_tuple__2123); + + /* "talib/_stream.pxi":6515 + * 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__2124 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__2124)) __PYX_ERR(3, 6515, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2124); + __Pyx_GIVEREF(__pyx_tuple__2124); + + /* "talib/_stream.pxi":6547 + * 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__2125 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__2125)) __PYX_ERR(3, 6547, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2125); + __Pyx_GIVEREF(__pyx_tuple__2125); + + /* "talib/_stream.pxi":6549 + * raise 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__2126 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__2126)) __PYX_ERR(3, 6549, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2126); + __Pyx_GIVEREF(__pyx_tuple__2126); + + /* "talib/_stream.pxi":6554 + * high_data = 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__2127 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__2127)) __PYX_ERR(3, 6554, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2127); + __Pyx_GIVEREF(__pyx_tuple__2127); + + /* "talib/_stream.pxi":6556 + * raise 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__2128 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__2128)) __PYX_ERR(3, 6556, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2128); + __Pyx_GIVEREF(__pyx_tuple__2128); + + /* "talib/_stream.pxi":6561 + * low_data = 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__2129 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__2129)) __PYX_ERR(3, 6561, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2129); + __Pyx_GIVEREF(__pyx_tuple__2129); + + /* "talib/_stream.pxi":6563 + * raise 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__2130 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__2130)) __PYX_ERR(3, 6563, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2130); + __Pyx_GIVEREF(__pyx_tuple__2130); + + /* "talib/_stream.pxi":6569 + * 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__2131 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__2131)) __PYX_ERR(3, 6569, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2131); + __Pyx_GIVEREF(__pyx_tuple__2131); + + /* "talib/_stream.pxi":6571 + * 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__2132 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__2132)) __PYX_ERR(3, 6571, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2132); + __Pyx_GIVEREF(__pyx_tuple__2132); + + /* "talib/_stream.pxi":6601 + * 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__2133 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__2133)) __PYX_ERR(3, 6601, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2133); + __Pyx_GIVEREF(__pyx_tuple__2133); + + /* "talib/_stream.pxi":6603 + * 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__2134 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__2134)) __PYX_ERR(3, 6603, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2134); + __Pyx_GIVEREF(__pyx_tuple__2134); + + /* "talib/_stream.pxi":6608 + * real_data = 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__2135 = PyTuple_Pack(1, __pyx_kp_s_volume_is_not_double); if (unlikely(!__pyx_tuple__2135)) __PYX_ERR(3, 6608, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2135); + __Pyx_GIVEREF(__pyx_tuple__2135); + + /* "talib/_stream.pxi":6610 + * 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__2136 = PyTuple_Pack(1, __pyx_kp_s_volume_has_wrong_dimensions); if (unlikely(!__pyx_tuple__2136)) __PYX_ERR(3, 6610, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2136); + __Pyx_GIVEREF(__pyx_tuple__2136); + + /* "talib/_stream.pxi":6616 + * 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__2137 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__2137)) __PYX_ERR(3, 6616, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2137); + __Pyx_GIVEREF(__pyx_tuple__2137); + + /* "talib/_stream.pxi":6648 + * 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__2138 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__2138)) __PYX_ERR(3, 6648, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2138); + __Pyx_GIVEREF(__pyx_tuple__2138); + + /* "talib/_stream.pxi":6650 + * raise 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__2139 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__2139)) __PYX_ERR(3, 6650, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2139); + __Pyx_GIVEREF(__pyx_tuple__2139); + + /* "talib/_stream.pxi":6655 + * high_data = 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__2140 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__2140)) __PYX_ERR(3, 6655, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2140); + __Pyx_GIVEREF(__pyx_tuple__2140); + + /* "talib/_stream.pxi":6657 + * raise 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__2141 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__2141)) __PYX_ERR(3, 6657, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2141); + __Pyx_GIVEREF(__pyx_tuple__2141); + + /* "talib/_stream.pxi":6662 + * low_data = 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__2142 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__2142)) __PYX_ERR(3, 6662, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2142); + __Pyx_GIVEREF(__pyx_tuple__2142); + + /* "talib/_stream.pxi":6664 + * raise 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__2143 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__2143)) __PYX_ERR(3, 6664, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2143); + __Pyx_GIVEREF(__pyx_tuple__2143); + + /* "talib/_stream.pxi":6670 + * 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__2144 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__2144)) __PYX_ERR(3, 6670, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2144); + __Pyx_GIVEREF(__pyx_tuple__2144); + + /* "talib/_stream.pxi":6672 + * 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__2145 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__2145)) __PYX_ERR(3, 6672, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2145); + __Pyx_GIVEREF(__pyx_tuple__2145); + + /* "talib/_stream.pxi":6703 + * 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__2146 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__2146)) __PYX_ERR(3, 6703, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2146); + __Pyx_GIVEREF(__pyx_tuple__2146); + + /* "talib/_stream.pxi":6705 + * raise 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__2147 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__2147)) __PYX_ERR(3, 6705, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2147); + __Pyx_GIVEREF(__pyx_tuple__2147); + + /* "talib/_stream.pxi":6710 + * high_data = 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__2148 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__2148)) __PYX_ERR(3, 6710, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2148); + __Pyx_GIVEREF(__pyx_tuple__2148); + + /* "talib/_stream.pxi":6712 + * raise 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__2149 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__2149)) __PYX_ERR(3, 6712, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2149); + __Pyx_GIVEREF(__pyx_tuple__2149); + + /* "talib/_stream.pxi":6718 + * 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__2150 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__2150)) __PYX_ERR(3, 6718, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2150); + __Pyx_GIVEREF(__pyx_tuple__2150); + + /* "talib/_stream.pxi":6750 + * 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__2151 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__2151)) __PYX_ERR(3, 6750, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2151); + __Pyx_GIVEREF(__pyx_tuple__2151); + + /* "talib/_stream.pxi":6752 + * 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__2152 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__2152)) __PYX_ERR(3, 6752, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2152); + __Pyx_GIVEREF(__pyx_tuple__2152); + + /* "talib/_stream.pxi":6786 + * 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__2153 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__2153)) __PYX_ERR(3, 6786, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2153); + __Pyx_GIVEREF(__pyx_tuple__2153); + + /* "talib/_stream.pxi":6788 + * 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__2154 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__2154)) __PYX_ERR(3, 6788, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2154); + __Pyx_GIVEREF(__pyx_tuple__2154); + + /* "talib/_stream.pxi":6822 + * 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__2155 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__2155)) __PYX_ERR(3, 6822, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2155); + __Pyx_GIVEREF(__pyx_tuple__2155); + + /* "talib/_stream.pxi":6824 + * 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__2156 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__2156)) __PYX_ERR(3, 6824, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2156); + __Pyx_GIVEREF(__pyx_tuple__2156); + + /* "talib/_stream.pxi":6858 + * 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__2157 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__2157)) __PYX_ERR(3, 6858, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2157); + __Pyx_GIVEREF(__pyx_tuple__2157); + + /* "talib/_stream.pxi":6860 + * 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__2158 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__2158)) __PYX_ERR(3, 6860, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2158); + __Pyx_GIVEREF(__pyx_tuple__2158); + + /* "talib/_stream.pxi":6894 + * 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__2159 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__2159)) __PYX_ERR(3, 6894, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2159); + __Pyx_GIVEREF(__pyx_tuple__2159); + + /* "talib/_stream.pxi":6896 + * 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__2160 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__2160)) __PYX_ERR(3, 6896, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2160); + __Pyx_GIVEREF(__pyx_tuple__2160); + + /* "talib/_stream.pxi":6930 + * 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__2161 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__2161)) __PYX_ERR(3, 6930, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2161); + __Pyx_GIVEREF(__pyx_tuple__2161); + + /* "talib/_stream.pxi":6932 + * 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__2162 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__2162)) __PYX_ERR(3, 6932, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2162); + __Pyx_GIVEREF(__pyx_tuple__2162); + + /* "talib/_stream.pxi":6968 + * 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__2163 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__2163)) __PYX_ERR(3, 6968, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2163); + __Pyx_GIVEREF(__pyx_tuple__2163); + + /* "talib/_stream.pxi":6970 + * raise 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__2164 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__2164)) __PYX_ERR(3, 6970, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2164); + __Pyx_GIVEREF(__pyx_tuple__2164); + + /* "talib/_stream.pxi":6975 + * high_data = 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__2165 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__2165)) __PYX_ERR(3, 6975, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2165); + __Pyx_GIVEREF(__pyx_tuple__2165); + + /* "talib/_stream.pxi":6977 + * raise 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__2166 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__2166)) __PYX_ERR(3, 6977, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2166); + __Pyx_GIVEREF(__pyx_tuple__2166); + + /* "talib/_stream.pxi":6983 + * 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__2167 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__2167)) __PYX_ERR(3, 6983, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2167); + __Pyx_GIVEREF(__pyx_tuple__2167); + + /* "talib/_stream.pxi":7021 + * 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__2168 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__2168)) __PYX_ERR(3, 7021, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2168); + __Pyx_GIVEREF(__pyx_tuple__2168); + + /* "talib/_stream.pxi":7023 + * raise 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__2169 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__2169)) __PYX_ERR(3, 7023, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2169); + __Pyx_GIVEREF(__pyx_tuple__2169); + + /* "talib/_stream.pxi":7028 + * high_data = 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__2170 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__2170)) __PYX_ERR(3, 7028, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2170); + __Pyx_GIVEREF(__pyx_tuple__2170); + + /* "talib/_stream.pxi":7030 + * raise 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__2171 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__2171)) __PYX_ERR(3, 7030, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2171); + __Pyx_GIVEREF(__pyx_tuple__2171); + + /* "talib/_stream.pxi":7036 + * 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__2172 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__2172)) __PYX_ERR(3, 7036, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2172); + __Pyx_GIVEREF(__pyx_tuple__2172); + + /* "talib/_stream.pxi":7064 + * 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__2173 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__2173)) __PYX_ERR(3, 7064, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2173); + __Pyx_GIVEREF(__pyx_tuple__2173); + + /* "talib/_stream.pxi":7066 + * 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__2174 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__2174)) __PYX_ERR(3, 7066, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2174); + __Pyx_GIVEREF(__pyx_tuple__2174); + + /* "talib/_stream.pxi":7098 + * 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__2175 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__2175)) __PYX_ERR(3, 7098, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2175); + __Pyx_GIVEREF(__pyx_tuple__2175); + + /* "talib/_stream.pxi":7100 + * 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__2176 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__2176)) __PYX_ERR(3, 7100, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2176); + __Pyx_GIVEREF(__pyx_tuple__2176); + + /* "talib/_stream.pxi":7134 + * 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__2177 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__2177)) __PYX_ERR(3, 7134, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2177); + __Pyx_GIVEREF(__pyx_tuple__2177); + + /* "talib/_stream.pxi":7136 + * 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__2178 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__2178)) __PYX_ERR(3, 7136, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2178); + __Pyx_GIVEREF(__pyx_tuple__2178); + + /* "talib/_stream.pxi":7168 + * 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__2179 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__2179)) __PYX_ERR(3, 7168, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2179); + __Pyx_GIVEREF(__pyx_tuple__2179); + + /* "talib/_stream.pxi":7170 + * 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__2180 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__2180)) __PYX_ERR(3, 7170, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2180); + __Pyx_GIVEREF(__pyx_tuple__2180); + + /* "talib/_stream.pxi":7205 + * 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__2181 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__2181)) __PYX_ERR(3, 7205, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2181); + __Pyx_GIVEREF(__pyx_tuple__2181); + + /* "talib/_stream.pxi":7207 + * 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__2182 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__2182)) __PYX_ERR(3, 7207, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2182); + __Pyx_GIVEREF(__pyx_tuple__2182); + + /* "talib/_stream.pxi":7249 + * 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__2183 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__2183)) __PYX_ERR(3, 7249, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2183); + __Pyx_GIVEREF(__pyx_tuple__2183); + + /* "talib/_stream.pxi":7251 + * raise 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__2184 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__2184)) __PYX_ERR(3, 7251, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2184); + __Pyx_GIVEREF(__pyx_tuple__2184); + + /* "talib/_stream.pxi":7256 + * high_data = 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__2185 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__2185)) __PYX_ERR(3, 7256, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2185); + __Pyx_GIVEREF(__pyx_tuple__2185); + + /* "talib/_stream.pxi":7258 + * raise 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__2186 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__2186)) __PYX_ERR(3, 7258, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2186); + __Pyx_GIVEREF(__pyx_tuple__2186); + + /* "talib/_stream.pxi":7263 + * low_data = 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__2187 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__2187)) __PYX_ERR(3, 7263, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2187); + __Pyx_GIVEREF(__pyx_tuple__2187); + + /* "talib/_stream.pxi":7265 + * raise 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__2188 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__2188)) __PYX_ERR(3, 7265, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2188); + __Pyx_GIVEREF(__pyx_tuple__2188); + + /* "talib/_stream.pxi":7271 + * 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__2189 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__2189)) __PYX_ERR(3, 7271, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2189); + __Pyx_GIVEREF(__pyx_tuple__2189); + + /* "talib/_stream.pxi":7273 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * outslowk = NaN + * outslowd = NaN + */ + __pyx_tuple__2190 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__2190)) __PYX_ERR(3, 7273, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2190); + __Pyx_GIVEREF(__pyx_tuple__2190); + + /* "talib/_stream.pxi":7310 + * 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__2191 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__2191)) __PYX_ERR(3, 7310, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2191); + __Pyx_GIVEREF(__pyx_tuple__2191); + + /* "talib/_stream.pxi":7312 + * raise 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__2192 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__2192)) __PYX_ERR(3, 7312, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2192); + __Pyx_GIVEREF(__pyx_tuple__2192); + + /* "talib/_stream.pxi":7317 + * high_data = 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__2193 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__2193)) __PYX_ERR(3, 7317, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2193); + __Pyx_GIVEREF(__pyx_tuple__2193); + + /* "talib/_stream.pxi":7319 + * raise 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__2194 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__2194)) __PYX_ERR(3, 7319, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2194); + __Pyx_GIVEREF(__pyx_tuple__2194); + + /* "talib/_stream.pxi":7324 + * low_data = 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__2195 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__2195)) __PYX_ERR(3, 7324, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2195); + __Pyx_GIVEREF(__pyx_tuple__2195); + + /* "talib/_stream.pxi":7326 + * raise 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__2196 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__2196)) __PYX_ERR(3, 7326, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2196); + __Pyx_GIVEREF(__pyx_tuple__2196); + + /* "talib/_stream.pxi":7332 + * 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__2197 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__2197)) __PYX_ERR(3, 7332, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2197); + __Pyx_GIVEREF(__pyx_tuple__2197); + + /* "talib/_stream.pxi":7334 + * raise Exception("input lengths are different") + * if length != close.shape[0]: + * raise Exception("input lengths are different") # <<<<<<<<<<<<<< + * outfastk = NaN + * outfastd = NaN + */ + __pyx_tuple__2198 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__2198)) __PYX_ERR(3, 7334, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2198); + __Pyx_GIVEREF(__pyx_tuple__2198); + + /* "talib/_stream.pxi":7370 + * 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__2199 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__2199)) __PYX_ERR(3, 7370, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2199); + __Pyx_GIVEREF(__pyx_tuple__2199); + + /* "talib/_stream.pxi":7372 + * 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__2200 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__2200)) __PYX_ERR(3, 7372, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2200); + __Pyx_GIVEREF(__pyx_tuple__2200); + + /* "talib/_stream.pxi":7407 + * 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__2201 = PyTuple_Pack(1, __pyx_kp_s_real0_is_not_double); if (unlikely(!__pyx_tuple__2201)) __PYX_ERR(3, 7407, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2201); + __Pyx_GIVEREF(__pyx_tuple__2201); + + /* "talib/_stream.pxi":7409 + * 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__2202 = PyTuple_Pack(1, __pyx_kp_s_real0_has_wrong_dimensions); if (unlikely(!__pyx_tuple__2202)) __PYX_ERR(3, 7409, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2202); + __Pyx_GIVEREF(__pyx_tuple__2202); + + /* "talib/_stream.pxi":7414 + * real0_data = 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__2203 = PyTuple_Pack(1, __pyx_kp_s_real1_is_not_double); if (unlikely(!__pyx_tuple__2203)) __PYX_ERR(3, 7414, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2203); + __Pyx_GIVEREF(__pyx_tuple__2203); + + /* "talib/_stream.pxi":7416 + * 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__2204 = PyTuple_Pack(1, __pyx_kp_s_real1_has_wrong_dimensions); if (unlikely(!__pyx_tuple__2204)) __PYX_ERR(3, 7416, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2204); + __Pyx_GIVEREF(__pyx_tuple__2204); + + /* "talib/_stream.pxi":7422 + * 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__2205 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__2205)) __PYX_ERR(3, 7422, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2205); + __Pyx_GIVEREF(__pyx_tuple__2205); + + /* "talib/_stream.pxi":7452 + * 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__2206 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__2206)) __PYX_ERR(3, 7452, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2206); + __Pyx_GIVEREF(__pyx_tuple__2206); + + /* "talib/_stream.pxi":7454 + * 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__2207 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__2207)) __PYX_ERR(3, 7454, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2207); + __Pyx_GIVEREF(__pyx_tuple__2207); + + /* "talib/_stream.pxi":7489 + * 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__2208 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__2208)) __PYX_ERR(3, 7489, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2208); + __Pyx_GIVEREF(__pyx_tuple__2208); + + /* "talib/_stream.pxi":7491 + * 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__2209 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__2209)) __PYX_ERR(3, 7491, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2209); + __Pyx_GIVEREF(__pyx_tuple__2209); + + /* "talib/_stream.pxi":7523 + * 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__2210 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__2210)) __PYX_ERR(3, 7523, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2210); + __Pyx_GIVEREF(__pyx_tuple__2210); + + /* "talib/_stream.pxi":7525 + * 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__2211 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__2211)) __PYX_ERR(3, 7525, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2211); + __Pyx_GIVEREF(__pyx_tuple__2211); + + /* "talib/_stream.pxi":7557 + * 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__2212 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__2212)) __PYX_ERR(3, 7557, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2212); + __Pyx_GIVEREF(__pyx_tuple__2212); + + /* "talib/_stream.pxi":7559 + * 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__2213 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__2213)) __PYX_ERR(3, 7559, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2213); + __Pyx_GIVEREF(__pyx_tuple__2213); + + /* "talib/_stream.pxi":7593 + * 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__2214 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__2214)) __PYX_ERR(3, 7593, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2214); + __Pyx_GIVEREF(__pyx_tuple__2214); + + /* "talib/_stream.pxi":7595 + * 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__2215 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__2215)) __PYX_ERR(3, 7595, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2215); + __Pyx_GIVEREF(__pyx_tuple__2215); + + /* "talib/_stream.pxi":7629 + * 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__2216 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__2216)) __PYX_ERR(3, 7629, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2216); + __Pyx_GIVEREF(__pyx_tuple__2216); + + /* "talib/_stream.pxi":7631 + * raise 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__2217 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__2217)) __PYX_ERR(3, 7631, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2217); + __Pyx_GIVEREF(__pyx_tuple__2217); + + /* "talib/_stream.pxi":7636 + * high_data = 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__2218 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__2218)) __PYX_ERR(3, 7636, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2218); + __Pyx_GIVEREF(__pyx_tuple__2218); + + /* "talib/_stream.pxi":7638 + * raise 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__2219 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__2219)) __PYX_ERR(3, 7638, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2219); + __Pyx_GIVEREF(__pyx_tuple__2219); + + /* "talib/_stream.pxi":7643 + * low_data = 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__2220 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__2220)) __PYX_ERR(3, 7643, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2220); + __Pyx_GIVEREF(__pyx_tuple__2220); + + /* "talib/_stream.pxi":7645 + * raise 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__2221 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__2221)) __PYX_ERR(3, 7645, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2221); + __Pyx_GIVEREF(__pyx_tuple__2221); + + /* "talib/_stream.pxi":7651 + * 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__2222 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__2222)) __PYX_ERR(3, 7651, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2222); + __Pyx_GIVEREF(__pyx_tuple__2222); + + /* "talib/_stream.pxi":7653 + * 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__2223 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__2223)) __PYX_ERR(3, 7653, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2223); + __Pyx_GIVEREF(__pyx_tuple__2223); + + /* "talib/_stream.pxi":7683 + * 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__2224 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__2224)) __PYX_ERR(3, 7683, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2224); + __Pyx_GIVEREF(__pyx_tuple__2224); + + /* "talib/_stream.pxi":7685 + * 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__2225 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__2225)) __PYX_ERR(3, 7685, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2225); + __Pyx_GIVEREF(__pyx_tuple__2225); + + /* "talib/_stream.pxi":7719 + * 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__2226 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__2226)) __PYX_ERR(3, 7719, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2226); + __Pyx_GIVEREF(__pyx_tuple__2226); + + /* "talib/_stream.pxi":7721 + * 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__2227 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__2227)) __PYX_ERR(3, 7721, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2227); + __Pyx_GIVEREF(__pyx_tuple__2227); + + /* "talib/_stream.pxi":7755 + * 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__2228 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__2228)) __PYX_ERR(3, 7755, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2228); + __Pyx_GIVEREF(__pyx_tuple__2228); + + /* "talib/_stream.pxi":7757 + * 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__2229 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__2229)) __PYX_ERR(3, 7757, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2229); + __Pyx_GIVEREF(__pyx_tuple__2229); + + /* "talib/_stream.pxi":7791 + * 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__2230 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__2230)) __PYX_ERR(3, 7791, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2230); + __Pyx_GIVEREF(__pyx_tuple__2230); + + /* "talib/_stream.pxi":7793 + * raise 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__2231 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__2231)) __PYX_ERR(3, 7793, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2231); + __Pyx_GIVEREF(__pyx_tuple__2231); + + /* "talib/_stream.pxi":7798 + * high_data = 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__2232 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__2232)) __PYX_ERR(3, 7798, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2232); + __Pyx_GIVEREF(__pyx_tuple__2232); + + /* "talib/_stream.pxi":7800 + * raise 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__2233 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__2233)) __PYX_ERR(3, 7800, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2233); + __Pyx_GIVEREF(__pyx_tuple__2233); + + /* "talib/_stream.pxi":7805 + * low_data = 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__2234 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__2234)) __PYX_ERR(3, 7805, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2234); + __Pyx_GIVEREF(__pyx_tuple__2234); + + /* "talib/_stream.pxi":7807 + * raise 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__2235 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__2235)) __PYX_ERR(3, 7807, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2235); + __Pyx_GIVEREF(__pyx_tuple__2235); + + /* "talib/_stream.pxi":7813 + * 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__2236 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__2236)) __PYX_ERR(3, 7813, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2236); + __Pyx_GIVEREF(__pyx_tuple__2236); + + /* "talib/_stream.pxi":7815 + * 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__2237 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__2237)) __PYX_ERR(3, 7815, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2237); + __Pyx_GIVEREF(__pyx_tuple__2237); + + /* "talib/_stream.pxi":7849 + * 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__2238 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__2238)) __PYX_ERR(3, 7849, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2238); + __Pyx_GIVEREF(__pyx_tuple__2238); + + /* "talib/_stream.pxi":7851 + * raise 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__2239 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__2239)) __PYX_ERR(3, 7851, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2239); + __Pyx_GIVEREF(__pyx_tuple__2239); + + /* "talib/_stream.pxi":7856 + * high_data = 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__2240 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__2240)) __PYX_ERR(3, 7856, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2240); + __Pyx_GIVEREF(__pyx_tuple__2240); + + /* "talib/_stream.pxi":7858 + * raise 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__2241 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__2241)) __PYX_ERR(3, 7858, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2241); + __Pyx_GIVEREF(__pyx_tuple__2241); + + /* "talib/_stream.pxi":7863 + * low_data = 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__2242 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__2242)) __PYX_ERR(3, 7863, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2242); + __Pyx_GIVEREF(__pyx_tuple__2242); + + /* "talib/_stream.pxi":7865 + * raise 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__2243 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__2243)) __PYX_ERR(3, 7865, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2243); + __Pyx_GIVEREF(__pyx_tuple__2243); + + /* "talib/_stream.pxi":7871 + * 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__2244 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__2244)) __PYX_ERR(3, 7871, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2244); + __Pyx_GIVEREF(__pyx_tuple__2244); + + /* "talib/_stream.pxi":7873 + * 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__2245 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__2245)) __PYX_ERR(3, 7873, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2245); + __Pyx_GIVEREF(__pyx_tuple__2245); + + /* "talib/_stream.pxi":7904 + * 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__2246 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__2246)) __PYX_ERR(3, 7904, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2246); + __Pyx_GIVEREF(__pyx_tuple__2246); + + /* "talib/_stream.pxi":7906 + * 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__2247 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__2247)) __PYX_ERR(3, 7906, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2247); + __Pyx_GIVEREF(__pyx_tuple__2247); + + /* "talib/_stream.pxi":7940 + * 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__2248 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__2248)) __PYX_ERR(3, 7940, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2248); + __Pyx_GIVEREF(__pyx_tuple__2248); + + /* "talib/_stream.pxi":7942 + * raise 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__2249 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__2249)) __PYX_ERR(3, 7942, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2249); + __Pyx_GIVEREF(__pyx_tuple__2249); + + /* "talib/_stream.pxi":7947 + * high_data = 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__2250 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__2250)) __PYX_ERR(3, 7947, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2250); + __Pyx_GIVEREF(__pyx_tuple__2250); + + /* "talib/_stream.pxi":7949 + * raise 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__2251 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__2251)) __PYX_ERR(3, 7949, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2251); + __Pyx_GIVEREF(__pyx_tuple__2251); + + /* "talib/_stream.pxi":7954 + * low_data = 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__2252 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__2252)) __PYX_ERR(3, 7954, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2252); + __Pyx_GIVEREF(__pyx_tuple__2252); + + /* "talib/_stream.pxi":7956 + * raise 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__2253 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__2253)) __PYX_ERR(3, 7956, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2253); + __Pyx_GIVEREF(__pyx_tuple__2253); + + /* "talib/_stream.pxi":7962 + * 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__2254 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__2254)) __PYX_ERR(3, 7962, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2254); + __Pyx_GIVEREF(__pyx_tuple__2254); + + /* "talib/_stream.pxi":7964 + * 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__2255 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__2255)) __PYX_ERR(3, 7964, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2255); + __Pyx_GIVEREF(__pyx_tuple__2255); + + /* "talib/_stream.pxi":7996 + * 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__2256 = PyTuple_Pack(1, __pyx_kp_s_high_is_not_double); if (unlikely(!__pyx_tuple__2256)) __PYX_ERR(3, 7996, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2256); + __Pyx_GIVEREF(__pyx_tuple__2256); + + /* "talib/_stream.pxi":7998 + * raise 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__2257 = PyTuple_Pack(1, __pyx_kp_s_high_has_wrong_dimensions); if (unlikely(!__pyx_tuple__2257)) __PYX_ERR(3, 7998, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2257); + __Pyx_GIVEREF(__pyx_tuple__2257); + + /* "talib/_stream.pxi":8003 + * high_data = 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__2258 = PyTuple_Pack(1, __pyx_kp_s_low_is_not_double); if (unlikely(!__pyx_tuple__2258)) __PYX_ERR(3, 8003, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2258); + __Pyx_GIVEREF(__pyx_tuple__2258); + + /* "talib/_stream.pxi":8005 + * raise 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__2259 = PyTuple_Pack(1, __pyx_kp_s_low_has_wrong_dimensions); if (unlikely(!__pyx_tuple__2259)) __PYX_ERR(3, 8005, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2259); + __Pyx_GIVEREF(__pyx_tuple__2259); + + /* "talib/_stream.pxi":8010 + * low_data = 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__2260 = PyTuple_Pack(1, __pyx_kp_s_close_is_not_double); if (unlikely(!__pyx_tuple__2260)) __PYX_ERR(3, 8010, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2260); + __Pyx_GIVEREF(__pyx_tuple__2260); + + /* "talib/_stream.pxi":8012 + * raise 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__2261 = PyTuple_Pack(1, __pyx_kp_s_close_has_wrong_dimensions); if (unlikely(!__pyx_tuple__2261)) __PYX_ERR(3, 8012, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2261); + __Pyx_GIVEREF(__pyx_tuple__2261); + + /* "talib/_stream.pxi":8018 + * 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__2262 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__2262)) __PYX_ERR(3, 8018, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2262); + __Pyx_GIVEREF(__pyx_tuple__2262); + + /* "talib/_stream.pxi":8020 + * 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__2263 = PyTuple_Pack(1, __pyx_kp_s_input_lengths_are_different); if (unlikely(!__pyx_tuple__2263)) __PYX_ERR(3, 8020, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2263); + __Pyx_GIVEREF(__pyx_tuple__2263); + + /* "talib/_stream.pxi":8050 + * 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__2264 = PyTuple_Pack(1, __pyx_kp_s_real_is_not_double); if (unlikely(!__pyx_tuple__2264)) __PYX_ERR(3, 8050, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2264); + __Pyx_GIVEREF(__pyx_tuple__2264); + + /* "talib/_stream.pxi":8052 + * 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__2265 = PyTuple_Pack(1, __pyx_kp_s_real_has_wrong_dimensions); if (unlikely(!__pyx_tuple__2265)) __PYX_ERR(3, 8052, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2265); + __Pyx_GIVEREF(__pyx_tuple__2265); + + /* "../../../../../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__2266 = PyTuple_Pack(1, __pyx_kp_u_ndarray_is_not_C_contiguous); if (unlikely(!__pyx_tuple__2266)) __PYX_ERR(4, 218, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2266); + __Pyx_GIVEREF(__pyx_tuple__2266); + + /* "../../../../../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__2267 = PyTuple_Pack(1, __pyx_kp_u_ndarray_is_not_Fortran_contiguou); if (unlikely(!__pyx_tuple__2267)) __PYX_ERR(4, 222, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2267); + __Pyx_GIVEREF(__pyx_tuple__2267); + + /* "../../../../../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__2268 = PyTuple_Pack(1, __pyx_kp_u_Non_native_byte_order_not_suppor); if (unlikely(!__pyx_tuple__2268)) __PYX_ERR(4, 259, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2268); + __Pyx_GIVEREF(__pyx_tuple__2268); + + /* "../../../../../usr/local/lib/python2.7/site-packages/Cython/Includes/numpy/__init__.pxd":799 + * + * if (end - f) - (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__2269 = PyTuple_Pack(1, __pyx_kp_u_Format_string_allocated_too_shor); if (unlikely(!__pyx_tuple__2269)) __PYX_ERR(4, 799, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2269); + __Pyx_GIVEREF(__pyx_tuple__2269); + + /* "../../../../../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__2270 = PyTuple_Pack(1, __pyx_kp_u_Non_native_byte_order_not_suppor); if (unlikely(!__pyx_tuple__2270)) __PYX_ERR(4, 803, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2270); + __Pyx_GIVEREF(__pyx_tuple__2270); + + /* "../../../../../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__2271 = PyTuple_Pack(1, __pyx_kp_u_Format_string_allocated_too_shor_2); if (unlikely(!__pyx_tuple__2271)) __PYX_ERR(4, 823, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2271); + __Pyx_GIVEREF(__pyx_tuple__2271); + + /* "talib/_common.pxi":36 + * function_name, ret_code, ta_errors[ret_code])) + * + * def _ta_initialize(): # <<<<<<<<<<<<<< + * cdef TA_RetCode ret_code + * ret_code = lib.TA_Initialize() + */ + __pyx_tuple__2272 = PyTuple_Pack(1, __pyx_n_s_ret_code); if (unlikely(!__pyx_tuple__2272)) __PYX_ERR(0, 36, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2272); + __Pyx_GIVEREF(__pyx_tuple__2272); + __pyx_codeobj__2273 = (PyObject*)__Pyx_PyCode_New(0, 0, 1, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2272, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l, __pyx_n_s_ta_initialize, 36, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2273)) __PYX_ERR(0, 36, __pyx_L1_error) + + /* "talib/_common.pxi":41 + * _ta_check_success('TA_Initialize', ret_code) + * + * def _ta_shutdown(): # <<<<<<<<<<<<<< + * cdef TA_RetCode ret_code + * ret_code = lib.TA_Shutdown() + */ + __pyx_tuple__2274 = PyTuple_Pack(1, __pyx_n_s_ret_code); if (unlikely(!__pyx_tuple__2274)) __PYX_ERR(0, 41, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2274); + __Pyx_GIVEREF(__pyx_tuple__2274); + __pyx_codeobj__2275 = (PyObject*)__Pyx_PyCode_New(0, 0, 1, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2274, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l, __pyx_n_s_ta_shutdown, 41, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2275)) __PYX_ERR(0, 41, __pyx_L1_error) + + /* "talib/_common.pxi":47 + * + * class MA_Type(object): + * SMA, EMA, WMA, DEMA, TEMA, TRIMA, KAMA, MAMA, T3 = range(9) # <<<<<<<<<<<<<< + * + * def __init__(self): + */ + __pyx_tuple__2276 = PyTuple_Pack(1, __pyx_int_9); if (unlikely(!__pyx_tuple__2276)) __PYX_ERR(0, 47, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2276); + __Pyx_GIVEREF(__pyx_tuple__2276); + + /* "talib/_common.pxi":49 + * SMA, EMA, WMA, DEMA, TEMA, TRIMA, KAMA, MAMA, T3 = range(9) + * + * def __init__(self): # <<<<<<<<<<<<<< + * self._lookup = { + * MA_Type.SMA: 'Simple Moving Average', + */ + __pyx_tuple__2277 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__2277)) __PYX_ERR(0, 49, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2277); + __Pyx_GIVEREF(__pyx_tuple__2277); + __pyx_codeobj__2278 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2277, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l, __pyx_n_s_init, 49, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2278)) __PYX_ERR(0, 49, __pyx_L1_error) + + /* "talib/_common.pxi":62 + * } + * + * def __getitem__(self, type_): # <<<<<<<<<<<<<< + * return self._lookup[type_] + * + */ + __pyx_tuple__2279 = PyTuple_Pack(2, __pyx_n_s_self, __pyx_n_s_type); if (unlikely(!__pyx_tuple__2279)) __PYX_ERR(0, 62, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2279); + __Pyx_GIVEREF(__pyx_tuple__2279); + __pyx_codeobj__2280 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2279, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l, __pyx_n_s_getitem, 62, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2280)) __PYX_ERR(0, 62, __pyx_L1_error) + + /* "talib/_common.pxi":76 + * _ta_func_unst_ids[name] = i + * + * def _ta_set_unstable_period(name, period): # <<<<<<<<<<<<<< + * cdef TA_RetCode ret_code + * cdef TA_FuncUnstId id = _ta_func_unst_ids[name] + */ + __pyx_tuple__2281 = PyTuple_Pack(4, __pyx_n_s_name, __pyx_n_s_period, __pyx_n_s_ret_code, __pyx_n_s_id); if (unlikely(!__pyx_tuple__2281)) __PYX_ERR(0, 76, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2281); + __Pyx_GIVEREF(__pyx_tuple__2281); + __pyx_codeobj__2282 = (PyObject*)__Pyx_PyCode_New(2, 0, 4, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2281, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l, __pyx_n_s_ta_set_unstable_period, 76, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2282)) __PYX_ERR(0, 76, __pyx_L1_error) + + /* "talib/_common.pxi":82 + * _ta_check_success('TA_SetUnstablePeriod', ret_code) + * + * def _ta_get_unstable_period(name): # <<<<<<<<<<<<<< + * cdef unsigned int period + * cdef TA_FuncUnstId id = _ta_func_unst_ids[name] + */ + __pyx_tuple__2283 = PyTuple_Pack(3, __pyx_n_s_name, __pyx_n_s_period, __pyx_n_s_id); if (unlikely(!__pyx_tuple__2283)) __PYX_ERR(0, 82, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2283); + __Pyx_GIVEREF(__pyx_tuple__2283); + __pyx_codeobj__2284 = (PyObject*)__Pyx_PyCode_New(1, 0, 3, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2283, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l, __pyx_n_s_ta_get_unstable_period, 82, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2284)) __PYX_ERR(0, 82, __pyx_L1_error) + + /* "talib/_func.pxi":10 + * @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__2285 = PyTuple_Pack(13, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2285)) __PYX_ERR(2, 10, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2285); + __Pyx_GIVEREF(__pyx_tuple__2285); + __pyx_codeobj__2286 = (PyObject*)__Pyx_PyCode_New(1, 0, 13, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2285, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_ACOS, 10, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2286)) __PYX_ERR(2, 10, __pyx_L1_error) + + /* "talib/_func.pxi":59 + * @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__2287 = PyTuple_Pack(19, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2287)) __PYX_ERR(2, 59, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2287); + __Pyx_GIVEREF(__pyx_tuple__2287); + __pyx_codeobj__2288 = (PyObject*)__Pyx_PyCode_New(4, 0, 19, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2287, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_AD, 59, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2288)) __PYX_ERR(2, 59, __pyx_L1_error) + + /* "talib/_func.pxi":147 + * @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__2289 = PyTuple_Pack(15, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2289)) __PYX_ERR(2, 147, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2289); + __Pyx_GIVEREF(__pyx_tuple__2289); + __pyx_codeobj__2290 = (PyObject*)__Pyx_PyCode_New(2, 0, 15, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2289, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_ADD, 147, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2290)) __PYX_ERR(2, 147, __pyx_L1_error) + + /* "talib/_func.pxi":210 + * @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__2291 = PyTuple_Pack(21, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2291)) __PYX_ERR(2, 210, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2291); + __Pyx_GIVEREF(__pyx_tuple__2291); + __pyx_codeobj__2292 = (PyObject*)__Pyx_PyCode_New(6, 0, 21, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2291, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_ADOSC, 210, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2292)) __PYX_ERR(2, 210, __pyx_L1_error) + + /* "talib/_func.pxi":301 + * @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__2293 = PyTuple_Pack(18, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2293)) __PYX_ERR(2, 301, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2293); + __Pyx_GIVEREF(__pyx_tuple__2293); + __pyx_codeobj__2294 = (PyObject*)__Pyx_PyCode_New(4, 0, 18, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2293, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_ADX, 301, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2294)) __PYX_ERR(2, 301, __pyx_L1_error) + + /* "talib/_func.pxi":378 + * @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__2295 = PyTuple_Pack(18, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2295)) __PYX_ERR(2, 378, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2295); + __Pyx_GIVEREF(__pyx_tuple__2295); + __pyx_codeobj__2296 = (PyObject*)__Pyx_PyCode_New(4, 0, 18, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2295, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_ADXR, 378, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2296)) __PYX_ERR(2, 378, __pyx_L1_error) + + /* "talib/_func.pxi":455 + * @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__2297 = PyTuple_Pack(16, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2297)) __PYX_ERR(2, 455, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2297); + __Pyx_GIVEREF(__pyx_tuple__2297); + __pyx_codeobj__2298 = (PyObject*)__Pyx_PyCode_New(4, 0, 16, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2297, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_APO, 455, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2298)) __PYX_ERR(2, 455, __pyx_L1_error) + + /* "talib/_func.pxi":508 + * @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__2299 = PyTuple_Pack(18, __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_outaroondown_data, __pyx_n_s_outaroonup, __pyx_n_s_outaroonup_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2299)) __PYX_ERR(2, 508, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2299); + __Pyx_GIVEREF(__pyx_tuple__2299); + __pyx_codeobj__2300 = (PyObject*)__Pyx_PyCode_New(3, 0, 18, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2299, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_AROON, 508, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2300)) __PYX_ERR(2, 508, __pyx_L1_error) + + /* "talib/_func.pxi":579 + * @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__2301 = PyTuple_Pack(16, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2301)) __PYX_ERR(2, 579, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2301); + __Pyx_GIVEREF(__pyx_tuple__2301); + __pyx_codeobj__2302 = (PyObject*)__Pyx_PyCode_New(3, 0, 16, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2301, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_AROONOSC, 579, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2302)) __PYX_ERR(2, 579, __pyx_L1_error) + + /* "talib/_func.pxi":643 + * @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__2303 = PyTuple_Pack(13, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2303)) __PYX_ERR(2, 643, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2303); + __Pyx_GIVEREF(__pyx_tuple__2303); + __pyx_codeobj__2304 = (PyObject*)__Pyx_PyCode_New(1, 0, 13, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2303, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_ASIN, 643, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2304)) __PYX_ERR(2, 643, __pyx_L1_error) + + /* "talib/_func.pxi":692 + * @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__2305 = PyTuple_Pack(13, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2305)) __PYX_ERR(2, 692, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2305); + __Pyx_GIVEREF(__pyx_tuple__2305); + __pyx_codeobj__2306 = (PyObject*)__Pyx_PyCode_New(1, 0, 13, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2305, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_ATAN, 692, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2306)) __PYX_ERR(2, 692, __pyx_L1_error) + + /* "talib/_func.pxi":741 + * @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__2307 = PyTuple_Pack(18, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2307)) __PYX_ERR(2, 741, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2307); + __Pyx_GIVEREF(__pyx_tuple__2307); + __pyx_codeobj__2308 = (PyObject*)__Pyx_PyCode_New(4, 0, 18, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2307, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_ATR, 741, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2308)) __PYX_ERR(2, 741, __pyx_L1_error) + + /* "talib/_func.pxi":818 + * @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__2309 = PyTuple_Pack(19, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2309)) __PYX_ERR(2, 818, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2309); + __Pyx_GIVEREF(__pyx_tuple__2309); + __pyx_codeobj__2310 = (PyObject*)__Pyx_PyCode_New(4, 0, 19, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2309, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_AVGPRICE, 818, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2310)) __PYX_ERR(2, 818, __pyx_L1_error) + + /* "talib/_func.pxi":906 + * @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__2311 = PyTuple_Pack(21, __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_outrealupperband_data, __pyx_n_s_outrealmiddleband, __pyx_n_s_outrealmiddleband_data, __pyx_n_s_outreallowerband, __pyx_n_s_outreallowerband_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2311)) __PYX_ERR(2, 906, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2311); + __Pyx_GIVEREF(__pyx_tuple__2311); + __pyx_codeobj__2312 = (PyObject*)__Pyx_PyCode_New(5, 0, 21, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2311, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_BBANDS, 906, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2312)) __PYX_ERR(2, 906, __pyx_L1_error) + + /* "talib/_func.pxi":974 + * @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__2313 = PyTuple_Pack(16, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2313)) __PYX_ERR(2, 974, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2313); + __Pyx_GIVEREF(__pyx_tuple__2313); + __pyx_codeobj__2314 = (PyObject*)__Pyx_PyCode_New(3, 0, 16, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2313, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_BETA, 974, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2314)) __PYX_ERR(2, 974, __pyx_L1_error) + + /* "talib/_func.pxi":1039 + * @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__2315 = PyTuple_Pack(19, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2315)) __PYX_ERR(2, 1039, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2315); + __Pyx_GIVEREF(__pyx_tuple__2315); + __pyx_codeobj__2316 = (PyObject*)__Pyx_PyCode_New(4, 0, 19, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2315, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_BOP, 1039, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2316)) __PYX_ERR(2, 1039, __pyx_L1_error) + + /* "talib/_func.pxi":1127 + * @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__2317 = PyTuple_Pack(18, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2317)) __PYX_ERR(2, 1127, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2317); + __Pyx_GIVEREF(__pyx_tuple__2317); + __pyx_codeobj__2318 = (PyObject*)__Pyx_PyCode_New(4, 0, 18, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2317, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_CCI, 1127, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2318)) __PYX_ERR(2, 1127, __pyx_L1_error) + + /* "talib/_func.pxi":1204 + * @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__2319 = PyTuple_Pack(19, __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, __pyx_n_s_outinteger_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2319)) __PYX_ERR(2, 1204, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2319); + __Pyx_GIVEREF(__pyx_tuple__2319); + __pyx_codeobj__2320 = (PyObject*)__Pyx_PyCode_New(4, 0, 19, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2319, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_CDL2CROWS, 1204, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2320)) __PYX_ERR(2, 1204, __pyx_L1_error) + + /* "talib/_func.pxi":1292 + * @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__2321 = PyTuple_Pack(19, __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, __pyx_n_s_outinteger_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2321)) __PYX_ERR(2, 1292, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2321); + __Pyx_GIVEREF(__pyx_tuple__2321); + __pyx_codeobj__2322 = (PyObject*)__Pyx_PyCode_New(4, 0, 19, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2321, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_CDL3BLACKCROWS, 1292, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2322)) __PYX_ERR(2, 1292, __pyx_L1_error) + + /* "talib/_func.pxi":1380 + * @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__2323 = PyTuple_Pack(19, __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, __pyx_n_s_outinteger_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2323)) __PYX_ERR(2, 1380, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2323); + __Pyx_GIVEREF(__pyx_tuple__2323); + __pyx_codeobj__2324 = (PyObject*)__Pyx_PyCode_New(4, 0, 19, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2323, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_CDL3INSIDE, 1380, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2324)) __PYX_ERR(2, 1380, __pyx_L1_error) + + /* "talib/_func.pxi":1468 + * @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__2325 = PyTuple_Pack(19, __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, __pyx_n_s_outinteger_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2325)) __PYX_ERR(2, 1468, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2325); + __Pyx_GIVEREF(__pyx_tuple__2325); + __pyx_codeobj__2326 = (PyObject*)__Pyx_PyCode_New(4, 0, 19, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2325, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_CDL3LINESTRIKE, 1468, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2326)) __PYX_ERR(2, 1468, __pyx_L1_error) + + /* "talib/_func.pxi":1556 + * @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__2327 = PyTuple_Pack(19, __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, __pyx_n_s_outinteger_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2327)) __PYX_ERR(2, 1556, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2327); + __Pyx_GIVEREF(__pyx_tuple__2327); + __pyx_codeobj__2328 = (PyObject*)__Pyx_PyCode_New(4, 0, 19, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2327, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_CDL3OUTSIDE, 1556, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2328)) __PYX_ERR(2, 1556, __pyx_L1_error) + + /* "talib/_func.pxi":1644 + * @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__2329 = PyTuple_Pack(19, __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, __pyx_n_s_outinteger_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2329)) __PYX_ERR(2, 1644, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2329); + __Pyx_GIVEREF(__pyx_tuple__2329); + __pyx_codeobj__2330 = (PyObject*)__Pyx_PyCode_New(4, 0, 19, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2329, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_CDL3STARSINSOUTH, 1644, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2330)) __PYX_ERR(2, 1644, __pyx_L1_error) + + /* "talib/_func.pxi":1732 + * @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__2331 = PyTuple_Pack(19, __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, __pyx_n_s_outinteger_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2331)) __PYX_ERR(2, 1732, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2331); + __Pyx_GIVEREF(__pyx_tuple__2331); + __pyx_codeobj__2332 = (PyObject*)__Pyx_PyCode_New(4, 0, 19, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2331, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_CDL3WHITESOLDIERS, 1732, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2332)) __PYX_ERR(2, 1732, __pyx_L1_error) + + /* "talib/_func.pxi":1820 + * @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__2333 = PyTuple_Pack(20, __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, __pyx_n_s_outinteger_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2333)) __PYX_ERR(2, 1820, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2333); + __Pyx_GIVEREF(__pyx_tuple__2333); + __pyx_codeobj__2334 = (PyObject*)__Pyx_PyCode_New(5, 0, 20, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2333, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_CDLABANDONEDBABY, 1820, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2334)) __PYX_ERR(2, 1820, __pyx_L1_error) + + /* "talib/_func.pxi":1910 + * @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__2335 = PyTuple_Pack(19, __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, __pyx_n_s_outinteger_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2335)) __PYX_ERR(2, 1910, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2335); + __Pyx_GIVEREF(__pyx_tuple__2335); + __pyx_codeobj__2336 = (PyObject*)__Pyx_PyCode_New(4, 0, 19, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2335, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_CDLADVANCEBLOCK, 1910, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2336)) __PYX_ERR(2, 1910, __pyx_L1_error) + + /* "talib/_func.pxi":1998 + * @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__2337 = PyTuple_Pack(19, __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, __pyx_n_s_outinteger_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2337)) __PYX_ERR(2, 1998, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2337); + __Pyx_GIVEREF(__pyx_tuple__2337); + __pyx_codeobj__2338 = (PyObject*)__Pyx_PyCode_New(4, 0, 19, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2337, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_CDLBELTHOLD, 1998, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2338)) __PYX_ERR(2, 1998, __pyx_L1_error) + + /* "talib/_func.pxi":2086 + * @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__2339 = PyTuple_Pack(19, __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, __pyx_n_s_outinteger_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2339)) __PYX_ERR(2, 2086, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2339); + __Pyx_GIVEREF(__pyx_tuple__2339); + __pyx_codeobj__2340 = (PyObject*)__Pyx_PyCode_New(4, 0, 19, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2339, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_CDLBREAKAWAY, 2086, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2340)) __PYX_ERR(2, 2086, __pyx_L1_error) + + /* "talib/_func.pxi":2174 + * @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__2341 = PyTuple_Pack(19, __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, __pyx_n_s_outinteger_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2341)) __PYX_ERR(2, 2174, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2341); + __Pyx_GIVEREF(__pyx_tuple__2341); + __pyx_codeobj__2342 = (PyObject*)__Pyx_PyCode_New(4, 0, 19, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2341, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_CDLCLOSINGMARUBOZU, 2174, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2342)) __PYX_ERR(2, 2174, __pyx_L1_error) + + /* "talib/_func.pxi":2262 + * @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__2343 = PyTuple_Pack(19, __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, __pyx_n_s_outinteger_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2343)) __PYX_ERR(2, 2262, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2343); + __Pyx_GIVEREF(__pyx_tuple__2343); + __pyx_codeobj__2344 = (PyObject*)__Pyx_PyCode_New(4, 0, 19, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2343, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_CDLCONCEALBABYSWALL, 2262, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2344)) __PYX_ERR(2, 2262, __pyx_L1_error) + + /* "talib/_func.pxi":2350 + * @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__2345 = PyTuple_Pack(19, __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, __pyx_n_s_outinteger_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2345)) __PYX_ERR(2, 2350, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2345); + __Pyx_GIVEREF(__pyx_tuple__2345); + __pyx_codeobj__2346 = (PyObject*)__Pyx_PyCode_New(4, 0, 19, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2345, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_CDLCOUNTERATTACK, 2350, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2346)) __PYX_ERR(2, 2350, __pyx_L1_error) + + /* "talib/_func.pxi":2438 + * @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__2347 = PyTuple_Pack(20, __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, __pyx_n_s_outinteger_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2347)) __PYX_ERR(2, 2438, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2347); + __Pyx_GIVEREF(__pyx_tuple__2347); + __pyx_codeobj__2348 = (PyObject*)__Pyx_PyCode_New(5, 0, 20, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2347, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_CDLDARKCLOUDCOVER, 2438, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2348)) __PYX_ERR(2, 2438, __pyx_L1_error) + + /* "talib/_func.pxi":2528 + * @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__2349 = PyTuple_Pack(19, __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, __pyx_n_s_outinteger_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2349)) __PYX_ERR(2, 2528, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2349); + __Pyx_GIVEREF(__pyx_tuple__2349); + __pyx_codeobj__2350 = (PyObject*)__Pyx_PyCode_New(4, 0, 19, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2349, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_CDLDOJI, 2528, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2350)) __PYX_ERR(2, 2528, __pyx_L1_error) + + /* "talib/_func.pxi":2616 + * @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__2351 = PyTuple_Pack(19, __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, __pyx_n_s_outinteger_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2351)) __PYX_ERR(2, 2616, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2351); + __Pyx_GIVEREF(__pyx_tuple__2351); + __pyx_codeobj__2352 = (PyObject*)__Pyx_PyCode_New(4, 0, 19, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2351, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_CDLDOJISTAR, 2616, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2352)) __PYX_ERR(2, 2616, __pyx_L1_error) + + /* "talib/_func.pxi":2704 + * @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__2353 = PyTuple_Pack(19, __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, __pyx_n_s_outinteger_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2353)) __PYX_ERR(2, 2704, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2353); + __Pyx_GIVEREF(__pyx_tuple__2353); + __pyx_codeobj__2354 = (PyObject*)__Pyx_PyCode_New(4, 0, 19, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2353, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_CDLDRAGONFLYDOJI, 2704, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2354)) __PYX_ERR(2, 2704, __pyx_L1_error) + + /* "talib/_func.pxi":2792 + * @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__2355 = PyTuple_Pack(19, __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, __pyx_n_s_outinteger_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2355)) __PYX_ERR(2, 2792, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2355); + __Pyx_GIVEREF(__pyx_tuple__2355); + __pyx_codeobj__2356 = (PyObject*)__Pyx_PyCode_New(4, 0, 19, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2355, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_CDLENGULFING, 2792, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2356)) __PYX_ERR(2, 2792, __pyx_L1_error) + + /* "talib/_func.pxi":2880 + * @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__2357 = PyTuple_Pack(20, __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, __pyx_n_s_outinteger_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2357)) __PYX_ERR(2, 2880, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2357); + __Pyx_GIVEREF(__pyx_tuple__2357); + __pyx_codeobj__2358 = (PyObject*)__Pyx_PyCode_New(5, 0, 20, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2357, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_CDLEVENINGDOJISTAR, 2880, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2358)) __PYX_ERR(2, 2880, __pyx_L1_error) + + /* "talib/_func.pxi":2970 + * @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__2359 = PyTuple_Pack(20, __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, __pyx_n_s_outinteger_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2359)) __PYX_ERR(2, 2970, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2359); + __Pyx_GIVEREF(__pyx_tuple__2359); + __pyx_codeobj__2360 = (PyObject*)__Pyx_PyCode_New(5, 0, 20, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2359, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_CDLEVENINGSTAR, 2970, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2360)) __PYX_ERR(2, 2970, __pyx_L1_error) + + /* "talib/_func.pxi":3060 + * @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__2361 = PyTuple_Pack(19, __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, __pyx_n_s_outinteger_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2361)) __PYX_ERR(2, 3060, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2361); + __Pyx_GIVEREF(__pyx_tuple__2361); + __pyx_codeobj__2362 = (PyObject*)__Pyx_PyCode_New(4, 0, 19, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2361, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_CDLGAPSIDESIDEWHITE, 3060, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2362)) __PYX_ERR(2, 3060, __pyx_L1_error) + + /* "talib/_func.pxi":3148 + * @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__2363 = PyTuple_Pack(19, __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, __pyx_n_s_outinteger_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2363)) __PYX_ERR(2, 3148, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2363); + __Pyx_GIVEREF(__pyx_tuple__2363); + __pyx_codeobj__2364 = (PyObject*)__Pyx_PyCode_New(4, 0, 19, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2363, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_CDLGRAVESTONEDOJI, 3148, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2364)) __PYX_ERR(2, 3148, __pyx_L1_error) + + /* "talib/_func.pxi":3236 + * @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__2365 = PyTuple_Pack(19, __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, __pyx_n_s_outinteger_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2365)) __PYX_ERR(2, 3236, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2365); + __Pyx_GIVEREF(__pyx_tuple__2365); + __pyx_codeobj__2366 = (PyObject*)__Pyx_PyCode_New(4, 0, 19, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2365, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_CDLHAMMER, 3236, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2366)) __PYX_ERR(2, 3236, __pyx_L1_error) + + /* "talib/_func.pxi":3324 + * @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__2367 = PyTuple_Pack(19, __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, __pyx_n_s_outinteger_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2367)) __PYX_ERR(2, 3324, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2367); + __Pyx_GIVEREF(__pyx_tuple__2367); + __pyx_codeobj__2368 = (PyObject*)__Pyx_PyCode_New(4, 0, 19, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2367, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_CDLHANGINGMAN, 3324, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2368)) __PYX_ERR(2, 3324, __pyx_L1_error) + + /* "talib/_func.pxi":3412 + * @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__2369 = PyTuple_Pack(19, __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, __pyx_n_s_outinteger_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2369)) __PYX_ERR(2, 3412, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2369); + __Pyx_GIVEREF(__pyx_tuple__2369); + __pyx_codeobj__2370 = (PyObject*)__Pyx_PyCode_New(4, 0, 19, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2369, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_CDLHARAMI, 3412, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2370)) __PYX_ERR(2, 3412, __pyx_L1_error) + + /* "talib/_func.pxi":3500 + * @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__2371 = PyTuple_Pack(19, __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, __pyx_n_s_outinteger_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2371)) __PYX_ERR(2, 3500, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2371); + __Pyx_GIVEREF(__pyx_tuple__2371); + __pyx_codeobj__2372 = (PyObject*)__Pyx_PyCode_New(4, 0, 19, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2371, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_CDLHARAMICROSS, 3500, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2372)) __PYX_ERR(2, 3500, __pyx_L1_error) + + /* "talib/_func.pxi":3588 + * @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__2373 = PyTuple_Pack(19, __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, __pyx_n_s_outinteger_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2373)) __PYX_ERR(2, 3588, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2373); + __Pyx_GIVEREF(__pyx_tuple__2373); + __pyx_codeobj__2374 = (PyObject*)__Pyx_PyCode_New(4, 0, 19, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2373, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_CDLHIGHWAVE, 3588, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2374)) __PYX_ERR(2, 3588, __pyx_L1_error) + + /* "talib/_func.pxi":3676 + * @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__2375 = PyTuple_Pack(19, __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, __pyx_n_s_outinteger_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2375)) __PYX_ERR(2, 3676, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2375); + __Pyx_GIVEREF(__pyx_tuple__2375); + __pyx_codeobj__2376 = (PyObject*)__Pyx_PyCode_New(4, 0, 19, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2375, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_CDLHIKKAKE, 3676, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2376)) __PYX_ERR(2, 3676, __pyx_L1_error) + + /* "talib/_func.pxi":3764 + * @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__2377 = PyTuple_Pack(19, __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, __pyx_n_s_outinteger_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2377)) __PYX_ERR(2, 3764, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2377); + __Pyx_GIVEREF(__pyx_tuple__2377); + __pyx_codeobj__2378 = (PyObject*)__Pyx_PyCode_New(4, 0, 19, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2377, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_CDLHIKKAKEMOD, 3764, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2378)) __PYX_ERR(2, 3764, __pyx_L1_error) + + /* "talib/_func.pxi":3852 + * @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__2379 = PyTuple_Pack(19, __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, __pyx_n_s_outinteger_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2379)) __PYX_ERR(2, 3852, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2379); + __Pyx_GIVEREF(__pyx_tuple__2379); + __pyx_codeobj__2380 = (PyObject*)__Pyx_PyCode_New(4, 0, 19, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2379, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_CDLHOMINGPIGEON, 3852, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2380)) __PYX_ERR(2, 3852, __pyx_L1_error) + + /* "talib/_func.pxi":3940 + * @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__2381 = PyTuple_Pack(19, __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, __pyx_n_s_outinteger_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2381)) __PYX_ERR(2, 3940, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2381); + __Pyx_GIVEREF(__pyx_tuple__2381); + __pyx_codeobj__2382 = (PyObject*)__Pyx_PyCode_New(4, 0, 19, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2381, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_CDLIDENTICAL3CROWS, 3940, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2382)) __PYX_ERR(2, 3940, __pyx_L1_error) + + /* "talib/_func.pxi":4028 + * @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__2383 = PyTuple_Pack(19, __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, __pyx_n_s_outinteger_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2383)) __PYX_ERR(2, 4028, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2383); + __Pyx_GIVEREF(__pyx_tuple__2383); + __pyx_codeobj__2384 = (PyObject*)__Pyx_PyCode_New(4, 0, 19, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2383, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_CDLINNECK, 4028, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2384)) __PYX_ERR(2, 4028, __pyx_L1_error) + + /* "talib/_func.pxi":4116 + * @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__2385 = PyTuple_Pack(19, __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, __pyx_n_s_outinteger_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2385)) __PYX_ERR(2, 4116, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2385); + __Pyx_GIVEREF(__pyx_tuple__2385); + __pyx_codeobj__2386 = (PyObject*)__Pyx_PyCode_New(4, 0, 19, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2385, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_CDLINVERTEDHAMMER, 4116, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2386)) __PYX_ERR(2, 4116, __pyx_L1_error) + + /* "talib/_func.pxi":4204 + * @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__2387 = PyTuple_Pack(19, __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, __pyx_n_s_outinteger_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2387)) __PYX_ERR(2, 4204, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2387); + __Pyx_GIVEREF(__pyx_tuple__2387); + __pyx_codeobj__2388 = (PyObject*)__Pyx_PyCode_New(4, 0, 19, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2387, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_CDLKICKING, 4204, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2388)) __PYX_ERR(2, 4204, __pyx_L1_error) + + /* "talib/_func.pxi":4292 + * @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__2389 = PyTuple_Pack(19, __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, __pyx_n_s_outinteger_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2389)) __PYX_ERR(2, 4292, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2389); + __Pyx_GIVEREF(__pyx_tuple__2389); + __pyx_codeobj__2390 = (PyObject*)__Pyx_PyCode_New(4, 0, 19, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2389, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_CDLKICKINGBYLENGTH, 4292, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2390)) __PYX_ERR(2, 4292, __pyx_L1_error) + + /* "talib/_func.pxi":4380 + * @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__2391 = PyTuple_Pack(19, __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, __pyx_n_s_outinteger_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2391)) __PYX_ERR(2, 4380, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2391); + __Pyx_GIVEREF(__pyx_tuple__2391); + __pyx_codeobj__2392 = (PyObject*)__Pyx_PyCode_New(4, 0, 19, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2391, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_CDLLADDERBOTTOM, 4380, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2392)) __PYX_ERR(2, 4380, __pyx_L1_error) + + /* "talib/_func.pxi":4468 + * @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__2393 = PyTuple_Pack(19, __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, __pyx_n_s_outinteger_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2393)) __PYX_ERR(2, 4468, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2393); + __Pyx_GIVEREF(__pyx_tuple__2393); + __pyx_codeobj__2394 = (PyObject*)__Pyx_PyCode_New(4, 0, 19, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2393, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_CDLLONGLEGGEDDOJI, 4468, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2394)) __PYX_ERR(2, 4468, __pyx_L1_error) + + /* "talib/_func.pxi":4556 + * @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__2395 = PyTuple_Pack(19, __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, __pyx_n_s_outinteger_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2395)) __PYX_ERR(2, 4556, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2395); + __Pyx_GIVEREF(__pyx_tuple__2395); + __pyx_codeobj__2396 = (PyObject*)__Pyx_PyCode_New(4, 0, 19, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2395, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_CDLLONGLINE, 4556, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2396)) __PYX_ERR(2, 4556, __pyx_L1_error) + + /* "talib/_func.pxi":4644 + * @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__2397 = PyTuple_Pack(19, __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, __pyx_n_s_outinteger_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2397)) __PYX_ERR(2, 4644, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2397); + __Pyx_GIVEREF(__pyx_tuple__2397); + __pyx_codeobj__2398 = (PyObject*)__Pyx_PyCode_New(4, 0, 19, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2397, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_CDLMARUBOZU, 4644, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2398)) __PYX_ERR(2, 4644, __pyx_L1_error) + + /* "talib/_func.pxi":4732 + * @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__2399 = PyTuple_Pack(19, __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, __pyx_n_s_outinteger_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2399)) __PYX_ERR(2, 4732, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2399); + __Pyx_GIVEREF(__pyx_tuple__2399); + __pyx_codeobj__2400 = (PyObject*)__Pyx_PyCode_New(4, 0, 19, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2399, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_CDLMATCHINGLOW, 4732, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2400)) __PYX_ERR(2, 4732, __pyx_L1_error) + + /* "talib/_func.pxi":4820 + * @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__2401 = PyTuple_Pack(20, __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, __pyx_n_s_outinteger_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2401)) __PYX_ERR(2, 4820, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2401); + __Pyx_GIVEREF(__pyx_tuple__2401); + __pyx_codeobj__2402 = (PyObject*)__Pyx_PyCode_New(5, 0, 20, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2401, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_CDLMATHOLD, 4820, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2402)) __PYX_ERR(2, 4820, __pyx_L1_error) + + /* "talib/_func.pxi":4910 + * @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__2403 = PyTuple_Pack(20, __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, __pyx_n_s_outinteger_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2403)) __PYX_ERR(2, 4910, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2403); + __Pyx_GIVEREF(__pyx_tuple__2403); + __pyx_codeobj__2404 = (PyObject*)__Pyx_PyCode_New(5, 0, 20, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2403, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_CDLMORNINGDOJISTAR, 4910, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2404)) __PYX_ERR(2, 4910, __pyx_L1_error) + + /* "talib/_func.pxi":5000 + * @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__2405 = PyTuple_Pack(20, __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, __pyx_n_s_outinteger_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2405)) __PYX_ERR(2, 5000, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2405); + __Pyx_GIVEREF(__pyx_tuple__2405); + __pyx_codeobj__2406 = (PyObject*)__Pyx_PyCode_New(5, 0, 20, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2405, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_CDLMORNINGSTAR, 5000, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2406)) __PYX_ERR(2, 5000, __pyx_L1_error) + + /* "talib/_func.pxi":5090 + * @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__2407 = PyTuple_Pack(19, __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, __pyx_n_s_outinteger_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2407)) __PYX_ERR(2, 5090, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2407); + __Pyx_GIVEREF(__pyx_tuple__2407); + __pyx_codeobj__2408 = (PyObject*)__Pyx_PyCode_New(4, 0, 19, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2407, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_CDLONNECK, 5090, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2408)) __PYX_ERR(2, 5090, __pyx_L1_error) + + /* "talib/_func.pxi":5178 + * @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__2409 = PyTuple_Pack(19, __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, __pyx_n_s_outinteger_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2409)) __PYX_ERR(2, 5178, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2409); + __Pyx_GIVEREF(__pyx_tuple__2409); + __pyx_codeobj__2410 = (PyObject*)__Pyx_PyCode_New(4, 0, 19, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2409, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_CDLPIERCING, 5178, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2410)) __PYX_ERR(2, 5178, __pyx_L1_error) + + /* "talib/_func.pxi":5266 + * @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__2411 = PyTuple_Pack(19, __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, __pyx_n_s_outinteger_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2411)) __PYX_ERR(2, 5266, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2411); + __Pyx_GIVEREF(__pyx_tuple__2411); + __pyx_codeobj__2412 = (PyObject*)__Pyx_PyCode_New(4, 0, 19, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2411, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_CDLRICKSHAWMAN, 5266, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2412)) __PYX_ERR(2, 5266, __pyx_L1_error) + + /* "talib/_func.pxi":5354 + * @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__2413 = PyTuple_Pack(19, __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, __pyx_n_s_outinteger_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2413)) __PYX_ERR(2, 5354, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2413); + __Pyx_GIVEREF(__pyx_tuple__2413); + __pyx_codeobj__2414 = (PyObject*)__Pyx_PyCode_New(4, 0, 19, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2413, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_CDLRISEFALL3METHODS, 5354, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2414)) __PYX_ERR(2, 5354, __pyx_L1_error) + + /* "talib/_func.pxi":5442 + * @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__2415 = PyTuple_Pack(19, __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, __pyx_n_s_outinteger_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2415)) __PYX_ERR(2, 5442, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2415); + __Pyx_GIVEREF(__pyx_tuple__2415); + __pyx_codeobj__2416 = (PyObject*)__Pyx_PyCode_New(4, 0, 19, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2415, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_CDLSEPARATINGLINES, 5442, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2416)) __PYX_ERR(2, 5442, __pyx_L1_error) + + /* "talib/_func.pxi":5530 + * @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__2417 = PyTuple_Pack(19, __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, __pyx_n_s_outinteger_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2417)) __PYX_ERR(2, 5530, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2417); + __Pyx_GIVEREF(__pyx_tuple__2417); + __pyx_codeobj__2418 = (PyObject*)__Pyx_PyCode_New(4, 0, 19, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2417, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_CDLSHOOTINGSTAR, 5530, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2418)) __PYX_ERR(2, 5530, __pyx_L1_error) + + /* "talib/_func.pxi":5618 + * @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__2419 = PyTuple_Pack(19, __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, __pyx_n_s_outinteger_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2419)) __PYX_ERR(2, 5618, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2419); + __Pyx_GIVEREF(__pyx_tuple__2419); + __pyx_codeobj__2420 = (PyObject*)__Pyx_PyCode_New(4, 0, 19, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2419, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_CDLSHORTLINE, 5618, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2420)) __PYX_ERR(2, 5618, __pyx_L1_error) + + /* "talib/_func.pxi":5706 + * @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__2421 = PyTuple_Pack(19, __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, __pyx_n_s_outinteger_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2421)) __PYX_ERR(2, 5706, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2421); + __Pyx_GIVEREF(__pyx_tuple__2421); + __pyx_codeobj__2422 = (PyObject*)__Pyx_PyCode_New(4, 0, 19, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2421, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_CDLSPINNINGTOP, 5706, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2422)) __PYX_ERR(2, 5706, __pyx_L1_error) + + /* "talib/_func.pxi":5794 + * @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__2423 = PyTuple_Pack(19, __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, __pyx_n_s_outinteger_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2423)) __PYX_ERR(2, 5794, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2423); + __Pyx_GIVEREF(__pyx_tuple__2423); + __pyx_codeobj__2424 = (PyObject*)__Pyx_PyCode_New(4, 0, 19, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2423, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_CDLSTALLEDPATTERN, 5794, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2424)) __PYX_ERR(2, 5794, __pyx_L1_error) + + /* "talib/_func.pxi":5882 + * @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__2425 = PyTuple_Pack(19, __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, __pyx_n_s_outinteger_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2425)) __PYX_ERR(2, 5882, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2425); + __Pyx_GIVEREF(__pyx_tuple__2425); + __pyx_codeobj__2426 = (PyObject*)__Pyx_PyCode_New(4, 0, 19, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2425, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_CDLSTICKSANDWICH, 5882, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2426)) __PYX_ERR(2, 5882, __pyx_L1_error) + + /* "talib/_func.pxi":5970 + * @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__2427 = PyTuple_Pack(19, __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, __pyx_n_s_outinteger_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2427)) __PYX_ERR(2, 5970, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2427); + __Pyx_GIVEREF(__pyx_tuple__2427); + __pyx_codeobj__2428 = (PyObject*)__Pyx_PyCode_New(4, 0, 19, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2427, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_CDLTAKURI, 5970, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2428)) __PYX_ERR(2, 5970, __pyx_L1_error) + + /* "talib/_func.pxi":6058 + * @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__2429 = PyTuple_Pack(19, __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, __pyx_n_s_outinteger_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2429)) __PYX_ERR(2, 6058, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2429); + __Pyx_GIVEREF(__pyx_tuple__2429); + __pyx_codeobj__2430 = (PyObject*)__Pyx_PyCode_New(4, 0, 19, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2429, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_CDLTASUKIGAP, 6058, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2430)) __PYX_ERR(2, 6058, __pyx_L1_error) + + /* "talib/_func.pxi":6146 + * @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__2431 = PyTuple_Pack(19, __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, __pyx_n_s_outinteger_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2431)) __PYX_ERR(2, 6146, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2431); + __Pyx_GIVEREF(__pyx_tuple__2431); + __pyx_codeobj__2432 = (PyObject*)__Pyx_PyCode_New(4, 0, 19, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2431, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_CDLTHRUSTING, 6146, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2432)) __PYX_ERR(2, 6146, __pyx_L1_error) + + /* "talib/_func.pxi":6234 + * @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__2433 = PyTuple_Pack(19, __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, __pyx_n_s_outinteger_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2433)) __PYX_ERR(2, 6234, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2433); + __Pyx_GIVEREF(__pyx_tuple__2433); + __pyx_codeobj__2434 = (PyObject*)__Pyx_PyCode_New(4, 0, 19, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2433, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_CDLTRISTAR, 6234, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2434)) __PYX_ERR(2, 6234, __pyx_L1_error) + + /* "talib/_func.pxi":6322 + * @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__2435 = PyTuple_Pack(19, __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, __pyx_n_s_outinteger_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2435)) __PYX_ERR(2, 6322, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2435); + __Pyx_GIVEREF(__pyx_tuple__2435); + __pyx_codeobj__2436 = (PyObject*)__Pyx_PyCode_New(4, 0, 19, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2435, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_CDLUNIQUE3RIVER, 6322, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2436)) __PYX_ERR(2, 6322, __pyx_L1_error) + + /* "talib/_func.pxi":6410 + * @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__2437 = PyTuple_Pack(19, __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, __pyx_n_s_outinteger_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2437)) __PYX_ERR(2, 6410, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2437); + __Pyx_GIVEREF(__pyx_tuple__2437); + __pyx_codeobj__2438 = (PyObject*)__Pyx_PyCode_New(4, 0, 19, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2437, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_CDLUPSIDEGAP2CROWS, 6410, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2438)) __PYX_ERR(2, 6410, __pyx_L1_error) + + /* "talib/_func.pxi":6498 + * @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__2439 = PyTuple_Pack(19, __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, __pyx_n_s_outinteger_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2439)) __PYX_ERR(2, 6498, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2439); + __Pyx_GIVEREF(__pyx_tuple__2439); + __pyx_codeobj__2440 = (PyObject*)__Pyx_PyCode_New(4, 0, 19, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2439, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_CDLXSIDEGAP3METHODS, 6498, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2440)) __PYX_ERR(2, 6498, __pyx_L1_error) + + /* "talib/_func.pxi":6586 + * @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__2441 = PyTuple_Pack(13, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2441)) __PYX_ERR(2, 6586, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2441); + __Pyx_GIVEREF(__pyx_tuple__2441); + __pyx_codeobj__2442 = (PyObject*)__Pyx_PyCode_New(1, 0, 13, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2441, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_CEIL, 6586, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2442)) __PYX_ERR(2, 6586, __pyx_L1_error) + + /* "talib/_func.pxi":6635 + * @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__2443 = PyTuple_Pack(14, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2443)) __PYX_ERR(2, 6635, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2443); + __Pyx_GIVEREF(__pyx_tuple__2443); + __pyx_codeobj__2444 = (PyObject*)__Pyx_PyCode_New(2, 0, 14, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2443, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_CMO, 6635, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2444)) __PYX_ERR(2, 6635, __pyx_L1_error) + + /* "talib/_func.pxi":6686 + * @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__2445 = PyTuple_Pack(16, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2445)) __PYX_ERR(2, 6686, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2445); + __Pyx_GIVEREF(__pyx_tuple__2445); + __pyx_codeobj__2446 = (PyObject*)__Pyx_PyCode_New(3, 0, 16, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2445, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_CORREL, 6686, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2446)) __PYX_ERR(2, 6686, __pyx_L1_error) + + /* "talib/_func.pxi":6751 + * @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__2447 = PyTuple_Pack(13, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2447)) __PYX_ERR(2, 6751, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2447); + __Pyx_GIVEREF(__pyx_tuple__2447); + __pyx_codeobj__2448 = (PyObject*)__Pyx_PyCode_New(1, 0, 13, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2447, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_COS, 6751, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2448)) __PYX_ERR(2, 6751, __pyx_L1_error) + + /* "talib/_func.pxi":6800 + * @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__2449 = PyTuple_Pack(13, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2449)) __PYX_ERR(2, 6800, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2449); + __Pyx_GIVEREF(__pyx_tuple__2449); + __pyx_codeobj__2450 = (PyObject*)__Pyx_PyCode_New(1, 0, 13, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2449, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_COSH, 6800, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2450)) __PYX_ERR(2, 6800, __pyx_L1_error) + + /* "talib/_func.pxi":6849 + * @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__2451 = PyTuple_Pack(14, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2451)) __PYX_ERR(2, 6849, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2451); + __Pyx_GIVEREF(__pyx_tuple__2451); + __pyx_codeobj__2452 = (PyObject*)__Pyx_PyCode_New(2, 0, 14, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2451, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_DEMA, 6849, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2452)) __PYX_ERR(2, 6849, __pyx_L1_error) + + /* "talib/_func.pxi":6900 + * @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__2453 = PyTuple_Pack(15, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2453)) __PYX_ERR(2, 6900, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2453); + __Pyx_GIVEREF(__pyx_tuple__2453); + __pyx_codeobj__2454 = (PyObject*)__Pyx_PyCode_New(2, 0, 15, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2453, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_DIV, 6900, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2454)) __PYX_ERR(2, 6900, __pyx_L1_error) + + /* "talib/_func.pxi":6963 + * @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__2455 = PyTuple_Pack(18, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2455)) __PYX_ERR(2, 6963, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2455); + __Pyx_GIVEREF(__pyx_tuple__2455); + __pyx_codeobj__2456 = (PyObject*)__Pyx_PyCode_New(4, 0, 18, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2455, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_DX, 6963, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2456)) __PYX_ERR(2, 6963, __pyx_L1_error) + + /* "talib/_func.pxi":7040 + * @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__2457 = PyTuple_Pack(14, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2457)) __PYX_ERR(2, 7040, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2457); + __Pyx_GIVEREF(__pyx_tuple__2457); + __pyx_codeobj__2458 = (PyObject*)__Pyx_PyCode_New(2, 0, 14, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2457, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_EMA, 7040, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2458)) __PYX_ERR(2, 7040, __pyx_L1_error) + + /* "talib/_func.pxi":7091 + * @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__2459 = PyTuple_Pack(13, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2459)) __PYX_ERR(2, 7091, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2459); + __Pyx_GIVEREF(__pyx_tuple__2459); + __pyx_codeobj__2460 = (PyObject*)__Pyx_PyCode_New(1, 0, 13, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2459, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_EXP, 7091, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2460)) __PYX_ERR(2, 7091, __pyx_L1_error) + + /* "talib/_func.pxi":7140 + * @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__2461 = PyTuple_Pack(13, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2461)) __PYX_ERR(2, 7140, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2461); + __Pyx_GIVEREF(__pyx_tuple__2461); + __pyx_codeobj__2462 = (PyObject*)__Pyx_PyCode_New(1, 0, 13, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2461, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_FLOOR, 7140, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2462)) __PYX_ERR(2, 7140, __pyx_L1_error) + + /* "talib/_func.pxi":7189 + * @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__2463 = PyTuple_Pack(13, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2463)) __PYX_ERR(2, 7189, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2463); + __Pyx_GIVEREF(__pyx_tuple__2463); + __pyx_codeobj__2464 = (PyObject*)__Pyx_PyCode_New(1, 0, 13, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2463, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_HT_DCPERIOD, 7189, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2464)) __PYX_ERR(2, 7189, __pyx_L1_error) + + /* "talib/_func.pxi":7238 + * @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__2465 = PyTuple_Pack(13, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2465)) __PYX_ERR(2, 7238, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2465); + __Pyx_GIVEREF(__pyx_tuple__2465); + __pyx_codeobj__2466 = (PyObject*)__Pyx_PyCode_New(1, 0, 13, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2465, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_HT_DCPHASE, 7238, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2466)) __PYX_ERR(2, 7238, __pyx_L1_error) + + /* "talib/_func.pxi":7287 + * @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__2467 = PyTuple_Pack(15, __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_outinphase_data, __pyx_n_s_outquadrature, __pyx_n_s_outquadrature_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2467)) __PYX_ERR(2, 7287, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2467); + __Pyx_GIVEREF(__pyx_tuple__2467); + __pyx_codeobj__2468 = (PyObject*)__Pyx_PyCode_New(1, 0, 15, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2467, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_HT_PHASOR, 7287, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2468)) __PYX_ERR(2, 7287, __pyx_L1_error) + + /* "talib/_func.pxi":7343 + * @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__2469 = PyTuple_Pack(15, __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_outsine_data, __pyx_n_s_outleadsine, __pyx_n_s_outleadsine_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2469)) __PYX_ERR(2, 7343, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2469); + __Pyx_GIVEREF(__pyx_tuple__2469); + __pyx_codeobj__2470 = (PyObject*)__Pyx_PyCode_New(1, 0, 15, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2469, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_HT_SINE, 7343, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2470)) __PYX_ERR(2, 7343, __pyx_L1_error) + + /* "talib/_func.pxi":7399 + * @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__2471 = PyTuple_Pack(13, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2471)) __PYX_ERR(2, 7399, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2471); + __Pyx_GIVEREF(__pyx_tuple__2471); + __pyx_codeobj__2472 = (PyObject*)__Pyx_PyCode_New(1, 0, 13, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2471, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_HT_TRENDLINE, 7399, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2472)) __PYX_ERR(2, 7399, __pyx_L1_error) + + /* "talib/_func.pxi":7448 + * @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__2473 = PyTuple_Pack(13, __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, __pyx_n_s_outinteger_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2473)) __PYX_ERR(2, 7448, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2473); + __Pyx_GIVEREF(__pyx_tuple__2473); + __pyx_codeobj__2474 = (PyObject*)__Pyx_PyCode_New(1, 0, 13, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2473, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_HT_TRENDMODE, 7448, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2474)) __PYX_ERR(2, 7448, __pyx_L1_error) + + /* "talib/_func.pxi":7497 + * @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__2475 = PyTuple_Pack(14, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2475)) __PYX_ERR(2, 7497, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2475); + __Pyx_GIVEREF(__pyx_tuple__2475); + __pyx_codeobj__2476 = (PyObject*)__Pyx_PyCode_New(2, 0, 14, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2475, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_KAMA, 7497, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2476)) __PYX_ERR(2, 7497, __pyx_L1_error) + + /* "talib/_func.pxi":7548 + * @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__2477 = PyTuple_Pack(14, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2477)) __PYX_ERR(2, 7548, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2477); + __Pyx_GIVEREF(__pyx_tuple__2477); + __pyx_codeobj__2478 = (PyObject*)__Pyx_PyCode_New(2, 0, 14, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2477, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_LINEARREG, 7548, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2478)) __PYX_ERR(2, 7548, __pyx_L1_error) + + /* "talib/_func.pxi":7599 + * @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__2479 = PyTuple_Pack(14, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2479)) __PYX_ERR(2, 7599, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2479); + __Pyx_GIVEREF(__pyx_tuple__2479); + __pyx_codeobj__2480 = (PyObject*)__Pyx_PyCode_New(2, 0, 14, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2479, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_LINEARREG_ANGLE, 7599, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2480)) __PYX_ERR(2, 7599, __pyx_L1_error) + + /* "talib/_func.pxi":7650 + * @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__2481 = PyTuple_Pack(14, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2481)) __PYX_ERR(2, 7650, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2481); + __Pyx_GIVEREF(__pyx_tuple__2481); + __pyx_codeobj__2482 = (PyObject*)__Pyx_PyCode_New(2, 0, 14, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2481, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_LINEARREG_INTERCEPT, 7650, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2482)) __PYX_ERR(2, 7650, __pyx_L1_error) + + /* "talib/_func.pxi":7701 + * @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__2483 = PyTuple_Pack(14, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2483)) __PYX_ERR(2, 7701, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2483); + __Pyx_GIVEREF(__pyx_tuple__2483); + __pyx_codeobj__2484 = (PyObject*)__Pyx_PyCode_New(2, 0, 14, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2483, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_LINEARREG_SLOPE, 7701, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2484)) __PYX_ERR(2, 7701, __pyx_L1_error) + + /* "talib/_func.pxi":7752 + * @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__2485 = PyTuple_Pack(13, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2485)) __PYX_ERR(2, 7752, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2485); + __Pyx_GIVEREF(__pyx_tuple__2485); + __pyx_codeobj__2486 = (PyObject*)__Pyx_PyCode_New(1, 0, 13, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2485, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_LN, 7752, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2486)) __PYX_ERR(2, 7752, __pyx_L1_error) + + /* "talib/_func.pxi":7801 + * @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__2487 = PyTuple_Pack(13, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2487)) __PYX_ERR(2, 7801, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2487); + __Pyx_GIVEREF(__pyx_tuple__2487); + __pyx_codeobj__2488 = (PyObject*)__Pyx_PyCode_New(1, 0, 13, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2487, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_LOG10, 7801, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2488)) __PYX_ERR(2, 7801, __pyx_L1_error) + + /* "talib/_func.pxi":7850 + * @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__2489 = PyTuple_Pack(15, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2489)) __PYX_ERR(2, 7850, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2489); + __Pyx_GIVEREF(__pyx_tuple__2489); + __pyx_codeobj__2490 = (PyObject*)__Pyx_PyCode_New(3, 0, 15, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2489, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_MA, 7850, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2490)) __PYX_ERR(2, 7850, __pyx_L1_error) + + /* "talib/_func.pxi":7902 + * @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__2491 = PyTuple_Pack(20, __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_outmacd_data, __pyx_n_s_outmacdsignal, __pyx_n_s_outmacdsignal_data, __pyx_n_s_outmacdhist, __pyx_n_s_outmacdhist_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2491)) __PYX_ERR(2, 7902, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2491); + __Pyx_GIVEREF(__pyx_tuple__2491); + __pyx_codeobj__2492 = (PyObject*)__Pyx_PyCode_New(4, 0, 20, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2491, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_MACD, 7902, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2492)) __PYX_ERR(2, 7902, __pyx_L1_error) + + /* "talib/_func.pxi":7969 + * @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__2493 = PyTuple_Pack(23, __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_outmacd_data, __pyx_n_s_outmacdsignal, __pyx_n_s_outmacdsignal_data, __pyx_n_s_outmacdhist, __pyx_n_s_outmacdhist_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2493)) __PYX_ERR(2, 7969, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2493); + __Pyx_GIVEREF(__pyx_tuple__2493); + __pyx_codeobj__2494 = (PyObject*)__Pyx_PyCode_New(7, 0, 23, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2493, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_MACDEXT, 7969, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2494)) __PYX_ERR(2, 7969, __pyx_L1_error) + + /* "talib/_func.pxi":8039 + * @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__2495 = PyTuple_Pack(18, __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_outmacd_data, __pyx_n_s_outmacdsignal, __pyx_n_s_outmacdsignal_data, __pyx_n_s_outmacdhist, __pyx_n_s_outmacdhist_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2495)) __PYX_ERR(2, 8039, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2495); + __Pyx_GIVEREF(__pyx_tuple__2495); + __pyx_codeobj__2496 = (PyObject*)__Pyx_PyCode_New(2, 0, 18, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2495, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_MACDFIX, 8039, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2496)) __PYX_ERR(2, 8039, __pyx_L1_error) + + /* "talib/_func.pxi":8104 + * @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__2497 = PyTuple_Pack(17, __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_outmama_data, __pyx_n_s_outfama, __pyx_n_s_outfama_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2497)) __PYX_ERR(2, 8104, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2497); + __Pyx_GIVEREF(__pyx_tuple__2497); + __pyx_codeobj__2498 = (PyObject*)__Pyx_PyCode_New(3, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2497, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_MAMA, 8104, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2498)) __PYX_ERR(2, 8104, __pyx_L1_error) + + /* "talib/_func.pxi":8163 + * @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__2499 = PyTuple_Pack(18, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2499)) __PYX_ERR(2, 8163, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2499); + __Pyx_GIVEREF(__pyx_tuple__2499); + __pyx_codeobj__2500 = (PyObject*)__Pyx_PyCode_New(5, 0, 18, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2499, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_MAVP, 8163, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2500)) __PYX_ERR(2, 8163, __pyx_L1_error) + + /* "talib/_func.pxi":8230 + * @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__2501 = PyTuple_Pack(14, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2501)) __PYX_ERR(2, 8230, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2501); + __Pyx_GIVEREF(__pyx_tuple__2501); + __pyx_codeobj__2502 = (PyObject*)__Pyx_PyCode_New(2, 0, 14, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2501, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_MAX, 8230, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2502)) __PYX_ERR(2, 8230, __pyx_L1_error) + + /* "talib/_func.pxi":8281 + * @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__2503 = PyTuple_Pack(14, __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, __pyx_n_s_outinteger_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2503)) __PYX_ERR(2, 8281, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2503); + __Pyx_GIVEREF(__pyx_tuple__2503); + __pyx_codeobj__2504 = (PyObject*)__Pyx_PyCode_New(2, 0, 14, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2503, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_MAXINDEX, 8281, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2504)) __PYX_ERR(2, 8281, __pyx_L1_error) + + /* "talib/_func.pxi":8332 + * @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__2505 = PyTuple_Pack(15, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2505)) __PYX_ERR(2, 8332, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2505); + __Pyx_GIVEREF(__pyx_tuple__2505); + __pyx_codeobj__2506 = (PyObject*)__Pyx_PyCode_New(2, 0, 15, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2505, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_MEDPRICE, 8332, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2506)) __PYX_ERR(2, 8332, __pyx_L1_error) + + /* "talib/_func.pxi":8394 + * @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__2507 = PyTuple_Pack(20, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2507)) __PYX_ERR(2, 8394, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2507); + __Pyx_GIVEREF(__pyx_tuple__2507); + __pyx_codeobj__2508 = (PyObject*)__Pyx_PyCode_New(5, 0, 20, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2507, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_MFI, 8394, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2508)) __PYX_ERR(2, 8394, __pyx_L1_error) + + /* "talib/_func.pxi":8484 + * @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__2509 = PyTuple_Pack(14, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2509)) __PYX_ERR(2, 8484, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2509); + __Pyx_GIVEREF(__pyx_tuple__2509); + __pyx_codeobj__2510 = (PyObject*)__Pyx_PyCode_New(2, 0, 14, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2509, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_MIDPOINT, 8484, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2510)) __PYX_ERR(2, 8484, __pyx_L1_error) + + /* "talib/_func.pxi":8535 + * @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__2511 = PyTuple_Pack(16, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2511)) __PYX_ERR(2, 8535, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2511); + __Pyx_GIVEREF(__pyx_tuple__2511); + __pyx_codeobj__2512 = (PyObject*)__Pyx_PyCode_New(3, 0, 16, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2511, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_MIDPRICE, 8535, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2512)) __PYX_ERR(2, 8535, __pyx_L1_error) + + /* "talib/_func.pxi":8599 + * @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__2513 = PyTuple_Pack(14, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2513)) __PYX_ERR(2, 8599, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2513); + __Pyx_GIVEREF(__pyx_tuple__2513); + __pyx_codeobj__2514 = (PyObject*)__Pyx_PyCode_New(2, 0, 14, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2513, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_MIN, 8599, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2514)) __PYX_ERR(2, 8599, __pyx_L1_error) + + /* "talib/_func.pxi":8650 + * @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__2515 = PyTuple_Pack(14, __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, __pyx_n_s_outinteger_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2515)) __PYX_ERR(2, 8650, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2515); + __Pyx_GIVEREF(__pyx_tuple__2515); + __pyx_codeobj__2516 = (PyObject*)__Pyx_PyCode_New(2, 0, 14, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2515, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_MININDEX, 8650, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2516)) __PYX_ERR(2, 8650, __pyx_L1_error) + + /* "talib/_func.pxi":8701 + * @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__2517 = PyTuple_Pack(16, __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_outmin_data, __pyx_n_s_outmax, __pyx_n_s_outmax_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2517)) __PYX_ERR(2, 8701, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2517); + __Pyx_GIVEREF(__pyx_tuple__2517); + __pyx_codeobj__2518 = (PyObject*)__Pyx_PyCode_New(2, 0, 16, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2517, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_MINMAX, 8701, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2518)) __PYX_ERR(2, 8701, __pyx_L1_error) + + /* "talib/_func.pxi":8759 + * @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__2519 = PyTuple_Pack(16, __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_outminidx_data, __pyx_n_s_outmaxidx, __pyx_n_s_outmaxidx_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2519)) __PYX_ERR(2, 8759, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2519); + __Pyx_GIVEREF(__pyx_tuple__2519); + __pyx_codeobj__2520 = (PyObject*)__Pyx_PyCode_New(2, 0, 16, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2519, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_MINMAXINDEX, 8759, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2520)) __PYX_ERR(2, 8759, __pyx_L1_error) + + /* "talib/_func.pxi":8817 + * @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__2521 = PyTuple_Pack(18, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2521)) __PYX_ERR(2, 8817, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2521); + __Pyx_GIVEREF(__pyx_tuple__2521); + __pyx_codeobj__2522 = (PyObject*)__Pyx_PyCode_New(4, 0, 18, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2521, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_MINUS_DI, 8817, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2522)) __PYX_ERR(2, 8817, __pyx_L1_error) + + /* "talib/_func.pxi":8894 + * @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__2523 = PyTuple_Pack(16, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2523)) __PYX_ERR(2, 8894, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2523); + __Pyx_GIVEREF(__pyx_tuple__2523); + __pyx_codeobj__2524 = (PyObject*)__Pyx_PyCode_New(3, 0, 16, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2523, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_MINUS_DM, 8894, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2524)) __PYX_ERR(2, 8894, __pyx_L1_error) + + /* "talib/_func.pxi":8958 + * @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__2525 = PyTuple_Pack(14, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2525)) __PYX_ERR(2, 8958, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2525); + __Pyx_GIVEREF(__pyx_tuple__2525); + __pyx_codeobj__2526 = (PyObject*)__Pyx_PyCode_New(2, 0, 14, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2525, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_MOM, 8958, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2526)) __PYX_ERR(2, 8958, __pyx_L1_error) + + /* "talib/_func.pxi":9009 + * @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__2527 = PyTuple_Pack(15, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2527)) __PYX_ERR(2, 9009, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2527); + __Pyx_GIVEREF(__pyx_tuple__2527); + __pyx_codeobj__2528 = (PyObject*)__Pyx_PyCode_New(2, 0, 15, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2527, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_MULT, 9009, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2528)) __PYX_ERR(2, 9009, __pyx_L1_error) + + /* "talib/_func.pxi":9072 + * @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__2529 = PyTuple_Pack(18, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2529)) __PYX_ERR(2, 9072, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2529); + __Pyx_GIVEREF(__pyx_tuple__2529); + __pyx_codeobj__2530 = (PyObject*)__Pyx_PyCode_New(4, 0, 18, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2529, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_NATR, 9072, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2530)) __PYX_ERR(2, 9072, __pyx_L1_error) + + /* "talib/_func.pxi":9149 + * @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__2531 = PyTuple_Pack(15, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2531)) __PYX_ERR(2, 9149, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2531); + __Pyx_GIVEREF(__pyx_tuple__2531); + __pyx_codeobj__2532 = (PyObject*)__Pyx_PyCode_New(2, 0, 15, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2531, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_OBV, 9149, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2532)) __PYX_ERR(2, 9149, __pyx_L1_error) + + /* "talib/_func.pxi":9212 + * @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__2533 = PyTuple_Pack(18, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2533)) __PYX_ERR(2, 9212, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2533); + __Pyx_GIVEREF(__pyx_tuple__2533); + __pyx_codeobj__2534 = (PyObject*)__Pyx_PyCode_New(4, 0, 18, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2533, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_PLUS_DI, 9212, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2534)) __PYX_ERR(2, 9212, __pyx_L1_error) + + /* "talib/_func.pxi":9289 + * @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__2535 = PyTuple_Pack(16, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2535)) __PYX_ERR(2, 9289, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2535); + __Pyx_GIVEREF(__pyx_tuple__2535); + __pyx_codeobj__2536 = (PyObject*)__Pyx_PyCode_New(3, 0, 16, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2535, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_PLUS_DM, 9289, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2536)) __PYX_ERR(2, 9289, __pyx_L1_error) + + /* "talib/_func.pxi":9353 + * @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__2537 = PyTuple_Pack(16, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2537)) __PYX_ERR(2, 9353, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2537); + __Pyx_GIVEREF(__pyx_tuple__2537); + __pyx_codeobj__2538 = (PyObject*)__Pyx_PyCode_New(4, 0, 16, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2537, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_PPO, 9353, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2538)) __PYX_ERR(2, 9353, __pyx_L1_error) + + /* "talib/_func.pxi":9406 + * @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__2539 = PyTuple_Pack(14, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2539)) __PYX_ERR(2, 9406, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2539); + __Pyx_GIVEREF(__pyx_tuple__2539); + __pyx_codeobj__2540 = (PyObject*)__Pyx_PyCode_New(2, 0, 14, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2539, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_ROC, 9406, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2540)) __PYX_ERR(2, 9406, __pyx_L1_error) + + /* "talib/_func.pxi":9457 + * @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__2541 = PyTuple_Pack(14, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2541)) __PYX_ERR(2, 9457, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2541); + __Pyx_GIVEREF(__pyx_tuple__2541); + __pyx_codeobj__2542 = (PyObject*)__Pyx_PyCode_New(2, 0, 14, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2541, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_ROCP, 9457, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2542)) __PYX_ERR(2, 9457, __pyx_L1_error) + + /* "talib/_func.pxi":9508 + * @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__2543 = PyTuple_Pack(14, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2543)) __PYX_ERR(2, 9508, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2543); + __Pyx_GIVEREF(__pyx_tuple__2543); + __pyx_codeobj__2544 = (PyObject*)__Pyx_PyCode_New(2, 0, 14, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2543, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_ROCR, 9508, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2544)) __PYX_ERR(2, 9508, __pyx_L1_error) + + /* "talib/_func.pxi":9559 + * @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__2545 = PyTuple_Pack(14, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2545)) __PYX_ERR(2, 9559, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2545); + __Pyx_GIVEREF(__pyx_tuple__2545); + __pyx_codeobj__2546 = (PyObject*)__Pyx_PyCode_New(2, 0, 14, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2545, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_ROCR100, 9559, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2546)) __PYX_ERR(2, 9559, __pyx_L1_error) + + /* "talib/_func.pxi":9610 + * @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__2547 = PyTuple_Pack(14, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2547)) __PYX_ERR(2, 9610, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2547); + __Pyx_GIVEREF(__pyx_tuple__2547); + __pyx_codeobj__2548 = (PyObject*)__Pyx_PyCode_New(2, 0, 14, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2547, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_RSI, 9610, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2548)) __PYX_ERR(2, 9610, __pyx_L1_error) + + /* "talib/_func.pxi":9661 + * @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__2549 = PyTuple_Pack(17, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2549)) __PYX_ERR(2, 9661, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2549); + __Pyx_GIVEREF(__pyx_tuple__2549); + __pyx_codeobj__2550 = (PyObject*)__Pyx_PyCode_New(4, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2549, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_SAR, 9661, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2550)) __PYX_ERR(2, 9661, __pyx_L1_error) + + /* "talib/_func.pxi":9726 + * @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__2551 = PyTuple_Pack(23, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2551)) __PYX_ERR(2, 9726, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2551); + __Pyx_GIVEREF(__pyx_tuple__2551); + __pyx_codeobj__2552 = (PyObject*)__Pyx_PyCode_New(10, 0, 23, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2551, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_SAREXT, 9726, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2552)) __PYX_ERR(2, 9726, __pyx_L1_error) + + /* "talib/_func.pxi":9797 + * @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__2553 = PyTuple_Pack(13, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2553)) __PYX_ERR(2, 9797, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2553); + __Pyx_GIVEREF(__pyx_tuple__2553); + __pyx_codeobj__2554 = (PyObject*)__Pyx_PyCode_New(1, 0, 13, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2553, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_SIN, 9797, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2554)) __PYX_ERR(2, 9797, __pyx_L1_error) + + /* "talib/_func.pxi":9846 + * @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__2555 = PyTuple_Pack(13, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2555)) __PYX_ERR(2, 9846, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2555); + __Pyx_GIVEREF(__pyx_tuple__2555); + __pyx_codeobj__2556 = (PyObject*)__Pyx_PyCode_New(1, 0, 13, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2555, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_SINH, 9846, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2556)) __PYX_ERR(2, 9846, __pyx_L1_error) + + /* "talib/_func.pxi":9895 + * @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__2557 = PyTuple_Pack(14, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2557)) __PYX_ERR(2, 9895, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2557); + __Pyx_GIVEREF(__pyx_tuple__2557); + __pyx_codeobj__2558 = (PyObject*)__Pyx_PyCode_New(2, 0, 14, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2557, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_SMA, 9895, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2558)) __PYX_ERR(2, 9895, __pyx_L1_error) + + /* "talib/_func.pxi":9946 + * @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__2559 = PyTuple_Pack(13, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2559)) __PYX_ERR(2, 9946, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2559); + __Pyx_GIVEREF(__pyx_tuple__2559); + __pyx_codeobj__2560 = (PyObject*)__Pyx_PyCode_New(1, 0, 13, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2559, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_SQRT, 9946, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2560)) __PYX_ERR(2, 9946, __pyx_L1_error) + + /* "talib/_func.pxi":9995 + * @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__2561 = PyTuple_Pack(15, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2561)) __PYX_ERR(2, 9995, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2561); + __Pyx_GIVEREF(__pyx_tuple__2561); + __pyx_codeobj__2562 = (PyObject*)__Pyx_PyCode_New(3, 0, 15, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2561, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_STDDEV, 9995, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2562)) __PYX_ERR(2, 9995, __pyx_L1_error) + + /* "talib/_func.pxi":10047 + * @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__2563 = PyTuple_Pack(24, __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_outslowk_data, __pyx_n_s_outslowd, __pyx_n_s_outslowd_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2563)) __PYX_ERR(2, 10047, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2563); + __Pyx_GIVEREF(__pyx_tuple__2563); + __pyx_codeobj__2564 = (PyObject*)__Pyx_PyCode_New(8, 0, 24, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2563, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_STOCH, 10047, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2564)) __PYX_ERR(2, 10047, __pyx_L1_error) + + /* "talib/_func.pxi":10135 + * @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__2565 = PyTuple_Pack(22, __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_outfastk_data, __pyx_n_s_outfastd, __pyx_n_s_outfastd_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2565)) __PYX_ERR(2, 10135, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2565); + __Pyx_GIVEREF(__pyx_tuple__2565); + __pyx_codeobj__2566 = (PyObject*)__Pyx_PyCode_New(6, 0, 22, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2565, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_STOCHF, 10135, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2566)) __PYX_ERR(2, 10135, __pyx_L1_error) + + /* "talib/_func.pxi":10221 + * @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__2567 = PyTuple_Pack(19, __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_outfastk_data, __pyx_n_s_outfastd, __pyx_n_s_outfastd_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2567)) __PYX_ERR(2, 10221, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2567); + __Pyx_GIVEREF(__pyx_tuple__2567); + __pyx_codeobj__2568 = (PyObject*)__Pyx_PyCode_New(5, 0, 19, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2567, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_STOCHRSI, 10221, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2568)) __PYX_ERR(2, 10221, __pyx_L1_error) + + /* "talib/_func.pxi":10282 + * @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__2569 = PyTuple_Pack(15, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2569)) __PYX_ERR(2, 10282, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2569); + __Pyx_GIVEREF(__pyx_tuple__2569); + __pyx_codeobj__2570 = (PyObject*)__Pyx_PyCode_New(2, 0, 15, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2569, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_SUB, 10282, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2570)) __PYX_ERR(2, 10282, __pyx_L1_error) + + /* "talib/_func.pxi":10345 + * @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__2571 = PyTuple_Pack(14, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2571)) __PYX_ERR(2, 10345, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2571); + __Pyx_GIVEREF(__pyx_tuple__2571); + __pyx_codeobj__2572 = (PyObject*)__Pyx_PyCode_New(2, 0, 14, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2571, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_SUM, 10345, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2572)) __PYX_ERR(2, 10345, __pyx_L1_error) + + /* "talib/_func.pxi":10396 + * @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__2573 = PyTuple_Pack(15, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2573)) __PYX_ERR(2, 10396, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2573); + __Pyx_GIVEREF(__pyx_tuple__2573); + __pyx_codeobj__2574 = (PyObject*)__Pyx_PyCode_New(3, 0, 15, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2573, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_T3, 10396, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2574)) __PYX_ERR(2, 10396, __pyx_L1_error) + + /* "talib/_func.pxi":10448 + * @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__2575 = PyTuple_Pack(13, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2575)) __PYX_ERR(2, 10448, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2575); + __Pyx_GIVEREF(__pyx_tuple__2575); + __pyx_codeobj__2576 = (PyObject*)__Pyx_PyCode_New(1, 0, 13, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2575, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_TAN, 10448, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2576)) __PYX_ERR(2, 10448, __pyx_L1_error) + + /* "talib/_func.pxi":10497 + * @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__2577 = PyTuple_Pack(13, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2577)) __PYX_ERR(2, 10497, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2577); + __Pyx_GIVEREF(__pyx_tuple__2577); + __pyx_codeobj__2578 = (PyObject*)__Pyx_PyCode_New(1, 0, 13, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2577, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_TANH, 10497, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2578)) __PYX_ERR(2, 10497, __pyx_L1_error) + + /* "talib/_func.pxi":10546 + * @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__2579 = PyTuple_Pack(14, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2579)) __PYX_ERR(2, 10546, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2579); + __Pyx_GIVEREF(__pyx_tuple__2579); + __pyx_codeobj__2580 = (PyObject*)__Pyx_PyCode_New(2, 0, 14, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2579, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_TEMA, 10546, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2580)) __PYX_ERR(2, 10546, __pyx_L1_error) + + /* "talib/_func.pxi":10597 + * @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__2581 = PyTuple_Pack(17, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2581)) __PYX_ERR(2, 10597, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2581); + __Pyx_GIVEREF(__pyx_tuple__2581); + __pyx_codeobj__2582 = (PyObject*)__Pyx_PyCode_New(3, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2581, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_TRANGE, 10597, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2582)) __PYX_ERR(2, 10597, __pyx_L1_error) + + /* "talib/_func.pxi":10672 + * @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__2583 = PyTuple_Pack(14, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2583)) __PYX_ERR(2, 10672, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2583); + __Pyx_GIVEREF(__pyx_tuple__2583); + __pyx_codeobj__2584 = (PyObject*)__Pyx_PyCode_New(2, 0, 14, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2583, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_TRIMA, 10672, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2584)) __PYX_ERR(2, 10672, __pyx_L1_error) + + /* "talib/_func.pxi":10723 + * @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__2585 = PyTuple_Pack(14, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2585)) __PYX_ERR(2, 10723, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2585); + __Pyx_GIVEREF(__pyx_tuple__2585); + __pyx_codeobj__2586 = (PyObject*)__Pyx_PyCode_New(2, 0, 14, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2585, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_TRIX, 10723, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2586)) __PYX_ERR(2, 10723, __pyx_L1_error) + + /* "talib/_func.pxi":10774 + * @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__2587 = PyTuple_Pack(14, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2587)) __PYX_ERR(2, 10774, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2587); + __Pyx_GIVEREF(__pyx_tuple__2587); + __pyx_codeobj__2588 = (PyObject*)__Pyx_PyCode_New(2, 0, 14, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2587, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_TSF, 10774, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2588)) __PYX_ERR(2, 10774, __pyx_L1_error) + + /* "talib/_func.pxi":10825 + * @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__2589 = PyTuple_Pack(17, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2589)) __PYX_ERR(2, 10825, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2589); + __Pyx_GIVEREF(__pyx_tuple__2589); + __pyx_codeobj__2590 = (PyObject*)__Pyx_PyCode_New(3, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2589, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_TYPPRICE, 10825, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2590)) __PYX_ERR(2, 10825, __pyx_L1_error) + + /* "talib/_func.pxi":10900 + * @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__2591 = PyTuple_Pack(20, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2591)) __PYX_ERR(2, 10900, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2591); + __Pyx_GIVEREF(__pyx_tuple__2591); + __pyx_codeobj__2592 = (PyObject*)__Pyx_PyCode_New(6, 0, 20, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2591, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_ULTOSC, 10900, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2592)) __PYX_ERR(2, 10900, __pyx_L1_error) + + /* "talib/_func.pxi":10979 + * @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__2593 = PyTuple_Pack(15, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2593)) __PYX_ERR(2, 10979, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2593); + __Pyx_GIVEREF(__pyx_tuple__2593); + __pyx_codeobj__2594 = (PyObject*)__Pyx_PyCode_New(3, 0, 15, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2593, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_VAR, 10979, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2594)) __PYX_ERR(2, 10979, __pyx_L1_error) + + /* "talib/_func.pxi":11031 + * @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__2595 = PyTuple_Pack(17, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2595)) __PYX_ERR(2, 11031, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2595); + __Pyx_GIVEREF(__pyx_tuple__2595); + __pyx_codeobj__2596 = (PyObject*)__Pyx_PyCode_New(3, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2595, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_WCLPRICE, 11031, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2596)) __PYX_ERR(2, 11031, __pyx_L1_error) + + /* "talib/_func.pxi":11106 + * @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__2597 = PyTuple_Pack(18, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2597)) __PYX_ERR(2, 11106, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2597); + __Pyx_GIVEREF(__pyx_tuple__2597); + __pyx_codeobj__2598 = (PyObject*)__Pyx_PyCode_New(4, 0, 18, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2597, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_WILLR, 11106, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2598)) __PYX_ERR(2, 11106, __pyx_L1_error) + + /* "talib/_func.pxi":11183 + * @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__2599 = PyTuple_Pack(14, __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, __pyx_n_s_outreal_data, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2599)) __PYX_ERR(2, 11183, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2599); + __Pyx_GIVEREF(__pyx_tuple__2599); + __pyx_codeobj__2600 = (PyObject*)__Pyx_PyCode_New(2, 0, 14, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2599, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_2, __pyx_n_s_WMA, 11183, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2600)) __PYX_ERR(2, 11183, __pyx_L1_error) + + /* "talib/_abstract.pxi":45 + * if sys.version >= '3': + * + * def str2bytes(s): # <<<<<<<<<<<<<< + * return bytes(s, 'ascii') + * + */ + __pyx_tuple__2601 = PyTuple_Pack(1, __pyx_n_s_s); if (unlikely(!__pyx_tuple__2601)) __PYX_ERR(1, 45, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2601); + __Pyx_GIVEREF(__pyx_tuple__2601); + __pyx_codeobj__2602 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2601, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_3, __pyx_n_s_str2bytes, 45, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2602)) __PYX_ERR(1, 45, __pyx_L1_error) + + /* "talib/_abstract.pxi":48 + * return bytes(s, 'ascii') + * + * def bytes2str(b): # <<<<<<<<<<<<<< + * return b.decode('ascii') + * + */ + __pyx_tuple__2603 = PyTuple_Pack(1, __pyx_n_s_b); if (unlikely(!__pyx_tuple__2603)) __PYX_ERR(1, 48, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2603); + __Pyx_GIVEREF(__pyx_tuple__2603); + __pyx_codeobj__2604 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2603, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_3, __pyx_n_s_bytes2str, 48, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2604)) __PYX_ERR(1, 48, __pyx_L1_error) + + /* "talib/_abstract.pxi":53 + * else: + * + * def str2bytes(s): # <<<<<<<<<<<<<< + * return s + * + */ + __pyx_tuple__2605 = PyTuple_Pack(1, __pyx_n_s_s); if (unlikely(!__pyx_tuple__2605)) __PYX_ERR(1, 53, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2605); + __Pyx_GIVEREF(__pyx_tuple__2605); + __pyx_codeobj__2606 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2605, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_3, __pyx_n_s_str2bytes, 53, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2606)) __PYX_ERR(1, 53, __pyx_L1_error) + + /* "talib/_abstract.pxi":56 + * return s + * + * def bytes2str(b): # <<<<<<<<<<<<<< + * return b + * + */ + __pyx_tuple__2607 = PyTuple_Pack(1, __pyx_n_s_b); if (unlikely(!__pyx_tuple__2607)) __PYX_ERR(1, 56, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2607); + __Pyx_GIVEREF(__pyx_tuple__2607); + __pyx_codeobj__2608 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2607, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_3, __pyx_n_s_bytes2str, 56, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2608)) __PYX_ERR(1, 56, __pyx_L1_error) + + /* "talib/_abstract.pxi":88 + * """ + * + * def __init__(self, function_name, func_object, *args, **kwargs): # <<<<<<<<<<<<<< + * # make sure the function_name is valid and define all of our variables + * self.__name = function_name.upper() + */ + __pyx_tuple__2609 = PyTuple_Pack(5, __pyx_n_s_self, __pyx_n_s_function_name, __pyx_n_s_func_object, __pyx_n_s_args, __pyx_n_s_kwargs); if (unlikely(!__pyx_tuple__2609)) __PYX_ERR(1, 88, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2609); + __Pyx_GIVEREF(__pyx_tuple__2609); + __pyx_codeobj__2610 = (PyObject*)__Pyx_PyCode_New(3, 0, 5, 0, CO_VARARGS|CO_VARKEYWORDS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2609, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_3, __pyx_n_s_init, 88, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2610)) __PYX_ERR(1, 88, __pyx_L1_error) + + /* "talib/_abstract.pxi":107 + * self.func_object = func_object + * + * def __initialize_function_info(self): # <<<<<<<<<<<<<< + * # function info + * self.__info = _ta_getFuncInfo(self.__name) + */ + __pyx_tuple__2611 = PyTuple_Pack(6, __pyx_n_s_self, __pyx_n_s_i, __pyx_n_s_info, __pyx_n_s_input_name, __pyx_n_s_param_name, __pyx_n_s_output_name); if (unlikely(!__pyx_tuple__2611)) __PYX_ERR(1, 107, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2611); + __Pyx_GIVEREF(__pyx_tuple__2611); + __pyx_codeobj__2612 = (PyObject*)__Pyx_PyCode_New(1, 0, 6, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2611, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_3, __pyx_n_s_initialize_function_info, 107, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2612)) __PYX_ERR(1, 107, __pyx_L1_error) + + /* "talib/_abstract.pxi":137 + * + * @property + * def info(self): # <<<<<<<<<<<<<< + * """ + * Returns a copy of the function's info dict. + */ + __pyx_tuple__2613 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__2613)) __PYX_ERR(1, 137, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2613); + __Pyx_GIVEREF(__pyx_tuple__2613); + __pyx_codeobj__2614 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2613, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_3, __pyx_n_s_info, 137, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2614)) __PYX_ERR(1, 137, __pyx_L1_error) + + /* "talib/_abstract.pxi":144 + * + * @property + * def function_flags(self): # <<<<<<<<<<<<<< + * """ + * Returns any function flags defined for this indicator function. + */ + __pyx_tuple__2615 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__2615)) __PYX_ERR(1, 144, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2615); + __Pyx_GIVEREF(__pyx_tuple__2615); + __pyx_codeobj__2616 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2615, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_3, __pyx_n_s_function_flags, 144, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2616)) __PYX_ERR(1, 144, __pyx_L1_error) + + /* "talib/_abstract.pxi":151 + * + * @property + * def output_flags(self): # <<<<<<<<<<<<<< + * """ + * Returns the flags for each output for this indicator function. + */ + __pyx_tuple__2617 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__2617)) __PYX_ERR(1, 151, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2617); + __Pyx_GIVEREF(__pyx_tuple__2617); + __pyx_codeobj__2618 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2617, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_3, __pyx_n_s_output_flags, 151, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2618)) __PYX_ERR(1, 151, __pyx_L1_error) + + /* "talib/_abstract.pxi":157 + * return self.__info['output_flags'].copy() + * + * def get_input_names(self): # <<<<<<<<<<<<<< + * """ + * Returns the dict of input price series names that specifies which + */ + __pyx_tuple__2619 = PyTuple_Pack(3, __pyx_n_s_self, __pyx_n_s_ret, __pyx_n_s_input_name); if (unlikely(!__pyx_tuple__2619)) __PYX_ERR(1, 157, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2619); + __Pyx_GIVEREF(__pyx_tuple__2619); + __pyx_codeobj__2620 = (PyObject*)__Pyx_PyCode_New(1, 0, 3, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2619, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_3, __pyx_n_s_get_input_names, 157, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2620)) __PYX_ERR(1, 157, __pyx_L1_error) + + /* "talib/_abstract.pxi":167 + * return ret + * + * def set_input_names(self, input_names): # <<<<<<<<<<<<<< + * """ + * Sets the input price series names to use. + */ + __pyx_tuple__2621 = PyTuple_Pack(4, __pyx_n_s_self, __pyx_n_s_input_names, __pyx_n_s_input_name, __pyx_n_s_price_series); if (unlikely(!__pyx_tuple__2621)) __PYX_ERR(1, 167, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2621); + __Pyx_GIVEREF(__pyx_tuple__2621); + __pyx_codeobj__2622 = (PyObject*)__Pyx_PyCode_New(2, 0, 4, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2621, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_3, __pyx_n_s_set_input_names, 167, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2622)) __PYX_ERR(1, 167, __pyx_L1_error) + + /* "talib/_abstract.pxi":178 + * input_names = property(get_input_names, set_input_names) + * + * def get_input_arrays(self): # <<<<<<<<<<<<<< + * """ + * Returns a copy of the dict of input arrays in use. + */ + __pyx_tuple__2623 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__2623)) __PYX_ERR(1, 178, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2623); + __Pyx_GIVEREF(__pyx_tuple__2623); + __pyx_codeobj__2624 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2623, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_3, __pyx_n_s_get_input_arrays, 178, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2624)) __PYX_ERR(1, 178, __pyx_L1_error) + + /* "talib/_abstract.pxi":184 + * return self.__input_arrays.copy() + * + * def set_input_arrays(self, input_arrays): # <<<<<<<<<<<<<< + * """ + * Sets the dict of input_arrays to use. Returns True/False for + */ + __pyx_tuple__2625 = PyTuple_Pack(4, __pyx_n_s_self, __pyx_n_s_input_arrays, __pyx_n_s_missing_keys, __pyx_n_s_key); if (unlikely(!__pyx_tuple__2625)) __PYX_ERR(1, 184, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2625); + __Pyx_GIVEREF(__pyx_tuple__2625); + __pyx_codeobj__2626 = (PyObject*)__Pyx_PyCode_New(2, 0, 4, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2625, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_3, __pyx_n_s_set_input_arrays, 184, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2626)) __PYX_ERR(1, 184, __pyx_L1_error) + + /* "talib/_abstract.pxi":227 + * input_arrays = property(get_input_arrays, set_input_arrays) + * + * def get_parameters(self): # <<<<<<<<<<<<<< + * """ + * Returns the function's optional parameters and their default values. + */ + __pyx_tuple__2627 = PyTuple_Pack(3, __pyx_n_s_self, __pyx_n_s_ret, __pyx_n_s_opt_input); if (unlikely(!__pyx_tuple__2627)) __PYX_ERR(1, 227, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2627); + __Pyx_GIVEREF(__pyx_tuple__2627); + __pyx_codeobj__2628 = (PyObject*)__Pyx_PyCode_New(1, 0, 3, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2627, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_3, __pyx_n_s_get_parameters, 227, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2628)) __PYX_ERR(1, 227, __pyx_L1_error) + + /* "talib/_abstract.pxi":236 + * return ret + * + * def set_parameters(self, parameters): # <<<<<<<<<<<<<< + * """ + * Sets the function parameter values. + */ + __pyx_tuple__2629 = PyTuple_Pack(4, __pyx_n_s_self, __pyx_n_s_parameters, __pyx_n_s_param, __pyx_n_s_value); if (unlikely(!__pyx_tuple__2629)) __PYX_ERR(1, 236, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2629); + __Pyx_GIVEREF(__pyx_tuple__2629); + __pyx_codeobj__2630 = (PyObject*)__Pyx_PyCode_New(2, 0, 4, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2629, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_3, __pyx_n_s_set_parameters, 236, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2630)) __PYX_ERR(1, 236, __pyx_L1_error) + + /* "talib/_abstract.pxi":247 + * parameters = property(get_parameters, set_parameters) + * + * def set_function_args(self, *args, **kwargs): # <<<<<<<<<<<<<< + * """ + * optionl args:[input_arrays,] [parameter_args,] [input_price_series_kwargs,] [parameter_kwargs] + */ + __pyx_tuple__2631 = PyTuple_Pack(9, __pyx_n_s_self, __pyx_n_s_args, __pyx_n_s_kwargs, __pyx_n_s_update_info, __pyx_n_s_key, __pyx_n_s_skip_first, __pyx_n_s_i, __pyx_n_s_param_name, __pyx_n_s_value); if (unlikely(!__pyx_tuple__2631)) __PYX_ERR(1, 247, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2631); + __Pyx_GIVEREF(__pyx_tuple__2631); + __pyx_codeobj__2632 = (PyObject*)__Pyx_PyCode_New(1, 0, 9, 0, CO_VARARGS|CO_VARKEYWORDS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2631, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_3, __pyx_n_s_set_function_args, 247, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2632)) __PYX_ERR(1, 247, __pyx_L1_error) + + /* "talib/_abstract.pxi":279 + * + * @property + * def lookback(self): # <<<<<<<<<<<<<< + * """ + * Returns the lookback window size for the function with the parameter + */ + __pyx_tuple__2633 = PyTuple_Pack(7, __pyx_n_s_self, __pyx_n_s_holder, __pyx_n_s_i, __pyx_n_s_opt_input, __pyx_n_s_value, __pyx_n_s_type, __pyx_n_s_lookback); if (unlikely(!__pyx_tuple__2633)) __PYX_ERR(1, 279, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2633); + __Pyx_GIVEREF(__pyx_tuple__2633); + __pyx_codeobj__2634 = (PyObject*)__Pyx_PyCode_New(1, 0, 7, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2633, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_3, __pyx_n_s_lookback, 279, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2634)) __PYX_ERR(1, 279, __pyx_L1_error) + + /* "talib/_abstract.pxi":299 + * + * @property + * def output_names(self): # <<<<<<<<<<<<<< + * """ + * Returns a list of the output names returned by this function. + */ + __pyx_tuple__2635 = PyTuple_Pack(2, __pyx_n_s_self, __pyx_n_s_ret); if (unlikely(!__pyx_tuple__2635)) __PYX_ERR(1, 299, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2635); + __Pyx_GIVEREF(__pyx_tuple__2635); + __pyx_codeobj__2636 = (PyObject*)__Pyx_PyCode_New(1, 0, 2, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2635, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_3, __pyx_n_s_output_names, 299, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2636)) __PYX_ERR(1, 299, __pyx_L1_error) + + /* "talib/_abstract.pxi":309 + * + * @property + * def outputs(self): # <<<<<<<<<<<<<< + * """ + * Returns the TA function values for the currently set input_arrays and + */ + __pyx_tuple__2637 = PyTuple_Pack(3, __pyx_n_s_self, __pyx_n_s_ret, __pyx_n_s_index); if (unlikely(!__pyx_tuple__2637)) __PYX_ERR(1, 309, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2637); + __Pyx_GIVEREF(__pyx_tuple__2637); + __pyx_codeobj__2638 = (PyObject*)__Pyx_PyCode_New(1, 0, 3, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2637, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_3, __pyx_n_s_outputs, 309, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2638)) __PYX_ERR(1, 309, __pyx_L1_error) + + /* "talib/_abstract.pxi":332 + * return ret[0] if len(ret) == 1 else ret + * + * def run(self, input_arrays=None): # <<<<<<<<<<<<<< + * """ + * run([input_arrays=None]) + */ + __pyx_tuple__2639 = PyTuple_Pack(2, __pyx_n_s_self, __pyx_n_s_input_arrays); if (unlikely(!__pyx_tuple__2639)) __PYX_ERR(1, 332, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2639); + __Pyx_GIVEREF(__pyx_tuple__2639); + __pyx_codeobj__2640 = (PyObject*)__Pyx_PyCode_New(2, 0, 2, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2639, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_3, __pyx_n_s_run, 332, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2640)) __PYX_ERR(1, 332, __pyx_L1_error) + __pyx_tuple__2641 = PyTuple_Pack(1, ((PyObject *)Py_None)); if (unlikely(!__pyx_tuple__2641)) __PYX_ERR(1, 332, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2641); + __Pyx_GIVEREF(__pyx_tuple__2641); + + /* "talib/_abstract.pxi":344 + * return self.outputs + * + * def __call__(self, *args, **kwargs): # <<<<<<<<<<<<<< + * """ + * func_instance([input_arrays,] [parameter_args,] [input_price_series_kwargs,] [parameter_kwargs]) + */ + __pyx_tuple__2642 = PyTuple_Pack(3, __pyx_n_s_self, __pyx_n_s_args, __pyx_n_s_kwargs); if (unlikely(!__pyx_tuple__2642)) __PYX_ERR(1, 344, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2642); + __Pyx_GIVEREF(__pyx_tuple__2642); + __pyx_codeobj__2643 = (PyObject*)__Pyx_PyCode_New(1, 0, 3, 0, CO_VARARGS|CO_VARKEYWORDS, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2642, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_3, __pyx_n_s_call, 344, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2643)) __PYX_ERR(1, 344, __pyx_L1_error) + + /* "talib/_abstract.pxi":356 + * + * # figure out which price series names we're using for inputs + * def __input_price_series_names(self): # <<<<<<<<<<<<<< + * input_price_series_names = [] + * for input_name in self.__input_names: + */ + __pyx_tuple__2644 = PyTuple_Pack(5, __pyx_n_s_self, __pyx_n_s_input_price_series_names, __pyx_n_s_input_name, __pyx_n_s_price_series, __pyx_n_s_name); if (unlikely(!__pyx_tuple__2644)) __PYX_ERR(1, 356, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2644); + __Pyx_GIVEREF(__pyx_tuple__2644); + __pyx_codeobj__2645 = (PyObject*)__Pyx_PyCode_New(1, 0, 5, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2644, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_3, __pyx_n_s_input_price_series_names_2, 356, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2645)) __PYX_ERR(1, 356, __pyx_L1_error) + + /* "talib/_abstract.pxi":367 + * return input_price_series_names + * + * def __call_function(self): # <<<<<<<<<<<<<< + * input_price_series_names = self.__input_price_series_names() + * + */ + __pyx_tuple__2646 = PyTuple_Pack(11, __pyx_n_s_self, __pyx_n_s_input_price_series_names, __pyx_n_s_args, __pyx_n_s_price_series, __pyx_n_s_series, __pyx_n_s_opt_input, __pyx_n_s_value, __pyx_n_s_results, __pyx_n_s_keys, __pyx_n_s_i, __pyx_n_s_output); if (unlikely(!__pyx_tuple__2646)) __PYX_ERR(1, 367, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2646); + __Pyx_GIVEREF(__pyx_tuple__2646); + __pyx_codeobj__2647 = (PyObject*)__Pyx_PyCode_New(1, 0, 11, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2646, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_3, __pyx_n_s_call_function, 367, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2647)) __PYX_ERR(1, 367, __pyx_L1_error) + + /* "talib/_abstract.pxi":394 + * self.__outputs_valid = True + * + * def __get_opt_input_value(self, input_name): # <<<<<<<<<<<<<< + * """ + * Returns the user-set value if there is one, otherwise the default. + */ + __pyx_tuple__2648 = PyTuple_Pack(3, __pyx_n_s_self, __pyx_n_s_input_name, __pyx_n_s_value); if (unlikely(!__pyx_tuple__2648)) __PYX_ERR(1, 394, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2648); + __Pyx_GIVEREF(__pyx_tuple__2648); + __pyx_codeobj__2649 = (PyObject*)__Pyx_PyCode_New(2, 0, 3, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2648, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_3, __pyx_n_s_get_opt_input_value, 394, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2649)) __PYX_ERR(1, 394, __pyx_L1_error) + + /* "talib/_abstract.pxi":403 + * return value + * + * def __repr__(self): # <<<<<<<<<<<<<< + * return '%s' % self.info + * + */ + __pyx_tuple__2650 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__2650)) __PYX_ERR(1, 403, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2650); + __Pyx_GIVEREF(__pyx_tuple__2650); + __pyx_codeobj__2651 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2650, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_3, __pyx_n_s_repr, 403, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2651)) __PYX_ERR(1, 403, __pyx_L1_error) + + /* "talib/_abstract.pxi":406 + * return '%s' % self.info + * + * def __unicode__(self): # <<<<<<<<<<<<<< + * return unicode(self.__str__()) + * + */ + __pyx_tuple__2652 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__2652)) __PYX_ERR(1, 406, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2652); + __Pyx_GIVEREF(__pyx_tuple__2652); + __pyx_codeobj__2653 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2652, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_3, __pyx_n_s_unicode, 406, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2653)) __PYX_ERR(1, 406, __pyx_L1_error) + + /* "talib/_abstract.pxi":409 + * return unicode(self.__str__()) + * + * def __str__(self): # <<<<<<<<<<<<<< + * return _get_defaults_and_docs(self.info)[1] # docstring includes defaults + * + */ + __pyx_tuple__2654 = PyTuple_Pack(1, __pyx_n_s_self); if (unlikely(!__pyx_tuple__2654)) __PYX_ERR(1, 409, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2654); + __Pyx_GIVEREF(__pyx_tuple__2654); + __pyx_codeobj__2655 = (PyObject*)__Pyx_PyCode_New(1, 0, 1, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2654, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_3, __pyx_n_s_str, 409, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2655)) __PYX_ERR(1, 409, __pyx_L1_error) + + /* "talib/_abstract.pxi":423 + * # therefore recommended over using these functions directly. + * + * def _ta_getGroupTable(): # <<<<<<<<<<<<<< + * """ + * Returns the list of available TALIB function group names. *slow* + */ + __pyx_tuple__2656 = PyTuple_Pack(3, __pyx_n_s_table, __pyx_n_s_groups, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2656)) __PYX_ERR(1, 423, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2656); + __Pyx_GIVEREF(__pyx_tuple__2656); + __pyx_codeobj__2657 = (PyObject*)__Pyx_PyCode_New(0, 0, 3, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2656, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_3, __pyx_n_s_ta_getGroupTable, 423, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2657)) __PYX_ERR(1, 423, __pyx_L1_error) + + /* "talib/_abstract.pxi":435 + * return groups + * + * def _ta_getFuncTable(char *group): # <<<<<<<<<<<<<< + * """ + * Returns a list of the functions for the specified group name. *slow* + */ + __pyx_tuple__2658 = PyTuple_Pack(5, __pyx_n_s_group, __pyx_n_s_group, __pyx_n_s_table, __pyx_n_s_functions, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2658)) __PYX_ERR(1, 435, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2658); + __Pyx_GIVEREF(__pyx_tuple__2658); + __pyx_codeobj__2659 = (PyObject*)__Pyx_PyCode_New(1, 0, 5, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2658, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_3, __pyx_n_s_ta_getFuncTable, 435, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2659)) __PYX_ERR(1, 435, __pyx_L1_error) + + /* "talib/_abstract.pxi":447 + * return functions + * + * def __get_flags(int flag, dict flags_lookup_dict): # <<<<<<<<<<<<<< + * """ + * TA-LIB provides hints for multiple flags as a bitwise-ORed int. + */ + __pyx_tuple__2660 = PyTuple_Pack(7, __pyx_n_s_flag, __pyx_n_s_flags_lookup_dict, __pyx_n_s_value_range, __pyx_n_s_min_int, __pyx_n_s_max_int, __pyx_n_s_ret, __pyx_n_s_i); if (unlikely(!__pyx_tuple__2660)) __PYX_ERR(1, 447, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2660); + __Pyx_GIVEREF(__pyx_tuple__2660); + __pyx_codeobj__2661 = (PyObject*)__Pyx_PyCode_New(2, 0, 7, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2660, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_3, __pyx_n_s_get_flags, 447, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2661)) __PYX_ERR(1, 447, __pyx_L1_error) + + /* "talib/_abstract.pxi":506 + * } + * + * def _ta_getFuncInfo(char *function_name): # <<<<<<<<<<<<<< + * """ + * Returns the info dict for the function. It has the following keys: name, + */ + __pyx_tuple__2662 = PyTuple_Pack(4, __pyx_n_s_function_name, __pyx_n_s_function_name, __pyx_n_s_info, __pyx_n_s_retCode); if (unlikely(!__pyx_tuple__2662)) __PYX_ERR(1, 506, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2662); + __Pyx_GIVEREF(__pyx_tuple__2662); + __pyx_codeobj__2663 = (PyObject*)__Pyx_PyCode_New(1, 0, 4, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2662, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_3, __pyx_n_s_ta_getFuncInfo, 506, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2663)) __PYX_ERR(1, 506, __pyx_L1_error) + + /* "talib/_abstract.pxi":525 + * } + * + * def _ta_getInputParameterInfo(char *function_name, int idx): # <<<<<<<<<<<<<< + * """ + * Returns the function's input info dict for the given index. It has two + */ + __pyx_tuple__2664 = PyTuple_Pack(5, __pyx_n_s_function_name, __pyx_n_s_idx, __pyx_n_s_info, __pyx_n_s_retCode, __pyx_n_s_name); if (unlikely(!__pyx_tuple__2664)) __PYX_ERR(1, 525, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2664); + __Pyx_GIVEREF(__pyx_tuple__2664); + __pyx_codeobj__2665 = (PyObject*)__Pyx_PyCode_New(2, 0, 5, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2664, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_3, __pyx_n_s_ta_getInputParameterInfo, 525, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2665)) __PYX_ERR(1, 525, __pyx_L1_error) + + /* "talib/_abstract.pxi":546 + * } + * + * def _ta_getOptInputParameterInfo(char *function_name, int idx): # <<<<<<<<<<<<<< + * """ + * Returns the function's opt_input info dict for the given index. It has the + */ + __pyx_tuple__2666 = PyTuple_Pack(6, __pyx_n_s_function_name, __pyx_n_s_idx, __pyx_n_s_info, __pyx_n_s_retCode, __pyx_n_s_name, __pyx_n_s_default_value); if (unlikely(!__pyx_tuple__2666)) __PYX_ERR(1, 546, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2666); + __Pyx_GIVEREF(__pyx_tuple__2666); + __pyx_codeobj__2667 = (PyObject*)__Pyx_PyCode_New(2, 0, 6, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2666, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_3, __pyx_n_s_ta_getOptInputParameterInfo, 546, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2667)) __PYX_ERR(1, 546, __pyx_L1_error) + + /* "talib/_abstract.pxi":570 + * } + * + * def _ta_getOutputParameterInfo(char *function_name, int idx): # <<<<<<<<<<<<<< + * """ + * Returns the function's output info dict for the given index. It has two + */ + __pyx_tuple__2668 = PyTuple_Pack(5, __pyx_n_s_function_name, __pyx_n_s_idx, __pyx_n_s_info, __pyx_n_s_retCode, __pyx_n_s_name); if (unlikely(!__pyx_tuple__2668)) __PYX_ERR(1, 570, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2668); + __Pyx_GIVEREF(__pyx_tuple__2668); + __pyx_codeobj__2669 = (PyObject*)__Pyx_PyCode_New(2, 0, 5, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2668, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_3, __pyx_n_s_ta_getOutputParameterInfo, 570, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2669)) __PYX_ERR(1, 570, __pyx_L1_error) + + /* "talib/_abstract.pxi":590 + * } + * + * def _get_defaults_and_docs(func_info): # <<<<<<<<<<<<<< + * """ + * Returns a tuple with two outputs: defaults, a dict of parameter defaults, + */ + __pyx_tuple__2670 = PyTuple_Pack(13, __pyx_n_s_func_info, __pyx_n_s_defaults, __pyx_n_s_func_line, __pyx_n_s_func_args, __pyx_n_s_docs, __pyx_n_s_input_names, __pyx_n_s_input_name, __pyx_n_s_value, __pyx_n_s_params, __pyx_n_s_param, __pyx_n_s_outputs, __pyx_n_s_output, __pyx_n_s_documentation); if (unlikely(!__pyx_tuple__2670)) __PYX_ERR(1, 590, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2670); + __Pyx_GIVEREF(__pyx_tuple__2670); + __pyx_codeobj__2671 = (PyObject*)__Pyx_PyCode_New(1, 0, 13, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2670, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_3, __pyx_n_s_get_defaults_and_docs, 590, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2671)) __PYX_ERR(1, 590, __pyx_L1_error) + + /* "talib/_stream.pxi":10 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_ACOS( np.ndarray real not None ): # <<<<<<<<<<<<<< + * """ ACOS(real) + * + */ + __pyx_tuple__2672 = 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__2672)) __PYX_ERR(3, 10, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2672); + __Pyx_GIVEREF(__pyx_tuple__2672); + __pyx_codeobj__2673 = (PyObject*)__Pyx_PyCode_New(1, 0, 11, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2672, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_ACOS, 10, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2673)) __PYX_ERR(3, 10, __pyx_L1_error) + + /* "talib/_stream.pxi":44 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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__2674 = 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__2674)) __PYX_ERR(3, 44, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2674); + __Pyx_GIVEREF(__pyx_tuple__2674); + __pyx_codeobj__2675 = (PyObject*)__Pyx_PyCode_New(4, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2674, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_AD, 44, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2675)) __PYX_ERR(3, 44, __pyx_L1_error) + + /* "talib/_stream.pxi":108 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_ADD( np.ndarray real0 not None , np.ndarray real1 not None ): # <<<<<<<<<<<<<< + * """ ADD(real0, real1) + * + */ + __pyx_tuple__2676 = 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__2676)) __PYX_ERR(3, 108, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2676); + __Pyx_GIVEREF(__pyx_tuple__2676); + __pyx_codeobj__2677 = (PyObject*)__Pyx_PyCode_New(2, 0, 13, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2676, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_ADD, 108, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2677)) __PYX_ERR(3, 108, __pyx_L1_error) + + /* "talib/_stream.pxi":153 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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__2678 = 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__2678)) __PYX_ERR(3, 153, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2678); + __Pyx_GIVEREF(__pyx_tuple__2678); + __pyx_codeobj__2679 = (PyObject*)__Pyx_PyCode_New(6, 0, 19, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2678, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_ADOSC, 153, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2679)) __PYX_ERR(3, 153, __pyx_L1_error) + + /* "talib/_stream.pxi":220 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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__2680 = 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__2680)) __PYX_ERR(3, 220, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2680); + __Pyx_GIVEREF(__pyx_tuple__2680); + __pyx_codeobj__2681 = (PyObject*)__Pyx_PyCode_New(4, 0, 16, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2680, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_ADX, 220, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2681)) __PYX_ERR(3, 220, __pyx_L1_error) + + /* "talib/_stream.pxi":276 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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__2682 = 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__2682)) __PYX_ERR(3, 276, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2682); + __Pyx_GIVEREF(__pyx_tuple__2682); + __pyx_codeobj__2683 = (PyObject*)__Pyx_PyCode_New(4, 0, 16, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2682, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_ADXR, 276, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2683)) __PYX_ERR(3, 276, __pyx_L1_error) + + /* "talib/_stream.pxi":332 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_APO( np.ndarray real not None , int fastperiod=-2**31 , int slowperiod=-2**31 , int matype=0 ): # <<<<<<<<<<<<<< + * """ APO(real[, fastperiod=?, slowperiod=?, matype=?]) + * + */ + __pyx_tuple__2684 = 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__2684)) __PYX_ERR(3, 332, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2684); + __Pyx_GIVEREF(__pyx_tuple__2684); + __pyx_codeobj__2685 = (PyObject*)__Pyx_PyCode_New(4, 0, 14, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2684, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_APO, 332, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2685)) __PYX_ERR(3, 332, __pyx_L1_error) + + /* "talib/_stream.pxi":370 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_AROON( np.ndarray high not None , np.ndarray low not None , int timeperiod=-2**31 ): # <<<<<<<<<<<<<< + * """ AROON(high, low[, timeperiod=?]) + * + */ + __pyx_tuple__2686 = 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__2686)) __PYX_ERR(3, 370, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2686); + __Pyx_GIVEREF(__pyx_tuple__2686); + __pyx_codeobj__2687 = (PyObject*)__Pyx_PyCode_New(3, 0, 15, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2686, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_AROON, 370, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2687)) __PYX_ERR(3, 370, __pyx_L1_error) + + /* "talib/_stream.pxi":419 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_AROONOSC( np.ndarray high not None , np.ndarray low not None , int timeperiod=-2**31 ): # <<<<<<<<<<<<<< + * """ AROONOSC(high, low[, timeperiod=?]) + * + */ + __pyx_tuple__2688 = 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__2688)) __PYX_ERR(3, 419, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2688); + __Pyx_GIVEREF(__pyx_tuple__2688); + __pyx_codeobj__2689 = (PyObject*)__Pyx_PyCode_New(3, 0, 14, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2688, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_AROONOSC, 419, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2689)) __PYX_ERR(3, 419, __pyx_L1_error) + + /* "talib/_stream.pxi":465 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_ASIN( np.ndarray real not None ): # <<<<<<<<<<<<<< + * """ ASIN(real) + * + */ + __pyx_tuple__2690 = 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__2690)) __PYX_ERR(3, 465, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2690); + __Pyx_GIVEREF(__pyx_tuple__2690); + __pyx_codeobj__2691 = (PyObject*)__Pyx_PyCode_New(1, 0, 11, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2690, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_ASIN, 465, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2691)) __PYX_ERR(3, 465, __pyx_L1_error) + + /* "talib/_stream.pxi":499 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_ATAN( np.ndarray real not None ): # <<<<<<<<<<<<<< + * """ ATAN(real) + * + */ + __pyx_tuple__2692 = 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__2692)) __PYX_ERR(3, 499, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2692); + __Pyx_GIVEREF(__pyx_tuple__2692); + __pyx_codeobj__2693 = (PyObject*)__Pyx_PyCode_New(1, 0, 11, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2692, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_ATAN, 499, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2693)) __PYX_ERR(3, 499, __pyx_L1_error) + + /* "talib/_stream.pxi":533 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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__2694 = 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__2694)) __PYX_ERR(3, 533, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2694); + __Pyx_GIVEREF(__pyx_tuple__2694); + __pyx_codeobj__2695 = (PyObject*)__Pyx_PyCode_New(4, 0, 16, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2694, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_ATR, 533, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2695)) __PYX_ERR(3, 533, __pyx_L1_error) + + /* "talib/_stream.pxi":589 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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__2696 = 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__2696)) __PYX_ERR(3, 589, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2696); + __Pyx_GIVEREF(__pyx_tuple__2696); + __pyx_codeobj__2697 = (PyObject*)__Pyx_PyCode_New(4, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2696, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_AVGPRICE, 589, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2697)) __PYX_ERR(3, 589, __pyx_L1_error) + + /* "talib/_stream.pxi":653 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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__2698 = 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__2698)) __PYX_ERR(3, 653, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2698); + __Pyx_GIVEREF(__pyx_tuple__2698); + __pyx_codeobj__2699 = (PyObject*)__Pyx_PyCode_New(5, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2698, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_BBANDS, 653, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2699)) __PYX_ERR(3, 653, __pyx_L1_error) + + /* "talib/_stream.pxi":698 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_BETA( np.ndarray real0 not None , np.ndarray real1 not None , int timeperiod=-2**31 ): # <<<<<<<<<<<<<< + * """ BETA(real0, real1[, timeperiod=?]) + * + */ + __pyx_tuple__2700 = 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__2700)) __PYX_ERR(3, 698, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2700); + __Pyx_GIVEREF(__pyx_tuple__2700); + __pyx_codeobj__2701 = (PyObject*)__Pyx_PyCode_New(3, 0, 14, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2700, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_BETA, 698, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2701)) __PYX_ERR(3, 698, __pyx_L1_error) + + /* "talib/_stream.pxi":745 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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__2702 = 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__2702)) __PYX_ERR(3, 745, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2702); + __Pyx_GIVEREF(__pyx_tuple__2702); + __pyx_codeobj__2703 = (PyObject*)__Pyx_PyCode_New(4, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2702, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_BOP, 745, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2703)) __PYX_ERR(3, 745, __pyx_L1_error) + + /* "talib/_stream.pxi":809 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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__2704 = 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__2704)) __PYX_ERR(3, 809, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2704); + __Pyx_GIVEREF(__pyx_tuple__2704); + __pyx_codeobj__2705 = (PyObject*)__Pyx_PyCode_New(4, 0, 16, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2704, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_CCI, 809, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2705)) __PYX_ERR(3, 809, __pyx_L1_error) + + /* "talib/_stream.pxi":865 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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__2706 = 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__2706)) __PYX_ERR(3, 865, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2706); + __Pyx_GIVEREF(__pyx_tuple__2706); + __pyx_codeobj__2707 = (PyObject*)__Pyx_PyCode_New(4, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2706, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_CDL2CROWS, 865, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2707)) __PYX_ERR(3, 865, __pyx_L1_error) + + /* "talib/_stream.pxi":929 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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__2708 = 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__2708)) __PYX_ERR(3, 929, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2708); + __Pyx_GIVEREF(__pyx_tuple__2708); + __pyx_codeobj__2709 = (PyObject*)__Pyx_PyCode_New(4, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2708, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_CDL3BLACKCROWS, 929, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2709)) __PYX_ERR(3, 929, __pyx_L1_error) + + /* "talib/_stream.pxi":993 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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__2710 = 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__2710)) __PYX_ERR(3, 993, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2710); + __Pyx_GIVEREF(__pyx_tuple__2710); + __pyx_codeobj__2711 = (PyObject*)__Pyx_PyCode_New(4, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2710, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_CDL3INSIDE, 993, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2711)) __PYX_ERR(3, 993, __pyx_L1_error) + + /* "talib/_stream.pxi":1057 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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__2712 = 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__2712)) __PYX_ERR(3, 1057, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2712); + __Pyx_GIVEREF(__pyx_tuple__2712); + __pyx_codeobj__2713 = (PyObject*)__Pyx_PyCode_New(4, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2712, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_CDL3LINESTRIKE, 1057, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2713)) __PYX_ERR(3, 1057, __pyx_L1_error) + + /* "talib/_stream.pxi":1121 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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__2714 = 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__2714)) __PYX_ERR(3, 1121, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2714); + __Pyx_GIVEREF(__pyx_tuple__2714); + __pyx_codeobj__2715 = (PyObject*)__Pyx_PyCode_New(4, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2714, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_CDL3OUTSIDE, 1121, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2715)) __PYX_ERR(3, 1121, __pyx_L1_error) + + /* "talib/_stream.pxi":1185 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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__2716 = 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__2716)) __PYX_ERR(3, 1185, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2716); + __Pyx_GIVEREF(__pyx_tuple__2716); + __pyx_codeobj__2717 = (PyObject*)__Pyx_PyCode_New(4, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2716, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_CDL3STARSINSOUTH, 1185, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2717)) __PYX_ERR(3, 1185, __pyx_L1_error) + + /* "talib/_stream.pxi":1249 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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__2718 = 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__2718)) __PYX_ERR(3, 1249, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2718); + __Pyx_GIVEREF(__pyx_tuple__2718); + __pyx_codeobj__2719 = (PyObject*)__Pyx_PyCode_New(4, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2718, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_CDL3WHITESOLDIERS, 1249, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2719)) __PYX_ERR(3, 1249, __pyx_L1_error) + + /* "talib/_stream.pxi":1313 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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__2720 = 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__2720)) __PYX_ERR(3, 1313, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2720); + __Pyx_GIVEREF(__pyx_tuple__2720); + __pyx_codeobj__2721 = (PyObject*)__Pyx_PyCode_New(5, 0, 18, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2720, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_CDLABANDONEDBABY, 1313, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2721)) __PYX_ERR(3, 1313, __pyx_L1_error) + + /* "talib/_stream.pxi":1379 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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__2722 = 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__2722)) __PYX_ERR(3, 1379, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2722); + __Pyx_GIVEREF(__pyx_tuple__2722); + __pyx_codeobj__2723 = (PyObject*)__Pyx_PyCode_New(4, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2722, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_CDLADVANCEBLOCK, 1379, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2723)) __PYX_ERR(3, 1379, __pyx_L1_error) + + /* "talib/_stream.pxi":1443 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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__2724 = 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__2724)) __PYX_ERR(3, 1443, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2724); + __Pyx_GIVEREF(__pyx_tuple__2724); + __pyx_codeobj__2725 = (PyObject*)__Pyx_PyCode_New(4, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2724, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_CDLBELTHOLD, 1443, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2725)) __PYX_ERR(3, 1443, __pyx_L1_error) + + /* "talib/_stream.pxi":1507 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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__2726 = 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__2726)) __PYX_ERR(3, 1507, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2726); + __Pyx_GIVEREF(__pyx_tuple__2726); + __pyx_codeobj__2727 = (PyObject*)__Pyx_PyCode_New(4, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2726, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_CDLBREAKAWAY, 1507, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2727)) __PYX_ERR(3, 1507, __pyx_L1_error) + + /* "talib/_stream.pxi":1571 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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__2728 = 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__2728)) __PYX_ERR(3, 1571, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2728); + __Pyx_GIVEREF(__pyx_tuple__2728); + __pyx_codeobj__2729 = (PyObject*)__Pyx_PyCode_New(4, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2728, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_CDLCLOSINGMARUBOZU, 1571, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2729)) __PYX_ERR(3, 1571, __pyx_L1_error) + + /* "talib/_stream.pxi":1635 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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__2730 = 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__2730)) __PYX_ERR(3, 1635, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2730); + __Pyx_GIVEREF(__pyx_tuple__2730); + __pyx_codeobj__2731 = (PyObject*)__Pyx_PyCode_New(4, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2730, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_CDLCONCEALBABYSWALL, 1635, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2731)) __PYX_ERR(3, 1635, __pyx_L1_error) + + /* "talib/_stream.pxi":1699 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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__2732 = 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__2732)) __PYX_ERR(3, 1699, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2732); + __Pyx_GIVEREF(__pyx_tuple__2732); + __pyx_codeobj__2733 = (PyObject*)__Pyx_PyCode_New(4, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2732, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_CDLCOUNTERATTACK, 1699, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2733)) __PYX_ERR(3, 1699, __pyx_L1_error) + + /* "talib/_stream.pxi":1763 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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__2734 = 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__2734)) __PYX_ERR(3, 1763, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2734); + __Pyx_GIVEREF(__pyx_tuple__2734); + __pyx_codeobj__2735 = (PyObject*)__Pyx_PyCode_New(5, 0, 18, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2734, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_CDLDARKCLOUDCOVER, 1763, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2735)) __PYX_ERR(3, 1763, __pyx_L1_error) + + /* "talib/_stream.pxi":1829 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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__2736 = 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__2736)) __PYX_ERR(3, 1829, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2736); + __Pyx_GIVEREF(__pyx_tuple__2736); + __pyx_codeobj__2737 = (PyObject*)__Pyx_PyCode_New(4, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2736, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_CDLDOJI, 1829, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2737)) __PYX_ERR(3, 1829, __pyx_L1_error) + + /* "talib/_stream.pxi":1893 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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__2738 = 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__2738)) __PYX_ERR(3, 1893, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2738); + __Pyx_GIVEREF(__pyx_tuple__2738); + __pyx_codeobj__2739 = (PyObject*)__Pyx_PyCode_New(4, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2738, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_CDLDOJISTAR, 1893, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2739)) __PYX_ERR(3, 1893, __pyx_L1_error) + + /* "talib/_stream.pxi":1957 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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__2740 = 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__2740)) __PYX_ERR(3, 1957, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2740); + __Pyx_GIVEREF(__pyx_tuple__2740); + __pyx_codeobj__2741 = (PyObject*)__Pyx_PyCode_New(4, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2740, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_CDLDRAGONFLYDOJI, 1957, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2741)) __PYX_ERR(3, 1957, __pyx_L1_error) + + /* "talib/_stream.pxi":2021 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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__2742 = 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__2742)) __PYX_ERR(3, 2021, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2742); + __Pyx_GIVEREF(__pyx_tuple__2742); + __pyx_codeobj__2743 = (PyObject*)__Pyx_PyCode_New(4, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2742, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_CDLENGULFING, 2021, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2743)) __PYX_ERR(3, 2021, __pyx_L1_error) + + /* "talib/_stream.pxi":2085 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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__2744 = 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__2744)) __PYX_ERR(3, 2085, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2744); + __Pyx_GIVEREF(__pyx_tuple__2744); + __pyx_codeobj__2745 = (PyObject*)__Pyx_PyCode_New(5, 0, 18, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2744, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_CDLEVENINGDOJISTAR, 2085, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2745)) __PYX_ERR(3, 2085, __pyx_L1_error) + + /* "talib/_stream.pxi":2151 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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__2746 = 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__2746)) __PYX_ERR(3, 2151, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2746); + __Pyx_GIVEREF(__pyx_tuple__2746); + __pyx_codeobj__2747 = (PyObject*)__Pyx_PyCode_New(5, 0, 18, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2746, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_CDLEVENINGSTAR, 2151, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2747)) __PYX_ERR(3, 2151, __pyx_L1_error) + + /* "talib/_stream.pxi":2217 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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__2748 = 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__2748)) __PYX_ERR(3, 2217, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2748); + __Pyx_GIVEREF(__pyx_tuple__2748); + __pyx_codeobj__2749 = (PyObject*)__Pyx_PyCode_New(4, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2748, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_CDLGAPSIDESIDEWHITE, 2217, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2749)) __PYX_ERR(3, 2217, __pyx_L1_error) + + /* "talib/_stream.pxi":2281 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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__2750 = 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__2750)) __PYX_ERR(3, 2281, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2750); + __Pyx_GIVEREF(__pyx_tuple__2750); + __pyx_codeobj__2751 = (PyObject*)__Pyx_PyCode_New(4, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2750, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_CDLGRAVESTONEDOJI, 2281, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2751)) __PYX_ERR(3, 2281, __pyx_L1_error) + + /* "talib/_stream.pxi":2345 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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__2752 = 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__2752)) __PYX_ERR(3, 2345, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2752); + __Pyx_GIVEREF(__pyx_tuple__2752); + __pyx_codeobj__2753 = (PyObject*)__Pyx_PyCode_New(4, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2752, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_CDLHAMMER, 2345, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2753)) __PYX_ERR(3, 2345, __pyx_L1_error) + + /* "talib/_stream.pxi":2409 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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__2754 = 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__2754)) __PYX_ERR(3, 2409, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2754); + __Pyx_GIVEREF(__pyx_tuple__2754); + __pyx_codeobj__2755 = (PyObject*)__Pyx_PyCode_New(4, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2754, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_CDLHANGINGMAN, 2409, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2755)) __PYX_ERR(3, 2409, __pyx_L1_error) + + /* "talib/_stream.pxi":2473 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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__2756 = 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__2756)) __PYX_ERR(3, 2473, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2756); + __Pyx_GIVEREF(__pyx_tuple__2756); + __pyx_codeobj__2757 = (PyObject*)__Pyx_PyCode_New(4, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2756, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_CDLHARAMI, 2473, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2757)) __PYX_ERR(3, 2473, __pyx_L1_error) + + /* "talib/_stream.pxi":2537 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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__2758 = 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__2758)) __PYX_ERR(3, 2537, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2758); + __Pyx_GIVEREF(__pyx_tuple__2758); + __pyx_codeobj__2759 = (PyObject*)__Pyx_PyCode_New(4, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2758, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_CDLHARAMICROSS, 2537, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2759)) __PYX_ERR(3, 2537, __pyx_L1_error) + + /* "talib/_stream.pxi":2601 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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__2760 = 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__2760)) __PYX_ERR(3, 2601, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2760); + __Pyx_GIVEREF(__pyx_tuple__2760); + __pyx_codeobj__2761 = (PyObject*)__Pyx_PyCode_New(4, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2760, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_CDLHIGHWAVE, 2601, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2761)) __PYX_ERR(3, 2601, __pyx_L1_error) + + /* "talib/_stream.pxi":2665 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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__2762 = 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__2762)) __PYX_ERR(3, 2665, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2762); + __Pyx_GIVEREF(__pyx_tuple__2762); + __pyx_codeobj__2763 = (PyObject*)__Pyx_PyCode_New(4, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2762, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_CDLHIKKAKE, 2665, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2763)) __PYX_ERR(3, 2665, __pyx_L1_error) + + /* "talib/_stream.pxi":2729 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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__2764 = 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__2764)) __PYX_ERR(3, 2729, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2764); + __Pyx_GIVEREF(__pyx_tuple__2764); + __pyx_codeobj__2765 = (PyObject*)__Pyx_PyCode_New(4, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2764, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_CDLHIKKAKEMOD, 2729, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2765)) __PYX_ERR(3, 2729, __pyx_L1_error) + + /* "talib/_stream.pxi":2793 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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__2766 = 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__2766)) __PYX_ERR(3, 2793, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2766); + __Pyx_GIVEREF(__pyx_tuple__2766); + __pyx_codeobj__2767 = (PyObject*)__Pyx_PyCode_New(4, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2766, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_CDLHOMINGPIGEON, 2793, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2767)) __PYX_ERR(3, 2793, __pyx_L1_error) + + /* "talib/_stream.pxi":2857 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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__2768 = 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__2768)) __PYX_ERR(3, 2857, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2768); + __Pyx_GIVEREF(__pyx_tuple__2768); + __pyx_codeobj__2769 = (PyObject*)__Pyx_PyCode_New(4, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2768, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_CDLIDENTICAL3CROWS, 2857, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2769)) __PYX_ERR(3, 2857, __pyx_L1_error) + + /* "talib/_stream.pxi":2921 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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__2770 = 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__2770)) __PYX_ERR(3, 2921, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2770); + __Pyx_GIVEREF(__pyx_tuple__2770); + __pyx_codeobj__2771 = (PyObject*)__Pyx_PyCode_New(4, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2770, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_CDLINNECK, 2921, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2771)) __PYX_ERR(3, 2921, __pyx_L1_error) + + /* "talib/_stream.pxi":2985 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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__2772 = 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__2772)) __PYX_ERR(3, 2985, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2772); + __Pyx_GIVEREF(__pyx_tuple__2772); + __pyx_codeobj__2773 = (PyObject*)__Pyx_PyCode_New(4, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2772, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_CDLINVERTEDHAMMER, 2985, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2773)) __PYX_ERR(3, 2985, __pyx_L1_error) + + /* "talib/_stream.pxi":3049 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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__2774 = 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__2774)) __PYX_ERR(3, 3049, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2774); + __Pyx_GIVEREF(__pyx_tuple__2774); + __pyx_codeobj__2775 = (PyObject*)__Pyx_PyCode_New(4, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2774, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_CDLKICKING, 3049, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2775)) __PYX_ERR(3, 3049, __pyx_L1_error) + + /* "talib/_stream.pxi":3113 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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__2776 = 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__2776)) __PYX_ERR(3, 3113, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2776); + __Pyx_GIVEREF(__pyx_tuple__2776); + __pyx_codeobj__2777 = (PyObject*)__Pyx_PyCode_New(4, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2776, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_CDLKICKINGBYLENGTH, 3113, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2777)) __PYX_ERR(3, 3113, __pyx_L1_error) + + /* "talib/_stream.pxi":3177 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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__2778 = 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__2778)) __PYX_ERR(3, 3177, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2778); + __Pyx_GIVEREF(__pyx_tuple__2778); + __pyx_codeobj__2779 = (PyObject*)__Pyx_PyCode_New(4, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2778, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_CDLLADDERBOTTOM, 3177, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2779)) __PYX_ERR(3, 3177, __pyx_L1_error) + + /* "talib/_stream.pxi":3241 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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__2780 = 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__2780)) __PYX_ERR(3, 3241, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2780); + __Pyx_GIVEREF(__pyx_tuple__2780); + __pyx_codeobj__2781 = (PyObject*)__Pyx_PyCode_New(4, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2780, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_CDLLONGLEGGEDDOJI, 3241, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2781)) __PYX_ERR(3, 3241, __pyx_L1_error) + + /* "talib/_stream.pxi":3305 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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__2782 = 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__2782)) __PYX_ERR(3, 3305, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2782); + __Pyx_GIVEREF(__pyx_tuple__2782); + __pyx_codeobj__2783 = (PyObject*)__Pyx_PyCode_New(4, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2782, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_CDLLONGLINE, 3305, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2783)) __PYX_ERR(3, 3305, __pyx_L1_error) + + /* "talib/_stream.pxi":3369 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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__2784 = 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__2784)) __PYX_ERR(3, 3369, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2784); + __Pyx_GIVEREF(__pyx_tuple__2784); + __pyx_codeobj__2785 = (PyObject*)__Pyx_PyCode_New(4, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2784, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_CDLMARUBOZU, 3369, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2785)) __PYX_ERR(3, 3369, __pyx_L1_error) + + /* "talib/_stream.pxi":3433 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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__2786 = 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__2786)) __PYX_ERR(3, 3433, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2786); + __Pyx_GIVEREF(__pyx_tuple__2786); + __pyx_codeobj__2787 = (PyObject*)__Pyx_PyCode_New(4, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2786, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_CDLMATCHINGLOW, 3433, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2787)) __PYX_ERR(3, 3433, __pyx_L1_error) + + /* "talib/_stream.pxi":3497 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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__2788 = 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__2788)) __PYX_ERR(3, 3497, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2788); + __Pyx_GIVEREF(__pyx_tuple__2788); + __pyx_codeobj__2789 = (PyObject*)__Pyx_PyCode_New(5, 0, 18, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2788, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_CDLMATHOLD, 3497, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2789)) __PYX_ERR(3, 3497, __pyx_L1_error) + + /* "talib/_stream.pxi":3563 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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__2790 = 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__2790)) __PYX_ERR(3, 3563, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2790); + __Pyx_GIVEREF(__pyx_tuple__2790); + __pyx_codeobj__2791 = (PyObject*)__Pyx_PyCode_New(5, 0, 18, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2790, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_CDLMORNINGDOJISTAR, 3563, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2791)) __PYX_ERR(3, 3563, __pyx_L1_error) + + /* "talib/_stream.pxi":3629 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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__2792 = 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__2792)) __PYX_ERR(3, 3629, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2792); + __Pyx_GIVEREF(__pyx_tuple__2792); + __pyx_codeobj__2793 = (PyObject*)__Pyx_PyCode_New(5, 0, 18, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2792, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_CDLMORNINGSTAR, 3629, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2793)) __PYX_ERR(3, 3629, __pyx_L1_error) + + /* "talib/_stream.pxi":3695 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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__2794 = 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__2794)) __PYX_ERR(3, 3695, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2794); + __Pyx_GIVEREF(__pyx_tuple__2794); + __pyx_codeobj__2795 = (PyObject*)__Pyx_PyCode_New(4, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2794, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_CDLONNECK, 3695, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2795)) __PYX_ERR(3, 3695, __pyx_L1_error) + + /* "talib/_stream.pxi":3759 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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__2796 = 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__2796)) __PYX_ERR(3, 3759, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2796); + __Pyx_GIVEREF(__pyx_tuple__2796); + __pyx_codeobj__2797 = (PyObject*)__Pyx_PyCode_New(4, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2796, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_CDLPIERCING, 3759, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2797)) __PYX_ERR(3, 3759, __pyx_L1_error) + + /* "talib/_stream.pxi":3823 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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__2798 = 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__2798)) __PYX_ERR(3, 3823, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2798); + __Pyx_GIVEREF(__pyx_tuple__2798); + __pyx_codeobj__2799 = (PyObject*)__Pyx_PyCode_New(4, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2798, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_CDLRICKSHAWMAN, 3823, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2799)) __PYX_ERR(3, 3823, __pyx_L1_error) + + /* "talib/_stream.pxi":3887 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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__2800 = 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__2800)) __PYX_ERR(3, 3887, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2800); + __Pyx_GIVEREF(__pyx_tuple__2800); + __pyx_codeobj__2801 = (PyObject*)__Pyx_PyCode_New(4, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2800, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_CDLRISEFALL3METHODS, 3887, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2801)) __PYX_ERR(3, 3887, __pyx_L1_error) + + /* "talib/_stream.pxi":3951 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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__2802 = 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__2802)) __PYX_ERR(3, 3951, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2802); + __Pyx_GIVEREF(__pyx_tuple__2802); + __pyx_codeobj__2803 = (PyObject*)__Pyx_PyCode_New(4, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2802, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_CDLSEPARATINGLINES, 3951, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2803)) __PYX_ERR(3, 3951, __pyx_L1_error) + + /* "talib/_stream.pxi":4015 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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__2804 = 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__2804)) __PYX_ERR(3, 4015, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2804); + __Pyx_GIVEREF(__pyx_tuple__2804); + __pyx_codeobj__2805 = (PyObject*)__Pyx_PyCode_New(4, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2804, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_CDLSHOOTINGSTAR, 4015, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2805)) __PYX_ERR(3, 4015, __pyx_L1_error) + + /* "talib/_stream.pxi":4079 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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__2806 = 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__2806)) __PYX_ERR(3, 4079, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2806); + __Pyx_GIVEREF(__pyx_tuple__2806); + __pyx_codeobj__2807 = (PyObject*)__Pyx_PyCode_New(4, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2806, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_CDLSHORTLINE, 4079, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2807)) __PYX_ERR(3, 4079, __pyx_L1_error) + + /* "talib/_stream.pxi":4143 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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__2808 = 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__2808)) __PYX_ERR(3, 4143, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2808); + __Pyx_GIVEREF(__pyx_tuple__2808); + __pyx_codeobj__2809 = (PyObject*)__Pyx_PyCode_New(4, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2808, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_CDLSPINNINGTOP, 4143, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2809)) __PYX_ERR(3, 4143, __pyx_L1_error) + + /* "talib/_stream.pxi":4207 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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__2810 = 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__2810)) __PYX_ERR(3, 4207, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2810); + __Pyx_GIVEREF(__pyx_tuple__2810); + __pyx_codeobj__2811 = (PyObject*)__Pyx_PyCode_New(4, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2810, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_CDLSTALLEDPATTERN, 4207, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2811)) __PYX_ERR(3, 4207, __pyx_L1_error) + + /* "talib/_stream.pxi":4271 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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__2812 = 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__2812)) __PYX_ERR(3, 4271, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2812); + __Pyx_GIVEREF(__pyx_tuple__2812); + __pyx_codeobj__2813 = (PyObject*)__Pyx_PyCode_New(4, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2812, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_CDLSTICKSANDWICH, 4271, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2813)) __PYX_ERR(3, 4271, __pyx_L1_error) + + /* "talib/_stream.pxi":4335 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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__2814 = 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__2814)) __PYX_ERR(3, 4335, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2814); + __Pyx_GIVEREF(__pyx_tuple__2814); + __pyx_codeobj__2815 = (PyObject*)__Pyx_PyCode_New(4, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2814, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_CDLTAKURI, 4335, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2815)) __PYX_ERR(3, 4335, __pyx_L1_error) + + /* "talib/_stream.pxi":4399 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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__2816 = 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__2816)) __PYX_ERR(3, 4399, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2816); + __Pyx_GIVEREF(__pyx_tuple__2816); + __pyx_codeobj__2817 = (PyObject*)__Pyx_PyCode_New(4, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2816, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_CDLTASUKIGAP, 4399, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2817)) __PYX_ERR(3, 4399, __pyx_L1_error) + + /* "talib/_stream.pxi":4463 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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__2818 = 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__2818)) __PYX_ERR(3, 4463, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2818); + __Pyx_GIVEREF(__pyx_tuple__2818); + __pyx_codeobj__2819 = (PyObject*)__Pyx_PyCode_New(4, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2818, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_CDLTHRUSTING, 4463, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2819)) __PYX_ERR(3, 4463, __pyx_L1_error) + + /* "talib/_stream.pxi":4527 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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__2820 = 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__2820)) __PYX_ERR(3, 4527, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2820); + __Pyx_GIVEREF(__pyx_tuple__2820); + __pyx_codeobj__2821 = (PyObject*)__Pyx_PyCode_New(4, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2820, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_CDLTRISTAR, 4527, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2821)) __PYX_ERR(3, 4527, __pyx_L1_error) + + /* "talib/_stream.pxi":4591 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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__2822 = 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__2822)) __PYX_ERR(3, 4591, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2822); + __Pyx_GIVEREF(__pyx_tuple__2822); + __pyx_codeobj__2823 = (PyObject*)__Pyx_PyCode_New(4, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2822, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_CDLUNIQUE3RIVER, 4591, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2823)) __PYX_ERR(3, 4591, __pyx_L1_error) + + /* "talib/_stream.pxi":4655 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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__2824 = 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__2824)) __PYX_ERR(3, 4655, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2824); + __Pyx_GIVEREF(__pyx_tuple__2824); + __pyx_codeobj__2825 = (PyObject*)__Pyx_PyCode_New(4, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2824, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_CDLUPSIDEGAP2CROWS, 4655, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2825)) __PYX_ERR(3, 4655, __pyx_L1_error) + + /* "talib/_stream.pxi":4719 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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__2826 = 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__2826)) __PYX_ERR(3, 4719, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2826); + __Pyx_GIVEREF(__pyx_tuple__2826); + __pyx_codeobj__2827 = (PyObject*)__Pyx_PyCode_New(4, 0, 17, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2826, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_CDLXSIDEGAP3METHODS, 4719, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2827)) __PYX_ERR(3, 4719, __pyx_L1_error) + + /* "talib/_stream.pxi":4783 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_CEIL( np.ndarray real not None ): # <<<<<<<<<<<<<< + * """ CEIL(real) + * + */ + __pyx_tuple__2828 = 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__2828)) __PYX_ERR(3, 4783, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2828); + __Pyx_GIVEREF(__pyx_tuple__2828); + __pyx_codeobj__2829 = (PyObject*)__Pyx_PyCode_New(1, 0, 11, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2828, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_CEIL, 4783, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2829)) __PYX_ERR(3, 4783, __pyx_L1_error) + + /* "talib/_stream.pxi":4817 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_CMO( np.ndarray real not None , int timeperiod=-2**31 ): # <<<<<<<<<<<<<< + * """ CMO(real[, timeperiod=?]) + * + */ + __pyx_tuple__2830 = 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__2830)) __PYX_ERR(3, 4817, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2830); + __Pyx_GIVEREF(__pyx_tuple__2830); + __pyx_codeobj__2831 = (PyObject*)__Pyx_PyCode_New(2, 0, 12, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2830, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_CMO, 4817, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2831)) __PYX_ERR(3, 4817, __pyx_L1_error) + + /* "talib/_stream.pxi":4853 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_CORREL( np.ndarray real0 not None , np.ndarray real1 not None , int timeperiod=-2**31 ): # <<<<<<<<<<<<<< + * """ CORREL(real0, real1[, timeperiod=?]) + * + */ + __pyx_tuple__2832 = 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__2832)) __PYX_ERR(3, 4853, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2832); + __Pyx_GIVEREF(__pyx_tuple__2832); + __pyx_codeobj__2833 = (PyObject*)__Pyx_PyCode_New(3, 0, 14, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2832, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_CORREL, 4853, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2833)) __PYX_ERR(3, 4853, __pyx_L1_error) + + /* "talib/_stream.pxi":4900 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_COS( np.ndarray real not None ): # <<<<<<<<<<<<<< + * """ COS(real) + * + */ + __pyx_tuple__2834 = 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__2834)) __PYX_ERR(3, 4900, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2834); + __Pyx_GIVEREF(__pyx_tuple__2834); + __pyx_codeobj__2835 = (PyObject*)__Pyx_PyCode_New(1, 0, 11, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2834, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_COS, 4900, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2835)) __PYX_ERR(3, 4900, __pyx_L1_error) + + /* "talib/_stream.pxi":4934 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_COSH( np.ndarray real not None ): # <<<<<<<<<<<<<< + * """ COSH(real) + * + */ + __pyx_tuple__2836 = 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__2836)) __PYX_ERR(3, 4934, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2836); + __Pyx_GIVEREF(__pyx_tuple__2836); + __pyx_codeobj__2837 = (PyObject*)__Pyx_PyCode_New(1, 0, 11, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2836, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_COSH, 4934, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2837)) __PYX_ERR(3, 4934, __pyx_L1_error) + + /* "talib/_stream.pxi":4968 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_DEMA( np.ndarray real not None , int timeperiod=-2**31 ): # <<<<<<<<<<<<<< + * """ DEMA(real[, timeperiod=?]) + * + */ + __pyx_tuple__2838 = 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__2838)) __PYX_ERR(3, 4968, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2838); + __Pyx_GIVEREF(__pyx_tuple__2838); + __pyx_codeobj__2839 = (PyObject*)__Pyx_PyCode_New(2, 0, 12, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2838, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_DEMA, 4968, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2839)) __PYX_ERR(3, 4968, __pyx_L1_error) + + /* "talib/_stream.pxi":5004 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_DIV( np.ndarray real0 not None , np.ndarray real1 not None ): # <<<<<<<<<<<<<< + * """ DIV(real0, real1) + * + */ + __pyx_tuple__2840 = 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__2840)) __PYX_ERR(3, 5004, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2840); + __Pyx_GIVEREF(__pyx_tuple__2840); + __pyx_codeobj__2841 = (PyObject*)__Pyx_PyCode_New(2, 0, 13, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2840, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_DIV, 5004, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2841)) __PYX_ERR(3, 5004, __pyx_L1_error) + + /* "talib/_stream.pxi":5049 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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__2842 = 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__2842)) __PYX_ERR(3, 5049, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2842); + __Pyx_GIVEREF(__pyx_tuple__2842); + __pyx_codeobj__2843 = (PyObject*)__Pyx_PyCode_New(4, 0, 16, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2842, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_DX, 5049, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2843)) __PYX_ERR(3, 5049, __pyx_L1_error) + + /* "talib/_stream.pxi":5105 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_EMA( np.ndarray real not None , int timeperiod=-2**31 ): # <<<<<<<<<<<<<< + * """ EMA(real[, timeperiod=?]) + * + */ + __pyx_tuple__2844 = 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__2844)) __PYX_ERR(3, 5105, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2844); + __Pyx_GIVEREF(__pyx_tuple__2844); + __pyx_codeobj__2845 = (PyObject*)__Pyx_PyCode_New(2, 0, 12, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2844, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_EMA, 5105, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2845)) __PYX_ERR(3, 5105, __pyx_L1_error) + + /* "talib/_stream.pxi":5141 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_EXP( np.ndarray real not None ): # <<<<<<<<<<<<<< + * """ EXP(real) + * + */ + __pyx_tuple__2846 = 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__2846)) __PYX_ERR(3, 5141, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2846); + __Pyx_GIVEREF(__pyx_tuple__2846); + __pyx_codeobj__2847 = (PyObject*)__Pyx_PyCode_New(1, 0, 11, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2846, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_EXP, 5141, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2847)) __PYX_ERR(3, 5141, __pyx_L1_error) + + /* "talib/_stream.pxi":5175 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_FLOOR( np.ndarray real not None ): # <<<<<<<<<<<<<< + * """ FLOOR(real) + * + */ + __pyx_tuple__2848 = 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__2848)) __PYX_ERR(3, 5175, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2848); + __Pyx_GIVEREF(__pyx_tuple__2848); + __pyx_codeobj__2849 = (PyObject*)__Pyx_PyCode_New(1, 0, 11, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2848, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_FLOOR, 5175, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2849)) __PYX_ERR(3, 5175, __pyx_L1_error) + + /* "talib/_stream.pxi":5209 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_HT_DCPERIOD( np.ndarray real not None ): # <<<<<<<<<<<<<< + * """ HT_DCPERIOD(real) + * + */ + __pyx_tuple__2850 = 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__2850)) __PYX_ERR(3, 5209, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2850); + __Pyx_GIVEREF(__pyx_tuple__2850); + __pyx_codeobj__2851 = (PyObject*)__Pyx_PyCode_New(1, 0, 11, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2850, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_HT_DCPERIOD, 5209, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2851)) __PYX_ERR(3, 5209, __pyx_L1_error) + + /* "talib/_stream.pxi":5243 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_HT_DCPHASE( np.ndarray real not None ): # <<<<<<<<<<<<<< + * """ HT_DCPHASE(real) + * + */ + __pyx_tuple__2852 = 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__2852)) __PYX_ERR(3, 5243, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2852); + __Pyx_GIVEREF(__pyx_tuple__2852); + __pyx_codeobj__2853 = (PyObject*)__Pyx_PyCode_New(1, 0, 11, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2852, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_HT_DCPHASE, 5243, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2853)) __PYX_ERR(3, 5243, __pyx_L1_error) + + /* "talib/_stream.pxi":5277 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_HT_PHASOR( np.ndarray real not None ): # <<<<<<<<<<<<<< + * """ HT_PHASOR(real) + * + */ + __pyx_tuple__2854 = 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__2854)) __PYX_ERR(3, 5277, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2854); + __Pyx_GIVEREF(__pyx_tuple__2854); + __pyx_codeobj__2855 = (PyObject*)__Pyx_PyCode_New(1, 0, 12, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2854, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_HT_PHASOR, 5277, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2855)) __PYX_ERR(3, 5277, __pyx_L1_error) + + /* "talib/_stream.pxi":5314 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_HT_SINE( np.ndarray real not None ): # <<<<<<<<<<<<<< + * """ HT_SINE(real) + * + */ + __pyx_tuple__2856 = 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__2856)) __PYX_ERR(3, 5314, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2856); + __Pyx_GIVEREF(__pyx_tuple__2856); + __pyx_codeobj__2857 = (PyObject*)__Pyx_PyCode_New(1, 0, 12, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2856, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_HT_SINE, 5314, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2857)) __PYX_ERR(3, 5314, __pyx_L1_error) + + /* "talib/_stream.pxi":5351 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_HT_TRENDLINE( np.ndarray real not None ): # <<<<<<<<<<<<<< + * """ HT_TRENDLINE(real) + * + */ + __pyx_tuple__2858 = 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__2858)) __PYX_ERR(3, 5351, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2858); + __Pyx_GIVEREF(__pyx_tuple__2858); + __pyx_codeobj__2859 = (PyObject*)__Pyx_PyCode_New(1, 0, 11, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2858, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_HT_TRENDLINE, 5351, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2859)) __PYX_ERR(3, 5351, __pyx_L1_error) + + /* "talib/_stream.pxi":5385 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_HT_TRENDMODE( np.ndarray real not None ): # <<<<<<<<<<<<<< + * """ HT_TRENDMODE(real) + * + */ + __pyx_tuple__2860 = 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__2860)) __PYX_ERR(3, 5385, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2860); + __Pyx_GIVEREF(__pyx_tuple__2860); + __pyx_codeobj__2861 = (PyObject*)__Pyx_PyCode_New(1, 0, 11, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2860, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_HT_TRENDMODE, 5385, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2861)) __PYX_ERR(3, 5385, __pyx_L1_error) + + /* "talib/_stream.pxi":5419 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_KAMA( np.ndarray real not None , int timeperiod=-2**31 ): # <<<<<<<<<<<<<< + * """ KAMA(real[, timeperiod=?]) + * + */ + __pyx_tuple__2862 = 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__2862)) __PYX_ERR(3, 5419, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2862); + __Pyx_GIVEREF(__pyx_tuple__2862); + __pyx_codeobj__2863 = (PyObject*)__Pyx_PyCode_New(2, 0, 12, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2862, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_KAMA, 5419, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2863)) __PYX_ERR(3, 5419, __pyx_L1_error) + + /* "talib/_stream.pxi":5455 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_LINEARREG( np.ndarray real not None , int timeperiod=-2**31 ): # <<<<<<<<<<<<<< + * """ LINEARREG(real[, timeperiod=?]) + * + */ + __pyx_tuple__2864 = 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__2864)) __PYX_ERR(3, 5455, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2864); + __Pyx_GIVEREF(__pyx_tuple__2864); + __pyx_codeobj__2865 = (PyObject*)__Pyx_PyCode_New(2, 0, 12, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2864, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_LINEARREG, 5455, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2865)) __PYX_ERR(3, 5455, __pyx_L1_error) + + /* "talib/_stream.pxi":5491 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_LINEARREG_ANGLE( np.ndarray real not None , int timeperiod=-2**31 ): # <<<<<<<<<<<<<< + * """ LINEARREG_ANGLE(real[, timeperiod=?]) + * + */ + __pyx_tuple__2866 = 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__2866)) __PYX_ERR(3, 5491, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2866); + __Pyx_GIVEREF(__pyx_tuple__2866); + __pyx_codeobj__2867 = (PyObject*)__Pyx_PyCode_New(2, 0, 12, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2866, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_LINEARREG_ANGLE, 5491, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2867)) __PYX_ERR(3, 5491, __pyx_L1_error) + + /* "talib/_stream.pxi":5527 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_LINEARREG_INTERCEPT( np.ndarray real not None , int timeperiod=-2**31 ): # <<<<<<<<<<<<<< + * """ LINEARREG_INTERCEPT(real[, timeperiod=?]) + * + */ + __pyx_tuple__2868 = 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__2868)) __PYX_ERR(3, 5527, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2868); + __Pyx_GIVEREF(__pyx_tuple__2868); + __pyx_codeobj__2869 = (PyObject*)__Pyx_PyCode_New(2, 0, 12, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2868, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_LINEARREG_INTERCEPT, 5527, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2869)) __PYX_ERR(3, 5527, __pyx_L1_error) + + /* "talib/_stream.pxi":5563 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_LINEARREG_SLOPE( np.ndarray real not None , int timeperiod=-2**31 ): # <<<<<<<<<<<<<< + * """ LINEARREG_SLOPE(real[, timeperiod=?]) + * + */ + __pyx_tuple__2870 = 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__2870)) __PYX_ERR(3, 5563, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2870); + __Pyx_GIVEREF(__pyx_tuple__2870); + __pyx_codeobj__2871 = (PyObject*)__Pyx_PyCode_New(2, 0, 12, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2870, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_LINEARREG_SLOPE, 5563, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2871)) __PYX_ERR(3, 5563, __pyx_L1_error) + + /* "talib/_stream.pxi":5599 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_LN( np.ndarray real not None ): # <<<<<<<<<<<<<< + * """ LN(real) + * + */ + __pyx_tuple__2872 = 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__2872)) __PYX_ERR(3, 5599, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2872); + __Pyx_GIVEREF(__pyx_tuple__2872); + __pyx_codeobj__2873 = (PyObject*)__Pyx_PyCode_New(1, 0, 11, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2872, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_LN, 5599, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2873)) __PYX_ERR(3, 5599, __pyx_L1_error) + + /* "talib/_stream.pxi":5633 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_LOG10( np.ndarray real not None ): # <<<<<<<<<<<<<< + * """ LOG10(real) + * + */ + __pyx_tuple__2874 = 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__2874)) __PYX_ERR(3, 5633, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2874); + __Pyx_GIVEREF(__pyx_tuple__2874); + __pyx_codeobj__2875 = (PyObject*)__Pyx_PyCode_New(1, 0, 11, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2874, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_LOG10, 5633, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2875)) __PYX_ERR(3, 5633, __pyx_L1_error) + + /* "talib/_stream.pxi":5667 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_MA( np.ndarray real not None , int timeperiod=-2**31 , int matype=0 ): # <<<<<<<<<<<<<< + * """ MA(real[, timeperiod=?, matype=?]) + * + */ + __pyx_tuple__2876 = 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__2876)) __PYX_ERR(3, 5667, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2876); + __Pyx_GIVEREF(__pyx_tuple__2876); + __pyx_codeobj__2877 = (PyObject*)__Pyx_PyCode_New(3, 0, 13, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2876, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_MA, 5667, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2877)) __PYX_ERR(3, 5667, __pyx_L1_error) + + /* "talib/_stream.pxi":5704 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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__2878 = 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__2878)) __PYX_ERR(3, 5704, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2878); + __Pyx_GIVEREF(__pyx_tuple__2878); + __pyx_codeobj__2879 = (PyObject*)__Pyx_PyCode_New(4, 0, 16, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2878, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_MACD, 5704, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2879)) __PYX_ERR(3, 5704, __pyx_L1_error) + + /* "talib/_stream.pxi":5748 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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__2880 = 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__2880)) __PYX_ERR(3, 5748, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2880); + __Pyx_GIVEREF(__pyx_tuple__2880); + __pyx_codeobj__2881 = (PyObject*)__Pyx_PyCode_New(7, 0, 19, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2880, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_MACDEXT, 5748, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2881)) __PYX_ERR(3, 5748, __pyx_L1_error) + + /* "talib/_stream.pxi":5795 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_MACDFIX( np.ndarray real not None , int signalperiod=-2**31 ): # <<<<<<<<<<<<<< + * """ MACDFIX(real[, signalperiod=?]) + * + */ + __pyx_tuple__2882 = 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__2882)) __PYX_ERR(3, 5795, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2882); + __Pyx_GIVEREF(__pyx_tuple__2882); + __pyx_codeobj__2883 = (PyObject*)__Pyx_PyCode_New(2, 0, 14, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2882, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_MACDFIX, 5795, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2883)) __PYX_ERR(3, 5795, __pyx_L1_error) + + /* "talib/_stream.pxi":5837 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_MAMA( np.ndarray real not None , double fastlimit=-4e37 , double slowlimit=-4e37 ): # <<<<<<<<<<<<<< + * """ MAMA(real[, fastlimit=?, slowlimit=?]) + * + */ + __pyx_tuple__2884 = 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__2884)) __PYX_ERR(3, 5837, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2884); + __Pyx_GIVEREF(__pyx_tuple__2884); + __pyx_codeobj__2885 = (PyObject*)__Pyx_PyCode_New(3, 0, 14, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2884, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_MAMA, 5837, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2885)) __PYX_ERR(3, 5837, __pyx_L1_error) + + /* "talib/_stream.pxi":5877 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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__2886 = 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__2886)) __PYX_ERR(3, 5877, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2886); + __Pyx_GIVEREF(__pyx_tuple__2886); + __pyx_codeobj__2887 = (PyObject*)__Pyx_PyCode_New(5, 0, 16, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2886, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_MAVP, 5877, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2887)) __PYX_ERR(3, 5877, __pyx_L1_error) + + /* "talib/_stream.pxi":5926 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_MAX( np.ndarray real not None , int timeperiod=-2**31 ): # <<<<<<<<<<<<<< + * """ MAX(real[, timeperiod=?]) + * + */ + __pyx_tuple__2888 = 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__2888)) __PYX_ERR(3, 5926, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2888); + __Pyx_GIVEREF(__pyx_tuple__2888); + __pyx_codeobj__2889 = (PyObject*)__Pyx_PyCode_New(2, 0, 12, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2888, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_MAX, 5926, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2889)) __PYX_ERR(3, 5926, __pyx_L1_error) + + /* "talib/_stream.pxi":5962 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_MAXINDEX( np.ndarray real not None , int timeperiod=-2**31 ): # <<<<<<<<<<<<<< + * """ MAXINDEX(real[, timeperiod=?]) + * + */ + __pyx_tuple__2890 = 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__2890)) __PYX_ERR(3, 5962, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2890); + __Pyx_GIVEREF(__pyx_tuple__2890); + __pyx_codeobj__2891 = (PyObject*)__Pyx_PyCode_New(2, 0, 12, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2890, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_MAXINDEX, 5962, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2891)) __PYX_ERR(3, 5962, __pyx_L1_error) + + /* "talib/_stream.pxi":5998 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_MEDPRICE( np.ndarray high not None , np.ndarray low not None ): # <<<<<<<<<<<<<< + * """ MEDPRICE(high, low) + * + */ + __pyx_tuple__2892 = 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__2892)) __PYX_ERR(3, 5998, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2892); + __Pyx_GIVEREF(__pyx_tuple__2892); + __pyx_codeobj__2893 = (PyObject*)__Pyx_PyCode_New(2, 0, 13, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2892, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_MEDPRICE, 5998, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2893)) __PYX_ERR(3, 5998, __pyx_L1_error) + + /* "talib/_stream.pxi":6042 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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__2894 = 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__2894)) __PYX_ERR(3, 6042, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2894); + __Pyx_GIVEREF(__pyx_tuple__2894); + __pyx_codeobj__2895 = (PyObject*)__Pyx_PyCode_New(5, 0, 18, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2894, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_MFI, 6042, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2895)) __PYX_ERR(3, 6042, __pyx_L1_error) + + /* "talib/_stream.pxi":6108 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_MIDPOINT( np.ndarray real not None , int timeperiod=-2**31 ): # <<<<<<<<<<<<<< + * """ MIDPOINT(real[, timeperiod=?]) + * + */ + __pyx_tuple__2896 = 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__2896)) __PYX_ERR(3, 6108, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2896); + __Pyx_GIVEREF(__pyx_tuple__2896); + __pyx_codeobj__2897 = (PyObject*)__Pyx_PyCode_New(2, 0, 12, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2896, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_MIDPOINT, 6108, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2897)) __PYX_ERR(3, 6108, __pyx_L1_error) + + /* "talib/_stream.pxi":6144 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_MIDPRICE( np.ndarray high not None , np.ndarray low not None , int timeperiod=-2**31 ): # <<<<<<<<<<<<<< + * """ MIDPRICE(high, low[, timeperiod=?]) + * + */ + __pyx_tuple__2898 = 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__2898)) __PYX_ERR(3, 6144, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2898); + __Pyx_GIVEREF(__pyx_tuple__2898); + __pyx_codeobj__2899 = (PyObject*)__Pyx_PyCode_New(3, 0, 14, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2898, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_MIDPRICE, 6144, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2899)) __PYX_ERR(3, 6144, __pyx_L1_error) + + /* "talib/_stream.pxi":6190 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_MIN( np.ndarray real not None , int timeperiod=-2**31 ): # <<<<<<<<<<<<<< + * """ MIN(real[, timeperiod=?]) + * + */ + __pyx_tuple__2900 = 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__2900)) __PYX_ERR(3, 6190, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2900); + __Pyx_GIVEREF(__pyx_tuple__2900); + __pyx_codeobj__2901 = (PyObject*)__Pyx_PyCode_New(2, 0, 12, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2900, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_MIN, 6190, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2901)) __PYX_ERR(3, 6190, __pyx_L1_error) + + /* "talib/_stream.pxi":6226 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_MININDEX( np.ndarray real not None , int timeperiod=-2**31 ): # <<<<<<<<<<<<<< + * """ MININDEX(real[, timeperiod=?]) + * + */ + __pyx_tuple__2902 = 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__2902)) __PYX_ERR(3, 6226, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2902); + __Pyx_GIVEREF(__pyx_tuple__2902); + __pyx_codeobj__2903 = (PyObject*)__Pyx_PyCode_New(2, 0, 12, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2902, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_MININDEX, 6226, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2903)) __PYX_ERR(3, 6226, __pyx_L1_error) + + /* "talib/_stream.pxi":6262 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_MINMAX( np.ndarray real not None , int timeperiod=-2**31 ): # <<<<<<<<<<<<<< + * """ MINMAX(real[, timeperiod=?]) + * + */ + __pyx_tuple__2904 = 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__2904)) __PYX_ERR(3, 6262, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2904); + __Pyx_GIVEREF(__pyx_tuple__2904); + __pyx_codeobj__2905 = (PyObject*)__Pyx_PyCode_New(2, 0, 13, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2904, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_MINMAX, 6262, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2905)) __PYX_ERR(3, 6262, __pyx_L1_error) + + /* "talib/_stream.pxi":6301 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_MINMAXINDEX( np.ndarray real not None , int timeperiod=-2**31 ): # <<<<<<<<<<<<<< + * """ MINMAXINDEX(real[, timeperiod=?]) + * + */ + __pyx_tuple__2906 = 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__2906)) __PYX_ERR(3, 6301, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2906); + __Pyx_GIVEREF(__pyx_tuple__2906); + __pyx_codeobj__2907 = (PyObject*)__Pyx_PyCode_New(2, 0, 13, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2906, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_MINMAXINDEX, 6301, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2907)) __PYX_ERR(3, 6301, __pyx_L1_error) + + /* "talib/_stream.pxi":6340 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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__2908 = 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__2908)) __PYX_ERR(3, 6340, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2908); + __Pyx_GIVEREF(__pyx_tuple__2908); + __pyx_codeobj__2909 = (PyObject*)__Pyx_PyCode_New(4, 0, 16, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2908, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_MINUS_DI, 6340, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2909)) __PYX_ERR(3, 6340, __pyx_L1_error) + + /* "talib/_stream.pxi":6396 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_MINUS_DM( np.ndarray high not None , np.ndarray low not None , int timeperiod=-2**31 ): # <<<<<<<<<<<<<< + * """ MINUS_DM(high, low[, timeperiod=?]) + * + */ + __pyx_tuple__2910 = 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__2910)) __PYX_ERR(3, 6396, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2910); + __Pyx_GIVEREF(__pyx_tuple__2910); + __pyx_codeobj__2911 = (PyObject*)__Pyx_PyCode_New(3, 0, 14, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2910, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_MINUS_DM, 6396, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2911)) __PYX_ERR(3, 6396, __pyx_L1_error) + + /* "talib/_stream.pxi":6442 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_MOM( np.ndarray real not None , int timeperiod=-2**31 ): # <<<<<<<<<<<<<< + * """ MOM(real[, timeperiod=?]) + * + */ + __pyx_tuple__2912 = 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__2912)) __PYX_ERR(3, 6442, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2912); + __Pyx_GIVEREF(__pyx_tuple__2912); + __pyx_codeobj__2913 = (PyObject*)__Pyx_PyCode_New(2, 0, 12, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2912, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_MOM, 6442, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2913)) __PYX_ERR(3, 6442, __pyx_L1_error) + + /* "talib/_stream.pxi":6478 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_MULT( np.ndarray real0 not None , np.ndarray real1 not None ): # <<<<<<<<<<<<<< + * """ MULT(real0, real1) + * + */ + __pyx_tuple__2914 = 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__2914)) __PYX_ERR(3, 6478, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2914); + __Pyx_GIVEREF(__pyx_tuple__2914); + __pyx_codeobj__2915 = (PyObject*)__Pyx_PyCode_New(2, 0, 13, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2914, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_MULT, 6478, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2915)) __PYX_ERR(3, 6478, __pyx_L1_error) + + /* "talib/_stream.pxi":6523 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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__2916 = 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__2916)) __PYX_ERR(3, 6523, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2916); + __Pyx_GIVEREF(__pyx_tuple__2916); + __pyx_codeobj__2917 = (PyObject*)__Pyx_PyCode_New(4, 0, 16, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2916, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_NATR, 6523, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2917)) __PYX_ERR(3, 6523, __pyx_L1_error) + + /* "talib/_stream.pxi":6579 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_OBV( np.ndarray real not None , np.ndarray volume not None ): # <<<<<<<<<<<<<< + * """ OBV(real, volume) + * + */ + __pyx_tuple__2918 = 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__2918)) __PYX_ERR(3, 6579, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2918); + __Pyx_GIVEREF(__pyx_tuple__2918); + __pyx_codeobj__2919 = (PyObject*)__Pyx_PyCode_New(2, 0, 13, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2918, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_OBV, 6579, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2919)) __PYX_ERR(3, 6579, __pyx_L1_error) + + /* "talib/_stream.pxi":6624 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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__2920 = 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__2920)) __PYX_ERR(3, 6624, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2920); + __Pyx_GIVEREF(__pyx_tuple__2920); + __pyx_codeobj__2921 = (PyObject*)__Pyx_PyCode_New(4, 0, 16, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2920, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_PLUS_DI, 6624, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2921)) __PYX_ERR(3, 6624, __pyx_L1_error) + + /* "talib/_stream.pxi":6680 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_PLUS_DM( np.ndarray high not None , np.ndarray low not None , int timeperiod=-2**31 ): # <<<<<<<<<<<<<< + * """ PLUS_DM(high, low[, timeperiod=?]) + * + */ + __pyx_tuple__2922 = 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__2922)) __PYX_ERR(3, 6680, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2922); + __Pyx_GIVEREF(__pyx_tuple__2922); + __pyx_codeobj__2923 = (PyObject*)__Pyx_PyCode_New(3, 0, 14, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2922, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_PLUS_DM, 6680, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2923)) __PYX_ERR(3, 6680, __pyx_L1_error) + + /* "talib/_stream.pxi":6726 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_PPO( np.ndarray real not None , int fastperiod=-2**31 , int slowperiod=-2**31 , int matype=0 ): # <<<<<<<<<<<<<< + * """ PPO(real[, fastperiod=?, slowperiod=?, matype=?]) + * + */ + __pyx_tuple__2924 = 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__2924)) __PYX_ERR(3, 6726, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2924); + __Pyx_GIVEREF(__pyx_tuple__2924); + __pyx_codeobj__2925 = (PyObject*)__Pyx_PyCode_New(4, 0, 14, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2924, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_PPO, 6726, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2925)) __PYX_ERR(3, 6726, __pyx_L1_error) + + /* "talib/_stream.pxi":6764 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_ROC( np.ndarray real not None , int timeperiod=-2**31 ): # <<<<<<<<<<<<<< + * """ ROC(real[, timeperiod=?]) + * + */ + __pyx_tuple__2926 = 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__2926)) __PYX_ERR(3, 6764, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2926); + __Pyx_GIVEREF(__pyx_tuple__2926); + __pyx_codeobj__2927 = (PyObject*)__Pyx_PyCode_New(2, 0, 12, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2926, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_ROC, 6764, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2927)) __PYX_ERR(3, 6764, __pyx_L1_error) + + /* "talib/_stream.pxi":6800 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_ROCP( np.ndarray real not None , int timeperiod=-2**31 ): # <<<<<<<<<<<<<< + * """ ROCP(real[, timeperiod=?]) + * + */ + __pyx_tuple__2928 = 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__2928)) __PYX_ERR(3, 6800, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2928); + __Pyx_GIVEREF(__pyx_tuple__2928); + __pyx_codeobj__2929 = (PyObject*)__Pyx_PyCode_New(2, 0, 12, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2928, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_ROCP, 6800, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2929)) __PYX_ERR(3, 6800, __pyx_L1_error) + + /* "talib/_stream.pxi":6836 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_ROCR( np.ndarray real not None , int timeperiod=-2**31 ): # <<<<<<<<<<<<<< + * """ ROCR(real[, timeperiod=?]) + * + */ + __pyx_tuple__2930 = 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__2930)) __PYX_ERR(3, 6836, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2930); + __Pyx_GIVEREF(__pyx_tuple__2930); + __pyx_codeobj__2931 = (PyObject*)__Pyx_PyCode_New(2, 0, 12, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2930, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_ROCR, 6836, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2931)) __PYX_ERR(3, 6836, __pyx_L1_error) + + /* "talib/_stream.pxi":6872 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_ROCR100( np.ndarray real not None , int timeperiod=-2**31 ): # <<<<<<<<<<<<<< + * """ ROCR100(real[, timeperiod=?]) + * + */ + __pyx_tuple__2932 = 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__2932)) __PYX_ERR(3, 6872, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2932); + __Pyx_GIVEREF(__pyx_tuple__2932); + __pyx_codeobj__2933 = (PyObject*)__Pyx_PyCode_New(2, 0, 12, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2932, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_ROCR100, 6872, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2933)) __PYX_ERR(3, 6872, __pyx_L1_error) + + /* "talib/_stream.pxi":6908 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_RSI( np.ndarray real not None , int timeperiod=-2**31 ): # <<<<<<<<<<<<<< + * """ RSI(real[, timeperiod=?]) + * + */ + __pyx_tuple__2934 = 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__2934)) __PYX_ERR(3, 6908, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2934); + __Pyx_GIVEREF(__pyx_tuple__2934); + __pyx_codeobj__2935 = (PyObject*)__Pyx_PyCode_New(2, 0, 12, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2934, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_RSI, 6908, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2935)) __PYX_ERR(3, 6908, __pyx_L1_error) + + /* "talib/_stream.pxi":6944 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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__2936 = 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__2936)) __PYX_ERR(3, 6944, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2936); + __Pyx_GIVEREF(__pyx_tuple__2936); + __pyx_codeobj__2937 = (PyObject*)__Pyx_PyCode_New(4, 0, 15, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2936, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_SAR, 6944, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2937)) __PYX_ERR(3, 6944, __pyx_L1_error) + + /* "talib/_stream.pxi":6991 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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__2938 = 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__2938)) __PYX_ERR(3, 6991, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2938); + __Pyx_GIVEREF(__pyx_tuple__2938); + __pyx_codeobj__2939 = (PyObject*)__Pyx_PyCode_New(10, 0, 21, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2938, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_SAREXT, 6991, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2939)) __PYX_ERR(3, 6991, __pyx_L1_error) + + /* "talib/_stream.pxi":7044 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_SIN( np.ndarray real not None ): # <<<<<<<<<<<<<< + * """ SIN(real) + * + */ + __pyx_tuple__2940 = 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__2940)) __PYX_ERR(3, 7044, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2940); + __Pyx_GIVEREF(__pyx_tuple__2940); + __pyx_codeobj__2941 = (PyObject*)__Pyx_PyCode_New(1, 0, 11, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2940, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_SIN, 7044, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2941)) __PYX_ERR(3, 7044, __pyx_L1_error) + + /* "talib/_stream.pxi":7078 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_SINH( np.ndarray real not None ): # <<<<<<<<<<<<<< + * """ SINH(real) + * + */ + __pyx_tuple__2942 = 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__2942)) __PYX_ERR(3, 7078, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2942); + __Pyx_GIVEREF(__pyx_tuple__2942); + __pyx_codeobj__2943 = (PyObject*)__Pyx_PyCode_New(1, 0, 11, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2942, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_SINH, 7078, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2943)) __PYX_ERR(3, 7078, __pyx_L1_error) + + /* "talib/_stream.pxi":7112 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_SMA( np.ndarray real not None , int timeperiod=-2**31 ): # <<<<<<<<<<<<<< + * """ SMA(real[, timeperiod=?]) + * + */ + __pyx_tuple__2944 = 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__2944)) __PYX_ERR(3, 7112, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2944); + __Pyx_GIVEREF(__pyx_tuple__2944); + __pyx_codeobj__2945 = (PyObject*)__Pyx_PyCode_New(2, 0, 12, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2944, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_SMA, 7112, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2945)) __PYX_ERR(3, 7112, __pyx_L1_error) + + /* "talib/_stream.pxi":7148 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_SQRT( np.ndarray real not None ): # <<<<<<<<<<<<<< + * """ SQRT(real) + * + */ + __pyx_tuple__2946 = 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__2946)) __PYX_ERR(3, 7148, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2946); + __Pyx_GIVEREF(__pyx_tuple__2946); + __pyx_codeobj__2947 = (PyObject*)__Pyx_PyCode_New(1, 0, 11, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2946, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_SQRT, 7148, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2947)) __PYX_ERR(3, 7148, __pyx_L1_error) + + /* "talib/_stream.pxi":7182 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_STDDEV( np.ndarray real not None , int timeperiod=-2**31 , double nbdev=-4e37 ): # <<<<<<<<<<<<<< + * """ STDDEV(real[, timeperiod=?, nbdev=?]) + * + */ + __pyx_tuple__2948 = 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__2948)) __PYX_ERR(3, 7182, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2948); + __Pyx_GIVEREF(__pyx_tuple__2948); + __pyx_codeobj__2949 = (PyObject*)__Pyx_PyCode_New(3, 0, 13, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2948, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_STDDEV, 7182, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2949)) __PYX_ERR(3, 7182, __pyx_L1_error) + + /* "talib/_stream.pxi":7219 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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__2950 = 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__2950)) __PYX_ERR(3, 7219, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2950); + __Pyx_GIVEREF(__pyx_tuple__2950); + __pyx_codeobj__2951 = (PyObject*)__Pyx_PyCode_New(8, 0, 21, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2950, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_STOCH, 7219, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2951)) __PYX_ERR(3, 7219, __pyx_L1_error) + + /* "talib/_stream.pxi":7282 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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__2952 = 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__2952)) __PYX_ERR(3, 7282, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2952); + __Pyx_GIVEREF(__pyx_tuple__2952); + __pyx_codeobj__2953 = (PyObject*)__Pyx_PyCode_New(6, 0, 19, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2952, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_STOCHF, 7282, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2953)) __PYX_ERR(3, 7282, __pyx_L1_error) + + /* "talib/_stream.pxi":7343 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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__2954 = 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__2954)) __PYX_ERR(3, 7343, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2954); + __Pyx_GIVEREF(__pyx_tuple__2954); + __pyx_codeobj__2955 = (PyObject*)__Pyx_PyCode_New(5, 0, 16, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2954, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_STOCHRSI, 7343, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2955)) __PYX_ERR(3, 7343, __pyx_L1_error) + + /* "talib/_stream.pxi":7385 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_SUB( np.ndarray real0 not None , np.ndarray real1 not None ): # <<<<<<<<<<<<<< + * """ SUB(real0, real1) + * + */ + __pyx_tuple__2956 = 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__2956)) __PYX_ERR(3, 7385, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2956); + __Pyx_GIVEREF(__pyx_tuple__2956); + __pyx_codeobj__2957 = (PyObject*)__Pyx_PyCode_New(2, 0, 13, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2956, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_SUB, 7385, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2957)) __PYX_ERR(3, 7385, __pyx_L1_error) + + /* "talib/_stream.pxi":7430 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_SUM( np.ndarray real not None , int timeperiod=-2**31 ): # <<<<<<<<<<<<<< + * """ SUM(real[, timeperiod=?]) + * + */ + __pyx_tuple__2958 = 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__2958)) __PYX_ERR(3, 7430, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2958); + __Pyx_GIVEREF(__pyx_tuple__2958); + __pyx_codeobj__2959 = (PyObject*)__Pyx_PyCode_New(2, 0, 12, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2958, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_SUM, 7430, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2959)) __PYX_ERR(3, 7430, __pyx_L1_error) + + /* "talib/_stream.pxi":7466 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_T3( np.ndarray real not None , int timeperiod=-2**31 , double vfactor=-4e37 ): # <<<<<<<<<<<<<< + * """ T3(real[, timeperiod=?, vfactor=?]) + * + */ + __pyx_tuple__2960 = 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__2960)) __PYX_ERR(3, 7466, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2960); + __Pyx_GIVEREF(__pyx_tuple__2960); + __pyx_codeobj__2961 = (PyObject*)__Pyx_PyCode_New(3, 0, 13, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2960, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_T3, 7466, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2961)) __PYX_ERR(3, 7466, __pyx_L1_error) + + /* "talib/_stream.pxi":7503 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_TAN( np.ndarray real not None ): # <<<<<<<<<<<<<< + * """ TAN(real) + * + */ + __pyx_tuple__2962 = 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__2962)) __PYX_ERR(3, 7503, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2962); + __Pyx_GIVEREF(__pyx_tuple__2962); + __pyx_codeobj__2963 = (PyObject*)__Pyx_PyCode_New(1, 0, 11, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2962, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_TAN, 7503, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2963)) __PYX_ERR(3, 7503, __pyx_L1_error) + + /* "talib/_stream.pxi":7537 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_TANH( np.ndarray real not None ): # <<<<<<<<<<<<<< + * """ TANH(real) + * + */ + __pyx_tuple__2964 = 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__2964)) __PYX_ERR(3, 7537, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2964); + __Pyx_GIVEREF(__pyx_tuple__2964); + __pyx_codeobj__2965 = (PyObject*)__Pyx_PyCode_New(1, 0, 11, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2964, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_TANH, 7537, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2965)) __PYX_ERR(3, 7537, __pyx_L1_error) + + /* "talib/_stream.pxi":7571 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_TEMA( np.ndarray real not None , int timeperiod=-2**31 ): # <<<<<<<<<<<<<< + * """ TEMA(real[, timeperiod=?]) + * + */ + __pyx_tuple__2966 = 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__2966)) __PYX_ERR(3, 7571, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2966); + __Pyx_GIVEREF(__pyx_tuple__2966); + __pyx_codeobj__2967 = (PyObject*)__Pyx_PyCode_New(2, 0, 12, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2966, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_TEMA, 7571, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2967)) __PYX_ERR(3, 7571, __pyx_L1_error) + + /* "talib/_stream.pxi":7607 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_TRANGE( np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ): # <<<<<<<<<<<<<< + * """ TRANGE(high, low, close) + * + */ + __pyx_tuple__2968 = 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__2968)) __PYX_ERR(3, 7607, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2968); + __Pyx_GIVEREF(__pyx_tuple__2968); + __pyx_codeobj__2969 = (PyObject*)__Pyx_PyCode_New(3, 0, 15, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2968, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_TRANGE, 7607, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2969)) __PYX_ERR(3, 7607, __pyx_L1_error) + + /* "talib/_stream.pxi":7661 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_TRIMA( np.ndarray real not None , int timeperiod=-2**31 ): # <<<<<<<<<<<<<< + * """ TRIMA(real[, timeperiod=?]) + * + */ + __pyx_tuple__2970 = 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__2970)) __PYX_ERR(3, 7661, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2970); + __Pyx_GIVEREF(__pyx_tuple__2970); + __pyx_codeobj__2971 = (PyObject*)__Pyx_PyCode_New(2, 0, 12, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2970, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_TRIMA, 7661, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2971)) __PYX_ERR(3, 7661, __pyx_L1_error) + + /* "talib/_stream.pxi":7697 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_TRIX( np.ndarray real not None , int timeperiod=-2**31 ): # <<<<<<<<<<<<<< + * """ TRIX(real[, timeperiod=?]) + * + */ + __pyx_tuple__2972 = 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__2972)) __PYX_ERR(3, 7697, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2972); + __Pyx_GIVEREF(__pyx_tuple__2972); + __pyx_codeobj__2973 = (PyObject*)__Pyx_PyCode_New(2, 0, 12, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2972, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_TRIX, 7697, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2973)) __PYX_ERR(3, 7697, __pyx_L1_error) + + /* "talib/_stream.pxi":7733 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_TSF( np.ndarray real not None , int timeperiod=-2**31 ): # <<<<<<<<<<<<<< + * """ TSF(real[, timeperiod=?]) + * + */ + __pyx_tuple__2974 = 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__2974)) __PYX_ERR(3, 7733, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2974); + __Pyx_GIVEREF(__pyx_tuple__2974); + __pyx_codeobj__2975 = (PyObject*)__Pyx_PyCode_New(2, 0, 12, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2974, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_TSF, 7733, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2975)) __PYX_ERR(3, 7733, __pyx_L1_error) + + /* "talib/_stream.pxi":7769 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_TYPPRICE( np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ): # <<<<<<<<<<<<<< + * """ TYPPRICE(high, low, close) + * + */ + __pyx_tuple__2976 = 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__2976)) __PYX_ERR(3, 7769, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2976); + __Pyx_GIVEREF(__pyx_tuple__2976); + __pyx_codeobj__2977 = (PyObject*)__Pyx_PyCode_New(3, 0, 15, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2976, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_TYPPRICE, 7769, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2977)) __PYX_ERR(3, 7769, __pyx_L1_error) + + /* "talib/_stream.pxi":7823 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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__2978 = 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__2978)) __PYX_ERR(3, 7823, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2978); + __Pyx_GIVEREF(__pyx_tuple__2978); + __pyx_codeobj__2979 = (PyObject*)__Pyx_PyCode_New(6, 0, 18, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2978, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_ULTOSC, 7823, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2979)) __PYX_ERR(3, 7823, __pyx_L1_error) + + /* "talib/_stream.pxi":7881 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_VAR( np.ndarray real not None , int timeperiod=-2**31 , double nbdev=-4e37 ): # <<<<<<<<<<<<<< + * """ VAR(real[, timeperiod=?, nbdev=?]) + * + */ + __pyx_tuple__2980 = 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__2980)) __PYX_ERR(3, 7881, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2980); + __Pyx_GIVEREF(__pyx_tuple__2980); + __pyx_codeobj__2981 = (PyObject*)__Pyx_PyCode_New(3, 0, 13, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2980, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_VAR, 7881, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2981)) __PYX_ERR(3, 7881, __pyx_L1_error) + + /* "talib/_stream.pxi":7918 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_WCLPRICE( np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ): # <<<<<<<<<<<<<< + * """ WCLPRICE(high, low, close) + * + */ + __pyx_tuple__2982 = 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__2982)) __PYX_ERR(3, 7918, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2982); + __Pyx_GIVEREF(__pyx_tuple__2982); + __pyx_codeobj__2983 = (PyObject*)__Pyx_PyCode_New(3, 0, 15, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2982, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_WCLPRICE, 7918, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2983)) __PYX_ERR(3, 7918, __pyx_L1_error) + + /* "talib/_stream.pxi":7972 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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__2984 = 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__2984)) __PYX_ERR(3, 7972, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2984); + __Pyx_GIVEREF(__pyx_tuple__2984); + __pyx_codeobj__2985 = (PyObject*)__Pyx_PyCode_New(4, 0, 16, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2984, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_WILLR, 7972, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2985)) __PYX_ERR(3, 7972, __pyx_L1_error) + + /* "talib/_stream.pxi":8028 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_WMA( np.ndarray real not None , int timeperiod=-2**31 ): # <<<<<<<<<<<<<< + * """ WMA(real[, timeperiod=?]) + * + */ + __pyx_tuple__2986 = 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__2986)) __PYX_ERR(3, 8028, __pyx_L1_error) + __Pyx_GOTREF(__pyx_tuple__2986); + __Pyx_GIVEREF(__pyx_tuple__2986); + __pyx_codeobj__2987 = (PyObject*)__Pyx_PyCode_New(2, 0, 12, 0, 0, __pyx_empty_bytes, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_tuple__2986, __pyx_empty_tuple, __pyx_empty_tuple, __pyx_kp_s_Users_kelvin_GitHub_mrjbq7_ta_l_4, __pyx_n_s_stream_WMA, 8028, __pyx_empty_bytes); if (unlikely(!__pyx_codeobj__2987)) __PYX_ERR(3, 8028, __pyx_L1_error) + __Pyx_RefNannyFinishContext(); + return 0; + __pyx_L1_error:; + __Pyx_RefNannyFinishContext(); + return -1; +} + +static int __Pyx_InitGlobals(void) { + __pyx_umethod_PyDict_Type_keys.type = (PyObject*)&PyDict_Type; + if (__Pyx_InitStrings(__pyx_string_tab) < 0) __PYX_ERR(5, 1, __pyx_L1_error); + __pyx_int_0 = PyInt_FromLong(0); if (unlikely(!__pyx_int_0)) __PYX_ERR(5, 1, __pyx_L1_error) + __pyx_int_1 = PyInt_FromLong(1); if (unlikely(!__pyx_int_1)) __PYX_ERR(5, 1, __pyx_L1_error) + __pyx_int_2 = PyInt_FromLong(2); if (unlikely(!__pyx_int_2)) __PYX_ERR(5, 1, __pyx_L1_error) + __pyx_int_3 = PyInt_FromLong(3); if (unlikely(!__pyx_int_3)) __PYX_ERR(5, 1, __pyx_L1_error) + __pyx_int_4 = PyInt_FromLong(4); if (unlikely(!__pyx_int_4)) __PYX_ERR(5, 1, __pyx_L1_error) + __pyx_int_5 = PyInt_FromLong(5); if (unlikely(!__pyx_int_5)) __PYX_ERR(5, 1, __pyx_L1_error) + __pyx_int_6 = PyInt_FromLong(6); if (unlikely(!__pyx_int_6)) __PYX_ERR(5, 1, __pyx_L1_error) + __pyx_int_7 = PyInt_FromLong(7); if (unlikely(!__pyx_int_7)) __PYX_ERR(5, 1, __pyx_L1_error) + __pyx_int_8 = PyInt_FromLong(8); if (unlikely(!__pyx_int_8)) __PYX_ERR(5, 1, __pyx_L1_error) + __pyx_int_9 = PyInt_FromLong(9); if (unlikely(!__pyx_int_9)) __PYX_ERR(5, 1, __pyx_L1_error) + __pyx_int_10 = PyInt_FromLong(10); if (unlikely(!__pyx_int_10)) __PYX_ERR(5, 1, __pyx_L1_error) + __pyx_int_11 = PyInt_FromLong(11); if (unlikely(!__pyx_int_11)) __PYX_ERR(5, 1, __pyx_L1_error) + __pyx_int_12 = PyInt_FromLong(12); if (unlikely(!__pyx_int_12)) __PYX_ERR(5, 1, __pyx_L1_error) + __pyx_int_13 = PyInt_FromLong(13); if (unlikely(!__pyx_int_13)) __PYX_ERR(5, 1, __pyx_L1_error) + __pyx_int_14 = PyInt_FromLong(14); if (unlikely(!__pyx_int_14)) __PYX_ERR(5, 1, __pyx_L1_error) + __pyx_int_15 = PyInt_FromLong(15); if (unlikely(!__pyx_int_15)) __PYX_ERR(5, 1, __pyx_L1_error) + __pyx_int_16 = PyInt_FromLong(16); if (unlikely(!__pyx_int_16)) __PYX_ERR(5, 1, __pyx_L1_error) + __pyx_int_32 = PyInt_FromLong(32); if (unlikely(!__pyx_int_32)) __PYX_ERR(5, 1, __pyx_L1_error) + __pyx_int_64 = PyInt_FromLong(64); if (unlikely(!__pyx_int_64)) __PYX_ERR(5, 1, __pyx_L1_error) + __pyx_int_128 = PyInt_FromLong(128); if (unlikely(!__pyx_int_128)) __PYX_ERR(5, 1, __pyx_L1_error) + __pyx_int_256 = PyInt_FromLong(256); if (unlikely(!__pyx_int_256)) __PYX_ERR(5, 1, __pyx_L1_error) + __pyx_int_512 = PyInt_FromLong(512); if (unlikely(!__pyx_int_512)) __PYX_ERR(5, 1, __pyx_L1_error) + __pyx_int_1024 = PyInt_FromLong(1024); if (unlikely(!__pyx_int_1024)) __PYX_ERR(5, 1, __pyx_L1_error) + __pyx_int_2048 = PyInt_FromLong(2048); if (unlikely(!__pyx_int_2048)) __PYX_ERR(5, 1, __pyx_L1_error) + __pyx_int_4096 = PyInt_FromLong(4096); if (unlikely(!__pyx_int_4096)) __PYX_ERR(5, 1, __pyx_L1_error) + __pyx_int_5000 = PyInt_FromLong(5000); if (unlikely(!__pyx_int_5000)) __PYX_ERR(5, 1, __pyx_L1_error) + __pyx_int_65535 = PyInt_FromLong(65535L); if (unlikely(!__pyx_int_65535)) __PYX_ERR(5, 1, __pyx_L1_error) + __pyx_int_16777216 = PyInt_FromLong(16777216L); if (unlikely(!__pyx_int_16777216)) __PYX_ERR(5, 1, __pyx_L1_error) + __pyx_int_67108864 = PyInt_FromLong(67108864L); if (unlikely(!__pyx_int_67108864)) __PYX_ERR(5, 1, __pyx_L1_error) + __pyx_int_134217728 = PyInt_FromLong(134217728L); if (unlikely(!__pyx_int_134217728)) __PYX_ERR(5, 1, __pyx_L1_error) + __pyx_int_268435456 = PyInt_FromLong(268435456L); if (unlikely(!__pyx_int_268435456)) __PYX_ERR(5, 1, __pyx_L1_error) + __pyx_int_neg_1 = PyInt_FromLong(-1); if (unlikely(!__pyx_int_neg_1)) __PYX_ERR(5, 1, __pyx_L1_error) + return 0; + __pyx_L1_error:; + return -1; +} + +#if PY_MAJOR_VERSION < 3 +PyMODINIT_FUNC initc_ta_lib(void); /*proto*/ +PyMODINIT_FUNC initc_ta_lib(void) +#else +PyMODINIT_FUNC PyInit_c_ta_lib(void); /*proto*/ +PyMODINIT_FUNC PyInit_c_ta_lib(void) +#endif +{ + PyObject *__pyx_t_1 = NULL; + PyObject *__pyx_t_2 = NULL; + double __pyx_t_3; + PyObject *__pyx_t_4 = NULL; + PyObject *__pyx_t_5 = NULL; + PyObject *__pyx_t_6 = NULL; + PyObject *__pyx_t_7 = NULL; + PyObject *__pyx_t_8 = NULL; + PyObject *__pyx_t_9 = NULL; + PyObject *__pyx_t_10 = NULL; + PyObject *__pyx_t_11 = NULL; + PyObject *__pyx_t_12 = NULL; + PyObject *__pyx_t_13 = NULL; + PyObject *__pyx_t_14 = NULL; + PyObject *__pyx_t_15 = NULL; + PyObject *(*__pyx_t_16)(PyObject *); + Py_ssize_t __pyx_t_17; + PyObject *__pyx_t_18 = NULL; + PyObject *__pyx_t_19 = NULL; + PyObject *__pyx_t_20 = NULL; + int __pyx_t_21; + int __pyx_t_22; + __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_c_ta_lib(void)", 0); + if (__Pyx_check_binary_version() < 0) __PYX_ERR(5, 1, __pyx_L1_error) + __pyx_empty_tuple = PyTuple_New(0); if (unlikely(!__pyx_empty_tuple)) __PYX_ERR(5, 1, __pyx_L1_error) + __pyx_empty_bytes = PyBytes_FromStringAndSize("", 0); if (unlikely(!__pyx_empty_bytes)) __PYX_ERR(5, 1, __pyx_L1_error) + __pyx_empty_unicode = PyUnicode_FromStringAndSize("", 0); if (unlikely(!__pyx_empty_unicode)) __PYX_ERR(5, 1, __pyx_L1_error) + #ifdef __Pyx_CyFunction_USED + if (__pyx_CyFunction_init() < 0) __PYX_ERR(5, 1, __pyx_L1_error) + #endif + #ifdef __Pyx_FusedFunction_USED + if (__pyx_FusedFunction_init() < 0) __PYX_ERR(5, 1, __pyx_L1_error) + #endif + #ifdef __Pyx_Coroutine_USED + if (__pyx_Coroutine_init() < 0) __PYX_ERR(5, 1, __pyx_L1_error) + #endif + #ifdef __Pyx_Generator_USED + if (__pyx_Generator_init() < 0) __PYX_ERR(5, 1, __pyx_L1_error) + #endif + #ifdef __Pyx_StopAsyncIteration_USED + if (__pyx_StopAsyncIteration_init() < 0) __PYX_ERR(5, 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("c_ta_lib", __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(5, 1, __pyx_L1_error) + __pyx_d = PyModule_GetDict(__pyx_m); if (unlikely(!__pyx_d)) __PYX_ERR(5, 1, __pyx_L1_error) + Py_INCREF(__pyx_d); + __pyx_b = PyImport_AddModule(__Pyx_BUILTIN_MODULE_NAME); if (unlikely(!__pyx_b)) __PYX_ERR(5, 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(5, 1, __pyx_L1_error); + /*--- Initialize various global constants etc. ---*/ + if (__Pyx_InitGlobals() < 0) __PYX_ERR(5, 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(5, 1, __pyx_L1_error) + #endif + if (__pyx_module_is_main_talib__c_ta_lib) { + if (PyObject_SetAttrString(__pyx_m, "__name__", __pyx_n_s_main) < 0) __PYX_ERR(5, 1, __pyx_L1_error) + } + #if PY_MAJOR_VERSION >= 3 + { + PyObject *modules = PyImport_GetModuleDict(); if (unlikely(!modules)) __PYX_ERR(5, 1, __pyx_L1_error) + if (!PyDict_GetItemString(modules, "talib.c_ta_lib")) { + if (unlikely(PyDict_SetItemString(modules, "talib.c_ta_lib", __pyx_m) < 0)) __PYX_ERR(5, 1, __pyx_L1_error) + } + } + #endif + /*--- Builtin init code ---*/ + if (__Pyx_InitCachedBuiltins() < 0) __PYX_ERR(5, 1, __pyx_L1_error) + /*--- Constants init code ---*/ + if (__Pyx_InitCachedConstants() < 0) __PYX_ERR(5, 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(6, 9, __pyx_L1_error) + __pyx_ptype_5numpy_dtype = __Pyx_ImportType("numpy", "dtype", sizeof(PyArray_Descr), 0); if (unlikely(!__pyx_ptype_5numpy_dtype)) __PYX_ERR(4, 155, __pyx_L1_error) + __pyx_ptype_5numpy_flatiter = __Pyx_ImportType("numpy", "flatiter", sizeof(PyArrayIterObject), 0); if (unlikely(!__pyx_ptype_5numpy_flatiter)) __PYX_ERR(4, 168, __pyx_L1_error) + __pyx_ptype_5numpy_broadcast = __Pyx_ImportType("numpy", "broadcast", sizeof(PyArrayMultiIterObject), 0); if (unlikely(!__pyx_ptype_5numpy_broadcast)) __PYX_ERR(4, 172, __pyx_L1_error) + __pyx_ptype_5numpy_ndarray = __Pyx_ImportType("numpy", "ndarray", sizeof(PyArrayObject), 0); if (unlikely(!__pyx_ptype_5numpy_ndarray)) __PYX_ERR(4, 181, __pyx_L1_error) + __pyx_ptype_5numpy_ufunc = __Pyx_ImportType("numpy", "ufunc", sizeof(PyUFuncObject), 0); if (unlikely(!__pyx_ptype_5numpy_ufunc)) __PYX_ERR(4, 861, __pyx_L1_error) + /*--- Variable import code ---*/ + /*--- Function import code ---*/ + /*--- Execution code ---*/ + #if defined(__Pyx_Generator_USED) || defined(__Pyx_Coroutine_USED) + if (__Pyx_patch_abc() < 0) __PYX_ERR(5, 1, __pyx_L1_error) + #endif + + /* "talib/c_ta_lib.pyx":4 + * cimport numpy as np + * + * np.import_array() # Initialize the NumPy C API # <<<<<<<<<<<<<< + * lib.TA_Initialize() + * + */ + import_array(); + + /* "talib/c_ta_lib.pyx":5 + * + * np.import_array() # Initialize the NumPy C API + * lib.TA_Initialize() # <<<<<<<<<<<<<< + * + * include "_common.pxi" + */ + TA_Initialize(); + + /* "talib/_common.pxi":2 + * cimport c_ta_lib as lib + * from numpy import nan # <<<<<<<<<<<<<< + * from c_ta_lib cimport TA_RetCode, TA_FuncUnstId + * + */ + __pyx_t_1 = PyList_New(1); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __Pyx_INCREF(__pyx_n_s_nan); + __Pyx_GIVEREF(__pyx_n_s_nan); + PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_nan); + __pyx_t_2 = __Pyx_Import(__pyx_n_s_numpy, __pyx_t_1, -1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 2, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + __pyx_t_1 = __Pyx_ImportFrom(__pyx_t_2, __pyx_n_s_nan); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 2, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_nan, __pyx_t_1) < 0) __PYX_ERR(0, 2, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_common.pxi":5 + * from c_ta_lib cimport TA_RetCode, TA_FuncUnstId + * + * cdef double NaN = nan # <<<<<<<<<<<<<< + * __ta_version__ = lib.TA_GetVersionString() + * + */ + __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_nan); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 5, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_t_3 = __pyx_PyFloat_AsDouble(__pyx_t_2); if (unlikely((__pyx_t_3 == (double)-1) && PyErr_Occurred())) __PYX_ERR(0, 5, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __pyx_v_5talib_8c_ta_lib_NaN = __pyx_t_3; + + /* "talib/_common.pxi":6 + * + * cdef double NaN = nan + * __ta_version__ = lib.TA_GetVersionString() # <<<<<<<<<<<<<< + * + * + */ + __pyx_t_2 = __Pyx_PyBytes_FromString(TA_GetVersionString()); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 6, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_ta_version, __pyx_t_2) < 0) __PYX_ERR(0, 6, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_common.pxi":36 + * function_name, ret_code, ta_errors[ret_code])) + * + * def _ta_initialize(): # <<<<<<<<<<<<<< + * cdef TA_RetCode ret_code + * ret_code = lib.TA_Initialize() + */ + __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_3_ta_initialize, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 36, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_ta_initialize, __pyx_t_2) < 0) __PYX_ERR(0, 36, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_common.pxi":41 + * _ta_check_success('TA_Initialize', ret_code) + * + * def _ta_shutdown(): # <<<<<<<<<<<<<< + * cdef TA_RetCode ret_code + * ret_code = lib.TA_Shutdown() + */ + __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_5_ta_shutdown, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 41, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_ta_shutdown, __pyx_t_2) < 0) __PYX_ERR(0, 41, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_common.pxi":46 + * _ta_check_success('TA_Shutdown', ret_code) + * + * class MA_Type(object): # <<<<<<<<<<<<<< + * SMA, EMA, WMA, DEMA, TEMA, TRIMA, KAMA, MAMA, T3 = range(9) + * + */ + __pyx_t_2 = PyTuple_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 46, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_INCREF(__pyx_builtin_object); + __Pyx_GIVEREF(__pyx_builtin_object); + PyTuple_SET_ITEM(__pyx_t_2, 0, __pyx_builtin_object); + __pyx_t_1 = __Pyx_CalculateMetaclass(NULL, __pyx_t_2); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 46, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __pyx_t_4 = __Pyx_Py3MetaclassPrepare(__pyx_t_1, __pyx_t_2, __pyx_n_s_MA_Type, __pyx_n_s_MA_Type, (PyObject *) NULL, __pyx_n_s_talib_c_ta_lib, (PyObject *) NULL); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 46, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + + /* "talib/_common.pxi":47 + * + * class MA_Type(object): + * SMA, EMA, WMA, DEMA, TEMA, TRIMA, KAMA, MAMA, T3 = range(9) # <<<<<<<<<<<<<< + * + * def __init__(self): + */ + __pyx_t_5 = __Pyx_PyObject_Call(__pyx_builtin_range, __pyx_tuple__2276, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 47, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + if ((likely(PyTuple_CheckExact(__pyx_t_5))) || (PyList_CheckExact(__pyx_t_5))) { + PyObject* sequence = __pyx_t_5; + #if CYTHON_COMPILING_IN_CPYTHON + Py_ssize_t size = Py_SIZE(sequence); + #else + Py_ssize_t size = PySequence_Size(sequence); + #endif + if (unlikely(size != 9)) { + if (size > 9) __Pyx_RaiseTooManyValuesError(9); + else if (size >= 0) __Pyx_RaiseNeedMoreValuesError(size); + __PYX_ERR(0, 47, __pyx_L1_error) + } + #if CYTHON_COMPILING_IN_CPYTHON + if (likely(PyTuple_CheckExact(sequence))) { + __pyx_t_6 = PyTuple_GET_ITEM(sequence, 0); + __pyx_t_7 = PyTuple_GET_ITEM(sequence, 1); + __pyx_t_8 = PyTuple_GET_ITEM(sequence, 2); + __pyx_t_9 = PyTuple_GET_ITEM(sequence, 3); + __pyx_t_10 = PyTuple_GET_ITEM(sequence, 4); + __pyx_t_11 = PyTuple_GET_ITEM(sequence, 5); + __pyx_t_12 = PyTuple_GET_ITEM(sequence, 6); + __pyx_t_13 = PyTuple_GET_ITEM(sequence, 7); + __pyx_t_14 = PyTuple_GET_ITEM(sequence, 8); + } else { + __pyx_t_6 = PyList_GET_ITEM(sequence, 0); + __pyx_t_7 = PyList_GET_ITEM(sequence, 1); + __pyx_t_8 = PyList_GET_ITEM(sequence, 2); + __pyx_t_9 = PyList_GET_ITEM(sequence, 3); + __pyx_t_10 = PyList_GET_ITEM(sequence, 4); + __pyx_t_11 = PyList_GET_ITEM(sequence, 5); + __pyx_t_12 = PyList_GET_ITEM(sequence, 6); + __pyx_t_13 = PyList_GET_ITEM(sequence, 7); + __pyx_t_14 = PyList_GET_ITEM(sequence, 8); + } + __Pyx_INCREF(__pyx_t_6); + __Pyx_INCREF(__pyx_t_7); + __Pyx_INCREF(__pyx_t_8); + __Pyx_INCREF(__pyx_t_9); + __Pyx_INCREF(__pyx_t_10); + __Pyx_INCREF(__pyx_t_11); + __Pyx_INCREF(__pyx_t_12); + __Pyx_INCREF(__pyx_t_13); + __Pyx_INCREF(__pyx_t_14); + #else + { + Py_ssize_t i; + PyObject** temps[9] = {&__pyx_t_6,&__pyx_t_7,&__pyx_t_8,&__pyx_t_9,&__pyx_t_10,&__pyx_t_11,&__pyx_t_12,&__pyx_t_13,&__pyx_t_14}; + for (i=0; i < 9; i++) { + PyObject* item = PySequence_ITEM(sequence, i); if (unlikely(!item)) __PYX_ERR(0, 47, __pyx_L1_error) + __Pyx_GOTREF(item); + *(temps[i]) = item; + } + } + #endif + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + } else { + Py_ssize_t index = -1; + PyObject** temps[9] = {&__pyx_t_6,&__pyx_t_7,&__pyx_t_8,&__pyx_t_9,&__pyx_t_10,&__pyx_t_11,&__pyx_t_12,&__pyx_t_13,&__pyx_t_14}; + __pyx_t_15 = PyObject_GetIter(__pyx_t_5); if (unlikely(!__pyx_t_15)) __PYX_ERR(0, 47, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_15); + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + __pyx_t_16 = Py_TYPE(__pyx_t_15)->tp_iternext; + for (index=0; index < 9; index++) { + PyObject* item = __pyx_t_16(__pyx_t_15); if (unlikely(!item)) goto __pyx_L2_unpacking_failed; + __Pyx_GOTREF(item); + *(temps[index]) = item; + } + if (__Pyx_IternextUnpackEndCheck(__pyx_t_16(__pyx_t_15), 9) < 0) __PYX_ERR(0, 47, __pyx_L1_error) + __pyx_t_16 = NULL; + __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0; + goto __pyx_L3_unpacking_done; + __pyx_L2_unpacking_failed:; + __Pyx_DECREF(__pyx_t_15); __pyx_t_15 = 0; + __pyx_t_16 = NULL; + if (__Pyx_IterFinish() == 0) __Pyx_RaiseNeedMoreValuesError(index); + __PYX_ERR(0, 47, __pyx_L1_error) + __pyx_L3_unpacking_done:; + } + if (PyObject_SetItem(__pyx_t_4, __pyx_n_s_SMA, __pyx_t_6) < 0) __PYX_ERR(0, 47, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_6); __pyx_t_6 = 0; + if (PyObject_SetItem(__pyx_t_4, __pyx_n_s_EMA, __pyx_t_7) < 0) __PYX_ERR(0, 47, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_7); __pyx_t_7 = 0; + if (PyObject_SetItem(__pyx_t_4, __pyx_n_s_WMA, __pyx_t_8) < 0) __PYX_ERR(0, 47, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_8); __pyx_t_8 = 0; + if (PyObject_SetItem(__pyx_t_4, __pyx_n_s_DEMA, __pyx_t_9) < 0) __PYX_ERR(0, 47, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_9); __pyx_t_9 = 0; + if (PyObject_SetItem(__pyx_t_4, __pyx_n_s_TEMA, __pyx_t_10) < 0) __PYX_ERR(0, 47, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_10); __pyx_t_10 = 0; + if (PyObject_SetItem(__pyx_t_4, __pyx_n_s_TRIMA, __pyx_t_11) < 0) __PYX_ERR(0, 47, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_11); __pyx_t_11 = 0; + if (PyObject_SetItem(__pyx_t_4, __pyx_n_s_KAMA, __pyx_t_12) < 0) __PYX_ERR(0, 47, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_12); __pyx_t_12 = 0; + if (PyObject_SetItem(__pyx_t_4, __pyx_n_s_MAMA, __pyx_t_13) < 0) __PYX_ERR(0, 47, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0; + if (PyObject_SetItem(__pyx_t_4, __pyx_n_s_T3, __pyx_t_14) < 0) __PYX_ERR(0, 47, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0; + + /* "talib/_common.pxi":49 + * SMA, EMA, WMA, DEMA, TEMA, TRIMA, KAMA, MAMA, T3 = range(9) + * + * def __init__(self): # <<<<<<<<<<<<<< + * self._lookup = { + * MA_Type.SMA: 'Simple Moving Average', + */ + __pyx_t_5 = __Pyx_CyFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_7MA_Type_1__init__, 0, __pyx_n_s_MA_Type___init, NULL, __pyx_n_s_talib_c_ta_lib, __pyx_d, ((PyObject *)__pyx_codeobj__2278)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 49, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + if (PyObject_SetItem(__pyx_t_4, __pyx_n_s_init, __pyx_t_5) < 0) __PYX_ERR(0, 49, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + + /* "talib/_common.pxi":62 + * } + * + * def __getitem__(self, type_): # <<<<<<<<<<<<<< + * return self._lookup[type_] + * + */ + __pyx_t_5 = __Pyx_CyFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_7MA_Type_3__getitem__, 0, __pyx_n_s_MA_Type___getitem, NULL, __pyx_n_s_talib_c_ta_lib, __pyx_d, ((PyObject *)__pyx_codeobj__2280)); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 62, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + if (PyObject_SetItem(__pyx_t_4, __pyx_n_s_getitem, __pyx_t_5) < 0) __PYX_ERR(0, 62, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + + /* "talib/_common.pxi":46 + * _ta_check_success('TA_Shutdown', ret_code) + * + * class MA_Type(object): # <<<<<<<<<<<<<< + * SMA, EMA, WMA, DEMA, TEMA, TRIMA, KAMA, MAMA, T3 = range(9) + * + */ + __pyx_t_5 = __Pyx_Py3ClassCreate(__pyx_t_1, __pyx_n_s_MA_Type, __pyx_t_2, __pyx_t_4, NULL, 0, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 46, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_MA_Type, __pyx_t_5) < 0) __PYX_ERR(0, 46, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_common.pxi":65 + * return self._lookup[type_] + * + * MA_Type = MA_Type() # <<<<<<<<<<<<<< + * + * _ta_func_unst_ids = {'NONE': -1} + */ + __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_MA_Type); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 65, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __pyx_t_4 = NULL; + if (CYTHON_COMPILING_IN_CPYTHON && unlikely(PyMethod_Check(__pyx_t_1))) { + __pyx_t_4 = PyMethod_GET_SELF(__pyx_t_1); + if (likely(__pyx_t_4)) { + PyObject* function = PyMethod_GET_FUNCTION(__pyx_t_1); + __Pyx_INCREF(__pyx_t_4); + __Pyx_INCREF(function); + __Pyx_DECREF_SET(__pyx_t_1, function); + } + } + if (__pyx_t_4) { + __pyx_t_2 = __Pyx_PyObject_CallOneArg(__pyx_t_1, __pyx_t_4); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 65, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + } else { + __pyx_t_2 = __Pyx_PyObject_CallNoArg(__pyx_t_1); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 65, __pyx_L1_error) + } + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + if (PyDict_SetItem(__pyx_d, __pyx_n_s_MA_Type, __pyx_t_2) < 0) __PYX_ERR(0, 65, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_common.pxi":67 + * MA_Type = MA_Type() + * + * _ta_func_unst_ids = {'NONE': -1} # <<<<<<<<<<<<<< + * for i, name in enumerate([ + * 'ADX', 'ADXR', 'ATR', 'CMO', 'DX', 'EMA', 'HT_DCPERIOD', + */ + __pyx_t_2 = PyDict_New(); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 67, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_t_2, __pyx_n_s_NONE, __pyx_int_neg_1) < 0) __PYX_ERR(0, 67, __pyx_L1_error) + if (PyDict_SetItem(__pyx_d, __pyx_n_s_ta_func_unst_ids, __pyx_t_2) < 0) __PYX_ERR(0, 67, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_common.pxi":68 + * + * _ta_func_unst_ids = {'NONE': -1} + * for i, name in enumerate([ # <<<<<<<<<<<<<< + * 'ADX', 'ADXR', 'ATR', 'CMO', 'DX', 'EMA', 'HT_DCPERIOD', + * 'HT_DCPHASE', 'HT_PHASOR', 'HT_SINE', 'HT_TRENDLINE', + */ + __Pyx_INCREF(__pyx_int_0); + __pyx_t_2 = __pyx_int_0; + __pyx_t_1 = PyList_New(24); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 68, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __Pyx_INCREF(__pyx_n_s_ADX); + __Pyx_GIVEREF(__pyx_n_s_ADX); + PyList_SET_ITEM(__pyx_t_1, 0, __pyx_n_s_ADX); + __Pyx_INCREF(__pyx_n_s_ADXR); + __Pyx_GIVEREF(__pyx_n_s_ADXR); + PyList_SET_ITEM(__pyx_t_1, 1, __pyx_n_s_ADXR); + __Pyx_INCREF(__pyx_n_s_ATR); + __Pyx_GIVEREF(__pyx_n_s_ATR); + PyList_SET_ITEM(__pyx_t_1, 2, __pyx_n_s_ATR); + __Pyx_INCREF(__pyx_n_s_CMO); + __Pyx_GIVEREF(__pyx_n_s_CMO); + PyList_SET_ITEM(__pyx_t_1, 3, __pyx_n_s_CMO); + __Pyx_INCREF(__pyx_n_s_DX); + __Pyx_GIVEREF(__pyx_n_s_DX); + PyList_SET_ITEM(__pyx_t_1, 4, __pyx_n_s_DX); + __Pyx_INCREF(__pyx_n_s_EMA); + __Pyx_GIVEREF(__pyx_n_s_EMA); + PyList_SET_ITEM(__pyx_t_1, 5, __pyx_n_s_EMA); + __Pyx_INCREF(__pyx_n_s_HT_DCPERIOD); + __Pyx_GIVEREF(__pyx_n_s_HT_DCPERIOD); + PyList_SET_ITEM(__pyx_t_1, 6, __pyx_n_s_HT_DCPERIOD); + __Pyx_INCREF(__pyx_n_s_HT_DCPHASE); + __Pyx_GIVEREF(__pyx_n_s_HT_DCPHASE); + PyList_SET_ITEM(__pyx_t_1, 7, __pyx_n_s_HT_DCPHASE); + __Pyx_INCREF(__pyx_n_s_HT_PHASOR); + __Pyx_GIVEREF(__pyx_n_s_HT_PHASOR); + PyList_SET_ITEM(__pyx_t_1, 8, __pyx_n_s_HT_PHASOR); + __Pyx_INCREF(__pyx_n_s_HT_SINE); + __Pyx_GIVEREF(__pyx_n_s_HT_SINE); + PyList_SET_ITEM(__pyx_t_1, 9, __pyx_n_s_HT_SINE); + __Pyx_INCREF(__pyx_n_s_HT_TRENDLINE); + __Pyx_GIVEREF(__pyx_n_s_HT_TRENDLINE); + PyList_SET_ITEM(__pyx_t_1, 10, __pyx_n_s_HT_TRENDLINE); + __Pyx_INCREF(__pyx_n_s_HT_TRENDMODE); + __Pyx_GIVEREF(__pyx_n_s_HT_TRENDMODE); + PyList_SET_ITEM(__pyx_t_1, 11, __pyx_n_s_HT_TRENDMODE); + __Pyx_INCREF(__pyx_n_s_KAMA); + __Pyx_GIVEREF(__pyx_n_s_KAMA); + PyList_SET_ITEM(__pyx_t_1, 12, __pyx_n_s_KAMA); + __Pyx_INCREF(__pyx_n_s_MAMA); + __Pyx_GIVEREF(__pyx_n_s_MAMA); + PyList_SET_ITEM(__pyx_t_1, 13, __pyx_n_s_MAMA); + __Pyx_INCREF(__pyx_n_s_MFI); + __Pyx_GIVEREF(__pyx_n_s_MFI); + PyList_SET_ITEM(__pyx_t_1, 14, __pyx_n_s_MFI); + __Pyx_INCREF(__pyx_n_s_MINUS_DI); + __Pyx_GIVEREF(__pyx_n_s_MINUS_DI); + PyList_SET_ITEM(__pyx_t_1, 15, __pyx_n_s_MINUS_DI); + __Pyx_INCREF(__pyx_n_s_MINUS_DM); + __Pyx_GIVEREF(__pyx_n_s_MINUS_DM); + PyList_SET_ITEM(__pyx_t_1, 16, __pyx_n_s_MINUS_DM); + __Pyx_INCREF(__pyx_n_s_NATR); + __Pyx_GIVEREF(__pyx_n_s_NATR); + PyList_SET_ITEM(__pyx_t_1, 17, __pyx_n_s_NATR); + __Pyx_INCREF(__pyx_n_s_PLUS_DI); + __Pyx_GIVEREF(__pyx_n_s_PLUS_DI); + PyList_SET_ITEM(__pyx_t_1, 18, __pyx_n_s_PLUS_DI); + __Pyx_INCREF(__pyx_n_s_PLUS_DM); + __Pyx_GIVEREF(__pyx_n_s_PLUS_DM); + PyList_SET_ITEM(__pyx_t_1, 19, __pyx_n_s_PLUS_DM); + __Pyx_INCREF(__pyx_n_s_RSI); + __Pyx_GIVEREF(__pyx_n_s_RSI); + PyList_SET_ITEM(__pyx_t_1, 20, __pyx_n_s_RSI); + __Pyx_INCREF(__pyx_n_s_STOCHRSI); + __Pyx_GIVEREF(__pyx_n_s_STOCHRSI); + PyList_SET_ITEM(__pyx_t_1, 21, __pyx_n_s_STOCHRSI); + __Pyx_INCREF(__pyx_n_s_T3); + __Pyx_GIVEREF(__pyx_n_s_T3); + PyList_SET_ITEM(__pyx_t_1, 22, __pyx_n_s_T3); + __Pyx_INCREF(__pyx_n_s_ALL); + __Pyx_GIVEREF(__pyx_n_s_ALL); + PyList_SET_ITEM(__pyx_t_1, 23, __pyx_n_s_ALL); + __pyx_t_4 = __pyx_t_1; __Pyx_INCREF(__pyx_t_4); __pyx_t_17 = 0; + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + for (;;) { + if (__pyx_t_17 >= 24) break; + #if CYTHON_COMPILING_IN_CPYTHON + __pyx_t_1 = PyList_GET_ITEM(__pyx_t_4, __pyx_t_17); __Pyx_INCREF(__pyx_t_1); __pyx_t_17++; if (unlikely(0 < 0)) __PYX_ERR(0, 68, __pyx_L1_error) + #else + __pyx_t_1 = PySequence_ITEM(__pyx_t_4, __pyx_t_17); __pyx_t_17++; if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 68, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + #endif + if (PyDict_SetItem(__pyx_d, __pyx_n_s_name, __pyx_t_1) < 0) __PYX_ERR(0, 68, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + if (PyDict_SetItem(__pyx_d, __pyx_n_s_i, __pyx_t_2) < 0) __PYX_ERR(0, 68, __pyx_L1_error) + __pyx_t_1 = __Pyx_PyInt_AddObjC(__pyx_t_2, __pyx_int_1, 1, 0); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 68, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __Pyx_DECREF(__pyx_t_2); + __pyx_t_2 = __pyx_t_1; + __pyx_t_1 = 0; + + /* "talib/_common.pxi":74 + * 'NATR', 'PLUS_DI', 'PLUS_DM', 'RSI', 'STOCHRSI', 'T3', 'ALL' + * ]): + * _ta_func_unst_ids[name] = i # <<<<<<<<<<<<<< + * + * def _ta_set_unstable_period(name, period): + */ + __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_i); if (unlikely(!__pyx_t_1)) __PYX_ERR(0, 74, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + __pyx_t_5 = __Pyx_GetModuleGlobalName(__pyx_n_s_ta_func_unst_ids); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 74, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + __pyx_t_14 = __Pyx_GetModuleGlobalName(__pyx_n_s_name); if (unlikely(!__pyx_t_14)) __PYX_ERR(0, 74, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_14); + if (unlikely(PyObject_SetItem(__pyx_t_5, __pyx_t_14, __pyx_t_1) < 0)) __PYX_ERR(0, 74, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0; + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + + /* "talib/_common.pxi":68 + * + * _ta_func_unst_ids = {'NONE': -1} + * for i, name in enumerate([ # <<<<<<<<<<<<<< + * 'ADX', 'ADXR', 'ATR', 'CMO', 'DX', 'EMA', 'HT_DCPERIOD', + * 'HT_DCPHASE', 'HT_PHASOR', 'HT_SINE', 'HT_TRENDLINE', + */ + } + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_common.pxi":76 + * _ta_func_unst_ids[name] = i + * + * def _ta_set_unstable_period(name, period): # <<<<<<<<<<<<<< + * cdef TA_RetCode ret_code + * cdef TA_FuncUnstId id = _ta_func_unst_ids[name] + */ + __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_7_ta_set_unstable_period, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 76, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_ta_set_unstable_period, __pyx_t_2) < 0) __PYX_ERR(0, 76, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_common.pxi":82 + * _ta_check_success('TA_SetUnstablePeriod', ret_code) + * + * def _ta_get_unstable_period(name): # <<<<<<<<<<<<<< + * cdef unsigned int period + * cdef TA_FuncUnstId id = _ta_func_unst_ids[name] + */ + __pyx_t_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_9_ta_get_unstable_period, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 82, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_ta_get_unstable_period, __pyx_t_2) < 0) __PYX_ERR(0, 82, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":10 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_11ACOS, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_ACOS, __pyx_t_2) < 0) __PYX_ERR(2, 10, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":59 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_13AD, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 59, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_AD, __pyx_t_2) < 0) __PYX_ERR(2, 59, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":147 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_15ADD, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 147, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_ADD, __pyx_t_2) < 0) __PYX_ERR(2, 147, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":210 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_17ADOSC, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 210, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_ADOSC, __pyx_t_2) < 0) __PYX_ERR(2, 210, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":301 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_19ADX, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 301, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_ADX, __pyx_t_2) < 0) __PYX_ERR(2, 301, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":378 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_21ADXR, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 378, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_ADXR, __pyx_t_2) < 0) __PYX_ERR(2, 378, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":455 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_23APO, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 455, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_APO, __pyx_t_2) < 0) __PYX_ERR(2, 455, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":508 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_25AROON, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 508, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_AROON, __pyx_t_2) < 0) __PYX_ERR(2, 508, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":579 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_27AROONOSC, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 579, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_AROONOSC, __pyx_t_2) < 0) __PYX_ERR(2, 579, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":643 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_29ASIN, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 643, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_ASIN, __pyx_t_2) < 0) __PYX_ERR(2, 643, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":692 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_31ATAN, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 692, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_ATAN, __pyx_t_2) < 0) __PYX_ERR(2, 692, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":741 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_33ATR, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 741, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_ATR, __pyx_t_2) < 0) __PYX_ERR(2, 741, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":818 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_35AVGPRICE, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 818, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_AVGPRICE, __pyx_t_2) < 0) __PYX_ERR(2, 818, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":906 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_37BBANDS, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 906, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_BBANDS, __pyx_t_2) < 0) __PYX_ERR(2, 906, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":974 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_39BETA, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 974, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_BETA, __pyx_t_2) < 0) __PYX_ERR(2, 974, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":1039 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_41BOP, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1039, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_BOP, __pyx_t_2) < 0) __PYX_ERR(2, 1039, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":1127 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_43CCI, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1127, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_CCI, __pyx_t_2) < 0) __PYX_ERR(2, 1127, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":1204 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_45CDL2CROWS, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1204, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDL2CROWS, __pyx_t_2) < 0) __PYX_ERR(2, 1204, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":1292 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_47CDL3BLACKCROWS, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1292, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDL3BLACKCROWS, __pyx_t_2) < 0) __PYX_ERR(2, 1292, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":1380 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_49CDL3INSIDE, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1380, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDL3INSIDE, __pyx_t_2) < 0) __PYX_ERR(2, 1380, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":1468 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_51CDL3LINESTRIKE, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1468, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDL3LINESTRIKE, __pyx_t_2) < 0) __PYX_ERR(2, 1468, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":1556 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_53CDL3OUTSIDE, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1556, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDL3OUTSIDE, __pyx_t_2) < 0) __PYX_ERR(2, 1556, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":1644 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_55CDL3STARSINSOUTH, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1644, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDL3STARSINSOUTH, __pyx_t_2) < 0) __PYX_ERR(2, 1644, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":1732 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_57CDL3WHITESOLDIERS, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1732, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDL3WHITESOLDIERS, __pyx_t_2) < 0) __PYX_ERR(2, 1732, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":1820 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_59CDLABANDONEDBABY, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1820, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLABANDONEDBABY, __pyx_t_2) < 0) __PYX_ERR(2, 1820, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":1910 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_61CDLADVANCEBLOCK, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1910, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLADVANCEBLOCK, __pyx_t_2) < 0) __PYX_ERR(2, 1910, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":1998 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_63CDLBELTHOLD, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 1998, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLBELTHOLD, __pyx_t_2) < 0) __PYX_ERR(2, 1998, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":2086 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_65CDLBREAKAWAY, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2086, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLBREAKAWAY, __pyx_t_2) < 0) __PYX_ERR(2, 2086, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":2174 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_67CDLCLOSINGMARUBOZU, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2174, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLCLOSINGMARUBOZU, __pyx_t_2) < 0) __PYX_ERR(2, 2174, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":2262 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_69CDLCONCEALBABYSWALL, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2262, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLCONCEALBABYSWALL, __pyx_t_2) < 0) __PYX_ERR(2, 2262, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":2350 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_71CDLCOUNTERATTACK, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2350, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLCOUNTERATTACK, __pyx_t_2) < 0) __PYX_ERR(2, 2350, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":2438 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_73CDLDARKCLOUDCOVER, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2438, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLDARKCLOUDCOVER, __pyx_t_2) < 0) __PYX_ERR(2, 2438, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":2528 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_75CDLDOJI, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2528, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLDOJI, __pyx_t_2) < 0) __PYX_ERR(2, 2528, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":2616 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_77CDLDOJISTAR, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2616, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLDOJISTAR, __pyx_t_2) < 0) __PYX_ERR(2, 2616, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":2704 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_79CDLDRAGONFLYDOJI, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2704, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLDRAGONFLYDOJI, __pyx_t_2) < 0) __PYX_ERR(2, 2704, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":2792 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_81CDLENGULFING, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2792, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLENGULFING, __pyx_t_2) < 0) __PYX_ERR(2, 2792, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":2880 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_83CDLEVENINGDOJISTAR, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2880, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLEVENINGDOJISTAR, __pyx_t_2) < 0) __PYX_ERR(2, 2880, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":2970 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_85CDLEVENINGSTAR, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 2970, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLEVENINGSTAR, __pyx_t_2) < 0) __PYX_ERR(2, 2970, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":3060 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_87CDLGAPSIDESIDEWHITE, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3060, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLGAPSIDESIDEWHITE, __pyx_t_2) < 0) __PYX_ERR(2, 3060, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":3148 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_89CDLGRAVESTONEDOJI, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3148, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLGRAVESTONEDOJI, __pyx_t_2) < 0) __PYX_ERR(2, 3148, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":3236 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_91CDLHAMMER, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3236, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLHAMMER, __pyx_t_2) < 0) __PYX_ERR(2, 3236, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":3324 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_93CDLHANGINGMAN, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3324, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLHANGINGMAN, __pyx_t_2) < 0) __PYX_ERR(2, 3324, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":3412 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_95CDLHARAMI, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3412, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLHARAMI, __pyx_t_2) < 0) __PYX_ERR(2, 3412, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":3500 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_97CDLHARAMICROSS, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3500, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLHARAMICROSS, __pyx_t_2) < 0) __PYX_ERR(2, 3500, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":3588 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_99CDLHIGHWAVE, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3588, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLHIGHWAVE, __pyx_t_2) < 0) __PYX_ERR(2, 3588, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":3676 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_101CDLHIKKAKE, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3676, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLHIKKAKE, __pyx_t_2) < 0) __PYX_ERR(2, 3676, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":3764 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_103CDLHIKKAKEMOD, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3764, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLHIKKAKEMOD, __pyx_t_2) < 0) __PYX_ERR(2, 3764, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":3852 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_105CDLHOMINGPIGEON, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3852, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLHOMINGPIGEON, __pyx_t_2) < 0) __PYX_ERR(2, 3852, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":3940 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_107CDLIDENTICAL3CROWS, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 3940, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLIDENTICAL3CROWS, __pyx_t_2) < 0) __PYX_ERR(2, 3940, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":4028 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_109CDLINNECK, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4028, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLINNECK, __pyx_t_2) < 0) __PYX_ERR(2, 4028, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":4116 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_111CDLINVERTEDHAMMER, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4116, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLINVERTEDHAMMER, __pyx_t_2) < 0) __PYX_ERR(2, 4116, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":4204 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_113CDLKICKING, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4204, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLKICKING, __pyx_t_2) < 0) __PYX_ERR(2, 4204, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":4292 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_115CDLKICKINGBYLENGTH, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4292, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLKICKINGBYLENGTH, __pyx_t_2) < 0) __PYX_ERR(2, 4292, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":4380 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_117CDLLADDERBOTTOM, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4380, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLLADDERBOTTOM, __pyx_t_2) < 0) __PYX_ERR(2, 4380, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":4468 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_119CDLLONGLEGGEDDOJI, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4468, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLLONGLEGGEDDOJI, __pyx_t_2) < 0) __PYX_ERR(2, 4468, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":4556 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_121CDLLONGLINE, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4556, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLLONGLINE, __pyx_t_2) < 0) __PYX_ERR(2, 4556, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":4644 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_123CDLMARUBOZU, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4644, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLMARUBOZU, __pyx_t_2) < 0) __PYX_ERR(2, 4644, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":4732 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_125CDLMATCHINGLOW, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4732, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLMATCHINGLOW, __pyx_t_2) < 0) __PYX_ERR(2, 4732, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":4820 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_127CDLMATHOLD, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4820, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLMATHOLD, __pyx_t_2) < 0) __PYX_ERR(2, 4820, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":4910 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_129CDLMORNINGDOJISTAR, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 4910, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLMORNINGDOJISTAR, __pyx_t_2) < 0) __PYX_ERR(2, 4910, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":5000 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_131CDLMORNINGSTAR, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5000, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLMORNINGSTAR, __pyx_t_2) < 0) __PYX_ERR(2, 5000, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":5090 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_133CDLONNECK, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5090, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLONNECK, __pyx_t_2) < 0) __PYX_ERR(2, 5090, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":5178 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_135CDLPIERCING, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5178, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLPIERCING, __pyx_t_2) < 0) __PYX_ERR(2, 5178, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":5266 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_137CDLRICKSHAWMAN, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5266, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLRICKSHAWMAN, __pyx_t_2) < 0) __PYX_ERR(2, 5266, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":5354 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_139CDLRISEFALL3METHODS, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5354, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLRISEFALL3METHODS, __pyx_t_2) < 0) __PYX_ERR(2, 5354, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":5442 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_141CDLSEPARATINGLINES, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5442, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLSEPARATINGLINES, __pyx_t_2) < 0) __PYX_ERR(2, 5442, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":5530 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_143CDLSHOOTINGSTAR, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5530, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLSHOOTINGSTAR, __pyx_t_2) < 0) __PYX_ERR(2, 5530, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":5618 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_145CDLSHORTLINE, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5618, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLSHORTLINE, __pyx_t_2) < 0) __PYX_ERR(2, 5618, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":5706 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_147CDLSPINNINGTOP, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5706, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLSPINNINGTOP, __pyx_t_2) < 0) __PYX_ERR(2, 5706, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":5794 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_149CDLSTALLEDPATTERN, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5794, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLSTALLEDPATTERN, __pyx_t_2) < 0) __PYX_ERR(2, 5794, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":5882 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_151CDLSTICKSANDWICH, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5882, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLSTICKSANDWICH, __pyx_t_2) < 0) __PYX_ERR(2, 5882, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":5970 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_153CDLTAKURI, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 5970, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLTAKURI, __pyx_t_2) < 0) __PYX_ERR(2, 5970, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":6058 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_155CDLTASUKIGAP, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6058, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLTASUKIGAP, __pyx_t_2) < 0) __PYX_ERR(2, 6058, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":6146 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_157CDLTHRUSTING, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6146, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLTHRUSTING, __pyx_t_2) < 0) __PYX_ERR(2, 6146, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":6234 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_159CDLTRISTAR, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6234, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLTRISTAR, __pyx_t_2) < 0) __PYX_ERR(2, 6234, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":6322 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_161CDLUNIQUE3RIVER, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6322, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLUNIQUE3RIVER, __pyx_t_2) < 0) __PYX_ERR(2, 6322, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":6410 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_163CDLUPSIDEGAP2CROWS, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6410, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLUPSIDEGAP2CROWS, __pyx_t_2) < 0) __PYX_ERR(2, 6410, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":6498 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_165CDLXSIDEGAP3METHODS, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6498, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_CDLXSIDEGAP3METHODS, __pyx_t_2) < 0) __PYX_ERR(2, 6498, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":6586 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_167CEIL, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6586, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_CEIL, __pyx_t_2) < 0) __PYX_ERR(2, 6586, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":6635 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_169CMO, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6635, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_CMO, __pyx_t_2) < 0) __PYX_ERR(2, 6635, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":6686 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_171CORREL, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6686, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_CORREL, __pyx_t_2) < 0) __PYX_ERR(2, 6686, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":6751 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_173COS, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6751, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_COS, __pyx_t_2) < 0) __PYX_ERR(2, 6751, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":6800 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_175COSH, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6800, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_COSH, __pyx_t_2) < 0) __PYX_ERR(2, 6800, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":6849 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_177DEMA, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6849, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_DEMA, __pyx_t_2) < 0) __PYX_ERR(2, 6849, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":6900 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_179DIV, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6900, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_DIV, __pyx_t_2) < 0) __PYX_ERR(2, 6900, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":6963 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_181DX, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 6963, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_DX, __pyx_t_2) < 0) __PYX_ERR(2, 6963, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":7040 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_183EMA, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7040, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_EMA, __pyx_t_2) < 0) __PYX_ERR(2, 7040, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":7091 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_185EXP, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7091, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_EXP, __pyx_t_2) < 0) __PYX_ERR(2, 7091, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":7140 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_187FLOOR, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7140, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_FLOOR, __pyx_t_2) < 0) __PYX_ERR(2, 7140, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":7189 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_189HT_DCPERIOD, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7189, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_HT_DCPERIOD, __pyx_t_2) < 0) __PYX_ERR(2, 7189, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":7238 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_191HT_DCPHASE, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7238, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_HT_DCPHASE, __pyx_t_2) < 0) __PYX_ERR(2, 7238, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":7287 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_193HT_PHASOR, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7287, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_HT_PHASOR, __pyx_t_2) < 0) __PYX_ERR(2, 7287, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":7343 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_195HT_SINE, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7343, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_HT_SINE, __pyx_t_2) < 0) __PYX_ERR(2, 7343, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":7399 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_197HT_TRENDLINE, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7399, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_HT_TRENDLINE, __pyx_t_2) < 0) __PYX_ERR(2, 7399, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":7448 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_199HT_TRENDMODE, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7448, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_HT_TRENDMODE, __pyx_t_2) < 0) __PYX_ERR(2, 7448, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":7497 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_201KAMA, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7497, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_KAMA, __pyx_t_2) < 0) __PYX_ERR(2, 7497, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":7548 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_203LINEARREG, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7548, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_LINEARREG, __pyx_t_2) < 0) __PYX_ERR(2, 7548, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":7599 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_205LINEARREG_ANGLE, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7599, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_LINEARREG_ANGLE, __pyx_t_2) < 0) __PYX_ERR(2, 7599, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":7650 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_207LINEARREG_INTERCEPT, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7650, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_LINEARREG_INTERCEPT, __pyx_t_2) < 0) __PYX_ERR(2, 7650, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":7701 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_209LINEARREG_SLOPE, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7701, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_LINEARREG_SLOPE, __pyx_t_2) < 0) __PYX_ERR(2, 7701, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":7752 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_211LN, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7752, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_LN, __pyx_t_2) < 0) __PYX_ERR(2, 7752, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":7801 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_213LOG10, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7801, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_LOG10, __pyx_t_2) < 0) __PYX_ERR(2, 7801, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":7850 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_215MA, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7850, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_MA, __pyx_t_2) < 0) __PYX_ERR(2, 7850, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":7902 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_217MACD, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7902, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_MACD, __pyx_t_2) < 0) __PYX_ERR(2, 7902, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":7969 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_219MACDEXT, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 7969, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_MACDEXT, __pyx_t_2) < 0) __PYX_ERR(2, 7969, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":8039 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_221MACDFIX, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8039, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_MACDFIX, __pyx_t_2) < 0) __PYX_ERR(2, 8039, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":8104 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_223MAMA, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8104, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_MAMA, __pyx_t_2) < 0) __PYX_ERR(2, 8104, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":8163 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_225MAVP, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8163, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_MAVP, __pyx_t_2) < 0) __PYX_ERR(2, 8163, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":8230 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_227MAX, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8230, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_MAX, __pyx_t_2) < 0) __PYX_ERR(2, 8230, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":8281 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_229MAXINDEX, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8281, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_MAXINDEX, __pyx_t_2) < 0) __PYX_ERR(2, 8281, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":8332 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_231MEDPRICE, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8332, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_MEDPRICE, __pyx_t_2) < 0) __PYX_ERR(2, 8332, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":8394 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_233MFI, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8394, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_MFI, __pyx_t_2) < 0) __PYX_ERR(2, 8394, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":8484 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_235MIDPOINT, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8484, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_MIDPOINT, __pyx_t_2) < 0) __PYX_ERR(2, 8484, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":8535 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_237MIDPRICE, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8535, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_MIDPRICE, __pyx_t_2) < 0) __PYX_ERR(2, 8535, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":8599 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_239MIN, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8599, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_MIN, __pyx_t_2) < 0) __PYX_ERR(2, 8599, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":8650 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_241MININDEX, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8650, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_MININDEX, __pyx_t_2) < 0) __PYX_ERR(2, 8650, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":8701 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_243MINMAX, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8701, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_MINMAX, __pyx_t_2) < 0) __PYX_ERR(2, 8701, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":8759 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_245MINMAXINDEX, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8759, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_MINMAXINDEX, __pyx_t_2) < 0) __PYX_ERR(2, 8759, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":8817 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_247MINUS_DI, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8817, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_MINUS_DI, __pyx_t_2) < 0) __PYX_ERR(2, 8817, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":8894 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_249MINUS_DM, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8894, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_MINUS_DM, __pyx_t_2) < 0) __PYX_ERR(2, 8894, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":8958 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_251MOM, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 8958, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_MOM, __pyx_t_2) < 0) __PYX_ERR(2, 8958, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":9009 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_253MULT, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9009, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_MULT, __pyx_t_2) < 0) __PYX_ERR(2, 9009, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":9072 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_255NATR, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9072, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_NATR, __pyx_t_2) < 0) __PYX_ERR(2, 9072, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":9149 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_257OBV, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9149, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_OBV, __pyx_t_2) < 0) __PYX_ERR(2, 9149, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":9212 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_259PLUS_DI, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9212, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_PLUS_DI, __pyx_t_2) < 0) __PYX_ERR(2, 9212, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":9289 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_261PLUS_DM, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9289, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_PLUS_DM, __pyx_t_2) < 0) __PYX_ERR(2, 9289, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":9353 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_263PPO, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9353, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_PPO, __pyx_t_2) < 0) __PYX_ERR(2, 9353, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":9406 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_265ROC, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9406, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_ROC, __pyx_t_2) < 0) __PYX_ERR(2, 9406, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":9457 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_267ROCP, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9457, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_ROCP, __pyx_t_2) < 0) __PYX_ERR(2, 9457, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":9508 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_269ROCR, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9508, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_ROCR, __pyx_t_2) < 0) __PYX_ERR(2, 9508, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":9559 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_271ROCR100, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9559, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_ROCR100, __pyx_t_2) < 0) __PYX_ERR(2, 9559, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":9610 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_273RSI, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9610, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_RSI, __pyx_t_2) < 0) __PYX_ERR(2, 9610, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":9661 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_275SAR, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9661, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_SAR, __pyx_t_2) < 0) __PYX_ERR(2, 9661, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":9726 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_277SAREXT, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9726, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_SAREXT, __pyx_t_2) < 0) __PYX_ERR(2, 9726, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":9797 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_279SIN, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9797, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_SIN, __pyx_t_2) < 0) __PYX_ERR(2, 9797, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":9846 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_281SINH, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9846, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_SINH, __pyx_t_2) < 0) __PYX_ERR(2, 9846, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":9895 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_283SMA, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9895, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_SMA, __pyx_t_2) < 0) __PYX_ERR(2, 9895, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":9946 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_285SQRT, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9946, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_SQRT, __pyx_t_2) < 0) __PYX_ERR(2, 9946, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":9995 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_287STDDEV, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 9995, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_STDDEV, __pyx_t_2) < 0) __PYX_ERR(2, 9995, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":10047 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_289STOCH, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10047, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_STOCH, __pyx_t_2) < 0) __PYX_ERR(2, 10047, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":10135 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_291STOCHF, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10135, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_STOCHF, __pyx_t_2) < 0) __PYX_ERR(2, 10135, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":10221 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_293STOCHRSI, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10221, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_STOCHRSI, __pyx_t_2) < 0) __PYX_ERR(2, 10221, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":10282 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_295SUB, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10282, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_SUB, __pyx_t_2) < 0) __PYX_ERR(2, 10282, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":10345 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_297SUM, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10345, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_SUM, __pyx_t_2) < 0) __PYX_ERR(2, 10345, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":10396 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_299T3, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10396, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_T3, __pyx_t_2) < 0) __PYX_ERR(2, 10396, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":10448 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_301TAN, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10448, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_TAN, __pyx_t_2) < 0) __PYX_ERR(2, 10448, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":10497 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_303TANH, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10497, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_TANH, __pyx_t_2) < 0) __PYX_ERR(2, 10497, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":10546 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_305TEMA, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10546, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_TEMA, __pyx_t_2) < 0) __PYX_ERR(2, 10546, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":10597 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_307TRANGE, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10597, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_TRANGE, __pyx_t_2) < 0) __PYX_ERR(2, 10597, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":10672 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_309TRIMA, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10672, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_TRIMA, __pyx_t_2) < 0) __PYX_ERR(2, 10672, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":10723 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_311TRIX, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10723, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_TRIX, __pyx_t_2) < 0) __PYX_ERR(2, 10723, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":10774 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_313TSF, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10774, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_TSF, __pyx_t_2) < 0) __PYX_ERR(2, 10774, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":10825 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_315TYPPRICE, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10825, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_TYPPRICE, __pyx_t_2) < 0) __PYX_ERR(2, 10825, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":10900 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_317ULTOSC, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10900, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_ULTOSC, __pyx_t_2) < 0) __PYX_ERR(2, 10900, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":10979 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_319VAR, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 10979, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_VAR, __pyx_t_2) < 0) __PYX_ERR(2, 10979, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":11031 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_321WCLPRICE, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 11031, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_WCLPRICE, __pyx_t_2) < 0) __PYX_ERR(2, 11031, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":11106 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_323WILLR, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 11106, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_WILLR, __pyx_t_2) < 0) __PYX_ERR(2, 11106, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_func.pxi":11183 + * @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_2 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_325WMA, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_2)) __PYX_ERR(2, 11183, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_WMA, __pyx_t_2) < 0) __PYX_ERR(2, 11183, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_abstract.pxi":4 + * This file Copyright (c) 2013 Brian A Cappello + * ''' + * import math # <<<<<<<<<<<<<< + * try: + * from collections import OrderedDict + */ + __pyx_t_2 = __Pyx_Import(__pyx_n_s_math, 0, -1); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 4, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_math, __pyx_t_2) < 0) __PYX_ERR(1, 4, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_abstract.pxi":5 + * ''' + * import math + * try: # <<<<<<<<<<<<<< + * from collections import OrderedDict + * except ImportError: # handle python 2.6 and earlier + */ + { + __Pyx_PyThreadState_declare + __Pyx_PyThreadState_assign + __Pyx_ExceptionSave(&__pyx_t_18, &__pyx_t_19, &__pyx_t_20); + __Pyx_XGOTREF(__pyx_t_18); + __Pyx_XGOTREF(__pyx_t_19); + __Pyx_XGOTREF(__pyx_t_20); + /*try:*/ { + + /* "talib/_abstract.pxi":6 + * import math + * try: + * from collections import OrderedDict # <<<<<<<<<<<<<< + * except ImportError: # handle python 2.6 and earlier + * from ordereddict import OrderedDict + */ + __pyx_t_2 = PyList_New(1); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 6, __pyx_L6_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_INCREF(__pyx_n_s_OrderedDict); + __Pyx_GIVEREF(__pyx_n_s_OrderedDict); + PyList_SET_ITEM(__pyx_t_2, 0, __pyx_n_s_OrderedDict); + __pyx_t_4 = __Pyx_Import(__pyx_n_s_collections, __pyx_t_2, -1); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 6, __pyx_L6_error) + __Pyx_GOTREF(__pyx_t_4); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __pyx_t_2 = __Pyx_ImportFrom(__pyx_t_4, __pyx_n_s_OrderedDict); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 6, __pyx_L6_error) + __Pyx_GOTREF(__pyx_t_2); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_OrderedDict, __pyx_t_2) < 0) __PYX_ERR(1, 6, __pyx_L6_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_abstract.pxi":5 + * ''' + * import math + * try: # <<<<<<<<<<<<<< + * from collections import OrderedDict + * except ImportError: # handle python 2.6 and earlier + */ + } + __Pyx_XDECREF(__pyx_t_18); __pyx_t_18 = 0; + __Pyx_XDECREF(__pyx_t_19); __pyx_t_19 = 0; + __Pyx_XDECREF(__pyx_t_20); __pyx_t_20 = 0; + goto __pyx_L13_try_end; + __pyx_L6_error:; + __Pyx_PyThreadState_assign + __Pyx_XDECREF(__pyx_t_15); __pyx_t_15 = 0; + __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; + __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; + __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; + __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; + __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; + __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0; + __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0; + __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0; + __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; + __Pyx_XDECREF(__pyx_t_14); __pyx_t_14 = 0; + __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; + __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; + __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_abstract.pxi":7 + * try: + * from collections import OrderedDict + * except ImportError: # handle python 2.6 and earlier # <<<<<<<<<<<<<< + * from ordereddict import OrderedDict + * from cython.operator cimport dereference as deref + */ + __pyx_t_21 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ImportError); + if (__pyx_t_21) { + __Pyx_AddTraceback("talib.c_ta_lib", __pyx_clineno, __pyx_lineno, __pyx_filename); + if (__Pyx_GetException(&__pyx_t_4, &__pyx_t_2, &__pyx_t_1) < 0) __PYX_ERR(1, 7, __pyx_L8_except_error) + __Pyx_GOTREF(__pyx_t_4); + __Pyx_GOTREF(__pyx_t_2); + __Pyx_GOTREF(__pyx_t_1); + + /* "talib/_abstract.pxi":8 + * from collections import OrderedDict + * except ImportError: # handle python 2.6 and earlier + * from ordereddict import OrderedDict # <<<<<<<<<<<<<< + * from cython.operator cimport dereference as deref + * import numpy + */ + __pyx_t_14 = PyList_New(1); if (unlikely(!__pyx_t_14)) __PYX_ERR(1, 8, __pyx_L8_except_error) + __Pyx_GOTREF(__pyx_t_14); + __Pyx_INCREF(__pyx_n_s_OrderedDict); + __Pyx_GIVEREF(__pyx_n_s_OrderedDict); + PyList_SET_ITEM(__pyx_t_14, 0, __pyx_n_s_OrderedDict); + __pyx_t_5 = __Pyx_Import(__pyx_n_s_ordereddict, __pyx_t_14, -1); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 8, __pyx_L8_except_error) + __Pyx_GOTREF(__pyx_t_5); + __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0; + __pyx_t_14 = __Pyx_ImportFrom(__pyx_t_5, __pyx_n_s_OrderedDict); if (unlikely(!__pyx_t_14)) __PYX_ERR(1, 8, __pyx_L8_except_error) + __Pyx_GOTREF(__pyx_t_14); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_OrderedDict, __pyx_t_14) < 0) __PYX_ERR(1, 8, __pyx_L8_except_error) + __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0; + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + goto __pyx_L7_exception_handled; + } + goto __pyx_L8_except_error; + __pyx_L8_except_error:; + + /* "talib/_abstract.pxi":5 + * ''' + * import math + * try: # <<<<<<<<<<<<<< + * from collections import OrderedDict + * except ImportError: # handle python 2.6 and earlier + */ + __Pyx_PyThreadState_assign + __Pyx_XGIVEREF(__pyx_t_18); + __Pyx_XGIVEREF(__pyx_t_19); + __Pyx_XGIVEREF(__pyx_t_20); + __Pyx_ExceptionReset(__pyx_t_18, __pyx_t_19, __pyx_t_20); + goto __pyx_L1_error; + __pyx_L7_exception_handled:; + __Pyx_PyThreadState_assign + __Pyx_XGIVEREF(__pyx_t_18); + __Pyx_XGIVEREF(__pyx_t_19); + __Pyx_XGIVEREF(__pyx_t_20); + __Pyx_ExceptionReset(__pyx_t_18, __pyx_t_19, __pyx_t_20); + __pyx_L13_try_end:; + } + + /* "talib/_abstract.pxi":10 + * from ordereddict import OrderedDict + * from cython.operator cimport dereference as deref + * import numpy # <<<<<<<<<<<<<< + * import sys + * + */ + __pyx_t_1 = __Pyx_Import(__pyx_n_s_numpy, 0, -1); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 10, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_numpy, __pyx_t_1) < 0) __PYX_ERR(1, 10, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + + /* "talib/_abstract.pxi":11 + * from cython.operator cimport dereference as deref + * import numpy + * import sys # <<<<<<<<<<<<<< + * + * cimport numpy as np + */ + __pyx_t_1 = __Pyx_Import(__pyx_n_s_sys, 0, -1); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 11, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_sys, __pyx_t_1) < 0) __PYX_ERR(1, 11, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + + /* "talib/_abstract.pxi":18 + * + * + * __INPUT_ARRAYS_DEFAULTS = {'open': None, # <<<<<<<<<<<<<< + * 'high': None, + * 'low': None, + */ + __pyx_t_1 = PyDict_New(); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 18, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_open, Py_None) < 0) __PYX_ERR(1, 18, __pyx_L1_error) + + /* "talib/_abstract.pxi":19 + * + * __INPUT_ARRAYS_DEFAULTS = {'open': None, + * 'high': None, # <<<<<<<<<<<<<< + * 'low': None, + * 'close': None, + */ + if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_high, Py_None) < 0) __PYX_ERR(1, 18, __pyx_L1_error) + + /* "talib/_abstract.pxi":20 + * __INPUT_ARRAYS_DEFAULTS = {'open': None, + * 'high': None, + * 'low': None, # <<<<<<<<<<<<<< + * 'close': None, + * 'volume': None, + */ + if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_low, Py_None) < 0) __PYX_ERR(1, 18, __pyx_L1_error) + + /* "talib/_abstract.pxi":21 + * 'high': None, + * 'low': None, + * 'close': None, # <<<<<<<<<<<<<< + * 'volume': None, + * } + */ + if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_close, Py_None) < 0) __PYX_ERR(1, 18, __pyx_L1_error) + + /* "talib/_abstract.pxi":22 + * 'low': None, + * 'close': None, + * 'volume': None, # <<<<<<<<<<<<<< + * } + * + */ + if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_volume, Py_None) < 0) __PYX_ERR(1, 18, __pyx_L1_error) + if (PyDict_SetItem(__pyx_d, __pyx_n_s_INPUT_ARRAYS_DEFAULTS, __pyx_t_1) < 0) __PYX_ERR(1, 18, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + + /* "talib/_abstract.pxi":26 + * + * # lookup for TALIB input parameters which don't define expected price series inputs + * __INPUT_PRICE_SERIES_DEFAULTS = {'price': 'close', # <<<<<<<<<<<<<< + * 'price0': 'high', + * 'price1': 'low', + */ + __pyx_t_1 = PyDict_New(); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 26, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_price, __pyx_n_s_close) < 0) __PYX_ERR(1, 26, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_price0, __pyx_n_s_high) < 0) __PYX_ERR(1, 26, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_price1, __pyx_n_s_low) < 0) __PYX_ERR(1, 26, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_1, __pyx_n_s_periods, __pyx_n_s_periods) < 0) __PYX_ERR(1, 26, __pyx_L1_error) + if (PyDict_SetItem(__pyx_d, __pyx_n_s_INPUT_PRICE_SERIES_DEFAULTS, __pyx_t_1) < 0) __PYX_ERR(1, 26, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + + /* "talib/_abstract.pxi":33 + * + * # allow use of pandas.DataFrame for input arrays + * try: # <<<<<<<<<<<<<< + * import pandas + * __INPUT_ARRAYS_TYPES = (dict, pandas.DataFrame) + */ + { + __Pyx_PyThreadState_declare + __Pyx_PyThreadState_assign + __Pyx_ExceptionSave(&__pyx_t_20, &__pyx_t_19, &__pyx_t_18); + __Pyx_XGOTREF(__pyx_t_20); + __Pyx_XGOTREF(__pyx_t_19); + __Pyx_XGOTREF(__pyx_t_18); + /*try:*/ { + + /* "talib/_abstract.pxi":34 + * # allow use of pandas.DataFrame for input arrays + * try: + * import pandas # <<<<<<<<<<<<<< + * __INPUT_ARRAYS_TYPES = (dict, pandas.DataFrame) + * __PANDAS_DATAFRAME = pandas.DataFrame + */ + __pyx_t_1 = __Pyx_Import(__pyx_n_s_pandas, 0, -1); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 34, __pyx_L16_error) + __Pyx_GOTREF(__pyx_t_1); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_pandas, __pyx_t_1) < 0) __PYX_ERR(1, 34, __pyx_L16_error) + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + + /* "talib/_abstract.pxi":35 + * try: + * import pandas + * __INPUT_ARRAYS_TYPES = (dict, pandas.DataFrame) # <<<<<<<<<<<<<< + * __PANDAS_DATAFRAME = pandas.DataFrame + * __PANDAS_SERIES = pandas.Series + */ + __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_pandas); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 35, __pyx_L16_error) + __Pyx_GOTREF(__pyx_t_1); + __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_DataFrame); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 35, __pyx_L16_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + __pyx_t_1 = PyTuple_New(2); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 35, __pyx_L16_error) + __Pyx_GOTREF(__pyx_t_1); + __Pyx_INCREF(((PyObject *)(&PyDict_Type))); + __Pyx_GIVEREF(((PyObject *)(&PyDict_Type))); + PyTuple_SET_ITEM(__pyx_t_1, 0, ((PyObject *)(&PyDict_Type))); + __Pyx_GIVEREF(__pyx_t_2); + PyTuple_SET_ITEM(__pyx_t_1, 1, __pyx_t_2); + __pyx_t_2 = 0; + if (PyDict_SetItem(__pyx_d, __pyx_n_s_INPUT_ARRAYS_TYPES, __pyx_t_1) < 0) __PYX_ERR(1, 35, __pyx_L16_error) + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + + /* "talib/_abstract.pxi":36 + * import pandas + * __INPUT_ARRAYS_TYPES = (dict, pandas.DataFrame) + * __PANDAS_DATAFRAME = pandas.DataFrame # <<<<<<<<<<<<<< + * __PANDAS_SERIES = pandas.Series + * except ImportError: + */ + __pyx_t_1 = __Pyx_GetModuleGlobalName(__pyx_n_s_pandas); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 36, __pyx_L16_error) + __Pyx_GOTREF(__pyx_t_1); + __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_1, __pyx_n_s_DataFrame); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 36, __pyx_L16_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + if (PyDict_SetItem(__pyx_d, __pyx_n_s_PANDAS_DATAFRAME, __pyx_t_2) < 0) __PYX_ERR(1, 36, __pyx_L16_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + + /* "talib/_abstract.pxi":37 + * __INPUT_ARRAYS_TYPES = (dict, pandas.DataFrame) + * __PANDAS_DATAFRAME = pandas.DataFrame + * __PANDAS_SERIES = pandas.Series # <<<<<<<<<<<<<< + * except ImportError: + * __INPUT_ARRAYS_TYPES = (dict,) + */ + __pyx_t_2 = __Pyx_GetModuleGlobalName(__pyx_n_s_pandas); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 37, __pyx_L16_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_t_1 = __Pyx_PyObject_GetAttrStr(__pyx_t_2, __pyx_n_s_Series); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 37, __pyx_L16_error) + __Pyx_GOTREF(__pyx_t_1); + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + if (PyDict_SetItem(__pyx_d, __pyx_n_s_PANDAS_SERIES, __pyx_t_1) < 0) __PYX_ERR(1, 37, __pyx_L16_error) + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + + /* "talib/_abstract.pxi":33 + * + * # allow use of pandas.DataFrame for input arrays + * try: # <<<<<<<<<<<<<< + * import pandas + * __INPUT_ARRAYS_TYPES = (dict, pandas.DataFrame) + */ + } + __Pyx_XDECREF(__pyx_t_20); __pyx_t_20 = 0; + __Pyx_XDECREF(__pyx_t_19); __pyx_t_19 = 0; + __Pyx_XDECREF(__pyx_t_18); __pyx_t_18 = 0; + goto __pyx_L23_try_end; + __pyx_L16_error:; + __Pyx_PyThreadState_assign + __Pyx_XDECREF(__pyx_t_15); __pyx_t_15 = 0; + __Pyx_XDECREF(__pyx_t_6); __pyx_t_6 = 0; + __Pyx_XDECREF(__pyx_t_7); __pyx_t_7 = 0; + __Pyx_XDECREF(__pyx_t_8); __pyx_t_8 = 0; + __Pyx_XDECREF(__pyx_t_9); __pyx_t_9 = 0; + __Pyx_XDECREF(__pyx_t_10); __pyx_t_10 = 0; + __Pyx_XDECREF(__pyx_t_11); __pyx_t_11 = 0; + __Pyx_XDECREF(__pyx_t_12); __pyx_t_12 = 0; + __Pyx_XDECREF(__pyx_t_13); __pyx_t_13 = 0; + __Pyx_XDECREF(__pyx_t_14); __pyx_t_14 = 0; + __Pyx_XDECREF(__pyx_t_5); __pyx_t_5 = 0; + __Pyx_XDECREF(__pyx_t_4); __pyx_t_4 = 0; + __Pyx_XDECREF(__pyx_t_2); __pyx_t_2 = 0; + __Pyx_XDECREF(__pyx_t_1); __pyx_t_1 = 0; + + /* "talib/_abstract.pxi":38 + * __PANDAS_DATAFRAME = pandas.DataFrame + * __PANDAS_SERIES = pandas.Series + * except ImportError: # <<<<<<<<<<<<<< + * __INPUT_ARRAYS_TYPES = (dict,) + * __PANDAS_DATAFRAME = None + */ + __pyx_t_21 = __Pyx_PyErr_ExceptionMatches(__pyx_builtin_ImportError); + if (__pyx_t_21) { + __Pyx_AddTraceback("talib.c_ta_lib", __pyx_clineno, __pyx_lineno, __pyx_filename); + if (__Pyx_GetException(&__pyx_t_1, &__pyx_t_2, &__pyx_t_4) < 0) __PYX_ERR(1, 38, __pyx_L18_except_error) + __Pyx_GOTREF(__pyx_t_1); + __Pyx_GOTREF(__pyx_t_2); + __Pyx_GOTREF(__pyx_t_4); + + /* "talib/_abstract.pxi":39 + * __PANDAS_SERIES = pandas.Series + * except ImportError: + * __INPUT_ARRAYS_TYPES = (dict,) # <<<<<<<<<<<<<< + * __PANDAS_DATAFRAME = None + * __PANDAS_SERIES = None + */ + __pyx_t_5 = PyTuple_New(1); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 39, __pyx_L18_except_error) + __Pyx_GOTREF(__pyx_t_5); + __Pyx_INCREF(((PyObject *)(&PyDict_Type))); + __Pyx_GIVEREF(((PyObject *)(&PyDict_Type))); + PyTuple_SET_ITEM(__pyx_t_5, 0, ((PyObject *)(&PyDict_Type))); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_INPUT_ARRAYS_TYPES, __pyx_t_5) < 0) __PYX_ERR(1, 39, __pyx_L18_except_error) + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + + /* "talib/_abstract.pxi":40 + * except ImportError: + * __INPUT_ARRAYS_TYPES = (dict,) + * __PANDAS_DATAFRAME = None # <<<<<<<<<<<<<< + * __PANDAS_SERIES = None + * + */ + if (PyDict_SetItem(__pyx_d, __pyx_n_s_PANDAS_DATAFRAME, Py_None) < 0) __PYX_ERR(1, 40, __pyx_L18_except_error) + + /* "talib/_abstract.pxi":41 + * __INPUT_ARRAYS_TYPES = (dict,) + * __PANDAS_DATAFRAME = None + * __PANDAS_SERIES = None # <<<<<<<<<<<<<< + * + * if sys.version >= '3': + */ + if (PyDict_SetItem(__pyx_d, __pyx_n_s_PANDAS_SERIES, Py_None) < 0) __PYX_ERR(1, 41, __pyx_L18_except_error) + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + goto __pyx_L17_exception_handled; + } + goto __pyx_L18_except_error; + __pyx_L18_except_error:; + + /* "talib/_abstract.pxi":33 + * + * # allow use of pandas.DataFrame for input arrays + * try: # <<<<<<<<<<<<<< + * import pandas + * __INPUT_ARRAYS_TYPES = (dict, pandas.DataFrame) + */ + __Pyx_PyThreadState_assign + __Pyx_XGIVEREF(__pyx_t_20); + __Pyx_XGIVEREF(__pyx_t_19); + __Pyx_XGIVEREF(__pyx_t_18); + __Pyx_ExceptionReset(__pyx_t_20, __pyx_t_19, __pyx_t_18); + goto __pyx_L1_error; + __pyx_L17_exception_handled:; + __Pyx_PyThreadState_assign + __Pyx_XGIVEREF(__pyx_t_20); + __Pyx_XGIVEREF(__pyx_t_19); + __Pyx_XGIVEREF(__pyx_t_18); + __Pyx_ExceptionReset(__pyx_t_20, __pyx_t_19, __pyx_t_18); + __pyx_L23_try_end:; + } + + /* "talib/_abstract.pxi":43 + * __PANDAS_SERIES = None + * + * if sys.version >= '3': # <<<<<<<<<<<<<< + * + * def str2bytes(s): + */ + __pyx_t_4 = __Pyx_GetModuleGlobalName(__pyx_n_s_sys); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 43, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + __pyx_t_2 = __Pyx_PyObject_GetAttrStr(__pyx_t_4, __pyx_n_s_version); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 43, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + __pyx_t_4 = PyObject_RichCompare(__pyx_t_2, __pyx_kp_s_3, Py_GE); __Pyx_XGOTREF(__pyx_t_4); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 43, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __pyx_t_22 = __Pyx_PyObject_IsTrue(__pyx_t_4); if (unlikely(__pyx_t_22 < 0)) __PYX_ERR(1, 43, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + if (__pyx_t_22) { + + /* "talib/_abstract.pxi":45 + * if sys.version >= '3': + * + * def str2bytes(s): # <<<<<<<<<<<<<< + * return bytes(s, 'ascii') + * + */ + __pyx_t_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_327str2bytes, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 45, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_str2bytes, __pyx_t_4) < 0) __PYX_ERR(1, 45, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_abstract.pxi":48 + * return bytes(s, 'ascii') + * + * def bytes2str(b): # <<<<<<<<<<<<<< + * return b.decode('ascii') + * + */ + __pyx_t_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_329bytes2str, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 48, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_bytes2str, __pyx_t_4) < 0) __PYX_ERR(1, 48, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_abstract.pxi":43 + * __PANDAS_SERIES = None + * + * if sys.version >= '3': # <<<<<<<<<<<<<< + * + * def str2bytes(s): + */ + goto __pyx_L26; + } + + /* "talib/_abstract.pxi":53 + * else: + * + * def str2bytes(s): # <<<<<<<<<<<<<< + * return s + * + */ + /*else*/ { + __pyx_t_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_331str2bytes, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 53, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_str2bytes, __pyx_t_4) < 0) __PYX_ERR(1, 53, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_abstract.pxi":56 + * return s + * + * def bytes2str(b): # <<<<<<<<<<<<<< + * return b + * + */ + __pyx_t_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_333bytes2str, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 56, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_bytes2str, __pyx_t_4) < 0) __PYX_ERR(1, 56, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + } + __pyx_L26:; + + /* "talib/_abstract.pxi":59 + * return b + * + * class Function(object): # <<<<<<<<<<<<<< + * """ + * This is a pythonic wrapper around TALIB's abstract interface. It is + */ + __pyx_t_4 = PyTuple_New(1); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 59, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + __Pyx_INCREF(__pyx_builtin_object); + __Pyx_GIVEREF(__pyx_builtin_object); + PyTuple_SET_ITEM(__pyx_t_4, 0, __pyx_builtin_object); + __pyx_t_2 = __Pyx_CalculateMetaclass(NULL, __pyx_t_4); if (unlikely(!__pyx_t_2)) __PYX_ERR(1, 59, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_2); + __pyx_t_1 = __Pyx_Py3MetaclassPrepare(__pyx_t_2, __pyx_t_4, __pyx_n_s_Function, __pyx_n_s_Function, (PyObject *) NULL, __pyx_n_s_talib_c_ta_lib, __pyx_kp_s_This_is_a_pythonic_wrapper_arou); if (unlikely(!__pyx_t_1)) __PYX_ERR(1, 59, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_1); + + /* "talib/_abstract.pxi":88 + * """ + * + * def __init__(self, function_name, func_object, *args, **kwargs): # <<<<<<<<<<<<<< + * # make sure the function_name is valid and define all of our variables + * self.__name = function_name.upper() + */ + __pyx_t_5 = __Pyx_CyFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_8Function_1__init__, 0, __pyx_n_s_Function___init, NULL, __pyx_n_s_talib_c_ta_lib, __pyx_d, ((PyObject *)__pyx_codeobj__2610)); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 88, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_init, __pyx_t_5) < 0) __PYX_ERR(1, 88, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + + /* "talib/_abstract.pxi":107 + * self.func_object = func_object + * + * def __initialize_function_info(self): # <<<<<<<<<<<<<< + * # function info + * self.__info = _ta_getFuncInfo(self.__name) + */ + __pyx_t_5 = __Pyx_CyFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_8Function_3__initialize_function_info, 0, __pyx_n_s_Function___initialize_function_i, NULL, __pyx_n_s_talib_c_ta_lib, __pyx_d, ((PyObject *)__pyx_codeobj__2612)); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 107, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_Function__initialize_function_i, __pyx_t_5) < 0) __PYX_ERR(1, 107, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + + /* "talib/_abstract.pxi":137 + * + * @property + * def info(self): # <<<<<<<<<<<<<< + * """ + * Returns a copy of the function's info dict. + */ + __pyx_t_5 = __Pyx_CyFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_8Function_5info, 0, __pyx_n_s_Function_info, NULL, __pyx_n_s_talib_c_ta_lib, __pyx_d, ((PyObject *)__pyx_codeobj__2614)); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 137, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + + /* "talib/_abstract.pxi":136 + * self.__info['output_names'] = self.output_names + * + * @property # <<<<<<<<<<<<<< + * def info(self): + * """ + */ + __pyx_t_14 = PyTuple_New(1); if (unlikely(!__pyx_t_14)) __PYX_ERR(1, 136, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_14); + __Pyx_GIVEREF(__pyx_t_5); + PyTuple_SET_ITEM(__pyx_t_14, 0, __pyx_t_5); + __pyx_t_5 = 0; + __pyx_t_5 = __Pyx_PyObject_Call(__pyx_builtin_property, __pyx_t_14, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 136, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0; + if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_info, __pyx_t_5) < 0) __PYX_ERR(1, 137, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + + /* "talib/_abstract.pxi":144 + * + * @property + * def function_flags(self): # <<<<<<<<<<<<<< + * """ + * Returns any function flags defined for this indicator function. + */ + __pyx_t_5 = __Pyx_CyFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_8Function_7function_flags, 0, __pyx_n_s_Function_function_flags, NULL, __pyx_n_s_talib_c_ta_lib, __pyx_d, ((PyObject *)__pyx_codeobj__2616)); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 144, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + + /* "talib/_abstract.pxi":143 + * return self.__info.copy() + * + * @property # <<<<<<<<<<<<<< + * def function_flags(self): + * """ + */ + __pyx_t_14 = PyTuple_New(1); if (unlikely(!__pyx_t_14)) __PYX_ERR(1, 143, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_14); + __Pyx_GIVEREF(__pyx_t_5); + PyTuple_SET_ITEM(__pyx_t_14, 0, __pyx_t_5); + __pyx_t_5 = 0; + __pyx_t_5 = __Pyx_PyObject_Call(__pyx_builtin_property, __pyx_t_14, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 143, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0; + if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_function_flags, __pyx_t_5) < 0) __PYX_ERR(1, 144, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + + /* "talib/_abstract.pxi":151 + * + * @property + * def output_flags(self): # <<<<<<<<<<<<<< + * """ + * Returns the flags for each output for this indicator function. + */ + __pyx_t_5 = __Pyx_CyFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_8Function_9output_flags, 0, __pyx_n_s_Function_output_flags, NULL, __pyx_n_s_talib_c_ta_lib, __pyx_d, ((PyObject *)__pyx_codeobj__2618)); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 151, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + + /* "talib/_abstract.pxi":150 + * return self.__info['function_flags'] + * + * @property # <<<<<<<<<<<<<< + * def output_flags(self): + * """ + */ + __pyx_t_14 = PyTuple_New(1); if (unlikely(!__pyx_t_14)) __PYX_ERR(1, 150, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_14); + __Pyx_GIVEREF(__pyx_t_5); + PyTuple_SET_ITEM(__pyx_t_14, 0, __pyx_t_5); + __pyx_t_5 = 0; + __pyx_t_5 = __Pyx_PyObject_Call(__pyx_builtin_property, __pyx_t_14, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 150, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0; + if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_output_flags, __pyx_t_5) < 0) __PYX_ERR(1, 151, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + + /* "talib/_abstract.pxi":157 + * return self.__info['output_flags'].copy() + * + * def get_input_names(self): # <<<<<<<<<<<<<< + * """ + * Returns the dict of input price series names that specifies which + */ + __pyx_t_5 = __Pyx_CyFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_8Function_11get_input_names, 0, __pyx_n_s_Function_get_input_names, NULL, __pyx_n_s_talib_c_ta_lib, __pyx_d, ((PyObject *)__pyx_codeobj__2620)); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 157, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_get_input_names, __pyx_t_5) < 0) __PYX_ERR(1, 157, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + + /* "talib/_abstract.pxi":167 + * return ret + * + * def set_input_names(self, input_names): # <<<<<<<<<<<<<< + * """ + * Sets the input price series names to use. + */ + __pyx_t_5 = __Pyx_CyFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_8Function_13set_input_names, 0, __pyx_n_s_Function_set_input_names, NULL, __pyx_n_s_talib_c_ta_lib, __pyx_d, ((PyObject *)__pyx_codeobj__2622)); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 167, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_set_input_names, __pyx_t_5) < 0) __PYX_ERR(1, 167, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + + /* "talib/_abstract.pxi":176 + * self.__outputs_valid = False + * + * input_names = property(get_input_names, set_input_names) # <<<<<<<<<<<<<< + * + * def get_input_arrays(self): + */ + __pyx_t_5 = PyObject_GetItem(__pyx_t_1, __pyx_n_s_get_input_names); + if (unlikely(!__pyx_t_5)) { + PyErr_Clear(); + __pyx_t_5 = __Pyx_GetModuleGlobalName(__pyx_n_s_get_input_names); + } + if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 176, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + __pyx_t_14 = PyObject_GetItem(__pyx_t_1, __pyx_n_s_set_input_names); + if (unlikely(!__pyx_t_14)) { + PyErr_Clear(); + __pyx_t_14 = __Pyx_GetModuleGlobalName(__pyx_n_s_set_input_names); + } + if (unlikely(!__pyx_t_14)) __PYX_ERR(1, 176, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_14); + __pyx_t_13 = PyTuple_New(2); if (unlikely(!__pyx_t_13)) __PYX_ERR(1, 176, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_13); + __Pyx_GIVEREF(__pyx_t_5); + PyTuple_SET_ITEM(__pyx_t_13, 0, __pyx_t_5); + __Pyx_GIVEREF(__pyx_t_14); + PyTuple_SET_ITEM(__pyx_t_13, 1, __pyx_t_14); + __pyx_t_5 = 0; + __pyx_t_14 = 0; + __pyx_t_14 = __Pyx_PyObject_Call(__pyx_builtin_property, __pyx_t_13, NULL); if (unlikely(!__pyx_t_14)) __PYX_ERR(1, 176, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_14); + __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0; + if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_input_names, __pyx_t_14) < 0) __PYX_ERR(1, 176, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0; + + /* "talib/_abstract.pxi":178 + * input_names = property(get_input_names, set_input_names) + * + * def get_input_arrays(self): # <<<<<<<<<<<<<< + * """ + * Returns a copy of the dict of input arrays in use. + */ + __pyx_t_14 = __Pyx_CyFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_8Function_15get_input_arrays, 0, __pyx_n_s_Function_get_input_arrays, NULL, __pyx_n_s_talib_c_ta_lib, __pyx_d, ((PyObject *)__pyx_codeobj__2624)); if (unlikely(!__pyx_t_14)) __PYX_ERR(1, 178, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_14); + if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_get_input_arrays, __pyx_t_14) < 0) __PYX_ERR(1, 178, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0; + + /* "talib/_abstract.pxi":184 + * return self.__input_arrays.copy() + * + * def set_input_arrays(self, input_arrays): # <<<<<<<<<<<<<< + * """ + * Sets the dict of input_arrays to use. Returns True/False for + */ + __pyx_t_14 = __Pyx_CyFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_8Function_17set_input_arrays, 0, __pyx_n_s_Function_set_input_arrays, NULL, __pyx_n_s_talib_c_ta_lib, __pyx_d, ((PyObject *)__pyx_codeobj__2626)); if (unlikely(!__pyx_t_14)) __PYX_ERR(1, 184, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_14); + if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_set_input_arrays, __pyx_t_14) < 0) __PYX_ERR(1, 184, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0; + + /* "talib/_abstract.pxi":225 + * return False + * + * input_arrays = property(get_input_arrays, set_input_arrays) # <<<<<<<<<<<<<< + * + * def get_parameters(self): + */ + __pyx_t_14 = PyObject_GetItem(__pyx_t_1, __pyx_n_s_get_input_arrays); + if (unlikely(!__pyx_t_14)) { + PyErr_Clear(); + __pyx_t_14 = __Pyx_GetModuleGlobalName(__pyx_n_s_get_input_arrays); + } + if (unlikely(!__pyx_t_14)) __PYX_ERR(1, 225, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_14); + __pyx_t_13 = PyObject_GetItem(__pyx_t_1, __pyx_n_s_set_input_arrays); + if (unlikely(!__pyx_t_13)) { + PyErr_Clear(); + __pyx_t_13 = __Pyx_GetModuleGlobalName(__pyx_n_s_set_input_arrays); + } + if (unlikely(!__pyx_t_13)) __PYX_ERR(1, 225, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_13); + __pyx_t_5 = PyTuple_New(2); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 225, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + __Pyx_GIVEREF(__pyx_t_14); + PyTuple_SET_ITEM(__pyx_t_5, 0, __pyx_t_14); + __Pyx_GIVEREF(__pyx_t_13); + PyTuple_SET_ITEM(__pyx_t_5, 1, __pyx_t_13); + __pyx_t_14 = 0; + __pyx_t_13 = 0; + __pyx_t_13 = __Pyx_PyObject_Call(__pyx_builtin_property, __pyx_t_5, NULL); if (unlikely(!__pyx_t_13)) __PYX_ERR(1, 225, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_13); + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_input_arrays, __pyx_t_13) < 0) __PYX_ERR(1, 225, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0; + + /* "talib/_abstract.pxi":227 + * input_arrays = property(get_input_arrays, set_input_arrays) + * + * def get_parameters(self): # <<<<<<<<<<<<<< + * """ + * Returns the function's optional parameters and their default values. + */ + __pyx_t_13 = __Pyx_CyFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_8Function_19get_parameters, 0, __pyx_n_s_Function_get_parameters, NULL, __pyx_n_s_talib_c_ta_lib, __pyx_d, ((PyObject *)__pyx_codeobj__2628)); if (unlikely(!__pyx_t_13)) __PYX_ERR(1, 227, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_13); + if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_get_parameters, __pyx_t_13) < 0) __PYX_ERR(1, 227, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0; + + /* "talib/_abstract.pxi":236 + * return ret + * + * def set_parameters(self, parameters): # <<<<<<<<<<<<<< + * """ + * Sets the function parameter values. + */ + __pyx_t_13 = __Pyx_CyFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_8Function_21set_parameters, 0, __pyx_n_s_Function_set_parameters, NULL, __pyx_n_s_talib_c_ta_lib, __pyx_d, ((PyObject *)__pyx_codeobj__2630)); if (unlikely(!__pyx_t_13)) __PYX_ERR(1, 236, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_13); + if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_set_parameters, __pyx_t_13) < 0) __PYX_ERR(1, 236, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_13); __pyx_t_13 = 0; + + /* "talib/_abstract.pxi":245 + * self.__info['parameters'] = self.parameters + * + * parameters = property(get_parameters, set_parameters) # <<<<<<<<<<<<<< + * + * def set_function_args(self, *args, **kwargs): + */ + __pyx_t_13 = PyObject_GetItem(__pyx_t_1, __pyx_n_s_get_parameters); + if (unlikely(!__pyx_t_13)) { + PyErr_Clear(); + __pyx_t_13 = __Pyx_GetModuleGlobalName(__pyx_n_s_get_parameters); + } + if (unlikely(!__pyx_t_13)) __PYX_ERR(1, 245, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_13); + __pyx_t_5 = PyObject_GetItem(__pyx_t_1, __pyx_n_s_set_parameters); + if (unlikely(!__pyx_t_5)) { + PyErr_Clear(); + __pyx_t_5 = __Pyx_GetModuleGlobalName(__pyx_n_s_set_parameters); + } + if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 245, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + __pyx_t_14 = PyTuple_New(2); if (unlikely(!__pyx_t_14)) __PYX_ERR(1, 245, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_14); + __Pyx_GIVEREF(__pyx_t_13); + PyTuple_SET_ITEM(__pyx_t_14, 0, __pyx_t_13); + __Pyx_GIVEREF(__pyx_t_5); + PyTuple_SET_ITEM(__pyx_t_14, 1, __pyx_t_5); + __pyx_t_13 = 0; + __pyx_t_5 = 0; + __pyx_t_5 = __Pyx_PyObject_Call(__pyx_builtin_property, __pyx_t_14, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 245, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0; + if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_parameters, __pyx_t_5) < 0) __PYX_ERR(1, 245, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + + /* "talib/_abstract.pxi":247 + * parameters = property(get_parameters, set_parameters) + * + * def set_function_args(self, *args, **kwargs): # <<<<<<<<<<<<<< + * """ + * optionl args:[input_arrays,] [parameter_args,] [input_price_series_kwargs,] [parameter_kwargs] + */ + __pyx_t_5 = __Pyx_CyFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_8Function_23set_function_args, 0, __pyx_n_s_Function_set_function_args, NULL, __pyx_n_s_talib_c_ta_lib, __pyx_d, ((PyObject *)__pyx_codeobj__2632)); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 247, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_set_function_args, __pyx_t_5) < 0) __PYX_ERR(1, 247, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + + /* "talib/_abstract.pxi":279 + * + * @property + * def lookback(self): # <<<<<<<<<<<<<< + * """ + * Returns the lookback window size for the function with the parameter + */ + __pyx_t_5 = __Pyx_CyFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_8Function_25lookback, 0, __pyx_n_s_Function_lookback, NULL, __pyx_n_s_talib_c_ta_lib, __pyx_d, ((PyObject *)__pyx_codeobj__2634)); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 279, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + + /* "talib/_abstract.pxi":278 + * self.__outputs_valid = False + * + * @property # <<<<<<<<<<<<<< + * def lookback(self): + * """ + */ + __pyx_t_14 = PyTuple_New(1); if (unlikely(!__pyx_t_14)) __PYX_ERR(1, 278, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_14); + __Pyx_GIVEREF(__pyx_t_5); + PyTuple_SET_ITEM(__pyx_t_14, 0, __pyx_t_5); + __pyx_t_5 = 0; + __pyx_t_5 = __Pyx_PyObject_Call(__pyx_builtin_property, __pyx_t_14, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 278, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0; + if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_lookback, __pyx_t_5) < 0) __PYX_ERR(1, 279, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + + /* "talib/_abstract.pxi":299 + * + * @property + * def output_names(self): # <<<<<<<<<<<<<< + * """ + * Returns a list of the output names returned by this function. + */ + __pyx_t_5 = __Pyx_CyFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_8Function_27output_names, 0, __pyx_n_s_Function_output_names, NULL, __pyx_n_s_talib_c_ta_lib, __pyx_d, ((PyObject *)__pyx_codeobj__2636)); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 299, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + + /* "talib/_abstract.pxi":298 + * return lookback + * + * @property # <<<<<<<<<<<<<< + * def output_names(self): + * """ + */ + __pyx_t_14 = PyTuple_New(1); if (unlikely(!__pyx_t_14)) __PYX_ERR(1, 298, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_14); + __Pyx_GIVEREF(__pyx_t_5); + PyTuple_SET_ITEM(__pyx_t_14, 0, __pyx_t_5); + __pyx_t_5 = 0; + __pyx_t_5 = __Pyx_PyObject_Call(__pyx_builtin_property, __pyx_t_14, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 298, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0; + if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_output_names, __pyx_t_5) < 0) __PYX_ERR(1, 299, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + + /* "talib/_abstract.pxi":309 + * + * @property + * def outputs(self): # <<<<<<<<<<<<<< + * """ + * Returns the TA function values for the currently set input_arrays and + */ + __pyx_t_5 = __Pyx_CyFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_8Function_29outputs, 0, __pyx_n_s_Function_outputs, NULL, __pyx_n_s_talib_c_ta_lib, __pyx_d, ((PyObject *)__pyx_codeobj__2638)); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 309, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + + /* "talib/_abstract.pxi":308 + * return ret + * + * @property # <<<<<<<<<<<<<< + * def outputs(self): + * """ + */ + __pyx_t_14 = PyTuple_New(1); if (unlikely(!__pyx_t_14)) __PYX_ERR(1, 308, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_14); + __Pyx_GIVEREF(__pyx_t_5); + PyTuple_SET_ITEM(__pyx_t_14, 0, __pyx_t_5); + __pyx_t_5 = 0; + __pyx_t_5 = __Pyx_PyObject_Call(__pyx_builtin_property, __pyx_t_14, NULL); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 308, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + __Pyx_DECREF(__pyx_t_14); __pyx_t_14 = 0; + if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_outputs, __pyx_t_5) < 0) __PYX_ERR(1, 309, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + + /* "talib/_abstract.pxi":332 + * return ret[0] if len(ret) == 1 else ret + * + * def run(self, input_arrays=None): # <<<<<<<<<<<<<< + * """ + * run([input_arrays=None]) + */ + __pyx_t_5 = __Pyx_CyFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_8Function_31run, 0, __pyx_n_s_Function_run, NULL, __pyx_n_s_talib_c_ta_lib, __pyx_d, ((PyObject *)__pyx_codeobj__2640)); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 332, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + __Pyx_CyFunction_SetDefaultsTuple(__pyx_t_5, __pyx_tuple__2641); + if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_run, __pyx_t_5) < 0) __PYX_ERR(1, 332, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + + /* "talib/_abstract.pxi":344 + * return self.outputs + * + * def __call__(self, *args, **kwargs): # <<<<<<<<<<<<<< + * """ + * func_instance([input_arrays,] [parameter_args,] [input_price_series_kwargs,] [parameter_kwargs]) + */ + __pyx_t_5 = __Pyx_CyFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_8Function_33__call__, 0, __pyx_n_s_Function___call, NULL, __pyx_n_s_talib_c_ta_lib, __pyx_d, ((PyObject *)__pyx_codeobj__2643)); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 344, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_call, __pyx_t_5) < 0) __PYX_ERR(1, 344, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + + /* "talib/_abstract.pxi":356 + * + * # figure out which price series names we're using for inputs + * def __input_price_series_names(self): # <<<<<<<<<<<<<< + * input_price_series_names = [] + * for input_name in self.__input_names: + */ + __pyx_t_5 = __Pyx_CyFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_8Function_35__input_price_series_names, 0, __pyx_n_s_Function___input_price_series_na, NULL, __pyx_n_s_talib_c_ta_lib, __pyx_d, ((PyObject *)__pyx_codeobj__2645)); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 356, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_Function__input_price_series_na, __pyx_t_5) < 0) __PYX_ERR(1, 356, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + + /* "talib/_abstract.pxi":367 + * return input_price_series_names + * + * def __call_function(self): # <<<<<<<<<<<<<< + * input_price_series_names = self.__input_price_series_names() + * + */ + __pyx_t_5 = __Pyx_CyFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_8Function_37__call_function, 0, __pyx_n_s_Function___call_function, NULL, __pyx_n_s_talib_c_ta_lib, __pyx_d, ((PyObject *)__pyx_codeobj__2647)); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 367, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_Function__call_function, __pyx_t_5) < 0) __PYX_ERR(1, 367, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + + /* "talib/_abstract.pxi":394 + * self.__outputs_valid = True + * + * def __get_opt_input_value(self, input_name): # <<<<<<<<<<<<<< + * """ + * Returns the user-set value if there is one, otherwise the default. + */ + __pyx_t_5 = __Pyx_CyFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_8Function_39__get_opt_input_value, 0, __pyx_n_s_Function___get_opt_input_value, NULL, __pyx_n_s_talib_c_ta_lib, __pyx_d, ((PyObject *)__pyx_codeobj__2649)); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 394, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_Function__get_opt_input_value, __pyx_t_5) < 0) __PYX_ERR(1, 394, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + + /* "talib/_abstract.pxi":403 + * return value + * + * def __repr__(self): # <<<<<<<<<<<<<< + * return '%s' % self.info + * + */ + __pyx_t_5 = __Pyx_CyFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_8Function_41__repr__, 0, __pyx_n_s_Function___repr, NULL, __pyx_n_s_talib_c_ta_lib, __pyx_d, ((PyObject *)__pyx_codeobj__2651)); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 403, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_repr, __pyx_t_5) < 0) __PYX_ERR(1, 403, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + + /* "talib/_abstract.pxi":406 + * return '%s' % self.info + * + * def __unicode__(self): # <<<<<<<<<<<<<< + * return unicode(self.__str__()) + * + */ + __pyx_t_5 = __Pyx_CyFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_8Function_43__unicode__, 0, __pyx_n_s_Function___unicode, NULL, __pyx_n_s_talib_c_ta_lib, __pyx_d, ((PyObject *)__pyx_codeobj__2653)); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 406, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_unicode, __pyx_t_5) < 0) __PYX_ERR(1, 406, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + + /* "talib/_abstract.pxi":409 + * return unicode(self.__str__()) + * + * def __str__(self): # <<<<<<<<<<<<<< + * return _get_defaults_and_docs(self.info)[1] # docstring includes defaults + * + */ + __pyx_t_5 = __Pyx_CyFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_8Function_45__str__, 0, __pyx_n_s_Function___str, NULL, __pyx_n_s_talib_c_ta_lib, __pyx_d, ((PyObject *)__pyx_codeobj__2655)); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 409, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + if (PyObject_SetItem(__pyx_t_1, __pyx_n_s_str, __pyx_t_5) < 0) __PYX_ERR(1, 409, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + + /* "talib/_abstract.pxi":59 + * return b + * + * class Function(object): # <<<<<<<<<<<<<< + * """ + * This is a pythonic wrapper around TALIB's abstract interface. It is + */ + __pyx_t_5 = __Pyx_Py3ClassCreate(__pyx_t_2, __pyx_n_s_Function, __pyx_t_4, __pyx_t_1, NULL, 0, 1); if (unlikely(!__pyx_t_5)) __PYX_ERR(1, 59, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_5); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_Function, __pyx_t_5) < 0) __PYX_ERR(1, 59, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_5); __pyx_t_5 = 0; + __Pyx_DECREF(__pyx_t_1); __pyx_t_1 = 0; + __Pyx_DECREF(__pyx_t_2); __pyx_t_2 = 0; + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_abstract.pxi":423 + * # therefore recommended over using these functions directly. + * + * def _ta_getGroupTable(): # <<<<<<<<<<<<<< + * """ + * Returns the list of available TALIB function group names. *slow* + */ + __pyx_t_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_335_ta_getGroupTable, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 423, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_ta_getGroupTable, __pyx_t_4) < 0) __PYX_ERR(1, 423, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_abstract.pxi":435 + * return groups + * + * def _ta_getFuncTable(char *group): # <<<<<<<<<<<<<< + * """ + * Returns a list of the functions for the specified group name. *slow* + */ + __pyx_t_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_337_ta_getFuncTable, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 435, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_ta_getFuncTable, __pyx_t_4) < 0) __PYX_ERR(1, 435, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_abstract.pxi":447 + * return functions + * + * def __get_flags(int flag, dict flags_lookup_dict): # <<<<<<<<<<<<<< + * """ + * TA-LIB provides hints for multiple flags as a bitwise-ORed int. + */ + __pyx_t_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_339__get_flags, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 447, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_get_flags, __pyx_t_4) < 0) __PYX_ERR(1, 447, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_abstract.pxi":473 + * + * TA_FUNC_FLAGS = { + * 16777216: 'Output scale same as input', # <<<<<<<<<<<<<< + * 67108864: 'Output is over volume', + * 134217728: 'Function has an unstable period', + */ + __pyx_t_4 = PyDict_New(); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 473, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_t_4, __pyx_int_16777216, __pyx_kp_s_Output_scale_same_as_input) < 0) __PYX_ERR(1, 473, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_4, __pyx_int_67108864, __pyx_kp_s_Output_is_over_volume) < 0) __PYX_ERR(1, 473, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_4, __pyx_int_134217728, __pyx_kp_s_Function_has_an_unstable_period) < 0) __PYX_ERR(1, 473, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_4, __pyx_int_268435456, __pyx_kp_s_Output_is_a_candlestick) < 0) __PYX_ERR(1, 473, __pyx_L1_error) + if (PyDict_SetItem(__pyx_d, __pyx_n_s_TA_FUNC_FLAGS, __pyx_t_4) < 0) __PYX_ERR(1, 472, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_abstract.pxi":481 + * # when flag is 0, the function (should) work on any reasonable input ndarray + * TA_INPUT_FLAGS = { + * 1: 'open', # <<<<<<<<<<<<<< + * 2: 'high', + * 4: 'low', + */ + __pyx_t_4 = PyDict_New(); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 481, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_t_4, __pyx_int_1, __pyx_n_s_open) < 0) __PYX_ERR(1, 481, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_4, __pyx_int_2, __pyx_n_s_high) < 0) __PYX_ERR(1, 481, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_4, __pyx_int_4, __pyx_n_s_low) < 0) __PYX_ERR(1, 481, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_4, __pyx_int_8, __pyx_n_s_close) < 0) __PYX_ERR(1, 481, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_4, __pyx_int_16, __pyx_n_s_volume) < 0) __PYX_ERR(1, 481, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_4, __pyx_int_32, __pyx_n_s_openInterest) < 0) __PYX_ERR(1, 481, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_4, __pyx_int_64, __pyx_n_s_timeStamp) < 0) __PYX_ERR(1, 481, __pyx_L1_error) + if (PyDict_SetItem(__pyx_d, __pyx_n_s_TA_INPUT_FLAGS, __pyx_t_4) < 0) __PYX_ERR(1, 480, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_abstract.pxi":491 + * + * TA_OUTPUT_FLAGS = { + * 1: 'Line', # <<<<<<<<<<<<<< + * 2: 'Dotted Line', + * 4: 'Dashed Line', + */ + __pyx_t_4 = PyDict_New(); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 491, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_t_4, __pyx_int_1, __pyx_n_s_Line) < 0) __PYX_ERR(1, 491, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_4, __pyx_int_2, __pyx_kp_s_Dotted_Line) < 0) __PYX_ERR(1, 491, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_4, __pyx_int_4, __pyx_kp_s_Dashed_Line) < 0) __PYX_ERR(1, 491, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_4, __pyx_int_8, __pyx_n_s_Dot) < 0) __PYX_ERR(1, 491, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_4, __pyx_int_16, __pyx_n_s_Histogram) < 0) __PYX_ERR(1, 491, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_4, __pyx_int_32, __pyx_kp_s_Pattern_Bool) < 0) __PYX_ERR(1, 491, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_4, __pyx_int_64, __pyx_kp_s_Bull_Bear_Pattern_Bearish_0_Neut) < 0) __PYX_ERR(1, 491, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_4, __pyx_int_128, __pyx_kp_s_Strength_Pattern_200_100_Bearish) < 0) __PYX_ERR(1, 491, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_4, __pyx_int_256, __pyx_kp_s_Output_can_be_positive) < 0) __PYX_ERR(1, 491, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_4, __pyx_int_512, __pyx_kp_s_Output_can_be_negative) < 0) __PYX_ERR(1, 491, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_4, __pyx_int_1024, __pyx_kp_s_Output_can_be_zero) < 0) __PYX_ERR(1, 491, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_4, __pyx_int_2048, __pyx_kp_s_Values_represent_an_upper_limit) < 0) __PYX_ERR(1, 491, __pyx_L1_error) + if (PyDict_SetItem(__pyx_t_4, __pyx_int_4096, __pyx_kp_s_Values_represent_a_lower_limit) < 0) __PYX_ERR(1, 491, __pyx_L1_error) + if (PyDict_SetItem(__pyx_d, __pyx_n_s_TA_OUTPUT_FLAGS, __pyx_t_4) < 0) __PYX_ERR(1, 490, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_abstract.pxi":506 + * } + * + * def _ta_getFuncInfo(char *function_name): # <<<<<<<<<<<<<< + * """ + * Returns the info dict for the function. It has the following keys: name, + */ + __pyx_t_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_341_ta_getFuncInfo, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 506, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_ta_getFuncInfo, __pyx_t_4) < 0) __PYX_ERR(1, 506, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_abstract.pxi":525 + * } + * + * def _ta_getInputParameterInfo(char *function_name, int idx): # <<<<<<<<<<<<<< + * """ + * Returns the function's input info dict for the given index. It has two + */ + __pyx_t_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_343_ta_getInputParameterInfo, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 525, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_ta_getInputParameterInfo, __pyx_t_4) < 0) __PYX_ERR(1, 525, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_abstract.pxi":546 + * } + * + * def _ta_getOptInputParameterInfo(char *function_name, int idx): # <<<<<<<<<<<<<< + * """ + * Returns the function's opt_input info dict for the given index. It has the + */ + __pyx_t_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_345_ta_getOptInputParameterInfo, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 546, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_ta_getOptInputParameterInfo, __pyx_t_4) < 0) __PYX_ERR(1, 546, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_abstract.pxi":570 + * } + * + * def _ta_getOutputParameterInfo(char *function_name, int idx): # <<<<<<<<<<<<<< + * """ + * Returns the function's output info dict for the given index. It has two + */ + __pyx_t_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_347_ta_getOutputParameterInfo, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 570, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_ta_getOutputParameterInfo, __pyx_t_4) < 0) __PYX_ERR(1, 570, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_abstract.pxi":590 + * } + * + * def _get_defaults_and_docs(func_info): # <<<<<<<<<<<<<< + * """ + * Returns a tuple with two outputs: defaults, a dict of parameter defaults, + */ + __pyx_t_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_349_get_defaults_and_docs, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(1, 590, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_get_defaults_and_docs, __pyx_t_4) < 0) __PYX_ERR(1, 590, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":10 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_ACOS( np.ndarray real not None ): # <<<<<<<<<<<<<< + * """ ACOS(real) + * + */ + __pyx_t_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_351stream_ACOS, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 10, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_ACOS, __pyx_t_4) < 0) __PYX_ERR(3, 10, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":44 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_353stream_AD, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 44, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_AD, __pyx_t_4) < 0) __PYX_ERR(3, 44, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":108 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_ADD( np.ndarray real0 not None , np.ndarray real1 not None ): # <<<<<<<<<<<<<< + * """ ADD(real0, real1) + * + */ + __pyx_t_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_355stream_ADD, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 108, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_ADD, __pyx_t_4) < 0) __PYX_ERR(3, 108, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":153 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_357stream_ADOSC, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 153, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_ADOSC, __pyx_t_4) < 0) __PYX_ERR(3, 153, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":220 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_359stream_ADX, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 220, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_ADX, __pyx_t_4) < 0) __PYX_ERR(3, 220, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":276 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_361stream_ADXR, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 276, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_ADXR, __pyx_t_4) < 0) __PYX_ERR(3, 276, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":332 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_APO( np.ndarray real not None , int fastperiod=-2**31 , int slowperiod=-2**31 , int matype=0 ): # <<<<<<<<<<<<<< + * """ APO(real[, fastperiod=?, slowperiod=?, matype=?]) + * + */ + __pyx_t_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_363stream_APO, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 332, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_APO, __pyx_t_4) < 0) __PYX_ERR(3, 332, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":370 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_AROON( np.ndarray high not None , np.ndarray low not None , int timeperiod=-2**31 ): # <<<<<<<<<<<<<< + * """ AROON(high, low[, timeperiod=?]) + * + */ + __pyx_t_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_365stream_AROON, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 370, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_AROON, __pyx_t_4) < 0) __PYX_ERR(3, 370, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":419 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_AROONOSC( np.ndarray high not None , np.ndarray low not None , int timeperiod=-2**31 ): # <<<<<<<<<<<<<< + * """ AROONOSC(high, low[, timeperiod=?]) + * + */ + __pyx_t_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_367stream_AROONOSC, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 419, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_AROONOSC, __pyx_t_4) < 0) __PYX_ERR(3, 419, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":465 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_ASIN( np.ndarray real not None ): # <<<<<<<<<<<<<< + * """ ASIN(real) + * + */ + __pyx_t_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_369stream_ASIN, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 465, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_ASIN, __pyx_t_4) < 0) __PYX_ERR(3, 465, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":499 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_ATAN( np.ndarray real not None ): # <<<<<<<<<<<<<< + * """ ATAN(real) + * + */ + __pyx_t_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_371stream_ATAN, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 499, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_ATAN, __pyx_t_4) < 0) __PYX_ERR(3, 499, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":533 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_373stream_ATR, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 533, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_ATR, __pyx_t_4) < 0) __PYX_ERR(3, 533, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":589 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_375stream_AVGPRICE, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 589, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_AVGPRICE, __pyx_t_4) < 0) __PYX_ERR(3, 589, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":653 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_377stream_BBANDS, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 653, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_BBANDS, __pyx_t_4) < 0) __PYX_ERR(3, 653, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":698 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_BETA( np.ndarray real0 not None , np.ndarray real1 not None , int timeperiod=-2**31 ): # <<<<<<<<<<<<<< + * """ BETA(real0, real1[, timeperiod=?]) + * + */ + __pyx_t_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_379stream_BETA, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 698, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_BETA, __pyx_t_4) < 0) __PYX_ERR(3, 698, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":745 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_381stream_BOP, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 745, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_BOP, __pyx_t_4) < 0) __PYX_ERR(3, 745, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":809 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_383stream_CCI, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 809, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_CCI, __pyx_t_4) < 0) __PYX_ERR(3, 809, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":865 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_385stream_CDL2CROWS, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 865, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_CDL2CROWS, __pyx_t_4) < 0) __PYX_ERR(3, 865, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":929 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_387stream_CDL3BLACKCROWS, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 929, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_CDL3BLACKCROWS, __pyx_t_4) < 0) __PYX_ERR(3, 929, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":993 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_389stream_CDL3INSIDE, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 993, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_CDL3INSIDE, __pyx_t_4) < 0) __PYX_ERR(3, 993, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":1057 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_391stream_CDL3LINESTRIKE, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 1057, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_CDL3LINESTRIKE, __pyx_t_4) < 0) __PYX_ERR(3, 1057, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":1121 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_393stream_CDL3OUTSIDE, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 1121, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_CDL3OUTSIDE, __pyx_t_4) < 0) __PYX_ERR(3, 1121, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":1185 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_395stream_CDL3STARSINSOUTH, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 1185, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_CDL3STARSINSOUTH, __pyx_t_4) < 0) __PYX_ERR(3, 1185, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":1249 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_397stream_CDL3WHITESOLDIERS, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 1249, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_CDL3WHITESOLDIERS, __pyx_t_4) < 0) __PYX_ERR(3, 1249, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":1313 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_399stream_CDLABANDONEDBABY, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 1313, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_CDLABANDONEDBABY, __pyx_t_4) < 0) __PYX_ERR(3, 1313, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":1379 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_401stream_CDLADVANCEBLOCK, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 1379, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_CDLADVANCEBLOCK, __pyx_t_4) < 0) __PYX_ERR(3, 1379, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":1443 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_403stream_CDLBELTHOLD, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 1443, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_CDLBELTHOLD, __pyx_t_4) < 0) __PYX_ERR(3, 1443, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":1507 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_405stream_CDLBREAKAWAY, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 1507, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_CDLBREAKAWAY, __pyx_t_4) < 0) __PYX_ERR(3, 1507, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":1571 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_407stream_CDLCLOSINGMARUBOZU, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 1571, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_CDLCLOSINGMARUBOZU, __pyx_t_4) < 0) __PYX_ERR(3, 1571, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":1635 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_409stream_CDLCONCEALBABYSWALL, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 1635, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_CDLCONCEALBABYSWALL, __pyx_t_4) < 0) __PYX_ERR(3, 1635, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":1699 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_411stream_CDLCOUNTERATTACK, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 1699, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_CDLCOUNTERATTACK, __pyx_t_4) < 0) __PYX_ERR(3, 1699, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":1763 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_413stream_CDLDARKCLOUDCOVER, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 1763, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_CDLDARKCLOUDCOVER, __pyx_t_4) < 0) __PYX_ERR(3, 1763, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":1829 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_415stream_CDLDOJI, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 1829, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_CDLDOJI, __pyx_t_4) < 0) __PYX_ERR(3, 1829, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":1893 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_417stream_CDLDOJISTAR, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 1893, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_CDLDOJISTAR, __pyx_t_4) < 0) __PYX_ERR(3, 1893, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":1957 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_419stream_CDLDRAGONFLYDOJI, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 1957, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_CDLDRAGONFLYDOJI, __pyx_t_4) < 0) __PYX_ERR(3, 1957, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":2021 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_421stream_CDLENGULFING, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2021, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_CDLENGULFING, __pyx_t_4) < 0) __PYX_ERR(3, 2021, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":2085 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_423stream_CDLEVENINGDOJISTAR, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2085, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_CDLEVENINGDOJISTAR, __pyx_t_4) < 0) __PYX_ERR(3, 2085, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":2151 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_425stream_CDLEVENINGSTAR, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2151, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_CDLEVENINGSTAR, __pyx_t_4) < 0) __PYX_ERR(3, 2151, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":2217 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_427stream_CDLGAPSIDESIDEWHITE, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2217, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_CDLGAPSIDESIDEWHITE, __pyx_t_4) < 0) __PYX_ERR(3, 2217, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":2281 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_429stream_CDLGRAVESTONEDOJI, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2281, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_CDLGRAVESTONEDOJI, __pyx_t_4) < 0) __PYX_ERR(3, 2281, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":2345 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_431stream_CDLHAMMER, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2345, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_CDLHAMMER, __pyx_t_4) < 0) __PYX_ERR(3, 2345, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":2409 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_433stream_CDLHANGINGMAN, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2409, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_CDLHANGINGMAN, __pyx_t_4) < 0) __PYX_ERR(3, 2409, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":2473 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_435stream_CDLHARAMI, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2473, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_CDLHARAMI, __pyx_t_4) < 0) __PYX_ERR(3, 2473, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":2537 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_437stream_CDLHARAMICROSS, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2537, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_CDLHARAMICROSS, __pyx_t_4) < 0) __PYX_ERR(3, 2537, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":2601 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_439stream_CDLHIGHWAVE, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2601, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_CDLHIGHWAVE, __pyx_t_4) < 0) __PYX_ERR(3, 2601, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":2665 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_441stream_CDLHIKKAKE, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2665, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_CDLHIKKAKE, __pyx_t_4) < 0) __PYX_ERR(3, 2665, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":2729 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_443stream_CDLHIKKAKEMOD, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2729, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_CDLHIKKAKEMOD, __pyx_t_4) < 0) __PYX_ERR(3, 2729, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":2793 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_445stream_CDLHOMINGPIGEON, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2793, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_CDLHOMINGPIGEON, __pyx_t_4) < 0) __PYX_ERR(3, 2793, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":2857 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_447stream_CDLIDENTICAL3CROWS, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2857, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_CDLIDENTICAL3CROWS, __pyx_t_4) < 0) __PYX_ERR(3, 2857, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":2921 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_449stream_CDLINNECK, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2921, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_CDLINNECK, __pyx_t_4) < 0) __PYX_ERR(3, 2921, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":2985 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_451stream_CDLINVERTEDHAMMER, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 2985, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_CDLINVERTEDHAMMER, __pyx_t_4) < 0) __PYX_ERR(3, 2985, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":3049 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_453stream_CDLKICKING, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3049, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_CDLKICKING, __pyx_t_4) < 0) __PYX_ERR(3, 3049, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":3113 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_455stream_CDLKICKINGBYLENGTH, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3113, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_CDLKICKINGBYLENGTH, __pyx_t_4) < 0) __PYX_ERR(3, 3113, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":3177 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_457stream_CDLLADDERBOTTOM, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3177, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_CDLLADDERBOTTOM, __pyx_t_4) < 0) __PYX_ERR(3, 3177, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":3241 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_459stream_CDLLONGLEGGEDDOJI, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3241, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_CDLLONGLEGGEDDOJI, __pyx_t_4) < 0) __PYX_ERR(3, 3241, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":3305 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_461stream_CDLLONGLINE, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3305, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_CDLLONGLINE, __pyx_t_4) < 0) __PYX_ERR(3, 3305, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":3369 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_463stream_CDLMARUBOZU, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3369, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_CDLMARUBOZU, __pyx_t_4) < 0) __PYX_ERR(3, 3369, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":3433 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_465stream_CDLMATCHINGLOW, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3433, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_CDLMATCHINGLOW, __pyx_t_4) < 0) __PYX_ERR(3, 3433, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":3497 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_467stream_CDLMATHOLD, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3497, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_CDLMATHOLD, __pyx_t_4) < 0) __PYX_ERR(3, 3497, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":3563 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_469stream_CDLMORNINGDOJISTAR, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3563, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_CDLMORNINGDOJISTAR, __pyx_t_4) < 0) __PYX_ERR(3, 3563, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":3629 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_471stream_CDLMORNINGSTAR, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3629, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_CDLMORNINGSTAR, __pyx_t_4) < 0) __PYX_ERR(3, 3629, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":3695 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_473stream_CDLONNECK, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3695, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_CDLONNECK, __pyx_t_4) < 0) __PYX_ERR(3, 3695, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":3759 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_475stream_CDLPIERCING, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3759, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_CDLPIERCING, __pyx_t_4) < 0) __PYX_ERR(3, 3759, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":3823 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_477stream_CDLRICKSHAWMAN, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3823, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_CDLRICKSHAWMAN, __pyx_t_4) < 0) __PYX_ERR(3, 3823, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":3887 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_479stream_CDLRISEFALL3METHODS, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3887, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_CDLRISEFALL3METHODS, __pyx_t_4) < 0) __PYX_ERR(3, 3887, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":3951 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_481stream_CDLSEPARATINGLINES, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 3951, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_CDLSEPARATINGLINES, __pyx_t_4) < 0) __PYX_ERR(3, 3951, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":4015 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_483stream_CDLSHOOTINGSTAR, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 4015, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_CDLSHOOTINGSTAR, __pyx_t_4) < 0) __PYX_ERR(3, 4015, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":4079 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_485stream_CDLSHORTLINE, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 4079, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_CDLSHORTLINE, __pyx_t_4) < 0) __PYX_ERR(3, 4079, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":4143 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_487stream_CDLSPINNINGTOP, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 4143, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_CDLSPINNINGTOP, __pyx_t_4) < 0) __PYX_ERR(3, 4143, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":4207 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_489stream_CDLSTALLEDPATTERN, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 4207, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_CDLSTALLEDPATTERN, __pyx_t_4) < 0) __PYX_ERR(3, 4207, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":4271 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_491stream_CDLSTICKSANDWICH, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 4271, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_CDLSTICKSANDWICH, __pyx_t_4) < 0) __PYX_ERR(3, 4271, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":4335 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_493stream_CDLTAKURI, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 4335, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_CDLTAKURI, __pyx_t_4) < 0) __PYX_ERR(3, 4335, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":4399 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_495stream_CDLTASUKIGAP, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 4399, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_CDLTASUKIGAP, __pyx_t_4) < 0) __PYX_ERR(3, 4399, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":4463 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_497stream_CDLTHRUSTING, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 4463, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_CDLTHRUSTING, __pyx_t_4) < 0) __PYX_ERR(3, 4463, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":4527 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_499stream_CDLTRISTAR, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 4527, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_CDLTRISTAR, __pyx_t_4) < 0) __PYX_ERR(3, 4527, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":4591 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_501stream_CDLUNIQUE3RIVER, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 4591, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_CDLUNIQUE3RIVER, __pyx_t_4) < 0) __PYX_ERR(3, 4591, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":4655 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_503stream_CDLUPSIDEGAP2CROWS, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 4655, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_CDLUPSIDEGAP2CROWS, __pyx_t_4) < 0) __PYX_ERR(3, 4655, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":4719 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_505stream_CDLXSIDEGAP3METHODS, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 4719, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_CDLXSIDEGAP3METHODS, __pyx_t_4) < 0) __PYX_ERR(3, 4719, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":4783 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_CEIL( np.ndarray real not None ): # <<<<<<<<<<<<<< + * """ CEIL(real) + * + */ + __pyx_t_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_507stream_CEIL, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 4783, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_CEIL, __pyx_t_4) < 0) __PYX_ERR(3, 4783, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":4817 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_CMO( np.ndarray real not None , int timeperiod=-2**31 ): # <<<<<<<<<<<<<< + * """ CMO(real[, timeperiod=?]) + * + */ + __pyx_t_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_509stream_CMO, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 4817, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_CMO, __pyx_t_4) < 0) __PYX_ERR(3, 4817, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":4853 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_CORREL( np.ndarray real0 not None , np.ndarray real1 not None , int timeperiod=-2**31 ): # <<<<<<<<<<<<<< + * """ CORREL(real0, real1[, timeperiod=?]) + * + */ + __pyx_t_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_511stream_CORREL, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 4853, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_CORREL, __pyx_t_4) < 0) __PYX_ERR(3, 4853, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":4900 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_COS( np.ndarray real not None ): # <<<<<<<<<<<<<< + * """ COS(real) + * + */ + __pyx_t_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_513stream_COS, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 4900, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_COS, __pyx_t_4) < 0) __PYX_ERR(3, 4900, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":4934 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_COSH( np.ndarray real not None ): # <<<<<<<<<<<<<< + * """ COSH(real) + * + */ + __pyx_t_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_515stream_COSH, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 4934, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_COSH, __pyx_t_4) < 0) __PYX_ERR(3, 4934, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":4968 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_DEMA( np.ndarray real not None , int timeperiod=-2**31 ): # <<<<<<<<<<<<<< + * """ DEMA(real[, timeperiod=?]) + * + */ + __pyx_t_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_517stream_DEMA, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 4968, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_DEMA, __pyx_t_4) < 0) __PYX_ERR(3, 4968, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":5004 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_DIV( np.ndarray real0 not None , np.ndarray real1 not None ): # <<<<<<<<<<<<<< + * """ DIV(real0, real1) + * + */ + __pyx_t_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_519stream_DIV, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 5004, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_DIV, __pyx_t_4) < 0) __PYX_ERR(3, 5004, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":5049 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_521stream_DX, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 5049, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_DX, __pyx_t_4) < 0) __PYX_ERR(3, 5049, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":5105 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_EMA( np.ndarray real not None , int timeperiod=-2**31 ): # <<<<<<<<<<<<<< + * """ EMA(real[, timeperiod=?]) + * + */ + __pyx_t_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_523stream_EMA, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 5105, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_EMA, __pyx_t_4) < 0) __PYX_ERR(3, 5105, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":5141 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_EXP( np.ndarray real not None ): # <<<<<<<<<<<<<< + * """ EXP(real) + * + */ + __pyx_t_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_525stream_EXP, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 5141, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_EXP, __pyx_t_4) < 0) __PYX_ERR(3, 5141, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":5175 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_FLOOR( np.ndarray real not None ): # <<<<<<<<<<<<<< + * """ FLOOR(real) + * + */ + __pyx_t_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_527stream_FLOOR, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 5175, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_FLOOR, __pyx_t_4) < 0) __PYX_ERR(3, 5175, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":5209 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_HT_DCPERIOD( np.ndarray real not None ): # <<<<<<<<<<<<<< + * """ HT_DCPERIOD(real) + * + */ + __pyx_t_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_529stream_HT_DCPERIOD, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 5209, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_HT_DCPERIOD, __pyx_t_4) < 0) __PYX_ERR(3, 5209, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":5243 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_HT_DCPHASE( np.ndarray real not None ): # <<<<<<<<<<<<<< + * """ HT_DCPHASE(real) + * + */ + __pyx_t_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_531stream_HT_DCPHASE, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 5243, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_HT_DCPHASE, __pyx_t_4) < 0) __PYX_ERR(3, 5243, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":5277 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_HT_PHASOR( np.ndarray real not None ): # <<<<<<<<<<<<<< + * """ HT_PHASOR(real) + * + */ + __pyx_t_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_533stream_HT_PHASOR, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 5277, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_HT_PHASOR, __pyx_t_4) < 0) __PYX_ERR(3, 5277, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":5314 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_HT_SINE( np.ndarray real not None ): # <<<<<<<<<<<<<< + * """ HT_SINE(real) + * + */ + __pyx_t_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_535stream_HT_SINE, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 5314, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_HT_SINE, __pyx_t_4) < 0) __PYX_ERR(3, 5314, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":5351 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_HT_TRENDLINE( np.ndarray real not None ): # <<<<<<<<<<<<<< + * """ HT_TRENDLINE(real) + * + */ + __pyx_t_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_537stream_HT_TRENDLINE, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 5351, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_HT_TRENDLINE, __pyx_t_4) < 0) __PYX_ERR(3, 5351, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":5385 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_HT_TRENDMODE( np.ndarray real not None ): # <<<<<<<<<<<<<< + * """ HT_TRENDMODE(real) + * + */ + __pyx_t_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_539stream_HT_TRENDMODE, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 5385, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_HT_TRENDMODE, __pyx_t_4) < 0) __PYX_ERR(3, 5385, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":5419 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_KAMA( np.ndarray real not None , int timeperiod=-2**31 ): # <<<<<<<<<<<<<< + * """ KAMA(real[, timeperiod=?]) + * + */ + __pyx_t_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_541stream_KAMA, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 5419, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_KAMA, __pyx_t_4) < 0) __PYX_ERR(3, 5419, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":5455 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_LINEARREG( np.ndarray real not None , int timeperiod=-2**31 ): # <<<<<<<<<<<<<< + * """ LINEARREG(real[, timeperiod=?]) + * + */ + __pyx_t_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_543stream_LINEARREG, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 5455, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_LINEARREG, __pyx_t_4) < 0) __PYX_ERR(3, 5455, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":5491 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_LINEARREG_ANGLE( np.ndarray real not None , int timeperiod=-2**31 ): # <<<<<<<<<<<<<< + * """ LINEARREG_ANGLE(real[, timeperiod=?]) + * + */ + __pyx_t_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_545stream_LINEARREG_ANGLE, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 5491, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_LINEARREG_ANGLE, __pyx_t_4) < 0) __PYX_ERR(3, 5491, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":5527 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_LINEARREG_INTERCEPT( np.ndarray real not None , int timeperiod=-2**31 ): # <<<<<<<<<<<<<< + * """ LINEARREG_INTERCEPT(real[, timeperiod=?]) + * + */ + __pyx_t_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_547stream_LINEARREG_INTERCEPT, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 5527, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_LINEARREG_INTERCEPT, __pyx_t_4) < 0) __PYX_ERR(3, 5527, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":5563 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_LINEARREG_SLOPE( np.ndarray real not None , int timeperiod=-2**31 ): # <<<<<<<<<<<<<< + * """ LINEARREG_SLOPE(real[, timeperiod=?]) + * + */ + __pyx_t_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_549stream_LINEARREG_SLOPE, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 5563, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_LINEARREG_SLOPE, __pyx_t_4) < 0) __PYX_ERR(3, 5563, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":5599 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_LN( np.ndarray real not None ): # <<<<<<<<<<<<<< + * """ LN(real) + * + */ + __pyx_t_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_551stream_LN, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 5599, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_LN, __pyx_t_4) < 0) __PYX_ERR(3, 5599, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":5633 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_LOG10( np.ndarray real not None ): # <<<<<<<<<<<<<< + * """ LOG10(real) + * + */ + __pyx_t_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_553stream_LOG10, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 5633, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_LOG10, __pyx_t_4) < 0) __PYX_ERR(3, 5633, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":5667 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_MA( np.ndarray real not None , int timeperiod=-2**31 , int matype=0 ): # <<<<<<<<<<<<<< + * """ MA(real[, timeperiod=?, matype=?]) + * + */ + __pyx_t_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_555stream_MA, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 5667, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_MA, __pyx_t_4) < 0) __PYX_ERR(3, 5667, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":5704 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_557stream_MACD, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 5704, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_MACD, __pyx_t_4) < 0) __PYX_ERR(3, 5704, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":5748 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_559stream_MACDEXT, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 5748, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_MACDEXT, __pyx_t_4) < 0) __PYX_ERR(3, 5748, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":5795 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_MACDFIX( np.ndarray real not None , int signalperiod=-2**31 ): # <<<<<<<<<<<<<< + * """ MACDFIX(real[, signalperiod=?]) + * + */ + __pyx_t_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_561stream_MACDFIX, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 5795, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_MACDFIX, __pyx_t_4) < 0) __PYX_ERR(3, 5795, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":5837 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_MAMA( np.ndarray real not None , double fastlimit=-4e37 , double slowlimit=-4e37 ): # <<<<<<<<<<<<<< + * """ MAMA(real[, fastlimit=?, slowlimit=?]) + * + */ + __pyx_t_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_563stream_MAMA, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 5837, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_MAMA, __pyx_t_4) < 0) __PYX_ERR(3, 5837, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":5877 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_565stream_MAVP, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 5877, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_MAVP, __pyx_t_4) < 0) __PYX_ERR(3, 5877, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":5926 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_MAX( np.ndarray real not None , int timeperiod=-2**31 ): # <<<<<<<<<<<<<< + * """ MAX(real[, timeperiod=?]) + * + */ + __pyx_t_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_567stream_MAX, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 5926, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_MAX, __pyx_t_4) < 0) __PYX_ERR(3, 5926, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":5962 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_MAXINDEX( np.ndarray real not None , int timeperiod=-2**31 ): # <<<<<<<<<<<<<< + * """ MAXINDEX(real[, timeperiod=?]) + * + */ + __pyx_t_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_569stream_MAXINDEX, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 5962, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_MAXINDEX, __pyx_t_4) < 0) __PYX_ERR(3, 5962, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":5998 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_MEDPRICE( np.ndarray high not None , np.ndarray low not None ): # <<<<<<<<<<<<<< + * """ MEDPRICE(high, low) + * + */ + __pyx_t_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_571stream_MEDPRICE, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 5998, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_MEDPRICE, __pyx_t_4) < 0) __PYX_ERR(3, 5998, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":6042 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_573stream_MFI, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 6042, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_MFI, __pyx_t_4) < 0) __PYX_ERR(3, 6042, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":6108 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_MIDPOINT( np.ndarray real not None , int timeperiod=-2**31 ): # <<<<<<<<<<<<<< + * """ MIDPOINT(real[, timeperiod=?]) + * + */ + __pyx_t_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_575stream_MIDPOINT, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 6108, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_MIDPOINT, __pyx_t_4) < 0) __PYX_ERR(3, 6108, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":6144 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_MIDPRICE( np.ndarray high not None , np.ndarray low not None , int timeperiod=-2**31 ): # <<<<<<<<<<<<<< + * """ MIDPRICE(high, low[, timeperiod=?]) + * + */ + __pyx_t_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_577stream_MIDPRICE, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 6144, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_MIDPRICE, __pyx_t_4) < 0) __PYX_ERR(3, 6144, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":6190 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_MIN( np.ndarray real not None , int timeperiod=-2**31 ): # <<<<<<<<<<<<<< + * """ MIN(real[, timeperiod=?]) + * + */ + __pyx_t_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_579stream_MIN, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 6190, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_MIN, __pyx_t_4) < 0) __PYX_ERR(3, 6190, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":6226 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_MININDEX( np.ndarray real not None , int timeperiod=-2**31 ): # <<<<<<<<<<<<<< + * """ MININDEX(real[, timeperiod=?]) + * + */ + __pyx_t_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_581stream_MININDEX, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 6226, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_MININDEX, __pyx_t_4) < 0) __PYX_ERR(3, 6226, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":6262 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_MINMAX( np.ndarray real not None , int timeperiod=-2**31 ): # <<<<<<<<<<<<<< + * """ MINMAX(real[, timeperiod=?]) + * + */ + __pyx_t_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_583stream_MINMAX, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 6262, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_MINMAX, __pyx_t_4) < 0) __PYX_ERR(3, 6262, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":6301 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_MINMAXINDEX( np.ndarray real not None , int timeperiod=-2**31 ): # <<<<<<<<<<<<<< + * """ MINMAXINDEX(real[, timeperiod=?]) + * + */ + __pyx_t_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_585stream_MINMAXINDEX, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 6301, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_MINMAXINDEX, __pyx_t_4) < 0) __PYX_ERR(3, 6301, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":6340 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_587stream_MINUS_DI, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 6340, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_MINUS_DI, __pyx_t_4) < 0) __PYX_ERR(3, 6340, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":6396 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_MINUS_DM( np.ndarray high not None , np.ndarray low not None , int timeperiod=-2**31 ): # <<<<<<<<<<<<<< + * """ MINUS_DM(high, low[, timeperiod=?]) + * + */ + __pyx_t_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_589stream_MINUS_DM, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 6396, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_MINUS_DM, __pyx_t_4) < 0) __PYX_ERR(3, 6396, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":6442 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_MOM( np.ndarray real not None , int timeperiod=-2**31 ): # <<<<<<<<<<<<<< + * """ MOM(real[, timeperiod=?]) + * + */ + __pyx_t_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_591stream_MOM, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 6442, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_MOM, __pyx_t_4) < 0) __PYX_ERR(3, 6442, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":6478 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_MULT( np.ndarray real0 not None , np.ndarray real1 not None ): # <<<<<<<<<<<<<< + * """ MULT(real0, real1) + * + */ + __pyx_t_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_593stream_MULT, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 6478, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_MULT, __pyx_t_4) < 0) __PYX_ERR(3, 6478, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":6523 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_595stream_NATR, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 6523, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_NATR, __pyx_t_4) < 0) __PYX_ERR(3, 6523, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":6579 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_OBV( np.ndarray real not None , np.ndarray volume not None ): # <<<<<<<<<<<<<< + * """ OBV(real, volume) + * + */ + __pyx_t_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_597stream_OBV, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 6579, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_OBV, __pyx_t_4) < 0) __PYX_ERR(3, 6579, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":6624 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_599stream_PLUS_DI, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 6624, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_PLUS_DI, __pyx_t_4) < 0) __PYX_ERR(3, 6624, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":6680 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_PLUS_DM( np.ndarray high not None , np.ndarray low not None , int timeperiod=-2**31 ): # <<<<<<<<<<<<<< + * """ PLUS_DM(high, low[, timeperiod=?]) + * + */ + __pyx_t_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_601stream_PLUS_DM, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 6680, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_PLUS_DM, __pyx_t_4) < 0) __PYX_ERR(3, 6680, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":6726 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_PPO( np.ndarray real not None , int fastperiod=-2**31 , int slowperiod=-2**31 , int matype=0 ): # <<<<<<<<<<<<<< + * """ PPO(real[, fastperiod=?, slowperiod=?, matype=?]) + * + */ + __pyx_t_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_603stream_PPO, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 6726, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_PPO, __pyx_t_4) < 0) __PYX_ERR(3, 6726, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":6764 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_ROC( np.ndarray real not None , int timeperiod=-2**31 ): # <<<<<<<<<<<<<< + * """ ROC(real[, timeperiod=?]) + * + */ + __pyx_t_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_605stream_ROC, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 6764, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_ROC, __pyx_t_4) < 0) __PYX_ERR(3, 6764, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":6800 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_ROCP( np.ndarray real not None , int timeperiod=-2**31 ): # <<<<<<<<<<<<<< + * """ ROCP(real[, timeperiod=?]) + * + */ + __pyx_t_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_607stream_ROCP, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 6800, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_ROCP, __pyx_t_4) < 0) __PYX_ERR(3, 6800, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":6836 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_ROCR( np.ndarray real not None , int timeperiod=-2**31 ): # <<<<<<<<<<<<<< + * """ ROCR(real[, timeperiod=?]) + * + */ + __pyx_t_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_609stream_ROCR, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 6836, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_ROCR, __pyx_t_4) < 0) __PYX_ERR(3, 6836, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":6872 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_ROCR100( np.ndarray real not None , int timeperiod=-2**31 ): # <<<<<<<<<<<<<< + * """ ROCR100(real[, timeperiod=?]) + * + */ + __pyx_t_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_611stream_ROCR100, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 6872, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_ROCR100, __pyx_t_4) < 0) __PYX_ERR(3, 6872, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":6908 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_RSI( np.ndarray real not None , int timeperiod=-2**31 ): # <<<<<<<<<<<<<< + * """ RSI(real[, timeperiod=?]) + * + */ + __pyx_t_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_613stream_RSI, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 6908, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_RSI, __pyx_t_4) < 0) __PYX_ERR(3, 6908, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":6944 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_615stream_SAR, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 6944, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_SAR, __pyx_t_4) < 0) __PYX_ERR(3, 6944, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":6991 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_617stream_SAREXT, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 6991, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_SAREXT, __pyx_t_4) < 0) __PYX_ERR(3, 6991, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":7044 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_SIN( np.ndarray real not None ): # <<<<<<<<<<<<<< + * """ SIN(real) + * + */ + __pyx_t_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_619stream_SIN, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7044, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_SIN, __pyx_t_4) < 0) __PYX_ERR(3, 7044, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":7078 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_SINH( np.ndarray real not None ): # <<<<<<<<<<<<<< + * """ SINH(real) + * + */ + __pyx_t_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_621stream_SINH, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7078, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_SINH, __pyx_t_4) < 0) __PYX_ERR(3, 7078, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":7112 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_SMA( np.ndarray real not None , int timeperiod=-2**31 ): # <<<<<<<<<<<<<< + * """ SMA(real[, timeperiod=?]) + * + */ + __pyx_t_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_623stream_SMA, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7112, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_SMA, __pyx_t_4) < 0) __PYX_ERR(3, 7112, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":7148 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_SQRT( np.ndarray real not None ): # <<<<<<<<<<<<<< + * """ SQRT(real) + * + */ + __pyx_t_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_625stream_SQRT, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7148, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_SQRT, __pyx_t_4) < 0) __PYX_ERR(3, 7148, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":7182 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_STDDEV( np.ndarray real not None , int timeperiod=-2**31 , double nbdev=-4e37 ): # <<<<<<<<<<<<<< + * """ STDDEV(real[, timeperiod=?, nbdev=?]) + * + */ + __pyx_t_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_627stream_STDDEV, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7182, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_STDDEV, __pyx_t_4) < 0) __PYX_ERR(3, 7182, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":7219 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_629stream_STOCH, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7219, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_STOCH, __pyx_t_4) < 0) __PYX_ERR(3, 7219, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":7282 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_631stream_STOCHF, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7282, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_STOCHF, __pyx_t_4) < 0) __PYX_ERR(3, 7282, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":7343 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_633stream_STOCHRSI, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7343, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_STOCHRSI, __pyx_t_4) < 0) __PYX_ERR(3, 7343, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":7385 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_SUB( np.ndarray real0 not None , np.ndarray real1 not None ): # <<<<<<<<<<<<<< + * """ SUB(real0, real1) + * + */ + __pyx_t_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_635stream_SUB, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7385, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_SUB, __pyx_t_4) < 0) __PYX_ERR(3, 7385, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":7430 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_SUM( np.ndarray real not None , int timeperiod=-2**31 ): # <<<<<<<<<<<<<< + * """ SUM(real[, timeperiod=?]) + * + */ + __pyx_t_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_637stream_SUM, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7430, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_SUM, __pyx_t_4) < 0) __PYX_ERR(3, 7430, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":7466 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_T3( np.ndarray real not None , int timeperiod=-2**31 , double vfactor=-4e37 ): # <<<<<<<<<<<<<< + * """ T3(real[, timeperiod=?, vfactor=?]) + * + */ + __pyx_t_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_639stream_T3, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7466, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_T3, __pyx_t_4) < 0) __PYX_ERR(3, 7466, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":7503 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_TAN( np.ndarray real not None ): # <<<<<<<<<<<<<< + * """ TAN(real) + * + */ + __pyx_t_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_641stream_TAN, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7503, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_TAN, __pyx_t_4) < 0) __PYX_ERR(3, 7503, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":7537 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_TANH( np.ndarray real not None ): # <<<<<<<<<<<<<< + * """ TANH(real) + * + */ + __pyx_t_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_643stream_TANH, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7537, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_TANH, __pyx_t_4) < 0) __PYX_ERR(3, 7537, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":7571 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_TEMA( np.ndarray real not None , int timeperiod=-2**31 ): # <<<<<<<<<<<<<< + * """ TEMA(real[, timeperiod=?]) + * + */ + __pyx_t_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_645stream_TEMA, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7571, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_TEMA, __pyx_t_4) < 0) __PYX_ERR(3, 7571, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":7607 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_TRANGE( np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ): # <<<<<<<<<<<<<< + * """ TRANGE(high, low, close) + * + */ + __pyx_t_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_647stream_TRANGE, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7607, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_TRANGE, __pyx_t_4) < 0) __PYX_ERR(3, 7607, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":7661 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_TRIMA( np.ndarray real not None , int timeperiod=-2**31 ): # <<<<<<<<<<<<<< + * """ TRIMA(real[, timeperiod=?]) + * + */ + __pyx_t_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_649stream_TRIMA, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7661, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_TRIMA, __pyx_t_4) < 0) __PYX_ERR(3, 7661, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":7697 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_TRIX( np.ndarray real not None , int timeperiod=-2**31 ): # <<<<<<<<<<<<<< + * """ TRIX(real[, timeperiod=?]) + * + */ + __pyx_t_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_651stream_TRIX, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7697, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_TRIX, __pyx_t_4) < 0) __PYX_ERR(3, 7697, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":7733 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_TSF( np.ndarray real not None , int timeperiod=-2**31 ): # <<<<<<<<<<<<<< + * """ TSF(real[, timeperiod=?]) + * + */ + __pyx_t_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_653stream_TSF, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7733, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_TSF, __pyx_t_4) < 0) __PYX_ERR(3, 7733, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":7769 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_TYPPRICE( np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ): # <<<<<<<<<<<<<< + * """ TYPPRICE(high, low, close) + * + */ + __pyx_t_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_655stream_TYPPRICE, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7769, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_TYPPRICE, __pyx_t_4) < 0) __PYX_ERR(3, 7769, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":7823 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_657stream_ULTOSC, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7823, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_ULTOSC, __pyx_t_4) < 0) __PYX_ERR(3, 7823, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":7881 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_VAR( np.ndarray real not None , int timeperiod=-2**31 , double nbdev=-4e37 ): # <<<<<<<<<<<<<< + * """ VAR(real[, timeperiod=?, nbdev=?]) + * + */ + __pyx_t_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_659stream_VAR, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7881, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_VAR, __pyx_t_4) < 0) __PYX_ERR(3, 7881, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":7918 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_WCLPRICE( np.ndarray high not None , np.ndarray low not None , np.ndarray close not None ): # <<<<<<<<<<<<<< + * """ WCLPRICE(high, low, close) + * + */ + __pyx_t_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_661stream_WCLPRICE, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7918, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_WCLPRICE, __pyx_t_4) < 0) __PYX_ERR(3, 7918, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":7972 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_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_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_663stream_WILLR, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 7972, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_WILLR, __pyx_t_4) < 0) __PYX_ERR(3, 7972, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/_stream.pxi":8028 + * @wraparound(False) # turn off relative indexing from end of lists + * @boundscheck(False) # turn off bounds-checking for entire function + * def stream_WMA( np.ndarray real not None , int timeperiod=-2**31 ): # <<<<<<<<<<<<<< + * """ WMA(real[, timeperiod=?]) + * + */ + __pyx_t_4 = PyCFunction_NewEx(&__pyx_mdef_5talib_8c_ta_lib_665stream_WMA, NULL, __pyx_n_s_talib_c_ta_lib); if (unlikely(!__pyx_t_4)) __PYX_ERR(3, 8028, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_stream_WMA, __pyx_t_4) < 0) __PYX_ERR(3, 8028, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/c_ta_lib.pyx":12 + * include "_stream.pxi" + * + * __TA_FUNCTION_NAMES__ = ["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_4 = PyList_New(158); if (unlikely(!__pyx_t_4)) __PYX_ERR(5, 12, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + __Pyx_INCREF(__pyx_n_s_ACOS); + __Pyx_GIVEREF(__pyx_n_s_ACOS); + PyList_SET_ITEM(__pyx_t_4, 0, __pyx_n_s_ACOS); + __Pyx_INCREF(__pyx_n_s_AD); + __Pyx_GIVEREF(__pyx_n_s_AD); + PyList_SET_ITEM(__pyx_t_4, 1, __pyx_n_s_AD); + __Pyx_INCREF(__pyx_n_s_ADD); + __Pyx_GIVEREF(__pyx_n_s_ADD); + PyList_SET_ITEM(__pyx_t_4, 2, __pyx_n_s_ADD); + __Pyx_INCREF(__pyx_n_s_ADOSC); + __Pyx_GIVEREF(__pyx_n_s_ADOSC); + PyList_SET_ITEM(__pyx_t_4, 3, __pyx_n_s_ADOSC); + __Pyx_INCREF(__pyx_n_s_ADX); + __Pyx_GIVEREF(__pyx_n_s_ADX); + PyList_SET_ITEM(__pyx_t_4, 4, __pyx_n_s_ADX); + __Pyx_INCREF(__pyx_n_s_ADXR); + __Pyx_GIVEREF(__pyx_n_s_ADXR); + PyList_SET_ITEM(__pyx_t_4, 5, __pyx_n_s_ADXR); + __Pyx_INCREF(__pyx_n_s_APO); + __Pyx_GIVEREF(__pyx_n_s_APO); + PyList_SET_ITEM(__pyx_t_4, 6, __pyx_n_s_APO); + __Pyx_INCREF(__pyx_n_s_AROON); + __Pyx_GIVEREF(__pyx_n_s_AROON); + PyList_SET_ITEM(__pyx_t_4, 7, __pyx_n_s_AROON); + __Pyx_INCREF(__pyx_n_s_AROONOSC); + __Pyx_GIVEREF(__pyx_n_s_AROONOSC); + PyList_SET_ITEM(__pyx_t_4, 8, __pyx_n_s_AROONOSC); + __Pyx_INCREF(__pyx_n_s_ASIN); + __Pyx_GIVEREF(__pyx_n_s_ASIN); + PyList_SET_ITEM(__pyx_t_4, 9, __pyx_n_s_ASIN); + __Pyx_INCREF(__pyx_n_s_ATAN); + __Pyx_GIVEREF(__pyx_n_s_ATAN); + PyList_SET_ITEM(__pyx_t_4, 10, __pyx_n_s_ATAN); + __Pyx_INCREF(__pyx_n_s_ATR); + __Pyx_GIVEREF(__pyx_n_s_ATR); + PyList_SET_ITEM(__pyx_t_4, 11, __pyx_n_s_ATR); + __Pyx_INCREF(__pyx_n_s_AVGPRICE); + __Pyx_GIVEREF(__pyx_n_s_AVGPRICE); + PyList_SET_ITEM(__pyx_t_4, 12, __pyx_n_s_AVGPRICE); + __Pyx_INCREF(__pyx_n_s_BBANDS); + __Pyx_GIVEREF(__pyx_n_s_BBANDS); + PyList_SET_ITEM(__pyx_t_4, 13, __pyx_n_s_BBANDS); + __Pyx_INCREF(__pyx_n_s_BETA); + __Pyx_GIVEREF(__pyx_n_s_BETA); + PyList_SET_ITEM(__pyx_t_4, 14, __pyx_n_s_BETA); + __Pyx_INCREF(__pyx_n_s_BOP); + __Pyx_GIVEREF(__pyx_n_s_BOP); + PyList_SET_ITEM(__pyx_t_4, 15, __pyx_n_s_BOP); + __Pyx_INCREF(__pyx_n_s_CCI); + __Pyx_GIVEREF(__pyx_n_s_CCI); + PyList_SET_ITEM(__pyx_t_4, 16, __pyx_n_s_CCI); + __Pyx_INCREF(__pyx_n_s_CDL2CROWS); + __Pyx_GIVEREF(__pyx_n_s_CDL2CROWS); + PyList_SET_ITEM(__pyx_t_4, 17, __pyx_n_s_CDL2CROWS); + __Pyx_INCREF(__pyx_n_s_CDL3BLACKCROWS); + __Pyx_GIVEREF(__pyx_n_s_CDL3BLACKCROWS); + PyList_SET_ITEM(__pyx_t_4, 18, __pyx_n_s_CDL3BLACKCROWS); + __Pyx_INCREF(__pyx_n_s_CDL3INSIDE); + __Pyx_GIVEREF(__pyx_n_s_CDL3INSIDE); + PyList_SET_ITEM(__pyx_t_4, 19, __pyx_n_s_CDL3INSIDE); + __Pyx_INCREF(__pyx_n_s_CDL3LINESTRIKE); + __Pyx_GIVEREF(__pyx_n_s_CDL3LINESTRIKE); + PyList_SET_ITEM(__pyx_t_4, 20, __pyx_n_s_CDL3LINESTRIKE); + __Pyx_INCREF(__pyx_n_s_CDL3OUTSIDE); + __Pyx_GIVEREF(__pyx_n_s_CDL3OUTSIDE); + PyList_SET_ITEM(__pyx_t_4, 21, __pyx_n_s_CDL3OUTSIDE); + __Pyx_INCREF(__pyx_n_s_CDL3STARSINSOUTH); + __Pyx_GIVEREF(__pyx_n_s_CDL3STARSINSOUTH); + PyList_SET_ITEM(__pyx_t_4, 22, __pyx_n_s_CDL3STARSINSOUTH); + __Pyx_INCREF(__pyx_n_s_CDL3WHITESOLDIERS); + __Pyx_GIVEREF(__pyx_n_s_CDL3WHITESOLDIERS); + PyList_SET_ITEM(__pyx_t_4, 23, __pyx_n_s_CDL3WHITESOLDIERS); + __Pyx_INCREF(__pyx_n_s_CDLABANDONEDBABY); + __Pyx_GIVEREF(__pyx_n_s_CDLABANDONEDBABY); + PyList_SET_ITEM(__pyx_t_4, 24, __pyx_n_s_CDLABANDONEDBABY); + __Pyx_INCREF(__pyx_n_s_CDLADVANCEBLOCK); + __Pyx_GIVEREF(__pyx_n_s_CDLADVANCEBLOCK); + PyList_SET_ITEM(__pyx_t_4, 25, __pyx_n_s_CDLADVANCEBLOCK); + __Pyx_INCREF(__pyx_n_s_CDLBELTHOLD); + __Pyx_GIVEREF(__pyx_n_s_CDLBELTHOLD); + PyList_SET_ITEM(__pyx_t_4, 26, __pyx_n_s_CDLBELTHOLD); + __Pyx_INCREF(__pyx_n_s_CDLBREAKAWAY); + __Pyx_GIVEREF(__pyx_n_s_CDLBREAKAWAY); + PyList_SET_ITEM(__pyx_t_4, 27, __pyx_n_s_CDLBREAKAWAY); + __Pyx_INCREF(__pyx_n_s_CDLCLOSINGMARUBOZU); + __Pyx_GIVEREF(__pyx_n_s_CDLCLOSINGMARUBOZU); + PyList_SET_ITEM(__pyx_t_4, 28, __pyx_n_s_CDLCLOSINGMARUBOZU); + __Pyx_INCREF(__pyx_n_s_CDLCONCEALBABYSWALL); + __Pyx_GIVEREF(__pyx_n_s_CDLCONCEALBABYSWALL); + PyList_SET_ITEM(__pyx_t_4, 29, __pyx_n_s_CDLCONCEALBABYSWALL); + __Pyx_INCREF(__pyx_n_s_CDLCOUNTERATTACK); + __Pyx_GIVEREF(__pyx_n_s_CDLCOUNTERATTACK); + PyList_SET_ITEM(__pyx_t_4, 30, __pyx_n_s_CDLCOUNTERATTACK); + __Pyx_INCREF(__pyx_n_s_CDLDARKCLOUDCOVER); + __Pyx_GIVEREF(__pyx_n_s_CDLDARKCLOUDCOVER); + PyList_SET_ITEM(__pyx_t_4, 31, __pyx_n_s_CDLDARKCLOUDCOVER); + __Pyx_INCREF(__pyx_n_s_CDLDOJI); + __Pyx_GIVEREF(__pyx_n_s_CDLDOJI); + PyList_SET_ITEM(__pyx_t_4, 32, __pyx_n_s_CDLDOJI); + __Pyx_INCREF(__pyx_n_s_CDLDOJISTAR); + __Pyx_GIVEREF(__pyx_n_s_CDLDOJISTAR); + PyList_SET_ITEM(__pyx_t_4, 33, __pyx_n_s_CDLDOJISTAR); + __Pyx_INCREF(__pyx_n_s_CDLDRAGONFLYDOJI); + __Pyx_GIVEREF(__pyx_n_s_CDLDRAGONFLYDOJI); + PyList_SET_ITEM(__pyx_t_4, 34, __pyx_n_s_CDLDRAGONFLYDOJI); + __Pyx_INCREF(__pyx_n_s_CDLENGULFING); + __Pyx_GIVEREF(__pyx_n_s_CDLENGULFING); + PyList_SET_ITEM(__pyx_t_4, 35, __pyx_n_s_CDLENGULFING); + __Pyx_INCREF(__pyx_n_s_CDLEVENINGDOJISTAR); + __Pyx_GIVEREF(__pyx_n_s_CDLEVENINGDOJISTAR); + PyList_SET_ITEM(__pyx_t_4, 36, __pyx_n_s_CDLEVENINGDOJISTAR); + __Pyx_INCREF(__pyx_n_s_CDLEVENINGSTAR); + __Pyx_GIVEREF(__pyx_n_s_CDLEVENINGSTAR); + PyList_SET_ITEM(__pyx_t_4, 37, __pyx_n_s_CDLEVENINGSTAR); + __Pyx_INCREF(__pyx_n_s_CDLGAPSIDESIDEWHITE); + __Pyx_GIVEREF(__pyx_n_s_CDLGAPSIDESIDEWHITE); + PyList_SET_ITEM(__pyx_t_4, 38, __pyx_n_s_CDLGAPSIDESIDEWHITE); + __Pyx_INCREF(__pyx_n_s_CDLGRAVESTONEDOJI); + __Pyx_GIVEREF(__pyx_n_s_CDLGRAVESTONEDOJI); + PyList_SET_ITEM(__pyx_t_4, 39, __pyx_n_s_CDLGRAVESTONEDOJI); + __Pyx_INCREF(__pyx_n_s_CDLHAMMER); + __Pyx_GIVEREF(__pyx_n_s_CDLHAMMER); + PyList_SET_ITEM(__pyx_t_4, 40, __pyx_n_s_CDLHAMMER); + __Pyx_INCREF(__pyx_n_s_CDLHANGINGMAN); + __Pyx_GIVEREF(__pyx_n_s_CDLHANGINGMAN); + PyList_SET_ITEM(__pyx_t_4, 41, __pyx_n_s_CDLHANGINGMAN); + __Pyx_INCREF(__pyx_n_s_CDLHARAMI); + __Pyx_GIVEREF(__pyx_n_s_CDLHARAMI); + PyList_SET_ITEM(__pyx_t_4, 42, __pyx_n_s_CDLHARAMI); + __Pyx_INCREF(__pyx_n_s_CDLHARAMICROSS); + __Pyx_GIVEREF(__pyx_n_s_CDLHARAMICROSS); + PyList_SET_ITEM(__pyx_t_4, 43, __pyx_n_s_CDLHARAMICROSS); + __Pyx_INCREF(__pyx_n_s_CDLHIGHWAVE); + __Pyx_GIVEREF(__pyx_n_s_CDLHIGHWAVE); + PyList_SET_ITEM(__pyx_t_4, 44, __pyx_n_s_CDLHIGHWAVE); + __Pyx_INCREF(__pyx_n_s_CDLHIKKAKE); + __Pyx_GIVEREF(__pyx_n_s_CDLHIKKAKE); + PyList_SET_ITEM(__pyx_t_4, 45, __pyx_n_s_CDLHIKKAKE); + __Pyx_INCREF(__pyx_n_s_CDLHIKKAKEMOD); + __Pyx_GIVEREF(__pyx_n_s_CDLHIKKAKEMOD); + PyList_SET_ITEM(__pyx_t_4, 46, __pyx_n_s_CDLHIKKAKEMOD); + __Pyx_INCREF(__pyx_n_s_CDLHOMINGPIGEON); + __Pyx_GIVEREF(__pyx_n_s_CDLHOMINGPIGEON); + PyList_SET_ITEM(__pyx_t_4, 47, __pyx_n_s_CDLHOMINGPIGEON); + __Pyx_INCREF(__pyx_n_s_CDLIDENTICAL3CROWS); + __Pyx_GIVEREF(__pyx_n_s_CDLIDENTICAL3CROWS); + PyList_SET_ITEM(__pyx_t_4, 48, __pyx_n_s_CDLIDENTICAL3CROWS); + __Pyx_INCREF(__pyx_n_s_CDLINNECK); + __Pyx_GIVEREF(__pyx_n_s_CDLINNECK); + PyList_SET_ITEM(__pyx_t_4, 49, __pyx_n_s_CDLINNECK); + __Pyx_INCREF(__pyx_n_s_CDLINVERTEDHAMMER); + __Pyx_GIVEREF(__pyx_n_s_CDLINVERTEDHAMMER); + PyList_SET_ITEM(__pyx_t_4, 50, __pyx_n_s_CDLINVERTEDHAMMER); + __Pyx_INCREF(__pyx_n_s_CDLKICKING); + __Pyx_GIVEREF(__pyx_n_s_CDLKICKING); + PyList_SET_ITEM(__pyx_t_4, 51, __pyx_n_s_CDLKICKING); + __Pyx_INCREF(__pyx_n_s_CDLKICKINGBYLENGTH); + __Pyx_GIVEREF(__pyx_n_s_CDLKICKINGBYLENGTH); + PyList_SET_ITEM(__pyx_t_4, 52, __pyx_n_s_CDLKICKINGBYLENGTH); + __Pyx_INCREF(__pyx_n_s_CDLLADDERBOTTOM); + __Pyx_GIVEREF(__pyx_n_s_CDLLADDERBOTTOM); + PyList_SET_ITEM(__pyx_t_4, 53, __pyx_n_s_CDLLADDERBOTTOM); + __Pyx_INCREF(__pyx_n_s_CDLLONGLEGGEDDOJI); + __Pyx_GIVEREF(__pyx_n_s_CDLLONGLEGGEDDOJI); + PyList_SET_ITEM(__pyx_t_4, 54, __pyx_n_s_CDLLONGLEGGEDDOJI); + __Pyx_INCREF(__pyx_n_s_CDLLONGLINE); + __Pyx_GIVEREF(__pyx_n_s_CDLLONGLINE); + PyList_SET_ITEM(__pyx_t_4, 55, __pyx_n_s_CDLLONGLINE); + __Pyx_INCREF(__pyx_n_s_CDLMARUBOZU); + __Pyx_GIVEREF(__pyx_n_s_CDLMARUBOZU); + PyList_SET_ITEM(__pyx_t_4, 56, __pyx_n_s_CDLMARUBOZU); + __Pyx_INCREF(__pyx_n_s_CDLMATCHINGLOW); + __Pyx_GIVEREF(__pyx_n_s_CDLMATCHINGLOW); + PyList_SET_ITEM(__pyx_t_4, 57, __pyx_n_s_CDLMATCHINGLOW); + __Pyx_INCREF(__pyx_n_s_CDLMATHOLD); + __Pyx_GIVEREF(__pyx_n_s_CDLMATHOLD); + PyList_SET_ITEM(__pyx_t_4, 58, __pyx_n_s_CDLMATHOLD); + __Pyx_INCREF(__pyx_n_s_CDLMORNINGDOJISTAR); + __Pyx_GIVEREF(__pyx_n_s_CDLMORNINGDOJISTAR); + PyList_SET_ITEM(__pyx_t_4, 59, __pyx_n_s_CDLMORNINGDOJISTAR); + __Pyx_INCREF(__pyx_n_s_CDLMORNINGSTAR); + __Pyx_GIVEREF(__pyx_n_s_CDLMORNINGSTAR); + PyList_SET_ITEM(__pyx_t_4, 60, __pyx_n_s_CDLMORNINGSTAR); + __Pyx_INCREF(__pyx_n_s_CDLONNECK); + __Pyx_GIVEREF(__pyx_n_s_CDLONNECK); + PyList_SET_ITEM(__pyx_t_4, 61, __pyx_n_s_CDLONNECK); + __Pyx_INCREF(__pyx_n_s_CDLPIERCING); + __Pyx_GIVEREF(__pyx_n_s_CDLPIERCING); + PyList_SET_ITEM(__pyx_t_4, 62, __pyx_n_s_CDLPIERCING); + __Pyx_INCREF(__pyx_n_s_CDLRICKSHAWMAN); + __Pyx_GIVEREF(__pyx_n_s_CDLRICKSHAWMAN); + PyList_SET_ITEM(__pyx_t_4, 63, __pyx_n_s_CDLRICKSHAWMAN); + __Pyx_INCREF(__pyx_n_s_CDLRISEFALL3METHODS); + __Pyx_GIVEREF(__pyx_n_s_CDLRISEFALL3METHODS); + PyList_SET_ITEM(__pyx_t_4, 64, __pyx_n_s_CDLRISEFALL3METHODS); + __Pyx_INCREF(__pyx_n_s_CDLSEPARATINGLINES); + __Pyx_GIVEREF(__pyx_n_s_CDLSEPARATINGLINES); + PyList_SET_ITEM(__pyx_t_4, 65, __pyx_n_s_CDLSEPARATINGLINES); + __Pyx_INCREF(__pyx_n_s_CDLSHOOTINGSTAR); + __Pyx_GIVEREF(__pyx_n_s_CDLSHOOTINGSTAR); + PyList_SET_ITEM(__pyx_t_4, 66, __pyx_n_s_CDLSHOOTINGSTAR); + __Pyx_INCREF(__pyx_n_s_CDLSHORTLINE); + __Pyx_GIVEREF(__pyx_n_s_CDLSHORTLINE); + PyList_SET_ITEM(__pyx_t_4, 67, __pyx_n_s_CDLSHORTLINE); + __Pyx_INCREF(__pyx_n_s_CDLSPINNINGTOP); + __Pyx_GIVEREF(__pyx_n_s_CDLSPINNINGTOP); + PyList_SET_ITEM(__pyx_t_4, 68, __pyx_n_s_CDLSPINNINGTOP); + __Pyx_INCREF(__pyx_n_s_CDLSTALLEDPATTERN); + __Pyx_GIVEREF(__pyx_n_s_CDLSTALLEDPATTERN); + PyList_SET_ITEM(__pyx_t_4, 69, __pyx_n_s_CDLSTALLEDPATTERN); + __Pyx_INCREF(__pyx_n_s_CDLSTICKSANDWICH); + __Pyx_GIVEREF(__pyx_n_s_CDLSTICKSANDWICH); + PyList_SET_ITEM(__pyx_t_4, 70, __pyx_n_s_CDLSTICKSANDWICH); + __Pyx_INCREF(__pyx_n_s_CDLTAKURI); + __Pyx_GIVEREF(__pyx_n_s_CDLTAKURI); + PyList_SET_ITEM(__pyx_t_4, 71, __pyx_n_s_CDLTAKURI); + __Pyx_INCREF(__pyx_n_s_CDLTASUKIGAP); + __Pyx_GIVEREF(__pyx_n_s_CDLTASUKIGAP); + PyList_SET_ITEM(__pyx_t_4, 72, __pyx_n_s_CDLTASUKIGAP); + __Pyx_INCREF(__pyx_n_s_CDLTHRUSTING); + __Pyx_GIVEREF(__pyx_n_s_CDLTHRUSTING); + PyList_SET_ITEM(__pyx_t_4, 73, __pyx_n_s_CDLTHRUSTING); + __Pyx_INCREF(__pyx_n_s_CDLTRISTAR); + __Pyx_GIVEREF(__pyx_n_s_CDLTRISTAR); + PyList_SET_ITEM(__pyx_t_4, 74, __pyx_n_s_CDLTRISTAR); + __Pyx_INCREF(__pyx_n_s_CDLUNIQUE3RIVER); + __Pyx_GIVEREF(__pyx_n_s_CDLUNIQUE3RIVER); + PyList_SET_ITEM(__pyx_t_4, 75, __pyx_n_s_CDLUNIQUE3RIVER); + __Pyx_INCREF(__pyx_n_s_CDLUPSIDEGAP2CROWS); + __Pyx_GIVEREF(__pyx_n_s_CDLUPSIDEGAP2CROWS); + PyList_SET_ITEM(__pyx_t_4, 76, __pyx_n_s_CDLUPSIDEGAP2CROWS); + __Pyx_INCREF(__pyx_n_s_CDLXSIDEGAP3METHODS); + __Pyx_GIVEREF(__pyx_n_s_CDLXSIDEGAP3METHODS); + PyList_SET_ITEM(__pyx_t_4, 77, __pyx_n_s_CDLXSIDEGAP3METHODS); + __Pyx_INCREF(__pyx_n_s_CEIL); + __Pyx_GIVEREF(__pyx_n_s_CEIL); + PyList_SET_ITEM(__pyx_t_4, 78, __pyx_n_s_CEIL); + __Pyx_INCREF(__pyx_n_s_CMO); + __Pyx_GIVEREF(__pyx_n_s_CMO); + PyList_SET_ITEM(__pyx_t_4, 79, __pyx_n_s_CMO); + __Pyx_INCREF(__pyx_n_s_CORREL); + __Pyx_GIVEREF(__pyx_n_s_CORREL); + PyList_SET_ITEM(__pyx_t_4, 80, __pyx_n_s_CORREL); + __Pyx_INCREF(__pyx_n_s_COS); + __Pyx_GIVEREF(__pyx_n_s_COS); + PyList_SET_ITEM(__pyx_t_4, 81, __pyx_n_s_COS); + __Pyx_INCREF(__pyx_n_s_COSH); + __Pyx_GIVEREF(__pyx_n_s_COSH); + PyList_SET_ITEM(__pyx_t_4, 82, __pyx_n_s_COSH); + __Pyx_INCREF(__pyx_n_s_DEMA); + __Pyx_GIVEREF(__pyx_n_s_DEMA); + PyList_SET_ITEM(__pyx_t_4, 83, __pyx_n_s_DEMA); + __Pyx_INCREF(__pyx_n_s_DIV); + __Pyx_GIVEREF(__pyx_n_s_DIV); + PyList_SET_ITEM(__pyx_t_4, 84, __pyx_n_s_DIV); + __Pyx_INCREF(__pyx_n_s_DX); + __Pyx_GIVEREF(__pyx_n_s_DX); + PyList_SET_ITEM(__pyx_t_4, 85, __pyx_n_s_DX); + __Pyx_INCREF(__pyx_n_s_EMA); + __Pyx_GIVEREF(__pyx_n_s_EMA); + PyList_SET_ITEM(__pyx_t_4, 86, __pyx_n_s_EMA); + __Pyx_INCREF(__pyx_n_s_EXP); + __Pyx_GIVEREF(__pyx_n_s_EXP); + PyList_SET_ITEM(__pyx_t_4, 87, __pyx_n_s_EXP); + __Pyx_INCREF(__pyx_n_s_FLOOR); + __Pyx_GIVEREF(__pyx_n_s_FLOOR); + PyList_SET_ITEM(__pyx_t_4, 88, __pyx_n_s_FLOOR); + __Pyx_INCREF(__pyx_n_s_HT_DCPERIOD); + __Pyx_GIVEREF(__pyx_n_s_HT_DCPERIOD); + PyList_SET_ITEM(__pyx_t_4, 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_4, 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_4, 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_4, 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_4, 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_4, 94, __pyx_n_s_HT_TRENDMODE); + __Pyx_INCREF(__pyx_n_s_KAMA); + __Pyx_GIVEREF(__pyx_n_s_KAMA); + PyList_SET_ITEM(__pyx_t_4, 95, __pyx_n_s_KAMA); + __Pyx_INCREF(__pyx_n_s_LINEARREG); + __Pyx_GIVEREF(__pyx_n_s_LINEARREG); + PyList_SET_ITEM(__pyx_t_4, 96, __pyx_n_s_LINEARREG); + __Pyx_INCREF(__pyx_n_s_LINEARREG_ANGLE); + __Pyx_GIVEREF(__pyx_n_s_LINEARREG_ANGLE); + PyList_SET_ITEM(__pyx_t_4, 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_4, 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_4, 99, __pyx_n_s_LINEARREG_SLOPE); + __Pyx_INCREF(__pyx_n_s_LN); + __Pyx_GIVEREF(__pyx_n_s_LN); + PyList_SET_ITEM(__pyx_t_4, 100, __pyx_n_s_LN); + __Pyx_INCREF(__pyx_n_s_LOG10); + __Pyx_GIVEREF(__pyx_n_s_LOG10); + PyList_SET_ITEM(__pyx_t_4, 101, __pyx_n_s_LOG10); + __Pyx_INCREF(__pyx_n_s_MA); + __Pyx_GIVEREF(__pyx_n_s_MA); + PyList_SET_ITEM(__pyx_t_4, 102, __pyx_n_s_MA); + __Pyx_INCREF(__pyx_n_s_MACD); + __Pyx_GIVEREF(__pyx_n_s_MACD); + PyList_SET_ITEM(__pyx_t_4, 103, __pyx_n_s_MACD); + __Pyx_INCREF(__pyx_n_s_MACDEXT); + __Pyx_GIVEREF(__pyx_n_s_MACDEXT); + PyList_SET_ITEM(__pyx_t_4, 104, __pyx_n_s_MACDEXT); + __Pyx_INCREF(__pyx_n_s_MACDFIX); + __Pyx_GIVEREF(__pyx_n_s_MACDFIX); + PyList_SET_ITEM(__pyx_t_4, 105, __pyx_n_s_MACDFIX); + __Pyx_INCREF(__pyx_n_s_MAMA); + __Pyx_GIVEREF(__pyx_n_s_MAMA); + PyList_SET_ITEM(__pyx_t_4, 106, __pyx_n_s_MAMA); + __Pyx_INCREF(__pyx_n_s_MAVP); + __Pyx_GIVEREF(__pyx_n_s_MAVP); + PyList_SET_ITEM(__pyx_t_4, 107, __pyx_n_s_MAVP); + __Pyx_INCREF(__pyx_n_s_MAX); + __Pyx_GIVEREF(__pyx_n_s_MAX); + PyList_SET_ITEM(__pyx_t_4, 108, __pyx_n_s_MAX); + __Pyx_INCREF(__pyx_n_s_MAXINDEX); + __Pyx_GIVEREF(__pyx_n_s_MAXINDEX); + PyList_SET_ITEM(__pyx_t_4, 109, __pyx_n_s_MAXINDEX); + __Pyx_INCREF(__pyx_n_s_MEDPRICE); + __Pyx_GIVEREF(__pyx_n_s_MEDPRICE); + PyList_SET_ITEM(__pyx_t_4, 110, __pyx_n_s_MEDPRICE); + __Pyx_INCREF(__pyx_n_s_MFI); + __Pyx_GIVEREF(__pyx_n_s_MFI); + PyList_SET_ITEM(__pyx_t_4, 111, __pyx_n_s_MFI); + __Pyx_INCREF(__pyx_n_s_MIDPOINT); + __Pyx_GIVEREF(__pyx_n_s_MIDPOINT); + PyList_SET_ITEM(__pyx_t_4, 112, __pyx_n_s_MIDPOINT); + __Pyx_INCREF(__pyx_n_s_MIDPRICE); + __Pyx_GIVEREF(__pyx_n_s_MIDPRICE); + PyList_SET_ITEM(__pyx_t_4, 113, __pyx_n_s_MIDPRICE); + __Pyx_INCREF(__pyx_n_s_MIN); + __Pyx_GIVEREF(__pyx_n_s_MIN); + PyList_SET_ITEM(__pyx_t_4, 114, __pyx_n_s_MIN); + __Pyx_INCREF(__pyx_n_s_MININDEX); + __Pyx_GIVEREF(__pyx_n_s_MININDEX); + PyList_SET_ITEM(__pyx_t_4, 115, __pyx_n_s_MININDEX); + __Pyx_INCREF(__pyx_n_s_MINMAX); + __Pyx_GIVEREF(__pyx_n_s_MINMAX); + PyList_SET_ITEM(__pyx_t_4, 116, __pyx_n_s_MINMAX); + __Pyx_INCREF(__pyx_n_s_MINMAXINDEX); + __Pyx_GIVEREF(__pyx_n_s_MINMAXINDEX); + PyList_SET_ITEM(__pyx_t_4, 117, __pyx_n_s_MINMAXINDEX); + __Pyx_INCREF(__pyx_n_s_MINUS_DI); + __Pyx_GIVEREF(__pyx_n_s_MINUS_DI); + PyList_SET_ITEM(__pyx_t_4, 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_4, 119, __pyx_n_s_MINUS_DM); + __Pyx_INCREF(__pyx_n_s_MOM); + __Pyx_GIVEREF(__pyx_n_s_MOM); + PyList_SET_ITEM(__pyx_t_4, 120, __pyx_n_s_MOM); + __Pyx_INCREF(__pyx_n_s_MULT); + __Pyx_GIVEREF(__pyx_n_s_MULT); + PyList_SET_ITEM(__pyx_t_4, 121, __pyx_n_s_MULT); + __Pyx_INCREF(__pyx_n_s_NATR); + __Pyx_GIVEREF(__pyx_n_s_NATR); + PyList_SET_ITEM(__pyx_t_4, 122, __pyx_n_s_NATR); + __Pyx_INCREF(__pyx_n_s_OBV); + __Pyx_GIVEREF(__pyx_n_s_OBV); + PyList_SET_ITEM(__pyx_t_4, 123, __pyx_n_s_OBV); + __Pyx_INCREF(__pyx_n_s_PLUS_DI); + __Pyx_GIVEREF(__pyx_n_s_PLUS_DI); + PyList_SET_ITEM(__pyx_t_4, 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_4, 125, __pyx_n_s_PLUS_DM); + __Pyx_INCREF(__pyx_n_s_PPO); + __Pyx_GIVEREF(__pyx_n_s_PPO); + PyList_SET_ITEM(__pyx_t_4, 126, __pyx_n_s_PPO); + __Pyx_INCREF(__pyx_n_s_ROC); + __Pyx_GIVEREF(__pyx_n_s_ROC); + PyList_SET_ITEM(__pyx_t_4, 127, __pyx_n_s_ROC); + __Pyx_INCREF(__pyx_n_s_ROCP); + __Pyx_GIVEREF(__pyx_n_s_ROCP); + PyList_SET_ITEM(__pyx_t_4, 128, __pyx_n_s_ROCP); + __Pyx_INCREF(__pyx_n_s_ROCR); + __Pyx_GIVEREF(__pyx_n_s_ROCR); + PyList_SET_ITEM(__pyx_t_4, 129, __pyx_n_s_ROCR); + __Pyx_INCREF(__pyx_n_s_ROCR100); + __Pyx_GIVEREF(__pyx_n_s_ROCR100); + PyList_SET_ITEM(__pyx_t_4, 130, __pyx_n_s_ROCR100); + __Pyx_INCREF(__pyx_n_s_RSI); + __Pyx_GIVEREF(__pyx_n_s_RSI); + PyList_SET_ITEM(__pyx_t_4, 131, __pyx_n_s_RSI); + __Pyx_INCREF(__pyx_n_s_SAR); + __Pyx_GIVEREF(__pyx_n_s_SAR); + PyList_SET_ITEM(__pyx_t_4, 132, __pyx_n_s_SAR); + __Pyx_INCREF(__pyx_n_s_SAREXT); + __Pyx_GIVEREF(__pyx_n_s_SAREXT); + PyList_SET_ITEM(__pyx_t_4, 133, __pyx_n_s_SAREXT); + __Pyx_INCREF(__pyx_n_s_SIN); + __Pyx_GIVEREF(__pyx_n_s_SIN); + PyList_SET_ITEM(__pyx_t_4, 134, __pyx_n_s_SIN); + __Pyx_INCREF(__pyx_n_s_SINH); + __Pyx_GIVEREF(__pyx_n_s_SINH); + PyList_SET_ITEM(__pyx_t_4, 135, __pyx_n_s_SINH); + __Pyx_INCREF(__pyx_n_s_SMA); + __Pyx_GIVEREF(__pyx_n_s_SMA); + PyList_SET_ITEM(__pyx_t_4, 136, __pyx_n_s_SMA); + __Pyx_INCREF(__pyx_n_s_SQRT); + __Pyx_GIVEREF(__pyx_n_s_SQRT); + PyList_SET_ITEM(__pyx_t_4, 137, __pyx_n_s_SQRT); + __Pyx_INCREF(__pyx_n_s_STDDEV); + __Pyx_GIVEREF(__pyx_n_s_STDDEV); + PyList_SET_ITEM(__pyx_t_4, 138, __pyx_n_s_STDDEV); + __Pyx_INCREF(__pyx_n_s_STOCH); + __Pyx_GIVEREF(__pyx_n_s_STOCH); + PyList_SET_ITEM(__pyx_t_4, 139, __pyx_n_s_STOCH); + __Pyx_INCREF(__pyx_n_s_STOCHF); + __Pyx_GIVEREF(__pyx_n_s_STOCHF); + PyList_SET_ITEM(__pyx_t_4, 140, __pyx_n_s_STOCHF); + __Pyx_INCREF(__pyx_n_s_STOCHRSI); + __Pyx_GIVEREF(__pyx_n_s_STOCHRSI); + PyList_SET_ITEM(__pyx_t_4, 141, __pyx_n_s_STOCHRSI); + __Pyx_INCREF(__pyx_n_s_SUB); + __Pyx_GIVEREF(__pyx_n_s_SUB); + PyList_SET_ITEM(__pyx_t_4, 142, __pyx_n_s_SUB); + __Pyx_INCREF(__pyx_n_s_SUM); + __Pyx_GIVEREF(__pyx_n_s_SUM); + PyList_SET_ITEM(__pyx_t_4, 143, __pyx_n_s_SUM); + __Pyx_INCREF(__pyx_n_s_T3); + __Pyx_GIVEREF(__pyx_n_s_T3); + PyList_SET_ITEM(__pyx_t_4, 144, __pyx_n_s_T3); + __Pyx_INCREF(__pyx_n_s_TAN); + __Pyx_GIVEREF(__pyx_n_s_TAN); + PyList_SET_ITEM(__pyx_t_4, 145, __pyx_n_s_TAN); + __Pyx_INCREF(__pyx_n_s_TANH); + __Pyx_GIVEREF(__pyx_n_s_TANH); + PyList_SET_ITEM(__pyx_t_4, 146, __pyx_n_s_TANH); + __Pyx_INCREF(__pyx_n_s_TEMA); + __Pyx_GIVEREF(__pyx_n_s_TEMA); + PyList_SET_ITEM(__pyx_t_4, 147, __pyx_n_s_TEMA); + __Pyx_INCREF(__pyx_n_s_TRANGE); + __Pyx_GIVEREF(__pyx_n_s_TRANGE); + PyList_SET_ITEM(__pyx_t_4, 148, __pyx_n_s_TRANGE); + __Pyx_INCREF(__pyx_n_s_TRIMA); + __Pyx_GIVEREF(__pyx_n_s_TRIMA); + PyList_SET_ITEM(__pyx_t_4, 149, __pyx_n_s_TRIMA); + __Pyx_INCREF(__pyx_n_s_TRIX); + __Pyx_GIVEREF(__pyx_n_s_TRIX); + PyList_SET_ITEM(__pyx_t_4, 150, __pyx_n_s_TRIX); + __Pyx_INCREF(__pyx_n_s_TSF); + __Pyx_GIVEREF(__pyx_n_s_TSF); + PyList_SET_ITEM(__pyx_t_4, 151, __pyx_n_s_TSF); + __Pyx_INCREF(__pyx_n_s_TYPPRICE); + __Pyx_GIVEREF(__pyx_n_s_TYPPRICE); + PyList_SET_ITEM(__pyx_t_4, 152, __pyx_n_s_TYPPRICE); + __Pyx_INCREF(__pyx_n_s_ULTOSC); + __Pyx_GIVEREF(__pyx_n_s_ULTOSC); + PyList_SET_ITEM(__pyx_t_4, 153, __pyx_n_s_ULTOSC); + __Pyx_INCREF(__pyx_n_s_VAR); + __Pyx_GIVEREF(__pyx_n_s_VAR); + PyList_SET_ITEM(__pyx_t_4, 154, __pyx_n_s_VAR); + __Pyx_INCREF(__pyx_n_s_WCLPRICE); + __Pyx_GIVEREF(__pyx_n_s_WCLPRICE); + PyList_SET_ITEM(__pyx_t_4, 155, __pyx_n_s_WCLPRICE); + __Pyx_INCREF(__pyx_n_s_WILLR); + __Pyx_GIVEREF(__pyx_n_s_WILLR); + PyList_SET_ITEM(__pyx_t_4, 156, __pyx_n_s_WILLR); + __Pyx_INCREF(__pyx_n_s_WMA); + __Pyx_GIVEREF(__pyx_n_s_WMA); + PyList_SET_ITEM(__pyx_t_4, 157, __pyx_n_s_WMA); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_TA_FUNCTION_NAMES, __pyx_t_4) < 0) __PYX_ERR(5, 12, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 0; + + /* "talib/c_ta_lib.pyx":1 + * cimport c_ta_lib as lib # <<<<<<<<<<<<<< + * cimport numpy as np + * + */ + __pyx_t_4 = PyDict_New(); if (unlikely(!__pyx_t_4)) __PYX_ERR(5, 1, __pyx_L1_error) + __Pyx_GOTREF(__pyx_t_4); + if (PyDict_SetItem(__pyx_d, __pyx_n_s_test, __pyx_t_4) < 0) __PYX_ERR(5, 1, __pyx_L1_error) + __Pyx_DECREF(__pyx_t_4); __pyx_t_4 = 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_4); + __Pyx_XDECREF(__pyx_t_5); + __Pyx_XDECREF(__pyx_t_6); + __Pyx_XDECREF(__pyx_t_7); + __Pyx_XDECREF(__pyx_t_8); + __Pyx_XDECREF(__pyx_t_9); + __Pyx_XDECREF(__pyx_t_10); + __Pyx_XDECREF(__pyx_t_11); + __Pyx_XDECREF(__pyx_t_12); + __Pyx_XDECREF(__pyx_t_13); + __Pyx_XDECREF(__pyx_t_14); + __Pyx_XDECREF(__pyx_t_15); + if (__pyx_m) { + if (__pyx_d) { + __Pyx_AddTraceback("init talib.c_ta_lib", __pyx_clineno, __pyx_lineno, __pyx_filename); + } + Py_DECREF(__pyx_m); __pyx_m = 0; + } else if (!PyErr_Occurred()) { + PyErr_SetString(PyExc_ImportError, "init talib.c_ta_lib"); + } + __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; +} + +/* 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 + +/* 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; +} + +/* 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; +} + +/* 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; +} + +/* 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; +} + +/* PyObjectCallMethO */ + #if CYTHON_COMPILING_IN_CPYTHON +static CYTHON_INLINE PyObject* __Pyx_PyObject_CallMethO(PyObject *func, PyObject *arg) { + PyObject *self, *result; + PyCFunction cfunc; + cfunc = PyCFunction_GET_FUNCTION(func); + self = PyCFunction_GET_SELF(func); + if (unlikely(Py_EnterRecursiveCall((char*)" while calling a Python object"))) + return NULL; + result = cfunc(self, arg); + Py_LeaveRecursiveCall(); + if (unlikely(!result) && unlikely(!PyErr_Occurred())) { + PyErr_SetString( + PyExc_SystemError, + "NULL result without error in PyObject_Call"); + } + return result; +} +#endif + +/* PyObjectCallOneArg */ + #if CYTHON_COMPILING_IN_CPYTHON +static PyObject* __Pyx__PyObject_CallOneArg(PyObject *func, PyObject *arg) { + PyObject *result; + PyObject *args = PyTuple_New(1); + if (unlikely(!args)) return NULL; + Py_INCREF(arg); + PyTuple_SET_ITEM(args, 0, arg); + result = __Pyx_PyObject_Call(func, args, NULL); + Py_DECREF(args); + return result; +} +static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObject *arg) { +#ifdef __Pyx_CyFunction_USED + if (likely(PyCFunction_Check(func) || PyObject_TypeCheck(func, __pyx_CyFunctionType))) { +#else + if (likely(PyCFunction_Check(func))) { +#endif + if (likely(PyCFunction_GET_FLAGS(func) & METH_O)) { + return __Pyx_PyObject_CallMethO(func, arg); + } + } + return __Pyx__PyObject_CallOneArg(func, arg); +} +#else +static CYTHON_INLINE PyObject* __Pyx_PyObject_CallOneArg(PyObject *func, PyObject *arg) { + PyObject *result; + PyObject *args = PyTuple_Pack(1, arg); + if (unlikely(!args)) return NULL; + result = __Pyx_PyObject_Call(func, args, NULL); + Py_DECREF(args); + return result; +} +#endif + +/* PyObjectCallNoArg */ + #if CYTHON_COMPILING_IN_CPYTHON +static CYTHON_INLINE PyObject* __Pyx_PyObject_CallNoArg(PyObject *func) { +#ifdef __Pyx_CyFunction_USED + if (likely(PyCFunction_Check(func) || PyObject_TypeCheck(func, __pyx_CyFunctionType))) { +#else + if (likely(PyCFunction_Check(func))) { +#endif + if (likely(PyCFunction_GET_FLAGS(func) & METH_NOARGS)) { + return __Pyx_PyObject_CallMethO(func, NULL); + } + } + return __Pyx_PyObject_Call(func, __pyx_empty_tuple, NULL); +} +#endif + +/* 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"); +} + +/* IterFinish */ + static CYTHON_INLINE int __Pyx_IterFinish(void) { +#if CYTHON_COMPILING_IN_CPYTHON + PyThreadState *tstate = PyThreadState_GET(); + PyObject* exc_type = tstate->curexc_type; + if (unlikely(exc_type)) { + if (likely(exc_type == PyExc_StopIteration) || PyErr_GivenExceptionMatches(exc_type, PyExc_StopIteration)) { + PyObject *exc_value, *exc_tb; + exc_value = tstate->curexc_value; + exc_tb = tstate->curexc_traceback; + tstate->curexc_type = 0; + tstate->curexc_value = 0; + tstate->curexc_traceback = 0; + Py_DECREF(exc_type); + Py_XDECREF(exc_value); + Py_XDECREF(exc_tb); + return 0; + } else { + return -1; + } + } + return 0; +#else + if (unlikely(PyErr_Occurred())) { + if (likely(PyErr_ExceptionMatches(PyExc_StopIteration))) { + PyErr_Clear(); + return 0; + } else { + return -1; + } + } + return 0; +#endif +} + +/* UnpackItemEndCheck */ + static int __Pyx_IternextUnpackEndCheck(PyObject *retval, Py_ssize_t expected) { + if (unlikely(retval)) { + Py_DECREF(retval); + __Pyx_RaiseTooManyValuesError(expected); + return -1; + } else { + return __Pyx_IterFinish(); + } + return 0; +} + +/* StringJoin */ + #if !CYTHON_COMPILING_IN_CPYTHON +static CYTHON_INLINE PyObject* __Pyx_PyBytes_Join(PyObject* sep, PyObject* values) { + return PyObject_CallMethodObjArgs(sep, __pyx_n_s_join, values, NULL); +} +#endif + +/* PyObjectCallMethod0 */ + static PyObject* __Pyx_PyObject_CallMethod0(PyObject* obj, PyObject* method_name) { + PyObject *method, *result = NULL; + method = __Pyx_PyObject_GetAttrStr(obj, method_name); + if (unlikely(!method)) goto bad; +#if CYTHON_COMPILING_IN_CPYTHON + if (likely(PyMethod_Check(method))) { + PyObject *self = PyMethod_GET_SELF(method); + if (likely(self)) { + PyObject *function = PyMethod_GET_FUNCTION(method); + result = __Pyx_PyObject_CallOneArg(function, self); + Py_DECREF(method); + return result; + } + } +#endif + result = __Pyx_PyObject_CallNoArg(method); + Py_DECREF(method); +bad: + return result; +} + +/* RaiseNoneIterError */ + static CYTHON_INLINE void __Pyx_RaiseNoneNotIterableError(void) { + PyErr_SetString(PyExc_TypeError, "'NoneType' object is not iterable"); +} + +/* UnpackTupleError */ + static void __Pyx_UnpackTupleError(PyObject *t, Py_ssize_t index) { + if (t == Py_None) { + __Pyx_RaiseNoneNotIterableError(); + } else if (PyTuple_GET_SIZE(t) < index) { + __Pyx_RaiseNeedMoreValuesError(PyTuple_GET_SIZE(t)); + } else { + __Pyx_RaiseTooManyValuesError(index); + } +} + +/* UnpackTuple2 */ + static CYTHON_INLINE int __Pyx_unpack_tuple2(PyObject* tuple, PyObject** pvalue1, PyObject** pvalue2, + int is_tuple, int has_known_size, int decref_tuple) { + Py_ssize_t index; + PyObject *value1 = NULL, *value2 = NULL, *iter = NULL; + if (!is_tuple && unlikely(!PyTuple_Check(tuple))) { + iternextfunc iternext; + iter = PyObject_GetIter(tuple); + if (unlikely(!iter)) goto bad; + if (decref_tuple) { Py_DECREF(tuple); tuple = NULL; } + iternext = Py_TYPE(iter)->tp_iternext; + value1 = iternext(iter); if (unlikely(!value1)) { index = 0; goto unpacking_failed; } + value2 = iternext(iter); if (unlikely(!value2)) { index = 1; goto unpacking_failed; } + if (!has_known_size && unlikely(__Pyx_IternextUnpackEndCheck(iternext(iter), 2))) goto bad; + Py_DECREF(iter); + } else { + if (!has_known_size && unlikely(PyTuple_GET_SIZE(tuple) != 2)) { + __Pyx_UnpackTupleError(tuple, 2); + goto bad; + } +#if CYTHON_COMPILING_IN_PYPY + value1 = PySequence_ITEM(tuple, 0); + if (unlikely(!value1)) goto bad; + value2 = PySequence_ITEM(tuple, 1); + if (unlikely(!value2)) goto bad; +#else + value1 = PyTuple_GET_ITEM(tuple, 0); + value2 = PyTuple_GET_ITEM(tuple, 1); + Py_INCREF(value1); + Py_INCREF(value2); +#endif + if (decref_tuple) { Py_DECREF(tuple); } + } + *pvalue1 = value1; + *pvalue2 = value2; + return 0; +unpacking_failed: + if (!has_known_size && __Pyx_IterFinish() == 0) + __Pyx_RaiseNeedMoreValuesError(index); +bad: + Py_XDECREF(iter); + Py_XDECREF(value1); + Py_XDECREF(value2); + if (decref_tuple) { Py_XDECREF(tuple); } + return -1; +} + +/* dict_iter */ + static CYTHON_INLINE PyObject* __Pyx_dict_iterator(PyObject* iterable, int is_dict, PyObject* method_name, + Py_ssize_t* p_orig_length, int* p_source_is_dict) { + is_dict = is_dict || likely(PyDict_CheckExact(iterable)); + *p_source_is_dict = is_dict; +#if !CYTHON_COMPILING_IN_PYPY + if (is_dict) { + *p_orig_length = PyDict_Size(iterable); + Py_INCREF(iterable); + return iterable; + } +#endif + *p_orig_length = 0; + if (method_name) { + PyObject* iter; + iterable = __Pyx_PyObject_CallMethod0(iterable, method_name); + if (!iterable) + return NULL; +#if !CYTHON_COMPILING_IN_PYPY + if (PyTuple_CheckExact(iterable) || PyList_CheckExact(iterable)) + return iterable; +#endif + iter = PyObject_GetIter(iterable); + Py_DECREF(iterable); + return iter; + } + return PyObject_GetIter(iterable); +} +static CYTHON_INLINE int __Pyx_dict_iter_next( + PyObject* iter_obj, CYTHON_NCP_UNUSED Py_ssize_t orig_length, CYTHON_NCP_UNUSED Py_ssize_t* ppos, + PyObject** pkey, PyObject** pvalue, PyObject** pitem, int source_is_dict) { + PyObject* next_item; +#if !CYTHON_COMPILING_IN_PYPY + if (source_is_dict) { + PyObject *key, *value; + if (unlikely(orig_length != PyDict_Size(iter_obj))) { + PyErr_SetString(PyExc_RuntimeError, "dictionary changed size during iteration"); + return -1; + } + if (unlikely(!PyDict_Next(iter_obj, ppos, &key, &value))) { + return 0; + } + if (pitem) { + PyObject* tuple = PyTuple_New(2); + if (unlikely(!tuple)) { + return -1; + } + Py_INCREF(key); + Py_INCREF(value); + PyTuple_SET_ITEM(tuple, 0, key); + PyTuple_SET_ITEM(tuple, 1, value); + *pitem = tuple; + } else { + if (pkey) { + Py_INCREF(key); + *pkey = key; + } + if (pvalue) { + Py_INCREF(value); + *pvalue = value; + } + } + return 1; + } else if (PyTuple_CheckExact(iter_obj)) { + Py_ssize_t pos = *ppos; + if (unlikely(pos >= PyTuple_GET_SIZE(iter_obj))) return 0; + *ppos = pos + 1; + next_item = PyTuple_GET_ITEM(iter_obj, pos); + Py_INCREF(next_item); + } else if (PyList_CheckExact(iter_obj)) { + Py_ssize_t pos = *ppos; + if (unlikely(pos >= PyList_GET_SIZE(iter_obj))) return 0; + *ppos = pos + 1; + next_item = PyList_GET_ITEM(iter_obj, pos); + Py_INCREF(next_item); + } else +#endif + { + next_item = PyIter_Next(iter_obj); + if (unlikely(!next_item)) { + return __Pyx_IterFinish(); + } + } + if (pitem) { + *pitem = next_item; + } else if (pkey && pvalue) { + if (__Pyx_unpack_tuple2(next_item, pkey, pvalue, source_is_dict, source_is_dict, 1)) + return -1; + } else if (pkey) { + *pkey = next_item; + } else { + *pvalue = next_item; + } + return 1; +} + +/* GetItemInt */ + static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Generic(PyObject *o, PyObject* j) { + PyObject *r; + if (!j) return NULL; + r = PyObject_GetItem(o, j); + Py_DECREF(j); + return r; +} +static CYTHON_INLINE PyObject *__Pyx_GetItemInt_List_Fast(PyObject *o, Py_ssize_t i, + CYTHON_NCP_UNUSED int wraparound, + CYTHON_NCP_UNUSED int boundscheck) { +#if CYTHON_COMPILING_IN_CPYTHON + if (wraparound & unlikely(i < 0)) i += PyList_GET_SIZE(o); + if ((!boundscheck) || likely((0 <= i) & (i < PyList_GET_SIZE(o)))) { + PyObject *r = PyList_GET_ITEM(o, i); + Py_INCREF(r); + return r; + } + return __Pyx_GetItemInt_Generic(o, PyInt_FromSsize_t(i)); +#else + return PySequence_GetItem(o, i); +#endif +} +static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Tuple_Fast(PyObject *o, Py_ssize_t i, + CYTHON_NCP_UNUSED int wraparound, + CYTHON_NCP_UNUSED int boundscheck) { +#if CYTHON_COMPILING_IN_CPYTHON + if (wraparound & unlikely(i < 0)) i += PyTuple_GET_SIZE(o); + if ((!boundscheck) || likely((0 <= i) & (i < PyTuple_GET_SIZE(o)))) { + PyObject *r = PyTuple_GET_ITEM(o, i); + Py_INCREF(r); + return r; + } + return __Pyx_GetItemInt_Generic(o, PyInt_FromSsize_t(i)); +#else + return PySequence_GetItem(o, i); +#endif +} +static CYTHON_INLINE PyObject *__Pyx_GetItemInt_Fast(PyObject *o, Py_ssize_t i, int is_list, + CYTHON_NCP_UNUSED int wraparound, + CYTHON_NCP_UNUSED int boundscheck) { +#if CYTHON_COMPILING_IN_CPYTHON + if (is_list || PyList_CheckExact(o)) { + Py_ssize_t n = ((!wraparound) | likely(i >= 0)) ? i : i + PyList_GET_SIZE(o); + if ((!boundscheck) || (likely((n >= 0) & (n < PyList_GET_SIZE(o))))) { + PyObject *r = PyList_GET_ITEM(o, n); + Py_INCREF(r); + return r; + } + } + else if (PyTuple_CheckExact(o)) { + Py_ssize_t n = ((!wraparound) | likely(i >= 0)) ? i : i + PyTuple_GET_SIZE(o); + if ((!boundscheck) || likely((n >= 0) & (n < PyTuple_GET_SIZE(o)))) { + PyObject *r = PyTuple_GET_ITEM(o, n); + Py_INCREF(r); + return r; + } + } else { + PySequenceMethods *m = Py_TYPE(o)->tp_as_sequence; + if (likely(m && m->sq_item)) { + if (wraparound && unlikely(i < 0) && likely(m->sq_length)) { + Py_ssize_t l = m->sq_length(o); + if (likely(l >= 0)) { + i += l; + } else { + if (!PyErr_ExceptionMatches(PyExc_OverflowError)) + return NULL; + PyErr_Clear(); + } + } + return m->sq_item(o, i); + } + } +#else + if (is_list || PySequence_Check(o)) { + return PySequence_GetItem(o, i); + } +#endif + return __Pyx_GetItemInt_Generic(o, PyInt_FromSsize_t(i)); +} + +/* PyIntBinop */ + #if CYTHON_COMPILING_IN_CPYTHON +static PyObject* __Pyx_PyInt_AddObjC(PyObject *op1, PyObject *op2, CYTHON_UNUSED long intval, CYTHON_UNUSED int inplace) { + #if PY_MAJOR_VERSION < 3 + if (likely(PyInt_CheckExact(op1))) { + const long b = intval; + long x; + long a = PyInt_AS_LONG(op1); + x = (long)((unsigned long)a + b); + if (likely((x^a) >= 0 || (x^b) >= 0)) + return PyInt_FromLong(x); + return PyLong_Type.tp_as_number->nb_add(op1, op2); + } + #endif + #if CYTHON_USE_PYLONG_INTERNALS && PY_MAJOR_VERSION >= 3 + if (likely(PyLong_CheckExact(op1))) { + const long b = intval; + long a, x; + const PY_LONG_LONG llb = intval; + PY_LONG_LONG lla, llx; + const digit* digits = ((PyLongObject*)op1)->ob_digit; + const Py_ssize_t size = Py_SIZE(op1); + if (likely(__Pyx_sst_abs(size) <= 1)) { + a = likely(size) ? digits[0] : 0; + if (size == -1) a = -a; + } else { + switch (size) { + case -2: + if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) { + a = -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); + break; + } else if (8 * sizeof(PY_LONG_LONG) - 1 > 2 * PyLong_SHIFT) { + lla = -(PY_LONG_LONG) (((((unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0])); + goto long_long; + } + case 2: + if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) { + a = (long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); + break; + } else if (8 * sizeof(PY_LONG_LONG) - 1 > 2 * PyLong_SHIFT) { + lla = (PY_LONG_LONG) (((((unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0])); + goto long_long; + } + case -3: + if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) { + a = -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); + break; + } else if (8 * sizeof(PY_LONG_LONG) - 1 > 3 * PyLong_SHIFT) { + lla = -(PY_LONG_LONG) (((((((unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0])); + goto long_long; + } + case 3: + if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) { + a = (long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); + break; + } else if (8 * sizeof(PY_LONG_LONG) - 1 > 3 * PyLong_SHIFT) { + lla = (PY_LONG_LONG) (((((((unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0])); + goto long_long; + } + case -4: + if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) { + a = -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); + break; + } else if (8 * sizeof(PY_LONG_LONG) - 1 > 4 * PyLong_SHIFT) { + lla = -(PY_LONG_LONG) (((((((((unsigned PY_LONG_LONG)digits[3]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0])); + goto long_long; + } + case 4: + if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) { + a = (long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); + break; + } else if (8 * sizeof(PY_LONG_LONG) - 1 > 4 * PyLong_SHIFT) { + lla = (PY_LONG_LONG) (((((((((unsigned PY_LONG_LONG)digits[3]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0])); + goto long_long; + } + default: return PyLong_Type.tp_as_number->nb_add(op1, op2); + } + } + x = a + b; + return PyLong_FromLong(x); + long_long: + llx = lla + llb; + return PyLong_FromLongLong(llx); + } + #endif + if (PyFloat_CheckExact(op1)) { + const long b = intval; + double a = PyFloat_AS_DOUBLE(op1); + double result; + PyFPE_START_PROTECT("add", return NULL) + result = ((double)a) + (double)b; + PyFPE_END_PROTECT(result) + return PyFloat_FromDouble(result); + } + return (inplace ? PyNumber_InPlaceAdd : PyNumber_Add)(op1, op2); +} +#endif + +/* UnpackUnboundCMethod */ + static int __Pyx_TryUnpackUnboundCMethod(__Pyx_CachedCFunction* target) { + PyObject *method; + method = __Pyx_PyObject_GetAttrStr(target->type, *target->method_name); + if (unlikely(!method)) + return -1; + target->method = method; +#if CYTHON_COMPILING_IN_CPYTHON + #if PY_MAJOR_VERSION >= 3 + if (likely(PyObject_TypeCheck(method, &PyMethodDescr_Type))) + #endif + { + PyMethodDescrObject *descr = (PyMethodDescrObject*) method; + target->func = descr->d_method->ml_meth; + target->flag = descr->d_method->ml_flags & (METH_VARARGS | METH_KEYWORDS | METH_O | METH_NOARGS); + } +#endif + return 0; +} + +/* CallUnboundCMethod0 */ + static PyObject* __Pyx__CallUnboundCMethod0(__Pyx_CachedCFunction* cfunc, PyObject* self) { + PyObject *args, *result = NULL; + if (unlikely(!cfunc->method) && unlikely(__Pyx_TryUnpackUnboundCMethod(cfunc) < 0)) return NULL; +#if CYTHON_COMPILING_IN_CPYTHON + args = PyTuple_New(1); + if (unlikely(!args)) goto bad; + Py_INCREF(self); + PyTuple_SET_ITEM(args, 0, self); +#else + args = PyTuple_Pack(1, self); + if (unlikely(!args)) goto bad; +#endif + result = __Pyx_PyObject_Call(cfunc->method, args, NULL); + Py_DECREF(args); +bad: + return result; +} + +/* py_dict_keys */ + static CYTHON_INLINE PyObject* __Pyx_PyDict_Keys(PyObject* d) { + if (PY_MAJOR_VERSION >= 3) + return __Pyx_CallUnboundCMethod0(&__pyx_umethod_PyDict_Type_keys, d); + else + return PyDict_Keys(d); +} + +/* PyNumberPow2 */ + static PyObject* __Pyx__PyNumber_PowerOf2(PyObject *two, PyObject *exp, PyObject *none, int inplace) { +#if CYTHON_COMPILING_IN_CPYTHON + Py_ssize_t shiftby; +#if PY_MAJOR_VERSION < 3 + if (likely(PyInt_CheckExact(exp))) { + shiftby = PyInt_AS_LONG(exp); + } else +#endif + if (likely(PyLong_CheckExact(exp))) { + #if CYTHON_USE_PYLONG_INTERNALS + const Py_ssize_t size = Py_SIZE(exp); + if (likely(size == 1)) { + shiftby = ((PyLongObject*)exp)->ob_digit[0]; + } else if (size == 0) { + return PyInt_FromLong(1L); + } else if (unlikely(size < 0)) { + goto fallback; + } else { + shiftby = PyLong_AsSsize_t(exp); + } + #else + shiftby = PyLong_AsSsize_t(exp); + #endif + } else { + goto fallback; + } + if (likely(shiftby >= 0)) { + if ((size_t)shiftby <= sizeof(long) * 8 - 2) { + long value = 1L << shiftby; + return PyInt_FromLong(value); + } else if ((size_t)shiftby <= sizeof(unsigned PY_LONG_LONG) * 8 - 1) { + unsigned PY_LONG_LONG value = ((unsigned PY_LONG_LONG)1) << shiftby; + return PyLong_FromUnsignedLongLong(value); + } else { + PyObject *one = PyInt_FromLong(1L); + if (unlikely(!one)) return NULL; + return PyNumber_Lshift(one, exp); + } + } else if (shiftby == -1 && PyErr_Occurred()) { + PyErr_Clear(); + } +fallback: +#endif + return (inplace ? PyNumber_InPlacePower : PyNumber_Power)(two, exp, none); +} + +/* SliceObject */ + static CYTHON_INLINE PyObject* __Pyx_PyObject_GetSlice(PyObject* obj, + Py_ssize_t cstart, Py_ssize_t cstop, + PyObject** _py_start, PyObject** _py_stop, PyObject** _py_slice, + int has_cstart, int has_cstop, CYTHON_UNUSED int wraparound) { +#if CYTHON_COMPILING_IN_CPYTHON + PyMappingMethods* mp; +#if PY_MAJOR_VERSION < 3 + PySequenceMethods* ms = Py_TYPE(obj)->tp_as_sequence; + if (likely(ms && ms->sq_slice)) { + if (!has_cstart) { + if (_py_start && (*_py_start != Py_None)) { + cstart = __Pyx_PyIndex_AsSsize_t(*_py_start); + if ((cstart == (Py_ssize_t)-1) && PyErr_Occurred()) goto bad; + } else + cstart = 0; + } + if (!has_cstop) { + if (_py_stop && (*_py_stop != Py_None)) { + cstop = __Pyx_PyIndex_AsSsize_t(*_py_stop); + if ((cstop == (Py_ssize_t)-1) && PyErr_Occurred()) goto bad; + } else + cstop = PY_SSIZE_T_MAX; + } + if (wraparound && unlikely((cstart < 0) | (cstop < 0)) && likely(ms->sq_length)) { + Py_ssize_t l = ms->sq_length(obj); + if (likely(l >= 0)) { + if (cstop < 0) { + cstop += l; + if (cstop < 0) cstop = 0; + } + if (cstart < 0) { + cstart += l; + if (cstart < 0) cstart = 0; + } + } else { + if (!PyErr_ExceptionMatches(PyExc_OverflowError)) + goto bad; + PyErr_Clear(); + } + } + return ms->sq_slice(obj, cstart, cstop); + } +#endif + mp = Py_TYPE(obj)->tp_as_mapping; + if (likely(mp && mp->mp_subscript)) +#endif + { + PyObject* result; + PyObject *py_slice, *py_start, *py_stop; + if (_py_slice) { + py_slice = *_py_slice; + } else { + PyObject* owned_start = NULL; + PyObject* owned_stop = NULL; + if (_py_start) { + py_start = *_py_start; + } else { + if (has_cstart) { + owned_start = py_start = PyInt_FromSsize_t(cstart); + if (unlikely(!py_start)) goto bad; + } else + py_start = Py_None; + } + if (_py_stop) { + py_stop = *_py_stop; + } else { + if (has_cstop) { + owned_stop = py_stop = PyInt_FromSsize_t(cstop); + if (unlikely(!py_stop)) { + Py_XDECREF(owned_start); + goto bad; + } + } else + py_stop = Py_None; + } + py_slice = PySlice_New(py_start, py_stop, Py_None); + Py_XDECREF(owned_start); + Py_XDECREF(owned_stop); + if (unlikely(!py_slice)) goto bad; + } +#if CYTHON_COMPILING_IN_CPYTHON + result = mp->mp_subscript(obj, py_slice); +#else + result = PyObject_GetItem(obj, py_slice); +#endif + if (!_py_slice) { + Py_DECREF(py_slice); + } + return result; + } + PyErr_Format(PyExc_TypeError, + "'%.200s' object is unsliceable", Py_TYPE(obj)->tp_name); +bad: + return NULL; +} + +/* PyIntBinop */ + #if CYTHON_COMPILING_IN_CPYTHON +static PyObject* __Pyx_PyInt_EqObjC(PyObject *op1, PyObject *op2, CYTHON_UNUSED long intval, CYTHON_UNUSED int inplace) { + if (op1 == op2) { + Py_RETURN_TRUE; + } + #if PY_MAJOR_VERSION < 3 + if (likely(PyInt_CheckExact(op1))) { + const long b = intval; + long a = PyInt_AS_LONG(op1); + if (a == b) { + Py_RETURN_TRUE; + } else { + Py_RETURN_FALSE; + } + } + #endif + #if CYTHON_USE_PYLONG_INTERNALS && PY_MAJOR_VERSION >= 3 + if (likely(PyLong_CheckExact(op1))) { + const long b = intval; + long a; + const digit* digits = ((PyLongObject*)op1)->ob_digit; + const Py_ssize_t size = Py_SIZE(op1); + if (likely(__Pyx_sst_abs(size) <= 1)) { + a = likely(size) ? digits[0] : 0; + if (size == -1) a = -a; + } else { + switch (size) { + case -2: + if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) { + a = -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); + break; + } + case 2: + if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) { + a = (long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); + break; + } + case -3: + if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) { + a = -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); + break; + } + case 3: + if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) { + a = (long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); + break; + } + case -4: + if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) { + a = -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); + break; + } + case 4: + if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) { + a = (long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); + break; + } + #if PyLong_SHIFT < 30 && PyLong_SHIFT != 15 + default: return PyLong_Type.tp_richcompare(op1, op2, Py_EQ); + #else + default: Py_RETURN_FALSE; + #endif + } + } + if (a == b) { + Py_RETURN_TRUE; + } else { + Py_RETURN_FALSE; + } + } + #endif + if (PyFloat_CheckExact(op1)) { + const long b = intval; + double a = PyFloat_AS_DOUBLE(op1); + if ((double)a == (double)b) { + Py_RETURN_TRUE; + } else { + Py_RETURN_FALSE; + } + } + return PyObject_RichCompare(op1, op2, Py_EQ); +} +#endif + +/* PyIntBinop */ + #if CYTHON_COMPILING_IN_CPYTHON +static PyObject* __Pyx_PyInt_RemainderObjC(PyObject *op1, PyObject *op2, CYTHON_UNUSED long intval, CYTHON_UNUSED int inplace) { + #if PY_MAJOR_VERSION < 3 + if (likely(PyInt_CheckExact(op1))) { + const long b = intval; + long x; + long a = PyInt_AS_LONG(op1); + x = a % b; + x += ((x != 0) & ((x ^ b) < 0)) * b; + return PyInt_FromLong(x); + } + #endif + #if CYTHON_USE_PYLONG_INTERNALS && PY_MAJOR_VERSION >= 3 + if (likely(PyLong_CheckExact(op1))) { + const long b = intval; + long a, x; + const PY_LONG_LONG llb = intval; + PY_LONG_LONG lla, llx; + const digit* digits = ((PyLongObject*)op1)->ob_digit; + const Py_ssize_t size = Py_SIZE(op1); + if (likely(__Pyx_sst_abs(size) <= 1)) { + a = likely(size) ? digits[0] : 0; + if (size == -1) a = -a; + } else { + switch (size) { + case -2: + if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) { + a = -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); + break; + } else if (8 * sizeof(PY_LONG_LONG) - 1 > 2 * PyLong_SHIFT) { + lla = -(PY_LONG_LONG) (((((unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0])); + goto long_long; + } + case 2: + if (8 * sizeof(long) - 1 > 2 * PyLong_SHIFT) { + a = (long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); + break; + } else if (8 * sizeof(PY_LONG_LONG) - 1 > 2 * PyLong_SHIFT) { + lla = (PY_LONG_LONG) (((((unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0])); + goto long_long; + } + case -3: + if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) { + a = -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); + break; + } else if (8 * sizeof(PY_LONG_LONG) - 1 > 3 * PyLong_SHIFT) { + lla = -(PY_LONG_LONG) (((((((unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0])); + goto long_long; + } + case 3: + if (8 * sizeof(long) - 1 > 3 * PyLong_SHIFT) { + a = (long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); + break; + } else if (8 * sizeof(PY_LONG_LONG) - 1 > 3 * PyLong_SHIFT) { + lla = (PY_LONG_LONG) (((((((unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0])); + goto long_long; + } + case -4: + if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) { + a = -(long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); + break; + } else if (8 * sizeof(PY_LONG_LONG) - 1 > 4 * PyLong_SHIFT) { + lla = -(PY_LONG_LONG) (((((((((unsigned PY_LONG_LONG)digits[3]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0])); + goto long_long; + } + case 4: + if (8 * sizeof(long) - 1 > 4 * PyLong_SHIFT) { + a = (long) (((((((((unsigned long)digits[3]) << PyLong_SHIFT) | (unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0])); + break; + } else if (8 * sizeof(PY_LONG_LONG) - 1 > 4 * PyLong_SHIFT) { + lla = (PY_LONG_LONG) (((((((((unsigned PY_LONG_LONG)digits[3]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[2]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[1]) << PyLong_SHIFT) | (unsigned PY_LONG_LONG)digits[0])); + goto long_long; + } + default: return PyLong_Type.tp_as_number->nb_remainder(op1, op2); + } + } + x = a % b; + x += ((x != 0) & ((x ^ b) < 0)) * b; + return PyLong_FromLong(x); + long_long: + llx = lla % llb; + llx += ((llx != 0) & ((llx ^ llb) < 0)) * llb; + return PyLong_FromLongLong(llx); + } + #endif + return (inplace ? PyNumber_InPlaceRemainder : PyNumber_Remainder)(op1, op2); +} +#endif + +/* BytesEquals */ + static CYTHON_INLINE int __Pyx_PyBytes_Equals(PyObject* s1, PyObject* s2, int equals) { +#if CYTHON_COMPILING_IN_PYPY + return PyObject_RichCompareBool(s1, s2, equals); +#else + if (s1 == s2) { + return (equals == Py_EQ); + } else if (PyBytes_CheckExact(s1) & PyBytes_CheckExact(s2)) { + const char *ps1, *ps2; + Py_ssize_t length = PyBytes_GET_SIZE(s1); + if (length != PyBytes_GET_SIZE(s2)) + return (equals == Py_NE); + ps1 = PyBytes_AS_STRING(s1); + ps2 = PyBytes_AS_STRING(s2); + if (ps1[0] != ps2[0]) { + return (equals == Py_NE); + } else if (length == 1) { + return (equals == Py_EQ); + } else { + int result = memcmp(ps1, ps2, (size_t)length); + return (equals == Py_EQ) ? (result == 0) : (result != 0); + } + } else if ((s1 == Py_None) & PyBytes_CheckExact(s2)) { + return (equals == Py_NE); + } else if ((s2 == Py_None) & PyBytes_CheckExact(s1)) { + return (equals == Py_NE); + } else { + int result; + PyObject* py_result = PyObject_RichCompare(s1, s2, equals); + if (!py_result) + return -1; + result = __Pyx_PyObject_IsTrue(py_result); + Py_DECREF(py_result); + return result; + } +#endif +} + +/* UnicodeEquals */ + static CYTHON_INLINE int __Pyx_PyUnicode_Equals(PyObject* s1, PyObject* s2, int equals) { +#if CYTHON_COMPILING_IN_PYPY + return PyObject_RichCompareBool(s1, s2, equals); +#else +#if PY_MAJOR_VERSION < 3 + PyObject* owned_ref = NULL; +#endif + int s1_is_unicode, s2_is_unicode; + if (s1 == s2) { + goto return_eq; + } + s1_is_unicode = PyUnicode_CheckExact(s1); + s2_is_unicode = PyUnicode_CheckExact(s2); +#if PY_MAJOR_VERSION < 3 + if ((s1_is_unicode & (!s2_is_unicode)) && PyString_CheckExact(s2)) { + owned_ref = PyUnicode_FromObject(s2); + if (unlikely(!owned_ref)) + return -1; + s2 = owned_ref; + s2_is_unicode = 1; + } else if ((s2_is_unicode & (!s1_is_unicode)) && PyString_CheckExact(s1)) { + owned_ref = PyUnicode_FromObject(s1); + if (unlikely(!owned_ref)) + return -1; + s1 = owned_ref; + s1_is_unicode = 1; + } else if (((!s2_is_unicode) & (!s1_is_unicode))) { + return __Pyx_PyBytes_Equals(s1, s2, equals); + } +#endif + if (s1_is_unicode & s2_is_unicode) { + Py_ssize_t length; + int kind; + void *data1, *data2; + if (unlikely(__Pyx_PyUnicode_READY(s1) < 0) || unlikely(__Pyx_PyUnicode_READY(s2) < 0)) + return -1; + length = __Pyx_PyUnicode_GET_LENGTH(s1); + if (length != __Pyx_PyUnicode_GET_LENGTH(s2)) { + goto return_ne; + } + kind = __Pyx_PyUnicode_KIND(s1); + if (kind != __Pyx_PyUnicode_KIND(s2)) { + goto return_ne; + } + data1 = __Pyx_PyUnicode_DATA(s1); + data2 = __Pyx_PyUnicode_DATA(s2); + if (__Pyx_PyUnicode_READ(kind, data1, 0) != __Pyx_PyUnicode_READ(kind, data2, 0)) { + goto return_ne; + } else if (length == 1) { + goto return_eq; + } else { + int result = memcmp(data1, data2, (size_t)(length * kind)); + #if PY_MAJOR_VERSION < 3 + Py_XDECREF(owned_ref); + #endif + return (equals == Py_EQ) ? (result == 0) : (result != 0); + } + } else if ((s1 == Py_None) & s2_is_unicode) { + goto return_ne; + } else if ((s2 == Py_None) & s1_is_unicode) { + goto return_ne; + } else { + int result; + PyObject* py_result = PyObject_RichCompare(s1, s2, equals); + if (!py_result) + return -1; + result = __Pyx_PyObject_IsTrue(py_result); + Py_DECREF(py_result); + return result; + } +return_eq: + #if PY_MAJOR_VERSION < 3 + Py_XDECREF(owned_ref); + #endif + return (equals == Py_EQ); +return_ne: + #if PY_MAJOR_VERSION < 3 + Py_XDECREF(owned_ref); + #endif + return (equals == Py_NE); +#endif +} + +/* SetItemInt */ + static CYTHON_INLINE int __Pyx_SetItemInt_Generic(PyObject *o, PyObject *j, PyObject *v) { + int r; + if (!j) return -1; + r = PyObject_SetItem(o, j, v); + Py_DECREF(j); + return r; +} +static CYTHON_INLINE int __Pyx_SetItemInt_Fast(PyObject *o, Py_ssize_t i, PyObject *v, int is_list, + CYTHON_NCP_UNUSED int wraparound, CYTHON_NCP_UNUSED int boundscheck) { +#if CYTHON_COMPILING_IN_CPYTHON + if (is_list || PyList_CheckExact(o)) { + Py_ssize_t n = (!wraparound) ? i : ((likely(i >= 0)) ? i : i + PyList_GET_SIZE(o)); + if ((!boundscheck) || likely((n >= 0) & (n < PyList_GET_SIZE(o)))) { + PyObject* old = PyList_GET_ITEM(o, n); + Py_INCREF(v); + PyList_SET_ITEM(o, n, v); + Py_DECREF(old); + return 1; + } + } else { + PySequenceMethods *m = Py_TYPE(o)->tp_as_sequence; + if (likely(m && m->sq_ass_item)) { + if (wraparound && unlikely(i < 0) && likely(m->sq_length)) { + Py_ssize_t l = m->sq_length(o); + if (likely(l >= 0)) { + i += l; + } else { + if (!PyErr_ExceptionMatches(PyExc_OverflowError)) + return -1; + PyErr_Clear(); + } + } + return m->sq_ass_item(o, i, v); + } + } +#else +#if CYTHON_COMPILING_IN_PYPY + if (is_list || (PySequence_Check(o) && !PyDict_Check(o))) { +#else + if (is_list || PySequence_Check(o)) { +#endif + return PySequence_SetItem(o, i, v); + } +#endif + return __Pyx_SetItemInt_Generic(o, PyInt_FromSsize_t(i), v); +} + +/* WriteUnraisableException */ + static void __Pyx_WriteUnraisable(const char *name, CYTHON_UNUSED int clineno, + CYTHON_UNUSED int lineno, CYTHON_UNUSED const char *filename, + int full_traceback, CYTHON_UNUSED int nogil) { + PyObject *old_exc, *old_val, *old_tb; + PyObject *ctx; + __Pyx_PyThreadState_declare +#ifdef WITH_THREAD + PyGILState_STATE state; + if (nogil) + state = PyGILState_Ensure(); +#ifdef _MSC_VER + else state = (PyGILState_STATE)-1; +#endif +#endif + __Pyx_PyThreadState_assign + __Pyx_ErrFetch(&old_exc, &old_val, &old_tb); + if (full_traceback) { + Py_XINCREF(old_exc); + Py_XINCREF(old_val); + Py_XINCREF(old_tb); + __Pyx_ErrRestore(old_exc, old_val, old_tb); + PyErr_PrintEx(1); + } + #if PY_MAJOR_VERSION < 3 + ctx = PyString_FromString(name); + #else + ctx = PyUnicode_FromString(name); + #endif + __Pyx_ErrRestore(old_exc, old_val, old_tb); + if (!ctx) { + PyErr_WriteUnraisable(Py_None); + } else { + PyErr_WriteUnraisable(ctx); + Py_DECREF(ctx); + } +#ifdef WITH_THREAD + if (nogil) + PyGILState_Release(state); +#endif +} + +/* 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; +} + +/* CalculateMetaclass */ + static PyObject *__Pyx_CalculateMetaclass(PyTypeObject *metaclass, PyObject *bases) { + Py_ssize_t i, nbases = PyTuple_GET_SIZE(bases); + for (i=0; i < nbases; i++) { + PyTypeObject *tmptype; + PyObject *tmp = PyTuple_GET_ITEM(bases, i); + tmptype = Py_TYPE(tmp); +#if PY_MAJOR_VERSION < 3 + if (tmptype == &PyClass_Type) + continue; +#endif + if (!metaclass) { + metaclass = tmptype; + continue; + } + if (PyType_IsSubtype(metaclass, tmptype)) + continue; + if (PyType_IsSubtype(tmptype, metaclass)) { + metaclass = tmptype; + continue; + } + PyErr_SetString(PyExc_TypeError, + "metaclass conflict: " + "the metaclass of a derived class " + "must be a (non-strict) subclass " + "of the metaclasses of all its bases"); + return NULL; + } + if (!metaclass) { +#if PY_MAJOR_VERSION < 3 + metaclass = &PyClass_Type; +#else + metaclass = &PyType_Type; +#endif + } + Py_INCREF((PyObject*) metaclass); + return (PyObject*) metaclass; +} + +/* FetchCommonType */ + static PyTypeObject* __Pyx_FetchCommonType(PyTypeObject* type) { + PyObject* fake_module; + PyTypeObject* cached_type = NULL; + fake_module = PyImport_AddModule((char*) "_cython_" CYTHON_ABI); + if (!fake_module) return NULL; + Py_INCREF(fake_module); + cached_type = (PyTypeObject*) PyObject_GetAttrString(fake_module, type->tp_name); + if (cached_type) { + if (!PyType_Check((PyObject*)cached_type)) { + PyErr_Format(PyExc_TypeError, + "Shared Cython type %.200s is not a type object", + type->tp_name); + goto bad; + } + if (cached_type->tp_basicsize != type->tp_basicsize) { + PyErr_Format(PyExc_TypeError, + "Shared Cython type %.200s has the wrong size, try recompiling", + type->tp_name); + goto bad; + } + } else { + if (!PyErr_ExceptionMatches(PyExc_AttributeError)) goto bad; + PyErr_Clear(); + if (PyType_Ready(type) < 0) goto bad; + if (PyObject_SetAttrString(fake_module, type->tp_name, (PyObject*) type) < 0) + goto bad; + Py_INCREF(type); + cached_type = type; + } +done: + Py_DECREF(fake_module); + return cached_type; +bad: + Py_XDECREF(cached_type); + cached_type = NULL; + goto done; +} + +/* CythonFunction */ + static PyObject * +__Pyx_CyFunction_get_doc(__pyx_CyFunctionObject *op, CYTHON_UNUSED void *closure) +{ + if (unlikely(op->func_doc == NULL)) { + if (op->func.m_ml->ml_doc) { +#if PY_MAJOR_VERSION >= 3 + op->func_doc = PyUnicode_FromString(op->func.m_ml->ml_doc); +#else + op->func_doc = PyString_FromString(op->func.m_ml->ml_doc); +#endif + if (unlikely(op->func_doc == NULL)) + return NULL; + } else { + Py_INCREF(Py_None); + return Py_None; + } + } + Py_INCREF(op->func_doc); + return op->func_doc; +} +static int +__Pyx_CyFunction_set_doc(__pyx_CyFunctionObject *op, PyObject *value) +{ + PyObject *tmp = op->func_doc; + if (value == NULL) { + value = Py_None; + } + Py_INCREF(value); + op->func_doc = value; + Py_XDECREF(tmp); + return 0; +} +static PyObject * +__Pyx_CyFunction_get_name(__pyx_CyFunctionObject *op) +{ + if (unlikely(op->func_name == NULL)) { +#if PY_MAJOR_VERSION >= 3 + op->func_name = PyUnicode_InternFromString(op->func.m_ml->ml_name); +#else + op->func_name = PyString_InternFromString(op->func.m_ml->ml_name); +#endif + if (unlikely(op->func_name == NULL)) + return NULL; + } + Py_INCREF(op->func_name); + return op->func_name; +} +static int +__Pyx_CyFunction_set_name(__pyx_CyFunctionObject *op, PyObject *value) +{ + PyObject *tmp; +#if PY_MAJOR_VERSION >= 3 + if (unlikely(value == NULL || !PyUnicode_Check(value))) { +#else + if (unlikely(value == NULL || !PyString_Check(value))) { +#endif + PyErr_SetString(PyExc_TypeError, + "__name__ must be set to a string object"); + return -1; + } + tmp = op->func_name; + Py_INCREF(value); + op->func_name = value; + Py_XDECREF(tmp); + return 0; +} +static PyObject * +__Pyx_CyFunction_get_qualname(__pyx_CyFunctionObject *op) +{ + Py_INCREF(op->func_qualname); + return op->func_qualname; +} +static int +__Pyx_CyFunction_set_qualname(__pyx_CyFunctionObject *op, PyObject *value) +{ + PyObject *tmp; +#if PY_MAJOR_VERSION >= 3 + if (unlikely(value == NULL || !PyUnicode_Check(value))) { +#else + if (unlikely(value == NULL || !PyString_Check(value))) { +#endif + PyErr_SetString(PyExc_TypeError, + "__qualname__ must be set to a string object"); + return -1; + } + tmp = op->func_qualname; + Py_INCREF(value); + op->func_qualname = value; + Py_XDECREF(tmp); + return 0; +} +static PyObject * +__Pyx_CyFunction_get_self(__pyx_CyFunctionObject *m, CYTHON_UNUSED void *closure) +{ + PyObject *self; + self = m->func_closure; + if (self == NULL) + self = Py_None; + Py_INCREF(self); + return self; +} +static PyObject * +__Pyx_CyFunction_get_dict(__pyx_CyFunctionObject *op) +{ + if (unlikely(op->func_dict == NULL)) { + op->func_dict = PyDict_New(); + if (unlikely(op->func_dict == NULL)) + return NULL; + } + Py_INCREF(op->func_dict); + return op->func_dict; +} +static int +__Pyx_CyFunction_set_dict(__pyx_CyFunctionObject *op, PyObject *value) +{ + PyObject *tmp; + if (unlikely(value == NULL)) { + PyErr_SetString(PyExc_TypeError, + "function's dictionary may not be deleted"); + return -1; + } + if (unlikely(!PyDict_Check(value))) { + PyErr_SetString(PyExc_TypeError, + "setting function's dictionary to a non-dict"); + return -1; + } + tmp = op->func_dict; + Py_INCREF(value); + op->func_dict = value; + Py_XDECREF(tmp); + return 0; +} +static PyObject * +__Pyx_CyFunction_get_globals(__pyx_CyFunctionObject *op) +{ + Py_INCREF(op->func_globals); + return op->func_globals; +} +static PyObject * +__Pyx_CyFunction_get_closure(CYTHON_UNUSED __pyx_CyFunctionObject *op) +{ + Py_INCREF(Py_None); + return Py_None; +} +static PyObject * +__Pyx_CyFunction_get_code(__pyx_CyFunctionObject *op) +{ + PyObject* result = (op->func_code) ? op->func_code : Py_None; + Py_INCREF(result); + return result; +} +static int +__Pyx_CyFunction_init_defaults(__pyx_CyFunctionObject *op) { + int result = 0; + PyObject *res = op->defaults_getter((PyObject *) op); + if (unlikely(!res)) + return -1; + #if CYTHON_COMPILING_IN_CPYTHON + op->defaults_tuple = PyTuple_GET_ITEM(res, 0); + Py_INCREF(op->defaults_tuple); + op->defaults_kwdict = PyTuple_GET_ITEM(res, 1); + Py_INCREF(op->defaults_kwdict); + #else + op->defaults_tuple = PySequence_ITEM(res, 0); + if (unlikely(!op->defaults_tuple)) result = -1; + else { + op->defaults_kwdict = PySequence_ITEM(res, 1); + if (unlikely(!op->defaults_kwdict)) result = -1; + } + #endif + Py_DECREF(res); + return result; +} +static int +__Pyx_CyFunction_set_defaults(__pyx_CyFunctionObject *op, PyObject* value) { + PyObject* tmp; + if (!value) { + value = Py_None; + } else if (value != Py_None && !PyTuple_Check(value)) { + PyErr_SetString(PyExc_TypeError, + "__defaults__ must be set to a tuple object"); + return -1; + } + Py_INCREF(value); + tmp = op->defaults_tuple; + op->defaults_tuple = value; + Py_XDECREF(tmp); + return 0; +} +static PyObject * +__Pyx_CyFunction_get_defaults(__pyx_CyFunctionObject *op) { + PyObject* result = op->defaults_tuple; + if (unlikely(!result)) { + if (op->defaults_getter) { + if (__Pyx_CyFunction_init_defaults(op) < 0) return NULL; + result = op->defaults_tuple; + } else { + result = Py_None; + } + } + Py_INCREF(result); + return result; +} +static int +__Pyx_CyFunction_set_kwdefaults(__pyx_CyFunctionObject *op, PyObject* value) { + PyObject* tmp; + if (!value) { + value = Py_None; + } else if (value != Py_None && !PyDict_Check(value)) { + PyErr_SetString(PyExc_TypeError, + "__kwdefaults__ must be set to a dict object"); + return -1; + } + Py_INCREF(value); + tmp = op->defaults_kwdict; + op->defaults_kwdict = value; + Py_XDECREF(tmp); + return 0; +} +static PyObject * +__Pyx_CyFunction_get_kwdefaults(__pyx_CyFunctionObject *op) { + PyObject* result = op->defaults_kwdict; + if (unlikely(!result)) { + if (op->defaults_getter) { + if (__Pyx_CyFunction_init_defaults(op) < 0) return NULL; + result = op->defaults_kwdict; + } else { + result = Py_None; + } + } + Py_INCREF(result); + return result; +} +static int +__Pyx_CyFunction_set_annotations(__pyx_CyFunctionObject *op, PyObject* value) { + PyObject* tmp; + if (!value || value == Py_None) { + value = NULL; + } else if (!PyDict_Check(value)) { + PyErr_SetString(PyExc_TypeError, + "__annotations__ must be set to a dict object"); + return -1; + } + Py_XINCREF(value); + tmp = op->func_annotations; + op->func_annotations = value; + Py_XDECREF(tmp); + return 0; +} +static PyObject * +__Pyx_CyFunction_get_annotations(__pyx_CyFunctionObject *op) { + PyObject* result = op->func_annotations; + if (unlikely(!result)) { + result = PyDict_New(); + if (unlikely(!result)) return NULL; + op->func_annotations = result; + } + Py_INCREF(result); + return result; +} +static PyGetSetDef __pyx_CyFunction_getsets[] = { + {(char *) "func_doc", (getter)__Pyx_CyFunction_get_doc, (setter)__Pyx_CyFunction_set_doc, 0, 0}, + {(char *) "__doc__", (getter)__Pyx_CyFunction_get_doc, (setter)__Pyx_CyFunction_set_doc, 0, 0}, + {(char *) "func_name", (getter)__Pyx_CyFunction_get_name, (setter)__Pyx_CyFunction_set_name, 0, 0}, + {(char *) "__name__", (getter)__Pyx_CyFunction_get_name, (setter)__Pyx_CyFunction_set_name, 0, 0}, + {(char *) "__qualname__", (getter)__Pyx_CyFunction_get_qualname, (setter)__Pyx_CyFunction_set_qualname, 0, 0}, + {(char *) "__self__", (getter)__Pyx_CyFunction_get_self, 0, 0, 0}, + {(char *) "func_dict", (getter)__Pyx_CyFunction_get_dict, (setter)__Pyx_CyFunction_set_dict, 0, 0}, + {(char *) "__dict__", (getter)__Pyx_CyFunction_get_dict, (setter)__Pyx_CyFunction_set_dict, 0, 0}, + {(char *) "func_globals", (getter)__Pyx_CyFunction_get_globals, 0, 0, 0}, + {(char *) "__globals__", (getter)__Pyx_CyFunction_get_globals, 0, 0, 0}, + {(char *) "func_closure", (getter)__Pyx_CyFunction_get_closure, 0, 0, 0}, + {(char *) "__closure__", (getter)__Pyx_CyFunction_get_closure, 0, 0, 0}, + {(char *) "func_code", (getter)__Pyx_CyFunction_get_code, 0, 0, 0}, + {(char *) "__code__", (getter)__Pyx_CyFunction_get_code, 0, 0, 0}, + {(char *) "func_defaults", (getter)__Pyx_CyFunction_get_defaults, (setter)__Pyx_CyFunction_set_defaults, 0, 0}, + {(char *) "__defaults__", (getter)__Pyx_CyFunction_get_defaults, (setter)__Pyx_CyFunction_set_defaults, 0, 0}, + {(char *) "__kwdefaults__", (getter)__Pyx_CyFunction_get_kwdefaults, (setter)__Pyx_CyFunction_set_kwdefaults, 0, 0}, + {(char *) "__annotations__", (getter)__Pyx_CyFunction_get_annotations, (setter)__Pyx_CyFunction_set_annotations, 0, 0}, + {0, 0, 0, 0, 0} +}; +static PyMemberDef __pyx_CyFunction_members[] = { + {(char *) "__module__", T_OBJECT, offsetof(__pyx_CyFunctionObject, func.m_module), PY_WRITE_RESTRICTED, 0}, + {0, 0, 0, 0, 0} +}; +static PyObject * +__Pyx_CyFunction_reduce(__pyx_CyFunctionObject *m, CYTHON_UNUSED PyObject *args) +{ +#if PY_MAJOR_VERSION >= 3 + return PyUnicode_FromString(m->func.m_ml->ml_name); +#else + return PyString_FromString(m->func.m_ml->ml_name); +#endif +} +static PyMethodDef __pyx_CyFunction_methods[] = { + {"__reduce__", (PyCFunction)__Pyx_CyFunction_reduce, METH_VARARGS, 0}, + {0, 0, 0, 0} +}; +#if PY_VERSION_HEX < 0x030500A0 +#define __Pyx_CyFunction_weakreflist(cyfunc) ((cyfunc)->func_weakreflist) +#else +#define __Pyx_CyFunction_weakreflist(cyfunc) ((cyfunc)->func.m_weakreflist) +#endif +static PyObject *__Pyx_CyFunction_New(PyTypeObject *type, PyMethodDef *ml, int flags, PyObject* qualname, + PyObject *closure, PyObject *module, PyObject* globals, PyObject* code) { + __pyx_CyFunctionObject *op = PyObject_GC_New(__pyx_CyFunctionObject, type); + if (op == NULL) + return NULL; + op->flags = flags; + __Pyx_CyFunction_weakreflist(op) = NULL; + op->func.m_ml = ml; + op->func.m_self = (PyObject *) op; + Py_XINCREF(closure); + op->func_closure = closure; + Py_XINCREF(module); + op->func.m_module = module; + op->func_dict = NULL; + op->func_name = NULL; + Py_INCREF(qualname); + op->func_qualname = qualname; + op->func_doc = NULL; + op->func_classobj = NULL; + op->func_globals = globals; + Py_INCREF(op->func_globals); + Py_XINCREF(code); + op->func_code = code; + op->defaults_pyobjects = 0; + op->defaults = NULL; + op->defaults_tuple = NULL; + op->defaults_kwdict = NULL; + op->defaults_getter = NULL; + op->func_annotations = NULL; + PyObject_GC_Track(op); + return (PyObject *) op; +} +static int +__Pyx_CyFunction_clear(__pyx_CyFunctionObject *m) +{ + Py_CLEAR(m->func_closure); + Py_CLEAR(m->func.m_module); + Py_CLEAR(m->func_dict); + Py_CLEAR(m->func_name); + Py_CLEAR(m->func_qualname); + Py_CLEAR(m->func_doc); + Py_CLEAR(m->func_globals); + Py_CLEAR(m->func_code); + Py_CLEAR(m->func_classobj); + Py_CLEAR(m->defaults_tuple); + Py_CLEAR(m->defaults_kwdict); + Py_CLEAR(m->func_annotations); + if (m->defaults) { + PyObject **pydefaults = __Pyx_CyFunction_Defaults(PyObject *, m); + int i; + for (i = 0; i < m->defaults_pyobjects; i++) + Py_XDECREF(pydefaults[i]); + PyObject_Free(m->defaults); + m->defaults = NULL; + } + return 0; +} +static void __Pyx_CyFunction_dealloc(__pyx_CyFunctionObject *m) +{ + PyObject_GC_UnTrack(m); + if (__Pyx_CyFunction_weakreflist(m) != NULL) + PyObject_ClearWeakRefs((PyObject *) m); + __Pyx_CyFunction_clear(m); + PyObject_GC_Del(m); +} +static int __Pyx_CyFunction_traverse(__pyx_CyFunctionObject *m, visitproc visit, void *arg) +{ + Py_VISIT(m->func_closure); + Py_VISIT(m->func.m_module); + Py_VISIT(m->func_dict); + Py_VISIT(m->func_name); + Py_VISIT(m->func_qualname); + Py_VISIT(m->func_doc); + Py_VISIT(m->func_globals); + Py_VISIT(m->func_code); + Py_VISIT(m->func_classobj); + Py_VISIT(m->defaults_tuple); + Py_VISIT(m->defaults_kwdict); + if (m->defaults) { + PyObject **pydefaults = __Pyx_CyFunction_Defaults(PyObject *, m); + int i; + for (i = 0; i < m->defaults_pyobjects; i++) + Py_VISIT(pydefaults[i]); + } + return 0; +} +static PyObject *__Pyx_CyFunction_descr_get(PyObject *func, PyObject *obj, PyObject *type) +{ + __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func; + if (m->flags & __Pyx_CYFUNCTION_STATICMETHOD) { + Py_INCREF(func); + return func; + } + if (m->flags & __Pyx_CYFUNCTION_CLASSMETHOD) { + if (type == NULL) + type = (PyObject *)(Py_TYPE(obj)); + return __Pyx_PyMethod_New(func, type, (PyObject *)(Py_TYPE(type))); + } + if (obj == Py_None) + obj = NULL; + return __Pyx_PyMethod_New(func, obj, type); +} +static PyObject* +__Pyx_CyFunction_repr(__pyx_CyFunctionObject *op) +{ +#if PY_MAJOR_VERSION >= 3 + return PyUnicode_FromFormat("", + op->func_qualname, (void *)op); +#else + return PyString_FromFormat("", + PyString_AsString(op->func_qualname), (void *)op); +#endif +} +#if CYTHON_COMPILING_IN_PYPY +static PyObject * __Pyx_CyFunction_Call(PyObject *func, PyObject *arg, PyObject *kw) { + PyCFunctionObject* f = (PyCFunctionObject*)func; + PyCFunction meth = f->m_ml->ml_meth; + PyObject *self = f->m_self; + Py_ssize_t size; + switch (f->m_ml->ml_flags & (METH_VARARGS | METH_KEYWORDS | METH_NOARGS | METH_O)) { + case METH_VARARGS: + if (likely(kw == NULL || PyDict_Size(kw) == 0)) + return (*meth)(self, arg); + break; + case METH_VARARGS | METH_KEYWORDS: + return (*(PyCFunctionWithKeywords)meth)(self, arg, kw); + case METH_NOARGS: + if (likely(kw == NULL || PyDict_Size(kw) == 0)) { + size = PyTuple_GET_SIZE(arg); + if (likely(size == 0)) + return (*meth)(self, NULL); + PyErr_Format(PyExc_TypeError, + "%.200s() takes no arguments (%" CYTHON_FORMAT_SSIZE_T "d given)", + f->m_ml->ml_name, size); + return NULL; + } + break; + case METH_O: + if (likely(kw == NULL || PyDict_Size(kw) == 0)) { + size = PyTuple_GET_SIZE(arg); + if (likely(size == 1)) { + PyObject *result, *arg0 = PySequence_ITEM(arg, 0); + if (unlikely(!arg0)) return NULL; + result = (*meth)(self, arg0); + Py_DECREF(arg0); + return result; + } + PyErr_Format(PyExc_TypeError, + "%.200s() takes exactly one argument (%" CYTHON_FORMAT_SSIZE_T "d given)", + f->m_ml->ml_name, size); + return NULL; + } + break; + default: + PyErr_SetString(PyExc_SystemError, "Bad call flags in " + "__Pyx_CyFunction_Call. METH_OLDARGS is no " + "longer supported!"); + return NULL; + } + PyErr_Format(PyExc_TypeError, "%.200s() takes no keyword arguments", + f->m_ml->ml_name); + return NULL; +} +#else +static PyObject * __Pyx_CyFunction_Call(PyObject *func, PyObject *arg, PyObject *kw) { + return PyCFunction_Call(func, arg, kw); +} +#endif +static PyTypeObject __pyx_CyFunctionType_type = { + PyVarObject_HEAD_INIT(0, 0) + "cython_function_or_method", + sizeof(__pyx_CyFunctionObject), + 0, + (destructor) __Pyx_CyFunction_dealloc, + 0, + 0, + 0, +#if PY_MAJOR_VERSION < 3 + 0, +#else + 0, +#endif + (reprfunc) __Pyx_CyFunction_repr, + 0, + 0, + 0, + 0, + __Pyx_CyFunction_Call, + 0, + 0, + 0, + 0, + Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC, + 0, + (traverseproc) __Pyx_CyFunction_traverse, + (inquiry) __Pyx_CyFunction_clear, + 0, +#if PY_VERSION_HEX < 0x030500A0 + offsetof(__pyx_CyFunctionObject, func_weakreflist), +#else + offsetof(PyCFunctionObject, m_weakreflist), +#endif + 0, + 0, + __pyx_CyFunction_methods, + __pyx_CyFunction_members, + __pyx_CyFunction_getsets, + 0, + 0, + __Pyx_CyFunction_descr_get, + 0, + offsetof(__pyx_CyFunctionObject, func_dict), + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, + 0, +#if PY_VERSION_HEX >= 0x030400a1 + 0, +#endif +}; +static int __pyx_CyFunction_init(void) { +#if !CYTHON_COMPILING_IN_PYPY + __pyx_CyFunctionType_type.tp_call = PyCFunction_Call; +#endif + __pyx_CyFunctionType = __Pyx_FetchCommonType(&__pyx_CyFunctionType_type); + if (__pyx_CyFunctionType == NULL) { + return -1; + } + return 0; +} +static CYTHON_INLINE void *__Pyx_CyFunction_InitDefaults(PyObject *func, size_t size, int pyobjects) { + __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func; + m->defaults = PyObject_Malloc(size); + if (!m->defaults) + return PyErr_NoMemory(); + memset(m->defaults, 0, size); + m->defaults_pyobjects = pyobjects; + return m->defaults; +} +static CYTHON_INLINE void __Pyx_CyFunction_SetDefaultsTuple(PyObject *func, PyObject *tuple) { + __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func; + m->defaults_tuple = tuple; + Py_INCREF(tuple); +} +static CYTHON_INLINE void __Pyx_CyFunction_SetDefaultsKwDict(PyObject *func, PyObject *dict) { + __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func; + m->defaults_kwdict = dict; + Py_INCREF(dict); +} +static CYTHON_INLINE void __Pyx_CyFunction_SetAnnotationsDict(PyObject *func, PyObject *dict) { + __pyx_CyFunctionObject *m = (__pyx_CyFunctionObject *) func; + m->func_annotations = dict; + Py_INCREF(dict); +} + +/* Py3ClassCreate */ + static PyObject *__Pyx_Py3MetaclassPrepare(PyObject *metaclass, PyObject *bases, PyObject *name, + PyObject *qualname, PyObject *mkw, PyObject *modname, PyObject *doc) { + PyObject *ns; + if (metaclass) { + PyObject *prep = __Pyx_PyObject_GetAttrStr(metaclass, __pyx_n_s_prepare); + if (prep) { + PyObject *pargs = PyTuple_Pack(2, name, bases); + if (unlikely(!pargs)) { + Py_DECREF(prep); + return NULL; + } + ns = PyObject_Call(prep, pargs, mkw); + Py_DECREF(prep); + Py_DECREF(pargs); + } else { + if (unlikely(!PyErr_ExceptionMatches(PyExc_AttributeError))) + return NULL; + PyErr_Clear(); + ns = PyDict_New(); + } + } else { + ns = PyDict_New(); + } + if (unlikely(!ns)) + return NULL; + if (unlikely(PyObject_SetItem(ns, __pyx_n_s_module, modname) < 0)) goto bad; + if (unlikely(PyObject_SetItem(ns, __pyx_n_s_qualname, qualname) < 0)) goto bad; + if (unlikely(doc && PyObject_SetItem(ns, __pyx_n_s_doc, doc) < 0)) goto bad; + return ns; +bad: + Py_DECREF(ns); + return NULL; +} +static PyObject *__Pyx_Py3ClassCreate(PyObject *metaclass, PyObject *name, PyObject *bases, + PyObject *dict, PyObject *mkw, + int calculate_metaclass, int allow_py2_metaclass) { + PyObject *result, *margs; + PyObject *owned_metaclass = NULL; + if (allow_py2_metaclass) { + owned_metaclass = PyObject_GetItem(dict, __pyx_n_s_metaclass); + if (owned_metaclass) { + metaclass = owned_metaclass; + } else if (likely(PyErr_ExceptionMatches(PyExc_KeyError))) { + PyErr_Clear(); + } else { + return NULL; + } + } + if (calculate_metaclass && (!metaclass || PyType_Check(metaclass))) { + metaclass = __Pyx_CalculateMetaclass((PyTypeObject*) metaclass, bases); + Py_XDECREF(owned_metaclass); + if (unlikely(!metaclass)) + return NULL; + owned_metaclass = metaclass; + } + margs = PyTuple_Pack(3, name, bases, dict); + if (unlikely(!margs)) { + result = NULL; + } else { + result = PyObject_Call(metaclass, margs, mkw); + Py_DECREF(margs); + } + Py_XDECREF(owned_metaclass); + return result; +} + +/* SaveResetException */ + #if CYTHON_COMPILING_IN_CPYTHON +static CYTHON_INLINE void __Pyx__ExceptionSave(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb) { + *type = tstate->exc_type; + *value = tstate->exc_value; + *tb = tstate->exc_traceback; + Py_XINCREF(*type); + Py_XINCREF(*value); + Py_XINCREF(*tb); +} +static CYTHON_INLINE void __Pyx__ExceptionReset(PyThreadState *tstate, PyObject *type, PyObject *value, PyObject *tb) { + PyObject *tmp_type, *tmp_value, *tmp_tb; + tmp_type = tstate->exc_type; + tmp_value = tstate->exc_value; + tmp_tb = tstate->exc_traceback; + tstate->exc_type = type; + tstate->exc_value = value; + tstate->exc_traceback = tb; + Py_XDECREF(tmp_type); + Py_XDECREF(tmp_value); + Py_XDECREF(tmp_tb); +} +#endif + +/* PyErrExceptionMatches */ + #if CYTHON_COMPILING_IN_CPYTHON +static CYTHON_INLINE int __Pyx_PyErr_ExceptionMatchesInState(PyThreadState* tstate, PyObject* err) { + PyObject *exc_type = tstate->curexc_type; + if (exc_type == err) return 1; + if (unlikely(!exc_type)) return 0; + return PyErr_GivenExceptionMatches(exc_type, err); +} +#endif + +/* GetException */ + #if CYTHON_COMPILING_IN_CPYTHON +static int __Pyx__GetException(PyThreadState *tstate, PyObject **type, PyObject **value, PyObject **tb) { +#else +static int __Pyx_GetException(PyObject **type, PyObject **value, PyObject **tb) { +#endif + PyObject *local_type, *local_value, *local_tb; +#if CYTHON_COMPILING_IN_CPYTHON + PyObject *tmp_type, *tmp_value, *tmp_tb; + local_type = tstate->curexc_type; + local_value = tstate->curexc_value; + local_tb = tstate->curexc_traceback; + tstate->curexc_type = 0; + tstate->curexc_value = 0; + tstate->curexc_traceback = 0; +#else + PyErr_Fetch(&local_type, &local_value, &local_tb); +#endif + PyErr_NormalizeException(&local_type, &local_value, &local_tb); +#if CYTHON_COMPILING_IN_CPYTHON + if (unlikely(tstate->curexc_type)) +#else + if (unlikely(PyErr_Occurred())) +#endif + goto bad; + #if PY_MAJOR_VERSION >= 3 + if (local_tb) { + if (unlikely(PyException_SetTraceback(local_value, local_tb) < 0)) + goto bad; + } + #endif + Py_XINCREF(local_tb); + Py_XINCREF(local_type); + Py_XINCREF(local_value); + *type = local_type; + *value = local_value; + *tb = local_tb; +#if CYTHON_COMPILING_IN_CPYTHON + tmp_type = tstate->exc_type; + tmp_value = tstate->exc_value; + tmp_tb = tstate->exc_traceback; + tstate->exc_type = local_type; + tstate->exc_value = local_value; + tstate->exc_traceback = local_tb; + Py_XDECREF(tmp_type); + Py_XDECREF(tmp_value); + Py_XDECREF(tmp_tb); +#else + PyErr_SetExcInfo(local_type, local_value, local_tb); +#endif + return 0; +bad: + *type = 0; + *value = 0; + *tb = 0; + Py_XDECREF(local_type); + Py_XDECREF(local_value); + Py_XDECREF(local_tb); + return -1; +} + +/* 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_TA_RetCode(TA_RetCode value) { + const TA_RetCode neg_one = (TA_RetCode) -1, const_zero = (TA_RetCode) 0; + const int is_unsigned = neg_one > const_zero; + if (is_unsigned) { + if (sizeof(TA_RetCode) < sizeof(long)) { + return PyInt_FromLong((long) value); + } else if (sizeof(TA_RetCode) <= sizeof(unsigned long)) { + return PyLong_FromUnsignedLong((unsigned long) value); + } else if (sizeof(TA_RetCode) <= sizeof(unsigned PY_LONG_LONG)) { + return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value); + } + } else { + if (sizeof(TA_RetCode) <= sizeof(long)) { + return PyInt_FromLong((long) value); + } else if (sizeof(TA_RetCode) <= 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(TA_RetCode), + little, !is_unsigned); + } +} + +/* CIntToPy */ + static CYTHON_INLINE PyObject* __Pyx_PyInt_From_unsigned_int(unsigned int value) { + const unsigned int neg_one = (unsigned int) -1, const_zero = (unsigned int) 0; + const int is_unsigned = neg_one > const_zero; + if (is_unsigned) { + if (sizeof(unsigned int) < sizeof(long)) { + return PyInt_FromLong((long) value); + } else if (sizeof(unsigned int) <= sizeof(unsigned long)) { + return PyLong_FromUnsignedLong((unsigned long) value); + } else if (sizeof(unsigned int) <= sizeof(unsigned PY_LONG_LONG)) { + return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value); + } + } else { + if (sizeof(unsigned int) <= sizeof(long)) { + return PyInt_FromLong((long) value); + } else if (sizeof(unsigned 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(unsigned int), + little, !is_unsigned); + } +} + +/* 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); + } +} + +/* CIntToPy */ + static CYTHON_INLINE PyObject* __Pyx_PyInt_From_TA_OptInputParameterType(TA_OptInputParameterType value) { + const TA_OptInputParameterType neg_one = (TA_OptInputParameterType) -1, const_zero = (TA_OptInputParameterType) 0; + const int is_unsigned = neg_one > const_zero; + if (is_unsigned) { + if (sizeof(TA_OptInputParameterType) < sizeof(long)) { + return PyInt_FromLong((long) value); + } else if (sizeof(TA_OptInputParameterType) <= sizeof(unsigned long)) { + return PyLong_FromUnsignedLong((unsigned long) value); + } else if (sizeof(TA_OptInputParameterType) <= sizeof(unsigned PY_LONG_LONG)) { + return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value); + } + } else { + if (sizeof(TA_OptInputParameterType) <= sizeof(long)) { + return PyInt_FromLong((long) value); + } else if (sizeof(TA_OptInputParameterType) <= 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(TA_OptInputParameterType), + little, !is_unsigned); + } +} + +/* 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); + } +} + +/* CIntToPy */ + static CYTHON_INLINE PyObject* __Pyx_PyInt_From_TA_FuncFlags(TA_FuncFlags value) { + const TA_FuncFlags neg_one = (TA_FuncFlags) -1, const_zero = (TA_FuncFlags) 0; + const int is_unsigned = neg_one > const_zero; + if (is_unsigned) { + if (sizeof(TA_FuncFlags) < sizeof(long)) { + return PyInt_FromLong((long) value); + } else if (sizeof(TA_FuncFlags) <= sizeof(unsigned long)) { + return PyLong_FromUnsignedLong((unsigned long) value); + } else if (sizeof(TA_FuncFlags) <= sizeof(unsigned PY_LONG_LONG)) { + return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value); + } + } else { + if (sizeof(TA_FuncFlags) <= sizeof(long)) { + return PyInt_FromLong((long) value); + } else if (sizeof(TA_FuncFlags) <= 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(TA_FuncFlags), + little, !is_unsigned); + } +} + +/* CIntToPy */ + static CYTHON_INLINE PyObject* __Pyx_PyInt_From_TA_InputFlags(TA_InputFlags value) { + const TA_InputFlags neg_one = (TA_InputFlags) -1, const_zero = (TA_InputFlags) 0; + const int is_unsigned = neg_one > const_zero; + if (is_unsigned) { + if (sizeof(TA_InputFlags) < sizeof(long)) { + return PyInt_FromLong((long) value); + } else if (sizeof(TA_InputFlags) <= sizeof(unsigned long)) { + return PyLong_FromUnsignedLong((unsigned long) value); + } else if (sizeof(TA_InputFlags) <= sizeof(unsigned PY_LONG_LONG)) { + return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value); + } + } else { + if (sizeof(TA_InputFlags) <= sizeof(long)) { + return PyInt_FromLong((long) value); + } else if (sizeof(TA_InputFlags) <= 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(TA_InputFlags), + little, !is_unsigned); + } +} + +/* CIntToPy */ + static CYTHON_INLINE PyObject* __Pyx_PyInt_From_TA_OutputFlags(TA_OutputFlags value) { + const TA_OutputFlags neg_one = (TA_OutputFlags) -1, const_zero = (TA_OutputFlags) 0; + const int is_unsigned = neg_one > const_zero; + if (is_unsigned) { + if (sizeof(TA_OutputFlags) < sizeof(long)) { + return PyInt_FromLong((long) value); + } else if (sizeof(TA_OutputFlags) <= sizeof(unsigned long)) { + return PyLong_FromUnsignedLong((unsigned long) value); + } else if (sizeof(TA_OutputFlags) <= sizeof(unsigned PY_LONG_LONG)) { + return PyLong_FromUnsignedLongLong((unsigned PY_LONG_LONG) value); + } + } else { + if (sizeof(TA_OutputFlags) <= sizeof(long)) { + return PyInt_FromLong((long) value); + } else if (sizeof(TA_OutputFlags) <= 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(TA_OutputFlags), + 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 TA_RetCode __Pyx_PyInt_As_TA_RetCode(PyObject *x) { + const TA_RetCode neg_one = (TA_RetCode) -1, const_zero = (TA_RetCode) 0; + const int is_unsigned = neg_one > const_zero; +#if PY_MAJOR_VERSION < 3 + if (likely(PyInt_Check(x))) { + if (sizeof(TA_RetCode) < sizeof(long)) { + __PYX_VERIFY_RETURN_INT(TA_RetCode, long, PyInt_AS_LONG(x)) + } else { + long val = PyInt_AS_LONG(x); + if (is_unsigned && unlikely(val < 0)) { + goto raise_neg_overflow; + } + return (TA_RetCode) 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 (TA_RetCode) 0; + case 1: __PYX_VERIFY_RETURN_INT(TA_RetCode, digit, digits[0]) + case 2: + if (8 * sizeof(TA_RetCode) > 1 * PyLong_SHIFT) { + if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { + __PYX_VERIFY_RETURN_INT(TA_RetCode, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) + } else if (8 * sizeof(TA_RetCode) >= 2 * PyLong_SHIFT) { + return (TA_RetCode) (((((TA_RetCode)digits[1]) << PyLong_SHIFT) | (TA_RetCode)digits[0])); + } + } + break; + case 3: + if (8 * sizeof(TA_RetCode) > 2 * PyLong_SHIFT) { + if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { + __PYX_VERIFY_RETURN_INT(TA_RetCode, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) + } else if (8 * sizeof(TA_RetCode) >= 3 * PyLong_SHIFT) { + return (TA_RetCode) (((((((TA_RetCode)digits[2]) << PyLong_SHIFT) | (TA_RetCode)digits[1]) << PyLong_SHIFT) | (TA_RetCode)digits[0])); + } + } + break; + case 4: + if (8 * sizeof(TA_RetCode) > 3 * PyLong_SHIFT) { + if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { + __PYX_VERIFY_RETURN_INT(TA_RetCode, 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(TA_RetCode) >= 4 * PyLong_SHIFT) { + return (TA_RetCode) (((((((((TA_RetCode)digits[3]) << PyLong_SHIFT) | (TA_RetCode)digits[2]) << PyLong_SHIFT) | (TA_RetCode)digits[1]) << PyLong_SHIFT) | (TA_RetCode)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 (TA_RetCode) -1; + if (unlikely(result == 1)) + goto raise_neg_overflow; + } +#endif + if (sizeof(TA_RetCode) <= sizeof(unsigned long)) { + __PYX_VERIFY_RETURN_INT_EXC(TA_RetCode, unsigned long, PyLong_AsUnsignedLong(x)) + } else if (sizeof(TA_RetCode) <= sizeof(unsigned PY_LONG_LONG)) { + __PYX_VERIFY_RETURN_INT_EXC(TA_RetCode, 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 (TA_RetCode) 0; + case -1: __PYX_VERIFY_RETURN_INT(TA_RetCode, sdigit, (sdigit) (-(sdigit)digits[0])) + case 1: __PYX_VERIFY_RETURN_INT(TA_RetCode, digit, +digits[0]) + case -2: + if (8 * sizeof(TA_RetCode) - 1 > 1 * PyLong_SHIFT) { + if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { + __PYX_VERIFY_RETURN_INT(TA_RetCode, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) + } else if (8 * sizeof(TA_RetCode) - 1 > 2 * PyLong_SHIFT) { + return (TA_RetCode) (((TA_RetCode)-1)*(((((TA_RetCode)digits[1]) << PyLong_SHIFT) | (TA_RetCode)digits[0]))); + } + } + break; + case 2: + if (8 * sizeof(TA_RetCode) > 1 * PyLong_SHIFT) { + if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { + __PYX_VERIFY_RETURN_INT(TA_RetCode, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) + } else if (8 * sizeof(TA_RetCode) - 1 > 2 * PyLong_SHIFT) { + return (TA_RetCode) ((((((TA_RetCode)digits[1]) << PyLong_SHIFT) | (TA_RetCode)digits[0]))); + } + } + break; + case -3: + if (8 * sizeof(TA_RetCode) - 1 > 2 * PyLong_SHIFT) { + if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { + __PYX_VERIFY_RETURN_INT(TA_RetCode, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) + } else if (8 * sizeof(TA_RetCode) - 1 > 3 * PyLong_SHIFT) { + return (TA_RetCode) (((TA_RetCode)-1)*(((((((TA_RetCode)digits[2]) << PyLong_SHIFT) | (TA_RetCode)digits[1]) << PyLong_SHIFT) | (TA_RetCode)digits[0]))); + } + } + break; + case 3: + if (8 * sizeof(TA_RetCode) > 2 * PyLong_SHIFT) { + if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { + __PYX_VERIFY_RETURN_INT(TA_RetCode, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) + } else if (8 * sizeof(TA_RetCode) - 1 > 3 * PyLong_SHIFT) { + return (TA_RetCode) ((((((((TA_RetCode)digits[2]) << PyLong_SHIFT) | (TA_RetCode)digits[1]) << PyLong_SHIFT) | (TA_RetCode)digits[0]))); + } + } + break; + case -4: + if (8 * sizeof(TA_RetCode) - 1 > 3 * PyLong_SHIFT) { + if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { + __PYX_VERIFY_RETURN_INT(TA_RetCode, 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(TA_RetCode) - 1 > 4 * PyLong_SHIFT) { + return (TA_RetCode) (((TA_RetCode)-1)*(((((((((TA_RetCode)digits[3]) << PyLong_SHIFT) | (TA_RetCode)digits[2]) << PyLong_SHIFT) | (TA_RetCode)digits[1]) << PyLong_SHIFT) | (TA_RetCode)digits[0]))); + } + } + break; + case 4: + if (8 * sizeof(TA_RetCode) > 3 * PyLong_SHIFT) { + if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { + __PYX_VERIFY_RETURN_INT(TA_RetCode, 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(TA_RetCode) - 1 > 4 * PyLong_SHIFT) { + return (TA_RetCode) ((((((((((TA_RetCode)digits[3]) << PyLong_SHIFT) | (TA_RetCode)digits[2]) << PyLong_SHIFT) | (TA_RetCode)digits[1]) << PyLong_SHIFT) | (TA_RetCode)digits[0]))); + } + } + break; + } +#endif + if (sizeof(TA_RetCode) <= sizeof(long)) { + __PYX_VERIFY_RETURN_INT_EXC(TA_RetCode, long, PyLong_AsLong(x)) + } else if (sizeof(TA_RetCode) <= sizeof(PY_LONG_LONG)) { + __PYX_VERIFY_RETURN_INT_EXC(TA_RetCode, 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 + TA_RetCode 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 (TA_RetCode) -1; + } + } else { + TA_RetCode val; + PyObject *tmp = __Pyx_PyNumber_IntOrLong(x); + if (!tmp) return (TA_RetCode) -1; + val = __Pyx_PyInt_As_TA_RetCode(tmp); + Py_DECREF(tmp); + return val; + } +raise_overflow: + PyErr_SetString(PyExc_OverflowError, + "value too large to convert to TA_RetCode"); + return (TA_RetCode) -1; +raise_neg_overflow: + PyErr_SetString(PyExc_OverflowError, + "can't convert negative value to TA_RetCode"); + return (TA_RetCode) -1; +} + +/* 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; +} + +/* CIntFromPy */ + static CYTHON_INLINE TA_FuncUnstId __Pyx_PyInt_As_TA_FuncUnstId(PyObject *x) { + const TA_FuncUnstId neg_one = (TA_FuncUnstId) -1, const_zero = (TA_FuncUnstId) 0; + const int is_unsigned = neg_one > const_zero; +#if PY_MAJOR_VERSION < 3 + if (likely(PyInt_Check(x))) { + if (sizeof(TA_FuncUnstId) < sizeof(long)) { + __PYX_VERIFY_RETURN_INT(TA_FuncUnstId, long, PyInt_AS_LONG(x)) + } else { + long val = PyInt_AS_LONG(x); + if (is_unsigned && unlikely(val < 0)) { + goto raise_neg_overflow; + } + return (TA_FuncUnstId) 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 (TA_FuncUnstId) 0; + case 1: __PYX_VERIFY_RETURN_INT(TA_FuncUnstId, digit, digits[0]) + case 2: + if (8 * sizeof(TA_FuncUnstId) > 1 * PyLong_SHIFT) { + if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { + __PYX_VERIFY_RETURN_INT(TA_FuncUnstId, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) + } else if (8 * sizeof(TA_FuncUnstId) >= 2 * PyLong_SHIFT) { + return (TA_FuncUnstId) (((((TA_FuncUnstId)digits[1]) << PyLong_SHIFT) | (TA_FuncUnstId)digits[0])); + } + } + break; + case 3: + if (8 * sizeof(TA_FuncUnstId) > 2 * PyLong_SHIFT) { + if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { + __PYX_VERIFY_RETURN_INT(TA_FuncUnstId, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) + } else if (8 * sizeof(TA_FuncUnstId) >= 3 * PyLong_SHIFT) { + return (TA_FuncUnstId) (((((((TA_FuncUnstId)digits[2]) << PyLong_SHIFT) | (TA_FuncUnstId)digits[1]) << PyLong_SHIFT) | (TA_FuncUnstId)digits[0])); + } + } + break; + case 4: + if (8 * sizeof(TA_FuncUnstId) > 3 * PyLong_SHIFT) { + if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { + __PYX_VERIFY_RETURN_INT(TA_FuncUnstId, 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(TA_FuncUnstId) >= 4 * PyLong_SHIFT) { + return (TA_FuncUnstId) (((((((((TA_FuncUnstId)digits[3]) << PyLong_SHIFT) | (TA_FuncUnstId)digits[2]) << PyLong_SHIFT) | (TA_FuncUnstId)digits[1]) << PyLong_SHIFT) | (TA_FuncUnstId)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 (TA_FuncUnstId) -1; + if (unlikely(result == 1)) + goto raise_neg_overflow; + } +#endif + if (sizeof(TA_FuncUnstId) <= sizeof(unsigned long)) { + __PYX_VERIFY_RETURN_INT_EXC(TA_FuncUnstId, unsigned long, PyLong_AsUnsignedLong(x)) + } else if (sizeof(TA_FuncUnstId) <= sizeof(unsigned PY_LONG_LONG)) { + __PYX_VERIFY_RETURN_INT_EXC(TA_FuncUnstId, 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 (TA_FuncUnstId) 0; + case -1: __PYX_VERIFY_RETURN_INT(TA_FuncUnstId, sdigit, (sdigit) (-(sdigit)digits[0])) + case 1: __PYX_VERIFY_RETURN_INT(TA_FuncUnstId, digit, +digits[0]) + case -2: + if (8 * sizeof(TA_FuncUnstId) - 1 > 1 * PyLong_SHIFT) { + if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { + __PYX_VERIFY_RETURN_INT(TA_FuncUnstId, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) + } else if (8 * sizeof(TA_FuncUnstId) - 1 > 2 * PyLong_SHIFT) { + return (TA_FuncUnstId) (((TA_FuncUnstId)-1)*(((((TA_FuncUnstId)digits[1]) << PyLong_SHIFT) | (TA_FuncUnstId)digits[0]))); + } + } + break; + case 2: + if (8 * sizeof(TA_FuncUnstId) > 1 * PyLong_SHIFT) { + if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { + __PYX_VERIFY_RETURN_INT(TA_FuncUnstId, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) + } else if (8 * sizeof(TA_FuncUnstId) - 1 > 2 * PyLong_SHIFT) { + return (TA_FuncUnstId) ((((((TA_FuncUnstId)digits[1]) << PyLong_SHIFT) | (TA_FuncUnstId)digits[0]))); + } + } + break; + case -3: + if (8 * sizeof(TA_FuncUnstId) - 1 > 2 * PyLong_SHIFT) { + if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { + __PYX_VERIFY_RETURN_INT(TA_FuncUnstId, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) + } else if (8 * sizeof(TA_FuncUnstId) - 1 > 3 * PyLong_SHIFT) { + return (TA_FuncUnstId) (((TA_FuncUnstId)-1)*(((((((TA_FuncUnstId)digits[2]) << PyLong_SHIFT) | (TA_FuncUnstId)digits[1]) << PyLong_SHIFT) | (TA_FuncUnstId)digits[0]))); + } + } + break; + case 3: + if (8 * sizeof(TA_FuncUnstId) > 2 * PyLong_SHIFT) { + if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { + __PYX_VERIFY_RETURN_INT(TA_FuncUnstId, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) + } else if (8 * sizeof(TA_FuncUnstId) - 1 > 3 * PyLong_SHIFT) { + return (TA_FuncUnstId) ((((((((TA_FuncUnstId)digits[2]) << PyLong_SHIFT) | (TA_FuncUnstId)digits[1]) << PyLong_SHIFT) | (TA_FuncUnstId)digits[0]))); + } + } + break; + case -4: + if (8 * sizeof(TA_FuncUnstId) - 1 > 3 * PyLong_SHIFT) { + if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { + __PYX_VERIFY_RETURN_INT(TA_FuncUnstId, 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(TA_FuncUnstId) - 1 > 4 * PyLong_SHIFT) { + return (TA_FuncUnstId) (((TA_FuncUnstId)-1)*(((((((((TA_FuncUnstId)digits[3]) << PyLong_SHIFT) | (TA_FuncUnstId)digits[2]) << PyLong_SHIFT) | (TA_FuncUnstId)digits[1]) << PyLong_SHIFT) | (TA_FuncUnstId)digits[0]))); + } + } + break; + case 4: + if (8 * sizeof(TA_FuncUnstId) > 3 * PyLong_SHIFT) { + if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { + __PYX_VERIFY_RETURN_INT(TA_FuncUnstId, 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(TA_FuncUnstId) - 1 > 4 * PyLong_SHIFT) { + return (TA_FuncUnstId) ((((((((((TA_FuncUnstId)digits[3]) << PyLong_SHIFT) | (TA_FuncUnstId)digits[2]) << PyLong_SHIFT) | (TA_FuncUnstId)digits[1]) << PyLong_SHIFT) | (TA_FuncUnstId)digits[0]))); + } + } + break; + } +#endif + if (sizeof(TA_FuncUnstId) <= sizeof(long)) { + __PYX_VERIFY_RETURN_INT_EXC(TA_FuncUnstId, long, PyLong_AsLong(x)) + } else if (sizeof(TA_FuncUnstId) <= sizeof(PY_LONG_LONG)) { + __PYX_VERIFY_RETURN_INT_EXC(TA_FuncUnstId, 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 + TA_FuncUnstId 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 (TA_FuncUnstId) -1; + } + } else { + TA_FuncUnstId val; + PyObject *tmp = __Pyx_PyNumber_IntOrLong(x); + if (!tmp) return (TA_FuncUnstId) -1; + val = __Pyx_PyInt_As_TA_FuncUnstId(tmp); + Py_DECREF(tmp); + return val; + } +raise_overflow: + PyErr_SetString(PyExc_OverflowError, + "value too large to convert to TA_FuncUnstId"); + return (TA_FuncUnstId) -1; +raise_neg_overflow: + PyErr_SetString(PyExc_OverflowError, + "can't convert negative value to TA_FuncUnstId"); + return (TA_FuncUnstId) -1; +} + +/* CIntFromPy */ + static CYTHON_INLINE unsigned int __Pyx_PyInt_As_unsigned_int(PyObject *x) { + const unsigned int neg_one = (unsigned int) -1, const_zero = (unsigned int) 0; + const int is_unsigned = neg_one > const_zero; +#if PY_MAJOR_VERSION < 3 + if (likely(PyInt_Check(x))) { + if (sizeof(unsigned int) < sizeof(long)) { + __PYX_VERIFY_RETURN_INT(unsigned int, long, PyInt_AS_LONG(x)) + } else { + long val = PyInt_AS_LONG(x); + if (is_unsigned && unlikely(val < 0)) { + goto raise_neg_overflow; + } + return (unsigned 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 (unsigned int) 0; + case 1: __PYX_VERIFY_RETURN_INT(unsigned int, digit, digits[0]) + case 2: + if (8 * sizeof(unsigned int) > 1 * PyLong_SHIFT) { + if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { + __PYX_VERIFY_RETURN_INT(unsigned int, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) + } else if (8 * sizeof(unsigned int) >= 2 * PyLong_SHIFT) { + return (unsigned int) (((((unsigned int)digits[1]) << PyLong_SHIFT) | (unsigned int)digits[0])); + } + } + break; + case 3: + if (8 * sizeof(unsigned int) > 2 * PyLong_SHIFT) { + if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { + __PYX_VERIFY_RETURN_INT(unsigned int, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) + } else if (8 * sizeof(unsigned int) >= 3 * PyLong_SHIFT) { + return (unsigned int) (((((((unsigned int)digits[2]) << PyLong_SHIFT) | (unsigned int)digits[1]) << PyLong_SHIFT) | (unsigned int)digits[0])); + } + } + break; + case 4: + if (8 * sizeof(unsigned int) > 3 * PyLong_SHIFT) { + if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { + __PYX_VERIFY_RETURN_INT(unsigned 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(unsigned int) >= 4 * PyLong_SHIFT) { + return (unsigned int) (((((((((unsigned int)digits[3]) << PyLong_SHIFT) | (unsigned int)digits[2]) << PyLong_SHIFT) | (unsigned int)digits[1]) << PyLong_SHIFT) | (unsigned 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 (unsigned int) -1; + if (unlikely(result == 1)) + goto raise_neg_overflow; + } +#endif + if (sizeof(unsigned int) <= sizeof(unsigned long)) { + __PYX_VERIFY_RETURN_INT_EXC(unsigned int, unsigned long, PyLong_AsUnsignedLong(x)) + } else if (sizeof(unsigned int) <= sizeof(unsigned PY_LONG_LONG)) { + __PYX_VERIFY_RETURN_INT_EXC(unsigned 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 (unsigned int) 0; + case -1: __PYX_VERIFY_RETURN_INT(unsigned int, sdigit, (sdigit) (-(sdigit)digits[0])) + case 1: __PYX_VERIFY_RETURN_INT(unsigned int, digit, +digits[0]) + case -2: + if (8 * sizeof(unsigned int) - 1 > 1 * PyLong_SHIFT) { + if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { + __PYX_VERIFY_RETURN_INT(unsigned int, long, -(long) (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) + } else if (8 * sizeof(unsigned int) - 1 > 2 * PyLong_SHIFT) { + return (unsigned int) (((unsigned int)-1)*(((((unsigned int)digits[1]) << PyLong_SHIFT) | (unsigned int)digits[0]))); + } + } + break; + case 2: + if (8 * sizeof(unsigned int) > 1 * PyLong_SHIFT) { + if (8 * sizeof(unsigned long) > 2 * PyLong_SHIFT) { + __PYX_VERIFY_RETURN_INT(unsigned int, unsigned long, (((((unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) + } else if (8 * sizeof(unsigned int) - 1 > 2 * PyLong_SHIFT) { + return (unsigned int) ((((((unsigned int)digits[1]) << PyLong_SHIFT) | (unsigned int)digits[0]))); + } + } + break; + case -3: + if (8 * sizeof(unsigned int) - 1 > 2 * PyLong_SHIFT) { + if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { + __PYX_VERIFY_RETURN_INT(unsigned int, long, -(long) (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) + } else if (8 * sizeof(unsigned int) - 1 > 3 * PyLong_SHIFT) { + return (unsigned int) (((unsigned int)-1)*(((((((unsigned int)digits[2]) << PyLong_SHIFT) | (unsigned int)digits[1]) << PyLong_SHIFT) | (unsigned int)digits[0]))); + } + } + break; + case 3: + if (8 * sizeof(unsigned int) > 2 * PyLong_SHIFT) { + if (8 * sizeof(unsigned long) > 3 * PyLong_SHIFT) { + __PYX_VERIFY_RETURN_INT(unsigned int, unsigned long, (((((((unsigned long)digits[2]) << PyLong_SHIFT) | (unsigned long)digits[1]) << PyLong_SHIFT) | (unsigned long)digits[0]))) + } else if (8 * sizeof(unsigned int) - 1 > 3 * PyLong_SHIFT) { + return (unsigned int) ((((((((unsigned int)digits[2]) << PyLong_SHIFT) | (unsigned int)digits[1]) << PyLong_SHIFT) | (unsigned int)digits[0]))); + } + } + break; + case -4: + if (8 * sizeof(unsigned int) - 1 > 3 * PyLong_SHIFT) { + if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { + __PYX_VERIFY_RETURN_INT(unsigned 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(unsigned int) - 1 > 4 * PyLong_SHIFT) { + return (unsigned int) (((unsigned int)-1)*(((((((((unsigned int)digits[3]) << PyLong_SHIFT) | (unsigned int)digits[2]) << PyLong_SHIFT) | (unsigned int)digits[1]) << PyLong_SHIFT) | (unsigned int)digits[0]))); + } + } + break; + case 4: + if (8 * sizeof(unsigned int) > 3 * PyLong_SHIFT) { + if (8 * sizeof(unsigned long) > 4 * PyLong_SHIFT) { + __PYX_VERIFY_RETURN_INT(unsigned 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(unsigned int) - 1 > 4 * PyLong_SHIFT) { + return (unsigned int) ((((((((((unsigned int)digits[3]) << PyLong_SHIFT) | (unsigned int)digits[2]) << PyLong_SHIFT) | (unsigned int)digits[1]) << PyLong_SHIFT) | (unsigned int)digits[0]))); + } + } + break; + } +#endif + if (sizeof(unsigned int) <= sizeof(long)) { + __PYX_VERIFY_RETURN_INT_EXC(unsigned int, long, PyLong_AsLong(x)) + } else if (sizeof(unsigned int) <= sizeof(PY_LONG_LONG)) { + __PYX_VERIFY_RETURN_INT_EXC(unsigned 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 + unsigned 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 (unsigned int) -1; + } + } else { + unsigned int val; + PyObject *tmp = __Pyx_PyNumber_IntOrLong(x); + if (!tmp) return (unsigned int) -1; + val = __Pyx_PyInt_As_unsigned_int(tmp); + Py_DECREF(tmp); + return val; + } +raise_overflow: + PyErr_SetString(PyExc_OverflowError, + "value too large to convert to unsigned int"); + return (unsigned int) -1; +raise_neg_overflow: + PyErr_SetString(PyExc_OverflowError, + "can't convert negative value to unsigned int"); + return (unsigned int) -1; +} + +/* 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 + +/* 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 */ From d3e6df9458243a983dcde1302f0ece6c6b930f0e Mon Sep 17 00:00:00 2001 From: mckelvin Date: Tue, 23 Aug 2016 17:19:36 +0800 Subject: [PATCH 12/13] Integrate with Travis-CI --- .gitignore | 3 ++- .travis.yml | 14 ++++++++++++++ dev-requirements.txt | 4 ++++ requirements.txt | 1 + setup.py | 1 + 5 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 .travis.yml create mode 100644 dev-requirements.txt create mode 100644 requirements.txt diff --git a/.gitignore b/.gitignore index 6c1ffec6d..5e3130e37 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,8 @@ *.pyc build *.so -.* *~ +*.sw[op] +.cache/ *.o *.egg-info/ diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 000000000..99ac25cdc --- /dev/null +++ b/.travis.yml @@ -0,0 +1,14 @@ +--- + +language: python +python: +- 2.7 + +cache: pip + +install: +- pip install wheel +- pip install -r dev-requirements.txt + +script: +- python setup.py test diff --git a/dev-requirements.txt b/dev-requirements.txt new file mode 100644 index 000000000..dae79ae4f --- /dev/null +++ b/dev-requirements.txt @@ -0,0 +1,4 @@ +Cython==0.24.1 +numpy +pandas +pytest diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 000000000..24ce15ab7 --- /dev/null +++ b/requirements.txt @@ -0,0 +1 @@ +numpy diff --git a/setup.py b/setup.py index 3d7f9fc80..c0db1b77c 100644 --- a/setup.py +++ b/setup.py @@ -189,4 +189,5 @@ def run_tests(self): ext_modules=ext_modules, cmdclass=cmdclass, requires=['numpy'], + tests_require=["pytest"], ) From 5ee3f10e81d1c9045824b19bb8bba3cd60d2f990 Mon Sep 17 00:00:00 2001 From: mckelvin Date: Tue, 30 Aug 2016 12:31:13 +0800 Subject: [PATCH 13/13] Add MANIFEST.in --- .gitignore | 3 ++- MANIFEST.in | 11 +++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 MANIFEST.in diff --git a/.gitignore b/.gitignore index 5e3130e37..9f3242efa 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ *.pyc -build +build/ +dist/ *.so *~ *.sw[op] diff --git a/MANIFEST.in b/MANIFEST.in new file mode 100644 index 000000000..11eec58f7 --- /dev/null +++ b/MANIFEST.in @@ -0,0 +1,11 @@ +include README.md +include AUTHORS +include CHANGELOG +include COPYRIGHT +include DEVELOPMENT +include LICENSE +include requirements.txt +recursive-include vendor * +recursive-include talib *.py *.pyx *.pxi *.pxd *.c +global-exclude *.o *.so *.pyc +prune .git